From fd00915faa0383d56ca85040cca27f25f1fd839a Mon Sep 17 00:00:00 2001 From: Christian Konrad Date: Mon, 19 Sep 2022 12:29:45 +0200 Subject: [PATCH] Refactor meta and app server --- README.md | 51 ++++ .../config/RaftConfig.java | 16 +- .../ClusterManagementController.java | 35 ++- .../counter/ReplicatedCounterController.java | 5 +- .../ReplicatedEventStoreController.java | 2 + .../MeasurePerformanceController.java | 64 ++--- .../InsertEventRequestDeserializer.java | 6 +- .../InsertEventRequestSerializer.java | 5 +- .../models/CreatePartitionRequest.java | 2 +- .../DetachPartitionRequest.java | 16 ++ .../PartitionInfoResponse.java | 27 ++ .../clustermanagement/RaftPeerResponse.java | 11 + .../models/counter/CreateCounterRequest.java | 2 +- .../models/sysinfo/NodeHealth.java | 21 +- .../models/sysinfo/NodeInfo.java | 11 +- .../replication/IReplicationServer.java | 3 + .../replication/api/PartitionInfo.java | 17 +- .../replication/api/PartitionName.java | 18 +- .../ClusterManagementOperationExecutor.java | 13 +- .../ClusterManagementOperationMessage.java | 58 +++- .../impl/ApplicationLogicServer.java | 234 ++++++++++++++++ .../ClusterManagementMultiRaftServer.java | 1 + .../impl/ClusterManagementServer.java | 48 +++- .../impl/MultiRaftReplicationServer.java | 5 +- .../impl/clients/ClusterManagementClient.java | 21 +- .../ClusterMetadataReplicationClient.java | 5 +- .../clients/CounterReplicationClient.java | 9 +- .../clients/EventStoreReplicationClient.java | 5 +- .../PartitionedRaftReplicationClient.java | 16 +- .../clustermanagement/ClusterManager.java | 262 ++++++++++++++++-- .../eventstore/ReplicatedChronicleEngine.java | 77 +++-- .../ClusterManagementStateMachine.java | 10 +- .../impl/statemachines/IdleStateMachine.java | 10 + .../data/management/ClusterState.java | 175 ++++++++++-- .../data/management/ClusterStateManager.java | 202 +++++++++++++- .../data/management/PartitionProvider.java | 116 ++++++++ .../data/management/PeerStateProvider.java | 44 ++- .../PartitionInfoProtoSerializer.java | 29 ++ ...artitionRegistrationOperationExecutor.java | 55 ++++ .../DetachPartitionOperationExecutor.java | 10 +- .../GetClusterHealthOperationExecutor.java | 57 ++++ ...eMachineForRaftGroupOperationExecutor.java | 50 ++++ .../HeartbeatOperationExecutor.java | 4 +- .../ListPartitionsOperationExecutor.java | 26 +- .../ProvisionPartitionOperationExecutor.java | 59 ++++ .../RegisterPartitionOperationExecutor.java | 13 +- .../ApplicationLogicServerStartupRunner.java | 56 ++++ .../runners/ClusterHeartbeatRunner.java | 1 + ...anagementMultiRaftServerStartupRunner.java | 1 + .../ClusterManagementServerStartupRunner.java | 3 +- .../runners/MetadataUpdateStartupRunner.java | 1 + ...ltiRaftReplicationServerStartupRunner.java | 1 + .../runners/RaftServersStartupRunner.java | 127 +++++++++ .../sysinfo/RaftSystemInfoClient.java | 8 +- .../impl/ReplicatedCounterService.java | 45 ++- .../ClusterManagementService.java | 34 ++- .../impl/sysinfo/SystemInfoService.java | 66 +++-- .../MeasureEventStorePerformanceService.java | 2 + src/main/js/api/apiClient.js | 2 +- src/main/js/components/nodeInfo.js | 22 +- src/main/js/components/raftGroups.js | 3 +- .../ClusterManagementOperation.proto | 70 ++++- src/main/resources/application.properties | 3 +- src/main/resources/static/built/bundle.js | 26 +- src/main/resources/static/built/bundle.js.map | 2 +- 65 files changed, 2155 insertions(+), 244 deletions(-) create mode 100644 src/main/java/de/umr/raft/raftlogreplicationdemo/models/clustermanagement/DetachPartitionRequest.java create mode 100644 src/main/java/de/umr/raft/raftlogreplicationdemo/models/clustermanagement/PartitionInfoResponse.java create mode 100644 src/main/java/de/umr/raft/raftlogreplicationdemo/models/clustermanagement/RaftPeerResponse.java create mode 100644 src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/ApplicationLogicServer.java create mode 100644 src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/IdleStateMachine.java create mode 100644 src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/data/management/PartitionProvider.java create mode 100644 src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/data/management/serialization/PartitionInfoProtoSerializer.java create mode 100644 src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/executors/clustermanagement/AcknowledgePartitionRegistrationOperationExecutor.java create mode 100644 src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/executors/clustermanagement/GetClusterHealthOperationExecutor.java create mode 100644 src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/executors/clustermanagement/GetStateMachineForRaftGroupOperationExecutor.java create mode 100644 src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/executors/clustermanagement/ProvisionPartitionOperationExecutor.java create mode 100644 src/main/java/de/umr/raft/raftlogreplicationdemo/replication/runners/ApplicationLogicServerStartupRunner.java create mode 100644 src/main/java/de/umr/raft/raftlogreplicationdemo/replication/runners/RaftServersStartupRunner.java diff --git a/README.md b/README.md index ab1821c..8e53c0a 100644 --- a/README.md +++ b/README.md @@ -32,12 +32,14 @@ PEERS=n1:localhost:6000,n2:localhost:6001,n3:localhost:6002 ID=n0 HTTP_PORT=8080 META_PORT=6000 +REPLICATION_PORT=6050 ./mvnw spring-boot:run -Dspring-boot.run.arguments="\ --node-id={ID} \ --server.address=localhost \ --server.port={HTTP_PORT} \ --metadata-port={META_PORT} \ +--replication-port={REPLICATION_PORT} \ --storage=/tmp/raft-demo/{ID} \ --peers={PEERS}" ``` @@ -63,6 +65,7 @@ java -jar target/raft-log-replication-demo-0.0.1-SNAPSHOT.jar \ --server.address=localhost \ --server.port={HTTP_PORT} \ --metadata-port={META_PORT} \ +--replication-port={REPLICATION_PORT} \ --storage=/tmp/raft-demo/{ID} \ --peers={PEERS}" ``` @@ -78,6 +81,7 @@ java -jar target/raft-log-replication-demo-0.0.1-SNAPSHOT.jar \ --server.address=localhost \ --server.port=8080 \ --metadata-port=6000 \ +--replication-port=6050 \ --storage=/tmp/raft-demo/${ID} \ --peers=${PEERS} @@ -87,6 +91,7 @@ java -jar target/raft-log-replication-demo-0.0.1-SNAPSHOT.jar \ --server.address=localhost \ --server.port=8081 \ --metadata-port=6001 \ +--replication-port=6051 \ --storage=/tmp/raft-demo/${ID} \ --peers=${PEERS} @@ -96,6 +101,7 @@ java -jar target/raft-log-replication-demo-0.0.1-SNAPSHOT.jar \ --server.address=localhost \ --server.port=8082 \ --metadata-port=6002 \ +--replication-port=6052 \ --storage=/tmp/raft-demo/${ID} \ --peers=${PEERS} ``` @@ -104,6 +110,51 @@ java -jar target/raft-log-replication-demo-0.0.1-SNAPSHOT.jar \ See the docker-compose as well as the Dockerfile. +## Provisioning a partition + +In general, a new partition of any state machine (any that implements the `StateMachine` interface) can be instantiated using the REST API: + +```sh +POST http://localhost:8080/api/cluster-manager/partitions +Content-Type: application/json + +{ + "stateMachineClassName": "de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.EventStoreStateMachine", + "partitionName": "events", + "replicationFactor": 3 +} +``` + +For event stores, there is a convenience method to instantiate a new stream on its own partition: + +```sh +POST http://localhost:8080/api/event-store/streams +Content-Type: application/json + +{ + "streamName": "demo-event-store", + "schema": [ + { + "name": "SYMBOL", + "type": "STRING", + "properties": {} + }, + { + "name": "SECURITYTYPE", + "type": "INTEGER", + "properties": {} + }, + { + "name": "LASTTRADEPRICE", + "type": "FLOAT", + "properties": {} + } + ] +} +``` + +> Note that the schema is currently ignored, since it is hardcoded. The implementation of the dynamic schema invocation is currently pending. + ## Roadmap ### Make a library out of the Apache Ratis on-top abstractions diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/config/RaftConfig.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/config/RaftConfig.java index 9d31209..3e1597e 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/config/RaftConfig.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/config/RaftConfig.java @@ -35,14 +35,14 @@ public class RaftConfig { @Value("${storage}") @Getter private String storagePath; - @Value("${server.port}:8000") + @Value("${server.port:8000}") @Getter private String httpPort; - // TODO actually, THIS is replication-port. Need also seperate, explicit port for management group - @Value("${metadata-port}:6000") - @Getter private String metadataPort; - // or name managementPort and replicationPort ? - // TODO need some kind of port proxy + @Value("${metadata-port:6000}") + @Getter private String managementPort; + + @Value("${replication-port:6050}") + @Getter private String replicationPort; @Value("${server.address:#{null}}") private Optional host; @@ -128,4 +128,8 @@ public String getHostAddress() { public String getPublicHostAddress() { return publicHost.orElseGet(this::getHostAddress); } + + public String getReplicationAddress() { + return getHostAddress() + ":" + getReplicationPort(); + } } diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/controllers/clustermanagement/ClusterManagementController.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/controllers/clustermanagement/ClusterManagementController.java index 4e51764..5c07969 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/controllers/clustermanagement/ClusterManagementController.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/controllers/clustermanagement/ClusterManagementController.java @@ -1,14 +1,15 @@ package de.umr.raft.raftlogreplicationdemo.controllers.clustermanagement; +import de.umr.raft.raftlogreplicationdemo.models.clustermanagement.DetachPartitionRequest; +import de.umr.raft.raftlogreplicationdemo.models.clustermanagement.PartitionInfoResponse; import de.umr.raft.raftlogreplicationdemo.models.clustermanagement.RaftPeerRequest; import de.umr.raft.raftlogreplicationdemo.models.clustermanagement.RegisterPartitionRequest; -import de.umr.raft.raftlogreplicationdemo.replication.api.PartitionInfo; +import de.umr.raft.raftlogreplicationdemo.models.sysinfo.ClusterHealth; import de.umr.raft.raftlogreplicationdemo.services.impl.clustermanagement.ClusterManagementService; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; + +import java.util.List; @RestController @RequestMapping("/api/cluster-manager/") @@ -18,13 +19,33 @@ public class ClusterManagementController { ClusterManagementService clusterManagementService; @PostMapping(value = "/partitions") - public PartitionInfo registerPartition(@RequestBody RegisterPartitionRequest registerPartitionRequest) throws ClassNotFoundException { + public PartitionInfoResponse registerPartition(@RequestBody RegisterPartitionRequest registerPartitionRequest) throws ClassNotFoundException { return clusterManagementService.registerPartition(registerPartitionRequest); } + @DeleteMapping(value = "/partitions/{stateMachineClassname}/{partitionName}") + public PartitionInfoResponse detachPartition(@PathVariable String stateMachineClassname, @PathVariable String partitionName) throws ClassNotFoundException { + return clusterManagementService.detachPartition(new DetachPartitionRequest(stateMachineClassname, partitionName)); + } + + @GetMapping(value = "/partitions") + public List listPartitions() { + return clusterManagementService.listPartitions(); + } + + @GetMapping(value = "/partitions/{stateMachineClassname}") + public List listPartitions(@PathVariable String stateMachineClassname) throws ClassNotFoundException { + return clusterManagementService.listPartitions(stateMachineClassname); + } + // TODO remove after test @PostMapping(value = "/heartbeat") - public void sendHeartbeat(@RequestBody RaftPeerRequest raftPeerRequest) throws ClassNotFoundException { + public void sendHeartbeat(@RequestBody RaftPeerRequest raftPeerRequest) { clusterManagementService.sendHeartbeat(raftPeerRequest); } + + @GetMapping(value = "/health") + public ClusterHealth getClusterHealth() { + return clusterManagementService.getClusterHealth(); + } } diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/controllers/counter/ReplicatedCounterController.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/controllers/counter/ReplicatedCounterController.java index 6e9b3ae..04da8a2 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/controllers/counter/ReplicatedCounterController.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/controllers/counter/ReplicatedCounterController.java @@ -2,6 +2,7 @@ import de.umr.raft.raftlogreplicationdemo.models.counter.CreateCounterRequest; import de.umr.raft.raftlogreplicationdemo.models.sysinfo.RaftGroupInfo; +import de.umr.raft.raftlogreplicationdemo.replication.api.PartitionInfo; import de.umr.raft.raftlogreplicationdemo.services.impl.ReplicatedCounterService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; @@ -13,7 +14,7 @@ import java.util.List; import java.util.concurrent.ExecutionException; -//@RestController +@RestController @RequestMapping("/api/counter/replicated") public class ReplicatedCounterController { @@ -39,7 +40,7 @@ public String getCounter(@PathVariable String id) throws IOException, ExecutionE // TODO POST /api/counter/replicated?partition-size=3 creates new raft group with 3 peers @PostMapping("") @ResponseStatus(value = HttpStatus.OK) - public RaftGroupInfo createNewCounter(@RequestBody CreateCounterRequest createCounterRequest) throws IOException, ExecutionException, InterruptedException, InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException { + public PartitionInfo createNewCounter(@RequestBody CreateCounterRequest createCounterRequest) throws IOException, ExecutionException, InterruptedException, InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException { return counterService.createNewCounter(createCounterRequest).get(); } diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/controllers/eventstore/ReplicatedEventStoreController.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/controllers/eventstore/ReplicatedEventStoreController.java index ccee202..66c46ec 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/controllers/eventstore/ReplicatedEventStoreController.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/controllers/eventstore/ReplicatedEventStoreController.java @@ -19,6 +19,8 @@ import java.util.Optional; import java.util.concurrent.ExecutionException; +// TODO start again once cluster management works + @RestController @RequestMapping("/api/event-store") public class ReplicatedEventStoreController { diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/controllers/sysinfo/performance/MeasurePerformanceController.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/controllers/sysinfo/performance/MeasurePerformanceController.java index 1d53749..15efcfe 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/controllers/sysinfo/performance/MeasurePerformanceController.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/controllers/sysinfo/performance/MeasurePerformanceController.java @@ -11,13 +11,13 @@ import java.util.Optional; import java.util.concurrent.ExecutionException; -//@RestController +@RestController @RequestMapping("/api/sys-info/performance") public class MeasurePerformanceController { @Autowired MeasureEventStorePerformanceService measureEventStorePerformanceService; - @Autowired MeasureCounterPerformanceService measureCounterPerformanceService; - @Autowired MeasureMetadataPerformanceService measureMetadataPerformanceService; + //@Autowired MeasureCounterPerformanceService measureCounterPerformanceService; + //@Autowired MeasureMetadataPerformanceService measureMetadataPerformanceService; // TODO remove crossOrigin later @CrossOrigin @@ -55,36 +55,36 @@ public String runGetEventStoreStreamInfoMeasurements() throws IOException, Execu // TODO aggregate event // TODO remove crossOrigin later - @CrossOrigin - @GetMapping("/measure/counter/replicated/increment/{count}") - public String runIncrementReplicatedCounterMeasurements(@PathVariable Integer count, @RequestParam Optional batchSize) throws IOException, ExecutionException, InterruptedException { - return measureCounterPerformanceService.runIncrementReplicatedCounterMeasurements(count, batchSize).get(); - } - - @GetMapping("/measure/counter/replicated/increment/sync/{count}") - public String runIncrementReplicatedCounterSyncMeasurements(@PathVariable Integer count) throws IOException, ExecutionException, InterruptedException { - return measureCounterPerformanceService.runIncrementReplicatedCounterSyncMeasurements(count).get(); - } - - @GetMapping("/measure/counter/replicated/read") - public String runReadReplicatedCounterMeasurements() throws IOException, ExecutionException, InterruptedException { - return measureCounterPerformanceService.runReadReplicatedCounterMeasurements().get(); - } - - @GetMapping("/measure/counter/standalone/increment/{count}") - public String runIncrementStandaloneCounterMeasurements(@PathVariable Integer count) throws IOException, ExecutionException, InterruptedException { - return measureCounterPerformanceService.runIncrementStandaloneCounterMeasurements(count).get(); - } - - @GetMapping("/measure/counter/read") - public String runReadStandaloneCounterMeasurements() throws IOException, ExecutionException, InterruptedException { - return measureCounterPerformanceService.runReadStandaloneCounterMeasurements().get(); - } +// @CrossOrigin +// @GetMapping("/measure/counter/replicated/increment/{count}") +// public String runIncrementReplicatedCounterMeasurements(@PathVariable Integer count, @RequestParam Optional batchSize) throws IOException, ExecutionException, InterruptedException { +// return measureCounterPerformanceService.runIncrementReplicatedCounterMeasurements(count, batchSize).get(); +// } +// +// @GetMapping("/measure/counter/replicated/increment/sync/{count}") +// public String runIncrementReplicatedCounterSyncMeasurements(@PathVariable Integer count) throws IOException, ExecutionException, InterruptedException { +// return measureCounterPerformanceService.runIncrementReplicatedCounterSyncMeasurements(count).get(); +// } +// +// @GetMapping("/measure/counter/replicated/read") +// public String runReadReplicatedCounterMeasurements() throws IOException, ExecutionException, InterruptedException { +// return measureCounterPerformanceService.runReadReplicatedCounterMeasurements().get(); +// } +// +// @GetMapping("/measure/counter/standalone/increment/{count}") +// public String runIncrementStandaloneCounterMeasurements(@PathVariable Integer count) throws IOException, ExecutionException, InterruptedException { +// return measureCounterPerformanceService.runIncrementStandaloneCounterMeasurements(count).get(); +// } +// +// @GetMapping("/measure/counter/read") +// public String runReadStandaloneCounterMeasurements() throws IOException, ExecutionException, InterruptedException { +// return measureCounterPerformanceService.runReadStandaloneCounterMeasurements().get(); +// } - @GetMapping("/measure/metadata/get") - public String runGetMetadataMeasurements() throws IOException, ExecutionException, InterruptedException { - return measureMetadataPerformanceService.runGetMetadataMeasurements().get(); - } +// @GetMapping("/measure/metadata/get") +// public String runGetMetadataMeasurements() throws IOException, ExecutionException, InterruptedException { +// return measureMetadataPerformanceService.runGetMetadataMeasurements().get(); +// } // TODO also test non-replicated store diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/json/deserialization/InsertEventRequestDeserializer.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/json/deserialization/InsertEventRequestDeserializer.java index ecf112b..e84a87e 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/json/deserialization/InsertEventRequestDeserializer.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/json/deserialization/InsertEventRequestDeserializer.java @@ -25,9 +25,9 @@ import java.util.Map; -/** - * - */ + +// TODO start again once cluster management works + @JsonComponent public class InsertEventRequestDeserializer extends JsonDeserializer { diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/json/serialization/InsertEventRequestSerializer.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/json/serialization/InsertEventRequestSerializer.java index 05d8dce..4f8c289 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/json/serialization/InsertEventRequestSerializer.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/json/serialization/InsertEventRequestSerializer.java @@ -14,9 +14,8 @@ import java.io.IOException; -/** - * - */ +// TODO start again once cluster management works + @JsonComponent public class InsertEventRequestSerializer extends JsonSerializer { diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/models/CreatePartitionRequest.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/models/CreatePartitionRequest.java index 3f89787..051e8b8 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/models/CreatePartitionRequest.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/models/CreatePartitionRequest.java @@ -3,6 +3,6 @@ // TODO obsolete, use RegisterPartitionRequest public interface CreatePartitionRequest { - abstract long getPartitionsCount(); + abstract int getPartitionsCount(); } diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/models/clustermanagement/DetachPartitionRequest.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/models/clustermanagement/DetachPartitionRequest.java new file mode 100644 index 0000000..041fce2 --- /dev/null +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/models/clustermanagement/DetachPartitionRequest.java @@ -0,0 +1,16 @@ +package de.umr.raft.raftlogreplicationdemo.models.clustermanagement; + +import lombok.Getter; +import lombok.NonNull; +import lombok.RequiredArgsConstructor; +import org.apache.ratis.statemachine.impl.BaseStateMachine; + +@RequiredArgsConstructor +public class DetachPartitionRequest { + @Getter @NonNull final String stateMachineClassName; + @Getter @NonNull final String partitionName; + + public Class getStateMachineClass() throws ClassNotFoundException { + return Class.forName(stateMachineClassName).asSubclass(BaseStateMachine.class); + } +} diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/models/clustermanagement/PartitionInfoResponse.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/models/clustermanagement/PartitionInfoResponse.java new file mode 100644 index 0000000..379010a --- /dev/null +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/models/clustermanagement/PartitionInfoResponse.java @@ -0,0 +1,27 @@ +package de.umr.raft.raftlogreplicationdemo.models.clustermanagement; + +import de.umr.raft.raftlogreplicationdemo.replication.api.PartitionInfo; +import lombok.Getter; +import lombok.NonNull; +import lombok.RequiredArgsConstructor; + +import java.util.List; +import java.util.stream.Collectors; + +@RequiredArgsConstructor +public class PartitionInfoResponse { + @Getter @NonNull final String partitionName; + @Getter @NonNull final String raftGroupId; + @Getter @NonNull final List peers; + @Getter @NonNull final String stateMachineClassname; + @Getter @NonNull final PartitionInfo.PartitionState partitionState; + + public static PartitionInfoResponse of(PartitionInfo partitionInfo) { + return new PartitionInfoResponse( + partitionInfo.getPartitionName().getName(), + partitionInfo.getRaftGroup().getGroupId().toString(), + partitionInfo.getRaftGroup().getPeers().stream().map(raftPeer -> new RaftPeerResponse(raftPeer.getId().toString(), raftPeer.getAddress())).collect(Collectors.toList()), + partitionInfo.getStateMachineClassname(), + partitionInfo.getPartitionState()); + } +} diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/models/clustermanagement/RaftPeerResponse.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/models/clustermanagement/RaftPeerResponse.java new file mode 100644 index 0000000..95f541b --- /dev/null +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/models/clustermanagement/RaftPeerResponse.java @@ -0,0 +1,11 @@ +package de.umr.raft.raftlogreplicationdemo.models.clustermanagement; + +import lombok.Getter; +import lombok.NonNull; +import lombok.RequiredArgsConstructor; + +@RequiredArgsConstructor +public class RaftPeerResponse { + @Getter @NonNull final String id; + @Getter @NonNull final String address; +} diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/models/counter/CreateCounterRequest.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/models/counter/CreateCounterRequest.java index 3766b0c..7cf2296 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/models/counter/CreateCounterRequest.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/models/counter/CreateCounterRequest.java @@ -9,5 +9,5 @@ public class CreateCounterRequest implements CreatePartitionRequest { @Getter @NonNull final String id; - @Getter final long partitionsCount; + @Getter final int partitionsCount; } diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/models/sysinfo/NodeHealth.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/models/sysinfo/NodeHealth.java index 7ee57ab..0265263 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/models/sysinfo/NodeHealth.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/models/sysinfo/NodeHealth.java @@ -1,17 +1,20 @@ package de.umr.raft.raftlogreplicationdemo.models.sysinfo; +import de.umr.raft.raftlogreplicationdemo.replication.api.PeerState; +import de.umr.raft.raftlogreplicationdemo.replication.api.proto.NodeHealthProto; import de.umr.raft.raftlogreplicationdemo.replication.impl.facades.metadata.ReplicatedMetadataMap; import lombok.*; import org.apache.ratis.protocol.RaftPeer; +import org.apache.ratis.protocol.RaftPeerId; import org.apache.ratis.thirdparty.com.google.protobuf.InvalidProtocolBufferException; +import java.time.Instant; import java.util.concurrent.ExecutionException; import static java.lang.System.currentTimeMillis; @RequiredArgsConstructor(staticName = "of") @Builder public class NodeHealth { - // TODO just use PeerState! public enum ConnectionState { @@ -22,6 +25,14 @@ public enum ConnectionState { @Getter private final String heartbeat; @Getter private final ConnectionState connectionState; + public static NodeHealth of(PeerState peerState) { + return new NodeHealth.NodeHealthBuilder() + .id(peerState.getRaftPeer().getId().toString()) + .heartbeat(Instant.ofEpochMilli(peerState.getLastHeartbeat()).toString()) + .connectionState(ConnectionState.valueOf(peerState.getConnectionState().name())) + .build(); + } + public static NodeHealth of(ReplicatedMetadataMap replicatedMetaDataMap) throws ExecutionException, InterruptedException, InvalidProtocolBufferException { val nodeId = replicatedMetaDataMap.get("nodeId"); val heartbeat = replicatedMetaDataMap.get("heartbeat"); @@ -39,4 +50,12 @@ public static NodeHealth of(ReplicatedMetadataMap replicatedMetaDataMap) throws .connectionState(connectionState) .build(); } + + public static NodeHealth of(NodeHealthProto nodeHealthProto) { + return new NodeHealth.NodeHealthBuilder() + .id(nodeHealthProto.getPeerId()) + .heartbeat(nodeHealthProto.getHeartbeat()) + .connectionState(ConnectionState.valueOf(nodeHealthProto.getConnectionState().name())) + .build(); + } } diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/models/sysinfo/NodeInfo.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/models/sysinfo/NodeInfo.java index 18f0730..e882ed2 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/models/sysinfo/NodeInfo.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/models/sysinfo/NodeInfo.java @@ -1,5 +1,6 @@ package de.umr.raft.raftlogreplicationdemo.models.sysinfo; +import de.umr.raft.raftlogreplicationdemo.replication.api.PartitionInfo; import de.umr.raft.raftlogreplicationdemo.replication.impl.facades.metadata.ReplicatedMetadataMap; import lombok.*; import org.apache.ratis.protocol.RaftPeer; @@ -16,6 +17,7 @@ public class NodeInfo { @Getter @NonNull private final String host; @Getter private final String httpPort; @Getter @NonNull private final String metadataPort; + @Getter private final String replicationPort; @Getter private final String storagePath; @Getter private final String localHostAddress; @Getter private final String localHostName; @@ -28,6 +30,7 @@ public class NodeInfo { @Getter private final String totalDiskSpace; @Getter private final String usableDiskSpace; @Getter private final String heartbeat; + @Getter private final String health; public static NodeInfo of(RaftPeer raftPeer) { val raftPeerHostAndPort = raftPeer.getAddress().split(":"); @@ -40,11 +43,12 @@ public static NodeInfo of(RaftPeer raftPeer) { .build(); } - public static NodeInfo of(ReplicatedMetadataMap replicatedMetaDataMap) throws ExecutionException, InterruptedException, InvalidProtocolBufferException { + public static NodeInfo of(ReplicatedMetadataMap replicatedMetaDataMap, NodeHealth nodeHealth) throws ExecutionException, InterruptedException, InvalidProtocolBufferException { val nodeId = replicatedMetaDataMap.get("nodeId"); val localHostAddress = replicatedMetaDataMap.get("localHostAddress"); val httpPort = replicatedMetaDataMap.get("httpPort"); val metadataPort = replicatedMetaDataMap.get("metadataPort"); + val replicationPort = replicatedMetaDataMap.get("replicationPort"); val storagePath = replicatedMetaDataMap.get("storagePath"); val localHostName = replicatedMetaDataMap.get("localHostName"); val remoteHostAddress = replicatedMetaDataMap.get("remoteHostAddress"); @@ -55,7 +59,8 @@ public static NodeInfo of(ReplicatedMetadataMap replicatedMetaDataMap) throws Ex val javaVersion = replicatedMetaDataMap.get("javaVersion"); val totalDiskSpace = replicatedMetaDataMap.get("totalDiskSpace"); val usableDiskSpace = replicatedMetaDataMap.get("usableDiskSpace"); - val heartbeat = replicatedMetaDataMap.get("heartbeat"); + val heartbeat = nodeHealth.getHeartbeat(); + val health = nodeHealth.getConnectionState(); // TODO more params return new NodeInfoBuilder() @@ -63,6 +68,7 @@ public static NodeInfo of(ReplicatedMetadataMap replicatedMetaDataMap) throws Ex .host(localHostAddress) .httpPort(httpPort) .metadataPort(metadataPort) + .replicationPort(replicationPort) .storagePath(storagePath) .localHostAddress(localHostAddress) .localHostName(localHostName) @@ -75,6 +81,7 @@ public static NodeInfo of(ReplicatedMetadataMap replicatedMetaDataMap) throws Ex .totalDiskSpace(totalDiskSpace) .usableDiskSpace(usableDiskSpace) .heartbeat(heartbeat) + .health(health.name()) .build(); } diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/IReplicationServer.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/IReplicationServer.java index 266fa44..95a19d0 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/IReplicationServer.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/IReplicationServer.java @@ -1,5 +1,7 @@ package de.umr.raft.raftlogreplicationdemo.replication; +import lombok.Getter; +import lombok.Setter; import org.apache.ratis.protocol.Message; import org.apache.ratis.protocol.RaftClientReply; @@ -14,5 +16,6 @@ interface Raft { public void start() throws IOException, ExecutionException, InterruptedException, InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException; // TODO expose state machine methods? + } } diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/api/PartitionInfo.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/api/PartitionInfo.java index 869b18b..4023ab2 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/api/PartitionInfo.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/api/PartitionInfo.java @@ -23,7 +23,7 @@ public class PartitionInfo { @Getter @NonNull final String stateMachineClassname; @Getter @Setter PartitionState partitionState = PartitionState.UNKNOWN; - enum PartitionState { + public enum PartitionState { UNKNOWN, REGISTERING, REGISTERED, DETACHED } @@ -47,4 +47,19 @@ public static PartitionInfo of(PartitionInfoProto partitionInfoProto, String sta return partitionInfo; } + + public static PartitionInfo of(PartitionInfoProto partitionInfoProto) { + return PartitionInfo.of(partitionInfoProto, partitionInfoProto.getPartitionName().getStateMachineClassName()); + } + + public static PartitionInfo of(PartitionName partitionName, RaftGroup raftGroup, String stateMachineClassname, PartitionState state) { + var partitionInfo = PartitionInfo.of( + partitionName, + raftGroup, + stateMachineClassname); + + partitionInfo.setPartitionState(state); + + return partitionInfo; + } } diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/api/PartitionName.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/api/PartitionName.java index 82b4043..43398b6 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/api/PartitionName.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/api/PartitionName.java @@ -21,13 +21,11 @@ public class PartitionName { // to change over time. We should account for this with an // API which can naturally evolve. - // TODO do we need serverName? - @Getter @NonNull final String serverName; - // TODO include state machine name? + @Getter @NonNull final String stateMachineClassName; @Getter @NonNull final String name; public String getFullyQualifiedName() { - return serverName + ":" + name; + return stateMachineClassName + ":" + name; } @Override public int hashCode() { @@ -46,10 +44,18 @@ public static PartitionName of(String getFullyQualifiedName) throws InvalidParti return PartitionName.of(parts[0], parts[1]); } public static PartitionName of(PartitionNameProto partitionName) { - return PartitionName.of(partitionName.getServerName(), partitionName.getName()); + return PartitionName.of(partitionName.getStateMachineClassName(), partitionName.getName()); } -// public static PartitionName parseFrom(ByteString partitionName) + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + PartitionName that = (PartitionName) o; + return stateMachineClassName.equals(that.stateMachineClassName) && name.equals(that.name); + } + + // public static PartitionName parseFrom(ByteString partitionName) // throws InvalidProtocolBufferException { // RaftProtos.PartitionNameProto partitionNameProto = RaftProtos.PartitionNameProto.parseFrom(logName); // return new PartitionName(partitionNameProto.getStateMachineClassName(), partitionNameProto.getName()); diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/api/statemachines/executors/clustermanagement/ClusterManagementOperationExecutor.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/api/statemachines/executors/clustermanagement/ClusterManagementOperationExecutor.java index 70a8266..c18e4fe 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/api/statemachines/executors/clustermanagement/ClusterManagementOperationExecutor.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/api/statemachines/executors/clustermanagement/ClusterManagementOperationExecutor.java @@ -5,10 +5,7 @@ import de.umr.raft.raftlogreplicationdemo.replication.api.statemachines.executors.OperationExecutor; import de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.data.management.ClusterState; import de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.data.management.ClusterStateManager; -import de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.executors.clustermanagement.DetachPartitionOperationExecutor; -import de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.executors.clustermanagement.HeartbeatOperationExecutor; -import de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.executors.clustermanagement.ListPartitionsOperationExecutor; -import de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.executors.clustermanagement.RegisterPartitionOperationExecutor; +import de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.executors.clustermanagement.*; import org.apache.ratis.thirdparty.com.google.protobuf.Message; import java.util.concurrent.CompletableFuture; @@ -21,12 +18,20 @@ static ClusterManagementOperationExecutor of(ClusterManagementOperationProto clu switch (clusterManagementOperation.getOperationType()) { case REGISTER_PARTITION: return RegisterPartitionOperationExecutor.of(clusterManagementOperation); + case INSTANTIATE_PARTITION: + return ProvisionPartitionOperationExecutor.of(clusterManagementOperation); + case ACKNOWLEDGE_PARTITION_REGISTRATION: + return AcknowledgePartitionRegistrationOperationExecutor.of(clusterManagementOperation); case DETACH_PARTITION: return DetachPartitionOperationExecutor.of(clusterManagementOperation); case LIST_PARTITIONS: return ListPartitionsOperationExecutor.of(clusterManagementOperation); case HEARTBEAT: return HeartbeatOperationExecutor.of(clusterManagementOperation); + case GET_CLUSTER_HEALTH: + return GetClusterHealthOperationExecutor.of(clusterManagementOperation); + case GET_STATEMACHINE_FOR_RAFT_GROUP: + return GetStateMachineForRaftGroupOperationExecutor.of(clusterManagementOperation); case NULL: case UNRECOGNIZED: default: diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/api/statemachines/messages/clustermanagement/ClusterManagementOperationMessage.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/api/statemachines/messages/clustermanagement/ClusterManagementOperationMessage.java index 52d7ad7..7a3a325 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/api/statemachines/messages/clustermanagement/ClusterManagementOperationMessage.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/api/statemachines/messages/clustermanagement/ClusterManagementOperationMessage.java @@ -8,6 +8,7 @@ import lombok.Getter; import lombok.RequiredArgsConstructor; import lombok.val; +import org.apache.ratis.protocol.RaftGroupId; import org.apache.ratis.protocol.RaftPeer; import org.apache.ratis.thirdparty.com.google.protobuf.ByteString; import org.apache.ratis.thirdparty.com.google.protobuf.InvalidProtocolBufferException; @@ -35,6 +36,7 @@ public boolean isTransactionMessage() { switch (clusterManagementOperation.getOperationType()) { case REGISTER_PARTITION: case DETACH_PARTITION: + case ACKNOWLEDGE_PARTITION_REGISTRATION: case HEARTBEAT: return true; } @@ -72,12 +74,41 @@ public static ClusterManagementOperationMessage createRegisterPartitionOperation return ClusterManagementOperationMessage.of(metadataOperation); } - public static ClusterManagementOperationMessage createDetachPartitionOperationMessage(String partitionName) { + public static ClusterManagementOperationMessage createProvisionPartitionOperationMessage(String stateMachineClassname, String partitionName) { + val metadataOperation = ClusterManagementOperationProto.newBuilder() + .setOperationType(ClusterManagementOperationType.INSTANTIATE_PARTITION) + .setRequest(ClusterManagementRequestProto.newBuilder() + .setInstantiatePartitionRequest(InstantiatePartitionRequestProto.newBuilder() + .setStatemachineClassname(stateMachineClassname) + .setPartitionName(partitionName) + .build()) + .build()) + .build(); + + return ClusterManagementOperationMessage.of(metadataOperation); + } + + public static ClusterManagementOperationMessage createAcknowledgePartitionRegistrationOperationMessage(String stateMachineClassname, String partitionName) { + val metadataOperation = ClusterManagementOperationProto.newBuilder() + .setOperationType(ClusterManagementOperationType.ACKNOWLEDGE_PARTITION_REGISTRATION) + .setRequest(ClusterManagementRequestProto.newBuilder() + .setAcknowledgePartitionRegistrationRequest(AcknowledgePartitionRegistrationProto.newBuilder() + .setStatemachineClassname(stateMachineClassname) + .setPartitionName(partitionName) + .build()) + .build()) + .build(); + + return ClusterManagementOperationMessage.of(metadataOperation); + } + + public static ClusterManagementOperationMessage createDetachPartitionOperationMessage(String stateMachineClassname, String partitionName) { val metadataOperation = ClusterManagementOperationProto.newBuilder() .setOperationType(ClusterManagementOperationType.DETACH_PARTITION) .setRequest(ClusterManagementRequestProto.newBuilder() .setDetachPartitionRequest(DetachPartitionRequestProto.newBuilder() .setPartitionName(partitionName) + .setStatemachineClassname(stateMachineClassname) .build()) .build()) .build(); @@ -115,6 +146,31 @@ public static ClusterManagementOperationMessage createHeartbeatOperationMessage( return ClusterManagementOperationMessage.of(metadataOperation); } + public static ClusterManagementOperationMessage createGetHealthOperationMessage() { + val metadataOperation = ClusterManagementOperationProto.newBuilder() + .setOperationType(ClusterManagementOperationType.GET_CLUSTER_HEALTH) + .setRequest(ClusterManagementRequestProto.newBuilder() + .setGetClusterHealthRequestProto(GetClusterHealthRequestProto.newBuilder() + .build()) + .build()) + .build(); + + return ClusterManagementOperationMessage.of(metadataOperation); + } + + public static ClusterManagementOperationMessage getStateMachineForRaftGroupOperationMessage(RaftGroupId raftGroupId) { + val metadataOperation = ClusterManagementOperationProto.newBuilder() + .setOperationType(ClusterManagementOperationType.GET_STATEMACHINE_FOR_RAFT_GROUP) + .setRequest(ClusterManagementRequestProto.newBuilder() + .setGetStateMachineForRaftGroupRequest(GetStateMachineForRaftGroupProto.newBuilder() + .setRaftGroupId(raftGroupId.toByteString()) + .build()) + .build()) + .build(); + + return ClusterManagementOperationMessage.of(metadataOperation); + } + public static ClusterManagementOperationMessage createNullOperationMessage() { val clusterManagementOperation = ClusterManagementOperationProto.newBuilder() .setOperationType(ClusterManagementOperationType.NULL) diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/ApplicationLogicServer.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/ApplicationLogicServer.java new file mode 100644 index 0000000..c51a1a2 --- /dev/null +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/ApplicationLogicServer.java @@ -0,0 +1,234 @@ +package de.umr.raft.raftlogreplicationdemo.replication.impl; + +import de.umr.raft.raftlogreplicationdemo.config.RaftConfig; +import de.umr.raft.raftlogreplicationdemo.replication.IReplicationServer; +import de.umr.raft.raftlogreplicationdemo.replication.api.PartitionInfo; +import de.umr.raft.raftlogreplicationdemo.replication.impl.clients.ClusterMetadataReplicationClient; +import de.umr.raft.raftlogreplicationdemo.replication.impl.facades.clustermanagement.ClusterManager; +import de.umr.raft.raftlogreplicationdemo.replication.impl.facades.metadata.ReplicatedMetadataMap; +import de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.IdleStateMachine; +import lombok.Getter; +import lombok.val; +import org.apache.ratis.client.RaftClient; +import org.apache.ratis.conf.Parameters; +import org.apache.ratis.conf.RaftProperties; +import org.apache.ratis.grpc.GrpcConfigKeys; +import org.apache.ratis.grpc.GrpcFactory; +import org.apache.ratis.protocol.*; +import org.apache.ratis.server.RaftServer; +import org.apache.ratis.server.RaftServerConfigKeys; +import org.apache.ratis.util.Daemon; +import org.apache.ratis.util.FileUtils; +import org.apache.ratis.util.NetUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +import java.io.File; +import java.io.IOException; +import java.lang.reflect.InvocationTargetException; +import java.nio.charset.StandardCharsets; +import java.util.Collections; +import java.util.List; +import java.util.Objects; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import java.util.stream.Collectors; + +@Component +public class ApplicationLogicServer implements IReplicationServer.Raft { + + // TODO unify common code of both servers in abstract class + + private static final Logger LOG = + LoggerFactory.getLogger(ApplicationLogicServer.class); + + @Getter private RaftServer raftServer; + private final RaftConfig raftConfig; + private final ClusterManager clusterManager; + private final ClusterMetadataReplicationClient clusterMetadataClient; + + private final Daemon heartbeatEmitter; + + @Getter private boolean isRunning = false; + + public static final String SERVER_NAME = "application-server"; + + public static final String BASE_GROUP_NAME = SERVER_NAME + ":base"; + public static final UUID BASE_GROUP_UUID = UUID.nameUUIDFromBytes(BASE_GROUP_NAME.getBytes(StandardCharsets.UTF_8)); + public static final RaftGroupId BASE_GROUP_ID = RaftGroupId.valueOf(BASE_GROUP_UUID); + + @Autowired + public ApplicationLogicServer(RaftConfig raftConfig, ClusterManager clusterManager, ClusterMetadataReplicationClient clusterMetadataClient) throws InvocationTargetException, InstantiationException, IllegalAccessException, IOException, NoSuchMethodException { + this.raftConfig = raftConfig; + this.clusterManager = clusterManager; + this.clusterMetadataClient = clusterMetadataClient; + + heartbeatEmitter = new Daemon(new HeartbeatEmitter(), HeartbeatEmitter.DAEMON_NAME); + } + + /** + * Returns the base raft group need to initialize the server and responsible for keeping the server alive + */ + private RaftGroup getBaseRaftGroup() { + var peer = RaftPeer.newBuilder() + .setId(raftConfig.getCurrentPeerId()) + .setAddress(raftConfig.getReplicationAddress()) + .build(); + return RaftGroup.valueOf(BASE_GROUP_ID, peer); + } + + private RaftServer buildRaftServer() throws IOException { + RaftGroup baseRaftGroup = getBaseRaftGroup(); + + // find current peer object based on application parameter + RaftPeer currentPeer = + baseRaftGroup.getPeer(RaftPeerId.valueOf(raftConfig.getCurrentPeerId())); + + LOG.info("[App Server] Current peer id: {}", raftConfig.getCurrentPeerId()); + LOG.info("[App Server] Current peer address: {}", currentPeer.getAddress()); + + val properties = new RaftProperties(); + + RaftServerConfigKeys.setStorageDir(properties, + Collections.singletonList(getStorageDir())); + + // RaftServerConfigKeys.setSleepDeviationThreshold(); + + // TODO not working, thus can not be tested +// RaftServerConfigKeys.Log.setUseMemory(properties, +// true); + + val port = NetUtils.createSocketAddr(currentPeer.getAddress()).getPort(); + + GrpcConfigKeys.Server.setPort(properties, port); + + //create and start the Raft server + return RaftServer.newBuilder() + .setGroup(baseRaftGroup) + .setProperties(properties) + .setServerId(currentPeer.getId()) + .setStateMachineRegistry(raftGroupId -> { + if (raftGroupId.equals(BASE_GROUP_ID)) { + // we need to spawn at least a stub state machine on server startup, + // this is a ratis limitation + return new IdleStateMachine(); + } + // TODO how to instantiate the right state machine here? How to get that info? + // -> May need to poll ClusterManager for group->stateMachine mapping + try { + var stateMachineClass = clusterManager.getStateMachineForRaftGroupCached(raftGroupId); + LOG.info("Registering state machine {}", stateMachineClass.getSimpleName()); + return stateMachineClass.getConstructor().newInstance(); + } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | InvocationTargetException | NoSuchMethodException e) { + e.printStackTrace(); + // TODO something more meaningful + return new IdleStateMachine(); + } + }) + .build(); + + // TODO start daemon to send heartbeats to management + } + + // TODO won't work with baseRaftGroup + /** + * Creates a basic client for this server + * @return RaftClient + */ + public RaftClient createClient() { + val baseRaftGroup = getBaseRaftGroup(); + val properties = new RaftProperties(); + + RaftClient.Builder builder = RaftClient.newBuilder() + .setRaftGroup(baseRaftGroup) + .setProperties(properties) + .setClientRpc( + new GrpcFactory(new Parameters()) + .newRaftClientRpc(ClientId.randomId(), properties)); + return builder.build(); + } + + public void start() throws IOException, ExecutionException, InterruptedException, InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException { + raftServer = buildRaftServer(); + raftServer.start(); + + isRunning = true; + + heartbeatEmitter.start(); + LOG.info("Application server started"); + } + + private File getStorageDir() { + return new File(raftConfig.getStoragePath() + "/" + SERVER_NAME); + } + + public void cleanUp() throws IOException { + FileUtils.deleteFully(getStorageDir()); + } + + private RaftPeer getThisPeer() { + RaftGroup baseRaftGroup = getBaseRaftGroup(); + + // find current peer object based on application parameter + return baseRaftGroup.getPeer(RaftPeerId.valueOf(raftConfig.getCurrentPeerId())); + } + + public List getAllDivisions() throws IOException, InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException { + return clusterManager.listPartitions().stream().map(PartitionInfo::getRaftGroup).map(raftGroup -> { + RaftGroupId groupId = raftGroup.getGroupId(); + try { + return getRaftServer().getDivision(groupId); + } catch (IOException e) { + e.printStackTrace(); + return null; + } + }).filter(Objects::nonNull).collect(Collectors.toList()); + } + + private void broadcastDivisionInfo() throws IOException, InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException, ExecutionException, InterruptedException { + List divisions = getAllDivisions(); + for (RaftServer.Division division : divisions) { + val divisionMetaData = ReplicatedMetadataMap.ofDivision(division.getMemberId().toString(), clusterMetadataClient); + val currentTerm = division.getInfo().getCurrentTerm(); + val lastAppliedIndex = division.getInfo().getLastAppliedIndex(); + val role = division.getInfo().getCurrentRole(); + val isAlive = division.getInfo().isAlive(); + + // val serverMetrics = division.getRaftServerMetrics(); + // val logMetrics = division.getRaftLog().getRaftLogMetrics().toString(); + + divisionMetaData.putAsync("currentTerm", String.valueOf(currentTerm)); + divisionMetaData.putAsync("lastAppliedIndex", String.valueOf(lastAppliedIndex)); + divisionMetaData.putAsync("role", role.name()); + divisionMetaData.putAsync("isAlive", String.valueOf(isAlive)); + + // divisionMetaData.putAsync("serverMetrics", serverMetrics.toString()); + // divisionMetaData.putAsync("logMetrics", String.valueOf(logMetrics)); + } + } + + private class HeartbeatEmitter implements Runnable { + + static final String DAEMON_NAME = "peer-heartbeat-emitter"; + final RaftPeer thisPeer; + + public HeartbeatEmitter() { + thisPeer = getThisPeer(); + } + + @Override + public void run() { + while (true) { + try { + Thread.sleep(raftConfig.getHeartbeatInterval()); + clusterManager.sendHeartbeat(thisPeer); + broadcastDivisionInfo(); + } catch (Exception e) { + LOG.error("Exception while sending peer heartbeat", e); + } + } + } + } +} diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/ClusterManagementMultiRaftServer.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/ClusterManagementMultiRaftServer.java index 3f0eaa4..389da20 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/ClusterManagementMultiRaftServer.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/ClusterManagementMultiRaftServer.java @@ -14,6 +14,7 @@ import java.util.UUID; //@Component +@Deprecated public class ClusterManagementMultiRaftServer extends MultiRaftReplicationServer { // TODO AppLogicServer diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/ClusterManagementServer.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/ClusterManagementServer.java index 683a8a3..2729f8a 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/ClusterManagementServer.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/ClusterManagementServer.java @@ -4,8 +4,10 @@ import de.umr.raft.raftlogreplicationdemo.models.sysinfo.RaftGroupInfo; import de.umr.raft.raftlogreplicationdemo.replication.IReplicationServer; import de.umr.raft.raftlogreplicationdemo.replication.impl.clients.ClusterMetadataReplicationClient; +import de.umr.raft.raftlogreplicationdemo.replication.impl.facades.clustermanagement.ClusterManager; import de.umr.raft.raftlogreplicationdemo.replication.impl.facades.metadata.ReplicatedMetadataMap; import de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.ClusterManagementStateMachine; +import de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.ClusterMetadataStateMachine; import de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.providers.StateMachineProvider; import lombok.Getter; import lombok.val; @@ -36,6 +38,7 @@ import java.util.concurrent.ExecutionException; import java.util.stream.Collectors; import java.util.stream.Stream; +import java.util.stream.StreamSupport; @Component public class ClusterManagementServer implements IReplicationServer.Raft { @@ -45,9 +48,11 @@ public class ClusterManagementServer implements IReplicationServer.Raft { private static final Logger LOG = LoggerFactory.getLogger(ClusterManagementServer.class); - private final RaftServer raftServer; + @Getter private final RaftServer raftServer; private final RaftConfig raftConfig; + private final ClusterManager clusterManager; private StateMachine clusterManagementStateMachine; + private StateMachine clusterMetadataStateMachine; @Getter private boolean isRunning = false; @@ -57,9 +62,14 @@ public class ClusterManagementServer implements IReplicationServer.Raft { public static final UUID BASE_GROUP_UUID = UUID.nameUUIDFromBytes(BASE_GROUP_NAME.getBytes(StandardCharsets.UTF_8)); public static final RaftGroupId BASE_GROUP_ID = RaftGroupId.valueOf(BASE_GROUP_UUID); + public static final String META_GROUP_NAME = SERVER_NAME + ":meta"; + public static final UUID META_GROUP_UUID = UUID.nameUUIDFromBytes(META_GROUP_NAME.getBytes(StandardCharsets.UTF_8)); + public static final RaftGroupId META_GROUP_ID = RaftGroupId.valueOf(META_GROUP_UUID); + @Autowired - public ClusterManagementServer(RaftConfig raftConfig) throws InvocationTargetException, InstantiationException, IllegalAccessException, IOException, NoSuchMethodException { + public ClusterManagementServer(RaftConfig raftConfig, ClusterManager clusterManager) throws InvocationTargetException, InstantiationException, IllegalAccessException, IOException, NoSuchMethodException { this.raftConfig = raftConfig; + this.clusterManager = clusterManager; this.raftServer = buildRaftServer(); } @@ -70,10 +80,15 @@ private RaftGroup getBaseRaftGroup() { return raftConfig.getManagementRaftGroup(BASE_GROUP_UUID); } + public RaftGroup getMetadataRaftGroup() { + return raftConfig.getManagementRaftGroup(META_GROUP_UUID); + } + private RaftServer buildRaftServer() throws IOException { RaftGroup baseRaftGroup = getBaseRaftGroup(); - clusterManagementStateMachine = new ClusterManagementStateMachine(raftConfig); + clusterManagementStateMachine = new ClusterManagementStateMachine(raftConfig, clusterManager); + clusterMetadataStateMachine = new ClusterMetadataStateMachine(); // find current peer object based on application parameter RaftPeer currentPeer = @@ -105,11 +120,12 @@ private RaftServer buildRaftServer() throws IOException { .setStateMachineRegistry(raftGroupId -> { if (raftGroupId.equals(BASE_GROUP_ID)) { return clusterManagementStateMachine; + } else if (raftGroupId.equals(META_GROUP_ID)) { + return clusterMetadataStateMachine; } return null; // TODO error handling }) .build(); - // TODO use raftServer.setConfiguration() for hot config changes ( new peers added etc. ) } @@ -131,8 +147,32 @@ public RaftClient createClient() { } public void start() throws IOException, ExecutionException, InterruptedException, InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException { + LOG.info("Attempt to start raft server"); raftServer.start(); + val metadataRaftGroup = getMetadataRaftGroup(); + + // TODO what happens on repeated calls of this? + + val metaGroupRegistered = StreamSupport.stream(raftServer.getGroupIds().spliterator(), false).anyMatch(raftGroupId -> raftGroupId.equals(metadataRaftGroup.getGroupId())); + + if (!metaGroupRegistered) { + createClient() + .getGroupManagementApi(RaftPeerId.getRaftPeerId(raftConfig.getCurrentPeerId())) + .add(metadataRaftGroup); + + // TODO also do this on partition provisioning + clusterManager.broadcastRaftGroupInfo( + ClusterManagementServer.SERVER_NAME, + metadataRaftGroup.getGroupId().toString(), + META_GROUP_UUID, + META_GROUP_NAME, + ClusterMetadataStateMachine.class.getCanonicalName(), + raftConfig.getManagementPeersList().stream().map(raftPeer -> raftPeer.getId().toString()).collect(Collectors.toList())); + } else { + LOG.info("Meta group already registered"); + } + isRunning = true; LOG.info("Cluster meta quorum server started"); } diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/MultiRaftReplicationServer.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/MultiRaftReplicationServer.java index 5a8397f..71f6d86 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/MultiRaftReplicationServer.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/MultiRaftReplicationServer.java @@ -34,6 +34,7 @@ import java.util.stream.Collectors; import java.util.stream.Stream; +@Deprecated public abstract class MultiRaftReplicationServer implements IReplicationServer.Raft { protected static final Logger LOG = @@ -150,8 +151,8 @@ private RaftServer buildRaftServer() throws IOException { RaftPeer currentPeer = baseRaftGroup.getPeer(RaftPeerId.valueOf(raftConfig.getCurrentPeerId())); - LOG.info("Current peer id: {}", raftConfig.getCurrentPeerId()); - LOG.info("Current peer address: {}", currentPeer.getAddress()); + LOG.info("[Mngmt Server] Current peer id: {}", raftConfig.getCurrentPeerId()); + LOG.info("[Mngmt Server] Current peer address: {}", currentPeer.getAddress()); val properties = new RaftProperties(); diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/clients/ClusterManagementClient.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/clients/ClusterManagementClient.java index 3cac14b..0fb43ed 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/clients/ClusterManagementClient.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/clients/ClusterManagementClient.java @@ -4,6 +4,7 @@ import de.umr.raft.raftlogreplicationdemo.replication.api.statemachines.messages.clustermanagement.ClusterManagementOperationMessage; import de.umr.raft.raftlogreplicationdemo.replication.impl.ClusterManagementServer; import org.apache.ratis.protocol.RaftGroup; +import org.apache.ratis.protocol.RaftGroupId; import org.apache.ratis.protocol.RaftPeer; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; @@ -17,8 +18,16 @@ public static ClusterManagementOperationMessage createRegisterPartitionOperation return ClusterManagementOperationMessage.Factory.createRegisterPartitionOperationMessage(stateMachineClassname, partitionName, replicationFactor); } - public static ClusterManagementOperationMessage createDetachPartitionOperationMessage(String partitionName) { - return ClusterManagementOperationMessage.Factory.createDetachPartitionOperationMessage(partitionName); + public static ClusterManagementOperationMessage createProvisionPartitionOperationMessage(String stateMachineClassname, String partitionName) { + return ClusterManagementOperationMessage.Factory.createProvisionPartitionOperationMessage(stateMachineClassname, partitionName); + } + + public static ClusterManagementOperationMessage createAcknowledgePartitionRegistrationOperationMessage(String stateMachineClassname, String partitionName) { + return ClusterManagementOperationMessage.Factory.createAcknowledgePartitionRegistrationOperationMessage(stateMachineClassname, partitionName); + } + + public static ClusterManagementOperationMessage createDetachPartitionOperationMessage(String stateMachineClassname, String partitionName) { + return ClusterManagementOperationMessage.Factory.createDetachPartitionOperationMessage(stateMachineClassname, partitionName); } public static ClusterManagementOperationMessage createListPartitionsOperationMessage(String stateMachineClassname) { @@ -29,6 +38,14 @@ public static ClusterManagementOperationMessage createHeartbeatOperationMessage( return ClusterManagementOperationMessage.Factory.createHeartbeatOperationMessage(raftPeer); } + public static ClusterManagementOperationMessage createGetHealthOperationMessage() { + return ClusterManagementOperationMessage.Factory.createGetHealthOperationMessage(); + } + + public static ClusterManagementOperationMessage getStateMachineForRaftGroupOperationMessage(RaftGroupId raftGroupId) { + return ClusterManagementOperationMessage.Factory.getStateMachineForRaftGroupOperationMessage(raftGroupId); + } + @Override protected UUID getRaftGroupUUID() { return ClusterManagementServer.BASE_GROUP_UUID; diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/clients/ClusterMetadataReplicationClient.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/clients/ClusterMetadataReplicationClient.java index 340fcf9..c3865d7 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/clients/ClusterMetadataReplicationClient.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/clients/ClusterMetadataReplicationClient.java @@ -3,6 +3,7 @@ import de.umr.raft.raftlogreplicationdemo.config.RaftConfig; import de.umr.raft.raftlogreplicationdemo.replication.api.statemachines.messages.metadata.MetadataOperationMessage; import de.umr.raft.raftlogreplicationdemo.replication.impl.ClusterManagementMultiRaftServer; +import de.umr.raft.raftlogreplicationdemo.replication.impl.ClusterManagementServer; import org.apache.ratis.protocol.RaftGroup; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; @@ -35,12 +36,14 @@ public static MetadataOperationMessage createGetAllOperationMessage() { @Override protected UUID getRaftGroupUUID() { - return UUID.nameUUIDFromBytes((String.format("%s:metadata", ClusterManagementMultiRaftServer.SERVER_NAME)).getBytes(StandardCharsets.UTF_8)); + //return UUID.nameUUIDFromBytes((String.format("%s:metadata", ClusterManagementMultiRaftServer.SERVER_NAME)).getBytes(StandardCharsets.UTF_8)); + return ClusterManagementServer.META_GROUP_UUID; } @Override protected RaftGroup getRaftGroup(UUID raftGroupUUID) { return raftConfig.getManagementRaftGroup(getRaftGroupUUID()); + //return clusterManagementServer.getMetadataRaftGroup(); } @Autowired diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/clients/CounterReplicationClient.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/clients/CounterReplicationClient.java index a9e01d1..8e9161e 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/clients/CounterReplicationClient.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/clients/CounterReplicationClient.java @@ -2,6 +2,7 @@ import de.umr.raft.raftlogreplicationdemo.config.RaftConfig; import de.umr.raft.raftlogreplicationdemo.replication.api.statemachines.messages.counter.CounterOperationMessage; +import org.apache.ratis.protocol.RaftGroup; import org.springframework.beans.factory.annotation.Autowired; import java.util.HashMap; @@ -12,14 +13,14 @@ public class CounterReplicationClient extends PartitionedRaftReplicationClient INSTANCES; - public static CounterReplicationClient of(RaftConfig raftConfig, String partitionId) { + public static CounterReplicationClient of(RaftConfig raftConfig, String partitionId, RaftGroup raftGroup) { if (INSTANCES == null) { INSTANCES = new HashMap<>(); } if (!INSTANCES.containsKey(partitionId)) { CounterReplicationClient client = - new CounterReplicationClient(raftConfig, partitionId); + new CounterReplicationClient(raftConfig, partitionId, raftGroup); INSTANCES.put(partitionId, client); } @@ -39,7 +40,7 @@ public static CounterOperationMessage createGetOperationMessage() { } @Autowired - public CounterReplicationClient(RaftConfig raftConfig, String counterId) { - super(raftConfig, counterId); + public CounterReplicationClient(RaftConfig raftConfig, String counterId, RaftGroup raftGroup) { + super(raftConfig, counterId, raftGroup); } } diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/clients/EventStoreReplicationClient.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/clients/EventStoreReplicationClient.java index 631d734..03d6e81 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/clients/EventStoreReplicationClient.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/clients/EventStoreReplicationClient.java @@ -6,6 +6,7 @@ import de.umr.event.schema.EventSchema; import de.umr.raft.raftlogreplicationdemo.config.RaftConfig; import de.umr.raft.raftlogreplicationdemo.replication.api.statemachines.messages.eventstore.EventStoreOperationMessage; +import org.apache.ratis.protocol.RaftGroup; import org.apache.ratis.thirdparty.com.google.protobuf.InvalidProtocolBufferException; import org.springframework.beans.factory.annotation.Autowired; @@ -57,7 +58,7 @@ public static EventStoreOperationMessage createClearEventsOperationMessage() { // TODO query message @Autowired - public EventStoreReplicationClient(RaftConfig raftConfig, String streamId) { - super(raftConfig, streamId); + public EventStoreReplicationClient(RaftConfig raftConfig, String streamId, RaftGroup raftGroup) { + super(raftConfig, streamId, raftGroup); } } diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/clients/PartitionedRaftReplicationClient.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/clients/PartitionedRaftReplicationClient.java index 8c0fdd4..9542582 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/clients/PartitionedRaftReplicationClient.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/clients/PartitionedRaftReplicationClient.java @@ -2,6 +2,7 @@ import de.umr.raft.raftlogreplicationdemo.config.RaftConfig; import de.umr.raft.raftlogreplicationdemo.replication.api.statemachines.messages.ExecutableMessage; +import de.umr.raft.raftlogreplicationdemo.replication.impl.ApplicationLogicServer; import de.umr.raft.raftlogreplicationdemo.replication.impl.ClusterManagementMultiRaftServer; import lombok.Getter; import org.apache.ratis.protocol.RaftGroup; @@ -15,6 +16,7 @@ public abstract class PartitionedRaftReplicationClient extends RaftReplicationClient { @Getter private final String partitionId; + @Getter private final RaftGroup raftGroup; // TODO to know which partition, this client must ask meta cluster in advance // TODO even for having a singleton partition, must implement orchestration by meta cluster @@ -29,7 +31,8 @@ public abstract class PartitionedRaftReplicationClient stateMachineGroupMapping = new HashMap<>(); + Logger LOG = LoggerFactory.getLogger(ClusterManager.class); +// private final Daemon heartbeatEmitter; + @Autowired - public ClusterManager(ClusterManagementClient clusterManagementClient, RaftConfig raftConfig) throws IOException, ExecutionException, InterruptedException { + public ClusterManager(ClusterManagementClient clusterManagementClient, ClusterMetadataReplicationClient clusterMetadataClient, RaftConfig raftConfig) throws IOException, ExecutionException, InterruptedException { LOG.info("Instantiating the Cluster Manager"); this.clusterManagementClient = clusterManagementClient; + this.clusterMetadataClient = clusterMetadataClient; this.raftConfig = raftConfig; + +// heartbeatEmitter = new Daemon(new HeartbeatEmitter(), HeartbeatEmitter.DAEMON_NAME); +// heartbeatEmitter.start(); } private ClusterManagementOperationResultProto sendAndExecuteOperationMessage(ClusterManagementOperationMessage operationMessage) { @@ -81,8 +96,8 @@ public PartitionInfo registerPartition(Class sta var operationMessage = ClusterManagementClient.createRegisterPartitionOperationMessage( stateMachineClassName, - partitionName, - replicationFactor + partitionName, + replicationFactor ); ClusterManagementOperationResultProto resultProto = null; @@ -94,24 +109,239 @@ public PartitionInfo registerPartition(Class sta var responseProto = resultProto.getResponse().getRegisterPartitionResponse(); var partitionInfoProto = responseProto.getPartitionInfo(); + // in async thread, don't let client wait + FutureUtil.wrapInCompletableFuture(() -> { + requestProvisioning(stateMachineClassName, partitionName); + acknowledgeProvisioning(stateMachineClassName, partitionName); + + var raftGroupProto = partitionInfoProto.getRaftGroup(); + + broadcastRaftGroupInfo( + ApplicationLogicServer.SERVER_NAME, + RaftGroupId.valueOf(raftGroupProto.getId()).toString(), + UUID.fromString(raftGroupProto.getUuid()), //META_GROUP_UUID, + raftGroupProto.getName(), //META_GROUP_NAME, + stateMachineClass.getCanonicalName(), + raftGroupProto.getPeersList().stream().map(raftPeer -> RaftPeerId.valueOf(raftPeer.getId()).toString()).collect(Collectors.toList())); + //raftConfig.getManagementPeersList().stream().map(raftPeer -> raftPeer.getId().toString()).collect(Collectors.toList())); + return null; + }); + return PartitionInfo.of(partitionInfoProto, stateMachineClassName); } + // called as query message only on leader node to prevent all nodes to provision the same partition + private ClusterManagementOperationResultProto requestProvisioning(String stateMachineClassname, String partitionName) { + LOG.info("Requesting the provisioning of partitions"); + + var operationMessage = + ClusterManagementClient.createProvisionPartitionOperationMessage( + stateMachineClassname, + partitionName + ); + + var result = sendAndExecuteOperationMessage(operationMessage); + + LOG.info("Provisioning request done"); + + return result; + } + + private ClusterManagementOperationResultProto acknowledgeProvisioning(String stateMachineClassname, String partitionName) { + LOG.info("Acknowledging the provisioning of partitions"); + + var operationMessage = + ClusterManagementClient.createAcknowledgePartitionRegistrationOperationMessage( + stateMachineClassname, + partitionName + ); + + LOG.info("Before send ack request"); + + var result = sendAndExecuteOperationMessage(operationMessage); + + LOG.info("Acknowledging request done"); + + return result; + } + + public PartitionInfo detachPartition(Class stateMachineClass, String partitionName) { + + var stateMachineClassName = stateMachineClass.getCanonicalName(); + + var operationMessage = + ClusterManagementClient.createDetachPartitionOperationMessage( + stateMachineClassName, + partitionName + ); + + ClusterManagementOperationResultProto resultProto = null; + + resultProto = sendAndExecuteOperationMessage(operationMessage); + + // unpack proto + // TODO check if it contains response + var responseProto = resultProto.getResponse().getRegisterPartitionResponse(); + var partitionInfoProto = responseProto.getPartitionInfo(); + + return PartitionInfo.of(partitionInfoProto, stateMachineClassName); + } + + private List listPartitions(String stateMachineClassname) { + var operationMessage = + ClusterManagementClient.createListPartitionsOperationMessage(stateMachineClassname); + + ClusterManagementOperationResultProto resultProto = null; + + resultProto = sendAndExecuteOperationMessage(operationMessage); + + // unpack proto + // TODO check if it contains response + var responseProto = resultProto.getResponse().getListPartitionsResponse(); + var partitionInfoProtos = responseProto.getPartitionInfoList(); + + return partitionInfoProtos.stream().map(PartitionInfo::of).collect(Collectors.toList()); + } + + private static final String ALL_STATE_MACHINES = "ALL"; + + public List listPartitions() { + return listPartitions(ALL_STATE_MACHINES); + } + + public List listPartitions(Class stateMachineClass) { + var stateMachineClassName = stateMachineClass.getCanonicalName(); + return listPartitions(stateMachineClassName); + } + + public void updateStateMachineRaftGroupCache() { + + } + + private Class getStateMachineForRaftGroup(RaftGroupId raftGroupId) throws ClassNotFoundException { + LOG.info("getStateMachineForRaftGroup {}", raftGroupId); + + var operationMessage = + ClusterManagementClient.getStateMachineForRaftGroupOperationMessage(raftGroupId); + + ClusterManagementOperationResultProto resultProto = null; + + resultProto = sendAndExecuteOperationMessage(operationMessage); + + var responseProto = resultProto.getResponse().getGetStateMachineForRaftGroupResponse(); + var stateMachineClassName = responseProto.getStateMachineClassname(); + + return Class.forName(stateMachineClassName).asSubclass(BaseStateMachine.class); + } + + // TODO must cache this. Can't access this while clustermanager is already busy registering a partition + public Class getStateMachineForRaftGroupCached(RaftGroupId raftGroupId) throws ClassNotFoundException { + LOG.info("getStateMachineForRaftGroup {}", raftGroupId); + + /*var operationMessage = + ClusterManagementClient.getStateMachineForRaftGroupOperationMessage(raftGroupId); + + ClusterManagementOperationResultProto resultProto = null; + + resultProto = sendAndExecuteOperationMessage(operationMessage); + + var responseProto = resultProto.getResponse().getGetStateMachineForRaftGroupResponse(); + var stateMachineClassName = responseProto.getStateMachineClassname();*/ + + LOG.info("stateMachineGroupMapping {}", stateMachineGroupMapping); + var stateMachineClassname = stateMachineGroupMapping.get(raftGroupId); + LOG.info("stateMachineClassname {}", stateMachineClassname); + + if (stateMachineClassname == null || stateMachineClassname.isEmpty()) return getStateMachineForRaftGroup(raftGroupId); + + return Class.forName(stateMachineClassname).asSubclass(BaseStateMachine.class); + } + // public void detachPartition() { // -// } -// -// public List listPartitions() { -// // } - // TODO use in heartbeat runner, but first test with controller public void sendHeartbeat(RaftPeer thisPeer) { + // LOG.info("Sending heartbeat from {}", thisPeer); var operationMessage = ClusterManagementClient.createHeartbeatOperationMessage(thisPeer); sendAndExecuteOperationMessage(operationMessage); } - // TODO methods to retrieve cluster health etc (like previously in metadata service) + public ClusterHealth getClusterHealth() { + var operationMessage = + ClusterManagementClient.createGetHealthOperationMessage(); + + sendAndExecuteOperationMessage(operationMessage); + + ClusterManagementOperationResultProto resultProto = null; + + resultProto = sendAndExecuteOperationMessage(operationMessage); + + // unpack proto + // TODO check if it contains response + var responseProto = resultProto.getResponse().getClusterHealthResponse(); + var isHealthy = responseProto.getIsHealthy(); + var nodeHealths = responseProto.getNodeInfoList(); + + return ClusterHealth.of(isHealthy, nodeHealths.stream().map(nodeHealthProto -> NodeHealth.of(nodeHealthProto)).collect(Collectors.toList())); + } + + /** + * Returns the base raft group responsible for handling the cluster management + */ + private RaftGroup getBaseRaftGroup() { + return raftConfig.getManagementRaftGroup(ClusterManagementServer.BASE_GROUP_UUID); + } + + // cheap solution, but not efficient + public void setStateMachineGroupMappingCache(Map stateMachineGroupMapping) { + LOG.info("Updating state machine group mapping cache with {}", stateMachineGroupMapping); + + this.stateMachineGroupMapping.clear(); + this.stateMachineGroupMapping.putAll(stateMachineGroupMapping); + } + + public void broadcastRaftGroupInfo(String servername, String groupId, UUID groupUUID, String groupName, String stateMachineType, List nodeIds) throws ExecutionException, InterruptedException, InvalidProtocolBufferException { + val groupRegistryDataMap = ReplicatedMetadataMap.ofRaftGroupRegistry(clusterMetadataClient); + val groupMetaDataMap = ReplicatedMetadataMap.ofRaftGroupScope(groupId, clusterMetadataClient); + + String raftGroupsString; + try { + raftGroupsString = groupRegistryDataMap.get("groups"); + } catch (NoSuchElementException e) { + raftGroupsString = null; + } + + if (raftGroupsString == null) raftGroupsString = ""; + + val raftGroups = raftGroupsString.split(";"); + val raftGroupsSet = new HashSet(Arrays.asList(raftGroups)); + raftGroupsSet.add(groupId); + raftGroupsString = String.join(";", raftGroupsSet); + + groupRegistryDataMap.put("groups", raftGroupsString); + + // add more info about raft group here + groupRegistryDataMap.put(groupId + "-UUID", groupUUID.toString()); + groupMetaDataMap.put("UUID", groupUUID.toString()); + groupMetaDataMap.put("name", groupName); + groupMetaDataMap.put("server", servername); + groupMetaDataMap.put("sm-class", stateMachineType); + groupMetaDataMap.put("sm-name", stateMachineType); + groupMetaDataMap.put("nodes", String.join(";", nodeIds)); + } + + // returns only the division for the queried node... +/* public RaftServer.Division getDivision(String serverName, RaftGroupId groupId) throws IOException { + switch (serverName) { + case ApplicationLogicServer.SERVER_NAME: + return applicationLogicServer.getRaftServer().getDivision(groupId); + case ClusterManagementServer.SERVER_NAME: + return clusterManagementServer.getRaftServer().getDivision(groupId); + }; + return null; + }*/ + } diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/facades/eventstore/ReplicatedChronicleEngine.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/facades/eventstore/ReplicatedChronicleEngine.java index 5f187ed..3036167 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/facades/eventstore/ReplicatedChronicleEngine.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/facades/eventstore/ReplicatedChronicleEngine.java @@ -6,8 +6,10 @@ import de.umr.raft.raftlogreplicationdemo.config.RaftConfig; import de.umr.raft.raftlogreplicationdemo.models.eventstore.QueryRequest; import de.umr.raft.raftlogreplicationdemo.models.eventstore.QueryResponse; +import de.umr.raft.raftlogreplicationdemo.replication.api.PartitionInfo; import de.umr.raft.raftlogreplicationdemo.replication.impl.clients.ClusterMetadataReplicationClient; import de.umr.raft.raftlogreplicationdemo.replication.impl.clients.EventStoreReplicationClient; +import de.umr.raft.raftlogreplicationdemo.replication.impl.facades.clustermanagement.ClusterManager; import de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.EventStoreStateMachine; import de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.data.event.StreamInfo; import de.umr.raft.raftlogreplicationdemo.services.impl.sysinfo.SystemInfoService; @@ -21,6 +23,9 @@ import java.io.IOException; import java.util.List; import java.util.concurrent.ExecutionException; +import java.util.stream.Collectors; + +// TODO start again once cluster management works @Component public class ReplicatedChronicleEngine extends BaseChronicleEngine { @@ -31,33 +36,51 @@ public class ReplicatedChronicleEngine extends BaseChronicleEngine partitions = null; List streamNames = null; try { - streamNames = getStreamNames(); - for (String name : streamNames) { - val client = new EventStoreReplicationClient(raftConfig, name); - eventStoreProvider.put(BufferedReplicatedEventStore.of(name, client, - raftConfig.getEventStoreBufferSize(), raftConfig.getEventStoreBufferTimeout())); + partitions = getPartitions(); + //streamNames = getStreamNames(); + //for (String name : streamNames) { + for (PartitionInfo partition : partitions) { + addKnownStream(partition); +// var partitionName = partition.getPartitionName().getName(); +// val client = new EventStoreReplicationClient( +// raftConfig, +// partitionName, +// partition.getRaftGroup()); +// eventStoreProvider.put(BufferedReplicatedEventStore.of(partitionName, client, +// raftConfig.getEventStoreBufferSize(), raftConfig.getEventStoreBufferTimeout())); } } catch (IOException | ExecutionException | InterruptedException e) { e.printStackTrace(); @@ -66,12 +89,25 @@ protected void initStreams() { @Override public List getStreamNames() throws IOException, ExecutionException, InterruptedException { - // TODO this is something that must be done by clusterManagementStateMachine via client + LOG.info("Requesting stream names"); + //val raftGroups = clusterManager.listPartitions(EventStoreStateMachine.class).stream().map(PartitionInfo::getRaftGroup).collect(Collectors.toList()); + val partitionNames = clusterManager.listPartitions(EventStoreStateMachine.class).stream().map(PartitionInfo::getPartitionName).collect(Collectors.toList()); + return partitionNames.stream().map(partitionName -> partitionName.getName()).collect(Collectors.toList()); + + //val eventStoreRaftGroups = RaftGroupUtil.filterRaftGroupsByStateMachine(raftGroups, EventStoreStateMachine.class); + //val streamNames = RaftGroupUtil.getPartitionNamesFromRaftGroupInfos(eventStoreRaftGroups); + //return streamNames; + } + + public List getPartitions() throws IOException, ExecutionException, InterruptedException { + LOG.info("Requesting partitions"); + //val raftGroups = clusterManager.listPartitions(EventStoreStateMachine.class).stream().map(PartitionInfo::getRaftGroup).collect(Collectors.toList()); + val partitions = clusterManager.listPartitions(EventStoreStateMachine.class); + return partitions; - val raftGroups = systemInfoService.getRaftGroups(); - val eventStoreRaftGroups = RaftGroupUtil.filterRaftGroupsByStateMachine(raftGroups, EventStoreStateMachine.class); - val streamNames = RaftGroupUtil.getPartitionNamesFromRaftGroupInfos(eventStoreRaftGroups); - return streamNames; + //val eventStoreRaftGroups = RaftGroupUtil.filterRaftGroupsByStateMachine(raftGroups, EventStoreStateMachine.class); + //val streamNames = RaftGroupUtil.getPartitionNamesFromRaftGroupInfos(eventStoreRaftGroups); + //return streamNames; } @Override @@ -83,9 +119,16 @@ public StreamInfo getStreamInfo(String name) throws IOException { @Override public synchronized BufferedReplicatedEventStore registerStream(String name, EventSchema schema) throws IOException { // TODO allow eventSchemas by protobuf - // TODO register a new raft group using managementClient - throw new UnsupportedOperationException("Currently not implemented"); + //throw new UnsupportedOperationException("Currently not implemented"); + var partitionInfo = clusterManager.registerPartition( + EventStoreStateMachine.class, + name, + 3); + + // add to known streams + + return null; } @Override diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/ClusterManagementStateMachine.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/ClusterManagementStateMachine.java index 5e908d6..9fa5eca 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/ClusterManagementStateMachine.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/ClusterManagementStateMachine.java @@ -3,6 +3,8 @@ import de.umr.raft.raftlogreplicationdemo.config.RaftConfig; import de.umr.raft.raftlogreplicationdemo.replication.api.proto.ClusterManagementOperationResultProto; import de.umr.raft.raftlogreplicationdemo.replication.api.statemachines.messages.clustermanagement.ClusterManagementOperationMessage; +import de.umr.raft.raftlogreplicationdemo.replication.impl.clients.ClusterManagementClient; +import de.umr.raft.raftlogreplicationdemo.replication.impl.facades.clustermanagement.ClusterManager; import de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.data.management.ClusterState; import de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.data.management.ClusterStateManager; import org.apache.ratis.proto.RaftProtos; @@ -11,6 +13,7 @@ import org.apache.ratis.thirdparty.com.google.protobuf.InvalidProtocolBufferException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; import java.io.*; @@ -19,13 +22,16 @@ public class ClusterManagementStateMachine extends ExecutableMessageStateMachine private static final Logger LOG = LoggerFactory.getLogger(ClusterManagementStateMachine.class); private final RaftConfig raftConfig; + private final ClusterManager clusterManager; private final ClusterState clusterState; private final ClusterStateManager clusterStateManager; - public ClusterManagementStateMachine(RaftConfig raftConfig) { + public ClusterManagementStateMachine(RaftConfig raftConfig, ClusterManager clusterManager) { this.raftConfig = raftConfig; - clusterState = ClusterState.createUninitializedState(raftConfig); + this.clusterManager = clusterManager; + clusterState = ClusterState.createUninitializedState(raftConfig, clusterManager); + //clusterManagementClient = new ClusterManagementClient(raftConfig); clusterStateManager = ClusterStateManager.of(clusterState, getServer()); } diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/IdleStateMachine.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/IdleStateMachine.java new file mode 100644 index 0000000..a9d6e54 --- /dev/null +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/IdleStateMachine.java @@ -0,0 +1,10 @@ +package de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines; + +import org.apache.ratis.statemachine.impl.BaseStateMachine; + +/** + * Idle state machine just to run an empty raft server on startup + */ +public class IdleStateMachine extends BaseStateMachine { + +} diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/data/management/ClusterState.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/data/management/ClusterState.java index 6266008..0f16f7b 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/data/management/ClusterState.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/data/management/ClusterState.java @@ -1,26 +1,40 @@ package de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.data.management; import de.umr.raft.raftlogreplicationdemo.config.RaftConfig; +import de.umr.raft.raftlogreplicationdemo.models.sysinfo.ClusterHealth; +import de.umr.raft.raftlogreplicationdemo.models.sysinfo.NodeHealth; import de.umr.raft.raftlogreplicationdemo.replication.api.PartitionInfo; import de.umr.raft.raftlogreplicationdemo.replication.api.PartitionName; import de.umr.raft.raftlogreplicationdemo.replication.api.PeerState; import de.umr.raft.raftlogreplicationdemo.replication.api.statemachines.data.StateMachineState; +import de.umr.raft.raftlogreplicationdemo.replication.impl.facades.clustermanagement.ClusterManager; import lombok.Getter; +import lombok.val; +import org.apache.ratis.protocol.RaftGroup; +import org.apache.ratis.protocol.RaftGroupId; import org.apache.ratis.protocol.RaftPeer; +import org.apache.ratis.thirdparty.com.google.protobuf.InvalidProtocolBufferException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import javax.servlet.http.Part; import java.io.IOException; import java.io.ObjectInputStream; -import java.util.HashSet; -import java.util.Map; -import java.util.Set; +import java.time.Instant; +import java.util.*; +import java.util.concurrent.CompletableFuture; import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.PriorityBlockingQueue; import java.util.function.Consumer; +import java.util.stream.Collectors; +import java.util.stream.IntStream; public class ClusterState implements StateMachineState { private final RaftConfig raftConfig; + // used to expose state into local server cache + private final ClusterManager clusterManager; @Getter private StateMachineState.Phase phase; @@ -31,24 +45,49 @@ public class ClusterState implements StateMachineState { // And their health states private final PeerStateProvider peerStates; - // TODO heartbeat messages for clustermanager - // TODO print peers list as it grows on log - - // TODO healthCheck daemon (where?) to replace client-triggered-only health checks - // all registered raft groups //private final Set stateMachineProviders = new HashSet<>(); - private final Map partitions = new ConcurrentHashMap<>(); + private final PartitionProvider partitions; + private final Set partitionNames = new HashSet<>(); + + // mapping of the group ids to respective state machine class names + private final Map stateMachineGroupMapping = new HashMap<>(); + + static class PeerGroups implements Comparable { + private RaftPeer peer; + private Set groups = new HashSet<>(); + + PeerGroups(RaftPeer peer) { + this.peer = peer; + } - // TODO also index map for statemachines? + public Set getGroups () { + return groups; + } + + public RaftPeer getPeer() { + return peer; + } + + @Override + public int compareTo(Object o) { + return groups.size() - ((PeerGroups) o).groups.size(); + } + } - // TODO also raft groups? or only raft groups? + // balanced list of peers and their registered groups + private PriorityBlockingQueue avail = new PriorityBlockingQueue<>(); - // TODO everything else that should be known - // - lastHeartbeats - // - raft groups registered to peers - // - raft groups registered in general + public List pollPeers(int replicationFactor) { + List peerGroups = + IntStream.range(0, replicationFactor).mapToObj(i -> avail.poll()).collect(Collectors.toList()); + return peerGroups; + } + public void addToAvailablePeers(PeerGroups peerGroups) { + avail.add(peerGroups); + LOG.info("Available peer group mappings: {}", avail); + } // TODO lastStartedAt protected static final Logger LOG = @@ -59,9 +98,22 @@ public class ClusterState implements StateMachineState { // TODO also remove from loadBalancer list // TODO if it comes back again, re-add it peers.remove(peer); + + final List peerGroupsToRemove = new ArrayList<>(); + // remove peer groups from avail. + avail.forEach(peerGroup -> { + if(peerGroup.getPeer().equals(peer)) { + peerGroupsToRemove.add(peerGroup); + } + }); + for(PeerGroups peerGroups: peerGroupsToRemove) { + avail.remove(peerGroups); + } + // TODO also remove from load balancer hash LOG.info("Peer {} disconnected", peer); LOG.info("Peers list: [{}]", peers); + LOG.info("Balanced peers: [{}]", avail); }; private final Consumer handlePeerInterrupted = peer -> @@ -69,19 +121,42 @@ public class ClusterState implements StateMachineState { private final Consumer handlePeerConnected = peer -> { peers.add(peer); + avail.add(new PeerGroups(peer)); // TODO also add to load balancer hash LOG.info("Peer {} connected", peer); LOG.info("Peers list: [{}]", peers); + LOG.info("Balanced peers: [{}]", avail); + }; + + private final Consumer handlePartitionRegistering = partitionName -> { + partitionNames.add(partitionName); + LOG.info("Partition {} registering", partitionName); + LOG.info("Partitions list: [{}]", partitionNames); + }; + + private final Consumer handlePartitionRegistered = partitionName -> { + partitionNames.add(partitionName); + LOG.info("Partition {} registered", partitionName); + LOG.info("Partitions list: [{}]", partitionNames); + +// broadcastRaftGroupInfo( +// partitionInfoProto.getRaftGroup().getId().toString(), +// META_GROUP_UUID, +// META_GROUP_NAME, +// stateMachineClass.getCanonicalName(), +// raftConfig.getManagementPeersList().stream().map(raftPeer -> raftPeer.getId().toString()).collect(Collectors.toList())); }; - private ClusterState(RaftConfig raftConfig) { + private ClusterState(RaftConfig raftConfig, ClusterManager clusterManager) { this.raftConfig = raftConfig; + this.clusterManager = clusterManager; this.peerStates = new PeerStateProvider(raftConfig, handlePeerDisconnected, handlePeerInterrupted, handlePeerConnected); + this.partitions = new PartitionProvider(raftConfig, handlePartitionRegistering, handlePartitionRegistered, partitionName -> {}); this.phase = Phase.UNINITIALIZED; } - public static ClusterState createUninitializedState(RaftConfig raftConfig) { - return new ClusterState(raftConfig); + public static ClusterState createUninitializedState(RaftConfig raftConfig, ClusterManager clusterManager) { + return new ClusterState(raftConfig, clusterManager); } @Override @@ -122,4 +197,68 @@ public void updateHeartbeat(RaftPeer peer, long heartbeat) { PeerState.ConnectionState.CONNECTED )); } + + public ClusterHealth getClusterHealth() { + List nodeHealths = peerStates.stream().map(NodeHealth::of).collect(Collectors.toList()); + val healthyNodes = nodeHealths.stream().filter(nodeHealth -> nodeHealth.getConnectionState() == NodeHealth.ConnectionState.CONNECTED).count(); + val isHealthy = healthyNodes > peerStates.size() / 2; + return ClusterHealth.of(isHealthy, nodeHealths); + } + + private void putStateMachineGroupMapping(RaftGroupId raftGroupId, String stateMachineClassname) { + stateMachineGroupMapping.put(raftGroupId, stateMachineClassname); + clusterManager.setStateMachineGroupMappingCache(stateMachineGroupMapping); + } + + private void removeStateMachineGroupMapping(RaftGroupId raftGroupId) { + stateMachineGroupMapping.remove(raftGroupId); + clusterManager.setStateMachineGroupMappingCache(stateMachineGroupMapping); + } + + public PartitionInfo addPartition(RaftGroup raftGroup, String partitionName, String stateMachineClassName) { + PartitionName fullPartitionName = PartitionName.of(stateMachineClassName, partitionName); + putStateMachineGroupMapping(raftGroup.getGroupId(), stateMachineClassName); + partitions.update(PartitionInfo.of(fullPartitionName, raftGroup, stateMachineClassName, PartitionInfo.PartitionState.REGISTERING)); + return partitions.get(fullPartitionName); + } + + public PartitionInfo detachPartition(String stateMachineClassName, String partitionName) { + var fullPartitionName = PartitionName.of(stateMachineClassName, partitionName); + var partition = partitions.get(fullPartitionName); + removeStateMachineGroupMapping(partition.getRaftGroup().getGroupId()); + return partitions.detach(fullPartitionName); + } + + public PartitionInfo setPartitionRunning(String stateMachineClassName, String partitionName) { + PartitionName fullPartitionName = PartitionName.of(stateMachineClassName, partitionName); + var partition = partitions.get(fullPartitionName); + partition.setPartitionState(PartitionInfo.PartitionState.REGISTERED); + partitions.update(partition); + return partition; + } + + public List getPartitions(String stateMachineName) { + return partitions.stream().filter(partitionInfo -> partitionInfo.getStateMachineClassname().equals(stateMachineName)).collect(Collectors.toList()); + } + + public PartitionInfo getPartition(String stateMachineName, String partitionName) { + return partitions.get(PartitionName.of(stateMachineName, partitionName)); + } + + public List getPartitions() { + return partitions.stream().collect(Collectors.toList()); + } + + public Set getPeers() { + return peers; + } + + public Set getConnectedPeers() { + return peerStates.stream().filter(peerState -> peerState.getConnectionState().equals(PeerState.ConnectionState.CONNECTED)).map(PeerState::getRaftPeer).collect(Collectors.toSet()); + } + + public String getRaftGroupStateMachineClassname(RaftGroupId raftGroupId) { + return stateMachineGroupMapping.get(raftGroupId); + } + } diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/data/management/ClusterStateManager.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/data/management/ClusterStateManager.java index ab88eaa..ad8175d 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/data/management/ClusterStateManager.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/data/management/ClusterStateManager.java @@ -1,21 +1,37 @@ package de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.data.management; import de.umr.raft.raftlogreplicationdemo.config.RaftConfig; +import de.umr.raft.raftlogreplicationdemo.models.sysinfo.ClusterHealth; import de.umr.raft.raftlogreplicationdemo.replication.api.PartitionInfo; +import de.umr.raft.raftlogreplicationdemo.replication.api.PartitionName; +import de.umr.raft.raftlogreplicationdemo.replication.api.proto.ClusterManagementOperationResultProto; +import de.umr.raft.raftlogreplicationdemo.replication.api.proto.OperationResultStatus; import de.umr.raft.raftlogreplicationdemo.replication.api.proto.RaftPeerProto; +import de.umr.raft.raftlogreplicationdemo.replication.api.statemachines.messages.clustermanagement.ClusterManagementOperationMessage; +import de.umr.raft.raftlogreplicationdemo.replication.impl.ApplicationLogicServer; +import de.umr.raft.raftlogreplicationdemo.replication.impl.clients.ClusterManagementClient; +import de.umr.raft.raftlogreplicationdemo.replication.impl.facades.clustermanagement.ClusterManager; import lombok.Getter; import lombok.RequiredArgsConstructor; +import org.apache.ratis.client.RaftClient; +import org.apache.ratis.conf.RaftProperties; import org.apache.ratis.protocol.RaftGroup; +import org.apache.ratis.protocol.RaftGroupId; import org.apache.ratis.protocol.RaftPeer; import org.apache.ratis.server.RaftServer; +import org.apache.ratis.statemachine.impl.BaseStateMachine; +import org.apache.ratis.thirdparty.com.google.protobuf.InvalidProtocolBufferException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import java.util.ArrayList; -import java.util.List; +import java.io.IOException; +import java.nio.charset.StandardCharsets; +import java.util.*; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; +import java.util.stream.Collectors; +import java.util.stream.IntStream; /** * Wraps a ClusterState in a mutable raft server context to manipulate it @@ -30,43 +46,203 @@ public class ClusterStateManager { Logger LOG = LoggerFactory.getLogger(ClusterStateManager.class); + private RaftGroup createBalancedRaftGroup(String stateMachineClassName, String partitionName, int replicationFactor) { + // TODO real balanced; this is just for testing + + Set potentialPeers = state.getConnectedPeers(); + // TODO useful exception + if (potentialPeers.size() < replicationFactor) throw new RuntimeException("Not enough peers available to satisfy replication factor"); + + // TODO use real load balancer! + //List peers = potentialPeers.stream().limit(replicationFactor).collect(Collectors.toList()); + + + var raftGroupUUID = UUID.nameUUIDFromBytes((stateMachineClassName + ":" + partitionName).getBytes(StandardCharsets.UTF_8)); + var raftGroupId = RaftGroupId.valueOf(raftGroupUUID); + + //=== + + List peerGroups = state.pollPeers(replicationFactor); + List peers = + peerGroups.stream().map(ClusterState.PeerGroups::getPeer).collect(Collectors.toList()); + RaftGroup raftGroup = RaftGroup.valueOf(raftGroupId, peers); + peerGroups.forEach(pg -> { + pg.getGroups().add(raftGroup); + state.addToAvailablePeers(pg); + }); + + //=== + + return RaftGroup.valueOf(raftGroupId, peers); + } + + private RaftClient createClientForAppServerPeer(RaftPeer peer) { + return RaftClient.newBuilder() + .setProperties(new RaftProperties()) + .setRaftGroup(RaftGroup.valueOf(ApplicationLogicServer.BASE_GROUP_ID, peer)) + .build(); + } + +// private ClusterManagementOperationResultProto sendAndExecuteOperationMessage(ClusterManagementOperationMessage operationMessage) { +// ClusterManagementOperationResultProto resultProto; +// +// try { +// resultProto = clusterManagementClient.sendAndExecuteOperationMessage( +// operationMessage, +// ClusterManagementOperationResultProto.parser()); +// } catch (ExecutionException | InterruptedException | InvalidProtocolBufferException e) { +// e.printStackTrace(); +// // TODO custom expection +// throw new UnsupportedOperationException(); +// } +// +// if (!resultProto.getStatus().equals(OperationResultStatus.OK) +// || !resultProto.getOperationType().equals(operationMessage.getClusterManagementOperation().getOperationType())) { +// // TODO custom expection +// throw new UnsupportedOperationException(); +// } +// +// return resultProto; +// } + + // hack to avoid double provisioning due to ratis timeouts + private final Map startedProvisioningsTemp = new HashMap<>(); + + public CompletableFuture provisionPartition(String stateMachineClassName, String partitionName) throws IOException { + LOG.info("Provisioning {}:{}", stateMachineClassName, partitionName); + if (startedProvisioningsTemp.containsKey(stateMachineClassName) && startedProvisioningsTemp.get(stateMachineClassName).equals(partitionName)) { + LOG.info("Already provisioning {}:{}", stateMachineClassName, partitionName); + return CompletableFuture.completedFuture(null); + } + + startedProvisioningsTemp.put(stateMachineClassName, partitionName); + + // provision the state machine to the peers, one by one + // to do so, create a groupmanagement API client for the respective base raft group of log server + // then, tell it to add the new raft group + + var partitionInfo = state.getPartition(stateMachineClassName, partitionName); + + var raftGroup = partitionInfo.getRaftGroup(); + + // TODO java.lang.NullPointerException: Cannot invoke "org.apache.ratis.statemachine.StateMachine because stataMachine is null + + //int provisionedPeers = 0; + IOException originalException = null; + for (RaftPeer peer : raftGroup.getPeers()) { + LOG.info("Provisioning {}:{} on {}", stateMachineClassName, partitionName, peer); + try (RaftClient client = createClientForAppServerPeer(peer)) { + client.getGroupManagementApi(peer.getId()).add(raftGroup); + } catch (IOException e) { + LOG.error("Failed to add Raft group ({}) for new StateMachine instance", + raftGroup.getGroupId(), e); + originalException = e; + break; + } + //provisionedPeers++; + } + + // TODO if any expection, need to tear down again the already initialized peers + // if (provisionedPeers < raftGroup.getPeers().size()) teardown... + + // TODO handle it properly—this causes it to retry instead of stopping! + if (originalException != null) throw originalException; + + return CompletableFuture.completedFuture(null); + } + public CompletableFuture registerPartition(String stateMachineClassName, String partitionName, int replicationFactor) { // TODO have in each StateMachine a "createProvider(partitionName)" or "provide(partitionName)" method return a provider LOG.info("Registering {}:{} at {} nodes", stateMachineClassName, partitionName, replicationFactor); + if (replicationFactor < 3) { + // TODO useful expection + throw new RuntimeException("A replication factor of at least 3 is required"); + } + // TODO ensure transaction context! A partition should not be considered registered if app server has not applied all transactions - // TODO in ClusterState, keep book of partitions with state enum REGISTERING, REGISTERED, DETACHED // TODO register via applogic server - // TODO apply to state - //state.addPartition(); + var raftGroup = createBalancedRaftGroup(stateMachineClassName, partitionName, replicationFactor); + + var partitionInfo = state.addPartition(raftGroup, partitionName, stateMachineClassName); + // TODO method to spawn a raftClient out of a partitionInfo + - return CompletableFuture.completedFuture(null); // TODO + // TODO only the leader should provision, and only once! this means: + // - after adding partition in "REGISTERING", send a "query" request over the + // readonly API to itself + // this will cause to spawn the state machine instance/raft group (need own proto message for that) + // if successful, it sends a "executable" request again to itself to update partition to "REGISTERED" + // note that this is not transactional at all, but at least seems so for the client +/* try { + provisionPartitionRaftGroupOnAllPeers(partitionInfo); + state.setPartitionRunning(stateMachineClassName, partitionName); + } catch (Exception e) { + // error, detach partition again + return detachPartition(stateMachineClassName, partitionName); + }*/ + + return CompletableFuture.completedFuture(partitionInfo); + } + + public CompletableFuture acknowledgePartitionRegistration(String stateMachineClassname, String partitionName) { + LOG.info("Requesting acknowledging partition [{}]", partitionName); + + var partition = state.setPartitionRunning(stateMachineClassname, partitionName); + + return CompletableFuture.completedFuture(partition); } - public CompletableFuture detachPartition(String partitionName) { + public CompletableFuture detachPartition(String stateMachineClassname, String partitionName) { LOG.info("Requesting detaching partition [{}]", partitionName); - return CompletableFuture.completedFuture(null); // TODO + + var partition = state.detachPartition(stateMachineClassname, partitionName); + + return CompletableFuture.completedFuture(partition); } - public CompletableFuture> listPartitions(String stateMachineName) { - LOG.info("Requesting listing partitions for [{}]", stateMachineName); - return CompletableFuture.completedFuture(new ArrayList<>()); // TODO + public CompletableFuture> listPartitions(String stateMachineClassname) { + LOG.info("Requesting listing partitions for [{}]", stateMachineClassname); + + var partitions = state.getPartitions(stateMachineClassname); + + return CompletableFuture.completedFuture(partitions); } public CompletableFuture> listPartitions() { LOG.info("Requesting listing all partitions"); - return CompletableFuture.completedFuture(new ArrayList<>()); // TODO + + var partitions = state.getPartitions(); + + return CompletableFuture.completedFuture(partitions); + } + + public CompletableFuture getRaftGroupStateMachineClassname(RaftGroupId raftGroupId) { + LOG.info("Requesting state machine class name for {}", raftGroupId); + + var stateMachineClassname = state.getRaftGroupStateMachineClassname(raftGroupId); + + LOG.info("Class name is {}", stateMachineClassname); + return CompletableFuture.completedFuture(stateMachineClassname); } public CompletableFuture handleHeartbeat(RaftPeer peer, long heartbeat) { - LOG.info("Received heartbeat from [{}] at {}", peer, heartbeat); + LOG.trace("Received heartbeat from [{}] at {}", peer, heartbeat); state.updateHeartbeat(peer, heartbeat); return CompletableFuture.completedFuture(null); } + public CompletableFuture getClusterHealth() { + LOG.trace("Requesting cluster health"); + + var clusterHealth = state.getClusterHealth(); + + return CompletableFuture.completedFuture(clusterHealth); + } + private RaftServer getServer() throws ExecutionException, InterruptedException { return serverFuture.get(); } diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/data/management/PartitionProvider.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/data/management/PartitionProvider.java new file mode 100644 index 0000000..fa913fb --- /dev/null +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/data/management/PartitionProvider.java @@ -0,0 +1,116 @@ +package de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.data.management; + +import de.umr.raft.raftlogreplicationdemo.config.RaftConfig; +import de.umr.raft.raftlogreplicationdemo.replication.api.PartitionInfo; +import de.umr.raft.raftlogreplicationdemo.replication.api.PartitionName; +import de.umr.raft.raftlogreplicationdemo.replication.api.PeerState; +import org.apache.ratis.protocol.RaftGroup; +import org.apache.ratis.protocol.RaftPeer; +import org.apache.ratis.util.Daemon; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.util.*; +import java.util.concurrent.ConcurrentHashMap; +import java.util.function.Consumer; +import java.util.stream.Collectors; +import java.util.stream.Stream; +import java.util.stream.StreamSupport; + +public class PartitionProvider implements Iterable { + + private static final Logger LOG = LoggerFactory.getLogger(PartitionProvider.class); + + private final RaftConfig raftConfig; + private final Consumer onPartitionRegistering; + private final Consumer onPartitionRegistered; + private final Consumer onPartitionDetached; + + public PartitionProvider(RaftConfig raftConfig, Consumer onPartitionRegistering, Consumer onPartitionRegistered, Consumer onPartitionDetached) { + this.raftConfig = raftConfig; + + this.onPartitionRegistering = onPartitionRegistering; + this.onPartitionRegistered = onPartitionRegistered; + this.onPartitionDetached = onPartitionDetached; + } + + // TODO concurrent or normal? + private final Map partitions = new ConcurrentHashMap<>(); + + public void update(PartitionInfo partitionInfo) { + var partitionName = partitionInfo.getPartitionName(); + var previousState = partitions.get(partitionName); + + var newPartitionState = partitionInfo.getPartitionState(); + + partitions.put(partitionName, partitionInfo); + + if (previousState == null || !previousState.getPartitionState().equals(newPartitionState)) { + handlePartitionStateChanged(partitionName, newPartitionState); + } + + LOG.info("Partitions: {}", partitions); + } + + private void handlePartitionStateChanged(PartitionName partitionName, PartitionInfo.PartitionState partitionState) { + switch (partitionState) { + case REGISTERING: + onPartitionRegistering.accept(partitionName); + break; + case REGISTERED: + onPartitionRegistered.accept(partitionName); + break; + case DETACHED: + onPartitionDetached.accept(partitionName); + } + } + + public void updatePartitionState(PartitionName partitionName, PartitionInfo.PartitionState partitionState) { + var partitionInfo = partitions.get(partitionName); + + // state unchanged + if (partitionInfo.getPartitionState().equals(partitionState)) return; + + // state changed + handlePartitionStateChanged(partitionName, partitionState); + partitionInfo.setPartitionState(partitionState); + } + + public PartitionInfo get(PartitionName partitionName) { + return Optional.ofNullable(partitions.get(partitionName)) + .orElseThrow(() -> new IllegalArgumentException("No known partition " + partitionName.toString()) ); + } + + public boolean contains(PartitionName partitionName) { + return partitions.containsKey(partitionName); + } + + PartitionInfo detach(PartitionName partitionName) { + update(PartitionInfo.of(partitionName, RaftGroup.emptyGroup(), partitions.get(partitionName).getStateMachineClassname(), PartitionInfo.PartitionState.DETACHED)); + return partitions.get(partitionName); + } + + public Set> entrySet() { + return partitions.entrySet(); + } + + @Override + public Iterator iterator() { + return partitions.values().iterator(); + } + + public Stream stream() { + return StreamSupport.stream(spliterator(), false); + } + + public int size() { + return partitions.size(); + } + + @Override + public String toString() { + return "{" + + partitions.values().stream().map(PartitionInfo::toString).collect(Collectors.joining(", ")) + + "}"; + } +} diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/data/management/PeerStateProvider.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/data/management/PeerStateProvider.java index 61ee26d..9e0688b 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/data/management/PeerStateProvider.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/data/management/PeerStateProvider.java @@ -1,6 +1,7 @@ package de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.data.management; import de.umr.raft.raftlogreplicationdemo.config.RaftConfig; +import de.umr.raft.raftlogreplicationdemo.replication.api.PartitionInfo; import de.umr.raft.raftlogreplicationdemo.replication.api.PeerState; import org.apache.ratis.protocol.RaftPeer; import org.apache.ratis.util.Daemon; @@ -8,8 +9,11 @@ import org.slf4j.LoggerFactory; import java.util.*; +import java.util.concurrent.PriorityBlockingQueue; import java.util.function.Consumer; import java.util.stream.Collectors; +import java.util.stream.Stream; +import java.util.stream.StreamSupport; public class PeerStateProvider implements Iterable { @@ -34,7 +38,35 @@ public PeerStateProvider(RaftConfig raftConfig, Consumer onPeerDisconn } private final Map peerStates = new HashMap<>(); - +// +// // At the same time, manage minHeap queue for load balancing partitions across the peers +// private PriorityBlockingQueue balancedPeers = new PriorityBlockingQueue(); +// +// static class PartitionsPerPeer implements Comparable { +// private RaftPeer peer; +// private Set partitions = new HashSet<>(); +// +// PartitionsPerPeer(RaftPeer peer) { +// this.peer = peer; +// } +// +// public Set getPartitions() { +// return partitions; +// } +// +// public RaftPeer getPeer() { +// return peer; +// } +// +// @Override +// public int compareTo(Object o) { +// return partitions.size() - ((PartitionsPerPeer) o).partitions.size(); +// } +// } + + // TODO peer ports on app logic server? + + // TODO also allow adding partitions here public void update(PeerState peerState) { var peer = peerState.getRaftPeer(); var previousState = peerStates.get(peer); @@ -47,7 +79,7 @@ public void update(PeerState peerState) { handleConnectionStateChanged(peer, newConnectionState); } - LOG.info("Peer states: {}", peerStates); + // LOG.info("Peer states: {}", peerStates); } private void handleConnectionStateChanged(RaftPeer peer, PeerState.ConnectionState connectionState) { @@ -97,6 +129,14 @@ public Iterator iterator() { return peerStates.values().iterator(); } + public Stream stream() { + return StreamSupport.stream(spliterator(), false); + } + + public int size() { + return peerStates.size(); + } + @Override public String toString() { return "{" + diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/data/management/serialization/PartitionInfoProtoSerializer.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/data/management/serialization/PartitionInfoProtoSerializer.java new file mode 100644 index 0000000..9ae866e --- /dev/null +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/data/management/serialization/PartitionInfoProtoSerializer.java @@ -0,0 +1,29 @@ +package de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.data.management.serialization; + +import de.umr.raft.raftlogreplicationdemo.replication.api.PartitionInfo; +import de.umr.raft.raftlogreplicationdemo.replication.api.proto.*; + +import java.util.stream.Collectors; + +public class PartitionInfoProtoSerializer { + + public static PartitionInfoProto toProto(PartitionInfo partitionInfo) { + return PartitionInfoProto.newBuilder() + .setPartitionName(PartitionNameProto.newBuilder() + .setName(partitionInfo.getPartitionName().getName()) + .setStateMachineClassName(partitionInfo.getPartitionName().getStateMachineClassName()) + .build()) + .setPartitionState(PartitionState.valueOf(partitionInfo.getPartitionState().name())) + .setRaftGroup(RaftGroupProto.newBuilder() + .setId(partitionInfo.getRaftGroup().getGroupId().toByteString()) + .setUuid(partitionInfo.getRaftGroup().getGroupId().getUuid().toString()) + .setName(partitionInfo.getPartitionName().getName()) + .addAllPeers(partitionInfo.getRaftGroup().getPeers().stream().map(raftPeer -> RaftPeerProto.newBuilder() + .setId(raftPeer.getRaftPeerProto().getId()) + .setAddress(raftPeer.getAddress()) + .build()).collect(Collectors.toList())) + .build()) + .build(); + } + +} diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/executors/clustermanagement/AcknowledgePartitionRegistrationOperationExecutor.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/executors/clustermanagement/AcknowledgePartitionRegistrationOperationExecutor.java new file mode 100644 index 0000000..29e6f79 --- /dev/null +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/executors/clustermanagement/AcknowledgePartitionRegistrationOperationExecutor.java @@ -0,0 +1,55 @@ +package de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.executors.clustermanagement; + +import de.umr.raft.raftlogreplicationdemo.replication.api.PartitionInfo; +import de.umr.raft.raftlogreplicationdemo.replication.api.proto.ClusterManagementOperationProto; +import de.umr.raft.raftlogreplicationdemo.replication.api.proto.ClusterManagementOperationResultProto; +import de.umr.raft.raftlogreplicationdemo.replication.api.proto.ClusterManagementOperationType; +import de.umr.raft.raftlogreplicationdemo.replication.api.proto.OperationResultStatus; +import de.umr.raft.raftlogreplicationdemo.replication.api.statemachines.executors.clustermanagement.ClusterManagementQueryOperationExecutor; +import de.umr.raft.raftlogreplicationdemo.replication.api.statemachines.executors.clustermanagement.ClusterManagementTransactionOperationExecutor; +import de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.data.management.ClusterStateManager; +import lombok.Getter; +import lombok.RequiredArgsConstructor; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.io.IOException; +import java.util.concurrent.CompletableFuture; + +@RequiredArgsConstructor(staticName = "of") +public class AcknowledgePartitionRegistrationOperationExecutor implements ClusterManagementTransactionOperationExecutor { + + private static final Logger LOG = LoggerFactory.getLogger(AcknowledgePartitionRegistrationOperationExecutor.class); + + @Getter + private final ClusterManagementOperationProto clusterManagementOperation; + + @Override + public CompletableFuture apply(ClusterStateManager clusterStateManager) { + LOG.info("Execute the acknowledging the provisioning of partitions"); + + var request = clusterManagementOperation.getRequest().getAcknowledgePartitionRegistrationRequest(); + + var resultFuture = clusterStateManager.acknowledgePartitionRegistration( + request.getStatemachineClassname(), + request.getPartitionName() + ); + + LOG.info("Done executing the acknowledging the provisioning of partitions"); + + return createClusterManagementOperationResult(resultFuture); + } + + private CompletableFuture createClusterManagementOperationResult(CompletableFuture resultFuture) { + return resultFuture.thenApply(partitionInfo -> + ClusterManagementOperationResultProto.newBuilder() + .setOperationType(getOperationType()) + .setStatus(OperationResultStatus.OK) + .build()); + } + + @Override + public ClusterManagementOperationType getOperationType() { + return ClusterManagementOperationType.ACKNOWLEDGE_PARTITION_REGISTRATION; + } +} diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/executors/clustermanagement/DetachPartitionOperationExecutor.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/executors/clustermanagement/DetachPartitionOperationExecutor.java index e8b3bb8..a08fc8d 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/executors/clustermanagement/DetachPartitionOperationExecutor.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/executors/clustermanagement/DetachPartitionOperationExecutor.java @@ -1,5 +1,6 @@ package de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.executors.clustermanagement; +import de.umr.raft.raftlogreplicationdemo.replication.api.PartitionInfo; import de.umr.raft.raftlogreplicationdemo.replication.api.proto.ClusterManagementOperationProto; import de.umr.raft.raftlogreplicationdemo.replication.api.proto.ClusterManagementOperationResultProto; import de.umr.raft.raftlogreplicationdemo.replication.api.proto.ClusterManagementOperationType; @@ -25,17 +26,18 @@ public class DetachPartitionOperationExecutor implements ClusterManagementTransa private final ClusterManagementOperationProto clusterManagementOperation; @Override - public CompletableFuture apply(ClusterStateManager clusterState) { + public CompletableFuture apply(ClusterStateManager clusterStateManager) { var request = clusterManagementOperation.getRequest().getDetachPartitionRequest(); - var resultFuture = clusterState.detachPartition( - request.getPartitionName() + var resultFuture = clusterStateManager.detachPartition( + request.getStatemachineClassname(), + request.getPartitionName() ); return createClusterManagementOperationResult(resultFuture); } - private CompletableFuture createClusterManagementOperationResult(CompletableFuture resultFuture) { + private CompletableFuture createClusterManagementOperationResult(CompletableFuture resultFuture) { return resultFuture.thenApply(o -> ClusterManagementOperationResultProto.newBuilder() .setOperationType(getOperationType()) diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/executors/clustermanagement/GetClusterHealthOperationExecutor.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/executors/clustermanagement/GetClusterHealthOperationExecutor.java new file mode 100644 index 0000000..bcdc5fc --- /dev/null +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/executors/clustermanagement/GetClusterHealthOperationExecutor.java @@ -0,0 +1,57 @@ +package de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.executors.clustermanagement; + +import de.umr.raft.raftlogreplicationdemo.models.sysinfo.ClusterHealth; +import de.umr.raft.raftlogreplicationdemo.replication.api.proto.*; +import de.umr.raft.raftlogreplicationdemo.replication.api.statemachines.executors.clustermanagement.ClusterManagementQueryOperationExecutor; +import de.umr.raft.raftlogreplicationdemo.replication.api.statemachines.executors.clustermanagement.ClusterManagementTransactionOperationExecutor; +import de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.data.management.ClusterStateManager; +import lombok.Getter; +import lombok.RequiredArgsConstructor; +import org.apache.ratis.protocol.RaftPeer; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.util.concurrent.CompletableFuture; +import java.util.stream.Collectors; + +@RequiredArgsConstructor(staticName = "of") +public class GetClusterHealthOperationExecutor implements ClusterManagementQueryOperationExecutor { + + private static final Logger LOG = LoggerFactory.getLogger(GetClusterHealthOperationExecutor.class); + + @Getter + private final ClusterManagementOperationProto clusterManagementOperation; + + @Override + public CompletableFuture apply(ClusterStateManager clusterStateManager) { + // var request = clusterManagementOperation.getRequest().getGetClusterHealthRequestProto(); + //if (request == null) {} + + var resultFuture = clusterStateManager.getClusterHealth(); + + return createClusterManagementOperationResult(resultFuture); + } + + private CompletableFuture createClusterManagementOperationResult(CompletableFuture resultFuture) { + return resultFuture.thenApply(o -> + ClusterManagementOperationResultProto.newBuilder() + .setOperationType(getOperationType()) + .setResponse(ClusterManagementResponseProto.newBuilder() + .setClusterHealthResponse(ClusterHealthResponseProto.newBuilder() + .setIsHealthy(o.isHealthy()) + .addAllNodeInfo(o.getNodeHealths().stream().map(nodeHealth -> NodeHealthProto.newBuilder() + .setPeerId(nodeHealth.getId()) + .setHeartbeat(nodeHealth.getHeartbeat()) + .setConnectionState(ConnectionState.valueOf(nodeHealth.getConnectionState().name())) + .build()).collect(Collectors.toList())) + .build()) + .build()) + .setStatus(OperationResultStatus.OK) + .build()); + } + + @Override + public ClusterManagementOperationType getOperationType() { + return ClusterManagementOperationType.GET_CLUSTER_HEALTH; + } +} diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/executors/clustermanagement/GetStateMachineForRaftGroupOperationExecutor.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/executors/clustermanagement/GetStateMachineForRaftGroupOperationExecutor.java new file mode 100644 index 0000000..ab22b3f --- /dev/null +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/executors/clustermanagement/GetStateMachineForRaftGroupOperationExecutor.java @@ -0,0 +1,50 @@ +package de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.executors.clustermanagement; + +import de.umr.raft.raftlogreplicationdemo.models.sysinfo.ClusterHealth; +import de.umr.raft.raftlogreplicationdemo.replication.api.proto.*; +import de.umr.raft.raftlogreplicationdemo.replication.api.statemachines.executors.clustermanagement.ClusterManagementQueryOperationExecutor; +import de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.data.management.ClusterStateManager; +import lombok.Getter; +import lombok.RequiredArgsConstructor; +import org.apache.ratis.protocol.RaftGroupId; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.util.concurrent.CompletableFuture; +import java.util.stream.Collectors; + +@RequiredArgsConstructor(staticName = "of") +public class GetStateMachineForRaftGroupOperationExecutor implements ClusterManagementQueryOperationExecutor { + + private static final Logger LOG = LoggerFactory.getLogger(GetStateMachineForRaftGroupOperationExecutor.class); + + @Getter + private final ClusterManagementOperationProto clusterManagementOperation; + + @Override + public CompletableFuture apply(ClusterStateManager clusterStateManager) { + var request = clusterManagementOperation.getRequest().getGetStateMachineForRaftGroupRequest(); + + var resultFuture = clusterStateManager.getRaftGroupStateMachineClassname(RaftGroupId.valueOf(request.getRaftGroupId())); + + return createClusterManagementOperationResult(resultFuture); + } + + private CompletableFuture createClusterManagementOperationResult(CompletableFuture resultFuture) { + return resultFuture.thenApply(stateMachineClassname -> + ClusterManagementOperationResultProto.newBuilder() + .setOperationType(getOperationType()) + .setResponse(ClusterManagementResponseProto.newBuilder() + .setGetStateMachineForRaftGroupResponse(GetStateMachineForRaftGroupResponseProto.newBuilder() + .setStateMachineClassname(stateMachineClassname) + .build()) + .build()) + .setStatus(OperationResultStatus.OK) + .build()); + } + + @Override + public ClusterManagementOperationType getOperationType() { + return ClusterManagementOperationType.GET_STATEMACHINE_FOR_RAFT_GROUP; + } +} diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/executors/clustermanagement/HeartbeatOperationExecutor.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/executors/clustermanagement/HeartbeatOperationExecutor.java index 17ac912..05e2d70 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/executors/clustermanagement/HeartbeatOperationExecutor.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/executors/clustermanagement/HeartbeatOperationExecutor.java @@ -23,12 +23,12 @@ public class HeartbeatOperationExecutor implements ClusterManagementTransactionO private final ClusterManagementOperationProto clusterManagementOperation; @Override - public CompletableFuture apply(ClusterStateManager clusterState) { + public CompletableFuture apply(ClusterStateManager clusterStateManager) { var request = clusterManagementOperation.getRequest().getHeartbeatRequestProto(); var peerProto = request.getPeer(); - var resultFuture = clusterState.handleHeartbeat( + var resultFuture = clusterStateManager.handleHeartbeat( RaftPeer.newBuilder() .setAddress(peerProto.getAddress()) .setId(peerProto.getId()) diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/executors/clustermanagement/ListPartitionsOperationExecutor.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/executors/clustermanagement/ListPartitionsOperationExecutor.java index 0e86f7f..75432b7 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/executors/clustermanagement/ListPartitionsOperationExecutor.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/executors/clustermanagement/ListPartitionsOperationExecutor.java @@ -1,13 +1,11 @@ package de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.executors.clustermanagement; import de.umr.raft.raftlogreplicationdemo.replication.api.PartitionInfo; -import de.umr.raft.raftlogreplicationdemo.replication.api.proto.ClusterManagementOperationProto; -import de.umr.raft.raftlogreplicationdemo.replication.api.proto.ClusterManagementOperationResultProto; -import de.umr.raft.raftlogreplicationdemo.replication.api.proto.ClusterManagementOperationType; -import de.umr.raft.raftlogreplicationdemo.replication.api.proto.OperationResultStatus; +import de.umr.raft.raftlogreplicationdemo.replication.api.proto.*; import de.umr.raft.raftlogreplicationdemo.replication.api.statemachines.executors.clustermanagement.ClusterManagementQueryOperationExecutor; import de.umr.raft.raftlogreplicationdemo.replication.api.statemachines.executors.clustermanagement.ClusterManagementTransactionOperationExecutor; import de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.data.management.ClusterStateManager; +import de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.data.management.serialization.PartitionInfoProtoSerializer; import lombok.Getter; import lombok.RequiredArgsConstructor; import org.slf4j.Logger; @@ -15,6 +13,7 @@ import java.util.List; import java.util.concurrent.CompletableFuture; +import java.util.stream.Collectors; @RequiredArgsConstructor(staticName = "of") public class ListPartitionsOperationExecutor implements ClusterManagementQueryOperationExecutor { @@ -24,21 +23,30 @@ public class ListPartitionsOperationExecutor implements ClusterManagementQueryOp @Getter private final ClusterManagementOperationProto clusterManagementOperation; + private static final String ALL_STATE_MACHINES = "ALL"; + @Override - public CompletableFuture apply(ClusterStateManager clusterState) { + public CompletableFuture apply(ClusterStateManager clusterStateManager) { var request = clusterManagementOperation.getRequest().getListPartitionsRequest(); - var resultFuture = clusterState.listPartitions( - request.getStatemachineClassname() - ); + var stateMachineClassname = request.getStatemachineClassname(); + + var resultFuture = stateMachineClassname.equals(ALL_STATE_MACHINES) + ? clusterStateManager.listPartitions() + : clusterStateManager.listPartitions(request.getStatemachineClassname()); return createClusterManagementOperationResult(resultFuture); } private CompletableFuture createClusterManagementOperationResult(CompletableFuture> resultFuture) { - return resultFuture.thenApply(partitionInfo -> + return resultFuture.thenApply(partitionInfos -> ClusterManagementOperationResultProto.newBuilder() .setOperationType(getOperationType()) + .setResponse(ClusterManagementResponseProto.newBuilder() + .setListPartitionsResponse(ListPartitionsResponseProto.newBuilder() + .addAllPartitionInfo(partitionInfos.stream().map(PartitionInfoProtoSerializer::toProto).collect(Collectors.toList())) + .build()) + .build()) .setStatus(OperationResultStatus.OK) .build()); } diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/executors/clustermanagement/ProvisionPartitionOperationExecutor.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/executors/clustermanagement/ProvisionPartitionOperationExecutor.java new file mode 100644 index 0000000..647b601 --- /dev/null +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/executors/clustermanagement/ProvisionPartitionOperationExecutor.java @@ -0,0 +1,59 @@ +package de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.executors.clustermanagement; + +import de.umr.raft.raftlogreplicationdemo.replication.api.PartitionInfo; +import de.umr.raft.raftlogreplicationdemo.replication.api.proto.*; +import de.umr.raft.raftlogreplicationdemo.replication.api.statemachines.executors.clustermanagement.ClusterManagementQueryOperationExecutor; +import de.umr.raft.raftlogreplicationdemo.replication.api.statemachines.executors.clustermanagement.ClusterManagementTransactionOperationExecutor; +import de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.data.management.ClusterStateManager; +import de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.data.management.serialization.PartitionInfoProtoSerializer; +import lombok.Getter; +import lombok.RequiredArgsConstructor; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.io.IOException; +import java.util.concurrent.CompletableFuture; + +@RequiredArgsConstructor(staticName = "of") +public class ProvisionPartitionOperationExecutor implements ClusterManagementQueryOperationExecutor { + + private static final Logger LOG = LoggerFactory.getLogger(ProvisionPartitionOperationExecutor.class); + + @Getter + private final ClusterManagementOperationProto clusterManagementOperation; + + @Override + public CompletableFuture apply(ClusterStateManager clusterStateManager) { + var request = clusterManagementOperation.getRequest().getInstantiatePartitionRequest(); + + CompletableFuture resultFuture; + + try { + LOG.info("Provisioning started"); + resultFuture = clusterStateManager.provisionPartition( + request.getStatemachineClassname(), + request.getPartitionName() + ); + LOG.info("Provisioning done"); + } catch (IOException e) { + LOG.info("Provisioning canceled"); + return cancel(); + } + + return createClusterManagementOperationResult(resultFuture); + } + + private CompletableFuture createClusterManagementOperationResult(CompletableFuture resultFuture) { + // TODO do we need response? + return resultFuture.thenApply(partitionInfo -> + ClusterManagementOperationResultProto.newBuilder() + .setOperationType(getOperationType()) + .setStatus(OperationResultStatus.OK) + .build()); + } + + @Override + public ClusterManagementOperationType getOperationType() { + return ClusterManagementOperationType.INSTANTIATE_PARTITION; + } +} diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/executors/clustermanagement/RegisterPartitionOperationExecutor.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/executors/clustermanagement/RegisterPartitionOperationExecutor.java index 5bced87..0d0c407 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/executors/clustermanagement/RegisterPartitionOperationExecutor.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/impl/statemachines/executors/clustermanagement/RegisterPartitionOperationExecutor.java @@ -4,6 +4,7 @@ import de.umr.raft.raftlogreplicationdemo.replication.api.proto.*; import de.umr.raft.raftlogreplicationdemo.replication.api.statemachines.executors.clustermanagement.ClusterManagementTransactionOperationExecutor; import de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.data.management.ClusterStateManager; +import de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.data.management.serialization.PartitionInfoProtoSerializer; import lombok.Getter; import lombok.RequiredArgsConstructor; import org.apache.ratis.protocol.RaftGroup; @@ -13,6 +14,7 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; +import java.util.stream.Collectors; @RequiredArgsConstructor(staticName = "of") public class RegisterPartitionOperationExecutor implements ClusterManagementTransactionOperationExecutor { @@ -23,10 +25,10 @@ public class RegisterPartitionOperationExecutor implements ClusterManagementTran private final ClusterManagementOperationProto clusterManagementOperation; @Override - public CompletableFuture apply(ClusterStateManager clusterState) { + public CompletableFuture apply(ClusterStateManager clusterStateManager) { var request = clusterManagementOperation.getRequest().getRegisterPartitionRequest(); - var resultFuture = clusterState.registerPartition( + var resultFuture = clusterStateManager.registerPartition( request.getStatemachineClassname(), request.getPartitionName(), request.getReplicationFactor() @@ -36,10 +38,15 @@ public CompletableFuture apply(ClusterSta } private CompletableFuture createClusterManagementOperationResult(CompletableFuture resultFuture) { + // TODO wrap in helper functions for deserialization return resultFuture.thenApply(partitionInfo -> ClusterManagementOperationResultProto.newBuilder() .setOperationType(getOperationType()) - // TODO resultBuilder.setPartitionInfo(partitionInfo) + .setResponse(ClusterManagementResponseProto.newBuilder() + .setRegisterPartitionResponse(RegisterPartitionResponseProto.newBuilder() + .setPartitionInfo(PartitionInfoProtoSerializer.toProto(partitionInfo)) + .build()) + .build()) .setStatus(OperationResultStatus.OK) .build()); } diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/runners/ApplicationLogicServerStartupRunner.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/runners/ApplicationLogicServerStartupRunner.java new file mode 100644 index 0000000..d0c4f2b --- /dev/null +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/runners/ApplicationLogicServerStartupRunner.java @@ -0,0 +1,56 @@ +package de.umr.raft.raftlogreplicationdemo.replication.runners; + +import de.umr.raft.raftlogreplicationdemo.config.RaftConfig; +import de.umr.raft.raftlogreplicationdemo.replication.impl.ApplicationLogicServer; +import de.umr.raft.raftlogreplicationdemo.replication.impl.ClusterManagementMultiRaftServer; +import de.umr.raft.raftlogreplicationdemo.replication.impl.ClusterManagementServer; +import de.umr.raft.raftlogreplicationdemo.replication.impl.MultiRaftReplicationServer; +import de.umr.raft.raftlogreplicationdemo.replication.impl.clients.ClusterManagementClient; +import de.umr.raft.raftlogreplicationdemo.replication.impl.clients.ClusterMetadataReplicationClient; +import de.umr.raft.raftlogreplicationdemo.replication.impl.facades.clustermanagement.ClusterManager; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.ApplicationArguments; +import org.springframework.boot.ApplicationRunner; +import org.springframework.stereotype.Component; + +import java.lang.reflect.InvocationTargetException; + +//@Component +@Deprecated +public class ApplicationLogicServerStartupRunner implements ApplicationRunner { + + @Autowired + protected static final Logger LOG = + LoggerFactory.getLogger(ApplicationLogicServerStartupRunner.class); + + protected ApplicationLogicServer applicationLogicServer; + protected ClusterManagementServer clusterManagementServer; + //private final RaftConfig raftConfig; + //private final ClusterManager clusterManager; + + @Autowired + public ApplicationLogicServerStartupRunner(ApplicationLogicServer applicationLogicServer, ClusterManagementServer clusterManagementServer) { + //this.raftConfig = raftConfig; + //this.clusterManager = clusterManager; + this.applicationLogicServer = applicationLogicServer; + this.clusterManagementServer = clusterManagementServer; + } + + @Override + public void run(ApplicationArguments args) throws Exception { + LOG.info("Raft application server started with options : {}", + args.getOptionNames()); + + try { + // wait until management cluster quorum runs + while (!clusterManagementServer.isRunning()) {} + + applicationLogicServer.start(); + } catch (Exception e) { + e.printStackTrace(); + // noop + } + } +} diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/runners/ClusterHeartbeatRunner.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/runners/ClusterHeartbeatRunner.java index 1f56021..671b5d2 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/runners/ClusterHeartbeatRunner.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/runners/ClusterHeartbeatRunner.java @@ -26,6 +26,7 @@ import static java.lang.System.currentTimeMillis; //@Component +@Deprecated @RequiredArgsConstructor(staticName = "of") public class ClusterHeartbeatRunner implements ApplicationRunner { diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/runners/ClusterManagementMultiRaftServerStartupRunner.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/runners/ClusterManagementMultiRaftServerStartupRunner.java index 88540d4..1855c31 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/runners/ClusterManagementMultiRaftServerStartupRunner.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/runners/ClusterManagementMultiRaftServerStartupRunner.java @@ -9,6 +9,7 @@ import java.lang.reflect.InvocationTargetException; //@Component +@Deprecated public class ClusterManagementMultiRaftServerStartupRunner extends MultiRaftReplicationServerStartupRunner { @Autowired diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/runners/ClusterManagementServerStartupRunner.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/runners/ClusterManagementServerStartupRunner.java index 4b94732..8d349db 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/runners/ClusterManagementServerStartupRunner.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/runners/ClusterManagementServerStartupRunner.java @@ -11,7 +11,8 @@ import java.lang.reflect.InvocationTargetException; -@Component +//@Component +@Deprecated public class ClusterManagementServerStartupRunner implements ApplicationRunner { protected static final Logger LOG = diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/runners/MetadataUpdateStartupRunner.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/runners/MetadataUpdateStartupRunner.java index 0c30a82..45929b9 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/runners/MetadataUpdateStartupRunner.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/runners/MetadataUpdateStartupRunner.java @@ -25,6 +25,7 @@ import java.text.NumberFormat; //@Component +@Deprecated @RequiredArgsConstructor(staticName = "of") public class MetadataUpdateStartupRunner implements ApplicationRunner { diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/runners/MultiRaftReplicationServerStartupRunner.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/runners/MultiRaftReplicationServerStartupRunner.java index bca1d3e..38cb933 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/runners/MultiRaftReplicationServerStartupRunner.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/runners/MultiRaftReplicationServerStartupRunner.java @@ -11,6 +11,7 @@ import java.lang.reflect.InvocationTargetException; +@Deprecated abstract class MultiRaftReplicationServerStartupRunner implements ApplicationRunner { protected static final Logger LOG = diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/runners/RaftServersStartupRunner.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/runners/RaftServersStartupRunner.java new file mode 100644 index 0000000..a53806d --- /dev/null +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/runners/RaftServersStartupRunner.java @@ -0,0 +1,127 @@ +package de.umr.raft.raftlogreplicationdemo.replication.runners; + +import de.umr.raft.raftlogreplicationdemo.config.RaftConfig; +import de.umr.raft.raftlogreplicationdemo.replication.impl.ApplicationLogicServer; +import de.umr.raft.raftlogreplicationdemo.replication.impl.ClusterManagementServer; +import de.umr.raft.raftlogreplicationdemo.replication.impl.clients.ClusterMetadataReplicationClient; +import de.umr.raft.raftlogreplicationdemo.replication.impl.facades.metadata.ReplicatedMetadataMap; +import lombok.val; +import org.apache.ratis.thirdparty.com.google.protobuf.InvalidProtocolBufferException; +import org.apache.ratis.util.NetUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.ApplicationArguments; +import org.springframework.boot.ApplicationRunner; +import org.springframework.boot.system.JavaVersion; +import org.springframework.boot.system.SystemProperties; +import org.springframework.core.SpringVersion; +import org.springframework.stereotype.Component; + +import java.io.IOException; +import java.net.InetAddress; +import java.net.UnknownHostException; +import java.nio.file.FileStore; +import java.nio.file.FileSystems; +import java.nio.file.Files; +import java.nio.file.Path; +import java.text.NumberFormat; +import java.util.concurrent.ExecutionException; + +@Component +public class RaftServersStartupRunner implements ApplicationRunner { + + @Autowired + protected static final Logger LOG = + LoggerFactory.getLogger(RaftServersStartupRunner.class); + + protected ApplicationLogicServer applicationLogicServer; + protected ClusterManagementServer clusterManagementServer; + private final RaftConfig raftConfig; + private final ClusterMetadataReplicationClient clusterMetadataClient; + //private final ClusterManager clusterManager; + + @Autowired + public RaftServersStartupRunner(RaftConfig raftConfig, ApplicationLogicServer applicationLogicServer, ClusterManagementServer clusterManagementServer, ClusterMetadataReplicationClient clusterMetadataClient) { + this.raftConfig = raftConfig; + //this.clusterManager = clusterManager; + this.applicationLogicServer = applicationLogicServer; + this.clusterManagementServer = clusterManagementServer; + this.clusterMetadataClient = clusterMetadataClient; + } + + private void broadcastNodeMetadata() throws InvalidProtocolBufferException, ExecutionException, InterruptedException, UnknownHostException { + val peers = raftConfig.getManagementPeersList(); + val currentPeer = peers.stream().filter(peer -> peer.getId().toString().equals(raftConfig.getCurrentPeerId())).findFirst().orElse(null); + + val currentPeerPort = NetUtils.createSocketAddr(currentPeer.getAddress()).getPort(); + + val replicatedMetaDataMap = ReplicatedMetadataMap.of(raftConfig.getCurrentPeerId(), clusterMetadataClient); + + replicatedMetaDataMap.put("nodeId", raftConfig.getCurrentPeerId()); + replicatedMetaDataMap.put("storagePath", raftConfig.getStoragePath()); + replicatedMetaDataMap.put("metadataPort", String.valueOf(currentPeerPort)); + replicatedMetaDataMap.put("replicationPort", raftConfig.getReplicationPort()); + + replicatedMetaDataMap.put("httpPort", raftConfig.getHttpPort()); + replicatedMetaDataMap.put("localHostAddress", InetAddress.getLocalHost().getHostAddress()); + replicatedMetaDataMap.put("localHostName", InetAddress.getLocalHost().getHostName()); + + replicatedMetaDataMap.put("remoteHostAddress", raftConfig.getPublicHostAddress()); + + replicatedMetaDataMap.put("osName", System.getProperty("os.name")); + replicatedMetaDataMap.put("osVersion", System.getProperty("os.version")); + + replicatedMetaDataMap.put("springVersion", SpringVersion.getVersion()); + replicatedMetaDataMap.put("jdkVersion", SystemProperties.get("java.version")); + replicatedMetaDataMap.put("javaVersion", JavaVersion.getJavaVersion().toString()); + + StringBuilder totalDiskSpace = new StringBuilder(); + StringBuilder usableDiskSpace = new StringBuilder(); + + NumberFormat nf = NumberFormat.getNumberInstance(); + for (Path root : FileSystems.getDefault().getRootDirectories()) { + try { + FileStore store = Files.getFileStore(root); + totalDiskSpace.append(root).append(" = ") + .append(nf.format(store.getTotalSpace())) + .append(System.getProperty("line.separator")); + usableDiskSpace.append(root).append(" = ") + .append(nf.format(store.getUsableSpace())) + .append(System.getProperty("line.separator")); + } catch (IOException e) { + System.out.println("Error querying disk space: " + e.toString()); + } + } + + replicatedMetaDataMap.put("totalDiskSpace", totalDiskSpace.toString()); + replicatedMetaDataMap.put("usableDiskSpace", usableDiskSpace.toString()); + + System.out.println("=============================="); + System.out.println(replicatedMetaDataMap.toString()); + } + + @Override + public void run(ApplicationArguments args) throws Exception { + try { + clusterManagementServer.start(); + } catch (Exception e) { + e.printStackTrace(); + // noop + } + + LOG.info("Cluster management server started with options : {}", + args.getOptionNames()); + + broadcastNodeMetadata(); + + try { + applicationLogicServer.start(); + } catch (Exception e) { + e.printStackTrace(); + // noop + } + + LOG.info("Raft application server started"); + } +} diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/sysinfo/RaftSystemInfoClient.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/sysinfo/RaftSystemInfoClient.java index e7922a8..f12bf05 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/sysinfo/RaftSystemInfoClient.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/replication/sysinfo/RaftSystemInfoClient.java @@ -2,7 +2,9 @@ import de.umr.raft.raftlogreplicationdemo.config.RaftConfig; import de.umr.raft.raftlogreplicationdemo.models.sysinfo.RaftGroupInfo; +import de.umr.raft.raftlogreplicationdemo.replication.impl.ApplicationLogicServer; import de.umr.raft.raftlogreplicationdemo.replication.impl.ClusterManagementMultiRaftServer; +import de.umr.raft.raftlogreplicationdemo.replication.impl.ClusterManagementServer; import de.umr.raft.raftlogreplicationdemo.replication.impl.clients.ClusterMetadataReplicationClient; import de.umr.raft.raftlogreplicationdemo.replication.impl.facades.metadata.ReplicatedMetadataMap; import lombok.val; @@ -44,7 +46,7 @@ public RaftSystemInfoClient(RaftConfig raftConfig, ClusterMetadataReplicationCli private RaftClient buildAppLogicRaftClient() { RaftGroupId raftGroupId = RaftGroupId.valueOf(getRaftGroupUUID()); String host = raftConfig.getHostAddress(); - val peer = RaftPeer.newBuilder().setId(raftConfig.getCurrentPeerId()).setAddress(host + ":" + raftConfig.getMetadataPort()).build(); + val peer = RaftPeer.newBuilder().setId(raftConfig.getCurrentPeerId()).setAddress(host + ":" + raftConfig.getReplicationPort()).build(); RaftGroup raftGroup = RaftGroup.valueOf(raftGroupId, peer); RaftProperties raftProperties = new RaftProperties(); @@ -97,13 +99,13 @@ public RaftGroupId getRaftGroupIdFromString(String raftGroupId) throws InvalidPr return RaftGroupId.valueOf(UUID.fromString(raftGroupUUID)); } - public RaftGroupInfo getRaftGroupInfo(RaftGroupId raftGroupId) throws IOException, ExecutionException, InterruptedException { + public RaftGroupInfo getRaftGroupInfo(RaftGroupId raftGroupId) throws IOException, ExecutionException, InterruptedException, NoSuchElementException { val replicatedMetaDataMap = ReplicatedMetadataMap.ofRaftGroupScope(raftGroupId, metaDataClient); val raftServerName = replicatedMetaDataMap.get("server"); GroupManagementApi groupManagementApi; - if (ClusterManagementMultiRaftServer.SERVER_NAME.equals(raftServerName)) { + if (ClusterManagementServer.SERVER_NAME.equals(raftServerName)) { groupManagementApi = metaDataClient.getGroupManagementApi(); } else { groupManagementApi = appLogicRaftClient.getGroupManagementApi(appLogicRaftClient.getLeaderId()); diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/services/impl/ReplicatedCounterService.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/services/impl/ReplicatedCounterService.java index bcd0465..2627cf8 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/services/impl/ReplicatedCounterService.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/services/impl/ReplicatedCounterService.java @@ -2,13 +2,14 @@ import de.umr.raft.raftlogreplicationdemo.models.counter.CreateCounterRequest; import de.umr.raft.raftlogreplicationdemo.models.sysinfo.RaftGroupInfo; +import de.umr.raft.raftlogreplicationdemo.replication.api.PartitionInfo; import de.umr.raft.raftlogreplicationdemo.replication.api.proto.CounterOperationResultProto; import de.umr.raft.raftlogreplicationdemo.replication.api.proto.OperationResultStatus; import de.umr.raft.raftlogreplicationdemo.replication.api.statemachines.messages.counter.CounterOperationMessage; -import de.umr.raft.raftlogreplicationdemo.replication.impl.ClusterManagementMultiRaftServer; import de.umr.raft.raftlogreplicationdemo.replication.impl.clients.CounterReplicationClient; +import de.umr.raft.raftlogreplicationdemo.replication.impl.clients.EventStoreReplicationClient; +import de.umr.raft.raftlogreplicationdemo.replication.impl.facades.clustermanagement.ClusterManager; import de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.CounterStateMachine; -import de.umr.raft.raftlogreplicationdemo.replication.impl.statemachines.providers.CounterStateMachineProvider; import de.umr.raft.raftlogreplicationdemo.services.ICounterService; import de.umr.raft.raftlogreplicationdemo.services.ReplicatedService; import de.umr.raft.raftlogreplicationdemo.services.impl.sysinfo.SystemInfoService; @@ -22,24 +23,32 @@ import java.lang.reflect.InvocationTargetException; import java.time.Duration; import java.time.Instant; -import java.util.List; +import java.util.*; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; +import java.util.stream.Collectors; -//@Service +@Service public class ReplicatedCounterService extends ReplicatedService implements ICounterService { @Autowired - ClusterManagementMultiRaftServer clusterManagementMultiRaftServer; + ClusterManager clusterManager; @Autowired SystemInfoService systemInfoService; + Map partitions = new HashMap<>(); + /** * Obtains a client from the registry or creates a new one if missing */ private CounterReplicationClient createClientForCounterId(String counterId) { - return CounterReplicationClient.of(raftConfig, counterId); + val partition = partitions.get(counterId); + var partitionName = counterId; //partition.getPartitionName().getName(); + return CounterReplicationClient.of( + raftConfig, + partitionName, + partition.getRaftGroup()); } private CompletableFuture sendAndExecuteOperationMessage(String counterId, CounterOperationMessage operationMessage) { @@ -61,12 +70,18 @@ private CompletableFuture sendAndExecuteOperationMessage(String counter @Override public CompletableFuture> getCounters() throws IOException, ExecutionException, InterruptedException { - // TODO this is something that must be done by clusterManagementStateMachine via client return wrapInCompletableFuture(() -> { - val raftGroups = systemInfoService.getRaftGroups(); + val counterPartitions = clusterManager.listPartitions(CounterStateMachine.class); + + counterPartitions.forEach(partitionInfo -> partitions.put(partitionInfo.getPartitionName().getName(), partitionInfo)); + + return counterPartitions.stream().map(partitionInfo -> partitionInfo.getPartitionName().getName()).collect(Collectors.toList()); + + /*val raftGroups = systemInfoService.getRaftGroups(); val eventStoreRaftGroups = RaftGroupUtil.filterRaftGroupsByStateMachine(raftGroups, CounterStateMachine.class); val counterIds = RaftGroupUtil.getPartitionNamesFromRaftGroupInfos(eventStoreRaftGroups); - return counterIds; + + return counterIds;*/ }); } @@ -76,14 +91,20 @@ public CompletableFuture> getCounters() throws IOException, Executi * @return Info about the created raft group */ @Override - public CompletableFuture createNewCounter(CreateCounterRequest createCounterRequest) throws IOException, InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException, ExecutionException, InterruptedException { + public CompletableFuture createNewCounter(CreateCounterRequest createCounterRequest) throws IOException, InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException, ExecutionException, InterruptedException { return wrapInCompletableFuture(() -> { - // TODO should allow passing list of peers for this counter partition + val partition = clusterManager.registerPartition( + CounterStateMachine.class, + createCounterRequest.getId(), + createCounterRequest.getPartitionsCount()); + partitions.put(createCounterRequest.getId(), partition); + return partition; + /*// TODO should allow passing list of peers for this counter partition val peers = raftConfig.getManagementPeersList(); // TODO this is something that must be done by clusterManagementStateMachine via client, not directly by server val raftGroupInfo = clusterManagementMultiRaftServer.registerNewRaftGroup( CounterStateMachineProvider.of(createCounterRequest.getId(), peers)); - return raftGroupInfo; + return raftGroupInfo;*/ }); } diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/services/impl/clustermanagement/ClusterManagementService.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/services/impl/clustermanagement/ClusterManagementService.java index 358e754..29f9edf 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/services/impl/clustermanagement/ClusterManagementService.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/services/impl/clustermanagement/ClusterManagementService.java @@ -1,13 +1,18 @@ package de.umr.raft.raftlogreplicationdemo.services.impl.clustermanagement; +import de.umr.raft.raftlogreplicationdemo.models.clustermanagement.DetachPartitionRequest; +import de.umr.raft.raftlogreplicationdemo.models.clustermanagement.PartitionInfoResponse; import de.umr.raft.raftlogreplicationdemo.models.clustermanagement.RaftPeerRequest; import de.umr.raft.raftlogreplicationdemo.models.clustermanagement.RegisterPartitionRequest; -import de.umr.raft.raftlogreplicationdemo.replication.api.PartitionInfo; +import de.umr.raft.raftlogreplicationdemo.models.sysinfo.ClusterHealth; import de.umr.raft.raftlogreplicationdemo.replication.impl.facades.clustermanagement.ClusterManager; import org.apache.ratis.statemachine.impl.BaseStateMachine; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; +import java.util.List; +import java.util.stream.Collectors; + @Service public class ClusterManagementService { @@ -18,14 +23,37 @@ public ClusterManagementService(ClusterManager clusterManager) { this.clusterManager = clusterManager; } - public PartitionInfo registerPartition(RegisterPartitionRequest registerPartitionRequest) throws ClassNotFoundException { - return clusterManager.registerPartition( + public PartitionInfoResponse registerPartition(RegisterPartitionRequest registerPartitionRequest) throws ClassNotFoundException { + var partitionInfo = clusterManager.registerPartition( registerPartitionRequest.getStateMachineClass(), registerPartitionRequest.getPartitionName(), registerPartitionRequest.getReplicationFactor()); + return PartitionInfoResponse.of(partitionInfo); + } + + public PartitionInfoResponse detachPartition(DetachPartitionRequest registerPartitionRequest) throws ClassNotFoundException { + var partitionInfo = clusterManager.detachPartition( + registerPartitionRequest.getStateMachineClass(), + registerPartitionRequest.getPartitionName()); + return PartitionInfoResponse.of(partitionInfo); + } + + public List listPartitions() { + var partitionInfos = clusterManager.listPartitions(); + return partitionInfos.stream().map(PartitionInfoResponse::of).collect(Collectors.toList()); + } + + public List listPartitions(String stateMachineClassname) throws ClassNotFoundException { + var stateMachineClass = Class.forName(stateMachineClassname).asSubclass(BaseStateMachine.class); + var partitionInfos = clusterManager.listPartitions(stateMachineClass); + return partitionInfos.stream().map(PartitionInfoResponse::of).collect(Collectors.toList()); } public void sendHeartbeat(RaftPeerRequest raftPeerRequest) { clusterManager.sendHeartbeat(raftPeerRequest.getRaftPeer()); } + + public ClusterHealth getClusterHealth() { + return clusterManager.getClusterHealth(); + } } diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/services/impl/sysinfo/SystemInfoService.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/services/impl/sysinfo/SystemInfoService.java index 92ebdf9..51548b8 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/services/impl/sysinfo/SystemInfoService.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/services/impl/sysinfo/SystemInfoService.java @@ -3,6 +3,7 @@ import de.umr.raft.raftlogreplicationdemo.config.RaftConfig; import de.umr.raft.raftlogreplicationdemo.models.sysinfo.*; import de.umr.raft.raftlogreplicationdemo.replication.impl.clients.ClusterMetadataReplicationClient; +import de.umr.raft.raftlogreplicationdemo.replication.impl.facades.clustermanagement.ClusterManager; import de.umr.raft.raftlogreplicationdemo.replication.impl.facades.metadata.ReplicatedMetadataMap; import de.umr.raft.raftlogreplicationdemo.replication.sysinfo.RaftSystemInfoClient; import lombok.NonNull; @@ -13,9 +14,7 @@ import org.springframework.stereotype.Service; import java.io.IOException; -import java.util.List; -import java.util.Map; -import java.util.Objects; +import java.util.*; import java.util.concurrent.ExecutionException; import java.util.stream.Collectors; @@ -24,12 +23,14 @@ public class SystemInfoService { private final RaftSystemInfoClient raftSystemInfoClient; private final RaftConfig raftConfig; + private final ClusterManager clusterManager; private final ClusterMetadataReplicationClient clusterMetadataReplicationClient; @Autowired - public SystemInfoService(RaftConfig raftConfig, RaftSystemInfoClient raftSystemInfoClient, ClusterMetadataReplicationClient clusterMetadataReplicationClient) { + public SystemInfoService(RaftConfig raftConfig, ClusterManager clusterManager, RaftSystemInfoClient raftSystemInfoClient, ClusterMetadataReplicationClient clusterMetadataReplicationClient) { this.raftConfig = raftConfig; this.raftSystemInfoClient = raftSystemInfoClient; + this.clusterManager = clusterManager; this.clusterMetadataReplicationClient = clusterMetadataReplicationClient; } @@ -39,7 +40,7 @@ public List getRaftGroups() throws IOException, ExecutionExceptio RaftGroupInfo raftGroupInfo = null; try { raftGroupInfo = raftSystemInfoClient.getRaftGroupInfo(raftGroupId); - } catch (IOException | ExecutionException | InterruptedException e) { + } catch (NoSuchElementException | IOException | ExecutionException | InterruptedException e) { e.printStackTrace(); } return raftGroupInfo; @@ -47,9 +48,10 @@ public List getRaftGroups() throws IOException, ExecutionExceptio // return raftGroups.getGroupIds().stream().map(raftGroupId -> RaftGroupInfo.of(raftGroupId.toString(), raftGroupId.getUuid().toString())).collect(Collectors.toList()); } - public NodeInfo getNodeInfo(String nodeId) throws ExecutionException, InterruptedException, InvalidProtocolBufferException { + public NodeInfo getNodeInfo(String nodeId) throws ExecutionException, InterruptedException, IOException { val replicatedMetaDataMap = ReplicatedMetadataMap.of(nodeId, this.clusterMetadataReplicationClient); - return NodeInfo.of(replicatedMetaDataMap); + val nodeHealth = getClusterHealth().getNodeHealths().stream().filter(n -> n.getId().equals(nodeId)).findFirst().orElse(null); + return NodeInfo.of(replicatedMetaDataMap, nodeHealth); } public DivisionInfo getDivisionInfo(String nodeId, String groupId) throws ExecutionException, InterruptedException, InvalidProtocolBufferException { @@ -57,15 +59,28 @@ public DivisionInfo getDivisionInfo(String nodeId, String groupId) throws Execut return DivisionInfo.of(nodeId, groupId, divisionMetaDataMap); } + // TODO pass UUID for better access performance (avoiding raft query) public RaftGroupInfo getRaftGroupInfo(String raftGroupIdString) throws IOException, ExecutionException, InterruptedException { - // TODO get all groups (of the node) - // TODO then return all divisionInfos per group RaftGroupId raftGroupId = raftSystemInfoClient.getRaftGroupIdFromString(raftGroupIdString); + //RaftGroupId raftGroupId2 = RaftGroupId.valueOf(UUID.fromString(raftGroupIdString)); return raftSystemInfoClient.getRaftGroupInfo(raftGroupId); } public Map getRaftGroupDivisions(String raftGroupId) throws ExecutionException, InterruptedException, IOException { + // TODO poll live instead from meta map + val groupInfo = getRaftGroupInfo(raftGroupId); +/* val serverName = groupInfo.getServerName(); + + val division = clusterManager.getDivision(serverName, RaftGroupId.valueOf(UUID.fromString(groupInfo.getUuid()))); + + val memberId = division.getMemberId().toString(); + val currentTerm = division.getInfo().getCurrentTerm(); + val lastAppliedIndex = division.getInfo().getLastAppliedIndex(); + val role = division.getInfo().getCurrentRole(); + val isAlive = division.getInfo().isAlive();*/ + + return groupInfo.getNodes().stream().map(node -> { val nodeId = node.getId(); try { @@ -91,7 +106,9 @@ public List getNodes(List raftGroupInfos) throws IOExce public SystemInfo getSystemInfo() throws IOException, ExecutionException, InterruptedException { val raftGroups = getRaftGroups(); - val nodes = getNodes(raftGroups); + //val nodes = getNodes(raftGroups); + val nodes = raftConfig.getManagementPeersList().stream().map(NodeInfo::of).collect(Collectors.toList()); + //val nodes = clusterManager.getClusterHealth().getNodeHealths().stream().map(nodeHealth -> NodeInfo.of(nodeHealth)).collect(Collectors.toList()); val currentNodeId = getCurrentNodeId(); // val currentNode = nodes.stream() // .filter(node -> node.getId().equals(currentNodeId)) @@ -106,19 +123,22 @@ public Map> getAllMetaData() throws IOException, Exe } public ClusterHealth getClusterHealth() throws IOException, ExecutionException, InterruptedException { - val raftGroups = getRaftGroups(); - val nodes = getNodes(raftGroups); - List nodeHealths = nodes.stream().map(nodeInfo -> { - try { - return getNodeHealth(nodeInfo.getId()); - } catch (ExecutionException | InterruptedException | InvalidProtocolBufferException e) { - e.printStackTrace(); - return null; - } - }).collect(Collectors.toList()); - val healthyNodes = nodeHealths.stream().filter(nodeHealth -> nodeHealth.getConnectionState() == NodeHealth.ConnectionState.CONNECTED).count(); - val isHealthy = healthyNodes > nodes.size() / 2; - return ClusterHealth.of(isHealthy, nodeHealths); +// val raftGroups = getRaftGroups(); +// val nodes = getNodes(raftGroups); +// List nodeHealths = nodes.stream().map(nodeInfo -> { +// try { +// return getNodeHealth(nodeInfo.getId()); +// } catch (ExecutionException | InterruptedException | InvalidProtocolBufferException e) { +// e.printStackTrace(); +// return null; +// } +// }).collect(Collectors.toList()); +// val healthyNodes = nodeHealths.stream().filter(nodeHealth -> nodeHealth.getConnectionState() == NodeHealth.ConnectionState.CONNECTED).count(); +// val isHealthy = healthyNodes > nodes.size() / 2; + + + return clusterManager.getClusterHealth(); + //return ClusterHealth.of(isHealthy, nodeHealths); } private String getCurrentNodeId() { diff --git a/src/main/java/de/umr/raft/raftlogreplicationdemo/services/impl/sysinfo/performance/MeasureEventStorePerformanceService.java b/src/main/java/de/umr/raft/raftlogreplicationdemo/services/impl/sysinfo/performance/MeasureEventStorePerformanceService.java index 64ea318..d87d706 100644 --- a/src/main/java/de/umr/raft/raftlogreplicationdemo/services/impl/sysinfo/performance/MeasureEventStorePerformanceService.java +++ b/src/main/java/de/umr/raft/raftlogreplicationdemo/services/impl/sysinfo/performance/MeasureEventStorePerformanceService.java @@ -22,6 +22,8 @@ import java.util.stream.Collectors; import java.util.stream.LongStream; +// TODO start again once cluster management works + @Service public class MeasureEventStorePerformanceService extends MeasurePerformanceService { diff --git a/src/main/js/api/apiClient.js b/src/main/js/api/apiClient.js index 713bf8b..20100f7 100644 --- a/src/main/js/api/apiClient.js +++ b/src/main/js/api/apiClient.js @@ -48,7 +48,7 @@ class ApiClient { 'Accept': 'application/json', 'Content-Type': 'application/json' }, - body: JSON.stringify({ id: counterId }) + body: JSON.stringify({ id: counterId, partitionsCount: partitions }) }); return response.json(); } diff --git a/src/main/js/components/nodeInfo.js b/src/main/js/components/nodeInfo.js index e187b6f..40d935f 100644 --- a/src/main/js/components/nodeInfo.js +++ b/src/main/js/components/nodeInfo.js @@ -82,17 +82,18 @@ class NodeInfo extends Component { if (!this.state.nodeInfo) return const { classes } = this.props; - const { id, host, httpPort, metadataPort, storagePath, - localHostAddress, localHostName, remoteHostAddress, - osName, osVersion, + const { id, host, httpPort, metadataPort, replicationPort, + storagePath, localHostAddress, localHostName, + remoteHostAddress, osName, osVersion, javaVersion, jdkVersion, springVersion, totalDiskSpace, usableDiskSpace, - heartbeat } = this.state.nodeInfo; + heartbeat, health } = this.state.nodeInfo; const httpAddress = `${host}:${httpPort}`; // TODO should use https const httpAdminAddress = `http://${remoteHostAddress}:${httpPort}/admin`; const metadataAddress = `${host}:${metadataPort}`; + const replicationAddress = `${host}:${replicationPort}`; const formatBytes = (bytes, decimals = 2) => { if (bytes === 0) return '0 Bytes'; @@ -125,12 +126,12 @@ class NodeInfo extends Component { // TODO also show on front page // TODO mark as red if > 30 sek, orange > 15 sec // TODO row "status" with connected, interrupted, disconnected - const heartbeatBefore = (Date.now() - parseInt(heartbeat)) / 1000; + const heartbeatBefore = (Date.now() - new Date(heartbeat).getTime()) / 1000; - // TODO make configurable or get status info from server - const status = heartbeatBefore > 30 ? 'disconnected' + /*const status = heartbeatBefore > 30 ? 'disconnected' : heartbeatBefore > 10 ? 'interrupted' - : 'connected'; + : 'connected';*/ + const status = health; const formattedStatus = inflection.capitalize(status); const formattedHeartbeatBefore = `~ ${heartbeatBefore.toFixed(0)} s`; @@ -140,11 +141,12 @@ class NodeInfo extends Component {
{formattedStatus}
+
{formattedStatus}
} /> - + + {httpAdminAddress}} /> diff --git a/src/main/js/components/raftGroups.js b/src/main/js/components/raftGroups.js index f91681b..b4305c2 100644 --- a/src/main/js/components/raftGroups.js +++ b/src/main/js/components/raftGroups.js @@ -23,7 +23,8 @@ const useStyles = theme => ({ }, serverTitle: { marginBottom: 14, - fontSize: "16px" + fontSize: "16px", + marginTop: 28 }, stateMachineTitle: { margin: "14px 0", diff --git a/src/main/proto/operations/clustermanagement/ClusterManagementOperation.proto b/src/main/proto/operations/clustermanagement/ClusterManagementOperation.proto index 740140b..0b04a71 100644 --- a/src/main/proto/operations/clustermanagement/ClusterManagementOperation.proto +++ b/src/main/proto/operations/clustermanagement/ClusterManagementOperation.proto @@ -13,12 +13,14 @@ message RaftPeerProto { message RaftGroupProto { bytes id = 1; // id of the group - repeated RaftPeerProto peers = 2; //list of the peers + string uuid = 2; + string name = 3; + repeated RaftPeerProto peers = 4; //list of the peers } message PartitionNameProto { string name = 1; - string serverName = 2; + string stateMachineClassName = 2; } enum PartitionState { @@ -28,18 +30,34 @@ enum PartitionState { DETACHED = 3; } +enum ConnectionState { + CONNECTED = 0; + INTERRUPTED = 1; + DISCONNECTED = 2; +} + message PartitionInfoProto { PartitionNameProto partitionName = 1; RaftGroupProto raftGroup = 2; PartitionState partitionState = 3; } +message NodeHealthProto { + string peerId = 1; + ConnectionState connectionState = 2; + string heartbeat = 3; +} + enum ClusterManagementOperationType { NULL = 0; // null/noop operation that does nothing REGISTER_PARTITION = 1; // registers a new partition for a set of peers and a state machine - DETACH_PARTITION = 2; // detaches a partition without deleting its persisted contents - LIST_PARTITIONS = 3; // lists all registered partitions (all or for a specific state machine) - HEARTBEAT = 4; // sends a heartbeat to let the cluster know of this peer + INSTANTIATE_PARTITION = 2; // internal + ACKNOWLEDGE_PARTITION_REGISTRATION = 3; // internal + DETACH_PARTITION = 4; // detaches a partition without deleting its persisted contents + LIST_PARTITIONS = 5; // lists all registered partitions (all or for a specific state machine) + HEARTBEAT = 6; // sends a heartbeat to let the cluster know of this peer + GET_CLUSTER_HEALTH = 7; // returns the health of the cluster (and its nodes) + GET_STATEMACHINE_FOR_RAFT_GROUP = 8; // returns the state machine class name registered for a raft group } message RegisterPartitionRequestProto { @@ -49,8 +67,21 @@ message RegisterPartitionRequestProto { uint32 replication_factor = 3; // determines number of nodes to include into this partition. Min 3, max # of available nodes } +// instantiates the state machine +message InstantiatePartitionRequestProto { + string statemachine_classname = 1; // name of the state machine class + string partition_name = 2; // name of the partition to instantiate. Must be unique per statemachine +} + +// acknowledges the instantiation +message AcknowledgePartitionRegistrationProto { + string statemachine_classname = 1; // name of the state machine class + string partition_name = 2; // name of the partition to acknowledge. Must be unique per statemachine +} + message DetachPartitionRequestProto { - string partition_name = 1; // name of the partition + string statemachine_classname = 1; // name of the state machine class + string partition_name = 2; // name of the partition to detach. Must be unique per statemachine } message ListPartitionsRequestProto { @@ -61,12 +92,22 @@ message HeartbeatRequestProto { RaftPeerProto peer = 1; // the peer sending the heartbeat } +message GetClusterHealthRequestProto {} + +message GetStateMachineForRaftGroupProto { + bytes raft_group_id = 1; +} + message ClusterManagementRequestProto { oneof Type { RegisterPartitionRequestProto registerPartitionRequest = 1; - DetachPartitionRequestProto detachPartitionRequest = 2; - ListPartitionsRequestProto listPartitionsRequest = 3; - HeartbeatRequestProto heartbeatRequestProto = 4; + InstantiatePartitionRequestProto instantiatePartitionRequest = 2; + AcknowledgePartitionRegistrationProto acknowledgePartitionRegistrationRequest = 3; + DetachPartitionRequestProto detachPartitionRequest = 4; + ListPartitionsRequestProto listPartitionsRequest = 5; + HeartbeatRequestProto heartbeatRequestProto = 6; + GetClusterHealthRequestProto getClusterHealthRequestProto = 7; + GetStateMachineForRaftGroupProto getStateMachineForRaftGroupRequest = 8; } } @@ -87,16 +128,27 @@ message HeartbeatResponseProto { // empty message } +message ClusterHealthResponseProto { + bool isHealthy = 1; + repeated NodeHealthProto node_info = 2; +} + message ListPartitionsResponseProto { repeated PartitionInfoProto partition_info = 1; } +message GetStateMachineForRaftGroupResponseProto { + string state_machine_classname = 1; +} + message ClusterManagementResponseProto { oneof Type { RegisterPartitionResponseProto registerPartitionResponse = 1; DetachPartitionResponseProto detachPartitionResponse = 2; ListPartitionsResponseProto listPartitionsResponse = 3; HeartbeatResponseProto heartbeatResponse = 4; + ClusterHealthResponseProto clusterHealthResponse = 5; + GetStateMachineForRaftGroupResponseProto getStateMachineForRaftGroupResponse = 6; } } diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 550f146..ed8e02d 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,5 +1,6 @@ server.port=8000 metadata-port=6000 +replication-port=6050 # The interval at which heartbeats are sent between raft nodes (in ms) heartbeat.interval=1000 @@ -26,7 +27,7 @@ eventstore.buffer.enabled=true # ⚠ This buffer must not succeed the size of the raft log buffer # (see raft.server.log.appender.buffer.byte-limit) # Default: 100kb -# eventstore.buffer.size=102400 +#eventstore.buffer.size=102400 # 1kb # eventstore.buffer.size=1024 # 10kb diff --git a/src/main/resources/static/built/bundle.js b/src/main/resources/static/built/bundle.js index 1a3263c..f4c1a94 100644 --- a/src/main/resources/static/built/bundle.js +++ b/src/main/resources/static/built/bundle.js @@ -49727,7 +49727,8 @@ var ApiClient = /*#__PURE__*/function () { 'Content-Type': 'application/json' }, body: JSON.stringify({ - id: counterId + id: counterId, + partitionsCount: partitions }) }); @@ -52332,6 +52333,7 @@ var NodeInfo = /*#__PURE__*/function (_Component) { host = _this$state$nodeInfo.host, httpPort = _this$state$nodeInfo.httpPort, metadataPort = _this$state$nodeInfo.metadataPort, + replicationPort = _this$state$nodeInfo.replicationPort, storagePath = _this$state$nodeInfo.storagePath, localHostAddress = _this$state$nodeInfo.localHostAddress, localHostName = _this$state$nodeInfo.localHostName, @@ -52343,11 +52345,13 @@ var NodeInfo = /*#__PURE__*/function (_Component) { springVersion = _this$state$nodeInfo.springVersion, totalDiskSpace = _this$state$nodeInfo.totalDiskSpace, usableDiskSpace = _this$state$nodeInfo.usableDiskSpace, - heartbeat = _this$state$nodeInfo.heartbeat; + heartbeat = _this$state$nodeInfo.heartbeat, + health = _this$state$nodeInfo.health; var httpAddress = "".concat(host, ":").concat(httpPort); // TODO should use https var httpAdminAddress = "http://".concat(remoteHostAddress, ":").concat(httpPort, "/admin"); var metadataAddress = "".concat(host, ":").concat(metadataPort); + var replicationAddress = "".concat(host, ":").concat(replicationPort); var formatBytes = function formatBytes(bytes) { var decimals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2; @@ -52378,9 +52382,12 @@ var NodeInfo = /*#__PURE__*/function (_Component) { // TODO row "status" with connected, interrupted, disconnected - var heartbeatBefore = (Date.now() - parseInt(heartbeat)) / 1000; // TODO make configurable or get status info from server + var heartbeatBefore = (Date.now() - new Date(heartbeat).getTime()) / 1000; + /*const status = heartbeatBefore > 30 ? 'disconnected' + : heartbeatBefore > 10 ? 'interrupted' + : 'connected';*/ - var status = heartbeatBefore > 30 ? 'disconnected' : heartbeatBefore > 10 ? 'interrupted' : 'connected'; + var status = health; var formattedStatus = inflection__WEBPACK_IMPORTED_MODULE_2___default().capitalize(status); var formattedHeartbeatBefore = "~ ".concat(heartbeatBefore.toFixed(0), " s"); // TODO may better populate this list automatically by model sent from backend @@ -52397,7 +52404,7 @@ var NodeInfo = /*#__PURE__*/function (_Component) { } }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: classes.connectionStateIndicator, - "data-status": status + "data-status": status.toLowerCase() }), formattedStatus) }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(InfoListItem, { classes: classes, @@ -52409,8 +52416,12 @@ var NodeInfo = /*#__PURE__*/function (_Component) { content: httpAddress }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(InfoListItem, { classes: classes, - label: "Replication RPC address", + label: "Cluster management RPC address", content: metadataAddress + }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(InfoListItem, { + classes: classes, + label: "Replication RPC address", + content: replicationAddress }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(InfoListItem, { classes: classes, label: "Management web console", @@ -52919,7 +52930,8 @@ var useStyles = function useStyles(theme) { }, serverTitle: { marginBottom: 14, - fontSize: "16px" + fontSize: "16px", + marginTop: 28 }, stateMachineTitle: { margin: "14px 0", diff --git a/src/main/resources/static/built/bundle.js.map b/src/main/resources/static/built/bundle.js.map index 12f2ea4..e049c07 100644 --- a/src/main/resources/static/built/bundle.js.map +++ b/src/main/resources/static/built/bundle.js.map @@ -1 +1 @@ -{"version":3,"file":"./src/main/resources/static/built/bundle.js","mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;;AAEA;AACA,sBAAyB,mBAAmB,yBAAyB;;;;;;;;;;ACPrE,cAAc,mHAAmD;;AAEjE;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,sBAAyB,mBAAmB,yBAAyB;;;;;;;;;;ACrDrE;AACA;;AAEA;AACA;AACA;AACA;;AAEA,IAAI,sBAAyB,mBAAmB,yBAAyB;AACzE,IAAI;AACJ;AACA;AACA;;AAEA,IAAI,sBAAyB,mBAAmB,yBAAyB;AACzE;;AAEA;AACA;;AAEA;AACA,sBAAyB,mBAAmB,yBAAyB;;;;;;;;;;;;;;;;;;;ACrBrE;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,kBAAkB,sBAAsB;AACxC;;AAEA;AACA;AACA;AACA,OAAO;AACP,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,IAAI;AACJ;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,cAAc,uBAAuB;AACrC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA,gBAAgB,6BAA6B;AAC7C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mFAAmF;AACnF;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,sEAAsE,+BAA+B;AACrG;AACA;AACA;AACA,GAAG,GAAG;AACN;;;AAGA;AACA,iCAAiC;AACjC;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gDAAgD;AAChD;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gDAAgD;AAChD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH,kBAAkB,oBAAoB;AACtC;AACA;;AAEA;AACA;;AAE+E;;;;;;;;;;;;;;;;;;;;;;ACpN/E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACqD;AAClB;AACT;;AAE1B;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,kBAAkB,sBAAsB;AACxC;;AAEA;AACA;AACA;AACA,OAAO;AACP,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,IAAI;AACJ;AACA;;AAEA;AACA;;AAEA;AACA;AACA,oBAAoB,sBAAsB;AAC1C;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,cAAc,uBAAuB;AACrC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA,gBAAgB,6BAA6B;AAC7C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,wBAAwB,6CAAgB;AACxC;AACA;AACA;AACA;;AAEA,uBAAuB,mEAAa,iCAAiC,WAAW;AAChF;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,sBAAsB,gDAAmB;AACzC,CAAC;AACD;AACA;AACA,iBAAiB,0DAAgB;AACjC,gBAAgB,0DAAgB;AAChC,qBAAqB,0DAAgB;AACrC,YAAY,wDAAc;AAC1B,aAAa,0DAAgB;AAC7B,UAAU,2DAAmB,EAAE,0DAAgB,EAAE,0DAAgB;AACjE,uBAAuB,0DAAgB;AACvC,YAAY,0DAAgB;AAC5B,WAAW,0DAAgB;AAC3B,SAAS,2DAAmB,EAAE,0DAAgB,EAAE,0DAAgB;AAChE,SAAS,0DAAgB;AACzB;AACA;AACA;AACA;AACA;;AAEmE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACtKnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC8F;AACpE;AACI;AACV;;AAEpB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,6CAAgB;AAC1D;AACA,aAAa,oDAAwB;;AAErC,sBAAsB,gDAAmB,CAAC,gDAAI,EAAE,oDAAQ;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,wCAAwC,gDAAmB;AAC9D;AACA,GAAG;AACH,CAAC;AACD,0CAA0C,6CAAgB;AAC1D;AACA,aAAa,oDAAwB;;AAErC,sBAAsB,gDAAmB,CAAC,gDAAI,EAAE,oDAAQ;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,0CAA0C,gDAAmB;AAChE;AACA,GAAG;AACH,CAAC;AACD,0CAA0C,6CAAgB;AAC1D;AACA,aAAa,oDAAwB;;AAErC,sBAAsB,gDAAmB,CAAC,gDAAI,EAAE,oDAAQ;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,0CAA0C,gDAAmB;AAChE;AACA,GAAG;A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AAQ;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,8CAA8C,gDAAmB;AACpE;AACA,GAAG,yCAAyC,gDAAmB;AAC/D;AACA,GAAG;AACH,CAAC;AACD,qCAAqC,6CAAgB;AACrD;AACA,aAAa,oDAAwB;;AAErC,sBAAsB,gDAAmB,CAAC,gDAAI,EAAE,oDAAQ;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,8CAA8C,gDAAmB;AACpE;AACA,GAAG,yCAAyC,gDAAmB;AAC/D;AACA,GAAG;AACH,CAAC;;AAE+/K;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC55IhgL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC8F;AACpE;AACI;AACV;;AAEpB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,6CAAgB;AACrD;AACA,aAAa,oDAAwB;;AAErC,sBAAsB,gDAAmB,CAAC,gDAAI,EAAE,oDAAQ;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,wCAAwC,gDAAmB;AAC9D;AACA,GAAG,qCAAqC,gDAAmB;AAC3D;AACA,GAAG;AACH,CAAC;AACD,qCAAqC,6CAAgB;AACrD;AACA,aAAa,oDAAwB;;AAErC,sBAAsB,gDAAmB,CAAC,gDAAI,EAAE,oDAAQ;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,0CAA0C,gDAAmB;AAChE;AACA,GAAG,qCAAqC,gDAAmB;AAC3D;AACA,GAAG;AACH,CAAC;AACD,sCAAsC,6CAAgB;AACtD;AACA,aAAa,oDAAwB;;AAErC,sBAAsB,gDAAmB,CAAC,gDAAI,EAAE,oDAAQ;AACxD;A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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC75IpnH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC8F;AACpE;AACI;AACV;;AAEpB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,6CAAgB;AAChD;AACA,aAAa,oDAAwB;;AAErC,sBAAsB,gDAAmB,CAAC,gDAAI,EAAE,oDAAQ;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,wCAAwC,gDAAmB;AAC9D;AACA;AACA,GAAG;AACH,CAAC;AACD,gCAAgC,6CAAgB;AAChD;AACA,aAAa,oDAAwB;;AAErC,sBAAsB,gDAAmB,CAAC,gDAAI,EAAE,oDAAQ;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,0CAA0C,gDAAmB;AAChE;AACA;AACA,GAAG;AACH,CAAC;AACD,8BAA8B,6CAAgB;AAC9C;AACA,aAAa,oDAAwB;;AAErC,sBAAsB,gDAAmB,CAAC,gDAAI,EAAE,oDAAQ;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,0CAA0C,gDAAmB;AAChE;AACA,GAAG,qCAAqC,gDAAmB;AAC3D;AACA,GAAG;AACH,CAAC;AACD,8BAA8B,6CAAgB;AAC9C;AACA,aAAa,oDAAwB;;AAErC,sBAAsB,gDAAmB,CAAC,gDAAI,EAAE,oDAAQ;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,0CAA0C,gDAAmB;AAChE;AACA,GAAG,qCAAqC,gDAAmB;AAC3D;AACA,GAAG;AACH,CAAC;AACD,8BAA8B,6CAAgB;AAC9C;AACA,aAAa,oDAAwB;;AAErC,sBAAsB,gDAAmB,CAAC,gDAAI,EAAE,oDAAQ;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,0CA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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,6CAAgB;AAC1C;AACA,aAAa,oDAAwB;;AAErC,sBAAsB,gDAAmB,CAAC,gDAAI,EAAE,oDAAQ;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,wCAAwC,gDAAmB;AAC9D;AACA,GAAG;AACH,CAAC;AACD,8BAA8B,6CAAgB;AAC9C;AACA,aAAa,oDAAwB;;AAErC,sBAAsB,gDAAmB,CAAC,gDAAI,EAAE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gDAAmB,CAAC,gDAAI,EAAE,oDAAQ;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,8CAA8C,gDAAmB;AACpE;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG;AACH,CAAC;AACD,kCAAkC,6CAAgB;AAClD;AACA,aAAa,oDAAwB;;AAErC,sBAAsB,gDAAmB,CAAC,gDAAI,EAAE,oDAAQ;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,8CAA8C,gDAAmB;AACpE;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG;AACH,CAAC;AACD,kCAAkC,6CAAgB;AAClD;AACA,aAAa,oDAAwB;;AAErC,sBAAsB,gDAAmB,CAAC,gDAAI,EAAE,oDAAQ;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,8CAA8C,gDAAmB;AACpE;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG;AACH,CAAC;AACD,kCAAkC,6CAAgB;AAClD;AACA,aAAa,oDAAwB;;AAErC,sBAAsB,gDAAmB,CAAC,gDAAI,EAAE,oDAAQ;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,8CAA8C,gDAAmB;AACpE;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG;AACH,CAAC;AACD,kCAAkC,6CAAgB;AAClD;AACA,aAAa,oDAAwB;;AAErC,sBAAsB,gDAAmB,CAAC,gDAAI,EAAE,oDAAQ;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,8CAA8C,gDAAmB;AACpE;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,2CAA2C,gDAAmB;AACjE;AACA;AACA;AACA,GAAG,6CAA6C,gDAAmB;AACnE;AACA;AACA;AACA,GAAG,6CAA6C,gDAAmB;AACnE;AACA;AACA;AACA,GAAG,6CAA6C,gDAAmB;AACnE;AACA;AACA;AACA,G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,CAAC;;AAEqiH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC1tJtiH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC8F;AACpE;AACI;AACV;;AAEpB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,6CAAgB;AAC5C;AACA,aAAa,oDAAwB;;AAErC,sBAAsB,gDAAmB,CAAC,gDAAI,EAAE,oDAAQ;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,4CAA4C,gDAAmB;AAClE;AACA;AACA;AACA,GAAG,yCAAyC,gDAAmB;AAC/D;AACA;AACA;AACA,GAAG,mCAAmC,gDAAmB;AACzD;AACA,GAAG;AACH,CAAC;AACD,4BAA4B,6CAAgB;AAC5C;AACA,aAAa,oDAAwB;;AAErC,sBAAsB,gDAAmB,CAAC,gDAAI,EAAE,oDAAQ;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,8CAA8C,gDAAmB;AACpE;AACA;AACA;AACA,GAAG,yCAAyC,gDAAmB;AAC/D;AACA;AACA;AACA,GAAG,qCAAqC,gDAAmB;AAC3D;AACA,GAAG;AACH,CAAC;AACD,4BAA4B,6CAAgB;AAC5C;AACA,aAAa,oDAAwB;;AAErC,sBAAsB,gDAAmB,CAAC,gDAAI,EAAE,oDAAQ;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,8CAA8C,gDAAmB;AACpE;AACA;AACA;AACA,GAAG,yCAAyC,gDAAmB;AAC/D;AACA;AACA;AACA,GAAG,qCAAqC,gDAAmB;AAC3D;AACA,GAAG;AACH,CAAC;AACD,4BAA4B,6CAAgB;AAC5C;AACA,aAAa,oDAAwB;;AAErC,sBAAsB,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ACA;AACA;AACA;AACA;AACA;AACA,GAAG,8CAA8C,gDAAmB;AACpE;AACA,GAAG;AACH,CAAC;AACD,+BAA+B,6CAAgB;AAC/C;AACA,aAAa,oDAAwB;;AAErC,sBAAsB,gDAAmB,CAAC,gDAAI,EAAE,oDAAQ;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,8CAA8C,gDAAmB;AACpE;AACA,GAAG;AACH,CAAC;AACD,+BAA+B,6CAAgB;AAC/C;AACA,aAAa,oDAAwB;;AAErC,sBAAsB,gDAAmB,CAAC,gDAAI,EAAE,oDAAQ;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,8CAA8C,gDAAmB;AACpE;AACA,GAAG;AACH,CAAC;;AAEihH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACp7JlhH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC8F;AACpE;AACI;AACV;;AAEpB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,6CAAgB;AAC7C;AACA,aAAa,oDAAwB;;AAErC,sBAAsB,gDAAmB,CAAC,gDAAI,EAAE,oDAAQ;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,wCAAwC,gDAAmB;AAC9D;AACA,GAAG;AACH,CAAC;AACD,6BAA6B,6CAAgB;AAC7C;AACA,aAAa,oDAAwB;;AAErC,sBAAsB,gDAAmB,CAAC,gDAAI,EAAE,oDAAQ;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,0CAA0C,gDAAmB;AAChE;AACA,GAAG;AACH,CAAC;AACD,6BAA6B,6CAAgB;AAC7C;AACA,aAAa,oDAAwB;;AAErC,sBAAsB,g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ACA,aAAa,oDAAwB;;AAErC,sBAAsB,gDAAmB,CAAC,gDAAI,EAAE,oDAAQ;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,8CAA8C,gDAAmB;AACpE;AACA,GAAG;AACH,CAAC;AACD,8BAA8B,6CAAgB;AAC9C;AACA,aAAa,oDAAwB;;AAErC,sBAAsB,gDAAmB,CAAC,gDAAI,EAAE,oDAAQ;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,8CAA8C,gDAAmB;AACpE;AACA,GAAG,yCAAyC,gDAAmB;AAC/D;AACA,GAAG;AACH,CAAC;AACD,8BAA8B,6CAAgB;AAC9C;AACA,aAAa,oDAAwB;;AAErC,sBAAsB,gDAAmB,CAAC,gDAAI,EAAE,oDAAQ;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,8CAA8C,gDAAmB;AACpE;AACA,GAAG,yCAAyC,gDAAmB;AAC/D;AACA,GAAG;AACH,CAAC;AACD,8BAA8B,6CAAgB;AAC9C;AACA,aAAa,oDAAwB;;AAErC,sBAAsB,gDAAmB,CAAC,gDAAI,EAAE,oDAAQ;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,8CAA8C,gDAAmB;AACpE;AACA,GAAG,yCAAyC,gDAAmB;AAC/D;AACA,GAAG;AACH,CAAC;;AAEsjI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACl1I7/H;AACA;AACY;AACoB;AAC3D;AACO;AACH;AACX;AAC4B;AACjB;AACN;AACiB;AACI;AACC;AAC5C;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;;AAEL,sDAAsD,MAAM;AAC5D;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,wDAAwD,KAAK;AAC7D,gBAAgB;;AAEhB,wDAAwD,KAAK;AAC7D;AACA;AACA;AACA,6BAA6B,6CAAgB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D,8CAAQ;AACvE;AACA,cAAc,2FAAwB;;AAEtC,uBAAuB,6DAAa;AACpC;AACA;AACA;AACA;AACA,GAAG;AACH,wBAAwB,iFAAc;AACtC;AACA;;AAEA,qBAAqB,8CAAiB;AACtC;;AAEA;AACA;AACA;AACA,GAAG;;AAEH,8BAA8B,mDAAsB;AACpD,+BAA+B,2EAAQ;AACvC;AACA;;AAEA,qBAAqB,0CAAa;AAClC;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,sBAAsB,gDAAmB,CAAC,4CAAK,EAAE,2EAAQ;AACzD,eAAe,6CAAI;AACnB;AACA;AACA,GAAG,uBAAuB,gDAAmB,CAAC,gEAAyB;AACvE;AACA,GAAG,yBAAyB,gDAAmB,sBAAsB,2EAAQ;AAC7E;AACA;AACA,GAAG,iCAAiC,gDAAmB;AACvD;AACA;AACA;AACA,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,4DAAc,CAAC,mEAAyB;AACpD,kBAAkB,mDAAsB;;AAExC,QAAQ,oDAAU;AAClB;AACA;;AAEA,uBAAuB,iDAAoB;AAC3C;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,WAAW,0DAAgB;;AAE3B;AACA;AACA;AACA,aAAa,0DAAgB;;AAE7B;AACA;AACA;AACA,mBAAmB,wDAAc;;AAEjC;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,SAAS;AACtB;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,UAAU,wDAAc;;AAExB;AACA;AACA;AACA;AACA,uBAAuB,+DAAqB;;AAE5C;AACA;AACA;AACA,mBAAmB,0DAAgB;AACnC,EAAE,EAAE,CAAM;AACV,+DAAe,4DAAU;AACzB;AACA,CAAC,YAAY;;;;;;;;;;;;;AChOkB;AAC/B;AACA;AACA,UAAU,iBAAiB,GAAG,yDAAyD;AACvF;;AAEA,uBAAuB,gDAAmB,GAAG;;AAE7C,IAAI,IAAqC;AACzC;AACA;;AAEA,+DAAe,gBAAgB;;;;;;;;;;;;;;;;;;;;;;ACZ2B;AACgC;AAC3D;AACI;AACX;AACsB;AACvC;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,6CAAgB;AACpD;AACA;AACA,cAAc,2FAAwB;;AAEtC,sBAAsB,gDAAmB,QAAQ,2EAAQ;AACzD,eAAe,6CAAI;AACnB;AACA,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA;AACA,WAAW,0DAAgB;;AAE3B;AACA;AACA;AACA,aAAa,0DAAgB;AAC7B,EAAE,EAAE,CAAM;AACV,+DAAe,2DAAU;AACzB;AACA,CAAC,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;ACjDsC;AACgC;;AAE1F;AAC+B;AACI;AACX;AAC4B;AACb;AACA;AACO;AACe;AACtD;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;;AAEL,mHAAmH,KAAK;AACxH,gBAAgB;;AAEhB;AACA,eAAe;;AAEf;AACA,oBAAoB;;AAEpB,8DAA8D,KAAK;AACnE,gBAAgB;;AAEhB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,6CAAgB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA,8DAA8D;AAC9D;AACA,cAAc,2FAAwB;;AAEtC,0BAA0B,6CAAgB,CAAC,gEAAgB;AAC3D;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,sBAAsB,gDAAmB,CAAC,gDAAU,EAAE,2EAAQ;AAC9D;AACA;AACA;AACA;AACA;AACA,eAAe,6CAAI;AACnB,2BAA2B,6CAAI;AAC/B;AACA;AACA,GAAG,uBAAuB,gDAAmB;AAC7C,eAAe,6CAAI;AACnB,GAAG,wCAAwC,gDAAmB,CAAC,gDAAU,EAAE,2EAAQ;AACnF,eAAe,6CAAI;AACnB;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA;AACA,WAAW,2DAAc,CAAC,0DAAgB;AAC1C;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,0DAAgB;;AAE7B;AACA;AACA;AACA,cAAc,wDAAc;;AAE5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,0DAAgB;;AAEzC;AACA;AACA;AACA,mBAAmB,0DAAgB;;AAEnC;AACA;AACA;AACA,WAAW,wDAAc;AACzB,EAAE,EAAE,CAAM;AACV,+DAAe,2DAAU;AACzB;AACA,CAAC,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;ACrLsC;AACgC;AAC3D;AACI;AACX;AACsB;AACD;AAChB;AACtB;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,6CAAgB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC,sBAAsB,gDAAmB,CAAC,2CAAK,EAAE,2EAAQ;AACzD;AACA;AACA;AACA,eAAe,6CAAI,yCAAyC,0DAAU,qCAAqC,0DAAU;AACrH;AACA,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA;AACA,WAAW,0DAAgB;;AAE3B;AACA;AACA;AACA,aAAa,0DAAgB;;AAE7B;AACA;AACA;AACA,SAAS,uDAAe;;AAExB;AACA;AACA;AACA;AACA;AACA,YAAY,uDAAe;AAC3B,EAAE,EAAE,CAAM;AACV,+DAAe,2DAAU;AACzB;AACA,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;AChJgD;AACgC;AAC3D;AACI;AACX;AACsB;AACnB;AACpB;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH,uDAAuD,KAAK;AAC5D;AACA;AACA;AACA;AACA,4BAA4B,6CAAgB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D,0CAAI;AACnE,cAAc,2FAAwB;;AAEtC,sBAAsB,gDAAmB,sBAAsB,2EAAQ;AACvE;AACA;AACA,GAAG,uBAAuB,gDAAmB;AAC7C,eAAe,6CAAI;AACnB;AACA;AACA,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA;AACA,WAAW,0DAAgB;;AAE3B;AACA;AACA;AACA,aAAa,0DAAgB;;AAE7B;AACA;AACA;AACA;AACA,aAAa,wDAAc;;AAE3B;AACA;AACA;AACA,QAAQ,mEAAyB;;AAEjC;AACA;AACA;AACA;AACA,sBAAsB,2DAAmB,EAAE,0DAAgB,EAAE,uDAAe;AAC5E,YAAY,0DAAgB;AAC5B,WAAW,0DAAgB;AAC3B,UAAU,0DAAgB;AAC1B,GAAG;AACH,EAAE,EAAE,CAAM;AACV,+DAAe,2DAAU;AACzB;AACA,CAAC,WAAW;;;;;;;;;;;;;;;;;;;;;AC/F8C;AACgC;AAC3D;AACI;AACW;AACS;AACK;AACrB;;AAEvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,yBAAyB,mEAAS;AAClC;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA,cAAc,2FAAwB;;AAEtC,sBAAsB,gDAAmB,CAAC,gDAAU,EAAE,2EAAQ;AAC9D;AACA;AACA;AACA,GAAG,uBAAuB,gDAAmB,CAAC,kEAAa;AAC3D;AACA,GAAG;AACH;;AAEA,KAAqC;AACrC;AACA;AACA;AACA,WAAW,qEAA2B;AACtC,EAAE,EAAE,CAAM;AACV,+DAAe,2DAAU;AACzB;AACA,CAAC,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;AC3DmC;AACoB;AACY;AAC3D;AACO;AACH;AACX;AACsB;AACP;AACiB;AACjD;AACP;AACA,UAAU;;AAEV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,QAAQ;;AAER;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,6CAA6C,gDAAmB;AAChE;AACA;AACA;AACA,OAAO;AACP,MAAM;AACN;AACA;;AAEA;AACA,GAAG;AACH;;AAEA,+BAA+B,6CAAgB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC,wBAAwB,2CAAc;AACtC;AACA;;AAEA;AACA;AACA,yBAAyB;AACzB;;AAEA;;AAEA;AACA;AACA;AACA,OAAO;AACP;;;AAGA;AACA,UAAU,IAAqC;AAC/C,kIAAkI,gCAAgC,uBAAuB,kCAAkC,aAAa,sBAAsB;AAC9P;;AAEA;AACA;;AAEA,qBAAqB,qFAAkB,wDAAwD,gDAAmB,CAAC,yDAAmB;AACtI;AACA;AACA;AACA,KAAK,IAAI,qFAAkB;AAC3B;;AAEA,iBAAiB,mDAAsB;AACvC,QAAQ,IAAqC;AAC7C,UAAU,oDAAU;AACpB;AACA;AACA;;AAEA,wBAAwB,iDAAoB;AAC5C,GAAG;AACH,wBAAwB,gDAAmB;AAC3C;AACA;AACA,KAAK;AACL,GAAG;AACH,sBAAsB,gDAAmB,CAAC,gDAAU,EAAE,2EAAQ;AAC9D;AACA;AACA;AACA,eAAe,6CAAI;AACnB,GAAG,uBAAuB,gDAAmB;AAC7C;AACA,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA;AACA,WAAW,0DAAgB;;AAE3B;AACA;AACA;AACA,aAAa,0DAAgB;;AAE7B;AACA;AACA;AACA;AACA,aAAa,+DAEC;;AAEd;AACA;AACA;AACA;AACA;AACA,cAAc,0DAAgB;;AAE9B;AACA;AACA;AACA,sBAAsB,0DAAgB;;AAEtC;AACA;AACA;AACA,uBAAuB,0DAAgB;;AAEvC;AACA;AACA;AACA;AACA;AACA,YAAY,0DAAgB;;AAE5B;AACA;AACA;AACA,aAAa,wDAAc;AAC3B,EAAE,EAAE,CAAM;AACV,+DAAe,2DAAU;AACzB;AACA,CAAC,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;AC3L2E;AAChC;AAC3B;AACI;AACX;AACsB;AACK;AACZ;AACM;AACtC;AACP;AACA;AACA,UAAU,2EAAQ,GAAG;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,yBAAyB,+DAAK;AAC9B;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,yBAAyB,+DAAK;AAC9B;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,yBAAyB,+DAAK;AAC9B;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,kCAAkC,+DAAK;AACvC;AACA;AACA,yBAAyB,+DAAK;AAC9B;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,kCAAkC,+DAAK;AACvC;AACA;AACA,yBAAyB,+DAAK;AAC9B;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,gEAAgE,KAAK;AACrE;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;;AAEL;AACA,oBAAoB;;AAEpB,8DAA8D,KAAK;AACnE,gBAAgB;;AAEhB;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,iBAAiB;;AAEjB;AACA,iBAAiB;;AAEjB,yDAAyD,KAAK;AAC9D;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,6CAAgB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC,gDAAgD,gDAAmB;AACnE,eAAe,6CAAI,8CAA8C,0DAAU;AAC3E,GAAG;AACH,4CAA4C,gDAAmB;AAC/D,eAAe,6CAAI,4CAA4C,0DAAU;AACzE,GAAG;AACH,sBAAsB,gDAAmB,CAAC,gDAAU,EAAE,2EAAQ;AAC9D,eAAe,6CAAI,kJAAkJ,0DAAU,2EAA2E,0DAAU,gCAAgC,0DAAU;AAC9S;AACA;AACA;AACA,2BAA2B,6CAAI;AAC/B;AACA;AACA,GAAG,uBAAuB,gDAAmB;AAC7C;AACA,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA;AACA,WAAW,0DAAgB;;AAE3B;AACA;AACA;AACA,aAAa,0DAAgB;;AAE7B;AACA;AACA;AACA,SAAS,uDAAe;;AAExB;AACA;AACA;AACA;AACA,aAAa,+DAEC;;AAEd;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,oBAAoB,wDAAc;;AAElC;AACA;AACA;AACA,sBAAsB,wDAAc;;AAEpC;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,wDAAc;;AAE/B;AACA;AACA;AACA,WAAW,wDAAc;;AAEzB;AACA;AACA;AACA,yBAAyB,0DAAgB;;AAEzC;AACA;AACA;AACA,aAAa,wDAAc;;AAE3B;AACA;AACA;AACA;AACA,QAAQ,0DAAgB;;AAExB;AACA;AACA;AACA;AACA,QAAQ,uDAAe;;AAEvB;AACA;AACA;AACA,aAAa,wDAAc;;AAE3B;AACA;AACA;AACA,QAAQ,2DAAmB,EAAE,uDAAe,iCAAiC,0DAAgB;;AAE7F;AACA;AACA;AACA,WAAW,uDAAe;AAC1B,EAAE,EAAE,CAAM;AACV,+DAAe,2DAAU;AACzB;AACA,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACpbgD;AACgC;AAC3D;AACI;AACG;AACd;AAC8C;AACzB;AACY;AACI;AACf;AACa;AACnB;AACjC;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,GAAG;;AAEH,4DAA4D,KAAK;AACjE,cAAc;;AAEd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,8BAA8B,6CAAgB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC,kBAAkB,yCAAY;;AAE9B;AACA;AACA,WAAW,kDAAoB;AAC/B;;AAEA,kBAAkB,yCAAY;;AAE9B,wBAAwB,2CAAc;AACtC;AACA;;AAEA;AACA;AACA;;AAEA,2BAA2B,iEAAiB;AAC5C;AACA;AACA;;AAEA,EAAE,sDAAyB;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,EAAE,4CAAe;AACjB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,WAAW,gEAAgB;AAC3B;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH,oBAAoB,gEAAgB;AACpC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA,mBAAmB,yCAAY;AAC/B,sBAAsB,gEAAgB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAM;;;AAGN;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH,oBAAoB,gEAAgB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA,MAAM;;;AAGN;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;;AAEA,sBAAsB,0DAAU;AAChC,qBAAqB,0DAAU;AAC/B,kBAAkB,0DAAU;;AAE5B,yBAAyB,2CAAc;AACvC;AACA;;AAEA,EAAE,4CAAe;AACjB;AACA,GAAG;AACH;;AAEA,MAAM,IAAqC;AAC3C;AACA,IAAI,4CAAe;AACnB;AACA;AACA;AACA,KAAK;AACL;;AAEA,sBAAsB,gDAAmB,gBAAgB,2EAAQ;AACjE,eAAe,6CAAI;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA,EAAE,gDAAmB,CAAC,iDAAW,EAAE,2EAAQ;AAC3C;AACA;AACA,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU,wDAAO;;AAEjB;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,mEAAkB,CAAC,wDAAO;;AAEvC;AACA;AACA;AACA;AACA,gBAAgB,wDAAc;;AAE9B;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA;AACA,WAAW,0DAAgB;;AAE3B;AACA;AACA;AACA,aAAa,0DAAgB;;AAE7B;AACA;AACA;AACA;AACA,aAAa,wDAAuB;;AAEpC;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,wDAAc;;AAE/B;AACA;AACA;AACA,sBAAsB,wDAAc;;AAEpC;AACA;AACA;AACA,eAAe,wDAAc;;AAE7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,0DAAgB;;AAEzC;AACA;AACA;AACA,QAAQ,0DAAgB;;AAExB;AACA;AACA;AACA,UAAU,wDAAc;;AAExB;AACA;AACA;AACA,WAAW,wDAAc;;AAEzB;AACA;AACA;AACA,eAAe,wDAAc;;AAE7B;AACA;AACA;AACA,WAAW,wDAAc;;AAEzB;AACA;AACA;AACA;AACA,kBAAkB,wDAAc;;AAEhC;AACA;AACA;AACA,aAAa,wDAAc;;AAE3B;AACA;AACA;AACA,WAAW,wDAAc;;AAEzB;AACA;AACA;AACA,eAAe,wDAAc;;AAE7B;AACA;AACA;AACA,gBAAgB,wDAAc;;AAE9B;AACA;AACA;AACA,aAAa,wDAAc;;AAE3B;AACA;AACA;AACA,cAAc,wDAAc;;AAE5B;AACA;AACA;AACA,eAAe,wDAAc;;AAE7B;AACA;AACA;AACA,gBAAgB,wDAAc;;AAE9B;AACA;AACA;AACA,YAAY,2DAAmB,EAAE,0DAAgB,EAAE,0DAAgB;;AAEnE;AACA;AACA;AACA,oBAAoB,0DAAgB;;AAEpC;AACA;AACA;AACA,QAAQ,2DAAmB,EAAE,uDAAe,iCAAiC,0DAAgB;AAC7F,EAAE,EAAE,CAAM;AACV,+DAAe,4DAAU;AACzB;AACA,CAAC,aAAa;;;;;;;;;;;;;;;;;AC/eiB;AACI;AACX;AACiC;AACzD,wDAAwD,4CAAe,GAAG,kDAAqB;AAC/F;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6DAA6D;AAC7D;;AAEA,wBAAwB,2CAAc;AACtC;AACA;;AAEA,wBAAwB,6CAAI;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,6CAAI;AAC3B,qBAAqB,gEAAgB,YAAY;;AAEjD;AACA;AACA;AACA,wBAAwB;;AAExB;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH,sBAAsB,gDAAmB;AACzC;AACA;AACA,GAAG,eAAe,gDAAmB;AACrC;AACA,GAAG;AACH;;AAEA,KAAqC;AACrC;AACA;AACA;AACA;AACA,WAAW,qEAA2B;;AAEtC;AACA;AACA;AACA,MAAM,wDAAc;;AAEpB;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,WAAW,wDAAc;;AAEzB;AACA;AACA;AACA,cAAc,0DAAgB;;AAE9B;AACA;AACA;AACA,WAAW,0DAAgB;;AAE3B;AACA;AACA;AACA,WAAW,0DAAgB;;AAE3B;AACA;AACA;AACA,WAAW,qEAA2B;AACtC,EAAE,EAAE,CAAM;AACV,+DAAe,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;AClGqC;AACoB;AACY;AAC3D;AACI;AACsB;AACjC;AACsB;AAChB;AAC9B;AACO;AACA;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,+BAA+B,6CAAgB;AAC/C;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC,wBAAwB,2CAAc;AACtC;AACA;;AAEA,gBAAgB,yCAAY;AAC5B,uBAAuB,yCAAY;AACnC,EAAE,4CAAe;AACjB;AACA;AACA;AACA;AACA,GAAG,cAAc;;AAEjB,0BAA0B,yCAAY,SAAS;AAC/C;;AAEA,mBAAmB,yCAAY,QAAQ;;AAEvC,yBAAyB,yCAAY;AACrC,kBAAkB,yCAAY;AAC9B,EAAE,4CAAe;AACjB;AACA;AACA;AACA,GAAG;AACH,oBAAoB,8CAAiB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,qFAAkB,4BAA4B,gDAAmB,CAAC,4CAAM;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA,GAAG;AACH,cAAc,8CAAiB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,4FAA4F;;AAE5F;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,MAAM;;;AAGN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX,WAAW;;;AAGX;AACA;AACA;AACA;AACA;AACA,SAAS,iBAAiB;AAC1B;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,GAAG;AACH,gBAAgB,8CAAiB;AACjC,YAAY;AACZ;AACA,KAAK;AACL,GAAG;AACH,aAAa,8CAAiB;AAC9B,sCAAsC;AACtC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;AACL;AACA,GAAG;AACH,EAAE,sDAAyB;AAC3B;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,sBAAsB,gDAAmB,SAAS,2EAAQ;AAC1D,eAAe,6CAAI;AACnB;AACA,GAAG,uBAAuB,gDAAmB,CAAC,2DAAe;AAC7D;AACA;AACA,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA;AACA,UAAU,wDAAc;;AAExB;AACA;AACA;AACA;AACA,WAAW,qEAA2B;;AAEtC;AACA;AACA;AACA,aAAa,0DAAgB;AAC7B,EAAE,EAAE,CAAM;AACV,+DAAe,2DAAU;AACzB;AACA;AACA,CAAC,gBAAgB,uCAAU,cAAc;;;;;;;;;;;;;;;;;;;;;;;ACxTiB;AACgC;AAC3D;AACI;AACX;AACK;AACiB;AACvC;AACP;AACA;AACA;AACA;AACA;AACA,wBAAwB,6CAAgB;AACxC;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC,sBAAsB,gDAAmB,CAAC,2CAAK,EAAE,2EAAQ;AACzD,eAAe,6CAAI;AACnB;AACA;AACA,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA;AACA,WAAW,0DAAgB;;AAE3B;AACA;AACA;AACA,aAAa,0DAAgB;;AAE7B;AACA;AACA;AACA,UAAU,wDAAc;AACxB,EAAE,EAAE,CAAM;AACV,+DAAe,2DAAU;AACzB;AACA,CAAC,OAAO;;;;;;;;;;;;;;;;;;;;;;ACvDkD;AACgC;AAC3D;AACI;AACX;AACsB;AACvC;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,6CAAgB;AAC/C;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC,sBAAsB,gDAAmB,YAAY,2EAAQ;AAC7D,eAAe,6CAAI;AACnB;AACA,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA;AACA,WAAW,0DAAgB;;AAE3B;AACA;AACA;AACA,aAAa,0DAAgB;;AAE7B;AACA;AACA;AACA;AACA,aAAa,+DAEC;AACd,EAAE,EAAE,CAAM;AACV,+DAAe,2DAAU;AACzB;AACA,CAAC,cAAc;;;;;;;;;;;;;;;;;;;;;AC3DgB;AACO;AACH;AACgB;AACN;AACY;AACW;;AAEpE;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,yCAAY;AAC7B,gBAAgB,yCAAY;AAC5B,qBAAqB,yCAAY;AACjC,0BAA0B,yCAAY;AACtC,EAAE,4CAAe;AACjB;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,GAAG,OAAO;;AAEV,qBAAqB,8CAAiB;AACtC;AACA,sBAAsB,kDAAoB;AAC1C,GAAG;AACH,kBAAkB,0DAAU,8BAA8B;AAC1D;AACA;AACA;AACA;AACA;;AAEA,wBAAwB,gEAAgB;AACxC;AACA;AACA;AACA,uCAAuC;AACvC;AACA;;AAEA;AACA;AACA,MAAM;;;AAGN;AACA;AACA;AACA;;AAEA,mBAAmB;;AAEnB;AACA;AACA,MAAM;AACN;AACA,gBAAgB,6DAAa;AAC7B;AACA;;AAEA;AACA;AACA;AACA,GAAG,GAAG;;AAEN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,EAAE,4CAAe;AACjB;AACA;AACA,gBAAgB,6DAAa;;AAE7B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA,EAAE,4CAAe;AACjB;AACA;AACA,gBAAgB,6DAAa;AAC7B;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH,sBAAsB,gDAAmB,CAAC,2CAAc,qBAAqB,+CAAkB;AAC/F;;AAEA,KAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,kEAA8B;;AAE1C;AACA;AACA;AACA;AACA,oBAAoB,wDAAc;;AAElC;AACA;AACA;AACA,cAAc,uDAAe;;AAE7B;AACA;AACA;AACA,eAAe,mEAAyB;;AAExC;AACA;AACA;AACA,cAAc,uDAAe;AAC7B,EAAE,EAAE,CAAM;;AAEV,IAAI,IAAqC;AACzC;AACA,wCAAwC,2DAAS;AACjD;;AAEA,+DAAe,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACzL0B;AACY;AACoB;AAC3D;AACP;AACW;AACiB;AACA;AACN;AACG;AACY;AACH;AAChB;AACJ;AAC/B;AACP;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,4BAA4B,6CAAgB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,kEAAiB;AAC7D;AACA,+DAA+D,2DAAU;AACzE,cAAc,2FAAwB;;AAEtC,cAAc,yDAAQ;AACtB,cAAc,yCAAY;AAC1B,mBAAmB,yCAAY;AAC/B,+BAA+B,yCAAY;AAC3C;AACA,EAAE,4CAAe;AACjB;AACA;AACA;AACA,GAAG;AACH;AACA,gBAAgB,yCAAY;AAC5B,kBAAkB,+CAAU;;AAE5B;AACA;AACA;AACA;AACA,oBAAoB,iFAAc;AAClC;AACA,oCAAoC;;;AAGpC;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA,8BAA8B,uEAAkB;AAChD;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA,+BAA+B,uEAAkB;AACjD;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;;AAEA,sBAAsB,gDAAmB,sBAAsB,2EAAQ;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,wBAAwB,gDAAmB,YAAY,2EAAQ;AAC/D,iBAAiB,6CAAI;AACrB;AACA;AACA,OAAO;AACP,aAAa,2EAAQ;AACrB;AACA,OAAO;AACP;AACA,KAAK,4BAA4B,gDAAmB;AACpD;AACA;AACA,KAAK,eAAe,gDAAmB;AACvC;AACA,KAAK;AACL,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA;AACA,WAAW,4DAAc,CAAC,0DAAgB;AAC1C;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,0DAAgB;;AAE7B;AACA;AACA;AACA;AACA,mBAAmB,mEAAkB,CAAC,2DAAmB,EAAE,0DAAgB,EAAE,0DAAgB;;AAE7F;AACA;AACA;AACA,iBAAiB,2DAAmB,EAAE,0DAAgB,EAAE,0DAAgB;;AAExE;AACA;AACA;AACA;AACA,aAAa,+DAEC;;AAEd;AACA;AACA;AACA;AACA;AACA,2BAA2B,wDAAc;;AAEzC;AACA;AACA;AACA,MAAM,wDAAc;;AAEpB;AACA;AACA;AACA,WAAW,wDAAc;;AAEzB;AACA;AACA;AACA,aAAa,wDAAc;;AAE3B;AACA;AACA;AACA,cAAc,wDAAc;;AAE5B;AACA;AACA;AACA,UAAU,wDAAc;;AAExB;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,aAAa,wDAAc;;AAE3B;AACA;AACA;AACA,SAAS,0DAAgB;;AAEzB;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,2DAAmB,EAAE,uDAAe,YAAY,0DAAgB,EAAE,uDAAe;AAC5F,YAAY,0DAAgB;AAC5B,WAAW,0DAAgB;AAC3B,UAAU,0DAAgB;AAC1B,GAAG;AACH,EAAE,EAAE,CAAM;AACV;AACA,+DAAe,4DAAU;AACzB;AACA,CAAC,WAAW;;;;;;;;;;;;;;;;;;;;;;;;ACzU8C;AACgC;AAClB;AACzC;AACI;AACX;AACsB;AACD;AACtC;AACP;AACA;AACA,UAAU,kFAAe;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL,8DAA8D,KAAK;AACnE;AACA;AACA;AACA,KAAK;;AAEL,qDAAqD,KAAK;AAC1D;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK,IAAI;;AAET;AACA,gBAAgB,kFAAe,GAAG;AAClC;AACA,KAAK;;AAEL;AACA,gBAAgB,kFAAe,GAAG;AAClC;AACA,KAAK;;AAEL;AACA,gBAAgB,kFAAe,GAAG;AAClC;AACA,KAAK;;AAEL;AACA,gBAAgB,kFAAe,GAAG;AAClC;AACA,KAAK;;AAEL;AACA,gBAAgB,kFAAe,GAAG;AAClC;AACA,KAAK;AACL;AACA;AACA,6BAA6B,6CAAgB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC,sBAAsB,gDAAmB,YAAY,2EAAQ;AAC7D,eAAe,6CAAI,4IAA4I,0DAAU;AACzK;AACA,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,mEAEM;;AAElB;AACA;AACA;AACA;AACA,WAAW,0DAAgB;;AAE3B;AACA;AACA;AACA,aAAa,0DAAgB;;AAE7B;AACA;AACA;AACA;AACA,aAAa,+DAEC;;AAEd;AACA;AACA;AACA,kBAAkB,wDAAc;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,wDAAc;;AAEvB;AACA;AACA;AACA;AACA;AACA,YAAY,uDAAe;AAC3B,EAAE,EAAE,CAAM;AACV,+DAAe,2DAAU;AACzB;AACA,CAAC,YAAY;;;;;;;;;;;;;;;;;;;;;;;AC7I6C;AAC3B;AACI;AACW;AACC;AACxC;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP,SAAS,2EAAQ;AACjB;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACO;AACP;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP,YAAY,2EAAQ;AACpB;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,sBAAsB,gDAAmB,CAAC,2CAAc;AACxD;;AAEA,KAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA;AACA,WAAW,0DAAgB;AAC3B,EAAE,EAAE,CAAM;;AAEV,IAAI,IAAqC;AACzC;AACA,kCAAkC,2DAAS;AAC3C;;AAEA,+DAAe,2DAAU;AACzB;AACA,CAAC,cAAc;;;;;;;;;;;;;;;;;;;;;;;ACtF2C;AACgC;AAC3D;AACI;AACX;AACsB;AACK;AAC5C;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,wDAAwD,KAAK;AAC7D;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL,qDAAqD,KAAK;AAC1D;AACA,uBAAuB,+DAAK;AAC5B,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL,wDAAwD,KAAK;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,6CAAgB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC,sBAAsB,gDAAmB,YAAY,2EAAQ;AAC7D,eAAe,6CAAI;AACnB;AACA;AACA,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA;AACA,WAAW,0DAAgB;;AAE3B;AACA;AACA;AACA,aAAa,0DAAgB;;AAE7B;AACA;AACA;AACA;AACA,aAAa,+DAEC;;AAEd;AACA;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,SAAS,wDAAc;;AAEvB;AACA;AACA;AACA,eAAe,uDAAe;;AAE9B;AACA;AACA;AACA,QAAQ,0DAAgB;;AAExB;AACA;AACA;AACA,WAAW,uDAAe;AAC1B,EAAE,EAAE,CAAM;AACV,+DAAe,2DAAU;AACzB;AACA,CAAC,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AChJ+C;AACgC;AAC3D;AACI;AACX;AACK;AACM;AACW;AACjB;AACA;AACgB;AACI;AACP;AACnC;AACP;AACA;AACA,YAAY;;AAEZ;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACO;AACP;AACA;AACA;AACA,SAAS,wEAAuB;AAChC,QAAQ,uEAAsB;AAC9B;AACA;AACA;AACA;AACA;;AAEA,0BAA0B,6CAAgB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD;;AAExD;AACA,mBAAmB,2FAAwB;AAC3C;AACA;AACA;AACA;AACA,qDAAqD;AACrD;AACA;AACA,+DAA+D,2CAAK;AACpE;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC,cAAc,yDAAQ,IAAI;AAC1B;AACA;;AAEA,gBAAgB,yCAAY;AAC5B,EAAE,4CAAe;AACjB;AACA,GAAG;AACH;AACA,4BAA4B,gDAAmB,CAAC,2CAAK,EAAE,2EAAQ;AAC/D;AACA;AACA,GAAG;AACH,eAAe,6CAAI,6CAA6C,0DAAU,gGAAgG,0DAAU;AACpL,GAAG;;AAEH;AACA,wBAAwB,gDAAmB,QAAQ,2EAAQ;AAC3D,iBAAiB,6CAAI;AACrB;AACA,KAAK;AACL;;AAEA,mCAAmC,gDAAmB,sBAAsB,2EAAQ;AACpF;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,wBAAwB,gDAAmB,QAAQ,2EAAQ;AAC3D,iBAAiB,6CAAI;AACrB;AACA,KAAK;AACL,IAAI;;;AAGJ,sBAAsB,gDAAmB,CAAC,4CAAK,EAAE,2EAAQ;AACzD,mBAAmB,2EAAQ,GAAG;AAC9B;AACA,KAAK;AACL,uBAAuB,+CAAQ;AAC/B,eAAe,6CAAI;AACnB;AACA;AACA;AACA,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU,uDAAe;;AAEzB;AACA;AACA;AACA,iBAAiB,0DAAgB;;AAEjC;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA;AACA,WAAW,0DAAgB;;AAE3B;AACA;AACA;AACA,aAAa,0DAAgB;;AAE7B;AACA;AACA;AACA,aAAa,0DAAgB;;AAE7B;AACA;AACA;AACA,cAAc,0DAAgB;;AAE9B;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA,WAAW,wDAAc;;AAEzB;AACA;AACA;AACA,QAAQ,wDAAc;;AAEtB;AACA;AACA;AACA,cAAc,0DAAgB;;AAE9B;AACA;AACA;AACA,cAAc,0DAAgB;;AAE9B;AACA;AACA;AACA;AACA,sBAAsB,2DAAmB,EAAE,0DAAgB,EAAE,uDAAe;AAC5E,YAAY,0DAAgB;AAC5B,WAAW,0DAAgB;AAC3B,UAAU,0DAAgB;AAC1B,GAAG;;AAEH;AACA;AACA;AACA,WAAW,uDAAe;AAC1B,EAAE,EAAE,CAAM;AACV,+DAAe,4DAAU;AACzB;AACA;AACA,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;ACtRgD;AACY;AACoB;AAC3D;AACI;AACiB;AACH;AACP;AACwB;AACrB;AAC7C;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,SAAS,wEAAuB;AAChC,QAAQ,uEAAsB;AAC9B;AACA;AACA;AACA;AACA;;AAEA,wBAAwB,6CAAgB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D,2DAAU;AACzE;AACA;AACA,cAAc,2FAAwB;;AAEtC,cAAc,yDAAQ;AACtB;AACA,gBAAgB,yCAAY;AAC5B,mBAAmB,0DAAU;AAC7B,kBAAkB,0DAAU;;AAE5B;AACA;AACA;AACA;AACA,oBAAoB,iFAAc;AAClC;AACA,oCAAoC;;;AAGpC;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI,0DAAM,QAAQ;;AAElB,0BAA0B,sEAAkB;AAC5C;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,0BAA0B,sEAAkB;AAC5C;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA,sBAAsB,gDAAmB,sBAAsB,2EAAQ;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,wBAAwB,+CAAkB,WAAW,2EAAQ;AAC7D,aAAa,2EAAQ;AACrB;AACA;AACA,OAAO;AACP;AACA,KAAK;AACL,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,2DAAiB;;AAE7B;AACA;AACA;AACA;AACA;AACA,2BAA2B,wDAAc;;AAEzC;AACA;AACA;AACA,MAAM,wDAAc;;AAEpB;AACA;AACA;AACA,WAAW,wDAAc;;AAEzB;AACA;AACA;AACA,aAAa,wDAAc;;AAE3B;AACA;AACA;AACA,cAAc,wDAAc;;AAE5B;AACA;AACA;AACA,UAAU,wDAAc;;AAExB;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,aAAa,wDAAc;;AAE3B;AACA;AACA;AACA,SAAS,0DAAgB;;AAEzB;AACA;AACA;AACA;AACA,WAAW,2DAAmB,EAAE,0DAAgB,EAAE,uDAAe;AACjE,YAAY,0DAAgB;AAC5B,WAAW,0DAAgB;AAC3B,UAAU,0DAAgB;AAC1B,GAAG;AACH,EAAE,EAAE,CAAM;AACV,+DAAe,IAAI;;;;;;;;;;;;;;;;;;;;;;;;AChMuC;AACgC;AAC3D;AACI;AACX;AACqB;AACR;AACS;AACvC;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,gEAAgE,MAAM;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;;AAEL;AACA,eAAe;;AAEf,8DAA8D,KAAK;AACnE,gBAAgB;;AAEhB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL,2DAA2D,KAAK;AAChE,aAAa;;AAEb;AACA,mBAAmB;;AAEnB,yDAAyD,KAAK;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,4DAA4D,KAAK;AACjE;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,6CAAgB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC,sBAAsB,gDAAmB,CAAC,+CAAS,EAAE,2EAAQ;AAC7D,aAAa,2EAAQ,GAAG;AACxB,YAAY,6CAAI;AAChB;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAgB,0DAAgB;;AAEhC;AACA;AACA;AACA,aAAa,wDAAc;;AAE3B;AACA;AACA;AACA;AACA,WAAW,0DAAgB;;AAE3B;AACA;AACA;AACA,SAAS,uDAAe;;AAExB;AACA;AACA;AACA,gBAAgB,uDAAa;;AAE7B;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,oBAAoB,wDAAc;;AAElC;AACA;AACA;AACA,gBAAgB,wDAAc;;AAE9B;AACA;AACA;AACA;AACA,SAAS,wDAAc;;AAEvB;AACA;AACA;AACA,aAAa,wDAAc;;AAE3B;AACA;AACA;AACA,MAAM,0DAAgB;;AAEtB;AACA;AACA;AACA;AACA,kBAAkB,+DAAqB;;AAEvC;AACA;AACA;AACA,cAAc,0DAAgB;;AAE9B;AACA;AACA;AACA,YAAY,uDAAO;;AAEnB;AACA;AACA;AACA;AACA,UAAU,uDAAe;;AAEzB;AACA;AACA;AACA,WAAW,2DAAmB,EAAE,0DAAgB,EAAE,0DAAgB;;AAElE;AACA;AACA;AACA,aAAa,wDAAc;;AAE3B;AACA;AACA;AACA,QAAQ,0DAAgB;;AAExB;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,eAAe,0DAAgB;;AAE/B;AACA;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,QAAQ,2DAAmB,EAAE,0DAAgB,EAAE,0DAAgB;;AAE/D;AACA;AACA;AACA,kBAAkB,wDAAc;;AAEhC;AACA;AACA;AACA,QAAQ,0DAAgB;;AAExB;AACA;AACA;AACA,SAAS,uDAAa;AACtB,EAAE,EAAE,CAAM;AACV;AACA,+DAAe,2DAAU;AACzB;AACA,CAAC,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;ACtV2C;AACgC;AAC3D;AACI;AACX;AACsC;AAChB;AACD;AACI;AACK;AAC/C;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,GAAG;;AAEH;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,GAAG;;AAEH,uDAAuD,KAAK;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,+BAA+B,6CAAgB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC,wBAAwB,2CAAc;AACtC;AACA;AACA;;AAEA;AACA,MAAM,mDAAsB;AAC5B,aAAa,4DAAY;AACzB;AACA;;AAEA,oBAAoB,4DAAY;;AAEhC,qBAAqB,gEAAc;AACnC;AACA;AACA,OAAO;AACP;;AAEA;AACA,GAAG;AACH;AACA;;AAEA,yBAAyB,2CAAc;AACvC;AACA;AACA;;AAEA;AACA,MAAM,mDAAsB;AAC5B,aAAa,4DAAY;AACzB;AACA;;AAEA,YAAY,0DAAQ;AACpB;AACA;AACA,OAAO;AACP;;AAEA;AACA,GAAG;AACH;AACA;;AAEA,yBAAyB,2CAAc;AACvC;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA,MAAM,IAAqC;AAC3C;AACA,0BAA0B,yCAAY;;AAEtC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,iBAAiB,8CAAiB;AAClC;AACA,GAAG;AACH,gBAAgB,8CAAiB;AACjC;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,sBAAsB,gDAAmB,CAAC,iEAA2B;AACrE;AACA,GAAG,eAAe,gDAAmB,YAAY,2EAAQ;AACzD,eAAe,6CAAI,uEAAuE,0DAAU;AACpG;AACA,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA;AACA,WAAW,0DAAgB;;AAE3B;AACA;AACA;AACA,aAAa,0DAAgB;;AAE7B;AACA;AACA;AACA,SAAS,uDAAe;;AAExB;AACA;AACA;AACA;AACA,aAAa,+DAEC;;AAEd;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,SAAS,wDAAc;;AAEvB;AACA;AACA;AACA,WAAW,wDAAc;;AAEzB;AACA;AACA;AACA,aAAa,wDAAc;;AAE3B;AACA;AACA;AACA;AACA;AACA,eAAe,wDAAc;;AAE7B;AACA;AACA;AACA,UAAU,uDAAe;;AAEzB;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,QAAQ,uDAAe;;AAEvB;AACA;AACA;AACA,WAAW,uDAAe;AAC1B,EAAE,EAAE,CAAM;AACV,+DAAe,2DAAU;AACzB;AACA,CAAC,cAAc;;;;;;;;;;;;;;;;AC9RgB;AAC/B;AACA;AACA;;AAEA,yBAAyB,gDAAmB;;AAE5C,IAAI,IAAqC;AACzC;AACA;;AAEO;AACP,SAAS,6CAAgB;AACzB;AACA,+DAAe,kBAAkB;;;;;;;;;;;;;;;ACdlB;AACf;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG,IAAI;AACP;;;;;;;;;;;;;;;;;ACf+B;AACuB;AACvC;AACf,SAAS,6CAAgB,CAAC,wDAAkB;AAC5C;;;;;;;;;;;;;;;;;;;;;;;;;ACJ0F;AAChC;AAC3B;AACI;AACX;AACuC;AACJ;AACd;AACC;AACvC;AACP;AACA;AACA,UAAU,2EAAQ;AAClB;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,6DAA6D,KAAK;AAClE,eAAe;;AAEf,8DAA8D,KAAK;AACnE,gBAAgB;;AAEhB,2DAA2D,KAAK;AAChE,aAAa;;AAEb,4DAA4D,KAAK;AACjE,cAAc;;AAEd,8DAA8D,KAAK;AACnE,gBAAgB;;AAEhB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,6CAAgB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC,uBAAuB,oEAAc;AACrC,YAAY,sEAAgB;AAC5B;AACA;AACA;AACA,GAAG;AACH,sBAAsB,gDAAmB,YAAY,2EAAQ;AAC7D,eAAe,6CAAI,sCAAsC,0DAAU;AACnE;AACA,GAAG,iDAAiD,gDAAmB;AACvE;AACA,eAAe,6CAAI;AACnB,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA;AACA,WAAW,0DAAgB;;AAE3B;AACA;AACA;AACA,aAAa,0DAAgB;;AAE7B;AACA;AACA;AACA,SAAS,uDAAe;;AAExB;AACA;AACA;AACA;AACA,aAAa,+DAEC;;AAEd;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,SAAS,wDAAc;;AAEvB;AACA;AACA;AACA,UAAU,wDAAc;;AAExB;AACA;AACA;AACA,WAAW,wDAAc;;AAEzB;AACA;AACA;AACA,YAAY,wDAAc;AAC1B,EAAE,EAAE,CAAM;AACV,+DAAe,2DAAU;AACzB;AACA,CAAC,YAAY;;;;;;;;;;;;;;;;;;;;;;ACpJ6C;AACY;AACoB;AAC3D;AACI;AACiB;AACV;AACwB;AACrB;;AAE7C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wBAAwB,6CAAgB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D,2DAAU;AACzE,cAAc,2FAAwB;;AAEtC,cAAc,yCAAY;AAC1B,oBAAoB,yCAAY;AAChC,cAAc,yDAAQ;AACtB;AACA,gBAAgB,yCAAY;AAC5B,mBAAmB,0DAAU;AAC7B,kBAAkB,0DAAU;;AAE5B;AACA;AACA;AACA;AACA,oBAAoB,iFAAc;AAClC;AACA,oCAAoC;;;AAGpC;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI,0DAAM,QAAQ;;AAElB,8BAA8B,sEAAkB;AAChD;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,+BAA+B,sEAAkB;AACjD;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,EAAE,4CAAe;AACjB;AACA;AACA;AACA,GAAG;AACH,sBAAsB,gDAAmB,sBAAsB,2EAAQ;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,wBAAwB,+CAAkB,WAAW,2EAAQ;AAC7D,aAAa,2EAAQ;AACrB;AACA;AACA;AACA,OAAO;AACP;AACA,KAAK;AACL,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,2DAAiB;;AAE7B;AACA;AACA;AACA;AACA;AACA,2BAA2B,wDAAc;;AAEzC;AACA,oCAAoC;AACpC;AACA,MAAM,wDAAc;;AAEpB;AACA;AACA;AACA,WAAW,wDAAc;;AAEzB;AACA;AACA;AACA,aAAa,wDAAc;;AAE3B;AACA;AACA;AACA,cAAc,wDAAc;;AAE5B;AACA;AACA;AACA,UAAU,wDAAc;;AAExB;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,aAAa,wDAAc;;AAE3B;AACA;AACA;AACA,SAAS,0DAAgB;;AAEzB;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,2DAAmB,EAAE,uDAAe,YAAY,0DAAgB,EAAE,uDAAe;AAC5F,YAAY,0DAAgB;AAC5B,WAAW,0DAAgB;AAC3B,UAAU,0DAAgB;AAC1B,GAAG;AACH,EAAE,EAAE,CAAM;AACV;AACA,+DAAe,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;AC5PuC;AACgC;AAC3D;AACI;AACX;AAC4B;AACN;AACK;AACZ;AACM;AACtC;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,yBAAyB,+DAAK;AAC9B;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,yBAAyB,+DAAK;AAC9B;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,yBAAyB,+DAAK;AAC9B;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,8DAA8D,KAAK;AACnE,gBAAgB;;AAEhB;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,8BAA8B,6CAAgB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC,sBAAsB,gDAAmB,CAAC,gDAAU,EAAE,2EAAQ;AAC9D,eAAe,6CAAI,wEAAwE,0DAAU,mFAAmF,0DAAU;AAClM;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,GAAG,uBAAuB,gDAAmB;AAC7C;AACA,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA,YAAY,2DAAc,CAAC,wDAAc;AACzC,gBAAgB,mDAAsB;AACtC,0BAA0B,iDAAoB;AAC9C,KAAK;;AAEL;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,WAAW,qEAA2B;;AAEtC;AACA;AACA;AACA,aAAa,0DAAgB;;AAE7B;AACA;AACA;AACA,SAAS,uDAAe;;AAExB;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,sBAAsB,wDAAc;;AAEpC;AACA;AACA;AACA,iBAAiB,wDAAc;;AAE/B;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,uDAAe;;AAEvB;AACA;AACA;AACA;AACA,QAAQ,uDAAe;AACvB,EAAE,EAAE,CAAM;AACV,+DAAe,2DAAU;AACzB;AACA,CAAC,aAAa;;;;;;;;;;;;;;;;;;;;;;;;ACtM4C;AACgC;AAC3D;AACI;AACX;AACqB;AACR;AACS;AACvC;AACP;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,eAAe;;AAEf,wDAAwD,KAAK;AAC7D,gBAAgB;;AAEhB;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,gEAAgE,MAAM;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;;AAEL,2DAA2D,KAAK;AAChE,aAAa;;AAEb;AACA,mBAAmB;;AAEnB,yDAAyD,KAAK;AAC9D,iBAAiB;;AAEjB,yDAAyD,KAAK;AAC9D,iBAAiB;;AAEjB;AACA,aAAa;;AAEb;AACA,wBAAwB;;AAExB,4DAA4D,KAAK;AACjE,sBAAsB;;AAEtB;AACA;AACA;AACA;AACA,yBAAyB,6CAAgB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC,sBAAsB,gDAAmB,CAAC,+CAAS,EAAE,2EAAQ;AAC7D,aAAa,2EAAQ,GAAG;AACxB,YAAY,6CAAI;AAChB;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAgB,0DAAgB;;AAEhC;AACA;AACA;AACA,aAAa,wDAAc;;AAE3B;AACA;AACA;AACA;AACA,WAAW,0DAAgB;;AAE3B;AACA;AACA;AACA,SAAS,uDAAe;;AAExB;AACA;AACA;AACA,gBAAgB,uDAAa;;AAE7B;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,oBAAoB,wDAAc;;AAElC;AACA;AACA;AACA,gBAAgB,wDAAc;;AAE9B;AACA;AACA;AACA;AACA,SAAS,wDAAc;;AAEvB;AACA;AACA;AACA,aAAa,wDAAc;;AAE3B;AACA;AACA;AACA,MAAM,0DAAgB;;AAEtB;AACA;AACA;AACA;AACA,kBAAkB,+DAAqB;;AAEvC;AACA;AACA;AACA,cAAc,0DAAgB;;AAE9B;AACA;AACA;AACA,YAAY,uDAAO;;AAEnB;AACA;AACA;AACA;AACA,UAAU,uDAAe;;AAEzB;AACA;AACA;AACA,WAAW,2DAAmB,EAAE,0DAAgB,EAAE,0DAAgB;;AAElE;AACA;AACA;AACA,aAAa,wDAAc;;AAE3B;AACA;AACA;AACA,QAAQ,0DAAgB;;AAExB;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,eAAe,0DAAgB;;AAE/B;AACA;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,QAAQ,2DAAmB,EAAE,0DAAgB,EAAE,0DAAgB;;AAE/D;AACA;AACA;AACA,kBAAkB,wDAAc;;AAEhC;AACA;AACA;AACA,QAAQ,0DAAgB;;AAExB;AACA;AACA;AACA,SAAS,uDAAa;AACtB,EAAE,EAAE,CAAM;AACV;AACA,+DAAe,2DAAU;AACzB;AACA,CAAC,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AChSiF;AAChC;AAC2B;;AAErF;AAC+B;AACI;AACX;AACqB;AACkB;AACwB;AACzC;AACD;AACA;AACM;AAChB;AAC5B;AACP;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC;AACA,KAAK;;AAEL;AACA,UAAU,2EAAQ,GAAG;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,mBAAmB;;AAEnB;AACA,eAAe;;AAEf,wDAAwD,KAAK;AAC7D,gBAAgB;;AAEhB;AACA,oBAAoB;;AAEpB;AACA,kBAAkB;;AAElB,2DAA2D,KAAK;AAChE,aAAa;;AAEb;AACA,mBAAmB;;AAEnB,yDAAyD,KAAK;AAC9D;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,sBAAsB;;AAEtB,yDAAyD,KAAK;AAC9D;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;AACP;AACA;;AAEA,OAAO;AACP;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL,4DAA4D,KAAK;AACjE;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,yBAAyB;;AAEzB;AACA,uBAAuB;;AAEvB,8DAA8D,KAAK;AACnE;AACA;AACA;AACA,wDAAwD,4CAAe,GAAG,kDAAqB;AAC/F;AACA;AACA;AACA;AACA;;AAEA,6BAA6B,6CAAgB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAyD;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC;;AAEA,sBAAsB,yCAAY;AAClC;;AAEA,iBAAiB,yCAAY;AAC7B,8BAA8B,8CAAiB;AAC/C,QAAQ,IAAqC;AAC7C;AACA;AACA;AACA;AACA,GAAG;AACH,gCAAgC,0DAAU;AAC1C,2BAA2B,0DAAU;AACrC,uBAAuB,0DAAU;;AAEjC,wBAAwB,2CAAc;AACtC;AACA;;AAEA,uBAAuB,+EAAc;;AAErC,MAAM,IAAqC;AAC3C;AACA,IAAI,4CAAe;AACnB;AACA;AACA;;AAEA;AACA,KAAK;AACL;;AAEA,YAAY,sEAAgB;AAC5B;AACA;AACA;AACA,GAAG;AACH,mEAAmE;AACnE;;AAEA,EAAE,4CAAe;AACjB;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,mBAAmB,8CAAiB;AACpC,QAAQ,gDAAQ;AAChB;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAM;A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AACV,+DAAe,4DAAU;AACzB;AACA,CAAC,YAAY;;;;;;;;;;;;;;;;;AC1pBb;AACA;AACA;AACA;AACA;AACA,aAAa,SAAS;AACf;AACP;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,aAAa,SAAS;AACtB;;AAEO;AACP;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,aAAa,SAAS;AACtB;;AAEO;AACP;AACA;;;;;;;;;;;;;;;;;;;;;;;;;AC5B0D;AACgC;AAC3D;AACI;AACX;AACuC;AACJ;AACb;AACT;AAC9B;AACP;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,6DAA6D,KAAK;AAClE,eAAe;;AAEf,8DAA8D,KAAK;AACnE,gBAAgB;;AAEhB,2DAA2D,KAAK;AAChE,aAAa;;AAEb,8DAA8D,KAAK;AACnE,gBAAgB;;AAEhB;AACA,gBAAgB;;AAEhB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL,yDAAyD,KAAK;AAC9D;AACA;AACA;AACA,KAAK;;AAEL,mEAAmE,MAAM;AACzE;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,6CAAgB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC,uBAAuB,oEAAc;AACrC;;AAEA;AACA;AACA;;AAEA,YAAY,sEAAgB;AAC5B;AACA;AACA;AACA,GAAG;AACH,sBAAsB,gDAAmB,CAAC,+CAAS,EAAE,2EAAQ;AAC7D;AACA,eAAe,6CAAI;AACnB;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA;AACA,WAAW,0DAAgB;;AAE3B;AACA;AACA;AACA,aAAa,0DAAgB;;AAE7B;AACA;AACA;AACA,SAAS,uDAAe;;AAExB;AACA;AACA;AACA,oBAAoB,wDAAc;;AAElC;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,SAAS,wDAAc;;AAEvB;AACA;AACA;AACA,WAAW,wDAAc;;AAEzB;AACA;AACA;AACA;AACA,UAAU,uDAAe;;AAEzB;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,UAAU,wDAAc;;AAExB;AACA;AACA;AACA,WAAW,uDAAe;AAC1B,EAAE,EAAE,CAAM;AACV,+DAAe,2DAAU;AACzB;AACA,CAAC,aAAa;;;;;;;;;;;;;;;;;;;;;;;AC5M4C;AACgC;AAC3D;AACI;AACX;AACsB;AACN;AACjC;AACP;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH,4DAA4D,MAAM;AAClE;AACA;AACA;AACA,GAAG;;AAEH;AACA,WAAW;;AAEX;AACA;AACA;AACA;AACA;AACA,wBAAwB,6CAAgB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC,gBAAgB,0CAAa;AAC7B;AACA;AACA;AACA,GAAG;AACH,sBAAsB,gDAAmB,CAAC,0DAAoB;AAC9D;AACA,GAAG,eAAe,gDAAmB,YAAY,2EAAQ;AACzD,eAAe,6CAAI;AACnB;AACA,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA;AACA,WAAW,qEAA2B;;AAEtC;AACA;AACA;AACA,aAAa,0DAAgB;;AAE7B;AACA;AACA;AACA;AACA,aAAa,+DAEC;;AAEd;AACA;AACA;AACA;AACA;AACA,SAAS,wDAAc;;AAEvB;AACA;AACA;AACA,kBAAkB,wDAAc;;AAEhC;AACA;AACA;AACA,aAAa,wDAAc;AAC3B,EAAE,EAAE,CAAM;AACV,+DAAe,2DAAU;AACzB;AACA,CAAC,OAAO;;;;;;;;;;;;;ACnGuB;AAC/B;AACA;AACA;;AAEA,kBAAkB,gDAAmB,GAAG;;AAExC,IAAI,IAAqC;AACzC;AACA;;AAEA,+DAAe,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACXgC;AACgC;AAC3D;AACI;AACX;AAC4B;AACN;AACP;AACU;AACJ;AACC;AACR;AAC/B;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL,0FAA0F,KAAK;AAC/F,oBAAoB;;AAEpB;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL,2EAA2E,KAAK;AAChF,gBAAgB;;AAEhB,oEAAoE,KAAK;AACzE;AACA;AACA;AACA,KAAK;;AAEL,2EAA2E,MAAM;AACjF;AACA;AACA;AACA,KAAK;;AAEL,mEAAmE,KAAK;AACxE;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,8DAA8D,KAAK;AACnE;AACA;AACA;AACA,wDAAwD,4CAAe,GAAG,kDAAqB;AAC/F;AACA;AACA;;AAEA,4BAA4B,6CAAgB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gEAAgE;;AAEhE;AACA,uBAAuB,2FAAwB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC,gBAAgB,6CAAgB,CAAC,sDAAW;AAC5C;AACA;AACA;AACA;AACA,oBAAoB,yCAAY;AAChC;AACA;AACA;AACA;AACA,QAAQ,SAAS,IAAqC;AACtD;AACA;AACA;AACA,GAAG;AACH,iBAAiB,mDAAsB;AACvC,8CAA8C,4DAAY;AAC1D,qBAAqB,8CAAiB;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;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA;AACA,WAAW,0DAAgB;;AAE3B;AACA;AACA;AACA,aAAa,0DAAgB;;AAE7B;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,wDAAc;;AAEnC;AACA;AACA;AACA;AACA,SAAS,wDAAc;;AAEvB;AACA;AACA;AACA,WAAW,wDAAc;;AAEzB;AACA;AACA;AACA;AACA,0BAA0B,0DAAgB;;AAE1C;AACA;AACA;AACA,aAAa,wDAAc;;AAE3B;AACA;AACA;AACA;AACA,4BAA4B,0DAAgB;AAC5C,EAAE,EAAE,CAAM;AACV,+DAAe,2DAAU;AACzB;AACA,CAAC,eAAe;;;;;;;;;;;;;;;;;;;;;;;AC7I0C;AACgC;AAC3D;AACI;AACX;AACsB;AACD;AACtC;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL,2EAA2E,MAAM;AACjF;AACA;AACA;AACA,KAAK;;AAEL,qDAAqD,KAAK;AAC1D;AACA;AACA,KAAK;;AAEL,6DAA6D,MAAM;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,6CAAgB;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC,sBAAsB,gDAAmB,YAAY,2EAAQ;AAC7D,eAAe,6CAAI,wEAAwE,0DAAU;AACrG;AACA,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA;AACA,WAAW,qEAA2B;;AAEtC;AACA;AACA;AACA,aAAa,0DAAgB;;AAE7B;AACA;AACA;AACA,SAAS,uDAAe;;AAExB;AACA;AACA;AACA;AACA,aAAa,+DAEC;;AAEd;AACA;AACA;AACA,kBAAkB,wDAAc;;AAEhC;AACA;AACA;AACA,iBAAiB,wDAAc;;AAE/B;AACA;AACA;AACA,SAAS,wDAAc;AACvB,EAAE,EAAE,CAAM;AACV,+DAAe,2DAAU;AACzB;AACA,CAAC,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACrHyC;AACgC;AAC3D;AACO;AACH;AACX;AAC6B;AACP;AACb;AACE;AACG;AACD;AACK;AACmB;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,6CAAgB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA2D;AAC3D;AACA;AACA;AACA;AACA,qDAAqD;AACrD;AACA;AACA;AACA;AACA,gEAAgE;;AAEhE;AACA,wBAAwB,2FAAwB;AAChD;AACA;AACA,cAAc,2FAAwB;;AAEtC,cAAc,yDAAQ;AACtB;AACA,2BAA2B,yCAAY;AACvC,yBAAyB,yCAAY;;AAErC;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA,4BAA4B;AAC5B;AACA;;AAEA,EAAE,+CAAkB;AACpB,uBAAuB,iDAAoB;AAC3C;AACA;;AAEA,QAAQ,IAAqC;AAC7C,UAAU,oDAAU;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,GAAG;AACH,cAAc,+CAAkB;AAChC;AACA,0BAA0B,+CAAkB;AAC5C;AACA;AACA,qCAAqC,kDAAoB;AACzD,UAAU,sDAAM;AAChB;AACA,OAAO;AACP;;AAEA;AACA,GAAG;AACH,sBAAsB,gDAAmB,CAAC,6CAAO,EAAE,2EAAQ;AAC3D;AACA;AACA;AACA,qBAAqB,2EAAQ;AAC7B;AACA,KAAK;AACL;AACA;AACA,gBAAgB,2EAAQ,GAAG;AAC3B,eAAe,2EAAQ,GAAG;AAC1B;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA;AACA,GAAG,uBAAuB,gDAAmB,CAAC,+CAAQ,EAA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;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAM;;;AAGN;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA,wDAAwD,4CAAe,GAAG,kDAAqB;AAC/F;AACA;AACA;AACA;AACA;AACA;;AAEA,4BAA4B,6CAAgB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC,gBAAgB,yCAAY;AAC5B,wBAAwB,yCAAY;AACpC;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH,EAAE,sDAAyB;AAC3B;AACA;AACA;AACA;AACA;;AAEA;AACA,wCAAwC,gEAAgB;AACxD;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,SAAS;AACvB;AACA;AACA;AACA;;AAEA,uBAAuB,6DAAa;;AAEpC;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,qBAAqB,8CAAiB;AACtC;AACA,sBAAsB,kDAAoB;AAC1C,GAAG;AACH,kBAAkB,0DAAU;AAC5B;AACA;AACA;AACA;AACA;;AAEA,4BAA4B;AAC5B;AACA;;AAEA,EAAE,mDAAsB;AACxB,uBAAuB,iDAAoB;AAC3C;AACA;;AAEA,QAAQ,IAAqC;AAC7C,UAAU,oDAAU;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,GAAG;AACH,cAAc,+CAAkB;AAChC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,0BAA0B,+CAAkB;AAC5C;;AAEA;AACA,GAAG;AACH,sBAAsB,gDAAmB,CAAC,0CAAI,EAAE,2EAAQ;AACxD;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,wDAAc;;AAE3B;AACA;AACA;AACA;AACA,iBAAiB,wDAAc;;AAE/B;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,aAAa,0DAAgB;;AAE7B;AACA;AACA;AACA,0BAA0B,wDAAc;;AAExC;AACA;AACA;AACA,mBAAmB,wDAAc;;AAEjC;AACA;AACA;AACA,aAAa,wDAAc;;AAE3B;AACA;AACA;AACA;AACA,WAAW,uDAAe;AAC1B,EAAE,EAAE,CAAM;AACV,+DAAe,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AClTmE;AAChC;AAC3B;AACO;AACH;AAC2B;AACY;AACb;AACV;AACpB;AACoC;AACtB;AACY;AACnB;AACoB;AACZ;AACA;;AAE9C;AACA;AACA,SAAS,kDAAoB;AAC7B;;AAEA;AACA;AACA,EAAE;AACF;;;AAGA,yBAAyB,kDAAY;AAC9B;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,yBAAyB,6CAAgB;AACzC,cAAc,4DAAQ;AACtB,cAAc,4DAAa;AAC3B;AACA,WAAW,2EAAQ,GAAG;AACtB;AACA,GAAG;;AAEH;AACA,6DAA6D,oDAAc;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC,wBAAwB,2CAAc;AACtC;AACA;;AAEA,cAAc,yCAAY,GAAG;AAC7B,qBAAqB,yCAAY;AACjC,iBAAiB,yCAAY;AAC7B,kBAAkB,0DAAU;AAC5B;;AAEA;AACA,WAAW,8DAAa;AACxB;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK,GAAG;;AAER;AACA;;AAEA,mBAAmB,iEAAgB;AACnC;AACA,gDAAgD;;AAEhD;AACA;AACA;AACA,GAAG;AACH,mBAAmB,8CAAiB;AACpC;AACA,GAAG;AACH,wBAAwB,iEAAgB;AACxC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN,MAAM,yDAAU;AAChB;AACA,GAAG;AACH,oBAAoB,8CAAiB;AACrC;AACA,GAAG;AACH,EAAE,4CAAe;AACjB;AACA;AACA;AACA,GAAG;AACH,EAAE,4CAAe;AACjB;AACA;AACA,MAAM;AACN;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAY,oDAAM;AAClB,GAAG;AACH;;AAEA;AACA;AACA,IAAI;;;AAGJ;AACA,yBAAyB,sEAAqB;AAC9C,0BAA0B,sEAAqB;AAC/C;;AAEA,sBAAsB,gDAAmB,CAAC,6CAAM;AAChD;AACA;AACA;AACA,GAAG,eAAe,gDAAmB,QAAQ,2EAAQ;AACrD;AACA;AACA;AACA,GAAG;AACH,WAAW,2EAAQ,GAAG,6DAA6D;AACnF,GAAG,sCAAsC,gDAAmB,oBAAoB,2EAAQ;AACxF;AACA;AACA,GAAG,gCAAgC,gDAAmB,CAAC,yDAAS;AAChE;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,eAAe,+CAAkB;AACpC,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA,qBAAqB,+DAAqB;;AAE1C;AACA;AACA;AACA,iBAAiB,0DAAgB;;AAEjC;AACA;AACA;AACA,YAAY,mEAA8B;;AAE1C;AACA;AACA;AACA,wBAAwB,wDAAc;;AAEtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,2DAED,EAAE,wDAAe,EAAE,4DAAoB,CAAC,4CAAe,GAAG,wDAAc;;AAEpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,wDAAc;;AAElC;AACA;AACA;AACA,wBAAwB,mEAAkB,CAAC,wDAAc;;AAEzD;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,wDAAc;;AAErC;AACA;AACA;AACA,wBAAwB,wDAAc;;AAEtC;AACA;AACA;AACA;AACA,iBAAiB,wDAAc;;AAE/B;AACA;AACA;AACA;AACA,uBAAuB,wDAAc;;AAErC;AACA;AACA;AACA,qBAAqB,wDAAc;;AAEnC;AACA;AACA;AACA,gBAAgB,wDAAc;;AAE9B;AACA;AACA;AACA;AACA;AACA,eAAe,wDAAc;;AAE7B;AACA;AACA;AACA,WAAW,0DAAgB;;AAE3B;AACA;AACA;AACA,mBAAmB,mEAAkB,CAAC,wDAAc;;AAEpD;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA,WAAW,wDAAc;;AAEzB;AACA;AACA;AACA;AACA,mBAAmB,mEAAkB,CAAC,wDAAc;;AAEpD;AACA;AACA,gCAAgC,KAAK;AACrC;AACA;AACA;AACA,cAAc,mEAAkB,CAAC,wDAAc;;AAE/C;AACA;AACA;AACA,QAAQ,mEAAyB;AACjC,EAAE,EAAE,CAAM;AACV,+DAAe,KAAK;;;;;;;;;;;;;;;;;;;;;;AC3YoD;AACN;AACY;AACrB;AACN;AACJ,CAAC;;AAEhD;AACA,YAAY,6DAAa;;AAEzB;AACA,WAAW,2DAAW;AACtB;;AAEA;AACA;;AAEO;AACP;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,kDAAkD,qFAAkB;AACpE;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B,gEAAgB;AAC1C;AACA;AACA;AACA;AACA,OAAO,GAAG;;AAEV,sGAAsG;;AAEtG,mBAAmB,6DAAa;AAChC;AACA;AACA;AACA,OAAO;AACP,MAAM;AACN;;;AAGA;AACA,yIAAyI;AACzI;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA,IAAI,kFAAe;;AAEnB;AACA,sBAAsB;AACtB;AACA;AACA;AACA;;AAEA;AACA;;AAEA,EAAE,+EAAY;AACd;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,+BAA+B;;AAE/B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,OAAO;AACP;AACA;AACA,yCAAyC;;AAEzC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA,6EAA6E;AAC7E;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,CAAC;;;;;;;;;;;;;;;;;;;;;;ACzPyD;AACgC;AAC3D;AACI;AAC5B;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH,uDAAuD,KAAK;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,kCAAkC,6CAAgB;AAClD;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC,6BAA6B,gDAAmB,QAAQ,2EAAQ;AAChE;AACA;AACA,GAAG;AACH,WAAW,2EAAQ,GAAG,gDAAgD;AACtE,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA;AACA,aAAa,wDAAc;;AAE3B;AACA;AACA;AACA,QAAQ,mEAAyB;AACjC,EAAE,EAAE,CAAM;AACV,+DAAe,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;ACnD6B;AACgC;AAC3D;AACI;AACiB;AACN;AACiB;AACJ;AACS;AACvC;AACtB;AACP;AACA;AACA,YAAY;;AAEZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,gBAAgB;;AAEhB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,gDAAmB,CAAC,2CAAK;AACzD;AACA;AACA;;AAEA,gCAAgC,6CAAgB;AAChD;AACA;AACA;AACA,wDAAwD,sEAAiB;AACzE;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC,uBAAuB,oEAAc;AACrC,YAAY,sEAAgB;AAC5B;AACA;AACA;AACA,GAAG;AACH,sBAAsB,+CAAkB,QAAQ,2EAAQ;AACxD;AACA;AACA,oBAAoB,uDAAiB;AACrC,gBAAgB,2EAAQ;AACxB;AACA;AACA;AACA;AACA;AACA,KAAK,iDAAiD;AACtD;AACA,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA;AACA,WAAW,0DAAgB;;AAE3B;AACA;AACA;AACA,iBAAiB,+DAAqB;;AAEtC;AACA,yBAAyB;AACzB;AACA,SAAS,2DAAiB;;AAE1B;AACA;AACA;AACA,cAAc,0DAAgB;;AAE9B;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,SAAS,uDAAa;;AAEtB;AACA;AACA;AACA,WAAW,uDAAe;AAC1B,EAAE,EAAE,CAAM;AACV;AACA,+DAAe,2DAAU;AACzB;AACA,CAAC,eAAe;;;;;;;;;;;;;;;;;;;;ACtN0C;AACgC;AAC3D;AACI;AACX;AACqB;AACA;AAC7C;AACA;AACA;;AAEA,qCAAqC,6CAAgB;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC,sBAAsB,gDAAmB,CAAC,2CAAc,qBAAqB,gDAAmB,WAAW,2EAAQ;AACnH,eAAe,6CAAI;AACnB;AACA;AACA;AACA,GAAG,gDAAgD,gDAAmB;AACtE,eAAe,6CAAI,qCAAqC,0DAAU;AAClE,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA;AACA,WAAW,qEAA2B;;AAEtC;AACA;AACA;AACA,aAAa,0DAAgB;;AAE7B;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,iBAAiB,0EAAgC;;AAEjD;AACA;AACA;AACA;AACA,YAAY,uDAAO;;AAEnB;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,QAAQ,0DAAgB;;AAExB;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,SAAS,uDAAa;;AAEtB;AACA;AACA;AACA,WAAW,uDAAe;AAC1B,EAAE,EAAE,CAAM;AACV,+DAAe,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;AC5FwC;AACd;AACgC;AAC3D;AACI;AACX;AACsB;AACJ;AACG;AACtC;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;AAEA,kCAAkC,6CAAgB;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC,cAAc,yDAAQ;AACtB;;AAEA;AACA,wBAAwB,gDAAmB,aAAa,2EAAQ;AAChE;AACA,iBAAiB,6CAAI;AACrB;AACA;AACA,KAAK,uBAAuB,gDAAmB;AAC/C,iBAAiB,6CAAI;AACrB,KAAK,uBAAuB,gDAAmB,qCAAqC,gDAAmB;AACvG;AACA,wBAAwB;AACxB;AACA,KAAK;AACL;;AAEA;AACA,sBAAsB,gDAAmB,aAAa,2EAAQ;AAC9D;AACA,WAAW,2EAAQ,CAAC,kFAAe,GAAG,mBAAmB,0DAAU;AACnE,eAAe,6CAAI;AACnB;AACA,GAAG,uBAAuB,gDAAmB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,eAAe,gDAAmB;AACrC;AACA,sBAAsB;AACtB;AACA,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA;AACA,WAAW,0DAAgB;;AAE3B;AACA;AACA;AACA,aAAa,0DAAgB;;AAE7B;AACA;AACA;AACA,SAAS,wDAAc;;AAEvB;AACA;AACA;AACA,cAAc,qEAA2B;;AAEzC;AACA;AACA;AACA,WAAW,mEAAyB;;AAEpC;AACA;AACA;AACA,SAAS,0DAAgB;AACzB,EAAE,EAAE,CAAM;AACV,+DAAe,2DAAU;AACzB;AACA,CAAC,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;ACnKwC;AACgC;AAC3D;AACI;AACX;AACqB;AACR;AACS;AACA;AACvC;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,eAAe;;AAEf,wDAAwD,KAAK;AAC7D,gBAAgB;;AAEhB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL,2DAA2D,KAAK;AAChE,aAAa;;AAEb;AACA,mBAAmB;;AAEnB,yDAAyD,KAAK;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL,4DAA4D,KAAK;AACjE;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,6CAAgB;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC,sBAAsB,gDAAmB,CAAC,+CAAS,EAAE,2EAAQ;AAC7D;AACA,0BAA0B,gDAAmB,CAAC,oDAAc;AAC5D;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL,aAAa,2EAAQ,GAAG;AACxB,YAAY,6CAAI;AAChB;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAgB,0DAAgB;;AAEhC;AACA;AACA;AACA,aAAa,wDAAc;;AAE3B;AACA;AACA;AACA;AACA,WAAW,0DAAgB;;AAE3B;AACA;AACA;AACA,SAAS,uDAAe;;AAExB;AACA;AACA;AACA,gBAAgB,uDAAa;;AAE7B;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,gBAAgB,wDAAc;;AAE9B;AACA;AACA;AACA;AACA,SAAS,wDAAc;;AAEvB;AACA;AACA;AACA,aAAa,wDAAc;;AAE3B;AACA;AACA;AACA,MAAM,0DAAgB;;AAEtB;AACA;AACA;AACA;AACA,kBAAkB,+DAAqB;;AAEvC;AACA;AACA;AACA,cAAc,0DAAgB;;AAE9B;AACA;AACA;AACA,YAAY,uDAAO;;AAEnB;AACA;AACA;AACA;AACA,SAAS,wDAAc;;AAEvB;AACA;AACA;AACA;AACA,cAAc,0DAAgB;;AAE9B;AACA;AACA;AACA;AACA,UAAU,uDAAe;;AAEzB;AACA;AACA;AACA,WAAW,2DAAmB,EAAE,0DAAgB,EAAE,0DAAgB;;AAElE;AACA;AACA;AACA,aAAa,wDAAc;;AAE3B;AACA;AACA;AACA,QAAQ,0DAAgB;;AAExB;AACA;AACA;AACA,WAAW,wDAAc;;AAEzB;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,eAAe,0DAAgB;;AAE/B;AACA;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,QAAQ,2DAAmB,EAAE,0DAAgB,EAAE,0DAAgB;;AAE/D;AACA;AACA;AACA,kBAAkB,wDAAc;;AAEhC;AACA;AACA;AACA,QAAQ,0DAAgB;;AAExB;AACA;AACA;AACA,SAAS,uDAAa;AACtB,EAAE,EAAE,CAAM;AACV;AACA,+DAAe,2DAAU;AACzB;AACA,CAAC,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;ACtTyE;AAChC;AAC3B;AACI;AACX;AAC4B;AACN;AACvC;AACP;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,SAAS,2EAAQ;AACjB;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,sDAAsD,MAAM;AAC5D;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,yBAAyB,6CAAgB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC,sBAAsB,gDAAmB,YAAY,2EAAQ;AAC7D,eAAe,6CAAI;AACnB;AACA,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA;AACA,WAAW,0DAAgB;;AAE3B;AACA;AACA;AACA,aAAa,0DAAgB;;AAE7B;AACA;AACA;AACA;AACA,aAAa,+DAEC;;AAEd;AACA;AACA;AACA;AACA,aAAa,2DAAc,CAAC,0DAAgB;AAC5C;AACA,qCAAqC;;AAErC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA,UAAU,wDAAc;;AAExB;AACA;AACA;AACA,WAAW,uDAAe;AAC1B,EAAE,EAAE,CAAM;AACV,+DAAe,2DAAU;AACzB;AACA,CAAC,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AChHiD;AACgC;AAC3D;AACI;AACG;AACiE;AAC9D;AACjB;AAC2B;AACJ;AACoB;AACN;AACf;AACjB;AACF;AACE;AACtB;AACP;;AAEA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACO;AACP;;AAEA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH,EAAE;;;AAGF;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEO;AACP;AACA,UAAU;;AAEV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,6CAAgB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD;AACrD;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,+DAA+D,0CAAI;AACnE;AACA;AACA;AACA,8DAA8D;AAC9D,cAAc,2FAAwB;;AAEtC,iBAAiB,yCAAY,IAAI;AACjC;;AAEA,wBAAwB,8CAAiB;AACzC;AACA,UAAU,IAAqC;AAC/C;AACA;AACA;AACA;;AAEA;AACA;;AAEA,kDAAkD;;AAElD,iGAAiG,6DAAa;AAC9G;;AAEA,QAAQ,IAAqC;AAC7C;;AAEA,UAAU,KAA+B;AACzC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG,gGAAgG;;AAEnG,+BAA+B,8CAAiB;AAChD;;AAEA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;;;AAGR,UAAU,IAAqC;AAC/C;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG,iEAAiE;AACpE;;AAEA,2BAA2B,8CAAiB;AAC5C;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,4BAA4B,8CAAiB;AAC7C;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;;;AAGN,6DAA6D;;AAE7D;AACA;AACA;AACA,uCAAuC;;AAEvC,0BAA0B,2DAAW,yBAAyB;;AAE9D;AACA,uEAAuE;;AAEvE;AACA;AACA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;;AAEA,QAAQ,IAAqC;AAC7C;AACA;AACA;AACA,MAAM;;;AAGN;AACA;;AAEA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,6BAA6B,8CAAiB;AAC9C;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;;AAEA,uB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W;AAC/D,uBAAuB,qEAAc;AACrC,YAAY,uEAAgB;AAC5B;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,2BAA2B,gDAAmB,CAAC,oDAAa;AAC5D;AACA;AACA,KAAK;AACL;AACA,GAAG;AACH,sBAAsB,+CAAkB,iBAAiB,2EAAQ;AACjE;AACA;AACA;AACA,gBAAgB,2EAAQ;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,2EAAQ;AAClC;AACA,OAAO;AACP,KAAK;AACL,4BAA4B,6DAAY;AACxC;AACA;AACA;AACA,OAAO;AACP,KAAK,qCAAqC;AAC1C;AACA,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,wDAAc;;AAE3B;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA;AACA,WAAW,0DAAgB;;AAE3B;AACA;AACA;AACA,gBAAgB,uDAAa;;AAE7B;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,wDAAc;;AAE9B;AACA;AACA;AACA,iBAAiB,+DAAqB;;AAEtC;AACA;AACA;AACA,MAAM,0DAAgB;;AAEtB;AACA,yBAAyB;AACzB;AACA,SAAS,2DAAiB;;AAE1B;AACA;AACA;AACA;AACA,cAAc,0DAAgB;;AAE9B;AACA;AACA;AACA,SAAS,wDAAc;;AAEvB;AACA;AACA;AACA;AACA,WAAW,0DAAgB;;AAE3B;AACA;AACA;AACA,cAAc,0DAAgB;;AAE9B;AACA;AACA;AACA,aAAa,0DAAgB;;AAE7B;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,UAAU,wDAAc;;AAExB;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA,aAAa,QAAQ;AACrB;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA,WAAW,wDAAc;;AAEzB;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA,UAAU,wDAAc;;AAExB;AACA;AACA;AACA;AACA,QAAQ,wDAAc;;AAEtB;AACA;AACA;AACA;AACA,aAAa,KAAK;AAClB,eAAe;AACf;AACA,eAAe,wDAAc;;AAE7B;AACA;AACA;AACA,sBAAsB,0DAAgB;;AAEtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,uDAAa;;AAEtB;AACA;AACA;AACA,WAAW,uDAAe;AAC1B,EAAE,EAAE,CAAM;AACV;AACA,+DAAe,4DAAU;AACzB;AACA,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;AChQgD;AACY;AACoB;AAClC;AAC6B;AACtD;AACO;AACH;AACX;AAC2B;AACN;AACA;AACb;AACc;AACD;AACM;;AAEnD;AACA,MAAM,0EAAO;AACb;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAGA,+BAA+B,6CAAgB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAmD;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iEAAiE;AACjE;AACA;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC,uBAAuB,6DAAa;AACpC;AACA;AACA;AACA,GAAG;AACH,wBAAwB,iFAAc;AACtC;AACA;;AAEA,iBAAiB,yCAAY;;AAE7B,wBAAwB,2CAAc;AACtC;AACA;;AAEA,sBAAsB,yCAAY;AAClC;;AAEA,yBAAyB,2CAAc;AACvC;AACA;;AAEA,yBAAyB,2CAAc;AACvC;AACA;;AAEA,kBAAkB,0DAAU;AAC5B,EAAE,sDAAyB;AAC3B;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,GAAG;AACH,EAAE,4CAAe;AACjB;AACA;AACA;AACA,GAAG;AACH,EAAE,4CAAe;AACjB;AACA,kBAAkB,8DAAa;;AAE/B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;;;AAGN;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,sBAAsB,mDAAsB,YAAY;;AAExD;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,yBAAyB;;AAEzB;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,uBAAuB;;AAEvB;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,0BAA0B;;AAE1B,MAAM,2DAAQ;AACd;AACA,GAAG;AACH;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA,uBAAuB,iDAAoB;AAC3C;AACA;;AAEA,QAAQ,IAAqC;AAC7C,UAAU,oDAAU;AACpB;AACA;AACA;;AAEA;;AAEA;AACA;AACA,wBAAwB,KAAqC,yGAAyG,CAAyB;AAC/L;;AAEA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,wBAAwB,+CAAkB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;;AAEA,KAAK;AACL,GAAG;;AAEH,MAAM,IAAqC;AAC3C;AACA,IAAI,4CAAe;AACnB;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA,KAAK;AACL;;AAEA;AACA;AACA,IAAI;;;AAGJ;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA,sBAAsB,gDAAmB,CAAC,2CAAc,qBAAqB,gDAAmB,QAAQ,2EAAQ;AAChH,eAAe,6CAAI;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,EAAE,gDAAmB;AACrB;AACA,sBAAsB;AACtB;AACA,GAAG,2BAA2B,gDAAmB,UAAU,2EAAQ;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,wBAAwB,gDAAmB;AAC9C,eAAe,6CAAI,qCAAqC,2DAAU;AAClE,GAAG,gBAAgB,gDAAmB,CAAC,gDAAI,EAAE,2EAAQ;AACrD;AACA;AACA;AACA;AACA,GAAG;AACH,mBAAmB,2EAAQ;AAC3B;AACA;AACA;AACA,KAAK;AACL,gBAAgB,2EAAQ,GAAG;AAC3B,aAAa,2EAAQ;AACrB;AACA,OAAO;AACP,KAAK;AACL,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA,gBAAgB,0DAAgB;;AAEhC;AACA;AACA;AACA,aAAa,wDAAc;;AAE3B;AACA;AACA;AACA;AACA,aAAa,wDAAc;;AAE3B;AACA;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA;AACA,WAAW,qEAA2B;;AAEtC;AACA;AACA;AACA,aAAa,0DAAgB;;AAE7B;AACA;AACA;AACA,gBAAgB,uDAAa;;AAE7B;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,gBAAgB,wDAAc;;AAE9B;AACA;AACA;AACA,iBAAiB,0EAAgC;;AAEjD;AACA,uCAAuC,4CAA4C;AACnF;AACA;AACA,YAAY,wDAAO;;AAEnB;AACA;AACA;AACA;AACA,WAAW,0DAAgB;;AAE3B;AACA;AACA;AACA,aAAa,0DAAgB;;AAE7B;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,QAAQ,0DAAgB;;AAExB;AACA;AACA;AACA,UAAU,wDAAc;;AAExB;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA,aAAa,QAAQ;AACrB;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA,WAAW,wDAAc;;AAEzB;AACA;AACA;AACA,WAAW,wDAAc;;AAEzB;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA,UAAU,wDAAc;;AAExB;AACA;AACA;AACA,QAAQ,wDAAc;;AAEtB;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,aAAa,KAAK;AAClB,eAAe;AACf;AACA,eAAe,wDAAc;;AAE7B;AACA;AACA;AACA,sBAAsB,0DAAgB;;AAEtC;AACA;AACA;AACA,YAAY,2DAAmB,EAAE,0DAAgB,EAAE,0DAAgB;;AAEnE;AACA;AACA;AACA,QAAQ,uDAAa;;AAErB;AACA;AACA;AACA,SAAS,uDAAa;;AAEtB;AACA;AACA;AACA,WAAW,uDAAe;AAC1B,EAAE,EAAE,CAAM;AACV,+DAAe,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACvkBgC;AACgC;AAC3D;AACI;AACG;AACG;AACW;AACK;AACZ;AACH;AACO;AACiB,CAAC;AACnE;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,IAAI;;;AAGJ;AACA;;AAEO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,wEAAuB;AAChC,QAAQ,uEAAsB;AAC9B;AACA;AACA;AACA;AACA;;AAEA,yBAAyB,6CAAgB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D,2DAAU;AACzE,cAAc,2FAAwB;;AAEtC,cAAc,yDAAQ;AACtB,oBAAoB,yCAAY;AAChC;AACA,sCAAsC,gBAAgB;AACtD;;AAEA,qBAAqB,8CAAiB;AACtC;AACA,0BAA0B,kDAAoB;AAC9C,GAAG;AACH,8BAA8B,0DAAU;AACxC,kBAAkB,0DAAU;;AAE5B;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI,0DAAM;;AAEV;AACA;AACA;AACA,GAAG;AACH;AACA,0BAA0B,sEAAkB;AAC5C;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL,gFAAgF,2EAAQ,GAAG;AAC3F;AACA,KAAK;AACL,kEAAkE,2EAAQ,GAAG;AAC7E;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,0BAA0B,sEAAkB;AAC5C;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL,gFAAgF,2EAAQ,GAAG;AAC3F;AACA,KAAK;AACL,kEAAkE,2EAAQ,GAAG;AAC7E;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH,uBAAuB,8CAAiB;AACxC;AACA;AACA;AACA,GAAG;AACH,EAAE,4CAAe;AACjB;AACA;AACA;AACA;;AAEA,uBAAuB,yDAAQ;AAC/B;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,EAAE,4CAAe;AACjB;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,sBAAsB,gDAAmB,sBAAsB,2EAAQ;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,wBAAwB,+CAAkB,WAAW,2EAAQ;AAC7D;AACA,aAAa,2EAAQ;AACrB;AACA,OAAO;AACP,KAAK;AACL,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,wDAAmB;;AAE/B;AACA;AACA;AACA,aAAa,uDAAe;;AAE5B;AACA,oCAAoC;AACpC;AACA,MAAM,wDAAc;;AAEpB;AACA;AACA;AACA,WAAW,wDAAc;;AAEzB;AACA;AACA;AACA,aAAa,wDAAc;;AAE3B;AACA;AACA;AACA,cAAc,wDAAc;;AAE5B;AACA;AACA;AACA,UAAU,wDAAc;;AAExB;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,aAAa,wDAAc;;AAE3B;AACA;AACA;AACA,SAAS,0DAAgB;;AAEzB;AACA;AACA;AACA;AACA,WAAW,2DAAmB,EAAE,0DAAgB,EAAE,uDAAe;AACjE,YAAY,0DAAgB;AAC5B,WAAW,0DAAgB;AAC3B,UAAU,0DAAgB;AAC1B,GAAG;AACH,EAAE,EAAE,CAAM;AACV,+DAAe,KAAK;;;;;;;;;;;;;;;;;;;;;;;;AC7RsC;AACgC;AAC3D;AACI;AACX;AAC4B;AACN;AACD;AACtC;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,6CAAgB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC,sBAAsB,gDAAmB,YAAY,2EAAQ;AAC7D,eAAe,6CAAI,wEAAwE,0DAAU,wFAAwF,0DAAU;AACvM;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,+CAA+C,gDAAmB;AACrE,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA;AACA,WAAW,0DAAgB;;AAE3B;AACA;AACA;AACA,aAAa,0DAAgB;;AAE7B;AACA;AACA;AACA;AACA,SAAS,uDAAe;;AAExB;AACA;AACA;AACA;AACA,aAAa,+DAEC;;AAEd;AACA;AACA;AACA,YAAY,2DAAc,CAAC,uDAAe;AAC1C;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,0DAAgB;;AAE7B;AACA;AACA;AACA;AACA;AACA,kBAAkB,0DAAgB;;AAElC;AACA;AACA;AACA;AACA,eAAe,0DAAgB;;AAE/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,0DAAgB;AAC3B,EAAE,EAAE,CAAM;AACV;AACA,+DAAe,2DAAU;AACzB;AACA,CAAC,UAAU;;;;;;;;;;;;;;;;;;;;AC1K+C;AACgC;AAC3D;AACI;AACM;AACI;AACgB;;AAE7D;AACA;AACA;;AAEA,wDAAwD,kDAAqB,GAAG,4CAAe;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,6CAAgB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC;AACA;;AAEA,sBAAsB,yCAAY;AAClC;;AAEA,iBAAiB,yCAAY;AAC7B,kBAAkB,0DAAU;AAC5B,kBAAkB,yCAAY;AAC9B,gBAAgB,yCAAY;;AAE5B,wBAAwB,2CAAc,GAAG;AACzC;AACA;;AAEA,mBAAmB,8CAAiB;AACpC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,yHAAyH;;AAEzH,2DAA2D;;AAE3D;AACA,+DAA+D;;AAE/D;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,0DAA0D;;AAE1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,UAAU,IAAqC;AAC/C;AACA;AACA;AACA;;AAEA;AACA,KAAK;AACL,GAAG;AACH,EAAE,4CAAe;AACjB,uBAAuB,wDAAQ;AAC/B;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH,EAAE,4CAAe;AACjB;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,sBAAsB,gDAAmB,CAAC,2CAAc,qBAAqB,gDAAmB,aAAa,2EAAQ;AACrH;AACA;AACA;AACA;AACA;AACA,WAAW,2EAAQ;AACnB;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG,wBAAwB,gDAAmB;AAC9C;AACA;AACA;AACA;AACA;AACA,WAAW,2EAAQ,GAAG;AACtB,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,0DAAgB;;AAE7B;AACA;AACA;AACA,WAAW,2DAAmB,EAAE,0DAAgB,EAAE,0DAAgB;;AAElE;AACA;AACA;AACA,WAAW,2DAAmB,EAAE,0DAAgB,EAAE,0DAAgB;;AAElE;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA,eAAe,0DAAgB;;AAE/B;AACA;AACA;AACA;AACA,QAAQ,kEAAkB,CAAC,2DAAmB,EAAE,0DAAgB,EAAE,0DAAgB;;AAElF;AACA;AACA;AACA;AACA,WAAW,kEAAkB,CAAC,2DAAmB,EAAE,0DAAgB,EAAE,0DAAgB;;AAErF;AACA;AACA;AACA;AACA,WAAW,kEAAkB,CAAC,2DAAmB,EAAE,0DAAgB,EAAE,0DAAgB;;AAErF;AACA;AACA;AACA,SAAS,0DAAgB;;AAEzB;AACA;AACA;AACA,SAAS,2DAAmB,EAAE,yDAAiB,CAAC,0DAAgB,GAAG,0DAAgB,EAAE,0DAAgB;AACrG,EAAE,EAAE,CAAM;AACV,+DAAe,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;AC/N2B;AACgC;AAClB;AACzC;AACI;AACX;AACsB;AACvC;AACP;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,8DAA8D,MAAM;AACpE,aAAa,kFAAe;AAC5B;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,6CAAgB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC,sBAAsB,gDAAmB,YAAY,2EAAQ;AAC7D,eAAe,6CAAI;AACnB;AACA,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA;AACA,WAAW,qEAA2B;;AAEtC;AACA;AACA;AACA,aAAa,0DAAgB;;AAE7B;AACA;AACA;AACA;AACA,aAAa,+DAEC;;AAEd;AACA;AACA;AACA,kBAAkB,wDAAc;;AAEhC;AACA;AACA;AACA,WAAW,uDAAe;AAC1B,EAAE,EAAE,CAAM;AACV,+DAAe,2DAAU;AACzB;AACA,CAAC,UAAU;;;;;;;;;;;;;;;;;;;;;;;ACvF+C;AACgC;AAC3D;AACI;AACX;AACsB;AACD;AACtC;AACP;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL,sDAAsD,KAAK;AAC3D;AACA;AACA;AACA;AACA,KAAK;;AAEL,4DAA4D,KAAK;AACjE;AACA;AACA,KAAK;;AAEL,yDAAyD,KAAK;AAC9D;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,6CAAgB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC;AACA,sBAAsB,gDAAmB,YAAY,2EAAQ;AAC7D,eAAe,6CAAI,mHAAmH,0DAAU,yJAAyJ,0DAAU,6DAA6D,0DAAU;AAC1X;AACA,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA,SAAS,uDAAe;;AAExB;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA;AACA,WAAW,qEAA2B;;AAEtC;AACA;AACA;AACA,aAAa,0DAAgB;;AAE7B;AACA;AACA;AACA,SAAS,uDAAe;;AAExB;AACA;AACA;AACA;AACA;AACA,aAAa,+DAEC;;AAEd;AACA;AACA;AACA,WAAW,uDAAe;;AAE1B;AACA;AACA;AACA,gBAAgB,wDAAc;;AAE9B;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,wDAAc;;AAExB;AACA;AACA;AACA,aAAa,wDAAc;;AAE3B;AACA;AACA;AACA,WAAW,uDAAe;;AAE1B;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,0DAAgB;AAClC,EAAE,EAAE,CAAM;AACV,+DAAe,2DAAU;AACzB;AACA,CAAC,aAAa;;;;;;;;;;;;;;;;;;;AC7Pd;AAC+B;AACO;AACH;AACgB;AACN;AACE;AAC/C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,yCAAY;AAC3C,sBAAsB,yCAAY;AAClC,oBAAoB,yCAAY;AAChC,sBAAsB,yCAAY;AAClC,gBAAgB,yCAAY,QAAQ;;AAEpC,qBAAqB,8CAAiB;AACtC;AACA,sBAAsB,kDAAoB;AAC1C,GAAG;AACH,kBAAkB,0DAAU;AAC5B,oBAAoB,yCAAY;AAChC,EAAE,4CAAe;AACjB;AACA,GAAG;;AAEH;AACA;AACA;AACA,4BAA4B,MAAM,YAAY,KAAK;AACnD;AACA;AACA,qCAAqC,KAAK;AAC1C;AACA;AACA;AACA;;AAEA,EAAE,4CAAe;AACjB;AACA;AACA;;AAEA,cAAc,6DAAa,mBAAmB;;AAE9C;AACA;AACA,YAAY,IAAqC;AACjD;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,yCAAyC;AACzC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAQ;;;AAGR;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA,sDAAsD;AACtD;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,2DAA2D;;AAE3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH,sBAAsB,gDAAmB,CAAC,2CAAc,qBAAqB,gDAAmB;AAChG;AACA;AACA;AACA,GAAG,gBAAgB,+CAAkB;AACrC;AACA,GAAG,gBAAgB,gDAAmB;AACtC;AACA;AACA;AACA,GAAG;AACH;;AAEA,KAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,wDAAc;;AAE1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,wDAAc;;AAElC;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,wDAAc;;AAErC;AACA;AACA;AACA;AACA,uBAAuB,wDAAc;;AAErC;AACA;AACA;AACA;AACA,UAAU,mEAAyB;;AAEnC;AACA;AACA;AACA;AACA,aAAa,mEAAyB;;AAEtC;AACA;AACA;AACA,QAAQ,mEAAyB;AACjC,EAAE,EAAE,CAAM;;AAEV,IAAI,IAAqC;AACzC;AACA,yCAAyC,2DAAS;AAClD;;AAEA,+DAAe,kBAAkB;;;;;;;;;;;;AC9MjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAAe,IAAI;;;;;;;;;;;;AChBnB;AACA;AACA;AACA;AACA,+DAAe,MAAM;;;;;;;;;;;;ACJrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAAe,KAAK;;;;;;;;;;;;AChBpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAAe,IAAI;;;;;;;;;;;;AChBnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAAe,MAAM;;;;;;;;;;;;AChBrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAAe,MAAM;;;;;;;;;;;;AChBrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAAe,IAAI;;;;;;;;;;;;AChBnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAAe,GAAG;;;;;;;;;;;;;;AChBa;AACuB;AACtD;AACA;AACA;;AAEA,+DAAe,6DAAa,eAAe,gDAAmB;AAC9D;AACA,CAAC,mBAAmB;;;;;;;;;;;;;;ACRW;AACuB;AACtD;AACA;AACA;;AAEA,+DAAe,6DAAa,eAAe,gDAAmB;AAC9D;AACA,CAAC,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;ACRqE;;AAErF;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA,MAAM,IAAqC;AAC3C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;;;AAGO;AACP;AACA,yBAAyB,wCAAwC;AACjE;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;;;AAGO;AACP;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;;AAEO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,QAAQ,uBAAuB;AAC5C;;AAEO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,oBAAoB,KAAqC,4IAA4I,CAAgC;AACrO;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;;AAEO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;;AAEO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;;AAEO;AACP;AACA;AACA;AACA,gBAAgB;;AAEhB;AACA,GAAG,GAAG;;AAEN;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;;AAEO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;AACA;AACA,iBAAiB,QAAQ;AACzB;;AAEO;AACP,MAAM,IAAqC;AAC3C;AACA;AACA,yJAAyJ,QAAQ;AACjK;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;;AAEO;AACP;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;;AAEO;AACP;AACA;;AAEA;AACA;AACA,IAAI;AACJ,oBAAoB,OAAO;AAC3B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;;AAEO;AACP;AACA;;AAEA;AACA;AACA,IAAI;AACJ,oBAAoB,OAAO;AAC3B;AACA;AACA;;AAEA;AACA;;;;;;;;;;;;;;;;;;AC9S0D;AACgC;AAC1F;AACA;AACO,2CAA2C;;AAEnC;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,QAAQ,IAAqC;AAC7C;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,SAAS,2EAAQ;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;;;;;;;;;;;;;;;AC3EwE;AACd;AAC3C;AACf;;AAEA,SAAS,2EAAQ;AACjB;AACA;AACA,gPAAgP,0FAA0F;AAC1U,aAAa,2EAAQ;AACrB;AACA;AACA,OAAO,UAAU,kFAAe,GAAG,wBAAwB,2EAAQ;AACnE;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA,KAAK,EAAE,kFAAe;AACtB;AACA,KAAK,GAAG,kFAAe;AACvB;AACA,KAAK;AACL,GAAG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACzB0D;AACgC;AACL;AACtC;AACT;AACJ;AACI;AACJ;AACF;AACM;AACJ;AACE;AACmC;AAChE;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,WAAW,yDAAY;AACvB,aAAa,qDAAQ;AACrB,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA,aAAa,yDAAY;AACzB;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,WAAW,sDAAS;AACpB;AACA,GAAG;AACH;AACA,YAAY,yDAAY;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN,qBAAqB,0DAAO;AAC5B,MAAM;AACN,oBAAoB,yDAAM;AAC1B;AACA;AACA;;AAEe;AACf;AACA;AACA,WAAW,wDAAW;AACtB,UAAU,wDAAW;AACrB,UAAU,wDAAW;AACrB,IAAI;AACJ;AACA;AACA,WAAW,sDAAS;AACpB,UAAU,sDAAS;AACnB,UAAU,sDAAS;AACnB,IAAI;AACJ;AACA;AACA,WAAW,qDAAQ;AACnB,UAAU,qDAAQ;AAClB,UAAU,qDAAQ;AAClB,IAAI;AACJ;AACA;AACA,WAAW,wDAAW;AACtB,UAAU,wDAAW;AACrB,UAAU,wDAAW;AACrB,IAAI;AACJ;AACA;AACA,WAAW,sDAAS;AACpB,UAAU,sDAAS;AACnB,UAAU,sDAAS;AACnB,IAAI;AACJ;AACA;AACA,WAAW,wDAAU;AACrB,UAAU,wDAAU;AACpB,UAAU,wDAAU;AACpB,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,2FAAwB,wHAAwH;AAC9J;AACA;;;AAGA;AACA,uBAAuB,mEAAgB;;AAEvC,QAAQ,IAAqC;AAC7C,qBAAqB,mEAAgB;;AAErC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAY,2EAAQ,GAAG;;AAEvB;AACA;AACA;;AAEA;AACA,sBAAsB,KAAqC,oKAAoK,CAAoC;AACnQ;;AAEA;AACA,sBAAsB,KAAqC,iPAAiP,YAAY,kCAAkC,iCAAiC,UAAU,wBAAwB,EAAE,iCAAiC,UAAU,eAAe,kBAAkB,MAAM,EAAE,KAAK,CAAqD;AAC7iB;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,MAAM,IAAqC;AAC3C;AACA;AACA;AACA;;AAEA,sBAAsB,4DAAS,CAAC,2EAAQ;AACxC;AACA,YAAY,mDAAM;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,iDAAI;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;;;;;;;;;;;;;;;ACrOyD;AACzD;AACe;AACf;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;;;AAGA,kBAAkB,uEAAkB;AACpC;AACA,GAAG;;AAEH;AACA,wEAAwE,aAAa;AACrF;AACA;;AAEA,QAAQ,IAAqC;AAC7C;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL,KAAK;;;AAGL;AACA;AACA,UAAU,IAAqC;AAC/C,yBAAyB,aAAoB;AAC7C;AACA;;AAEA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;;;;;;;;;;;;;;;;AC9D2E,CAAC;AAC5E;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,4DAAoB;AAC7B;;;;;;;;;;;;;;;;;;;;;;;;;;;ACbwE;AACkB;AAC3C;AACK;AACV;AACE;AACM;AAClB;AACJ;AACgB;AACJ;AACV;;AAE9B;AACA;;AAEA;AACA,8DAA8D;AAC9D;AACA,oDAAoD;AACpD;AACA,sDAAsD;AACtD;AACA;AACA,4DAA4D;AAC5D,cAAc,2FAAwB;;AAEtC,gBAAgB,uDAAa;AAC7B,oBAAoB,2DAAiB;AACrC,gBAAgB,uDAAa;AAC7B,iBAAiB,2DAAS;AAC1B;AACA;AACA,YAAY,sDAAY;AACxB,iBAAiB;AACjB;AACA;AACA,aAAa;AACb;AACA,aAAa,6CAAO;AACpB,gBAAgB,0DAAgB;AAChC;AACA,WAAW,2CAAK;AAChB,iBAAiB,kDAAW;AAC5B,YAAY,6CAAM;AAClB,GAAG;;AAEH,yFAAyF,aAAa;AACtG;AACA;;AAEA;AACA,WAAW,2DAAS;AACpB,GAAG;;AAEH,MAAM,IAAqC;AAC3C;;AAEA;AACA;AACA,eAAe;;AAEf;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV,cAAc,IAAqC;AACnD;AACA,oBAAoB,kFAAe,GAAG;AACtC,aAAa;AACb,YAAY;;;AAGZ;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACO;AACP,MAAM,IAAqC;AAC3C;AACA;AACA,2HAA2H,cAAc;AACzI;AACA;;AAEA;AACA;AACA,+DAAe,WAAW;;;;;;;;;;;;;;;;;;ACnGgC;AACgC;AAC3C;;AAE/C;AACA;AACA;;AAEA;;AAEA;AACA,MAAM,IAAqC;AAC3C;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,cAAc;AACd;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC,MAAM,IAAqC;AAC3C;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,WAAW,2EAAQ;AACnB;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,MAAM,IAAI;AACV;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,2DAAS,CAAC,2EAAQ;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA,GAAG;AACH;;;;;;;;;;;;;AC5GwC;AACxC,mBAAmB,qDAAW;AAC9B,+DAAe,YAAY;;;;;;;;;;;;;;;ACF+B;AACmB;AACnC;;AAE1C;AACA;AACA,SAAS,4DAAwB,kBAAkB,2EAAQ;AAC3D,kBAAkB,kDAAY;AAC9B,GAAG;AACH;;AAEA,+DAAe,UAAU;;;;;;;;;;;;ACXzB;AACA;AACA;;AAEA;AACA;AACA,EAAE;;;AAGF;AACA,+DAAe,OAAO;;;;;;;;;;;;ACVtB;AACA;AACA;AACA,+DAAe,KAAK;;;;;;;;;;;;;;;;;ACHsE;AAC1F;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;;;AAGA,+DAAe;AACf;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,2FAAwB;;AAExC,QAAQ,IAAqC;AAC7C;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA;AACA;;AAEA,gCAAgC;;AAEhC;AACA;AACA,CAAC;;;;;;;;;;;;;;;;;;ACrGwE;AAC/C;AACgB;AAC3B;AACf,cAAc,4DAAsB,MAAM,kDAAY;;AAEtD,MAAM,IAAqC;AAC3C;AACA,IAAI,gDAAmB;AACvB;;AAEA;AACA;;;;;;;;;;;;;;;ACZ0D;AACmB;AACnC;;AAE1C;AACA,SAAS,4DAAwB,kBAAkB,2EAAQ;AAC3D,kBAAkB,kDAAY;AAC9B,GAAG;AACH;;AAEA,+DAAe,UAAU;;;;;;;;;;;;ACVzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAAe,MAAM;;;;;;;;;;;;;;;;ACXd;AACP;AACA;AACO;AACP;AACA;AACA,2CAA2C;AAC3C;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;ACXqF;AACrF;AACA;AACA;AACA;AACe;AACf;AACA,oBAAoB,KAAqC,kEAAkE,CAAyB;AACpJ;;AAEA;AACA;;;;;;;;;;;;;;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,UAAU;AACrB,aAAa;AACb;AACe;AACf,uEAAuE,aAAa;AACpF;AACA;;AAEA;AACA;AACA;AACA;;AAEA,QAAQ,IAAqC;AAC7C;AACA;AACA;AACA;;AAEA;AACA,6EAA6E,eAAe;AAC5F;AACA;;AAEA;AACA;AACA;AACA,GAAG,gBAAgB;AACnB;;;;;;;;;;;;;;;;;;AClC0D;AAChC;AACO;AACjC;AACA;AACA;;AAEe;AACf;AACA,wBAAwB,gDAAmB,CAAC,6CAAO,EAAE,2EAAQ;AAC7D;AACA,KAAK;AACL;;AAEA,MAAM,IAAqC;AAC3C;AACA;AACA;AACA;;AAEA,sBAAsB,qDAAe;AACrC,sBAAsB,uCAAU,eAAe,6CAAgB;AAC/D;;;;;;;;;;;;;;;ACtBA;AACA;AACe;AACf;AACA;;AAEA;AACA,wEAAwE,aAAa;AACrF;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;;;;;;;;;;;;;;AC3Be;AACf,MAAM,KAAqC,EAAE,EAI1C;;AAEH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;;;;;;;;ACjBA;AACA;AACe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACbqD;AACsB;AAChB;AACV;AACoB;AACZ;AACE;AACJ;AACc;AACxB;AACkB;AACJ;AACM;AACZ,CAAC;;AAEO;;;;;;;;;;;;;;;;;ACf9B;AAChB;AACf,sBAAsB,iDAAoB;AAC1C;;;;;;;;;;;;;;;ACHe;AACf;AACA;;;;;;;;;;;;;;;;ACF4C;AAC7B;AACf,YAAY,uDAAa;AACzB;AACA;;;;;;;;;;;;;;;ACJe;AACf,MAAM,KAAqC,EAAE,EAI1C;;AAEH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;;;;;;;;;;;;;;ACpBA;AACe;AACf;AACA;AACA,IAAI;AACJ;AACA;AACA;;;;;;;;;;;;;;;;ACP+B;AAC/B;AACA;AACA;;AAEe;AACf,wBAAwB,2CAAc;AACtC;AACA;;AAEA;AACA,EAAE,4CAAe;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;;;;;;;;;;;;;;ACpBe;AACf,MAAM,KAAqC,EAAE,EAE1C;;AAEH;;AAEA;AACA;AACA;;AAEA;AACA;;;;;;;;;;;;;;;;ACZA;AAC+B;AAChB;AACf;AACA;AACA;AACA;AACA;;AAEA,sBAAsB,yCAAY;AAClC;;AAEA,wBAAwB,2CAAc;AACtC;AACA;;AAEA;;AAEA,MAAM,IAAqC;AAC3C,IAAI,4CAAe;AACnB;AACA;AACA;AACA,KAAK;;AAEL,yBAAyB,yCAAY;AACrC;;AAEA,IAAI,4CAAe;AACnB;AACA;AACA;AACA,KAAK;AACL;;AAEA,+BAA+B,8CAAiB;AAChD;AACA;AACA;AACA,GAAG;AACH;AACA;;;;;;;;;;;;;;;;ACzC+B;AAC/B,wDAAwD,kDAAqB,GAAG,4CAAe;AAC/F;AACA;AACA;AACA,WAAW,UAAU;AACrB;;AAEe;AACf,YAAY,yCAAY;AACxB;AACA;AACA,GAAG;AACH,SAAS,8CAAiB;AAC1B;AACA,GAAG;AACH;;;;;;;;;;;;;;;;;AChB+B;AACD;AACf;AACf;AACA;AACA;AACA;AACA;AACA,SAAS,0CAAa;AACtB;AACA;AACA;;AAEA;AACA,MAAM,gDAAM;AACZ,MAAM,gDAAM;AACZ;AACA,GAAG;AACH;;;;;;;;;;;;;;;;;;AClBA;AAC+B;AACO;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,YAAY;AACZ;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,eAAe;AAC1B;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,IAAI,iBAAiB;AACrB;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEe;AACf,YAAY,8CAAiB;AAC7B,eAAe,kDAAoB;;AAEnC;AACA;AACA;AACA,GAAG;;AAEH,MAAM,IAAqC;AAC3C;AACA,IAAI,gDAAmB;AACvB;;AAEA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;AC3JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEa;;AAEb,IAAI,IAAqC;AACzC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,4BAA4B;;AAE5B;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD;;AAEtD;AACA;AACA;AACA,kDAAkD;;AAElD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,uDAAuD;;AAEvD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB;AACvB,uBAAuB;AACvB,eAAe;AACf,kBAAkB;AAClB,gBAAgB;AAChB,YAAY;AACZ,YAAY;AACZ,cAAc;AACd,gBAAgB;AAChB,kBAAkB;AAClB,gBAAgB;AAChB,mBAAmB;AACnB,wBAAwB;AACxB,yBAAyB;AACzB,yBAAyB;AACzB,iBAAiB;AACjB,oBAAoB;AACpB,kBAAkB;AAClB,cAAc;AACd,cAAc;AACd,gBAAgB;AAChB,kBAAkB;AAClB,oBAAoB;AACpB,kBAAkB;AAClB,0BAA0B;AAC1B,cAAc;AACd,GAAG;AACH;;;;;;;;;;;;ACjOa;;AAEb,IAAI,KAAqC,EAAE,EAE1C,CAAC;AACF,EAAE,+JAAyD;AAC3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACNoG;AAC9B;AACnC;AACT;AACO;AACH;AACoB;AACY;AACvD;AACA;AACA;AACA;AACA;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,aAAa;AACzB;AACA;AACA;AACA;AACA,4BAA4B,SAAS;AACrC;AACA;AACA;AACA;AACA,iBAAiB,YAAY;AAC7B,iBAAiB,YAAY;AAC7B,iBAAiB,YAAY;AAC7B,gBAAgB,YAAY;AAC5B;AACA;AACA,mBAAmB,YAAY;AAC/B,qBAAqB,QAAQ,SAAS,SAAS;AAC/C,QAAQ;AACR;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,QAAQ,SAAS,IAAI;AAC9C,YAAY;AACZ;AACA;AACA;AACA,0BAA0B,sBAAsB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,EAAE,iFAAc;;AAEhB;AACA;;AAEA;AACA,+BAA+B;;AAE/B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,MAAM;AACN;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,IAAI;AACJ;AACA;AACA,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,6BAA6B;;AAE7B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA,MAAM;AACN;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,oDAAoD,kDAAoB;AACxE;AACA;;AAEA;AACA,qEAAqE;AACrE;;AAEA,+BAA+B,qDAAe;AAC9C;AACA;AACA,OAAO;AACP;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT,OAAO;AACP,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;AACA,qDAAqD,kDAAoB,QAAQ;;AAEjF,iBAAiB,qDAAe;AAChC;AACA;AACA,OAAO;AACP;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT,OAAO;AACP,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,iEAAiE,kDAAoB;AACrF;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,gGAA6B;;AAElD;AACA;AACA;AACA,MAAM,gDAAmB,CAAC,qEAA+B;AACzD;AACA,OAAO,kEAAkE,+CAAkB,CAAC,gDAAmB;AAC/G;AACA;;AAEA;AACA,CAAC,CAAC,4CAAe;;AAEjB,yBAAyB,4DAAsB;AAC/C,uBAAuB,KAAqC;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,uDAAe;AAC1B,8CAA8C,uDAAa;AAC3D;AACA,aAAa,4DAAoB;AACjC;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,eAAe,SAAS,IAAI;AACjD,QAAQ;AACR,iCAAiC,aAAa,MAAM,GAAG;AACvD;AACA;AACA;AACA;AACA,YAAY,2DAAmB,EAAE,mEAAyB,EAAE,sEAA4B;;AAExF;AACA,yBAAyB;AACzB;AACA,MAAM,wDAAc;;AAEpB;AACA;AACA;AACA,gBAAgB,KAAK;AACrB;AACA;AACA,gBAAgB,wDAAc;;AAE9B;AACA;AACA;AACA;AACA,iBAAiB,wDAAc;;AAE/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,wDAAc;;AAExB;AACA;AACA;AACA,SAAS,wDAAc;;AAEvB;AACA;AACA;AACA,QAAQ,wDAAc;;AAEtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,WAAW;AACvB;AACA;AACA,aAAa,2DAAa;AAC1B;;AAEA,2FAA2F,aAAa;AACxG;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,kBAAkB,wDAAc;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,wDAAc;;AAEzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,wDAAc;;AAE5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,wDAAc;;AAE3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,wDAAc;;AAExB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,wDAAc;;AAE3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,wDAAc;AAC1B,EAAE,EAAE,CAAE,EAAE;;AAER;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAAe,UAAU;;;;;;;;;;;;;;;;;;;;;ACvmB2E;AAC1C;AAC4B;AAChB;AACnC;AACT;AACoC;AACsC;;AAEpG;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,EAAE,iFAAc;;AAEhB;AACA;;AAEA;;AAEA,+CAA+C,yFAAsB,UAAU;;;AAG/E;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,8BAA8B,2EAAsB,4BAA4B,w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ACA;AACA,CAAC;;AAED,eAAe;;;;;;;;;;;ACnBF;;AAEb,6BAA6B,mBAAO,CAAC,oHAA8C;;AAEnF,8BAA8B,mBAAO,CAAC,sHAA+C;;AAErF,8CAA6C;AAC7C;AACA,CAAC,EAAC;AACF,eAAe;;AAEf,oCAAoC,mBAAO,CAAC,4CAAO;;AAEnD,4CAA4C,mBAAO,CAAC,uFAAuB;;AAE3E;AACA;AACA,CAAC;;AAED,eAAe;;;;;;;;;;;ACnBF;;AAEb,8CAA6C;AAC7C;AACA,CAAC,EAAC;AACF,2CAA0C;AAC1C;AACA;AACA;AACA;AACA,CAAC,EAAC;;AAEF,aAAa,mBAAO,CAAC,oFAAyB;;;;;;;;;;;;;;;;;;;;;;;ACZY;AACgC;AAC3D;AACP;AACW;AAC0B;AACtD;AACP;AACA;AACA;AACA;AACA;AACA,uBAAuB,+DAAK;AAC5B;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,YAAY;;AAEZ;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,6CAAgB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,2FAAwB;;AAEtC;AACA,sBAAsB,gDAAmB,YAAY,2EAAQ;AAC7D;AACA,eAAe,6CAAI;AACnB,GAAG;AACH,WAAW,2EAAQ;AACnB;AACA;AACA,KAAK;AACL,GAAG;AACH,CAAC;AACD,KAAqC;AACrC;AACA;AACA;AACA;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AAE/C;AACA;AACA;AACA;;AAEA,SAAS,2DAAS;AAClB;;AAEA,GAAG;AACH;;AAEA,+DAAe,KAAK;;;;;;;;;;;;;;ACbe;AACnC,yBAAyB,KAAqC,GAAG,2DAAmB,EAAE,0DAAgB,EAAE,0DAAgB,EAAE,0DAAgB,EAAE,yDAAe,KAAK,CAAE;AAClK,+DAAe,kBAAkB;;;;;;;;;;;;;;;;;;;;ACFqC;AAChB;AACJ;AACtB;AACI;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA,uBAAuB,iDAAO;AAC9B;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA,qBAAqB,iFAAc;AACnC;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH,CAAC;AACD;AACO;AACP;;AAEA;AACA;AACA,UAAU,IAAqC;AAC/C;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,UAAU,IAAqC;AAC/C;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,MAAM,IAAqC;AAC3C;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK,IAAI;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,+DAAiB;AAC5B,GAAG,SAAS,2CAAK,IAAI;AACrB;;AAEA,oBAAoB,KAAqC;AACzD,aAAa,wDAAkB;AAC/B;AACA,CAAC,IAAI,IAAI,CAAE;AACX;AACA,+DAAe,OAAO;;;;;;;;;;;;;;;AC1IP;AACf,MAAM,KAAqC,EAAE,EAE1C;;AAEH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;;;;;;;;;;;;;;ACjBe;AACf,MAAM,KAAqC,EAAE,EAI1C;;AAEH;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;ACV0D;AACF;AACjD;AACP,iBAAiB,0EAAO;AACxB;AACe;AACf;AACA;AACA;AACA,+BAA+B,2EAAQ,GAAG;;AAE1C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA,KAAK;AACL;;AAEA;AACA;;;;;;;;;;;;;;;AC3BmC;AACW;;AAE9C;AACA;AACA;AACA,wDAAwD;AACxD;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,0BAA0B,wDAAc,CAAC,2DAAiB;AAC1D,iCAAiC,wDAAc,CAAC,sEAA4B;AAC5E,+DAAe,mBAAmB;;;;;;;;;;;;;;;AC3CM;AACM;;AAE9C;AACA;AACA;AACA,wDAAwD;AACxD;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,+DAAe,wDAAc,CAAC,mDAAqB,0BAA0B;;;;;;;;;;;;;;;;;;ACxCL;AACd;AAC1D;AACA;AACA;AACA;AACO;AACQ;AACf,MAAM,KAAqC,EAAE,EAE1C;;AAEH,SAAS,2EAAQ,GAAG,aAAa,kFAAe,GAAG;AACnD;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA,GAAG;AACH;;;;;;;;;;;;;;;;;;ACzBwD;AACZ,CAAC;AAC7C;;AAEA;AACO;AACP;AACA;AACA;AACA;AACA;AACA,WAAW,UAAU;AACrB,WAAW,QAAQ;AACnB,aAAa;AACb;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,iBAAiB;AAC5B,aAAa;AACb;;;AAGe;AACf;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,MAAM,0EAAO;AACb;AACA,WAAW,gDAAU;AACrB;;AAEA,WAAW,0CAAI;AACf;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;;;;;;;AC9DmC;AACnC,cAAc,2DAAmB,EAAE,wDAAc,EAAE,0DAAgB;AACnE,+DAAe,OAAO;;;;;;;;;;;ACFtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEa;;AAEb,IAAI,IAAqC;AACzC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,4BAA4B;;AAE5B;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD;;AAEtD;AACA;AACA;AACA,kDAAkD;;AAElD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,uDAAuD;;AAEvD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB;AACvB,uBAAuB;AACvB,eAAe;AACf,kBAAkB;AAClB,gBAAgB;AAChB,YAAY;AACZ,YAAY;AACZ,cAAc;AACd,gBAAgB;AACh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;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,gBAAgB;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,gBAAgB;AACxB;AACA;AACA;AACA;AACA;AACA,QAAQ,gBAAgB;AACxB,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,uDAAuD;AACvD;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AC5Ka;AACb,aAAa,mBAAO,CAAC,uEAAqB;AAC1C,kBAAkB,mBAAO,CAAC,iFAA0B;AACpD,0BAA0B,mBAAO,CAAC,iGAAkC;AACpE,kCAAkC,mBAAO,CAAC,uHAA6C;AACvF,kBAAkB,mBAAO,CAAC,mFAA2B;AACrD,YAAY,mBAAO,CAAC,qEAAoB;AACxC,iBAAiB,mBAAO,CAAC,iFAA0B;AACnD,gBAAgB,mBAAO,CAAC,+EAAyB;AACjD,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,cAAc,mBAAO,CAAC,2EAAuB;AAC7C,cAAc,mBAAO,CAAC,yEAAsB;AAC5C,qBAAqB,mBAAO,CAAC,yGAAsC;AACnE,qBAAqB,mBAAO,CAAC,yGAAsC;AACnE,0BAA0B,4IAAuD;AACjF,qBAAqB,8HAAgD;AACrE,gBAAgB,mBAAO,CAAC,+EAAyB;AACjD,qBAAqB,mBAAO,CAAC,6FAAgC;AAC7D,0BAA0B,mBAAO,CAAC,uFAA6B;;AAE/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,gDAAgD,mBAAmB,uCAAuC;AAC1G;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,WAAW;AAC7B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,GAAG;AACH,EAAE;AACF;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,wEAAwE,gBAAgB;AACxF;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,GAAG,IAAI,cAAc;AACrB;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;;;;;;;;;;;ACnOa;AACb,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,sBAAsB,mBAAO,CAAC,6FAAgC;AAC9D,eAAe,mBAAO,CAAC,6EAAwB;;AAE/C;;AAEA;AACA;AACA;AACA;AACA;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AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,wCAAwC;AAClD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;ACvCA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI;AACJ;;AAEA;;;;;;;;;;;AC5CA,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,cAAc,mBAAO,CAAC,2EAAuB;AAC7C,sBAAsB,mBAAO,CAAC,6FAAgC;;AAE9D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;;;;;;;;;;;ACnBA,8BAA8B,mBAAO,CAAC,6GAAwC;;AAE9E;AACA;AACA;AACA;AACA;;;;;;;;;;;ACNA,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,oBAAoB,mBAAO,CAAC,uFAA6B;;AAEzD;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;;;;;;;;;;ACXA,sBAAsB,mBAAO,CAAC,6FAAgC;;AAE9D;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe;AACf,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C,UAAU;AACzD,EAAE,gBAAgB;;AAElB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA,IAAI,gBAAgB;AACpB;AACA;;;;;;;;;;;ACrCA,iBAAiB;;AAEjB;AACA;AACA;;;;;;;;;;;ACJA,4BAA4B,mBAAO,CAAC,qGAAoC;AACxE,iBAAiB,mBAAO,CAAC,iFAA0B;AACnD,sBAAsB,mBAAO,CAAC,6FAAgC;;AAE9D;AACA;AACA,iDAAiD,mBAAmB;;AAEpE;AACA;AACA;AACA;AACA,IAAI,gBAAgB;AACpB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACzBa;AACb,qBAAqB,8HAAgD;AACrE,aAAa,mBAAO,CAAC,qFAA4B;AACjD,kBAAkB,mBAAO,CAAC,mFAA2B;AACrD,WAAW,mBAAO,CAAC,qGAAoC;AACvD,iBAAiB,mBAAO,CAAC,iFAA0B;AACnD,cAAc,mBAAO,CAAC,yEAAsB;AAC5C,qBAAqB,mBAAO,CAAC,yFAA8B;AAC3D,iBAAiB,mBAAO,CAAC,iFAA0B;AACnD,kBAAkB,mBAAO,CAAC,iFAA0B;AACpD,cAAc,0HAAiD;AAC/D,0BAA0B,mBAAO,CAAC,uFAA6B;;AAE/D;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,kEAAkE,gCAAgC;AAClG,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,OAAO;AACvC;AACA;AACA;;AAEA;AACA,YAAY,UAAU;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,YAAY,UAAU;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,OAAO;AACP,YAAY,UAAU;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,YAAY,SAAS;AACrB;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,UAAU,UAAU,aAAa,mCAAmC;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,mCAAmC;AACnC,qCAAqC;AACrC,eAAe;AACf,KAAK;;AAEL,UAAU,UAAU;AACpB;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACzMa;AACb,kBAAkB,mBAAO,CAAC,mFAA2B;AACrD,kBAAkB,8HAAqD;AACvE,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,iBAAiB,mBAAO,CAAC,iFAA0B;AACnD,cAAc,mBAAO,CAAC,yEAAsB;AAC5C,2BAA2B,mBAAO,CAAC,yFAA8B;AACjE,WAAW,mBAAO,CAAC,iEAAkB;AACrC,0BAA0B,mBAAO,CAAC,uFAA6B;;AAE/D;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,kEAAkE,gCAAgC;AAClG,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAY,kBAAkB;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,YAAY,kBAAkB;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA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ACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,SAAS,qBAAqB;AAC9B;AACA;AACA,SAAS,oBAAoB;AAC7B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,WAAW;AACpB;AACA;AACA;AACA,SAAS,WAAW;AACpB;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;AACA;;;;;;;;;;;ACrFA,YAAY,mBAAO,CAAC,qEAAoB;AACxC,cAAc,mBAAO,CAAC,iFAA0B;;AAEhD;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,EAAE;;;;;;;;;;;ACZF,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,qBAAqB,mBAAO,CAAC,yGAAsC;;AAEnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;AChBA,YAAY,mBAAO,CAAC,mFAA2B;;AAE/C;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;ACXA,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,iBAAiB,mBAAO,CAAC,iFAA0B;AACnD,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,UAAU,mBAAO,CAAC,iEAAkB;AACpC,qBAAqB,8HAAgD;AACrE,gCAAgC,mBAAO,CAAC,qHAA4C;AACpF,wCAAwC,mBAAO,CAAC,uIAAqD;AACrG,UAAU,mBAAO,CAAC,iEAAkB;AACpC,eAAe,mBAAO,CAAC,2EAAuB;;AAE9C;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,iCAAiC;AACjC;AACA,0BAA0B;AAC1B,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA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AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;;;;;;;;;;;ACbF,WAAW,mBAAO,CAAC,6EAAwB;;AAE3C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;AC1BA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;ACNA,aAAa,mBAAO,CAAC,uEAAqB;AAC1C,+BAA+B,sJAA4D;AAC3F,gBAAgB,4FAAgC;AAChD,aAAa,mBAAO,CAAC,qFAA4B;AACjD,sBAAsB,mBAAO,CAAC,uGAAqC;AACnE,cAAc,mBAAO,CAAC,uFAA6B;;AAEnD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gDAAgD,qBAAqB;AACrE;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA,IAAI;AACJ;;;;;;;;;;;ACjFA,aAAa,mBAAO,CAAC,uEAAqB;;AAE1C;;;;;;;;;;;ACFA;AACA,iBAAiB,mBAAO,CAAC,6FAAgC;AACzD,YAAY,mBAAO,CAAC,qEAAoB;;AAExC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;ACZD,YAAY,mBAAO,CAAC,qEAAoB;AACxC,sBAAsB,mBAAO,CAAC,6FAAgC;AAC9D,cAAc,mBAAO,CAAC,yEAAsB;;AAE5C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;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A;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC;AACxC;AACA,QAAQ;AACR,wCAAwC;AACxC;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,mCAAmC;AAC5C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,cAAc,kBAAkB;AAChC;AACA;AACA;AACA;AACA;;AAEA,mCAAmC;AACnC,oCAAoC;;AAEpC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAgB,kBAAkB;AAClC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,gBAAgB,kBAAkB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,oBAAoB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc,mBAAmB;AACjC;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACvKa;AACb,gBAAgB,mBAAO,CAAC,+EAAyB;AACjD,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,6BAA6B,mBAAO,CAAC,2GAAuC;;AAE5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,OAAO;AACf;AACA;;;;;;;;;;;ACdA,YAAY,mBAAO,CAAC,qEAAoB;AACxC,kBAAkB,mBAAO,CAAC,iFAA0B;;AAEpD;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;;;;;;;;;ACXA,6BAA6B,mBAAO,CAAC,2GAAuC;AAC5E,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,kBAAkB,mBAAO,CAAC,iFAA0B;;AAEpD;AACA;AACA;;AAEA,uBAAuB,+CAA+C;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,yBAAyB,qBAAqB;AAC9C;AACA;AACA,yBAAyB,oBAAoB;AAC7C;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;AC5BA,aAAa,mBAAO,CAAC,uEAAqB;AAC1C,YAAY,mBAAO,CAAC,qEAAoB;AACxC,WAAW,mBAAO,CAAC,qGAAoC;AACvD,WAAW,mBAAO,CAAC,mEAAmB;AACtC,oBAAoB,mBAAO,CAAC,yGAAsC;AAClE,aAAa,mBAAO,CAAC,qFAA4B;AACjD,cAAc,mBAAO,CAAC,uFAA6B;;AAEnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,EAAE,gBAAgB;;AAElB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;;;;;;;;;AC/GA,cAAc,mBAAO,CAAC,iFAA0B;;AAEhD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;ACTA,gBAAgB,mBAAO,CAAC,+EAAyB;;AAEjD;AACA;;AAEA;AACA;AACA,6DAA6D;AAC7D;AACA;AACA;AACA;;;;;;;;;;;ACXA,gBAAgB,mBAAO,CAAC,+EAAyB;AACjD,eAAe,mBAAO,CAAC,6EAAwB;;AAE/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;ACXA;AACA,oBAAoB,mBAAO,CAAC,uFAA6B;AACzD,6BAA6B,mBAAO,CAAC,2GAAuC;;AAE5E;AACA;AACA;;;;;;;;;;;ACNA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;;;;;;;;;ACPA,gBAAgB,mBAAO,CAAC,+EAAyB;;AAEjD;;AAEA;AACA;AACA;AACA,wEAAwE;AACxE;;;;;;;;;;;ACRA,6BAA6B,mBAAO,CAAC,2GAAuC;;AAE5E;AACA;AACA;AACA;AACA;;;;;;;;;;;ACNA,wBAAwB,mBAAO,CAAC,iGAAkC;;AAElE;AACA;AACA;AACA;AACA;;;;;;;;;;;ACNA,gBAAgB,mBAAO,CAAC,+EAAyB;;AAEjD;AACA;AACA;AACA;AACA;;;;;;;;;;;ACNA,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,0BAA0B,mBAAO,CAAC,qGAAoC;AACtE,sBAAsB,mBAAO,CAAC,6FAAgC;;AAE9D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;ACrBA,kBAAkB,mBAAO,CAAC,mFAA2B;AACrD,eAAe,mBAAO,CAAC,6EAAwB;;AAE/C;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;ACRA,sBAAsB,mBAAO,CAAC,6FAAgC;;AAE9D;AACA;;AAEA;;AAEA;;;;;;;;;;;ACPA,eAAe,mBAAO,CAAC,6EAAwB;;AAE/C;AACA;AACA;AACA;;;;;;;;;;;;ACLa;AACb,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,aAAa,mBAAO,CAAC,uEAAqB;AAC1C,kBAAkB,mBAAO,CAAC,iFAA0B;AACpD,kDAAkD,mBAAO,CAAC,6IAAwD;AAClH,0BAA0B,mBAAO,CAAC,uGAAqC;AACvE,wBAAwB,mBAAO,CAAC,mFAA2B;AAC3D,iBAAiB,mBAAO,CAAC,iFAA0B;AACnD,+BAA+B,mBAAO,CAAC,+GAAyC;AAChF,kCAAkC,mBAAO,CAAC,uHAA6C;AACvF,gBAAgB,mBAAO,CAAC,+EAAyB;AACjD,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,cAAc,mBAAO,CAAC,2EAAuB;AAC7C,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,oBAAoB,mBAAO,CAAC,yFAA8B;AAC1D,UAAU,mBAAO,CAAC,iEAAkB;AACpC,cAAc,mBAAO,CAAC,yEAAsB;AAC5C,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,aAAa,mBAAO,CAAC,qFAA4B;AACjD,qBAAqB,mBAAO,CAAC,yGAAsC;AACnE,0BAA0B,4IAAuD;AACjF,qBAAqB,mBAAO,CAAC,2FAA+B;AAC5D,cAAc,sHAA+C;AAC7D,iBAAiB,mBAAO,CAAC,iFAA0B;AACnD,2BAA2B,mBAAO,CAAC,uGAAqC;AACxE,qCAAqC,mBAAO,CAAC,+HAAiD;AAC9F,0BAA0B,mBAAO,CAAC,uFAA6B;AAC/D,wBAAwB,mBAAO,CAAC,iGAAkC;;AAElE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,kCAAkC;AAClC;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAM,kEAAkE;AACxE;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA,UAAU;AA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ACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB,CAAC;;AAED;AACA;AACA,IAAI,+CAA+C;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,CAAC;;;;;;;;;;;;AC5HY;AACb,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,YAAY,mBAAO,CAAC,qEAAoB;AACxC,sBAAsB,mBAAO,CAAC,6FAAgC;;AAE9D;;AAEA;AACA;AACA;AACA,CAAC;AACD;AACA,2BAA2B;AAC3B,CAAC;;AAED;AACA;AACA,IAAI,+CAA+C;AACnD;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;ACvBD,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,aAAa,mBAAO,CAAC,qFAA4B;;AAEjD;AACA;AACA;AACA,IAAI,gEAAgE;AACpE;AACA,CAAC;;;;;;;;;;;ACRD,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,kBAAkB,mBAAO,CAAC,iFAA0B;AACpD,aAAa,mBAAO,CAAC,qFAA4B;;AAEjD;AACA;AACA,IAAI,kDAAkD;AACtD;AACA,CAAC;;;;;;;;;;;;ACRY;AACb,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,kBAAkB,mBAAO,CAAC,iFAA0B;AACpD,aAAa,mBAAO,CAAC,6HAAgD;AACrE,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,gBAAgB,mBAAO,CAAC,+EAAyB;AACjD,2BAA2B,mBAAO,CAAC,uGAAqC;;AAExE;AACA;AACA;AACA,MAAM,+CAA+C;AACrD;AACA,kDAAkD,8DAA8D;AAChH;AACA,GAAG;AACH;;;;;;;;;;;AChBA,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,kBAAkB,mBAAO,CAAC,iFAA0B;AACpD,uBAAuB,mBAAO,CAAC,2GAAuC;;AAEtE;AACA;AACA,IAAI,wEAAwE;AAC5E;AACA,CAAC;;;;;;;;;;;ACRD,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,kBAAkB,mBAAO,CAAC,iFAA0B;AACpD,iCAAiC,mBAAO,CAAC,uGAAqC;;AAE9E;AACA;AACA,IAAI,wEAAwE;AAC5E;AACA,CAAC;;;;;;;;;;;;ACRY;AACb,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,kBAAkB,mBAAO,CAAC,iFAA0B;AACpD,aAAa,mBAAO,CAAC,6HAAgD;AACrE,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,gBAAgB,mBAAO,CAAC,+EAAyB;AACjD,2BAA2B,mBAAO,CAAC,uGAAqC;;AAExE;AACA;AACA;AACA,MAAM,+CAA+C;AACrD;AACA,kDAAkD,8DAA8D;AAChH;AACA,GAAG;AACH;;;;;;;;;;;AChBA,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,eAAe,sHAA+C;;AAE9D;AACA;AACA,IAAI,8BAA8B;AAClC;AACA;AACA;AACA,CAAC;;;;;;;;;;;ACTD,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,eAAe,mBAAO,CAAC,2EAAuB;AAC9C,YAAY,mBAAO,CAAC,qEAAoB;AACxC,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,eAAe,2HAAkD;;AAEjE;AACA;AACA,8CAA8C,aAAa;;AAE3D;AACA;AACA,IAAI,4EAA4E;AAChF;AACA;AACA;AACA,CAAC;;;;;;;;;;;AChBD,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,cAAc,mBAAO,CAAC,yEAAsB;AAC5C,qBAAqB,mBAAO,CAAC,yFAA8B;;AAE3D;AACA;AACA,IAAI,8BAA8B;AAClC;AACA;AACA;AACA;AACA,KAAK,IAAI,kBAAkB;AAC3B;AACA;AACA,CAAC;;;;;;;;;;;ACdD,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,YAAY,mBAAO,CAAC,qEAAoB;AACxC,sBAAsB,mBAAO,CAAC,6FAAgC;AAC9D,qCAAqC,sJAA4D;AACjG,kBAAkB,mBAAO,CAAC,iFAA0B;;AAEpD,8CAA8C,oCAAoC;AAClF;;AAEA;AACA;AACA,IAAI,kEAAkE;AACtE;AACA;AACA;AACA,CAAC;;;;;;;;;;;ACfD,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,kBAAkB,mBAAO,CAAC,iFAA0B;AACpD,cAAc,mBAAO,CAAC,2EAAuB;AAC7C,sBAAsB,mBAAO,CAAC,6FAAgC;AAC9D,qCAAqC,mBAAO,CAAC,+HAAiD;AAC9F,qBAAqB,mBAAO,CAAC,yFAA8B;;AAE3D;AACA;AACA,IAAI,kDAAkD;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;ACvBD,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,YAAY,mBAAO,CAAC,qEAAoB;AACxC,0BAA0B,8JAAgE;;AAE1F;AACA,8CAA8C,wCAAwC;;AAEtF;AACA;AACA,IAAI,2DAA2D;AAC/D;AACA,CAAC;;;;;;;;;;;ACXD,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,YAAY,mBAAO,CAAC,qEAAoB;AACxC,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,2BAA2B,mBAAO,CAAC,yGAAsC;AACzE,+BAA+B,mBAAO,CAAC,2GAAuC;;AAE9E,8CAA8C,0BAA0B;;AAExE;AACA;AACA,IAAI,4FAA4F;AAChG;AACA;AACA;AACA,CAAC;;;;;;;;;;;;ACdD,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,YAAY,mBAAO,CAAC,qEAAoB;AACxC,eAAe,mBAAO,CAAC,6EAAwB;;AAE/C;AACA;AACA,8CAA8C,mBAAmB;;AAEjE;AACA;AACA,IAAI,2DAA2D;AAC/D;AACA;AACA;AACA,CAAC;;;;;;;;;;;ACdD,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,YAAY,mBAAO,CAAC,qEAAoB;AACxC,eAAe,mBAAO,CAAC,6EAAwB;;AAE/C;AACA;AACA,8CAA8C,eAAe;;AAE7D;AACA;AACA,IAAI,2DAA2D;AAC/D;AACA;AACA;AACA,CAAC;;;;;;;;;;;ACdD,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,YAAY,mBAAO,CAAC,qEAAoB;AACxC,eAAe,mBAAO,CAAC,6EAAwB;;AAE/C;AACA;AACA,8CAA8C,eAAe;;AAE7D;AACA;AACA,IAAI,2DAA2D;AAC/D;AACA;AACA;AACA,CAAC;;;;;;;;;;;ACdD,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,SAAS,mBAAO,CAAC,+EAAyB;;AAE1C;AACA;AACA,IAAI,8BAA8B;AAClC;AACA,CAAC;;;;;;;;;;;ACPD,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,iBAAiB,mBAAO,CAAC,iFAA0B;AACnD,YAAY,mBAAO,CAAC,qEAAoB;;AAExC,8CAA8C,gBAAgB;;AAE9D;AACA;AACA,IAAI,2DAA2D;AAC/D;AACA;AACA;AACA,CAAC;;;;;;;;;;;;ACbY;AACb,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,kBAAkB,mBAAO,CAAC,iFAA0B;AACpD,aAAa,mBAAO,CAAC,6HAAgD;AACrE,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,oBAAoB,mBAAO,CAAC,yFAA8B;AAC1D,qBAAqB,mBAAO,CAAC,yGAAsC;AACnE,+BAA+B,sJAA4D;;AAE3F;AACA;AACA;AACA,MAAM,+CAA+C;AACrD;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA,GAAG;AACH;;;;;;;;;;;;ACtBa;AACb,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,kBAAkB,mBAAO,CAAC,iFAA0B;AACpD,aAAa,mBAAO,CAAC,6HAAgD;AACrE,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,oBAAoB,mBAAO,CAAC,yFAA8B;AAC1D,qBAAqB,mBAAO,CAAC,yGAAsC;AACnE,+BAA+B,sJAA4D;;AAE3F;AACA;AACA;AACA,MAAM,+CAA+C;AACrD;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA,GAAG;AACH;;;;;;;;;;;ACtBA,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,eAAe,2HAAkD;AACjE,eAAe,mBAAO,CAAC,2EAAuB;AAC9C,YAAY,mBAAO,CAAC,qEAAoB;;AAExC;AACA;AACA,8CAA8C,wBAAwB;;AAEtE;AACA;AACA,IAAI,4EAA4E;AAChF;AACA;AACA;AACA,CAAC;;;;;;;;;;;AChBD,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,eAAe,2HAAkD;AACjE,eAAe,mBAAO,CAAC,2EAAuB;AAC9C,YAAY,mBAAO,CAAC,qEAAoB;;AAExC;AACA;AACA,8CAA8C,WAAW;;AAEzD;AACA;AACA,IAAI,4EAA4E;AAChF;AACA;AACA;AACA,CAAC;;;;;;;;;;;AChBD,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,qBAAqB,mBAAO,CAAC,yGAAsC;;AAEnE;AACA;AACA,IAAI,8BAA8B;AAClC;AACA,CAAC;;;;;;;;;;;ACPD,4BAA4B,mBAAO,CAAC,qGAAoC;AACxE,eAAe,mBAAO,CAAC,2EAAuB;AAC9C,eAAe,mBAAO,CAAC,2FAA+B;;AAEtD;AACA;AACA;AACA,qDAAqD,cAAc;AACnE;;;;;;;;;;;ACRA,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,cAAc,qHAA8C;;AAE5D;AACA;AACA,IAAI,8BAA8B;AAClC;AACA;AACA;AACA,CAAC;;;;;;;;;;;ACTD,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,+BAA+B,mBAAO,CAAC,+FAAiC;;AAExE;AACA;AACA,IAAI,8DAA8D;AAClE;AACA,CAAC;;;;;;;;;;;ACPD,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,6BAA6B,mBAAO,CAAC,2FAA+B;;AAEpE;AACA;AACA,IAAI,0DAA0D;AAC9D;AACA,CAAC;;;;;;;;;;;;ACPY;AACb,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,gBAAgB,mBAAO,CAAC,+EAAyB;AACjD,iCAAiC,mBAAO,CAAC,uGAAqC;AAC9E,cAAc,mBAAO,CAAC,yEAAsB;AAC5C,cAAc,mBAAO,CAAC,yEAAsB;;AAE5C;AACA;AACA,IAAI,+BAA+B;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B;AAC5B;AACA,SAAS;AACT;AACA;AACA,4BAA4B;AAC5B;AACA,SAAS;AACT,OAAO;AACP;AACA,KAAK;AACL;AACA;AACA;AACA,CAAC;;;;;;;;;;;;AC1CY;AACb,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,gBAAgB,mBAAO,CAAC,+EAAyB;AACjD,iBAAiB,mBAAO,CAAC,mFAA2B;AACpD,iCAAiC,mBAAO,CAAC,uGAAqC;AAC9E,cAAc,mBAAO,CAAC,yEAAsB;AAC5C,cAAc,mBAAO,CAAC,yEAAsB;;AAE5C;;AAEA;AACA;AACA,IAAI,+BAA+B;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA,KAAK;AACL;AACA;AACA;AACA,CAAC;;;;;;;;;;;;AC7CY;AACb,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,cAAc,mBAAO,CAAC,yEAAsB;AAC5C,oBAAoB,mBAAO,CAAC,+GAAyC;AACrE,YAAY,mBAAO,CAAC,qEAAoB;AACxC,iBAAiB,mBAAO,CAAC,mFAA2B;AACpD,yBAAyB,mBAAO,CAAC,iGAAkC;AACnE,qBAAqB,mBAAO,CAAC,yFAA8B;AAC3D,eAAe,mBAAO,CAAC,2EAAuB;;AAE9C;AACA;AACA,4CAA4C,oBAAoB,eAAe,gBAAgB,aAAa;AAC5G,CAAC;;AAED;AACA;AACA,IAAI,iEAAiE;AACrE;AACA;AACA;AACA;AACA;AACA,iEAAiE,WAAW;AAC5E,QAAQ;AACR;AACA,iEAAiE,UAAU;AAC3E,QAAQ;AACR;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA,2DAA2D,cAAc;AACzE;AACA;;;;;;;;;;;;ACtCa;AACb,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,cAAc,mBAAO,CAAC,yEAAsB;AAC5C,aAAa,mBAAO,CAAC,uEAAqB;AAC1C,iBAAiB,mBAAO,CAAC,mFAA2B;AACpD,oBAAoB,mBAAO,CAAC,+GAAyC;AACrE,eAAe,mBAAO,CAAC,2EAAuB;AAC9C,kBAAkB,mBAAO,CAAC,mFAA2B;AACrD,qBAAqB,mBAAO,CAAC,yGAAsC;AACnE,qBAAqB,mBAAO,CAAC,6FAAgC;AAC7D,iBAAiB,mBAAO,CAAC,iFAA0B;AACnD,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,gBAAgB,mBAAO,CAAC,+EAAyB;AACjD,iBAAiB,mBAAO,CAAC,iFAA0B;AACnD,oBAAoB,mBAAO,CAAC,uFAA6B;AACzD,cAAc,mBAAO,CAAC,yEAAsB;AAC5C,kCAAkC,mBAAO,CAAC,uHAA6C;AACvF,yBAAyB,mBAAO,CAAC,iGAAkC;AACnE,WAAW,4FAAgC;AAC3C,gBAAgB,mBAAO,CAAC,6EAAwB;AAChD,qBAAqB,mBAAO,CAAC,yFAA8B;AAC3D,uBAAuB,mBAAO,CAAC,+FAAiC;AAChE,iCAAiC,mBAAO,CAAC,uGAAqC;AAC9E,cAAc,mBAAO,CAAC,yEAAsB;AAC5C,0BAA0B,mBAAO,CAAC,uFAA6B;AAC/D,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,sBAAsB,mBAAO,CAAC,6FAAgC;AAC9D,iBAAiB,mBAAO,CAAC,6FAAgC;AACzD,cAAc,mBAAO,CAAC,uFAA6B;AACnD,iBAAiB,mBAAO,CAAC,6FAAgC;;AAEzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA4D,aAAa;AACzE;AACA,uBAAuB,aAAa,gBAAgB,aAAa;AACjE;AACA;AACA;AACA,2CAA2C,aAAa;AACxD;AACA;AACA;AACA,CAAC;;AAED;AACA,0DAA0D,aAAa;AACvE,CAAC;;AAED;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA,YAAY;AACZ,UAAU;AACV,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,eAAe;AACnB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,OAAO;AACP;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,OAAO;AACP,MAAM;AACN;AACA;AACA;AACA;AACA,IAAI;AACJ,qBAAqB,aAAa;AAClC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,OAAO,IAAI,cAAc;;AAEzB;AACA,wFAAwF,cAAc;AACtG;;AAEA;AACA;AACA;AACA,MAAM,gBAAgB;;AAEtB;AACA;AACA;AACA;AACA;AACA;;AAEA,IAAI,0CAA0C;AAC9C;AACA,CAAC;;AAED;AACA;;AAEA;;AAEA;AACA,IAAI,6CAA6C;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED,IAAI,wDAAwD;AAC5D;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED,IAAI,0DAA0D;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA;AACA,CAAC;;;;;;;;;;;ACxYD,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,iBAAiB,mBAAO,CAAC,mFAA2B;AACpD,gBAAgB,mBAAO,CAAC,+EAAyB;AACjD,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,YAAY,mBAAO,CAAC,qEAAoB;;AAExC;AACA;;AAEA;AACA;AACA,4BAA4B,aAAa;AACzC,CAAC;;AAED;AACA;AACA,IAAI,gEAAgE;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;ACxBD,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,iBAAiB,mBAAO,CAAC,mFAA2B;AACpD,gBAAgB,mBAAO,CAAC,+EAAyB;AACjD,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,aAAa,mBAAO,CAAC,qFAA4B;AACjD,WAAW,mBAAO,CAAC,qFAA4B;AAC/C,YAAY,mBAAO,CAAC,qEAAoB;;AAExC;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,yCAAyC,aAAa;AACtD,CAAC;AACD;AACA,gCAAgC,aAAa;AAC7C,CAAC;AACD;;AAEA,IAAI,6DAA6D;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;A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B;AAC/C,qBAAqB,mBAAO,CAAC,mFAA2B;AACxD,kCAAkC,mBAAO,CAAC,uHAA6C;AACvF,YAAY,mBAAO,CAAC,qEAAoB;AACxC,sBAAsB,mBAAO,CAAC,6FAAgC;AAC9D,yBAAyB,mBAAO,CAAC,iGAAkC;AACnE,yBAAyB,mBAAO,CAAC,mGAAmC;AACpE,0BAA0B,mBAAO,CAAC,uFAA6B;AAC/D,cAAc,mBAAO,CAAC,yEAAsB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,CAAC;AACD;AACA,2BAA2B;AAC3B;AACA;AACA;AACA,+BAA+B;AAC/B;AACA;AACA,aAAa;AACb;AACA;AACA,WAAW;AACX,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI,oEAAoE;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,CAAC;;AAED;;;;;;;;;;;;AC9Ga;AACb,oCAAoC,mBAAO,CAAC,+HAAiD;AAC7F,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,6BAA6B,mBAAO,CAAC,2GAAuC;AAC5E,yBAAyB,mBAAO,CAAC,mGAAmC;AACpE,iBAAiB,mBAAO,CAAC,mGAAmC;;AAE5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;AC5CY;AACb,QAAQ,mBAAO,CAAC,uE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AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;AClCY;AACb,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,iBAAiB,mBAAO,CAAC,iFAA0B;AACnD,6BAA6B,mBAAO,CAAC,+FAAiC;;AAEtE;AACA;AACA,IAAI,wEAAwE;AAC5E;AACA;AACA;AACA,CAAC;;;;;;;;;;;;ACXY;AACb,oCAAoC,mBAAO,CAAC,+HAAiD;AAC7F,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,6BAA6B,mBAAO,CAAC,2GAAuC;AAC5E,yBAAyB,mBAAO,CAAC,iGAAkC;AACnE,yBAAyB,mBAAO,CAAC,mGAAmC;AACpE,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,qBAAqB,mBAAO,CAAC,mGAAmC;AAChE,iBAAiB,mBAAO,CAAC,iFAA0B;AACnD,oBAAoB,mBAAO,CAAC,qGAAoC;AAChE,YAAY,mBAAO,CAAC,qEAAoB;;AAExC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gFAAgF;AAChF;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,IAAI;;AAEJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;A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ACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mDAAmD;AACnD,uBAAuB,yCAAyC,UAAU;AAC1E,GAAG;AACH,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yFAAyF;AACzF;AACA,MAAM;AACN;AACA,oDAAoD,gDAAgD;AACpG,MAAM;AACN,IAAI;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+EAA+E,iCAAiC;AAChH;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,iFAAiF,cAAc;AAC/F;AACA;AACA;;AAEA,IAAI,wEAAwE;AAC5E;AACA,CAAC;;AAED;AACA;AACA,CAAC;;AAED,IAAI,oDAAoD;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,2BAA2B,oBAAoB;AAC/C,2BAA2B;AAC3B,CAAC;;AAED,IAAI,0EAA0E;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED,IAAI,sDAAsD;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA,I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ChD,aAAa,mBAAO,CAAC,qFAA4B;AACjD,+BAA+B,mBAAO,CAAC,+GAAyC;AAChF,kBAAkB,mBAAO,CAAC,mFAA2B;AACrD,wBAAwB,mBAAO,CAAC,iGAAkC;AAClE,sBAAsB,mBAAO,CAAC,6FAAgC;;AAE9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,+EAA+E,EAAE,EAAE,cAAc;AACjG;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,6BAA6B,aAAa;AAC1C;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,6DAA6D;AACtF;AACA,QAAQ,6DAA6D,uCAAuC;AAC5G,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,+CAA+C;AACxE;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,wBAAwB;AACnC;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,wBAAwB;AACnC;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,wBAAwB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,sBAAsB;AACrD;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,2BAA2B;AACpD;AACA,6BAA6B,2BAA2B;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,CAAC,IAAI,kBAAkB;;AAEvB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ,CAAC,IAAI,kBAAkB;;AAEvB;;AAEA,IAAI,uCAAuC;AAC3C;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yEAAyE;AACzE;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,MAAM;AACN;;AAEA;AACA,QAAQ,8CAA8C;AACtD;AACA,8FAA8F;AAC9F;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,kGAAkG;AAClG;;AAEA;AACA;;AAEA,QAAQ,4BAA4B;AACpC;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;;;;;;;;;;;;AC9Wa;AACb;AACA,mBAAO,CAAC,2FAA+B;AACvC,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,kBAAkB,mBAAO,CAAC,iFAA0B;AACpD,qBAAqB,mBAAO,CAAC,+EAAyB;AACtD,aAAa,mBAAO,CAAC,uEAAqB;AAC1C,uBAAuB,mBAAO,CAAC,2GAAuC;AACtE,eAAe,mBAAO,CAAC,2EAAuB;AAC9C,iBAAiB,mBAAO,CAAC,iFAA0B;AACnD,UAAU,mBAAO,CAAC,iEAAkB;AACpC,aAAa,mBAAO,CAAC,qFAA4B;AACjD,gBAAgB,mBAAO,CAAC,+EAAyB;AACjD,aAAa,uHAA+C;AAC5D,cAAc,mBAAO,CAAC,2GAAuC;AAC7D,gBAAgB,mBAAO,CAAC,6EAAwB;AAChD,qBAAqB,mBAAO,CAAC,6FAAgC;AAC7D,4BAA4B,mBAAO,CAAC,iGAAkC;AACtE,0BAA0B,mBAAO,CAAC,uFAA6B;;AAE/D;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,oBAAoB,2BAA2B;AAC/C;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,qBAAqB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,kBAAkB,qBAAqB;AACvC;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,kBAAkB,wBAAwB;AAC1C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,WAAW;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,oBAAoB,WAAW;AAC/B;AACA;AACA,MAAM;AACN;AACA,IAAI;AACJ;AACA;AACA,oBAAoB,WAAW;AAC/B;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;;AAEA;AACA,wCAAwC;AACxC;AACA,CAAC;AACD,oCAAoC;AACpC,oBAAoB,QAAQ;AAC5B,CAAC;AACD,wCAAwC;AACxC,oBAAoB;AACpB,CAAC;;AAED;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA,YAAY;AACZ;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,UAAU;;AAEV;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;;AAEV;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;;AAEV;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;;AAEV;AACA;AACA;AACA;AACA;AACA,0BAA0B,6BAA6B;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,UAAU;;AAEV;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,UAAU;;AAEV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ,UAAU;AACV;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,UAAU;AACV;AACA;AACA,UAAU;AACV;AACA;AACA,UAAU;;AAEV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;;AAEV;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,UAAU;AACV;AACA,UAAU;;AAEV;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,UAAU;;AAEV;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,aAAa;AACpD;AACA;AACA;AACA;AACA,uCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,WAAW;AACX;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,uBAAuB;AAC7C;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,uBAAuB;AAC7C;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA,CAAC,IAAI,kBAAkB;;AAEvB;AACA;AACA;AACA;AACA,CAAC,IAAI,kBAAkB;;AAEvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;;AAEA,IAAI,2DAA2D;AAC/D;AACA,CAAC;;;;;;;;;;;;AC9+BY;AACb,QAAQ,mBAAO,CAAC,uEAAqB;;AAErC;AACA;AACA,IAAI,8CAA8C;AAClD;AACA;AACA;AACA,CAAC;;;;;;;;;;;ACTD,mBAAO,CAAC,yEAAsB;AAC9B,mBAAO,CAAC,iGAAkC;AAC1C,mBAAO,CAAC,uGAAqC;AAC7C,mBAAO,CAAC,mGAAmC;AAC3C,mBAAO,CAAC,mHAA2C;AACnD,mBAAO,CAAC,2FAA+B;AACvC,mBAAO,CAAC,qFAA4B;AACpC,mBAAO,CAAC,6FAAgC;AACxC,mBAAO,CAAC,yFAA8B;AACtC,mBAAO,CAAC,uFAA6B;AACrC,mBAAO,CAAC,yFAA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;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY;AACZ;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,sCAAsC;;AAEtC,sCAAsC;;AAEtC;AACA,mEAAmE;;AAEnE;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;;;AAGH;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA,sBAAsB,oBAAoB;AAC1C;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC;AACD;AACA,CAAC;AACD;AACA;AACA,CAAC;AACD,kBAAkB,qFAAkB;AACpC;AACA,CAAC;;AAED;AACA;;AAEA,IAAI,kDAAW;AACf,oCAAoC;AACpC;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;;;AAGA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,YAAY;AACZ;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA,wBAAwB;;AAExB,MAAM,KAAoC;AAC1C;AACA,IAAI;;;AAGJ;AACA;AACA,IAAI;;;AAGJ,kBAAkB,8BAA8B;AAChD,iEAAiE;;AAEjE;AACA,IAAI;AACJ;;;AAGA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,IAAI,kDAAW;AACf;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA,qDAAqD;AACrD;AACA;;AAEA;AACA;AACA,IAAI;;;AAGJ,2CAA2C;;AAE3C,MAAM,KAAoC;AAC1C;AACA,IAAI;;;AAGJ;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA,IAAI;AACJ;AACA,gDAAgD;;AAEhD,4EAA4E;;AAE5E,0CAA0C;;AAE1C;AACA;AACA;AACA;AACA,IAAI;;;AAGJ,6BAA6B;;AAE7B;AACA;AACA;;AAEyE;;;;;;;;;;;;;;;;;;;;;;;;;;;AC5jBf;AACX;AACV;AACF;AACI;;AAEvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,eAAe,2EAAQ,GAAG;AAC1B;;AAEA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN,0BAA0B,yDAAe;AACzC;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uGAAuG,oDAAU;AACjH;;AAEA;AACA;;AAEA;AACA,IAAI,KAAqC,GAAG,qDAAO,mEAAmE,CAAM;AAC5H;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV,UAAU,KAAqC,GAAG,qDAAO,6FAA6F,CAAM;AAC5J;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA,wEAAwE,aAAa;AACrF;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qCAAqC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA,eAAe,KAAqC,GAAG,uDAAS,yCAAyC,CAAgB;AACzH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,iCAAiC;AACjC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI,KAAqC,GAAG,qDAAO,oNAAoN,CAAM;AAC7Q;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,IAAI,2EAAQ;;AAEZ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX,UAAU;AACV;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA,uCAAuC;AACvC;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,uCAAuC;;AAEvC;AACA;AACA;;AAEA;AACA,IAAI,KAAqC,GAAG,qDAAO,uNAAuN,kBAAkB,CAAM;AAClS;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,QAAQ;AACR,QAAQ,KAAqC,GAAG,qDAAO,2GAA2G,CAAM;AACxK;AACA;AACA,KAAK;AACL;;AAEA;AACA,IAAI,KAAqC,GAAG,qDAAO,0NAA0N,kBAAkB,CAAM;AACrS;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,QAAQ;AACR,QAAQ,KAAqC,GAAG,qDAAO,8GAA8G,CAAM;AAC3K;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAe,KAAqC,GAAG,uDAAS,sCAAsC,CAAgB;AACtH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI,KAAqC,GAAG,qDAAO,oNAAoN,CAAM;AAC7Q;AACA;AACA;;AAEA;;AAEA;AACA,IAAI,2EAAQ;;AAEZ;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,iFAAiF;;AAEjF,uDAAuD,uBAAuB;;AAE9E;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX,UAAU;AACV;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA,uCAAuC;AACvC;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;AACA;AACA,gDAAgD;;AAEhD;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,IAAI,KAAqC,GAAG,qDAAO,uDAAuD,kBAAkB,CAAM;AAClI;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,QAAQ;AACR,QAAQ,KAAqC,GAAG,qDAAO,iDAAiD,uDAAuD,CAAM;AACrK;AACA;AACA,KAAK;AACL;;AAEA;AACA,IAAI,KAAqC,GAAG,qDAAO,0DAA0D,kBAAkB,CAAM;AACrI;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;;AAEA;AACA,IAAI,KAAqC,GAAG,qDAAO,uFAAuF,CAAM;AAChJ;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,IAAI,2EAAQ;;AAEZ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG,GAAG;;AAEN;;AAEA;AACA,IAAI,KAAqC,GAAG,qDAAO,uNAAuN,kBAAkB,CAAM;AAClS;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;;AAEA;AACA,IAAI,KAAqC,GAAG,qDAAO,0NAA0N,kBAAkB,CAAM;AACrS;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,QAAQ;AACR;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEkI;;;;;;;;;;;;ACt5BrH;;AAEb,cAAc,mBAAO,CAAC,kDAAU;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,oBAAoB,iBAAiB;AACrC;;AAEA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;ACtGA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,+DAAe,kBAAkB;;;;;;;;;;;AClBjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAM,IAA0C;AAChD,IAAI,iCAAO,EAAE,oCAAE,OAAO;AAAA;AAAA;AAAA,kGAAE;AACxB,GAAG,KAAK,EAIL;AACH,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,yBAAyB;AACtC,aAAa,iBAAiB;AAC9B,aAAa,QAAQ;AACrB,eAAe,QAAQ;AACvB;AACA;AACA,sDAAsD;AACtD;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;;AAEA,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;;;AAIL;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,aAAa,UAAU;AACvB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA,wDAAwD;AACxD,sDAAsD;AACtD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;;;AAIL;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA,2CAA2C;AAC3C,4CAA4C;AAC5C,wCAAwC;AACxC,mDAAmD;AACnD;AACA;AACA;AACA,KAAK;;;;AAIL;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA,6CAA6C;AAC7C,gDAAgD;AAChD,2CAA2C;AAC3C,qDAAqD;AACrD;AACA;AACA;AACA,KAAK;;;AAGL;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA,2CAA2C;AAC3C,8CAA8C;AAC9C,yCAAyC;AACzC,qDAAqD;AACrD,4CAA4C;AAC5C,6CAA6C;AAC7C,yCAAyC;AACzC,0DAA0D;AAC1D;AACA;AACA;;AAEA;;AAEA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;;;;AAIL;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,SAAS;AACtB;AACA,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA,sDAAsD;AACtD,4DAA4D;AAC5D;AACA;AACA;AACA;AACA;AACA;;AAEA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA,eAAe,OAAO;AACtB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,KAAK;;;;AAIL;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,SAAS;AACtB;AACA,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA,uDAAuD;AACvD,uDAAuD;AACvD,8CAA8C;AAC9C;AACA;AACA;;AAEA;AACA;AACA;;AAEA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA,KAAK;;;;AAIL;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,SAAS;AACtB;AACA,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA,sDAAsD;AACtD,4DAA4D;AAC5D;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;;;;AAIL;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA,wDAAwD;AACxD,8DAA8D;AAC9D;AACA;AACA;;AAEA;AACA,KAAK;;;;AAIL;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA,uDAAuD;AACvD,uDAAuD;AACvD;AACA;AACA;AACA,KAAK;;;;AAIL;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA,sDAAsD;AACtD,8DAA8D;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA,eAAe,OAAO;AACtB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,KAAK;;;;AAIL;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA,8DAA8D;AAC9D;AACA;AACA;;AAEA;AACA,KAAK;;;;AAIL;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA,sDAAsD;AACtD;AACA;AACA;AACA;;AAEA;AACA,KAAK;;;;AAIL;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA,0DAA0D;AAC1D;AACA;AACA;AACA;;AAEA;AACA,KAAK;;;;AAIL;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,SAAS;AACtB;AACA,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA,yDAAyD;AACzD,+DAA+D;AAC/D;AACA;AACA;AACA;;AAEA;AACA,KAAK;;;;AAIL;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA,iDAAiD;AACjD;AACA;AACA;AACA;AACA;;AAEA,aAAa,OAAO;AACpB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,OAAO;AACpB,eAAe;AACf;AACA;AACA;AACA;AACA,uFAAuF;AACvF;AACA;AACA;AACA;;AAEA,YAAY,OAAO;AACnB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;;;;AC5jCD,qGAAqG,qBAAqB,mBAAmB;;AAEtI;;AAEP,+DAAe,SAAS,EAAC;;;;;;;;;;;;;;ACJoB;;AAE7C;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY;AACZ;;AAEA;AACA;;AAEA;AACA,gDAAgD,6DAAS;AACzD;AACA;;AAEA;AACA,+FAA+F;AAC/F;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB;;;AAGA;AACA;AACA;AACA;AACA,0BAA0B,sBAAsB;AAChD;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,yBAAyB,6DAAS,QAAQ;;AAE1C;AACA,sCAAsC;;AAEtC;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,+DAAe,SAAS,EAAC;;;;;;;;;;;;;;AC/Dc;;AAEvC,SAAS,iDAAgB;AACzB,SAAS,iDAAgB;AACzB,cAAc,iDAAgB;AAC9B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,oBAAoB,kBAAkB;AACtC;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,MAAM;;AAEN,IAAI;AACJ,6CAA6C;;AAE7C;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,+DAAe,WAAW,EAAC;;;;;;;;;;;;;;;AC3P+B;AAC3B;;AAE/B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,yCAAQ,CAAC,2EAAQ,GAAG;AACzC;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD,2EAAQ,GAAG;AACnE;AACA,KAAK;AACL;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC;;AAED;;AAEA;AACA;AACA;;AAEA,kBAAkB,kBAAkB;AACpC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,qCAAqC,2EAAQ,GAAG;AAChD;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,yCAAyC,2EAAQ,GAAG;AACpD;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,+DAAe,SAAS,EAAC;;;;;;;;;;;;;;;ACxLiC;AACvB;;AAEnC;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,MAAM,KAAqC,GAAG,qDAAO,uIAAuI,CAAM;AAClM;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,oBAAoB,4BAA4B;AAChD;;AAEA,sBAAsB,4BAA4B;AAClD;AACA,oCAAoC;;AAEpC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,4BAA4B,2EAAQ,GAAG;AACvC;;AAEA,KAAK;AACL;AACA;;AAEA,kBAAkB,2EAAQ,GAAG;AAC7B;AACA;;AAEA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,oEAAoE;AACpE;;AAEA,uEAAuE;;AAEvE;AACA,iDAAiD,2EAAQ,GAAG;AAC5D;AACA,SAAS;AACT,QAAQ;AACR;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,+DAAe,SAAS,EAAC;;;;;;;;;;;;;AChHzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,sBAAsB,kBAAkB;AACxC;AACA;;AAEA;AACA;AACA;AACA;;AAEA,+DAAe,YAAY,EAAC;;;;;;;;;;;;;;;AC3BO;AACF;;AAEjC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB,+CAAU,SAAS;AACpC;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAQ;;;AAGR;AACA;AACA,KAAK;AACL;AACA,4BAA4B;;AAE5B,wCAAwC;AACxC;;AAEA;AACA;AACA;AACA;;AAEA,YAAY,IAAsC;AAClD;AACA;AACA,cAAc,KAAqC,GAAG,qDAAO,4EAA4E,CAAM;AAC/I;AACA;AACA;AACA;AACA,QAAQ;;;AAGR,4CAA4C;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,+DAAe,cAAc,EAAC;;;;;;;;;;;;;;;ACnEqD;AAClD;;AAEjC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,kBAAkB,8DAAkB;AACpC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,0BAA0B,6DAAiB;AAC3C;AACA;AACA,6BAA6B,0DAAc,gBAAgB,+CAAU;AACrE;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,WAAW,0DAAc,OAAO,+CAAU;AAC1C;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,+DAAe,iBAAiB,EAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC1DyB;AAClB;AACL;AAC+B;AACI;AACgB;AACc;;AAEpG,gCAAgC;AAChC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,yBAAyB;;AAEzB;AACA,IAAI,KAAqC,GAAG,qDAAO,wCAAwC,CAAM;AACjG;;AAEA;AACA;;AAEA;AACA;;AAEA,kBAAkB,kBAAkB;AACpC;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,mDAAmD;AACnD,gDAAgD;AAChD,4EAA4E;AAC5E,yDAAyD;AACzD;AACA;AACA;AACA;AACA;;AAEA;AACA,qBAAqB;;AAErB;AACA,oBAAoB,kBAAkB;AACtC;AACA;AACA;AACA;AACA,IAAI,mCAAmC;;;AAGvC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,sBAAsB,gBAAgB;AACtC;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B;;AAE1B;AACA,qBAAqB,aAAa,YAAY;AAC9C;AACA,0BAA0B,0BAA0B;AACpD;;AAEA;AACA;;AAEA;AACA;AACA,oEAAoE;AACpE;AACA;AACA;AACA,MAAM;AACN,wBAAwB,YAAY;AACpC;AACA;;AAEA;AACA;AACA,oEAAoE;AACpE;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,kEAAkE;AAClE;AACA,IAAI;;;AAGJ,qDAAqD;;AAErD;AACA;AACA;AACA,iCAAiC,kCAAkC;AACnE;;AAEA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C;AAC9C;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA,sDAAsD;;AAEtD;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,wCAAwC;;AAExC,sDAAsD;;AAEtD;AACA,wCAAwC,kCAAkC;;AAE1E;AACA,sEAAsE;AACtE;AACA;;AAEA;;AAEA;AACA,MAAM,KAAqC,GAAG,qDAAO,0EAA0E,CAAM;AACrI;;AAEA;AACA;;AAEA;AACA,CAAC;AACD;AACA;AACA;AACA,EAAE,iFAAc;;AAEhB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN,4BAA4B,yFAAsB,CAAC,yFAAsB;AACzE;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,wDAAwD;AACxD;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,sBAAsB,2EAAQ,GAAG;AACjC;AACA,KAAK;AACL;AACA;;AAEA,EAAE,+EAAY;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mEAAmE;;AAEnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD;;AAEhD;AACA;AACA,8BAA8B,2EAAQ,GAAG;AACzC;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,8BAA8B;AAC9B;;AAEA;AACA,sCAAsC,qBAAqB;AAC3D;;AAEA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA,MAAM,KAAqC,GAAG,qDAAO,6CAA6C,CAAM;AACxG;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,2EAAQ,GAAG;AACzC;AACA,KAAK;;AAEL;AACA,yCAAyC,2EAAQ,GAAG;AACpD;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,2CAA2C;AAC3C;;AAEA;AACA;AACA,wCAAwC,iBAAiB;AACzD;;AAEA;AACA,CAAC;AACD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAM,KAAqC,GAAG,qDAAO,8EAA8E,CAAM;AACzI;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,EAAE,iFAAc;;AAEhB;AACA;;AAEA,wEAAwE,aAAa;AACrF;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,2EAAQ,GAAG;AACjC;AACA,KAAK;AACL;AACA;;AAEA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;;AAEA,0BAA0B,2BAA2B;AACrD;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;;AAEA,0BAA0B,2BAA2B;AACrD,sDAAsD;AACtD;AACA;;AAEA;AACA;;AAEA,2CAA2C;AAC3C;;AAEA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,kBAAkB,2EAAQ;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,gBAAgB;AACrB;AACA;;;AAGA;;AAEA;AACA;AACA,MAAM;AACN;;;AAGA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,4CAA4C;AAC5C;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,+DAA+D;;AAE/D,+DAA+D;;AAE/D;AACA,MAAM;AACN,+DAA+D;;AAE/D;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN,0BAA0B,2BAA2B;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,sCAAsC;;AAEtC;AACA;AACA;AACA;;AAEA;AACA;AACA,kDAAkD;;AAElD;AACA;AACA,iEAAiE;;AAEjE;AACA;AACA,qCAAqC;AACrC;;AAEA;AACA;AACA;AACA,QAAQ;;;AAGR;AACA;AACA,uCAAuC;AACvC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,wBAAwB,2BAA2B;AACnD;AACA,wCAAwC;;AAExC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,2EAAQ,GAAG;AAC9B;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA,0BAA0B;;AAE1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,4BAA4B;AAC5B;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,uCAAuC;AACvC;;AAEA,kCAAkC;AAClC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,oBAAoB,uCAAuC;AAC3D;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,oBAAoB,wCAAwC;AAC5D;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oBAAoB,yCAAyC;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oBAAoB,yCAAyC;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oBAAoB,mCAAmC;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,oBAAoB,wCAAwC;AAC5D;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,+CAA+C;;AAE/C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,UAAU,KAAqC,GAAG,qDAAO,kDAAkD,CAAM;AACjH;AACA;;AAEA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;;;AAGN,oBAAoB,qBAAqB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,qCAAqC;AACrC;AACA,kBAAkB,gGAA6B;;AAE/C;;AAEA,oBAAoB,0BAA0B;AAC9C;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,EAAE,+EAAY;AACd;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oDAAoD;AACpD;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA,MAAM,KAAqC,GAAG,qDAAO,yFAAyF,CAAM;AACpJ;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;;;AAGN;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI;AACJ,IAAI,KAAqC,GAAG,qDAAO,+GAA+G,CAAM;AACxK;AACA;;AAEA;AACA;AACA;AACA;AACA,uCAAuC;AACvC;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA,kBAAkB,qBAAqB;AACvC;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA,oCAAoC,QAAQ;AAC5C;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA,kBAAkB,4BAA4B;AAC9C;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;;;AAGN;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;;;AAGJ;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;;;AAGA,IAAI,KAAqC,GAAG,qDAAO,yEAAyE,CAAM;AAClI;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;AACA;AACA,sFAAsF,KAAK,KAAqC,GAAG,qDAAO,sDAAsD,CAAM;AACtM;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA,IAAI;AACJ,IAAI,KAAqC,GAAG,qDAAO,kCAAkC,CAAM;AAC3F;AACA;;AAEA;AACA;;AAEA;AACA,4CAA4C;;AAE5C;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,4CAA4C;AAC5C;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mDAAmD;AACnD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA,mDAAmD;AACnD;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0DAA0D;AAC1D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oBAAoB,wBAAwB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,+EAA+E;;;AAG/E;AACA;AACA,SAAS;;AAET;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,+BAA+B;AAC/B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC;;AAED;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,gBAAgB,kDAAW;AAC3B;AACA;AACA;AACA;AACA,KAAK;;AAEL,oBAAoB,oBAAoB;AACxC;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,wBAAwB,2EAAQ,GAAG;AACnC;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,MAAM;;;AAGN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,uCAAuC,2EAAQ,GAAG;AAClD;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;;;AAGN,sBAAsB,2EAAQ,GAAG;AACjC;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,2EAA2E,aAAa;AACxF;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,IAAI,qDAAO;AACX;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,MAAM,qDAAO;AACb;AACA;;AAEA,EAAE,+EAAY;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,+DAAe,GAAG,EAAC;AAC0I;;;;;;;;;;;;;;;;;;AC/sEpH;AAC6B;AACnC;AACA;;AAEnC;AACA,sHAAsH,qBAAM,mBAAmB,qBAAM;;AAErJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA,IAAI,iFAAc;;AAElB;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,sBAAsB;AACtB;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;;AAEA,cAAc,IAAqC;AACnD,YAAY,qDAAO;AACnB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG,CAAC,4CAAS;;AAEb,0DAA0D,uCAAuC,qEAA2B;;AAE5H;AACA,IAAI,iFAAc;;AAElB;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW;AACX;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG,CAAC,4CAAS;;AAEb,qDAAqD,uCAAuC,0DAAgB;AAC5G;AACA;AACA;AACA;AACA;;AAEA,YAAY,gDAAmB;;AAE/B,+DAAe,KAAK,EAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC/K+H;AAC3G;AACjB;AACoB;AAC+C;AACzC;AACF;AACoB;AACT;;AAE3D;AACA,kBAAkB,kBAAkB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,oBAAoB,sBAAsB;AAC1C;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,cAAc,uBAAuB;AACrC;AACA;AACA;AACA;;AAEA;AACA;;AAEA,mCAAmC,gDAA4B;;AAE/D;AACA;AACA,YAAY;AACZ,6BAA6B;AAC7B,gCAAgC;AAChC,4BAA4B;AAC5B,+BAA+B;AAC/B,2BAA2B;AAC3B;AACA,GAAG;AACH;AACA,qBAAqB;AACrB,sCAAsC;AACtC,yCAAyC;AACzC,qCAAqC;AACrC,wCAAwC;AACxC,oCAAoC;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,uBAAuB,4DAAK;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA,wBAAwB,sBAAsB;AAC9C,KAAK,IAAI;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;;;AAGH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,oBAAoB,cAAc,WAAW;AAC7C;;AAEA;AACA;;AAEA,SAAS,iEAAY;AACrB;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL,GAAG;AACH;;AAEA,mCAAmC,iDAAU;AAC7C;AACA;AACA;;AAEA,SAAS,gDAA4B;AACrC;AACA,eAAe,6CAAI;AACnB,GAAG;AACH,CAAC;AACD,qCAAqC,iEAAU;;AAE/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,SAAS,gDAA4B,CAAC,8DAAO,kBAAkB,UAAU,gDAA4B;AACrG;AACA,GAAG;AACH;;AAEA;AACA,SAAS,gDAA4B,CAAC,8DAAO,kBAAkB,UAAU,gDAA4B;AACrG;AACA,GAAG;AACH;;AAEA;AACA,SAAS,gDAA4B,CAAC,8DAAO,kBAAkB,UAAU,gDAA4B;AACrG;AACA,GAAG;AACH;;AAEA;AACA,SAAS,gDAA4B,CAAC,8DAAO,kBAAkB,UAAU,gDAA4B;AACrG;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,gDAA4B;AACpD;AACA,GAAG;AACH,wBAAwB,gDAA4B;AACpD;AACA,GAAG;AACH,sBAAsB,gDAA4B;AAClD;AACA,GAAG;AACH,qBAAqB,gDAA4B;AACjD;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,QAAQ,IAAqC;AAC7C;AACA;AACA;AACA;AACA;;AAEA;AACA,0EAA0E,aAAa;AACvF;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG,gBAAgB;AACnB;;AAEA;AACA;AACA;AACA,wDAAwD,kDAAe,GAAG,4CAAS;AACnF;AACA,YAAY,6CAAM;AAClB;AACA;AACA,GAAG;AACH,SAAS,kDAAW;AACpB;AACA,GAAG;AACH;;AAEA,4BAA4B,iDAAU;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,sBAAsB,6CAAM;AAC5B;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH,EAAE,gDAAS;AACX;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA,qBAAqB,kDAAW;AAChC;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,EAAE,gDAAS;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH,SAAS,oDAAa,CAAC,wEAAiB;AACxC;AACA,GAAG,2BAA2B,oDAAa;AAC3C;AACA;AACA;AACA,GAAG;AACH,CAAC;;AAED;AACA;AACA;AACA,wBAAwB,mEAAS;AACjC,SAAS,iEAAY,YAAY;AACjC,4BAA4B;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;;AAEA,gBAAgB,6CAAM;;AAEtB,kBAAkB,+CAAQ;AAC1B;AACA;;AAEA,EAAE,gDAAS;AACX;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wBAAwB,yBAAyB;;AAEjD;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,sBAAsB,sBAAsB;AAC5C,GAAG,IAAI;AACP,SAAS,gDAA4B,CAAC,gEAAQ;AAC9C;AACA;AACA;AACA;AACA,GAAG,EAAE,gDAA4B,2BAA2B;AAC5D;AACA,eAAe,6CAAI;AACnB;AACA,GAAG,GAAG,gDAA4B;AAClC;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,cAAc,gDAA4B,oCAAoC;AACjF;AACA;AACA,eAAe,6CAAI;AACnB,GAAG,GAAG,gDAA4B;AAClC;AACA;AACA,GAAG,2DAA2D,gDAA4B;AAC1F;AACA,GAAG;AACH;;AAEA,kCAAkC,iEAAU;;AAE5C;AACA,yDAAyD;AACzD;AACA;AACA;AACA;AACA;AACA,4BAA4B,kEAAU;AACtC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL,+BAA+B;AAC/B;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA,CAAC;;AAED;AACA;;AAEA;AACA;AACA;AACA;;AAEA,0BAA0B,6CAAI;AAC9B;AACA,SAAS,gDAA4B;AACrC;AACA,GAAG;AACH;;AAEA,uCAAuC,uCAAmB;;AAE1D;AACA,cAAc,aAAoB;;AAElC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ,CAAC;;AAED;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mDAAmD;AACnD;AACA,SAAS;AACT,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA,0BAA0B;AAC1B;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA,QAAQ,KAAqC,sCAAsC,CAAM;AACzF;AACA;;AAEA;AACA;AACA;;AAEA;AACA,8BAA8B;AAC9B;AACA,aAAa;AACb;;AAEA;AACA;AACA,4BAA4B;AAC5B;AACA,WAAW;AACX;;AAEA,0BAA0B;AAC1B,OAAO;AACP,wBAAwB;AACxB;AACA,OAAO;AACP;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iDAAiD;AACjD;AACA,aAAa,eAAe;AAC5B,WAAW;AACX;AACA,OAAO;AACP;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC;AAChC;;AAEA,6CAA6C;AAC7C;AACA,aAAa,eAAe;AAC5B;AACA,aAAa;AACb,WAAW;AACX;AACA;AACA,WAAW;AACX;AACA,OAAO;AACP;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,qDAAqD;AACrD;AACA;AACA,WAAW;AACX,SAAS;;AAET;AACA;AACA;;AAEA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD;AACtD;;AAEA;AACA;;AAEA;AACA;AACA,wBAAwB,sBAAsB;AAC9C,KAAK,IAAI;AACT;AACA;AACA,aAAa,gDAA4B;AACzC;AACA;AACA;AACA,mBAAmB,6CAAI;AACvB,OAAO;AACP,eAAe,gDAA4B,iCAAiC;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP,KAAK;AACL,WAAW,gDAA4B;AACvC;AACA,KAAK,sBAAsB,uDAAY;AACvC;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,CAAC,CAAC,4CAAS;;AAEX;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,UAAU;AACrB,WAAW,QAAQ;AACnB,aAAa;AACb;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,iBAAiB;AAC5B,aAAa;AACb;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;AAED;AACA,yBAAyB,6CAAyB;AAClD,WAAW,gDAA4B;AACvC,aAAa,gDAA4B,uBAAuB;AAChE;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL,GAAG;;AAEH,MAAM,IAAqC;AAC3C;AACA;;AAEA,EAAE,8DAAoB;AACtB;AACA;;AAEA;AACA,SAAS,iDAAU;AACnB,CAAC;;AAE4F;AAC7F;;;;;;;;;;;;AClmCA;AACA;AACA;AACA;AACA;;AAEa;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB,QAAQ;AAC1B;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH,kCAAkC;AAClC;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,iBAAiB,sBAAsB;AACvC;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,oBAAoB;AACvC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;;;;ACzFA,cAAc,mBAAO,CAAC,4EAAS;;AAE/B;AACA;AACA;AACA;AACA,oBAAoB;AACpB,sBAAsB;AACtB,+BAA+B;AAC/B,6BAA6B;;AAE7B;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,SAAS;AACrB,YAAY,SAAS;AACrB,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAY,oBAAoB;AAChC,YAAY,oBAAoB;AAChC,YAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY;AACZ,YAAY;AACZ;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA,YAAY;AACZ,YAAY;AACZ;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,kBAAkB,mBAAmB;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,oBAAoB,mBAAmB;AACvC;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;;AAEA,wBAAwB,kBAAkB;AAC1C;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,QAAQ;AACpB,YAAY;AACZ;AACA;AACA,mCAAmC;AACnC;;AAEA;AACA;AACA;AACA,YAAY,QAAQ;AACpB,YAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,SAAS;AACrB,YAAY,SAAS;AACrB,YAAY;AACZ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,QAAQ;AACpB,YAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,SAAS;AACrB,YAAY,SAAS;AACrB,YAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA,oBAAoB,mBAAmB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAY,SAAS;AACrB,YAAY,SAAS;AACrB,YAAY,SAAS;AACrB,YAAY;AACZ;AACA;AACA;;AAEA,kBAAkB,iBAAiB;AACnC;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAY,SAAS;AACrB,YAAY,SAAS;AACrB,YAAY,SAAS;AACrB,YAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,iBAAiB;AAC7B,YAAY,iBAAiB;AAC7B,YAAY,iBAAiB;AAC7B,YAAY;AACZ;AACA;AACA;AACA,yBAAyB,SAAS;AAClC;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,kBAAkB,mBAAmB;AACrC;;AAEA;AACA;AACA,MAAM;AACN;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,4DAA4D;AAC3E;AACA,YAAY,u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ACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,QAAQ;;AAER;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,qCAAqC;AACrC,8BAA8B,mCAAmC;;AAEjE;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,MAAM;;;AAGN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;;AAEP,6CAA6C;AAC7C;;AAEA;AACA;AACA,wCAAwC;AACxC,iCAAiC,mCAAmC;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;;AAEA,eAAe;AACf;;AAEA;AACA;;AAEA;AACA;AACA,OAAO;;AAEP;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;;AAEP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,kDAAkD,cAAc;AAChE;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX,SAAS;AACT;;AAEA,kDAAkD,cAAc;AAChE;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX,SAAS;AACT;;AAEA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,OAAO;;AAEP;AACA;;AAEA,0CAA0C,OAAO;AACjD;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA,WAAW;AACX,SAAS;AACT;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,oFAAoF;AACpF;;AAEA;AACA;AACA,gBAAgB;AAChB;;AAEA;AACA;AACA,gBAAgB;AAChB;;AAEA;AACA;;AAEA;AACA;AACA,kBAAkB;AAClB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,sBAAsB,OAAO;AAC7B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,4BAA4B,QAAQ;AACpC;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,sBAAsB,wBAAwB;AAC9C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,OAAO;;AAEP;AACA,kBAAkB,mBAAmB;AACrC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,OAAO;AACP,MAAM;AACN;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;;AAEX;AACA;AACA,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;;AAEX;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;;AAEX;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,oBAAoB,iCAAiC;AACrD;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,gBAAgB;AAChB;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,gBAAgB;AAChB;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,WAAW;AACX;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,OAAO;;AAEP;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,OAAO;;AAEP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,2BAA2B;AAC7C;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,4BAA4B;AAC9C;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,iDAAiD,aAAa;;AAE9D,CAAC;;AAED,CAAC,EAAE,2FAA2F;AAC9F;AACA;AACA;AACA;AACA,sCAAsC;AACtC,CAAC,0DAA0D;;AAE3D;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;;AAE9B;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,gDAAgD,cAAc;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;;AAEA,gDAAgD,cAAc;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,2BAA2B,cAAc;AACzC;AACA;AACA,2BAA2B,kBAAkB;;AAE7C;AACA;AACA;AACA,wCAAwC,OAAO;AAC/C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA,SAAS;AACT,OAAO;;AAEP;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,oBAAoB,OAAO;AAC3B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,0BAA0B,QAAQ;AAClC;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,+CAA+C,aAAa;;AAE5D,CAAC;;AAED,CAAC,EAAE,kDAAkD;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uEAAuE;AACvE,MAAM;AACN,yFAAyF;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD;AACpD;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,gDAAgD;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uFAAuF,SAAS;AAChG,6DAA6D,SAAS;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6EAA6E;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,MAAM;AACN;AACA,yEAAyE;AACzE,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,OAAO;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,OAAO;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,EAAE;AACpD,sBAAsB;AACtB;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,SAAS;AAC/C;AACA;AACA,yCAAyC,SAAS;AAClD;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,SAAS;AAC/C,0DAA0D,SAAS;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD;AACjD;AACA;AACA;AACA,qEAAqE;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,SAAS;AAC9B;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA,qBAAqB,SAAS;AAC9B;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA,qBAAqB,SAAS;AAC9B;AACA;AACA;AACA;AACA,QAAQ;AACR,qBAAqB,UAAU;AAC/B;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,OAAO;AAC5C;AACA;AACA,wCAAwC,OAAO;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,SAAS;AAC/C,6EAA6E,UAAU;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,SAAS;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,uCAAuC,OAAO;AAC9C,iEAAiE,OAAO;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,OAAO;AAC5C,yDAAyD,OAAO;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,SAAS;AAC/C;AACA;AACA;AACA,yCAAyC,SAAS;AAClD;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA,mEAAmE;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA4D,OAAO;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;AACA,OAAO;AACP;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,WAAW;AACX;AACA,WAAW;AACX,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4EAA4E;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,OAAO;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,OAAO;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,OAAO;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAA0D;AAC1D;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD,wCAAwC;AAC/F;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,iFAAiF;AACjG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,SAAS;AACnC;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,OAAO;AACP;AACA;AACA,kBAAkB,UAAU;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAA0D;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,OAAO;AACzB;AACA;AACA;AACA,kBAAkB,OAAO;AACzB;AACA;AACA,iCAAiC,QAAQ;AACzC,0BAA0B,8BAA8B;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,OAAO;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,cAAc;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC;AACnC;AACA;AACA;AACA,QAAQ;AACR,mCAAmC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,+BAA+B,8BAA8B;AAC7D;AACA,gDAAgD;AAChD,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC;AACxC,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC;AACxC,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,gCAAgC,OAAO;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,iBAAiB,OAAO;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B;AAC5B,4BAA4B;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,OAAO;AACzD;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA,8BAA8B;AAC9B,QAAQ;AACR;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,4BAA4B;AAC5B;AACA;AACA;AACA,KAAK;AACL;AACA,MAAM;AACN,yBAAyB,OAAO;AAChC;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB,UAAU,QAAQ;AAClB,UAAU,QAAQ;AAClB;AACA,kBAAkB,QAAQ;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,8BAA8B;AACpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,8BAA8B;AACpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC;AACA;AACA;AACA,OAAO;AACP,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA,wBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,WAAW;AACX,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,QAAQ;AACR;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,OAAO;AACzB;AACA;AACA;AACA,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAA0D,OAAO,2DAA2D,iBAAiB,OAAO;AACpJ;AACA,0DAA0D,OAAO,2DAA2D,iBAAiB,OAAO;AACpJ;AACA,oDAAoD,OAAO,mDAAmD,iBAAiB,OAAO;AACtI;AACA;AACA;AACA,sBAAsB,OAAO;AAC7B;AACA;AACA,sBAAsB,OAAO;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,QAAQ;AACR;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,kBAAkB,OAAO;AACzB;AACA,oBAAoB,OAAO;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA,GAAG;AACH;AACA;AACA;AACA,kBAAkB,OAAO;AACzB,2BAA2B,OAAO;AAClC;AACA;AACA;AACA,kBAAkB,OAAO;AACzB;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,kBAAkB,OAAO;AACzB,4BAA4B,OAAO;AACnC,wDAAwD,OAAO;AAC/D,2EAA2E,OAAO;AAClF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,OAAO;AACzB;AACA,KAAK;AACL;AACA;AACA,kBAAkB,OAAO;AACzB,2BAA2B,OAAO;AAClC,2BAA2B,OAAO,yBAAyB,iBAAiB,OAAO;AACnF;AACA,kBAAkB,OAAO;AACzB;AACA,KAAK;AACL;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,OAAO;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,OAAO;AAC3B;AACA;AACA,iCAAiC,SAAS;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,oBAAoB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA,kFAAkF;AAClF;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAqE;AACrE;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,+EAA+E,OAAO;AACtF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA4D;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,+BAA+B,OAAO;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,gCAAgC;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,OAAO,qBAAqB,OAAO;AACnD;AACA,UAAU;AACV;AACA,gBAAgB,SAAS,sBAAsB,OAAO;AACtD;AACA,oBAAoB,cAAc;AAClC,+BAA+B,kBAAkB;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,UAAU;AACV;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAqE;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,qBAAqB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAqE;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,SAAS;AAC/C;AACA,0DAA0D,SAAS;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,SAAS;AAC/C;AACA,0DAA0D,SAAS;AACnE;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,SAAS;AAC/C,0DAA0D,SAAS;AACnE;AACA;AACA;AACA;AACA,gDAAgD,SAAS;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,OAAO;AAC5C;AACA,yDAAyD,OAAO;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,QAAQ;AACR;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,qCAAqC,OAAO;AAC5C;AACA,yDAAyD,OAAO;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb,WAAW;AACX,UAAU;AACV;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,WAAW;AACX;AACA;AACA,WAAW;AACX;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA,uCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,0BAA0B;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,4EAA4E,4EAA4E;AACxJ,CAAC;AACD,CAAC,GAAG;AACJ;;AAEA;;AAEA,CAAC,EAAE,YAAY;AACf;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,iBAAiB;;AAEjB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA,gCAAgC;AAChC,gCAAgC;;AAEhC;;AAEA;AACA;AACA;AACA,uBAAuB;;AAEvB;AACA;AACA;AACA;AACA;AACA,4BAA4B;AAC5B;AACA,iBAAiB,OAAO;AACxB;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;AAGA;AACA;;;AAGA;AACA;AACA;AACA,qBAAqB,uBAAuB;AAC5C;AACA,iBAAiB;AACjB;AACA,4CAA4C,SAAS;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;;;AAIA;AACA;AACA,qBAAqB;;AAErB;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,mBAAmB,gBAAgB;AACnC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA,oCAAoC,SAAS;AAC7C;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA,sBAAsB;;AAEtB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,wCAAwC;AACxC,gCAAgC;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;;AAIA;AACA;;AAEA;AACA;;AAEA;AACA,uCAAuC;;AAEvC;AACA;;AAEA;AACA,qEAAqE;AACrE,8BAA8B;AAC9B,wBAAwB;;AAExB;AACA;;AAEA,2BAA2B;;AAE3B,sBAAsB,QAAQ;AAC9B;;AAEA;AACA;;AAEA,iEAAiE;AACjE;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,sBAAsB,kBAAkB;AACxC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,kBAAkB,WAAW;AAC7B;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,qCAAqC,OAAO;AAC5C;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,6KAA6K;AAChL;AACA,+CAA+C,aAAa;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,UAAU;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,6BAA6B;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,mBAAmB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,sBAAsB;AACjC,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,kBAAkB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;AACA,+CAA+C,aAAa;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,gBAAgB,cAAc,cAAc;AAChE;AACA;AACA,WAAW,UAAU;AACrB,WAAW,QAAQ,cAAc;AACjC,WAAW,QAAQ,WAAW;AAC9B,WAAW,eAAe;AAC1B,WAAW,eAAe;AAC1B,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,gBAAgB;AACtC;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,YAAY;AACvB,WAAW,QAAQ,WAAW;AAC9B,aAAa,UAAU;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,cAAc,eAAe;AAC3C;AACA;AACA,WAAW,eAAe;AAC1B,WAAW,QAAQ,cAAc;AACjC,WAAW,QAAQ,WAAW;AAC9B,WAAW,eAAe;AAC1B,WAAW,eAAe;AAC1B,aAAa,gBAAgB;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,cAAc,yBAAyB;AACrD;AACA;AACA,WAAW,sBAAsB;AACjC,WAAW,QAAQ,cAAc;AACjC,WAAW,QAAQ,WAAW;AAC9B,WAAW,eAAe;AAC1B;AACA,WAAW,eAAe;AAC1B,aAAa,0BAA0B;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,cAAc,gBAAgB,eAAe;AAC7C;AACA;AACA,WAAW,6BAA6B;AACxC,WAAW,QAAQ,cAAc;AACjC,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A,gCAAgC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACA;AACA,4BAA4B;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACA;AACA,4BAA4B;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA,mCAAmC;AACnC,gCAAgC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA,mCAAmC;AACnC,gCAAgC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,aAAa,SAAS;AACtB;AACA,kBAAkB,cAAc;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,eAAe;AAC1B,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,eAAe;AAC1B,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA,+CAA+C,aAAa;;AAE5D;;AAEA;AACA;AACA;AACA;AACA,WAAW,eAAe;AAC1B,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;;AAEA;AACA;AACA;AACA;AACA,WAAW,oCAAoC;AAC/C,WAAW,UAAU;AACrB,WAAW,SAAS;AACpB,aAAa;AACb;AACA;AACA,2BAA2B,aAAa;AACxC,2BAA2B,iBAAiB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,qBAAqB;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,4BAA4B,mBAAmB;AAC/C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,mBAAmB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,mBAAmB;AACzC,wBAAwB,mCAAmC;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,mBAAmB;AACzC;AACA,wBAAwB,sBAAsB;AAC9C,0BAA0B,sCAAsC;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,gCAAgC;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,WAAW,eAAe;AAC1B,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;;AAEA;AACA;AACA;AACA;AACA,WAAW,oCAAoC;AAC/C,WAAW,UAAU;AACrB,WAAW,GAAG;AACd,WAAW,SAAS;AACpB,aAAa,GAAG;AAChB;AACA;AACA,2BAA2B,aAAa;AACxC,2BAA2B,iBAAiB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;;AAEA;AACA;AACA;AACA;AACA,WAAW,2BAA2B;AACtC,WAAW,UAAU;AACrB,aAAa;AACb;AACA;AACA,6BAA6B,WAAW;AACxC,6BAA6B,eAAe;AAC5C;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,kBAAkB,6BAA6B;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,WAAW,GAAG;AACd,WAAW,QAAQ;AACnB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,2BAA2B;AACtC,WAAW,UAAU;AACrB,WAAW,GAAG;AACd,aAAa,GAAG;AAChB;AACA;AACA,6BAA6B,WAAW;AACxC,6BAA6B,eAAe;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB,WAAW,QAAQ;AACnB;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,oCAAoC;AAC/C,WAAW,UAAU;AACrB,aAAa;AACb;AACA;AACA,2BAA2B,WAAW;AACtC,2BAA2B,eAAe;AAC1C;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,IAAI;AACJ,oBAAoB,6BAA6B;AACjD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,WAAW,SAAS;AACpB,WAAW,QAAQ;AACnB;;AAEA;AACA;AACA;AACA;AACA,WAAW,oCAAoC;AAC/C,WAAW,UAAU;AACrB,WAAW,GAAG;AACd,aAAa,GAAG;AAChB;AACA;AACA,2BAA2B,aAAa;AACxC,2BAA2B,iBAAiB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,oCAAoC;AAC/C,aAAa,sBAAsB;AACnC;AACA;AACA,2BAA2B,WAAW;AACtC,2BAA2B,eAAe;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,UAAU;AACrB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,eAAe;AAC1B,WAAW,eAAe;AAC1B;;AAEA;AACA;AACA;AACA;AACA,WAAW,oCAAoC;AAC/C,WAAW,UAAU;AACrB,aAAa;AACb;AACA;AACA,6BAA6B,WAAW;AACxC,6BAA6B,eAAe;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,UAAU;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,gBAAgB,WAAW;AAC3B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,gCAAgC;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,WAAW,UAAU;AACrB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,eAAe;AAC1B,WAAW,eAAe;AAC1B;;AAEA;AACA;AACA;AACA;AACA,WAAW,oCAAoC;AAC/C,WAAW,UAAU;AACrB,WAAW,GAAG;AACd,aAAa,GAAG;AAChB;AACA;AACA,6BAA6B,WAAW;AACxC,6BAA6B,eAAe;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,oCAAoC;AAC/C,WAAW,UAAU;AACrB;AACA;AACA,6BAA6B,WAAW;AACxC,8CAA8C,eAAe;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,oBAAoB;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,WAAW,SAAS;AACpB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;;AAEA;AACA;AACA;AACA;AACA,WAAW,oCAAoC;AAC/C,WAAW,UAAU;AACrB,WAAW,GAAG;AACd,aAAa,GAAG;AAChB;AACA;AACA,6BAA6B,WAAW;AACxC,8CAA8C,eAAe;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,qBAAqB;AAChC,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA,WAAW,oCAAoC;AAC/C,WAAW,UAAU;AACrB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,WAAW,qBAAqB;AAChC,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;;AAEA;AACA;AACA;AACA;AACA,WAAW,oCAAoC;AAC/C,WAAW,UAAU;AACrB,WAAW,GAAG;AACd,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,qBAAqB;AAChC,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,mEAAmE;AAC9E,WAAW,UAAU;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,WAAW,qBAAqB;AAChC,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;;AAEA;AACA;AACA;AACA;AACA,WAAW,mEAAmE;AAC9E,WAAW,UAAU;AACrB,WAAW,GAAG;AACd,aAAa,GAAG;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,oCAAoC;AAC/C,WAAW,QAAQ,WAAW;AAC9B,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ,sBAAsB;AACzC,WAAW,MAAM,gBAAgB;AACjC,WAAW,eAAe,cAAc;AACxC,aAAa,qBAAqB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,qBAAqB;AACrD;AACA;AACA;AACA,gCAAgC,wCAAwC;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,oCAAoC;AAC/C,WAAW,QAAQ,WAAW;AAC9B,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ,sBAAsB;AACzC,WAAW,MAAM,gBAAgB;AACjC,WAAW,eAAe,cAAc;AACxC,aAAa,gBAAgB;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,qBAAqB;AACnD;AACA;AACA;AACA,8BAA8B,sCAAsC;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,mBAAmB;AACtB;AACA,+CAA+C,aAAa;AAC5D;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;AACA,CAAC,EAAE,SAAS;AACZ;AACA,CAAC,EAAE,4BAA4B;AAC/B;AACA,+CAA+C,aAAa;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,QAAQ,WAAW;AAC9B,WAAW,QAAQ,sBAAsB,iCAAiC,cAAc;AACxF,aAAa,gBAAgB;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA,CAAC,EAAE,mCAAmC;AACtC;AACA,+CAA+C,aAAa;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,gBAAgB,cAAc,cAAc;AAChE;AACA;AACA,WAAW,UAAU;AACrB,WAAW,QAAQ,cAAc;AACjC,WAAW,QAAQ,WAAW;AAC9B,WAAW,eAAe;AAC1B,WAAW,eAAe;AAC1B,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AA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W,sBAAsB;AACjC,WAAW,QAAQ,cAAc;AACjC,WAAW,QAAQ,WAAW;AAC9B,WAAW,eAAe;AAC1B,WAAW,eAAe;AAC1B,aAAa,qBAAqB;AAClC,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,6BAA6B;AAC3C;AACA;AACA;AACA,WAAW,oCAAoC;AAC/C,WAAW,QAAQ,cAAc;AACjC,WAAW,QAAQ,WAAW;AAC9B,WAAW,eAAe;AAC1B,WAAW,eAAe;AAC1B,aAAa,uBAAuB;AACpC,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,mCAAmC;AACjD;AACA;AACA;AACA,WAAW,iBAAiB;AAC5B,WAAW,QAAQ,cAAc;AACjC,WAAW,QAAQ,WAAW;AAC9B,WAAW,eAAe;AAC1B,WAAW,eAAe;AAC1B,aAAa,6BAA6B;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACA;AACA,4BAA4B;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACA;AACA,4BAA4B;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA,mCAAmC;AACnC,gCAAgC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA,mCAAmC;AACnC,gCAAgC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,aAAa,SAAS;AACtB;AACA,kBAAkB,cAAc;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,eAAe;AAC1B,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,eAAe;AAC1B,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA,+CAA+C,aAAa;;AAE5D;;AAEA;AACA;AACA;AACA;AACA,WAAW,eAAe;AAC1B,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;;AAEA;AACA;AACA;AACA;AACA,WAAW,oCAAoC;AAC/C,WAAW,UAAU;AACrB,WAAW,SAAS;AACpB,aAAa;AACb;AACA;AACA,2BAA2B,aAAa;AACxC,2BAA2B,iBAAiB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,qBAAqB;AACpD;AACA;AACA;AACA;;AAEA,gCAAgC,mBAAmB;AACnD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,mBAAmB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,mBAAmB;AAC/C,gCAAgC,mCAAmC;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,mBAAmB;AAC/C;AACA,gCAAgC,sBAAsB;AACtD,oCAAoC,sCAAsC;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,gCAAgC;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,WAAW,eAAe;AAC1B,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;;AAEA;AACA;AACA;AACA;AACA,WAAW,oCAAoC;AAC/C,WAAW,UAAU;AACrB,WAAW,GAAG;AACd,WAAW,SAAS;AACpB,aAAa,GAAG;AAChB;AACA;AACA,2BAA2B,aAAa;AACxC,2BAA2B,iBAAiB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;;AAEA;AACA;AACA;AACA;AACA,WAAW,2BAA2B;AACtC,WAAW,UAAU;AACrB,aAAa;AACb;AACA;AACA,6BAA6B,WAAW;AACxC,6BAA6B,eAAe;AAC5C;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,oBAAoB,6BAA6B;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,WAAW,GAAG;AACd,WAAW,QAAQ;AACnB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,2BAA2B;AACtC,WAAW,UAAU;AACrB,WAAW,GAAG;AACd,aAAa,GAAG;AAChB;AACA;AACA,6BAA6B,WAAW;AACxC,6BAA6B,eAAe;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB,WAAW,QAAQ;AACnB;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,oCAAoC;AAC/C,WAAW,UAAU;AACrB,aAAa;AACb;AACA;AACA,2BAA2B,WAAW;AACtC,2BAA2B,eAAe;AAC1C;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,MAAM;AACN,wBAAwB,6BAA6B;AACrD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,WAAW,SAAS;AACpB,WAAW,QAAQ;AACnB;;AAEA;AACA;AACA;AACA;AACA,WAAW,oCAAoC;AAC/C,WAAW,UAAU;AACrB,WAAW,GAAG;AACd,aAAa,GAAG;AAChB;AACA;AACA,2BAA2B,aAAa;AACxC,2BAA2B,iBAAiB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,oCAAoC;AAC/C,aAAa,sBAAsB;AACnC;AACA;AACA,2BAA2B,WAAW;AACtC,2BAA2B,eAAe;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,UAAU;AACrB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,eAAe;AAC1B,WAAW,eAAe;AAC1B;;AAEA;AACA;AACA;AACA;AACA,WAAW,oCAAoC;AAC/C,WAAW,UAAU;AACrB,aAAa;AACb;AACA;AACA,6BAA6B,WAAW;AACxC,6BAA6B,eAAe;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,UAAU;;AAE1B;AACA;AACA;AACA,gDAAgD;AAChD;AACA;AACA;AACA;AACA;AACA;;AAEA,oBAAoB,WAAW;AAC/B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,gCAAgC;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,WAAW,UAAU;AACrB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,eAAe;AAC1B,WAAW,eAAe;AAC1B;;AAEA;AACA;AACA;AACA;AACA,WAAW,oCAAoC;AAC/C,WAAW,UAAU;AACrB,WAAW,GAAG;AACd,aAAa,GAAG;AAChB;AACA;AACA,6BAA6B,WAAW;AACxC,6BAA6B,eAAe;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,oCAAoC;AAC/C,WAAW,UAAU;AACrB;AACA;AACA,6BAA6B,WAAW;AACxC,8CAA8C,eAAe;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gEAAgE,mBAAmB;AACnF;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wCAAwC,iDAAiD;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,WAAW,SAAS;AACpB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;;AAEA;AACA;AACA;AACA;AACA,WAAW,oCAAoC;AAC/C,WAAW,UAAU;AACrB,WAAW,GAAG;AACd,aAAa,GAAG;AAChB;AACA;AACA,6BAA6B,WAAW;AACxC,8CAA8C,eAAe;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,qBAAqB;AAChC,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA,WAAW,oCAAoC;AAC/C,WAAW,UAAU;AACrB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,WAAW,qBAAqB;AAChC,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;;AAEA;AACA;AACA;AACA;AACA,WAAW,oCAAoC;AAC/C,WAAW,UAAU;AACrB,WAAW,GAAG;AACd,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,qBAAqB;AAChC,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,mEAAmE;AAC9E,WAAW,UAAU;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,+BAA+B;AACvE;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,WAAW,qBAAqB;AAChC,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;;AAEA;AACA;AACA;AACA;AACA,WAAW,mEAAmE;AAC9E,WAAW,UAAU;AACrB,WAAW,GAAG;AACd,aAAa,GAAG;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,oCAAoC;AAC/C,WAAW,QAAQ,WAAW;AAC9B,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ,sBAAsB;AACzC,WAAW,MAAM,gBAAgB;AACjC,WAAW,eAAe,cAAc;AACxC,aAAa,qBAAqB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,qBAAqB;AACrD;AACA;AACA;AACA,gCAAgC,wCAAwC;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,oCAAoC;AAC/C,WAAW,QAAQ,WAAW;AAC9B,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ,sBAAsB;AACzC,WAAW,MAAM,gBAAgB;AACjC,WAAW,eAAe,cAAc;AACxC,aAAa,gBAAgB;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,qBAAqB;AACnD;AACA;AACA;AACA,8BAA8B,sCAAsC;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,mBAAmB;;AAEtB;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,eAAe;AACpC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,EAAE;AACF;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,cAAc;AACpC;AACA;AACA,SAAS,OAAO;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,cAAc;AACpC;AACA;AACA;AACA,oBAAoB,OAAO;AAC3B;AACA;AACA;AACA;AACA,oBAAoB,OAAO;AAC3B;AACA;AACA;AACA;AACA,oBAAoB,OAAO;AAC3B;AACA;AACA;AACA;AACA;AACA,oBAAoB,OAAO;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,kBAAkB;;AAErB;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,OAAO;AAClC;AACA;AACA;AACA,CAAC,GAAG;AACJ,mBAAmB;AACnB;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,wCAAwC,SAAS;AACjD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,+BAA+B;AAC/B;AACA,mDAAmD;;AAEnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAgB;AAChB,gDAAgD;;AAEhD;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ,sBAAsB;;AAEtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,QAAQ;AAClC;AACA;AACA;AACA;AACA;AACA,0BAA0B,QAAQ;AAClC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;;AAEA,yBAAyB;AACzB;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,iCAAiC;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,aAAa,mBAAmB,qBAAM,mBAAmB,qBAAM,mFAAmF;AACnJ,CAAC,EAAE,+BAA+B;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ,2BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,oBAAoB,sBAAsB;AAC1C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,wBAAwB,SAAS;AACjC;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;;AAGA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,4CAA4C,KAAK;;AAEjD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,KAAK;AACL;;AAEA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;;AAGA;AACA;AACA,oCAAoC,OAAO;AAC3C;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;;AAGA;AACA;AACA,0DAA0D;AAC1D;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX,UAAU;AACV;AACA;AACA,WAAW;AACX;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,UAAU;AACrB;AACA,WAAW,UAAU;AACrB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,aAAa,uCAAuC,qBAAM,mBAAmB,qBAAM,mFAAmF;AACvK,CAAC,EAAE,qDAAqD;AACxD;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mCAAmC,SAAS;AAC5C;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,cAAc,SAAS;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,sBAAsB,SAAS;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,2CAA2C,UAAU;AACrD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAkB,OAAO,YAAY,OAAO;AAC5C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB,OAAO,YAAY,OAAO;AAC3C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB,OAAO,YAAY,OAAO;AAC3C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAkB,OAAO,YAAY,OAAO;AAC5C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mBAAmB;AACnB,kBAAkB,YAAY,OAAO;AACrC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,gCAAgC,+BAA+B;AAC/D,gCAAgC,+BAA+B;AAC/D,gCAAgC,+BAA+B;AAC/D,gCAAgC,+BAA+B;AAC/D,gCAAgC;AAChC;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,cAAc;;AAEd;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,6BAA6B;AAC7B,6BAA6B,cAAc;AAC3C,6BAA6B,cAAc;AAC3C,6BAA6B,cAAc;AAC3C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,eAAe,OAAO;AACtB;AACA,mBAAmB,GAAG;AACtB;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,OAAO;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,OAAO;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,OAAO;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,WAAW;AAC/B,wBAAwB,YAAY;AACpC;AACA;AACA;AACA,oBAAoB,YAAY;AAChC;AACA;AACA;AACA,gBAAgB,YAAY;AAC5B,oBAAoB,WAAW;AAC/B;AACA;AACA;AACA,oBAAoB,WAAW;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,OAAO;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;;AAEA,CAAC,EAAE,WAAW;;AAEd,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB,sBAAsB;AACxC;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA,eAAe;AACf;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA,oBAAoB,SAAS;AAC7B;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;;AAEA,kCAAkC,QAAQ;AAC1C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,QAAQ;AACR;AACA,uCAAuC,QAAQ;AAC/C;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA,SAAS,yBAAyB;AAClC;AACA;AACA;;AAEA;AACA;AACA,kBAAkB,gBAAgB;AAClC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;AACH;;AAEA,CAAC,GAAG;AACJ,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,sBAAsB,oDAAoD;AAC1E;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB,YAAY;AAC9B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,wCAAwC,SAAS;AACjD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,iBAAiB;AACjC;AACA;AACA;;AAEA;AACA;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAkB,SAAS;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAkB,SAAS;AAC3B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAkB,SAAS;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,iDAAiD,EAAE;AACnD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,kBAAkB,SAAS;AAC3B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C;AAC1C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA,yBAAyB,eAAe;AACxC;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,yBAAyB,QAAQ;AACjC;AACA,sBAAsB,eAAe;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,kBAAkB,YAAY;AAC9B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,sBAAsB,SAAS;AAC/B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,sBAAsB,SAAS;AAC/B;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,sBAAsB,SAAS;AAC/B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB,kBAAkB;AACpC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB;AACnB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA,0BAA0B,QAAQ;AAClC;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,oBAAoB,SAAS;AAC7B;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,iBAAiB;AACjC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,kBAAkB,YAAY;AAC9B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,kBAAkB,gBAAgB;AAClC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB,gBAAgB;AAClC;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,kBAAkB,YAAY;AAC9B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,aAAa;AACd,CAAC,EAAE,yCAAyC;AAC5C;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,WAAW;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,uCAAuC;AAC1C,mBAAmB;AACnB;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,QAAQ;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;;AAEJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,aAAa,mBAAmB,qBAAM,mBAAmB,qBAAM,mFAAmF;AACnJ,CAAC,EAAE,iDAAiD;AACpD;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,CAAC,EAAE,iDAAiD;AACpD;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,WAAW;AACd;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gCAAgC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,4BAA4B;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,wMAAwM;AAC3M;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA,iBAAiB,cAAc;AAC/B;AACA;AACA;AACA;;AAEA,CAAC,EAAE,wLAAwL;AAC3L;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,2CAA2C,qCAAqC;AAChF;;AAEA,CAAC,EAAE,uKAAuK;AAC1K;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA,UAAU;AACV;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA,UAAU;AACV;AACA;;AAEA,CAAC,EAAE,oJAAoJ;AACvJ;AACA;AACA;AACA;AACA,qCAAqC;AACrC,CAAC,6BAA6B;;AAE9B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,mBAAmB,SAAS;AAC5B,uCAAuC,SAAS;AAChD;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,sBAAsB;AACtB;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,sBAAsB;AACtB;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,gBAAgB,OAAO;AACvB;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mDAAmD;AACnD;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,gBAAgB,QAAQ;AACxB;AACA;AACA;AACA;;AAEA;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,sBAAsB;AACtB;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,sBAAsB;AACtB;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,sBAAsB;AACtB;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,sBAAsB;AACtB;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,4CAA4C;AAC5C;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,sEAAsE,QAAQ;AAC9E,2DAA2D,QAAQ;AACnE;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,+CAA+C,aAAa;;AAE5D,CAAC;;AAED,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA,qCAAqC;AACrC,CAAC,6BAA6B;;AAE9B;;AAEA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,yEAAyE,8CAA8C;AACvH;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,gEAAgE,sBAAsB;;AAEtF;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA,kDAAkD,YAAY,kCAAkC,IAAI;AACpG,yDAAyD,+BAA+B;AACxF;;AAEA;AACA,8BAA8B,kDAAkD;AAChF,2BAA2B,4CAA4C;AACvE,+BAA+B,wDAAwD;AACvF,uBAAuB,cAAc,cAAc;AACnD,gCAAgC,mCAAmC,cAAc;AACjF,kCAAkC,oBAAoB,cAAc;AACpE,0BAA0B,YAAY;AACtC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,2DAA2D,iBAAiB;;AAE5E;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qCAAqC,0BAA0B;AAC/D;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,+CAA+C,aAAa;;AAE5D,CAAC;;AAED,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA,6DAA6D;AAC7D,CAAC,4BAA4B;;AAE7B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,yBAAyB,IAAI;AAC7B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;AACA,wBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,+CAA+C,aAAa;;AAE5D,CAAC;;AAED,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA,6DAA6D;AAC7D,CAAC,4BAA4B;;AAE7B,YAAY;;AAEZ;AACA,8CAA8C,KAAK,OAAO;AAC1D;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA,iBAAiB;AACjB;AACA;AACA,GAAG;AACH;AACA,mFAAmF,OAAO;AAC1F;AACA,gDAAgD,OAAO;AACvD,GAAG;AACH;AACA;AACA,oDAAoD,OAAO;AAC3D;AACA;;AAEA;AACA,sCAAsC,OAAO;AAC7C;AACA;AACA;AACA;AACA;;AAEA;AACA,mCAAmC,OAAO;AAC1C;AACA;AACA;AACA;AACA;AACA,mCAAmC,4BAA4B;AAC/D;AACA;;AAEA;;AAEA,+CAA+C,aAAa;;AAE5D,CAAC;;AAED,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA,qCAAqC;AACrC,CAAC,wEAAwE;;AAEzE;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,gBAAgB,OAAO;AACvB;AACA;;AAEA,kDAAkD,OAAO;AACzD;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,oBAAoB,gBAAgB;AACpC;AACA,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,6BAA6B,OAAO;AACpC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAgB,OAAO;AACvB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,sCAAsC,gBAAgB;AACtD,wDAAwD,OAAO;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,sCAAsC,OAAO;AAC7C;AACA;AACA;AACA;AACA;AACA;;AAEA,qCAAqC,OAAO;AAC5C;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,sCAAsC,OAAO;AAC7C;AACA;AACA;;AAEA;AACA;;AAEA,sCAAsC,OAAO;AAC7C;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA,oBAAoB,gBAAgB;AACpC;;AAEA;AACA;AACA,OAAO;;AAEP,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,4CAA4C,OAAO;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,2BAA2B,OAAO;AAClC;;AAEA;AACA;AACA;AACA;AACA,gBAAgB,OAAO;AACvB;;AAEA;AACA;;AAEA;AACA;AACA,0BAA0B,OAAO;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,0CAA0C;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,0CAA0C;AAC1C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,sCAAsC,OAAO;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,4CAA4C,OAAO;AACnD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,4CAA4C,OAAO;AACnD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,+CAA+C,aAAa;;AAE5D,CAAC;;AAED,CAAC,EAAE,uEAAuE;AAC1E;AACA;AACA;AACA;AACA,8GAA8G;AAC9G,CAAC,6BAA6B;;AAE9B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gGAAgG;AAChG;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA,uDAAuD;;AAEvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kDAAkD,OAAO;AACzD;AACA,6BAA6B;AAC7B,sCAAsC,QAAQ;AAC9C,sCAAsC,oBAAoB;AAC1D;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8FAA8F;AAC9F;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,wBAAwB,8BAA8B;AACtD,qBAAqB,mCAAmC;AACxD,qBAAqB,gBAAgB;AACrC;AACA,wBAAwB,4BAA4B;AACpD,wBAAwB,sBAAsB;AAC9C,wBAAwB,0BAA0B;AAClD,qBAAqB,mCAAmC;AACxD,wBAAwB,mCAAmC;AAC3D;AACA;AACA,qBAAqB,kDAAkD;AACvE,qBAAqB;AACrB;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,uEAAuE;AACvE,uEAAuE;AACvE,sIAAsI;AACtI,sEAAsE;AACtE;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,+CAA+C,aAAa;;AAE5D,CAAC;;AAED,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA,qCAAqC;AACrC,CAAC,2CAA2C;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC;AACtC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,sBAAsB;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,gCAAgC;AAChC;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2GAA2G,WAAW;AACtH;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,oBAAoB;AACxC;AACA;AACA;AACA;AACA,iDAAiD;;AAEjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD;AACjD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,oCAAoC,OAAO;AAC3C;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,kCAAkC;AAClC,6BAA6B,8CAA8C;AAC3E;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB;AACvB;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,oCAAoC,gCAAgC;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,oCAAoC,gCAAgC;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,kHAAkH;;AAElH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,qCAAqC,gEAAgE;AACrG,8BAA8B,iBAAiB;AAC/C,4BAA4B,eAAe;AAC3C,iCAAiC,oBAAoB;AACrD,+BAA+B;AAC/B,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAQ;;AAER;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yBAAyB,OAAO;AAChC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAmD,OAAO;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;;AAEJ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,kBAAkB;AACpC;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,uCAAuC;AACvC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,kBAAkB,QAAQ;AAC1B;;AAEA;AACA;AACA;AACA,wCAAwC;AACxC;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,OAAO;AAC3B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,gCAAgC,QAAQ;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,yCAAyC,iCAAiC;AAC1E;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA,wCAAwC,OAAO;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,uCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;;AAEL;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mCAAmC;AACnC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,QAAQ;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;;AAEN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,yBAAyB,QAAQ;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,yBAAyB,QAAQ;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA,IAAI;AACJ,oBAAoB,oBAAoB;AACxC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,oCAAoC,gCAAgC;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,OAAO;AACP;AACA;AACA,IAAI;;AAEJ;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,sEAAsE;AACtE;AACA;AACA;;AAEA,iBAAiB,gBAAgB;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,OAAO;AAC/C;AACA;AACA;AACA;AACA,oCAAoC,OAAO;AAC3C;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD,OAAO;AAC5D;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,oBAAoB,2CAA2C;AAC/D,gDAAgD,0BAA0B;AAC1E,2BAA2B,0CAA0C;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB,OAAO;AACzB;AACA,2BAA2B,SAAS;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mCAAmC,OAAO;AAC1C;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,CAAC;;AAED;;AAEA;AACA,+BAA+B,sCAAsC;AACrE;AACA;;AAEA;AACA,YAAY;AACZ,GAAG;;AAEH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,+BAA+B,sCAAsC;AACrE;AACA;;AAEA;AACA,YAAY;AACZ,GAAG;;AAEH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA;;AAEA;AACA,mDAAmD,sCAAsC;AACzF;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,OAAO;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;;AAEA;;AAEA;AACA;AACA;AACA;AACA,oBAAoB,OAAO;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,uCAAuC,OAAO;AAC9C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,8CAA8C,OAAO;AACrD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,8CAA8C;AAC9C,kEAAkE;AAClE,wCAAwC;AACxC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC,yCAAyC;AACzC,wCAAwC;AACxC,6CAA6C;AAC7C,wCAAwC;AACxC,6CAA6C;AAC7C,uCAAuC;AACvC;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,+BAA+B;AAC/B,WAAW;AACX;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,8BAA8B;AAC9B,WAAW;AACX;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,yCAAyC;AACzC;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;;AAEL;;AAEA;AACA,iCAAiC;AACjC,WAAW;AACX;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,oBAAoB,kBAAkB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,2CAA2C,iFAAiF;AAC5H,8BAA8B,+DAA+D;AAC7F,mCAAmC,mEAAmE;AACtG,mCAAmC,+EAA+E;AAClH,wDAAwD,oEAAoE;AAC5H,qCAAqC,4EAA4E;AACjH;AACA;AACA;AACA;AACA;;AAEA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,8DAA8D;AAC9D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,oCAAoC,OAAO;AAC3C;;AAEA;AACA,oBAAoB,wCAAwC;;AAE5D,qCAAqC,OAAO;AAC5C;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,4BAA4B,OAAO;AACnC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,wBAAwB,4DAA4D;AACpF;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,0BAA0B;AAC1B,wBAAwB;AACxB;AACA;AACA;AACA;AACA;;AAEA;AACA,cAAc,OAAO;AACrB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,kCAAkC;AAClC;AACA,oBAAoB;;AAEpB;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,6BAA6B;AAC7B,oBAAoB;AACpB;AACA;AACA,QAAQ;AACR,8CAA8C;AAC9C;AACA;AACA;AACA;AACA;;AAEA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,yCAAyC,+EAA+E;AACxH,4BAA4B,4DAA4D;AACxF,oDAAoD,gEAAgE;AACpH,sCAAsC,2EAA2E;AACjH;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,+CAA+C,aAAa;;AAE5D,CAAC;;AAED,CAAC,EAAE,4BAA4B;AAC/B;AACA;AACA;AACA;AACA,6DAA6D;AAC7D,CAAC,sCAAsC;;AAEvC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAgB;AAChB,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC;AACtC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,6BAA6B;;AAE7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,6CAA6C,OAAO;AACpD;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA,4EAA4E,QAAQ;AACpF;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAgB;;AAEhB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,0BAA0B,iCAAiC;AAC3D;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;;AAEhB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB,kBAAkB;AAClB,kBAAkB;AAClB,0BAA0B;AAC1B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,oBAAoB,OAAO;AAC3B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;;AAEA;AACA;AACA;;AAEA,+BAA+B,OAAO;AACtC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,OAAO;AAChD,UAAU;AACV;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,sCAAsC,QAAQ;AAC9C,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,sCAAsC,OAAO;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,oBAAoB,OAAO;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,OAAO;AAC7B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,cAAc;AAC7B;AACA;AACA;AACA;;AAEA;AACA,wCAAwC,sBAAsB;AAC9D;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,uCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,2CAA2C;AACnD,wEAAwE;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA,wBAAwB;AACxB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,yCAAyC;;AAEzC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mEAAmE;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gCAAgC;AAChC,oCAAoC;AACpC,6BAA6B;AAC7B,iCAAiC;AACjC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iCAAiC;AACjC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,0CAA0C,OAAO;AACjD,mHAAmH,OAAO;AAC1H;AACA,0BAA0B;AAC1B,iBAAiB;AACjB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,cAAc;;AAEd;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,0CAA0C,OAAO;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uBAAuB,2BAA2B,gBAAgB;AAClE;;AAEA;AACA;AACA,uBAAuB,2BAA2B,gBAAgB;AAClE;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAY;AACZ;;AAEA;AACA;AACA;AACA,+EAA+E,+BAA+B;AAC9G,+EAA+E,+BAA+B;AAC9G;;AAEA;AACA,+CAA+C,QAAQ,gDAAgD;AACvG;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,0BAA0B,0BAA0B;AACpD,uBAAuB,uBAAuB;AAC9C,0BAA0B,0BAA0B;AACpD,wBAAwB,wBAAwB;AAChD,6BAA6B,6BAA6B;AAC1D,2BAA2B;AAC3B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA,wCAAwC;;AAExC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6DAA6D;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;;AAErC;AACA;AACA;AACA;AACA,iCAAiC,uBAAuB,uCAAuC;AAC/F,+BAA+B,qBAAqB;AACpD;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,wCAAwC,iBAAiB;AACzD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,4BAA4B,YAAY,yCAAyC;AACjF,yBAAyB,YAAY,sCAAsC;AAC3E,4BAA4B,YAAY,yCAAyC;AACjF,0BAA0B,YAAY,uCAAuC;AAC7E,+BAA+B,YAAY,4CAA4C;AACvF,6BAA6B,YAAY;AACzC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,wBAAwB;;AAEpD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;;AAE7B;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,iBAAiB;AACjB,WAAW;AACX;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kCAAkC,gBAAgB;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,+CAA+C,aAAa;;AAE5D,CAAC;;AAED,CAAC,EAAE,eAAe;AAClB;AACA;AACA;AACA;AACA,6DAA6D;AAC7D,CAAC,4BAA4B;;AAE7B;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD,OAAO;AAC5D;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;AACA,gDAAgD,QAAQ;AACxD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mDAAmD,OAAO;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA,yBAAyB;AACzB,kBAAkB,kCAAkC;AACpD;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,sBAAsB,QAAQ;AAC9B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA,cAAc,cAAc;AAC5B;AACA;AACA;AACA;AACA;;AAEA;AACA,cAAc,kBAAkB;AAChC,oBAAoB,cAAc;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,kBAAkB,cAAc;AAChC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,oBAAoB,OAAO;AAC3B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;;AAEN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oBAAoB,wCAAwC;;AAE5D;AACA,cAAc,OAAO;;AAErB;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,yBAAyB,OAAO;AAChC;AACA,yBAAyB,OAAO;AAChC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,eAAe,UAAU;AACzB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,gBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;AACA;;AAEA,gBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qCAAqC,oCAAoC,MAAM;AAC/E;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,iBAAiB;AACjB,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,iBAAiB;AACjB,cAAc;AACd;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,sBAAsB,QAAQ;AAC9B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,qCAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA,iCAAiC,uBAAuB;AACxD;AACA;;AAEA;AACA,qBAAqB,8DAA8D;AACnF;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,8BAA8B,OAAO;AACrC;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kDAAkD,OAAO;AACzD;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,+CAA+C,aAAa;;AAE5D,CAAC;;AAED,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA,6DAA6D;AAC7D,CAAC,qCAAqC;;AAEtC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,cAAc,QAAQ;AACtB,SAAS,QAAQ;;AAEjB;AACA,gBAAgB,QAAQ;AACxB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAY;AACZ,YAAY;AACZ;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;;AAEd;AACA;;AAEA;AACA;AACA;AACA,gCAAgC;AAChC;AACA,4BAA4B;AAC5B;AACA;AACA,yCAAyC;AACzC,4BAA4B;AAC5B;AACA,MAAM,OAAO;AACb;AACA,cAAc,wBAAwB;AACtC;AACA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,OAAO;AACpC;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc,4BAA4B,GAAG,4BAA4B;AACzE,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA,iCAAiC,gCAAgC;AACjE,cAAc,mEAAmE;AACjF,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA,cAAc,kEAAkE;AAChF,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc,4BAA4B,GAAG,4BAA4B;AACzE,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;AACH;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB,OAAO;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,+CAA+C,aAAa;;AAE5D,CAAC;;AAED,CAAC,EAAE,eAAe;AAClB;AACA;AACA;AACA;AACA,6DAA6D;AAC7D,CAAC,4BAA4B;;AAE7B;AACA;AACA;AACA;;AAEA;AACA;AACA,8BAA8B;AAC9B;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;;AAEA,+CAA+C,aAAa;;AAE5D,CAAC;;AAED,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA,6DAA6D;AAC7D,CAAC,4BAA4B;;AAE7B;AACA;AACA;AACA;AACA;;AAEA;AACA,yCAAyC;;AAEzC;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,oDAAoD;AACpD,qDAAqD;AACrD;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,oDAAoD;AACpD,qDAAqD;AACrD,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,cAAc,OAAO;AACrB;AACA;;AAEA;AACA;;AAEA;AACA,mDAAmD;;AAEnD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,0CAA0C;AAC1C,0CAA0C;AAC1C,0CAA0C;AAC1C,0CAA0C;AAC1C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,+CAA+C;AAC/C,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,2FAA2F;;AAE3F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,oDAAoD;AACpD,qDAAqD;AACrD;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,mCAAmC,OAAO;AAC1C;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,iCAAiC;AACjC,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,cAAc,gBAAgB;AAC9B,+CAA+C;AAC/C;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA,YAAY,gDAAgD;AAC5D;AACA,oBAAoB,OAAO;AAC3B;AACA,sCAAsC,qDAAqD;AAC3F;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,+CAA+C,aAAa;;AAE5D,CAAC;;AAED,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA,6DAA6D;AAC7D,CAAC,oCAAoC;;AAErC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,0BAA0B;AAC1B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,+BAA+B,sEAAsE;AACrG,+BAA+B;AAC/B,2CAA2C;AAC3C;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,gBAAgB,QAAQ;AACxB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,gBAAgB,QAAQ;AACxB;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,0BAA0B,QAAQ;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,gBAAgB,OAAO;AACvB;AACA;AACA;AACA;;AAEA;AACA,wDAAwD,sCAAsC;AAC9F,uDAAuD,gCAAgC;;AAEvF;AACA,mDAAmD,OAAO;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC,0BAA0B;AAC5D,gCAAgC,0BAA0B;AAC1D,mCAAmC,0BAA0B;AAC7D,mCAAmC,0BAA0B;;AAE7D;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,OAAO;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,+CAA+C;AAC/C,wDAAwD;AACxD;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,+BAA+B,sEAAsE;AACrG,+BAA+B;AAC/B,+BAA+B,oFAAoF;AACnH,kCAAkC;AAClC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,+BAA+B,4BAA4B;AAC3D,+BAA+B,4BAA4B;AAC3D,+BAA+B,4BAA4B,4FAA4F;AACvJ,kCAAkC;AAClC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,+BAA+B;AAC/B,+BAA+B;AAC/B,+BAA+B,oFAAoF,0EAA0E;AAC7L,+BAA+B;AAC/B,kCAAkC;AAClC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,wDAAwD;AACxD,iDAAiD;AACjD;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,+BAA+B,sEAAsE;AACrG,+BAA+B,4BAA4B;AAC3D,+BAA+B;AAC/B,oCAAoC;AACpC;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC;;AAED;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,+BAA+B,4BAA4B;AAC3D,+BAA+B,kDAAkD;AACjF,+BAA+B,4BAA4B;AAC3D,oCAAoC;AACpC;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC;;AAED;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,+BAA+B;AAC/B,+BAA+B;AAC/B,+BAA+B,kGAAkG;AACjI,+BAA+B;AAC/B,oCAAoC;AACpC;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,wDAAwD;AACxD,8CAA8C;AAC9C;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,+BAA+B,sEAAsE;AACrG,+BAA+B;AAC/B,+BAA+B;AAC/B,oCAAoC;AACpC;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC;;AAED;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,+BAA+B,4BAA4B;AAC3D,+BAA+B,kDAAkD;AACjF,+BAA+B,4BAA4B;AAC3D,oCAAoC;AACpC;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC;;AAED;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,+BAA+B;AAC/B,+BAA+B;AAC/B,+BAA+B,kGAAkG;AACjI,+BAA+B;AAC/B,oCAAoC;AACpC;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,wDAAwD;AACxD,+DAA+D;AAC/D;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA,kDAAkD;AAClD;AACA,+BAA+B,sEAAsE;AACrG,+BAA+B;AAC/B,+BAA+B,0DAA0D;AACzF,iEAAiE;AACjE;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,2BAA2B,6BAA6B;AACxD,0BAA0B,4BAA4B;AACtD,2BAA2B,6BAA6B;AACxD,kDAAkD;AAClD;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,iCAAiC,QAAQ;AACzC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,WAAW;AACzB;AACA,cAAc,OAAO;AACrB;AACA,kBAAkB,QAAQ;AAC1B;AACA,cAAc,WAAW;AACzB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,+BAA+B,sEAAsE;AACrG,+BAA+B;AAC/B;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,kEAAkE,OAAO;AACzE;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,gBAAgB,OAAO;AACvB,kEAAkE,OAAO;AACzE;AACA;AACA;AACA;AACA;;AAEA,gCAAgC,OAAO;AACvC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,iDAAiD,OAAO;AACxD,oBAAoB,OAAO;AAC3B,uBAAuB,OAAO;AAC9B;AACA;AACA;;AAEA;AACA;AACA,oEAAoE,OAAO;AAC3E,6BAA6B,OAAO;AACpC;AACA;AACA,QAAQ;AACR;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,2DAA2D,OAAO;AAClE,2BAA2B,OAAO;AAClC;AACA;AACA;AACA;;AAEA;AACA;AACA,mCAAmC,OAAO;AAC1C,oCAAoC,OAAO;AAC3C;AACA;AACA;AACA;AACA,sBAAsB,OAAO;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,8CAA8C,6BAA6B;AAC3E;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,8CAA8C,2BAA2B;AACzE;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,+CAA+C,aAAa;;AAE5D,CAAC;;AAED,CAAC,EAAE,cAAc;AACjB;AACA;AACA;AACA;AACA,6DAA6D;AAC7D,CAAC,oCAAoC;;AAErC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,UAAU;AACV;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,gCAAgC;AAChC;AACA,KAAK;AACL;AACA;AACA,gCAAgC;AAChC;AACA,KAAK;AACL;AACA;AACA,gCAAgC;AAChC;AACA,KAAK;AACL;AACA;AACA,gCAAgC;AAChC;AACA;AACA;AACA;;AAEA,YAAY,4BAA4B;AACxC;AACA;AACA,kCAAkC;;AAElC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,+CAA+C,aAAa;;AAE5D,CAAC;;AAED,CAAC,EAAE,cAAc;AACjB;AACA;AACA;AACA;AACA,6DAA6D;AAC7D,CAAC,4BAA4B;;AAE7B;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,sDAAsD;AACtD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,oDAAoD;AACpD,UAAU;AACV,oDAAoD;AACpD;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B,8BAA8B,2CAA2C;AACzE;AACA;;AAEA;AACA;;AAEA;AACA;AACA,CAAC;AACD;AACA,CAAC;AACD;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;AACD;AACA,CAAC;AACD;AACA,CAAC;AACD;AACA,CAAC;AACD;;AAEA;AACA;AACA,CAAC;AACD;AACA,CAAC;AACD;AACA,CAAC;AACD;AACA,CAAC;AACD;;AAEA;AACA;AACA,CAAC;AACD;AACA,CAAC;AACD;AACA,CAAC;AACD;AACA,CAAC;AACD;;AAEA;AACA;AACA,CAAC;AACD;AACA,CAAC;AACD;AACA,CAAC;AACD;AACA,CAAC;AACD;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC;AACD;AACA,CAAC;AACD;AACA,CAAC;AACD;AACA,CAAC;AACD;;AAEA;AACA;AACA;AACA,CAAC;AACD;AACA,CAAC;AACD;AACA,CAAC;AACD;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA,CAAC;AACD;AACA,CAAC;AACD;AACA,CAAC;AACD;AACA,CAAC;AACD;;AAEA;AACA;AACA,CAAC;AACD;AACA,CAAC;AACD;AACA,CAAC;AACD;AACA,CAAC;AACD;;AAEA;AACA;AACA,CAAC;AACD;AACA,CAAC;AACD;AACA,CAAC;AACD;AACA,CAAC;AACD;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC;AACD;AACA,CAAC;AACD;AACA,CAAC;AACD;AACA,CAAC;AACD;;AAEA;AACA;AACA;AACA,CAAC;AACD;AACA,CAAC;AACD;AACA,CAAC;AACD;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,+CAA+C,aAAa;;AAE5D,CAAC;;AAED,CAAC,GAAG;AACJ;AACA,CAAC,EAAE,UAAU;AACb;AACA;AACA;AACA;AACA,6DAA6D;AAC7D,CAAC,4BAA4B;;AAE7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sIAAsI;;AAEtI;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,SAAS;AACT,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,qBAAqB;AACrB;AACA,+BAA+B;AAC/B;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,+CAA+C,aAAa;;AAE5D,CAAC;;AAED,CAAC,GAAG;AACJ;AACA,oBAAoB,sBAAsB;AAC1C;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,kBAAkB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,eAAe;AAC1C;AACA,yBAAyB,cAAc;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,2CAA2C;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,KAAK;AAClB;AACA;AACA,IAAI;AACJ,aAAa,KAAK;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA,2EAA2E;AAC3E;AACA;AACA;;AAEA,0BAA0B,cAAc;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,wBAAwB,SAAS;AACjC,MAAM;AACN,4BAA4B,YAAY;AACxC;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,UAAU;AACV;AACA;AACA,MAAM;;AAEN;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,0CAA0C;;AAE1C;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,0CAA0C;;AAE1C,sBAAsB;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;;AAEN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA;;AAEA,0CAA0C,SAAS;AACnD;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,gBAAgB,kBAAkB;AAClC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;;AAEN;;AAEA,6BAA6B,+BAA+B;;AAE5D;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,mDAAmD;;AAEnD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAM;;AAEN;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;;AAEN;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,wBAAwB,YAAY;AACpC;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,MAAM;;AAEN;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;;AAEN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yFAAyF;AACzF;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,6CAA6C;;AAE7C,wDAAwD;AACxD,wDAAwD;AACxD,wDAAwD;AACxD,wDAAwD;;AAExD;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;;AAEN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;;AAEN;AACA;;AAEA,4CAA4C;AAC5C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kDAAkD,SAAS;AAC3D;AACA;AACA;AACA;AACA;;AAEA;AACA,gBAAgB,sBAAsB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uCAAuC,SAAS;AAChD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB,yCAAyC;AAC3D;;AAEA,oBAAoB,iBAAiB;AACrC,wBAAwB,oBAAoB;AAC5C,4BAA4B,SAAS;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA,uBAAuB;;AAEvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gCAAgC;AAChC,aAAa;AACb;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,kBAAkB;AACrC;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV,uBAAuB,kBAAkB;AACzC;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA,uBAAuB,gBAAgB;AACvC,2BAA2B,mBAAmB;AAC9C;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;;AAET;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,2BAA2B,eAAe;AAC1C,+BAA+B,kBAAkB;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA,CAAC,EAAE,oCAAoC;AACvC;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,+BAA+B;AAClC;;AAEA;;AAEA,CAAC,EAAE,oCAAoC;AACvC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,YAAY;AAC5B;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,sBAAsB,YAAY;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,YAAY;AAC1B;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gPAAgP;AACnP;;AAEA;AACA,yCAAyC,mBAAmB;;AAE5D,oCAAoC;;AAEpC,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA,CAAC,EAAE,oCAAoC;AACvC;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,mBAAmB;AACtB;;AAEA;AACA;;AAEA,oCAAoC;;AAEpC,CAAC,EAAE,mBAAmB;AACtB;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA,CAAC,EAAE,2CAA2C;AAC9C;;AAEA;;AAEA,CAAC,EAAE,oCAAoC;AACvC;;AAEA;AACA;AACA;AACA,SAAS;AACT,eAAe,YAAY,IAAI,cAAc;AAC7C;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,aAAa,YAAY;AACzB;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,mCAAmC;AACtC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,GAAG;AACH;AACA;AACA;AACA;;AAEA,CAAC,EAAE,uDAAuD;AAC1D;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA,CAAC;;AAED,CAAC,EAAE,sEAAsE;AACzE;;AAEA;;AAEA,CAAC,EAAE,iBAAiB;AACpB;;AAEA;;AAEA,YAAY;;AAEZ,oCAAoC;;AAEpC,CAAC,EAAE,iBAAiB;AACpB;;AAEA,gDAAgD;;AAEhD,kCAAkC;;AAElC,CAAC,EAAE,uBAAuB;AAC1B;;AAEA;;AAEA,CAAC,EAAE,oCAAoC;AACvC;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;;AAEA,qCAAqC;;AAErC,CAAC,EAAE,kBAAkB;AACrB;;AAEA;AACA;AACA;;AAEA;AACA,gBAAgB;AAChB;AACA;AACA;AACA,EAAE;AACF;AACA;;AAEA,CAAC,EAAE,wCAAwC;AAC3C;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;;AAEA,CAAC,EAAE,iBAAiB;AACpB;;AAEA;;AAEA,CAAC,EAAE,oCAAoC;AACvC;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF,CAAC;AACD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,oBAAoB;AACpB;AACA,KAAK;AACL,4DAA4D;AAC5D;;AAEA;AACA,2DAA2D;;AAE3D;AACA;AACA,2DAA2D;;AAE3D;AACA,EAAE;AACF;;AAEA;;AAEA,CAAC,EAAE,wDAAwD;AAC3D;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,kBAAkB;AACrB;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,iBAAiB;AACpB;;AAEA;;AAEA,CAAC,EAAE,oCAAoC;AACvC;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF,CAAC;AACD;;AAEA,CAAC,EAAE,wGAAwG;AAC3G;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,cAAc,YAAY;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,mHAAmH;AACtH;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,wIAAwI;AAC3I;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,IAAI;AACJ;AACA,kCAAkC;AAClC,aAAa;AACb,IAAI;AACJ;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,IAAI;AACJ,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,IAAI;AACJ;AACA;AACA;AACA,IAAI;AACJ,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;;AAEA,CAAC,EAAE,wKAAwK;AAC3K;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,kHAAkH;AACrH;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF,CAAC;AACD;;AAEA,CAAC,EAAE,wEAAwE;AAC3E;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,oBAAoB;AACvB;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,8DAA8D;AACjE;;AAEA;AACA,mBAAmB;;AAEnB;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,aAAa;;AAEb;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,sBAAsB;AACzB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA,CAAC,EAAE,QAAQ;AACX;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;;AAEA,CAAC,EAAE,8BAA8B;AACjC;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,EAAE;AACF;;AAEA,CAAC,EAAE,uCAAuC;AAC1C;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH,EAAE;AACF;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;;AAEA;AACA;;AAEA;AACA;AACA;AACA,+BAA+B,uBAAuB;AACtD,CAAC;;AAED;AACA;AACA;AACA,2BAA2B,iEAAiE;AAC5F,0BAA0B,8BAA8B;AACxD,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,6KAA6K;AAChL;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,kBAAkB;AACrB;;AAEA;;AAEA,CAAC,EAAE,wCAAwC;AAC3C;;AAEA;AACA;;AAEA;AACA;AACA;AACA,kCAAkC,aAAa,aAAa;AAC5D,GAAG;AACH;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;AACA,CAAC;;AAED,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;;AAEA;AACA;AACA,4DAA4D,6BAA6B;AACzF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF,CAAC;AACD;;AAEA,CAAC,EAAE,gRAAgR;AACnR;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,sBAAsB,cAAc;AACpC;AACA,GAAG;AACH,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,CAAC;;AAED,CAAC,GAAG;AACJ;;AAEA;;AAEA,CAAC,EAAE,8CAA8C;AACjD;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,sBAAsB;AACzB;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,4BAA4B,iBAAiB;AAC7C,kBAAkB,SAAS;AAC3B;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA,mDAAmD,OAAO;AAC1D;AACA;AACA,QAAQ;AACR;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,YAAY;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC,eAAe;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,kBAAkB;AACpC;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,yBAAyB;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,iBAAiB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,OAAO;AACtC;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,oBAAoB,kBAAkB;AACtC;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,ohBAAohB;AACvhB;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC,EAAE,iBAAiB;AACpB;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,WAAW,WAAW;AACrC;AACA;AACA;AACA;;AAEA,eAAe,WAAW,YAAY;AACtC;AACA;AACA;AACA;;AAEA,gBAAgB,YAAY,YAAY;AACxC;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,oCAAoC;AACpC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,gBAAgB,YAAY,YAAY;AACxC,gBAAgB,YAAY,YAAY;AACxC,gBAAgB,YAAY,aAAa;;AAEzC;AACA,yBAAyB,yBAAyB;AAClD,6BAA6B,qBAAqB;AAClD,6BAA6B,yBAAyB;;AAEtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,oBAAoB,YAAY,YAAY;AAC5C,oBAAoB,YAAY,YAAY;AAC5C,oBAAoB,YAAY,aAAa;;AAE7C,sBAAsB,cAAc,cAAc;AAClD,sBAAsB,cAAc,cAAc;AAClD,sBAAsB,cAAc,eAAe;;AAEnD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,qCAAqC,aAAa;AAClD;AACA;AACA;AACA;;AAEA,sCAAsC,gCAAgC;AACtE,sCAAsC,gCAAgC;;AAEtE;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,8BAA8B;AAC9B;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,YAAY,cAAc;AAC1B,UAAU,cAAc;;AAExB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA,gCAAgC,yCAAyC;AACzE,+BAA+B,sCAAsC;AACrE,4BAA4B,yBAAyB;AACrD,+BAA+B,sBAAsB;AACrD,yBAAyB,oBAAoB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA,uCAAuC,gDAAgD,gCAAgC,8DAA8D,8BAA8B,2BAA2B,2EAA2E,uCAAuC,gCAAgC,+BAA+B,sBAAsB,sKAAsK,2DAA2D,qCAAqC,6DAA6D,yDAAyD,oCAAoC,6CAA6C,8CAA8C,mCAAmC,qCAAqC,SAAS;;AAEjgC,uCAAuC,kDAAkD,+BAA+B,8BAA8B,gCAAgC,+BAA+B,uCAAuC,gCAAgC,uCAAuC,qEAAqE,SAAS,wBAAwB,gEAAgE,yDAAyD,oGAAoG,mHAAmH,0HAA0H,oCAAoC,8BAA8B,mCAAmC,2CAA2C,0CAA0C,6CAA6C,2BAA2B,6BAA6B,6BAA6B,+HAA+H,iCAAiC,SAAS;AACx1C,EAAE;;AAEF;AACA;;AAEA,UAAU;AACV;;AAEA;AACA;;AAEA,8BAA8B,MAAM;AACpC,gBAAgB;;AAEhB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;;;AAGF;AACA;AACA,+CAA+C,uBAAuB;AACtE;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,0BAA0B;;AAE1B;AACA,sCAAsC;;AAEtC;AACA;;AAEA,oBAAoB;;AAEpB;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB,oBAAoB;;AAEpB;AACA,oBAAoB;;AAEpB,wBAAwB;;AAExB,qCAAqC;;AAErC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,UAAU;;AAEV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;;AAEJ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,uCAAuC;AACvC,wCAAwC;AACxC,8DAA8D;;AAE9D;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe;;AAEf;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;;AAEJ;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;;AAEA;AACA,yBAAyB;AACzB,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA,kBAAkB,sBAAsB;AACxC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB,qBAAqB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA,mBAAmB,wBAAwB;AAC3C;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA,8BAA8B,0BAA0B;AACxD;AACA;AACA,qBAAqB,WAAW;AAChC;AACA;AACA;AACA;AACA;AACA,uBAAuB,aAAa;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,+BAA+B,0BAA0B;AACzD;AACA;AACA;;AAEA,qBAAqB,eAAe;AACpC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA,kBAAkB;AAClB,mBAAmB,8CAA8C;AACjE,mBAAmB,+CAA+C;AAClE;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,qBAAqB;;AAErB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,KAAK;;AAEL,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;;AAEA,oCAAoC;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA,uCAAuC;AACvC;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA,kBAAkB;;AAElB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,sBAAsB,SAAS;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,WAAW;AACjC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,yBAAyB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA,2DAA2D,aAAa;;AAExE;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;;AAGA,CAAC,EAAE,0TAA0T;AAC7T,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC;AACtC;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,YAAY;AACjB;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,aAAa,mBAAmB,qBAAM,mBAAmB,qBAAM,mFAAmF;AACnJ,CAAC,EAAE,oBAAoB;AACvB;AACA;AACA;AACA;AACA,kBAAkB,sBAAsB;AACxC;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,aAAa,mBAAmB,qBAAM,mBAAmB,qBAAM,mFAAmF;AACnJ,CAAC,EAAE,iBAAiB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,iBAAiB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS,WAAW;;AAEpB;AACA;AACA;AACA,SAAS,WAAW;;AAEpB;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA,SAAS,WAAW;;AAEpB;AACA;AACA,SAAS,UAAU;;AAEnB;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA,CAAC,GAAG;AACJ;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;;AAEA;AACA;AACA,qJAAqJ;AACrJ;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,WAAW;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,OAAO;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA,CAAC,sBAAsB;;AAEvB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA,EAAE;AACF,oDAAoD,+BAA+B,8BAA8B;;AAEjH;AACA;AACA;AACA,qFAAqF,yBAAyB;AAC9G;AACA;;;AAGA,yCAAyC;;AAEzC;AACA,mBAAmB,aAAa;AAChC;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,OAAO;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,wBAAwB,cAAc;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,iBAAiB;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,uBAAuB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,EAAE,UAAU,EAAE,aAAa,EAAE,gBAAgB,EAAE,UAAU,GAAG;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,oBAAoB,cAAc;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8EAA8E,SAAS;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,iBAAiB,EAAE,qCAAqC,iBAAiB,EAAE;AACjI;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,iEAAiE,EAAE;AACnE;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,oBAAoB,QAAQ;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD;AACxD;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,iBAAiB;AAClE;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,iBAAiB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,8BAA8B;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,yBAAyB;AAC7D;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,qCAAqC,4BAA4B;AACjE;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,yBAAyB;AACrD;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAmD,cAAc;AACjE;AACA;AACA,mDAAmD,qBAAqB;AACxE;AACA;AACA,mDAAmD,gBAAgB;AACnE;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD,mBAAmB;AAC1E;AACA;AACA;AACA;AACA;AACA,uDAAuD,mBAAmB;AAC1E;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,cAAc;AACzD;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD;AACjD;AACA;AACA;AACA;AACA;AACA,0CAA0C,iBAAiB;AAC3D;AACA;AACA;AACA;AACA,qDAAqD,qBAAqB;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,CAAC;AACD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mCAAmC,iBAAiB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,qCAAqC,iBAAiB;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iBAAiB;AACjB,mBAAmB;AACnB,mBAAmB;AACnB,oBAAoB;AACpB,kBAAkB;AAClB,mBAAmB;AACnB,kBAAkB;AAClB,kBAAkB;AAClB,qBAAqB;AACrB,sBAAsB;AACtB,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN,iDAAiD,iBAAiB;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA,CAAC;AACD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,0CAA0C,iBAAiB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN,sCAAsC,iBAAiB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA,sCAAsC,iBAAiB;AACvD;AACA;AACA;AACA;AACA,cAAc;AACd;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,WAAW,iBAAiB;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,sBAAsB;AAC1C;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,sBAAsB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,iBAAiB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,iBAAiB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,0CAA0C,iBAAiB;AAC3D;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,8CAA8C,qBAAqB;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,wCAAwC,mBAAmB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,iBAAiB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,yBAAyB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,0BAA0B,mBAAmB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,SAAS;AACjD;AACA,4CAA4C,cAAc;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,qBAAqB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,iBAAiB;AACrD;AACA,wBAAwB,qBAAqB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;AACA,sBAAsB,uBAAuB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,qBAAqB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,wBAAwB;AAC5C;AACA,wBAAwB,2BAA2B;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,wBAAwB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,qBAAqB;AAC9D;AACA,uCAAuC,iBAAiB;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,qBAAqB;AAC9D;AACA;AACA,qCAAqC,iBAAiB;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,qBAAqB;AACnE;AACA,+CAA+C,qBAAqB;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,iBAAiB;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,qBAAqB;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,iBAAiB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,qBAAqB;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,6BAA6B;AACzD;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN,kEAAkE,IAAI;AACtE,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kCAAkC,iBAAiB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,iBAAiB;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,wBAAwB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC,iBAAiB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,yCAAyC,iBAAiB;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,wBAAwB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,iBAAiB;AAC3D;AACA,wFAAwF,wBAAwB;AAChH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,iBAAiB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,iBAAiB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,qBAAqB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,iBAAiB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,qBAAqB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,mBAAmB;AAC5D;AACA;AACA;AACA,cAAc;AACd;AACA,cAAc;AACd;AACA,cAAc;AACd;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,iBAAiB;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,qBAAqB;AACrE;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,qBAAqB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,iBAAiB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,iBAAiB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,gEAAgE;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,iBAAiB;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,iBAAiB;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,iBAAiB;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,iBAAiB;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA,iDAAiD,iBAAiB;AAClE;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,wBAAwB,6BAA6B;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,qBAAqB;AACnE;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8HAA8H,2BAA2B;AACzJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,gDAAgD,iBAAiB;AACjE;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,kBAAkB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,UAAU;AACvC;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,UAAU;AACV;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,iBAAiB;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,MAAM;AACN;AACA;AACA;AACA,4EAA4E;AAC5E,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,uBAAuB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,6CAA6C;AAC7C;AACA,yBAAyB;AACzB,SAAS;AACT,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,kBAAkB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,oBAAoB;AAC9C;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,sHAAsH,IAAI,IAAI;AAC9H,iKAAiK,uEAAuE;AACxO;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,wBAAwB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA,MAAM;AACN;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,cAAc;AACd;AACA,cAAc;AACd;AACA,cAAc;AACd;AACA,cAAc;AACd;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAqE,iBAAiB;AACtF;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oEAAoE,iBAAiB;AACrF;AACA;AACA,iBAAiB;AACjB;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,gCAAgC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN,8CAA8C,aAAa,mEAAmE;AAC9H;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,UAAU;AAClC,mFAAmF,UAAU;AAC7F;AACA,wBAAwB,MAAM;AAC9B,mFAAmF,MAAM;AACzF;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,iBAAiB;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,qBAAqB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,wBAAwB,qBAAqB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,iBAAiB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,UAAU;AAChC,0BAA0B,UAAU;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,uBAAuB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,kBAAkB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C,sBAAsB;AACrE;AACA;AACA,qDAAqD,qBAAqB;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,iBAAiB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAmD,iBAAiB;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA,kCAAkC,iBAAiB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC,iBAAiB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC,iBAAiB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC,iBAAiB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,gBAAgB;AACzC;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qFAAqF;AACrF;AACA;AACA,6EAA6E;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,iBAAiB;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,iBAAiB;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,iBAAiB;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,iBAAiB;AACvE;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,iBAAiB;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,iBAAiB;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,iBAAiB;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iEAAiE;AACjE,SAAS;AACT,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,UAAU;AACV,+EAA+E;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,UAAU;AACV,wEAAwE,2BAA2B,+BAA+B,uBAAuB,+BAA+B,2BAA2B;AACnN;AACA;AACA;AACA,aAAa;AACb,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,oDAAoD,oCAAoC,2CAA2C,gCAAgC,2CAA2C,oCAAoC;AAClP,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,qEAAqE;AACrE;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA2D;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gGAAgG;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yEAAyE,iBAAiB;AAC1F;AACA;AACA,+EAA+E,iBAAiB;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,oBAAoB;AAC5C,wBAAwB,oBAAoB;AAC5C,cAAc,oBAAoB;AAClC,cAAc,oBAAoB;AAClC,cAAc,oBAAoB;AAClC,cAAc,oBAAoB;AAClC,wBAAwB,oBAAoB;AAC5C,4BAA4B,oBAAoB;AAChD,uBAAuB,oBAAoB;AAC3C,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,oBAAoB;AACvC,mBAAmB,oBAAoB;AACvC,2BAA2B,oBAAoB;AAC/C,qBAAqB,oBAAoB;AACzC,4BAA4B,oBAAoB;AAChD,0BAA0B,oBAAoB;AAC9C,sBAAsB,oBAAoB;AAC1C,mBAAmB,oBAAoB;AACvC,qBAAqB,oBAAoB;AACzC,qBAAqB,oBAAoB;AACzC,uBAAuB,oBAAoB;AAC3C,uBAAuB,oBAAoB;AAC3C,uBAAuB,oBAAoB;AAC3C,6BAA6B,oBAAoB;AACjD,kBAAkB,oBAAoB;AACtC,uBAAuB,oBAAoB;AAC3C,+BAA+B;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,oBAAoB;AACvC,mBAAmB,oBAAoB;AACvC,yCAAyC,oBAAoB;AAC7D,0CAA0C,oBAAoB;AAC9D,wCAAwC,oBAAoB;AAC5D,yCAAyC,oBAAoB;AAC7D,iCAAiC,oBAAoB;AACrD,yCAAyC,oBAAoB;AAC7D,eAAe,oBAAoB;AACnC,6BAA6B,oBAAoB;AACjD,2BAA2B,oBAAoB;AAC/C,qCAAqC,oBAAoB;AACzD,mCAAmC,oBAAoB;AACvD,6BAA6B,oBAAoB;AACjD,2BAA2B,oBAAoB;AAC/C,qCAAqC,oBAAoB;AACzD,mCAAmC,oBAAoB;AACvD,wBAAwB,oBAAoB;AAC5C,sCAAsC,oBAAoB;AAC1D,oCAAoC,oBAAoB;AACxD,2BAA2B,oBAAoB;AAC/C,mCAAmC,oBAAoB;AACvD,sCAAsC,oBAAoB;AAC1D,uBAAuB,oBAAoB;AAC3C,wBAAwB,oBAAoB;AAC5C,uBAAuB,oBAAoB;AAC3C,uBAAuB,oBAAoB;AAC3C,mCAAmC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,oBAAoB;AAC5C,4BAA4B,oBAAoB;AAChD,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,iBAAiB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB;AACpB;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,QAAQ;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,iFAAiF;AACjF;AACA;AACA;AACA;AACA,2CAA2C,SAAS;AACpD;AACA;AACA;AACA;AACA;AACA,4BAA4B,SAAS;AACrC;AACA;AACA,MAAM;AACN,8BAA8B,WAAW;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,uFAAuF;AACvF,2FAA2F;AAC3F;AACA;AACA;AACA;AACA;AACA,yCAAyC,iBAAiB;AAC1D,yCAAyC,qBAAqB;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,SAAS;AACrC;AACA;AACA,MAAM;AACN,8BAA8B,WAAW;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,SAAS;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,iBAAiB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD,iBAAiB;AACzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,iBAAiB;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,iBAAiB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,iBAAiB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAyD,oBAAoB;AAC7E;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,qBAAqB;AACzC;AACA,wBAAwB,iBAAiB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,iBAAiB;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kFAAkF;AAClF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,+CAA+C,qBAAqB;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,qBAAqB;AAC9D;AACA,qCAAqC,iBAAiB;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oGAAoG;AACpG;AACA,yCAAyC,kBAAkB;;AAE3D;AACA,oBAAoB,qBAAqB;AACzC;AACA;AACA;AACA;AACA,sBAAsB,uBAAuB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,yBAAyB;AAC7C;AACA,wBAAwB,iBAAiB;AACzC;AACA;AACA;AACA;AACA;AACA,oBAAoB,oBAAoB;AACxC;AACA;AACA;AACA;AACA,oBAAoB,yBAAyB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,sBAAsB;AAC1C;AACA;AACA,4BAA4B,iBAAiB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,kBAAkB;AAC1C;AACA;AACA;AACA;AACA;AACA,oBAAoB,kBAAkB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,sBAAsB;AAC1C;AACA;AACA,wBAAwB,sBAAsB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,kBAAkB;AACtC;AACA,6CAA6C,iBAAiB;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,iBAAiB;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,mBAAmB;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,qBAAqB;AACjE;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,qBAAqB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,0BAA0B;AAC9C;AACA;AACA;AACA;AACA;;AAEA,gCAAgC,qFAAqF;AACrH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,yBAAyB,OAAO;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,yBAAyB,OAAO;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,yBAAyB,OAAO;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C,qBAAqB;AAClE;AACA,yCAAyC,iBAAiB;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,2CAA2C,kBAAkB;;AAE7D;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA,wBAAwB,2BAA2B;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,qBAAqB;;AAErB;AACA;AACA;AACA,2BAA2B,SAAS;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,qBAAqB;;AAErB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,cAAc;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,SAAS;AACjC;AACA;AACA,MAAM;AACN,4BAA4B,YAAY;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,0CAA0C,SAAS;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,kBAAkB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,YAAY;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,SAAS;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,sBAAsB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,SAAS;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,oBAAoB,iBAAiB;AACrC,wBAAwB,oBAAoB;AAC5C,4BAA4B,SAAS;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,SAAS;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,qBAAqB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mCAAmC,iBAAiB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,iBAAiB;AACpD;AACA;AACA;AACA;AACA,sDAAsD,gBAAgB,oBAAoB;AAC1F,sDAAsD,YAAY,oBAAoB;AACtF,sDAAsD,gBAAgB,oBAAoB;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,qCAAqC,iBAAiB;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8EAA8E;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,+CAA+C,qBAAqB;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,6EAA6E;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,iBAAiB;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0EAA0E,qBAAqB;AAC/F;AACA;AACA,0CAA0C,mBAAmB;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,qBAAqB;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,mBAAmB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,sBAAsB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED,gCAAgC,+EAA+E;AAC/G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,iBAAiB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,mBAAmB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,mBAAmB;AACvC;AACA;AACA;AACA;AACA;AACA,oBAAoB,mBAAmB;AACvC,wBAAwB,sBAAsB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,SAAS;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA4D,SAAS;AACrE;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,6CAA6C;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,qCAAqC,iBAAiB;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,yFAAyF;AACzF;AACA;AACA;AACA;AACA;AACA,0CAA0C,iBAAiB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4EAA4E,qBAAqB;AACjG;AACA;AACA,0CAA0C,mBAAmB;AAC7D;AACA;AACA;AACA;AACA,4CAA4C,qBAAqB;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,mBAAmB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,qBAAqB;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,mBAAmB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,oBAAoB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,qBAAqB;;AAErB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,0BAA0B;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,gDAAgD,mBAAmB;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,yBAAyB;AAC7C;AACA;AACA,wBAAwB,wBAAwB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,qBAAqB;AAC9D;AACA;AACA;AACA,kCAAkC,iBAAiB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,iBAAiB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,qCAAqC,iBAAiB;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8EAA8E;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,+CAA+C,qBAAqB;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,6EAA6E;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,iBAAiB;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA2D;AAC3D;AACA;AACA;AACA,qCAAqC,iBAAiB;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,yBAAyB;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,WAAW;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,OAAO;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,2BAA2B,aAAa,gCAAgC;AACxE;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,kBAAkB;AACtC;AACA;AACA,wBAAwB,iBAAiB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA,2EAA2E;AAC3E;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,qBAAqB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,kBAAkB;AACtC;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AACA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AACA;AACA,WAAW,UAAU;AACrB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,wBAAwB,SAAS;AACjC;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,eAAe;AAC7C;AACA;AACA;AACA;AACA,oBAAoB,gBAAgB;AACpC;AACA;AACA;AACA;AACA,oBAAoB,gBAAgB;AACpC;AACA;AACA;AACA;AACA,oBAAoB,gBAAgB;AACpC;AACA;AACA;AACA;AACA,oBAAoB,gBAAgB;AACpC;AACA;AACA;AACA;AACA,oBAAoB,gBAAgB;AACpC;AACA;AACA;AACA;AACA,oBAAoB,gBAAgB;AACpC;AACA;AACA;AACA;AACA,oBAAoB,gBAAgB;AACpC;AACA;AACA;AACA;AACA,oBAAoB,gBAAgB;AACpC;AACA;AACA;AACA;AACA,oBAAoB,gBAAgB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,gBAAgB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,cAAc;AACd;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,oCAAoC,mBAAmB;AACvD;;AAEA;AACA;AACA;;AAEA;AACA,iCAAiC,mBAAmB;;AAEpD;AACA;AACA;;AAEA;AACA,mBAAmB,uCAAuC;;AAE1D;AACA;;AAEA,sCAAsC,qBAAqB;AAC3D;AACA;;AAEA,wCAAwC,QAAQ;AAChD;;AAEA;AACA,0DAA0D;;AAE1D,gCAAgC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,kDAAkD;AAClD;AACA,yCAAyC;;AAEzC,cAAc;AACd,iDAAiD;AACjD;AACA;AACA;AACA;AACA;;AAEA,cAAc;AACd,gDAAgD;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,oBAAoB;AAC9B,UAAU,oBAAoB;AAC9B,YAAY,oBAAoB;AAChC,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,iBAAiB;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,0BAA0B;AAC9C;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,6DAA6D;AACjF;AACA;AACA;AACA,yCAAyC,iFAAiF;AAC1H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,oBAAoB,yBAAyB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,iBAAiB;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,mBAAmB;AACnE;AACA;AACA;AACA;AACA,4BAA4B,iBAAiB;AAC7C;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,mDAAmD,qBAAqB;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,+BAA+B;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,iBAAiB;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,2BAA2B;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,mBAAmB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,mBAAmB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,UAAU;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,gDAAgD,qBAAqB;AACrE;AACA,sDAAsD,iBAAiB;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,iBAAiB;AACjB,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,oBAAoB,qBAAqB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,qBAAqB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,qBAAqB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,oBAAoB,kBAAkB;AACtC;AACA;AACA,wBAAwB,qBAAqB;AAC7C;AACA;AACA;AACA;AACA,cAAc;AACd;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,cAAc;AACd;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,cAAc;AACd;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,cAAc;AACd;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT,MAAM;AACN;AACA;AACA,yBAAyB,uBAAuB;AAChD;AACA;AACA,6BAA6B,uBAAuB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,iBAAiB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,yCAAyC,iBAAiB;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yEAAyE;AACzE;AACA,wDAAwD,qBAAqB;AAC7E;AACA,sDAAsD,iBAAiB;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C,QAAQ;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,sBAAsB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,UAAU;AACjC,2BAA2B,UAAU;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,oBAAoB;AACxC;AACA,wDAAwD,SAAS;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,SAAS;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oEAAoE;AACpE,kEAAkE;AAClE,sEAAsE;AACtE,sEAAsE;AACtE;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gFAAgF;AAChF;AACA,2EAA2E;AAC3E;AACA;AACA,wFAAwF;AACxF;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB,+EAA+E;AAC/E;AACA,qBAAqB;AACrB;AACA;AACA,wGAAwG;AACxG;AACA,0GAA0G;AAC1G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,gCAAgC,2BAA2B;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wHAAwH,4DAA4D;AACpL;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,mBAAmB;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA4D;AAC5D;AACA;AACA;AACA;AACA,mEAAmE;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yFAAyF,qBAAqB;AAC9G;AACA;AACA,4CAA4C,iBAAiB;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,qDAAqD,qBAAqB;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,uEAAuE,qBAAqB;AAC5F;AACA;AACA;AACA;AACA,MAAM;AACN,qDAAqD,qBAAqB;AAC1E;AACA;AACA;AACA,MAAM;AACN,qDAAqD,qBAAqB;AAC1E;AACA,+CAA+C,qBAAqB;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6FAA6F;AAC7F;AACA;AACA;AACA,MAAM;AACN;AACA,+EAA+E;AAC/E,+EAA+E;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,iBAAiB;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAqE;AACrE;AACA,SAAS;AACT,MAAM;AACN,iFAAiF;AACjF;AACA;AACA;AACA,+EAA+E;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6EAA6E;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iGAAiG;AACjG;AACA;AACA;AACA,UAAU;AACV;AACA,mFAAmF;AACnF,mFAAmF;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iFAAiF;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,8CAA8C,QAAQ;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAmD,iBAAiB;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,qBAAqB;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA,2FAA2F;AAC3F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mEAAmE;AACnE;AACA;AACA,kDAAkD,iBAAiB;AACnE;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,iBAAiB;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,UAAU;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,mBAAmB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,kBAAkB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iHAAiH;AACjH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,cAAc;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,iCAAiC;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,kBAAkB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,4BAA4B;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,oBAAoB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,4BAA4B;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,iCAAiC;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAA0D,wBAAwB;AAClF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,iCAAiC;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAyD,mBAAmB;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;;AAEA;AACA,0BAA0B,KAAK,IAAI;AACnC;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA2D,wBAAwB;;AAEnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD,iBAAiB;AACtE;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA,8DAA8D;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yEAAyE,iBAAiB;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C,iBAAiB;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA,CAAC;AACD,qBAAqB;;AAErB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,qBAAqB;;AAErB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA,sBAAsB,8DAA8D;AACpF;AACA;AACA,sBAAsB,gEAAgE;AACtF;AACA;AACA,sBAAsB,oFAAoF;AAC1G;AACA;AACA;AACA;AACA;AACA,gDAAgD;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,eAAe;AACf;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8FAA8F,uBAAuB,aAAa,uBAAuB;AACzJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA2D,OAAO,sEAAsE,EAAE,6BAA6B,EAAE,6BAA6B,EAAE,mFAAmF,QAAQ,sBAAsB,eAAe;AACxU;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,OAAO;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,qBAAqB;;AAEtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,SAAS;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,UAAU;AACjC,2BAA2B,UAAU;AACrC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA,uCAAuC,iBAAiB;AACxD;AACA;AACA;AACA;AACA,sCAAsC,qBAAqB;AAC3D;AACA;AACA;;AAEA;AACA;AACA;AACA,oBAAoB,oBAAoB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,YAAY;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC;AACnC;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,kBAAkB;AAClB,sGAAsG,iBAAiB;AACvH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,qBAAqB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,iBAAiB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,uCAAuC,iBAAiB;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,oBAAoB,qBAAqB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,qBAAqB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,iBAAiB;AAClE;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,qBAAqB;AACzE;AACA,yCAAyC,iBAAiB;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,iBAAiB;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,kBAAkB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+GAA+G;AAC/G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,iBAAiB;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,qBAAqB;AAChE;AACA;AACA;AACA,yCAAyC,iBAAiB;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC;;AAED,gDAAgD;;AAEhD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,mBAAmB;AACzD;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB,oBAAoB,iBAAiB;AACrC;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA,wDAAwD,iBAAiB;AACzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,mBAAmB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,iBAAiB;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,qBAAqB;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,qBAAqB;AAC5D;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B;AAC5B,+BAA+B;AAC/B,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,4BAA4B;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,6DAA6D,iBAAiB;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,mCAAmC,iBAAiB;AACpD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,mCAAmC;AACrF,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,oBAAoB,wBAAwB;AAC5C;AACA;AACA,MAAM;AACN,oBAAoB,0BAA0B;AAC9C;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN,oBAAoB,2BAA2B;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,kBAAkB;AACtC;AACA;AACA;AACA;AACA;AACA,oDAAoD,SAAS;AAC7D;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD,iBAAiB;AACxE;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,2DAA2D,qBAAqB;AAChF;AACA;AACA,6CAA6C,qBAAqB;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,kBAAkB;AACtC;AACA;AACA,wBAAwB,iBAAiB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,kBAAkB;AACtC;AACA,wBAAwB,iBAAiB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,WAAW;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB;AACpB;AACA;AACA,gBAAgB,kBAAkB;AAClC;AACA;AACA;AACA;AACA,gBAAgB,iBAAiB;AACjC;AACA;AACA;AACA,gBAAgB,mBAAmB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,WAAW;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,eAAe;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,YAAY;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,YAAY;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,mBAAmB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,mBAAmB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,cAAc;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,iBAAiB;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,iBAAiB;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,iBAAiB;AACtD;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC,mBAAmB;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,mBAAmB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,mBAAmB;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA;AACA,mDAAmD;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,UAAU;AACtC;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,wBAAwB,iBAAiB;AACzC;AACA;AACA,MAAM;AACN,oBAAoB,iBAAiB;AACrC,4BAA4B,oBAAoB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,wBAAwB,0BAA0B;AAClD;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN,mCAAmC,gBAAgB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,MAAM;AACN,wBAAwB,mBAAmB;AAC3C;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,wBAAwB,mBAAmB;AAC3C;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN,oBAAoB,mBAAmB;AACvC;AACA;AACA;AACA;AACA,MAAM;AACN,oBAAoB,wCAAwC;AAC5D;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,kBAAkB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,oBAAoB,qBAAqB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA,UAAU;AACV,4BAA4B,qBAAqB;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,wBAAwB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,qBAAqB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,qBAAqB;AACzC;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,4BAA4B,6BAA6B;AACzD;AACA;AACA,UAAU;AACV;AACA,wBAAwB,6BAA6B;AACrD;AACA,gCAAgC,gCAAgC;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,mBAAmB;AACvC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAgB,0BAA0B;AAC1C;AACA;AACA;AACA,wBAAwB,iBAAiB;AACzC;AACA;AACA,UAAU;AACV,wBAAwB,iBAAiB;AACzC;AACA,4BAA4B,oBAAoB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,qBAAqB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,iBAAiB;AACzC;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN,oBAAoB,iBAAiB;AACrC;AACA;AACA,MAAM;AACN,wBAAwB,iBAAiB;AACzC;AACA,wBAAwB,oBAAoB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,SAAS;AAC7D;AACA;AACA;AACA,uCAAuC,aAAa;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,iBAAiB;AAC3D;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA,cAAc;AACd;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,cAAc;AACd;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,0CAA0C,iBAAiB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB;AACpB;AACA,0CAA0C,iBAAiB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,iBAAiB;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,iBAAiB;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,CAAC;;AAED,8CAA8C;;AAE9C;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,yBAAyB;AACzD;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C;AAC3C;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,kBAAkB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C;AAC5C;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,oBAAoB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,iBAAiB;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,iBAAiB;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,iBAAiB;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,oCAAoC,iBAAiB;AACrD;AACA;AACA,uEAAuE,QAAQ;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,iBAAiB;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,2GAA2G,UAAU,wBAAwB,MAAM;AACnJ;AACA;AACA;AACA,UAAU;AACV;AACA,oEAAoE,iBAAiB;AACrF;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,2BAA2B;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,2BAA2B;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,WAAW;AAC/B,wBAAwB,YAAY;AACpC;AACA;AACA;AACA,oBAAoB,YAAY;AAChC;AACA;AACA;AACA,gBAAgB,YAAY;AAC5B,oBAAoB,WAAW;AAC/B;AACA;AACA;AACA,oBAAoB,WAAW;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,OAAO;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,iBAAiB;AAC/D;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B,4BAA4B;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,iBAAiB;AAClE;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA,UAAU;AACV;AACA,2CAA2C,iBAAiB;AAC5D;AACA;AACA;AACA;AACA,qDAAqD;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,SAAS;AACT;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,oBAAoB,sBAAsB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,qBAAqB,QAAQ;AAC7B;AACA;AACA;AACA;AACA,wBAAwB,gBAAgB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,QAAQ;AAC5C;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,gBAAgB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,sBAAsB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,oBAAoB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C,gBAAgB;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAyD,oBAAoB;AAC7E;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,iBAAiB;AACjB;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C,gBAAgB;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAyD,oBAAoB;AAC7E;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,iBAAiB;AACjB;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C,iBAAiB;AAChE,kBAAkB;AAClB,oFAAoF,iBAAiB;AACrG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,6CAA6C,oBAAoB;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0HAA0H;AAC1H,0HAA0H;AAC1H;AACA,kIAAkI;AAClI,mJAAmJ;AACnJ,kIAAkI;AAClI;AACA;AACA,kIAAkI;AAClI,mJAAmJ;AACnJ,kIAAkI;AAClI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAyD,oBAAoB;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAyD,oBAAoB;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,2CAA2C;AAC3C;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA2D,wBAAwB;AACnF;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,oCAAoC;AACpC;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAyD,oBAAoB;AAC7E;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,mCAAmC,iBAAiB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C,iBAAiB;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oFAAoF,mBAAmB;AACvG,UAAU;AACV,+CAA+C,mBAAmB;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,iBAAiB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,iBAAiB;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,iBAAiB;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAqE,iBAAiB;AACtF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA,aAAa;AACb,qDAAqD,qBAAqB;AAC1E;AACA;AACA;AACA;AACA;AACA,gDAAgD,qBAAqB;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,oBAAoB,kBAAkB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,qBAAqB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,iBAAiB;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C,iBAAiB;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C,iBAAiB;AAChE;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,qBAAqB;AAC7D;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,4BAA4B;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,4BAA4B;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,aAAa;AACb;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oEAAoE,YAAY;AAChF,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,wBAAwB,wBAAwB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,6CAA6C,sBAAsB;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,aAAa;AACb,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,iBAAiB;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,qBAAqB;AAChE;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C,iBAAiB;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,qBAAqB;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA,6DAA6D,gCAAgC;AAC7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,iBAAiB;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,sDAAsD,mBAAmB;AACzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,wBAAwB,gBAAgB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,uCAAuC,iBAAiB;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,oBAAoB,mBAAmB;AACvC;AACA;AACA,sBAAsB,qBAAqB;AAC3C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD;AACjD,+CAA+C;AAC/C;AACA;AACA;AACA,uBAAuB,wBAAwB;AAC/C;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,UAAU;AACV;AACA;AACA;AACA,uBAAuB,uBAAuB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,gBAAgB,uBAAuB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,kBAAkB;AAClB;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,wBAAwB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,oBAAoB,uCAAuC;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,8BAA8B;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,gCAAgC,oCAAoC;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,iBAAiB;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C,qBAAqB;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,iBAAiB;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C,qBAAqB;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,UAAU;AAChC,0BAA0B,UAAU;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,0BAA0B;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAA0D,gCAAgC;AAC1F;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA,yCAAyC,iBAAiB;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,SAAS;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,QAAQ;AACpD;AACA;AACA,0BAA0B,wBAAwB;AAClD;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,iBAAiB;AACjB;AACA,cAAc;AACd;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,4BAA4B;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA,cAAc;AACd;AACA;AACA;AACA,2CAA2C,mBAAmB;AAC9D;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,8BAA8B,kBAAkB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,iBAAiB;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,qBAAqB;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,6BAA6B;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA2D,iBAAiB;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gEAAgE,iBAAiB;AACjF;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,uBAAuB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,uCAAuC;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C,QAAQ;AACvD;AACA;AACA;AACA,MAAM;AACN,uDAAuD,oCAAoC;AAC3F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,iBAAiB;AACrD;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,iBAAiB;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,kCAAkC,iBAAiB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,qBAAqB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,mCAAmC;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,oBAAoB,4BAA4B;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,4BAA4B;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAmD,mBAAmB;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,oBAAoB,mCAAmC;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,qCAAqC;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0EAA0E,iBAAiB;AAC3F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC,iBAAiB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAyD,mBAAmB;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,yDAAyD,mBAAmB;AAC5E;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,yDAAyD,mBAAmB;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAmD,iBAAiB;AACpE;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,uCAAuC,iBAAiB;AACxD;AACA;AACA,2CAA2C,SAAS,gBAAgB;AACpE;AACA;AACA;AACA;AACA;AACA,kDAAkD,mBAAmB;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD,mBAAmB;AAC3E,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,iBAAiB;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,iBAAiB;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,mBAAmB;AACzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,mBAAmB;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,mBAAmB;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,gEAAgE,YAAY;AAC5E;AACA,+FAA+F,gBAAgB;AAC/G;AACA;AACA;AACA;AACA,2CAA2C,SAAS,UAAU;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C,QAAQ;AACrD;AACA;AACA;AACA,0DAA0D,qBAAqB;AAC/E;AACA;AACA;AACA,gEAAgE,mBAAmB;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,+CAA+C,UAAU;AACzD;AACA;AACA,oDAAoD,QAAQ;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,0DAA0D,qBAAqB;AAC/E;AACA;AACA;AACA,oEAAoE,qBAAqB;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,iBAAiB;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,iBAAiB;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,qBAAqB;AACzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL,yDAAyD;;AAEzD,uDAAuD,mMAAmM,oCAAoC,0BAA0B,uCAAuC,gDAAgD,oCAAoC,6DAA6D,4CAA4C,wFAAwF,6DAA6D,6CAA6C,8DAA8D,kEAAkE,kEAAkE,iCAAiC,yJAAyJ,kHAAkH,uDAAuD;;AAEnwC,2CAA2C,wBAAwB,aAAa,+BAA+B,oDAAoD,WAAW;;AAE9K,2CAA2C,sBAAsB,aAAa,sCAAsC;;AAEpH,yDAAyD,4BAA4B,4BAA4B,4BAA4B,uBAAuB,oBAAoB,wBAAwB,0BAA0B,qBAAqB,qBAAqB,aAAa,iCAAiC,2EAA2E,mCAAmC,mCAAmC,8EAA8E,oCAAoC,gDAAgD,oDAAoD,WAAW;;AAEprB,mDAAmD,8BAA8B,8BAA8B,iCAAiC,iCAAiC,wBAAwB,wBAAwB,qCAAqC,qBAAqB,qBAAqB,qBAAqB,aAAa,qCAAqC,yHAAyH,0HAA0H;;AAE1mB,sCAAsC,6UAA6U,mXAAmX,qCAAqC,kCAAkC,gDAAgD,oEAAoE,uHAAuH,8EAA8E,oDAAoD,WAAW;;A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Cd;AACA,oGAAoG,0EAA0E;AAC9K,kBAAkB;AAClB,qJAAqJ,0EAA0E;AAC/N;AACA;AACA,UAAU;AACV;AACA,kGAAkG,8DAA8D,+DAA+D;AAC/N,cAAc;AACd;AACA,mIAAmI,0EAA0E;AAC7M,kBAAkB;AAClB,oLAAoL,0EAA0E;AAC9P;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,sDAAsD;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,wCAAwC,uBAAuB;AAC/D;AACA;AACA;AACA;AACA,iDAAiD,mBAAmB;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAmD,qBAAqB;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iDAAiD;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,6BAA6B;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,0BAA0B;AAChD;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,mBAAmB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qFAAqF,YAAY;AACjG;AACA,iCAAiC;AACjC,2CAA2C,iBAAiB;AAC5D;AACA,qDAAqD;AACrD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iKAAiK,wEAAwE;AACzO;;AAEA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4FAA4F,8BAA8B;AAC1H;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yEAAyE,cAAc;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,mBAAmB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,mBAAmB;AAC7D;AACA,0BAA0B,oCAAoC;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,qBAAqB;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,cAAc;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,iBAAiB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,0BAA0B;AAC9C;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,sBAAsB;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,wBAAwB;AAChD;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,kBAAkB;AAClB,sCAAsC,4BAA4B;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,qBAAqB;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,iBAAiB;AACjE;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,gDAAgD,qBAAqB;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,mBAAmB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,mBAAmB;AACrE;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,qDAAqD,qBAAqB;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,sCAAsC;AAC9D,wBAAwB,mBAAmB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,iBAAiB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,mCAAmC,iBAAiB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,iBAAiB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,mCAAmC,iBAAiB;AACpD;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,oBAAoB;AAC/D;AACA,UAAU;AACV,qFAAqF,oBAAoB;AACzG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,iBAAiB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,oBAAoB;AAChE;AACA;AACA;AACA;AACA;AACA,oCAAoC,iBAAiB;AACrD;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,cAAc;AAClC;AACA;AACA;AACA,oBAAoB,mBAAmB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,iBAAiB;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,iBAAiB;AACrD;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,mBAAmB;AAC3C;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,qBAAqB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,mBAAmB;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,wBAAwB;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,qCAAqC;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,qBAAqB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,2BAA2B;AAC/C;AACA;AACA,wBAAwB,uBAAuB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,UAAU;AACjC;AACA;AACA,0BAA0B,6BAA6B;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,oBAAoB;AACnC,eAAe,oBAAoB;AACnC,gBAAgB,oBAAoB;AACpC,gBAAgB,oBAAoB;AACpC,yBAAyB,oBAAoB;AAC7C,iBAAiB,oBAAoB;AACrC,oBAAoB,oBAAoB;AACxC,YAAY,oBAAoB;AAChC,eAAe,oBAAoB;AACnC,aAAa,oBAAoB;AACjC,WAAW,oBAAoB;AAC/B,YAAY,oBAAoB;AAChC,cAAc,oBAAoB;AAClC,eAAe,oBAAoB;AACnC,mBAAmB,oBAAoB;AACvC,kBAAkB,oBAAoB;AACtC,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,0BAA0B;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,QAAQ;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,0BAA0B,SAAS;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,8CAA8C,iBAAiB;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,iBAAiB;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sFAAsF,mDAAmD;AACzI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C,mBAAmB;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,oBAAoB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,oBAAoB;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA,iCAAiC,8BAA8B;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,oBAAoB;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,6DAA6D,kBAAkB;AAC/E;AACA;AACA,oFAAoF,cAAc;AAClG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD,kBAAkB;AAC1E;;AAEA;AACA;AACA,oBAAoB,oBAAoB;AACxC;AACA;AACA;AACA;;AAEA;AACA;AACA,mCAAmC,iBAAiB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,IAAI,kBAAkB;AACvC;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,IAAI,kBAAkB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,uBAAuB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,IAAI,kBAAkB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,IAAI,kBAAkB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,iBAAiB;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,iBAAiB;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,iBAAiB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,iBAAiB;AAC5D;AACA;AACA;AACA;AACA;AACA,uBAAuB,IAAI;AAC3B;AACA;AACA;AACA,2CAA2C,iBAAiB;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,iBAAiB;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA;AACA;AACA,2CAA2C,iBAAiB;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,IAAI;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,iBAAiB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C,iCAAiC;AAC9E,UAAU;AACV,8DAA8D,iCAAiC;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD,mBAAmB,IAAI;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA,qEAAqE,sBAAsB;AAC3F;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,gBAAgB;AAC7C;AACA;AACA;AACA,sEAAsE,gBAAgB;AACtF;AACA;AACA,gDAAgD,gBAAgB;AAChE;AACA;AACA;AACA;AACA;AACA,sBAAsB,YAAY;AAClC;AACA;AACA;AACA,gDAAgD,YAAY;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,kBAAkB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,kBAAkB;AACxC;AACA;AACA;AACA,gDAAgD,kBAAkB;AAClE;AACA;AACA,8CAA8C,gBAAgB;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,cAAc;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,4BAA4B,yBAAyB;AACrD;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,kCAAkC,iBAAiB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC,iBAAiB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,oEAAoE,8BAA8B,aAAa;AAC/G;AACA;AACA;AACA;AACA;AACA,2CAA2C,4DAA4D;AACvG;AACA;AACA,qDAAqD,8CAA8C;AACnG;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,oBAAoB;AAClD,uBAAuB,oBAAoB;AAC3C,8BAA8B,oBAAoB;AAClD,iCAAiC,oBAAoB;AACrD,mBAAmB,oBAAoB;AACvC,oBAAoB,oBAAoB;AACxC,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kGAAkG,mBAAmB;AACrH;AACA;AACA,kBAAkB;AAClB;AACA,6FAA6F,oBAAoB;AACjH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,kGAAkG,mBAAmB;AACrH;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,kGAAkG,mBAAmB;AACrH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,sBAAsB;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,IAAI,0DAA0D;AACrG;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,sDAAsD;AACtD;AACA,4CAA4C,mBAAmB;AAC/D;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C;AAC3C,gDAAgD,mBAAmB;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA,aAAa;AACb,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C;AAC9C;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8DAA8D,sBAAsB;AACpF;AACA;AACA;AACA;AACA;AACA,kEAAkE,sBAAsB;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,wEAAwE,gCAAgC;AACxG,aAAa;AACb;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C,iBAAiB;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,sBAAsB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC;AACxC;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,IAAI,kBAAkB;AAC9D,SAAS;AACT;AACA;AACA,yCAAyC,IAAI,kBAAkB;AAC/D,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,IAAI,kBAAkB;AACpE,cAAc;AACd,yCAAyC,IAAI,kBAAkB;AAC/D;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,6DAA6D;AAC7G;AACA;AACA,kDAAkD,4DAA4D;AAC9G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mEAAmE,gBAAgB;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sEAAsE,gBAAgB;AACtF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC;AACnC;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,2CAA2C,kBAAkB;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA,6CAA6C,iBAAiB;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,wBAAwB,aAAa;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,yDAAyD,qBAAqB;AAC9E;AACA;AACA,SAAS;AACT,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,kBAAkB;AAC7D,gEAAgE,uBAAuB;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,wCAAwC;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;;AAEA;;AAEA,CAAC;;AAED;;AAEA;;AAEA,CAAC;;;AAGD,CAAC,GAAG;AACJ;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,yBAAyB,iBAAiB;AAC1C;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,OAAO;AACP;AACA,KAAK;AACL;AACA,yBAAyB,oBAAoB;AAC7C;AACA,KAAK;AACL;AACA,yBAAyB,UAAU;AACnC;AACA,KAAK;AACL;AACA,yBAAyB,UAAU;AACnC;AACA,KAAK;AACL;AACA,yBAAyB,aAAa;AACtC;AACA;AACA,GAAG;;AAEH;AACA;;AAEA,CAAC,EAAE,kBAAkB;AACrB,qBAAqB;;AAErB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,QAAQ;AACR;AACA,QAAQ;AACR;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,QAAQ;AACR;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,YAAY;AACf,gCAAgC;AAChC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uDAAuD;AACvD,uDAAuD,yBAAyB,uBAAuB;AACvG,CAAC;AACD;AACA;;AAEA;AACA;AACA;AACA,wBAAwB,2BAA2B;AACnD;AACA;;AAEA;AACA;AACA,0BAA0B,OAAO;AACjC;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,gBAAgB,qBAAqB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,wBAAwB;;AAExB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,uCAAuC;AACpE,4BAA4B;AAC5B;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,wBAAwB;;AAExB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,kBAAkB,gBAAgB;AAClC;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,sCAAsC;AACtC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH,EAAE;;AAEF;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH,EAAE;;AAEF;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ,GAAG;AACH,EAAE;;AAEF;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ,GAAG;AACH,EAAE;;AAEF;AACA,CAAC;;AAED,CAAC,aAAa,mBAAmB,qBAAM,mBAAmB,qBAAM,mFAAmF;AACnJ,CAAC,EAAE,aAAa;;AAEhB;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,oCAAoC,SAAS;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,iBAAiB;AAClC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB,QAAQ;AAC1B;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH,kCAAkC;AAClC;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,iBAAiB,sBAAsB;AACvC;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,oBAAoB;AACvC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,UAAU;AACV;AACA;;AAEA,uGAAuG;;AAEvG;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,GAAG;AACH,EAAE;;AAEF;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,YAAY,IAAI;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,oBAAoB;;AAEvB;;AAEA;AACA;AACA,UAAU;AACV;;AAEA,cAAc;;AAEd;AACA;AACA,UAAU;AACV;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY;AACZ;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ,oBAAoB;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA,CAAC;;;;AAID,CAAC,aAAa;AACd,CAAC,EAAE,eAAe;AAClB;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA,cAAc,kBAAkB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,oBAAoB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,oBAAoB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA,CAAC,EAAE,+IAA+I;AAClJ;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,0BAA0B,wBAAwB;AAClD,GAAG;AACH;AACA,qBAAqB,mBAAmB;AACxC,yBAAyB,mBAAmB;AAC5C,GAAG;AACH;AACA,4BAA4B,UAAU;AACtC,GAAG;AACH;AACA,+BAA+B,UAAU;AACzC,GAAG;AACH;AACA,4BAA4B,4BAA4B;AACxD,GAAG;AACH;AACA,4BAA4B,UAAU;AACtC,GAAG;AACH;AACA,gCAAgC,sCAAsC;AACtE,GAAG;AACH;AACA,2BAA2B,UAAU;AACrC,GAAG;AACH;AACA,2BAA2B,sCAAsC;AACjE,GAAG;AACH;AACA;AACA;AACA;AACA,yBAAyB,MAAM;AAC/B,GAAG;AACH;AACA;AACA;AACA,wBAAwB,WAAW;AACnC,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA,6BAA6B,YAAY;AACzC,GAAG;AACH;AACA,gCAAgC,UAAU;AAC1C,GAAG;AACH;AACA,mCAAmC,sBAAsB;AACzD,GAAG;AACH;AACA,mCAAmC,sBAAsB;AACzD,GAAG;AACH;AACA,8BAA8B,oBAAoB;AAClD,GAAG;AACH;AACA,gCAAgC,cAAc;AAC9C,GAAG;AACH;AACA,gCAAgC,cAAc;AAC9C,GAAG;AACH;AACA,mCAAmC,sBAAsB;AACzD,GAAG;AACH;AACA,mCAAmC,uBAAuB;AAC1D,GAAG;AACH;AACA,8BAA8B,gCAAgC;AAC9D,GAAG;AACH;AACA,8BAA8B,cAAc;AAC5C,GAAG;AACH;AACA,+BAA+B,gCAAgC;AAC/D,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB;;AAElB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,mBAAmB;AACtC;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,+BAA+B,8BAA8B;;AAE7D;AACA;AACA;AACA;AACA,+BAA+B,iCAAiC;AAChE;;AAEA;AACA;;AAEA;AACA;AACA,mBAAmB,mBAAmB;AACtC;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,8BAA8B;AAC/D,mBAAmB,gCAAgC;AACnD;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,mBAAmB,0BAA0B;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,0BAA0B;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,kBAAkB,yBAAyB;AAC3C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,mBAAmB;AACtC;AACA;AACA,iCAAiC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,mBAAmB,0BAA0B;AAC7C;AACA;;AAEA;AACA;AACA,mBAAmB,0BAA0B;AAC7C;AACA;AACA;AACA;;AAEA;AACA,kBAAkB,2BAA2B;AAC7C;;AAEA;;AAEA;AACA,YAAY;AACZ;AACA,YAAY;AACZ,WAAW;AACX;AACA;AACA;AACA;AACA;;AAEA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,aAAa;;AAEb;AACA,+BAA+B;;AAE/B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB;;AAEnB;AACA;;AAEA;AACA,iBAAiB;;AAEjB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;;AAER;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,qBAAqB;AACrB;AACA,4DAA4D;;AAE5D;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,2DAA2D,QAAQ;AACnE;AACA;AACA;;AAEA;AACA,8DAA8D;AAC9D;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,mBAAmB;AACtC;AACA;;AAEA;AACA;AACA,eAAe;;AAEf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,CAAC,EAAE,oBAAoB;AACvB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,wBAAwB;AACnC;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,IAAI;AACJ;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,kEAAkE;AAClE;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA,kBAAkB,mBAAmB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,iDAAiD;AACjD,6CAA6C;;AAE7C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,4BAA4B;AAC5B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,sDAAsD;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;;AAEA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,IAAI;AACJ;AACA,EAAE;;AAEF;AACA;;AAEA;AACA;;AAEA;AACA,sCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF,0CAA0C;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF,2CAA2C;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF,8CAA8C;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF,oCAAoC;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,CAAC,GAAG;AACJ;;;AAGA;AACA;;;AAGA;AACA,yBAAyB,0BAA0B;AACnD;;AAEA;AACA;AACA;;AAEA;;;AAGA;;;AAGA;AACA,6BAA6B,gBAAgB;AAC7C;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ,WAAW,gBAAgB;AAC3B;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;;AAEA,CAAC,EAAE,iCAAiC;;AAEpC;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,IAAI;;AAEJ;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA,6CAA6C;AAC7C;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mBAAmB;;AAEnB;AACA,mBAAmB;;AAEnB;AACA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;;AAEA,kBAAkB,iBAAiB;AACnC;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,oBAAoB,WAAW;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,IAAI;AACJ;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,2BAA2B;AAC3B;AACA,2BAA2B;AAC3B,2BAA2B;AAC3B;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;;AAGA;AACA;AACA,gBAAgB,gBAAgB;AAChC,qBAAqB,cAAc;AACnC;AACA;AACA;;AAEA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA,kBAAkB,UAAU;AAC5B;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,kBAAkB,gBAAgB;AAClC;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,oCAAoC;AACpC;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA,kBAAkB,gBAAgB;AAClC;AACA;AACA;AACA;AACA;;AAEA,wBAAwB,wCAAwC;AAChE;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA,kBAAkB;;AAElB,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA,wBAAwB;AACxB,wBAAwB;;AAExB;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,sBAAsB,qBAAqB;AAC3C;AACA;AACA;AACA,GAAG;;AAEH;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;;AAEA,kBAAkB,iBAAiB;AACnC;AACA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA,aAAa;AACb;;AAEA;AACA,aAAa;AACb;;AAEA;AACA,aAAa;AACb;;AAEA;AACA;AACA,eAAe;AACf;AACA,aAAa;AACb;;AAEA,WAAW;AACX;;AAEA,CAAC,EAAE,eAAe;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,wDAAwD;AAC3D;;AAEA;;AAEA;AACA;AACA;;AAEA;;;AAGA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;;AAEA;AACA;AACA;;;AAGA;AACA;;;AAGA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,kBAAkB;;AAElB,kBAAkB,eAAe;AACjC;AACA;AACA,iBAAiB;AACjB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;;AAEA;AACA;AACA;AACA;;;AAGA;;;AAGA;AACA;;AAEA;AACA;;AAEA;;AAEA,SAAS;AACT;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,oCAAoC;AACvC;;AAEA;;AAEA;AACA;AACA;;;AAGA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;;AAEA;AACA;AACA;;;AAGA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA,0BAA0B;AAC1B;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;;AAGA;AACA;;AAEA;;AAEA,kBAAkB,iBAAiB;AACnC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;;AAEA,cAAc,cAAc;AAC5B;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,oCAAoC;AACvC;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,0OAA0O;AAC7O;;;AAGA;;;AAGA;AACA;;AAEA,kBAAkB,yBAAyB;AAC3C;;AAEA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA,CAAC,EAAE,yBAAyB;AAC5B;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,MAAM;AACN;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;;;AAIA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,wBAAwB,sBAAsB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,sCAAsC;;AAEtC;AACA;AACA;;AAEA,4BAA4B;AAC5B;AACA;AACA;AACA,6BAA6B;;AAE7B,CAAC,GAAG;AACJ,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,4BAA4B;AAC3C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,eAAe;AACtC;AACA;AACA;AACA,cAAc;AACd,sCAAsC,SAAS;AAC/C;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,mBAAmB,kBAAkB;AACrC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,aAAa,mBAAmB,qBAAM,mBAAmB,qBAAM,mFAAmF;AACnJ,CAAC,EAAE,sBAAsB;AACzB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;;AAEJ;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;;AAEF;;AAEA;AACA;AACA,qCAAqC,+CAA+C,2BAA2B,2BAA2B,wDAAwD,8BAA8B,uCAAuC,gEAAgE,+BAA+B,qBAAqB,iCAAiC,wFAAwF,mGAAmG,yCAAyC,gNAAgN,2CAA2C,kDAAkD,OAAO;;AAEp7B,qCAAqC,+BAA+B,8BAA8B,qBAAqB,iCAAiC,kCAAkC,OAAO;;AAEjM;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC,GAAG;;AAEH;AACA;AACA;AACA;AACA,mCAAmC,yBAAyB;AAC5D;AACA,IAAI;AACJ;AACA;AACA,mCAAmC,yBAAyB;AAC5D;AACA,IAAI;AACJ;AACA;AACA,mCAAmC,yBAAyB;AAC5D;AACA,IAAI;AACJ;AACA;AACA,mCAAmC,0BAA0B;AAC7D;AACA,IAAI;;AAEJ;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;;AAEF;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA,qCAAqC;;AAErC;AACA,4CAA4C;;;AAG5C;;AAEA;AACA;AACA,aAAa;;AAEb;AACA,uBAAuB;AACvB,WAAW;AACX;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;;AAEA;AACA;AACA,+BAA+B;AAC/B,mBAAmB;;AAEnB,0FAA0F;;AAE1F;AACA;AACA;AACA;;AAEA;;AAEA,iBAAiB;AACjB;;AAEA;AACA,kBAAkB;;AAElB;AACA;AACA,yCAAyC,YAAY,mBAAmB;AACxE;;AAEA;AACA,sCAAsC;;AAEtC;AACA;;AAEA;AACA;;AAEA,mBAAmB;AACnB,6CAA6C,WAAW;AACxD,8CAA8C,WAAW;;AAEzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;;AAEJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;;AAEA;AACA,8BAA8B,iBAAiB;AAC/C,4BAA4B,iBAAiB;AAC7C;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;;AAEA,oBAAoB;;AAEpB;AACA;AACA;AACA;AACA,sBAAsB,WAAW;AACjC;AACA;AACA;;AAEA,kCAAkC;;AAElC;;AAEA;AACA,uBAAuB,aAAa;AACpC;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,mBAAmB;;AAEnB;AACA;;AAEA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,sBAAsB;AACtB,aAAa;;AAEb,uBAAuB;AACvB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;;AAEJ;AACA,GAAG;;AAEH;AACA;AACA;AACA,IAAI;;AAEJ;AACA;AACA;;AAEA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA,kBAAkB;;AAElB;AACA;AACA;AACA,IAAI;;AAEJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,4IAA4I;AAC/I;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;;AAGA;AACA;AACA,kCAAkC;;AAElC;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;;AAGA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;;AAEA;AACA,qCAAqC,uCAAuC;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,yEAAyE;AACxG;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH,YAAY,cAAc;AAC1B;AACA;AACA;AACA,GAAG;AACH;AACA;;;AAGA;AACA;AACA,wCAAwC,+EAA+E,uBAAuB,mCAAmC,8DAA8D,iDAAiD,wBAAwB,2BAA2B,uBAAuB,uHAAuH,2LAA2L,GAAG,iBAAiB,mCAAmC,yCAAyC,gEAAgE,oDAAoD,8CAA8C,qQAAqQ,yDAAyD,+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EvI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;;AAEA,WAAW,eAAe;AAC1B;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,+BAA+B;;AAE/B,+BAA+B;;AAE/B,0CAA0C;;AAE1C;;AAEA;AACA;AACA;;AAEA,sBAAsB;;AAEtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;;AAEA;AACA;;AAEA,iBAAiB;;AAEjB;AACA,wCAAwC,YAAY,mBAAmB;AACvE;;AAEA;AACA,qCAAqC;;AAErC;AACA;AACA;;AAEA;AACA;AACA;;AAEA,yBAAyB;;AAEzB;AACA;AACA;AACA;AACA;;AAEA,kCAAkC,KAAK;;AAEvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA,gBAAgB;AAChB;AACA,6BAA6B;AAC7B,2BAA2B;AAC3B,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB;AACxB,wBAAwB;AACxB,wBAAwB;AACxB,4BAA4B;;AAE5B;AACA;AACA;AACA;AACA;AACA;;AAEA,yBAAyB;;AAEzB;AACA,8BAA8B;AAC9B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,aAAa;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,gDAAgD,SAAS;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,mCAAmC;;AAEnC,sEAAsE,eAAe;;AAErF;AACA;;AAEA;AACA;AACA;AACA,oDAAoD,sBAAsB;AAC1E;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,uDAAuD,uCAAuC;AAC9F;AACA;AACA;AACA,qBAAqB;AACrB;AACA;;AAEA;AACA;AACA;;AAEA,uBAAuB,qBAAqB;AAC5C;AACA,qDAAqD,WAAW;AAChE,+CAA+C;AAC/C;;AAEA;AACA;AACA;AACA;AACA;;AAEA,iDAAiD,WAAW;AAC5D,2CAA2C;AAC3C;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,qBAAqB,uBAAuB;AAC5C;AACA;AACA;AACA;AACA;;AAEA;AACA,oBAAoB,OAAO;AAC3B,sBAAsB,uBAAuB;AAC7C,iEAAiE,SAAS;AAC1E;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;;AAEA,kBAAkB;;AAElB;;AAEA;AACA;AACA;;AAEA,sBAAsB,mBAAmB;AACzC;AACA;AACA,KAAK;AACL,sBAAsB,eAAe;AACrC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,EAAE;;AAEF;AACA;AACA,+BAA+B,wBAAwB;AACvD;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,0BAA0B;AAC7C,mCAAmC;AACnC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAE;;AAEF;;AAEA;AACA;;AAEA,CAAC,EAAE,oOAAoO;AACvO;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,4BAA4B,+BAA+B;AAC3D;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA,IAAI;AACJ;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,yCAAyC,SAAS;;AAElD;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA,uBAAuB;;AAEvB;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;;AAEA,2BAA2B;;AAE3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,wBAAwB;;AAExB;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;;AAEL,+BAA+B;AAC/B,uDAAuD,6CAA6C,kCAAkC,4CAA4C,gEAAgE,wCAAwC,2CAA2C,GAAG,iBAAiB,8EAA8E,yDAAyD,qGAAqG,gEAAgE,2EAA2E,KAAK,UAAU,0GAA0G,wFAAwF,qCAAqC,gCAAgC,8CAA8C,yBAAyB,6BAA6B,KAAK,KAAK;AACplC,uDAAuD,4DAA4D,mCAAmC,wCAAwC,2BAA2B,gCAAgC,2BAA2B,yEAAyE,mCAAmC,+BAA+B,+BAA+B,4CAA4C,iGAAiG,8DAA8D,yCAAyC,4BAA4B,0JAA0J,GAAG,iBAAiB,4DAA4D,iCAAiC,8CAA8C,qCAAqC,+CAA+C,yCAAyC,mDAAmD,gDAAgD,sCAAsC,sMAAsM,gDAAgD,wBAAwB,kCAAkC,kCAAkC,0FAA0F,yFAAyF,GAAG;AACrxD,yCAAyC;;AAEzC,+BAA+B;AAC/B,uDAAuD,+DAA+D,4CAA4C,0BAA0B,yDAAyD,YAAY,uDAAuD,mCAAmC,GAAG,iBAAiB,iDAAiD,oDAAoD,iCAAiC,cAAc,KAAK,4DAA4D,4CAA4C,iFAAiF,wDAAwD,+BAA+B,yBAAyB,GAAG;AACpzB,uDAAuD,4DAA4D,mCAAmC,wCAAwC,2BAA2B,gCAAgC,2BAA2B,yEAAyE,mCAAmC,+BAA+B,4CAA4C,4CAA4C,8DAA8D,yCAAyC,4BAA4B,0JAA0J,GAAG,iBAAiB,4DAA4D,iCAAiC,8CAA8C,qCAAqC,+CAA+C,yCAAyC,mDAAmD,0DAA0D,sMAAsM,gDAAgD,oEAAoE,sBAAsB,kGAAkG,kCAAkC,GAAG,OAAO;;AAE3nD;AACA;AACA;AACA;;AAEA;AACA,EAAE;;;AAGF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;;;AAGH;AACA;;AAEA,sEAAsE,aAAa;AACnF;AACA;;AAEA,4BAA4B;;AAE5B;AACA;AACA,IAAI;;;AAGJ;;AAEA;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA,GAAG;;;AAGH;AACA;AACA,0BAA0B;AAC1B,WAAW,WAAW;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,wDAAwD;;AAExD;AACA;AACA;AACA,IAAI;;;AAGJ;;AAEA,kBAAkB,6BAA6B;AAC/C;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;;AAGH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB;;AAExB;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA,qBAAqB;AACrB;AACA;AACA;AACA,KAAK;AACL,IAAI;;;AAGJ;AACA;AACA;AACA;AACA,GAAG,GAAG;;AAEN;AACA;AACA;AACA;;AAEA,oBAAoB,qBAAqB;AACzC;AACA;AACA;;AAEA;AACA;;AAEA,2BAA2B,IAAI;AAC/B;AACA;AACA;;AAEA,wBAAwB;AACxB;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA,GAAG;;;AAGH;AACA;;AAEA,yEAAyE,eAAe;AACxF;AACA;;AAEA,4BAA4B;;AAE5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,yBAAyB;AACzB,MAAM;;;AAGN;AACA;AACA;AACA,MAAM;;;AAGN;AACA;AACA;AACA,MAAM;;;AAGN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,qDAAqD;;AAErD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,6EAA6E;;AAE7E;AACA;AACA;AACA,UAAU;;;AAGV;AACA;AACA;AACA,UAAU;;;AAGV;AACA;AACA;AACA,WAAW;AACX,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAmD;AACnD,UAAU;;;AAGV;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS,GAAG;;AAEZ;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA,2CAA2C;;AAE3C;AACA;AACA,SAAS;AACT,+BAA+B;;AAE/B;AACA;;AAEA;AACA,UAAU;AACV;AACA;;AAEA,sEAAsE,QAAQ;AAC9E;;AAEA,mFAAmF;;AAEnF;AACA;;AAEA,6BAA6B,2BAA2B;AACxD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;;AAEA;AACA,OAAO;AACP;AACA,mCAAmC;;AAEnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,qFAAqF;AACrF;;AAEA;AACA;AACA,KAAK,IAAI;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,0BAA0B,aAAa;AACvC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP,MAAM;;;AAGN;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;;AAElB;AACA;AACA;;AAEA,4BAA4B,cAAc;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;;AAEA,4BAA4B,cAAc;AAC1C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA,GAAG;AACH,GAAG;;;AAGH;AACA;AACA;AACA;AACA;AACA,4BAA4B;;AAE5B;;AAEA;AACA;AACA,IAAI;AACJ;;AAEA,oCAAoC,OAAO;AAC3C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;;;AAGH;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,gBAAgB;;AAEhB;AACA;;AAEA;AACA,sBAAsB,mBAAmB;AACzC;AACA;AACA,MAAM;AACN,wBAAwB,qBAAqB;AAC7C;AACA;AACA;;AAEA;AACA;;AAEA,oBAAoB,qBAAqB;AACzC;AACA;AACA,oCAAoC;;AAEpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,IAAI;;;AAGJ,wFAAwF;;AAExF,+BAA+B;;AAE/B;AACA;;AAEA;AACA;AACA;AACA;AACA,oEAAoE;;AAEpE;AACA;;AAEA,mDAAmD,gCAAgC;AACnF;AACA;AACA,IAAI;;;AAGJ;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;AACA;AACA,GAAG;AACH,GAAG;;;AAGH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;;AAEA;AACA;AACA,iDAAiD;;AAEjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;;AAEA,CAAC,EAAE,uOAAuO;AAC1O;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;;AAGA;AACA;AACA,iCAAiC;;AAEjC;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,mDAAmD;;AAEnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA,qBAAqB;;AAErB,iBAAiB,iBAAiB;AAClC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,0BAA0B;AAC7C;AACA;AACA,kBAAkB,wBAAwB;AAC1C;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;;;AAGF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B,wBAAwB;AACxB,wBAAwB;;AAExB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,oBAAoB,qBAAqB;AACzC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,mBAAmB,SAAS;AAC5B,kBAAkB,OAAO;AACzB,uCAAuC;AACvC,kCAAkC;AAClC,kCAAkC;;AAElC;;AAEA,wDAAwD;;AAExD;AACA;AACA;AACA,UAAU,qDAAqD;AAC/D,UAAU;AACV;AACA;AACA;AACA;AACA,UAAU,8CAA8C;AACxD,UAAU;AACV;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,kBAAkB;AAClB,iBAAiB;AACjB,mBAAmB;AACnB,uBAAuB;AACvB,wBAAwB;AACxB,oBAAoB;;AAEpB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,iBAAiB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA,8CAA8C;AAC9C,EAAE;AACF;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AE,IAAI,OAAO,kBAAkB,8FAA8F,IAAI,UAAU,mCAAmC,OAAO,aAAa,eAAe,gGAAgG,qBAAqB,+BAA+B,sBAAsB,sBAAsB;AACla,sDAAsD,MAAM,UAAU,yBAAyB,gBAAgB,MAAM,mBAAmB,MAAM,mBAAmB,UAAU,OAAO,kBAAkB,YAAY,WAAW,iBAAiB,mBAAmB,QAAQ,SAAS,mCAAmC,gDAAgD,2BAA2B,WAAW,IAAI,iGAAiG;AAC9e,UAAU,UAAU,UAAU,UAAU,UAAU,UAAU,aAAa,sBAAsB,IAAI,EAAE,kCAAkC,IAAI,cAAc,eAAe,EAAE,iBAAiB,UAAU;;AAErM,CAAC,GAAG;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,YAAY;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;;AAIA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,sXAAsX;AACzX;;AAEA,gDAAgD,0DAA0D,2CAA2C;;AAErJ;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA,EAAE;;;AAGF;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA,IAAI;AACJ;AACA;AACA,EAAE;;;AAGF;AACA;AACA,EAAE;;;AAGF;AACA;AACA;AACA;;AAEA;AACA,EAAE;;;AAGF;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;;AAEA,CAAC,GAAG;AACJ,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA,kBAAkB,iBAAiB;AACnC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;;AAEJ;AACA;AACA,yCAAyC;AACzC;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;;;AAGA;AACA;AACA;AACA,CAAC;AACD,CAAC,aAAa;AACd,CAAC,EAAE,gFAAgF;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC,EAAE,yCAAyC;AAC5C,2BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;;;AAGA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;;AAEA;;AAEA;AACA;AACA,EAAE;AACF;AACA;AACA;;;AAGA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,4FAA4F;;;AAG5F;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,gGAAgG;AAChG;AACA;AACA;;AAEA,yEAAyE,mFAAmF;AAC5J;;AAEA;AACA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA;;AAEA,0EAA0E;AAC1E;;AAEA;AACA,mFAAmF;AACnF;;AAEA,2FAA2F;AAC3F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA;;AAEA,oBAAoB;AACpB;;AAEA;AACA;AACA;AACA;AACA,sBAAsB;;AAEtB,gDAAgD;;AAEhD,4CAA4C;;AAE5C,0BAA0B;AAC1B;AACA;;AAEA,4DAA4D;;AAE5D,uBAAuB;;AAEvB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,iEAAiE;AACjE;;AAEA;AACA,oEAAoE;;AAEpE;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;;;AAGA;AACA;AACA,CAAC;AACD;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA,GAAG;;;AAGH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA,+FAA+F;AAC/F,QAAQ;AACR;AACA,QAAQ;AACR;AACA,QAAQ;AACR;;AAEA;AACA;AACA,4FAA4F;AAC5F,UAAU;AACV;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,IAAI;AACJ;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,gDAAgD;AAChD;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,GAAG;;;AAGH;AACA;AACA;AACA,yCAAyC;;AAEzC,uEAAuE;;AAEvE;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,GAAG;;;AAGH;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,EAAE;AACF;;;AAGA;AACA;AACA;;AAEA;AACA;AACA,4EAA4E;AAC5E,IAAI;;;AAGJ;AACA,mCAAmC;;AAEnC;AACA;AACA;AACA;;AAEA;AACA,EAAE;;;AAGF;AACA;AACA;AACA;AACA;AACA,8CAA8C;AAC9C;AACA;;AAEA;AACA;AACA,6DAA6D;AAC7D;AACA;;AAEA,+BAA+B;;AAE/B;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA,kCAAkC;;AAElC;AACA;AACA;AACA,IAAI;AACJ;;;AAGA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,uBAAuB;;AAEvB,uDAAuD;;AAEvD;;AAEA,wBAAwB;AACxB;;AAEA;AACA;;AAEA;AACA,sCAAsC;;AAEtC;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA,iDAAiD;;AAEjD;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,EAAE;AACF;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gDAAgD;AAChD;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA,sBAAsB;;AAEtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;;;AAGA;AACA;AACA;AACA;AACA;AACA,IAAI;;;AAGJ,2CAA2C;;AAE3C;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,IAAI;;;AAGJ,0BAA0B;;AAE1B;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL,2CAA2C;;AAE3C;AACA;AACA;AACA,mCAAmC;;AAEnC;AACA;AACA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,oBAAoB,SAAS;AAC7B;AACA;AACA,OAAO;AACP;;AAEA;AACA,IAAI;;;AAGJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA,kEAAkE;;AAElE;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B;AAC1B,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA,EAAE;AACF;;;AAGA;AACA;;AAEA;AACA,qBAAqB;AACrB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,EAAE;AACF;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA;AACA,2DAA2D;;AAE3D,4EAA4E;;AAE5E;;AAEA;AACA;AACA;AACA;AACA,GAAG,GAAG;AACN;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,IAAI;;;AAGJ,kBAAkB,yBAAyB;AAC3C;AACA,IAAI;AACJ;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;;AAEJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mDAAmD;AACnD;AACA,mDAAmD,+DAA+D;AAClH;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,0DAA0D;;AAE1D;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,iCAAiC,OAAO;AACxC;AACA;;AAEA;AACA;AACA,CAAC,aAAa,uCAAuC,qBAAM,mBAAmB,qBAAM,mFAAmF;AACvK,CAAC,EAAE,wUAAwU;AAC3U;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,aAAa;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,2CAA2C;AAC3C;AACA;;AAEA;;AAEA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC,EAAE,sDAAsD;AACzD,2BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;;AAGA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA;;AAEA,0EAA0E;AAC1E;;AAEA;AACA,mFAAmF;AACnF;AACA;;AAEA,2FAA2F;;AAE3F,4BAA4B;;AAE5B,0BAA0B;;AAE1B,uBAAuB;;AAEvB,sBAAsB;;AAEtB,yBAAyB;;AAEzB,0BAA0B;AAC1B;AACA;;AAEA;AACA,kCAAkC;AAClC;AACA;;AAEA,4DAA4D;AAC5D;AACA;;AAEA,mBAAmB;;AAEnB,wBAAwB;;AAExB,mBAAmB;AACnB;AACA;AACA;;AAEA,oBAAoB;AACpB;AACA;;AAEA,iCAAiC;;AAEjC;AACA;AACA,KAAK;;;AAGL,uBAAuB;;AAEvB;AACA;AACA,mCAAmC;AACnC;;AAEA,sBAAsB;AACtB;;AAEA,4BAA4B;;AAE5B,6BAA6B;;AAE7B,gDAAgD;;AAEhD,4CAA4C;;AAE5C,iCAAiC;AACjC;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL,IAAI;AACJ,CAAC,KAAK;AACN;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,EAAE;AACF;AACA;AACA;AACA;;AAEA;AACA,kDAAkD;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,oEAAoE;;AAEpE;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,EAAE;;;AAGF;AACA;AACA;;AAEA;AACA,6CAA6C;;AAE7C;AACA;AACA,EAAE;AACF;AACA;;;AAGA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,iCAAiC;AACjC;AACA,4CAA4C;AAC5C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gDAAgD;;AAEhD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,wEAAwE,sDAAsD;AAC9H;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,8BAA8B;AAC9B;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,gCAAgC;AAChC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD;AACpD;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,EAAE;;;AAGF;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,2EAA2E;AAC3E;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA,0EAA0E;;AAE1E;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,6CAA6C;AAC7C;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;;;AAGA;AACA;AACA,CAAC;AACD;AACA;;AAEA;AACA;AACA;AACA,CAAC,aAAa,uCAAuC,qBAAM,mBAAmB,qBAAM,mFAAmF;AACvK,CAAC,EAAE,sMAAsM;AACzM,oBAAoB;AACpB;;AAEA;;AAEA,4CAA4C,kBAAkB,kCAAkC,oEAAoE,KAAK,OAAO,oBAAoB;;AAEpM;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,qCAAqC;AACrC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;AACL;AACA;;AAEA,iEAAiE;AACjE;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,SAAS;AACT,OAAO;AACP,MAAM;AACN;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,CAAC;AACD;AACA,CAAC;AACD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;AACL,GAAG;AACH,CAAC;;AAED;AACA;;AAEA,yFAAyF;AACzF;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;AACH;AACA;AACA;AACA,0CAA0C;AAC1C;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA,CAAC,aAAa;AACd,CAAC,EAAE,qCAAqC;AACxC;;AAEA,2CAA2C,gCAAgC,oCAAoC,oDAAoD,8DAA8D,iEAAiE,GAAG,kCAAkC;;AAEvU,iCAAiC,gBAAgB,sBAAsB,OAAO,uDAAuD,aAAa,uDAAuD,4CAA4C,KAAK,6CAA6C,6EAA6E,OAAO,iDAAiD,mFAAmF,OAAO;;AAEtgB,4CAA4C,kBAAkB,kCAAkC,oEAAoE,KAAK,OAAO,oBAAoB;;AAEpM,kDAAkD,0CAA0C;;AAE5F,4CAA4C,gBAAgB,kBAAkB,OAAO,2BAA2B,wDAAwD,gCAAgC,uDAAuD;;AAE/P,8DAA8D,sEAAsE,8DAA8D;;AAElM;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD;AAClD;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,0DAA0D;AAC1D;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAM;;AAEN,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,MAAM;;AAEN,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0CAA0C;AAC1C;;AAEA;AACA;AACA;AACA,2CAA2C;AAC3C,YAAY;AACZ;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,MAAM;;AAEN,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,2CAA2C;AAC3C,YAAY;AACZ;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,MAAM;;AAEN,GAAG;AACH;AACA;AACA,2CAA2C;AAC3C;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,GAAG;;AAEH;AACA,CAAC;AACD,CAAC,EAAE,sBAAsB;AACzB,oBAAoB;AACpB,cAAc;;AAEd;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA,IAAI;AACJ;;;AAGA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,QAAQ;AACR;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wFAAwF;AACxF;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC,aAAa;AACd,CAAC,EAAE,eAAe;AAClB;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,wEAAwE,aAAa;AACrF;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,gCAAgC;AAChC,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,CAAC,EAAE,sBAAsB;AACzB;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,sBAAsB;;AAEtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,yEAAyE,aAAa;AACtF;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;;AAEA;AACA,CAAC,EAAE,4CAA4C;AAC/C;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,IAAI;;;AAGJ;AACA;;AAEA;AACA;AACA;AACA,CAAC,EAAE,sBAAsB;AACzB;;AAEA,CAAC,EAAE,YAAY;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,6BAA6B,sCAAsC,sCAAsC;AACzG;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC,EAAE,kBAAkB;AACrB,2BAA2B;;AAE3B;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,UAAU;AACrB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,UAAU;AACrB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,UAAU;AACrB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;;AAErC;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,WAAW,UAAU;AACrB,YAAY,UAAU;AACtB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,aAAa;AACd,CAAC,EAAE,mDAAmD;AACtD,oBAAoB;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;AACA,YAAY,QAAQ;AACpB;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;;AAEJ;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;;AAEA,CAAC,aAAa;AACd,CAAC,EAAE,6BAA6B;;AAEhC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY;AACZ;AACA;;AAEA;AACA;;AAEA;AACA;AACA,eAAe;AACf;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY;AACZ;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,oBAAoB,iBAAiB;AACrC;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,kBAAkB,SAAS;AAC3B,6BAA6B;AAC7B;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY;AACZ;AACA;;AAEA;AACA;AACA,0CAA0C,SAAS;AACnD;AACA;AACA;AACA;AACA,0CAA0C,SAAS;AACnD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,SAAS;AACZ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,eAAe;AAC1B,WAAW,QAAQ;AACnB,YAAY,OAAO;AACnB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,kDAAkD;AAClD;AACA,qCAAqC;AACrC;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,mCAAmC,+BAA+B;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,kBAAkB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,kBAAkB;AACnC;AACA,sCAAsC,WAAW;AACjD;AACA;AACA;AACA;;AAEA,CAAC,EAAE,kBAAkB;AACrB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,eAAe;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC,4BAA4B,YAAY,OAAO;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,OAAO;AACf,uCAAuC;AACvC;AACA;AACA,gCAAgC,MAAM;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,gBAAgB;AACvC,yBAAyB,mBAAmB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,eAAe;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,qBAAqB;AACpC;AACA;AACA,4BAA4B,aAAa;AACzC;AACA,iBAAiB,YAAY;AAC7B;AACA;AACA;AACA;AACA;AACA;;AAEA,UAAU;AACV;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA,CAAC;;AAED,mCAAmC,iCAAiC,eAAe,eAAe,gBAAgB,oBAAoB,MAAM,0CAA0C,+BAA+B,aAAa,qBAAqB,uCAAuC,cAAc,WAAW,YAAY,UAAU,MAAM,2CAA2C,UAAU,sBAAsB,eAAe,2BAA2B,0BAA0B,cAAc,2CAA2C,gCAAgC,OAAO,mFAAmF;;AAErpB;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA,kBAAkB,cAAc;AAChC;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,aAAa;AACb,GAAG;AACH;;AAEA;AACA;AACA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,OAAO;AAC1C;AACA;AACA,oBAAoB,mBAAmB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,8FAA8F;AACjG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,SAAS;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,2BAA2B,mBAAmB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,8BAA8B;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,iGAAiG;AACpG,wCAAwC;AACxC;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA,CAAC,aAAa;AACd,CAAC,EAAE,sCAAsC;AACzC;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,uBAAuB;AACvB,uBAAuB;AACvB,uBAAuB;;AAEvB;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,+BAA+B,oBAAoB,MAAM;AACzD,+BAA+B,oBAAoB,MAAM;AACzD,+BAA+B,oBAAoB,MAAM;AACzD;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,iBAAiB;AACjB,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,iBAAiB;AACjB,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA,iBAAiB;AACjB,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,iBAAiB;AACjB,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAgB,UAAU;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,UAAU;AAC1B;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA,uDAAuD;AACvD,yCAAyC;AACzC,yCAAyC;AACzC;;AAEA;AACA;;AAEA,aAAa;AACb;;AAEA;AACA;AACA;AACA,gBAAgB,UAAU;AAC1B;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,aAAa;AACb;;AAEA;AACA;AACA;AACA,gBAAgB,UAAU;AAC1B;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,eAAe;AACf;AACA;AACA;AACA,uDAAuD;AACvD,yCAAyC;AACzC,yCAAyC;AACzC;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA,gBAAgB,UAAU;AAC1B;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,oBAAoB,wCAAwC;AAC5D,oBAAoB,wCAAwC;AAC5D;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,oBAAoB,uCAAuC;AAC3D,oBAAoB,wCAAwC;AAC5D,oBAAoB,wCAAwC;AAC5D;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,oBAAoB,sCAAsC;AAC1D,oBAAoB,uCAAuC;AAC3D;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,gEAAgE,WAAW;AAC3E;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,6BAA6B,iBAAiB;AAC9C;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,2DAA2D,wBAAwB;;AAEnF;AACA;AACA,2CAA2C,wBAAwB;AACnE;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,8EAA8E,4BAA4B,iBAAiB;AAC3H,8EAA8E,2BAA2B,kBAAkB;AAC3H,qDAAqD,oDAAoD,iBAAiB;AAC1H,qDAAqD,oDAAoD,iBAAiB;AAC1H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;AACA;AACA;AACA;;AAEA,oDAAoD,0BAA0B;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;;AAEA,MAAM,iBAAiB,aAAa,iBAAiB;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,6BAA6B;;AAE7B;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,EAAE,cAAc,EAAE,cAAc,EAAE;AACjE,+BAA+B,EAAE,cAAc,EAAE,cAAc,EAAE;AACjE,+BAA+B,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE;AACjF,+BAA+B,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE;AACjF;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,yCAAyC,SAAS,QAAQ,SAAS,QAAQ,QAAQ;AACnF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,2CAA2C;AAC3C;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,kBAAkB;AAC1C;AACA;AACA;AACA;AACA;;AAEA,CAAC;;AAED,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,OAAO;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE,iBAAiB;AACpB;AACA;AACA;AACA;AACA,yEAAyE;AACzE,CAAC,4BAA4B;;AAE7B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qEAAqE;AACrE,8CAA8C;AAC9C,2DAA2D;AAC3D;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS,oEAAoE,gCAAgC;AAC7G;AACA;;AAEA;AACA;AACA;AACA,6CAA6C;AAC7C;AACA,uCAAuC;AACvC,wBAAwB;AACxB,SAAS;AACT;;AAEA;AACA;AACA;;AAEA;AACA;AACA,4DAA4D,OAAO;AACnE;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,qCAAqC,OAAO;AAC5C,mDAAmD;AACnD;AACA;;AAEA;AACA;AACA,sDAAsD;AACtD;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,yCAAyC;AACzC,wDAAwD;AACxD,iEAAiE;AACjE,qDAAqD;AACrD,8DAA8D;AAC9D,qDAAqD;AACrD,8DAA8D;AAC9D;AACA;AACA,YAAY;AACZ;;AAEA;AACA;;AAEA;AACA,uBAAuB;AACvB,0BAA0B;AAC1B,wBAAwB;AACxB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,oEAAoE,iCAAiC;AACrG;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,mCAAmC;AACjE;AACA;AACA;;AAEA;AACA;AACA,6BAA6B,yDAAyD;;AAEtF;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,+DAA+D,OAAO;AACtE,UAAU;AACV;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,kDAAkD,cAAc;AAChE;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,iEAAiE;AACjE,2CAA2C;AAC3C,gEAAgE;AAChE,6CAA6C;AAC7C;AACA;;AAEA;;AAEA;AACA,0BAA0B;AAC1B,0BAA0B,2EAA2E;;AAErG;AACA;;AAEA;AACA;AACA;AACA,yBAAyB;AACzB;;AAEA;AACA;AACA;;AAEA;AACA,wBAAwB;AACxB;AACA;;AAEA;;AAEA;AACA;AACA,iEAAiE;AACjE,uCAAuC;AACvC,oDAAoD;AACpD;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;;AAEA;AACA,4CAA4C,8BAA8B;AAC1E;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,WAAW;AACX,SAAS;AACT;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX,SAAS;AACT,OAAO;;AAEP;AACA;;AAEA;AACA;AACA;AACA;AACA,kDAAkD,OAAO;AACzD;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,uBAAuB;AACvB,2CAA2C,YAAY;;AAEvD;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA,iCAAiC,eAAe;AAChD;;AAEA;AACA,4EAA4E,iBAAiB;AAC7F;AACA;;AAEA;AACA;AACA;AACA;AACA,sCAAsC,6BAA6B,kBAAkB;AACrF;;AAEA;;AAEA;AACA,mEAAmE,OAAO;AAC1E,0BAA0B,OAAO;AACjC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,IAAI;AACJ;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,2CAA2C,iFAAiF;AAC5H,8BAA8B,+DAA+D;AAC7F,mCAAmC,wEAAwE;AAC3G;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,kEAAkE;AAClE;AACA,0EAA0E;AAC1E,uCAAuC;AACvC;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,+CAA+C,aAAa;;AAE5D,CAAC;;AAED,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,sBAAsB;AACzB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,oFAAoF;AACvF;;AAEA;AACA;AACA;AACA,GAAG;AACH,QAAQ;AACR,mBAAmB;AACnB;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;;AAEA,CAAC,EAAE,uBAAuB;AAC1B;;AAEA;;AAEA;AACA,sBAAsB;;AAEtB;AACA;AACA;AACA;;AAEA,CAAC,EAAE,kBAAkB;AACrB;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,0CAA0C;AAC7C;;AAEA;;AAEA,4BAA4B,EAAE;;AAE9B;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,qBAAqB;AACxB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA,CAAC,EAAE,mBAAmB;AACtB;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,GAAG;AACH;AACA;AACA;;AAEA,CAAC,EAAE,qCAAqC;AACxC;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,0CAA0C;AAC7C;;AAEA;AACA;;AAEA,oCAAoC;;AAEpC,CAAC,GAAG;AACJ,mBAAmB;AACnB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,MAAM;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,aAAa,mBAAmB,qBAAM,mBAAmB,qBAAM,mFAAmF;AACnJ,CAAC,EAAE,uCAAuC;AAC1C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,OAAO;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ,mBAAmB;;AAEnB;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,UAAU;AACrB,WAAW,QAAQ;AACnB,aAAa,UAAU;AACvB;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,aAAa,mBAAmB,qBAAM,mBAAmB,qBAAM,mFAAmF;AACnJ,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,yBAAyB;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA,0BAA0B,QAAQ;AAClC;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,wBAAwB,QAAQ;AAChC,0BAA0B,UAAU;AACpC,8BAA8B,UAAU;AACxC,mCAAmC,UAAU;AAC7C,4BAA4B,UAAU;AACtC,iCAAiC,UAAU;AAC3C,+BAA+B,UAAU;AACzC,8BAA8B,QAAQ;AACtC;AACA,4BAA4B,QAAQ;AACpC,yBAAyB,QAAQ;AACjC,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,qBAAqB,cAAc;AACnC,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;;AAEA;AACA,mCAAmC,GAAG;AACtC;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,QAAQ;AAC7B,sBAAsB,QAAQ;AAC9B,sCAAsC,SAAS;AAC/C,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,4BAA4B,GAAG;AAC/B;;AAEA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,2BAA2B,QAAQ;AACnC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,4BAA4B,GAAG;AAC/B;;AAEA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,iBAAiB,QAAQ;AACzB;AACA;AACA;;AAEA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,6BAA6B,QAAQ;AACrC,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,6BAA6B,QAAQ;AACrC,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,6BAA6B,QAAQ;AACrC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,4BAA4B,GAAG;AAC/B;;AAEA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,6BAA6B,QAAQ;AACrC,sBAAsB,QAAQ;AAC9B,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,qBAAqB,cAAc;AACnC,6BAA6B,QAAQ;AACrC,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,mBAAmB,QAAQ;AAC3B,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,2BAA2B,QAAQ;AACnC,iBAAiB,OAAO;AACxB;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA,qBAAqB,OAAO;AAC5B,uBAAuB,QAAQ;AAC/B,uBAAuB,QAAQ;AAC/B,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,KAAK;AACL,CAAC;;AAED;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,eAAe,QAAQ;AACvB;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;;AAEA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;;AAGA,CAAC,EAAE,kCAAkC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qCAAqC,GAAG;AACxC;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,0BAA0B,QAAQ;AAClC;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,wBAAwB,QAAQ;AAChC,0BAA0B,UAAU;AACpC,8BAA8B,UAAU;AACxC,mCAAmC,UAAU;AAC7C,4BAA4B,UAAU;AACtC,iCAAiC,UAAU;AAC3C,+BAA+B,UAAU;AACzC,8BAA8B,QAAQ;AACtC;AACA,4BAA4B,QAAQ;AACpC,yBAAyB,QAAQ;AACjC,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA,4DAA4D;AAC5D;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB;AACxB,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,sBAAsB,QAAQ;AAC9B,oBAAoB,QAAQ;AAC5B,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB;AACxB,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA,wBAAwB,UAAU;AAClC;AACA;AACA,KAAK;;AAEL;AACA;AACA,mBAAmB,QAAQ;AAC3B,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,yBAAyB,UAAU;AACnC;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;;;AAGA,CAAC,EAAE,kCAAkC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qCAAqC,GAAG;AACxC;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;AACA,0BAA0B,QAAQ;AAClC;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,wBAAwB,QAAQ;AAChC,0BAA0B,UAAU;AACpC,8BAA8B,UAAU;AACxC,mCAAmC,UAAU;AAC7C,4BAA4B,UAAU;AACtC,iCAAiC,UAAU;AAC3C,+BAA+B,UAAU;AACzC,8BAA8B,QAAQ;AACtC;AACA,4BAA4B,QAAQ;AACpC,yBAAyB,QAAQ;AACjC,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,iBAAiB,QAAQ;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA,gBAAgB;AAChB,KAAK;;AAEL;AACA;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,mBAAmB,QAAQ;AAC3B,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA,CAAC,EAAE,kCAAkC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qCAAqC,GAAG;AACxC;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,0BAA0B,QAAQ;AAClC;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,wBAAwB,QAAQ;AAChC,0BAA0B,UAAU;AACpC,8BAA8B,UAAU;AACxC,mCAAmC,UAAU;AAC7C,4BAA4B,UAAU;AACtC,iCAAiC,UAAU;AAC3C,+BAA+B,UAAU;AACzC,8BAA8B,QAAQ;AACtC;AACA,4BAA4B,QAAQ;AACpC,yBAAyB,QAAQ;AACjC,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA,4DAA4D;AAC5D;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA,wBAAwB,UAAU;AAClC;AACA;AACA,KAAK;;AAEL;AACA;AACA,mBAAmB,QAAQ;AAC3B,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,yBAAyB,UAAU;AACnC;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;;;AAGA,CAAC,EAAE,kCAAkC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qCAAqC,GAAG;AACxC;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;AACA,0BAA0B,QAAQ;AAClC;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,wBAAwB,QAAQ;AAChC,0BAA0B,UAAU;AACpC,8BAA8B,UAAU;AACxC,mCAAmC,UAAU;AAC7C,4BAA4B,UAAU;AACtC,iCAAiC,UAAU;AAC3C,+BAA+B,UAAU;AACzC,8BAA8B,QAAQ;AACtC;AACA,4BAA4B,QAAQ;AACpC,yBAAyB,QAAQ;AACjC,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,qBAAqB,QAAQ;AAC7B,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA,gBAAgB;AAChB;AACA,KAAK;;AAEL;AACA;AACA;AACA,qBAAqB,eAAe;AACpC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,8BAA8B;AAC1D;AACA;AACA,4BAA4B,WAAW;AACvC;AACA;AACA;AACA;AACA,4BAA4B,WAAW;AACvC;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,qBAAqB,QAAQ;AAC7B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,qBAAqB,QAAQ;AAC7B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,mBAAmB,QAAQ;AAC3B,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;;AAEA;AACA;;;AAGA,CAAC,EAAE,kCAAkC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qCAAqC,GAAG;AACxC;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;AACA,0BAA0B,QAAQ;AAClC;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,wBAAwB,QAAQ;AAChC,0BAA0B,UAAU;AACpC,8BAA8B,UAAU;AACxC,mCAAmC,UAAU;AAC7C,4BAA4B,UAAU;AACtC,iCAAiC,UAAU;AAC3C,+BAA+B,UAAU;AACzC,8BAA8B,QAAQ;AACtC;AACA,4BAA4B,QAAQ;AACpC,yBAAyB,QAAQ;AACjC,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,mBAAmB,QAAQ;AAC3B,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;;;AAGA,CAAC,EAAE,kCAAkC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qCAAqC,GAAG;AACxC;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,0BAA0B,QAAQ;AAClC;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,wBAAwB,QAAQ;AAChC,0BAA0B,UAAU;AACpC,8BAA8B,UAAU;AACxC,mCAAmC,UAAU;AAC7C,4BAA4B,UAAU;AACtC,iCAAiC,UAAU;AAC3C,+BAA+B,UAAU;AACzC,8BAA8B,QAAQ;AACtC;AACA,4BAA4B,QAAQ;AACpC,yBAAyB,QAAQ;AACjC,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA,sEAAsE;AACtE;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,UAAU;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,mBAAmB,QAAQ;AAC3B,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,UAAU;AACnC;AACA;AACA,CAAC;;AAED;AACA;;;AAGA,CAAC,EAAE,kCAAkC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qCAAqC,GAAG;AACxC;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA,0BAA0B,QAAQ;AAClC;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,wBAAwB,QAAQ;AAChC,0BAA0B,UAAU;AACpC,8BAA8B,UAAU;AACxC,mCAAmC,UAAU;AAC7C,4BAA4B,UAAU;AACtC,iCAAiC,UAAU;AAC3C,+BAA+B,UAAU;AACzC,8BAA8B,QAAQ;AACtC;AACA,4BAA4B,QAAQ;AACpC,yBAAyB,QAAQ;AACjC,8BAA8B,UAAU;AACxC,iCAAiC,UAAU;AAC3C,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,kBAAkB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,iBAAiB,QAAQ;AACzB;AACA,kBAAkB;AAClB,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,oBAAoB,QAAQ;AAC5B,iBAAiB,UAAU;AAC3B;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,mBAAmB,QAAQ;AAC3B,iBAAiB,UAAU;AAC3B;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,mBAAmB,QAAQ;AAC3B,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA,CAAC,EAAE,kCAAkC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qCAAqC,GAAG;AACxC;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA,0BAA0B,QAAQ;AAClC;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,wBAAwB,QAAQ;AAChC,0BAA0B,UAAU;AACpC,8BAA8B,UAAU;AACxC,mCAAmC,UAAU;AAC7C,4BAA4B,UAAU;AACtC,iCAAiC,UAAU;AAC3C,+BAA+B,UAAU;AACzC,8BAA8B,QAAQ;AACtC;AACA,4BAA4B,QAAQ;AACpC,yBAAyB,QAAQ;AACjC,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA,wBAAwB,UAAU;AAClC;AACA,wBAAwB,kBAAkB;AAC1C;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,mBAAmB,QAAQ;AAC3B,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;;;AAGA,CAAC,EAAE,kCAAkC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,0CAA0C,GAAG;AAC7C;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,QAAQ;AAClC;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,wBAAwB,QAAQ;AAChC,0BAA0B,UAAU;AACpC,8BAA8B,UAAU;AACxC,mCAAmC,UAAU;AAC7C,4BAA4B,UAAU;AACtC,iCAAiC,UAAU;AAC3C,+BAA+B,UAAU;AACzC,8BAA8B,QAAQ;AACtC;AACA,4BAA4B,QAAQ;AACpC,yBAAyB,QAAQ;AACjC,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C,oBAAoB;AACnE;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB;AACrB,wBAAwB,QAAQ;AAChC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,mBAAmB,QAAQ;AAC3B,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA,6CAA6C;AAC7C;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,2BAA2B,QAAQ;AACnC;AACA;AACA;AACA,wDAAwD,uCAAuC;AAC/F;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;;;AAGA,CAAC,EAAE,kCAAkC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qCAAqC,GAAG;AACxC;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;AACA,0BAA0B,QAAQ;AAClC;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,wBAAwB,QAAQ;AAChC,0BAA0B,UAAU;AACpC,8BAA8B,UAAU;AACxC,mCAAmC,UAAU;AAC7C,4BAA4B,UAAU;AACtC,iCAAiC,UAAU;AAC3C,+BAA+B,UAAU;AACzC,8BAA8B,QAAQ;AACtC;AACA,4BAA4B,QAAQ;AACpC,yBAAyB,QAAQ;AACjC,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,mBAAmB,QAAQ;AAC3B,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA,CAAC,EAAE,kCAAkC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qCAAqC,GAAG;AACxC;AACA;;AAEA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA,0BAA0B,QAAQ;AAClC;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,wBAAwB,QAAQ;AAChC,0BAA0B,UAAU;AACpC,8BAA8B,UAAU;AACxC,mCAAmC,UAAU;AAC7C,4BAA4B,UAAU;AACtC,iCAAiC,UAAU;AAC3C,+BAA+B,UAAU;AACzC,8BAA8B,QAAQ;AACtC;AACA,4BAA4B,QAAQ;AACpC,yBAAyB,QAAQ;AACjC,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,mBAAmB,QAAQ;AAC3B,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,qBAAqB,QAAQ;AAC7B,iBAAiB,QAAQ;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,qBAAqB,QAAQ;AAC7B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA,CAAC;;AAED;AACA;;;AAGA,CAAC,EAAE,kCAAkC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qCAAqC,GAAG;AACxC;AACA;;AAEA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA,0BAA0B,QAAQ;AAClC;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,wBAAwB,QAAQ;AAChC,0BAA0B,UAAU;AACpC,8BAA8B,UAAU;AACxC,mCAAmC,UAAU;AAC7C,4BAA4B,UAAU;AACtC,iCAAiC,UAAU;AAC3C,+BAA+B,UAAU;AACzC,8BAA8B,QAAQ;AACtC;AACA,4BAA4B,QAAQ;AACpC,yBAAyB,QAAQ;AACjC,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,mBAAmB,QAAQ;AAC3B,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,qBAAqB,QAAQ;AAC7B,iBAAiB,QAAQ;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,qBAAqB,QAAQ;AAC7B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA,CAAC;;AAED;AACA;;;AAGA,CAAC,EAAE,kCAAkC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,0BAA0B,QAAQ;AAClC;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,wBAAwB,QAAQ;AAChC,0BAA0B,UAAU;AACpC,8BAA8B,UAAU;AACxC,mCAAmC,UAAU;AAC7C,4BAA4B,UAAU;AACtC,iCAAiC,UAAU;AAC3C,+BAA+B,UAAU;AACzC,8BAA8B,QAAQ;AACtC;AACA,4BAA4B,QAAQ;AACpC,yBAAyB,QAAQ;AACjC,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA,wBAAwB,SAAS;AACjC;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA,iDAAiD;AACjD;AACA;AACA,wBAAwB,0BAA0B;AAClD;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA,sCAAsC;AACtC,KAAK;;AAEL;AACA;AACA,mBAAmB,QAAQ;AAC3B,iBAAiB,OAAO;AACxB;AACA,wCAAwC;AACxC;AACA;AACA;AACA,wBAAwB,0BAA0B;AAClD;AACA;AACA;AACA,sCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,QAAQ;AAC7B,sBAAsB,QAAQ;AAC9B,oBAAoB,QAAQ;AAC5B,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,qBAAqB,cAAc;AACnC,sBAAsB,QAAQ;AAC9B,oBAAoB,QAAQ;AAC5B,sBAAsB,QAAQ;AAC9B;AACA;AACA;AACA;AACA,mCAAmC,GAAG;AACtC;AACA;AACA;AACA,CAAC;;AAED;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA,CAAC,EAAE,kCAAkC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qCAAqC,GAAG;AACxC;AACA;;AAEA;;;AAGA;AACA;AACA;AACA,oCAAoC,GAAG;AACvC,+BAA+B,GAAG;AAClC,gCAAgC,GAAG;AACnC,+BAA+B,GAAG;AAClC,yCAAyC,GAAG,KAAK,GAAG;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BAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,oBAAoB,MAAM;AAC1B,iBAAiB,OAAO;AACxB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,sBAAsB,QAAQ;AAC9B;AACA;AACA;AACA;AACA;AACA,+BAA+B,GAAG,+BAA+B,GAAG;AACpE;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,GAAG;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,0BAA0B,QAAQ;AAClC;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,wBAAwB,QAAQ;AAChC,0BAA0B,UAAU;AACpC,8BAA8B,UAAU;AACxC,mCAAmC,UAAU;AAC7C,4BAA4B,UAAU;AACtC,iCAAiC,UAAU;AAC3C,+BAA+B,UAAU;AACzC,8BAA8B,QAAQ;AACtC;AACA,4BAA4B,QAAQ;AACpC,yBAAyB,QAAQ;AACjC,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,qBAAqB,cAAc;AACnC,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA,4DAA4D;AAC5D;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,UAAU;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,mBAAmB,QAAQ;AAC3B,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,UAAU;AACnC;AACA,KAAK;;AAEL;AACA;AACA,qBAAqB,cAAc;AACnC,wBAAwB,QAAQ;AAChC,sBAAsB,QAAQ;AAC9B,iBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,oBAAoB,MAAM;AAC1B,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,CAAC;;AAED;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;AAGA,CAAC,EAAE,oBAAoB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qCAAqC,GAAG;AACxC;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA,kDAAkD,EAAE;AACpD,8CAA8C,EAAE;AAChD,0DAA0D,EAAE;AAC5D;AACA,CAAC;AACD;;AAEA;;AAEA;AACA;AACA;AACA,yBAAyB,QAAQ;AACjC,2BAA2B,QAAQ;AACnC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,QAAQ;AACjC,qBAAqB,OAAO;AAC5B,2BAA2B,QAAQ;AACnC,mCAAmC,UAAU;AAC7C,8BAA8B,UAAU;AACxC,qCAAqC,UAAU;AAC/C,gCAAgC,UAAU;AAC1C,mCAAmC,8BAA8B;AACjE,wCAAwC,SAAS;AACjD;AACA,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,yBAAyB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2FAA2F;AAC3F;AACA,kDAAkD;AAClD,gFAAgF;AAChF,iFAAiF;AACjF,2DAA2D;AAC3D,6EAA6E;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD;AACrD,6FAA6F;AAC7F,+FAA+F;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,QAAQ;AAC/B,sBAAsB,QAAQ;AAC9B,2BAA2B,QAAQ;AACnC,qCAAqC,QAAQ;AAC7C,mCAAmC,UAAU;AAC7C,8BAA8B,UAAU;AACxC,qCAAqC,UAAU;AAC/C,gCAAgC,UAAU;AAC1C,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,eAAe;AAC3D;AACA;AACA;AACA,+BAA+B,GAAG;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,4BAA4B,kBAAkB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,GAAG;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,6EAA6E,GAAG;AAChF;AACA;AACA;AACA;AACA,8BAA8B,yBAAyB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD;AACpD,qEAAqE;AACrE,oDAAoD;AACpD,8CAA8C;AAC9C,wDAAwD;AACxD,sDAAsD;AACtD;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yFAAyF;AACzF,2FAA2F;AAC3F,qDAAqD;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAA0D,WAAW;AACrE;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,yBAAyB,qBAAqB;AAC9C;AACA,4BAA4B,OAAO;AACnC,4BAA4B,OAAO;AACnC;AACA,6BAA6B,QAAQ;AACrC,2BAA2B,QAAQ;AACnC,qCAAqC,QAAQ;AAC7C,mCAAmC,UAAU;AAC7C,8BAA8B,UAAU;AACxC,qCAAqC,UAAU;AAC/C,gCAAgC,UAAU;AAC1C,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;AAGD,CAAC,EAAE,iCAAiC;AACpC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED,CAAC,EAAE,4KAA4K;AAC/K;;AAEA;AACA;;AAEA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,YAAY;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA,CAAC,EAAE,8DAA8D;AACjE;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,eAAe,kBAAkB;AACjC;AACA;AACA;AACA;;AAEA,eAAe,mBAAmB;AAClC;AACA;AACA;AACA;;AAEA,yCAAyC;AACzC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,eAAe,wBAAwB;AACvC;AACA;;AAEA;AACA,uBAAuB,cAAc;AACrC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,YAAY;AACZ;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,wEAAwE;AAC3E;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA,CAAC,EAAE,+BAA+B;AAClC;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,mBAAmB,wBAAwB;AAC3C;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,kDAAkD;AACrD;;AAEA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,kBAAkB;;AAElB,mBAAmB,OAAO;AAC1B;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,uIAAuI;AAC1I;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,mBAAmB,mCAAmC;AACtD;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,QAAQ;AACnB,WAAW,SAAS;AACpB,WAAW,QAAQ;AACnB;AACA,WAAW,oBAAoB;AAC/B,WAAW,oBAAoB;AAC/B;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,oBAAoB,KAAK;AACzB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,oBAAoB,kBAAkB;;AAEtC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;;AAEA,uBAAuB,oBAAoB;AAC3C;AACA;AACA;AACA,sBAAsB,aAAa;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B,0EAA0E;;AAE1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;;AAEA;AACA,wBAAwB,mCAAmC;AAC3D;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,yBAAyB;AACzB,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;;AAEA;AACA;AACA,0BAA0B;AAC1B;AACA;;AAEA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;;AAEtB;AACA;AACA,qBAAqB;;AAErB;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA,iDAAiD,oCAAoC;AACrF;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,aAAa;AACb,MAAM;AACN;;AAEA,CAAC,EAAE,mSAAmS;AACtS;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,cAAc;AACzB;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,iBAAiB;AACjB,eAAe;;AAEf;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,sBAAsB,qBAAqB;AAC3C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,sBAAsB,yBAAyB;AAC/C;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,0BAA0B;;AAE1B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,mEAAmE;AACtE;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,4JAA4J;AAC/J;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED,CAAC,EAAE,mGAAmG;AACtG;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,iBAAiB;AACpC;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,iDAAiD;AACpD;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,uBAAuB;AACvB;;AAEA;AACA;;;AAGA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,oJAAoJ;AACvJ;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,iBAAiB;AACpC;AACA;;AAEA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,yDAAyD;AAC5D;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,oBAAoB;AACpB;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,mBAAmB,iBAAiB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,sGAAsG;AACzG;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,qrBAAqrB;AACxrB;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,mBAAmB,mBAAmB;AACtC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,oBAAoB;AAC9B,UAAU,mBAAmB;AAC7B,UAAU,mBAAmB;AAC7B,UAAU,qBAAqB;AAC/B,UAAU,oBAAoB;AAC9B,UAAU,oBAAoB;AAC9B,UAAU,oBAAoB;AAC9B,UAAU,mBAAmB;AAC7B,UAAU,qBAAqB;AAC/B,UAAU,qBAAqB;AAC/B,UAAU,yBAAyB;AACnC;AACA;AACA;AACA;AACA,UAAU,2CAA2C;AACrD,UAAU;AACV;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,4BAA4B,gBAAgB,0BAA0B;AACtE;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,+BAA+B;AAC/B;AACA,CAAC;;AAED,gCAAgC;AAChC;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,oBAAoB,oBAAoB;AACxC,oBAAoB,oBAAoB;AACxC;AACA,wBAAwB,oBAAoB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,oBAAoB;AAC5C,wBAAwB;AACxB,aAAa;AACb;AACA,6BAA6B;AAC7B;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,kEAAkE;AACrE;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,6BAA6B;;AAE7B,iCAAiC;;AAEjC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,2CAA2C;AAC3C;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa,6DAA6D;AAC1E;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,eAAe,iBAAiB;AAChC;AACA;;AAEA;AACA;;AAEA;AACA,2BAA2B,gBAAgB;AAC3C,cAAc;AACd,UAAU;AACV;;AAEA,uBAAuB,gBAAgB;AACvC;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA,2BAA2B,gBAAgB;AAC3C;AACA,UAAU;AACV;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,kBAAkB;AACrC;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,UAAU;AACV;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,+EAA+E;AAClF;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,iCAAiC,SAAS;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,oBAAoB,SAAS;AACrD,oCAAoC;AACpC,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED,CAAC,EAAE,uIAAuI;AAC1I;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA,gBAAgB;AAChB;AACA,gCAAgC;AAChC;AACA;AACA;AACA;;AAEA;;AAEA;AACA,yCAAyC;AACzC;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA,CAAC,EAAE,wQAAwQ;AAC3Q;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,qDAAqD,kBAAkB;;AAEvE;AACA,wCAAwC,kBAAkB;AAC1D;;AAEA;AACA;;AAEA;AACA;AACA;AACA,0DAA0D,4BAA4B;AACtF,kEAAkE,0CAA0C;AAC5G;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA,+BAA+B,iCAAiC;AAChE;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,qCAAqC;AACzD;AACA;AACA;AACA;AACA,sBAAsB,mCAAmC;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,qBAAqB;AACxC;AACA;AACA;;AAEA;AACA;AACA;;AAEA,2BAA2B,mBAAmB;AAC9C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,qBAAqB;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;;AAErB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,2CAA2C,sBAAsB;;AAEjE;AACA,4CAA4C,uBAAuB;AACnE;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,6EAA6E;AAC7E;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,6BAA6B;AAC7B,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,6BAA6B,oCAAoC;AACjE,4BAA4B;AAC5B,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mCAAmC,eAAe;;AAElD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA,wBAAwB,sBAAsB;AAC9C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAe,SAAS;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA,uBAAuB,SAAS;AAChC;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,aAAa;AACb;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,YAAY;AACZ;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,weAAwe;AAC3e;;AAEA;;;AAGA;AACA;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,sEAAsE;AACzE;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA,WAAW,QAAQ;AACnB,gBAAgB,QAAQ;AACxB;AACA;AACA,kBAAkB,QAAQ;AAC1B;AACA;AACA;AACA;AACA,wBAAwB,QAAQ;AAChC;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA,sBAAsB,SAAS;AAC/B;AACA;AACA,gBAAgB,SAAS;AACzB;AACA;AACA,sBAAsB,SAAS;AAC/B;AACA,yBAAyB,SAAS;AAClC;AACA;AACA;AACA,aAAa;AACb;AACA,YAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,MAAM;AACN,qBAAqB,mBAAmB;AACxC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;;AAEA;AACA;AACA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,sGAAsG;AACzG;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,8BAA8B;AAC9B,8BAA8B;;AAE9B;AACA;AACA,MAAM;AACN;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,qDAAqD;AACxD;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,qBAAqB;AACxC;AACA;;AAEA;AACA;AACA,+BAA+B,mBAAmB;AAClD;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA,yCAAyC,yBAAyB;AAClE;AACA;;AAEA,CAAC,EAAE,gCAAgC;AACnC;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,iEAAiE;AACjE;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,IAAI;AACf,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD;;AAExD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,mIAAmI;AACtI;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,4DAA4D;AAC5D;AACA;;AAEA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,0BAA0B;AACzC;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,wBAAwB;AAC3C;AACA;AACA;AACA,MAAM;AACN;AACA,mBAAmB,wBAAwB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,kBAAkB;AAClB,iBAAiB;AACjB,iBAAiB;AACjB,oBAAoB;AACpB;AACA,YAAY;AACZ,cAAc;AACd,aAAa;AACb;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,OAAO;AAC1B;AACA;AACA;AACA;;AAEA,YAAY;AACZ;;AAEA;AACA;AACA;;AAEA,8BAA8B,QAAQ;AACtC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,cAAc;AACd,aAAa;AACb;AACA,WAAW,QAAQ;AACnB,sBAAsB,SAAS;AAC/B,mBAAmB,SAAS;AAC5B;AACA,YAAY;AACZ;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,OAAO;AAC1B;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,iCAAiC;;AAEjC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,oGAAoG;AACvG;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,+JAA+J;AAClK;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE,yDAAyD;AAC5D;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,4EAA4E,yBAAyB;AACrG,UAAU;AACV;AACA,2BAA2B,qBAAqB;AAChD;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,8FAA8F;AACjG;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;;AAEA;;AAEA;;AAEA,mBAAmB,gBAAgB;AACnC;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,iBAAiB;AACpB;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD,qBAAqB;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,yDAAyD,eAAe;AACxE;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,4DAA4D,eAAe;AAC3E;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,qKAAqK;AACxK;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA,CAAC,EAAE,0FAA0F;AAC7F;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,oCAAoC,oBAAoB;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C;AAC1C,sCAAsC;AACtC;AACA;AACA;;AAEA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,KAAK;AAChB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,YAAY,SAAS;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,mCAAmC,aAAa;AAChD;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,uCAAuC,aAAa;AACpD;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,8CAA8C,aAAa;AAC3D;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,oBAAoB;AACpB,oBAAoB;AACpB;AACA;AACA,aAAa,uBAAuB;AACpC,qBAAqB,uCAAuC;AAC5D,iBAAiB,4CAA4C;AAC7D,yBAAyB,4DAA4D;AACrF,eAAe,4CAA4C;AAC3D,uBAAuB;AACvB;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,aAAa;AACxB,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ;AACnB;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,wCAAwC;;AAExC;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb,SAAS;;AAET;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ;AACnB,WAAW,aAAa;AACxB,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,+CAA+C;;AAE/C;AACA;AACA;AACA;AACA,iDAAiD;AACjD;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,MAAM;AACN;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,yBAAyB;AACzB;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA,2BAA2B,gBAAgB;AAC3C;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA,eAAe,oBAAoB;AACnC;AACA;AACA;AACA,eAAe,oBAAoB;AACnC;AACA;AACA;AACA;AACA;;AAEA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA,eAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;;AAEA,eAAe,YAAY;AAC3B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,gBAAgB;AACvC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,YAAY;AACvB;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC;AACxC,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,4CAA4C;AAC5C;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,4BAA4B;AAC5B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB,WAAW,QAAQ;AACnB,WAAW,uBAAuB;AAClC,uBAAuB;AACvB,4BAA4B;AAC5B;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,kCAAkC;AAClC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,8BAA8B;AAC9B;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE,kZAAkZ;AACrZ;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;;AAGA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,mBAAmB,qBAAqB;AACxC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA,mBAAmB,sBAAsB;AACzC;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,wBAAwB,iCAAiC,GAAG,aAAa;AACzE;AACA;AACA;AACA;;AAEA,CAAC,EAAE,iHAAiH;AACpH;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,YAAY,UAAU;AACtB,gBAAgB,SAAS;AACzB,gBAAgB,QAAQ;AACxB,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,SAAS;AACpB;AACA,YAAY,UAAU;AACtB,gBAAgB,SAAS;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA,4BAA4B;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gHAAgH;AACnH;;AAEA;AACA;;AAEA;;AAEA;AACA,8BAA8B;AAC9B,8BAA8B;AAC9B;AACA;AACA;AACA;;AAEA;AACA,8BAA8B;AAC9B,8BAA8B;AAC9B,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA;;AAEA,CAAC,EAAE,kJAAkJ;AACrJ;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,mCAAmC;AACnC;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mDAAmD;;;AAGnD,uEAAuE;;AAEvE;;AAEA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA,cAAc;;AAEd;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mDAAmD;;AAEnD,uEAAuE;;AAEvE;;AAEA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA,cAAc;AACd,SAAS;AACT,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,0FAA0F;AAC7F;;AAEA;;AAEA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE,+BAA+B;AAClC;;AAEA;AACA;AACA;;AAEA;AACA;AACA,8BAA8B;AAC9B;AACA,SAAS;AACT,kCAAkC;AAClC;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT,4BAA4B,0BAA0B,cAAc;AACpE,iCAAiC,+BAA+B,cAAc;AAC9E;AACA;AACA;;AAEA,CAAC,EAAE,mFAAmF;AACtF;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,wCAAwC,eAAe,GAAG,uBAAuB;AACjF;AACA;;AAEA,mBAAmB,qBAAqB;AACxC;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,qCAAqC;AACxC;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,2BAA2B,yBAAyB,kCAAkC;;AAEtF;AACA;AACA;AACA,UAAU;;AAEV;AACA;AACA;AACA;;AAEA,CAAC,EAAE,mCAAmC;AACtC;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,gCAAgC;AAChC;;AAEA;AACA;;AAEA,CAAC,EAAE,+DAA+D;AAClE;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC,2BAA2B,kBAAkB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,qBAAqB;AACxC;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,oBAAoB;AACvC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,MAAM;AACN;AACA;AACA;AACA;AACA,uBAAuB,eAAe;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,YAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,sBAAsB;AACjC;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,uBAAuB;AAC1C;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,oCAAoC;AAC/C;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,uBAAuB;AAC1C;AACA;;AAEA;AACA;AACA;;AAEA,2BAA2B,yBAAyB;AACpD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS,qBAAqB;AAC9B;AACA,SAAS,uBAAuB;AAChC,UAAU,2CAA2C;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;;AAEd;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb,iBAAiB,WAAW;AAC5B,iBAAiB,WAAW;AAC5B;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,8BAA8B,oBAAoB;AAClD;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;;AAEA;AACA,SAAS;AACT;AACA;AACA,SAAS;;AAET;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,SAAS;AAC5B;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,yBAAyB,sBAAsB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,0BAA0B,+BAA+B;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,0BAA0B,8BAA8B;AACxD;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;;AAErB;AACA;AACA,iDAAiD,gCAAgC;AACjF;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA,uBAAuB,uBAAuB;AAC9C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,0CAA0C,mCAAmC;;AAE7E;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,aAAa;AAChC;AACA;AACA;AACA,sCAAsC,iBAAiB;AACvD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,qBAAqB,4BAA4B;AACjD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,mBAAmB,sBAAsB;AACzC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB,sBAAsB;AAC3C,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,gEAAgE,kCAAkC;AAClG;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,qBAAqB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uBAAuB,6BAA6B;AACpD;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,iDAAiD,4CAA4C;AAC7F;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,gFAAgF,8BAA8B;AAC9G,mFAAmF,8BAA8B;AACjH;AACA,UAAU;AACV,2EAA2E,2BAA2B;AACtG;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,kFAAkF,8BAA8B;AAChH,iFAAiF,8BAA8B;AAC/G;AACA,UAAU;AACV,2EAA2E,2BAA2B;AACtG;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,oBAAoB;;AAEpB;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV,0BAA0B;AAC1B,UAAU;AACV;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV,0BAA0B;AAC1B,UAAU;AACV;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,cAAc;AACd,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,cAAc;AACd;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,oCAAoC,QAAQ;AAC5C;AACA;AACA;AACA;AACA;AACA,oCAAoC,QAAQ;AAC5C;AACA;AACA;;AAEA;;AAEA;AACA;AACA,mBAAmB,gBAAgB;AACnC;AACA;AACA;;AAEA;AACA,gCAAgC,QAAQ;AACxC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,gBAAgB;AACnC;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,wCAAwC,QAAQ;AAChD;AACA;AACA;AACA,gCAAgC,QAAQ;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uCAAuC,QAAQ;;AAE/C;AACA;AACA;;AAEA;AACA;AACA,uCAAuC,QAAQ;AAC/C;AACA,uCAAuC,QAAQ;AAC/C;AACA,cAAc;AACd;;AAEA;AACA;AACA;;AAEA;AACA,oCAAoC,QAAQ;AAC5C;AACA,gCAAgC,QAAQ;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,2BAA2B;AAC3B,2BAA2B;;AAE3B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B,6BAA6B;AACvD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,qDAAqD;AACrD,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;;AAEV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;;AAEV;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,yCAAyC,QAAQ;AACjD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,sBAAsB;AACzC;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,4BAA4B;AAC5B,6BAA6B;;AAE7B;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,uVAAuV;AAC1V;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,+CAA+C;AAClD;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,0CAA0C;AAC7C;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,oCAAoC,eAAe,GAAG,uBAAuB;AAC7E;;AAEA;AACA;;AAEA,CAAC,EAAE,qPAAqP;AACxP;;AAEA;;AAEA;AACA;AACA,CAAC;AACD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,oDAAoD;AACvD;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,iGAAiG;AACpG;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,sEAAsE;AACzE;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,gBAAgB,qFAAqF;AACrG;AACA,KAAK;AACL;AACA;AACA;AACA,gBAAgB,qFAAqF;AACrG;AACA,KAAK;AACL;AACA;AACA;AACA,gBAAgB,qFAAqF;AACrG;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,yBAAyB,iDAAiD;AAC1E,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA,uDAAuD,iBAAiB;;AAExE;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,UAAU;AAC7B;AACA;AACA,uBAAuB,aAAa;AACpC;AACA;AACA;AACA,kBAAkB;;AAElB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,cAAc;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,4BAA4B,cAAc;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,cAAc;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,4BAA4B,cAAc;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;;AAEA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA,MAAM;AACN;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,iBAAiB;AACjB,KAAK;;AAEL;AACA;AACA;AACA;;AAEA,CAAC,EAAE,wIAAwI;AAC3I;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,CAAC;;AAED,CAAC,EAAE,sHAAsH;AACzH;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,mBAAmB;AACtC;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;;AAEd;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,kDAAkD;AACrD;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB;AACnB;;AAEA,mBAAmB,OAAO;AAC1B;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,+GAA+G;AAClH;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,8BAA8B;AAC7C;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA,cAAc;AACd;AACA;AACA;AACA;;;AAGA;AACA;AACA,oBAAoB,2BAA2B;AAC/C,sBAAsB,gCAAgC;AACtD,qBAAqB;AACrB,SAAS;AACT;AACA,mBAAmB,2BAA2B;AAC9C,sBAAsB,gCAAgC;AACtD,sBAAsB;AACtB;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;;AAGT;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;;AAEL;AACA,eAAe,wBAAwB;AACvC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA,CAAC,EAAE,8IAA8I;AACjJ;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,CAAC,EAAE,uHAAuH;AAC1H;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;;AAEA,CAAC,EAAE,4DAA4D;AAC/D;;AAEA;AACA;AACA;AACA;AACA;AACA,0BAA0B,mCAAmC;;AAE7D;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,qBAAqB;AACxC;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,8CAA8C,yBAAyB;AACvE;AACA;;AAEA;AACA,+CAA+C,yBAAyB;AACxE;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,6CAA6C;AAC7C;AACA,SAAS;;AAET;AACA;AACA;;AAEA,CAAC,EAAE,+IAA+I;AAClJ;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mEAAmE;AACnE,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,KAAK;AACL,uBAAuB,iDAAiD;AACxE;AACA,uBAAuB,0DAA0D;;AAEjF;AACA;AACA,qBAAqB,gEAAgE;AACrF;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA,iBAAiB;AACjB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;;AAEA;;AAEA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,+DAA+D,+BAA+B;AAC9F;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,gDAAgD,mBAAmB;AACnE;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA,kBAAkB;AAClB;AACA;;AAEA;AACA,aAAa;AACb,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,OAAO;AAClD;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;AACL;;AAEA;AACA,uDAAuD;AACvD;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,UAAU,OAAO;AACjB;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU,OAAO;AACjB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM,OAAO;AACb;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,aAAa;;AAEb;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,qTAAqT;AACxT;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA,kBAAkB,+BAA+B;AACjD,eAAe,qBAAqB;AACpC;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,uBAAuB,eAAe;AACtC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;;AAErB;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,eAAe,oBAAoB;AACnC;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA,eAAe,uBAAuB;AACtC;AACA;AACA,mBAAmB,0BAA0B;AAC7C;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,wCAAwC,yBAAyB;AACjE;AACA,eAAe,uBAAuB;AACtC;AACA,+CAA+C,iBAAiB;AAChE;;AAEA;;AAEA;AACA;AACA,mBAAmB,0BAA0B;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,uBAAuB,0BAA0B;AACjD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA,mBAAmB,0BAA0B;AAC7C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,qCAAqC;AACxC;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,uBAAuB,qBAAqB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,+BAA+B,qBAAqB;AACpD;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA,cAAc;AACd;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,uBAAuB,qBAAqB;AAC5C;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB,qBAAqB;AAC5C,oCAAoC;AACpC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,kBAAkB;AACrC;AACA;AACA;;AAEA;AACA,uBAAuB,uBAAuB;AAC9C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,mBAAmB,iBAAiB;AACpC;AACA,uBAAuB,wBAAwB;AAC/C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,qCAAqC;AACxC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;;AAGA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,+DAA+D;AAClE;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV,0BAA0B,mBAAmB;AAC7C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,yCAAyC,OAAO,WAAW;AAC3D,uCAAuC,YAAY;AACnD;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,uFAAuF;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,cAAc;AACd;;AAEA;AACA;;AAEA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,qDAAqD;AACrD,6CAA6C;AAC7C,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iDAAiD;AACjD,wCAAwC;AACxC,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,SAAS;AACT;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,0CAA0C;AAC1C;;AAEA,6CAA6C,SAAS,OAAO,YAAY;AACzE;AACA;;AAEA,2CAA2C,YAAY;;AAEvD;AACA;AACA;;AAEA,+BAA+B;AAC/B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA,sEAAsE;AACtE;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,uOAAuO;AAC1O;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,kBAAkB;AACrB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ;AACnB;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,UAAU;AACrB;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA,WAAW,GAAG;AACd;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC,KAAK;AACL;AACA;AACA;AACA,oBAAoB;;AAEpB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA,WAAW;AACX;AACA;AACA,WAAW;AACX;AACA;;AAEA;AACA;AACA,0BAA0B,uCAAuC;AACjE;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,0BAA0B,uCAAuC;AACjE;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B,uBAAuB;AACjD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B,sBAAsB;AAChD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B,6BAA6B;AACvD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B,+BAA+B;AACzD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,0BAA0B,uCAAuC;AACjE;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,0BAA0B,qCAAqC;AAC/D;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,0BAA0B,4BAA4B;AACtD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,0BAA0B,iCAAiC;AAC3D;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,0BAA0B,8BAA8B;AACxD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,0BAA0B,qCAAqC;AAC/D;AACA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B,0BAA0B;AACpD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B,2BAA2B;AACrD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B,4BAA4B;AACtD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B,6BAA6B;AACvD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B,6CAA6C;AACvE;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B,wCAAwC;AAClE;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,mBAAmB;AACtC;;AAEA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B,uBAAuB;AACjD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B,sBAAsB;AAChD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,0BAA0B,mCAAmC;AAC7D;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,0BAA0B,qCAAqC;AAC/D;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,mBAAmB,qBAAqB;AACxC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B,0CAA0C;AACpE;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B,4CAA4C;AACtE;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,qBAAqB;AACxC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B,oDAAoD;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN,uBAAuB,qBAAqB;AAC5C;AACA;;AAEA;AACA;AACA;;AAEA;AACA,2BAA2B,OAAO;AAClC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B,0BAA0B;AACpD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B,2BAA2B;AACrD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B,wBAAwB;AAClD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B,oDAAoD;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,mBAAmB;AACtC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B,oDAAoD;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B,oDAAoD;AAC9E;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,0BAA0B,6BAA6B;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,yBAAyB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,0BAA0B,oDAAoD;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,0BAA0B,8BAA8B;AACxD;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,0BAA0B,qCAAqC;AAC/D;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,mBAAmB;AACtC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B,6BAA6B;AACvD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B,0BAA0B;AACpD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B,2BAA2B;AACrD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;AACA;;AAEA,uBAAuB,qBAAqB;AAC5C;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,kJAAkJ;AACrJ;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,qFAAqF;AACxF;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,mDAAmD;AACtD;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,2BAA2B,2CAA2C;AACtE;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA,2BAA2B,wCAAwC;AACnE;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA,uBAAuB,qBAAqB;AAC5C;AACA;AACA;AACA;AACA;AACA,2BAA2B,4BAA4B;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA,MAAM,OAAO;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,yBAAyB;AAChD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA,kBAAkB;AAClB;AACA,kBAAkB;AAClB;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,+BAA+B,wBAAwB;;AAEvD,mBAAmB,mBAAmB;AACtC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,qBAAqB;AACxC;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,mBAAmB,qBAAqB;AACxC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,2BAA2B,oBAAoB;AAC/C;AACA;AACA,UAAU;AACV;;AAEA;AACA;;AAEA;AACA;AACA,mBAAmB,0BAA0B;AAC7C;;AAEA,uBAAuB,wBAAwB;AAC/C;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,oKAAoK;AACvK;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,iBAAiB;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA,KAAK;AACL;;AAEA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY;AACZ;AACA;AACA;;AAEA;;AAEA;;AAEA,mBAAmB,oBAAoB;AACvC;AACA,uBAAuB,uBAAuB;AAC9C;AACA;AACA;;AAEA;AACA;;AAEA;AACA,YAAY,gBAAgB;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA,CAAC,EAAE,gFAAgF;AACnF;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA,CAAC,EAAE,+FAA+F;AAClG;;;AAGA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA,mBAAmB,yBAAyB;AAC5C;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,kJAAkJ;AACrJ;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,aAAa;;AAEb;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA,aAAa;AACb,SAAS;;AAET;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA,mBAAmB,iBAAiB;AACpC;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA,CAAC,EAAE,6PAA6P;AAChQ;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,CAAC,EAAE,8BAA8B;AACjC;;AAEA;AACA;AACA;;AAEA;AACA;AACA,oBAAoB;AACpB;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,iDAAiD;AACpD;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,uBAAuB,6CAA6C;AACpE,KAAK;AACL;AACA;AACA;AACA,aAAa,iDAAiD,qBAAqB;AACnF,aAAa,iDAAiD;AAC9D;AACA;AACA,uBAAuB,mBAAmB;AAC1C,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA,CAAC,EAAE,0BAA0B;AAC7B;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,iBAAiB;AACpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,6FAA6F;AAChG;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA,uBAAuB,mBAAmB;AAC1C;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,sIAAsI;AACzI;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,mBAAmB,4BAA4B;AAC/C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,2BAA2B,qBAAqB;AAChD;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,2BAA2B,qBAAqB;AAChD;AACA;AACA;;AAEA;AACA;AACA,mCAAmC,qBAAqB;AACxD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,2BAA2B,qBAAqB;AAChD;AACA;AACA;AACA;;AAEA;AACA;AACA,mCAAmC,qBAAqB;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA,gCAAgC,YAAY;AAC5C,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,sCAAsC,iDAAiD;AACvF;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,0BAA0B;AAC1B,aAAa;AACb;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA,mBAAmB,qBAAqB;AACxC;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA,CAAC,EAAE,+PAA+P;AAClQ;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,8BAA8B,yBAAyB;AACvD;AACA;;AAEA;AACA,uBAAuB,iBAAiB;AACxC;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,sHAAsH;AACzH;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,8CAA8C;AAC9C;AACA,iBAAiB;AACjB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,mIAAmI;AACtI;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,aAAa,iCAAiC;AAC9C,aAAa;AACb;AACA;AACA,KAAK;AACL;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,uBAAuB;AACvB,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;;AAEL,uBAAuB;AACvB,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,4BAA4B,2BAA2B,sBAAsB;AAC7E,4BAA4B,2BAA2B,2BAA2B;AAClF,2BAA2B,SAAS,sBAAsB;AAC1D;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,CAAC;;AAED,CAAC,EAAE,yMAAyM;AAC5M;;AAEA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;;AAEA;;AAEA,mBAAmB,sBAAsB;AACzC;AACA;;AAEA,gBAAgB;AAChB;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,gBAAgB;AAChB;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,eAAe,qBAAqB;AACpC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,mFAAmF;AACtF;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,kBAAkB;AAC9B,YAAY,kBAAkB;AAC9B,YAAY,kBAAkB;AAC9B,aAAa;AACb,YAAY,2BAA2B;AACvC,YAAY,oCAAoC;AAChD,YAAY,kBAAkB;AAC9B,YAAY,2BAA2B;AACvC,eAAe,iBAAiB;AAChC;AACA,KAAK;;AAEL;AACA,YAAY,kBAAkB;AAC9B,YAAY,kBAAkB;AAC9B,aAAa;AACb,YAAY,kBAAkB;AAC9B,YAAY,2BAA2B;AACvC,YAAY,oCAAoC;AAChD,YAAY,kBAAkB;AAC9B,YAAY,2BAA2B;AACvC,eAAe,iBAAiB;AAChC;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,mBAAmB,OAAO;AAC1B;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA,CAAC,EAAE,+HAA+H;AAClI;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,8BAA8B;AACjD;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;AAEA,2DAA2D,iCAAiC;AAC5F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;;AAEX;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,yCAAyC;AACzC;AACA;;AAEA;AACA;AACA,cAAc;AACd,4CAA4C;AAC5C;AACA;;AAEA;AACA;AACA,cAAc;AACd,4CAA4C;AAC5C;AACA;;AAEA;AACA,UAAU;AACV;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,yCAAyC;AACzC;AACA;;AAEA;AACA;AACA,cAAc;AACd,4CAA4C;AAC5C;AACA;;AAEA;AACA;AACA,cAAc;AACd,4CAA4C;AAC5C;AACA;;AAEA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,sCAAsC;AACtC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gCAAgC;AAChC,UAAU;AACV;AACA,gCAAgC;AAChC;AACA,MAAM;AACN,4BAA4B;AAC5B;;AAEA;AACA;AACA,gCAAgC;AAChC,UAAU;AACV;AACA,gCAAgC;AAChC;AACA,MAAM;AACN,4BAA4B;AAC5B;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA,SAAS;;AAET;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA,iCAAiC;AACjC;AACA;AACA,uBAAuB,mBAAmB;AAC1C;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,SAAS;AACT;AACA;;AAEA,CAAC,EAAE,0UAA0U;AAC7U;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,+BAA+B;AAC/B;AACA;AACA,aAAa;AACb;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA,CAAC,EAAE,yDAAyD;AAC5D;;AAEA,wBAAwB;;AAExB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,kBAAkB;AACrB;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,oBAAoB,gBAAgB;AACpC;AACA;;AAEA;AACA,2CAA2C;;AAE3C;AACA;AACA,qCAAqC;AACrC;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB;AAChB,gBAAgB;AAChB;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,2BAA2B,SAAS;AACpC;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,+BAA+B,SAAS;AACxC,mCAAmC,oBAAoB;AACvD;AACA;AACA;AACA;AACA,UAAU,OAAO;AACjB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,uBAAuB,6BAA6B;AACpD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,uBAAuB,qBAAqB;AAC5C;;AAEA;AACA;;AAEA;AACA,2BAA2B,iBAAiB;AAC5C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;;AAErB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,uBAAuB,qBAAqB;AAC5C,2BAA2B,wBAAwB;AACnD,+BAA+B,+BAA+B;AAC9D;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,gCAAgC;;AAEhC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mBAAmB,uBAAuB;AAC1C;AACA;AACA,uBAAuB,iBAAiB;AACxC;AACA,2BAA2B,oBAAoB;AAC/C;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,kLAAkL;AACrL;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mBAAmB,QAAQ;AAC3B;AACA,uBAAuB,QAAQ;AAC/B;AACA;AACA;AACA,cAAc;AACd;AACA,+BAA+B,QAAQ;AACvC;AACA;AACA;AACA,sBAAsB;AACtB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,gBAAgB;AACnC;;AAEA,4BAA4B;;AAE5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD;AAChD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD;AACxD;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,yBAAyB;AACzB;AACA;AACA;;AAEA;AACA,yBAAyB;AACzB;AACA;AACA;;AAEA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,2BAA2B,uBAAuB;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,oCAAoC;AACpC;AACA;AACA;AACA;;AAEA,uBAAuB,mBAAmB;AAC1C,uBAAuB,WAAW;AAClC;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,OAAO;AAC1B;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,SAAS;AAC5B;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,wCAAwC;;AAExC;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mBAAmB,kBAAkB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,8EAA8E;AACjF;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA,4BAA4B;AAC5B;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,iCAAiC;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,kCAAkC;;AAElC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,uCAAuC;;AAEvC;AACA,mBAAmB,mBAAmB;AACtC;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,kCAAkC;AAClC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,qBAAqB;AACxC,uBAAuB,wBAAwB;AAC/C,2BAA2B,+BAA+B;AAC1D;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,uJAAuJ;AAC1J;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,wDAAwD;AACxD;;AAEA;AACA,wDAAwD;AACxD;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,yBAAyB;AACzB;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN,oCAAoC;AACpC,MAAM;AACN,oCAAoC;AACpC;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,wCAAwC;AACxC;AACA,MAAM;AACN,oCAAoC;AACpC,MAAM;AACN,oCAAoC;AACpC;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,kCAAkC;AACrC;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,sJAAsJ;AACzJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,cAAc,gBAAgB;AAC9B,cAAc,gBAAgB;AAC9B,cAAc;AACd;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,iCAAiC,sBAAsB;AACvD,KAAK,GAAG,IAAI,UAAU;AACtB;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA,SAAS;;AAET;AACA;AACA,SAAS;;AAET;AACA,SAAS;AACT,KAAK;;AAEL;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED,CAAC,EAAE,sNAAsN;AACzN;;;AAGA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA,mBAAmB,kBAAkB;AACrC;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,4BAA4B;;AAE5B;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;;AAEN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gGAAgG;AACnG;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,SAAS;;AAET;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,qBAAqB;AACxC;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,0CAA0C,eAAe;;AAEzD;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,4FAA4F;AAC5F;AACA;AACA;AACA;AACA,SAAS;;AAET;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAmD;AACnD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,uCAAuC;AACvC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uCAAuC,mBAAmB;;AAE1D;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA,mBAAmB,+DAA+D;AAClF;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,YAAY;AAC/B;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;;AAEA;AACA,mBAAmB,2BAA2B;AAC9C;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,4MAA4M;AAC/M;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,mEAAmE;AACtE;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA,oBAAoB,QAAQ;AAC5B;AACA;AACA;AACA,mBAAmB,QAAQ;AAC3B;AACA;AACA;AACA;AACA,eAAe,kBAAkB;AACjC;AACA;AACA,aAAa,WAAW;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;;AAEA,4CAA4C,OAAO;AACnD;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,oOAAoO;AACvO;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,aAAa,eAAe;AAC5B,aAAa,eAAe;AAC5B,aAAa;AACb;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,aAAa,eAAe;AAC5B,aAAa,eAAe;AAC5B,aAAa;AACb;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;;AAEL,8BAA8B,sBAAsB;AACpD,KAAK;;AAEL;AACA,KAAK;;AAEL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED,CAAC,EAAE,uLAAuL;AAC1L;;;AAGA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,uBAAuB,aAAa;;AAEpC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gGAAgG;AACnG;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA,mBAAmB,qBAAqB;AACxC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;;AAEA,6CAA6C,4DAA4D;AACzG,SAAS;;AAET;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,mBAAmB,YAAY;AAC/B;AACA;AACA,MAAM;AACN;AACA,mBAAmB,YAAY;AAC/B;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,MAAM;AACN;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,2BAA2B,sBAAsB;AACjD,2BAA2B,qBAAqB;AAChD,4BAA4B,oBAAoB;AAChD,4BAA4B,uBAAuB;AACnD,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,8NAA8N;AACjO;AACA,CAAC,EAAE,6EAA6E;AAChF;;AAEA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA,2BAA2B;AAC3B,6BAA6B;AAC7B,6BAA6B;AAC7B,uBAAuB;AACvB,uBAAuB;;AAEvB;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,MAAM;AACN;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gEAAgE;AACnE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA,iBAAiB,MAAM;AACvB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,wBAAwB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,iqBAAiqB;AACpqB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,uGAAuG,gBAAgB,QAAQ,gBAAgB,QAAQ,YAAY;AACnK;AACA;;AAEA,CAAC,GAAG;AACJ;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,wBAAwB;;AAExB,wBAAwB;;AAExB;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB,YAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,cAAc;AACzB,WAAW;AACX;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,cAAc;AACzB,WAAW,cAAc;AACzB,YAAY;AACZ;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,mBAAmB;AAC9B,WAAW,mBAAmB;AAC9B,YAAY,QAAQ;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,mBAAmB;AAC9B,WAAW,mBAAmB;AAC9B,YAAY,QAAQ;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,mBAAmB;AAC9B,WAAW,mBAAmB;AAC9B,YAAY,QAAQ;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,YAAY;AACf;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,eAAe,sBAAsB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,mBAAmB,iBAAiB;AACpC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,iBAAiB;AAChC,eAAe,iBAAiB;AAChC;AACA,mBAAmB,iBAAiB;AACpC;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,2BAA2B,cAAc;AACzC;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,CAAC,EAAE,kDAAkD;AACrD;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,oBAAoB;AAC/B;AACA;AACA;;AAEA;AACA;AACA,qCAAqC,yBAAyB;AAC9D,SAAS;AACT;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,oBAAoB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,+BAA+B,mCAAmC;AAClE;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA,2BAA2B,mBAAmB;AAC9C;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,mBAAmB;;AAEnD;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA,2BAA2B,SAAS;AACpC;AACA;AACA;AACA;AACA;;AAEA,+BAA+B,UAAU;AACzC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd,2BAA2B,SAAS;AACpC;AACA;AACA;AACA;;AAEA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,2BAA2B,cAAc;AACzC;AACA;AACA;AACA;AACA,mCAAmC,iBAAiB;AACpD;AACA;AACA;AACA;AACA,kBAAkB;AAClB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,YAAY,KAAK;AACjB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,UAAU;AACrB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,qBAAqB,mBAAmB;;AAExC;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gOAAgO;AACnO;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mCAAmC;AACnC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,UAAU,WAAW,iBAAiB;;AAEtC;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAM;;AAEN,oCAAoC;AACpC;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK,EAAE;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,mCAAmC;;AAEnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,iBAAiB;AACpC;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB,cAAc;AACd;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,qHAAqH;AACxH;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,uBAAuB;AAClC;AACA,aAAa,gBAAgB;AAC7B;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,2CAA2C,oBAAoB;AAC/D,MAAM;AACN;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,YAAY;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,6DAA6D;AAChE;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;;AAEA;AACA,mBAAmB,yBAAyB;AAC5C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA,CAAC,EAAE,YAAY;AACf;;AAEA;AACA;;AAEA;AACA;AACA,eAAe,mBAAmB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,UAAU;AACV,6CAA6C;AAC7C;AACA;;AAEA,mBAAmB,YAAY;AAC/B;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,cAAc;AACd;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;;AAEA;AACA;AACA,cAAc;AACd;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,2BAA2B;AAC9B;;;AAGA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA,yBAAyB,MAAM,IAAI,OAAO;AAC1C;AACA,eAAe,MAAM;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,kBAAkB;AACrC;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,YAAY,kBAAkB;AAC9B,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,sBAAsB;AACzC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,uBAAuB;AAC1C;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,qBAAqB;AAC5C;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA,mBAAmB,6BAA6B;AAChD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,uBAAuB,oBAAoB;AAC3C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC;AAClC;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA,2BAA2B,iBAAiB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB,gBAAgB;AACvC;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uBAAuB,mBAAmB;AAC1C,2BAA2B,sBAAsB;AACjD;AACA;AACA;AACA;AACA;AACA,uBAAuB,mBAAmB;AAC1C;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,eAAe,mBAAmB;AAClC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,uBAAuB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,uBAAuB,mBAAmB;AAC1C,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa;AACb,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;;AAEA,mBAAmB,qBAAqB;AACxC;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,wLAAwL;AAC3L;;AAEA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,mBAAmB,sBAAsB;AACzC;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;;AAEA,uBAAuB,mBAAmB;AAC1C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,6BAA6B;AAChC;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,YAAY;AACZ;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe;AACf;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,sBAAsB,yBAAyB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,gBAAgB;AAC3B,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,OAAO,QAAQ;AACf,OAAO,QAAQ;AACf,OAAO,QAAQ;AACf,YAAY;AACZ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,YAAY;AACf;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;;AAEN;AACA;AACA;AACA;AACA,MAAM;;AAEN;AACA,uBAAuB,SAAS;AAChC;AACA;AACA;AACA;AACA,MAAM;;AAEN;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,6IAA6I;AAChJ;;AAEA;;AAEA,kBAAkB;;AAElB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,cAAc;AACvC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;;AAEA,CAAC,EAAE,iBAAiB;AACpB;;AAEA;AACA;;AAEA,wCAAwC;;AAExC,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,qCAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,KAAK;AAChB,WAAW,mBAAmB;AAC9B;AACA,YAAY,KAAK;AACjB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,KAAK;AAChB,WAAW,QAAQ;AACnB,YAAY;AACZ;AACA;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,qBAAqB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,yCAAyC;AACzC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,OAAO,mCAAmC;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,KAAK;AAChB;AACA,WAAW,KAAK;AAChB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,eAAe,qBAAqB;AACpC;AACA;;AAEA;;AAEA,eAAe,wBAAwB;AACvC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC;AAClC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,UAAU;AACzB;AACA;;AAEA;AACA,eAAe,UAAU;AACzB;AACA,mBAAmB,UAAU;AAC7B;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAe,qBAAqB;AACpC;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,qBAAqB;AACxC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA,uBAAuB,UAAU;AACjC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,UAAU;AACrB;AACA;AACA;;AAEA;AACA,uBAAuB,eAAe;AACtC;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,UAAU;AACrB;AACA,YAAY;AACZ;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,QAAQ;AACpB,YAAY,QAAQ;AACpB,YAAY,QAAQ;AACpB,YAAY,QAAQ;AACpB,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,uBAAuB,gBAAgB;AACvC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,sBAAsB;AACtB,sBAAsB;AACtB,WAAW,kBAAkB;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,2BAA2B;AAC9C;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,uBAAuB,2BAA2B;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,sBAAsB;AACtB;AACA;AACA;AACA,YAAY,gBAAgB;AAC5B;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,iBAAiB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;;AAEA;AACA,eAAe,iBAAiB;AAChC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,cAAc;AACzB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,IAAI;AACf,YAAY,cAAc;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,IAAI;AACf,YAAY,cAAc;AAC1B;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,UAAU,qBAAqB,eAAe;AAC9D;AACA,aAAa,WAAW;AACxB,aAAa,WAAW;AACxB;AACA,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,iBAAiB;AACpC;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,UAAU;AACV;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,4BAA4B,4BAA4B;AACxD,YAAY,UAAU,OAAO;AAC7B;AACA;AACA;AACA,4BAA4B,sBAAsB;AAClD,YAAY,aAAa,WAAW;AACpC;AACA;AACA;AACA,4BAA4B,mCAAmC;AAC/D,YAAY,OAAO,QAAQ,GAAG,QAAQ;AACtC;AACA;AACA;AACA,4BAA4B,iDAAiD;AAC7E,YAAY,gBAAgB,SAAS;AACrC;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,wEAAwE;AACxE,kBAAkB;AAClB;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,eAAe;AAC5B,aAAa,WAAW;AACxB,aAAa,YAAY;AACzB;AACA,aAAa,WAAW;AACxB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,gCAAgC,EAAE;AAClC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,+BAA+B,QAAQ,cAAc,KAAK;AAC1D;;AAEA;AACA;AACA;AACA;AACA,gCAAgC,MAAM,IAAI,cAAc;AACxD,gCAAgC,cAAc,IAAI,SAAS,aAAa,EAAE;AAC1E;AACA,WAAW,SAAS,0BAA0B,KAAK;AACnD,WAAW,SAAS;AACpB;AACA,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,MAAM,IAAI,cAAc;AAC7D,qCAAqC,cAAc,IAAI,SAAS,aAAa,EAAE;AAC/E,sCAAsC,OAAO,IAAI,KAAK;AACtD;AACA,WAAW,SAAS,0BAA0B,SAAS;AACvD,WAAW,SAAS,4EAA4E;AAChG,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB;AACA,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,uBAAuB,iBAAiB;AACxC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,OAAO;AAC1B;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,QAAQ;AACpB,YAAY,QAAQ;AACpB,YAAY,iBAAiB;AAC7B;AACA;AACA;AACA,sBAAsB,mBAAmB;AACzC,sBAAsB;;AAEtB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA,mBAAmB,OAAO;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,+BAA+B;AAC/B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,yuBAAyuB;AAC5uB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;;AAEA;AACA;AACA;AACA,mBAAmB,gBAAgB;AACnC;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,SAAS;AACT;AACA;;AAEA;;AAEA;AACA;AACA,cAAc;AACd;AACA,cAAc;AACd;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA,SAAS;AACT;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,6BAA6B,gBAAgB;AAC7C;AACA;AACA,6BAA6B,gBAAgB;AAC7C;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,2BAA2B,oBAAoB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,wBAAwB;AAC3B;;AAEA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,OAAO;AAC1B;AACA,uBAAuB,OAAO;AAC9B,6CAA6C;AAC7C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,kBAAkB;AACrB;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,mBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,mBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,mBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,+CAA+C;AAClD;;AAEA;;AAEA;AACA;AACA;AACA,WAAW,cAAc;AACzB;AACA,WAAW,OAAO;AAClB;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA,uCAAuC,yBAAyB;;AAEhE;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,+BAA+B,6BAA6B;;AAE5D;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;;AAEA;AACA;AACA,mBAAmB,eAAe;AAClC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,UAAU;;AAEzB;AACA,eAAe,YAAY;AAC3B;AACA,mBAAmB,UAAU;AAC7B;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,SAAS;AAC5B,MAAM;AACN;AACA;AACA;AACA,mBAAmB,uBAAuB;AAC1C,MAAM;AACN;AACA;AACA,mBAAmB,SAAS;AAC5B;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,cAAc;AACjB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,OAAO,KAAK,GAAG,KAAK;AACpC;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,uBAAuB,oBAAoB;AAC3C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA,2BAA2B,oBAAoB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,sCAAsC;AACtC,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,sBAAsB;AACzC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,2BAA2B;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,0BAA0B,wBAAwB;AAClD,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,mCAAmC;AACtC;;AAEA;AACA;;AAEA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,YAAY,WAAW;AACvB;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA,2BAA2B,kBAAkB;AAC7C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA,CAAC,EAAE,qCAAqC;AACxC;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,oBAAoB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,kBAAkB;AACrB;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,gBAAgB;AAC/B;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,sCAAsC;AACtC;AACA;AACA;AACA;AACA,mDAAmD;AACnD;AACA,UAAU,mCAAmC;AAC7C;AACA;AACA;AACA;AACA,mDAAmD;AACnD;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,UAAU;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,gBAAgB;AAC/B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB,SAAS;AAChC;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,+BAA+B,gBAAgB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,4CAA4C;AAC/C,mBAAmB;AACnB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,oBAAoB;AAC/B,WAAW,OAAO;AAClB;AACA,YAAY,SAAS;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,aAAa;AACb,UAAU;AACV;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA,wBAAwB,0CAA0C;AAClE;AACA;AACA;;AAEA,CAAC,aAAa,mBAAmB,qBAAM,mBAAmB,qBAAM,mFAAmF;AACnJ,CAAC,EAAE,qCAAqC;AACxC;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;;AAEA;;AAEA;AACA,cAAc,UAAU,mBAAmB;AAC3C;AACA;AACA,KAAK;;AAEL;AACA;AACA,uBAAuB,qBAAqB;AAC5C;AACA;AACA;AACA,mCAAmC,QAAQ;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,qCAAqC;AACxC;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA,WAAW,KAAK;AAChB;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA,MAAM;;AAEN;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;;AAEA,mBAAmB,iBAAiB;AACpC;;AAEA;AACA;AACA;AACA;AACA,oCAAoC;AACpC,UAAU;AACV;;AAEA;AACA;;;AAGA;AACA;AACA;;;AAGA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oCAAoC;AACpC;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,oBAAoB,OAAO,oBAAoB,SAAS;AACxD;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,eAAe,gCAAgC;AAC/C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,eAAe,gCAAgC;AAC/C;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA,CAAC,EAAE,2CAA2C;AAC9C;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,kBAAkB;AAC7B;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA,2BAA2B,YAAY;AACvC;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,sCAAsC;AACzC;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA,6BAA6B,gBAAgB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,0BAA0B;AAC1B,6BAA6B;AAC7B,6BAA6B;AAC7B,gCAAgC;;AAEhC,qCAAqC;AACrC,qCAAqC;;AAErC;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC;AAChC,kCAAkC;;AAElC;AACA,gCAAgC,WAAW;AAC3C;AACA;;AAEA;AACA;AACA;AACA;AACA,mBAAmB,WAAW;AAC9B;;AAEA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA;AACA;;AAEA,YAAY;AACZ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,UAAU;AACrB;AACA;AACA,YAAY,MAAM;AAClB;AACA;AACA;AACA;AACA,mBAAmB,kBAAkB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,eAAe;AAC1B;AACA,YAAY;AACZ;AACA;AACA;;AAEA;AACA;;AAEA,mBAAmB,gBAAgB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,mFAAmF;AACtF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;;;AAGA;AACA;AACA,WAAW,gBAAgB;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,0BAA0B;AAC7B;;AAEA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,UAAU;AACrB,WAAW,QAAQ;AACnB;AACA;AACA,WAAW,OAAO;AAClB;AACA,WAAW,QAAQ;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;;AAEA,eAAe,SAAS;AACxB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yCAAyC,eAAe;AACxD;;AAEA;AACA;AACA,4CAA4C,eAAe;AAC3D;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB;AACA,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,mCAAmC;AACtC;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA,CAAC,EAAE,qBAAqB;AACxB;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,0BAA0B;;AAE1B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;;AAErB;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,wBAAwB,8CAA8C;;AAEtE;AACA;AACA,wBAAwB,yBAAyB;;AAEjD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,kBAAkB;AAClB;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA,aAAa;AACb,SAAS;AACT,MAAM;;AAEN;AACA;;;AAGA;;AAEA,uBAAuB,MAAM;AAC7B,uBAAuB,MAAM;;AAE7B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,6CAA6C;;AAE7C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,sDAAsD;AACtD;AACA,mBAAmB,aAAa;AAChC,oBAAoB,2CAA2C;AAC/D,oBAAoB,qCAAqC;AACzD;;AAEA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC;AACA;AACA;AACA,oCAAoC,oBAAoB,EAAE;AAC1D;AACA,uBAAuB,iBAAiB;AACxC;AACA,kDAAkD,YAAY;AAC9D;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,sBAAsB;;AAEtB;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,UAAU,QAAQ;AAClB,kBAAkB,OAAO;AACzB,YAAY;AACZ;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,qBAAqB;AACxC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA;AACA,cAAc;AACd;;AAEA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,wEAAwE;AACxE;AACA;AACA;AACA;AACA,0EAA0E;AAC1E,aAAa,iBAAiB;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,iDAAiD;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;;AAEV;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,kBAAkB;AAC7B,WAAW,QAAQ;AACnB;AACA,aAAa,KAAK;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,sCAAsC;AACtC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;;AAEA;AACA,sBAAsB,eAAe;;AAErC;AACA,2BAA2B,yBAAyB;AACpD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,aAAa;AACjD;AACA;AACA,UAAU;;AAEV;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,sBAAsB,oBAAoB;AAC1C;;AAEA;AACA,mBAAmB,kBAAkB;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA,cAAc;AACd;;AAEA,gCAAgC;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C;AAC1C,kBAAkB;;AAElB;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mBAAmB,kBAAkB;AACrC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;;AAEA;AACA,uCAAuC,YAAY;;AAEnD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;;AAEA;AACA,+CAA+C,mBAAmB;AAClE;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,8BAA8B;AAC9B,MAAM;AACN,8BAA8B;AAC9B,MAAM,OAAO;AACb,8BAA8B;AAC9B;;AAEA;AACA,+BAA+B;AAC/B,MAAM;AACN,+BAA+B;AAC/B,MAAM,OAAO;AACb,+BAA+B;AAC/B;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,cAAc;AACzB;AACA,WAAW,QAAQ;AACnB,aAAa,KAAK;AAClB,aAAa,cAAc;AAC3B,aAAa,SAAS;AACtB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;;AAEA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,6CAA6C;;AAEhE;;AAEA;AACA;AACA,uBAAuB,WAAW;AAClC;AACA;AACA;AACA;AACA;AACA;AACA,6EAA6E,WAAW;AACxF;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,mBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;AACA,4BAA4B,WAAW;AACvC;AACA;AACA;AACA;AACA;AACA,qFAAqF,WAAW;AAChG;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA;AACA,mCAAmC,WAAW;AAC9C;AACA,gCAAgC,WAAW;AAC3C,iDAAiD,eAAe;AAChE;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,8FAA8F;AACjG;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,WAAW,UAAU;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC;AAClC;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,iBAAiB;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,qBAAqB;AACxB;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,mDAAmD;AACtD;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,aAAa,gBAAgB;AAC7B;AACA,QAAQ,QAAQ,OAAO,UAAU,OAAO,aAAa;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,6BAA6B;AAChD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA,sBAAsB;;AAEtB;AACA;;AAEA,YAAY;AACZ;;AAEA,CAAC,EAAE,kBAAkB;AACrB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,sCAAsC;;AAEnE;AACA;AACA;AACA;AACA,8BAA8B,uCAAuC;;AAErE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,0BAA0B;AACrD;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA,mBAAmB,iBAAiB;AACpC;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,sBAAsB;AACjC;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,QAAQ;AACpB;AACA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,+BAA+B;AAC/B;;AAEA;AACA;AACA,2BAA2B,uBAAuB;AAClD;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,aAAa;AAChB;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,+DAA+D;AAC/D,4DAA4D;AAC5D,gEAAgE;AAChE,2DAA2D;;AAE3D;AACA,eAAe,iBAAiB;AAChC;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC;;AAElC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,UAAU;AACV;;AAEA;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,2BAA2B,OAAO;AAClC;AACA;;AAEA;AACA,0BAA0B,gCAAgC;AAC1D,6BAA6B,yCAAyC;AACtE,yBAAyB,kBAAkB;AAC3C;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,oBAAoB;AACnC;;AAEA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,eAAe,eAAe;AAC9B;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,eAAe,eAAe;AAC9B;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,sBAAsB;AAC9C;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,2BAA2B,+BAA+B;AAC1D;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,uBAAuB,iBAAiB;AACxC;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,8DAA8D;AAC9D,8DAA8D;AAC9D;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,uBAAuB,uBAAuB;AAC9C;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,2CAA2C,sBAAsB;AACjE;AACA;AACA;AACA,iCAAiC;AACjC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,YAAY;AAC3B;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,2BAA2B;AAC9C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN,4CAA4C,WAAW;AACvD,MAAM;AACN;AACA,uBAAuB,yBAAyB;AAChD;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,GAAG;AACd;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;;AAEA;AACA;;AAEA;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ;AACnB;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,WAAW;AACtB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA,mBAAmB,mBAAmB;AACtC;AACA,uBAAuB,OAAO;AAC9B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,4JAA4J;AAC/J;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,mGAAmG;AACtG;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,yBAAyB,IAAI,IAAI;AACzD,0BAA0B,mBAAmB,QAAQ,IAAI,IAAI,KAAK;AAClE,qBAAqB,4BAA4B,IAAI,IAAI;AACzD,qBAAqB,wBAAwB,IAAI,IAAI;AACrD,8BAA8B,yBAAyB,IAAI,KAAK;AAChE,8BAA8B,qBAAqB,IAAI,KAAK;AAC5D,sBAAsB,8BAA8B,IAAI,IAAI;AAC5D;AACA;AACA;AACA;AACA;AACA,MAAM,6CAA6C;AACnD;AACA,OAAO,+CAA+C;AACtD;AACA,OAAO,kDAAkD;AACzD;AACA;AACA;AACA;AACA,WAAW,gBAAgB;AAC3B;AACA,WAAW,oBAAoB;AAC/B,WAAW,QAAQ;AACnB,yBAAyB;AACzB,KAAK,gBAAgB;AACrB;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA,WAAW,UAAU;AACrB;AACA;AACA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,0BAA0B;AACzC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA,oFAAoF;AACpF,cAAc;AACd;AACA;AACA;;AAEA;AACA,UAAU;AACV,uBAAuB,oBAAoB;AAC3C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,gCAAgC,QAAQ;AACxC;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,uBAAuB,0BAA0B;AACjD;AACA;AACA;AACA;AACA,sCAAsC,cAAc;AACpD;AACA;AACA;AACA,mBAAmB,0BAA0B;AAC7C;AACA;AACA,MAAM;;AAEN;AACA;;AAEA,CAAC,EAAE,wIAAwI;AAC3I;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,0BAA0B;AACrC;AACA,WAAW,kBAAkB;AAC7B;AACA,WAAW,QAAQ;AACnB;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA,WAAW,0BAA0B;AACrC;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,wBAAwB;AAC3C;AACA;;AAEA;AACA;AACA;AACA;AACA,sDAAsD;;AAEtD;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;;AAEA,sCAAsC;;AAEtC;AACA;AACA;AACA;AACA;;AAEA,uBAAuB,4BAA4B;AACnD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa,iBAAiB,eAAe;;AAE7C;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA,8CAA8C;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,2BAA2B,qBAAqB;AAChD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,uCAAuC;;AAEvC;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA,mBAAmB,iBAAiB;AACpC;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,uBAAuB,iBAAiB;AACxC;AACA;AACA;AACA;AACA;AACA,uBAAuB,iBAAiB;AACxC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,mBAAmB,kBAAkB;AACrC;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,WAAW,UAAU;AACrB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA;AACA;;AAEA;AACA,0BAA0B,0CAA0C;;AAEpE;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,UAAU;AACrB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,oBAAoB;AACnC;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,oBAAoB;AACnC;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,eAAe,mBAAmB;AAClC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,uBAAuB;AAClC,WAAW,QAAQ;AACnB,WAAW,UAAU;AACrB,WAAW,gBAAgB;AAC3B,YAAY;AACZ;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,uBAAuB,oBAAoB;AAC3C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,uBAAuB;AAClC,WAAW,QAAQ;AACnB,WAAW,UAAU;AACrB,WAAW,gBAAgB;AAC3B,WAAW,UAAU;AACrB,YAAY;AACZ;AACA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,wBAAwB;AAC3C;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,YAAY;AACZ;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,uBAAuB;AAClC,WAAW,QAAQ;AACnB,WAAW,iBAAiB;AAC5B,WAAW,eAAe;AAC1B;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,uBAAuB;AAClC,WAAW,UAAU;AACrB,WAAW,iBAAiB;AAC5B,WAAW,iBAAiB;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,kCAAkC;AAClC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,gCAAgC;AAChC,KAAK;;AAEL;;AAEA;AACA,eAAe,mBAAmB;AAClC;AACA;;AAEA;AACA,eAAe,mBAAmB;AAClC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,uBAAuB;AAClC,WAAW,UAAU;AACrB,WAAW,iBAAiB;AAC5B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,eAAe,oBAAoB;AACnC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,uBAAuB;AAClC,WAAW,UAAU;AACrB,WAAW,iBAAiB;AAC5B,WAAW,iBAAiB;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,2BAA2B;AAC9C;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,eAAe,oBAAoB;AACnC;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,2BAA2B;AAC1C,6BAA6B,2DAA2D;AACxF;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA,eAAe,2BAA2B;AAC1C;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,yBAAyB;AACpC;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,GAAG;AACd;AACA,WAAW,mBAAmB;AAC9B;AACA;AACA;AACA,WAAW,yBAAyB;AACpC;AACA,WAAW,QAAQ;AACnB,uBAAuB,6BAA6B;AACpD;AACA,WAAW,mBAAmB;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA,MAAM;AACN;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,kEAAkE;;AAElE;AACA;;AAEA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,uBAAuB,YAAY;AACnC;AACA;AACA,MAAM;AACN;AACA;AACA,uCAAuC;AACvC;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ,YAAY,WAAW;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC;AACxC;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,oBAAoB,+BAA+B,mBAAmB;;AAEtE;AACA;AACA;AACA;AACA;;AAEA,qCAAqC;;AAErC,iCAAiC;;AAEjC;AACA;AACA;AACA,gCAAgC,qBAAqB;AACrD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,qBAAqB;AAC5D;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,mBAAmB;AACtC;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;;AAEA;AACA,yBAAyB,eAAe;AACxC;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA,cAAc;AACd;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,mBAAmB;AAC1C;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,0BAA0B,IAAI;AAC5C,QAAQ,YAAY,MAAM,IAAI,eAAe,KAAK;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,iBAAiB;AAChC;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,yBAAyB;AACpC;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,GAAG;AACd;AACA;AACA;AACA,WAAW,yBAAyB;AACpC;AACA,WAAW,QAAQ;AACnB,uBAAuB,6BAA6B;AACpD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN,gCAAgC;AAChC,MAAM;AACN;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,yCAAyC,qBAAqB;AAC9D,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC;AACxC;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,eAAe,iBAAiB;AAChC;AACA,uBAAuB,iBAAiB;AACxC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,kBAAkB;AACzD;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,+DAA+D,SAAS;AACxE;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,mCAAmC;;AAEnC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD;;AAEhD;AACA;AACA,qDAAqD,KAAK;AAC1D;AACA;AACA;AACA,kBAAkB;AAClB;AACA,kBAAkB;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,UAAU;AACV;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA,cAAc;AACd;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,yBAAyB;AACpC;AACA,WAAW,QAAQ;AACnB,uBAAuB,6BAA6B;AACpD;AACA,WAAW,QAAQ;AACnB,uBAAuB,6BAA6B;AACpD;AACA,WAAW,mBAAmB;AAC9B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA,qDAAqD;AACrD;;AAEA,uDAAuD;AACvD;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK,oDAAoD;AACzD,KAAK,uDAAuD;;AAE5D;AACA,KAAK,4DAA4D;AACjE,KAAK,yDAAyD;;AAE9D,KAAK,+BAA+B;AACpC,KAAK,oDAAoD;AACzD,KAAK,wDAAwD;AAC7D,KAAK,qEAAqE;AAC1E,KAAK,8CAA8C;AACnD,KAAK,qDAAqD;;AAE1D,KAAK,iDAAiD;AACtD,KAAK,uDAAuD;AAC5D,KAAK;AACL;;AAEA;AACA;AACA;AACA,KAAK,uDAAuD;AAC5D;AACA,KAAK,0DAA0D;AAC/D,KAAK,+CAA+C;AACpD,KAAK,+BAA+B;AACpC,KAAK,mBAAmB;;AAExB;AACA;AACA;AACA;;AAEA;AACA,KAAK,4BAA4B;AACjC;AACA,KAAK,kCAAkC;AACvC,KAAK;AACL;;AAEA;AACA,mBAAmB,yBAAyB;AAC5C;AACA;AACA;AACA,oBAAoB;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,mBAAmB,qBAAqB;AACxC;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,iBAAiB;AACpC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mBAAmB,iCAAiC;AACpD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,0BAA0B;AACrC;AACA,WAAW,kBAAkB;AAC7B;AACA,WAAW,QAAQ;AACnB;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA,WAAW,0BAA0B;AACrC;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;;AAEA,2BAA2B;;AAE3B;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,6CAA6C;AAC7C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,kCAAkC,qBAAqB;;AAEvD;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,2BAA2B,qBAAqB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa;AACb,UAAU;AACV;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,uCAAuC,oBAAoB;AAC3D;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,eAAe,wBAAwB;AACvC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;;AAEA,uBAAuB,YAAY;AACnC;AACA;AACA,oCAAoC,4BAA4B;AAChE;;AAEA;AACA;AACA;AACA;AACA,gCAAgC,YAAY;AAC5C;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA,cAAc;AACd,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,+BAA+B,mBAAmB;AAClD;AACA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,0BAA0B;AACrC;AACA;AACA,WAAW,0DAA0D;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,UAAU;AAC7B;AACA;AACA;AACA;AACA,mCAAmC,UAAU,GAAG,UAAU;AAC1D;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,2BAA2B,sBAAsB;AACjD;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,2DAA2D;AAC3D,aAAa;AACb,UAAU;AACV;AACA;AACA,uBAAuB,0BAA0B;AACjD;;AAEA;;AAEA;AACA;AACA;AACA;AACA,mDAAmD,iBAAiB;AACpE,qBAAqB;AACrB;AACA;AACA,UAAU;AACV,uBAAuB,wCAAwC;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAmD,kBAAkB;AACrE,qBAAqB;AACrB,kBAAkB;AAClB;AACA;AACA,mEAAmE;AACnE,qBAAqB;AACrB;AACA;AACA;;AAEA,2DAA2D;AAC3D,mBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,2BAA2B,sBAAsB;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,WAAW,0BAA0B;AACrC;AACA;AACA,WAAW,kBAAkB;AAC7B;AACA,iBAAiB,QAAQ;AACzB,iBAAiB,kBAAkB;AACnC,kBAAkB,QAAQ;AAC1B,kBAAkB,OAAO;AACzB,qBAAqB,QAAQ;AAC7B;AACA,YAAY,mBAAmB;AAC/B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kCAAkC,QAAQ;AAC1C;;AAEA;AACA;AACA;AACA,+EAA+E;AAC/E;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,uCAAuC;;AAEvC;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA,mCAAmC,QAAQ;AAC3C;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uBAAuB,oBAAoB;AAC3C,oCAAoC;AACpC;AACA,sBAAsB,wCAAwC;AAC9D,4BAA4B,6CAA6C;AACzE,UAAU;AACV;AACA;;AAEA,sBAAsB,yCAAyC;AAC/D,4BAA4B,2BAA2B;AACvD;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,0BAA0B;AACrC;AACA;AACA,WAAW,mBAAmB;AAC9B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,oBAAoB;AACvC;AACA;AACA;;AAEA;AACA;;AAEA,kCAAkC,QAAQ;AAC1C;AACA,kBAAkB,2BAA2B;AAC7C,wBAAwB,gDAAgD;AACxE;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,0BAA0B;AACrC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,0BAA0B;;AAE1B;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA,CAAC,EAAE,weAAwe;AAC3e;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,gBAAgB;AAChB,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,gBAAgB;AAChB;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,SAAS;;AAET;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,UAAU;AACrB;AACA;AACA,oBAAoB,QAAQ;AAC5B,oBAAoB,QAAQ;AAC5B,oBAAoB,UAAU;AAC9B,oBAAoB,QAAQ;AAC5B,oBAAoB,QAAQ;AAC5B,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,mCAAmC,iBAAiB;AACpD;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uBAAuB,uBAAuB;AAC9C;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+EAA+E;AAC/E;AACA,eAAe;AACf,MAAM;AACN;AACA;AACA;AACA,8FAA8F;AAC9F;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,mBAAmB,4BAA4B;AAC/C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,oBAAoB;AACvC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,4DAA4D;AAC5D;AACA,UAAU,kBAAkB;AAC5B;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA,6CAA6C;AAC7C,+CAA+C;;AAE/C;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,kDAAkD;AAClD;;AAEA;AACA,gCAAgC;AAChC,4CAA4C;AAC5C;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,2BAA2B,yBAAyB;AACpD;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,qCAAqC;;AAErC;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA,gCAAgC;AAChC;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA,4BAA4B;AAC5B;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,+BAA+B,oBAAoB;AACnD;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA,gCAAgC;;AAEhC;AACA;AACA;;AAEA;AACA;;AAEA,uCAAuC;AACvC;;AAEA,CAAC,EAAE,qMAAqM;AACxM;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ,6BAA6B,aAAa,SAAS;AACtE;AACA;AACA;AACA,aAAa,OAAO,GAAG,SAAS;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,0CAA0C;AAC1C,wBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,kEAAkE;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA,iCAAiC;AACjC;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ;AACnB;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA,aAAa,OAAO,GAAG,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uBAAuB,0BAA0B;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uBAAuB,0BAA0B;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ;AACnB;AACA;AACA,aAAa,OAAO,GAAG,kDAAkD;AACzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uEAAuE;AACvE;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,uCAAuC;AAC1C;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mBAAmB,oBAAoB;AACvC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,eAAe,mBAAmB;AAClC;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA,eAAe,0BAA0B;AACzC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA,aAAa;;AAEb;;AAEA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,mBAAmB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAe,qBAAqB;AACpC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,2CAA2C,wBAAwB;AACnE;;AAEA;AACA,mBAAmB,2BAA2B;AAC9C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA,mBAAmB,wCAAwC;AAC3D;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,qBAAqB;AACxC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,mBAAmB,4BAA4B;AAC/C;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mBAAmB,qBAAqB;AACxC;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;AACA,kBAAkB;AAClB;AACA;AACA;AACA;;AAEA,mBAAmB,yBAAyB;AAC5C;AACA;AACA;;AAEA,mBAAmB,qBAAqB;AACxC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA,mBAAmB,mBAAmB;AACtC;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,mVAAmV;AACtV;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,2BAA2B;AACtC;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA,6BAA6B,qBAAqB,GAAG,yCAAyC;AAC9F;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,gBAAgB;AAChB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,4CAA4C;AAC5C;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,aAAa;AAC5C;AACA;AACA,qCAAqC,gBAAgB;AACrD,4DAA4D;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,mCAAmC;;AAEnC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,qDAAqD,uBAAuB;AAC5E,uBAAuB,mBAAmB;AAC1C;AACA;AACA;AACA;AACA;AACA,uBAAuB,yBAAyB;;AAEhD;AACA,uBAAuB,mBAAmB;AAC1C;AACA;;AAEA,eAAe,oBAAoB;AACnC;AACA;AACA;AACA;AACA,UAAU;;AAEV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,2BAA2B,kBAAkB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qCAAqC;AACrC;AACA;;AAEA;AACA;AACA,oCAAoC;AACpC;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,oBAAoB,wBAAwB,cAAc;AACrE;AACA,WAAW,kBAAkB,sCAAsC,aAAa;AAChF;AACA;AACA;AACA,aAAa,OAAO;AACpB,OAAO,QAAQ;AACf;AACA,OAAO,QAAQ;AACf;AACA;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,kBAAkB;AAC7C;AACA;AACA;AACA,2BAA2B,sBAAsB;AACjD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB,oCAAoC,+BAA+B;AACnE;AACA;AACA;AACA;;AAEA;AACA,wBAAwB,eAAe;AACvC,MAAM;AACN;AACA;AACA;;AAEA;AACA,wBAAwB,aAAa;AACrC,MAAM;AACN;AACA;AACA,uBAAuB,qBAAqB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,cAAc;AACd;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,8BAA8B,mCAAmC;;AAEjE;AACA;;AAEA;AACA,mBAAmB,gBAAgB;AACnC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,0HAA0H;AAC7H;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,4BAA4B;AACvC;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY;AACZ;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,kCAAkC;AAClC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,uCAAuC;AACvC;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA,uCAAuC;AACvC;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kCAAkC,+BAA+B;AACjE,mCAAmC,cAAc;AACjD,KAAK;AACL;;AAEA;;AAEA,CAAC,EAAE,uKAAuK;AAC1K;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB;AACA,YAAY,OAAO;AACnB,OAAO,QAAQ;AACf;AACA,OAAO,QAAQ;AACf;AACA,OAAO,QAAQ;AACf;AACA,OAAO,OAAO;AACd;AACA,OAAO,QAAQ;AACf;AACA;AACA,OAAO,QAAQ;AACf;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc,2BAA2B;;AAEzC;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA,qCAAqC;AACrC;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,mBAAmB,SAAS;AAC5B;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA,2BAA2B,yBAAyB;AACpD;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA,mBAAmB,iBAAiB;AACpC;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,+CAA+C;AAC/C;AACA;AACA,uCAAuC;;AAEvC;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,SAAS;AACpC;AACA;AACA;AACA;AACA;AACA,mCAAmC,2DAA2D;AAC9F;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA,cAAc;AACd,2BAA2B,SAAS;AACpC;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;;AAEA;AACA;AACA,uBAAuB,mBAAmB;AAC1C;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;;AAEA;AACA,uBAAuB,kBAAkB;AACzC;AACA;;AAEA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,oBAAoB;AACvC;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;;AAEV;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA,mBAAmB,iBAAiB;AACpC;;AAEA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,0EAA0E;AAC7E;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,aAAa;AACb;AACA,sBAAsB;AACtB;AACA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA,sBAAsB,QAAQ;AAC9B,uBAAuB,QAAQ;AAC/B,yBAAyB,QAAQ;AACjC,oBAAoB,QAAQ;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA,eAAe,mBAAmB;AAClC;;AAEA;AACA,0CAA0C;AAC1C;AACA,UAAU;AACV;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,eAAe,yBAAyB;AACxC;AACA;AACA,kCAAkC,iCAAiC;AACnE;AACA;;AAEA;AACA;AACA;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,6CAA6C;AAChD;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,0DAA0D;AAC7D;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mCAAmC;;AAEnC;AACA,2BAA2B;;AAE3B;AACA;AACA;AACA;AACA,gCAAgC;AAChC,MAAM;AACN;AACA;AACA;AACA,UAAU,aAAa;AACvB;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mBAAmB,SAAS;AAC5B;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU,OAAO;AACjB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,qEAAqE;AACxE;;;AAGA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,eAAe,qBAAqB;AACpC;AACA;AACA;AACA,eAAe,qBAAqB;AACpC;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,eAAe,qBAAqB;AACpC;AACA,mBAAmB,qBAAqB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA,+BAA+B;AAC/B,+BAA+B;AAC/B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA,MAAM;AACN;AACA;AACA,2BAA2B;AAC3B;AACA;AACA,2BAA2B;AAC3B;AACA,UAAU;AACV;AACA,2BAA2B;AAC3B;AACA;AACA,2BAA2B;AAC3B;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,uBAAuB,2BAA2B;AAClD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;;AAEA;AACA,mCAAmC,6BAA6B;AAChE;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,oBAAoB;AACvC;AACA,gDAAgD;AAChD;AACA,2BAA2B,yBAAyB;AACpD;AACA,8DAA8D,qBAAqB;AACnF;AACA,2BAA2B,yBAAyB;AACpD;AACA,8DAA8D,qBAAqB;AACnF;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,0BAA0B;AACrD;AACA,yEAAyE,qBAAqB;AAC9F;AACA,2BAA2B,0BAA0B;AACrD;AACA,yEAAyE,qBAAqB;AAC9F;AACA;AACA;AACA;;AAEA,YAAY;AACZ;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iEAAiE;AACjE;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ,WAAW;AACX,WAAW;AACX;AACA,aAAa;AACb,aAAa;AACb,mBAAmB;AACnB,YAAY,OAAO;AACnB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,iCAAiC;AACjC,UAAU;AACV;AACA,gCAAgC;AAChC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,uBAAuB,SAAS;AAChC;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,uBAAuB,SAAS;AAChC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,wBAAwB;;AAExB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,UAAU;AACzB,qBAAqB,WAAW;;AAEhC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ;AACnB,cAAc;AACd,gBAAgB;AAChB,WAAW,UAAU;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,iCAAiC;AACpD;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,+BAA+B;AAC/B,kCAAkC;;AAElC,CAAC,EAAE,0JAA0J;AAC7J;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,kBAAkB;AAClB,kBAAkB;AAClB,kBAAkB;AAClB,kBAAkB;;AAElB;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,oDAAoD,uBAAuB;;AAE3E;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B,yBAAyB;AACzB,yBAAyB;AACzB,gCAAgC,mBAAmB,OAAO;AAC1D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,uBAAuB,kBAAkB;AACzC;AACA;;AAEA,2BAA2B,oBAAoB;AAC/C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA,2BAA2B,wBAAwB;AACnD;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA,mBAAmB;;AAEnB;AACA;AACA,oCAAoC;;AAEpC;AACA;;AAEA,YAAY;AACZ;;AAEA,oBAAoB;AACpB,uBAAuB;;AAEvB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,mBAAmB;AACtC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,mBAAmB;AACtC;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,iBAAiB;AACpC;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,iCAAiC;AACjC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,mBAAmB,qBAAqB;AACxC;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,UAAU;AACV;AACA;AACA,cAAc;AACd;AACA;AACA,UAAU;AACV;AACA;AACA,cAAc;AACd;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,2BAA2B;AAC3B;AACA,2BAA2B,UAAU;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,+EAA+E;AAC/E;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;;AAEA;;AAEA;AACA;AACA;;AAEA,0BAA0B;AAC1B;AACA;AACA;;AAEA;AACA,qCAAqC,QAAQ;AAC7C;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mDAAmD;;AAEnD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,qBAAqB;AACpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;;AAEA,8BAA8B;AAC9B;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,iBAAiB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB;AACpB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,0DAA0D;AAC1D,cAAc;AACd,0DAA0D;AAC1D;;AAEA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,wBAAwB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,4BAA4B;AACvC,WAAW,kBAAkB;AAC7B;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA,0CAA0C,OAAO,yBAAyB;;AAE1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mBAAmB,qCAAqC;AACxD;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA,oDAAoD;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;;AAEN;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA,cAAc;AACd;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,OAAO;AAC1C,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA,iDAAiD;AACjD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,2BAA2B,+BAA+B;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,+BAA+B;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,qBAAqB;AACxC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,qBAAqB;AACrB,sBAAsB;AACtB;AACA;AACA;AACA;;AAEA,eAAe,mBAAmB;AAClC,uBAAuB,4BAA4B;AACnD,mBAAmB,mBAAmB;AACtC,uCAAuC,2BAA2B;AAClE,2BAA2B,2BAA2B;AACtD;AACA;;AAEA;AACA;AACA;AACA;AACA,sCAAsC,2BAA2B;;AAEjE;AACA;AACA,kCAAkC,sDAAsD;AACxF;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;;AAEA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,4BAA4B;AACvC,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,eAAe,iBAAiB;AAChC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,2BAA2B;AAC9C;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,wBAAwB;AAC/C;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA,8DAA8D;AAC9D;AACA;;AAEA,eAAe,yBAAyB;AACxC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA,mBAAmB,YAAY;;AAE/B;AACA,2BAA2B,wBAAwB;AACnD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;;AAET;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT,MAAM;AACN;AACA;AACA,SAAS;AACT;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oBAAoB;AACpB;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,8BAA8B;;AAE9B;AACA;;AAEA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,8BAA8B,2BAA2B;AACzD;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,sCAAsC,MAAM,MAAM;AAClD;AACA;;AAEA;AACA,mBAAmB,iBAAiB;AACpC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,iBAAiB;AACpC;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,sCAAsC,MAAM,MAAM;AAClD;AACA;;AAEA;AACA,mBAAmB,iBAAiB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,OAAO,QAAQ;AACf,OAAO,QAAQ;AACf,OAAO,QAAQ;AACf,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,qBAAqB;AAC7C;AACA;AACA;AACA;AACA,oCAAoC,YAAY;AAChD;AACA,+BAA+B;AAC/B;AACA,kBAAkB,yBAAyB;AAC3C;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,OAAO,QAAQ;AACf,OAAO,QAAQ;AACf,OAAO,IAAI;AACX,YAAY,IAAI;AAChB;AACA;AACA;AACA,sBAAsB,oDAAoD;AAC1E,sBAAsB;AACtB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,OAAO,QAAQ;AACf,OAAO,QAAQ;AACf,OAAO,QAAQ;AACf,WAAW,QAAQ;AACnB,WAAW,SAAS;AACpB,WAAW,mBAAmB;AAC9B,YAAY;AACZ;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,OAAO,QAAQ;AACf,OAAO,QAAQ;AACf,OAAO,QAAQ;AACf,OAAO,QAAQ;AACf,OAAO,QAAQ;AACf,OAAO,QAAQ;AACf,OAAO,SAAS;AAChB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,YAAY;AACZ,OAAO,IAAI;AACX,OAAO,IAAI;AACX,OAAO,IAAI;AACX,OAAO,IAAI;AACX,OAAO,QAAQ;AACf,OAAO,QAAQ;AACf;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,kBAAkB;AAClB;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;;AAEA,gCAAgC;AAChC,gCAAgC;AAChC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,gCAAgC;AAChC,gCAAgC;AAChC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,QAAQ;AACnB,OAAO,QAAQ;AACf,OAAO,QAAQ;AACf,OAAO,QAAQ;AACf,OAAO,QAAQ;AACf,WAAW,QAAQ;AACnB,MAAM,iBAAiB;AACvB,MAAM,cAAc;AACpB,MAAM,cAAc;AACpB,MAAM,IAAI;AACV,MAAM,SAAS;AACf;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;;AAEjC;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,QAAQ;AACnB,OAAO,QAAQ;AACf,OAAO,SAAS;AAChB,OAAO,QAAQ;AACf,OAAO,QAAQ;AACf,OAAO,SAAS;AAChB,OAAO,QAAQ;AACf,OAAO,QAAQ;AACf,WAAW,QAAQ;AACnB,MAAM,iBAAiB;AACvB,MAAM,cAAc;AACpB,MAAM,QAAQ;AACd;AACA,MAAM,cAAc;AACpB,MAAM,IAAI;AACV,MAAM,SAAS;AACf;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,uBAAuB,iBAAiB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,iCAAiC;;AAEjC;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,QAAQ;AACnB,OAAO,QAAQ;AACf,OAAO,SAAS;AAChB,OAAO,QAAQ;AACf,OAAO,QAAQ;AACf,OAAO,mBAAmB;AAC1B,WAAW,QAAQ;AACnB,MAAM,cAAc;AACpB,MAAM,QAAQ;AACd,MAAM,cAAc;AACpB,MAAM,IAAI;AACV,MAAM,SAAS;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA,uBAAuB,iBAAiB;;AAExC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;;AAET;AACA;AACA;AACA;AACA,iCAAiC;;AAEjC;AACA;;AAEA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,QAAQ;AACnB,OAAO,QAAQ;AACf,OAAO,SAAS;AAChB,OAAO,QAAQ;AACf,OAAO,mBAAmB;AAC1B,OAAO,QAAQ,YAAY;AAC3B,OAAO,QAAQ,YAAY;AAC3B,WAAW,QAAQ;AACnB,MAAM,iBAAiB;AACvB,MAAM,cAAc;AACpB,MAAM,mBAAmB;AACzB,MAAM,SAAS;AACf,MAAM,SAAS;AACf,MAAM,IAAI;AACV,MAAM,QAAQ;AACd,OAAO,IAAI;AACX,OAAO,IAAI;AACX,OAAO,IAAI;AACX,OAAO,IAAI;AACX;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,6CAA6C;;AAE7C;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,kBAAkB;AAClB;AACA;AACA;AACA,aAAa;;AAEb;;AAEA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB,8CAA8C;;AAE9C;AACA;AACA;AACA,cAAc;AACd;AACA,yCAAyC,sBAAsB;AAC/D;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;AACA,4DAA4D;AAC5D,kBAAkB;AAClB,2CAA2C;;AAE3C;AACA;AACA,sBAAsB;AACtB;AACA;;AAEA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA,cAAc;AACd,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,4DAA4D;AAC5D,8BAA8B;AAC9B,0DAA0D;AAC1D;AACA,yBAAyB;AACzB,qBAAqB;AACrB,iBAAiB;AACjB;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;;AAEb;AACA;AACA;;AAEA;;AAEA,2BAA2B,qBAAqB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,2BAA2B,yBAAyB;AACpD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,QAAQ;AACnB,OAAO,QAAQ;AACf,OAAO,QAAQ;AACf,OAAO,QAAQ;AACf,OAAO,QAAQ;AACf,WAAW,QAAQ;AACnB,MAAM,iBAAiB;AACvB,MAAM,cAAc;AACpB,MAAM,IAAI;AACV,MAAM,IAAI;AACV;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,QAAQ;AACnB,OAAO,QAAQ;AACf,OAAO,QAAQ;AACf;AACA,OAAO,QAAQ;AACf;AACA,OAAO,QAAQ;AACf,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,OAAO,QAAQ;AACf,OAAO,QAAQ;AACf,OAAO,QAAQ;AACf,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,QAAQ;AACnB,OAAO,QAAQ;AACf,OAAO,QAAQ;AACf,OAAO,QAAQ;AACf,OAAO,QAAQ;AACf,OAAO,QAAQ;AACf;AACA,OAAO,QAAQ;AACf,OAAO,QAAQ;AACf;AACA,OAAO,QAAQ;AACf,OAAO,SAAS;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,qBAAqB;AACrB;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,qCAAqC,2BAA2B;AAChE;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,8BAA8B;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,qBAAqB;AACxC;;AAEA;AACA;AACA;AACA,uCAAuC,eAAe;AACtD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,mBAAmB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,8BAA8B;AAC9B,oCAAoC;AACpC,uCAAuC;;AAEvC;AACA;AACA;;AAEA,mBAAmB,qBAAqB;AACxC;AACA;AACA;;AAEA;AACA;AACA;;AAEA,eAAe,mBAAmB;AAClC;AACA;AACA;AACA,iCAAiC;;AAEjC,mBAAmB,mBAAmB;AACtC;AACA;AACA;AACA;;AAEA;AACA,yBAAyB,iBAAiB;AAC1C;AACA;;AAEA;AACA;;AAEA;AACA,uBAAuB,oBAAoB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,mBAAmB,oBAAoB;AACvC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,eAAe,iBAAiB;AAChC,eAAe,iBAAiB;;AAEhC;;AAEA;AACA;AACA;AACA;;AAEA,eAAe,sBAAsB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,kCAAkC;AACrD;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA,mBAAmB,kCAAkC;AACrD;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,uCAAuC;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,sBAAsB;AACrC;AACA;AACA,eAAe,sBAAsB;AACrC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mDAAmD;AACnD;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,sZAAsZ;AACzZ;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,iDAAiD;AACjD;AACA,uBAAuB,cAAc;AACrC;AACA,+BAA+B,iBAAiB;AAChD;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,4DAA4D;AAC5D;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,SAAS;AAC5B;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,qEAAqE;AACxE;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA,yDAAyD;AACzD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA,UAAU;AACV,2BAA2B,qCAAqC;AAChE;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,+BAA+B,yBAAyB;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,OAAO;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,OAAO;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,OAAO;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,kDAAkD;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,yUAAyU;AAC5U;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAY,EAAE;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,2BAA2B;AAC9B;;AAEA;;AAEA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,eAAe,mBAAmB;AAClC;AACA;AACA;;AAEA;AACA;;AAEA,mBAAmB,uBAAuB;AAC1C;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uBAAuB,iBAAiB;AACxC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,uCAAuC;AAC1C;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,mBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,mBAAmB;AAClC;AACA,mBAAmB,iBAAiB;AACpC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,UAAU;AACrB,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA,eAAe,OAAO;AACtB,iBAAiB,QAAQ;AACzB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,KAAK;AAChB;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,KAAK;AAChB;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,KAAK;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,qEAAqE;AACxE;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,sBAAsB;AACzB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,eAAe,kBAAkB;AACjC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA,mBAAmB,mBAAmB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,6BAA6B;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,wBAAwB;AACvC;;AAEA;AACA,uBAAuB,uBAAuB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,iBAAiB;AAClE;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,kBAAkB;AACjC;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,yBAAyB;AAC5C;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,mBAAmB;AACtC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI,4BAA4B;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;;AAEA;AACA;AACA,eAAe,6BAA6B;AAC5C;AACA;AACA;AACA,uBAAuB,0BAA0B;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,0BAA0B;AAC7C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,mBAAmB,iBAAiB;AACpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,2BAA2B,UAAU;AACrC;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,6BAA6B;AAC5C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,oBAAoB;AACvC;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,mBAAmB,oBAAoB;AACvC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB;AAClB;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mCAAmC,qBAAqB;AACxD;AACA;AACA;AACA;AACA;;AAEA,mCAAmC,qBAAqB;AACxD;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,mBAAmB,wBAAwB;AAC3C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,6BAA6B;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,oLAAoL;AACvL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ,YAAY;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,YAAY;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,2BAA2B,qBAAqB;AAChD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,cAAc;;AAEd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,iCAAiC;AACjC;AACA;;AAEA;AACA;AACA;AACA;;AAEA,uBAAuB,kBAAkB;AACzC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB,kBAAkB;AACzC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,oBAAoB;AAC/C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,kBAAkB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,kBAAkB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,mBAAmB;AAChC;;AAEA;AACA,aAAa,mBAAmB;AAChC;;AAEA,uBAAuB,wBAAwB;AAC/C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,uBAAuB,mBAAmB;AAC1C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,wBAAwB;AAC3C;AACA;AACA,kCAAkC,gBAAgB;AAClD;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB,mBAAmB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,mBAAmB;AAC1C;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,uBAAuB,mBAAmB;AAC1C;;AAEA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,uBAAuB,qBAAqB;AAC5C;AACA;AACA;;AAEA;AACA;AACA;AACA,sCAAsC,4CAA4C;AAClF;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,uBAAuB,qBAAqB;AAC5C;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,qDAAqD,sBAAsB;AAC3E,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,qDAAqD,sBAAsB;AAC3E,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,oBAAoB,uCAAuC;AAC3D;AACA,KAAK;;AAEL;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,mBAAmB;AACtC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM,OAAO;AACb;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,mBAAmB;AACtC;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,mBAAmB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC,iCAAiC;;AAEjC,mBAAmB,mBAAmB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD,eAAe;AACvE;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA;;AAEA,2DAA2D,eAAe;AAC1E;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,ggBAAggB;AACngB;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,sDAAsD;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,0CAA0C;AAC1C;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,yIAAyI;AAC5I;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,yBAAyB;AACzB;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA,YAAY,SAAS;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB,kBAAkB;AACzC;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,sDAAsD;AACzD;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,kBAAkB;AACjC;AACA;AACA;AACA;;AAEA;AACA,eAAe,kBAAkB;AACjC;AACA;AACA,qDAAqD;AACrD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,kBAAkB;AACjC;AACA;AACA,qDAAqD;AACrD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,kBAAkB;AAC7B,WAAW,kBAAkB;AAC7B;AACA;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,UAAU;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mBAAmB,qBAAqB;AACxC;;AAEA,eAAe,qBAAqB;AACpC;AACA;;AAEA;AACA;AACA;;AAEA,uBAAuB,qBAAqB;AAC5C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,mBAAmB,oBAAoB;AACvC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;;AAEA;AACA;AACA;AACA;AACA;;AAEA,oCAAoC,mBAAmB;;AAEvD;AACA,uCAAuC,qBAAqB;;AAE5D;AACA,qCAAqC,qBAAqB;AAC1D;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,wCAAwC,2BAA2B;AACnE,mBAAmB,qBAAqB;AACxC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;;AAEA,mBAAmB,qCAAqC;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,qCAAqC,2BAA2B;;AAEhE;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,eAAe,SAAS;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,qBAAqB;AACpC;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,eAAe,SAAS;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,8BAA8B;AACjD;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,+BAA+B,cAAc;AAC7C;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;;AAEA,uBAAuB,qBAAqB;AAC5C;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,+CAA+C,8BAA8B;AAC7E;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;;AAEA,CAAC,EAAE,mTAAmT;AACtT;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,uBAAuB,6CAA6C;AACpE,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,aAAa,oDAAoD,oBAAoB,aAAa;AAClG,aAAa,oDAAoD,oBAAoB;AACrF;AACA;AACA,uBAAuB,mBAAmB;AAC1C;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA,iBAAiB,iCAAiC;AAClD,iBAAiB;AACjB;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,uBAAuB,mCAAmC;AAC1D,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,uBAAuB,mBAAmB;AAC1C,KAAK;AACL;AACA;AACA;AACA,uBAAuB,mBAAmB;AAC1C,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL,4BAA4B,SAAS,+BAA+B;AACpE;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,iBAAiB,kCAAkC;AACnD,iBAAiB;AACjB;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,aAAa,oDAAoD;AACjE,aAAa;AACb;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;;AAEA,CAAC,EAAE,0QAA0Q;AAC7Q;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,qBAAqB;AACpC;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV,uBAAuB,wBAAwB;AAC/C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV,uBAAuB,wBAAwB;AAC/C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,UAAU;AACV;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,6DAA6D,0BAA0B;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,uBAAuB,iBAAiB;AACxC;;AAEA,8DAA8D;AAC9D;AACA;AACA;;AAEA;AACA;;AAEA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,eAAe,oBAAoB;AACnC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,iBAAiB;AACrE;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,iBAAiB;AACrE;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,eAAe,mBAAmB;AAClC;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,eAAe,mBAAmB;AAClC;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE,sWAAsW;AACzW;;AAEA;AACA;AACA;;AAEA;AACA,WAAW,QAAQ;AACnB,kBAAkB,QAAQ;AAC1B,gBAAgB,QAAQ;AACxB,cAAc,kBAAkB;AAChC,iBAAiB,SAAS;AAC1B,iBAAiB,SAAS;AAC1B,mBAAmB,SAAS;AAC5B,mBAAmB,QAAQ;AAC3B;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,yEAAyE;AAC5E;;AAEA;;AAEA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,CAAC,EAAE,qCAAqC;AACxC;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,kBAAkB;AACrB;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gCAAgC;AACnC;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,+CAA+C;;AAE/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,qCAAqC,iFAAiF;AACtH;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,IAAI;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;;AAEA,+BAA+B;;AAE/B;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA,2BAA2B,oBAAoB;AAC/C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,OAAO;AACjB;AACA;;AAEA,2BAA2B,oBAAoB;AAC/C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,sBAAsB;AACtB;AACA,sBAAsB;AACtB;AACA;AACA,kBAAkB;AAClB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,sEAAsE;;AAEtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,sEAAsE;;AAEtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,+BAA+B,yBAAyB;AACxD;;AAEA;AACA;;AAEA;;AAEA;AACA,2CAA2C,0BAA0B;AACrE;AACA;AACA,0BAA0B;AAC1B;;AAEA,iCAAiC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,2BAA2B,yBAAyB;AACpD;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,yBAAyB;AAChD;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,uBAAuB,yBAAyB;AAChD;AACA;;AAEA;AACA,mCAAmC,gCAAgC;AACnE;AACA;AACA,kBAAkB;AAClB;;AAEA,yBAAyB;AACzB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,iBAAiB;AACpC;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,GAAG;AAClB,eAAe,QAAQ;AACvB,eAAe,QAAQ;AACvB;AACA,gBAAgB,SAAS;AACzB;AACA;AACA;AACA,uBAAuB,oBAAoB;AAC3C;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,4CAA4C,gBAAgB;AAC5D,4CAA4C,gBAAgB;AAC5D;;AAEA,eAAe,wBAAwB;AACvC;AACA;;AAEA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,eAAe,yBAAyB;AACxC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,eAAe,yBAAyB;AACxC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,2BAA2B,uCAAuC;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,eAAe,yBAAyB;AACxC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,eAAe,yBAAyB;AACxC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,mBAAmB,yBAAyB;AAC5C;AACA;AACA;AACA;;AAEA,mBAAmB,gBAAgB;AACnC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,mBAAmB,yBAAyB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,eAAe,yBAAyB;AACxC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;;AAEA,uBAAuB,sBAAsB;AAC7C;AACA;AACA;;AAEA;AACA;;AAEA,+CAA+C;AAC/C;AACA,mBAAmB,uBAAuB;AAC1C;AACA,uBAAuB,0BAA0B;AACjD;AACA;AACA,2BAA2B,6BAA6B;AACxD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,8jBAA8jB;AACjkB;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,uBAAuB,SAAS;AAChC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,6BAA6B;;AAE7B,8BAA8B;;AAE9B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,2BAA2B,SAAS;AACpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC;AACxC;AACA;;AAEA;AACA;AACA;;AAEA;AACA,2BAA2B,SAAS;AACpC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,uDAAuD,8BAA8B;AACrF,kDAAkD,2BAA2B;;AAE7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wCAAwC;AACxC;;AAEA;AACA,MAAM;AACN;AACA,8CAA8C;AAC9C,wCAAwC;;AAExC;AACA;;AAEA;AACA;;AAEA,qCAAqC;AACrC,gCAAgC;;AAEhC,+BAA+B;AAC/B;;AAEA;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,qDAAqD;AACrD,sDAAsD;;AAEtD,oCAAoC;AACpC,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,+BAA+B;AAC/B,gCAAgC;AAChC;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,+BAA+B;AAC/B,gCAAgC;AAChC;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wBAAwB,YAAY;AACpC,8BAA8B,SAAS;AACvC;AACA;;AAEA,uBAAuB,yBAAyB;AAChD;;AAEA;AACA;AACA;;AAEA;AACA,mCAAmC,SAAS;AAC5C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa;;AAEb,uBAAuB,iBAAiB;AACxC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,OAAO;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,0CAA0C,yBAAyB;AACnE;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,2BAA2B,4BAA4B;AACvD;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,2BAA2B,4BAA4B;AACvD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,2BAA2B,4BAA4B;AACvD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,aAAa;AACb;;;AAGA,uBAAuB,0BAA0B;AACjD;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,sCAAsC;AACtC;AACA;AACA;AACA;;AAEA;AACA,kBAAkB;AAClB;AACA,mCAAmC,iBAAiB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA;AACA,2BAA2B,2BAA2B;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,mBAAmB;AACxD;AACA;;AAEA,mBAAmB,0BAA0B;AAC7C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,oCAAoC,QAAQ;AAC5C;AACA;AACA,kBAAkB;AAClB;AACA,mCAAmC,iBAAiB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,6CAA6C,uBAAuB;;AAEpE;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,uBAAuB,SAAS;AAChC;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA,6BAA6B,eAAe;AAC5C;AACA;;AAEA,uBAAuB,SAAS;AAChC;AACA;AACA;;AAEA;AACA;AACA,uBAAuB,SAAS;AAChC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA,2BAA2B,kCAAkC;AAC7D;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,2BAA2B,kCAAkC;AAC7D;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,6IAA6I;AAChJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;;AAET;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,2HAA2H;AAC9H;;AAEA;;AAEA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,0CAA0C;AAC7C;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,6CAA6C;AAC7C;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,oCAAoC;AACvC;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,sBAAsB;AACjC,WAAW,OAAO;AAClB,eAAe,QAAQ;AACvB,UAAU,OAAO;AACjB,UAAU,OAAO;AACjB,UAAU,OAAO;AACjB,UAAU,OAAO;AACjB,WAAW,QAAQ;AACnB,WAAW,UAAU;AACrB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA,8BAA8B,gBAAgB;AAC9C,8BAA8B,gBAAgB;AAC9C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,2BAA2B,kBAAkB;AAC7C;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,2BAA2B,kBAAkB;AAC7C;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;;AAEA,uBAAuB,kBAAkB;AACzC;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,iGAAiG;AACpG;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAyD;;AAEzD;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,sBAAsB,eAAe;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAgB;;AAEhB;AACA;AACA,sBAAsB,eAAe;AACrC;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,iBAAiB;AACpC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,MAAM;AACN;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA,mBAAmB,iBAAiB;AACpC;;AAEA;AACA;AACA,qDAAqD;AACrD;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAY,eAAe;AAC3B;;AAEA;AACA;AACA;AACA,sDAAsD;;AAEtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,2CAA2C;AAC9C;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,iBAAiB;AAC5B;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA,WAAW,UAAU;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB,wBAAwB;AAC/C;AACA;;AAEA;AACA,2BAA2B,wBAAwB;AACnD;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,eAAe,OAAO;AACtB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,8BAA8B;AACjE;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,4DAA4D;AAC5D;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,iBAAiB;AACpC;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB,oEAAoE;AACrF,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;;AAEA;AACA,uBAAuB,wCAAwC;AAC/D,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,2BAA2B,WAAW;AACtC;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,+BAA+B,uBAAuB;AACtD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE,+BAA+B;AAClC;;AAEA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa;AACb;AACA,aAAa;AACb;AACA,aAAa;AACb;AACA,aAAa;AACb;AACA;AACA,WAAW,QAAQ;AACnB,aAAa;AACb;AACA;AACA;AACA;AACA,YAAY,QAAQ,8BAA8B,KAAK;AACvD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,2DAA2D;AACxE,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,wBAAwB;AACxB,SAAS;AACT,wBAAwB;AACxB,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,oBAAoB;AACvB;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa;AACb;AACA,aAAa,eAAe;AAC5B;AACA,aAAa,QAAQ;AACrB;AACA,aAAa,iBAAiB;AAC9B;AACA;AACA,YAAY,QAAQ,8BAA8B,qBAAqB;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,qBAAqB;;AAErB;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,wBAAwB;AAC3C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;;AAEA,mBAAmB,wBAAwB;AAC3C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,sBAAsB;AACtB,UAAU;AACV,sBAAsB;AACtB,wBAAwB;;AAExB;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV,sBAAsB;AACtB,wBAAwB;AACxB;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,qCAAqC,sBAAsB;AAC3D;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,cAAc;AACd;AACA;AACA,cAAc;AACd;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,SAAS;;AAET;;AAEA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,uCAAuC;AACvC,uCAAuC;;AAEvC;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,2BAA2B;AAC3B;;AAEA;AACA;AACA,2BAA2B;AAC3B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,kDAAkD,2BAA2B;AAC7E;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,gCAAgC;;AAEhC,mBAAmB,oBAAoB;AACvC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mCAAmC;AACnC,MAAM;AACN;AACA;AACA,mCAAmC;AACnC;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,mBAAmB,SAAS;AAC5B;AACA;AACA,+BAA+B,2BAA2B;AAC1D;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,waAAwa;AAC3a;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,mBAAmB;AACtC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,mBAAmB,uBAAuB;AAC1C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,yGAAyG;AAC5G;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B,aAAa;AACb;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,yBAAyB,YAAY;AACrC,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,iBAAiB,kBAAkB;AACnC,iBAAiB;AACjB;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,2IAA2I;AAC9I;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,qDAAqD,0BAA0B;;AAE/E;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,2CAA2C;;AAE3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,sBAAsB;AACzC;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,wGAAwG;AAC3G;;AAEA;AACA;AACA;;AAEA;AACA;AACA,sBAAsB;AACtB,oBAAoB;;AAEpB;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,2BAA2B;;AAE3B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,SAAS;;AAET;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA,iCAAiC,kBAAkB;AACnD;;AAEA;AACA,kBAAkB,aAAa;AAC/B;;AAEA;AACA,iCAAiC,gBAAgB;AACjD;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,iCAAiC,OAAO;AACxC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,8DAA8D;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,qDAAqD;AACxD;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,YAAY,OAAO;AACnB;AACA;AACA;AACA;;AAEA;AACA;;AAEA,mBAAmB,qBAAqB;AACxC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,kBAAkB;AAC7B;AACA;AACA,YAAY,cAAc;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,qBAAqB;AACxC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,YAAY,OAAO;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,iBAAiB;AACpC;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,8CAA8C;AACjD;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,wBAAwB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK,gBAAgB,gBAAgB;AACrC;AACA;AACA;AACA;;AAEA;AACA,KAAK,gBAAgB,gBAAgB;AACrC;AACA;;AAEA;AACA,KAAK,gBAAgB,gBAAgB;;AAErC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA,0CAA0C;AAC1C;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;;AAEA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA,kBAAkB;AAClB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;;AAEA,CAAC,EAAE,oHAAoH;AACvH;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,eAAe,OAAO;AACtB;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA,mBAAmB,QAAQ;AAC3B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mEAAmE;AACnE;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,wDAAwD;AACxD;AACA;AACA,wDAAwD;;AAExD;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;;AAGA;AACA;AACA;;AAEA;;AAEA,CAAC,EAAE,qDAAqD;AACxD;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;;AAEA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,mBAAmB,yBAAyB;AAC5C;AACA;;AAEA,oCAAoC;AACpC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,uBAAuB;AAC1C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;AACA;;AAEA,CAAC,EAAE,8PAA8P;AACjQ;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA,8BAA8B,OAAO;AACrC,uBAAuB,OAAO;AAC9B,2BAA2B,OAAO;AAClC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,OAAO;AAC1B,uBAAuB,yBAAyB;AAChD;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,mBAAmB,OAAO;AAC1B;AACA;;AAEA;;AAEA,uBAAuB,mBAAmB;AAC1C;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,wBAAwB;AAC3C;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,wBAAwB;AACxB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,eAAe,OAAO;AACtB;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,eAAe,qBAAqB;AACpC;AACA;;AAEA,mBAAmB,qBAAqB;AACxC;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,eAAe,qBAAqB;AACpC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,0BAA0B;AAC7C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,mCAAmC,oBAAoB;AACvD;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAM;AACN;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,qCAAqC,0BAA0B;;AAE/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,yUAAyU;AAC5U;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA,CAAC;;AAED;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,qBAAqB;AACxC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,mBAAmB,yBAAyB;AAC5C;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,qBAAqB;AACxC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;AACA;;AAEA,CAAC,EAAE,sPAAsP;AACzP;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,uBAAuB;AACvB;AACA,KAAK;AACL;AACA;AACA;AACA,wBAAwB;AACxB;AACA,aAAa,iDAAiD,qBAAqB;AACnF,aAAa,iDAAiD;AAC9D;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B;AAC5B,SAAS,2BAA2B;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED,CAAC,EAAE,qIAAqI;AACxI;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,sBAAsB;AACzC;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA,0CAA0C;;AAE1C;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,0KAA0K;AAC7K;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,mBAAmB,OAAO;AAC1B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,UAAU;;AAEV;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,CAAC,EAAE,mDAAmD;AACtD;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kEAAkE;;AAElE;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,6KAA6K;AAChL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,SAAS;AACT;AACA,KAAK;AACL,yBAAyB,gCAAgC;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL,mBAAmB;AACnB;AACA;AACA;AACA;AACA,2BAA2B;AAC3B,SAAS;AACT;AACA;AACA;AACA;AACA,2BAA2B;AAC3B,SAAS;AACT;AACA;AACA;AACA;AACA,2BAA2B;AAC3B,SAAS;AACT;AACA,uBAAuB,qBAAqB;AAC5C,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,wFAAwF;AAC3F;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,mBAAmB,OAAO;AAC1B;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,CAAC,EAAE,gCAAgC;AACnC;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA,mBAAmB,OAAO;AAC1B;AACA;AACA,uBAAuB,mBAAmB;AAC1C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA,mBAAmB,OAAO;AAC1B;;AAEA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAmD,aAAa;AAChE,2BAA2B,sBAAsB;AACjD;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;;AAEA;AACA,mBAAmB,OAAO;AAC1B;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,8CAA8C;AACjD;;AAEA;AACA;AACA;;AAEA,eAAe,OAAO;AACtB,mBAAmB,OAAO;AAC1B;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,4BAA4B,KAAK;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA,UAAU,OAAO;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;;AAEA;AACA;AACA,SAAS,sBAAsB,gBAAgB;;AAE/C;AACA;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,mBAAmB,iBAAiB;AACpC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,qFAAqF;AACrF;;AAEA,yBAAyB;;AAEzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD;AACtD;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;;AAEb;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA,mBAAmB,OAAO;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;;AAEA,2BAA2B,4BAA4B;AACvD;AACA,mCAAmC,sBAAsB;AACzD;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,OAAO;AAC1B;AACA;AACA;;AAEA,uBAAuB,wBAAwB;AAC/C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,eAAe,sBAAsB;AACrC;AACA;;AAEA;AACA;AACA;;AAEA;AACA,eAAe,OAAO;AACtB;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,eAAe,sBAAsB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,eAAe,qBAAqB;AACpC,mBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA,eAAe,OAAO;AACtB;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,uBAAuB,oBAAoB;AAC3C;AACA;AACA;;AAEA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;;AAEA,uBAAuB,wBAAwB;AAC/C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA,mBAAmB,OAAO;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU,OAAO;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,kDAAkD;AAC/D,iBAAiB,8DAA8D;AAC/E,cAAc,qDAAqD;AACnE,qBAAqB;AACrB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,+BAA+B;AAC/B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN,uBAAuB,OAAO;AAC9B,2BAA2B,OAAO;AAClC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,8BAA8B,OAAO;AACrC,uBAAuB,OAAO;AAC9B,2BAA2B,OAAO;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,OAAO;AAC1B,uBAAuB,OAAO;AAC9B;;AAEA,mCAAmC;AACnC;AACA;;AAEA,+BAA+B,OAAO,OAAO;AAC7C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,mBAAmB,OAAO;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,CAAC,EAAE,mUAAmU;AACtU;;AAEA;AACA;;AAEA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,kCAAkC,wBAAwB;AAC1D,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL,6BAA6B;AAC7B;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;;AAEA,CAAC,EAAE,yLAAyL;AAC5L;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD,EAAE,EAAE,EAAE,EAAE,EAAE;AACjE,uDAAuD,EAAE,EAAE,EAAE,EAAE,EAAE;AACjE;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA,oBAAoB,8BAA8B;AAClD;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qFAAqF,EAAE,EAAE,EAAE,EAAE,EAAE;AAC/F;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oFAAoF,EAAE,EAAE,EAAE,EAAE,EAAE;AAC9F;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wEAAwE,EAAE,EAAE,EAAE,EAAE,EAAE;AAClF;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sEAAsE,EAAE,EAAE,EAAE,EAAE,EAAE;AAChF;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2EAA2E,EAAE,EAAE,EAAE,EAAE,EAAE;AACrF;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,8CAA8C,wCAAwC,EAAE;AACxF;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,8BAA8B,kBAAkB;AAChD,qCAAqC;AACrC,2CAA2C;;AAE3C;AACA,iDAAiD,sBAAsB,YAAY,WAAW,QAAQ;AACtG,kDAAkD,sBAAsB,YAAY,UAAU,UAAU;AACxG,8BAA8B,sBAAsB,2BAA2B;;AAE/E;AACA,mFAAmF;AACnF,2FAA2F;AAC3F,0EAA0E,qBAAqB,gBAAgB;AAC/G,6DAA6D,iBAAiB,oBAAoB,2CAA2C,iQAAiQ,4CAA4C,aAAa,cAAc,wBAAwB,oBAAoB;AACjgB,2DAA2D,YAAY,cAAc,oBAAoB,wBAAwB,iCAAiC;AAClK,yFAAyF;AACzF,wFAAwF;;AAExF,mEAAmE,YAAY;AAC/E,oEAAoE,aAAa;;AAEjF,oDAAoD,uBAAuB;AAC3E,sDAAsD,uBAAuB;AAC7E,gDAAgD,2BAA2B;;AAE3E,+DAA+D,iBAAiB;AAChF,uCAAuC;;AAEvC;AACA,qCAAqC,aAAa,cAAc,2CAA2C,oPAAoP,qaAAqa,eAAe,2UAA2U,wSAAwS,uKAAuK,eAAe;;AAE5jD;AACA,sCAAsC,cAAc,uBAAuB,gBAAgB,8BAA8B,iBAAiB,2CAA2C,yPAAyP,yEAAyE,iBAAiB,uBAAuB,+gBAA+gB,iBAAiB,uBAAuB,wdAAwd,iBAAiB,uBAAuB,qUAAqU,sBAAsB,sTAAsT,sBAAsB,mRAAmR,iBAAiB,uBAAuB,2cAA2c,sBAAsB,oTAAoT,iBAAiB,uBAAuB,wbAAwb,sBAAsB,ySAAyS,iBAAiB,uBAAuB,6jBAA6jB,sBAAsB,m8HAAm8H,iBAAiB,uBAAuB,4VAA4V,sBAAsB,6QAA6Q,sBAAsB,+QAA+Q,iBAAiB,uBAAuB,8HAA8H;AAC5xT;AACA;;AAEA,CAAC,EAAE,iCAAiC;AACpC;;AAEA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,aAAa;AACb;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,mBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,yCAAyC;AACzC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,mBAAmB,0BAA0B;AAC7C;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;;AAEf;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;;AAEX;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;;AAEX;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,sBAAsB;AACzC;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;AACA;;AAEA,CAAC,EAAE,6RAA6R;AAChS;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA,uBAAuB,mBAAmB;AAC1C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,aAAa;AACb;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,sBAAsB;AACtB;;AAEA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA,CAAC,EAAE,2FAA2F;AAC9F;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,CAAC;AACD;;AAEA;AACA;;AAEA,yBAAyB,eAAe;;AAExC;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,2CAA2C,kBAAkB,gBAAgB;AAC7E;AACA,KAAK;AACL,CAAC;;AAED;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,iNAAiN;AACpN;;AAEA;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,sGAAsG;AACzG;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT,MAAM;AACN;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,KAAK;AACL;AACA;AACA,KAAK;;;AAGL;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,eAAe,qBAAqB;AACpC;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,eAAe,mBAAmB;AAClC;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,iBAAiB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,eAAe,2BAA2B;AAC1C;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,gBAAgB;AAC/B;;AAEA,mBAAmB,qBAAqB;AACxC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA,2BAA2B;AAC3B;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;;AAEA,wDAAwD;;AAExD,sCAAsC;AACtC,sCAAsC;;AAEtC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,0DAA0D;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mBAAmB,sBAAsB;AACzC;AACA;;AAEA;;AAEA,mBAAmB,mBAAmB;AACtC;AACA;AACA,MAAM;AACN,mBAAmB,mBAAmB;AACtC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mBAAmB;;AAEnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,iBAAiB;AACpC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA,2BAA2B;;AAE3B;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA,CAAC,EAAE,6SAA6S;AAChT;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;AACA;AACA,YAAY,QAAQ,8BAA8B,YAAY;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,2CAA2C,eAAe;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT,KAAK;;AAEL;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,+BAA+B,oBAAoB;AACnD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA,SAAS;AACT,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA,yCAAyC;AACzC;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,QAAQ;AACnB,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,gDAAgD,KAAK;AACrD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,wDAAwD;AACxD;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,oBAAoB;AACvC;AACA;AACA,mBAAmB,oBAAoB;AACvC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,mBAAmB,wBAAwB;AAC3C;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,qBAAqB;AACpC;AACA;AACA;AACA;AACA,eAAe,oCAAoC;AACnD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA,SAAS;AACT;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,wBAAwB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,wBAAwB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,2BAA2B,uBAAuB;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,wBAAwB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,SAAS;AACxB;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,+BAA+B,wBAAwB;AACvD;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,oCAAoC;AACnD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,uBAAuB,uBAAuB;AAC9C;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,OAAO;AAC1B;AACA,uBAAuB,OAAO;AAC9B,gDAAgD;AAChD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA;AACA,aAAa,SAAS,0BAA0B;AAChD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;;AAEA,mBAAmB,wBAAwB;AAC3C;;AAEA;AACA,oDAAoD;AACpD,UAAU;AACV,2BAA2B;AAC3B;AACA;AACA,kCAAkC;AAClC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,4BAA4B;AAC3C;AACA;;AAEA;AACA;AACA,eAAe,oBAAoB;AACnC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,eAAe,4BAA4B;AAC3C;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,eAAe,wBAAwB;AACvC;AACA;;AAEA,mBAAmB,wBAAwB;AAC3C;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA,eAAe,gBAAgB;AAC/B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,wBAAwB;AAC3C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,mBAAmB;AAClC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,mBAAmB;AAClC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,4BAA4B;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,kBAAkB;;AAElB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,uBAAuB,uBAAuB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,uBAAuB;AACtC;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,6CAA6C;AAC7C;;AAEA,eAAe,mBAAmB;AAClC;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA,2BAA2B,2BAA2B;AACtD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAe,6BAA6B;AAC5C;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,oCAAoC;AACpC;;AAEA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,uBAAuB;AAC1C,qFAAqF;AACrF;AACA,MAAM;AACN,2EAA2E;AAC3E;;AAEA;AACA;AACA,mBAAmB,4BAA4B;AAC/C,oGAAoG;AACpG;AACA,MAAM;AACN,0FAA0F;AAC1F;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,oCAAoC;AACpC;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,oCAAoC;AACpC;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,wBAAwB;AACvD;AACA;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,iFAAiF;AACjF;AACA,iBAAiB;AACjB;;AAEA;;AAEA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,uBAAuB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,mBAAmB,0BAA0B;AAC7C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,UAAU;AACV,4CAA4C;AAC5C;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,sBAAsB;AACzC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gCAAgC;AAChC;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,eAAe,4BAA4B;AAC3C;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,oBAAoB;AACnC;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,6BAA6B;AAC5C;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,yBAAyB;AACzB;AACA,wBAAwB;AACxB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,eAAe,qBAAqB;AACpC;AACA;AACA;AACA;AACA;;AAEA,eAAe,yBAAyB;AACxC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,oBAAoB,yBAAyB;AAC7C,oBAAoB,yBAAyB;AAC7C,oBAAoB,yBAAyB;AAC7C,oBAAoB;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,sCAAsC;;AAEtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAgB,iBAAiB;AACjC,gBAAgB,iBAAiB;AACjC,gBAAgB,iBAAiB;AACjC,gBAAgB;AAChB;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,uBAAuB,mBAAmB;AAC1C;AACA;AACA;AACA,KAAK;AACL;;AAEA;;AAEA;AACA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,gCAAgC;AAC3C;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,0CAA0C;;AAE1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA,sCAAsC,kCAAkC;AACxE;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,kBAAkB;AAC7B;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,uBAAuB;AACtC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA,sDAAsD;AACtD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,2BAA2B,0BAA0B;AACrD;AACA;AACA;;AAEA;AACA;AACA;;AAEA,uBAAuB,0BAA0B;AACjD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,mBAAmB;AACtC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,WAAW;AACnD;AACA;;AAEA;AACA;AACA;AACA;AACA,mBAAmB,2BAA2B;AAC9C;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;AAEA,4CAA4C;;AAE5C;AACA,mBAAmB,2BAA2B;AAC9C;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,uBAAuB,yBAAyB;AAChD;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,UAAU;AACrB;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,UAAU;AACrB;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA,gBAAgB;AAChB;AACA;;AAEA;AACA;AACA;;AAEA,uBAAuB,yBAAyB;AAChD;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,0EAA0E;;AAE1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB,gDAAgD;AAClE;AACA;AACA;AACA;AACA,kBAAkB,gDAAgD;AAClE;AACA;;AAEA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;;AAEA;AACA,iDAAiD,mBAAmB;AACpE;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,uBAAuB,4BAA4B;AACnD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mDAAmD;AACnD;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,QAAQ;AACnB,WAAW;AACX,WAAW,QAAQ;AACnB,WAAW;AACX,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,yBAAyB;AACzB;AACA;AACA,yBAAyB;AACzB;;AAEA;AACA,6CAA6C,mBAAmB;AAChE;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,uBAAuB,qBAAqB;AAC5C;AACA;;AAEA;AACA;AACA,2BAA2B,4BAA4B;AACvD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,2BAA2B,4BAA4B;AACvD;AACA;AACA;;AAEA;AACA;AACA,sDAAsD,mBAAmB,YAAY;AACrF;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,uDAAuD,mBAAmB,YAAY;AACtF;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa;AACb,gBAAgB,UAAU;AAC1B,YAAY,UAAU;AACtB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA,iBAAiB;AACjB;;AAEA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA,SAAS;AACT;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,gDAAgD,YAAY;AAC5D;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,qBAAqB;AACpC;AACA;AACA;AACA;AACA;;AAEA,eAAe,qBAAqB;AACpC;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,eAAe,qBAAqB;AACpC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB,6BAA6B;AACpD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,QAAQ;AACnD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,mBAAmB,qBAAqB;AACxC;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,eAAe,qBAAqB;AACpC,eAAe,qBAAqB;;AAEpC;AACA;;AAEA;AACA;AACA,eAAe,qBAAqB;AACpC,eAAe,qBAAqB;;AAEpC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,mBAAmB;AACtC,mBAAmB,mBAAmB;AACtC;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,kDAAkD;AAClD;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA,iCAAiC,4CAA4C;AAC7E,iCAAiC,4CAA4C;AAC7E,iCAAiC,oCAAoC,cAAc,iBAAiB;AACpG,mCAAmC,oCAAoC,cAAc,iBAAiB;AACtG,kCAAkC,yBAAyB;AAC3D,oCAAoC;AACpC;;AAEA,eAAe,mBAAmB;AAClC;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,uBAAuB,2BAA2B;AAClD;AACA;;AAEA;AACA,uBAAuB,6BAA6B;AACpD;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,2BAA2B,eAAe;AAC1C;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,mCAAmC,uBAAuB;AAC1D;;AAEA;AACA,uCAAuC,iCAAiC;AACxE;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA,mCAAmC,oBAAoB;AACvD;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;;AAEA,mCAAmC,kBAAkB;AACrD,uCAAuC,qBAAqB;AAC5D;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mCAAmC,kBAAkB;AACrD;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,uBAAuB,4BAA4B;AACnD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;;AAEb;;AAEA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,mBAAmB,wBAAwB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,eAAe,oBAAoB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,uBAAuB,qBAAqB;AAC5C;AACA;AACA;AACA;;AAEA,2BAA2B,oBAAoB;AAC/C;AACA;AACA;AACA,UAAU;AACV,uBAAuB,oBAAoB;AAC3C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,eAAe,4BAA4B;AAC3C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,6bAA6b;AAChc;;AAEA;AACA;AACA;;AAEA;AACA,yBAAyB,sCAAsC;;AAE/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,cAAc;AACzB,WAAW,cAAc;AACzB,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,SAAS;AACxB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,uBAAuB,SAAS;AAChC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,qBAAqB;AACxC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,OAAO;AAClB,WAAW,mBAAmB;AAC9B,WAAW,mBAAmB;AAC9B,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,OAAO;AAClB,WAAW,mBAAmB;AAC9B,WAAW,mBAAmB;AAC9B,YAAY,QAAQ;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,wCAAwC;AAC3C;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,mBAAmB;AACtC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,uIAAuI;AAC1I;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,2BAA2B,uBAAuB,WAAW;AAC7D;AACA;AACA,2BAA2B,uBAAuB,WAAW;AAC7D;AACA;;AAEA;;AAEA;;AAEA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA,0BAA0B,sBAAsB,WAAW;AAC3D,uBAAuB;AACvB;AACA,KAAK;AACL;;AAEA,4BAA4B,wBAAwB,iBAAiB;AACrE;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,wBAAwB;AACxB;AACA,aAAa,iDAAiD,qBAAqB;AACnF,aAAa,iDAAiD;AAC9D;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;;AAGL;AACA;AACA;AACA,2BAA2B,yBAAyB,2BAA2B;AAC/E,2BAA2B,yBAAyB,iBAAiB;;AAErE;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,0BAA0B,sBAAsB,WAAW;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,YAAY;AACZ,YAAY;AACZ,eAAe;;AAEf,yBAAyB,gCAAgC;;AAEzD;AACA;AACA;AACA,aAAa,oCAAoC;AACjD,aAAa;AACb;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA,CAAC,EAAE,6IAA6I;AAChJ;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,sBAAsB;AACzC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,4DAA4D,0BAA0B;;AAEtF;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,2CAA2C,kBAAkB;AAC7D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mCAAmC,wBAAwB;AAC3D;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB;AAClB;AACA;;AAEA;AACA,wCAAwC,mCAAmC;AAC3E;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb,6DAA6D,iBAAiB;;AAE9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,uBAAuB,wBAAwB;AAC/C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE,4cAA4c;AAC/c;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mBAAmB,0BAA0B;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA,qCAAqC,2BAA2B;AAChE;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,8BAA8B;AAC9B;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,6BAA6B,eAAe;AAC5C;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,sBAAsB,8BAA8B;AACpD,qBAAqB;;AAErB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,oBAAoB;AACpB,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,sBAAsB;;AAEtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oBAAoB;;AAEpB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oBAAoB;;AAEpB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;AACA,2BAA2B;AAC3B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA,CAAC,EAAE,wkBAAwkB;AAC3kB;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,0BAA0B,iBAAiB;AAC3C,0BAA0B;;AAE1B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,+BAA+B;AAC/B,+BAA+B;AAC/B;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,qCAAqC;AACrC,qCAAqC;AACrC;;AAEA;AACA;AACA;AACA;AACA;;AAEA,iCAAiC;;AAEjC;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA,uBAAuB,SAAS;AAChC;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA,uBAAuB,SAAS;AAChC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,mBAAmB,mCAAmC;AACtD;;AAEA,kCAAkC;AAClC,kCAAkC;;AAElC;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,8CAA8C;AAC9C,8CAA8C;;AAE9C;AACA;AACA;;AAEA,+BAA+B;AAC/B,+BAA+B;;AAE/B,+BAA+B;AAC/B,+BAA+B;AAC/B;AACA;;AAEA,CAAC,EAAE,+CAA+C;AAClD;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,yBAAyB,wCAAwC;AACjE;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,mBAAmB;AACtC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,8IAA8I;AACjJ;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,2BAA2B,uBAAuB,WAAW;AAC7D;AACA;AACA,2BAA2B,uBAAuB,WAAW;AAC7D;AACA;AACA,CAAC;;AAED;AACA;AACA,4BAA4B,wBAAwB,QAAQ;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA,0BAA0B,sBAAsB,WAAW;;AAE3D;AACA;AACA;AACA;AACA,KAAK;;AAEL,4BAA4B,wBAAwB,SAAS;;AAE7D;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,CAAC;;AAED;AACA,0BAA0B,sBAAsB,WAAW;;AAE3D;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA,CAAC;;AAED;AACA,yBAAyB,gCAAgC;;AAEzD;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,6IAA6I;AAChJ;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,4DAA4D,YAAY;AACxE;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,sBAAsB;AACzC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,4DAA4D,0BAA0B;;AAEtF;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,8BAA8B;;AAE9B;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,8TAA8T;AACjU;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA,mBAAmB,eAAe;AAClC;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,4DAA4D;AAC/D;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,wCAAwC,SAAS;AACjD,2BAA2B,EAAE;AAC7B;AACA,+BAA+B,OAAO,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS;AAC3E;AACA;AACA,2DAA2D,mBAAmB,wBAAwB,OAAO;AAC7G;AACA;AACA,8DAA8D,wBAAwB,sBAAsB,cAAc;AAC1H;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,uBAAuB,iBAAiB;AACxC;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,wBAAwB;AAC3B;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,mBAAmB,2BAA2B;AAC9C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,6GAA6G;AAChH;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,yBAAyB,qBAAqB,gBAAgB;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,uBAAuB,WAAW;AAC7D;AACA;AACA,2BAA2B,uBAAuB,WAAW;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA,yBAAyB,gBAAgB;;AAEzC;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,oJAAoJ;AACvJ;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,mBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA,kCAAkC;;AAElC;AACA,yDAAyD;AACzD;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU,kBAAkB;;AAE5B;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA,CAAC,EAAE,wUAAwU;AAC3U;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,4BAA4B;AAC/C;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA,qCAAqC,yBAAyB;AAC9D;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA,cAAc;AACd;AACA,cAAc;AACd;AACA,cAAc;AACd;AACA;AACA,iBAAiB;AACjB;AACA,SAAS;;AAET;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C;;AAE/C;AACA;;AAEA;AACA;AACA;AACA,2CAA2C;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA,2CAA2C;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA,2CAA2C;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,0DAA0D,iBAAiB;AAC3E;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;;AAEA,8BAA8B;AAC9B,8BAA8B;AAC9B,8BAA8B;;AAE9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,4ZAA4Z;AAC/Z;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,kCAAkC;AAC7C;AACA;AACA;AACA,YAAY,QAAQ;AACpB,kBAAkB,OAAO;AACzB;AACA,YAAY,QAAQ;AACpB;AACA;AACA,YAAY,QAAQ;AACpB;AACA;AACA;AACA,kBAAkB,QAAQ;AAC1B;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA,YAAY,QAAQ;AACpB,iBAAiB,UAAU;AAC3B,qBAAqB,UAAU;AAC/B,kBAAkB,QAAQ;AAC1B,sBAAsB,UAAU;AAChC;AACA;AACA,YAAY,QAAQ;AACpB;AACA;AACA;AACA,YAAY,QAAQ;AACpB,UAAU,UAAU;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;;AAEA,mBAAmB,qBAAqB;AACxC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,gBAAgB;AAC3B;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,gBAAgB;AAC3B;AACA,WAAW,QAAQ;AACnB;AACA,YAAY;AACZ;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ;AACnB;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ;AACnB;AACA,YAAY;AACZ;AACA;AACA;AACA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ;AACnB;AACA,YAAY;AACZ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,UAAU;AACrB,YAAY,KAAK;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mBAAmB,yBAAyB;AAC5C;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC;AAClC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,2BAA2B,6BAA6B;AACxD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,qLAAqL;AACxL;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,SAAS;AACjC;AACA,yBAAyB,+BAA+B;AACxD;AACA;AACA;;AAEA;AACA;AACA,wBAAwB,SAAS;AACjC;AACA;AACA;AACA;AACA,yBAAyB,+BAA+B;AACxD;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,iBAAiB;AACpC;AACA,4CAA4C;AAC5C;AACA;;AAEA;AACA,mBAAmB,oBAAoB;AACvC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,gCAAgC;AACnD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,wBAAwB,SAAS;AACjC;AACA;AACA;AACA;AACA;AACA,mBAAmB,qBAAqB;AACxC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,+BAA+B;AAClC;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,4BAA4B;AACvC;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT,KAAK;AACL;;AAEA;;AAEA,CAAC,EAAE,0EAA0E;AAC7E;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,oDAAoD;AACpD;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;;;AAGA;;AAEA,CAAC,EAAE,6BAA6B;AAChC;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uCAAuC,qBAAqB,eAAe;AAC3E,MAAM;AACN,uCAAuC,wBAAwB,eAAe;AAC9E,MAAM;AACN;AACA,0CAA0C,wBAAwB;AAClE;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA;;AAEA,6CAA6C;;AAE7C,qFAAqF,gBAAgB;;AAErG,CAAC,EAAE,kBAAkB;AACrB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,CAAC,EAAE,kGAAkG;AACrG;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA,CAAC,EAAE,yCAAyC;AAC5C;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;;AAEA,+BAA+B,cAAc;AAC7C;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA,SAAS;AACT;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;;AAGT;AACA;;AAEA;;AAEA,CAAC,EAAE,4GAA4G;AAC/G;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,2DAA2D,gBAAgB;AAC3E,mCAAmC,GAAG;AACtC,sBAAsB,KAAK,aAAa,KAAK;AAC7C,sBAAsB,KAAK,aAAa;AACxC,6DAA6D;AAC7D,yCAAyC;AACzC,KAAK;AACL;AACA;AACA;;AAEA;AACA,gCAAgC,UAAU,eAAe,WAAW;AACpE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,4BAA4B;AAC3C;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,mBAAmB,sBAAsB;AACzC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,iEAAiE;AACjE;AACA;;AAEA;AACA,eAAe,4CAA4C;AAC3D;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,2BAA2B,gCAAgC;AAC3D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,uHAAuH;AAC1H;;AAEA;;AAEA;AACA;AACA,mBAAmB,eAAe;;AAElC;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;;AAEA,mCAAmC;AACnC,oCAAoC,SAAS;;AAE7C;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,qCAAqC,iBAAiB;AACtD;AACA,KAAK;AACL;AACA,wCAAwC;AACxC;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL,2BAA2B;AAC3B,KAAK;;AAEL,iCAAiC;AACjC,KAAK;;AAEL,kCAAkC;AAClC,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,6BAA6B;AAC7B,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,uRAAuR;AAC1R;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mBAAmB,eAAe;AAClC,kBAAkB;;AAElB;AACA,uCAAuC;AACvC;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,sNAAsN;AACzN;;AAEA;AACA;AACA;AACA;AACA;AACA,qBAAqB,MAAM,SAAS,MAAM;AAC1C;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,+BAA+B,eAAe;AAC9C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,uBAAuB,uBAAuB;AAC9C;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,uBAAuB,uBAAuB;AAC9C;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,eAAe,uBAAuB;AACtC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,yBAAyB,eAAe;AACxC;;AAEA;AACA,uBAAuB,sCAAsC;AAC7D;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA,kBAAkB,eAAe;AACjC;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,uBAAuB,eAAe;AACtC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,uBAAuB;AAC1C;;AAEA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;;AAEA;AACA,mBAAmB,uBAAuB;AAC1C;;AAEA,uBAAuB,sBAAsB;AAC7C;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,mBAAmB,uBAAuB;AAC1C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,mBAAmB,aAAa;AAChC;AACA;;AAEA;AACA,6EAA6E;;AAE7E;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,eAAe,uBAAuB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,uBAAuB,uBAAuB;AAC9C;AACA;AACA;AACA;;AAEA;AACA;AACA,uCAAuC,sBAAsB;AAC7D;AACA;;AAEA;AACA,UAAU;AACV;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,uBAAuB,wBAAwB;AAC/C;AACA;;AAEA;AACA;AACA,wCAAwC,sBAAsB;AAC9D;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,2BAA2B,sBAAsB;AACjD;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB,sBAAsB;AAC7C;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,kEAAkE,cAAc;AAChF;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;AACA;;AAEA,uBAAuB,sBAAsB;AAC7C;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,uBAAuB;AACtC;AACA;;AAEA;AACA,uBAAuB,sBAAsB;AAC7C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,uBAAuB;AACtC;AACA;;AAEA;;AAEA;;AAEA,mBAAmB,sBAAsB;AACzC;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;;AAEA,mBAAmB,uBAAuB;AAC1C;;AAEA,uBAAuB,sBAAsB;AAC7C;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,mBAAmB,uBAAuB;AAC1C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb,2BAA2B,sBAAsB;AACjD;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B;AAC5B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;AACA;AACA;;AAEA,uBAAuB,sBAAsB;AAC7C;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,eAAe,uBAAuB;AACtC;AACA,mBAAmB,eAAe;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,qCAAqC;AACrC;AACA;AACA;AACA;AACA;;AAEA,eAAe,uBAAuB;AACtC;AACA;;AAEA;AACA;;AAEA,mBAAmB,eAAe;AAClC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,oLAAoL;AACvL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA,+CAA+C;;AAE/C;AACA;AACA,gFAAgF,UAAU;AAC1F,gFAAgF,wBAAwB;;AAExG;AACA;;AAEA;AACA;AACA;AACA,4BAA4B,eAAe;AAC3C;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,uBAAuB,qBAAqB;AAC5C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,qDAAqD;AACrD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,0DAA0D;AAC1D;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,kNAAkN;AACrN;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,sDAAsD;AACzD;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,iCAAiC;AACjC,iCAAiC;;AAEjC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA,uBAAuB;AACvB;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,6KAA6K;AAChL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,+RAA+R;AAClS;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA,mBAAmB,qBAAqB;AACxC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,qCAAqC,uBAAuB;AAC5D;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,gGAAgG;AACnG;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,6BAA6B;AACjE,0CAA0C,6BAA6B;AACvE,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C;AAC7C;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qGAAqG;AACrG;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,mCAAmC;;AAEnC;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gUAAgU;AACnU;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,eAAe;AAClC;AACA;AACA,MAAM;AACN,mBAAmB,eAAe;AAClC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA,WAAW,QAAQ;AACnB,cAAc,SAAS;AACvB;AACA;AACA,cAAc,SAAS;AACvB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,mBAAmB,mBAAmB;AACtC;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,kCAAkC;AAClC;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gDAAgD;AACnD;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,qCAAqC,4BAA4B;;AAEjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,yKAAyK;AAC5K;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gDAAgD;AAChD;AACA;;AAEA;;AAEA;AACA;AACA,gDAAgD;AAChD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,kIAAkI;AACrI;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gCAAgC;AACnC;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAQ;;AAER,uBAAuB;AACvB,KAAK;AACL,yBAAyB;AACzB,KAAK;AACL,wBAAwB;AACxB,KAAK;;AAEL,uBAAuB;AACvB,KAAK;AACL,4BAA4B;AAC5B,KAAK;;AAEL,uBAAuB;AACvB,mBAAmB;AACnB,yBAAyB;AACzB,0BAA0B;AAC1B,wBAAwB;AACxB,gCAAgC,wBAAwB,YAAY;;AAEpE;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,sHAAsH;AACzH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,SAAS;AAC5B,iBAAiB;AACjB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,qBAAqB;AACxC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,6BAA6B,2BAA2B,SAAS;AACjE;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,oNAAoN;AACvN;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,CAAC,EAAE,+FAA+F;AAClG;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,gCAAgC,QAAQ,uBAAuB;AAC/D;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,0HAA0H;AAC7H;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,mQAAmQ;AACtQ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,4CAA4C;AAC5C;;AAEA,mBAAmB,qBAAqB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,0CAA0C;AAC7C;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,oHAAoH;AACvH;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,6BAA6B;AAC7B,aAAa,iCAAiC;AAC9C,8BAA8B;AAC9B,aAAa,2CAA2C;AACxD,2BAA2B;AAC3B,aAAa,iCAAiC;AAC9C,4BAA4B;AAC5B,aAAa,kCAAkC;AAC/C;AACA,gCAAgC;AAChC,iBAAiB;AACjB;AACA,gCAAgC;AAChC,iBAAiB;AACjB;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,SAAS;AACT;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;;AAEL,uBAAuB;AACvB,KAAK;AACL,4BAA4B;AAC5B,KAAK;AACL;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,4MAA4M;AAC/M;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAiB,YAAY;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,uBAAuB;;AAEvB;AACA;AACA,gCAAgC;AAChC;AACA;;AAEA,mBAAmB,mBAAmB;AACtC;AACA;;AAEA;AACA;AACA;AACA,yCAAyC;AACzC;;AAEA;AACA;AACA;;AAEA;AACA;AACA,2BAA2B,2BAA2B;AACtD;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA,kBAAkB;AAClB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa;AACb;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,mBAAmB;AACtC;AACA;;AAEA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mBAAmB,UAAU;AAC7B;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,aAAa;AACb;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN,iBAAiB,IAAI,aAAa;AAClC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,SAAS;;AAE5B;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,SAAS;AAC5B;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uBAAuB,eAAe;AACtC;AACA;;AAEA,2BAA2B,gBAAgB;AAC3C;AACA;;AAEA;AACA;AACA;AACA;;AAEA,2BAA2B;;AAE3B,yBAAyB;;AAEzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,+IAA+I;AAClJ;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,yBAAyB;AAC5C;AACA;AACA;;AAEA;AACA;AACA,uBAAuB,qBAAqB;AAC5C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,eAAe,oBAAoB;AACnC;AACA,mBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,eAAe,oBAAoB;AACnC;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA;AACA;AACA,qFAAqF;AACrF;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA,mBAAmB,sBAAsB;AACzC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,0BAA0B;AAClD,uBAAuB,0BAA0B;AACjD,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,yFAAyF;AAC5F;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA,8CAA8C;AAC9C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA,qDAAqD,cAAc;AACnE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB;AAClB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,cAAc;AACzC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB,+BAA+B,cAAc;AAC7C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,qBAAqB;AACxC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,sLAAsL;AACzL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,kCAAkC;;AAElC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,uBAAuB;AACvB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,gCAAgC;;AAEhC;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,6CAA6C;AAC7C;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,kBAAkB;AACrC;;AAEA;AACA;;AAEA;AACA;AACA;AACA,0CAA0C;;AAE1C;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,eAAe;AAClC;;AAEA,uBAAuB,2BAA2B;AAClD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,mCAAmC;AACnC;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,wGAAwG;AAC3G;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,mOAAmO;AACtO;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,qBAAqB;AACxC;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,+DAA+D;AAClE;;AAEA;;AAEA;AACA;;AAEA;AACA,qBAAqB;AACrB,yBAAyB;;AAEzB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA,uCAAuC,2BAA2B;AAClE,+BAA+B,aAAa;AAC5C,gCAAgC,2BAA2B;AAC3D,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,gBAAgB;AAC/C;AACA;AACA,kBAAkB;AAClB,+BAA+B,gBAAgB;AAC/C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,uBAAuB,gBAAgB;AACvC;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,SAAS;;AAET;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,qDAAqD;;AAErD;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,+DAA+D;AAClE;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,eAAe;AAClC,uBAAuB,8BAA8B;AACrD;AACA;AACA;AACA;AACA,MAAM;AACN,mBAAmB,eAAe;AAClC,uBAAuB,8BAA8B;AACrD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,qCAAqC,4BAA4B;;AAEjE;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,oDAAoD;AACpD;AACA;AACA;AACA,aAAa;AACb,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,4EAA4E;AAC/E;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gCAAgC,wBAAwB,uBAAuB;AAC/E;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,4BAA4B;AAC5B,SAAS;AACT;AACA,KAAK;;AAEL;;AAEA;;AAEA;AACA;;AAEA,+BAA+B,2BAA2B,SAAS;;AAEnE;AACA;;AAEA,CAAC,EAAE,oHAAoH;AACvH;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA,MAAM;AACN,iBAAiB,IAAI,aAAa;AAClC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,6GAA6G;AAChH;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,6DAA6D,QAAQ;AACrE;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,6HAA6H;AAChI;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,qPAAqP;AACxP;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,+BAA+B;AAC/B;AACA,KAAK;AACL;;AAEA,CAAC,EAAE,yDAAyD;AAC5D;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,OAAO;AAC1B;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;AACA;AACA;;AAEA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA,CAAC,EAAE,kGAAkG;AACrG;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,oBAAoB,wBAAwB;AAC5C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,aAAa,iCAAiC;AAC9C,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA,CAAC,EAAE,2MAA2M;AAC9M;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,yDAAyD;AACzD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE,8WAA8W;AACjX;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,6DAA6D,aAAa;AAC1E,6DAA6D,aAAa;;AAE1E;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,kRAAkR;AACrR;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,+BAA+B,WAAW;AAC1C;AACA;AACA;AACA,mBAAmB,gCAAgC;;AAEnD;AACA,+BAA+B,WAAW;AAC1C;AACA;AACA;AACA,mBAAmB,gCAAgC;;AAEnD;AACA,kCAAkC,QAAQ;AAC1C;AACA;AACA;AACA,mBAAmB,gCAAgC;;AAEnD;AACA,kCAAkC,QAAQ;AAC1C;AACA;AACA;AACA,mBAAmB,gCAAgC;;AAEnD;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,uBAAuB,QAAQ;AAC/B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,uBAAuB,QAAQ;AAC/B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAuB,SAAS;AAChC;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAuB,SAAS;AAChC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,+BAA+B,cAAc;;AAE7C;AACA;AACA;AACA;;AAEA;AACA;AACA,oBAAoB,QAAQ;AAC5B;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA,oBAAoB,QAAQ;AAC5B;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,uBAAuB,yBAAyB;AAChD;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,cAAc;;AAE7C;AACA;AACA;AACA;;AAEA,oBAAoB,SAAS;AAC7B;;AAEA;AACA;AACA;AACA,aAAa;AACb;;AAEA,wBAAwB,YAAY;AACpC;;AAEA,uBAAuB,yBAAyB;AAChD;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA,CAAC,EAAE,wDAAwD;AAC3D;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,eAAe,sBAAsB;AACrC;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;;AAEA,CAAC,EAAE,wDAAwD;AAC3D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,QAAQ;AACvB;AACA;AACA,mBAAmB,QAAQ;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,mBAAmB,QAAQ;AAC3B;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAmD;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,gBAAgB,UAAU;AAC1B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,QAAQ;AAC/B;AACA;AACA;AACA;;AAEA;AACA,2BAA2B,QAAQ;AACnC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,QAAQ;AACnC;AACA,+BAA+B,YAAY;AAC3C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,UAAU;AAC9B,wBAAwB,cAAc;AACtC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,UAAU;AAC9B;AACA,wBAAwB,cAAc;AACtC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,oCAAoC;AACvC;;AAEA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB,mBAAmB;AAC1C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,mBAAmB;AAC1C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,mBAAmB;AAC1C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,mBAAmB;AAC1C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB,mBAAmB;AAC1C;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,mBAAmB;AAC1C;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,mBAAmB;AAC1C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,mBAAmB;AAC1C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB,mBAAmB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,mBAAmB;AAC1C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,mBAAmB;AAC1C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,mBAAmB;AAC1C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,mHAAmH;AACtH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,0FAA0F;AAC7F;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,OAAO;AAC1B;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,eAAe;AAC9B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA,eAAe,iBAAiB;AAChC;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,eAAe,qBAAqB;AACpC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA,gCAAgC;AAChC;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA,CAAC,EAAE,wLAAwL;AAC3L;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,oLAAoL;AACvL;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,mBAAmB,QAAQ;AAC3B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,OAAO;AAC1B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,MAAM;;AAEN;;AAEA;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;;AAEN;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL,0BAA0B;AAC1B,KAAK;AACL;;AAEA,uBAAuB;AACvB,KAAK;AACL,4BAA4B;AAC5B,KAAK;AACL;AACA;AACA,gCAAgC,oCAAoC,kBAAkB;AACtF,gCAAgC,oCAAoC,QAAQ;AAC5E;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;;AAEL,4BAA4B;AAC5B;AACA;AACA,KAAK;AACL;AACA,6BAA6B,yBAAyB,YAAY;AAClE,CAAC;;AAED;AACA;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE,8MAA8M;AACjN;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,mCAAmC;AACnC,MAAM;AACN;AACA;;AAEA,mBAAmB,SAAS;AAC5B;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA,CAAC,EAAE,gKAAgK;AACnK;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,2DAA2D,yBAAyB;;AAEpF;AACA;;AAEA,CAAC,EAAE,8EAA8E;AACjF;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,eAAe,eAAe;AAC9B;AACA;;AAEA;AACA,uBAAuB,yBAAyB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,oEAAoE;AACvE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,4KAA4K;AAC/K;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,gBAAgB;AAChB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,sJAAsJ;AACzJ;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,mBAAmB,eAAe;AAClC;AACA;AACA,MAAM;AACN,mBAAmB,eAAe;AAClC;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,8GAA8G;AACjH;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL,+BAA+B;AAC/B,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA,gCAAgC,sCAAsC,iBAAiB;AACvF,gCAAgC,sCAAsC,iBAAiB;AACvF;AACA,SAAS;AACT;AACA,8BAA8B,mCAAmC,iBAAiB;AAClF;AACA,KAAK;;AAEL;AACA;AACA,kCAAkC,4CAA4C,iBAAiB;AAC/F;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA,kCAAkC,8CAA8C,iBAAiB;AACjG;AACA,SAAS;AACT;AACA,KAAK;;AAEL;AACA,wCAAwC,GAAG,qBAAqB;AAChE,6BAA6B,yBAAyB,YAAY;AAClE,CAAC;;AAED;AACA;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE,sKAAsK;AACzK;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,iBAAiB,mBAAmB;AACpC;AACA;;AAEA;AACA,iBAAiB,mBAAmB;AACpC;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,oCAAoC;AACpC;;AAEA;AACA;AACA,oCAAoC;AACpC;;AAEA,mBAAmB,sBAAsB;AACzC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,SAAS,kCAAkC;AAC3C;;AAEA;AACA,uBAAuB,iCAAiC;AACxD;AACA,KAAK;;AAEL;AACA;AACA,aAAa,mCAAmC;AAChD;AACA;AACA,aAAa,mCAAmC;AAChD;AACA;AACA,KAAK;;AAEL;AACA;;AAEA,oBAAoB;;AAEpB;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,uBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;;AAEA,0BAA0B;AAC1B,MAAM;AACN;AACA,aAAa,kCAAkC;AAC/C;AACA;;AAEA,qCAAqC,+BAA+B;AACpE,qCAAqC,+BAA+B;;AAEpE;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,uKAAuK;AAC1K;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,2DAA2D,yBAAyB;;AAEpF;AACA;;AAEA,CAAC,EAAE,8EAA8E;AACjF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA,0CAA0C,QAAQ;AAClD;;AAEA;AACA;AACA;AACA,mCAAmC,sBAAsB;AACzD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,iNAAiN;AACpN;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,sBAAsB;AACzC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;;AAEA,sCAAsC,QAAQ;AAC9C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,mDAAmD;AACtD;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,QAAQ;;AAER;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,uCAAuC,iBAAiB,GAAG,eAAe;AAC1E;AACA;AACA;AACA;AACA;AACA;;AAEA,6BAA6B,yBAAyB,YAAY;AAClE;;AAEA;AACA;AACA;AACA;AACA,CAAC;;AAED;;AAEA;AACA;AACA,CAAC;;AAED,+BAA+B;AAC/B;AACA;AACA;AACA,CAAC;;AAED;;AAEA;;AAEA,CAAC,EAAE,qNAAqN;AACxN;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE,uCAAuC;AAC1C;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;;AAEA,2BAA2B;AAC3B,yBAAyB;AACzB,uBAAuB;;AAEvB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,4CAA4C,2BAA2B;AACvE;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA,CAAC,EAAE,8IAA8I;AACjJ;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,2DAA2D,yBAAyB;;AAEpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,8EAA8E;AACjF;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA,CAAC,EAAE,wFAAwF;AAC3F;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,2BAA2B,sBAAsB;AACjD,SAAS;AACT;AACA;AACA;AACA;AACA,2BAA2B,sBAAsB;AACjD,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,2BAA2B,sBAAsB;AACjD,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,uBAAuB;AACvB,KAAK;;AAEL;AACA,4BAA4B;AAC5B;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,gCAAgC;AAChC,SAAS;AACT;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE,4RAA4R;AAC/R;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA,gCAAgC,0BAA0B;;AAE1D;AACA;;AAEA,CAAC,EAAE,8FAA8F;AACjG;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB,qBAAqB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,uBAAuB,QAAQ;AAC/B;AACA;AACA;AACA;AACA;AACA,uBAAuB,YAAY;AACnC;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,wCAAwC,iBAAiB;;AAEzD;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,0EAA0E;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,sBAAsB,qDAAqD;;AAE3E;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA,+BAA+B;AAC/B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,0GAA0G;AAC7G;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,sDAAsD;AACzD;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,8BAA8B;AAC9B,8BAA8B;;AAE9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,uBAAuB,0BAA0B;AACjD;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA,uBAAuB,uBAAuB;AAC9C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB,0BAA0B;AACjD;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA,uBAAuB,uBAAuB;AAC9C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,4BAA4B;AAC5B;AACA;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA,CAAC,EAAE,+KAA+K;AAClL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA,sCAAsC,UAAU;AAChD;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,4DAA4D;AAC/D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,eAAe,qBAAqB;AACpC;;AAEA,mBAAmB,sBAAsB;AACzC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,iBAAiB,aAAa,SAAS;AACvC;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,kBAAkB;AACnC;AACA;AACA;AACA;;AAEA;;AAEA,wBAAwB;;AAExB,8BAA8B,kBAAkB;AAChD;AACA;AACA;AACA,gCAAgC,mBAAmB;AACnD;AACA;AACA,kBAAkB;AAClB;;AAEA;AACA;AACA,8BAA8B,aAAa;AAC3C;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAiB,kBAAkB;;AAEnC;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,yBAAyB;AAC5C;AACA;AACA;AACA;;AAEA;AACA;AACA,2BAA2B,yBAAyB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,yBAAyB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,kCAAkC;AACrC;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA,CAAC,EAAE,oDAAoD;AACvD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,uIAAuI;AAC1I;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA;AACA;;AAEA;AACA,SAAS,6BAA6B;AACtC,SAAS;AACT;AACA;;AAEA,CAAC,EAAE,mEAAmE;AACtE;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,gBAAgB,YAAY;AAC5B;AACA;AACA;;AAEA,oBAAoB,YAAY;AAChC;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,qBAAqB;AAC5C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,kBAAkB;AACrB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,uDAAuD,WAAW;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,yBAAyB;AACzB,4BAA4B;AAC5B,0BAA0B;AAC1B,2BAA2B;;AAE3B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,qBAAqB,SAAS,SAAS;AACvC;AACA;AACA;AACA;;AAEA,yEAAyE;AACzE,4DAA4D;AAC5D,8DAA8D;AAC9D,6DAA6D;;AAE7D,+BAA+B,iCAAiC;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,qBAAqB;AACpC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,+BAA+B,eAAe;AAC9C;AACA;;AAEA;;AAEA;AACA;AACA,aAAa;AACb,SAAS;;AAET;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gCAAgC,qCAAqC;;AAErE;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA,gCAAgC,6BAA6B;;AAE7D;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,kBAAkB;AAClB,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,yBAAyB;AACzB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,8BAA8B;AACjD,wBAAwB,UAAU;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,mBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;;AAET;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,SAAS;;AAET;AACA;AACA,uBAAuB,8BAA8B;AACrD;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,yCAAyC,eAAe;;AAExD;AACA;AACA;AACA;AACA;AACA,MAAM;;AAEN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,oBAAoB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,8WAA8W;AACjX;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,iDAAiD;AACpD;;AAEA;;AAEA;AACA;;AAEA;;;AAGA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;;AAET;AACA;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA,CAAC,EAAE,6FAA6F;AAChG;;AAEA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,gDAAgD;AAChD;AACA;;AAEA;;AAEA;AACA;;AAEA,CAAC,EAAE,kEAAkE;AACrE;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,CAAC;;AAED;AACA;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE,4HAA4H;AAC/H;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,wCAAwC;;AAExC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA,CAAC,EAAE,oSAAoS;AACvS;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,uFAAuF,gBAAgB;AACvG,UAAU;AACV;AACA,oEAAoE,gBAAgB;AACpF;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA,CAAC,EAAE,yKAAyK;AAC5K;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,2IAA2I;AAC9I;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,kDAAkD,QAAQ;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA,eAAe,qBAAqB;AACpC;AACA;AACA;AACA,mBAAmB,yBAAyB;AAC5C;AACA;AACA,uBAAuB,iBAAiB;AACxC;AACA;AACA;AACA;AACA,mBAAmB,qBAAqB;AACxC;AACA;AACA,uBAAuB,iBAAiB;AACxC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA,+BAA+B,eAAe;AAC9C;AACA;;AAEA;;AAEA;AACA;AACA,aAAa;AACb,SAAS;;AAET;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,mBAAmB,iCAAiC;AACpD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,eAAe,yBAAyB;AACxC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA,uDAAuD,WAAW;AAClE;AACA;;AAEA;AACA;;AAEA,yBAAyB;AACzB,4BAA4B;AAC5B,0BAA0B;AAC1B,2BAA2B;;AAE3B;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA,mBAAmB,qBAAqB;AACxC;AACA,uBAAuB,wBAAwB;AAC/C;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,qBAAqB,SAAS,SAAS;AACvC;AACA;AACA;AACA;;AAEA;AACA,yCAAyC;AACzC,cAAc;AACd,yCAAyC;AACzC,cAAc;AACd,yCAAyC;AACzC,cAAc;AACd,yCAAyC;AACzC;;AAEA,+BAA+B,iCAAiC;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,qBAAqB;AACpC;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,kZAAkZ;AACrZ;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA,4BAA4B;AAC5B;AACA,KAAK;AACL;AACA,6BAA6B,yBAAyB,YAAY;AAClE,CAAC;AACD;AACA;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE,yKAAyK;AAC5K;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,SAAS;AAC5B;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,4GAA4G;AAC/G;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,iBAAiB,mBAAmB;AACpC;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAe,sBAAsB;AACrC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,2BAA2B,mCAAmC;AAC9D;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,gBAAgB;AAC/B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA,aAAa,iCAAiC;AAC9C;;AAEA;AACA,KAAK;;AAEL,oBAAoB;AACpB;;AAEA;AACA;;AAEA,CAAC,EAAE,kKAAkK;AACrK;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,2DAA2D,yBAAyB;AACpF;;AAEA,CAAC,EAAE,8EAA8E;AACjF;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,CAAC,EAAE,8DAA8D;AACjE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,uLAAuL;AAC1L;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,sBAAsB;AACzC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;;AAEA,sCAAsC,QAAQ;AAC9C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;;AAEA,CAAC,EAAE,mDAAmD;AACtD;;AAEA;;AAEA;AACA;AACA,mBAAmB,eAAe;;AAElC;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,wCAAwC;AACxC;AACA,KAAK;;AAEL,4BAA4B;AAC5B;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,qCAAqC,iBAAiB;AACtD;AACA,KAAK;;AAEL;AACA;AACA,mCAAmC,8BAA8B,eAAe;AAChF,4BAA4B,uBAAuB,QAAQ;AAC3D;AACA;AACA;AACA;AACA;;AAEA,8BAA8B;AAC9B,KAAK;;AAEL,yBAAyB,oBAAoB,eAAe;AAC5D,wBAAwB,mBAAmB,eAAe;;AAE1D;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,gCAAgC,oBAAoB,wBAAwB;AAC5E,gCAAgC;AAChC;AACA;AACA,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA,8BAA8B;AAC9B;AACA;AACA;;AAEA,CAAC,EAAE,gPAAgP;AACnP;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,eAAe,eAAe;AAC9B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,uCAAuC;AACvC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,eAAe,eAAe;AAC9B;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,qKAAqK;AACxK;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,qBAAqB;AACpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,eAAe,oBAAoB;AACnC;;AAEA,uBAAuB,eAAe;AACtC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,8BAA8B;AACjC;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,uBAAuB,qBAAqB;AAC5C;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,oJAAoJ;AACvJ;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,uCAAuC;;AAEvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gEAAgE;AACnE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,wOAAwO;AAC3O;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,qBAAqB;AACxC;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,0CAA0C;AAC7C;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,2IAA2I;AAC9I;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,qCAAqC,4BAA4B;;AAEjE;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;;AAEA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,4JAA4J;AAC/J;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gCAAgC;AAChC;AACA,aAAa;AACb,gCAAgC,+BAA+B,QAAQ;AACvE;AACA,SAAS;AACT;AACA,KAAK;;AAEL;AACA;;AAEA,6BAA6B;AAC7B,KAAK;;AAEL,2BAA2B;AAC3B;AACA,KAAK;;AAEL,qCAAqC,iBAAiB;AACtD;AACA,KAAK;;AAEL,4BAA4B;AAC5B;AACA,KAAK;;AAEL,wCAAwC;AACxC;AACA,KAAK;;AAEL,+BAA+B;AAC/B;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA,+BAA+B;AAC/B;AACA;AACA,SAAS;AACT;AACA,KAAK;;AAEL,yBAAyB,kDAAkD;;AAE3E;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,2IAA2I;AAC9I;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,wBAAwB;AAC3B;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,iCAAiC,oBAAoB;AACrD;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,kBAAkB;AACrB;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,wGAAwG;AAC3G;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,uKAAuK;AAC1K;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,+BAA+B;AAClC;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,0CAA0C;AAC7C;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,4BAA4B,wBAAwB;;AAEpD;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,qBAAqB;;AAErB;;AAEA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,qBAAqB;;AAErB;AACA;AACA;;AAEA;AACA,iBAAiB;AACjB,aAAa;;AAEb;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA,6BAA6B;AAC7B;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,2BAA2B,QAAQ;AACnC;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,eAAe,sBAAsB;AACrC;AACA;AACA;AACA;;AAEA;AACA,eAAe,sBAAsB;AACrC;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,eAAe,sBAAsB;AACrC;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAe;AACf,2BAA2B,QAAQ;AACnC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,iLAAiL;AACpL;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,8BAA8B,uBAAuB;;AAErD;AACA;AACA,SAAS;AACT,KAAK;AACL;;AAEA,CAAC,EAAE,iEAAiE;AACpE;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL,oBAAoB,mBAAmB,eAAe,gBAAgB;AACtE,qBAAqB,oBAAoB,eAAe,iBAAiB;AACzE,qBAAqB,oBAAoB,eAAe,iBAAiB;AACzE,oBAAoB,mBAAmB,eAAe,gBAAgB;AACtE,qBAAqB,oBAAoB,eAAe,iBAAiB;AACzE,qBAAqB,oBAAoB,eAAe,iBAAiB;;AAEzE,0BAA0B,yBAAyB,eAAe,iBAAiB;AACnF,0BAA0B,yBAAyB,eAAe,iBAAiB;AACnF,2BAA2B,0BAA0B,eAAe,iBAAiB;AACrF,2BAA2B,0BAA0B,eAAe,iBAAiB;AACrF,mCAAmC,kCAAkC,eAAe,iBAAiB;AACrG,mCAAmC,kCAAkC,eAAe,iBAAiB;;AAErG;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA,6BAA6B,yBAAyB,YAAY;AAClE,CAAC;AACD;AACA,CAAC;AACD,yBAAyB,mCAAmC;AAC5D;;AAEA,CAAC,EAAE,sNAAsN;AACzN;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,2BAA2B,kBAAkB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,kBAAkB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,mCAAmC,sBAAsB;AACzD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,cAAc;AACjC;AACA;AACA;AACA,uBAAuB,iBAAiB;AACxC;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,iUAAiU;AACpU;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,iBAAiB;AACpC;AACA,qCAAqC;AACrC,yCAAyC;AACzC,MAAM;AACN;AACA,wCAAwC;AACxC,yCAAyC;AACzC;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,4BAA4B;AACnD;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,eAAe,YAAY;AAC3B;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,mBAAmB,YAAY;AAC/B;;AAEA;AACA;;AAEA,CAAC,EAAE,qEAAqE;AACxE;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,eAAe,0BAA0B;AACzC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,eAAe,YAAY;AAC3B;AACA;AACA;;AAEA,uBAAuB,0BAA0B;AACjD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,0BAA0B;AACzC;AACA;AACA;AACA;;AAEA;AACA,2EAA2E,2BAA2B;AACtG;;AAEA;AACA,2EAA2E,2BAA2B;AACtG;;AAEA;AACA;;AAEA,CAAC,EAAE,yFAAyF;AAC5F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,2DAA2D,yBAAyB;AACpF;;AAEA,CAAC,EAAE,2JAA2J;AAC9J;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,cAAc;AAC7B;AACA;AACA;AACA,mBAAmB,eAAe;AAClC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,2CAA2C,QAAQ;AACnD;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,yCAAyC,qBAAqB;AAC9D;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA,wBAAwB,eAAe;AACvC;AACA;AACA;;AAEA;AACA,wBAAwB,eAAe;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE,6GAA6G;AAChH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,uIAAuI;AAC1I;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,iBAAiB;AAC5B;AACA;AACA,WAAW,iBAAiB;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,eAAe,wBAAwB;AACvC;AACA;AACA;AACA;AACA;;AAEA,eAAe,kDAAkD;AACjE;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,wBAAwB;AACvC;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,OAAO;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;;AAEA,2BAA2B,SAAS;AACpC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,6BAA6B,eAAe;AAC5C;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA,cAAc;AACd;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;;AAEA,kDAAkD,eAAe;AACjE;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,qCAAqC;AACxC;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,0DAA0D,wCAAwC;;AAElG;AACA;AACA;AACA;AACA;AACA,kCAAkC,wBAAwB;AAC1D;AACA;AACA,kCAAkC,wBAAwB;AAC1D;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,cAAc;AACd;;AAEA;AACA;;AAEA,sBAAsB;AACtB;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,2BAA2B,mBAAmB;AAC9C,2BAA2B,mBAAmB;;AAE9C;AACA;AACA,2BAA2B,gBAAgB;;AAE3C;AACA,2BAA2B,iBAAiB;AAC5C;AACA;AACA;AACA,+BAA+B,gBAAgB;AAC/C;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB,2BAA2B,OAAO;AAClC;AACA;AACA,+BAA+B,gBAAgB;AAC/C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,2BAA2B,UAAU;AACrC;AACA;AACA;;AAEA;AACA,UAAU,OAAO;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,OAAO;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;;AAEA,wCAAwC;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,+IAA+I;AAClJ;;AAEA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA,kDAAkD;;AAElD;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,cAAc;AACjC;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,eAAe;AACtC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,0DAA0D;AAC7D;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,eAAe,uBAAuB;AACtC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,yBAAyB,mCAAmC;AAC5D;;AAEA;;AAEA,CAAC,EAAE,gIAAgI;AACnI;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB,kBAAkB;AAClB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,OAAO;AAC1B;AACA;;AAEA;;AAEA,uBAAuB,OAAO;AAC9B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,CAAC,EAAE,8FAA8F;AACjG;;AAEA;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,2DAA2D,yBAAyB;AACpF;;AAEA,CAAC,EAAE,4GAA4G;AAC/G;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,2HAA2H;AAC9H;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA,uBAAuB;AACvB,KAAK;AACL,4BAA4B;AAC5B,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL,wCAAwC;AACxC;AACA,KAAK;;AAEL;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,iLAAiL;AACpL;;;AAGA;AACA;AACA;AACA,mBAAmB,UAAU;AAC7B;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;;AAGA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,qBAAqB;AACxB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,eAAe;AAC1B,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,YAAY,yBAAyB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mBAAmB,QAAQ;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,iEAAiE;AACpE;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,uBAAuB,eAAe;AACtC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,iBAAiB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,eAAe,eAAe;AAC9B;AACA;AACA;AACA;AACA;AACA,2BAA2B,mBAAmB;AAC9C;AACA;AACA;AACA;AACA;;AAEA;AACA,0BAA0B,kBAAkB;AAC5C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,4BAA4B;AAC5B,4BAA4B;;AAE5B;AACA,sBAAsB,mEAAmE;AACzF,sBAAsB;;AAEtB;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,mBAAmB;AACtC;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,4CAA4C;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iDAAiD,sBAAsB;AACvE;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,+BAA+B;AAC9C;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,+BAA+B;AAC9C;AACA,uBAAuB,iBAAiB;AACxC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,+BAA+B;AAC9C;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,qBAAqB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,iBAAiB;AACxC;AACA;AACA,UAAU;AACV;AACA,qCAAqC,QAAQ;AAC7C;AACA;AACA;AACA,MAAM;AACN,mBAAmB,iBAAiB;AACpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,iCAAiC,QAAQ;AACzC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,+MAA+M;AAClN;;AAEA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,KAAK,OAAO,mCAAmC,gBAAgB;AAC/D,KAAK,OAAO,+BAA+B,cAAc;AACzD,KAAK,OAAO,iCAAiC,eAAe;AAC5D,KAAK,OAAO,yBAAyB;AACrC;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,uCAAuC,wBAAwB;AAC/D;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,qBAAqB;AACpC;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,uBAAuB;AACtC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,iDAAiD;AACjD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,mBAAmB,mBAAmB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,4BAA4B;AAC3C;;AAEA;;AAEA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,qBAAqB;AACxC;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,uBAAuB,mBAAmB;AAC1C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,mDAAmD;AACnD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,sBAAsB,mBAAmB;AACzC;AACA;AACA,2DAA2D;AAC3D;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,wIAAwI;AAC3I;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA,+CAA+C;;AAE/C;AACA;AACA,gFAAgF,UAAU;AAC1F,gFAAgF,wBAAwB;AACxG;;AAEA,CAAC,EAAE,iHAAiH;AACpH;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,+BAA+B;AAC/B;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,2BAA2B,gBAAgB;AAC3C;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,oDAAoD;AACvD;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,+TAA+T;AAClU;;;AAGA;AACA;AACA;AACA;AACA,uBAAuB,UAAU;AACjC,KAAK;AACL;AACA;AACA,uBAAuB,UAAU;AACjC,KAAK;AACL;AACA;AACA;AACA,uBAAuB,UAAU;AACjC,KAAK;AACL;AACA;AACA;AACA,uBAAuB,UAAU;AACjC;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,+BAA+B;AAC/B,SAAS;AACT,gCAAgC;AAChC,SAAS;AACT,gCAAgC;AAChC,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,GAAG,UAAU;AACzD,iCAAiC,yBAAyB,YAAY;AACtE,KAAK;AACL,yBAAyB,mCAAmC;AAC5D;;AAEA,CAAC,EAAE,sRAAsR;AACzR;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,6BAA6B;AAC7B,6BAA6B;AAC7B,6BAA6B;AAC7B,6BAA6B;;AAE7B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB,aAAa;AACpC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,uBAAuB,aAAa;AACpC;AACA;AACA;AACA,mBAAmB,QAAQ;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,eAAe;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,QAAQ;AAC3B;AACA;AACA,mBAAmB,QAAQ;AAC3B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mBAAmB,SAAS;AAC5B,MAAM;AACN;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,eAAe,SAAS;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,yMAAyM;AAC5M;;AAEA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,2DAA2D,yBAAyB;AACpF;AACA;AACA;AACA;;AAEA,CAAC,EAAE,sIAAsI;AACzI;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,wDAAwD;AAC3D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,iPAAiP;AACpP;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,qCAAqC;AACxC;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,4BAA4B;AAC5B;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE,mLAAmL;AACtL;;AAEA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,2IAA2I;AAC9I;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,4NAA4N;AAC/N;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;;AAGT;AACA,KAAK;;AAEL;AACA;;AAEA;;AAEA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,qCAAqC,iBAAiB;AACtD;AACA,KAAK;;AAEL;AACA;AACA,wCAAwC;AACxC;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;;AAEA,yBAAyB,8CAA8C;AACvE;;AAEA,CAAC,EAAE,kPAAkP;AACrP;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,wBAAwB;AAC3B;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,wBAAwB;AAC3B;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA,+DAA+D,gCAAgC;AAC/F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,wKAAwK;AAC3K;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB;;AAEvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC,aAAa;AACb,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,gDAAgD,oCAAoC;;AAEpF;AACA;AACA,SAAS;;AAET;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA,qCAAqC;AACrC,aAAa;AACb,UAAU;AACV;AACA;AACA,KAAK;;AAEL;AACA;;AAEA,CAAC,EAAE,mOAAmO;AACtO;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,iLAAiL;AACpL;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,0CAA0C;AAC7C;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA,CAAC,EAAE,+CAA+C;AAClD;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE,gDAAgD;AACnD;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,SAAS;AACT,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,uFAAuF;AAC1F;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,eAAe;AAC9B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,aAAa,oCAAoC;AACjD,aAAa,oCAAoC;AACjD,aAAa,oCAAoC;AACjD,aAAa;AACb;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,aAAa,oCAAoC;AACjD,aAAa,oCAAoC;AACjD,aAAa,oCAAoC;AACjD,aAAa;AACb;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL,4BAA4B;AAC5B;AACA;AACA,KAAK;AACL,wCAAwC;AACxC;AACA,KAAK;;AAEL;AACA,CAAC;;AAED,CAAC,EAAE,4GAA4G;AAC/G;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,2CAA2C,OAAO;AAClD,2CAA2C,OAAO;AAClD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,yBAAyB;AACzB;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,OAAO;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,wGAAwG;AAC3G;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,sBAAsB;AACpD;AACA,SAAS;AACT;AACA;AACA;AACA,8BAA8B,sBAAsB;AACpD;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,sBAAsB;AACpD;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,kFAAkF;AACrF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA,yCAAyC;;AAEzC;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,sEAAsE;AACzE;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA,wFAAwF,SAAS;AACjG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE,4DAA4D;AAC/D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,yIAAyI;AAC5I;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,mCAAmC;AACnC,mCAAmC;;AAEnC;AACA;AACA;AACA;AACA,uBAAuB,WAAW;AAClC,mCAAmC;AACnC;AACA,+BAA+B,WAAW;AAC1C,uCAAuC;AACvC;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6DAA6D;AAC7D;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,qEAAqE,gBAAgB;AACrF;AACA,cAAc;AACd;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;;AAET;AACA,KAAK;AACL;;AAEA,CAAC,EAAE,yFAAyF;AAC5F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,aAAa,oCAAoC;AACjD,aAAa;AACb;AACA;AACA;;AAEA,qDAAqD;AACrD;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,yBAAyB,iDAAiD;;AAE1E;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT,2BAA2B;AAC3B,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,2BAA2B;AAC3B,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,SAAS;AACT,2BAA2B;AAC3B,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,0BAA0B;AAC1B,oBAAoB,cAAc;AAClC,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,kCAAkC;AAClC;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,oBAAoB,gBAAgB;AACpE;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,oCAAoC;AACpC,iBAAiB;AACjB,oCAAoC;AACpC;AACA,iBAAiB;AACjB;AACA,aAAa;AACb,oCAAoC;AACpC;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA,CAAC,EAAE,6TAA6T;AAChU;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,wBAAwB;AAC3B;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,oBAAoB;AACpB;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,iWAAiW;AACpW;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,gFAAgF;AACnF;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mDAAmD;AACnD;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA,iEAAiE;AACjE;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,+BAA+B;AAC/B;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA,yCAAyC,6DAA6D;AACtG,qCAAqC,2BAA2B;AAChE,qCAAqC,+CAA+C;AACpF,0CAA0C,oCAAoC;AAC9E;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,6BAA6B;AACnE,4CAA4C,6BAA6B;AACzE;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA,qCAAqC,yEAAyE;AAC9G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,6BAA6B;AACnE,4CAA4C,6BAA6B;AACzE;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,sBAAsB;AAC/D,qCAAqC,UAAU;AAC/C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2GAA2G,wBAAwB;AACnI,6CAA6C,kCAAkC;AAC/E;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA,wCAAwC,qCAAqC;AAC7E;AACA;;AAEA,gCAAgC;AAChC;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,0CAA0C,eAAe,6BAA6B;AACtF,gDAAgD,eAAe,6BAA6B;AAC5F;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,UAAU;AACV;AACA;;AAEA;AACA;AACA;;AAEA;AACA,oCAAoC,oCAAoC;AACxE;AACA;;AAEA,qCAAqC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,6BAA6B;;AAEtE;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAyD,uBAAuB;AAChF;AACA,iBAAiB;AACjB,0CAA0C,cAAc,6BAA6B;AACrF,gDAAgD,cAAc,6BAA6B;AAC3F,UAAU;AACV;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,oBAAoB,eAAe;AACnC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA,4BAA4B,6CAA6C;AACzE,4BAA4B,sCAAsC;AAClE,6CAA6C,qBAAqB;AAClE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,yWAAyW;AAC5W;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA,6BAA6B,yBAAyB,YAAY;AAClE,CAAC;;AAED;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;;AAEA,4BAA4B;AAC5B,CAAC;;AAED;AACA,+BAA+B;;AAE/B;AACA;;AAEA,CAAC,EAAE,qPAAqP;AACxP;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,gBAAgB;AACnC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE,iEAAiE;AACpE;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,gCAAgC,OAAO;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,wCAAwC,SAAS;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,uBAAuB,cAAc;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA,uBAAuB,cAAc;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA,uBAAuB,qBAAqB;AAC5C;AACA;;AAEA;AACA,2BAA2B,OAAO;AAClC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,sFAAsF;;AAEtF;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA,4BAA4B;AAC5B;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,4EAA4E;AAC5E;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;;AAEA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA,2BAA2B,WAAW;AACtC,+BAA+B,YAAY;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA,2BAA2B,WAAW;AACtC,+BAA+B,WAAW;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA,2BAA2B,YAAY;AACvC,+BAA+B,WAAW;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,uBAAuB,WAAW;AAClC,2BAA2B,YAAY;AACvC,+BAA+B,WAAW;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA,2BAA2B,WAAW;AACtC,+BAA+B,YAAY;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA,2BAA2B,WAAW;AACtC,+BAA+B,WAAW;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA,2BAA2B,YAAY;AACvC,+BAA+B,WAAW;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;;AAEA;AACA,uBAAuB,WAAW;AAClC,2BAA2B,YAAY;AACvC,+BAA+B,WAAW;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,2BAA2B,kBAAkB;AAC7C;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,2BAA2B,wBAAwB;AACnD;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,uCAAuC,4BAA4B;AACnE;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA,kCAAkC;AAClC;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA,0BAA0B;AAC1B;AACA,0BAA0B;AAC1B;AACA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,2BAA2B,OAAO;AAClC;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,2JAA2J;AAC9J;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,YAAY;;AAExC,2DAA2D,yBAAyB;;AAEpF;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,mGAAmG;AACtG;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,wFAAwF;AAC3F;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA,KAAK;AACL;AACA;AACA;;AAEA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,uCAAuC,iBAAiB;;AAExD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA,CAAC;AACD;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,2BAA2B;AAC3B,SAAS;AACT;AACA;AACA;AACA,KAAK;;AAEL;AACA,wBAAwB,iCAAiC,UAAU;AACnE,wBAAwB,iCAAiC,UAAU;AACnE,wBAAwB,iCAAiC,QAAQ;AACjE;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;;AAEL,4BAA4B,wBAAwB,iBAAiB;AACrE,6BAA6B,yBAAyB,YAAY;AAClE,CAAC;;AAED,CAAC,EAAE,uNAAuN;AAC1N;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA,CAAC,EAAE,uCAAuC;AAC1C;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,SAAS;AAC5B,8DAA8D;AAC9D;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,2BAA2B,OAAO;AAClC;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,CAAC,EAAE,2JAA2J;AAC9J;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,YAAY;;AAExC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,+DAA+D,yBAAyB;AACxF,MAAM;AACN;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,mGAAmG;AACtG;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,wFAAwF;AAC3F;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,gCAAgC,oBAAoB,uBAAuB;AAC3E;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA,4BAA4B;AAC5B,SAAS;AACT,2BAA2B;AAC3B,SAAS;AACT;AACA,KAAK;;AAEL;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE,6MAA6M;AAChN;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,wDAAwD,kBAAkB;AAC1E;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,MAAM;AACN,iBAAiB,IAAI,aAAa;AAClC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,mBAAmB,cAAc;AACjC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAc;;AAEd;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,gDAAgD;AAChD;AACA;;AAEA;AACA,UAAU;AACV,qBAAqB,qBAAqB;AAC1C;AACA;;AAEA,uEAAuE,aAAa;;AAEpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA,mBAAmB,qBAAqB;AACxC;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,mBAAmB,kCAAkC;AACrD;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,0HAA0H;AAC7H;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,6DAA6D,QAAQ;AACrE;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,0FAA0F;AAC7F;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,kCAAkC;;AAElC;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB;;AAEvB;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,kBAAkB;AACrC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,0CAA0C;;AAE1C;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,uIAAuI;AAC1I;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,qIAAqI;AACxI;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,qCAAqC;AACxC;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;;AAEA,CAAC,EAAE,gCAAgC;AACnC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,eAAe;AAClC;AACA;AACA,MAAM;AACN,mBAAmB,eAAe;AAClC;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;;AAEA,CAAC,EAAE,4EAA4E;AAC/E;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK,iBAAiB;AACtB,6BAA6B,yBAAyB;AACtD;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;;AAEA;AACA,yBAAyB,+CAA+C;;AAExE,4BAA4B;AAC5B;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,kMAAkM;AACrM;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,wCAAwC;AAC3C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,YAAY;AACZ;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA,2BAA2B,2BAA2B;AACtD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA,gBAAgB;AAChB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,4DAA4D,gBAAgB;;AAE5E;AACA;AACA;AACA;;AAEA,sBAAsB,sBAAsB;AAC5C;AACA;AACA,mBAAmB,6BAA6B;AAChD;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;;AAGL,sBAAsB,sBAAsB;AAC5C;;AAEA,mBAAmB,4BAA4B;AAC/C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA,cAAc,wBAAwB;AACtC;AACA,cAAc,2BAA2B;AACzC;AACA,cAAc,QAAQ;AACtB;AACA,cAAc,QAAQ;AACtB;AACA,cAAc,QAAQ;AACtB;;AAEA;AACA;AACA,WAAW,wBAAwB;AACnC,WAAW,2BAA2B;AACtC,WAAW,QAAQ;AACnB,YAAY;AACZ;AACA;AACA;AACA,0BAA0B,4BAA4B;AACtD,kCAAkC,yBAAyB;AAC3D,YAAY;AACZ;;AAEA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA,cAAc,QAAQ;AACtB;AACA,cAAc,QAAQ;AACtB;AACA;AACA,cAAc,QAAQ;AACtB;AACA,cAAc,QAAQ;AACtB;AACA,cAAc,QAAQ;AACtB;AACA,cAAc,uBAAuB;AACrC,cAAc,aAAa;AAC3B;AACA;;AAEA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA,cAAc,QAAQ;AACtB;AACA,cAAc,QAAQ;AACtB;AACA,cAAc,QAAQ;AACtB;AACA,cAAc,QAAQ;AACtB;AACA;AACA,cAAc,OAAO;AACrB;AACA,cAAc,QAAQ;AACtB;AACA,cAAc,aAAa;AAC3B;AACA;;AAEA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,eAAe;AAC1B,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA,cAAc,OAAO;AACrB;AACA,WAAW,QAAQ;AACnB;AACA,cAAc,OAAO;AACrB;AACA,cAAc,QAAQ;AACtB;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,WAAW;AACtB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA,cAAc,OAAO;AACrB;AACA,cAAc,OAAO;AACrB;AACA;AACA,cAAc,OAAO;AACrB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,iBAAiB;AAC5B;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,qDAAqD,UAAU;AAC/D;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,mBAAmB,mBAAmB;AACtC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,sDAAsD,8BAA8B;;AAEpF;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA,oDAAoD,wBAAwB;AAC5E;;AAEA;AACA,mBAAmB,wBAAwB;AAC3C;AACA;AACA,MAAM;AACN,mBAAmB,wBAAwB;AAC3C;AACA;AACA;AACA;;;AAGA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,YAAY;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA,sCAAsC,uCAAuC;AAC7E;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;AACA;;AAEA,mBAAmB,iBAAiB;AACpC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,0MAA0M;AAC7M;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mEAAmE,8BAA8B;AACjG;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,4NAA4N;AAC/N;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gFAAgF;AACnF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;;AAEA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;;;AAGT;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;;AAET;;AAEA;AACA;AACA;AACA;AACA,wBAAwB,mBAAmB;AAC3C;AACA;AACA,aAAa;;AAEb;AACA,mCAAmC,sBAAsB;;AAEzD;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA,wBAAwB,uBAAuB;AAC/C;AACA;AACA;AACA,kBAAkB;AAClB;AACA,kBAAkB;AAClB;AACA;AACA,aAAa;;AAEb;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA,wBAAwB,mBAAmB;AAC3C;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yBAAyB,mBAAmB;AAC5C;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,SAAS;AACT;AACA,wBAAwB,mBAAmB;AAC3C;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,oBAAoB;AACpB,SAAS;AACT;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,sBAAsB;AACjC,WAAW,QAAQ;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAY,mBAAmB;AAC/B;AACA;AACA;AACA;AACA;;AAEA;AACA,WAAW,eAAe;AAC1B,WAAW,eAAe;AAC1B;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA,WAAW,eAAe;AAC1B;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,gCAAgC,gCAAgC;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD;AACpD;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,eAAe;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,eAAe;AAC1B;AACA;AACA;AACA;;AAEA,mBAAmB,8BAA8B;AACjD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,eAAe;AAC1B;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,eAAe;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,uBAAuB;AAClC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,wBAAwB,eAAe;AACvC;AACA;AACA;AACA,aAAa;AACb;;;AAGA;AACA;AACA;AACA,WAAW,aAAa;AACxB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,6BAA6B,wCAAwC;AACrE;AACA;AACA;AACA,SAAS;AACT;;;AAGA;AACA,WAAW,aAAa;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA,WAAW,aAAa;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,WAAW,YAAY;AACvB;AACA,WAAW,aAAa;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,eAAe,mBAAmB;AAClC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA,WAAW,YAAY;AACvB;AACA,WAAW,aAAa;AACxB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;AACA;AACA,WAAW,YAAY;AACvB;AACA,WAAW,aAAa;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,eAAe,uBAAuB;AACtC;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA,oBAAoB,eAAe;AACnC;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA,WAAW,uBAAuB;AAClC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,uBAAuB,aAAa;AACpC;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA,kBAAkB;AAClB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA,WAAW,uBAAuB;AAClC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA,WAAW,oBAAoB;AAC/B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,6FAA6F,qBAAqB;AAClH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,mBAAmB;AAC3C;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;;AAErB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,oCAAoC,uBAAuB;AAC3D;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA,aAAa;;AAEb;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,oBAAoB;AAC/B;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA,WAAW,oBAAoB;AAC/B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,6FAA6F,qBAAqB;AAClH;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA,iCAAiC,qCAAqC;;AAEtE;AACA,0EAA0E,yBAAyB;AACnG,2EAA2E,yBAAyB;;AAEpG;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA,WAAW,kBAAkB;AAC7B;AACA;AACA;AACA;AACA,mBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,WAAW,kBAAkB;AAC7B,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA,WAAW,kBAAkB;AAC7B,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA,2BAA2B,qBAAqB;;AAEhD;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,SAAS;;AAET;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA,wBAAwB,mBAAmB;AAC3C;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;;AAET;;AAEA;AACA,mCAAmC,sBAAsB;;AAEzD;AACA;AACA;;AAEA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,sBAAsB;AACjC;AACA,YAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA,mCAAmC;;AAEnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,gBAAgB;AAC3B;AACA,WAAW,gBAAgB;AAC3B;AACA,WAAW,gBAAgB;AAC3B;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ;AACnB;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,0BAA0B;AACzC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,eAAe,sBAAsB;AACrC;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,kCAAkC,QAAQ;AAC1C;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,kBAAkB;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,SAAS;;AAET;AACA;AACA;AACA,iDAAiD,qBAAqB;AACtE,SAAS;;AAET;AACA,6EAA6E,qBAAqB;AAClG,uEAAuE,6BAA6B;;AAEpG;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA,yDAAyD,gBAAgB;;AAEzE;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,iFAAiF,8CAA8C;AAC/H;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,2BAA2B,kBAAkB;AAC7C,mCAAmC,iBAAiB;;;AAGpD,4BAA4B,gCAAgC;AAC5D;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA,uBAAuB,mCAAmC;AAC1D;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,iBAAiB,WAAW;AAC5B;AACA,iBAAiB,QAAQ;AACzB;AACA,iBAAiB,QAAQ;AACzB;AACA;;AAEA;AACA;AACA;AACA,WAAW,kBAAkB;AAC7B;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,kBAAkB;AAC7B;AACA,WAAW,gBAAgB;AAC3B,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA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EL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,+BAA+B;AAC/B;AACA,SAAS;AACT,+BAA+B;AAC/B;AACA,SAAS;AACT,iCAAiC;AACjC;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,iBAAiB,oCAAoC;AACrD,iBAAiB;AACjB;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,iBAAiB,iCAAiC;AAClD,iBAAiB;AACjB;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;;AAEL,sBAAsB,iBAAiB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA,CAAC,EAAE,gNAAgN;AACnN;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,uCAAuC;;AAEvC;AACA,yCAAyC;;AAEzC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,2BAA2B;AAC9C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,yBAAyB;AACzB;AACA;AACA,mBAAmB,wBAAwB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,oCAAoC,iCAAiC;AACrE,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,0BAA0B;AAC7C;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,2BAA2B,oEAAoE;AAC/F;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,cAAc;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,wBAAwB;AACxB;AACA,MAAM,OAAO;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB,wBAAwB;AACxB,kCAAkC;AAClC;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,MAAM;AACN,0BAA0B;AAC1B;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA,2CAA2C,qBAAqB;AAChE,sCAAsC,gBAAgB;AACtD,yCAAyC,mBAAmB;AAC5D;AACA;;AAEA,0BAA0B;;AAE1B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gFAAgF;AAChF;;AAEA;AACA;AACA;AACA;AACA,SAAS;;AAET,iFAAiF;;AAEjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,kCAAkC,kBAAkB;AACpD;;AAEA,oEAAoE;;AAEpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,kCAAkC,kBAAkB;AACpD;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,kDAAkD,kBAAkB;AACpE;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,iCAAiC;AACpE;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT,0BAA0B,wBAAwB;AAClD,sCAAsC,sBAAsB;AAC5D,gCAAgC;AAChC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,2CAA2C,0BAA0B;;AAErE;AACA;AACA,MAAM;;AAEN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,+BAA+B,YAAY;;AAE3C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,sEAAsE;AACzE;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,+CAA+C,8BAA8B;AAC7E;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE,+FAA+F;AAClG;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT,MAAM;AACN;AACA;AACA;;AAEA,iBAAiB,qCAAqC;AACtD;;AAEA;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA;;AAEA,CAAC,EAAE,sEAAsE;AACzE;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,mEAAmE,8BAA8B;AACjG;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,sRAAsR;AACzR;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gFAAgF;AACnF;;AAEA;AACA,yDAAyD,8CAA8C,kMAAkM,8HAA8H,qDAAqD,2BAA2B,0BAA0B,4DAA4D,yCAAyC,sCAAsC,oCAAoC,gDAAgD,8CAA8C,+BAA+B,sDAAsD,GAAG,8DAA8D,+EAA+E,+EAA+E,6CAA6C,GAAG,4BAA4B,6BAA6B,GAAG,gDAAgD,6CAA6C,GAAG,6CAA6C,uLAAuL,GAAG,6CAA6C,uLAAuL,GAAG,6DAA6D,kJAAkJ,GAAG,4DAA4D,mBAAmB,kBAAkB,kBAAkB,kBAAkB,kBAAkB,uBAAuB,OAAO,MAAM,yBAAyB,OAAO,MAAM,6BAA6B,OAAO,MAAM,saAAsa,eAAe,WAAW,OAAO,mBAAmB,GAAG,4EAA4E,oCAAoC,qCAAqC,6BAA6B,qIAAqI,gIAAgI,GAAG,iBAAiB,oDAAoD,oDAAoD,oDAAoD,mDAAmD,4BAA4B,yDAAyD,8IAA8I,GAAG;AACtiH,2DAA2D,8CAA8C,iBAAiB,+BAA+B,GAAG;AAC5J;;AAEA;;AAEA,iBAAiB;AACjB;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,gBAAgB,8BAA8B,GAAG;AACjD;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,oCAAoC;AACpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,iBAAiB;AACpC,uBAAuB,YAAY;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,iBAAiB;AACpC,uBAAuB,OAAO;AAC9B,2BAA2B,OAAO;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mBAAmB,aAAa;AAChC;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,aAAa;AAChC,kDAAkD,yDAAyD;AAC3G;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,mBAAmB,QAAQ;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,oEAAoE;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,uBAAuB;AACvB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA,6DAA6D,+BAA+B;;AAE5F;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;;AAEA;AACA,mBAAmB,QAAQ;AAC3B;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA,uBAAuB,wBAAwB;AAC/C;AACA;AACA;AACA;AACA;AACA,gDAAgD;;AAEhD;AACA,2BAA2B,mBAAmB;AAC9C;AACA,yCAAyC,kBAAkB;AAC3D;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,gBAAgB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,gBAAgB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gDAAgD;AACnD;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,eAAe;AAC1B,WAAW,QAAQ;AACnB,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA,eAAe,uBAAuB;AACtC;AACA;AACA;AACA;;AAEA;AACA,eAAe,uBAAuB;AACtC;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA,KAAK;AACL,6BAA6B,qBAAqB;;AAElD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,yCAAyC;AACzC;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA,gCAAgC;AAChC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,8BAA8B;;AAE9B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,mCAAmC;AACrF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,sCAAsC,QAAQ;AAC9C,sCAAsC;AACtC;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA,cAAc;AACd;AACA;;AAEA;AACA,2BAA2B,qBAAqB;AAChD;AACA;AACA,mCAAmC,qBAAqB;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;;AAEV;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,yBAAyB,wBAAwB,qBAAqB;AACtE;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,uCAAuC,mEAAmE;AAC1G,qCAAqC;AACrC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,qBAAqB;AACxC,4CAA4C;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,eAAe;AAClC,uBAAuB,kBAAkB;AACzC;AACA;;AAEA,2BAA2B,uBAAuB;AAClD;AACA;;AAEA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA,8BAA8B,iCAAiC;AAC/D;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;;AAEA,iDAAiD,eAAe;;AAEhE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD;AAClD;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA,uCAAuC,uBAAuB;;AAE9D;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA,4BAA4B,sBAAsB;;AAElD;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,gDAAgD;AAChD;AACA,kBAAkB;;AAElB;;AAEA;AACA,gDAAgD;;AAEhD;AACA;AACA,SAAS;;AAET;AACA;AACA,KAAK;;AAEL;AACA;AACA,8BAA8B,WAAW;AACzC;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,mBAAmB;AAC1D;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;;AAEA,uCAAuC,6CAA6C;AACpF,iDAAiD,6CAA6C;AAC9F;AACA,6CAA6C,+CAA+C;AAC5F;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,8BAA8B;AAC/E;AACA;AACA;AACA;;AAEA;AACA,yEAAyE,oCAAoC;AAC7G;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,4BAA4B,iBAAiB;AAC7C;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,4BAA4B,8BAA8B;AAC1D,4BAA4B,mDAAmD;;AAE/E;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,4BAA4B,+BAA+B;AAC3D,4BAA4B,mDAAmD;;AAE/E;AACA;;AAEA,CAAC,EAAE,uQAAuQ;AAC1Q;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA,yDAAyD,mBAAmB;;AAE5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,8BAA8B;AAC9B,2CAA2C,sBAAsB;AACjE;AACA;AACA;AACA,cAAc;AACd;AACA,qEAAqE;AACrE,wEAAwE;AACxE,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;;AAEA,oCAAoC,6BAA6B;AACjE;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,+DAA+D;AAClE;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,SAAS;AACT;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,4BAA4B;AAC5B;AACA,KAAK;AACL,wCAAwC;AACxC;AACA,KAAK;AACL,qCAAqC,iBAAiB;AACtD;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,2BAA2B;AAC3B,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,iCAAiC;AACjC,KAAK;AACL,kCAAkC;AAClC,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,2BAA2B;AAC3B,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA,KAAK;;AAEL;AACA,yBAAyB,2CAA2C;;AAEpE;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,gCAAgC;AAChC,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,6LAA6L;AAChM;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,wBAAwB;AAC3B;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAe,SAAS;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;;AAEV;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,UAAU;AACV;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,4CAA4C,mBAAmB;;AAE/D;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC;AACxC,qCAAqC;AACrC;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,qBAAqB;AACxC;AACA;AACA;;AAEA,uBAAuB,eAAe;AACtC;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,sBAAsB;AACzC;AACA;;AAEA,mBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,mEAAmE;AACtE;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,uBAAuB,SAAS;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,uGAAuG;AAC1G;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,kCAAkC;AACrC;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,oBAAoB;AACvC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,kKAAkK;AACrK;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,0CAA0C;AAC7C;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,4BAA4B,wBAAwB;;AAEpD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,0CAA0C;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB,kBAAkB;AAClB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,qBAAqB;;AAErB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,iBAAiB;AACjB,aAAa;;AAEb;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;;AAEA;;AAEA;AACA;AACA,kBAAkB;AAClB;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,mBAAmB,qBAAqB;AACxC;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,kBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,uBAAuB,SAAS;AAChC;AACA,uBAAuB,SAAS;AAChC;AACA;AACA;AACA,uBAAuB,SAAS;AAChC;AACA,uBAAuB,SAAS;AAChC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,0BAA0B;AAC7C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,wDAAwD;;AAExD;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,8BAA8B;AAC9B,iCAAiC;;AAEjC;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,+CAA+C;;AAE/C,mBAAmB,sBAAsB;AACzC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,WAAW;AAC9B;AACA;AACA;;AAEA,uBAAuB,WAAW;AAClC;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,uBAAuB,qBAAqB;AAC5C;AACA;;AAEA;AACA,uBAAuB,kCAAkC;AACzD;AACA;AACA;AACA;AACA;;AAEA;AACA,uBAAuB,4BAA4B;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,mBAAmB,qBAAqB;AACxC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,mBAAmB,wBAAwB;AAC3C;AACA;;AAEA,mBAAmB,qBAAqB;AACxC;AACA;;AAEA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;;AAEA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,qBAAqB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,mBAAmB,eAAe;AAClC,qCAAqC;AACrC;AACA,oCAAoC;;AAEpC;AACA;AACA;AACA;AACA;;AAEA;;AAEA,eAAe,eAAe;AAC9B;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,uCAAuC;AACvC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,uGAAuG;AACvG;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,iQAAiQ;AACpQ;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,8BAA8B,uBAAuB;;AAErD;AACA;AACA,SAAS;AACT,KAAK;AACL;;AAEA,CAAC,EAAE,4DAA4D;AAC/D;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,6CAA6C;AAChD;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;;AAEA;AACA,aAAa;AACb;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;;AAEA,CAAC,EAAE,4BAA4B;AAC/B;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC;AACnC;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,0CAA0C;AAC1C;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,uBAAuB,SAAS;AAChC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;;AAEA,uBAAuB,SAAS;AAChC;AACA;AACA;AACA,MAAM;AACN;;AAEA;AACA;;AAEA,mBAAmB,SAAS;AAC5B;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,0EAA0E,UAAU;AACpF,0EAA0E,UAAU;AACpF;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,CAAC,EAAE,oIAAoI;AACvI;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,mCAAmC;AACtC;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,mGAAmG;AACtG;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,4BAA4B;AAC5B;AACA;AACA,KAAK;AACL;AACA,yBAAyB,4BAA4B;;AAErD;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,2BAA2B,iBAAiB;AAC5C;AACA;AACA;AACA,oBAAoB,oCAAoC;AACxD,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,4CAA4C;AAC5C;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,4CAA4C;AAC5C;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,aAAa;AACb,kEAAkE,mCAAmC;AACrG,SAAS;AACT;AACA,CAAC;AACD;;AAEA,CAAC,EAAE,qYAAqY;AACxY;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,yBAAyB;AAC5C;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,+BAA+B,kBAAkB;AACjD;AACA;AACA;;AAEA,2BAA2B,sBAAsB;AACjD;AACA;;AAEA;AACA;AACA;AACA,mCAAmC,+BAA+B;AAClE;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,yPAAyP;AAC5P;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,oBAAoB;AACnC;AACA,qDAAqD,aAAa;AAClE;AACA;AACA;;AAEA;AACA,eAAe,2BAA2B;AAC1C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,mBAAmB;AAClC;AACA;AACA,mBAAmB,kBAAkB;AACrC;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,2BAA2B;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,gBAAgB;AAC/B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,mBAAmB,8CAA8C;AACjE;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE,0GAA0G;AAC7G;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,0CAA0C;;AAE1C;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,wDAAwD;;AAExD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,sOAAsO;AACzO;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,kGAAkG;AACrG;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,oCAAoC;;AAEpC;AACA,yCAAyC,4BAA4B;AACrE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,iCAAiC,+BAA+B;AAChE;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,kDAAkD,yBAAyB;AAC3E;AACA;AACA;AACA,iCAAiC,+BAA+B;AAChE,gDAAgD,yBAAyB;AACzE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,yBAAyB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,uBAAuB,cAAc;AACrC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uBAAuB,yBAAyB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC;;AAEvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,uBAAuB,cAAc;AACrC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mCAAmC;AACnC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,wHAAwH;AAC3H;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,mBAAmB,wBAAwB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mBAAmB,wBAAwB;AAC3C;AACA;AACA;AACA;AACA;AACA,uBAAuB,6BAA6B;AACpD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uBAAuB,iBAAiB;AACxC;AACA;;AAEA;AACA;AACA;AACA,2BAA2B,sBAAsB;AACjD;AACA;AACA;AACA;AACA;;AAEA;AACA,2BAA2B,sBAAsB;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uBAAuB,6BAA6B;AACpD;AACA;AACA,uBAAuB,6BAA6B;AACpD;AACA;AACA;;AAEA;AACA,uBAAuB,6BAA6B;AACpD;AACA;;AAEA,uBAAuB,6BAA6B;AACpD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;;AAET;AACA;AACA,kBAAkB;AAClB,+BAA+B;AAC/B;AACA,mBAAmB,yBAAyB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,4EAA4E;AAC/F;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,kCAAkC,8BAA8B;AAChE,mCAAmC,wBAAwB;AAC3D;;AAEA,2BAA2B;;AAE3B;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA,2BAA2B,iCAAiC;AAC5D;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,6BAA6B,yCAAyC;AACtE;AACA,6BAA6B,uBAAuB;AACpD;AACA;AACA;AACA,iCAAiC,iCAAiC;AAClE;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,0BAA0B;AAC7C;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA,0DAA0D;AAC1D;AACA;AACA,cAAc;AACd,mEAAmE;AACnE,4EAA4E;AAC5E;AACA;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,mBAAmB,0BAA0B;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,eAAe,kBAAkB;AACjC;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,cAAc;AAC9D,eAAe,kBAAkB;AACjC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,wBAAwB;AACxB;;AAEA;AACA;AACA,mBAAmB,kBAAkB;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,kBAAkB;AACrC;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA,iCAAiC,gCAAgC;AACjE;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,uCAAuC;AACzD,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,qCAAqC,gBAAgB;AACrD;AACA,WAAW;;AAEX;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;;AAEA;AACA,uCAAuC,qEAAqE;AAC5G;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,wCAAwC,4EAA4E;;AAEpH;AACA;AACA,6DAA6D;;AAE7D;AACA;AACA;AACA;AACA,wCAAwC,8BAA8B;;AAEtE;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,4CAA4C,wBAAwB;AACpE,sCAAsC,kDAAkD;AACxF,8CAA8C,uCAAuC;AACrF,oCAAoC,uBAAuB;AAC3D,4CAA4C,yBAAyB;;AAErE;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,4BAA4B,sBAAsB;AAClD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA,CAAC,EAAE,kUAAkU;AACrU;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA,mBAAmB,kBAAkB;AACrC;AACA,uCAAuC;;AAEvC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;;AAGA;AACA;AACA;AACA,mBAAmB,eAAe;;AAElC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,sCAAsC;;AAEtC,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL,wCAAwC;AACxC;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,2BAA2B,SAAS,kBAAkB;AACtD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,SAAS;AACT,4CAA4C,WAAW;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,SAAS;AACT;AACA,KAAK;AACL,mCAAmC,WAAW;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,SAAS;AACT;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE,0RAA0R;AAC7R;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA,eAAe,eAAe;AAC9B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,uCAAuC;AACvC;AACA;AACA;AACA;AACA,uCAAuC;AACvC;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;;AAEA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C;AAC1C,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,OAAO;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,yEAAyE;AACzE;;AAEA;AACA;AACA;;AAEA;AACA;AACA,oBAAoB;AACpB,oBAAoB;;AAEpB;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAM,6BAA6B;AACnC;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAM;AACN;;AAEA;AACA;;AAEA,4DAA4D;AAC5D;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB;AAClB;;AAEA;;AAEA;AACA,uBAAuB,eAAe;AACtC;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,0OAA0O;AAC7O;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA,CAAC,EAAE,kGAAkG;AACrG;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,mBAAmB,yBAAyB;AAC5C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,gBAAgB;AACnC;AACA;;AAEA,mBAAmB,oBAAoB;AACvC;;AAEA,2BAA2B,eAAe;AAC1C;AACA,sBAAsB,mDAAmD;AACzE;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,QAAQ;AACxC;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,yBAAyB;AAC3C;AACA;AACA;AACA;;AAEA;;AAEA;AACA,mBAAmB,gBAAgB;AACnC;AACA,uBAAuB,oBAAoB;AAC3C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,2BAA2B,oBAAoB;AAC/C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,oBAAoB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,eAAe;AAC1C;AACA;AACA;AACA;AACA;AACA,uBAAuB,eAAe;AACtC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,aAAa;AAChB;;;AAGA;AACA;AACA,mBAAmB,qBAAqB;AACxC;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA,+BAA+B,QAAQ;AACvC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,+EAA+E,eAAe;AAC9F;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wCAAwC;AACxC,4CAA4C;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA,0FAA0F,UAAU;AACpG,0FAA0F,wBAAwB;;AAElH;AACA;;AAEA,CAAC,EAAE,yRAAyR;AAC5R;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,yDAAyD;;AAEzD;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA,4BAA4B;AAC5B;AACA;AACA;AACA;;AAEA,CAAC,EAAE,6CAA6C;AAChD;;AAEA;;AAEA;AACA;;AAEA,kBAAkB;AAClB;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,iCAAiC;AACpC;;AAEA;AACA;;;AAGA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN,8CAA8C;AAC9C,iDAAiD,YAAY;;AAE7D;AACA;AACA,+CAA+C,YAAY;;AAE3D;AACA;AACA;AACA;AACA,cAAc;AACd,UAAU;AACV,kCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,8CAA8C;AACjD;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,aAAa;;AAEb;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,mBAAmB,qBAAqB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,uBAAuB;AAC9C;AACA,2BAA2B,gBAAgB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,mDAAmD;AACnD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;;AAEA;AACA;AACA,cAAc;;AAEd;AACA;AACA;AACA;;AAEA,CAAC,EAAE,oHAAoH;AACvH;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,qRAAqR;AACxR;;AAEA;AACA;AACA;;AAEA;AACA,2CAA2C;;AAE3C;;AAEA;AACA,+DAA+D,8BAA8B;AAC7F,MAAM;AACN;AACA;AACA;;AAEA;AACA,mBAAmB;AACnB;;AAEA,CAAC,EAAE,qGAAqG;AACxG;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;;AAElB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC;AAClC,wCAAwC;AACxC,cAAc;AACd;AACA;AACA,cAAc;AACd,UAAU;AACV;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,eAAe,SAAS;AACxB;AACA;;AAEA;AACA;AACA;;AAEA;AACA,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA,8CAA8C,KAAK;AACnD;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,qBAAqB,cAAc;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,kEAAkE;AACrE;;;AAGA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA,mBAAmB;;AAEnB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,sBAAsB;AACrC;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA,eAAe,4BAA4B;AAC3C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,sBAAsB,iCAAiC;AACvD,sBAAsB;;AAEtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,qBAAqB;AACxB;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC;AACvC;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,+DAA+D,gCAAgC;AAC/F;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA,mEAAmE,qCAAqC;AACxG;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,mIAAmI;AACtI;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uCAAuC;AACvC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gDAAgD;AACnD;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,6CAA6C,wBAAwB;;AAErE;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT,MAAM;AACN;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA,gCAAgC,kBAAkB;AAClD;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA,mBAAmB,qBAAqB;AACxC;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;;AAGA;AACA,sCAAsC,yBAAyB;AAC/D;;AAEA;AACA,sCAAsC,eAAe;AACrD;;AAEA;AACA,sCAAsC,gBAAgB;AACtD;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,8DAA8D;AAC9D;AACA;;AAEA;AACA,sDAAsD,WAAW;AACjE,iBAAiB;AACjB,aAAa;;AAEb;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,oCAAoC,eAAe;AACnD;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE,qKAAqK;AACxK;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,oCAAoC;AACpC,mBAAmB,eAAe;AAClC;AACA;AACA,MAAM;AACN,mBAAmB,eAAe;AAClC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,iBAAiB;AACpB;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,uBAAuB,0BAA0B;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,+CAA+C,iCAAiC;AAChF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,oEAAoE;AACvE;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,CAAC,EAAE,qCAAqC;AACxC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,uBAAuB;AACvB,KAAK;AACL,sCAAsC;;AAEtC,KAAK;AACL,4BAA4B;AAC5B,KAAK;AACL;;AAEA;AACA;AACA;;AAEA,uBAAuB;AACvB,SAAS,sBAAsB;AAC/B;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,2BAA2B,4BAA4B,QAAQ;AAC/D;AACA;AACA;AACA,8BAA8B;AAC9B;AACA,SAAS;AACT;;AAEA;AACA,gCAAgC,iCAAiC,eAAe;AAChF,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;;AAEA,+BAA+B,8BAA8B,mBAAmB;AAChF;AACA;AACA;AACA,6BAA6B,iCAAiC,eAAe;AAC7E,KAAK;;AAEL;;AAEA,4BAA4B;AAC5B,CAAC;;AAED;;AAEA,CAAC,EAAE,4VAA4V;AAC/V;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,wCAAwC;;AAEvD;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,qEAAqE;AACxE;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA,mBAAmB,iBAAiB;AACpC;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,mBAAmB,kBAAkB;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA,mBAAmB,OAAO;AAC1B;;AAEA,uBAAuB,OAAO;AAC9B;AACA,+BAA+B,OAAO;AACtC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA,CAAC,EAAE,qBAAqB;AACxB;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,mBAAmB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,kBAAkB;AACjC;AACA,uBAAuB,cAAc;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,OAAO;AAC1B;;AAEA;AACA;;AAEA,mCAAmC;AACnC;AACA;AACA;;AAEA,YAAY;AACZ;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,uBAAuB,eAAe;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,uBAAuB,SAAS;AAChC;AACA;AACA;AACA,MAAM;;AAEN;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,SAAS;AACxB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,mBAAmB,SAAS;AAC5B;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,0BAA0B;AACpD,yBAAyB;;AAEzB;;AAEA,mBAAmB,OAAO;AAC1B,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,sDAAsD;AACtD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iDAAiD;AACjD;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,CAAC,EAAE,gTAAgT;AACnT;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,+EAA+E,eAAe;AAC9F;;AAEA;AACA;AACA,+DAA+D,eAAe;AAC9E;;AAEA,wCAAwC;AACxC,4CAA4C;AAC5C;;AAEA;AACA,mBAAmB,OAAO;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,0FAA0F,UAAU;AACpG,0FAA0F,wBAAwB;AAClH,0FAA0F,wBAAwB;AAClH;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,iLAAiL;AACpL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,2HAA2H;AAC9H;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL,uBAAuB,sBAAsB,gBAAgB;AAC7D,uBAAuB;AACvB,KAAK;AACL,qCAAqC,iBAAiB;AACtD;AACA,KAAK;AACL,4BAA4B;AAC5B,KAAK;AACL;AACA;AACA;AACA;AACA,4BAA4B;AAC5B,aAAa,6BAA6B;AAC1C;AACA;AACA,KAAK;AACL;AACA,uBAAuB;AACvB;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,4BAA4B;AAC5B;AACA,KAAK;AACL;AACA;AACA;;AAEA,CAAC,EAAE,mKAAmK;AACtK;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,eAAe;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,UAAU,cAAc;AACxB;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,gLAAgL;AACnL;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,+EAA+E,eAAe;AAC9F;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,gQAAgQ;AACnQ;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,uCAAuC;AAC1C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,iOAAiO;AACpO;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,eAAe,iBAAiB;AAChC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,sFAAsF;AACzF;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;;AAEL,uBAAuB,sBAAsB,gBAAgB;;AAE7D,uBAAuB;AACvB,KAAK;AACL,qCAAqC,iBAAiB;AACtD;AACA,KAAK;AACL,4BAA4B;AAC5B,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA,4BAA4B;AAC5B;AACA,KAAK;AACL;AACA,CAAC;;AAED,CAAC,EAAE,6OAA6O;AAChP;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,mCAAmC;AACnC,MAAM;AACN;AACA;;AAEA,mBAAmB,SAAS;AAC5B;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,0KAA0K;AAC7K;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,+EAA+E,eAAe;AAC9F;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,gMAAgM;AACnM;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,iCAAiC;AACpC;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,6BAA6B;AAC7B;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,2BAA2B;;AAE3B;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,8HAA8H;AACjI;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gOAAgO;AACnO;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,wBAAwB,gCAAgC;AACxD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yCAAyC,6BAA6B;AACtE;;AAEA;AACA;AACA;AACA;AACA;AACA,yCAAyC,6BAA6B;AACtE;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,SAAS;AAC5B;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,gBAAgB;AAChB;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,oQAAoQ;AACvQ;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA,mBAAmB,eAAe;AAClC;AACA;AACA,MAAM;AACN,mBAAmB,eAAe;AAClC;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,0DAA0D;AAC7D;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;;AAEA,CAAC,EAAE,mGAAmG;AACtG;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B;AACA,SAAS;AACT,KAAK;AACL;AACA,uBAAuB,sBAAsB,aAAa;AAC1D;;AAEA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;;AAEL;;AAEA,CAAC;;AAED;AACA;AACA;;AAEA,CAAC,EAAE,mQAAmQ;AACtQ;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,SAAS;AACxB;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,UAAU;AAC7B;AACA;AACA;AACA;AACA,mBAAmB,UAAU;AAC7B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,aAAa,2CAA2C;AACxD;;AAEA;AACA;AACA,+CAA+C,aAAa;AAC5D;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,qBAAqB;AAClC;AACA;AACA;AACA;AACA,aAAa,qBAAqB;AAClC;AACA;AACA;AACA;AACA,aAAa,qBAAqB;AAClC;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,6SAA6S;AAChT;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,eAAe;AACtC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,mBAAmB;AACtC;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,0BAA0B,0BAA0B;AACpD,yBAAyB;;AAEzB,mBAAmB,OAAO;AAC1B,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,qCAAqC,WAAW;AAChD;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAe,oBAAoB;AACnC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,WAAW;AAC9B;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,WAAW;AAC9B;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA,wBAAwB;AACxB;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,WAAW;AAClC;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,WAAW;AAClC;AACA;AACA;;AAEA;AACA;;AAEA,mBAAmB,WAAW;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,WAAW;AAC9B;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,uBAAuB,WAAW;AAClC;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,uBAAuB,WAAW;AAClC;AACA;AACA;;AAEA;AACA;AACA,uBAAuB,WAAW;AAClC;AACA;AACA,UAAU;AACV;AACA,uBAAuB,WAAW;AAClC;AACA;AACA;;AAEA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,sDAAsD;AACtD,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,eAAe;AACtC;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,uBAAuB,eAAe;AACtC;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,uBAAuB,eAAe;AACtC;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,uBAAuB,eAAe;AACtC;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,0BAA0B;AACzC;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,0BAA0B;AAC7C;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,2BAA2B,WAAW;AACtC,2BAA2B,iCAAiC;AAC5D;AACA;AACA;;AAEA,kCAAkC,WAAW;AAC7C;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,WAAW;AAC9B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,8WAA8W;AACjX;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,wCAAwC;AACxC,4CAA4C;;AAE5C;AACA;AACA;AACA;;AAEA;AACA,0FAA0F,UAAU;AACpG,0FAA0F,wBAAwB;;AAElH;AACA;;AAEA,CAAC,EAAE,8TAA8T;AACjU;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC;AAChC;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,gBAAgB;AACnC;AACA;AACA;AACA,mBAAmB,kBAAkB;AACrC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,gFAAgF;AACnF;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,+BAA+B;AAClC;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,kBAAkB;AACrB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,gBAAgB;AACnC;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN,gCAAgC,QAAQ;AACxC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,sCAAsC;AACtC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,sEAAsE;AACzE;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,oNAAoN;AACvN;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,WAAW;AAClC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,2BAA2B,gBAAgB;AAC3C;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,sDAAsD,iBAAiB;AACvE;;AAEA,uBAAuB,WAAW;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;;AAEA;;AAEA,+BAA+B,mBAAmB;AAClD;AACA;AACA;AACA,kDAAkD;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,wEAAwE,IAAI;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,+BAA+B,wBAAwB;AACvD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,aAAa;;AAEb;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,2BAA2B,mBAAmB;AAC9C;AACA;AACA;AACA,2BAA2B,SAAS;AACpC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,SAAS;AAChC;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,WAAW;AAClC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uDAAuD;AACvD;AACA;AACA;AACA,aAAa;AACb;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,wBAAwB;AACtE;AACA;;AAEA,CAAC,EAAE,0OAA0O;AAC7O;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,iBAAiB;AAChD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,2BAA2B,WAAW;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,SAAS;AAChC;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,6CAA6C;AAChD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,uBAAuB;AACvB;AACA,KAAK;;AAEL,uBAAuB;AACvB,KAAK;AACL,qCAAqC,iBAAiB;AACtD;AACA,KAAK;AACL,4BAA4B;AAC5B,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL,4BAA4B;AAC5B;AACA,KAAK;AACL;AACA,CAAC;;AAED,CAAC,EAAE,6QAA6Q;AAChR;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA,4BAA4B,OAAO;AACnC,4BAA4B,KAAK;AACjC,SAAS;;AAET;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,2CAA2C,OAAO;AAClD;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iBAAiB;AACjB;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa;AACb;;AAEA;AACA,8CAA8C;AAC9C;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB,oBAAoB;AACtC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,kCAAkC;;AAElC,8BAA8B;;AAE9B;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,sBAAsB;AACrC;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uBAAuB,mCAAmC;AAC1D;AACA,SAAS;AACT;;AAEA;AACA;AACA;;AAEA,mBAAmB,qBAAqB;AACxC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,kBAAkB,8CAA8C;AAChE;AACA,aAAa,mCAAmC;AAChD;AACA;AACA,aAAa,mCAAmC;AAChD;AACA;AACA,aAAa,kCAAkC;AAC/C;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;;AAEA,mBAAmB,sBAAsB;AACzC;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,iCAAiC;AACjC;AACA,6BAA6B;AAC7B,MAAM;AACN,4BAA4B;AAC5B,MAAM;AACN;AACA;AACA;;AAEA,2BAA2B;;AAE3B;AACA;AACA;AACA;;AAEA,CAAC,EAAE,iVAAiV;AACpV;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,6EAA6E,aAAa;AAC1F;AACA;;AAEA;AACA,+EAA+E,aAAa;;AAE5F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,+DAA+D,eAAe;AAC9E;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,gMAAgM;AACnM;;;AAGA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,iCAAiC;AACpC;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,iCAAiC;AACjC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,2GAA2G;AAC9G;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,0MAA0M;AAC7M;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,kCAAkC,QAAQ;AAC1C;AACA;AACA;AACA,mBAAmB,kBAAkB;AACrC;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,kBAAkB;AACjC;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,kCAAkC,QAAQ;AAC1C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,kBAAkB;AACrC;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,mDAAmD;AACtD;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,mBAAmB,eAAe;AAClC;AACA;AACA,MAAM;AACN,mBAAmB,eAAe;AAClC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,0EAA0E;AAC7E;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,qCAAqC,iBAAiB;AACtD;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,4BAA4B;AAC5B;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;;AAEA;AACA,6BAA6B,4BAA4B,YAAY;;AAErE;AACA;;AAEA,uBAAuB;AACvB;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA,4BAA4B;AAC5B;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,sHAAsH;AACzH;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,SAAS;AAC5B;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA,+DAA+D,WAAW;;AAE1E;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,iNAAiN;AACpN;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,+EAA+E,eAAe;AAC9F;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gQAAgQ;AACnQ;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,iDAAiD;AACpD;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,iCAAiC;AACjC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,uBAAuB;AAC1B;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,+MAA+M;AAClN;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,mBAAmB,2BAA2B;AAC9C;;AAEA,uBAAuB,gBAAgB;AACvC;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,sDAAsD;AACzD;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,qCAAqC,iBAAiB;AACtD;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,qGAAqG;AACxG;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,+DAA+D,WAAW;;AAE1E,aAAa,2CAA2C;AACxD;;AAEA,CAAC,EAAE,gJAAgJ;AACnJ;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,4PAA4P;AAC/P;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,qCAAqC;AACxC;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,sDAAsD;AACzD;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,2LAA2L;AAC9L;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,mBAAmB,mBAAmB;AACtC,oCAAoC,mCAAmC;AACvE;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,SAAS;AAC5B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,iBAAiB,qBAAqB;AACtC;AACA;AACA;AACA;AACA,iBAAiB,qBAAqB;AACtC;AACA;AACA;AACA;AACA,iBAAiB,qBAAqB;AACtC;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA,CAAC,EAAE,gLAAgL;AACnL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA,qCAAqC,iBAAiB;AACtD;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,4BAA4B;AAC5B;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;;AAEA;AACA,6BAA6B,4BAA4B,YAAY;;AAErE;AACA;;AAEA,uBAAuB;AACvB;AACA;AACA,KAAK;AACL;;AAEA,4BAA4B;AAC5B;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,sHAAsH;AACzH;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,SAAS;AAC5B;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,gLAAgL;AACnL;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,+EAA+E,eAAe;AAC9F;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,iQAAiQ;AACpQ;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,iCAAiC;AACpC;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,iCAAiC;AACjC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,uBAAuB;AAC1B;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,gNAAgN;AACnN;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,2BAA2B;AAC9C;;AAEA,uBAAuB,gBAAgB;AACvC;AACA;;AAEA;AACA;AACA,cAAc;AACd;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,sFAAsF;AACzF;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,uBAAuB,sBAAsB,gBAAgB;AAC7D,uBAAuB;AACvB,KAAK;AACL,qCAAqC,iBAAiB;AACtD;AACA,KAAK;AACL,4BAA4B;AAC5B,KAAK;AACL;AACA;AACA;AACA;AACA,4BAA4B;AAC5B,aAAa,6BAA6B;AAC1C;AACA;AACA,KAAK;AACL;AACA;AACA,uBAAuB;AACvB;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,4BAA4B;AAC5B;AACA,KAAK;AACL;AACA;AACA;;AAEA,CAAC,EAAE,6MAA6M;AAChN;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,oBAAoB;;AAEpB;AACA;AACA;AACA;AACA,kBAAkB;;AAElB;;AAEA;AACA,eAAe,uBAAuB;AACtC;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,eAAe;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,UAAU,cAAc;AACxB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,gJAAgJ;AACnJ;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,+EAA+E,eAAe;AAC9F;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,iQAAiQ;AACpQ;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,iCAAiC;AACpC;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,iCAAiC;AACjC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,uBAAuB;AAC1B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,sOAAsO;AACzO;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,CAAC,EAAE,sBAAsB;AACzB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,iEAAiE,yBAAyB;AAC1F,wBAAwB,iCAAiC,iBAAiB;AAC1E;AACA,CAAC;;AAED;AACA;AACA,uBAAuB,4BAA4B,uBAAuB;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA,SAAS;;AAET;AACA;AACA;;AAEA;;AAEA;AACA,KAAK;;AAEL,eAAe;;AAEf,uBAAuB;AACvB,KAAK;AACL,4BAA4B;AAC5B,KAAK;;AAEL;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA,CAAC,EAAE,gSAAgS;AACnS;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,uBAAuB;AACvB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,eAAe;AAClC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,wBAAwB;AAC3C;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,6BAA6B,eAAe,GAAG,eAAe;AAC9D,MAAM;AACN,6BAA6B,eAAe;AAC5C;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mBAAmB,wBAAwB;AAC3C;AACA;AACA;AACA;AACA;AACA,mBAAmB,wBAAwB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mDAAmD;AACnD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,iMAAiM;AACpM;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET,uBAAuB,iBAAiB;AACxC;AACA;AACA;AACA;AACA;;AAEA,eAAe,uBAAuB;AACtC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA,eAAe,wBAAwB;AACvC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,aAAa,yBAAyB,eAAe;AACrD;;AAEA,CAAC,EAAE,0NAA0N;AAC7N;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,eAAe,eAAe;AAC9B;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,eAAe;AAC9B;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,kBAAkB;AACjC,mBAAmB,kBAAkB;AACrC;;AAEA;AACA;AACA,cAAc;AACd;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,qMAAqM;AACxM;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,oCAAoC;;AAEpC;AACA;AACA;AACA;;AAEA,CAAC,EAAE,4EAA4E;AAC/E;;AAEA;AACA;AACA;AACA,eAAe,WAAW;AAC1B;;AAEA,mBAAmB,wBAAwB;AAC3C;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,mBAAmB,cAAc;AACjC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,0CAA0C;AAC7C;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,0NAA0N;AAC7N;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,mBAAmB,0BAA0B;AAC7C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,eAAe,wBAAwB;AACvC;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAuB,mBAAmB;AAC1C;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,wBAAwB;AAC3C;;AAEA;AACA;AACA;AACA,2BAA2B,kBAAkB;AAC7C;AACA;AACA;;AAEA;AACA;AACA;AACA,2BAA2B,kBAAkB;AAC7C;AACA;AACA;AACA;;AAEA;AACA,6CAA6C;AAC7C,2CAA2C;AAC3C;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA,oCAAoC;AACpC;AACA;AACA;;AAEA,CAAC,EAAE,iHAAiH;AACpH;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,oDAAoD;;AAEpD;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,cAAc;AACrC;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,cAAc;AACd;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA,6BAA6B;AAC7B;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,2DAA2D;AAC9D;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;;AAER;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL,uCAAuC,iBAAiB;AACxD;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA,6BAA6B,yBAAyB,YAAY;AAClE;;AAEA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,CAAC;;AAED,+BAA+B;AAC/B;AACA;AACA;AACA,CAAC;;AAED;;AAEA;;AAEA,CAAC,EAAE,qNAAqN;AACxN;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,gBAAgB;AAC/B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL,eAAe,UAAU;AACzB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,SAAS;AACxB;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,iCAAiC;AACjC,gCAAgC;AAChC,+BAA+B;;AAE/B;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,eAAe,YAAY;AAC3B,mBAAmB,YAAY;AAC/B,uBAAuB,YAAY;AACnC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,uDAAuD;AAC1D;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,2BAA2B;;AAE3B;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gDAAgD,2BAA2B;AAC3E;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB,eAAe;AACtC,2BAA2B,eAAe;AAC1C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA,CAAC,EAAE,8IAA8I;AACjJ;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,2DAA2D,yBAAyB;;AAEpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,+EAA+E;AAClF;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA,CAAC,EAAE,4FAA4F;AAC/F;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA,YAAY;;AAEZ;AACA,gCAAgC;AAChC;AACA,aAAa;AACb,gCAAgC,+BAA+B,QAAQ;AACvE;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,qCAAqC,iBAAiB;AACtD;AACA,KAAK;;AAEL;AACA,4BAA4B;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,wCAAwC;AACxC;AACA,KAAK;;AAEL;AACA;AACA;AACA,kCAAkC;AAClC,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;;AAEL,yBAAyB,gDAAgD;AACzE;;AAEA,CAAC,EAAE,2MAA2M;AAC9M;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,wBAAwB;AAC3B;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,gCAAgC;AAChC,8BAA8B;AAC9B,MAAM;AACN;AACA,gCAAgC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;;AAEA;;AAEA,mBAAmB,SAAS;AAC5B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;;AAEA;AACA;;AAEA,uBAAuB,eAAe;AACtC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA,8BAA8B,cAAc;AAC5C,oCAAoC,eAAe;AACnD,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,4CAA4C,kBAAkB;AAC9D;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,yBAAyB;;AAEzB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,iBAAiB;AACjB;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,SAAS;AACT;;AAEA;;AAEA;AACA;AACA,wCAAwC,2BAA2B;AACnE;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA,MAAM;AACN;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,qBAAqB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,uBAAuB,SAAS;AAChC;AACA;;AAEA,oCAAoC;AACpC,MAAM;AACN,kCAAkC;AAClC;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,4IAA4I;AAC/I;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA,+DAA+D,gCAAgC;AAC/F;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,qHAAqH;AACxH;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,2CAA2C;;AAE3C;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qDAAqD;AACrD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA,oBAAoB,iBAAiB;AACrC;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,mBAAmB,iBAAiB;AACpC;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,CAAC,EAAE,8KAA8K;AACjL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,uBAAuB,qBAAqB;AAC5C;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,+BAA+B;;AAE/B;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,+BAA+B;AAC/B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,yCAAyC;AACzC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,sCAAsC;AACtC,qEAAqE;AACrE;AACA;;AAEA,CAAC,EAAE,4FAA4F;AAC/F;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,yLAAyL;AAC5L;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,2CAA2C;AAC9C;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,uCAAuC,yBAAyB;;AAEhE;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,sCAAsC,6BAA6B;AACnE,4CAA4C,6BAA6B;;AAEzE;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT,MAAM;AACN;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,gDAAgD,yBAAyB;;AAEzE;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA,8BAA8B;AAC9B;AACA,iCAAiC;AACjC;AACA,kCAAkC;AAClC;;AAEA,mCAAmC;AACnC,mCAAmC;;AAEnC;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,yCAAyC;AACzC,iBAAiB;;AAEjB;AACA;AACA,aAAa;AACb;AACA,MAAM;AACN;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qCAAqC;AACrC,aAAa;AACb,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,aAAa;;AAEb;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,qCAAqC;AACrC,aAAa;AACb,UAAU;AACV;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,wCAAwC;AACzD,iBAAiB;AACjB,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,oBAAoB;;AAEpB;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC;AAChC,sBAAsB;AACtB;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA,kBAAkB;AAClB;AACA,4BAA4B;AAC5B;AACA,cAAc;AACd;AACA,wBAAwB;AACxB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC;;AAEtC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uCAAuC;AACvC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,wFAAwF;AACxF;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,yRAAyR;AAC5R;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,SAAS;AACT,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,uFAAuF;AAC1F;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,2BAA2B,sBAAsB;AACjD,SAAS;AACT;AACA;AACA;AACA;AACA,2BAA2B,sBAAsB;AACjD,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,2BAA2B,sBAAsB;AACjD,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;AACL,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA,4BAA4B;AAC5B,SAAS;AACT,2BAA2B;AAC3B,SAAS;AACT,2BAA2B;AAC3B,SAAS;AACT,KAAK;;AAEL,4BAA4B;AAC5B,6BAA6B,yBAAyB,YAAY;AAClE,CAAC;;AAED;AACA;;AAEA,CAAC,EAAE,uPAAuP;AAC1P;;AAEA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,MAAM;AACN;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA,CAAC,EAAE,uCAAuC;AAC1C;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,wBAAwB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,wBAAwB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,mBAAmB,wBAAwB;AAC3C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,cAAc;AACjC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,UAAU;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA,eAAe,UAAU;AACzB;AACA;;AAEA,eAAe,UAAU;AACzB;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,eAAe,UAAU;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA,eAAe,UAAU;AACzB;AACA;;AAEA,eAAe,UAAU;AACzB;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,qCAAqC;AACrC,qCAAqC;AACrC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,mBAAmB,QAAQ;AAC3B,uBAAuB,QAAQ;AAC/B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,mBAAmB;AACtC;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,gBAAgB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA,eAAe,OAAO;AACtB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,8CAA8C,wBAAwB;AACtE;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,OAAO;AAC1B;AACA;AACA;AACA;AACA,8BAA8B,mBAAmB;AACjD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,OAAO;AACtB;AACA,mBAAmB,UAAU;AAC7B;AACA;AACA,uBAAuB,UAAU;AACjC;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,UAAU;AACzB,mBAAmB,UAAU;AAC7B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mBAAmB,UAAU;AAC7B;AACA,uBAAuB,UAAU;AACjC;AACA;AACA;AACA;;AAEA;AACA;;AAEA,eAAe,OAAO;AACtB,mBAAmB,UAAU;AAC7B,uBAAuB,UAAU;AACjC;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;;AAEA,eAAe,OAAO;AACtB,mBAAmB,UAAU;AAC7B,uBAAuB,UAAU;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,OAAO;AACtB;AACA;;AAEA,eAAe,OAAO;AACtB,mBAAmB,UAAU;AAC7B,uBAAuB,UAAU;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,mBAAmB,UAAU;AAC7B,uBAAuB,UAAU;AACjC;AACA;AACA;AACA;AACA,oBAAoB;;AAEpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,UAAU;AAC7B,uBAAuB,UAAU;AACjC;AACA;AACA;;AAEA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,eAAe,OAAO;AACtB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,kCAAkC,QAAQ;AAC1C;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,CAAC,EAAE,uMAAuM;AAC1M;;AAEA;AACA;;AAEA;AACA;;AAEA,eAAe;;AAEf;AACA;AACA,oBAAoB;AACpB,mBAAmB,WAAW;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;;AAEA,mBAAmB,gBAAgB;AACnC;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,YAAY;;AAExC;;AAEA;AACA,eAAe,OAAO;AACtB;AACA;AACA;;AAEA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,4CAA4C;AAC5C;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,oGAAoG;AACvG;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,4FAA4F;AAC/F;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,yBAAyB,2BAA2B;;AAEpD;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA,SAAS;;AAET,4BAA4B,mBAAmB,cAAc;;AAE7D;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET,2BAA2B,aAAa,cAAc;AACtD,KAAK;;AAEL;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA,SAAS;;AAET,4BAA4B,mBAAmB,cAAc;;AAE7D;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET,2BAA2B,aAAa,cAAc;AACtD;AACA,CAAC;AACD;;AAEA,CAAC,EAAE,mNAAmN;AACtN;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,yCAAyC;AAC5C;;AAEA;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;;AAEA,CAAC,EAAE,oBAAoB;AACvB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,yCAAyC,6BAA6B;AACtE;AACA,0EAA0E,4BAA4B;AACtG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iGAAiG,UAAU;AAC3G;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA,kDAAkD,4CAA4C;;AAE9F;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,gBAAgB,oBAAoB;AAChE,kCAAkC,iBAAiB,qBAAqB;AACxE,iDAAiD,aAAa;AAC9D,8DAA8D,aAAa;AAC3E;AACA,yBAAyB,iCAAiC;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,uBAAuB;AAC9C;AACA;AACA;AACA;AACA;AACA;;AAEA,qBAAqB;;AAErB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,mBAAmB;AAClC;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,mBAAmB;AACtC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,4CAA4C,oBAAoB,wBAAwB,2BAA2B,GAAG;AACtH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,+DAA+D;AAClE;;AAEA;;AAEA;;AAEA;AACA;AACA,mCAAmC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,eAAe,8BAA8B;AAC5E,KAAK;AACL,sCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,sCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6FAA6F;AAC7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,uBAAuB;AAC1B;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,wDAAwD,cAAc;AACtE,gDAAgD,0BAA0B;AAC1E,mCAAmC,kBAAkB;AACrD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA2D;;AAE3D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAA0D;;AAE1D;AACA;AACA;;AAEA,CAAC,EAAE,6DAA6D;AAChE;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,qFAAqF;AACxF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oCAAoC,sCAAsC;AAC1E,qCAAqC,uCAAuC;AAC5E;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,iBAAiB;AAC3D;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA,wCAAwC,yCAAyC;;AAEjF;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,oCAAoC,gBAAgB;AACpD,qCAAqC,iBAAiB;;AAEtD;AACA;AACA,KAAK;;AAEL;AACA,4BAA4B,mBAAmB;;AAE/C;AACA;AACA;;AAEA;;AAEA,2CAA2C,6BAA6B;;AAExE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yEAAyE,kCAAkC;AAC3G;AACA,aAAa;AACb;AACA;AACA,2CAA2C;AAC3C;;AAEA,6EAA6E,2CAA2C;AACxH,oEAAoE,8BAA8B;AAClG;AACA;AACA;AACA,iBAAiB;;AAEjB,6CAA6C,iBAAiB;AAC9D;AACA;AACA;AACA,oDAAoD,6BAA6B;AACjF;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D,kBAAkB;AACjF,aAAa;AACb;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA,iCAAiC,cAAc;;AAE/C;AACA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,iCAAiC,uCAAuC;;AAExE;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oCAAoC,iCAAiC;AACrE,qCAAqC,4BAA4B;;AAEjE;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,iCAAiC,qCAAqC;;AAEtE;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,qCAAqC,+CAA+C;AACpF,qCAAqC,6DAA6D;AAClG,iCAAiC,4BAA4B;AAC7D,iCAAiC,4BAA4B;;AAE7D;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,0DAA0D,UAAU;AACpE,0BAA0B,mBAAmB;AAC7C;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,mDAAmD,yBAAyB;;AAE5E;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,uCAAuC,yBAAyB;;AAEhE;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,uCAAuC,yBAAyB;;AAEhE;AACA;AACA;AACA,qCAAqC,eAAe;AACpD,qCAAqC,4BAA4B;;AAEjE;AACA;;AAEA;AACA;AACA,uCAAuC,yBAAyB;;AAEhE;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA,oCAAoC,6BAA6B;AACjE,2CAA2C,0BAA0B;AACrE;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,yGAAyG,+CAA+C;AACxJ,qEAAqE,QAAQ,uBAAuB;AACpG,kCAAkC,oCAAoC;AACtE;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,oDAAoD,8CAA8C;AAClG;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB,qBAAqB;AACrB;AACA,SAAS;AACT;;AAEA;AACA;AACA;;AAEA,iCAAiC;;AAEjC;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wBAAwB;AACxB,yBAAyB;;AAEzB;AACA;AACA;;AAEA;AACA;AACA,+CAA+C,oCAAoC;AACnF;;AAEA;AACA;AACA;;AAEA,4BAA4B,4BAA4B;AACxD;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,kDAAkD;AAClD;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,wEAAwE,yBAAyB;AACjG;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAqE,yDAAyD;AAC9H;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qFAAqF,oCAAoC;AACzH;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,qCAAqC,6CAA6C;AAClF;;AAEA;AACA;AACA,0BAA0B,QAAQ;AAClC;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,6DAA6D;AAChF;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mBAAmB,0BAA0B;AAC7C;AACA;AACA;;AAEA;AACA;;AAEA,sBAAsB;AACtB,uBAAuB;;AAEvB,CAAC,EAAE,+NAA+N;AAClO;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA,SAAS;;AAET;;AAEA;AACA;AACA;AACA;AACA,SAAS;;AAET;;AAEA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,SAAS;;AAET,+BAA+B;AAC/B,SAAS;;AAET;AACA,KAAK;;AAEL;AACA;AACA;AACA,qCAAqC,iBAAiB;AACtD;AACA,KAAK;;AAEL;AACA;AACA,wCAAwC;AACxC;AACA,KAAK;;AAEL;AACA;AACA,kCAAkC;AAClC,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA,yBAAyB,+CAA+C;AACxE;;AAEA,CAAC,EAAE,4MAA4M;AAC/M;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,wBAAwB;AAC3B;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,wBAAwB;AAC3B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA,+DAA+D,gCAAgC;AAC/F,MAAM;AACN;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,yKAAyK;AAC5K;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,uCAAuC,yBAAyB;;AAEhE;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,sCAAsC,6BAA6B;AACnE,4CAA4C,6BAA6B;;AAEzE;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT,MAAM;AACN;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,0GAA0G;AAC7G;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,sBAAsB;;AAEtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,KAAK;;AAEL;;AAEA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA,qCAAqC;AACrC,aAAa;AACb,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,SAAS;;AAET;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA,qCAAqC;AACrC,aAAa;AACb,UAAU;AACV;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE,oMAAoM;AACvM;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB;;AAEvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA,qCAAqC;AACrC,aAAa;AACb,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,gDAAgD,oCAAoC;;AAEpF;AACA;AACA,SAAS;;AAET;AACA;AACA,UAAU;AACV;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA,qCAAqC;AACrC,aAAa;AACb,UAAU;AACV;AACA;AACA,KAAK;;AAEL;AACA;;AAEA,CAAC,EAAE,4NAA4N;AAC/N;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uBAAuB,qBAAqB;AAC5C;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,yLAAyL;AAC5L;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,2CAA2C;AAC9C;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,sCAAsC;AACzC;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE,wCAAwC;AAC3C;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,yCAAyC;AACzC,0CAA0C;AAC1C,2CAA2C;AAC3C,wCAAwC;;AAExC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;;AAEA,sCAAsC;AACtC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,iCAAiC;AACjC,iCAAiC;;AAEjC;AACA;;AAEA,iCAAiC;AACjC,iCAAiC;;AAEjC;AACA;AACA;;AAEA;AACA,gCAAgC;;AAEhC;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA,kBAAkB;AAClB,kBAAkB;AAClB,kBAAkB;AAClB,kBAAkB;;AAElB;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,wBAAwB;;AAExB;AACA;AACA;AACA;;AAEA,qCAAqC;;AAErC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,oCAAoC;;AAEpC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,6CAA6C;AAC7C;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB,gDAAgD;AAChD;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,aAAa;AACb,SAAS;;AAET;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,6CAA6C;AAC7C,qBAAqB;;AAErB;AACA;AACA,iBAAiB;AACjB;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT,MAAM;AACN;AACA;AACA;;AAEA,CAAC,EAAE,8LAA8L;AACjM;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT,KAAK;AACL;;AAEA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA,0BAA0B;AAC1B;AACA;AACA,sBAAsB,OAAO;AAC7B;AACA;AACA;;AAEA;AACA,uCAAuC,OAAO;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,kHAAkH;AACrH;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,uBAAuB;AACvB,KAAK;AACL,8BAA8B;AAC9B,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,aAAa,iCAAiC;AAC9C,aAAa;AACb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;;AAEA,yBAAyB;AACzB,KAAK;AACL,yBAAyB;AACzB,KAAK;AACL,2BAA2B;AAC3B,KAAK;;AAEL,wBAAwB;AACxB,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,SAAS;AACT;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,kGAAkG;AACrG;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,eAAe;AAClC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,4BAA4B,iBAAiB;AAC7C;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,wCAAwC,0BAA0B;AAClE;AACA,kCAAkC;AAClC;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mEAAmE,aAAa;AAChF;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,oHAAoH;AACvH;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mBAAmB,yBAAyB;AAC5C;AACA;AACA;;AAEA,uBAAuB,qBAAqB;AAC5C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,8BAA8B;AACjC;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,8DAA8D;AAC9D;AACA;;AAEA,iEAAiE,WAAW;;AAE5E;AACA;AACA;AACA;AACA;AACA,oCAAoC;;AAEpC;AACA;AACA;AACA,8CAA8C;AAC9C;;AAEA,CAAC,EAAE,uFAAuF;AAC1F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,SAAS;AAChC;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,mCAAmC;;AAEnC,CAAC,EAAE,gBAAgB;AACnB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,oDAAoD;AACpD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA,mCAAmC;AACnC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,qFAAqF;AACxF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,2QAA2Q;AAC9Q;;AAEA;AACA;;AAEA;AACA,6BAA6B;AAC7B,KAAK;AACL,4BAA4B;AAC5B,KAAK;AACL,iCAAiC;AACjC,KAAK;AACL;;AAEA,CAAC,EAAE,+CAA+C;AAClD;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,wEAAwE;AAC3E;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,2BAA2B,SAAS;AACpC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,wCAAwC,SAAS;AACjD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA,+CAA+C;AAC/C;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA,2CAA2C,YAAY;AACvD,UAAU;AACV;AACA,2CAA2C,YAAY;AACvD;;AAEA;AACA,+CAA+C,2BAA2B;AAC1E;AACA;AACA;AACA,SAAS;;AAET;AACA,wCAAwC,2BAA2B;AACnE;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET,uCAAuC,aAAa;AACpD,KAAK;AACL;;AAEA,CAAC,EAAE,+HAA+H;AAClI;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,qCAAqC,4BAA4B;;AAEjE;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE,oEAAoE;AACvE;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,4BAA4B;AAC5B,6BAA6B,yBAAyB,YAAY;AAClE,CAAC;;AAED;AACA;;AAEA,CAAC,EAAE,6LAA6L;AAChM;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,2BAA2B,OAAO;AAClC;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,CAAC,EAAE,uLAAuL;AAC1L;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,CAAC,EAAE,4FAA4F;AAC/F;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,uGAAuG;AAC1G;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA,aAAa;AACb;AACA,oCAAoC;AACpC;AACA;AACA,iBAAiB;AACjB,oCAAoC;AACpC;AACA;AACA,iBAAiB;AACjB;AACA,aAAa;AACb;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,wCAAwC;AACxC;AACA,KAAK;;AAEL,4BAA4B;AAC5B;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,qCAAqC,iBAAiB;AACtD;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,gCAAgC,oBAAoB,wBAAwB;AAC5E,gCAAgC;AAChC;AACA,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;;AAEL;AACA;AACA;;AAEA,CAAC,EAAE,iPAAiP;AACpP;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,eAAe;AAClC;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,uCAAuC;AACvC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,0JAA0J;AAC7J;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,qBAAqB;AACpC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,eAAe,uBAAuB;AACtC;;AAEA,uBAAuB,eAAe;AACtC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,8BAA8B;AACjC;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;;AAGL;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,uBAAuB,qBAAqB;AAC5C;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,oLAAoL;AACvL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,uCAAuC;;AAEvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gHAAgH;AACnH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,kPAAkP;AACrP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,qBAAqB;AACxC;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,2CAA2C;AAC9C;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,2IAA2I;AAC9I;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,qCAAqC,4BAA4B;;AAEjE;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,4JAA4J;AAC/J;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;;AAEA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ;AACnB;AACA;AACA,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,2BAA2B;;AAE1C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,eAAe,2BAA2B;AAC1C,0BAA0B;AAC1B;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU,2BAA2B;AACrC;;AAEA;AACA,eAAe,2BAA2B;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;;;AAGA;AACA;;AAEA;;AAEA,gDAAgD,eAAe;AAC/D;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,eAAe,SAAS;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA,eAAe,yBAAyB;AACxC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,sBAAsB;AACzC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,+BAA+B,oBAAoB;AACnD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,+BAA+B,oBAAoB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,+BAA+B,oBAAoB;AACnD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,+BAA+B,oBAAoB;AACnD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,+BAA+B,oBAAoB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,+BAA+B,oBAAoB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,+BAA+B,oBAAoB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,+BAA+B,oBAAoB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,qCAAqC;AAChE;AACA;AACA;;AAEA,sBAAsB,oBAAoB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,uHAAuH;AAC1H;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,uBAAuB,uBAAuB;AAC9C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,iCAAiC;AACjC,kCAAkC;;AAElC;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA,iCAAiC;;AAEjC;AACA,iCAAiC;;AAEjC;AACA,iCAAiC;;AAEjC;AACA,iCAAiC;;AAEjC;AACA,iCAAiC;;AAEjC;AACA,iCAAiC;;AAEjC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,gBAAgB;AAChB;AACA;AACA;;AAEA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,4GAA4G;AAC/G;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,oBAAoB;AACpB;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ;AACnB;AACA;AACA,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA,qDAAqD,OAAO,GAAG,MAAM,QAAQ,MAAM;;AAEnF;AACA;;AAEA;AACA,mBAAmB,oBAAoB;AACvC;AACA;AACA;;AAEA;AACA;AACA;AACA,4EAA4E;AAC5E;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA,WAAW,QAAQ;AACnB;AACA,qBAAqB,QAAQ;AAC7B,qBAAqB,QAAQ;AAC7B,oBAAoB,OAAO;AAC3B,kBAAkB,QAAQ;AAC1B;AACA,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;;AAEA,eAAe,iBAAiB;AAChC;;AAEA,mBAAmB,sBAAsB;AACzC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,eAAe,mBAAmB;AAClC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,eAAe,uBAAuB;AACtC;AACA;AACA;;AAEA;AACA,yDAAyD;AACzD;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,uBAAuB;AAC1C,8DAA8D;AAC9D;;AAEA;AACA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,uBAAuB;AACtC;;AAEA;AACA,qCAAqC,uBAAuB;AAC5D;AACA;;AAEA;AACA;;AAEA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA;;AAEA,eAAe,SAAS;AACxB;;AAEA;AACA;AACA;AACA;;AAEA,eAAe,uBAAuB;AACtC;AACA;;AAEA;;AAEA;AACA;AACA,gFAAgF;AAChF;;AAEA;AACA;;AAEA,CAAC,EAAE,iFAAiF;AACpF;;AAEA;AACA;AACA;AACA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,8BAA8B;AACnD,qBAAqB;AACrB;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,uBAAuB;AACtC;AACA;AACA;;AAEA,mBAAmB,SAAS;AAC5B;AACA;;AAEA;AACA;;AAEA,eAAe,SAAS;AACxB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAe,SAAS;AACxB,0BAA0B;AAC1B;;AAEA;;AAEA,eAAe,SAAS;AACxB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,yFAAyF;AAC5F;;AAEA;AACA;;AAEA,CAAC,GAAG;AACJ,mBAAmB;AACnB,aAAa,2DAA2D,mBAAmB,gDAAgD,aAAa,KAAK,MAAM,gCAAgC,SAAS,qCAAqC,SAAS,mCAAmC,OAAO,KAAK,OAAO,iBAAiB,aAAa,0BAA0B,mBAAmB,kBAAkB,gBAAgB,UAAU,UAAU,0CAA0C,wBAAwB,oBAAoB,8CAA8C,kCAAkC,YAAY,YAAY,mCAAmC,iBAAiB,eAAe,sBAAsB,oBAAoB,kDAAkD,WAAW,YAAY,SAAS,SAAS,KAAK;AAC5zB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mCAAmC,SAAS;AAC5C;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,cAAc,SAAS;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,sBAAsB,SAAS;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,2CAA2C,UAAU;AACrD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,GAAG;;AAEJ,CAAC,GAAG;AACJ,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,sBAAsB,oDAAoD;AAC1E;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB,YAAY;AAC9B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,wCAAwC,SAAS;AACjD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,iBAAiB;AACjC;AACA;AACA;;AAEA;AACA;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAkB,SAAS;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAkB,SAAS;AAC3B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAkB,SAAS;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,iDAAiD,EAAE;AACnD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,kBAAkB,SAAS;AAC3B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C;AAC1C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA,yBAAyB,eAAe;AACxC;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,yBAAyB,QAAQ;AACjC;AACA,sBAAsB,eAAe;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,kBAAkB,YAAY;AAC9B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,sBAAsB,SAAS;AAC/B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,sBAAsB,SAAS;AAC/B;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,sBAAsB,SAAS;AAC/B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB,kBAAkB;AACpC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB;AACnB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA,0BAA0B,QAAQ;AAClC;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,oBAAoB,SAAS;AAC7B;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,iBAAiB;AACjC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,kBAAkB,YAAY;AAC9B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,kBAAkB,gBAAgB;AAClC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB,gBAAgB;AAClC;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,kBAAkB,YAAY;AAC9B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,aAAa;AACd,CAAC,EAAE,qCAAqC;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS,WAAW;;AAEpB;AACA;AACA;AACA,SAAS,WAAW;;AAEpB;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA,SAAS,WAAW;;AAEpB;AACA;AACA,SAAS,UAAU;;AAEnB;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,MAAM;AACN;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;;;AAIA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,wBAAwB,sBAAsB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,sCAAsC;;AAEtC;AACA;AACA;;AAEA,4BAA4B;AAC5B;AACA;AACA;AACA,6BAA6B;;AAE7B,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,mVAAmV;AACtV;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,kBAAkB,eAAe;AACjC;AACA;AACA;AACA;AACA;AACA,kBAAkB,eAAe;AACjC;AACA;AACA;AACA;AACA;AACA,kBAAkB,eAAe;AACjC;AACA;AACA;AACA;AACA;AACA,kBAAkB,eAAe;AACjC;AACA;AACA;AACA;AACA;AACA,kBAAkB,eAAe;AACjC;AACA;AACA;AACA;AACA;AACA,kBAAkB,eAAe;AACjC;AACA;AACA;AACA;AACA;AACA,kBAAkB,eAAe;AACjC;AACA;AACA;AACA;AACA;AACA,kBAAkB,eAAe;AACjC;AACA;AACA;AACA;AACA;AACA,kBAAkB,eAAe;AACjC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,CAAC,EAAE,+FAA+F;AAClG;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,CAAC,EAAE,2CAA2C;AAC9C;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA,CAAC,EAAE,eAAe;AAClB;;AAEA;;AAEA;;AAEA;AACA;AACA,eAAe,iBAAiB;AAChC;AACA;AACA,eAAe,kBAAkB;AACjC,6BAA6B,MAAM;AACnC;AACA,mBAAmB,KAAK;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE,yBAAyB;AAC5B;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,iBAAiB,eAAe;AAChC;AACA;AACA;AACA,GAAG;AACH;AACA,CAAC,EAAE,4CAA4C;AAC/C;;AAEA;AACA;;AAEA;AACA;AACA;AACA,CAAC,EAAE,qDAAqD;AACxD;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;;AAEA;AACA;AACA,eAAe,YAAY;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA,iBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA,eAAe,MAAM;AACrB;AACA;;AAEA;AACA,eAAe,KAAK;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,MAAM;AACrB;AACA;AACA;AACA;AACA,CAAC,EAAE,0BAA0B;AAC7B;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,uBAAuB;AAC1B;;AAEA;;AAEA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,uBAAuB;AAC1B;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA,CAAC,EAAE,2GAA2G;AAC9G;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,iBAAiB;AACpB;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,WAAW;AACd;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ,oBAAoB,OAAO;AAC3B;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,eAAe;AAClB;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,kCAAkC;AACrC;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,WAAW;AACd;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA,CAAC,EAAE,4BAA4B;AAC/B;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gCAAgC;AACnC;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,WAAW;AACd;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,uBAAuB;AAC1B;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,mBAAmB;AACtB;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,uBAAuB;AAC1B;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,oCAAoC;AACvC;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAkB,OAAO,YAAY,OAAO;AAC5C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB,OAAO,YAAY,OAAO;AAC3C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB,OAAO,YAAY,OAAO;AAC3C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAkB,OAAO,YAAY,OAAO;AAC5C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mBAAmB;AACnB,kBAAkB,YAAY,OAAO;AACrC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,gCAAgC,+BAA+B;AAC/D,gCAAgC,+BAA+B;AAC/D,gCAAgC,+BAA+B;AAC/D,gCAAgC,+BAA+B;AAC/D,gCAAgC;AAChC;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,cAAc;;AAEd;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,6BAA6B;AAC7B,6BAA6B,cAAc;AAC3C,6BAA6B,cAAc;AAC3C,6BAA6B,cAAc;AAC3C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,eAAe,OAAO;AACtB;AACA,mBAAmB,GAAG;AACtB;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA,CAAC,GAAG;AACJ;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,yCAAyC;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,oBAAoB,iBAAiB;AACrC;AACA;;AAEA;AACA;AACA;AACA,yCAAyC,QAAQ;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,yBAAyB,mBAAmB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,oBAAoB,iBAAiB;AACrC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,kCAAkC,YAAY;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,MAAM;AACN;AACA,0DAA0D,mBAAmB;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,wBAAwB,SAAS;AACjC;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,QAAQ;AACR;;AAEA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,uCAAuC,sBAAsB;AAC7D;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,wBAAwB,SAAS;AACjC;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA;;AAEA,kBAAkB,SAAS;AAC3B;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,sBAAsB,iBAAiB;AACvC;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,kBAAkB,4BAA4B;AAC9C;AACA;;AAEA,kBAAkB,aAAa;AAC/B;AACA;;AAEA;AACA;AACA,MAAM;AACN,kBAAkB,aAAa;AAC/B;AACA;;AAEA;AACA;;AAEA,aAAa,eAAe;AAC5B;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,sBAAsB,gBAAgB;AACtC;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,oBAAoB,gBAAgB;AACpC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA,oBAAoB,cAAc;AAClC;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA,oBAAoB,cAAc;AAClC;AACA;;AAEA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,oBAAoB,iBAAiB;AACrC;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA,oBAAoB,cAAc;AAClC;AACA;AACA;AACA;AACA,WAAW,6BAA6B;AACxC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,aAAa,cAAc;AAC3B;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA,oBAAoB,cAAc;AAClC;AACA;AACA;AACA;AACA,WAAW,6BAA6B;AACxC;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,oBAAoB,SAAS;AAC7B;AACA;AACA;AACA;AACA;AACA,qDAAqD,WAAW;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,oBAAoB,oBAAoB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD,WAAW;AAChE;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,oBAAoB,OAAO;AAC3B;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,oBAAoB,OAAO;AAC3B;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,oBAAoB,OAAO;AAC3B;AACA;AACA;AACA;;AAEA;AACA;;AAEA,oBAAoB,OAAO;AAC3B;;AAEA;AACA;;AAEA,sBAAsB,OAAO;AAC7B;AACA;;AAEA,wBAAwB,OAAO;AAC/B;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,wBAAwB,GAAG;AAC3B;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,oBAAoB,WAAW;AAC/B;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,oBAAoB,WAAW;AAC/B;AACA;AACA;;AAEA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,oBAAoB,SAAS;AAC7B;;AAEA,mCAAmC;AACnC,uCAAuC;AACvC;;AAEA;AACA,sBAAsB,OAAO;AAC7B;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,oBAAoB,OAAO;AAC3B;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,oBAAoB,OAAO;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,oBAAoB,cAAc;AAClC;AACA;;AAEA;AACA,8BAA8B,cAAc;AAC5C;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,kBAAkB,iBAAiB;AACnC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,gCAAgC,QAAQ;AACxC;AACA;;AAEA,kBAAkB,OAAO;AACzB;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,sBAAsB,OAAO;AAC7B;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA,kBAAkB,iBAAiB;AACnC;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA,8BAA8B,mCAAmC;AACjE;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,oBAAoB,+CAA+C;AACnE;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA,sBAAsB,sCAAsC;AAC5D;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,gBAAgB,gBAAgB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,yBAAyB;AACpC;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,gBAAgB,iBAAiB;AACjC;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,sBAAsB,cAAc;AACpC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wBAAwB,QAAQ;AAChC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,kCAAkC,QAAQ;AAC1C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,kCAAkC,QAAQ;AAC1C;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,8BAA8B,mCAAmC;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,8BAA8B,mCAAmC;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA,8BAA8B,mCAAmC;AACjE;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,8BAA8B,mCAAmC;AACjE;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,wBAAwB,0BAA0B;AAClD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA,MAAM;;AAEN;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,oBAAoB,gCAAgC;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,kCAAkC,QAAQ;AAC1C;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;;AAEN;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,oBAAoB,YAAY;AAChC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,iBAAiB,kBAAkB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,oBAAoB,gBAAgB;AACpC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,oBAAoB,gBAAgB;AACpC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,oBAAoB;AAC1C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,oBAAoB,gBAAgB;AACpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,6BAA6B,QAAQ;AACrC;AACA,8BAA8B,QAAQ;AACtC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED,CAAC,EAAE,WAAW;AACd;;AAEA;;AAEA;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA,gBAAgB,OAAO;AACvB;AACA;AACA,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,+BAA+B,KAAK;AACpC;AACA;AACA;AACA;AACA,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;;AAEN;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;;AAGA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE,4DAA4D;AAC/D;;AAEA;AACA;AACA;AACA,mCAAmC,QAAQ;AAC3C;AACA,wCAAwC,QAAQ;AAChD;AACA;AACA,6BAA6B,OAAO;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,QAAQ;AAC3C;AACA,wCAAwC,QAAQ;AAChD;AACA;AACA,6BAA6B,OAAO;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mCAAmC,QAAQ;AAC3C;AACA,wCAAwC,QAAQ;AAChD;AACA;AACA,6BAA6B,OAAO;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,QAAQ;AAC3C;AACA,wCAAwC,QAAQ;AAChD;AACA;AACA,6BAA6B,OAAO;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,QAAQ;AAC3C;AACA,wCAAwC,QAAQ;AAChD;AACA;AACA,6BAA6B,OAAO;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,QAAQ;AAC3C;AACA,wCAAwC,QAAQ;AAChD;AACA;AACA,6BAA6B,OAAO;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,gDAAgD,UAAU;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,KAAK;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,gDAAgD,UAAU;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,KAAK;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE,gGAAgG;AACnG;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,qBAAqB,OAAO;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,YAAY;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,iBAAiB,YAAY;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,iBAAiB,YAAY;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE,iBAAiB;AACpB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,wEAAwE,OAAO;AAC/E;AACA,gDAAgD;AAChD,sBAAsB,OAAO;AAC7B,0BAA0B;AAC1B,QAAQ,cAAc;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA,wEAAwE,OAAO;AAC/E;AACA,8CAA8C;AAC9C,sBAAsB,OAAO;AAC7B,0BAA0B;AAC1B,QAAQ,cAAc;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA,wEAAwE,OAAO;AAC/E;AACA,+CAA+C;AAC/C,sBAAsB,OAAO;AAC7B,0BAA0B;AAC1B;AACA,oBAAoB;AACpB;AACA,IAAI;AACJ;;AAEA;AACA;AACA,wEAAwE,OAAO;AAC/E;AACA,+CAA+C;AAC/C,sBAAsB,OAAO;AAC7B,0BAA0B;AAC1B;AACA,oBAAoB;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,wEAAwE,OAAO;AAC/E;AACA,2DAA2D;AAC3D,sBAAsB,OAAO;AAC7B,0BAA0B;AAC1B;AACA,oBAAoB;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,wEAAwE,OAAO;AAC/E;AACA,0DAA0D;AAC1D,sBAAsB,OAAO;AAC7B,0BAA0B;AAC1B;AACA,oBAAoB;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,wEAAwE,OAAO;AAC/E;AACA,iEAAiE;AACjE,sBAAsB,OAAO;AAC7B,0BAA0B;AAC1B;AACA,oBAAoB;AACpB;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA,oBAAoB,UAAU;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,QAAQ;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qBAAqB,YAAY;AACjC;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,sBAAsB,UAAU;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB,WAAW;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA,mBAAmB,aAAa;AAChC;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,mBAAmB,cAAc;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,sBAAsB,UAAU;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB,WAAW;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,gBAAgB;AACnC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qBAAqB,aAAa;AAClC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qBAAqB,cAAc;AACnC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA,sBAAsB,UAAU;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,WAAW;AAClC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;;AAEA;AACA,qBAAqB,aAAa;AAClC;AACA;;AAEA;AACA;AACA;AACA;;AAEA,4BAA4B,KAAK;AACjC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,sBAAsB,UAAU;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,WAAW;AAClC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;;AAEA;AACA,qBAAqB,aAAa;AAClC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,4BAA4B,KAAK;AACjC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,6BAA6B,MAAM;AACnC;AACA,yBAAyB,aAAa;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE,mDAAmD;AACtD;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,iBAAiB,gBAAgB;AACjC;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA,CAAC,EAAE,mFAAmF;AACtF;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,eAAe,aAAa;AAC5B;AACA,iBAAiB,eAAe;AAChC;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,eAAe;AAClC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,iBAAiB,eAAe;AAChC;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,iDAAiD;AACpD;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA,eAAe,MAAM;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,gBAAgB;AAC/B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,MAAM;AACrB;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,gBAAgB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,KAAK;AACxB;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,0BAA0B;AAC7B;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,YAAY;AACZ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,UAAU;AACV;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;;AAEA;;AAEA;AACA,eAAe,aAAa;AAC5B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,YAAY;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,wCAAwC,aAAa;AACrD;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,mDAAmD;AACtD;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,8BAA8B,KAAK;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,8BAA8B,KAAK;AACnC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,+BAA+B,KAAK;AACpC;AACA,gCAAgC,KAAK;AACrC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,+BAA+B,KAAK;AACpC;AACA,gCAAgC,KAAK;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,YAAY;AAC3B;AACA;AACA;AACA;;AAEA,CAAC,EAAE,0BAA0B;AAC7B;;AAEA;;AAEA;AACA;AACA,eAAe,YAAY;AAC3B,iBAAiB,KAAK;AACtB;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB,iBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,YAAY;AAC3B;AACA;;AAEA;AACA,eAAe,KAAK;AACpB;AACA;AACA,iBAAiB,YAAY;AAC7B;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,iBAAiB;AAChC,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC,EAAE,mCAAmC;AACtC;;AAEA;;AAEA;AACA;AACA;AACA,eAAe,iBAAiB;AAChC;AACA,iBAAiB,iBAAiB;AAClC;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE,kBAAkB;AACrB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB,kBAAkB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB,mBAAmB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,cAAc,sBAAsB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,iCAAiC,QAAQ;AACzC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB,sBAAsB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,kBAAkB,eAAe;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,kBAAkB,eAAe;AACjC;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;;AAEA;AACA,kBAAkB,eAAe;AACjC;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,kBAAkB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ,oBAAoB,kBAAkB;AACtC;A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+B,EAAE,+BAA+B,EAAE,8BAA8B,EAAE,gCAAgC,EAAE,gCAAgC,EAAE,+BAA+B,EAAE,gCAAgC,EAAE,iCAAiC,EAAE,8BAA8B;AACthB;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA,MAAM;AACN;;AAEA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,UAAU;AACV;AACA;;AAEA,MAAM;AACN;;AAEA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;;AAGL;AACA;AACA;AACA;AACA;AACA,gBAAgB,uBAAuB;AACvC;AACA;AACA;;AAEA,wBAAwB,YAAY;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,oBAAoB,OAAO;AAC3B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,6BAA6B;AAChC;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,QAAQ;AACR;AACA,QAAQ;AACR;AACA;AACA,MAAM;AACN;AACA;AACA,QAAQ;AACR;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE,yFAAyF;AAC5F;;AAEA;AACA,cAAc;AACd,cAAc;AACd;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,KAAK;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,wCAAwC;AAC3C;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,CAAC,EAAE,gDAAgD;AACnD;;AAEA;;AAEA;AACA;AACA;AACA,eAAe,iBAAiB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,8BAA8B;AACjC;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,eAAe,gBAAgB;AAC/B;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,MAAM;AACrB;AACA,iBAAiB,YAAY;AAC7B;AACA;AACA;AACA,QAAQ;AACR;AACA,qBAAqB,MAAM;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE,+CAA+C;AAClD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,MAAM;AACjC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,MAAM;AACjC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,MAAM;AACrB;AACA;AACA;;AAEA;AACA;;AAEA,eAAe,MAAM;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,mBAAmB,MAAM;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,IAAI;AACJ;AACA,mBAAmB,MAAM;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA,iBAAiB,eAAe;AAChC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC,EAAE,yCAAyC;AAC5C,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC,aAAa;AACd,CAAC,EAAE,WAAW;AACd;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,KAAK;AAClB;AACA;AACA,IAAI;AACJ,aAAa,KAAK;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,CAAC,GAAG;AACJ;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB,YAAY;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,eAAe;AAC9B;AACA;AACA,eAAe,YAAY;AAC3B;AACA;AACA;AACA;AACA,eAAe,eAAe;AAC9B;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,CAAC,EAAE,WAAW;AACd;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,kBAAkB;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA,IAAI;AACJ;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,KAAK;AACxB;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,KAAK;AACxB;AACA;AACA,MAAM;AACN;AACA,mBAAmB,KAAK;AACxB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,8BAA8B,MAAM;AACpC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,6CAA6C;AAChD;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,8BAA8B,MAAM;AACpC;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,8BAA8B,KAAK;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,CAAC;;AAED;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,4BAA4B,MAAM;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,MAAM;AAClC;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,+BAA+B,UAAU;AACzC;AACA;AACA;AACA;AACA;AACA,mDAAmD,gBAAgB;;AAEnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,iBAAiB,iBAAiB;AAClC;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA,mBAAmB,mBAAmB;AACtC;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,mBAAmB,iBAAiB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,CAAC;;;AAGD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,8BAA8B,MAAM;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,KAAK;AACnC;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,MAAM;AAClC;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,KAAK;AACnC;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,mBAAmB,KAAK;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,KAAK;AACtB,mBAAmB,KAAK;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,eAAe,KAAK;AACpB;AACA;AACA;;AAEA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,KAAK;;AAEpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;;;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,wDAAwD;AACxD;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mCAAmC,aAAa;AAChD,mCAAmC,aAAa;AAChD,mCAAmC,aAAa;AAChD,mCAAmC,aAAa;AAChD,mCAAmC,aAAa;AAChD,mCAAmC,aAAa;AAChD,mCAAmC,aAAa;AAChD,mCAAmC,aAAa;AAChD;;AAEA,eAAe,KAAK;;AAEpB;AACA;;AAEA;;AAEA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,mBAAmB,KAAK;AACxB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,sCAAsC;AACtC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mBAAmB,KAAK;AACxB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,uGAAuG;AAC1G;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA,kBAAkB,MAAM;AACxB;AACA;AACA;AACA;AACA,oBAAoB,MAAM;AAC1B;AACA,sBAAsB,MAAM;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,2CAA2C;AAC9C;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC;AACD,eAAe,KAAK;AACpB;AACA;AACA;AACA,CAAC;;;AAGD;AACA,eAAe,KAAK;AACpB;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,yBAAyB;AACxC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,cAAc;AAC7B;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,eAAe,KAAK;AACpB;AACA,iBAAiB,KAAK;AACtB;AACA,mBAAmB,KAAK;AACxB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,eAAe,KAAK;AACpB;AACA,iBAAiB,KAAK;AACtB;AACA;;AAEA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA,mBAAmB,KAAK;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,KAAK;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC,EAAE,qFAAqF;AACxF;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAe,KAAK;AACpB;AACA;AACA,iBAAiB,mBAAmB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAiB,mBAAmB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,2CAA2C;AAC9C;;AAEA;AACA;;AAEA,+CAA+C,+CAA+C,yCAAyC,wDAAwD,0BAA0B,2BAA2B,0BAA0B,uDAAuD,sCAAsC,GAAG,iBAAiB,wCAAwC,wCAAwC,8CAA8C,wCAAwC,+DAA+D,mFAAmF,6EAA6E,GAAG;AACvwB,+CAA+C,0CAA0C,eAAe,yBAAyB,GAAG;AACpI;AACA;AACA,KAAK;AACL;AACA;;AAEA,+CAA+C,+CAA+C,yCAAyC,gDAAgD,yCAAyC,0BAA0B,0BAA0B,uDAAuD,sCAAsC,GAAG,4CAA4C,wBAAwB,wBAAwB,yFAAyF,GAAG,8BAA8B,gCAAgC,iCAAiC,yCAAyC,gDAAgD,oCAAoC,4CAA4C,8BAA8B,sBAAsB,GAAG,mCAAmC,+DAA+D,GAAG,iCAAiC,gCAAgC,4EAA4E,GAAG,6DAA6D,iRAAiR,2OAA2O,GAAG,qCAAqC,+CAA+C,GAAG,mDAAmD,gCAAgC,kCAAkC,8BAA8B,2BAA2B,GAAG,yDAAyD,2kBAA2kB,2CAA2C,qHAAqH,iBAAiB,8DAA8D,qDAAqD,0BAA0B,mEAAmE,oBAAoB,eAAe,wBAAwB,uHAAuH,0EAA0E,uDAAuD,qDAAqD,oIAAoI,uDAAuD,KAAK,2EAA2E,kGAAkG,mEAAmE,2EAA2E,uFAAuF,sDAAsD,GAAG;AAC55H,+CAA+C,0CAA0C,eAAe,yBAAyB,GAAG;AACpI;AACA;AACA,KAAK;AACL;AACA;;AAEA,6CAA6C,+CAA+C,wBAAwB,yCAAyC,sBAAsB,yBAAyB,8BAA8B,iBAAiB,kDAAkD,0CAA0C,yCAAyC,gDAAgD,gDAAgD,uEAAuE,qEAAqE,MAAM,MAAM,kCAAkC,KAAK,qCAAqC,GAAG;AACvsB,6CAA6C,8CAA8C,8BAA8B,iBAAiB,4IAA4I,GAAG;AACzR;AACA;AACA,KAAK,+BAA+B;AACpC,KAAK;AACL;AACA;;AAEA,CAAC,EAAE,8BAA8B;AACjC,oBAAoB;AACpB;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,kCAAkC,MAAM;AACxC;AACA,mBAAmB,MAAM;AACzB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,KAAK;;AAEpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAiB,mBAAmB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,CAAC,aAAa;AACd,CAAC,EAAE,6EAA6E;AAChF;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA,iBAAiB,gCAAgC;AACjD,kBAAkB,0DAA0D;AAC5E;AACA,kBAAkB,gCAAgC;AAClD,kBAAkB,0DAA0D;AAC5E;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA,iBAAiB,oBAAoB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,eAAe,KAAK;AACpB;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA,iBAAiB,KAAK;AACtB;;AAEA;AACA;AACA;;AAEA;AACA,mBAAmB,KAAK;AACxB;AACA,qBAAqB,KAAK;AAC1B;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,OAAO,OAAO;AACjC;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,eAAe;AAClC;AACA;AACA,qBAAqB,KAAK;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,8IAA8I;AACjJ;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,6BAA6B,MAAM;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,wEAAwE;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA,IAAI,gCAAgC;AACpC;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,IAAI,yEAAyE;AAC7E;AACA,IAAI,4DAA4D;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,OAAO;AACX;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,CAAC,EAAE,sDAAsD;AACzD;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,sBAAsB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,wBAAwB,sBAAsB;AAC9C;AACA;AACA;AACA;AACA,yBAAyB,OAAO;AAChC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;;AAEA,CAAC,EAAE,oDAAoD;AACvD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,eAAe,OAAO;AACtB;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN,mBAAmB,0BAA0B;AAC7C;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ,iBAAiB,oBAAoB;AACrC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA,eAAe,oBAAoB;AACnC;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,eAAe,gBAAgB;AAC/B;AACA;AACA;AACA;AACA,qBAAqB,KAAK;AAC1B;AACA;AACA,uBAAuB,KAAK;AAC5B;AACA;AACA;AACA;AACA;;AAEA,qBAAqB,KAAK;AAC1B;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,KAAK;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA,eAAe,KAAK;AACpB;AACA;;AAEA;AACA,eAAe,KAAK;AACpB;AACA;AACA,eAAe,KAAK;AACpB;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,eAAe,KAAK;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,KAAK;AACL,MAAM;AACN;AACA;AACA;AACA,KAAK;AACL,MAAM;AACN;AACA;AACA,KAAK;AACL,MAAM;AACN;AACA;AACA,KAAK;AACL,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA,CAAC,EAAE,sIAAsI;AACzI;;AAEA,iDAAiD,0BAA0B,yDAAyD,wVAAwV,6CAA6C,MAAM,MAAM,6CAA6C,KAAK,GAAG,+7BAA+7B,qCAAqC,uGAAuG,+CAA+C,+CAA+C,6BAA6B,uDAAuD,4CAA4C,KAAK,oJAAoJ,yEAAyE,8CAA8C,qBAAqB,sCAAsC,oCAAoC,+CAA+C,6CAA6C,yBAAyB,6BAA6B,+BAA+B,gCAAgC,6BAA6B,kDAAkD,KAAK,gCAAgC,2CAA2C,KAAK,cAAc,GAAG,0BAA0B,iCAAiC,oBAAoB,qDAAqD,qDAAqD,0CAA0C,gFAAgF,uBAAuB,oBAAoB,iBAAiB,mGAAmG,mHAAmH,yEAAyE,oFAAoF,+CAA+C,4DAA4D,0DAA0D,iEAAiE,4DAA4D,2CAA2C,+CAA+C,+BAA+B,wCAAwC,oCAAoC,0BAA0B,GAAG;AAC90H,oGAAoG,6EAA6E,iCAAiC,oCAAoC,oDAAoD,6CAA6C,yEAAyE,+CAA+C,GAAG,6IAA6I,gEAAgE,+DAA+D,gFAAgF,wEAAwE,uDAAuD,wDAAwD,6CAA6C,6CAA6C,oCAAoC,gFAAgF,4DAA4D,yFAAyF,GAAG,gDAAgD,4DAA4D,GAAG,6CAA6C,+EAA+E,GAAG,6CAA6C,uHAAuH,GAAG,6CAA6C,2CAA2C,GAAG,+BAA+B,2EAA2E,4BAA4B,gFAAgF,uBAAuB,oBAAoB,iBAAiB,sEAAsE,iCAAiC,yCAAyC,uCAAuC,0BAA0B,aAAa,KAAK,6FAA6F,yEAAyE,6DAA6D,iHAAiH,wCAAwC,GAAG;AAC/qF,kDAAkD,0BAA0B,yDAAyD,wVAAwV,6CAA6C,MAAM,MAAM,6CAA6C,KAAK,GAAG,+7BAA+7B,qCAAqC,uGAAuG,+CAA+C,+CAA+C,6BAA6B,uDAAuD,4CAA4C,KAAK,oJAAoJ,yEAAyE,8CAA8C,qBAAqB,sCAAsC,oCAAoC,+CAA+C,6CAA6C,yBAAyB,6BAA6B,+BAA+B,gCAAgC,6BAA6B,kDAAkD,KAAK,gCAAgC,2CAA2C,KAAK,cAAc,GAAG,0BAA0B,0BAA0B,oBAAoB,yCAAyC,mDAAmD,4BAA4B,oBAAoB,iBAAiB,gBAAgB,uHAAuH,yEAAyE,mDAAmD,qBAAqB,+BAA+B,GAAG;AACxoG,kDAAkD,mEAAmE,4DAA4D,GAAG,6CAA6C,+EAA+E,GAAG,6CAA6C,uHAAuH,GAAG,6CAA6C,2CAA2C,GAAG,gCAAgC,uBAAuB,4BAA4B,oBAAoB,iBAAiB,sEAAsE,4CAA4C,GAAG;;AAElyB;AACA;AACA;AACA;AACA,KAAK,+BAA+B;AACpC,KAAK,4BAA4B;AACjC,KAAK,yBAAyB;AAC9B,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,+BAA+B;AACpC,KAAK,yBAAyB;AAC9B,KAAK;AACL;AACA;;AAEA,CAAC,EAAE,cAAc;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,mBAAmB;AACtB;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,KAAK;AACpB;AACA,iBAAiB,MAAM;AACvB,oBAAoB,MAAM;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;AAGD;AACA;AACA,eAAe,kBAAkB;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,iBAAiB,KAAK;AACtB;;AAEA;AACA,mBAAmB,KAAK;AACxB;;AAEA,qBAAqB,KAAK;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,iDAAiD;AACpD;;AAEA;AACA;;AAEA,8CAA8C,uDAAuD,uBAAuB,uCAAuC,wBAAwB,yBAAyB,4BAA4B,iBAAiB,sDAAsD,0FAA0F,4DAA4D,gCAAgC,mCAAmC,GAAG;AACnhB,8CAA8C,mEAAmE,4DAA4D,GAAG,6CAA6C,+EAA+E,GAAG,6CAA6C,uHAAuH,GAAG,6CAA6C,2CAA2C,GAAG,+BAA+B,wBAAwB,4BAA4B,yBAAyB,iBAAiB,sHAAsH,yCAAyC,GAAG;;AAEh1B;AACA;AACA,KAAK,+BAA+B;AACpC,KAAK,4BAA4B;AACjC,KAAK;AACL;AACA;;AAEA,CAAC,EAAE,8BAA8B;AACjC;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,wBAAwB;AACvC;AACA,iBAAiB,KAAK;AACtB;AACA;AACA,iBAAiB,uBAAuB;AACxC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,eAAe,aAAa;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,oBAAoB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,aAAa;AAC5B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,eAAe,oBAAoB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;AACL;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,qBAAqB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,mBAAmB;;AAEtB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,oBAAoB,yBAAyB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,oBAAoB,kBAAkB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA,CAAC,EAAE,sFAAsF;AACzF;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,oBAAoB,OAAO;AAC3B;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA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AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA,gBAAgB,sBAAsB;AACtC;AACA;;AAEA;AACA;;AAEA,kBAAkB,OAAO;AACzB;AACA;;AAEA;AACA,4BAA4B,QAAQ;AACpC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,uEAAuE;;AAEvE;AACA;AACA,mEAAmE;AACnE,QAAQ;AACR;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,4EAA4E;AAC5E,QAAQ;AACR;AACA;;AAEA;AACA;;AAEA;AACA,oBAAoB,OAAO;AAC3B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,sBAAsB;AACtC;AACA;;AAEA;AACA,gBAAgB,SAAS;AACzB,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB,aAAa;AAC/B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,0GAA0G;AAC7G;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,WAAW,WAAW;AACrC;AACA;AACA;AACA;;AAEA,eAAe,WAAW,YAAY;AACtC;AACA;AACA;AACA;;AAEA,gBAAgB,YAAY,YAAY;AACxC;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,oCAAoC;AACpC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,gBAAgB,YAAY,YAAY;AACxC,gBAAgB,YAAY,YAAY;AACxC,gBAAgB,YAAY,aAAa;;AAEzC;AACA,yBAAyB,yBAAyB;AAClD,6BAA6B,qBAAqB;AAClD,6BAA6B,yBAAyB;;AAEtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,oBAAoB,YAAY,YAAY;AAC5C,oBAAoB,YAAY,YAAY;AAC5C,oBAAoB,YAAY,aAAa;;AAE7C,sBAAsB,cAAc,cAAc;AAClD,sBAAsB,cAAc,cAAc;AAClD,sBAAsB,cAAc,eAAe;;AAEnD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,eAAe,KAAK;AACpB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,kBAAkB;AACjC;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,kBAAkB;AACjC;AACA;;AAEA;AACA;AACA,eAAe,oBAAoB;AACnC;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE,sEAAsE;AACzE;;AAEA,iDAAiD,uDAAuD,uBAAuB,oBAAoB,8FAA8F,uDAAuD,2GAA2G,uBAAuB,oBAAoB,0BAA0B,oDAAoD,GAAG,iBAAiB,yCAAyC,4FAA4F,+CAA+C,4DAA4D,0DAA0D,kEAAkE,+BAA+B,gCAAgC,0BAA0B,GAAG;AACx+B,oGAAoG,6EAA6E,iCAAiC,oCAAoC,oDAAoD,6CAA6C,yEAAyE,+CAA+C,GAAG,6IAA6I,gEAAgE,+DAA+D,gFAAgF,wEAAwE,uDAAuD,wDAAwD,6CAA6C,6CAA6C,oCAAoC,gFAAgF,4DAA4D,yFAAyF,GAAG,yIAAyI,4DAA4D,GAAG,6CAA6C,+EAA+E,GAAG,6CAA6C,uHAAuH,GAAG,6CAA6C,2CAA2C,GAAG,+BAA+B,0HAA0H,4BAA4B,2GAA2G,uBAAuB,oBAAoB,iBAAiB,+FAA+F,mCAAmC,yCAAyC,uCAAuC,0BAA0B,aAAa,KAAK,6FAA6F,+DAA+D,kGAAkG,4EAA4E,iHAAiH,0CAA0C,GAAG;AACt9F,kDAAkD,+CAA+C,uBAAuB,oBAAoB,yCAAyC,yBAAyB,sBAAsB,oBAAoB,iBAAiB,kEAAkE,oBAAoB,uBAAuB,iBAAiB,GAAG;AAC1Y,kDAAkD,mEAAmE,4DAA4D,GAAG,6CAA6C,+EAA+E,GAAG,6CAA6C,uHAAuH,GAAG,6CAA6C,2CAA2C,GAAG,+BAA+B,4BAA4B,wBAAwB,yBAAyB,sBAAsB,oBAAoB,iBAAiB,kEAAkE,kEAAkE,GAAG;AACn2B,mDAAmD,mEAAmE,4DAA4D,GAAG,6CAA6C,+EAA+E,GAAG,6CAA6C,uHAAuH,GAAG,6CAA6C,2CAA2C,GAAG,4BAA4B,uBAAuB,oBAAoB,4BAA4B,yCAAyC,6BAA6B,yBAAyB,oBAAoB,iBAAiB,6DAA6D,+CAA+C,MAAM,MAAM,oEAAoE,KAAK,6BAA6B,oBAAoB,cAAc,GAAG;AAChiC,mDAAmD,iDAAiD,wBAAwB,yBAAyB,oBAAoB,iBAAiB,oDAAoD,oCAAoC,cAAc,KAAK,gEAAgE,GAAG;AACxW,kDAAkD,+CAA+C,oBAAoB,yCAAyC,4BAA4B,oBAAoB,iBAAiB,kEAAkE,qBAAqB,2BAA2B,GAAG;AACpV,kDAAkD,mEAAmE,4DAA4D,GAAG,6CAA6C,+EAA+E,GAAG,6CAA6C,uHAAuH,GAAG,6CAA6C,2CAA2C,GAAG,gCAAgC,uBAAuB,4BAA4B,oBAAoB,iBAAiB,sEAAsE,4CAA4C,GAAG;AAClyB,uDAAuD,mEAAmE,4DAA4D,GAAG,6CAA6C,+EAA+E,GAAG,6CAA6C,uHAAuH,GAAG,6CAA6C,2CAA2C,GAAG,6BAA6B,4BAA4B,qBAAqB,yCAAyC,6BAA6B,4BAA4B,oBAAoB,iBAAiB,6DAA6D,+CAA+C,MAAM,MAAM,qEAAqE,+BAA+B,KAAK,sBAAsB,4BAA4B,GAAG;AACriC,qDAAqD,+CAA+C,yCAAyC,iBAAiB,kEAAkE,GAAG;AACnO,qDAAqD,iDAAiD,iBAAiB,2CAA2C,GAAG;;AAErK;AACA;AACA;AACA;AACA,KAAK,+BAA+B;AACpC,KAAK,6BAA6B;AAClC,KAAK,4BAA4B;AACjC,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,+BAA+B;AACpC,KAAK,4BAA4B;AACjC,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,+BAA+B;AACpC,KAAK,4BAA4B;AACjC,KAAK,yBAAyB;AAC9B,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,+BAA+B;AACpC,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,+BAA+B;AACpC,KAAK,iCAAiC;AACtC,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA,CAAC,EAAE,cAAc;AACjB;;AAEA,2CAA2C;AAC3C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,iBAAiB,yBAAyB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,eAAe,OAAO;AACtB;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,YAAY;AAC3B;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,KAAK;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR,qBAAqB,0BAA0B;AAC/C;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,QAAQ;AACR,qBAAqB,wBAAwB;AAC7C;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,mBAAmB,oBAAoB;AACvC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,eAAe,oBAAoB;AACnC;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,eAAe,gBAAgB;AAC/B;AACA;AACA;;AAEA;AACA;;AAEA;AACA,qBAAqB,KAAK;AAC1B;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA,qBAAqB,KAAK;AAC1B;AACA;AACA,uBAAuB,KAAK;AAC5B;AACA;AACA;AACA;AACA;;AAEA,qBAAqB,KAAK;AAC1B;AACA;;AAEA;;AAEA;AACA;AACA;AACA,YAAY;AACZ;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA,YAAY;AACZ;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,YAAY;AACZ;AACA,YAAY;AACZ;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,qBAAqB,KAAK;AAC1B;AACA;AACA,uBAAuB,KAAK;AAC5B;AACA;AACA;AACA;AACA;;AAEA,qBAAqB,KAAK;AAC1B;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAY;AACZ;AACA,YAAY;AACZ;AACA;;AAEA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA,YAAY;AACZ;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,YAAY;AACZ;AACA,YAAY;AACZ;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,KAAK;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA,eAAe,KAAK;AACpB;AACA;;AAEA;AACA,eAAe,KAAK;AACpB;AACA;AACA,eAAe,KAAK;AACpB;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,eAAe,KAAK;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,eAAe,eAAe;AAC9B;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,eAAe,eAAe;AAC9B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,KAAK;AACL,MAAM;AACN;AACA;AACA;AACA,KAAK;AACL,MAAM;AACN;AACA;AACA,KAAK;AACL,MAAM;AACN;AACA;AACA,KAAK;AACL,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,KAAK;AACL,MAAM;AACN;AACA;AACA;AACA,KAAK;AACL,MAAM;AACN;AACA;AACA,KAAK;AACL,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,KAAK;AACL,MAAM;AACN;AACA;AACA;AACA,KAAK;AACL,MAAM;AACN;AACA;AACA,KAAK;AACL,MAAM;AACN;AACA;AACA,KAAK;AACL,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA,CAAC,EAAE,yPAAyP;AAC5P;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,+CAA+C;AAClD;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,mBAAmB,OAAO;AAC1B;AACA;AACA;AACA;AACA,mBAAmB,oBAAoB;AACvC;AACA;AACA,qBAAqB,KAAK;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,yEAAyE;AAC5E;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,+CAA+C;AAClD;;AAEA;;AAEA,8CAA8C,wCAAwC,eAAe,sDAAsD,GAAG;;AAE9J;AACA,8CAA8C,4CAA4C,2BAA2B,0BAA0B,sBAAsB,uBAAuB,2BAA2B,GAAG,yBAAyB,0EAA0E,GAAG,iBAAiB,8CAA8C,uDAAuD,6EAA6E,GAAG;AACtgB;AACA,uEAAuE,yEAAyE,sBAAsB,iBAAiB,yCAAyC,0CAA0C,6EAA6E,wIAAwI,+CAA+C,GAAG;AACjhB;AACA,8CAA8C,gDAAgD,gDAAgD,0BAA0B,iBAAiB,gEAAgE,wFAAwF,kCAAkC,GAAG;AACtX;AACA,8CAA8C,4CAA4C,2BAA2B,sBAAsB,yBAAyB,0EAA0E,GAAG,iBAAiB,yDAAyD,GAAG;AAC9T,8CAA8C,gDAAgD,yEAAyE,iBAAiB,gEAAgE,0EAA0E,GAAG;AACrU;;AAEA,CAAC,EAAE,cAAc;AACjB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,iBAAiB,KAAK;AACtB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,iBAAiB,KAAK;;AAEtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,aAAa;AAChC;;AAEA;AACA;AACA,aAAa,gBAAgB;AAC7B;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,qBAAqB,iBAAiB;AACtC;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mBAAmB,aAAa;AAChC;;AAEA,+EAA+E,qBAAqB;AACpG;AACA,aAAa,eAAe;AAC5B;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,eAAe;AAC1B;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,0FAA0F;AAC7F;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,kBAAkB;AACjC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,mBAAmB;AAClC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,eAAe,kBAAkB;AACjC;AACA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,eAAe,kBAAkB;AACjC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;AACA,eAAe,iBAAiB;AAChC;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,mCAAmC,MAAM;AACzC;AACA;AACA;AACA,oCAAoC,MAAM;AAC1C;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,kBAAkB;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,kBAAkB;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,0FAA0F;AAC7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,MAAM;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,sBAAsB;;AAEtB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK,gBAAgB,eAAe;;AAEpC;AACA;AACA;AACA;AACA,KAAK,gBAAgB,gBAAgB;;AAErC;AACA;AACA,KAAK,gBAAgB,eAAe;;AAEpC;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;;AAEA;AACA;;AAEA,CAAC,EAAE,mHAAmH;AACtH;AACA;;AAEA,gDAAgD,6CAA6C,kBAAkB,eAAe,kBAAkB,uCAAuC,GAAG;AAC1L,gDAAgD,qDAAqD,kBAAkB,iBAAiB,0DAA0D,6CAA6C,GAAG;;AAElP;AACA,sDAAsD,+BAA+B;AACrF;;AAEA,CAAC,EAAE,8BAA8B;AACjC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,mCAAmC;;AAEzE;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,iBAAiB,WAAW;AAC5B;AACA;AACA;AACA,iBAAiB,WAAW;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,WAAW;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,iBAAiB,kBAAkB;AACnC;AACA;;AAEA;AACA;AACA,iBAAiB,sBAAsB;AACvC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA,qBAAqB,WAAW;AAChC;AACA;AACA;AACA;AACA;AACA,yBAAyB,WAAW;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAiB,WAAW;AAC5B;AACA;AACA;AACA,mBAAmB,WAAW;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,WAAW;AAC5B;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,KAAK;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,KAAK;AACxB;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,KAAK;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,QAAQ;AACR;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,iBAAiB,WAAW;AAC5B;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,iBAAiB,WAAW;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mBAAmB,WAAW;AAC9B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,WAAW;AAC9B;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,iBAAiB,WAAW;AAC5B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,MAAM;AACrB;AACA;AACA;;AAEA;AACA,eAAe,KAAK;AACpB;AACA;;AAEA,eAAe,KAAK;AACpB;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,uOAAuO;AAC1O;;AAEA,8DAA8D,+CAA+C,wBAAwB,0BAA0B,2BAA2B,+BAA+B,4BAA4B,2BAA2B,+BAA+B,2CAA2C,iCAAiC,6BAA6B,GAAG,iBAAiB,iDAAiD,wDAAwD,8MAA8M,4BAA4B,0GAA0G,KAAK,GAAG;AACj3B,8DAA8D,uDAAuD,+BAA+B,2BAA2B,iBAAiB,iBAAiB,mBAAmB,4BAA4B,wDAAwD,6BAA6B,QAAQ,MAAM,+DAA+D,OAAO,MAAM,MAAM,oDAAoD,wBAAwB,gBAAgB,OAAO,wEAAwE,oEAAoE,KAAK,GAAG;AAC5qB,8DAA8D,+CAA+C,wBAAwB,wBAAwB,0BAA0B,0BAA0B,wBAAwB,iBAAiB,iDAAiD,wDAAwD,6BAA6B,oCAAoC,gCAAgC,wCAAwC,kCAAkC,wCAAwC,kCAAkC,wCAAwC,kBAAkB,GAAG;AACrpB,8DAA8D,2CAA2C,iBAAiB,wDAAwD,sBAAsB,cAAc,KAAK,kCAAkC,GAAG;;AAEhQ,CAAC,EAAE,cAAc;AACjB;;AAEA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,eAAe,gBAAgB;AAC/B;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE,wEAAwE;AAC3E;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AAC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ACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,KAAK;AACpB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,KAAK;AACpB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,iBAAiB,MAAM;AACvB;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI;AACJ;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,WAAW;AACX;AACA;AACA;AACA;;;;AAIA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,oBAAoB,sBAAsB;AAC1C;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA,iBAAiB,aAAa;AAC9B;AACA,mBAAmB,KAAK;AACxB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,iBAAiB,aAAa;AAC9B;AACA;;AAEA;AACA,mBAAmB,KAAK;AACxB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA,uBAAuB,KAAK;AAC5B;AACA;AACA;AACA,UAAU;AACV,uBAAuB,KAAK;AAC5B;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA,uBAAuB,KAAK;AAC5B;AACA;AACA;AACA,UAAU;AACV,uBAAuB,KAAK;AAC5B;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,QAAQ;AACR;AACA,QAAQ;AACR;AACA;;;AAGA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mBAAmB,KAAK;AACxB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,mBAAmB,gBAAgB;AACnC;AACA,qBAAqB,KAAK;AAC1B,uBAAuB,KAAK;AAC5B;AACA;AACA,uBAAuB,KAAK;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,mBAAmB,gBAAgB;AACnC;AACA,qBAAqB,KAAK;AAC1B,uBAAuB,KAAK;AAC5B;AACA;AACA,uBAAuB,KAAK;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;AAIA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,CAAC,EAAE,oKAAoK;AACvK;;AAEA;;AAEA,sDAAsD,6CAA6C,kCAAkC,iBAAiB,4DAA4D,GAAG;AACrN,wDAAwD,0CAA0C,iBAAiB,yBAAyB,GAAG;;AAE/I,CAAC,EAAE,cAAc;AACjB;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,mDAAmD;AACtD;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAiB,QAAQ;AACzB,mBAAmB,QAAQ;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,iEAAiE;AACpE;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,oBAAoB;AAChD;AACA;AACA,IAAI;AACJ,4BAA4B,oBAAoB;AAChD;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,kBAAkB,oBAAoB;AACtC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,qBAAqB;AAChC;AACA;AACA;AACA;AACA,mBAAmB,QAAQ;AAC3B;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,MAAM;AACN;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,6BAA6B;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iBAAiB,mBAAmB;AACpC;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA,CAAC,EAAE,uJAAuJ;AAC1J;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,aAAa;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB,aAAa;AAClC;AACA;AACA,QAAQ;AACR,qBAAqB,aAAa;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,aAAa;AAChC;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,iBAAiB,aAAa;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,mBAAmB,aAAa;AAChC;AACA;AACA;AACA;AACA,UAAU;AACV,uBAAuB,aAAa;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oCAAoC,KAAK;;AAEzC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,UAAU;AACzB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,kBAAkB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,QAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mBAAmB,cAAc;AACjC;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gCAAgC;AACnC;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,mBAAmB;AAClC;AACA;AACA;AACA,iBAAiB,gBAAgB;AACjC;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,YAAY;AACjC;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB,oBAAoB;AACrC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,eAAe;AAC9B;AACA;AACA;AACA;AACA,qBAAqB,aAAa;AAClC;AACA;AACA;AACA,WAAW;AACX;AACA,QAAQ;AACR;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,iBAAiB;AAChC;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,oCAAoC,KAAK;AACzC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qBAAqB,IAAI;AACzB;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,kBAAkB;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,iEAAiE;AACpE;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,kBAAkB;AAClE;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA,gDAAgD,sDAAsD,yBAAyB,yCAAyC,8BAA8B,yBAAyB,2BAA2B,0BAA0B,2BAA2B,iBAAiB,+HAA+H,2EAA2E,wEAAwE,mDAAmD,uEAAuE,wGAAwG,oFAAoF,GAAG;AAC34B,gDAAgD,8CAA8C,iBAAiB,6BAA6B,GAAG;;AAE/I;AACA;AACA,KAAK,+BAA+B;AACpC,KAAK,4BAA4B;AACjC,KAAK;AACL;AACA;;AAEA,CAAC,EAAE,8BAA8B;AACjC;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;;AAIA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,kDAAkD;AACrD;;AAEA,iDAAiD,0BAA0B,yDAAyD,wVAAwV,6CAA6C,MAAM,MAAM,6CAA6C,KAAK,GAAG,geAAge,6BAA6B,2DAA2D,sCAAsC,oCAAoC,0CAA0C,wCAAwC,oBAAoB,6BAA6B,gBAAgB,GAAG,0BAA0B,iCAAiC,oBAAoB,yCAAyC,qDAAqD,0CAA0C,gFAAgF,uBAAuB,oBAAoB,iBAAiB,mGAAmG,iHAAiH,yEAAyE,oFAAoF,+CAA+C,4DAA4D,0DAA0D,iEAAiE,4DAA4D,2CAA2C,+CAA+C,+BAA+B,wCAAwC,oCAAoC,0BAA0B,GAAG;AAC1jF,oGAAoG,6EAA6E,iCAAiC,oCAAoC,oDAAoD,6CAA6C,yEAAyE,+CAA+C,GAAG,6IAA6I,gEAAgE,+DAA+D,gFAAgF,wEAAwE,uDAAuD,wDAAwD,6CAA6C,6CAA6C,oCAAoC,gFAAgF,4DAA4D,yFAAyF,GAAG,gDAAgD,4DAA4D,GAAG,6CAA6C,+EAA+E,GAAG,6CAA6C,uHAAuH,GAAG,6CAA6C,2CAA2C,GAAG,+BAA+B,2EAA2E,4BAA4B,gFAAgF,uBAAuB,oBAAoB,iBAAiB,sEAAsE,iCAAiC,yCAAyC,uCAAuC,0BAA0B,aAAa,KAAK,6FAA6F,yEAAyE,6DAA6D,iHAAiH,wCAAwC,GAAG;AAC/qF,kDAAkD,0BAA0B,yDAAyD,wVAAwV,6CAA6C,MAAM,MAAM,6CAA6C,KAAK,GAAG,geAAge,6BAA6B,2DAA2D,sCAAsC,oCAAoC,0CAA0C,wCAAwC,oBAAoB,6BAA6B,gBAAgB,GAAG,0BAA0B,0BAA0B,oBAAoB,yCAAyC,0BAA0B,4BAA4B,oBAAoB,iBAAiB,gBAAgB,iHAAiH,yEAAyE,qDAAqD,qBAAqB,+BAA+B,GAAG;AACr2D,kDAAkD,mEAAmE,4DAA4D,GAAG,6CAA6C,+EAA+E,GAAG,6CAA6C,uHAAuH,GAAG,6CAA6C,2CAA2C,GAAG,gCAAgC,uBAAuB,4BAA4B,oBAAoB,iBAAiB,sEAAsE,4CAA4C,GAAG;;AAElyB;AACA;AACA;AACA;AACA,KAAK,+BAA+B;AACpC,KAAK,4BAA4B;AACjC,KAAK,yBAAyB;AAC9B,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,+BAA+B;AACpC,KAAK,yBAAyB;AAC9B,KAAK;AACL;AACA;;AAEA,CAAC,EAAE,cAAc;AACjB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,iBAAiB,mBAAmB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,kBAAkB,YAAY;AAC9B;AACA;AACA;AACA,mBAAmB,YAAY;AAC/B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,eAAe,kBAAkB;AACjC;AACA,gBAAgB,qBAAqB;AACrC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA,eAAe,kBAAkB;AACjC;AACA;AACA;AACA;AACA;AACA,gBAAgB,qBAAqB;AACrC;AACA;AACA;AACA,iBAAiB,eAAe;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,0BAA0B,eAAe;AACzC;AACA,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAY,SAAS;AACrB;AACA,eAAe,OAAO;AACtB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,qCAAqC;AACrC,qCAAqC;AACrC,qCAAqC;AACrC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,wBAAwB;;AAExB;AACA;;AAEA;AACA;AACA;AACA;;AAEA,iBAAiB,SAAS;AAC1B;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,gBAAgB,iEAAiE;;AAEjF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;;AAEA,CAAC,EAAE,+DAA+D;AAClE;AACA;;AAEA,8CAA8C,yCAAyC,mBAAmB,wBAAwB,8BAA8B,qDAAqD,0CAA0C,6BAA6B,8BAA8B,+BAA+B,+BAA+B,2DAA2D,sBAAsB,iBAAiB,4CAA4C,qDAAqD,4DAA4D,0DAA0D,+BAA+B,eAAe,gBAAgB,4BAA4B,uDAAuD,qFAAqF,+CAA+C,0DAA0D,wDAAwD,oEAAoE,GAAG;AAC/nC,8CAA8C,6EAA6E,iCAAiC,oCAAoC,oDAAoD,6CAA6C,yEAAyE,+CAA+C,GAAG,uHAAuH,0GAA0G,GAAG,gDAAgD,4DAA4D,GAAG,6CAA6C,+EAA+E,GAAG,6CAA6C,uHAAuH,GAAG,6CAA6C,2CAA2C,GAAG,wCAAwC,4BAA4B,4BAA4B,6BAA6B,6BAA6B,2EAA2E,4BAA4B,8BAA8B,+BAA+B,2DAA2D,sBAAsB,iBAAiB,gIAAgI,wCAAwC,qCAAqC,uCAAuC,0BAA0B,aAAa,KAAK,qEAAqE,yEAAyE,qMAAqM,mHAAmH,wEAAwE,GAAG;AACj0E,qDAAqD,yCAAyC,oBAAoB,8BAA8B,2BAA2B,uCAAuC,gCAAgC,6BAA6B,8BAA8B,+BAA+B,+BAA+B,2DAA2D,sBAAsB,iBAAiB,4DAA4D,oDAAoD,4DAA4D,4DAA4D,8BAA8B,iCAAiC,+BAA+B,gBAAgB,4BAA4B,uDAAuD,wEAAwE,kCAAkC,kCAAkC,GAAG;AACrgC,8CAA8C,mEAAmE,4DAA4D,GAAG,6CAA6C,+EAA+E,GAAG,6CAA6C,uHAAuH,GAAG,6CAA6C,2CAA2C,GAAG,uBAAuB,6BAA6B,uBAAuB,8BAA8B,+BAA+B,+BAA+B,6BAA6B,8BAA8B,yBAAyB,4BAA4B,4BAA4B,2DAA2D,GAAG,iBAAiB,oGAAoG,wDAAwD,sDAAsD,gEAAgE,GAAG;;AAExsC;AACA;AACA,KAAK,yBAAyB;AAC9B,KAAK,wBAAwB;AAC7B,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,yBAAyB;AAC9B,KAAK,wBAAwB;AAC7B,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,yBAAyB;AAC9B,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,yBAAyB;AAC9B,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,8BAA8B;AACjC;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC;AACD,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,oDAAoD;AACpD;AACA;;AAEA,iBAAiB,yBAAyB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,cAAc,OAAO;AACrB;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;;AAEA,cAAc,OAAO;AACrB;AACA;AACA,gBAAgB,QAAQ;AACxB;AACA;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA,gBAAgB,OAAO;AACvB,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,kBAAkB,OAAO;AACzB;AACA,oBAAoB,OAAO;AAC3B;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,cAAc,OAAO;AACrB;AACA;;AAEA;AACA,cAAc,OAAO;AACrB;AACA;AACA,cAAc,OAAO;AACrB;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,gBAAgB,OAAO;AACvB;AACA;;AAEA,kBAAkB,kCAAkC;AACpD;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,gBAAgB,OAAO;AACvB;AACA;AACA,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA,wBAAwB,kCAAkC;AAC1D;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,kBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,kBAAkB,OAAO;AACzB;AACA,oBAAoB,OAAO;AAC3B;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,gBAAgB,OAAO;AACvB;AACA;AACA,kBAAkB,kCAAkC;AACpD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,gBAAgB,OAAO;AACvB;AACA;;AAEA,kBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA;AACA,wBAAwB,kCAAkC;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,QAAQ;AAC3B;AACA,qBAAqB,QAAQ;AAC7B;;AAEA;AACA;AACA;;AAEA,sBAAsB,OAAO;AAC7B;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,cAAc,OAAO;AACrB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,oBAAoB,OAAO;AAC3B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,OAAO;AACzB;AACA,oBAAoB,OAAO;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA,sBAAsB,cAAc;AACpC;AACA;AACA;AACA;AACA,kBAAkB,cAAc;AAChC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;AACA,gBAAgB,kBAAkB;AAClC,kBAAkB,kBAAkB;AACpC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,kBAAkB;AAClC;AACA,kBAAkB,kBAAkB;AACpC;AACA,yBAAyB,QAAQ;AACjC,2BAA2B,QAAQ;AACnC,4BAA4B,OAAO;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,OAAO;AAC3B;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,gBAAgB,UAAU;AAC1B;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;AACA,OAAO;AACP;AACA,gBAAgB,OAAO;AACvB,kBAAkB,sBAAsB;AACxC;AACA;AACA;AACA;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA,kBAAkB,sBAAsB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,sBAAsB,SAAS;AAC/B;;AAEA;AACA;;AAEA;;AAEA,kBAAkB,yBAAyB;AAC3C;;AAEA;AACA;;AAEA;AACA,oBAAoB,wBAAwB;AAC5C;AACA,sBAAsB,OAAO;AAC7B;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,+BAA+B,UAAU;AACzC;AACA;AACA,2BAA2B,QAAQ;AACnC;AACA;AACA,6BAA6B,QAAQ;AACrC;AACA;;AAEA;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,gCAAgC,OAAO;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,gBAAgB,yBAAyB;AACzC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,cAAc,OAAO;AACrB;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA,gBAAgB,kBAAkB;AAClC;AACA,sBAAsB,OAAO;AAC7B;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,KAAK;AACL,MAAM;AACN;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,CAAC,EAAE,0RAA0R;AAC7R;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,KAAK;AACxB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,MAAM;AACN;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,sDAAsD;AACzD;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,qBAAqB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,UAAU,YAAY;AACtB;AACA;AACA,IAAI;AACJ;AACA,iBAAiB,YAAY;AAC7B;AACA;AACA;AACA;;AAEA;AACA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC,EAAE,mBAAmB;AACtB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,wBAAwB;AACvC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,qBAAqB;AACpC;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC,EAAE,mBAAmB;AACtB;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;;AAEA,CAAC,EAAE,sDAAsD;AACzD;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA,CAAC,EAAE,iDAAiD;AACpD;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA,CAAC,EAAE,iBAAiB;AACpB;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA,CAAC,EAAE,eAAe;AAClB;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,UAAU;AACrB,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA,wBAAwB,OAAO;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE,eAAe;AAClB;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,6rBAA6rB;AAChsB;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA,CAAC,EAAE,eAAe;AAClB;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA,CAAC,EAAE,iBAAiB;AACpB;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA,CAAC,EAAE,wBAAwB;AAC3B;;AAEA,CAAC,EAAE,sBAAsB;AACzB;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA,CAAC,EAAE,iBAAiB;AACpB;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,mZAAmZ;AACtZ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;;AAEA;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,gCAAgC;AACnC;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA,kBAAkB,mBAAmB;AACrC;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,oCAAoC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB,kBAAkB,wBAAwB;AAC1C;AACA;AACA,kBAAkB,wBAAwB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD;AACjD,+CAA+C;AAC/C,+CAA+C;AAC/C,uCAAuC;AACvC,qCAAqC;AACrC,6BAA6B;AAC7B,mCAAmC;AACnC,qCAAqC;AACrC,2CAA2C;AAC3C,mCAAmC;AACnC;AACA;AACA;AACA;AACA,8BAA8B,QAAQ;AACtC,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,sHAAsH;AACzH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,iBAAiB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,iBAAiB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,MAAM;AACN,MAAM;AACN;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,cAAc;AACjB;AACA;AACA;AACA;AACA,kBAAkB,sBAAsB;AACxC;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,iBAAiB;AACpB;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,eAAe,cAAc;AAC7B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA,mBAAmB,MAAM;AACzB;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,iBAAiB,MAAM;AACvB;AACA;AACA;;AAEA;AACA,iBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iBAAiB,MAAM;AACvB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,qBAAqB,MAAM;AAC3B;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,mBAAmB,MAAM;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,MAAM;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,eAAe,uBAAuB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,eAAe,MAAM;AACrB;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,MAAM;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,MAAM;AACzB;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,MAAM;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,MAAM;AACrB;AACA,iBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,MAAM;AACrB;AACA;AACA,iBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA,mBAAmB,MAAM;AACzB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;;AAEA;AACA;AACA;AACA,CAAC,EAAE,kDAAkD;AACrD;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA,oEAAoE,0BAA0B;AAC9F;AACA;AACA;AACA;AACA;AACA;AACA,uEAAuE,2BAA2B;AAClG;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,iCAAiC;AAChD;AACA,YAAY;AACZ;AACA;;AAEA;AACA,0BAA0B,yBAAyB;AACnD;AACA,YAAY;AACZ;AACA;;AAEA;AACA,eAAe,cAAc;AAC7B;AACA,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,IAAI;AACJ;AACA;AACA,cAAc;AACd;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,oBAAoB;AACnC;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,eAAe,oBAAoB;AACnC;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,0BAA0B;AAC7B;;AAEA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;;AAEA;AACA,CAAC,GAAG;AACJ;AACA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,WAAW;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,OAAO;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;AACA;AACA,sBAAsB;AACtB,sBAAsB;AACtB,sBAAsB;AACtB,sBAAsB;AACtB,sBAAsB;AACtB,sBAAsB;AACtB;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,wBAAwB,OAAO;AAC/B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE,iNAAiN;AACpN;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,MAAM;AACxB;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC,EAAE,uGAAuG;AAC1G;AACA,sBAAsB;AACtB,sBAAsB;AACtB,sBAAsB;AACtB,sBAAsB;AACtB,sBAAsB;AACtB,sBAAsB;;AAEtB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC,EAAE,kJAAkJ;AACrJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,MAAM;AACvB;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,iBAAiB,MAAM;AACvB;AACA;AACA;AACA,iBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA,mBAAmB,MAAM;AACzB;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,MAAM;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,MAAM;AACrB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,+NAA+N;AAClO;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA,eAAe,KAAK;AACpB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gCAAgC,MAAM;AACtC;AACA;AACA,4BAA4B,KAAK;AACjC;AACA;;AAEA;AACA;AACA;AACA,CAAC,EAAE,yBAAyB;AAC5B;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,yBAAyB,iBAAiB;AAC1C;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,OAAO;AACP;AACA,KAAK;AACL;AACA,yBAAyB,oBAAoB;AAC7C;AACA,KAAK;AACL;AACA,yBAAyB,UAAU;AACnC;AACA,KAAK;AACL;AACA,yBAAyB,UAAU;AACnC;AACA,KAAK;AACL;AACA,yBAAyB,aAAa;AACtC;AACA;AACA,GAAG;;AAEH;AACA;;AAEA,CAAC,EAAE,kBAAkB;AACrB,qBAAqB;;AAErB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,QAAQ;AACR;AACA,QAAQ;AACR;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,QAAQ;AACR;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,YAAY;AACf;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,SAAS;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,SAAS;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,SAAS;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,SAAS;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,SAAS;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,SAAS;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,UAAU;AACzB;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE,sBAAsB;AACzB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,SAAS;AAC1B,mBAAmB,SAAS;AAC5B,oDAAoD;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,mBAAmB,0DAA0D;AAC7E;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,mBAAmB,0CAA0C;AAC7D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,mBAAmB,kDAAkD;AACrE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,mBAAmB,0DAA0D;AAC7E;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA,QAAQ,KAAC;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,KAAC;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,KAAC;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,KAAC;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,KAAC;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,eAAe,MAAM;AACrB;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE,SAAS;AACZ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,KAAK;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,UAAU;AACrB;AACA;AACA,aAAa,KAAK;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,SAAS;AAC5B,qBAAqB,SAAS;AAC9B,uBAAuB,SAAS;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,OAAO;AACtC;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,iCAAiC,OAAO;AACxC;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,SAAS;AAChC,yBAAyB,SAAS;AAClC,2BAA2B,SAAS;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,SAAS;AAC5B,qBAAqB,SAAS;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,OAAO;AACtC;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,iCAAiC,OAAO;AACxC;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,SAAS;AAChC,yBAAyB,SAAS;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,OAAO;AACtC;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,iCAAiC,OAAO;AACxC;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,mCAAmC,OAAO;AAC1C;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,SAAS;AAClC,2BAA2B,SAAS;AACpC,6BAA6B,SAAS;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,SAAS;AAC5B,qBAAqB,SAAS;AAC9B,uBAAuB,SAAS;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA,CAAC;;AAED;AACA,sBAAsB;;AAEtB,CAAC,GAAG;AACJ;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,mCAAmC;AACtC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,SAAS;AAC1B,mBAAmB,SAAS;AAC5B,qBAAqB,SAAS;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA,CAAC;;AAED,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,YAAY;AACrC;AACA;AACA;AACA;AACA;AACA,qBAAqB,SAAS;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,SAAS;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,SAAS;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,SAAS;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,SAAS;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,SAAS;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,SAAS;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,SAAS;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,SAAS;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,SAAS;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,SAAS;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,SAAS;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,SAAS;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,YAAY;AACnC;AACA;AACA,8BAA8B,SAAS;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,SAAS;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,kCAAkC,SAAS;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA,6BAA6B,SAAS;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA,6BAA6B,SAAS;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR,uBAAuB,YAAY;AACnC;AACA;AACA,8BAA8B,SAAS;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,SAAS;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,gCAAgC,SAAS;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,SAAS;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA,sCAAsC,SAAS;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,SAAS;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA,iCAAiC,SAAS;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,SAAS;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,SAAS;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,YAAY;AACnC;AACA;AACA,8BAA8B,SAAS;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,SAAS;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,gCAAgC,SAAS;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,SAAS;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA,sCAAsC,SAAS;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,SAAS;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA,iCAAiC,SAAS;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,CAAC,EAAE,sBAAsB;AACzB;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,CAAC,EAAE,4BAA4B;AAC/B;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,gBAAgB;AAC3B;AACA;AACA;AACA;AACA,WAAW,iBAAiB;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA,YAAY;AACZ;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL,4CAA4C,YAAY;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL,4CAA4C,YAAY;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;AAGA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC;AACD;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,MAAM;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,CAAC,EAAE,gBAAgB;AACnB;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE,iBAAiB;AACpB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,eAAe,KAAK;AACpB;AACA;;AAEA;AACA,eAAe,gBAAgB;AAC/B;AACA;AACA;AACA;AACA,iBAAiB,YAAY;;AAE7B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,mBAAmB,KAAK;AACxB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,qBAAqB,KAAK;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,KAAK;AACpB;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA,mBAAmB,KAAK;AACxB;AACA;AACA,MAAM;AACN,mBAAmB,KAAK;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,eAAe,KAAK;AACpB;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;;AAEA;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;;AAEA;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;;;;AAIA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,KAAK;AACpB;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,KAAK;AACpB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,CAAC,EAAE,6GAA6G;AAChH;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,CAAC,EAAE,oBAAoB;AACvB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,eAAe,eAAe;AAC9B;AACA;AACA;AACA,eAAe,YAAY;AAC3B;AACA;AACA;AACA;;AAEA;;AAEA;AACA,eAAe,eAAe;AAC9B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,OAAO;AAC1B;AACA,mBAAmB,eAAe;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,eAAe,eAAe;AAC9B,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC,EAAE,mBAAmB;AACtB;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,eAAe,oBAAoB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB,YAAY;AAC7B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,oBAAoB;AACnC;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA,eAAe,gBAAgB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE,6BAA6B;AAChC;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,UAAU;AACzB;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,UAAU;AACzB;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,eAAe,eAAe;AAC9B;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,YAAY;AAC3B;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,iBAAiB,YAAY;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,KAAK;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,eAAe,YAAY;AAC3B;AACA;AACA;AACA,iBAAiB,YAAY;AAC7B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,YAAY;AAC3B;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,YAAY;AAC3B;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,YAAY;AAC3B;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC,EAAE,gJAAgJ;AACnJ;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,mBAAmB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,eAAe,eAAe;AAC9B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,UAAU;AACV;AACA;AACA,QAAQ;AACR;AACA;AACA,UAAU;AACV;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,YAAY;AAC3B;AACA;AACA,iCAAiC,eAAe;AAChD;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE,mGAAmG;AACtG;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,gBAAgB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,gBAAgB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA,QAAQ,QAAQ;AAChB;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,MAAM,kBAAkB;AACxB;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,MAAM,QAAQ;AACd;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,MAAM,mBAAmB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,MAAM,QAAQ;AACd;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,gBAAgB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,CAAC,GAAG;AACJ;AACA,CAAC,EAAE,oBAAoB;AACvB;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,gBAAgB,KAAK;AACrB;AACA;AACA;AACA;;AAEA,CAAC,EAAE,iBAAiB;AACpB;;AAEA;;AAEA;;AAEA;AACA;AACA,eAAe,YAAY;AAC3B;AACA;AACA;AACA;;AAEA,CAAC,EAAE,aAAa;AAChB;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;;AAEA,CAAC,EAAE,8BAA8B;AACjC;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;;AAEA,CAAC,EAAE,iBAAiB;AACpB;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,mEAAmE;AACtE;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,YAAY,QAAQ;AACpB;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ,mBAAmB;AACnB;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA,CAAC,aAAa,qIAAqI;AACnJ,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,KAAK;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,kCAAkC,YAAY;AAC9C,mCAAmC;AACnC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,eAAe,gBAAgB;AAC/B;AACA;AACA;;AAEA;AACA,CAAC,EAAE,4EAA4E;AAC/E;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,eAAe,YAAY;AAC3B;AACA;AACA;AACA;AACA,CAAC,EAAE,mCAAmC;AACtC;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,uBAAuB;AACvB,uBAAuB;AACvB,uBAAuB;;AAEvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oBAAoB,sBAAsB;AAC1C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,eAAe,eAAe;AAC9B;AACA;AACA;;AAEA;AACA,CAAC,EAAE,4EAA4E;AAC/E;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,cAAc;AAC7B;AACA;AACA;;AAEA;AACA,CAAC,EAAE,yBAAyB;AAC5B;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,4BAA4B,UAAU;AACtC,4BAA4B,UAAU;AACtC;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,MAAM;AACN;AACA;AACA,QAAQ;AACR;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oBAAoB,sBAAsB;AAC1C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,eAAe;AAC9B;AACA;AACA;;AAEA;AACA,CAAC,EAAE,4EAA4E;AAC/E;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,YAAY;AAC7B;AACA;AACA,IAAI;AACJ,iBAAiB,YAAY;AAC7B;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE,oCAAoC;AACvC;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE,gCAAgC;AACnC;;AAEA;;AAEA;;AAEA;;AAEA,eAAe,KAAK;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC,EAAE,yBAAyB;AAC5B;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE,oDAAoD;AACvD;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,eAAe,YAAY;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,YAAY;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,YAAY;AAC3B;AACA;AACA,iBAAiB,KAAK;AACtB,mBAAmB,KAAK;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,YAAY;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,YAAY;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,MAAM;AACrB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE,2EAA2E;AAC9E;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,OAAO;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,OAAO;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,OAAO;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,OAAO;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,GAAG;AACJ,cAAc;;AAEd;AACA;;AAEA;AACA;AACA;AACA;AACA,gCAAgC,MAAM;AACtC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gCAAgC,MAAM;AACtC;AACA,8BAA8B,MAAM;AACpC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gCAAgC,MAAM;AACtC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,KAAK;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gCAAgC,MAAM;AACtC;AACA;AACA;AACA,kCAAkC,KAAK;AACvC;AACA;AACA,6BAA6B,MAAM;AACnC;AACA;AACA,mBAAmB,MAAM;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,gBAAgB;AAC/B;AACA;AACA,iCAAiC,OAAO;AACxC;AACA,8BAA8B,MAAM;AACpC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gCAAgC,MAAM;AACtC;AACA;AACA,6BAA6B,MAAM;AACnC;AACA,mBAAmB,MAAM;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,gBAAgB;AAC/B;AACA,kBAAkB,iBAAiB;AACnC;AACA;AACA,mBAAmB,YAAY;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,+BAA+B,MAAM;AACrC;AACA,6BAA6B,MAAM;AACnC;AACA,wBAAwB,MAAM;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,gBAAgB;AAC/B;AACA,iBAAiB,YAAY;AAC7B,qBAAqB,YAAY;AACjC;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,2BAA2B;AAC1C;AACA;AACA,eAAe,gBAAgB;AAC/B;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,gBAAgB;AAC/B;AACA,iBAAiB,YAAY;AAC7B;AACA,qBAAqB,YAAY;AACjC;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,2BAA2B;AAC1C;AACA;AACA,eAAe,gBAAgB;AAC/B;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,kCAAkC;AACrC;AACA,CAAC,EAAE,SAAS;AACZ;AACA,CAAC,EAAE,6CAA6C;AAChD,cAAc;;AAEd;;AAEA;AACA;AACA;AACA;AACA,eAAe,SAAS;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA;AACA;;;AAGA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;;AAEA;AACA,eAAe,MAAM;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,0BAA0B,MAAM;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA,qBAAqB,OAAO;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE,kDAAkD;AACrD;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,CAAC,EAAE,yBAAyB;AAC5B;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA,eAAe,eAAe;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,eAAe,aAAa;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE,6GAA6G;AAChH;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,uDAAuD,iBAAiB;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;;AAEA;AACA;AACA;AACA,uDAAuD,iBAAiB;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uDAAuD,iBAAiB;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE,0CAA0C;AAC7C;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,EAAE;AACzB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B;AACA,gCAAgC,oBAAoB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC;AACxC;AACA;AACA,uBAAuB;AACvB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,CAAC,IAAI;;AAEL,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,aAAa;AACb,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE,mDAAmD;AACtD,oBAAoB;AACpB;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,gBAAgB;AAC/B;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,MAAM;AACN;AACA;AACA;AACA;AACA,mBAAmB,gBAAgB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,iBAAiB;AACpC;AACA,qBAAqB,gBAAgB;AACrC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,aAAa;AACd,CAAC,EAAE,kCAAkC;AACrC;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE,iBAAiB;AACpB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,MAAM;AACrB;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,eAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,KAAK;AACpB;AACA;;AAEA,eAAe,KAAK;AACpB;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE,4HAA4H;AAC/H;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ,mBAAmB;AACnB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,MAAM;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,aAAa,qIAAqI;AACnJ,CAAC,EAAE,qCAAqC;AACxC,cAAc;;AAEd;;AAEA;AACA;AACA;AACA;AACA,eAAe,SAAS;AACxB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,kBAAkB;AACrB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA,mBAAmB,cAAc;AACjC;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,KAAK;AACpB;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA,GAAG;AACH;;AAEA;;AAEA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA,aAAa,sBAAsB;AACnC;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,sBAAsB;AACnC;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,aAAa,mBAAmB;AAChC;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,gBAAgB;AAC/B;AACA;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB,iBAAiB;AAClC;AACA;AACA,mBAAmB,gBAAgB;AACnC;AACA;AACA,qBAAqB,eAAe;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,SAAS;AACjC;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,CAAC,EAAE,uHAAuH;AAC1H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,8CAA8C,eAAe;AAC7D;AACA;AACA,6BAA6B,eAAe;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,SAAS,eAAe;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C;AAC9C,0BAA0B;AAC1B;AACA;AACA,kBAAkB,YAAY;AAC9B,iBAAiB,iBAAiB,SAAS;AAC3C;AACA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,oDAAoD,eAAe;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,eAAe;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,6BAA6B;AAC7B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,8CAA8C;AAC9C;AACA;AACA;AACA,YAAY;;AAEZ,MAAM;AACN;AACA;AACA,uCAAuC;AACvC;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,kBAAkB;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD;AACpD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;;AAErB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,0CAA0C;AAC1C;AACA;;AAEA;AACA;AACA,mBAAmB;AACnB,qBAAqB;AACrB;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,0BAA0B;AAC7C,mBAAmB,0BAA0B;AAC7C,mBAAmB,0BAA0B;AAC7C,mBAAmB;AACnB,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,cAAc,eAAe,cAAc;AACrD;AACA,oDAAoD;AACpD;AACA,+BAA+B,cAAc;AAC7C;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,8CAA8C;AAC9C;AACA;;AAEA;AACA;;AAEA;AACA,iCAAiC;AACjC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,gBAAgB;AAChB,6BAA6B;AAC7B;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,sBAAsB;AACtB;AACA;;AAEA;AACA,uBAAuB,wBAAwB;AAC/C,uBAAuB,wBAAwB;AAC/C,uBAAuB,wBAAwB;AAC/C,uBAAuB,2BAA2B;AAClD,kCAAkC;AAClC;AACA;AACA,cAAc;AACd;AACA;AACA,WAAW;AACX,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL,IAAI;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;;AAED,CAAC,GAAG;AACJ;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,wBAAwB;AAC3B;;AAEA;AACA,kBAAkB;AAClB;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;;AAEL;AACA;;AAEA,CAAC,GAAG;AACJ;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE,wBAAwB;AAC3B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA,CAAC;;AAED,CAAC,GAAG;AACJ;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE,oBAAoB,EAAE,GAAG;AAC5B,CAAC;;AAED,CAAC,aAAa,mBAAmB,qBAAM,mBAAmB,qBAAM,mFAAmF;AACnJ,CAAC,GAAG,EAAE,GAAG;AACT,CAAC;;;;;;;;;;;;ACrxjQD;AACA;AACA;AACA;AACA;AACA;;AAEa;;AAEb;;AAEA,IAAI,IAAqC;AACzC,6BAA6B,mBAAO,CAAC,yFAA4B;AACjE;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,WAAW;AACtB;AACA;AACA;AACA,MAAM,IAAqC;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6GAA6G;AAC7G;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,4DAA4D;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,IAAqC;AAC3C;AACA;AACA;;AAEA;;;;;;;;;;;;ACrGA;AACA;AACA;AACA;AACA;AACA;;AAEa;;AAEb,cAAc,mBAAO,CAAC,kDAAU;AAChC,aAAa,mBAAO,CAAC,4DAAe;;AAEpC,2BAA2B,mBAAO,CAAC,yFAA4B;AAC/D,qBAAqB,mBAAO,CAAC,qEAAkB;;AAE/C;AACA;;AAEA,IAAI,IAAqC;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,2CAA2C;;AAE3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,SAAS;AACtB,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,8BAA8B;AAC9B,QAAQ;AACR;AACA;AACA;AACA;AACA,+BAA+B,KAAK;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,4BAA4B;AAC5B,OAAO;AACP;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,QAAQ,IAAqC;AAC7C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,SAAS,KAAqC;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,sBAAsB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU,IAAqC;AAC/C;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,sBAAsB,2BAA2B;AACjD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM,KAAqC,4FAA4F,CAAM;AAC7I;AACA;;AAEA,oBAAoB,gCAAgC;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,sBAAsB,gCAAgC;AACtD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;;;;;;;;;;AC9kBA;AACA;AACA;AACA;AACA;AACA;;AAEA,IAAI,IAAqC;AACzC,gBAAgB,mBAAO,CAAC,kDAAU;;AAElC;AACA;AACA;AACA,mBAAmB,mBAAO,CAAC,uFAA2B;AACtD,EAAE,KAAK,EAIN;;;;;;;;;;;;AClBD;AACA;AACA;AACA;AACA;AACA;;AAEa;;AAEb;;AAEA;;;;;;;;;;;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEa;;AAEb,IAAI,IAAqC;AACzC;AACA;;AAEA,YAAY,mBAAO,CAAC,4CAAO;AAC3B,cAAc,mBAAO,CAAC,4DAAe;AACrC,gBAAgB,mBAAO,CAAC,oDAAW;AACnC,cAAc,mBAAO,CAAC,8DAAmB;;AAEzC;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,2FAA2F,aAAa;AACxG;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,+FAA+F,eAAe;AAC9G;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK,GAAG;;AAER,kDAAkD;AAClD;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gCAAgC;;AAEhC,kBAAkB;;AAElB,oBAAoB;;AAEpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,gCAAgC;;AAEhC,kCAAkC;AAClC,iCAAiC;AACjC;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;;AAEA,sCAAsC;;AAEtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,kBAAkB,yBAAyB;AAC3C;AACA;AACA;;AAEA;;AAEA;AACA;AACA,kBAAkB;AAClB;;AAEA,gBAAgB;AAChB;AACA;AACA;;AAEA,2BAA2B;AAC3B;AACA;;AAEA,iBAAiB;AACjB;AACA;AACA;;AAEA,4BAA4B;AAC5B;;AAEA,iBAAiB;AACjB;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;;;AAGA,qBAAqB;;AAErB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;;AAEJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;;AAEJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;;AAEJ;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;;AAEJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;;AAEJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,YAAY;AACvB,WAAW,QAAQ;AACnB,WAAW,GAAG;AACd;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA,IAAI;;;AAGJ;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC;;AAEvC;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA,uBAAuB;AACvB;AACA,SAAS;AACT,wBAAwB;AACxB;AACA,SAAS;AACT,wBAAwB;AACxB;AACA,SAAS;AACT,yBAAyB;AACzB;AACA,SAAS;AACT,yBAAyB;AACzB;AACA,SAAS;AACT,kCAAkC;AAClC;AACA,SAAS;AACT,4BAA4B;AAC5B;AACA,SAAS;AACT,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,MAAM;;;AAGN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,2DAA2D;;AAE3D;AACA;;AAEA;AACA,yDAAyD;AACzD;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;;AAGT;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA,QAAQ;AACR;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,kBAAkB;;;AAGlB;AACA;AACA,cAAc;AACd;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;AACA;;AAEA;AACA,IAAI;;;AAGJ;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;;AAEN;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,4CAA4C;AAC5C;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,GAAG,GAAG;AACN;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;AACA;AACA;AACA;;AAEA,kCAAkC;AAClC;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA,4BAA4B;AAC5B;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;;AAEA;AACA;AACA,0DAA0D;AAC1D;;AAEA;AACA;AACA;;AAEA,kEAAkE;AAClE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA,oBAAoB,kBAAkB;AACtC;;AAEA;AACA;AACA,QAAQ;AACR;AACA,+BAA+B;AAC/B;;;AAGA;;AAEA;AACA;AACA;AACA;AACA,QAAQ;AACR;;;AAGA,uCAAuC;AACvC;AACA;;AAEA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,sBAAsB;AACtB;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,OAAO;AACP,MAAM;;;AAGN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,oBAAoB,2BAA2B;AAC/C;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,oBAAoB,2BAA2B;AAC/C;AACA;AACA;;AAEA,qBAAqB,qBAAqB;AAC1C;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;;AAEA,sBAAsB,sBAAsB;AAC5C;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA,mBAAmB;AACnB;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;;AAGA,4BAA4B;AAC5B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,kCAAkC;;AAElC;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,oCAAoC;;AAEpC;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;;AAEA,sCAAsC;AACtC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,YAAY;AACvB,WAAW,QAAQ;AACnB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,YAAY;AACvB,WAAW,QAAQ;AACnB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,YAAY,QAAQ;AACpB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA,6CAA6C;AAC7C;;AAEA;AACA;AACA;AACA,GAAG;AACH,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,GAAG;AACd,YAAY,QAAQ;AACpB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,yBAAyB;AACzB;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,+BAA+B;;AAE/B,4CAA4C;AAC5C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,YAAY;AACvB,WAAW,QAAQ;AACnB;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU,kCAAkC;AAC5C;AACA;AACA;AACA,IAAI;AACJ;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA,oBAAoB,sBAAsB;AAC1C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,iCAAiC,IAAI;AAC3C;AACA;AACA,MAAM,iCAAiC,IAAI;AAC3C;AACA,6DAA6D;AAC7D,MAAM,iCAAiC,IAAI;AAC3C;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA,6NAA6N;AAC7N;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA,CAAC;;AAED;;AAEA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,4EAA4E,YAAY;AACxF;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,2HAA2H,8BAA8B;AACzJ;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mFAAmF;AACnF;;AAEA;AACA;;AAEA;AACA;AACA,QAAQ,0CAA0C;;;AAGlD;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,gGAAgG;AAChG;;AAEA;AACA;AACA;AACA,QAAQ,0CAA0C;;;AAGlD;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,MAAM;;;AAGN;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;;;AAGN;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,8EAA8E;;AAE9E;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,sJAAsJ,iBAAiB;AACvK,QAAQ;AACR,sJAAsJ,iBAAiB,wDAAwD,mBAAmB,gBAAgB,+BAA+B;AACjS;;AAEA;AACA;AACA,MAAM;AACN;;;AAGA;AACA;AACA,MAAM;;;AAGN;AACA;AACA;AACA,MAAM;;;AAGN;AACA,oGAAoG,GAAG;;AAEvG;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY,gBAAgB;AAC5B;;AAEA;AACA;AACA;AACA,uEAAuE;;AAEvE;AACA;AACA,IAAI;AACJ;;;AAGA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,8CAA8C;;AAE9C;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,oBAAoB,0BAA0B;AAC9C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,YAAY,WAAW;AACvB;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,2CAA2C;AAC3C;;AAEA;AACA;AACA,sBAAsB;;AAEtB;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA;AACA;;AAEA,2BAA2B;AAC3B;AACA;;AAEA,sCAAsC;AACtC;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,oEAAoE;AACpE;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA,iBAAiB;;AAEjB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,eAAe;AAC7B;AACA;AACA;AACA,QAAQ;;;AAGR,wEAAwE;;AAExE;AACA,+DAA+D;AAC/D;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA,QAAQ;;;AAGR;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,wBAAwB;;AAExB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,UAAU;AACrB,WAAW,GAAG;AACd,WAAW,MAAM;AACjB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,UAAU;AACrB,WAAW,GAAG;AACd,WAAW,MAAM;AACjB;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;;AAEN;AACA;AACA,KAAK;;AAEL;AACA;AACA,MAAM;;AAEN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAM;AACN,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,IAAI;AACJ;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;;;AAGR;AACA,MAAM;AACN;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,QAAQ;AACR;;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;;;AAGJ;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;;;AAGJ;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF,uCAAuC;;AAEvC,+BAA+B;AAC/B;;AAEA;AACA;AACA,wBAAwB;;AAExB;AACA,uCAAuC;;AAEvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,IAAI;AACJ;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,WAAW;AACX;AACA;AACA,QAAQ;AACR;;AAEA;AACA,0EAA0E;AAC1E;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAM;;;AAGN;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,qCAAqC;;AAErC;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAQ;;;AAGR;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,wCAAwC;AACxC;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,qEAAqE;AACrE;AACA;;AAEA,oBAAoB,iCAAiC;AACrD;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,mBAAmB,4CAA4C;AAC/D;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,+CAA+C;AAC/C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa;AACb;;;AAGA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,iCAAiC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA,0ZAA0Z;;AAE1Z;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,uBAAuB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,kBAAkB,uBAAuB;AACzC;AACA;AACA;;AAEA;AACA,oDAAoD;AACpD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,uBAAuB;;AAEvB;AACA,qCAAqC;;AAErC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,sCAAsC;;AAEtC;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;;;AAGA,uEAAuE;AACvE;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C;AAC9C;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA,EAAE;AACF;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,EAAE;AACF;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,2CAA2C;AAC3C;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,kBAAkB,gBAAgB;AAClC;AACA;;AAEA;AACA;AACA;AACA,mCAAmC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,4CAA4C;;AAE5C;AACA;AACA;AACA,uCAAuC;AACvC;;AAEA;AACA;AACA;AACA;AACA,uCAAuC;;AAEvC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC;;AAEtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C;;AAE9C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD;AACrD;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,0DAA0D;;AAE1D,qBAAqB;AACrB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;;;AAGA;AACA,IAAI;AACJ;;;AAGA;AACA,EAAE;;AAEF;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;;AAGA;AACA,QAAQ;AACR;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,+GAA+G;;AAE/G;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,kBAAkB,qBAAqB;AACvC;AACA;AACA;AACA;;AAEA;;AAEA,gBAAgB,eAAe;AAC/B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;;AAEA;AACA,qCAAqC;;AAErC;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,IAAI;AACJ;;;AAGA;AACA;AACA,IAAI;AACJ;;;AAGA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,EAAE;AACF;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;;AAEA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,gCAAgC;AAChC,QAAQ;AACR;AACA;;AAEA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;;AAEA;AACA,iCAAiC;AACjC,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B,KAAK;;AAEL;AACA;AACA;AACA,gBAAgB,SAAS;AACzB;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA,iCAAiC;AACjC;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA,oCAAoC;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,MAAM;AACN;AACA;;;AAGA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;;AAEA,mCAAmC;AACnC;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;;AAEA,oCAAoC;AACpC;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;;AAEA,wCAAwC;AACxC;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;;AAEA,wCAAwC;AACxC;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;;AAEA,0CAA0C;AAC1C;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY,QAAQ;AACpB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA,kDAAkD;AAClD;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA,uCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;;AAEA,sCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;;AAEA,oCAAoC;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;;AAEA,yCAAyC;AACzC;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;;AAEA,oCAAoC;AACpC;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;;AAEA,oCAAoC;;AAEpC;AACA;AACA;;AAEA;AACA;AACA,EAAE;AACF;AACA;;;AAGA,gFAAgF;AAChF;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAE;;;AAGF;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY;AACZ;;;AAGA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY;AACZ;;;AAGA;AACA;AACA,EAAE;;;AAGF;AACA;AACA,YAAY,SAAS;AACrB;;AAEA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,oCAAoC;AACpC;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,SAAS;AACrB;;;AAGA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;;;AAGA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY,SAAS;AACrB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,4CAA4C;AAC5C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,8GAA8G;AAC9G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,EAAE;;;AAGF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,WAAW;;AAEX;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,oBAAoB;AACpB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,IAAI;;;AAGJ,kBAAkB,kBAAkB;AACpC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,wBAAwB;AACnC,YAAY;AACZ;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,wBAAwB;AACnC,YAAY;AACZ;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,wBAAwB;AACnC,WAAW,QAAQ;AACnB,YAAY;AACZ;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,WAAW,YAAY;AACvB,YAAY;AACZ;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,2CAA2C;AAC3C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA,YAAY,YAAY;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;;;AAGR;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAM;;;AAGN;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,wBAAwB;AACnC,WAAW,QAAQ;AACnB;;AAEA;AACA;AACA,8CAA8C;AAC9C;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,+EAA+E;AAC/E;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;;;AAGN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;;AAEA,oBAAoB,sBAAsB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,YAAY;AACZ;;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;;;AAGJ;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2GAA2G;AAC3G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;;;AAGF,iTAAiT;AACjT;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,+CAA+C,QAAQ;AACvD;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ,qBAAqB,+BAA+B;AACpD;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,kBAAkB,0BAA0B;AAC5C;AACA;AACA;AACA,wEAAwE;AACxE,IAAI;;;AAGJ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,qCAAqC;AACrC;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,gFAAgF;AAChF;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,0GAA0G;AAC1G;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,2BAA2B;;;AAG3B;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI;AACJ;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,+CAA+C;;AAE/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gCAAgC;;AAEhC;AACA;AACA;AACA,8BAA8B;;AAE9B;AACA,qCAAqC;;;AAGrC;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,8BAA8B;;AAE9B;AACA;AACA;AACA,8BAA8B;;AAE9B;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,wBAAwB;AACxB;AACA;AACA;AACA;AACA,IAAI;;AAEJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA,0BAA0B,OAAO;AACjC;AACA;;AAEA;;AAEA,0BAA0B,OAAO;AACjC;AACA,IAAI;;;AAGJ;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;AACA,IAAI;;;AAGJ;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,EAAE;AACF;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA,yEAAyE;AACzE;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA,iIAAiI,mBAAmB,gBAAgB,+BAA+B;AACnM,MAAM;AACN;AACA;AACA,KAAK;AACL;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;;;AAGR;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,MAAM,oGAAoG,kCAAkC;AAC5I;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB,0BAA0B;AAC5C;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA,4BAA4B;AAC5B;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,6DAA6D;AAC7D;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,gDAAgD;AAChD;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,OAAO;AACP,MAAM;AACN;AACA;AACA;AACA,sDAAsD;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;;;AAGJ;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,sBAAsB,4BAA4B;AAClD;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kDAAkD;AAClD;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,oDAAoD;AACpD;;AAEA;;AAEA;;AAEA;AACA;AACA,oDAAoD;AACpD;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM,2EAA2E,oGAAoG,kCAAkC;AACvN;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;;;AAGV;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,MAAM,oGAAoG;AAC1G;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mEAAmE;;AAEnE,+FAA+F;AAC/F;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,sBAAsB,4BAA4B;AAClD;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,8CAA8C;AAC9C;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,gDAAgD;AAChD;;AAEA;;AAEA;;AAEA;AACA,gDAAgD;AAChD;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,qBAAqB,wBAAwB;AAC7C;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA,sCAAsC;AACtC;AACA,gFAAgF;AAChF;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY;AACZ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C;;AAE/C;AACA,cAAc;;;AAGd;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,0DAA0D;AAC1D;AACA;AACA,wCAAwC;AACxC;AACA;AACA;AACA,2vBAA2vB;;AAE3vB;AACA;AACA;AACA,qCAAqC;;AAErC,wDAAwD;;AAExD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,iCAAiC;;AAEjC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;;;AAGA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C;;AAE1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS,cAAc;AACvB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD;AACvD;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C;AAC3C;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA,IAAI;;;AAGJ;AACA,EAAE;AACF;AACA;;AAEA;AACA,6CAA6C;AAC7C;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,+CAA+C;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,+CAA+C;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAY;AACZ;AACA;AACA;;;AAGA,0EAA0E;AAC1E;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,8BAA8B;AAC9B;AACA;;AAEA;AACA;AACA;AACA;AACA,2HAA2H;AAC3H;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA;;AAEA;AACA;;AAEA,oEAAoE;;AAEpE;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,EAAE;;;AAGF,2DAA2D;;AAE3D,qDAAqD;AACrD;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;;;AAGA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,oDAAoD;AACpD;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,qBAAqB;AACrB;AACA;;AAEA;AACA;AACA,6CAA6C;AAC7C;AACA;;AAEA,2HAA2H;AAC3H;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,0EAA0E;AAC1E;;AAEA;AACA,+CAA+C;;AAE/C;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,oEAAoE;AACpE;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,MAAM;;AAEN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;;;AAGN;AACA;;AAEA;AACA,yCAAyC;;AAEzC;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,2BAA2B;AAC3B;AACA;;AAEA;AACA;AACA;AACA;AACA,yBAAyB;;AAEzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC;AACzC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B;;AAE5B;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB,mBAAmB;AACpC;;AAEA;AACA;AACA,cAAc;AACd;AACA,SAAS;AACT;AACA,QAAQ;AACR;AACA;AACA;AACA,UAAU;;;AAGV;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,oBAAoB;AACpB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,8DAA8D;AAC9D,qDAAqD;AACrD,2DAA2D;AAC3D,2CAA2C;AAC3C;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,sDAAsD;;AAEtD;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,MAAM;AACN;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,+CAA+C;;AAE/C;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,MAAM;;;AAGN;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;;AAEA;AACA,QAAQ;AACR;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B;;AAE1B;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,4BAA4B;;AAE5B;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC;AACtC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,+DAA+D;;AAE/D,4DAA4D;AAC5D;;AAEA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;;;AAGV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAQ;;;AAGR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,oDAAoD,yDAAyD;AAC7G,8BAA8B;;AAE9B;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAQ;;;AAGR;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C;;AAE1C;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAY;AACZ;AACA;AACA;;AAEA;AACA,UAAU,yBAAyB;;;AAGnC;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;;;AAGJ;;AAEA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;;AAEA;AACA;;AAEA;AACA,UAAU;;;AAGV;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;;;AAGV,yBAAyB;AACzB;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,6CAA6C;;AAE7C;;AAEA;AACA,iCAAiC;AACjC;;AAEA;AACA;AACA,mCAAmC;;AAEnC;AACA;AACA,MAAM;AACN;AACA;;AAEA,wCAAwC;AACxC;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA,oCAAoC;AACpC;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;;;AAGV;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;;;AAGV;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA,iDAAiD;AACjD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;;AAEN;AACA;AACA;;AAEA;AACA;AACA,8CAA8C;AAC9C;AACA;AACA;AACA;AACA,wCAAwC;AACxC;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oBAAoB,oBAAoB;AACxC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,6BAA6B;AAC7B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,IAAI;;;AAGJ,kGAAkG;AAClG,gDAAgD;AAChD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uCAAuC;;AAEvC;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,8IAA8I;;AAE9I;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA,UAAU;AACV,kEAAkE,4CAA4C;AAC9G;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;;AAEA;AACA,kCAAkC;AAClC,QAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;;;AAGA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,EAAE;;;AAGF;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;;;AAGA;AACA,sDAAsD;AACtD;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA,mIAAmI;AACnI;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,MAAM;AACN;;;AAGA;AACA;AACA,IAAI;AACJ;;;AAGA;AACA;AACA;AACA;AACA,EAAE;;;AAGF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA,mIAAmI;AACnI;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;;;AAGA;AACA;AACA,IAAI;AACJ;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,qCAAqC;;AAErC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,8JAA8J,yCAAyC;AACvM;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,EAAE;AACF;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;;;AAGA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;;;AAGN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,sBAAsB,wBAAwB;AAC9C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAW,kDAAkD;AAC7D;AACA;AACA;AACA,QAAQ;AACR;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,6BAA6B;AAC1C;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;;AAEA;AACA,MAAM;;;AAGN,wEAAwE;;AAExE,WAAW,6BAA6B;AACxC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,QAAQ;;;AAGR;AACA;AACA;AACA;;AAEA;AACA,QAAQ;AACR;;;AAGA;;AAEA;AACA;;AAEA;;AAEA,eAAe,aAAa;AAC5B;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAW,iCAAiC;AAC5C;AACA;AACA;AACA,QAAQ;AACR;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,YAAY;AACzB;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;;AAEA;AACA,MAAM;;;AAGN,wEAAwE;;AAExE,WAAW,YAAY;AACvB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,UAAU;;;AAGV;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C,MAAM;AACnD;AACA;;AAEA;AACA;AACA,MAAM;;;AAGN;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;;;AAGN;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,EAAE;;AAEF;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0DAA0D;AAC1D;;AAEA,+CAA+C;AAC/C;AACA;AACA;AACA;;AAEA;AACA,8DAA8D;;AAE9D;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,8DAA8D;;AAE9D;AACA;AACA,IAAI;AACJ;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,gCAAgC;AAChC;AACA;AACA;;AAEA,oCAAoC;AACpC;AACA;AACA;AACA;AACA;AACA;;AAEA,wCAAwC;AACxC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,4CAA4C;;AAE5C;AACA;AACA,IAAI;;;AAGJ;AACA;AACA,IAAI;AACJ;;;AAGA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,6HAA6H;;AAE7H,qCAAqC;AACrC;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,yBAAyB;AACzB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,kBAAkB,kCAAkC;AACpD;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,2BAA2B;AAC3B;;AAEA,sCAAsC;AACtC;AACA;AACA;;AAEA;AACA,+BAA+B;AAC/B,oDAAoD;AACpD;AACA;;AAEA,0CAA0C;AAC1C;AACA;AACA;;AAEA;AACA,0BAA0B;;AAE1B,iCAAiC;AACjC;AACA;;AAEA;AACA,kCAAkC;AAClC;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,wBAAwB,8BAA8B;AACtD;AACA;AACA,gDAAgD;AAChD;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,kBAAkB,4CAA4C;AAC9D;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,kCAAkC;;AAElC;AACA;;AAEA;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA,8CAA8C;;AAE9C;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,QAAQ;;;AAGR;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN,IAAI;AACJ;;;AAGA;;AAEA;AACA;AACA,IAAI;AACJ;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI;AACJ;AACA;;AAEA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,6BAA6B;;AAE7B,qCAAqC;;AAErC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;;;AAGA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;;;AAGV;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA,MAAM;;AAEN;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,uCAAuC;AACvC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,2CAA2C;AACjD;;;AAGA;AACA;AACA;;AAEA,mCAAmC;AACnC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,4CAA4C;;AAE5C,sCAAsC;AACtC;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qDAAqD;;AAErD;AACA;AACA,GAAG;AACH;AACA;;AAEA,kCAAkC;AAClC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,oCAAoC;AACpC;AACA;AACA;;AAEA,oCAAoC;;AAEpC;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;;;AAGA;AACA;AACA,GAAG,qCAAqC;;AAExC;AACA;AACA;AACA;;AAEA;AACA,8DAA8D;;AAE9D;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG,wBAAwB;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA,yKAAyK,0CAA0C;AACnN;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;;AAEA,8CAA8C;AAC9C;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,oCAAoC;AACpC;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,sEAAsE;AACtE;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,eAAe;AACzB,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qDAAqD;AACrD;AACA;AACA;AACA;AACA;AACA,iGAAiG;AACjG;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,gCAAgC;;AAEhC;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,oCAAoC;;AAEpC;AACA;AACA;AACA,gDAAgD;;AAEhD;AACA;;AAEA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA,UAAU;;;AAGV;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA,QAAQ;;;AAGR;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iDAAiD;AACjD;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,kDAAkD;;AAElD;AACA;AACA;AACA,IAAI;AACJ;;AAEA;AACA,0EAA0E;;AAE1E;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,EAAE;AACF;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,oCAAoC;AACpC;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;;AAGA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC;;AAEvC;AACA,MAAM;;;AAGN;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,IAAI;AACJ;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,2CAA2C;;AAE3C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA,IAAI;;;AAGJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;;;AAGA,iDAAiD;;AAEjD;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gDAAgD;AAChD;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,wBAAwB,4CAA4C;AACpE;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;;AAErC;AACA;;AAEA;AACA;AACA;AACA;AACA,iCAAiC;;AAEjC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;;AAErC;AACA,IAAI;;;AAGJ,uCAAuC;AACvC;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;;AAErC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;;;AAGJ;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,MAAM;;;AAGN,yCAAyC;;AAEzC;AACA,uCAAuC;AACvC;AACA;;AAEA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAE;;;AAGF;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,+CAA+C;;AAE/C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,wDAAwD;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,wDAAwD;AACxD;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA,uDAAuD;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,MAAM;AACN;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;;AAEA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,iGAAiG;AACjG;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,oDAAoD;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;;AAEA;AACA;AACA,IAAI;AACJ,gGAAgG;AAChG;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oCAAoC;;AAEpC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,QAAQ;AACR;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,yNAAyN,GAAG;;AAE5N;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,wBAAwB,qBAAqB;AAC7C;AACA;AACA;AACA;AACA,QAAQ;AACR;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,YAAY;AAC/B;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,4CAA4C;;AAE5C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAY;;;AAGZ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,qCAAqC;AACrC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,gDAAgD;;AAEhD;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;;;AAGA;AACA,wCAAwC;;AAExC;AACA;AACA;AACA,mDAAmD;;AAEnD;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,MAAM;AACN;;;AAGA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA,0CAA0C;;AAE1C;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,gCAAgC;AAChC;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;;;AAGA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA,oHAAoH;AACpH;;AAEA;;AAEA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;;;AAGA;AACA,cAAc;AACd;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,6DAA6D;;AAE7D;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ,oCAAoC;AAC5C;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mDAAmD;AACnD;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;;AAGA;AACA,+CAA+C;AAC/C;AACA;;AAEA,sHAAsH;;AAEtH,gDAAgD;AAChD;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,UAAU;AACV;;;AAGA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,UAAU;AACV;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,cAAc;;;AAGd;AACA;;AAEA,qDAAqD;AACrD;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,iDAAiD;AACjD;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,+CAA+C;AAC/C;;AAEA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,cAAc;;AAEd;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,8CAA8C;;AAE9C;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,0DAA0D;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,oBAAoB;AACpB;AACA;;;AAGA;AACA;AACA;;AAEA,sEAAsE;;AAEtE,iEAAiE;AACjE;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA,YAAY;;AAEZ,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA,wCAAwC;AACxC;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA,qDAAqD;;AAErD;AACA;AACA;AACA;AACA;AACA,uFAAuF;;AAEvF;AACA;AACA,oBAAoB;;;AAGpB;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B;AACA;;AAEA;;AAEA;AACA;AACA,YAAY;AACZ;AACA;;AAEA,gEAAgE;;AAEhE;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,wEAAwE;;AAExE;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,4CAA4C;AAC5C;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,yDAAyD;AACzD;;AAEA;AACA;AACA;;AAEA;;AAEA,QAAQ,IAAI;AACZ;AACA;AACA,wDAAwD;AACxD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;;AAGA,iCAAiC;AACjC;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;;AAEA,iHAAiH;AACjH;AACA;AACA;;AAEA,yCAAyC;AACzC,MAAM,KAAK,EAKN;AACL,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;;AAEA;AACA,gDAAgD;;AAEhD,8BAA8B;AAC9B;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C;;AAE/C;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mCAAmC;;AAEnC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA,sHAAsH;;AAEtH;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA,6DAA6D;AAC7D;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;;;AAGA,uEAAuE;;AAEvE;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA,QAAQ;AACR;;;AAGA;AACA,MAAM,kCAAkC;AACxC;;;AAGA;AACA,IAAI;AACJ;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA,0EAA0E;;AAE1E;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,IAAI;AACJ;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;;AAGH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAmD;AACnD;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,cAAc;AACd,yNAAyN,qCAAqC,wFAAwF,2BAA2B,qBAAqB,QAAQ,aAAa;AAC3Z,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY;AACZ;AACA,mDAAmD;AACnD;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,iDAAiD;AACjD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA,QAAQ;AACR;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA,QAAQ,4IAA4I;AACpJ;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;;AAEN;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,EAAE;AACF;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,uCAAuC;AACvC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;;;AAGA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,MAAM;;;AAGN;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA,sDAAsD;;AAEtD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,8BAA8B;;AAE9B;AACA;;AAEA,6CAA6C;AAC7C;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI,+BAA+B;AACnC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI,+BAA+B;AACnC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,sBAAsB;AACtB;;AAEA,oCAAoC;;AAEpC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,gDAAgD;AAChD;;AAEA;AACA;AACA,QAAQ;AACR;AACA,QAAQ;;AAER,MAAM;AACN;AACA;AACA;AACA;AACA,yCAAyC;;AAEzC;AACA;AACA;AACA;AACA,MAAM;AACN,yCAAyC;;AAEzC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,qDAAqD;AACrD;AACA;;AAEA;AACA,wCAAwC;;AAExC;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,kDAAkD;AAClD;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA,EAAE;AACF;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;;AAEvB,kCAAkC;;AAElC,+BAA+B;;AAE/B,2BAA2B;;AAE3B,6CAA6C;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,sDAAsD;;AAEtD,mDAAmD;;AAEnD,yCAAyC;AACzC;AACA;AACA;;AAEA,+CAA+C;AAC/C;;AAEA,8CAA8C;;AAE9C,8CAA8C;;AAE9C;AACA,oCAAoC;AACpC;;AAEA;AACA,gCAAgC;AAChC;;AAEA,mDAAmD;AACnD;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C;;AAE5C;AACA;AACA;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;;AAEA,oCAAoC;AACpC;AACA;;AAEA;AACA;AACA,wCAAwC;AACxC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,IAAI;AACJ;;;AAGA,qDAAqD;AACrD;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA,IAAI;;;AAGJ;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;;;AAGJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;;AAEA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,MAAM;;;AAGN;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;;AAGA;AACA,EAAE;AACF;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,EAAE;AACF,SAAS;AACT;AACA;AACA;;;AAGA;AACA,gDAAgD;AAChD;;AAEA,gDAAgD;;AAEhD,6GAA6G;;AAE7G;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,IAAI;;;AAGJ;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;;;AAGA;AACA,IAAI;;;AAGJ;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA,EAAE;AACF;;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;;;AAGA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,2CAA2C;AAC3C;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,0CAA0C;AAC1C;;AAEA;AACA;AACA;AACA;AACA,4FAA4F;;AAE5F;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;;;AAGA;AACA;AACA;AACA,UAAU;;;AAGV;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,oEAAoE;;;AAGpE;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;;;AAGV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA,yCAAyC;AACzC;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;;;AAGA;AACA;AACA;AACA,oBAAoB;AACpB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;;AAGA;AACA;;AAEA,iCAAiC;AACjC;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,IAAI;;;AAGJ;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,MAAM;AACN,+CAA+C;AAC/C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,oCAAoC;;AAEpC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B;;AAEA;;AAEA;AACA;AACA,2DAA2D;AAC3D;AACA;AACA;AACA,oDAAoD;AACpD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA,MAAM;;;AAGN;AACA,IAAI;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,yCAAyC;AACzC;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI;;AAEJ;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA,EAAE;;AAEF;;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,yCAAyC;AACzC;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI;;AAEJ;;AAEA;AACA;AACA;;AAEA;AACA;;;AAGA;;AAEA;AACA,IAAI;;;AAGJ;AACA,6CAA6C;;AAE7C;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,4CAA4C;;AAE5C;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA,yEAAyE;;AAEzE;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;;AAGA,yCAAyC;AACzC;AACA;;AAEA;AACA;AACA;AACA,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,6CAA6C;;;AAG7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,wEAAwE;;AAExE;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,MAAM;;;AAGN,iCAAiC;;AAEjC;AACA,IAAI,gCAAgC;;;AAGpC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,+BAA+B;;AAE/B;AACA;AACA;AACA;AACA,2DAA2D;AAC3D;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;;AAEJ;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI,4CAA4C;AAChD;;;AAGA,4BAA4B;AAC5B;;AAEA;AACA,0CAA0C;AAC1C;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;;;AAGJ;;AAEA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;;AAEA;AACA;AACA,mDAAmD;;AAEnD,wCAAwC;AACxC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM,6BAA6B;;;AAGnC;;AAEA;AACA;AACA;AACA;AACA,MAAM;;;AAGN;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,MAAM;;AAEN,0CAA0C;AAC1C;AACA;AACA;;AAEA,iCAAiC;AACjC;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,MAAM;;AAEN,uBAAuB;AACvB;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,IAAI;AACJ;AACA,iCAAiC;AACjC;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,IAAI;;;AAGJ,sCAAsC;;AAEtC;AACA;AACA;AACA;AACA;;AAEA,wBAAwB,4BAA4B;AACpD;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;;AAEA;AACA;AACA,IAAI;AACJ;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA,IAAI;;;AAGJ;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA,uCAAuC;AACvC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,uCAAuC;AACvC;;AAEA,0CAA0C;;AAE1C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,0CAA0C;;AAE1C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,iDAAiD;AACjD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,kBAAkB,2BAA2B;AAC7C;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;;AAEA,mBAAmB,0BAA0B;AAC7C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;;;AAGA;;AAEA;AACA,4CAA4C;;AAE5C;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,4BAA4B;AAC5B;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,uBAAuB;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B;;AAE1B;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,MAAM;AACN;;;AAGA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,MAAM;AACN;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA,MAAM;AACN;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;;;AAGA;AACA;AACA,MAAM;AACN;;;AAGA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,MAAM;AACN;AACA;;AAEA,oCAAoC;AACpC;;AAEA;AACA;;AAEA;AACA,QAAQ;AACR;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,QAAQ,4CAA4C;AACpD;;;AAGA;AACA,8BAA8B;AAC9B;AACA;;AAEA,yCAAyC;;AAEzC;;AAEA;AACA;AACA;AACA,QAAQ;;;AAGR;;AAEA;AACA,8CAA8C;AAC9C;;AAEA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+GAA+G;;AAE/G;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAE;;;AAGF;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,iBAAiB,KAAK,iCAAiC,mCAAmC;AAC1F,4DAA4D,cAAc,KAAK,eAAe,mCAAmC;AACjI,QAAQ;AACR;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iMAAiM,oDAAoD,EAAE;AACvP;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,8LAA8L,oDAAoD,EAAE;AACpP,QAAQ;AACR;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA,iFAAiF;;AAEjF,2CAA2C;AAC3C;AACA,2BAA2B;AAC3B;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,+EAA+E;AAC/E;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,OAAO;AACP,MAAM;AACN,8DAA8D;;AAE9D;AACA;AACA,OAAO;AACP;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,GAAG,GAAG;AACN;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,KAAK;AACL,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,eAAe;AACf;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;;AAEA,0BAA0B;;AAE1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,MAAM;;;AAGN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,MAAM;;;AAGN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,iCAAiC;;AAEjC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;;AAEA;AACA;;AAEA;AACA;AACA,MAAM;;;AAGN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAM;;;AAGN;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,2CAA2C;AAC3C,QAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA,yDAAyD;AACzD;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;;AAEzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB;;AAEpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC;AACxC;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,EAAE;;AAEF;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ,gDAAgD;;AAEhD,wCAAwC;AACxC;;AAEA,oCAAoC;;AAEpC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,oDAAoD;AACpD;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;;AAErC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD;;AAEtD,wCAAwC;AACxC;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,yCAAyC;;AAEzC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,4EAA4E;;AAE5E;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,uEAAuE;AACvE;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,wEAAwE;AACxE;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,2EAA2E;AAC3E;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8DAA8D;;AAE9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,mDAAmD;AACnD;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAY;AACZ;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;;AAEA,0EAA0E;AAC1E;AACA;;AAEA,8CAA8C;AAC9C;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,EAAE;;;AAGF;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,+DAA+D;;AAE/D;AACA;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA,MAAM;;;AAGN;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,+DAA+D;;AAE/D;AACA,mCAAmC;;AAEnC;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,MAAM;AACN,sBAAsB,wBAAwB;AAC9C;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,+DAA+D,QAAQ;;AAEvE;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;;AAGL;AACA;;AAEA;AACA;AACA;AACA,iCAAiC;AACjC;AACA;AACA;AACA;;AAEA,sCAAsC;AACtC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,iCAAiC;AACjC;AACA;AACA;AACA;;AAEA,sCAAsC;AACtC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,iCAAiC;AACjC;AACA;AACA;AACA;;AAEA,sCAAsC;AACtC;AACA;AACA,KAAK;;;AAGL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,oBAAoB,2BAA2B;AAC/C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,oFAAoF;;AAEpF;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;;;AAGN;AACA;AACA,KAAK;AACL,IAAI;AACJ;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,MAAM;;;AAGN;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,iMAAiM,cAAc;AAC/M;AACA,IAAI;;;AAGJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;;;AAGN;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK,GAAG;AACR;;AAEA;AACA,IAAI;AACJ;AACA;;AAEA,8EAA8E;;AAE9E;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;;;AAGA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA,+CAA+C;;AAE/C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,0DAA0D;AAC1D,oBAAoB;AACpB,mBAAmB;AACnB,iBAAiB;AACjB,eAAe;AACf,cAAc;AACd,8BAA8B;AAC9B,+BAA+B;AAC/B,6BAA6B;AAC7B,2CAA2C;AAC3C,eAAe;AACf,GAAG;AACH;;;;;;;;;;;;ACrpzBa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,IAAqC;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA,IAAI,KAAqC,EAAE,EAK1C,CAAC;AACF,EAAE,mIAA0D;AAC5D;;;;;;;;;;;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEa;;;;AAIb,IAAI,IAAqC;AACzC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2EAA2E;AAC3E;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD;;AAEjD;AACA;AACA;AACA,kDAAkD;;AAElD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iBAAiB;AACjB,sBAAsB;AACtB,uBAAuB;AACvB,uBAAuB;AACvB,eAAe;AACf,kBAAkB;AAClB,gBAAgB;AAChB,YAAY;AACZ,YAAY;AACZ,cAAc;AACd,gBAAgB;AAChB,kBAAkB;AAClB,gBAAgB;AAChB,mBAAmB;AACnB,wBAAwB;AACxB,yBAAyB;AACzB,yBAAyB;AACzB,iBAAiB;AACjB,oBAAoB;AACpB,kBAAkB;AAClB,cAAc;AACd,cAAc;AACd,gBAAgB;AAChB,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AAExJ,uCAAuC,wEAAwE,0CAA0C,8CAA8C,MAAM,uEAAuE,IAAI,eAAe,YAAY;;AAEnT,8BAA8B,gGAAgG,mDAAmD;;AAEjL;AACA;AACA;AACA;AACA,kKAAkK;AAClK;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAY;;;AAGZ;AACA;AACA;AACA;AACA;AACA,WAAW;AACX,SAAS;AACT;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,iCAAiC;;AAEjC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;;AAER,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;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AU,wDAAc;AACxB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB,6DAAoB;;AAEtC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS,gDAAmB;AAC5B,eAAe,KAAqC,GAAG,wDAAS,8DAA8D,CAAgB;AAC9I;AACA;AACA;AACA,mBAAmB,wDAAc,mFAAmF,2EAAQ,GAAG;AAC/H;AACA,KAAK,SAAS;AACd;;AAEA;AACA;AACA;AACA;;AAEA,WAAW,gDAAmB;AAC9B;AACA;AACA,OAAO;AACP;AACA,2BAA2B,wDAAc;;AAEzC,aAAa,2DAAiB,eAAe,2EAAQ,GAAG;AACxD;AACA,SAAS;AACT;AACA;AACA,OAAO;AACP;AACA,KAAK;AACL,GAAG;AACH;;AAEA,IAAI,IAAqC;AACzC;AACA,UAAU,wDAAc;AACxB,UAAU,0DAAgB;AAC1B,QAAQ,2DAAmB,EAAE,0DAAgB,EAAE,0DAAgB;AAC/D;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,8DAA8D;AAC9D;AACA;AACA,eAAe,qDAAY;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAI;AACX;AACA,GAAG;AACH;;AAEA;AACA,SAAS,iDAAoB;AAC7B;;AAEA;AACA;AACA,EAAE,KAAqC,GAAG,qDAAO,8MAA8M,CAAM;AACrQ;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA,EAAE,iFAAc;;AAEhB;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AEA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;;AAGL;;AAEA;AACA,oBAAoB;;AAEpB;AACA;AACA,MAAM;;;AAGN;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,2FAA2F,aAAa;AACxG;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,+FAA+F,eAAe;AAC9G;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK,GAAG;;AAER,kDAAkD;AAClD;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,8MAA8M;;AAE9M;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA,aAAa,YAAY;AACzB,cAAc,SAAS;AACvB;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB,aAAa,WAAW;AACxB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB,aAAa,QAAQ;AACrB,aAAa,WAAW;AACxB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB,aAAa,QAAQ;AACrB,aAAa,WAAW;AACxB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA,0BAA0B;;AAE1B,2BAA2B;AAC3B;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,iBAAiB;AAC5B;AACA,WAAW,WAAW;AACtB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,0BAA0B;;AAE1B;AACA;AACA;;AAEA;AACA,oDAAoD;;AAEpD;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,WAAW,GAAG;AACd,WAAW,GAAG;AACd,WAAW,eAAe;AAC1B,WAAW,GAAG;AACd,WAAW,GAAG;AACd;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK,GAAG;;AAER;AACA;AACA;AACA;AACA;AACA,KAAK,GAAG;AACR;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,gBAAgB;;AAEhB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,qEAAqE;;AAErE;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;;;AAGA;;AAEA;AACA;AACA,IAAI;AACJ;;AAEA,oBAAoB,oBAAoB;AACxC;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,IAAI;;;AAGJ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,gBAAgB;;AAEhB,wBAAwB,kBAAkB;;;AAG1C;AACA,yBAAyB;;AAEzB,4BAA4B;AAC5B;AACA;;AAEA,gCAAgC;;AAEhC;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;;;AAGN;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,IAAI;AACJ;;;AAGA;;AAEA;AACA;AACA,IAAI;AACJ;;AAEA,oBAAoB,oBAAoB;AACxC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,YAAY,SAAS;AACrB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY,QAAQ;AACpB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,WAAW,QAAQ;AACnB,YAAY;AACZ;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,wCAAwC;AACxC;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,OAAO;AACP,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,wBAAwB;;AAExB;;AAEA;AACA,oBAAoB,qBAAqB;AACzC;AACA;AACA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA,sIAAsI,yCAAyC;AAC/K;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,IAAI;AACf,WAAW,kBAAkB;AAC7B,WAAW,GAAG;AACd,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,IAAI;AACf,YAAY,QAAQ;AACpB;;;AAGA;AACA;AACA;AACA,SAAS;AACT,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,IAAI;AACf,WAAW,kBAAkB;AAC7B,WAAW,GAAG;AACd;AACA;AACA;AACA,wCAAwC;AACxC,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,YAAY,cAAc;AAC1B;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK,GAAG;;AAER;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,2BAA2B;;AAE3B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;;;AAGV;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB;;AAEnB;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA,0CAA0C;AAC1C;;AAEA;AACA;AACA,WAAW;AACX;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA,oCAAoC;AACpC;;AAEA;AACA;AACA,WAAW;AACX;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;;AAEA,4BAA4B;;AAE5B;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;;;AAGN;AACA,0CAA0C;AAC1C;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC;;AAEvC;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA,uBAAuB;AACvB;AACA,SAAS;AACT,wBAAwB;AACxB;AACA,SAAS;AACT,wBAAwB;AACxB;AACA,SAAS;AACT,yBAAyB;AACzB;AACA,SAAS;AACT,yBAAyB;AACzB;AACA,SAAS;AACT,kCAAkC;AAClC;AACA,SAAS;AACT,4BAA4B;AAC5B;AACA,SAAS;AACT,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,MAAM;;;AAGN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,2DAA2D;;AAE3D;AACA;;AAEA;AACA,2DAA2D;AAC3D;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;;AAGT;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA,QAAQ;AACR;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,kBAAkB;;;AAGlB;AACA;AACA,cAAc;AACd;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;AACA;;AAEA;AACA,IAAI;;;AAGJ;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,8BAA8B;AAC9B;AACA;;AAEA;AACA;AACA;AACA;AACA,2HAA2H;AAC3H;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA;;AAEA;AACA;;AAEA,oEAAoE;;AAEpE;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB,WAAW,GAAG;AACd;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,2DAA2D;AAC3D;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,WAAW;AACtB,WAAW,GAAG;AACd;;;AAGA;AACA;AACA;AACA;;AAEA;AACA,oBAAoB,iBAAiB;AACrC;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN,4CAA4C;;AAE5C;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB;;;AAGA;AACA;AACA;;AAEA,oBAAoB,iBAAiB;AACrC;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,4CAA4C;AAC5C;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,MAAM;AACN;AACA;;AAEA;;AAEA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;;AAEA,sDAAsD;AACtD;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;;AAGA;AACA,oBAAoB,sBAAsB;AAC1C;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,MAAM;;;AAGN;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA,kBAAkB,sBAAsB;AACxC;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,uCAAuC;AACvC;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,gBAAgB;AAChB,iBAAiB;AACjB,qBAAqB;AACrB,0DAA0D;AAC1D,oBAAoB;AACpB,qBAAqB;AACrB,qBAAqB;AACrB,qBAAqB;AACrB,iBAAiB;AACjB,kBAAkB;AAClB,sBAAsB;AACtB,YAAY;AACZ,YAAY;AACZ,mBAAmB;AACnB,kBAAkB;AAClB,qBAAqB;AACrB,iBAAiB;AACjB,2BAA2B;AAC3B,uBAAuB;AACvB,eAAe;AACf,kBAAkB;AAClB,cAAc;AACd,gBAAgB;AAChB,eAAe;AACf,GAAG;AACH;;;;;;;;;;;;AC5xEa;;AAEb,IAAI,KAAqC,EAAE,EAE1C,CAAC;AACF,EAAE,uHAAsD;AACxD;;;;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,aAAa;AACb,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf,MAAM;AACN,eAAe;AACf;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,0DAA0D;AAC1D;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,WAAW;AACX;;AAEA;AACA;AACA,wCAAwC,WAAW;AACnD;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA,4BAA4B;AAC5B;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,UAAU;AACV;AACA;AACA;AACA;;AAEA;;AAEA,UAAU;AACV;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,qCAAqC,cAAc;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,iCAAiC,mBAAmB;AACpD;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA,kBAAkB;;AAElB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,yBAAyB,gBAAgB;AACzC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,aAAa;AACb;AACA;;AAEA;AACA,aAAa;AACb;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,+CAA+C,QAAQ;AACvD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA,YAAY;AACZ;AACA;AACA;;AAEA,YAAY;AACZ;AACA;AACA;;AAEA,YAAY;AACZ;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,+CAA+C,QAAQ;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA,KAAK;;AAEL;AACA,+CAA+C,QAAQ;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,+CAA+C,QAAQ;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC;AACD;AACA;AACA;AACA;AACA,EAAE,KAA0B,oBAAoB,CAAE;AAClD;;AAEA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;;;;;;;;;;;;ACjvBA;AACA;AACA;;AAEA;AACA;AACA,kDAAkD,OAAO;AACzD;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA,iCAAiC,QAAQ;AACzC;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA,0BAA0B,MAAM;;AAEhC;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA,+DAAe,eAAe,EAAC;;;;;;;;;;;;AC1E/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEa;;AAEb,IAAI,IAAqC;AACzC;AACA;;AAEA,2BAA2B;;AAE3B;AACA,yBAAyB;AACzB;AACA;AACA;;AAEA,yBAAyB,SAAS;;AAElC,uBAAuB;;AAEvB;AACA,EAAE,yBAAyB;AAC3B;AACA;AACA,EAAE,uBAAuB;AACzB;AACA;AACA;AACA;;AAEA;AACA,EAAE,iCAAiC;;AAEnC;AACA;AACA,IAAI;AACJ,IAAI,iCAAiC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA4D;AAC5D;AACA;;AAEA;AACA;AACA,EAAE,iCAAiC;AACnC;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,QAAQ;AACR,QAAQ,iCAAiC;;AAEzC;AACA;AACA;AACA;AACA,UAAU;AACV,iCAAiC;AACjC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;;;AAGA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA,IAAI,iCAAiC;AACrC;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,UAAU;AACV,UAAU,iCAAiC;;AAE3C;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,MAAM,+BAA+B;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAM,+BAA+B;AACrC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA,sBAAsB;AACtB,2BAA2B;AAC3B,4BAA4B;AAC5B,0BAA0B;AAC1B,sBAAsB;AACtB,4BAA4B;AAC5B,qBAAqB;AACrB,GAAG;AACH;;;;;;;;;;;;AC1VA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEa;;AAEb,IAAI,IAAqC;AACzC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,EAAE,oBAAoB;AACtB;AACA;AACA,EAAE;AACF;AACA;;AAEA,EAAE,oBAAoB;AACtB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,EAAE,4BAA4B;AAC9B;AACA;;AAEA,iBAAiB,+BAA+B;AAChD,EAAE;AACF;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA,+BAA+B;;AAE/B;AACA,oBAAoB;;AAEpB;AACA;AACA;AACA,IAAI,4BAA4B;AAChC;AACA,OAAO;;;AAGP;AACA;;AAEA,EAAE,+BAA+B;AACjC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA,gDAAgD;AAChD;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,kCAAkC;;AAElC;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,oCAAoC;;AAEpC,qCAAqC;;AAErC;AACA;AACA,kCAAkC;;AAElC,+CAA+C;;AAE/C;AACA,qBAAqB;;AAErB,uBAAuB;AACvB;AACA,2CAA2C;;AAE3C;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,QAAQ;;AAER;AACA;AACA;AACA;;AAEA;AACA,MAAM;AACN;AACA;;AAEA;AACA,IAAI;;;AAGJ;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI;AACJ;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA,QAAQ;;;AAGR;AACA;AACA,IAAI;AACJ;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,6BAA6B;AAC7B,kCAAkC;AAClC,4BAA4B;AAC5B,+BAA+B;AAC/B,0BAA0B;AAC1B,qCAAqC;AACrC,+BAA+B;AAC/B,kCAAkC;AAClC,wCAAwC;AACxC,qCAAqC;AACrC,qBAAqB;AACrB,+BAA+B;AAC/B,6BAA6B;AAC7B,gCAAgC;AAChC,iCAAiC;AACjC,6BAA6B;AAC7B,GAAG;AACH;;;;;;;;;;;;ACroBa;;AAEb,IAAI,KAAqC,EAAE,EAE1C,CAAC;AACF,EAAE,mIAA0D;AAC5D;;;;;;;;;;;;ACNa;;AAEb,IAAI,KAAqC,EAAE,EAE1C,CAAC;AACF,EAAE,mJAAkE;AACpE;;;;;;;;;;;;;;;;;;;;;;;;;;;ACLA,MAAqF;AACrF,MAA2E;AAC3E,MAAkF;AAClF,MAAqG;AACrG,MAA8F;AAC9F,MAA8F;AAC9F,MAAyF;AACzF;AACA;;AAEA;;AAEA,4BAA4B,wFAAmB;AAC/C,wBAAwB,qGAAa;;AAErC,uBAAuB,0FAAa;AACpC;AACA,iBAAiB,kFAAM;AACvB,6BAA6B,yFAAkB;;AAE/C,aAAa,6FAAG,CAAC,sEAAO;;;;AAImC;AAC3D,OAAO,+DAAe,sEAAO,IAAI,6EAAc,GAAG,6EAAc,YAAY,EAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;ACzB7E,MAAkF;AAClF,MAAwE;AACxE,MAA+E;AAC/E,MAAkG;AAClG,MAA2F;AAC3F,MAA2F;AAC3F,MAA0F;AAC1F;AACA;;AAEA;;AAEA,4BAA4B,wFAAmB;AAC/C,wBAAwB,qGAAa;;AAErC,uBAAuB,0FAAa;AACpC;AACA,iBAAiB,kFAAM;AACvB,6BAA6B,yFAAkB;;AAE/C,aAAa,6FAAG,CAAC,0EAAO;;;;AAIoC;AAC5D,OAAO,+DAAe,0EAAO,IAAI,iFAAc,GAAG,iFAAc,YAAY,EAAC;;;;;;;;;;;;AC1BhE;;AAEb;;AAEA;AACA;;AAEA,kBAAkB,wBAAwB;AAC1C;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,kBAAkB,iBAAiB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,oBAAoB,4BAA4B;AAChD;AACA;AACA;AACA;;AAEA;;AAEA,qBAAqB,6BAA6B;AAClD;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;;;;AChGa;;AAEb;AACA;;AAEA;AACA;AACA,sDAAsD;;AAEtD;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;ACtCa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;ACVa;;AAEb;AACA;AACA,cAAc,KAAwC,GAAG,sBAAiB,GAAG,CAAI;;AAEjF;AACA;AACA;AACA;;AAEA;;;;;;;;;;;ACXa;;AAEb;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA,yDAAyD;AACzD,IAAI;;AAEJ;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;AC/Ca;;AAEb;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;;;;;ACfA,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","sources":["webpack://raft-log-replication-demo-management-console/./node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack://raft-log-replication-demo-management-console/./node_modules/@babel/runtime/helpers/interopRequireWildcard.js","webpack://raft-log-replication-demo-management-console/./node_modules/@babel/runtime/helpers/typeof.js","webpack://raft-log-replication-demo-management-console/./node_modules/@carbon/icon-helpers/es/index.js","webpack://raft-log-replication-demo-management-console/./node_modules/@carbon/icons-react/es/Icon-a8cbe70a.js","webpack://raft-log-replication-demo-management-console/./node_modules/@carbon/icons-react/es/__generated__/bucket-0.js","webpack://raft-log-replication-demo-management-console/./node_modules/@carbon/icons-react/es/__generated__/bucket-1.js","webpack://raft-log-replication-demo-management-console/./node_modules/@carbon/icons-react/es/__generated__/bucket-15.js","webpack://raft-log-replication-demo-management-console/./node_modules/@carbon/icons-react/es/__generated__/bucket-16.js","webpack://raft-log-replication-demo-management-console/./node_modules/@carbon/icons-react/es/__generated__/bucket-2.js","webpack://raft-log-replication-demo-management-console/./node_modules/@carbon/icons-react/es/__generated__/bucket-9.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/Accordion/Accordion.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/Accordion/AccordionContext.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/AccordionDetails/AccordionDetails.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/AccordionSummary/AccordionSummary.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/AppBar/AppBar.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/Backdrop/Backdrop.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/Breadcrumbs/BreadcrumbCollapsed.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/Breadcrumbs/Breadcrumbs.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/Button/Button.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/ButtonBase/ButtonBase.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/ButtonBase/Ripple.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/ButtonBase/TouchRipple.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/Card/Card.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/CardContent/CardContent.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/ClickAwayListener/ClickAwayListener.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/Collapse/Collapse.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/Container/Container.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/CssBaseline/CssBaseline.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/Divider/Divider.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/Drawer/Drawer.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/Fade/Fade.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/FilledInput/FilledInput.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/FormControl/FormControl.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/FormControl/FormControlContext.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/FormControl/formControlState.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/FormControl/useFormControl.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/FormLabel/FormLabel.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/Grow/Grow.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/IconButton/IconButton.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/Input/Input.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/InputBase/InputBase.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/InputBase/utils.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/InputLabel/InputLabel.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/List/List.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/List/ListContext.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/ListItem/ListItem.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/ListItemIcon/ListItemIcon.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/ListItemText/ListItemText.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/ListSubheader/ListSubheader.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/Menu/Menu.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/MenuItem/MenuItem.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/MenuList/MenuList.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/Modal/Modal.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/Modal/ModalManager.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/Modal/SimpleBackdrop.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/NativeSelect/NativeSelect.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/NativeSelect/NativeSelectInput.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/OutlinedInput/NotchedOutline.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/OutlinedInput/OutlinedInput.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/Paper/Paper.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/Popover/Popover.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/Portal/Portal.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/Select/Select.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/Select/SelectInput.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/Slide/Slide.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/SvgIcon/SvgIcon.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/TextareaAutosize/TextareaAutosize.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/Toolbar/Toolbar.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/Typography/Typography.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/Unstable_TrapFocus/Unstable_TrapFocus.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/colors/blue.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/colors/common.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/colors/green.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/colors/grey.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/colors/indigo.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/colors/orange.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/colors/pink.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/colors/red.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/internal/svg-icons/ArrowDropDown.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/internal/svg-icons/MoreHoriz.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/styles/colorManipulator.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/styles/createBreakpoints.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/styles/createMixins.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/styles/createPalette.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/styles/createSpacing.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/styles/createStyles.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/styles/createTheme.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/styles/createTypography.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/styles/defaultTheme.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/styles/makeStyles.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/styles/shadows.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/styles/shape.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/styles/transitions.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/styles/useTheme.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/styles/withStyles.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/styles/zIndex.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/transitions/utils.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/utils/capitalize.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/utils/createChainedFunction.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/utils/createSvgIcon.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/utils/debounce.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/utils/deprecatedPropType.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/utils/getScrollbarSize.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/utils/index.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/utils/isMuiElement.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/utils/ownerDocument.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/utils/ownerWindow.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/utils/requirePropFactory.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/utils/setRef.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/utils/unstable_useId.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/utils/unsupportedProp.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/utils/useControlled.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/utils/useEventCallback.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/utils/useForkRef.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/esm/utils/useIsFocusVisible.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/node_modules/react-is/cjs/react-is.development.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/node_modules/react-is/index.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/node_modules/react-transition-group/esm/Transition.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/node_modules/react-transition-group/esm/TransitionGroup.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/node_modules/react-transition-group/esm/TransitionGroupContext.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/node_modules/react-transition-group/esm/config.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/node_modules/react-transition-group/esm/utils/ChildMapping.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/core/node_modules/react-transition-group/esm/utils/PropTypes.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/icons/ExpandMore.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/icons/NavigateNext.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/icons/utils/createSvgIcon.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/lab/esm/Skeleton/Skeleton.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/styles/esm/StylesProvider/StylesProvider.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/styles/esm/ThemeProvider/ThemeProvider.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/styles/esm/ThemeProvider/nested.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/styles/esm/createGenerateClassName/createGenerateClassName.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/styles/esm/createStyles/createStyles.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/styles/esm/getStylesCreator/getStylesCreator.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/styles/esm/getStylesCreator/noopTheme.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/styles/esm/getThemeProps/getThemeProps.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/styles/esm/jssPreset/jssPreset.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/styles/esm/makeStyles/indexCounter.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/styles/esm/makeStyles/makeStyles.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/styles/esm/makeStyles/multiKeyStore.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/styles/esm/mergeClasses/mergeClasses.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/styles/esm/useTheme/ThemeContext.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/styles/esm/useTheme/useTheme.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/styles/esm/withStyles/withStyles.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/system/esm/breakpoints.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/system/esm/memoize.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/system/esm/merge.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/system/esm/responsivePropType.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/system/esm/spacing.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/utils/esm/HTMLElementType.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/utils/esm/chainPropTypes.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/utils/esm/deepmerge.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/utils/esm/elementAcceptingRef.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/utils/esm/elementTypeAcceptingRef.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/utils/esm/exactProp.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/utils/esm/getDisplayName.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/utils/esm/refType.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/utils/node_modules/react-is/cjs/react-is.development.js","webpack://raft-log-replication-demo-management-console/./node_modules/@material-ui/utils/node_modules/react-is/index.js","webpack://raft-log-replication-demo-management-console/./src/main/js/api/apiClient.js","webpack://raft-log-replication-demo-management-console/./src/main/js/api/eventStore/eventStoreApiClient.js","webpack://raft-log-replication-demo-management-console/./src/main/js/components/common/list/infoListItem.js","webpack://raft-log-replication-demo-management-console/./src/main/js/components/common/list/linkListItem.js","webpack://raft-log-replication-demo-management-console/./src/main/js/components/counter/replicatedCounter.js","webpack://raft-log-replication-demo-management-console/./src/main/js/components/counter/replicatedCounters.js","webpack://raft-log-replication-demo-management-console/./src/main/js/components/error/errorBoundary.js","webpack://raft-log-replication-demo-management-console/./src/main/js/components/eventStore/eventStoreStream.js","webpack://raft-log-replication-demo-management-console/./src/main/js/components/eventStore/eventStoreStreamAccordionItem.js","webpack://raft-log-replication-demo-management-console/./src/main/js/components/eventStore/eventStoreStreams.js","webpack://raft-log-replication-demo-management-console/./src/main/js/components/healthCheckNotifier.js","webpack://raft-log-replication-demo-management-console/./src/main/js/components/metaData.js","webpack://raft-log-replication-demo-management-console/./src/main/js/components/nav/index.js","webpack://raft-log-replication-demo-management-console/./src/main/js/components/nav/mainAppBar.js","webpack://raft-log-replication-demo-management-console/./src/main/js/components/nav/mainDrawer.js","webpack://raft-log-replication-demo-management-console/./src/main/js/components/nodeInfo.js","webpack://raft-log-replication-demo-management-console/./src/main/js/components/nodeList.js","webpack://raft-log-replication-demo-management-console/./src/main/js/components/raftGroupDetails.js","webpack://raft-log-replication-demo-management-console/./src/main/js/components/raftGroups.js","webpack://raft-log-replication-demo-management-console/./src/main/js/components/systemInfo.js","webpack://raft-log-replication-demo-management-console/./src/main/js/layouts/mainLayout.js","webpack://raft-log-replication-demo-management-console/./src/main/js/pages/eventStore/embeddedEventStore.js","webpack://raft-log-replication-demo-management-console/./src/main/js/pages/eventStore/embeddedEventStoreStream.js","webpack://raft-log-replication-demo-management-console/./src/main/js/pages/eventStore/replicatedEventStore.js","webpack://raft-log-replication-demo-management-console/./src/main/js/pages/eventStore/replicatedEventStoreStream.js","webpack://raft-log-replication-demo-management-console/./src/main/js/pages/metaData.js","webpack://raft-log-replication-demo-management-console/./src/main/js/pages/nodeInfo.js","webpack://raft-log-replication-demo-management-console/./src/main/js/pages/raftGroupDetails.js","webpack://raft-log-replication-demo-management-console/./src/main/js/pages/raftGroups.js","webpack://raft-log-replication-demo-management-console/./src/main/js/pages/replicatedCounter.js","webpack://raft-log-replication-demo-management-console/./src/main/js/pages/systemInfo.js","webpack://raft-log-replication-demo-management-console/./node_modules/clsx/dist/clsx.m.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/a-function.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/a-possible-prototype.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/add-to-unscopables.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/advance-string-index.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/an-instance.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/an-object.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/array-buffer-native.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/array-buffer-view-core.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/array-buffer.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/array-copy-within.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/array-fill.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/array-for-each.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/array-from-constructor-and-list.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/array-from.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/array-includes.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/array-iteration.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/array-last-index-of.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/array-method-has-species-support.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/array-method-is-strict.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/array-reduce.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/array-sort.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/array-species-constructor.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/array-species-create.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/call-with-safe-iteration-closing.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/check-correctness-of-iteration.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/classof-raw.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/classof.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/collection-strong.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/collection-weak.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/collection.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/copy-constructor-properties.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/correct-is-regexp-logic.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/correct-prototype-getter.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/create-html.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/create-iterator-constructor.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/create-non-enumerable-property.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/create-property-descriptor.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/create-property.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/date-to-iso-string.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/date-to-primitive.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/define-iterator.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/define-well-known-symbol.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/descriptors.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/document-create-element.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/dom-iterables.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/engine-ff-version.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/engine-is-browser.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/engine-is-ie-or-edge.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/engine-is-ios.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/engine-is-node.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/engine-is-webos-webkit.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/engine-user-agent.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/engine-v8-version.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/engine-webkit-version.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/enum-bug-keys.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/export.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/fails.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/flatten-into-array.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/freezing.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/function-bind-context.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/function-bind.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/get-built-in.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/get-iterator-method.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/get-iterator.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/get-substitution.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/global.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/has.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/hidden-keys.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/host-report-errors.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/html.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/ie8-dom-define.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/ieee754.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/indexed-object.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/inherit-if-required.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/inspect-source.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/internal-metadata.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/internal-state.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/is-array-iterator-method.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/is-array.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/is-forced.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/is-integer.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/is-object.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/is-pure.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/is-regexp.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/is-symbol.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/iterate.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/iterator-close.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/iterators-core.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/iterators.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/math-expm1.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/math-fround.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/math-log1p.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/math-sign.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/microtask.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/native-promise-constructor.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/native-symbol.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/native-url.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/native-weak-map.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/new-promise-capability.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/not-a-regexp.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/number-is-finite.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/number-parse-float.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/number-parse-int.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/object-assign.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/object-create.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/object-define-properties.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/object-define-property.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/object-get-own-property-descriptor.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/object-get-own-property-names-external.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/object-get-own-property-names.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/object-get-own-property-symbols.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/object-get-prototype-of.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/object-keys-internal.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/object-keys.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/object-property-is-enumerable.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/object-prototype-accessors-forced.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/object-set-prototype-of.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/object-to-array.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/object-to-string.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/ordinary-to-primitive.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/own-keys.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/path.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/perform.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/promise-resolve.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/redefine-all.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/redefine.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/regexp-exec-abstract.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/regexp-exec.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/regexp-flags.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/regexp-sticky-helpers.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/regexp-unsupported-dot-all.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/regexp-unsupported-ncg.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/require-object-coercible.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/same-value.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/set-global.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/set-species.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/set-to-string-tag.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/shared-key.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/shared-store.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/shared.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/species-constructor.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/string-html-forced.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/string-multibyte.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/string-pad-webkit-bug.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/string-pad.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/string-punycode-to-ascii.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/string-repeat.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/string-trim-forced.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/string-trim.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/task.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/this-number-value.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/to-absolute-index.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/to-index.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/to-indexed-object.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/to-integer.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/to-length.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/to-object.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/to-offset.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/to-positive-integer.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/to-primitive.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/to-property-key.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/to-string-tag-support.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/to-string.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/typed-array-constructor.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/typed-array-constructors-require-wrappers.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/typed-array-from-species-and-list.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/typed-array-from.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/typed-array-species-constructor.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/uid.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/use-symbol-as-uid.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/well-known-symbol-wrapped.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/well-known-symbol.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/internals/whitespaces.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.aggregate-error.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.array-buffer.constructor.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.array-buffer.is-view.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.array-buffer.slice.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.array.concat.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.array.copy-within.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.array.every.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.array.fill.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.array.filter.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.array.find-index.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.array.find.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.array.flat-map.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.array.flat.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.array.for-each.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.array.from.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.array.includes.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.array.index-of.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.array.is-array.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.array.iterator.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.array.join.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.array.last-index-of.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.array.map.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.array.of.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.array.reduce-right.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.array.reduce.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.array.reverse.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.array.slice.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.array.some.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.array.sort.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.array.species.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.array.splice.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.array.unscopables.flat-map.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.array.unscopables.flat.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.data-view.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.date.get-year.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.date.now.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.date.set-year.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.date.to-gmt-string.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.date.to-iso-string.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.date.to-json.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.date.to-primitive.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.date.to-string.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.escape.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.function.bind.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.function.has-instance.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.function.name.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.global-this.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.json.stringify.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.json.to-string-tag.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.map.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.math.acosh.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.math.asinh.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.math.atanh.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.math.cbrt.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.math.clz32.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.math.cosh.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.math.expm1.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.math.fround.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.math.hypot.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.math.imul.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.math.log10.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.math.log1p.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.math.log2.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.math.sign.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.math.sinh.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.math.tanh.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.math.to-string-tag.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.math.trunc.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.number.constructor.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.number.epsilon.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.number.is-finite.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.number.is-integer.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.number.is-nan.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.number.is-safe-integer.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.number.max-safe-integer.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.number.min-safe-integer.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.number.parse-float.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.number.parse-int.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.number.to-fixed.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.number.to-precision.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.object.assign.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.object.create.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.object.define-getter.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.object.define-properties.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.object.define-property.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.object.define-setter.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.object.entries.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.object.freeze.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.object.from-entries.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.object.get-own-property-descriptor.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.object.get-own-property-descriptors.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.object.get-own-property-names.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.object.get-prototype-of.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.object.is-extensible.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.object.is-frozen.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.object.is-sealed.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.object.is.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.object.keys.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.object.lookup-getter.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.object.lookup-setter.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.object.prevent-extensions.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.object.seal.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.object.set-prototype-of.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.object.to-string.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.object.values.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.parse-float.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.parse-int.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.promise.all-settled.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.promise.any.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.promise.finally.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.promise.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.reflect.apply.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.reflect.construct.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.reflect.define-property.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.reflect.delete-property.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.reflect.get-own-property-descriptor.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.reflect.get-prototype-of.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.reflect.get.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.reflect.has.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.reflect.is-extensible.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.reflect.own-keys.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.reflect.prevent-extensions.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.reflect.set-prototype-of.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.reflect.set.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.reflect.to-string-tag.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.regexp.constructor.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.regexp.dot-all.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.regexp.exec.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.regexp.flags.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.regexp.sticky.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.regexp.test.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.regexp.to-string.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.set.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.string.anchor.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.string.big.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.string.blink.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.string.bold.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.string.code-point-at.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.string.ends-with.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.string.fixed.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.string.fontcolor.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.string.fontsize.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.string.from-code-point.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.string.includes.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.string.italics.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.string.iterator.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.string.link.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.string.match-all.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.string.match.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.string.pad-end.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.string.pad-start.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.string.raw.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.string.repeat.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.string.replace-all.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.string.replace.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.string.search.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.string.small.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.string.split.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.string.starts-with.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.string.strike.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.string.sub.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.string.substr.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.string.sup.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.string.trim-end.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.string.trim-start.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.string.trim.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.symbol.async-iterator.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.symbol.description.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.symbol.has-instance.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.symbol.is-concat-spreadable.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.symbol.iterator.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.symbol.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.symbol.match-all.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.symbol.match.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.symbol.replace.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.symbol.search.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.symbol.species.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.symbol.split.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.symbol.to-primitive.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.symbol.to-string-tag.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.symbol.unscopables.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.typed-array.copy-within.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.typed-array.every.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.typed-array.fill.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.typed-array.filter.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.typed-array.find-index.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.typed-array.find.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.typed-array.float32-array.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.typed-array.float64-array.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.typed-array.for-each.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.typed-array.from.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.typed-array.includes.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.typed-array.index-of.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.typed-array.int16-array.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.typed-array.int32-array.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.typed-array.int8-array.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.typed-array.iterator.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.typed-array.join.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.typed-array.last-index-of.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.typed-array.map.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.typed-array.of.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.typed-array.reduce-right.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.typed-array.reduce.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.typed-array.reverse.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.typed-array.set.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.typed-array.slice.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.typed-array.some.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.typed-array.sort.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.typed-array.subarray.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.typed-array.to-locale-string.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.typed-array.to-string.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.typed-array.uint16-array.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.typed-array.uint32-array.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.typed-array.uint8-array.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.typed-array.uint8-clamped-array.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.unescape.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.weak-map.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/es.weak-set.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/web.dom-collections.for-each.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/web.dom-collections.iterator.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/web.immediate.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/web.queue-microtask.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/web.timers.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/web.url-search-params.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/web.url.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/modules/web.url.to-json.js","webpack://raft-log-replication-demo-management-console/./node_modules/core-js/stable/index.js","webpack://raft-log-replication-demo-management-console/./node_modules/@fontsource/ibm-plex-sans/index.css","webpack://raft-log-replication-demo-management-console/./node_modules/normalize.css/normalize.css","webpack://raft-log-replication-demo-management-console/./node_modules/css-loader/dist/runtime/api.js","webpack://raft-log-replication-demo-management-console/./node_modules/css-loader/dist/runtime/cssWithMappingToString.js","webpack://raft-log-replication-demo-management-console/./node_modules/css-loader/dist/runtime/getUrl.js","webpack://raft-log-replication-demo-management-console/./node_modules/css-vendor/dist/css-vendor.esm.js","webpack://raft-log-replication-demo-management-console/./node_modules/history/esm/history.js","webpack://raft-log-replication-demo-management-console/./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","webpack://raft-log-replication-demo-management-console/./node_modules/hyphenate-style-name/index.js","webpack://raft-log-replication-demo-management-console/./node_modules/inflection/lib/inflection.js","webpack://raft-log-replication-demo-management-console/./node_modules/is-in-browser/dist/module.js","webpack://raft-log-replication-demo-management-console/./node_modules/jss-plugin-camel-case/dist/jss-plugin-camel-case.esm.js","webpack://raft-log-replication-demo-management-console/./node_modules/jss-plugin-default-unit/dist/jss-plugin-default-unit.esm.js","webpack://raft-log-replication-demo-management-console/./node_modules/jss-plugin-global/dist/jss-plugin-global.esm.js","webpack://raft-log-replication-demo-management-console/./node_modules/jss-plugin-nested/dist/jss-plugin-nested.esm.js","webpack://raft-log-replication-demo-management-console/./node_modules/jss-plugin-props-sort/dist/jss-plugin-props-sort.esm.js","webpack://raft-log-replication-demo-management-console/./node_modules/jss-plugin-rule-value-function/dist/jss-plugin-rule-value-function.esm.js","webpack://raft-log-replication-demo-management-console/./node_modules/jss-plugin-vendor-prefixer/dist/jss-plugin-vendor-prefixer.esm.js","webpack://raft-log-replication-demo-management-console/./node_modules/jss/dist/jss.esm.js","webpack://raft-log-replication-demo-management-console/./node_modules/mini-create-react-context/dist/esm/index.js","webpack://raft-log-replication-demo-management-console/./node_modules/notistack/dist/notistack.esm.js","webpack://raft-log-replication-demo-management-console/./node_modules/object-assign/index.js","webpack://raft-log-replication-demo-management-console/./node_modules/path-to-regexp/index.js","webpack://raft-log-replication-demo-management-console/./node_modules/path-to-regexp/node_modules/isarray/index.js","webpack://raft-log-replication-demo-management-console/./node_modules/plotly.js/dist/plotly.js","webpack://raft-log-replication-demo-management-console/./node_modules/prop-types/checkPropTypes.js","webpack://raft-log-replication-demo-management-console/./node_modules/prop-types/factoryWithTypeCheckers.js","webpack://raft-log-replication-demo-management-console/./node_modules/prop-types/index.js","webpack://raft-log-replication-demo-management-console/./node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack://raft-log-replication-demo-management-console/./node_modules/react-dom/cjs/react-dom.development.js","webpack://raft-log-replication-demo-management-console/./node_modules/react-dom/index.js","webpack://raft-log-replication-demo-management-console/./node_modules/react-is/cjs/react-is.development.js","webpack://raft-log-replication-demo-management-console/./node_modules/react-is/index.js","webpack://raft-log-replication-demo-management-console/./node_modules/react-json-view/dist/main.js","webpack://raft-log-replication-demo-management-console/./node_modules/react-plotly.js/factory.js","webpack://raft-log-replication-demo-management-console/./node_modules/react-plotly.js/react-plotly.js","webpack://raft-log-replication-demo-management-console/./node_modules/react-router-dom/esm/react-router-dom.js","webpack://raft-log-replication-demo-management-console/./node_modules/react-router/esm/react-router.js","webpack://raft-log-replication-demo-management-console/./node_modules/react/cjs/react.development.js","webpack://raft-log-replication-demo-management-console/./node_modules/react/index.js","webpack://raft-log-replication-demo-management-console/./node_modules/regenerator-runtime/runtime.js","webpack://raft-log-replication-demo-management-console/./node_modules/resolve-pathname/esm/resolve-pathname.js","webpack://raft-log-replication-demo-management-console/./node_modules/scheduler/cjs/scheduler-tracing.development.js","webpack://raft-log-replication-demo-management-console/./node_modules/scheduler/cjs/scheduler.development.js","webpack://raft-log-replication-demo-management-console/./node_modules/scheduler/index.js","webpack://raft-log-replication-demo-management-console/./node_modules/scheduler/tracing.js","webpack://raft-log-replication-demo-management-console/./node_modules/@fontsource/ibm-plex-sans/index.css?49c7","webpack://raft-log-replication-demo-management-console/./node_modules/normalize.css/normalize.css?342f","webpack://raft-log-replication-demo-management-console/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://raft-log-replication-demo-management-console/./node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://raft-log-replication-demo-management-console/./node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://raft-log-replication-demo-management-console/./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://raft-log-replication-demo-management-console/./node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack://raft-log-replication-demo-management-console/./node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://raft-log-replication-demo-management-console/./node_modules/tiny-invariant/dist/tiny-invariant.esm.js","webpack://raft-log-replication-demo-management-console/./node_modules/tiny-warning/dist/tiny-warning.esm.js","webpack://raft-log-replication-demo-management-console/./node_modules/value-equal/esm/value-equal.js","webpack://raft-log-replication-demo-management-console/./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","webpack://raft-log-replication-demo-management-console/./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","webpack://raft-log-replication-demo-management-console/./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js","webpack://raft-log-replication-demo-management-console/./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","webpack://raft-log-replication-demo-management-console/./node_modules/@babel/runtime/helpers/esm/classCallCheck.js","webpack://raft-log-replication-demo-management-console/./node_modules/@babel/runtime/helpers/esm/createClass.js","webpack://raft-log-replication-demo-management-console/./node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack://raft-log-replication-demo-management-console/./node_modules/@babel/runtime/helpers/esm/extends.js","webpack://raft-log-replication-demo-management-console/./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","webpack://raft-log-replication-demo-management-console/./node_modules/@babel/runtime/helpers/esm/iterableToArray.js","webpack://raft-log-replication-demo-management-console/./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","webpack://raft-log-replication-demo-management-console/./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","webpack://raft-log-replication-demo-management-console/./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js","webpack://raft-log-replication-demo-management-console/./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","webpack://raft-log-replication-demo-management-console/./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","webpack://raft-log-replication-demo-management-console/./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack://raft-log-replication-demo-management-console/./node_modules/@babel/runtime/helpers/esm/slicedToArray.js","webpack://raft-log-replication-demo-management-console/./node_modules/@babel/runtime/helpers/esm/toArray.js","webpack://raft-log-replication-demo-management-console/./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js","webpack://raft-log-replication-demo-management-console/./node_modules/@babel/runtime/helpers/esm/typeof.js","webpack://raft-log-replication-demo-management-console/./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","webpack://raft-log-replication-demo-management-console/webpack/bootstrap","webpack://raft-log-replication-demo-management-console/webpack/runtime/compat get default export","webpack://raft-log-replication-demo-management-console/webpack/runtime/define property getters","webpack://raft-log-replication-demo-management-console/webpack/runtime/global","webpack://raft-log-replication-demo-management-console/webpack/runtime/hasOwnProperty shorthand","webpack://raft-log-replication-demo-management-console/webpack/runtime/make namespace object","webpack://raft-log-replication-demo-management-console/webpack/runtime/publicPath","webpack://raft-log-replication-demo-management-console/webpack/runtime/jsonp chunk loading","webpack://raft-log-replication-demo-management-console/./src/main/js/app.js"],"sourcesContent":["function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\nmodule.exports = _interopRequireDefault;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","var _typeof = require(\"@babel/runtime/helpers/typeof\")[\"default\"];\n\nfunction _getRequireWildcardCache(nodeInterop) {\n if (typeof WeakMap !== \"function\") return null;\n var cacheBabelInterop = new WeakMap();\n var cacheNodeInterop = new WeakMap();\n return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) {\n return nodeInterop ? cacheNodeInterop : cacheBabelInterop;\n })(nodeInterop);\n}\n\nfunction _interopRequireWildcard(obj, nodeInterop) {\n if (!nodeInterop && obj && obj.__esModule) {\n return obj;\n }\n\n if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") {\n return {\n \"default\": obj\n };\n }\n\n var cache = _getRequireWildcardCache(nodeInterop);\n\n if (cache && cache.has(obj)) {\n return cache.get(obj);\n }\n\n var newObj = {};\n var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;\n\n for (var key in obj) {\n if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) {\n var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;\n\n if (desc && (desc.get || desc.set)) {\n Object.defineProperty(newObj, key, desc);\n } else {\n newObj[key] = obj[key];\n }\n }\n }\n\n newObj[\"default\"] = obj;\n\n if (cache) {\n cache.set(obj, newObj);\n }\n\n return newObj;\n}\n\nmodule.exports = _interopRequireWildcard;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n module.exports = _typeof = function _typeof(obj) {\n return typeof obj;\n };\n\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n } else {\n module.exports = _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n }\n\n return _typeof(obj);\n}\n\nmodule.exports = _typeof;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","function ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n\n if (enumerableOnly) {\n symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nvar _excluded = [\"width\", \"height\", \"viewBox\"],\n _excluded2 = [\"tabindex\"];\n\n/**\n * Copyright IBM Corp. 2018, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nvar defaultAttributes = {\n // Reference:\n // https://github.com/IBM/carbon-components-react/issues/1392\n // https://github.com/PolymerElements/iron-iconset-svg/pull/47\n // `focusable` is a string attribute which is why we do not use a boolean here\n focusable: 'false',\n preserveAspectRatio: 'xMidYMid meet'\n};\n/**\n * Get supplementary HTML attributes for a given element based on existing\n * attributes.\n */\n\nfunction getAttributes() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n width = _ref.width,\n height = _ref.height,\n _ref$viewBox = _ref.viewBox,\n viewBox = _ref$viewBox === void 0 ? \"0 0 \".concat(width, \" \").concat(height) : _ref$viewBox,\n attributes = _objectWithoutProperties(_ref, _excluded);\n\n var tabindex = attributes.tabindex,\n rest = _objectWithoutProperties(attributes, _excluded2);\n\n var iconAttributes = _objectSpread2(_objectSpread2(_objectSpread2({}, defaultAttributes), rest), {}, {\n width: width,\n height: height,\n viewBox: viewBox\n }); // TODO: attributes.title assumes that the consumer will implement and\n // correctly set `aria-labelledby`.\n\n\n if (iconAttributes['aria-label'] || iconAttributes['aria-labelledby'] || iconAttributes.title) {\n iconAttributes.role = 'img'; // Reference:\n // https://allyjs.io/tutorials/focusing-in-svg.html\n\n if (tabindex !== undefined && tabindex !== null) {\n iconAttributes.focusable = 'true';\n iconAttributes.tabindex = tabindex;\n }\n } else {\n iconAttributes['aria-hidden'] = true;\n }\n\n return iconAttributes;\n}\n\n/**\n * Copyright IBM Corp. 2018, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n/**\n * Convert an icon descriptor to a String\n */\n\nfunction toString(descriptor) {\n var _descriptor$elem = descriptor.elem,\n elem = _descriptor$elem === void 0 ? 'svg' : _descriptor$elem,\n _descriptor$attrs = descriptor.attrs,\n attrs = _descriptor$attrs === void 0 ? {} : _descriptor$attrs,\n _descriptor$content = descriptor.content,\n content = _descriptor$content === void 0 ? [] : _descriptor$content;\n var children = content.map(toString).join('');\n\n if (elem !== 'svg') {\n return \"<\".concat(elem, \" \").concat(formatAttributes(attrs), \">\").concat(children, \"\");\n }\n\n return \"<\".concat(elem, \" \").concat(formatAttributes(getAttributes(attrs)), \">\").concat(children, \"\");\n}\nfunction formatAttributes(attrs) {\n return Object.keys(attrs).reduce(function (acc, key, index) {\n var attribute = \"\".concat(key, \"=\\\"\").concat(attrs[key], \"\\\"\");\n\n if (index === 0) {\n return attribute;\n }\n\n return acc + ' ' + attribute;\n }, '');\n}\n\n/**\n * Copyright IBM Corp. 2018, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n/**\n * Convert an icon descriptor to a DOM node.\n */\n\nfunction toSVG(descriptor) {\n var _descriptor$elem = descriptor.elem,\n elem = _descriptor$elem === void 0 ? 'svg' : _descriptor$elem,\n _descriptor$attrs = descriptor.attrs,\n attrs = _descriptor$attrs === void 0 ? {} : _descriptor$attrs,\n _descriptor$content = descriptor.content,\n content = _descriptor$content === void 0 ? [] : _descriptor$content;\n var node = document.createElementNS('http://www.w3.org/2000/svg', elem);\n var attributes = elem !== 'svg' ? attrs : getAttributes(attrs);\n Object.keys(attributes).forEach(function (key) {\n node.setAttribute(key, attrs[key]);\n });\n\n for (var i = 0; i < content.length; i++) {\n node.appendChild(toSVG(content[i]));\n }\n\n return node;\n}\n\nexport { defaultAttributes, formatAttributes, getAttributes, toSVG, toString };\n","/**\n * Copyright IBM Corp. 2019, 2020\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * Code generated by @carbon/icon-build-helpers. DO NOT EDIT.\n */\nimport { getAttributes } from '@carbon/icon-helpers';\nimport PropTypes from 'prop-types';\nimport React from 'react';\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n\n if (enumerableOnly) {\n symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nvar _excluded = [\"className\", \"children\", \"tabIndex\"],\n _excluded2 = [\"tabindex\"];\nvar Icon = /*#__PURE__*/React.forwardRef(function Icon(_ref, ref) {\n var className = _ref.className,\n children = _ref.children,\n tabIndex = _ref.tabIndex,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n var _getAttributes = getAttributes(_objectSpread2(_objectSpread2({}, rest), {}, {\n tabindex: tabIndex\n })),\n tabindex = _getAttributes.tabindex,\n props = _objectWithoutProperties(_getAttributes, _excluded2);\n\n if (className) {\n props.className = className;\n }\n\n if (tabindex !== undefined && tabindex !== null) {\n props.tabIndex = tabindex;\n }\n\n if (ref) {\n props.ref = ref;\n }\n\n return /*#__PURE__*/React.createElement('svg', props, children);\n});\nIcon.displayName = 'Icon';\nIcon.propTypes = {\n 'aria-hidden': PropTypes.string,\n 'aria-label': PropTypes.string,\n 'aria-labelledby': PropTypes.string,\n children: PropTypes.node,\n className: PropTypes.string,\n height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n preserveAspectRatio: PropTypes.string,\n tabIndex: PropTypes.string,\n viewBox: PropTypes.string,\n width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n xmlns: PropTypes.string\n};\nIcon.defaultProps = {\n xmlns: 'http://www.w3.org/2000/svg',\n preserveAspectRatio: 'xMidYMid meet'\n};\n\nexport { Icon as I, _objectWithoutProperties as _, _extends as a };\n","/**\n * Copyright IBM Corp. 2019, 2020\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * Code generated by @carbon/icon-build-helpers. DO NOT EDIT.\n */\nimport { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../Icon-a8cbe70a.js';\nimport React from 'react';\nimport '@carbon/icon-helpers';\nimport 'prop-types';\n\nvar _path, _path2, _path3, _path4, _path5, _path6, _path7, _path8, _path9, _path10, _path11, _path12, _path13, _path14, _path15, _path16, _path17, _path18, _path19, _path20, _path21, _path22, _path23, _path24, _path25, _path26, _path27, _path28, _path29, _path30, _path31, _path32, _path33, _path34, _path35, _path36, _path37, _path38, _path39, _path40, _path41, _path42, _path43, _path44, _path45, _path46, _path47, _path48, _path49, _path50, _path51, _path52, _path53, _path54, _path55, _path56, _path57, _path58, _path59, _path60, _path61, _circle, _path62, _path63, _circle2, _path64, _path65, _circle3, _path66, _path67, _circle4, _path68, _path69, _path70, _path71, _path72, _path73, _path74, _path75, _path76, _path77, _path78, _path79, _path80, _path81, _path82, _circle5, _path83, _path84, _path85, _path86, _circle6, _path87, _path88, _path89, _path90, _circle7, _path91, _path92, _path93, _path94, _circle8, _path95, _path96, _path97, _path98, _path99, _path100, _path101, _path102, _path103, _path104, _path105, _path106, _path107, _path108, _path109, _path110, _path111, _path112, _path113, _path114, _path115, _path116, _path117, _path118, _path119, _path120, _path121, _path122, _path123, _path124, _path125, _path126, _path127, _path128, _path129, _path130, _path131, _path132, _path133, _path134, _path135, _path136, _path137, _path138, _path139, _path140, _path141, _path142, _path143, _path144, _path145, _path146, _path147, _path148, _path149, _path150, _path151, _path152, _path153, _path154, _path155, _path156, _path157, _path158, _path159, _path160, _path161, _path162, _path163, _path164, _path165, _path166, _path167, _path168, _path169, _path170, _path171, _path172, _path173, _path174, _path175, _path176, _path177, _path178, _path179, _path180, _path181, _path182, _path183, _path184, _path185, _path186, _path187, _path188, _path189, _path190, _path191, _path192, _path193, _path194, _path195, _path196, _path197, _path198, _path199, _path200, _path201, _path202, _path203, _path204, _path205, _path206, _path207, _path208, _path209, _circle9, _circle10, _circle11, _path210, _circle12, _circle13, _circle14, _path211, _circle15, _circle16, _circle17, _path212, _circle18, _circle19, _circle20, _path213, _path214, _path215, _path216, _path217, _path218, _path219, _path220, _path221, _path222, _path223, _path224, _path225, _path226, _path227, _path228, _path229, _path230, _path231, _path232, _path233, _path234, _path235, _path236, _path237, _path238, _path239, _path240, _path241, _path242, _path243, _path244, _path245, _path246, _path247, _path248, _path249, _path250, _path251, _path252, _path253, _path254, _path255, _path256, _path257, _path258, _path259, _path260, _path261, _path262, _path263, _path264, _path265, _path266, _path267, _path268, _path269, _path270, _path271, _path272, _path273, _path274, _path275, _path276, _path277, _path278, _path279, _path280, _path281, _path282, _path283, _path284, _path285, _path286, _path287, _path288, _path289, _path290, _path291, _path292, _path293, _path294, _path295, _path296, _path297, _path298, _path299, _path300, _path301, _path302, _path303, _path304, _path305, _path306, _path307, _path308, _path309, _path310, _path311, _path312, _path313, _path314, _path315, _path316, _path317, _path318, _path319, _path320, _path321, _path322, _path323, _path324, _path325, _path326, _path327, _path328, _path329, _path330, _path331, _path332, _path333, _path334, _path335, _path336, _path337, _path338, _path339, _path340, _path341, _path342, _path343, _path344, _path345, _path346, _path347, _path348, _path349, _path350, _path351, _path352, _path353, _path354, _path355, _path356, _path357, _path358, _path359, _path360, _path361, _path362, _path363, _path364, _path365, _path366, _path367, _path368, _path369, _path370, _path371, _path372, _path373, _path374, _path375, _path376, _path377, _path378, _path379, _path380, _path381, _path382, _path383, _path384, _path385, _path386, _path387, _path388, _path389, _path390, _path391, _path392, _path393, _path394, _path395, _path396, _path397, _path398, _path399, _path400, _path401, _path402, _path403, _path404, _path405, _path406, _path407, _path408, _path409, _path410, _path411, _path412;\n\nvar _excluded = [\"children\"],\n _excluded2 = [\"children\"],\n _excluded3 = [\"children\"],\n _excluded4 = [\"children\"],\n _excluded5 = [\"children\"],\n _excluded6 = [\"children\"],\n _excluded7 = [\"children\"],\n _excluded8 = [\"children\"],\n _excluded9 = [\"children\"],\n _excluded10 = [\"children\"],\n _excluded11 = [\"children\"],\n _excluded12 = [\"children\"],\n _excluded13 = [\"children\"],\n _excluded14 = [\"children\"],\n _excluded15 = [\"children\"],\n _excluded16 = [\"children\"],\n _excluded17 = [\"children\"],\n _excluded18 = [\"children\"],\n _excluded19 = [\"children\"],\n _excluded20 = [\"children\"],\n _excluded21 = [\"children\"],\n _excluded22 = [\"children\"],\n _excluded23 = [\"children\"],\n _excluded24 = [\"children\"],\n _excluded25 = [\"children\"],\n _excluded26 = [\"children\"],\n _excluded27 = [\"children\"],\n _excluded28 = [\"children\"],\n _excluded29 = [\"children\"],\n _excluded30 = [\"children\"],\n _excluded31 = [\"children\"],\n _excluded32 = [\"children\"],\n _excluded33 = [\"children\"],\n _excluded34 = [\"children\"],\n _excluded35 = [\"children\"],\n _excluded36 = [\"children\"],\n _excluded37 = [\"children\"],\n _excluded38 = [\"children\"],\n _excluded39 = [\"children\"],\n _excluded40 = [\"children\"],\n _excluded41 = [\"children\"],\n _excluded42 = [\"children\"],\n _excluded43 = [\"children\"],\n _excluded44 = [\"children\"],\n _excluded45 = [\"children\"],\n _excluded46 = [\"children\"],\n _excluded47 = [\"children\"],\n _excluded48 = [\"children\"],\n _excluded49 = [\"children\"],\n _excluded50 = [\"children\"],\n _excluded51 = [\"children\"],\n _excluded52 = [\"children\"],\n _excluded53 = [\"children\"],\n _excluded54 = [\"children\"],\n _excluded55 = [\"children\"],\n _excluded56 = [\"children\"],\n _excluded57 = [\"children\"],\n _excluded58 = [\"children\"],\n _excluded59 = [\"children\"],\n _excluded60 = [\"children\"],\n _excluded61 = [\"children\"],\n _excluded62 = [\"children\"],\n _excluded63 = [\"children\"],\n _excluded64 = [\"children\"],\n _excluded65 = [\"children\"],\n _excluded66 = [\"children\"],\n _excluded67 = [\"children\"],\n _excluded68 = [\"children\"],\n _excluded69 = [\"children\"],\n _excluded70 = [\"children\"],\n _excluded71 = [\"children\"],\n _excluded72 = [\"children\"],\n _excluded73 = [\"children\"],\n _excluded74 = [\"children\"],\n _excluded75 = [\"children\"],\n _excluded76 = [\"children\"],\n _excluded77 = [\"children\"],\n _excluded78 = [\"children\"],\n _excluded79 = [\"children\"],\n _excluded80 = [\"children\"],\n _excluded81 = [\"children\"],\n _excluded82 = [\"children\"],\n _excluded83 = [\"children\"],\n _excluded84 = [\"children\"],\n _excluded85 = [\"children\"],\n _excluded86 = [\"children\"],\n _excluded87 = [\"children\"],\n _excluded88 = [\"children\"],\n _excluded89 = [\"children\"],\n _excluded90 = [\"children\"],\n _excluded91 = [\"children\"],\n _excluded92 = [\"children\"],\n _excluded93 = [\"children\"],\n _excluded94 = [\"children\"],\n _excluded95 = [\"children\"],\n _excluded96 = [\"children\"],\n _excluded97 = [\"children\"],\n _excluded98 = [\"children\"],\n _excluded99 = [\"children\"],\n _excluded100 = [\"children\"],\n _excluded101 = [\"children\"],\n _excluded102 = [\"children\"],\n _excluded103 = [\"children\"],\n _excluded104 = [\"children\"],\n _excluded105 = [\"children\"],\n _excluded106 = [\"children\"],\n _excluded107 = [\"children\"],\n _excluded108 = [\"children\"],\n _excluded109 = [\"children\"],\n _excluded110 = [\"children\"],\n _excluded111 = [\"children\"],\n _excluded112 = [\"children\"],\n _excluded113 = [\"children\"],\n _excluded114 = [\"children\"],\n _excluded115 = [\"children\"],\n _excluded116 = [\"children\"],\n _excluded117 = [\"children\"],\n _excluded118 = [\"children\"],\n _excluded119 = [\"children\"],\n _excluded120 = [\"children\"],\n _excluded121 = [\"children\"],\n _excluded122 = [\"children\"],\n _excluded123 = [\"children\"],\n _excluded124 = [\"children\"],\n _excluded125 = [\"children\"],\n _excluded126 = [\"children\"],\n _excluded127 = [\"children\"],\n _excluded128 = [\"children\"],\n _excluded129 = [\"children\"],\n _excluded130 = [\"children\"],\n _excluded131 = [\"children\"],\n _excluded132 = [\"children\"],\n _excluded133 = [\"children\"],\n _excluded134 = [\"children\"],\n _excluded135 = [\"children\"],\n _excluded136 = [\"children\"],\n _excluded137 = [\"children\"],\n _excluded138 = [\"children\"],\n _excluded139 = [\"children\"],\n _excluded140 = [\"children\"],\n _excluded141 = [\"children\"],\n _excluded142 = [\"children\"],\n _excluded143 = [\"children\"],\n _excluded144 = [\"children\"],\n _excluded145 = [\"children\"],\n _excluded146 = [\"children\"],\n _excluded147 = [\"children\"],\n _excluded148 = [\"children\"],\n _excluded149 = [\"children\"],\n _excluded150 = [\"children\"],\n _excluded151 = [\"children\"],\n _excluded152 = [\"children\"],\n _excluded153 = [\"children\"],\n _excluded154 = [\"children\"],\n _excluded155 = [\"children\"],\n _excluded156 = [\"children\"],\n _excluded157 = [\"children\"],\n _excluded158 = [\"children\"],\n _excluded159 = [\"children\"],\n _excluded160 = [\"children\"],\n _excluded161 = [\"children\"],\n _excluded162 = [\"children\"],\n _excluded163 = [\"children\"],\n _excluded164 = [\"children\"],\n _excluded165 = [\"children\"],\n _excluded166 = [\"children\"],\n _excluded167 = [\"children\"],\n _excluded168 = [\"children\"],\n _excluded169 = [\"children\"],\n _excluded170 = [\"children\"],\n _excluded171 = [\"children\"],\n _excluded172 = [\"children\"],\n _excluded173 = [\"children\"],\n _excluded174 = [\"children\"],\n _excluded175 = [\"children\"],\n _excluded176 = [\"children\"],\n _excluded177 = [\"children\"],\n _excluded178 = [\"children\"],\n _excluded179 = [\"children\"],\n _excluded180 = [\"children\"],\n _excluded181 = [\"children\"],\n _excluded182 = [\"children\"],\n _excluded183 = [\"children\"],\n _excluded184 = [\"children\"],\n _excluded185 = [\"children\"],\n _excluded186 = [\"children\"],\n _excluded187 = [\"children\"],\n _excluded188 = [\"children\"],\n _excluded189 = [\"children\"],\n _excluded190 = [\"children\"],\n _excluded191 = [\"children\"],\n _excluded192 = [\"children\"],\n _excluded193 = [\"children\"],\n _excluded194 = [\"children\"],\n _excluded195 = [\"children\"],\n _excluded196 = [\"children\"],\n _excluded197 = [\"children\"],\n _excluded198 = [\"children\"],\n _excluded199 = [\"children\"],\n _excluded200 = [\"children\"],\n _excluded201 = [\"children\"],\n _excluded202 = [\"children\"],\n _excluded203 = [\"children\"],\n _excluded204 = [\"children\"],\n _excluded205 = [\"children\"],\n _excluded206 = [\"children\"],\n _excluded207 = [\"children\"],\n _excluded208 = [\"children\"],\n _excluded209 = [\"children\"],\n _excluded210 = [\"children\"],\n _excluded211 = [\"children\"],\n _excluded212 = [\"children\"],\n _excluded213 = [\"children\"],\n _excluded214 = [\"children\"],\n _excluded215 = [\"children\"],\n _excluded216 = [\"children\"],\n _excluded217 = [\"children\"],\n _excluded218 = [\"children\"],\n _excluded219 = [\"children\"],\n _excluded220 = [\"children\"],\n _excluded221 = [\"children\"],\n _excluded222 = [\"children\"],\n _excluded223 = [\"children\"],\n _excluded224 = [\"children\"],\n _excluded225 = [\"children\"],\n _excluded226 = [\"children\"],\n _excluded227 = [\"children\"],\n _excluded228 = [\"children\"],\n _excluded229 = [\"children\"],\n _excluded230 = [\"children\"],\n _excluded231 = [\"children\"],\n _excluded232 = [\"children\"],\n _excluded233 = [\"children\"],\n _excluded234 = [\"children\"],\n _excluded235 = [\"children\"],\n _excluded236 = [\"children\"],\n _excluded237 = [\"children\"],\n _excluded238 = [\"children\"],\n _excluded239 = [\"children\"],\n _excluded240 = [\"children\"],\n _excluded241 = [\"children\"],\n _excluded242 = [\"children\"],\n _excluded243 = [\"children\"],\n _excluded244 = [\"children\"],\n _excluded245 = [\"children\"],\n _excluded246 = [\"children\"],\n _excluded247 = [\"children\"],\n _excluded248 = [\"children\"],\n _excluded249 = [\"children\"],\n _excluded250 = [\"children\"];\nvar WatsonHealth3DCursor32 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCursor32(_ref, ref) {\n var children = _ref.children,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 4L4 4 4 13.01 6 13.01 6 6 13 6 13 4zM29.49 13.12l-9-5a1 1 0 00-1 0l-9 5A1 1 0 0010 14V24a1 1 0 00.52.87l9 5A1 1 0 0020 30a1.05 1.05 0 00.49-.13l9-5A1 1 0 0030 24V14A1 1 0 0029.49 13.12zM19 27.3l-7-3.89V15.69l7 3.89zm1-9.45L13.06 14 20 10.14 26.94 14zm8 5.56L21 27.3V19.58l7-3.89z\"\n })), children);\n});\nvar WatsonHealth3DCursor24 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCursor24(_ref2, ref) {\n var children = _ref2.children,\n rest = _objectWithoutProperties(_ref2, _excluded2);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 4L4 4 4 13.01 6 13.01 6 6 13 6 13 4zM29.49 13.12l-9-5a1 1 0 00-1 0l-9 5A1 1 0 0010 14V24a1 1 0 00.52.87l9 5A1 1 0 0020 30a1.05 1.05 0 00.49-.13l9-5A1 1 0 0030 24V14A1 1 0 0029.49 13.12zM19 27.3l-7-3.89V15.69l7 3.89zm1-9.45L13.06 14 20 10.14 26.94 14zm8 5.56L21 27.3V19.58l7-3.89z\"\n })), children);\n});\nvar WatsonHealth3DCursor20 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCursor20(_ref3, ref) {\n var children = _ref3.children,\n rest = _objectWithoutProperties(_ref3, _excluded3);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 4L4 4 4 13.01 6 13.01 6 6 13 6 13 4zM29.49 13.12l-9-5a1 1 0 00-1 0l-9 5A1 1 0 0010 14V24a1 1 0 00.52.87l9 5A1 1 0 0020 30a1.05 1.05 0 00.49-.13l9-5A1 1 0 0030 24V14A1 1 0 0029.49 13.12zM19 27.3l-7-3.89V15.69l7 3.89zm1-9.45L13.06 14 20 10.14 26.94 14zm8 5.56L21 27.3V19.58l7-3.89z\"\n })), children);\n});\nvar WatsonHealth3DCursor16 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCursor16(_ref4, ref) {\n var children = _ref4.children,\n rest = _objectWithoutProperties(_ref4, _excluded4);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path4 || (_path4 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 4L4 4 4 13.01 6 13.01 6 6 13 6 13 4zM29.49 13.12l-9-5a1 1 0 00-1 0l-9 5A1 1 0 0010 14V24a1 1 0 00.52.87l9 5A1 1 0 0020 30a1.05 1.05 0 00.49-.13l9-5A1 1 0 0030 24V14A1 1 0 0029.49 13.12zM19 27.3l-7-3.89V15.69l7 3.89zm1-9.45L13.06 14 20 10.14 26.94 14zm8 5.56L21 27.3V19.58l7-3.89z\"\n })), children);\n});\nvar WatsonHealth3DCursorAlt32 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCursorAlt32(_ref5, ref) {\n var children = _ref5.children,\n rest = _objectWithoutProperties(_ref5, _excluded5);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path5 || (_path5 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), _path6 || (_path6 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 7H17V14H15zM7 15H14V17H7zM15 18H17V25H15zM18 15H25V17H18z\"\n })), children);\n});\nvar WatsonHealth3DCursorAlt24 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCursorAlt24(_ref6, ref) {\n var children = _ref6.children,\n rest = _objectWithoutProperties(_ref6, _excluded6);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path7 || (_path7 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), _path8 || (_path8 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 7H17V14H15zM7 15H14V17H7zM15 18H17V25H15zM18 15H25V17H18z\"\n })), children);\n});\nvar WatsonHealth3DCursorAlt20 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCursorAlt20(_ref7, ref) {\n var children = _ref7.children,\n rest = _objectWithoutProperties(_ref7, _excluded7);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path9 || (_path9 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), _path10 || (_path10 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 7H17V14H15zM7 15H14V17H7zM15 18H17V25H15zM18 15H25V17H18z\"\n })), children);\n});\nvar WatsonHealth3DCursorAlt16 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCursorAlt16(_ref8, ref) {\n var children = _ref8.children,\n rest = _objectWithoutProperties(_ref8, _excluded8);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path11 || (_path11 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), _path12 || (_path12 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 7H17V14H15zM7 15H14V17H7zM15 18H17V25H15zM18 15H25V17H18z\"\n })), children);\n});\nvar WatsonHealth3DCurveAutoColon32 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCurveAutoColon32(_ref9, ref) {\n var children = _ref9.children,\n rest = _objectWithoutProperties(_ref9, _excluded9);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path13 || (_path13 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.5,8H20.1a5,5,0,1,0,0-2H9.5a5.5,5.5,0,0,0,0,11h11a3.5,3.5,0,0,1,0,7H11.9a5,5,0,1,0,0,2h8.6a5.5,5.5,0,0,0,0-11H9.5a3.5,3.5,0,0,1,0-7ZM25,4a3,3,0,1,1-3,3A3,3,0,0,1,25,4ZM7,28a3,3,0,1,1,3-3A3,3,0,0,1,7,28Z\"\n })), children);\n});\nvar WatsonHealth3DCurveAutoColon24 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCurveAutoColon24(_ref10, ref) {\n var children = _ref10.children,\n rest = _objectWithoutProperties(_ref10, _excluded10);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path14 || (_path14 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.5,8H20.1a5,5,0,1,0,0-2H9.5a5.5,5.5,0,0,0,0,11h11a3.5,3.5,0,0,1,0,7H11.9a5,5,0,1,0,0,2h8.6a5.5,5.5,0,0,0,0-11H9.5a3.5,3.5,0,0,1,0-7ZM25,4a3,3,0,1,1-3,3A3,3,0,0,1,25,4ZM7,28a3,3,0,1,1,3-3A3,3,0,0,1,7,28Z\"\n })), children);\n});\nvar WatsonHealth3DCurveAutoColon20 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCurveAutoColon20(_ref11, ref) {\n var children = _ref11.children,\n rest = _objectWithoutProperties(_ref11, _excluded11);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path15 || (_path15 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.5,8H20.1a5,5,0,1,0,0-2H9.5a5.5,5.5,0,0,0,0,11h11a3.5,3.5,0,0,1,0,7H11.9a5,5,0,1,0,0,2h8.6a5.5,5.5,0,0,0,0-11H9.5a3.5,3.5,0,0,1,0-7ZM25,4a3,3,0,1,1-3,3A3,3,0,0,1,25,4ZM7,28a3,3,0,1,1,3-3A3,3,0,0,1,7,28Z\"\n })), children);\n});\nvar WatsonHealth3DCurveAutoColon16 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCurveAutoColon16(_ref12, ref) {\n var children = _ref12.children,\n rest = _objectWithoutProperties(_ref12, _excluded12);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path16 || (_path16 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.5,8H20.1a5,5,0,1,0,0-2H9.5a5.5,5.5,0,0,0,0,11h11a3.5,3.5,0,0,1,0,7H11.9a5,5,0,1,0,0,2h8.6a5.5,5.5,0,0,0,0-11H9.5a3.5,3.5,0,0,1,0-7ZM25,4a3,3,0,1,1-3,3A3,3,0,0,1,25,4ZM7,28a3,3,0,1,1,3-3A3,3,0,0,1,7,28Z\"\n })), children);\n});\nvar WatsonHealth3DCurveAutoVessels32 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCurveAutoVessels32(_ref13, ref) {\n var children = _ref13.children,\n rest = _objectWithoutProperties(_ref13, _excluded13);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path17 || (_path17 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,11a3,3,0,0,1,3-3h.1a5,5,0,1,0,0-2H20a5,5,0,0,0-5,5v1H13a3,3,0,0,1-3-3V7A5,5,0,0,0,5,2H4V4H5A3,3,0,0,1,8,7V9a5,5,0,0,0,5,5h2v7a3,3,0,0,1-3,3h-.1a5,5,0,1,0,0,2H12a5,5,0,0,0,5-5h2.5A2.5,2.5,0,0,1,22,23.5,4.51,4.51,0,0,0,26.5,28H28V26H26.5A2.5,2.5,0,0,1,24,23.5,4.51,4.51,0,0,0,19.5,19H17Zm8-7a3,3,0,1,1-3,3A3,3,0,0,1,25,4ZM7,28a3,3,0,1,1,3-3A3,3,0,0,1,7,28Z\"\n })), children);\n});\nvar WatsonHealth3DCurveAutoVessels24 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCurveAutoVessels24(_ref14, ref) {\n var children = _ref14.children,\n rest = _objectWithoutProperties(_ref14, _excluded14);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path18 || (_path18 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,11a3,3,0,0,1,3-3h.1a5,5,0,1,0,0-2H20a5,5,0,0,0-5,5v1H13a3,3,0,0,1-3-3V7A5,5,0,0,0,5,2H4V4H5A3,3,0,0,1,8,7V9a5,5,0,0,0,5,5h2v7a3,3,0,0,1-3,3h-.1a5,5,0,1,0,0,2H12a5,5,0,0,0,5-5h2.5A2.5,2.5,0,0,1,22,23.5,4.51,4.51,0,0,0,26.5,28H28V26H26.5A2.5,2.5,0,0,1,24,23.5,4.51,4.51,0,0,0,19.5,19H17Zm8-7a3,3,0,1,1-3,3A3,3,0,0,1,25,4ZM7,28a3,3,0,1,1,3-3A3,3,0,0,1,7,28Z\"\n })), children);\n});\nvar WatsonHealth3DCurveAutoVessels20 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCurveAutoVessels20(_ref15, ref) {\n var children = _ref15.children,\n rest = _objectWithoutProperties(_ref15, _excluded15);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path19 || (_path19 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,11a3,3,0,0,1,3-3h.1a5,5,0,1,0,0-2H20a5,5,0,0,0-5,5v1H13a3,3,0,0,1-3-3V7A5,5,0,0,0,5,2H4V4H5A3,3,0,0,1,8,7V9a5,5,0,0,0,5,5h2v7a3,3,0,0,1-3,3h-.1a5,5,0,1,0,0,2H12a5,5,0,0,0,5-5h2.5A2.5,2.5,0,0,1,22,23.5,4.51,4.51,0,0,0,26.5,28H28V26H26.5A2.5,2.5,0,0,1,24,23.5,4.51,4.51,0,0,0,19.5,19H17Zm8-7a3,3,0,1,1-3,3A3,3,0,0,1,25,4ZM7,28a3,3,0,1,1,3-3A3,3,0,0,1,7,28Z\"\n })), children);\n});\nvar WatsonHealth3DCurveAutoVessels16 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCurveAutoVessels16(_ref16, ref) {\n var children = _ref16.children,\n rest = _objectWithoutProperties(_ref16, _excluded16);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path20 || (_path20 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,11a3,3,0,0,1,3-3h.1a5,5,0,1,0,0-2H20a5,5,0,0,0-5,5v1H13a3,3,0,0,1-3-3V7A5,5,0,0,0,5,2H4V4H5A3,3,0,0,1,8,7V9a5,5,0,0,0,5,5h2v7a3,3,0,0,1-3,3h-.1a5,5,0,1,0,0,2H12a5,5,0,0,0,5-5h2.5A2.5,2.5,0,0,1,22,23.5,4.51,4.51,0,0,0,26.5,28H28V26H26.5A2.5,2.5,0,0,1,24,23.5,4.51,4.51,0,0,0,19.5,19H17Zm8-7a3,3,0,1,1-3,3A3,3,0,0,1,25,4ZM7,28a3,3,0,1,1,3-3A3,3,0,0,1,7,28Z\"\n })), children);\n});\nvar WatsonHealth3DCurveManual32 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCurveManual32(_ref17, ref) {\n var children = _ref17.children,\n rest = _objectWithoutProperties(_ref17, _excluded17);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path21 || (_path21 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 21a3 3 0 01-3 3h-.1a5 5 0 100 2H12a5 5 0 005-5zM7 28a3 3 0 113-3A3 3 0 017 28zM15 13H17V19H15zM25 2a5 5 0 00-4.9 4H20a5 5 0 00-5 5h2a3 3 0 013-3h.1A5 5 0 1025 2zm0 8a3 3 0 113-3A3 3 0 0125 10z\"\n })), children);\n});\nvar WatsonHealth3DCurveManual24 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCurveManual24(_ref18, ref) {\n var children = _ref18.children,\n rest = _objectWithoutProperties(_ref18, _excluded18);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path22 || (_path22 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 21a3 3 0 01-3 3h-.1a5 5 0 100 2H12a5 5 0 005-5zM7 28a3 3 0 113-3A3 3 0 017 28zM15 13H17V19H15zM25 2a5 5 0 00-4.9 4H20a5 5 0 00-5 5h2a3 3 0 013-3h.1A5 5 0 1025 2zm0 8a3 3 0 113-3A3 3 0 0125 10z\"\n })), children);\n});\nvar WatsonHealth3DCurveManual20 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCurveManual20(_ref19, ref) {\n var children = _ref19.children,\n rest = _objectWithoutProperties(_ref19, _excluded19);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path23 || (_path23 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 21a3 3 0 01-3 3h-.1a5 5 0 100 2H12a5 5 0 005-5zM7 28a3 3 0 113-3A3 3 0 017 28zM15 13H17V19H15zM25 2a5 5 0 00-4.9 4H20a5 5 0 00-5 5h2a3 3 0 013-3h.1A5 5 0 1025 2zm0 8a3 3 0 113-3A3 3 0 0125 10z\"\n })), children);\n});\nvar WatsonHealth3DCurveManual16 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCurveManual16(_ref20, ref) {\n var children = _ref20.children,\n rest = _objectWithoutProperties(_ref20, _excluded20);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path24 || (_path24 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 21a3 3 0 01-3 3h-.1a5 5 0 100 2H12a5 5 0 005-5zM7 28a3 3 0 113-3A3 3 0 017 28zM15 13H17V19H15zM25 2a5 5 0 00-4.9 4H20a5 5 0 00-5 5h2a3 3 0 013-3h.1A5 5 0 1025 2zm0 8a3 3 0 113-3A3 3 0 0125 10z\"\n })), children);\n});\nvar WatsonHealth3DICa32 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DICa32(_ref21, ref) {\n var children = _ref21.children,\n rest = _objectWithoutProperties(_ref21, _excluded21);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path25 || (_path25 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 14H10a2 2 0 01-2-2V4a2 2 0 01.59-1.42A3.57 3.57 0 0110 2h5V4H10v8h5zM4 6H6V14H4zM4 2H6V4H4zM27.45 19.11l-6-3a1 1 0 00-.9 0l-6 3A1 1 0 0014 20v7a1 1 0 00.55.89l6 3a1 1 0 00.9 0l6-3A1 1 0 0028 27V20A1 1 0 0027.45 19.11zm-6.45-1L24.76 20 21 21.88 17.24 20zm-5 3.5l4 2v4.76l-4-2zm6 6.76V23.62l4-2v4.76zM23 2H19a2 2 0 00-2 2V14h2V10h4v4h2V4A2 2 0 0023 2zM19 8V4h4V8z\"\n })), children);\n});\nvar WatsonHealth3DICa24 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DICa24(_ref22, ref) {\n var children = _ref22.children,\n rest = _objectWithoutProperties(_ref22, _excluded22);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path26 || (_path26 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 14H10a2 2 0 01-2-2V4a2 2 0 01.59-1.42A3.57 3.57 0 0110 2h5V4H10v8h5zM4 6H6V14H4zM4 2H6V4H4zM27.45 19.11l-6-3a1 1 0 00-.9 0l-6 3A1 1 0 0014 20v7a1 1 0 00.55.89l6 3a1 1 0 00.9 0l6-3A1 1 0 0028 27V20A1 1 0 0027.45 19.11zm-6.45-1L24.76 20 21 21.88 17.24 20zm-5 3.5l4 2v4.76l-4-2zm6 6.76V23.62l4-2v4.76zM23 2H19a2 2 0 00-2 2V14h2V10h4v4h2V4A2 2 0 0023 2zM19 8V4h4V8z\"\n })), children);\n});\nvar WatsonHealth3DICa20 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DICa20(_ref23, ref) {\n var children = _ref23.children,\n rest = _objectWithoutProperties(_ref23, _excluded23);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path27 || (_path27 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 14H10a2 2 0 01-2-2V4a2 2 0 01.59-1.42A3.57 3.57 0 0110 2h5V4H10v8h5zM4 6H6V14H4zM4 2H6V4H4zM27.45 19.11l-6-3a1 1 0 00-.9 0l-6 3A1 1 0 0014 20v7a1 1 0 00.55.89l6 3a1 1 0 00.9 0l6-3A1 1 0 0028 27V20A1 1 0 0027.45 19.11zm-6.45-1L24.76 20 21 21.88 17.24 20zm-5 3.5l4 2v4.76l-4-2zm6 6.76V23.62l4-2v4.76zM23 2H19a2 2 0 00-2 2V14h2V10h4v4h2V4A2 2 0 0023 2zM19 8V4h4V8z\"\n })), children);\n});\nvar WatsonHealth3DICa16 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DICa16(_ref24, ref) {\n var children = _ref24.children,\n rest = _objectWithoutProperties(_ref24, _excluded24);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path28 || (_path28 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 14H10a2 2 0 01-2-2V4a2 2 0 01.59-1.42A3.57 3.57 0 0110 2h5V4H10v8h5zM4 6H6V14H4zM4 2H6V4H4zM27.45 19.11l-6-3a1 1 0 00-.9 0l-6 3A1 1 0 0014 20v7a1 1 0 00.55.89l6 3a1 1 0 00.9 0l6-3A1 1 0 0028 27V20A1 1 0 0027.45 19.11zm-6.45-1L24.76 20 21 21.88 17.24 20zm-5 3.5l4 2v4.76l-4-2zm6 6.76V23.62l4-2v4.76zM23 2H19a2 2 0 00-2 2V14h2V10h4v4h2V4A2 2 0 0023 2zM19 8V4h4V8z\"\n })), children);\n});\nvar WatsonHealth3DMprToggle32 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DMprToggle32(_ref25, ref) {\n var children = _ref25.children,\n rest = _objectWithoutProperties(_ref25, _excluded25);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path29 || (_path29 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 2L2 2 2 11 4 11 4 4 11 4 11 2zM2 21L2 30 11 30 11 28 4 28 4 21 2 21zM30 11L30 2 21 2 21 4 28 4 28 11 30 11zM21 30L30 30 30 21 28 21 28 28 21 28 21 30zM25.49 10.13l-9-5a1 1 0 00-1 0l-9 5A1 1 0 006 11V21a1 1 0 00.51.87l9 5a1 1 0 001 0l9-5A1 1 0 0026 21V11A1 1 0 0025.49 10.13zM16 7.14L22.94 11 16 14.86 9.06 11zM8 12.7l7 3.89V24.3L8 20.41zm9 11.6V16.59l7-3.89v7.71z\"\n })), children);\n});\nvar WatsonHealth3DMprToggle24 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DMprToggle24(_ref26, ref) {\n var children = _ref26.children,\n rest = _objectWithoutProperties(_ref26, _excluded26);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path30 || (_path30 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 2L2 2 2 11 4 11 4 4 11 4 11 2zM2 21L2 30 11 30 11 28 4 28 4 21 2 21zM30 11L30 2 21 2 21 4 28 4 28 11 30 11zM21 30L30 30 30 21 28 21 28 28 21 28 21 30zM25.49 10.13l-9-5a1 1 0 00-1 0l-9 5A1 1 0 006 11V21a1 1 0 00.51.87l9 5a1 1 0 001 0l9-5A1 1 0 0026 21V11A1 1 0 0025.49 10.13zM16 7.14L22.94 11 16 14.86 9.06 11zM8 12.7l7 3.89V24.3L8 20.41zm9 11.6V16.59l7-3.89v7.71z\"\n })), children);\n});\nvar WatsonHealth3DMprToggle20 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DMprToggle20(_ref27, ref) {\n var children = _ref27.children,\n rest = _objectWithoutProperties(_ref27, _excluded27);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path31 || (_path31 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 2L2 2 2 11 4 11 4 4 11 4 11 2zM2 21L2 30 11 30 11 28 4 28 4 21 2 21zM30 11L30 2 21 2 21 4 28 4 28 11 30 11zM21 30L30 30 30 21 28 21 28 28 21 28 21 30zM25.49 10.13l-9-5a1 1 0 00-1 0l-9 5A1 1 0 006 11V21a1 1 0 00.51.87l9 5a1 1 0 001 0l9-5A1 1 0 0026 21V11A1 1 0 0025.49 10.13zM16 7.14L22.94 11 16 14.86 9.06 11zM8 12.7l7 3.89V24.3L8 20.41zm9 11.6V16.59l7-3.89v7.71z\"\n })), children);\n});\nvar WatsonHealth3DMprToggle16 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DMprToggle16(_ref28, ref) {\n var children = _ref28.children,\n rest = _objectWithoutProperties(_ref28, _excluded28);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path32 || (_path32 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 2L2 2 2 11 4 11 4 4 11 4 11 2zM2 21L2 30 11 30 11 28 4 28 4 21 2 21zM30 11L30 2 21 2 21 4 28 4 28 11 30 11zM21 30L30 30 30 21 28 21 28 28 21 28 21 30zM25.49 10.13l-9-5a1 1 0 00-1 0l-9 5A1 1 0 006 11V21a1 1 0 00.51.87l9 5a1 1 0 001 0l9-5A1 1 0 0026 21V11A1 1 0 0025.49 10.13zM16 7.14L22.94 11 16 14.86 9.06 11zM8 12.7l7 3.89V24.3L8 20.41zm9 11.6V16.59l7-3.89v7.71z\"\n })), children);\n});\nvar WatsonHealth3DPrintMesh32 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DPrintMesh32(_ref29, ref) {\n var children = _ref29.children,\n rest = _objectWithoutProperties(_ref29, _excluded29);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path33 || (_path33 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.9761,15.7832l-2-9a.9992.9992,0,0,0-.4214-.6152l-6-4A1.0008,1.0008,0,0,0,21,2H11a1.0008,1.0008,0,0,0-.5547.168l-6,4a.9992.9992,0,0,0-.4214.6152l-2,9a1.0019,1.0019,0,0,0,.0181.5039l3,10a1,1,0,0,0,.6709.6709l10,3,.0051.0005a.9789.9789,0,0,0,.564,0l.0051-.0005,10-3a1,1,0,0,0,.6709-.6709l3-10A1.0019,1.0019,0,0,0,29.9761,15.7832Zm-19.05.833L7.0168,8.7974l7.2815,2.6479ZM16,12.4971,19.5889,18H12.4111ZM19.3818,20,16,26.7637,12.6182,20Zm-1.68-8.5547,7.2815-2.6479-3.91,7.8188ZM18.19,9.14l3.0961-4.747,3.5152,2.3432ZM16,8.8364,12.8459,4h6.3082Zm-2.19.3032L7.1992,6.7358l3.5152-2.3432Zm-4.8439,8.03-4.802-1.8007L5.3652,9.9668ZM14.07,27.377,7.5679,25.4263l3.1284-4.7969Zm7.2334-6.7476,3.1284,4.7969L17.93,27.377ZM26.6348,9.9668l1.2006,5.4019-4.802,1.8007ZM4.5374,17.6445l4.5944,1.7227L6.3391,23.65ZM25.6609,23.65l-2.7927-4.2827,4.5944-1.7227Z\"\n })), children);\n});\nvar WatsonHealth3DPrintMesh24 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DPrintMesh24(_ref30, ref) {\n var children = _ref30.children,\n rest = _objectWithoutProperties(_ref30, _excluded30);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path34 || (_path34 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.9761,15.7832l-2-9a.9992.9992,0,0,0-.4214-.6152l-6-4A1.0008,1.0008,0,0,0,21,2H11a1.0008,1.0008,0,0,0-.5547.168l-6,4a.9992.9992,0,0,0-.4214.6152l-2,9a1.0019,1.0019,0,0,0,.0181.5039l3,10a1,1,0,0,0,.6709.6709l10,3,.0051.0005a.9789.9789,0,0,0,.564,0l.0051-.0005,10-3a1,1,0,0,0,.6709-.6709l3-10A1.0019,1.0019,0,0,0,29.9761,15.7832Zm-19.05.833L7.0168,8.7974l7.2815,2.6479ZM16,12.4971,19.5889,18H12.4111ZM19.3818,20,16,26.7637,12.6182,20Zm-1.68-8.5547,7.2815-2.6479-3.91,7.8188ZM18.19,9.14l3.0961-4.747,3.5152,2.3432ZM16,8.8364,12.8459,4h6.3082Zm-2.19.3032L7.1992,6.7358l3.5152-2.3432Zm-4.8439,8.03-4.802-1.8007L5.3652,9.9668ZM14.07,27.377,7.5679,25.4263l3.1284-4.7969Zm7.2334-6.7476,3.1284,4.7969L17.93,27.377ZM26.6348,9.9668l1.2006,5.4019-4.802,1.8007ZM4.5374,17.6445l4.5944,1.7227L6.3391,23.65ZM25.6609,23.65l-2.7927-4.2827,4.5944-1.7227Z\"\n })), children);\n});\nvar WatsonHealth3DPrintMesh20 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DPrintMesh20(_ref31, ref) {\n var children = _ref31.children,\n rest = _objectWithoutProperties(_ref31, _excluded31);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path35 || (_path35 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.9761,15.7832l-2-9a.9992.9992,0,0,0-.4214-.6152l-6-4A1.0008,1.0008,0,0,0,21,2H11a1.0008,1.0008,0,0,0-.5547.168l-6,4a.9992.9992,0,0,0-.4214.6152l-2,9a1.0019,1.0019,0,0,0,.0181.5039l3,10a1,1,0,0,0,.6709.6709l10,3,.0051.0005a.9789.9789,0,0,0,.564,0l.0051-.0005,10-3a1,1,0,0,0,.6709-.6709l3-10A1.0019,1.0019,0,0,0,29.9761,15.7832Zm-19.05.833L7.0168,8.7974l7.2815,2.6479ZM16,12.4971,19.5889,18H12.4111ZM19.3818,20,16,26.7637,12.6182,20Zm-1.68-8.5547,7.2815-2.6479-3.91,7.8188ZM18.19,9.14l3.0961-4.747,3.5152,2.3432ZM16,8.8364,12.8459,4h6.3082Zm-2.19.3032L7.1992,6.7358l3.5152-2.3432Zm-4.8439,8.03-4.802-1.8007L5.3652,9.9668ZM14.07,27.377,7.5679,25.4263l3.1284-4.7969Zm7.2334-6.7476,3.1284,4.7969L17.93,27.377ZM26.6348,9.9668l1.2006,5.4019-4.802,1.8007ZM4.5374,17.6445l4.5944,1.7227L6.3391,23.65ZM25.6609,23.65l-2.7927-4.2827,4.5944-1.7227Z\"\n })), children);\n});\nvar WatsonHealth3DPrintMesh16 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DPrintMesh16(_ref32, ref) {\n var children = _ref32.children,\n rest = _objectWithoutProperties(_ref32, _excluded32);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path36 || (_path36 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.9761,15.7832l-2-9a.9992.9992,0,0,0-.4214-.6152l-6-4A1.0008,1.0008,0,0,0,21,2H11a1.0008,1.0008,0,0,0-.5547.168l-6,4a.9992.9992,0,0,0-.4214.6152l-2,9a1.0019,1.0019,0,0,0,.0181.5039l3,10a1,1,0,0,0,.6709.6709l10,3,.0051.0005a.9789.9789,0,0,0,.564,0l.0051-.0005,10-3a1,1,0,0,0,.6709-.6709l3-10A1.0019,1.0019,0,0,0,29.9761,15.7832Zm-19.05.833L7.0168,8.7974l7.2815,2.6479ZM16,12.4971,19.5889,18H12.4111ZM19.3818,20,16,26.7637,12.6182,20Zm-1.68-8.5547,7.2815-2.6479-3.91,7.8188ZM18.19,9.14l3.0961-4.747,3.5152,2.3432ZM16,8.8364,12.8459,4h6.3082Zm-2.19.3032L7.1992,6.7358l3.5152-2.3432Zm-4.8439,8.03-4.802-1.8007L5.3652,9.9668ZM14.07,27.377,7.5679,25.4263l3.1284-4.7969Zm7.2334-6.7476,3.1284,4.7969L17.93,27.377ZM26.6348,9.9668l1.2006,5.4019-4.802,1.8007ZM4.5374,17.6445l4.5944,1.7227L6.3391,23.65ZM25.6609,23.65l-2.7927-4.2827,4.5944-1.7227Z\"\n })), children);\n});\nvar WatsonHealth3DSoftware32 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DSoftware32(_ref33, ref) {\n var children = _ref33.children,\n rest = _objectWithoutProperties(_ref33, _excluded33);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path37 || (_path37 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.49 13.1151l-9-5a1 1 0 00-1 0l-9 5A1.0078 1.0078 0 002 14v9.9951a1 1 0 00.52.87l9 5A1.0045 1.0045 0 0012 30a1.0559 1.0559 0 00.49-.1349l9-5A.9923.9923 0 0022 24V14A1.0079 1.0079 0 0021.49 13.1151zM11 27.2951l-7-3.89v-7.72l7 3.89zm1-9.45L5.06 14 12 10.1351l6.94 3.86zm8 5.56l-7 3.89v-7.72l7-3.89zM30 6L26 6 26 2 24 2 24 6 20 6 20 8 24 8 24 12 26 12 26 8 30 8 30 6z\"\n })), children);\n});\nvar WatsonHealth3DSoftware24 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DSoftware24(_ref34, ref) {\n var children = _ref34.children,\n rest = _objectWithoutProperties(_ref34, _excluded34);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path38 || (_path38 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.49 13.1151l-9-5a1 1 0 00-1 0l-9 5A1.0078 1.0078 0 002 14v9.9951a1 1 0 00.52.87l9 5A1.0045 1.0045 0 0012 30a1.0559 1.0559 0 00.49-.1349l9-5A.9923.9923 0 0022 24V14A1.0079 1.0079 0 0021.49 13.1151zM11 27.2951l-7-3.89v-7.72l7 3.89zm1-9.45L5.06 14 12 10.1351l6.94 3.86zm8 5.56l-7 3.89v-7.72l7-3.89zM30 6L26 6 26 2 24 2 24 6 20 6 20 8 24 8 24 12 26 12 26 8 30 8 30 6z\"\n })), children);\n});\nvar WatsonHealth3DSoftware20 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DSoftware20(_ref35, ref) {\n var children = _ref35.children,\n rest = _objectWithoutProperties(_ref35, _excluded35);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path39 || (_path39 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.49 13.1151l-9-5a1 1 0 00-1 0l-9 5A1.0078 1.0078 0 002 14v9.9951a1 1 0 00.52.87l9 5A1.0045 1.0045 0 0012 30a1.0559 1.0559 0 00.49-.1349l9-5A.9923.9923 0 0022 24V14A1.0079 1.0079 0 0021.49 13.1151zM11 27.2951l-7-3.89v-7.72l7 3.89zm1-9.45L5.06 14 12 10.1351l6.94 3.86zm8 5.56l-7 3.89v-7.72l7-3.89zM30 6L26 6 26 2 24 2 24 6 20 6 20 8 24 8 24 12 26 12 26 8 30 8 30 6z\"\n })), children);\n});\nvar WatsonHealth3DSoftware16 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DSoftware16(_ref36, ref) {\n var children = _ref36.children,\n rest = _objectWithoutProperties(_ref36, _excluded36);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path40 || (_path40 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.49 13.1151l-9-5a1 1 0 00-1 0l-9 5A1.0078 1.0078 0 002 14v9.9951a1 1 0 00.52.87l9 5A1.0045 1.0045 0 0012 30a1.0559 1.0559 0 00.49-.1349l9-5A.9923.9923 0 0022 24V14A1.0079 1.0079 0 0021.49 13.1151zM11 27.2951l-7-3.89v-7.72l7 3.89zm1-9.45L5.06 14 12 10.1351l6.94 3.86zm8 5.56l-7 3.89v-7.72l7-3.89zM30 6L26 6 26 2 24 2 24 6 20 6 20 8 24 8 24 12 26 12 26 8 30 8 30 6z\"\n })), children);\n});\nvar WatsonHealth3rdPartyConnected32 = /*#__PURE__*/React.forwardRef(function WatsonHealth3rdPartyConnected32(_ref37, ref) {\n var children = _ref37.children,\n rest = _objectWithoutProperties(_ref37, _excluded37);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path41 || (_path41 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,22a3.86,3.86,0,0,0-2,.57l-3.09-3.1a6,6,0,0,0,0-6.94L24,9.43A3.86,3.86,0,0,0,26,10a4,4,0,1,0-4-4,3.86,3.86,0,0,0,.57,2l-3.1,3.09a6,6,0,0,0-6.94,0L9.43,8A3.86,3.86,0,0,0,10,6a4,4,0,1,0-4,4,3.86,3.86,0,0,0,2-.57l3.09,3.1a6,6,0,0,0,0,6.94L8,22.57A3.86,3.86,0,0,0,6,22a4,4,0,1,0,4,4,3.86,3.86,0,0,0-.57-2l3.1-3.09a6,6,0,0,0,6.94,0L22.57,24A3.86,3.86,0,0,0,22,26a4,4,0,1,0,4-4ZM16,20a4,4,0,1,1,4-4A4,4,0,0,1,16,20Z\"\n })), children);\n});\nvar WatsonHealth3rdPartyConnected24 = /*#__PURE__*/React.forwardRef(function WatsonHealth3rdPartyConnected24(_ref38, ref) {\n var children = _ref38.children,\n rest = _objectWithoutProperties(_ref38, _excluded38);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path42 || (_path42 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,22a3.86,3.86,0,0,0-2,.57l-3.09-3.1a6,6,0,0,0,0-6.94L24,9.43A3.86,3.86,0,0,0,26,10a4,4,0,1,0-4-4,3.86,3.86,0,0,0,.57,2l-3.1,3.09a6,6,0,0,0-6.94,0L9.43,8A3.86,3.86,0,0,0,10,6a4,4,0,1,0-4,4,3.86,3.86,0,0,0,2-.57l3.09,3.1a6,6,0,0,0,0,6.94L8,22.57A3.86,3.86,0,0,0,6,22a4,4,0,1,0,4,4,3.86,3.86,0,0,0-.57-2l3.1-3.09a6,6,0,0,0,6.94,0L22.57,24A3.86,3.86,0,0,0,22,26a4,4,0,1,0,4-4ZM16,20a4,4,0,1,1,4-4A4,4,0,0,1,16,20Z\"\n })), children);\n});\nvar WatsonHealth3rdPartyConnected20 = /*#__PURE__*/React.forwardRef(function WatsonHealth3rdPartyConnected20(_ref39, ref) {\n var children = _ref39.children,\n rest = _objectWithoutProperties(_ref39, _excluded39);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path43 || (_path43 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,22a3.86,3.86,0,0,0-2,.57l-3.09-3.1a6,6,0,0,0,0-6.94L24,9.43A3.86,3.86,0,0,0,26,10a4,4,0,1,0-4-4,3.86,3.86,0,0,0,.57,2l-3.1,3.09a6,6,0,0,0-6.94,0L9.43,8A3.86,3.86,0,0,0,10,6a4,4,0,1,0-4,4,3.86,3.86,0,0,0,2-.57l3.09,3.1a6,6,0,0,0,0,6.94L8,22.57A3.86,3.86,0,0,0,6,22a4,4,0,1,0,4,4,3.86,3.86,0,0,0-.57-2l3.1-3.09a6,6,0,0,0,6.94,0L22.57,24A3.86,3.86,0,0,0,22,26a4,4,0,1,0,4-4ZM16,20a4,4,0,1,1,4-4A4,4,0,0,1,16,20Z\"\n })), children);\n});\nvar WatsonHealth3rdPartyConnected16 = /*#__PURE__*/React.forwardRef(function WatsonHealth3rdPartyConnected16(_ref40, ref) {\n var children = _ref40.children,\n rest = _objectWithoutProperties(_ref40, _excluded40);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path44 || (_path44 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,22a3.86,3.86,0,0,0-2,.57l-3.09-3.1a6,6,0,0,0,0-6.94L24,9.43A3.86,3.86,0,0,0,26,10a4,4,0,1,0-4-4,3.86,3.86,0,0,0,.57,2l-3.1,3.09a6,6,0,0,0-6.94,0L9.43,8A3.86,3.86,0,0,0,10,6a4,4,0,1,0-4,4,3.86,3.86,0,0,0,2-.57l3.09,3.1a6,6,0,0,0,0,6.94L8,22.57A3.86,3.86,0,0,0,6,22a4,4,0,1,0,4,4,3.86,3.86,0,0,0-.57-2l3.1-3.09a6,6,0,0,0,6.94,0L22.57,24A3.86,3.86,0,0,0,22,26a4,4,0,1,0,4-4ZM16,20a4,4,0,1,1,4-4A4,4,0,0,1,16,20Z\"\n })), children);\n});\nvar _4K32 = /*#__PURE__*/React.forwardRef(function _4K32(_ref41, ref) {\n var children = _ref41.children,\n rest = _objectWithoutProperties(_ref41, _excluded41);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path45 || (_path45 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 11.03L12 15.03 10 15.03 10 11.03 8 11.03 8 17.03 12 17.03 12 21.03 14 21.03 14 11.03 12 11.03zM24.19 11.03L22 11.03 19 15.42 19 11.03 17 11.03 17 21.03 19 21.03 19 18.3 19.91 16.97 22 21.03 24.19 21.03 21.2 15.41 24.19 11.03z\"\n })), _path46 || (_path46 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,26H4a2,2,0,0,1-2-2V8A2,2,0,0,1,4,6H28a2,2,0,0,1,2,2V24A2,2,0,0,1,28,26ZM4,8V24H28V8Z\"\n })), children);\n});\nvar _4K24 = /*#__PURE__*/React.forwardRef(function _4K24(_ref42, ref) {\n var children = _ref42.children,\n rest = _objectWithoutProperties(_ref42, _excluded42);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path47 || (_path47 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 11.03L12 15.03 10 15.03 10 11.03 8 11.03 8 17.03 12 17.03 12 21.03 14 21.03 14 11.03 12 11.03zM24.19 11.03L22 11.03 19 15.42 19 11.03 17 11.03 17 21.03 19 21.03 19 18.3 19.91 16.97 22 21.03 24.19 21.03 21.2 15.41 24.19 11.03z\"\n })), _path48 || (_path48 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,26H4a2,2,0,0,1-2-2V8A2,2,0,0,1,4,6H28a2,2,0,0,1,2,2V24A2,2,0,0,1,28,26ZM4,8V24H28V8Z\"\n })), children);\n});\nvar _4K20 = /*#__PURE__*/React.forwardRef(function _4K20(_ref43, ref) {\n var children = _ref43.children,\n rest = _objectWithoutProperties(_ref43, _excluded43);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path49 || (_path49 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 11.03L12 15.03 10 15.03 10 11.03 8 11.03 8 17.03 12 17.03 12 21.03 14 21.03 14 11.03 12 11.03zM24.19 11.03L22 11.03 19 15.42 19 11.03 17 11.03 17 21.03 19 21.03 19 18.3 19.91 16.97 22 21.03 24.19 21.03 21.2 15.41 24.19 11.03z\"\n })), _path50 || (_path50 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,26H4a2,2,0,0,1-2-2V8A2,2,0,0,1,4,6H28a2,2,0,0,1,2,2V24A2,2,0,0,1,28,26ZM4,8V24H28V8Z\"\n })), children);\n});\nvar _4K16 = /*#__PURE__*/React.forwardRef(function _4K16(_ref44, ref) {\n var children = _ref44.children,\n rest = _objectWithoutProperties(_ref44, _excluded44);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path51 || (_path51 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 11.03L12 15.03 10 15.03 10 11.03 8 11.03 8 17.03 12 17.03 12 21.03 14 21.03 14 11.03 12 11.03zM24.19 11.03L22 11.03 19 15.42 19 11.03 17 11.03 17 21.03 19 21.03 19 18.3 19.91 16.97 22 21.03 24.19 21.03 21.2 15.41 24.19 11.03z\"\n })), _path52 || (_path52 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,26H4a2,2,0,0,1-2-2V8A2,2,0,0,1,4,6H28a2,2,0,0,1,2,2V24A2,2,0,0,1,28,26ZM4,8V24H28V8Z\"\n })), children);\n});\nvar _4KFilled32 = /*#__PURE__*/React.forwardRef(function _4KFilled32(_ref45, ref) {\n var children = _ref45.children,\n rest = _objectWithoutProperties(_ref45, _excluded45);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path53 || (_path53 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,6H4A2,2,0,0,0,2,8V24a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V8A2,2,0,0,0,28,6ZM14,21H12V17H8V11h2v4h2V11h2Zm10.19,0H22l-2.09-4.06L19,18.27V21H17V11h2v4.39L22,11h2.19l-3,4.38Z\"\n })), children);\n});\nvar _4KFilled24 = /*#__PURE__*/React.forwardRef(function _4KFilled24(_ref46, ref) {\n var children = _ref46.children,\n rest = _objectWithoutProperties(_ref46, _excluded46);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path54 || (_path54 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,6H4A2,2,0,0,0,2,8V24a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V8A2,2,0,0,0,28,6ZM14,21H12V17H8V11h2v4h2V11h2Zm10.19,0H22l-2.09-4.06L19,18.27V21H17V11h2v4.39L22,11h2.19l-3,4.38Z\"\n })), children);\n});\nvar _4KFilled20 = /*#__PURE__*/React.forwardRef(function _4KFilled20(_ref47, ref) {\n var children = _ref47.children,\n rest = _objectWithoutProperties(_ref47, _excluded47);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path55 || (_path55 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,6H4A2,2,0,0,0,2,8V24a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V8A2,2,0,0,0,28,6ZM14,21H12V17H8V11h2v4h2V11h2Zm10.19,0H22l-2.09-4.06L19,18.27V21H17V11h2v4.39L22,11h2.19l-3,4.38Z\"\n })), children);\n});\nvar _4KFilled16 = /*#__PURE__*/React.forwardRef(function _4KFilled16(_ref48, ref) {\n var children = _ref48.children,\n rest = _objectWithoutProperties(_ref48, _excluded48);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path56 || (_path56 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,6H4A2,2,0,0,0,2,8V24a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V8A2,2,0,0,0,28,6ZM14,21H12V17H8V11h2v4h2V11h2Zm10.19,0H22l-2.09-4.06L19,18.27V21H17V11h2v4.39L22,11h2.19l-3,4.38Z\"\n })), children);\n});\nvar Accessibility32 = /*#__PURE__*/React.forwardRef(function Accessibility32(_ref49, ref) {\n var children = _ref49.children,\n rest = _objectWithoutProperties(_ref49, _excluded49);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path57 || (_path57 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.55 26.11L26.5 27.63 23.66 21H15a2 2 0 01-2-2V13a2 2 0 014 0v4h7V15H19V13a4 4 0 00-8 0v1a9 9 0 108.77 11H17.71A7 7 0 1111 16v3a4 4 0 004 4h7.34l3.16 7.37 4.95-2.48zM15.5 8A3.5 3.5 0 1119 4.5 3.5 3.5 0 0115.5 8zm0-5A1.5 1.5 0 1017 4.5 1.5 1.5 0 0015.5 3z\"\n })), children);\n});\nvar Accessibility24 = /*#__PURE__*/React.forwardRef(function Accessibility24(_ref50, ref) {\n var children = _ref50.children,\n rest = _objectWithoutProperties(_ref50, _excluded50);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path58 || (_path58 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.55 26.11L26.5 27.63 23.66 21H15a2 2 0 01-2-2V13a2 2 0 014 0v4h7V15H19V13a4 4 0 00-8 0v1a9 9 0 108.77 11H17.71A7 7 0 1111 16v3a4 4 0 004 4h7.34l3.16 7.37 4.95-2.48zM15.5 8A3.5 3.5 0 1119 4.5 3.5 3.5 0 0115.5 8zm0-5A1.5 1.5 0 1017 4.5 1.5 1.5 0 0015.5 3z\"\n })), children);\n});\nvar Accessibility20 = /*#__PURE__*/React.forwardRef(function Accessibility20(_ref51, ref) {\n var children = _ref51.children,\n rest = _objectWithoutProperties(_ref51, _excluded51);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path59 || (_path59 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.55 26.11L26.5 27.63 23.66 21H15a2 2 0 01-2-2V13a2 2 0 014 0v4h7V15H19V13a4 4 0 00-8 0v1a9 9 0 108.77 11H17.71A7 7 0 1111 16v3a4 4 0 004 4h7.34l3.16 7.37 4.95-2.48zM15.5 8A3.5 3.5 0 1119 4.5 3.5 3.5 0 0115.5 8zm0-5A1.5 1.5 0 1017 4.5 1.5 1.5 0 0015.5 3z\"\n })), children);\n});\nvar Accessibility16 = /*#__PURE__*/React.forwardRef(function Accessibility16(_ref52, ref) {\n var children = _ref52.children,\n rest = _objectWithoutProperties(_ref52, _excluded52);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path60 || (_path60 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.55 26.11L26.5 27.63 23.66 21H15a2 2 0 01-2-2V13a2 2 0 014 0v4h7V15H19V13a4 4 0 00-8 0v1a9 9 0 108.77 11H17.71A7 7 0 1111 16v3a4 4 0 004 4h7.34l3.16 7.37 4.95-2.48zM15.5 8A3.5 3.5 0 1119 4.5 3.5 3.5 0 0115.5 8zm0-5A1.5 1.5 0 1017 4.5 1.5 1.5 0 0015.5 3z\"\n })), children);\n});\nvar AccessibilityAlt32 = /*#__PURE__*/React.forwardRef(function AccessibilityAlt32(_ref53, ref) {\n var children = _ref53.children,\n rest = _objectWithoutProperties(_ref53, _excluded53);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path61 || (_path61 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 14L23 12 9 12 9 14 14 14 14 16.734 10.132 23.504 11.868 24.496 15.58 18 16.42 18 20.132 24.496 21.868 23.504 18 16.734 18 14 23 14z\"\n })), _circle || (_circle = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"9\",\n r: \"2\"\n })), _path62 || (_path62 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar AccessibilityAlt24 = /*#__PURE__*/React.forwardRef(function AccessibilityAlt24(_ref54, ref) {\n var children = _ref54.children,\n rest = _objectWithoutProperties(_ref54, _excluded54);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path63 || (_path63 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 14L23 12 9 12 9 14 14 14 14 16.734 10.132 23.504 11.868 24.496 15.58 18 16.42 18 20.132 24.496 21.868 23.504 18 16.734 18 14 23 14z\"\n })), _circle2 || (_circle2 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"9\",\n r: \"2\"\n })), _path64 || (_path64 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar AccessibilityAlt20 = /*#__PURE__*/React.forwardRef(function AccessibilityAlt20(_ref55, ref) {\n var children = _ref55.children,\n rest = _objectWithoutProperties(_ref55, _excluded55);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path65 || (_path65 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 14L23 12 9 12 9 14 14 14 14 16.734 10.132 23.504 11.868 24.496 15.58 18 16.42 18 20.132 24.496 21.868 23.504 18 16.734 18 14 23 14z\"\n })), _circle3 || (_circle3 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"9\",\n r: \"2\"\n })), _path66 || (_path66 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar AccessibilityAlt16 = /*#__PURE__*/React.forwardRef(function AccessibilityAlt16(_ref56, ref) {\n var children = _ref56.children,\n rest = _objectWithoutProperties(_ref56, _excluded56);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path67 || (_path67 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 14L23 12 9 12 9 14 14 14 14 16.734 10.132 23.504 11.868 24.496 15.58 18 16.42 18 20.132 24.496 21.868 23.504 18 16.734 18 14 23 14z\"\n })), _circle4 || (_circle4 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"9\",\n r: \"2\"\n })), _path68 || (_path68 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar AccessibilityColor32 = /*#__PURE__*/React.forwardRef(function AccessibilityColor32(_ref57, ref) {\n var children = _ref57.children,\n rest = _objectWithoutProperties(_ref57, _excluded57);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path69 || (_path69 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,20a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,20Zm0-6a2,2,0,1,0,2,2A2.0021,2.0021,0,0,0,16,14Z\"\n })), _path70 || (_path70 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,24a10.6547,10.6547,0,0,1-9.97-7.7576L5.9692,16l.0606-.2424A10.6547,10.6547,0,0,1,16,8a10.6547,10.6547,0,0,1,9.97,7.7576L26.0308,16l-.0606.2424A10.6547,10.6547,0,0,1,16,24ZM8.0352,16A8.5975,8.5975,0,0,0,16,22a8.5975,8.5975,0,0,0,7.9648-6A8.5975,8.5975,0,0,0,16,10,8.5975,8.5975,0,0,0,8.0352,16Z\"\n })), _path71 || (_path71 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar AccessibilityColor24 = /*#__PURE__*/React.forwardRef(function AccessibilityColor24(_ref58, ref) {\n var children = _ref58.children,\n rest = _objectWithoutProperties(_ref58, _excluded58);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path72 || (_path72 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,20a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,20Zm0-6a2,2,0,1,0,2,2A2.0021,2.0021,0,0,0,16,14Z\"\n })), _path73 || (_path73 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,24a10.6547,10.6547,0,0,1-9.97-7.7576L5.9692,16l.0606-.2424A10.6547,10.6547,0,0,1,16,8a10.6547,10.6547,0,0,1,9.97,7.7576L26.0308,16l-.0606.2424A10.6547,10.6547,0,0,1,16,24ZM8.0352,16A8.5975,8.5975,0,0,0,16,22a8.5975,8.5975,0,0,0,7.9648-6A8.5975,8.5975,0,0,0,16,10,8.5975,8.5975,0,0,0,8.0352,16Z\"\n })), _path74 || (_path74 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar AccessibilityColor20 = /*#__PURE__*/React.forwardRef(function AccessibilityColor20(_ref59, ref) {\n var children = _ref59.children,\n rest = _objectWithoutProperties(_ref59, _excluded59);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path75 || (_path75 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,20a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,20Zm0-6a2,2,0,1,0,2,2A2.0021,2.0021,0,0,0,16,14Z\"\n })), _path76 || (_path76 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,24a10.6547,10.6547,0,0,1-9.97-7.7576L5.9692,16l.0606-.2424A10.6547,10.6547,0,0,1,16,8a10.6547,10.6547,0,0,1,9.97,7.7576L26.0308,16l-.0606.2424A10.6547,10.6547,0,0,1,16,24ZM8.0352,16A8.5975,8.5975,0,0,0,16,22a8.5975,8.5975,0,0,0,7.9648-6A8.5975,8.5975,0,0,0,16,10,8.5975,8.5975,0,0,0,8.0352,16Z\"\n })), _path77 || (_path77 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar AccessibilityColor16 = /*#__PURE__*/React.forwardRef(function AccessibilityColor16(_ref60, ref) {\n var children = _ref60.children,\n rest = _objectWithoutProperties(_ref60, _excluded60);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path78 || (_path78 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,20a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,20Zm0-6a2,2,0,1,0,2,2A2.0021,2.0021,0,0,0,16,14Z\"\n })), _path79 || (_path79 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,24a10.6547,10.6547,0,0,1-9.97-7.7576L5.9692,16l.0606-.2424A10.6547,10.6547,0,0,1,16,8a10.6547,10.6547,0,0,1,9.97,7.7576L26.0308,16l-.0606.2424A10.6547,10.6547,0,0,1,16,24ZM8.0352,16A8.5975,8.5975,0,0,0,16,22a8.5975,8.5975,0,0,0,7.9648-6A8.5975,8.5975,0,0,0,16,10,8.5975,8.5975,0,0,0,8.0352,16Z\"\n })), _path80 || (_path80 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar AccessibilityColorFilled32 = /*#__PURE__*/React.forwardRef(function AccessibilityColorFilled32(_ref61, ref) {\n var children = _ref61.children,\n rest = _objectWithoutProperties(_ref61, _excluded61);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path81 || (_path81 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,10a8.5975,8.5975,0,0,0-7.9648,6A8.5975,8.5975,0,0,0,16,22a8.5975,8.5975,0,0,0,7.9648-6A8.5975,8.5975,0,0,0,16,10Zm0,10a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,20Z\"\n })), _path82 || (_path82 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,22a10.6543,10.6543,0,0,1-9.97-7.7578L5.9692,16l.0606-.2422A10.6543,10.6543,0,0,1,16,8a10.6543,10.6543,0,0,1,9.97,7.7578L26.0308,16l-.0606.2422A10.6543,10.6543,0,0,1,16,24Z\"\n })), _circle5 || (_circle5 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), _path83 || (_path83 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M16,20a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,20Zm0-6a2,2,0,1,0,2,2A2.0021,2.0021,0,0,0,16,14Z\"\n })), _path84 || (_path84 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M16,24a10.6547,10.6547,0,0,1-9.97-7.7576L5.9692,16l.0606-.2424A10.6547,10.6547,0,0,1,16,8a10.6547,10.6547,0,0,1,9.97,7.7576L26.0308,16l-.0606.2424A10.6547,10.6547,0,0,1,16,24ZM8.0352,16A8.5975,8.5975,0,0,0,16,22a8.5975,8.5975,0,0,0,7.9648-6A8.5975,8.5975,0,0,0,16,10,8.5975,8.5975,0,0,0,8.0352,16Z\"\n })), children);\n});\nvar AccessibilityColorFilled24 = /*#__PURE__*/React.forwardRef(function AccessibilityColorFilled24(_ref62, ref) {\n var children = _ref62.children,\n rest = _objectWithoutProperties(_ref62, _excluded62);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path85 || (_path85 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,10a8.5975,8.5975,0,0,0-7.9648,6A8.5975,8.5975,0,0,0,16,22a8.5975,8.5975,0,0,0,7.9648-6A8.5975,8.5975,0,0,0,16,10Zm0,10a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,20Z\"\n })), _path86 || (_path86 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,22a10.6543,10.6543,0,0,1-9.97-7.7578L5.9692,16l.0606-.2422A10.6543,10.6543,0,0,1,16,8a10.6543,10.6543,0,0,1,9.97,7.7578L26.0308,16l-.0606.2422A10.6543,10.6543,0,0,1,16,24Z\"\n })), _circle6 || (_circle6 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), _path87 || (_path87 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M16,20a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,20Zm0-6a2,2,0,1,0,2,2A2.0021,2.0021,0,0,0,16,14Z\"\n })), _path88 || (_path88 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M16,24a10.6547,10.6547,0,0,1-9.97-7.7576L5.9692,16l.0606-.2424A10.6547,10.6547,0,0,1,16,8a10.6547,10.6547,0,0,1,9.97,7.7576L26.0308,16l-.0606.2424A10.6547,10.6547,0,0,1,16,24ZM8.0352,16A8.5975,8.5975,0,0,0,16,22a8.5975,8.5975,0,0,0,7.9648-6A8.5975,8.5975,0,0,0,16,10,8.5975,8.5975,0,0,0,8.0352,16Z\"\n })), children);\n});\nvar AccessibilityColorFilled20 = /*#__PURE__*/React.forwardRef(function AccessibilityColorFilled20(_ref63, ref) {\n var children = _ref63.children,\n rest = _objectWithoutProperties(_ref63, _excluded63);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path89 || (_path89 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,10a8.5975,8.5975,0,0,0-7.9648,6A8.5975,8.5975,0,0,0,16,22a8.5975,8.5975,0,0,0,7.9648-6A8.5975,8.5975,0,0,0,16,10Zm0,10a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,20Z\"\n })), _path90 || (_path90 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,22a10.6543,10.6543,0,0,1-9.97-7.7578L5.9692,16l.0606-.2422A10.6543,10.6543,0,0,1,16,8a10.6543,10.6543,0,0,1,9.97,7.7578L26.0308,16l-.0606.2422A10.6543,10.6543,0,0,1,16,24Z\"\n })), _circle7 || (_circle7 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), _path91 || (_path91 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M16,20a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,20Zm0-6a2,2,0,1,0,2,2A2.0021,2.0021,0,0,0,16,14Z\"\n })), _path92 || (_path92 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M16,24a10.6547,10.6547,0,0,1-9.97-7.7576L5.9692,16l.0606-.2424A10.6547,10.6547,0,0,1,16,8a10.6547,10.6547,0,0,1,9.97,7.7576L26.0308,16l-.0606.2424A10.6547,10.6547,0,0,1,16,24ZM8.0352,16A8.5975,8.5975,0,0,0,16,22a8.5975,8.5975,0,0,0,7.9648-6A8.5975,8.5975,0,0,0,16,10,8.5975,8.5975,0,0,0,8.0352,16Z\"\n })), children);\n});\nvar AccessibilityColorFilled16 = /*#__PURE__*/React.forwardRef(function AccessibilityColorFilled16(_ref64, ref) {\n var children = _ref64.children,\n rest = _objectWithoutProperties(_ref64, _excluded64);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path93 || (_path93 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,10a8.5975,8.5975,0,0,0-7.9648,6A8.5975,8.5975,0,0,0,16,22a8.5975,8.5975,0,0,0,7.9648-6A8.5975,8.5975,0,0,0,16,10Zm0,10a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,20Z\"\n })), _path94 || (_path94 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,22a10.6543,10.6543,0,0,1-9.97-7.7578L5.9692,16l.0606-.2422A10.6543,10.6543,0,0,1,16,8a10.6543,10.6543,0,0,1,9.97,7.7578L26.0308,16l-.0606.2422A10.6543,10.6543,0,0,1,16,24Z\"\n })), _circle8 || (_circle8 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), _path95 || (_path95 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M16,20a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,20Zm0-6a2,2,0,1,0,2,2A2.0021,2.0021,0,0,0,16,14Z\"\n })), _path96 || (_path96 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M16,24a10.6547,10.6547,0,0,1-9.97-7.7576L5.9692,16l.0606-.2424A10.6547,10.6547,0,0,1,16,8a10.6547,10.6547,0,0,1,9.97,7.7576L26.0308,16l-.0606.2424A10.6547,10.6547,0,0,1,16,24ZM8.0352,16A8.5975,8.5975,0,0,0,16,22a8.5975,8.5975,0,0,0,7.9648-6A8.5975,8.5975,0,0,0,16,10,8.5975,8.5975,0,0,0,8.0352,16Z\"\n })), children);\n});\nvar Account32 = /*#__PURE__*/React.forwardRef(function Account32(_ref65, ref) {\n var children = _ref65.children,\n rest = _objectWithoutProperties(_ref65, _excluded65);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path97 || (_path97 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8,14H19v2H8Zm0,5H21v2H8Z\"\n })), _path98 || (_path98 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,2V8H4V6ZM4,26V10H28V26Z\"\n })), children);\n});\nvar Account24 = /*#__PURE__*/React.forwardRef(function Account24(_ref66, ref) {\n var children = _ref66.children,\n rest = _objectWithoutProperties(_ref66, _excluded66);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path99 || (_path99 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8,14H19v2H8Zm0,5H21v2H8Z\"\n })), _path100 || (_path100 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,2V8H4V6ZM4,26V10H28V26Z\"\n })), children);\n});\nvar Account20 = /*#__PURE__*/React.forwardRef(function Account20(_ref67, ref) {\n var children = _ref67.children,\n rest = _objectWithoutProperties(_ref67, _excluded67);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path101 || (_path101 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8,14H19v2H8Zm0,5H21v2H8Z\"\n })), _path102 || (_path102 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,2V8H4V6ZM4,26V10H28V26Z\"\n })), children);\n});\nvar Account16 = /*#__PURE__*/React.forwardRef(function Account16(_ref68, ref) {\n var children = _ref68.children,\n rest = _objectWithoutProperties(_ref68, _excluded68);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path103 || (_path103 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8,14H19v2H8Zm0,5H21v2H8Z\"\n })), _path104 || (_path104 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,2V8H4V6ZM4,26V10H28V26Z\"\n })), children);\n});\nvar AccumulationIce32 = /*#__PURE__*/React.forwardRef(function AccumulationIce32(_ref69, ref) {\n var children = _ref69.children,\n rest = _objectWithoutProperties(_ref69, _excluded69);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path105 || (_path105 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 8L22 16 23 18 24 16 24 8 22 8zM18 8L18 18 19 20 20 18 20 8 18 8z\"\n })), _path106 || (_path106 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4a2.0023,2.0023,0,0,0-2,2V26H6V22h4V20H6V16h4V14H6V10h8v4l1,2,1-2V8H6V6A2.0023,2.0023,0,0,0,4,4H2V6H4V26a2.0023,2.0023,0,0,0,2,2H26a2.0023,2.0023,0,0,0,2-2V6h2V4Z\"\n })), children);\n});\nvar AccumulationIce24 = /*#__PURE__*/React.forwardRef(function AccumulationIce24(_ref70, ref) {\n var children = _ref70.children,\n rest = _objectWithoutProperties(_ref70, _excluded70);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path107 || (_path107 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 8L22 16 23 18 24 16 24 8 22 8zM18 8L18 18 19 20 20 18 20 8 18 8z\"\n })), _path108 || (_path108 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4a2.0023,2.0023,0,0,0-2,2V26H6V22h4V20H6V16h4V14H6V10h8v4l1,2,1-2V8H6V6A2.0023,2.0023,0,0,0,4,4H2V6H4V26a2.0023,2.0023,0,0,0,2,2H26a2.0023,2.0023,0,0,0,2-2V6h2V4Z\"\n })), children);\n});\nvar AccumulationIce20 = /*#__PURE__*/React.forwardRef(function AccumulationIce20(_ref71, ref) {\n var children = _ref71.children,\n rest = _objectWithoutProperties(_ref71, _excluded71);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path109 || (_path109 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 8L22 16 23 18 24 16 24 8 22 8zM18 8L18 18 19 20 20 18 20 8 18 8z\"\n })), _path110 || (_path110 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4a2.0023,2.0023,0,0,0-2,2V26H6V22h4V20H6V16h4V14H6V10h8v4l1,2,1-2V8H6V6A2.0023,2.0023,0,0,0,4,4H2V6H4V26a2.0023,2.0023,0,0,0,2,2H26a2.0023,2.0023,0,0,0,2-2V6h2V4Z\"\n })), children);\n});\nvar AccumulationIce16 = /*#__PURE__*/React.forwardRef(function AccumulationIce16(_ref72, ref) {\n var children = _ref72.children,\n rest = _objectWithoutProperties(_ref72, _excluded72);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path111 || (_path111 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 8L22 16 23 18 24 16 24 8 22 8zM18 8L18 18 19 20 20 18 20 8 18 8z\"\n })), _path112 || (_path112 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4a2.0023,2.0023,0,0,0-2,2V26H6V22h4V20H6V16h4V14H6V10h8v4l1,2,1-2V8H6V6A2.0023,2.0023,0,0,0,4,4H2V6H4V26a2.0023,2.0023,0,0,0,2,2H26a2.0023,2.0023,0,0,0,2-2V6h2V4Z\"\n })), children);\n});\nvar AccumulationPrecipitation32 = /*#__PURE__*/React.forwardRef(function AccumulationPrecipitation32(_ref73, ref) {\n var children = _ref73.children,\n rest = _objectWithoutProperties(_ref73, _excluded73);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path113 || (_path113 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 16H18V18H16zM18 18H20V20H18zM20 20H22V22H20zM20 16H22V18H20zM16 20H18V22H16zM20 12a3.8978 3.8978 0 01-4-3.777 3.9017 3.9017 0 01.6533-2.0639L19.17 2.4141a1.0381 1.0381 0 011.6592 0L23.3154 6.11A3.9693 3.9693 0 0124 8.223 3.8978 3.8978 0 0120 12zm0-7.2368L18.3438 7.2257A1.89 1.89 0 0018 8.223 1.9 1.9 0 0020 10a1.9 1.9 0 002-1.777 1.98 1.98 0 00-.375-1.0466z\"\n })), _path114 || (_path114 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4a2.0023,2.0023,0,0,0-2,2V26H6V10H8v8l1,2,1-2V10h2v4l1,2,1-2V8H6V6A2.0023,2.0023,0,0,0,4,4H2V6H4V26a2.0023,2.0023,0,0,0,2,2H26a2.0023,2.0023,0,0,0,2-2V6h2V4Z\"\n })), children);\n});\nvar AccumulationPrecipitation24 = /*#__PURE__*/React.forwardRef(function AccumulationPrecipitation24(_ref74, ref) {\n var children = _ref74.children,\n rest = _objectWithoutProperties(_ref74, _excluded74);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path115 || (_path115 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 16H18V18H16zM18 18H20V20H18zM20 20H22V22H20zM20 16H22V18H20zM16 20H18V22H16zM20 12a3.8978 3.8978 0 01-4-3.777 3.9017 3.9017 0 01.6533-2.0639L19.17 2.4141a1.0381 1.0381 0 011.6592 0L23.3154 6.11A3.9693 3.9693 0 0124 8.223 3.8978 3.8978 0 0120 12zm0-7.2368L18.3438 7.2257A1.89 1.89 0 0018 8.223 1.9 1.9 0 0020 10a1.9 1.9 0 002-1.777 1.98 1.98 0 00-.375-1.0466z\"\n })), _path116 || (_path116 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4a2.0023,2.0023,0,0,0-2,2V26H6V10H8v8l1,2,1-2V10h2v4l1,2,1-2V8H6V6A2.0023,2.0023,0,0,0,4,4H2V6H4V26a2.0023,2.0023,0,0,0,2,2H26a2.0023,2.0023,0,0,0,2-2V6h2V4Z\"\n })), children);\n});\nvar AccumulationPrecipitation20 = /*#__PURE__*/React.forwardRef(function AccumulationPrecipitation20(_ref75, ref) {\n var children = _ref75.children,\n rest = _objectWithoutProperties(_ref75, _excluded75);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path117 || (_path117 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 16H18V18H16zM18 18H20V20H18zM20 20H22V22H20zM20 16H22V18H20zM16 20H18V22H16zM20 12a3.8978 3.8978 0 01-4-3.777 3.9017 3.9017 0 01.6533-2.0639L19.17 2.4141a1.0381 1.0381 0 011.6592 0L23.3154 6.11A3.9693 3.9693 0 0124 8.223 3.8978 3.8978 0 0120 12zm0-7.2368L18.3438 7.2257A1.89 1.89 0 0018 8.223 1.9 1.9 0 0020 10a1.9 1.9 0 002-1.777 1.98 1.98 0 00-.375-1.0466z\"\n })), _path118 || (_path118 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4a2.0023,2.0023,0,0,0-2,2V26H6V10H8v8l1,2,1-2V10h2v4l1,2,1-2V8H6V6A2.0023,2.0023,0,0,0,4,4H2V6H4V26a2.0023,2.0023,0,0,0,2,2H26a2.0023,2.0023,0,0,0,2-2V6h2V4Z\"\n })), children);\n});\nvar AccumulationPrecipitation16 = /*#__PURE__*/React.forwardRef(function AccumulationPrecipitation16(_ref76, ref) {\n var children = _ref76.children,\n rest = _objectWithoutProperties(_ref76, _excluded76);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path119 || (_path119 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 16H18V18H16zM18 18H20V20H18zM20 20H22V22H20zM20 16H22V18H20zM16 20H18V22H16zM20 12a3.8978 3.8978 0 01-4-3.777 3.9017 3.9017 0 01.6533-2.0639L19.17 2.4141a1.0381 1.0381 0 011.6592 0L23.3154 6.11A3.9693 3.9693 0 0124 8.223 3.8978 3.8978 0 0120 12zm0-7.2368L18.3438 7.2257A1.89 1.89 0 0018 8.223 1.9 1.9 0 0020 10a1.9 1.9 0 002-1.777 1.98 1.98 0 00-.375-1.0466z\"\n })), _path120 || (_path120 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4a2.0023,2.0023,0,0,0-2,2V26H6V10H8v8l1,2,1-2V10h2v4l1,2,1-2V8H6V6A2.0023,2.0023,0,0,0,4,4H2V6H4V26a2.0023,2.0023,0,0,0,2,2H26a2.0023,2.0023,0,0,0,2-2V6h2V4Z\"\n })), children);\n});\nvar AccumulationRain32 = /*#__PURE__*/React.forwardRef(function AccumulationRain32(_ref77, ref) {\n var children = _ref77.children,\n rest = _objectWithoutProperties(_ref77, _excluded77);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path121 || (_path121 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4a2.0023,2.0023,0,0,0-2,2V8H24a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,20,5a.9894.9894,0,0,0-.9468.6787A3.44,3.44,0,0,1,16,8a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,12,5a.971.971,0,0,0-.9468.6787A3.44,3.44,0,0,1,8,8H6V6A2.0023,2.0023,0,0,0,4,4H2V6H4V26a2.0023,2.0023,0,0,0,2,2H26a2.0023,2.0023,0,0,0,2-2V6h2V4ZM6,26V22h4V20H6V16h4V14H6V10H8a4.9316,4.9316,0,0,0,4-1.9873,5.0192,5.0192,0,0,0,8,0A4.9316,4.9316,0,0,0,24,10h2V26Z\"\n })), children);\n});\nvar AccumulationRain24 = /*#__PURE__*/React.forwardRef(function AccumulationRain24(_ref78, ref) {\n var children = _ref78.children,\n rest = _objectWithoutProperties(_ref78, _excluded78);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path122 || (_path122 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4a2.0023,2.0023,0,0,0-2,2V8H24a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,20,5a.9894.9894,0,0,0-.9468.6787A3.44,3.44,0,0,1,16,8a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,12,5a.971.971,0,0,0-.9468.6787A3.44,3.44,0,0,1,8,8H6V6A2.0023,2.0023,0,0,0,4,4H2V6H4V26a2.0023,2.0023,0,0,0,2,2H26a2.0023,2.0023,0,0,0,2-2V6h2V4ZM6,26V22h4V20H6V16h4V14H6V10H8a4.9316,4.9316,0,0,0,4-1.9873,5.0192,5.0192,0,0,0,8,0A4.9316,4.9316,0,0,0,24,10h2V26Z\"\n })), children);\n});\nvar AccumulationRain20 = /*#__PURE__*/React.forwardRef(function AccumulationRain20(_ref79, ref) {\n var children = _ref79.children,\n rest = _objectWithoutProperties(_ref79, _excluded79);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path123 || (_path123 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4a2.0023,2.0023,0,0,0-2,2V8H24a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,20,5a.9894.9894,0,0,0-.9468.6787A3.44,3.44,0,0,1,16,8a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,12,5a.971.971,0,0,0-.9468.6787A3.44,3.44,0,0,1,8,8H6V6A2.0023,2.0023,0,0,0,4,4H2V6H4V26a2.0023,2.0023,0,0,0,2,2H26a2.0023,2.0023,0,0,0,2-2V6h2V4ZM6,26V22h4V20H6V16h4V14H6V10H8a4.9316,4.9316,0,0,0,4-1.9873,5.0192,5.0192,0,0,0,8,0A4.9316,4.9316,0,0,0,24,10h2V26Z\"\n })), children);\n});\nvar AccumulationRain16 = /*#__PURE__*/React.forwardRef(function AccumulationRain16(_ref80, ref) {\n var children = _ref80.children,\n rest = _objectWithoutProperties(_ref80, _excluded80);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path124 || (_path124 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4a2.0023,2.0023,0,0,0-2,2V8H24a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,20,5a.9894.9894,0,0,0-.9468.6787A3.44,3.44,0,0,1,16,8a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,12,5a.971.971,0,0,0-.9468.6787A3.44,3.44,0,0,1,8,8H6V6A2.0023,2.0023,0,0,0,4,4H2V6H4V26a2.0023,2.0023,0,0,0,2,2H26a2.0023,2.0023,0,0,0,2-2V6h2V4ZM6,26V22h4V20H6V16h4V14H6V10H8a4.9316,4.9316,0,0,0,4-1.9873,5.0192,5.0192,0,0,0,8,0A4.9316,4.9316,0,0,0,24,10h2V26Z\"\n })), children);\n});\nvar AccumulationSnow32 = /*#__PURE__*/React.forwardRef(function AccumulationSnow32(_ref81, ref) {\n var children = _ref81.children,\n rest = _objectWithoutProperties(_ref81, _excluded81);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path125 || (_path125 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 2H14V4H12zM14 4H16V6H14zM16 6H18V8H16zM16 2H18V4H16zM12 6H14V8H12zM14 18H16V20H14zM16 20H18V22H16zM18 22H20V24H18zM18 18H20V20H18zM14 22H16V24H14zM18 10H20V12H18zM20 12H22V14H20zM22 14H24V16H22zM22 10H24V12H22zM18 14H20V16H18z\"\n })), _path126 || (_path126 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4a2.0023,2.0023,0,0,0-2,2V26H6V22h4V20H6V16h4V14H6V10h4V8H6V6A2.0023,2.0023,0,0,0,4,4H2V6H4V26a2.0023,2.0023,0,0,0,2,2H26a2.0023,2.0023,0,0,0,2-2V6h2V4Z\"\n })), children);\n});\nvar AccumulationSnow24 = /*#__PURE__*/React.forwardRef(function AccumulationSnow24(_ref82, ref) {\n var children = _ref82.children,\n rest = _objectWithoutProperties(_ref82, _excluded82);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path127 || (_path127 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 2H14V4H12zM14 4H16V6H14zM16 6H18V8H16zM16 2H18V4H16zM12 6H14V8H12zM14 18H16V20H14zM16 20H18V22H16zM18 22H20V24H18zM18 18H20V20H18zM14 22H16V24H14zM18 10H20V12H18zM20 12H22V14H20zM22 14H24V16H22zM22 10H24V12H22zM18 14H20V16H18z\"\n })), _path128 || (_path128 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4a2.0023,2.0023,0,0,0-2,2V26H6V22h4V20H6V16h4V14H6V10h4V8H6V6A2.0023,2.0023,0,0,0,4,4H2V6H4V26a2.0023,2.0023,0,0,0,2,2H26a2.0023,2.0023,0,0,0,2-2V6h2V4Z\"\n })), children);\n});\nvar AccumulationSnow20 = /*#__PURE__*/React.forwardRef(function AccumulationSnow20(_ref83, ref) {\n var children = _ref83.children,\n rest = _objectWithoutProperties(_ref83, _excluded83);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path129 || (_path129 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 2H14V4H12zM14 4H16V6H14zM16 6H18V8H16zM16 2H18V4H16zM12 6H14V8H12zM14 18H16V20H14zM16 20H18V22H16zM18 22H20V24H18zM18 18H20V20H18zM14 22H16V24H14zM18 10H20V12H18zM20 12H22V14H20zM22 14H24V16H22zM22 10H24V12H22zM18 14H20V16H18z\"\n })), _path130 || (_path130 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4a2.0023,2.0023,0,0,0-2,2V26H6V22h4V20H6V16h4V14H6V10h4V8H6V6A2.0023,2.0023,0,0,0,4,4H2V6H4V26a2.0023,2.0023,0,0,0,2,2H26a2.0023,2.0023,0,0,0,2-2V6h2V4Z\"\n })), children);\n});\nvar AccumulationSnow16 = /*#__PURE__*/React.forwardRef(function AccumulationSnow16(_ref84, ref) {\n var children = _ref84.children,\n rest = _objectWithoutProperties(_ref84, _excluded84);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path131 || (_path131 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 2H14V4H12zM14 4H16V6H14zM16 6H18V8H16zM16 2H18V4H16zM12 6H14V8H12zM14 18H16V20H14zM16 20H18V22H16zM18 22H20V24H18zM18 18H20V20H18zM14 22H16V24H14zM18 10H20V12H18zM20 12H22V14H20zM22 14H24V16H22zM22 10H24V12H22zM18 14H20V16H18z\"\n })), _path132 || (_path132 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4a2.0023,2.0023,0,0,0-2,2V26H6V22h4V20H6V16h4V14H6V10h4V8H6V6A2.0023,2.0023,0,0,0,4,4H2V6H4V26a2.0023,2.0023,0,0,0,2,2H26a2.0023,2.0023,0,0,0,2-2V6h2V4Z\"\n })), children);\n});\nvar Activity32 = /*#__PURE__*/React.forwardRef(function Activity32(_ref85, ref) {\n var children = _ref85.children,\n rest = _objectWithoutProperties(_ref85, _excluded85);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path133 || (_path133 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,29a1,1,0,0,1-.92-.62L6.33,17H2V15H7a1,1,0,0,1,.92.62L12,25.28,20.06,3.65A1,1,0,0,1,21,3a1,1,0,0,1,.93.68L25.72,15H30v2H25a1,1,0,0,1-.95-.68L21,7,12.94,28.35A1,1,0,0,1,12,29Z\"\n })), children);\n});\nvar Activity24 = /*#__PURE__*/React.forwardRef(function Activity24(_ref86, ref) {\n var children = _ref86.children,\n rest = _objectWithoutProperties(_ref86, _excluded86);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path134 || (_path134 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,29a1,1,0,0,1-.92-.62L6.33,17H2V15H7a1,1,0,0,1,.92.62L12,25.28,20.06,3.65A1,1,0,0,1,21,3a1,1,0,0,1,.93.68L25.72,15H30v2H25a1,1,0,0,1-.95-.68L21,7,12.94,28.35A1,1,0,0,1,12,29Z\"\n })), children);\n});\nvar Activity20 = /*#__PURE__*/React.forwardRef(function Activity20(_ref87, ref) {\n var children = _ref87.children,\n rest = _objectWithoutProperties(_ref87, _excluded87);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path135 || (_path135 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,29a1,1,0,0,1-.92-.62L6.33,17H2V15H7a1,1,0,0,1,.92.62L12,25.28,20.06,3.65A1,1,0,0,1,21,3a1,1,0,0,1,.93.68L25.72,15H30v2H25a1,1,0,0,1-.95-.68L21,7,12.94,28.35A1,1,0,0,1,12,29Z\"\n })), children);\n});\nvar Activity16 = /*#__PURE__*/React.forwardRef(function Activity16(_ref88, ref) {\n var children = _ref88.children,\n rest = _objectWithoutProperties(_ref88, _excluded88);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path136 || (_path136 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,29a1,1,0,0,1-.92-.62L6.33,17H2V15H7a1,1,0,0,1,.92.62L12,25.28,20.06,3.65A1,1,0,0,1,21,3a1,1,0,0,1,.93.68L25.72,15H30v2H25a1,1,0,0,1-.95-.68L21,7,12.94,28.35A1,1,0,0,1,12,29Z\"\n })), children);\n});\nvar Add32 = /*#__PURE__*/React.forwardRef(function Add32(_ref89, ref) {\n var children = _ref89.children,\n rest = _objectWithoutProperties(_ref89, _excluded89);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path137 || (_path137 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 15L17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z\"\n })), children);\n});\nvar Add24 = /*#__PURE__*/React.forwardRef(function Add24(_ref90, ref) {\n var children = _ref90.children,\n rest = _objectWithoutProperties(_ref90, _excluded90);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path138 || (_path138 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 15L17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z\"\n })), children);\n});\nvar Add20 = /*#__PURE__*/React.forwardRef(function Add20(_ref91, ref) {\n var children = _ref91.children,\n rest = _objectWithoutProperties(_ref91, _excluded91);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path139 || (_path139 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 15L17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z\"\n })), children);\n});\nvar Add16 = /*#__PURE__*/React.forwardRef(function Add16(_ref92, ref) {\n var children = _ref92.children,\n rest = _objectWithoutProperties(_ref92, _excluded92);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path140 || (_path140 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 15L17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z\"\n })), children);\n});\nvar AddAlt32 = /*#__PURE__*/React.forwardRef(function AddAlt32(_ref93, ref) {\n var children = _ref93.children,\n rest = _objectWithoutProperties(_ref93, _excluded93);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path141 || (_path141 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,4c6.6,0,12,5.4,12,12s-5.4,12-12,12S4,22.6,4,16S9.4,4,16,4 M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14\\tS23.7,2,16,2z\"\n })), _path142 || (_path142 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 15L17 15 17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17z\"\n })), children);\n});\nvar AddAlt24 = /*#__PURE__*/React.forwardRef(function AddAlt24(_ref94, ref) {\n var children = _ref94.children,\n rest = _objectWithoutProperties(_ref94, _excluded94);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path143 || (_path143 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,4c6.6,0,12,5.4,12,12s-5.4,12-12,12S4,22.6,4,16S9.4,4,16,4 M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14\\tS23.7,2,16,2z\"\n })), _path144 || (_path144 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 15L17 15 17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17z\"\n })), children);\n});\nvar AddAlt20 = /*#__PURE__*/React.forwardRef(function AddAlt20(_ref95, ref) {\n var children = _ref95.children,\n rest = _objectWithoutProperties(_ref95, _excluded95);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path145 || (_path145 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,4c6.6,0,12,5.4,12,12s-5.4,12-12,12S4,22.6,4,16S9.4,4,16,4 M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14\\tS23.7,2,16,2z\"\n })), _path146 || (_path146 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 15L17 15 17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17z\"\n })), children);\n});\nvar AddAlt16 = /*#__PURE__*/React.forwardRef(function AddAlt16(_ref96, ref) {\n var children = _ref96.children,\n rest = _objectWithoutProperties(_ref96, _excluded96);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path147 || (_path147 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,4c6.6,0,12,5.4,12,12s-5.4,12-12,12S4,22.6,4,16S9.4,4,16,4 M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14\\tS23.7,2,16,2z\"\n })), _path148 || (_path148 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 15L17 15 17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17z\"\n })), children);\n});\nvar AddFilled32 = /*#__PURE__*/React.forwardRef(function AddFilled32(_ref97, ref) {\n var children = _ref97.children,\n rest = _objectWithoutProperties(_ref97, _excluded97);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path149 || (_path149 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14.1725,14.1725,0,0,0,2,16,14.1725,14.1725,0,0,0,16,30,14.1725,14.1725,0,0,0,30,16,14.1725,14.1725,0,0,0,16,2Zm8,15H17v7H15V17H8V15h7V8h2v7h7Z\"\n })), _path150 || (_path150 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M24 17L17 17 17 24 15 24 15 17 8 17 8 15 15 15 15 8 17 8 17 15 24 15 24 17z\",\n \"data-icon-path\": \"inner-path\"\n })), children);\n});\nvar AddFilled24 = /*#__PURE__*/React.forwardRef(function AddFilled24(_ref98, ref) {\n var children = _ref98.children,\n rest = _objectWithoutProperties(_ref98, _excluded98);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path151 || (_path151 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14.1725,14.1725,0,0,0,2,16,14.1725,14.1725,0,0,0,16,30,14.1725,14.1725,0,0,0,30,16,14.1725,14.1725,0,0,0,16,2Zm8,15H17v7H15V17H8V15h7V8h2v7h7Z\"\n })), _path152 || (_path152 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M24 17L17 17 17 24 15 24 15 17 8 17 8 15 15 15 15 8 17 8 17 15 24 15 24 17z\",\n \"data-icon-path\": \"inner-path\"\n })), children);\n});\nvar AddFilled20 = /*#__PURE__*/React.forwardRef(function AddFilled20(_ref99, ref) {\n var children = _ref99.children,\n rest = _objectWithoutProperties(_ref99, _excluded99);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path153 || (_path153 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14.1725,14.1725,0,0,0,2,16,14.1725,14.1725,0,0,0,16,30,14.1725,14.1725,0,0,0,30,16,14.1725,14.1725,0,0,0,16,2Zm8,15H17v7H15V17H8V15h7V8h2v7h7Z\"\n })), _path154 || (_path154 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M24 17L17 17 17 24 15 24 15 17 8 17 8 15 15 15 15 8 17 8 17 15 24 15 24 17z\",\n \"data-icon-path\": \"inner-path\"\n })), children);\n});\nvar AddFilled16 = /*#__PURE__*/React.forwardRef(function AddFilled16(_ref100, ref) {\n var children = _ref100.children,\n rest = _objectWithoutProperties(_ref100, _excluded100);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path155 || (_path155 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14.1725,14.1725,0,0,0,2,16,14.1725,14.1725,0,0,0,16,30,14.1725,14.1725,0,0,0,30,16,14.1725,14.1725,0,0,0,16,2Zm8,15H17v7H15V17H8V15h7V8h2v7h7Z\"\n })), _path156 || (_path156 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M24 17L17 17 17 24 15 24 15 17 8 17 8 15 15 15 15 8 17 8 17 15 24 15 24 17z\",\n \"data-icon-path\": \"inner-path\"\n })), children);\n});\nvar AddComment32 = /*#__PURE__*/React.forwardRef(function AddComment32(_ref101, ref) {\n var children = _ref101.children,\n rest = _objectWithoutProperties(_ref101, _excluded101);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path157 || (_path157 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.74,30,16,29l4-7h6a2,2,0,0,0,2-2V8a2,2,0,0,0-2-2H6A2,2,0,0,0,4,8V20a2,2,0,0,0,2,2h9v2H6a4,4,0,0,1-4-4V8A4,4,0,0,1,6,4H26a4,4,0,0,1,4,4V20a4,4,0,0,1-4,4H21.16Z\"\n })), _path158 || (_path158 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 9L15 9 15 13 11 13 11 15 15 15 15 19 17 19 17 15 21 15 21 13 17 13 17 9z\"\n })), children);\n});\nvar AddComment24 = /*#__PURE__*/React.forwardRef(function AddComment24(_ref102, ref) {\n var children = _ref102.children,\n rest = _objectWithoutProperties(_ref102, _excluded102);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path159 || (_path159 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.74,30,16,29l4-7h6a2,2,0,0,0,2-2V8a2,2,0,0,0-2-2H6A2,2,0,0,0,4,8V20a2,2,0,0,0,2,2h9v2H6a4,4,0,0,1-4-4V8A4,4,0,0,1,6,4H26a4,4,0,0,1,4,4V20a4,4,0,0,1-4,4H21.16Z\"\n })), _path160 || (_path160 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 9L15 9 15 13 11 13 11 15 15 15 15 19 17 19 17 15 21 15 21 13 17 13 17 9z\"\n })), children);\n});\nvar AddComment20 = /*#__PURE__*/React.forwardRef(function AddComment20(_ref103, ref) {\n var children = _ref103.children,\n rest = _objectWithoutProperties(_ref103, _excluded103);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path161 || (_path161 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.74,30,16,29l4-7h6a2,2,0,0,0,2-2V8a2,2,0,0,0-2-2H6A2,2,0,0,0,4,8V20a2,2,0,0,0,2,2h9v2H6a4,4,0,0,1-4-4V8A4,4,0,0,1,6,4H26a4,4,0,0,1,4,4V20a4,4,0,0,1-4,4H21.16Z\"\n })), _path162 || (_path162 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 9L15 9 15 13 11 13 11 15 15 15 15 19 17 19 17 15 21 15 21 13 17 13 17 9z\"\n })), children);\n});\nvar AddComment16 = /*#__PURE__*/React.forwardRef(function AddComment16(_ref104, ref) {\n var children = _ref104.children,\n rest = _objectWithoutProperties(_ref104, _excluded104);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path163 || (_path163 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.74,30,16,29l4-7h6a2,2,0,0,0,2-2V8a2,2,0,0,0-2-2H6A2,2,0,0,0,4,8V20a2,2,0,0,0,2,2h9v2H6a4,4,0,0,1-4-4V8A4,4,0,0,1,6,4H26a4,4,0,0,1,4,4V20a4,4,0,0,1-4,4H21.16Z\"\n })), _path164 || (_path164 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 9L15 9 15 13 11 13 11 15 15 15 15 19 17 19 17 15 21 15 21 13 17 13 17 9z\"\n })), children);\n});\nvar AgricultureAnalytics32 = /*#__PURE__*/React.forwardRef(function AgricultureAnalytics32(_ref105, ref) {\n var children = _ref105.children,\n rest = _objectWithoutProperties(_ref105, _excluded105);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path165 || (_path165 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.251 21.3691l2.1943 1.4629A1 1 0 0027.8 22.6l3-4-1.6-1.2-2.4326 3.2437L24.5547 19.168a1 1 0 00-1.3687.2509L20 23.8789V16H18V26a2.0023 2.0023 0 002 2H30V26H20.9434zM2 21H16V23H2zM2 26H16V28H2zM11 16V11h1a4.0046 4.0046 0 004-4V4H13a3.9782 3.9782 0 00-2.7468 1.1066A6.0033 6.0033 0 005 2H2V5a6.0066 6.0066 0 006 6H9v5H2v2H16V16zM13 6h1V7a2.002 2.002 0 01-2 2H11V8A2.0019 2.0019 0 0113 6zM8 9A4.0046 4.0046 0 014 5V4H5A4.0045 4.0045 0 019 8V9z\"\n })), children);\n});\nvar AgricultureAnalytics24 = /*#__PURE__*/React.forwardRef(function AgricultureAnalytics24(_ref106, ref) {\n var children = _ref106.children,\n rest = _objectWithoutProperties(_ref106, _excluded106);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path166 || (_path166 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.251 21.3691l2.1943 1.4629A1 1 0 0027.8 22.6l3-4-1.6-1.2-2.4326 3.2437L24.5547 19.168a1 1 0 00-1.3687.2509L20 23.8789V16H18V26a2.0023 2.0023 0 002 2H30V26H20.9434zM2 21H16V23H2zM2 26H16V28H2zM11 16V11h1a4.0046 4.0046 0 004-4V4H13a3.9782 3.9782 0 00-2.7468 1.1066A6.0033 6.0033 0 005 2H2V5a6.0066 6.0066 0 006 6H9v5H2v2H16V16zM13 6h1V7a2.002 2.002 0 01-2 2H11V8A2.0019 2.0019 0 0113 6zM8 9A4.0046 4.0046 0 014 5V4H5A4.0045 4.0045 0 019 8V9z\"\n })), children);\n});\nvar AgricultureAnalytics20 = /*#__PURE__*/React.forwardRef(function AgricultureAnalytics20(_ref107, ref) {\n var children = _ref107.children,\n rest = _objectWithoutProperties(_ref107, _excluded107);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path167 || (_path167 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.251 21.3691l2.1943 1.4629A1 1 0 0027.8 22.6l3-4-1.6-1.2-2.4326 3.2437L24.5547 19.168a1 1 0 00-1.3687.2509L20 23.8789V16H18V26a2.0023 2.0023 0 002 2H30V26H20.9434zM2 21H16V23H2zM2 26H16V28H2zM11 16V11h1a4.0046 4.0046 0 004-4V4H13a3.9782 3.9782 0 00-2.7468 1.1066A6.0033 6.0033 0 005 2H2V5a6.0066 6.0066 0 006 6H9v5H2v2H16V16zM13 6h1V7a2.002 2.002 0 01-2 2H11V8A2.0019 2.0019 0 0113 6zM8 9A4.0046 4.0046 0 014 5V4H5A4.0045 4.0045 0 019 8V9z\"\n })), children);\n});\nvar AgricultureAnalytics16 = /*#__PURE__*/React.forwardRef(function AgricultureAnalytics16(_ref108, ref) {\n var children = _ref108.children,\n rest = _objectWithoutProperties(_ref108, _excluded108);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path168 || (_path168 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.251 21.3691l2.1943 1.4629A1 1 0 0027.8 22.6l3-4-1.6-1.2-2.4326 3.2437L24.5547 19.168a1 1 0 00-1.3687.2509L20 23.8789V16H18V26a2.0023 2.0023 0 002 2H30V26H20.9434zM2 21H16V23H2zM2 26H16V28H2zM11 16V11h1a4.0046 4.0046 0 004-4V4H13a3.9782 3.9782 0 00-2.7468 1.1066A6.0033 6.0033 0 005 2H2V5a6.0066 6.0066 0 006 6H9v5H2v2H16V16zM13 6h1V7a2.002 2.002 0 01-2 2H11V8A2.0019 2.0019 0 0113 6zM8 9A4.0046 4.0046 0 014 5V4H5A4.0045 4.0045 0 019 8V9z\"\n })), children);\n});\nvar WatsonHealthAiResults32 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResults32(_ref109, ref) {\n var children = _ref109.children,\n rest = _objectWithoutProperties(_ref109, _excluded109);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path169 || (_path169 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 8a5.9908 5.9908 0 009.4712 4.8853L28.586 16 30 14.586l-3.115-3.1148A5.997 5.997 0 1016 8zm2 0a4 4 0 114 4A4.0045 4.0045 0 0118 8zM11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0055 8.0055 0 016-7.7373L13.6138 2.3A10.0088 10.0088 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM23.0493 16a9.5991 9.5991 0 01-1.8716 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857a10.9664 10.9664 0 002.3686-2.8331z\"\n })), children);\n});\nvar WatsonHealthAiResults24 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResults24(_ref110, ref) {\n var children = _ref110.children,\n rest = _objectWithoutProperties(_ref110, _excluded110);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path170 || (_path170 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 8a5.9908 5.9908 0 009.4712 4.8853L28.586 16 30 14.586l-3.115-3.1148A5.997 5.997 0 1016 8zm2 0a4 4 0 114 4A4.0045 4.0045 0 0118 8zM11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0055 8.0055 0 016-7.7373L13.6138 2.3A10.0088 10.0088 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM23.0493 16a9.5991 9.5991 0 01-1.8716 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857a10.9664 10.9664 0 002.3686-2.8331z\"\n })), children);\n});\nvar WatsonHealthAiResults20 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResults20(_ref111, ref) {\n var children = _ref111.children,\n rest = _objectWithoutProperties(_ref111, _excluded111);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path171 || (_path171 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 8a5.9908 5.9908 0 009.4712 4.8853L28.586 16 30 14.586l-3.115-3.1148A5.997 5.997 0 1016 8zm2 0a4 4 0 114 4A4.0045 4.0045 0 0118 8zM11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0055 8.0055 0 016-7.7373L13.6138 2.3A10.0088 10.0088 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM23.0493 16a9.5991 9.5991 0 01-1.8716 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857a10.9664 10.9664 0 002.3686-2.8331z\"\n })), children);\n});\nvar WatsonHealthAiResults16 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResults16(_ref112, ref) {\n var children = _ref112.children,\n rest = _objectWithoutProperties(_ref112, _excluded112);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path172 || (_path172 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 8a5.9908 5.9908 0 009.4712 4.8853L28.586 16 30 14.586l-3.115-3.1148A5.997 5.997 0 1016 8zm2 0a4 4 0 114 4A4.0045 4.0045 0 0118 8zM11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0055 8.0055 0 016-7.7373L13.6138 2.3A10.0088 10.0088 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM23.0493 16a9.5991 9.5991 0 01-1.8716 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857a10.9664 10.9664 0 002.3686-2.8331z\"\n })), children);\n});\nvar WatsonHealthAiResultsHigh32 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsHigh32(_ref113, ref) {\n var children = _ref113.children,\n rest = _objectWithoutProperties(_ref113, _excluded113);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path173 || (_path173 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM23.0488 16a9.6136 9.6136 0 01-1.8711 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9886 9.9886 0 0025.2815 16zM16 4a7.9279 7.9279 0 013.69.9106l.8958-1.791A9.99 9.99 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2c0-1.84-1.1108-2.8662-2.1855-3.8594A7.1851 7.1851 0 018 12 8.0092 8.0092 0 0116 4zM29 14H19a1 1 0 01-.8945-1.4473l5-10a1 1 0 011.7888 0l5 10A1 1 0 0129 14zm-8.3818-2h6.7636L24 5.2361z\"\n })), children);\n});\nvar WatsonHealthAiResultsHigh24 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsHigh24(_ref114, ref) {\n var children = _ref114.children,\n rest = _objectWithoutProperties(_ref114, _excluded114);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path174 || (_path174 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM23.0488 16a9.6136 9.6136 0 01-1.8711 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9886 9.9886 0 0025.2815 16zM16 4a7.9279 7.9279 0 013.69.9106l.8958-1.791A9.99 9.99 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2c0-1.84-1.1108-2.8662-2.1855-3.8594A7.1851 7.1851 0 018 12 8.0092 8.0092 0 0116 4zM29 14H19a1 1 0 01-.8945-1.4473l5-10a1 1 0 011.7888 0l5 10A1 1 0 0129 14zm-8.3818-2h6.7636L24 5.2361z\"\n })), children);\n});\nvar WatsonHealthAiResultsHigh20 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsHigh20(_ref115, ref) {\n var children = _ref115.children,\n rest = _objectWithoutProperties(_ref115, _excluded115);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path175 || (_path175 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM23.0488 16a9.6136 9.6136 0 01-1.8711 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9886 9.9886 0 0025.2815 16zM16 4a7.9279 7.9279 0 013.69.9106l.8958-1.791A9.99 9.99 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2c0-1.84-1.1108-2.8662-2.1855-3.8594A7.1851 7.1851 0 018 12 8.0092 8.0092 0 0116 4zM29 14H19a1 1 0 01-.8945-1.4473l5-10a1 1 0 011.7888 0l5 10A1 1 0 0129 14zm-8.3818-2h6.7636L24 5.2361z\"\n })), children);\n});\nvar WatsonHealthAiResultsHigh16 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsHigh16(_ref116, ref) {\n var children = _ref116.children,\n rest = _objectWithoutProperties(_ref116, _excluded116);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path176 || (_path176 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM23.0488 16a9.6136 9.6136 0 01-1.8711 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9886 9.9886 0 0025.2815 16zM16 4a7.9279 7.9279 0 013.69.9106l.8958-1.791A9.99 9.99 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2c0-1.84-1.1108-2.8662-2.1855-3.8594A7.1851 7.1851 0 018 12 8.0092 8.0092 0 0116 4zM29 14H19a1 1 0 01-.8945-1.4473l5-10a1 1 0 011.7888 0l5 10A1 1 0 0129 14zm-8.3818-2h6.7636L24 5.2361z\"\n })), children);\n});\nvar WatsonHealthAiResultsLow32 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsLow32(_ref117, ref) {\n var children = _ref117.children,\n rest = _objectWithoutProperties(_ref117, _excluded117);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path177 || (_path177 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM24 14a6 6 0 116-6A6.0067 6.0067 0 0124 14zM24 4a4 4 0 104 4A4.0045 4.0045 0 0024 4zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16z\"\n })), children);\n});\nvar WatsonHealthAiResultsLow24 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsLow24(_ref118, ref) {\n var children = _ref118.children,\n rest = _objectWithoutProperties(_ref118, _excluded118);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path178 || (_path178 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM24 14a6 6 0 116-6A6.0067 6.0067 0 0124 14zM24 4a4 4 0 104 4A4.0045 4.0045 0 0024 4zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16z\"\n })), children);\n});\nvar WatsonHealthAiResultsLow20 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsLow20(_ref119, ref) {\n var children = _ref119.children,\n rest = _objectWithoutProperties(_ref119, _excluded119);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path179 || (_path179 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM24 14a6 6 0 116-6A6.0067 6.0067 0 0124 14zM24 4a4 4 0 104 4A4.0045 4.0045 0 0024 4zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16z\"\n })), children);\n});\nvar WatsonHealthAiResultsLow16 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsLow16(_ref120, ref) {\n var children = _ref120.children,\n rest = _objectWithoutProperties(_ref120, _excluded120);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path180 || (_path180 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM24 14a6 6 0 116-6A6.0067 6.0067 0 0124 14zM24 4a4 4 0 104 4A4.0045 4.0045 0 0024 4zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16z\"\n })), children);\n});\nvar WatsonHealthAiResultsMedium32 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsMedium32(_ref121, ref) {\n var children = _ref121.children,\n rest = _objectWithoutProperties(_ref121, _excluded121);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path181 || (_path181 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM28 14H20a2.0021 2.0021 0 01-2-2V4a2.0021 2.0021 0 012-2h8a2.0021 2.0021 0 012 2v8A2.0021 2.0021 0 0128 14zM20 4v8h8V4zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16z\"\n })), children);\n});\nvar WatsonHealthAiResultsMedium24 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsMedium24(_ref122, ref) {\n var children = _ref122.children,\n rest = _objectWithoutProperties(_ref122, _excluded122);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path182 || (_path182 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM28 14H20a2.0021 2.0021 0 01-2-2V4a2.0021 2.0021 0 012-2h8a2.0021 2.0021 0 012 2v8A2.0021 2.0021 0 0128 14zM20 4v8h8V4zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16z\"\n })), children);\n});\nvar WatsonHealthAiResultsMedium20 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsMedium20(_ref123, ref) {\n var children = _ref123.children,\n rest = _objectWithoutProperties(_ref123, _excluded123);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path183 || (_path183 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM28 14H20a2.0021 2.0021 0 01-2-2V4a2.0021 2.0021 0 012-2h8a2.0021 2.0021 0 012 2v8A2.0021 2.0021 0 0128 14zM20 4v8h8V4zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16z\"\n })), children);\n});\nvar WatsonHealthAiResultsMedium16 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsMedium16(_ref124, ref) {\n var children = _ref124.children,\n rest = _objectWithoutProperties(_ref124, _excluded124);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path184 || (_path184 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM28 14H20a2.0021 2.0021 0 01-2-2V4a2.0021 2.0021 0 012-2h8a2.0021 2.0021 0 012 2v8A2.0021 2.0021 0 0128 14zM20 4v8h8V4zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16z\"\n })), children);\n});\nvar WatsonHealthAiResultsUrgent32 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsUrgent32(_ref125, ref) {\n var children = _ref125.children,\n rest = _objectWithoutProperties(_ref125, _excluded125);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path185 || (_path185 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM20 2H22V9H20zM21 11a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0021 11zM26 2H28V9H26zM27 11a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0027 11zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16z\"\n })), children);\n});\nvar WatsonHealthAiResultsUrgent24 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsUrgent24(_ref126, ref) {\n var children = _ref126.children,\n rest = _objectWithoutProperties(_ref126, _excluded126);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path186 || (_path186 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM20 2H22V9H20zM21 11a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0021 11zM26 2H28V9H26zM27 11a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0027 11zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16z\"\n })), children);\n});\nvar WatsonHealthAiResultsUrgent20 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsUrgent20(_ref127, ref) {\n var children = _ref127.children,\n rest = _objectWithoutProperties(_ref127, _excluded127);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path187 || (_path187 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM20 2H22V9H20zM21 11a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0021 11zM26 2H28V9H26zM27 11a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0027 11zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16z\"\n })), children);\n});\nvar WatsonHealthAiResultsUrgent16 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsUrgent16(_ref128, ref) {\n var children = _ref128.children,\n rest = _objectWithoutProperties(_ref128, _excluded128);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path188 || (_path188 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM20 2H22V9H20zM21 11a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0021 11zM26 2H28V9H26zM27 11a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0027 11zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16z\"\n })), children);\n});\nvar WatsonHealthAiResultsVeryHigh32 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsVeryHigh32(_ref129, ref) {\n var children = _ref129.children,\n rest = _objectWithoutProperties(_ref129, _excluded129);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path189 || (_path189 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 2H26V9H24zM25 11a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0025 11zM11 24H21V26H11zM13 28H19V30H13zM23.0488 16a9.6136 9.6136 0 01-1.8711 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9886 9.9886 0 0025.2815 16zM16 4a7.94 7.94 0 014 1.0825V2.8408A9.9887 9.9887 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2c0-1.84-1.1108-2.8662-2.1855-3.8594A7.1851 7.1851 0 018 12 8.0092 8.0092 0 0116 4z\"\n })), children);\n});\nvar WatsonHealthAiResultsVeryHigh24 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsVeryHigh24(_ref130, ref) {\n var children = _ref130.children,\n rest = _objectWithoutProperties(_ref130, _excluded130);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path190 || (_path190 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 2H26V9H24zM25 11a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0025 11zM11 24H21V26H11zM13 28H19V30H13zM23.0488 16a9.6136 9.6136 0 01-1.8711 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9886 9.9886 0 0025.2815 16zM16 4a7.94 7.94 0 014 1.0825V2.8408A9.9887 9.9887 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2c0-1.84-1.1108-2.8662-2.1855-3.8594A7.1851 7.1851 0 018 12 8.0092 8.0092 0 0116 4z\"\n })), children);\n});\nvar WatsonHealthAiResultsVeryHigh20 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsVeryHigh20(_ref131, ref) {\n var children = _ref131.children,\n rest = _objectWithoutProperties(_ref131, _excluded131);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path191 || (_path191 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 2H26V9H24zM25 11a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0025 11zM11 24H21V26H11zM13 28H19V30H13zM23.0488 16a9.6136 9.6136 0 01-1.8711 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9886 9.9886 0 0025.2815 16zM16 4a7.94 7.94 0 014 1.0825V2.8408A9.9887 9.9887 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2c0-1.84-1.1108-2.8662-2.1855-3.8594A7.1851 7.1851 0 018 12 8.0092 8.0092 0 0116 4z\"\n })), children);\n});\nvar WatsonHealthAiResultsVeryHigh16 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsVeryHigh16(_ref132, ref) {\n var children = _ref132.children,\n rest = _objectWithoutProperties(_ref132, _excluded132);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path192 || (_path192 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 2H26V9H24zM25 11a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0025 11zM11 24H21V26H11zM13 28H19V30H13zM23.0488 16a9.6136 9.6136 0 01-1.8711 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9886 9.9886 0 0025.2815 16zM16 4a7.94 7.94 0 014 1.0825V2.8408A9.9887 9.9887 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2c0-1.84-1.1108-2.8662-2.1855-3.8594A7.1851 7.1851 0 018 12 8.0092 8.0092 0 0116 4z\"\n })), children);\n});\nvar WatsonHealthAiStatus32 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatus32(_ref133, ref) {\n var children = _ref133.children,\n rest = _objectWithoutProperties(_ref133, _excluded133);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path193 || (_path193 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16zM20 14a1 1 0 01-.8945-.5527L17.3818 10H14V8h4a1 1 0 01.8945.5527L20 10.7639l3.1055-6.2112a1.0416 1.0416 0 011.789 0L26.6182 8H30v2H26a1 1 0 01-.8945-.5527L24 7.2361l-3.1055 6.2112A1 1 0 0120 14z\"\n })), _path194 || (_path194 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.8145,18.1406A7.1851,7.1851,0,0,1,8,12a8.0092,8.0092,0,0,1,8-8V2A10.0111,10.0111,0,0,0,6,12a9.1793,9.1793,0,0,0,3.46,7.6162C10.4717,20.5508,11,21.0815,11,22h2C13,20.16,11.8892,19.1338,10.8145,18.1406Z\"\n })), children);\n});\nvar WatsonHealthAiStatus24 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatus24(_ref134, ref) {\n var children = _ref134.children,\n rest = _objectWithoutProperties(_ref134, _excluded134);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path195 || (_path195 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16zM20 14a1 1 0 01-.8945-.5527L17.3818 10H14V8h4a1 1 0 01.8945.5527L20 10.7639l3.1055-6.2112a1.0416 1.0416 0 011.789 0L26.6182 8H30v2H26a1 1 0 01-.8945-.5527L24 7.2361l-3.1055 6.2112A1 1 0 0120 14z\"\n })), _path196 || (_path196 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.8145,18.1406A7.1851,7.1851,0,0,1,8,12a8.0092,8.0092,0,0,1,8-8V2A10.0111,10.0111,0,0,0,6,12a9.1793,9.1793,0,0,0,3.46,7.6162C10.4717,20.5508,11,21.0815,11,22h2C13,20.16,11.8892,19.1338,10.8145,18.1406Z\"\n })), children);\n});\nvar WatsonHealthAiStatus20 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatus20(_ref135, ref) {\n var children = _ref135.children,\n rest = _objectWithoutProperties(_ref135, _excluded135);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path197 || (_path197 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16zM20 14a1 1 0 01-.8945-.5527L17.3818 10H14V8h4a1 1 0 01.8945.5527L20 10.7639l3.1055-6.2112a1.0416 1.0416 0 011.789 0L26.6182 8H30v2H26a1 1 0 01-.8945-.5527L24 7.2361l-3.1055 6.2112A1 1 0 0120 14z\"\n })), _path198 || (_path198 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.8145,18.1406A7.1851,7.1851,0,0,1,8,12a8.0092,8.0092,0,0,1,8-8V2A10.0111,10.0111,0,0,0,6,12a9.1793,9.1793,0,0,0,3.46,7.6162C10.4717,20.5508,11,21.0815,11,22h2C13,20.16,11.8892,19.1338,10.8145,18.1406Z\"\n })), children);\n});\nvar WatsonHealthAiStatus16 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatus16(_ref136, ref) {\n var children = _ref136.children,\n rest = _objectWithoutProperties(_ref136, _excluded136);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path199 || (_path199 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16zM20 14a1 1 0 01-.8945-.5527L17.3818 10H14V8h4a1 1 0 01.8945.5527L20 10.7639l3.1055-6.2112a1.0416 1.0416 0 011.789 0L26.6182 8H30v2H26a1 1 0 01-.8945-.5527L24 7.2361l-3.1055 6.2112A1 1 0 0120 14z\"\n })), _path200 || (_path200 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.8145,18.1406A7.1851,7.1851,0,0,1,8,12a8.0092,8.0092,0,0,1,8-8V2A10.0111,10.0111,0,0,0,6,12a9.1793,9.1793,0,0,0,3.46,7.6162C10.4717,20.5508,11,21.0815,11,22h2C13,20.16,11.8892,19.1338,10.8145,18.1406Z\"\n })), children);\n});\nvar WatsonHealthAiStatusComplete32 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusComplete32(_ref137, ref) {\n var children = _ref137.children,\n rest = _objectWithoutProperties(_ref137, _excluded137);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path201 || (_path201 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM21 9.59L17.41 6 16 7.41 21 12.41 30 3.41 28.59 2 21 9.59zM23.8 14a7.28 7.28 0 01-2.6219 4.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.1426 9.1426 0 0025.8389 14z\"\n })), children);\n});\nvar WatsonHealthAiStatusComplete24 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusComplete24(_ref138, ref) {\n var children = _ref138.children,\n rest = _objectWithoutProperties(_ref138, _excluded138);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path202 || (_path202 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM21 9.59L17.41 6 16 7.41 21 12.41 30 3.41 28.59 2 21 9.59zM23.8 14a7.28 7.28 0 01-2.6219 4.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.1426 9.1426 0 0025.8389 14z\"\n })), children);\n});\nvar WatsonHealthAiStatusComplete20 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusComplete20(_ref139, ref) {\n var children = _ref139.children,\n rest = _objectWithoutProperties(_ref139, _excluded139);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path203 || (_path203 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM21 9.59L17.41 6 16 7.41 21 12.41 30 3.41 28.59 2 21 9.59zM23.8 14a7.28 7.28 0 01-2.6219 4.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.1426 9.1426 0 0025.8389 14z\"\n })), children);\n});\nvar WatsonHealthAiStatusComplete16 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusComplete16(_ref140, ref) {\n var children = _ref140.children,\n rest = _objectWithoutProperties(_ref140, _excluded140);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path204 || (_path204 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM21 9.59L17.41 6 16 7.41 21 12.41 30 3.41 28.59 2 21 9.59zM23.8 14a7.28 7.28 0 01-2.6219 4.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.1426 9.1426 0 0025.8389 14z\"\n })), children);\n});\nvar WatsonHealthAiStatusFailed32 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusFailed32(_ref141, ref) {\n var children = _ref141.children,\n rest = _objectWithoutProperties(_ref141, _excluded141);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path205 || (_path205 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM23.8 14a7.28 7.28 0 01-2.6219 4.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.1426 9.1426 0 0025.8389 14zM30 3.41L28.59 2 25 5.59 21.41 2 20 3.41 23.59 7 20 10.59 21.41 12 25 8.41 28.59 12 30 10.59 26.41 7 30 3.41z\"\n })), children);\n});\nvar WatsonHealthAiStatusFailed24 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusFailed24(_ref142, ref) {\n var children = _ref142.children,\n rest = _objectWithoutProperties(_ref142, _excluded142);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path206 || (_path206 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM23.8 14a7.28 7.28 0 01-2.6219 4.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.1426 9.1426 0 0025.8389 14zM30 3.41L28.59 2 25 5.59 21.41 2 20 3.41 23.59 7 20 10.59 21.41 12 25 8.41 28.59 12 30 10.59 26.41 7 30 3.41z\"\n })), children);\n});\nvar WatsonHealthAiStatusFailed20 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusFailed20(_ref143, ref) {\n var children = _ref143.children,\n rest = _objectWithoutProperties(_ref143, _excluded143);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path207 || (_path207 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM23.8 14a7.28 7.28 0 01-2.6219 4.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.1426 9.1426 0 0025.8389 14zM30 3.41L28.59 2 25 5.59 21.41 2 20 3.41 23.59 7 20 10.59 21.41 12 25 8.41 28.59 12 30 10.59 26.41 7 30 3.41z\"\n })), children);\n});\nvar WatsonHealthAiStatusFailed16 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusFailed16(_ref144, ref) {\n var children = _ref144.children,\n rest = _objectWithoutProperties(_ref144, _excluded144);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path208 || (_path208 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM23.8 14a7.28 7.28 0 01-2.6219 4.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.1426 9.1426 0 0025.8389 14zM30 3.41L28.59 2 25 5.59 21.41 2 20 3.41 23.59 7 20 10.59 21.41 12 25 8.41 28.59 12 30 10.59 26.41 7 30 3.41z\"\n })), children);\n});\nvar WatsonHealthAiStatusInProgress32 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusInProgress32(_ref145, ref) {\n var children = _ref145.children,\n rest = _objectWithoutProperties(_ref145, _excluded145);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path209 || (_path209 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM21.1777 18.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.193 9.193 0 0026 12H24A7.2032 7.2032 0 0121.1777 18.1426z\"\n })), _circle9 || (_circle9 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"18.5\",\n cy: \"7.5\",\n r: \"1.5\"\n })), _circle10 || (_circle10 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"28.5\",\n cy: \"7.5\",\n r: \"1.5\"\n })), _circle11 || (_circle11 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"23.5\",\n cy: \"7.5\",\n r: \"1.5\"\n })), children);\n});\nvar WatsonHealthAiStatusInProgress24 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusInProgress24(_ref146, ref) {\n var children = _ref146.children,\n rest = _objectWithoutProperties(_ref146, _excluded146);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path210 || (_path210 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM21.1777 18.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.193 9.193 0 0026 12H24A7.2032 7.2032 0 0121.1777 18.1426z\"\n })), _circle12 || (_circle12 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"18.5\",\n cy: \"7.5\",\n r: \"1.5\"\n })), _circle13 || (_circle13 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"28.5\",\n cy: \"7.5\",\n r: \"1.5\"\n })), _circle14 || (_circle14 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"23.5\",\n cy: \"7.5\",\n r: \"1.5\"\n })), children);\n});\nvar WatsonHealthAiStatusInProgress20 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusInProgress20(_ref147, ref) {\n var children = _ref147.children,\n rest = _objectWithoutProperties(_ref147, _excluded147);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path211 || (_path211 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM21.1777 18.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.193 9.193 0 0026 12H24A7.2032 7.2032 0 0121.1777 18.1426z\"\n })), _circle15 || (_circle15 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"18.5\",\n cy: \"7.5\",\n r: \"1.5\"\n })), _circle16 || (_circle16 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"28.5\",\n cy: \"7.5\",\n r: \"1.5\"\n })), _circle17 || (_circle17 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"23.5\",\n cy: \"7.5\",\n r: \"1.5\"\n })), children);\n});\nvar WatsonHealthAiStatusInProgress16 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusInProgress16(_ref148, ref) {\n var children = _ref148.children,\n rest = _objectWithoutProperties(_ref148, _excluded148);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path212 || (_path212 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM21.1777 18.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.193 9.193 0 0026 12H24A7.2032 7.2032 0 0121.1777 18.1426z\"\n })), _circle18 || (_circle18 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"18.5\",\n cy: \"7.5\",\n r: \"1.5\"\n })), _circle19 || (_circle19 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"28.5\",\n cy: \"7.5\",\n r: \"1.5\"\n })), _circle20 || (_circle20 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"23.5\",\n cy: \"7.5\",\n r: \"1.5\"\n })), children);\n});\nvar WatsonHealthAiStatusQueued32 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusQueued32(_ref149, ref) {\n var children = _ref149.children,\n rest = _objectWithoutProperties(_ref149, _excluded149);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path213 || (_path213 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM21.1777 18.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.193 9.193 0 0026 12H24A7.2032 7.2032 0 0121.1777 18.1426zM18 6H28V8H18z\"\n })), children);\n});\nvar WatsonHealthAiStatusQueued24 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusQueued24(_ref150, ref) {\n var children = _ref150.children,\n rest = _objectWithoutProperties(_ref150, _excluded150);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path214 || (_path214 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM21.1777 18.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.193 9.193 0 0026 12H24A7.2032 7.2032 0 0121.1777 18.1426zM18 6H28V8H18z\"\n })), children);\n});\nvar WatsonHealthAiStatusQueued20 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusQueued20(_ref151, ref) {\n var children = _ref151.children,\n rest = _objectWithoutProperties(_ref151, _excluded151);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path215 || (_path215 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM21.1777 18.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.193 9.193 0 0026 12H24A7.2032 7.2032 0 0121.1777 18.1426zM18 6H28V8H18z\"\n })), children);\n});\nvar WatsonHealthAiStatusQueued16 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusQueued16(_ref152, ref) {\n var children = _ref152.children,\n rest = _objectWithoutProperties(_ref152, _excluded152);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path216 || (_path216 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM21.1777 18.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.193 9.193 0 0026 12H24A7.2032 7.2032 0 0121.1777 18.1426zM18 6H28V8H18z\"\n })), children);\n});\nvar WatsonHealthAiStatusRejected32 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusRejected32(_ref153, ref) {\n var children = _ref153.children,\n rest = _objectWithoutProperties(_ref153, _excluded153);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path217 || (_path217 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16zM30 8a6 6 0 10-6 6A6.0066 6.0066 0 0030 8zM28 8a3.9521 3.9521 0 01-.5669 2.019L21.981 4.5669A3.9529 3.9529 0 0124 4 4.0045 4.0045 0 0128 8zM20 8a3.9521 3.9521 0 01.5669-2.019l5.4521 5.4521A3.9529 3.9529 0 0124 12 4.0045 4.0045 0 0120 8z\"\n })), children);\n});\nvar WatsonHealthAiStatusRejected24 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusRejected24(_ref154, ref) {\n var children = _ref154.children,\n rest = _objectWithoutProperties(_ref154, _excluded154);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path218 || (_path218 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16zM30 8a6 6 0 10-6 6A6.0066 6.0066 0 0030 8zM28 8a3.9521 3.9521 0 01-.5669 2.019L21.981 4.5669A3.9529 3.9529 0 0124 4 4.0045 4.0045 0 0128 8zM20 8a3.9521 3.9521 0 01.5669-2.019l5.4521 5.4521A3.9529 3.9529 0 0124 12 4.0045 4.0045 0 0120 8z\"\n })), children);\n});\nvar WatsonHealthAiStatusRejected20 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusRejected20(_ref155, ref) {\n var children = _ref155.children,\n rest = _objectWithoutProperties(_ref155, _excluded155);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path219 || (_path219 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16zM30 8a6 6 0 10-6 6A6.0066 6.0066 0 0030 8zM28 8a3.9521 3.9521 0 01-.5669 2.019L21.981 4.5669A3.9529 3.9529 0 0124 4 4.0045 4.0045 0 0128 8zM20 8a3.9521 3.9521 0 01.5669-2.019l5.4521 5.4521A3.9529 3.9529 0 0124 12 4.0045 4.0045 0 0120 8z\"\n })), children);\n});\nvar WatsonHealthAiStatusRejected16 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusRejected16(_ref156, ref) {\n var children = _ref156.children,\n rest = _objectWithoutProperties(_ref156, _excluded156);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path220 || (_path220 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16zM30 8a6 6 0 10-6 6A6.0066 6.0066 0 0030 8zM28 8a3.9521 3.9521 0 01-.5669 2.019L21.981 4.5669A3.9529 3.9529 0 0124 4 4.0045 4.0045 0 0128 8zM20 8a3.9521 3.9521 0 01.5669-2.019l5.4521 5.4521A3.9529 3.9529 0 0124 12 4.0045 4.0045 0 0120 8z\"\n })), children);\n});\nvar AirlineDigitalGate32 = /*#__PURE__*/React.forwardRef(function AirlineDigitalGate32(_ref157, ref) {\n var children = _ref157.children,\n rest = _objectWithoutProperties(_ref157, _excluded157);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path221 || (_path221 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 23H16V21a3.0033 3.0033 0 00-3-3H9a3.0033 3.0033 0 00-3 3v2H4V21a5.0058 5.0058 0 015-5h4a5.0059 5.0059 0 015 5zM11 6A3 3 0 118 9a3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0011 4zM2 26H30V28H2zM31.9658 11.7413a1.0007 1.0007 0 00-1.2246-.707l-3.0861.826L24 7l-1 .2676 1.4584 5.4483-2.7663.7405L20 11.2066l-1 .2676.9337 3.4883a.9993.9993 0 001.2246.707l10.1005-2.7036A1 1 0 0031.9658 11.7413z\"\n })), children);\n});\nvar AirlineDigitalGate24 = /*#__PURE__*/React.forwardRef(function AirlineDigitalGate24(_ref158, ref) {\n var children = _ref158.children,\n rest = _objectWithoutProperties(_ref158, _excluded158);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path222 || (_path222 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 23H16V21a3.0033 3.0033 0 00-3-3H9a3.0033 3.0033 0 00-3 3v2H4V21a5.0058 5.0058 0 015-5h4a5.0059 5.0059 0 015 5zM11 6A3 3 0 118 9a3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0011 4zM2 26H30V28H2zM31.9658 11.7413a1.0007 1.0007 0 00-1.2246-.707l-3.0861.826L24 7l-1 .2676 1.4584 5.4483-2.7663.7405L20 11.2066l-1 .2676.9337 3.4883a.9993.9993 0 001.2246.707l10.1005-2.7036A1 1 0 0031.9658 11.7413z\"\n })), children);\n});\nvar AirlineDigitalGate20 = /*#__PURE__*/React.forwardRef(function AirlineDigitalGate20(_ref159, ref) {\n var children = _ref159.children,\n rest = _objectWithoutProperties(_ref159, _excluded159);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path223 || (_path223 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 23H16V21a3.0033 3.0033 0 00-3-3H9a3.0033 3.0033 0 00-3 3v2H4V21a5.0058 5.0058 0 015-5h4a5.0059 5.0059 0 015 5zM11 6A3 3 0 118 9a3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0011 4zM2 26H30V28H2zM31.9658 11.7413a1.0007 1.0007 0 00-1.2246-.707l-3.0861.826L24 7l-1 .2676 1.4584 5.4483-2.7663.7405L20 11.2066l-1 .2676.9337 3.4883a.9993.9993 0 001.2246.707l10.1005-2.7036A1 1 0 0031.9658 11.7413z\"\n })), children);\n});\nvar AirlineDigitalGate16 = /*#__PURE__*/React.forwardRef(function AirlineDigitalGate16(_ref160, ref) {\n var children = _ref160.children,\n rest = _objectWithoutProperties(_ref160, _excluded160);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path224 || (_path224 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 23H16V21a3.0033 3.0033 0 00-3-3H9a3.0033 3.0033 0 00-3 3v2H4V21a5.0058 5.0058 0 015-5h4a5.0059 5.0059 0 015 5zM11 6A3 3 0 118 9a3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0011 4zM2 26H30V28H2zM31.9658 11.7413a1.0007 1.0007 0 00-1.2246-.707l-3.0861.826L24 7l-1 .2676 1.4584 5.4483-2.7663.7405L20 11.2066l-1 .2676.9337 3.4883a.9993.9993 0 001.2246.707l10.1005-2.7036A1 1 0 0031.9658 11.7413z\"\n })), children);\n});\nvar AirlineManageGates32 = /*#__PURE__*/React.forwardRef(function AirlineManageGates32(_ref161, ref) {\n var children = _ref161.children,\n rest = _objectWithoutProperties(_ref161, _excluded161);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path225 || (_path225 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 23H16V21a3.0033 3.0033 0 00-3-3H9a3.0033 3.0033 0 00-3 3v2H4V21a5.0059 5.0059 0 015-5h4a5.0059 5.0059 0 015 5zM11 6A3 3 0 118 9a3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0011 4zM2 26H30V28H2zM22 4L22 6 26.586 6 20 12.586 21.414 14 28 7.414 28 12 30 12 30 4 22 4z\"\n })), children);\n});\nvar AirlineManageGates24 = /*#__PURE__*/React.forwardRef(function AirlineManageGates24(_ref162, ref) {\n var children = _ref162.children,\n rest = _objectWithoutProperties(_ref162, _excluded162);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path226 || (_path226 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 23H16V21a3.0033 3.0033 0 00-3-3H9a3.0033 3.0033 0 00-3 3v2H4V21a5.0059 5.0059 0 015-5h4a5.0059 5.0059 0 015 5zM11 6A3 3 0 118 9a3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0011 4zM2 26H30V28H2zM22 4L22 6 26.586 6 20 12.586 21.414 14 28 7.414 28 12 30 12 30 4 22 4z\"\n })), children);\n});\nvar AirlineManageGates20 = /*#__PURE__*/React.forwardRef(function AirlineManageGates20(_ref163, ref) {\n var children = _ref163.children,\n rest = _objectWithoutProperties(_ref163, _excluded163);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path227 || (_path227 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 23H16V21a3.0033 3.0033 0 00-3-3H9a3.0033 3.0033 0 00-3 3v2H4V21a5.0059 5.0059 0 015-5h4a5.0059 5.0059 0 015 5zM11 6A3 3 0 118 9a3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0011 4zM2 26H30V28H2zM22 4L22 6 26.586 6 20 12.586 21.414 14 28 7.414 28 12 30 12 30 4 22 4z\"\n })), children);\n});\nvar AirlineManageGates16 = /*#__PURE__*/React.forwardRef(function AirlineManageGates16(_ref164, ref) {\n var children = _ref164.children,\n rest = _objectWithoutProperties(_ref164, _excluded164);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path228 || (_path228 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 23H16V21a3.0033 3.0033 0 00-3-3H9a3.0033 3.0033 0 00-3 3v2H4V21a5.0059 5.0059 0 015-5h4a5.0059 5.0059 0 015 5zM11 6A3 3 0 118 9a3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0011 4zM2 26H30V28H2zM22 4L22 6 26.586 6 20 12.586 21.414 14 28 7.414 28 12 30 12 30 4 22 4z\"\n })), children);\n});\nvar AirlinePassengerCare32 = /*#__PURE__*/React.forwardRef(function AirlinePassengerCare32(_ref165, ref) {\n var children = _ref165.children,\n rest = _objectWithoutProperties(_ref165, _excluded165);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path229 || (_path229 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 23H16V21a3.0033 3.0033 0 00-3-3H9a3.0033 3.0033 0 00-3 3v2H4V21a5.0059 5.0059 0 015-5h4a5.0059 5.0059 0 015 5zM11 6A3 3 0 118 9a3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0011 4zM2 26H30V28H2zM27.303 8a2.6616 2.6616 0 00-1.9079.8058L25 9.2112l-.3951-.4054a2.6615 2.6615 0 00-3.8157 0 2.7992 2.7992 0 000 3.8964L25 17l4.2108-4.2978a2.7992 2.7992 0 000-3.8964A2.6616 2.6616 0 0027.303 8z\"\n })), children);\n});\nvar AirlinePassengerCare24 = /*#__PURE__*/React.forwardRef(function AirlinePassengerCare24(_ref166, ref) {\n var children = _ref166.children,\n rest = _objectWithoutProperties(_ref166, _excluded166);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path230 || (_path230 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 23H16V21a3.0033 3.0033 0 00-3-3H9a3.0033 3.0033 0 00-3 3v2H4V21a5.0059 5.0059 0 015-5h4a5.0059 5.0059 0 015 5zM11 6A3 3 0 118 9a3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0011 4zM2 26H30V28H2zM27.303 8a2.6616 2.6616 0 00-1.9079.8058L25 9.2112l-.3951-.4054a2.6615 2.6615 0 00-3.8157 0 2.7992 2.7992 0 000 3.8964L25 17l4.2108-4.2978a2.7992 2.7992 0 000-3.8964A2.6616 2.6616 0 0027.303 8z\"\n })), children);\n});\nvar AirlinePassengerCare20 = /*#__PURE__*/React.forwardRef(function AirlinePassengerCare20(_ref167, ref) {\n var children = _ref167.children,\n rest = _objectWithoutProperties(_ref167, _excluded167);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path231 || (_path231 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 23H16V21a3.0033 3.0033 0 00-3-3H9a3.0033 3.0033 0 00-3 3v2H4V21a5.0059 5.0059 0 015-5h4a5.0059 5.0059 0 015 5zM11 6A3 3 0 118 9a3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0011 4zM2 26H30V28H2zM27.303 8a2.6616 2.6616 0 00-1.9079.8058L25 9.2112l-.3951-.4054a2.6615 2.6615 0 00-3.8157 0 2.7992 2.7992 0 000 3.8964L25 17l4.2108-4.2978a2.7992 2.7992 0 000-3.8964A2.6616 2.6616 0 0027.303 8z\"\n })), children);\n});\nvar AirlinePassengerCare16 = /*#__PURE__*/React.forwardRef(function AirlinePassengerCare16(_ref168, ref) {\n var children = _ref168.children,\n rest = _objectWithoutProperties(_ref168, _excluded168);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path232 || (_path232 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 23H16V21a3.0033 3.0033 0 00-3-3H9a3.0033 3.0033 0 00-3 3v2H4V21a5.0059 5.0059 0 015-5h4a5.0059 5.0059 0 015 5zM11 6A3 3 0 118 9a3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0011 4zM2 26H30V28H2zM27.303 8a2.6616 2.6616 0 00-1.9079.8058L25 9.2112l-.3951-.4054a2.6615 2.6615 0 00-3.8157 0 2.7992 2.7992 0 000 3.8964L25 17l4.2108-4.2978a2.7992 2.7992 0 000-3.8964A2.6616 2.6616 0 0027.303 8z\"\n })), children);\n});\nvar AirlineRapidBoard32 = /*#__PURE__*/React.forwardRef(function AirlineRapidBoard32(_ref169, ref) {\n var children = _ref169.children,\n rest = _objectWithoutProperties(_ref169, _excluded169);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path233 || (_path233 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 23H16V21a3.0033 3.0033 0 00-3-3H9a3.0033 3.0033 0 00-3 3v2H4V21a5.0059 5.0059 0 015-5h4a5.0059 5.0059 0 015 5zM11 6A3 3 0 118 9a3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0011 4zM2 26H30V28H2zM30 8L28 8 28 6 26 6 26 4 30 4 30 8zM19 4L23 4 23 6 21 6 21 8 19 8 19 4zM28 13H30V15H28zM26 11H28V13H26zM19 11L21 11 21 13 23 13 23 15 19 15 19 11z\"\n })), children);\n});\nvar AirlineRapidBoard24 = /*#__PURE__*/React.forwardRef(function AirlineRapidBoard24(_ref170, ref) {\n var children = _ref170.children,\n rest = _objectWithoutProperties(_ref170, _excluded170);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path234 || (_path234 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 23H16V21a3.0033 3.0033 0 00-3-3H9a3.0033 3.0033 0 00-3 3v2H4V21a5.0059 5.0059 0 015-5h4a5.0059 5.0059 0 015 5zM11 6A3 3 0 118 9a3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0011 4zM2 26H30V28H2zM30 8L28 8 28 6 26 6 26 4 30 4 30 8zM19 4L23 4 23 6 21 6 21 8 19 8 19 4zM28 13H30V15H28zM26 11H28V13H26zM19 11L21 11 21 13 23 13 23 15 19 15 19 11z\"\n })), children);\n});\nvar AirlineRapidBoard20 = /*#__PURE__*/React.forwardRef(function AirlineRapidBoard20(_ref171, ref) {\n var children = _ref171.children,\n rest = _objectWithoutProperties(_ref171, _excluded171);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path235 || (_path235 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 23H16V21a3.0033 3.0033 0 00-3-3H9a3.0033 3.0033 0 00-3 3v2H4V21a5.0059 5.0059 0 015-5h4a5.0059 5.0059 0 015 5zM11 6A3 3 0 118 9a3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0011 4zM2 26H30V28H2zM30 8L28 8 28 6 26 6 26 4 30 4 30 8zM19 4L23 4 23 6 21 6 21 8 19 8 19 4zM28 13H30V15H28zM26 11H28V13H26zM19 11L21 11 21 13 23 13 23 15 19 15 19 11z\"\n })), children);\n});\nvar AirlineRapidBoard16 = /*#__PURE__*/React.forwardRef(function AirlineRapidBoard16(_ref172, ref) {\n var children = _ref172.children,\n rest = _objectWithoutProperties(_ref172, _excluded172);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path236 || (_path236 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 23H16V21a3.0033 3.0033 0 00-3-3H9a3.0033 3.0033 0 00-3 3v2H4V21a5.0059 5.0059 0 015-5h4a5.0059 5.0059 0 015 5zM11 6A3 3 0 118 9a3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0011 4zM2 26H30V28H2zM30 8L28 8 28 6 26 6 26 4 30 4 30 8zM19 4L23 4 23 6 21 6 21 8 19 8 19 4zM28 13H30V15H28zM26 11H28V13H26zM19 11L21 11 21 13 23 13 23 15 19 15 19 11z\"\n })), children);\n});\nvar Airport_0132 = /*#__PURE__*/React.forwardRef(function Airport_0132(_ref173, ref) {\n var children = _ref173.children,\n rest = _objectWithoutProperties(_ref173, _excluded173);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path237 || (_path237 = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n d: \"M17,14.5,23,17V15l-6-3V9a1,1,0,0,0-2,0v3L9,15v2l6-2.5V20l-3,2v1l4-1,4,1V22l-3-2Z\"\n })), _path238 || (_path238 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar Airport_0124 = /*#__PURE__*/React.forwardRef(function Airport_0124(_ref174, ref) {\n var children = _ref174.children,\n rest = _objectWithoutProperties(_ref174, _excluded174);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path239 || (_path239 = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n d: \"M17,14.5,23,17V15l-6-3V9a1,1,0,0,0-2,0v3L9,15v2l6-2.5V20l-3,2v1l4-1,4,1V22l-3-2Z\"\n })), _path240 || (_path240 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar Airport_0120 = /*#__PURE__*/React.forwardRef(function Airport_0120(_ref175, ref) {\n var children = _ref175.children,\n rest = _objectWithoutProperties(_ref175, _excluded175);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path241 || (_path241 = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n d: \"M17,14.5,23,17V15l-6-3V9a1,1,0,0,0-2,0v3L9,15v2l6-2.5V20l-3,2v1l4-1,4,1V22l-3-2Z\"\n })), _path242 || (_path242 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar Airport_0116 = /*#__PURE__*/React.forwardRef(function Airport_0116(_ref176, ref) {\n var children = _ref176.children,\n rest = _objectWithoutProperties(_ref176, _excluded176);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path243 || (_path243 = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n d: \"M17,14.5,23,17V15l-6-3V9a1,1,0,0,0-2,0v3L9,15v2l6-2.5V20l-3,2v1l4-1,4,1V22l-3-2Z\"\n })), _path244 || (_path244 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar Airport_0232 = /*#__PURE__*/React.forwardRef(function Airport_0232(_ref177, ref) {\n var children = _ref177.children,\n rest = _objectWithoutProperties(_ref177, _excluded177);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path245 || (_path245 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,17H19.4141L16,13H14l2.5859,4H10.7207L9.5,15H8l1.0569,3.3046A1,1,0,0,0,10.0094,19H23a1,1,0,0,0,0-2Z\"\n })), _path246 || (_path246 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar Airport_0224 = /*#__PURE__*/React.forwardRef(function Airport_0224(_ref178, ref) {\n var children = _ref178.children,\n rest = _objectWithoutProperties(_ref178, _excluded178);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path247 || (_path247 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,17H19.4141L16,13H14l2.5859,4H10.7207L9.5,15H8l1.0569,3.3046A1,1,0,0,0,10.0094,19H23a1,1,0,0,0,0-2Z\"\n })), _path248 || (_path248 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar Airport_0220 = /*#__PURE__*/React.forwardRef(function Airport_0220(_ref179, ref) {\n var children = _ref179.children,\n rest = _objectWithoutProperties(_ref179, _excluded179);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path249 || (_path249 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,17H19.4141L16,13H14l2.5859,4H10.7207L9.5,15H8l1.0569,3.3046A1,1,0,0,0,10.0094,19H23a1,1,0,0,0,0-2Z\"\n })), _path250 || (_path250 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar Airport_0216 = /*#__PURE__*/React.forwardRef(function Airport_0216(_ref180, ref) {\n var children = _ref180.children,\n rest = _objectWithoutProperties(_ref180, _excluded180);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path251 || (_path251 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,17H19.4141L16,13H14l2.5859,4H10.7207L9.5,15H8l1.0569,3.3046A1,1,0,0,0,10.0094,19H23a1,1,0,0,0,0-2Z\"\n })), _path252 || (_path252 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar AirportLocation32 = /*#__PURE__*/React.forwardRef(function AirportLocation32(_ref181, ref) {\n var children = _ref181.children,\n rest = _objectWithoutProperties(_ref181, _excluded181);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path253 || (_path253 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,15h-6.07A8.0076,8.0076,0,0,0,17,8.0693V2H15V8.0693A8.0076,8.0076,0,0,0,8.07,15H2v2H8.07A8.0076,8.0076,0,0,0,15,23.9307V30h2V23.9307A8.0076,8.0076,0,0,0,23.9305,17H30ZM16,22a6,6,0,1,1,6-6A6.0066,6.0066,0,0,1,16,22Z\"\n })), children);\n});\nvar AirportLocation24 = /*#__PURE__*/React.forwardRef(function AirportLocation24(_ref182, ref) {\n var children = _ref182.children,\n rest = _objectWithoutProperties(_ref182, _excluded182);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path254 || (_path254 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,15h-6.07A8.0076,8.0076,0,0,0,17,8.0693V2H15V8.0693A8.0076,8.0076,0,0,0,8.07,15H2v2H8.07A8.0076,8.0076,0,0,0,15,23.9307V30h2V23.9307A8.0076,8.0076,0,0,0,23.9305,17H30ZM16,22a6,6,0,1,1,6-6A6.0066,6.0066,0,0,1,16,22Z\"\n })), children);\n});\nvar AirportLocation20 = /*#__PURE__*/React.forwardRef(function AirportLocation20(_ref183, ref) {\n var children = _ref183.children,\n rest = _objectWithoutProperties(_ref183, _excluded183);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path255 || (_path255 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,15h-6.07A8.0076,8.0076,0,0,0,17,8.0693V2H15V8.0693A8.0076,8.0076,0,0,0,8.07,15H2v2H8.07A8.0076,8.0076,0,0,0,15,23.9307V30h2V23.9307A8.0076,8.0076,0,0,0,23.9305,17H30ZM16,22a6,6,0,1,1,6-6A6.0066,6.0066,0,0,1,16,22Z\"\n })), children);\n});\nvar AirportLocation16 = /*#__PURE__*/React.forwardRef(function AirportLocation16(_ref184, ref) {\n var children = _ref184.children,\n rest = _objectWithoutProperties(_ref184, _excluded184);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path256 || (_path256 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,15h-6.07A8.0076,8.0076,0,0,0,17,8.0693V2H15V8.0693A8.0076,8.0076,0,0,0,8.07,15H2v2H8.07A8.0076,8.0076,0,0,0,15,23.9307V30h2V23.9307A8.0076,8.0076,0,0,0,23.9305,17H30ZM16,22a6,6,0,1,1,6-6A6.0066,6.0066,0,0,1,16,22Z\"\n })), children);\n});\nvar Alarm32 = /*#__PURE__*/React.forwardRef(function Alarm32(_ref185, ref) {\n var children = _ref185.children,\n rest = _objectWithoutProperties(_ref185, _excluded185);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path257 || (_path257 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,28A11,11,0,1,1,27,17,11,11,0,0,1,16,28ZM16,8a9,9,0,1,0,9,9A9,9,0,0,0,16,8Z\"\n })), _path258 || (_path258 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18.59 21L15 17.41 15 11 17 11 17 16.58 20 19.59 18.59 21z\"\n })), _path259 || (_path259 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.96 5.5H9.030000000000001V7.5H3.96z\",\n transform: \"rotate(-45.06 6.502 6.497)\"\n })), _path260 || (_path260 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5 3.96H26.5V9.030000000000001H24.5z\",\n transform: \"rotate(-44.94 25.5 6.498)\"\n })), children);\n});\nvar Alarm24 = /*#__PURE__*/React.forwardRef(function Alarm24(_ref186, ref) {\n var children = _ref186.children,\n rest = _objectWithoutProperties(_ref186, _excluded186);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path261 || (_path261 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,28A11,11,0,1,1,27,17,11,11,0,0,1,16,28ZM16,8a9,9,0,1,0,9,9A9,9,0,0,0,16,8Z\"\n })), _path262 || (_path262 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18.59 21L15 17.41 15 11 17 11 17 16.58 20 19.59 18.59 21z\"\n })), _path263 || (_path263 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.96 5.5H9.030000000000001V7.5H3.96z\",\n transform: \"rotate(-45.06 6.502 6.497)\"\n })), _path264 || (_path264 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5 3.96H26.5V9.030000000000001H24.5z\",\n transform: \"rotate(-44.94 25.5 6.498)\"\n })), children);\n});\nvar Alarm20 = /*#__PURE__*/React.forwardRef(function Alarm20(_ref187, ref) {\n var children = _ref187.children,\n rest = _objectWithoutProperties(_ref187, _excluded187);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path265 || (_path265 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,28A11,11,0,1,1,27,17,11,11,0,0,1,16,28ZM16,8a9,9,0,1,0,9,9A9,9,0,0,0,16,8Z\"\n })), _path266 || (_path266 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18.59 21L15 17.41 15 11 17 11 17 16.58 20 19.59 18.59 21z\"\n })), _path267 || (_path267 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.96 5.5H9.030000000000001V7.5H3.96z\",\n transform: \"rotate(-45.06 6.502 6.497)\"\n })), _path268 || (_path268 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5 3.96H26.5V9.030000000000001H24.5z\",\n transform: \"rotate(-44.94 25.5 6.498)\"\n })), children);\n});\nvar Alarm16 = /*#__PURE__*/React.forwardRef(function Alarm16(_ref188, ref) {\n var children = _ref188.children,\n rest = _objectWithoutProperties(_ref188, _excluded188);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path269 || (_path269 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,28A11,11,0,1,1,27,17,11,11,0,0,1,16,28ZM16,8a9,9,0,1,0,9,9A9,9,0,0,0,16,8Z\"\n })), _path270 || (_path270 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18.59 21L15 17.41 15 11 17 11 17 16.58 20 19.59 18.59 21z\"\n })), _path271 || (_path271 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.96 5.5H9.030000000000001V7.5H3.96z\",\n transform: \"rotate(-45.06 6.502 6.497)\"\n })), _path272 || (_path272 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5 3.96H26.5V9.030000000000001H24.5z\",\n transform: \"rotate(-44.94 25.5 6.498)\"\n })), children);\n});\nvar AlarmAdd32 = /*#__PURE__*/React.forwardRef(function AlarmAdd32(_ref189, ref) {\n var children = _ref189.children,\n rest = _objectWithoutProperties(_ref189, _excluded189);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path273 || (_path273 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,28A11,11,0,1,1,27,17,11,11,0,0,1,16,28ZM16,8a9,9,0,1,0,9,9A9,9,0,0,0,16,8Z\"\n })), _path274 || (_path274 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.96 5.5H9.030000000000001V7.5H3.96z\",\n transform: \"rotate(-45.06 6.502 6.497)\"\n })), _path275 || (_path275 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5 3.96H26.5V9.030000000000001H24.5z\",\n transform: \"rotate(-44.94 25.5 6.498)\"\n })), _path276 || (_path276 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21 16L17 16 17 12 15 12 15 16 11 16 11 18 15 18 15 22 17 22 17 18 21 18 21 16z\"\n })), children);\n});\nvar AlarmAdd24 = /*#__PURE__*/React.forwardRef(function AlarmAdd24(_ref190, ref) {\n var children = _ref190.children,\n rest = _objectWithoutProperties(_ref190, _excluded190);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path277 || (_path277 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,28A11,11,0,1,1,27,17,11,11,0,0,1,16,28ZM16,8a9,9,0,1,0,9,9A9,9,0,0,0,16,8Z\"\n })), _path278 || (_path278 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.96 5.5H9.030000000000001V7.5H3.96z\",\n transform: \"rotate(-45.06 6.502 6.497)\"\n })), _path279 || (_path279 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5 3.96H26.5V9.030000000000001H24.5z\",\n transform: \"rotate(-44.94 25.5 6.498)\"\n })), _path280 || (_path280 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21 16L17 16 17 12 15 12 15 16 11 16 11 18 15 18 15 22 17 22 17 18 21 18 21 16z\"\n })), children);\n});\nvar AlarmAdd20 = /*#__PURE__*/React.forwardRef(function AlarmAdd20(_ref191, ref) {\n var children = _ref191.children,\n rest = _objectWithoutProperties(_ref191, _excluded191);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path281 || (_path281 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,28A11,11,0,1,1,27,17,11,11,0,0,1,16,28ZM16,8a9,9,0,1,0,9,9A9,9,0,0,0,16,8Z\"\n })), _path282 || (_path282 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.96 5.5H9.030000000000001V7.5H3.96z\",\n transform: \"rotate(-45.06 6.502 6.497)\"\n })), _path283 || (_path283 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5 3.96H26.5V9.030000000000001H24.5z\",\n transform: \"rotate(-44.94 25.5 6.498)\"\n })), _path284 || (_path284 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21 16L17 16 17 12 15 12 15 16 11 16 11 18 15 18 15 22 17 22 17 18 21 18 21 16z\"\n })), children);\n});\nvar AlarmAdd16 = /*#__PURE__*/React.forwardRef(function AlarmAdd16(_ref192, ref) {\n var children = _ref192.children,\n rest = _objectWithoutProperties(_ref192, _excluded192);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path285 || (_path285 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,28A11,11,0,1,1,27,17,11,11,0,0,1,16,28ZM16,8a9,9,0,1,0,9,9A9,9,0,0,0,16,8Z\"\n })), _path286 || (_path286 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.96 5.5H9.030000000000001V7.5H3.96z\",\n transform: \"rotate(-45.06 6.502 6.497)\"\n })), _path287 || (_path287 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5 3.96H26.5V9.030000000000001H24.5z\",\n transform: \"rotate(-44.94 25.5 6.498)\"\n })), _path288 || (_path288 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21 16L17 16 17 12 15 12 15 16 11 16 11 18 15 18 15 22 17 22 17 18 21 18 21 16z\"\n })), children);\n});\nvar AlarmSubtract32 = /*#__PURE__*/React.forwardRef(function AlarmSubtract32(_ref193, ref) {\n var children = _ref193.children,\n rest = _objectWithoutProperties(_ref193, _excluded193);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path289 || (_path289 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,28A11,11,0,1,1,27,17,11,11,0,0,1,16,28ZM16,8a9,9,0,1,0,9,9A9,9,0,0,0,16,8Z\"\n })), _path290 || (_path290 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.96 5.5H9.030000000000001V7.5H3.96z\",\n transform: \"rotate(-45.06 6.502 6.497)\"\n })), _path291 || (_path291 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5 3.96H26.5V9.030000000000001H24.5z\",\n transform: \"rotate(-44.94 25.5 6.498)\"\n })), _path292 || (_path292 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 16H21V18H11z\"\n })), children);\n});\nvar AlarmSubtract24 = /*#__PURE__*/React.forwardRef(function AlarmSubtract24(_ref194, ref) {\n var children = _ref194.children,\n rest = _objectWithoutProperties(_ref194, _excluded194);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path293 || (_path293 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,28A11,11,0,1,1,27,17,11,11,0,0,1,16,28ZM16,8a9,9,0,1,0,9,9A9,9,0,0,0,16,8Z\"\n })), _path294 || (_path294 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.96 5.5H9.030000000000001V7.5H3.96z\",\n transform: \"rotate(-45.06 6.502 6.497)\"\n })), _path295 || (_path295 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5 3.96H26.5V9.030000000000001H24.5z\",\n transform: \"rotate(-44.94 25.5 6.498)\"\n })), _path296 || (_path296 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 16H21V18H11z\"\n })), children);\n});\nvar AlarmSubtract20 = /*#__PURE__*/React.forwardRef(function AlarmSubtract20(_ref195, ref) {\n var children = _ref195.children,\n rest = _objectWithoutProperties(_ref195, _excluded195);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path297 || (_path297 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,28A11,11,0,1,1,27,17,11,11,0,0,1,16,28ZM16,8a9,9,0,1,0,9,9A9,9,0,0,0,16,8Z\"\n })), _path298 || (_path298 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.96 5.5H9.030000000000001V7.5H3.96z\",\n transform: \"rotate(-45.06 6.502 6.497)\"\n })), _path299 || (_path299 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5 3.96H26.5V9.030000000000001H24.5z\",\n transform: \"rotate(-44.94 25.5 6.498)\"\n })), _path300 || (_path300 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 16H21V18H11z\"\n })), children);\n});\nvar AlarmSubtract16 = /*#__PURE__*/React.forwardRef(function AlarmSubtract16(_ref196, ref) {\n var children = _ref196.children,\n rest = _objectWithoutProperties(_ref196, _excluded196);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path301 || (_path301 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,28A11,11,0,1,1,27,17,11,11,0,0,1,16,28ZM16,8a9,9,0,1,0,9,9A9,9,0,0,0,16,8Z\"\n })), _path302 || (_path302 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.96 5.5H9.030000000000001V7.5H3.96z\",\n transform: \"rotate(-45.06 6.502 6.497)\"\n })), _path303 || (_path303 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5 3.96H26.5V9.030000000000001H24.5z\",\n transform: \"rotate(-44.94 25.5 6.498)\"\n })), _path304 || (_path304 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 16H21V18H11z\"\n })), children);\n});\nvar AlignHorizontalCenter32 = /*#__PURE__*/React.forwardRef(function AlignHorizontalCenter32(_ref197, ref) {\n var children = _ref197.children,\n rest = _objectWithoutProperties(_ref197, _excluded197);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path305 || (_path305 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,18H17V14h3a2.0025,2.0025,0,0,0,2-2V8a2.0025,2.0025,0,0,0-2-2H17V2H15V6H12a2.0025,2.0025,0,0,0-2,2v4a2.0025,2.0025,0,0,0,2,2h3v4H8a2.0025,2.0025,0,0,0-2,2v4a2.0025,2.0025,0,0,0,2,2h7v4h2V26h7a2.0025,2.0025,0,0,0,2-2V20A2.0025,2.0025,0,0,0,24,18ZM12,8h8v4H12ZM24,24H8V20H24Z\"\n })), children);\n});\nvar AlignHorizontalCenter24 = /*#__PURE__*/React.forwardRef(function AlignHorizontalCenter24(_ref198, ref) {\n var children = _ref198.children,\n rest = _objectWithoutProperties(_ref198, _excluded198);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path306 || (_path306 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,18H17V14h3a2.0025,2.0025,0,0,0,2-2V8a2.0025,2.0025,0,0,0-2-2H17V2H15V6H12a2.0025,2.0025,0,0,0-2,2v4a2.0025,2.0025,0,0,0,2,2h3v4H8a2.0025,2.0025,0,0,0-2,2v4a2.0025,2.0025,0,0,0,2,2h7v4h2V26h7a2.0025,2.0025,0,0,0,2-2V20A2.0025,2.0025,0,0,0,24,18ZM12,8h8v4H12ZM24,24H8V20H24Z\"\n })), children);\n});\nvar AlignHorizontalCenter20 = /*#__PURE__*/React.forwardRef(function AlignHorizontalCenter20(_ref199, ref) {\n var children = _ref199.children,\n rest = _objectWithoutProperties(_ref199, _excluded199);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path307 || (_path307 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,18H17V14h3a2.0025,2.0025,0,0,0,2-2V8a2.0025,2.0025,0,0,0-2-2H17V2H15V6H12a2.0025,2.0025,0,0,0-2,2v4a2.0025,2.0025,0,0,0,2,2h3v4H8a2.0025,2.0025,0,0,0-2,2v4a2.0025,2.0025,0,0,0,2,2h7v4h2V26h7a2.0025,2.0025,0,0,0,2-2V20A2.0025,2.0025,0,0,0,24,18ZM12,8h8v4H12ZM24,24H8V20H24Z\"\n })), children);\n});\nvar AlignHorizontalCenter16 = /*#__PURE__*/React.forwardRef(function AlignHorizontalCenter16(_ref200, ref) {\n var children = _ref200.children,\n rest = _objectWithoutProperties(_ref200, _excluded200);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path308 || (_path308 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,18H17V14h3a2.0025,2.0025,0,0,0,2-2V8a2.0025,2.0025,0,0,0-2-2H17V2H15V6H12a2.0025,2.0025,0,0,0-2,2v4a2.0025,2.0025,0,0,0,2,2h3v4H8a2.0025,2.0025,0,0,0-2,2v4a2.0025,2.0025,0,0,0,2,2h7v4h2V26h7a2.0025,2.0025,0,0,0,2-2V20A2.0025,2.0025,0,0,0,24,18ZM12,8h8v4H12ZM24,24H8V20H24Z\"\n })), children);\n});\nvar AlignHorizontalLeft32 = /*#__PURE__*/React.forwardRef(function AlignHorizontalLeft32(_ref201, ref) {\n var children = _ref201.children,\n rest = _objectWithoutProperties(_ref201, _excluded201);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path309 || (_path309 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 26H11a2.0023 2.0023 0 01-2-2V20a2.0023 2.0023 0 012-2H26a2.0023 2.0023 0 012 2v4A2.0023 2.0023 0 0126 26zm0-6.0012L11 20v4H26zM18 14H11a2.0023 2.0023 0 01-2-2V8a2.0023 2.0023 0 012-2h7a2.0023 2.0023 0 012 2v4A2.0023 2.0023 0 0118 14zm0-6.0012L11 8v4h7zM4 2H6V30H4z\"\n })), children);\n});\nvar AlignHorizontalLeft24 = /*#__PURE__*/React.forwardRef(function AlignHorizontalLeft24(_ref202, ref) {\n var children = _ref202.children,\n rest = _objectWithoutProperties(_ref202, _excluded202);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path310 || (_path310 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 26H11a2.0023 2.0023 0 01-2-2V20a2.0023 2.0023 0 012-2H26a2.0023 2.0023 0 012 2v4A2.0023 2.0023 0 0126 26zm0-6.0012L11 20v4H26zM18 14H11a2.0023 2.0023 0 01-2-2V8a2.0023 2.0023 0 012-2h7a2.0023 2.0023 0 012 2v4A2.0023 2.0023 0 0118 14zm0-6.0012L11 8v4h7zM4 2H6V30H4z\"\n })), children);\n});\nvar AlignHorizontalLeft20 = /*#__PURE__*/React.forwardRef(function AlignHorizontalLeft20(_ref203, ref) {\n var children = _ref203.children,\n rest = _objectWithoutProperties(_ref203, _excluded203);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path311 || (_path311 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 26H11a2.0023 2.0023 0 01-2-2V20a2.0023 2.0023 0 012-2H26a2.0023 2.0023 0 012 2v4A2.0023 2.0023 0 0126 26zm0-6.0012L11 20v4H26zM18 14H11a2.0023 2.0023 0 01-2-2V8a2.0023 2.0023 0 012-2h7a2.0023 2.0023 0 012 2v4A2.0023 2.0023 0 0118 14zm0-6.0012L11 8v4h7zM4 2H6V30H4z\"\n })), children);\n});\nvar AlignHorizontalLeft16 = /*#__PURE__*/React.forwardRef(function AlignHorizontalLeft16(_ref204, ref) {\n var children = _ref204.children,\n rest = _objectWithoutProperties(_ref204, _excluded204);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path312 || (_path312 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 26H11a2.0023 2.0023 0 01-2-2V20a2.0023 2.0023 0 012-2H26a2.0023 2.0023 0 012 2v4A2.0023 2.0023 0 0126 26zm0-6.0012L11 20v4H26zM18 14H11a2.0023 2.0023 0 01-2-2V8a2.0023 2.0023 0 012-2h7a2.0023 2.0023 0 012 2v4A2.0023 2.0023 0 0118 14zm0-6.0012L11 8v4h7zM4 2H6V30H4z\"\n })), children);\n});\nvar AlignHorizontalRight32 = /*#__PURE__*/React.forwardRef(function AlignHorizontalRight32(_ref205, ref) {\n var children = _ref205.children,\n rest = _objectWithoutProperties(_ref205, _excluded205);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path313 || (_path313 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 24V20a2.0023 2.0023 0 012-2H21a2.0023 2.0023 0 012 2v4a2.0023 2.0023 0 01-2 2H6A2.0023 2.0023 0 014 24zm2 0H21V20L6 19.9988zM12 12V8a2.0023 2.0023 0 012-2h7a2.0023 2.0023 0 012 2v4a2.0023 2.0023 0 01-2 2H14A2.0023 2.0023 0 0112 12zm2 0h7V8l-7-.0012z\"\n })), _path314 || (_path314 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 2H28V30H26z\",\n transform: \"rotate(-180 27 16)\"\n })), children);\n});\nvar AlignHorizontalRight24 = /*#__PURE__*/React.forwardRef(function AlignHorizontalRight24(_ref206, ref) {\n var children = _ref206.children,\n rest = _objectWithoutProperties(_ref206, _excluded206);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path315 || (_path315 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 24V20a2.0023 2.0023 0 012-2H21a2.0023 2.0023 0 012 2v4a2.0023 2.0023 0 01-2 2H6A2.0023 2.0023 0 014 24zm2 0H21V20L6 19.9988zM12 12V8a2.0023 2.0023 0 012-2h7a2.0023 2.0023 0 012 2v4a2.0023 2.0023 0 01-2 2H14A2.0023 2.0023 0 0112 12zm2 0h7V8l-7-.0012z\"\n })), _path316 || (_path316 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 2H28V30H26z\",\n transform: \"rotate(-180 27 16)\"\n })), children);\n});\nvar AlignHorizontalRight20 = /*#__PURE__*/React.forwardRef(function AlignHorizontalRight20(_ref207, ref) {\n var children = _ref207.children,\n rest = _objectWithoutProperties(_ref207, _excluded207);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path317 || (_path317 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 24V20a2.0023 2.0023 0 012-2H21a2.0023 2.0023 0 012 2v4a2.0023 2.0023 0 01-2 2H6A2.0023 2.0023 0 014 24zm2 0H21V20L6 19.9988zM12 12V8a2.0023 2.0023 0 012-2h7a2.0023 2.0023 0 012 2v4a2.0023 2.0023 0 01-2 2H14A2.0023 2.0023 0 0112 12zm2 0h7V8l-7-.0012z\"\n })), _path318 || (_path318 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 2H28V30H26z\",\n transform: \"rotate(-180 27 16)\"\n })), children);\n});\nvar AlignHorizontalRight16 = /*#__PURE__*/React.forwardRef(function AlignHorizontalRight16(_ref208, ref) {\n var children = _ref208.children,\n rest = _objectWithoutProperties(_ref208, _excluded208);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path319 || (_path319 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 24V20a2.0023 2.0023 0 012-2H21a2.0023 2.0023 0 012 2v4a2.0023 2.0023 0 01-2 2H6A2.0023 2.0023 0 014 24zm2 0H21V20L6 19.9988zM12 12V8a2.0023 2.0023 0 012-2h7a2.0023 2.0023 0 012 2v4a2.0023 2.0023 0 01-2 2H14A2.0023 2.0023 0 0112 12zm2 0h7V8l-7-.0012z\"\n })), _path320 || (_path320 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 2H28V30H26z\",\n transform: \"rotate(-180 27 16)\"\n })), children);\n});\nvar AlignVerticalBottom32 = /*#__PURE__*/React.forwardRef(function AlignVerticalBottom32(_ref209, ref) {\n var children = _ref209.children,\n rest = _objectWithoutProperties(_ref209, _excluded209);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path321 || (_path321 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 26H30V28H2zM24 23H20a2.0023 2.0023 0 01-2-2V14a2.0023 2.0023 0 012-2h4a2.0023 2.0023 0 012 2v7A2.0023 2.0023 0 0124 23zm-4-9v7h4.0012L24 14zM12 23H8a2.0023 2.0023 0 01-2-2V6A2.0023 2.0023 0 018 4h4a2.0023 2.0023 0 012 2V21A2.0023 2.0023 0 0112 23zM8 6V21h4.0012L12 6z\"\n })), children);\n});\nvar AlignVerticalBottom24 = /*#__PURE__*/React.forwardRef(function AlignVerticalBottom24(_ref210, ref) {\n var children = _ref210.children,\n rest = _objectWithoutProperties(_ref210, _excluded210);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path322 || (_path322 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 26H30V28H2zM24 23H20a2.0023 2.0023 0 01-2-2V14a2.0023 2.0023 0 012-2h4a2.0023 2.0023 0 012 2v7A2.0023 2.0023 0 0124 23zm-4-9v7h4.0012L24 14zM12 23H8a2.0023 2.0023 0 01-2-2V6A2.0023 2.0023 0 018 4h4a2.0023 2.0023 0 012 2V21A2.0023 2.0023 0 0112 23zM8 6V21h4.0012L12 6z\"\n })), children);\n});\nvar AlignVerticalBottom20 = /*#__PURE__*/React.forwardRef(function AlignVerticalBottom20(_ref211, ref) {\n var children = _ref211.children,\n rest = _objectWithoutProperties(_ref211, _excluded211);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path323 || (_path323 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 26H30V28H2zM24 23H20a2.0023 2.0023 0 01-2-2V14a2.0023 2.0023 0 012-2h4a2.0023 2.0023 0 012 2v7A2.0023 2.0023 0 0124 23zm-4-9v7h4.0012L24 14zM12 23H8a2.0023 2.0023 0 01-2-2V6A2.0023 2.0023 0 018 4h4a2.0023 2.0023 0 012 2V21A2.0023 2.0023 0 0112 23zM8 6V21h4.0012L12 6z\"\n })), children);\n});\nvar AlignVerticalBottom16 = /*#__PURE__*/React.forwardRef(function AlignVerticalBottom16(_ref212, ref) {\n var children = _ref212.children,\n rest = _objectWithoutProperties(_ref212, _excluded212);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path324 || (_path324 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 26H30V28H2zM24 23H20a2.0023 2.0023 0 01-2-2V14a2.0023 2.0023 0 012-2h4a2.0023 2.0023 0 012 2v7A2.0023 2.0023 0 0124 23zm-4-9v7h4.0012L24 14zM12 23H8a2.0023 2.0023 0 01-2-2V6A2.0023 2.0023 0 018 4h4a2.0023 2.0023 0 012 2V21A2.0023 2.0023 0 0112 23zM8 6V21h4.0012L12 6z\"\n })), children);\n});\nvar AlignVerticalCenter32 = /*#__PURE__*/React.forwardRef(function AlignVerticalCenter32(_ref213, ref) {\n var children = _ref213.children,\n rest = _objectWithoutProperties(_ref213, _excluded213);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path325 || (_path325 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,15H26V12a2.0025,2.0025,0,0,0-2-2H20a2.0025,2.0025,0,0,0-2,2v3H14V8a2.0025,2.0025,0,0,0-2-2H8A2.0025,2.0025,0,0,0,6,8v7H2v2H6v7a2.0025,2.0025,0,0,0,2,2h4a2.0025,2.0025,0,0,0,2-2V17h4v3a2.0025,2.0025,0,0,0,2,2h4a2.0025,2.0025,0,0,0,2-2V17h4ZM8,24V8h4l.0012,16Zm12-4V12h4l.0012,8Z\"\n })), children);\n});\nvar AlignVerticalCenter24 = /*#__PURE__*/React.forwardRef(function AlignVerticalCenter24(_ref214, ref) {\n var children = _ref214.children,\n rest = _objectWithoutProperties(_ref214, _excluded214);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path326 || (_path326 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,15H26V12a2.0025,2.0025,0,0,0-2-2H20a2.0025,2.0025,0,0,0-2,2v3H14V8a2.0025,2.0025,0,0,0-2-2H8A2.0025,2.0025,0,0,0,6,8v7H2v2H6v7a2.0025,2.0025,0,0,0,2,2h4a2.0025,2.0025,0,0,0,2-2V17h4v3a2.0025,2.0025,0,0,0,2,2h4a2.0025,2.0025,0,0,0,2-2V17h4ZM8,24V8h4l.0012,16Zm12-4V12h4l.0012,8Z\"\n })), children);\n});\nvar AlignVerticalCenter20 = /*#__PURE__*/React.forwardRef(function AlignVerticalCenter20(_ref215, ref) {\n var children = _ref215.children,\n rest = _objectWithoutProperties(_ref215, _excluded215);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path327 || (_path327 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,15H26V12a2.0025,2.0025,0,0,0-2-2H20a2.0025,2.0025,0,0,0-2,2v3H14V8a2.0025,2.0025,0,0,0-2-2H8A2.0025,2.0025,0,0,0,6,8v7H2v2H6v7a2.0025,2.0025,0,0,0,2,2h4a2.0025,2.0025,0,0,0,2-2V17h4v3a2.0025,2.0025,0,0,0,2,2h4a2.0025,2.0025,0,0,0,2-2V17h4ZM8,24V8h4l.0012,16Zm12-4V12h4l.0012,8Z\"\n })), children);\n});\nvar AlignVerticalCenter16 = /*#__PURE__*/React.forwardRef(function AlignVerticalCenter16(_ref216, ref) {\n var children = _ref216.children,\n rest = _objectWithoutProperties(_ref216, _excluded216);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path328 || (_path328 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,15H26V12a2.0025,2.0025,0,0,0-2-2H20a2.0025,2.0025,0,0,0-2,2v3H14V8a2.0025,2.0025,0,0,0-2-2H8A2.0025,2.0025,0,0,0,6,8v7H2v2H6v7a2.0025,2.0025,0,0,0,2,2h4a2.0025,2.0025,0,0,0,2-2V17h4v3a2.0025,2.0025,0,0,0,2,2h4a2.0025,2.0025,0,0,0,2-2V17h4ZM8,24V8h4l.0012,16Zm12-4V12h4l.0012,8Z\"\n })), children);\n});\nvar AlignVerticalTop32 = /*#__PURE__*/React.forwardRef(function AlignVerticalTop32(_ref217, ref) {\n var children = _ref217.children,\n rest = _objectWithoutProperties(_ref217, _excluded217);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path329 || (_path329 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 20H20a2.0023 2.0023 0 01-2-2V11a2.0023 2.0023 0 012-2h4a2.0023 2.0023 0 012 2v7A2.0023 2.0023 0 0124 20zm-4-9v7h4.0012L24 11zM12 28H8a2.0023 2.0023 0 01-2-2V11A2.0023 2.0023 0 018 9h4a2.0023 2.0023 0 012 2V26A2.0023 2.0023 0 0112 28zM8 11V26h4.0012L12 11zM2 4H30V6H2z\"\n })), children);\n});\nvar AlignVerticalTop24 = /*#__PURE__*/React.forwardRef(function AlignVerticalTop24(_ref218, ref) {\n var children = _ref218.children,\n rest = _objectWithoutProperties(_ref218, _excluded218);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path330 || (_path330 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 20H20a2.0023 2.0023 0 01-2-2V11a2.0023 2.0023 0 012-2h4a2.0023 2.0023 0 012 2v7A2.0023 2.0023 0 0124 20zm-4-9v7h4.0012L24 11zM12 28H8a2.0023 2.0023 0 01-2-2V11A2.0023 2.0023 0 018 9h4a2.0023 2.0023 0 012 2V26A2.0023 2.0023 0 0112 28zM8 11V26h4.0012L12 11zM2 4H30V6H2z\"\n })), children);\n});\nvar AlignVerticalTop20 = /*#__PURE__*/React.forwardRef(function AlignVerticalTop20(_ref219, ref) {\n var children = _ref219.children,\n rest = _objectWithoutProperties(_ref219, _excluded219);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path331 || (_path331 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 20H20a2.0023 2.0023 0 01-2-2V11a2.0023 2.0023 0 012-2h4a2.0023 2.0023 0 012 2v7A2.0023 2.0023 0 0124 20zm-4-9v7h4.0012L24 11zM12 28H8a2.0023 2.0023 0 01-2-2V11A2.0023 2.0023 0 018 9h4a2.0023 2.0023 0 012 2V26A2.0023 2.0023 0 0112 28zM8 11V26h4.0012L12 11zM2 4H30V6H2z\"\n })), children);\n});\nvar AlignVerticalTop16 = /*#__PURE__*/React.forwardRef(function AlignVerticalTop16(_ref220, ref) {\n var children = _ref220.children,\n rest = _objectWithoutProperties(_ref220, _excluded220);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path332 || (_path332 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 20H20a2.0023 2.0023 0 01-2-2V11a2.0023 2.0023 0 012-2h4a2.0023 2.0023 0 012 2v7A2.0023 2.0023 0 0124 20zm-4-9v7h4.0012L24 11zM12 28H8a2.0023 2.0023 0 01-2-2V11A2.0023 2.0023 0 018 9h4a2.0023 2.0023 0 012 2V26A2.0023 2.0023 0 0112 28zM8 11V26h4.0012L12 11zM2 4H30V6H2z\"\n })), children);\n});\nvar AlignBoxBottomCenter32 = /*#__PURE__*/React.forwardRef(function AlignBoxBottomCenter32(_ref221, ref) {\n var children = _ref221.children,\n rest = _objectWithoutProperties(_ref221, _excluded221);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path333 || (_path333 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path334 || (_path334 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 18H22V20H10z\",\n transform: \"rotate(-180 16 19)\"\n })), _path335 || (_path335 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 23H20V25H12z\",\n transform: \"rotate(-180 16 24)\"\n })), children);\n});\nvar AlignBoxBottomCenter24 = /*#__PURE__*/React.forwardRef(function AlignBoxBottomCenter24(_ref222, ref) {\n var children = _ref222.children,\n rest = _objectWithoutProperties(_ref222, _excluded222);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path336 || (_path336 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path337 || (_path337 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 18H22V20H10z\",\n transform: \"rotate(-180 16 19)\"\n })), _path338 || (_path338 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 23H20V25H12z\",\n transform: \"rotate(-180 16 24)\"\n })), children);\n});\nvar AlignBoxBottomCenter20 = /*#__PURE__*/React.forwardRef(function AlignBoxBottomCenter20(_ref223, ref) {\n var children = _ref223.children,\n rest = _objectWithoutProperties(_ref223, _excluded223);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path339 || (_path339 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path340 || (_path340 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 18H22V20H10z\",\n transform: \"rotate(-180 16 19)\"\n })), _path341 || (_path341 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 23H20V25H12z\",\n transform: \"rotate(-180 16 24)\"\n })), children);\n});\nvar AlignBoxBottomCenter16 = /*#__PURE__*/React.forwardRef(function AlignBoxBottomCenter16(_ref224, ref) {\n var children = _ref224.children,\n rest = _objectWithoutProperties(_ref224, _excluded224);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path342 || (_path342 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path343 || (_path343 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 18H22V20H10z\",\n transform: \"rotate(-180 16 19)\"\n })), _path344 || (_path344 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 23H20V25H12z\",\n transform: \"rotate(-180 16 24)\"\n })), children);\n});\nvar AlignBoxBottomLeft32 = /*#__PURE__*/React.forwardRef(function AlignBoxBottomLeft32(_ref225, ref) {\n var children = _ref225.children,\n rest = _objectWithoutProperties(_ref225, _excluded225);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path345 || (_path345 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path346 || (_path346 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 18H20V20H9zM9 23H16V25H9z\"\n })), children);\n});\nvar AlignBoxBottomLeft24 = /*#__PURE__*/React.forwardRef(function AlignBoxBottomLeft24(_ref226, ref) {\n var children = _ref226.children,\n rest = _objectWithoutProperties(_ref226, _excluded226);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path347 || (_path347 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path348 || (_path348 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 18H20V20H9zM9 23H16V25H9z\"\n })), children);\n});\nvar AlignBoxBottomLeft20 = /*#__PURE__*/React.forwardRef(function AlignBoxBottomLeft20(_ref227, ref) {\n var children = _ref227.children,\n rest = _objectWithoutProperties(_ref227, _excluded227);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path349 || (_path349 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path350 || (_path350 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 18H20V20H9zM9 23H16V25H9z\"\n })), children);\n});\nvar AlignBoxBottomLeft16 = /*#__PURE__*/React.forwardRef(function AlignBoxBottomLeft16(_ref228, ref) {\n var children = _ref228.children,\n rest = _objectWithoutProperties(_ref228, _excluded228);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path351 || (_path351 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path352 || (_path352 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 18H20V20H9zM9 23H16V25H9z\"\n })), children);\n});\nvar AlignBoxBottomRight32 = /*#__PURE__*/React.forwardRef(function AlignBoxBottomRight32(_ref229, ref) {\n var children = _ref229.children,\n rest = _objectWithoutProperties(_ref229, _excluded229);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path353 || (_path353 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path354 || (_path354 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 18H23V20H12z\",\n transform: \"rotate(-180 17.5 19)\"\n })), _path355 || (_path355 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 23H23V25H16z\",\n transform: \"rotate(-180 19.5 24)\"\n })), children);\n});\nvar AlignBoxBottomRight24 = /*#__PURE__*/React.forwardRef(function AlignBoxBottomRight24(_ref230, ref) {\n var children = _ref230.children,\n rest = _objectWithoutProperties(_ref230, _excluded230);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path356 || (_path356 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path357 || (_path357 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 18H23V20H12z\",\n transform: \"rotate(-180 17.5 19)\"\n })), _path358 || (_path358 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 23H23V25H16z\",\n transform: \"rotate(-180 19.5 24)\"\n })), children);\n});\nvar AlignBoxBottomRight20 = /*#__PURE__*/React.forwardRef(function AlignBoxBottomRight20(_ref231, ref) {\n var children = _ref231.children,\n rest = _objectWithoutProperties(_ref231, _excluded231);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path359 || (_path359 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path360 || (_path360 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 18H23V20H12z\",\n transform: \"rotate(-180 17.5 19)\"\n })), _path361 || (_path361 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 23H23V25H16z\",\n transform: \"rotate(-180 19.5 24)\"\n })), children);\n});\nvar AlignBoxBottomRight16 = /*#__PURE__*/React.forwardRef(function AlignBoxBottomRight16(_ref232, ref) {\n var children = _ref232.children,\n rest = _objectWithoutProperties(_ref232, _excluded232);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path362 || (_path362 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path363 || (_path363 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 18H23V20H12z\",\n transform: \"rotate(-180 17.5 19)\"\n })), _path364 || (_path364 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 23H23V25H16z\",\n transform: \"rotate(-180 19.5 24)\"\n })), children);\n});\nvar AlignBoxMiddleCenter32 = /*#__PURE__*/React.forwardRef(function AlignBoxMiddleCenter32(_ref233, ref) {\n var children = _ref233.children,\n rest = _objectWithoutProperties(_ref233, _excluded233);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path365 || (_path365 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path366 || (_path366 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 13H22V15H10z\",\n transform: \"rotate(-180 16 14)\"\n })), _path367 || (_path367 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 18H20V20H12z\",\n transform: \"rotate(-180 16 19)\"\n })), children);\n});\nvar AlignBoxMiddleCenter24 = /*#__PURE__*/React.forwardRef(function AlignBoxMiddleCenter24(_ref234, ref) {\n var children = _ref234.children,\n rest = _objectWithoutProperties(_ref234, _excluded234);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path368 || (_path368 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path369 || (_path369 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 13H22V15H10z\",\n transform: \"rotate(-180 16 14)\"\n })), _path370 || (_path370 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 18H20V20H12z\",\n transform: \"rotate(-180 16 19)\"\n })), children);\n});\nvar AlignBoxMiddleCenter20 = /*#__PURE__*/React.forwardRef(function AlignBoxMiddleCenter20(_ref235, ref) {\n var children = _ref235.children,\n rest = _objectWithoutProperties(_ref235, _excluded235);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path371 || (_path371 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path372 || (_path372 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 13H22V15H10z\",\n transform: \"rotate(-180 16 14)\"\n })), _path373 || (_path373 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 18H20V20H12z\",\n transform: \"rotate(-180 16 19)\"\n })), children);\n});\nvar AlignBoxMiddleCenter16 = /*#__PURE__*/React.forwardRef(function AlignBoxMiddleCenter16(_ref236, ref) {\n var children = _ref236.children,\n rest = _objectWithoutProperties(_ref236, _excluded236);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path374 || (_path374 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path375 || (_path375 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 13H22V15H10z\",\n transform: \"rotate(-180 16 14)\"\n })), _path376 || (_path376 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 18H20V20H12z\",\n transform: \"rotate(-180 16 19)\"\n })), children);\n});\nvar AlignBoxMiddleLeft32 = /*#__PURE__*/React.forwardRef(function AlignBoxMiddleLeft32(_ref237, ref) {\n var children = _ref237.children,\n rest = _objectWithoutProperties(_ref237, _excluded237);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path377 || (_path377 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path378 || (_path378 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 13H20V15H9zM9 18H16V20H9z\"\n })), children);\n});\nvar AlignBoxMiddleLeft24 = /*#__PURE__*/React.forwardRef(function AlignBoxMiddleLeft24(_ref238, ref) {\n var children = _ref238.children,\n rest = _objectWithoutProperties(_ref238, _excluded238);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path379 || (_path379 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path380 || (_path380 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 13H20V15H9zM9 18H16V20H9z\"\n })), children);\n});\nvar AlignBoxMiddleLeft20 = /*#__PURE__*/React.forwardRef(function AlignBoxMiddleLeft20(_ref239, ref) {\n var children = _ref239.children,\n rest = _objectWithoutProperties(_ref239, _excluded239);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path381 || (_path381 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path382 || (_path382 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 13H20V15H9zM9 18H16V20H9z\"\n })), children);\n});\nvar AlignBoxMiddleLeft16 = /*#__PURE__*/React.forwardRef(function AlignBoxMiddleLeft16(_ref240, ref) {\n var children = _ref240.children,\n rest = _objectWithoutProperties(_ref240, _excluded240);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path383 || (_path383 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path384 || (_path384 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 13H20V15H9zM9 18H16V20H9z\"\n })), children);\n});\nvar AlignBoxMiddleRight32 = /*#__PURE__*/React.forwardRef(function AlignBoxMiddleRight32(_ref241, ref) {\n var children = _ref241.children,\n rest = _objectWithoutProperties(_ref241, _excluded241);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path385 || (_path385 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path386 || (_path386 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 13H23V15H12z\",\n transform: \"rotate(-180 17.5 14)\"\n })), _path387 || (_path387 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 18H23V20H16z\",\n transform: \"rotate(-180 19.5 19)\"\n })), children);\n});\nvar AlignBoxMiddleRight24 = /*#__PURE__*/React.forwardRef(function AlignBoxMiddleRight24(_ref242, ref) {\n var children = _ref242.children,\n rest = _objectWithoutProperties(_ref242, _excluded242);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path388 || (_path388 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path389 || (_path389 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 13H23V15H12z\",\n transform: \"rotate(-180 17.5 14)\"\n })), _path390 || (_path390 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 18H23V20H16z\",\n transform: \"rotate(-180 19.5 19)\"\n })), children);\n});\nvar AlignBoxMiddleRight20 = /*#__PURE__*/React.forwardRef(function AlignBoxMiddleRight20(_ref243, ref) {\n var children = _ref243.children,\n rest = _objectWithoutProperties(_ref243, _excluded243);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path391 || (_path391 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path392 || (_path392 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 13H23V15H12z\",\n transform: \"rotate(-180 17.5 14)\"\n })), _path393 || (_path393 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 18H23V20H16z\",\n transform: \"rotate(-180 19.5 19)\"\n })), children);\n});\nvar AlignBoxMiddleRight16 = /*#__PURE__*/React.forwardRef(function AlignBoxMiddleRight16(_ref244, ref) {\n var children = _ref244.children,\n rest = _objectWithoutProperties(_ref244, _excluded244);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path394 || (_path394 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path395 || (_path395 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 13H23V15H12z\",\n transform: \"rotate(-180 17.5 14)\"\n })), _path396 || (_path396 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 18H23V20H16z\",\n transform: \"rotate(-180 19.5 19)\"\n })), children);\n});\nvar AlignBoxTopCenter32 = /*#__PURE__*/React.forwardRef(function AlignBoxTopCenter32(_ref245, ref) {\n var children = _ref245.children,\n rest = _objectWithoutProperties(_ref245, _excluded245);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path397 || (_path397 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path398 || (_path398 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 7H22V9H10z\",\n transform: \"rotate(-180 16 8)\"\n })), _path399 || (_path399 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 12H20V14H12z\",\n transform: \"rotate(-180 16 13)\"\n })), children);\n});\nvar AlignBoxTopCenter24 = /*#__PURE__*/React.forwardRef(function AlignBoxTopCenter24(_ref246, ref) {\n var children = _ref246.children,\n rest = _objectWithoutProperties(_ref246, _excluded246);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path400 || (_path400 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path401 || (_path401 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 7H22V9H10z\",\n transform: \"rotate(-180 16 8)\"\n })), _path402 || (_path402 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 12H20V14H12z\",\n transform: \"rotate(-180 16 13)\"\n })), children);\n});\nvar AlignBoxTopCenter20 = /*#__PURE__*/React.forwardRef(function AlignBoxTopCenter20(_ref247, ref) {\n var children = _ref247.children,\n rest = _objectWithoutProperties(_ref247, _excluded247);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path403 || (_path403 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path404 || (_path404 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 7H22V9H10z\",\n transform: \"rotate(-180 16 8)\"\n })), _path405 || (_path405 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 12H20V14H12z\",\n transform: \"rotate(-180 16 13)\"\n })), children);\n});\nvar AlignBoxTopCenter16 = /*#__PURE__*/React.forwardRef(function AlignBoxTopCenter16(_ref248, ref) {\n var children = _ref248.children,\n rest = _objectWithoutProperties(_ref248, _excluded248);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path406 || (_path406 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path407 || (_path407 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 7H22V9H10z\",\n transform: \"rotate(-180 16 8)\"\n })), _path408 || (_path408 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 12H20V14H12z\",\n transform: \"rotate(-180 16 13)\"\n })), children);\n});\nvar AlignBoxTopLeft32 = /*#__PURE__*/React.forwardRef(function AlignBoxTopLeft32(_ref249, ref) {\n var children = _ref249.children,\n rest = _objectWithoutProperties(_ref249, _excluded249);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path409 || (_path409 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path410 || (_path410 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 7H20V9H9zM9 12H16V14H9z\"\n })), children);\n});\nvar AlignBoxTopLeft24 = /*#__PURE__*/React.forwardRef(function AlignBoxTopLeft24(_ref250, ref) {\n var children = _ref250.children,\n rest = _objectWithoutProperties(_ref250, _excluded250);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path411 || (_path411 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path412 || (_path412 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 7H20V9H9zM9 12H16V14H9z\"\n })), children);\n});\n\nexport { Accessibility16, Accessibility20, Accessibility24, Accessibility32, AccessibilityAlt16, AccessibilityAlt20, AccessibilityAlt24, AccessibilityAlt32, AccessibilityColor16, AccessibilityColor20, AccessibilityColor24, AccessibilityColor32, AccessibilityColorFilled16, AccessibilityColorFilled20, AccessibilityColorFilled24, AccessibilityColorFilled32, Account16, Account20, Account24, Account32, AccumulationIce16, AccumulationIce20, AccumulationIce24, AccumulationIce32, AccumulationPrecipitation16, AccumulationPrecipitation20, AccumulationPrecipitation24, AccumulationPrecipitation32, AccumulationRain16, AccumulationRain20, AccumulationRain24, AccumulationRain32, AccumulationSnow16, AccumulationSnow20, AccumulationSnow24, AccumulationSnow32, Activity16, Activity20, Activity24, Activity32, Add16, Add20, Add24, Add32, AddAlt16, AddAlt20, AddAlt24, AddAlt32, AddComment16, AddComment20, AddComment24, AddComment32, AddFilled16, AddFilled20, AddFilled24, AddFilled32, AgricultureAnalytics16, AgricultureAnalytics20, AgricultureAnalytics24, AgricultureAnalytics32, AirlineDigitalGate16, AirlineDigitalGate20, AirlineDigitalGate24, AirlineDigitalGate32, AirlineManageGates16, AirlineManageGates20, AirlineManageGates24, AirlineManageGates32, AirlinePassengerCare16, AirlinePassengerCare20, AirlinePassengerCare24, AirlinePassengerCare32, AirlineRapidBoard16, AirlineRapidBoard20, AirlineRapidBoard24, AirlineRapidBoard32, AirportLocation16, AirportLocation20, AirportLocation24, AirportLocation32, Airport_0116, Airport_0120, Airport_0124, Airport_0132, Airport_0216, Airport_0220, Airport_0224, Airport_0232, Alarm16, Alarm20, Alarm24, Alarm32, AlarmAdd16, AlarmAdd20, AlarmAdd24, AlarmAdd32, AlarmSubtract16, AlarmSubtract20, AlarmSubtract24, AlarmSubtract32, AlignBoxBottomCenter16, AlignBoxBottomCenter20, AlignBoxBottomCenter24, AlignBoxBottomCenter32, AlignBoxBottomLeft16, AlignBoxBottomLeft20, AlignBoxBottomLeft24, AlignBoxBottomLeft32, AlignBoxBottomRight16, AlignBoxBottomRight20, AlignBoxBottomRight24, AlignBoxBottomRight32, AlignBoxMiddleCenter16, AlignBoxMiddleCenter20, AlignBoxMiddleCenter24, AlignBoxMiddleCenter32, AlignBoxMiddleLeft16, AlignBoxMiddleLeft20, AlignBoxMiddleLeft24, AlignBoxMiddleLeft32, AlignBoxMiddleRight16, AlignBoxMiddleRight20, AlignBoxMiddleRight24, AlignBoxMiddleRight32, AlignBoxTopCenter16, AlignBoxTopCenter20, AlignBoxTopCenter24, AlignBoxTopCenter32, AlignBoxTopLeft24, AlignBoxTopLeft32, AlignHorizontalCenter16, AlignHorizontalCenter20, AlignHorizontalCenter24, AlignHorizontalCenter32, AlignHorizontalLeft16, AlignHorizontalLeft20, AlignHorizontalLeft24, AlignHorizontalLeft32, AlignHorizontalRight16, AlignHorizontalRight20, AlignHorizontalRight24, AlignHorizontalRight32, AlignVerticalBottom16, AlignVerticalBottom20, AlignVerticalBottom24, AlignVerticalBottom32, AlignVerticalCenter16, AlignVerticalCenter20, AlignVerticalCenter24, AlignVerticalCenter32, AlignVerticalTop16, AlignVerticalTop20, AlignVerticalTop24, AlignVerticalTop32, WatsonHealth3DCursor16, WatsonHealth3DCursor20, WatsonHealth3DCursor24, WatsonHealth3DCursor32, WatsonHealth3DCursorAlt16, WatsonHealth3DCursorAlt20, WatsonHealth3DCursorAlt24, WatsonHealth3DCursorAlt32, WatsonHealth3DCurveAutoColon16, WatsonHealth3DCurveAutoColon20, WatsonHealth3DCurveAutoColon24, WatsonHealth3DCurveAutoColon32, WatsonHealth3DCurveAutoVessels16, WatsonHealth3DCurveAutoVessels20, WatsonHealth3DCurveAutoVessels24, WatsonHealth3DCurveAutoVessels32, WatsonHealth3DCurveManual16, WatsonHealth3DCurveManual20, WatsonHealth3DCurveManual24, WatsonHealth3DCurveManual32, WatsonHealth3DICa16, WatsonHealth3DICa20, WatsonHealth3DICa24, WatsonHealth3DICa32, WatsonHealth3DMprToggle16, WatsonHealth3DMprToggle20, WatsonHealth3DMprToggle24, WatsonHealth3DMprToggle32, WatsonHealth3DPrintMesh16, WatsonHealth3DPrintMesh20, WatsonHealth3DPrintMesh24, WatsonHealth3DPrintMesh32, WatsonHealth3DSoftware16, WatsonHealth3DSoftware20, WatsonHealth3DSoftware24, WatsonHealth3DSoftware32, WatsonHealth3rdPartyConnected16, WatsonHealth3rdPartyConnected20, WatsonHealth3rdPartyConnected24, WatsonHealth3rdPartyConnected32, WatsonHealthAiResults16, WatsonHealthAiResults20, WatsonHealthAiResults24, WatsonHealthAiResults32, WatsonHealthAiResultsHigh16, WatsonHealthAiResultsHigh20, WatsonHealthAiResultsHigh24, WatsonHealthAiResultsHigh32, WatsonHealthAiResultsLow16, WatsonHealthAiResultsLow20, WatsonHealthAiResultsLow24, WatsonHealthAiResultsLow32, WatsonHealthAiResultsMedium16, WatsonHealthAiResultsMedium20, WatsonHealthAiResultsMedium24, WatsonHealthAiResultsMedium32, WatsonHealthAiResultsUrgent16, WatsonHealthAiResultsUrgent20, WatsonHealthAiResultsUrgent24, WatsonHealthAiResultsUrgent32, WatsonHealthAiResultsVeryHigh16, WatsonHealthAiResultsVeryHigh20, WatsonHealthAiResultsVeryHigh24, WatsonHealthAiResultsVeryHigh32, WatsonHealthAiStatus16, WatsonHealthAiStatus20, WatsonHealthAiStatus24, WatsonHealthAiStatus32, WatsonHealthAiStatusComplete16, WatsonHealthAiStatusComplete20, WatsonHealthAiStatusComplete24, WatsonHealthAiStatusComplete32, WatsonHealthAiStatusFailed16, WatsonHealthAiStatusFailed20, WatsonHealthAiStatusFailed24, WatsonHealthAiStatusFailed32, WatsonHealthAiStatusInProgress16, WatsonHealthAiStatusInProgress20, WatsonHealthAiStatusInProgress24, WatsonHealthAiStatusInProgress32, WatsonHealthAiStatusQueued16, WatsonHealthAiStatusQueued20, WatsonHealthAiStatusQueued24, WatsonHealthAiStatusQueued32, WatsonHealthAiStatusRejected16, WatsonHealthAiStatusRejected20, WatsonHealthAiStatusRejected24, WatsonHealthAiStatusRejected32, _4K16, _4K20, _4K24, _4K32, _4KFilled16, _4KFilled20, _4KFilled24, _4KFilled32 };\n","/**\n * Copyright IBM Corp. 2019, 2020\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * Code generated by @carbon/icon-build-helpers. DO NOT EDIT.\n */\nimport { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../Icon-a8cbe70a.js';\nimport React from 'react';\nimport '@carbon/icon-helpers';\nimport 'prop-types';\n\nvar _path, _path2, _path3, _path4, _path5, _path6, _path7, _path8, _path9, _path10, _path11, _path12, _path13, _path14, _path15, _path16, _path17, _path18, _path19, _path20, _path21, _path22, _path23, _path24, _path25, _path26, _path27, _path28, _path29, _path30, _path31, _path32, _path33, _path34, _path35, _path36, _path37, _path38, _path39, _path40, _path41, _path42, _path43, _path44, _path45, _path46, _path47, _path48, _path49, _path50, _path51, _path52, _path53, _path54, _path55, _path56, _path57, _path58, _path59, _path60, _path61, _path62, _path63, _path64, _path65, _path66, _path67, _path68, _path69, _path70, _path71, _path72, _path73, _path74, _path75, _path76, _path77, _path78, _path79, _path80, _path81, _circle, _path82, _path83, _circle2, _path84, _path85, _circle3, _path86, _path87, _circle4, _path88, _path89, _path90, _path91, _path92, _path93, _path94, _path95, _path96, _path97, _path98, _path99, _path100, _path101, _path102, _path103, _path104, _path105, _path106, _path107, _path108, _path109, _path110, _path111, _path112, _path113, _path114, _path115, _path116, _path117, _path118, _path119, _path120, _path121, _path122, _path123, _path124, _path125, _path126, _path127, _path128, _path129, _path130, _path131, _path132, _path133, _path134, _path135, _path136, _path137, _path138, _path139, _path140, _path141, _path142, _path143, _path144, _path145, _path146, _path147, _path148, _path149, _path150, _path151, _path152, _path153, _path154, _path155, _path156, _path157, _path158, _path159, _path160, _path161, _path162, _path163, _path164, _path165, _path166, _path167, _path168, _path169, _path170, _path171, _path172, _path173, _path174, _path175, _path176, _path177, _path178, _path179, _path180, _path181, _path182, _path183, _path184, _path185, _path186, _path187, _path188, _path189, _path190, _path191, _path192, _path193, _path194, _path195, _path196, _path197, _path198, _path199, _path200, _path201, _path202, _path203, _path204, _path205, _path206, _path207, _path208, _path209, _path210, _path211, _path212, _path213, _circle5, _path214, _path215, _circle6, _path216, _path217, _circle7, _path218, _path219, _circle8, _path220, _path221, _path222, _path223, _path224, _path225, _path226, _path227, _path228, _path229, _path230, _path231, _path232, _path233, _path234, _path235, _path236, _path237, _path238, _path239, _path240, _path241, _path242, _path243, _path244, _path245, _path246, _path247, _path248, _path249, _path250, _path251, _path252, _path253, _path254, _path255, _path256, _path257, _path258, _path259, _path260, _path261, _path262, _path263, _path264, _path265, _path266, _path267, _path268, _path269, _path270, _path271, _path272, _path273, _path274, _path275, _path276, _path277, _path278, _path279, _path280, _path281, _path282, _path283, _path284, _path285, _path286, _path287, _path288, _circle9, _path289, _path290, _circle10, _path291, _path292, _circle11, _path293, _path294, _circle12, _path295, _path296, _path297, _path298, _path299, _path300, _path301, _path302, _path303, _path304, _path305, _path306, _path307, _path308, _circle13, _path309, _circle14, _path310, _circle15, _path311, _circle16, _path312, _circle17, _path313, _circle18, _path314, _circle19, _path315, _circle20, _path316, _circle21, _path317, _circle22, _path318, _circle23, _path319, _circle24, _path320, _path321, _path322, _path323, _path324, _path325, _path326, _path327, _path328, _path329, _path330, _path331, _path332, _path333, _path334, _path335, _path336, _path337, _path338, _path339, _path340, _path341, _path342, _path343, _path344, _path345, _path346, _path347, _path348, _path349, _path350, _path351, _path352, _path353, _path354, _path355, _path356, _path357, _path358, _path359, _path360, _path361, _path362, _path363, _path364, _path365, _path366, _path367, _path368, _path369, _path370, _path371, _path372, _path373, _path374, _path375, _path376, _path377, _path378, _path379, _path380, _path381, _path382, _path383, _path384;\n\nvar _excluded = [\"children\"],\n _excluded2 = [\"children\"],\n _excluded3 = [\"children\"],\n _excluded4 = [\"children\"],\n _excluded5 = [\"children\"],\n _excluded6 = [\"children\"],\n _excluded7 = [\"children\"],\n _excluded8 = [\"children\"],\n _excluded9 = [\"children\"],\n _excluded10 = [\"children\"],\n _excluded11 = [\"children\"],\n _excluded12 = [\"children\"],\n _excluded13 = [\"children\"],\n _excluded14 = [\"children\"],\n _excluded15 = [\"children\"],\n _excluded16 = [\"children\"],\n _excluded17 = [\"children\"],\n _excluded18 = [\"children\"],\n _excluded19 = [\"children\"],\n _excluded20 = [\"children\"],\n _excluded21 = [\"children\"],\n _excluded22 = [\"children\"],\n _excluded23 = [\"children\"],\n _excluded24 = [\"children\"],\n _excluded25 = [\"children\"],\n _excluded26 = [\"children\"],\n _excluded27 = [\"children\"],\n _excluded28 = [\"children\"],\n _excluded29 = [\"children\"],\n _excluded30 = [\"children\"],\n _excluded31 = [\"children\"],\n _excluded32 = [\"children\"],\n _excluded33 = [\"children\"],\n _excluded34 = [\"children\"],\n _excluded35 = [\"children\"],\n _excluded36 = [\"children\"],\n _excluded37 = [\"children\"],\n _excluded38 = [\"children\"],\n _excluded39 = [\"children\"],\n _excluded40 = [\"children\"],\n _excluded41 = [\"children\"],\n _excluded42 = [\"children\"],\n _excluded43 = [\"children\"],\n _excluded44 = [\"children\"],\n _excluded45 = [\"children\"],\n _excluded46 = [\"children\"],\n _excluded47 = [\"children\"],\n _excluded48 = [\"children\"],\n _excluded49 = [\"children\"],\n _excluded50 = [\"children\"],\n _excluded51 = [\"children\"],\n _excluded52 = [\"children\"],\n _excluded53 = [\"children\"],\n _excluded54 = [\"children\"],\n _excluded55 = [\"children\"],\n _excluded56 = [\"children\"],\n _excluded57 = [\"children\"],\n _excluded58 = [\"children\"],\n _excluded59 = [\"children\"],\n _excluded60 = [\"children\"],\n _excluded61 = [\"children\"],\n _excluded62 = [\"children\"],\n _excluded63 = [\"children\"],\n _excluded64 = [\"children\"],\n _excluded65 = [\"children\"],\n _excluded66 = [\"children\"],\n _excluded67 = [\"children\"],\n _excluded68 = [\"children\"],\n _excluded69 = [\"children\"],\n _excluded70 = [\"children\"],\n _excluded71 = [\"children\"],\n _excluded72 = [\"children\"],\n _excluded73 = [\"children\"],\n _excluded74 = [\"children\"],\n _excluded75 = [\"children\"],\n _excluded76 = [\"children\"],\n _excluded77 = [\"children\"],\n _excluded78 = [\"children\"],\n _excluded79 = [\"children\"],\n _excluded80 = [\"children\"],\n _excluded81 = [\"children\"],\n _excluded82 = [\"children\"],\n _excluded83 = [\"children\"],\n _excluded84 = [\"children\"],\n _excluded85 = [\"children\"],\n _excluded86 = [\"children\"],\n _excluded87 = [\"children\"],\n _excluded88 = [\"children\"],\n _excluded89 = [\"children\"],\n _excluded90 = [\"children\"],\n _excluded91 = [\"children\"],\n _excluded92 = [\"children\"],\n _excluded93 = [\"children\"],\n _excluded94 = [\"children\"],\n _excluded95 = [\"children\"],\n _excluded96 = [\"children\"],\n _excluded97 = [\"children\"],\n _excluded98 = [\"children\"],\n _excluded99 = [\"children\"],\n _excluded100 = [\"children\"],\n _excluded101 = [\"children\"],\n _excluded102 = [\"children\"],\n _excluded103 = [\"children\"],\n _excluded104 = [\"children\"],\n _excluded105 = [\"children\"],\n _excluded106 = [\"children\"],\n _excluded107 = [\"children\"],\n _excluded108 = [\"children\"],\n _excluded109 = [\"children\"],\n _excluded110 = [\"children\"],\n _excluded111 = [\"children\"],\n _excluded112 = [\"children\"],\n _excluded113 = [\"children\"],\n _excluded114 = [\"children\"],\n _excluded115 = [\"children\"],\n _excluded116 = [\"children\"],\n _excluded117 = [\"children\"],\n _excluded118 = [\"children\"],\n _excluded119 = [\"children\"],\n _excluded120 = [\"children\"],\n _excluded121 = [\"children\"],\n _excluded122 = [\"children\"],\n _excluded123 = [\"children\"],\n _excluded124 = [\"children\"],\n _excluded125 = [\"children\"],\n _excluded126 = [\"children\"],\n _excluded127 = [\"children\"],\n _excluded128 = [\"children\"],\n _excluded129 = [\"children\"],\n _excluded130 = [\"children\"],\n _excluded131 = [\"children\"],\n _excluded132 = [\"children\"],\n _excluded133 = [\"children\"],\n _excluded134 = [\"children\"],\n _excluded135 = [\"children\"],\n _excluded136 = [\"children\"],\n _excluded137 = [\"children\"],\n _excluded138 = [\"children\"],\n _excluded139 = [\"children\"],\n _excluded140 = [\"children\"],\n _excluded141 = [\"children\"],\n _excluded142 = [\"children\"],\n _excluded143 = [\"children\"],\n _excluded144 = [\"children\"],\n _excluded145 = [\"children\"],\n _excluded146 = [\"children\"],\n _excluded147 = [\"children\"],\n _excluded148 = [\"children\"],\n _excluded149 = [\"children\"],\n _excluded150 = [\"children\"],\n _excluded151 = [\"children\"],\n _excluded152 = [\"children\"],\n _excluded153 = [\"children\"],\n _excluded154 = [\"children\"],\n _excluded155 = [\"children\"],\n _excluded156 = [\"children\"],\n _excluded157 = [\"children\"],\n _excluded158 = [\"children\"],\n _excluded159 = [\"children\"],\n _excluded160 = [\"children\"],\n _excluded161 = [\"children\"],\n _excluded162 = [\"children\"],\n _excluded163 = [\"children\"],\n _excluded164 = [\"children\"],\n _excluded165 = [\"children\"],\n _excluded166 = [\"children\"],\n _excluded167 = [\"children\"],\n _excluded168 = [\"children\"],\n _excluded169 = [\"children\"],\n _excluded170 = [\"children\"],\n _excluded171 = [\"children\"],\n _excluded172 = [\"children\"],\n _excluded173 = [\"children\"],\n _excluded174 = [\"children\"],\n _excluded175 = [\"children\"],\n _excluded176 = [\"children\"],\n _excluded177 = [\"children\"],\n _excluded178 = [\"children\"],\n _excluded179 = [\"children\"],\n _excluded180 = [\"children\"],\n _excluded181 = [\"children\"],\n _excluded182 = [\"children\"],\n _excluded183 = [\"children\"],\n _excluded184 = [\"children\"],\n _excluded185 = [\"children\"],\n _excluded186 = [\"children\"],\n _excluded187 = [\"children\"],\n _excluded188 = [\"children\"],\n _excluded189 = [\"children\"],\n _excluded190 = [\"children\"],\n _excluded191 = [\"children\"],\n _excluded192 = [\"children\"],\n _excluded193 = [\"children\"],\n _excluded194 = [\"children\"],\n _excluded195 = [\"children\"],\n _excluded196 = [\"children\"],\n _excluded197 = [\"children\"],\n _excluded198 = [\"children\"],\n _excluded199 = [\"children\"],\n _excluded200 = [\"children\"],\n _excluded201 = [\"children\"],\n _excluded202 = [\"children\"],\n _excluded203 = [\"children\"],\n _excluded204 = [\"children\"],\n _excluded205 = [\"children\"],\n _excluded206 = [\"children\"],\n _excluded207 = [\"children\"],\n _excluded208 = [\"children\"],\n _excluded209 = [\"children\"],\n _excluded210 = [\"children\"],\n _excluded211 = [\"children\"],\n _excluded212 = [\"children\"],\n _excluded213 = [\"children\"],\n _excluded214 = [\"children\"],\n _excluded215 = [\"children\"],\n _excluded216 = [\"children\"],\n _excluded217 = [\"children\"],\n _excluded218 = [\"children\"],\n _excluded219 = [\"children\"],\n _excluded220 = [\"children\"],\n _excluded221 = [\"children\"],\n _excluded222 = [\"children\"],\n _excluded223 = [\"children\"],\n _excluded224 = [\"children\"],\n _excluded225 = [\"children\"],\n _excluded226 = [\"children\"],\n _excluded227 = [\"children\"],\n _excluded228 = [\"children\"],\n _excluded229 = [\"children\"],\n _excluded230 = [\"children\"],\n _excluded231 = [\"children\"],\n _excluded232 = [\"children\"],\n _excluded233 = [\"children\"],\n _excluded234 = [\"children\"],\n _excluded235 = [\"children\"],\n _excluded236 = [\"children\"],\n _excluded237 = [\"children\"],\n _excluded238 = [\"children\"],\n _excluded239 = [\"children\"],\n _excluded240 = [\"children\"],\n _excluded241 = [\"children\"],\n _excluded242 = [\"children\"],\n _excluded243 = [\"children\"],\n _excluded244 = [\"children\"],\n _excluded245 = [\"children\"],\n _excluded246 = [\"children\"],\n _excluded247 = [\"children\"],\n _excluded248 = [\"children\"],\n _excluded249 = [\"children\"],\n _excluded250 = [\"children\"];\nvar didWarnAboutDeprecation = {};\nvar AlignBoxTopLeft20 = /*#__PURE__*/React.forwardRef(function AlignBoxTopLeft20(_ref, ref) {\n var children = _ref.children,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 7H20V9H9zM9 12H16V14H9z\"\n })), children);\n});\nvar AlignBoxTopLeft16 = /*#__PURE__*/React.forwardRef(function AlignBoxTopLeft16(_ref2, ref) {\n var children = _ref2.children,\n rest = _objectWithoutProperties(_ref2, _excluded2);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path4 || (_path4 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 7H20V9H9zM9 12H16V14H9z\"\n })), children);\n});\nvar AlignBoxTopRight32 = /*#__PURE__*/React.forwardRef(function AlignBoxTopRight32(_ref3, ref) {\n var children = _ref3.children,\n rest = _objectWithoutProperties(_ref3, _excluded3);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path5 || (_path5 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path6 || (_path6 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 7H23V9H12z\",\n transform: \"rotate(-180 17.5 8)\"\n })), _path7 || (_path7 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 12H23V14H16z\",\n transform: \"rotate(-180 19.5 13)\"\n })), children);\n});\nvar AlignBoxTopRight24 = /*#__PURE__*/React.forwardRef(function AlignBoxTopRight24(_ref4, ref) {\n var children = _ref4.children,\n rest = _objectWithoutProperties(_ref4, _excluded4);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path8 || (_path8 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path9 || (_path9 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 7H23V9H12z\",\n transform: \"rotate(-180 17.5 8)\"\n })), _path10 || (_path10 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 12H23V14H16z\",\n transform: \"rotate(-180 19.5 13)\"\n })), children);\n});\nvar AlignBoxTopRight20 = /*#__PURE__*/React.forwardRef(function AlignBoxTopRight20(_ref5, ref) {\n var children = _ref5.children,\n rest = _objectWithoutProperties(_ref5, _excluded5);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path11 || (_path11 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path12 || (_path12 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 7H23V9H12z\",\n transform: \"rotate(-180 17.5 8)\"\n })), _path13 || (_path13 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 12H23V14H16z\",\n transform: \"rotate(-180 19.5 13)\"\n })), children);\n});\nvar AlignBoxTopRight16 = /*#__PURE__*/React.forwardRef(function AlignBoxTopRight16(_ref6, ref) {\n var children = _ref6.children,\n rest = _objectWithoutProperties(_ref6, _excluded6);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path14 || (_path14 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path15 || (_path15 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 7H23V9H12z\",\n transform: \"rotate(-180 17.5 8)\"\n })), _path16 || (_path16 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 12H23V14H16z\",\n transform: \"rotate(-180 19.5 13)\"\n })), children);\n});\nvar Analytics32 = /*#__PURE__*/React.forwardRef(function Analytics32(_ref7, ref) {\n var children = _ref7.children,\n rest = _objectWithoutProperties(_ref7, _excluded7);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path17 || (_path17 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4,2H2V28a2,2,0,0,0,2,2H30V28H4Z\"\n })), _path18 || (_path18 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,9H23v2h3.59L19,18.59l-4.29-4.3a1,1,0,0,0-1.42,0L6,21.59,7.41,23,14,16.41l4.29,4.3a1,1,0,0,0,1.42,0L28,12.41V16h2Z\"\n })), children);\n});\nvar Analytics24 = /*#__PURE__*/React.forwardRef(function Analytics24(_ref8, ref) {\n var children = _ref8.children,\n rest = _objectWithoutProperties(_ref8, _excluded8);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path19 || (_path19 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4,2H2V28a2,2,0,0,0,2,2H30V28H4Z\"\n })), _path20 || (_path20 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,9H23v2h3.59L19,18.59l-4.29-4.3a1,1,0,0,0-1.42,0L6,21.59,7.41,23,14,16.41l4.29,4.3a1,1,0,0,0,1.42,0L28,12.41V16h2Z\"\n })), children);\n});\nvar Analytics20 = /*#__PURE__*/React.forwardRef(function Analytics20(_ref9, ref) {\n var children = _ref9.children,\n rest = _objectWithoutProperties(_ref9, _excluded9);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path21 || (_path21 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4,2H2V28a2,2,0,0,0,2,2H30V28H4Z\"\n })), _path22 || (_path22 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,9H23v2h3.59L19,18.59l-4.29-4.3a1,1,0,0,0-1.42,0L6,21.59,7.41,23,14,16.41l4.29,4.3a1,1,0,0,0,1.42,0L28,12.41V16h2Z\"\n })), children);\n});\nvar Analytics16 = /*#__PURE__*/React.forwardRef(function Analytics16(_ref10, ref) {\n var children = _ref10.children,\n rest = _objectWithoutProperties(_ref10, _excluded10);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path23 || (_path23 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4,2H2V28a2,2,0,0,0,2,2H30V28H4Z\"\n })), _path24 || (_path24 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,9H23v2h3.59L19,18.59l-4.29-4.3a1,1,0,0,0-1.42,0L6,21.59,7.41,23,14,16.41l4.29,4.3a1,1,0,0,0,1.42,0L28,12.41V16h2Z\"\n })), children);\n});\nvar AnalyticsReference32 = /*#__PURE__*/React.forwardRef(function AnalyticsReference32(_ref11, ref) {\n var children = _ref11.children,\n rest = _objectWithoutProperties(_ref11, _excluded11);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path25 || (_path25 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 20L4 22 8.586 22 2 28.586 3.414 30 10 23.414 10 28 12 28 12 20 4 20zM30 4H23V6h3.5859L19 13.5859 14.707 9.293a1 1 0 00-1.414 0L8 14.5858 9.4142 16 14 11.4141l4.293 4.2929a1 1 0 001.414 0L28 7.4141V11h2zM16 28H30V30H16zM2 2H4V16H2z\"\n })), children);\n});\nvar AnalyticsReference24 = /*#__PURE__*/React.forwardRef(function AnalyticsReference24(_ref12, ref) {\n var children = _ref12.children,\n rest = _objectWithoutProperties(_ref12, _excluded12);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path26 || (_path26 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 20L4 22 8.586 22 2 28.586 3.414 30 10 23.414 10 28 12 28 12 20 4 20zM30 4H23V6h3.5859L19 13.5859 14.707 9.293a1 1 0 00-1.414 0L8 14.5858 9.4142 16 14 11.4141l4.293 4.2929a1 1 0 001.414 0L28 7.4141V11h2zM16 28H30V30H16zM2 2H4V16H2z\"\n })), children);\n});\nvar AnalyticsReference20 = /*#__PURE__*/React.forwardRef(function AnalyticsReference20(_ref13, ref) {\n var children = _ref13.children,\n rest = _objectWithoutProperties(_ref13, _excluded13);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path27 || (_path27 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 20L4 22 8.586 22 2 28.586 3.414 30 10 23.414 10 28 12 28 12 20 4 20zM30 4H23V6h3.5859L19 13.5859 14.707 9.293a1 1 0 00-1.414 0L8 14.5858 9.4142 16 14 11.4141l4.293 4.2929a1 1 0 001.414 0L28 7.4141V11h2zM16 28H30V30H16zM2 2H4V16H2z\"\n })), children);\n});\nvar AnalyticsReference16 = /*#__PURE__*/React.forwardRef(function AnalyticsReference16(_ref14, ref) {\n var children = _ref14.children,\n rest = _objectWithoutProperties(_ref14, _excluded14);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path28 || (_path28 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 20L4 22 8.586 22 2 28.586 3.414 30 10 23.414 10 28 12 28 12 20 4 20zM30 4H23V6h3.5859L19 13.5859 14.707 9.293a1 1 0 00-1.414 0L8 14.5858 9.4142 16 14 11.4141l4.293 4.2929a1 1 0 001.414 0L28 7.4141V11h2zM16 28H30V30H16zM2 2H4V16H2z\"\n })), children);\n});\nvar WatsonHealthAngle32 = /*#__PURE__*/React.forwardRef(function WatsonHealthAngle32(_ref15, ref) {\n var children = _ref15.children,\n rest = _objectWithoutProperties(_ref15, _excluded15);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path29 || (_path29 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9,24a3.51,3.51,0,0,0-.88-1.86L17.65,5.56l-1.73-1L6.35,21.12A3.06,3.06,0,0,0,5.5,21a3.5,3.5,0,1,0,3.15,5H28V24ZM5.5,26A1.5,1.5,0,1,1,7,24.5,1.5,1.5,0,0,1,5.5,26Z\"\n })), _path30 || (_path30 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,21h2a13,13,0,0,0-5.42-10.56l-1.16,1.62A11,11,0,0,1,22,21Z\"\n })), children);\n});\nvar WatsonHealthAngle24 = /*#__PURE__*/React.forwardRef(function WatsonHealthAngle24(_ref16, ref) {\n var children = _ref16.children,\n rest = _objectWithoutProperties(_ref16, _excluded16);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path31 || (_path31 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9,24a3.51,3.51,0,0,0-.88-1.86L17.65,5.56l-1.73-1L6.35,21.12A3.06,3.06,0,0,0,5.5,21a3.5,3.5,0,1,0,3.15,5H28V24ZM5.5,26A1.5,1.5,0,1,1,7,24.5,1.5,1.5,0,0,1,5.5,26Z\"\n })), _path32 || (_path32 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,21h2a13,13,0,0,0-5.42-10.56l-1.16,1.62A11,11,0,0,1,22,21Z\"\n })), children);\n});\nvar WatsonHealthAngle20 = /*#__PURE__*/React.forwardRef(function WatsonHealthAngle20(_ref17, ref) {\n var children = _ref17.children,\n rest = _objectWithoutProperties(_ref17, _excluded17);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path33 || (_path33 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9,24a3.51,3.51,0,0,0-.88-1.86L17.65,5.56l-1.73-1L6.35,21.12A3.06,3.06,0,0,0,5.5,21a3.5,3.5,0,1,0,3.15,5H28V24ZM5.5,26A1.5,1.5,0,1,1,7,24.5,1.5,1.5,0,0,1,5.5,26Z\"\n })), _path34 || (_path34 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,21h2a13,13,0,0,0-5.42-10.56l-1.16,1.62A11,11,0,0,1,22,21Z\"\n })), children);\n});\nvar WatsonHealthAngle16 = /*#__PURE__*/React.forwardRef(function WatsonHealthAngle16(_ref18, ref) {\n var children = _ref18.children,\n rest = _objectWithoutProperties(_ref18, _excluded18);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path35 || (_path35 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9,24a3.51,3.51,0,0,0-.88-1.86L17.65,5.56l-1.73-1L6.35,21.12A3.06,3.06,0,0,0,5.5,21a3.5,3.5,0,1,0,3.15,5H28V24ZM5.5,26A1.5,1.5,0,1,1,7,24.5,1.5,1.5,0,0,1,5.5,26Z\"\n })), _path36 || (_path36 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,21h2a13,13,0,0,0-5.42-10.56l-1.16,1.62A11,11,0,0,1,22,21Z\"\n })), children);\n});\nvar WatsonHealthAnnotationVisibility32 = /*#__PURE__*/React.forwardRef(function WatsonHealthAnnotationVisibility32(_ref19, ref) {\n var children = _ref19.children,\n rest = _objectWithoutProperties(_ref19, _excluded19);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path37 || (_path37 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,22H4V6H28Z\"\n })), _path38 || (_path38 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21 20H13a3.51 3.51 0 00-.88-1.86l3.8-6.64-1.74-1-3.78 6.62A3.35 3.35 0 009.5 17a3.5 3.5 0 103.15 5H21zM9.5 22A1.5 1.5 0 1111 20.5 1.5 1.5 0 019.5 22zM19 8H26V10H19zM19 12H23V14H19z\"\n })), children);\n});\nvar WatsonHealthAnnotationVisibility24 = /*#__PURE__*/React.forwardRef(function WatsonHealthAnnotationVisibility24(_ref20, ref) {\n var children = _ref20.children,\n rest = _objectWithoutProperties(_ref20, _excluded20);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path39 || (_path39 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,22H4V6H28Z\"\n })), _path40 || (_path40 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21 20H13a3.51 3.51 0 00-.88-1.86l3.8-6.64-1.74-1-3.78 6.62A3.35 3.35 0 009.5 17a3.5 3.5 0 103.15 5H21zM9.5 22A1.5 1.5 0 1111 20.5 1.5 1.5 0 019.5 22zM19 8H26V10H19zM19 12H23V14H19z\"\n })), children);\n});\nvar WatsonHealthAnnotationVisibility20 = /*#__PURE__*/React.forwardRef(function WatsonHealthAnnotationVisibility20(_ref21, ref) {\n var children = _ref21.children,\n rest = _objectWithoutProperties(_ref21, _excluded21);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path41 || (_path41 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,22H4V6H28Z\"\n })), _path42 || (_path42 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21 20H13a3.51 3.51 0 00-.88-1.86l3.8-6.64-1.74-1-3.78 6.62A3.35 3.35 0 009.5 17a3.5 3.5 0 103.15 5H21zM9.5 22A1.5 1.5 0 1111 20.5 1.5 1.5 0 019.5 22zM19 8H26V10H19zM19 12H23V14H19z\"\n })), children);\n});\nvar WatsonHealthAnnotationVisibility16 = /*#__PURE__*/React.forwardRef(function WatsonHealthAnnotationVisibility16(_ref22, ref) {\n var children = _ref22.children,\n rest = _objectWithoutProperties(_ref22, _excluded22);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path43 || (_path43 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,22H4V6H28Z\"\n })), _path44 || (_path44 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21 20H13a3.51 3.51 0 00-.88-1.86l3.8-6.64-1.74-1-3.78 6.62A3.35 3.35 0 009.5 17a3.5 3.5 0 103.15 5H21zM9.5 22A1.5 1.5 0 1111 20.5 1.5 1.5 0 019.5 22zM19 8H26V10H19zM19 12H23V14H19z\"\n })), children);\n});\nvar Aperture32 = /*#__PURE__*/React.forwardRef(function Aperture32(_ref23, ref) {\n var children = _ref23.children,\n rest = _objectWithoutProperties(_ref23, _excluded23);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path45 || (_path45 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM27.84,14.14,22,17.52V5.62A12,12,0,0,1,27.84,14.14ZM12,18.68V13.32L16,11l4,2.31v5.36L16,21Zm8-14V11L10.34,5.42A11.9,11.9,0,0,1,20,4.7Zm-11.52,2L14,9.85,4,15.62A12,12,0,0,1,8.48,6.66ZM4.16,17.85,10,14.47V26.38A12,12,0,0,1,4.16,17.85ZM12,27.3V21l9.67,5.58A11.92,11.92,0,0,1,16,28,12.05,12.05,0,0,1,12,27.3Zm11.52-2L18,22.14l10-5.77A12,12,0,0,1,23.52,25.34Z\"\n })), children);\n});\nvar Aperture24 = /*#__PURE__*/React.forwardRef(function Aperture24(_ref24, ref) {\n var children = _ref24.children,\n rest = _objectWithoutProperties(_ref24, _excluded24);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path46 || (_path46 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM27.84,14.14,22,17.52V5.62A12,12,0,0,1,27.84,14.14ZM12,18.68V13.32L16,11l4,2.31v5.36L16,21Zm8-14V11L10.34,5.42A11.9,11.9,0,0,1,20,4.7Zm-11.52,2L14,9.85,4,15.62A12,12,0,0,1,8.48,6.66ZM4.16,17.85,10,14.47V26.38A12,12,0,0,1,4.16,17.85ZM12,27.3V21l9.67,5.58A11.92,11.92,0,0,1,16,28,12.05,12.05,0,0,1,12,27.3Zm11.52-2L18,22.14l10-5.77A12,12,0,0,1,23.52,25.34Z\"\n })), children);\n});\nvar Aperture20 = /*#__PURE__*/React.forwardRef(function Aperture20(_ref25, ref) {\n var children = _ref25.children,\n rest = _objectWithoutProperties(_ref25, _excluded25);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path47 || (_path47 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM27.84,14.14,22,17.52V5.62A12,12,0,0,1,27.84,14.14ZM12,18.68V13.32L16,11l4,2.31v5.36L16,21Zm8-14V11L10.34,5.42A11.9,11.9,0,0,1,20,4.7Zm-11.52,2L14,9.85,4,15.62A12,12,0,0,1,8.48,6.66ZM4.16,17.85,10,14.47V26.38A12,12,0,0,1,4.16,17.85ZM12,27.3V21l9.67,5.58A11.92,11.92,0,0,1,16,28,12.05,12.05,0,0,1,12,27.3Zm11.52-2L18,22.14l10-5.77A12,12,0,0,1,23.52,25.34Z\"\n })), children);\n});\nvar Aperture16 = /*#__PURE__*/React.forwardRef(function Aperture16(_ref26, ref) {\n var children = _ref26.children,\n rest = _objectWithoutProperties(_ref26, _excluded26);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path48 || (_path48 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM27.84,14.14,22,17.52V5.62A12,12,0,0,1,27.84,14.14ZM12,18.68V13.32L16,11l4,2.31v5.36L16,21Zm8-14V11L10.34,5.42A11.9,11.9,0,0,1,20,4.7Zm-11.52,2L14,9.85,4,15.62A12,12,0,0,1,8.48,6.66ZM4.16,17.85,10,14.47V26.38A12,12,0,0,1,4.16,17.85ZM12,27.3V21l9.67,5.58A11.92,11.92,0,0,1,16,28,12.05,12.05,0,0,1,12,27.3Zm11.52-2L18,22.14l10-5.77A12,12,0,0,1,23.52,25.34Z\"\n })), children);\n});\nvar Api32 = /*#__PURE__*/React.forwardRef(function Api32(_ref27, ref) {\n var children = _ref27.children,\n rest = _objectWithoutProperties(_ref27, _excluded27);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path49 || (_path49 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,22a3.86,3.86,0,0,0-2,.57l-3.09-3.1a6,6,0,0,0,0-6.94L24,9.43A3.86,3.86,0,0,0,26,10a4,4,0,1,0-4-4,3.86,3.86,0,0,0,.57,2l-3.1,3.09a6,6,0,0,0-6.94,0L9.43,8A3.86,3.86,0,0,0,10,6a4,4,0,1,0-4,4,3.86,3.86,0,0,0,2-.57l3.09,3.1a6,6,0,0,0,0,6.94L8,22.57A3.86,3.86,0,0,0,6,22a4,4,0,1,0,4,4,3.86,3.86,0,0,0-.57-2l3.1-3.09a6,6,0,0,0,6.94,0L22.57,24A3.86,3.86,0,0,0,22,26a4,4,0,1,0,4-4ZM26,4a2,2,0,1,1-2,2A2,2,0,0,1,26,4ZM4,6A2,2,0,1,1,6,8,2,2,0,0,1,4,6ZM6,28a2,2,0,1,1,2-2A2,2,0,0,1,6,28Zm10-8a4,4,0,1,1,4-4A4,4,0,0,1,16,20Zm10,8a2,2,0,1,1,2-2A2,2,0,0,1,26,28Z\"\n })), children);\n});\nvar Api24 = /*#__PURE__*/React.forwardRef(function Api24(_ref28, ref) {\n var children = _ref28.children,\n rest = _objectWithoutProperties(_ref28, _excluded28);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path50 || (_path50 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,22a3.86,3.86,0,0,0-2,.57l-3.09-3.1a6,6,0,0,0,0-6.94L24,9.43A3.86,3.86,0,0,0,26,10a4,4,0,1,0-4-4,3.86,3.86,0,0,0,.57,2l-3.1,3.09a6,6,0,0,0-6.94,0L9.43,8A3.86,3.86,0,0,0,10,6a4,4,0,1,0-4,4,3.86,3.86,0,0,0,2-.57l3.09,3.1a6,6,0,0,0,0,6.94L8,22.57A3.86,3.86,0,0,0,6,22a4,4,0,1,0,4,4,3.86,3.86,0,0,0-.57-2l3.1-3.09a6,6,0,0,0,6.94,0L22.57,24A3.86,3.86,0,0,0,22,26a4,4,0,1,0,4-4ZM26,4a2,2,0,1,1-2,2A2,2,0,0,1,26,4ZM4,6A2,2,0,1,1,6,8,2,2,0,0,1,4,6ZM6,28a2,2,0,1,1,2-2A2,2,0,0,1,6,28Zm10-8a4,4,0,1,1,4-4A4,4,0,0,1,16,20Zm10,8a2,2,0,1,1,2-2A2,2,0,0,1,26,28Z\"\n })), children);\n});\nvar Api20 = /*#__PURE__*/React.forwardRef(function Api20(_ref29, ref) {\n var children = _ref29.children,\n rest = _objectWithoutProperties(_ref29, _excluded29);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path51 || (_path51 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,22a3.86,3.86,0,0,0-2,.57l-3.09-3.1a6,6,0,0,0,0-6.94L24,9.43A3.86,3.86,0,0,0,26,10a4,4,0,1,0-4-4,3.86,3.86,0,0,0,.57,2l-3.1,3.09a6,6,0,0,0-6.94,0L9.43,8A3.86,3.86,0,0,0,10,6a4,4,0,1,0-4,4,3.86,3.86,0,0,0,2-.57l3.09,3.1a6,6,0,0,0,0,6.94L8,22.57A3.86,3.86,0,0,0,6,22a4,4,0,1,0,4,4,3.86,3.86,0,0,0-.57-2l3.1-3.09a6,6,0,0,0,6.94,0L22.57,24A3.86,3.86,0,0,0,22,26a4,4,0,1,0,4-4ZM26,4a2,2,0,1,1-2,2A2,2,0,0,1,26,4ZM4,6A2,2,0,1,1,6,8,2,2,0,0,1,4,6ZM6,28a2,2,0,1,1,2-2A2,2,0,0,1,6,28Zm10-8a4,4,0,1,1,4-4A4,4,0,0,1,16,20Zm10,8a2,2,0,1,1,2-2A2,2,0,0,1,26,28Z\"\n })), children);\n});\nvar Api16 = /*#__PURE__*/React.forwardRef(function Api16(_ref30, ref) {\n var children = _ref30.children,\n rest = _objectWithoutProperties(_ref30, _excluded30);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path52 || (_path52 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,22a3.86,3.86,0,0,0-2,.57l-3.09-3.1a6,6,0,0,0,0-6.94L24,9.43A3.86,3.86,0,0,0,26,10a4,4,0,1,0-4-4,3.86,3.86,0,0,0,.57,2l-3.1,3.09a6,6,0,0,0-6.94,0L9.43,8A3.86,3.86,0,0,0,10,6a4,4,0,1,0-4,4,3.86,3.86,0,0,0,2-.57l3.09,3.1a6,6,0,0,0,0,6.94L8,22.57A3.86,3.86,0,0,0,6,22a4,4,0,1,0,4,4,3.86,3.86,0,0,0-.57-2l3.1-3.09a6,6,0,0,0,6.94,0L22.57,24A3.86,3.86,0,0,0,22,26a4,4,0,1,0,4-4ZM26,4a2,2,0,1,1-2,2A2,2,0,0,1,26,4ZM4,6A2,2,0,1,1,6,8,2,2,0,0,1,4,6ZM6,28a2,2,0,1,1,2-2A2,2,0,0,1,6,28Zm10-8a4,4,0,1,1,4-4A4,4,0,0,1,16,20Zm10,8a2,2,0,1,1,2-2A2,2,0,0,1,26,28Z\"\n })), children);\n});\nvar Api_132 = /*#__PURE__*/React.forwardRef(function Api_132(_ref31, ref) {\n var children = _ref31.children,\n rest = _objectWithoutProperties(_ref31, _excluded31);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path53 || (_path53 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 9H4a2 2 0 00-2 2V23H4V18H8v5h2V11A2 2 0 008 9zM4 16V11H8v5zM22 11L25 11 25 21 22 21 22 23 30 23 30 21 27 21 27 11 30 11 30 9 22 9 22 11zM14 23H12V9h6a2 2 0 012 2v5a2 2 0 01-2 2H14zm0-7h4V11H14z\"\n })), children);\n});\nvar Api_124 = /*#__PURE__*/React.forwardRef(function Api_124(_ref32, ref) {\n var children = _ref32.children,\n rest = _objectWithoutProperties(_ref32, _excluded32);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path54 || (_path54 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 9H4a2 2 0 00-2 2V23H4V18H8v5h2V11A2 2 0 008 9zM4 16V11H8v5zM22 11L25 11 25 21 22 21 22 23 30 23 30 21 27 21 27 11 30 11 30 9 22 9 22 11zM14 23H12V9h6a2 2 0 012 2v5a2 2 0 01-2 2H14zm0-7h4V11H14z\"\n })), children);\n});\nvar Api_120 = /*#__PURE__*/React.forwardRef(function Api_120(_ref33, ref) {\n var children = _ref33.children,\n rest = _objectWithoutProperties(_ref33, _excluded33);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path55 || (_path55 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 9H4a2 2 0 00-2 2V23H4V18H8v5h2V11A2 2 0 008 9zM4 16V11H8v5zM22 11L25 11 25 21 22 21 22 23 30 23 30 21 27 21 27 11 30 11 30 9 22 9 22 11zM14 23H12V9h6a2 2 0 012 2v5a2 2 0 01-2 2H14zm0-7h4V11H14z\"\n })), children);\n});\nvar Api_116 = /*#__PURE__*/React.forwardRef(function Api_116(_ref34, ref) {\n var children = _ref34.children,\n rest = _objectWithoutProperties(_ref34, _excluded34);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path56 || (_path56 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 9H4a2 2 0 00-2 2V23H4V18H8v5h2V11A2 2 0 008 9zM4 16V11H8v5zM22 11L25 11 25 21 22 21 22 23 30 23 30 21 27 21 27 11 30 11 30 9 22 9 22 11zM14 23H12V9h6a2 2 0 012 2v5a2 2 0 01-2 2H14zm0-7h4V11H14z\"\n })), children);\n});\nvar App32 = /*#__PURE__*/React.forwardRef(function App32(_ref35, ref) {\n var children = _ref35.children,\n rest = _objectWithoutProperties(_ref35, _excluded35);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path57 || (_path57 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 10H22V24h2V20h4a2.0027 2.0027 0 002-2V12A2.0023 2.0023 0 0028 10zm-4 8V12h4v6zM18 10H12V24h2V20h4a2.0027 2.0027 0 002-2V12A2.0023 2.0023 0 0018 10zm-4 8V12h4v6zM8 10H3v2H8v2H4a2 2 0 00-2 2v2a2 2 0 002 2h6V12A2.0023 2.0023 0 008 10zm0 8H4V16H8z\"\n })), children);\n});\nvar App24 = /*#__PURE__*/React.forwardRef(function App24(_ref36, ref) {\n var children = _ref36.children,\n rest = _objectWithoutProperties(_ref36, _excluded36);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path58 || (_path58 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 10H22V24h2V20h4a2.0027 2.0027 0 002-2V12A2.0023 2.0023 0 0028 10zm-4 8V12h4v6zM18 10H12V24h2V20h4a2.0027 2.0027 0 002-2V12A2.0023 2.0023 0 0018 10zm-4 8V12h4v6zM8 10H3v2H8v2H4a2 2 0 00-2 2v2a2 2 0 002 2h6V12A2.0023 2.0023 0 008 10zm0 8H4V16H8z\"\n })), children);\n});\nvar App20 = /*#__PURE__*/React.forwardRef(function App20(_ref37, ref) {\n var children = _ref37.children,\n rest = _objectWithoutProperties(_ref37, _excluded37);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path59 || (_path59 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 10H22V24h2V20h4a2.0027 2.0027 0 002-2V12A2.0023 2.0023 0 0028 10zm-4 8V12h4v6zM18 10H12V24h2V20h4a2.0027 2.0027 0 002-2V12A2.0023 2.0023 0 0018 10zm-4 8V12h4v6zM8 10H3v2H8v2H4a2 2 0 00-2 2v2a2 2 0 002 2h6V12A2.0023 2.0023 0 008 10zm0 8H4V16H8z\"\n })), children);\n});\nvar App16 = /*#__PURE__*/React.forwardRef(function App16(_ref38, ref) {\n var children = _ref38.children,\n rest = _objectWithoutProperties(_ref38, _excluded38);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path60 || (_path60 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 10H22V24h2V20h4a2.0027 2.0027 0 002-2V12A2.0023 2.0023 0 0028 10zm-4 8V12h4v6zM18 10H12V24h2V20h4a2.0027 2.0027 0 002-2V12A2.0023 2.0023 0 0018 10zm-4 8V12h4v6zM8 10H3v2H8v2H4a2 2 0 00-2 2v2a2 2 0 002 2h6V12A2.0023 2.0023 0 008 10zm0 8H4V16H8z\"\n })), children);\n});\nvar AppConnectivity32 = /*#__PURE__*/React.forwardRef(function AppConnectivity32(_ref39, ref) {\n var children = _ref39.children,\n rest = _objectWithoutProperties(_ref39, _excluded39);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path61 || (_path61 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,14h8a2.0023,2.0023,0,0,0,2-2V4a2.0023,2.0023,0,0,0-2-2H20a2.0023,2.0023,0,0,0-2,2H9A2.0023,2.0023,0,0,0,7,6v4H4a2.0023,2.0023,0,0,0-2,2v8a2.0023,2.0023,0,0,0,2,2H6v4a2.0023,2.0023,0,0,0,2,2H18a2.0023,2.0023,0,0,0,2,2h8a2.0023,2.0023,0,0,0,2-2V20a2.0023,2.0023,0,0,0-2-2H20a2.0023,2.0023,0,0,0-2,2v6H8V22h4a2.0023,2.0023,0,0,0,2-2V12a2.0023,2.0023,0,0,0-2-2H9V6h9v6A2.0023,2.0023,0,0,0,20,14Zm0,14V24h8v4Zm8-8,0,2H20V20ZM4,20V16h8v4Zm8.0005-6H4V12h8ZM20,12V8h8v4Zm8-8,0,2H20V4Z\"\n })), children);\n});\nvar AppConnectivity24 = /*#__PURE__*/React.forwardRef(function AppConnectivity24(_ref40, ref) {\n var children = _ref40.children,\n rest = _objectWithoutProperties(_ref40, _excluded40);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path62 || (_path62 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,14h8a2.0023,2.0023,0,0,0,2-2V4a2.0023,2.0023,0,0,0-2-2H20a2.0023,2.0023,0,0,0-2,2H9A2.0023,2.0023,0,0,0,7,6v4H4a2.0023,2.0023,0,0,0-2,2v8a2.0023,2.0023,0,0,0,2,2H6v4a2.0023,2.0023,0,0,0,2,2H18a2.0023,2.0023,0,0,0,2,2h8a2.0023,2.0023,0,0,0,2-2V20a2.0023,2.0023,0,0,0-2-2H20a2.0023,2.0023,0,0,0-2,2v6H8V22h4a2.0023,2.0023,0,0,0,2-2V12a2.0023,2.0023,0,0,0-2-2H9V6h9v6A2.0023,2.0023,0,0,0,20,14Zm0,14V24h8v4Zm8-8,0,2H20V20ZM4,20V16h8v4Zm8.0005-6H4V12h8ZM20,12V8h8v4Zm8-8,0,2H20V4Z\"\n })), children);\n});\nvar AppConnectivity20 = /*#__PURE__*/React.forwardRef(function AppConnectivity20(_ref41, ref) {\n var children = _ref41.children,\n rest = _objectWithoutProperties(_ref41, _excluded41);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path63 || (_path63 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,14h8a2.0023,2.0023,0,0,0,2-2V4a2.0023,2.0023,0,0,0-2-2H20a2.0023,2.0023,0,0,0-2,2H9A2.0023,2.0023,0,0,0,7,6v4H4a2.0023,2.0023,0,0,0-2,2v8a2.0023,2.0023,0,0,0,2,2H6v4a2.0023,2.0023,0,0,0,2,2H18a2.0023,2.0023,0,0,0,2,2h8a2.0023,2.0023,0,0,0,2-2V20a2.0023,2.0023,0,0,0-2-2H20a2.0023,2.0023,0,0,0-2,2v6H8V22h4a2.0023,2.0023,0,0,0,2-2V12a2.0023,2.0023,0,0,0-2-2H9V6h9v6A2.0023,2.0023,0,0,0,20,14Zm0,14V24h8v4Zm8-8,0,2H20V20ZM4,20V16h8v4Zm8.0005-6H4V12h8ZM20,12V8h8v4Zm8-8,0,2H20V4Z\"\n })), children);\n});\nvar AppConnectivity16 = /*#__PURE__*/React.forwardRef(function AppConnectivity16(_ref42, ref) {\n var children = _ref42.children,\n rest = _objectWithoutProperties(_ref42, _excluded42);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path64 || (_path64 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,14h8a2.0023,2.0023,0,0,0,2-2V4a2.0023,2.0023,0,0,0-2-2H20a2.0023,2.0023,0,0,0-2,2H9A2.0023,2.0023,0,0,0,7,6v4H4a2.0023,2.0023,0,0,0-2,2v8a2.0023,2.0023,0,0,0,2,2H6v4a2.0023,2.0023,0,0,0,2,2H18a2.0023,2.0023,0,0,0,2,2h8a2.0023,2.0023,0,0,0,2-2V20a2.0023,2.0023,0,0,0-2-2H20a2.0023,2.0023,0,0,0-2,2v6H8V22h4a2.0023,2.0023,0,0,0,2-2V12a2.0023,2.0023,0,0,0-2-2H9V6h9v6A2.0023,2.0023,0,0,0,20,14Zm0,14V24h8v4Zm8-8,0,2H20V20ZM4,20V16h8v4Zm8.0005-6H4V12h8ZM20,12V8h8v4Zm8-8,0,2H20V4Z\"\n })), children);\n});\nvar AppSwitcher32 = /*#__PURE__*/React.forwardRef(function AppSwitcher32(_ref43, ref) {\n var children = _ref43.children,\n rest = _objectWithoutProperties(_ref43, _excluded43);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['AppSwitcher32']) {\n didWarnAboutDeprecation['AppSwitcher32'] = true;\n console.warn(\"The AppSwitcher32 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path65 || (_path65 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14 4H18V8H14zM4 4H8V8H4zM24 4H28V8H24zM14 14H18V18H14zM4 14H8V18H4zM24 14H28V18H24zM14 24H18V28H14zM4 24H8V28H4zM24 24H28V28H24z\"\n })), children);\n});\nvar AppSwitcher24 = /*#__PURE__*/React.forwardRef(function AppSwitcher24(_ref44, ref) {\n var children = _ref44.children,\n rest = _objectWithoutProperties(_ref44, _excluded44);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['AppSwitcher24']) {\n didWarnAboutDeprecation['AppSwitcher24'] = true;\n console.warn(\"The AppSwitcher24 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path66 || (_path66 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14 4H18V8H14zM4 4H8V8H4zM24 4H28V8H24zM14 14H18V18H14zM4 14H8V18H4zM24 14H28V18H24zM14 24H18V28H14zM4 24H8V28H4zM24 24H28V28H24z\"\n })), children);\n});\nvar AppSwitcher20 = /*#__PURE__*/React.forwardRef(function AppSwitcher20(_ref45, ref) {\n var children = _ref45.children,\n rest = _objectWithoutProperties(_ref45, _excluded45);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['AppSwitcher20']) {\n didWarnAboutDeprecation['AppSwitcher20'] = true;\n console.warn(\"The AppSwitcher20 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path67 || (_path67 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14 4H18V8H14zM4 4H8V8H4zM24 4H28V8H24zM14 14H18V18H14zM4 14H8V18H4zM24 14H28V18H24zM14 24H18V28H14zM4 24H8V28H4zM24 24H28V28H24z\"\n })), children);\n});\nvar AppSwitcher16 = /*#__PURE__*/React.forwardRef(function AppSwitcher16(_ref46, ref) {\n var children = _ref46.children,\n rest = _objectWithoutProperties(_ref46, _excluded46);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['AppSwitcher16']) {\n didWarnAboutDeprecation['AppSwitcher16'] = true;\n console.warn(\"The AppSwitcher16 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path68 || (_path68 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14 4H18V8H14zM4 4H8V8H4zM24 4H28V8H24zM14 14H18V18H14zM4 14H8V18H4zM24 14H28V18H24zM14 24H18V28H14zM4 24H8V28H4zM24 24H28V28H24z\"\n })), children);\n});\nvar Apple32 = /*#__PURE__*/React.forwardRef(function Apple32(_ref47, ref) {\n var children = _ref47.children,\n rest = _objectWithoutProperties(_ref47, _excluded47);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path69 || (_path69 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.7788,8a11.4843,11.4843,0,0,0-3.0547.5342,14.5665,14.5665,0,0,1-1.8225.4126A6.0054,6.0054,0,0,0,11,4V6a3.9933,3.9933,0,0,1,3.8267,2.9c-.5181-.0879-1.0569-.2207-1.6172-.3648A12.89,12.89,0,0,0,10.0317,8C6.311,8,4,11.0652,4,16c0,7.51,4.0679,11.999,8.0005,12h.0015a7.1576,7.1576,0,0,0,2.49-.59A5.0128,5.0128,0,0,1,16,27a5.0266,5.0266,0,0,1,1.5112.41A7.15,7.15,0,0,0,20,28h0c3.9307-.001,8-4.49,8-12C28,12.3094,26.3706,8,21.7788,8ZM20,26h0a5.5038,5.5038,0,0,1-1.7905-.4639A6.4168,6.4168,0,0,0,16,25a6.4043,6.4043,0,0,0-2.2061.5361A5.5343,5.5343,0,0,1,12,26h.0015C9.0513,25.9988,6,22.2586,6,16c0-1.8037.3931-6,4.0317-6a11.2363,11.2363,0,0,1,2.6807.4726A12.9819,12.9819,0,0,0,15.7612,11h.4922a11.7955,11.7955,0,0,0,2.9956-.5361A9.8483,9.8483,0,0,1,21.7788,10C25.7964,10,26,14.9978,26,16,26,22.2586,22.9482,25.9988,20,26Z\"\n })), _path70 || (_path70 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,7H17V6a2.0021,2.0021,0,0,1,2-2h1V5A2.0021,2.0021,0,0,1,18,7Z\"\n })), children);\n});\nvar Apple24 = /*#__PURE__*/React.forwardRef(function Apple24(_ref48, ref) {\n var children = _ref48.children,\n rest = _objectWithoutProperties(_ref48, _excluded48);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path71 || (_path71 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.7788,8a11.4843,11.4843,0,0,0-3.0547.5342,14.5665,14.5665,0,0,1-1.8225.4126A6.0054,6.0054,0,0,0,11,4V6a3.9933,3.9933,0,0,1,3.8267,2.9c-.5181-.0879-1.0569-.2207-1.6172-.3648A12.89,12.89,0,0,0,10.0317,8C6.311,8,4,11.0652,4,16c0,7.51,4.0679,11.999,8.0005,12h.0015a7.1576,7.1576,0,0,0,2.49-.59A5.0128,5.0128,0,0,1,16,27a5.0266,5.0266,0,0,1,1.5112.41A7.15,7.15,0,0,0,20,28h0c3.9307-.001,8-4.49,8-12C28,12.3094,26.3706,8,21.7788,8ZM20,26h0a5.5038,5.5038,0,0,1-1.7905-.4639A6.4168,6.4168,0,0,0,16,25a6.4043,6.4043,0,0,0-2.2061.5361A5.5343,5.5343,0,0,1,12,26h.0015C9.0513,25.9988,6,22.2586,6,16c0-1.8037.3931-6,4.0317-6a11.2363,11.2363,0,0,1,2.6807.4726A12.9819,12.9819,0,0,0,15.7612,11h.4922a11.7955,11.7955,0,0,0,2.9956-.5361A9.8483,9.8483,0,0,1,21.7788,10C25.7964,10,26,14.9978,26,16,26,22.2586,22.9482,25.9988,20,26Z\"\n })), _path72 || (_path72 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,7H17V6a2.0021,2.0021,0,0,1,2-2h1V5A2.0021,2.0021,0,0,1,18,7Z\"\n })), children);\n});\nvar Apple20 = /*#__PURE__*/React.forwardRef(function Apple20(_ref49, ref) {\n var children = _ref49.children,\n rest = _objectWithoutProperties(_ref49, _excluded49);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path73 || (_path73 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.7788,8a11.4843,11.4843,0,0,0-3.0547.5342,14.5665,14.5665,0,0,1-1.8225.4126A6.0054,6.0054,0,0,0,11,4V6a3.9933,3.9933,0,0,1,3.8267,2.9c-.5181-.0879-1.0569-.2207-1.6172-.3648A12.89,12.89,0,0,0,10.0317,8C6.311,8,4,11.0652,4,16c0,7.51,4.0679,11.999,8.0005,12h.0015a7.1576,7.1576,0,0,0,2.49-.59A5.0128,5.0128,0,0,1,16,27a5.0266,5.0266,0,0,1,1.5112.41A7.15,7.15,0,0,0,20,28h0c3.9307-.001,8-4.49,8-12C28,12.3094,26.3706,8,21.7788,8ZM20,26h0a5.5038,5.5038,0,0,1-1.7905-.4639A6.4168,6.4168,0,0,0,16,25a6.4043,6.4043,0,0,0-2.2061.5361A5.5343,5.5343,0,0,1,12,26h.0015C9.0513,25.9988,6,22.2586,6,16c0-1.8037.3931-6,4.0317-6a11.2363,11.2363,0,0,1,2.6807.4726A12.9819,12.9819,0,0,0,15.7612,11h.4922a11.7955,11.7955,0,0,0,2.9956-.5361A9.8483,9.8483,0,0,1,21.7788,10C25.7964,10,26,14.9978,26,16,26,22.2586,22.9482,25.9988,20,26Z\"\n })), _path74 || (_path74 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,7H17V6a2.0021,2.0021,0,0,1,2-2h1V5A2.0021,2.0021,0,0,1,18,7Z\"\n })), children);\n});\nvar Apple16 = /*#__PURE__*/React.forwardRef(function Apple16(_ref50, ref) {\n var children = _ref50.children,\n rest = _objectWithoutProperties(_ref50, _excluded50);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path75 || (_path75 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.7788,8a11.4843,11.4843,0,0,0-3.0547.5342,14.5665,14.5665,0,0,1-1.8225.4126A6.0054,6.0054,0,0,0,11,4V6a3.9933,3.9933,0,0,1,3.8267,2.9c-.5181-.0879-1.0569-.2207-1.6172-.3648A12.89,12.89,0,0,0,10.0317,8C6.311,8,4,11.0652,4,16c0,7.51,4.0679,11.999,8.0005,12h.0015a7.1576,7.1576,0,0,0,2.49-.59A5.0128,5.0128,0,0,1,16,27a5.0266,5.0266,0,0,1,1.5112.41A7.15,7.15,0,0,0,20,28h0c3.9307-.001,8-4.49,8-12C28,12.3094,26.3706,8,21.7788,8ZM20,26h0a5.5038,5.5038,0,0,1-1.7905-.4639A6.4168,6.4168,0,0,0,16,25a6.4043,6.4043,0,0,0-2.2061.5361A5.5343,5.5343,0,0,1,12,26h.0015C9.0513,25.9988,6,22.2586,6,16c0-1.8037.3931-6,4.0317-6a11.2363,11.2363,0,0,1,2.6807.4726A12.9819,12.9819,0,0,0,15.7612,11h.4922a11.7955,11.7955,0,0,0,2.9956-.5361A9.8483,9.8483,0,0,1,21.7788,10C25.7964,10,26,14.9978,26,16,26,22.2586,22.9482,25.9988,20,26Z\"\n })), _path76 || (_path76 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,7H17V6a2.0021,2.0021,0,0,1,2-2h1V5A2.0021,2.0021,0,0,1,18,7Z\"\n })), children);\n});\nvar Application32 = /*#__PURE__*/React.forwardRef(function Application32(_ref51, ref) {\n var children = _ref51.children,\n rest = _objectWithoutProperties(_ref51, _excluded51);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path77 || (_path77 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 18H6a2 2 0 01-2-2V6A2 2 0 016 4H16a2 2 0 012 2V16A2 2 0 0116 18zM6 6V16H16V6zM26 12v4H22V12h4m0-2H22a2 2 0 00-2 2v4a2 2 0 002 2h4a2 2 0 002-2V12a2 2 0 00-2-2zM26 22v4H22V22h4m0-2H22a2 2 0 00-2 2v4a2 2 0 002 2h4a2 2 0 002-2V22a2 2 0 00-2-2zM16 22v4H12V22h4m0-2H12a2 2 0 00-2 2v4a2 2 0 002 2h4a2 2 0 002-2V22a2 2 0 00-2-2z\"\n })), children);\n});\nvar Application24 = /*#__PURE__*/React.forwardRef(function Application24(_ref52, ref) {\n var children = _ref52.children,\n rest = _objectWithoutProperties(_ref52, _excluded52);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path78 || (_path78 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 18H6a2 2 0 01-2-2V6A2 2 0 016 4H16a2 2 0 012 2V16A2 2 0 0116 18zM6 6V16H16V6zM26 12v4H22V12h4m0-2H22a2 2 0 00-2 2v4a2 2 0 002 2h4a2 2 0 002-2V12a2 2 0 00-2-2zM26 22v4H22V22h4m0-2H22a2 2 0 00-2 2v4a2 2 0 002 2h4a2 2 0 002-2V22a2 2 0 00-2-2zM16 22v4H12V22h4m0-2H12a2 2 0 00-2 2v4a2 2 0 002 2h4a2 2 0 002-2V22a2 2 0 00-2-2z\"\n })), children);\n});\nvar Application20 = /*#__PURE__*/React.forwardRef(function Application20(_ref53, ref) {\n var children = _ref53.children,\n rest = _objectWithoutProperties(_ref53, _excluded53);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path79 || (_path79 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 18H6a2 2 0 01-2-2V6A2 2 0 016 4H16a2 2 0 012 2V16A2 2 0 0116 18zM6 6V16H16V6zM26 12v4H22V12h4m0-2H22a2 2 0 00-2 2v4a2 2 0 002 2h4a2 2 0 002-2V12a2 2 0 00-2-2zM26 22v4H22V22h4m0-2H22a2 2 0 00-2 2v4a2 2 0 002 2h4a2 2 0 002-2V22a2 2 0 00-2-2zM16 22v4H12V22h4m0-2H12a2 2 0 00-2 2v4a2 2 0 002 2h4a2 2 0 002-2V22a2 2 0 00-2-2z\"\n })), children);\n});\nvar Application16 = /*#__PURE__*/React.forwardRef(function Application16(_ref54, ref) {\n var children = _ref54.children,\n rest = _objectWithoutProperties(_ref54, _excluded54);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path80 || (_path80 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 18H6a2 2 0 01-2-2V6A2 2 0 016 4H16a2 2 0 012 2V16A2 2 0 0116 18zM6 6V16H16V6zM26 12v4H22V12h4m0-2H22a2 2 0 00-2 2v4a2 2 0 002 2h4a2 2 0 002-2V12a2 2 0 00-2-2zM26 22v4H22V22h4m0-2H22a2 2 0 00-2 2v4a2 2 0 002 2h4a2 2 0 002-2V22a2 2 0 00-2-2zM16 22v4H12V22h4m0-2H12a2 2 0 00-2 2v4a2 2 0 002 2h4a2 2 0 002-2V22a2 2 0 00-2-2z\"\n })), children);\n});\nvar ApplicationMobile32 = /*#__PURE__*/React.forwardRef(function ApplicationMobile32(_ref55, ref) {\n var children = _ref55.children,\n rest = _objectWithoutProperties(_ref55, _excluded55);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path81 || (_path81 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 7H27V11H23zM23 13H27V17H23zM17 7H21V11H17zM17 13H21V17H17z\"\n })), _circle || (_circle = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"14.5\",\n cy: \"24.5\",\n r: \"1.5\"\n })), _path82 || (_path82 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21,30H8a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,8,2H21V4H8V28H21V20h2v8A2.0023,2.0023,0,0,1,21,30Z\"\n })), children);\n});\nvar ApplicationMobile24 = /*#__PURE__*/React.forwardRef(function ApplicationMobile24(_ref56, ref) {\n var children = _ref56.children,\n rest = _objectWithoutProperties(_ref56, _excluded56);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path83 || (_path83 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 7H27V11H23zM23 13H27V17H23zM17 7H21V11H17zM17 13H21V17H17z\"\n })), _circle2 || (_circle2 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"14.5\",\n cy: \"24.5\",\n r: \"1.5\"\n })), _path84 || (_path84 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21,30H8a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,8,2H21V4H8V28H21V20h2v8A2.0023,2.0023,0,0,1,21,30Z\"\n })), children);\n});\nvar ApplicationMobile20 = /*#__PURE__*/React.forwardRef(function ApplicationMobile20(_ref57, ref) {\n var children = _ref57.children,\n rest = _objectWithoutProperties(_ref57, _excluded57);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path85 || (_path85 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 7H27V11H23zM23 13H27V17H23zM17 7H21V11H17zM17 13H21V17H17z\"\n })), _circle3 || (_circle3 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"14.5\",\n cy: \"24.5\",\n r: \"1.5\"\n })), _path86 || (_path86 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21,30H8a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,8,2H21V4H8V28H21V20h2v8A2.0023,2.0023,0,0,1,21,30Z\"\n })), children);\n});\nvar ApplicationMobile16 = /*#__PURE__*/React.forwardRef(function ApplicationMobile16(_ref58, ref) {\n var children = _ref58.children,\n rest = _objectWithoutProperties(_ref58, _excluded58);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path87 || (_path87 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 7H27V11H23zM23 13H27V17H23zM17 7H21V11H17zM17 13H21V17H17z\"\n })), _circle4 || (_circle4 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"14.5\",\n cy: \"24.5\",\n r: \"1.5\"\n })), _path88 || (_path88 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21,30H8a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,8,2H21V4H8V28H21V20h2v8A2.0023,2.0023,0,0,1,21,30Z\"\n })), children);\n});\nvar ApplicationVirtual32 = /*#__PURE__*/React.forwardRef(function ApplicationVirtual32(_ref59, ref) {\n var children = _ref59.children,\n rest = _objectWithoutProperties(_ref59, _excluded59);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path89 || (_path89 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 19H21V23H17zM11 19H15V23H11zM17 25H21V29H17zM11 25H15V29H11z\"\n })), _path90 || (_path90 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5,25H24V23h.5a5.4961,5.4961,0,0,0,.377-10.9795l-.8365-.0566-.09-.834a7.9979,7.9979,0,0,0-15.9014,0l-.09.834-.8365.0566A5.4961,5.4961,0,0,0,7.5,23H8v2H7.5A7.4964,7.4964,0,0,1,6.1782,10.124a9.9992,9.9992,0,0,1,19.6436,0A7.4964,7.4964,0,0,1,24.5,25Z\"\n })), children);\n});\nvar ApplicationVirtual24 = /*#__PURE__*/React.forwardRef(function ApplicationVirtual24(_ref60, ref) {\n var children = _ref60.children,\n rest = _objectWithoutProperties(_ref60, _excluded60);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path91 || (_path91 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 19H21V23H17zM11 19H15V23H11zM17 25H21V29H17zM11 25H15V29H11z\"\n })), _path92 || (_path92 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5,25H24V23h.5a5.4961,5.4961,0,0,0,.377-10.9795l-.8365-.0566-.09-.834a7.9979,7.9979,0,0,0-15.9014,0l-.09.834-.8365.0566A5.4961,5.4961,0,0,0,7.5,23H8v2H7.5A7.4964,7.4964,0,0,1,6.1782,10.124a9.9992,9.9992,0,0,1,19.6436,0A7.4964,7.4964,0,0,1,24.5,25Z\"\n })), children);\n});\nvar ApplicationVirtual20 = /*#__PURE__*/React.forwardRef(function ApplicationVirtual20(_ref61, ref) {\n var children = _ref61.children,\n rest = _objectWithoutProperties(_ref61, _excluded61);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path93 || (_path93 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 19H21V23H17zM11 19H15V23H11zM17 25H21V29H17zM11 25H15V29H11z\"\n })), _path94 || (_path94 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5,25H24V23h.5a5.4961,5.4961,0,0,0,.377-10.9795l-.8365-.0566-.09-.834a7.9979,7.9979,0,0,0-15.9014,0l-.09.834-.8365.0566A5.4961,5.4961,0,0,0,7.5,23H8v2H7.5A7.4964,7.4964,0,0,1,6.1782,10.124a9.9992,9.9992,0,0,1,19.6436,0A7.4964,7.4964,0,0,1,24.5,25Z\"\n })), children);\n});\nvar ApplicationVirtual16 = /*#__PURE__*/React.forwardRef(function ApplicationVirtual16(_ref62, ref) {\n var children = _ref62.children,\n rest = _objectWithoutProperties(_ref62, _excluded62);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path95 || (_path95 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 19H21V23H17zM11 19H15V23H11zM17 25H21V29H17zM11 25H15V29H11z\"\n })), _path96 || (_path96 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5,25H24V23h.5a5.4961,5.4961,0,0,0,.377-10.9795l-.8365-.0566-.09-.834a7.9979,7.9979,0,0,0-15.9014,0l-.09.834-.8365.0566A5.4961,5.4961,0,0,0,7.5,23H8v2H7.5A7.4964,7.4964,0,0,1,6.1782,10.124a9.9992,9.9992,0,0,1,19.6436,0A7.4964,7.4964,0,0,1,24.5,25Z\"\n })), children);\n});\nvar ApplicationWeb32 = /*#__PURE__*/React.forwardRef(function ApplicationWeb32(_ref63, ref) {\n var children = _ref63.children,\n rest = _objectWithoutProperties(_ref63, _excluded63);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path97 || (_path97 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 2H30V6H26zM26 8H30V12H26zM20 2H24V6H20zM20 8H24V12H20z\"\n })), _path98 || (_path98 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,16v6H4V6H16V4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V16ZM18,28H14V24h4Z\"\n })), children);\n});\nvar ApplicationWeb24 = /*#__PURE__*/React.forwardRef(function ApplicationWeb24(_ref64, ref) {\n var children = _ref64.children,\n rest = _objectWithoutProperties(_ref64, _excluded64);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path99 || (_path99 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 2H30V6H26zM26 8H30V12H26zM20 2H24V6H20zM20 8H24V12H20z\"\n })), _path100 || (_path100 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,16v6H4V6H16V4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V16ZM18,28H14V24h4Z\"\n })), children);\n});\nvar ApplicationWeb20 = /*#__PURE__*/React.forwardRef(function ApplicationWeb20(_ref65, ref) {\n var children = _ref65.children,\n rest = _objectWithoutProperties(_ref65, _excluded65);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path101 || (_path101 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 2H30V6H26zM26 8H30V12H26zM20 2H24V6H20zM20 8H24V12H20z\"\n })), _path102 || (_path102 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,16v6H4V6H16V4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V16ZM18,28H14V24h4Z\"\n })), children);\n});\nvar ApplicationWeb16 = /*#__PURE__*/React.forwardRef(function ApplicationWeb16(_ref66, ref) {\n var children = _ref66.children,\n rest = _objectWithoutProperties(_ref66, _excluded66);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path103 || (_path103 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 2H30V6H26zM26 8H30V12H26zM20 2H24V6H20zM20 8H24V12H20z\"\n })), _path104 || (_path104 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,16v6H4V6H16V4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V16ZM18,28H14V24h4Z\"\n })), children);\n});\nvar Apps32 = /*#__PURE__*/React.forwardRef(function Apps32(_ref67, ref) {\n var children = _ref67.children,\n rest = _objectWithoutProperties(_ref67, _excluded67);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path105 || (_path105 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8,4V8H4V4Zm2-2H2v8h8Zm8,2V8H14V4Zm2-2H12v8h8Zm8,2V8H24V4Zm2-2H22v8h8ZM8,14v4H4V14Zm2-2H2v8h8Zm8,2v4H14V14Zm2-2H12v8h8Zm8,2v4H24V14Zm2-2H22v8h8ZM8,24v4H4V24Zm2-2H2v8h8Zm8,2v4H14V24Zm2-2H12v8h8Zm8,2v4H24V24Zm2-2H22v8h8Z\"\n })), children);\n});\nvar Apps24 = /*#__PURE__*/React.forwardRef(function Apps24(_ref68, ref) {\n var children = _ref68.children,\n rest = _objectWithoutProperties(_ref68, _excluded68);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path106 || (_path106 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8,4V8H4V4Zm2-2H2v8h8Zm8,2V8H14V4Zm2-2H12v8h8Zm8,2V8H24V4Zm2-2H22v8h8ZM8,14v4H4V14Zm2-2H2v8h8Zm8,2v4H14V14Zm2-2H12v8h8Zm8,2v4H24V14Zm2-2H22v8h8ZM8,24v4H4V24Zm2-2H2v8h8Zm8,2v4H14V24Zm2-2H12v8h8Zm8,2v4H24V24Zm2-2H22v8h8Z\"\n })), children);\n});\nvar Apps20 = /*#__PURE__*/React.forwardRef(function Apps20(_ref69, ref) {\n var children = _ref69.children,\n rest = _objectWithoutProperties(_ref69, _excluded69);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path107 || (_path107 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8,4V8H4V4Zm2-2H2v8h8Zm8,2V8H14V4Zm2-2H12v8h8Zm8,2V8H24V4Zm2-2H22v8h8ZM8,14v4H4V14Zm2-2H2v8h8Zm8,2v4H14V14Zm2-2H12v8h8Zm8,2v4H24V14Zm2-2H22v8h8ZM8,24v4H4V24Zm2-2H2v8h8Zm8,2v4H14V24Zm2-2H12v8h8Zm8,2v4H24V24Zm2-2H22v8h8Z\"\n })), children);\n});\nvar Apps16 = /*#__PURE__*/React.forwardRef(function Apps16(_ref70, ref) {\n var children = _ref70.children,\n rest = _objectWithoutProperties(_ref70, _excluded70);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path108 || (_path108 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 2v2H2V2h2zm1-1H1v4h4V1zM9 2v2H7V2h2zm1-1H6v4h4V1zM14 2v2h-2V2h2zm1-1h-4v4h4V1zM4 7v2H2V7h2zm1-1H1v4h4V6zM9 7v2H7V7h2zm1-1H6v4h4V6zM14 7v2h-2V7h2zm1-1h-4v4h4V6zM4 12v2H2v-2h2zm1-1H1v4h4v-4zM9 12v2H7v-2h2zm1-1H6v4h4v-4zM14 12v2h-2v-2h2zm1-1h-4v4h4v-4z\"\n })), children);\n});\nvar Archive32 = /*#__PURE__*/React.forwardRef(function Archive32(_ref71, ref) {\n var children = _ref71.children,\n rest = _objectWithoutProperties(_ref71, _excluded71);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path109 || (_path109 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14 19H18V21H14z\"\n })), _path110 || (_path110 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V2ZM24,28H8V16H24Zm0-14H8V10H24ZM8,8V4H24V8Z\"\n })), children);\n});\nvar Archive24 = /*#__PURE__*/React.forwardRef(function Archive24(_ref72, ref) {\n var children = _ref72.children,\n rest = _objectWithoutProperties(_ref72, _excluded72);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path111 || (_path111 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14 19H18V21H14z\"\n })), _path112 || (_path112 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V2ZM24,28H8V16H24Zm0-14H8V10H24ZM8,8V4H24V8Z\"\n })), children);\n});\nvar Archive20 = /*#__PURE__*/React.forwardRef(function Archive20(_ref73, ref) {\n var children = _ref73.children,\n rest = _objectWithoutProperties(_ref73, _excluded73);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path113 || (_path113 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14 19H18V21H14z\"\n })), _path114 || (_path114 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V2ZM24,28H8V16H24Zm0-14H8V10H24ZM8,8V4H24V8Z\"\n })), children);\n});\nvar Archive16 = /*#__PURE__*/React.forwardRef(function Archive16(_ref74, ref) {\n var children = _ref74.children,\n rest = _objectWithoutProperties(_ref74, _excluded74);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path115 || (_path115 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14 19H18V21H14z\"\n })), _path116 || (_path116 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V2ZM24,28H8V16H24Zm0-14H8V10H24ZM8,8V4H24V8Z\"\n })), children);\n});\nvar Area32 = /*#__PURE__*/React.forwardRef(function Area32(_ref75, ref) {\n var children = _ref75.children,\n rest = _objectWithoutProperties(_ref75, _excluded75);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path117 || (_path117 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27,22.142V9.858A3.9916,3.9916,0,1,0,22.142,5H9.858A3.9916,3.9916,0,1,0,5,9.858V22.142A3.9916,3.9916,0,1,0,9.858,27H22.142A3.9916,3.9916,0,1,0,27,22.142ZM26,4a2,2,0,1,1-2,2A2.0023,2.0023,0,0,1,26,4ZM4,6A2,2,0,1,1,6,8,2.002,2.002,0,0,1,4,6ZM6,28a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,6,28Zm16.142-3H9.858A3.9937,3.9937,0,0,0,7,22.142V9.858A3.9947,3.9947,0,0,0,9.858,7H22.142A3.9937,3.9937,0,0,0,25,9.858V22.142A3.9931,3.9931,0,0,0,22.142,25ZM26,28a2,2,0,1,1,2-2A2.0027,2.0027,0,0,1,26,28Z\"\n })), children);\n});\nvar Area24 = /*#__PURE__*/React.forwardRef(function Area24(_ref76, ref) {\n var children = _ref76.children,\n rest = _objectWithoutProperties(_ref76, _excluded76);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path118 || (_path118 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27,22.142V9.858A3.9916,3.9916,0,1,0,22.142,5H9.858A3.9916,3.9916,0,1,0,5,9.858V22.142A3.9916,3.9916,0,1,0,9.858,27H22.142A3.9916,3.9916,0,1,0,27,22.142ZM26,4a2,2,0,1,1-2,2A2.0023,2.0023,0,0,1,26,4ZM4,6A2,2,0,1,1,6,8,2.002,2.002,0,0,1,4,6ZM6,28a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,6,28Zm16.142-3H9.858A3.9937,3.9937,0,0,0,7,22.142V9.858A3.9947,3.9947,0,0,0,9.858,7H22.142A3.9937,3.9937,0,0,0,25,9.858V22.142A3.9931,3.9931,0,0,0,22.142,25ZM26,28a2,2,0,1,1,2-2A2.0027,2.0027,0,0,1,26,28Z\"\n })), children);\n});\nvar Area20 = /*#__PURE__*/React.forwardRef(function Area20(_ref77, ref) {\n var children = _ref77.children,\n rest = _objectWithoutProperties(_ref77, _excluded77);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path119 || (_path119 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27,22.142V9.858A3.9916,3.9916,0,1,0,22.142,5H9.858A3.9916,3.9916,0,1,0,5,9.858V22.142A3.9916,3.9916,0,1,0,9.858,27H22.142A3.9916,3.9916,0,1,0,27,22.142ZM26,4a2,2,0,1,1-2,2A2.0023,2.0023,0,0,1,26,4ZM4,6A2,2,0,1,1,6,8,2.002,2.002,0,0,1,4,6ZM6,28a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,6,28Zm16.142-3H9.858A3.9937,3.9937,0,0,0,7,22.142V9.858A3.9947,3.9947,0,0,0,9.858,7H22.142A3.9937,3.9937,0,0,0,25,9.858V22.142A3.9931,3.9931,0,0,0,22.142,25ZM26,28a2,2,0,1,1,2-2A2.0027,2.0027,0,0,1,26,28Z\"\n })), children);\n});\nvar Area16 = /*#__PURE__*/React.forwardRef(function Area16(_ref78, ref) {\n var children = _ref78.children,\n rest = _objectWithoutProperties(_ref78, _excluded78);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path120 || (_path120 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27,22.142V9.858A3.9916,3.9916,0,1,0,22.142,5H9.858A3.9916,3.9916,0,1,0,5,9.858V22.142A3.9916,3.9916,0,1,0,9.858,27H22.142A3.9916,3.9916,0,1,0,27,22.142ZM26,4a2,2,0,1,1-2,2A2.0023,2.0023,0,0,1,26,4ZM4,6A2,2,0,1,1,6,8,2.002,2.002,0,0,1,4,6ZM6,28a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,6,28Zm16.142-3H9.858A3.9937,3.9937,0,0,0,7,22.142V9.858A3.9947,3.9947,0,0,0,9.858,7H22.142A3.9937,3.9937,0,0,0,25,9.858V22.142A3.9931,3.9931,0,0,0,22.142,25ZM26,28a2,2,0,1,1,2-2A2.0027,2.0027,0,0,1,26,28Z\"\n })), children);\n});\nvar AreaCustom32 = /*#__PURE__*/React.forwardRef(function AreaCustom32(_ref79, ref) {\n var children = _ref79.children,\n rest = _objectWithoutProperties(_ref79, _excluded79);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path121 || (_path121 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,6a3.9916,3.9916,0,0,0-7.9773-.2241L9.5864,8.2627A3.99,3.99,0,1,0,5,13.8579v8.2842A3.9915,3.9915,0,1,0,9.8579,27h8.2842a3.9912,3.9912,0,1,0,5.595-4.5864l2.487-12.4361A3.9945,3.9945,0,0,0,30,6ZM26,4a2,2,0,1,1-2,2A2.0023,2.0023,0,0,1,26,4ZM4,10a2,2,0,1,1,2,2A2.0023,2.0023,0,0,1,4,10ZM6,28a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,6,28Zm12.1421-3H9.8579A3.9942,3.9942,0,0,0,7,22.1421V13.8579a3.9871,3.9871,0,0,0,2.9773-3.6338L22.4136,7.7373a4.0053,4.0053,0,0,0,1.8493,1.8491l-2.487,12.4361A3.9874,3.9874,0,0,0,18.1421,25ZM22,28a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,22,28Z\"\n })), children);\n});\nvar AreaCustom24 = /*#__PURE__*/React.forwardRef(function AreaCustom24(_ref80, ref) {\n var children = _ref80.children,\n rest = _objectWithoutProperties(_ref80, _excluded80);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path122 || (_path122 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,6a3.9916,3.9916,0,0,0-7.9773-.2241L9.5864,8.2627A3.99,3.99,0,1,0,5,13.8579v8.2842A3.9915,3.9915,0,1,0,9.8579,27h8.2842a3.9912,3.9912,0,1,0,5.595-4.5864l2.487-12.4361A3.9945,3.9945,0,0,0,30,6ZM26,4a2,2,0,1,1-2,2A2.0023,2.0023,0,0,1,26,4ZM4,10a2,2,0,1,1,2,2A2.0023,2.0023,0,0,1,4,10ZM6,28a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,6,28Zm12.1421-3H9.8579A3.9942,3.9942,0,0,0,7,22.1421V13.8579a3.9871,3.9871,0,0,0,2.9773-3.6338L22.4136,7.7373a4.0053,4.0053,0,0,0,1.8493,1.8491l-2.487,12.4361A3.9874,3.9874,0,0,0,18.1421,25ZM22,28a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,22,28Z\"\n })), children);\n});\nvar AreaCustom20 = /*#__PURE__*/React.forwardRef(function AreaCustom20(_ref81, ref) {\n var children = _ref81.children,\n rest = _objectWithoutProperties(_ref81, _excluded81);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path123 || (_path123 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,6a3.9916,3.9916,0,0,0-7.9773-.2241L9.5864,8.2627A3.99,3.99,0,1,0,5,13.8579v8.2842A3.9915,3.9915,0,1,0,9.8579,27h8.2842a3.9912,3.9912,0,1,0,5.595-4.5864l2.487-12.4361A3.9945,3.9945,0,0,0,30,6ZM26,4a2,2,0,1,1-2,2A2.0023,2.0023,0,0,1,26,4ZM4,10a2,2,0,1,1,2,2A2.0023,2.0023,0,0,1,4,10ZM6,28a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,6,28Zm12.1421-3H9.8579A3.9942,3.9942,0,0,0,7,22.1421V13.8579a3.9871,3.9871,0,0,0,2.9773-3.6338L22.4136,7.7373a4.0053,4.0053,0,0,0,1.8493,1.8491l-2.487,12.4361A3.9874,3.9874,0,0,0,18.1421,25ZM22,28a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,22,28Z\"\n })), children);\n});\nvar AreaCustom16 = /*#__PURE__*/React.forwardRef(function AreaCustom16(_ref82, ref) {\n var children = _ref82.children,\n rest = _objectWithoutProperties(_ref82, _excluded82);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path124 || (_path124 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,6a3.9916,3.9916,0,0,0-7.9773-.2241L9.5864,8.2627A3.99,3.99,0,1,0,5,13.8579v8.2842A3.9915,3.9915,0,1,0,9.8579,27h8.2842a3.9912,3.9912,0,1,0,5.595-4.5864l2.487-12.4361A3.9945,3.9945,0,0,0,30,6ZM26,4a2,2,0,1,1-2,2A2.0023,2.0023,0,0,1,26,4ZM4,10a2,2,0,1,1,2,2A2.0023,2.0023,0,0,1,4,10ZM6,28a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,6,28Zm12.1421-3H9.8579A3.9942,3.9942,0,0,0,7,22.1421V13.8579a3.9871,3.9871,0,0,0,2.9773-3.6338L22.4136,7.7373a4.0053,4.0053,0,0,0,1.8493,1.8491l-2.487,12.4361A3.9874,3.9874,0,0,0,18.1421,25ZM22,28a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,22,28Z\"\n })), children);\n});\nvar Arrival32 = /*#__PURE__*/React.forwardRef(function Arrival32(_ref83, ref) {\n var children = _ref83.children,\n rest = _objectWithoutProperties(_ref83, _excluded83);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path125 || (_path125 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 28H30V30H2zM17.21 5.23l1.39.38 1 11.29 5.87 1.57A2 2 0 0127 20.62a1.88 1.88 0 01-1.37 1.52 2 2 0 01-1 0l-18.7-5a1.89 1.89 0 01-1.33-2.3L6.35 8.34l1.44.38L8.4 13.9l6 1.62L17.21 5.23m-1-2.2a1 1 0 00-.68.69L13 13.07l-2.81-.75L9.69 7.79A1 1 0 009 7L5.87 6.14a.94.94 0 00-.5 0 1 1 0 00-.68.68l-2 7.49a3.87 3.87 0 002.74 4.74l18.71 5A3.87 3.87 0 0029 21a4 4 0 00-3-4.42l-4.52-1.21L20.53 4.71a1 1 0 00-.72-.85L16.73 3a1.06 1.06 0 00-.5 0z\"\n })), children);\n});\nvar Arrival24 = /*#__PURE__*/React.forwardRef(function Arrival24(_ref84, ref) {\n var children = _ref84.children,\n rest = _objectWithoutProperties(_ref84, _excluded84);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path126 || (_path126 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 28H30V30H2zM17.21 5.23l1.39.38 1 11.29 5.87 1.57A2 2 0 0127 20.62a1.88 1.88 0 01-1.37 1.52 2 2 0 01-1 0l-18.7-5a1.89 1.89 0 01-1.33-2.3L6.35 8.34l1.44.38L8.4 13.9l6 1.62L17.21 5.23m-1-2.2a1 1 0 00-.68.69L13 13.07l-2.81-.75L9.69 7.79A1 1 0 009 7L5.87 6.14a.94.94 0 00-.5 0 1 1 0 00-.68.68l-2 7.49a3.87 3.87 0 002.74 4.74l18.71 5A3.87 3.87 0 0029 21a4 4 0 00-3-4.42l-4.52-1.21L20.53 4.71a1 1 0 00-.72-.85L16.73 3a1.06 1.06 0 00-.5 0z\"\n })), children);\n});\nvar Arrival20 = /*#__PURE__*/React.forwardRef(function Arrival20(_ref85, ref) {\n var children = _ref85.children,\n rest = _objectWithoutProperties(_ref85, _excluded85);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path127 || (_path127 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 28H30V30H2zM17.21 5.23l1.39.38 1 11.29 5.87 1.57A2 2 0 0127 20.62a1.88 1.88 0 01-1.37 1.52 2 2 0 01-1 0l-18.7-5a1.89 1.89 0 01-1.33-2.3L6.35 8.34l1.44.38L8.4 13.9l6 1.62L17.21 5.23m-1-2.2a1 1 0 00-.68.69L13 13.07l-2.81-.75L9.69 7.79A1 1 0 009 7L5.87 6.14a.94.94 0 00-.5 0 1 1 0 00-.68.68l-2 7.49a3.87 3.87 0 002.74 4.74l18.71 5A3.87 3.87 0 0029 21a4 4 0 00-3-4.42l-4.52-1.21L20.53 4.71a1 1 0 00-.72-.85L16.73 3a1.06 1.06 0 00-.5 0z\"\n })), children);\n});\nvar Arrival16 = /*#__PURE__*/React.forwardRef(function Arrival16(_ref86, ref) {\n var children = _ref86.children,\n rest = _objectWithoutProperties(_ref86, _excluded86);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path128 || (_path128 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 28H30V30H2zM17.21 5.23l1.39.38 1 11.29 5.87 1.57A2 2 0 0127 20.62a1.88 1.88 0 01-1.37 1.52 2 2 0 01-1 0l-18.7-5a1.89 1.89 0 01-1.33-2.3L6.35 8.34l1.44.38L8.4 13.9l6 1.62L17.21 5.23m-1-2.2a1 1 0 00-.68.69L13 13.07l-2.81-.75L9.69 7.79A1 1 0 009 7L5.87 6.14a.94.94 0 00-.5 0 1 1 0 00-.68.68l-2 7.49a3.87 3.87 0 002.74 4.74l18.71 5A3.87 3.87 0 0029 21a4 4 0 00-3-4.42l-4.52-1.21L20.53 4.71a1 1 0 00-.72-.85L16.73 3a1.06 1.06 0 00-.5 0z\"\n })), children);\n});\nvar WatsonHealthArrowAnnotation32 = /*#__PURE__*/React.forwardRef(function WatsonHealthArrowAnnotation32(_ref87, ref) {\n var children = _ref87.children,\n rest = _objectWithoutProperties(_ref87, _excluded87);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path129 || (_path129 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13.71 12.29L7.42 6 14 6 14 4 4 4 4 13.99 6 14.01 6 7.41 12.29 13.7 13.71 12.29zM28 10H18v2H28V28H12V18H10V28a2 2 0 002 2H28a2 2 0 002-2V12A2 2 0 0028 10z\"\n })), _path130 || (_path130 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 25L21 25 21 18 24 18 24 16 16 16 16 18 19 18 19 25z\"\n })), children);\n});\nvar WatsonHealthArrowAnnotation24 = /*#__PURE__*/React.forwardRef(function WatsonHealthArrowAnnotation24(_ref88, ref) {\n var children = _ref88.children,\n rest = _objectWithoutProperties(_ref88, _excluded88);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path131 || (_path131 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13.71 12.29L7.42 6 14 6 14 4 4 4 4 13.99 6 14.01 6 7.41 12.29 13.7 13.71 12.29zM28 10H18v2H28V28H12V18H10V28a2 2 0 002 2H28a2 2 0 002-2V12A2 2 0 0028 10z\"\n })), _path132 || (_path132 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 25L21 25 21 18 24 18 24 16 16 16 16 18 19 18 19 25z\"\n })), children);\n});\nvar WatsonHealthArrowAnnotation20 = /*#__PURE__*/React.forwardRef(function WatsonHealthArrowAnnotation20(_ref89, ref) {\n var children = _ref89.children,\n rest = _objectWithoutProperties(_ref89, _excluded89);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path133 || (_path133 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13.71 12.29L7.42 6 14 6 14 4 4 4 4 13.99 6 14.01 6 7.41 12.29 13.7 13.71 12.29zM28 10H18v2H28V28H12V18H10V28a2 2 0 002 2H28a2 2 0 002-2V12A2 2 0 0028 10z\"\n })), _path134 || (_path134 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 25L21 25 21 18 24 18 24 16 16 16 16 18 19 18 19 25z\"\n })), children);\n});\nvar WatsonHealthArrowAnnotation16 = /*#__PURE__*/React.forwardRef(function WatsonHealthArrowAnnotation16(_ref90, ref) {\n var children = _ref90.children,\n rest = _objectWithoutProperties(_ref90, _excluded90);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path135 || (_path135 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13.71 12.29L7.42 6 14 6 14 4 4 4 4 13.99 6 14.01 6 7.41 12.29 13.7 13.71 12.29zM28 10H18v2H28V28H12V18H10V28a2 2 0 002 2H28a2 2 0 002-2V12A2 2 0 0028 10z\"\n })), _path136 || (_path136 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 25L21 25 21 18 24 18 24 16 16 16 16 18 19 18 19 25z\"\n })), children);\n});\nvar ArrowDown32 = /*#__PURE__*/React.forwardRef(function ArrowDown32(_ref91, ref) {\n var children = _ref91.children,\n rest = _objectWithoutProperties(_ref91, _excluded91);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path137 || (_path137 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.59 16.59L17 24.17 17 4 15 4 15 24.17 7.41 16.59 6 18 16 28 26 18 24.59 16.59z\"\n })), children);\n});\nvar ArrowDown24 = /*#__PURE__*/React.forwardRef(function ArrowDown24(_ref92, ref) {\n var children = _ref92.children,\n rest = _objectWithoutProperties(_ref92, _excluded92);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path138 || (_path138 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.59 16.59L17 24.17 17 4 15 4 15 24.17 7.41 16.59 6 18 16 28 26 18 24.59 16.59z\"\n })), children);\n});\nvar ArrowDown20 = /*#__PURE__*/React.forwardRef(function ArrowDown20(_ref93, ref) {\n var children = _ref93.children,\n rest = _objectWithoutProperties(_ref93, _excluded93);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path139 || (_path139 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.59 16.59L17 24.17 17 4 15 4 15 24.17 7.41 16.59 6 18 16 28 26 18 24.59 16.59z\"\n })), children);\n});\nvar ArrowDown16 = /*#__PURE__*/React.forwardRef(function ArrowDown16(_ref94, ref) {\n var children = _ref94.children,\n rest = _objectWithoutProperties(_ref94, _excluded94);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path140 || (_path140 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12.3 9.3L8.5 13.1 8.5 1 7.5 1 7.5 13.1 3.7 9.3 3 10 8 15 13 10z\"\n })), children);\n});\nvar ArrowDownLeft32 = /*#__PURE__*/React.forwardRef(function ArrowDownLeft32(_ref95, ref) {\n var children = _ref95.children,\n rest = _objectWithoutProperties(_ref95, _excluded95);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path141 || (_path141 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 26L22 24 9.41 24 26 7.41 24.59 6 8 22.59 8 10 6 10 6 26 22 26z\"\n })), children);\n});\nvar ArrowDownLeft24 = /*#__PURE__*/React.forwardRef(function ArrowDownLeft24(_ref96, ref) {\n var children = _ref96.children,\n rest = _objectWithoutProperties(_ref96, _excluded96);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path142 || (_path142 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 26L22 24 9.41 24 26 7.41 24.59 6 8 22.59 8 10 6 10 6 26 22 26z\"\n })), children);\n});\nvar ArrowDownLeft20 = /*#__PURE__*/React.forwardRef(function ArrowDownLeft20(_ref97, ref) {\n var children = _ref97.children,\n rest = _objectWithoutProperties(_ref97, _excluded97);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path143 || (_path143 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 26L22 24 9.41 24 26 7.41 24.59 6 8 22.59 8 10 6 10 6 26 22 26z\"\n })), children);\n});\nvar ArrowDownLeft16 = /*#__PURE__*/React.forwardRef(function ArrowDownLeft16(_ref98, ref) {\n var children = _ref98.children,\n rest = _objectWithoutProperties(_ref98, _excluded98);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path144 || (_path144 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 26L22 24 9.41 24 26 7.41 24.59 6 8 22.59 8 10 6 10 6 26 22 26z\"\n })), children);\n});\nvar ArrowDownRight32 = /*#__PURE__*/React.forwardRef(function ArrowDownRight32(_ref99, ref) {\n var children = _ref99.children,\n rest = _objectWithoutProperties(_ref99, _excluded99);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path145 || (_path145 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 26L10 24 22.59 24 6 7.41 7.41 6 24 22.59 24 10 26 10 26 26 10 26z\"\n })), children);\n});\nvar ArrowDownRight24 = /*#__PURE__*/React.forwardRef(function ArrowDownRight24(_ref100, ref) {\n var children = _ref100.children,\n rest = _objectWithoutProperties(_ref100, _excluded100);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path146 || (_path146 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 26L10 24 22.59 24 6 7.41 7.41 6 24 22.59 24 10 26 10 26 26 10 26z\"\n })), children);\n});\nvar ArrowDownRight20 = /*#__PURE__*/React.forwardRef(function ArrowDownRight20(_ref101, ref) {\n var children = _ref101.children,\n rest = _objectWithoutProperties(_ref101, _excluded101);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path147 || (_path147 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 26L10 24 22.59 24 6 7.41 7.41 6 24 22.59 24 10 26 10 26 26 10 26z\"\n })), children);\n});\nvar ArrowDownRight16 = /*#__PURE__*/React.forwardRef(function ArrowDownRight16(_ref102, ref) {\n var children = _ref102.children,\n rest = _objectWithoutProperties(_ref102, _excluded102);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path148 || (_path148 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 26L10 24 22.59 24 6 7.41 7.41 6 24 22.59 24 10 26 10 26 26 10 26z\"\n })), children);\n});\nvar ArrowLeft32 = /*#__PURE__*/React.forwardRef(function ArrowLeft32(_ref103, ref) {\n var children = _ref103.children,\n rest = _objectWithoutProperties(_ref103, _excluded103);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path149 || (_path149 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14 26L15.41 24.59 7.83 17 28 17 28 15 7.83 15 15.41 7.41 14 6 4 16 14 26z\"\n })), children);\n});\nvar ArrowLeft24 = /*#__PURE__*/React.forwardRef(function ArrowLeft24(_ref104, ref) {\n var children = _ref104.children,\n rest = _objectWithoutProperties(_ref104, _excluded104);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path150 || (_path150 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14 26L15.41 24.59 7.83 17 28 17 28 15 7.83 15 15.41 7.41 14 6 4 16 14 26z\"\n })), children);\n});\nvar ArrowLeft20 = /*#__PURE__*/React.forwardRef(function ArrowLeft20(_ref105, ref) {\n var children = _ref105.children,\n rest = _objectWithoutProperties(_ref105, _excluded105);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path151 || (_path151 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14 26L15.41 24.59 7.83 17 28 17 28 15 7.83 15 15.41 7.41 14 6 4 16 14 26z\"\n })), children);\n});\nvar ArrowLeft16 = /*#__PURE__*/React.forwardRef(function ArrowLeft16(_ref106, ref) {\n var children = _ref106.children,\n rest = _objectWithoutProperties(_ref106, _excluded106);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path152 || (_path152 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6.7 12.3L2.9 8.5 15 8.5 15 7.5 2.9 7.5 6.7 3.7 6 3 1 8 6 13z\"\n })), children);\n});\nvar ArrowRight32 = /*#__PURE__*/React.forwardRef(function ArrowRight32(_ref107, ref) {\n var children = _ref107.children,\n rest = _objectWithoutProperties(_ref107, _excluded107);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path153 || (_path153 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 6L16.57 7.393 24.15 15 4 15 4 17 24.15 17 16.57 24.573 18 26 28 16 18 6z\"\n })), children);\n});\nvar ArrowRight24 = /*#__PURE__*/React.forwardRef(function ArrowRight24(_ref108, ref) {\n var children = _ref108.children,\n rest = _objectWithoutProperties(_ref108, _excluded108);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path154 || (_path154 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14 4L12.9 5.1 18.9 11.2 2 11.2 2 12.8 18.9 12.8 12.9 18.9 14 20 22 12z\"\n })), children);\n});\nvar ArrowRight20 = /*#__PURE__*/React.forwardRef(function ArrowRight20(_ref109, ref) {\n var children = _ref109.children,\n rest = _objectWithoutProperties(_ref109, _excluded109);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 20 20\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path155 || (_path155 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.8 2.8L10.8 3.8 16.2 9.3 1 9.3 1 10.7 16.2 10.7 10.8 16.2 11.8 17.2 19 10z\"\n })), children);\n});\nvar ArrowRight16 = /*#__PURE__*/React.forwardRef(function ArrowRight16(_ref110, ref) {\n var children = _ref110.children,\n rest = _objectWithoutProperties(_ref110, _excluded110);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path156 || (_path156 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.3 3.7L13.1 7.5 1 7.5 1 8.5 13.1 8.5 9.3 12.3 10 13 15 8 10 3z\"\n })), children);\n});\nvar ArrowUp32 = /*#__PURE__*/React.forwardRef(function ArrowUp32(_ref111, ref) {\n var children = _ref111.children,\n rest = _objectWithoutProperties(_ref111, _excluded111);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path157 || (_path157 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 4L6 14 7.41 15.41 15 7.83 15 28 17 28 17 7.83 24.59 15.41 26 14 16 4z\"\n })), children);\n});\nvar ArrowUp24 = /*#__PURE__*/React.forwardRef(function ArrowUp24(_ref112, ref) {\n var children = _ref112.children,\n rest = _objectWithoutProperties(_ref112, _excluded112);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path158 || (_path158 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 4L6 14 7.41 15.41 15 7.83 15 28 17 28 17 7.83 24.59 15.41 26 14 16 4z\"\n })), children);\n});\nvar ArrowUp20 = /*#__PURE__*/React.forwardRef(function ArrowUp20(_ref113, ref) {\n var children = _ref113.children,\n rest = _objectWithoutProperties(_ref113, _excluded113);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path159 || (_path159 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 4L6 14 7.41 15.41 15 7.83 15 28 17 28 17 7.83 24.59 15.41 26 14 16 4z\"\n })), children);\n});\nvar ArrowUp16 = /*#__PURE__*/React.forwardRef(function ArrowUp16(_ref114, ref) {\n var children = _ref114.children,\n rest = _objectWithoutProperties(_ref114, _excluded114);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path160 || (_path160 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.7 6.7L7.5 2.9 7.5 15 8.5 15 8.5 2.9 12.3 6.7 13 6 8 1 3 6z\"\n })), children);\n});\nvar ArrowUpLeft32 = /*#__PURE__*/React.forwardRef(function ArrowUpLeft32(_ref115, ref) {\n var children = _ref115.children,\n rest = _objectWithoutProperties(_ref115, _excluded115);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path161 || (_path161 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 6L22 8 9.41 8 26 24.59 24.59 26 8 9.41 8 22 6 22 6 6 22 6z\"\n })), children);\n});\nvar ArrowUpLeft24 = /*#__PURE__*/React.forwardRef(function ArrowUpLeft24(_ref116, ref) {\n var children = _ref116.children,\n rest = _objectWithoutProperties(_ref116, _excluded116);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path162 || (_path162 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 6L22 8 9.41 8 26 24.59 24.59 26 8 9.41 8 22 6 22 6 6 22 6z\"\n })), children);\n});\nvar ArrowUpLeft20 = /*#__PURE__*/React.forwardRef(function ArrowUpLeft20(_ref117, ref) {\n var children = _ref117.children,\n rest = _objectWithoutProperties(_ref117, _excluded117);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path163 || (_path163 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 6L22 8 9.41 8 26 24.59 24.59 26 8 9.41 8 22 6 22 6 6 22 6z\"\n })), children);\n});\nvar ArrowUpLeft16 = /*#__PURE__*/React.forwardRef(function ArrowUpLeft16(_ref118, ref) {\n var children = _ref118.children,\n rest = _objectWithoutProperties(_ref118, _excluded118);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path164 || (_path164 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 6L22 8 9.41 8 26 24.59 24.59 26 8 9.41 8 22 6 22 6 6 22 6z\"\n })), children);\n});\nvar ArrowUpRight32 = /*#__PURE__*/React.forwardRef(function ArrowUpRight32(_ref119, ref) {\n var children = _ref119.children,\n rest = _objectWithoutProperties(_ref119, _excluded119);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path165 || (_path165 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 6L10 8 22.59 8 6 24.59 7.41 26 24 9.41 24 22 26 22 26 6 10 6z\"\n })), children);\n});\nvar ArrowUpRight24 = /*#__PURE__*/React.forwardRef(function ArrowUpRight24(_ref120, ref) {\n var children = _ref120.children,\n rest = _objectWithoutProperties(_ref120, _excluded120);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path166 || (_path166 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 6L10 8 22.59 8 6 24.59 7.41 26 24 9.41 24 22 26 22 26 6 10 6z\"\n })), children);\n});\nvar ArrowUpRight20 = /*#__PURE__*/React.forwardRef(function ArrowUpRight20(_ref121, ref) {\n var children = _ref121.children,\n rest = _objectWithoutProperties(_ref121, _excluded121);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path167 || (_path167 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 6L10 8 22.59 8 6 24.59 7.41 26 24 9.41 24 22 26 22 26 6 10 6z\"\n })), children);\n});\nvar ArrowUpRight16 = /*#__PURE__*/React.forwardRef(function ArrowUpRight16(_ref122, ref) {\n var children = _ref122.children,\n rest = _objectWithoutProperties(_ref122, _excluded122);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path168 || (_path168 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 6L10 8 22.59 8 6 24.59 7.41 26 24 9.41 24 22 26 22 26 6 10 6z\"\n })), children);\n});\nvar ArrowShiftDown32 = /*#__PURE__*/React.forwardRef(function ArrowShiftDown32(_ref123, ref) {\n var children = _ref123.children,\n rest = _objectWithoutProperties(_ref123, _excluded123);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path169 || (_path169 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,6V16h5a1,1,0,0,1,.707,1.707l-12,12a.9994.9994,0,0,1-1.414,0l-12-12A1,1,0,0,1,4,16H9V6a2.0023,2.0023,0,0,1,2-2H21A2.0027,2.0027,0,0,1,23,6ZM16,27.5859,25.5859,18H21V6H11V18H6.4141Z\"\n })), children);\n});\nvar ArrowShiftDown24 = /*#__PURE__*/React.forwardRef(function ArrowShiftDown24(_ref124, ref) {\n var children = _ref124.children,\n rest = _objectWithoutProperties(_ref124, _excluded124);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path170 || (_path170 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,6V16h5a1,1,0,0,1,.707,1.707l-12,12a.9994.9994,0,0,1-1.414,0l-12-12A1,1,0,0,1,4,16H9V6a2.0023,2.0023,0,0,1,2-2H21A2.0027,2.0027,0,0,1,23,6ZM16,27.5859,25.5859,18H21V6H11V18H6.4141Z\"\n })), children);\n});\nvar ArrowShiftDown20 = /*#__PURE__*/React.forwardRef(function ArrowShiftDown20(_ref125, ref) {\n var children = _ref125.children,\n rest = _objectWithoutProperties(_ref125, _excluded125);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path171 || (_path171 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,6V16h5a1,1,0,0,1,.707,1.707l-12,12a.9994.9994,0,0,1-1.414,0l-12-12A1,1,0,0,1,4,16H9V6a2.0023,2.0023,0,0,1,2-2H21A2.0027,2.0027,0,0,1,23,6ZM16,27.5859,25.5859,18H21V6H11V18H6.4141Z\"\n })), children);\n});\nvar ArrowShiftDown16 = /*#__PURE__*/React.forwardRef(function ArrowShiftDown16(_ref126, ref) {\n var children = _ref126.children,\n rest = _objectWithoutProperties(_ref126, _excluded126);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path172 || (_path172 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,6V16h5a1,1,0,0,1,.707,1.707l-12,12a.9994.9994,0,0,1-1.414,0l-12-12A1,1,0,0,1,4,16H9V6a2.0023,2.0023,0,0,1,2-2H21A2.0027,2.0027,0,0,1,23,6ZM16,27.5859,25.5859,18H21V6H11V18H6.4141Z\"\n })), children);\n});\nvar Arrows32 = /*#__PURE__*/React.forwardRef(function Arrows32(_ref127, ref) {\n var children = _ref127.children,\n rest = _objectWithoutProperties(_ref127, _excluded127);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['Arrows32']) {\n didWarnAboutDeprecation['Arrows32'] = true;\n console.warn(\"The Arrows32 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path173 || (_path173 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.6 20.6L24 24.2 24 4 22 4 22 24.2 18.4 20.6 17 22 23 28 29 22zM9 4L3 10 4.4 11.4 8 7.8 8 28 10 28 10 7.8 13.6 11.4 15 10z\"\n })), children);\n});\nvar Arrows24 = /*#__PURE__*/React.forwardRef(function Arrows24(_ref128, ref) {\n var children = _ref128.children,\n rest = _objectWithoutProperties(_ref128, _excluded128);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['Arrows24']) {\n didWarnAboutDeprecation['Arrows24'] = true;\n console.warn(\"The Arrows24 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path174 || (_path174 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.6 20.6L24 24.2 24 4 22 4 22 24.2 18.4 20.6 17 22 23 28 29 22zM9 4L3 10 4.4 11.4 8 7.8 8 28 10 28 10 7.8 13.6 11.4 15 10z\"\n })), children);\n});\nvar Arrows20 = /*#__PURE__*/React.forwardRef(function Arrows20(_ref129, ref) {\n var children = _ref129.children,\n rest = _objectWithoutProperties(_ref129, _excluded129);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['Arrows20']) {\n didWarnAboutDeprecation['Arrows20'] = true;\n console.warn(\"The Arrows20 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path175 || (_path175 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.6 20.6L24 24.2 24 4 22 4 22 24.2 18.4 20.6 17 22 23 28 29 22zM9 4L3 10 4.4 11.4 8 7.8 8 28 10 28 10 7.8 13.6 11.4 15 10z\"\n })), children);\n});\nvar Arrows16 = /*#__PURE__*/React.forwardRef(function Arrows16(_ref130, ref) {\n var children = _ref130.children,\n rest = _objectWithoutProperties(_ref130, _excluded130);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['Arrows16']) {\n didWarnAboutDeprecation['Arrows16'] = true;\n console.warn(\"The Arrows16 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path176 || (_path176 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.6 20.6L24 24.2 24 4 22 4 22 24.2 18.4 20.6 17 22 23 28 29 22zM9 4L3 10 4.4 11.4 8 7.8 8 28 10 28 10 7.8 13.6 11.4 15 10z\"\n })), children);\n});\nvar ArrowsHorizontal32 = /*#__PURE__*/React.forwardRef(function ArrowsHorizontal32(_ref131, ref) {\n var children = _ref131.children,\n rest = _objectWithoutProperties(_ref131, _excluded131);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path177 || (_path177 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.41 26.59L7.83 23 28 23 28 21 7.83 21 11.41 17.41 10 16 4 22 10 28 11.41 26.59zM28 10L22 4 20.59 5.41 24.17 9 4 9 4 11 24.17 11 20.59 14.59 22 16 28 10z\"\n })), children);\n});\nvar ArrowsHorizontal24 = /*#__PURE__*/React.forwardRef(function ArrowsHorizontal24(_ref132, ref) {\n var children = _ref132.children,\n rest = _objectWithoutProperties(_ref132, _excluded132);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path178 || (_path178 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.41 26.59L7.83 23 28 23 28 21 7.83 21 11.41 17.41 10 16 4 22 10 28 11.41 26.59zM28 10L22 4 20.59 5.41 24.17 9 4 9 4 11 24.17 11 20.59 14.59 22 16 28 10z\"\n })), children);\n});\nvar ArrowsHorizontal20 = /*#__PURE__*/React.forwardRef(function ArrowsHorizontal20(_ref133, ref) {\n var children = _ref133.children,\n rest = _objectWithoutProperties(_ref133, _excluded133);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path179 || (_path179 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.41 26.59L7.83 23 28 23 28 21 7.83 21 11.41 17.41 10 16 4 22 10 28 11.41 26.59zM28 10L22 4 20.59 5.41 24.17 9 4 9 4 11 24.17 11 20.59 14.59 22 16 28 10z\"\n })), children);\n});\nvar ArrowsHorizontal16 = /*#__PURE__*/React.forwardRef(function ArrowsHorizontal16(_ref134, ref) {\n var children = _ref134.children,\n rest = _objectWithoutProperties(_ref134, _excluded134);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path180 || (_path180 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.41 26.59L7.83 23 28 23 28 21 7.83 21 11.41 17.41 10 16 4 22 10 28 11.41 26.59zM28 10L22 4 20.59 5.41 24.17 9 4 9 4 11 24.17 11 20.59 14.59 22 16 28 10z\"\n })), children);\n});\nvar ArrowsVertical32 = /*#__PURE__*/React.forwardRef(function ArrowsVertical32(_ref135, ref) {\n var children = _ref135.children,\n rest = _objectWithoutProperties(_ref135, _excluded135);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path181 || (_path181 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.6 20.6L24 24.2 24 4 22 4 22 24.2 18.4 20.6 17 22 23 28 29 22zM9 4L3 10 4.4 11.4 8 7.8 8 28 10 28 10 7.8 13.6 11.4 15 10z\"\n })), children);\n});\nvar ArrowsVertical24 = /*#__PURE__*/React.forwardRef(function ArrowsVertical24(_ref136, ref) {\n var children = _ref136.children,\n rest = _objectWithoutProperties(_ref136, _excluded136);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path182 || (_path182 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.6 20.6L24 24.2 24 4 22 4 22 24.2 18.4 20.6 17 22 23 28 29 22zM9 4L3 10 4.4 11.4 8 7.8 8 28 10 28 10 7.8 13.6 11.4 15 10z\"\n })), children);\n});\nvar ArrowsVertical20 = /*#__PURE__*/React.forwardRef(function ArrowsVertical20(_ref137, ref) {\n var children = _ref137.children,\n rest = _objectWithoutProperties(_ref137, _excluded137);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path183 || (_path183 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.6 20.6L24 24.2 24 4 22 4 22 24.2 18.4 20.6 17 22 23 28 29 22zM9 4L3 10 4.4 11.4 8 7.8 8 28 10 28 10 7.8 13.6 11.4 15 10z\"\n })), children);\n});\nvar ArrowsVertical16 = /*#__PURE__*/React.forwardRef(function ArrowsVertical16(_ref138, ref) {\n var children = _ref138.children,\n rest = _objectWithoutProperties(_ref138, _excluded138);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path184 || (_path184 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.6 20.6L24 24.2 24 4 22 4 22 24.2 18.4 20.6 17 22 23 28 29 22zM9 4L3 10 4.4 11.4 8 7.8 8 28 10 28 10 7.8 13.6 11.4 15 10z\"\n })), children);\n});\nvar Asleep32 = /*#__PURE__*/React.forwardRef(function Asleep32(_ref139, ref) {\n var children = _ref139.children,\n rest = _objectWithoutProperties(_ref139, _excluded139);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path185 || (_path185 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13.5025,5.4136A15.0755,15.0755,0,0,0,25.096,23.6082a11.1134,11.1134,0,0,1-7.9749,3.3893c-.1385,0-.2782.0051-.4178,0A11.0944,11.0944,0,0,1,13.5025,5.4136M14.98,3a1.0024,1.0024,0,0,0-.1746.0156A13.0959,13.0959,0,0,0,16.63,28.9973c.1641.006.3282,0,.4909,0a13.0724,13.0724,0,0,0,10.702-5.5556,1.0094,1.0094,0,0,0-.7833-1.5644A13.08,13.08,0,0,1,15.8892,4.38,1.0149,1.0149,0,0,0,14.98,3Z\"\n })), children);\n});\nvar Asleep24 = /*#__PURE__*/React.forwardRef(function Asleep24(_ref140, ref) {\n var children = _ref140.children,\n rest = _objectWithoutProperties(_ref140, _excluded140);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path186 || (_path186 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13.5025,5.4136A15.0755,15.0755,0,0,0,25.096,23.6082a11.1134,11.1134,0,0,1-7.9749,3.3893c-.1385,0-.2782.0051-.4178,0A11.0944,11.0944,0,0,1,13.5025,5.4136M14.98,3a1.0024,1.0024,0,0,0-.1746.0156A13.0959,13.0959,0,0,0,16.63,28.9973c.1641.006.3282,0,.4909,0a13.0724,13.0724,0,0,0,10.702-5.5556,1.0094,1.0094,0,0,0-.7833-1.5644A13.08,13.08,0,0,1,15.8892,4.38,1.0149,1.0149,0,0,0,14.98,3Z\"\n })), children);\n});\nvar Asleep20 = /*#__PURE__*/React.forwardRef(function Asleep20(_ref141, ref) {\n var children = _ref141.children,\n rest = _objectWithoutProperties(_ref141, _excluded141);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path187 || (_path187 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13.5025,5.4136A15.0755,15.0755,0,0,0,25.096,23.6082a11.1134,11.1134,0,0,1-7.9749,3.3893c-.1385,0-.2782.0051-.4178,0A11.0944,11.0944,0,0,1,13.5025,5.4136M14.98,3a1.0024,1.0024,0,0,0-.1746.0156A13.0959,13.0959,0,0,0,16.63,28.9973c.1641.006.3282,0,.4909,0a13.0724,13.0724,0,0,0,10.702-5.5556,1.0094,1.0094,0,0,0-.7833-1.5644A13.08,13.08,0,0,1,15.8892,4.38,1.0149,1.0149,0,0,0,14.98,3Z\"\n })), children);\n});\nvar Asleep16 = /*#__PURE__*/React.forwardRef(function Asleep16(_ref142, ref) {\n var children = _ref142.children,\n rest = _objectWithoutProperties(_ref142, _excluded142);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path188 || (_path188 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7.2,2.3c-1,4.4,1.7,8.7,6.1,9.8c0.1,0,0.1,0,0.2,0c-1.1,1.2-2.7,1.8-4.3,1.8c-0.1,0-0.2,0-0.2,0C5.6,13.8,3,11,3.2,7.7\\tC3.2,5.3,4.8,3.1,7.2,2.3 M8,1L8,1C4.1,1.6,1.5,5.3,2.1,9.1c0.6,3.3,3.4,5.8,6.8,5.9c0.1,0,0.2,0,0.3,0c2.3,0,4.4-1.1,5.8-3\\tc0.2-0.2,0.1-0.6-0.1-0.7c-0.1-0.1-0.2-0.1-0.3-0.1c-3.9-0.3-6.7-3.8-6.4-7.6C8.3,3,8.4,2.4,8.6,1.8c0.1-0.3,0-0.6-0.3-0.7\\tC8.1,1,8.1,1,8,1z\"\n })), children);\n});\nvar AsleepFilled32 = /*#__PURE__*/React.forwardRef(function AsleepFilled32(_ref143, ref) {\n var children = _ref143.children,\n rest = _objectWithoutProperties(_ref143, _excluded143);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path189 || (_path189 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14.98,3a1.0024,1.0024,0,0,0-.1746.0156A13.0959,13.0959,0,0,0,16.63,28.9973c.1641.006.3282,0,.4909,0a13.0724,13.0724,0,0,0,10.702-5.5556,1.0094,1.0094,0,0,0-.7833-1.5644A13.08,13.08,0,0,1,15.8892,4.38,1.0149,1.0149,0,0,0,14.98,3Z\"\n })), children);\n});\nvar AsleepFilled24 = /*#__PURE__*/React.forwardRef(function AsleepFilled24(_ref144, ref) {\n var children = _ref144.children,\n rest = _objectWithoutProperties(_ref144, _excluded144);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path190 || (_path190 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14.98,3a1.0024,1.0024,0,0,0-.1746.0156A13.0959,13.0959,0,0,0,16.63,28.9973c.1641.006.3282,0,.4909,0a13.0724,13.0724,0,0,0,10.702-5.5556,1.0094,1.0094,0,0,0-.7833-1.5644A13.08,13.08,0,0,1,15.8892,4.38,1.0149,1.0149,0,0,0,14.98,3Z\"\n })), children);\n});\nvar AsleepFilled20 = /*#__PURE__*/React.forwardRef(function AsleepFilled20(_ref145, ref) {\n var children = _ref145.children,\n rest = _objectWithoutProperties(_ref145, _excluded145);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path191 || (_path191 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14.98,3a1.0024,1.0024,0,0,0-.1746.0156A13.0959,13.0959,0,0,0,16.63,28.9973c.1641.006.3282,0,.4909,0a13.0724,13.0724,0,0,0,10.702-5.5556,1.0094,1.0094,0,0,0-.7833-1.5644A13.08,13.08,0,0,1,15.8892,4.38,1.0149,1.0149,0,0,0,14.98,3Z\"\n })), children);\n});\nvar AsleepFilled16 = /*#__PURE__*/React.forwardRef(function AsleepFilled16(_ref146, ref) {\n var children = _ref146.children,\n rest = _objectWithoutProperties(_ref146, _excluded146);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path192 || (_path192 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14.98,3a1.0024,1.0024,0,0,0-.1746.0156A13.0959,13.0959,0,0,0,16.63,28.9973c.1641.006.3282,0,.4909,0a13.0724,13.0724,0,0,0,10.702-5.5556,1.0094,1.0094,0,0,0-.7833-1.5644A13.08,13.08,0,0,1,15.8892,4.38,1.0149,1.0149,0,0,0,14.98,3Z\"\n })), children);\n});\nvar Asset32 = /*#__PURE__*/React.forwardRef(function Asset32(_ref147, ref) {\n var children = _ref147.children,\n rest = _objectWithoutProperties(_ref147, _excluded147);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path193 || (_path193 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12.0752,24a4,4,0,1,1,4-4A4.0042,4.0042,0,0,1,12.0752,24Zm0-6a2,2,0,1,0,2,2A2.0023,2.0023,0,0,0,12.0752,18Z\"\n })), _path194 || (_path194 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,6a4.0042,4.0042,0,0,0-4-4,3.949,3.949,0,0,0-1.8537.4768L7.7571,10.9579A9.9921,9.9921,0,1,0,21.066,24.1929l8.49-16.3994A3.9491,3.9491,0,0,0,30,6ZM26,4a2,2,0,1,1-2,2A2.0023,2.0023,0,0,1,26,4ZM22.0194,5.8083C22.0163,5.8732,22,5.9343,22,6a4.0042,4.0042,0,0,0,4,4c.0645,0,.1245-.016.1882-.019l-4.3318,8.3617a10.0168,10.0168,0,0,0-8.2158-8.1962ZM12,28a8,8,0,1,1,8-8A8.0092,8.0092,0,0,1,12,28Z\"\n })), children);\n});\nvar Asset24 = /*#__PURE__*/React.forwardRef(function Asset24(_ref148, ref) {\n var children = _ref148.children,\n rest = _objectWithoutProperties(_ref148, _excluded148);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path195 || (_path195 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12.0752,24a4,4,0,1,1,4-4A4.0042,4.0042,0,0,1,12.0752,24Zm0-6a2,2,0,1,0,2,2A2.0023,2.0023,0,0,0,12.0752,18Z\"\n })), _path196 || (_path196 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,6a4.0042,4.0042,0,0,0-4-4,3.949,3.949,0,0,0-1.8537.4768L7.7571,10.9579A9.9921,9.9921,0,1,0,21.066,24.1929l8.49-16.3994A3.9491,3.9491,0,0,0,30,6ZM26,4a2,2,0,1,1-2,2A2.0023,2.0023,0,0,1,26,4ZM22.0194,5.8083C22.0163,5.8732,22,5.9343,22,6a4.0042,4.0042,0,0,0,4,4c.0645,0,.1245-.016.1882-.019l-4.3318,8.3617a10.0168,10.0168,0,0,0-8.2158-8.1962ZM12,28a8,8,0,1,1,8-8A8.0092,8.0092,0,0,1,12,28Z\"\n })), children);\n});\nvar Asset20 = /*#__PURE__*/React.forwardRef(function Asset20(_ref149, ref) {\n var children = _ref149.children,\n rest = _objectWithoutProperties(_ref149, _excluded149);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path197 || (_path197 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12.0752,24a4,4,0,1,1,4-4A4.0042,4.0042,0,0,1,12.0752,24Zm0-6a2,2,0,1,0,2,2A2.0023,2.0023,0,0,0,12.0752,18Z\"\n })), _path198 || (_path198 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,6a4.0042,4.0042,0,0,0-4-4,3.949,3.949,0,0,0-1.8537.4768L7.7571,10.9579A9.9921,9.9921,0,1,0,21.066,24.1929l8.49-16.3994A3.9491,3.9491,0,0,0,30,6ZM26,4a2,2,0,1,1-2,2A2.0023,2.0023,0,0,1,26,4ZM22.0194,5.8083C22.0163,5.8732,22,5.9343,22,6a4.0042,4.0042,0,0,0,4,4c.0645,0,.1245-.016.1882-.019l-4.3318,8.3617a10.0168,10.0168,0,0,0-8.2158-8.1962ZM12,28a8,8,0,1,1,8-8A8.0092,8.0092,0,0,1,12,28Z\"\n })), children);\n});\nvar Asset16 = /*#__PURE__*/React.forwardRef(function Asset16(_ref150, ref) {\n var children = _ref150.children,\n rest = _objectWithoutProperties(_ref150, _excluded150);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path199 || (_path199 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12.0752,24a4,4,0,1,1,4-4A4.0042,4.0042,0,0,1,12.0752,24Zm0-6a2,2,0,1,0,2,2A2.0023,2.0023,0,0,0,12.0752,18Z\"\n })), _path200 || (_path200 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,6a4.0042,4.0042,0,0,0-4-4,3.949,3.949,0,0,0-1.8537.4768L7.7571,10.9579A9.9921,9.9921,0,1,0,21.066,24.1929l8.49-16.3994A3.9491,3.9491,0,0,0,30,6ZM26,4a2,2,0,1,1-2,2A2.0023,2.0023,0,0,1,26,4ZM22.0194,5.8083C22.0163,5.8732,22,5.9343,22,6a4.0042,4.0042,0,0,0,4,4c.0645,0,.1245-.016.1882-.019l-4.3318,8.3617a10.0168,10.0168,0,0,0-8.2158-8.1962ZM12,28a8,8,0,1,1,8-8A8.0092,8.0092,0,0,1,12,28Z\"\n })), children);\n});\nvar At32 = /*#__PURE__*/React.forwardRef(function At32(_ref151, ref) {\n var children = _ref151.children,\n rest = _objectWithoutProperties(_ref151, _excluded151);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path201 || (_path201 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,3A12.92,12.92,0,0,0,3,16v1A13,13,0,0,0,16,30h7V28H16A11,11,0,0,1,5,17V16A10.94,10.94,0,0,1,16,5,10.64,10.64,0,0,1,27,16c0,3.59-1.4,5-3.66,5C21.76,21,21,19.71,21,18V10H19v1.94A3.84,3.84,0,0,0,15.5,10,5.48,5.48,0,0,0,10,15.44v2.12A5.48,5.48,0,0,0,15.5,23a4.28,4.28,0,0,0,4-2.46A4.35,4.35,0,0,0,23.41,23C26.48,23,29,21,29,16A12.72,12.72,0,0,0,16,3Zm3,14.56a3.5,3.5,0,0,1-7,0V15.44a3.5,3.5,0,0,1,7,0Z\"\n })), children);\n});\nvar At24 = /*#__PURE__*/React.forwardRef(function At24(_ref152, ref) {\n var children = _ref152.children,\n rest = _objectWithoutProperties(_ref152, _excluded152);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path202 || (_path202 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,3A12.92,12.92,0,0,0,3,16v1A13,13,0,0,0,16,30h7V28H16A11,11,0,0,1,5,17V16A10.94,10.94,0,0,1,16,5,10.64,10.64,0,0,1,27,16c0,3.59-1.4,5-3.66,5C21.76,21,21,19.71,21,18V10H19v1.94A3.84,3.84,0,0,0,15.5,10,5.48,5.48,0,0,0,10,15.44v2.12A5.48,5.48,0,0,0,15.5,23a4.28,4.28,0,0,0,4-2.46A4.35,4.35,0,0,0,23.41,23C26.48,23,29,21,29,16A12.72,12.72,0,0,0,16,3Zm3,14.56a3.5,3.5,0,0,1-7,0V15.44a3.5,3.5,0,0,1,7,0Z\"\n })), children);\n});\nvar At20 = /*#__PURE__*/React.forwardRef(function At20(_ref153, ref) {\n var children = _ref153.children,\n rest = _objectWithoutProperties(_ref153, _excluded153);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path203 || (_path203 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,3A12.92,12.92,0,0,0,3,16v1A13,13,0,0,0,16,30h7V28H16A11,11,0,0,1,5,17V16A10.94,10.94,0,0,1,16,5,10.64,10.64,0,0,1,27,16c0,3.59-1.4,5-3.66,5C21.76,21,21,19.71,21,18V10H19v1.94A3.84,3.84,0,0,0,15.5,10,5.48,5.48,0,0,0,10,15.44v2.12A5.48,5.48,0,0,0,15.5,23a4.28,4.28,0,0,0,4-2.46A4.35,4.35,0,0,0,23.41,23C26.48,23,29,21,29,16A12.72,12.72,0,0,0,16,3Zm3,14.56a3.5,3.5,0,0,1-7,0V15.44a3.5,3.5,0,0,1,7,0Z\"\n })), children);\n});\nvar At16 = /*#__PURE__*/React.forwardRef(function At16(_ref154, ref) {\n var children = _ref154.children,\n rest = _objectWithoutProperties(_ref154, _excluded154);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path204 || (_path204 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,3A12.92,12.92,0,0,0,3,16v1A13,13,0,0,0,16,30h7V28H16A11,11,0,0,1,5,17V16A10.94,10.94,0,0,1,16,5,10.64,10.64,0,0,1,27,16c0,3.59-1.4,5-3.66,5C21.76,21,21,19.71,21,18V10H19v1.94A3.84,3.84,0,0,0,15.5,10,5.48,5.48,0,0,0,10,15.44v2.12A5.48,5.48,0,0,0,15.5,23a4.28,4.28,0,0,0,4-2.46A4.35,4.35,0,0,0,23.41,23C26.48,23,29,21,29,16A12.72,12.72,0,0,0,16,3Zm3,14.56a3.5,3.5,0,0,1-7,0V15.44a3.5,3.5,0,0,1,7,0Z\"\n })), children);\n});\nvar Attachment32 = /*#__PURE__*/React.forwardRef(function Attachment32(_ref155, ref) {\n var children = _ref155.children,\n rest = _objectWithoutProperties(_ref155, _excluded155);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path205 || (_path205 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.1,18.9L13.1,3.9c-2.5-2.6-6.6-2.6-9.2-0.1S1.3,10.5,3.9,13c0,0,0.1,0.1,0.1,0.1L6.8,16l1.4-1.4l-2.9-2.9\\tC3.6,10,3.6,7.1,5.3,5.4s4.6-1.8,6.3-0.1c0,0,0,0,0.1,0.1l14.9,14.9c1.8,1.7,1.8,4.6,0.1,6.3c-1.7,1.8-4.6,1.8-6.3,0.1\\tc0,0,0,0-0.1-0.1l-7.4-7.4c-1-1-0.9-2.6,0-3.5c1-0.9,2.5-0.9,3.5,0l4.1,4.1l1.4-1.4c0,0-4.2-4.2-4.2-4.2c-1.8-1.7-4.6-1.6-6.3,0.2\\tc-1.6,1.7-1.6,4.4,0,6.2l7.5,7.5c2.5,2.6,6.6,2.6,9.2,0.1S30.7,21.5,28.1,18.9C28.1,19,28.1,18.9,28.1,18.9L28.1,18.9z\"\n })), children);\n});\nvar Attachment24 = /*#__PURE__*/React.forwardRef(function Attachment24(_ref156, ref) {\n var children = _ref156.children,\n rest = _objectWithoutProperties(_ref156, _excluded156);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path206 || (_path206 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.1,18.9L13.1,3.9c-2.5-2.6-6.6-2.6-9.2-0.1S1.3,10.5,3.9,13c0,0,0.1,0.1,0.1,0.1L6.8,16l1.4-1.4l-2.9-2.9\\tC3.6,10,3.6,7.1,5.3,5.4s4.6-1.8,6.3-0.1c0,0,0,0,0.1,0.1l14.9,14.9c1.8,1.7,1.8,4.6,0.1,6.3c-1.7,1.8-4.6,1.8-6.3,0.1\\tc0,0,0,0-0.1-0.1l-7.4-7.4c-1-1-0.9-2.6,0-3.5c1-0.9,2.5-0.9,3.5,0l4.1,4.1l1.4-1.4c0,0-4.2-4.2-4.2-4.2c-1.8-1.7-4.6-1.6-6.3,0.2\\tc-1.6,1.7-1.6,4.4,0,6.2l7.5,7.5c2.5,2.6,6.6,2.6,9.2,0.1S30.7,21.5,28.1,18.9C28.1,19,28.1,18.9,28.1,18.9L28.1,18.9z\"\n })), children);\n});\nvar Attachment20 = /*#__PURE__*/React.forwardRef(function Attachment20(_ref157, ref) {\n var children = _ref157.children,\n rest = _objectWithoutProperties(_ref157, _excluded157);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path207 || (_path207 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.1,18.9L13.1,3.9c-2.5-2.6-6.6-2.6-9.2-0.1S1.3,10.5,3.9,13c0,0,0.1,0.1,0.1,0.1L6.8,16l1.4-1.4l-2.9-2.9\\tC3.6,10,3.6,7.1,5.3,5.4s4.6-1.8,6.3-0.1c0,0,0,0,0.1,0.1l14.9,14.9c1.8,1.7,1.8,4.6,0.1,6.3c-1.7,1.8-4.6,1.8-6.3,0.1\\tc0,0,0,0-0.1-0.1l-7.4-7.4c-1-1-0.9-2.6,0-3.5c1-0.9,2.5-0.9,3.5,0l4.1,4.1l1.4-1.4c0,0-4.2-4.2-4.2-4.2c-1.8-1.7-4.6-1.6-6.3,0.2\\tc-1.6,1.7-1.6,4.4,0,6.2l7.5,7.5c2.5,2.6,6.6,2.6,9.2,0.1S30.7,21.5,28.1,18.9C28.1,19,28.1,18.9,28.1,18.9L28.1,18.9z\"\n })), children);\n});\nvar Attachment16 = /*#__PURE__*/React.forwardRef(function Attachment16(_ref158, ref) {\n var children = _ref158.children,\n rest = _objectWithoutProperties(_ref158, _excluded158);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path208 || (_path208 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.1,18.9L13.1,3.9c-2.5-2.6-6.6-2.6-9.2-0.1S1.3,10.5,3.9,13c0,0,0.1,0.1,0.1,0.1L6.8,16l1.4-1.4l-2.9-2.9\\tC3.6,10,3.6,7.1,5.3,5.4s4.6-1.8,6.3-0.1c0,0,0,0,0.1,0.1l14.9,14.9c1.8,1.7,1.8,4.6,0.1,6.3c-1.7,1.8-4.6,1.8-6.3,0.1\\tc0,0,0,0-0.1-0.1l-7.4-7.4c-1-1-0.9-2.6,0-3.5c1-0.9,2.5-0.9,3.5,0l4.1,4.1l1.4-1.4c0,0-4.2-4.2-4.2-4.2c-1.8-1.7-4.6-1.6-6.3,0.2\\tc-1.6,1.7-1.6,4.4,0,6.2l7.5,7.5c2.5,2.6,6.6,2.6,9.2,0.1S30.7,21.5,28.1,18.9C28.1,19,28.1,18.9,28.1,18.9L28.1,18.9z\"\n })), children);\n});\nvar AudioConsole32 = /*#__PURE__*/React.forwardRef(function AudioConsole32(_ref159, ref) {\n var children = _ref159.children,\n rest = _objectWithoutProperties(_ref159, _excluded159);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path209 || (_path209 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 14H27V2H25V14H24a2.0019 2.0019 0 00-2 2v2a2.0023 2.0023 0 002 2h1V30h2V20h1a2.0027 2.0027 0 002-2V16A2.0023 2.0023 0 0028 14zm0 4H24V16h4zM18 6H17V2H15V6H14a2.0019 2.0019 0 00-2 2v2a2.0019 2.0019 0 002 2h1V30h2V12h1a2.002 2.002 0 002-2V8A2.002 2.002 0 0018 6zm0 4H14V8h4zM8 20H7V2H5V20H4a2.0023 2.0023 0 00-2 2v2a2.0023 2.0023 0 002 2H5v4H7V26H8a2.0023 2.0023 0 002-2V22A2.0023 2.0023 0 008 20zm0 4H4V22H8z\",\n transform: \"translate(0 .005)\"\n })), children);\n});\nvar AudioConsole24 = /*#__PURE__*/React.forwardRef(function AudioConsole24(_ref160, ref) {\n var children = _ref160.children,\n rest = _objectWithoutProperties(_ref160, _excluded160);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path210 || (_path210 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 14H27V2H25V14H24a2.0019 2.0019 0 00-2 2v2a2.0023 2.0023 0 002 2h1V30h2V20h1a2.0027 2.0027 0 002-2V16A2.0023 2.0023 0 0028 14zm0 4H24V16h4zM18 6H17V2H15V6H14a2.0019 2.0019 0 00-2 2v2a2.0019 2.0019 0 002 2h1V30h2V12h1a2.002 2.002 0 002-2V8A2.002 2.002 0 0018 6zm0 4H14V8h4zM8 20H7V2H5V20H4a2.0023 2.0023 0 00-2 2v2a2.0023 2.0023 0 002 2H5v4H7V26H8a2.0023 2.0023 0 002-2V22A2.0023 2.0023 0 008 20zm0 4H4V22H8z\",\n transform: \"translate(0 .005)\"\n })), children);\n});\nvar AudioConsole20 = /*#__PURE__*/React.forwardRef(function AudioConsole20(_ref161, ref) {\n var children = _ref161.children,\n rest = _objectWithoutProperties(_ref161, _excluded161);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path211 || (_path211 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 14H27V2H25V14H24a2.0019 2.0019 0 00-2 2v2a2.0023 2.0023 0 002 2h1V30h2V20h1a2.0027 2.0027 0 002-2V16A2.0023 2.0023 0 0028 14zm0 4H24V16h4zM18 6H17V2H15V6H14a2.0019 2.0019 0 00-2 2v2a2.0019 2.0019 0 002 2h1V30h2V12h1a2.002 2.002 0 002-2V8A2.002 2.002 0 0018 6zm0 4H14V8h4zM8 20H7V2H5V20H4a2.0023 2.0023 0 00-2 2v2a2.0023 2.0023 0 002 2H5v4H7V26H8a2.0023 2.0023 0 002-2V22A2.0023 2.0023 0 008 20zm0 4H4V22H8z\",\n transform: \"translate(0 .005)\"\n })), children);\n});\nvar AudioConsole16 = /*#__PURE__*/React.forwardRef(function AudioConsole16(_ref162, ref) {\n var children = _ref162.children,\n rest = _objectWithoutProperties(_ref162, _excluded162);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path212 || (_path212 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 14H27V2H25V14H24a2.0019 2.0019 0 00-2 2v2a2.0023 2.0023 0 002 2h1V30h2V20h1a2.0027 2.0027 0 002-2V16A2.0023 2.0023 0 0028 14zm0 4H24V16h4zM18 6H17V2H15V6H14a2.0019 2.0019 0 00-2 2v2a2.0019 2.0019 0 002 2h1V30h2V12h1a2.002 2.002 0 002-2V8A2.002 2.002 0 0018 6zm0 4H14V8h4zM8 20H7V2H5V20H4a2.0023 2.0023 0 00-2 2v2a2.0023 2.0023 0 002 2H5v4H7V26H8a2.0023 2.0023 0 002-2V22A2.0023 2.0023 0 008 20zm0 4H4V22H8z\",\n transform: \"translate(0 .005)\"\n })), children);\n});\nvar AugmentedReality32 = /*#__PURE__*/React.forwardRef(function AugmentedReality32(_ref163, ref) {\n var children = _ref163.children,\n rest = _objectWithoutProperties(_ref163, _excluded163);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path213 || (_path213 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.4473,9.1055l-6-3a1.0008,1.0008,0,0,0-.8946,0l-6,3A1,1,0,0,0,14,10v7a1,1,0,0,0,.5527.8945l6,3a1.001,1.001,0,0,0,.8946,0l6-3A1,1,0,0,0,28,17V10A1,1,0,0,0,27.4473,9.1055ZM21,8.1182,24.7637,10,21,11.8818,17.2363,10Zm-5,3.5,4,2v4.7636l-4-2Zm6,6.7636V13.6182l4-2v4.7636Z\"\n })), _circle5 || (_circle5 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"13.5\",\n cy: \"24.5\",\n r: \"1.5\"\n })), _path214 || (_path214 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,30H7a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,7,2H20V4H7V28H20V24h2v4A2.0023,2.0023,0,0,1,20,30Z\"\n })), children);\n});\nvar AugmentedReality24 = /*#__PURE__*/React.forwardRef(function AugmentedReality24(_ref164, ref) {\n var children = _ref164.children,\n rest = _objectWithoutProperties(_ref164, _excluded164);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path215 || (_path215 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.4473,9.1055l-6-3a1.0008,1.0008,0,0,0-.8946,0l-6,3A1,1,0,0,0,14,10v7a1,1,0,0,0,.5527.8945l6,3a1.001,1.001,0,0,0,.8946,0l6-3A1,1,0,0,0,28,17V10A1,1,0,0,0,27.4473,9.1055ZM21,8.1182,24.7637,10,21,11.8818,17.2363,10Zm-5,3.5,4,2v4.7636l-4-2Zm6,6.7636V13.6182l4-2v4.7636Z\"\n })), _circle6 || (_circle6 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"13.5\",\n cy: \"24.5\",\n r: \"1.5\"\n })), _path216 || (_path216 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,30H7a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,7,2H20V4H7V28H20V24h2v4A2.0023,2.0023,0,0,1,20,30Z\"\n })), children);\n});\nvar AugmentedReality20 = /*#__PURE__*/React.forwardRef(function AugmentedReality20(_ref165, ref) {\n var children = _ref165.children,\n rest = _objectWithoutProperties(_ref165, _excluded165);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path217 || (_path217 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.4473,9.1055l-6-3a1.0008,1.0008,0,0,0-.8946,0l-6,3A1,1,0,0,0,14,10v7a1,1,0,0,0,.5527.8945l6,3a1.001,1.001,0,0,0,.8946,0l6-3A1,1,0,0,0,28,17V10A1,1,0,0,0,27.4473,9.1055ZM21,8.1182,24.7637,10,21,11.8818,17.2363,10Zm-5,3.5,4,2v4.7636l-4-2Zm6,6.7636V13.6182l4-2v4.7636Z\"\n })), _circle7 || (_circle7 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"13.5\",\n cy: \"24.5\",\n r: \"1.5\"\n })), _path218 || (_path218 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,30H7a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,7,2H20V4H7V28H20V24h2v4A2.0023,2.0023,0,0,1,20,30Z\"\n })), children);\n});\nvar AugmentedReality16 = /*#__PURE__*/React.forwardRef(function AugmentedReality16(_ref166, ref) {\n var children = _ref166.children,\n rest = _objectWithoutProperties(_ref166, _excluded166);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path219 || (_path219 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.4473,9.1055l-6-3a1.0008,1.0008,0,0,0-.8946,0l-6,3A1,1,0,0,0,14,10v7a1,1,0,0,0,.5527.8945l6,3a1.001,1.001,0,0,0,.8946,0l6-3A1,1,0,0,0,28,17V10A1,1,0,0,0,27.4473,9.1055ZM21,8.1182,24.7637,10,21,11.8818,17.2363,10Zm-5,3.5,4,2v4.7636l-4-2Zm6,6.7636V13.6182l4-2v4.7636Z\"\n })), _circle8 || (_circle8 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"13.5\",\n cy: \"24.5\",\n r: \"1.5\"\n })), _path220 || (_path220 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,30H7a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,7,2H20V4H7V28H20V24h2v4A2.0023,2.0023,0,0,1,20,30Z\"\n })), children);\n});\nvar WatsonHealthAutoScroll32 = /*#__PURE__*/React.forwardRef(function WatsonHealthAutoScroll32(_ref167, ref) {\n var children = _ref167.children,\n rest = _objectWithoutProperties(_ref167, _excluded167);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path221 || (_path221 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 16a4 4 0 104-4A4 4 0 0012 16zm6 0a2 2 0 11-2-2A2 2 0 0118 16zM16 27.17L10.4 21.58 9 23 16 30 23 23 21.59 21.59 16 27.17zM16 4.83L21.58 10.4 23 9 16 2 9 9 10.41 10.41 16 4.83z\"\n })), children);\n});\nvar WatsonHealthAutoScroll24 = /*#__PURE__*/React.forwardRef(function WatsonHealthAutoScroll24(_ref168, ref) {\n var children = _ref168.children,\n rest = _objectWithoutProperties(_ref168, _excluded168);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path222 || (_path222 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 16a4 4 0 104-4A4 4 0 0012 16zm6 0a2 2 0 11-2-2A2 2 0 0118 16zM16 27.17L10.4 21.58 9 23 16 30 23 23 21.59 21.59 16 27.17zM16 4.83L21.58 10.4 23 9 16 2 9 9 10.41 10.41 16 4.83z\"\n })), children);\n});\nvar WatsonHealthAutoScroll20 = /*#__PURE__*/React.forwardRef(function WatsonHealthAutoScroll20(_ref169, ref) {\n var children = _ref169.children,\n rest = _objectWithoutProperties(_ref169, _excluded169);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path223 || (_path223 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 16a4 4 0 104-4A4 4 0 0012 16zm6 0a2 2 0 11-2-2A2 2 0 0118 16zM16 27.17L10.4 21.58 9 23 16 30 23 23 21.59 21.59 16 27.17zM16 4.83L21.58 10.4 23 9 16 2 9 9 10.41 10.41 16 4.83z\"\n })), children);\n});\nvar WatsonHealthAutoScroll16 = /*#__PURE__*/React.forwardRef(function WatsonHealthAutoScroll16(_ref170, ref) {\n var children = _ref170.children,\n rest = _objectWithoutProperties(_ref170, _excluded170);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path224 || (_path224 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 16a4 4 0 104-4A4 4 0 0012 16zm6 0a2 2 0 11-2-2A2 2 0 0118 16zM16 27.17L10.4 21.58 9 23 16 30 23 23 21.59 21.59 16 27.17zM16 4.83L21.58 10.4 23 9 16 2 9 9 10.41 10.41 16 4.83z\"\n })), children);\n});\nvar Automatic32 = /*#__PURE__*/React.forwardRef(function Automatic32(_ref171, ref) {\n var children = _ref171.children,\n rest = _objectWithoutProperties(_ref171, _excluded171);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path225 || (_path225 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 16H22a2.002 2.002 0 00-2 2V30h2V25h4v5h2V18A2.002 2.002 0 0026 16zm-4 7V18h4v5zM16 27a10.9862 10.9862 0 01-9.2156-5H12V20H4v8H6V24.3149A13.0239 13.0239 0 0016 29zM20 10h5.2155A10.9973 10.9973 0 005 16H3A13.0048 13.0048 0 0126 7.6849V4h2v8H20z\"\n })), children);\n});\nvar Automatic24 = /*#__PURE__*/React.forwardRef(function Automatic24(_ref172, ref) {\n var children = _ref172.children,\n rest = _objectWithoutProperties(_ref172, _excluded172);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path226 || (_path226 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 16H22a2.002 2.002 0 00-2 2V30h2V25h4v5h2V18A2.002 2.002 0 0026 16zm-4 7V18h4v5zM16 27a10.9862 10.9862 0 01-9.2156-5H12V20H4v8H6V24.3149A13.0239 13.0239 0 0016 29zM20 10h5.2155A10.9973 10.9973 0 005 16H3A13.0048 13.0048 0 0126 7.6849V4h2v8H20z\"\n })), children);\n});\nvar Automatic20 = /*#__PURE__*/React.forwardRef(function Automatic20(_ref173, ref) {\n var children = _ref173.children,\n rest = _objectWithoutProperties(_ref173, _excluded173);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path227 || (_path227 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 16H22a2.002 2.002 0 00-2 2V30h2V25h4v5h2V18A2.002 2.002 0 0026 16zm-4 7V18h4v5zM16 27a10.9862 10.9862 0 01-9.2156-5H12V20H4v8H6V24.3149A13.0239 13.0239 0 0016 29zM20 10h5.2155A10.9973 10.9973 0 005 16H3A13.0048 13.0048 0 0126 7.6849V4h2v8H20z\"\n })), children);\n});\nvar Automatic16 = /*#__PURE__*/React.forwardRef(function Automatic16(_ref174, ref) {\n var children = _ref174.children,\n rest = _objectWithoutProperties(_ref174, _excluded174);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path228 || (_path228 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 16H22a2.002 2.002 0 00-2 2V30h2V25h4v5h2V18A2.002 2.002 0 0026 16zm-4 7V18h4v5zM16 27a10.9862 10.9862 0 01-9.2156-5H12V20H4v8H6V24.3149A13.0239 13.0239 0 0016 29zM20 10h5.2155A10.9973 10.9973 0 005 16H3A13.0048 13.0048 0 0126 7.6849V4h2v8H20z\"\n })), children);\n});\nvar Autoscaling32 = /*#__PURE__*/React.forwardRef(function Autoscaling32(_ref175, ref) {\n var children = _ref175.children,\n rest = _objectWithoutProperties(_ref175, _excluded175);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path229 || (_path229 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,28H12V26H22V10H6V20H4V10A2.0021,2.0021,0,0,1,6,8H22a2.0021,2.0021,0,0,1,2,2V26A2.0021,2.0021,0,0,1,22,28Z\"\n })), _path230 || (_path230 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,22H26V20h2V4H12V6H10V4a2.0021,2.0021,0,0,1,2-2H28a2.0021,2.0021,0,0,1,2,2V20A2.0021,2.0021,0,0,1,28,22Z\"\n })), _path231 || (_path231 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 14L10 16 14.586 16 3 27.586 4.414 29 16 17.414 16 22 18 22 18 14 10 14z\"\n })), children);\n});\nvar Autoscaling24 = /*#__PURE__*/React.forwardRef(function Autoscaling24(_ref176, ref) {\n var children = _ref176.children,\n rest = _objectWithoutProperties(_ref176, _excluded176);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path232 || (_path232 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,28H12V26H22V10H6V20H4V10A2.0021,2.0021,0,0,1,6,8H22a2.0021,2.0021,0,0,1,2,2V26A2.0021,2.0021,0,0,1,22,28Z\"\n })), _path233 || (_path233 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,22H26V20h2V4H12V6H10V4a2.0021,2.0021,0,0,1,2-2H28a2.0021,2.0021,0,0,1,2,2V20A2.0021,2.0021,0,0,1,28,22Z\"\n })), _path234 || (_path234 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 14L10 16 14.586 16 3 27.586 4.414 29 16 17.414 16 22 18 22 18 14 10 14z\"\n })), children);\n});\nvar Autoscaling20 = /*#__PURE__*/React.forwardRef(function Autoscaling20(_ref177, ref) {\n var children = _ref177.children,\n rest = _objectWithoutProperties(_ref177, _excluded177);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path235 || (_path235 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,28H12V26H22V10H6V20H4V10A2.0021,2.0021,0,0,1,6,8H22a2.0021,2.0021,0,0,1,2,2V26A2.0021,2.0021,0,0,1,22,28Z\"\n })), _path236 || (_path236 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,22H26V20h2V4H12V6H10V4a2.0021,2.0021,0,0,1,2-2H28a2.0021,2.0021,0,0,1,2,2V20A2.0021,2.0021,0,0,1,28,22Z\"\n })), _path237 || (_path237 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 14L10 16 14.586 16 3 27.586 4.414 29 16 17.414 16 22 18 22 18 14 10 14z\"\n })), children);\n});\nvar Autoscaling16 = /*#__PURE__*/React.forwardRef(function Autoscaling16(_ref178, ref) {\n var children = _ref178.children,\n rest = _objectWithoutProperties(_ref178, _excluded178);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path238 || (_path238 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,28H12V26H22V10H6V20H4V10A2.0021,2.0021,0,0,1,6,8H22a2.0021,2.0021,0,0,1,2,2V26A2.0021,2.0021,0,0,1,22,28Z\"\n })), _path239 || (_path239 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,22H26V20h2V4H12V6H10V4a2.0021,2.0021,0,0,1,2-2H28a2.0021,2.0021,0,0,1,2,2V20A2.0021,2.0021,0,0,1,28,22Z\"\n })), _path240 || (_path240 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 14L10 16 14.586 16 3 27.586 4.414 29 16 17.414 16 22 18 22 18 14 10 14z\"\n })), children);\n});\nvar Awake32 = /*#__PURE__*/React.forwardRef(function Awake32(_ref179, ref) {\n var children = _ref179.children,\n rest = _objectWithoutProperties(_ref179, _excluded179);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path241 || (_path241 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 2H17V6.96H15z\"\n })), _path242 || (_path242 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.67 6.85H26.630000000000003V8.85H21.67z\",\n transform: \"rotate(-45 24.142 7.85)\"\n })), _path243 || (_path243 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25.04 15H30V17H25.04z\"\n })), _path244 || (_path244 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.15 21.67H25.15V26.630000000000003H23.15z\",\n transform: \"rotate(-45 24.152 24.146)\"\n })), _path245 || (_path245 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 25.04H17V30H15z\"\n })), _path246 || (_path246 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5.37 23.15H10.33V25.15H5.37z\",\n transform: \"rotate(-45 7.86 24.144)\"\n })), _path247 || (_path247 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 15H6.96V17H2z\"\n })), _path248 || (_path248 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6.85 5.37H8.85V10.33H6.85z\",\n transform: \"rotate(-45 7.85 7.848)\"\n })), _path249 || (_path249 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,12a4,4,0,1,1-4,4,4,4,0,0,1,4-4m0-2a6,6,0,1,0,6,6,6,6,0,0,0-6-6Z\"\n })), children);\n});\nvar Awake24 = /*#__PURE__*/React.forwardRef(function Awake24(_ref180, ref) {\n var children = _ref180.children,\n rest = _objectWithoutProperties(_ref180, _excluded180);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path250 || (_path250 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 2H17V6.96H15z\"\n })), _path251 || (_path251 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.67 6.85H26.630000000000003V8.85H21.67z\",\n transform: \"rotate(-45 24.142 7.85)\"\n })), _path252 || (_path252 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25.04 15H30V17H25.04z\"\n })), _path253 || (_path253 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.15 21.67H25.15V26.630000000000003H23.15z\",\n transform: \"rotate(-45 24.152 24.146)\"\n })), _path254 || (_path254 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 25.04H17V30H15z\"\n })), _path255 || (_path255 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5.37 23.15H10.33V25.15H5.37z\",\n transform: \"rotate(-45 7.86 24.144)\"\n })), _path256 || (_path256 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 15H6.96V17H2z\"\n })), _path257 || (_path257 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6.85 5.37H8.85V10.33H6.85z\",\n transform: \"rotate(-45 7.85 7.848)\"\n })), _path258 || (_path258 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,12a4,4,0,1,1-4,4,4,4,0,0,1,4-4m0-2a6,6,0,1,0,6,6,6,6,0,0,0-6-6Z\"\n })), children);\n});\nvar Awake20 = /*#__PURE__*/React.forwardRef(function Awake20(_ref181, ref) {\n var children = _ref181.children,\n rest = _objectWithoutProperties(_ref181, _excluded181);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path259 || (_path259 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 2H17V6.96H15z\"\n })), _path260 || (_path260 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.67 6.85H26.630000000000003V8.85H21.67z\",\n transform: \"rotate(-45 24.142 7.85)\"\n })), _path261 || (_path261 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25.04 15H30V17H25.04z\"\n })), _path262 || (_path262 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.15 21.67H25.15V26.630000000000003H23.15z\",\n transform: \"rotate(-45 24.152 24.146)\"\n })), _path263 || (_path263 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 25.04H17V30H15z\"\n })), _path264 || (_path264 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5.37 23.15H10.33V25.15H5.37z\",\n transform: \"rotate(-45 7.86 24.144)\"\n })), _path265 || (_path265 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 15H6.96V17H2z\"\n })), _path266 || (_path266 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6.85 5.37H8.85V10.33H6.85z\",\n transform: \"rotate(-45 7.85 7.848)\"\n })), _path267 || (_path267 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,12a4,4,0,1,1-4,4,4,4,0,0,1,4-4m0-2a6,6,0,1,0,6,6,6,6,0,0,0-6-6Z\"\n })), children);\n});\nvar Awake16 = /*#__PURE__*/React.forwardRef(function Awake16(_ref182, ref) {\n var children = _ref182.children,\n rest = _objectWithoutProperties(_ref182, _excluded182);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path268 || (_path268 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7.5 1H8.5V3.5H7.5z\"\n })), _path269 || (_path269 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.8 3.4H13.3V4.4H10.8z\",\n transform: \"rotate(-45.001 12.074 3.922)\"\n })), _path270 || (_path270 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12.5 7.5H15V8.5H12.5z\"\n })), _path271 || (_path271 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.6 10.8H12.6V13.3H11.6z\",\n transform: \"rotate(-45.001 12.077 12.075)\"\n })), _path272 || (_path272 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7.5 12.5H8.5V15H7.5z\"\n })), _path273 || (_path273 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.7 11.6H5.2V12.6H2.7z\",\n transform: \"rotate(-45.001 3.929 12.078)\"\n })), _path274 || (_path274 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M1 7.5H3.5V8.5H1z\"\n })), _path275 || (_path275 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.4 2.7H4.4V5.2H3.4z\",\n transform: \"rotate(-45.001 3.926 3.925)\"\n })), _path276 || (_path276 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8,6c1.1,0,2,0.9,2,2s-0.9,2-2,2S6,9.1,6,8S6.9,6,8,6 M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z\"\n })), children);\n});\nvar BackToTop32 = /*#__PURE__*/React.forwardRef(function BackToTop32(_ref183, ref) {\n var children = _ref183.children,\n rest = _objectWithoutProperties(_ref183, _excluded183);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['BackToTop32']) {\n didWarnAboutDeprecation['BackToTop32'] = true;\n console.warn(\"The BackToTop32 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path277 || (_path277 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 14L6 24 7.4 25.4 16 16.8 24.6 25.4 26 24zM4 8H28V10H4z\"\n })), children);\n});\nvar BackToTop24 = /*#__PURE__*/React.forwardRef(function BackToTop24(_ref184, ref) {\n var children = _ref184.children,\n rest = _objectWithoutProperties(_ref184, _excluded184);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['BackToTop24']) {\n didWarnAboutDeprecation['BackToTop24'] = true;\n console.warn(\"The BackToTop24 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path278 || (_path278 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 14L6 24 7.4 25.4 16 16.8 24.6 25.4 26 24zM4 8H28V10H4z\"\n })), children);\n});\nvar BackToTop20 = /*#__PURE__*/React.forwardRef(function BackToTop20(_ref185, ref) {\n var children = _ref185.children,\n rest = _objectWithoutProperties(_ref185, _excluded185);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['BackToTop20']) {\n didWarnAboutDeprecation['BackToTop20'] = true;\n console.warn(\"The BackToTop20 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path279 || (_path279 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 14L6 24 7.4 25.4 16 16.8 24.6 25.4 26 24zM4 8H28V10H4z\"\n })), children);\n});\nvar BackToTop16 = /*#__PURE__*/React.forwardRef(function BackToTop16(_ref186, ref) {\n var children = _ref186.children,\n rest = _objectWithoutProperties(_ref186, _excluded186);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['BackToTop16']) {\n didWarnAboutDeprecation['BackToTop16'] = true;\n console.warn(\"The BackToTop16 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path280 || (_path280 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 14L6 24 7.4 25.4 16 16.8 24.6 25.4 26 24zM4 8H28V10H4z\"\n })), children);\n});\nvar Badge32 = /*#__PURE__*/React.forwardRef(function Badge32(_ref187, ref) {\n var children = _ref187.children,\n rest = _objectWithoutProperties(_ref187, _excluded187);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path281 || (_path281 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 2L24.593 5 28 5.414 25.5 7.667 26 11 23 9.125 20 11 20.5 7.667 18 5.414 21.5 5 23 2z\"\n })), _path282 || (_path282 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22.7168,13.249l-1.9375-.498A6.9942,6.9942,0,1,1,15.7505,4.22l.499-1.9365A8.99,8.99,0,0,0,8,17.689V30l6-4,6,4V17.7078A8.9627,8.9627,0,0,0,22.7168,13.249ZM18,26.2627l-4-2.6665-4,2.6665V19.05a8.9238,8.9238,0,0,0,8,.0062Z\"\n })), children);\n});\nvar Badge24 = /*#__PURE__*/React.forwardRef(function Badge24(_ref188, ref) {\n var children = _ref188.children,\n rest = _objectWithoutProperties(_ref188, _excluded188);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path283 || (_path283 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 2L24.593 5 28 5.414 25.5 7.667 26 11 23 9.125 20 11 20.5 7.667 18 5.414 21.5 5 23 2z\"\n })), _path284 || (_path284 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22.7168,13.249l-1.9375-.498A6.9942,6.9942,0,1,1,15.7505,4.22l.499-1.9365A8.99,8.99,0,0,0,8,17.689V30l6-4,6,4V17.7078A8.9627,8.9627,0,0,0,22.7168,13.249ZM18,26.2627l-4-2.6665-4,2.6665V19.05a8.9238,8.9238,0,0,0,8,.0062Z\"\n })), children);\n});\nvar Badge20 = /*#__PURE__*/React.forwardRef(function Badge20(_ref189, ref) {\n var children = _ref189.children,\n rest = _objectWithoutProperties(_ref189, _excluded189);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path285 || (_path285 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 2L24.593 5 28 5.414 25.5 7.667 26 11 23 9.125 20 11 20.5 7.667 18 5.414 21.5 5 23 2z\"\n })), _path286 || (_path286 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22.7168,13.249l-1.9375-.498A6.9942,6.9942,0,1,1,15.7505,4.22l.499-1.9365A8.99,8.99,0,0,0,8,17.689V30l6-4,6,4V17.7078A8.9627,8.9627,0,0,0,22.7168,13.249ZM18,26.2627l-4-2.6665-4,2.6665V19.05a8.9238,8.9238,0,0,0,8,.0062Z\"\n })), children);\n});\nvar Badge16 = /*#__PURE__*/React.forwardRef(function Badge16(_ref190, ref) {\n var children = _ref190.children,\n rest = _objectWithoutProperties(_ref190, _excluded190);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path287 || (_path287 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 2L24.593 5 28 5.414 25.5 7.667 26 11 23 9.125 20 11 20.5 7.667 18 5.414 21.5 5 23 2z\"\n })), _path288 || (_path288 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22.7168,13.249l-1.9375-.498A6.9942,6.9942,0,1,1,15.7505,4.22l.499-1.9365A8.99,8.99,0,0,0,8,17.689V30l6-4,6,4V17.7078A8.9627,8.9627,0,0,0,22.7168,13.249ZM18,26.2627l-4-2.6665-4,2.6665V19.05a8.9238,8.9238,0,0,0,8,.0062Z\"\n })), children);\n});\nvar BaggageClaim32 = /*#__PURE__*/React.forwardRef(function BaggageClaim32(_ref191, ref) {\n var children = _ref191.children,\n rest = _objectWithoutProperties(_ref191, _excluded191);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle9 || (_circle9 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"6\",\n cy: \"26\",\n r: \"2\"\n })), _path289 || (_path289 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,18H25V16a2.0023,2.0023,0,0,0-2-2H19a2.0023,2.0023,0,0,0-2,2v2H14a2.0023,2.0023,0,0,0-2,2v8a2.0023,2.0023,0,0,0,2,2H28a2.0023,2.0023,0,0,0,2-2V20A2.0023,2.0023,0,0,0,28,18Zm-9-2h4v2H19Zm9,12H14V20H28Z\"\n })), _path290 || (_path290 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,6h4v6h2V6h4v6h2V6h4v6h2V6.0049A2.0047,2.0047,0,0,0,25.9951,4H4.0049A2.0047,2.0047,0,0,0,2,6.0049v13.99A2.0047,2.0047,0,0,0,4.0049,22H10ZM8,20H4V6H8Z\"\n })), children);\n});\nvar BaggageClaim24 = /*#__PURE__*/React.forwardRef(function BaggageClaim24(_ref192, ref) {\n var children = _ref192.children,\n rest = _objectWithoutProperties(_ref192, _excluded192);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle10 || (_circle10 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"6\",\n cy: \"26\",\n r: \"2\"\n })), _path291 || (_path291 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,18H25V16a2.0023,2.0023,0,0,0-2-2H19a2.0023,2.0023,0,0,0-2,2v2H14a2.0023,2.0023,0,0,0-2,2v8a2.0023,2.0023,0,0,0,2,2H28a2.0023,2.0023,0,0,0,2-2V20A2.0023,2.0023,0,0,0,28,18Zm-9-2h4v2H19Zm9,12H14V20H28Z\"\n })), _path292 || (_path292 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,6h4v6h2V6h4v6h2V6h4v6h2V6.0049A2.0047,2.0047,0,0,0,25.9951,4H4.0049A2.0047,2.0047,0,0,0,2,6.0049v13.99A2.0047,2.0047,0,0,0,4.0049,22H10ZM8,20H4V6H8Z\"\n })), children);\n});\nvar BaggageClaim20 = /*#__PURE__*/React.forwardRef(function BaggageClaim20(_ref193, ref) {\n var children = _ref193.children,\n rest = _objectWithoutProperties(_ref193, _excluded193);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle11 || (_circle11 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"6\",\n cy: \"26\",\n r: \"2\"\n })), _path293 || (_path293 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,18H25V16a2.0023,2.0023,0,0,0-2-2H19a2.0023,2.0023,0,0,0-2,2v2H14a2.0023,2.0023,0,0,0-2,2v8a2.0023,2.0023,0,0,0,2,2H28a2.0023,2.0023,0,0,0,2-2V20A2.0023,2.0023,0,0,0,28,18Zm-9-2h4v2H19Zm9,12H14V20H28Z\"\n })), _path294 || (_path294 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,6h4v6h2V6h4v6h2V6h4v6h2V6.0049A2.0047,2.0047,0,0,0,25.9951,4H4.0049A2.0047,2.0047,0,0,0,2,6.0049v13.99A2.0047,2.0047,0,0,0,4.0049,22H10ZM8,20H4V6H8Z\"\n })), children);\n});\nvar BaggageClaim16 = /*#__PURE__*/React.forwardRef(function BaggageClaim16(_ref194, ref) {\n var children = _ref194.children,\n rest = _objectWithoutProperties(_ref194, _excluded194);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle12 || (_circle12 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"6\",\n cy: \"26\",\n r: \"2\"\n })), _path295 || (_path295 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,18H25V16a2.0023,2.0023,0,0,0-2-2H19a2.0023,2.0023,0,0,0-2,2v2H14a2.0023,2.0023,0,0,0-2,2v8a2.0023,2.0023,0,0,0,2,2H28a2.0023,2.0023,0,0,0,2-2V20A2.0023,2.0023,0,0,0,28,18Zm-9-2h4v2H19Zm9,12H14V20H28Z\"\n })), _path296 || (_path296 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,6h4v6h2V6h4v6h2V6h4v6h2V6.0049A2.0047,2.0047,0,0,0,25.9951,4H4.0049A2.0047,2.0047,0,0,0,2,6.0049v13.99A2.0047,2.0047,0,0,0,4.0049,22H10ZM8,20H4V6H8Z\"\n })), children);\n});\nvar Bar32 = /*#__PURE__*/React.forwardRef(function Bar32(_ref195, ref) {\n var children = _ref195.children,\n rest = _objectWithoutProperties(_ref195, _excluded195);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path297 || (_path297 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25,11H15a1,1,0,0,0-1,1v4a6.0046,6.0046,0,0,0,5,5.91V28H16v2h8V28H21V21.91A6.0046,6.0046,0,0,0,26,16V12A1,1,0,0,0,25,11Zm-1,5a4,4,0,0,1-8,0V13h8Z\"\n })), _path298 || (_path298 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15,1H10A1,1,0,0,0,9,2V9.3706A6.09,6.09,0,0,0,6,15V29a1,1,0,0,0,1,1h5V28H8V15c0-3.1875,2.231-4.02,2.3164-4.0513L11,10.7207V3h3V8h2V2A1,1,0,0,0,15,1Z\"\n })), children);\n});\nvar Bar24 = /*#__PURE__*/React.forwardRef(function Bar24(_ref196, ref) {\n var children = _ref196.children,\n rest = _objectWithoutProperties(_ref196, _excluded196);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path299 || (_path299 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25,11H15a1,1,0,0,0-1,1v4a6.0046,6.0046,0,0,0,5,5.91V28H16v2h8V28H21V21.91A6.0046,6.0046,0,0,0,26,16V12A1,1,0,0,0,25,11Zm-1,5a4,4,0,0,1-8,0V13h8Z\"\n })), _path300 || (_path300 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15,1H10A1,1,0,0,0,9,2V9.3706A6.09,6.09,0,0,0,6,15V29a1,1,0,0,0,1,1h5V28H8V15c0-3.1875,2.231-4.02,2.3164-4.0513L11,10.7207V3h3V8h2V2A1,1,0,0,0,15,1Z\"\n })), children);\n});\nvar Bar20 = /*#__PURE__*/React.forwardRef(function Bar20(_ref197, ref) {\n var children = _ref197.children,\n rest = _objectWithoutProperties(_ref197, _excluded197);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path301 || (_path301 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25,11H15a1,1,0,0,0-1,1v4a6.0046,6.0046,0,0,0,5,5.91V28H16v2h8V28H21V21.91A6.0046,6.0046,0,0,0,26,16V12A1,1,0,0,0,25,11Zm-1,5a4,4,0,0,1-8,0V13h8Z\"\n })), _path302 || (_path302 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15,1H10A1,1,0,0,0,9,2V9.3706A6.09,6.09,0,0,0,6,15V29a1,1,0,0,0,1,1h5V28H8V15c0-3.1875,2.231-4.02,2.3164-4.0513L11,10.7207V3h3V8h2V2A1,1,0,0,0,15,1Z\"\n })), children);\n});\nvar Bar16 = /*#__PURE__*/React.forwardRef(function Bar16(_ref198, ref) {\n var children = _ref198.children,\n rest = _objectWithoutProperties(_ref198, _excluded198);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path303 || (_path303 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25,11H15a1,1,0,0,0-1,1v4a6.0046,6.0046,0,0,0,5,5.91V28H16v2h8V28H21V21.91A6.0046,6.0046,0,0,0,26,16V12A1,1,0,0,0,25,11Zm-1,5a4,4,0,0,1-8,0V13h8Z\"\n })), _path304 || (_path304 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15,1H10A1,1,0,0,0,9,2V9.3706A6.09,6.09,0,0,0,6,15V29a1,1,0,0,0,1,1h5V28H8V15c0-3.1875,2.231-4.02,2.3164-4.0513L11,10.7207V3h3V8h2V2A1,1,0,0,0,15,1Z\"\n })), children);\n});\nvar Barcode32 = /*#__PURE__*/React.forwardRef(function Barcode32(_ref199, ref) {\n var children = _ref199.children,\n rest = _objectWithoutProperties(_ref199, _excluded199);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path305 || (_path305 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 6H4V28H2zM12 6H14V26H12zM6 6H10V26H6zM16 6H20V26H16zM22 6H26V26H22zM28 6H30V28H28z\"\n })), children);\n});\nvar Barcode24 = /*#__PURE__*/React.forwardRef(function Barcode24(_ref200, ref) {\n var children = _ref200.children,\n rest = _objectWithoutProperties(_ref200, _excluded200);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path306 || (_path306 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 6H4V28H2zM12 6H14V26H12zM6 6H10V26H6zM16 6H20V26H16zM22 6H26V26H22zM28 6H30V28H28z\"\n })), children);\n});\nvar Barcode20 = /*#__PURE__*/React.forwardRef(function Barcode20(_ref201, ref) {\n var children = _ref201.children,\n rest = _objectWithoutProperties(_ref201, _excluded201);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path307 || (_path307 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 6H4V28H2zM12 6H14V26H12zM6 6H10V26H6zM16 6H20V26H16zM22 6H26V26H22zM28 6H30V28H28z\"\n })), children);\n});\nvar Barcode16 = /*#__PURE__*/React.forwardRef(function Barcode16(_ref202, ref) {\n var children = _ref202.children,\n rest = _objectWithoutProperties(_ref202, _excluded202);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path308 || (_path308 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 6H4V28H2zM12 6H14V26H12zM6 6H10V26H6zM16 6H20V26H16zM22 6H26V26H22zM28 6H30V28H28z\"\n })), children);\n});\nvar BareMetalServer32 = /*#__PURE__*/React.forwardRef(function BareMetalServer32(_ref203, ref) {\n var children = _ref203.children,\n rest = _objectWithoutProperties(_ref203, _excluded203);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle13 || (_circle13 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"9\",\n cy: \"6\",\n r: \"1\"\n })), _path309 || (_path309 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,10H6A2.0021,2.0021,0,0,1,4,8V4A2.0021,2.0021,0,0,1,6,2H26a2.0021,2.0021,0,0,1,2,2V8A2.0021,2.0021,0,0,1,26,10ZM6,4V8H26V4Z\"\n })), _circle14 || (_circle14 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"9\",\n cy: \"16\",\n r: \"1\"\n })), _path310 || (_path310 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,20H6a2.0021,2.0021,0,0,1-2-2V14a2.0021,2.0021,0,0,1,2-2H26a2.0021,2.0021,0,0,1,2,2v4A2.0021,2.0021,0,0,1,26,20ZM6,14v4H26V14Z\"\n })), _circle15 || (_circle15 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"9\",\n cy: \"26\",\n r: \"1\"\n })), _path311 || (_path311 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0021,2.0021,0,0,1-2-2V24a2.0021,2.0021,0,0,1,2-2H26a2.0021,2.0021,0,0,1,2,2v4A2.0021,2.0021,0,0,1,26,30ZM6,24v4H26V24Z\"\n })), children);\n});\nvar BareMetalServer24 = /*#__PURE__*/React.forwardRef(function BareMetalServer24(_ref204, ref) {\n var children = _ref204.children,\n rest = _objectWithoutProperties(_ref204, _excluded204);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle16 || (_circle16 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"9\",\n cy: \"6\",\n r: \"1\"\n })), _path312 || (_path312 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,10H6A2.0021,2.0021,0,0,1,4,8V4A2.0021,2.0021,0,0,1,6,2H26a2.0021,2.0021,0,0,1,2,2V8A2.0021,2.0021,0,0,1,26,10ZM6,4V8H26V4Z\"\n })), _circle17 || (_circle17 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"9\",\n cy: \"16\",\n r: \"1\"\n })), _path313 || (_path313 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,20H6a2.0021,2.0021,0,0,1-2-2V14a2.0021,2.0021,0,0,1,2-2H26a2.0021,2.0021,0,0,1,2,2v4A2.0021,2.0021,0,0,1,26,20ZM6,14v4H26V14Z\"\n })), _circle18 || (_circle18 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"9\",\n cy: \"26\",\n r: \"1\"\n })), _path314 || (_path314 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0021,2.0021,0,0,1-2-2V24a2.0021,2.0021,0,0,1,2-2H26a2.0021,2.0021,0,0,1,2,2v4A2.0021,2.0021,0,0,1,26,30ZM6,24v4H26V24Z\"\n })), children);\n});\nvar BareMetalServer20 = /*#__PURE__*/React.forwardRef(function BareMetalServer20(_ref205, ref) {\n var children = _ref205.children,\n rest = _objectWithoutProperties(_ref205, _excluded205);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle19 || (_circle19 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"9\",\n cy: \"6\",\n r: \"1\"\n })), _path315 || (_path315 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,10H6A2.0021,2.0021,0,0,1,4,8V4A2.0021,2.0021,0,0,1,6,2H26a2.0021,2.0021,0,0,1,2,2V8A2.0021,2.0021,0,0,1,26,10ZM6,4V8H26V4Z\"\n })), _circle20 || (_circle20 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"9\",\n cy: \"16\",\n r: \"1\"\n })), _path316 || (_path316 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,20H6a2.0021,2.0021,0,0,1-2-2V14a2.0021,2.0021,0,0,1,2-2H26a2.0021,2.0021,0,0,1,2,2v4A2.0021,2.0021,0,0,1,26,20ZM6,14v4H26V14Z\"\n })), _circle21 || (_circle21 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"9\",\n cy: \"26\",\n r: \"1\"\n })), _path317 || (_path317 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0021,2.0021,0,0,1-2-2V24a2.0021,2.0021,0,0,1,2-2H26a2.0021,2.0021,0,0,1,2,2v4A2.0021,2.0021,0,0,1,26,30ZM6,24v4H26V24Z\"\n })), children);\n});\nvar BareMetalServer16 = /*#__PURE__*/React.forwardRef(function BareMetalServer16(_ref206, ref) {\n var children = _ref206.children,\n rest = _objectWithoutProperties(_ref206, _excluded206);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle22 || (_circle22 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"9\",\n cy: \"6\",\n r: \"1\"\n })), _path318 || (_path318 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,10H6A2.0021,2.0021,0,0,1,4,8V4A2.0021,2.0021,0,0,1,6,2H26a2.0021,2.0021,0,0,1,2,2V8A2.0021,2.0021,0,0,1,26,10ZM6,4V8H26V4Z\"\n })), _circle23 || (_circle23 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"9\",\n cy: \"16\",\n r: \"1\"\n })), _path319 || (_path319 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,20H6a2.0021,2.0021,0,0,1-2-2V14a2.0021,2.0021,0,0,1,2-2H26a2.0021,2.0021,0,0,1,2,2v4A2.0021,2.0021,0,0,1,26,20ZM6,14v4H26V14Z\"\n })), _circle24 || (_circle24 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"9\",\n cy: \"26\",\n r: \"1\"\n })), _path320 || (_path320 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0021,2.0021,0,0,1-2-2V24a2.0021,2.0021,0,0,1,2-2H26a2.0021,2.0021,0,0,1,2,2v4A2.0021,2.0021,0,0,1,26,30ZM6,24v4H26V24Z\"\n })), children);\n});\nvar QBarrier32 = /*#__PURE__*/React.forwardRef(function QBarrier32(_ref207, ref) {\n var children = _ref207.children,\n rest = _objectWithoutProperties(_ref207, _excluded207);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path321 || (_path321 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 5H17V9H15zM15 11H17V15H15zM15 17H17V21H15zM15 23H17V27H15z\"\n })), children);\n});\nvar QBarrier24 = /*#__PURE__*/React.forwardRef(function QBarrier24(_ref208, ref) {\n var children = _ref208.children,\n rest = _objectWithoutProperties(_ref208, _excluded208);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path322 || (_path322 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 5H17V9H15zM15 11H17V15H15zM15 17H17V21H15zM15 23H17V27H15z\"\n })), children);\n});\nvar QBarrier20 = /*#__PURE__*/React.forwardRef(function QBarrier20(_ref209, ref) {\n var children = _ref209.children,\n rest = _objectWithoutProperties(_ref209, _excluded209);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path323 || (_path323 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 5H17V9H15zM15 11H17V15H15zM15 17H17V21H15zM15 23H17V27H15z\"\n })), children);\n});\nvar QBarrier16 = /*#__PURE__*/React.forwardRef(function QBarrier16(_ref210, ref) {\n var children = _ref210.children,\n rest = _objectWithoutProperties(_ref210, _excluded210);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path324 || (_path324 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 5H17V9H15zM15 11H17V15H15zM15 17H17V21H15zM15 23H17V27H15z\"\n })), children);\n});\nvar Basketball32 = /*#__PURE__*/React.forwardRef(function Basketball32(_ref211, ref) {\n var children = _ref211.children,\n rest = _objectWithoutProperties(_ref211, _excluded211);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path325 || (_path325 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2ZM27.9492,15H22.041a14.4088,14.4088,0,0,1,2.7383-7.1533A11.9392,11.9392,0,0,1,27.9492,15ZM17,15V4.0508a11.9181,11.9181,0,0,1,6.2874,2.4375A16.2646,16.2646,0,0,0,20.04,15Zm-2,0H11.96A16.2646,16.2646,0,0,0,8.7126,6.4883,11.9181,11.9181,0,0,1,15,4.0508Zm0,2V27.9492a11.9181,11.9181,0,0,1-6.2874-2.4375A16.2646,16.2646,0,0,0,11.96,17Zm2,0h3.04a16.2646,16.2646,0,0,0,3.2476,8.5117A11.9181,11.9181,0,0,1,17,27.9492ZM7.2207,7.8467A14.4088,14.4088,0,0,1,9.959,15H4.0508A11.9392,11.9392,0,0,1,7.2207,7.8467ZM4.0508,17H9.959a14.4088,14.4088,0,0,1-2.7383,7.1533A11.9392,11.9392,0,0,1,4.0508,17Zm20.7285,7.1533A14.4088,14.4088,0,0,1,22.041,17h5.9082A11.9392,11.9392,0,0,1,24.7793,24.1533Z\"\n })), children);\n});\nvar Basketball24 = /*#__PURE__*/React.forwardRef(function Basketball24(_ref212, ref) {\n var children = _ref212.children,\n rest = _objectWithoutProperties(_ref212, _excluded212);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path326 || (_path326 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2ZM27.9492,15H22.041a14.4088,14.4088,0,0,1,2.7383-7.1533A11.9392,11.9392,0,0,1,27.9492,15ZM17,15V4.0508a11.9181,11.9181,0,0,1,6.2874,2.4375A16.2646,16.2646,0,0,0,20.04,15Zm-2,0H11.96A16.2646,16.2646,0,0,0,8.7126,6.4883,11.9181,11.9181,0,0,1,15,4.0508Zm0,2V27.9492a11.9181,11.9181,0,0,1-6.2874-2.4375A16.2646,16.2646,0,0,0,11.96,17Zm2,0h3.04a16.2646,16.2646,0,0,0,3.2476,8.5117A11.9181,11.9181,0,0,1,17,27.9492ZM7.2207,7.8467A14.4088,14.4088,0,0,1,9.959,15H4.0508A11.9392,11.9392,0,0,1,7.2207,7.8467ZM4.0508,17H9.959a14.4088,14.4088,0,0,1-2.7383,7.1533A11.9392,11.9392,0,0,1,4.0508,17Zm20.7285,7.1533A14.4088,14.4088,0,0,1,22.041,17h5.9082A11.9392,11.9392,0,0,1,24.7793,24.1533Z\"\n })), children);\n});\nvar Basketball20 = /*#__PURE__*/React.forwardRef(function Basketball20(_ref213, ref) {\n var children = _ref213.children,\n rest = _objectWithoutProperties(_ref213, _excluded213);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path327 || (_path327 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2ZM27.9492,15H22.041a14.4088,14.4088,0,0,1,2.7383-7.1533A11.9392,11.9392,0,0,1,27.9492,15ZM17,15V4.0508a11.9181,11.9181,0,0,1,6.2874,2.4375A16.2646,16.2646,0,0,0,20.04,15Zm-2,0H11.96A16.2646,16.2646,0,0,0,8.7126,6.4883,11.9181,11.9181,0,0,1,15,4.0508Zm0,2V27.9492a11.9181,11.9181,0,0,1-6.2874-2.4375A16.2646,16.2646,0,0,0,11.96,17Zm2,0h3.04a16.2646,16.2646,0,0,0,3.2476,8.5117A11.9181,11.9181,0,0,1,17,27.9492ZM7.2207,7.8467A14.4088,14.4088,0,0,1,9.959,15H4.0508A11.9392,11.9392,0,0,1,7.2207,7.8467ZM4.0508,17H9.959a14.4088,14.4088,0,0,1-2.7383,7.1533A11.9392,11.9392,0,0,1,4.0508,17Zm20.7285,7.1533A14.4088,14.4088,0,0,1,22.041,17h5.9082A11.9392,11.9392,0,0,1,24.7793,24.1533Z\"\n })), children);\n});\nvar Basketball16 = /*#__PURE__*/React.forwardRef(function Basketball16(_ref214, ref) {\n var children = _ref214.children,\n rest = _objectWithoutProperties(_ref214, _excluded214);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path328 || (_path328 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2ZM27.9492,15H22.041a14.4088,14.4088,0,0,1,2.7383-7.1533A11.9392,11.9392,0,0,1,27.9492,15ZM17,15V4.0508a11.9181,11.9181,0,0,1,6.2874,2.4375A16.2646,16.2646,0,0,0,20.04,15Zm-2,0H11.96A16.2646,16.2646,0,0,0,8.7126,6.4883,11.9181,11.9181,0,0,1,15,4.0508Zm0,2V27.9492a11.9181,11.9181,0,0,1-6.2874-2.4375A16.2646,16.2646,0,0,0,11.96,17Zm2,0h3.04a16.2646,16.2646,0,0,0,3.2476,8.5117A11.9181,11.9181,0,0,1,17,27.9492ZM7.2207,7.8467A14.4088,14.4088,0,0,1,9.959,15H4.0508A11.9392,11.9392,0,0,1,7.2207,7.8467ZM4.0508,17H9.959a14.4088,14.4088,0,0,1-2.7383,7.1533A11.9392,11.9392,0,0,1,4.0508,17Zm20.7285,7.1533A14.4088,14.4088,0,0,1,22.041,17h5.9082A11.9392,11.9392,0,0,1,24.7793,24.1533Z\"\n })), children);\n});\nvar BastionHost32 = /*#__PURE__*/React.forwardRef(function BastionHost32(_ref215, ref) {\n var children = _ref215.children,\n rest = _objectWithoutProperties(_ref215, _excluded215);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path329 || (_path329 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.5273,2.709A1.9955,1.9955,0,0,0,26,2H23.3091a1.5,1.5,0,0,0-1.3419.8294L21.3818,4H20V3.5A1.5,1.5,0,0,0,18.5,2h-5A1.5,1.5,0,0,0,12,3.5V4H10.6182l-.585-1.17A1.5017,1.5017,0,0,0,8.69,2H6A2,2,0,0,0,4.0283,4.333L4.7324,8.5A3,3,0,0,0,7.69,11H8V23a3.0033,3.0033,0,0,0-3,3v4H27V26a3.0033,3.0033,0,0,0-3-3V11h.31a3,3,0,0,0,2.9579-2.5l.7041-4.167A1.994,1.994,0,0,0,27.5273,2.709ZM25,26v2H7V26a1.0009,1.0009,0,0,1,1-1H24A1.0009,1.0009,0,0,1,25,26Zm-3-3H10V11H22ZM25.2959,8.167A.9976.9976,0,0,1,24.31,9H7.69a.9976.9976,0,0,1-.9863-.8335L6,4H8.3818l1,2H14V4h4V6h4.6172l1.001-2H26Z\"\n })), children);\n});\nvar BastionHost24 = /*#__PURE__*/React.forwardRef(function BastionHost24(_ref216, ref) {\n var children = _ref216.children,\n rest = _objectWithoutProperties(_ref216, _excluded216);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path330 || (_path330 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.5273,2.709A1.9955,1.9955,0,0,0,26,2H23.3091a1.5,1.5,0,0,0-1.3419.8294L21.3818,4H20V3.5A1.5,1.5,0,0,0,18.5,2h-5A1.5,1.5,0,0,0,12,3.5V4H10.6182l-.585-1.17A1.5017,1.5017,0,0,0,8.69,2H6A2,2,0,0,0,4.0283,4.333L4.7324,8.5A3,3,0,0,0,7.69,11H8V23a3.0033,3.0033,0,0,0-3,3v4H27V26a3.0033,3.0033,0,0,0-3-3V11h.31a3,3,0,0,0,2.9579-2.5l.7041-4.167A1.994,1.994,0,0,0,27.5273,2.709ZM25,26v2H7V26a1.0009,1.0009,0,0,1,1-1H24A1.0009,1.0009,0,0,1,25,26Zm-3-3H10V11H22ZM25.2959,8.167A.9976.9976,0,0,1,24.31,9H7.69a.9976.9976,0,0,1-.9863-.8335L6,4H8.3818l1,2H14V4h4V6h4.6172l1.001-2H26Z\"\n })), children);\n});\nvar BastionHost20 = /*#__PURE__*/React.forwardRef(function BastionHost20(_ref217, ref) {\n var children = _ref217.children,\n rest = _objectWithoutProperties(_ref217, _excluded217);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path331 || (_path331 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.5273,2.709A1.9955,1.9955,0,0,0,26,2H23.3091a1.5,1.5,0,0,0-1.3419.8294L21.3818,4H20V3.5A1.5,1.5,0,0,0,18.5,2h-5A1.5,1.5,0,0,0,12,3.5V4H10.6182l-.585-1.17A1.5017,1.5017,0,0,0,8.69,2H6A2,2,0,0,0,4.0283,4.333L4.7324,8.5A3,3,0,0,0,7.69,11H8V23a3.0033,3.0033,0,0,0-3,3v4H27V26a3.0033,3.0033,0,0,0-3-3V11h.31a3,3,0,0,0,2.9579-2.5l.7041-4.167A1.994,1.994,0,0,0,27.5273,2.709ZM25,26v2H7V26a1.0009,1.0009,0,0,1,1-1H24A1.0009,1.0009,0,0,1,25,26Zm-3-3H10V11H22ZM25.2959,8.167A.9976.9976,0,0,1,24.31,9H7.69a.9976.9976,0,0,1-.9863-.8335L6,4H8.3818l1,2H14V4h4V6h4.6172l1.001-2H26Z\"\n })), children);\n});\nvar BastionHost16 = /*#__PURE__*/React.forwardRef(function BastionHost16(_ref218, ref) {\n var children = _ref218.children,\n rest = _objectWithoutProperties(_ref218, _excluded218);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path332 || (_path332 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.5273,2.709A1.9955,1.9955,0,0,0,26,2H23.3091a1.5,1.5,0,0,0-1.3419.8294L21.3818,4H20V3.5A1.5,1.5,0,0,0,18.5,2h-5A1.5,1.5,0,0,0,12,3.5V4H10.6182l-.585-1.17A1.5017,1.5017,0,0,0,8.69,2H6A2,2,0,0,0,4.0283,4.333L4.7324,8.5A3,3,0,0,0,7.69,11H8V23a3.0033,3.0033,0,0,0-3,3v4H27V26a3.0033,3.0033,0,0,0-3-3V11h.31a3,3,0,0,0,2.9579-2.5l.7041-4.167A1.994,1.994,0,0,0,27.5273,2.709ZM25,26v2H7V26a1.0009,1.0009,0,0,1,1-1H24A1.0009,1.0009,0,0,1,25,26Zm-3-3H10V11H22ZM25.2959,8.167A.9976.9976,0,0,1,24.31,9H7.69a.9976.9976,0,0,1-.9863-.8335L6,4H8.3818l1,2H14V4h4V6h4.6172l1.001-2H26Z\"\n })), children);\n});\nvar Bat32 = /*#__PURE__*/React.forwardRef(function Bat32(_ref219, ref) {\n var children = _ref219.children,\n rest = _objectWithoutProperties(_ref219, _excluded219);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path333 || (_path333 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M31.9093,6.584A1,1,0,0,0,31,6c-4.7683,0-8.2607.8887-11,2.8438V3H18V6H14V3H12V8.8438C9.2608,6.8887,5.7684,6,1,6A1,1,0,0,0,.2437,7.6543C1.9454,9.6221,3,11.7041,3,16a1,1,0,0,0,1,1c2.7678,0,6,1.31,6,5a1.004,1.004,0,0,0,.9341.998C11.35,23.0273,15,23.3872,15,27a1,1,0,0,0,2,0c0-3.6128,3.65-3.9727,4.0622-4.002A1,1,0,0,0,22,22c0-3.69,3.2321-5,6-5a1,1,0,0,0,1-1c0-4.2959,1.0547-6.3779,2.7564-8.3457A1,1,0,0,0,31.9093,6.584Zm-4.893,8.46c-3.3857.3081-6.5534,2.229-6.97,6.0786A6.552,6.552,0,0,0,16,23.6094a6.552,6.552,0,0,0-4.0461-2.4864c-.4168-3.85-3.5845-5.7705-6.97-6.0786a13.2017,13.2017,0,0,0-1.9387-6.98c4.1318.2724,7.0327,1.4277,9.248,3.6425A1,1,0,0,0,14,11V8h4v3a1,1,0,0,0,1.707.707c2.2153-2.2148,5.1162-3.37,9.248-3.6425A13.2017,13.2017,0,0,0,27.0163,15.0444Z\"\n })), children);\n});\nvar Bat24 = /*#__PURE__*/React.forwardRef(function Bat24(_ref220, ref) {\n var children = _ref220.children,\n rest = _objectWithoutProperties(_ref220, _excluded220);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path334 || (_path334 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M31.9093,6.584A1,1,0,0,0,31,6c-4.7683,0-8.2607.8887-11,2.8438V3H18V6H14V3H12V8.8438C9.2608,6.8887,5.7684,6,1,6A1,1,0,0,0,.2437,7.6543C1.9454,9.6221,3,11.7041,3,16a1,1,0,0,0,1,1c2.7678,0,6,1.31,6,5a1.004,1.004,0,0,0,.9341.998C11.35,23.0273,15,23.3872,15,27a1,1,0,0,0,2,0c0-3.6128,3.65-3.9727,4.0622-4.002A1,1,0,0,0,22,22c0-3.69,3.2321-5,6-5a1,1,0,0,0,1-1c0-4.2959,1.0547-6.3779,2.7564-8.3457A1,1,0,0,0,31.9093,6.584Zm-4.893,8.46c-3.3857.3081-6.5534,2.229-6.97,6.0786A6.552,6.552,0,0,0,16,23.6094a6.552,6.552,0,0,0-4.0461-2.4864c-.4168-3.85-3.5845-5.7705-6.97-6.0786a13.2017,13.2017,0,0,0-1.9387-6.98c4.1318.2724,7.0327,1.4277,9.248,3.6425A1,1,0,0,0,14,11V8h4v3a1,1,0,0,0,1.707.707c2.2153-2.2148,5.1162-3.37,9.248-3.6425A13.2017,13.2017,0,0,0,27.0163,15.0444Z\"\n })), children);\n});\nvar Bat20 = /*#__PURE__*/React.forwardRef(function Bat20(_ref221, ref) {\n var children = _ref221.children,\n rest = _objectWithoutProperties(_ref221, _excluded221);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path335 || (_path335 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M31.9093,6.584A1,1,0,0,0,31,6c-4.7683,0-8.2607.8887-11,2.8438V3H18V6H14V3H12V8.8438C9.2608,6.8887,5.7684,6,1,6A1,1,0,0,0,.2437,7.6543C1.9454,9.6221,3,11.7041,3,16a1,1,0,0,0,1,1c2.7678,0,6,1.31,6,5a1.004,1.004,0,0,0,.9341.998C11.35,23.0273,15,23.3872,15,27a1,1,0,0,0,2,0c0-3.6128,3.65-3.9727,4.0622-4.002A1,1,0,0,0,22,22c0-3.69,3.2321-5,6-5a1,1,0,0,0,1-1c0-4.2959,1.0547-6.3779,2.7564-8.3457A1,1,0,0,0,31.9093,6.584Zm-4.893,8.46c-3.3857.3081-6.5534,2.229-6.97,6.0786A6.552,6.552,0,0,0,16,23.6094a6.552,6.552,0,0,0-4.0461-2.4864c-.4168-3.85-3.5845-5.7705-6.97-6.0786a13.2017,13.2017,0,0,0-1.9387-6.98c4.1318.2724,7.0327,1.4277,9.248,3.6425A1,1,0,0,0,14,11V8h4v3a1,1,0,0,0,1.707.707c2.2153-2.2148,5.1162-3.37,9.248-3.6425A13.2017,13.2017,0,0,0,27.0163,15.0444Z\"\n })), children);\n});\nvar Bat16 = /*#__PURE__*/React.forwardRef(function Bat16(_ref222, ref) {\n var children = _ref222.children,\n rest = _objectWithoutProperties(_ref222, _excluded222);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path336 || (_path336 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M31.9093,6.584A1,1,0,0,0,31,6c-4.7683,0-8.2607.8887-11,2.8438V3H18V6H14V3H12V8.8438C9.2608,6.8887,5.7684,6,1,6A1,1,0,0,0,.2437,7.6543C1.9454,9.6221,3,11.7041,3,16a1,1,0,0,0,1,1c2.7678,0,6,1.31,6,5a1.004,1.004,0,0,0,.9341.998C11.35,23.0273,15,23.3872,15,27a1,1,0,0,0,2,0c0-3.6128,3.65-3.9727,4.0622-4.002A1,1,0,0,0,22,22c0-3.69,3.2321-5,6-5a1,1,0,0,0,1-1c0-4.2959,1.0547-6.3779,2.7564-8.3457A1,1,0,0,0,31.9093,6.584Zm-4.893,8.46c-3.3857.3081-6.5534,2.229-6.97,6.0786A6.552,6.552,0,0,0,16,23.6094a6.552,6.552,0,0,0-4.0461-2.4864c-.4168-3.85-3.5845-5.7705-6.97-6.0786a13.2017,13.2017,0,0,0-1.9387-6.98c4.1318.2724,7.0327,1.4277,9.248,3.6425A1,1,0,0,0,14,11V8h4v3a1,1,0,0,0,1.707.707c2.2153-2.2148,5.1162-3.37,9.248-3.6425A13.2017,13.2017,0,0,0,27.0163,15.0444Z\"\n })), children);\n});\nvar BatteryCharging32 = /*#__PURE__*/React.forwardRef(function BatteryCharging32(_ref223, ref) {\n var children = _ref223.children,\n rest = _objectWithoutProperties(_ref223, _excluded223);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path337 || (_path337 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 11H26V10a2 2 0 00-2-2H20v2h4v3h3v6H24v3H19v2h5a2 2 0 002-2V21h1a2 2 0 002-2V13A2 2 0 0027 11zM11 22H6V10h6V8H6a2 2 0 00-2 2V22a2 2 0 002 2h5z\"\n })), _path338 || (_path338 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14.81 23.58L13.19 22.42 17.06 17 9.37 17 16.22 8.38 17.78 9.62 13.51 15 20.94 15 14.81 23.58z\"\n })), children);\n});\nvar BatteryCharging24 = /*#__PURE__*/React.forwardRef(function BatteryCharging24(_ref224, ref) {\n var children = _ref224.children,\n rest = _objectWithoutProperties(_ref224, _excluded224);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path339 || (_path339 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 11H26V10a2 2 0 00-2-2H20v2h4v3h3v6H24v3H19v2h5a2 2 0 002-2V21h1a2 2 0 002-2V13A2 2 0 0027 11zM11 22H6V10h6V8H6a2 2 0 00-2 2V22a2 2 0 002 2h5z\"\n })), _path340 || (_path340 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14.81 23.58L13.19 22.42 17.06 17 9.37 17 16.22 8.38 17.78 9.62 13.51 15 20.94 15 14.81 23.58z\"\n })), children);\n});\nvar BatteryCharging20 = /*#__PURE__*/React.forwardRef(function BatteryCharging20(_ref225, ref) {\n var children = _ref225.children,\n rest = _objectWithoutProperties(_ref225, _excluded225);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path341 || (_path341 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 11H26V10a2 2 0 00-2-2H20v2h4v3h3v6H24v3H19v2h5a2 2 0 002-2V21h1a2 2 0 002-2V13A2 2 0 0027 11zM11 22H6V10h6V8H6a2 2 0 00-2 2V22a2 2 0 002 2h5z\"\n })), _path342 || (_path342 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14.81 23.58L13.19 22.42 17.06 17 9.37 17 16.22 8.38 17.78 9.62 13.51 15 20.94 15 14.81 23.58z\"\n })), children);\n});\nvar BatteryCharging16 = /*#__PURE__*/React.forwardRef(function BatteryCharging16(_ref226, ref) {\n var children = _ref226.children,\n rest = _objectWithoutProperties(_ref226, _excluded226);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path343 || (_path343 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 11H26V10a2 2 0 00-2-2H20v2h4v3h3v6H24v3H19v2h5a2 2 0 002-2V21h1a2 2 0 002-2V13A2 2 0 0027 11zM11 22H6V10h6V8H6a2 2 0 00-2 2V22a2 2 0 002 2h5z\"\n })), _path344 || (_path344 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14.81 23.58L13.19 22.42 17.06 17 9.37 17 16.22 8.38 17.78 9.62 13.51 15 20.94 15 14.81 23.58z\"\n })), children);\n});\nvar BatteryEmpty32 = /*#__PURE__*/React.forwardRef(function BatteryEmpty32(_ref227, ref) {\n var children = _ref227.children,\n rest = _objectWithoutProperties(_ref227, _excluded227);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path345 || (_path345 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,24H6a2.0023,2.0023,0,0,1-2-2V10A2.002,2.002,0,0,1,6,8H24a2.0023,2.0023,0,0,1,2,2v1h1a2.0023,2.0023,0,0,1,2,2v6a2.0027,2.0027,0,0,1-2,2H26v1A2.0027,2.0027,0,0,1,24,24ZM6,10V22H24V19h3V13H24V10Z\"\n })), children);\n});\nvar BatteryEmpty24 = /*#__PURE__*/React.forwardRef(function BatteryEmpty24(_ref228, ref) {\n var children = _ref228.children,\n rest = _objectWithoutProperties(_ref228, _excluded228);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path346 || (_path346 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,24H6a2.0023,2.0023,0,0,1-2-2V10A2.002,2.002,0,0,1,6,8H24a2.0023,2.0023,0,0,1,2,2v1h1a2.0023,2.0023,0,0,1,2,2v6a2.0027,2.0027,0,0,1-2,2H26v1A2.0027,2.0027,0,0,1,24,24ZM6,10V22H24V19h3V13H24V10Z\"\n })), children);\n});\nvar BatteryEmpty20 = /*#__PURE__*/React.forwardRef(function BatteryEmpty20(_ref229, ref) {\n var children = _ref229.children,\n rest = _objectWithoutProperties(_ref229, _excluded229);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path347 || (_path347 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,24H6a2.0023,2.0023,0,0,1-2-2V10A2.002,2.002,0,0,1,6,8H24a2.0023,2.0023,0,0,1,2,2v1h1a2.0023,2.0023,0,0,1,2,2v6a2.0027,2.0027,0,0,1-2,2H26v1A2.0027,2.0027,0,0,1,24,24ZM6,10V22H24V19h3V13H24V10Z\"\n })), children);\n});\nvar BatteryEmpty16 = /*#__PURE__*/React.forwardRef(function BatteryEmpty16(_ref230, ref) {\n var children = _ref230.children,\n rest = _objectWithoutProperties(_ref230, _excluded230);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path348 || (_path348 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,24H6a2.0023,2.0023,0,0,1-2-2V10A2.002,2.002,0,0,1,6,8H24a2.0023,2.0023,0,0,1,2,2v1h1a2.0023,2.0023,0,0,1,2,2v6a2.0027,2.0027,0,0,1-2,2H26v1A2.0027,2.0027,0,0,1,24,24ZM6,10V22H24V19h3V13H24V10Z\"\n })), children);\n});\nvar BatteryFull32 = /*#__PURE__*/React.forwardRef(function BatteryFull32(_ref231, ref) {\n var children = _ref231.children,\n rest = _objectWithoutProperties(_ref231, _excluded231);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path349 || (_path349 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,24H6a2,2,0,0,1-2-2V10A2,2,0,0,1,6,8H24a2,2,0,0,1,2,2v1h1a2,2,0,0,1,2,2v6a2,2,0,0,1-2,2H26v1A2,2,0,0,1,24,24ZM6,10V22H24V19h3V13H24V10Z\"\n })), _path350 || (_path350 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 9H19V23H11z\",\n transform: \"rotate(90 15 16)\"\n })), children);\n});\nvar BatteryFull24 = /*#__PURE__*/React.forwardRef(function BatteryFull24(_ref232, ref) {\n var children = _ref232.children,\n rest = _objectWithoutProperties(_ref232, _excluded232);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path351 || (_path351 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,24H6a2,2,0,0,1-2-2V10A2,2,0,0,1,6,8H24a2,2,0,0,1,2,2v1h1a2,2,0,0,1,2,2v6a2,2,0,0,1-2,2H26v1A2,2,0,0,1,24,24ZM6,10V22H24V19h3V13H24V10Z\"\n })), _path352 || (_path352 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 9H19V23H11z\",\n transform: \"rotate(90 15 16)\"\n })), children);\n});\nvar BatteryFull20 = /*#__PURE__*/React.forwardRef(function BatteryFull20(_ref233, ref) {\n var children = _ref233.children,\n rest = _objectWithoutProperties(_ref233, _excluded233);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path353 || (_path353 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,24H6a2,2,0,0,1-2-2V10A2,2,0,0,1,6,8H24a2,2,0,0,1,2,2v1h1a2,2,0,0,1,2,2v6a2,2,0,0,1-2,2H26v1A2,2,0,0,1,24,24ZM6,10V22H24V19h3V13H24V10Z\"\n })), _path354 || (_path354 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 9H19V23H11z\",\n transform: \"rotate(90 15 16)\"\n })), children);\n});\nvar BatteryFull16 = /*#__PURE__*/React.forwardRef(function BatteryFull16(_ref234, ref) {\n var children = _ref234.children,\n rest = _objectWithoutProperties(_ref234, _excluded234);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path355 || (_path355 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,24H6a2,2,0,0,1-2-2V10A2,2,0,0,1,6,8H24a2,2,0,0,1,2,2v1h1a2,2,0,0,1,2,2v6a2,2,0,0,1-2,2H26v1A2,2,0,0,1,24,24ZM6,10V22H24V19h3V13H24V10Z\"\n })), _path356 || (_path356 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 9H19V23H11z\",\n transform: \"rotate(90 15 16)\"\n })), children);\n});\nvar BatteryHalf32 = /*#__PURE__*/React.forwardRef(function BatteryHalf32(_ref235, ref) {\n var children = _ref235.children,\n rest = _objectWithoutProperties(_ref235, _excluded235);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path357 || (_path357 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,24H6a2,2,0,0,1-2-2V10A2,2,0,0,1,6,8H24a2,2,0,0,1,2,2v1h1a2,2,0,0,1,2,2v6a2,2,0,0,1-2,2H26v1A2,2,0,0,1,24,24ZM6,10V22H24V19h3V13H24V10Z\"\n })), _path358 || (_path358 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 12H16V20H8z\",\n transform: \"rotate(90 12 16)\"\n })), children);\n});\nvar BatteryHalf24 = /*#__PURE__*/React.forwardRef(function BatteryHalf24(_ref236, ref) {\n var children = _ref236.children,\n rest = _objectWithoutProperties(_ref236, _excluded236);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path359 || (_path359 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,24H6a2,2,0,0,1-2-2V10A2,2,0,0,1,6,8H24a2,2,0,0,1,2,2v1h1a2,2,0,0,1,2,2v6a2,2,0,0,1-2,2H26v1A2,2,0,0,1,24,24ZM6,10V22H24V19h3V13H24V10Z\"\n })), _path360 || (_path360 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 12H16V20H8z\",\n transform: \"rotate(90 12 16)\"\n })), children);\n});\nvar BatteryHalf20 = /*#__PURE__*/React.forwardRef(function BatteryHalf20(_ref237, ref) {\n var children = _ref237.children,\n rest = _objectWithoutProperties(_ref237, _excluded237);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path361 || (_path361 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,24H6a2,2,0,0,1-2-2V10A2,2,0,0,1,6,8H24a2,2,0,0,1,2,2v1h1a2,2,0,0,1,2,2v6a2,2,0,0,1-2,2H26v1A2,2,0,0,1,24,24ZM6,10V22H24V19h3V13H24V10Z\"\n })), _path362 || (_path362 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 12H16V20H8z\",\n transform: \"rotate(90 12 16)\"\n })), children);\n});\nvar BatteryHalf16 = /*#__PURE__*/React.forwardRef(function BatteryHalf16(_ref238, ref) {\n var children = _ref238.children,\n rest = _objectWithoutProperties(_ref238, _excluded238);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path363 || (_path363 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,24H6a2,2,0,0,1-2-2V10A2,2,0,0,1,6,8H24a2,2,0,0,1,2,2v1h1a2,2,0,0,1,2,2v6a2,2,0,0,1-2,2H26v1A2,2,0,0,1,24,24ZM6,10V22H24V19h3V13H24V10Z\"\n })), _path364 || (_path364 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 12H16V20H8z\",\n transform: \"rotate(90 12 16)\"\n })), children);\n});\nvar BatteryLow32 = /*#__PURE__*/React.forwardRef(function BatteryLow32(_ref239, ref) {\n var children = _ref239.children,\n rest = _objectWithoutProperties(_ref239, _excluded239);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path365 || (_path365 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,24H6a2.0023,2.0023,0,0,1-2-2V10A2.002,2.002,0,0,1,6,8H24a2.0023,2.0023,0,0,1,2,2v1h1a2.0023,2.0023,0,0,1,2,2v6a2.0027,2.0027,0,0,1-2,2H26v1A2.0027,2.0027,0,0,1,24,24ZM6,10V22H24V19h3V13H24V10Z\"\n })), _path366 || (_path366 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5 15H13V17H5z\",\n transform: \"rotate(90 9 16)\"\n })), children);\n});\nvar BatteryLow24 = /*#__PURE__*/React.forwardRef(function BatteryLow24(_ref240, ref) {\n var children = _ref240.children,\n rest = _objectWithoutProperties(_ref240, _excluded240);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path367 || (_path367 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,24H6a2.0023,2.0023,0,0,1-2-2V10A2.002,2.002,0,0,1,6,8H24a2.0023,2.0023,0,0,1,2,2v1h1a2.0023,2.0023,0,0,1,2,2v6a2.0027,2.0027,0,0,1-2,2H26v1A2.0027,2.0027,0,0,1,24,24ZM6,10V22H24V19h3V13H24V10Z\"\n })), _path368 || (_path368 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5 15H13V17H5z\",\n transform: \"rotate(90 9 16)\"\n })), children);\n});\nvar BatteryLow20 = /*#__PURE__*/React.forwardRef(function BatteryLow20(_ref241, ref) {\n var children = _ref241.children,\n rest = _objectWithoutProperties(_ref241, _excluded241);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path369 || (_path369 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,24H6a2.0023,2.0023,0,0,1-2-2V10A2.002,2.002,0,0,1,6,8H24a2.0023,2.0023,0,0,1,2,2v1h1a2.0023,2.0023,0,0,1,2,2v6a2.0027,2.0027,0,0,1-2,2H26v1A2.0027,2.0027,0,0,1,24,24ZM6,10V22H24V19h3V13H24V10Z\"\n })), _path370 || (_path370 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5 15H13V17H5z\",\n transform: \"rotate(90 9 16)\"\n })), children);\n});\nvar BatteryLow16 = /*#__PURE__*/React.forwardRef(function BatteryLow16(_ref242, ref) {\n var children = _ref242.children,\n rest = _objectWithoutProperties(_ref242, _excluded242);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path371 || (_path371 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,24H6a2.0023,2.0023,0,0,1-2-2V10A2.002,2.002,0,0,1,6,8H24a2.0023,2.0023,0,0,1,2,2v1h1a2.0023,2.0023,0,0,1,2,2v6a2.0027,2.0027,0,0,1-2,2H26v1A2.0027,2.0027,0,0,1,24,24ZM6,10V22H24V19h3V13H24V10Z\"\n })), _path372 || (_path372 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5 15H13V17H5z\",\n transform: \"rotate(90 9 16)\"\n })), children);\n});\nvar BatteryQuarter32 = /*#__PURE__*/React.forwardRef(function BatteryQuarter32(_ref243, ref) {\n var children = _ref243.children,\n rest = _objectWithoutProperties(_ref243, _excluded243);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path373 || (_path373 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,24H6a2.0023,2.0023,0,0,1-2-2V10A2.002,2.002,0,0,1,6,8H24a2.0023,2.0023,0,0,1,2,2v1h1a2.0023,2.0023,0,0,1,2,2v6a2.0027,2.0027,0,0,1-2,2H26v1A2.0027,2.0027,0,0,1,24,24ZM6,10V22H24V19h3V13H24V10Z\"\n })), _path374 || (_path374 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6 14H14V18H6z\",\n transform: \"rotate(90 10 16)\"\n })), children);\n});\nvar BatteryQuarter24 = /*#__PURE__*/React.forwardRef(function BatteryQuarter24(_ref244, ref) {\n var children = _ref244.children,\n rest = _objectWithoutProperties(_ref244, _excluded244);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path375 || (_path375 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,24H6a2.0023,2.0023,0,0,1-2-2V10A2.002,2.002,0,0,1,6,8H24a2.0023,2.0023,0,0,1,2,2v1h1a2.0023,2.0023,0,0,1,2,2v6a2.0027,2.0027,0,0,1-2,2H26v1A2.0027,2.0027,0,0,1,24,24ZM6,10V22H24V19h3V13H24V10Z\"\n })), _path376 || (_path376 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6 14H14V18H6z\",\n transform: \"rotate(90 10 16)\"\n })), children);\n});\nvar BatteryQuarter20 = /*#__PURE__*/React.forwardRef(function BatteryQuarter20(_ref245, ref) {\n var children = _ref245.children,\n rest = _objectWithoutProperties(_ref245, _excluded245);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path377 || (_path377 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,24H6a2.0023,2.0023,0,0,1-2-2V10A2.002,2.002,0,0,1,6,8H24a2.0023,2.0023,0,0,1,2,2v1h1a2.0023,2.0023,0,0,1,2,2v6a2.0027,2.0027,0,0,1-2,2H26v1A2.0027,2.0027,0,0,1,24,24ZM6,10V22H24V19h3V13H24V10Z\"\n })), _path378 || (_path378 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6 14H14V18H6z\",\n transform: \"rotate(90 10 16)\"\n })), children);\n});\nvar BatteryQuarter16 = /*#__PURE__*/React.forwardRef(function BatteryQuarter16(_ref246, ref) {\n var children = _ref246.children,\n rest = _objectWithoutProperties(_ref246, _excluded246);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path379 || (_path379 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,24H6a2.0023,2.0023,0,0,1-2-2V10A2.002,2.002,0,0,1,6,8H24a2.0023,2.0023,0,0,1,2,2v1h1a2.0023,2.0023,0,0,1,2,2v6a2.0027,2.0027,0,0,1-2,2H26v1A2.0027,2.0027,0,0,1,24,24ZM6,10V22H24V19h3V13H24V10Z\"\n })), _path380 || (_path380 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6 14H14V18H6z\",\n transform: \"rotate(90 10 16)\"\n })), children);\n});\nvar Bee32 = /*#__PURE__*/React.forwardRef(function Bee32(_ref247, ref) {\n var children = _ref247.children,\n rest = _objectWithoutProperties(_ref247, _excluded247);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path381 || (_path381 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 10a6 6 0 00-6 6v8a6 6 0 0012 0V16A6 6 0 0016 10zm-4.25 7.87h8.5v4.25h-8.5zM16 28.25A4.27 4.27 0 0111.75 24v-.13h8.5V24A4.27 4.27 0 0116 28.25zm4.25-12.13h-8.5V16a4.25 4.25 0 018.5 0zM30.66 19.21L24 13v9.1a4 4 0 008 0A3.83 3.83 0 0030.66 19.21zM28 24.35a2.25 2.25 0 01-2.25-2.25V17l3.72 3.47h0A2.05 2.05 0 0130.2 22 2.25 2.25 0 0128 24.35zM0 22.1a4 4 0 008 0V13L1.34 19.21A3.88 3.88 0 000 22.1zm2.48-1.56h0L6.25 17v5.1a2.25 2.25 0 01-4.5 0A2.05 2.05 0 012.48 20.54zM15 5.5A3.5 3.5 0 1011.5 9 3.5 3.5 0 0015 5.5zm-5.25 0A1.75 1.75 0 1111.5 7.25 1.77 1.77 0 019.75 5.5zM20.5 2A3.5 3.5 0 1024 5.5 3.5 3.5 0 0020.5 2zm0 5.25A1.75 1.75 0 1122.25 5.5 1.77 1.77 0 0120.5 7.25z\"\n })), children);\n});\nvar Bee24 = /*#__PURE__*/React.forwardRef(function Bee24(_ref248, ref) {\n var children = _ref248.children,\n rest = _objectWithoutProperties(_ref248, _excluded248);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path382 || (_path382 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 10a6 6 0 00-6 6v8a6 6 0 0012 0V16A6 6 0 0016 10zm-4.25 7.87h8.5v4.25h-8.5zM16 28.25A4.27 4.27 0 0111.75 24v-.13h8.5V24A4.27 4.27 0 0116 28.25zm4.25-12.13h-8.5V16a4.25 4.25 0 018.5 0zM30.66 19.21L24 13v9.1a4 4 0 008 0A3.83 3.83 0 0030.66 19.21zM28 24.35a2.25 2.25 0 01-2.25-2.25V17l3.72 3.47h0A2.05 2.05 0 0130.2 22 2.25 2.25 0 0128 24.35zM0 22.1a4 4 0 008 0V13L1.34 19.21A3.88 3.88 0 000 22.1zm2.48-1.56h0L6.25 17v5.1a2.25 2.25 0 01-4.5 0A2.05 2.05 0 012.48 20.54zM15 5.5A3.5 3.5 0 1011.5 9 3.5 3.5 0 0015 5.5zm-5.25 0A1.75 1.75 0 1111.5 7.25 1.77 1.77 0 019.75 5.5zM20.5 2A3.5 3.5 0 1024 5.5 3.5 3.5 0 0020.5 2zm0 5.25A1.75 1.75 0 1122.25 5.5 1.77 1.77 0 0120.5 7.25z\"\n })), children);\n});\nvar Bee20 = /*#__PURE__*/React.forwardRef(function Bee20(_ref249, ref) {\n var children = _ref249.children,\n rest = _objectWithoutProperties(_ref249, _excluded249);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path383 || (_path383 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 10a6 6 0 00-6 6v8a6 6 0 0012 0V16A6 6 0 0016 10zm-4.25 7.87h8.5v4.25h-8.5zM16 28.25A4.27 4.27 0 0111.75 24v-.13h8.5V24A4.27 4.27 0 0116 28.25zm4.25-12.13h-8.5V16a4.25 4.25 0 018.5 0zM30.66 19.21L24 13v9.1a4 4 0 008 0A3.83 3.83 0 0030.66 19.21zM28 24.35a2.25 2.25 0 01-2.25-2.25V17l3.72 3.47h0A2.05 2.05 0 0130.2 22 2.25 2.25 0 0128 24.35zM0 22.1a4 4 0 008 0V13L1.34 19.21A3.88 3.88 0 000 22.1zm2.48-1.56h0L6.25 17v5.1a2.25 2.25 0 01-4.5 0A2.05 2.05 0 012.48 20.54zM15 5.5A3.5 3.5 0 1011.5 9 3.5 3.5 0 0015 5.5zm-5.25 0A1.75 1.75 0 1111.5 7.25 1.77 1.77 0 019.75 5.5zM20.5 2A3.5 3.5 0 1024 5.5 3.5 3.5 0 0020.5 2zm0 5.25A1.75 1.75 0 1122.25 5.5 1.77 1.77 0 0120.5 7.25z\"\n })), children);\n});\nvar Bee16 = /*#__PURE__*/React.forwardRef(function Bee16(_ref250, ref) {\n var children = _ref250.children,\n rest = _objectWithoutProperties(_ref250, _excluded250);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path384 || (_path384 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 10a6 6 0 00-6 6v8a6 6 0 0012 0V16A6 6 0 0016 10zm-4.25 7.87h8.5v4.25h-8.5zM16 28.25A4.27 4.27 0 0111.75 24v-.13h8.5V24A4.27 4.27 0 0116 28.25zm4.25-12.13h-8.5V16a4.25 4.25 0 018.5 0zM30.66 19.21L24 13v9.1a4 4 0 008 0A3.83 3.83 0 0030.66 19.21zM28 24.35a2.25 2.25 0 01-2.25-2.25V17l3.72 3.47h0A2.05 2.05 0 0130.2 22 2.25 2.25 0 0128 24.35zM0 22.1a4 4 0 008 0V13L1.34 19.21A3.88 3.88 0 000 22.1zm2.48-1.56h0L6.25 17v5.1a2.25 2.25 0 01-4.5 0A2.05 2.05 0 012.48 20.54zM15 5.5A3.5 3.5 0 1011.5 9 3.5 3.5 0 0015 5.5zm-5.25 0A1.75 1.75 0 1111.5 7.25 1.77 1.77 0 019.75 5.5zM20.5 2A3.5 3.5 0 1024 5.5 3.5 3.5 0 0020.5 2zm0 5.25A1.75 1.75 0 1122.25 5.5 1.77 1.77 0 0120.5 7.25z\"\n })), children);\n});\n\nexport { AlignBoxTopLeft16, AlignBoxTopLeft20, AlignBoxTopRight16, AlignBoxTopRight20, AlignBoxTopRight24, AlignBoxTopRight32, Analytics16, Analytics20, Analytics24, Analytics32, AnalyticsReference16, AnalyticsReference20, AnalyticsReference24, AnalyticsReference32, Aperture16, Aperture20, Aperture24, Aperture32, Api16, Api20, Api24, Api32, Api_116, Api_120, Api_124, Api_132, App16, App20, App24, App32, AppConnectivity16, AppConnectivity20, AppConnectivity24, AppConnectivity32, AppSwitcher16, AppSwitcher20, AppSwitcher24, AppSwitcher32, Apple16, Apple20, Apple24, Apple32, Application16, Application20, Application24, Application32, ApplicationMobile16, ApplicationMobile20, ApplicationMobile24, ApplicationMobile32, ApplicationVirtual16, ApplicationVirtual20, ApplicationVirtual24, ApplicationVirtual32, ApplicationWeb16, ApplicationWeb20, ApplicationWeb24, ApplicationWeb32, Apps16, Apps20, Apps24, Apps32, Archive16, Archive20, Archive24, Archive32, Area16, Area20, Area24, Area32, AreaCustom16, AreaCustom20, AreaCustom24, AreaCustom32, Arrival16, Arrival20, Arrival24, Arrival32, ArrowDown16, ArrowDown20, ArrowDown24, ArrowDown32, ArrowDownLeft16, ArrowDownLeft20, ArrowDownLeft24, ArrowDownLeft32, ArrowDownRight16, ArrowDownRight20, ArrowDownRight24, ArrowDownRight32, ArrowLeft16, ArrowLeft20, ArrowLeft24, ArrowLeft32, ArrowRight16, ArrowRight20, ArrowRight24, ArrowRight32, ArrowShiftDown16, ArrowShiftDown20, ArrowShiftDown24, ArrowShiftDown32, ArrowUp16, ArrowUp20, ArrowUp24, ArrowUp32, ArrowUpLeft16, ArrowUpLeft20, ArrowUpLeft24, ArrowUpLeft32, ArrowUpRight16, ArrowUpRight20, ArrowUpRight24, ArrowUpRight32, Arrows16, Arrows20, Arrows24, Arrows32, ArrowsHorizontal16, ArrowsHorizontal20, ArrowsHorizontal24, ArrowsHorizontal32, ArrowsVertical16, ArrowsVertical20, ArrowsVertical24, ArrowsVertical32, Asleep16, Asleep20, Asleep24, Asleep32, AsleepFilled16, AsleepFilled20, AsleepFilled24, AsleepFilled32, Asset16, Asset20, Asset24, Asset32, At16, At20, At24, At32, Attachment16, Attachment20, Attachment24, Attachment32, AudioConsole16, AudioConsole20, AudioConsole24, AudioConsole32, AugmentedReality16, AugmentedReality20, AugmentedReality24, AugmentedReality32, Automatic16, Automatic20, Automatic24, Automatic32, Autoscaling16, Autoscaling20, Autoscaling24, Autoscaling32, Awake16, Awake20, Awake24, Awake32, BackToTop16, BackToTop20, BackToTop24, BackToTop32, Badge16, Badge20, Badge24, Badge32, BaggageClaim16, BaggageClaim20, BaggageClaim24, BaggageClaim32, Bar16, Bar20, Bar24, Bar32, Barcode16, Barcode20, Barcode24, Barcode32, BareMetalServer16, BareMetalServer20, BareMetalServer24, BareMetalServer32, Basketball16, Basketball20, Basketball24, Basketball32, BastionHost16, BastionHost20, BastionHost24, BastionHost32, Bat16, Bat20, Bat24, Bat32, BatteryCharging16, BatteryCharging20, BatteryCharging24, BatteryCharging32, BatteryEmpty16, BatteryEmpty20, BatteryEmpty24, BatteryEmpty32, BatteryFull16, BatteryFull20, BatteryFull24, BatteryFull32, BatteryHalf16, BatteryHalf20, BatteryHalf24, BatteryHalf32, BatteryLow16, BatteryLow20, BatteryLow24, BatteryLow32, BatteryQuarter16, BatteryQuarter20, BatteryQuarter24, BatteryQuarter32, Bee16, Bee20, Bee24, Bee32, QBarrier16, QBarrier20, QBarrier24, QBarrier32, WatsonHealthAngle16, WatsonHealthAngle20, WatsonHealthAngle24, WatsonHealthAngle32, WatsonHealthAnnotationVisibility16, WatsonHealthAnnotationVisibility20, WatsonHealthAnnotationVisibility24, WatsonHealthAnnotationVisibility32, WatsonHealthArrowAnnotation16, WatsonHealthArrowAnnotation20, WatsonHealthArrowAnnotation24, WatsonHealthArrowAnnotation32, WatsonHealthAutoScroll16, WatsonHealthAutoScroll20, WatsonHealthAutoScroll24, WatsonHealthAutoScroll32 };\n","/**\n * Copyright IBM Corp. 2019, 2020\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * Code generated by @carbon/icon-build-helpers. DO NOT EDIT.\n */\nimport { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../Icon-a8cbe70a.js';\nimport React from 'react';\nimport '@carbon/icon-helpers';\nimport 'prop-types';\n\nvar _path, _path2, _path3, _path4, _path5, _path6, _path7, _path8, _path9, _path10, _path11, _path12, _path13, _path14, _path15, _path16, _path17, _path18, _path19, _path20, _path21, _path22, _path23, _path24, _path25, _path26, _path27, _path28, _path29, _path30, _path31, _path32, _path33, _path34, _path35, _path36, _path37, _path38, _path39, _path40, _path41, _path42, _path43, _path44, _path45, _path46, _path47, _path48, _path49, _path50, _path51, _path52, _path53, _path54, _path55, _path56, _path57, _path58, _path59, _path60, _path61, _path62, _path63, _path64, _path65, _path66, _path67, _path68, _path69, _path70, _path71, _path72, _path73, _path74, _path75, _path76, _path77, _path78, _path79, _path80, _path81, _path82, _path83, _path84, _path85, _path86, _path87, _path88, _path89, _path90, _path91, _path92, _path93, _path94, _path95, _path96, _path97, _path98, _path99, _path100, _path101, _path102, _path103, _path104, _path105, _path106, _path107, _path108, _path109, _path110, _path111, _path112, _path113, _path114, _path115, _path116, _path117, _path118, _path119, _path120, _path121, _path122, _path123, _path124, _path125, _path126, _path127, _path128, _path129, _path130, _path131, _path132, _path133, _path134, _path135, _path136, _path137, _path138, _path139, _path140, _path141, _path142, _path143, _path144, _path145, _path146, _path147, _path148, _path149, _path150, _path151, _path152, _path153, _circle, _path154, _path155, _circle2, _path156, _path157, _circle3, _path158, _path159, _circle4, _path160, _path161, _path162, _path163, _path164, _path165, _path166, _path167, _path168, _path169, _path170, _path171, _path172, _path173, _path174, _path175, _path176, _path177, _path178, _path179, _path180, _path181, _path182, _path183, _path184, _path185, _path186, _path187, _path188, _path189, _path190, _path191, _path192, _path193, _path194, _path195, _path196, _path197, _path198, _path199, _path200, _path201, _path202, _path203, _path204, _path205, _path206, _path207, _path208, _path209, _path210, _circle5, _path211, _path212, _path213, _circle6, _path214, _path215, _path216, _circle7, _path217, _path218, _path219, _circle8, _path220, _path221, _circle9, _path222, _circle10, _path223, _circle11, _path224, _circle12, _path225, _path226, _path227, _path228, _path229, _path230, _path231, _path232, _path233, _path234, _path235, _path236, _path237, _path238, _path239, _path240, _path241, _path242, _path243, _path244, _path245, _path246, _path247, _path248, _path249, _path250, _path251, _path252, _path253, _path254, _path255, _path256, _path257, _path258, _path259, _path260, _path261, _path262, _path263, _path264, _path265, _path266, _path267, _path268, _path269, _path270, _path271, _path272, _path273, _path274, _path275, _path276, _path277, _path278, _path279, _path280, _path281, _path282, _path283, _path284, _path285, _path286, _path287, _path288, _path289, _path290, _path291, _path292, _path293, _path294, _path295, _path296, _path297, _path298, _path299, _path300, _path301, _path302, _path303, _path304, _path305, _path306, _path307, _path308, _path309, _path310, _path311, _path312, _path313, _path314, _path315, _path316, _circle13, _circle14, _path317, _path318, _circle15, _circle16, _path319, _path320, _circle17, _circle18, _path321, _path322, _circle19, _circle20, _path323, _path324, _path325, _path326, _path327, _path328, _path329, _path330, _path331, _path332, _path333, _path334, _path335, _path336, _path337, _circle21, _path338, _path339, _circle22, _path340, _path341, _circle23, _path342, _path343, _circle24, _path344, _path345, _path346, _path347, _path348, _path349, _path350, _path351, _path352, _path353, _path354, _path355, _path356, _path357, _path358, _path359, _path360, _path361, _path362, _path363, _path364, _path365, _path366, _path367, _path368, _path369, _path370, _path371, _path372, _path373, _path374, _path375, _path376, _path377, _path378, _path379, _path380, _path381, _path382, _path383, _path384, _path385, _path386, _path387, _path388, _path389, _path390, _path391, _path392, _path393, _path394, _path395, _path396, _path397, _path398, _path399, _path400, _path401, _path402, _path403, _path404, _path405, _path406, _path407, _path408, _path409, _path410, _path411, _path412, _path413, _path414, _path415, _path416, _path417, _path418, _path419, _path420, _path421, _path422, _path423;\n\nvar _excluded = [\"children\"],\n _excluded2 = [\"children\"],\n _excluded3 = [\"children\"],\n _excluded4 = [\"children\"],\n _excluded5 = [\"children\"],\n _excluded6 = [\"children\"],\n _excluded7 = [\"children\"],\n _excluded8 = [\"children\"],\n _excluded9 = [\"children\"],\n _excluded10 = [\"children\"],\n _excluded11 = [\"children\"],\n _excluded12 = [\"children\"],\n _excluded13 = [\"children\"],\n _excluded14 = [\"children\"],\n _excluded15 = [\"children\"],\n _excluded16 = [\"children\"],\n _excluded17 = [\"children\"],\n _excluded18 = [\"children\"],\n _excluded19 = [\"children\"],\n _excluded20 = [\"children\"],\n _excluded21 = [\"children\"],\n _excluded22 = [\"children\"],\n _excluded23 = [\"children\"],\n _excluded24 = [\"children\"],\n _excluded25 = [\"children\"],\n _excluded26 = [\"children\"],\n _excluded27 = [\"children\"],\n _excluded28 = [\"children\"],\n _excluded29 = [\"children\"],\n _excluded30 = [\"children\"],\n _excluded31 = [\"children\"],\n _excluded32 = [\"children\"],\n _excluded33 = [\"children\"],\n _excluded34 = [\"children\"],\n _excluded35 = [\"children\"],\n _excluded36 = [\"children\"],\n _excluded37 = [\"children\"],\n _excluded38 = [\"children\"],\n _excluded39 = [\"children\"],\n _excluded40 = [\"children\"],\n _excluded41 = [\"children\"],\n _excluded42 = [\"children\"],\n _excluded43 = [\"children\"],\n _excluded44 = [\"children\"],\n _excluded45 = [\"children\"],\n _excluded46 = [\"children\"],\n _excluded47 = [\"children\"],\n _excluded48 = [\"children\"],\n _excluded49 = [\"children\"],\n _excluded50 = [\"children\"],\n _excluded51 = [\"children\"],\n _excluded52 = [\"children\"],\n _excluded53 = [\"children\"],\n _excluded54 = [\"children\"],\n _excluded55 = [\"children\"],\n _excluded56 = [\"children\"],\n _excluded57 = [\"children\"],\n _excluded58 = [\"children\"],\n _excluded59 = [\"children\"],\n _excluded60 = [\"children\"],\n _excluded61 = [\"children\"],\n _excluded62 = [\"children\"],\n _excluded63 = [\"children\"],\n _excluded64 = [\"children\"],\n _excluded65 = [\"children\"],\n _excluded66 = [\"children\"],\n _excluded67 = [\"children\"],\n _excluded68 = [\"children\"],\n _excluded69 = [\"children\"],\n _excluded70 = [\"children\"],\n _excluded71 = [\"children\"],\n _excluded72 = [\"children\"],\n _excluded73 = [\"children\"],\n _excluded74 = [\"children\"],\n _excluded75 = [\"children\"],\n _excluded76 = [\"children\"],\n _excluded77 = [\"children\"],\n _excluded78 = [\"children\"],\n _excluded79 = [\"children\"],\n _excluded80 = [\"children\"],\n _excluded81 = [\"children\"],\n _excluded82 = [\"children\"],\n _excluded83 = [\"children\"],\n _excluded84 = [\"children\"],\n _excluded85 = [\"children\"],\n _excluded86 = [\"children\"],\n _excluded87 = [\"children\"],\n _excluded88 = [\"children\"],\n _excluded89 = [\"children\"],\n _excluded90 = [\"children\"],\n _excluded91 = [\"children\"],\n _excluded92 = [\"children\"],\n _excluded93 = [\"children\"],\n _excluded94 = [\"children\"],\n _excluded95 = [\"children\"],\n _excluded96 = [\"children\"],\n _excluded97 = [\"children\"],\n _excluded98 = [\"children\"],\n _excluded99 = [\"children\"],\n _excluded100 = [\"children\"],\n _excluded101 = [\"children\"],\n _excluded102 = [\"children\"],\n _excluded103 = [\"children\"],\n _excluded104 = [\"children\"],\n _excluded105 = [\"children\"],\n _excluded106 = [\"children\"],\n _excluded107 = [\"children\"],\n _excluded108 = [\"children\"],\n _excluded109 = [\"children\"],\n _excluded110 = [\"children\"],\n _excluded111 = [\"children\"],\n _excluded112 = [\"children\"],\n _excluded113 = [\"children\"],\n _excluded114 = [\"children\"],\n _excluded115 = [\"children\"],\n _excluded116 = [\"children\"],\n _excluded117 = [\"children\"],\n _excluded118 = [\"children\"],\n _excluded119 = [\"children\"],\n _excluded120 = [\"children\"],\n _excluded121 = [\"children\"],\n _excluded122 = [\"children\"],\n _excluded123 = [\"children\"],\n _excluded124 = [\"children\"],\n _excluded125 = [\"children\"],\n _excluded126 = [\"children\"],\n _excluded127 = [\"children\"],\n _excluded128 = [\"children\"],\n _excluded129 = [\"children\"],\n _excluded130 = [\"children\"],\n _excluded131 = [\"children\"],\n _excluded132 = [\"children\"],\n _excluded133 = [\"children\"],\n _excluded134 = [\"children\"],\n _excluded135 = [\"children\"],\n _excluded136 = [\"children\"],\n _excluded137 = [\"children\"],\n _excluded138 = [\"children\"],\n _excluded139 = [\"children\"],\n _excluded140 = [\"children\"],\n _excluded141 = [\"children\"],\n _excluded142 = [\"children\"],\n _excluded143 = [\"children\"],\n _excluded144 = [\"children\"],\n _excluded145 = [\"children\"],\n _excluded146 = [\"children\"],\n _excluded147 = [\"children\"],\n _excluded148 = [\"children\"],\n _excluded149 = [\"children\"],\n _excluded150 = [\"children\"],\n _excluded151 = [\"children\"],\n _excluded152 = [\"children\"],\n _excluded153 = [\"children\"],\n _excluded154 = [\"children\"],\n _excluded155 = [\"children\"],\n _excluded156 = [\"children\"],\n _excluded157 = [\"children\"],\n _excluded158 = [\"children\"],\n _excluded159 = [\"children\"],\n _excluded160 = [\"children\"],\n _excluded161 = [\"children\"],\n _excluded162 = [\"children\"],\n _excluded163 = [\"children\"],\n _excluded164 = [\"children\"],\n _excluded165 = [\"children\"],\n _excluded166 = [\"children\"],\n _excluded167 = [\"children\"],\n _excluded168 = [\"children\"],\n _excluded169 = [\"children\"],\n _excluded170 = [\"children\"],\n _excluded171 = [\"children\"],\n _excluded172 = [\"children\"],\n _excluded173 = [\"children\"],\n _excluded174 = [\"children\"],\n _excluded175 = [\"children\"],\n _excluded176 = [\"children\"],\n _excluded177 = [\"children\"],\n _excluded178 = [\"children\"],\n _excluded179 = [\"children\"],\n _excluded180 = [\"children\"],\n _excluded181 = [\"children\"],\n _excluded182 = [\"children\"],\n _excluded183 = [\"children\"],\n _excluded184 = [\"children\"],\n _excluded185 = [\"children\"],\n _excluded186 = [\"children\"],\n _excluded187 = [\"children\"],\n _excluded188 = [\"children\"],\n _excluded189 = [\"children\"],\n _excluded190 = [\"children\"],\n _excluded191 = [\"children\"],\n _excluded192 = [\"children\"],\n _excluded193 = [\"children\"],\n _excluded194 = [\"children\"],\n _excluded195 = [\"children\"],\n _excluded196 = [\"children\"],\n _excluded197 = [\"children\"],\n _excluded198 = [\"children\"],\n _excluded199 = [\"children\"],\n _excluded200 = [\"children\"],\n _excluded201 = [\"children\"],\n _excluded202 = [\"children\"],\n _excluded203 = [\"children\"],\n _excluded204 = [\"children\"],\n _excluded205 = [\"children\"],\n _excluded206 = [\"children\"],\n _excluded207 = [\"children\"],\n _excluded208 = [\"children\"],\n _excluded209 = [\"children\"],\n _excluded210 = [\"children\"],\n _excluded211 = [\"children\"],\n _excluded212 = [\"children\"],\n _excluded213 = [\"children\"],\n _excluded214 = [\"children\"],\n _excluded215 = [\"children\"],\n _excluded216 = [\"children\"],\n _excluded217 = [\"children\"],\n _excluded218 = [\"children\"],\n _excluded219 = [\"children\"],\n _excluded220 = [\"children\"],\n _excluded221 = [\"children\"],\n _excluded222 = [\"children\"],\n _excluded223 = [\"children\"],\n _excluded224 = [\"children\"],\n _excluded225 = [\"children\"],\n _excluded226 = [\"children\"],\n _excluded227 = [\"children\"],\n _excluded228 = [\"children\"],\n _excluded229 = [\"children\"],\n _excluded230 = [\"children\"],\n _excluded231 = [\"children\"],\n _excluded232 = [\"children\"],\n _excluded233 = [\"children\"],\n _excluded234 = [\"children\"],\n _excluded235 = [\"children\"],\n _excluded236 = [\"children\"],\n _excluded237 = [\"children\"],\n _excluded238 = [\"children\"],\n _excluded239 = [\"children\"],\n _excluded240 = [\"children\"],\n _excluded241 = [\"children\"],\n _excluded242 = [\"children\"],\n _excluded243 = [\"children\"],\n _excluded244 = [\"children\"],\n _excluded245 = [\"children\"],\n _excluded246 = [\"children\"],\n _excluded247 = [\"children\"],\n _excluded248 = [\"children\"],\n _excluded249 = [\"children\"],\n _excluded250 = [\"children\"];\nvar didWarnAboutDeprecation = {};\nvar LogoWechat20 = /*#__PURE__*/React.forwardRef(function LogoWechat20(_ref, ref) {\n var children = _ref.children,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n d: \"M27.0857,24.7792A6.6179,6.6179,0,0,0,30,19.4662c0-3.88-3.7765-7.0269-8.4338-7.0269s-8.4339,3.1465-8.4339,7.0269,3.7765,7.028,8.4339,7.028a9.9547,9.9547,0,0,0,2.7533-.385l.2473-.0374a.8923.8923,0,0,1,.448.13l1.8469,1.0664.1621.0525a.2813.2813,0,0,0,.2812-.2812l-.0455-.2053-.38-1.4175-.0292-.18A.56.56,0,0,1,27.0857,24.7792ZM12.1208,4.68C6.5313,4.68,2,8.4552,2,13.1137a7.9386,7.9386,0,0,0,3.4965,6.3746.6713.6713,0,0,1,.2835.55l-.035.2147-.4562,1.701L5.234,22.2a.3384.3384,0,0,0,.3372.3383l.196-.063,2.2155-1.28a1.0584,1.0584,0,0,1,.5366-.1552l.2975.0443a11.9674,11.9674,0,0,0,3.304.4632l.5554-.014a6.5153,6.5153,0,0,1-.3395-2.0662c0-4.2478,4.1323-7.6918,9.2295-7.6918l.55.014C21.3538,7.761,17.169,4.68,12.1208,4.68Zm6.6337,13.6629a1.1247,1.1247,0,1,1,1.1247-1.1247A1.1243,1.1243,0,0,1,18.7545,18.3427Zm5.6233,0a1.1247,1.1247,0,1,1,1.1235-1.1247A1.1245,1.1245,0,0,1,24.3778,18.3427ZM8.7468,11.7638a1.3493,1.3493,0,1,1,1.35-1.3486A1.3485,1.3485,0,0,1,8.7468,11.7638Zm6.7469,0a1.3493,1.3493,0,1,1,1.35-1.3486A1.3486,1.3486,0,0,1,15.4937,11.7638Z\"\n })), children);\n});\nvar LogoWechat16 = /*#__PURE__*/React.forwardRef(function LogoWechat16(_ref2, ref) {\n var children = _ref2.children,\n rest = _objectWithoutProperties(_ref2, _excluded2);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n d: \"M27.0857,24.7792A6.6179,6.6179,0,0,0,30,19.4662c0-3.88-3.7765-7.0269-8.4338-7.0269s-8.4339,3.1465-8.4339,7.0269,3.7765,7.028,8.4339,7.028a9.9547,9.9547,0,0,0,2.7533-.385l.2473-.0374a.8923.8923,0,0,1,.448.13l1.8469,1.0664.1621.0525a.2813.2813,0,0,0,.2812-.2812l-.0455-.2053-.38-1.4175-.0292-.18A.56.56,0,0,1,27.0857,24.7792ZM12.1208,4.68C6.5313,4.68,2,8.4552,2,13.1137a7.9386,7.9386,0,0,0,3.4965,6.3746.6713.6713,0,0,1,.2835.55l-.035.2147-.4562,1.701L5.234,22.2a.3384.3384,0,0,0,.3372.3383l.196-.063,2.2155-1.28a1.0584,1.0584,0,0,1,.5366-.1552l.2975.0443a11.9674,11.9674,0,0,0,3.304.4632l.5554-.014a6.5153,6.5153,0,0,1-.3395-2.0662c0-4.2478,4.1323-7.6918,9.2295-7.6918l.55.014C21.3538,7.761,17.169,4.68,12.1208,4.68Zm6.6337,13.6629a1.1247,1.1247,0,1,1,1.1247-1.1247A1.1243,1.1243,0,0,1,18.7545,18.3427Zm5.6233,0a1.1247,1.1247,0,1,1,1.1235-1.1247A1.1245,1.1245,0,0,1,24.3778,18.3427ZM8.7468,11.7638a1.3493,1.3493,0,1,1,1.35-1.3486A1.3485,1.3485,0,0,1,8.7468,11.7638Zm6.7469,0a1.3493,1.3493,0,1,1,1.35-1.3486A1.3486,1.3486,0,0,1,15.4937,11.7638Z\"\n })), children);\n});\nvar LogoXing32 = /*#__PURE__*/React.forwardRef(function LogoXing32(_ref3, ref) {\n var children = _ref3.children,\n rest = _objectWithoutProperties(_ref3, _excluded3);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.42,8.29a1.25,1.25,0,0,0-1.13-.76h-4a.65.65,0,0,0-.55.25.63.63,0,0,0,0,.62l2.73,4.73v0L4.17,20.72a.6.6,0,0,0,0,.62.58.58,0,0,0,.52.28h4a1.22,1.22,0,0,0,1.1-.78l4.36-7.71S11.42,8.29,11.42,8.29Z\"\n })), _path4 || (_path4 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.83,2.88a.65.65,0,0,0,0-.62A.61.61,0,0,0,27.3,2H23.22a1.19,1.19,0,0,0-1.08.77s-8.7,15.43-9,15.93l5.74,10.53A1.26,1.26,0,0,0,20,30h4a.59.59,0,0,0,.54-.26.62.62,0,0,0,0-.62l-5.69-10.4a0,0,0,0,1,0,0Z\"\n })), children);\n});\nvar LogoXing24 = /*#__PURE__*/React.forwardRef(function LogoXing24(_ref4, ref) {\n var children = _ref4.children,\n rest = _objectWithoutProperties(_ref4, _excluded4);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path5 || (_path5 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.42,8.29a1.25,1.25,0,0,0-1.13-.76h-4a.65.65,0,0,0-.55.25.63.63,0,0,0,0,.62l2.73,4.73v0L4.17,20.72a.6.6,0,0,0,0,.62.58.58,0,0,0,.52.28h4a1.22,1.22,0,0,0,1.1-.78l4.36-7.71S11.42,8.29,11.42,8.29Z\"\n })), _path6 || (_path6 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.83,2.88a.65.65,0,0,0,0-.62A.61.61,0,0,0,27.3,2H23.22a1.19,1.19,0,0,0-1.08.77s-8.7,15.43-9,15.93l5.74,10.53A1.26,1.26,0,0,0,20,30h4a.59.59,0,0,0,.54-.26.62.62,0,0,0,0-.62l-5.69-10.4a0,0,0,0,1,0,0Z\"\n })), children);\n});\nvar LogoXing20 = /*#__PURE__*/React.forwardRef(function LogoXing20(_ref5, ref) {\n var children = _ref5.children,\n rest = _objectWithoutProperties(_ref5, _excluded5);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path7 || (_path7 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.42,8.29a1.25,1.25,0,0,0-1.13-.76h-4a.65.65,0,0,0-.55.25.63.63,0,0,0,0,.62l2.73,4.73v0L4.17,20.72a.6.6,0,0,0,0,.62.58.58,0,0,0,.52.28h4a1.22,1.22,0,0,0,1.1-.78l4.36-7.71S11.42,8.29,11.42,8.29Z\"\n })), _path8 || (_path8 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.83,2.88a.65.65,0,0,0,0-.62A.61.61,0,0,0,27.3,2H23.22a1.19,1.19,0,0,0-1.08.77s-8.7,15.43-9,15.93l5.74,10.53A1.26,1.26,0,0,0,20,30h4a.59.59,0,0,0,.54-.26.62.62,0,0,0,0-.62l-5.69-10.4a0,0,0,0,1,0,0Z\"\n })), children);\n});\nvar LogoXing16 = /*#__PURE__*/React.forwardRef(function LogoXing16(_ref6, ref) {\n var children = _ref6.children,\n rest = _objectWithoutProperties(_ref6, _excluded6);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path9 || (_path9 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.42,8.29a1.25,1.25,0,0,0-1.13-.76h-4a.65.65,0,0,0-.55.25.63.63,0,0,0,0,.62l2.73,4.73v0L4.17,20.72a.6.6,0,0,0,0,.62.58.58,0,0,0,.52.28h4a1.22,1.22,0,0,0,1.1-.78l4.36-7.71S11.42,8.29,11.42,8.29Z\"\n })), _path10 || (_path10 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.83,2.88a.65.65,0,0,0,0-.62A.61.61,0,0,0,27.3,2H23.22a1.19,1.19,0,0,0-1.08.77s-8.7,15.43-9,15.93l5.74,10.53A1.26,1.26,0,0,0,20,30h4a.59.59,0,0,0,.54-.26.62.62,0,0,0,0-.62l-5.69-10.4a0,0,0,0,1,0,0Z\"\n })), children);\n});\nvar LogoYelp32 = /*#__PURE__*/React.forwardRef(function LogoYelp32(_ref7, ref) {\n var children = _ref7.children,\n rest = _objectWithoutProperties(_ref7, _excluded7);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path11 || (_path11 = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n d: \"M9.09 15.2458l4.6706 2.2777a1.0706 1.0706 0 01-.21 2.0011L8.5087 20.7818a1.0729 1.0729 0 01-1.3241-.921 9.2173 9.2173 0 01.4213-3.9965A1.0706 1.0706 0 019.09 15.2458zM10.96 24.8605l3.4763-3.8613a1.0707 1.0707 0 011.8657.7537l-.1814 5.1945a1.072 1.072 0 01-1.2491 1.0192A9.3014 9.3014 0 0111.1488 26.46 1.0713 1.0713 0 0110.96 24.8605zM19.2025 19.7222l4.9412 1.6058a1.0713 1.0713 0 01.6363 1.4794 9.3022 9.3022 0 01-2.4707 3.1663 1.072 1.072 0 01-1.5914-.2581l-2.7543-4.4078A1.0707 1.0707 0 0119.2025 19.7222zM24.2273 16.57l-4.9948 1.4321A1.0706 1.0706 0 0118.05 16.3742l2.906-4.3078A1.0706 1.0706 0 0122.55 11.86 9.2168 9.2168 0 0124.9135 15.11 1.0729 1.0729 0 0124.2273 16.57zM12.5561 4.45a14.9542 14.9542 0 00-2.5676.9459 1.07 1.07 0 00-.4636 1.5013l4.8819 8.4557a1.0707 1.0707 0 001.9979-.5353V5.0534A1.07 1.07 0 0015.2526 3.985 14.9577 14.9577 0 0012.5561 4.45z\"\n })), children);\n});\nvar LogoYelp24 = /*#__PURE__*/React.forwardRef(function LogoYelp24(_ref8, ref) {\n var children = _ref8.children,\n rest = _objectWithoutProperties(_ref8, _excluded8);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path12 || (_path12 = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n d: \"M9.09 15.2458l4.6706 2.2777a1.0706 1.0706 0 01-.21 2.0011L8.5087 20.7818a1.0729 1.0729 0 01-1.3241-.921 9.2173 9.2173 0 01.4213-3.9965A1.0706 1.0706 0 019.09 15.2458zM10.96 24.8605l3.4763-3.8613a1.0707 1.0707 0 011.8657.7537l-.1814 5.1945a1.072 1.072 0 01-1.2491 1.0192A9.3014 9.3014 0 0111.1488 26.46 1.0713 1.0713 0 0110.96 24.8605zM19.2025 19.7222l4.9412 1.6058a1.0713 1.0713 0 01.6363 1.4794 9.3022 9.3022 0 01-2.4707 3.1663 1.072 1.072 0 01-1.5914-.2581l-2.7543-4.4078A1.0707 1.0707 0 0119.2025 19.7222zM24.2273 16.57l-4.9948 1.4321A1.0706 1.0706 0 0118.05 16.3742l2.906-4.3078A1.0706 1.0706 0 0122.55 11.86 9.2168 9.2168 0 0124.9135 15.11 1.0729 1.0729 0 0124.2273 16.57zM12.5561 4.45a14.9542 14.9542 0 00-2.5676.9459 1.07 1.07 0 00-.4636 1.5013l4.8819 8.4557a1.0707 1.0707 0 001.9979-.5353V5.0534A1.07 1.07 0 0015.2526 3.985 14.9577 14.9577 0 0012.5561 4.45z\"\n })), children);\n});\nvar LogoYelp20 = /*#__PURE__*/React.forwardRef(function LogoYelp20(_ref9, ref) {\n var children = _ref9.children,\n rest = _objectWithoutProperties(_ref9, _excluded9);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path13 || (_path13 = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n d: \"M9.09 15.2458l4.6706 2.2777a1.0706 1.0706 0 01-.21 2.0011L8.5087 20.7818a1.0729 1.0729 0 01-1.3241-.921 9.2173 9.2173 0 01.4213-3.9965A1.0706 1.0706 0 019.09 15.2458zM10.96 24.8605l3.4763-3.8613a1.0707 1.0707 0 011.8657.7537l-.1814 5.1945a1.072 1.072 0 01-1.2491 1.0192A9.3014 9.3014 0 0111.1488 26.46 1.0713 1.0713 0 0110.96 24.8605zM19.2025 19.7222l4.9412 1.6058a1.0713 1.0713 0 01.6363 1.4794 9.3022 9.3022 0 01-2.4707 3.1663 1.072 1.072 0 01-1.5914-.2581l-2.7543-4.4078A1.0707 1.0707 0 0119.2025 19.7222zM24.2273 16.57l-4.9948 1.4321A1.0706 1.0706 0 0118.05 16.3742l2.906-4.3078A1.0706 1.0706 0 0122.55 11.86 9.2168 9.2168 0 0124.9135 15.11 1.0729 1.0729 0 0124.2273 16.57zM12.5561 4.45a14.9542 14.9542 0 00-2.5676.9459 1.07 1.07 0 00-.4636 1.5013l4.8819 8.4557a1.0707 1.0707 0 001.9979-.5353V5.0534A1.07 1.07 0 0015.2526 3.985 14.9577 14.9577 0 0012.5561 4.45z\"\n })), children);\n});\nvar LogoYelp16 = /*#__PURE__*/React.forwardRef(function LogoYelp16(_ref10, ref) {\n var children = _ref10.children,\n rest = _objectWithoutProperties(_ref10, _excluded10);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path14 || (_path14 = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n d: \"M9.09 15.2458l4.6706 2.2777a1.0706 1.0706 0 01-.21 2.0011L8.5087 20.7818a1.0729 1.0729 0 01-1.3241-.921 9.2173 9.2173 0 01.4213-3.9965A1.0706 1.0706 0 019.09 15.2458zM10.96 24.8605l3.4763-3.8613a1.0707 1.0707 0 011.8657.7537l-.1814 5.1945a1.072 1.072 0 01-1.2491 1.0192A9.3014 9.3014 0 0111.1488 26.46 1.0713 1.0713 0 0110.96 24.8605zM19.2025 19.7222l4.9412 1.6058a1.0713 1.0713 0 01.6363 1.4794 9.3022 9.3022 0 01-2.4707 3.1663 1.072 1.072 0 01-1.5914-.2581l-2.7543-4.4078A1.0707 1.0707 0 0119.2025 19.7222zM24.2273 16.57l-4.9948 1.4321A1.0706 1.0706 0 0118.05 16.3742l2.906-4.3078A1.0706 1.0706 0 0122.55 11.86 9.2168 9.2168 0 0124.9135 15.11 1.0729 1.0729 0 0124.2273 16.57zM12.5561 4.45a14.9542 14.9542 0 00-2.5676.9459 1.07 1.07 0 00-.4636 1.5013l4.8819 8.4557a1.0707 1.0707 0 001.9979-.5353V5.0534A1.07 1.07 0 0015.2526 3.985 14.9577 14.9577 0 0012.5561 4.45z\"\n })), children);\n});\nvar LogoYoutube32 = /*#__PURE__*/React.forwardRef(function LogoYoutube32(_ref11, ref) {\n var children = _ref11.children,\n rest = _objectWithoutProperties(_ref11, _excluded11);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path15 || (_path15 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.41,9.26a3.5,3.5,0,0,0-2.47-2.47C24.76,6.2,16,6.2,16,6.2s-8.76,0-10.94.59A3.5,3.5,0,0,0,2.59,9.26,36.13,36.13,0,0,0,2,16a36.13,36.13,0,0,0,.59,6.74,3.5,3.5,0,0,0,2.47,2.47C7.24,25.8,16,25.8,16,25.8s8.76,0,10.94-.59a3.5,3.5,0,0,0,2.47-2.47A36.13,36.13,0,0,0,30,16,36.13,36.13,0,0,0,29.41,9.26ZM13.2,20.2V11.8L20.47,16Z\"\n })), children);\n});\nvar LogoYoutube24 = /*#__PURE__*/React.forwardRef(function LogoYoutube24(_ref12, ref) {\n var children = _ref12.children,\n rest = _objectWithoutProperties(_ref12, _excluded12);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path16 || (_path16 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.41,9.26a3.5,3.5,0,0,0-2.47-2.47C24.76,6.2,16,6.2,16,6.2s-8.76,0-10.94.59A3.5,3.5,0,0,0,2.59,9.26,36.13,36.13,0,0,0,2,16a36.13,36.13,0,0,0,.59,6.74,3.5,3.5,0,0,0,2.47,2.47C7.24,25.8,16,25.8,16,25.8s8.76,0,10.94-.59a3.5,3.5,0,0,0,2.47-2.47A36.13,36.13,0,0,0,30,16,36.13,36.13,0,0,0,29.41,9.26ZM13.2,20.2V11.8L20.47,16Z\"\n })), children);\n});\nvar LogoYoutube20 = /*#__PURE__*/React.forwardRef(function LogoYoutube20(_ref13, ref) {\n var children = _ref13.children,\n rest = _objectWithoutProperties(_ref13, _excluded13);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path17 || (_path17 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.41,9.26a3.5,3.5,0,0,0-2.47-2.47C24.76,6.2,16,6.2,16,6.2s-8.76,0-10.94.59A3.5,3.5,0,0,0,2.59,9.26,36.13,36.13,0,0,0,2,16a36.13,36.13,0,0,0,.59,6.74,3.5,3.5,0,0,0,2.47,2.47C7.24,25.8,16,25.8,16,25.8s8.76,0,10.94-.59a3.5,3.5,0,0,0,2.47-2.47A36.13,36.13,0,0,0,30,16,36.13,36.13,0,0,0,29.41,9.26ZM13.2,20.2V11.8L20.47,16Z\"\n })), children);\n});\nvar LogoYoutube16 = /*#__PURE__*/React.forwardRef(function LogoYoutube16(_ref14, ref) {\n var children = _ref14.children,\n rest = _objectWithoutProperties(_ref14, _excluded14);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path18 || (_path18 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.41,9.26a3.5,3.5,0,0,0-2.47-2.47C24.76,6.2,16,6.2,16,6.2s-8.76,0-10.94.59A3.5,3.5,0,0,0,2.59,9.26,36.13,36.13,0,0,0,2,16a36.13,36.13,0,0,0,.59,6.74,3.5,3.5,0,0,0,2.47,2.47C7.24,25.8,16,25.8,16,25.8s8.76,0,10.94-.59a3.5,3.5,0,0,0,2.47-2.47A36.13,36.13,0,0,0,30,16,36.13,36.13,0,0,0,29.41,9.26ZM13.2,20.2V11.8L20.47,16Z\"\n })), children);\n});\nvar Logout32 = /*#__PURE__*/React.forwardRef(function Logout32(_ref15, ref) {\n var children = _ref15.children,\n rest = _objectWithoutProperties(_ref15, _excluded15);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path19 || (_path19 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6,30H18a2.0023,2.0023,0,0,0,2-2V25H18v3H6V4H18V7h2V4a2.0023,2.0023,0,0,0-2-2H6A2.0023,2.0023,0,0,0,4,4V28A2.0023,2.0023,0,0,0,6,30Z\"\n })), _path20 || (_path20 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20.586 20.586L24.172 17 10 17 10 15 24.172 15 20.586 11.414 22 10 28 16 22 22 20.586 20.586z\"\n })), children);\n});\nvar Logout24 = /*#__PURE__*/React.forwardRef(function Logout24(_ref16, ref) {\n var children = _ref16.children,\n rest = _objectWithoutProperties(_ref16, _excluded16);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path21 || (_path21 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6,30H18a2.0023,2.0023,0,0,0,2-2V25H18v3H6V4H18V7h2V4a2.0023,2.0023,0,0,0-2-2H6A2.0023,2.0023,0,0,0,4,4V28A2.0023,2.0023,0,0,0,6,30Z\"\n })), _path22 || (_path22 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20.586 20.586L24.172 17 10 17 10 15 24.172 15 20.586 11.414 22 10 28 16 22 22 20.586 20.586z\"\n })), children);\n});\nvar Logout20 = /*#__PURE__*/React.forwardRef(function Logout20(_ref17, ref) {\n var children = _ref17.children,\n rest = _objectWithoutProperties(_ref17, _excluded17);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path23 || (_path23 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6,30H18a2.0023,2.0023,0,0,0,2-2V25H18v3H6V4H18V7h2V4a2.0023,2.0023,0,0,0-2-2H6A2.0023,2.0023,0,0,0,4,4V28A2.0023,2.0023,0,0,0,6,30Z\"\n })), _path24 || (_path24 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20.586 20.586L24.172 17 10 17 10 15 24.172 15 20.586 11.414 22 10 28 16 22 22 20.586 20.586z\"\n })), children);\n});\nvar Logout16 = /*#__PURE__*/React.forwardRef(function Logout16(_ref18, ref) {\n var children = _ref18.children,\n rest = _objectWithoutProperties(_ref18, _excluded18);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path25 || (_path25 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6,30H18a2.0023,2.0023,0,0,0,2-2V25H18v3H6V4H18V7h2V4a2.0023,2.0023,0,0,0-2-2H6A2.0023,2.0023,0,0,0,4,4V28A2.0023,2.0023,0,0,0,6,30Z\"\n })), _path26 || (_path26 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20.586 20.586L24.172 17 10 17 10 15 24.172 15 20.586 11.414 22 10 28 16 22 22 20.586 20.586z\"\n })), children);\n});\nvar Loop32 = /*#__PURE__*/React.forwardRef(function Loop32(_ref19, ref) {\n var children = _ref19.children,\n rest = _objectWithoutProperties(_ref19, _excluded19);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path27 || (_path27 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.59 19.41L26 22 21 22 21 24 26 24 23.59 26.59 25 28 30 23 25 18 23.59 19.41zM13 6A9 9 0 005.52 20l1.66-1.11A7 7 0 1113 22H2v2H13A9 9 0 0013 6z\"\n })), children);\n});\nvar Loop24 = /*#__PURE__*/React.forwardRef(function Loop24(_ref20, ref) {\n var children = _ref20.children,\n rest = _objectWithoutProperties(_ref20, _excluded20);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path28 || (_path28 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.59 19.41L26 22 21 22 21 24 26 24 23.59 26.59 25 28 30 23 25 18 23.59 19.41zM13 6A9 9 0 005.52 20l1.66-1.11A7 7 0 1113 22H2v2H13A9 9 0 0013 6z\"\n })), children);\n});\nvar Loop20 = /*#__PURE__*/React.forwardRef(function Loop20(_ref21, ref) {\n var children = _ref21.children,\n rest = _objectWithoutProperties(_ref21, _excluded21);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path29 || (_path29 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.59 19.41L26 22 21 22 21 24 26 24 23.59 26.59 25 28 30 23 25 18 23.59 19.41zM13 6A9 9 0 005.52 20l1.66-1.11A7 7 0 1113 22H2v2H13A9 9 0 0013 6z\"\n })), children);\n});\nvar Loop16 = /*#__PURE__*/React.forwardRef(function Loop16(_ref22, ref) {\n var children = _ref22.children,\n rest = _objectWithoutProperties(_ref22, _excluded22);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path30 || (_path30 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.59 19.41L26 22 21 22 21 24 26 24 23.59 26.59 25 28 30 23 25 18 23.59 19.41zM13 6A9 9 0 005.52 20l1.66-1.11A7 7 0 1113 22H2v2H13A9 9 0 0013 6z\"\n })), children);\n});\nvar LowSeverityGlyph = /*#__PURE__*/React.forwardRef(function LowSeverityGlyph(_ref23, ref) {\n var children = _ref23.children,\n rest = _objectWithoutProperties(_ref23, _excluded23);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path31 || (_path31 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 4H12V12H4z\"\n })), _path32 || (_path32 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,4v8H4V4h8m1-1H3V13H13V3Z\"\n })), children);\n});\nvar MacCommand32 = /*#__PURE__*/React.forwardRef(function MacCommand32(_ref24, ref) {\n var children = _ref24.children,\n rest = _objectWithoutProperties(_ref24, _excluded24);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path33 || (_path33 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,13a4,4,0,0,0,4-4V8a4,4,0,0,0-4-4H23a4,4,0,0,0-4,4v3H13V8A4,4,0,0,0,9,4H8A4,4,0,0,0,4,8V9a4,4,0,0,0,4,4h3v6H8a4,4,0,0,0-4,4v1a4,4,0,0,0,4,4H9a4,4,0,0,0,4-4V21h6v3a4,4,0,0,0,4,4h1a4,4,0,0,0,4-4V23a4,4,0,0,0-4-4H21V13ZM21,8a2,2,0,0,1,2-2h1a2,2,0,0,1,2,2V9a2,2,0,0,1-2,2H21ZM8,11A2,2,0,0,1,6,9V8A2,2,0,0,1,8,6H9a2,2,0,0,1,2,2v3H8Zm3,13a2,2,0,0,1-2,2H8a2,2,0,0,1-2-2V23a2,2,0,0,1,2-2h3Zm8-5H13V13h6Zm2,2h3a2,2,0,0,1,2,2v1a2,2,0,0,1-2,2H23a2,2,0,0,1-2-2Z\"\n })), children);\n});\nvar MacCommand24 = /*#__PURE__*/React.forwardRef(function MacCommand24(_ref25, ref) {\n var children = _ref25.children,\n rest = _objectWithoutProperties(_ref25, _excluded25);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path34 || (_path34 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,13a4,4,0,0,0,4-4V8a4,4,0,0,0-4-4H23a4,4,0,0,0-4,4v3H13V8A4,4,0,0,0,9,4H8A4,4,0,0,0,4,8V9a4,4,0,0,0,4,4h3v6H8a4,4,0,0,0-4,4v1a4,4,0,0,0,4,4H9a4,4,0,0,0,4-4V21h6v3a4,4,0,0,0,4,4h1a4,4,0,0,0,4-4V23a4,4,0,0,0-4-4H21V13ZM21,8a2,2,0,0,1,2-2h1a2,2,0,0,1,2,2V9a2,2,0,0,1-2,2H21ZM8,11A2,2,0,0,1,6,9V8A2,2,0,0,1,8,6H9a2,2,0,0,1,2,2v3H8Zm3,13a2,2,0,0,1-2,2H8a2,2,0,0,1-2-2V23a2,2,0,0,1,2-2h3Zm8-5H13V13h6Zm2,2h3a2,2,0,0,1,2,2v1a2,2,0,0,1-2,2H23a2,2,0,0,1-2-2Z\"\n })), children);\n});\nvar MacCommand20 = /*#__PURE__*/React.forwardRef(function MacCommand20(_ref26, ref) {\n var children = _ref26.children,\n rest = _objectWithoutProperties(_ref26, _excluded26);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path35 || (_path35 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,13a4,4,0,0,0,4-4V8a4,4,0,0,0-4-4H23a4,4,0,0,0-4,4v3H13V8A4,4,0,0,0,9,4H8A4,4,0,0,0,4,8V9a4,4,0,0,0,4,4h3v6H8a4,4,0,0,0-4,4v1a4,4,0,0,0,4,4H9a4,4,0,0,0,4-4V21h6v3a4,4,0,0,0,4,4h1a4,4,0,0,0,4-4V23a4,4,0,0,0-4-4H21V13ZM21,8a2,2,0,0,1,2-2h1a2,2,0,0,1,2,2V9a2,2,0,0,1-2,2H21ZM8,11A2,2,0,0,1,6,9V8A2,2,0,0,1,8,6H9a2,2,0,0,1,2,2v3H8Zm3,13a2,2,0,0,1-2,2H8a2,2,0,0,1-2-2V23a2,2,0,0,1,2-2h3Zm8-5H13V13h6Zm2,2h3a2,2,0,0,1,2,2v1a2,2,0,0,1-2,2H23a2,2,0,0,1-2-2Z\"\n })), children);\n});\nvar MacCommand16 = /*#__PURE__*/React.forwardRef(function MacCommand16(_ref27, ref) {\n var children = _ref27.children,\n rest = _objectWithoutProperties(_ref27, _excluded27);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path36 || (_path36 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,13a4,4,0,0,0,4-4V8a4,4,0,0,0-4-4H23a4,4,0,0,0-4,4v3H13V8A4,4,0,0,0,9,4H8A4,4,0,0,0,4,8V9a4,4,0,0,0,4,4h3v6H8a4,4,0,0,0-4,4v1a4,4,0,0,0,4,4H9a4,4,0,0,0,4-4V21h6v3a4,4,0,0,0,4,4h1a4,4,0,0,0,4-4V23a4,4,0,0,0-4-4H21V13ZM21,8a2,2,0,0,1,2-2h1a2,2,0,0,1,2,2V9a2,2,0,0,1-2,2H21ZM8,11A2,2,0,0,1,6,9V8A2,2,0,0,1,8,6H9a2,2,0,0,1,2,2v3H8Zm3,13a2,2,0,0,1-2,2H8a2,2,0,0,1-2-2V23a2,2,0,0,1,2-2h3Zm8-5H13V13h6Zm2,2h3a2,2,0,0,1,2,2v1a2,2,0,0,1-2,2H23a2,2,0,0,1-2-2Z\"\n })), children);\n});\nvar MacOption32 = /*#__PURE__*/React.forwardRef(function MacOption32(_ref28, ref) {\n var children = _ref28.children,\n rest = _objectWithoutProperties(_ref28, _excluded28);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path37 || (_path37 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 5H28V7H18zM10.6 5L4 5 4 7 9.4 7 18.4 27 28 27 28 25 19.6 25z\"\n })), children);\n});\nvar MacOption24 = /*#__PURE__*/React.forwardRef(function MacOption24(_ref29, ref) {\n var children = _ref29.children,\n rest = _objectWithoutProperties(_ref29, _excluded29);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path38 || (_path38 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 5H28V7H18zM10.6 5L4 5 4 7 9.4 7 18.4 27 28 27 28 25 19.6 25z\"\n })), children);\n});\nvar MacOption20 = /*#__PURE__*/React.forwardRef(function MacOption20(_ref30, ref) {\n var children = _ref30.children,\n rest = _objectWithoutProperties(_ref30, _excluded30);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path39 || (_path39 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 5H28V7H18zM10.6 5L4 5 4 7 9.4 7 18.4 27 28 27 28 25 19.6 25z\"\n })), children);\n});\nvar MacOption16 = /*#__PURE__*/React.forwardRef(function MacOption16(_ref31, ref) {\n var children = _ref31.children,\n rest = _objectWithoutProperties(_ref31, _excluded31);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path40 || (_path40 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 5H28V7H18zM10.6 5L4 5 4 7 9.4 7 18.4 27 28 27 28 25 19.6 25z\"\n })), children);\n});\nvar MacShift32 = /*#__PURE__*/React.forwardRef(function MacShift32(_ref32, ref) {\n var children = _ref32.children,\n rest = _objectWithoutProperties(_ref32, _excluded32);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path41 || (_path41 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21,28H11a2.0023,2.0023,0,0,1-2-2V16H4a1,1,0,0,1-.707-1.707l12-12a.9994.9994,0,0,1,1.414,0l12,12A1,1,0,0,1,28,16H23V26A2.0027,2.0027,0,0,1,21,28ZM6.4141,14H11V26H21V14h4.5859L16,4.4141Z\"\n })), children);\n});\nvar MacShift24 = /*#__PURE__*/React.forwardRef(function MacShift24(_ref33, ref) {\n var children = _ref33.children,\n rest = _objectWithoutProperties(_ref33, _excluded33);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path42 || (_path42 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21,28H11a2.0023,2.0023,0,0,1-2-2V16H4a1,1,0,0,1-.707-1.707l12-12a.9994.9994,0,0,1,1.414,0l12,12A1,1,0,0,1,28,16H23V26A2.0027,2.0027,0,0,1,21,28ZM6.4141,14H11V26H21V14h4.5859L16,4.4141Z\"\n })), children);\n});\nvar MacShift20 = /*#__PURE__*/React.forwardRef(function MacShift20(_ref34, ref) {\n var children = _ref34.children,\n rest = _objectWithoutProperties(_ref34, _excluded34);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path43 || (_path43 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21,28H11a2.0023,2.0023,0,0,1-2-2V16H4a1,1,0,0,1-.707-1.707l12-12a.9994.9994,0,0,1,1.414,0l12,12A1,1,0,0,1,28,16H23V26A2.0027,2.0027,0,0,1,21,28ZM6.4141,14H11V26H21V14h4.5859L16,4.4141Z\"\n })), children);\n});\nvar MacShift16 = /*#__PURE__*/React.forwardRef(function MacShift16(_ref35, ref) {\n var children = _ref35.children,\n rest = _objectWithoutProperties(_ref35, _excluded35);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path44 || (_path44 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21,28H11a2.0023,2.0023,0,0,1-2-2V16H4a1,1,0,0,1-.707-1.707l12-12a.9994.9994,0,0,1,1.414,0l12,12A1,1,0,0,1,28,16H23V26A2.0027,2.0027,0,0,1,21,28ZM6.4141,14H11V26H21V14h4.5859L16,4.4141Z\"\n })), children);\n});\nvar MachineLearning32 = /*#__PURE__*/React.forwardRef(function MachineLearning32(_ref36, ref) {\n var children = _ref36.children,\n rest = _objectWithoutProperties(_ref36, _excluded36);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path45 || (_path45 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 25a6.9908 6.9908 0 01-5.833-3.1287l1.666-1.1074a5.0007 5.0007 0 008.334 0l1.666 1.1074A6.9908 6.9908 0 0116 25zM20 14a2 2 0 102 2A1.9806 1.9806 0 0020 14zM12 14a2 2 0 102 2A1.9806 1.9806 0 0012 14z\"\n })), _path46 || (_path46 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,16V14H28V10a4.0045,4.0045,0,0,0-4-4H22V2H20V6H12V2H10V6H8a4.0045,4.0045,0,0,0-4,4v4H2v2H4v5H2v2H4v3a4.0045,4.0045,0,0,0,4,4H24a4.0045,4.0045,0,0,0,4-4V23h2V21H28V16ZM26,26a2.0023,2.0023,0,0,1-2,2H8a2.0023,2.0023,0,0,1-2-2V10A2.0023,2.0023,0,0,1,8,8H24a2.0023,2.0023,0,0,1,2,2Z\"\n })), children);\n});\nvar MachineLearning24 = /*#__PURE__*/React.forwardRef(function MachineLearning24(_ref37, ref) {\n var children = _ref37.children,\n rest = _objectWithoutProperties(_ref37, _excluded37);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path47 || (_path47 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 25a6.9908 6.9908 0 01-5.833-3.1287l1.666-1.1074a5.0007 5.0007 0 008.334 0l1.666 1.1074A6.9908 6.9908 0 0116 25zM20 14a2 2 0 102 2A1.9806 1.9806 0 0020 14zM12 14a2 2 0 102 2A1.9806 1.9806 0 0012 14z\"\n })), _path48 || (_path48 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,16V14H28V10a4.0045,4.0045,0,0,0-4-4H22V2H20V6H12V2H10V6H8a4.0045,4.0045,0,0,0-4,4v4H2v2H4v5H2v2H4v3a4.0045,4.0045,0,0,0,4,4H24a4.0045,4.0045,0,0,0,4-4V23h2V21H28V16ZM26,26a2.0023,2.0023,0,0,1-2,2H8a2.0023,2.0023,0,0,1-2-2V10A2.0023,2.0023,0,0,1,8,8H24a2.0023,2.0023,0,0,1,2,2Z\"\n })), children);\n});\nvar MachineLearning20 = /*#__PURE__*/React.forwardRef(function MachineLearning20(_ref38, ref) {\n var children = _ref38.children,\n rest = _objectWithoutProperties(_ref38, _excluded38);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path49 || (_path49 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 25a6.9908 6.9908 0 01-5.833-3.1287l1.666-1.1074a5.0007 5.0007 0 008.334 0l1.666 1.1074A6.9908 6.9908 0 0116 25zM20 14a2 2 0 102 2A1.9806 1.9806 0 0020 14zM12 14a2 2 0 102 2A1.9806 1.9806 0 0012 14z\"\n })), _path50 || (_path50 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,16V14H28V10a4.0045,4.0045,0,0,0-4-4H22V2H20V6H12V2H10V6H8a4.0045,4.0045,0,0,0-4,4v4H2v2H4v5H2v2H4v3a4.0045,4.0045,0,0,0,4,4H24a4.0045,4.0045,0,0,0,4-4V23h2V21H28V16ZM26,26a2.0023,2.0023,0,0,1-2,2H8a2.0023,2.0023,0,0,1-2-2V10A2.0023,2.0023,0,0,1,8,8H24a2.0023,2.0023,0,0,1,2,2Z\"\n })), children);\n});\nvar MachineLearning16 = /*#__PURE__*/React.forwardRef(function MachineLearning16(_ref39, ref) {\n var children = _ref39.children,\n rest = _objectWithoutProperties(_ref39, _excluded39);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path51 || (_path51 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 25a6.9908 6.9908 0 01-5.833-3.1287l1.666-1.1074a5.0007 5.0007 0 008.334 0l1.666 1.1074A6.9908 6.9908 0 0116 25zM20 14a2 2 0 102 2A1.9806 1.9806 0 0020 14zM12 14a2 2 0 102 2A1.9806 1.9806 0 0012 14z\"\n })), _path52 || (_path52 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,16V14H28V10a4.0045,4.0045,0,0,0-4-4H22V2H20V6H12V2H10V6H8a4.0045,4.0045,0,0,0-4,4v4H2v2H4v5H2v2H4v3a4.0045,4.0045,0,0,0,4,4H24a4.0045,4.0045,0,0,0,4-4V23h2V21H28V16ZM26,26a2.0023,2.0023,0,0,1-2,2H8a2.0023,2.0023,0,0,1-2-2V10A2.0023,2.0023,0,0,1,8,8H24a2.0023,2.0023,0,0,1,2,2Z\"\n })), children);\n});\nvar MachineLearningModel32 = /*#__PURE__*/React.forwardRef(function MachineLearningModel32(_ref40, ref) {\n var children = _ref40.children,\n rest = _objectWithoutProperties(_ref40, _excluded40);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path53 || (_path53 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 24a2.9609 2.9609 0 00-1.2854.3008L21.4141 20H18v2h2.5859l3.7146 3.7148A2.9665 2.9665 0 0024 27a3 3 0 103-3zm0 4a1 1 0 111-1A1.0009 1.0009 0 0127 28zM27 13a2.9948 2.9948 0 00-2.8157 2H18v2h6.1843A2.9947 2.9947 0 1027 13zm0 4a1 1 0 111-1A1.0009 1.0009 0 0127 17zM27 2a3.0033 3.0033 0 00-3 3 2.9657 2.9657 0 00.3481 1.373L20.5957 10H18v2h3.4043l4.3989-4.2524A2.9987 2.9987 0 1027 2zm0 4a1 1 0 111-1A1.0009 1.0009 0 0127 6z\"\n })), _path54 || (_path54 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,6h2V4H18a3.9756,3.9756,0,0,0-3,1.3823A3.9756,3.9756,0,0,0,12,4H11a9.01,9.01,0,0,0-9,9v6a9.01,9.01,0,0,0,9,9h1a3.9756,3.9756,0,0,0,3-1.3823A3.9756,3.9756,0,0,0,18,28h2V26H18a2.0023,2.0023,0,0,1-2-2V8A2.0023,2.0023,0,0,1,18,6ZM12,26H11a7.0047,7.0047,0,0,1-6.92-6H6V18H4V14H7a3.0033,3.0033,0,0,0,3-3V9H8v2a1.0009,1.0009,0,0,1-1,1H4.08A7.0047,7.0047,0,0,1,11,6h1a2.0023,2.0023,0,0,1,2,2v4H12v2h2v4H12a3.0033,3.0033,0,0,0-3,3v2h2V21a1.0009,1.0009,0,0,1,1-1h2v4A2.0023,2.0023,0,0,1,12,26Z\"\n })), children);\n});\nvar MachineLearningModel24 = /*#__PURE__*/React.forwardRef(function MachineLearningModel24(_ref41, ref) {\n var children = _ref41.children,\n rest = _objectWithoutProperties(_ref41, _excluded41);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path55 || (_path55 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 24a2.9609 2.9609 0 00-1.2854.3008L21.4141 20H18v2h2.5859l3.7146 3.7148A2.9665 2.9665 0 0024 27a3 3 0 103-3zm0 4a1 1 0 111-1A1.0009 1.0009 0 0127 28zM27 13a2.9948 2.9948 0 00-2.8157 2H18v2h6.1843A2.9947 2.9947 0 1027 13zm0 4a1 1 0 111-1A1.0009 1.0009 0 0127 17zM27 2a3.0033 3.0033 0 00-3 3 2.9657 2.9657 0 00.3481 1.373L20.5957 10H18v2h3.4043l4.3989-4.2524A2.9987 2.9987 0 1027 2zm0 4a1 1 0 111-1A1.0009 1.0009 0 0127 6z\"\n })), _path56 || (_path56 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,6h2V4H18a3.9756,3.9756,0,0,0-3,1.3823A3.9756,3.9756,0,0,0,12,4H11a9.01,9.01,0,0,0-9,9v6a9.01,9.01,0,0,0,9,9h1a3.9756,3.9756,0,0,0,3-1.3823A3.9756,3.9756,0,0,0,18,28h2V26H18a2.0023,2.0023,0,0,1-2-2V8A2.0023,2.0023,0,0,1,18,6ZM12,26H11a7.0047,7.0047,0,0,1-6.92-6H6V18H4V14H7a3.0033,3.0033,0,0,0,3-3V9H8v2a1.0009,1.0009,0,0,1-1,1H4.08A7.0047,7.0047,0,0,1,11,6h1a2.0023,2.0023,0,0,1,2,2v4H12v2h2v4H12a3.0033,3.0033,0,0,0-3,3v2h2V21a1.0009,1.0009,0,0,1,1-1h2v4A2.0023,2.0023,0,0,1,12,26Z\"\n })), children);\n});\nvar MachineLearningModel20 = /*#__PURE__*/React.forwardRef(function MachineLearningModel20(_ref42, ref) {\n var children = _ref42.children,\n rest = _objectWithoutProperties(_ref42, _excluded42);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path57 || (_path57 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 24a2.9609 2.9609 0 00-1.2854.3008L21.4141 20H18v2h2.5859l3.7146 3.7148A2.9665 2.9665 0 0024 27a3 3 0 103-3zm0 4a1 1 0 111-1A1.0009 1.0009 0 0127 28zM27 13a2.9948 2.9948 0 00-2.8157 2H18v2h6.1843A2.9947 2.9947 0 1027 13zm0 4a1 1 0 111-1A1.0009 1.0009 0 0127 17zM27 2a3.0033 3.0033 0 00-3 3 2.9657 2.9657 0 00.3481 1.373L20.5957 10H18v2h3.4043l4.3989-4.2524A2.9987 2.9987 0 1027 2zm0 4a1 1 0 111-1A1.0009 1.0009 0 0127 6z\"\n })), _path58 || (_path58 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,6h2V4H18a3.9756,3.9756,0,0,0-3,1.3823A3.9756,3.9756,0,0,0,12,4H11a9.01,9.01,0,0,0-9,9v6a9.01,9.01,0,0,0,9,9h1a3.9756,3.9756,0,0,0,3-1.3823A3.9756,3.9756,0,0,0,18,28h2V26H18a2.0023,2.0023,0,0,1-2-2V8A2.0023,2.0023,0,0,1,18,6ZM12,26H11a7.0047,7.0047,0,0,1-6.92-6H6V18H4V14H7a3.0033,3.0033,0,0,0,3-3V9H8v2a1.0009,1.0009,0,0,1-1,1H4.08A7.0047,7.0047,0,0,1,11,6h1a2.0023,2.0023,0,0,1,2,2v4H12v2h2v4H12a3.0033,3.0033,0,0,0-3,3v2h2V21a1.0009,1.0009,0,0,1,1-1h2v4A2.0023,2.0023,0,0,1,12,26Z\"\n })), children);\n});\nvar MachineLearningModel16 = /*#__PURE__*/React.forwardRef(function MachineLearningModel16(_ref43, ref) {\n var children = _ref43.children,\n rest = _objectWithoutProperties(_ref43, _excluded43);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path59 || (_path59 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 24a2.9609 2.9609 0 00-1.2854.3008L21.4141 20H18v2h2.5859l3.7146 3.7148A2.9665 2.9665 0 0024 27a3 3 0 103-3zm0 4a1 1 0 111-1A1.0009 1.0009 0 0127 28zM27 13a2.9948 2.9948 0 00-2.8157 2H18v2h6.1843A2.9947 2.9947 0 1027 13zm0 4a1 1 0 111-1A1.0009 1.0009 0 0127 17zM27 2a3.0033 3.0033 0 00-3 3 2.9657 2.9657 0 00.3481 1.373L20.5957 10H18v2h3.4043l4.3989-4.2524A2.9987 2.9987 0 1027 2zm0 4a1 1 0 111-1A1.0009 1.0009 0 0127 6z\"\n })), _path60 || (_path60 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,6h2V4H18a3.9756,3.9756,0,0,0-3,1.3823A3.9756,3.9756,0,0,0,12,4H11a9.01,9.01,0,0,0-9,9v6a9.01,9.01,0,0,0,9,9h1a3.9756,3.9756,0,0,0,3-1.3823A3.9756,3.9756,0,0,0,18,28h2V26H18a2.0023,2.0023,0,0,1-2-2V8A2.0023,2.0023,0,0,1,18,6ZM12,26H11a7.0047,7.0047,0,0,1-6.92-6H6V18H4V14H7a3.0033,3.0033,0,0,0,3-3V9H8v2a1.0009,1.0009,0,0,1-1,1H4.08A7.0047,7.0047,0,0,1,11,6h1a2.0023,2.0023,0,0,1,2,2v4H12v2h2v4H12a3.0033,3.0033,0,0,0-3,3v2h2V21a1.0009,1.0009,0,0,1,1-1h2v4A2.0023,2.0023,0,0,1,12,26Z\"\n })), children);\n});\nvar MagicWand32 = /*#__PURE__*/React.forwardRef(function MagicWand32(_ref44, ref) {\n var children = _ref44.children,\n rest = _objectWithoutProperties(_ref44, _excluded44);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path61 || (_path61 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.4141,24,12,6.5859a2.0476,2.0476,0,0,0-2.8281,0l-2.586,2.586a2.0021,2.0021,0,0,0,0,2.8281L23.999,29.4141a2.0024,2.0024,0,0,0,2.8281,0l2.587-2.5865a1.9993,1.9993,0,0,0,0-2.8281ZM8,10.5859,10.5859,8l5,5-2.5866,2.5869-5-5ZM25.4131,28l-11-10.999L17,14.4141l11,11Z\"\n })), _path62 || (_path62 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.586 14.586H5.414V17.414H2.586z\",\n transform: \"rotate(-45 4 16)\"\n })), _path63 || (_path63 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14.586 2.586H17.414V5.414H14.586z\",\n transform: \"rotate(-45 16 4)\"\n })), _path64 || (_path64 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.586 2.586H5.414V5.414H2.586z\",\n transform: \"rotate(-45 4 4)\"\n })), children);\n});\nvar MagicWand24 = /*#__PURE__*/React.forwardRef(function MagicWand24(_ref45, ref) {\n var children = _ref45.children,\n rest = _objectWithoutProperties(_ref45, _excluded45);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path65 || (_path65 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.4141,24,12,6.5859a2.0476,2.0476,0,0,0-2.8281,0l-2.586,2.586a2.0021,2.0021,0,0,0,0,2.8281L23.999,29.4141a2.0024,2.0024,0,0,0,2.8281,0l2.587-2.5865a1.9993,1.9993,0,0,0,0-2.8281ZM8,10.5859,10.5859,8l5,5-2.5866,2.5869-5-5ZM25.4131,28l-11-10.999L17,14.4141l11,11Z\"\n })), _path66 || (_path66 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.586 14.586H5.414V17.414H2.586z\",\n transform: \"rotate(-45 4 16)\"\n })), _path67 || (_path67 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14.586 2.586H17.414V5.414H14.586z\",\n transform: \"rotate(-45 16 4)\"\n })), _path68 || (_path68 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.586 2.586H5.414V5.414H2.586z\",\n transform: \"rotate(-45 4 4)\"\n })), children);\n});\nvar MagicWand20 = /*#__PURE__*/React.forwardRef(function MagicWand20(_ref46, ref) {\n var children = _ref46.children,\n rest = _objectWithoutProperties(_ref46, _excluded46);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path69 || (_path69 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.4141,24,12,6.5859a2.0476,2.0476,0,0,0-2.8281,0l-2.586,2.586a2.0021,2.0021,0,0,0,0,2.8281L23.999,29.4141a2.0024,2.0024,0,0,0,2.8281,0l2.587-2.5865a1.9993,1.9993,0,0,0,0-2.8281ZM8,10.5859,10.5859,8l5,5-2.5866,2.5869-5-5ZM25.4131,28l-11-10.999L17,14.4141l11,11Z\"\n })), _path70 || (_path70 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.586 14.586H5.414V17.414H2.586z\",\n transform: \"rotate(-45 4 16)\"\n })), _path71 || (_path71 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14.586 2.586H17.414V5.414H14.586z\",\n transform: \"rotate(-45 16 4)\"\n })), _path72 || (_path72 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.586 2.586H5.414V5.414H2.586z\",\n transform: \"rotate(-45 4 4)\"\n })), children);\n});\nvar MagicWand16 = /*#__PURE__*/React.forwardRef(function MagicWand16(_ref47, ref) {\n var children = _ref47.children,\n rest = _objectWithoutProperties(_ref47, _excluded47);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path73 || (_path73 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.4141,24,12,6.5859a2.0476,2.0476,0,0,0-2.8281,0l-2.586,2.586a2.0021,2.0021,0,0,0,0,2.8281L23.999,29.4141a2.0024,2.0024,0,0,0,2.8281,0l2.587-2.5865a1.9993,1.9993,0,0,0,0-2.8281ZM8,10.5859,10.5859,8l5,5-2.5866,2.5869-5-5ZM25.4131,28l-11-10.999L17,14.4141l11,11Z\"\n })), _path74 || (_path74 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.586 14.586H5.414V17.414H2.586z\",\n transform: \"rotate(-45 4 16)\"\n })), _path75 || (_path75 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14.586 2.586H17.414V5.414H14.586z\",\n transform: \"rotate(-45 16 4)\"\n })), _path76 || (_path76 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.586 2.586H5.414V5.414H2.586z\",\n transform: \"rotate(-45 4 4)\"\n })), children);\n});\nvar MagicWandFilled32 = /*#__PURE__*/React.forwardRef(function MagicWandFilled32(_ref48, ref) {\n var children = _ref48.children,\n rest = _objectWithoutProperties(_ref48, _excluded48);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path77 || (_path77 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.4141,24,12,6.5859a2.0476,2.0476,0,0,0-2.8281,0l-2.586,2.586a2.0021,2.0021,0,0,0,0,2.8281L23.999,29.4141a2.0024,2.0024,0,0,0,2.8281,0l2.587-2.5865a1.9993,1.9993,0,0,0,0-2.8281ZM8,10.5859,10.5859,8l5,5-2.5866,2.5869-5-5Z\"\n })), _path78 || (_path78 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.586 14.586H5.414V17.414H2.586z\",\n transform: \"rotate(-45 4 16)\"\n })), _path79 || (_path79 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14.586 2.586H17.414V5.414H14.586z\",\n transform: \"rotate(-45 16 4)\"\n })), _path80 || (_path80 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.586 2.586H5.414V5.414H2.586z\",\n transform: \"rotate(-45 4 4)\"\n })), children);\n});\nvar MagicWandFilled24 = /*#__PURE__*/React.forwardRef(function MagicWandFilled24(_ref49, ref) {\n var children = _ref49.children,\n rest = _objectWithoutProperties(_ref49, _excluded49);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path81 || (_path81 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.4141,24,12,6.5859a2.0476,2.0476,0,0,0-2.8281,0l-2.586,2.586a2.0021,2.0021,0,0,0,0,2.8281L23.999,29.4141a2.0024,2.0024,0,0,0,2.8281,0l2.587-2.5865a1.9993,1.9993,0,0,0,0-2.8281ZM8,10.5859,10.5859,8l5,5-2.5866,2.5869-5-5Z\"\n })), _path82 || (_path82 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.586 14.586H5.414V17.414H2.586z\",\n transform: \"rotate(-45 4 16)\"\n })), _path83 || (_path83 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14.586 2.586H17.414V5.414H14.586z\",\n transform: \"rotate(-45 16 4)\"\n })), _path84 || (_path84 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.586 2.586H5.414V5.414H2.586z\",\n transform: \"rotate(-45 4 4)\"\n })), children);\n});\nvar MagicWandFilled20 = /*#__PURE__*/React.forwardRef(function MagicWandFilled20(_ref50, ref) {\n var children = _ref50.children,\n rest = _objectWithoutProperties(_ref50, _excluded50);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path85 || (_path85 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.4141,24,12,6.5859a2.0476,2.0476,0,0,0-2.8281,0l-2.586,2.586a2.0021,2.0021,0,0,0,0,2.8281L23.999,29.4141a2.0024,2.0024,0,0,0,2.8281,0l2.587-2.5865a1.9993,1.9993,0,0,0,0-2.8281ZM8,10.5859,10.5859,8l5,5-2.5866,2.5869-5-5Z\"\n })), _path86 || (_path86 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.586 14.586H5.414V17.414H2.586z\",\n transform: \"rotate(-45 4 16)\"\n })), _path87 || (_path87 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14.586 2.586H17.414V5.414H14.586z\",\n transform: \"rotate(-45 16 4)\"\n })), _path88 || (_path88 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.586 2.586H5.414V5.414H2.586z\",\n transform: \"rotate(-45 4 4)\"\n })), children);\n});\nvar MagicWandFilled16 = /*#__PURE__*/React.forwardRef(function MagicWandFilled16(_ref51, ref) {\n var children = _ref51.children,\n rest = _objectWithoutProperties(_ref51, _excluded51);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path89 || (_path89 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.4141,24,12,6.5859a2.0476,2.0476,0,0,0-2.8281,0l-2.586,2.586a2.0021,2.0021,0,0,0,0,2.8281L23.999,29.4141a2.0024,2.0024,0,0,0,2.8281,0l2.587-2.5865a1.9993,1.9993,0,0,0,0-2.8281ZM8,10.5859,10.5859,8l5,5-2.5866,2.5869-5-5Z\"\n })), _path90 || (_path90 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.586 14.586H5.414V17.414H2.586z\",\n transform: \"rotate(-45 4 16)\"\n })), _path91 || (_path91 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14.586 2.586H17.414V5.414H14.586z\",\n transform: \"rotate(-45 16 4)\"\n })), _path92 || (_path92 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.586 2.586H5.414V5.414H2.586z\",\n transform: \"rotate(-45 4 4)\"\n })), children);\n});\nvar WatsonHealthMagnify32 = /*#__PURE__*/React.forwardRef(function WatsonHealthMagnify32(_ref52, ref) {\n var children = _ref52.children,\n rest = _objectWithoutProperties(_ref52, _excluded52);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path93 || (_path93 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,21H4V4H22v8h2V4a2,2,0,0,0-2-2H4A2,2,0,0,0,2,4V21a2,2,0,0,0,2,2h8Z\"\n })), _path94 || (_path94 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,28.58l-3.11-3.11a6,6,0,1,0-1.42,1.42L28.58,30ZM22,26a4,4,0,1,1,4-4A4,4,0,0,1,22,26Z\"\n })), children);\n});\nvar WatsonHealthMagnify24 = /*#__PURE__*/React.forwardRef(function WatsonHealthMagnify24(_ref53, ref) {\n var children = _ref53.children,\n rest = _objectWithoutProperties(_ref53, _excluded53);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path95 || (_path95 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,21H4V4H22v8h2V4a2,2,0,0,0-2-2H4A2,2,0,0,0,2,4V21a2,2,0,0,0,2,2h8Z\"\n })), _path96 || (_path96 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,28.58l-3.11-3.11a6,6,0,1,0-1.42,1.42L28.58,30ZM22,26a4,4,0,1,1,4-4A4,4,0,0,1,22,26Z\"\n })), children);\n});\nvar WatsonHealthMagnify20 = /*#__PURE__*/React.forwardRef(function WatsonHealthMagnify20(_ref54, ref) {\n var children = _ref54.children,\n rest = _objectWithoutProperties(_ref54, _excluded54);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path97 || (_path97 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,21H4V4H22v8h2V4a2,2,0,0,0-2-2H4A2,2,0,0,0,2,4V21a2,2,0,0,0,2,2h8Z\"\n })), _path98 || (_path98 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,28.58l-3.11-3.11a6,6,0,1,0-1.42,1.42L28.58,30ZM22,26a4,4,0,1,1,4-4A4,4,0,0,1,22,26Z\"\n })), children);\n});\nvar WatsonHealthMagnify16 = /*#__PURE__*/React.forwardRef(function WatsonHealthMagnify16(_ref55, ref) {\n var children = _ref55.children,\n rest = _objectWithoutProperties(_ref55, _excluded55);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path99 || (_path99 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,21H4V4H22v8h2V4a2,2,0,0,0-2-2H4A2,2,0,0,0,2,4V21a2,2,0,0,0,2,2h8Z\"\n })), _path100 || (_path100 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,28.58l-3.11-3.11a6,6,0,1,0-1.42,1.42L28.58,30ZM22,26a4,4,0,1,1,4-4A4,4,0,0,1,22,26Z\"\n })), children);\n});\nvar MailAll32 = /*#__PURE__*/React.forwardRef(function MailAll32(_ref56, ref) {\n var children = _ref56.children,\n rest = _objectWithoutProperties(_ref56, _excluded56);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path101 || (_path101 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16.59 20.41L20.17 24 20.17 24 16.58 27.59 18 29 23 24 18 19 16.59 20.41zM23.59 20.41L27.17 24 27.17 24 23.58 27.59 25 29 30 24 25 19 23.59 20.41z\"\n })), _path102 || (_path102 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14,23H4V7.91l11.43,7.91a1,1,0,0,0,1.14,0L28,7.91V17h2V7a2,2,0,0,0-2-2H4A2,2,0,0,0,2,7V23a2,2,0,0,0,2,2H14ZM25.8,7,16,13.78,6.2,7Z\"\n })), children);\n});\nvar MailAll24 = /*#__PURE__*/React.forwardRef(function MailAll24(_ref57, ref) {\n var children = _ref57.children,\n rest = _objectWithoutProperties(_ref57, _excluded57);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path103 || (_path103 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16.59 20.41L20.17 24 20.17 24 16.58 27.59 18 29 23 24 18 19 16.59 20.41zM23.59 20.41L27.17 24 27.17 24 23.58 27.59 25 29 30 24 25 19 23.59 20.41z\"\n })), _path104 || (_path104 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14,23H4V7.91l11.43,7.91a1,1,0,0,0,1.14,0L28,7.91V17h2V7a2,2,0,0,0-2-2H4A2,2,0,0,0,2,7V23a2,2,0,0,0,2,2H14ZM25.8,7,16,13.78,6.2,7Z\"\n })), children);\n});\nvar MailAll20 = /*#__PURE__*/React.forwardRef(function MailAll20(_ref58, ref) {\n var children = _ref58.children,\n rest = _objectWithoutProperties(_ref58, _excluded58);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path105 || (_path105 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16.59 20.41L20.17 24 20.17 24 16.58 27.59 18 29 23 24 18 19 16.59 20.41zM23.59 20.41L27.17 24 27.17 24 23.58 27.59 25 29 30 24 25 19 23.59 20.41z\"\n })), _path106 || (_path106 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14,23H4V7.91l11.43,7.91a1,1,0,0,0,1.14,0L28,7.91V17h2V7a2,2,0,0,0-2-2H4A2,2,0,0,0,2,7V23a2,2,0,0,0,2,2H14ZM25.8,7,16,13.78,6.2,7Z\"\n })), children);\n});\nvar MailAll16 = /*#__PURE__*/React.forwardRef(function MailAll16(_ref59, ref) {\n var children = _ref59.children,\n rest = _objectWithoutProperties(_ref59, _excluded59);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path107 || (_path107 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16.59 20.41L20.17 24 20.17 24 16.58 27.59 18 29 23 24 18 19 16.59 20.41zM23.59 20.41L27.17 24 27.17 24 23.58 27.59 25 29 30 24 25 19 23.59 20.41z\"\n })), _path108 || (_path108 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14,23H4V7.91l11.43,7.91a1,1,0,0,0,1.14,0L28,7.91V17h2V7a2,2,0,0,0-2-2H4A2,2,0,0,0,2,7V23a2,2,0,0,0,2,2H14ZM25.8,7,16,13.78,6.2,7Z\"\n })), children);\n});\nvar MailReply32 = /*#__PURE__*/React.forwardRef(function MailReply32(_ref60, ref) {\n var children = _ref60.children,\n rest = _objectWithoutProperties(_ref60, _excluded60);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path109 || (_path109 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25,18l-1.4141,1.4141L26.1672,22H18a4,4,0,0,0,0,8h2V28H18a2,2,0,0,1,0-4h8.1672l-2.5827,2.5874L25,28l5-5Z\"\n })), _path110 || (_path110 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,22H4L3.9966,6.9064l11.4341,7.9159a1.0008,1.0008,0,0,0,1.1386,0L28,6.9086,28,16h2V6a2.0025,2.0025,0,0,0-2-2H4A2,2,0,0,0,2,5.9965V22a2.0026,2.0026,0,0,0,2,2h6ZM25.7986,6,16,12.7837,6.2014,6Z\"\n })), children);\n});\nvar MailReply24 = /*#__PURE__*/React.forwardRef(function MailReply24(_ref61, ref) {\n var children = _ref61.children,\n rest = _objectWithoutProperties(_ref61, _excluded61);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path111 || (_path111 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25,18l-1.4141,1.4141L26.1672,22H18a4,4,0,0,0,0,8h2V28H18a2,2,0,0,1,0-4h8.1672l-2.5827,2.5874L25,28l5-5Z\"\n })), _path112 || (_path112 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,22H4L3.9966,6.9064l11.4341,7.9159a1.0008,1.0008,0,0,0,1.1386,0L28,6.9086,28,16h2V6a2.0025,2.0025,0,0,0-2-2H4A2,2,0,0,0,2,5.9965V22a2.0026,2.0026,0,0,0,2,2h6ZM25.7986,6,16,12.7837,6.2014,6Z\"\n })), children);\n});\nvar MailReply20 = /*#__PURE__*/React.forwardRef(function MailReply20(_ref62, ref) {\n var children = _ref62.children,\n rest = _objectWithoutProperties(_ref62, _excluded62);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path113 || (_path113 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25,18l-1.4141,1.4141L26.1672,22H18a4,4,0,0,0,0,8h2V28H18a2,2,0,0,1,0-4h8.1672l-2.5827,2.5874L25,28l5-5Z\"\n })), _path114 || (_path114 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,22H4L3.9966,6.9064l11.4341,7.9159a1.0008,1.0008,0,0,0,1.1386,0L28,6.9086,28,16h2V6a2.0025,2.0025,0,0,0-2-2H4A2,2,0,0,0,2,5.9965V22a2.0026,2.0026,0,0,0,2,2h6ZM25.7986,6,16,12.7837,6.2014,6Z\"\n })), children);\n});\nvar MailReply16 = /*#__PURE__*/React.forwardRef(function MailReply16(_ref63, ref) {\n var children = _ref63.children,\n rest = _objectWithoutProperties(_ref63, _excluded63);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path115 || (_path115 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25,18l-1.4141,1.4141L26.1672,22H18a4,4,0,0,0,0,8h2V28H18a2,2,0,0,1,0-4h8.1672l-2.5827,2.5874L25,28l5-5Z\"\n })), _path116 || (_path116 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,22H4L3.9966,6.9064l11.4341,7.9159a1.0008,1.0008,0,0,0,1.1386,0L28,6.9086,28,16h2V6a2.0025,2.0025,0,0,0-2-2H4A2,2,0,0,0,2,5.9965V22a2.0026,2.0026,0,0,0,2,2h6ZM25.7986,6,16,12.7837,6.2014,6Z\"\n })), children);\n});\nvar WatsonHealthMammogram32 = /*#__PURE__*/React.forwardRef(function WatsonHealthMammogram32(_ref64, ref) {\n var children = _ref64.children,\n rest = _objectWithoutProperties(_ref64, _excluded64);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path117 || (_path117 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25 32L32 32 32 25 30 25 30 30 25 30 25 32zM25 27H22V17h3a3.0033 3.0033 0 013 3v4A3.0033 3.0033 0 0125 27zm-1-2h1a1.0006 1.0006 0 001-1V20a1.0006 1.0006 0 00-1-1H24zM20 27H14V23a2.002 2.002 0 012-2h2V19H14V17h4a2.0023 2.0023 0 012 2v2a2.0023 2.0023 0 01-2 2H16v2h4zM25 15H22V5h3a3.0033 3.0033 0 013 3v4A3.0033 3.0033 0 0125 15zm-1-2h1a1.0009 1.0009 0 001-1V8a1.0009 1.0009 0 00-1-1H24zM18 5H14V7h4V9H15v2h3v2H14v2h4a2.0027 2.0027 0 002-2V7A2.0023 2.0023 0 0018 5zM10 27H8V23.9541C3.2847 23.5117 2 19.9443 2 18c0-3.0146 2.082-4.5015 3.9189-5.814C7.5723 11.0054 9 9.9854 9 8V5h2V8c0 3.0146-2.082 4.5015-3.9189 5.814C5.4277 14.9946 4 16.0146 4 18c.0054.4033.1914 4 5 4a1 1 0 011 1zM7 0L0 0 0 7 2 7 2 2 7 2 7 0z\"\n })), children);\n});\nvar WatsonHealthMammogram24 = /*#__PURE__*/React.forwardRef(function WatsonHealthMammogram24(_ref65, ref) {\n var children = _ref65.children,\n rest = _objectWithoutProperties(_ref65, _excluded65);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path118 || (_path118 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25 32L32 32 32 25 30 25 30 30 25 30 25 32zM25 27H22V17h3a3.0033 3.0033 0 013 3v4A3.0033 3.0033 0 0125 27zm-1-2h1a1.0006 1.0006 0 001-1V20a1.0006 1.0006 0 00-1-1H24zM20 27H14V23a2.002 2.002 0 012-2h2V19H14V17h4a2.0023 2.0023 0 012 2v2a2.0023 2.0023 0 01-2 2H16v2h4zM25 15H22V5h3a3.0033 3.0033 0 013 3v4A3.0033 3.0033 0 0125 15zm-1-2h1a1.0009 1.0009 0 001-1V8a1.0009 1.0009 0 00-1-1H24zM18 5H14V7h4V9H15v2h3v2H14v2h4a2.0027 2.0027 0 002-2V7A2.0023 2.0023 0 0018 5zM10 27H8V23.9541C3.2847 23.5117 2 19.9443 2 18c0-3.0146 2.082-4.5015 3.9189-5.814C7.5723 11.0054 9 9.9854 9 8V5h2V8c0 3.0146-2.082 4.5015-3.9189 5.814C5.4277 14.9946 4 16.0146 4 18c.0054.4033.1914 4 5 4a1 1 0 011 1zM7 0L0 0 0 7 2 7 2 2 7 2 7 0z\"\n })), children);\n});\nvar WatsonHealthMammogram20 = /*#__PURE__*/React.forwardRef(function WatsonHealthMammogram20(_ref66, ref) {\n var children = _ref66.children,\n rest = _objectWithoutProperties(_ref66, _excluded66);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path119 || (_path119 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25 32L32 32 32 25 30 25 30 30 25 30 25 32zM25 27H22V17h3a3.0033 3.0033 0 013 3v4A3.0033 3.0033 0 0125 27zm-1-2h1a1.0006 1.0006 0 001-1V20a1.0006 1.0006 0 00-1-1H24zM20 27H14V23a2.002 2.002 0 012-2h2V19H14V17h4a2.0023 2.0023 0 012 2v2a2.0023 2.0023 0 01-2 2H16v2h4zM25 15H22V5h3a3.0033 3.0033 0 013 3v4A3.0033 3.0033 0 0125 15zm-1-2h1a1.0009 1.0009 0 001-1V8a1.0009 1.0009 0 00-1-1H24zM18 5H14V7h4V9H15v2h3v2H14v2h4a2.0027 2.0027 0 002-2V7A2.0023 2.0023 0 0018 5zM10 27H8V23.9541C3.2847 23.5117 2 19.9443 2 18c0-3.0146 2.082-4.5015 3.9189-5.814C7.5723 11.0054 9 9.9854 9 8V5h2V8c0 3.0146-2.082 4.5015-3.9189 5.814C5.4277 14.9946 4 16.0146 4 18c.0054.4033.1914 4 5 4a1 1 0 011 1zM7 0L0 0 0 7 2 7 2 2 7 2 7 0z\"\n })), children);\n});\nvar WatsonHealthMammogram16 = /*#__PURE__*/React.forwardRef(function WatsonHealthMammogram16(_ref67, ref) {\n var children = _ref67.children,\n rest = _objectWithoutProperties(_ref67, _excluded67);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path120 || (_path120 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25 32L32 32 32 25 30 25 30 30 25 30 25 32zM25 27H22V17h3a3.0033 3.0033 0 013 3v4A3.0033 3.0033 0 0125 27zm-1-2h1a1.0006 1.0006 0 001-1V20a1.0006 1.0006 0 00-1-1H24zM20 27H14V23a2.002 2.002 0 012-2h2V19H14V17h4a2.0023 2.0023 0 012 2v2a2.0023 2.0023 0 01-2 2H16v2h4zM25 15H22V5h3a3.0033 3.0033 0 013 3v4A3.0033 3.0033 0 0125 15zm-1-2h1a1.0009 1.0009 0 001-1V8a1.0009 1.0009 0 00-1-1H24zM18 5H14V7h4V9H15v2h3v2H14v2h4a2.0027 2.0027 0 002-2V7A2.0023 2.0023 0 0018 5zM10 27H8V23.9541C3.2847 23.5117 2 19.9443 2 18c0-3.0146 2.082-4.5015 3.9189-5.814C7.5723 11.0054 9 9.9854 9 8V5h2V8c0 3.0146-2.082 4.5015-3.9189 5.814C5.4277 14.9946 4 16.0146 4 18c.0054.4033.1914 4 5 4a1 1 0 011 1zM7 0L0 0 0 7 2 7 2 2 7 2 7 0z\"\n })), children);\n});\nvar MammogramStacked32 = /*#__PURE__*/React.forwardRef(function MammogramStacked32(_ref68, ref) {\n var children = _ref68.children,\n rest = _objectWithoutProperties(_ref68, _excluded68);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['MammogramStacked32']) {\n didWarnAboutDeprecation['MammogramStacked32'] = true;\n console.warn(\"The MammogramStacked32 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path121 || (_path121 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,16H28V4H16V2H28a2.0023,2.0023,0,0,1,2,2Z\"\n })), _path122 || (_path122 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25,23H23V9H9V7H23a2.0023,2.0023,0,0,1,2,2Z\"\n })), _path123 || (_path123 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,30H4a2.0023,2.0023,0,0,1-2-2V14a2.002,2.002,0,0,1,2-2H18a2.0023,2.0023,0,0,1,2,2V28A2.0027,2.0027,0,0,1,18,30ZM4,14V28H18.002L18,14Z\"\n })), _path124 || (_path124 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13,18h1V16H13a5.0083,5.0083,0,0,0-4.8989,4H7v2H8.1011A5.0083,5.0083,0,0,0,13,26h1V24H13a3,3,0,0,1,0-6Z\"\n })), children);\n});\nvar MammogramStacked24 = /*#__PURE__*/React.forwardRef(function MammogramStacked24(_ref69, ref) {\n var children = _ref69.children,\n rest = _objectWithoutProperties(_ref69, _excluded69);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['MammogramStacked24']) {\n didWarnAboutDeprecation['MammogramStacked24'] = true;\n console.warn(\"The MammogramStacked24 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path125 || (_path125 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,16H28V4H16V2H28a2.0023,2.0023,0,0,1,2,2Z\"\n })), _path126 || (_path126 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25,23H23V9H9V7H23a2.0023,2.0023,0,0,1,2,2Z\"\n })), _path127 || (_path127 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,30H4a2.0023,2.0023,0,0,1-2-2V14a2.002,2.002,0,0,1,2-2H18a2.0023,2.0023,0,0,1,2,2V28A2.0027,2.0027,0,0,1,18,30ZM4,14V28H18.002L18,14Z\"\n })), _path128 || (_path128 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13,18h1V16H13a5.0083,5.0083,0,0,0-4.8989,4H7v2H8.1011A5.0083,5.0083,0,0,0,13,26h1V24H13a3,3,0,0,1,0-6Z\"\n })), children);\n});\nvar MammogramStacked20 = /*#__PURE__*/React.forwardRef(function MammogramStacked20(_ref70, ref) {\n var children = _ref70.children,\n rest = _objectWithoutProperties(_ref70, _excluded70);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['MammogramStacked20']) {\n didWarnAboutDeprecation['MammogramStacked20'] = true;\n console.warn(\"The MammogramStacked20 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path129 || (_path129 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,16H28V4H16V2H28a2.0023,2.0023,0,0,1,2,2Z\"\n })), _path130 || (_path130 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25,23H23V9H9V7H23a2.0023,2.0023,0,0,1,2,2Z\"\n })), _path131 || (_path131 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,30H4a2.0023,2.0023,0,0,1-2-2V14a2.002,2.002,0,0,1,2-2H18a2.0023,2.0023,0,0,1,2,2V28A2.0027,2.0027,0,0,1,18,30ZM4,14V28H18.002L18,14Z\"\n })), _path132 || (_path132 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13,18h1V16H13a5.0083,5.0083,0,0,0-4.8989,4H7v2H8.1011A5.0083,5.0083,0,0,0,13,26h1V24H13a3,3,0,0,1,0-6Z\"\n })), children);\n});\nvar MammogramStacked16 = /*#__PURE__*/React.forwardRef(function MammogramStacked16(_ref71, ref) {\n var children = _ref71.children,\n rest = _objectWithoutProperties(_ref71, _excluded71);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['MammogramStacked16']) {\n didWarnAboutDeprecation['MammogramStacked16'] = true;\n console.warn(\"The MammogramStacked16 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path133 || (_path133 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,16H28V4H16V2H28a2.0023,2.0023,0,0,1,2,2Z\"\n })), _path134 || (_path134 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25,23H23V9H9V7H23a2.0023,2.0023,0,0,1,2,2Z\"\n })), _path135 || (_path135 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,30H4a2.0023,2.0023,0,0,1-2-2V14a2.002,2.002,0,0,1,2-2H18a2.0023,2.0023,0,0,1,2,2V28A2.0027,2.0027,0,0,1,18,30ZM4,14V28H18.002L18,14Z\"\n })), _path136 || (_path136 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13,18h1V16H13a5.0083,5.0083,0,0,0-4.8989,4H7v2H8.1011A5.0083,5.0083,0,0,0,13,26h1V24H13a3,3,0,0,1,0-6Z\"\n })), children);\n});\nvar ManageProtection32 = /*#__PURE__*/React.forwardRef(function ManageProtection32(_ref72, ref) {\n var children = _ref72.children,\n rest = _objectWithoutProperties(_ref72, _excluded72);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path137 || (_path137 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30,9.8242,26.7071A10.9815,10.9815,0,0,1,4,17V4A2.0022,2.0022,0,0,1,6,2H26a2.0022,2.0022,0,0,1,2,2V17a10.9815,10.9815,0,0,1-5.8242,9.7069ZM6,4V17a8.9852,8.9852,0,0,0,4.7656,7.9423L16,27.7333l5.2344-2.791A8.9852,8.9852,0,0,0,26,17V4Z\"\n })), _path138 || (_path138 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,25.277V6h8V16.8048a7,7,0,0,1-3.7,6.1731Z\"\n })), children);\n});\nvar ManageProtection24 = /*#__PURE__*/React.forwardRef(function ManageProtection24(_ref73, ref) {\n var children = _ref73.children,\n rest = _objectWithoutProperties(_ref73, _excluded73);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path139 || (_path139 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30,9.8242,26.7071A10.9815,10.9815,0,0,1,4,17V4A2.0022,2.0022,0,0,1,6,2H26a2.0022,2.0022,0,0,1,2,2V17a10.9815,10.9815,0,0,1-5.8242,9.7069ZM6,4V17a8.9852,8.9852,0,0,0,4.7656,7.9423L16,27.7333l5.2344-2.791A8.9852,8.9852,0,0,0,26,17V4Z\"\n })), _path140 || (_path140 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,25.277V6h8V16.8048a7,7,0,0,1-3.7,6.1731Z\"\n })), children);\n});\nvar ManageProtection20 = /*#__PURE__*/React.forwardRef(function ManageProtection20(_ref74, ref) {\n var children = _ref74.children,\n rest = _objectWithoutProperties(_ref74, _excluded74);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path141 || (_path141 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30,9.8242,26.7071A10.9815,10.9815,0,0,1,4,17V4A2.0022,2.0022,0,0,1,6,2H26a2.0022,2.0022,0,0,1,2,2V17a10.9815,10.9815,0,0,1-5.8242,9.7069ZM6,4V17a8.9852,8.9852,0,0,0,4.7656,7.9423L16,27.7333l5.2344-2.791A8.9852,8.9852,0,0,0,26,17V4Z\"\n })), _path142 || (_path142 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,25.277V6h8V16.8048a7,7,0,0,1-3.7,6.1731Z\"\n })), children);\n});\nvar ManageProtection16 = /*#__PURE__*/React.forwardRef(function ManageProtection16(_ref75, ref) {\n var children = _ref75.children,\n rest = _objectWithoutProperties(_ref75, _excluded75);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path143 || (_path143 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30,9.8242,26.7071A10.9815,10.9815,0,0,1,4,17V4A2.0022,2.0022,0,0,1,6,2H26a2.0022,2.0022,0,0,1,2,2V17a10.9815,10.9815,0,0,1-5.8242,9.7069ZM6,4V17a8.9852,8.9852,0,0,0,4.7656,7.9423L16,27.7333l5.2344-2.791A8.9852,8.9852,0,0,0,26,17V4Z\"\n })), _path144 || (_path144 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,25.277V6h8V16.8048a7,7,0,0,1-3.7,6.1731Z\"\n })), children);\n});\nvar ManagedSolutions32 = /*#__PURE__*/React.forwardRef(function ManagedSolutions32(_ref76, ref) {\n var children = _ref76.children,\n rest = _objectWithoutProperties(_ref76, _excluded76);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path145 || (_path145 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 23L25 23 25 18 23 18 23 23 18 23 18 25 23 25 23 30 25 30 25 25 30 25 30 23z\"\n })), _path146 || (_path146 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.1273,11.8394l1.1807.2136a5.7919,5.7919,0,0,1,2.6247,1.1445A5.4219,5.4219,0,0,1,29.9532,18h2.0293a7.5022,7.5022,0,0,0-6.15-7.8848,10.0067,10.0067,0,0,0-7.9387-7.9336,10.0025,10.0025,0,0,0-11.72,7.9336A7.5055,7.5055,0,0,0,.0576,18.4088,7.6841,7.6841,0,0,0,7.7725,25H14V23H7.6978a5.6323,5.6323,0,0,1-5.6024-4.4859,5.5064,5.5064,0,0,1,4.4338-6.4306l1.3488-.2441.2138-1.11a8.2061,8.2061,0,0,1,6.7427-6.6426,7.9714,7.9714,0,0,1,3.0138.13,8.1442,8.1442,0,0,1,6.0526,6.4464Z\"\n })), children);\n});\nvar ManagedSolutions24 = /*#__PURE__*/React.forwardRef(function ManagedSolutions24(_ref77, ref) {\n var children = _ref77.children,\n rest = _objectWithoutProperties(_ref77, _excluded77);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path147 || (_path147 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 23L25 23 25 18 23 18 23 23 18 23 18 25 23 25 23 30 25 30 25 25 30 25 30 23z\"\n })), _path148 || (_path148 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.1273,11.8394l1.1807.2136a5.7919,5.7919,0,0,1,2.6247,1.1445A5.4219,5.4219,0,0,1,29.9532,18h2.0293a7.5022,7.5022,0,0,0-6.15-7.8848,10.0067,10.0067,0,0,0-7.9387-7.9336,10.0025,10.0025,0,0,0-11.72,7.9336A7.5055,7.5055,0,0,0,.0576,18.4088,7.6841,7.6841,0,0,0,7.7725,25H14V23H7.6978a5.6323,5.6323,0,0,1-5.6024-4.4859,5.5064,5.5064,0,0,1,4.4338-6.4306l1.3488-.2441.2138-1.11a8.2061,8.2061,0,0,1,6.7427-6.6426,7.9714,7.9714,0,0,1,3.0138.13,8.1442,8.1442,0,0,1,6.0526,6.4464Z\"\n })), children);\n});\nvar ManagedSolutions20 = /*#__PURE__*/React.forwardRef(function ManagedSolutions20(_ref78, ref) {\n var children = _ref78.children,\n rest = _objectWithoutProperties(_ref78, _excluded78);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path149 || (_path149 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 23L25 23 25 18 23 18 23 23 18 23 18 25 23 25 23 30 25 30 25 25 30 25 30 23z\"\n })), _path150 || (_path150 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.1273,11.8394l1.1807.2136a5.7919,5.7919,0,0,1,2.6247,1.1445A5.4219,5.4219,0,0,1,29.9532,18h2.0293a7.5022,7.5022,0,0,0-6.15-7.8848,10.0067,10.0067,0,0,0-7.9387-7.9336,10.0025,10.0025,0,0,0-11.72,7.9336A7.5055,7.5055,0,0,0,.0576,18.4088,7.6841,7.6841,0,0,0,7.7725,25H14V23H7.6978a5.6323,5.6323,0,0,1-5.6024-4.4859,5.5064,5.5064,0,0,1,4.4338-6.4306l1.3488-.2441.2138-1.11a8.2061,8.2061,0,0,1,6.7427-6.6426,7.9714,7.9714,0,0,1,3.0138.13,8.1442,8.1442,0,0,1,6.0526,6.4464Z\"\n })), children);\n});\nvar ManagedSolutions16 = /*#__PURE__*/React.forwardRef(function ManagedSolutions16(_ref79, ref) {\n var children = _ref79.children,\n rest = _objectWithoutProperties(_ref79, _excluded79);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path151 || (_path151 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 23L25 23 25 18 23 18 23 23 18 23 18 25 23 25 23 30 25 30 25 25 30 25 30 23z\"\n })), _path152 || (_path152 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.1273,11.8394l1.1807.2136a5.7919,5.7919,0,0,1,2.6247,1.1445A5.4219,5.4219,0,0,1,29.9532,18h2.0293a7.5022,7.5022,0,0,0-6.15-7.8848,10.0067,10.0067,0,0,0-7.9387-7.9336,10.0025,10.0025,0,0,0-11.72,7.9336A7.5055,7.5055,0,0,0,.0576,18.4088,7.6841,7.6841,0,0,0,7.7725,25H14V23H7.6978a5.6323,5.6323,0,0,1-5.6024-4.4859,5.5064,5.5064,0,0,1,4.4338-6.4306l1.3488-.2441.2138-1.11a8.2061,8.2061,0,0,1,6.7427-6.6426,7.9714,7.9714,0,0,1,3.0138.13,8.1442,8.1442,0,0,1,6.0526,6.4464Z\"\n })), children);\n});\nvar Map32 = /*#__PURE__*/React.forwardRef(function Map32(_ref80, ref) {\n var children = _ref80.children,\n rest = _objectWithoutProperties(_ref80, _excluded80);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path153 || (_path153 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,24l-6.09-8.6A8.14,8.14,0,0,1,16,2a8.08,8.08,0,0,1,8,8.13,8.2,8.2,0,0,1-1.8,5.13ZM16,4a6.07,6.07,0,0,0-6,6.13,6.19,6.19,0,0,0,1.49,4L16,20.52,20.63,14A6.24,6.24,0,0,0,22,10.13,6.07,6.07,0,0,0,16,4Z\"\n })), _circle || (_circle = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"9\",\n r: \"2\"\n })), _path154 || (_path154 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,12H26v2h2V28H4V14H6V12H4a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V14A2,2,0,0,0,28,12Z\"\n })), children);\n});\nvar Map24 = /*#__PURE__*/React.forwardRef(function Map24(_ref81, ref) {\n var children = _ref81.children,\n rest = _objectWithoutProperties(_ref81, _excluded81);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path155 || (_path155 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,24l-6.09-8.6A8.14,8.14,0,0,1,16,2a8.08,8.08,0,0,1,8,8.13,8.2,8.2,0,0,1-1.8,5.13ZM16,4a6.07,6.07,0,0,0-6,6.13,6.19,6.19,0,0,0,1.49,4L16,20.52,20.63,14A6.24,6.24,0,0,0,22,10.13,6.07,6.07,0,0,0,16,4Z\"\n })), _circle2 || (_circle2 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"9\",\n r: \"2\"\n })), _path156 || (_path156 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,12H26v2h2V28H4V14H6V12H4a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V14A2,2,0,0,0,28,12Z\"\n })), children);\n});\nvar Map20 = /*#__PURE__*/React.forwardRef(function Map20(_ref82, ref) {\n var children = _ref82.children,\n rest = _objectWithoutProperties(_ref82, _excluded82);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path157 || (_path157 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,24l-6.09-8.6A8.14,8.14,0,0,1,16,2a8.08,8.08,0,0,1,8,8.13,8.2,8.2,0,0,1-1.8,5.13ZM16,4a6.07,6.07,0,0,0-6,6.13,6.19,6.19,0,0,0,1.49,4L16,20.52,20.63,14A6.24,6.24,0,0,0,22,10.13,6.07,6.07,0,0,0,16,4Z\"\n })), _circle3 || (_circle3 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"9\",\n r: \"2\"\n })), _path158 || (_path158 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,12H26v2h2V28H4V14H6V12H4a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V14A2,2,0,0,0,28,12Z\"\n })), children);\n});\nvar Map16 = /*#__PURE__*/React.forwardRef(function Map16(_ref83, ref) {\n var children = _ref83.children,\n rest = _objectWithoutProperties(_ref83, _excluded83);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path159 || (_path159 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,24l-6.09-8.6A8.14,8.14,0,0,1,16,2a8.08,8.08,0,0,1,8,8.13,8.2,8.2,0,0,1-1.8,5.13ZM16,4a6.07,6.07,0,0,0-6,6.13,6.19,6.19,0,0,0,1.49,4L16,20.52,20.63,14A6.24,6.24,0,0,0,22,10.13,6.07,6.07,0,0,0,16,4Z\"\n })), _circle4 || (_circle4 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"9\",\n r: \"2\"\n })), _path160 || (_path160 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,12H26v2h2V28H4V14H6V12H4a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V14A2,2,0,0,0,28,12Z\"\n })), children);\n});\nvar MapBoundary32 = /*#__PURE__*/React.forwardRef(function MapBoundary32(_ref84, ref) {\n var children = _ref84.children,\n rest = _objectWithoutProperties(_ref84, _excluded84);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path161 || (_path161 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 10H14V14H12zM18 18H22V20H18zM14 18L14 16 12 16 12 20 16 20 16 18 14 18zM16 4H28V16H16z\"\n })), _path162 || (_path162 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.885 29.997L11.819 26.142 4 27.989 4 4 14 4 14 8 12 8 12 6 6 6 6 25.461 12.181 24.001 18.115 27.773 22.818 26 26 26 26 20 24 20 24 18 28 18 28 28 23.182 28 17.885 29.997z\"\n })), children);\n});\nvar MapBoundary24 = /*#__PURE__*/React.forwardRef(function MapBoundary24(_ref85, ref) {\n var children = _ref85.children,\n rest = _objectWithoutProperties(_ref85, _excluded85);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path163 || (_path163 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 10H14V14H12zM18 18H22V20H18zM14 18L14 16 12 16 12 20 16 20 16 18 14 18zM16 4H28V16H16z\"\n })), _path164 || (_path164 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.885 29.997L11.819 26.142 4 27.989 4 4 14 4 14 8 12 8 12 6 6 6 6 25.461 12.181 24.001 18.115 27.773 22.818 26 26 26 26 20 24 20 24 18 28 18 28 28 23.182 28 17.885 29.997z\"\n })), children);\n});\nvar MapBoundary20 = /*#__PURE__*/React.forwardRef(function MapBoundary20(_ref86, ref) {\n var children = _ref86.children,\n rest = _objectWithoutProperties(_ref86, _excluded86);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path165 || (_path165 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 10H14V14H12zM18 18H22V20H18zM14 18L14 16 12 16 12 20 16 20 16 18 14 18zM16 4H28V16H16z\"\n })), _path166 || (_path166 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.885 29.997L11.819 26.142 4 27.989 4 4 14 4 14 8 12 8 12 6 6 6 6 25.461 12.181 24.001 18.115 27.773 22.818 26 26 26 26 20 24 20 24 18 28 18 28 28 23.182 28 17.885 29.997z\"\n })), children);\n});\nvar MapBoundary16 = /*#__PURE__*/React.forwardRef(function MapBoundary16(_ref87, ref) {\n var children = _ref87.children,\n rest = _objectWithoutProperties(_ref87, _excluded87);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path167 || (_path167 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 10H14V14H12zM18 18H22V20H18zM14 18L14 16 12 16 12 20 16 20 16 18 14 18zM16 4H28V16H16z\"\n })), _path168 || (_path168 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.885 29.997L11.819 26.142 4 27.989 4 4 14 4 14 8 12 8 12 6 6 6 6 25.461 12.181 24.001 18.115 27.773 22.818 26 26 26 26 20 24 20 24 18 28 18 28 28 23.182 28 17.885 29.997z\"\n })), children);\n});\nvar MarineWarning32 = /*#__PURE__*/React.forwardRef(function MarineWarning32(_ref88, ref) {\n var children = _ref88.children,\n rest = _objectWithoutProperties(_ref88, _excluded88);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path169 || (_path169 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,20H7a1,1,0,0,0-.97,1.2422L6.9692,25H9.0308l-.75-3H23.7192l-.75,3h2.0616l.9394-3.7578A1,1,0,0,0,25,20H14V3a1,1,0,0,0-1.7993-.6011L2.2075,15.3906A1,1,0,0,0,3,17h9ZM5.0308,15,12,5.94V15Z\"\n })), _path170 || (_path170 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26.9058,25.751A2.998,2.998,0,0,1,24,28a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,20,25a.9894.9894,0,0,0-.9468.6787A3.44,3.44,0,0,1,16,28a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,12,25a.971.971,0,0,0-.9468.6787A3.44,3.44,0,0,1,8,28a2.998,2.998,0,0,1-2.9058-2.249l-1.9365.498A4.9965,4.9965,0,0,0,8,30a4.9316,4.9316,0,0,0,4-1.9873,5.0192,5.0192,0,0,0,8,0A4.9316,4.9316,0,0,0,24,30a4.9965,4.9965,0,0,0,4.8423-3.751Z\"\n })), _path171 || (_path171 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M23.75,10h-1.5V6h1.5ZM23,11a1,1,0,1,0,1,1A1,1,0,0,0,23,11Z\"\n })), _path172 || (_path172 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.9115,13.9355,23.6284,2.3706a.7181.7181,0,0,0-1.2568,0L16.0885,13.9355A.72.72,0,0,0,16.72,15H29.28A.72.72,0,0,0,29.9115,13.9355ZM22.25,6h1.5v4h-1.5ZM23,13a1,1,0,1,1,1-1A1,1,0,0,1,23,13Z\"\n })), children);\n});\nvar MarineWarning24 = /*#__PURE__*/React.forwardRef(function MarineWarning24(_ref89, ref) {\n var children = _ref89.children,\n rest = _objectWithoutProperties(_ref89, _excluded89);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path173 || (_path173 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,20H7a1,1,0,0,0-.97,1.2422L6.9692,25H9.0308l-.75-3H23.7192l-.75,3h2.0616l.9394-3.7578A1,1,0,0,0,25,20H14V3a1,1,0,0,0-1.7993-.6011L2.2075,15.3906A1,1,0,0,0,3,17h9ZM5.0308,15,12,5.94V15Z\"\n })), _path174 || (_path174 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26.9058,25.751A2.998,2.998,0,0,1,24,28a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,20,25a.9894.9894,0,0,0-.9468.6787A3.44,3.44,0,0,1,16,28a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,12,25a.971.971,0,0,0-.9468.6787A3.44,3.44,0,0,1,8,28a2.998,2.998,0,0,1-2.9058-2.249l-1.9365.498A4.9965,4.9965,0,0,0,8,30a4.9316,4.9316,0,0,0,4-1.9873,5.0192,5.0192,0,0,0,8,0A4.9316,4.9316,0,0,0,24,30a4.9965,4.9965,0,0,0,4.8423-3.751Z\"\n })), _path175 || (_path175 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M23.75,10h-1.5V6h1.5ZM23,11a1,1,0,1,0,1,1A1,1,0,0,0,23,11Z\"\n })), _path176 || (_path176 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.9115,13.9355,23.6284,2.3706a.7181.7181,0,0,0-1.2568,0L16.0885,13.9355A.72.72,0,0,0,16.72,15H29.28A.72.72,0,0,0,29.9115,13.9355ZM22.25,6h1.5v4h-1.5ZM23,13a1,1,0,1,1,1-1A1,1,0,0,1,23,13Z\"\n })), children);\n});\nvar MarineWarning20 = /*#__PURE__*/React.forwardRef(function MarineWarning20(_ref90, ref) {\n var children = _ref90.children,\n rest = _objectWithoutProperties(_ref90, _excluded90);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path177 || (_path177 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,20H7a1,1,0,0,0-.97,1.2422L6.9692,25H9.0308l-.75-3H23.7192l-.75,3h2.0616l.9394-3.7578A1,1,0,0,0,25,20H14V3a1,1,0,0,0-1.7993-.6011L2.2075,15.3906A1,1,0,0,0,3,17h9ZM5.0308,15,12,5.94V15Z\"\n })), _path178 || (_path178 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26.9058,25.751A2.998,2.998,0,0,1,24,28a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,20,25a.9894.9894,0,0,0-.9468.6787A3.44,3.44,0,0,1,16,28a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,12,25a.971.971,0,0,0-.9468.6787A3.44,3.44,0,0,1,8,28a2.998,2.998,0,0,1-2.9058-2.249l-1.9365.498A4.9965,4.9965,0,0,0,8,30a4.9316,4.9316,0,0,0,4-1.9873,5.0192,5.0192,0,0,0,8,0A4.9316,4.9316,0,0,0,24,30a4.9965,4.9965,0,0,0,4.8423-3.751Z\"\n })), _path179 || (_path179 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M23.75,10h-1.5V6h1.5ZM23,11a1,1,0,1,0,1,1A1,1,0,0,0,23,11Z\"\n })), _path180 || (_path180 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.9115,13.9355,23.6284,2.3706a.7181.7181,0,0,0-1.2568,0L16.0885,13.9355A.72.72,0,0,0,16.72,15H29.28A.72.72,0,0,0,29.9115,13.9355ZM22.25,6h1.5v4h-1.5ZM23,13a1,1,0,1,1,1-1A1,1,0,0,1,23,13Z\"\n })), children);\n});\nvar MarineWarning16 = /*#__PURE__*/React.forwardRef(function MarineWarning16(_ref91, ref) {\n var children = _ref91.children,\n rest = _objectWithoutProperties(_ref91, _excluded91);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path181 || (_path181 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,20H7a1,1,0,0,0-.97,1.2422L6.9692,25H9.0308l-.75-3H23.7192l-.75,3h2.0616l.9394-3.7578A1,1,0,0,0,25,20H14V3a1,1,0,0,0-1.7993-.6011L2.2075,15.3906A1,1,0,0,0,3,17h9ZM5.0308,15,12,5.94V15Z\"\n })), _path182 || (_path182 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26.9058,25.751A2.998,2.998,0,0,1,24,28a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,20,25a.9894.9894,0,0,0-.9468.6787A3.44,3.44,0,0,1,16,28a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,12,25a.971.971,0,0,0-.9468.6787A3.44,3.44,0,0,1,8,28a2.998,2.998,0,0,1-2.9058-2.249l-1.9365.498A4.9965,4.9965,0,0,0,8,30a4.9316,4.9316,0,0,0,4-1.9873,5.0192,5.0192,0,0,0,8,0A4.9316,4.9316,0,0,0,24,30a4.9965,4.9965,0,0,0,4.8423-3.751Z\"\n })), _path183 || (_path183 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M23.75,10h-1.5V6h1.5ZM23,11a1,1,0,1,0,1,1A1,1,0,0,0,23,11Z\"\n })), _path184 || (_path184 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.9115,13.9355,23.6284,2.3706a.7181.7181,0,0,0-1.2568,0L16.0885,13.9355A.72.72,0,0,0,16.72,15H29.28A.72.72,0,0,0,29.9115,13.9355ZM22.25,6h1.5v4h-1.5ZM23,13a1,1,0,1,1,1-1A1,1,0,0,1,23,13Z\"\n })), children);\n});\nvar MathCurve32 = /*#__PURE__*/React.forwardRef(function MathCurve32(_ref92, ref) {\n var children = _ref92.children,\n rest = _objectWithoutProperties(_ref92, _excluded92);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path185 || (_path185 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.3555,23.0581C12.77,24.5918,15.6208,26,17.9514,26a3.8729,3.8729,0,0,0,2.856-1.084c2.2859-2.29.14-6.3979-1.938-10.3721L24.67,8.7427c1.07.686,2.1038,1.4253,3.0117,2.124L29,9.3486c-.7783-.6064-1.772-1.3383-2.8721-2.0634L30,3.4131,28.5859,2,24.3794,6.2061c-3.3164-1.91-7.1079-3.2461-9.2288-1.1216-2.0388,2.0425-.5512,5.5317,1.2683,9.082l-6.3071,6.3066c-1.0322-.7133-1.9985-1.4448-2.8-2.101L6,19.8848c.6145.5058,1.5513,1.2451,2.6653,2.0351L4,26.585V2H2V28a2,2,0,0,0,2,2H30V28H5.4133ZM16.5647,6.501c1.1357-1.1377,3.6931-.2862,6.3372,1.1831l-4.9947,4.9941C16.5942,10.0591,15.5562,7.5112,16.5647,6.501Zm.8215,9.5259c1.58,3.0317,3.1822,6.2959,2.0071,7.4726-1.3125,1.3145-4.5227-.0254-7.572-1.9077Z\"\n })), children);\n});\nvar MathCurve24 = /*#__PURE__*/React.forwardRef(function MathCurve24(_ref93, ref) {\n var children = _ref93.children,\n rest = _objectWithoutProperties(_ref93, _excluded93);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path186 || (_path186 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.3555,23.0581C12.77,24.5918,15.6208,26,17.9514,26a3.8729,3.8729,0,0,0,2.856-1.084c2.2859-2.29.14-6.3979-1.938-10.3721L24.67,8.7427c1.07.686,2.1038,1.4253,3.0117,2.124L29,9.3486c-.7783-.6064-1.772-1.3383-2.8721-2.0634L30,3.4131,28.5859,2,24.3794,6.2061c-3.3164-1.91-7.1079-3.2461-9.2288-1.1216-2.0388,2.0425-.5512,5.5317,1.2683,9.082l-6.3071,6.3066c-1.0322-.7133-1.9985-1.4448-2.8-2.101L6,19.8848c.6145.5058,1.5513,1.2451,2.6653,2.0351L4,26.585V2H2V28a2,2,0,0,0,2,2H30V28H5.4133ZM16.5647,6.501c1.1357-1.1377,3.6931-.2862,6.3372,1.1831l-4.9947,4.9941C16.5942,10.0591,15.5562,7.5112,16.5647,6.501Zm.8215,9.5259c1.58,3.0317,3.1822,6.2959,2.0071,7.4726-1.3125,1.3145-4.5227-.0254-7.572-1.9077Z\"\n })), children);\n});\nvar MathCurve20 = /*#__PURE__*/React.forwardRef(function MathCurve20(_ref94, ref) {\n var children = _ref94.children,\n rest = _objectWithoutProperties(_ref94, _excluded94);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path187 || (_path187 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.3555,23.0581C12.77,24.5918,15.6208,26,17.9514,26a3.8729,3.8729,0,0,0,2.856-1.084c2.2859-2.29.14-6.3979-1.938-10.3721L24.67,8.7427c1.07.686,2.1038,1.4253,3.0117,2.124L29,9.3486c-.7783-.6064-1.772-1.3383-2.8721-2.0634L30,3.4131,28.5859,2,24.3794,6.2061c-3.3164-1.91-7.1079-3.2461-9.2288-1.1216-2.0388,2.0425-.5512,5.5317,1.2683,9.082l-6.3071,6.3066c-1.0322-.7133-1.9985-1.4448-2.8-2.101L6,19.8848c.6145.5058,1.5513,1.2451,2.6653,2.0351L4,26.585V2H2V28a2,2,0,0,0,2,2H30V28H5.4133ZM16.5647,6.501c1.1357-1.1377,3.6931-.2862,6.3372,1.1831l-4.9947,4.9941C16.5942,10.0591,15.5562,7.5112,16.5647,6.501Zm.8215,9.5259c1.58,3.0317,3.1822,6.2959,2.0071,7.4726-1.3125,1.3145-4.5227-.0254-7.572-1.9077Z\"\n })), children);\n});\nvar MathCurve16 = /*#__PURE__*/React.forwardRef(function MathCurve16(_ref95, ref) {\n var children = _ref95.children,\n rest = _objectWithoutProperties(_ref95, _excluded95);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path188 || (_path188 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.3555,23.0581C12.77,24.5918,15.6208,26,17.9514,26a3.8729,3.8729,0,0,0,2.856-1.084c2.2859-2.29.14-6.3979-1.938-10.3721L24.67,8.7427c1.07.686,2.1038,1.4253,3.0117,2.124L29,9.3486c-.7783-.6064-1.772-1.3383-2.8721-2.0634L30,3.4131,28.5859,2,24.3794,6.2061c-3.3164-1.91-7.1079-3.2461-9.2288-1.1216-2.0388,2.0425-.5512,5.5317,1.2683,9.082l-6.3071,6.3066c-1.0322-.7133-1.9985-1.4448-2.8-2.101L6,19.8848c.6145.5058,1.5513,1.2451,2.6653,2.0351L4,26.585V2H2V28a2,2,0,0,0,2,2H30V28H5.4133ZM16.5647,6.501c1.1357-1.1377,3.6931-.2862,6.3372,1.1831l-4.9947,4.9941C16.5942,10.0591,15.5562,7.5112,16.5647,6.501Zm.8215,9.5259c1.58,3.0317,3.1822,6.2959,2.0071,7.4726-1.3125,1.3145-4.5227-.0254-7.572-1.9077Z\"\n })), children);\n});\nvar QMatrix32 = /*#__PURE__*/React.forwardRef(function QMatrix32(_ref96, ref) {\n var children = _ref96.children,\n rest = _objectWithoutProperties(_ref96, _excluded96);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path189 || (_path189 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 13L18 4 16 4 16 6 13 6 13 8 16 8 16 13 13 13 13 15 21 15 21 13 18 13zM16.5 20A3.5 3.5 0 1113 23.5 3.5 3.5 0 0116.5 20m0-2A5.5 5.5 0 1022 23.5 5.5 5.5 0 0016.5 18zM8 30L2 30 2 2 8 2 8 4 4 4 4 28 8 28 8 30zM30 30L24 30 24 28 28 28 28 4 24 4 24 2 30 2 30 30z\"\n })), children);\n});\nvar QMatrix24 = /*#__PURE__*/React.forwardRef(function QMatrix24(_ref97, ref) {\n var children = _ref97.children,\n rest = _objectWithoutProperties(_ref97, _excluded97);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path190 || (_path190 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 13L18 4 16 4 16 6 13 6 13 8 16 8 16 13 13 13 13 15 21 15 21 13 18 13zM16.5 20A3.5 3.5 0 1113 23.5 3.5 3.5 0 0116.5 20m0-2A5.5 5.5 0 1022 23.5 5.5 5.5 0 0016.5 18zM8 30L2 30 2 2 8 2 8 4 4 4 4 28 8 28 8 30zM30 30L24 30 24 28 28 28 28 4 24 4 24 2 30 2 30 30z\"\n })), children);\n});\nvar QMatrix20 = /*#__PURE__*/React.forwardRef(function QMatrix20(_ref98, ref) {\n var children = _ref98.children,\n rest = _objectWithoutProperties(_ref98, _excluded98);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path191 || (_path191 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 13L18 4 16 4 16 6 13 6 13 8 16 8 16 13 13 13 13 15 21 15 21 13 18 13zM16.5 20A3.5 3.5 0 1113 23.5 3.5 3.5 0 0116.5 20m0-2A5.5 5.5 0 1022 23.5 5.5 5.5 0 0016.5 18zM8 30L2 30 2 2 8 2 8 4 4 4 4 28 8 28 8 30zM30 30L24 30 24 28 28 28 28 4 24 4 24 2 30 2 30 30z\"\n })), children);\n});\nvar QMatrix16 = /*#__PURE__*/React.forwardRef(function QMatrix16(_ref99, ref) {\n var children = _ref99.children,\n rest = _objectWithoutProperties(_ref99, _excluded99);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path192 || (_path192 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 13L18 4 16 4 16 6 13 6 13 8 16 8 16 13 13 13 13 15 21 15 21 13 18 13zM16.5 20A3.5 3.5 0 1113 23.5 3.5 3.5 0 0116.5 20m0-2A5.5 5.5 0 1022 23.5 5.5 5.5 0 0016.5 18zM8 30L2 30 2 2 8 2 8 4 4 4 4 28 8 28 8 30zM30 30L24 30 24 28 28 28 28 4 24 4 24 2 30 2 30 30z\"\n })), children);\n});\nvar Maximize32 = /*#__PURE__*/React.forwardRef(function Maximize32(_ref100, ref) {\n var children = _ref100.children,\n rest = _objectWithoutProperties(_ref100, _excluded100);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path193 || (_path193 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 2L20 4 26.586 4 18 12.582 19.414 14 28 5.414 28 12 30 12 30 2 20 2zM14 19.416L12.592 18 4 26.586 4 20 2 20 2 30 12 30 12 28 5.414 28 14 19.416z\"\n })), children);\n});\nvar Maximize24 = /*#__PURE__*/React.forwardRef(function Maximize24(_ref101, ref) {\n var children = _ref101.children,\n rest = _objectWithoutProperties(_ref101, _excluded101);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path194 || (_path194 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 2L20 4 26.586 4 18 12.582 19.414 14 28 5.414 28 12 30 12 30 2 20 2zM14 19.416L12.592 18 4 26.586 4 20 2 20 2 30 12 30 12 28 5.414 28 14 19.416z\"\n })), children);\n});\nvar Maximize20 = /*#__PURE__*/React.forwardRef(function Maximize20(_ref102, ref) {\n var children = _ref102.children,\n rest = _objectWithoutProperties(_ref102, _excluded102);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path195 || (_path195 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 2L20 4 26.586 4 18 12.582 19.414 14 28 5.414 28 12 30 12 30 2 20 2zM14 19.416L12.592 18 4 26.586 4 20 2 20 2 30 12 30 12 28 5.414 28 14 19.416z\"\n })), children);\n});\nvar Maximize16 = /*#__PURE__*/React.forwardRef(function Maximize16(_ref103, ref) {\n var children = _ref103.children,\n rest = _objectWithoutProperties(_ref103, _excluded103);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path196 || (_path196 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6 15L6 14 2.7 14 7 9.7 6.3 9 2 13.3 2 10 1 10 1 15zM10 1L10 2 13.3 2 9 6.3 9.7 7 14 2.7 14 6 15 6 15 1z\"\n })), children);\n});\nvar MediaLibrary32 = /*#__PURE__*/React.forwardRef(function MediaLibrary32(_ref104, ref) {\n var children = _ref104.children,\n rest = _objectWithoutProperties(_ref104, _excluded104);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path197 || (_path197 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 15L13 23 13 23 20 19 13 15z\"\n })), _path198 || (_path198 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 28H6a2.0021 2.0021 0 01-2-2V12a2.0021 2.0021 0 012-2H26a2.0021 2.0021 0 012 2V26A2.0021 2.0021 0 0126 28zM6 12V26H26V12zM6 6H26V8H6zM8 2H24V4H8z\"\n })), children);\n});\nvar MediaLibrary24 = /*#__PURE__*/React.forwardRef(function MediaLibrary24(_ref105, ref) {\n var children = _ref105.children,\n rest = _objectWithoutProperties(_ref105, _excluded105);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path199 || (_path199 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 15L13 23 13 23 20 19 13 15z\"\n })), _path200 || (_path200 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 28H6a2.0021 2.0021 0 01-2-2V12a2.0021 2.0021 0 012-2H26a2.0021 2.0021 0 012 2V26A2.0021 2.0021 0 0126 28zM6 12V26H26V12zM6 6H26V8H6zM8 2H24V4H8z\"\n })), children);\n});\nvar MediaLibrary20 = /*#__PURE__*/React.forwardRef(function MediaLibrary20(_ref106, ref) {\n var children = _ref106.children,\n rest = _objectWithoutProperties(_ref106, _excluded106);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path201 || (_path201 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 15L13 23 13 23 20 19 13 15z\"\n })), _path202 || (_path202 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 28H6a2.0021 2.0021 0 01-2-2V12a2.0021 2.0021 0 012-2H26a2.0021 2.0021 0 012 2V26A2.0021 2.0021 0 0126 28zM6 12V26H26V12zM6 6H26V8H6zM8 2H24V4H8z\"\n })), children);\n});\nvar MediaLibrary16 = /*#__PURE__*/React.forwardRef(function MediaLibrary16(_ref107, ref) {\n var children = _ref107.children,\n rest = _objectWithoutProperties(_ref107, _excluded107);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path203 || (_path203 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 15L13 23 13 23 20 19 13 15z\"\n })), _path204 || (_path204 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 28H6a2.0021 2.0021 0 01-2-2V12a2.0021 2.0021 0 012-2H26a2.0021 2.0021 0 012 2V26A2.0021 2.0021 0 0126 28zM6 12V26H26V12zM6 6H26V8H6zM8 2H24V4H8z\"\n })), children);\n});\nvar Medication32 = /*#__PURE__*/React.forwardRef(function Medication32(_ref108, ref) {\n var children = _ref108.children,\n rest = _objectWithoutProperties(_ref108, _excluded108);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path205 || (_path205 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,2H8A2,2,0,0,0,6,4V8a2,2,0,0,0,2,2V28a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V10a2,2,0,0,0,2-2V4A2,2,0,0,0,24,2ZM10,14h3V24H10ZM22,28H10V26h5V12H10V10H22ZM8,8V4H24V8Z\"\n })), children);\n});\nvar Medication24 = /*#__PURE__*/React.forwardRef(function Medication24(_ref109, ref) {\n var children = _ref109.children,\n rest = _objectWithoutProperties(_ref109, _excluded109);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path206 || (_path206 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,2H8A2,2,0,0,0,6,4V8a2,2,0,0,0,2,2V28a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V10a2,2,0,0,0,2-2V4A2,2,0,0,0,24,2ZM10,14h3V24H10ZM22,28H10V26h5V12H10V10H22ZM8,8V4H24V8Z\"\n })), children);\n});\nvar Medication20 = /*#__PURE__*/React.forwardRef(function Medication20(_ref110, ref) {\n var children = _ref110.children,\n rest = _objectWithoutProperties(_ref110, _excluded110);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path207 || (_path207 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,2H8A2,2,0,0,0,6,4V8a2,2,0,0,0,2,2V28a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V10a2,2,0,0,0,2-2V4A2,2,0,0,0,24,2ZM10,14h3V24H10ZM22,28H10V26h5V12H10V10H22ZM8,8V4H24V8Z\"\n })), children);\n});\nvar Medication16 = /*#__PURE__*/React.forwardRef(function Medication16(_ref111, ref) {\n var children = _ref111.children,\n rest = _objectWithoutProperties(_ref111, _excluded111);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path208 || (_path208 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,2H8A2,2,0,0,0,6,4V8a2,2,0,0,0,2,2V28a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V10a2,2,0,0,0,2-2V4A2,2,0,0,0,24,2ZM10,14h3V24H10ZM22,28H10V26h5V12H10V10H22ZM8,8V4H24V8Z\"\n })), children);\n});\nvar MedicationAlert32 = /*#__PURE__*/React.forwardRef(function MedicationAlert32(_ref112, ref) {\n var children = _ref112.children,\n rest = _objectWithoutProperties(_ref112, _excluded112);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path209 || (_path209 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 19H24V24H22z\"\n })), _path210 || (_path210 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,31a8,8,0,1,1,8-8A8,8,0,0,1,23,31Zm0-14a6,6,0,1,0,6,6A6,6,0,0,0,23,17Z\"\n })), _circle5 || (_circle5 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"23\",\n cy: \"26\",\n r: \"1\"\n })), _path211 || (_path211 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,2H4A2,2,0,0,0,2,4V8a2,2,0,0,0,2,2V28a2,2,0,0,0,2,2h8V28H6V26h5V12H6V10H18v3h2V10a2,2,0,0,0,2-2V4A2,2,0,0,0,20,2ZM9,14V24H6V14ZM4,8V4H20V8Z\"\n })), children);\n});\nvar MedicationAlert24 = /*#__PURE__*/React.forwardRef(function MedicationAlert24(_ref113, ref) {\n var children = _ref113.children,\n rest = _objectWithoutProperties(_ref113, _excluded113);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path212 || (_path212 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 19H24V24H22z\"\n })), _path213 || (_path213 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,31a8,8,0,1,1,8-8A8,8,0,0,1,23,31Zm0-14a6,6,0,1,0,6,6A6,6,0,0,0,23,17Z\"\n })), _circle6 || (_circle6 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"23\",\n cy: \"26\",\n r: \"1\"\n })), _path214 || (_path214 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,2H4A2,2,0,0,0,2,4V8a2,2,0,0,0,2,2V28a2,2,0,0,0,2,2h8V28H6V26h5V12H6V10H18v3h2V10a2,2,0,0,0,2-2V4A2,2,0,0,0,20,2ZM9,14V24H6V14ZM4,8V4H20V8Z\"\n })), children);\n});\nvar MedicationAlert20 = /*#__PURE__*/React.forwardRef(function MedicationAlert20(_ref114, ref) {\n var children = _ref114.children,\n rest = _objectWithoutProperties(_ref114, _excluded114);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path215 || (_path215 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 19H24V24H22z\"\n })), _path216 || (_path216 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,31a8,8,0,1,1,8-8A8,8,0,0,1,23,31Zm0-14a6,6,0,1,0,6,6A6,6,0,0,0,23,17Z\"\n })), _circle7 || (_circle7 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"23\",\n cy: \"26\",\n r: \"1\"\n })), _path217 || (_path217 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,2H4A2,2,0,0,0,2,4V8a2,2,0,0,0,2,2V28a2,2,0,0,0,2,2h8V28H6V26h5V12H6V10H18v3h2V10a2,2,0,0,0,2-2V4A2,2,0,0,0,20,2ZM9,14V24H6V14ZM4,8V4H20V8Z\"\n })), children);\n});\nvar MedicationAlert16 = /*#__PURE__*/React.forwardRef(function MedicationAlert16(_ref115, ref) {\n var children = _ref115.children,\n rest = _objectWithoutProperties(_ref115, _excluded115);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path218 || (_path218 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 19H24V24H22z\"\n })), _path219 || (_path219 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,31a8,8,0,1,1,8-8A8,8,0,0,1,23,31Zm0-14a6,6,0,1,0,6,6A6,6,0,0,0,23,17Z\"\n })), _circle8 || (_circle8 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"23\",\n cy: \"26\",\n r: \"1\"\n })), _path220 || (_path220 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,2H4A2,2,0,0,0,2,4V8a2,2,0,0,0,2,2V28a2,2,0,0,0,2,2h8V28H6V26h5V12H6V10H18v3h2V10a2,2,0,0,0,2-2V4A2,2,0,0,0,20,2ZM9,14V24H6V14ZM4,8V4H20V8Z\"\n })), children);\n});\nvar MedicationReminder32 = /*#__PURE__*/React.forwardRef(function MedicationReminder32(_ref116, ref) {\n var children = _ref116.children,\n rest = _objectWithoutProperties(_ref116, _excluded116);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path221 || (_path221 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,2H4A2,2,0,0,0,2,4V8a2,2,0,0,0,2,2V28a2,2,0,0,0,2,2H18a2,2,0,0,0,2-2V10a2,2,0,0,0,2-2V4A2,2,0,0,0,20,2ZM6,14H9V24H6ZM18,28H6V26h5V12H6V10H18ZM4,8V4H20V8Z\"\n })), _circle9 || (_circle9 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"26\",\n cy: \"16\",\n r: \"4\"\n })), children);\n});\nvar MedicationReminder24 = /*#__PURE__*/React.forwardRef(function MedicationReminder24(_ref117, ref) {\n var children = _ref117.children,\n rest = _objectWithoutProperties(_ref117, _excluded117);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path222 || (_path222 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,2H4A2,2,0,0,0,2,4V8a2,2,0,0,0,2,2V28a2,2,0,0,0,2,2H18a2,2,0,0,0,2-2V10a2,2,0,0,0,2-2V4A2,2,0,0,0,20,2ZM6,14H9V24H6ZM18,28H6V26h5V12H6V10H18ZM4,8V4H20V8Z\"\n })), _circle10 || (_circle10 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"26\",\n cy: \"16\",\n r: \"4\"\n })), children);\n});\nvar MedicationReminder20 = /*#__PURE__*/React.forwardRef(function MedicationReminder20(_ref118, ref) {\n var children = _ref118.children,\n rest = _objectWithoutProperties(_ref118, _excluded118);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path223 || (_path223 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,2H4A2,2,0,0,0,2,4V8a2,2,0,0,0,2,2V28a2,2,0,0,0,2,2H18a2,2,0,0,0,2-2V10a2,2,0,0,0,2-2V4A2,2,0,0,0,20,2ZM6,14H9V24H6ZM18,28H6V26h5V12H6V10H18ZM4,8V4H20V8Z\"\n })), _circle11 || (_circle11 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"26\",\n cy: \"16\",\n r: \"4\"\n })), children);\n});\nvar MedicationReminder16 = /*#__PURE__*/React.forwardRef(function MedicationReminder16(_ref119, ref) {\n var children = _ref119.children,\n rest = _objectWithoutProperties(_ref119, _excluded119);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path224 || (_path224 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,2H4A2,2,0,0,0,2,4V8a2,2,0,0,0,2,2V28a2,2,0,0,0,2,2H18a2,2,0,0,0,2-2V10a2,2,0,0,0,2-2V4A2,2,0,0,0,20,2ZM6,14H9V24H6ZM18,28H6V26h5V12H6V10H18ZM4,8V4H20V8Z\"\n })), _circle12 || (_circle12 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"26\",\n cy: \"16\",\n r: \"4\"\n })), children);\n});\nvar Menu32 = /*#__PURE__*/React.forwardRef(function Menu32(_ref120, ref) {\n var children = _ref120.children,\n rest = _objectWithoutProperties(_ref120, _excluded120);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path225 || (_path225 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 6H28V8H4zM4 24H28V26H4zM4 12H28V14H4zM4 18H28V20H4z\"\n })), children);\n});\nvar Menu24 = /*#__PURE__*/React.forwardRef(function Menu24(_ref121, ref) {\n var children = _ref121.children,\n rest = _objectWithoutProperties(_ref121, _excluded121);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path226 || (_path226 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 18H21V19.5H3zM3 13.5H21V15H3zM3 9H21V10.5H3zM3 4.5H21V6H3z\"\n })), children);\n});\nvar Menu20 = /*#__PURE__*/React.forwardRef(function Menu20(_ref122, ref) {\n var children = _ref122.children,\n rest = _objectWithoutProperties(_ref122, _excluded122);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 20 20\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path227 || (_path227 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 14.8H18V16H2zM2 11.2H18V12.399999999999999H2zM2 7.6H18V8.799999999999999H2zM2 4H18V5.2H2z\"\n })), children);\n});\nvar Menu16 = /*#__PURE__*/React.forwardRef(function Menu16(_ref123, ref) {\n var children = _ref123.children,\n rest = _objectWithoutProperties(_ref123, _excluded123);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path228 || (_path228 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 12H14V13H2zM2 9H14V10H2zM2 6H14V7H2zM2 3H14V4H2z\"\n })), children);\n});\nvar MessageQueue32 = /*#__PURE__*/React.forwardRef(function MessageQueue32(_ref124, ref) {\n var children = _ref124.children,\n rest = _objectWithoutProperties(_ref124, _excluded124);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path229 || (_path229 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,28H4a2.0021,2.0021,0,0,1-2-2V21H4v5H28V21h2v5A2.0021,2.0021,0,0,1,28,28Z\"\n })), _path230 || (_path230 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 21H25V23H7zM7 16H25V18H7zM7 11H25V13H7zM7 6H25V8H7z\"\n })), children);\n});\nvar MessageQueue24 = /*#__PURE__*/React.forwardRef(function MessageQueue24(_ref125, ref) {\n var children = _ref125.children,\n rest = _objectWithoutProperties(_ref125, _excluded125);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path231 || (_path231 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,28H4a2.0021,2.0021,0,0,1-2-2V21H4v5H28V21h2v5A2.0021,2.0021,0,0,1,28,28Z\"\n })), _path232 || (_path232 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 21H25V23H7zM7 16H25V18H7zM7 11H25V13H7zM7 6H25V8H7z\"\n })), children);\n});\nvar MessageQueue20 = /*#__PURE__*/React.forwardRef(function MessageQueue20(_ref126, ref) {\n var children = _ref126.children,\n rest = _objectWithoutProperties(_ref126, _excluded126);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path233 || (_path233 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,28H4a2.0021,2.0021,0,0,1-2-2V21H4v5H28V21h2v5A2.0021,2.0021,0,0,1,28,28Z\"\n })), _path234 || (_path234 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 21H25V23H7zM7 16H25V18H7zM7 11H25V13H7zM7 6H25V8H7z\"\n })), children);\n});\nvar MessageQueue16 = /*#__PURE__*/React.forwardRef(function MessageQueue16(_ref127, ref) {\n var children = _ref127.children,\n rest = _objectWithoutProperties(_ref127, _excluded127);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path235 || (_path235 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,28H4a2.0021,2.0021,0,0,1-2-2V21H4v5H28V21h2v5A2.0021,2.0021,0,0,1,28,28Z\"\n })), _path236 || (_path236 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 21H25V23H7zM7 16H25V18H7zM7 11H25V13H7zM7 6H25V8H7z\"\n })), children);\n});\nvar Meter32 = /*#__PURE__*/React.forwardRef(function Meter32(_ref128, ref) {\n var children = _ref128.children,\n rest = _objectWithoutProperties(_ref128, _excluded128);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path237 || (_path237 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 16a9.9283 9.9283 0 00-1.1392-4.6182l-1.4961 1.4961A7.9483 7.9483 0 0124 16zM23.4141 10L22 8.5859l-4.7147 4.7147A2.9659 2.9659 0 0016 13a3 3 0 103 3 2.9659 2.9659 0 00-.3006-1.2853zM16 17a1 1 0 111-1A1.0013 1.0013 0 0116 17zM16 8a7.9515 7.9515 0 013.1223.6353l1.4961-1.4961A9.9864 9.9864 0 006 16H8A8.0092 8.0092 0 0116 8z\"\n })), _path238 || (_path238 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar Meter24 = /*#__PURE__*/React.forwardRef(function Meter24(_ref129, ref) {\n var children = _ref129.children,\n rest = _objectWithoutProperties(_ref129, _excluded129);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path239 || (_path239 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 16a9.9283 9.9283 0 00-1.1392-4.6182l-1.4961 1.4961A7.9483 7.9483 0 0124 16zM23.4141 10L22 8.5859l-4.7147 4.7147A2.9659 2.9659 0 0016 13a3 3 0 103 3 2.9659 2.9659 0 00-.3006-1.2853zM16 17a1 1 0 111-1A1.0013 1.0013 0 0116 17zM16 8a7.9515 7.9515 0 013.1223.6353l1.4961-1.4961A9.9864 9.9864 0 006 16H8A8.0092 8.0092 0 0116 8z\"\n })), _path240 || (_path240 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar Meter20 = /*#__PURE__*/React.forwardRef(function Meter20(_ref130, ref) {\n var children = _ref130.children,\n rest = _objectWithoutProperties(_ref130, _excluded130);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path241 || (_path241 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 16a9.9283 9.9283 0 00-1.1392-4.6182l-1.4961 1.4961A7.9483 7.9483 0 0124 16zM23.4141 10L22 8.5859l-4.7147 4.7147A2.9659 2.9659 0 0016 13a3 3 0 103 3 2.9659 2.9659 0 00-.3006-1.2853zM16 17a1 1 0 111-1A1.0013 1.0013 0 0116 17zM16 8a7.9515 7.9515 0 013.1223.6353l1.4961-1.4961A9.9864 9.9864 0 006 16H8A8.0092 8.0092 0 0116 8z\"\n })), _path242 || (_path242 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar Meter16 = /*#__PURE__*/React.forwardRef(function Meter16(_ref131, ref) {\n var children = _ref131.children,\n rest = _objectWithoutProperties(_ref131, _excluded131);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path243 || (_path243 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 16a9.9283 9.9283 0 00-1.1392-4.6182l-1.4961 1.4961A7.9483 7.9483 0 0124 16zM23.4141 10L22 8.5859l-4.7147 4.7147A2.9659 2.9659 0 0016 13a3 3 0 103 3 2.9659 2.9659 0 00-.3006-1.2853zM16 17a1 1 0 111-1A1.0013 1.0013 0 0116 17zM16 8a7.9515 7.9515 0 013.1223.6353l1.4961-1.4961A9.9864 9.9864 0 006 16H8A8.0092 8.0092 0 0116 8z\"\n })), _path244 || (_path244 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar MeterAlt32 = /*#__PURE__*/React.forwardRef(function MeterAlt32(_ref132, ref) {\n var children = _ref132.children,\n rest = _objectWithoutProperties(_ref132, _excluded132);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path245 || (_path245 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 20a13.8535 13.8535 0 00-2.2291-7.5288l-1.4452 1.4453A11.8917 11.8917 0 0128 20zM28 9.414L26.5859 8 18.019 16.5669A3.9521 3.9521 0 0016 16a4 4 0 104 4 3.9533 3.9533 0 00-.5669-2.0191zM16 22a2 2 0 112-2A2.0023 2.0023 0 0116 22zM16 8a11.9086 11.9086 0 016.0833 1.6743l1.4536-1.4536A13.9773 13.9773 0 002 20H4A12.0137 12.0137 0 0116 8z\"\n })), children);\n});\nvar MeterAlt24 = /*#__PURE__*/React.forwardRef(function MeterAlt24(_ref133, ref) {\n var children = _ref133.children,\n rest = _objectWithoutProperties(_ref133, _excluded133);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path246 || (_path246 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 20a13.8535 13.8535 0 00-2.2291-7.5288l-1.4452 1.4453A11.8917 11.8917 0 0128 20zM28 9.414L26.5859 8 18.019 16.5669A3.9521 3.9521 0 0016 16a4 4 0 104 4 3.9533 3.9533 0 00-.5669-2.0191zM16 22a2 2 0 112-2A2.0023 2.0023 0 0116 22zM16 8a11.9086 11.9086 0 016.0833 1.6743l1.4536-1.4536A13.9773 13.9773 0 002 20H4A12.0137 12.0137 0 0116 8z\"\n })), children);\n});\nvar MeterAlt20 = /*#__PURE__*/React.forwardRef(function MeterAlt20(_ref134, ref) {\n var children = _ref134.children,\n rest = _objectWithoutProperties(_ref134, _excluded134);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path247 || (_path247 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 20a13.8535 13.8535 0 00-2.2291-7.5288l-1.4452 1.4453A11.8917 11.8917 0 0128 20zM28 9.414L26.5859 8 18.019 16.5669A3.9521 3.9521 0 0016 16a4 4 0 104 4 3.9533 3.9533 0 00-.5669-2.0191zM16 22a2 2 0 112-2A2.0023 2.0023 0 0116 22zM16 8a11.9086 11.9086 0 016.0833 1.6743l1.4536-1.4536A13.9773 13.9773 0 002 20H4A12.0137 12.0137 0 0116 8z\"\n })), children);\n});\nvar MeterAlt16 = /*#__PURE__*/React.forwardRef(function MeterAlt16(_ref135, ref) {\n var children = _ref135.children,\n rest = _objectWithoutProperties(_ref135, _excluded135);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path248 || (_path248 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 20a13.8535 13.8535 0 00-2.2291-7.5288l-1.4452 1.4453A11.8917 11.8917 0 0128 20zM28 9.414L26.5859 8 18.019 16.5669A3.9521 3.9521 0 0016 16a4 4 0 104 4 3.9533 3.9533 0 00-.5669-2.0191zM16 22a2 2 0 112-2A2.0023 2.0023 0 0116 22zM16 8a11.9086 11.9086 0 016.0833 1.6743l1.4536-1.4536A13.9773 13.9773 0 002 20H4A12.0137 12.0137 0 0116 8z\"\n })), children);\n});\nvar Microphone32 = /*#__PURE__*/React.forwardRef(function Microphone32(_ref136, ref) {\n var children = _ref136.children,\n rest = _objectWithoutProperties(_ref136, _excluded136);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path249 || (_path249 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,14v3A7,7,0,0,1,9,17V14H7v3a9,9,0,0,0,8,8.94V28H11v2H21V28H17V25.94A9,9,0,0,0,25,17V14Z\"\n })), _path250 || (_path250 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,22a5,5,0,0,0,5-5V7A5,5,0,0,0,11,7V17A5,5,0,0,0,16,22ZM13,7a3,3,0,0,1,6,0V17a3,3,0,0,1-6,0Z\"\n })), children);\n});\nvar Microphone24 = /*#__PURE__*/React.forwardRef(function Microphone24(_ref137, ref) {\n var children = _ref137.children,\n rest = _objectWithoutProperties(_ref137, _excluded137);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path251 || (_path251 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,14v3A7,7,0,0,1,9,17V14H7v3a9,9,0,0,0,8,8.94V28H11v2H21V28H17V25.94A9,9,0,0,0,25,17V14Z\"\n })), _path252 || (_path252 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,22a5,5,0,0,0,5-5V7A5,5,0,0,0,11,7V17A5,5,0,0,0,16,22ZM13,7a3,3,0,0,1,6,0V17a3,3,0,0,1-6,0Z\"\n })), children);\n});\nvar Microphone20 = /*#__PURE__*/React.forwardRef(function Microphone20(_ref138, ref) {\n var children = _ref138.children,\n rest = _objectWithoutProperties(_ref138, _excluded138);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path253 || (_path253 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,14v3A7,7,0,0,1,9,17V14H7v3a9,9,0,0,0,8,8.94V28H11v2H21V28H17V25.94A9,9,0,0,0,25,17V14Z\"\n })), _path254 || (_path254 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,22a5,5,0,0,0,5-5V7A5,5,0,0,0,11,7V17A5,5,0,0,0,16,22ZM13,7a3,3,0,0,1,6,0V17a3,3,0,0,1-6,0Z\"\n })), children);\n});\nvar Microphone16 = /*#__PURE__*/React.forwardRef(function Microphone16(_ref139, ref) {\n var children = _ref139.children,\n rest = _objectWithoutProperties(_ref139, _excluded139);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path255 || (_path255 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,14v3A7,7,0,0,1,9,17V14H7v3a9,9,0,0,0,8,8.94V28H11v2H21V28H17V25.94A9,9,0,0,0,25,17V14Z\"\n })), _path256 || (_path256 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,22a5,5,0,0,0,5-5V7A5,5,0,0,0,11,7V17A5,5,0,0,0,16,22ZM13,7a3,3,0,0,1,6,0V17a3,3,0,0,1-6,0Z\"\n })), children);\n});\nvar MicrophoneFilled32 = /*#__PURE__*/React.forwardRef(function MicrophoneFilled32(_ref140, ref) {\n var children = _ref140.children,\n rest = _objectWithoutProperties(_ref140, _excluded140);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path257 || (_path257 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,14v3A7,7,0,0,1,9,17V14H7v3a9,9,0,0,0,8,8.94V28H11v2H21V28H17V25.94A9,9,0,0,0,25,17V14Z\"\n })), _path258 || (_path258 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,22a5,5,0,0,0,5-5V7A5,5,0,0,0,11,7V17A5,5,0,0,0,16,22Z\"\n })), children);\n});\nvar MicrophoneFilled24 = /*#__PURE__*/React.forwardRef(function MicrophoneFilled24(_ref141, ref) {\n var children = _ref141.children,\n rest = _objectWithoutProperties(_ref141, _excluded141);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path259 || (_path259 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,14v3A7,7,0,0,1,9,17V14H7v3a9,9,0,0,0,8,8.94V28H11v2H21V28H17V25.94A9,9,0,0,0,25,17V14Z\"\n })), _path260 || (_path260 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,22a5,5,0,0,0,5-5V7A5,5,0,0,0,11,7V17A5,5,0,0,0,16,22Z\"\n })), children);\n});\nvar MicrophoneFilled20 = /*#__PURE__*/React.forwardRef(function MicrophoneFilled20(_ref142, ref) {\n var children = _ref142.children,\n rest = _objectWithoutProperties(_ref142, _excluded142);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path261 || (_path261 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,14v3A7,7,0,0,1,9,17V14H7v3a9,9,0,0,0,8,8.94V28H11v2H21V28H17V25.94A9,9,0,0,0,25,17V14Z\"\n })), _path262 || (_path262 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,22a5,5,0,0,0,5-5V7A5,5,0,0,0,11,7V17A5,5,0,0,0,16,22Z\"\n })), children);\n});\nvar MicrophoneFilled16 = /*#__PURE__*/React.forwardRef(function MicrophoneFilled16(_ref143, ref) {\n var children = _ref143.children,\n rest = _objectWithoutProperties(_ref143, _excluded143);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path263 || (_path263 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,14v3A7,7,0,0,1,9,17V14H7v3a9,9,0,0,0,8,8.94V28H11v2H21V28H17V25.94A9,9,0,0,0,25,17V14Z\"\n })), _path264 || (_path264 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,22a5,5,0,0,0,5-5V7A5,5,0,0,0,11,7V17A5,5,0,0,0,16,22Z\"\n })), children);\n});\nvar MicrophoneOff32 = /*#__PURE__*/React.forwardRef(function MicrophoneOff32(_ref144, ref) {\n var children = _ref144.children,\n rest = _objectWithoutProperties(_ref144, _excluded144);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path265 || (_path265 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.18 18.57A7.41 7.41 0 019 17V14H7v3a8.84 8.84 0 00.58 3.18zM13 15V7a3 3 0 016 0V8.75l2-2A5 5 0 0011 7v8zM23 17a7 7 0 01-11.73 5.14l1.42-1.41A5 5 0 0021 17V12.42l9-9L28.59 2 2 28.59 3.41 30l6.44-6.44A8.91 8.91 0 0015 25.94V28H11v2H21V28H17V25.94A9 9 0 0025 17V14H23zm-4 0a3 3 0 01-4.9 2.31L19 14.42z\"\n })), children);\n});\nvar MicrophoneOff24 = /*#__PURE__*/React.forwardRef(function MicrophoneOff24(_ref145, ref) {\n var children = _ref145.children,\n rest = _objectWithoutProperties(_ref145, _excluded145);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path266 || (_path266 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.18 18.57A7.41 7.41 0 019 17V14H7v3a8.84 8.84 0 00.58 3.18zM13 15V7a3 3 0 016 0V8.75l2-2A5 5 0 0011 7v8zM23 17a7 7 0 01-11.73 5.14l1.42-1.41A5 5 0 0021 17V12.42l9-9L28.59 2 2 28.59 3.41 30l6.44-6.44A8.91 8.91 0 0015 25.94V28H11v2H21V28H17V25.94A9 9 0 0025 17V14H23zm-4 0a3 3 0 01-4.9 2.31L19 14.42z\"\n })), children);\n});\nvar MicrophoneOff20 = /*#__PURE__*/React.forwardRef(function MicrophoneOff20(_ref146, ref) {\n var children = _ref146.children,\n rest = _objectWithoutProperties(_ref146, _excluded146);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path267 || (_path267 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.18 18.57A7.41 7.41 0 019 17V14H7v3a8.84 8.84 0 00.58 3.18zM13 15V7a3 3 0 016 0V8.75l2-2A5 5 0 0011 7v8zM23 17a7 7 0 01-11.73 5.14l1.42-1.41A5 5 0 0021 17V12.42l9-9L28.59 2 2 28.59 3.41 30l6.44-6.44A8.91 8.91 0 0015 25.94V28H11v2H21V28H17V25.94A9 9 0 0025 17V14H23zm-4 0a3 3 0 01-4.9 2.31L19 14.42z\"\n })), children);\n});\nvar MicrophoneOff16 = /*#__PURE__*/React.forwardRef(function MicrophoneOff16(_ref147, ref) {\n var children = _ref147.children,\n rest = _objectWithoutProperties(_ref147, _excluded147);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path268 || (_path268 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.18 18.57A7.41 7.41 0 019 17V14H7v3a8.84 8.84 0 00.58 3.18zM13 15V7a3 3 0 016 0V8.75l2-2A5 5 0 0011 7v8zM23 17a7 7 0 01-11.73 5.14l1.42-1.41A5 5 0 0021 17V12.42l9-9L28.59 2 2 28.59 3.41 30l6.44-6.44A8.91 8.91 0 0015 25.94V28H11v2H21V28H17V25.94A9 9 0 0025 17V14H23zm-4 0a3 3 0 01-4.9 2.31L19 14.42z\"\n })), children);\n});\nvar MicrophoneOffFilled32 = /*#__PURE__*/React.forwardRef(function MicrophoneOffFilled32(_ref148, ref) {\n var children = _ref148.children,\n rest = _objectWithoutProperties(_ref148, _excluded148);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path269 || (_path269 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 17a7 7 0 01-11.73 5.14l1.42-1.41A5 5 0 0021 17V12.42l9-9L28.59 2 2 28.59 3.41 30l6.44-6.44A8.91 8.91 0 0015 25.94V28H11v2H21V28H17V25.94A9 9 0 0025 17V14H23zM9 17.32c0-.11 0-.21 0-.32V14H7v3a9 9 0 00.25 2.09zM20.76 5.58A5 5 0 0011 7v8.34z\"\n })), children);\n});\nvar MicrophoneOffFilled24 = /*#__PURE__*/React.forwardRef(function MicrophoneOffFilled24(_ref149, ref) {\n var children = _ref149.children,\n rest = _objectWithoutProperties(_ref149, _excluded149);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path270 || (_path270 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 17a7 7 0 01-11.73 5.14l1.42-1.41A5 5 0 0021 17V12.42l9-9L28.59 2 2 28.59 3.41 30l6.44-6.44A8.91 8.91 0 0015 25.94V28H11v2H21V28H17V25.94A9 9 0 0025 17V14H23zM9 17.32c0-.11 0-.21 0-.32V14H7v3a9 9 0 00.25 2.09zM20.76 5.58A5 5 0 0011 7v8.34z\"\n })), children);\n});\nvar MicrophoneOffFilled20 = /*#__PURE__*/React.forwardRef(function MicrophoneOffFilled20(_ref150, ref) {\n var children = _ref150.children,\n rest = _objectWithoutProperties(_ref150, _excluded150);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path271 || (_path271 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 17a7 7 0 01-11.73 5.14l1.42-1.41A5 5 0 0021 17V12.42l9-9L28.59 2 2 28.59 3.41 30l6.44-6.44A8.91 8.91 0 0015 25.94V28H11v2H21V28H17V25.94A9 9 0 0025 17V14H23zM9 17.32c0-.11 0-.21 0-.32V14H7v3a9 9 0 00.25 2.09zM20.76 5.58A5 5 0 0011 7v8.34z\"\n })), children);\n});\nvar MicrophoneOffFilled16 = /*#__PURE__*/React.forwardRef(function MicrophoneOffFilled16(_ref151, ref) {\n var children = _ref151.children,\n rest = _objectWithoutProperties(_ref151, _excluded151);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path272 || (_path272 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 17a7 7 0 01-11.73 5.14l1.42-1.41A5 5 0 0021 17V12.42l9-9L28.59 2 2 28.59 3.41 30l6.44-6.44A8.91 8.91 0 0015 25.94V28H11v2H21V28H17V25.94A9 9 0 0025 17V14H23zM9 17.32c0-.11 0-.21 0-.32V14H7v3a9 9 0 00.25 2.09zM20.76 5.58A5 5 0 0011 7v8.34z\"\n })), children);\n});\nvar Microscope32 = /*#__PURE__*/React.forwardRef(function Microscope32(_ref152, ref) {\n var children = _ref152.children,\n rest = _objectWithoutProperties(_ref152, _excluded152);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path273 || (_path273 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25.3943,24a7.8772,7.8772,0,0,0-1.6707-8.5684,3.918,3.918,0,0,0-1.0844-4.414l2.7759-2.7759a2.0025,2.0025,0,0,0,0-2.8286L22.5869,2.5849a2.0021,2.0021,0,0,0-2.8286,0L6.5859,15.7573a2.0027,2.0027,0,0,0,0,2.8286l2.8282,2.8282a2.0024,2.0024,0,0,0,2.8286,0l4.7749-4.7754a3.9329,3.9329,0,0,0,5.5139.4326A5.9442,5.9442,0,0,1,23.1775,24H16v4H4v2H28V24ZM10.8281,20,8,17.1714,9.8787,15.293l2.8283,2.8281ZM16,14a3.9811,3.9811,0,0,0,.0762.7524L14.1211,16.707l-2.8284-2.8281,9.88-9.88L24.001,6.8271l-3.2488,3.2491A3.9771,3.9771,0,0,0,16,14Zm4,2a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,20,16Zm6,12H18V26h8Z\"\n })), children);\n});\nvar Microscope24 = /*#__PURE__*/React.forwardRef(function Microscope24(_ref153, ref) {\n var children = _ref153.children,\n rest = _objectWithoutProperties(_ref153, _excluded153);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path274 || (_path274 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25.3943,24a7.8772,7.8772,0,0,0-1.6707-8.5684,3.918,3.918,0,0,0-1.0844-4.414l2.7759-2.7759a2.0025,2.0025,0,0,0,0-2.8286L22.5869,2.5849a2.0021,2.0021,0,0,0-2.8286,0L6.5859,15.7573a2.0027,2.0027,0,0,0,0,2.8286l2.8282,2.8282a2.0024,2.0024,0,0,0,2.8286,0l4.7749-4.7754a3.9329,3.9329,0,0,0,5.5139.4326A5.9442,5.9442,0,0,1,23.1775,24H16v4H4v2H28V24ZM10.8281,20,8,17.1714,9.8787,15.293l2.8283,2.8281ZM16,14a3.9811,3.9811,0,0,0,.0762.7524L14.1211,16.707l-2.8284-2.8281,9.88-9.88L24.001,6.8271l-3.2488,3.2491A3.9771,3.9771,0,0,0,16,14Zm4,2a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,20,16Zm6,12H18V26h8Z\"\n })), children);\n});\nvar Microscope20 = /*#__PURE__*/React.forwardRef(function Microscope20(_ref154, ref) {\n var children = _ref154.children,\n rest = _objectWithoutProperties(_ref154, _excluded154);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path275 || (_path275 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25.3943,24a7.8772,7.8772,0,0,0-1.6707-8.5684,3.918,3.918,0,0,0-1.0844-4.414l2.7759-2.7759a2.0025,2.0025,0,0,0,0-2.8286L22.5869,2.5849a2.0021,2.0021,0,0,0-2.8286,0L6.5859,15.7573a2.0027,2.0027,0,0,0,0,2.8286l2.8282,2.8282a2.0024,2.0024,0,0,0,2.8286,0l4.7749-4.7754a3.9329,3.9329,0,0,0,5.5139.4326A5.9442,5.9442,0,0,1,23.1775,24H16v4H4v2H28V24ZM10.8281,20,8,17.1714,9.8787,15.293l2.8283,2.8281ZM16,14a3.9811,3.9811,0,0,0,.0762.7524L14.1211,16.707l-2.8284-2.8281,9.88-9.88L24.001,6.8271l-3.2488,3.2491A3.9771,3.9771,0,0,0,16,14Zm4,2a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,20,16Zm6,12H18V26h8Z\"\n })), children);\n});\nvar Microscope16 = /*#__PURE__*/React.forwardRef(function Microscope16(_ref155, ref) {\n var children = _ref155.children,\n rest = _objectWithoutProperties(_ref155, _excluded155);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path276 || (_path276 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25.3943,24a7.8772,7.8772,0,0,0-1.6707-8.5684,3.918,3.918,0,0,0-1.0844-4.414l2.7759-2.7759a2.0025,2.0025,0,0,0,0-2.8286L22.5869,2.5849a2.0021,2.0021,0,0,0-2.8286,0L6.5859,15.7573a2.0027,2.0027,0,0,0,0,2.8286l2.8282,2.8282a2.0024,2.0024,0,0,0,2.8286,0l4.7749-4.7754a3.9329,3.9329,0,0,0,5.5139.4326A5.9442,5.9442,0,0,1,23.1775,24H16v4H4v2H28V24ZM10.8281,20,8,17.1714,9.8787,15.293l2.8283,2.8281ZM16,14a3.9811,3.9811,0,0,0,.0762.7524L14.1211,16.707l-2.8284-2.8281,9.88-9.88L24.001,6.8271l-3.2488,3.2491A3.9771,3.9771,0,0,0,16,14Zm4,2a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,20,16Zm6,12H18V26h8Z\"\n })), children);\n});\nvar Migrate32 = /*#__PURE__*/React.forwardRef(function Migrate32(_ref156, ref) {\n var children = _ref156.children,\n rest = _objectWithoutProperties(_ref156, _excluded156);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path277 || (_path277 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 2H6A2 2 0 004 4V8a2 2 0 002 2h9v6.17l-2.59-2.58L11 15l5 5 5-5-1.41-1.41L17 16.17V10h9a2 2 0 002-2V4A2 2 0 0026 2zM6 4h4V8H6zM26 8H12V4H26zM26 22H6a2 2 0 00-2 2v4a2 2 0 002 2H26a2 2 0 002-2V24A2 2 0 0026 22zM6 24H20v4H6zm20 4H22V24h4z\"\n })), children);\n});\nvar Migrate24 = /*#__PURE__*/React.forwardRef(function Migrate24(_ref157, ref) {\n var children = _ref157.children,\n rest = _objectWithoutProperties(_ref157, _excluded157);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path278 || (_path278 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 2H6A2 2 0 004 4V8a2 2 0 002 2h9v6.17l-2.59-2.58L11 15l5 5 5-5-1.41-1.41L17 16.17V10h9a2 2 0 002-2V4A2 2 0 0026 2zM6 4h4V8H6zM26 8H12V4H26zM26 22H6a2 2 0 00-2 2v4a2 2 0 002 2H26a2 2 0 002-2V24A2 2 0 0026 22zM6 24H20v4H6zm20 4H22V24h4z\"\n })), children);\n});\nvar Migrate20 = /*#__PURE__*/React.forwardRef(function Migrate20(_ref158, ref) {\n var children = _ref158.children,\n rest = _objectWithoutProperties(_ref158, _excluded158);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path279 || (_path279 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 2H6A2 2 0 004 4V8a2 2 0 002 2h9v6.17l-2.59-2.58L11 15l5 5 5-5-1.41-1.41L17 16.17V10h9a2 2 0 002-2V4A2 2 0 0026 2zM6 4h4V8H6zM26 8H12V4H26zM26 22H6a2 2 0 00-2 2v4a2 2 0 002 2H26a2 2 0 002-2V24A2 2 0 0026 22zM6 24H20v4H6zm20 4H22V24h4z\"\n })), children);\n});\nvar Migrate16 = /*#__PURE__*/React.forwardRef(function Migrate16(_ref159, ref) {\n var children = _ref159.children,\n rest = _objectWithoutProperties(_ref159, _excluded159);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path280 || (_path280 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 2H6A2 2 0 004 4V8a2 2 0 002 2h9v6.17l-2.59-2.58L11 15l5 5 5-5-1.41-1.41L17 16.17V10h9a2 2 0 002-2V4A2 2 0 0026 2zM6 4h4V8H6zM26 8H12V4H26zM26 22H6a2 2 0 00-2 2v4a2 2 0 002 2H26a2 2 0 002-2V24A2 2 0 0026 22zM6 24H20v4H6zm20 4H22V24h4z\"\n })), children);\n});\nvar MigrateAlt32 = /*#__PURE__*/React.forwardRef(function MigrateAlt32(_ref160, ref) {\n var children = _ref160.children,\n rest = _objectWithoutProperties(_ref160, _excluded160);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path281 || (_path281 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,22H12V20H10v6H4V17H20.1719l-3.586,3.5859L18,22l6-6-6-6-1.4141,1.4141L20.1719,15H4V6h6v6h2V6H28Z\"\n })), children);\n});\nvar MigrateAlt24 = /*#__PURE__*/React.forwardRef(function MigrateAlt24(_ref161, ref) {\n var children = _ref161.children,\n rest = _objectWithoutProperties(_ref161, _excluded161);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path282 || (_path282 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,22H12V20H10v6H4V17H20.1719l-3.586,3.5859L18,22l6-6-6-6-1.4141,1.4141L20.1719,15H4V6h6v6h2V6H28Z\"\n })), children);\n});\nvar MigrateAlt20 = /*#__PURE__*/React.forwardRef(function MigrateAlt20(_ref162, ref) {\n var children = _ref162.children,\n rest = _objectWithoutProperties(_ref162, _excluded162);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path283 || (_path283 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,22H12V20H10v6H4V17H20.1719l-3.586,3.5859L18,22l6-6-6-6-1.4141,1.4141L20.1719,15H4V6h6v6h2V6H28Z\"\n })), children);\n});\nvar MigrateAlt16 = /*#__PURE__*/React.forwardRef(function MigrateAlt16(_ref163, ref) {\n var children = _ref163.children,\n rest = _objectWithoutProperties(_ref163, _excluded163);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path284 || (_path284 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,22H12V20H10v6H4V17H20.1719l-3.586,3.5859L18,22l6-6-6-6-1.4141,1.4141L20.1719,15H4V6h6v6h2V6H28Z\"\n })), children);\n});\nvar Milestone32 = /*#__PURE__*/React.forwardRef(function Milestone32(_ref164, ref) {\n var children = _ref164.children,\n rest = _objectWithoutProperties(_ref164, _excluded164);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path285 || (_path285 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5857,6.5859A1.9865,1.9865,0,0,0,23.1714,6H16V2H14V6H6A2.0025,2.0025,0,0,0,4,8v6a2.0025,2.0025,0,0,0,2,2h8V30h2V16h7.1714a1.9865,1.9865,0,0,0,1.4143-.5859L29,11ZM23.1714,14H6V8H23.1716l3,3Z\"\n })), children);\n});\nvar Milestone24 = /*#__PURE__*/React.forwardRef(function Milestone24(_ref165, ref) {\n var children = _ref165.children,\n rest = _objectWithoutProperties(_ref165, _excluded165);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path286 || (_path286 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5857,6.5859A1.9865,1.9865,0,0,0,23.1714,6H16V2H14V6H6A2.0025,2.0025,0,0,0,4,8v6a2.0025,2.0025,0,0,0,2,2h8V30h2V16h7.1714a1.9865,1.9865,0,0,0,1.4143-.5859L29,11ZM23.1714,14H6V8H23.1716l3,3Z\"\n })), children);\n});\nvar Milestone20 = /*#__PURE__*/React.forwardRef(function Milestone20(_ref166, ref) {\n var children = _ref166.children,\n rest = _objectWithoutProperties(_ref166, _excluded166);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path287 || (_path287 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5857,6.5859A1.9865,1.9865,0,0,0,23.1714,6H16V2H14V6H6A2.0025,2.0025,0,0,0,4,8v6a2.0025,2.0025,0,0,0,2,2h8V30h2V16h7.1714a1.9865,1.9865,0,0,0,1.4143-.5859L29,11ZM23.1714,14H6V8H23.1716l3,3Z\"\n })), children);\n});\nvar Milestone16 = /*#__PURE__*/React.forwardRef(function Milestone16(_ref167, ref) {\n var children = _ref167.children,\n rest = _objectWithoutProperties(_ref167, _excluded167);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path288 || (_path288 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5857,6.5859A1.9865,1.9865,0,0,0,23.1714,6H16V2H14V6H6A2.0025,2.0025,0,0,0,4,8v6a2.0025,2.0025,0,0,0,2,2h8V30h2V16h7.1714a1.9865,1.9865,0,0,0,1.4143-.5859L29,11ZM23.1714,14H6V8H23.1716l3,3Z\"\n })), children);\n});\nvar Minimize32 = /*#__PURE__*/React.forwardRef(function Minimize32(_ref168, ref) {\n var children = _ref168.children,\n rest = _objectWithoutProperties(_ref168, _excluded168);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path289 || (_path289 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 18L4 20 10.586 20 2 28.582 3.414 30 12 21.414 12 28 14 28 14 18 4 18zM30 3.416L28.592 2 20 10.586 20 4 18 4 18 14 28 14 28 12 21.414 12 30 3.416z\"\n })), children);\n});\nvar Minimize24 = /*#__PURE__*/React.forwardRef(function Minimize24(_ref169, ref) {\n var children = _ref169.children,\n rest = _objectWithoutProperties(_ref169, _excluded169);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path290 || (_path290 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 18L4 20 10.586 20 2 28.582 3.414 30 12 21.414 12 28 14 28 14 18 4 18zM30 3.416L28.592 2 20 10.586 20 4 18 4 18 14 28 14 28 12 21.414 12 30 3.416z\"\n })), children);\n});\nvar Minimize20 = /*#__PURE__*/React.forwardRef(function Minimize20(_ref170, ref) {\n var children = _ref170.children,\n rest = _objectWithoutProperties(_ref170, _excluded170);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path291 || (_path291 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 18L4 20 10.586 20 2 28.582 3.414 30 12 21.414 12 28 14 28 14 18 4 18zM30 3.416L28.592 2 20 10.586 20 4 18 4 18 14 28 14 28 12 21.414 12 30 3.416z\"\n })), children);\n});\nvar Minimize16 = /*#__PURE__*/React.forwardRef(function Minimize16(_ref171, ref) {\n var children = _ref171.children,\n rest = _objectWithoutProperties(_ref171, _excluded171);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path292 || (_path292 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 9L2 10 5.3 10 1 14.3 1.7 15 6 10.7 6 14 7 14 7 9zM14 7L14 6 10.7 6 15 1.7 14.3 1 10 5.3 10 2 9 2 9 7z\"\n })), children);\n});\nvar Misuse32 = /*#__PURE__*/React.forwardRef(function Misuse32(_ref172, ref) {\n var children = _ref172.children,\n rest = _objectWithoutProperties(_ref172, _excluded172);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path293 || (_path293 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14S23.7,2,16,2z M21.4,23L16,17.6L10.6,23L9,21.4l5.4-5.4L9,10.6L10.6,9\\tl5.4,5.4L21.4,9l1.6,1.6L17.6,16l5.4,5.4L21.4,23z\"\n })), _path294 || (_path294 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M21.4,23L16,17.6L10.6,23L9,21.4l5.4-5.4L9,10.6L10.6,9l5.4,5.4L21.4,9l1.6,1.6L17.6,16\\tl5.4,5.4L21.4,23z\",\n \"data-icon-path\": \"inner-path\",\n opacity: \"0\"\n })), children);\n});\nvar Misuse24 = /*#__PURE__*/React.forwardRef(function Misuse24(_ref173, ref) {\n var children = _ref173.children,\n rest = _objectWithoutProperties(_ref173, _excluded173);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path295 || (_path295 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,1C6,1,1,6,1,12s5,11,11,11s11-4.9,11-11S18.1,1,12,1z M16.2,17.5L12,13.3l-4.2,4.2l-1.3-1.3l4.2-4.2L6.5,7.8l1.3-1.3\\tl4.2,4.2l4.2-4.2l1.3,1.3L13.3,12l4.2,4.2L16.2,17.5z\"\n })), _path296 || (_path296 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M16.2,17.5L12,13.3l-4.2,4.2l-1.3-1.3l4.2-4.2L6.5,7.8l1.3-1.3l4.2,4.2l4.2-4.2l1.3,1.3\\tL13.3,12l4.2,4.2L16.2,17.5z\",\n \"data-icon-path\": \"inner-path\",\n opacity: \"0\"\n })), children);\n});\nvar Misuse20 = /*#__PURE__*/React.forwardRef(function Misuse20(_ref174, ref) {\n var children = _ref174.children,\n rest = _objectWithoutProperties(_ref174, _excluded174);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 20 20\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path297 || (_path297 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,1c-4.9,0-9,4.1-9,9s4.1,9,9,9s9-4,9-9S15,1,10,1z M13.5,14.5L10,11l-3.5,3.5l-1-1L9,10L5.5,6.5l1-1L10,9l3.5-3.5l1,1\\tL11,10l3.5,3.5L13.5,14.5z\"\n })), _path298 || (_path298 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M13.5,14.5L10,11l-3.5,3.5l-1-1L9,10L5.5,6.5l1-1L10,9l3.5-3.5l1,1L11,10l3.5,3.5L13.5,14.5z\",\n \"data-icon-path\": \"inner-path\",\n opacity: \"0\"\n })), children);\n});\nvar Misuse16 = /*#__PURE__*/React.forwardRef(function Misuse16(_ref175, ref) {\n var children = _ref175.children,\n rest = _objectWithoutProperties(_ref175, _excluded175);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path299 || (_path299 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M10.7,11.5L8,8.8l-2.7,2.7l-0.8-0.8L7.2,8L4.5,5.3l0.8-0.8L8,7.2\\tl2.7-2.7l0.8,0.8L8.8,8l2.7,2.7L10.7,11.5z\"\n })), _path300 || (_path300 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.7,11.5L8,8.8l-2.7,2.7l-0.8-0.8L7.2,8L4.5,5.3l0.8-0.8L8,7.2l2.7-2.7l0.8,0.8L8.8,8\\tl2.7,2.7L10.7,11.5z\",\n \"data-icon-path\": \"inner-path\",\n opacity: \"0\"\n })), children);\n});\nvar MisuseAlt32 = /*#__PURE__*/React.forwardRef(function MisuseAlt32(_ref176, ref) {\n var children = _ref176.children,\n rest = _objectWithoutProperties(_ref176, _excluded176);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['MisuseAlt32']) {\n didWarnAboutDeprecation['MisuseAlt32'] = true;\n console.warn(\"The MisuseAlt32 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path301 || (_path301 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.41 23L16 17.591 10.59 23 9 21.41 14.409 16 9 10.591 10.591 9 16 14.409 21.409 9 23 10.591 17.591 16 23 21.41 21.41 23z\"\n })), _path302 || (_path302 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,4A12,12,0,1,1,4,16,12.0136,12.0136,0,0,1,16,4m0-2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Z\"\n })), children);\n});\nvar MisuseAlt24 = /*#__PURE__*/React.forwardRef(function MisuseAlt24(_ref177, ref) {\n var children = _ref177.children,\n rest = _objectWithoutProperties(_ref177, _excluded177);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['MisuseAlt24']) {\n didWarnAboutDeprecation['MisuseAlt24'] = true;\n console.warn(\"The MisuseAlt24 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path303 || (_path303 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.41 23L16 17.591 10.59 23 9 21.41 14.409 16 9 10.591 10.591 9 16 14.409 21.409 9 23 10.591 17.591 16 23 21.41 21.41 23z\"\n })), _path304 || (_path304 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,4A12,12,0,1,1,4,16,12.0136,12.0136,0,0,1,16,4m0-2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Z\"\n })), children);\n});\nvar MisuseAlt20 = /*#__PURE__*/React.forwardRef(function MisuseAlt20(_ref178, ref) {\n var children = _ref178.children,\n rest = _objectWithoutProperties(_ref178, _excluded178);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['MisuseAlt20']) {\n didWarnAboutDeprecation['MisuseAlt20'] = true;\n console.warn(\"The MisuseAlt20 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path305 || (_path305 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.41 23L16 17.591 10.59 23 9 21.41 14.409 16 9 10.591 10.591 9 16 14.409 21.409 9 23 10.591 17.591 16 23 21.41 21.41 23z\"\n })), _path306 || (_path306 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,4A12,12,0,1,1,4,16,12.0136,12.0136,0,0,1,16,4m0-2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Z\"\n })), children);\n});\nvar MisuseAlt16 = /*#__PURE__*/React.forwardRef(function MisuseAlt16(_ref179, ref) {\n var children = _ref179.children,\n rest = _objectWithoutProperties(_ref179, _excluded179);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['MisuseAlt16']) {\n didWarnAboutDeprecation['MisuseAlt16'] = true;\n console.warn(\"The MisuseAlt16 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path307 || (_path307 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.41 23L16 17.591 10.59 23 9 21.41 14.409 16 9 10.591 10.591 9 16 14.409 21.409 9 23 10.591 17.591 16 23 21.41 21.41 23z\"\n })), _path308 || (_path308 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,4A12,12,0,1,1,4,16,12.0136,12.0136,0,0,1,16,4m0-2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Z\"\n })), children);\n});\nvar MisuseOutline32 = /*#__PURE__*/React.forwardRef(function MisuseOutline32(_ref180, ref) {\n var children = _ref180.children,\n rest = _objectWithoutProperties(_ref180, _excluded180);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path309 || (_path309 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12\\tS22.6,28,16,28z\"\n })), _path310 || (_path310 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z\"\n })), children);\n});\nvar MisuseOutline24 = /*#__PURE__*/React.forwardRef(function MisuseOutline24(_ref181, ref) {\n var children = _ref181.children,\n rest = _objectWithoutProperties(_ref181, _excluded181);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path311 || (_path311 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12\\tS22.6,28,16,28z\"\n })), _path312 || (_path312 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z\"\n })), children);\n});\nvar MisuseOutline20 = /*#__PURE__*/React.forwardRef(function MisuseOutline20(_ref182, ref) {\n var children = _ref182.children,\n rest = _objectWithoutProperties(_ref182, _excluded182);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path313 || (_path313 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12\\tS22.6,28,16,28z\"\n })), _path314 || (_path314 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z\"\n })), children);\n});\nvar MisuseOutline16 = /*#__PURE__*/React.forwardRef(function MisuseOutline16(_ref183, ref) {\n var children = _ref183.children,\n rest = _objectWithoutProperties(_ref183, _excluded183);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path315 || (_path315 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M8,14c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6S11.3,14,8,14z\"\n })), _path316 || (_path316 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.7 11.5L8 8.8 5.3 11.5 4.5 10.7 7.2 8 4.5 5.3 5.3 4.5 8 7.2 10.7 4.5 11.5 5.3 8.8 8 11.5 10.7z\"\n })), children);\n});\nvar MixedRainHail32 = /*#__PURE__*/React.forwardRef(function MixedRainHail32(_ref184, ref) {\n var children = _ref184.children,\n rest = _objectWithoutProperties(_ref184, _excluded184);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle13 || (_circle13 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"24.5\",\n cy: \"25.5\",\n r: \"1.5\"\n })), _circle14 || (_circle14 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"21.5\",\n cy: \"29.5\",\n r: \"1.5\"\n })), _path317 || (_path317 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15.868 30.496L14.132 29.504 17.276 24 11.277 24 16.132 15.504 17.868 16.496 14.723 22 20.724 22 15.868 30.496z\"\n })), _path318 || (_path318 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 32a1 1 0 01-.8944-1.4474l2-4.0005a1 1 0 111.7888.8947l-2 4A.9981.9981 0 019 32zM24.8008 9.1362a8.9943 8.9943 0 00-17.6006 0 6.4929 6.4929 0 00.23 12.7681L6.106 24.5527a1 1 0 101.7885.8946l2-4a1 1 0 00-.447-1.3418A.9786.9786 0 009 20.01V20H8.5a4.4975 4.4975 0 01-.356-8.981l.8155-.0639.0991-.812a6.9938 6.9938 0 0113.8838 0l.0986.812.8154.0639A4.4975 4.4975 0 0123.5 20H23v2h.5A6.4974 6.4974 0 0024.8008 9.1362z\"\n })), children);\n});\nvar MixedRainHail24 = /*#__PURE__*/React.forwardRef(function MixedRainHail24(_ref185, ref) {\n var children = _ref185.children,\n rest = _objectWithoutProperties(_ref185, _excluded185);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle15 || (_circle15 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"24.5\",\n cy: \"25.5\",\n r: \"1.5\"\n })), _circle16 || (_circle16 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"21.5\",\n cy: \"29.5\",\n r: \"1.5\"\n })), _path319 || (_path319 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15.868 30.496L14.132 29.504 17.276 24 11.277 24 16.132 15.504 17.868 16.496 14.723 22 20.724 22 15.868 30.496z\"\n })), _path320 || (_path320 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 32a1 1 0 01-.8944-1.4474l2-4.0005a1 1 0 111.7888.8947l-2 4A.9981.9981 0 019 32zM24.8008 9.1362a8.9943 8.9943 0 00-17.6006 0 6.4929 6.4929 0 00.23 12.7681L6.106 24.5527a1 1 0 101.7885.8946l2-4a1 1 0 00-.447-1.3418A.9786.9786 0 009 20.01V20H8.5a4.4975 4.4975 0 01-.356-8.981l.8155-.0639.0991-.812a6.9938 6.9938 0 0113.8838 0l.0986.812.8154.0639A4.4975 4.4975 0 0123.5 20H23v2h.5A6.4974 6.4974 0 0024.8008 9.1362z\"\n })), children);\n});\nvar MixedRainHail20 = /*#__PURE__*/React.forwardRef(function MixedRainHail20(_ref186, ref) {\n var children = _ref186.children,\n rest = _objectWithoutProperties(_ref186, _excluded186);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle17 || (_circle17 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"24.5\",\n cy: \"25.5\",\n r: \"1.5\"\n })), _circle18 || (_circle18 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"21.5\",\n cy: \"29.5\",\n r: \"1.5\"\n })), _path321 || (_path321 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15.868 30.496L14.132 29.504 17.276 24 11.277 24 16.132 15.504 17.868 16.496 14.723 22 20.724 22 15.868 30.496z\"\n })), _path322 || (_path322 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 32a1 1 0 01-.8944-1.4474l2-4.0005a1 1 0 111.7888.8947l-2 4A.9981.9981 0 019 32zM24.8008 9.1362a8.9943 8.9943 0 00-17.6006 0 6.4929 6.4929 0 00.23 12.7681L6.106 24.5527a1 1 0 101.7885.8946l2-4a1 1 0 00-.447-1.3418A.9786.9786 0 009 20.01V20H8.5a4.4975 4.4975 0 01-.356-8.981l.8155-.0639.0991-.812a6.9938 6.9938 0 0113.8838 0l.0986.812.8154.0639A4.4975 4.4975 0 0123.5 20H23v2h.5A6.4974 6.4974 0 0024.8008 9.1362z\"\n })), children);\n});\nvar MixedRainHail16 = /*#__PURE__*/React.forwardRef(function MixedRainHail16(_ref187, ref) {\n var children = _ref187.children,\n rest = _objectWithoutProperties(_ref187, _excluded187);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle19 || (_circle19 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"24.5\",\n cy: \"25.5\",\n r: \"1.5\"\n })), _circle20 || (_circle20 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"21.5\",\n cy: \"29.5\",\n r: \"1.5\"\n })), _path323 || (_path323 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15.868 30.496L14.132 29.504 17.276 24 11.277 24 16.132 15.504 17.868 16.496 14.723 22 20.724 22 15.868 30.496z\"\n })), _path324 || (_path324 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 32a1 1 0 01-.8944-1.4474l2-4.0005a1 1 0 111.7888.8947l-2 4A.9981.9981 0 019 32zM24.8008 9.1362a8.9943 8.9943 0 00-17.6006 0 6.4929 6.4929 0 00.23 12.7681L6.106 24.5527a1 1 0 101.7885.8946l2-4a1 1 0 00-.447-1.3418A.9786.9786 0 009 20.01V20H8.5a4.4975 4.4975 0 01-.356-8.981l.8155-.0639.0991-.812a6.9938 6.9938 0 0113.8838 0l.0986.812.8154.0639A4.4975 4.4975 0 0123.5 20H23v2h.5A6.4974 6.4974 0 0024.8008 9.1362z\"\n })), children);\n});\nvar Mobile32 = /*#__PURE__*/React.forwardRef(function Mobile32(_ref188, ref) {\n var children = _ref188.children,\n rest = _objectWithoutProperties(_ref188, _excluded188);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path325 || (_path325 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,4H10A2.002,2.002,0,0,0,8,6V28a2.0023,2.0023,0,0,0,2,2H22a2.0027,2.0027,0,0,0,2-2V6A2.0023,2.0023,0,0,0,22,4Zm0,2,0,2H10V6ZM10,28V10H22l0,18Z\"\n })), children);\n});\nvar Mobile24 = /*#__PURE__*/React.forwardRef(function Mobile24(_ref189, ref) {\n var children = _ref189.children,\n rest = _objectWithoutProperties(_ref189, _excluded189);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path326 || (_path326 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,4H10A2.002,2.002,0,0,0,8,6V28a2.0023,2.0023,0,0,0,2,2H22a2.0027,2.0027,0,0,0,2-2V6A2.0023,2.0023,0,0,0,22,4Zm0,2,0,2H10V6ZM10,28V10H22l0,18Z\"\n })), children);\n});\nvar Mobile20 = /*#__PURE__*/React.forwardRef(function Mobile20(_ref190, ref) {\n var children = _ref190.children,\n rest = _objectWithoutProperties(_ref190, _excluded190);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path327 || (_path327 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,4H10A2.002,2.002,0,0,0,8,6V28a2.0023,2.0023,0,0,0,2,2H22a2.0027,2.0027,0,0,0,2-2V6A2.0023,2.0023,0,0,0,22,4Zm0,2,0,2H10V6ZM10,28V10H22l0,18Z\"\n })), children);\n});\nvar Mobile16 = /*#__PURE__*/React.forwardRef(function Mobile16(_ref191, ref) {\n var children = _ref191.children,\n rest = _objectWithoutProperties(_ref191, _excluded191);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path328 || (_path328 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,4H10A2.002,2.002,0,0,0,8,6V28a2.0023,2.0023,0,0,0,2,2H22a2.0027,2.0027,0,0,0,2-2V6A2.0023,2.0023,0,0,0,22,4Zm0,2,0,2H10V6ZM10,28V10H22l0,18Z\"\n })), children);\n});\nvar MobileAdd32 = /*#__PURE__*/React.forwardRef(function MobileAdd32(_ref192, ref) {\n var children = _ref192.children,\n rest = _objectWithoutProperties(_ref192, _excluded192);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path329 || (_path329 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 24L24 24 24 20 22 20 22 24 18 24 18 26 22 26 22 30 24 30 24 26 28 26 28 24z\"\n })), _path330 || (_path330 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,28V10H22v7h2V6a2.0023,2.0023,0,0,0-2-2H10A2.002,2.002,0,0,0,8,6V28a2.0023,2.0023,0,0,0,2,2h6l0-2ZM10,6H22l0,2H10Z\"\n })), children);\n});\nvar MobileAdd24 = /*#__PURE__*/React.forwardRef(function MobileAdd24(_ref193, ref) {\n var children = _ref193.children,\n rest = _objectWithoutProperties(_ref193, _excluded193);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path331 || (_path331 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 24L24 24 24 20 22 20 22 24 18 24 18 26 22 26 22 30 24 30 24 26 28 26 28 24z\"\n })), _path332 || (_path332 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,28V10H22v7h2V6a2.0023,2.0023,0,0,0-2-2H10A2.002,2.002,0,0,0,8,6V28a2.0023,2.0023,0,0,0,2,2h6l0-2ZM10,6H22l0,2H10Z\"\n })), children);\n});\nvar MobileAdd20 = /*#__PURE__*/React.forwardRef(function MobileAdd20(_ref194, ref) {\n var children = _ref194.children,\n rest = _objectWithoutProperties(_ref194, _excluded194);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path333 || (_path333 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 24L24 24 24 20 22 20 22 24 18 24 18 26 22 26 22 30 24 30 24 26 28 26 28 24z\"\n })), _path334 || (_path334 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,28V10H22v7h2V6a2.0023,2.0023,0,0,0-2-2H10A2.002,2.002,0,0,0,8,6V28a2.0023,2.0023,0,0,0,2,2h6l0-2ZM10,6H22l0,2H10Z\"\n })), children);\n});\nvar MobileAdd16 = /*#__PURE__*/React.forwardRef(function MobileAdd16(_ref195, ref) {\n var children = _ref195.children,\n rest = _objectWithoutProperties(_ref195, _excluded195);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path335 || (_path335 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 24L24 24 24 20 22 20 22 24 18 24 18 26 22 26 22 30 24 30 24 26 28 26 28 24z\"\n })), _path336 || (_path336 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,28V10H22v7h2V6a2.0023,2.0023,0,0,0-2-2H10A2.002,2.002,0,0,0,8,6V28a2.0023,2.0023,0,0,0,2,2h6l0-2ZM10,6H22l0,2H10Z\"\n })), children);\n});\nvar MobileAudio32 = /*#__PURE__*/React.forwardRef(function MobileAudio32(_ref196, ref) {\n var children = _ref196.children,\n rest = _objectWithoutProperties(_ref196, _excluded196);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path337 || (_path337 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 12H30V15H28zM24 7H26V20H24zM20 11H22V16H20zM16 9H18V18H16zM12 12H14V15H12z\"\n })), _circle21 || (_circle21 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"13.5\",\n cy: \"24.5\",\n r: \"1.5\"\n })), _path338 || (_path338 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,30H7a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,7,2H20V4H7V28H20V24h2v4A2.0023,2.0023,0,0,1,20,30Z\"\n })), children);\n});\nvar MobileAudio24 = /*#__PURE__*/React.forwardRef(function MobileAudio24(_ref197, ref) {\n var children = _ref197.children,\n rest = _objectWithoutProperties(_ref197, _excluded197);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path339 || (_path339 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 12H30V15H28zM24 7H26V20H24zM20 11H22V16H20zM16 9H18V18H16zM12 12H14V15H12z\"\n })), _circle22 || (_circle22 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"13.5\",\n cy: \"24.5\",\n r: \"1.5\"\n })), _path340 || (_path340 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,30H7a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,7,2H20V4H7V28H20V24h2v4A2.0023,2.0023,0,0,1,20,30Z\"\n })), children);\n});\nvar MobileAudio20 = /*#__PURE__*/React.forwardRef(function MobileAudio20(_ref198, ref) {\n var children = _ref198.children,\n rest = _objectWithoutProperties(_ref198, _excluded198);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path341 || (_path341 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 12H30V15H28zM24 7H26V20H24zM20 11H22V16H20zM16 9H18V18H16zM12 12H14V15H12z\"\n })), _circle23 || (_circle23 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"13.5\",\n cy: \"24.5\",\n r: \"1.5\"\n })), _path342 || (_path342 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,30H7a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,7,2H20V4H7V28H20V24h2v4A2.0023,2.0023,0,0,1,20,30Z\"\n })), children);\n});\nvar MobileAudio16 = /*#__PURE__*/React.forwardRef(function MobileAudio16(_ref199, ref) {\n var children = _ref199.children,\n rest = _objectWithoutProperties(_ref199, _excluded199);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path343 || (_path343 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 12H30V15H28zM24 7H26V20H24zM20 11H22V16H20zM16 9H18V18H16zM12 12H14V15H12z\"\n })), _circle24 || (_circle24 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"13.5\",\n cy: \"24.5\",\n r: \"1.5\"\n })), _path344 || (_path344 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,30H7a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,7,2H20V4H7V28H20V24h2v4A2.0023,2.0023,0,0,1,20,30Z\"\n })), children);\n});\nvar MobileCheck32 = /*#__PURE__*/React.forwardRef(function MobileCheck32(_ref200, ref) {\n var children = _ref200.children,\n rest = _objectWithoutProperties(_ref200, _excluded200);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path345 || (_path345 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 27.18L17.41 24.59 16 26 20 30 28 22 26.59 20.59 20 27.18z\"\n })), _path346 || (_path346 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,28V10H22v9h2V6a2.0023,2.0023,0,0,0-2-2H10A2.002,2.002,0,0,0,8,6V28a2.0023,2.0023,0,0,0,2,2h4V28ZM10,6H22l0,2H10Z\"\n })), children);\n});\nvar MobileCheck24 = /*#__PURE__*/React.forwardRef(function MobileCheck24(_ref201, ref) {\n var children = _ref201.children,\n rest = _objectWithoutProperties(_ref201, _excluded201);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path347 || (_path347 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 27.18L17.41 24.59 16 26 20 30 28 22 26.59 20.59 20 27.18z\"\n })), _path348 || (_path348 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,28V10H22v9h2V6a2.0023,2.0023,0,0,0-2-2H10A2.002,2.002,0,0,0,8,6V28a2.0023,2.0023,0,0,0,2,2h4V28ZM10,6H22l0,2H10Z\"\n })), children);\n});\nvar MobileCheck20 = /*#__PURE__*/React.forwardRef(function MobileCheck20(_ref202, ref) {\n var children = _ref202.children,\n rest = _objectWithoutProperties(_ref202, _excluded202);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path349 || (_path349 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 27.18L17.41 24.59 16 26 20 30 28 22 26.59 20.59 20 27.18z\"\n })), _path350 || (_path350 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,28V10H22v9h2V6a2.0023,2.0023,0,0,0-2-2H10A2.002,2.002,0,0,0,8,6V28a2.0023,2.0023,0,0,0,2,2h4V28ZM10,6H22l0,2H10Z\"\n })), children);\n});\nvar MobileCheck16 = /*#__PURE__*/React.forwardRef(function MobileCheck16(_ref203, ref) {\n var children = _ref203.children,\n rest = _objectWithoutProperties(_ref203, _excluded203);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path351 || (_path351 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 27.18L17.41 24.59 16 26 20 30 28 22 26.59 20.59 20 27.18z\"\n })), _path352 || (_path352 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,28V10H22v9h2V6a2.0023,2.0023,0,0,0-2-2H10A2.002,2.002,0,0,0,8,6V28a2.0023,2.0023,0,0,0,2,2h4V28ZM10,6H22l0,2H10Z\"\n })), children);\n});\nvar MobileDownload32 = /*#__PURE__*/React.forwardRef(function MobileDownload32(_ref204, ref) {\n var children = _ref204.children,\n rest = _objectWithoutProperties(_ref204, _excluded204);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path353 || (_path353 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 25L26.586 23.586 24 26.172 24 18 22 18 22 26.172 19.414 23.586 18 25 23 30 28 25z\"\n })), _path354 || (_path354 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,28V10H22v5h2V6a2.0023,2.0023,0,0,0-2-2H10A2.002,2.002,0,0,0,8,6V28a2.0023,2.0023,0,0,0,2,2h6V28ZM10,6H22l0,2H10Z\"\n })), children);\n});\nvar MobileDownload24 = /*#__PURE__*/React.forwardRef(function MobileDownload24(_ref205, ref) {\n var children = _ref205.children,\n rest = _objectWithoutProperties(_ref205, _excluded205);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path355 || (_path355 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 25L26.586 23.586 24 26.172 24 18 22 18 22 26.172 19.414 23.586 18 25 23 30 28 25z\"\n })), _path356 || (_path356 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,28V10H22v5h2V6a2.0023,2.0023,0,0,0-2-2H10A2.002,2.002,0,0,0,8,6V28a2.0023,2.0023,0,0,0,2,2h6V28ZM10,6H22l0,2H10Z\"\n })), children);\n});\nvar MobileDownload20 = /*#__PURE__*/React.forwardRef(function MobileDownload20(_ref206, ref) {\n var children = _ref206.children,\n rest = _objectWithoutProperties(_ref206, _excluded206);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path357 || (_path357 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 25L26.586 23.586 24 26.172 24 18 22 18 22 26.172 19.414 23.586 18 25 23 30 28 25z\"\n })), _path358 || (_path358 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,28V10H22v5h2V6a2.0023,2.0023,0,0,0-2-2H10A2.002,2.002,0,0,0,8,6V28a2.0023,2.0023,0,0,0,2,2h6V28ZM10,6H22l0,2H10Z\"\n })), children);\n});\nvar MobileDownload16 = /*#__PURE__*/React.forwardRef(function MobileDownload16(_ref207, ref) {\n var children = _ref207.children,\n rest = _objectWithoutProperties(_ref207, _excluded207);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path359 || (_path359 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 25L26.586 23.586 24 26.172 24 18 22 18 22 26.172 19.414 23.586 18 25 23 30 28 25z\"\n })), _path360 || (_path360 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,28V10H22v5h2V6a2.0023,2.0023,0,0,0-2-2H10A2.002,2.002,0,0,0,8,6V28a2.0023,2.0023,0,0,0,2,2h6V28ZM10,6H22l0,2H10Z\"\n })), children);\n});\nvar MobileLandscape32 = /*#__PURE__*/React.forwardRef(function MobileLandscape32(_ref208, ref) {\n var children = _ref208.children,\n rest = _objectWithoutProperties(_ref208, _excluded208);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path361 || (_path361 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3,10V22a2.002,2.002,0,0,0,2,2H27a2.0023,2.0023,0,0,0,2-2V10a2.0027,2.0027,0,0,0-2-2H5A2.0023,2.0023,0,0,0,3,10Zm2,0,2,0V22H5ZM27,22H9V10H27Z\"\n })), children);\n});\nvar MobileLandscape24 = /*#__PURE__*/React.forwardRef(function MobileLandscape24(_ref209, ref) {\n var children = _ref209.children,\n rest = _objectWithoutProperties(_ref209, _excluded209);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path362 || (_path362 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3,10V22a2.002,2.002,0,0,0,2,2H27a2.0023,2.0023,0,0,0,2-2V10a2.0027,2.0027,0,0,0-2-2H5A2.0023,2.0023,0,0,0,3,10Zm2,0,2,0V22H5ZM27,22H9V10H27Z\"\n })), children);\n});\nvar MobileLandscape20 = /*#__PURE__*/React.forwardRef(function MobileLandscape20(_ref210, ref) {\n var children = _ref210.children,\n rest = _objectWithoutProperties(_ref210, _excluded210);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path363 || (_path363 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3,10V22a2.002,2.002,0,0,0,2,2H27a2.0023,2.0023,0,0,0,2-2V10a2.0027,2.0027,0,0,0-2-2H5A2.0023,2.0023,0,0,0,3,10Zm2,0,2,0V22H5ZM27,22H9V10H27Z\"\n })), children);\n});\nvar MobileLandscape16 = /*#__PURE__*/React.forwardRef(function MobileLandscape16(_ref211, ref) {\n var children = _ref211.children,\n rest = _objectWithoutProperties(_ref211, _excluded211);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path364 || (_path364 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3,10V22a2.002,2.002,0,0,0,2,2H27a2.0023,2.0023,0,0,0,2-2V10a2.0027,2.0027,0,0,0-2-2H5A2.0023,2.0023,0,0,0,3,10Zm2,0,2,0V22H5ZM27,22H9V10H27Z\"\n })), children);\n});\nvar MobilityServices32 = /*#__PURE__*/React.forwardRef(function MobilityServices32(_ref212, ref) {\n var children = _ref212.children,\n rest = _objectWithoutProperties(_ref212, _excluded212);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path365 || (_path365 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.3379 19.9336l-7.7324-2.7783L18.374 13.0967A2.99 2.99 0 0016.0537 12H8.0576a2.9982 2.9982 0 00-2.48 1.3115L2.8662 17.2949A4.9884 4.9884 0 002 20.1074V26a1 1 0 001 1H5.1421a3.9806 3.9806 0 007.7158 0h6.2842a3.9806 3.9806 0 007.7158 0H29a1 1 0 001-1V20.875A1 1 0 0029.3379 19.9336zM9 28a2 2 0 112-2A2.0027 2.0027 0 019 28zm14 0a2 2 0 112-2A2.0025 2.0025 0 0123 28zm5-3H26.8579a3.9806 3.9806 0 00-7.7158 0H12.8579a3.9806 3.9806 0 00-7.7158 0H4V20.1074A2.9977 2.9977 0 014.52 18.4189l2.711-3.9814A.9992.9992 0 018.0576 14h7.9961a.9928.9928 0 01.7647.3545l3.3994 4.2685a1.0007 1.0007 0 00.4443.3184L28 21.5781zM28 2H24a2.0023 2.0023 0 00-2 2v8a2.0023 2.0023 0 002 2h4a2.0023 2.0023 0 002-2V4A2.0023 2.0023 0 0028 2zm0 2V6H24V4zm-4 8V8h4v4z\"\n })), children);\n});\nvar MobilityServices24 = /*#__PURE__*/React.forwardRef(function MobilityServices24(_ref213, ref) {\n var children = _ref213.children,\n rest = _objectWithoutProperties(_ref213, _excluded213);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path366 || (_path366 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.3379 19.9336l-7.7324-2.7783L18.374 13.0967A2.99 2.99 0 0016.0537 12H8.0576a2.9982 2.9982 0 00-2.48 1.3115L2.8662 17.2949A4.9884 4.9884 0 002 20.1074V26a1 1 0 001 1H5.1421a3.9806 3.9806 0 007.7158 0h6.2842a3.9806 3.9806 0 007.7158 0H29a1 1 0 001-1V20.875A1 1 0 0029.3379 19.9336zM9 28a2 2 0 112-2A2.0027 2.0027 0 019 28zm14 0a2 2 0 112-2A2.0025 2.0025 0 0123 28zm5-3H26.8579a3.9806 3.9806 0 00-7.7158 0H12.8579a3.9806 3.9806 0 00-7.7158 0H4V20.1074A2.9977 2.9977 0 014.52 18.4189l2.711-3.9814A.9992.9992 0 018.0576 14h7.9961a.9928.9928 0 01.7647.3545l3.3994 4.2685a1.0007 1.0007 0 00.4443.3184L28 21.5781zM28 2H24a2.0023 2.0023 0 00-2 2v8a2.0023 2.0023 0 002 2h4a2.0023 2.0023 0 002-2V4A2.0023 2.0023 0 0028 2zm0 2V6H24V4zm-4 8V8h4v4z\"\n })), children);\n});\nvar MobilityServices20 = /*#__PURE__*/React.forwardRef(function MobilityServices20(_ref214, ref) {\n var children = _ref214.children,\n rest = _objectWithoutProperties(_ref214, _excluded214);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path367 || (_path367 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.3379 19.9336l-7.7324-2.7783L18.374 13.0967A2.99 2.99 0 0016.0537 12H8.0576a2.9982 2.9982 0 00-2.48 1.3115L2.8662 17.2949A4.9884 4.9884 0 002 20.1074V26a1 1 0 001 1H5.1421a3.9806 3.9806 0 007.7158 0h6.2842a3.9806 3.9806 0 007.7158 0H29a1 1 0 001-1V20.875A1 1 0 0029.3379 19.9336zM9 28a2 2 0 112-2A2.0027 2.0027 0 019 28zm14 0a2 2 0 112-2A2.0025 2.0025 0 0123 28zm5-3H26.8579a3.9806 3.9806 0 00-7.7158 0H12.8579a3.9806 3.9806 0 00-7.7158 0H4V20.1074A2.9977 2.9977 0 014.52 18.4189l2.711-3.9814A.9992.9992 0 018.0576 14h7.9961a.9928.9928 0 01.7647.3545l3.3994 4.2685a1.0007 1.0007 0 00.4443.3184L28 21.5781zM28 2H24a2.0023 2.0023 0 00-2 2v8a2.0023 2.0023 0 002 2h4a2.0023 2.0023 0 002-2V4A2.0023 2.0023 0 0028 2zm0 2V6H24V4zm-4 8V8h4v4z\"\n })), children);\n});\nvar MobilityServices16 = /*#__PURE__*/React.forwardRef(function MobilityServices16(_ref215, ref) {\n var children = _ref215.children,\n rest = _objectWithoutProperties(_ref215, _excluded215);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path368 || (_path368 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.3379 19.9336l-7.7324-2.7783L18.374 13.0967A2.99 2.99 0 0016.0537 12H8.0576a2.9982 2.9982 0 00-2.48 1.3115L2.8662 17.2949A4.9884 4.9884 0 002 20.1074V26a1 1 0 001 1H5.1421a3.9806 3.9806 0 007.7158 0h6.2842a3.9806 3.9806 0 007.7158 0H29a1 1 0 001-1V20.875A1 1 0 0029.3379 19.9336zM9 28a2 2 0 112-2A2.0027 2.0027 0 019 28zm14 0a2 2 0 112-2A2.0025 2.0025 0 0123 28zm5-3H26.8579a3.9806 3.9806 0 00-7.7158 0H12.8579a3.9806 3.9806 0 00-7.7158 0H4V20.1074A2.9977 2.9977 0 014.52 18.4189l2.711-3.9814A.9992.9992 0 018.0576 14h7.9961a.9928.9928 0 01.7647.3545l3.3994 4.2685a1.0007 1.0007 0 00.4443.3184L28 21.5781zM28 2H24a2.0023 2.0023 0 00-2 2v8a2.0023 2.0023 0 002 2h4a2.0023 2.0023 0 002-2V4A2.0023 2.0023 0 0028 2zm0 2V6H24V4zm-4 8V8h4v4z\"\n })), children);\n});\nvar Model32 = /*#__PURE__*/React.forwardRef(function Model32(_ref216, ref) {\n var children = _ref216.children,\n rest = _objectWithoutProperties(_ref216, _excluded216);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path369 || (_path369 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5,4H8.5L1.7158,13.0454,16,29.5269,30.2842,13.0454ZM27,12H21.5543l-3.75-6H22.5ZM10.3021,14l3.7536,10.23L5.19,14Zm2.13,0H19.568l-3.569,9.7212Zm.3725-2L16,6.8867,19.1957,12Zm8.8935,2H26.81L17.9427,24.2314ZM9.5,6h4.6957l-3.75,6H5Z\"\n })), children);\n});\nvar Model24 = /*#__PURE__*/React.forwardRef(function Model24(_ref217, ref) {\n var children = _ref217.children,\n rest = _objectWithoutProperties(_ref217, _excluded217);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path370 || (_path370 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5,4H8.5L1.7158,13.0454,16,29.5269,30.2842,13.0454ZM27,12H21.5543l-3.75-6H22.5ZM10.3021,14l3.7536,10.23L5.19,14Zm2.13,0H19.568l-3.569,9.7212Zm.3725-2L16,6.8867,19.1957,12Zm8.8935,2H26.81L17.9427,24.2314ZM9.5,6h4.6957l-3.75,6H5Z\"\n })), children);\n});\nvar Model20 = /*#__PURE__*/React.forwardRef(function Model20(_ref218, ref) {\n var children = _ref218.children,\n rest = _objectWithoutProperties(_ref218, _excluded218);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path371 || (_path371 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5,4H8.5L1.7158,13.0454,16,29.5269,30.2842,13.0454ZM27,12H21.5543l-3.75-6H22.5ZM10.3021,14l3.7536,10.23L5.19,14Zm2.13,0H19.568l-3.569,9.7212Zm.3725-2L16,6.8867,19.1957,12Zm8.8935,2H26.81L17.9427,24.2314ZM9.5,6h4.6957l-3.75,6H5Z\"\n })), children);\n});\nvar Model16 = /*#__PURE__*/React.forwardRef(function Model16(_ref219, ref) {\n var children = _ref219.children,\n rest = _objectWithoutProperties(_ref219, _excluded219);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path372 || (_path372 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5,4H8.5L1.7158,13.0454,16,29.5269,30.2842,13.0454ZM27,12H21.5543l-3.75-6H22.5ZM10.3021,14l3.7536,10.23L5.19,14Zm2.13,0H19.568l-3.569,9.7212Zm.3725-2L16,6.8867,19.1957,12Zm8.8935,2H26.81L17.9427,24.2314ZM9.5,6h4.6957l-3.75,6H5Z\"\n })), children);\n});\nvar ModelAlt32 = /*#__PURE__*/React.forwardRef(function ModelAlt32(_ref220, ref) {\n var children = _ref220.children,\n rest = _objectWithoutProperties(_ref220, _excluded220);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path373 || (_path373 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.4473,16.1055,23,13.3818V7a1,1,0,0,0-.5527-.8945l-6-3a1.0008,1.0008,0,0,0-.8946,0l-6,3A1,1,0,0,0,9,7v6.3818L3.5527,16.1055A1,1,0,0,0,3,17v7a1,1,0,0,0,.5527.8945l6,3a1.001,1.001,0,0,0,.8946,0L16,25.1182l5.5527,2.7763a1.001,1.001,0,0,0,.8946,0l6-3A1,1,0,0,0,29,24V17A1,1,0,0,0,28.4473,16.1055ZM21,13.3818l-4,2V10.6182l4-2ZM16,5.1182,19.7637,7,16,8.8818,12.2363,7Zm-5,3.5,4,2v4.7636l-4-2ZM9,25.3818l-4-2V18.6182l4,2Zm1-6.5L6.2363,17,10,15.1182,13.7637,17Zm1,1.7364,4-2v4.7636l-4,2Zm10,4.7636-4-2V18.6182l4,2Zm1-6.5L18.2363,17,22,15.1182,25.7637,17Zm5,4.5-4,2V20.6182l4-2Z\"\n })), children);\n});\nvar ModelAlt24 = /*#__PURE__*/React.forwardRef(function ModelAlt24(_ref221, ref) {\n var children = _ref221.children,\n rest = _objectWithoutProperties(_ref221, _excluded221);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path374 || (_path374 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.4473,16.1055,23,13.3818V7a1,1,0,0,0-.5527-.8945l-6-3a1.0008,1.0008,0,0,0-.8946,0l-6,3A1,1,0,0,0,9,7v6.3818L3.5527,16.1055A1,1,0,0,0,3,17v7a1,1,0,0,0,.5527.8945l6,3a1.001,1.001,0,0,0,.8946,0L16,25.1182l5.5527,2.7763a1.001,1.001,0,0,0,.8946,0l6-3A1,1,0,0,0,29,24V17A1,1,0,0,0,28.4473,16.1055ZM21,13.3818l-4,2V10.6182l4-2ZM16,5.1182,19.7637,7,16,8.8818,12.2363,7Zm-5,3.5,4,2v4.7636l-4-2ZM9,25.3818l-4-2V18.6182l4,2Zm1-6.5L6.2363,17,10,15.1182,13.7637,17Zm1,1.7364,4-2v4.7636l-4,2Zm10,4.7636-4-2V18.6182l4,2Zm1-6.5L18.2363,17,22,15.1182,25.7637,17Zm5,4.5-4,2V20.6182l4-2Z\"\n })), children);\n});\nvar ModelAlt20 = /*#__PURE__*/React.forwardRef(function ModelAlt20(_ref222, ref) {\n var children = _ref222.children,\n rest = _objectWithoutProperties(_ref222, _excluded222);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path375 || (_path375 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.4473,16.1055,23,13.3818V7a1,1,0,0,0-.5527-.8945l-6-3a1.0008,1.0008,0,0,0-.8946,0l-6,3A1,1,0,0,0,9,7v6.3818L3.5527,16.1055A1,1,0,0,0,3,17v7a1,1,0,0,0,.5527.8945l6,3a1.001,1.001,0,0,0,.8946,0L16,25.1182l5.5527,2.7763a1.001,1.001,0,0,0,.8946,0l6-3A1,1,0,0,0,29,24V17A1,1,0,0,0,28.4473,16.1055ZM21,13.3818l-4,2V10.6182l4-2ZM16,5.1182,19.7637,7,16,8.8818,12.2363,7Zm-5,3.5,4,2v4.7636l-4-2ZM9,25.3818l-4-2V18.6182l4,2Zm1-6.5L6.2363,17,10,15.1182,13.7637,17Zm1,1.7364,4-2v4.7636l-4,2Zm10,4.7636-4-2V18.6182l4,2Zm1-6.5L18.2363,17,22,15.1182,25.7637,17Zm5,4.5-4,2V20.6182l4-2Z\"\n })), children);\n});\nvar ModelAlt16 = /*#__PURE__*/React.forwardRef(function ModelAlt16(_ref223, ref) {\n var children = _ref223.children,\n rest = _objectWithoutProperties(_ref223, _excluded223);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path376 || (_path376 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.4473,16.1055,23,13.3818V7a1,1,0,0,0-.5527-.8945l-6-3a1.0008,1.0008,0,0,0-.8946,0l-6,3A1,1,0,0,0,9,7v6.3818L3.5527,16.1055A1,1,0,0,0,3,17v7a1,1,0,0,0,.5527.8945l6,3a1.001,1.001,0,0,0,.8946,0L16,25.1182l5.5527,2.7763a1.001,1.001,0,0,0,.8946,0l6-3A1,1,0,0,0,29,24V17A1,1,0,0,0,28.4473,16.1055ZM21,13.3818l-4,2V10.6182l4-2ZM16,5.1182,19.7637,7,16,8.8818,12.2363,7Zm-5,3.5,4,2v4.7636l-4-2ZM9,25.3818l-4-2V18.6182l4,2Zm1-6.5L6.2363,17,10,15.1182,13.7637,17Zm1,1.7364,4-2v4.7636l-4,2Zm10,4.7636-4-2V18.6182l4,2Zm1-6.5L18.2363,17,22,15.1182,25.7637,17Zm5,4.5-4,2V20.6182l4-2Z\"\n })), children);\n});\nvar ModelReference32 = /*#__PURE__*/React.forwardRef(function ModelReference32(_ref224, ref) {\n var children = _ref224.children,\n rest = _objectWithoutProperties(_ref224, _excluded224);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path377 || (_path377 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 20L4 22 8.586 22 2 28.586 3.414 30 10 23.414 10 28 12 28 12 20 4 20z\"\n })), _path378 || (_path378 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5,4H8.5L1.7158,13.0454,6.01,18l1.5114-1.31L5.19,14h5.2554L16,22.8867,21.5544,14H26.81L15.8125,26.6919,17.3242,28l12.96-14.9546ZM5,12,9.5,6h4.6958l-3.75,6ZM16,6.8867,19.1958,12H12.8042Zm0,12.2266L12.8044,14h6.3912ZM21.5542,12l-3.75-6H22.5L27,12Z\"\n })), children);\n});\nvar ModelReference24 = /*#__PURE__*/React.forwardRef(function ModelReference24(_ref225, ref) {\n var children = _ref225.children,\n rest = _objectWithoutProperties(_ref225, _excluded225);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path379 || (_path379 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 20L4 22 8.586 22 2 28.586 3.414 30 10 23.414 10 28 12 28 12 20 4 20z\"\n })), _path380 || (_path380 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5,4H8.5L1.7158,13.0454,6.01,18l1.5114-1.31L5.19,14h5.2554L16,22.8867,21.5544,14H26.81L15.8125,26.6919,17.3242,28l12.96-14.9546ZM5,12,9.5,6h4.6958l-3.75,6ZM16,6.8867,19.1958,12H12.8042Zm0,12.2266L12.8044,14h6.3912ZM21.5542,12l-3.75-6H22.5L27,12Z\"\n })), children);\n});\nvar ModelReference20 = /*#__PURE__*/React.forwardRef(function ModelReference20(_ref226, ref) {\n var children = _ref226.children,\n rest = _objectWithoutProperties(_ref226, _excluded226);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path381 || (_path381 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 20L4 22 8.586 22 2 28.586 3.414 30 10 23.414 10 28 12 28 12 20 4 20z\"\n })), _path382 || (_path382 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5,4H8.5L1.7158,13.0454,6.01,18l1.5114-1.31L5.19,14h5.2554L16,22.8867,21.5544,14H26.81L15.8125,26.6919,17.3242,28l12.96-14.9546ZM5,12,9.5,6h4.6958l-3.75,6ZM16,6.8867,19.1958,12H12.8042Zm0,12.2266L12.8044,14h6.3912ZM21.5542,12l-3.75-6H22.5L27,12Z\"\n })), children);\n});\nvar ModelReference16 = /*#__PURE__*/React.forwardRef(function ModelReference16(_ref227, ref) {\n var children = _ref227.children,\n rest = _objectWithoutProperties(_ref227, _excluded227);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path383 || (_path383 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 20L4 22 8.586 22 2 28.586 3.414 30 10 23.414 10 28 12 28 12 20 4 20z\"\n })), _path384 || (_path384 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5,4H8.5L1.7158,13.0454,6.01,18l1.5114-1.31L5.19,14h5.2554L16,22.8867,21.5544,14H26.81L15.8125,26.6919,17.3242,28l12.96-14.9546ZM5,12,9.5,6h4.6958l-3.75,6ZM16,6.8867,19.1958,12H12.8042Zm0,12.2266L12.8044,14h6.3912ZM21.5542,12l-3.75-6H22.5L27,12Z\"\n })), children);\n});\nvar ModelBuilder32 = /*#__PURE__*/React.forwardRef(function ModelBuilder32(_ref228, ref) {\n var children = _ref228.children,\n rest = _objectWithoutProperties(_ref228, _excluded228);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path385 || (_path385 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,4V7H10V4H2v8h8V9h7.0234A4.9463,4.9463,0,0,0,16,12v8A3.0037,3.0037,0,0,1,13,23H10V20H2v8h8V25H13A5.0062,5.0062,0,0,0,18,20V12a2.9982,2.9982,0,0,1,2.9971-3H22v3h8V4ZM8,10H4V6H8ZM8,26H4V22H8ZM28,10H24V6h4Z\"\n })), children);\n});\nvar ModelBuilder24 = /*#__PURE__*/React.forwardRef(function ModelBuilder24(_ref229, ref) {\n var children = _ref229.children,\n rest = _objectWithoutProperties(_ref229, _excluded229);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path386 || (_path386 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,4V7H10V4H2v8h8V9h7.0234A4.9463,4.9463,0,0,0,16,12v8A3.0037,3.0037,0,0,1,13,23H10V20H2v8h8V25H13A5.0062,5.0062,0,0,0,18,20V12a2.9982,2.9982,0,0,1,2.9971-3H22v3h8V4ZM8,10H4V6H8ZM8,26H4V22H8ZM28,10H24V6h4Z\"\n })), children);\n});\nvar ModelBuilder20 = /*#__PURE__*/React.forwardRef(function ModelBuilder20(_ref230, ref) {\n var children = _ref230.children,\n rest = _objectWithoutProperties(_ref230, _excluded230);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path387 || (_path387 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,4V7H10V4H2v8h8V9h7.0234A4.9463,4.9463,0,0,0,16,12v8A3.0037,3.0037,0,0,1,13,23H10V20H2v8h8V25H13A5.0062,5.0062,0,0,0,18,20V12a2.9982,2.9982,0,0,1,2.9971-3H22v3h8V4ZM8,10H4V6H8ZM8,26H4V22H8ZM28,10H24V6h4Z\"\n })), children);\n});\nvar ModelBuilder16 = /*#__PURE__*/React.forwardRef(function ModelBuilder16(_ref231, ref) {\n var children = _ref231.children,\n rest = _objectWithoutProperties(_ref231, _excluded231);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path388 || (_path388 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,4V7H10V4H2v8h8V9h7.0234A4.9463,4.9463,0,0,0,16,12v8A3.0037,3.0037,0,0,1,13,23H10V20H2v8h8V25H13A5.0062,5.0062,0,0,0,18,20V12a2.9982,2.9982,0,0,1,2.9971-3H22v3h8V4ZM8,10H4V6H8ZM8,26H4V22H8ZM28,10H24V6h4Z\"\n })), children);\n});\nvar ModelBuilderReference32 = /*#__PURE__*/React.forwardRef(function ModelBuilderReference32(_ref232, ref) {\n var children = _ref232.children,\n rest = _objectWithoutProperties(_ref232, _excluded232);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path389 || (_path389 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 20L4 22 8.586 22 2 28.586 3.414 30 10 23.414 10 28 12 28 12 20 4 20z\"\n })), _path390 || (_path390 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,4V7H10V4H2v8h8V9h7.0234A4.9463,4.9463,0,0,0,16,12V28h2V12a2.9982,2.9982,0,0,1,2.9971-3H22v3h8V4ZM8,10H4V6H8Zm20,0H24V6h4Z\"\n })), children);\n});\nvar ModelBuilderReference24 = /*#__PURE__*/React.forwardRef(function ModelBuilderReference24(_ref233, ref) {\n var children = _ref233.children,\n rest = _objectWithoutProperties(_ref233, _excluded233);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path391 || (_path391 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 20L4 22 8.586 22 2 28.586 3.414 30 10 23.414 10 28 12 28 12 20 4 20z\"\n })), _path392 || (_path392 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,4V7H10V4H2v8h8V9h7.0234A4.9463,4.9463,0,0,0,16,12V28h2V12a2.9982,2.9982,0,0,1,2.9971-3H22v3h8V4ZM8,10H4V6H8Zm20,0H24V6h4Z\"\n })), children);\n});\nvar ModelBuilderReference20 = /*#__PURE__*/React.forwardRef(function ModelBuilderReference20(_ref234, ref) {\n var children = _ref234.children,\n rest = _objectWithoutProperties(_ref234, _excluded234);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path393 || (_path393 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 20L4 22 8.586 22 2 28.586 3.414 30 10 23.414 10 28 12 28 12 20 4 20z\"\n })), _path394 || (_path394 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,4V7H10V4H2v8h8V9h7.0234A4.9463,4.9463,0,0,0,16,12V28h2V12a2.9982,2.9982,0,0,1,2.9971-3H22v3h8V4ZM8,10H4V6H8Zm20,0H24V6h4Z\"\n })), children);\n});\nvar ModelBuilderReference16 = /*#__PURE__*/React.forwardRef(function ModelBuilderReference16(_ref235, ref) {\n var children = _ref235.children,\n rest = _objectWithoutProperties(_ref235, _excluded235);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path395 || (_path395 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 20L4 22 8.586 22 2 28.586 3.414 30 10 23.414 10 28 12 28 12 20 4 20z\"\n })), _path396 || (_path396 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,4V7H10V4H2v8h8V9h7.0234A4.9463,4.9463,0,0,0,16,12V28h2V12a2.9982,2.9982,0,0,1,2.9971-3H22v3h8V4ZM8,10H4V6H8Zm20,0H24V6h4Z\"\n })), children);\n});\nvar Money32 = /*#__PURE__*/React.forwardRef(function Money32(_ref236, ref) {\n var children = _ref236.children,\n rest = _objectWithoutProperties(_ref236, _excluded236);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path397 || (_path397 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 22H30V24H2zM2 26H30V28H2zM24 10a2 2 0 102 2 2 2 0 00-2-2zM16 16a4 4 0 114-4A4.0045 4.0045 0 0116 16zm0-6a2 2 0 102 2A2.002 2.002 0 0016 10zM8 10a2 2 0 102 2 2 2 0 00-2-2z\"\n })), _path398 || (_path398 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,20H4a2.0051,2.0051,0,0,1-2-2V6A2.0051,2.0051,0,0,1,4,4H28a2.0051,2.0051,0,0,1,2,2V18A2.0027,2.0027,0,0,1,28,20ZM28,6H4V18H28Z\"\n })), children);\n});\nvar Money24 = /*#__PURE__*/React.forwardRef(function Money24(_ref237, ref) {\n var children = _ref237.children,\n rest = _objectWithoutProperties(_ref237, _excluded237);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path399 || (_path399 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 22H30V24H2zM2 26H30V28H2zM24 10a2 2 0 102 2 2 2 0 00-2-2zM16 16a4 4 0 114-4A4.0045 4.0045 0 0116 16zm0-6a2 2 0 102 2A2.002 2.002 0 0016 10zM8 10a2 2 0 102 2 2 2 0 00-2-2z\"\n })), _path400 || (_path400 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,20H4a2.0051,2.0051,0,0,1-2-2V6A2.0051,2.0051,0,0,1,4,4H28a2.0051,2.0051,0,0,1,2,2V18A2.0027,2.0027,0,0,1,28,20ZM28,6H4V18H28Z\"\n })), children);\n});\nvar Money20 = /*#__PURE__*/React.forwardRef(function Money20(_ref238, ref) {\n var children = _ref238.children,\n rest = _objectWithoutProperties(_ref238, _excluded238);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path401 || (_path401 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 22H30V24H2zM2 26H30V28H2zM24 10a2 2 0 102 2 2 2 0 00-2-2zM16 16a4 4 0 114-4A4.0045 4.0045 0 0116 16zm0-6a2 2 0 102 2A2.002 2.002 0 0016 10zM8 10a2 2 0 102 2 2 2 0 00-2-2z\"\n })), _path402 || (_path402 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,20H4a2.0051,2.0051,0,0,1-2-2V6A2.0051,2.0051,0,0,1,4,4H28a2.0051,2.0051,0,0,1,2,2V18A2.0027,2.0027,0,0,1,28,20ZM28,6H4V18H28Z\"\n })), children);\n});\nvar Money16 = /*#__PURE__*/React.forwardRef(function Money16(_ref239, ref) {\n var children = _ref239.children,\n rest = _objectWithoutProperties(_ref239, _excluded239);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path403 || (_path403 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 22H30V24H2zM2 26H30V28H2zM24 10a2 2 0 102 2 2 2 0 00-2-2zM16 16a4 4 0 114-4A4.0045 4.0045 0 0116 16zm0-6a2 2 0 102 2A2.002 2.002 0 0016 10zM8 10a2 2 0 102 2 2 2 0 00-2-2z\"\n })), _path404 || (_path404 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,20H4a2.0051,2.0051,0,0,1-2-2V6A2.0051,2.0051,0,0,1,4,4H28a2.0051,2.0051,0,0,1,2,2V18A2.0027,2.0027,0,0,1,28,20ZM28,6H4V18H28Z\"\n })), children);\n});\nvar Monster32 = /*#__PURE__*/React.forwardRef(function Monster32(_ref240, ref) {\n var children = _ref240.children,\n rest = _objectWithoutProperties(_ref240, _excluded240);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path405 || (_path405 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 22L21 22 21 20 19 20 19 22 17 22 17 20 15 20 15 22 13 22 13 20 11 20 11 22 9 22 9 24 11 24 11 26 13 26 13 24 15 24 15 26 17 26 17 24 19 24 19 26 21 26 21 24 23 24 23 22z\"\n })), _path406 || (_path406 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,11H27V4a2.0025,2.0025,0,0,0-2-2H7A2.0025,2.0025,0,0,0,5,4v7H4a2.0025,2.0025,0,0,0-2,2v4a2.0025,2.0025,0,0,0,2,2H5v4a7.0078,7.0078,0,0,0,7,7h8a7.0078,7.0078,0,0,0,7-7V19h1a2.0025,2.0025,0,0,0,2-2V13A2.0025,2.0025,0,0,0,28,11ZM25,4V7.3818L22.4473,6.1055a1.0008,1.0008,0,0,0-.8946,0L18,7.8818,14.4473,6.1055a1.0008,1.0008,0,0,0-.8946,0L10,7.8818l-3-1.5V4Zm3,13H25v6a5.0057,5.0057,0,0,1-5,5H12a5.0057,5.0057,0,0,1-5-5V17H4V13H7V8.6182L9.5527,9.8945a1.0008,1.0008,0,0,0,.8946,0L14,8.1182l3.5527,1.7763a1.001,1.001,0,0,0,.8946,0L22,8.1182l3,1.5V13h3Z\"\n })), _path407 || (_path407 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 14H14V16H9zM18 14H23V16H18z\"\n })), children);\n});\nvar Monster24 = /*#__PURE__*/React.forwardRef(function Monster24(_ref241, ref) {\n var children = _ref241.children,\n rest = _objectWithoutProperties(_ref241, _excluded241);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path408 || (_path408 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 22L21 22 21 20 19 20 19 22 17 22 17 20 15 20 15 22 13 22 13 20 11 20 11 22 9 22 9 24 11 24 11 26 13 26 13 24 15 24 15 26 17 26 17 24 19 24 19 26 21 26 21 24 23 24 23 22z\"\n })), _path409 || (_path409 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,11H27V4a2.0025,2.0025,0,0,0-2-2H7A2.0025,2.0025,0,0,0,5,4v7H4a2.0025,2.0025,0,0,0-2,2v4a2.0025,2.0025,0,0,0,2,2H5v4a7.0078,7.0078,0,0,0,7,7h8a7.0078,7.0078,0,0,0,7-7V19h1a2.0025,2.0025,0,0,0,2-2V13A2.0025,2.0025,0,0,0,28,11ZM25,4V7.3818L22.4473,6.1055a1.0008,1.0008,0,0,0-.8946,0L18,7.8818,14.4473,6.1055a1.0008,1.0008,0,0,0-.8946,0L10,7.8818l-3-1.5V4Zm3,13H25v6a5.0057,5.0057,0,0,1-5,5H12a5.0057,5.0057,0,0,1-5-5V17H4V13H7V8.6182L9.5527,9.8945a1.0008,1.0008,0,0,0,.8946,0L14,8.1182l3.5527,1.7763a1.001,1.001,0,0,0,.8946,0L22,8.1182l3,1.5V13h3Z\"\n })), _path410 || (_path410 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 14H14V16H9zM18 14H23V16H18z\"\n })), children);\n});\nvar Monster20 = /*#__PURE__*/React.forwardRef(function Monster20(_ref242, ref) {\n var children = _ref242.children,\n rest = _objectWithoutProperties(_ref242, _excluded242);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path411 || (_path411 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 22L21 22 21 20 19 20 19 22 17 22 17 20 15 20 15 22 13 22 13 20 11 20 11 22 9 22 9 24 11 24 11 26 13 26 13 24 15 24 15 26 17 26 17 24 19 24 19 26 21 26 21 24 23 24 23 22z\"\n })), _path412 || (_path412 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,11H27V4a2.0025,2.0025,0,0,0-2-2H7A2.0025,2.0025,0,0,0,5,4v7H4a2.0025,2.0025,0,0,0-2,2v4a2.0025,2.0025,0,0,0,2,2H5v4a7.0078,7.0078,0,0,0,7,7h8a7.0078,7.0078,0,0,0,7-7V19h1a2.0025,2.0025,0,0,0,2-2V13A2.0025,2.0025,0,0,0,28,11ZM25,4V7.3818L22.4473,6.1055a1.0008,1.0008,0,0,0-.8946,0L18,7.8818,14.4473,6.1055a1.0008,1.0008,0,0,0-.8946,0L10,7.8818l-3-1.5V4Zm3,13H25v6a5.0057,5.0057,0,0,1-5,5H12a5.0057,5.0057,0,0,1-5-5V17H4V13H7V8.6182L9.5527,9.8945a1.0008,1.0008,0,0,0,.8946,0L14,8.1182l3.5527,1.7763a1.001,1.001,0,0,0,.8946,0L22,8.1182l3,1.5V13h3Z\"\n })), _path413 || (_path413 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 14H14V16H9zM18 14H23V16H18z\"\n })), children);\n});\nvar Monster16 = /*#__PURE__*/React.forwardRef(function Monster16(_ref243, ref) {\n var children = _ref243.children,\n rest = _objectWithoutProperties(_ref243, _excluded243);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path414 || (_path414 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 22L21 22 21 20 19 20 19 22 17 22 17 20 15 20 15 22 13 22 13 20 11 20 11 22 9 22 9 24 11 24 11 26 13 26 13 24 15 24 15 26 17 26 17 24 19 24 19 26 21 26 21 24 23 24 23 22z\"\n })), _path415 || (_path415 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,11H27V4a2.0025,2.0025,0,0,0-2-2H7A2.0025,2.0025,0,0,0,5,4v7H4a2.0025,2.0025,0,0,0-2,2v4a2.0025,2.0025,0,0,0,2,2H5v4a7.0078,7.0078,0,0,0,7,7h8a7.0078,7.0078,0,0,0,7-7V19h1a2.0025,2.0025,0,0,0,2-2V13A2.0025,2.0025,0,0,0,28,11ZM25,4V7.3818L22.4473,6.1055a1.0008,1.0008,0,0,0-.8946,0L18,7.8818,14.4473,6.1055a1.0008,1.0008,0,0,0-.8946,0L10,7.8818l-3-1.5V4Zm3,13H25v6a5.0057,5.0057,0,0,1-5,5H12a5.0057,5.0057,0,0,1-5-5V17H4V13H7V8.6182L9.5527,9.8945a1.0008,1.0008,0,0,0,.8946,0L14,8.1182l3.5527,1.7763a1.001,1.001,0,0,0,.8946,0L22,8.1182l3,1.5V13h3Z\"\n })), _path416 || (_path416 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 14H14V16H9zM18 14H23V16H18z\"\n })), children);\n});\nvar Monument32 = /*#__PURE__*/React.forwardRef(function Monument32(_ref244, ref) {\n var children = _ref244.children,\n rest = _objectWithoutProperties(_ref244, _excluded244);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path417 || (_path417 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,28V6L16,2,12,6V28H2v2H30V28Zm-6,0V6.8281l2-2,2,2V28Z\"\n })), children);\n});\nvar Monument24 = /*#__PURE__*/React.forwardRef(function Monument24(_ref245, ref) {\n var children = _ref245.children,\n rest = _objectWithoutProperties(_ref245, _excluded245);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path418 || (_path418 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,28V6L16,2,12,6V28H2v2H30V28Zm-6,0V6.8281l2-2,2,2V28Z\"\n })), children);\n});\nvar Monument20 = /*#__PURE__*/React.forwardRef(function Monument20(_ref246, ref) {\n var children = _ref246.children,\n rest = _objectWithoutProperties(_ref246, _excluded246);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path419 || (_path419 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,28V6L16,2,12,6V28H2v2H30V28Zm-6,0V6.8281l2-2,2,2V28Z\"\n })), children);\n});\nvar Monument16 = /*#__PURE__*/React.forwardRef(function Monument16(_ref247, ref) {\n var children = _ref247.children,\n rest = _objectWithoutProperties(_ref247, _excluded247);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path420 || (_path420 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,28V6L16,2,12,6V28H2v2H30V28Zm-6,0V6.8281l2-2,2,2V28Z\"\n })), children);\n});\nvar Moon32 = /*#__PURE__*/React.forwardRef(function Moon32(_ref248, ref) {\n var children = _ref248.children,\n rest = _objectWithoutProperties(_ref248, _excluded248);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path421 || (_path421 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13.5025,5.4136A15.0755,15.0755,0,0,0,25.096,23.6082a11.1134,11.1134,0,0,1-7.9749,3.3893c-.1385,0-.2782.0051-.4178,0A11.0944,11.0944,0,0,1,13.5025,5.4136M14.98,3a1.0024,1.0024,0,0,0-.1746.0156A13.0959,13.0959,0,0,0,16.63,28.9973c.1641.006.3282,0,.4909,0a13.0724,13.0724,0,0,0,10.702-5.5556,1.0094,1.0094,0,0,0-.7833-1.5644A13.08,13.08,0,0,1,15.8892,4.38,1.0149,1.0149,0,0,0,14.98,3Z\"\n })), children);\n});\nvar Moon24 = /*#__PURE__*/React.forwardRef(function Moon24(_ref249, ref) {\n var children = _ref249.children,\n rest = _objectWithoutProperties(_ref249, _excluded249);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path422 || (_path422 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13.5025,5.4136A15.0755,15.0755,0,0,0,25.096,23.6082a11.1134,11.1134,0,0,1-7.9749,3.3893c-.1385,0-.2782.0051-.4178,0A11.0944,11.0944,0,0,1,13.5025,5.4136M14.98,3a1.0024,1.0024,0,0,0-.1746.0156A13.0959,13.0959,0,0,0,16.63,28.9973c.1641.006.3282,0,.4909,0a13.0724,13.0724,0,0,0,10.702-5.5556,1.0094,1.0094,0,0,0-.7833-1.5644A13.08,13.08,0,0,1,15.8892,4.38,1.0149,1.0149,0,0,0,14.98,3Z\"\n })), children);\n});\nvar Moon20 = /*#__PURE__*/React.forwardRef(function Moon20(_ref250, ref) {\n var children = _ref250.children,\n rest = _objectWithoutProperties(_ref250, _excluded250);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path423 || (_path423 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13.5025,5.4136A15.0755,15.0755,0,0,0,25.096,23.6082a11.1134,11.1134,0,0,1-7.9749,3.3893c-.1385,0-.2782.0051-.4178,0A11.0944,11.0944,0,0,1,13.5025,5.4136M14.98,3a1.0024,1.0024,0,0,0-.1746.0156A13.0959,13.0959,0,0,0,16.63,28.9973c.1641.006.3282,0,.4909,0a13.0724,13.0724,0,0,0,10.702-5.5556,1.0094,1.0094,0,0,0-.7833-1.5644A13.08,13.08,0,0,1,15.8892,4.38,1.0149,1.0149,0,0,0,14.98,3Z\"\n })), children);\n});\n\nexport { LogoWechat16, LogoWechat20, LogoXing16, LogoXing20, LogoXing24, LogoXing32, LogoYelp16, LogoYelp20, LogoYelp24, LogoYelp32, LogoYoutube16, LogoYoutube20, LogoYoutube24, LogoYoutube32, Logout16, Logout20, Logout24, Logout32, Loop16, Loop20, Loop24, Loop32, LowSeverityGlyph, MacCommand16, MacCommand20, MacCommand24, MacCommand32, MacOption16, MacOption20, MacOption24, MacOption32, MacShift16, MacShift20, MacShift24, MacShift32, MachineLearning16, MachineLearning20, MachineLearning24, MachineLearning32, MachineLearningModel16, MachineLearningModel20, MachineLearningModel24, MachineLearningModel32, MagicWand16, MagicWand20, MagicWand24, MagicWand32, MagicWandFilled16, MagicWandFilled20, MagicWandFilled24, MagicWandFilled32, MailAll16, MailAll20, MailAll24, MailAll32, MailReply16, MailReply20, MailReply24, MailReply32, MammogramStacked16, MammogramStacked20, MammogramStacked24, MammogramStacked32, ManageProtection16, ManageProtection20, ManageProtection24, ManageProtection32, ManagedSolutions16, ManagedSolutions20, ManagedSolutions24, ManagedSolutions32, Map16, Map20, Map24, Map32, MapBoundary16, MapBoundary20, MapBoundary24, MapBoundary32, MarineWarning16, MarineWarning20, MarineWarning24, MarineWarning32, MathCurve16, MathCurve20, MathCurve24, MathCurve32, Maximize16, Maximize20, Maximize24, Maximize32, MediaLibrary16, MediaLibrary20, MediaLibrary24, MediaLibrary32, Medication16, Medication20, Medication24, Medication32, MedicationAlert16, MedicationAlert20, MedicationAlert24, MedicationAlert32, MedicationReminder16, MedicationReminder20, MedicationReminder24, MedicationReminder32, Menu16, Menu20, Menu24, Menu32, MessageQueue16, MessageQueue20, MessageQueue24, MessageQueue32, Meter16, Meter20, Meter24, Meter32, MeterAlt16, MeterAlt20, MeterAlt24, MeterAlt32, Microphone16, Microphone20, Microphone24, Microphone32, MicrophoneFilled16, MicrophoneFilled20, MicrophoneFilled24, MicrophoneFilled32, MicrophoneOff16, MicrophoneOff20, MicrophoneOff24, MicrophoneOff32, MicrophoneOffFilled16, MicrophoneOffFilled20, MicrophoneOffFilled24, MicrophoneOffFilled32, Microscope16, Microscope20, Microscope24, Microscope32, Migrate16, Migrate20, Migrate24, Migrate32, MigrateAlt16, MigrateAlt20, MigrateAlt24, MigrateAlt32, Milestone16, Milestone20, Milestone24, Milestone32, Minimize16, Minimize20, Minimize24, Minimize32, Misuse16, Misuse20, Misuse24, Misuse32, MisuseAlt16, MisuseAlt20, MisuseAlt24, MisuseAlt32, MisuseOutline16, MisuseOutline20, MisuseOutline24, MisuseOutline32, MixedRainHail16, MixedRainHail20, MixedRainHail24, MixedRainHail32, Mobile16, Mobile20, Mobile24, Mobile32, MobileAdd16, MobileAdd20, MobileAdd24, MobileAdd32, MobileAudio16, MobileAudio20, MobileAudio24, MobileAudio32, MobileCheck16, MobileCheck20, MobileCheck24, MobileCheck32, MobileDownload16, MobileDownload20, MobileDownload24, MobileDownload32, MobileLandscape16, MobileLandscape20, MobileLandscape24, MobileLandscape32, MobilityServices16, MobilityServices20, MobilityServices24, MobilityServices32, Model16, Model20, Model24, Model32, ModelAlt16, ModelAlt20, ModelAlt24, ModelAlt32, ModelBuilder16, ModelBuilder20, ModelBuilder24, ModelBuilder32, ModelBuilderReference16, ModelBuilderReference20, ModelBuilderReference24, ModelBuilderReference32, ModelReference16, ModelReference20, ModelReference24, ModelReference32, Money16, Money20, Money24, Money32, Monster16, Monster20, Monster24, Monster32, Monument16, Monument20, Monument24, Monument32, Moon20, Moon24, Moon32, QMatrix16, QMatrix20, QMatrix24, QMatrix32, WatsonHealthMagnify16, WatsonHealthMagnify20, WatsonHealthMagnify24, WatsonHealthMagnify32, WatsonHealthMammogram16, WatsonHealthMammogram20, WatsonHealthMammogram24, WatsonHealthMammogram32 };\n","/**\n * Copyright IBM Corp. 2019, 2020\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * Code generated by @carbon/icon-build-helpers. DO NOT EDIT.\n */\nimport { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../Icon-a8cbe70a.js';\nimport React from 'react';\nimport '@carbon/icon-helpers';\nimport 'prop-types';\n\nvar _path, _path2, _path3, _path4, _path5, _path6, _path7, _path8, _path9, _path10, _path11, _path12, _path13, _path14, _path15, _path16, _path17, _path18, _path19, _path20, _path21, _path22, _path23, _path24, _path25, _path26, _path27, _path28, _path29, _path30, _path31, _path32, _path33, _path34, _path35, _path36, _path37, _path38, _path39, _path40, _path41, _path42, _path43, _path44, _path45, _path46, _path47, _path48, _path49, _path50, _path51, _path52, _path53, _path54, _path55, _path56, _path57, _path58, _path59, _path60, _path61, _path62, _path63, _path64, _path65, _path66, _path67, _path68, _path69, _path70, _path71, _path72, _path73, _path74, _path75, _path76, _path77, _path78, _path79, _path80, _path81, _path82, _path83, _path84, _path85, _path86, _path87, _path88, _path89, _path90, _path91, _path92, _path93, _path94, _path95, _path96, _path97, _path98, _path99, _path100, _path101, _path102, _path103, _path104, _path105, _path106, _path107, _circle, _path108, _path109, _circle2, _path110, _path111, _circle3, _path112, _path113, _circle4, _path114, _path115, _path116, _path117, _path118, _path119, _path120, _path121, _path122, _circle5, _circle6, _circle7, _circle8, _circle9, _circle10, _circle11, _circle12, _circle13, _path123, _circle14, _circle15, _circle16, _circle17, _circle18, _circle19, _circle20, _circle21, _circle22, _path124, _circle23, _circle24, _circle25, _circle26, _circle27, _circle28, _circle29, _circle30, _circle31, _path125, _circle32, _circle33, _circle34, _circle35, _circle36, _circle37, _circle38, _circle39, _circle40, _path126, _circle41, _circle42, _circle43, _circle44, _circle45, _circle46, _circle47, _circle48, _circle49, _circle50, _circle51, _circle52, _circle53, _circle54, _circle55, _circle56, _circle57, _path127, _circle58, _circle59, _circle60, _circle61, _circle62, _circle63, _circle64, _circle65, _circle66, _circle67, _circle68, _circle69, _circle70, _circle71, _circle72, _circle73, _circle74, _path128, _circle75, _circle76, _circle77, _circle78, _circle79, _circle80, _circle81, _circle82, _circle83, _circle84, _circle85, _circle86, _circle87, _circle88, _circle89, _circle90, _circle91, _path129, _circle92, _circle93, _circle94, _circle95, _circle96, _circle97, _circle98, _circle99, _circle100, _circle101, _circle102, _circle103, _circle104, _circle105, _circle106, _circle107, _circle108, _path130, _path131, _path132, _path133, _path134, _path135, _path136, _path137, _path138, _path139, _path140, _path141, _path142, _path143, _path144, _path145, _circle109, _path146, _circle110, _path147, _circle111, _path148, _circle112, _path149, _path150, _path151, _path152, _path153, _path154, _path155, _path156, _path157, _circle113, _path158, _circle114, _path159, _circle115, _path160, _circle116, _path161, _circle117, _path162, _circle118, _path163, _circle119, _path164, _circle120, _path165, _circle121, _path166, _circle122, _path167, _circle123, _path168, _circle124, _path169, _path170, _path171, _path172, _path173, _path174, _path175, _path176, _path177, _path178, _path179, _path180, _path181, _path182, _path183, _path184, _path185, _path186, _path187, _path188, _path189, _path190, _path191, _path192, _path193, _path194, _path195, _path196, _path197, _circle125, _circle126, _circle127, _path198, _circle128, _circle129, _circle130, _path199, _circle131, _circle132, _circle133, _path200, _circle134, _circle135, _circle136, _path201, _path202, _path203, _path204, _path205, _path206, _path207, _path208, _path209, _path210, _path211, _path212, _path213, _path214, _path215, _path216, _path217, _path218, _path219, _path220, _path221, _path222, _path223, _path224, _path225, _path226, _path227, _path228, _path229, _path230, _path231, _path232, _path233, _path234, _path235, _path236, _path237, _path238, _path239, _path240, _path241, _path242, _path243, _path244, _path245, _path246, _path247, _path248, _path249, _path250, _path251, _path252, _path253, _path254, _path255, _path256, _path257, _path258, _path259, _path260, _path261, _path262, _path263, _path264, _path265, _path266, _path267, _path268, _path269, _path270, _path271, _path272, _path273, _path274, _path275, _path276, _path277, _path278, _path279, _path280, _path281, _path282, _path283, _path284, _path285, _path286, _path287, _path288, _path289, _path290, _path291, _path292, _path293, _path294, _path295, _path296, _path297, _path298, _path299, _path300, _path301, _path302, _path303, _path304, _path305, _path306, _path307, _path308, _path309, _path310, _path311, _path312, _path313, _path314, _path315, _path316, _path317, _path318, _path319, _path320, _path321, _path322, _path323, _path324, _path325, _path326, _path327, _path328, _path329, _circle137, _path330, _circle138, _path331, _circle139, _path332, _circle140, _path333, _path334, _path335, _path336, _path337, _path338, _path339, _path340, _path341, _path342, _path343, _path344, _path345, _path346, _path347, _path348, _path349, _path350, _path351, _path352, _path353, _path354, _path355, _path356, _path357, _path358, _path359, _path360, _path361, _path362, _path363, _path364, _path365;\n\nvar _excluded = [\"children\"],\n _excluded2 = [\"children\"],\n _excluded3 = [\"children\"],\n _excluded4 = [\"children\"],\n _excluded5 = [\"children\"],\n _excluded6 = [\"children\"],\n _excluded7 = [\"children\"],\n _excluded8 = [\"children\"],\n _excluded9 = [\"children\"],\n _excluded10 = [\"children\"],\n _excluded11 = [\"children\"],\n _excluded12 = [\"children\"],\n _excluded13 = [\"children\"],\n _excluded14 = [\"children\"],\n _excluded15 = [\"children\"],\n _excluded16 = [\"children\"],\n _excluded17 = [\"children\"],\n _excluded18 = [\"children\"],\n _excluded19 = [\"children\"],\n _excluded20 = [\"children\"],\n _excluded21 = [\"children\"],\n _excluded22 = [\"children\"],\n _excluded23 = [\"children\"],\n _excluded24 = [\"children\"],\n _excluded25 = [\"children\"],\n _excluded26 = [\"children\"],\n _excluded27 = [\"children\"],\n _excluded28 = [\"children\"],\n _excluded29 = [\"children\"],\n _excluded30 = [\"children\"],\n _excluded31 = [\"children\"],\n _excluded32 = [\"children\"],\n _excluded33 = [\"children\"],\n _excluded34 = [\"children\"],\n _excluded35 = [\"children\"],\n _excluded36 = [\"children\"],\n _excluded37 = [\"children\"],\n _excluded38 = [\"children\"],\n _excluded39 = [\"children\"],\n _excluded40 = [\"children\"],\n _excluded41 = [\"children\"],\n _excluded42 = [\"children\"],\n _excluded43 = [\"children\"],\n _excluded44 = [\"children\"],\n _excluded45 = [\"children\"],\n _excluded46 = [\"children\"],\n _excluded47 = [\"children\"],\n _excluded48 = [\"children\"],\n _excluded49 = [\"children\"],\n _excluded50 = [\"children\"],\n _excluded51 = [\"children\"],\n _excluded52 = [\"children\"],\n _excluded53 = [\"children\"],\n _excluded54 = [\"children\"],\n _excluded55 = [\"children\"],\n _excluded56 = [\"children\"],\n _excluded57 = [\"children\"],\n _excluded58 = [\"children\"],\n _excluded59 = [\"children\"],\n _excluded60 = [\"children\"],\n _excluded61 = [\"children\"],\n _excluded62 = [\"children\"],\n _excluded63 = [\"children\"],\n _excluded64 = [\"children\"],\n _excluded65 = [\"children\"],\n _excluded66 = [\"children\"],\n _excluded67 = [\"children\"],\n _excluded68 = [\"children\"],\n _excluded69 = [\"children\"],\n _excluded70 = [\"children\"],\n _excluded71 = [\"children\"],\n _excluded72 = [\"children\"],\n _excluded73 = [\"children\"],\n _excluded74 = [\"children\"],\n _excluded75 = [\"children\"],\n _excluded76 = [\"children\"],\n _excluded77 = [\"children\"],\n _excluded78 = [\"children\"],\n _excluded79 = [\"children\"],\n _excluded80 = [\"children\"],\n _excluded81 = [\"children\"],\n _excluded82 = [\"children\"],\n _excluded83 = [\"children\"],\n _excluded84 = [\"children\"],\n _excluded85 = [\"children\"],\n _excluded86 = [\"children\"],\n _excluded87 = [\"children\"],\n _excluded88 = [\"children\"],\n _excluded89 = [\"children\"],\n _excluded90 = [\"children\"],\n _excluded91 = [\"children\"],\n _excluded92 = [\"children\"],\n _excluded93 = [\"children\"],\n _excluded94 = [\"children\"],\n _excluded95 = [\"children\"],\n _excluded96 = [\"children\"],\n _excluded97 = [\"children\"],\n _excluded98 = [\"children\"],\n _excluded99 = [\"children\"],\n _excluded100 = [\"children\"],\n _excluded101 = [\"children\"],\n _excluded102 = [\"children\"],\n _excluded103 = [\"children\"],\n _excluded104 = [\"children\"],\n _excluded105 = [\"children\"],\n _excluded106 = [\"children\"],\n _excluded107 = [\"children\"],\n _excluded108 = [\"children\"],\n _excluded109 = [\"children\"],\n _excluded110 = [\"children\"],\n _excluded111 = [\"children\"],\n _excluded112 = [\"children\"],\n _excluded113 = [\"children\"],\n _excluded114 = [\"children\"],\n _excluded115 = [\"children\"],\n _excluded116 = [\"children\"],\n _excluded117 = [\"children\"],\n _excluded118 = [\"children\"],\n _excluded119 = [\"children\"],\n _excluded120 = [\"children\"],\n _excluded121 = [\"children\"],\n _excluded122 = [\"children\"],\n _excluded123 = [\"children\"],\n _excluded124 = [\"children\"],\n _excluded125 = [\"children\"],\n _excluded126 = [\"children\"],\n _excluded127 = [\"children\"],\n _excluded128 = [\"children\"],\n _excluded129 = [\"children\"],\n _excluded130 = [\"children\"],\n _excluded131 = [\"children\"],\n _excluded132 = [\"children\"],\n _excluded133 = [\"children\"],\n _excluded134 = [\"children\"],\n _excluded135 = [\"children\"],\n _excluded136 = [\"children\"],\n _excluded137 = [\"children\"],\n _excluded138 = [\"children\"],\n _excluded139 = [\"children\"],\n _excluded140 = [\"children\"],\n _excluded141 = [\"children\"],\n _excluded142 = [\"children\"],\n _excluded143 = [\"children\"],\n _excluded144 = [\"children\"],\n _excluded145 = [\"children\"],\n _excluded146 = [\"children\"],\n _excluded147 = [\"children\"],\n _excluded148 = [\"children\"],\n _excluded149 = [\"children\"],\n _excluded150 = [\"children\"],\n _excluded151 = [\"children\"],\n _excluded152 = [\"children\"],\n _excluded153 = [\"children\"],\n _excluded154 = [\"children\"],\n _excluded155 = [\"children\"],\n _excluded156 = [\"children\"],\n _excluded157 = [\"children\"],\n _excluded158 = [\"children\"],\n _excluded159 = [\"children\"],\n _excluded160 = [\"children\"],\n _excluded161 = [\"children\"],\n _excluded162 = [\"children\"],\n _excluded163 = [\"children\"],\n _excluded164 = [\"children\"],\n _excluded165 = [\"children\"],\n _excluded166 = [\"children\"],\n _excluded167 = [\"children\"],\n _excluded168 = [\"children\"],\n _excluded169 = [\"children\"],\n _excluded170 = [\"children\"],\n _excluded171 = [\"children\"],\n _excluded172 = [\"children\"],\n _excluded173 = [\"children\"],\n _excluded174 = [\"children\"],\n _excluded175 = [\"children\"],\n _excluded176 = [\"children\"],\n _excluded177 = [\"children\"],\n _excluded178 = [\"children\"],\n _excluded179 = [\"children\"],\n _excluded180 = [\"children\"],\n _excluded181 = [\"children\"],\n _excluded182 = [\"children\"],\n _excluded183 = [\"children\"],\n _excluded184 = [\"children\"],\n _excluded185 = [\"children\"],\n _excluded186 = [\"children\"],\n _excluded187 = [\"children\"],\n _excluded188 = [\"children\"],\n _excluded189 = [\"children\"],\n _excluded190 = [\"children\"],\n _excluded191 = [\"children\"],\n _excluded192 = [\"children\"],\n _excluded193 = [\"children\"],\n _excluded194 = [\"children\"],\n _excluded195 = [\"children\"],\n _excluded196 = [\"children\"],\n _excluded197 = [\"children\"],\n _excluded198 = [\"children\"],\n _excluded199 = [\"children\"],\n _excluded200 = [\"children\"],\n _excluded201 = [\"children\"],\n _excluded202 = [\"children\"],\n _excluded203 = [\"children\"],\n _excluded204 = [\"children\"],\n _excluded205 = [\"children\"],\n _excluded206 = [\"children\"],\n _excluded207 = [\"children\"],\n _excluded208 = [\"children\"],\n _excluded209 = [\"children\"],\n _excluded210 = [\"children\"],\n _excluded211 = [\"children\"],\n _excluded212 = [\"children\"],\n _excluded213 = [\"children\"],\n _excluded214 = [\"children\"],\n _excluded215 = [\"children\"],\n _excluded216 = [\"children\"],\n _excluded217 = [\"children\"],\n _excluded218 = [\"children\"],\n _excluded219 = [\"children\"],\n _excluded220 = [\"children\"],\n _excluded221 = [\"children\"],\n _excluded222 = [\"children\"],\n _excluded223 = [\"children\"],\n _excluded224 = [\"children\"],\n _excluded225 = [\"children\"],\n _excluded226 = [\"children\"],\n _excluded227 = [\"children\"],\n _excluded228 = [\"children\"],\n _excluded229 = [\"children\"],\n _excluded230 = [\"children\"],\n _excluded231 = [\"children\"],\n _excluded232 = [\"children\"],\n _excluded233 = [\"children\"],\n _excluded234 = [\"children\"],\n _excluded235 = [\"children\"],\n _excluded236 = [\"children\"],\n _excluded237 = [\"children\"],\n _excluded238 = [\"children\"],\n _excluded239 = [\"children\"],\n _excluded240 = [\"children\"],\n _excluded241 = [\"children\"],\n _excluded242 = [\"children\"],\n _excluded243 = [\"children\"],\n _excluded244 = [\"children\"],\n _excluded245 = [\"children\"],\n _excluded246 = [\"children\"],\n _excluded247 = [\"children\"],\n _excluded248 = [\"children\"],\n _excluded249 = [\"children\"],\n _excluded250 = [\"children\"];\nvar Moon16 = /*#__PURE__*/React.forwardRef(function Moon16(_ref, ref) {\n var children = _ref.children,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13.5025,5.4136A15.0755,15.0755,0,0,0,25.096,23.6082a11.1134,11.1134,0,0,1-7.9749,3.3893c-.1385,0-.2782.0051-.4178,0A11.0944,11.0944,0,0,1,13.5025,5.4136M14.98,3a1.0024,1.0024,0,0,0-.1746.0156A13.0959,13.0959,0,0,0,16.63,28.9973c.1641.006.3282,0,.4909,0a13.0724,13.0724,0,0,0,10.702-5.5556,1.0094,1.0094,0,0,0-.7833-1.5644A13.08,13.08,0,0,1,15.8892,4.38,1.0149,1.0149,0,0,0,14.98,3Z\"\n })), children);\n});\nvar Moonrise32 = /*#__PURE__*/React.forwardRef(function Moonrise32(_ref2, ref) {\n var children = _ref2.children,\n rest = _objectWithoutProperties(_ref2, _excluded2);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 28H30V30H2zM26 26H24a7.987 7.987 0 00-2.0371-5.3335l1.49-1.334A9.9835 9.9835 0 0126 26zM16 26H14a9.9268 9.9268 0 013.7539-7.804A7.89 7.89 0 0016 18a8.0092 8.0092 0 00-8 8H6A10.0113 10.0113 0 0116 16a9.8923 9.8923 0 014.4458 1.0515 1 1 0 010 1.79A7.9567 7.9567 0 0016 26zM16 2L11 7 12.41 8.41 15 5.83 15 6 15 14 17 14 17 6 17 5.83 19.59 8.41 21 7 16 2z\"\n })), children);\n});\nvar Moonrise24 = /*#__PURE__*/React.forwardRef(function Moonrise24(_ref3, ref) {\n var children = _ref3.children,\n rest = _objectWithoutProperties(_ref3, _excluded3);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 28H30V30H2zM26 26H24a7.987 7.987 0 00-2.0371-5.3335l1.49-1.334A9.9835 9.9835 0 0126 26zM16 26H14a9.9268 9.9268 0 013.7539-7.804A7.89 7.89 0 0016 18a8.0092 8.0092 0 00-8 8H6A10.0113 10.0113 0 0116 16a9.8923 9.8923 0 014.4458 1.0515 1 1 0 010 1.79A7.9567 7.9567 0 0016 26zM16 2L11 7 12.41 8.41 15 5.83 15 6 15 14 17 14 17 6 17 5.83 19.59 8.41 21 7 16 2z\"\n })), children);\n});\nvar Moonrise20 = /*#__PURE__*/React.forwardRef(function Moonrise20(_ref4, ref) {\n var children = _ref4.children,\n rest = _objectWithoutProperties(_ref4, _excluded4);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path4 || (_path4 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 28H30V30H2zM26 26H24a7.987 7.987 0 00-2.0371-5.3335l1.49-1.334A9.9835 9.9835 0 0126 26zM16 26H14a9.9268 9.9268 0 013.7539-7.804A7.89 7.89 0 0016 18a8.0092 8.0092 0 00-8 8H6A10.0113 10.0113 0 0116 16a9.8923 9.8923 0 014.4458 1.0515 1 1 0 010 1.79A7.9567 7.9567 0 0016 26zM16 2L11 7 12.41 8.41 15 5.83 15 6 15 14 17 14 17 6 17 5.83 19.59 8.41 21 7 16 2z\"\n })), children);\n});\nvar Moonrise16 = /*#__PURE__*/React.forwardRef(function Moonrise16(_ref5, ref) {\n var children = _ref5.children,\n rest = _objectWithoutProperties(_ref5, _excluded5);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path5 || (_path5 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 28H30V30H2zM26 26H24a7.987 7.987 0 00-2.0371-5.3335l1.49-1.334A9.9835 9.9835 0 0126 26zM16 26H14a9.9268 9.9268 0 013.7539-7.804A7.89 7.89 0 0016 18a8.0092 8.0092 0 00-8 8H6A10.0113 10.0113 0 0116 16a9.8923 9.8923 0 014.4458 1.0515 1 1 0 010 1.79A7.9567 7.9567 0 0016 26zM16 2L11 7 12.41 8.41 15 5.83 15 6 15 14 17 14 17 6 17 5.83 19.59 8.41 21 7 16 2z\"\n })), children);\n});\nvar Moonset32 = /*#__PURE__*/React.forwardRef(function Moonset32(_ref6, ref) {\n var children = _ref6.children,\n rest = _objectWithoutProperties(_ref6, _excluded6);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path6 || (_path6 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 28H30V30H2zM26 26H24a7.987 7.987 0 00-2.0371-5.3335l1.49-1.334A9.9835 9.9835 0 0126 26zM16 26H14a9.9268 9.9268 0 013.7539-7.804A7.89 7.89 0 0016 18a8.0092 8.0092 0 00-8 8H6A10.0113 10.0113 0 0116 16a9.8923 9.8923 0 014.4458 1.0515 1 1 0 010 1.79A7.9567 7.9567 0 0016 26zM16 14L11 9 12.41 7.59 15 10.17 15 10 15 2 17 2 17 10 17 10.17 19.59 7.59 21 9 16 14z\"\n })), children);\n});\nvar Moonset24 = /*#__PURE__*/React.forwardRef(function Moonset24(_ref7, ref) {\n var children = _ref7.children,\n rest = _objectWithoutProperties(_ref7, _excluded7);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path7 || (_path7 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 28H30V30H2zM26 26H24a7.987 7.987 0 00-2.0371-5.3335l1.49-1.334A9.9835 9.9835 0 0126 26zM16 26H14a9.9268 9.9268 0 013.7539-7.804A7.89 7.89 0 0016 18a8.0092 8.0092 0 00-8 8H6A10.0113 10.0113 0 0116 16a9.8923 9.8923 0 014.4458 1.0515 1 1 0 010 1.79A7.9567 7.9567 0 0016 26zM16 14L11 9 12.41 7.59 15 10.17 15 10 15 2 17 2 17 10 17 10.17 19.59 7.59 21 9 16 14z\"\n })), children);\n});\nvar Moonset20 = /*#__PURE__*/React.forwardRef(function Moonset20(_ref8, ref) {\n var children = _ref8.children,\n rest = _objectWithoutProperties(_ref8, _excluded8);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path8 || (_path8 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 28H30V30H2zM26 26H24a7.987 7.987 0 00-2.0371-5.3335l1.49-1.334A9.9835 9.9835 0 0126 26zM16 26H14a9.9268 9.9268 0 013.7539-7.804A7.89 7.89 0 0016 18a8.0092 8.0092 0 00-8 8H6A10.0113 10.0113 0 0116 16a9.8923 9.8923 0 014.4458 1.0515 1 1 0 010 1.79A7.9567 7.9567 0 0016 26zM16 14L11 9 12.41 7.59 15 10.17 15 10 15 2 17 2 17 10 17 10.17 19.59 7.59 21 9 16 14z\"\n })), children);\n});\nvar Moonset16 = /*#__PURE__*/React.forwardRef(function Moonset16(_ref9, ref) {\n var children = _ref9.children,\n rest = _objectWithoutProperties(_ref9, _excluded9);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path9 || (_path9 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 28H30V30H2zM26 26H24a7.987 7.987 0 00-2.0371-5.3335l1.49-1.334A9.9835 9.9835 0 0126 26zM16 26H14a9.9268 9.9268 0 013.7539-7.804A7.89 7.89 0 0016 18a8.0092 8.0092 0 00-8 8H6A10.0113 10.0113 0 0116 16a9.8923 9.8923 0 014.4458 1.0515 1 1 0 010 1.79A7.9567 7.9567 0 0016 26zM16 14L11 9 12.41 7.59 15 10.17 15 10 15 2 17 2 17 10 17 10.17 19.59 7.59 21 9 16 14z\"\n })), children);\n});\nvar MostlyCloudy32 = /*#__PURE__*/React.forwardRef(function MostlyCloudy32(_ref10, ref) {\n var children = _ref10.children,\n rest = _objectWithoutProperties(_ref10, _excluded10);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path10 || (_path10 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.743,18.6872A6.05,6.05,0,0,0,22.8,17.6006a5.9977,5.9977,0,1,0-10.7334-4.4444,7.5568,7.5568,0,0,0-5.7158,5.0879A5.9926,5.9926,0,0,0,8,30H19a5.9854,5.9854,0,0,0,2.743-11.3128ZM18,10a4.0042,4.0042,0,0,1,4,4,3.9613,3.9613,0,0,1-.8,2.3994,4.0122,4.0122,0,0,1-.94.8917,7.5416,7.5416,0,0,0-6.1339-4.2395A3.9985,3.9985,0,0,1,18,10Zm1,18H8a3.9928,3.9928,0,0,1-.6729-7.93L7.99,19.958l.1456-.6562a5.4958,5.4958,0,0,1,10.729,0l.1464.6562.6622.1123A3.9928,3.9928,0,0,1,19,28Z\",\n transform: \"translate(0 .005)\"\n })), _path11 || (_path11 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 13.005H30V15.005H26z\"\n })), _path12 || (_path12 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.071 5.929H27.071V7.929H23.071z\",\n transform: \"rotate(-45 25.077 6.931)\"\n })), _path13 || (_path13 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 2.005H19V6.005H17z\"\n })), _path14 || (_path14 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.929 4.929H11.929V8.929H9.929z\",\n transform: \"rotate(-45 10.935 6.931)\"\n })), children);\n});\nvar MostlyCloudy24 = /*#__PURE__*/React.forwardRef(function MostlyCloudy24(_ref11, ref) {\n var children = _ref11.children,\n rest = _objectWithoutProperties(_ref11, _excluded11);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path15 || (_path15 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.743,18.6872A6.05,6.05,0,0,0,22.8,17.6006a5.9977,5.9977,0,1,0-10.7334-4.4444,7.5568,7.5568,0,0,0-5.7158,5.0879A5.9926,5.9926,0,0,0,8,30H19a5.9854,5.9854,0,0,0,2.743-11.3128ZM18,10a4.0042,4.0042,0,0,1,4,4,3.9613,3.9613,0,0,1-.8,2.3994,4.0122,4.0122,0,0,1-.94.8917,7.5416,7.5416,0,0,0-6.1339-4.2395A3.9985,3.9985,0,0,1,18,10Zm1,18H8a3.9928,3.9928,0,0,1-.6729-7.93L7.99,19.958l.1456-.6562a5.4958,5.4958,0,0,1,10.729,0l.1464.6562.6622.1123A3.9928,3.9928,0,0,1,19,28Z\",\n transform: \"translate(0 .005)\"\n })), _path16 || (_path16 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 13.005H30V15.005H26z\"\n })), _path17 || (_path17 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.071 5.929H27.071V7.929H23.071z\",\n transform: \"rotate(-45 25.077 6.931)\"\n })), _path18 || (_path18 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 2.005H19V6.005H17z\"\n })), _path19 || (_path19 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.929 4.929H11.929V8.929H9.929z\",\n transform: \"rotate(-45 10.935 6.931)\"\n })), children);\n});\nvar MostlyCloudy20 = /*#__PURE__*/React.forwardRef(function MostlyCloudy20(_ref12, ref) {\n var children = _ref12.children,\n rest = _objectWithoutProperties(_ref12, _excluded12);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path20 || (_path20 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.743,18.6872A6.05,6.05,0,0,0,22.8,17.6006a5.9977,5.9977,0,1,0-10.7334-4.4444,7.5568,7.5568,0,0,0-5.7158,5.0879A5.9926,5.9926,0,0,0,8,30H19a5.9854,5.9854,0,0,0,2.743-11.3128ZM18,10a4.0042,4.0042,0,0,1,4,4,3.9613,3.9613,0,0,1-.8,2.3994,4.0122,4.0122,0,0,1-.94.8917,7.5416,7.5416,0,0,0-6.1339-4.2395A3.9985,3.9985,0,0,1,18,10Zm1,18H8a3.9928,3.9928,0,0,1-.6729-7.93L7.99,19.958l.1456-.6562a5.4958,5.4958,0,0,1,10.729,0l.1464.6562.6622.1123A3.9928,3.9928,0,0,1,19,28Z\",\n transform: \"translate(0 .005)\"\n })), _path21 || (_path21 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 13.005H30V15.005H26z\"\n })), _path22 || (_path22 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.071 5.929H27.071V7.929H23.071z\",\n transform: \"rotate(-45 25.077 6.931)\"\n })), _path23 || (_path23 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 2.005H19V6.005H17z\"\n })), _path24 || (_path24 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.929 4.929H11.929V8.929H9.929z\",\n transform: \"rotate(-45 10.935 6.931)\"\n })), children);\n});\nvar MostlyCloudy16 = /*#__PURE__*/React.forwardRef(function MostlyCloudy16(_ref13, ref) {\n var children = _ref13.children,\n rest = _objectWithoutProperties(_ref13, _excluded13);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path25 || (_path25 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.743,18.6872A6.05,6.05,0,0,0,22.8,17.6006a5.9977,5.9977,0,1,0-10.7334-4.4444,7.5568,7.5568,0,0,0-5.7158,5.0879A5.9926,5.9926,0,0,0,8,30H19a5.9854,5.9854,0,0,0,2.743-11.3128ZM18,10a4.0042,4.0042,0,0,1,4,4,3.9613,3.9613,0,0,1-.8,2.3994,4.0122,4.0122,0,0,1-.94.8917,7.5416,7.5416,0,0,0-6.1339-4.2395A3.9985,3.9985,0,0,1,18,10Zm1,18H8a3.9928,3.9928,0,0,1-.6729-7.93L7.99,19.958l.1456-.6562a5.4958,5.4958,0,0,1,10.729,0l.1464.6562.6622.1123A3.9928,3.9928,0,0,1,19,28Z\",\n transform: \"translate(0 .005)\"\n })), _path26 || (_path26 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 13.005H30V15.005H26z\"\n })), _path27 || (_path27 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.071 5.929H27.071V7.929H23.071z\",\n transform: \"rotate(-45 25.077 6.931)\"\n })), _path28 || (_path28 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 2.005H19V6.005H17z\"\n })), _path29 || (_path29 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.929 4.929H11.929V8.929H9.929z\",\n transform: \"rotate(-45 10.935 6.931)\"\n })), children);\n});\nvar MostlyCloudyNight32 = /*#__PURE__*/React.forwardRef(function MostlyCloudyNight32(_ref14, ref) {\n var children = _ref14.children,\n rest = _objectWithoutProperties(_ref14, _excluded14);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path30 || (_path30 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.8438,15.0347a1.5169,1.5169,0,0,0-1.23-.8658,5.3547,5.3547,0,0,1-3.4094-1.7158A6.4653,6.4653,0,0,1,23.918,6.0605a1.6025,1.6025,0,0,0-.2989-1.5459,1.4543,1.4543,0,0,0-1.36-.4931l-.0191.0039a7.927,7.927,0,0,0-6.22,7.4307A7.3638,7.3638,0,0,0,13.5,11a7.5511,7.5511,0,0,0-7.1494,5.2441A5.9926,5.9926,0,0,0,8,28H19a5.9771,5.9771,0,0,0,5.6147-8.0884,7.5054,7.5054,0,0,0,5.1324-3.3569A1.5372,1.5372,0,0,0,29.8438,15.0347ZM19,26H8a3.9926,3.9926,0,0,1-.6733-7.9292l.663-.1128.1456-.6562a5.496,5.496,0,0,1,10.7294,0l.1456.6562.6626.1128A3.9925,3.9925,0,0,1,19,26Zm4.4653-8.001h-.0217a5.9581,5.9581,0,0,0-2.7942-1.7549,7.5068,7.5068,0,0,0-2.6008-3.6767c-.01-.1016-.0361-.1978-.041-.3008a6.078,6.078,0,0,1,3.7907-6.05,8.4577,8.4577,0,0,0,1.94,7.5967A7.4007,7.4007,0,0,0,27.64,16.041,5.4286,5.4286,0,0,1,23.4653,17.999Z\"\n })), children);\n});\nvar MostlyCloudyNight24 = /*#__PURE__*/React.forwardRef(function MostlyCloudyNight24(_ref15, ref) {\n var children = _ref15.children,\n rest = _objectWithoutProperties(_ref15, _excluded15);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path31 || (_path31 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.8438,15.0347a1.5169,1.5169,0,0,0-1.23-.8658,5.3547,5.3547,0,0,1-3.4094-1.7158A6.4653,6.4653,0,0,1,23.918,6.0605a1.6025,1.6025,0,0,0-.2989-1.5459,1.4543,1.4543,0,0,0-1.36-.4931l-.0191.0039a7.927,7.927,0,0,0-6.22,7.4307A7.3638,7.3638,0,0,0,13.5,11a7.5511,7.5511,0,0,0-7.1494,5.2441A5.9926,5.9926,0,0,0,8,28H19a5.9771,5.9771,0,0,0,5.6147-8.0884,7.5054,7.5054,0,0,0,5.1324-3.3569A1.5372,1.5372,0,0,0,29.8438,15.0347ZM19,26H8a3.9926,3.9926,0,0,1-.6733-7.9292l.663-.1128.1456-.6562a5.496,5.496,0,0,1,10.7294,0l.1456.6562.6626.1128A3.9925,3.9925,0,0,1,19,26Zm4.4653-8.001h-.0217a5.9581,5.9581,0,0,0-2.7942-1.7549,7.5068,7.5068,0,0,0-2.6008-3.6767c-.01-.1016-.0361-.1978-.041-.3008a6.078,6.078,0,0,1,3.7907-6.05,8.4577,8.4577,0,0,0,1.94,7.5967A7.4007,7.4007,0,0,0,27.64,16.041,5.4286,5.4286,0,0,1,23.4653,17.999Z\"\n })), children);\n});\nvar MostlyCloudyNight20 = /*#__PURE__*/React.forwardRef(function MostlyCloudyNight20(_ref16, ref) {\n var children = _ref16.children,\n rest = _objectWithoutProperties(_ref16, _excluded16);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path32 || (_path32 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.8438,15.0347a1.5169,1.5169,0,0,0-1.23-.8658,5.3547,5.3547,0,0,1-3.4094-1.7158A6.4653,6.4653,0,0,1,23.918,6.0605a1.6025,1.6025,0,0,0-.2989-1.5459,1.4543,1.4543,0,0,0-1.36-.4931l-.0191.0039a7.927,7.927,0,0,0-6.22,7.4307A7.3638,7.3638,0,0,0,13.5,11a7.5511,7.5511,0,0,0-7.1494,5.2441A5.9926,5.9926,0,0,0,8,28H19a5.9771,5.9771,0,0,0,5.6147-8.0884,7.5054,7.5054,0,0,0,5.1324-3.3569A1.5372,1.5372,0,0,0,29.8438,15.0347ZM19,26H8a3.9926,3.9926,0,0,1-.6733-7.9292l.663-.1128.1456-.6562a5.496,5.496,0,0,1,10.7294,0l.1456.6562.6626.1128A3.9925,3.9925,0,0,1,19,26Zm4.4653-8.001h-.0217a5.9581,5.9581,0,0,0-2.7942-1.7549,7.5068,7.5068,0,0,0-2.6008-3.6767c-.01-.1016-.0361-.1978-.041-.3008a6.078,6.078,0,0,1,3.7907-6.05,8.4577,8.4577,0,0,0,1.94,7.5967A7.4007,7.4007,0,0,0,27.64,16.041,5.4286,5.4286,0,0,1,23.4653,17.999Z\"\n })), children);\n});\nvar MostlyCloudyNight16 = /*#__PURE__*/React.forwardRef(function MostlyCloudyNight16(_ref17, ref) {\n var children = _ref17.children,\n rest = _objectWithoutProperties(_ref17, _excluded17);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path33 || (_path33 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.8438,15.0347a1.5169,1.5169,0,0,0-1.23-.8658,5.3547,5.3547,0,0,1-3.4094-1.7158A6.4653,6.4653,0,0,1,23.918,6.0605a1.6025,1.6025,0,0,0-.2989-1.5459,1.4543,1.4543,0,0,0-1.36-.4931l-.0191.0039a7.927,7.927,0,0,0-6.22,7.4307A7.3638,7.3638,0,0,0,13.5,11a7.5511,7.5511,0,0,0-7.1494,5.2441A5.9926,5.9926,0,0,0,8,28H19a5.9771,5.9771,0,0,0,5.6147-8.0884,7.5054,7.5054,0,0,0,5.1324-3.3569A1.5372,1.5372,0,0,0,29.8438,15.0347ZM19,26H8a3.9926,3.9926,0,0,1-.6733-7.9292l.663-.1128.1456-.6562a5.496,5.496,0,0,1,10.7294,0l.1456.6562.6626.1128A3.9925,3.9925,0,0,1,19,26Zm4.4653-8.001h-.0217a5.9581,5.9581,0,0,0-2.7942-1.7549,7.5068,7.5068,0,0,0-2.6008-3.6767c-.01-.1016-.0361-.1978-.041-.3008a6.078,6.078,0,0,1,3.7907-6.05,8.4577,8.4577,0,0,0,1.94,7.5967A7.4007,7.4007,0,0,0,27.64,16.041,5.4286,5.4286,0,0,1,23.4653,17.999Z\"\n })), children);\n});\nvar Mountain32 = /*#__PURE__*/React.forwardRef(function Mountain32(_ref18, ref) {\n var children = _ref18.children,\n rest = _objectWithoutProperties(_ref18, _excluded18);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path34 || (_path34 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.6343,26,17.7888,5.1055a2,2,0,0,0-3.5879.021L4.3657,26H2v2H30V26ZM15.99,5.979,20.9473,16.5,19,17.7979l-3-2-3,2-1.9551-1.3033ZM10.1846,18.3247,13,20.2021l3-2,3,2,2.8091-1.873L25.4233,26H6.5752Z\"\n })), children);\n});\nvar Mountain24 = /*#__PURE__*/React.forwardRef(function Mountain24(_ref19, ref) {\n var children = _ref19.children,\n rest = _objectWithoutProperties(_ref19, _excluded19);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path35 || (_path35 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.6343,26,17.7888,5.1055a2,2,0,0,0-3.5879.021L4.3657,26H2v2H30V26ZM15.99,5.979,20.9473,16.5,19,17.7979l-3-2-3,2-1.9551-1.3033ZM10.1846,18.3247,13,20.2021l3-2,3,2,2.8091-1.873L25.4233,26H6.5752Z\"\n })), children);\n});\nvar Mountain20 = /*#__PURE__*/React.forwardRef(function Mountain20(_ref20, ref) {\n var children = _ref20.children,\n rest = _objectWithoutProperties(_ref20, _excluded20);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path36 || (_path36 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.6343,26,17.7888,5.1055a2,2,0,0,0-3.5879.021L4.3657,26H2v2H30V26ZM15.99,5.979,20.9473,16.5,19,17.7979l-3-2-3,2-1.9551-1.3033ZM10.1846,18.3247,13,20.2021l3-2,3,2,2.8091-1.873L25.4233,26H6.5752Z\"\n })), children);\n});\nvar Mountain16 = /*#__PURE__*/React.forwardRef(function Mountain16(_ref21, ref) {\n var children = _ref21.children,\n rest = _objectWithoutProperties(_ref21, _excluded21);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path37 || (_path37 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.6343,26,17.7888,5.1055a2,2,0,0,0-3.5879.021L4.3657,26H2v2H30V26ZM15.99,5.979,20.9473,16.5,19,17.7979l-3-2-3,2-1.9551-1.3033ZM10.1846,18.3247,13,20.2021l3-2,3,2,2.8091-1.873L25.4233,26H6.5752Z\"\n })), children);\n});\nvar Mov32 = /*#__PURE__*/React.forwardRef(function Mov32(_ref22, ref) {\n var children = _ref22.children,\n rest = _objectWithoutProperties(_ref22, _excluded22);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path38 || (_path38 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 9L26 22 24 9 22 9 24.52 23 27.48 23 30 9 28 9zM18 23H14a2 2 0 01-2-2V11a2 2 0 012-2h4a2 2 0 012 2V21A2 2 0 0118 23zM14 11V21h4V11zM8 9L6.49 14 6 15.98 5.54 14 4 9 2 9 2 23 4 23 4 15 3.84 13 4.42 15 6 19.63 7.58 15 8.16 13 8 15 8 23 10 23 10 9 8 9z\"\n })), children);\n});\nvar Mov24 = /*#__PURE__*/React.forwardRef(function Mov24(_ref23, ref) {\n var children = _ref23.children,\n rest = _objectWithoutProperties(_ref23, _excluded23);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path39 || (_path39 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 9L26 22 24 9 22 9 24.52 23 27.48 23 30 9 28 9zM18 23H14a2 2 0 01-2-2V11a2 2 0 012-2h4a2 2 0 012 2V21A2 2 0 0118 23zM14 11V21h4V11zM8 9L6.49 14 6 15.98 5.54 14 4 9 2 9 2 23 4 23 4 15 3.84 13 4.42 15 6 19.63 7.58 15 8.16 13 8 15 8 23 10 23 10 9 8 9z\"\n })), children);\n});\nvar Mov20 = /*#__PURE__*/React.forwardRef(function Mov20(_ref24, ref) {\n var children = _ref24.children,\n rest = _objectWithoutProperties(_ref24, _excluded24);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path40 || (_path40 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 9L26 22 24 9 22 9 24.52 23 27.48 23 30 9 28 9zM18 23H14a2 2 0 01-2-2V11a2 2 0 012-2h4a2 2 0 012 2V21A2 2 0 0118 23zM14 11V21h4V11zM8 9L6.49 14 6 15.98 5.54 14 4 9 2 9 2 23 4 23 4 15 3.84 13 4.42 15 6 19.63 7.58 15 8.16 13 8 15 8 23 10 23 10 9 8 9z\"\n })), children);\n});\nvar Mov16 = /*#__PURE__*/React.forwardRef(function Mov16(_ref25, ref) {\n var children = _ref25.children,\n rest = _objectWithoutProperties(_ref25, _excluded25);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path41 || (_path41 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 9L26 22 24 9 22 9 24.52 23 27.48 23 30 9 28 9zM18 23H14a2 2 0 01-2-2V11a2 2 0 012-2h4a2 2 0 012 2V21A2 2 0 0118 23zM14 11V21h4V11zM8 9L6.49 14 6 15.98 5.54 14 4 9 2 9 2 23 4 23 4 15 3.84 13 4.42 15 6 19.63 7.58 15 8.16 13 8 15 8 23 10 23 10 9 8 9z\"\n })), children);\n});\nvar Move32 = /*#__PURE__*/React.forwardRef(function Move32(_ref26, ref) {\n var children = _ref26.children,\n rest = _objectWithoutProperties(_ref26, _excluded26);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path42 || (_path42 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25 11L23.59 12.41 26.17 15 17 15 17 5.83 19.59 8.41 21 7 16 2 11 7 12.41 8.41 15 5.83 15 15 5.83 15 8.41 12.41 7 11 2 16 7 21 8.41 19.59 5.83 17 15 17 15 26.17 12.41 23.59 11 25 16 30 21 25 19.59 23.59 17 26.17 17 17 26.17 17 23.59 19.59 25 21 30 16 25 11z\"\n })), children);\n});\nvar Move24 = /*#__PURE__*/React.forwardRef(function Move24(_ref27, ref) {\n var children = _ref27.children,\n rest = _objectWithoutProperties(_ref27, _excluded27);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path43 || (_path43 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25 11L23.59 12.41 26.17 15 17 15 17 5.83 19.59 8.41 21 7 16 2 11 7 12.41 8.41 15 5.83 15 15 5.83 15 8.41 12.41 7 11 2 16 7 21 8.41 19.59 5.83 17 15 17 15 26.17 12.41 23.59 11 25 16 30 21 25 19.59 23.59 17 26.17 17 17 26.17 17 23.59 19.59 25 21 30 16 25 11z\"\n })), children);\n});\nvar Move20 = /*#__PURE__*/React.forwardRef(function Move20(_ref28, ref) {\n var children = _ref28.children,\n rest = _objectWithoutProperties(_ref28, _excluded28);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path44 || (_path44 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25 11L23.59 12.41 26.17 15 17 15 17 5.83 19.59 8.41 21 7 16 2 11 7 12.41 8.41 15 5.83 15 15 5.83 15 8.41 12.41 7 11 2 16 7 21 8.41 19.59 5.83 17 15 17 15 26.17 12.41 23.59 11 25 16 30 21 25 19.59 23.59 17 26.17 17 17 26.17 17 23.59 19.59 25 21 30 16 25 11z\"\n })), children);\n});\nvar Move16 = /*#__PURE__*/React.forwardRef(function Move16(_ref29, ref) {\n var children = _ref29.children,\n rest = _objectWithoutProperties(_ref29, _excluded29);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path45 || (_path45 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25 11L23.59 12.41 26.17 15 17 15 17 5.83 19.59 8.41 21 7 16 2 11 7 12.41 8.41 15 5.83 15 15 5.83 15 8.41 12.41 7 11 2 16 7 21 8.41 19.59 5.83 17 15 17 15 26.17 12.41 23.59 11 25 16 30 21 25 19.59 23.59 17 26.17 17 17 26.17 17 23.59 19.59 25 21 30 16 25 11z\"\n })), children);\n});\nvar Movement32 = /*#__PURE__*/React.forwardRef(function Movement32(_ref30, ref) {\n var children = _ref30.children,\n rest = _objectWithoutProperties(_ref30, _excluded30);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path46 || (_path46 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,20l-1.41,1.41L26.17,25H10a4,4,0,0,1,0-8H22A6,6,0,0,0,22,5H5.83L9.41,1.41,8,0,2,6l6,6,1.41-1.41L5.83,7H22a4,4,0,0,1,0,8H10a6,6,0,0,0,0,12H26.17l-3.58,3.59L24,32l6-6Z\"\n })), children);\n});\nvar Movement24 = /*#__PURE__*/React.forwardRef(function Movement24(_ref31, ref) {\n var children = _ref31.children,\n rest = _objectWithoutProperties(_ref31, _excluded31);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path47 || (_path47 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,20l-1.41,1.41L26.17,25H10a4,4,0,0,1,0-8H22A6,6,0,0,0,22,5H5.83L9.41,1.41,8,0,2,6l6,6,1.41-1.41L5.83,7H22a4,4,0,0,1,0,8H10a6,6,0,0,0,0,12H26.17l-3.58,3.59L24,32l6-6Z\"\n })), children);\n});\nvar Movement20 = /*#__PURE__*/React.forwardRef(function Movement20(_ref32, ref) {\n var children = _ref32.children,\n rest = _objectWithoutProperties(_ref32, _excluded32);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path48 || (_path48 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,20l-1.41,1.41L26.17,25H10a4,4,0,0,1,0-8H22A6,6,0,0,0,22,5H5.83L9.41,1.41,8,0,2,6l6,6,1.41-1.41L5.83,7H22a4,4,0,0,1,0,8H10a6,6,0,0,0,0,12H26.17l-3.58,3.59L24,32l6-6Z\"\n })), children);\n});\nvar Movement16 = /*#__PURE__*/React.forwardRef(function Movement16(_ref33, ref) {\n var children = _ref33.children,\n rest = _objectWithoutProperties(_ref33, _excluded33);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path49 || (_path49 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,20l-1.41,1.41L26.17,25H10a4,4,0,0,1,0-8H22A6,6,0,0,0,22,5H5.83L9.41,1.41,8,0,2,6l6,6,1.41-1.41L5.83,7H22a4,4,0,0,1,0,8H10a6,6,0,0,0,0,12H26.17l-3.58,3.59L24,32l6-6Z\"\n })), children);\n});\nvar Mp332 = /*#__PURE__*/React.forwardRef(function Mp332(_ref34, ref) {\n var children = _ref34.children,\n rest = _objectWithoutProperties(_ref34, _excluded34);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path50 || (_path50 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 9H22v2h6v4H24v2h4v4H22v2h6a2 2 0 002-2V11A2 2 0 0028 9zM14 23H12V9h6a2 2 0 012 2v5a2 2 0 01-2 2H14zm0-7h4V11H14zM8 9L6.49 14 6 15.98 5.54 14 4 9 2 9 2 23 4 23 4 15 3.84 13 4.42 15 6 19.63 7.58 15 8.16 13 8 15 8 23 10 23 10 9 8 9z\"\n })), children);\n});\nvar Mp324 = /*#__PURE__*/React.forwardRef(function Mp324(_ref35, ref) {\n var children = _ref35.children,\n rest = _objectWithoutProperties(_ref35, _excluded35);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path51 || (_path51 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 9H22v2h6v4H24v2h4v4H22v2h6a2 2 0 002-2V11A2 2 0 0028 9zM14 23H12V9h6a2 2 0 012 2v5a2 2 0 01-2 2H14zm0-7h4V11H14zM8 9L6.49 14 6 15.98 5.54 14 4 9 2 9 2 23 4 23 4 15 3.84 13 4.42 15 6 19.63 7.58 15 8.16 13 8 15 8 23 10 23 10 9 8 9z\"\n })), children);\n});\nvar Mp320 = /*#__PURE__*/React.forwardRef(function Mp320(_ref36, ref) {\n var children = _ref36.children,\n rest = _objectWithoutProperties(_ref36, _excluded36);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path52 || (_path52 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 9H22v2h6v4H24v2h4v4H22v2h6a2 2 0 002-2V11A2 2 0 0028 9zM14 23H12V9h6a2 2 0 012 2v5a2 2 0 01-2 2H14zm0-7h4V11H14zM8 9L6.49 14 6 15.98 5.54 14 4 9 2 9 2 23 4 23 4 15 3.84 13 4.42 15 6 19.63 7.58 15 8.16 13 8 15 8 23 10 23 10 9 8 9z\"\n })), children);\n});\nvar Mp316 = /*#__PURE__*/React.forwardRef(function Mp316(_ref37, ref) {\n var children = _ref37.children,\n rest = _objectWithoutProperties(_ref37, _excluded37);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path53 || (_path53 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 9H22v2h6v4H24v2h4v4H22v2h6a2 2 0 002-2V11A2 2 0 0028 9zM14 23H12V9h6a2 2 0 012 2v5a2 2 0 01-2 2H14zm0-7h4V11H14zM8 9L6.49 14 6 15.98 5.54 14 4 9 2 9 2 23 4 23 4 15 3.84 13 4.42 15 6 19.63 7.58 15 8.16 13 8 15 8 23 10 23 10 9 8 9z\"\n })), children);\n});\nvar Mp432 = /*#__PURE__*/React.forwardRef(function Mp432(_ref38, ref) {\n var children = _ref38.children,\n rest = _objectWithoutProperties(_ref38, _excluded38);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path54 || (_path54 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 10v8h0V10m1-1H27v8H24V9H22V19h5v4h2V19h1V17H29V9zM14 23H12V9h6a2 2 0 012 2v5a2 2 0 01-2 2H14zm0-7h4V11H14zM8 9L6.49 14 6 15.98 5.54 14 4 9 2 9 2 23 4 23 4 15 3.84 13 4.42 15 6 19.63 7.58 15 8.16 13 8 15 8 23 10 23 10 9 8 9z\"\n })), children);\n});\nvar Mp424 = /*#__PURE__*/React.forwardRef(function Mp424(_ref39, ref) {\n var children = _ref39.children,\n rest = _objectWithoutProperties(_ref39, _excluded39);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path55 || (_path55 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 10v8h0V10m1-1H27v8H24V9H22V19h5v4h2V19h1V17H29V9zM14 23H12V9h6a2 2 0 012 2v5a2 2 0 01-2 2H14zm0-7h4V11H14zM8 9L6.49 14 6 15.98 5.54 14 4 9 2 9 2 23 4 23 4 15 3.84 13 4.42 15 6 19.63 7.58 15 8.16 13 8 15 8 23 10 23 10 9 8 9z\"\n })), children);\n});\nvar Mp420 = /*#__PURE__*/React.forwardRef(function Mp420(_ref40, ref) {\n var children = _ref40.children,\n rest = _objectWithoutProperties(_ref40, _excluded40);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path56 || (_path56 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 10v8h0V10m1-1H27v8H24V9H22V19h5v4h2V19h1V17H29V9zM14 23H12V9h6a2 2 0 012 2v5a2 2 0 01-2 2H14zm0-7h4V11H14zM8 9L6.49 14 6 15.98 5.54 14 4 9 2 9 2 23 4 23 4 15 3.84 13 4.42 15 6 19.63 7.58 15 8.16 13 8 15 8 23 10 23 10 9 8 9z\"\n })), children);\n});\nvar Mp416 = /*#__PURE__*/React.forwardRef(function Mp416(_ref41, ref) {\n var children = _ref41.children,\n rest = _objectWithoutProperties(_ref41, _excluded41);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path57 || (_path57 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 10v8h0V10m1-1H27v8H24V9H22V19h5v4h2V19h1V17H29V9zM14 23H12V9h6a2 2 0 012 2v5a2 2 0 01-2 2H14zm0-7h4V11H14zM8 9L6.49 14 6 15.98 5.54 14 4 9 2 9 2 23 4 23 4 15 3.84 13 4.42 15 6 19.63 7.58 15 8.16 13 8 15 8 23 10 23 10 9 8 9z\"\n })), children);\n});\nvar Mpeg32 = /*#__PURE__*/React.forwardRef(function Mpeg32(_ref42, ref) {\n var children = _ref42.children,\n rest = _objectWithoutProperties(_ref42, _excluded42);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path58 || (_path58 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M32 21H28a2.0023 2.0023 0 01-2-2V13a2.002 2.002 0 012-2h4v2H28v6h2V17H29l0-2h3zM24 13L24 11.024 18 11.024 18 21 24 21 24 19 20 19 20 17 22 17 22 15 20 15 20 13 24 13zM14 11H9V21h2V18h3a2.0027 2.0027 0 002-2V13A2.0023 2.0023 0 0014 11zm-3 5V13h3l.001 3zM7 11L5 11 3.5 15 2 11 0 11 0 21 2 21 2 14 3.5 18 5 14 5 21 7 21 7 11z\"\n })), children);\n});\nvar Mpeg24 = /*#__PURE__*/React.forwardRef(function Mpeg24(_ref43, ref) {\n var children = _ref43.children,\n rest = _objectWithoutProperties(_ref43, _excluded43);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path59 || (_path59 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M32 21H28a2.0023 2.0023 0 01-2-2V13a2.002 2.002 0 012-2h4v2H28v6h2V17H29l0-2h3zM24 13L24 11.024 18 11.024 18 21 24 21 24 19 20 19 20 17 22 17 22 15 20 15 20 13 24 13zM14 11H9V21h2V18h3a2.0027 2.0027 0 002-2V13A2.0023 2.0023 0 0014 11zm-3 5V13h3l.001 3zM7 11L5 11 3.5 15 2 11 0 11 0 21 2 21 2 14 3.5 18 5 14 5 21 7 21 7 11z\"\n })), children);\n});\nvar Mpeg20 = /*#__PURE__*/React.forwardRef(function Mpeg20(_ref44, ref) {\n var children = _ref44.children,\n rest = _objectWithoutProperties(_ref44, _excluded44);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path60 || (_path60 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M32 21H28a2.0023 2.0023 0 01-2-2V13a2.002 2.002 0 012-2h4v2H28v6h2V17H29l0-2h3zM24 13L24 11.024 18 11.024 18 21 24 21 24 19 20 19 20 17 22 17 22 15 20 15 20 13 24 13zM14 11H9V21h2V18h3a2.0027 2.0027 0 002-2V13A2.0023 2.0023 0 0014 11zm-3 5V13h3l.001 3zM7 11L5 11 3.5 15 2 11 0 11 0 21 2 21 2 14 3.5 18 5 14 5 21 7 21 7 11z\"\n })), children);\n});\nvar Mpeg16 = /*#__PURE__*/React.forwardRef(function Mpeg16(_ref45, ref) {\n var children = _ref45.children,\n rest = _objectWithoutProperties(_ref45, _excluded45);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path61 || (_path61 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M32 21H28a2.0023 2.0023 0 01-2-2V13a2.002 2.002 0 012-2h4v2H28v6h2V17H29l0-2h3zM24 13L24 11.024 18 11.024 18 21 24 21 24 19 20 19 20 17 22 17 22 15 20 15 20 13 24 13zM14 11H9V21h2V18h3a2.0027 2.0027 0 002-2V13A2.0023 2.0023 0 0014 11zm-3 5V13h3l.001 3zM7 11L5 11 3.5 15 2 11 0 11 0 21 2 21 2 14 3.5 18 5 14 5 21 7 21 7 11z\"\n })), children);\n});\nvar Mpg232 = /*#__PURE__*/React.forwardRef(function Mpg232(_ref46, ref) {\n var children = _ref46.children,\n rest = _objectWithoutProperties(_ref46, _excluded46);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path62 || (_path62 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M32 21H26V17a2.002 2.002 0 012-2h2V13H26V11h4a2.0023 2.0023 0 012 2v2a2.0023 2.0023 0 01-2 2H28v2h4zM24 21H20a2.0023 2.0023 0 01-2-2V13a2.002 2.002 0 012-2h4v2H20v6h2V17H21l0-2h3zM14 11H9V21h2V18h3a2.0027 2.0027 0 002-2V13A2.0023 2.0023 0 0014 11zm-3 5V13h3l.001 3zM7 11L5 11 3.5 15 2 11 0 11 0 21 2 21 2 14 3.5 18 5 14 5 21 7 21 7 11z\"\n })), children);\n});\nvar Mpg224 = /*#__PURE__*/React.forwardRef(function Mpg224(_ref47, ref) {\n var children = _ref47.children,\n rest = _objectWithoutProperties(_ref47, _excluded47);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path63 || (_path63 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M32 21H26V17a2.002 2.002 0 012-2h2V13H26V11h4a2.0023 2.0023 0 012 2v2a2.0023 2.0023 0 01-2 2H28v2h4zM24 21H20a2.0023 2.0023 0 01-2-2V13a2.002 2.002 0 012-2h4v2H20v6h2V17H21l0-2h3zM14 11H9V21h2V18h3a2.0027 2.0027 0 002-2V13A2.0023 2.0023 0 0014 11zm-3 5V13h3l.001 3zM7 11L5 11 3.5 15 2 11 0 11 0 21 2 21 2 14 3.5 18 5 14 5 21 7 21 7 11z\"\n })), children);\n});\nvar Mpg220 = /*#__PURE__*/React.forwardRef(function Mpg220(_ref48, ref) {\n var children = _ref48.children,\n rest = _objectWithoutProperties(_ref48, _excluded48);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path64 || (_path64 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M32 21H26V17a2.002 2.002 0 012-2h2V13H26V11h4a2.0023 2.0023 0 012 2v2a2.0023 2.0023 0 01-2 2H28v2h4zM24 21H20a2.0023 2.0023 0 01-2-2V13a2.002 2.002 0 012-2h4v2H20v6h2V17H21l0-2h3zM14 11H9V21h2V18h3a2.0027 2.0027 0 002-2V13A2.0023 2.0023 0 0014 11zm-3 5V13h3l.001 3zM7 11L5 11 3.5 15 2 11 0 11 0 21 2 21 2 14 3.5 18 5 14 5 21 7 21 7 11z\"\n })), children);\n});\nvar Mpg216 = /*#__PURE__*/React.forwardRef(function Mpg216(_ref49, ref) {\n var children = _ref49.children,\n rest = _objectWithoutProperties(_ref49, _excluded49);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path65 || (_path65 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M32 21H26V17a2.002 2.002 0 012-2h2V13H26V11h4a2.0023 2.0023 0 012 2v2a2.0023 2.0023 0 01-2 2H28v2h4zM24 21H20a2.0023 2.0023 0 01-2-2V13a2.002 2.002 0 012-2h4v2H20v6h2V17H21l0-2h3zM14 11H9V21h2V18h3a2.0027 2.0027 0 002-2V13A2.0023 2.0023 0 0014 11zm-3 5V13h3l.001 3zM7 11L5 11 3.5 15 2 11 0 11 0 21 2 21 2 14 3.5 18 5 14 5 21 7 21 7 11z\"\n })), children);\n});\nvar Music32 = /*#__PURE__*/React.forwardRef(function Music32(_ref50, ref) {\n var children = _ref50.children,\n rest = _objectWithoutProperties(_ref50, _excluded50);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path66 || (_path66 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25,4H10A2.002,2.002,0,0,0,8,6V20.5563A3.9551,3.9551,0,0,0,6,20a4,4,0,1,0,4,4V12H25v8.5562A3.9545,3.9545,0,0,0,23,20a4,4,0,1,0,4,4V6A2.0023,2.0023,0,0,0,25,4ZM6,26a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,6,26Zm17,0a2,2,0,1,1,2-2A2.0027,2.0027,0,0,1,23,26ZM10,6H25v4H10Z\"\n })), children);\n});\nvar Music24 = /*#__PURE__*/React.forwardRef(function Music24(_ref51, ref) {\n var children = _ref51.children,\n rest = _objectWithoutProperties(_ref51, _excluded51);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path67 || (_path67 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25,4H10A2.002,2.002,0,0,0,8,6V20.5563A3.9551,3.9551,0,0,0,6,20a4,4,0,1,0,4,4V12H25v8.5562A3.9545,3.9545,0,0,0,23,20a4,4,0,1,0,4,4V6A2.0023,2.0023,0,0,0,25,4ZM6,26a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,6,26Zm17,0a2,2,0,1,1,2-2A2.0027,2.0027,0,0,1,23,26ZM10,6H25v4H10Z\"\n })), children);\n});\nvar Music20 = /*#__PURE__*/React.forwardRef(function Music20(_ref52, ref) {\n var children = _ref52.children,\n rest = _objectWithoutProperties(_ref52, _excluded52);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path68 || (_path68 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25,4H10A2.002,2.002,0,0,0,8,6V20.5563A3.9551,3.9551,0,0,0,6,20a4,4,0,1,0,4,4V12H25v8.5562A3.9545,3.9545,0,0,0,23,20a4,4,0,1,0,4,4V6A2.0023,2.0023,0,0,0,25,4ZM6,26a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,6,26Zm17,0a2,2,0,1,1,2-2A2.0027,2.0027,0,0,1,23,26ZM10,6H25v4H10Z\"\n })), children);\n});\nvar Music16 = /*#__PURE__*/React.forwardRef(function Music16(_ref53, ref) {\n var children = _ref53.children,\n rest = _objectWithoutProperties(_ref53, _excluded53);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path69 || (_path69 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25,4H10A2.002,2.002,0,0,0,8,6V20.5563A3.9551,3.9551,0,0,0,6,20a4,4,0,1,0,4,4V12H25v8.5562A3.9545,3.9545,0,0,0,23,20a4,4,0,1,0,4,4V6A2.0023,2.0023,0,0,0,25,4ZM6,26a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,6,26Zm17,0a2,2,0,1,1,2-2A2.0027,2.0027,0,0,1,23,26ZM10,6H25v4H10Z\"\n })), children);\n});\nvar MusicAdd32 = /*#__PURE__*/React.forwardRef(function MusicAdd32(_ref54, ref) {\n var children = _ref54.children,\n rest = _objectWithoutProperties(_ref54, _excluded54);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path70 || (_path70 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 6L26 6 26 2 24 2 24 6 20 6 20 8 24 8 24 12 26 12 26 8 30 8 30 6zM24 15v7.5562A3.9552 3.9552 0 0022 22a4 4 0 104 4V15zM22 28a2 2 0 112-2A2.0027 2.0027 0 0122 28zM17 6H10A2.002 2.002 0 008 8V22.5562A3.9557 3.9557 0 006 22a4 4 0 104 4V8h7zM6 28a2 2 0 112-2A2.0023 2.0023 0 016 28z\"\n })), children);\n});\nvar MusicAdd24 = /*#__PURE__*/React.forwardRef(function MusicAdd24(_ref55, ref) {\n var children = _ref55.children,\n rest = _objectWithoutProperties(_ref55, _excluded55);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path71 || (_path71 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 6L26 6 26 2 24 2 24 6 20 6 20 8 24 8 24 12 26 12 26 8 30 8 30 6zM24 15v7.5562A3.9552 3.9552 0 0022 22a4 4 0 104 4V15zM22 28a2 2 0 112-2A2.0027 2.0027 0 0122 28zM17 6H10A2.002 2.002 0 008 8V22.5562A3.9557 3.9557 0 006 22a4 4 0 104 4V8h7zM6 28a2 2 0 112-2A2.0023 2.0023 0 016 28z\"\n })), children);\n});\nvar MusicAdd20 = /*#__PURE__*/React.forwardRef(function MusicAdd20(_ref56, ref) {\n var children = _ref56.children,\n rest = _objectWithoutProperties(_ref56, _excluded56);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path72 || (_path72 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 6L26 6 26 2 24 2 24 6 20 6 20 8 24 8 24 12 26 12 26 8 30 8 30 6zM24 15v7.5562A3.9552 3.9552 0 0022 22a4 4 0 104 4V15zM22 28a2 2 0 112-2A2.0027 2.0027 0 0122 28zM17 6H10A2.002 2.002 0 008 8V22.5562A3.9557 3.9557 0 006 22a4 4 0 104 4V8h7zM6 28a2 2 0 112-2A2.0023 2.0023 0 016 28z\"\n })), children);\n});\nvar MusicAdd16 = /*#__PURE__*/React.forwardRef(function MusicAdd16(_ref57, ref) {\n var children = _ref57.children,\n rest = _objectWithoutProperties(_ref57, _excluded57);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path73 || (_path73 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 6L26 6 26 2 24 2 24 6 20 6 20 8 24 8 24 12 26 12 26 8 30 8 30 6zM24 15v7.5562A3.9552 3.9552 0 0022 22a4 4 0 104 4V15zM22 28a2 2 0 112-2A2.0027 2.0027 0 0122 28zM17 6H10A2.002 2.002 0 008 8V22.5562A3.9557 3.9557 0 006 22a4 4 0 104 4V8h7zM6 28a2 2 0 112-2A2.0023 2.0023 0 016 28z\"\n })), children);\n});\nvar MusicRemove32 = /*#__PURE__*/React.forwardRef(function MusicRemove32(_ref58, ref) {\n var children = _ref58.children,\n rest = _objectWithoutProperties(_ref58, _excluded58);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path74 || (_path74 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26.41 7L30 3.41 28.59 2 25 5.59 21.41 2 20 3.41 23.59 7 20 10.59 21.41 12 25 8.41 28.59 12 30 10.59 26.41 7zM24 15v7.5562A3.9552 3.9552 0 0022 22a4 4 0 104 4V15zM22 28a2 2 0 112-2A2.0027 2.0027 0 0122 28zM17 6H10A2.002 2.002 0 008 8V22.5562A3.9557 3.9557 0 006 22a4 4 0 104 4V8h7zM6 28a2 2 0 112-2A2.0023 2.0023 0 016 28z\"\n })), children);\n});\nvar MusicRemove24 = /*#__PURE__*/React.forwardRef(function MusicRemove24(_ref59, ref) {\n var children = _ref59.children,\n rest = _objectWithoutProperties(_ref59, _excluded59);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path75 || (_path75 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26.41 7L30 3.41 28.59 2 25 5.59 21.41 2 20 3.41 23.59 7 20 10.59 21.41 12 25 8.41 28.59 12 30 10.59 26.41 7zM24 15v7.5562A3.9552 3.9552 0 0022 22a4 4 0 104 4V15zM22 28a2 2 0 112-2A2.0027 2.0027 0 0122 28zM17 6H10A2.002 2.002 0 008 8V22.5562A3.9557 3.9557 0 006 22a4 4 0 104 4V8h7zM6 28a2 2 0 112-2A2.0023 2.0023 0 016 28z\"\n })), children);\n});\nvar MusicRemove20 = /*#__PURE__*/React.forwardRef(function MusicRemove20(_ref60, ref) {\n var children = _ref60.children,\n rest = _objectWithoutProperties(_ref60, _excluded60);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path76 || (_path76 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26.41 7L30 3.41 28.59 2 25 5.59 21.41 2 20 3.41 23.59 7 20 10.59 21.41 12 25 8.41 28.59 12 30 10.59 26.41 7zM24 15v7.5562A3.9552 3.9552 0 0022 22a4 4 0 104 4V15zM22 28a2 2 0 112-2A2.0027 2.0027 0 0122 28zM17 6H10A2.002 2.002 0 008 8V22.5562A3.9557 3.9557 0 006 22a4 4 0 104 4V8h7zM6 28a2 2 0 112-2A2.0023 2.0023 0 016 28z\"\n })), children);\n});\nvar MusicRemove16 = /*#__PURE__*/React.forwardRef(function MusicRemove16(_ref61, ref) {\n var children = _ref61.children,\n rest = _objectWithoutProperties(_ref61, _excluded61);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path77 || (_path77 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26.41 7L30 3.41 28.59 2 25 5.59 21.41 2 20 3.41 23.59 7 20 10.59 21.41 12 25 8.41 28.59 12 30 10.59 26.41 7zM24 15v7.5562A3.9552 3.9552 0 0022 22a4 4 0 104 4V15zM22 28a2 2 0 112-2A2.0027 2.0027 0 0122 28zM17 6H10A2.002 2.002 0 008 8V22.5562A3.9557 3.9557 0 006 22a4 4 0 104 4V8h7zM6 28a2 2 0 112-2A2.0023 2.0023 0 016 28z\"\n })), children);\n});\nvar NameSpace32 = /*#__PURE__*/React.forwardRef(function NameSpace32(_ref62, ref) {\n var children = _ref62.children,\n rest = _objectWithoutProperties(_ref62, _excluded62);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path78 || (_path78 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 12H4a2.0023 2.0023 0 01-2-2V6A2.0023 2.0023 0 014 4H7V6H4v4H7zM9 10H15V12H9zM17 10H23V12H17zM28 12H25V10h3V6H25V4h3a2.0023 2.0023 0 012 2v4A2.0023 2.0023 0 0128 12zM17 4H23V6H17zM9 4H15V6H9zM28 28H4a2.0023 2.0023 0 01-2-2V22a2.0023 2.0023 0 012-2H28a2.0023 2.0023 0 012 2v4A2.0023 2.0023 0 0128 28zM4 22v4H28V22zM2 15H30V17H2z\"\n })), children);\n});\nvar NameSpace24 = /*#__PURE__*/React.forwardRef(function NameSpace24(_ref63, ref) {\n var children = _ref63.children,\n rest = _objectWithoutProperties(_ref63, _excluded63);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path79 || (_path79 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 12H4a2.0023 2.0023 0 01-2-2V6A2.0023 2.0023 0 014 4H7V6H4v4H7zM9 10H15V12H9zM17 10H23V12H17zM28 12H25V10h3V6H25V4h3a2.0023 2.0023 0 012 2v4A2.0023 2.0023 0 0128 12zM17 4H23V6H17zM9 4H15V6H9zM28 28H4a2.0023 2.0023 0 01-2-2V22a2.0023 2.0023 0 012-2H28a2.0023 2.0023 0 012 2v4A2.0023 2.0023 0 0128 28zM4 22v4H28V22zM2 15H30V17H2z\"\n })), children);\n});\nvar NameSpace20 = /*#__PURE__*/React.forwardRef(function NameSpace20(_ref64, ref) {\n var children = _ref64.children,\n rest = _objectWithoutProperties(_ref64, _excluded64);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path80 || (_path80 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 12H4a2.0023 2.0023 0 01-2-2V6A2.0023 2.0023 0 014 4H7V6H4v4H7zM9 10H15V12H9zM17 10H23V12H17zM28 12H25V10h3V6H25V4h3a2.0023 2.0023 0 012 2v4A2.0023 2.0023 0 0128 12zM17 4H23V6H17zM9 4H15V6H9zM28 28H4a2.0023 2.0023 0 01-2-2V22a2.0023 2.0023 0 012-2H28a2.0023 2.0023 0 012 2v4A2.0023 2.0023 0 0128 28zM4 22v4H28V22zM2 15H30V17H2z\"\n })), children);\n});\nvar NameSpace16 = /*#__PURE__*/React.forwardRef(function NameSpace16(_ref65, ref) {\n var children = _ref65.children,\n rest = _objectWithoutProperties(_ref65, _excluded65);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path81 || (_path81 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 12H4a2.0023 2.0023 0 01-2-2V6A2.0023 2.0023 0 014 4H7V6H4v4H7zM9 10H15V12H9zM17 10H23V12H17zM28 12H25V10h3V6H25V4h3a2.0023 2.0023 0 012 2v4A2.0023 2.0023 0 0128 12zM17 4H23V6H17zM9 4H15V6H9zM28 28H4a2.0023 2.0023 0 01-2-2V22a2.0023 2.0023 0 012-2H28a2.0023 2.0023 0 012 2v4A2.0023 2.0023 0 0128 28zM4 22v4H28V22zM2 15H30V17H2z\"\n })), children);\n});\nvar NavaidCivil32 = /*#__PURE__*/React.forwardRef(function NavaidCivil32(_ref66, ref) {\n var children = _ref66.children,\n rest = _objectWithoutProperties(_ref66, _excluded66);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path82 || (_path82 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,14H27.8193A12.0112,12.0112,0,0,0,18,4.1807V2H14V4.1807A12.0112,12.0112,0,0,0,4.1807,14H2v4H4.1807A12.0112,12.0112,0,0,0,14,27.8193V30h4V27.8193A12.0112,12.0112,0,0,0,27.8193,18H30ZM16,26A10,10,0,1,1,26,16,10.0114,10.0114,0,0,1,16,26Z\"\n })), children);\n});\nvar NavaidCivil24 = /*#__PURE__*/React.forwardRef(function NavaidCivil24(_ref67, ref) {\n var children = _ref67.children,\n rest = _objectWithoutProperties(_ref67, _excluded67);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path83 || (_path83 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,14H27.8193A12.0112,12.0112,0,0,0,18,4.1807V2H14V4.1807A12.0112,12.0112,0,0,0,4.1807,14H2v4H4.1807A12.0112,12.0112,0,0,0,14,27.8193V30h4V27.8193A12.0112,12.0112,0,0,0,27.8193,18H30ZM16,26A10,10,0,1,1,26,16,10.0114,10.0114,0,0,1,16,26Z\"\n })), children);\n});\nvar NavaidCivil20 = /*#__PURE__*/React.forwardRef(function NavaidCivil20(_ref68, ref) {\n var children = _ref68.children,\n rest = _objectWithoutProperties(_ref68, _excluded68);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path84 || (_path84 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,14H27.8193A12.0112,12.0112,0,0,0,18,4.1807V2H14V4.1807A12.0112,12.0112,0,0,0,4.1807,14H2v4H4.1807A12.0112,12.0112,0,0,0,14,27.8193V30h4V27.8193A12.0112,12.0112,0,0,0,27.8193,18H30ZM16,26A10,10,0,1,1,26,16,10.0114,10.0114,0,0,1,16,26Z\"\n })), children);\n});\nvar NavaidCivil16 = /*#__PURE__*/React.forwardRef(function NavaidCivil16(_ref69, ref) {\n var children = _ref69.children,\n rest = _objectWithoutProperties(_ref69, _excluded69);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path85 || (_path85 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,14H27.8193A12.0112,12.0112,0,0,0,18,4.1807V2H14V4.1807A12.0112,12.0112,0,0,0,4.1807,14H2v4H4.1807A12.0112,12.0112,0,0,0,14,27.8193V30h4V27.8193A12.0112,12.0112,0,0,0,27.8193,18H30ZM16,26A10,10,0,1,1,26,16,10.0114,10.0114,0,0,1,16,26Z\"\n })), children);\n});\nvar NavaidDme32 = /*#__PURE__*/React.forwardRef(function NavaidDme32(_ref70, ref) {\n var children = _ref70.children,\n rest = _objectWithoutProperties(_ref70, _excluded70);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path86 || (_path86 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,20a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,20Zm0-6a2,2,0,1,0,2,2A2.0021,2.0021,0,0,0,16,14Z\"\n })), _path87 || (_path87 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,24H8a2.0021,2.0021,0,0,1-2-2V10A2.0021,2.0021,0,0,1,8,8H24a2.0021,2.0021,0,0,1,2,2V22A2.0021,2.0021,0,0,1,24,24ZM8,10V22H24V10Z\"\n })), _path88 || (_path88 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,28H4a2.0021,2.0021,0,0,1-2-2V6A2.0021,2.0021,0,0,1,4,4H28a2.0021,2.0021,0,0,1,2,2V26A2.0021,2.0021,0,0,1,28,28ZM4,6V26H28V6Z\"\n })), children);\n});\nvar NavaidDme24 = /*#__PURE__*/React.forwardRef(function NavaidDme24(_ref71, ref) {\n var children = _ref71.children,\n rest = _objectWithoutProperties(_ref71, _excluded71);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path89 || (_path89 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,20a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,20Zm0-6a2,2,0,1,0,2,2A2.0021,2.0021,0,0,0,16,14Z\"\n })), _path90 || (_path90 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,24H8a2.0021,2.0021,0,0,1-2-2V10A2.0021,2.0021,0,0,1,8,8H24a2.0021,2.0021,0,0,1,2,2V22A2.0021,2.0021,0,0,1,24,24ZM8,10V22H24V10Z\"\n })), _path91 || (_path91 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,28H4a2.0021,2.0021,0,0,1-2-2V6A2.0021,2.0021,0,0,1,4,4H28a2.0021,2.0021,0,0,1,2,2V26A2.0021,2.0021,0,0,1,28,28ZM4,6V26H28V6Z\"\n })), children);\n});\nvar NavaidDme20 = /*#__PURE__*/React.forwardRef(function NavaidDme20(_ref72, ref) {\n var children = _ref72.children,\n rest = _objectWithoutProperties(_ref72, _excluded72);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path92 || (_path92 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,20a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,20Zm0-6a2,2,0,1,0,2,2A2.0021,2.0021,0,0,0,16,14Z\"\n })), _path93 || (_path93 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,24H8a2.0021,2.0021,0,0,1-2-2V10A2.0021,2.0021,0,0,1,8,8H24a2.0021,2.0021,0,0,1,2,2V22A2.0021,2.0021,0,0,1,24,24ZM8,10V22H24V10Z\"\n })), _path94 || (_path94 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,28H4a2.0021,2.0021,0,0,1-2-2V6A2.0021,2.0021,0,0,1,4,4H28a2.0021,2.0021,0,0,1,2,2V26A2.0021,2.0021,0,0,1,28,28ZM4,6V26H28V6Z\"\n })), children);\n});\nvar NavaidDme16 = /*#__PURE__*/React.forwardRef(function NavaidDme16(_ref73, ref) {\n var children = _ref73.children,\n rest = _objectWithoutProperties(_ref73, _excluded73);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path95 || (_path95 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,20a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,20Zm0-6a2,2,0,1,0,2,2A2.0021,2.0021,0,0,0,16,14Z\"\n })), _path96 || (_path96 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,24H8a2.0021,2.0021,0,0,1-2-2V10A2.0021,2.0021,0,0,1,8,8H24a2.0021,2.0021,0,0,1,2,2V22A2.0021,2.0021,0,0,1,24,24ZM8,10V22H24V10Z\"\n })), _path97 || (_path97 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,28H4a2.0021,2.0021,0,0,1-2-2V6A2.0021,2.0021,0,0,1,4,4H28a2.0021,2.0021,0,0,1,2,2V26A2.0021,2.0021,0,0,1,28,28ZM4,6V26H28V6Z\"\n })), children);\n});\nvar NavaidHelipad32 = /*#__PURE__*/React.forwardRef(function NavaidHelipad32(_ref74, ref) {\n var children = _ref74.children,\n rest = _objectWithoutProperties(_ref74, _excluded74);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path98 || (_path98 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 9L18 15 14 15 14 9 12 9 12 23 14 23 14 17 18 17 18 23 20 23 20 9 18 9z\"\n })), _path99 || (_path99 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar NavaidHelipad24 = /*#__PURE__*/React.forwardRef(function NavaidHelipad24(_ref75, ref) {\n var children = _ref75.children,\n rest = _objectWithoutProperties(_ref75, _excluded75);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path100 || (_path100 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 9L18 15 14 15 14 9 12 9 12 23 14 23 14 17 18 17 18 23 20 23 20 9 18 9z\"\n })), _path101 || (_path101 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar NavaidHelipad20 = /*#__PURE__*/React.forwardRef(function NavaidHelipad20(_ref76, ref) {\n var children = _ref76.children,\n rest = _objectWithoutProperties(_ref76, _excluded76);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path102 || (_path102 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 9L18 15 14 15 14 9 12 9 12 23 14 23 14 17 18 17 18 23 20 23 20 9 18 9z\"\n })), _path103 || (_path103 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar NavaidHelipad16 = /*#__PURE__*/React.forwardRef(function NavaidHelipad16(_ref77, ref) {\n var children = _ref77.children,\n rest = _objectWithoutProperties(_ref77, _excluded77);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path104 || (_path104 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 9L18 15 14 15 14 9 12 9 12 23 14 23 14 17 18 17 18 23 20 23 20 9 18 9z\"\n })), _path105 || (_path105 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar NavaidMilitary32 = /*#__PURE__*/React.forwardRef(function NavaidMilitary32(_ref78, ref) {\n var children = _ref78.children,\n rest = _objectWithoutProperties(_ref78, _excluded78);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path106 || (_path106 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), _path107 || (_path107 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,24a8,8,0,1,1,8-8A8.0092,8.0092,0,0,1,16,24Zm0-14a6,6,0,1,0,6,6A6.0067,6.0067,0,0,0,16,10Z\"\n })), _circle || (_circle = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), children);\n});\nvar NavaidMilitary24 = /*#__PURE__*/React.forwardRef(function NavaidMilitary24(_ref79, ref) {\n var children = _ref79.children,\n rest = _objectWithoutProperties(_ref79, _excluded79);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path108 || (_path108 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), _path109 || (_path109 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,24a8,8,0,1,1,8-8A8.0092,8.0092,0,0,1,16,24Zm0-14a6,6,0,1,0,6,6A6.0067,6.0067,0,0,0,16,10Z\"\n })), _circle2 || (_circle2 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), children);\n});\nvar NavaidMilitary20 = /*#__PURE__*/React.forwardRef(function NavaidMilitary20(_ref80, ref) {\n var children = _ref80.children,\n rest = _objectWithoutProperties(_ref80, _excluded80);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path110 || (_path110 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), _path111 || (_path111 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,24a8,8,0,1,1,8-8A8.0092,8.0092,0,0,1,16,24Zm0-14a6,6,0,1,0,6,6A6.0067,6.0067,0,0,0,16,10Z\"\n })), _circle3 || (_circle3 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), children);\n});\nvar NavaidMilitary16 = /*#__PURE__*/React.forwardRef(function NavaidMilitary16(_ref81, ref) {\n var children = _ref81.children,\n rest = _objectWithoutProperties(_ref81, _excluded81);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path112 || (_path112 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), _path113 || (_path113 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,24a8,8,0,1,1,8-8A8.0092,8.0092,0,0,1,16,24Zm0-14a6,6,0,1,0,6,6A6.0067,6.0067,0,0,0,16,10Z\"\n })), _circle4 || (_circle4 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), children);\n});\nvar NavaidMilitaryCivil32 = /*#__PURE__*/React.forwardRef(function NavaidMilitaryCivil32(_ref82, ref) {\n var children = _ref82.children,\n rest = _objectWithoutProperties(_ref82, _excluded82);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path114 || (_path114 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,24a8,8,0,1,1,8-8A8.0092,8.0092,0,0,1,16,24Zm0-14a6,6,0,1,0,6,6A6.0067,6.0067,0,0,0,16,10Z\"\n })), _path115 || (_path115 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,14H27.8193A12.0112,12.0112,0,0,0,18,4.1807V2H14V4.1807A12.0112,12.0112,0,0,0,4.1807,14H2v4H4.1807A12.0112,12.0112,0,0,0,14,27.8193V30h4V27.8193A12.0112,12.0112,0,0,0,27.8193,18H30ZM16,26A10,10,0,1,1,26,16,10.0114,10.0114,0,0,1,16,26Z\"\n })), children);\n});\nvar NavaidMilitaryCivil24 = /*#__PURE__*/React.forwardRef(function NavaidMilitaryCivil24(_ref83, ref) {\n var children = _ref83.children,\n rest = _objectWithoutProperties(_ref83, _excluded83);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path116 || (_path116 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,24a8,8,0,1,1,8-8A8.0092,8.0092,0,0,1,16,24Zm0-14a6,6,0,1,0,6,6A6.0067,6.0067,0,0,0,16,10Z\"\n })), _path117 || (_path117 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,14H27.8193A12.0112,12.0112,0,0,0,18,4.1807V2H14V4.1807A12.0112,12.0112,0,0,0,4.1807,14H2v4H4.1807A12.0112,12.0112,0,0,0,14,27.8193V30h4V27.8193A12.0112,12.0112,0,0,0,27.8193,18H30ZM16,26A10,10,0,1,1,26,16,10.0114,10.0114,0,0,1,16,26Z\"\n })), children);\n});\nvar NavaidMilitaryCivil20 = /*#__PURE__*/React.forwardRef(function NavaidMilitaryCivil20(_ref84, ref) {\n var children = _ref84.children,\n rest = _objectWithoutProperties(_ref84, _excluded84);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path118 || (_path118 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,24a8,8,0,1,1,8-8A8.0092,8.0092,0,0,1,16,24Zm0-14a6,6,0,1,0,6,6A6.0067,6.0067,0,0,0,16,10Z\"\n })), _path119 || (_path119 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,14H27.8193A12.0112,12.0112,0,0,0,18,4.1807V2H14V4.1807A12.0112,12.0112,0,0,0,4.1807,14H2v4H4.1807A12.0112,12.0112,0,0,0,14,27.8193V30h4V27.8193A12.0112,12.0112,0,0,0,27.8193,18H30ZM16,26A10,10,0,1,1,26,16,10.0114,10.0114,0,0,1,16,26Z\"\n })), children);\n});\nvar NavaidMilitaryCivil16 = /*#__PURE__*/React.forwardRef(function NavaidMilitaryCivil16(_ref85, ref) {\n var children = _ref85.children,\n rest = _objectWithoutProperties(_ref85, _excluded85);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path120 || (_path120 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,24a8,8,0,1,1,8-8A8.0092,8.0092,0,0,1,16,24Zm0-14a6,6,0,1,0,6,6A6.0067,6.0067,0,0,0,16,10Z\"\n })), _path121 || (_path121 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,14H27.8193A12.0112,12.0112,0,0,0,18,4.1807V2H14V4.1807A12.0112,12.0112,0,0,0,4.1807,14H2v4H4.1807A12.0112,12.0112,0,0,0,14,27.8193V30h4V27.8193A12.0112,12.0112,0,0,0,27.8193,18H30ZM16,26A10,10,0,1,1,26,16,10.0114,10.0114,0,0,1,16,26Z\"\n })), children);\n});\nvar NavaidNdb32 = /*#__PURE__*/React.forwardRef(function NavaidNdb32(_ref86, ref) {\n var children = _ref86.children,\n rest = _objectWithoutProperties(_ref86, _excluded86);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path122 || (_path122 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,24a8,8,0,1,1,8-8A8.0092,8.0092,0,0,1,16,24Zm0-14a6,6,0,1,0,6,6A6.0067,6.0067,0,0,0,16,10Z\"\n })), _circle5 || (_circle5 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), _circle6 || (_circle6 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"4\",\n r: \"2\"\n })), _circle7 || (_circle7 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"28\",\n r: \"2\"\n })), _circle8 || (_circle8 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"28\",\n cy: \"16\",\n r: \"2\"\n })), _circle9 || (_circle9 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"4\",\n cy: \"16\",\n r: \"2\"\n })), _circle10 || (_circle10 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7.515\",\n cy: \"7.515\",\n r: \"2\"\n })), _circle11 || (_circle11 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"24.485\",\n cy: \"24.485\",\n r: \"2\"\n })), _circle12 || (_circle12 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"24.485\",\n cy: \"7.515\",\n r: \"2\"\n })), _circle13 || (_circle13 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7.515\",\n cy: \"24.485\",\n r: \"2\"\n })), children);\n});\nvar NavaidNdb24 = /*#__PURE__*/React.forwardRef(function NavaidNdb24(_ref87, ref) {\n var children = _ref87.children,\n rest = _objectWithoutProperties(_ref87, _excluded87);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path123 || (_path123 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,24a8,8,0,1,1,8-8A8.0092,8.0092,0,0,1,16,24Zm0-14a6,6,0,1,0,6,6A6.0067,6.0067,0,0,0,16,10Z\"\n })), _circle14 || (_circle14 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), _circle15 || (_circle15 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"4\",\n r: \"2\"\n })), _circle16 || (_circle16 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"28\",\n r: \"2\"\n })), _circle17 || (_circle17 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"28\",\n cy: \"16\",\n r: \"2\"\n })), _circle18 || (_circle18 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"4\",\n cy: \"16\",\n r: \"2\"\n })), _circle19 || (_circle19 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7.515\",\n cy: \"7.515\",\n r: \"2\"\n })), _circle20 || (_circle20 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"24.485\",\n cy: \"24.485\",\n r: \"2\"\n })), _circle21 || (_circle21 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"24.485\",\n cy: \"7.515\",\n r: \"2\"\n })), _circle22 || (_circle22 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7.515\",\n cy: \"24.485\",\n r: \"2\"\n })), children);\n});\nvar NavaidNdb20 = /*#__PURE__*/React.forwardRef(function NavaidNdb20(_ref88, ref) {\n var children = _ref88.children,\n rest = _objectWithoutProperties(_ref88, _excluded88);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path124 || (_path124 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,24a8,8,0,1,1,8-8A8.0092,8.0092,0,0,1,16,24Zm0-14a6,6,0,1,0,6,6A6.0067,6.0067,0,0,0,16,10Z\"\n })), _circle23 || (_circle23 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), _circle24 || (_circle24 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"4\",\n r: \"2\"\n })), _circle25 || (_circle25 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"28\",\n r: \"2\"\n })), _circle26 || (_circle26 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"28\",\n cy: \"16\",\n r: \"2\"\n })), _circle27 || (_circle27 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"4\",\n cy: \"16\",\n r: \"2\"\n })), _circle28 || (_circle28 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7.515\",\n cy: \"7.515\",\n r: \"2\"\n })), _circle29 || (_circle29 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"24.485\",\n cy: \"24.485\",\n r: \"2\"\n })), _circle30 || (_circle30 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"24.485\",\n cy: \"7.515\",\n r: \"2\"\n })), _circle31 || (_circle31 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7.515\",\n cy: \"24.485\",\n r: \"2\"\n })), children);\n});\nvar NavaidNdb16 = /*#__PURE__*/React.forwardRef(function NavaidNdb16(_ref89, ref) {\n var children = _ref89.children,\n rest = _objectWithoutProperties(_ref89, _excluded89);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path125 || (_path125 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,24a8,8,0,1,1,8-8A8.0092,8.0092,0,0,1,16,24Zm0-14a6,6,0,1,0,6,6A6.0067,6.0067,0,0,0,16,10Z\"\n })), _circle32 || (_circle32 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), _circle33 || (_circle33 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"4\",\n r: \"2\"\n })), _circle34 || (_circle34 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"28\",\n r: \"2\"\n })), _circle35 || (_circle35 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"28\",\n cy: \"16\",\n r: \"2\"\n })), _circle36 || (_circle36 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"4\",\n cy: \"16\",\n r: \"2\"\n })), _circle37 || (_circle37 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7.515\",\n cy: \"7.515\",\n r: \"2\"\n })), _circle38 || (_circle38 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"24.485\",\n cy: \"24.485\",\n r: \"2\"\n })), _circle39 || (_circle39 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"24.485\",\n cy: \"7.515\",\n r: \"2\"\n })), _circle40 || (_circle40 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7.515\",\n cy: \"24.485\",\n r: \"2\"\n })), children);\n});\nvar NavaidNdbDme32 = /*#__PURE__*/React.forwardRef(function NavaidNdbDme32(_ref90, ref) {\n var children = _ref90.children,\n rest = _objectWithoutProperties(_ref90, _excluded90);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path126 || (_path126 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 12H2V4A2.0021 2.0021 0 014 2h8V4H4zM12 30H4a2.0021 2.0021 0 01-2-2V20H4v8h8zM28 30H20V28h8V20h2v8A2.0021 2.0021 0 0128 30zM30 12H28V4H20V2h8a2.0021 2.0021 0 012 2zM16 22a6 6 0 116-6A6.0067 6.0067 0 0116 22zm0-10a4 4 0 104 4A4.0045 4.0045 0 0016 12z\"\n })), _circle41 || (_circle41 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), _circle42 || (_circle42 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"7\",\n r: \"1\"\n })), _circle43 || (_circle43 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"3\",\n r: \"1\"\n })), _circle44 || (_circle44 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"25\",\n r: \"1\"\n })), _circle45 || (_circle45 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"29\",\n r: \"1\"\n })), _circle46 || (_circle46 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"25\",\n cy: \"16\",\n r: \"1\"\n })), _circle47 || (_circle47 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"29\",\n cy: \"16\",\n r: \"1\"\n })), _circle48 || (_circle48 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"16\",\n r: \"1\"\n })), _circle49 || (_circle49 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"3\",\n cy: \"16\",\n r: \"1\"\n })), _circle50 || (_circle50 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"9.636\",\n cy: \"9.636\",\n r: \"1\"\n })), _circle51 || (_circle51 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"7\",\n r: \"1\"\n })), _circle52 || (_circle52 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"22.364\",\n cy: \"22.364\",\n r: \"1\"\n })), _circle53 || (_circle53 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"25\",\n cy: \"25\",\n r: \"1\"\n })), _circle54 || (_circle54 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"22.364\",\n cy: \"9.636\",\n r: \"1\"\n })), _circle55 || (_circle55 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"25\",\n cy: \"7\",\n r: \"1\"\n })), _circle56 || (_circle56 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"9.636\",\n cy: \"22.364\",\n r: \"1\"\n })), _circle57 || (_circle57 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"25\",\n r: \"1\"\n })), children);\n});\nvar NavaidNdbDme24 = /*#__PURE__*/React.forwardRef(function NavaidNdbDme24(_ref91, ref) {\n var children = _ref91.children,\n rest = _objectWithoutProperties(_ref91, _excluded91);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path127 || (_path127 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 12H2V4A2.0021 2.0021 0 014 2h8V4H4zM12 30H4a2.0021 2.0021 0 01-2-2V20H4v8h8zM28 30H20V28h8V20h2v8A2.0021 2.0021 0 0128 30zM30 12H28V4H20V2h8a2.0021 2.0021 0 012 2zM16 22a6 6 0 116-6A6.0067 6.0067 0 0116 22zm0-10a4 4 0 104 4A4.0045 4.0045 0 0016 12z\"\n })), _circle58 || (_circle58 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), _circle59 || (_circle59 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"7\",\n r: \"1\"\n })), _circle60 || (_circle60 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"3\",\n r: \"1\"\n })), _circle61 || (_circle61 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"25\",\n r: \"1\"\n })), _circle62 || (_circle62 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"29\",\n r: \"1\"\n })), _circle63 || (_circle63 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"25\",\n cy: \"16\",\n r: \"1\"\n })), _circle64 || (_circle64 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"29\",\n cy: \"16\",\n r: \"1\"\n })), _circle65 || (_circle65 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"16\",\n r: \"1\"\n })), _circle66 || (_circle66 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"3\",\n cy: \"16\",\n r: \"1\"\n })), _circle67 || (_circle67 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"9.636\",\n cy: \"9.636\",\n r: \"1\"\n })), _circle68 || (_circle68 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"7\",\n r: \"1\"\n })), _circle69 || (_circle69 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"22.364\",\n cy: \"22.364\",\n r: \"1\"\n })), _circle70 || (_circle70 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"25\",\n cy: \"25\",\n r: \"1\"\n })), _circle71 || (_circle71 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"22.364\",\n cy: \"9.636\",\n r: \"1\"\n })), _circle72 || (_circle72 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"25\",\n cy: \"7\",\n r: \"1\"\n })), _circle73 || (_circle73 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"9.636\",\n cy: \"22.364\",\n r: \"1\"\n })), _circle74 || (_circle74 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"25\",\n r: \"1\"\n })), children);\n});\nvar NavaidNdbDme20 = /*#__PURE__*/React.forwardRef(function NavaidNdbDme20(_ref92, ref) {\n var children = _ref92.children,\n rest = _objectWithoutProperties(_ref92, _excluded92);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path128 || (_path128 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 12H2V4A2.0021 2.0021 0 014 2h8V4H4zM12 30H4a2.0021 2.0021 0 01-2-2V20H4v8h8zM28 30H20V28h8V20h2v8A2.0021 2.0021 0 0128 30zM30 12H28V4H20V2h8a2.0021 2.0021 0 012 2zM16 22a6 6 0 116-6A6.0067 6.0067 0 0116 22zm0-10a4 4 0 104 4A4.0045 4.0045 0 0016 12z\"\n })), _circle75 || (_circle75 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), _circle76 || (_circle76 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"7\",\n r: \"1\"\n })), _circle77 || (_circle77 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"3\",\n r: \"1\"\n })), _circle78 || (_circle78 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"25\",\n r: \"1\"\n })), _circle79 || (_circle79 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"29\",\n r: \"1\"\n })), _circle80 || (_circle80 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"25\",\n cy: \"16\",\n r: \"1\"\n })), _circle81 || (_circle81 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"29\",\n cy: \"16\",\n r: \"1\"\n })), _circle82 || (_circle82 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"16\",\n r: \"1\"\n })), _circle83 || (_circle83 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"3\",\n cy: \"16\",\n r: \"1\"\n })), _circle84 || (_circle84 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"9.636\",\n cy: \"9.636\",\n r: \"1\"\n })), _circle85 || (_circle85 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"7\",\n r: \"1\"\n })), _circle86 || (_circle86 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"22.364\",\n cy: \"22.364\",\n r: \"1\"\n })), _circle87 || (_circle87 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"25\",\n cy: \"25\",\n r: \"1\"\n })), _circle88 || (_circle88 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"22.364\",\n cy: \"9.636\",\n r: \"1\"\n })), _circle89 || (_circle89 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"25\",\n cy: \"7\",\n r: \"1\"\n })), _circle90 || (_circle90 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"9.636\",\n cy: \"22.364\",\n r: \"1\"\n })), _circle91 || (_circle91 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"25\",\n r: \"1\"\n })), children);\n});\nvar NavaidNdbDme16 = /*#__PURE__*/React.forwardRef(function NavaidNdbDme16(_ref93, ref) {\n var children = _ref93.children,\n rest = _objectWithoutProperties(_ref93, _excluded93);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path129 || (_path129 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 12H2V4A2.0021 2.0021 0 014 2h8V4H4zM12 30H4a2.0021 2.0021 0 01-2-2V20H4v8h8zM28 30H20V28h8V20h2v8A2.0021 2.0021 0 0128 30zM30 12H28V4H20V2h8a2.0021 2.0021 0 012 2zM16 22a6 6 0 116-6A6.0067 6.0067 0 0116 22zm0-10a4 4 0 104 4A4.0045 4.0045 0 0016 12z\"\n })), _circle92 || (_circle92 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), _circle93 || (_circle93 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"7\",\n r: \"1\"\n })), _circle94 || (_circle94 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"3\",\n r: \"1\"\n })), _circle95 || (_circle95 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"25\",\n r: \"1\"\n })), _circle96 || (_circle96 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"29\",\n r: \"1\"\n })), _circle97 || (_circle97 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"25\",\n cy: \"16\",\n r: \"1\"\n })), _circle98 || (_circle98 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"29\",\n cy: \"16\",\n r: \"1\"\n })), _circle99 || (_circle99 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"16\",\n r: \"1\"\n })), _circle100 || (_circle100 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"3\",\n cy: \"16\",\n r: \"1\"\n })), _circle101 || (_circle101 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"9.636\",\n cy: \"9.636\",\n r: \"1\"\n })), _circle102 || (_circle102 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"7\",\n r: \"1\"\n })), _circle103 || (_circle103 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"22.364\",\n cy: \"22.364\",\n r: \"1\"\n })), _circle104 || (_circle104 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"25\",\n cy: \"25\",\n r: \"1\"\n })), _circle105 || (_circle105 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"22.364\",\n cy: \"9.636\",\n r: \"1\"\n })), _circle106 || (_circle106 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"25\",\n cy: \"7\",\n r: \"1\"\n })), _circle107 || (_circle107 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"9.636\",\n cy: \"22.364\",\n r: \"1\"\n })), _circle108 || (_circle108 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"25\",\n r: \"1\"\n })), children);\n});\nvar NavaidPrivate32 = /*#__PURE__*/React.forwardRef(function NavaidPrivate32(_ref94, ref) {\n var children = _ref94.children,\n rest = _objectWithoutProperties(_ref94, _excluded94);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path130 || (_path130 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,15V11a2.0023,2.0023,0,0,0-2-2H12V23h2V17h1.4807l2.3345,6H19.96l-2.333-6H18A2.0027,2.0027,0,0,0,20,15Zm-6-4h4v4H14Z\"\n })), _path131 || (_path131 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar NavaidPrivate24 = /*#__PURE__*/React.forwardRef(function NavaidPrivate24(_ref95, ref) {\n var children = _ref95.children,\n rest = _objectWithoutProperties(_ref95, _excluded95);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path132 || (_path132 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,15V11a2.0023,2.0023,0,0,0-2-2H12V23h2V17h1.4807l2.3345,6H19.96l-2.333-6H18A2.0027,2.0027,0,0,0,20,15Zm-6-4h4v4H14Z\"\n })), _path133 || (_path133 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar NavaidPrivate20 = /*#__PURE__*/React.forwardRef(function NavaidPrivate20(_ref96, ref) {\n var children = _ref96.children,\n rest = _objectWithoutProperties(_ref96, _excluded96);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path134 || (_path134 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,15V11a2.0023,2.0023,0,0,0-2-2H12V23h2V17h1.4807l2.3345,6H19.96l-2.333-6H18A2.0027,2.0027,0,0,0,20,15Zm-6-4h4v4H14Z\"\n })), _path135 || (_path135 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar NavaidPrivate16 = /*#__PURE__*/React.forwardRef(function NavaidPrivate16(_ref97, ref) {\n var children = _ref97.children,\n rest = _objectWithoutProperties(_ref97, _excluded97);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path136 || (_path136 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,15V11a2.0023,2.0023,0,0,0-2-2H12V23h2V17h1.4807l2.3345,6H19.96l-2.333-6H18A2.0027,2.0027,0,0,0,20,15Zm-6-4h4v4H14Z\"\n })), _path137 || (_path137 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar NavaidSeaplane32 = /*#__PURE__*/React.forwardRef(function NavaidSeaplane32(_ref98, ref) {\n var children = _ref98.children,\n rest = _objectWithoutProperties(_ref98, _excluded98);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path138 || (_path138 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,18a3.9962,3.9962,0,0,1-3,3.8579V17h2V15H17V13.8159a3.0007,3.0007,0,1,0-2,0V15H13v2h2v4.8579A3.9962,3.9962,0,0,1,12,18H10a6,6,0,0,0,12,0Zm-4-8a1,1,0,1,1-1,1A1.0009,1.0009,0,0,1,16,10Z\"\n })), _path139 || (_path139 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,14H27.8193A12.0112,12.0112,0,0,0,18,4.1807V2H14V4.1807A12.0112,12.0112,0,0,0,4.1807,14H2v4H4.1807A12.0112,12.0112,0,0,0,14,27.8193V30h4V27.8193A12.0112,12.0112,0,0,0,27.8193,18H30ZM16,26A10,10,0,1,1,26,16,10.0114,10.0114,0,0,1,16,26Z\"\n })), children);\n});\nvar NavaidSeaplane24 = /*#__PURE__*/React.forwardRef(function NavaidSeaplane24(_ref99, ref) {\n var children = _ref99.children,\n rest = _objectWithoutProperties(_ref99, _excluded99);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path140 || (_path140 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,18a3.9962,3.9962,0,0,1-3,3.8579V17h2V15H17V13.8159a3.0007,3.0007,0,1,0-2,0V15H13v2h2v4.8579A3.9962,3.9962,0,0,1,12,18H10a6,6,0,0,0,12,0Zm-4-8a1,1,0,1,1-1,1A1.0009,1.0009,0,0,1,16,10Z\"\n })), _path141 || (_path141 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,14H27.8193A12.0112,12.0112,0,0,0,18,4.1807V2H14V4.1807A12.0112,12.0112,0,0,0,4.1807,14H2v4H4.1807A12.0112,12.0112,0,0,0,14,27.8193V30h4V27.8193A12.0112,12.0112,0,0,0,27.8193,18H30ZM16,26A10,10,0,1,1,26,16,10.0114,10.0114,0,0,1,16,26Z\"\n })), children);\n});\nvar NavaidSeaplane20 = /*#__PURE__*/React.forwardRef(function NavaidSeaplane20(_ref100, ref) {\n var children = _ref100.children,\n rest = _objectWithoutProperties(_ref100, _excluded100);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path142 || (_path142 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,18a3.9962,3.9962,0,0,1-3,3.8579V17h2V15H17V13.8159a3.0007,3.0007,0,1,0-2,0V15H13v2h2v4.8579A3.9962,3.9962,0,0,1,12,18H10a6,6,0,0,0,12,0Zm-4-8a1,1,0,1,1-1,1A1.0009,1.0009,0,0,1,16,10Z\"\n })), _path143 || (_path143 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,14H27.8193A12.0112,12.0112,0,0,0,18,4.1807V2H14V4.1807A12.0112,12.0112,0,0,0,4.1807,14H2v4H4.1807A12.0112,12.0112,0,0,0,14,27.8193V30h4V27.8193A12.0112,12.0112,0,0,0,27.8193,18H30ZM16,26A10,10,0,1,1,26,16,10.0114,10.0114,0,0,1,16,26Z\"\n })), children);\n});\nvar NavaidSeaplane16 = /*#__PURE__*/React.forwardRef(function NavaidSeaplane16(_ref101, ref) {\n var children = _ref101.children,\n rest = _objectWithoutProperties(_ref101, _excluded101);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path144 || (_path144 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,18a3.9962,3.9962,0,0,1-3,3.8579V17h2V15H17V13.8159a3.0007,3.0007,0,1,0-2,0V15H13v2h2v4.8579A3.9962,3.9962,0,0,1,12,18H10a6,6,0,0,0,12,0Zm-4-8a1,1,0,1,1-1,1A1.0009,1.0009,0,0,1,16,10Z\"\n })), _path145 || (_path145 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,14H27.8193A12.0112,12.0112,0,0,0,18,4.1807V2H14V4.1807A12.0112,12.0112,0,0,0,4.1807,14H2v4H4.1807A12.0112,12.0112,0,0,0,14,27.8193V30h4V27.8193A12.0112,12.0112,0,0,0,27.8193,18H30ZM16,26A10,10,0,1,1,26,16,10.0114,10.0114,0,0,1,16,26Z\"\n })), children);\n});\nvar NavaidTacan32 = /*#__PURE__*/React.forwardRef(function NavaidTacan32(_ref102, ref) {\n var children = _ref102.children,\n rest = _objectWithoutProperties(_ref102, _excluded102);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle109 || (_circle109 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"14\",\n r: \"2\"\n })), _path146 || (_path146 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,28H12a1,1,0,0,1-1-1V21.2656L7.2612,14.7231,2.4854,11.8574a1,1,0,0,1-.3536-1.3535l4-7a1,1,0,0,1,1.3828-.3613L12.2769,6h7.4462l4.7623-2.8574a1,1,0,0,1,1.3828.3613l4,7a1,1,0,0,1-.3536,1.3535l-4.7758,2.8657L21,21.2656V27A1,1,0,0,1,20,28Zm-7-2h6V20.7346l4.2616-7.4578,4.3844-2.6306L24.6387,5.3831,20.277,8H11.723L7.3613,5.3831,4.354,10.6462l4.3844,2.6306L13,20.7346Z\"\n })), children);\n});\nvar NavaidTacan24 = /*#__PURE__*/React.forwardRef(function NavaidTacan24(_ref103, ref) {\n var children = _ref103.children,\n rest = _objectWithoutProperties(_ref103, _excluded103);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle110 || (_circle110 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"14\",\n r: \"2\"\n })), _path147 || (_path147 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,28H12a1,1,0,0,1-1-1V21.2656L7.2612,14.7231,2.4854,11.8574a1,1,0,0,1-.3536-1.3535l4-7a1,1,0,0,1,1.3828-.3613L12.2769,6h7.4462l4.7623-2.8574a1,1,0,0,1,1.3828.3613l4,7a1,1,0,0,1-.3536,1.3535l-4.7758,2.8657L21,21.2656V27A1,1,0,0,1,20,28Zm-7-2h6V20.7346l4.2616-7.4578,4.3844-2.6306L24.6387,5.3831,20.277,8H11.723L7.3613,5.3831,4.354,10.6462l4.3844,2.6306L13,20.7346Z\"\n })), children);\n});\nvar NavaidTacan20 = /*#__PURE__*/React.forwardRef(function NavaidTacan20(_ref104, ref) {\n var children = _ref104.children,\n rest = _objectWithoutProperties(_ref104, _excluded104);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle111 || (_circle111 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"14\",\n r: \"2\"\n })), _path148 || (_path148 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,28H12a1,1,0,0,1-1-1V21.2656L7.2612,14.7231,2.4854,11.8574a1,1,0,0,1-.3536-1.3535l4-7a1,1,0,0,1,1.3828-.3613L12.2769,6h7.4462l4.7623-2.8574a1,1,0,0,1,1.3828.3613l4,7a1,1,0,0,1-.3536,1.3535l-4.7758,2.8657L21,21.2656V27A1,1,0,0,1,20,28Zm-7-2h6V20.7346l4.2616-7.4578,4.3844-2.6306L24.6387,5.3831,20.277,8H11.723L7.3613,5.3831,4.354,10.6462l4.3844,2.6306L13,20.7346Z\"\n })), children);\n});\nvar NavaidTacan16 = /*#__PURE__*/React.forwardRef(function NavaidTacan16(_ref105, ref) {\n var children = _ref105.children,\n rest = _objectWithoutProperties(_ref105, _excluded105);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle112 || (_circle112 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"14\",\n r: \"2\"\n })), _path149 || (_path149 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,28H12a1,1,0,0,1-1-1V21.2656L7.2612,14.7231,2.4854,11.8574a1,1,0,0,1-.3536-1.3535l4-7a1,1,0,0,1,1.3828-.3613L12.2769,6h7.4462l4.7623-2.8574a1,1,0,0,1,1.3828.3613l4,7a1,1,0,0,1-.3536,1.3535l-4.7758,2.8657L21,21.2656V27A1,1,0,0,1,20,28Zm-7-2h6V20.7346l4.2616-7.4578,4.3844-2.6306L24.6387,5.3831,20.277,8H11.723L7.3613,5.3831,4.354,10.6462l4.3844,2.6306L13,20.7346Z\"\n })), children);\n});\nvar NavaidVhfor32 = /*#__PURE__*/React.forwardRef(function NavaidVhfor32(_ref106, ref) {\n var children = _ref106.children,\n rest = _objectWithoutProperties(_ref106, _excluded106);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path150 || (_path150 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,28H10a1,1,0,0,1-.8438-.4631l-7-11a1,1,0,0,1,0-1.0738l7-11A1,1,0,0,1,10,4H22a1,1,0,0,1,.8438.4631l7,11a1,1,0,0,1,0,1.0738l-7,11A1,1,0,0,1,22,28ZM10.5488,26H21.4512l6.3633-10L21.4512,6H10.5488L4.1855,16Z\"\n })), _path151 || (_path151 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19.5,24h-7a1.0005,1.0005,0,0,1-.8413-.4592l-4.5-7a1.0016,1.0016,0,0,1,0-1.0816l4.5-7A1.0005,1.0005,0,0,1,12.5,8h7a1.0005,1.0005,0,0,1,.8413.4592l4.5,7a1.0016,1.0016,0,0,1,0,1.0816l-4.5,7A1.0005,1.0005,0,0,1,19.5,24Zm-6.4541-2h5.9082l3.8569-6-3.8569-6H13.0459L9.189,16Z\"\n })), children);\n});\nvar NavaidVhfor24 = /*#__PURE__*/React.forwardRef(function NavaidVhfor24(_ref107, ref) {\n var children = _ref107.children,\n rest = _objectWithoutProperties(_ref107, _excluded107);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path152 || (_path152 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,28H10a1,1,0,0,1-.8438-.4631l-7-11a1,1,0,0,1,0-1.0738l7-11A1,1,0,0,1,10,4H22a1,1,0,0,1,.8438.4631l7,11a1,1,0,0,1,0,1.0738l-7,11A1,1,0,0,1,22,28ZM10.5488,26H21.4512l6.3633-10L21.4512,6H10.5488L4.1855,16Z\"\n })), _path153 || (_path153 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19.5,24h-7a1.0005,1.0005,0,0,1-.8413-.4592l-4.5-7a1.0016,1.0016,0,0,1,0-1.0816l4.5-7A1.0005,1.0005,0,0,1,12.5,8h7a1.0005,1.0005,0,0,1,.8413.4592l4.5,7a1.0016,1.0016,0,0,1,0,1.0816l-4.5,7A1.0005,1.0005,0,0,1,19.5,24Zm-6.4541-2h5.9082l3.8569-6-3.8569-6H13.0459L9.189,16Z\"\n })), children);\n});\nvar NavaidVhfor20 = /*#__PURE__*/React.forwardRef(function NavaidVhfor20(_ref108, ref) {\n var children = _ref108.children,\n rest = _objectWithoutProperties(_ref108, _excluded108);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path154 || (_path154 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,28H10a1,1,0,0,1-.8438-.4631l-7-11a1,1,0,0,1,0-1.0738l7-11A1,1,0,0,1,10,4H22a1,1,0,0,1,.8438.4631l7,11a1,1,0,0,1,0,1.0738l-7,11A1,1,0,0,1,22,28ZM10.5488,26H21.4512l6.3633-10L21.4512,6H10.5488L4.1855,16Z\"\n })), _path155 || (_path155 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19.5,24h-7a1.0005,1.0005,0,0,1-.8413-.4592l-4.5-7a1.0016,1.0016,0,0,1,0-1.0816l4.5-7A1.0005,1.0005,0,0,1,12.5,8h7a1.0005,1.0005,0,0,1,.8413.4592l4.5,7a1.0016,1.0016,0,0,1,0,1.0816l-4.5,7A1.0005,1.0005,0,0,1,19.5,24Zm-6.4541-2h5.9082l3.8569-6-3.8569-6H13.0459L9.189,16Z\"\n })), children);\n});\nvar NavaidVhfor16 = /*#__PURE__*/React.forwardRef(function NavaidVhfor16(_ref109, ref) {\n var children = _ref109.children,\n rest = _objectWithoutProperties(_ref109, _excluded109);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path156 || (_path156 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,28H10a1,1,0,0,1-.8438-.4631l-7-11a1,1,0,0,1,0-1.0738l7-11A1,1,0,0,1,10,4H22a1,1,0,0,1,.8438.4631l7,11a1,1,0,0,1,0,1.0738l-7,11A1,1,0,0,1,22,28ZM10.5488,26H21.4512l6.3633-10L21.4512,6H10.5488L4.1855,16Z\"\n })), _path157 || (_path157 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19.5,24h-7a1.0005,1.0005,0,0,1-.8413-.4592l-4.5-7a1.0016,1.0016,0,0,1,0-1.0816l4.5-7A1.0005,1.0005,0,0,1,12.5,8h7a1.0005,1.0005,0,0,1,.8413.4592l4.5,7a1.0016,1.0016,0,0,1,0,1.0816l-4.5,7A1.0005,1.0005,0,0,1,19.5,24Zm-6.4541-2h5.9082l3.8569-6-3.8569-6H13.0459L9.189,16Z\"\n })), children);\n});\nvar NavaidVor32 = /*#__PURE__*/React.forwardRef(function NavaidVor32(_ref110, ref) {\n var children = _ref110.children,\n rest = _objectWithoutProperties(_ref110, _excluded110);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle113 || (_circle113 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), _path158 || (_path158 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30.8638,15.4961l-7-12A1,1,0,0,0,23,3H9a1,1,0,0,0-.8638.4961l-7,12a1,1,0,0,0,0,1.0078l7,12A1,1,0,0,0,9,29H23a1,1,0,0,0,.8638-.4961l7-12a1,1,0,0,0,0-1.0078ZM22.4258,27H9.5742L3.1577,16,9.5742,5H22.4258l6.4165,11Z\"\n })), children);\n});\nvar NavaidVor24 = /*#__PURE__*/React.forwardRef(function NavaidVor24(_ref111, ref) {\n var children = _ref111.children,\n rest = _objectWithoutProperties(_ref111, _excluded111);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle114 || (_circle114 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), _path159 || (_path159 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30.8638,15.4961l-7-12A1,1,0,0,0,23,3H9a1,1,0,0,0-.8638.4961l-7,12a1,1,0,0,0,0,1.0078l7,12A1,1,0,0,0,9,29H23a1,1,0,0,0,.8638-.4961l7-12a1,1,0,0,0,0-1.0078ZM22.4258,27H9.5742L3.1577,16,9.5742,5H22.4258l6.4165,11Z\"\n })), children);\n});\nvar NavaidVor20 = /*#__PURE__*/React.forwardRef(function NavaidVor20(_ref112, ref) {\n var children = _ref112.children,\n rest = _objectWithoutProperties(_ref112, _excluded112);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle115 || (_circle115 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), _path160 || (_path160 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30.8638,15.4961l-7-12A1,1,0,0,0,23,3H9a1,1,0,0,0-.8638.4961l-7,12a1,1,0,0,0,0,1.0078l7,12A1,1,0,0,0,9,29H23a1,1,0,0,0,.8638-.4961l7-12a1,1,0,0,0,0-1.0078ZM22.4258,27H9.5742L3.1577,16,9.5742,5H22.4258l6.4165,11Z\"\n })), children);\n});\nvar NavaidVor16 = /*#__PURE__*/React.forwardRef(function NavaidVor16(_ref113, ref) {\n var children = _ref113.children,\n rest = _objectWithoutProperties(_ref113, _excluded113);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle116 || (_circle116 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), _path161 || (_path161 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30.8638,15.4961l-7-12A1,1,0,0,0,23,3H9a1,1,0,0,0-.8638.4961l-7,12a1,1,0,0,0,0,1.0078l7,12A1,1,0,0,0,9,29H23a1,1,0,0,0,.8638-.4961l7-12a1,1,0,0,0,0-1.0078ZM22.4258,27H9.5742L3.1577,16,9.5742,5H22.4258l6.4165,11Z\"\n })), children);\n});\nvar NavaidVordme32 = /*#__PURE__*/React.forwardRef(function NavaidVordme32(_ref114, ref) {\n var children = _ref114.children,\n rest = _objectWithoutProperties(_ref114, _excluded114);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle117 || (_circle117 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), _path162 || (_path162 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,6a2.0023,2.0023,0,0,0-2-2H4A2.0023,2.0023,0,0,0,2,6V26a2.0023,2.0023,0,0,0,2,2H28a2.0023,2.0023,0,0,0,2-2Zm-2,6.9258L22.9636,6H28ZM27.7637,16,20.491,26H11.509L4.2363,16,11.509,6h8.982ZM9.0364,6,4,12.9248V6ZM4,19.0752,9.0364,26H4ZM22.9636,26l5.0374-6.9263L28,26Z\"\n })), children);\n});\nvar NavaidVordme24 = /*#__PURE__*/React.forwardRef(function NavaidVordme24(_ref115, ref) {\n var children = _ref115.children,\n rest = _objectWithoutProperties(_ref115, _excluded115);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle118 || (_circle118 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), _path163 || (_path163 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,6a2.0023,2.0023,0,0,0-2-2H4A2.0023,2.0023,0,0,0,2,6V26a2.0023,2.0023,0,0,0,2,2H28a2.0023,2.0023,0,0,0,2-2Zm-2,6.9258L22.9636,6H28ZM27.7637,16,20.491,26H11.509L4.2363,16,11.509,6h8.982ZM9.0364,6,4,12.9248V6ZM4,19.0752,9.0364,26H4ZM22.9636,26l5.0374-6.9263L28,26Z\"\n })), children);\n});\nvar NavaidVordme20 = /*#__PURE__*/React.forwardRef(function NavaidVordme20(_ref116, ref) {\n var children = _ref116.children,\n rest = _objectWithoutProperties(_ref116, _excluded116);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle119 || (_circle119 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), _path164 || (_path164 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,6a2.0023,2.0023,0,0,0-2-2H4A2.0023,2.0023,0,0,0,2,6V26a2.0023,2.0023,0,0,0,2,2H28a2.0023,2.0023,0,0,0,2-2Zm-2,6.9258L22.9636,6H28ZM27.7637,16,20.491,26H11.509L4.2363,16,11.509,6h8.982ZM9.0364,6,4,12.9248V6ZM4,19.0752,9.0364,26H4ZM22.9636,26l5.0374-6.9263L28,26Z\"\n })), children);\n});\nvar NavaidVordme16 = /*#__PURE__*/React.forwardRef(function NavaidVordme16(_ref117, ref) {\n var children = _ref117.children,\n rest = _objectWithoutProperties(_ref117, _excluded117);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle120 || (_circle120 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), _path165 || (_path165 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,6a2.0023,2.0023,0,0,0-2-2H4A2.0023,2.0023,0,0,0,2,6V26a2.0023,2.0023,0,0,0,2,2H28a2.0023,2.0023,0,0,0,2-2Zm-2,6.9258L22.9636,6H28ZM27.7637,16,20.491,26H11.509L4.2363,16,11.509,6h8.982ZM9.0364,6,4,12.9248V6ZM4,19.0752,9.0364,26H4ZM22.9636,26l5.0374-6.9263L28,26Z\"\n })), children);\n});\nvar NavaidVortac32 = /*#__PURE__*/React.forwardRef(function NavaidVortac32(_ref118, ref) {\n var children = _ref118.children,\n rest = _objectWithoutProperties(_ref118, _excluded118);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle121 || (_circle121 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"14\",\n r: \"2\"\n })), _path166 || (_path166 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.8682,10.5039l-4-7a.9992.9992,0,0,0-1.3828-.3613L19.7231,6H12.2769L7.5146,3.1426a.9992.9992,0,0,0-1.3828.3613l-4,7a1,1,0,0,0,.3536,1.3535l4.7758,2.8657L11,21.2656V27a1,1,0,0,0,1,1h8a1,1,0,0,0,1-1V21.2656l3.7388-6.5425,4.7758-2.8657A1,1,0,0,0,29.8682,10.5039ZM18.8484,21H13.1516L8.5757,12.9922,11.4287,8h9.1426l2.853,4.9922Z\"\n })), children);\n});\nvar NavaidVortac24 = /*#__PURE__*/React.forwardRef(function NavaidVortac24(_ref119, ref) {\n var children = _ref119.children,\n rest = _objectWithoutProperties(_ref119, _excluded119);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle122 || (_circle122 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"14\",\n r: \"2\"\n })), _path167 || (_path167 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.8682,10.5039l-4-7a.9992.9992,0,0,0-1.3828-.3613L19.7231,6H12.2769L7.5146,3.1426a.9992.9992,0,0,0-1.3828.3613l-4,7a1,1,0,0,0,.3536,1.3535l4.7758,2.8657L11,21.2656V27a1,1,0,0,0,1,1h8a1,1,0,0,0,1-1V21.2656l3.7388-6.5425,4.7758-2.8657A1,1,0,0,0,29.8682,10.5039ZM18.8484,21H13.1516L8.5757,12.9922,11.4287,8h9.1426l2.853,4.9922Z\"\n })), children);\n});\nvar NavaidVortac20 = /*#__PURE__*/React.forwardRef(function NavaidVortac20(_ref120, ref) {\n var children = _ref120.children,\n rest = _objectWithoutProperties(_ref120, _excluded120);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle123 || (_circle123 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"14\",\n r: \"2\"\n })), _path168 || (_path168 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.8682,10.5039l-4-7a.9992.9992,0,0,0-1.3828-.3613L19.7231,6H12.2769L7.5146,3.1426a.9992.9992,0,0,0-1.3828.3613l-4,7a1,1,0,0,0,.3536,1.3535l4.7758,2.8657L11,21.2656V27a1,1,0,0,0,1,1h8a1,1,0,0,0,1-1V21.2656l3.7388-6.5425,4.7758-2.8657A1,1,0,0,0,29.8682,10.5039ZM18.8484,21H13.1516L8.5757,12.9922,11.4287,8h9.1426l2.853,4.9922Z\"\n })), children);\n});\nvar NavaidVortac16 = /*#__PURE__*/React.forwardRef(function NavaidVortac16(_ref121, ref) {\n var children = _ref121.children,\n rest = _objectWithoutProperties(_ref121, _excluded121);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle124 || (_circle124 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"14\",\n r: \"2\"\n })), _path169 || (_path169 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.8682,10.5039l-4-7a.9992.9992,0,0,0-1.3828-.3613L19.7231,6H12.2769L7.5146,3.1426a.9992.9992,0,0,0-1.3828.3613l-4,7a1,1,0,0,0,.3536,1.3535l4.7758,2.8657L11,21.2656V27a1,1,0,0,0,1,1h8a1,1,0,0,0,1-1V21.2656l3.7388-6.5425,4.7758-2.8657A1,1,0,0,0,29.8682,10.5039ZM18.8484,21H13.1516L8.5757,12.9922,11.4287,8h9.1426l2.853,4.9922Z\"\n })), children);\n});\nvar Network_132 = /*#__PURE__*/React.forwardRef(function Network_132(_ref122, ref) {\n var children = _ref122.children,\n rest = _objectWithoutProperties(_ref122, _excluded122);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path170 || (_path170 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 20a4 4 0 114-4A4.0045 4.0045 0 0116 20zm0-6a2 2 0 102 2A2.0021 2.0021 0 0016 14zM5 20a4 4 0 114-4A4.0045 4.0045 0 015 20zm0-6a2 2 0 102 2A2.0023 2.0023 0 005 14zM10 31a4 4 0 114-4A4.0045 4.0045 0 0110 31zm0-6a2 2 0 102 2A2.0021 2.0021 0 0010 25zM22 31a4 4 0 114-4A4.0045 4.0045 0 0122 31zm0-6a2 2 0 102 2A2.0021 2.0021 0 0022 25zM27 20a4 4 0 114-4A4.0045 4.0045 0 0127 20zm0-6a2 2 0 102 2A2.0021 2.0021 0 0027 14zM22 9a4 4 0 114-4A4.0045 4.0045 0 0122 9zm0-6a2 2 0 102 2A2.0021 2.0021 0 0022 3zM10 9a4 4 0 114-4A4.0045 4.0045 0 0110 9zm0-6a2 2 0 102 2A2.0021 2.0021 0 0010 3z\"\n })), children);\n});\nvar Network_124 = /*#__PURE__*/React.forwardRef(function Network_124(_ref123, ref) {\n var children = _ref123.children,\n rest = _objectWithoutProperties(_ref123, _excluded123);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path171 || (_path171 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 20a4 4 0 114-4A4.0045 4.0045 0 0116 20zm0-6a2 2 0 102 2A2.0021 2.0021 0 0016 14zM5 20a4 4 0 114-4A4.0045 4.0045 0 015 20zm0-6a2 2 0 102 2A2.0023 2.0023 0 005 14zM10 31a4 4 0 114-4A4.0045 4.0045 0 0110 31zm0-6a2 2 0 102 2A2.0021 2.0021 0 0010 25zM22 31a4 4 0 114-4A4.0045 4.0045 0 0122 31zm0-6a2 2 0 102 2A2.0021 2.0021 0 0022 25zM27 20a4 4 0 114-4A4.0045 4.0045 0 0127 20zm0-6a2 2 0 102 2A2.0021 2.0021 0 0027 14zM22 9a4 4 0 114-4A4.0045 4.0045 0 0122 9zm0-6a2 2 0 102 2A2.0021 2.0021 0 0022 3zM10 9a4 4 0 114-4A4.0045 4.0045 0 0110 9zm0-6a2 2 0 102 2A2.0021 2.0021 0 0010 3z\"\n })), children);\n});\nvar Network_120 = /*#__PURE__*/React.forwardRef(function Network_120(_ref124, ref) {\n var children = _ref124.children,\n rest = _objectWithoutProperties(_ref124, _excluded124);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path172 || (_path172 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 20a4 4 0 114-4A4.0045 4.0045 0 0116 20zm0-6a2 2 0 102 2A2.0021 2.0021 0 0016 14zM5 20a4 4 0 114-4A4.0045 4.0045 0 015 20zm0-6a2 2 0 102 2A2.0023 2.0023 0 005 14zM10 31a4 4 0 114-4A4.0045 4.0045 0 0110 31zm0-6a2 2 0 102 2A2.0021 2.0021 0 0010 25zM22 31a4 4 0 114-4A4.0045 4.0045 0 0122 31zm0-6a2 2 0 102 2A2.0021 2.0021 0 0022 25zM27 20a4 4 0 114-4A4.0045 4.0045 0 0127 20zm0-6a2 2 0 102 2A2.0021 2.0021 0 0027 14zM22 9a4 4 0 114-4A4.0045 4.0045 0 0122 9zm0-6a2 2 0 102 2A2.0021 2.0021 0 0022 3zM10 9a4 4 0 114-4A4.0045 4.0045 0 0110 9zm0-6a2 2 0 102 2A2.0021 2.0021 0 0010 3z\"\n })), children);\n});\nvar Network_116 = /*#__PURE__*/React.forwardRef(function Network_116(_ref125, ref) {\n var children = _ref125.children,\n rest = _objectWithoutProperties(_ref125, _excluded125);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path173 || (_path173 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 20a4 4 0 114-4A4.0045 4.0045 0 0116 20zm0-6a2 2 0 102 2A2.0021 2.0021 0 0016 14zM5 20a4 4 0 114-4A4.0045 4.0045 0 015 20zm0-6a2 2 0 102 2A2.0023 2.0023 0 005 14zM10 31a4 4 0 114-4A4.0045 4.0045 0 0110 31zm0-6a2 2 0 102 2A2.0021 2.0021 0 0010 25zM22 31a4 4 0 114-4A4.0045 4.0045 0 0122 31zm0-6a2 2 0 102 2A2.0021 2.0021 0 0022 25zM27 20a4 4 0 114-4A4.0045 4.0045 0 0127 20zm0-6a2 2 0 102 2A2.0021 2.0021 0 0027 14zM22 9a4 4 0 114-4A4.0045 4.0045 0 0122 9zm0-6a2 2 0 102 2A2.0021 2.0021 0 0022 3zM10 9a4 4 0 114-4A4.0045 4.0045 0 0110 9zm0-6a2 2 0 102 2A2.0021 2.0021 0 0010 3z\"\n })), children);\n});\nvar Network_232 = /*#__PURE__*/React.forwardRef(function Network_232(_ref126, ref) {\n var children = _ref126.children,\n rest = _objectWithoutProperties(_ref126, _excluded126);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path174 || (_path174 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,17h5.1421a4,4,0,1,0,0-2H17V7h5.1421a4,4,0,1,0,0-2H17a2.0023,2.0023,0,0,0-2,2v8H9.8579a4,4,0,1,0,0,2H15v8a2.0023,2.0023,0,0,0,2,2h5.1421a4,4,0,1,0,0-2H17Zm9-3a2,2,0,1,1-2,2A2.0023,2.0023,0,0,1,26,14ZM26,4a2,2,0,1,1-2,2A2.0023,2.0023,0,0,1,26,4ZM6,18a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,6,18Zm20,6a2,2,0,1,1-2,2A2.0023,2.0023,0,0,1,26,24Z\"\n })), children);\n});\nvar Network_224 = /*#__PURE__*/React.forwardRef(function Network_224(_ref127, ref) {\n var children = _ref127.children,\n rest = _objectWithoutProperties(_ref127, _excluded127);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path175 || (_path175 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,17h5.1421a4,4,0,1,0,0-2H17V7h5.1421a4,4,0,1,0,0-2H17a2.0023,2.0023,0,0,0-2,2v8H9.8579a4,4,0,1,0,0,2H15v8a2.0023,2.0023,0,0,0,2,2h5.1421a4,4,0,1,0,0-2H17Zm9-3a2,2,0,1,1-2,2A2.0023,2.0023,0,0,1,26,14ZM26,4a2,2,0,1,1-2,2A2.0023,2.0023,0,0,1,26,4ZM6,18a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,6,18Zm20,6a2,2,0,1,1-2,2A2.0023,2.0023,0,0,1,26,24Z\"\n })), children);\n});\nvar Network_220 = /*#__PURE__*/React.forwardRef(function Network_220(_ref128, ref) {\n var children = _ref128.children,\n rest = _objectWithoutProperties(_ref128, _excluded128);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path176 || (_path176 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,17h5.1421a4,4,0,1,0,0-2H17V7h5.1421a4,4,0,1,0,0-2H17a2.0023,2.0023,0,0,0-2,2v8H9.8579a4,4,0,1,0,0,2H15v8a2.0023,2.0023,0,0,0,2,2h5.1421a4,4,0,1,0,0-2H17Zm9-3a2,2,0,1,1-2,2A2.0023,2.0023,0,0,1,26,14ZM26,4a2,2,0,1,1-2,2A2.0023,2.0023,0,0,1,26,4ZM6,18a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,6,18Zm20,6a2,2,0,1,1-2,2A2.0023,2.0023,0,0,1,26,24Z\"\n })), children);\n});\nvar Network_216 = /*#__PURE__*/React.forwardRef(function Network_216(_ref129, ref) {\n var children = _ref129.children,\n rest = _objectWithoutProperties(_ref129, _excluded129);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path177 || (_path177 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,17h5.1421a4,4,0,1,0,0-2H17V7h5.1421a4,4,0,1,0,0-2H17a2.0023,2.0023,0,0,0-2,2v8H9.8579a4,4,0,1,0,0,2H15v8a2.0023,2.0023,0,0,0,2,2h5.1421a4,4,0,1,0,0-2H17Zm9-3a2,2,0,1,1-2,2A2.0023,2.0023,0,0,1,26,14ZM26,4a2,2,0,1,1-2,2A2.0023,2.0023,0,0,1,26,4ZM6,18a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,6,18Zm20,6a2,2,0,1,1-2,2A2.0023,2.0023,0,0,1,26,24Z\"\n })), children);\n});\nvar Network_332 = /*#__PURE__*/React.forwardRef(function Network_332(_ref130, ref) {\n var children = _ref130.children,\n rest = _objectWithoutProperties(_ref130, _excluded130);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path178 || (_path178 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 30H22V22h8zm-6-2h4V24H24zM20 27H8A6 6 0 018 15h2v2H8a4 4 0 000 8H20z\"\n })), _path179 || (_path179 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,20H12V12h8Zm-6-2h4V14H14Z\"\n })), _path180 || (_path180 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 17H22V15h2a4 4 0 000-8H12V5H24a6 6 0 010 12zM10 10H2V2h8zM4 8H8V4H4z\"\n })), children);\n});\nvar Network_324 = /*#__PURE__*/React.forwardRef(function Network_324(_ref131, ref) {\n var children = _ref131.children,\n rest = _objectWithoutProperties(_ref131, _excluded131);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path181 || (_path181 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 30H22V22h8zm-6-2h4V24H24zM20 27H8A6 6 0 018 15h2v2H8a4 4 0 000 8H20z\"\n })), _path182 || (_path182 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,20H12V12h8Zm-6-2h4V14H14Z\"\n })), _path183 || (_path183 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 17H22V15h2a4 4 0 000-8H12V5H24a6 6 0 010 12zM10 10H2V2h8zM4 8H8V4H4z\"\n })), children);\n});\nvar Network_320 = /*#__PURE__*/React.forwardRef(function Network_320(_ref132, ref) {\n var children = _ref132.children,\n rest = _objectWithoutProperties(_ref132, _excluded132);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path184 || (_path184 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 30H22V22h8zm-6-2h4V24H24zM20 27H8A6 6 0 018 15h2v2H8a4 4 0 000 8H20z\"\n })), _path185 || (_path185 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,20H12V12h8Zm-6-2h4V14H14Z\"\n })), _path186 || (_path186 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 17H22V15h2a4 4 0 000-8H12V5H24a6 6 0 010 12zM10 10H2V2h8zM4 8H8V4H4z\"\n })), children);\n});\nvar Network_316 = /*#__PURE__*/React.forwardRef(function Network_316(_ref133, ref) {\n var children = _ref133.children,\n rest = _objectWithoutProperties(_ref133, _excluded133);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path187 || (_path187 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 30H22V22h8zm-6-2h4V24H24zM20 27H8A6 6 0 018 15h2v2H8a4 4 0 000 8H20z\"\n })), _path188 || (_path188 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,20H12V12h8Zm-6-2h4V14H14Z\"\n })), _path189 || (_path189 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 17H22V15h2a4 4 0 000-8H12V5H24a6 6 0 010 12zM10 10H2V2h8zM4 8H8V4H4z\"\n })), children);\n});\nvar Network_3Reference32 = /*#__PURE__*/React.forwardRef(function Network_3Reference32(_ref134, ref) {\n var children = _ref134.children,\n rest = _objectWithoutProperties(_ref134, _excluded134);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path190 || (_path190 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 20L4 22 8.586 22 2 28.586 3.414 30 10 23.414 10 28 12 28 12 20 4 20zM30 30H22V22h8zm-6-2h4V24H24zM20 20H12V12h8zm-6-2h4V14H14z\"\n })), _path191 || (_path191 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 17H22V15h2a4 4 0 000-8H12V5H24a6 6 0 010 12zM10 10H2V2h8zM4 8H8V4H4z\"\n })), children);\n});\nvar Network_3Reference24 = /*#__PURE__*/React.forwardRef(function Network_3Reference24(_ref135, ref) {\n var children = _ref135.children,\n rest = _objectWithoutProperties(_ref135, _excluded135);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path192 || (_path192 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 20L4 22 8.586 22 2 28.586 3.414 30 10 23.414 10 28 12 28 12 20 4 20zM30 30H22V22h8zm-6-2h4V24H24zM20 20H12V12h8zm-6-2h4V14H14z\"\n })), _path193 || (_path193 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 17H22V15h2a4 4 0 000-8H12V5H24a6 6 0 010 12zM10 10H2V2h8zM4 8H8V4H4z\"\n })), children);\n});\nvar Network_3Reference20 = /*#__PURE__*/React.forwardRef(function Network_3Reference20(_ref136, ref) {\n var children = _ref136.children,\n rest = _objectWithoutProperties(_ref136, _excluded136);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path194 || (_path194 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 20L4 22 8.586 22 2 28.586 3.414 30 10 23.414 10 28 12 28 12 20 4 20zM30 30H22V22h8zm-6-2h4V24H24zM20 20H12V12h8zm-6-2h4V14H14z\"\n })), _path195 || (_path195 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 17H22V15h2a4 4 0 000-8H12V5H24a6 6 0 010 12zM10 10H2V2h8zM4 8H8V4H4z\"\n })), children);\n});\nvar Network_3Reference16 = /*#__PURE__*/React.forwardRef(function Network_3Reference16(_ref137, ref) {\n var children = _ref137.children,\n rest = _objectWithoutProperties(_ref137, _excluded137);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path196 || (_path196 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 20L4 22 8.586 22 2 28.586 3.414 30 10 23.414 10 28 12 28 12 20 4 20zM30 30H22V22h8zm-6-2h4V24H24zM20 20H12V12h8zm-6-2h4V14H14z\"\n })), _path197 || (_path197 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 17H22V15h2a4 4 0 000-8H12V5H24a6 6 0 010 12zM10 10H2V2h8zM4 8H8V4H4z\"\n })), children);\n});\nvar Network_432 = /*#__PURE__*/React.forwardRef(function Network_432(_ref138, ref) {\n var children = _ref138.children,\n rest = _objectWithoutProperties(_ref138, _excluded138);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle125 || (_circle125 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"21\",\n cy: \"26\",\n r: \"2\"\n })), _circle126 || (_circle126 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"21\",\n cy: \"6\",\n r: \"2\"\n })), _circle127 || (_circle127 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"4\",\n cy: \"16\",\n r: \"2\"\n })), _path198 || (_path198 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,12a3.9962,3.9962,0,0,0-3.8579,3H19.8579a3.9655,3.9655,0,0,0-5.4914-2.6426L11.19,8.3872A3.9626,3.9626,0,0,0,12,6a4,4,0,1,0-4,4,3.96,3.96,0,0,0,1.6338-.3574l3.176,3.97a3.9239,3.9239,0,0,0,0,4.7744l-3.1758,3.97A3.96,3.96,0,0,0,8,22a4,4,0,1,0,4,4,3.9624,3.9624,0,0,0-.81-2.3872l3.1758-3.97A3.9658,3.9658,0,0,0,19.8579,17h4.2842A3.9934,3.9934,0,1,0,28,12ZM6,6A2,2,0,1,1,8,8,2.0023,2.0023,0,0,1,6,6ZM8,28a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,8,28Zm8-10a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,16,18Zm12,0a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,28,18Z\"\n })), children);\n});\nvar Network_424 = /*#__PURE__*/React.forwardRef(function Network_424(_ref139, ref) {\n var children = _ref139.children,\n rest = _objectWithoutProperties(_ref139, _excluded139);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle128 || (_circle128 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"21\",\n cy: \"26\",\n r: \"2\"\n })), _circle129 || (_circle129 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"21\",\n cy: \"6\",\n r: \"2\"\n })), _circle130 || (_circle130 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"4\",\n cy: \"16\",\n r: \"2\"\n })), _path199 || (_path199 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,12a3.9962,3.9962,0,0,0-3.8579,3H19.8579a3.9655,3.9655,0,0,0-5.4914-2.6426L11.19,8.3872A3.9626,3.9626,0,0,0,12,6a4,4,0,1,0-4,4,3.96,3.96,0,0,0,1.6338-.3574l3.176,3.97a3.9239,3.9239,0,0,0,0,4.7744l-3.1758,3.97A3.96,3.96,0,0,0,8,22a4,4,0,1,0,4,4,3.9624,3.9624,0,0,0-.81-2.3872l3.1758-3.97A3.9658,3.9658,0,0,0,19.8579,17h4.2842A3.9934,3.9934,0,1,0,28,12ZM6,6A2,2,0,1,1,8,8,2.0023,2.0023,0,0,1,6,6ZM8,28a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,8,28Zm8-10a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,16,18Zm12,0a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,28,18Z\"\n })), children);\n});\nvar Network_420 = /*#__PURE__*/React.forwardRef(function Network_420(_ref140, ref) {\n var children = _ref140.children,\n rest = _objectWithoutProperties(_ref140, _excluded140);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle131 || (_circle131 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"21\",\n cy: \"26\",\n r: \"2\"\n })), _circle132 || (_circle132 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"21\",\n cy: \"6\",\n r: \"2\"\n })), _circle133 || (_circle133 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"4\",\n cy: \"16\",\n r: \"2\"\n })), _path200 || (_path200 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,12a3.9962,3.9962,0,0,0-3.8579,3H19.8579a3.9655,3.9655,0,0,0-5.4914-2.6426L11.19,8.3872A3.9626,3.9626,0,0,0,12,6a4,4,0,1,0-4,4,3.96,3.96,0,0,0,1.6338-.3574l3.176,3.97a3.9239,3.9239,0,0,0,0,4.7744l-3.1758,3.97A3.96,3.96,0,0,0,8,22a4,4,0,1,0,4,4,3.9624,3.9624,0,0,0-.81-2.3872l3.1758-3.97A3.9658,3.9658,0,0,0,19.8579,17h4.2842A3.9934,3.9934,0,1,0,28,12ZM6,6A2,2,0,1,1,8,8,2.0023,2.0023,0,0,1,6,6ZM8,28a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,8,28Zm8-10a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,16,18Zm12,0a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,28,18Z\"\n })), children);\n});\nvar Network_416 = /*#__PURE__*/React.forwardRef(function Network_416(_ref141, ref) {\n var children = _ref141.children,\n rest = _objectWithoutProperties(_ref141, _excluded141);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle134 || (_circle134 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"21\",\n cy: \"26\",\n r: \"2\"\n })), _circle135 || (_circle135 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"21\",\n cy: \"6\",\n r: \"2\"\n })), _circle136 || (_circle136 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"4\",\n cy: \"16\",\n r: \"2\"\n })), _path201 || (_path201 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,12a3.9962,3.9962,0,0,0-3.8579,3H19.8579a3.9655,3.9655,0,0,0-5.4914-2.6426L11.19,8.3872A3.9626,3.9626,0,0,0,12,6a4,4,0,1,0-4,4,3.96,3.96,0,0,0,1.6338-.3574l3.176,3.97a3.9239,3.9239,0,0,0,0,4.7744l-3.1758,3.97A3.96,3.96,0,0,0,8,22a4,4,0,1,0,4,4,3.9624,3.9624,0,0,0-.81-2.3872l3.1758-3.97A3.9658,3.9658,0,0,0,19.8579,17h4.2842A3.9934,3.9934,0,1,0,28,12ZM6,6A2,2,0,1,1,8,8,2.0023,2.0023,0,0,1,6,6ZM8,28a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,8,28Zm8-10a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,16,18Zm12,0a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,28,18Z\"\n })), children);\n});\nvar NetworkEnterprise32 = /*#__PURE__*/React.forwardRef(function NetworkEnterprise32(_ref142, ref) {\n var children = _ref142.children,\n rest = _objectWithoutProperties(_ref142, _excluded142);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path202 || (_path202 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25.7983,10a10,10,0,0,0-19.62.124A7.4964,7.4964,0,0,0,7.5,25H8V23H7.5a5.4961,5.4961,0,0,1-.377-10.9795l.8365-.0571.09-.8335A7.9934,7.9934,0,0,1,23.7368,10Z\"\n })), _path203 || (_path203 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,12H18a2.0023,2.0023,0,0,0-2,2v4H12a2.0023,2.0023,0,0,0-2,2V30H30V14A2.0023,2.0023,0,0,0,28,12ZM12,28V20h4v8Zm16,0H18V14H28Z\"\n })), _path204 || (_path204 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 16H22V20H20zM24 16H26V20H24zM20 22H22V26H20zM24 22H26V26H24z\"\n })), children);\n});\nvar NetworkEnterprise24 = /*#__PURE__*/React.forwardRef(function NetworkEnterprise24(_ref143, ref) {\n var children = _ref143.children,\n rest = _objectWithoutProperties(_ref143, _excluded143);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path205 || (_path205 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25.7983,10a10,10,0,0,0-19.62.124A7.4964,7.4964,0,0,0,7.5,25H8V23H7.5a5.4961,5.4961,0,0,1-.377-10.9795l.8365-.0571.09-.8335A7.9934,7.9934,0,0,1,23.7368,10Z\"\n })), _path206 || (_path206 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,12H18a2.0023,2.0023,0,0,0-2,2v4H12a2.0023,2.0023,0,0,0-2,2V30H30V14A2.0023,2.0023,0,0,0,28,12ZM12,28V20h4v8Zm16,0H18V14H28Z\"\n })), _path207 || (_path207 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 16H22V20H20zM24 16H26V20H24zM20 22H22V26H20zM24 22H26V26H24z\"\n })), children);\n});\nvar NetworkEnterprise20 = /*#__PURE__*/React.forwardRef(function NetworkEnterprise20(_ref144, ref) {\n var children = _ref144.children,\n rest = _objectWithoutProperties(_ref144, _excluded144);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path208 || (_path208 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25.7983,10a10,10,0,0,0-19.62.124A7.4964,7.4964,0,0,0,7.5,25H8V23H7.5a5.4961,5.4961,0,0,1-.377-10.9795l.8365-.0571.09-.8335A7.9934,7.9934,0,0,1,23.7368,10Z\"\n })), _path209 || (_path209 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,12H18a2.0023,2.0023,0,0,0-2,2v4H12a2.0023,2.0023,0,0,0-2,2V30H30V14A2.0023,2.0023,0,0,0,28,12ZM12,28V20h4v8Zm16,0H18V14H28Z\"\n })), _path210 || (_path210 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 16H22V20H20zM24 16H26V20H24zM20 22H22V26H20zM24 22H26V26H24z\"\n })), children);\n});\nvar NetworkEnterprise16 = /*#__PURE__*/React.forwardRef(function NetworkEnterprise16(_ref145, ref) {\n var children = _ref145.children,\n rest = _objectWithoutProperties(_ref145, _excluded145);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path211 || (_path211 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25.7983,10a10,10,0,0,0-19.62.124A7.4964,7.4964,0,0,0,7.5,25H8V23H7.5a5.4961,5.4961,0,0,1-.377-10.9795l.8365-.0571.09-.8335A7.9934,7.9934,0,0,1,23.7368,10Z\"\n })), _path212 || (_path212 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,12H18a2.0023,2.0023,0,0,0-2,2v4H12a2.0023,2.0023,0,0,0-2,2V30H30V14A2.0023,2.0023,0,0,0,28,12ZM12,28V20h4v8Zm16,0H18V14H28Z\"\n })), _path213 || (_path213 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 16H22V20H20zM24 16H26V20H24zM20 22H22V26H20zM24 22H26V26H24z\"\n })), children);\n});\nvar NetworkOverlay32 = /*#__PURE__*/React.forwardRef(function NetworkOverlay32(_ref146, ref) {\n var children = _ref146.children,\n rest = _objectWithoutProperties(_ref146, _excluded146);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path214 || (_path214 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 23L13.83 23 16.41 20.41 15 19 10 24 15 29 16.41 27.59 13.83 25 22 25 22 23zM11 13L19.17 13 16.59 10.41 18 9 23 14 18 19 16.59 17.59 19.17 15 11 15 11 13z\"\n })), _path215 || (_path215 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5,25H24V23h.5a5.4961,5.4961,0,0,0,.377-10.9795l-.8365-.0566-.09-.834a7.9979,7.9979,0,0,0-15.9014,0l-.09.834-.8365.0566A5.4961,5.4961,0,0,0,7.5,23H8v2H7.5A7.4964,7.4964,0,0,1,6.1782,10.124a9.9992,9.9992,0,0,1,19.6436,0A7.4964,7.4964,0,0,1,24.5,25Z\"\n })), children);\n});\nvar NetworkOverlay24 = /*#__PURE__*/React.forwardRef(function NetworkOverlay24(_ref147, ref) {\n var children = _ref147.children,\n rest = _objectWithoutProperties(_ref147, _excluded147);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path216 || (_path216 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 23L13.83 23 16.41 20.41 15 19 10 24 15 29 16.41 27.59 13.83 25 22 25 22 23zM11 13L19.17 13 16.59 10.41 18 9 23 14 18 19 16.59 17.59 19.17 15 11 15 11 13z\"\n })), _path217 || (_path217 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5,25H24V23h.5a5.4961,5.4961,0,0,0,.377-10.9795l-.8365-.0566-.09-.834a7.9979,7.9979,0,0,0-15.9014,0l-.09.834-.8365.0566A5.4961,5.4961,0,0,0,7.5,23H8v2H7.5A7.4964,7.4964,0,0,1,6.1782,10.124a9.9992,9.9992,0,0,1,19.6436,0A7.4964,7.4964,0,0,1,24.5,25Z\"\n })), children);\n});\nvar NetworkOverlay20 = /*#__PURE__*/React.forwardRef(function NetworkOverlay20(_ref148, ref) {\n var children = _ref148.children,\n rest = _objectWithoutProperties(_ref148, _excluded148);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path218 || (_path218 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 23L13.83 23 16.41 20.41 15 19 10 24 15 29 16.41 27.59 13.83 25 22 25 22 23zM11 13L19.17 13 16.59 10.41 18 9 23 14 18 19 16.59 17.59 19.17 15 11 15 11 13z\"\n })), _path219 || (_path219 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5,25H24V23h.5a5.4961,5.4961,0,0,0,.377-10.9795l-.8365-.0566-.09-.834a7.9979,7.9979,0,0,0-15.9014,0l-.09.834-.8365.0566A5.4961,5.4961,0,0,0,7.5,23H8v2H7.5A7.4964,7.4964,0,0,1,6.1782,10.124a9.9992,9.9992,0,0,1,19.6436,0A7.4964,7.4964,0,0,1,24.5,25Z\"\n })), children);\n});\nvar NetworkOverlay16 = /*#__PURE__*/React.forwardRef(function NetworkOverlay16(_ref149, ref) {\n var children = _ref149.children,\n rest = _objectWithoutProperties(_ref149, _excluded149);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path220 || (_path220 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 23L13.83 23 16.41 20.41 15 19 10 24 15 29 16.41 27.59 13.83 25 22 25 22 23zM11 13L19.17 13 16.59 10.41 18 9 23 14 18 19 16.59 17.59 19.17 15 11 15 11 13z\"\n })), _path221 || (_path221 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5,25H24V23h.5a5.4961,5.4961,0,0,0,.377-10.9795l-.8365-.0566-.09-.834a7.9979,7.9979,0,0,0-15.9014,0l-.09.834-.8365.0566A5.4961,5.4961,0,0,0,7.5,23H8v2H7.5A7.4964,7.4964,0,0,1,6.1782,10.124a9.9992,9.9992,0,0,1,19.6436,0A7.4964,7.4964,0,0,1,24.5,25Z\"\n })), children);\n});\nvar NetworkPublic32 = /*#__PURE__*/React.forwardRef(function NetworkPublic32(_ref150, ref) {\n var children = _ref150.children,\n rest = _objectWithoutProperties(_ref150, _excluded150);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path222 || (_path222 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22.5,13c-4.7,0-8.5,3.8-8.5,8.5s3.8,8.5,8.5,8.5s8.5-3.8,8.5-8.5S27.2,13,22.5,13z M29,21h-3c0-2-0.3-4-0.9-5.5\\tC27.2,16.5,28.8,18.5,29,21z M22.5,28C22.5,28,22.5,28,22.5,28c-0.4-0.2-1.3-1.8-1.5-5h2.9C23.7,26.2,22.9,27.8,22.5,28z M21,21\\tc0.1-3.8,1.1-5.8,1.4-6c0,0,0,0,0,0c0.4,0.2,1.4,2.2,1.5,6H21z M19.9,15.5C19.3,17,19.1,19,19,21h-3C16.2,18.5,17.8,16.5,19.9,15.5z M16.2,23H19c0.1,1.6,0.4,3.2,0.9,4.5C18.1,26.7,16.7,25,16.2,23z M25.1,27.5c0.5-1.3,0.8-2.8,0.9-4.5h2.9\\tC28.3,25,26.9,26.7,25.1,27.5z\"\n })), _path223 || (_path223 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25.8,10c-0.9-4.6-5-8-9.8-8c-4.8,0-8.9,3.4-9.8,8.1C2.7,10.8,0,13.8,0,17.5C0,21.6,3.4,25,7.5,25H11v-2H7.5\\tc-3,0-5.5-2.5-5.5-5.5c0-2.9,2.2-5.3,5.1-5.5L8,12L8,11.1C8.5,7.1,11.9,4,16,4c3.7,0,6.8,2.6,7.7,6H25.8z\"\n })), children);\n});\nvar NetworkPublic24 = /*#__PURE__*/React.forwardRef(function NetworkPublic24(_ref151, ref) {\n var children = _ref151.children,\n rest = _objectWithoutProperties(_ref151, _excluded151);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path224 || (_path224 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22.5,13c-4.7,0-8.5,3.8-8.5,8.5s3.8,8.5,8.5,8.5s8.5-3.8,8.5-8.5S27.2,13,22.5,13z M29,21h-3c0-2-0.3-4-0.9-5.5\\tC27.2,16.5,28.8,18.5,29,21z M22.5,28C22.5,28,22.5,28,22.5,28c-0.4-0.2-1.3-1.8-1.5-5h2.9C23.7,26.2,22.9,27.8,22.5,28z M21,21\\tc0.1-3.8,1.1-5.8,1.4-6c0,0,0,0,0,0c0.4,0.2,1.4,2.2,1.5,6H21z M19.9,15.5C19.3,17,19.1,19,19,21h-3C16.2,18.5,17.8,16.5,19.9,15.5z M16.2,23H19c0.1,1.6,0.4,3.2,0.9,4.5C18.1,26.7,16.7,25,16.2,23z M25.1,27.5c0.5-1.3,0.8-2.8,0.9-4.5h2.9\\tC28.3,25,26.9,26.7,25.1,27.5z\"\n })), _path225 || (_path225 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25.8,10c-0.9-4.6-5-8-9.8-8c-4.8,0-8.9,3.4-9.8,8.1C2.7,10.8,0,13.8,0,17.5C0,21.6,3.4,25,7.5,25H11v-2H7.5\\tc-3,0-5.5-2.5-5.5-5.5c0-2.9,2.2-5.3,5.1-5.5L8,12L8,11.1C8.5,7.1,11.9,4,16,4c3.7,0,6.8,2.6,7.7,6H25.8z\"\n })), children);\n});\nvar NetworkPublic20 = /*#__PURE__*/React.forwardRef(function NetworkPublic20(_ref152, ref) {\n var children = _ref152.children,\n rest = _objectWithoutProperties(_ref152, _excluded152);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path226 || (_path226 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22.5,13c-4.7,0-8.5,3.8-8.5,8.5s3.8,8.5,8.5,8.5s8.5-3.8,8.5-8.5S27.2,13,22.5,13z M29,21h-3c0-2-0.3-4-0.9-5.5\\tC27.2,16.5,28.8,18.5,29,21z M22.5,28C22.5,28,22.5,28,22.5,28c-0.4-0.2-1.3-1.8-1.5-5h2.9C23.7,26.2,22.9,27.8,22.5,28z M21,21\\tc0.1-3.8,1.1-5.8,1.4-6c0,0,0,0,0,0c0.4,0.2,1.4,2.2,1.5,6H21z M19.9,15.5C19.3,17,19.1,19,19,21h-3C16.2,18.5,17.8,16.5,19.9,15.5z M16.2,23H19c0.1,1.6,0.4,3.2,0.9,4.5C18.1,26.7,16.7,25,16.2,23z M25.1,27.5c0.5-1.3,0.8-2.8,0.9-4.5h2.9\\tC28.3,25,26.9,26.7,25.1,27.5z\"\n })), _path227 || (_path227 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25.8,10c-0.9-4.6-5-8-9.8-8c-4.8,0-8.9,3.4-9.8,8.1C2.7,10.8,0,13.8,0,17.5C0,21.6,3.4,25,7.5,25H11v-2H7.5\\tc-3,0-5.5-2.5-5.5-5.5c0-2.9,2.2-5.3,5.1-5.5L8,12L8,11.1C8.5,7.1,11.9,4,16,4c3.7,0,6.8,2.6,7.7,6H25.8z\"\n })), children);\n});\nvar NetworkPublic16 = /*#__PURE__*/React.forwardRef(function NetworkPublic16(_ref153, ref) {\n var children = _ref153.children,\n rest = _objectWithoutProperties(_ref153, _excluded153);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path228 || (_path228 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22.5,13c-4.7,0-8.5,3.8-8.5,8.5s3.8,8.5,8.5,8.5s8.5-3.8,8.5-8.5S27.2,13,22.5,13z M29,21h-3c0-2-0.3-4-0.9-5.5\\tC27.2,16.5,28.8,18.5,29,21z M22.5,28C22.5,28,22.5,28,22.5,28c-0.4-0.2-1.3-1.8-1.5-5h2.9C23.7,26.2,22.9,27.8,22.5,28z M21,21\\tc0.1-3.8,1.1-5.8,1.4-6c0,0,0,0,0,0c0.4,0.2,1.4,2.2,1.5,6H21z M19.9,15.5C19.3,17,19.1,19,19,21h-3C16.2,18.5,17.8,16.5,19.9,15.5z M16.2,23H19c0.1,1.6,0.4,3.2,0.9,4.5C18.1,26.7,16.7,25,16.2,23z M25.1,27.5c0.5-1.3,0.8-2.8,0.9-4.5h2.9\\tC28.3,25,26.9,26.7,25.1,27.5z\"\n })), _path229 || (_path229 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25.8,10c-0.9-4.6-5-8-9.8-8c-4.8,0-8.9,3.4-9.8,8.1C2.7,10.8,0,13.8,0,17.5C0,21.6,3.4,25,7.5,25H11v-2H7.5\\tc-3,0-5.5-2.5-5.5-5.5c0-2.9,2.2-5.3,5.1-5.5L8,12L8,11.1C8.5,7.1,11.9,4,16,4c3.7,0,6.8,2.6,7.7,6H25.8z\"\n })), children);\n});\nvar NewTab32 = /*#__PURE__*/React.forwardRef(function NewTab32(_ref154, ref) {\n var children = _ref154.children,\n rest = _objectWithoutProperties(_ref154, _excluded154);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path230 || (_path230 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,26H6V6H16V4H6A2.002,2.002,0,0,0,4,6V26a2.002,2.002,0,0,0,2,2H26a2.002,2.002,0,0,0,2-2V16H26Z\"\n })), _path231 || (_path231 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,26H6V6H16V4H6A2.002,2.002,0,0,0,4,6V26a2.002,2.002,0,0,0,2,2H26a2.002,2.002,0,0,0,2-2V16H26Z\"\n })), _path232 || (_path232 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 6L26 2 24 2 24 6 20 6 20 8 24 8 24 12 26 12 26 8 30 8 30 6 26 6z\"\n })), children);\n});\nvar NewTab24 = /*#__PURE__*/React.forwardRef(function NewTab24(_ref155, ref) {\n var children = _ref155.children,\n rest = _objectWithoutProperties(_ref155, _excluded155);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path233 || (_path233 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,26H6V6H16V4H6A2.002,2.002,0,0,0,4,6V26a2.002,2.002,0,0,0,2,2H26a2.002,2.002,0,0,0,2-2V16H26Z\"\n })), _path234 || (_path234 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,26H6V6H16V4H6A2.002,2.002,0,0,0,4,6V26a2.002,2.002,0,0,0,2,2H26a2.002,2.002,0,0,0,2-2V16H26Z\"\n })), _path235 || (_path235 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 6L26 2 24 2 24 6 20 6 20 8 24 8 24 12 26 12 26 8 30 8 30 6 26 6z\"\n })), children);\n});\nvar NewTab20 = /*#__PURE__*/React.forwardRef(function NewTab20(_ref156, ref) {\n var children = _ref156.children,\n rest = _objectWithoutProperties(_ref156, _excluded156);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path236 || (_path236 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,26H6V6H16V4H6A2.002,2.002,0,0,0,4,6V26a2.002,2.002,0,0,0,2,2H26a2.002,2.002,0,0,0,2-2V16H26Z\"\n })), _path237 || (_path237 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,26H6V6H16V4H6A2.002,2.002,0,0,0,4,6V26a2.002,2.002,0,0,0,2,2H26a2.002,2.002,0,0,0,2-2V16H26Z\"\n })), _path238 || (_path238 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 6L26 2 24 2 24 6 20 6 20 8 24 8 24 12 26 12 26 8 30 8 30 6 26 6z\"\n })), children);\n});\nvar NewTab16 = /*#__PURE__*/React.forwardRef(function NewTab16(_ref157, ref) {\n var children = _ref157.children,\n rest = _objectWithoutProperties(_ref157, _excluded157);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path239 || (_path239 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13,13H3V3h5V2H3C2.4,2,2,2.4,2,3v10c0,0.6,0.4,1,1,1h10c0.6,0,1-0.4,1-1V8h-1V13z\"\n })), _path240 || (_path240 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 3L13 1 12 1 12 3 10 3 10 4 12 4 12 6 13 6 13 4 15 4 15 3z\"\n })), children);\n});\nvar NextFilled32 = /*#__PURE__*/React.forwardRef(function NextFilled32(_ref158, ref) {\n var children = _ref158.children,\n rest = _objectWithoutProperties(_ref158, _excluded158);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path241 || (_path241 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2,16A14,14,0,1,0,16,2,14,14,0,0,0,2,16Zm6-1H20.15L14.57,9.3926,16,8l8,8-8,8-1.43-1.4272L20.15,17H8Z\"\n })), _path242 || (_path242 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M16 8L14.57 9.393 20.15 15 8 15 8 17 20.15 17 14.57 22.573 16 24 24 16 16 8z\",\n \"data-icon-path\": \"inner-path\"\n })), children);\n});\nvar NextFilled24 = /*#__PURE__*/React.forwardRef(function NextFilled24(_ref159, ref) {\n var children = _ref159.children,\n rest = _objectWithoutProperties(_ref159, _excluded159);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path243 || (_path243 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2,16A14,14,0,1,0,16,2,14,14,0,0,0,2,16Zm6-1H20.15L14.57,9.3926,16,8l8,8-8,8-1.43-1.4272L20.15,17H8Z\"\n })), _path244 || (_path244 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M16 8L14.57 9.393 20.15 15 8 15 8 17 20.15 17 14.57 22.573 16 24 24 16 16 8z\",\n \"data-icon-path\": \"inner-path\"\n })), children);\n});\nvar NextFilled20 = /*#__PURE__*/React.forwardRef(function NextFilled20(_ref160, ref) {\n var children = _ref160.children,\n rest = _objectWithoutProperties(_ref160, _excluded160);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path245 || (_path245 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2,16A14,14,0,1,0,16,2,14,14,0,0,0,2,16Zm6-1H20.15L14.57,9.3926,16,8l8,8-8,8-1.43-1.4272L20.15,17H8Z\"\n })), _path246 || (_path246 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M16 8L14.57 9.393 20.15 15 8 15 8 17 20.15 17 14.57 22.573 16 24 24 16 16 8z\",\n \"data-icon-path\": \"inner-path\"\n })), children);\n});\nvar NextFilled16 = /*#__PURE__*/React.forwardRef(function NextFilled16(_ref161, ref) {\n var children = _ref161.children,\n rest = _objectWithoutProperties(_ref161, _excluded161);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path247 || (_path247 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2,16A14,14,0,1,0,16,2,14,14,0,0,0,2,16Zm6-1H20.15L14.57,9.3926,16,8l8,8-8,8-1.43-1.4272L20.15,17H8Z\"\n })), _path248 || (_path248 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M16 8L14.57 9.393 20.15 15 8 15 8 17 20.15 17 14.57 22.573 16 24 24 16 16 8z\",\n \"data-icon-path\": \"inner-path\"\n })), children);\n});\nvar NextOutline32 = /*#__PURE__*/React.forwardRef(function NextOutline32(_ref162, ref) {\n var children = _ref162.children,\n rest = _objectWithoutProperties(_ref162, _excluded162);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path249 || (_path249 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 8L14.57 9.393 20.15 15 8 15 8 17 20.15 17 14.57 22.573 16 24 24 16 16 8z\"\n })), _path250 || (_path250 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar NextOutline24 = /*#__PURE__*/React.forwardRef(function NextOutline24(_ref163, ref) {\n var children = _ref163.children,\n rest = _objectWithoutProperties(_ref163, _excluded163);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path251 || (_path251 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 8L14.57 9.393 20.15 15 8 15 8 17 20.15 17 14.57 22.573 16 24 24 16 16 8z\"\n })), _path252 || (_path252 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar NextOutline20 = /*#__PURE__*/React.forwardRef(function NextOutline20(_ref164, ref) {\n var children = _ref164.children,\n rest = _objectWithoutProperties(_ref164, _excluded164);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path253 || (_path253 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 8L14.57 9.393 20.15 15 8 15 8 17 20.15 17 14.57 22.573 16 24 24 16 16 8z\"\n })), _path254 || (_path254 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar NextOutline16 = /*#__PURE__*/React.forwardRef(function NextOutline16(_ref165, ref) {\n var children = _ref165.children,\n rest = _objectWithoutProperties(_ref165, _excluded165);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path255 || (_path255 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 8L14.57 9.393 20.15 15 8 15 8 17 20.15 17 14.57 22.573 16 24 24 16 16 8z\"\n })), _path256 || (_path256 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar NoImage32 = /*#__PURE__*/React.forwardRef(function NoImage32(_ref166, ref) {\n var children = _ref166.children,\n rest = _objectWithoutProperties(_ref166, _excluded166);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path257 || (_path257 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 3.4141L28.5859 2 2 28.5859 3.4141 30l2-2H26a2.0027 2.0027 0 002-2V5.4141zM26 26H7.4141l7.7929-7.793 2.3788 2.3787a2 2 0 002.8284 0L22 19l4 3.9973zm0-5.8318l-2.5858-2.5859a2 2 0 00-2.8284 0L19 19.1682l-2.377-2.3771L26 7.4141zM6 22V19l5-4.9966 1.3733 1.3733 1.4159-1.416-1.375-1.375a2 2 0 00-2.8284 0L6 16.1716V6H22V4H6A2.002 2.002 0 004 6V22z\"\n })), children);\n});\nvar NoImage24 = /*#__PURE__*/React.forwardRef(function NoImage24(_ref167, ref) {\n var children = _ref167.children,\n rest = _objectWithoutProperties(_ref167, _excluded167);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path258 || (_path258 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 3.4141L28.5859 2 2 28.5859 3.4141 30l2-2H26a2.0027 2.0027 0 002-2V5.4141zM26 26H7.4141l7.7929-7.793 2.3788 2.3787a2 2 0 002.8284 0L22 19l4 3.9973zm0-5.8318l-2.5858-2.5859a2 2 0 00-2.8284 0L19 19.1682l-2.377-2.3771L26 7.4141zM6 22V19l5-4.9966 1.3733 1.3733 1.4159-1.416-1.375-1.375a2 2 0 00-2.8284 0L6 16.1716V6H22V4H6A2.002 2.002 0 004 6V22z\"\n })), children);\n});\nvar NoImage20 = /*#__PURE__*/React.forwardRef(function NoImage20(_ref168, ref) {\n var children = _ref168.children,\n rest = _objectWithoutProperties(_ref168, _excluded168);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path259 || (_path259 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 3.4141L28.5859 2 2 28.5859 3.4141 30l2-2H26a2.0027 2.0027 0 002-2V5.4141zM26 26H7.4141l7.7929-7.793 2.3788 2.3787a2 2 0 002.8284 0L22 19l4 3.9973zm0-5.8318l-2.5858-2.5859a2 2 0 00-2.8284 0L19 19.1682l-2.377-2.3771L26 7.4141zM6 22V19l5-4.9966 1.3733 1.3733 1.4159-1.416-1.375-1.375a2 2 0 00-2.8284 0L6 16.1716V6H22V4H6A2.002 2.002 0 004 6V22z\"\n })), children);\n});\nvar NoImage16 = /*#__PURE__*/React.forwardRef(function NoImage16(_ref169, ref) {\n var children = _ref169.children,\n rest = _objectWithoutProperties(_ref169, _excluded169);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path260 || (_path260 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 3.4141L28.5859 2 2 28.5859 3.4141 30l2-2H26a2.0027 2.0027 0 002-2V5.4141zM26 26H7.4141l7.7929-7.793 2.3788 2.3787a2 2 0 002.8284 0L22 19l4 3.9973zm0-5.8318l-2.5858-2.5859a2 2 0 00-2.8284 0L19 19.1682l-2.377-2.3771L26 7.4141zM6 22V19l5-4.9966 1.3733 1.3733 1.4159-1.416-1.375-1.375a2 2 0 00-2.8284 0L6 16.1716V6H22V4H6A2.002 2.002 0 004 6V22z\"\n })), children);\n});\nvar NoTicket32 = /*#__PURE__*/React.forwardRef(function NoTicket32(_ref170, ref) {\n var children = _ref170.children,\n rest = _objectWithoutProperties(_ref170, _excluded170);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path261 || (_path261 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 6h-.5859L30 3.4141 28.5859 2 2 28.5859 3.4141 30l4-4H28a2.0027 2.0027 0 002-2V19a1 1 0 00-1-1 2 2 0 010-4 1 1 0 001-1V8A2.0023 2.0023 0 0028 6zm0 6.1265a4 4 0 000 7.7465V24H21V21H19v3H9.4141L19 14.4141V19h2V12.4141L25.4141 8H28zM4 12.1265V8H19V6H4A2.0023 2.0023 0 002 8v5a1 1 0 001 1 2 2 0 010 4 1 1 0 00-1 1v5H4V19.873a4 4 0 000-7.7465z\"\n })), children);\n});\nvar NoTicket24 = /*#__PURE__*/React.forwardRef(function NoTicket24(_ref171, ref) {\n var children = _ref171.children,\n rest = _objectWithoutProperties(_ref171, _excluded171);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path262 || (_path262 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 6h-.5859L30 3.4141 28.5859 2 2 28.5859 3.4141 30l4-4H28a2.0027 2.0027 0 002-2V19a1 1 0 00-1-1 2 2 0 010-4 1 1 0 001-1V8A2.0023 2.0023 0 0028 6zm0 6.1265a4 4 0 000 7.7465V24H21V21H19v3H9.4141L19 14.4141V19h2V12.4141L25.4141 8H28zM4 12.1265V8H19V6H4A2.0023 2.0023 0 002 8v5a1 1 0 001 1 2 2 0 010 4 1 1 0 00-1 1v5H4V19.873a4 4 0 000-7.7465z\"\n })), children);\n});\nvar NoTicket20 = /*#__PURE__*/React.forwardRef(function NoTicket20(_ref172, ref) {\n var children = _ref172.children,\n rest = _objectWithoutProperties(_ref172, _excluded172);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path263 || (_path263 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 6h-.5859L30 3.4141 28.5859 2 2 28.5859 3.4141 30l4-4H28a2.0027 2.0027 0 002-2V19a1 1 0 00-1-1 2 2 0 010-4 1 1 0 001-1V8A2.0023 2.0023 0 0028 6zm0 6.1265a4 4 0 000 7.7465V24H21V21H19v3H9.4141L19 14.4141V19h2V12.4141L25.4141 8H28zM4 12.1265V8H19V6H4A2.0023 2.0023 0 002 8v5a1 1 0 001 1 2 2 0 010 4 1 1 0 00-1 1v5H4V19.873a4 4 0 000-7.7465z\"\n })), children);\n});\nvar NoTicket16 = /*#__PURE__*/React.forwardRef(function NoTicket16(_ref173, ref) {\n var children = _ref173.children,\n rest = _objectWithoutProperties(_ref173, _excluded173);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path264 || (_path264 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 6h-.5859L30 3.4141 28.5859 2 2 28.5859 3.4141 30l4-4H28a2.0027 2.0027 0 002-2V19a1 1 0 00-1-1 2 2 0 010-4 1 1 0 001-1V8A2.0023 2.0023 0 0028 6zm0 6.1265a4 4 0 000 7.7465V24H21V21H19v3H9.4141L19 14.4141V19h2V12.4141L25.4141 8H28zM4 12.1265V8H19V6H4A2.0023 2.0023 0 002 8v5a1 1 0 001 1 2 2 0 010 4 1 1 0 00-1 1v5H4V19.873a4 4 0 000-7.7465z\"\n })), children);\n});\nvar Nominal32 = /*#__PURE__*/React.forwardRef(function Nominal32(_ref174, ref) {\n var children = _ref174.children,\n rest = _objectWithoutProperties(_ref174, _excluded174);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path265 || (_path265 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 28a6 6 0 116-6A6.0069 6.0069 0 0124 28zm0-10a4 4 0 104 4A4.0045 4.0045 0 0024 18zM8 28a6 6 0 116-6A6.0069 6.0069 0 018 28zM8 18a4 4 0 104 4A4.0045 4.0045 0 008 18zM16 14a6 6 0 116-6A6.0069 6.0069 0 0116 14zM16 4a4 4 0 104 4A4.0045 4.0045 0 0016 4z\"\n })), children);\n});\nvar Nominal24 = /*#__PURE__*/React.forwardRef(function Nominal24(_ref175, ref) {\n var children = _ref175.children,\n rest = _objectWithoutProperties(_ref175, _excluded175);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path266 || (_path266 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 28a6 6 0 116-6A6.0069 6.0069 0 0124 28zm0-10a4 4 0 104 4A4.0045 4.0045 0 0024 18zM8 28a6 6 0 116-6A6.0069 6.0069 0 018 28zM8 18a4 4 0 104 4A4.0045 4.0045 0 008 18zM16 14a6 6 0 116-6A6.0069 6.0069 0 0116 14zM16 4a4 4 0 104 4A4.0045 4.0045 0 0016 4z\"\n })), children);\n});\nvar Nominal20 = /*#__PURE__*/React.forwardRef(function Nominal20(_ref176, ref) {\n var children = _ref176.children,\n rest = _objectWithoutProperties(_ref176, _excluded176);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path267 || (_path267 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 28a6 6 0 116-6A6.0069 6.0069 0 0124 28zm0-10a4 4 0 104 4A4.0045 4.0045 0 0024 18zM8 28a6 6 0 116-6A6.0069 6.0069 0 018 28zM8 18a4 4 0 104 4A4.0045 4.0045 0 008 18zM16 14a6 6 0 116-6A6.0069 6.0069 0 0116 14zM16 4a4 4 0 104 4A4.0045 4.0045 0 0016 4z\"\n })), children);\n});\nvar Nominal16 = /*#__PURE__*/React.forwardRef(function Nominal16(_ref177, ref) {\n var children = _ref177.children,\n rest = _objectWithoutProperties(_ref177, _excluded177);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path268 || (_path268 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,8 C13.6568542,8 15,9.34314575 15,11 C15,12.6568542 13.6568542,14 12,14 C10.3431458,14 9,12.6568542 9,11 C9,9.34314575 10.3431458,8 12,8 Z M4,8 C5.65685425,8 7,9.34314575 7,11 C7,12.6568542 5.65685425,14 4,14 C2.34314575,14 1,12.6568542 1,11 C1,9.34314575 2.34314575,8 4,8 Z M12,9 C10.8954305,9 10,9.8954305 10,11 C10,12.1045695 10.8954305,13 12,13 C13.1045695,13 14,12.1045695 14,11 C14,9.8954305 13.1045695,9 12,9 Z M4,9 C2.8954305,9 2,9.8954305 2,11 C2,12.1045695 2.8954305,13 4,13 C5.1045695,13 6,12.1045695 6,11 C6,9.8954305 5.1045695,9 4,9 Z M8,2 C9.65685425,2 11,3.34314575 11,5 C11,6.65685425 9.65685425,8 8,8 C6.34314575,8 5,6.65685425 5,5 C5,3.34314575 6.34314575,2 8,2 Z M8,3 C6.8954305,3 6,3.8954305 6,5 C6,6.1045695 6.8954305,7 8,7 C9.1045695,7 10,6.1045695 10,5 C10,3.8954305 9.1045695,3 8,3 Z\"\n })), children);\n});\nvar WatsonHealthNominate32 = /*#__PURE__*/React.forwardRef(function WatsonHealthNominate32(_ref178, ref) {\n var children = _ref178.children,\n rest = _objectWithoutProperties(_ref178, _excluded178);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path269 || (_path269 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25 23H19a3 3 0 00-3 3v2h2V26a1 1 0 011-1h6a1 1 0 011 1v2h2V26A3 3 0 0025 23zM18 18a4 4 0 104-4A4 4 0 0018 18zm6 0a2 2 0 11-2-2A2 2 0 0124 18zM10 18.59L7.41 16 6 17.41 10 21.41 17 14.41 15.59 13 10 18.59z\"\n })), _path270 || (_path270 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14,26H4V6h7.1716l3.4141,3.4143L15.1716,10H28v8h2V10a2,2,0,0,0-2-2H16L12.5859,4.5858A2,2,0,0,0,11.1716,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H14Z\"\n })), children);\n});\nvar WatsonHealthNominate24 = /*#__PURE__*/React.forwardRef(function WatsonHealthNominate24(_ref179, ref) {\n var children = _ref179.children,\n rest = _objectWithoutProperties(_ref179, _excluded179);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path271 || (_path271 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25 23H19a3 3 0 00-3 3v2h2V26a1 1 0 011-1h6a1 1 0 011 1v2h2V26A3 3 0 0025 23zM18 18a4 4 0 104-4A4 4 0 0018 18zm6 0a2 2 0 11-2-2A2 2 0 0124 18zM10 18.59L7.41 16 6 17.41 10 21.41 17 14.41 15.59 13 10 18.59z\"\n })), _path272 || (_path272 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14,26H4V6h7.1716l3.4141,3.4143L15.1716,10H28v8h2V10a2,2,0,0,0-2-2H16L12.5859,4.5858A2,2,0,0,0,11.1716,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H14Z\"\n })), children);\n});\nvar WatsonHealthNominate20 = /*#__PURE__*/React.forwardRef(function WatsonHealthNominate20(_ref180, ref) {\n var children = _ref180.children,\n rest = _objectWithoutProperties(_ref180, _excluded180);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path273 || (_path273 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25 23H19a3 3 0 00-3 3v2h2V26a1 1 0 011-1h6a1 1 0 011 1v2h2V26A3 3 0 0025 23zM18 18a4 4 0 104-4A4 4 0 0018 18zm6 0a2 2 0 11-2-2A2 2 0 0124 18zM10 18.59L7.41 16 6 17.41 10 21.41 17 14.41 15.59 13 10 18.59z\"\n })), _path274 || (_path274 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14,26H4V6h7.1716l3.4141,3.4143L15.1716,10H28v8h2V10a2,2,0,0,0-2-2H16L12.5859,4.5858A2,2,0,0,0,11.1716,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H14Z\"\n })), children);\n});\nvar WatsonHealthNominate16 = /*#__PURE__*/React.forwardRef(function WatsonHealthNominate16(_ref181, ref) {\n var children = _ref181.children,\n rest = _objectWithoutProperties(_ref181, _excluded181);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path275 || (_path275 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25 23H19a3 3 0 00-3 3v2h2V26a1 1 0 011-1h6a1 1 0 011 1v2h2V26A3 3 0 0025 23zM18 18a4 4 0 104-4A4 4 0 0018 18zm6 0a2 2 0 11-2-2A2 2 0 0124 18zM10 18.59L7.41 16 6 17.41 10 21.41 17 14.41 15.59 13 10 18.59z\"\n })), _path276 || (_path276 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14,26H4V6h7.1716l3.4141,3.4143L15.1716,10H28v8h2V10a2,2,0,0,0-2-2H16L12.5859,4.5858A2,2,0,0,0,11.1716,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H14Z\"\n })), children);\n});\nvar NonCertified32 = /*#__PURE__*/React.forwardRef(function NonCertified32(_ref182, ref) {\n var children = _ref182.children,\n rest = _objectWithoutProperties(_ref182, _excluded182);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path277 || (_path277 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6 8H16V10H6zM6 12H14V14H6zM6 16H10V18H6z\"\n })), _path278 || (_path278 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,26H7.4141L30,3.4141,28.5859,2l-2,2H4A2.0023,2.0023,0,0,0,2,6V22H4V6H24.5859L2,28.5859,3.4141,30l2-2H28a2.0023,2.0023,0,0,0,2-2V10H28Z\"\n })), children);\n});\nvar NonCertified24 = /*#__PURE__*/React.forwardRef(function NonCertified24(_ref183, ref) {\n var children = _ref183.children,\n rest = _objectWithoutProperties(_ref183, _excluded183);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path279 || (_path279 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6 8H16V10H6zM6 12H14V14H6zM6 16H10V18H6z\"\n })), _path280 || (_path280 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,26H7.4141L30,3.4141,28.5859,2l-2,2H4A2.0023,2.0023,0,0,0,2,6V22H4V6H24.5859L2,28.5859,3.4141,30l2-2H28a2.0023,2.0023,0,0,0,2-2V10H28Z\"\n })), children);\n});\nvar NonCertified20 = /*#__PURE__*/React.forwardRef(function NonCertified20(_ref184, ref) {\n var children = _ref184.children,\n rest = _objectWithoutProperties(_ref184, _excluded184);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path281 || (_path281 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6 8H16V10H6zM6 12H14V14H6zM6 16H10V18H6z\"\n })), _path282 || (_path282 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,26H7.4141L30,3.4141,28.5859,2l-2,2H4A2.0023,2.0023,0,0,0,2,6V22H4V6H24.5859L2,28.5859,3.4141,30l2-2H28a2.0023,2.0023,0,0,0,2-2V10H28Z\"\n })), children);\n});\nvar NonCertified16 = /*#__PURE__*/React.forwardRef(function NonCertified16(_ref185, ref) {\n var children = _ref185.children,\n rest = _objectWithoutProperties(_ref185, _excluded185);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path283 || (_path283 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6 8H16V10H6zM6 12H14V14H6zM6 16H10V18H6z\"\n })), _path284 || (_path284 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,26H7.4141L30,3.4141,28.5859,2l-2,2H4A2.0023,2.0023,0,0,0,2,6V22H4V6H24.5859L2,28.5859,3.4141,30l2-2H28a2.0023,2.0023,0,0,0,2-2V10H28Z\"\n })), children);\n});\nvar NoodleBowl32 = /*#__PURE__*/React.forwardRef(function NoodleBowl32(_ref186, ref) {\n var children = _ref186.children,\n rest = _objectWithoutProperties(_ref186, _excluded186);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path285 || (_path285 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.4141,15l-8-8L2,8.4141,8.5859,15H2v1a14,14,0,0,0,28,0V15ZM16,28A12.0166,12.0166,0,0,1,4.0415,17h23.917A12.0166,12.0166,0,0,1,16,28Z\"\n })), _path286 || (_path286 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,8a5.0049,5.0049,0,0,0-1.5708.2554A8.0242,8.0242,0,0,0,14,5,7.9364,7.9364,0,0,0,9.0938,6.68L4.4141,2,3,3.4141,9.05,9.4648l.707-.7075A5.96,5.96,0,0,1,14,7a6.02,6.02,0,0,1,4.6875,2.2642,5.06,5.06,0,0,0-.59.61A2.9892,2.9892,0,0,1,15.7544,11H12v2h3.7544a4.98,4.98,0,0,0,3.9033-1.8745A3,3,0,0,1,25,13h2A5.0059,5.0059,0,0,0,22,8Z\"\n })), children);\n});\nvar NoodleBowl24 = /*#__PURE__*/React.forwardRef(function NoodleBowl24(_ref187, ref) {\n var children = _ref187.children,\n rest = _objectWithoutProperties(_ref187, _excluded187);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path287 || (_path287 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.4141,15l-8-8L2,8.4141,8.5859,15H2v1a14,14,0,0,0,28,0V15ZM16,28A12.0166,12.0166,0,0,1,4.0415,17h23.917A12.0166,12.0166,0,0,1,16,28Z\"\n })), _path288 || (_path288 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,8a5.0049,5.0049,0,0,0-1.5708.2554A8.0242,8.0242,0,0,0,14,5,7.9364,7.9364,0,0,0,9.0938,6.68L4.4141,2,3,3.4141,9.05,9.4648l.707-.7075A5.96,5.96,0,0,1,14,7a6.02,6.02,0,0,1,4.6875,2.2642,5.06,5.06,0,0,0-.59.61A2.9892,2.9892,0,0,1,15.7544,11H12v2h3.7544a4.98,4.98,0,0,0,3.9033-1.8745A3,3,0,0,1,25,13h2A5.0059,5.0059,0,0,0,22,8Z\"\n })), children);\n});\nvar NoodleBowl20 = /*#__PURE__*/React.forwardRef(function NoodleBowl20(_ref188, ref) {\n var children = _ref188.children,\n rest = _objectWithoutProperties(_ref188, _excluded188);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path289 || (_path289 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.4141,15l-8-8L2,8.4141,8.5859,15H2v1a14,14,0,0,0,28,0V15ZM16,28A12.0166,12.0166,0,0,1,4.0415,17h23.917A12.0166,12.0166,0,0,1,16,28Z\"\n })), _path290 || (_path290 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,8a5.0049,5.0049,0,0,0-1.5708.2554A8.0242,8.0242,0,0,0,14,5,7.9364,7.9364,0,0,0,9.0938,6.68L4.4141,2,3,3.4141,9.05,9.4648l.707-.7075A5.96,5.96,0,0,1,14,7a6.02,6.02,0,0,1,4.6875,2.2642,5.06,5.06,0,0,0-.59.61A2.9892,2.9892,0,0,1,15.7544,11H12v2h3.7544a4.98,4.98,0,0,0,3.9033-1.8745A3,3,0,0,1,25,13h2A5.0059,5.0059,0,0,0,22,8Z\"\n })), children);\n});\nvar NoodleBowl16 = /*#__PURE__*/React.forwardRef(function NoodleBowl16(_ref189, ref) {\n var children = _ref189.children,\n rest = _objectWithoutProperties(_ref189, _excluded189);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path291 || (_path291 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.4141,15l-8-8L2,8.4141,8.5859,15H2v1a14,14,0,0,0,28,0V15ZM16,28A12.0166,12.0166,0,0,1,4.0415,17h23.917A12.0166,12.0166,0,0,1,16,28Z\"\n })), _path292 || (_path292 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,8a5.0049,5.0049,0,0,0-1.5708.2554A8.0242,8.0242,0,0,0,14,5,7.9364,7.9364,0,0,0,9.0938,6.68L4.4141,2,3,3.4141,9.05,9.4648l.707-.7075A5.96,5.96,0,0,1,14,7a6.02,6.02,0,0,1,4.6875,2.2642,5.06,5.06,0,0,0-.59.61A2.9892,2.9892,0,0,1,15.7544,11H12v2h3.7544a4.98,4.98,0,0,0,3.9033-1.8745A3,3,0,0,1,25,13h2A5.0059,5.0059,0,0,0,22,8Z\"\n })), children);\n});\nvar NotAvailable32 = /*#__PURE__*/React.forwardRef(function NotAvailable32(_ref190, ref) {\n var children = _ref190.children,\n rest = _objectWithoutProperties(_ref190, _excluded190);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path293 || (_path293 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 15H14V17H4zM18 15H28V17H18z\"\n })), children);\n});\nvar NotAvailable24 = /*#__PURE__*/React.forwardRef(function NotAvailable24(_ref191, ref) {\n var children = _ref191.children,\n rest = _objectWithoutProperties(_ref191, _excluded191);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path294 || (_path294 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 15H14V17H4zM18 15H28V17H18z\"\n })), children);\n});\nvar NotAvailable20 = /*#__PURE__*/React.forwardRef(function NotAvailable20(_ref192, ref) {\n var children = _ref192.children,\n rest = _objectWithoutProperties(_ref192, _excluded192);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path295 || (_path295 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 15H14V17H4zM18 15H28V17H18z\"\n })), children);\n});\nvar NotAvailable16 = /*#__PURE__*/React.forwardRef(function NotAvailable16(_ref193, ref) {\n var children = _ref193.children,\n rest = _objectWithoutProperties(_ref193, _excluded193);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path296 || (_path296 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 15H14V17H4zM18 15H28V17H18z\"\n })), children);\n});\nvar NotSent32 = /*#__PURE__*/React.forwardRef(function NotSent32(_ref194, ref) {\n var children = _ref194.children,\n rest = _objectWithoutProperties(_ref194, _excluded194);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path297 || (_path297 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 28.59L3.41 2 2 3.41l8 8L2.66 14.06a1 1 0 000 1.87l9.6 3.84 3.84 9.6A1 1 0 0017 30h0a1 1 0 00.92-.66L20.6 22l8 8zM5.8 15L11.54 13l3.05 3-1.83 1.83zM17 26.2l-2.79-7L16 17.41l3 3.05zM15.69 11.45l7.64-2.78-2.78 7.64 1.56 1.56L25.94 7.34a1 1 0 00-1.28-1.28L14.13 9.89z\"\n })), children);\n});\nvar NotSent24 = /*#__PURE__*/React.forwardRef(function NotSent24(_ref195, ref) {\n var children = _ref195.children,\n rest = _objectWithoutProperties(_ref195, _excluded195);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path298 || (_path298 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 28.59L3.41 2 2 3.41l8 8L2.66 14.06a1 1 0 000 1.87l9.6 3.84 3.84 9.6A1 1 0 0017 30h0a1 1 0 00.92-.66L20.6 22l8 8zM5.8 15L11.54 13l3.05 3-1.83 1.83zM17 26.2l-2.79-7L16 17.41l3 3.05zM15.69 11.45l7.64-2.78-2.78 7.64 1.56 1.56L25.94 7.34a1 1 0 00-1.28-1.28L14.13 9.89z\"\n })), children);\n});\nvar NotSent20 = /*#__PURE__*/React.forwardRef(function NotSent20(_ref196, ref) {\n var children = _ref196.children,\n rest = _objectWithoutProperties(_ref196, _excluded196);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path299 || (_path299 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 28.59L3.41 2 2 3.41l8 8L2.66 14.06a1 1 0 000 1.87l9.6 3.84 3.84 9.6A1 1 0 0017 30h0a1 1 0 00.92-.66L20.6 22l8 8zM5.8 15L11.54 13l3.05 3-1.83 1.83zM17 26.2l-2.79-7L16 17.41l3 3.05zM15.69 11.45l7.64-2.78-2.78 7.64 1.56 1.56L25.94 7.34a1 1 0 00-1.28-1.28L14.13 9.89z\"\n })), children);\n});\nvar NotSent16 = /*#__PURE__*/React.forwardRef(function NotSent16(_ref197, ref) {\n var children = _ref197.children,\n rest = _objectWithoutProperties(_ref197, _excluded197);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path300 || (_path300 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 28.59L3.41 2 2 3.41l8 8L2.66 14.06a1 1 0 000 1.87l9.6 3.84 3.84 9.6A1 1 0 0017 30h0a1 1 0 00.92-.66L20.6 22l8 8zM5.8 15L11.54 13l3.05 3-1.83 1.83zM17 26.2l-2.79-7L16 17.41l3 3.05zM15.69 11.45l7.64-2.78-2.78 7.64 1.56 1.56L25.94 7.34a1 1 0 00-1.28-1.28L14.13 9.89z\"\n })), children);\n});\nvar NotSentFilled32 = /*#__PURE__*/React.forwardRef(function NotSentFilled32(_ref198, ref) {\n var children = _ref198.children,\n rest = _objectWithoutProperties(_ref198, _excluded198);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path301 || (_path301 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 28.59L3.41 2 2 3.41l8 8L2.66 14.06a1 1 0 000 1.87l8.59 3.43L14.59 16 16 17.41l-3.37 3.37 3.44 8.59A1 1 0 0017 30h0a1 1 0 00.92-.66L20.6 22l8 8zM22.49 16.83l3.45-9.49a1 1 0 00-1.28-1.28L15.17 9.51z\"\n })), children);\n});\nvar NotSentFilled24 = /*#__PURE__*/React.forwardRef(function NotSentFilled24(_ref199, ref) {\n var children = _ref199.children,\n rest = _objectWithoutProperties(_ref199, _excluded199);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path302 || (_path302 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 28.59L3.41 2 2 3.41l8 8L2.66 14.06a1 1 0 000 1.87l8.59 3.43L14.59 16 16 17.41l-3.37 3.37 3.44 8.59A1 1 0 0017 30h0a1 1 0 00.92-.66L20.6 22l8 8zM22.49 16.83l3.45-9.49a1 1 0 00-1.28-1.28L15.17 9.51z\"\n })), children);\n});\nvar NotSentFilled20 = /*#__PURE__*/React.forwardRef(function NotSentFilled20(_ref200, ref) {\n var children = _ref200.children,\n rest = _objectWithoutProperties(_ref200, _excluded200);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path303 || (_path303 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 28.59L3.41 2 2 3.41l8 8L2.66 14.06a1 1 0 000 1.87l8.59 3.43L14.59 16 16 17.41l-3.37 3.37 3.44 8.59A1 1 0 0017 30h0a1 1 0 00.92-.66L20.6 22l8 8zM22.49 16.83l3.45-9.49a1 1 0 00-1.28-1.28L15.17 9.51z\"\n })), children);\n});\nvar NotSentFilled16 = /*#__PURE__*/React.forwardRef(function NotSentFilled16(_ref201, ref) {\n var children = _ref201.children,\n rest = _objectWithoutProperties(_ref201, _excluded201);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path304 || (_path304 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 28.59L3.41 2 2 3.41l8 8L2.66 14.06a1 1 0 000 1.87l8.59 3.43L14.59 16 16 17.41l-3.37 3.37 3.44 8.59A1 1 0 0017 30h0a1 1 0 00.92-.66L20.6 22l8 8zM22.49 16.83l3.45-9.49a1 1 0 00-1.28-1.28L15.17 9.51z\"\n })), children);\n});\nvar Notebook32 = /*#__PURE__*/React.forwardRef(function Notebook32(_ref202, ref) {\n var children = _ref202.children,\n rest = _objectWithoutProperties(_ref202, _excluded202);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path305 || (_path305 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 10H26V12H19zM19 15H26V17H19zM19 20H26V22H19z\"\n })), _path306 || (_path306 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,5H4A2.002,2.002,0,0,0,2,7V25a2.0023,2.0023,0,0,0,2,2H28a2.0027,2.0027,0,0,0,2-2V7A2.0023,2.0023,0,0,0,28,5ZM4,7H15V25H4ZM17,25V7H28l.002,18Z\"\n })), children);\n});\nvar Notebook24 = /*#__PURE__*/React.forwardRef(function Notebook24(_ref203, ref) {\n var children = _ref203.children,\n rest = _objectWithoutProperties(_ref203, _excluded203);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path307 || (_path307 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 10H26V12H19zM19 15H26V17H19zM19 20H26V22H19z\"\n })), _path308 || (_path308 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,5H4A2.002,2.002,0,0,0,2,7V25a2.0023,2.0023,0,0,0,2,2H28a2.0027,2.0027,0,0,0,2-2V7A2.0023,2.0023,0,0,0,28,5ZM4,7H15V25H4ZM17,25V7H28l.002,18Z\"\n })), children);\n});\nvar Notebook20 = /*#__PURE__*/React.forwardRef(function Notebook20(_ref204, ref) {\n var children = _ref204.children,\n rest = _objectWithoutProperties(_ref204, _excluded204);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path309 || (_path309 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 10H26V12H19zM19 15H26V17H19zM19 20H26V22H19z\"\n })), _path310 || (_path310 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,5H4A2.002,2.002,0,0,0,2,7V25a2.0023,2.0023,0,0,0,2,2H28a2.0027,2.0027,0,0,0,2-2V7A2.0023,2.0023,0,0,0,28,5ZM4,7H15V25H4ZM17,25V7H28l.002,18Z\"\n })), children);\n});\nvar Notebook16 = /*#__PURE__*/React.forwardRef(function Notebook16(_ref205, ref) {\n var children = _ref205.children,\n rest = _objectWithoutProperties(_ref205, _excluded205);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path311 || (_path311 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 10H26V12H19zM19 15H26V17H19zM19 20H26V22H19z\"\n })), _path312 || (_path312 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,5H4A2.002,2.002,0,0,0,2,7V25a2.0023,2.0023,0,0,0,2,2H28a2.0027,2.0027,0,0,0,2-2V7A2.0023,2.0023,0,0,0,28,5ZM4,7H15V25H4ZM17,25V7H28l.002,18Z\"\n })), children);\n});\nvar NotebookReference32 = /*#__PURE__*/React.forwardRef(function NotebookReference32(_ref206, ref) {\n var children = _ref206.children,\n rest = _objectWithoutProperties(_ref206, _excluded206);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path313 || (_path313 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 20L4 22 7.586 22 2 27.586 3.414 29 9 23.414 9 27 11 27 11 20 4 20zM19 10H26V12H19zM19 15H26V17H19zM19 20H26V22H19z\"\n })), _path314 || (_path314 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,5H4A2.002,2.002,0,0,0,2,7V17H4V7H15V27H28a2.002,2.002,0,0,0,2-2V7A2.002,2.002,0,0,0,28,5ZM17,25V7H28l.0015,18Z\"\n })), children);\n});\nvar NotebookReference24 = /*#__PURE__*/React.forwardRef(function NotebookReference24(_ref207, ref) {\n var children = _ref207.children,\n rest = _objectWithoutProperties(_ref207, _excluded207);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path315 || (_path315 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 20L4 22 7.586 22 2 27.586 3.414 29 9 23.414 9 27 11 27 11 20 4 20zM19 10H26V12H19zM19 15H26V17H19zM19 20H26V22H19z\"\n })), _path316 || (_path316 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,5H4A2.002,2.002,0,0,0,2,7V17H4V7H15V27H28a2.002,2.002,0,0,0,2-2V7A2.002,2.002,0,0,0,28,5ZM17,25V7H28l.0015,18Z\"\n })), children);\n});\nvar NotebookReference20 = /*#__PURE__*/React.forwardRef(function NotebookReference20(_ref208, ref) {\n var children = _ref208.children,\n rest = _objectWithoutProperties(_ref208, _excluded208);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path317 || (_path317 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 20L4 22 7.586 22 2 27.586 3.414 29 9 23.414 9 27 11 27 11 20 4 20zM19 10H26V12H19zM19 15H26V17H19zM19 20H26V22H19z\"\n })), _path318 || (_path318 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,5H4A2.002,2.002,0,0,0,2,7V17H4V7H15V27H28a2.002,2.002,0,0,0,2-2V7A2.002,2.002,0,0,0,28,5ZM17,25V7H28l.0015,18Z\"\n })), children);\n});\nvar NotebookReference16 = /*#__PURE__*/React.forwardRef(function NotebookReference16(_ref209, ref) {\n var children = _ref209.children,\n rest = _objectWithoutProperties(_ref209, _excluded209);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path319 || (_path319 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 20L4 22 7.586 22 2 27.586 3.414 29 9 23.414 9 27 11 27 11 20 4 20zM19 10H26V12H19zM19 15H26V17H19zM19 20H26V22H19z\"\n })), _path320 || (_path320 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,5H4A2.002,2.002,0,0,0,2,7V17H4V7H15V27H28a2.002,2.002,0,0,0,2-2V7A2.002,2.002,0,0,0,28,5ZM17,25V7H28l.0015,18Z\"\n })), children);\n});\nvar Notification32 = /*#__PURE__*/React.forwardRef(function Notification32(_ref210, ref) {\n var children = _ref210.children,\n rest = _objectWithoutProperties(_ref210, _excluded210);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path321 || (_path321 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.7071,19.293,26,16.5859V13a10.0136,10.0136,0,0,0-9-9.9492V1H15V3.0508A10.0136,10.0136,0,0,0,6,13v3.5859L3.2929,19.293A1,1,0,0,0,3,20v3a1,1,0,0,0,1,1h7v.7768a5.152,5.152,0,0,0,4.5,5.1987A5.0057,5.0057,0,0,0,21,25V24h7a1,1,0,0,0,1-1V20A1,1,0,0,0,28.7071,19.293ZM19,25a3,3,0,0,1-6,0V24h6Zm8-3H5V20.4141L7.707,17.707A1,1,0,0,0,8,17V13a8,8,0,0,1,16,0v4a1,1,0,0,0,.293.707L27,20.4141Z\"\n })), children);\n});\nvar Notification24 = /*#__PURE__*/React.forwardRef(function Notification24(_ref211, ref) {\n var children = _ref211.children,\n rest = _objectWithoutProperties(_ref211, _excluded211);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path322 || (_path322 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.7071,19.293,26,16.5859V13a10.0136,10.0136,0,0,0-9-9.9492V1H15V3.0508A10.0136,10.0136,0,0,0,6,13v3.5859L3.2929,19.293A1,1,0,0,0,3,20v3a1,1,0,0,0,1,1h7v.7768a5.152,5.152,0,0,0,4.5,5.1987A5.0057,5.0057,0,0,0,21,25V24h7a1,1,0,0,0,1-1V20A1,1,0,0,0,28.7071,19.293ZM19,25a3,3,0,0,1-6,0V24h6Zm8-3H5V20.4141L7.707,17.707A1,1,0,0,0,8,17V13a8,8,0,0,1,16,0v4a1,1,0,0,0,.293.707L27,20.4141Z\"\n })), children);\n});\nvar Notification20 = /*#__PURE__*/React.forwardRef(function Notification20(_ref212, ref) {\n var children = _ref212.children,\n rest = _objectWithoutProperties(_ref212, _excluded212);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path323 || (_path323 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.7071,19.293,26,16.5859V13a10.0136,10.0136,0,0,0-9-9.9492V1H15V3.0508A10.0136,10.0136,0,0,0,6,13v3.5859L3.2929,19.293A1,1,0,0,0,3,20v3a1,1,0,0,0,1,1h7v.7768a5.152,5.152,0,0,0,4.5,5.1987A5.0057,5.0057,0,0,0,21,25V24h7a1,1,0,0,0,1-1V20A1,1,0,0,0,28.7071,19.293ZM19,25a3,3,0,0,1-6,0V24h6Zm8-3H5V20.4141L7.707,17.707A1,1,0,0,0,8,17V13a8,8,0,0,1,16,0v4a1,1,0,0,0,.293.707L27,20.4141Z\"\n })), children);\n});\nvar Notification16 = /*#__PURE__*/React.forwardRef(function Notification16(_ref213, ref) {\n var children = _ref213.children,\n rest = _objectWithoutProperties(_ref213, _excluded213);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path324 || (_path324 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14.4,10.1L13,8.8V6.5c0-2.6-1.9-4.7-4.5-5v-1h-1v1C5,1.8,3,3.9,3,6.5v2.3l-1.4,1.3c-0.1,0.1-0.2,0.2-0.1,0.4V12\\tc0,0.3,0.2,0.5,0.4,0.5c0,0,0,0,0.1,0h3.5C5.5,13.9,6.6,15,8,15s2.5-1.1,2.5-2.5H14c0.3,0,0.5-0.2,0.5-0.4c0,0,0,0,0-0.1v-1.5\\tC14.5,10.4,14.4,10.2,14.4,10.1z M8,14c-0.8,0-1.5-0.7-1.5-1.5h3C9.5,13.3,8.8,14,8,14z M13.5,11.5h-11v-0.8l1.3-1.4\\tC3.9,9.3,4,9.1,4,9V6.5c0-2.2,1.8-4,4-4s4,1.8,4,4V9c0,0.1,0.1,0.3,0.1,0.4l1.4,1.3V11.5z\"\n })), children);\n});\nvar NotificationFilled32 = /*#__PURE__*/React.forwardRef(function NotificationFilled32(_ref214, ref) {\n var children = _ref214.children,\n rest = _objectWithoutProperties(_ref214, _excluded214);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path325 || (_path325 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.707,19.293,26,16.5859V13a10.0136,10.0136,0,0,0-9-9.9492V1H15V3.0508A10.0136,10.0136,0,0,0,6,13v3.5859L3.293,19.293A.9993.9993,0,0,0,3,20v3a1,1,0,0,0,1,1h7v1a5,5,0,0,0,10,0V24h7a1,1,0,0,0,1-1V20A.9993.9993,0,0,0,28.707,19.293ZM19,25a3,3,0,0,1-6,0V24h6Z\"\n })), children);\n});\nvar NotificationFilled24 = /*#__PURE__*/React.forwardRef(function NotificationFilled24(_ref215, ref) {\n var children = _ref215.children,\n rest = _objectWithoutProperties(_ref215, _excluded215);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path326 || (_path326 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.707,19.293,26,16.5859V13a10.0136,10.0136,0,0,0-9-9.9492V1H15V3.0508A10.0136,10.0136,0,0,0,6,13v3.5859L3.293,19.293A.9993.9993,0,0,0,3,20v3a1,1,0,0,0,1,1h7v1a5,5,0,0,0,10,0V24h7a1,1,0,0,0,1-1V20A.9993.9993,0,0,0,28.707,19.293ZM19,25a3,3,0,0,1-6,0V24h6Z\"\n })), children);\n});\nvar NotificationFilled20 = /*#__PURE__*/React.forwardRef(function NotificationFilled20(_ref216, ref) {\n var children = _ref216.children,\n rest = _objectWithoutProperties(_ref216, _excluded216);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path327 || (_path327 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.707,19.293,26,16.5859V13a10.0136,10.0136,0,0,0-9-9.9492V1H15V3.0508A10.0136,10.0136,0,0,0,6,13v3.5859L3.293,19.293A.9993.9993,0,0,0,3,20v3a1,1,0,0,0,1,1h7v1a5,5,0,0,0,10,0V24h7a1,1,0,0,0,1-1V20A.9993.9993,0,0,0,28.707,19.293ZM19,25a3,3,0,0,1-6,0V24h6Z\"\n })), children);\n});\nvar NotificationFilled16 = /*#__PURE__*/React.forwardRef(function NotificationFilled16(_ref217, ref) {\n var children = _ref217.children,\n rest = _objectWithoutProperties(_ref217, _excluded217);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path328 || (_path328 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.707,19.293,26,16.5859V13a10.0136,10.0136,0,0,0-9-9.9492V1H15V3.0508A10.0136,10.0136,0,0,0,6,13v3.5859L3.293,19.293A.9993.9993,0,0,0,3,20v3a1,1,0,0,0,1,1h7v1a5,5,0,0,0,10,0V24h7a1,1,0,0,0,1-1V20A.9993.9993,0,0,0,28.707,19.293ZM19,25a3,3,0,0,1-6,0V24h6Z\"\n })), children);\n});\nvar NotificationNew32 = /*#__PURE__*/React.forwardRef(function NotificationNew32(_ref218, ref) {\n var children = _ref218.children,\n rest = _objectWithoutProperties(_ref218, _excluded218);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path329 || (_path329 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,16.5859V14H24v3a1,1,0,0,0,.293.707L27,20.4141V22H5V20.4141L7.707,17.707A1,1,0,0,0,8,17V13A7.9854,7.9854,0,0,1,20,6.0825V3.8467a9.896,9.896,0,0,0-3-.7959V1H15V3.0508A10.0136,10.0136,0,0,0,6,13v3.5859L3.293,19.293A1,1,0,0,0,3,20v3a1,1,0,0,0,1,1h7v1a5,5,0,0,0,10,0V24h7a1,1,0,0,0,1-1V20a1,1,0,0,0-.293-.707ZM19,25a3,3,0,0,1-6,0V24h6Z\"\n })), _circle137 || (_circle137 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"26\",\n cy: \"8\",\n r: \"4\"\n })), children);\n});\nvar NotificationNew24 = /*#__PURE__*/React.forwardRef(function NotificationNew24(_ref219, ref) {\n var children = _ref219.children,\n rest = _objectWithoutProperties(_ref219, _excluded219);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path330 || (_path330 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,16.5859V14H24v3a1,1,0,0,0,.293.707L27,20.4141V22H5V20.4141L7.707,17.707A1,1,0,0,0,8,17V13A7.9854,7.9854,0,0,1,20,6.0825V3.8467a9.896,9.896,0,0,0-3-.7959V1H15V3.0508A10.0136,10.0136,0,0,0,6,13v3.5859L3.293,19.293A1,1,0,0,0,3,20v3a1,1,0,0,0,1,1h7v1a5,5,0,0,0,10,0V24h7a1,1,0,0,0,1-1V20a1,1,0,0,0-.293-.707ZM19,25a3,3,0,0,1-6,0V24h6Z\"\n })), _circle138 || (_circle138 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"26\",\n cy: \"8\",\n r: \"4\"\n })), children);\n});\nvar NotificationNew20 = /*#__PURE__*/React.forwardRef(function NotificationNew20(_ref220, ref) {\n var children = _ref220.children,\n rest = _objectWithoutProperties(_ref220, _excluded220);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path331 || (_path331 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,16.5859V14H24v3a1,1,0,0,0,.293.707L27,20.4141V22H5V20.4141L7.707,17.707A1,1,0,0,0,8,17V13A7.9854,7.9854,0,0,1,20,6.0825V3.8467a9.896,9.896,0,0,0-3-.7959V1H15V3.0508A10.0136,10.0136,0,0,0,6,13v3.5859L3.293,19.293A1,1,0,0,0,3,20v3a1,1,0,0,0,1,1h7v1a5,5,0,0,0,10,0V24h7a1,1,0,0,0,1-1V20a1,1,0,0,0-.293-.707ZM19,25a3,3,0,0,1-6,0V24h6Z\"\n })), _circle139 || (_circle139 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"26\",\n cy: \"8\",\n r: \"4\"\n })), children);\n});\nvar NotificationNew16 = /*#__PURE__*/React.forwardRef(function NotificationNew16(_ref221, ref) {\n var children = _ref221.children,\n rest = _objectWithoutProperties(_ref221, _excluded221);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path332 || (_path332 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,16.5859V14H24v3a1,1,0,0,0,.293.707L27,20.4141V22H5V20.4141L7.707,17.707A1,1,0,0,0,8,17V13A7.9854,7.9854,0,0,1,20,6.0825V3.8467a9.896,9.896,0,0,0-3-.7959V1H15V3.0508A10.0136,10.0136,0,0,0,6,13v3.5859L3.293,19.293A1,1,0,0,0,3,20v3a1,1,0,0,0,1,1h7v1a5,5,0,0,0,10,0V24h7a1,1,0,0,0,1-1V20a1,1,0,0,0-.293-.707ZM19,25a3,3,0,0,1-6,0V24h6Z\"\n })), _circle140 || (_circle140 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"26\",\n cy: \"8\",\n r: \"4\"\n })), children);\n});\nvar NotificationOff32 = /*#__PURE__*/React.forwardRef(function NotificationOff32(_ref222, ref) {\n var children = _ref222.children,\n rest = _objectWithoutProperties(_ref222, _excluded222);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path333 || (_path333 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 16.5859V13a9.9217 9.9217 0 00-1.0833-4.5024L30 3.4141 28.5859 2 2 28.5859 3.4141 30l6-6H11v1a5 5 0 0010 0V24h7a1 1 0 001-1V20a1 1 0 00-.293-.707zM19 25a3 3 0 01-6 0V24h6zm8-3H11.4141L23.4119 10.0024A7.949 7.949 0 0124 13v4a1 1 0 00.293.707L27 20.4141zM7.707 17.707A1 1 0 008 17V13a8.0092 8.0092 0 018-8 7.9253 7.9253 0 014.9857 1.7681l1.4264-1.4263A9.934 9.934 0 0017 3.0508V1H15V3.0508A10.0136 10.0136 0 006 13v3.5859l-3 3L4.4141 21z\"\n })), children);\n});\nvar NotificationOff24 = /*#__PURE__*/React.forwardRef(function NotificationOff24(_ref223, ref) {\n var children = _ref223.children,\n rest = _objectWithoutProperties(_ref223, _excluded223);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path334 || (_path334 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 16.5859V13a9.9217 9.9217 0 00-1.0833-4.5024L30 3.4141 28.5859 2 2 28.5859 3.4141 30l6-6H11v1a5 5 0 0010 0V24h7a1 1 0 001-1V20a1 1 0 00-.293-.707zM19 25a3 3 0 01-6 0V24h6zm8-3H11.4141L23.4119 10.0024A7.949 7.949 0 0124 13v4a1 1 0 00.293.707L27 20.4141zM7.707 17.707A1 1 0 008 17V13a8.0092 8.0092 0 018-8 7.9253 7.9253 0 014.9857 1.7681l1.4264-1.4263A9.934 9.934 0 0017 3.0508V1H15V3.0508A10.0136 10.0136 0 006 13v3.5859l-3 3L4.4141 21z\"\n })), children);\n});\nvar NotificationOff20 = /*#__PURE__*/React.forwardRef(function NotificationOff20(_ref224, ref) {\n var children = _ref224.children,\n rest = _objectWithoutProperties(_ref224, _excluded224);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path335 || (_path335 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 16.5859V13a9.9217 9.9217 0 00-1.0833-4.5024L30 3.4141 28.5859 2 2 28.5859 3.4141 30l6-6H11v1a5 5 0 0010 0V24h7a1 1 0 001-1V20a1 1 0 00-.293-.707zM19 25a3 3 0 01-6 0V24h6zm8-3H11.4141L23.4119 10.0024A7.949 7.949 0 0124 13v4a1 1 0 00.293.707L27 20.4141zM7.707 17.707A1 1 0 008 17V13a8.0092 8.0092 0 018-8 7.9253 7.9253 0 014.9857 1.7681l1.4264-1.4263A9.934 9.934 0 0017 3.0508V1H15V3.0508A10.0136 10.0136 0 006 13v3.5859l-3 3L4.4141 21z\"\n })), children);\n});\nvar NotificationOff16 = /*#__PURE__*/React.forwardRef(function NotificationOff16(_ref225, ref) {\n var children = _ref225.children,\n rest = _objectWithoutProperties(_ref225, _excluded225);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path336 || (_path336 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.5 11.5v-.8l1.3-1.4C3.9 9.3 4 9.1 4 9V6.5c0-2.2 1.8-4 4-4 .9 0 1.8.3 2.5.9l.7-.7C10.5 2 9.5 1.6 8.5 1.5v-1h-1v1C5 1.8 3 3.9 3 6.5v2.3l-1.4 1.3c-.1.1-.2.2-.1.4v1H2.5zM13 8.8V6.5c0-.8-.2-1.6-.5-2.2L15 1.7 14.3 1 1 14.3 1.7 15l2.5-2.5h1.3C5.5 13.9 6.6 15 8 15s2.5-1.1 2.5-2.5H14c.3 0 .5-.2.5-.4 0 0 0 0 0-.1v-1.5c0-.1-.1-.3-.1-.4L13 8.8zM8 14c-.8 0-1.5-.7-1.5-1.5h3C9.5 13.3 8.8 14 8 14zM13.5 11.5H5.2L11.7 5C11.9 5.5 12 6 12 6.5V9c0 .1.1.3.1.4l1.4 1.3V11.5z\"\n })), children);\n});\nvar NotificationOffFilled32 = /*#__PURE__*/React.forwardRef(function NotificationOffFilled32(_ref226, ref) {\n var children = _ref226.children,\n rest = _objectWithoutProperties(_ref226, _excluded226);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path337 || (_path337 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 16.5859V13a9.8828 9.8828 0 00-1.0869-4.499L30 3.4141 28.5859 2 2 28.5859 3.4141 30l6-6H11v1a5 5 0 0010 0V24h7a1 1 0 001-1V20a.9993.9993 0 00-.293-.707zM19 25a3 3 0 01-6 0V24h6zM21.61 4.7383A9.9256 9.9256 0 0017 3.0508V1H15V3.0508A10.0136 10.0136 0 006 13v3.5859L3.293 19.293A.9993.9993 0 003 20v3a.9738.9738 0 00.0585.29z\"\n })), children);\n});\nvar NotificationOffFilled24 = /*#__PURE__*/React.forwardRef(function NotificationOffFilled24(_ref227, ref) {\n var children = _ref227.children,\n rest = _objectWithoutProperties(_ref227, _excluded227);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path338 || (_path338 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 16.5859V13a9.8828 9.8828 0 00-1.0869-4.499L30 3.4141 28.5859 2 2 28.5859 3.4141 30l6-6H11v1a5 5 0 0010 0V24h7a1 1 0 001-1V20a.9993.9993 0 00-.293-.707zM19 25a3 3 0 01-6 0V24h6zM21.61 4.7383A9.9256 9.9256 0 0017 3.0508V1H15V3.0508A10.0136 10.0136 0 006 13v3.5859L3.293 19.293A.9993.9993 0 003 20v3a.9738.9738 0 00.0585.29z\"\n })), children);\n});\nvar NotificationOffFilled20 = /*#__PURE__*/React.forwardRef(function NotificationOffFilled20(_ref228, ref) {\n var children = _ref228.children,\n rest = _objectWithoutProperties(_ref228, _excluded228);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path339 || (_path339 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 16.5859V13a9.8828 9.8828 0 00-1.0869-4.499L30 3.4141 28.5859 2 2 28.5859 3.4141 30l6-6H11v1a5 5 0 0010 0V24h7a1 1 0 001-1V20a.9993.9993 0 00-.293-.707zM19 25a3 3 0 01-6 0V24h6zM21.61 4.7383A9.9256 9.9256 0 0017 3.0508V1H15V3.0508A10.0136 10.0136 0 006 13v3.5859L3.293 19.293A.9993.9993 0 003 20v3a.9738.9738 0 00.0585.29z\"\n })), children);\n});\nvar NotificationOffFilled16 = /*#__PURE__*/React.forwardRef(function NotificationOffFilled16(_ref229, ref) {\n var children = _ref229.children,\n rest = _objectWithoutProperties(_ref229, _excluded229);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path340 || (_path340 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 16.5859V13a9.8828 9.8828 0 00-1.0869-4.499L30 3.4141 28.5859 2 2 28.5859 3.4141 30l6-6H11v1a5 5 0 0010 0V24h7a1 1 0 001-1V20a.9993.9993 0 00-.293-.707zM19 25a3 3 0 01-6 0V24h6zM21.61 4.7383A9.9256 9.9256 0 0017 3.0508V1H15V3.0508A10.0136 10.0136 0 006 13v3.5859L3.293 19.293A.9993.9993 0 003 20v3a.9738.9738 0 00.0585.29z\"\n })), children);\n});\nvar Number_032 = /*#__PURE__*/React.forwardRef(function Number_032(_ref230, ref) {\n var children = _ref230.children,\n rest = _objectWithoutProperties(_ref230, _excluded230);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path341 || (_path341 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,23H14a2,2,0,0,1-2-2V11a2,2,0,0,1,2-2h4a2,2,0,0,1,2,2V21A2,2,0,0,1,18,23ZM14,11h0V21h4V11Z\"\n })), _path342 || (_path342 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 15H17V17H15z\"\n })), children);\n});\nvar Number_024 = /*#__PURE__*/React.forwardRef(function Number_024(_ref231, ref) {\n var children = _ref231.children,\n rest = _objectWithoutProperties(_ref231, _excluded231);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path343 || (_path343 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,23H14a2,2,0,0,1-2-2V11a2,2,0,0,1,2-2h4a2,2,0,0,1,2,2V21A2,2,0,0,1,18,23ZM14,11h0V21h4V11Z\"\n })), _path344 || (_path344 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 15H17V17H15z\"\n })), children);\n});\nvar Number_020 = /*#__PURE__*/React.forwardRef(function Number_020(_ref232, ref) {\n var children = _ref232.children,\n rest = _objectWithoutProperties(_ref232, _excluded232);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path345 || (_path345 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,23H14a2,2,0,0,1-2-2V11a2,2,0,0,1,2-2h4a2,2,0,0,1,2,2V21A2,2,0,0,1,18,23ZM14,11h0V21h4V11Z\"\n })), _path346 || (_path346 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 15H17V17H15z\"\n })), children);\n});\nvar Number_016 = /*#__PURE__*/React.forwardRef(function Number_016(_ref233, ref) {\n var children = _ref233.children,\n rest = _objectWithoutProperties(_ref233, _excluded233);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path347 || (_path347 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,23H14a2,2,0,0,1-2-2V11a2,2,0,0,1,2-2h4a2,2,0,0,1,2,2V21A2,2,0,0,1,18,23ZM14,11h0V21h4V11Z\"\n })), _path348 || (_path348 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 15H17V17H15z\"\n })), children);\n});\nvar Number_132 = /*#__PURE__*/React.forwardRef(function Number_132(_ref234, ref) {\n var children = _ref234.children,\n rest = _objectWithoutProperties(_ref234, _excluded234);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path349 || (_path349 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,10V22h0V10m1-1H12v2h3V21H12v2h8V21H17V9Z\"\n })), children);\n});\nvar Number_124 = /*#__PURE__*/React.forwardRef(function Number_124(_ref235, ref) {\n var children = _ref235.children,\n rest = _objectWithoutProperties(_ref235, _excluded235);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path350 || (_path350 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,10V22h0V10m1-1H12v2h3V21H12v2h8V21H17V9Z\"\n })), children);\n});\nvar Number_120 = /*#__PURE__*/React.forwardRef(function Number_120(_ref236, ref) {\n var children = _ref236.children,\n rest = _objectWithoutProperties(_ref236, _excluded236);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path351 || (_path351 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,10V22h0V10m1-1H12v2h3V21H12v2h8V21H17V9Z\"\n })), children);\n});\nvar Number_116 = /*#__PURE__*/React.forwardRef(function Number_116(_ref237, ref) {\n var children = _ref237.children,\n rest = _objectWithoutProperties(_ref237, _excluded237);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path352 || (_path352 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,10V22h0V10m1-1H12v2h3V21H12v2h8V21H17V9Z\"\n })), children);\n});\nvar Number_232 = /*#__PURE__*/React.forwardRef(function Number_232(_ref238, ref) {\n var children = _ref238.children,\n rest = _objectWithoutProperties(_ref238, _excluded238);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path353 || (_path353 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,23H12V17a2,2,0,0,1,2-2h4V11H12V9h6a2,2,0,0,1,2,2v4a2,2,0,0,1-2,2H14v4h6Z\"\n })), children);\n});\nvar Number_224 = /*#__PURE__*/React.forwardRef(function Number_224(_ref239, ref) {\n var children = _ref239.children,\n rest = _objectWithoutProperties(_ref239, _excluded239);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path354 || (_path354 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,23H12V17a2,2,0,0,1,2-2h4V11H12V9h6a2,2,0,0,1,2,2v4a2,2,0,0,1-2,2H14v4h6Z\"\n })), children);\n});\nvar Number_220 = /*#__PURE__*/React.forwardRef(function Number_220(_ref240, ref) {\n var children = _ref240.children,\n rest = _objectWithoutProperties(_ref240, _excluded240);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path355 || (_path355 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,23H12V17a2,2,0,0,1,2-2h4V11H12V9h6a2,2,0,0,1,2,2v4a2,2,0,0,1-2,2H14v4h6Z\"\n })), children);\n});\nvar Number_216 = /*#__PURE__*/React.forwardRef(function Number_216(_ref241, ref) {\n var children = _ref241.children,\n rest = _objectWithoutProperties(_ref241, _excluded241);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path356 || (_path356 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,23H12V17a2,2,0,0,1,2-2h4V11H12V9h6a2,2,0,0,1,2,2v4a2,2,0,0,1-2,2H14v4h6Z\"\n })), children);\n});\nvar Number_332 = /*#__PURE__*/React.forwardRef(function Number_332(_ref242, ref) {\n var children = _ref242.children,\n rest = _objectWithoutProperties(_ref242, _excluded242);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path357 || (_path357 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,9H12v2h6v4H14v2h4v4H12v2h6a2,2,0,0,0,2-2V11A2,2,0,0,0,18,9Z\"\n })), children);\n});\nvar Number_324 = /*#__PURE__*/React.forwardRef(function Number_324(_ref243, ref) {\n var children = _ref243.children,\n rest = _objectWithoutProperties(_ref243, _excluded243);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path358 || (_path358 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,9H12v2h6v4H14v2h4v4H12v2h6a2,2,0,0,0,2-2V11A2,2,0,0,0,18,9Z\"\n })), children);\n});\nvar Number_320 = /*#__PURE__*/React.forwardRef(function Number_320(_ref244, ref) {\n var children = _ref244.children,\n rest = _objectWithoutProperties(_ref244, _excluded244);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path359 || (_path359 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,9H12v2h6v4H14v2h4v4H12v2h6a2,2,0,0,0,2-2V11A2,2,0,0,0,18,9Z\"\n })), children);\n});\nvar Number_316 = /*#__PURE__*/React.forwardRef(function Number_316(_ref245, ref) {\n var children = _ref245.children,\n rest = _objectWithoutProperties(_ref245, _excluded245);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path360 || (_path360 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,9H12v2h6v4H14v2h4v4H12v2h6a2,2,0,0,0,2-2V11A2,2,0,0,0,18,9Z\"\n })), children);\n});\nvar Number_432 = /*#__PURE__*/React.forwardRef(function Number_432(_ref246, ref) {\n var children = _ref246.children,\n rest = _objectWithoutProperties(_ref246, _excluded246);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path361 || (_path361 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,10v8h0V10m1-1H17v8H14V9H12V19h5v4h2V19h1V17H19V9Z\"\n })), children);\n});\nvar Number_424 = /*#__PURE__*/React.forwardRef(function Number_424(_ref247, ref) {\n var children = _ref247.children,\n rest = _objectWithoutProperties(_ref247, _excluded247);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path362 || (_path362 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,10v8h0V10m1-1H17v8H14V9H12V19h5v4h2V19h1V17H19V9Z\"\n })), children);\n});\nvar Number_420 = /*#__PURE__*/React.forwardRef(function Number_420(_ref248, ref) {\n var children = _ref248.children,\n rest = _objectWithoutProperties(_ref248, _excluded248);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path363 || (_path363 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,10v8h0V10m1-1H17v8H14V9H12V19h5v4h2V19h1V17H19V9Z\"\n })), children);\n});\nvar Number_416 = /*#__PURE__*/React.forwardRef(function Number_416(_ref249, ref) {\n var children = _ref249.children,\n rest = _objectWithoutProperties(_ref249, _excluded249);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path364 || (_path364 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,10v8h0V10m1-1H17v8H14V9H12V19h5v4h2V19h1V17H19V9Z\"\n })), children);\n});\nvar Number_532 = /*#__PURE__*/React.forwardRef(function Number_532(_ref250, ref) {\n var children = _ref250.children,\n rest = _objectWithoutProperties(_ref250, _excluded250);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path365 || (_path365 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,23H12V21h6V17H12V9h8v2H14v4h4a2,2,0,0,1,2,2v4A2,2,0,0,1,18,23Z\"\n })), children);\n});\n\nexport { Moon16, Moonrise16, Moonrise20, Moonrise24, Moonrise32, Moonset16, Moonset20, Moonset24, Moonset32, MostlyCloudy16, MostlyCloudy20, MostlyCloudy24, MostlyCloudy32, MostlyCloudyNight16, MostlyCloudyNight20, MostlyCloudyNight24, MostlyCloudyNight32, Mountain16, Mountain20, Mountain24, Mountain32, Mov16, Mov20, Mov24, Mov32, Move16, Move20, Move24, Move32, Movement16, Movement20, Movement24, Movement32, Mp316, Mp320, Mp324, Mp332, Mp416, Mp420, Mp424, Mp432, Mpeg16, Mpeg20, Mpeg24, Mpeg32, Mpg216, Mpg220, Mpg224, Mpg232, Music16, Music20, Music24, Music32, MusicAdd16, MusicAdd20, MusicAdd24, MusicAdd32, MusicRemove16, MusicRemove20, MusicRemove24, MusicRemove32, NameSpace16, NameSpace20, NameSpace24, NameSpace32, NavaidCivil16, NavaidCivil20, NavaidCivil24, NavaidCivil32, NavaidDme16, NavaidDme20, NavaidDme24, NavaidDme32, NavaidHelipad16, NavaidHelipad20, NavaidHelipad24, NavaidHelipad32, NavaidMilitary16, NavaidMilitary20, NavaidMilitary24, NavaidMilitary32, NavaidMilitaryCivil16, NavaidMilitaryCivil20, NavaidMilitaryCivil24, NavaidMilitaryCivil32, NavaidNdb16, NavaidNdb20, NavaidNdb24, NavaidNdb32, NavaidNdbDme16, NavaidNdbDme20, NavaidNdbDme24, NavaidNdbDme32, NavaidPrivate16, NavaidPrivate20, NavaidPrivate24, NavaidPrivate32, NavaidSeaplane16, NavaidSeaplane20, NavaidSeaplane24, NavaidSeaplane32, NavaidTacan16, NavaidTacan20, NavaidTacan24, NavaidTacan32, NavaidVhfor16, NavaidVhfor20, NavaidVhfor24, NavaidVhfor32, NavaidVor16, NavaidVor20, NavaidVor24, NavaidVor32, NavaidVordme16, NavaidVordme20, NavaidVordme24, NavaidVordme32, NavaidVortac16, NavaidVortac20, NavaidVortac24, NavaidVortac32, NetworkEnterprise16, NetworkEnterprise20, NetworkEnterprise24, NetworkEnterprise32, NetworkOverlay16, NetworkOverlay20, NetworkOverlay24, NetworkOverlay32, NetworkPublic16, NetworkPublic20, NetworkPublic24, NetworkPublic32, Network_116, Network_120, Network_124, Network_132, Network_216, Network_220, Network_224, Network_232, Network_316, Network_320, Network_324, Network_332, Network_3Reference16, Network_3Reference20, Network_3Reference24, Network_3Reference32, Network_416, Network_420, Network_424, Network_432, NewTab16, NewTab20, NewTab24, NewTab32, NextFilled16, NextFilled20, NextFilled24, NextFilled32, NextOutline16, NextOutline20, NextOutline24, NextOutline32, NoImage16, NoImage20, NoImage24, NoImage32, NoTicket16, NoTicket20, NoTicket24, NoTicket32, Nominal16, Nominal20, Nominal24, Nominal32, NonCertified16, NonCertified20, NonCertified24, NonCertified32, NoodleBowl16, NoodleBowl20, NoodleBowl24, NoodleBowl32, NotAvailable16, NotAvailable20, NotAvailable24, NotAvailable32, NotSent16, NotSent20, NotSent24, NotSent32, NotSentFilled16, NotSentFilled20, NotSentFilled24, NotSentFilled32, Notebook16, Notebook20, Notebook24, Notebook32, NotebookReference16, NotebookReference20, NotebookReference24, NotebookReference32, Notification16, Notification20, Notification24, Notification32, NotificationFilled16, NotificationFilled20, NotificationFilled24, NotificationFilled32, NotificationNew16, NotificationNew20, NotificationNew24, NotificationNew32, NotificationOff16, NotificationOff20, NotificationOff24, NotificationOff32, NotificationOffFilled16, NotificationOffFilled20, NotificationOffFilled24, NotificationOffFilled32, Number_016, Number_020, Number_024, Number_032, Number_116, Number_120, Number_124, Number_132, Number_216, Number_220, Number_224, Number_232, Number_316, Number_320, Number_324, Number_332, Number_416, Number_420, Number_424, Number_432, Number_532, WatsonHealthNominate16, WatsonHealthNominate20, WatsonHealthNominate24, WatsonHealthNominate32 };\n","/**\n * Copyright IBM Corp. 2019, 2020\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * Code generated by @carbon/icon-build-helpers. DO NOT EDIT.\n */\nimport { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../Icon-a8cbe70a.js';\nimport React from 'react';\nimport '@carbon/icon-helpers';\nimport 'prop-types';\n\nvar _circle, _circle2, _path, _circle3, _circle4, _path2, _circle5, _circle6, _path3, _circle7, _circle8, _path4, _path5, _path6, _path7, _path8, _path9, _path10, _path11, _path12, _path13, _path14, _path15, _path16, _path17, _path18, _path19, _path20, _path21, _path22, _path23, _path24, _path25, _path26, _path27, _path28, _path29, _circle9, _path30, _path31, _circle10, _path32, _path33, _circle11, _path34, _path35, _circle12, _path36, _path37, _path38, _path39, _path40, _path41, _path42, _path43, _path44, _path45, _path46, _path47, _path48, _path49, _path50, _path51, _path52, _path53, _path54, _path55, _path56, _path57, _path58, _path59, _path60, _path61, _path62, _path63, _path64, _path65, _path66, _path67, _path68, _path69, _path70, _path71, _path72, _path73, _path74, _path75, _path76, _path77, _circle13, _path78, _circle14, _path79, _circle15, _path80, _circle16, _path81, _path82, _path83, _path84, _path85, _path86, _path87, _path88, _path89, _path90, _path91, _path92, _path93, _path94, _path95, _path96, _path97, _path98, _path99, _path100, _path101, _path102, _path103, _path104, _path105, _path106, _path107, _path108, _path109, _path110, _path111, _path112, _path113, _path114, _path115, _path116, _path117, _path118, _path119, _path120, _path121, _path122, _path123, _path124, _path125, _path126, _path127, _path128, _path129, _path130, _path131, _path132, _path133, _path134, _path135, _path136, _path137, _path138, _path139, _path140, _path141, _path142, _path143, _path144, _path145, _path146, _path147, _path148, _path149, _path150, _path151, _path152, _path153, _path154, _path155, _path156, _path157, _path158, _path159, _path160, _path161, _path162, _path163, _path164, _path165, _path166, _path167, _path168, _path169, _path170, _path171, _path172, _path173, _path174, _path175, _path176, _path177, _path178, _path179, _path180, _path181, _path182, _path183, _path184, _path185, _path186, _path187, _path188, _path189, _path190, _path191, _path192, _path193, _path194, _path195, _path196, _path197, _path198, _path199, _path200, _path201, _path202, _path203, _path204, _path205, _path206, _path207, _path208, _path209, _path210, _path211, _path212, _path213, _path214, _path215, _path216, _path217, _path218, _path219, _path220, _path221, _path222, _path223, _path224, _path225, _path226, _path227, _path228, _path229, _path230, _path231, _path232, _path233, _path234, _path235, _path236, _path237, _path238, _path239, _path240, _path241, _path242, _path243, _path244, _path245, _path246, _path247, _path248, _path249, _path250, _path251, _path252, _path253, _path254, _path255, _path256, _path257, _path258, _path259, _path260, _path261, _path262, _path263, _path264, _path265, _path266, _path267, _path268, _path269, _path270, _path271, _path272, _path273, _path274, _path275, _path276, _path277, _path278, _path279, _path280, _path281, _path282, _path283, _path284, _path285, _path286, _path287, _path288, _path289, _path290, _path291, _path292, _path293, _path294, _path295, _path296, _path297, _path298, _path299, _path300, _path301, _path302, _path303, _path304, _path305, _path306, _path307, _path308, _path309, _path310, _path311, _path312, _path313, _path314, _path315, _path316, _path317, _path318, _path319, _path320, _path321, _path322, _path323, _path324, _path325, _path326, _path327, _path328, _path329, _path330, _path331, _path332, _path333, _path334, _path335, _path336, _path337, _path338, _path339, _path340, _path341, _path342, _path343, _path344, _path345, _path346, _path347, _path348, _path349, _path350, _path351, _path352, _path353, _path354, _path355, _path356, _path357, _path358, _path359, _path360, _path361, _path362, _path363, _path364, _path365, _path366, _path367, _path368, _path369, _path370, _path371, _path372, _path373, _path374, _path375, _path376, _path377, _path378, _path379, _path380, _path381, _path382, _path383, _path384, _path385, _path386, _path387, _path388, _path389, _path390, _path391, _path392, _path393, _path394, _path395, _path396, _path397, _path398, _path399, _path400, _path401, _path402, _path403, _path404, _path405, _path406, _path407, _path408, _path409, _path410, _path411, _path412, _path413, _path414, _path415, _path416, _path417, _path418, _path419, _path420, _path421, _path422, _path423, _path424, _path425, _path426, _path427, _path428, _path429, _path430, _path431, _path432, _path433, _path434, _path435, _path436, _path437, _path438, _path439, _path440, _path441, _path442, _path443, _path444, _path445, _path446, _path447, _path448, _path449, _path450, _path451, _path452, _path453, _rect, _path454, _path455, _rect2, _path456, _path457, _rect3, _path458, _path459, _rect4, _path460, _path461, _path462, _path463, _path464, _path465, _path466, _path467, _path468, _path469, _path470, _path471, _path472, _path473, _path474, _path475, _path476, _path477, _path478, _path479, _path480, _path481, _path482, _path483, _path484, _path485, _path486, _path487, _path488, _path489, _path490, _path491, _path492, _path493, _path494, _path495, _path496, _path497, _path498, _path499, _path500, _path501, _path502, _path503, _path504, _path505, _path506, _path507, _path508, _path509, _path510, _path511, _path512, _path513, _path514, _path515, _path516, _path517, _path518, _path519, _path520, _path521, _path522, _path523, _path524, _path525, _path526, _path527, _path528, _path529, _path530, _path531, _path532, _path533, _path534, _path535, _path536, _path537, _path538, _path539, _circle17, _path540, _path541, _path542, _circle18, _path543, _path544, _path545, _circle19, _path546, _path547, _path548, _circle20, _path549, _path550, _path551, _path552, _path553, _path554, _path555, _path556, _path557, _path558, _path559, _path560, _path561, _path562, _path563, _path564, _path565, _path566, _path567, _path568, _path569, _path570, _path571, _path572, _path573, _path574, _path575, _path576, _path577, _path578, _path579, _path580, _path581, _path582, _path583, _path584, _path585, _path586, _path587, _path588, _path589, _path590, _path591, _path592, _path593, _path594;\n\nvar _excluded = [\"children\"],\n _excluded2 = [\"children\"],\n _excluded3 = [\"children\"],\n _excluded4 = [\"children\"],\n _excluded5 = [\"children\"],\n _excluded6 = [\"children\"],\n _excluded7 = [\"children\"],\n _excluded8 = [\"children\"],\n _excluded9 = [\"children\"],\n _excluded10 = [\"children\"],\n _excluded11 = [\"children\"],\n _excluded12 = [\"children\"],\n _excluded13 = [\"children\"],\n _excluded14 = [\"children\"],\n _excluded15 = [\"children\"],\n _excluded16 = [\"children\"],\n _excluded17 = [\"children\"],\n _excluded18 = [\"children\"],\n _excluded19 = [\"children\"],\n _excluded20 = [\"children\"],\n _excluded21 = [\"children\"],\n _excluded22 = [\"children\"],\n _excluded23 = [\"children\"],\n _excluded24 = [\"children\"],\n _excluded25 = [\"children\"],\n _excluded26 = [\"children\"],\n _excluded27 = [\"children\"],\n _excluded28 = [\"children\"],\n _excluded29 = [\"children\"],\n _excluded30 = [\"children\"],\n _excluded31 = [\"children\"],\n _excluded32 = [\"children\"],\n _excluded33 = [\"children\"],\n _excluded34 = [\"children\"],\n _excluded35 = [\"children\"],\n _excluded36 = [\"children\"],\n _excluded37 = [\"children\"],\n _excluded38 = [\"children\"],\n _excluded39 = [\"children\"],\n _excluded40 = [\"children\"],\n _excluded41 = [\"children\"],\n _excluded42 = [\"children\"],\n _excluded43 = [\"children\"],\n _excluded44 = [\"children\"],\n _excluded45 = [\"children\"],\n _excluded46 = [\"children\"],\n _excluded47 = [\"children\"],\n _excluded48 = [\"children\"],\n _excluded49 = [\"children\"],\n _excluded50 = [\"children\"],\n _excluded51 = [\"children\"],\n _excluded52 = [\"children\"],\n _excluded53 = [\"children\"],\n _excluded54 = [\"children\"],\n _excluded55 = [\"children\"],\n _excluded56 = [\"children\"],\n _excluded57 = [\"children\"],\n _excluded58 = [\"children\"],\n _excluded59 = [\"children\"],\n _excluded60 = [\"children\"],\n _excluded61 = [\"children\"],\n _excluded62 = [\"children\"],\n _excluded63 = [\"children\"],\n _excluded64 = [\"children\"],\n _excluded65 = [\"children\"],\n _excluded66 = [\"children\"],\n _excluded67 = [\"children\"],\n _excluded68 = [\"children\"],\n _excluded69 = [\"children\"],\n _excluded70 = [\"children\"],\n _excluded71 = [\"children\"],\n _excluded72 = [\"children\"],\n _excluded73 = [\"children\"],\n _excluded74 = [\"children\"],\n _excluded75 = [\"children\"],\n _excluded76 = [\"children\"],\n _excluded77 = [\"children\"],\n _excluded78 = [\"children\"],\n _excluded79 = [\"children\"],\n _excluded80 = [\"children\"],\n _excluded81 = [\"children\"],\n _excluded82 = [\"children\"],\n _excluded83 = [\"children\"],\n _excluded84 = [\"children\"],\n _excluded85 = [\"children\"],\n _excluded86 = [\"children\"],\n _excluded87 = [\"children\"],\n _excluded88 = [\"children\"],\n _excluded89 = [\"children\"],\n _excluded90 = [\"children\"],\n _excluded91 = [\"children\"],\n _excluded92 = [\"children\"],\n _excluded93 = [\"children\"],\n _excluded94 = [\"children\"],\n _excluded95 = [\"children\"],\n _excluded96 = [\"children\"],\n _excluded97 = [\"children\"],\n _excluded98 = [\"children\"],\n _excluded99 = [\"children\"],\n _excluded100 = [\"children\"],\n _excluded101 = [\"children\"],\n _excluded102 = [\"children\"],\n _excluded103 = [\"children\"],\n _excluded104 = [\"children\"],\n _excluded105 = [\"children\"],\n _excluded106 = [\"children\"],\n _excluded107 = [\"children\"],\n _excluded108 = [\"children\"],\n _excluded109 = [\"children\"],\n _excluded110 = [\"children\"],\n _excluded111 = [\"children\"],\n _excluded112 = [\"children\"],\n _excluded113 = [\"children\"],\n _excluded114 = [\"children\"],\n _excluded115 = [\"children\"],\n _excluded116 = [\"children\"],\n _excluded117 = [\"children\"],\n _excluded118 = [\"children\"],\n _excluded119 = [\"children\"],\n _excluded120 = [\"children\"],\n _excluded121 = [\"children\"],\n _excluded122 = [\"children\"],\n _excluded123 = [\"children\"],\n _excluded124 = [\"children\"],\n _excluded125 = [\"children\"],\n _excluded126 = [\"children\"],\n _excluded127 = [\"children\"],\n _excluded128 = [\"children\"],\n _excluded129 = [\"children\"],\n _excluded130 = [\"children\"],\n _excluded131 = [\"children\"],\n _excluded132 = [\"children\"],\n _excluded133 = [\"children\"],\n _excluded134 = [\"children\"],\n _excluded135 = [\"children\"],\n _excluded136 = [\"children\"],\n _excluded137 = [\"children\"],\n _excluded138 = [\"children\"],\n _excluded139 = [\"children\"],\n _excluded140 = [\"children\"],\n _excluded141 = [\"children\"],\n _excluded142 = [\"children\"],\n _excluded143 = [\"children\"],\n _excluded144 = [\"children\"],\n _excluded145 = [\"children\"],\n _excluded146 = [\"children\"],\n _excluded147 = [\"children\"],\n _excluded148 = [\"children\"],\n _excluded149 = [\"children\"],\n _excluded150 = [\"children\"],\n _excluded151 = [\"children\"],\n _excluded152 = [\"children\"],\n _excluded153 = [\"children\"],\n _excluded154 = [\"children\"],\n _excluded155 = [\"children\"],\n _excluded156 = [\"children\"],\n _excluded157 = [\"children\"],\n _excluded158 = [\"children\"],\n _excluded159 = [\"children\"],\n _excluded160 = [\"children\"],\n _excluded161 = [\"children\"],\n _excluded162 = [\"children\"],\n _excluded163 = [\"children\"],\n _excluded164 = [\"children\"],\n _excluded165 = [\"children\"],\n _excluded166 = [\"children\"],\n _excluded167 = [\"children\"],\n _excluded168 = [\"children\"],\n _excluded169 = [\"children\"],\n _excluded170 = [\"children\"],\n _excluded171 = [\"children\"],\n _excluded172 = [\"children\"],\n _excluded173 = [\"children\"],\n _excluded174 = [\"children\"],\n _excluded175 = [\"children\"],\n _excluded176 = [\"children\"],\n _excluded177 = [\"children\"],\n _excluded178 = [\"children\"],\n _excluded179 = [\"children\"],\n _excluded180 = [\"children\"],\n _excluded181 = [\"children\"],\n _excluded182 = [\"children\"],\n _excluded183 = [\"children\"],\n _excluded184 = [\"children\"],\n _excluded185 = [\"children\"],\n _excluded186 = [\"children\"],\n _excluded187 = [\"children\"],\n _excluded188 = [\"children\"],\n _excluded189 = [\"children\"],\n _excluded190 = [\"children\"],\n _excluded191 = [\"children\"],\n _excluded192 = [\"children\"],\n _excluded193 = [\"children\"],\n _excluded194 = [\"children\"],\n _excluded195 = [\"children\"],\n _excluded196 = [\"children\"],\n _excluded197 = [\"children\"],\n _excluded198 = [\"children\"],\n _excluded199 = [\"children\"],\n _excluded200 = [\"children\"],\n _excluded201 = [\"children\"],\n _excluded202 = [\"children\"],\n _excluded203 = [\"children\"],\n _excluded204 = [\"children\"],\n _excluded205 = [\"children\"],\n _excluded206 = [\"children\"],\n _excluded207 = [\"children\"],\n _excluded208 = [\"children\"],\n _excluded209 = [\"children\"],\n _excluded210 = [\"children\"],\n _excluded211 = [\"children\"],\n _excluded212 = [\"children\"],\n _excluded213 = [\"children\"],\n _excluded214 = [\"children\"],\n _excluded215 = [\"children\"],\n _excluded216 = [\"children\"],\n _excluded217 = [\"children\"],\n _excluded218 = [\"children\"],\n _excluded219 = [\"children\"],\n _excluded220 = [\"children\"],\n _excluded221 = [\"children\"],\n _excluded222 = [\"children\"],\n _excluded223 = [\"children\"],\n _excluded224 = [\"children\"],\n _excluded225 = [\"children\"],\n _excluded226 = [\"children\"],\n _excluded227 = [\"children\"],\n _excluded228 = [\"children\"],\n _excluded229 = [\"children\"],\n _excluded230 = [\"children\"],\n _excluded231 = [\"children\"],\n _excluded232 = [\"children\"],\n _excluded233 = [\"children\"],\n _excluded234 = [\"children\"],\n _excluded235 = [\"children\"],\n _excluded236 = [\"children\"],\n _excluded237 = [\"children\"],\n _excluded238 = [\"children\"],\n _excluded239 = [\"children\"],\n _excluded240 = [\"children\"],\n _excluded241 = [\"children\"],\n _excluded242 = [\"children\"],\n _excluded243 = [\"children\"],\n _excluded244 = [\"children\"],\n _excluded245 = [\"children\"],\n _excluded246 = [\"children\"],\n _excluded247 = [\"children\"],\n _excluded248 = [\"children\"],\n _excluded249 = [\"children\"],\n _excluded250 = [\"children\"];\nvar BeeBat32 = /*#__PURE__*/React.forwardRef(function BeeBat32(_ref, ref) {\n var children = _ref.children,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle || (_circle = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"13\",\n cy: \"8\",\n r: \"2\"\n })), _circle2 || (_circle2 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"19\",\n cy: \"8\",\n r: \"2\"\n })), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M31.8083,8.665A.8745.8745,0,0,0,31,8.125H29c-4.21,0-7.721,2.002-9.1648,4.9014a4.8186,4.8186,0,0,0-7.67,0C10.721,10.127,7.21,8.125,3,8.125H1A.8749.8749,0,0,0,.3816,9.6191L.4834,9.72A5.3885,5.3885,0,0,1,2.1612,15.751.8751.8751,0,0,0,3,16.875a2.8966,2.8966,0,0,1,2.1587.7266c.9783.9814.9714,2.8872.9668,4.1479l0,.25A.875.875,0,0,0,7,22.875h4.125V23a4.875,4.875,0,0,0,9.75,0v-.125H25A.875.875,0,0,0,25.875,22l0-.25c-.0046-1.2607-.0115-3.1665.9668-4.1479A2.8966,2.8966,0,0,1,29,16.875a.8751.8751,0,0,0,.8388-1.124,5.3883,5.3883,0,0,1,1.6765-6.0293l.1033-.103A.875.875,0,0,0,31.8083,8.665ZM16,12.875A3.1286,3.1286,0,0,1,19.125,16v.125h-6.25V16A3.1286,3.1286,0,0,1,16,12.875Zm-3.125,5h6.25v3.25h-6.25Zm-5.0007,3.25c-.0178-1.459-.1839-3.4619-1.4761-4.7588a4.1876,4.1876,0,0,0-2.31-1.1518A6.657,6.657,0,0,0,2.9524,9.875H3c4.5562,0,8.125,2.69,8.125,6.125v5.125ZM19.125,23a3.125,3.125,0,0,1-6.25,0v-.125h6.25Zm8.7868-7.7856a4.1876,4.1876,0,0,0-2.31,1.1518c-1.2922,1.2969-1.4583,3.3-1.4761,4.7588H20.875V16c0-3.4346,3.5688-6.125,8.125-6.125h.0481A6.6561,6.6561,0,0,0,27.9118,15.2144Z\"\n })), children);\n});\nvar BeeBat24 = /*#__PURE__*/React.forwardRef(function BeeBat24(_ref2, ref) {\n var children = _ref2.children,\n rest = _objectWithoutProperties(_ref2, _excluded2);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle3 || (_circle3 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"13\",\n cy: \"8\",\n r: \"2\"\n })), _circle4 || (_circle4 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"19\",\n cy: \"8\",\n r: \"2\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M31.8083,8.665A.8745.8745,0,0,0,31,8.125H29c-4.21,0-7.721,2.002-9.1648,4.9014a4.8186,4.8186,0,0,0-7.67,0C10.721,10.127,7.21,8.125,3,8.125H1A.8749.8749,0,0,0,.3816,9.6191L.4834,9.72A5.3885,5.3885,0,0,1,2.1612,15.751.8751.8751,0,0,0,3,16.875a2.8966,2.8966,0,0,1,2.1587.7266c.9783.9814.9714,2.8872.9668,4.1479l0,.25A.875.875,0,0,0,7,22.875h4.125V23a4.875,4.875,0,0,0,9.75,0v-.125H25A.875.875,0,0,0,25.875,22l0-.25c-.0046-1.2607-.0115-3.1665.9668-4.1479A2.8966,2.8966,0,0,1,29,16.875a.8751.8751,0,0,0,.8388-1.124,5.3883,5.3883,0,0,1,1.6765-6.0293l.1033-.103A.875.875,0,0,0,31.8083,8.665ZM16,12.875A3.1286,3.1286,0,0,1,19.125,16v.125h-6.25V16A3.1286,3.1286,0,0,1,16,12.875Zm-3.125,5h6.25v3.25h-6.25Zm-5.0007,3.25c-.0178-1.459-.1839-3.4619-1.4761-4.7588a4.1876,4.1876,0,0,0-2.31-1.1518A6.657,6.657,0,0,0,2.9524,9.875H3c4.5562,0,8.125,2.69,8.125,6.125v5.125ZM19.125,23a3.125,3.125,0,0,1-6.25,0v-.125h6.25Zm8.7868-7.7856a4.1876,4.1876,0,0,0-2.31,1.1518c-1.2922,1.2969-1.4583,3.3-1.4761,4.7588H20.875V16c0-3.4346,3.5688-6.125,8.125-6.125h.0481A6.6561,6.6561,0,0,0,27.9118,15.2144Z\"\n })), children);\n});\nvar BeeBat20 = /*#__PURE__*/React.forwardRef(function BeeBat20(_ref3, ref) {\n var children = _ref3.children,\n rest = _objectWithoutProperties(_ref3, _excluded3);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle5 || (_circle5 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"13\",\n cy: \"8\",\n r: \"2\"\n })), _circle6 || (_circle6 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"19\",\n cy: \"8\",\n r: \"2\"\n })), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M31.8083,8.665A.8745.8745,0,0,0,31,8.125H29c-4.21,0-7.721,2.002-9.1648,4.9014a4.8186,4.8186,0,0,0-7.67,0C10.721,10.127,7.21,8.125,3,8.125H1A.8749.8749,0,0,0,.3816,9.6191L.4834,9.72A5.3885,5.3885,0,0,1,2.1612,15.751.8751.8751,0,0,0,3,16.875a2.8966,2.8966,0,0,1,2.1587.7266c.9783.9814.9714,2.8872.9668,4.1479l0,.25A.875.875,0,0,0,7,22.875h4.125V23a4.875,4.875,0,0,0,9.75,0v-.125H25A.875.875,0,0,0,25.875,22l0-.25c-.0046-1.2607-.0115-3.1665.9668-4.1479A2.8966,2.8966,0,0,1,29,16.875a.8751.8751,0,0,0,.8388-1.124,5.3883,5.3883,0,0,1,1.6765-6.0293l.1033-.103A.875.875,0,0,0,31.8083,8.665ZM16,12.875A3.1286,3.1286,0,0,1,19.125,16v.125h-6.25V16A3.1286,3.1286,0,0,1,16,12.875Zm-3.125,5h6.25v3.25h-6.25Zm-5.0007,3.25c-.0178-1.459-.1839-3.4619-1.4761-4.7588a4.1876,4.1876,0,0,0-2.31-1.1518A6.657,6.657,0,0,0,2.9524,9.875H3c4.5562,0,8.125,2.69,8.125,6.125v5.125ZM19.125,23a3.125,3.125,0,0,1-6.25,0v-.125h6.25Zm8.7868-7.7856a4.1876,4.1876,0,0,0-2.31,1.1518c-1.2922,1.2969-1.4583,3.3-1.4761,4.7588H20.875V16c0-3.4346,3.5688-6.125,8.125-6.125h.0481A6.6561,6.6561,0,0,0,27.9118,15.2144Z\"\n })), children);\n});\nvar BeeBat16 = /*#__PURE__*/React.forwardRef(function BeeBat16(_ref4, ref) {\n var children = _ref4.children,\n rest = _objectWithoutProperties(_ref4, _excluded4);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle7 || (_circle7 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"13\",\n cy: \"8\",\n r: \"2\"\n })), _circle8 || (_circle8 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"19\",\n cy: \"8\",\n r: \"2\"\n })), _path4 || (_path4 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M31.8083,8.665A.8745.8745,0,0,0,31,8.125H29c-4.21,0-7.721,2.002-9.1648,4.9014a4.8186,4.8186,0,0,0-7.67,0C10.721,10.127,7.21,8.125,3,8.125H1A.8749.8749,0,0,0,.3816,9.6191L.4834,9.72A5.3885,5.3885,0,0,1,2.1612,15.751.8751.8751,0,0,0,3,16.875a2.8966,2.8966,0,0,1,2.1587.7266c.9783.9814.9714,2.8872.9668,4.1479l0,.25A.875.875,0,0,0,7,22.875h4.125V23a4.875,4.875,0,0,0,9.75,0v-.125H25A.875.875,0,0,0,25.875,22l0-.25c-.0046-1.2607-.0115-3.1665.9668-4.1479A2.8966,2.8966,0,0,1,29,16.875a.8751.8751,0,0,0,.8388-1.124,5.3883,5.3883,0,0,1,1.6765-6.0293l.1033-.103A.875.875,0,0,0,31.8083,8.665ZM16,12.875A3.1286,3.1286,0,0,1,19.125,16v.125h-6.25V16A3.1286,3.1286,0,0,1,16,12.875Zm-3.125,5h6.25v3.25h-6.25Zm-5.0007,3.25c-.0178-1.459-.1839-3.4619-1.4761-4.7588a4.1876,4.1876,0,0,0-2.31-1.1518A6.657,6.657,0,0,0,2.9524,9.875H3c4.5562,0,8.125,2.69,8.125,6.125v5.125ZM19.125,23a3.125,3.125,0,0,1-6.25,0v-.125h6.25Zm8.7868-7.7856a4.1876,4.1876,0,0,0-2.31,1.1518c-1.2922,1.2969-1.4583,3.3-1.4761,4.7588H20.875V16c0-3.4346,3.5688-6.125,8.125-6.125h.0481A6.6561,6.6561,0,0,0,27.9118,15.2144Z\"\n })), children);\n});\nvar Bicycle32 = /*#__PURE__*/React.forwardRef(function Bicycle32(_ref5, ref) {\n var children = _ref5.children,\n rest = _objectWithoutProperties(_ref5, _excluded5);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path5 || (_path5 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,16c-.0879,0-.1731.0093-.26.0132L24.2368,9H28V7H23a1,1,0,0,0-.978,1.21L22.62,11H12.3872l-1-3H14V6H7V8H9.28l1.0411,3.123-2.57,5.1392A6,6,0,1,0,11.91,23h2.61a1.991,1.991,0,0,0,1.5616-.75L23.14,13.4258l.6436,3.0039A5.9891,5.9891,0,1,0,26,16ZM6,26a4,4,0,1,1,.8364-7.9092L5.1055,21.5527l.009.0044A.9834.9834,0,0,0,5,22a.9931.9931,0,0,0,1.8853.4429l.0092.0044L8.6182,19A3.9835,3.9835,0,0,1,6,26Zm5.91-5a5.9986,5.9986,0,0,0-2.3733-3.8364l1.6787-3.3574L13.613,21Zm3.4577-1.06L13.054,13h7.8654ZM26,26a3.9882,3.9882,0,0,1-1.7859-7.56l.8079,3.77.02-.0044A.9859.9859,0,0,0,26,23a1,1,0,0,0,1-1,.9456.9456,0,0,0-.0415-.2056l.02-.0044-.8086-3.7729A3.9931,3.9931,0,0,1,26,26Z\"\n })), children);\n});\nvar Bicycle24 = /*#__PURE__*/React.forwardRef(function Bicycle24(_ref6, ref) {\n var children = _ref6.children,\n rest = _objectWithoutProperties(_ref6, _excluded6);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path6 || (_path6 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,16c-.0879,0-.1731.0093-.26.0132L24.2368,9H28V7H23a1,1,0,0,0-.978,1.21L22.62,11H12.3872l-1-3H14V6H7V8H9.28l1.0411,3.123-2.57,5.1392A6,6,0,1,0,11.91,23h2.61a1.991,1.991,0,0,0,1.5616-.75L23.14,13.4258l.6436,3.0039A5.9891,5.9891,0,1,0,26,16ZM6,26a4,4,0,1,1,.8364-7.9092L5.1055,21.5527l.009.0044A.9834.9834,0,0,0,5,22a.9931.9931,0,0,0,1.8853.4429l.0092.0044L8.6182,19A3.9835,3.9835,0,0,1,6,26Zm5.91-5a5.9986,5.9986,0,0,0-2.3733-3.8364l1.6787-3.3574L13.613,21Zm3.4577-1.06L13.054,13h7.8654ZM26,26a3.9882,3.9882,0,0,1-1.7859-7.56l.8079,3.77.02-.0044A.9859.9859,0,0,0,26,23a1,1,0,0,0,1-1,.9456.9456,0,0,0-.0415-.2056l.02-.0044-.8086-3.7729A3.9931,3.9931,0,0,1,26,26Z\"\n })), children);\n});\nvar Bicycle20 = /*#__PURE__*/React.forwardRef(function Bicycle20(_ref7, ref) {\n var children = _ref7.children,\n rest = _objectWithoutProperties(_ref7, _excluded7);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path7 || (_path7 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,16c-.0879,0-.1731.0093-.26.0132L24.2368,9H28V7H23a1,1,0,0,0-.978,1.21L22.62,11H12.3872l-1-3H14V6H7V8H9.28l1.0411,3.123-2.57,5.1392A6,6,0,1,0,11.91,23h2.61a1.991,1.991,0,0,0,1.5616-.75L23.14,13.4258l.6436,3.0039A5.9891,5.9891,0,1,0,26,16ZM6,26a4,4,0,1,1,.8364-7.9092L5.1055,21.5527l.009.0044A.9834.9834,0,0,0,5,22a.9931.9931,0,0,0,1.8853.4429l.0092.0044L8.6182,19A3.9835,3.9835,0,0,1,6,26Zm5.91-5a5.9986,5.9986,0,0,0-2.3733-3.8364l1.6787-3.3574L13.613,21Zm3.4577-1.06L13.054,13h7.8654ZM26,26a3.9882,3.9882,0,0,1-1.7859-7.56l.8079,3.77.02-.0044A.9859.9859,0,0,0,26,23a1,1,0,0,0,1-1,.9456.9456,0,0,0-.0415-.2056l.02-.0044-.8086-3.7729A3.9931,3.9931,0,0,1,26,26Z\"\n })), children);\n});\nvar Bicycle16 = /*#__PURE__*/React.forwardRef(function Bicycle16(_ref8, ref) {\n var children = _ref8.children,\n rest = _objectWithoutProperties(_ref8, _excluded8);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path8 || (_path8 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,16c-.0879,0-.1731.0093-.26.0132L24.2368,9H28V7H23a1,1,0,0,0-.978,1.21L22.62,11H12.3872l-1-3H14V6H7V8H9.28l1.0411,3.123-2.57,5.1392A6,6,0,1,0,11.91,23h2.61a1.991,1.991,0,0,0,1.5616-.75L23.14,13.4258l.6436,3.0039A5.9891,5.9891,0,1,0,26,16ZM6,26a4,4,0,1,1,.8364-7.9092L5.1055,21.5527l.009.0044A.9834.9834,0,0,0,5,22a.9931.9931,0,0,0,1.8853.4429l.0092.0044L8.6182,19A3.9835,3.9835,0,0,1,6,26Zm5.91-5a5.9986,5.9986,0,0,0-2.3733-3.8364l1.6787-3.3574L13.613,21Zm3.4577-1.06L13.054,13h7.8654ZM26,26a3.9882,3.9882,0,0,1-1.7859-7.56l.8079,3.77.02-.0044A.9859.9859,0,0,0,26,23a1,1,0,0,0,1-1,.9456.9456,0,0,0-.0415-.2056l.02-.0044-.8086-3.7729A3.9931,3.9931,0,0,1,26,26Z\"\n })), children);\n});\nvar Binoculars32 = /*#__PURE__*/React.forwardRef(function Binoculars32(_ref9, ref) {\n var children = _ref9.children,\n rest = _objectWithoutProperties(_ref9, _excluded9);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path9 || (_path9 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,8V5a1,1,0,0,0-1-1H21a1,1,0,0,0-1,1V8a2,2,0,0,0-2,2v2H14V10a2,2,0,0,0-2-2V5a1,1,0,0,0-1-1H5A1,1,0,0,0,4,5V8a2,2,0,0,0-2,2V22a2,2,0,0,0,1,1.72V27a1,1,0,0,0,1,1h8a1,1,0,0,0,1-1V23.72A2,2,0,0,0,14,22V20h4v2a2,2,0,0,0,1,1.72V27a1,1,0,0,0,1,1h8a1,1,0,0,0,1-1V23.72A2,2,0,0,0,30,22V10A2,2,0,0,0,28,8ZM11,26H5V24h6Zm1-4H4V10H6V6h4v4h2Zm2-4V14h4v4Zm13,8H21V24h6Zm1-4H20V10h2V6h4v4h2Z\"\n })), children);\n});\nvar Binoculars24 = /*#__PURE__*/React.forwardRef(function Binoculars24(_ref10, ref) {\n var children = _ref10.children,\n rest = _objectWithoutProperties(_ref10, _excluded10);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path10 || (_path10 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,8V5a1,1,0,0,0-1-1H21a1,1,0,0,0-1,1V8a2,2,0,0,0-2,2v2H14V10a2,2,0,0,0-2-2V5a1,1,0,0,0-1-1H5A1,1,0,0,0,4,5V8a2,2,0,0,0-2,2V22a2,2,0,0,0,1,1.72V27a1,1,0,0,0,1,1h8a1,1,0,0,0,1-1V23.72A2,2,0,0,0,14,22V20h4v2a2,2,0,0,0,1,1.72V27a1,1,0,0,0,1,1h8a1,1,0,0,0,1-1V23.72A2,2,0,0,0,30,22V10A2,2,0,0,0,28,8ZM11,26H5V24h6Zm1-4H4V10H6V6h4v4h2Zm2-4V14h4v4Zm13,8H21V24h6Zm1-4H20V10h2V6h4v4h2Z\"\n })), children);\n});\nvar Binoculars20 = /*#__PURE__*/React.forwardRef(function Binoculars20(_ref11, ref) {\n var children = _ref11.children,\n rest = _objectWithoutProperties(_ref11, _excluded11);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path11 || (_path11 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,8V5a1,1,0,0,0-1-1H21a1,1,0,0,0-1,1V8a2,2,0,0,0-2,2v2H14V10a2,2,0,0,0-2-2V5a1,1,0,0,0-1-1H5A1,1,0,0,0,4,5V8a2,2,0,0,0-2,2V22a2,2,0,0,0,1,1.72V27a1,1,0,0,0,1,1h8a1,1,0,0,0,1-1V23.72A2,2,0,0,0,14,22V20h4v2a2,2,0,0,0,1,1.72V27a1,1,0,0,0,1,1h8a1,1,0,0,0,1-1V23.72A2,2,0,0,0,30,22V10A2,2,0,0,0,28,8ZM11,26H5V24h6Zm1-4H4V10H6V6h4v4h2Zm2-4V14h4v4Zm13,8H21V24h6Zm1-4H20V10h2V6h4v4h2Z\"\n })), children);\n});\nvar Binoculars16 = /*#__PURE__*/React.forwardRef(function Binoculars16(_ref12, ref) {\n var children = _ref12.children,\n rest = _objectWithoutProperties(_ref12, _excluded12);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path12 || (_path12 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,8V5a1,1,0,0,0-1-1H21a1,1,0,0,0-1,1V8a2,2,0,0,0-2,2v2H14V10a2,2,0,0,0-2-2V5a1,1,0,0,0-1-1H5A1,1,0,0,0,4,5V8a2,2,0,0,0-2,2V22a2,2,0,0,0,1,1.72V27a1,1,0,0,0,1,1h8a1,1,0,0,0,1-1V23.72A2,2,0,0,0,14,22V20h4v2a2,2,0,0,0,1,1.72V27a1,1,0,0,0,1,1h8a1,1,0,0,0,1-1V23.72A2,2,0,0,0,30,22V10A2,2,0,0,0,28,8ZM11,26H5V24h6Zm1-4H4V10H6V6h4v4h2Zm2-4V14h4v4Zm13,8H21V24h6Zm1-4H20V10h2V6h4v4h2Z\"\n })), children);\n});\nvar QBlochSphere32 = /*#__PURE__*/React.forwardRef(function QBlochSphere32(_ref13, ref) {\n var children = _ref13.children,\n rest = _objectWithoutProperties(_ref13, _excluded13);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path13 || (_path13 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.87,7.84l-1.74-1L16,14h0a2,2,0,1,0,2,2,2,2,0,0,0-.27-1Z\"\n })), _path14 || (_path14 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,2a12,12,0,0,1,11.17,7.65,25.69,25.69,0,0,0-3.69-1.5l-1,1.77a22.7,22.7,0,0,1,5.41,2.39,11.05,11.05,0,0,1,0,3.38A22.92,22.92,0,0,1,16,21,22.92,22.92,0,0,1,4.13,17.69a11.05,11.05,0,0,1,0-3.38A22.8,22.8,0,0,1,15,11V9a25,25,0,0,0-10.17,2.6A12,12,0,0,1,16,4Zm0,24A12,12,0,0,1,4.83,20.35,24.88,24.88,0,0,0,16,23a24.88,24.88,0,0,0,11.17-2.65A12,12,0,0,1,16,28Z\"\n })), children);\n});\nvar QBlochSphere24 = /*#__PURE__*/React.forwardRef(function QBlochSphere24(_ref14, ref) {\n var children = _ref14.children,\n rest = _objectWithoutProperties(_ref14, _excluded14);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path15 || (_path15 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.87,7.84l-1.74-1L16,14h0a2,2,0,1,0,2,2,2,2,0,0,0-.27-1Z\"\n })), _path16 || (_path16 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,2a12,12,0,0,1,11.17,7.65,25.69,25.69,0,0,0-3.69-1.5l-1,1.77a22.7,22.7,0,0,1,5.41,2.39,11.05,11.05,0,0,1,0,3.38A22.92,22.92,0,0,1,16,21,22.92,22.92,0,0,1,4.13,17.69a11.05,11.05,0,0,1,0-3.38A22.8,22.8,0,0,1,15,11V9a25,25,0,0,0-10.17,2.6A12,12,0,0,1,16,4Zm0,24A12,12,0,0,1,4.83,20.35,24.88,24.88,0,0,0,16,23a24.88,24.88,0,0,0,11.17-2.65A12,12,0,0,1,16,28Z\"\n })), children);\n});\nvar QBlochSphere20 = /*#__PURE__*/React.forwardRef(function QBlochSphere20(_ref15, ref) {\n var children = _ref15.children,\n rest = _objectWithoutProperties(_ref15, _excluded15);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path17 || (_path17 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.87,7.84l-1.74-1L16,14h0a2,2,0,1,0,2,2,2,2,0,0,0-.27-1Z\"\n })), _path18 || (_path18 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,2a12,12,0,0,1,11.17,7.65,25.69,25.69,0,0,0-3.69-1.5l-1,1.77a22.7,22.7,0,0,1,5.41,2.39,11.05,11.05,0,0,1,0,3.38A22.92,22.92,0,0,1,16,21,22.92,22.92,0,0,1,4.13,17.69a11.05,11.05,0,0,1,0-3.38A22.8,22.8,0,0,1,15,11V9a25,25,0,0,0-10.17,2.6A12,12,0,0,1,16,4Zm0,24A12,12,0,0,1,4.83,20.35,24.88,24.88,0,0,0,16,23a24.88,24.88,0,0,0,11.17-2.65A12,12,0,0,1,16,28Z\"\n })), children);\n});\nvar QBlochSphere16 = /*#__PURE__*/React.forwardRef(function QBlochSphere16(_ref16, ref) {\n var children = _ref16.children,\n rest = _objectWithoutProperties(_ref16, _excluded16);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path19 || (_path19 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.87,7.84l-1.74-1L16,14h0a2,2,0,1,0,2,2,2,2,0,0,0-.27-1Z\"\n })), _path20 || (_path20 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,2a12,12,0,0,1,11.17,7.65,25.69,25.69,0,0,0-3.69-1.5l-1,1.77a22.7,22.7,0,0,1,5.41,2.39,11.05,11.05,0,0,1,0,3.38A22.92,22.92,0,0,1,16,21,22.92,22.92,0,0,1,4.13,17.69a11.05,11.05,0,0,1,0-3.38A22.8,22.8,0,0,1,15,11V9a25,25,0,0,0-10.17,2.6A12,12,0,0,1,16,4Zm0,24A12,12,0,0,1,4.83,20.35,24.88,24.88,0,0,0,16,23a24.88,24.88,0,0,0,11.17-2.65A12,12,0,0,1,16,28Z\"\n })), children);\n});\nvar BlockStorage32 = /*#__PURE__*/React.forwardRef(function BlockStorage32(_ref17, ref) {\n var children = _ref17.children,\n rest = _objectWithoutProperties(_ref17, _excluded17);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path21 || (_path21 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9,12V10H4a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H20a2,2,0,0,0,2-2V19H20v9H4V12\"\n })), _path22 || (_path22 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 12H14V4h8zM12 4v8a2 2 0 002 2h8a2 2 0 002-2V4a2 2 0 00-2-2H14A2 2 0 0012 4zM14 18v4H10V18h4M8 18v4a2 2 0 002 2h4a2 2 0 002-2V18a2 2 0 00-2-2H10A2 2 0 008 18zM28 17v2H26V17h2m-4-1v4a1 1 0 001 1h4a1 1 0 001-1V16a1 1 0 00-1-1H25A1 1 0 0024 16z\"\n })), children);\n});\nvar BlockStorage24 = /*#__PURE__*/React.forwardRef(function BlockStorage24(_ref18, ref) {\n var children = _ref18.children,\n rest = _objectWithoutProperties(_ref18, _excluded18);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path23 || (_path23 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9,12V10H4a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H20a2,2,0,0,0,2-2V19H20v9H4V12\"\n })), _path24 || (_path24 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 12H14V4h8zM12 4v8a2 2 0 002 2h8a2 2 0 002-2V4a2 2 0 00-2-2H14A2 2 0 0012 4zM14 18v4H10V18h4M8 18v4a2 2 0 002 2h4a2 2 0 002-2V18a2 2 0 00-2-2H10A2 2 0 008 18zM28 17v2H26V17h2m-4-1v4a1 1 0 001 1h4a1 1 0 001-1V16a1 1 0 00-1-1H25A1 1 0 0024 16z\"\n })), children);\n});\nvar BlockStorage20 = /*#__PURE__*/React.forwardRef(function BlockStorage20(_ref19, ref) {\n var children = _ref19.children,\n rest = _objectWithoutProperties(_ref19, _excluded19);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path25 || (_path25 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9,12V10H4a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H20a2,2,0,0,0,2-2V19H20v9H4V12\"\n })), _path26 || (_path26 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 12H14V4h8zM12 4v8a2 2 0 002 2h8a2 2 0 002-2V4a2 2 0 00-2-2H14A2 2 0 0012 4zM14 18v4H10V18h4M8 18v4a2 2 0 002 2h4a2 2 0 002-2V18a2 2 0 00-2-2H10A2 2 0 008 18zM28 17v2H26V17h2m-4-1v4a1 1 0 001 1h4a1 1 0 001-1V16a1 1 0 00-1-1H25A1 1 0 0024 16z\"\n })), children);\n});\nvar BlockStorage16 = /*#__PURE__*/React.forwardRef(function BlockStorage16(_ref20, ref) {\n var children = _ref20.children,\n rest = _objectWithoutProperties(_ref20, _excluded20);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path27 || (_path27 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9,12V10H4a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H20a2,2,0,0,0,2-2V19H20v9H4V12\"\n })), _path28 || (_path28 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 12H14V4h8zM12 4v8a2 2 0 002 2h8a2 2 0 002-2V4a2 2 0 00-2-2H14A2 2 0 0012 4zM14 18v4H10V18h4M8 18v4a2 2 0 002 2h4a2 2 0 002-2V18a2 2 0 00-2-2H10A2 2 0 008 18zM28 17v2H26V17h2m-4-1v4a1 1 0 001 1h4a1 1 0 001-1V16a1 1 0 00-1-1H25A1 1 0 0024 16z\"\n })), children);\n});\nvar BlockStorageAlt32 = /*#__PURE__*/React.forwardRef(function BlockStorageAlt32(_ref21, ref) {\n var children = _ref21.children,\n rest = _objectWithoutProperties(_ref21, _excluded21);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path29 || (_path29 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,20H26v2h2v6H4V22H6V20H4a2.0024,2.0024,0,0,0-2,2v6a2.0024,2.0024,0,0,0,2,2H28a2.0024,2.0024,0,0,0,2-2V22A2.0024,2.0024,0,0,0,28,20Z\"\n })), _circle9 || (_circle9 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"25\",\n r: \"1\"\n })), _path30 || (_path30 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 20H8V13h7zm-5-2h3V15H10zM24 20H17V13h7zm-5-2h3V15H19zM15 11H8V4h7zM10 9h3V6H10zM24 11H17V4h7zM19 9h3V6H19z\"\n })), children);\n});\nvar BlockStorageAlt24 = /*#__PURE__*/React.forwardRef(function BlockStorageAlt24(_ref22, ref) {\n var children = _ref22.children,\n rest = _objectWithoutProperties(_ref22, _excluded22);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path31 || (_path31 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,20H26v2h2v6H4V22H6V20H4a2.0024,2.0024,0,0,0-2,2v6a2.0024,2.0024,0,0,0,2,2H28a2.0024,2.0024,0,0,0,2-2V22A2.0024,2.0024,0,0,0,28,20Z\"\n })), _circle10 || (_circle10 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"25\",\n r: \"1\"\n })), _path32 || (_path32 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 20H8V13h7zm-5-2h3V15H10zM24 20H17V13h7zm-5-2h3V15H19zM15 11H8V4h7zM10 9h3V6H10zM24 11H17V4h7zM19 9h3V6H19z\"\n })), children);\n});\nvar BlockStorageAlt20 = /*#__PURE__*/React.forwardRef(function BlockStorageAlt20(_ref23, ref) {\n var children = _ref23.children,\n rest = _objectWithoutProperties(_ref23, _excluded23);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path33 || (_path33 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,20H26v2h2v6H4V22H6V20H4a2.0024,2.0024,0,0,0-2,2v6a2.0024,2.0024,0,0,0,2,2H28a2.0024,2.0024,0,0,0,2-2V22A2.0024,2.0024,0,0,0,28,20Z\"\n })), _circle11 || (_circle11 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"25\",\n r: \"1\"\n })), _path34 || (_path34 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 20H8V13h7zm-5-2h3V15H10zM24 20H17V13h7zm-5-2h3V15H19zM15 11H8V4h7zM10 9h3V6H10zM24 11H17V4h7zM19 9h3V6H19z\"\n })), children);\n});\nvar BlockStorageAlt16 = /*#__PURE__*/React.forwardRef(function BlockStorageAlt16(_ref24, ref) {\n var children = _ref24.children,\n rest = _objectWithoutProperties(_ref24, _excluded24);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path35 || (_path35 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,20H26v2h2v6H4V22H6V20H4a2.0024,2.0024,0,0,0-2,2v6a2.0024,2.0024,0,0,0,2,2H28a2.0024,2.0024,0,0,0,2-2V22A2.0024,2.0024,0,0,0,28,20Z\"\n })), _circle12 || (_circle12 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"25\",\n r: \"1\"\n })), _path36 || (_path36 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 20H8V13h7zm-5-2h3V15H10zM24 20H17V13h7zm-5-2h3V15H19zM15 11H8V4h7zM10 9h3V6H10zM24 11H17V4h7zM19 9h3V6H19z\"\n })), children);\n});\nvar Blockchain32 = /*#__PURE__*/React.forwardRef(function Blockchain32(_ref25, ref) {\n var children = _ref25.children,\n rest = _objectWithoutProperties(_ref25, _excluded25);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path37 || (_path37 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6,24H4V8H6ZM28,8H26V24h2ZM24,6V4H8V6Zm0,22V26H8v2Z\"\n })), children);\n});\nvar Blockchain24 = /*#__PURE__*/React.forwardRef(function Blockchain24(_ref26, ref) {\n var children = _ref26.children,\n rest = _objectWithoutProperties(_ref26, _excluded26);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path38 || (_path38 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6,24H4V8H6ZM28,8H26V24h2ZM24,6V4H8V6Zm0,22V26H8v2Z\"\n })), children);\n});\nvar Blockchain20 = /*#__PURE__*/React.forwardRef(function Blockchain20(_ref27, ref) {\n var children = _ref27.children,\n rest = _objectWithoutProperties(_ref27, _excluded27);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path39 || (_path39 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6,24H4V8H6ZM28,8H26V24h2ZM24,6V4H8V6Zm0,22V26H8v2Z\"\n })), children);\n});\nvar Blockchain16 = /*#__PURE__*/React.forwardRef(function Blockchain16(_ref28, ref) {\n var children = _ref28.children,\n rest = _objectWithoutProperties(_ref28, _excluded28);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path40 || (_path40 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6,24H4V8H6ZM28,8H26V24h2ZM24,6V4H8V6Zm0,22V26H8v2Z\"\n })), children);\n});\nvar Blog32 = /*#__PURE__*/React.forwardRef(function Blog32(_ref29, ref) {\n var children = _ref29.children,\n rest = _objectWithoutProperties(_ref29, _excluded29);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path41 || (_path41 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 24H14V26H4zM4 18H14V20H4zM26 14H6a2 2 0 01-2-2V6A2 2 0 016 4H26a2 2 0 012 2v6A2 2 0 0126 14zM6 6v6H26V6zM26 28H20a2 2 0 01-2-2V20a2 2 0 012-2h6a2 2 0 012 2v6A2 2 0 0126 28zm-6-8v6h6V20z\"\n })), children);\n});\nvar Blog24 = /*#__PURE__*/React.forwardRef(function Blog24(_ref30, ref) {\n var children = _ref30.children,\n rest = _objectWithoutProperties(_ref30, _excluded30);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path42 || (_path42 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 24H14V26H4zM4 18H14V20H4zM26 14H6a2 2 0 01-2-2V6A2 2 0 016 4H26a2 2 0 012 2v6A2 2 0 0126 14zM6 6v6H26V6zM26 28H20a2 2 0 01-2-2V20a2 2 0 012-2h6a2 2 0 012 2v6A2 2 0 0126 28zm-6-8v6h6V20z\"\n })), children);\n});\nvar Blog20 = /*#__PURE__*/React.forwardRef(function Blog20(_ref31, ref) {\n var children = _ref31.children,\n rest = _objectWithoutProperties(_ref31, _excluded31);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path43 || (_path43 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 24H14V26H4zM4 18H14V20H4zM26 14H6a2 2 0 01-2-2V6A2 2 0 016 4H26a2 2 0 012 2v6A2 2 0 0126 14zM6 6v6H26V6zM26 28H20a2 2 0 01-2-2V20a2 2 0 012-2h6a2 2 0 012 2v6A2 2 0 0126 28zm-6-8v6h6V20z\"\n })), children);\n});\nvar Blog16 = /*#__PURE__*/React.forwardRef(function Blog16(_ref32, ref) {\n var children = _ref32.children,\n rest = _objectWithoutProperties(_ref32, _excluded32);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path44 || (_path44 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 24H14V26H4zM4 18H14V20H4zM26 14H6a2 2 0 01-2-2V6A2 2 0 016 4H26a2 2 0 012 2v6A2 2 0 0126 14zM6 6v6H26V6zM26 28H20a2 2 0 01-2-2V20a2 2 0 012-2h6a2 2 0 012 2v6A2 2 0 0126 28zm-6-8v6h6V20z\"\n })), children);\n});\nvar Bluetooth32 = /*#__PURE__*/React.forwardRef(function Bluetooth32(_ref33, ref) {\n var children = _ref33.children,\n rest = _objectWithoutProperties(_ref33, _excluded33);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path45 || (_path45 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30a1.06,1.06,0,0,1-.42-.09A1,1,0,0,1,15,29V18.41L8.41,25,7,23.59,14.59,16,7,8.41,8.41,7,15,13.59V3a1,1,0,0,1,.58-.91,1,1,0,0,1,1.07.15l7,6A1,1,0,0,1,24,9a1,1,0,0,1-.29.75L17.41,16l6.3,6.29A1,1,0,0,1,24,23a1,1,0,0,1-.35.72l-7,6A1,1,0,0,1,16,30Zm1-11.59v8.42l4.53-3.89ZM17,5.17v8.42l4.53-4.53Z\"\n })), children);\n});\nvar Bluetooth24 = /*#__PURE__*/React.forwardRef(function Bluetooth24(_ref34, ref) {\n var children = _ref34.children,\n rest = _objectWithoutProperties(_ref34, _excluded34);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path46 || (_path46 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30a1.06,1.06,0,0,1-.42-.09A1,1,0,0,1,15,29V18.41L8.41,25,7,23.59,14.59,16,7,8.41,8.41,7,15,13.59V3a1,1,0,0,1,.58-.91,1,1,0,0,1,1.07.15l7,6A1,1,0,0,1,24,9a1,1,0,0,1-.29.75L17.41,16l6.3,6.29A1,1,0,0,1,24,23a1,1,0,0,1-.35.72l-7,6A1,1,0,0,1,16,30Zm1-11.59v8.42l4.53-3.89ZM17,5.17v8.42l4.53-4.53Z\"\n })), children);\n});\nvar Bluetooth20 = /*#__PURE__*/React.forwardRef(function Bluetooth20(_ref35, ref) {\n var children = _ref35.children,\n rest = _objectWithoutProperties(_ref35, _excluded35);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path47 || (_path47 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30a1.06,1.06,0,0,1-.42-.09A1,1,0,0,1,15,29V18.41L8.41,25,7,23.59,14.59,16,7,8.41,8.41,7,15,13.59V3a1,1,0,0,1,.58-.91,1,1,0,0,1,1.07.15l7,6A1,1,0,0,1,24,9a1,1,0,0,1-.29.75L17.41,16l6.3,6.29A1,1,0,0,1,24,23a1,1,0,0,1-.35.72l-7,6A1,1,0,0,1,16,30Zm1-11.59v8.42l4.53-3.89ZM17,5.17v8.42l4.53-4.53Z\"\n })), children);\n});\nvar Bluetooth16 = /*#__PURE__*/React.forwardRef(function Bluetooth16(_ref36, ref) {\n var children = _ref36.children,\n rest = _objectWithoutProperties(_ref36, _excluded36);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path48 || (_path48 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30a1.06,1.06,0,0,1-.42-.09A1,1,0,0,1,15,29V18.41L8.41,25,7,23.59,14.59,16,7,8.41,8.41,7,15,13.59V3a1,1,0,0,1,.58-.91,1,1,0,0,1,1.07.15l7,6A1,1,0,0,1,24,9a1,1,0,0,1-.29.75L17.41,16l6.3,6.29A1,1,0,0,1,24,23a1,1,0,0,1-.35.72l-7,6A1,1,0,0,1,16,30Zm1-11.59v8.42l4.53-3.89ZM17,5.17v8.42l4.53-4.53Z\"\n })), children);\n});\nvar BluetoothOff32 = /*#__PURE__*/React.forwardRef(function BluetoothOff32(_ref37, ref) {\n var children = _ref37.children,\n rest = _objectWithoutProperties(_ref37, _excluded37);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path49 || (_path49 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 26.59L5.41 4 4 5.41 14.59 16 7 23.59 8.41 25 15 18.41V29a1 1 0 00.58.91A1.06 1.06 0 0016 30a1 1 0 00.65-.24l6.3-5.4L26.59 28zm-11 .24V18.41l4.53 4.53zM17 12.75V5.17l4.53 3.89-4.11 4.11 1.41 1.41 4.88-4.87A1 1 0 0024 9a1 1 0 00-.35-.72l-7-6a1 1 0 00-1.07-.15A1 1 0 0015 3v7.75z\"\n })), children);\n});\nvar BluetoothOff24 = /*#__PURE__*/React.forwardRef(function BluetoothOff24(_ref38, ref) {\n var children = _ref38.children,\n rest = _objectWithoutProperties(_ref38, _excluded38);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path50 || (_path50 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 26.59L5.41 4 4 5.41 14.59 16 7 23.59 8.41 25 15 18.41V29a1 1 0 00.58.91A1.06 1.06 0 0016 30a1 1 0 00.65-.24l6.3-5.4L26.59 28zm-11 .24V18.41l4.53 4.53zM17 12.75V5.17l4.53 3.89-4.11 4.11 1.41 1.41 4.88-4.87A1 1 0 0024 9a1 1 0 00-.35-.72l-7-6a1 1 0 00-1.07-.15A1 1 0 0015 3v7.75z\"\n })), children);\n});\nvar BluetoothOff20 = /*#__PURE__*/React.forwardRef(function BluetoothOff20(_ref39, ref) {\n var children = _ref39.children,\n rest = _objectWithoutProperties(_ref39, _excluded39);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path51 || (_path51 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 26.59L5.41 4 4 5.41 14.59 16 7 23.59 8.41 25 15 18.41V29a1 1 0 00.58.91A1.06 1.06 0 0016 30a1 1 0 00.65-.24l6.3-5.4L26.59 28zm-11 .24V18.41l4.53 4.53zM17 12.75V5.17l4.53 3.89-4.11 4.11 1.41 1.41 4.88-4.87A1 1 0 0024 9a1 1 0 00-.35-.72l-7-6a1 1 0 00-1.07-.15A1 1 0 0015 3v7.75z\"\n })), children);\n});\nvar BluetoothOff16 = /*#__PURE__*/React.forwardRef(function BluetoothOff16(_ref40, ref) {\n var children = _ref40.children,\n rest = _objectWithoutProperties(_ref40, _excluded40);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path52 || (_path52 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 26.59L5.41 4 4 5.41 14.59 16 7 23.59 8.41 25 15 18.41V29a1 1 0 00.58.91A1.06 1.06 0 0016 30a1 1 0 00.65-.24l6.3-5.4L26.59 28zm-11 .24V18.41l4.53 4.53zM17 12.75V5.17l4.53 3.89-4.11 4.11 1.41 1.41 4.88-4.87A1 1 0 0024 9a1 1 0 00-.35-.72l-7-6a1 1 0 00-1.07-.15A1 1 0 0015 3v7.75z\"\n })), children);\n});\nvar Book32 = /*#__PURE__*/React.forwardRef(function Book32(_ref41, ref) {\n var children = _ref41.children,\n rest = _objectWithoutProperties(_ref41, _excluded41);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path53 || (_path53 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 10H26V12H19zM19 15H26V17H19zM19 20H26V22H19zM6 10H13V12H6zM6 15H13V17H6zM6 20H13V22H6z\"\n })), _path54 || (_path54 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,5H4A2.002,2.002,0,0,0,2,7V25a2.002,2.002,0,0,0,2,2H28a2.002,2.002,0,0,0,2-2V7A2.002,2.002,0,0,0,28,5ZM4,7H15V25H4ZM17,25V7H28V25Z\"\n })), children);\n});\nvar Book24 = /*#__PURE__*/React.forwardRef(function Book24(_ref42, ref) {\n var children = _ref42.children,\n rest = _objectWithoutProperties(_ref42, _excluded42);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path55 || (_path55 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 10H26V12H19zM19 15H26V17H19zM19 20H26V22H19zM6 10H13V12H6zM6 15H13V17H6zM6 20H13V22H6z\"\n })), _path56 || (_path56 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,5H4A2.002,2.002,0,0,0,2,7V25a2.002,2.002,0,0,0,2,2H28a2.002,2.002,0,0,0,2-2V7A2.002,2.002,0,0,0,28,5ZM4,7H15V25H4ZM17,25V7H28V25Z\"\n })), children);\n});\nvar Book20 = /*#__PURE__*/React.forwardRef(function Book20(_ref43, ref) {\n var children = _ref43.children,\n rest = _objectWithoutProperties(_ref43, _excluded43);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path57 || (_path57 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 10H26V12H19zM19 15H26V17H19zM19 20H26V22H19zM6 10H13V12H6zM6 15H13V17H6zM6 20H13V22H6z\"\n })), _path58 || (_path58 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,5H4A2.002,2.002,0,0,0,2,7V25a2.002,2.002,0,0,0,2,2H28a2.002,2.002,0,0,0,2-2V7A2.002,2.002,0,0,0,28,5ZM4,7H15V25H4ZM17,25V7H28V25Z\"\n })), children);\n});\nvar Book16 = /*#__PURE__*/React.forwardRef(function Book16(_ref44, ref) {\n var children = _ref44.children,\n rest = _objectWithoutProperties(_ref44, _excluded44);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path59 || (_path59 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 10H26V12H19zM19 15H26V17H19zM19 20H26V22H19zM6 10H13V12H6zM6 15H13V17H6zM6 20H13V22H6z\"\n })), _path60 || (_path60 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,5H4A2.002,2.002,0,0,0,2,7V25a2.002,2.002,0,0,0,2,2H28a2.002,2.002,0,0,0,2-2V7A2.002,2.002,0,0,0,28,5ZM4,7H15V25H4ZM17,25V7H28V25Z\"\n })), children);\n});\nvar Bookmark32 = /*#__PURE__*/React.forwardRef(function Bookmark32(_ref45, ref) {\n var children = _ref45.children,\n rest = _objectWithoutProperties(_ref45, _excluded45);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path61 || (_path61 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,4V26.75l-7.1-3.59-.9-.45-.9.45L8,26.75V4H24m0-2H8A2,2,0,0,0,6,4V30L16,25,26,30V4A2,2,0,0,0,24,2Z\"\n })), children);\n});\nvar Bookmark24 = /*#__PURE__*/React.forwardRef(function Bookmark24(_ref46, ref) {\n var children = _ref46.children,\n rest = _objectWithoutProperties(_ref46, _excluded46);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path62 || (_path62 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,4V26.75l-7.1-3.59-.9-.45-.9.45L8,26.75V4H24m0-2H8A2,2,0,0,0,6,4V30L16,25,26,30V4A2,2,0,0,0,24,2Z\"\n })), children);\n});\nvar Bookmark20 = /*#__PURE__*/React.forwardRef(function Bookmark20(_ref47, ref) {\n var children = _ref47.children,\n rest = _objectWithoutProperties(_ref47, _excluded47);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path63 || (_path63 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,4V26.75l-7.1-3.59-.9-.45-.9.45L8,26.75V4H24m0-2H8A2,2,0,0,0,6,4V30L16,25,26,30V4A2,2,0,0,0,24,2Z\"\n })), children);\n});\nvar Bookmark16 = /*#__PURE__*/React.forwardRef(function Bookmark16(_ref48, ref) {\n var children = _ref48.children,\n rest = _objectWithoutProperties(_ref48, _excluded48);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path64 || (_path64 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,4V26.75l-7.1-3.59-.9-.45-.9.45L8,26.75V4H24m0-2H8A2,2,0,0,0,6,4V30L16,25,26,30V4A2,2,0,0,0,24,2Z\"\n })), children);\n});\nvar BookmarkAdd32 = /*#__PURE__*/React.forwardRef(function BookmarkAdd32(_ref49, ref) {\n var children = _ref49.children,\n rest = _objectWithoutProperties(_ref49, _excluded49);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path65 || (_path65 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,16V26.7515l-7.0962-3.5894L16,22.7051l-.9009.456L8,26.748V4H18V2H8A2,2,0,0,0,6,4V30l10-5.0537L26,30V16Z\"\n })), _path66 || (_path66 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 6L26 2 24 2 24 6 20 6 20 8 24 8 24 12 26 12 26 8 30 8 30 6 26 6z\"\n })), children);\n});\nvar BookmarkAdd24 = /*#__PURE__*/React.forwardRef(function BookmarkAdd24(_ref50, ref) {\n var children = _ref50.children,\n rest = _objectWithoutProperties(_ref50, _excluded50);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path67 || (_path67 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,16V26.7515l-7.0962-3.5894L16,22.7051l-.9009.456L8,26.748V4H18V2H8A2,2,0,0,0,6,4V30l10-5.0537L26,30V16Z\"\n })), _path68 || (_path68 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 6L26 2 24 2 24 6 20 6 20 8 24 8 24 12 26 12 26 8 30 8 30 6 26 6z\"\n })), children);\n});\nvar BookmarkAdd20 = /*#__PURE__*/React.forwardRef(function BookmarkAdd20(_ref51, ref) {\n var children = _ref51.children,\n rest = _objectWithoutProperties(_ref51, _excluded51);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path69 || (_path69 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,16V26.7515l-7.0962-3.5894L16,22.7051l-.9009.456L8,26.748V4H18V2H8A2,2,0,0,0,6,4V30l10-5.0537L26,30V16Z\"\n })), _path70 || (_path70 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 6L26 2 24 2 24 6 20 6 20 8 24 8 24 12 26 12 26 8 30 8 30 6 26 6z\"\n })), children);\n});\nvar BookmarkAdd16 = /*#__PURE__*/React.forwardRef(function BookmarkAdd16(_ref52, ref) {\n var children = _ref52.children,\n rest = _objectWithoutProperties(_ref52, _excluded52);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path71 || (_path71 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,16V26.7515l-7.0962-3.5894L16,22.7051l-.9009.456L8,26.748V4H18V2H8A2,2,0,0,0,6,4V30l10-5.0537L26,30V16Z\"\n })), _path72 || (_path72 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 6L26 2 24 2 24 6 20 6 20 8 24 8 24 12 26 12 26 8 30 8 30 6 26 6z\"\n })), children);\n});\nvar BookmarkFilled32 = /*#__PURE__*/React.forwardRef(function BookmarkFilled32(_ref53, ref) {\n var children = _ref53.children,\n rest = _objectWithoutProperties(_ref53, _excluded53);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path73 || (_path73 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,2H8A2,2,0,0,0,6,4V30l10-5.0538L26,30V4A2,2,0,0,0,24,2Z\"\n })), children);\n});\nvar BookmarkFilled24 = /*#__PURE__*/React.forwardRef(function BookmarkFilled24(_ref54, ref) {\n var children = _ref54.children,\n rest = _objectWithoutProperties(_ref54, _excluded54);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path74 || (_path74 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,2H8A2,2,0,0,0,6,4V30l10-5.0538L26,30V4A2,2,0,0,0,24,2Z\"\n })), children);\n});\nvar BookmarkFilled20 = /*#__PURE__*/React.forwardRef(function BookmarkFilled20(_ref55, ref) {\n var children = _ref55.children,\n rest = _objectWithoutProperties(_ref55, _excluded55);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path75 || (_path75 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,2H8A2,2,0,0,0,6,4V30l10-5.0538L26,30V4A2,2,0,0,0,24,2Z\"\n })), children);\n});\nvar BookmarkFilled16 = /*#__PURE__*/React.forwardRef(function BookmarkFilled16(_ref56, ref) {\n var children = _ref56.children,\n rest = _objectWithoutProperties(_ref56, _excluded56);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path76 || (_path76 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,2H8A2,2,0,0,0,6,4V30l10-5.0538L26,30V4A2,2,0,0,0,24,2Z\"\n })), children);\n});\nvar Boolean32 = /*#__PURE__*/React.forwardRef(function Boolean32(_ref57, ref) {\n var children = _ref57.children,\n rest = _objectWithoutProperties(_ref57, _excluded57);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path77 || (_path77 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,23a7,7,0,1,1,7-7A7.0078,7.0078,0,0,1,23,23Zm0-12a5,5,0,1,0,5,5A5.0055,5.0055,0,0,0,23,11Z\"\n })), _circle13 || (_circle13 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"9\",\n cy: \"16\",\n r: \"7\"\n })), children);\n});\nvar Boolean24 = /*#__PURE__*/React.forwardRef(function Boolean24(_ref58, ref) {\n var children = _ref58.children,\n rest = _objectWithoutProperties(_ref58, _excluded58);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path78 || (_path78 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,23a7,7,0,1,1,7-7A7.0078,7.0078,0,0,1,23,23Zm0-12a5,5,0,1,0,5,5A5.0055,5.0055,0,0,0,23,11Z\"\n })), _circle14 || (_circle14 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"9\",\n cy: \"16\",\n r: \"7\"\n })), children);\n});\nvar Boolean20 = /*#__PURE__*/React.forwardRef(function Boolean20(_ref59, ref) {\n var children = _ref59.children,\n rest = _objectWithoutProperties(_ref59, _excluded59);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path79 || (_path79 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,23a7,7,0,1,1,7-7A7.0078,7.0078,0,0,1,23,23Zm0-12a5,5,0,1,0,5,5A5.0055,5.0055,0,0,0,23,11Z\"\n })), _circle15 || (_circle15 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"9\",\n cy: \"16\",\n r: \"7\"\n })), children);\n});\nvar Boolean16 = /*#__PURE__*/React.forwardRef(function Boolean16(_ref60, ref) {\n var children = _ref60.children,\n rest = _objectWithoutProperties(_ref60, _excluded60);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path80 || (_path80 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,23a7,7,0,1,1,7-7A7.0078,7.0078,0,0,1,23,23Zm0-12a5,5,0,1,0,5,5A5.0055,5.0055,0,0,0,23,11Z\"\n })), _circle16 || (_circle16 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"9\",\n cy: \"16\",\n r: \"7\"\n })), children);\n});\nvar BorderBottom32 = /*#__PURE__*/React.forwardRef(function BorderBottom32(_ref61, ref) {\n var children = _ref61.children,\n rest = _objectWithoutProperties(_ref61, _excluded61);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path81 || (_path81 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 27H29V29H3z\",\n transform: \"rotate(180 16 28)\"\n })), _path82 || (_path82 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 23H29V25H27z\",\n transform: \"rotate(180 28 24)\"\n })), _path83 || (_path83 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 19H29V21H27z\",\n transform: \"rotate(180 28 20)\"\n })), _path84 || (_path84 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 15H29V17H27z\",\n transform: \"rotate(180 28 16)\"\n })), _path85 || (_path85 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 11H29V13H27z\",\n transform: \"rotate(180 28 12)\"\n })), _path86 || (_path86 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 7H29V9H27z\",\n transform: \"rotate(180 28 8)\"\n })), _path87 || (_path87 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 3H29V5H27z\",\n transform: \"rotate(180 28 4)\"\n })), _path88 || (_path88 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 3H25V5H23z\",\n transform: \"rotate(180 24 4)\"\n })), _path89 || (_path89 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 3H21V5H19z\",\n transform: \"rotate(180 20 4)\"\n })), _path90 || (_path90 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 3H17V5H15z\",\n transform: \"rotate(180 16 4)\"\n })), _path91 || (_path91 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 3H9V5H7z\",\n transform: \"rotate(180 8 4)\"\n })), _path92 || (_path92 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 3H13V5H11z\",\n transform: \"rotate(180 12 4)\"\n })), _path93 || (_path93 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 23H5V25H3z\",\n transform: \"rotate(180 4 24)\"\n })), _path94 || (_path94 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 19H5V21H3z\",\n transform: \"rotate(180 4 20)\"\n })), _path95 || (_path95 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 15H5V17H3z\",\n transform: \"rotate(180 4 16)\"\n })), _path96 || (_path96 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 11H5V13H3z\",\n transform: \"rotate(180 4 12)\"\n })), _path97 || (_path97 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 7H5V9H3z\",\n transform: \"rotate(180 4 8)\"\n })), _path98 || (_path98 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 3H5V5H3z\",\n transform: \"rotate(180 4 4)\"\n })), _path99 || (_path99 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 10H18V12H8zM8 15H14V17H8z\"\n })), children);\n});\nvar BorderBottom24 = /*#__PURE__*/React.forwardRef(function BorderBottom24(_ref62, ref) {\n var children = _ref62.children,\n rest = _objectWithoutProperties(_ref62, _excluded62);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path100 || (_path100 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 27H29V29H3z\",\n transform: \"rotate(180 16 28)\"\n })), _path101 || (_path101 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 23H29V25H27z\",\n transform: \"rotate(180 28 24)\"\n })), _path102 || (_path102 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 19H29V21H27z\",\n transform: \"rotate(180 28 20)\"\n })), _path103 || (_path103 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 15H29V17H27z\",\n transform: \"rotate(180 28 16)\"\n })), _path104 || (_path104 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 11H29V13H27z\",\n transform: \"rotate(180 28 12)\"\n })), _path105 || (_path105 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 7H29V9H27z\",\n transform: \"rotate(180 28 8)\"\n })), _path106 || (_path106 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 3H29V5H27z\",\n transform: \"rotate(180 28 4)\"\n })), _path107 || (_path107 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 3H25V5H23z\",\n transform: \"rotate(180 24 4)\"\n })), _path108 || (_path108 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 3H21V5H19z\",\n transform: \"rotate(180 20 4)\"\n })), _path109 || (_path109 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 3H17V5H15z\",\n transform: \"rotate(180 16 4)\"\n })), _path110 || (_path110 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 3H9V5H7z\",\n transform: \"rotate(180 8 4)\"\n })), _path111 || (_path111 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 3H13V5H11z\",\n transform: \"rotate(180 12 4)\"\n })), _path112 || (_path112 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 23H5V25H3z\",\n transform: \"rotate(180 4 24)\"\n })), _path113 || (_path113 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 19H5V21H3z\",\n transform: \"rotate(180 4 20)\"\n })), _path114 || (_path114 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 15H5V17H3z\",\n transform: \"rotate(180 4 16)\"\n })), _path115 || (_path115 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 11H5V13H3z\",\n transform: \"rotate(180 4 12)\"\n })), _path116 || (_path116 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 7H5V9H3z\",\n transform: \"rotate(180 4 8)\"\n })), _path117 || (_path117 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 3H5V5H3z\",\n transform: \"rotate(180 4 4)\"\n })), _path118 || (_path118 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 10H18V12H8zM8 15H14V17H8z\"\n })), children);\n});\nvar BorderBottom20 = /*#__PURE__*/React.forwardRef(function BorderBottom20(_ref63, ref) {\n var children = _ref63.children,\n rest = _objectWithoutProperties(_ref63, _excluded63);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path119 || (_path119 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 27H29V29H3z\",\n transform: \"rotate(180 16 28)\"\n })), _path120 || (_path120 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 23H29V25H27z\",\n transform: \"rotate(180 28 24)\"\n })), _path121 || (_path121 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 19H29V21H27z\",\n transform: \"rotate(180 28 20)\"\n })), _path122 || (_path122 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 15H29V17H27z\",\n transform: \"rotate(180 28 16)\"\n })), _path123 || (_path123 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 11H29V13H27z\",\n transform: \"rotate(180 28 12)\"\n })), _path124 || (_path124 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 7H29V9H27z\",\n transform: \"rotate(180 28 8)\"\n })), _path125 || (_path125 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 3H29V5H27z\",\n transform: \"rotate(180 28 4)\"\n })), _path126 || (_path126 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 3H25V5H23z\",\n transform: \"rotate(180 24 4)\"\n })), _path127 || (_path127 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 3H21V5H19z\",\n transform: \"rotate(180 20 4)\"\n })), _path128 || (_path128 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 3H17V5H15z\",\n transform: \"rotate(180 16 4)\"\n })), _path129 || (_path129 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 3H9V5H7z\",\n transform: \"rotate(180 8 4)\"\n })), _path130 || (_path130 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 3H13V5H11z\",\n transform: \"rotate(180 12 4)\"\n })), _path131 || (_path131 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 23H5V25H3z\",\n transform: \"rotate(180 4 24)\"\n })), _path132 || (_path132 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 19H5V21H3z\",\n transform: \"rotate(180 4 20)\"\n })), _path133 || (_path133 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 15H5V17H3z\",\n transform: \"rotate(180 4 16)\"\n })), _path134 || (_path134 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 11H5V13H3z\",\n transform: \"rotate(180 4 12)\"\n })), _path135 || (_path135 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 7H5V9H3z\",\n transform: \"rotate(180 4 8)\"\n })), _path136 || (_path136 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 3H5V5H3z\",\n transform: \"rotate(180 4 4)\"\n })), _path137 || (_path137 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 10H18V12H8zM8 15H14V17H8z\"\n })), children);\n});\nvar BorderBottom16 = /*#__PURE__*/React.forwardRef(function BorderBottom16(_ref64, ref) {\n var children = _ref64.children,\n rest = _objectWithoutProperties(_ref64, _excluded64);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path138 || (_path138 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 27H29V29H3z\",\n transform: \"rotate(180 16 28)\"\n })), _path139 || (_path139 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 23H29V25H27z\",\n transform: \"rotate(180 28 24)\"\n })), _path140 || (_path140 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 19H29V21H27z\",\n transform: \"rotate(180 28 20)\"\n })), _path141 || (_path141 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 15H29V17H27z\",\n transform: \"rotate(180 28 16)\"\n })), _path142 || (_path142 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 11H29V13H27z\",\n transform: \"rotate(180 28 12)\"\n })), _path143 || (_path143 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 7H29V9H27z\",\n transform: \"rotate(180 28 8)\"\n })), _path144 || (_path144 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 3H29V5H27z\",\n transform: \"rotate(180 28 4)\"\n })), _path145 || (_path145 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 3H25V5H23z\",\n transform: \"rotate(180 24 4)\"\n })), _path146 || (_path146 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 3H21V5H19z\",\n transform: \"rotate(180 20 4)\"\n })), _path147 || (_path147 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 3H17V5H15z\",\n transform: \"rotate(180 16 4)\"\n })), _path148 || (_path148 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 3H9V5H7z\",\n transform: \"rotate(180 8 4)\"\n })), _path149 || (_path149 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 3H13V5H11z\",\n transform: \"rotate(180 12 4)\"\n })), _path150 || (_path150 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 23H5V25H3z\",\n transform: \"rotate(180 4 24)\"\n })), _path151 || (_path151 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 19H5V21H3z\",\n transform: \"rotate(180 4 20)\"\n })), _path152 || (_path152 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 15H5V17H3z\",\n transform: \"rotate(180 4 16)\"\n })), _path153 || (_path153 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 11H5V13H3z\",\n transform: \"rotate(180 4 12)\"\n })), _path154 || (_path154 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 7H5V9H3z\",\n transform: \"rotate(180 4 8)\"\n })), _path155 || (_path155 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 3H5V5H3z\",\n transform: \"rotate(180 4 4)\"\n })), _path156 || (_path156 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 10H18V12H8zM8 15H14V17H8z\"\n })), children);\n});\nvar BorderFull32 = /*#__PURE__*/React.forwardRef(function BorderFull32(_ref65, ref) {\n var children = _ref65.children,\n rest = _objectWithoutProperties(_ref65, _excluded65);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path157 || (_path157 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 10H18V12H8zM8 15H14V17H8z\"\n })), _path158 || (_path158 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29,29H3V3H29ZM5,27H27V5H5Z\"\n })), children);\n});\nvar BorderFull24 = /*#__PURE__*/React.forwardRef(function BorderFull24(_ref66, ref) {\n var children = _ref66.children,\n rest = _objectWithoutProperties(_ref66, _excluded66);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path159 || (_path159 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 10H18V12H8zM8 15H14V17H8z\"\n })), _path160 || (_path160 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29,29H3V3H29ZM5,27H27V5H5Z\"\n })), children);\n});\nvar BorderFull20 = /*#__PURE__*/React.forwardRef(function BorderFull20(_ref67, ref) {\n var children = _ref67.children,\n rest = _objectWithoutProperties(_ref67, _excluded67);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path161 || (_path161 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 10H18V12H8zM8 15H14V17H8z\"\n })), _path162 || (_path162 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29,29H3V3H29ZM5,27H27V5H5Z\"\n })), children);\n});\nvar BorderFull16 = /*#__PURE__*/React.forwardRef(function BorderFull16(_ref68, ref) {\n var children = _ref68.children,\n rest = _objectWithoutProperties(_ref68, _excluded68);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path163 || (_path163 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 10H18V12H8zM8 15H14V17H8z\"\n })), _path164 || (_path164 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29,29H3V3H29ZM5,27H27V5H5Z\"\n })), children);\n});\nvar BorderLeft32 = /*#__PURE__*/React.forwardRef(function BorderLeft32(_ref69, ref) {\n var children = _ref69.children,\n rest = _objectWithoutProperties(_ref69, _excluded69);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path165 || (_path165 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M-9 15H17V17H-9z\",\n transform: \"rotate(-90 4 16)\"\n })), _path166 || (_path166 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 27H9V29H7z\",\n transform: \"rotate(-90 8 28)\"\n })), _path167 || (_path167 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 27H13V29H11z\",\n transform: \"rotate(-90 12 28)\"\n })), _path168 || (_path168 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 27H17V29H15z\",\n transform: \"rotate(-90 16 28)\"\n })), _path169 || (_path169 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 27H21V29H19z\",\n transform: \"rotate(-90 20 28)\"\n })), _path170 || (_path170 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 27H25V29H23z\",\n transform: \"rotate(-90 24 28)\"\n })), _path171 || (_path171 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 27H29V29H27z\",\n transform: \"rotate(-90 28 28)\"\n })), _path172 || (_path172 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 23H29V25H27z\",\n transform: \"rotate(-90 28 24)\"\n })), _path173 || (_path173 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 19H29V21H27z\",\n transform: \"rotate(-90 28 20)\"\n })), _path174 || (_path174 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 15H29V17H27z\",\n transform: \"rotate(-90 28 16)\"\n })), _path175 || (_path175 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 7H29V9H27z\",\n transform: \"rotate(-90 28 8)\"\n })), _path176 || (_path176 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 11H29V13H27z\",\n transform: \"rotate(-90 28 12)\"\n })), _path177 || (_path177 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 3H9V5H7z\",\n transform: \"rotate(-90 8 4)\"\n })), _path178 || (_path178 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 3H13V5H11z\",\n transform: \"rotate(-90 12 4)\"\n })), _path179 || (_path179 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 3H17V5H15z\",\n transform: \"rotate(-90 16 4)\"\n })), _path180 || (_path180 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 3H21V5H19z\",\n transform: \"rotate(-90 20 4)\"\n })), _path181 || (_path181 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 3H25V5H23z\",\n transform: \"rotate(-90 24 4)\"\n })), _path182 || (_path182 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 3H29V5H27z\",\n transform: \"rotate(-90 28 4)\"\n })), _path183 || (_path183 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 10H18V12H8zM8 15H14V17H8z\"\n })), children);\n});\nvar BorderLeft24 = /*#__PURE__*/React.forwardRef(function BorderLeft24(_ref70, ref) {\n var children = _ref70.children,\n rest = _objectWithoutProperties(_ref70, _excluded70);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path184 || (_path184 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M-9 15H17V17H-9z\",\n transform: \"rotate(-90 4 16)\"\n })), _path185 || (_path185 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 27H9V29H7z\",\n transform: \"rotate(-90 8 28)\"\n })), _path186 || (_path186 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 27H13V29H11z\",\n transform: \"rotate(-90 12 28)\"\n })), _path187 || (_path187 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 27H17V29H15z\",\n transform: \"rotate(-90 16 28)\"\n })), _path188 || (_path188 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 27H21V29H19z\",\n transform: \"rotate(-90 20 28)\"\n })), _path189 || (_path189 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 27H25V29H23z\",\n transform: \"rotate(-90 24 28)\"\n })), _path190 || (_path190 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 27H29V29H27z\",\n transform: \"rotate(-90 28 28)\"\n })), _path191 || (_path191 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 23H29V25H27z\",\n transform: \"rotate(-90 28 24)\"\n })), _path192 || (_path192 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 19H29V21H27z\",\n transform: \"rotate(-90 28 20)\"\n })), _path193 || (_path193 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 15H29V17H27z\",\n transform: \"rotate(-90 28 16)\"\n })), _path194 || (_path194 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 7H29V9H27z\",\n transform: \"rotate(-90 28 8)\"\n })), _path195 || (_path195 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 11H29V13H27z\",\n transform: \"rotate(-90 28 12)\"\n })), _path196 || (_path196 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 3H9V5H7z\",\n transform: \"rotate(-90 8 4)\"\n })), _path197 || (_path197 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 3H13V5H11z\",\n transform: \"rotate(-90 12 4)\"\n })), _path198 || (_path198 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 3H17V5H15z\",\n transform: \"rotate(-90 16 4)\"\n })), _path199 || (_path199 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 3H21V5H19z\",\n transform: \"rotate(-90 20 4)\"\n })), _path200 || (_path200 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 3H25V5H23z\",\n transform: \"rotate(-90 24 4)\"\n })), _path201 || (_path201 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 3H29V5H27z\",\n transform: \"rotate(-90 28 4)\"\n })), _path202 || (_path202 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 10H18V12H8zM8 15H14V17H8z\"\n })), children);\n});\nvar BorderLeft20 = /*#__PURE__*/React.forwardRef(function BorderLeft20(_ref71, ref) {\n var children = _ref71.children,\n rest = _objectWithoutProperties(_ref71, _excluded71);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path203 || (_path203 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M-9 15H17V17H-9z\",\n transform: \"rotate(-90 4 16)\"\n })), _path204 || (_path204 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 27H9V29H7z\",\n transform: \"rotate(-90 8 28)\"\n })), _path205 || (_path205 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 27H13V29H11z\",\n transform: \"rotate(-90 12 28)\"\n })), _path206 || (_path206 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 27H17V29H15z\",\n transform: \"rotate(-90 16 28)\"\n })), _path207 || (_path207 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 27H21V29H19z\",\n transform: \"rotate(-90 20 28)\"\n })), _path208 || (_path208 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 27H25V29H23z\",\n transform: \"rotate(-90 24 28)\"\n })), _path209 || (_path209 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 27H29V29H27z\",\n transform: \"rotate(-90 28 28)\"\n })), _path210 || (_path210 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 23H29V25H27z\",\n transform: \"rotate(-90 28 24)\"\n })), _path211 || (_path211 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 19H29V21H27z\",\n transform: \"rotate(-90 28 20)\"\n })), _path212 || (_path212 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 15H29V17H27z\",\n transform: \"rotate(-90 28 16)\"\n })), _path213 || (_path213 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 7H29V9H27z\",\n transform: \"rotate(-90 28 8)\"\n })), _path214 || (_path214 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 11H29V13H27z\",\n transform: \"rotate(-90 28 12)\"\n })), _path215 || (_path215 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 3H9V5H7z\",\n transform: \"rotate(-90 8 4)\"\n })), _path216 || (_path216 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 3H13V5H11z\",\n transform: \"rotate(-90 12 4)\"\n })), _path217 || (_path217 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 3H17V5H15z\",\n transform: \"rotate(-90 16 4)\"\n })), _path218 || (_path218 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 3H21V5H19z\",\n transform: \"rotate(-90 20 4)\"\n })), _path219 || (_path219 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 3H25V5H23z\",\n transform: \"rotate(-90 24 4)\"\n })), _path220 || (_path220 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 3H29V5H27z\",\n transform: \"rotate(-90 28 4)\"\n })), _path221 || (_path221 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 10H18V12H8zM8 15H14V17H8z\"\n })), children);\n});\nvar BorderLeft16 = /*#__PURE__*/React.forwardRef(function BorderLeft16(_ref72, ref) {\n var children = _ref72.children,\n rest = _objectWithoutProperties(_ref72, _excluded72);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path222 || (_path222 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M-9 15H17V17H-9z\",\n transform: \"rotate(-90 4 16)\"\n })), _path223 || (_path223 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 27H9V29H7z\",\n transform: \"rotate(-90 8 28)\"\n })), _path224 || (_path224 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 27H13V29H11z\",\n transform: \"rotate(-90 12 28)\"\n })), _path225 || (_path225 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 27H17V29H15z\",\n transform: \"rotate(-90 16 28)\"\n })), _path226 || (_path226 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 27H21V29H19z\",\n transform: \"rotate(-90 20 28)\"\n })), _path227 || (_path227 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 27H25V29H23z\",\n transform: \"rotate(-90 24 28)\"\n })), _path228 || (_path228 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 27H29V29H27z\",\n transform: \"rotate(-90 28 28)\"\n })), _path229 || (_path229 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 23H29V25H27z\",\n transform: \"rotate(-90 28 24)\"\n })), _path230 || (_path230 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 19H29V21H27z\",\n transform: \"rotate(-90 28 20)\"\n })), _path231 || (_path231 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 15H29V17H27z\",\n transform: \"rotate(-90 28 16)\"\n })), _path232 || (_path232 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 7H29V9H27z\",\n transform: \"rotate(-90 28 8)\"\n })), _path233 || (_path233 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 11H29V13H27z\",\n transform: \"rotate(-90 28 12)\"\n })), _path234 || (_path234 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 3H9V5H7z\",\n transform: \"rotate(-90 8 4)\"\n })), _path235 || (_path235 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 3H13V5H11z\",\n transform: \"rotate(-90 12 4)\"\n })), _path236 || (_path236 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 3H17V5H15z\",\n transform: \"rotate(-90 16 4)\"\n })), _path237 || (_path237 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 3H21V5H19z\",\n transform: \"rotate(-90 20 4)\"\n })), _path238 || (_path238 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 3H25V5H23z\",\n transform: \"rotate(-90 24 4)\"\n })), _path239 || (_path239 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 3H29V5H27z\",\n transform: \"rotate(-90 28 4)\"\n })), _path240 || (_path240 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 10H18V12H8zM8 15H14V17H8z\"\n })), children);\n});\nvar BorderNone32 = /*#__PURE__*/React.forwardRef(function BorderNone32(_ref73, ref) {\n var children = _ref73.children,\n rest = _objectWithoutProperties(_ref73, _excluded73);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path241 || (_path241 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 3H5V5H3zM7 3H9V5H7zM11 3H13V5H11zM15 3H17V5H15zM3 7H5V9H3zM3 11H5V13H3zM3 15H5V17H3zM3 19H5V21H3zM3 23H5V25H3zM3 27H5V29H3zM27 3H29V5H27zM23 3H25V5H23zM19 3H21V5H19zM7 27H9V29H7zM11 27H13V29H11zM15 27H17V29H15zM23 27H25V29H23zM19 27H21V29H19zM27 7H29V9H27zM27 11H29V13H27zM27 15H29V17H27zM27 19H29V21H27zM27 23H29V25H27zM27 27H29V29H27zM8 10H18V12H8zM8 15H14V17H8z\"\n })), children);\n});\nvar BorderNone24 = /*#__PURE__*/React.forwardRef(function BorderNone24(_ref74, ref) {\n var children = _ref74.children,\n rest = _objectWithoutProperties(_ref74, _excluded74);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path242 || (_path242 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 3H5V5H3zM7 3H9V5H7zM11 3H13V5H11zM15 3H17V5H15zM3 7H5V9H3zM3 11H5V13H3zM3 15H5V17H3zM3 19H5V21H3zM3 23H5V25H3zM3 27H5V29H3zM27 3H29V5H27zM23 3H25V5H23zM19 3H21V5H19zM7 27H9V29H7zM11 27H13V29H11zM15 27H17V29H15zM23 27H25V29H23zM19 27H21V29H19zM27 7H29V9H27zM27 11H29V13H27zM27 15H29V17H27zM27 19H29V21H27zM27 23H29V25H27zM27 27H29V29H27zM8 10H18V12H8zM8 15H14V17H8z\"\n })), children);\n});\nvar BorderNone20 = /*#__PURE__*/React.forwardRef(function BorderNone20(_ref75, ref) {\n var children = _ref75.children,\n rest = _objectWithoutProperties(_ref75, _excluded75);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path243 || (_path243 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 3H5V5H3zM7 3H9V5H7zM11 3H13V5H11zM15 3H17V5H15zM3 7H5V9H3zM3 11H5V13H3zM3 15H5V17H3zM3 19H5V21H3zM3 23H5V25H3zM3 27H5V29H3zM27 3H29V5H27zM23 3H25V5H23zM19 3H21V5H19zM7 27H9V29H7zM11 27H13V29H11zM15 27H17V29H15zM23 27H25V29H23zM19 27H21V29H19zM27 7H29V9H27zM27 11H29V13H27zM27 15H29V17H27zM27 19H29V21H27zM27 23H29V25H27zM27 27H29V29H27zM8 10H18V12H8zM8 15H14V17H8z\"\n })), children);\n});\nvar BorderNone16 = /*#__PURE__*/React.forwardRef(function BorderNone16(_ref76, ref) {\n var children = _ref76.children,\n rest = _objectWithoutProperties(_ref76, _excluded76);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path244 || (_path244 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 3H5V5H3zM7 3H9V5H7zM11 3H13V5H11zM15 3H17V5H15zM3 7H5V9H3zM3 11H5V13H3zM3 15H5V17H3zM3 19H5V21H3zM3 23H5V25H3zM3 27H5V29H3zM27 3H29V5H27zM23 3H25V5H23zM19 3H21V5H19zM7 27H9V29H7zM11 27H13V29H11zM15 27H17V29H15zM23 27H25V29H23zM19 27H21V29H19zM27 7H29V9H27zM27 11H29V13H27zM27 15H29V17H27zM27 19H29V21H27zM27 23H29V25H27zM27 27H29V29H27zM8 10H18V12H8zM8 15H14V17H8z\"\n })), children);\n});\nvar BorderRight32 = /*#__PURE__*/React.forwardRef(function BorderRight32(_ref77, ref) {\n var children = _ref77.children,\n rest = _objectWithoutProperties(_ref77, _excluded77);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path245 || (_path245 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 15H41V17H15z\",\n transform: \"rotate(90 28 16)\"\n })), _path246 || (_path246 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 3H25V5H23z\",\n transform: \"rotate(90 24 4)\"\n })), _path247 || (_path247 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 3H21V5H19z\",\n transform: \"rotate(90 20 4)\"\n })), _path248 || (_path248 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 3H17V5H15z\",\n transform: \"rotate(90 16 4)\"\n })), _path249 || (_path249 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 3H13V5H11z\",\n transform: \"rotate(90 12 4)\"\n })), _path250 || (_path250 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 3H9V5H7z\",\n transform: \"rotate(90 8 4)\"\n })), _path251 || (_path251 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 3H5V5H3z\",\n transform: \"rotate(90 4 4)\"\n })), _path252 || (_path252 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 7H5V9H3z\",\n transform: \"rotate(90 4 8)\"\n })), _path253 || (_path253 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 11H5V13H3z\",\n transform: \"rotate(90 4 12)\"\n })), _path254 || (_path254 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 15H5V17H3z\",\n transform: \"rotate(90 4 16)\"\n })), _path255 || (_path255 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 23H5V25H3z\",\n transform: \"rotate(90 4 24)\"\n })), _path256 || (_path256 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 19H5V21H3z\",\n transform: \"rotate(90 4 20)\"\n })), _path257 || (_path257 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 27H25V29H23z\",\n transform: \"rotate(90 24 28)\"\n })), _path258 || (_path258 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 27H21V29H19z\",\n transform: \"rotate(90 20 28)\"\n })), _path259 || (_path259 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 27H17V29H15z\",\n transform: \"rotate(90 16 28)\"\n })), _path260 || (_path260 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 27H13V29H11z\",\n transform: \"rotate(90 12 28)\"\n })), _path261 || (_path261 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 27H9V29H7z\",\n transform: \"rotate(90 8 28)\"\n })), _path262 || (_path262 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 27H5V29H3z\",\n transform: \"rotate(90 4 28)\"\n })), _path263 || (_path263 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 10H18V12H8zM8 15H14V17H8z\"\n })), children);\n});\nvar BorderRight24 = /*#__PURE__*/React.forwardRef(function BorderRight24(_ref78, ref) {\n var children = _ref78.children,\n rest = _objectWithoutProperties(_ref78, _excluded78);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path264 || (_path264 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 15H41V17H15z\",\n transform: \"rotate(90 28 16)\"\n })), _path265 || (_path265 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 3H25V5H23z\",\n transform: \"rotate(90 24 4)\"\n })), _path266 || (_path266 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 3H21V5H19z\",\n transform: \"rotate(90 20 4)\"\n })), _path267 || (_path267 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 3H17V5H15z\",\n transform: \"rotate(90 16 4)\"\n })), _path268 || (_path268 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 3H13V5H11z\",\n transform: \"rotate(90 12 4)\"\n })), _path269 || (_path269 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 3H9V5H7z\",\n transform: \"rotate(90 8 4)\"\n })), _path270 || (_path270 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 3H5V5H3z\",\n transform: \"rotate(90 4 4)\"\n })), _path271 || (_path271 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 7H5V9H3z\",\n transform: \"rotate(90 4 8)\"\n })), _path272 || (_path272 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 11H5V13H3z\",\n transform: \"rotate(90 4 12)\"\n })), _path273 || (_path273 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 15H5V17H3z\",\n transform: \"rotate(90 4 16)\"\n })), _path274 || (_path274 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 23H5V25H3z\",\n transform: \"rotate(90 4 24)\"\n })), _path275 || (_path275 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 19H5V21H3z\",\n transform: \"rotate(90 4 20)\"\n })), _path276 || (_path276 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 27H25V29H23z\",\n transform: \"rotate(90 24 28)\"\n })), _path277 || (_path277 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 27H21V29H19z\",\n transform: \"rotate(90 20 28)\"\n })), _path278 || (_path278 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 27H17V29H15z\",\n transform: \"rotate(90 16 28)\"\n })), _path279 || (_path279 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 27H13V29H11z\",\n transform: \"rotate(90 12 28)\"\n })), _path280 || (_path280 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 27H9V29H7z\",\n transform: \"rotate(90 8 28)\"\n })), _path281 || (_path281 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 27H5V29H3z\",\n transform: \"rotate(90 4 28)\"\n })), _path282 || (_path282 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 10H18V12H8zM8 15H14V17H8z\"\n })), children);\n});\nvar BorderRight20 = /*#__PURE__*/React.forwardRef(function BorderRight20(_ref79, ref) {\n var children = _ref79.children,\n rest = _objectWithoutProperties(_ref79, _excluded79);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path283 || (_path283 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 15H41V17H15z\",\n transform: \"rotate(90 28 16)\"\n })), _path284 || (_path284 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 3H25V5H23z\",\n transform: \"rotate(90 24 4)\"\n })), _path285 || (_path285 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 3H21V5H19z\",\n transform: \"rotate(90 20 4)\"\n })), _path286 || (_path286 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 3H17V5H15z\",\n transform: \"rotate(90 16 4)\"\n })), _path287 || (_path287 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 3H13V5H11z\",\n transform: \"rotate(90 12 4)\"\n })), _path288 || (_path288 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 3H9V5H7z\",\n transform: \"rotate(90 8 4)\"\n })), _path289 || (_path289 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 3H5V5H3z\",\n transform: \"rotate(90 4 4)\"\n })), _path290 || (_path290 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 7H5V9H3z\",\n transform: \"rotate(90 4 8)\"\n })), _path291 || (_path291 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 11H5V13H3z\",\n transform: \"rotate(90 4 12)\"\n })), _path292 || (_path292 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 15H5V17H3z\",\n transform: \"rotate(90 4 16)\"\n })), _path293 || (_path293 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 23H5V25H3z\",\n transform: \"rotate(90 4 24)\"\n })), _path294 || (_path294 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 19H5V21H3z\",\n transform: \"rotate(90 4 20)\"\n })), _path295 || (_path295 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 27H25V29H23z\",\n transform: \"rotate(90 24 28)\"\n })), _path296 || (_path296 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 27H21V29H19z\",\n transform: \"rotate(90 20 28)\"\n })), _path297 || (_path297 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 27H17V29H15z\",\n transform: \"rotate(90 16 28)\"\n })), _path298 || (_path298 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 27H13V29H11z\",\n transform: \"rotate(90 12 28)\"\n })), _path299 || (_path299 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 27H9V29H7z\",\n transform: \"rotate(90 8 28)\"\n })), _path300 || (_path300 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 27H5V29H3z\",\n transform: \"rotate(90 4 28)\"\n })), _path301 || (_path301 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 10H18V12H8zM8 15H14V17H8z\"\n })), children);\n});\nvar BorderRight16 = /*#__PURE__*/React.forwardRef(function BorderRight16(_ref80, ref) {\n var children = _ref80.children,\n rest = _objectWithoutProperties(_ref80, _excluded80);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path302 || (_path302 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 15H41V17H15z\",\n transform: \"rotate(90 28 16)\"\n })), _path303 || (_path303 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 3H25V5H23z\",\n transform: \"rotate(90 24 4)\"\n })), _path304 || (_path304 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 3H21V5H19z\",\n transform: \"rotate(90 20 4)\"\n })), _path305 || (_path305 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 3H17V5H15z\",\n transform: \"rotate(90 16 4)\"\n })), _path306 || (_path306 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 3H13V5H11z\",\n transform: \"rotate(90 12 4)\"\n })), _path307 || (_path307 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 3H9V5H7z\",\n transform: \"rotate(90 8 4)\"\n })), _path308 || (_path308 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 3H5V5H3z\",\n transform: \"rotate(90 4 4)\"\n })), _path309 || (_path309 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 7H5V9H3z\",\n transform: \"rotate(90 4 8)\"\n })), _path310 || (_path310 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 11H5V13H3z\",\n transform: \"rotate(90 4 12)\"\n })), _path311 || (_path311 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 15H5V17H3z\",\n transform: \"rotate(90 4 16)\"\n })), _path312 || (_path312 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 23H5V25H3z\",\n transform: \"rotate(90 4 24)\"\n })), _path313 || (_path313 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 19H5V21H3z\",\n transform: \"rotate(90 4 20)\"\n })), _path314 || (_path314 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 27H25V29H23z\",\n transform: \"rotate(90 24 28)\"\n })), _path315 || (_path315 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 27H21V29H19z\",\n transform: \"rotate(90 20 28)\"\n })), _path316 || (_path316 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 27H17V29H15z\",\n transform: \"rotate(90 16 28)\"\n })), _path317 || (_path317 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 27H13V29H11z\",\n transform: \"rotate(90 12 28)\"\n })), _path318 || (_path318 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 27H9V29H7z\",\n transform: \"rotate(90 8 28)\"\n })), _path319 || (_path319 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 27H5V29H3z\",\n transform: \"rotate(90 4 28)\"\n })), _path320 || (_path320 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 10H18V12H8zM8 15H14V17H8z\"\n })), children);\n});\nvar BorderTop32 = /*#__PURE__*/React.forwardRef(function BorderTop32(_ref81, ref) {\n var children = _ref81.children,\n rest = _objectWithoutProperties(_ref81, _excluded81);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path321 || (_path321 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 3H29V5H3zM3 7H5V9H3zM3 11H5V13H3zM3 15H5V17H3zM3 19H5V21H3zM3 23H5V25H3zM3 27H5V29H3zM7 27H9V29H7zM11 27H13V29H11zM15 27H17V29H15zM23 27H25V29H23zM19 27H21V29H19zM27 7H29V9H27zM27 11H29V13H27zM27 15H29V17H27zM27 19H29V21H27zM27 23H29V25H27zM27 27H29V29H27zM8 10H18V12H8zM8 15H14V17H8z\"\n })), children);\n});\nvar BorderTop24 = /*#__PURE__*/React.forwardRef(function BorderTop24(_ref82, ref) {\n var children = _ref82.children,\n rest = _objectWithoutProperties(_ref82, _excluded82);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path322 || (_path322 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 3H29V5H3zM3 7H5V9H3zM3 11H5V13H3zM3 15H5V17H3zM3 19H5V21H3zM3 23H5V25H3zM3 27H5V29H3zM7 27H9V29H7zM11 27H13V29H11zM15 27H17V29H15zM23 27H25V29H23zM19 27H21V29H19zM27 7H29V9H27zM27 11H29V13H27zM27 15H29V17H27zM27 19H29V21H27zM27 23H29V25H27zM27 27H29V29H27zM8 10H18V12H8zM8 15H14V17H8z\"\n })), children);\n});\nvar BorderTop20 = /*#__PURE__*/React.forwardRef(function BorderTop20(_ref83, ref) {\n var children = _ref83.children,\n rest = _objectWithoutProperties(_ref83, _excluded83);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path323 || (_path323 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 3H29V5H3zM3 7H5V9H3zM3 11H5V13H3zM3 15H5V17H3zM3 19H5V21H3zM3 23H5V25H3zM3 27H5V29H3zM7 27H9V29H7zM11 27H13V29H11zM15 27H17V29H15zM23 27H25V29H23zM19 27H21V29H19zM27 7H29V9H27zM27 11H29V13H27zM27 15H29V17H27zM27 19H29V21H27zM27 23H29V25H27zM27 27H29V29H27zM8 10H18V12H8zM8 15H14V17H8z\"\n })), children);\n});\nvar BorderTop16 = /*#__PURE__*/React.forwardRef(function BorderTop16(_ref84, ref) {\n var children = _ref84.children,\n rest = _objectWithoutProperties(_ref84, _excluded84);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path324 || (_path324 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 3H29V5H3zM3 7H5V9H3zM3 11H5V13H3zM3 15H5V17H3zM3 19H5V21H3zM3 23H5V25H3zM3 27H5V29H3zM7 27H9V29H7zM11 27H13V29H11zM15 27H17V29H15zM23 27H25V29H23zM19 27H21V29H19zM27 7H29V9H27zM27 11H29V13H27zM27 15H29V17H27zM27 19H29V21H27zM27 23H29V25H27zM27 27H29V29H27zM8 10H18V12H8zM8 15H14V17H8z\"\n })), children);\n});\nvar Bot32 = /*#__PURE__*/React.forwardRef(function Bot32(_ref85, ref) {\n var children = _ref85.children,\n rest = _objectWithoutProperties(_ref85, _excluded85);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path325 || (_path325 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 10H20V12H18zM12 10H14V12H12z\"\n })), _path326 || (_path326 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,20H21V18h1a2.0023,2.0023,0,0,0,2-2V12h2V10H24V8a2.0023,2.0023,0,0,0-2-2H20V2H18V6H14V2H12V6H10A2.0023,2.0023,0,0,0,8,8v2H6v2H8v4a2.0023,2.0023,0,0,0,2,2h1v2H6a2.0023,2.0023,0,0,0-2,2v8H6V22H26v8h2V22A2.0023,2.0023,0,0,0,26,20ZM10,8H22v8H10Zm3,10h6v2H13Z\"\n })), children);\n});\nvar Bot24 = /*#__PURE__*/React.forwardRef(function Bot24(_ref86, ref) {\n var children = _ref86.children,\n rest = _objectWithoutProperties(_ref86, _excluded86);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path327 || (_path327 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 10H20V12H18zM12 10H14V12H12z\"\n })), _path328 || (_path328 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,20H21V18h1a2.0023,2.0023,0,0,0,2-2V12h2V10H24V8a2.0023,2.0023,0,0,0-2-2H20V2H18V6H14V2H12V6H10A2.0023,2.0023,0,0,0,8,8v2H6v2H8v4a2.0023,2.0023,0,0,0,2,2h1v2H6a2.0023,2.0023,0,0,0-2,2v8H6V22H26v8h2V22A2.0023,2.0023,0,0,0,26,20ZM10,8H22v8H10Zm3,10h6v2H13Z\"\n })), children);\n});\nvar Bot20 = /*#__PURE__*/React.forwardRef(function Bot20(_ref87, ref) {\n var children = _ref87.children,\n rest = _objectWithoutProperties(_ref87, _excluded87);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path329 || (_path329 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 10H20V12H18zM12 10H14V12H12z\"\n })), _path330 || (_path330 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,20H21V18h1a2.0023,2.0023,0,0,0,2-2V12h2V10H24V8a2.0023,2.0023,0,0,0-2-2H20V2H18V6H14V2H12V6H10A2.0023,2.0023,0,0,0,8,8v2H6v2H8v4a2.0023,2.0023,0,0,0,2,2h1v2H6a2.0023,2.0023,0,0,0-2,2v8H6V22H26v8h2V22A2.0023,2.0023,0,0,0,26,20ZM10,8H22v8H10Zm3,10h6v2H13Z\"\n })), children);\n});\nvar Bot16 = /*#__PURE__*/React.forwardRef(function Bot16(_ref88, ref) {\n var children = _ref88.children,\n rest = _objectWithoutProperties(_ref88, _excluded88);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path331 || (_path331 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 10H20V12H18zM12 10H14V12H12z\"\n })), _path332 || (_path332 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,20H21V18h1a2.0023,2.0023,0,0,0,2-2V12h2V10H24V8a2.0023,2.0023,0,0,0-2-2H20V2H18V6H14V2H12V6H10A2.0023,2.0023,0,0,0,8,8v2H6v2H8v4a2.0023,2.0023,0,0,0,2,2h1v2H6a2.0023,2.0023,0,0,0-2,2v8H6V22H26v8h2V22A2.0023,2.0023,0,0,0,26,20ZM10,8H22v8H10Zm3,10h6v2H13Z\"\n })), children);\n});\nvar Box32 = /*#__PURE__*/React.forwardRef(function Box32(_ref89, ref) {\n var children = _ref89.children,\n rest = _objectWithoutProperties(_ref89, _excluded89);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path333 || (_path333 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,21H12a2,2,0,0,1-2-2V17a2,2,0,0,1,2-2h8a2,2,0,0,1,2,2v2A2,2,0,0,1,20,21Zm-8-4v2h8V17Z\"\n })), _path334 || (_path334 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6v4a2,2,0,0,0,2,2V28a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V12a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM26,28H6V12H26Zm2-18H4V6H28v4Z\"\n })), children);\n});\nvar Box24 = /*#__PURE__*/React.forwardRef(function Box24(_ref90, ref) {\n var children = _ref90.children,\n rest = _objectWithoutProperties(_ref90, _excluded90);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path335 || (_path335 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,21H12a2,2,0,0,1-2-2V17a2,2,0,0,1,2-2h8a2,2,0,0,1,2,2v2A2,2,0,0,1,20,21Zm-8-4v2h8V17Z\"\n })), _path336 || (_path336 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6v4a2,2,0,0,0,2,2V28a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V12a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM26,28H6V12H26Zm2-18H4V6H28v4Z\"\n })), children);\n});\nvar Box20 = /*#__PURE__*/React.forwardRef(function Box20(_ref91, ref) {\n var children = _ref91.children,\n rest = _objectWithoutProperties(_ref91, _excluded91);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path337 || (_path337 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,21H12a2,2,0,0,1-2-2V17a2,2,0,0,1,2-2h8a2,2,0,0,1,2,2v2A2,2,0,0,1,20,21Zm-8-4v2h8V17Z\"\n })), _path338 || (_path338 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6v4a2,2,0,0,0,2,2V28a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V12a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM26,28H6V12H26Zm2-18H4V6H28v4Z\"\n })), children);\n});\nvar Box16 = /*#__PURE__*/React.forwardRef(function Box16(_ref92, ref) {\n var children = _ref92.children,\n rest = _objectWithoutProperties(_ref92, _excluded92);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path339 || (_path339 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,21H12a2,2,0,0,1-2-2V17a2,2,0,0,1,2-2h8a2,2,0,0,1,2,2v2A2,2,0,0,1,20,21Zm-8-4v2h8V17Z\"\n })), _path340 || (_path340 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6v4a2,2,0,0,0,2,2V28a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V12a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM26,28H6V12H26Zm2-18H4V6H28v4Z\"\n })), children);\n});\nvar BoxPlot32 = /*#__PURE__*/React.forwardRef(function BoxPlot32(_ref93, ref) {\n var children = _ref93.children,\n rest = _objectWithoutProperties(_ref93, _excluded93);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path341 || (_path341 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,6V4H12V6h4V8H12V20h4v2H12v2H22V22H18V20h4V8H18V6ZM14,18V15h6v3Zm6-5H14V10h6Z\"\n })), _path342 || (_path342 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,30H4a2,2,0,0,1-2-2V2H4V28H30Z\"\n })), children);\n});\nvar BoxPlot24 = /*#__PURE__*/React.forwardRef(function BoxPlot24(_ref94, ref) {\n var children = _ref94.children,\n rest = _objectWithoutProperties(_ref94, _excluded94);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path343 || (_path343 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,6V4H12V6h4V8H12V20h4v2H12v2H22V22H18V20h4V8H18V6ZM14,18V15h6v3Zm6-5H14V10h6Z\"\n })), _path344 || (_path344 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,30H4a2,2,0,0,1-2-2V2H4V28H30Z\"\n })), children);\n});\nvar BoxPlot20 = /*#__PURE__*/React.forwardRef(function BoxPlot20(_ref95, ref) {\n var children = _ref95.children,\n rest = _objectWithoutProperties(_ref95, _excluded95);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path345 || (_path345 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,6V4H12V6h4V8H12V20h4v2H12v2H22V22H18V20h4V8H18V6ZM14,18V15h6v3Zm6-5H14V10h6Z\"\n })), _path346 || (_path346 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,30H4a2,2,0,0,1-2-2V2H4V28H30Z\"\n })), children);\n});\nvar BoxPlot16 = /*#__PURE__*/React.forwardRef(function BoxPlot16(_ref96, ref) {\n var children = _ref96.children,\n rest = _objectWithoutProperties(_ref96, _excluded96);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path347 || (_path347 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,6V4H12V6h4V8H12V20h4v2H12v2H22V22H18V20h4V8H18V6ZM14,18V15h6v3Zm6-5H14V10h6Z\"\n })), _path348 || (_path348 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,30H4a2,2,0,0,1-2-2V2H4V28H30Z\"\n })), children);\n});\nvar Branch32 = /*#__PURE__*/React.forwardRef(function Branch32(_ref97, ref) {\n var children = _ref97.children,\n rest = _objectWithoutProperties(_ref97, _excluded97);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path349 || (_path349 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,18a3.9955,3.9955,0,0,0-3.858,3H18a3.0033,3.0033,0,0,1-3-3V14a4.9514,4.9514,0,0,0-1.0256-3H22.142a4,4,0,1,0,0-2H9.858a4,4,0,1,0,0,2H10a3.0033,3.0033,0,0,1,3,3v4a5.0059,5.0059,0,0,0,5,5h4.142A3.9935,3.9935,0,1,0,26,18ZM26,8a2,2,0,1,1-2,2A2.0023,2.0023,0,0,1,26,8ZM6,12a2,2,0,1,1,2-2A2.002,2.002,0,0,1,6,12ZM26,24a2,2,0,1,1,2-2A2.0027,2.0027,0,0,1,26,24Z\"\n })), children);\n});\nvar Branch24 = /*#__PURE__*/React.forwardRef(function Branch24(_ref98, ref) {\n var children = _ref98.children,\n rest = _objectWithoutProperties(_ref98, _excluded98);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path350 || (_path350 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,18a3.9955,3.9955,0,0,0-3.858,3H18a3.0033,3.0033,0,0,1-3-3V14a4.9514,4.9514,0,0,0-1.0256-3H22.142a4,4,0,1,0,0-2H9.858a4,4,0,1,0,0,2H10a3.0033,3.0033,0,0,1,3,3v4a5.0059,5.0059,0,0,0,5,5h4.142A3.9935,3.9935,0,1,0,26,18ZM26,8a2,2,0,1,1-2,2A2.0023,2.0023,0,0,1,26,8ZM6,12a2,2,0,1,1,2-2A2.002,2.002,0,0,1,6,12ZM26,24a2,2,0,1,1,2-2A2.0027,2.0027,0,0,1,26,24Z\"\n })), children);\n});\nvar Branch20 = /*#__PURE__*/React.forwardRef(function Branch20(_ref99, ref) {\n var children = _ref99.children,\n rest = _objectWithoutProperties(_ref99, _excluded99);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path351 || (_path351 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,18a3.9955,3.9955,0,0,0-3.858,3H18a3.0033,3.0033,0,0,1-3-3V14a4.9514,4.9514,0,0,0-1.0256-3H22.142a4,4,0,1,0,0-2H9.858a4,4,0,1,0,0,2H10a3.0033,3.0033,0,0,1,3,3v4a5.0059,5.0059,0,0,0,5,5h4.142A3.9935,3.9935,0,1,0,26,18ZM26,8a2,2,0,1,1-2,2A2.0023,2.0023,0,0,1,26,8ZM6,12a2,2,0,1,1,2-2A2.002,2.002,0,0,1,6,12ZM26,24a2,2,0,1,1,2-2A2.0027,2.0027,0,0,1,26,24Z\"\n })), children);\n});\nvar Branch16 = /*#__PURE__*/React.forwardRef(function Branch16(_ref100, ref) {\n var children = _ref100.children,\n rest = _objectWithoutProperties(_ref100, _excluded100);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path352 || (_path352 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,18a3.9955,3.9955,0,0,0-3.858,3H18a3.0033,3.0033,0,0,1-3-3V14a4.9514,4.9514,0,0,0-1.0256-3H22.142a4,4,0,1,0,0-2H9.858a4,4,0,1,0,0,2H10a3.0033,3.0033,0,0,1,3,3v4a5.0059,5.0059,0,0,0,5,5h4.142A3.9935,3.9935,0,1,0,26,18ZM26,8a2,2,0,1,1-2,2A2.0023,2.0023,0,0,1,26,8ZM6,12a2,2,0,1,1,2-2A2.002,2.002,0,0,1,6,12ZM26,24a2,2,0,1,1,2-2A2.0027,2.0027,0,0,1,26,24Z\"\n })), children);\n});\nvar BreakingChange32 = /*#__PURE__*/React.forwardRef(function BreakingChange32(_ref101, ref) {\n var children = _ref101.children,\n rest = _objectWithoutProperties(_ref101, _excluded101);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path353 || (_path353 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M31 25a6 6 0 10-6 6A6.0066 6.0066 0 0031 25zm-2 0a3.9521 3.9521 0 01-.5669 2.019L22.981 21.5669A3.9529 3.9529 0 0125 21 4.0045 4.0045 0 0129 25zm-8 0a3.9521 3.9521 0 01.5669-2.019l5.4521 5.4521A3.9529 3.9529 0 0125 29 4.0045 4.0045 0 0121 25zM19.59 16L17 18.59 18.42 20 22.42 16 18.42 12 17 13.41 19.59 16zM10.41 16L13 13.41 11.58 12 7.58 16 11.58 20 13 18.59 10.41 16z\"\n })), _path354 || (_path354 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4,9H26v7h2V4a2,2,0,0,0-2-2H4A2,2,0,0,0,2,4V24a2,2,0,0,0,2,2H16V24H4ZM4,4H26V7H4Z\"\n })), children);\n});\nvar BreakingChange24 = /*#__PURE__*/React.forwardRef(function BreakingChange24(_ref102, ref) {\n var children = _ref102.children,\n rest = _objectWithoutProperties(_ref102, _excluded102);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path355 || (_path355 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M31 25a6 6 0 10-6 6A6.0066 6.0066 0 0031 25zm-2 0a3.9521 3.9521 0 01-.5669 2.019L22.981 21.5669A3.9529 3.9529 0 0125 21 4.0045 4.0045 0 0129 25zm-8 0a3.9521 3.9521 0 01.5669-2.019l5.4521 5.4521A3.9529 3.9529 0 0125 29 4.0045 4.0045 0 0121 25zM19.59 16L17 18.59 18.42 20 22.42 16 18.42 12 17 13.41 19.59 16zM10.41 16L13 13.41 11.58 12 7.58 16 11.58 20 13 18.59 10.41 16z\"\n })), _path356 || (_path356 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4,9H26v7h2V4a2,2,0,0,0-2-2H4A2,2,0,0,0,2,4V24a2,2,0,0,0,2,2H16V24H4ZM4,4H26V7H4Z\"\n })), children);\n});\nvar BreakingChange20 = /*#__PURE__*/React.forwardRef(function BreakingChange20(_ref103, ref) {\n var children = _ref103.children,\n rest = _objectWithoutProperties(_ref103, _excluded103);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path357 || (_path357 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M31 25a6 6 0 10-6 6A6.0066 6.0066 0 0031 25zm-2 0a3.9521 3.9521 0 01-.5669 2.019L22.981 21.5669A3.9529 3.9529 0 0125 21 4.0045 4.0045 0 0129 25zm-8 0a3.9521 3.9521 0 01.5669-2.019l5.4521 5.4521A3.9529 3.9529 0 0125 29 4.0045 4.0045 0 0121 25zM19.59 16L17 18.59 18.42 20 22.42 16 18.42 12 17 13.41 19.59 16zM10.41 16L13 13.41 11.58 12 7.58 16 11.58 20 13 18.59 10.41 16z\"\n })), _path358 || (_path358 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4,9H26v7h2V4a2,2,0,0,0-2-2H4A2,2,0,0,0,2,4V24a2,2,0,0,0,2,2H16V24H4ZM4,4H26V7H4Z\"\n })), children);\n});\nvar BreakingChange16 = /*#__PURE__*/React.forwardRef(function BreakingChange16(_ref104, ref) {\n var children = _ref104.children,\n rest = _objectWithoutProperties(_ref104, _excluded104);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path359 || (_path359 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M31 25a6 6 0 10-6 6A6.0066 6.0066 0 0031 25zm-2 0a3.9521 3.9521 0 01-.5669 2.019L22.981 21.5669A3.9529 3.9529 0 0125 21 4.0045 4.0045 0 0129 25zm-8 0a3.9521 3.9521 0 01.5669-2.019l5.4521 5.4521A3.9529 3.9529 0 0125 29 4.0045 4.0045 0 0121 25zM19.59 16L17 18.59 18.42 20 22.42 16 18.42 12 17 13.41 19.59 16zM10.41 16L13 13.41 11.58 12 7.58 16 11.58 20 13 18.59 10.41 16z\"\n })), _path360 || (_path360 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4,9H26v7h2V4a2,2,0,0,0-2-2H4A2,2,0,0,0,2,4V24a2,2,0,0,0,2,2H16V24H4ZM4,4H26V7H4Z\"\n })), children);\n});\nvar BrightnessContrast32 = /*#__PURE__*/React.forwardRef(function BrightnessContrast32(_ref105, ref) {\n var children = _ref105.children,\n rest = _objectWithoutProperties(_ref105, _excluded105);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path361 || (_path361 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 2H17V5H15zM27 15H30V17H27zM15 27H17V30H15zM2 15H5V17H2z\"\n })), _path362 || (_path362 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6.22 5.73H8.219999999999999V8.73H6.22z\",\n transform: \"rotate(-45 7.227 7.236)\"\n })), _path363 || (_path363 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.27 6.23H26.27V8.23H23.27z\",\n transform: \"rotate(-45 24.766 7.232)\"\n })), _path364 || (_path364 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.77 23.27H25.77V26.27H23.77z\",\n transform: \"rotate(-45 24.77 24.77)\"\n })), _path365 || (_path365 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5.47 25.13L7.59 23 9 24.42 6.88 26.54 5.47 25.13zM16 8a8 8 0 108 8A8 8 0 0016 8zm0 14a6 6 0 010-12z\"\n })), children);\n});\nvar BrightnessContrast24 = /*#__PURE__*/React.forwardRef(function BrightnessContrast24(_ref106, ref) {\n var children = _ref106.children,\n rest = _objectWithoutProperties(_ref106, _excluded106);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path366 || (_path366 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 2H17V5H15zM27 15H30V17H27zM15 27H17V30H15zM2 15H5V17H2z\"\n })), _path367 || (_path367 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6.22 5.73H8.219999999999999V8.73H6.22z\",\n transform: \"rotate(-45 7.227 7.236)\"\n })), _path368 || (_path368 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.27 6.23H26.27V8.23H23.27z\",\n transform: \"rotate(-45 24.766 7.232)\"\n })), _path369 || (_path369 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.77 23.27H25.77V26.27H23.77z\",\n transform: \"rotate(-45 24.77 24.77)\"\n })), _path370 || (_path370 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5.47 25.13L7.59 23 9 24.42 6.88 26.54 5.47 25.13zM16 8a8 8 0 108 8A8 8 0 0016 8zm0 14a6 6 0 010-12z\"\n })), children);\n});\nvar BrightnessContrast20 = /*#__PURE__*/React.forwardRef(function BrightnessContrast20(_ref107, ref) {\n var children = _ref107.children,\n rest = _objectWithoutProperties(_ref107, _excluded107);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path371 || (_path371 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 2H17V5H15zM27 15H30V17H27zM15 27H17V30H15zM2 15H5V17H2z\"\n })), _path372 || (_path372 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6.22 5.73H8.219999999999999V8.73H6.22z\",\n transform: \"rotate(-45 7.227 7.236)\"\n })), _path373 || (_path373 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.27 6.23H26.27V8.23H23.27z\",\n transform: \"rotate(-45 24.766 7.232)\"\n })), _path374 || (_path374 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.77 23.27H25.77V26.27H23.77z\",\n transform: \"rotate(-45 24.77 24.77)\"\n })), _path375 || (_path375 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5.47 25.13L7.59 23 9 24.42 6.88 26.54 5.47 25.13zM16 8a8 8 0 108 8A8 8 0 0016 8zm0 14a6 6 0 010-12z\"\n })), children);\n});\nvar BrightnessContrast16 = /*#__PURE__*/React.forwardRef(function BrightnessContrast16(_ref108, ref) {\n var children = _ref108.children,\n rest = _objectWithoutProperties(_ref108, _excluded108);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path376 || (_path376 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 2H17V5H15zM27 15H30V17H27zM15 27H17V30H15zM2 15H5V17H2z\"\n })), _path377 || (_path377 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6.22 5.73H8.219999999999999V8.73H6.22z\",\n transform: \"rotate(-45 7.227 7.236)\"\n })), _path378 || (_path378 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.27 6.23H26.27V8.23H23.27z\",\n transform: \"rotate(-45 24.766 7.232)\"\n })), _path379 || (_path379 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.77 23.27H25.77V26.27H23.77z\",\n transform: \"rotate(-45 24.77 24.77)\"\n })), _path380 || (_path380 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5.47 25.13L7.59 23 9 24.42 6.88 26.54 5.47 25.13zM16 8a8 8 0 108 8A8 8 0 0016 8zm0 14a6 6 0 010-12z\"\n })), children);\n});\nvar BringToFront32 = /*#__PURE__*/React.forwardRef(function BringToFront32(_ref109, ref) {\n var children = _ref109.children,\n rest = _objectWithoutProperties(_ref109, _excluded109);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path381 || (_path381 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,10H22V4a2.0023,2.0023,0,0,0-2-2H4A2.0023,2.0023,0,0,0,2,4V20a2.0023,2.0023,0,0,0,2,2h6v6a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V12A2,2,0,0,0,28,10ZM4,20,3.9985,4H20v6H12a2,2,0,0,0-2,2v8Z\"\n })), children);\n});\nvar BringToFront24 = /*#__PURE__*/React.forwardRef(function BringToFront24(_ref110, ref) {\n var children = _ref110.children,\n rest = _objectWithoutProperties(_ref110, _excluded110);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path382 || (_path382 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,10H22V4a2.0023,2.0023,0,0,0-2-2H4A2.0023,2.0023,0,0,0,2,4V20a2.0023,2.0023,0,0,0,2,2h6v6a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V12A2,2,0,0,0,28,10ZM4,20,3.9985,4H20v6H12a2,2,0,0,0-2,2v8Z\"\n })), children);\n});\nvar BringToFront20 = /*#__PURE__*/React.forwardRef(function BringToFront20(_ref111, ref) {\n var children = _ref111.children,\n rest = _objectWithoutProperties(_ref111, _excluded111);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path383 || (_path383 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,10H22V4a2.0023,2.0023,0,0,0-2-2H4A2.0023,2.0023,0,0,0,2,4V20a2.0023,2.0023,0,0,0,2,2h6v6a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V12A2,2,0,0,0,28,10ZM4,20,3.9985,4H20v6H12a2,2,0,0,0-2,2v8Z\"\n })), children);\n});\nvar BringToFront16 = /*#__PURE__*/React.forwardRef(function BringToFront16(_ref112, ref) {\n var children = _ref112.children,\n rest = _objectWithoutProperties(_ref112, _excluded112);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path384 || (_path384 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,10H22V4a2.0023,2.0023,0,0,0-2-2H4A2.0023,2.0023,0,0,0,2,4V20a2.0023,2.0023,0,0,0,2,2h6v6a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V12A2,2,0,0,0,28,10ZM4,20,3.9985,4H20v6H12a2,2,0,0,0-2,2v8Z\"\n })), children);\n});\nvar WatsonHealthBrushFreehand32 = /*#__PURE__*/React.forwardRef(function WatsonHealthBrushFreehand32(_ref113, ref) {\n var children = _ref113.children,\n rest = _objectWithoutProperties(_ref113, _excluded113);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path385 || (_path385 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.8281 3.1719a4.0941 4.0941 0 00-5.6562 0L4.05 22.292A6.9537 6.9537 0 002 27.2412V30H4.7559a6.9523 6.9523 0 004.95-2.05L28.8281 8.8286a3.999 3.999 0 000-5.6567zM10.91 18.26l2.8286 2.8286L11.6172 23.21 8.7886 20.3818zM8.2915 26.5356A4.9665 4.9665 0 014.7559 28H4v-.7588a4.9669 4.9669 0 011.4644-3.5351l1.91-1.91 2.8286 2.8281zM27.4141 7.4141L15.1528 19.6748l-2.8286-2.8286 12.2617-12.26a2.0473 2.0473 0 012.8282 0 1.9995 1.9995 0 010 2.8282zM6.5 15A3.4994 3.4994 0 014.0249 9.026l3.5005-3.5a1.5019 1.5019 0 000-2.121 1.537 1.537 0 00-2.1216 0L3.415 5.3936 2 3.98 3.99 1.9915a3.5849 3.5849 0 014.95 0 3.5039 3.5039 0 010 4.949L5.439 10.44a1.5019 1.5019 0 000 2.121 1.5369 1.5369 0 002.1215 0l4.0249-4.0243L13 9.9507 8.9746 13.975A3.4754 3.4754 0 016.5 15z\"\n })), children);\n});\nvar WatsonHealthBrushFreehand24 = /*#__PURE__*/React.forwardRef(function WatsonHealthBrushFreehand24(_ref114, ref) {\n var children = _ref114.children,\n rest = _objectWithoutProperties(_ref114, _excluded114);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path386 || (_path386 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.8281 3.1719a4.0941 4.0941 0 00-5.6562 0L4.05 22.292A6.9537 6.9537 0 002 27.2412V30H4.7559a6.9523 6.9523 0 004.95-2.05L28.8281 8.8286a3.999 3.999 0 000-5.6567zM10.91 18.26l2.8286 2.8286L11.6172 23.21 8.7886 20.3818zM8.2915 26.5356A4.9665 4.9665 0 014.7559 28H4v-.7588a4.9669 4.9669 0 011.4644-3.5351l1.91-1.91 2.8286 2.8281zM27.4141 7.4141L15.1528 19.6748l-2.8286-2.8286 12.2617-12.26a2.0473 2.0473 0 012.8282 0 1.9995 1.9995 0 010 2.8282zM6.5 15A3.4994 3.4994 0 014.0249 9.026l3.5005-3.5a1.5019 1.5019 0 000-2.121 1.537 1.537 0 00-2.1216 0L3.415 5.3936 2 3.98 3.99 1.9915a3.5849 3.5849 0 014.95 0 3.5039 3.5039 0 010 4.949L5.439 10.44a1.5019 1.5019 0 000 2.121 1.5369 1.5369 0 002.1215 0l4.0249-4.0243L13 9.9507 8.9746 13.975A3.4754 3.4754 0 016.5 15z\"\n })), children);\n});\nvar WatsonHealthBrushFreehand20 = /*#__PURE__*/React.forwardRef(function WatsonHealthBrushFreehand20(_ref115, ref) {\n var children = _ref115.children,\n rest = _objectWithoutProperties(_ref115, _excluded115);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path387 || (_path387 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.8281 3.1719a4.0941 4.0941 0 00-5.6562 0L4.05 22.292A6.9537 6.9537 0 002 27.2412V30H4.7559a6.9523 6.9523 0 004.95-2.05L28.8281 8.8286a3.999 3.999 0 000-5.6567zM10.91 18.26l2.8286 2.8286L11.6172 23.21 8.7886 20.3818zM8.2915 26.5356A4.9665 4.9665 0 014.7559 28H4v-.7588a4.9669 4.9669 0 011.4644-3.5351l1.91-1.91 2.8286 2.8281zM27.4141 7.4141L15.1528 19.6748l-2.8286-2.8286 12.2617-12.26a2.0473 2.0473 0 012.8282 0 1.9995 1.9995 0 010 2.8282zM6.5 15A3.4994 3.4994 0 014.0249 9.026l3.5005-3.5a1.5019 1.5019 0 000-2.121 1.537 1.537 0 00-2.1216 0L3.415 5.3936 2 3.98 3.99 1.9915a3.5849 3.5849 0 014.95 0 3.5039 3.5039 0 010 4.949L5.439 10.44a1.5019 1.5019 0 000 2.121 1.5369 1.5369 0 002.1215 0l4.0249-4.0243L13 9.9507 8.9746 13.975A3.4754 3.4754 0 016.5 15z\"\n })), children);\n});\nvar WatsonHealthBrushFreehand16 = /*#__PURE__*/React.forwardRef(function WatsonHealthBrushFreehand16(_ref116, ref) {\n var children = _ref116.children,\n rest = _objectWithoutProperties(_ref116, _excluded116);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path388 || (_path388 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.8281 3.1719a4.0941 4.0941 0 00-5.6562 0L4.05 22.292A6.9537 6.9537 0 002 27.2412V30H4.7559a6.9523 6.9523 0 004.95-2.05L28.8281 8.8286a3.999 3.999 0 000-5.6567zM10.91 18.26l2.8286 2.8286L11.6172 23.21 8.7886 20.3818zM8.2915 26.5356A4.9665 4.9665 0 014.7559 28H4v-.7588a4.9669 4.9669 0 011.4644-3.5351l1.91-1.91 2.8286 2.8281zM27.4141 7.4141L15.1528 19.6748l-2.8286-2.8286 12.2617-12.26a2.0473 2.0473 0 012.8282 0 1.9995 1.9995 0 010 2.8282zM6.5 15A3.4994 3.4994 0 014.0249 9.026l3.5005-3.5a1.5019 1.5019 0 000-2.121 1.537 1.537 0 00-2.1216 0L3.415 5.3936 2 3.98 3.99 1.9915a3.5849 3.5849 0 014.95 0 3.5039 3.5039 0 010 4.949L5.439 10.44a1.5019 1.5019 0 000 2.121 1.5369 1.5369 0 002.1215 0l4.0249-4.0243L13 9.9507 8.9746 13.975A3.4754 3.4754 0 016.5 15z\"\n })), children);\n});\nvar WatsonHealthBrushPolygon32 = /*#__PURE__*/React.forwardRef(function WatsonHealthBrushPolygon32(_ref117, ref) {\n var children = _ref117.children,\n rest = _objectWithoutProperties(_ref117, _excluded117);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path389 || (_path389 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.8281 3.1719a4.0941 4.0941 0 00-5.6562 0L4.05 22.292A6.9537 6.9537 0 002 27.2412V30H4.7559a6.9523 6.9523 0 004.95-2.05L28.8281 8.8286a3.999 3.999 0 000-5.6567zM10.91 18.26l2.8286 2.8286L11.6172 23.21 8.7886 20.3818zM8.2915 26.5356A4.9665 4.9665 0 014.7559 28H4v-.7588a4.9669 4.9669 0 011.4644-3.5351l1.91-1.91 2.8286 2.8281zM27.4141 7.4141L15.1528 19.6748l-2.8286-2.8286 12.2617-12.26a2.0473 2.0473 0 012.8282 0 1.9995 1.9995 0 010 2.8282zM14 2a2.9948 2.9948 0 00-2.8157 2H7.8157A2.9925 2.9925 0 104 7.8154v3.3687a3 3 0 102 0V7.8159A2.9959 2.9959 0 007.8157 6h3.3686A2.9947 2.9947 0 1014 2zM5 15a1 1 0 111-1A1.0008 1.0008 0 015 15zM5 6A1 1 0 116 5 1.0008 1.0008 0 015 6zm9 0a1 1 0 111-1A1.0008 1.0008 0 0114 6z\"\n })), children);\n});\nvar WatsonHealthBrushPolygon24 = /*#__PURE__*/React.forwardRef(function WatsonHealthBrushPolygon24(_ref118, ref) {\n var children = _ref118.children,\n rest = _objectWithoutProperties(_ref118, _excluded118);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path390 || (_path390 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.8281 3.1719a4.0941 4.0941 0 00-5.6562 0L4.05 22.292A6.9537 6.9537 0 002 27.2412V30H4.7559a6.9523 6.9523 0 004.95-2.05L28.8281 8.8286a3.999 3.999 0 000-5.6567zM10.91 18.26l2.8286 2.8286L11.6172 23.21 8.7886 20.3818zM8.2915 26.5356A4.9665 4.9665 0 014.7559 28H4v-.7588a4.9669 4.9669 0 011.4644-3.5351l1.91-1.91 2.8286 2.8281zM27.4141 7.4141L15.1528 19.6748l-2.8286-2.8286 12.2617-12.26a2.0473 2.0473 0 012.8282 0 1.9995 1.9995 0 010 2.8282zM14 2a2.9948 2.9948 0 00-2.8157 2H7.8157A2.9925 2.9925 0 104 7.8154v3.3687a3 3 0 102 0V7.8159A2.9959 2.9959 0 007.8157 6h3.3686A2.9947 2.9947 0 1014 2zM5 15a1 1 0 111-1A1.0008 1.0008 0 015 15zM5 6A1 1 0 116 5 1.0008 1.0008 0 015 6zm9 0a1 1 0 111-1A1.0008 1.0008 0 0114 6z\"\n })), children);\n});\nvar WatsonHealthBrushPolygon20 = /*#__PURE__*/React.forwardRef(function WatsonHealthBrushPolygon20(_ref119, ref) {\n var children = _ref119.children,\n rest = _objectWithoutProperties(_ref119, _excluded119);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path391 || (_path391 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.8281 3.1719a4.0941 4.0941 0 00-5.6562 0L4.05 22.292A6.9537 6.9537 0 002 27.2412V30H4.7559a6.9523 6.9523 0 004.95-2.05L28.8281 8.8286a3.999 3.999 0 000-5.6567zM10.91 18.26l2.8286 2.8286L11.6172 23.21 8.7886 20.3818zM8.2915 26.5356A4.9665 4.9665 0 014.7559 28H4v-.7588a4.9669 4.9669 0 011.4644-3.5351l1.91-1.91 2.8286 2.8281zM27.4141 7.4141L15.1528 19.6748l-2.8286-2.8286 12.2617-12.26a2.0473 2.0473 0 012.8282 0 1.9995 1.9995 0 010 2.8282zM14 2a2.9948 2.9948 0 00-2.8157 2H7.8157A2.9925 2.9925 0 104 7.8154v3.3687a3 3 0 102 0V7.8159A2.9959 2.9959 0 007.8157 6h3.3686A2.9947 2.9947 0 1014 2zM5 15a1 1 0 111-1A1.0008 1.0008 0 015 15zM5 6A1 1 0 116 5 1.0008 1.0008 0 015 6zm9 0a1 1 0 111-1A1.0008 1.0008 0 0114 6z\"\n })), children);\n});\nvar WatsonHealthBrushPolygon16 = /*#__PURE__*/React.forwardRef(function WatsonHealthBrushPolygon16(_ref120, ref) {\n var children = _ref120.children,\n rest = _objectWithoutProperties(_ref120, _excluded120);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path392 || (_path392 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.8281 3.1719a4.0941 4.0941 0 00-5.6562 0L4.05 22.292A6.9537 6.9537 0 002 27.2412V30H4.7559a6.9523 6.9523 0 004.95-2.05L28.8281 8.8286a3.999 3.999 0 000-5.6567zM10.91 18.26l2.8286 2.8286L11.6172 23.21 8.7886 20.3818zM8.2915 26.5356A4.9665 4.9665 0 014.7559 28H4v-.7588a4.9669 4.9669 0 011.4644-3.5351l1.91-1.91 2.8286 2.8281zM27.4141 7.4141L15.1528 19.6748l-2.8286-2.8286 12.2617-12.26a2.0473 2.0473 0 012.8282 0 1.9995 1.9995 0 010 2.8282zM14 2a2.9948 2.9948 0 00-2.8157 2H7.8157A2.9925 2.9925 0 104 7.8154v3.3687a3 3 0 102 0V7.8159A2.9959 2.9959 0 007.8157 6h3.3686A2.9947 2.9947 0 1014 2zM5 15a1 1 0 111-1A1.0008 1.0008 0 015 15zM5 6A1 1 0 116 5 1.0008 1.0008 0 015 6zm9 0a1 1 0 111-1A1.0008 1.0008 0 0114 6z\"\n })), children);\n});\nvar Building32 = /*#__PURE__*/React.forwardRef(function Building32(_ref121, ref) {\n var children = _ref121.children,\n rest = _objectWithoutProperties(_ref121, _excluded121);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path393 || (_path393 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,2H16a2.002,2.002,0,0,0-2,2V14H4a2.002,2.002,0,0,0-2,2V30H30V4A2.0023,2.0023,0,0,0,28,2ZM9,28V21h4v7Zm19,0H15V20a1,1,0,0,0-1-1H8a1,1,0,0,0-1,1v8H4V16H16V4H28Z\"\n })), _path394 || (_path394 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 8H20V10H18zM24 8H26V10H24zM18 14H20V16H18zM24 14H26V16H24zM18 20H20V22H18zM24 20H26V22H24z\"\n })), children);\n});\nvar Building24 = /*#__PURE__*/React.forwardRef(function Building24(_ref122, ref) {\n var children = _ref122.children,\n rest = _objectWithoutProperties(_ref122, _excluded122);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path395 || (_path395 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,2H16a2.002,2.002,0,0,0-2,2V14H4a2.002,2.002,0,0,0-2,2V30H30V4A2.0023,2.0023,0,0,0,28,2ZM9,28V21h4v7Zm19,0H15V20a1,1,0,0,0-1-1H8a1,1,0,0,0-1,1v8H4V16H16V4H28Z\"\n })), _path396 || (_path396 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 8H20V10H18zM24 8H26V10H24zM18 14H20V16H18zM24 14H26V16H24zM18 20H20V22H18zM24 20H26V22H24z\"\n })), children);\n});\nvar Building20 = /*#__PURE__*/React.forwardRef(function Building20(_ref123, ref) {\n var children = _ref123.children,\n rest = _objectWithoutProperties(_ref123, _excluded123);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path397 || (_path397 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,2H16a2.002,2.002,0,0,0-2,2V14H4a2.002,2.002,0,0,0-2,2V30H30V4A2.0023,2.0023,0,0,0,28,2ZM9,28V21h4v7Zm19,0H15V20a1,1,0,0,0-1-1H8a1,1,0,0,0-1,1v8H4V16H16V4H28Z\"\n })), _path398 || (_path398 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 8H20V10H18zM24 8H26V10H24zM18 14H20V16H18zM24 14H26V16H24zM18 20H20V22H18zM24 20H26V22H24z\"\n })), children);\n});\nvar Building16 = /*#__PURE__*/React.forwardRef(function Building16(_ref124, ref) {\n var children = _ref124.children,\n rest = _objectWithoutProperties(_ref124, _excluded124);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path399 || (_path399 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,2H16a2.002,2.002,0,0,0-2,2V14H4a2.002,2.002,0,0,0-2,2V30H30V4A2.0023,2.0023,0,0,0,28,2ZM9,28V21h4v7Zm19,0H15V20a1,1,0,0,0-1-1H8a1,1,0,0,0-1,1v8H4V16H16V4H28Z\"\n })), _path400 || (_path400 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 8H20V10H18zM24 8H26V10H24zM18 14H20V16H18zM24 14H26V16H24zM18 20H20V22H18zM24 20H26V22H24z\"\n })), children);\n});\nvar BuildingInsights_132 = /*#__PURE__*/React.forwardRef(function BuildingInsights_132(_ref125, ref) {\n var children = _ref125.children,\n rest = _objectWithoutProperties(_ref125, _excluded125);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path401 || (_path401 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,2H16a2.002,2.002,0,0,0-2,2V14H4a2.002,2.002,0,0,0-2,2V30H30V4A2.0023,2.0023,0,0,0,28,2ZM9,28V21h4v7Zm19,0H15V20a1,1,0,0,0-1-1H8a1,1,0,0,0-1,1v8H4V16H16V4H28Z\"\n })), _path402 || (_path402 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 8H20V10H18zM24 8H26V10H24zM18 14H20V16H18zM24 14H26V16H24zM18 20H20V22H18zM24 20H26V22H24zM9 12H7a5.0059 5.0059 0 015-5V9A3.0033 3.0033 0 009 12zM4 12H2A10.0114 10.0114 0 0112 2V4A8.0092 8.0092 0 004 12z\"\n })), children);\n});\nvar BuildingInsights_124 = /*#__PURE__*/React.forwardRef(function BuildingInsights_124(_ref126, ref) {\n var children = _ref126.children,\n rest = _objectWithoutProperties(_ref126, _excluded126);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path403 || (_path403 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,2H16a2.002,2.002,0,0,0-2,2V14H4a2.002,2.002,0,0,0-2,2V30H30V4A2.0023,2.0023,0,0,0,28,2ZM9,28V21h4v7Zm19,0H15V20a1,1,0,0,0-1-1H8a1,1,0,0,0-1,1v8H4V16H16V4H28Z\"\n })), _path404 || (_path404 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 8H20V10H18zM24 8H26V10H24zM18 14H20V16H18zM24 14H26V16H24zM18 20H20V22H18zM24 20H26V22H24zM9 12H7a5.0059 5.0059 0 015-5V9A3.0033 3.0033 0 009 12zM4 12H2A10.0114 10.0114 0 0112 2V4A8.0092 8.0092 0 004 12z\"\n })), children);\n});\nvar BuildingInsights_120 = /*#__PURE__*/React.forwardRef(function BuildingInsights_120(_ref127, ref) {\n var children = _ref127.children,\n rest = _objectWithoutProperties(_ref127, _excluded127);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path405 || (_path405 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,2H16a2.002,2.002,0,0,0-2,2V14H4a2.002,2.002,0,0,0-2,2V30H30V4A2.0023,2.0023,0,0,0,28,2ZM9,28V21h4v7Zm19,0H15V20a1,1,0,0,0-1-1H8a1,1,0,0,0-1,1v8H4V16H16V4H28Z\"\n })), _path406 || (_path406 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 8H20V10H18zM24 8H26V10H24zM18 14H20V16H18zM24 14H26V16H24zM18 20H20V22H18zM24 20H26V22H24zM9 12H7a5.0059 5.0059 0 015-5V9A3.0033 3.0033 0 009 12zM4 12H2A10.0114 10.0114 0 0112 2V4A8.0092 8.0092 0 004 12z\"\n })), children);\n});\nvar BuildingInsights_116 = /*#__PURE__*/React.forwardRef(function BuildingInsights_116(_ref128, ref) {\n var children = _ref128.children,\n rest = _objectWithoutProperties(_ref128, _excluded128);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path407 || (_path407 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,2H16a2.002,2.002,0,0,0-2,2V14H4a2.002,2.002,0,0,0-2,2V30H30V4A2.0023,2.0023,0,0,0,28,2ZM9,28V21h4v7Zm19,0H15V20a1,1,0,0,0-1-1H8a1,1,0,0,0-1,1v8H4V16H16V4H28Z\"\n })), _path408 || (_path408 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 8H20V10H18zM24 8H26V10H24zM18 14H20V16H18zM24 14H26V16H24zM18 20H20V22H18zM24 20H26V22H24zM9 12H7a5.0059 5.0059 0 015-5V9A3.0033 3.0033 0 009 12zM4 12H2A10.0114 10.0114 0 0112 2V4A8.0092 8.0092 0 004 12z\"\n })), children);\n});\nvar BuildingInsights_232 = /*#__PURE__*/React.forwardRef(function BuildingInsights_232(_ref129, ref) {\n var children = _ref129.children,\n rest = _objectWithoutProperties(_ref129, _excluded129);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path409 || (_path409 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,2H16a2.002,2.002,0,0,0-2,2V14H4a2.002,2.002,0,0,0-2,2V30H30V4A2.0023,2.0023,0,0,0,28,2ZM9,28V21h4v7Zm19,0H15V20a1,1,0,0,0-1-1H8a1,1,0,0,0-1,1v8H4V16H16V4H28Z\"\n })), _path410 || (_path410 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 8H20V10H18zM24 8H26V10H24zM18 14H20V16H18zM24 14H26V16H24zM18 20H20V22H18zM24 20H26V22H24zM5.5 12a3.5 3.5 0 010-7h.627A4.0062 4.0062 0 0110 2h2V4L10 4A2.0023 2.0023 0 008 6V7H5.5a1.5 1.5 0 000 3H12v2z\"\n })), children);\n});\nvar BuildingInsights_224 = /*#__PURE__*/React.forwardRef(function BuildingInsights_224(_ref130, ref) {\n var children = _ref130.children,\n rest = _objectWithoutProperties(_ref130, _excluded130);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path411 || (_path411 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,2H16a2.002,2.002,0,0,0-2,2V14H4a2.002,2.002,0,0,0-2,2V30H30V4A2.0023,2.0023,0,0,0,28,2ZM9,28V21h4v7Zm19,0H15V20a1,1,0,0,0-1-1H8a1,1,0,0,0-1,1v8H4V16H16V4H28Z\"\n })), _path412 || (_path412 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 8H20V10H18zM24 8H26V10H24zM18 14H20V16H18zM24 14H26V16H24zM18 20H20V22H18zM24 20H26V22H24zM5.5 12a3.5 3.5 0 010-7h.627A4.0062 4.0062 0 0110 2h2V4L10 4A2.0023 2.0023 0 008 6V7H5.5a1.5 1.5 0 000 3H12v2z\"\n })), children);\n});\nvar BuildingInsights_220 = /*#__PURE__*/React.forwardRef(function BuildingInsights_220(_ref131, ref) {\n var children = _ref131.children,\n rest = _objectWithoutProperties(_ref131, _excluded131);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path413 || (_path413 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,2H16a2.002,2.002,0,0,0-2,2V14H4a2.002,2.002,0,0,0-2,2V30H30V4A2.0023,2.0023,0,0,0,28,2ZM9,28V21h4v7Zm19,0H15V20a1,1,0,0,0-1-1H8a1,1,0,0,0-1,1v8H4V16H16V4H28Z\"\n })), _path414 || (_path414 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 8H20V10H18zM24 8H26V10H24zM18 14H20V16H18zM24 14H26V16H24zM18 20H20V22H18zM24 20H26V22H24zM5.5 12a3.5 3.5 0 010-7h.627A4.0062 4.0062 0 0110 2h2V4L10 4A2.0023 2.0023 0 008 6V7H5.5a1.5 1.5 0 000 3H12v2z\"\n })), children);\n});\nvar BuildingInsights_216 = /*#__PURE__*/React.forwardRef(function BuildingInsights_216(_ref132, ref) {\n var children = _ref132.children,\n rest = _objectWithoutProperties(_ref132, _excluded132);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path415 || (_path415 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,2H16a2.002,2.002,0,0,0-2,2V14H4a2.002,2.002,0,0,0-2,2V30H30V4A2.0023,2.0023,0,0,0,28,2ZM9,28V21h4v7Zm19,0H15V20a1,1,0,0,0-1-1H8a1,1,0,0,0-1,1v8H4V16H16V4H28Z\"\n })), _path416 || (_path416 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 8H20V10H18zM24 8H26V10H24zM18 14H20V16H18zM24 14H26V16H24zM18 20H20V22H18zM24 20H26V22H24zM5.5 12a3.5 3.5 0 010-7h.627A4.0062 4.0062 0 0110 2h2V4L10 4A2.0023 2.0023 0 008 6V7H5.5a1.5 1.5 0 000 3H12v2z\"\n })), children);\n});\nvar BuildingInsights_332 = /*#__PURE__*/React.forwardRef(function BuildingInsights_332(_ref133, ref) {\n var children = _ref133.children,\n rest = _objectWithoutProperties(_ref133, _excluded133);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path417 || (_path417 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,2H16a2.002,2.002,0,0,0-2,2V14H4a2.002,2.002,0,0,0-2,2V30H30V4A2.0023,2.0023,0,0,0,28,2ZM9,28V21h4v7Zm19,0H15V20a1,1,0,0,0-1-1H8a1,1,0,0,0-1,1v8H4V16H16V4H28Z\"\n })), _path418 || (_path418 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 8H20V10H18zM24 8H26V10H24zM18 14H20V16H18zM24 14H26V16H24zM18 20H20V22H18zM24 20H26V22H24zM2 10H7V12H2zM10 2H12V7H10z\"\n })), _path419 || (_path419 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5.5 3.964H7.5V9.035H5.5z\",\n transform: \"rotate(-45 6.5 6.5)\"\n })), children);\n});\nvar BuildingInsights_324 = /*#__PURE__*/React.forwardRef(function BuildingInsights_324(_ref134, ref) {\n var children = _ref134.children,\n rest = _objectWithoutProperties(_ref134, _excluded134);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path420 || (_path420 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,2H16a2.002,2.002,0,0,0-2,2V14H4a2.002,2.002,0,0,0-2,2V30H30V4A2.0023,2.0023,0,0,0,28,2ZM9,28V21h4v7Zm19,0H15V20a1,1,0,0,0-1-1H8a1,1,0,0,0-1,1v8H4V16H16V4H28Z\"\n })), _path421 || (_path421 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 8H20V10H18zM24 8H26V10H24zM18 14H20V16H18zM24 14H26V16H24zM18 20H20V22H18zM24 20H26V22H24zM2 10H7V12H2zM10 2H12V7H10z\"\n })), _path422 || (_path422 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5.5 3.964H7.5V9.035H5.5z\",\n transform: \"rotate(-45 6.5 6.5)\"\n })), children);\n});\nvar BuildingInsights_320 = /*#__PURE__*/React.forwardRef(function BuildingInsights_320(_ref135, ref) {\n var children = _ref135.children,\n rest = _objectWithoutProperties(_ref135, _excluded135);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path423 || (_path423 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,2H16a2.002,2.002,0,0,0-2,2V14H4a2.002,2.002,0,0,0-2,2V30H30V4A2.0023,2.0023,0,0,0,28,2ZM9,28V21h4v7Zm19,0H15V20a1,1,0,0,0-1-1H8a1,1,0,0,0-1,1v8H4V16H16V4H28Z\"\n })), _path424 || (_path424 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 8H20V10H18zM24 8H26V10H24zM18 14H20V16H18zM24 14H26V16H24zM18 20H20V22H18zM24 20H26V22H24zM2 10H7V12H2zM10 2H12V7H10z\"\n })), _path425 || (_path425 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5.5 3.964H7.5V9.035H5.5z\",\n transform: \"rotate(-45 6.5 6.5)\"\n })), children);\n});\nvar BuildingInsights_316 = /*#__PURE__*/React.forwardRef(function BuildingInsights_316(_ref136, ref) {\n var children = _ref136.children,\n rest = _objectWithoutProperties(_ref136, _excluded136);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path426 || (_path426 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,2H16a2.002,2.002,0,0,0-2,2V14H4a2.002,2.002,0,0,0-2,2V30H30V4A2.0023,2.0023,0,0,0,28,2ZM9,28V21h4v7Zm19,0H15V20a1,1,0,0,0-1-1H8a1,1,0,0,0-1,1v8H4V16H16V4H28Z\"\n })), _path427 || (_path427 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 8H20V10H18zM24 8H26V10H24zM18 14H20V16H18zM24 14H26V16H24zM18 20H20V22H18zM24 20H26V22H24zM2 10H7V12H2zM10 2H12V7H10z\"\n })), _path428 || (_path428 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5.5 3.964H7.5V9.035H5.5z\",\n transform: \"rotate(-45 6.5 6.5)\"\n })), children);\n});\nvar Bullhorn32 = /*#__PURE__*/React.forwardRef(function Bullhorn32(_ref137, ref) {\n var children = _ref137.children,\n rest = _objectWithoutProperties(_ref137, _excluded137);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path429 || (_path429 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,6V8.17L5.64,11.87a2,2,0,0,0-1.64,2v4.34a2,2,0,0,0,1.64,2L8,20.56V24a2,2,0,0,0,2,2h8a2,2,0,0,0,2-2V22.74l6,1.09V26h2V6ZM18,24H10V20.93l8,1.45ZM6,18.17V13.83L26,10.2V21.8Z\"\n })), children);\n});\nvar Bullhorn24 = /*#__PURE__*/React.forwardRef(function Bullhorn24(_ref138, ref) {\n var children = _ref138.children,\n rest = _objectWithoutProperties(_ref138, _excluded138);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path430 || (_path430 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,6V8.17L5.64,11.87a2,2,0,0,0-1.64,2v4.34a2,2,0,0,0,1.64,2L8,20.56V24a2,2,0,0,0,2,2h8a2,2,0,0,0,2-2V22.74l6,1.09V26h2V6ZM18,24H10V20.93l8,1.45ZM6,18.17V13.83L26,10.2V21.8Z\"\n })), children);\n});\nvar Bullhorn20 = /*#__PURE__*/React.forwardRef(function Bullhorn20(_ref139, ref) {\n var children = _ref139.children,\n rest = _objectWithoutProperties(_ref139, _excluded139);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path431 || (_path431 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,6V8.17L5.64,11.87a2,2,0,0,0-1.64,2v4.34a2,2,0,0,0,1.64,2L8,20.56V24a2,2,0,0,0,2,2h8a2,2,0,0,0,2-2V22.74l6,1.09V26h2V6ZM18,24H10V20.93l8,1.45ZM6,18.17V13.83L26,10.2V21.8Z\"\n })), children);\n});\nvar Bullhorn16 = /*#__PURE__*/React.forwardRef(function Bullhorn16(_ref140, ref) {\n var children = _ref140.children,\n rest = _objectWithoutProperties(_ref140, _excluded140);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path432 || (_path432 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,6V8.17L5.64,11.87a2,2,0,0,0-1.64,2v4.34a2,2,0,0,0,1.64,2L8,20.56V24a2,2,0,0,0,2,2h8a2,2,0,0,0,2-2V22.74l6,1.09V26h2V6ZM18,24H10V20.93l8,1.45ZM6,18.17V13.83L26,10.2V21.8Z\"\n })), children);\n});\nvar Buoy32 = /*#__PURE__*/React.forwardRef(function Buoy32(_ref141, ref) {\n var children = _ref141.children,\n rest = _objectWithoutProperties(_ref141, _excluded141);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path433 || (_path433 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,22a3.4376,3.4376,0,0,1-3.0513-2.3164,1,1,0,0,0-1.8955-.0049A3.44,3.44,0,0,1,20,22a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,16,19a.9894.9894,0,0,0-.9468.6787A3.44,3.44,0,0,1,12,22a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,8,19a.971.971,0,0,0-.9468.6787A3.44,3.44,0,0,1,4,22H2v2H4a4.9316,4.9316,0,0,0,4-1.9873,5.5965,5.5965,0,0,0,1,.9912,7,7,0,0,0,14,0,5.5965,5.5965,0,0,0,1-.9912A4.9316,4.9316,0,0,0,28,24h2V22ZM16,28a5.0021,5.0021,0,0,1-4.9075-4.0854A5.2252,5.2252,0,0,0,12,24a4.9316,4.9316,0,0,0,4-1.9873A4.9316,4.9316,0,0,0,20,24a5.2252,5.2252,0,0,0,.9075-.0854A5.0021,5.0021,0,0,1,16,28Z\"\n })), _path434 || (_path434 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20.07,7.8345A2.0116,2.0116,0,0,0,18.0771,6H17V2H15V6H13.9175a1.9949,1.9949,0,0,0-1.9859,1.7715L10.2805,19h2.021l.7346-5h5.9212l.7351,5h2.021ZM13.33,12l.5877-4,4.167.0625L18.6633,12Z\"\n })), children);\n});\nvar Buoy24 = /*#__PURE__*/React.forwardRef(function Buoy24(_ref142, ref) {\n var children = _ref142.children,\n rest = _objectWithoutProperties(_ref142, _excluded142);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path435 || (_path435 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,22a3.4376,3.4376,0,0,1-3.0513-2.3164,1,1,0,0,0-1.8955-.0049A3.44,3.44,0,0,1,20,22a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,16,19a.9894.9894,0,0,0-.9468.6787A3.44,3.44,0,0,1,12,22a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,8,19a.971.971,0,0,0-.9468.6787A3.44,3.44,0,0,1,4,22H2v2H4a4.9316,4.9316,0,0,0,4-1.9873,5.5965,5.5965,0,0,0,1,.9912,7,7,0,0,0,14,0,5.5965,5.5965,0,0,0,1-.9912A4.9316,4.9316,0,0,0,28,24h2V22ZM16,28a5.0021,5.0021,0,0,1-4.9075-4.0854A5.2252,5.2252,0,0,0,12,24a4.9316,4.9316,0,0,0,4-1.9873A4.9316,4.9316,0,0,0,20,24a5.2252,5.2252,0,0,0,.9075-.0854A5.0021,5.0021,0,0,1,16,28Z\"\n })), _path436 || (_path436 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20.07,7.8345A2.0116,2.0116,0,0,0,18.0771,6H17V2H15V6H13.9175a1.9949,1.9949,0,0,0-1.9859,1.7715L10.2805,19h2.021l.7346-5h5.9212l.7351,5h2.021ZM13.33,12l.5877-4,4.167.0625L18.6633,12Z\"\n })), children);\n});\nvar Buoy20 = /*#__PURE__*/React.forwardRef(function Buoy20(_ref143, ref) {\n var children = _ref143.children,\n rest = _objectWithoutProperties(_ref143, _excluded143);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path437 || (_path437 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,22a3.4376,3.4376,0,0,1-3.0513-2.3164,1,1,0,0,0-1.8955-.0049A3.44,3.44,0,0,1,20,22a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,16,19a.9894.9894,0,0,0-.9468.6787A3.44,3.44,0,0,1,12,22a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,8,19a.971.971,0,0,0-.9468.6787A3.44,3.44,0,0,1,4,22H2v2H4a4.9316,4.9316,0,0,0,4-1.9873,5.5965,5.5965,0,0,0,1,.9912,7,7,0,0,0,14,0,5.5965,5.5965,0,0,0,1-.9912A4.9316,4.9316,0,0,0,28,24h2V22ZM16,28a5.0021,5.0021,0,0,1-4.9075-4.0854A5.2252,5.2252,0,0,0,12,24a4.9316,4.9316,0,0,0,4-1.9873A4.9316,4.9316,0,0,0,20,24a5.2252,5.2252,0,0,0,.9075-.0854A5.0021,5.0021,0,0,1,16,28Z\"\n })), _path438 || (_path438 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20.07,7.8345A2.0116,2.0116,0,0,0,18.0771,6H17V2H15V6H13.9175a1.9949,1.9949,0,0,0-1.9859,1.7715L10.2805,19h2.021l.7346-5h5.9212l.7351,5h2.021ZM13.33,12l.5877-4,4.167.0625L18.6633,12Z\"\n })), children);\n});\nvar Buoy16 = /*#__PURE__*/React.forwardRef(function Buoy16(_ref144, ref) {\n var children = _ref144.children,\n rest = _objectWithoutProperties(_ref144, _excluded144);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path439 || (_path439 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,22a3.4376,3.4376,0,0,1-3.0513-2.3164,1,1,0,0,0-1.8955-.0049A3.44,3.44,0,0,1,20,22a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,16,19a.9894.9894,0,0,0-.9468.6787A3.44,3.44,0,0,1,12,22a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,8,19a.971.971,0,0,0-.9468.6787A3.44,3.44,0,0,1,4,22H2v2H4a4.9316,4.9316,0,0,0,4-1.9873,5.5965,5.5965,0,0,0,1,.9912,7,7,0,0,0,14,0,5.5965,5.5965,0,0,0,1-.9912A4.9316,4.9316,0,0,0,28,24h2V22ZM16,28a5.0021,5.0021,0,0,1-4.9075-4.0854A5.2252,5.2252,0,0,0,12,24a4.9316,4.9316,0,0,0,4-1.9873A4.9316,4.9316,0,0,0,20,24a5.2252,5.2252,0,0,0,.9075-.0854A5.0021,5.0021,0,0,1,16,28Z\"\n })), _path440 || (_path440 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20.07,7.8345A2.0116,2.0116,0,0,0,18.0771,6H17V2H15V6H13.9175a1.9949,1.9949,0,0,0-1.9859,1.7715L10.2805,19h2.021l.7346-5h5.9212l.7351,5h2.021ZM13.33,12l.5877-4,4.167.0625L18.6633,12Z\"\n })), children);\n});\nvar Bus32 = /*#__PURE__*/React.forwardRef(function Bus32(_ref145, ref) {\n var children = _ref145.children,\n rest = _objectWithoutProperties(_ref145, _excluded145);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path441 || (_path441 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 11H29V15H27zM3 11H5V15H3zM20 20H22V22H20zM10 20H12V22H10z\"\n })), _path442 || (_path442 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21,4H11A5.0059,5.0059,0,0,0,6,9V23a2.0023,2.0023,0,0,0,2,2v3h2V25H22v3h2V25a2.0027,2.0027,0,0,0,2-2V9A5.0059,5.0059,0,0,0,21,4Zm3,6,.0009,6H8V10ZM11,6H21a2.995,2.995,0,0,1,2.8157,2H8.1843A2.995,2.995,0,0,1,11,6ZM8,23V18H24.0012l.0008,5Z\"\n })), children);\n});\nvar Bus24 = /*#__PURE__*/React.forwardRef(function Bus24(_ref146, ref) {\n var children = _ref146.children,\n rest = _objectWithoutProperties(_ref146, _excluded146);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path443 || (_path443 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 11H29V15H27zM3 11H5V15H3zM20 20H22V22H20zM10 20H12V22H10z\"\n })), _path444 || (_path444 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21,4H11A5.0059,5.0059,0,0,0,6,9V23a2.0023,2.0023,0,0,0,2,2v3h2V25H22v3h2V25a2.0027,2.0027,0,0,0,2-2V9A5.0059,5.0059,0,0,0,21,4Zm3,6,.0009,6H8V10ZM11,6H21a2.995,2.995,0,0,1,2.8157,2H8.1843A2.995,2.995,0,0,1,11,6ZM8,23V18H24.0012l.0008,5Z\"\n })), children);\n});\nvar Bus20 = /*#__PURE__*/React.forwardRef(function Bus20(_ref147, ref) {\n var children = _ref147.children,\n rest = _objectWithoutProperties(_ref147, _excluded147);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path445 || (_path445 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 11H29V15H27zM3 11H5V15H3zM20 20H22V22H20zM10 20H12V22H10z\"\n })), _path446 || (_path446 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21,4H11A5.0059,5.0059,0,0,0,6,9V23a2.0023,2.0023,0,0,0,2,2v3h2V25H22v3h2V25a2.0027,2.0027,0,0,0,2-2V9A5.0059,5.0059,0,0,0,21,4Zm3,6,.0009,6H8V10ZM11,6H21a2.995,2.995,0,0,1,2.8157,2H8.1843A2.995,2.995,0,0,1,11,6ZM8,23V18H24.0012l.0008,5Z\"\n })), children);\n});\nvar Bus16 = /*#__PURE__*/React.forwardRef(function Bus16(_ref148, ref) {\n var children = _ref148.children,\n rest = _objectWithoutProperties(_ref148, _excluded148);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path447 || (_path447 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 11H29V15H27zM3 11H5V15H3zM20 20H22V22H20zM10 20H12V22H10z\"\n })), _path448 || (_path448 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21,4H11A5.0059,5.0059,0,0,0,6,9V23a2.0023,2.0023,0,0,0,2,2v3h2V25H22v3h2V25a2.0027,2.0027,0,0,0,2-2V9A5.0059,5.0059,0,0,0,21,4Zm3,6,.0009,6H8V10ZM11,6H21a2.995,2.995,0,0,1,2.8157,2H8.1843A2.995,2.995,0,0,1,11,6ZM8,23V18H24.0012l.0008,5Z\"\n })), children);\n});\nvar CabinCare32 = /*#__PURE__*/React.forwardRef(function CabinCare32(_ref149, ref) {\n var children = _ref149.children,\n rest = _objectWithoutProperties(_ref149, _excluded149);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path449 || (_path449 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.3022 2a2.6617 2.6617 0 00-1.9079.8059l-.3931.4053-.397-.4053a2.6613 2.6613 0 00-3.8158 0 2.7992 2.7992 0 000 3.8963L25.0012 11 29.21 6.7022a2.7992 2.7992 0 000-3.8963A2.6613 2.6613 0 0027.3022 2zM23.8218 18H15.083L11.8643 5.9653a4 4 0 00-7.7276 2.07L8.5454 24.5168A2 2 0 0010.4775 26H19v2H4v2H19a2 2 0 002-2V26h3a4.0046 4.0046 0 003.98-4.4A4.1214 4.1214 0 0023.8218 18zM24 24H10.4776L6.0686 7.5181A2 2 0 119.9324 6.4829L13.5466 20H24a2 2 0 010 4z\"\n })), children);\n});\nvar CabinCare24 = /*#__PURE__*/React.forwardRef(function CabinCare24(_ref150, ref) {\n var children = _ref150.children,\n rest = _objectWithoutProperties(_ref150, _excluded150);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path450 || (_path450 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.3022 2a2.6617 2.6617 0 00-1.9079.8059l-.3931.4053-.397-.4053a2.6613 2.6613 0 00-3.8158 0 2.7992 2.7992 0 000 3.8963L25.0012 11 29.21 6.7022a2.7992 2.7992 0 000-3.8963A2.6613 2.6613 0 0027.3022 2zM23.8218 18H15.083L11.8643 5.9653a4 4 0 00-7.7276 2.07L8.5454 24.5168A2 2 0 0010.4775 26H19v2H4v2H19a2 2 0 002-2V26h3a4.0046 4.0046 0 003.98-4.4A4.1214 4.1214 0 0023.8218 18zM24 24H10.4776L6.0686 7.5181A2 2 0 119.9324 6.4829L13.5466 20H24a2 2 0 010 4z\"\n })), children);\n});\nvar CabinCare20 = /*#__PURE__*/React.forwardRef(function CabinCare20(_ref151, ref) {\n var children = _ref151.children,\n rest = _objectWithoutProperties(_ref151, _excluded151);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path451 || (_path451 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.3022 2a2.6617 2.6617 0 00-1.9079.8059l-.3931.4053-.397-.4053a2.6613 2.6613 0 00-3.8158 0 2.7992 2.7992 0 000 3.8963L25.0012 11 29.21 6.7022a2.7992 2.7992 0 000-3.8963A2.6613 2.6613 0 0027.3022 2zM23.8218 18H15.083L11.8643 5.9653a4 4 0 00-7.7276 2.07L8.5454 24.5168A2 2 0 0010.4775 26H19v2H4v2H19a2 2 0 002-2V26h3a4.0046 4.0046 0 003.98-4.4A4.1214 4.1214 0 0023.8218 18zM24 24H10.4776L6.0686 7.5181A2 2 0 119.9324 6.4829L13.5466 20H24a2 2 0 010 4z\"\n })), children);\n});\nvar CabinCare16 = /*#__PURE__*/React.forwardRef(function CabinCare16(_ref152, ref) {\n var children = _ref152.children,\n rest = _objectWithoutProperties(_ref152, _excluded152);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path452 || (_path452 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.3022 2a2.6617 2.6617 0 00-1.9079.8059l-.3931.4053-.397-.4053a2.6613 2.6613 0 00-3.8158 0 2.7992 2.7992 0 000 3.8963L25.0012 11 29.21 6.7022a2.7992 2.7992 0 000-3.8963A2.6613 2.6613 0 0027.3022 2zM23.8218 18H15.083L11.8643 5.9653a4 4 0 00-7.7276 2.07L8.5454 24.5168A2 2 0 0010.4775 26H19v2H4v2H19a2 2 0 002-2V26h3a4.0046 4.0046 0 003.98-4.4A4.1214 4.1214 0 0023.8218 18zM24 24H10.4776L6.0686 7.5181A2 2 0 119.9324 6.4829L13.5466 20H24a2 2 0 010 4z\"\n })), children);\n});\nvar CabinCareAlert32 = /*#__PURE__*/React.forwardRef(function CabinCareAlert32(_ref153, ref) {\n var children = _ref153.children,\n rest = _objectWithoutProperties(_ref153, _excluded153);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path453 || (_path453 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 2H26V9H24z\"\n })), _rect || (_rect = /*#__PURE__*/React.createElement(\"rect\", {\n width: \"3\",\n height: \"3\",\n x: \"23.5\",\n y: \"11\",\n rx: \"1.5\"\n })), _path454 || (_path454 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.8218,18H15.083L11.8643,5.9653a4,4,0,0,0-7.7276,2.07L8.5454,24.5168A2,2,0,0,0,10.4775,26H19v2H4v2H19a2,2,0,0,0,2-2V26h3a4.0046,4.0046,0,0,0,3.98-4.4A4.1215,4.1215,0,0,0,23.8218,18ZM24,24H10.4775L6.0686,7.5181A2,2,0,1,1,9.9324,6.4829L13.5466,20H24a2,2,0,0,1,0,4Z\"\n })), children);\n});\nvar CabinCareAlert24 = /*#__PURE__*/React.forwardRef(function CabinCareAlert24(_ref154, ref) {\n var children = _ref154.children,\n rest = _objectWithoutProperties(_ref154, _excluded154);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path455 || (_path455 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 2H26V9H24z\"\n })), _rect2 || (_rect2 = /*#__PURE__*/React.createElement(\"rect\", {\n width: \"3\",\n height: \"3\",\n x: \"23.5\",\n y: \"11\",\n rx: \"1.5\"\n })), _path456 || (_path456 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.8218,18H15.083L11.8643,5.9653a4,4,0,0,0-7.7276,2.07L8.5454,24.5168A2,2,0,0,0,10.4775,26H19v2H4v2H19a2,2,0,0,0,2-2V26h3a4.0046,4.0046,0,0,0,3.98-4.4A4.1215,4.1215,0,0,0,23.8218,18ZM24,24H10.4775L6.0686,7.5181A2,2,0,1,1,9.9324,6.4829L13.5466,20H24a2,2,0,0,1,0,4Z\"\n })), children);\n});\nvar CabinCareAlert20 = /*#__PURE__*/React.forwardRef(function CabinCareAlert20(_ref155, ref) {\n var children = _ref155.children,\n rest = _objectWithoutProperties(_ref155, _excluded155);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path457 || (_path457 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 2H26V9H24z\"\n })), _rect3 || (_rect3 = /*#__PURE__*/React.createElement(\"rect\", {\n width: \"3\",\n height: \"3\",\n x: \"23.5\",\n y: \"11\",\n rx: \"1.5\"\n })), _path458 || (_path458 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.8218,18H15.083L11.8643,5.9653a4,4,0,0,0-7.7276,2.07L8.5454,24.5168A2,2,0,0,0,10.4775,26H19v2H4v2H19a2,2,0,0,0,2-2V26h3a4.0046,4.0046,0,0,0,3.98-4.4A4.1215,4.1215,0,0,0,23.8218,18ZM24,24H10.4775L6.0686,7.5181A2,2,0,1,1,9.9324,6.4829L13.5466,20H24a2,2,0,0,1,0,4Z\"\n })), children);\n});\nvar CabinCareAlert16 = /*#__PURE__*/React.forwardRef(function CabinCareAlert16(_ref156, ref) {\n var children = _ref156.children,\n rest = _objectWithoutProperties(_ref156, _excluded156);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path459 || (_path459 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 2H26V9H24z\"\n })), _rect4 || (_rect4 = /*#__PURE__*/React.createElement(\"rect\", {\n width: \"3\",\n height: \"3\",\n x: \"23.5\",\n y: \"11\",\n rx: \"1.5\"\n })), _path460 || (_path460 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.8218,18H15.083L11.8643,5.9653a4,4,0,0,0-7.7276,2.07L8.5454,24.5168A2,2,0,0,0,10.4775,26H19v2H4v2H19a2,2,0,0,0,2-2V26h3a4.0046,4.0046,0,0,0,3.98-4.4A4.1215,4.1215,0,0,0,23.8218,18ZM24,24H10.4775L6.0686,7.5181A2,2,0,1,1,9.9324,6.4829L13.5466,20H24a2,2,0,0,1,0,4Z\"\n })), children);\n});\nvar CabinCareAlt32 = /*#__PURE__*/React.forwardRef(function CabinCareAlt32(_ref157, ref) {\n var children = _ref157.children,\n rest = _objectWithoutProperties(_ref157, _excluded157);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path461 || (_path461 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 25V23H20.7676l-.8-3H27V18H19.4348l-2.469-9.2578-1.9316.5156 3.8017 14.2568A2.0037 2.0037 0 0020.77 25H22v3H10V25h6V23H6.7676l-.8-3H13V18H5.4348L2.9658 8.7422l-1.9316.5156L4.8359 23.5146A2.0037 2.0037 0 006.77 25H8v3H2v2H30V28H24V25zM27.303 2a2.6613 2.6613 0 00-1.9079.8059L25 3.2112l-.3951-.4053a2.6612 2.6612 0 00-3.8157 0 2.7991 2.7991 0 000 3.8963L25 11l4.2108-4.2978a2.7991 2.7991 0 000-3.8963A2.6613 2.6613 0 0027.303 2z\"\n })), children);\n});\nvar CabinCareAlt24 = /*#__PURE__*/React.forwardRef(function CabinCareAlt24(_ref158, ref) {\n var children = _ref158.children,\n rest = _objectWithoutProperties(_ref158, _excluded158);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path462 || (_path462 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 25V23H20.7676l-.8-3H27V18H19.4348l-2.469-9.2578-1.9316.5156 3.8017 14.2568A2.0037 2.0037 0 0020.77 25H22v3H10V25h6V23H6.7676l-.8-3H13V18H5.4348L2.9658 8.7422l-1.9316.5156L4.8359 23.5146A2.0037 2.0037 0 006.77 25H8v3H2v2H30V28H24V25zM27.303 2a2.6613 2.6613 0 00-1.9079.8059L25 3.2112l-.3951-.4053a2.6612 2.6612 0 00-3.8157 0 2.7991 2.7991 0 000 3.8963L25 11l4.2108-4.2978a2.7991 2.7991 0 000-3.8963A2.6613 2.6613 0 0027.303 2z\"\n })), children);\n});\nvar CabinCareAlt20 = /*#__PURE__*/React.forwardRef(function CabinCareAlt20(_ref159, ref) {\n var children = _ref159.children,\n rest = _objectWithoutProperties(_ref159, _excluded159);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path463 || (_path463 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 25V23H20.7676l-.8-3H27V18H19.4348l-2.469-9.2578-1.9316.5156 3.8017 14.2568A2.0037 2.0037 0 0020.77 25H22v3H10V25h6V23H6.7676l-.8-3H13V18H5.4348L2.9658 8.7422l-1.9316.5156L4.8359 23.5146A2.0037 2.0037 0 006.77 25H8v3H2v2H30V28H24V25zM27.303 2a2.6613 2.6613 0 00-1.9079.8059L25 3.2112l-.3951-.4053a2.6612 2.6612 0 00-3.8157 0 2.7991 2.7991 0 000 3.8963L25 11l4.2108-4.2978a2.7991 2.7991 0 000-3.8963A2.6613 2.6613 0 0027.303 2z\"\n })), children);\n});\nvar CabinCareAlt16 = /*#__PURE__*/React.forwardRef(function CabinCareAlt16(_ref160, ref) {\n var children = _ref160.children,\n rest = _objectWithoutProperties(_ref160, _excluded160);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path464 || (_path464 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 25V23H20.7676l-.8-3H27V18H19.4348l-2.469-9.2578-1.9316.5156 3.8017 14.2568A2.0037 2.0037 0 0020.77 25H22v3H10V25h6V23H6.7676l-.8-3H13V18H5.4348L2.9658 8.7422l-1.9316.5156L4.8359 23.5146A2.0037 2.0037 0 006.77 25H8v3H2v2H30V28H24V25zM27.303 2a2.6613 2.6613 0 00-1.9079.8059L25 3.2112l-.3951-.4053a2.6612 2.6612 0 00-3.8157 0 2.7991 2.7991 0 000 3.8963L25 11l4.2108-4.2978a2.7991 2.7991 0 000-3.8963A2.6613 2.6613 0 0027.303 2z\"\n })), children);\n});\nvar Cad32 = /*#__PURE__*/React.forwardRef(function Cad32(_ref161, ref) {\n var children = _ref161.children,\n rest = _objectWithoutProperties(_ref161, _excluded161);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path465 || (_path465 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 9H14a2 2 0 00-2 2V23h2V18h4v5h2V11A2 2 0 0018 9zm-4 7V11h4v5zM26 23H22V9h4a4 4 0 014 4v6A4 4 0 0126 23zm-2-2h2a2 2 0 002-2V13a2 2 0 00-2-2H24zM10 23H4a2 2 0 01-2-2V11A2 2 0 014 9h6v2H4V21h6z\"\n })), children);\n});\nvar Cad24 = /*#__PURE__*/React.forwardRef(function Cad24(_ref162, ref) {\n var children = _ref162.children,\n rest = _objectWithoutProperties(_ref162, _excluded162);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path466 || (_path466 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 9H14a2 2 0 00-2 2V23h2V18h4v5h2V11A2 2 0 0018 9zm-4 7V11h4v5zM26 23H22V9h4a4 4 0 014 4v6A4 4 0 0126 23zm-2-2h2a2 2 0 002-2V13a2 2 0 00-2-2H24zM10 23H4a2 2 0 01-2-2V11A2 2 0 014 9h6v2H4V21h6z\"\n })), children);\n});\nvar Cad20 = /*#__PURE__*/React.forwardRef(function Cad20(_ref163, ref) {\n var children = _ref163.children,\n rest = _objectWithoutProperties(_ref163, _excluded163);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path467 || (_path467 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 9H14a2 2 0 00-2 2V23h2V18h4v5h2V11A2 2 0 0018 9zm-4 7V11h4v5zM26 23H22V9h4a4 4 0 014 4v6A4 4 0 0126 23zm-2-2h2a2 2 0 002-2V13a2 2 0 00-2-2H24zM10 23H4a2 2 0 01-2-2V11A2 2 0 014 9h6v2H4V21h6z\"\n })), children);\n});\nvar Cad16 = /*#__PURE__*/React.forwardRef(function Cad16(_ref164, ref) {\n var children = _ref164.children,\n rest = _objectWithoutProperties(_ref164, _excluded164);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path468 || (_path468 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 9H14a2 2 0 00-2 2V23h2V18h4v5h2V11A2 2 0 0018 9zm-4 7V11h4v5zM26 23H22V9h4a4 4 0 014 4v6A4 4 0 0126 23zm-2-2h2a2 2 0 002-2V13a2 2 0 00-2-2H24zM10 23H4a2 2 0 01-2-2V11A2 2 0 014 9h6v2H4V21h6z\"\n })), children);\n});\nvar Cafe32 = /*#__PURE__*/React.forwardRef(function Cafe32(_ref165, ref) {\n var children = _ref165.children,\n rest = _objectWithoutProperties(_ref165, _excluded165);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path469 || (_path469 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 28H30V30H2zM24.5 11H8a2.002 2.002 0 00-2 2v8a5.0059 5.0059 0 005 5h8a5.0059 5.0059 0 005-5V20h.5a4.5 4.5 0 000-9zM22 21a3.0033 3.0033 0 01-3 3H11a3.0033 3.0033 0 01-3-3V13H22zm2.5-3H24V13h.5a2.5 2.5 0 010 5zM19 9H17V8.854a1.9883 1.9883 0 00-1.1055-1.7886L13.2109 5.7236A3.9788 3.9788 0 0111 2.146V1h2V2.146a1.9892 1.9892 0 001.1055 1.7886l2.6836 1.3418A3.9792 3.9792 0 0119 8.854z\"\n })), children);\n});\nvar Cafe24 = /*#__PURE__*/React.forwardRef(function Cafe24(_ref166, ref) {\n var children = _ref166.children,\n rest = _objectWithoutProperties(_ref166, _excluded166);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path470 || (_path470 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 28H30V30H2zM24.5 11H8a2.002 2.002 0 00-2 2v8a5.0059 5.0059 0 005 5h8a5.0059 5.0059 0 005-5V20h.5a4.5 4.5 0 000-9zM22 21a3.0033 3.0033 0 01-3 3H11a3.0033 3.0033 0 01-3-3V13H22zm2.5-3H24V13h.5a2.5 2.5 0 010 5zM19 9H17V8.854a1.9883 1.9883 0 00-1.1055-1.7886L13.2109 5.7236A3.9788 3.9788 0 0111 2.146V1h2V2.146a1.9892 1.9892 0 001.1055 1.7886l2.6836 1.3418A3.9792 3.9792 0 0119 8.854z\"\n })), children);\n});\nvar Cafe20 = /*#__PURE__*/React.forwardRef(function Cafe20(_ref167, ref) {\n var children = _ref167.children,\n rest = _objectWithoutProperties(_ref167, _excluded167);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path471 || (_path471 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 28H30V30H2zM24.5 11H8a2.002 2.002 0 00-2 2v8a5.0059 5.0059 0 005 5h8a5.0059 5.0059 0 005-5V20h.5a4.5 4.5 0 000-9zM22 21a3.0033 3.0033 0 01-3 3H11a3.0033 3.0033 0 01-3-3V13H22zm2.5-3H24V13h.5a2.5 2.5 0 010 5zM19 9H17V8.854a1.9883 1.9883 0 00-1.1055-1.7886L13.2109 5.7236A3.9788 3.9788 0 0111 2.146V1h2V2.146a1.9892 1.9892 0 001.1055 1.7886l2.6836 1.3418A3.9792 3.9792 0 0119 8.854z\"\n })), children);\n});\nvar Cafe16 = /*#__PURE__*/React.forwardRef(function Cafe16(_ref168, ref) {\n var children = _ref168.children,\n rest = _objectWithoutProperties(_ref168, _excluded168);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path472 || (_path472 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 28H30V30H2zM24.5 11H8a2.002 2.002 0 00-2 2v8a5.0059 5.0059 0 005 5h8a5.0059 5.0059 0 005-5V20h.5a4.5 4.5 0 000-9zM22 21a3.0033 3.0033 0 01-3 3H11a3.0033 3.0033 0 01-3-3V13H22zm2.5-3H24V13h.5a2.5 2.5 0 010 5zM19 9H17V8.854a1.9883 1.9883 0 00-1.1055-1.7886L13.2109 5.7236A3.9788 3.9788 0 0111 2.146V1h2V2.146a1.9892 1.9892 0 001.1055 1.7886l2.6836 1.3418A3.9792 3.9792 0 0119 8.854z\"\n })), children);\n});\nvar Calculation32 = /*#__PURE__*/React.forwardRef(function Calculation32(_ref169, ref) {\n var children = _ref169.children,\n rest = _objectWithoutProperties(_ref169, _excluded169);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path473 || (_path473 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14 8L10 8 10 4 8 4 8 8 4 8 4 10 8 10 8 14 10 14 10 10 14 10 14 8zM4 19H14V21H4zM4 24H14V26H4zM18 8H28V10H18zM24.41 22L28 18.41 26.59 17 23 20.59 19.41 17 18 18.41 21.59 22 18 25.59 19.41 27 23 23.41 26.59 27 28 25.59 24.41 22z\"\n })), children);\n});\nvar Calculation24 = /*#__PURE__*/React.forwardRef(function Calculation24(_ref170, ref) {\n var children = _ref170.children,\n rest = _objectWithoutProperties(_ref170, _excluded170);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path474 || (_path474 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14 8L10 8 10 4 8 4 8 8 4 8 4 10 8 10 8 14 10 14 10 10 14 10 14 8zM4 19H14V21H4zM4 24H14V26H4zM18 8H28V10H18zM24.41 22L28 18.41 26.59 17 23 20.59 19.41 17 18 18.41 21.59 22 18 25.59 19.41 27 23 23.41 26.59 27 28 25.59 24.41 22z\"\n })), children);\n});\nvar Calculation20 = /*#__PURE__*/React.forwardRef(function Calculation20(_ref171, ref) {\n var children = _ref171.children,\n rest = _objectWithoutProperties(_ref171, _excluded171);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path475 || (_path475 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14 8L10 8 10 4 8 4 8 8 4 8 4 10 8 10 8 14 10 14 10 10 14 10 14 8zM4 19H14V21H4zM4 24H14V26H4zM18 8H28V10H18zM24.41 22L28 18.41 26.59 17 23 20.59 19.41 17 18 18.41 21.59 22 18 25.59 19.41 27 23 23.41 26.59 27 28 25.59 24.41 22z\"\n })), children);\n});\nvar Calculation16 = /*#__PURE__*/React.forwardRef(function Calculation16(_ref172, ref) {\n var children = _ref172.children,\n rest = _objectWithoutProperties(_ref172, _excluded172);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path476 || (_path476 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14 8L10 8 10 4 8 4 8 8 4 8 4 10 8 10 8 14 10 14 10 10 14 10 14 8zM4 19H14V21H4zM4 24H14V26H4zM18 8H28V10H18zM24.41 22L28 18.41 26.59 17 23 20.59 19.41 17 18 18.41 21.59 22 18 25.59 19.41 27 23 23.41 26.59 27 28 25.59 24.41 22z\"\n })), children);\n});\nvar CalculationAlt32 = /*#__PURE__*/React.forwardRef(function CalculationAlt32(_ref173, ref) {\n var children = _ref173.children,\n rest = _objectWithoutProperties(_ref173, _excluded173);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path477 || (_path477 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 13H25V15H19zM13 21L11 21 11 19 9 19 9 21 7 21 7 23 9 23 9 25 11 25 11 23 13 23 13 21zM7 9H13V11H7zM19 17H25V19H19z\"\n })), _path478 || (_path478 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27,3H5A2.0023,2.0023,0,0,0,3,5V27a2.0023,2.0023,0,0,0,2,2H27a2.0023,2.0023,0,0,0,2-2V5A2.0023,2.0023,0,0,0,27,3ZM15,5V15H5V5ZM5,17H15V27H5ZM17,27V5H27V27Z\"\n })), children);\n});\nvar CalculationAlt24 = /*#__PURE__*/React.forwardRef(function CalculationAlt24(_ref174, ref) {\n var children = _ref174.children,\n rest = _objectWithoutProperties(_ref174, _excluded174);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path479 || (_path479 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 13H25V15H19zM13 21L11 21 11 19 9 19 9 21 7 21 7 23 9 23 9 25 11 25 11 23 13 23 13 21zM7 9H13V11H7zM19 17H25V19H19z\"\n })), _path480 || (_path480 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27,3H5A2.0023,2.0023,0,0,0,3,5V27a2.0023,2.0023,0,0,0,2,2H27a2.0023,2.0023,0,0,0,2-2V5A2.0023,2.0023,0,0,0,27,3ZM15,5V15H5V5ZM5,17H15V27H5ZM17,27V5H27V27Z\"\n })), children);\n});\nvar CalculationAlt20 = /*#__PURE__*/React.forwardRef(function CalculationAlt20(_ref175, ref) {\n var children = _ref175.children,\n rest = _objectWithoutProperties(_ref175, _excluded175);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path481 || (_path481 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 13H25V15H19zM13 21L11 21 11 19 9 19 9 21 7 21 7 23 9 23 9 25 11 25 11 23 13 23 13 21zM7 9H13V11H7zM19 17H25V19H19z\"\n })), _path482 || (_path482 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27,3H5A2.0023,2.0023,0,0,0,3,5V27a2.0023,2.0023,0,0,0,2,2H27a2.0023,2.0023,0,0,0,2-2V5A2.0023,2.0023,0,0,0,27,3ZM15,5V15H5V5ZM5,17H15V27H5ZM17,27V5H27V27Z\"\n })), children);\n});\nvar CalculationAlt16 = /*#__PURE__*/React.forwardRef(function CalculationAlt16(_ref176, ref) {\n var children = _ref176.children,\n rest = _objectWithoutProperties(_ref176, _excluded176);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path483 || (_path483 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 13H25V15H19zM13 21L11 21 11 19 9 19 9 21 7 21 7 23 9 23 9 25 11 25 11 23 13 23 13 21zM7 9H13V11H7zM19 17H25V19H19z\"\n })), _path484 || (_path484 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27,3H5A2.0023,2.0023,0,0,0,3,5V27a2.0023,2.0023,0,0,0,2,2H27a2.0023,2.0023,0,0,0,2-2V5A2.0023,2.0023,0,0,0,27,3ZM15,5V15H5V5ZM5,17H15V27H5ZM17,27V5H27V27Z\"\n })), children);\n});\nvar Calculator32 = /*#__PURE__*/React.forwardRef(function Calculator32(_ref177, ref) {\n var children = _ref177.children,\n rest = _objectWithoutProperties(_ref177, _excluded177);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path485 || (_path485 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,4V28H6V4H26m0-2H6A2,2,0,0,0,4,4V28a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V4A2,2,0,0,0,26,2Z\"\n })), _path486 || (_path486 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 23H11V25H9zM21 23H23V25H21zM9 18H11V20H9zM21 18H23V20H21zM9 13H11V15H9zM15 23H17V25H15zM15 18H17V20H15zM15 13H17V15H15zM21 13H23V15H21zM9 7H23V10H9z\"\n })), children);\n});\nvar Calculator24 = /*#__PURE__*/React.forwardRef(function Calculator24(_ref178, ref) {\n var children = _ref178.children,\n rest = _objectWithoutProperties(_ref178, _excluded178);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path487 || (_path487 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,4V28H6V4H26m0-2H6A2,2,0,0,0,4,4V28a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V4A2,2,0,0,0,26,2Z\"\n })), _path488 || (_path488 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 23H11V25H9zM21 23H23V25H21zM9 18H11V20H9zM21 18H23V20H21zM9 13H11V15H9zM15 23H17V25H15zM15 18H17V20H15zM15 13H17V15H15zM21 13H23V15H21zM9 7H23V10H9z\"\n })), children);\n});\nvar Calculator20 = /*#__PURE__*/React.forwardRef(function Calculator20(_ref179, ref) {\n var children = _ref179.children,\n rest = _objectWithoutProperties(_ref179, _excluded179);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path489 || (_path489 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,4V28H6V4H26m0-2H6A2,2,0,0,0,4,4V28a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V4A2,2,0,0,0,26,2Z\"\n })), _path490 || (_path490 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 23H11V25H9zM21 23H23V25H21zM9 18H11V20H9zM21 18H23V20H21zM9 13H11V15H9zM15 23H17V25H15zM15 18H17V20H15zM15 13H17V15H15zM21 13H23V15H21zM9 7H23V10H9z\"\n })), children);\n});\nvar Calculator16 = /*#__PURE__*/React.forwardRef(function Calculator16(_ref180, ref) {\n var children = _ref180.children,\n rest = _objectWithoutProperties(_ref180, _excluded180);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path491 || (_path491 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,4V28H6V4H26m0-2H6A2,2,0,0,0,4,4V28a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V4A2,2,0,0,0,26,2Z\"\n })), _path492 || (_path492 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 23H11V25H9zM21 23H23V25H21zM9 18H11V20H9zM21 18H23V20H21zM9 13H11V15H9zM15 23H17V25H15zM15 18H17V20H15zM15 13H17V15H15zM21 13H23V15H21zM9 7H23V10H9z\"\n })), children);\n});\nvar CalculatorCheck32 = /*#__PURE__*/React.forwardRef(function CalculatorCheck32(_ref181, ref) {\n var children = _ref181.children,\n rest = _objectWithoutProperties(_ref181, _excluded181);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path493 || (_path493 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 26.59L21.41 24 20 25.41 24 29.41 31 22.41 29.59 21 24 26.59zM15 23H17V25H15zM9 23H11V25H9zM21 18H23V20H21zM15 18H17V20H15zM9 18H11V20H9zM21 13H23V15H21zM15 13H17V15H15zM9 13H11V15H9zM9 7H23V10H9z\"\n })), _path494 || (_path494 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,30H6.0046A2.007,2.007,0,0,1,4,27.9951V3.9961A1.9984,1.9984,0,0,1,5.9961,2H26.0037A1.9985,1.9985,0,0,1,28,3.9961V18H26V4H6V28H17Z\"\n })), children);\n});\nvar CalculatorCheck24 = /*#__PURE__*/React.forwardRef(function CalculatorCheck24(_ref182, ref) {\n var children = _ref182.children,\n rest = _objectWithoutProperties(_ref182, _excluded182);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path495 || (_path495 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 26.59L21.41 24 20 25.41 24 29.41 31 22.41 29.59 21 24 26.59zM15 23H17V25H15zM9 23H11V25H9zM21 18H23V20H21zM15 18H17V20H15zM9 18H11V20H9zM21 13H23V15H21zM15 13H17V15H15zM9 13H11V15H9zM9 7H23V10H9z\"\n })), _path496 || (_path496 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,30H6.0046A2.007,2.007,0,0,1,4,27.9951V3.9961A1.9984,1.9984,0,0,1,5.9961,2H26.0037A1.9985,1.9985,0,0,1,28,3.9961V18H26V4H6V28H17Z\"\n })), children);\n});\nvar CalculatorCheck20 = /*#__PURE__*/React.forwardRef(function CalculatorCheck20(_ref183, ref) {\n var children = _ref183.children,\n rest = _objectWithoutProperties(_ref183, _excluded183);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path497 || (_path497 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 26.59L21.41 24 20 25.41 24 29.41 31 22.41 29.59 21 24 26.59zM15 23H17V25H15zM9 23H11V25H9zM21 18H23V20H21zM15 18H17V20H15zM9 18H11V20H9zM21 13H23V15H21zM15 13H17V15H15zM9 13H11V15H9zM9 7H23V10H9z\"\n })), _path498 || (_path498 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,30H6.0046A2.007,2.007,0,0,1,4,27.9951V3.9961A1.9984,1.9984,0,0,1,5.9961,2H26.0037A1.9985,1.9985,0,0,1,28,3.9961V18H26V4H6V28H17Z\"\n })), children);\n});\nvar CalculatorCheck16 = /*#__PURE__*/React.forwardRef(function CalculatorCheck16(_ref184, ref) {\n var children = _ref184.children,\n rest = _objectWithoutProperties(_ref184, _excluded184);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path499 || (_path499 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 26.59L21.41 24 20 25.41 24 29.41 31 22.41 29.59 21 24 26.59zM15 23H17V25H15zM9 23H11V25H9zM21 18H23V20H21zM15 18H17V20H15zM9 18H11V20H9zM21 13H23V15H21zM15 13H17V15H15zM9 13H11V15H9zM9 7H23V10H9z\"\n })), _path500 || (_path500 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,30H6.0046A2.007,2.007,0,0,1,4,27.9951V3.9961A1.9984,1.9984,0,0,1,5.9961,2H26.0037A1.9985,1.9985,0,0,1,28,3.9961V18H26V4H6V28H17Z\"\n })), children);\n});\nvar Calendar32 = /*#__PURE__*/React.forwardRef(function Calendar32(_ref185, ref) {\n var children = _ref185.children,\n rest = _objectWithoutProperties(_ref185, _excluded185);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path501 || (_path501 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,4h-4V2h-2v2h-8V2h-2v2H6C4.9,4,4,4.9,4,6v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V6C28,4.9,27.1,4,26,4z M26,26H6V12h20\\tV26z M26,10H6V6h4v2h2V6h8v2h2V6h4V10z\"\n })), children);\n});\nvar Calendar24 = /*#__PURE__*/React.forwardRef(function Calendar24(_ref186, ref) {\n var children = _ref186.children,\n rest = _objectWithoutProperties(_ref186, _excluded186);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path502 || (_path502 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,4h-4V2h-2v2h-8V2h-2v2H6C4.9,4,4,4.9,4,6v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V6C28,4.9,27.1,4,26,4z M26,26H6V12h20\\tV26z M26,10H6V6h4v2h2V6h8v2h2V6h4V10z\"\n })), children);\n});\nvar Calendar20 = /*#__PURE__*/React.forwardRef(function Calendar20(_ref187, ref) {\n var children = _ref187.children,\n rest = _objectWithoutProperties(_ref187, _excluded187);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path503 || (_path503 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,4h-4V2h-2v2h-8V2h-2v2H6C4.9,4,4,4.9,4,6v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V6C28,4.9,27.1,4,26,4z M26,26H6V12h20\\tV26z M26,10H6V6h4v2h2V6h8v2h2V6h4V10z\"\n })), children);\n});\nvar Calendar16 = /*#__PURE__*/React.forwardRef(function Calendar16(_ref188, ref) {\n var children = _ref188.children,\n rest = _objectWithoutProperties(_ref188, _excluded188);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path504 || (_path504 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,4h-4V2h-2v2h-8V2h-2v2H6C4.9,4,4,4.9,4,6v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V6C28,4.9,27.1,4,26,4z M26,26H6V12h20\\tV26z M26,10H6V6h4v2h2V6h8v2h2V6h4V10z\"\n })), children);\n});\nvar CalendarHeatMap32 = /*#__PURE__*/React.forwardRef(function CalendarHeatMap32(_ref189, ref) {\n var children = _ref189.children,\n rest = _objectWithoutProperties(_ref189, _excluded189);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path505 || (_path505 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,4H22V2H20V4H12V2H10V4H6A2.0025,2.0025,0,0,0,4,6V26a2.0025,2.0025,0,0,0,2,2H26a2.0025,2.0025,0,0,0,2-2V6A2.0025,2.0025,0,0,0,26,4ZM6,6h4V8h2V6h8V8h2V6h4l0,4H6Zm0,6h5v6H6ZM19,26H13V20h6Zm0-8H13V12h6Zm2,8V20h5l.0012,6Z\"\n })), children);\n});\nvar CalendarHeatMap24 = /*#__PURE__*/React.forwardRef(function CalendarHeatMap24(_ref190, ref) {\n var children = _ref190.children,\n rest = _objectWithoutProperties(_ref190, _excluded190);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path506 || (_path506 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,4H22V2H20V4H12V2H10V4H6A2.0025,2.0025,0,0,0,4,6V26a2.0025,2.0025,0,0,0,2,2H26a2.0025,2.0025,0,0,0,2-2V6A2.0025,2.0025,0,0,0,26,4ZM6,6h4V8h2V6h8V8h2V6h4l0,4H6Zm0,6h5v6H6ZM19,26H13V20h6Zm0-8H13V12h6Zm2,8V20h5l.0012,6Z\"\n })), children);\n});\nvar CalendarHeatMap20 = /*#__PURE__*/React.forwardRef(function CalendarHeatMap20(_ref191, ref) {\n var children = _ref191.children,\n rest = _objectWithoutProperties(_ref191, _excluded191);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path507 || (_path507 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,4H22V2H20V4H12V2H10V4H6A2.0025,2.0025,0,0,0,4,6V26a2.0025,2.0025,0,0,0,2,2H26a2.0025,2.0025,0,0,0,2-2V6A2.0025,2.0025,0,0,0,26,4ZM6,6h4V8h2V6h8V8h2V6h4l0,4H6Zm0,6h5v6H6ZM19,26H13V20h6Zm0-8H13V12h6Zm2,8V20h5l.0012,6Z\"\n })), children);\n});\nvar CalendarHeatMap16 = /*#__PURE__*/React.forwardRef(function CalendarHeatMap16(_ref192, ref) {\n var children = _ref192.children,\n rest = _objectWithoutProperties(_ref192, _excluded192);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path508 || (_path508 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,4H22V2H20V4H12V2H10V4H6A2.0025,2.0025,0,0,0,4,6V26a2.0025,2.0025,0,0,0,2,2H26a2.0025,2.0025,0,0,0,2-2V6A2.0025,2.0025,0,0,0,26,4ZM6,6h4V8h2V6h8V8h2V6h4l0,4H6Zm0,6h5v6H6ZM19,26H13V20h6Zm0-8H13V12h6Zm2,8V20h5l.0012,6Z\"\n })), children);\n});\nvar CalendarSettings32 = /*#__PURE__*/React.forwardRef(function CalendarSettings32(_ref193, ref) {\n var children = _ref193.children,\n rest = _objectWithoutProperties(_ref193, _excluded193);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path509 || (_path509 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,23V21H27.91a5.9592,5.9592,0,0,0-1.0244-2.4707L28.364,17.05,26.95,15.6362l-1.4788,1.4785A5.9584,5.9584,0,0,0,23,16.09V14H21v2.09a5.9584,5.9584,0,0,0-2.4709,1.0244L17.05,15.6362,15.636,17.05l1.4787,1.479A5.9618,5.9618,0,0,0,16.09,21H14v2h2.09a5.9618,5.9618,0,0,0,1.0244,2.4707L15.636,26.95,17.05,28.3638l1.4788-1.4785A5.9584,5.9584,0,0,0,21,27.91V30h2V27.91a5.9584,5.9584,0,0,0,2.4709-1.0244L26.95,28.3638,28.364,26.95l-1.4787-1.479A5.9592,5.9592,0,0,0,27.91,23Zm-8,3a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,22,26Z\"\n })), _path510 || (_path510 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z\"\n })), children);\n});\nvar CalendarSettings24 = /*#__PURE__*/React.forwardRef(function CalendarSettings24(_ref194, ref) {\n var children = _ref194.children,\n rest = _objectWithoutProperties(_ref194, _excluded194);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path511 || (_path511 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,23V21H27.91a5.9592,5.9592,0,0,0-1.0244-2.4707L28.364,17.05,26.95,15.6362l-1.4788,1.4785A5.9584,5.9584,0,0,0,23,16.09V14H21v2.09a5.9584,5.9584,0,0,0-2.4709,1.0244L17.05,15.6362,15.636,17.05l1.4787,1.479A5.9618,5.9618,0,0,0,16.09,21H14v2h2.09a5.9618,5.9618,0,0,0,1.0244,2.4707L15.636,26.95,17.05,28.3638l1.4788-1.4785A5.9584,5.9584,0,0,0,21,27.91V30h2V27.91a5.9584,5.9584,0,0,0,2.4709-1.0244L26.95,28.3638,28.364,26.95l-1.4787-1.479A5.9592,5.9592,0,0,0,27.91,23Zm-8,3a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,22,26Z\"\n })), _path512 || (_path512 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z\"\n })), children);\n});\nvar CalendarSettings20 = /*#__PURE__*/React.forwardRef(function CalendarSettings20(_ref195, ref) {\n var children = _ref195.children,\n rest = _objectWithoutProperties(_ref195, _excluded195);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path513 || (_path513 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,23V21H27.91a5.9592,5.9592,0,0,0-1.0244-2.4707L28.364,17.05,26.95,15.6362l-1.4788,1.4785A5.9584,5.9584,0,0,0,23,16.09V14H21v2.09a5.9584,5.9584,0,0,0-2.4709,1.0244L17.05,15.6362,15.636,17.05l1.4787,1.479A5.9618,5.9618,0,0,0,16.09,21H14v2h2.09a5.9618,5.9618,0,0,0,1.0244,2.4707L15.636,26.95,17.05,28.3638l1.4788-1.4785A5.9584,5.9584,0,0,0,21,27.91V30h2V27.91a5.9584,5.9584,0,0,0,2.4709-1.0244L26.95,28.3638,28.364,26.95l-1.4787-1.479A5.9592,5.9592,0,0,0,27.91,23Zm-8,3a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,22,26Z\"\n })), _path514 || (_path514 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z\"\n })), children);\n});\nvar CalendarSettings16 = /*#__PURE__*/React.forwardRef(function CalendarSettings16(_ref196, ref) {\n var children = _ref196.children,\n rest = _objectWithoutProperties(_ref196, _excluded196);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path515 || (_path515 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,23V21H27.91a5.9592,5.9592,0,0,0-1.0244-2.4707L28.364,17.05,26.95,15.6362l-1.4788,1.4785A5.9584,5.9584,0,0,0,23,16.09V14H21v2.09a5.9584,5.9584,0,0,0-2.4709,1.0244L17.05,15.6362,15.636,17.05l1.4787,1.479A5.9618,5.9618,0,0,0,16.09,21H14v2h2.09a5.9618,5.9618,0,0,0,1.0244,2.4707L15.636,26.95,17.05,28.3638l1.4788-1.4785A5.9584,5.9584,0,0,0,21,27.91V30h2V27.91a5.9584,5.9584,0,0,0,2.4709-1.0244L26.95,28.3638,28.364,26.95l-1.4787-1.479A5.9592,5.9592,0,0,0,27.91,23Zm-8,3a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,22,26Z\"\n })), _path516 || (_path516 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z\"\n })), children);\n});\nvar CalendarTools32 = /*#__PURE__*/React.forwardRef(function CalendarTools32(_ref197, ref) {\n var children = _ref197.children,\n rest = _objectWithoutProperties(_ref197, _excluded197);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path517 || (_path517 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.981,24.4333A3.9549,3.9549,0,0,0,26,25a4.0045,4.0045,0,0,0,4-4,3.9427,3.9427,0,0,0-.1492-1.0228l-2.4367,2.4369-.0005-.0005a1.9991,1.9991,0,1,1-2.8272-2.8272l-.0005-.0005,2.4368-2.4368A3.95,3.95,0,0,0,26,17a4.0045,4.0045,0,0,0-4,4,3.9544,3.9544,0,0,0,.5669,2.0191L17,28.586,18.4141,30Z\"\n })), _path518 || (_path518 = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n d: \"M26,4H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h8V26H6V6h4V8h2V6h8V8h2V6h4v8h2V6A2,2,0,0,0,26,4Z\"\n })), children);\n});\nvar CalendarTools24 = /*#__PURE__*/React.forwardRef(function CalendarTools24(_ref198, ref) {\n var children = _ref198.children,\n rest = _objectWithoutProperties(_ref198, _excluded198);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path519 || (_path519 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.981,24.4333A3.9549,3.9549,0,0,0,26,25a4.0045,4.0045,0,0,0,4-4,3.9427,3.9427,0,0,0-.1492-1.0228l-2.4367,2.4369-.0005-.0005a1.9991,1.9991,0,1,1-2.8272-2.8272l-.0005-.0005,2.4368-2.4368A3.95,3.95,0,0,0,26,17a4.0045,4.0045,0,0,0-4,4,3.9544,3.9544,0,0,0,.5669,2.0191L17,28.586,18.4141,30Z\"\n })), _path520 || (_path520 = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n d: \"M26,4H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h8V26H6V6h4V8h2V6h8V8h2V6h4v8h2V6A2,2,0,0,0,26,4Z\"\n })), children);\n});\nvar CalendarTools20 = /*#__PURE__*/React.forwardRef(function CalendarTools20(_ref199, ref) {\n var children = _ref199.children,\n rest = _objectWithoutProperties(_ref199, _excluded199);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path521 || (_path521 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.981,24.4333A3.9549,3.9549,0,0,0,26,25a4.0045,4.0045,0,0,0,4-4,3.9427,3.9427,0,0,0-.1492-1.0228l-2.4367,2.4369-.0005-.0005a1.9991,1.9991,0,1,1-2.8272-2.8272l-.0005-.0005,2.4368-2.4368A3.95,3.95,0,0,0,26,17a4.0045,4.0045,0,0,0-4,4,3.9544,3.9544,0,0,0,.5669,2.0191L17,28.586,18.4141,30Z\"\n })), _path522 || (_path522 = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n d: \"M26,4H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h8V26H6V6h4V8h2V6h8V8h2V6h4v8h2V6A2,2,0,0,0,26,4Z\"\n })), children);\n});\nvar CalendarTools16 = /*#__PURE__*/React.forwardRef(function CalendarTools16(_ref200, ref) {\n var children = _ref200.children,\n rest = _objectWithoutProperties(_ref200, _excluded200);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path523 || (_path523 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.981,24.4333A3.9549,3.9549,0,0,0,26,25a4.0045,4.0045,0,0,0,4-4,3.9427,3.9427,0,0,0-.1492-1.0228l-2.4367,2.4369-.0005-.0005a1.9991,1.9991,0,1,1-2.8272-2.8272l-.0005-.0005,2.4368-2.4368A3.95,3.95,0,0,0,26,17a4.0045,4.0045,0,0,0-4,4,3.9544,3.9544,0,0,0,.5669,2.0191L17,28.586,18.4141,30Z\"\n })), _path524 || (_path524 = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n d: \"M26,4H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h8V26H6V6h4V8h2V6h8V8h2V6h4v8h2V6A2,2,0,0,0,26,4Z\"\n })), children);\n});\nvar Calibrate32 = /*#__PURE__*/React.forwardRef(function Calibrate32(_ref201, ref) {\n var children = _ref201.children,\n rest = _objectWithoutProperties(_ref201, _excluded201);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path525 || (_path525 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.83,21.17,25,17.37l.67-.67a1,1,0,0,0,0-1.41l-6-6a1,1,0,0,0-1.41,0h0l-.79.79L10.71,3.29a1,1,0,0,0-1.41,0h0l-4,4-.12.15-4,6a1,1,0,0,0,.12,1.26l3,3a1,1,0,0,0,1.42,0L10,13.41l2.09,2.09-4.8,4.79a1,1,0,0,0,0,1.41l2,2A1,1,0,0,0,10,24a1,1,0,0,0,.52-.15l4.33-2.6,2.44,2.45a1,1,0,0,0,1.41,0h0l.67-.7,3.79,3.83a4,4,0,0,0,5.66-5.66ZM10,10.58l-5,5L3.29,13.87,6.78,8.63,10,5.41l6.09,6.09L13.5,14.08Zm8,11-2.84-2.84-5,3L9.42,21,19,11.41,23.59,16Zm9.42,3.83a2,2,0,0,1-2.83,0h0l-3.8-3.79,2.83-2.83,3.8,3.79a2,2,0,0,1,0,2.83Z\"\n })), children);\n});\nvar Calibrate24 = /*#__PURE__*/React.forwardRef(function Calibrate24(_ref202, ref) {\n var children = _ref202.children,\n rest = _objectWithoutProperties(_ref202, _excluded202);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path526 || (_path526 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.83,21.17,25,17.37l.67-.67a1,1,0,0,0,0-1.41l-6-6a1,1,0,0,0-1.41,0h0l-.79.79L10.71,3.29a1,1,0,0,0-1.41,0h0l-4,4-.12.15-4,6a1,1,0,0,0,.12,1.26l3,3a1,1,0,0,0,1.42,0L10,13.41l2.09,2.09-4.8,4.79a1,1,0,0,0,0,1.41l2,2A1,1,0,0,0,10,24a1,1,0,0,0,.52-.15l4.33-2.6,2.44,2.45a1,1,0,0,0,1.41,0h0l.67-.7,3.79,3.83a4,4,0,0,0,5.66-5.66ZM10,10.58l-5,5L3.29,13.87,6.78,8.63,10,5.41l6.09,6.09L13.5,14.08Zm8,11-2.84-2.84-5,3L9.42,21,19,11.41,23.59,16Zm9.42,3.83a2,2,0,0,1-2.83,0h0l-3.8-3.79,2.83-2.83,3.8,3.79a2,2,0,0,1,0,2.83Z\"\n })), children);\n});\nvar Calibrate20 = /*#__PURE__*/React.forwardRef(function Calibrate20(_ref203, ref) {\n var children = _ref203.children,\n rest = _objectWithoutProperties(_ref203, _excluded203);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path527 || (_path527 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.83,21.17,25,17.37l.67-.67a1,1,0,0,0,0-1.41l-6-6a1,1,0,0,0-1.41,0h0l-.79.79L10.71,3.29a1,1,0,0,0-1.41,0h0l-4,4-.12.15-4,6a1,1,0,0,0,.12,1.26l3,3a1,1,0,0,0,1.42,0L10,13.41l2.09,2.09-4.8,4.79a1,1,0,0,0,0,1.41l2,2A1,1,0,0,0,10,24a1,1,0,0,0,.52-.15l4.33-2.6,2.44,2.45a1,1,0,0,0,1.41,0h0l.67-.7,3.79,3.83a4,4,0,0,0,5.66-5.66ZM10,10.58l-5,5L3.29,13.87,6.78,8.63,10,5.41l6.09,6.09L13.5,14.08Zm8,11-2.84-2.84-5,3L9.42,21,19,11.41,23.59,16Zm9.42,3.83a2,2,0,0,1-2.83,0h0l-3.8-3.79,2.83-2.83,3.8,3.79a2,2,0,0,1,0,2.83Z\"\n })), children);\n});\nvar Calibrate16 = /*#__PURE__*/React.forwardRef(function Calibrate16(_ref204, ref) {\n var children = _ref204.children,\n rest = _objectWithoutProperties(_ref204, _excluded204);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path528 || (_path528 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.83,21.17,25,17.37l.67-.67a1,1,0,0,0,0-1.41l-6-6a1,1,0,0,0-1.41,0h0l-.79.79L10.71,3.29a1,1,0,0,0-1.41,0h0l-4,4-.12.15-4,6a1,1,0,0,0,.12,1.26l3,3a1,1,0,0,0,1.42,0L10,13.41l2.09,2.09-4.8,4.79a1,1,0,0,0,0,1.41l2,2A1,1,0,0,0,10,24a1,1,0,0,0,.52-.15l4.33-2.6,2.44,2.45a1,1,0,0,0,1.41,0h0l.67-.7,3.79,3.83a4,4,0,0,0,5.66-5.66ZM10,10.58l-5,5L3.29,13.87,6.78,8.63,10,5.41l6.09,6.09L13.5,14.08Zm8,11-2.84-2.84-5,3L9.42,21,19,11.41,23.59,16Zm9.42,3.83a2,2,0,0,1-2.83,0h0l-3.8-3.79,2.83-2.83,3.8,3.79a2,2,0,0,1,0,2.83Z\"\n })), children);\n});\nvar Camera32 = /*#__PURE__*/React.forwardRef(function Camera32(_ref205, ref) {\n var children = _ref205.children,\n rest = _objectWithoutProperties(_ref205, _excluded205);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path529 || (_path529 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29,26H3a1,1,0,0,1-1-1V8A1,1,0,0,1,3,7H9.46l1.71-2.55A1,1,0,0,1,12,4h8a1,1,0,0,1,.83.45L22.54,7H29a1,1,0,0,1,1,1V25A1,1,0,0,1,29,26ZM4,24H28V9H22a1,1,0,0,1-.83-.45L19.46,6H12.54L10.83,8.55A1,1,0,0,1,10,9H4Z\"\n })), _path530 || (_path530 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,22a6,6,0,1,1,6-6A6,6,0,0,1,16,22Zm0-10a4,4,0,1,0,4,4A4,4,0,0,0,16,12Z\"\n })), children);\n});\nvar Camera24 = /*#__PURE__*/React.forwardRef(function Camera24(_ref206, ref) {\n var children = _ref206.children,\n rest = _objectWithoutProperties(_ref206, _excluded206);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path531 || (_path531 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29,26H3a1,1,0,0,1-1-1V8A1,1,0,0,1,3,7H9.46l1.71-2.55A1,1,0,0,1,12,4h8a1,1,0,0,1,.83.45L22.54,7H29a1,1,0,0,1,1,1V25A1,1,0,0,1,29,26ZM4,24H28V9H22a1,1,0,0,1-.83-.45L19.46,6H12.54L10.83,8.55A1,1,0,0,1,10,9H4Z\"\n })), _path532 || (_path532 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,22a6,6,0,1,1,6-6A6,6,0,0,1,16,22Zm0-10a4,4,0,1,0,4,4A4,4,0,0,0,16,12Z\"\n })), children);\n});\nvar Camera20 = /*#__PURE__*/React.forwardRef(function Camera20(_ref207, ref) {\n var children = _ref207.children,\n rest = _objectWithoutProperties(_ref207, _excluded207);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path533 || (_path533 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29,26H3a1,1,0,0,1-1-1V8A1,1,0,0,1,3,7H9.46l1.71-2.55A1,1,0,0,1,12,4h8a1,1,0,0,1,.83.45L22.54,7H29a1,1,0,0,1,1,1V25A1,1,0,0,1,29,26ZM4,24H28V9H22a1,1,0,0,1-.83-.45L19.46,6H12.54L10.83,8.55A1,1,0,0,1,10,9H4Z\"\n })), _path534 || (_path534 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,22a6,6,0,1,1,6-6A6,6,0,0,1,16,22Zm0-10a4,4,0,1,0,4,4A4,4,0,0,0,16,12Z\"\n })), children);\n});\nvar Camera16 = /*#__PURE__*/React.forwardRef(function Camera16(_ref208, ref) {\n var children = _ref208.children,\n rest = _objectWithoutProperties(_ref208, _excluded208);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path535 || (_path535 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29,26H3a1,1,0,0,1-1-1V8A1,1,0,0,1,3,7H9.46l1.71-2.55A1,1,0,0,1,12,4h8a1,1,0,0,1,.83.45L22.54,7H29a1,1,0,0,1,1,1V25A1,1,0,0,1,29,26ZM4,24H28V9H22a1,1,0,0,1-.83-.45L19.46,6H12.54L10.83,8.55A1,1,0,0,1,10,9H4Z\"\n })), _path536 || (_path536 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,22a6,6,0,1,1,6-6A6,6,0,0,1,16,22Zm0-10a4,4,0,1,0,4,4A4,4,0,0,0,16,12Z\"\n })), children);\n});\nvar CameraAction32 = /*#__PURE__*/React.forwardRef(function CameraAction32(_ref209, ref) {\n var children = _ref209.children,\n rest = _objectWithoutProperties(_ref209, _excluded209);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path537 || (_path537 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,23a6,6,0,1,1,6-6A6,6,0,0,1,12,23Zm0-10a4,4,0,1,0,4,4A4,4,0,0,0,12,13Z\"\n })), _path538 || (_path538 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29,27H3a1,1,0,0,1-1-1V6A1,1,0,0,1,3,5H29a1,1,0,0,1,1,1V26A1,1,0,0,1,29,27ZM4,25H28V7H4Z\"\n })), _path539 || (_path539 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 9H26V11H19z\"\n })), _circle17 || (_circle17 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"12\",\n cy: \"17\",\n r: \"1\"\n })), children);\n});\nvar CameraAction24 = /*#__PURE__*/React.forwardRef(function CameraAction24(_ref210, ref) {\n var children = _ref210.children,\n rest = _objectWithoutProperties(_ref210, _excluded210);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path540 || (_path540 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,23a6,6,0,1,1,6-6A6,6,0,0,1,12,23Zm0-10a4,4,0,1,0,4,4A4,4,0,0,0,12,13Z\"\n })), _path541 || (_path541 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29,27H3a1,1,0,0,1-1-1V6A1,1,0,0,1,3,5H29a1,1,0,0,1,1,1V26A1,1,0,0,1,29,27ZM4,25H28V7H4Z\"\n })), _path542 || (_path542 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 9H26V11H19z\"\n })), _circle18 || (_circle18 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"12\",\n cy: \"17\",\n r: \"1\"\n })), children);\n});\nvar CameraAction20 = /*#__PURE__*/React.forwardRef(function CameraAction20(_ref211, ref) {\n var children = _ref211.children,\n rest = _objectWithoutProperties(_ref211, _excluded211);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path543 || (_path543 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,23a6,6,0,1,1,6-6A6,6,0,0,1,12,23Zm0-10a4,4,0,1,0,4,4A4,4,0,0,0,12,13Z\"\n })), _path544 || (_path544 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29,27H3a1,1,0,0,1-1-1V6A1,1,0,0,1,3,5H29a1,1,0,0,1,1,1V26A1,1,0,0,1,29,27ZM4,25H28V7H4Z\"\n })), _path545 || (_path545 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 9H26V11H19z\"\n })), _circle19 || (_circle19 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"12\",\n cy: \"17\",\n r: \"1\"\n })), children);\n});\nvar CameraAction16 = /*#__PURE__*/React.forwardRef(function CameraAction16(_ref212, ref) {\n var children = _ref212.children,\n rest = _objectWithoutProperties(_ref212, _excluded212);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path546 || (_path546 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,23a6,6,0,1,1,6-6A6,6,0,0,1,12,23Zm0-10a4,4,0,1,0,4,4A4,4,0,0,0,12,13Z\"\n })), _path547 || (_path547 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29,27H3a1,1,0,0,1-1-1V6A1,1,0,0,1,3,5H29a1,1,0,0,1,1,1V26A1,1,0,0,1,29,27ZM4,25H28V7H4Z\"\n })), _path548 || (_path548 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 9H26V11H19z\"\n })), _circle20 || (_circle20 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"12\",\n cy: \"17\",\n r: \"1\"\n })), children);\n});\nvar Campsite32 = /*#__PURE__*/React.forwardRef(function Campsite32(_ref213, ref) {\n var children = _ref213.children,\n rest = _objectWithoutProperties(_ref213, _excluded213);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path549 || (_path549 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.5618,26,17.17,8.9277,19.5361,5.04,17.8281,4,16,7.0049,14.17,4l-1.708,1.04,2.3665,3.8877L4.438,26H2v2H30V26ZM16,10.8506,25.2207,26H17V18H15v8H6.7791Z\"\n })), children);\n});\nvar Campsite24 = /*#__PURE__*/React.forwardRef(function Campsite24(_ref214, ref) {\n var children = _ref214.children,\n rest = _objectWithoutProperties(_ref214, _excluded214);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path550 || (_path550 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.5618,26,17.17,8.9277,19.5361,5.04,17.8281,4,16,7.0049,14.17,4l-1.708,1.04,2.3665,3.8877L4.438,26H2v2H30V26ZM16,10.8506,25.2207,26H17V18H15v8H6.7791Z\"\n })), children);\n});\nvar Campsite20 = /*#__PURE__*/React.forwardRef(function Campsite20(_ref215, ref) {\n var children = _ref215.children,\n rest = _objectWithoutProperties(_ref215, _excluded215);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path551 || (_path551 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.5618,26,17.17,8.9277,19.5361,5.04,17.8281,4,16,7.0049,14.17,4l-1.708,1.04,2.3665,3.8877L4.438,26H2v2H30V26ZM16,10.8506,25.2207,26H17V18H15v8H6.7791Z\"\n })), children);\n});\nvar Campsite16 = /*#__PURE__*/React.forwardRef(function Campsite16(_ref216, ref) {\n var children = _ref216.children,\n rest = _objectWithoutProperties(_ref216, _excluded216);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path552 || (_path552 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.5618,26,17.17,8.9277,19.5361,5.04,17.8281,4,16,7.0049,14.17,4l-1.708,1.04,2.3665,3.8877L4.438,26H2v2H30V26ZM16,10.8506,25.2207,26H17V18H15v8H6.7791Z\"\n })), children);\n});\nvar Car32 = /*#__PURE__*/React.forwardRef(function Car32(_ref217, ref) {\n var children = _ref217.children,\n rest = _objectWithoutProperties(_ref217, _excluded217);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path553 || (_path553 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.3379,15.9336l-7.7324-2.7783L18.374,9.0967A2.99,2.99,0,0,0,16.0537,8H8.0576a2.9982,2.9982,0,0,0-2.48,1.3115L2.8662,13.2949A4.9884,4.9884,0,0,0,2,16.1074V24a1,1,0,0,0,1,1H5.1421a3.9806,3.9806,0,0,0,7.7158,0h6.2842a3.9806,3.9806,0,0,0,7.7158,0H29a1,1,0,0,0,1-1V16.875A1,1,0,0,0,29.3379,15.9336ZM9,26a2,2,0,1,1,2-2A2.0027,2.0027,0,0,1,9,26Zm14,0a2,2,0,1,1,2-2A2.0025,2.0025,0,0,1,23,26Zm5-3H26.8579a3.9806,3.9806,0,0,0-7.7158,0H12.8579a3.9806,3.9806,0,0,0-7.7158,0H4V16.1074A2.9977,2.9977,0,0,1,4.52,14.4189l2.711-3.9814A.9992.9992,0,0,1,8.0576,10h7.9961a.9928.9928,0,0,1,.7647.3545l3.3994,4.2685a1.0007,1.0007,0,0,0,.4443.3184L28,17.5781Z\"\n })), children);\n});\nvar Car24 = /*#__PURE__*/React.forwardRef(function Car24(_ref218, ref) {\n var children = _ref218.children,\n rest = _objectWithoutProperties(_ref218, _excluded218);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path554 || (_path554 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.3379,15.9336l-7.7324-2.7783L18.374,9.0967A2.99,2.99,0,0,0,16.0537,8H8.0576a2.9982,2.9982,0,0,0-2.48,1.3115L2.8662,13.2949A4.9884,4.9884,0,0,0,2,16.1074V24a1,1,0,0,0,1,1H5.1421a3.9806,3.9806,0,0,0,7.7158,0h6.2842a3.9806,3.9806,0,0,0,7.7158,0H29a1,1,0,0,0,1-1V16.875A1,1,0,0,0,29.3379,15.9336ZM9,26a2,2,0,1,1,2-2A2.0027,2.0027,0,0,1,9,26Zm14,0a2,2,0,1,1,2-2A2.0025,2.0025,0,0,1,23,26Zm5-3H26.8579a3.9806,3.9806,0,0,0-7.7158,0H12.8579a3.9806,3.9806,0,0,0-7.7158,0H4V16.1074A2.9977,2.9977,0,0,1,4.52,14.4189l2.711-3.9814A.9992.9992,0,0,1,8.0576,10h7.9961a.9928.9928,0,0,1,.7647.3545l3.3994,4.2685a1.0007,1.0007,0,0,0,.4443.3184L28,17.5781Z\"\n })), children);\n});\nvar Car20 = /*#__PURE__*/React.forwardRef(function Car20(_ref219, ref) {\n var children = _ref219.children,\n rest = _objectWithoutProperties(_ref219, _excluded219);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path555 || (_path555 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.3379,15.9336l-7.7324-2.7783L18.374,9.0967A2.99,2.99,0,0,0,16.0537,8H8.0576a2.9982,2.9982,0,0,0-2.48,1.3115L2.8662,13.2949A4.9884,4.9884,0,0,0,2,16.1074V24a1,1,0,0,0,1,1H5.1421a3.9806,3.9806,0,0,0,7.7158,0h6.2842a3.9806,3.9806,0,0,0,7.7158,0H29a1,1,0,0,0,1-1V16.875A1,1,0,0,0,29.3379,15.9336ZM9,26a2,2,0,1,1,2-2A2.0027,2.0027,0,0,1,9,26Zm14,0a2,2,0,1,1,2-2A2.0025,2.0025,0,0,1,23,26Zm5-3H26.8579a3.9806,3.9806,0,0,0-7.7158,0H12.8579a3.9806,3.9806,0,0,0-7.7158,0H4V16.1074A2.9977,2.9977,0,0,1,4.52,14.4189l2.711-3.9814A.9992.9992,0,0,1,8.0576,10h7.9961a.9928.9928,0,0,1,.7647.3545l3.3994,4.2685a1.0007,1.0007,0,0,0,.4443.3184L28,17.5781Z\"\n })), children);\n});\nvar Car16 = /*#__PURE__*/React.forwardRef(function Car16(_ref220, ref) {\n var children = _ref220.children,\n rest = _objectWithoutProperties(_ref220, _excluded220);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path556 || (_path556 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.3379,15.9336l-7.7324-2.7783L18.374,9.0967A2.99,2.99,0,0,0,16.0537,8H8.0576a2.9982,2.9982,0,0,0-2.48,1.3115L2.8662,13.2949A4.9884,4.9884,0,0,0,2,16.1074V24a1,1,0,0,0,1,1H5.1421a3.9806,3.9806,0,0,0,7.7158,0h6.2842a3.9806,3.9806,0,0,0,7.7158,0H29a1,1,0,0,0,1-1V16.875A1,1,0,0,0,29.3379,15.9336ZM9,26a2,2,0,1,1,2-2A2.0027,2.0027,0,0,1,9,26Zm14,0a2,2,0,1,1,2-2A2.0025,2.0025,0,0,1,23,26Zm5-3H26.8579a3.9806,3.9806,0,0,0-7.7158,0H12.8579a3.9806,3.9806,0,0,0-7.7158,0H4V16.1074A2.9977,2.9977,0,0,1,4.52,14.4189l2.711-3.9814A.9992.9992,0,0,1,8.0576,10h7.9961a.9928.9928,0,0,1,.7647.3545l3.3994,4.2685a1.0007,1.0007,0,0,0,.4443.3184L28,17.5781Z\"\n })), children);\n});\nvar CarFront32 = /*#__PURE__*/React.forwardRef(function CarFront32(_ref221, ref) {\n var children = _ref221.children,\n rest = _objectWithoutProperties(_ref221, _excluded221);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path557 || (_path557 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 19H19V21H13z\"\n })), _path558 || (_path558 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25.4409,14,24.1687,9.45A2.009,2.009,0,0,0,22.2456,8H9.7544A2.0089,2.0089,0,0,0,7.8313,9.4507L6.5315,14H4v2H6v7a2.0025,2.0025,0,0,0,2,2v3h2V25H22v3h2V25a2.0025,2.0025,0,0,0,2-2V16h2V14ZM9.7544,10H22.2458l1.4285,5H8.3257ZM24,21v2H8V21h2V19H8V17H24v2H22v2Z\"\n })), children);\n});\nvar CarFront24 = /*#__PURE__*/React.forwardRef(function CarFront24(_ref222, ref) {\n var children = _ref222.children,\n rest = _objectWithoutProperties(_ref222, _excluded222);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path559 || (_path559 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 19H19V21H13z\"\n })), _path560 || (_path560 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25.4409,14,24.1687,9.45A2.009,2.009,0,0,0,22.2456,8H9.7544A2.0089,2.0089,0,0,0,7.8313,9.4507L6.5315,14H4v2H6v7a2.0025,2.0025,0,0,0,2,2v3h2V25H22v3h2V25a2.0025,2.0025,0,0,0,2-2V16h2V14ZM9.7544,10H22.2458l1.4285,5H8.3257ZM24,21v2H8V21h2V19H8V17H24v2H22v2Z\"\n })), children);\n});\nvar CarFront20 = /*#__PURE__*/React.forwardRef(function CarFront20(_ref223, ref) {\n var children = _ref223.children,\n rest = _objectWithoutProperties(_ref223, _excluded223);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path561 || (_path561 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 19H19V21H13z\"\n })), _path562 || (_path562 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25.4409,14,24.1687,9.45A2.009,2.009,0,0,0,22.2456,8H9.7544A2.0089,2.0089,0,0,0,7.8313,9.4507L6.5315,14H4v2H6v7a2.0025,2.0025,0,0,0,2,2v3h2V25H22v3h2V25a2.0025,2.0025,0,0,0,2-2V16h2V14ZM9.7544,10H22.2458l1.4285,5H8.3257ZM24,21v2H8V21h2V19H8V17H24v2H22v2Z\"\n })), children);\n});\nvar CarFront16 = /*#__PURE__*/React.forwardRef(function CarFront16(_ref224, ref) {\n var children = _ref224.children,\n rest = _objectWithoutProperties(_ref224, _excluded224);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path563 || (_path563 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 19H19V21H13z\"\n })), _path564 || (_path564 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25.4409,14,24.1687,9.45A2.009,2.009,0,0,0,22.2456,8H9.7544A2.0089,2.0089,0,0,0,7.8313,9.4507L6.5315,14H4v2H6v7a2.0025,2.0025,0,0,0,2,2v3h2V25H22v3h2V25a2.0025,2.0025,0,0,0,2-2V16h2V14ZM9.7544,10H22.2458l1.4285,5H8.3257ZM24,21v2H8V21h2V19H8V17H24v2H22v2Z\"\n })), children);\n});\nvar Carbon32 = /*#__PURE__*/React.forwardRef(function Carbon32(_ref225, ref) {\n var children = _ref225.children,\n rest = _objectWithoutProperties(_ref225, _excluded225);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path565 || (_path565 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13.5,30.8149a1.0011,1.0011,0,0,1-.4927-.13l-8.5-4.815A1,1,0,0,1,4,25V15a1,1,0,0,1,.5073-.87l8.5-4.815a1.0013,1.0013,0,0,1,.9854,0l8.5,4.815A1,1,0,0,1,23,15V25a1,1,0,0,1-.5073.87l-8.5,4.815A1.0011,1.0011,0,0,1,13.5,30.8149ZM6,24.417l7.5,4.2485L21,24.417V15.583l-7.5-4.2485L6,15.583Z\"\n })), _path566 || (_path566 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,17H26V7.583L18.5,3.3345,10.4927,7.87,9.5073,6.13l8.5-4.815a1.0013,1.0013,0,0,1,.9854,0l8.5,4.815A1,1,0,0,1,28,7Z\"\n })), children);\n});\nvar Carbon24 = /*#__PURE__*/React.forwardRef(function Carbon24(_ref226, ref) {\n var children = _ref226.children,\n rest = _objectWithoutProperties(_ref226, _excluded226);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path567 || (_path567 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13.5,30.8149a1.0011,1.0011,0,0,1-.4927-.13l-8.5-4.815A1,1,0,0,1,4,25V15a1,1,0,0,1,.5073-.87l8.5-4.815a1.0013,1.0013,0,0,1,.9854,0l8.5,4.815A1,1,0,0,1,23,15V25a1,1,0,0,1-.5073.87l-8.5,4.815A1.0011,1.0011,0,0,1,13.5,30.8149ZM6,24.417l7.5,4.2485L21,24.417V15.583l-7.5-4.2485L6,15.583Z\"\n })), _path568 || (_path568 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,17H26V7.583L18.5,3.3345,10.4927,7.87,9.5073,6.13l8.5-4.815a1.0013,1.0013,0,0,1,.9854,0l8.5,4.815A1,1,0,0,1,28,7Z\"\n })), children);\n});\nvar Carbon20 = /*#__PURE__*/React.forwardRef(function Carbon20(_ref227, ref) {\n var children = _ref227.children,\n rest = _objectWithoutProperties(_ref227, _excluded227);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path569 || (_path569 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13.5,30.8149a1.0011,1.0011,0,0,1-.4927-.13l-8.5-4.815A1,1,0,0,1,4,25V15a1,1,0,0,1,.5073-.87l8.5-4.815a1.0013,1.0013,0,0,1,.9854,0l8.5,4.815A1,1,0,0,1,23,15V25a1,1,0,0,1-.5073.87l-8.5,4.815A1.0011,1.0011,0,0,1,13.5,30.8149ZM6,24.417l7.5,4.2485L21,24.417V15.583l-7.5-4.2485L6,15.583Z\"\n })), _path570 || (_path570 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,17H26V7.583L18.5,3.3345,10.4927,7.87,9.5073,6.13l8.5-4.815a1.0013,1.0013,0,0,1,.9854,0l8.5,4.815A1,1,0,0,1,28,7Z\"\n })), children);\n});\nvar Carbon16 = /*#__PURE__*/React.forwardRef(function Carbon16(_ref228, ref) {\n var children = _ref228.children,\n rest = _objectWithoutProperties(_ref228, _excluded228);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path571 || (_path571 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13.5,30.8149a1.0011,1.0011,0,0,1-.4927-.13l-8.5-4.815A1,1,0,0,1,4,25V15a1,1,0,0,1,.5073-.87l8.5-4.815a1.0013,1.0013,0,0,1,.9854,0l8.5,4.815A1,1,0,0,1,23,15V25a1,1,0,0,1-.5073.87l-8.5,4.815A1.0011,1.0011,0,0,1,13.5,30.8149ZM6,24.417l7.5,4.2485L21,24.417V15.583l-7.5-4.2485L6,15.583Z\"\n })), _path572 || (_path572 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,17H26V7.583L18.5,3.3345,10.4927,7.87,9.5073,6.13l8.5-4.815a1.0013,1.0013,0,0,1,.9854,0l8.5,4.815A1,1,0,0,1,28,7Z\"\n })), children);\n});\nvar CarbonAccounting32 = /*#__PURE__*/React.forwardRef(function CarbonAccounting32(_ref229, ref) {\n var children = _ref229.children,\n rest = _objectWithoutProperties(_ref229, _excluded229);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path573 || (_path573 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29 26H23V22a2.002 2.002 0 012-2h2V18H23V16h4a2.0023 2.0023 0 012 2v2a2.0023 2.0023 0 01-2 2H25v2h4zM19 22H15a2.0023 2.0023 0 01-2-2V10a2.002 2.002 0 012-2h4a2.002 2.002 0 012 2V20A2.0023 2.0023 0 0119 22zM15 10V20h4V10zM11 22H5a2.0023 2.0023 0 01-2-2V10A2.002 2.002 0 015 8h6v2H5V20h6z\"\n })), children);\n});\nvar CarbonAccounting24 = /*#__PURE__*/React.forwardRef(function CarbonAccounting24(_ref230, ref) {\n var children = _ref230.children,\n rest = _objectWithoutProperties(_ref230, _excluded230);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path574 || (_path574 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29 26H23V22a2.002 2.002 0 012-2h2V18H23V16h4a2.0023 2.0023 0 012 2v2a2.0023 2.0023 0 01-2 2H25v2h4zM19 22H15a2.0023 2.0023 0 01-2-2V10a2.002 2.002 0 012-2h4a2.002 2.002 0 012 2V20A2.0023 2.0023 0 0119 22zM15 10V20h4V10zM11 22H5a2.0023 2.0023 0 01-2-2V10A2.002 2.002 0 015 8h6v2H5V20h6z\"\n })), children);\n});\nvar CarbonAccounting20 = /*#__PURE__*/React.forwardRef(function CarbonAccounting20(_ref231, ref) {\n var children = _ref231.children,\n rest = _objectWithoutProperties(_ref231, _excluded231);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path575 || (_path575 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29 26H23V22a2.002 2.002 0 012-2h2V18H23V16h4a2.0023 2.0023 0 012 2v2a2.0023 2.0023 0 01-2 2H25v2h4zM19 22H15a2.0023 2.0023 0 01-2-2V10a2.002 2.002 0 012-2h4a2.002 2.002 0 012 2V20A2.0023 2.0023 0 0119 22zM15 10V20h4V10zM11 22H5a2.0023 2.0023 0 01-2-2V10A2.002 2.002 0 015 8h6v2H5V20h6z\"\n })), children);\n});\nvar CarbonAccounting16 = /*#__PURE__*/React.forwardRef(function CarbonAccounting16(_ref232, ref) {\n var children = _ref232.children,\n rest = _objectWithoutProperties(_ref232, _excluded232);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path576 || (_path576 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29 26H23V22a2.002 2.002 0 012-2h2V18H23V16h4a2.0023 2.0023 0 012 2v2a2.0023 2.0023 0 01-2 2H25v2h4zM19 22H15a2.0023 2.0023 0 01-2-2V10a2.002 2.002 0 012-2h4a2.002 2.002 0 012 2V20A2.0023 2.0023 0 0119 22zM15 10V20h4V10zM11 22H5a2.0023 2.0023 0 01-2-2V10A2.002 2.002 0 015 8h6v2H5V20h6z\"\n })), children);\n});\nvar CaretDown32 = /*#__PURE__*/React.forwardRef(function CaretDown32(_ref233, ref) {\n var children = _ref233.children,\n rest = _objectWithoutProperties(_ref233, _excluded233);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path577 || (_path577 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 12L16 22 8 12z\"\n })), children);\n});\nvar CaretDown24 = /*#__PURE__*/React.forwardRef(function CaretDown24(_ref234, ref) {\n var children = _ref234.children,\n rest = _objectWithoutProperties(_ref234, _excluded234);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path578 || (_path578 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 12L16 22 8 12z\"\n })), children);\n});\nvar CaretDown20 = /*#__PURE__*/React.forwardRef(function CaretDown20(_ref235, ref) {\n var children = _ref235.children,\n rest = _objectWithoutProperties(_ref235, _excluded235);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path579 || (_path579 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 12L16 22 8 12z\"\n })), children);\n});\nvar CaretDown16 = /*#__PURE__*/React.forwardRef(function CaretDown16(_ref236, ref) {\n var children = _ref236.children,\n rest = _objectWithoutProperties(_ref236, _excluded236);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path580 || (_path580 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 12L16 22 8 12z\"\n })), children);\n});\nvar CaretDownGlyph = /*#__PURE__*/React.forwardRef(function CaretDownGlyph(_ref237, ref) {\n var children = _ref237.children,\n rest = _objectWithoutProperties(_ref237, _excluded237);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 8,\n height: 4,\n viewBox: \"0 0 8 4\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path581 || (_path581 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 0L4 4 0 0z\"\n })), children);\n});\nvar CaretLeft32 = /*#__PURE__*/React.forwardRef(function CaretLeft32(_ref238, ref) {\n var children = _ref238.children,\n rest = _objectWithoutProperties(_ref238, _excluded238);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path582 || (_path582 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 24L10 16 20 8z\"\n })), children);\n});\nvar CaretLeft24 = /*#__PURE__*/React.forwardRef(function CaretLeft24(_ref239, ref) {\n var children = _ref239.children,\n rest = _objectWithoutProperties(_ref239, _excluded239);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path583 || (_path583 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 24L10 16 20 8z\"\n })), children);\n});\nvar CaretLeft20 = /*#__PURE__*/React.forwardRef(function CaretLeft20(_ref240, ref) {\n var children = _ref240.children,\n rest = _objectWithoutProperties(_ref240, _excluded240);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path584 || (_path584 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 24L10 16 20 8z\"\n })), children);\n});\nvar CaretLeft16 = /*#__PURE__*/React.forwardRef(function CaretLeft16(_ref241, ref) {\n var children = _ref241.children,\n rest = _objectWithoutProperties(_ref241, _excluded241);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path585 || (_path585 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 24L10 16 20 8z\"\n })), children);\n});\nvar CaretLeftGlyph = /*#__PURE__*/React.forwardRef(function CaretLeftGlyph(_ref242, ref) {\n var children = _ref242.children,\n rest = _objectWithoutProperties(_ref242, _excluded242);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 5,\n height: 8,\n viewBox: \"0 0 5 8\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path586 || (_path586 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5 8L0 4 5 0z\"\n })), children);\n});\nvar CaretRight32 = /*#__PURE__*/React.forwardRef(function CaretRight32(_ref243, ref) {\n var children = _ref243.children,\n rest = _objectWithoutProperties(_ref243, _excluded243);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path587 || (_path587 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 8L22 16 12 24z\"\n })), children);\n});\nvar CaretRight24 = /*#__PURE__*/React.forwardRef(function CaretRight24(_ref244, ref) {\n var children = _ref244.children,\n rest = _objectWithoutProperties(_ref244, _excluded244);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path588 || (_path588 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 8L22 16 12 24z\"\n })), children);\n});\nvar CaretRight20 = /*#__PURE__*/React.forwardRef(function CaretRight20(_ref245, ref) {\n var children = _ref245.children,\n rest = _objectWithoutProperties(_ref245, _excluded245);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path589 || (_path589 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 8L22 16 12 24z\"\n })), children);\n});\nvar CaretRight16 = /*#__PURE__*/React.forwardRef(function CaretRight16(_ref246, ref) {\n var children = _ref246.children,\n rest = _objectWithoutProperties(_ref246, _excluded246);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path590 || (_path590 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 8L22 16 12 24z\"\n })), children);\n});\nvar CaretRightGlyph = /*#__PURE__*/React.forwardRef(function CaretRightGlyph(_ref247, ref) {\n var children = _ref247.children,\n rest = _objectWithoutProperties(_ref247, _excluded247);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 5,\n height: 8,\n viewBox: \"0 0 5 8\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path591 || (_path591 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M0 0L5 4 0 8z\"\n })), children);\n});\nvar CaretSort32 = /*#__PURE__*/React.forwardRef(function CaretSort32(_ref248, ref) {\n var children = _ref248.children,\n rest = _objectWithoutProperties(_ref248, _excluded248);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path592 || (_path592 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 24L16 32 8 24zM8 8L16 0 24 8z\"\n })), children);\n});\nvar CaretSort24 = /*#__PURE__*/React.forwardRef(function CaretSort24(_ref249, ref) {\n var children = _ref249.children,\n rest = _objectWithoutProperties(_ref249, _excluded249);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path593 || (_path593 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 24L16 32 8 24zM8 8L16 0 24 8z\"\n })), children);\n});\nvar CaretSort20 = /*#__PURE__*/React.forwardRef(function CaretSort20(_ref250, ref) {\n var children = _ref250.children,\n rest = _objectWithoutProperties(_ref250, _excluded250);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path594 || (_path594 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 24L16 32 8 24zM8 8L16 0 24 8z\"\n })), children);\n});\n\nexport { BeeBat16, BeeBat20, BeeBat24, BeeBat32, Bicycle16, Bicycle20, Bicycle24, Bicycle32, Binoculars16, Binoculars20, Binoculars24, Binoculars32, BlockStorage16, BlockStorage20, BlockStorage24, BlockStorage32, BlockStorageAlt16, BlockStorageAlt20, BlockStorageAlt24, BlockStorageAlt32, Blockchain16, Blockchain20, Blockchain24, Blockchain32, Blog16, Blog20, Blog24, Blog32, Bluetooth16, Bluetooth20, Bluetooth24, Bluetooth32, BluetoothOff16, BluetoothOff20, BluetoothOff24, BluetoothOff32, Book16, Book20, Book24, Book32, Bookmark16, Bookmark20, Bookmark24, Bookmark32, BookmarkAdd16, BookmarkAdd20, BookmarkAdd24, BookmarkAdd32, BookmarkFilled16, BookmarkFilled20, BookmarkFilled24, BookmarkFilled32, Boolean16, Boolean20, Boolean24, Boolean32, BorderBottom16, BorderBottom20, BorderBottom24, BorderBottom32, BorderFull16, BorderFull20, BorderFull24, BorderFull32, BorderLeft16, BorderLeft20, BorderLeft24, BorderLeft32, BorderNone16, BorderNone20, BorderNone24, BorderNone32, BorderRight16, BorderRight20, BorderRight24, BorderRight32, BorderTop16, BorderTop20, BorderTop24, BorderTop32, Bot16, Bot20, Bot24, Bot32, Box16, Box20, Box24, Box32, BoxPlot16, BoxPlot20, BoxPlot24, BoxPlot32, Branch16, Branch20, Branch24, Branch32, BreakingChange16, BreakingChange20, BreakingChange24, BreakingChange32, BrightnessContrast16, BrightnessContrast20, BrightnessContrast24, BrightnessContrast32, BringToFront16, BringToFront20, BringToFront24, BringToFront32, Building16, Building20, Building24, Building32, BuildingInsights_116, BuildingInsights_120, BuildingInsights_124, BuildingInsights_132, BuildingInsights_216, BuildingInsights_220, BuildingInsights_224, BuildingInsights_232, BuildingInsights_316, BuildingInsights_320, BuildingInsights_324, BuildingInsights_332, Bullhorn16, Bullhorn20, Bullhorn24, Bullhorn32, Buoy16, Buoy20, Buoy24, Buoy32, Bus16, Bus20, Bus24, Bus32, CabinCare16, CabinCare20, CabinCare24, CabinCare32, CabinCareAlert16, CabinCareAlert20, CabinCareAlert24, CabinCareAlert32, CabinCareAlt16, CabinCareAlt20, CabinCareAlt24, CabinCareAlt32, Cad16, Cad20, Cad24, Cad32, Cafe16, Cafe20, Cafe24, Cafe32, Calculation16, Calculation20, Calculation24, Calculation32, CalculationAlt16, CalculationAlt20, CalculationAlt24, CalculationAlt32, Calculator16, Calculator20, Calculator24, Calculator32, CalculatorCheck16, CalculatorCheck20, CalculatorCheck24, CalculatorCheck32, Calendar16, Calendar20, Calendar24, Calendar32, CalendarHeatMap16, CalendarHeatMap20, CalendarHeatMap24, CalendarHeatMap32, CalendarSettings16, CalendarSettings20, CalendarSettings24, CalendarSettings32, CalendarTools16, CalendarTools20, CalendarTools24, CalendarTools32, Calibrate16, Calibrate20, Calibrate24, Calibrate32, Camera16, Camera20, Camera24, Camera32, CameraAction16, CameraAction20, CameraAction24, CameraAction32, Campsite16, Campsite20, Campsite24, Campsite32, Car16, Car20, Car24, Car32, CarFront16, CarFront20, CarFront24, CarFront32, Carbon16, Carbon20, Carbon24, Carbon32, CarbonAccounting16, CarbonAccounting20, CarbonAccounting24, CarbonAccounting32, CaretDown16, CaretDown20, CaretDown24, CaretDown32, CaretDownGlyph, CaretLeft16, CaretLeft20, CaretLeft24, CaretLeft32, CaretLeftGlyph, CaretRight16, CaretRight20, CaretRight24, CaretRight32, CaretRightGlyph, CaretSort20, CaretSort24, CaretSort32, QBlochSphere16, QBlochSphere20, QBlochSphere24, QBlochSphere32, WatsonHealthBrushFreehand16, WatsonHealthBrushFreehand20, WatsonHealthBrushFreehand24, WatsonHealthBrushFreehand32, WatsonHealthBrushPolygon16, WatsonHealthBrushPolygon20, WatsonHealthBrushPolygon24, WatsonHealthBrushPolygon32 };\n","/**\n * Copyright IBM Corp. 2019, 2020\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * Code generated by @carbon/icon-build-helpers. DO NOT EDIT.\n */\nimport { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../Icon-a8cbe70a.js';\nimport React from 'react';\nimport '@carbon/icon-helpers';\nimport 'prop-types';\n\nvar _path, _path2, _path3, _path4, _path5, _path6, _path7, _path8, _path9, _path10, _path11, _path12, _path13, _path14, _path15, _path16, _path17, _path18, _path19, _path20, _path21, _path22, _path23, _path24, _path25, _path26, _path27, _path28, _path29, _path30, _path31, _path32, _path33, _path34, _path35, _path36, _path37, _path38, _path39, _path40, _path41, _path42, _path43, _path44, _path45, _path46, _path47, _path48, _path49, _path50, _path51, _path52, _path53, _path54, _path55, _path56, _path57, _path58, _path59, _path60, _path61, _path62, _path63, _path64, _path65, _path66, _path67, _path68, _path69, _path70, _path71, _path72, _path73, _path74, _path75, _path76, _path77, _path78, _path79, _path80, _path81, _path82, _path83, _path84, _path85, _path86, _path87, _path88, _path89, _path90, _path91, _path92, _path93, _path94, _path95, _path96, _circle, _circle2, _circle3, _circle4, _path97, _path98, _path99, _circle5, _circle6, _circle7, _circle8, _path100, _path101, _path102, _circle9, _circle10, _circle11, _circle12, _path103, _path104, _path105, _circle13, _circle14, _circle15, _circle16, _path106, _path107, _path108, _circle17, _circle18, _circle19, _path109, _path110, _circle20, _circle21, _circle22, _path111, _path112, _circle23, _circle24, _circle25, _path113, _path114, _circle26, _circle27, _circle28, _path115, _path116, _path117, _path118, _path119, _path120, _path121, _path122, _path123, _path124, _path125, _path126, _path127, _path128, _path129, _path130, _path131, _path132, _path133, _path134, _path135, _path136, _path137, _path138, _path139, _path140, _path141, _path142, _path143, _path144, _path145, _path146, _path147, _path148, _path149, _path150, _path151, _path152, _path153, _path154, _path155, _path156, _circle29, _path157, _circle30, _path158, _circle31, _path159, _circle32, _path160, _path161, _path162, _path163, _path164, _path165, _path166, _path167, _path168, _path169, _path170, _path171, _path172, _path173, _path174, _path175, _path176, _path177, _path178, _path179, _path180, _path181, _path182, _path183, _path184, _path185, _path186, _path187, _path188, _path189, _path190, _path191, _path192, _path193, _path194, _path195, _path196, _path197, _path198, _path199, _path200, _path201, _path202, _path203, _path204, _path205, _path206, _path207, _path208, _path209, _path210, _path211, _path212, _path213, _path214, _path215, _path216, _path217, _path218, _path219, _path220, _path221, _path222, _path223, _path224, _path225, _path226, _path227, _path228, _path229, _path230, _path231, _path232, _path233, _path234, _path235, _path236, _path237, _path238, _path239, _path240, _path241, _path242, _path243, _path244, _path245, _path246, _path247, _path248, _path249, _path250, _path251, _path252, _path253, _path254, _path255, _path256, _path257, _path258, _path259, _path260, _path261, _path262, _path263, _path264, _path265, _path266, _path267, _path268, _path269, _path270, _path271, _path272, _path273, _path274, _path275, _path276, _path277, _path278, _path279, _path280, _path281, _path282, _path283, _path284, _path285, _path286, _path287, _path288, _path289, _path290, _path291, _path292, _path293, _path294, _path295, _path296, _path297, _path298, _path299, _path300, _path301, _path302, _path303, _path304, _path305, _path306, _path307, _path308, _path309, _path310, _path311, _path312, _path313, _path314, _path315, _path316, _path317, _path318, _path319, _path320, _path321, _path322, _path323, _path324, _path325, _path326, _path327, _path328, _path329, _path330, _path331, _path332, _path333, _path334, _path335, _path336, _path337, _path338, _path339, _path340, _path341, _path342, _path343, _path344, _path345, _path346, _path347, _path348, _path349, _path350, _path351, _path352, _path353, _path354, _path355, _path356, _path357, _path358, _path359, _path360, _path361, _path362, _path363, _path364, _path365, _path366, _path367, _path368, _path369, _path370, _path371, _path372, _path373;\n\nvar _excluded = [\"children\"],\n _excluded2 = [\"children\"],\n _excluded3 = [\"children\"],\n _excluded4 = [\"children\"],\n _excluded5 = [\"children\"],\n _excluded6 = [\"children\"],\n _excluded7 = [\"children\"],\n _excluded8 = [\"children\"],\n _excluded9 = [\"children\"],\n _excluded10 = [\"children\"],\n _excluded11 = [\"children\"],\n _excluded12 = [\"children\"],\n _excluded13 = [\"children\"],\n _excluded14 = [\"children\"],\n _excluded15 = [\"children\"],\n _excluded16 = [\"children\"],\n _excluded17 = [\"children\"],\n _excluded18 = [\"children\"],\n _excluded19 = [\"children\"],\n _excluded20 = [\"children\"],\n _excluded21 = [\"children\"],\n _excluded22 = [\"children\"],\n _excluded23 = [\"children\"],\n _excluded24 = [\"children\"],\n _excluded25 = [\"children\"],\n _excluded26 = [\"children\"],\n _excluded27 = [\"children\"],\n _excluded28 = [\"children\"],\n _excluded29 = [\"children\"],\n _excluded30 = [\"children\"],\n _excluded31 = [\"children\"],\n _excluded32 = [\"children\"],\n _excluded33 = [\"children\"],\n _excluded34 = [\"children\"],\n _excluded35 = [\"children\"],\n _excluded36 = [\"children\"],\n _excluded37 = [\"children\"],\n _excluded38 = [\"children\"],\n _excluded39 = [\"children\"],\n _excluded40 = [\"children\"],\n _excluded41 = [\"children\"],\n _excluded42 = [\"children\"],\n _excluded43 = [\"children\"],\n _excluded44 = [\"children\"],\n _excluded45 = [\"children\"],\n _excluded46 = [\"children\"],\n _excluded47 = [\"children\"],\n _excluded48 = [\"children\"],\n _excluded49 = [\"children\"],\n _excluded50 = [\"children\"],\n _excluded51 = [\"children\"],\n _excluded52 = [\"children\"],\n _excluded53 = [\"children\"],\n _excluded54 = [\"children\"],\n _excluded55 = [\"children\"],\n _excluded56 = [\"children\"],\n _excluded57 = [\"children\"],\n _excluded58 = [\"children\"],\n _excluded59 = [\"children\"],\n _excluded60 = [\"children\"],\n _excluded61 = [\"children\"],\n _excluded62 = [\"children\"],\n _excluded63 = [\"children\"],\n _excluded64 = [\"children\"],\n _excluded65 = [\"children\"],\n _excluded66 = [\"children\"],\n _excluded67 = [\"children\"],\n _excluded68 = [\"children\"],\n _excluded69 = [\"children\"],\n _excluded70 = [\"children\"],\n _excluded71 = [\"children\"],\n _excluded72 = [\"children\"],\n _excluded73 = [\"children\"],\n _excluded74 = [\"children\"],\n _excluded75 = [\"children\"],\n _excluded76 = [\"children\"],\n _excluded77 = [\"children\"],\n _excluded78 = [\"children\"],\n _excluded79 = [\"children\"],\n _excluded80 = [\"children\"],\n _excluded81 = [\"children\"],\n _excluded82 = [\"children\"],\n _excluded83 = [\"children\"],\n _excluded84 = [\"children\"],\n _excluded85 = [\"children\"],\n _excluded86 = [\"children\"],\n _excluded87 = [\"children\"],\n _excluded88 = [\"children\"],\n _excluded89 = [\"children\"],\n _excluded90 = [\"children\"],\n _excluded91 = [\"children\"],\n _excluded92 = [\"children\"],\n _excluded93 = [\"children\"],\n _excluded94 = [\"children\"],\n _excluded95 = [\"children\"],\n _excluded96 = [\"children\"],\n _excluded97 = [\"children\"],\n _excluded98 = [\"children\"],\n _excluded99 = [\"children\"],\n _excluded100 = [\"children\"],\n _excluded101 = [\"children\"],\n _excluded102 = [\"children\"],\n _excluded103 = [\"children\"],\n _excluded104 = [\"children\"],\n _excluded105 = [\"children\"],\n _excluded106 = [\"children\"],\n _excluded107 = [\"children\"],\n _excluded108 = [\"children\"],\n _excluded109 = [\"children\"],\n _excluded110 = [\"children\"],\n _excluded111 = [\"children\"],\n _excluded112 = [\"children\"],\n _excluded113 = [\"children\"],\n _excluded114 = [\"children\"],\n _excluded115 = [\"children\"],\n _excluded116 = [\"children\"],\n _excluded117 = [\"children\"],\n _excluded118 = [\"children\"],\n _excluded119 = [\"children\"],\n _excluded120 = [\"children\"],\n _excluded121 = [\"children\"],\n _excluded122 = [\"children\"],\n _excluded123 = [\"children\"],\n _excluded124 = [\"children\"],\n _excluded125 = [\"children\"],\n _excluded126 = [\"children\"],\n _excluded127 = [\"children\"],\n _excluded128 = [\"children\"],\n _excluded129 = [\"children\"],\n _excluded130 = [\"children\"],\n _excluded131 = [\"children\"],\n _excluded132 = [\"children\"],\n _excluded133 = [\"children\"],\n _excluded134 = [\"children\"],\n _excluded135 = [\"children\"],\n _excluded136 = [\"children\"],\n _excluded137 = [\"children\"],\n _excluded138 = [\"children\"],\n _excluded139 = [\"children\"],\n _excluded140 = [\"children\"],\n _excluded141 = [\"children\"],\n _excluded142 = [\"children\"],\n _excluded143 = [\"children\"],\n _excluded144 = [\"children\"],\n _excluded145 = [\"children\"],\n _excluded146 = [\"children\"],\n _excluded147 = [\"children\"],\n _excluded148 = [\"children\"],\n _excluded149 = [\"children\"],\n _excluded150 = [\"children\"],\n _excluded151 = [\"children\"],\n _excluded152 = [\"children\"],\n _excluded153 = [\"children\"],\n _excluded154 = [\"children\"],\n _excluded155 = [\"children\"],\n _excluded156 = [\"children\"],\n _excluded157 = [\"children\"],\n _excluded158 = [\"children\"],\n _excluded159 = [\"children\"],\n _excluded160 = [\"children\"],\n _excluded161 = [\"children\"],\n _excluded162 = [\"children\"],\n _excluded163 = [\"children\"],\n _excluded164 = [\"children\"],\n _excluded165 = [\"children\"],\n _excluded166 = [\"children\"],\n _excluded167 = [\"children\"],\n _excluded168 = [\"children\"],\n _excluded169 = [\"children\"],\n _excluded170 = [\"children\"],\n _excluded171 = [\"children\"],\n _excluded172 = [\"children\"],\n _excluded173 = [\"children\"],\n _excluded174 = [\"children\"],\n _excluded175 = [\"children\"],\n _excluded176 = [\"children\"],\n _excluded177 = [\"children\"],\n _excluded178 = [\"children\"],\n _excluded179 = [\"children\"],\n _excluded180 = [\"children\"],\n _excluded181 = [\"children\"],\n _excluded182 = [\"children\"],\n _excluded183 = [\"children\"],\n _excluded184 = [\"children\"],\n _excluded185 = [\"children\"],\n _excluded186 = [\"children\"],\n _excluded187 = [\"children\"],\n _excluded188 = [\"children\"],\n _excluded189 = [\"children\"],\n _excluded190 = [\"children\"],\n _excluded191 = [\"children\"],\n _excluded192 = [\"children\"],\n _excluded193 = [\"children\"],\n _excluded194 = [\"children\"],\n _excluded195 = [\"children\"],\n _excluded196 = [\"children\"],\n _excluded197 = [\"children\"],\n _excluded198 = [\"children\"],\n _excluded199 = [\"children\"],\n _excluded200 = [\"children\"],\n _excluded201 = [\"children\"],\n _excluded202 = [\"children\"],\n _excluded203 = [\"children\"],\n _excluded204 = [\"children\"],\n _excluded205 = [\"children\"],\n _excluded206 = [\"children\"],\n _excluded207 = [\"children\"],\n _excluded208 = [\"children\"],\n _excluded209 = [\"children\"],\n _excluded210 = [\"children\"],\n _excluded211 = [\"children\"],\n _excluded212 = [\"children\"],\n _excluded213 = [\"children\"],\n _excluded214 = [\"children\"],\n _excluded215 = [\"children\"],\n _excluded216 = [\"children\"],\n _excluded217 = [\"children\"],\n _excluded218 = [\"children\"],\n _excluded219 = [\"children\"],\n _excluded220 = [\"children\"],\n _excluded221 = [\"children\"],\n _excluded222 = [\"children\"],\n _excluded223 = [\"children\"],\n _excluded224 = [\"children\"],\n _excluded225 = [\"children\"],\n _excluded226 = [\"children\"],\n _excluded227 = [\"children\"],\n _excluded228 = [\"children\"],\n _excluded229 = [\"children\"],\n _excluded230 = [\"children\"],\n _excluded231 = [\"children\"],\n _excluded232 = [\"children\"],\n _excluded233 = [\"children\"],\n _excluded234 = [\"children\"],\n _excluded235 = [\"children\"],\n _excluded236 = [\"children\"],\n _excluded237 = [\"children\"],\n _excluded238 = [\"children\"],\n _excluded239 = [\"children\"],\n _excluded240 = [\"children\"],\n _excluded241 = [\"children\"],\n _excluded242 = [\"children\"],\n _excluded243 = [\"children\"],\n _excluded244 = [\"children\"],\n _excluded245 = [\"children\"],\n _excluded246 = [\"children\"],\n _excluded247 = [\"children\"],\n _excluded248 = [\"children\"],\n _excluded249 = [\"children\"],\n _excluded250 = [\"children\"];\nvar didWarnAboutDeprecation = {};\nvar Drought24 = /*#__PURE__*/React.forwardRef(function Drought24(_ref, ref) {\n var children = _ref.children,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27,18h3V15a4.0045,4.0045,0,0,0-4-4H25V9.5A3.5042,3.5042,0,0,0,21.5,6a3.4556,3.4556,0,0,0-1.5.3511V5.41a3.41,3.41,0,0,0-6.5449-1.3433L11.3408,9H9a5.0059,5.0059,0,0,0-5,5v4H8a5.0059,5.0059,0,0,0,5-5V10.2051l2.293-5.35A1.41,1.41,0,0,1,18,5.41V22H14.6123L11,25.2939,7.3877,22H2v2H6.6123L11,28l4.3877-4H30V22H20V9.5a1.5,1.5,0,0,1,3,0V14A4.0045,4.0045,0,0,0,27,18Zm-2-5h1a2.0023,2.0023,0,0,1,2,2v1H27a2.0023,2.0023,0,0,1-2-2ZM11,13a3.0033,3.0033,0,0,1-3,3H6V14a3.0033,3.0033,0,0,1,3-3h2Z\"\n })), children);\n});\nvar Drought20 = /*#__PURE__*/React.forwardRef(function Drought20(_ref2, ref) {\n var children = _ref2.children,\n rest = _objectWithoutProperties(_ref2, _excluded2);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27,18h3V15a4.0045,4.0045,0,0,0-4-4H25V9.5A3.5042,3.5042,0,0,0,21.5,6a3.4556,3.4556,0,0,0-1.5.3511V5.41a3.41,3.41,0,0,0-6.5449-1.3433L11.3408,9H9a5.0059,5.0059,0,0,0-5,5v4H8a5.0059,5.0059,0,0,0,5-5V10.2051l2.293-5.35A1.41,1.41,0,0,1,18,5.41V22H14.6123L11,25.2939,7.3877,22H2v2H6.6123L11,28l4.3877-4H30V22H20V9.5a1.5,1.5,0,0,1,3,0V14A4.0045,4.0045,0,0,0,27,18Zm-2-5h1a2.0023,2.0023,0,0,1,2,2v1H27a2.0023,2.0023,0,0,1-2-2ZM11,13a3.0033,3.0033,0,0,1-3,3H6V14a3.0033,3.0033,0,0,1,3-3h2Z\"\n })), children);\n});\nvar Drought16 = /*#__PURE__*/React.forwardRef(function Drought16(_ref3, ref) {\n var children = _ref3.children,\n rest = _objectWithoutProperties(_ref3, _excluded3);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27,18h3V15a4.0045,4.0045,0,0,0-4-4H25V9.5A3.5042,3.5042,0,0,0,21.5,6a3.4556,3.4556,0,0,0-1.5.3511V5.41a3.41,3.41,0,0,0-6.5449-1.3433L11.3408,9H9a5.0059,5.0059,0,0,0-5,5v4H8a5.0059,5.0059,0,0,0,5-5V10.2051l2.293-5.35A1.41,1.41,0,0,1,18,5.41V22H14.6123L11,25.2939,7.3877,22H2v2H6.6123L11,28l4.3877-4H30V22H20V9.5a1.5,1.5,0,0,1,3,0V14A4.0045,4.0045,0,0,0,27,18Zm-2-5h1a2.0023,2.0023,0,0,1,2,2v1H27a2.0023,2.0023,0,0,1-2-2ZM11,13a3.0033,3.0033,0,0,1-3,3H6V14a3.0033,3.0033,0,0,1,3-3h2Z\"\n })), children);\n});\nvar Dvr32 = /*#__PURE__*/React.forwardRef(function Dvr32(_ref4, ref) {\n var children = _ref4.children,\n rest = _objectWithoutProperties(_ref4, _excluded4);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path4 || (_path4 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 15V11a2 2 0 00-2-2H22V23h2V17h1.48l2.34 6H30l-2.33-6H28A2 2 0 0030 15zm-6-4h4v4H24zM18 9L16 22 14 9 12 9 14.52 23 17.48 23 20 9 18 9zM6 23H2V9H6a4 4 0 014 4v6A4 4 0 016 23zM4 21H6a2 2 0 002-2V13a2 2 0 00-2-2H4z\"\n })), children);\n});\nvar Dvr24 = /*#__PURE__*/React.forwardRef(function Dvr24(_ref5, ref) {\n var children = _ref5.children,\n rest = _objectWithoutProperties(_ref5, _excluded5);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path5 || (_path5 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 15V11a2 2 0 00-2-2H22V23h2V17h1.48l2.34 6H30l-2.33-6H28A2 2 0 0030 15zm-6-4h4v4H24zM18 9L16 22 14 9 12 9 14.52 23 17.48 23 20 9 18 9zM6 23H2V9H6a4 4 0 014 4v6A4 4 0 016 23zM4 21H6a2 2 0 002-2V13a2 2 0 00-2-2H4z\"\n })), children);\n});\nvar Dvr20 = /*#__PURE__*/React.forwardRef(function Dvr20(_ref6, ref) {\n var children = _ref6.children,\n rest = _objectWithoutProperties(_ref6, _excluded6);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path6 || (_path6 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 15V11a2 2 0 00-2-2H22V23h2V17h1.48l2.34 6H30l-2.33-6H28A2 2 0 0030 15zm-6-4h4v4H24zM18 9L16 22 14 9 12 9 14.52 23 17.48 23 20 9 18 9zM6 23H2V9H6a4 4 0 014 4v6A4 4 0 016 23zM4 21H6a2 2 0 002-2V13a2 2 0 00-2-2H4z\"\n })), children);\n});\nvar Dvr16 = /*#__PURE__*/React.forwardRef(function Dvr16(_ref7, ref) {\n var children = _ref7.children,\n rest = _objectWithoutProperties(_ref7, _excluded7);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path7 || (_path7 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 15V11a2 2 0 00-2-2H22V23h2V17h1.48l2.34 6H30l-2.33-6H28A2 2 0 0030 15zm-6-4h4v4H24zM18 9L16 22 14 9 12 9 14.52 23 17.48 23 20 9 18 9zM6 23H2V9H6a4 4 0 014 4v6A4 4 0 016 23zM4 21H6a2 2 0 002-2V13a2 2 0 00-2-2H4z\"\n })), children);\n});\nvar Earth32 = /*#__PURE__*/React.forwardRef(function Earth32(_ref8, ref) {\n var children = _ref8.children,\n rest = _objectWithoutProperties(_ref8, _excluded8);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path8 || (_path8 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2Zm5,3.1055a12.0136,12.0136,0,0,1,2.9158,1.8994L23.5034,8H21ZM13.3784,27.7026A11.9761,11.9761,0,0,1,8.1157,6.9761L9.4648,9h3.3423l-1.5,4H7.2793L5.8967,17.1475,8.4648,21h5l1.4319,2.1475ZM16,28c-.2034,0-.4016-.02-.6025-.03l1.3967-4.19a1.9876,1.9876,0,0,0-.2334-1.7412l-1.4319-2.1475A1.9962,1.9962,0,0,0,13.4648,19h-3.93L8.1033,16.8525,8.7207,15H11v2h2V14.1812l2.9363-7.83-1.8726-.7022L13.5571,7H10.5352L9.728,5.7891A11.7941,11.7941,0,0,1,19,4.395V8a2.0025,2.0025,0,0,0,2,2h2.5857A1.9865,1.9865,0,0,0,25,9.4141l.1406-.1407.2818-.68A11.9813,11.9813,0,0,1,27.3,12H22.5986a1.9927,1.9927,0,0,0-1.9719,1.665L20.03,17.1064a1.99,1.99,0,0,0,.991,2.086l2.1647,1.4638,1.4585,3.646A11.9577,11.9577,0,0,1,16,28Zm8.8145-8.6563L22.1,17.5088l-.1-.06L22.5986,14h5.2207a11.743,11.743,0,0,1-1.7441,8.4951Z\"\n })), children);\n});\nvar Earth24 = /*#__PURE__*/React.forwardRef(function Earth24(_ref9, ref) {\n var children = _ref9.children,\n rest = _objectWithoutProperties(_ref9, _excluded9);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path9 || (_path9 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2Zm5,3.1055a12.0136,12.0136,0,0,1,2.9158,1.8994L23.5034,8H21ZM13.3784,27.7026A11.9761,11.9761,0,0,1,8.1157,6.9761L9.4648,9h3.3423l-1.5,4H7.2793L5.8967,17.1475,8.4648,21h5l1.4319,2.1475ZM16,28c-.2034,0-.4016-.02-.6025-.03l1.3967-4.19a1.9876,1.9876,0,0,0-.2334-1.7412l-1.4319-2.1475A1.9962,1.9962,0,0,0,13.4648,19h-3.93L8.1033,16.8525,8.7207,15H11v2h2V14.1812l2.9363-7.83-1.8726-.7022L13.5571,7H10.5352L9.728,5.7891A11.7941,11.7941,0,0,1,19,4.395V8a2.0025,2.0025,0,0,0,2,2h2.5857A1.9865,1.9865,0,0,0,25,9.4141l.1406-.1407.2818-.68A11.9813,11.9813,0,0,1,27.3,12H22.5986a1.9927,1.9927,0,0,0-1.9719,1.665L20.03,17.1064a1.99,1.99,0,0,0,.991,2.086l2.1647,1.4638,1.4585,3.646A11.9577,11.9577,0,0,1,16,28Zm8.8145-8.6563L22.1,17.5088l-.1-.06L22.5986,14h5.2207a11.743,11.743,0,0,1-1.7441,8.4951Z\"\n })), children);\n});\nvar Earth20 = /*#__PURE__*/React.forwardRef(function Earth20(_ref10, ref) {\n var children = _ref10.children,\n rest = _objectWithoutProperties(_ref10, _excluded10);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path10 || (_path10 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2Zm5,3.1055a12.0136,12.0136,0,0,1,2.9158,1.8994L23.5034,8H21ZM13.3784,27.7026A11.9761,11.9761,0,0,1,8.1157,6.9761L9.4648,9h3.3423l-1.5,4H7.2793L5.8967,17.1475,8.4648,21h5l1.4319,2.1475ZM16,28c-.2034,0-.4016-.02-.6025-.03l1.3967-4.19a1.9876,1.9876,0,0,0-.2334-1.7412l-1.4319-2.1475A1.9962,1.9962,0,0,0,13.4648,19h-3.93L8.1033,16.8525,8.7207,15H11v2h2V14.1812l2.9363-7.83-1.8726-.7022L13.5571,7H10.5352L9.728,5.7891A11.7941,11.7941,0,0,1,19,4.395V8a2.0025,2.0025,0,0,0,2,2h2.5857A1.9865,1.9865,0,0,0,25,9.4141l.1406-.1407.2818-.68A11.9813,11.9813,0,0,1,27.3,12H22.5986a1.9927,1.9927,0,0,0-1.9719,1.665L20.03,17.1064a1.99,1.99,0,0,0,.991,2.086l2.1647,1.4638,1.4585,3.646A11.9577,11.9577,0,0,1,16,28Zm8.8145-8.6563L22.1,17.5088l-.1-.06L22.5986,14h5.2207a11.743,11.743,0,0,1-1.7441,8.4951Z\"\n })), children);\n});\nvar Earth16 = /*#__PURE__*/React.forwardRef(function Earth16(_ref11, ref) {\n var children = _ref11.children,\n rest = _objectWithoutProperties(_ref11, _excluded11);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path11 || (_path11 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2Zm5,3.1055a12.0136,12.0136,0,0,1,2.9158,1.8994L23.5034,8H21ZM13.3784,27.7026A11.9761,11.9761,0,0,1,8.1157,6.9761L9.4648,9h3.3423l-1.5,4H7.2793L5.8967,17.1475,8.4648,21h5l1.4319,2.1475ZM16,28c-.2034,0-.4016-.02-.6025-.03l1.3967-4.19a1.9876,1.9876,0,0,0-.2334-1.7412l-1.4319-2.1475A1.9962,1.9962,0,0,0,13.4648,19h-3.93L8.1033,16.8525,8.7207,15H11v2h2V14.1812l2.9363-7.83-1.8726-.7022L13.5571,7H10.5352L9.728,5.7891A11.7941,11.7941,0,0,1,19,4.395V8a2.0025,2.0025,0,0,0,2,2h2.5857A1.9865,1.9865,0,0,0,25,9.4141l.1406-.1407.2818-.68A11.9813,11.9813,0,0,1,27.3,12H22.5986a1.9927,1.9927,0,0,0-1.9719,1.665L20.03,17.1064a1.99,1.99,0,0,0,.991,2.086l2.1647,1.4638,1.4585,3.646A11.9577,11.9577,0,0,1,16,28Zm8.8145-8.6563L22.1,17.5088l-.1-.06L22.5986,14h5.2207a11.743,11.743,0,0,1-1.7441,8.4951Z\"\n })), children);\n});\nvar EarthAmericas32 = /*#__PURE__*/React.forwardRef(function EarthAmericas32(_ref12, ref) {\n var children = _ref12.children,\n rest = _objectWithoutProperties(_ref12, _excluded12);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path12 || (_path12 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,16a14.0313,14.0313,0,1,0-7.14,12.1914l.1165.0254.0249-.1113A13.9983,13.9983,0,0,0,30,16ZM4,16a11.9369,11.9369,0,0,1,.395-3H8.6382L13.63,17.16l-1.9092,2.5459a2.0088,2.0088,0,0,0,.1855,2.6142L14,24.4141v3.4052A12.0093,12.0093,0,0,1,4,16Zm9.32,4.9062L16.37,16.84,9.3618,11H5.1055A11.9619,11.9619,0,0,1,22.8838,6.1865L22.2793,8H16.5859L13.543,11.043l9.3535,8.3134L21.248,26.7749A11.9034,11.9034,0,0,1,16,28V23.5859Zm10.315,4.3443,1.2133-5.46a2.0007,2.0007,0,0,0-.6235-1.9277L16.457,10.957,17.4141,10h4.8652a1.9981,1.9981,0,0,0,1.8975-1.3677l.3532-1.06a11.9777,11.9777,0,0,1-.8947,17.6782Z\"\n })), children);\n});\nvar EarthAmericas24 = /*#__PURE__*/React.forwardRef(function EarthAmericas24(_ref13, ref) {\n var children = _ref13.children,\n rest = _objectWithoutProperties(_ref13, _excluded13);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path13 || (_path13 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,16a14.0313,14.0313,0,1,0-7.14,12.1914l.1165.0254.0249-.1113A13.9983,13.9983,0,0,0,30,16ZM4,16a11.9369,11.9369,0,0,1,.395-3H8.6382L13.63,17.16l-1.9092,2.5459a2.0088,2.0088,0,0,0,.1855,2.6142L14,24.4141v3.4052A12.0093,12.0093,0,0,1,4,16Zm9.32,4.9062L16.37,16.84,9.3618,11H5.1055A11.9619,11.9619,0,0,1,22.8838,6.1865L22.2793,8H16.5859L13.543,11.043l9.3535,8.3134L21.248,26.7749A11.9034,11.9034,0,0,1,16,28V23.5859Zm10.315,4.3443,1.2133-5.46a2.0007,2.0007,0,0,0-.6235-1.9277L16.457,10.957,17.4141,10h4.8652a1.9981,1.9981,0,0,0,1.8975-1.3677l.3532-1.06a11.9777,11.9777,0,0,1-.8947,17.6782Z\"\n })), children);\n});\nvar EarthAmericas20 = /*#__PURE__*/React.forwardRef(function EarthAmericas20(_ref14, ref) {\n var children = _ref14.children,\n rest = _objectWithoutProperties(_ref14, _excluded14);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path14 || (_path14 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,16a14.0313,14.0313,0,1,0-7.14,12.1914l.1165.0254.0249-.1113A13.9983,13.9983,0,0,0,30,16ZM4,16a11.9369,11.9369,0,0,1,.395-3H8.6382L13.63,17.16l-1.9092,2.5459a2.0088,2.0088,0,0,0,.1855,2.6142L14,24.4141v3.4052A12.0093,12.0093,0,0,1,4,16Zm9.32,4.9062L16.37,16.84,9.3618,11H5.1055A11.9619,11.9619,0,0,1,22.8838,6.1865L22.2793,8H16.5859L13.543,11.043l9.3535,8.3134L21.248,26.7749A11.9034,11.9034,0,0,1,16,28V23.5859Zm10.315,4.3443,1.2133-5.46a2.0007,2.0007,0,0,0-.6235-1.9277L16.457,10.957,17.4141,10h4.8652a1.9981,1.9981,0,0,0,1.8975-1.3677l.3532-1.06a11.9777,11.9777,0,0,1-.8947,17.6782Z\"\n })), children);\n});\nvar EarthAmericas16 = /*#__PURE__*/React.forwardRef(function EarthAmericas16(_ref15, ref) {\n var children = _ref15.children,\n rest = _objectWithoutProperties(_ref15, _excluded15);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path15 || (_path15 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,16a14.0313,14.0313,0,1,0-7.14,12.1914l.1165.0254.0249-.1113A13.9983,13.9983,0,0,0,30,16ZM4,16a11.9369,11.9369,0,0,1,.395-3H8.6382L13.63,17.16l-1.9092,2.5459a2.0088,2.0088,0,0,0,.1855,2.6142L14,24.4141v3.4052A12.0093,12.0093,0,0,1,4,16Zm9.32,4.9062L16.37,16.84,9.3618,11H5.1055A11.9619,11.9619,0,0,1,22.8838,6.1865L22.2793,8H16.5859L13.543,11.043l9.3535,8.3134L21.248,26.7749A11.9034,11.9034,0,0,1,16,28V23.5859Zm10.315,4.3443,1.2133-5.46a2.0007,2.0007,0,0,0-.6235-1.9277L16.457,10.957,17.4141,10h4.8652a1.9981,1.9981,0,0,0,1.8975-1.3677l.3532-1.06a11.9777,11.9777,0,0,1-.8947,17.6782Z\"\n })), children);\n});\nvar EarthAmericasFilled32 = /*#__PURE__*/React.forwardRef(function EarthAmericasFilled32(_ref16, ref) {\n var children = _ref16.children,\n rest = _objectWithoutProperties(_ref16, _excluded16);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path16 || (_path16 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2ZM4,16a11.915,11.915,0,0,1,.7-4H10l5,4-2.8,3.6929A1,1,0,0,0,12.293,21L15,24v3.9492A12.01,12.01,0,0,1,4,16ZM21.4348,26.6846l2.5457-7.6992A1,1,0,0,0,23.614,18L15,11l2-2h5.2793a1,1,0,0,0,.9487-.6836L23.7234,6.83a11.9742,11.9742,0,0,1-2.2886,19.855Z\"\n })), children);\n});\nvar EarthAmericasFilled24 = /*#__PURE__*/React.forwardRef(function EarthAmericasFilled24(_ref17, ref) {\n var children = _ref17.children,\n rest = _objectWithoutProperties(_ref17, _excluded17);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path17 || (_path17 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2ZM4,16a11.915,11.915,0,0,1,.7-4H10l5,4-2.8,3.6929A1,1,0,0,0,12.293,21L15,24v3.9492A12.01,12.01,0,0,1,4,16ZM21.4348,26.6846l2.5457-7.6992A1,1,0,0,0,23.614,18L15,11l2-2h5.2793a1,1,0,0,0,.9487-.6836L23.7234,6.83a11.9742,11.9742,0,0,1-2.2886,19.855Z\"\n })), children);\n});\nvar EarthAmericasFilled20 = /*#__PURE__*/React.forwardRef(function EarthAmericasFilled20(_ref18, ref) {\n var children = _ref18.children,\n rest = _objectWithoutProperties(_ref18, _excluded18);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path18 || (_path18 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2ZM4,16a11.915,11.915,0,0,1,.7-4H10l5,4-2.8,3.6929A1,1,0,0,0,12.293,21L15,24v3.9492A12.01,12.01,0,0,1,4,16ZM21.4348,26.6846l2.5457-7.6992A1,1,0,0,0,23.614,18L15,11l2-2h5.2793a1,1,0,0,0,.9487-.6836L23.7234,6.83a11.9742,11.9742,0,0,1-2.2886,19.855Z\"\n })), children);\n});\nvar EarthAmericasFilled16 = /*#__PURE__*/React.forwardRef(function EarthAmericasFilled16(_ref19, ref) {\n var children = _ref19.children,\n rest = _objectWithoutProperties(_ref19, _excluded19);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path19 || (_path19 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2ZM4,16a11.915,11.915,0,0,1,.7-4H10l5,4-2.8,3.6929A1,1,0,0,0,12.293,21L15,24v3.9492A12.01,12.01,0,0,1,4,16ZM21.4348,26.6846l2.5457-7.6992A1,1,0,0,0,23.614,18L15,11l2-2h5.2793a1,1,0,0,0,.9487-.6836L23.7234,6.83a11.9742,11.9742,0,0,1-2.2886,19.855Z\"\n })), children);\n});\nvar EarthEuropeAfrica32 = /*#__PURE__*/React.forwardRef(function EarthEuropeAfrica32(_ref20, ref) {\n var children = _ref20.children,\n rest = _objectWithoutProperties(_ref20, _excluded20);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path20 || (_path20 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2ZM4,16A11.96,11.96,0,0,1,8,7.0811V9a2,2,0,0,0,2,2h3.3818a2,2,0,0,0,1.7893-1.106L15.6182,9H18v4H13.2354a2,2,0,0,0-.8936.2109L9.1055,14.8291A2,2,0,0,0,8,16.6177v3.7055A2,2,0,0,0,9.2573,22.18l3.8487,1.54.6779,4.0664A12.0135,12.0135,0,0,1,4,16ZM15.8457,27.9922,14.894,22.28,10,20.3232v-3.705L13.2358,15H20V7H14.3818l-1,2H10V5.6235A11.9578,11.9578,0,0,1,27.3,12H22v4l.9224,3.8135L21,22.6973v4.1972A11.9083,11.9083,0,0,1,16,28C15.948,28,15.8977,27.9927,15.8457,27.9922ZM23,25.7266V23.3027l1.5859-2.3789a2.0027,2.0027,0,0,0,.2769-1.5957L24,15.877V14h3.8193A11.8409,11.8409,0,0,1,23,25.7266Z\"\n })), children);\n});\nvar EarthEuropeAfrica24 = /*#__PURE__*/React.forwardRef(function EarthEuropeAfrica24(_ref21, ref) {\n var children = _ref21.children,\n rest = _objectWithoutProperties(_ref21, _excluded21);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path21 || (_path21 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2ZM4,16A11.96,11.96,0,0,1,8,7.0811V9a2,2,0,0,0,2,2h3.3818a2,2,0,0,0,1.7893-1.106L15.6182,9H18v4H13.2354a2,2,0,0,0-.8936.2109L9.1055,14.8291A2,2,0,0,0,8,16.6177v3.7055A2,2,0,0,0,9.2573,22.18l3.8487,1.54.6779,4.0664A12.0135,12.0135,0,0,1,4,16ZM15.8457,27.9922,14.894,22.28,10,20.3232v-3.705L13.2358,15H20V7H14.3818l-1,2H10V5.6235A11.9578,11.9578,0,0,1,27.3,12H22v4l.9224,3.8135L21,22.6973v4.1972A11.9083,11.9083,0,0,1,16,28C15.948,28,15.8977,27.9927,15.8457,27.9922ZM23,25.7266V23.3027l1.5859-2.3789a2.0027,2.0027,0,0,0,.2769-1.5957L24,15.877V14h3.8193A11.8409,11.8409,0,0,1,23,25.7266Z\"\n })), children);\n});\nvar EarthEuropeAfrica20 = /*#__PURE__*/React.forwardRef(function EarthEuropeAfrica20(_ref22, ref) {\n var children = _ref22.children,\n rest = _objectWithoutProperties(_ref22, _excluded22);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path22 || (_path22 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2ZM4,16A11.96,11.96,0,0,1,8,7.0811V9a2,2,0,0,0,2,2h3.3818a2,2,0,0,0,1.7893-1.106L15.6182,9H18v4H13.2354a2,2,0,0,0-.8936.2109L9.1055,14.8291A2,2,0,0,0,8,16.6177v3.7055A2,2,0,0,0,9.2573,22.18l3.8487,1.54.6779,4.0664A12.0135,12.0135,0,0,1,4,16ZM15.8457,27.9922,14.894,22.28,10,20.3232v-3.705L13.2358,15H20V7H14.3818l-1,2H10V5.6235A11.9578,11.9578,0,0,1,27.3,12H22v4l.9224,3.8135L21,22.6973v4.1972A11.9083,11.9083,0,0,1,16,28C15.948,28,15.8977,27.9927,15.8457,27.9922ZM23,25.7266V23.3027l1.5859-2.3789a2.0027,2.0027,0,0,0,.2769-1.5957L24,15.877V14h3.8193A11.8409,11.8409,0,0,1,23,25.7266Z\"\n })), children);\n});\nvar EarthEuropeAfrica16 = /*#__PURE__*/React.forwardRef(function EarthEuropeAfrica16(_ref23, ref) {\n var children = _ref23.children,\n rest = _objectWithoutProperties(_ref23, _excluded23);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path23 || (_path23 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2ZM4,16A11.96,11.96,0,0,1,8,7.0811V9a2,2,0,0,0,2,2h3.3818a2,2,0,0,0,1.7893-1.106L15.6182,9H18v4H13.2354a2,2,0,0,0-.8936.2109L9.1055,14.8291A2,2,0,0,0,8,16.6177v3.7055A2,2,0,0,0,9.2573,22.18l3.8487,1.54.6779,4.0664A12.0135,12.0135,0,0,1,4,16ZM15.8457,27.9922,14.894,22.28,10,20.3232v-3.705L13.2358,15H20V7H14.3818l-1,2H10V5.6235A11.9578,11.9578,0,0,1,27.3,12H22v4l.9224,3.8135L21,22.6973v4.1972A11.9083,11.9083,0,0,1,16,28C15.948,28,15.8977,27.9927,15.8457,27.9922ZM23,25.7266V23.3027l1.5859-2.3789a2.0027,2.0027,0,0,0,.2769-1.5957L24,15.877V14h3.8193A11.8409,11.8409,0,0,1,23,25.7266Z\"\n })), children);\n});\nvar EarthEuropeAfricaFilled32 = /*#__PURE__*/React.forwardRef(function EarthEuropeAfricaFilled32(_ref24, ref) {\n var children = _ref24.children,\n rest = _objectWithoutProperties(_ref24, _excluded24);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path24 || (_path24 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2ZM4,16A11.9814,11.9814,0,0,1,9,6.2734V9a1,1,0,0,0,1,1h3.3821a1,1,0,0,0,.8943-.5527L15,8h4v6H13.2361a1.0006,1.0006,0,0,0-.4473.1055L9.5527,15.7236A1,1,0,0,0,9,16.6182v3.7046a1,1,0,0,0,.6287.9287L14,23l.8235,4.94A12.0152,12.0152,0,0,1,4,16ZM22,26.376V23l1.7546-2.6318a1.0012,1.0012,0,0,0,.1382-.7974L23,16V13h4.605A11.901,11.901,0,0,1,22,26.376Z\"\n })), children);\n});\nvar EarthEuropeAfricaFilled24 = /*#__PURE__*/React.forwardRef(function EarthEuropeAfricaFilled24(_ref25, ref) {\n var children = _ref25.children,\n rest = _objectWithoutProperties(_ref25, _excluded25);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path25 || (_path25 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2ZM4,16A11.9814,11.9814,0,0,1,9,6.2734V9a1,1,0,0,0,1,1h3.3821a1,1,0,0,0,.8943-.5527L15,8h4v6H13.2361a1.0006,1.0006,0,0,0-.4473.1055L9.5527,15.7236A1,1,0,0,0,9,16.6182v3.7046a1,1,0,0,0,.6287.9287L14,23l.8235,4.94A12.0152,12.0152,0,0,1,4,16ZM22,26.376V23l1.7546-2.6318a1.0012,1.0012,0,0,0,.1382-.7974L23,16V13h4.605A11.901,11.901,0,0,1,22,26.376Z\"\n })), children);\n});\nvar EarthEuropeAfricaFilled20 = /*#__PURE__*/React.forwardRef(function EarthEuropeAfricaFilled20(_ref26, ref) {\n var children = _ref26.children,\n rest = _objectWithoutProperties(_ref26, _excluded26);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path26 || (_path26 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2ZM4,16A11.9814,11.9814,0,0,1,9,6.2734V9a1,1,0,0,0,1,1h3.3821a1,1,0,0,0,.8943-.5527L15,8h4v6H13.2361a1.0006,1.0006,0,0,0-.4473.1055L9.5527,15.7236A1,1,0,0,0,9,16.6182v3.7046a1,1,0,0,0,.6287.9287L14,23l.8235,4.94A12.0152,12.0152,0,0,1,4,16ZM22,26.376V23l1.7546-2.6318a1.0012,1.0012,0,0,0,.1382-.7974L23,16V13h4.605A11.901,11.901,0,0,1,22,26.376Z\"\n })), children);\n});\nvar EarthEuropeAfricaFilled16 = /*#__PURE__*/React.forwardRef(function EarthEuropeAfricaFilled16(_ref27, ref) {\n var children = _ref27.children,\n rest = _objectWithoutProperties(_ref27, _excluded27);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path27 || (_path27 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2ZM4,16A11.9814,11.9814,0,0,1,9,6.2734V9a1,1,0,0,0,1,1h3.3821a1,1,0,0,0,.8943-.5527L15,8h4v6H13.2361a1.0006,1.0006,0,0,0-.4473.1055L9.5527,15.7236A1,1,0,0,0,9,16.6182v3.7046a1,1,0,0,0,.6287.9287L14,23l.8235,4.94A12.0152,12.0152,0,0,1,4,16ZM22,26.376V23l1.7546-2.6318a1.0012,1.0012,0,0,0,.1382-.7974L23,16V13h4.605A11.901,11.901,0,0,1,22,26.376Z\"\n })), children);\n});\nvar EarthFilled32 = /*#__PURE__*/React.forwardRef(function EarthFilled32(_ref28, ref) {\n var children = _ref28.children,\n rest = _objectWithoutProperties(_ref28, _excluded28);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path28 || (_path28 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2ZM4.02,16.394l1.3384.4458L7,19.3027v1.2831a1,1,0,0,0,.2929.7071L10,24v2.3765A11.9941,11.9941,0,0,1,4.02,16.394ZM16,28a11.9682,11.9682,0,0,1-2.5718-.2847L14,26l1.8046-4.5116a1,1,0,0,0-.0964-.9261l-1.4113-2.117A1,1,0,0,0,13.4648,18h-4.93L7.2866,16.1274,9.4141,14H11v2h2V13.2656l3.8682-6.7695-1.7364-.9922L14.2769,7H11.5352l-1.086-1.6289A11.861,11.861,0,0,1,20,4.7V8a1,1,0,0,0,1,1h1.4648a1,1,0,0,0,.8321-.4453l.8769-1.3154A12.0331,12.0331,0,0,1,26.8945,11H22.82a1,1,0,0,0-.9806.8039l-.7221,4.4708a1,1,0,0,0,.54,1.0539L25,19l.6851,4.0557A11.9793,11.9793,0,0,1,16,28Z\"\n })), children);\n});\nvar EarthFilled24 = /*#__PURE__*/React.forwardRef(function EarthFilled24(_ref29, ref) {\n var children = _ref29.children,\n rest = _objectWithoutProperties(_ref29, _excluded29);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path29 || (_path29 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2ZM4.02,16.394l1.3384.4458L7,19.3027v1.2831a1,1,0,0,0,.2929.7071L10,24v2.3765A11.9941,11.9941,0,0,1,4.02,16.394ZM16,28a11.9682,11.9682,0,0,1-2.5718-.2847L14,26l1.8046-4.5116a1,1,0,0,0-.0964-.9261l-1.4113-2.117A1,1,0,0,0,13.4648,18h-4.93L7.2866,16.1274,9.4141,14H11v2h2V13.2656l3.8682-6.7695-1.7364-.9922L14.2769,7H11.5352l-1.086-1.6289A11.861,11.861,0,0,1,20,4.7V8a1,1,0,0,0,1,1h1.4648a1,1,0,0,0,.8321-.4453l.8769-1.3154A12.0331,12.0331,0,0,1,26.8945,11H22.82a1,1,0,0,0-.9806.8039l-.7221,4.4708a1,1,0,0,0,.54,1.0539L25,19l.6851,4.0557A11.9793,11.9793,0,0,1,16,28Z\"\n })), children);\n});\nvar EarthFilled20 = /*#__PURE__*/React.forwardRef(function EarthFilled20(_ref30, ref) {\n var children = _ref30.children,\n rest = _objectWithoutProperties(_ref30, _excluded30);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path30 || (_path30 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2ZM4.02,16.394l1.3384.4458L7,19.3027v1.2831a1,1,0,0,0,.2929.7071L10,24v2.3765A11.9941,11.9941,0,0,1,4.02,16.394ZM16,28a11.9682,11.9682,0,0,1-2.5718-.2847L14,26l1.8046-4.5116a1,1,0,0,0-.0964-.9261l-1.4113-2.117A1,1,0,0,0,13.4648,18h-4.93L7.2866,16.1274,9.4141,14H11v2h2V13.2656l3.8682-6.7695-1.7364-.9922L14.2769,7H11.5352l-1.086-1.6289A11.861,11.861,0,0,1,20,4.7V8a1,1,0,0,0,1,1h1.4648a1,1,0,0,0,.8321-.4453l.8769-1.3154A12.0331,12.0331,0,0,1,26.8945,11H22.82a1,1,0,0,0-.9806.8039l-.7221,4.4708a1,1,0,0,0,.54,1.0539L25,19l.6851,4.0557A11.9793,11.9793,0,0,1,16,28Z\"\n })), children);\n});\nvar EarthFilled16 = /*#__PURE__*/React.forwardRef(function EarthFilled16(_ref31, ref) {\n var children = _ref31.children,\n rest = _objectWithoutProperties(_ref31, _excluded31);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path31 || (_path31 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2ZM4.02,16.394l1.3384.4458L7,19.3027v1.2831a1,1,0,0,0,.2929.7071L10,24v2.3765A11.9941,11.9941,0,0,1,4.02,16.394ZM16,28a11.9682,11.9682,0,0,1-2.5718-.2847L14,26l1.8046-4.5116a1,1,0,0,0-.0964-.9261l-1.4113-2.117A1,1,0,0,0,13.4648,18h-4.93L7.2866,16.1274,9.4141,14H11v2h2V13.2656l3.8682-6.7695-1.7364-.9922L14.2769,7H11.5352l-1.086-1.6289A11.861,11.861,0,0,1,20,4.7V8a1,1,0,0,0,1,1h1.4648a1,1,0,0,0,.8321-.4453l.8769-1.3154A12.0331,12.0331,0,0,1,26.8945,11H22.82a1,1,0,0,0-.9806.8039l-.7221,4.4708a1,1,0,0,0,.54,1.0539L25,19l.6851,4.0557A11.9793,11.9793,0,0,1,16,28Z\"\n })), children);\n});\nvar EarthSoutheastAsia32 = /*#__PURE__*/React.forwardRef(function EarthSoutheastAsia32(_ref32, ref) {\n var children = _ref32.children,\n rest = _objectWithoutProperties(_ref32, _excluded32);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path32 || (_path32 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14 24H17V26H14zM17 22H19V24H17zM17 18H19V20H17z\"\n })), _path33 || (_path33 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2Zm-.603,2.03,2.5073,5.0156L16.3228,13H10.271l-1.41,4.3872,2.8521,2.8521L10.7056,21.751,6.2856,19H4.395A11.9363,11.9363,0,0,1,15.397,4.03ZM5.1055,21h.6089l3.9345,2.4487A1.9912,1.9912,0,0,0,12.37,22.86l1.0078-1.5118a2.005,2.005,0,0,0-.25-2.5234l-1.9887-1.9888L11.729,15h4.5938A1.9906,1.9906,0,0,0,18.18,13.7427L19.7612,9.79a2.0019,2.0019,0,0,0-.0674-1.6382L17.6843,4.1323A11.9592,11.9592,0,0,1,26.8945,21H23a2.0023,2.0023,0,0,0-2,2v3.8945A11.9477,11.9477,0,0,1,5.1055,21ZM23,25.7266V23h2.7268A12.0762,12.0762,0,0,1,23,25.7266Z\"\n })), children);\n});\nvar EarthSoutheastAsia24 = /*#__PURE__*/React.forwardRef(function EarthSoutheastAsia24(_ref33, ref) {\n var children = _ref33.children,\n rest = _objectWithoutProperties(_ref33, _excluded33);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path34 || (_path34 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14 24H17V26H14zM17 22H19V24H17zM17 18H19V20H17z\"\n })), _path35 || (_path35 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2Zm-.603,2.03,2.5073,5.0156L16.3228,13H10.271l-1.41,4.3872,2.8521,2.8521L10.7056,21.751,6.2856,19H4.395A11.9363,11.9363,0,0,1,15.397,4.03ZM5.1055,21h.6089l3.9345,2.4487A1.9912,1.9912,0,0,0,12.37,22.86l1.0078-1.5118a2.005,2.005,0,0,0-.25-2.5234l-1.9887-1.9888L11.729,15h4.5938A1.9906,1.9906,0,0,0,18.18,13.7427L19.7612,9.79a2.0019,2.0019,0,0,0-.0674-1.6382L17.6843,4.1323A11.9592,11.9592,0,0,1,26.8945,21H23a2.0023,2.0023,0,0,0-2,2v3.8945A11.9477,11.9477,0,0,1,5.1055,21ZM23,25.7266V23h2.7268A12.0762,12.0762,0,0,1,23,25.7266Z\"\n })), children);\n});\nvar EarthSoutheastAsia20 = /*#__PURE__*/React.forwardRef(function EarthSoutheastAsia20(_ref34, ref) {\n var children = _ref34.children,\n rest = _objectWithoutProperties(_ref34, _excluded34);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path36 || (_path36 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14 24H17V26H14zM17 22H19V24H17zM17 18H19V20H17z\"\n })), _path37 || (_path37 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2Zm-.603,2.03,2.5073,5.0156L16.3228,13H10.271l-1.41,4.3872,2.8521,2.8521L10.7056,21.751,6.2856,19H4.395A11.9363,11.9363,0,0,1,15.397,4.03ZM5.1055,21h.6089l3.9345,2.4487A1.9912,1.9912,0,0,0,12.37,22.86l1.0078-1.5118a2.005,2.005,0,0,0-.25-2.5234l-1.9887-1.9888L11.729,15h4.5938A1.9906,1.9906,0,0,0,18.18,13.7427L19.7612,9.79a2.0019,2.0019,0,0,0-.0674-1.6382L17.6843,4.1323A11.9592,11.9592,0,0,1,26.8945,21H23a2.0023,2.0023,0,0,0-2,2v3.8945A11.9477,11.9477,0,0,1,5.1055,21ZM23,25.7266V23h2.7268A12.0762,12.0762,0,0,1,23,25.7266Z\"\n })), children);\n});\nvar EarthSoutheastAsia16 = /*#__PURE__*/React.forwardRef(function EarthSoutheastAsia16(_ref35, ref) {\n var children = _ref35.children,\n rest = _objectWithoutProperties(_ref35, _excluded35);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path38 || (_path38 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14 24H17V26H14zM17 22H19V24H17zM17 18H19V20H17z\"\n })), _path39 || (_path39 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2Zm-.603,2.03,2.5073,5.0156L16.3228,13H10.271l-1.41,4.3872,2.8521,2.8521L10.7056,21.751,6.2856,19H4.395A11.9363,11.9363,0,0,1,15.397,4.03ZM5.1055,21h.6089l3.9345,2.4487A1.9912,1.9912,0,0,0,12.37,22.86l1.0078-1.5118a2.005,2.005,0,0,0-.25-2.5234l-1.9887-1.9888L11.729,15h4.5938A1.9906,1.9906,0,0,0,18.18,13.7427L19.7612,9.79a2.0019,2.0019,0,0,0-.0674-1.6382L17.6843,4.1323A11.9592,11.9592,0,0,1,26.8945,21H23a2.0023,2.0023,0,0,0-2,2v3.8945A11.9477,11.9477,0,0,1,5.1055,21ZM23,25.7266V23h2.7268A12.0762,12.0762,0,0,1,23,25.7266Z\"\n })), children);\n});\nvar EarthSoutheastAsiaFilled32 = /*#__PURE__*/React.forwardRef(function EarthSoutheastAsiaFilled32(_ref36, ref) {\n var children = _ref36.children,\n rest = _objectWithoutProperties(_ref36, _excluded36);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path40 || (_path40 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 22H19V24H17zM17 18H19V20H17zM14 24H17V26H14z\"\n })), _path41 || (_path41 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2ZM4.7,20H6l4.1772,2.6a1,1,0,0,0,1.36-.2939l1.0078-1.5118a1,1,0,0,0-.125-1.2617L10,17.1118,11,14h5.323a1,1,0,0,0,.9285-.6284L18.8333,9.417a1,1,0,0,0-.034-.8189L16.5129,4.0259A11.9652,11.9652,0,0,1,26.3762,22H23a1,1,0,0,0-1,1v3.3765A11.9578,11.9578,0,0,1,4.7,20Z\"\n })), children);\n});\nvar EarthSoutheastAsiaFilled24 = /*#__PURE__*/React.forwardRef(function EarthSoutheastAsiaFilled24(_ref37, ref) {\n var children = _ref37.children,\n rest = _objectWithoutProperties(_ref37, _excluded37);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path42 || (_path42 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 22H19V24H17zM17 18H19V20H17zM14 24H17V26H14z\"\n })), _path43 || (_path43 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2ZM4.7,20H6l4.1772,2.6a1,1,0,0,0,1.36-.2939l1.0078-1.5118a1,1,0,0,0-.125-1.2617L10,17.1118,11,14h5.323a1,1,0,0,0,.9285-.6284L18.8333,9.417a1,1,0,0,0-.034-.8189L16.5129,4.0259A11.9652,11.9652,0,0,1,26.3762,22H23a1,1,0,0,0-1,1v3.3765A11.9578,11.9578,0,0,1,4.7,20Z\"\n })), children);\n});\nvar EarthSoutheastAsiaFilled20 = /*#__PURE__*/React.forwardRef(function EarthSoutheastAsiaFilled20(_ref38, ref) {\n var children = _ref38.children,\n rest = _objectWithoutProperties(_ref38, _excluded38);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path44 || (_path44 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 22H19V24H17zM17 18H19V20H17zM14 24H17V26H14z\"\n })), _path45 || (_path45 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2ZM4.7,20H6l4.1772,2.6a1,1,0,0,0,1.36-.2939l1.0078-1.5118a1,1,0,0,0-.125-1.2617L10,17.1118,11,14h5.323a1,1,0,0,0,.9285-.6284L18.8333,9.417a1,1,0,0,0-.034-.8189L16.5129,4.0259A11.9652,11.9652,0,0,1,26.3762,22H23a1,1,0,0,0-1,1v3.3765A11.9578,11.9578,0,0,1,4.7,20Z\"\n })), children);\n});\nvar EarthSoutheastAsiaFilled16 = /*#__PURE__*/React.forwardRef(function EarthSoutheastAsiaFilled16(_ref39, ref) {\n var children = _ref39.children,\n rest = _objectWithoutProperties(_ref39, _excluded39);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path46 || (_path46 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 22H19V24H17zM17 18H19V20H17zM14 24H17V26H14z\"\n })), _path47 || (_path47 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2ZM4.7,20H6l4.1772,2.6a1,1,0,0,0,1.36-.2939l1.0078-1.5118a1,1,0,0,0-.125-1.2617L10,17.1118,11,14h5.323a1,1,0,0,0,.9285-.6284L18.8333,9.417a1,1,0,0,0-.034-.8189L16.5129,4.0259A11.9652,11.9652,0,0,1,26.3762,22H23a1,1,0,0,0-1,1v3.3765A11.9578,11.9578,0,0,1,4.7,20Z\"\n })), children);\n});\nvar Earthquake32 = /*#__PURE__*/React.forwardRef(function Earthquake32(_ref40, ref) {\n var children = _ref40.children,\n rest = _objectWithoutProperties(_ref40, _excluded40);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path48 || (_path48 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16.6123,2.2139a1.0094,1.0094,0,0,0-1.2427,0L1,13.4194l1.2427,1.5718L4,13.6211V26a2.0041,2.0041,0,0,0,2,2H26a2.0037,2.0037,0,0,0,2-2V13.63L29.7573,15,31,13.4282ZM6,12.0615,15,5.05v7.3638l3.458,3.458-6.7344,4.8105L14.3818,26H6ZM26,26H16.6182l-2.3418-4.6826,7.2656-5.1895L17,11.5859V5.0518l9,7.02Z\"\n })), children);\n});\nvar Earthquake24 = /*#__PURE__*/React.forwardRef(function Earthquake24(_ref41, ref) {\n var children = _ref41.children,\n rest = _objectWithoutProperties(_ref41, _excluded41);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path49 || (_path49 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16.6123,2.2139a1.0094,1.0094,0,0,0-1.2427,0L1,13.4194l1.2427,1.5718L4,13.6211V26a2.0041,2.0041,0,0,0,2,2H26a2.0037,2.0037,0,0,0,2-2V13.63L29.7573,15,31,13.4282ZM6,12.0615,15,5.05v7.3638l3.458,3.458-6.7344,4.8105L14.3818,26H6ZM26,26H16.6182l-2.3418-4.6826,7.2656-5.1895L17,11.5859V5.0518l9,7.02Z\"\n })), children);\n});\nvar Earthquake20 = /*#__PURE__*/React.forwardRef(function Earthquake20(_ref42, ref) {\n var children = _ref42.children,\n rest = _objectWithoutProperties(_ref42, _excluded42);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path50 || (_path50 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16.6123,2.2139a1.0094,1.0094,0,0,0-1.2427,0L1,13.4194l1.2427,1.5718L4,13.6211V26a2.0041,2.0041,0,0,0,2,2H26a2.0037,2.0037,0,0,0,2-2V13.63L29.7573,15,31,13.4282ZM6,12.0615,15,5.05v7.3638l3.458,3.458-6.7344,4.8105L14.3818,26H6ZM26,26H16.6182l-2.3418-4.6826,7.2656-5.1895L17,11.5859V5.0518l9,7.02Z\"\n })), children);\n});\nvar Earthquake16 = /*#__PURE__*/React.forwardRef(function Earthquake16(_ref43, ref) {\n var children = _ref43.children,\n rest = _objectWithoutProperties(_ref43, _excluded43);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path51 || (_path51 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16.6123,2.2139a1.0094,1.0094,0,0,0-1.2427,0L1,13.4194l1.2427,1.5718L4,13.6211V26a2.0041,2.0041,0,0,0,2,2H26a2.0037,2.0037,0,0,0,2-2V13.63L29.7573,15,31,13.4282ZM6,12.0615,15,5.05v7.3638l3.458,3.458-6.7344,4.8105L14.3818,26H6ZM26,26H16.6182l-2.3418-4.6826,7.2656-5.1895L17,11.5859V5.0518l9,7.02Z\"\n })), children);\n});\nvar EdgeCluster32 = /*#__PURE__*/React.forwardRef(function EdgeCluster32(_ref44, ref) {\n var children = _ref44.children,\n rest = _objectWithoutProperties(_ref44, _excluded44);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path52 || (_path52 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 7a3 3 0 113-3A3.0033 3.0033 0 0116 7zm0-4a1 1 0 101 1A1.001 1.001 0 0016 3zM11 30a3 3 0 113-3A3.0033 3.0033 0 0111 30zm0-4a1 1 0 101 1A1.001 1.001 0 0011 26zM7 11a3 3 0 113-3A3.0033 3.0033 0 017 11zM7 7A1 1 0 108 8 1.001 1.001 0 007 7zM21 30a3 3 0 113-3A3.0033 3.0033 0 0121 30zm0-4a1 1 0 101 1A1.001 1.001 0 0021 26zM25 11a3 3 0 113-3A3.0033 3.0033 0 0125 11zm0-4a1 1 0 101 1A1.001 1.001 0 0025 7zM4 21a3 3 0 113-3A3.0033 3.0033 0 014 21zm0-4a1 1 0 101 1A1.001 1.001 0 004 17zM28 21a3 3 0 113-3A3.0033 3.0033 0 0128 21zm0-4a1 1 0 101 1A1.001 1.001 0 0028 17zM16 22a6 6 0 116-6A6.0069 6.0069 0 0116 22zm0-10a4 4 0 104 4A4.0045 4.0045 0 0016 12z\"\n })), children);\n});\nvar EdgeCluster24 = /*#__PURE__*/React.forwardRef(function EdgeCluster24(_ref45, ref) {\n var children = _ref45.children,\n rest = _objectWithoutProperties(_ref45, _excluded45);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path53 || (_path53 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 7a3 3 0 113-3A3.0033 3.0033 0 0116 7zm0-4a1 1 0 101 1A1.001 1.001 0 0016 3zM11 30a3 3 0 113-3A3.0033 3.0033 0 0111 30zm0-4a1 1 0 101 1A1.001 1.001 0 0011 26zM7 11a3 3 0 113-3A3.0033 3.0033 0 017 11zM7 7A1 1 0 108 8 1.001 1.001 0 007 7zM21 30a3 3 0 113-3A3.0033 3.0033 0 0121 30zm0-4a1 1 0 101 1A1.001 1.001 0 0021 26zM25 11a3 3 0 113-3A3.0033 3.0033 0 0125 11zm0-4a1 1 0 101 1A1.001 1.001 0 0025 7zM4 21a3 3 0 113-3A3.0033 3.0033 0 014 21zm0-4a1 1 0 101 1A1.001 1.001 0 004 17zM28 21a3 3 0 113-3A3.0033 3.0033 0 0128 21zm0-4a1 1 0 101 1A1.001 1.001 0 0028 17zM16 22a6 6 0 116-6A6.0069 6.0069 0 0116 22zm0-10a4 4 0 104 4A4.0045 4.0045 0 0016 12z\"\n })), children);\n});\nvar EdgeCluster20 = /*#__PURE__*/React.forwardRef(function EdgeCluster20(_ref46, ref) {\n var children = _ref46.children,\n rest = _objectWithoutProperties(_ref46, _excluded46);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path54 || (_path54 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 7a3 3 0 113-3A3.0033 3.0033 0 0116 7zm0-4a1 1 0 101 1A1.001 1.001 0 0016 3zM11 30a3 3 0 113-3A3.0033 3.0033 0 0111 30zm0-4a1 1 0 101 1A1.001 1.001 0 0011 26zM7 11a3 3 0 113-3A3.0033 3.0033 0 017 11zM7 7A1 1 0 108 8 1.001 1.001 0 007 7zM21 30a3 3 0 113-3A3.0033 3.0033 0 0121 30zm0-4a1 1 0 101 1A1.001 1.001 0 0021 26zM25 11a3 3 0 113-3A3.0033 3.0033 0 0125 11zm0-4a1 1 0 101 1A1.001 1.001 0 0025 7zM4 21a3 3 0 113-3A3.0033 3.0033 0 014 21zm0-4a1 1 0 101 1A1.001 1.001 0 004 17zM28 21a3 3 0 113-3A3.0033 3.0033 0 0128 21zm0-4a1 1 0 101 1A1.001 1.001 0 0028 17zM16 22a6 6 0 116-6A6.0069 6.0069 0 0116 22zm0-10a4 4 0 104 4A4.0045 4.0045 0 0016 12z\"\n })), children);\n});\nvar EdgeCluster16 = /*#__PURE__*/React.forwardRef(function EdgeCluster16(_ref47, ref) {\n var children = _ref47.children,\n rest = _objectWithoutProperties(_ref47, _excluded47);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path55 || (_path55 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 7a3 3 0 113-3A3.0033 3.0033 0 0116 7zm0-4a1 1 0 101 1A1.001 1.001 0 0016 3zM11 30a3 3 0 113-3A3.0033 3.0033 0 0111 30zm0-4a1 1 0 101 1A1.001 1.001 0 0011 26zM7 11a3 3 0 113-3A3.0033 3.0033 0 017 11zM7 7A1 1 0 108 8 1.001 1.001 0 007 7zM21 30a3 3 0 113-3A3.0033 3.0033 0 0121 30zm0-4a1 1 0 101 1A1.001 1.001 0 0021 26zM25 11a3 3 0 113-3A3.0033 3.0033 0 0125 11zm0-4a1 1 0 101 1A1.001 1.001 0 0025 7zM4 21a3 3 0 113-3A3.0033 3.0033 0 014 21zm0-4a1 1 0 101 1A1.001 1.001 0 004 17zM28 21a3 3 0 113-3A3.0033 3.0033 0 0128 21zm0-4a1 1 0 101 1A1.001 1.001 0 0028 17zM16 22a6 6 0 116-6A6.0069 6.0069 0 0116 22zm0-10a4 4 0 104 4A4.0045 4.0045 0 0016 12z\"\n })), children);\n});\nvar EdgeDevice32 = /*#__PURE__*/React.forwardRef(function EdgeDevice32(_ref48, ref) {\n var children = _ref48.children,\n rest = _objectWithoutProperties(_ref48, _excluded48);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path56 || (_path56 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 21H23V23H9zM11 14a2 2 0 102 2A1.9806 1.9806 0 0011 14zM21 14a2 2 0 102 2A1.9806 1.9806 0 0021 14z\"\n })), _path57 || (_path57 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,8H18.4141l2.0722-2.0723A2.04,2.04,0,0,0,21,6a2,2,0,1,0-2-2,2.0412,2.0412,0,0,0,.0723.5137L15.5859,8H4a2.0025,2.0025,0,0,0-2,2V26a2.0025,2.0025,0,0,0,2,2H28a2.0025,2.0025,0,0,0,2-2V10A2.0025,2.0025,0,0,0,28,8ZM4,26V10H28V26Z\"\n })), children);\n});\nvar EdgeDevice24 = /*#__PURE__*/React.forwardRef(function EdgeDevice24(_ref49, ref) {\n var children = _ref49.children,\n rest = _objectWithoutProperties(_ref49, _excluded49);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path58 || (_path58 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 21H23V23H9zM11 14a2 2 0 102 2A1.9806 1.9806 0 0011 14zM21 14a2 2 0 102 2A1.9806 1.9806 0 0021 14z\"\n })), _path59 || (_path59 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,8H18.4141l2.0722-2.0723A2.04,2.04,0,0,0,21,6a2,2,0,1,0-2-2,2.0412,2.0412,0,0,0,.0723.5137L15.5859,8H4a2.0025,2.0025,0,0,0-2,2V26a2.0025,2.0025,0,0,0,2,2H28a2.0025,2.0025,0,0,0,2-2V10A2.0025,2.0025,0,0,0,28,8ZM4,26V10H28V26Z\"\n })), children);\n});\nvar EdgeDevice20 = /*#__PURE__*/React.forwardRef(function EdgeDevice20(_ref50, ref) {\n var children = _ref50.children,\n rest = _objectWithoutProperties(_ref50, _excluded50);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path60 || (_path60 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 21H23V23H9zM11 14a2 2 0 102 2A1.9806 1.9806 0 0011 14zM21 14a2 2 0 102 2A1.9806 1.9806 0 0021 14z\"\n })), _path61 || (_path61 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,8H18.4141l2.0722-2.0723A2.04,2.04,0,0,0,21,6a2,2,0,1,0-2-2,2.0412,2.0412,0,0,0,.0723.5137L15.5859,8H4a2.0025,2.0025,0,0,0-2,2V26a2.0025,2.0025,0,0,0,2,2H28a2.0025,2.0025,0,0,0,2-2V10A2.0025,2.0025,0,0,0,28,8ZM4,26V10H28V26Z\"\n })), children);\n});\nvar EdgeDevice16 = /*#__PURE__*/React.forwardRef(function EdgeDevice16(_ref51, ref) {\n var children = _ref51.children,\n rest = _objectWithoutProperties(_ref51, _excluded51);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path62 || (_path62 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 21H23V23H9zM11 14a2 2 0 102 2A1.9806 1.9806 0 0011 14zM21 14a2 2 0 102 2A1.9806 1.9806 0 0021 14z\"\n })), _path63 || (_path63 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,8H18.4141l2.0722-2.0723A2.04,2.04,0,0,0,21,6a2,2,0,1,0-2-2,2.0412,2.0412,0,0,0,.0723.5137L15.5859,8H4a2.0025,2.0025,0,0,0-2,2V26a2.0025,2.0025,0,0,0,2,2H28a2.0025,2.0025,0,0,0,2-2V10A2.0025,2.0025,0,0,0,28,8ZM4,26V10H28V26Z\"\n })), children);\n});\nvar WatsonHealthEdgeEnhancement32 = /*#__PURE__*/React.forwardRef(function WatsonHealthEdgeEnhancement32(_ref52, ref) {\n var children = _ref52.children,\n rest = _objectWithoutProperties(_ref52, _excluded52);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path64 || (_path64 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.8164 4.7646L11.1328 2.887A13.976 13.976 0 006.9507 5.3278L8.2358 6.8593A11.9729 11.9729 0 0111.8164 4.7646zM5.5913 10L3.86 9a14.14 14.14 0 00-1.6382 4.5872l1.9677.3469A12.1519 12.1519 0 015.5913 10zM16 26A10 10 0 0016 6h0z\"\n })), _path65 || (_path65 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,16A14,14,0,0,0,16,2V4a11.9933,11.9933,0,0,1,4.0493,23.2847c-.1682.06-.334.1294-.5044.1821-.2512.0771-.51.1362-.7683.1973-.1262.03-.25.0693-.3772.0952-.2908.0591-.5884.0976-.8862.1352-.1.0122-.1983.0342-.2988.044A12.0015,12.0015,0,0,1,5.416,21.6548c-.0664-.127-.133-.2534-.1953-.3843-.0547-.1123-.106-.227-.1572-.3413A13.1207,13.1207,0,0,1,4.19,18l-1.9677.4131A13.9173,13.9173,0,0,0,2.7,20.2993l-.0251.0083A13.9615,13.9615,0,0,0,16,30q.7134,0,1.415-.0713c.135-.0137.2654-.042.3995-.06.3286-.0424.6574-.0839.9814-.1494.18-.0366.3533-.0908.5308-.1338.2685-.0659.5383-.125.8027-.2065.2463-.0762.4831-.1724.7234-.2612.18-.0664.3635-.1211.5412-.1953l-.0009-.0025A14.0015,14.0015,0,0,0,30,16Z\"\n })), children);\n});\nvar WatsonHealthEdgeEnhancement24 = /*#__PURE__*/React.forwardRef(function WatsonHealthEdgeEnhancement24(_ref53, ref) {\n var children = _ref53.children,\n rest = _objectWithoutProperties(_ref53, _excluded53);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path66 || (_path66 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.8164 4.7646L11.1328 2.887A13.976 13.976 0 006.9507 5.3278L8.2358 6.8593A11.9729 11.9729 0 0111.8164 4.7646zM5.5913 10L3.86 9a14.14 14.14 0 00-1.6382 4.5872l1.9677.3469A12.1519 12.1519 0 015.5913 10zM16 26A10 10 0 0016 6h0z\"\n })), _path67 || (_path67 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,16A14,14,0,0,0,16,2V4a11.9933,11.9933,0,0,1,4.0493,23.2847c-.1682.06-.334.1294-.5044.1821-.2512.0771-.51.1362-.7683.1973-.1262.03-.25.0693-.3772.0952-.2908.0591-.5884.0976-.8862.1352-.1.0122-.1983.0342-.2988.044A12.0015,12.0015,0,0,1,5.416,21.6548c-.0664-.127-.133-.2534-.1953-.3843-.0547-.1123-.106-.227-.1572-.3413A13.1207,13.1207,0,0,1,4.19,18l-1.9677.4131A13.9173,13.9173,0,0,0,2.7,20.2993l-.0251.0083A13.9615,13.9615,0,0,0,16,30q.7134,0,1.415-.0713c.135-.0137.2654-.042.3995-.06.3286-.0424.6574-.0839.9814-.1494.18-.0366.3533-.0908.5308-.1338.2685-.0659.5383-.125.8027-.2065.2463-.0762.4831-.1724.7234-.2612.18-.0664.3635-.1211.5412-.1953l-.0009-.0025A14.0015,14.0015,0,0,0,30,16Z\"\n })), children);\n});\nvar WatsonHealthEdgeEnhancement20 = /*#__PURE__*/React.forwardRef(function WatsonHealthEdgeEnhancement20(_ref54, ref) {\n var children = _ref54.children,\n rest = _objectWithoutProperties(_ref54, _excluded54);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path68 || (_path68 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.8164 4.7646L11.1328 2.887A13.976 13.976 0 006.9507 5.3278L8.2358 6.8593A11.9729 11.9729 0 0111.8164 4.7646zM5.5913 10L3.86 9a14.14 14.14 0 00-1.6382 4.5872l1.9677.3469A12.1519 12.1519 0 015.5913 10zM16 26A10 10 0 0016 6h0z\"\n })), _path69 || (_path69 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,16A14,14,0,0,0,16,2V4a11.9933,11.9933,0,0,1,4.0493,23.2847c-.1682.06-.334.1294-.5044.1821-.2512.0771-.51.1362-.7683.1973-.1262.03-.25.0693-.3772.0952-.2908.0591-.5884.0976-.8862.1352-.1.0122-.1983.0342-.2988.044A12.0015,12.0015,0,0,1,5.416,21.6548c-.0664-.127-.133-.2534-.1953-.3843-.0547-.1123-.106-.227-.1572-.3413A13.1207,13.1207,0,0,1,4.19,18l-1.9677.4131A13.9173,13.9173,0,0,0,2.7,20.2993l-.0251.0083A13.9615,13.9615,0,0,0,16,30q.7134,0,1.415-.0713c.135-.0137.2654-.042.3995-.06.3286-.0424.6574-.0839.9814-.1494.18-.0366.3533-.0908.5308-.1338.2685-.0659.5383-.125.8027-.2065.2463-.0762.4831-.1724.7234-.2612.18-.0664.3635-.1211.5412-.1953l-.0009-.0025A14.0015,14.0015,0,0,0,30,16Z\"\n })), children);\n});\nvar WatsonHealthEdgeEnhancement16 = /*#__PURE__*/React.forwardRef(function WatsonHealthEdgeEnhancement16(_ref55, ref) {\n var children = _ref55.children,\n rest = _objectWithoutProperties(_ref55, _excluded55);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path70 || (_path70 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.8164 4.7646L11.1328 2.887A13.976 13.976 0 006.9507 5.3278L8.2358 6.8593A11.9729 11.9729 0 0111.8164 4.7646zM5.5913 10L3.86 9a14.14 14.14 0 00-1.6382 4.5872l1.9677.3469A12.1519 12.1519 0 015.5913 10zM16 26A10 10 0 0016 6h0z\"\n })), _path71 || (_path71 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,16A14,14,0,0,0,16,2V4a11.9933,11.9933,0,0,1,4.0493,23.2847c-.1682.06-.334.1294-.5044.1821-.2512.0771-.51.1362-.7683.1973-.1262.03-.25.0693-.3772.0952-.2908.0591-.5884.0976-.8862.1352-.1.0122-.1983.0342-.2988.044A12.0015,12.0015,0,0,1,5.416,21.6548c-.0664-.127-.133-.2534-.1953-.3843-.0547-.1123-.106-.227-.1572-.3413A13.1207,13.1207,0,0,1,4.19,18l-1.9677.4131A13.9173,13.9173,0,0,0,2.7,20.2993l-.0251.0083A13.9615,13.9615,0,0,0,16,30q.7134,0,1.415-.0713c.135-.0137.2654-.042.3995-.06.3286-.0424.6574-.0839.9814-.1494.18-.0366.3533-.0908.5308-.1338.2685-.0659.5383-.125.8027-.2065.2463-.0762.4831-.1724.7234-.2612.18-.0664.3635-.1211.5412-.1953l-.0009-.0025A14.0015,14.0015,0,0,0,30,16Z\"\n })), children);\n});\nvar WatsonHealthEdgeEnhancement_0132 = /*#__PURE__*/React.forwardRef(function WatsonHealthEdgeEnhancement_0132(_ref56, ref) {\n var children = _ref56.children,\n rest = _objectWithoutProperties(_ref56, _excluded56);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path72 || (_path72 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 28L26 20 24 20 24 21 22 21 22 23 24 23 24 28 22 28 22 30 28 30 28 28 26 28zM28 16h2A14 14 0 0016 2V4A12 12 0 0128 16z\"\n })), _path73 || (_path73 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 16A10 10 0 0016 6V16zM16 28A11.96 11.96 0 015.416 21.6548c-.0664-.127-.133-.2534-.1953-.3843-.0547-.1123-.106-.227-.1572-.3413A13.1207 13.1207 0 014.19 18l-1.9677.4131A13.9173 13.9173 0 002.7 20.2993l-.0251.0083A13.9615 13.9615 0 0016 30zM5.5913 10L3.86 9a14.14 14.14 0 00-1.6382 4.5872l1.9677.3469A12.1519 12.1519 0 015.5913 10zM11.8164 4.7646L11.1328 2.887A13.976 13.976 0 006.9507 5.3278L8.2358 6.8593A11.9729 11.9729 0 0111.8164 4.7646z\"\n })), children);\n});\nvar WatsonHealthEdgeEnhancement_0124 = /*#__PURE__*/React.forwardRef(function WatsonHealthEdgeEnhancement_0124(_ref57, ref) {\n var children = _ref57.children,\n rest = _objectWithoutProperties(_ref57, _excluded57);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path74 || (_path74 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 28L26 20 24 20 24 21 22 21 22 23 24 23 24 28 22 28 22 30 28 30 28 28 26 28zM28 16h2A14 14 0 0016 2V4A12 12 0 0128 16z\"\n })), _path75 || (_path75 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 16A10 10 0 0016 6V16zM16 28A11.96 11.96 0 015.416 21.6548c-.0664-.127-.133-.2534-.1953-.3843-.0547-.1123-.106-.227-.1572-.3413A13.1207 13.1207 0 014.19 18l-1.9677.4131A13.9173 13.9173 0 002.7 20.2993l-.0251.0083A13.9615 13.9615 0 0016 30zM5.5913 10L3.86 9a14.14 14.14 0 00-1.6382 4.5872l1.9677.3469A12.1519 12.1519 0 015.5913 10zM11.8164 4.7646L11.1328 2.887A13.976 13.976 0 006.9507 5.3278L8.2358 6.8593A11.9729 11.9729 0 0111.8164 4.7646z\"\n })), children);\n});\nvar WatsonHealthEdgeEnhancement_0120 = /*#__PURE__*/React.forwardRef(function WatsonHealthEdgeEnhancement_0120(_ref58, ref) {\n var children = _ref58.children,\n rest = _objectWithoutProperties(_ref58, _excluded58);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path76 || (_path76 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 28L26 20 24 20 24 21 22 21 22 23 24 23 24 28 22 28 22 30 28 30 28 28 26 28zM28 16h2A14 14 0 0016 2V4A12 12 0 0128 16z\"\n })), _path77 || (_path77 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 16A10 10 0 0016 6V16zM16 28A11.96 11.96 0 015.416 21.6548c-.0664-.127-.133-.2534-.1953-.3843-.0547-.1123-.106-.227-.1572-.3413A13.1207 13.1207 0 014.19 18l-1.9677.4131A13.9173 13.9173 0 002.7 20.2993l-.0251.0083A13.9615 13.9615 0 0016 30zM5.5913 10L3.86 9a14.14 14.14 0 00-1.6382 4.5872l1.9677.3469A12.1519 12.1519 0 015.5913 10zM11.8164 4.7646L11.1328 2.887A13.976 13.976 0 006.9507 5.3278L8.2358 6.8593A11.9729 11.9729 0 0111.8164 4.7646z\"\n })), children);\n});\nvar WatsonHealthEdgeEnhancement_0116 = /*#__PURE__*/React.forwardRef(function WatsonHealthEdgeEnhancement_0116(_ref59, ref) {\n var children = _ref59.children,\n rest = _objectWithoutProperties(_ref59, _excluded59);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path78 || (_path78 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 28L26 20 24 20 24 21 22 21 22 23 24 23 24 28 22 28 22 30 28 30 28 28 26 28zM28 16h2A14 14 0 0016 2V4A12 12 0 0128 16z\"\n })), _path79 || (_path79 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 16A10 10 0 0016 6V16zM16 28A11.96 11.96 0 015.416 21.6548c-.0664-.127-.133-.2534-.1953-.3843-.0547-.1123-.106-.227-.1572-.3413A13.1207 13.1207 0 014.19 18l-1.9677.4131A13.9173 13.9173 0 002.7 20.2993l-.0251.0083A13.9615 13.9615 0 0016 30zM5.5913 10L3.86 9a14.14 14.14 0 00-1.6382 4.5872l1.9677.3469A12.1519 12.1519 0 015.5913 10zM11.8164 4.7646L11.1328 2.887A13.976 13.976 0 006.9507 5.3278L8.2358 6.8593A11.9729 11.9729 0 0111.8164 4.7646z\"\n })), children);\n});\nvar WatsonHealthEdgeEnhancement_0232 = /*#__PURE__*/React.forwardRef(function WatsonHealthEdgeEnhancement_0232(_ref60, ref) {\n var children = _ref60.children,\n rest = _objectWithoutProperties(_ref60, _excluded60);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path80 || (_path80 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 30H22V26a2.002 2.002 0 012-2h2V22H22V20h4a2.0023 2.0023 0 012 2v2a2.0023 2.0023 0 01-2 2H24v2h4zM28 16h2A14 14 0 0016 2V4A12 12 0 0128 16z\"\n })), _path81 || (_path81 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 16A10 10 0 0016 6V16zM16 28A11.96 11.96 0 015.416 21.6548c-.0664-.127-.133-.2534-.1953-.3843-.0547-.1123-.106-.227-.1572-.3413A13.1207 13.1207 0 014.19 18l-1.9677.4131A13.9173 13.9173 0 002.7 20.2993l-.0251.0083A13.9615 13.9615 0 0016 30zM5.5913 10L3.86 9a14.14 14.14 0 00-1.6382 4.5872l1.9677.3469A12.1519 12.1519 0 015.5913 10zM11.8164 4.7646L11.1328 2.887A13.976 13.976 0 006.9507 5.3278L8.2358 6.8593A11.9729 11.9729 0 0111.8164 4.7646z\"\n })), children);\n});\nvar WatsonHealthEdgeEnhancement_0224 = /*#__PURE__*/React.forwardRef(function WatsonHealthEdgeEnhancement_0224(_ref61, ref) {\n var children = _ref61.children,\n rest = _objectWithoutProperties(_ref61, _excluded61);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path82 || (_path82 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 30H22V26a2.002 2.002 0 012-2h2V22H22V20h4a2.0023 2.0023 0 012 2v2a2.0023 2.0023 0 01-2 2H24v2h4zM28 16h2A14 14 0 0016 2V4A12 12 0 0128 16z\"\n })), _path83 || (_path83 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 16A10 10 0 0016 6V16zM16 28A11.96 11.96 0 015.416 21.6548c-.0664-.127-.133-.2534-.1953-.3843-.0547-.1123-.106-.227-.1572-.3413A13.1207 13.1207 0 014.19 18l-1.9677.4131A13.9173 13.9173 0 002.7 20.2993l-.0251.0083A13.9615 13.9615 0 0016 30zM5.5913 10L3.86 9a14.14 14.14 0 00-1.6382 4.5872l1.9677.3469A12.1519 12.1519 0 015.5913 10zM11.8164 4.7646L11.1328 2.887A13.976 13.976 0 006.9507 5.3278L8.2358 6.8593A11.9729 11.9729 0 0111.8164 4.7646z\"\n })), children);\n});\nvar WatsonHealthEdgeEnhancement_0220 = /*#__PURE__*/React.forwardRef(function WatsonHealthEdgeEnhancement_0220(_ref62, ref) {\n var children = _ref62.children,\n rest = _objectWithoutProperties(_ref62, _excluded62);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path84 || (_path84 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 30H22V26a2.002 2.002 0 012-2h2V22H22V20h4a2.0023 2.0023 0 012 2v2a2.0023 2.0023 0 01-2 2H24v2h4zM28 16h2A14 14 0 0016 2V4A12 12 0 0128 16z\"\n })), _path85 || (_path85 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 16A10 10 0 0016 6V16zM16 28A11.96 11.96 0 015.416 21.6548c-.0664-.127-.133-.2534-.1953-.3843-.0547-.1123-.106-.227-.1572-.3413A13.1207 13.1207 0 014.19 18l-1.9677.4131A13.9173 13.9173 0 002.7 20.2993l-.0251.0083A13.9615 13.9615 0 0016 30zM5.5913 10L3.86 9a14.14 14.14 0 00-1.6382 4.5872l1.9677.3469A12.1519 12.1519 0 015.5913 10zM11.8164 4.7646L11.1328 2.887A13.976 13.976 0 006.9507 5.3278L8.2358 6.8593A11.9729 11.9729 0 0111.8164 4.7646z\"\n })), children);\n});\nvar WatsonHealthEdgeEnhancement_0216 = /*#__PURE__*/React.forwardRef(function WatsonHealthEdgeEnhancement_0216(_ref63, ref) {\n var children = _ref63.children,\n rest = _objectWithoutProperties(_ref63, _excluded63);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path86 || (_path86 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 30H22V26a2.002 2.002 0 012-2h2V22H22V20h4a2.0023 2.0023 0 012 2v2a2.0023 2.0023 0 01-2 2H24v2h4zM28 16h2A14 14 0 0016 2V4A12 12 0 0128 16z\"\n })), _path87 || (_path87 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 16A10 10 0 0016 6V16zM16 28A11.96 11.96 0 015.416 21.6548c-.0664-.127-.133-.2534-.1953-.3843-.0547-.1123-.106-.227-.1572-.3413A13.1207 13.1207 0 014.19 18l-1.9677.4131A13.9173 13.9173 0 002.7 20.2993l-.0251.0083A13.9615 13.9615 0 0016 30zM5.5913 10L3.86 9a14.14 14.14 0 00-1.6382 4.5872l1.9677.3469A12.1519 12.1519 0 015.5913 10zM11.8164 4.7646L11.1328 2.887A13.976 13.976 0 006.9507 5.3278L8.2358 6.8593A11.9729 11.9729 0 0111.8164 4.7646z\"\n })), children);\n});\nvar WatsonHealthEdgeEnhancement_0332 = /*#__PURE__*/React.forwardRef(function WatsonHealthEdgeEnhancement_0332(_ref64, ref) {\n var children = _ref64.children,\n rest = _objectWithoutProperties(_ref64, _excluded64);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path88 || (_path88 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 20H22v2h4v2H23v2h3v2H22v2h4a2.0027 2.0027 0 002-2V22A2.0023 2.0023 0 0026 20zM28 16h2A14 14 0 0016 2V4A12 12 0 0128 16z\"\n })), _path89 || (_path89 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 16A10 10 0 0016 6V16zM16 28A11.96 11.96 0 015.416 21.6548c-.0664-.127-.133-.2534-.1953-.3843-.0547-.1123-.106-.227-.1572-.3413A13.1207 13.1207 0 014.19 18l-1.9677.4131A13.9173 13.9173 0 002.7 20.2993l-.0251.0083A13.9615 13.9615 0 0016 30zM5.5913 10L3.86 9a14.14 14.14 0 00-1.6382 4.5872l1.9677.3469A12.1519 12.1519 0 015.5913 10zM11.8164 4.7646L11.1328 2.887A13.976 13.976 0 006.9507 5.3278L8.2358 6.8593A11.9729 11.9729 0 0111.8164 4.7646z\"\n })), children);\n});\nvar WatsonHealthEdgeEnhancement_0324 = /*#__PURE__*/React.forwardRef(function WatsonHealthEdgeEnhancement_0324(_ref65, ref) {\n var children = _ref65.children,\n rest = _objectWithoutProperties(_ref65, _excluded65);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path90 || (_path90 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 20H22v2h4v2H23v2h3v2H22v2h4a2.0027 2.0027 0 002-2V22A2.0023 2.0023 0 0026 20zM28 16h2A14 14 0 0016 2V4A12 12 0 0128 16z\"\n })), _path91 || (_path91 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 16A10 10 0 0016 6V16zM16 28A11.96 11.96 0 015.416 21.6548c-.0664-.127-.133-.2534-.1953-.3843-.0547-.1123-.106-.227-.1572-.3413A13.1207 13.1207 0 014.19 18l-1.9677.4131A13.9173 13.9173 0 002.7 20.2993l-.0251.0083A13.9615 13.9615 0 0016 30zM5.5913 10L3.86 9a14.14 14.14 0 00-1.6382 4.5872l1.9677.3469A12.1519 12.1519 0 015.5913 10zM11.8164 4.7646L11.1328 2.887A13.976 13.976 0 006.9507 5.3278L8.2358 6.8593A11.9729 11.9729 0 0111.8164 4.7646z\"\n })), children);\n});\nvar WatsonHealthEdgeEnhancement_0320 = /*#__PURE__*/React.forwardRef(function WatsonHealthEdgeEnhancement_0320(_ref66, ref) {\n var children = _ref66.children,\n rest = _objectWithoutProperties(_ref66, _excluded66);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path92 || (_path92 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 20H22v2h4v2H23v2h3v2H22v2h4a2.0027 2.0027 0 002-2V22A2.0023 2.0023 0 0026 20zM28 16h2A14 14 0 0016 2V4A12 12 0 0128 16z\"\n })), _path93 || (_path93 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 16A10 10 0 0016 6V16zM16 28A11.96 11.96 0 015.416 21.6548c-.0664-.127-.133-.2534-.1953-.3843-.0547-.1123-.106-.227-.1572-.3413A13.1207 13.1207 0 014.19 18l-1.9677.4131A13.9173 13.9173 0 002.7 20.2993l-.0251.0083A13.9615 13.9615 0 0016 30zM5.5913 10L3.86 9a14.14 14.14 0 00-1.6382 4.5872l1.9677.3469A12.1519 12.1519 0 015.5913 10zM11.8164 4.7646L11.1328 2.887A13.976 13.976 0 006.9507 5.3278L8.2358 6.8593A11.9729 11.9729 0 0111.8164 4.7646z\"\n })), children);\n});\nvar WatsonHealthEdgeEnhancement_0316 = /*#__PURE__*/React.forwardRef(function WatsonHealthEdgeEnhancement_0316(_ref67, ref) {\n var children = _ref67.children,\n rest = _objectWithoutProperties(_ref67, _excluded67);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path94 || (_path94 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 20H22v2h4v2H23v2h3v2H22v2h4a2.0027 2.0027 0 002-2V22A2.0023 2.0023 0 0026 20zM28 16h2A14 14 0 0016 2V4A12 12 0 0128 16z\"\n })), _path95 || (_path95 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 16A10 10 0 0016 6V16zM16 28A11.96 11.96 0 015.416 21.6548c-.0664-.127-.133-.2534-.1953-.3843-.0547-.1123-.106-.227-.1572-.3413A13.1207 13.1207 0 014.19 18l-1.9677.4131A13.9173 13.9173 0 002.7 20.2993l-.0251.0083A13.9615 13.9615 0 0016 30zM5.5913 10L3.86 9a14.14 14.14 0 00-1.6382 4.5872l1.9677.3469A12.1519 12.1519 0 015.5913 10zM11.8164 4.7646L11.1328 2.887A13.976 13.976 0 006.9507 5.3278L8.2358 6.8593A11.9729 11.9729 0 0111.8164 4.7646z\"\n })), children);\n});\nvar EdgeNode32 = /*#__PURE__*/React.forwardRef(function EdgeNode32(_ref68, ref) {\n var children = _ref68.children,\n rest = _objectWithoutProperties(_ref68, _excluded68);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path96 || (_path96 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 6H26V10H22z\"\n })), _circle || (_circle = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"7\",\n r: \"1\"\n })), _circle2 || (_circle2 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"25\",\n cy: \"25\",\n r: \"1\"\n })), _circle3 || (_circle3 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"25\",\n cy: \"21\",\n r: \"1\"\n })), _circle4 || (_circle4 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"25\",\n cy: \"17\",\n r: \"1\"\n })), _path97 || (_path97 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,17V15H20V14a2.0023,2.0023,0,0,0-2-2H17V10H15v2H13V10H11v2H10a2.0023,2.0023,0,0,0-2,2v1H6v2H8v2H6v2H8v1a2.0023,2.0023,0,0,0,2,2h1v2h2V24h2v2h2V24h1a2.0023,2.0023,0,0,0,2-2V21h2V19H20V17Zm-4,5H10V14h8Z\"\n })), _path98 || (_path98 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,30H4a2.0021,2.0021,0,0,1-2-2V4A2.0021,2.0021,0,0,1,4,2H28a2.0021,2.0021,0,0,1,2,2V28A2.0021,2.0021,0,0,1,28,30ZM4,4V28H28V4Z\"\n })), children);\n});\nvar EdgeNode24 = /*#__PURE__*/React.forwardRef(function EdgeNode24(_ref69, ref) {\n var children = _ref69.children,\n rest = _objectWithoutProperties(_ref69, _excluded69);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path99 || (_path99 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 6H26V10H22z\"\n })), _circle5 || (_circle5 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"7\",\n r: \"1\"\n })), _circle6 || (_circle6 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"25\",\n cy: \"25\",\n r: \"1\"\n })), _circle7 || (_circle7 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"25\",\n cy: \"21\",\n r: \"1\"\n })), _circle8 || (_circle8 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"25\",\n cy: \"17\",\n r: \"1\"\n })), _path100 || (_path100 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,17V15H20V14a2.0023,2.0023,0,0,0-2-2H17V10H15v2H13V10H11v2H10a2.0023,2.0023,0,0,0-2,2v1H6v2H8v2H6v2H8v1a2.0023,2.0023,0,0,0,2,2h1v2h2V24h2v2h2V24h1a2.0023,2.0023,0,0,0,2-2V21h2V19H20V17Zm-4,5H10V14h8Z\"\n })), _path101 || (_path101 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,30H4a2.0021,2.0021,0,0,1-2-2V4A2.0021,2.0021,0,0,1,4,2H28a2.0021,2.0021,0,0,1,2,2V28A2.0021,2.0021,0,0,1,28,30ZM4,4V28H28V4Z\"\n })), children);\n});\nvar EdgeNode20 = /*#__PURE__*/React.forwardRef(function EdgeNode20(_ref70, ref) {\n var children = _ref70.children,\n rest = _objectWithoutProperties(_ref70, _excluded70);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path102 || (_path102 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 6H26V10H22z\"\n })), _circle9 || (_circle9 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"7\",\n r: \"1\"\n })), _circle10 || (_circle10 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"25\",\n cy: \"25\",\n r: \"1\"\n })), _circle11 || (_circle11 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"25\",\n cy: \"21\",\n r: \"1\"\n })), _circle12 || (_circle12 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"25\",\n cy: \"17\",\n r: \"1\"\n })), _path103 || (_path103 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,17V15H20V14a2.0023,2.0023,0,0,0-2-2H17V10H15v2H13V10H11v2H10a2.0023,2.0023,0,0,0-2,2v1H6v2H8v2H6v2H8v1a2.0023,2.0023,0,0,0,2,2h1v2h2V24h2v2h2V24h1a2.0023,2.0023,0,0,0,2-2V21h2V19H20V17Zm-4,5H10V14h8Z\"\n })), _path104 || (_path104 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,30H4a2.0021,2.0021,0,0,1-2-2V4A2.0021,2.0021,0,0,1,4,2H28a2.0021,2.0021,0,0,1,2,2V28A2.0021,2.0021,0,0,1,28,30ZM4,4V28H28V4Z\"\n })), children);\n});\nvar EdgeNode16 = /*#__PURE__*/React.forwardRef(function EdgeNode16(_ref71, ref) {\n var children = _ref71.children,\n rest = _objectWithoutProperties(_ref71, _excluded71);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path105 || (_path105 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 6H26V10H22z\"\n })), _circle13 || (_circle13 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"7\",\n r: \"1\"\n })), _circle14 || (_circle14 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"25\",\n cy: \"25\",\n r: \"1\"\n })), _circle15 || (_circle15 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"25\",\n cy: \"21\",\n r: \"1\"\n })), _circle16 || (_circle16 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"25\",\n cy: \"17\",\n r: \"1\"\n })), _path106 || (_path106 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,17V15H20V14a2.0023,2.0023,0,0,0-2-2H17V10H15v2H13V10H11v2H10a2.0023,2.0023,0,0,0-2,2v1H6v2H8v2H6v2H8v1a2.0023,2.0023,0,0,0,2,2h1v2h2V24h2v2h2V24h1a2.0023,2.0023,0,0,0,2-2V21h2V19H20V17Zm-4,5H10V14h8Z\"\n })), _path107 || (_path107 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,30H4a2.0021,2.0021,0,0,1-2-2V4A2.0021,2.0021,0,0,1,4,2H28a2.0021,2.0021,0,0,1,2,2V28A2.0021,2.0021,0,0,1,28,30ZM4,4V28H28V4Z\"\n })), children);\n});\nvar EdgeNodeAlt32 = /*#__PURE__*/React.forwardRef(function EdgeNodeAlt32(_ref72, ref) {\n var children = _ref72.children,\n rest = _objectWithoutProperties(_ref72, _excluded72);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path108 || (_path108 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27,22a2.981,2.981,0,0,0-2.0374.811l-4.0039-2.4023a2.0429,2.0429,0,0,0,0-.8174l4.0039-2.4023A2.9909,2.9909,0,1,0,24,15a2.9345,2.9345,0,0,0,.0415.4092l-4.0039,2.4023a3,3,0,1,0,0,4.377l4.0039,2.4023A2.9345,2.9345,0,0,0,24,25a3,3,0,1,0,3-3Zm0-8a1,1,0,1,1-1,1A1.0009,1.0009,0,0,1,27,14Zm-9,7a1,1,0,1,1,1-1A1.0009,1.0009,0,0,1,18,21Zm9,5a1,1,0,1,1,1-1A1.0009,1.0009,0,0,1,27,26Z\"\n })), _circle17 || (_circle17 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"8\",\n r: \"1\"\n })), _circle18 || (_circle18 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"16\",\n r: \"1\"\n })), _circle19 || (_circle19 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"24\",\n r: \"1\"\n })), _path109 || (_path109 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,13V5a2.0023,2.0023,0,0,0-2-2H4A2.0023,2.0023,0,0,0,2,5V27a2.0023,2.0023,0,0,0,2,2H20V27H4V21h8V19H4V13ZM4,5H20v6H4Z\"\n })), children);\n});\nvar EdgeNodeAlt24 = /*#__PURE__*/React.forwardRef(function EdgeNodeAlt24(_ref73, ref) {\n var children = _ref73.children,\n rest = _objectWithoutProperties(_ref73, _excluded73);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path110 || (_path110 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27,22a2.981,2.981,0,0,0-2.0374.811l-4.0039-2.4023a2.0429,2.0429,0,0,0,0-.8174l4.0039-2.4023A2.9909,2.9909,0,1,0,24,15a2.9345,2.9345,0,0,0,.0415.4092l-4.0039,2.4023a3,3,0,1,0,0,4.377l4.0039,2.4023A2.9345,2.9345,0,0,0,24,25a3,3,0,1,0,3-3Zm0-8a1,1,0,1,1-1,1A1.0009,1.0009,0,0,1,27,14Zm-9,7a1,1,0,1,1,1-1A1.0009,1.0009,0,0,1,18,21Zm9,5a1,1,0,1,1,1-1A1.0009,1.0009,0,0,1,27,26Z\"\n })), _circle20 || (_circle20 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"8\",\n r: \"1\"\n })), _circle21 || (_circle21 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"16\",\n r: \"1\"\n })), _circle22 || (_circle22 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"24\",\n r: \"1\"\n })), _path111 || (_path111 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,13V5a2.0023,2.0023,0,0,0-2-2H4A2.0023,2.0023,0,0,0,2,5V27a2.0023,2.0023,0,0,0,2,2H20V27H4V21h8V19H4V13ZM4,5H20v6H4Z\"\n })), children);\n});\nvar EdgeNodeAlt20 = /*#__PURE__*/React.forwardRef(function EdgeNodeAlt20(_ref74, ref) {\n var children = _ref74.children,\n rest = _objectWithoutProperties(_ref74, _excluded74);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path112 || (_path112 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27,22a2.981,2.981,0,0,0-2.0374.811l-4.0039-2.4023a2.0429,2.0429,0,0,0,0-.8174l4.0039-2.4023A2.9909,2.9909,0,1,0,24,15a2.9345,2.9345,0,0,0,.0415.4092l-4.0039,2.4023a3,3,0,1,0,0,4.377l4.0039,2.4023A2.9345,2.9345,0,0,0,24,25a3,3,0,1,0,3-3Zm0-8a1,1,0,1,1-1,1A1.0009,1.0009,0,0,1,27,14Zm-9,7a1,1,0,1,1,1-1A1.0009,1.0009,0,0,1,18,21Zm9,5a1,1,0,1,1,1-1A1.0009,1.0009,0,0,1,27,26Z\"\n })), _circle23 || (_circle23 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"8\",\n r: \"1\"\n })), _circle24 || (_circle24 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"16\",\n r: \"1\"\n })), _circle25 || (_circle25 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"24\",\n r: \"1\"\n })), _path113 || (_path113 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,13V5a2.0023,2.0023,0,0,0-2-2H4A2.0023,2.0023,0,0,0,2,5V27a2.0023,2.0023,0,0,0,2,2H20V27H4V21h8V19H4V13ZM4,5H20v6H4Z\"\n })), children);\n});\nvar EdgeNodeAlt16 = /*#__PURE__*/React.forwardRef(function EdgeNodeAlt16(_ref75, ref) {\n var children = _ref75.children,\n rest = _objectWithoutProperties(_ref75, _excluded75);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path114 || (_path114 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27,22a2.981,2.981,0,0,0-2.0374.811l-4.0039-2.4023a2.0429,2.0429,0,0,0,0-.8174l4.0039-2.4023A2.9909,2.9909,0,1,0,24,15a2.9345,2.9345,0,0,0,.0415.4092l-4.0039,2.4023a3,3,0,1,0,0,4.377l4.0039,2.4023A2.9345,2.9345,0,0,0,24,25a3,3,0,1,0,3-3Zm0-8a1,1,0,1,1-1,1A1.0009,1.0009,0,0,1,27,14Zm-9,7a1,1,0,1,1,1-1A1.0009,1.0009,0,0,1,18,21Zm9,5a1,1,0,1,1,1-1A1.0009,1.0009,0,0,1,27,26Z\"\n })), _circle26 || (_circle26 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"8\",\n r: \"1\"\n })), _circle27 || (_circle27 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"16\",\n r: \"1\"\n })), _circle28 || (_circle28 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"24\",\n r: \"1\"\n })), _path115 || (_path115 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,13V5a2.0023,2.0023,0,0,0-2-2H4A2.0023,2.0023,0,0,0,2,5V27a2.0023,2.0023,0,0,0,2,2H20V27H4V21h8V19H4V13ZM4,5H20v6H4Z\"\n })), children);\n});\nvar EdgeService32 = /*#__PURE__*/React.forwardRef(function EdgeService32(_ref76, ref) {\n var children = _ref76.children,\n rest = _objectWithoutProperties(_ref76, _excluded76);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path116 || (_path116 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 11H9V21H7zM11 11H13V21H11zM15 11H17V21H15zM19 11H21V21H19zM23 11H25V21H23z\"\n })), _path117 || (_path117 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,26H4a2.0023,2.0023,0,0,1-2-2V8A2.0023,2.0023,0,0,1,4,6H28a2.0023,2.0023,0,0,1,2,2V24A2.0023,2.0023,0,0,1,28,26ZM4,8V24H28V8Z\"\n })), children);\n});\nvar EdgeService24 = /*#__PURE__*/React.forwardRef(function EdgeService24(_ref77, ref) {\n var children = _ref77.children,\n rest = _objectWithoutProperties(_ref77, _excluded77);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path118 || (_path118 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 11H9V21H7zM11 11H13V21H11zM15 11H17V21H15zM19 11H21V21H19zM23 11H25V21H23z\"\n })), _path119 || (_path119 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,26H4a2.0023,2.0023,0,0,1-2-2V8A2.0023,2.0023,0,0,1,4,6H28a2.0023,2.0023,0,0,1,2,2V24A2.0023,2.0023,0,0,1,28,26ZM4,8V24H28V8Z\"\n })), children);\n});\nvar EdgeService20 = /*#__PURE__*/React.forwardRef(function EdgeService20(_ref78, ref) {\n var children = _ref78.children,\n rest = _objectWithoutProperties(_ref78, _excluded78);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path120 || (_path120 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 11H9V21H7zM11 11H13V21H11zM15 11H17V21H15zM19 11H21V21H19zM23 11H25V21H23z\"\n })), _path121 || (_path121 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,26H4a2.0023,2.0023,0,0,1-2-2V8A2.0023,2.0023,0,0,1,4,6H28a2.0023,2.0023,0,0,1,2,2V24A2.0023,2.0023,0,0,1,28,26ZM4,8V24H28V8Z\"\n })), children);\n});\nvar EdgeService16 = /*#__PURE__*/React.forwardRef(function EdgeService16(_ref79, ref) {\n var children = _ref79.children,\n rest = _objectWithoutProperties(_ref79, _excluded79);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path122 || (_path122 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 11H9V21H7zM11 11H13V21H11zM15 11H17V21H15zM19 11H21V21H19zM23 11H25V21H23z\"\n })), _path123 || (_path123 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,26H4a2.0023,2.0023,0,0,1-2-2V8A2.0023,2.0023,0,0,1,4,6H28a2.0023,2.0023,0,0,1,2,2V24A2.0023,2.0023,0,0,1,28,26ZM4,8V24H28V8Z\"\n })), children);\n});\nvar Edit32 = /*#__PURE__*/React.forwardRef(function Edit32(_ref80, ref) {\n var children = _ref80.children,\n rest = _objectWithoutProperties(_ref80, _excluded80);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path124 || (_path124 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 26H30V28H2zM25.4 9c.8-.8.8-2 0-2.8 0 0 0 0 0 0l-3.6-3.6c-.8-.8-2-.8-2.8 0 0 0 0 0 0 0l-15 15V24h6.4L25.4 9zM20.4 4L24 7.6l-3 3L17.4 7 20.4 4zM6 22v-3.6l10-10 3.6 3.6-10 10H6z\"\n })), children);\n});\nvar Edit24 = /*#__PURE__*/React.forwardRef(function Edit24(_ref81, ref) {\n var children = _ref81.children,\n rest = _objectWithoutProperties(_ref81, _excluded81);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path125 || (_path125 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 26H30V28H2zM25.4 9c.8-.8.8-2 0-2.8 0 0 0 0 0 0l-3.6-3.6c-.8-.8-2-.8-2.8 0 0 0 0 0 0 0l-15 15V24h6.4L25.4 9zM20.4 4L24 7.6l-3 3L17.4 7 20.4 4zM6 22v-3.6l10-10 3.6 3.6-10 10H6z\"\n })), children);\n});\nvar Edit20 = /*#__PURE__*/React.forwardRef(function Edit20(_ref82, ref) {\n var children = _ref82.children,\n rest = _objectWithoutProperties(_ref82, _excluded82);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path126 || (_path126 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 26H30V28H2zM25.4 9c.8-.8.8-2 0-2.8 0 0 0 0 0 0l-3.6-3.6c-.8-.8-2-.8-2.8 0 0 0 0 0 0 0l-15 15V24h6.4L25.4 9zM20.4 4L24 7.6l-3 3L17.4 7 20.4 4zM6 22v-3.6l10-10 3.6 3.6-10 10H6z\"\n })), children);\n});\nvar Edit16 = /*#__PURE__*/React.forwardRef(function Edit16(_ref83, ref) {\n var children = _ref83.children,\n rest = _objectWithoutProperties(_ref83, _excluded83);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path127 || (_path127 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 26H30V28H2zM25.4 9c.8-.8.8-2 0-2.8 0 0 0 0 0 0l-3.6-3.6c-.8-.8-2-.8-2.8 0 0 0 0 0 0 0l-15 15V24h6.4L25.4 9zM20.4 4L24 7.6l-3 3L17.4 7 20.4 4zM6 22v-3.6l10-10 3.6 3.6-10 10H6z\"\n })), children);\n});\nvar EditOff32 = /*#__PURE__*/React.forwardRef(function EditOff32(_ref84, ref) {\n var children = _ref84.children,\n rest = _objectWithoutProperties(_ref84, _excluded84);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path128 || (_path128 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 28.6L3.4 2 2 3.4l10.1 10.1L4 21.6V28h6.4l8.1-8.1L28.6 30 30 28.6zM9.6 26H6v-3.6l7.5-7.5 3.6 3.6L9.6 26zM29.4 6.2L29.4 6.2l-3.6-3.6c-.8-.8-2-.8-2.8 0l0 0 0 0-8 8 1.4 1.4L20 8.4l3.6 3.6L20 15.6l1.4 1.4 8-8C30.2 8.2 30.2 7 29.4 6.2L29.4 6.2zM25 10.6L21.4 7l3-3L28 7.6 25 10.6z\"\n })), children);\n});\nvar EditOff24 = /*#__PURE__*/React.forwardRef(function EditOff24(_ref85, ref) {\n var children = _ref85.children,\n rest = _objectWithoutProperties(_ref85, _excluded85);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path129 || (_path129 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 28.6L3.4 2 2 3.4l10.1 10.1L4 21.6V28h6.4l8.1-8.1L28.6 30 30 28.6zM9.6 26H6v-3.6l7.5-7.5 3.6 3.6L9.6 26zM29.4 6.2L29.4 6.2l-3.6-3.6c-.8-.8-2-.8-2.8 0l0 0 0 0-8 8 1.4 1.4L20 8.4l3.6 3.6L20 15.6l1.4 1.4 8-8C30.2 8.2 30.2 7 29.4 6.2L29.4 6.2zM25 10.6L21.4 7l3-3L28 7.6 25 10.6z\"\n })), children);\n});\nvar EditOff20 = /*#__PURE__*/React.forwardRef(function EditOff20(_ref86, ref) {\n var children = _ref86.children,\n rest = _objectWithoutProperties(_ref86, _excluded86);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path130 || (_path130 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 28.6L3.4 2 2 3.4l10.1 10.1L4 21.6V28h6.4l8.1-8.1L28.6 30 30 28.6zM9.6 26H6v-3.6l7.5-7.5 3.6 3.6L9.6 26zM29.4 6.2L29.4 6.2l-3.6-3.6c-.8-.8-2-.8-2.8 0l0 0 0 0-8 8 1.4 1.4L20 8.4l3.6 3.6L20 15.6l1.4 1.4 8-8C30.2 8.2 30.2 7 29.4 6.2L29.4 6.2zM25 10.6L21.4 7l3-3L28 7.6 25 10.6z\"\n })), children);\n});\nvar EditOff16 = /*#__PURE__*/React.forwardRef(function EditOff16(_ref87, ref) {\n var children = _ref87.children,\n rest = _objectWithoutProperties(_ref87, _excluded87);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path131 || (_path131 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 28.6L3.4 2 2 3.4l10.1 10.1L4 21.6V28h6.4l8.1-8.1L28.6 30 30 28.6zM9.6 26H6v-3.6l7.5-7.5 3.6 3.6L9.6 26zM29.4 6.2L29.4 6.2l-3.6-3.6c-.8-.8-2-.8-2.8 0l0 0 0 0-8 8 1.4 1.4L20 8.4l3.6 3.6L20 15.6l1.4 1.4 8-8C30.2 8.2 30.2 7 29.4 6.2L29.4 6.2zM25 10.6L21.4 7l3-3L28 7.6 25 10.6z\"\n })), children);\n});\nvar WatsonHealthEditFilter32 = /*#__PURE__*/React.forwardRef(function WatsonHealthEditFilter32(_ref88, ref) {\n var children = _ref88.children,\n rest = _objectWithoutProperties(_ref88, _excluded88);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['WatsonHealthEditFilter32']) {\n didWarnAboutDeprecation['WatsonHealthEditFilter32'] = true;\n console.warn(\"The WatsonHealthEditFilter32 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path132 || (_path132 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,6H4V9.17l7.41,7.42.59.58V26h4V24h2v2a2,2,0,0,1-2,2H12a2,2,0,0,1-2-2V18L2.59,10.59A2,2,0,0,1,2,9.17V6A2,2,0,0,1,4,4H26Z\"\n })), _path133 || (_path133 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.71,11.29l-3-3a1,1,0,0,0-1.42,0L16,17.59V22h4.41l9.3-9.29A1,1,0,0,0,29.71,11.29ZM19.59,20H18V18.41l5-5L24.59,15ZM26,13.59,24.41,12,26,10.41,27.59,12Z\"\n })), children);\n});\nvar WatsonHealthEditFilter24 = /*#__PURE__*/React.forwardRef(function WatsonHealthEditFilter24(_ref89, ref) {\n var children = _ref89.children,\n rest = _objectWithoutProperties(_ref89, _excluded89);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['WatsonHealthEditFilter24']) {\n didWarnAboutDeprecation['WatsonHealthEditFilter24'] = true;\n console.warn(\"The WatsonHealthEditFilter24 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path134 || (_path134 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,6H4V9.17l7.41,7.42.59.58V26h4V24h2v2a2,2,0,0,1-2,2H12a2,2,0,0,1-2-2V18L2.59,10.59A2,2,0,0,1,2,9.17V6A2,2,0,0,1,4,4H26Z\"\n })), _path135 || (_path135 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.71,11.29l-3-3a1,1,0,0,0-1.42,0L16,17.59V22h4.41l9.3-9.29A1,1,0,0,0,29.71,11.29ZM19.59,20H18V18.41l5-5L24.59,15ZM26,13.59,24.41,12,26,10.41,27.59,12Z\"\n })), children);\n});\nvar WatsonHealthEditFilter20 = /*#__PURE__*/React.forwardRef(function WatsonHealthEditFilter20(_ref90, ref) {\n var children = _ref90.children,\n rest = _objectWithoutProperties(_ref90, _excluded90);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['WatsonHealthEditFilter20']) {\n didWarnAboutDeprecation['WatsonHealthEditFilter20'] = true;\n console.warn(\"The WatsonHealthEditFilter20 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path136 || (_path136 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,6H4V9.17l7.41,7.42.59.58V26h4V24h2v2a2,2,0,0,1-2,2H12a2,2,0,0,1-2-2V18L2.59,10.59A2,2,0,0,1,2,9.17V6A2,2,0,0,1,4,4H26Z\"\n })), _path137 || (_path137 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.71,11.29l-3-3a1,1,0,0,0-1.42,0L16,17.59V22h4.41l9.3-9.29A1,1,0,0,0,29.71,11.29ZM19.59,20H18V18.41l5-5L24.59,15ZM26,13.59,24.41,12,26,10.41,27.59,12Z\"\n })), children);\n});\nvar WatsonHealthEditFilter16 = /*#__PURE__*/React.forwardRef(function WatsonHealthEditFilter16(_ref91, ref) {\n var children = _ref91.children,\n rest = _objectWithoutProperties(_ref91, _excluded91);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['WatsonHealthEditFilter16']) {\n didWarnAboutDeprecation['WatsonHealthEditFilter16'] = true;\n console.warn(\"The WatsonHealthEditFilter16 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path138 || (_path138 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,6H4V9.17l7.41,7.42.59.58V26h4V24h2v2a2,2,0,0,1-2,2H12a2,2,0,0,1-2-2V18L2.59,10.59A2,2,0,0,1,2,9.17V6A2,2,0,0,1,4,4H26Z\"\n })), _path139 || (_path139 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.71,11.29l-3-3a1,1,0,0,0-1.42,0L16,17.59V22h4.41l9.3-9.29A1,1,0,0,0,29.71,11.29ZM19.59,20H18V18.41l5-5L24.59,15ZM26,13.59,24.41,12,26,10.41,27.59,12Z\"\n })), children);\n});\nvar EdtLoop32 = /*#__PURE__*/React.forwardRef(function EdtLoop32(_ref92, ref) {\n var children = _ref92.children,\n rest = _objectWithoutProperties(_ref92, _excluded92);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path140 || (_path140 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.625,22.5875a6.1287,6.1287,0,0,1-4.5-1.9l-3.1-3.2-3.1,3.2a6.4582,6.4582,0,0,1-9.1,0,7.028,7.028,0,0,1-1.8-4.7,6.6547,6.6547,0,0,1,1.9-4.7,6.3375,6.3375,0,0,1,9,0l3.1,3.2,3.1-3.2a6.3375,6.3375,0,0,1,9,0,6.8282,6.8282,0,0,1,0,9.4A6.5418,6.5418,0,0,1,23.625,22.5875Zm-6.2-6.6,3.1,3.3a4.4061,4.4061,0,0,0,6.2,0,4.9077,4.9077,0,0,0,0-6.6,4.4061,4.4061,0,0,0-6.2,0Zm-9-4.6a4.1582,4.1582,0,0,0-3.1,1.3,4.8385,4.8385,0,0,0,0,6.6,4.4061,4.4061,0,0,0,6.2,0l3.1-3.3-3.1-3.3A4.7706,4.7706,0,0,0,8.425,11.3875Z\"\n })), children);\n});\nvar EdtLoop24 = /*#__PURE__*/React.forwardRef(function EdtLoop24(_ref93, ref) {\n var children = _ref93.children,\n rest = _objectWithoutProperties(_ref93, _excluded93);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path141 || (_path141 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.625,22.5875a6.1287,6.1287,0,0,1-4.5-1.9l-3.1-3.2-3.1,3.2a6.4582,6.4582,0,0,1-9.1,0,7.028,7.028,0,0,1-1.8-4.7,6.6547,6.6547,0,0,1,1.9-4.7,6.3375,6.3375,0,0,1,9,0l3.1,3.2,3.1-3.2a6.3375,6.3375,0,0,1,9,0,6.8282,6.8282,0,0,1,0,9.4A6.5418,6.5418,0,0,1,23.625,22.5875Zm-6.2-6.6,3.1,3.3a4.4061,4.4061,0,0,0,6.2,0,4.9077,4.9077,0,0,0,0-6.6,4.4061,4.4061,0,0,0-6.2,0Zm-9-4.6a4.1582,4.1582,0,0,0-3.1,1.3,4.8385,4.8385,0,0,0,0,6.6,4.4061,4.4061,0,0,0,6.2,0l3.1-3.3-3.1-3.3A4.7706,4.7706,0,0,0,8.425,11.3875Z\"\n })), children);\n});\nvar EdtLoop20 = /*#__PURE__*/React.forwardRef(function EdtLoop20(_ref94, ref) {\n var children = _ref94.children,\n rest = _objectWithoutProperties(_ref94, _excluded94);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path142 || (_path142 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.625,22.5875a6.1287,6.1287,0,0,1-4.5-1.9l-3.1-3.2-3.1,3.2a6.4582,6.4582,0,0,1-9.1,0,7.028,7.028,0,0,1-1.8-4.7,6.6547,6.6547,0,0,1,1.9-4.7,6.3375,6.3375,0,0,1,9,0l3.1,3.2,3.1-3.2a6.3375,6.3375,0,0,1,9,0,6.8282,6.8282,0,0,1,0,9.4A6.5418,6.5418,0,0,1,23.625,22.5875Zm-6.2-6.6,3.1,3.3a4.4061,4.4061,0,0,0,6.2,0,4.9077,4.9077,0,0,0,0-6.6,4.4061,4.4061,0,0,0-6.2,0Zm-9-4.6a4.1582,4.1582,0,0,0-3.1,1.3,4.8385,4.8385,0,0,0,0,6.6,4.4061,4.4061,0,0,0,6.2,0l3.1-3.3-3.1-3.3A4.7706,4.7706,0,0,0,8.425,11.3875Z\"\n })), children);\n});\nvar EdtLoop16 = /*#__PURE__*/React.forwardRef(function EdtLoop16(_ref95, ref) {\n var children = _ref95.children,\n rest = _objectWithoutProperties(_ref95, _excluded95);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path143 || (_path143 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.625,22.5875a6.1287,6.1287,0,0,1-4.5-1.9l-3.1-3.2-3.1,3.2a6.4582,6.4582,0,0,1-9.1,0,7.028,7.028,0,0,1-1.8-4.7,6.6547,6.6547,0,0,1,1.9-4.7,6.3375,6.3375,0,0,1,9,0l3.1,3.2,3.1-3.2a6.3375,6.3375,0,0,1,9,0,6.8282,6.8282,0,0,1,0,9.4A6.5418,6.5418,0,0,1,23.625,22.5875Zm-6.2-6.6,3.1,3.3a4.4061,4.4061,0,0,0,6.2,0,4.9077,4.9077,0,0,0,0-6.6,4.4061,4.4061,0,0,0-6.2,0Zm-9-4.6a4.1582,4.1582,0,0,0-3.1,1.3,4.8385,4.8385,0,0,0,0,6.6,4.4061,4.4061,0,0,0,6.2,0l3.1-3.3-3.1-3.3A4.7706,4.7706,0,0,0,8.425,11.3875Z\"\n })), children);\n});\nvar Education32 = /*#__PURE__*/React.forwardRef(function Education32(_ref96, ref) {\n var children = _ref96.children,\n rest = _objectWithoutProperties(_ref96, _excluded96);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path144 || (_path144 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 30H24V27a5.0059 5.0059 0 00-5-5H13a5.0059 5.0059 0 00-5 5v3H6V27a7.0082 7.0082 0 017-7h6a7.0082 7.0082 0 017 7zM5 6A1 1 0 004 7v9H6V7A1 1 0 005 6z\"\n })), _path145 || (_path145 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4,2V4H9v7a7,7,0,0,0,14,0V4h5V2Zm7,2H21V7H11Zm5,12a5,5,0,0,1-5-5V9H21v2A5,5,0,0,1,16,16Z\"\n })), children);\n});\nvar Education24 = /*#__PURE__*/React.forwardRef(function Education24(_ref97, ref) {\n var children = _ref97.children,\n rest = _objectWithoutProperties(_ref97, _excluded97);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path146 || (_path146 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 30H24V27a5.0059 5.0059 0 00-5-5H13a5.0059 5.0059 0 00-5 5v3H6V27a7.0082 7.0082 0 017-7h6a7.0082 7.0082 0 017 7zM5 6A1 1 0 004 7v9H6V7A1 1 0 005 6z\"\n })), _path147 || (_path147 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4,2V4H9v7a7,7,0,0,0,14,0V4h5V2Zm7,2H21V7H11Zm5,12a5,5,0,0,1-5-5V9H21v2A5,5,0,0,1,16,16Z\"\n })), children);\n});\nvar Education20 = /*#__PURE__*/React.forwardRef(function Education20(_ref98, ref) {\n var children = _ref98.children,\n rest = _objectWithoutProperties(_ref98, _excluded98);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path148 || (_path148 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 30H24V27a5.0059 5.0059 0 00-5-5H13a5.0059 5.0059 0 00-5 5v3H6V27a7.0082 7.0082 0 017-7h6a7.0082 7.0082 0 017 7zM5 6A1 1 0 004 7v9H6V7A1 1 0 005 6z\"\n })), _path149 || (_path149 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4,2V4H9v7a7,7,0,0,0,14,0V4h5V2Zm7,2H21V7H11Zm5,12a5,5,0,0,1-5-5V9H21v2A5,5,0,0,1,16,16Z\"\n })), children);\n});\nvar Education16 = /*#__PURE__*/React.forwardRef(function Education16(_ref99, ref) {\n var children = _ref99.children,\n rest = _objectWithoutProperties(_ref99, _excluded99);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path150 || (_path150 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 30H24V27a5.0059 5.0059 0 00-5-5H13a5.0059 5.0059 0 00-5 5v3H6V27a7.0082 7.0082 0 017-7h6a7.0082 7.0082 0 017 7zM5 6A1 1 0 004 7v9H6V7A1 1 0 005 6z\"\n })), _path151 || (_path151 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4,2V4H9v7a7,7,0,0,0,14,0V4h5V2Zm7,2H21V7H11Zm5,12a5,5,0,0,1-5-5V9H21v2A5,5,0,0,1,16,16Z\"\n })), children);\n});\nvar Email32 = /*#__PURE__*/React.forwardRef(function Email32(_ref100, ref) {\n var children = _ref100.children,\n rest = _objectWithoutProperties(_ref100, _excluded100);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path152 || (_path152 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,6H4A2,2,0,0,0,2,8V24a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V8A2,2,0,0,0,28,6ZM25.8,8,16,14.78,6.2,8ZM4,24V8.91l11.43,7.91a1,1,0,0,0,1.14,0L28,8.91V24Z\"\n })), children);\n});\nvar Email24 = /*#__PURE__*/React.forwardRef(function Email24(_ref101, ref) {\n var children = _ref101.children,\n rest = _objectWithoutProperties(_ref101, _excluded101);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path153 || (_path153 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,6H4A2,2,0,0,0,2,8V24a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V8A2,2,0,0,0,28,6ZM25.8,8,16,14.78,6.2,8ZM4,24V8.91l11.43,7.91a1,1,0,0,0,1.14,0L28,8.91V24Z\"\n })), children);\n});\nvar Email20 = /*#__PURE__*/React.forwardRef(function Email20(_ref102, ref) {\n var children = _ref102.children,\n rest = _objectWithoutProperties(_ref102, _excluded102);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path154 || (_path154 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,6H4A2,2,0,0,0,2,8V24a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V8A2,2,0,0,0,28,6ZM25.8,8,16,14.78,6.2,8ZM4,24V8.91l11.43,7.91a1,1,0,0,0,1.14,0L28,8.91V24Z\"\n })), children);\n});\nvar Email16 = /*#__PURE__*/React.forwardRef(function Email16(_ref103, ref) {\n var children = _ref103.children,\n rest = _objectWithoutProperties(_ref103, _excluded103);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path155 || (_path155 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,6H4A2,2,0,0,0,2,8V24a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V8A2,2,0,0,0,28,6ZM25.8,8,16,14.78,6.2,8ZM4,24V8.91l11.43,7.91a1,1,0,0,0,1.14,0L28,8.91V24Z\"\n })), children);\n});\nvar EmailNew32 = /*#__PURE__*/React.forwardRef(function EmailNew32(_ref104, ref) {\n var children = _ref104.children,\n rest = _objectWithoutProperties(_ref104, _excluded104);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path156 || (_path156 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19,24H4L3.9966,8.9062l11.4341,7.9161a1.0008,1.0008,0,0,0,1.1386,0L28,8.9087,28,18h2V8a2.0027,2.0027,0,0,0-2-2H4A2.0023,2.0023,0,0,0,2,8V24a2.0027,2.0027,0,0,0,2,2H19ZM25.7986,8,16,14.7837,6.2014,8Z\"\n })), _circle29 || (_circle29 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"26\",\n cy: \"24\",\n r: \"4\"\n })), children);\n});\nvar EmailNew24 = /*#__PURE__*/React.forwardRef(function EmailNew24(_ref105, ref) {\n var children = _ref105.children,\n rest = _objectWithoutProperties(_ref105, _excluded105);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path157 || (_path157 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19,24H4L3.9966,8.9062l11.4341,7.9161a1.0008,1.0008,0,0,0,1.1386,0L28,8.9087,28,18h2V8a2.0027,2.0027,0,0,0-2-2H4A2.0023,2.0023,0,0,0,2,8V24a2.0027,2.0027,0,0,0,2,2H19ZM25.7986,8,16,14.7837,6.2014,8Z\"\n })), _circle30 || (_circle30 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"26\",\n cy: \"24\",\n r: \"4\"\n })), children);\n});\nvar EmailNew20 = /*#__PURE__*/React.forwardRef(function EmailNew20(_ref106, ref) {\n var children = _ref106.children,\n rest = _objectWithoutProperties(_ref106, _excluded106);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path158 || (_path158 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19,24H4L3.9966,8.9062l11.4341,7.9161a1.0008,1.0008,0,0,0,1.1386,0L28,8.9087,28,18h2V8a2.0027,2.0027,0,0,0-2-2H4A2.0023,2.0023,0,0,0,2,8V24a2.0027,2.0027,0,0,0,2,2H19ZM25.7986,8,16,14.7837,6.2014,8Z\"\n })), _circle31 || (_circle31 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"26\",\n cy: \"24\",\n r: \"4\"\n })), children);\n});\nvar EmailNew16 = /*#__PURE__*/React.forwardRef(function EmailNew16(_ref107, ref) {\n var children = _ref107.children,\n rest = _objectWithoutProperties(_ref107, _excluded107);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path159 || (_path159 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19,24H4L3.9966,8.9062l11.4341,7.9161a1.0008,1.0008,0,0,0,1.1386,0L28,8.9087,28,18h2V8a2.0027,2.0027,0,0,0-2-2H4A2.0023,2.0023,0,0,0,2,8V24a2.0027,2.0027,0,0,0,2,2H19ZM25.7986,8,16,14.7837,6.2014,8Z\"\n })), _circle32 || (_circle32 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"26\",\n cy: \"24\",\n r: \"4\"\n })), children);\n});\nvar EnergyRenewable32 = /*#__PURE__*/React.forwardRef(function EnergyRenewable32(_ref108, ref) {\n var children = _ref108.children,\n rest = _objectWithoutProperties(_ref108, _excluded108);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path160 || (_path160 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29,14H28V10H26v4H24V10H22v4H21a1,1,0,0,0-1,1v4a5.0079,5.0079,0,0,0,4,4.8989V27a1.0008,1.0008,0,0,1-1,1H5a1,1,0,0,1,0-2h5a3,3,0,0,0,0-6H5a1,1,0,0,1,0-2h5a3.0033,3.0033,0,0,0,3-3V11h1a4.0045,4.0045,0,0,0,4-4V4H15a3.979,3.979,0,0,0-2.7468,1.1064A6.0041,6.0041,0,0,0,7,2H4V5a6.0066,6.0066,0,0,0,6,6h1v4a1.0008,1.0008,0,0,1-1,1H5a3,3,0,0,0,0,6h5a1,1,0,0,1,0,2H5a3,3,0,0,0,0,6H23a3.0033,3.0033,0,0,0,3-3V23.8989A5.0079,5.0079,0,0,0,30,19V15A1,1,0,0,0,29,14ZM13,8a2.002,2.002,0,0,1,2-2h1V7a2.002,2.002,0,0,1-2,2H13ZM10,9A4.0045,4.0045,0,0,1,6,5V4H7a4.0045,4.0045,0,0,1,4,4V9ZM28,19a3,3,0,0,1-6,0V16h6Z\"\n })), children);\n});\nvar EnergyRenewable24 = /*#__PURE__*/React.forwardRef(function EnergyRenewable24(_ref109, ref) {\n var children = _ref109.children,\n rest = _objectWithoutProperties(_ref109, _excluded109);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path161 || (_path161 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29,14H28V10H26v4H24V10H22v4H21a1,1,0,0,0-1,1v4a5.0079,5.0079,0,0,0,4,4.8989V27a1.0008,1.0008,0,0,1-1,1H5a1,1,0,0,1,0-2h5a3,3,0,0,0,0-6H5a1,1,0,0,1,0-2h5a3.0033,3.0033,0,0,0,3-3V11h1a4.0045,4.0045,0,0,0,4-4V4H15a3.979,3.979,0,0,0-2.7468,1.1064A6.0041,6.0041,0,0,0,7,2H4V5a6.0066,6.0066,0,0,0,6,6h1v4a1.0008,1.0008,0,0,1-1,1H5a3,3,0,0,0,0,6h5a1,1,0,0,1,0,2H5a3,3,0,0,0,0,6H23a3.0033,3.0033,0,0,0,3-3V23.8989A5.0079,5.0079,0,0,0,30,19V15A1,1,0,0,0,29,14ZM13,8a2.002,2.002,0,0,1,2-2h1V7a2.002,2.002,0,0,1-2,2H13ZM10,9A4.0045,4.0045,0,0,1,6,5V4H7a4.0045,4.0045,0,0,1,4,4V9ZM28,19a3,3,0,0,1-6,0V16h6Z\"\n })), children);\n});\nvar EnergyRenewable20 = /*#__PURE__*/React.forwardRef(function EnergyRenewable20(_ref110, ref) {\n var children = _ref110.children,\n rest = _objectWithoutProperties(_ref110, _excluded110);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path162 || (_path162 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29,14H28V10H26v4H24V10H22v4H21a1,1,0,0,0-1,1v4a5.0079,5.0079,0,0,0,4,4.8989V27a1.0008,1.0008,0,0,1-1,1H5a1,1,0,0,1,0-2h5a3,3,0,0,0,0-6H5a1,1,0,0,1,0-2h5a3.0033,3.0033,0,0,0,3-3V11h1a4.0045,4.0045,0,0,0,4-4V4H15a3.979,3.979,0,0,0-2.7468,1.1064A6.0041,6.0041,0,0,0,7,2H4V5a6.0066,6.0066,0,0,0,6,6h1v4a1.0008,1.0008,0,0,1-1,1H5a3,3,0,0,0,0,6h5a1,1,0,0,1,0,2H5a3,3,0,0,0,0,6H23a3.0033,3.0033,0,0,0,3-3V23.8989A5.0079,5.0079,0,0,0,30,19V15A1,1,0,0,0,29,14ZM13,8a2.002,2.002,0,0,1,2-2h1V7a2.002,2.002,0,0,1-2,2H13ZM10,9A4.0045,4.0045,0,0,1,6,5V4H7a4.0045,4.0045,0,0,1,4,4V9ZM28,19a3,3,0,0,1-6,0V16h6Z\"\n })), children);\n});\nvar EnergyRenewable16 = /*#__PURE__*/React.forwardRef(function EnergyRenewable16(_ref111, ref) {\n var children = _ref111.children,\n rest = _objectWithoutProperties(_ref111, _excluded111);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path163 || (_path163 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29,14H28V10H26v4H24V10H22v4H21a1,1,0,0,0-1,1v4a5.0079,5.0079,0,0,0,4,4.8989V27a1.0008,1.0008,0,0,1-1,1H5a1,1,0,0,1,0-2h5a3,3,0,0,0,0-6H5a1,1,0,0,1,0-2h5a3.0033,3.0033,0,0,0,3-3V11h1a4.0045,4.0045,0,0,0,4-4V4H15a3.979,3.979,0,0,0-2.7468,1.1064A6.0041,6.0041,0,0,0,7,2H4V5a6.0066,6.0066,0,0,0,6,6h1v4a1.0008,1.0008,0,0,1-1,1H5a3,3,0,0,0,0,6h5a1,1,0,0,1,0,2H5a3,3,0,0,0,0,6H23a3.0033,3.0033,0,0,0,3-3V23.8989A5.0079,5.0079,0,0,0,30,19V15A1,1,0,0,0,29,14ZM13,8a2.002,2.002,0,0,1,2-2h1V7a2.002,2.002,0,0,1-2,2H13ZM10,9A4.0045,4.0045,0,0,1,6,5V4H7a4.0045,4.0045,0,0,1,4,4V9ZM28,19a3,3,0,0,1-6,0V16h6Z\"\n })), children);\n});\nvar Enterprise32 = /*#__PURE__*/React.forwardRef(function Enterprise32(_ref112, ref) {\n var children = _ref112.children,\n rest = _objectWithoutProperties(_ref112, _excluded112);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path164 || (_path164 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 8H10V12H8zM8 14H10V18H8zM14 8H16V12H14zM14 14H16V18H14zM8 20H10V24H8zM14 20H16V24H14z\"\n })), _path165 || (_path165 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,14a2,2,0,0,0-2-2H22V4a2,2,0,0,0-2-2H4A2,2,0,0,0,2,4V30H30ZM4,4H20V28H4ZM22,28V14h6V28Z\"\n })), children);\n});\nvar Enterprise24 = /*#__PURE__*/React.forwardRef(function Enterprise24(_ref113, ref) {\n var children = _ref113.children,\n rest = _objectWithoutProperties(_ref113, _excluded113);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path166 || (_path166 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 8H10V12H8zM8 14H10V18H8zM14 8H16V12H14zM14 14H16V18H14zM8 20H10V24H8zM14 20H16V24H14z\"\n })), _path167 || (_path167 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,14a2,2,0,0,0-2-2H22V4a2,2,0,0,0-2-2H4A2,2,0,0,0,2,4V30H30ZM4,4H20V28H4ZM22,28V14h6V28Z\"\n })), children);\n});\nvar Enterprise20 = /*#__PURE__*/React.forwardRef(function Enterprise20(_ref114, ref) {\n var children = _ref114.children,\n rest = _objectWithoutProperties(_ref114, _excluded114);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path168 || (_path168 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 8H10V12H8zM8 14H10V18H8zM14 8H16V12H14zM14 14H16V18H14zM8 20H10V24H8zM14 20H16V24H14z\"\n })), _path169 || (_path169 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,14a2,2,0,0,0-2-2H22V4a2,2,0,0,0-2-2H4A2,2,0,0,0,2,4V30H30ZM4,4H20V28H4ZM22,28V14h6V28Z\"\n })), children);\n});\nvar Enterprise16 = /*#__PURE__*/React.forwardRef(function Enterprise16(_ref115, ref) {\n var children = _ref115.children,\n rest = _objectWithoutProperties(_ref115, _excluded115);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path170 || (_path170 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 8H10V12H8zM8 14H10V18H8zM14 8H16V12H14zM14 14H16V18H14zM8 20H10V24H8zM14 20H16V24H14z\"\n })), _path171 || (_path171 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,14a2,2,0,0,0-2-2H22V4a2,2,0,0,0-2-2H4A2,2,0,0,0,2,4V30H30ZM4,4H20V28H4ZM22,28V14h6V28Z\"\n })), children);\n});\nvar Equalizer32 = /*#__PURE__*/React.forwardRef(function Equalizer32(_ref116, ref) {\n var children = _ref116.children,\n rest = _objectWithoutProperties(_ref116, _excluded116);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path172 || (_path172 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 28H10V30H2zM2 24H10V26H2zM12 28H20V30H12zM12 24H20V26H12zM2 20H10V22H2zM12 20H20V22H12zM2 16H10V18H2zM12 16H20V18H12zM12 12H20V14H12zM12 8H20V10H12zM12 4H20V6H12zM22 28H30V30H22zM22 24H30V26H22z\"\n })), children);\n});\nvar Equalizer24 = /*#__PURE__*/React.forwardRef(function Equalizer24(_ref117, ref) {\n var children = _ref117.children,\n rest = _objectWithoutProperties(_ref117, _excluded117);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path173 || (_path173 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 28H10V30H2zM2 24H10V26H2zM12 28H20V30H12zM12 24H20V26H12zM2 20H10V22H2zM12 20H20V22H12zM2 16H10V18H2zM12 16H20V18H12zM12 12H20V14H12zM12 8H20V10H12zM12 4H20V6H12zM22 28H30V30H22zM22 24H30V26H22z\"\n })), children);\n});\nvar Equalizer20 = /*#__PURE__*/React.forwardRef(function Equalizer20(_ref118, ref) {\n var children = _ref118.children,\n rest = _objectWithoutProperties(_ref118, _excluded118);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path174 || (_path174 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 28H10V30H2zM2 24H10V26H2zM12 28H20V30H12zM12 24H20V26H12zM2 20H10V22H2zM12 20H20V22H12zM2 16H10V18H2zM12 16H20V18H12zM12 12H20V14H12zM12 8H20V10H12zM12 4H20V6H12zM22 28H30V30H22zM22 24H30V26H22z\"\n })), children);\n});\nvar Equalizer16 = /*#__PURE__*/React.forwardRef(function Equalizer16(_ref119, ref) {\n var children = _ref119.children,\n rest = _objectWithoutProperties(_ref119, _excluded119);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path175 || (_path175 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 28H10V30H2zM2 24H10V26H2zM12 28H20V30H12zM12 24H20V26H12zM2 20H10V22H2zM12 20H20V22H12zM2 16H10V18H2zM12 16H20V18H12zM12 12H20V14H12zM12 8H20V10H12zM12 4H20V6H12zM22 28H30V30H22zM22 24H30V26H22z\"\n })), children);\n});\nvar Erase32 = /*#__PURE__*/React.forwardRef(function Erase32(_ref120, ref) {\n var children = _ref120.children,\n rest = _objectWithoutProperties(_ref120, _excluded120);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path176 || (_path176 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 27H30V29H7zM27.38 10.51L19.45 2.59a2 2 0 00-2.83 0l-14 14a2 2 0 000 2.83L7.13 24h9.59L27.38 13.34A2 2 0 0027.38 10.51zM15.89 22H8L4 18l6.31-6.31 7.93 7.92zm3.76-3.76l-7.92-7.93L18 4 26 11.93z\"\n })), children);\n});\nvar Erase24 = /*#__PURE__*/React.forwardRef(function Erase24(_ref121, ref) {\n var children = _ref121.children,\n rest = _objectWithoutProperties(_ref121, _excluded121);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path177 || (_path177 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 27H30V29H7zM27.38 10.51L19.45 2.59a2 2 0 00-2.83 0l-14 14a2 2 0 000 2.83L7.13 24h9.59L27.38 13.34A2 2 0 0027.38 10.51zM15.89 22H8L4 18l6.31-6.31 7.93 7.92zm3.76-3.76l-7.92-7.93L18 4 26 11.93z\"\n })), children);\n});\nvar Erase20 = /*#__PURE__*/React.forwardRef(function Erase20(_ref122, ref) {\n var children = _ref122.children,\n rest = _objectWithoutProperties(_ref122, _excluded122);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path178 || (_path178 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 27H30V29H7zM27.38 10.51L19.45 2.59a2 2 0 00-2.83 0l-14 14a2 2 0 000 2.83L7.13 24h9.59L27.38 13.34A2 2 0 0027.38 10.51zM15.89 22H8L4 18l6.31-6.31 7.93 7.92zm3.76-3.76l-7.92-7.93L18 4 26 11.93z\"\n })), children);\n});\nvar Erase16 = /*#__PURE__*/React.forwardRef(function Erase16(_ref123, ref) {\n var children = _ref123.children,\n rest = _objectWithoutProperties(_ref123, _excluded123);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path179 || (_path179 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 27H30V29H7zM27.38 10.51L19.45 2.59a2 2 0 00-2.83 0l-14 14a2 2 0 000 2.83L7.13 24h9.59L27.38 13.34A2 2 0 0027.38 10.51zM15.89 22H8L4 18l6.31-6.31 7.93 7.92zm3.76-3.76l-7.92-7.93L18 4 26 11.93z\"\n })), children);\n});\nvar WatsonHealthErase_3D32 = /*#__PURE__*/React.forwardRef(function WatsonHealthErase_3D32(_ref124, ref) {\n var children = _ref124.children,\n rest = _objectWithoutProperties(_ref124, _excluded124);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path180 || (_path180 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30.4148 16.5132L22.488 8.5859a2.0014 2.0014 0 00-2.8291 0L5.6208 22.624a2.0024 2.0024 0 000 2.8291L10.1663 30h9.5908L30.4148 19.3413A2.001 2.001 0 0030.4148 16.5132zM18.929 28H10.9949l-3.96-3.9619 6.3123-6.3118 7.9276 7.9276zm3.76-3.76l-7.9276-7.9276L21.074 10l7.9267 7.9272zM11 12H8V2h3a3.0033 3.0033 0 013 3V9A3.0033 3.0033 0 0111 12zm-1-2h1a1.0009 1.0009 0 001-1V5a1.0009 1.0009 0 00-1-1H10zM4 2H0V4H4V6H1V8H4v2H0v2H4a2.0027 2.0027 0 002-2V4A2.0023 2.0023 0 004 2z\"\n })), children);\n});\nvar WatsonHealthErase_3D24 = /*#__PURE__*/React.forwardRef(function WatsonHealthErase_3D24(_ref125, ref) {\n var children = _ref125.children,\n rest = _objectWithoutProperties(_ref125, _excluded125);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path181 || (_path181 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30.4148 16.5132L22.488 8.5859a2.0014 2.0014 0 00-2.8291 0L5.6208 22.624a2.0024 2.0024 0 000 2.8291L10.1663 30h9.5908L30.4148 19.3413A2.001 2.001 0 0030.4148 16.5132zM18.929 28H10.9949l-3.96-3.9619 6.3123-6.3118 7.9276 7.9276zm3.76-3.76l-7.9276-7.9276L21.074 10l7.9267 7.9272zM11 12H8V2h3a3.0033 3.0033 0 013 3V9A3.0033 3.0033 0 0111 12zm-1-2h1a1.0009 1.0009 0 001-1V5a1.0009 1.0009 0 00-1-1H10zM4 2H0V4H4V6H1V8H4v2H0v2H4a2.0027 2.0027 0 002-2V4A2.0023 2.0023 0 004 2z\"\n })), children);\n});\nvar WatsonHealthErase_3D20 = /*#__PURE__*/React.forwardRef(function WatsonHealthErase_3D20(_ref126, ref) {\n var children = _ref126.children,\n rest = _objectWithoutProperties(_ref126, _excluded126);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path182 || (_path182 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30.4148 16.5132L22.488 8.5859a2.0014 2.0014 0 00-2.8291 0L5.6208 22.624a2.0024 2.0024 0 000 2.8291L10.1663 30h9.5908L30.4148 19.3413A2.001 2.001 0 0030.4148 16.5132zM18.929 28H10.9949l-3.96-3.9619 6.3123-6.3118 7.9276 7.9276zm3.76-3.76l-7.9276-7.9276L21.074 10l7.9267 7.9272zM11 12H8V2h3a3.0033 3.0033 0 013 3V9A3.0033 3.0033 0 0111 12zm-1-2h1a1.0009 1.0009 0 001-1V5a1.0009 1.0009 0 00-1-1H10zM4 2H0V4H4V6H1V8H4v2H0v2H4a2.0027 2.0027 0 002-2V4A2.0023 2.0023 0 004 2z\"\n })), children);\n});\nvar WatsonHealthErase_3D16 = /*#__PURE__*/React.forwardRef(function WatsonHealthErase_3D16(_ref127, ref) {\n var children = _ref127.children,\n rest = _objectWithoutProperties(_ref127, _excluded127);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path183 || (_path183 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30.4148 16.5132L22.488 8.5859a2.0014 2.0014 0 00-2.8291 0L5.6208 22.624a2.0024 2.0024 0 000 2.8291L10.1663 30h9.5908L30.4148 19.3413A2.001 2.001 0 0030.4148 16.5132zM18.929 28H10.9949l-3.96-3.9619 6.3123-6.3118 7.9276 7.9276zm3.76-3.76l-7.9276-7.9276L21.074 10l7.9267 7.9272zM11 12H8V2h3a3.0033 3.0033 0 013 3V9A3.0033 3.0033 0 0111 12zm-1-2h1a1.0009 1.0009 0 001-1V5a1.0009 1.0009 0 00-1-1H10zM4 2H0V4H4V6H1V8H4v2H0v2H4a2.0027 2.0027 0 002-2V4A2.0023 2.0023 0 004 2z\"\n })), children);\n});\nvar Error32 = /*#__PURE__*/React.forwardRef(function Error32(_ref128, ref) {\n var children = _ref128.children,\n rest = _objectWithoutProperties(_ref128, _excluded128);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path184 || (_path184 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2,16H2A14,14,0,1,0,16,2,14,14,0,0,0,2,16Zm23.15,7.75L8.25,6.85a12,12,0,0,1,16.9,16.9ZM8.24,25.16A12,12,0,0,1,6.84,8.27L23.73,25.16a12,12,0,0,1-15.49,0Z\"\n })), children);\n});\nvar Error24 = /*#__PURE__*/React.forwardRef(function Error24(_ref129, ref) {\n var children = _ref129.children,\n rest = _objectWithoutProperties(_ref129, _excluded129);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path185 || (_path185 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2,16H2A14,14,0,1,0,16,2,14,14,0,0,0,2,16Zm23.15,7.75L8.25,6.85a12,12,0,0,1,16.9,16.9ZM8.24,25.16A12,12,0,0,1,6.84,8.27L23.73,25.16a12,12,0,0,1-15.49,0Z\"\n })), children);\n});\nvar Error20 = /*#__PURE__*/React.forwardRef(function Error20(_ref130, ref) {\n var children = _ref130.children,\n rest = _objectWithoutProperties(_ref130, _excluded130);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path186 || (_path186 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2,16H2A14,14,0,1,0,16,2,14,14,0,0,0,2,16Zm23.15,7.75L8.25,6.85a12,12,0,0,1,16.9,16.9ZM8.24,25.16A12,12,0,0,1,6.84,8.27L23.73,25.16a12,12,0,0,1-15.49,0Z\"\n })), children);\n});\nvar Error16 = /*#__PURE__*/React.forwardRef(function Error16(_ref131, ref) {\n var children = _ref131.children,\n rest = _objectWithoutProperties(_ref131, _excluded131);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path187 || (_path187 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2,16H2A14,14,0,1,0,16,2,14,14,0,0,0,2,16Zm23.15,7.75L8.25,6.85a12,12,0,0,1,16.9,16.9ZM8.24,25.16A12,12,0,0,1,6.84,8.27L23.73,25.16a12,12,0,0,1-15.49,0Z\"\n })), children);\n});\nvar ErrorFilled32 = /*#__PURE__*/React.forwardRef(function ErrorFilled32(_ref132, ref) {\n var children = _ref132.children,\n rest = _objectWithoutProperties(_ref132, _excluded132);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path188 || (_path188 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M14.9 7.2H17.1V24.799H14.9z\",\n \"data-icon-path\": \"inner-path\",\n transform: \"rotate(-45 16 16)\"\n })), _path189 || (_path189 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A13.914,13.914,0,0,0,2,16,13.914,13.914,0,0,0,16,30,13.914,13.914,0,0,0,30,16,13.914,13.914,0,0,0,16,2Zm5.4449,21L9,10.5557,10.5557,9,23,21.4448Z\"\n })), children);\n});\nvar ErrorFilled24 = /*#__PURE__*/React.forwardRef(function ErrorFilled24(_ref133, ref) {\n var children = _ref133.children,\n rest = _objectWithoutProperties(_ref133, _excluded133);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path190 || (_path190 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,1C5.9,1,1,5.9,1,12s4.9,11,11,11s11-4.9,11-11S18.1,1,12,1z M16.3,17.5L6.5,7.7l1.2-1.2l9.8,9.8L16.3,17.5z\"\n })), _path191 || (_path191 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M16.3,17.5L6.5,7.7l1.2-1.2l9.8,9.8L16.3,17.5z\",\n \"data-icon-path\": \"inner-path\",\n opacity: \"0\"\n })), children);\n});\nvar ErrorFilled20 = /*#__PURE__*/React.forwardRef(function ErrorFilled20(_ref134, ref) {\n var children = _ref134.children,\n rest = _objectWithoutProperties(_ref134, _excluded134);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 20 20\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path192 || (_path192 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,1c-5,0-9,4-9,9s4,9,9,9s9-4,9-9S15,1,10,1z M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z\"\n })), _path193 || (_path193 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z\",\n \"data-icon-path\": \"inner-path\",\n opacity: \"0\"\n })), children);\n});\nvar ErrorFilled16 = /*#__PURE__*/React.forwardRef(function ErrorFilled16(_ref135, ref) {\n var children = _ref135.children,\n rest = _objectWithoutProperties(_ref135, _excluded135);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path194 || (_path194 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M10.7,11.5L4.5,5.3l0.8-0.8l6.2,6.2L10.7,11.5z\"\n })), _path195 || (_path195 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M10.7,11.5L4.5,5.3l0.8-0.8l6.2,6.2L10.7,11.5z\",\n \"data-icon-path\": \"inner-path\",\n opacity: \"0\"\n })), children);\n});\nvar ErrorOutline32 = /*#__PURE__*/React.forwardRef(function ErrorOutline32(_ref136, ref) {\n var children = _ref136.children,\n rest = _objectWithoutProperties(_ref136, _excluded136);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path196 || (_path196 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14.9 7.2H17.1V24.799H14.9z\",\n transform: \"rotate(-45 16 16)\"\n })), _path197 || (_path197 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A13.9138,13.9138,0,0,0,2,16,13.9138,13.9138,0,0,0,16,30,13.9138,13.9138,0,0,0,30,16,13.9138,13.9138,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12.0353,12.0353,0,0,1,16,28Z\"\n })), children);\n});\nvar ErrorOutline24 = /*#__PURE__*/React.forwardRef(function ErrorOutline24(_ref137, ref) {\n var children = _ref137.children,\n rest = _objectWithoutProperties(_ref137, _excluded137);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path198 || (_path198 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14.9 7.2H17.1V24.799H14.9z\",\n transform: \"rotate(-45 16 16)\"\n })), _path199 || (_path199 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A13.9138,13.9138,0,0,0,2,16,13.9138,13.9138,0,0,0,16,30,13.9138,13.9138,0,0,0,30,16,13.9138,13.9138,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12.0353,12.0353,0,0,1,16,28Z\"\n })), children);\n});\nvar ErrorOutline20 = /*#__PURE__*/React.forwardRef(function ErrorOutline20(_ref138, ref) {\n var children = _ref138.children,\n rest = _objectWithoutProperties(_ref138, _excluded138);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path200 || (_path200 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14.9 7.2H17.1V24.799H14.9z\",\n transform: \"rotate(-45 16 16)\"\n })), _path201 || (_path201 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A13.9138,13.9138,0,0,0,2,16,13.9138,13.9138,0,0,0,16,30,13.9138,13.9138,0,0,0,30,16,13.9138,13.9138,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12.0353,12.0353,0,0,1,16,28Z\"\n })), children);\n});\nvar ErrorOutline16 = /*#__PURE__*/React.forwardRef(function ErrorOutline16(_ref139, ref) {\n var children = _ref139.children,\n rest = _objectWithoutProperties(_ref139, _excluded139);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path202 || (_path202 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M8,14c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6S11.3,14,8,14z\"\n })), _path203 || (_path203 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7.4 3.6H8.5V12.4H7.4z\",\n transform: \"rotate(-45.001 8 8)\"\n })), children);\n});\nvar Event32 = /*#__PURE__*/React.forwardRef(function Event32(_ref140, ref) {\n var children = _ref140.children,\n rest = _objectWithoutProperties(_ref140, _excluded140);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path204 || (_path204 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z\"\n })), _path205 || (_path205 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21 15L23.549 19.938 29 20.729 25 24.573 26 30 21 27.438 16 30 17 24.573 13 20.729 18.6 19.938 21 15z\"\n })), children);\n});\nvar Event24 = /*#__PURE__*/React.forwardRef(function Event24(_ref141, ref) {\n var children = _ref141.children,\n rest = _objectWithoutProperties(_ref141, _excluded141);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path206 || (_path206 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z\"\n })), _path207 || (_path207 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21 15L23.549 19.938 29 20.729 25 24.573 26 30 21 27.438 16 30 17 24.573 13 20.729 18.6 19.938 21 15z\"\n })), children);\n});\nvar Event20 = /*#__PURE__*/React.forwardRef(function Event20(_ref142, ref) {\n var children = _ref142.children,\n rest = _objectWithoutProperties(_ref142, _excluded142);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path208 || (_path208 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z\"\n })), _path209 || (_path209 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21 15L23.549 19.938 29 20.729 25 24.573 26 30 21 27.438 16 30 17 24.573 13 20.729 18.6 19.938 21 15z\"\n })), children);\n});\nvar Event16 = /*#__PURE__*/React.forwardRef(function Event16(_ref143, ref) {\n var children = _ref143.children,\n rest = _objectWithoutProperties(_ref143, _excluded143);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path210 || (_path210 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z\"\n })), _path211 || (_path211 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21 15L23.549 19.938 29 20.729 25 24.573 26 30 21 27.438 16 30 17 24.573 13 20.729 18.6 19.938 21 15z\"\n })), children);\n});\nvar EventSchedule32 = /*#__PURE__*/React.forwardRef(function EventSchedule32(_ref144, ref) {\n var children = _ref144.children,\n rest = _objectWithoutProperties(_ref144, _excluded144);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path212 || (_path212 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21,30a8,8,0,1,1,8-8A8,8,0,0,1,21,30Zm0-14a6,6,0,1,0,6,6A6,6,0,0,0,21,16Z\"\n })), _path213 || (_path213 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22.59 25L20 22.41 20 18 22 18 22 21.59 24 23.59 22.59 25z\"\n })), _path214 || (_path214 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z\"\n })), children);\n});\nvar EventSchedule24 = /*#__PURE__*/React.forwardRef(function EventSchedule24(_ref145, ref) {\n var children = _ref145.children,\n rest = _objectWithoutProperties(_ref145, _excluded145);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path215 || (_path215 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21,30a8,8,0,1,1,8-8A8,8,0,0,1,21,30Zm0-14a6,6,0,1,0,6,6A6,6,0,0,0,21,16Z\"\n })), _path216 || (_path216 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22.59 25L20 22.41 20 18 22 18 22 21.59 24 23.59 22.59 25z\"\n })), _path217 || (_path217 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z\"\n })), children);\n});\nvar EventSchedule20 = /*#__PURE__*/React.forwardRef(function EventSchedule20(_ref146, ref) {\n var children = _ref146.children,\n rest = _objectWithoutProperties(_ref146, _excluded146);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path218 || (_path218 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21,30a8,8,0,1,1,8-8A8,8,0,0,1,21,30Zm0-14a6,6,0,1,0,6,6A6,6,0,0,0,21,16Z\"\n })), _path219 || (_path219 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22.59 25L20 22.41 20 18 22 18 22 21.59 24 23.59 22.59 25z\"\n })), _path220 || (_path220 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z\"\n })), children);\n});\nvar EventSchedule16 = /*#__PURE__*/React.forwardRef(function EventSchedule16(_ref147, ref) {\n var children = _ref147.children,\n rest = _objectWithoutProperties(_ref147, _excluded147);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path221 || (_path221 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21,30a8,8,0,1,1,8-8A8,8,0,0,1,21,30Zm0-14a6,6,0,1,0,6,6A6,6,0,0,0,21,16Z\"\n })), _path222 || (_path222 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22.59 25L20 22.41 20 18 22 18 22 21.59 24 23.59 22.59 25z\"\n })), _path223 || (_path223 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z\"\n })), children);\n});\nvar Events32 = /*#__PURE__*/React.forwardRef(function Events32(_ref148, ref) {\n var children = _ref148.children,\n rest = _objectWithoutProperties(_ref148, _excluded148);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path224 || (_path224 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 14H24v2h2a3.0033 3.0033 0 013 3v4h2V19A5.0058 5.0058 0 0026 14zM24 4a3 3 0 11-3 3 3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0024 2zM23 30H21V28a3.0033 3.0033 0 00-3-3H14a3.0033 3.0033 0 00-3 3v2H9V28a5.0059 5.0059 0 015-5h4a5.0059 5.0059 0 015 5zM16 13a3 3 0 11-3 3 3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0016 11zM8 14H6a5.0059 5.0059 0 00-5 5v4H3V19a3.0033 3.0033 0 013-3H8zM8 4A3 3 0 115 7 3 3 0 018 4M8 2a5 5 0 105 5A5 5 0 008 2z\"\n })), children);\n});\nvar Events24 = /*#__PURE__*/React.forwardRef(function Events24(_ref149, ref) {\n var children = _ref149.children,\n rest = _objectWithoutProperties(_ref149, _excluded149);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path225 || (_path225 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 14H24v2h2a3.0033 3.0033 0 013 3v4h2V19A5.0058 5.0058 0 0026 14zM24 4a3 3 0 11-3 3 3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0024 2zM23 30H21V28a3.0033 3.0033 0 00-3-3H14a3.0033 3.0033 0 00-3 3v2H9V28a5.0059 5.0059 0 015-5h4a5.0059 5.0059 0 015 5zM16 13a3 3 0 11-3 3 3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0016 11zM8 14H6a5.0059 5.0059 0 00-5 5v4H3V19a3.0033 3.0033 0 013-3H8zM8 4A3 3 0 115 7 3 3 0 018 4M8 2a5 5 0 105 5A5 5 0 008 2z\"\n })), children);\n});\nvar Events20 = /*#__PURE__*/React.forwardRef(function Events20(_ref150, ref) {\n var children = _ref150.children,\n rest = _objectWithoutProperties(_ref150, _excluded150);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path226 || (_path226 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 14H24v2h2a3.0033 3.0033 0 013 3v4h2V19A5.0058 5.0058 0 0026 14zM24 4a3 3 0 11-3 3 3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0024 2zM23 30H21V28a3.0033 3.0033 0 00-3-3H14a3.0033 3.0033 0 00-3 3v2H9V28a5.0059 5.0059 0 015-5h4a5.0059 5.0059 0 015 5zM16 13a3 3 0 11-3 3 3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0016 11zM8 14H6a5.0059 5.0059 0 00-5 5v4H3V19a3.0033 3.0033 0 013-3H8zM8 4A3 3 0 115 7 3 3 0 018 4M8 2a5 5 0 105 5A5 5 0 008 2z\"\n })), children);\n});\nvar Events16 = /*#__PURE__*/React.forwardRef(function Events16(_ref151, ref) {\n var children = _ref151.children,\n rest = _objectWithoutProperties(_ref151, _excluded151);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path227 || (_path227 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 14H24v2h2a3.0033 3.0033 0 013 3v4h2V19A5.0058 5.0058 0 0026 14zM24 4a3 3 0 11-3 3 3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0024 2zM23 30H21V28a3.0033 3.0033 0 00-3-3H14a3.0033 3.0033 0 00-3 3v2H9V28a5.0059 5.0059 0 015-5h4a5.0059 5.0059 0 015 5zM16 13a3 3 0 11-3 3 3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0016 11zM8 14H6a5.0059 5.0059 0 00-5 5v4H3V19a3.0033 3.0033 0 013-3H8zM8 4A3 3 0 115 7 3 3 0 018 4M8 2a5 5 0 105 5A5 5 0 008 2z\"\n })), children);\n});\nvar EventsAlt32 = /*#__PURE__*/React.forwardRef(function EventsAlt32(_ref152, ref) {\n var children = _ref152.children,\n rest = _objectWithoutProperties(_ref152, _excluded152);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path228 || (_path228 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 31h2V29a1.0006 1.0006 0 011-1h6a1.0006 1.0006 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 25a4 4 0 114-4A4.0039 4.0039 0 0124 25zm0-6a2 2 0 102 2A2.0027 2.0027 0 0024 19zM2 31H4V29a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 25a4 4 0 114-4A4.0042 4.0042 0 018 25zm0-6a2 2 0 102 2A2.0023 2.0023 0 008 19zM18 16h2V14a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 10a4 4 0 114-4A4.0042 4.0042 0 0124 10zm0-6a2 2 0 102 2A2.0023 2.0023 0 0024 4zM2 16H4V14a1.0013 1.0013 0 011-1h6a1.0013 1.0013 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 10a4 4 0 114-4A4.0045 4.0045 0 018 10zM8 4a2 2 0 102 2A2.002 2.002 0 008 4z\"\n })), children);\n});\nvar EventsAlt24 = /*#__PURE__*/React.forwardRef(function EventsAlt24(_ref153, ref) {\n var children = _ref153.children,\n rest = _objectWithoutProperties(_ref153, _excluded153);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path229 || (_path229 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 31h2V29a1.0006 1.0006 0 011-1h6a1.0006 1.0006 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 25a4 4 0 114-4A4.0039 4.0039 0 0124 25zm0-6a2 2 0 102 2A2.0027 2.0027 0 0024 19zM2 31H4V29a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 25a4 4 0 114-4A4.0042 4.0042 0 018 25zm0-6a2 2 0 102 2A2.0023 2.0023 0 008 19zM18 16h2V14a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 10a4 4 0 114-4A4.0042 4.0042 0 0124 10zm0-6a2 2 0 102 2A2.0023 2.0023 0 0024 4zM2 16H4V14a1.0013 1.0013 0 011-1h6a1.0013 1.0013 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 10a4 4 0 114-4A4.0045 4.0045 0 018 10zM8 4a2 2 0 102 2A2.002 2.002 0 008 4z\"\n })), children);\n});\nvar EventsAlt20 = /*#__PURE__*/React.forwardRef(function EventsAlt20(_ref154, ref) {\n var children = _ref154.children,\n rest = _objectWithoutProperties(_ref154, _excluded154);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path230 || (_path230 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 31h2V29a1.0006 1.0006 0 011-1h6a1.0006 1.0006 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 25a4 4 0 114-4A4.0039 4.0039 0 0124 25zm0-6a2 2 0 102 2A2.0027 2.0027 0 0024 19zM2 31H4V29a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 25a4 4 0 114-4A4.0042 4.0042 0 018 25zm0-6a2 2 0 102 2A2.0023 2.0023 0 008 19zM18 16h2V14a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 10a4 4 0 114-4A4.0042 4.0042 0 0124 10zm0-6a2 2 0 102 2A2.0023 2.0023 0 0024 4zM2 16H4V14a1.0013 1.0013 0 011-1h6a1.0013 1.0013 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 10a4 4 0 114-4A4.0045 4.0045 0 018 10zM8 4a2 2 0 102 2A2.002 2.002 0 008 4z\"\n })), children);\n});\nvar EventsAlt16 = /*#__PURE__*/React.forwardRef(function EventsAlt16(_ref155, ref) {\n var children = _ref155.children,\n rest = _objectWithoutProperties(_ref155, _excluded155);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path231 || (_path231 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 31h2V29a1.0006 1.0006 0 011-1h6a1.0006 1.0006 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 25a4 4 0 114-4A4.0039 4.0039 0 0124 25zm0-6a2 2 0 102 2A2.0027 2.0027 0 0024 19zM2 31H4V29a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 25a4 4 0 114-4A4.0042 4.0042 0 018 25zm0-6a2 2 0 102 2A2.0023 2.0023 0 008 19zM18 16h2V14a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 10a4 4 0 114-4A4.0042 4.0042 0 0124 10zm0-6a2 2 0 102 2A2.0023 2.0023 0 0024 4zM2 16H4V14a1.0013 1.0013 0 011-1h6a1.0013 1.0013 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 10a4 4 0 114-4A4.0045 4.0045 0 018 10zM8 4a2 2 0 102 2A2.002 2.002 0 008 4z\"\n })), children);\n});\nvar ExamMode32 = /*#__PURE__*/React.forwardRef(function ExamMode32(_ref156, ref) {\n var children = _ref156.children,\n rest = _objectWithoutProperties(_ref156, _excluded156);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path232 || (_path232 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25 23v3H7V16.83l3.59 3.58L12 19 6 13 0 19l1.41 1.41L5 16.83V26a2 2 0 002 2H25a2 2 0 002-2V23zM27 7v9.17l3.59-3.58L32 14l-6 6-6-6 1.41-1.41L25 16.17V7H13V5H25A2 2 0 0127 7zM8 10H4A2 2 0 012 8V4A2 2 0 014 2H8a2 2 0 012 2V8A2 2 0 018 10zM4 4V8H8V4z\"\n })), children);\n});\nvar ExamMode24 = /*#__PURE__*/React.forwardRef(function ExamMode24(_ref157, ref) {\n var children = _ref157.children,\n rest = _objectWithoutProperties(_ref157, _excluded157);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path233 || (_path233 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25 23v3H7V16.83l3.59 3.58L12 19 6 13 0 19l1.41 1.41L5 16.83V26a2 2 0 002 2H25a2 2 0 002-2V23zM27 7v9.17l3.59-3.58L32 14l-6 6-6-6 1.41-1.41L25 16.17V7H13V5H25A2 2 0 0127 7zM8 10H4A2 2 0 012 8V4A2 2 0 014 2H8a2 2 0 012 2V8A2 2 0 018 10zM4 4V8H8V4z\"\n })), children);\n});\nvar ExamMode20 = /*#__PURE__*/React.forwardRef(function ExamMode20(_ref158, ref) {\n var children = _ref158.children,\n rest = _objectWithoutProperties(_ref158, _excluded158);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path234 || (_path234 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25 23v3H7V16.83l3.59 3.58L12 19 6 13 0 19l1.41 1.41L5 16.83V26a2 2 0 002 2H25a2 2 0 002-2V23zM27 7v9.17l3.59-3.58L32 14l-6 6-6-6 1.41-1.41L25 16.17V7H13V5H25A2 2 0 0127 7zM8 10H4A2 2 0 012 8V4A2 2 0 014 2H8a2 2 0 012 2V8A2 2 0 018 10zM4 4V8H8V4z\"\n })), children);\n});\nvar ExamMode16 = /*#__PURE__*/React.forwardRef(function ExamMode16(_ref159, ref) {\n var children = _ref159.children,\n rest = _objectWithoutProperties(_ref159, _excluded159);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path235 || (_path235 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25 23v3H7V16.83l3.59 3.58L12 19 6 13 0 19l1.41 1.41L5 16.83V26a2 2 0 002 2H25a2 2 0 002-2V23zM27 7v9.17l3.59-3.58L32 14l-6 6-6-6 1.41-1.41L25 16.17V7H13V5H25A2 2 0 0127 7zM8 10H4A2 2 0 012 8V4A2 2 0 014 2H8a2 2 0 012 2V8A2 2 0 018 10zM4 4V8H8V4z\"\n })), children);\n});\nvar Exit32 = /*#__PURE__*/React.forwardRef(function Exit32(_ref160, ref) {\n var children = _ref160.children,\n rest = _objectWithoutProperties(_ref160, _excluded160);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path236 || (_path236 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 4H28V28H26zM11.414 20.586L7.828 17 22 17 22 15 7.828 15 11.414 11.414 10 10 4 16 10 22 11.414 20.586z\"\n })), children);\n});\nvar Exit24 = /*#__PURE__*/React.forwardRef(function Exit24(_ref161, ref) {\n var children = _ref161.children,\n rest = _objectWithoutProperties(_ref161, _excluded161);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path237 || (_path237 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 4H28V28H26zM11.414 20.586L7.828 17 22 17 22 15 7.828 15 11.414 11.414 10 10 4 16 10 22 11.414 20.586z\"\n })), children);\n});\nvar Exit20 = /*#__PURE__*/React.forwardRef(function Exit20(_ref162, ref) {\n var children = _ref162.children,\n rest = _objectWithoutProperties(_ref162, _excluded162);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path238 || (_path238 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 4H28V28H26zM11.414 20.586L7.828 17 22 17 22 15 7.828 15 11.414 11.414 10 10 4 16 10 22 11.414 20.586z\"\n })), children);\n});\nvar Exit16 = /*#__PURE__*/React.forwardRef(function Exit16(_ref163, ref) {\n var children = _ref163.children,\n rest = _objectWithoutProperties(_ref163, _excluded163);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path239 || (_path239 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 4H28V28H26zM11.414 20.586L7.828 17 22 17 22 15 7.828 15 11.414 11.414 10 10 4 16 10 22 11.414 20.586z\"\n })), children);\n});\nvar ExpandAll32 = /*#__PURE__*/React.forwardRef(function ExpandAll32(_ref164, ref) {\n var children = _ref164.children,\n rest = _objectWithoutProperties(_ref164, _excluded164);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path240 || (_path240 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,10H26a2.0025,2.0025,0,0,0,2-2V4a2.0025,2.0025,0,0,0-2-2H12a2.0025,2.0025,0,0,0-2,2V5H6V2H4V25a2.0025,2.0025,0,0,0,2,2h4v1a2.0025,2.0025,0,0,0,2,2H26a2.0025,2.0025,0,0,0,2-2V24a2.0025,2.0025,0,0,0-2-2H12a2.0025,2.0025,0,0,0-2,2v1H6V17h4v1a2.0025,2.0025,0,0,0,2,2H26a2.0025,2.0025,0,0,0,2-2V14a2.0025,2.0025,0,0,0-2-2H12a2.0025,2.0025,0,0,0-2,2v1H6V7h4V8A2.0025,2.0025,0,0,0,12,10Zm0-6H26l.0012,4H12Zm0,20H26l.0012,4H12Zm0-10H26l.0012,4H12Z\"\n })), children);\n});\nvar ExpandAll24 = /*#__PURE__*/React.forwardRef(function ExpandAll24(_ref165, ref) {\n var children = _ref165.children,\n rest = _objectWithoutProperties(_ref165, _excluded165);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path241 || (_path241 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,10H26a2.0025,2.0025,0,0,0,2-2V4a2.0025,2.0025,0,0,0-2-2H12a2.0025,2.0025,0,0,0-2,2V5H6V2H4V25a2.0025,2.0025,0,0,0,2,2h4v1a2.0025,2.0025,0,0,0,2,2H26a2.0025,2.0025,0,0,0,2-2V24a2.0025,2.0025,0,0,0-2-2H12a2.0025,2.0025,0,0,0-2,2v1H6V17h4v1a2.0025,2.0025,0,0,0,2,2H26a2.0025,2.0025,0,0,0,2-2V14a2.0025,2.0025,0,0,0-2-2H12a2.0025,2.0025,0,0,0-2,2v1H6V7h4V8A2.0025,2.0025,0,0,0,12,10Zm0-6H26l.0012,4H12Zm0,20H26l.0012,4H12Zm0-10H26l.0012,4H12Z\"\n })), children);\n});\nvar ExpandAll20 = /*#__PURE__*/React.forwardRef(function ExpandAll20(_ref166, ref) {\n var children = _ref166.children,\n rest = _objectWithoutProperties(_ref166, _excluded166);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path242 || (_path242 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,10H26a2.0025,2.0025,0,0,0,2-2V4a2.0025,2.0025,0,0,0-2-2H12a2.0025,2.0025,0,0,0-2,2V5H6V2H4V25a2.0025,2.0025,0,0,0,2,2h4v1a2.0025,2.0025,0,0,0,2,2H26a2.0025,2.0025,0,0,0,2-2V24a2.0025,2.0025,0,0,0-2-2H12a2.0025,2.0025,0,0,0-2,2v1H6V17h4v1a2.0025,2.0025,0,0,0,2,2H26a2.0025,2.0025,0,0,0,2-2V14a2.0025,2.0025,0,0,0-2-2H12a2.0025,2.0025,0,0,0-2,2v1H6V7h4V8A2.0025,2.0025,0,0,0,12,10Zm0-6H26l.0012,4H12Zm0,20H26l.0012,4H12Zm0-10H26l.0012,4H12Z\"\n })), children);\n});\nvar ExpandAll16 = /*#__PURE__*/React.forwardRef(function ExpandAll16(_ref167, ref) {\n var children = _ref167.children,\n rest = _objectWithoutProperties(_ref167, _excluded167);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path243 || (_path243 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,10H26a2.0025,2.0025,0,0,0,2-2V4a2.0025,2.0025,0,0,0-2-2H12a2.0025,2.0025,0,0,0-2,2V5H6V2H4V25a2.0025,2.0025,0,0,0,2,2h4v1a2.0025,2.0025,0,0,0,2,2H26a2.0025,2.0025,0,0,0,2-2V24a2.0025,2.0025,0,0,0-2-2H12a2.0025,2.0025,0,0,0-2,2v1H6V17h4v1a2.0025,2.0025,0,0,0,2,2H26a2.0025,2.0025,0,0,0,2-2V14a2.0025,2.0025,0,0,0-2-2H12a2.0025,2.0025,0,0,0-2,2v1H6V7h4V8A2.0025,2.0025,0,0,0,12,10Zm0-6H26l.0012,4H12Zm0,20H26l.0012,4H12Zm0-10H26l.0012,4H12Z\"\n })), children);\n});\nvar ExpandCategories32 = /*#__PURE__*/React.forwardRef(function ExpandCategories32(_ref168, ref) {\n var children = _ref168.children,\n rest = _objectWithoutProperties(_ref168, _excluded168);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path244 || (_path244 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 26H26V28H20zM20 18H28V20H20zM20 10H30V12H20zM15 4H17V28H15zM10.586 3.959L7 7.249 3.412 3.958 2 5.373 7 10 12 5.373 10.586 3.959z\"\n })), children);\n});\nvar ExpandCategories24 = /*#__PURE__*/React.forwardRef(function ExpandCategories24(_ref169, ref) {\n var children = _ref169.children,\n rest = _objectWithoutProperties(_ref169, _excluded169);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path245 || (_path245 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 26H26V28H20zM20 18H28V20H20zM20 10H30V12H20zM15 4H17V28H15zM10.586 3.959L7 7.249 3.412 3.958 2 5.373 7 10 12 5.373 10.586 3.959z\"\n })), children);\n});\nvar ExpandCategories20 = /*#__PURE__*/React.forwardRef(function ExpandCategories20(_ref170, ref) {\n var children = _ref170.children,\n rest = _objectWithoutProperties(_ref170, _excluded170);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path246 || (_path246 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 26H26V28H20zM20 18H28V20H20zM20 10H30V12H20zM15 4H17V28H15zM10.586 3.959L7 7.249 3.412 3.958 2 5.373 7 10 12 5.373 10.586 3.959z\"\n })), children);\n});\nvar ExpandCategories16 = /*#__PURE__*/React.forwardRef(function ExpandCategories16(_ref171, ref) {\n var children = _ref171.children,\n rest = _objectWithoutProperties(_ref171, _excluded171);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path247 || (_path247 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 26H26V28H20zM20 18H28V20H20zM20 10H30V12H20zM15 4H17V28H15zM10.586 3.959L7 7.249 3.412 3.958 2 5.373 7 10 12 5.373 10.586 3.959z\"\n })), children);\n});\nvar Explore32 = /*#__PURE__*/React.forwardRef(function Explore32(_ref172, ref) {\n var children = _ref172.children,\n rest = _objectWithoutProperties(_ref172, _excluded172);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path248 || (_path248 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22.707,9.2931a.9992.9992,0,0,0-1.0234-.2417l-9,3a1.001,1.001,0,0,0-.6323.6323l-3,9a1,1,0,0,0,1.2651,1.2651l9-3a1.0013,1.0013,0,0,0,.6323-.6324l3-9A1,1,0,0,0,22.707,9.2931ZM11.5811,20.419l2.2094-6.6284L18.21,18.21Z\"\n })), _path249 || (_path249 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar Explore24 = /*#__PURE__*/React.forwardRef(function Explore24(_ref173, ref) {\n var children = _ref173.children,\n rest = _objectWithoutProperties(_ref173, _excluded173);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path250 || (_path250 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22.707,9.2931a.9992.9992,0,0,0-1.0234-.2417l-9,3a1.001,1.001,0,0,0-.6323.6323l-3,9a1,1,0,0,0,1.2651,1.2651l9-3a1.0013,1.0013,0,0,0,.6323-.6324l3-9A1,1,0,0,0,22.707,9.2931ZM11.5811,20.419l2.2094-6.6284L18.21,18.21Z\"\n })), _path251 || (_path251 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar Explore20 = /*#__PURE__*/React.forwardRef(function Explore20(_ref174, ref) {\n var children = _ref174.children,\n rest = _objectWithoutProperties(_ref174, _excluded174);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path252 || (_path252 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22.707,9.2931a.9992.9992,0,0,0-1.0234-.2417l-9,3a1.001,1.001,0,0,0-.6323.6323l-3,9a1,1,0,0,0,1.2651,1.2651l9-3a1.0013,1.0013,0,0,0,.6323-.6324l3-9A1,1,0,0,0,22.707,9.2931ZM11.5811,20.419l2.2094-6.6284L18.21,18.21Z\"\n })), _path253 || (_path253 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar Explore16 = /*#__PURE__*/React.forwardRef(function Explore16(_ref175, ref) {\n var children = _ref175.children,\n rest = _objectWithoutProperties(_ref175, _excluded175);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path254 || (_path254 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22.707,9.2931a.9992.9992,0,0,0-1.0234-.2417l-9,3a1.001,1.001,0,0,0-.6323.6323l-3,9a1,1,0,0,0,1.2651,1.2651l9-3a1.0013,1.0013,0,0,0,.6323-.6324l3-9A1,1,0,0,0,22.707,9.2931ZM11.5811,20.419l2.2094-6.6284L18.21,18.21Z\"\n })), _path255 || (_path255 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar Export32 = /*#__PURE__*/React.forwardRef(function Export32(_ref176, ref) {\n var children = _ref176.children,\n rest = _objectWithoutProperties(_ref176, _excluded176);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path256 || (_path256 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 24v4H6V24H4v4l.0076-.0049A1.9977 1.9977 0 006 30H26a2 2 0 002-2h0V24zM6 12L7.411 13.405 15 5.825 15 24 17 24 17 5.825 24.591 13.405 26 12 16 2 6 12z\"\n })), children);\n});\nvar Export24 = /*#__PURE__*/React.forwardRef(function Export24(_ref177, ref) {\n var children = _ref177.children,\n rest = _objectWithoutProperties(_ref177, _excluded177);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path257 || (_path257 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 24v4H6V24H4v4l.0076-.0049A1.9977 1.9977 0 006 30H26a2 2 0 002-2h0V24zM6 12L7.411 13.405 15 5.825 15 24 17 24 17 5.825 24.591 13.405 26 12 16 2 6 12z\"\n })), children);\n});\nvar Export20 = /*#__PURE__*/React.forwardRef(function Export20(_ref178, ref) {\n var children = _ref178.children,\n rest = _objectWithoutProperties(_ref178, _excluded178);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path258 || (_path258 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 24v4H6V24H4v4l.0076-.0049A1.9977 1.9977 0 006 30H26a2 2 0 002-2h0V24zM6 12L7.411 13.405 15 5.825 15 24 17 24 17 5.825 24.591 13.405 26 12 16 2 6 12z\"\n })), children);\n});\nvar Export16 = /*#__PURE__*/React.forwardRef(function Export16(_ref179, ref) {\n var children = _ref179.children,\n rest = _objectWithoutProperties(_ref179, _excluded179);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path259 || (_path259 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 12v2H3v-2H2v2l0 0c0 .6.4 1 1 1h10c.6 0 1-.4 1-1l0 0v-2H13zM3 6L3.7 6.7 7.5 2.9 7.5 12 8.5 12 8.5 2.9 12.3 6.7 13 6 8 1z\"\n })), children);\n});\nvar Eyedropper32 = /*#__PURE__*/React.forwardRef(function Eyedropper32(_ref180, ref) {\n var children = _ref180.children,\n rest = _objectWithoutProperties(_ref180, _excluded180);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path260 || (_path260 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 27H5V30H2zM29.71 7.29l-5-5a1 1 0 00-1.41 0h0L20 5.59l-1.29-1.3L17.29 5.71 18.59 7 8.29 17.29A1 1 0 008 18v1.59l-2.71 2.7a1 1 0 000 1.41h0l3 3a1 1 0 001.41 0h0L12.41 24H14a1 1 0 00.71-.29L25 13.41l1.29 1.3 1.42-1.42L26.41 12l3.3-3.29a1 1 0 000-1.41zM13.59 22h-2L9 24.59 7.41 23 10 20.41v-2l10-10L23.59 12zM25 10.59L21.41 7 24 4.41 27.59 8z\"\n })), children);\n});\nvar Eyedropper24 = /*#__PURE__*/React.forwardRef(function Eyedropper24(_ref181, ref) {\n var children = _ref181.children,\n rest = _objectWithoutProperties(_ref181, _excluded181);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path261 || (_path261 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 27H5V30H2zM29.71 7.29l-5-5a1 1 0 00-1.41 0h0L20 5.59l-1.29-1.3L17.29 5.71 18.59 7 8.29 17.29A1 1 0 008 18v1.59l-2.71 2.7a1 1 0 000 1.41h0l3 3a1 1 0 001.41 0h0L12.41 24H14a1 1 0 00.71-.29L25 13.41l1.29 1.3 1.42-1.42L26.41 12l3.3-3.29a1 1 0 000-1.41zM13.59 22h-2L9 24.59 7.41 23 10 20.41v-2l10-10L23.59 12zM25 10.59L21.41 7 24 4.41 27.59 8z\"\n })), children);\n});\nvar Eyedropper20 = /*#__PURE__*/React.forwardRef(function Eyedropper20(_ref182, ref) {\n var children = _ref182.children,\n rest = _objectWithoutProperties(_ref182, _excluded182);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path262 || (_path262 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 27H5V30H2zM29.71 7.29l-5-5a1 1 0 00-1.41 0h0L20 5.59l-1.29-1.3L17.29 5.71 18.59 7 8.29 17.29A1 1 0 008 18v1.59l-2.71 2.7a1 1 0 000 1.41h0l3 3a1 1 0 001.41 0h0L12.41 24H14a1 1 0 00.71-.29L25 13.41l1.29 1.3 1.42-1.42L26.41 12l3.3-3.29a1 1 0 000-1.41zM13.59 22h-2L9 24.59 7.41 23 10 20.41v-2l10-10L23.59 12zM25 10.59L21.41 7 24 4.41 27.59 8z\"\n })), children);\n});\nvar Eyedropper16 = /*#__PURE__*/React.forwardRef(function Eyedropper16(_ref183, ref) {\n var children = _ref183.children,\n rest = _objectWithoutProperties(_ref183, _excluded183);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path263 || (_path263 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 27H5V30H2zM29.71 7.29l-5-5a1 1 0 00-1.41 0h0L20 5.59l-1.29-1.3L17.29 5.71 18.59 7 8.29 17.29A1 1 0 008 18v1.59l-2.71 2.7a1 1 0 000 1.41h0l3 3a1 1 0 001.41 0h0L12.41 24H14a1 1 0 00.71-.29L25 13.41l1.29 1.3 1.42-1.42L26.41 12l3.3-3.29a1 1 0 000-1.41zM13.59 22h-2L9 24.59 7.41 23 10 20.41v-2l10-10L23.59 12zM25 10.59L21.41 7 24 4.41 27.59 8z\"\n })), children);\n});\nvar FaceActivated32 = /*#__PURE__*/React.forwardRef(function FaceActivated32(_ref184, ref) {\n var children = _ref184.children,\n rest = _objectWithoutProperties(_ref184, _excluded184);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path264 || (_path264 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z\"\n })), _path265 || (_path265 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.5 11A2.5 2.5 0 1014 13.5 2.48 2.48 0 0011.5 11zM20.5 11A2.5 2.5 0 1023 13.5 2.48 2.48 0 0020.5 11zM9 20a8.13 8.13 0 0014 0z\"\n })), children);\n});\nvar FaceActivated24 = /*#__PURE__*/React.forwardRef(function FaceActivated24(_ref185, ref) {\n var children = _ref185.children,\n rest = _objectWithoutProperties(_ref185, _excluded185);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path266 || (_path266 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z\"\n })), _path267 || (_path267 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.5 11A2.5 2.5 0 1014 13.5 2.48 2.48 0 0011.5 11zM20.5 11A2.5 2.5 0 1023 13.5 2.48 2.48 0 0020.5 11zM9 20a8.13 8.13 0 0014 0z\"\n })), children);\n});\nvar FaceActivated20 = /*#__PURE__*/React.forwardRef(function FaceActivated20(_ref186, ref) {\n var children = _ref186.children,\n rest = _objectWithoutProperties(_ref186, _excluded186);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path268 || (_path268 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z\"\n })), _path269 || (_path269 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.5 11A2.5 2.5 0 1014 13.5 2.48 2.48 0 0011.5 11zM20.5 11A2.5 2.5 0 1023 13.5 2.48 2.48 0 0020.5 11zM9 20a8.13 8.13 0 0014 0z\"\n })), children);\n});\nvar FaceActivated16 = /*#__PURE__*/React.forwardRef(function FaceActivated16(_ref187, ref) {\n var children = _ref187.children,\n rest = _objectWithoutProperties(_ref187, _excluded187);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path270 || (_path270 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z\"\n })), _path271 || (_path271 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.5 11A2.5 2.5 0 1014 13.5 2.48 2.48 0 0011.5 11zM20.5 11A2.5 2.5 0 1023 13.5 2.48 2.48 0 0020.5 11zM9 20a8.13 8.13 0 0014 0z\"\n })), children);\n});\nvar FaceActivatedAdd32 = /*#__PURE__*/React.forwardRef(function FaceActivatedAdd32(_ref188, ref) {\n var children = _ref188.children,\n rest = _objectWithoutProperties(_ref188, _excluded188);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path272 || (_path272 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 4L26 4 26 0 24 0 24 4 20 4 20 6 24 6 24 10 26 10 26 6 30 6 30 4zM11.5 11A2.5 2.5 0 1014 13.5 2.48 2.48 0 0011.5 11zM20.5 11A2.5 2.5 0 1023 13.5 2.48 2.48 0 0020.5 11zM9 20a8.13 8.13 0 0014 0z\"\n })), _path273 || (_path273 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.82,14A12,12,0,1,1,16,4V2A14,14,0,1,0,30,16a14.71,14.71,0,0,0-.16-2Z\"\n })), children);\n});\nvar FaceActivatedAdd24 = /*#__PURE__*/React.forwardRef(function FaceActivatedAdd24(_ref189, ref) {\n var children = _ref189.children,\n rest = _objectWithoutProperties(_ref189, _excluded189);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path274 || (_path274 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 4L26 4 26 0 24 0 24 4 20 4 20 6 24 6 24 10 26 10 26 6 30 6 30 4zM11.5 11A2.5 2.5 0 1014 13.5 2.48 2.48 0 0011.5 11zM20.5 11A2.5 2.5 0 1023 13.5 2.48 2.48 0 0020.5 11zM9 20a8.13 8.13 0 0014 0z\"\n })), _path275 || (_path275 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.82,14A12,12,0,1,1,16,4V2A14,14,0,1,0,30,16a14.71,14.71,0,0,0-.16-2Z\"\n })), children);\n});\nvar FaceActivatedAdd20 = /*#__PURE__*/React.forwardRef(function FaceActivatedAdd20(_ref190, ref) {\n var children = _ref190.children,\n rest = _objectWithoutProperties(_ref190, _excluded190);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path276 || (_path276 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 4L26 4 26 0 24 0 24 4 20 4 20 6 24 6 24 10 26 10 26 6 30 6 30 4zM11.5 11A2.5 2.5 0 1014 13.5 2.48 2.48 0 0011.5 11zM20.5 11A2.5 2.5 0 1023 13.5 2.48 2.48 0 0020.5 11zM9 20a8.13 8.13 0 0014 0z\"\n })), _path277 || (_path277 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.82,14A12,12,0,1,1,16,4V2A14,14,0,1,0,30,16a14.71,14.71,0,0,0-.16-2Z\"\n })), children);\n});\nvar FaceActivatedAdd16 = /*#__PURE__*/React.forwardRef(function FaceActivatedAdd16(_ref191, ref) {\n var children = _ref191.children,\n rest = _objectWithoutProperties(_ref191, _excluded191);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path278 || (_path278 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 4L26 4 26 0 24 0 24 4 20 4 20 6 24 6 24 10 26 10 26 6 30 6 30 4zM11.5 11A2.5 2.5 0 1014 13.5 2.48 2.48 0 0011.5 11zM20.5 11A2.5 2.5 0 1023 13.5 2.48 2.48 0 0020.5 11zM9 20a8.13 8.13 0 0014 0z\"\n })), _path279 || (_path279 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.82,14A12,12,0,1,1,16,4V2A14,14,0,1,0,30,16a14.71,14.71,0,0,0-.16-2Z\"\n })), children);\n});\nvar FaceActivatedFilled32 = /*#__PURE__*/React.forwardRef(function FaceActivatedFilled32(_ref192, ref) {\n var children = _ref192.children,\n rest = _objectWithoutProperties(_ref192, _excluded192);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path280 || (_path280 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm-4.5,9A2.5,2.5,0,1,1,9,13.5,2.48,2.48,0,0,1,11.5,11ZM16,24a8.11,8.11,0,0,1-7-4H23A8.11,8.11,0,0,1,16,24Zm4.5-8A2.5,2.5,0,1,1,23,13.5,2.48,2.48,0,0,1,20.5,16Z\"\n })), children);\n});\nvar FaceActivatedFilled24 = /*#__PURE__*/React.forwardRef(function FaceActivatedFilled24(_ref193, ref) {\n var children = _ref193.children,\n rest = _objectWithoutProperties(_ref193, _excluded193);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path281 || (_path281 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm-4.5,9A2.5,2.5,0,1,1,9,13.5,2.48,2.48,0,0,1,11.5,11ZM16,24a8.11,8.11,0,0,1-7-4H23A8.11,8.11,0,0,1,16,24Zm4.5-8A2.5,2.5,0,1,1,23,13.5,2.48,2.48,0,0,1,20.5,16Z\"\n })), children);\n});\nvar FaceActivatedFilled20 = /*#__PURE__*/React.forwardRef(function FaceActivatedFilled20(_ref194, ref) {\n var children = _ref194.children,\n rest = _objectWithoutProperties(_ref194, _excluded194);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path282 || (_path282 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm-4.5,9A2.5,2.5,0,1,1,9,13.5,2.48,2.48,0,0,1,11.5,11ZM16,24a8.11,8.11,0,0,1-7-4H23A8.11,8.11,0,0,1,16,24Zm4.5-8A2.5,2.5,0,1,1,23,13.5,2.48,2.48,0,0,1,20.5,16Z\"\n })), children);\n});\nvar FaceActivatedFilled16 = /*#__PURE__*/React.forwardRef(function FaceActivatedFilled16(_ref195, ref) {\n var children = _ref195.children,\n rest = _objectWithoutProperties(_ref195, _excluded195);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path283 || (_path283 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm-4.5,9A2.5,2.5,0,1,1,9,13.5,2.48,2.48,0,0,1,11.5,11ZM16,24a8.11,8.11,0,0,1-7-4H23A8.11,8.11,0,0,1,16,24Zm4.5-8A2.5,2.5,0,1,1,23,13.5,2.48,2.48,0,0,1,20.5,16Z\"\n })), children);\n});\nvar FaceAdd32 = /*#__PURE__*/React.forwardRef(function FaceAdd32(_ref196, ref) {\n var children = _ref196.children,\n rest = _objectWithoutProperties(_ref196, _excluded196);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path284 || (_path284 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 22a6 6 0 01-5.14-2.92l-1.71 1a8 8 0 0013.7 0l-1.71-1A6 6 0 0116 22zM30 4L26 4 26 0 24 0 24 4 20 4 20 6 24 6 24 10 26 10 26 6 30 6 30 4zM11.5 11A2.5 2.5 0 1014 13.5 2.48 2.48 0 0011.5 11zM20.5 11A2.5 2.5 0 1023 13.5 2.48 2.48 0 0020.5 11z\"\n })), _path285 || (_path285 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.61,13A12.33,12.33,0,0,1,28,16,12,12,0,1,1,16,4V2A14,14,0,1,0,29.67,13Z\"\n })), children);\n});\nvar FaceAdd24 = /*#__PURE__*/React.forwardRef(function FaceAdd24(_ref197, ref) {\n var children = _ref197.children,\n rest = _objectWithoutProperties(_ref197, _excluded197);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path286 || (_path286 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 22a6 6 0 01-5.14-2.92l-1.71 1a8 8 0 0013.7 0l-1.71-1A6 6 0 0116 22zM30 4L26 4 26 0 24 0 24 4 20 4 20 6 24 6 24 10 26 10 26 6 30 6 30 4zM11.5 11A2.5 2.5 0 1014 13.5 2.48 2.48 0 0011.5 11zM20.5 11A2.5 2.5 0 1023 13.5 2.48 2.48 0 0020.5 11z\"\n })), _path287 || (_path287 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.61,13A12.33,12.33,0,0,1,28,16,12,12,0,1,1,16,4V2A14,14,0,1,0,29.67,13Z\"\n })), children);\n});\nvar FaceAdd20 = /*#__PURE__*/React.forwardRef(function FaceAdd20(_ref198, ref) {\n var children = _ref198.children,\n rest = _objectWithoutProperties(_ref198, _excluded198);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path288 || (_path288 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 22a6 6 0 01-5.14-2.92l-1.71 1a8 8 0 0013.7 0l-1.71-1A6 6 0 0116 22zM30 4L26 4 26 0 24 0 24 4 20 4 20 6 24 6 24 10 26 10 26 6 30 6 30 4zM11.5 11A2.5 2.5 0 1014 13.5 2.48 2.48 0 0011.5 11zM20.5 11A2.5 2.5 0 1023 13.5 2.48 2.48 0 0020.5 11z\"\n })), _path289 || (_path289 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.61,13A12.33,12.33,0,0,1,28,16,12,12,0,1,1,16,4V2A14,14,0,1,0,29.67,13Z\"\n })), children);\n});\nvar FaceAdd16 = /*#__PURE__*/React.forwardRef(function FaceAdd16(_ref199, ref) {\n var children = _ref199.children,\n rest = _objectWithoutProperties(_ref199, _excluded199);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path290 || (_path290 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 22a6 6 0 01-5.14-2.92l-1.71 1a8 8 0 0013.7 0l-1.71-1A6 6 0 0116 22zM30 4L26 4 26 0 24 0 24 4 20 4 20 6 24 6 24 10 26 10 26 6 30 6 30 4zM11.5 11A2.5 2.5 0 1014 13.5 2.48 2.48 0 0011.5 11zM20.5 11A2.5 2.5 0 1023 13.5 2.48 2.48 0 0020.5 11z\"\n })), _path291 || (_path291 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.61,13A12.33,12.33,0,0,1,28,16,12,12,0,1,1,16,4V2A14,14,0,1,0,29.67,13Z\"\n })), children);\n});\nvar FaceCool32 = /*#__PURE__*/React.forwardRef(function FaceCool32(_ref200, ref) {\n var children = _ref200.children,\n rest = _objectWithoutProperties(_ref200, _excluded200);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path292 || (_path292 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,24a8,8,0,0,0,6.85-3.89l-1.71-1a6,6,0,0,1-10.28,0l-1.71,1A8,8,0,0,0,16,24Z\"\n })), _path293 || (_path293 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,2a12,12,0,0,1,10.89,7H25a1,1,0,0,0-1-1H8a1,1,0,0,0-1,1H5.11A12,12,0,0,1,16,4Zm0,24A12,12,0,0,1,4,16a11.86,11.86,0,0,1,.4-3H7v2a2,2,0,0,0,2,2h3.31a2,2,0,0,0,2-1.67L14.83,12h2.34l.55,3.33a2,2,0,0,0,2,1.67H23a2,2,0,0,0,2-2V13h2.6a11.86,11.86,0,0,1,.4,3A12,12,0,0,1,16,28Z\"\n })), children);\n});\nvar FaceCool24 = /*#__PURE__*/React.forwardRef(function FaceCool24(_ref201, ref) {\n var children = _ref201.children,\n rest = _objectWithoutProperties(_ref201, _excluded201);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path294 || (_path294 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,24a8,8,0,0,0,6.85-3.89l-1.71-1a6,6,0,0,1-10.28,0l-1.71,1A8,8,0,0,0,16,24Z\"\n })), _path295 || (_path295 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,2a12,12,0,0,1,10.89,7H25a1,1,0,0,0-1-1H8a1,1,0,0,0-1,1H5.11A12,12,0,0,1,16,4Zm0,24A12,12,0,0,1,4,16a11.86,11.86,0,0,1,.4-3H7v2a2,2,0,0,0,2,2h3.31a2,2,0,0,0,2-1.67L14.83,12h2.34l.55,3.33a2,2,0,0,0,2,1.67H23a2,2,0,0,0,2-2V13h2.6a11.86,11.86,0,0,1,.4,3A12,12,0,0,1,16,28Z\"\n })), children);\n});\nvar FaceCool20 = /*#__PURE__*/React.forwardRef(function FaceCool20(_ref202, ref) {\n var children = _ref202.children,\n rest = _objectWithoutProperties(_ref202, _excluded202);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path296 || (_path296 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,24a8,8,0,0,0,6.85-3.89l-1.71-1a6,6,0,0,1-10.28,0l-1.71,1A8,8,0,0,0,16,24Z\"\n })), _path297 || (_path297 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,2a12,12,0,0,1,10.89,7H25a1,1,0,0,0-1-1H8a1,1,0,0,0-1,1H5.11A12,12,0,0,1,16,4Zm0,24A12,12,0,0,1,4,16a11.86,11.86,0,0,1,.4-3H7v2a2,2,0,0,0,2,2h3.31a2,2,0,0,0,2-1.67L14.83,12h2.34l.55,3.33a2,2,0,0,0,2,1.67H23a2,2,0,0,0,2-2V13h2.6a11.86,11.86,0,0,1,.4,3A12,12,0,0,1,16,28Z\"\n })), children);\n});\nvar FaceCool16 = /*#__PURE__*/React.forwardRef(function FaceCool16(_ref203, ref) {\n var children = _ref203.children,\n rest = _objectWithoutProperties(_ref203, _excluded203);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path298 || (_path298 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,24a8,8,0,0,0,6.85-3.89l-1.71-1a6,6,0,0,1-10.28,0l-1.71,1A8,8,0,0,0,16,24Z\"\n })), _path299 || (_path299 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,2a12,12,0,0,1,10.89,7H25a1,1,0,0,0-1-1H8a1,1,0,0,0-1,1H5.11A12,12,0,0,1,16,4Zm0,24A12,12,0,0,1,4,16a11.86,11.86,0,0,1,.4-3H7v2a2,2,0,0,0,2,2h3.31a2,2,0,0,0,2-1.67L14.83,12h2.34l.55,3.33a2,2,0,0,0,2,1.67H23a2,2,0,0,0,2-2V13h2.6a11.86,11.86,0,0,1,.4,3A12,12,0,0,1,16,28Z\"\n })), children);\n});\nvar FaceDissatisfied32 = /*#__PURE__*/React.forwardRef(function FaceDissatisfied32(_ref204, ref) {\n var children = _ref204.children,\n rest = _objectWithoutProperties(_ref204, _excluded204);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path300 || (_path300 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z\"\n })), _path301 || (_path301 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.5 11A2.5 2.5 0 1014 13.5 2.5 2.5 0 0011.5 11zM20.5 11A2.5 2.5 0 1023 13.5 2.5 2.5 0 0020.5 11zM16 19a8 8 0 00-6.85 3.89l1.71 1a6 6 0 0110.28 0l1.71-1A8 8 0 0016 19z\"\n })), children);\n});\nvar FaceDissatisfied24 = /*#__PURE__*/React.forwardRef(function FaceDissatisfied24(_ref205, ref) {\n var children = _ref205.children,\n rest = _objectWithoutProperties(_ref205, _excluded205);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path302 || (_path302 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z\"\n })), _path303 || (_path303 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.5 11A2.5 2.5 0 1014 13.5 2.5 2.5 0 0011.5 11zM20.5 11A2.5 2.5 0 1023 13.5 2.5 2.5 0 0020.5 11zM16 19a8 8 0 00-6.85 3.89l1.71 1a6 6 0 0110.28 0l1.71-1A8 8 0 0016 19z\"\n })), children);\n});\nvar FaceDissatisfied20 = /*#__PURE__*/React.forwardRef(function FaceDissatisfied20(_ref206, ref) {\n var children = _ref206.children,\n rest = _objectWithoutProperties(_ref206, _excluded206);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path304 || (_path304 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z\"\n })), _path305 || (_path305 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.5 11A2.5 2.5 0 1014 13.5 2.5 2.5 0 0011.5 11zM20.5 11A2.5 2.5 0 1023 13.5 2.5 2.5 0 0020.5 11zM16 19a8 8 0 00-6.85 3.89l1.71 1a6 6 0 0110.28 0l1.71-1A8 8 0 0016 19z\"\n })), children);\n});\nvar FaceDissatisfied16 = /*#__PURE__*/React.forwardRef(function FaceDissatisfied16(_ref207, ref) {\n var children = _ref207.children,\n rest = _objectWithoutProperties(_ref207, _excluded207);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path306 || (_path306 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z\"\n })), _path307 || (_path307 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.5 11A2.5 2.5 0 1014 13.5 2.5 2.5 0 0011.5 11zM20.5 11A2.5 2.5 0 1023 13.5 2.5 2.5 0 0020.5 11zM16 19a8 8 0 00-6.85 3.89l1.71 1a6 6 0 0110.28 0l1.71-1A8 8 0 0016 19z\"\n })), children);\n});\nvar FaceDissatisfiedFilled32 = /*#__PURE__*/React.forwardRef(function FaceDissatisfiedFilled32(_ref208, ref) {\n var children = _ref208.children,\n rest = _objectWithoutProperties(_ref208, _excluded208);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path308 || (_path308 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm-4.5,9h0A2.5,2.5,0,1,1,9,13.5,2.48,2.48,0,0,1,11.54,11Zm9.64,12.92a6,6,0,0,0-10.28,0l-1.71-1a8,8,0,0,1,13.7,0ZM20.5,16a2.5,2.5,0,0,1,0-5h0a2.5,2.5,0,0,1,0,5Z\"\n })), children);\n});\nvar FaceDissatisfiedFilled24 = /*#__PURE__*/React.forwardRef(function FaceDissatisfiedFilled24(_ref209, ref) {\n var children = _ref209.children,\n rest = _objectWithoutProperties(_ref209, _excluded209);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path309 || (_path309 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm-4.5,9h0A2.5,2.5,0,1,1,9,13.5,2.48,2.48,0,0,1,11.54,11Zm9.64,12.92a6,6,0,0,0-10.28,0l-1.71-1a8,8,0,0,1,13.7,0ZM20.5,16a2.5,2.5,0,0,1,0-5h0a2.5,2.5,0,0,1,0,5Z\"\n })), children);\n});\nvar FaceDissatisfiedFilled20 = /*#__PURE__*/React.forwardRef(function FaceDissatisfiedFilled20(_ref210, ref) {\n var children = _ref210.children,\n rest = _objectWithoutProperties(_ref210, _excluded210);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path310 || (_path310 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm-4.5,9h0A2.5,2.5,0,1,1,9,13.5,2.48,2.48,0,0,1,11.54,11Zm9.64,12.92a6,6,0,0,0-10.28,0l-1.71-1a8,8,0,0,1,13.7,0ZM20.5,16a2.5,2.5,0,0,1,0-5h0a2.5,2.5,0,0,1,0,5Z\"\n })), children);\n});\nvar FaceDissatisfiedFilled16 = /*#__PURE__*/React.forwardRef(function FaceDissatisfiedFilled16(_ref211, ref) {\n var children = _ref211.children,\n rest = _objectWithoutProperties(_ref211, _excluded211);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path311 || (_path311 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm-4.5,9h0A2.5,2.5,0,1,1,9,13.5,2.48,2.48,0,0,1,11.54,11Zm9.64,12.92a6,6,0,0,0-10.28,0l-1.71-1a8,8,0,0,1,13.7,0ZM20.5,16a2.5,2.5,0,0,1,0-5h0a2.5,2.5,0,0,1,0,5Z\"\n })), children);\n});\nvar FaceDizzy32 = /*#__PURE__*/React.forwardRef(function FaceDizzy32(_ref212, ref) {\n var children = _ref212.children,\n rest = _objectWithoutProperties(_ref212, _excluded212);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path312 || (_path312 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z\"\n })), _path313 || (_path313 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.41 11L23 9.59 21 11.59 19 9.59 17.59 11 19.59 13 17.59 15 19 16.41 21 14.41 23 16.41 24.41 15 22.41 13 24.41 11zM14.41 11L13 9.59 11 11.59 9 9.59 7.59 11 9.59 13 7.59 15 9 16.41 11 14.41 13 16.41 14.41 15 12.41 13 14.41 11zM16 19a3 3 0 103 3 3 3 0 00-3-3z\"\n })), children);\n});\nvar FaceDizzy24 = /*#__PURE__*/React.forwardRef(function FaceDizzy24(_ref213, ref) {\n var children = _ref213.children,\n rest = _objectWithoutProperties(_ref213, _excluded213);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path314 || (_path314 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z\"\n })), _path315 || (_path315 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.41 11L23 9.59 21 11.59 19 9.59 17.59 11 19.59 13 17.59 15 19 16.41 21 14.41 23 16.41 24.41 15 22.41 13 24.41 11zM14.41 11L13 9.59 11 11.59 9 9.59 7.59 11 9.59 13 7.59 15 9 16.41 11 14.41 13 16.41 14.41 15 12.41 13 14.41 11zM16 19a3 3 0 103 3 3 3 0 00-3-3z\"\n })), children);\n});\nvar FaceDizzy20 = /*#__PURE__*/React.forwardRef(function FaceDizzy20(_ref214, ref) {\n var children = _ref214.children,\n rest = _objectWithoutProperties(_ref214, _excluded214);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path316 || (_path316 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z\"\n })), _path317 || (_path317 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.41 11L23 9.59 21 11.59 19 9.59 17.59 11 19.59 13 17.59 15 19 16.41 21 14.41 23 16.41 24.41 15 22.41 13 24.41 11zM14.41 11L13 9.59 11 11.59 9 9.59 7.59 11 9.59 13 7.59 15 9 16.41 11 14.41 13 16.41 14.41 15 12.41 13 14.41 11zM16 19a3 3 0 103 3 3 3 0 00-3-3z\"\n })), children);\n});\nvar FaceDizzy16 = /*#__PURE__*/React.forwardRef(function FaceDizzy16(_ref215, ref) {\n var children = _ref215.children,\n rest = _objectWithoutProperties(_ref215, _excluded215);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path318 || (_path318 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z\"\n })), _path319 || (_path319 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.41 11L23 9.59 21 11.59 19 9.59 17.59 11 19.59 13 17.59 15 19 16.41 21 14.41 23 16.41 24.41 15 22.41 13 24.41 11zM14.41 11L13 9.59 11 11.59 9 9.59 7.59 11 9.59 13 7.59 15 9 16.41 11 14.41 13 16.41 14.41 15 12.41 13 14.41 11zM16 19a3 3 0 103 3 3 3 0 00-3-3z\"\n })), children);\n});\nvar FaceDizzyFilled32 = /*#__PURE__*/React.forwardRef(function FaceDizzyFilled32(_ref216, ref) {\n var children = _ref216.children,\n rest = _objectWithoutProperties(_ref216, _excluded216);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path320 || (_path320 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM9,16.41,7.59,15l2-2-2-2L9,9.59l2,2,2-2L14.41,11l-2,2,2,2L13,16.41l-2-2ZM16,25a3,3,0,1,1,3-3A3,3,0,0,1,16,25Zm8.41-10L23,16.41l-2-2-2,2L17.59,15l2-2-2-2L19,9.59l2,2,2-2L24.41,11l-2,2Z\"\n })), children);\n});\nvar FaceDizzyFilled24 = /*#__PURE__*/React.forwardRef(function FaceDizzyFilled24(_ref217, ref) {\n var children = _ref217.children,\n rest = _objectWithoutProperties(_ref217, _excluded217);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path321 || (_path321 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM9,16.41,7.59,15l2-2-2-2L9,9.59l2,2,2-2L14.41,11l-2,2,2,2L13,16.41l-2-2ZM16,25a3,3,0,1,1,3-3A3,3,0,0,1,16,25Zm8.41-10L23,16.41l-2-2-2,2L17.59,15l2-2-2-2L19,9.59l2,2,2-2L24.41,11l-2,2Z\"\n })), children);\n});\nvar FaceDizzyFilled20 = /*#__PURE__*/React.forwardRef(function FaceDizzyFilled20(_ref218, ref) {\n var children = _ref218.children,\n rest = _objectWithoutProperties(_ref218, _excluded218);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path322 || (_path322 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM9,16.41,7.59,15l2-2-2-2L9,9.59l2,2,2-2L14.41,11l-2,2,2,2L13,16.41l-2-2ZM16,25a3,3,0,1,1,3-3A3,3,0,0,1,16,25Zm8.41-10L23,16.41l-2-2-2,2L17.59,15l2-2-2-2L19,9.59l2,2,2-2L24.41,11l-2,2Z\"\n })), children);\n});\nvar FaceDizzyFilled16 = /*#__PURE__*/React.forwardRef(function FaceDizzyFilled16(_ref219, ref) {\n var children = _ref219.children,\n rest = _objectWithoutProperties(_ref219, _excluded219);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path323 || (_path323 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM9,16.41,7.59,15l2-2-2-2L9,9.59l2,2,2-2L14.41,11l-2,2,2,2L13,16.41l-2-2ZM16,25a3,3,0,1,1,3-3A3,3,0,0,1,16,25Zm8.41-10L23,16.41l-2-2-2,2L17.59,15l2-2-2-2L19,9.59l2,2,2-2L24.41,11l-2,2Z\"\n })), children);\n});\nvar FaceMask32 = /*#__PURE__*/React.forwardRef(function FaceMask32(_ref220, ref) {\n var children = _ref220.children,\n rest = _objectWithoutProperties(_ref220, _excluded220);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path324 || (_path324 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.5 11A2.5 2.5 0 1014 13.5 2.5 2.5 0 0011.5 11zM20.5 11A2.5 2.5 0 1023 13.5 2.5 2.5 0 0020.5 11z\"\n })), _path325 || (_path325 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,16A14,14,0,1,0,8.8994,28.042l.0156.1562A1.993,1.993,0,0,0,10.9048,30h10.19a1.9929,1.9929,0,0,0,1.99-1.8008l.0156-.1572A13.9674,13.9674,0,0,0,30,16ZM16,4A11.99,11.99,0,0,1,27.97,15.397L22.7637,18H9.2363L4.0305,15.397A11.99,11.99,0,0,1,16,4ZM4.12,17.6777l3.94,1.97.5813,5.81A11.97,11.97,0,0,1,4.12,17.6777ZM21.0947,28H10.9053l-.8-8h11.79Zm2.2644-2.542.5811-5.81,3.94-1.97A11.9712,11.9712,0,0,1,23.3591,25.458Z\"\n })), children);\n});\nvar FaceMask24 = /*#__PURE__*/React.forwardRef(function FaceMask24(_ref221, ref) {\n var children = _ref221.children,\n rest = _objectWithoutProperties(_ref221, _excluded221);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path326 || (_path326 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.5 11A2.5 2.5 0 1014 13.5 2.5 2.5 0 0011.5 11zM20.5 11A2.5 2.5 0 1023 13.5 2.5 2.5 0 0020.5 11z\"\n })), _path327 || (_path327 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,16A14,14,0,1,0,8.8994,28.042l.0156.1562A1.993,1.993,0,0,0,10.9048,30h10.19a1.9929,1.9929,0,0,0,1.99-1.8008l.0156-.1572A13.9674,13.9674,0,0,0,30,16ZM16,4A11.99,11.99,0,0,1,27.97,15.397L22.7637,18H9.2363L4.0305,15.397A11.99,11.99,0,0,1,16,4ZM4.12,17.6777l3.94,1.97.5813,5.81A11.97,11.97,0,0,1,4.12,17.6777ZM21.0947,28H10.9053l-.8-8h11.79Zm2.2644-2.542.5811-5.81,3.94-1.97A11.9712,11.9712,0,0,1,23.3591,25.458Z\"\n })), children);\n});\nvar FaceMask20 = /*#__PURE__*/React.forwardRef(function FaceMask20(_ref222, ref) {\n var children = _ref222.children,\n rest = _objectWithoutProperties(_ref222, _excluded222);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path328 || (_path328 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.5 11A2.5 2.5 0 1014 13.5 2.5 2.5 0 0011.5 11zM20.5 11A2.5 2.5 0 1023 13.5 2.5 2.5 0 0020.5 11z\"\n })), _path329 || (_path329 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,16A14,14,0,1,0,8.8994,28.042l.0156.1562A1.993,1.993,0,0,0,10.9048,30h10.19a1.9929,1.9929,0,0,0,1.99-1.8008l.0156-.1572A13.9674,13.9674,0,0,0,30,16ZM16,4A11.99,11.99,0,0,1,27.97,15.397L22.7637,18H9.2363L4.0305,15.397A11.99,11.99,0,0,1,16,4ZM4.12,17.6777l3.94,1.97.5813,5.81A11.97,11.97,0,0,1,4.12,17.6777ZM21.0947,28H10.9053l-.8-8h11.79Zm2.2644-2.542.5811-5.81,3.94-1.97A11.9712,11.9712,0,0,1,23.3591,25.458Z\"\n })), children);\n});\nvar FaceMask16 = /*#__PURE__*/React.forwardRef(function FaceMask16(_ref223, ref) {\n var children = _ref223.children,\n rest = _objectWithoutProperties(_ref223, _excluded223);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path330 || (_path330 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.5 11A2.5 2.5 0 1014 13.5 2.5 2.5 0 0011.5 11zM20.5 11A2.5 2.5 0 1023 13.5 2.5 2.5 0 0020.5 11z\"\n })), _path331 || (_path331 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,16A14,14,0,1,0,8.8994,28.042l.0156.1562A1.993,1.993,0,0,0,10.9048,30h10.19a1.9929,1.9929,0,0,0,1.99-1.8008l.0156-.1572A13.9674,13.9674,0,0,0,30,16ZM16,4A11.99,11.99,0,0,1,27.97,15.397L22.7637,18H9.2363L4.0305,15.397A11.99,11.99,0,0,1,16,4ZM4.12,17.6777l3.94,1.97.5813,5.81A11.97,11.97,0,0,1,4.12,17.6777ZM21.0947,28H10.9053l-.8-8h11.79Zm2.2644-2.542.5811-5.81,3.94-1.97A11.9712,11.9712,0,0,1,23.3591,25.458Z\"\n })), children);\n});\nvar FaceNeutral32 = /*#__PURE__*/React.forwardRef(function FaceNeutral32(_ref224, ref) {\n var children = _ref224.children,\n rest = _objectWithoutProperties(_ref224, _excluded224);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path332 || (_path332 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z\"\n })), _path333 || (_path333 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.5 11A2.5 2.5 0 1014 13.5 2.5 2.5 0 0011.5 11zM20.5 11A2.5 2.5 0 1023 13.5 2.5 2.5 0 0020.5 11zM10 20H22V22H10z\"\n })), children);\n});\nvar FaceNeutral24 = /*#__PURE__*/React.forwardRef(function FaceNeutral24(_ref225, ref) {\n var children = _ref225.children,\n rest = _objectWithoutProperties(_ref225, _excluded225);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path334 || (_path334 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z\"\n })), _path335 || (_path335 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.5 11A2.5 2.5 0 1014 13.5 2.5 2.5 0 0011.5 11zM20.5 11A2.5 2.5 0 1023 13.5 2.5 2.5 0 0020.5 11zM10 20H22V22H10z\"\n })), children);\n});\nvar FaceNeutral20 = /*#__PURE__*/React.forwardRef(function FaceNeutral20(_ref226, ref) {\n var children = _ref226.children,\n rest = _objectWithoutProperties(_ref226, _excluded226);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path336 || (_path336 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z\"\n })), _path337 || (_path337 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.5 11A2.5 2.5 0 1014 13.5 2.5 2.5 0 0011.5 11zM20.5 11A2.5 2.5 0 1023 13.5 2.5 2.5 0 0020.5 11zM10 20H22V22H10z\"\n })), children);\n});\nvar FaceNeutral16 = /*#__PURE__*/React.forwardRef(function FaceNeutral16(_ref227, ref) {\n var children = _ref227.children,\n rest = _objectWithoutProperties(_ref227, _excluded227);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path338 || (_path338 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z\"\n })), _path339 || (_path339 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.5 11A2.5 2.5 0 1014 13.5 2.5 2.5 0 0011.5 11zM20.5 11A2.5 2.5 0 1023 13.5 2.5 2.5 0 0020.5 11zM10 20H22V22H10z\"\n })), children);\n});\nvar FaceNeutralFilled32 = /*#__PURE__*/React.forwardRef(function FaceNeutralFilled32(_ref228, ref) {\n var children = _ref228.children,\n rest = _objectWithoutProperties(_ref228, _excluded228);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path340 || (_path340 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM9,13.5A2.5,2.5,0,1,1,11.5,16,2.5,2.5,0,0,1,9,13.5ZM22,22H10V20H22Zm-1.5-6A2.5,2.5,0,1,1,23,13.5,2.5,2.5,0,0,1,20.5,16Z\"\n })), children);\n});\nvar FaceNeutralFilled24 = /*#__PURE__*/React.forwardRef(function FaceNeutralFilled24(_ref229, ref) {\n var children = _ref229.children,\n rest = _objectWithoutProperties(_ref229, _excluded229);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path341 || (_path341 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM9,13.5A2.5,2.5,0,1,1,11.5,16,2.5,2.5,0,0,1,9,13.5ZM22,22H10V20H22Zm-1.5-6A2.5,2.5,0,1,1,23,13.5,2.5,2.5,0,0,1,20.5,16Z\"\n })), children);\n});\nvar FaceNeutralFilled20 = /*#__PURE__*/React.forwardRef(function FaceNeutralFilled20(_ref230, ref) {\n var children = _ref230.children,\n rest = _objectWithoutProperties(_ref230, _excluded230);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path342 || (_path342 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM9,13.5A2.5,2.5,0,1,1,11.5,16,2.5,2.5,0,0,1,9,13.5ZM22,22H10V20H22Zm-1.5-6A2.5,2.5,0,1,1,23,13.5,2.5,2.5,0,0,1,20.5,16Z\"\n })), children);\n});\nvar FaceNeutralFilled16 = /*#__PURE__*/React.forwardRef(function FaceNeutralFilled16(_ref231, ref) {\n var children = _ref231.children,\n rest = _objectWithoutProperties(_ref231, _excluded231);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path343 || (_path343 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM9,13.5A2.5,2.5,0,1,1,11.5,16,2.5,2.5,0,0,1,9,13.5ZM22,22H10V20H22Zm-1.5-6A2.5,2.5,0,1,1,23,13.5,2.5,2.5,0,0,1,20.5,16Z\"\n })), children);\n});\nvar FacePending32 = /*#__PURE__*/React.forwardRef(function FacePending32(_ref232, ref) {\n var children = _ref232.children,\n rest = _objectWithoutProperties(_ref232, _excluded232);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path344 || (_path344 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z\"\n })), _path345 || (_path345 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.5 11A2.5 2.5 0 1014 13.5 2.48 2.48 0 0011.5 11zM20.5 11A2.5 2.5 0 1023 13.5 2.48 2.48 0 0020.5 11z\"\n })), children);\n});\nvar FacePending24 = /*#__PURE__*/React.forwardRef(function FacePending24(_ref233, ref) {\n var children = _ref233.children,\n rest = _objectWithoutProperties(_ref233, _excluded233);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path346 || (_path346 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z\"\n })), _path347 || (_path347 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.5 11A2.5 2.5 0 1014 13.5 2.48 2.48 0 0011.5 11zM20.5 11A2.5 2.5 0 1023 13.5 2.48 2.48 0 0020.5 11z\"\n })), children);\n});\nvar FacePending20 = /*#__PURE__*/React.forwardRef(function FacePending20(_ref234, ref) {\n var children = _ref234.children,\n rest = _objectWithoutProperties(_ref234, _excluded234);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path348 || (_path348 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z\"\n })), _path349 || (_path349 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.5 11A2.5 2.5 0 1014 13.5 2.48 2.48 0 0011.5 11zM20.5 11A2.5 2.5 0 1023 13.5 2.48 2.48 0 0020.5 11z\"\n })), children);\n});\nvar FacePending16 = /*#__PURE__*/React.forwardRef(function FacePending16(_ref235, ref) {\n var children = _ref235.children,\n rest = _objectWithoutProperties(_ref235, _excluded235);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path350 || (_path350 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z\"\n })), _path351 || (_path351 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.5 11A2.5 2.5 0 1014 13.5 2.48 2.48 0 0011.5 11zM20.5 11A2.5 2.5 0 1023 13.5 2.48 2.48 0 0020.5 11z\"\n })), children);\n});\nvar FacePendingFilled32 = /*#__PURE__*/React.forwardRef(function FacePendingFilled32(_ref236, ref) {\n var children = _ref236.children,\n rest = _objectWithoutProperties(_ref236, _excluded236);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path352 || (_path352 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM11.5,16A2.5,2.5,0,1,1,14,13.5,2.48,2.48,0,0,1,11.5,16Zm9,0A2.5,2.5,0,1,1,23,13.5,2.48,2.48,0,0,1,20.5,16Z\"\n })), children);\n});\nvar FacePendingFilled24 = /*#__PURE__*/React.forwardRef(function FacePendingFilled24(_ref237, ref) {\n var children = _ref237.children,\n rest = _objectWithoutProperties(_ref237, _excluded237);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path353 || (_path353 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM11.5,16A2.5,2.5,0,1,1,14,13.5,2.48,2.48,0,0,1,11.5,16Zm9,0A2.5,2.5,0,1,1,23,13.5,2.48,2.48,0,0,1,20.5,16Z\"\n })), children);\n});\nvar FacePendingFilled20 = /*#__PURE__*/React.forwardRef(function FacePendingFilled20(_ref238, ref) {\n var children = _ref238.children,\n rest = _objectWithoutProperties(_ref238, _excluded238);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path354 || (_path354 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM11.5,16A2.5,2.5,0,1,1,14,13.5,2.48,2.48,0,0,1,11.5,16Zm9,0A2.5,2.5,0,1,1,23,13.5,2.48,2.48,0,0,1,20.5,16Z\"\n })), children);\n});\nvar FacePendingFilled16 = /*#__PURE__*/React.forwardRef(function FacePendingFilled16(_ref239, ref) {\n var children = _ref239.children,\n rest = _objectWithoutProperties(_ref239, _excluded239);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path355 || (_path355 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM11.5,16A2.5,2.5,0,1,1,14,13.5,2.48,2.48,0,0,1,11.5,16Zm9,0A2.5,2.5,0,1,1,23,13.5,2.48,2.48,0,0,1,20.5,16Z\"\n })), children);\n});\nvar FaceSatisfied32 = /*#__PURE__*/React.forwardRef(function FaceSatisfied32(_ref240, ref) {\n var children = _ref240.children,\n rest = _objectWithoutProperties(_ref240, _excluded240);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path356 || (_path356 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z\"\n })), _path357 || (_path357 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.5 11A2.5 2.5 0 1014 13.5 2.48 2.48 0 0011.5 11zM20.5 11A2.5 2.5 0 1023 13.5 2.48 2.48 0 0020.5 11zM16 24a8 8 0 006.85-3.89l-1.71-1a6 6 0 01-10.28 0l-1.71 1A8 8 0 0016 24z\"\n })), children);\n});\nvar FaceSatisfied24 = /*#__PURE__*/React.forwardRef(function FaceSatisfied24(_ref241, ref) {\n var children = _ref241.children,\n rest = _objectWithoutProperties(_ref241, _excluded241);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path358 || (_path358 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z\"\n })), _path359 || (_path359 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.5 11A2.5 2.5 0 1014 13.5 2.48 2.48 0 0011.5 11zM20.5 11A2.5 2.5 0 1023 13.5 2.48 2.48 0 0020.5 11zM16 24a8 8 0 006.85-3.89l-1.71-1a6 6 0 01-10.28 0l-1.71 1A8 8 0 0016 24z\"\n })), children);\n});\nvar FaceSatisfied20 = /*#__PURE__*/React.forwardRef(function FaceSatisfied20(_ref242, ref) {\n var children = _ref242.children,\n rest = _objectWithoutProperties(_ref242, _excluded242);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path360 || (_path360 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z\"\n })), _path361 || (_path361 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.5 11A2.5 2.5 0 1014 13.5 2.48 2.48 0 0011.5 11zM20.5 11A2.5 2.5 0 1023 13.5 2.48 2.48 0 0020.5 11zM16 24a8 8 0 006.85-3.89l-1.71-1a6 6 0 01-10.28 0l-1.71 1A8 8 0 0016 24z\"\n })), children);\n});\nvar FaceSatisfied16 = /*#__PURE__*/React.forwardRef(function FaceSatisfied16(_ref243, ref) {\n var children = _ref243.children,\n rest = _objectWithoutProperties(_ref243, _excluded243);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path362 || (_path362 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z\"\n })), _path363 || (_path363 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.5 11A2.5 2.5 0 1014 13.5 2.48 2.48 0 0011.5 11zM20.5 11A2.5 2.5 0 1023 13.5 2.48 2.48 0 0020.5 11zM16 24a8 8 0 006.85-3.89l-1.71-1a6 6 0 01-10.28 0l-1.71 1A8 8 0 0016 24z\"\n })), children);\n});\nvar FaceSatisfiedFilled32 = /*#__PURE__*/React.forwardRef(function FaceSatisfiedFilled32(_ref244, ref) {\n var children = _ref244.children,\n rest = _objectWithoutProperties(_ref244, _excluded244);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path364 || (_path364 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm-4.5,9A2.5,2.5,0,1,1,9,13.5,2.48,2.48,0,0,1,11.5,11ZM16,24a8,8,0,0,1-6.85-3.89l1.71-1a6,6,0,0,0,10.28,0l1.71,1A8,8,0,0,1,16,24Zm4.5-8A2.5,2.5,0,1,1,23,13.5,2.48,2.48,0,0,1,20.5,16Z\"\n })), children);\n});\nvar FaceSatisfiedFilled24 = /*#__PURE__*/React.forwardRef(function FaceSatisfiedFilled24(_ref245, ref) {\n var children = _ref245.children,\n rest = _objectWithoutProperties(_ref245, _excluded245);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path365 || (_path365 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm-4.5,9A2.5,2.5,0,1,1,9,13.5,2.48,2.48,0,0,1,11.5,11ZM16,24a8,8,0,0,1-6.85-3.89l1.71-1a6,6,0,0,0,10.28,0l1.71,1A8,8,0,0,1,16,24Zm4.5-8A2.5,2.5,0,1,1,23,13.5,2.48,2.48,0,0,1,20.5,16Z\"\n })), children);\n});\nvar FaceSatisfiedFilled20 = /*#__PURE__*/React.forwardRef(function FaceSatisfiedFilled20(_ref246, ref) {\n var children = _ref246.children,\n rest = _objectWithoutProperties(_ref246, _excluded246);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path366 || (_path366 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm-4.5,9A2.5,2.5,0,1,1,9,13.5,2.48,2.48,0,0,1,11.5,11ZM16,24a8,8,0,0,1-6.85-3.89l1.71-1a6,6,0,0,0,10.28,0l1.71,1A8,8,0,0,1,16,24Zm4.5-8A2.5,2.5,0,1,1,23,13.5,2.48,2.48,0,0,1,20.5,16Z\"\n })), children);\n});\nvar FaceSatisfiedFilled16 = /*#__PURE__*/React.forwardRef(function FaceSatisfiedFilled16(_ref247, ref) {\n var children = _ref247.children,\n rest = _objectWithoutProperties(_ref247, _excluded247);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path367 || (_path367 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm-4.5,9A2.5,2.5,0,1,1,9,13.5,2.48,2.48,0,0,1,11.5,11ZM16,24a8,8,0,0,1-6.85-3.89l1.71-1a6,6,0,0,0,10.28,0l1.71,1A8,8,0,0,1,16,24Zm4.5-8A2.5,2.5,0,1,1,23,13.5,2.48,2.48,0,0,1,20.5,16Z\"\n })), children);\n});\nvar FaceWink32 = /*#__PURE__*/React.forwardRef(function FaceWink32(_ref248, ref) {\n var children = _ref248.children,\n rest = _objectWithoutProperties(_ref248, _excluded248);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path368 || (_path368 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z\"\n })), _path369 || (_path369 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20.5 11A2.5 2.5 0 1023 13.5 2.5 2.5 0 0020.5 11zM8 13H14V15H8zM16 24a8 8 0 006.85-3.89l-1.71-1a6 6 0 01-10.28 0l-1.71 1A8 8 0 0016 24z\"\n })), children);\n});\nvar FaceWink24 = /*#__PURE__*/React.forwardRef(function FaceWink24(_ref249, ref) {\n var children = _ref249.children,\n rest = _objectWithoutProperties(_ref249, _excluded249);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path370 || (_path370 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z\"\n })), _path371 || (_path371 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20.5 11A2.5 2.5 0 1023 13.5 2.5 2.5 0 0020.5 11zM8 13H14V15H8zM16 24a8 8 0 006.85-3.89l-1.71-1a6 6 0 01-10.28 0l-1.71 1A8 8 0 0016 24z\"\n })), children);\n});\nvar FaceWink20 = /*#__PURE__*/React.forwardRef(function FaceWink20(_ref250, ref) {\n var children = _ref250.children,\n rest = _objectWithoutProperties(_ref250, _excluded250);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path372 || (_path372 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z\"\n })), _path373 || (_path373 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20.5 11A2.5 2.5 0 1023 13.5 2.5 2.5 0 0020.5 11zM8 13H14V15H8zM16 24a8 8 0 006.85-3.89l-1.71-1a6 6 0 01-10.28 0l-1.71 1A8 8 0 0016 24z\"\n })), children);\n});\n\nexport { Drought16, Drought20, Drought24, Dvr16, Dvr20, Dvr24, Dvr32, Earth16, Earth20, Earth24, Earth32, EarthAmericas16, EarthAmericas20, EarthAmericas24, EarthAmericas32, EarthAmericasFilled16, EarthAmericasFilled20, EarthAmericasFilled24, EarthAmericasFilled32, EarthEuropeAfrica16, EarthEuropeAfrica20, EarthEuropeAfrica24, EarthEuropeAfrica32, EarthEuropeAfricaFilled16, EarthEuropeAfricaFilled20, EarthEuropeAfricaFilled24, EarthEuropeAfricaFilled32, EarthFilled16, EarthFilled20, EarthFilled24, EarthFilled32, EarthSoutheastAsia16, EarthSoutheastAsia20, EarthSoutheastAsia24, EarthSoutheastAsia32, EarthSoutheastAsiaFilled16, EarthSoutheastAsiaFilled20, EarthSoutheastAsiaFilled24, EarthSoutheastAsiaFilled32, Earthquake16, Earthquake20, Earthquake24, Earthquake32, EdgeCluster16, EdgeCluster20, EdgeCluster24, EdgeCluster32, EdgeDevice16, EdgeDevice20, EdgeDevice24, EdgeDevice32, EdgeNode16, EdgeNode20, EdgeNode24, EdgeNode32, EdgeNodeAlt16, EdgeNodeAlt20, EdgeNodeAlt24, EdgeNodeAlt32, EdgeService16, EdgeService20, EdgeService24, EdgeService32, Edit16, Edit20, Edit24, Edit32, EditOff16, EditOff20, EditOff24, EditOff32, EdtLoop16, EdtLoop20, EdtLoop24, EdtLoop32, Education16, Education20, Education24, Education32, Email16, Email20, Email24, Email32, EmailNew16, EmailNew20, EmailNew24, EmailNew32, EnergyRenewable16, EnergyRenewable20, EnergyRenewable24, EnergyRenewable32, Enterprise16, Enterprise20, Enterprise24, Enterprise32, Equalizer16, Equalizer20, Equalizer24, Equalizer32, Erase16, Erase20, Erase24, Erase32, Error16, Error20, Error24, Error32, ErrorFilled16, ErrorFilled20, ErrorFilled24, ErrorFilled32, ErrorOutline16, ErrorOutline20, ErrorOutline24, ErrorOutline32, Event16, Event20, Event24, Event32, EventSchedule16, EventSchedule20, EventSchedule24, EventSchedule32, Events16, Events20, Events24, Events32, EventsAlt16, EventsAlt20, EventsAlt24, EventsAlt32, ExamMode16, ExamMode20, ExamMode24, ExamMode32, Exit16, Exit20, Exit24, Exit32, ExpandAll16, ExpandAll20, ExpandAll24, ExpandAll32, ExpandCategories16, ExpandCategories20, ExpandCategories24, ExpandCategories32, Explore16, Explore20, Explore24, Explore32, Export16, Export20, Export24, Export32, Eyedropper16, Eyedropper20, Eyedropper24, Eyedropper32, FaceActivated16, FaceActivated20, FaceActivated24, FaceActivated32, FaceActivatedAdd16, FaceActivatedAdd20, FaceActivatedAdd24, FaceActivatedAdd32, FaceActivatedFilled16, FaceActivatedFilled20, FaceActivatedFilled24, FaceActivatedFilled32, FaceAdd16, FaceAdd20, FaceAdd24, FaceAdd32, FaceCool16, FaceCool20, FaceCool24, FaceCool32, FaceDissatisfied16, FaceDissatisfied20, FaceDissatisfied24, FaceDissatisfied32, FaceDissatisfiedFilled16, FaceDissatisfiedFilled20, FaceDissatisfiedFilled24, FaceDissatisfiedFilled32, FaceDizzy16, FaceDizzy20, FaceDizzy24, FaceDizzy32, FaceDizzyFilled16, FaceDizzyFilled20, FaceDizzyFilled24, FaceDizzyFilled32, FaceMask16, FaceMask20, FaceMask24, FaceMask32, FaceNeutral16, FaceNeutral20, FaceNeutral24, FaceNeutral32, FaceNeutralFilled16, FaceNeutralFilled20, FaceNeutralFilled24, FaceNeutralFilled32, FacePending16, FacePending20, FacePending24, FacePending32, FacePendingFilled16, FacePendingFilled20, FacePendingFilled24, FacePendingFilled32, FaceSatisfied16, FaceSatisfied20, FaceSatisfied24, FaceSatisfied32, FaceSatisfiedFilled16, FaceSatisfiedFilled20, FaceSatisfiedFilled24, FaceSatisfiedFilled32, FaceWink20, FaceWink24, FaceWink32, WatsonHealthEdgeEnhancement16, WatsonHealthEdgeEnhancement20, WatsonHealthEdgeEnhancement24, WatsonHealthEdgeEnhancement32, WatsonHealthEdgeEnhancement_0116, WatsonHealthEdgeEnhancement_0120, WatsonHealthEdgeEnhancement_0124, WatsonHealthEdgeEnhancement_0132, WatsonHealthEdgeEnhancement_0216, WatsonHealthEdgeEnhancement_0220, WatsonHealthEdgeEnhancement_0224, WatsonHealthEdgeEnhancement_0232, WatsonHealthEdgeEnhancement_0316, WatsonHealthEdgeEnhancement_0320, WatsonHealthEdgeEnhancement_0324, WatsonHealthEdgeEnhancement_0332, WatsonHealthEditFilter16, WatsonHealthEditFilter20, WatsonHealthEditFilter24, WatsonHealthEditFilter32, WatsonHealthErase_3D16, WatsonHealthErase_3D20, WatsonHealthErase_3D24, WatsonHealthErase_3D32 };\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _toArray from \"@babel/runtime/helpers/esm/toArray\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport { isFragment } from 'react-is';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { chainPropTypes } from '@material-ui/utils';\nimport Collapse from '../Collapse';\nimport Paper from '../Paper';\nimport withStyles from '../styles/withStyles';\nimport AccordionContext from './AccordionContext';\nimport useControlled from '../utils/useControlled';\nexport var styles = function styles(theme) {\n var transition = {\n duration: theme.transitions.duration.shortest\n };\n return {\n /* Styles applied to the root element. */\n root: {\n position: 'relative',\n transition: theme.transitions.create(['margin'], transition),\n '&:before': {\n position: 'absolute',\n left: 0,\n top: -1,\n right: 0,\n height: 1,\n content: '\"\"',\n opacity: 1,\n backgroundColor: theme.palette.divider,\n transition: theme.transitions.create(['opacity', 'background-color'], transition)\n },\n '&:first-child': {\n '&:before': {\n display: 'none'\n }\n },\n '&$expanded': {\n margin: '16px 0',\n '&:first-child': {\n marginTop: 0\n },\n '&:last-child': {\n marginBottom: 0\n },\n '&:before': {\n opacity: 0\n }\n },\n '&$expanded + &': {\n '&:before': {\n display: 'none'\n }\n },\n '&$disabled': {\n backgroundColor: theme.palette.action.disabledBackground\n }\n },\n\n /* Styles applied to the root element if `square={false}`. */\n rounded: {\n borderRadius: 0,\n '&:first-child': {\n borderTopLeftRadius: theme.shape.borderRadius,\n borderTopRightRadius: theme.shape.borderRadius\n },\n '&:last-child': {\n borderBottomLeftRadius: theme.shape.borderRadius,\n borderBottomRightRadius: theme.shape.borderRadius,\n // Fix a rendering issue on Edge\n '@supports (-ms-ime-align: auto)': {\n borderBottomLeftRadius: 0,\n borderBottomRightRadius: 0\n }\n }\n },\n\n /* Styles applied to the root element if `expanded={true}`. */\n expanded: {},\n\n /* Styles applied to the root element if `disabled={true}`. */\n disabled: {}\n };\n};\nvar Accordion = /*#__PURE__*/React.forwardRef(function Accordion(props, ref) {\n var childrenProp = props.children,\n classes = props.classes,\n className = props.className,\n _props$defaultExpande = props.defaultExpanded,\n defaultExpanded = _props$defaultExpande === void 0 ? false : _props$defaultExpande,\n _props$disabled = props.disabled,\n disabled = _props$disabled === void 0 ? false : _props$disabled,\n expandedProp = props.expanded,\n onChange = props.onChange,\n _props$square = props.square,\n square = _props$square === void 0 ? false : _props$square,\n _props$TransitionComp = props.TransitionComponent,\n TransitionComponent = _props$TransitionComp === void 0 ? Collapse : _props$TransitionComp,\n TransitionProps = props.TransitionProps,\n other = _objectWithoutProperties(props, [\"children\", \"classes\", \"className\", \"defaultExpanded\", \"disabled\", \"expanded\", \"onChange\", \"square\", \"TransitionComponent\", \"TransitionProps\"]);\n\n var _useControlled = useControlled({\n controlled: expandedProp,\n default: defaultExpanded,\n name: 'Accordion',\n state: 'expanded'\n }),\n _useControlled2 = _slicedToArray(_useControlled, 2),\n expanded = _useControlled2[0],\n setExpandedState = _useControlled2[1];\n\n var handleChange = React.useCallback(function (event) {\n setExpandedState(!expanded);\n\n if (onChange) {\n onChange(event, !expanded);\n }\n }, [expanded, onChange, setExpandedState]);\n\n var _React$Children$toArr = React.Children.toArray(childrenProp),\n _React$Children$toArr2 = _toArray(_React$Children$toArr),\n summary = _React$Children$toArr2[0],\n children = _React$Children$toArr2.slice(1);\n\n var contextValue = React.useMemo(function () {\n return {\n expanded: expanded,\n disabled: disabled,\n toggle: handleChange\n };\n }, [expanded, disabled, handleChange]);\n return /*#__PURE__*/React.createElement(Paper, _extends({\n className: clsx(classes.root, className, expanded && classes.expanded, disabled && classes.disabled, !square && classes.rounded),\n ref: ref,\n square: square\n }, other), /*#__PURE__*/React.createElement(AccordionContext.Provider, {\n value: contextValue\n }, summary), /*#__PURE__*/React.createElement(TransitionComponent, _extends({\n in: expanded,\n timeout: \"auto\"\n }, TransitionProps), /*#__PURE__*/React.createElement(\"div\", {\n \"aria-labelledby\": summary.props.id,\n id: summary.props['aria-controls'],\n role: \"region\"\n }, children)));\n});\nprocess.env.NODE_ENV !== \"production\" ? Accordion.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * The content of the accordion.\n */\n children: chainPropTypes(PropTypes.node.isRequired, function (props) {\n var summary = React.Children.toArray(props.children)[0];\n\n if (isFragment(summary)) {\n return new Error(\"Material-UI: The Accordion doesn't accept a Fragment as a child. \" + 'Consider providing an array instead.');\n }\n\n if (! /*#__PURE__*/React.isValidElement(summary)) {\n return new Error('Material-UI: Expected the first child of Accordion to be a valid element.');\n }\n\n return null;\n }),\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * If `true`, expands the accordion by default.\n */\n defaultExpanded: PropTypes.bool,\n\n /**\n * If `true`, the accordion will be displayed in a disabled state.\n */\n disabled: PropTypes.bool,\n\n /**\n * If `true`, expands the accordion, otherwise collapse it.\n * Setting this prop enables control over the accordion.\n */\n expanded: PropTypes.bool,\n\n /**\n * Callback fired when the expand/collapse state is changed.\n *\n * @param {object} event The event source of the callback.\n * @param {boolean} expanded The `expanded` state of the accordion.\n */\n onChange: PropTypes.func,\n\n /**\n * If `true`, rounded corners are disabled.\n */\n square: PropTypes.bool,\n\n /**\n * The component used for the collapse effect.\n * [Follow this guide](/components/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.\n */\n TransitionComponent: PropTypes.elementType,\n\n /**\n * Props applied to the [`Transition`](http://reactcommunity.org/react-transition-group/transition#Transition-props) element.\n */\n TransitionProps: PropTypes.object\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiAccordion'\n})(Accordion);","import * as React from 'react';\n/**\n * @ignore - internal component.\n * @type {React.Context<{} | {expanded: boolean, disabled: boolean, toggle: () => void}>}\n */\n\nvar AccordionContext = React.createContext({});\n\nif (process.env.NODE_ENV !== 'production') {\n AccordionContext.displayName = 'AccordionContext';\n}\n\nexport default AccordionContext;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport withStyles from '../styles/withStyles';\nexport var styles = function styles(theme) {\n return {\n /* Styles applied to the root element. */\n root: {\n display: 'flex',\n padding: theme.spacing(1, 2, 2)\n }\n };\n};\nvar AccordionDetails = /*#__PURE__*/React.forwardRef(function AccordionDetails(props, ref) {\n var classes = props.classes,\n className = props.className,\n other = _objectWithoutProperties(props, [\"classes\", \"className\"]);\n\n return /*#__PURE__*/React.createElement(\"div\", _extends({\n className: clsx(classes.root, className),\n ref: ref\n }, other));\n});\nprocess.env.NODE_ENV !== \"production\" ? AccordionDetails.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * The content of the accordion details.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * @ignore\n */\n className: PropTypes.string\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiAccordionDetails'\n})(AccordionDetails);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\n\n/* eslint-disable jsx-a11y/aria-role */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { chainPropTypes } from '@material-ui/utils';\nimport ButtonBase from '../ButtonBase';\nimport IconButton from '../IconButton';\nimport withStyles from '../styles/withStyles';\nimport AccordionContext from '../Accordion/AccordionContext';\nexport var styles = function styles(theme) {\n var transition = {\n duration: theme.transitions.duration.shortest\n };\n return {\n /* Styles applied to the root element. */\n root: {\n display: 'flex',\n minHeight: 8 * 6,\n transition: theme.transitions.create(['min-height', 'background-color'], transition),\n padding: theme.spacing(0, 2),\n '&:hover:not($disabled)': {\n cursor: 'pointer'\n },\n '&$expanded': {\n minHeight: 64\n },\n '&$focused, &$focusVisible': {\n backgroundColor: theme.palette.action.focus\n },\n '&$disabled': {\n opacity: theme.palette.action.disabledOpacity\n }\n },\n\n /* Pseudo-class applied to the root element, children wrapper element and `IconButton` component if `expanded={true}`. */\n expanded: {},\n\n /* Pseudo-class applied to the ButtonBase root element if the button is keyboard focused. */\n focused: {},\n\n /* Pseudo-class applied to the ButtonBase root element if the button is keyboard focused. */\n focusVisible: {},\n\n /* Pseudo-class applied to the root element if `disabled={true}`. */\n disabled: {},\n\n /* Styles applied to the children wrapper element. */\n content: {\n display: 'flex',\n flexGrow: 1,\n transition: theme.transitions.create(['margin'], transition),\n margin: '12px 0',\n '&$expanded': {\n margin: '20px 0'\n }\n },\n\n /* Styles applied to the `IconButton` component when `expandIcon` is supplied. */\n expandIcon: {\n transform: 'rotate(0deg)',\n transition: theme.transitions.create('transform', transition),\n '&:hover': {\n // Disable the hover effect for the IconButton,\n // because a hover effect should apply to the entire Expand button and\n // not only to the IconButton.\n backgroundColor: 'transparent'\n },\n '&$expanded': {\n transform: 'rotate(180deg)'\n }\n }\n };\n};\nvar AccordionSummary = /*#__PURE__*/React.forwardRef(function AccordionSummary(props, ref) {\n var children = props.children,\n classes = props.classes,\n className = props.className,\n expandIcon = props.expandIcon,\n focusVisibleClassName = props.focusVisibleClassName,\n _props$IconButtonProp = props.IconButtonProps,\n IconButtonProps = _props$IconButtonProp === void 0 ? {} : _props$IconButtonProp,\n onClick = props.onClick,\n other = _objectWithoutProperties(props, [\"children\", \"classes\", \"className\", \"expandIcon\", \"focusVisibleClassName\", \"IconButtonProps\", \"onClick\"]);\n\n var _React$useContext = React.useContext(AccordionContext),\n _React$useContext$dis = _React$useContext.disabled,\n disabled = _React$useContext$dis === void 0 ? false : _React$useContext$dis,\n expanded = _React$useContext.expanded,\n toggle = _React$useContext.toggle;\n\n var handleChange = function handleChange(event) {\n if (toggle) {\n toggle(event);\n }\n\n if (onClick) {\n onClick(event);\n }\n };\n\n return /*#__PURE__*/React.createElement(ButtonBase, _extends({\n focusRipple: false,\n disableRipple: true,\n disabled: disabled,\n component: \"div\",\n \"aria-expanded\": expanded,\n className: clsx(classes.root, className, disabled && classes.disabled, expanded && classes.expanded),\n focusVisibleClassName: clsx(classes.focusVisible, classes.focused, focusVisibleClassName),\n onClick: handleChange,\n ref: ref\n }, other), /*#__PURE__*/React.createElement(\"div\", {\n className: clsx(classes.content, expanded && classes.expanded)\n }, children), expandIcon && /*#__PURE__*/React.createElement(IconButton, _extends({\n className: clsx(classes.expandIcon, expanded && classes.expanded),\n edge: \"end\",\n component: \"div\",\n tabIndex: null,\n role: null,\n \"aria-hidden\": true\n }, IconButtonProps), expandIcon));\n});\nprocess.env.NODE_ENV !== \"production\" ? AccordionSummary.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * The content of the accordion summary.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: chainPropTypes(PropTypes.object, function (props) {\n // Guard against when generation of classes is disabled in the stylesheets (`disableGeneration`).\n // For `disableGeneration` we don't have an accurate warning but `disableGeneration` is an advanced use case anyway.\n if (props.classes.focused !== undefined && props.classes.focused.indexOf(' ') !== -1) {\n return new Error(['Material-UI: The `classes.focused` key is deprecated.', 'Use `classes.focusVisible` instead.', 'The name of the pseudo-class was changed for consistency.'].join('\\n'));\n }\n\n return null;\n }),\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The icon to display as the expand indicator.\n */\n expandIcon: PropTypes.node,\n\n /**\n * This prop can help identify which element has keyboard focus.\n * The class name will be applied when the element gains the focus through keyboard interaction.\n * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).\n * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/master/explainer.md).\n * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components\n * if needed.\n */\n focusVisibleClassName: PropTypes.string,\n\n /**\n * Props applied to the `IconButton` element wrapping the expand icon.\n */\n IconButtonProps: PropTypes.object,\n\n /**\n * @ignore\n */\n onClick: PropTypes.func\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiAccordionSummary'\n})(AccordionSummary);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport withStyles from '../styles/withStyles';\nimport capitalize from '../utils/capitalize';\nimport Paper from '../Paper';\nexport var styles = function styles(theme) {\n var backgroundColorDefault = theme.palette.type === 'light' ? theme.palette.grey[100] : theme.palette.grey[900];\n return {\n /* Styles applied to the root element. */\n root: {\n display: 'flex',\n flexDirection: 'column',\n width: '100%',\n boxSizing: 'border-box',\n // Prevent padding issue with the Modal and fixed positioned AppBar.\n zIndex: theme.zIndex.appBar,\n flexShrink: 0\n },\n\n /* Styles applied to the root element if `position=\"fixed\"`. */\n positionFixed: {\n position: 'fixed',\n top: 0,\n left: 'auto',\n right: 0,\n '@media print': {\n // Prevent the app bar to be visible on each printed page.\n position: 'absolute'\n }\n },\n\n /* Styles applied to the root element if `position=\"absolute\"`. */\n positionAbsolute: {\n position: 'absolute',\n top: 0,\n left: 'auto',\n right: 0\n },\n\n /* Styles applied to the root element if `position=\"sticky\"`. */\n positionSticky: {\n // ⚠️ sticky is not supported by IE 11.\n position: 'sticky',\n top: 0,\n left: 'auto',\n right: 0\n },\n\n /* Styles applied to the root element if `position=\"static\"`. */\n positionStatic: {\n position: 'static'\n },\n\n /* Styles applied to the root element if `position=\"relative\"`. */\n positionRelative: {\n position: 'relative'\n },\n\n /* Styles applied to the root element if `color=\"default\"`. */\n colorDefault: {\n backgroundColor: backgroundColorDefault,\n color: theme.palette.getContrastText(backgroundColorDefault)\n },\n\n /* Styles applied to the root element if `color=\"primary\"`. */\n colorPrimary: {\n backgroundColor: theme.palette.primary.main,\n color: theme.palette.primary.contrastText\n },\n\n /* Styles applied to the root element if `color=\"secondary\"`. */\n colorSecondary: {\n backgroundColor: theme.palette.secondary.main,\n color: theme.palette.secondary.contrastText\n },\n\n /* Styles applied to the root element if `color=\"inherit\"`. */\n colorInherit: {\n color: 'inherit'\n },\n\n /* Styles applied to the root element if `color=\"transparent\"`. */\n colorTransparent: {\n backgroundColor: 'transparent',\n color: 'inherit'\n }\n };\n};\nvar AppBar = /*#__PURE__*/React.forwardRef(function AppBar(props, ref) {\n var classes = props.classes,\n className = props.className,\n _props$color = props.color,\n color = _props$color === void 0 ? 'primary' : _props$color,\n _props$position = props.position,\n position = _props$position === void 0 ? 'fixed' : _props$position,\n other = _objectWithoutProperties(props, [\"classes\", \"className\", \"color\", \"position\"]);\n\n return /*#__PURE__*/React.createElement(Paper, _extends({\n square: true,\n component: \"header\",\n elevation: 4,\n className: clsx(classes.root, classes[\"position\".concat(capitalize(position))], classes[\"color\".concat(capitalize(color))], className, position === 'fixed' && 'mui-fixed'),\n ref: ref\n }, other));\n});\nprocess.env.NODE_ENV !== \"production\" ? AppBar.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The color of the component. It supports those theme colors that make sense for this component.\n */\n color: PropTypes.oneOf(['default', 'inherit', 'primary', 'secondary', 'transparent']),\n\n /**\n * The positioning type. The behavior of the different options is described\n * [in the MDN web docs](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Positioning).\n * Note: `sticky` is not universally supported and will fall back to `static` when unavailable.\n */\n position: PropTypes.oneOf(['absolute', 'fixed', 'relative', 'static', 'sticky'])\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiAppBar'\n})(AppBar);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport withStyles from '../styles/withStyles';\nimport Fade from '../Fade';\nexport var styles = {\n /* Styles applied to the root element. */\n root: {\n // Improve scrollable dialog support.\n zIndex: -1,\n position: 'fixed',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n right: 0,\n bottom: 0,\n top: 0,\n left: 0,\n backgroundColor: 'rgba(0, 0, 0, 0.5)',\n WebkitTapHighlightColor: 'transparent'\n },\n\n /* Styles applied to the root element if `invisible={true}`. */\n invisible: {\n backgroundColor: 'transparent'\n }\n};\nvar Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(props, ref) {\n var children = props.children,\n classes = props.classes,\n className = props.className,\n _props$invisible = props.invisible,\n invisible = _props$invisible === void 0 ? false : _props$invisible,\n open = props.open,\n transitionDuration = props.transitionDuration,\n _props$TransitionComp = props.TransitionComponent,\n TransitionComponent = _props$TransitionComp === void 0 ? Fade : _props$TransitionComp,\n other = _objectWithoutProperties(props, [\"children\", \"classes\", \"className\", \"invisible\", \"open\", \"transitionDuration\", \"TransitionComponent\"]);\n\n return /*#__PURE__*/React.createElement(TransitionComponent, _extends({\n in: open,\n timeout: transitionDuration\n }, other), /*#__PURE__*/React.createElement(\"div\", {\n className: clsx(classes.root, className, invisible && classes.invisible),\n \"aria-hidden\": true,\n ref: ref\n }, children));\n});\nprocess.env.NODE_ENV !== \"production\" ? Backdrop.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * If `true`, the backdrop is invisible.\n * It can be used when rendering a popover or a custom select component.\n */\n invisible: PropTypes.bool,\n\n /**\n * If `true`, the backdrop is open.\n */\n open: PropTypes.bool.isRequired,\n\n /**\n * The duration for the transition, in milliseconds.\n * You may specify a single timeout for all transitions, or individually with an object.\n */\n transitionDuration: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })])\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiBackdrop'\n})(Backdrop);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport withStyles from '../styles/withStyles';\nimport { emphasize } from '../styles/colorManipulator';\nimport MoreHorizIcon from '../internal/svg-icons/MoreHoriz';\nimport ButtonBase from '../ButtonBase';\n\nvar styles = function styles(theme) {\n return {\n root: {\n display: 'flex',\n marginLeft: theme.spacing(0.5),\n marginRight: theme.spacing(0.5),\n backgroundColor: theme.palette.grey[100],\n color: theme.palette.grey[700],\n borderRadius: 2,\n cursor: 'pointer',\n '&:hover, &:focus': {\n backgroundColor: theme.palette.grey[200]\n },\n '&:active': {\n boxShadow: theme.shadows[0],\n backgroundColor: emphasize(theme.palette.grey[200], 0.12)\n }\n },\n icon: {\n width: 24,\n height: 16\n }\n };\n};\n/**\n * @ignore - internal component.\n */\n\n\nfunction BreadcrumbCollapsed(props) {\n var classes = props.classes,\n other = _objectWithoutProperties(props, [\"classes\"]);\n\n return /*#__PURE__*/React.createElement(ButtonBase, _extends({\n component: \"li\",\n className: classes.root,\n focusRipple: true\n }, other), /*#__PURE__*/React.createElement(MoreHorizIcon, {\n className: classes.icon\n }));\n}\n\nprocess.env.NODE_ENV !== \"production\" ? BreadcrumbCollapsed.propTypes = {\n /**\n * @ignore\n */\n classes: PropTypes.object.isRequired\n} : void 0;\nexport default withStyles(styles, {\n name: 'PrivateBreadcrumbCollapsed'\n})(BreadcrumbCollapsed);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport { isFragment } from 'react-is';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport withStyles from '../styles/withStyles';\nimport Typography from '../Typography';\nimport BreadcrumbCollapsed from './BreadcrumbCollapsed';\nexport var styles = {\n /* Styles applied to the root element. */\n root: {},\n\n /* Styles applied to the ol element. */\n ol: {\n display: 'flex',\n flexWrap: 'wrap',\n alignItems: 'center',\n padding: 0,\n margin: 0,\n listStyle: 'none'\n },\n\n /* Styles applied to the li element. */\n li: {},\n\n /* Styles applied to the separator element. */\n separator: {\n display: 'flex',\n userSelect: 'none',\n marginLeft: 8,\n marginRight: 8\n }\n};\n\nfunction insertSeparators(items, className, separator) {\n return items.reduce(function (acc, current, index) {\n if (index < items.length - 1) {\n acc = acc.concat(current, /*#__PURE__*/React.createElement(\"li\", {\n \"aria-hidden\": true,\n key: \"separator-\".concat(index),\n className: className\n }, separator));\n } else {\n acc.push(current);\n }\n\n return acc;\n }, []);\n}\n\nvar Breadcrumbs = /*#__PURE__*/React.forwardRef(function Breadcrumbs(props, ref) {\n var children = props.children,\n classes = props.classes,\n className = props.className,\n _props$component = props.component,\n Component = _props$component === void 0 ? 'nav' : _props$component,\n _props$expandText = props.expandText,\n expandText = _props$expandText === void 0 ? 'Show path' : _props$expandText,\n _props$itemsAfterColl = props.itemsAfterCollapse,\n itemsAfterCollapse = _props$itemsAfterColl === void 0 ? 1 : _props$itemsAfterColl,\n _props$itemsBeforeCol = props.itemsBeforeCollapse,\n itemsBeforeCollapse = _props$itemsBeforeCol === void 0 ? 1 : _props$itemsBeforeCol,\n _props$maxItems = props.maxItems,\n maxItems = _props$maxItems === void 0 ? 8 : _props$maxItems,\n _props$separator = props.separator,\n separator = _props$separator === void 0 ? '/' : _props$separator,\n other = _objectWithoutProperties(props, [\"children\", \"classes\", \"className\", \"component\", \"expandText\", \"itemsAfterCollapse\", \"itemsBeforeCollapse\", \"maxItems\", \"separator\"]);\n\n var _React$useState = React.useState(false),\n expanded = _React$useState[0],\n setExpanded = _React$useState[1];\n\n var renderItemsBeforeAndAfter = function renderItemsBeforeAndAfter(allItems) {\n var handleClickExpand = function handleClickExpand(event) {\n setExpanded(true); // The clicked element received the focus but gets removed from the DOM.\n // Let's keep the focus in the component after expanding.\n\n var focusable = event.currentTarget.parentNode.querySelector('a[href],button,[tabindex]');\n\n if (focusable) {\n focusable.focus();\n }\n }; // This defends against someone passing weird input, to ensure that if all\n // items would be shown anyway, we just show all items without the EllipsisItem\n\n\n if (itemsBeforeCollapse + itemsAfterCollapse >= allItems.length) {\n if (process.env.NODE_ENV !== 'production') {\n console.error(['Material-UI: You have provided an invalid combination of props to the Breadcrumbs.', \"itemsAfterCollapse={\".concat(itemsAfterCollapse, \"} + itemsBeforeCollapse={\").concat(itemsBeforeCollapse, \"} >= maxItems={\").concat(maxItems, \"}\")].join('\\n'));\n }\n\n return allItems;\n }\n\n return [].concat(_toConsumableArray(allItems.slice(0, itemsBeforeCollapse)), [/*#__PURE__*/React.createElement(BreadcrumbCollapsed, {\n \"aria-label\": expandText,\n key: \"ellipsis\",\n onClick: handleClickExpand\n })], _toConsumableArray(allItems.slice(allItems.length - itemsAfterCollapse, allItems.length)));\n };\n\n var allItems = React.Children.toArray(children).filter(function (child) {\n if (process.env.NODE_ENV !== 'production') {\n if (isFragment(child)) {\n console.error([\"Material-UI: The Breadcrumbs component doesn't accept a Fragment as a child.\", 'Consider providing an array instead.'].join('\\n'));\n }\n }\n\n return /*#__PURE__*/React.isValidElement(child);\n }).map(function (child, index) {\n return /*#__PURE__*/React.createElement(\"li\", {\n className: classes.li,\n key: \"child-\".concat(index)\n }, child);\n });\n return /*#__PURE__*/React.createElement(Typography, _extends({\n ref: ref,\n component: Component,\n color: \"textSecondary\",\n className: clsx(classes.root, className)\n }, other), /*#__PURE__*/React.createElement(\"ol\", {\n className: classes.ol\n }, insertSeparators(expanded || maxItems && allItems.length <= maxItems ? allItems : renderItemsBeforeAndAfter(allItems), classes.separator, separator)));\n});\nprocess.env.NODE_ENV !== \"production\" ? Breadcrumbs.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * The breadcrumb children.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes\n /* @typescript-to-proptypes-ignore */\n .elementType,\n\n /**\n * Override the default label for the expand button.\n *\n * For localization purposes, you can use the provided [translations](/guides/localization/).\n */\n expandText: PropTypes.string,\n\n /**\n * If max items is exceeded, the number of items to show after the ellipsis.\n */\n itemsAfterCollapse: PropTypes.number,\n\n /**\n * If max items is exceeded, the number of items to show before the ellipsis.\n */\n itemsBeforeCollapse: PropTypes.number,\n\n /**\n * Specifies the maximum number of breadcrumbs to display. When there are more\n * than the maximum number, only the first `itemsBeforeCollapse` and last `itemsAfterCollapse`\n * will be shown, with an ellipsis in between.\n */\n maxItems: PropTypes.number,\n\n /**\n * Custom separator node.\n */\n separator: PropTypes.node\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiBreadcrumbs'\n})(Breadcrumbs);","import _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport withStyles from '../styles/withStyles';\nimport { alpha } from '../styles/colorManipulator';\nimport ButtonBase from '../ButtonBase';\nimport capitalize from '../utils/capitalize';\nexport var styles = function styles(theme) {\n return {\n /* Styles applied to the root element. */\n root: _extends({}, theme.typography.button, {\n boxSizing: 'border-box',\n minWidth: 64,\n padding: '6px 16px',\n borderRadius: theme.shape.borderRadius,\n color: theme.palette.text.primary,\n transition: theme.transitions.create(['background-color', 'box-shadow', 'border'], {\n duration: theme.transitions.duration.short\n }),\n '&:hover': {\n textDecoration: 'none',\n backgroundColor: alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n },\n '&$disabled': {\n backgroundColor: 'transparent'\n }\n },\n '&$disabled': {\n color: theme.palette.action.disabled\n }\n }),\n\n /* Styles applied to the span element that wraps the children. */\n label: {\n width: '100%',\n // Ensure the correct width for iOS Safari\n display: 'inherit',\n alignItems: 'inherit',\n justifyContent: 'inherit'\n },\n\n /* Styles applied to the root element if `variant=\"text\"`. */\n text: {\n padding: '6px 8px'\n },\n\n /* Styles applied to the root element if `variant=\"text\"` and `color=\"primary\"`. */\n textPrimary: {\n color: theme.palette.primary.main,\n '&:hover': {\n backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n }\n },\n\n /* Styles applied to the root element if `variant=\"text\"` and `color=\"secondary\"`. */\n textSecondary: {\n color: theme.palette.secondary.main,\n '&:hover': {\n backgroundColor: alpha(theme.palette.secondary.main, theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n }\n },\n\n /* Styles applied to the root element if `variant=\"outlined\"`. */\n outlined: {\n padding: '5px 15px',\n border: \"1px solid \".concat(theme.palette.type === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'),\n '&$disabled': {\n border: \"1px solid \".concat(theme.palette.action.disabledBackground)\n }\n },\n\n /* Styles applied to the root element if `variant=\"outlined\"` and `color=\"primary\"`. */\n outlinedPrimary: {\n color: theme.palette.primary.main,\n border: \"1px solid \".concat(alpha(theme.palette.primary.main, 0.5)),\n '&:hover': {\n border: \"1px solid \".concat(theme.palette.primary.main),\n backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n }\n },\n\n /* Styles applied to the root element if `variant=\"outlined\"` and `color=\"secondary\"`. */\n outlinedSecondary: {\n color: theme.palette.secondary.main,\n border: \"1px solid \".concat(alpha(theme.palette.secondary.main, 0.5)),\n '&:hover': {\n border: \"1px solid \".concat(theme.palette.secondary.main),\n backgroundColor: alpha(theme.palette.secondary.main, theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n },\n '&$disabled': {\n border: \"1px solid \".concat(theme.palette.action.disabled)\n }\n },\n\n /* Styles applied to the root element if `variant=\"contained\"`. */\n contained: {\n color: theme.palette.getContrastText(theme.palette.grey[300]),\n backgroundColor: theme.palette.grey[300],\n boxShadow: theme.shadows[2],\n '&:hover': {\n backgroundColor: theme.palette.grey.A100,\n boxShadow: theme.shadows[4],\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n boxShadow: theme.shadows[2],\n backgroundColor: theme.palette.grey[300]\n },\n '&$disabled': {\n backgroundColor: theme.palette.action.disabledBackground\n }\n },\n '&$focusVisible': {\n boxShadow: theme.shadows[6]\n },\n '&:active': {\n boxShadow: theme.shadows[8]\n },\n '&$disabled': {\n color: theme.palette.action.disabled,\n boxShadow: theme.shadows[0],\n backgroundColor: theme.palette.action.disabledBackground\n }\n },\n\n /* Styles applied to the root element if `variant=\"contained\"` and `color=\"primary\"`. */\n containedPrimary: {\n color: theme.palette.primary.contrastText,\n backgroundColor: theme.palette.primary.main,\n '&:hover': {\n backgroundColor: theme.palette.primary.dark,\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: theme.palette.primary.main\n }\n }\n },\n\n /* Styles applied to the root element if `variant=\"contained\"` and `color=\"secondary\"`. */\n containedSecondary: {\n color: theme.palette.secondary.contrastText,\n backgroundColor: theme.palette.secondary.main,\n '&:hover': {\n backgroundColor: theme.palette.secondary.dark,\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: theme.palette.secondary.main\n }\n }\n },\n\n /* Styles applied to the root element if `disableElevation={true}`. */\n disableElevation: {\n boxShadow: 'none',\n '&:hover': {\n boxShadow: 'none'\n },\n '&$focusVisible': {\n boxShadow: 'none'\n },\n '&:active': {\n boxShadow: 'none'\n },\n '&$disabled': {\n boxShadow: 'none'\n }\n },\n\n /* Pseudo-class applied to the ButtonBase root element if the button is keyboard focused. */\n focusVisible: {},\n\n /* Pseudo-class applied to the root element if `disabled={true}`. */\n disabled: {},\n\n /* Styles applied to the root element if `color=\"inherit\"`. */\n colorInherit: {\n color: 'inherit',\n borderColor: 'currentColor'\n },\n\n /* Styles applied to the root element if `size=\"small\"` and `variant=\"text\"`. */\n textSizeSmall: {\n padding: '4px 5px',\n fontSize: theme.typography.pxToRem(13)\n },\n\n /* Styles applied to the root element if `size=\"large\"` and `variant=\"text\"`. */\n textSizeLarge: {\n padding: '8px 11px',\n fontSize: theme.typography.pxToRem(15)\n },\n\n /* Styles applied to the root element if `size=\"small\"` and `variant=\"outlined\"`. */\n outlinedSizeSmall: {\n padding: '3px 9px',\n fontSize: theme.typography.pxToRem(13)\n },\n\n /* Styles applied to the root element if `size=\"large\"` and `variant=\"outlined\"`. */\n outlinedSizeLarge: {\n padding: '7px 21px',\n fontSize: theme.typography.pxToRem(15)\n },\n\n /* Styles applied to the root element if `size=\"small\"` and `variant=\"contained\"`. */\n containedSizeSmall: {\n padding: '4px 10px',\n fontSize: theme.typography.pxToRem(13)\n },\n\n /* Styles applied to the root element if `size=\"large\"` and `variant=\"contained\"`. */\n containedSizeLarge: {\n padding: '8px 22px',\n fontSize: theme.typography.pxToRem(15)\n },\n\n /* Styles applied to the root element if `size=\"small\"`. */\n sizeSmall: {},\n\n /* Styles applied to the root element if `size=\"large\"`. */\n sizeLarge: {},\n\n /* Styles applied to the root element if `fullWidth={true}`. */\n fullWidth: {\n width: '100%'\n },\n\n /* Styles applied to the startIcon element if supplied. */\n startIcon: {\n display: 'inherit',\n marginRight: 8,\n marginLeft: -4,\n '&$iconSizeSmall': {\n marginLeft: -2\n }\n },\n\n /* Styles applied to the endIcon element if supplied. */\n endIcon: {\n display: 'inherit',\n marginRight: -4,\n marginLeft: 8,\n '&$iconSizeSmall': {\n marginRight: -2\n }\n },\n\n /* Styles applied to the icon element if supplied and `size=\"small\"`. */\n iconSizeSmall: {\n '& > *:first-child': {\n fontSize: 18\n }\n },\n\n /* Styles applied to the icon element if supplied and `size=\"medium\"`. */\n iconSizeMedium: {\n '& > *:first-child': {\n fontSize: 20\n }\n },\n\n /* Styles applied to the icon element if supplied and `size=\"large\"`. */\n iconSizeLarge: {\n '& > *:first-child': {\n fontSize: 22\n }\n }\n };\n};\nvar Button = /*#__PURE__*/React.forwardRef(function Button(props, ref) {\n var children = props.children,\n classes = props.classes,\n className = props.className,\n _props$color = props.color,\n color = _props$color === void 0 ? 'default' : _props$color,\n _props$component = props.component,\n component = _props$component === void 0 ? 'button' : _props$component,\n _props$disabled = props.disabled,\n disabled = _props$disabled === void 0 ? false : _props$disabled,\n _props$disableElevati = props.disableElevation,\n disableElevation = _props$disableElevati === void 0 ? false : _props$disableElevati,\n _props$disableFocusRi = props.disableFocusRipple,\n disableFocusRipple = _props$disableFocusRi === void 0 ? false : _props$disableFocusRi,\n endIconProp = props.endIcon,\n focusVisibleClassName = props.focusVisibleClassName,\n _props$fullWidth = props.fullWidth,\n fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth,\n _props$size = props.size,\n size = _props$size === void 0 ? 'medium' : _props$size,\n startIconProp = props.startIcon,\n _props$type = props.type,\n type = _props$type === void 0 ? 'button' : _props$type,\n _props$variant = props.variant,\n variant = _props$variant === void 0 ? 'text' : _props$variant,\n other = _objectWithoutProperties(props, [\"children\", \"classes\", \"className\", \"color\", \"component\", \"disabled\", \"disableElevation\", \"disableFocusRipple\", \"endIcon\", \"focusVisibleClassName\", \"fullWidth\", \"size\", \"startIcon\", \"type\", \"variant\"]);\n\n var startIcon = startIconProp && /*#__PURE__*/React.createElement(\"span\", {\n className: clsx(classes.startIcon, classes[\"iconSize\".concat(capitalize(size))])\n }, startIconProp);\n var endIcon = endIconProp && /*#__PURE__*/React.createElement(\"span\", {\n className: clsx(classes.endIcon, classes[\"iconSize\".concat(capitalize(size))])\n }, endIconProp);\n return /*#__PURE__*/React.createElement(ButtonBase, _extends({\n className: clsx(classes.root, classes[variant], className, color === 'inherit' ? classes.colorInherit : color !== 'default' && classes[\"\".concat(variant).concat(capitalize(color))], size !== 'medium' && [classes[\"\".concat(variant, \"Size\").concat(capitalize(size))], classes[\"size\".concat(capitalize(size))]], disableElevation && classes.disableElevation, disabled && classes.disabled, fullWidth && classes.fullWidth),\n component: component,\n disabled: disabled,\n focusRipple: !disableFocusRipple,\n focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),\n ref: ref,\n type: type\n }, other), /*#__PURE__*/React.createElement(\"span\", {\n className: classes.label\n }, startIcon, children, endIcon));\n});\nprocess.env.NODE_ENV !== \"production\" ? Button.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * The content of the button.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The color of the component. It supports those theme colors that make sense for this component.\n */\n color: PropTypes.oneOf(['default', 'inherit', 'primary', 'secondary']),\n\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes\n /* @typescript-to-proptypes-ignore */\n .elementType,\n\n /**\n * If `true`, the button will be disabled.\n */\n disabled: PropTypes.bool,\n\n /**\n * If `true`, no elevation is used.\n */\n disableElevation: PropTypes.bool,\n\n /**\n * If `true`, the keyboard focus ripple will be disabled.\n */\n disableFocusRipple: PropTypes.bool,\n\n /**\n * If `true`, the ripple effect will be disabled.\n *\n * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure\n * to highlight the element by applying separate styles with the `focusVisibleClassName`.\n */\n disableRipple: PropTypes.bool,\n\n /**\n * Element placed after the children.\n */\n endIcon: PropTypes.node,\n\n /**\n * @ignore\n */\n focusVisibleClassName: PropTypes.string,\n\n /**\n * If `true`, the button will take up the full width of its container.\n */\n fullWidth: PropTypes.bool,\n\n /**\n * The URL to link to when the button is clicked.\n * If defined, an `a` element will be used as the root node.\n */\n href: PropTypes.string,\n\n /**\n * The size of the button.\n * `small` is equivalent to the dense button styling.\n */\n size: PropTypes.oneOf(['large', 'medium', 'small']),\n\n /**\n * Element placed before the children.\n */\n startIcon: PropTypes.node,\n\n /**\n * @ignore\n */\n type: PropTypes.oneOfType([PropTypes.oneOf(['button', 'reset', 'submit']), PropTypes.string]),\n\n /**\n * The variant to use.\n */\n variant: PropTypes.oneOf(['contained', 'outlined', 'text'])\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiButton'\n})(Button);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport * as ReactDOM from 'react-dom';\nimport clsx from 'clsx';\nimport { elementTypeAcceptingRef, refType } from '@material-ui/utils';\nimport useForkRef from '../utils/useForkRef';\nimport useEventCallback from '../utils/useEventCallback';\nimport deprecatedPropType from '../utils/deprecatedPropType';\nimport withStyles from '../styles/withStyles';\nimport useIsFocusVisible from '../utils/useIsFocusVisible';\nimport TouchRipple from './TouchRipple';\nexport var styles = {\n /* Styles applied to the root element. */\n root: {\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n position: 'relative',\n WebkitTapHighlightColor: 'transparent',\n backgroundColor: 'transparent',\n // Reset default value\n // We disable the focus ring for mouse, touch and keyboard users.\n outline: 0,\n border: 0,\n margin: 0,\n // Remove the margin in Safari\n borderRadius: 0,\n padding: 0,\n // Remove the padding in Firefox\n cursor: 'pointer',\n userSelect: 'none',\n verticalAlign: 'middle',\n '-moz-appearance': 'none',\n // Reset\n '-webkit-appearance': 'none',\n // Reset\n textDecoration: 'none',\n // So we take precedent over the style of a native element.\n color: 'inherit',\n '&::-moz-focus-inner': {\n borderStyle: 'none' // Remove Firefox dotted outline.\n\n },\n '&$disabled': {\n pointerEvents: 'none',\n // Disable link interactions\n cursor: 'default'\n },\n '@media print': {\n colorAdjust: 'exact'\n }\n },\n\n /* Pseudo-class applied to the root element if `disabled={true}`. */\n disabled: {},\n\n /* Pseudo-class applied to the root element if keyboard focused. */\n focusVisible: {}\n};\n/**\n * `ButtonBase` contains as few styles as possible.\n * It aims to be a simple building block for creating a button.\n * It contains a load of style reset and some focus/ripple logic.\n */\n\nvar ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {\n var action = props.action,\n buttonRefProp = props.buttonRef,\n _props$centerRipple = props.centerRipple,\n centerRipple = _props$centerRipple === void 0 ? false : _props$centerRipple,\n children = props.children,\n classes = props.classes,\n className = props.className,\n _props$component = props.component,\n component = _props$component === void 0 ? 'button' : _props$component,\n _props$disabled = props.disabled,\n disabled = _props$disabled === void 0 ? false : _props$disabled,\n _props$disableRipple = props.disableRipple,\n disableRipple = _props$disableRipple === void 0 ? false : _props$disableRipple,\n _props$disableTouchRi = props.disableTouchRipple,\n disableTouchRipple = _props$disableTouchRi === void 0 ? false : _props$disableTouchRi,\n _props$focusRipple = props.focusRipple,\n focusRipple = _props$focusRipple === void 0 ? false : _props$focusRipple,\n focusVisibleClassName = props.focusVisibleClassName,\n onBlur = props.onBlur,\n onClick = props.onClick,\n onFocus = props.onFocus,\n onFocusVisible = props.onFocusVisible,\n onKeyDown = props.onKeyDown,\n onKeyUp = props.onKeyUp,\n onMouseDown = props.onMouseDown,\n onMouseLeave = props.onMouseLeave,\n onMouseUp = props.onMouseUp,\n onTouchEnd = props.onTouchEnd,\n onTouchMove = props.onTouchMove,\n onTouchStart = props.onTouchStart,\n onDragLeave = props.onDragLeave,\n _props$tabIndex = props.tabIndex,\n tabIndex = _props$tabIndex === void 0 ? 0 : _props$tabIndex,\n TouchRippleProps = props.TouchRippleProps,\n _props$type = props.type,\n type = _props$type === void 0 ? 'button' : _props$type,\n other = _objectWithoutProperties(props, [\"action\", \"buttonRef\", \"centerRipple\", \"children\", \"classes\", \"className\", \"component\", \"disabled\", \"disableRipple\", \"disableTouchRipple\", \"focusRipple\", \"focusVisibleClassName\", \"onBlur\", \"onClick\", \"onFocus\", \"onFocusVisible\", \"onKeyDown\", \"onKeyUp\", \"onMouseDown\", \"onMouseLeave\", \"onMouseUp\", \"onTouchEnd\", \"onTouchMove\", \"onTouchStart\", \"onDragLeave\", \"tabIndex\", \"TouchRippleProps\", \"type\"]);\n\n var buttonRef = React.useRef(null);\n\n function getButtonNode() {\n // #StrictMode ready\n return ReactDOM.findDOMNode(buttonRef.current);\n }\n\n var rippleRef = React.useRef(null);\n\n var _React$useState = React.useState(false),\n focusVisible = _React$useState[0],\n setFocusVisible = _React$useState[1];\n\n if (disabled && focusVisible) {\n setFocusVisible(false);\n }\n\n var _useIsFocusVisible = useIsFocusVisible(),\n isFocusVisible = _useIsFocusVisible.isFocusVisible,\n onBlurVisible = _useIsFocusVisible.onBlurVisible,\n focusVisibleRef = _useIsFocusVisible.ref;\n\n React.useImperativeHandle(action, function () {\n return {\n focusVisible: function focusVisible() {\n setFocusVisible(true);\n buttonRef.current.focus();\n }\n };\n }, []);\n React.useEffect(function () {\n if (focusVisible && focusRipple && !disableRipple) {\n rippleRef.current.pulsate();\n }\n }, [disableRipple, focusRipple, focusVisible]);\n\n function useRippleHandler(rippleAction, eventCallback) {\n var skipRippleAction = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : disableTouchRipple;\n return useEventCallback(function (event) {\n if (eventCallback) {\n eventCallback(event);\n }\n\n var ignore = skipRippleAction;\n\n if (!ignore && rippleRef.current) {\n rippleRef.current[rippleAction](event);\n }\n\n return true;\n });\n }\n\n var handleMouseDown = useRippleHandler('start', onMouseDown);\n var handleDragLeave = useRippleHandler('stop', onDragLeave);\n var handleMouseUp = useRippleHandler('stop', onMouseUp);\n var handleMouseLeave = useRippleHandler('stop', function (event) {\n if (focusVisible) {\n event.preventDefault();\n }\n\n if (onMouseLeave) {\n onMouseLeave(event);\n }\n });\n var handleTouchStart = useRippleHandler('start', onTouchStart);\n var handleTouchEnd = useRippleHandler('stop', onTouchEnd);\n var handleTouchMove = useRippleHandler('stop', onTouchMove);\n var handleBlur = useRippleHandler('stop', function (event) {\n if (focusVisible) {\n onBlurVisible(event);\n setFocusVisible(false);\n }\n\n if (onBlur) {\n onBlur(event);\n }\n }, false);\n var handleFocus = useEventCallback(function (event) {\n // Fix for https://github.com/facebook/react/issues/7769\n if (!buttonRef.current) {\n buttonRef.current = event.currentTarget;\n }\n\n if (isFocusVisible(event)) {\n setFocusVisible(true);\n\n if (onFocusVisible) {\n onFocusVisible(event);\n }\n }\n\n if (onFocus) {\n onFocus(event);\n }\n });\n\n var isNonNativeButton = function isNonNativeButton() {\n var button = getButtonNode();\n return component && component !== 'button' && !(button.tagName === 'A' && button.href);\n };\n /**\n * IE 11 shim for https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/repeat\n */\n\n\n var keydownRef = React.useRef(false);\n var handleKeyDown = useEventCallback(function (event) {\n // Check if key is already down to avoid repeats being counted as multiple activations\n if (focusRipple && !keydownRef.current && focusVisible && rippleRef.current && event.key === ' ') {\n keydownRef.current = true;\n event.persist();\n rippleRef.current.stop(event, function () {\n rippleRef.current.start(event);\n });\n }\n\n if (event.target === event.currentTarget && isNonNativeButton() && event.key === ' ') {\n event.preventDefault();\n }\n\n if (onKeyDown) {\n onKeyDown(event);\n } // Keyboard accessibility for non interactive elements\n\n\n if (event.target === event.currentTarget && isNonNativeButton() && event.key === 'Enter' && !disabled) {\n event.preventDefault();\n\n if (onClick) {\n onClick(event);\n }\n }\n });\n var handleKeyUp = useEventCallback(function (event) {\n // calling preventDefault in keyUp on a \n \n {/* TODO chart of events per time slot, use aggregates for this */}\n \n )\n }\n}\nexport default withStyles(useStyles)(EventStoreStream)\n","import React, { Component } from 'react';\nimport ApiClient from \"../../api/apiClient\";\nimport Skeleton from '@material-ui/lab/Skeleton';\nimport {\n Accordion,\n AccordionDetails,\n AccordionSummary,\n List,\n Typography\n} from \"@material-ui/core\";\nimport {withStyles} from '@material-ui/core/styles';\nimport ErrorBoundary from \"../error/errorBoundary\";\nimport ExpandMoreIcon from \"@material-ui/icons/ExpandMore\";\nimport InfoListItem from \"../common/list/infoListItem\";\nimport LinkListItem from \"../common/list/linkListItem\";\nimport EventStoreApiClient from \"../../api/eventStore/eventStoreApiClient\";\n\nconst useStyles = theme => ({\n accordionDetails: {\n display: 'block'\n },\n muiTypography: {\n subtitle2: {\n fontWeight: 600,\n }\n },\n});\n\nclass EventStoreStreamAccordionItem extends Component {\n eventStreamName;\n\n constructor(props) {\n super(props);\n this.apiClient = new EventStoreApiClient(props);\n this.eventStreamName = props.eventStreamName;\n this.state = { streamInfo: null };\n this.updateStreamInfo = this.updateStreamInfo.bind(this);\n }\n\n updateStreamInfo() {\n this.apiClient.fetchEventStreamInfo(this.eventStreamName)\n .then(streamInfo => this.setState({ streamInfo }))\n .catch(error => this.setState({ streamInfo: null }));\n }\n\n componentDidMount() {\n this.updateStreamInfo();\n }\n\n render() {\n if (this.state.streamInfo == null) return \n\n const { classes, type } = this.props;\n const streamInfo = this.state.streamInfo;\n\n const { schema, eventCount, timeInterval } = streamInfo;\n\n const formattedTimeInterval = timeInterval ? `${timeInterval.lower} - ${timeInterval.upper}` : 'No events yet';\n\n return (\n \n }\n aria-controls={`panel-${this.eventStreamName}-content`}\n id={`panel-${this.eventStreamName}-header`}\n >\n {this.eventStreamName}\n \n\n \n \n
\n \n \n \n \n \n \n
\n
\n
\n
\n )\n }\n}\nexport default withStyles(useStyles)(EventStoreStreamAccordionItem)\n","import React, { Component } from 'react';\nimport Skeleton from '@material-ui/lab/Skeleton';\nimport {Button, Card, CardContent, List, ListItem, ListItemText, Typography} from \"@material-ui/core\";\nimport {withStyles} from '@material-ui/core/styles';\nimport EventStoreStreamAccordionItem from \"./eventStoreStreamAccordionItem\";\nimport ApiClient from \"../../api/apiClient\";\nimport EventStoreApiClient from \"../../api/eventStore/eventStoreApiClient\";\n\nconst useStyles = theme => ({\n addCounterButton: {\n marginTop: 24,\n background: 'white',\n marginLeft: 'auto'\n },\n addButtonContainer: {\n display: 'flex'\n }\n});\n\nclass EventStoreStreams extends Component {\n\n constructor(props) {\n super(props);\n this.apiClient = new EventStoreApiClient(props);\n this.state = { eventStreamNames: [] };\n this.fetchEventStores = this.fetchEventStores.bind(this);\n // this.createEventStore = this.createEventStore.bind(this);\n }\n\n fetchEventStores() {\n this.apiClient.fetchEventStreamNames()\n .then(eventStreamNames => this.setState({ eventStreamNames }));\n }\n\n // createEventStore(streamName) {\n // apiClient.createEventStore(streamName)\n // .then(() => this.fetchEventStores());\n // }\n\n componentDidMount() {\n this.fetchEventStores();\n this.interval = setInterval(() => {\n this.fetchEventStores();\n }, 2000); // TODO make configurable\n }\n\n componentWillUnmount() {\n clearInterval(this.interval);\n }\n\n // component={Link} to={`/admin/sys-info/nodes/${nodeId}`}\n\n render() {\n if (this.state.eventStreamNames == null) return \n\n const { classes, type } = this.props;\n const { eventStreamNames } = this.state;\n\n if (!eventStreamNames.length) {\n return <>No stores yet. Create one using the Rest HTTP API.\n }\n\n return (\n <>\n {eventStreamNames.map(eventStreamName => )}\n {/* TODO must add name and schema using a certain dialog */}\n {/*
*/}\n {/* */}\n {/*
*/}\n \n )\n }\n}\nexport default withStyles(useStyles)(EventStoreStreams)\n","import React from \"react\";\nimport ApiClient from \"../api/apiClient\";\nimport {SnackbarProvider, withSnackbar} from \"notistack\";\n\nclass HealthCheckNotifier extends React.Component {\n\n constructor(props) {\n super(props);\n this.onHealthInfoReceived = props.onHealthInfoReceived;\n this.state = { clusterHealth: null, unhealthySnackbarKey: null };\n this.fetchClusterHealth = this.fetchClusterHealth.bind(this);\n this.notifyOfHealthChanges = this.notifyOfHealthChanges.bind(this);\n }\n\n notifyOfHealthChanges(clusterHealth) {\n const previousHealth = this.state.clusterHealth;\n if (!previousHealth) return;\n\n previousHealth.nodeHealths.forEach(previousNodeHealth => {\n const nodeId = previousNodeHealth.id;\n const newNodeHealth = clusterHealth.nodeHealths.find(nodeHealth => nodeHealth.id === nodeId);\n if (previousNodeHealth.connectionState !== newNodeHealth.connectionState) {\n this.props.closeSnackbar(this.state[`snackbarKey_${nodeId}`]);\n const snackbarKey = this.props.enqueueSnackbar(`Node ${nodeId} is ${newNodeHealth.connectionState}`, {\n variant: newNodeHealth.connectionState === 'DISCONNECTED' ? 'error'\n : newNodeHealth.connectionState === 'INTERRUPTED' ? 'warning' : 'info',\n persist: newNodeHealth.connectionState !== 'CONNECTED',\n });\n this.setState({ [`snackbarKey_${nodeId}`]: snackbarKey });\n }\n });\n\n if (previousHealth.healthy !== clusterHealth.healthy) {\n if (!clusterHealth.healthy) {\n const unhealthySnackbarKey = this.props.enqueueSnackbar('Too many nodes down; the cluster is unhealthy: Not able to receive requests', {\n variant: 'error',\n persist: true,\n });\n this.setState({ unhealthySnackbarKey });\n } else {\n this.props.closeSnackbar(this.state.unhealthySnackbarKey);\n this.props.enqueueSnackbar('Quorum is back, cluster health restored', {\n variant: 'success',\n });\n }\n }\n }\n\n fetchClusterHealth() {\n ApiClient.fetchClusterHealth()\n .then(clusterHealth => {\n this.notifyOfHealthChanges(clusterHealth);\n if (typeof this.onHealthInfoReceived === 'function')\n this.onHealthInfoReceived(clusterHealth);\n this.setState({ clusterHealth });\n });\n // TODO on timeout, also show unhealthy notification\n }\n\n componentDidMount() {\n this.fetchClusterHealth();\n this.fetchClusterHealthInterval = setInterval(() => {\n this.fetchClusterHealth();\n }, 1000);\n }\n\n componentWillUnmount() {\n clearInterval(this.fetchClusterHealthInterval);\n }\n\n render() {\n return <>;\n }\n}\n\nexport default withSnackbar(HealthCheckNotifier);\n","import React, { Component } from 'react';\nimport ApiClient from \"../api/apiClient\";\nimport Skeleton from '@material-ui/lab/Skeleton';\nimport ReactJson from 'react-json-view';\nimport {withStyles} from '@material-ui/core/styles';\nimport ErrorBoundary from \"./error/errorBoundary\";\n\nconst useStyles = theme => ({\n listItem: {\n borderBottom: '1px solid #f1f1f1',\n },\n listItemText: {\n display: 'flex',\n },\n muiTypography: {\n subtitle2: {\n fontWeight: 600,\n }\n },\n metaDataBox: {\n\n }\n});\n\nclass MetaData extends Component {\n\n constructor(props) {\n super(props);\n this.state = { metaData: null };\n }\n\n componentDidMount() {\n ApiClient.fetchMetaData()\n .then(metaData => this.setState({ metaData }));\n }\n\n render() {\n if (!this.state.metaData) return \n\n const { classes } = this.props;\n const metaData = this.state.metaData;\n\n return (\n <>\n \n
\n \n
\n
\n \n )\n }\n}\nexport default withStyles(useStyles)(MetaData)\n","import MainDrawer from './mainDrawer';\nimport MainAppBar from './mainAppBar';\n\nexport {\n MainDrawer,\n MainAppBar,\n};","import React, {Component} from 'react';\nimport {AppBar, Toolbar, IconButton, Typography} from '@material-ui/core';\nimport MenuIcon from '@material-ui/icons/Menu';\nimport { withStyles } from '@material-ui/core/styles';\nimport {Link} from 'react-router-dom';\n\nconst useStyles = theme => ({\n appBar: {\n zIndex: theme.zIndex.drawer + 1,\n },\n menuButton: {\n marginRight: theme.spacing(2),\n },\n title: {\n flexGrow: 1,\n },\n});\n\nclass MainAppBar extends Component {\n constructor(props) {\n super(props);\n this.state = { isOpen: false };\n this.toggle = this.toggle.bind(this);\n }\n\n toggle() {\n this.setState({\n isOpen: !this.state.isOpen\n });\n }\n\n render() {\n const { classes } = this.props;\n\n return \n \n \n Raft Log Replication Demo\n \n \n ;\n }\n}\n\nexport default withStyles(useStyles)(MainAppBar)\n","import React from 'react';\nimport { makeStyles } from '@material-ui/core/styles';\nimport Drawer from '@material-ui/core/Drawer';\nimport Toolbar from '@material-ui/core/Toolbar';\nimport List from '@material-ui/core/List';\nimport Divider from '@material-ui/core/Divider';\nimport ListItem from '@material-ui/core/ListItem';\nimport ListItemIcon from '@material-ui/core/ListItemIcon';\nimport ListItemText from '@material-ui/core/ListItemText';\nimport { Network_420, EdgeNodeAlt20, Calculation20, DataStructured20, MessageQueue20, AppConnectivity20 } from '@carbon/icons-react';\nimport { Link, useLocation } from \"react-router-dom\";\nimport {ListSubheader} from \"@material-ui/core\";\n\nconst drawerWidth = 260;\n\nconst useStyles = makeStyles((theme) => ({\n drawer: {\n width: drawerWidth,\n flexShrink: 0,\n },\n drawerPaper: {\n width: drawerWidth,\n },\n drawerContainer: {\n overflow: 'auto',\n marginTop: 8,\n },\n listItemText: {\n fontWeight: 500,\n }\n}));\n\nconst DrawerListItem = ({ id, text, to, icon }) => {\n const location = useLocation();\n return (\n \n {icon}\n \n \n )\n};\n\nexport default function MainDrawer() {\n const classes = useStyles();\n\n return (\n \n \n
\n \n } />\n } />\n } />\n \n \n \n Replication\n \n }>\n } />\n {/*} />*/}\n } />\n \n \n Embedded\n \n }>\n } />\n \n
\n \n );\n}\n","import React, { Component } from 'react';\nimport ApiClient from \"../api/apiClient\";\nimport Skeleton from '@material-ui/lab/Skeleton';\nimport {List, ListItem, ListItemText, Typography} from \"@material-ui/core\";\nimport {withStyles} from '@material-ui/core/styles';\nimport inflection from 'inflection';\n\nconst useStyles = theme => ({\n listItem: {\n borderBottom: '1px solid #f1f1f1',\n },\n listItemText: {\n display: 'flex',\n },\n muiTypography: {\n subtitle2: {\n fontWeight: 600,\n }\n },\n itemLabel: {\n minWidth: 240,\n display: 'inline-block',\n },\n subGroupItemLabel: {\n minWidth: 240,\n display: 'inline-block',\n fontSize: 18\n },\n connectionStateIndicator: {\n width: 18,\n height: 18,\n background: '#d80f0f',\n borderRadius: '50%',\n marginTop: 1,\n marginRight: 6,\n backgroundImage: \"url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4Igp3aWR0aD0iNTAiIGhlaWdodD0iNTAiCnZpZXdCb3g9IjAgMCAxNzIgMTcyIgpzdHlsZT0iIGZpbGw6IzAwMDAwMDsiPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0ibm9uemVybyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIHN0cm9rZS1saW5lY2FwPSJidXR0IiBzdHJva2UtbGluZWpvaW49Im1pdGVyIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHN0cm9rZS1kYXNoYXJyYXk9IiIgc3Ryb2tlLWRhc2hvZmZzZXQ9IjAiIGZvbnQtZmFtaWx5PSJub25lIiBmb250LXdlaWdodD0ibm9uZSIgZm9udC1zaXplPSJub25lIiB0ZXh0LWFuY2hvcj0ibm9uZSIgc3R5bGU9Im1peC1ibGVuZC1tb2RlOiBub3JtYWwiPjxwYXRoIGQ9Ik0wLDE3MnYtMTcyaDE3MnYxNzJ6IiBmaWxsPSJub25lIj48L3BhdGg+PGcgZmlsbD0iI2ZmZmZmZiI+PHBhdGggZD0iTTE0LjMzMzMzLDc4LjgzMzMzdjE0LjMzMzMzaDE0My4zMzMzM3YtMTQuMzMzMzN6Ij48L3BhdGg+PC9nPjwvZz48L3N2Zz4=')\",\n backgroundRepeat: 'no-repeat',\n backgroundPosition: 'center',\n backgroundSize: 14,\n '&[data-status=\"connected\"]': {\n backgroundColor: '#2fce2f',\n backgroundImage: \"url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4Igp3aWR0aD0iMjQiIGhlaWdodD0iMjQiCnZpZXdCb3g9IjAgMCAxNzIgMTcyIgpzdHlsZT0iIGZpbGw6IzAwMDAwMDsiPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0ibm9uemVybyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIHN0cm9rZS1saW5lY2FwPSJidXR0IiBzdHJva2UtbGluZWpvaW49Im1pdGVyIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHN0cm9rZS1kYXNoYXJyYXk9IiIgc3Ryb2tlLWRhc2hvZmZzZXQ9IjAiIGZvbnQtZmFtaWx5PSJub25lIiBmb250LXdlaWdodD0ibm9uZSIgZm9udC1zaXplPSJub25lIiB0ZXh0LWFuY2hvcj0ibm9uZSIgc3R5bGU9Im1peC1ibGVuZC1tb2RlOiBub3JtYWwiPjxwYXRoIGQ9Ik0wLDE3MnYtMTcyaDE3MnYxNzJ6IiBmaWxsPSJub25lIj48L3BhdGg+PGcgZmlsbD0iI2ZmZmZmZiI+PHBhdGggZD0iTTE0NS40MzI5NCwzNy45MzI5NGwtODAuOTMyOTQsODAuOTMyOTVsLTMwLjc2NjI4LC0zMC43NjYyOGwtMTAuMTM0MTEsMTAuMTM0MTFsNDAuOTAwMzksNDAuOTAwMzlsOTEuMDY3MDYsLTkxLjA2NzA1eiI+PC9wYXRoPjwvZz48L2c+PC9zdmc+')\",\n },\n '&[data-status=\"interrupted\"]': {\n backgroundColor: '#e69711',\n backgroundImage: \"none\",\n }\n }\n});\n\nconst InfoListItem = ({ label, content, classes }) =>\n \n {label}}\n secondary={content} />\n ;\n\nclass NodeInfo extends Component {\n\n constructor(props) {\n super(props);\n this.state = { nodeInfo: null };\n }\n\n // componentDidMount() {\n // ApiClient.fetchNodeInfo(this.props.nodeId)\n // .then(nodeInfo => this.setState({ nodeInfo }));\n // }\n\n componentDidMount() {\n this.interval = setInterval(() => {\n ApiClient.fetchNodeInfo(this.props.nodeId)\n .then(nodeInfo => this.setState({ nodeInfo }));\n }, 1000);\n }\n\n componentWillUnmount() {\n clearInterval(this.interval);\n }\n\n render() {\n if (!this.state.nodeInfo) return \n\n const { classes } = this.props;\n const { id, host, httpPort, metadataPort, storagePath,\n localHostAddress, localHostName, remoteHostAddress,\n osName, osVersion,\n javaVersion, jdkVersion, springVersion,\n totalDiskSpace, usableDiskSpace,\n heartbeat } = this.state.nodeInfo;\n\n const httpAddress = `${host}:${httpPort}`;\n // TODO should use https\n const httpAdminAddress = `http://${remoteHostAddress}:${httpPort}/admin`;\n const metadataAddress = `${host}:${metadataPort}`;\n\n const formatBytes = (bytes, decimals = 2) => {\n if (bytes === 0) return '0 Bytes';\n\n const k = 1024;\n const dm = decimals < 0 ? 0 : decimals;\n const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];\n\n const i = Math.floor(Math.log(bytes) / Math.log(k));\n\n return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];\n }\n\n const totalDiskSpaceParts = totalDiskSpace.replace(/\\r\\n|\\r|\\n/g, \" \").trim().split(\" \");\n const usableDiskSpaceParts = usableDiskSpace.replace(/\\r\\n|\\r|\\n/g, \" \").trim().split(\" \");\n\n const diskSpaceMap = {};\n for (let i = 0; i < totalDiskSpaceParts.length; i += 3) {\n const total = parseInt(totalDiskSpaceParts[i+2].replace(/\\./g, \"\"));\n const usable = parseInt(usableDiskSpaceParts[i+2].replace(/\\./g, \"\"));\n diskSpaceMap[totalDiskSpaceParts[i].replace(\":\", \"\")] = {\n total,\n usable,\n totalFormatted: formatBytes(total),\n usableFormatted: formatBytes(usable),\n freePercentage: `${(usable / total * 100).toFixed(2)}%`\n }\n }\n\n // TODO also show on front page\n // TODO mark as red if > 30 sek, orange > 15 sec\n // TODO row \"status\" with connected, interrupted, disconnected\n const heartbeatBefore = (Date.now() - parseInt(heartbeat)) / 1000;\n\n // TODO make configurable or get status info from server\n const status = heartbeatBefore > 30 ? 'disconnected'\n : heartbeatBefore > 10 ? 'interrupted'\n : 'connected';\n const formattedStatus = inflection.capitalize(status);\n const formattedHeartbeatBefore = `~ ${heartbeatBefore.toFixed(0)} s`;\n\n // TODO may better populate this list automatically by model sent from backend\n return (\n <>\n \n \n
{formattedStatus}
\n } />\n \n \n \n {httpAdminAddress}
} />\n \n \n \n \n \n \n \n \n \n {\n Object.keys(diskSpaceMap).map(disk =>\n \n )\n }\n \n \n )\n }\n}\nexport default withStyles(useStyles)(NodeInfo)\n","import React, { Component } from 'react';\nimport {List, ListItem, ListItemIcon, ListItemText, Typography} from \"@material-ui/core\";\nimport NavigateNextIcon from '@material-ui/icons/NavigateNext';\nimport {Link} from \"react-router-dom\";\nimport {makeStyles} from \"@material-ui/core/styles\";\n\nconst useStyles = makeStyles({\n listItem: {\n borderBottom: '1px solid #f1f1f1',\n },\n listItemText: {\n display: 'flex',\n },\n muiTypography: {\n subtitle2: {\n fontWeight: 600,\n }\n },\n itemLabel: {\n minWidth: 24,\n display: 'inline-block'\n },\n nodeRole: {\n minWidth: 160,\n display: 'inline-block',\n marginLeft: 18,\n color: 'gray'\n },\n nodeRoleIcon: {\n width: \"20px\",\n height: \"20px\",\n display: \"inline-block\",\n background: \"#7d5ea5\",\n verticalAlign: \"bottom\",\n borderRadius: \"50px\",\n marginRight: \"18px\"\n },\n nodeInfo: {\n display: 'flex',\n minWidth: 240,\n '&[data-connection-status=\"INTERRUPTED\"]': {\n opacity: 0.6\n },\n '&[data-connection-status=\"DISCONNECTED\"]': {\n opacity: 0.6\n },\n '&[data-connection-status=\"DISCONNECTED\"] $nodeRoleIcon': {\n backgroundColor: 'red'\n },\n '&[data-role=\"LEADER\"]:not([data-connection-status=\"DISCONNECTED\"]) $nodeRoleIcon': {\n backgroundImage: \"url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4Igp3aWR0aD0iMjQiIGhlaWdodD0iMjQiCnZpZXdCb3g9IjAgMCAxNzIgMTcyIgpzdHlsZT0iIGZpbGw6IzAwMDAwMDsiPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0ibm9uemVybyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIHN0cm9rZS1saW5lY2FwPSJidXR0IiBzdHJva2UtbGluZWpvaW49Im1pdGVyIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHN0cm9rZS1kYXNoYXJyYXk9IiIgc3Ryb2tlLWRhc2hvZmZzZXQ9IjAiIGZvbnQtZmFtaWx5PSJub25lIiBmb250LXdlaWdodD0ibm9uZSIgZm9udC1zaXplPSJub25lIiB0ZXh0LWFuY2hvcj0ibm9uZSIgc3R5bGU9Im1peC1ibGVuZC1tb2RlOiBub3JtYWwiPjxwYXRoIGQ9Ik0wLDE3MnYtMTcyaDE3MnYxNzJ6IiBmaWxsPSJub25lIj48L3BhdGg+PGcgZmlsbD0iI2ZmZmZmZiI+PHBhdGggZD0iTTg2LDEyOS42NTIxN2wzNS42MTExNywyMS40OTI4M2M1LjYxODY3LDMuMzg5ODMgMTIuNTQ4ODMsLTEuNjQ4MzMgMTEuMDU4MTcsLTguMDMzODNsLTkuNDUyODMsLTQwLjUxMzE3bDMxLjQ2ODgzLC0yNy4yNjJjNC45NTkzMywtNC4yOTI4MyAyLjMwNzY3LC0xMi40NDEzMyAtNC4yMjgzMywtMTIuOTkzMTdsLTQxLjQyMzMzLC0zLjUxMTY3bC0xNi4yMDM4MywtMzguMjM0MTdjLTIuNTU4NSwtNi4wMjcxNyAtMTEuMTAxMTcsLTYuMDI3MTcgLTEzLjY1OTY3LDBsLTE2LjIwMzgzLDM4LjIzNDE3bC00MS40MjMzMywzLjUxMTY3Yy02LjUzNiwwLjU1MTgzIC05LjE4NzY3LDguNzAwMzMgLTQuMjI4MzMsMTIuOTkzMTdsMzEuNDY4ODMsMjcuMjYybC05LjQ1MjgzLDQwLjUxMzE3Yy0xLjQ5MDY3LDYuMzg1NSA1LjQzOTUsMTEuNDIzNjcgMTEuMDU4MTcsOC4wMzM4M3oiPjwvcGF0aD48L2c+PC9nPjwvc3ZnPg==')\",\n backgroundPosition: \"center\",\n backgroundSize: \"14px\",\n backgroundRepeat: \"no-repeat\"\n }\n },\n subGroupItemLabel: {\n minWidth: 240,\n display: 'inline-block',\n fontSize: 18\n },\n});\n\n// TODO better: regular NodeListItem and DetailedNodeListItem\n\nconst NodeListItem = ({ nodeInfo, nodeHealth, classes }) => {\n const { id:nodeId, host:nodeHost, metadataPort, division } = nodeInfo;\n\n const primaryComponent =\n
\n \n {nodeId}\n {!!division && {(!nodeHealth?.connectionState || nodeHealth?.connectionState === 'CONNECTED') ? division.role : nodeHealth.connectionState}}\n
;\n let secondaryText = `${nodeHost}:${metadataPort}`;\n if (division) {\n secondaryText += ` - Term ${division.currentTerm}, last applied index ${division.lastAppliedIndex}`;\n }\n\n return \n \n \n \n \n ;\n};\n\nexport default function NodeList({ nodeInfos, clusterHealth, title }) {\n const classes = useStyles();\n\n return \n \n {title}}/>\n \n {nodeInfos.map(nodeInfo => nodeHealth.id === nodeInfo.id)} classes={classes} />)}\n \n};\n","import React, { Component } from 'react';\nimport ApiClient from \"../api/apiClient\";\nimport Skeleton from '@material-ui/lab/Skeleton';\nimport {List} from \"@material-ui/core\";\nimport {withStyles} from '@material-ui/core/styles';\nimport inflection from 'inflection';\nimport NodeList from \"./nodeList\";\nimport Link from \"carbon-components-react/lib/components/UIShell/Link\";\nimport InfoListItem from \"./common/list/infoListItem\";\nimport LinkListItem from \"./common/list/linkListItem\";\n\nconst useStyles = theme => ({\n muiTypography: {\n subtitle2: {\n fontWeight: 600,\n }\n },\n connectionStateIndicator: {\n width: 18,\n height: 18,\n background: '#d80f0f',\n borderRadius: '50%',\n marginTop: 1,\n marginRight: 6,\n backgroundImage: \"url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4Igp3aWR0aD0iNTAiIGhlaWdodD0iNTAiCnZpZXdCb3g9IjAgMCAxNzIgMTcyIgpzdHlsZT0iIGZpbGw6IzAwMDAwMDsiPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0ibm9uemVybyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIHN0cm9rZS1saW5lY2FwPSJidXR0IiBzdHJva2UtbGluZWpvaW49Im1pdGVyIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHN0cm9rZS1kYXNoYXJyYXk9IiIgc3Ryb2tlLWRhc2hvZmZzZXQ9IjAiIGZvbnQtZmFtaWx5PSJub25lIiBmb250LXdlaWdodD0ibm9uZSIgZm9udC1zaXplPSJub25lIiB0ZXh0LWFuY2hvcj0ibm9uZSIgc3R5bGU9Im1peC1ibGVuZC1tb2RlOiBub3JtYWwiPjxwYXRoIGQ9Ik0wLDE3MnYtMTcyaDE3MnYxNzJ6IiBmaWxsPSJub25lIj48L3BhdGg+PGcgZmlsbD0iI2ZmZmZmZiI+PHBhdGggZD0iTTE0LjMzMzMzLDc4LjgzMzMzdjE0LjMzMzMzaDE0My4zMzMzM3YtMTQuMzMzMzN6Ij48L3BhdGg+PC9nPjwvZz48L3N2Zz4=')\",\n backgroundRepeat: 'no-repeat',\n backgroundPosition: 'center',\n backgroundSize: 14,\n '&[data-status=\"connected\"]': {\n backgroundColor: '#2fce2f',\n backgroundImage: \"url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4Igp3aWR0aD0iMjQiIGhlaWdodD0iMjQiCnZpZXdCb3g9IjAgMCAxNzIgMTcyIgpzdHlsZT0iIGZpbGw6IzAwMDAwMDsiPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0ibm9uemVybyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIHN0cm9rZS1saW5lY2FwPSJidXR0IiBzdHJva2UtbGluZWpvaW49Im1pdGVyIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHN0cm9rZS1kYXNoYXJyYXk9IiIgc3Ryb2tlLWRhc2hvZmZzZXQ9IjAiIGZvbnQtZmFtaWx5PSJub25lIiBmb250LXdlaWdodD0ibm9uZSIgZm9udC1zaXplPSJub25lIiB0ZXh0LWFuY2hvcj0ibm9uZSIgc3R5bGU9Im1peC1ibGVuZC1tb2RlOiBub3JtYWwiPjxwYXRoIGQ9Ik0wLDE3MnYtMTcyaDE3MnYxNzJ6IiBmaWxsPSJub25lIj48L3BhdGg+PGcgZmlsbD0iI2ZmZmZmZiI+PHBhdGggZD0iTTE0NS40MzI5NCwzNy45MzI5NGwtODAuOTMyOTQsODAuOTMyOTVsLTMwLjc2NjI4LC0zMC43NjYyOGwtMTAuMTM0MTEsMTAuMTM0MTFsNDAuOTAwMzksNDAuOTAwMzlsOTEuMDY3MDYsLTkxLjA2NzA1eiI+PC9wYXRoPjwvZz48L2c+PC9zdmc+')\",\n },\n '&[data-status=\"interrupted\"]': {\n backgroundColor: '#e69711',\n backgroundImage: \"none\",\n }\n }\n});\n\nconst formatStateMachineClass = stateMachineClass => {\n const stateMachineClassPackages = stateMachineClass.split('.');\n return stateMachineClassPackages[stateMachineClassPackages.length - 1];\n}\n\nclass RaftGroupDetails extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n raftGroupInfo: null,\n divisions: null,\n };\n }\n\n componentDidMount() {\n this.interval = setInterval(() => {\n ApiClient.fetchRaftGroupInfo(this.props.raftGroupId)\n .then(raftGroupInfo => this.setState({ raftGroupInfo }));\n ApiClient.fetchRaftGroupDivisions(this.props.raftGroupId)\n .then(divisions => this.setState({ divisions }));\n }, 1000);\n }\n\n componentWillUnmount() {\n clearInterval(this.interval);\n }\n\n render() {\n if (!this.state.raftGroupInfo) return \n\n const { classes, clusterHealth } = this.props;\n const { name, groupId, uuid, storageHealthy, serverName, stateMachineClass } = this.state.raftGroupInfo;\n let { nodes } = this.state.raftGroupInfo;\n const divisions = this.state.divisions;\n\n let leader = null, leaderId = \"-\", currentLeaderTerm = \"-\";\n if (divisions) {\n leader = Object.values(divisions).find(division => division.role === 'LEADER' &&\n (!clusterHealth || clusterHealth.nodeHealths?.find(nodeHealth => nodeHealth.id === division.nodeId)?.connectionState === 'CONNECTED'));\n if (leader) {\n leaderId = leader.nodeId;\n currentLeaderTerm = leader.currentTerm;\n }\n nodes = nodes.map(node => ({\n ...node,\n division: divisions[node.id]\n }));\n }\n\n return (\n <>\n \n \n \n \n \n \n \n \n \n \n \n\n {/*
{formattedStatus}
*/}\n {/*} />*/}\n \n )\n }\n}\nexport default withStyles(useStyles)(RaftGroupDetails)\n","import React, { Component } from 'react';\nimport ApiClient from \"../api/apiClient\";\nimport Skeleton from '@material-ui/lab/Skeleton';\nimport {List, Typography} from \"@material-ui/core\";\nimport Accordion from '@material-ui/core/Accordion';\nimport AccordionDetails from '@material-ui/core/AccordionDetails';\nimport AccordionSummary from '@material-ui/core/AccordionSummary';\nimport ExpandMoreIcon from '@material-ui/icons/ExpandMore';\nimport {withStyles} from '@material-ui/core/styles';\nimport NodeList from \"./nodeList\";\nimport InfoListItem from \"./common/list/infoListItem\";\nimport LinkListItem from \"./common/list/linkListItem\";\n\nconst useStyles = theme => ({\n // used in nodeList.js\n muiTypography: {\n subtitle2: {\n fontWeight: 600,\n }\n },\n accordionDetails: {\n display: 'block'\n },\n serverTitle: {\n marginBottom: 14,\n fontSize: \"16px\"\n },\n stateMachineTitle: {\n margin: \"14px 0\",\n fontSize: \"14px\",\n fontWeight: \"bold\"\n }\n});\n\nconst formatStateMachineClass = stateMachineClass => {\n const stateMachineClassPackages = stateMachineClass.split('.');\n return stateMachineClassPackages[stateMachineClassPackages.length - 1];\n}\n\nconst RaftGroupAccordion = ({ raftGroup, classes }) => {\n\n const { name, groupId, uuid, leaderId, currentLeaderTerm, storageHealthy, nodes, stateMachineClass } = raftGroup;\n\n return \n }\n aria-controls={`panel-${name}-content`}\n id={`panel-${name}-header`}\n >\n {name}\n \n \n
\n \n \n \n \n {/**/}\n {/**/}\n \n \n \n \n
\n
\n
\n};\n\nconst RaftGroupStateMachineBlock = ({ stateMachineClass, server, raftGroups, classes }) =>\n <>\n {formatStateMachineClass(stateMachineClass)}\n {raftGroups.filter(raftGroup => raftGroup.serverName === server && raftGroup.stateMachineClass === stateMachineClass).map(raftGroup => )}\n ;\n\nconst RaftGroupServerBlock = ({ server, raftGroups, classes }) =>\n <>\n Server: {server}\n {[...new Set(raftGroups.filter(raftGroup => raftGroup.serverName === server).map(raftGroup => raftGroup.stateMachineClass))]\n .map(stateMachineClass => )}\n ;\n\nclass RaftGroups extends Component {\n\n constructor(props) {\n super(props);\n this.state = { systemInfo: null };\n }\n\n componentDidMount() {\n ApiClient.fetchSystemInfo()\n .then(systemInfo => this.setState({ systemInfo }));\n }\n\n render() {\n if (!this.state.systemInfo) return \n\n const { classes } = this.props;\n const { raftGroups } = this.state.systemInfo;\n\n const servers = [...new Set(raftGroups.map(raftGroup => raftGroup.serverName))];\n\n return (\n <>\n {servers.map(server => )}\n \n )\n }\n}\nexport default withStyles(useStyles)(RaftGroups)\n","import React, { Component } from 'react';\nimport ApiClient from \"../api/apiClient\";\nimport Skeleton from '@material-ui/lab/Skeleton';\nimport {List, ListItem, ListItemText, Typography} from \"@material-ui/core\";\nimport {withStyles} from '@material-ui/core/styles';\nimport NodeList from \"./nodeList\";\n\nconst useStyles = theme => ({\n listItem: {\n borderBottom: '1px solid #f1f1f1',\n },\n listItemText: {\n display: 'flex',\n },\n muiTypography: {\n subtitle2: {\n fontWeight: 600,\n }\n },\n itemLabel: {\n minWidth: 240,\n display: 'inline-block',\n },\n subGroupItemLabel: {\n minWidth: 240,\n display: 'inline-block',\n fontSize: 18\n }\n});\n\nconst InfoListItem = ({ label, content, classes }) =>\n \n {label}}\n secondary={content} />\n ;\n\nclass SystemInfo extends Component {\n\n constructor(props) {\n super(props);\n this.state = { systemInfo: null };\n }\n\n componentDidMount() {\n ApiClient.fetchSystemInfo()\n .then(systemInfo => this.setState({ systemInfo }));\n }\n\n render() {\n // TODO render connection status here\n // TODO render notifications if server notifies of disconnected nodes\n // TODO to do so simply (without actual messaging), have a poll service in sysinfo service \"clusterhealth\"\n\n if (!this.state.systemInfo) return \n\n const { classes } = this.props;\n const { currentNodeId, currentNodeStoragePath, nodes } = this.state.systemInfo;\n\n return (\n <>\n \n \n \n \n \n \n )\n }\n}\nexport default withStyles(useStyles)(SystemInfo)\n","import React, { Component } from 'react';\n\nimport { MainAppBar, MainDrawer } from '../components/nav';\nimport { makeStyles } from '@material-ui/core/styles';\n\nimport CssBaseline from '@material-ui/core/CssBaseline';\nimport Toolbar from \"@material-ui/core/Toolbar\";\n\nconst useStyles = makeStyles((theme) => ({\n root: {\n display: 'flex',\n },\n content: {\n flexGrow: 1,\n padding: theme.spacing(3),\n },\n}));\n\nexport default function MainLayout(props) {\n const classes = useStyles();\n\n const { children } = props;\n\n return (\n
\n \n \n \n
\n \n {children}\n
\n
\n );\n}\n\n","import React, { Component } from \"react\";\nimport MainLayout from \"../../layouts/mainLayout\";\nimport {Container} from \"@material-ui/core\";\nimport ErrorBoundary from \"../../components/error/errorBoundary\";\nimport {withStyles} from '@material-ui/core/styles';\nimport EventStoreStreams from \"../../components/eventStore/eventStoreStreams\";\n\nconst useStyles = theme => ({\n cardContent: {\n paddingBottom: 16,\n \"&:last-child\": {\n paddingBottom: 16\n }\n },\n});\n\nclass EmbeddedEventStorePage extends Component {\n\n constructor(props) {\n super(props);\n }\n\n render() {\n const { classes } = this.props;\n\n return (\n \n \n

Embedded ChronicleDB Event Store

\n \n \n \n
\n
\n );\n }\n}\n\nexport default withStyles(useStyles)(EmbeddedEventStorePage);\n","import React, { Component } from \"react\";\nimport {Link, useParams} from 'react-router-dom';\nimport MainLayout from \"../../layouts/mainLayout\";\nimport {Breadcrumbs, Container, Typography} from \"@material-ui/core\";\nimport ErrorBoundary from \"../../components/error/errorBoundary\";\nimport EventStoreStream from \"../../components/eventStore/eventStoreStream\";\n\nexport default function EmbeddedEventStoreStreamPage() {\n\n const { eventStreamName } = useParams();\n\n return (\n \n \n \n \n Embedded Event Store\n \n Event Store\n \n

{eventStreamName}

\n \n \n \n
\n
\n );\n}\n","import React, { Component } from \"react\";\nimport MainLayout from \"../../layouts/mainLayout\";\nimport {Container} from \"@material-ui/core\";\nimport ErrorBoundary from \"../../components/error/errorBoundary\";\nimport {withStyles} from '@material-ui/core/styles';\nimport EventStoreStreams from \"../../components/eventStore/eventStoreStreams\";\n\nconst useStyles = theme => ({\n cardContent: {\n paddingBottom: 16,\n \"&:last-child\": {\n paddingBottom: 16\n }\n },\n});\n\nclass ReplicatedEventStorePage extends Component {\n\n constructor(props) {\n super(props);\n }\n\n render() {\n const { classes } = this.props;\n\n return (\n \n \n

Replicated ChronicleDB Event Store

\n \n \n \n
\n
\n );\n }\n}\n\nexport default withStyles(useStyles)(ReplicatedEventStorePage);\n","import React, { Component } from \"react\";\nimport {Link, useParams} from 'react-router-dom';\nimport MainLayout from \"../../layouts/mainLayout\";\nimport {Breadcrumbs, Container, Typography} from \"@material-ui/core\";\nimport ErrorBoundary from \"../../components/error/errorBoundary\";\nimport EventStoreStream from \"../../components/eventStore/eventStoreStream\";\n\nexport default function ReplicatedEventStoreStreamPage() {\n\n const { eventStreamName } = useParams();\n\n return (\n \n \n \n \n Replicated Event Store\n \n Event Store\n \n

{eventStreamName}

\n \n \n \n
\n
\n );\n}\n","import React, { Component } from \"react\";\nimport MainLayout from \"../layouts/mainLayout\";\nimport {Card, CardContent, Container} from \"@material-ui/core\";\nimport MetaData from \"../components/metaData\";\nimport ErrorBoundary from \"../components/error/errorBoundary\";\nimport SystemInfo from \"../components/systemInfo\";\n\nclass MetaDataPage extends Component {\n\n constructor(props) {\n super(props);\n }\n\n render() {\n return (\n \n \n

Meta Data

\n \n \n \n \n \n \n \n
\n
\n );\n }\n}\n\nexport default MetaDataPage;\n","import React, { Component } from \"react\";\nimport { Link, useParams } from 'react-router-dom';\nimport MainLayout from \"../layouts/mainLayout\";\nimport {Breadcrumbs, Card, CardContent, Container, Typography} from \"@material-ui/core\";\nimport SystemInfo from \"../components/systemInfo\";\nimport ErrorBoundary from \"../components/error/errorBoundary\";\nimport NodeInfo from \"../components/nodeInfo\";\n\nexport default function NodeInfoPage() {\n\n const { nodeId } = useParams();\n\n return (\n \n \n \n \n General system info\n \n Node info\n \n

Node Info - {nodeId}

\n \n \n \n \n \n \n \n
\n
\n );\n}\n","import React, { Component } from \"react\";\nimport { Link, useParams } from 'react-router-dom';\nimport MainLayout from \"../layouts/mainLayout\";\nimport {Breadcrumbs, Card, CardContent, Container, Typography} from \"@material-ui/core\";\nimport ErrorBoundary from \"../components/error/errorBoundary\";\nimport RaftGroupDetails from \"../components/raftGroupDetails\";\n\nexport default function RaftGroupDetailPage({ clusterHealth }) {\n\n const { raftGroupId } = useParams();\n\n return (\n \n \n \n \n Raft groups\n \n Raft group details\n \n

Raft Group Details - {raftGroupId}

\n \n \n \n \n \n \n \n
\n
\n );\n}\n","import React, { Component } from \"react\";\nimport { Link } from 'react-router-dom';\nimport ApiClient from \"../api/apiClient\";\nimport MainLayout from \"../layouts/mainLayout\";\nimport {Card, CardContent, Container} from \"@material-ui/core\";\nimport SystemInfo from \"../components/systemInfo\";\nimport ErrorBoundary from \"../components/error/errorBoundary\";\nimport RaftGroups from \"../components/raftGroups\";\n\nclass RaftGroupsPage extends Component {\n\n constructor(props) {\n super(props);\n }\n\n render() {\n return (\n \n \n

Raft Groups

\n \n \n \n
\n
\n );\n }\n}\n\nexport default RaftGroupsPage;\n","import React, { Component } from \"react\";\nimport { Link } from 'react-router-dom';\nimport ApiClient from \"../api/apiClient\";\nimport MainLayout from \"../layouts/mainLayout\";\nimport {Card, CardContent, Container} from \"@material-ui/core\";\nimport SystemInfo from \"../components/systemInfo\";\nimport ErrorBoundary from \"../components/error/errorBoundary\";\nimport ReplicatedCounter from \"../components/counter/replicatedCounter\";\nimport {withStyles} from '@material-ui/core/styles';\nimport ReplicatedCounters from \"../components/counter/replicatedCounters\";\n\nconst useStyles = theme => ({\n cardContent: {\n paddingBottom: 16,\n \"&:last-child\": {\n paddingBottom: 16\n }\n },\n});\n\nclass ReplicatedCounterPage extends Component {\n\n constructor(props) {\n super(props);\n }\n\n render() {\n const { classes } = this.props;\n\n return (\n \n \n

Replicated Counters

\n \n \n \n
\n
\n );\n }\n}\n\nexport default withStyles(useStyles)(ReplicatedCounterPage);\n","import React, { Component } from \"react\";\nimport { Link } from 'react-router-dom';\nimport ApiClient from \"../api/apiClient\";\nimport MainLayout from \"../layouts/mainLayout\";\nimport {Card, CardContent, Container} from \"@material-ui/core\";\nimport SystemInfo from \"../components/systemInfo\";\nimport ErrorBoundary from \"../components/error/errorBoundary\";\n\nclass SystemInfoPage extends Component {\n\n constructor(props) {\n super(props);\n }\n\n render() {\n return (\n \n \n

System Info

\n \n \n \n \n \n \n \n
\n
\n );\n }\n}\n\nexport default SystemInfoPage;\n","function toVal(mix) {\n\tvar k, y, str='';\n\n\tif (typeof mix === 'string' || typeof mix === 'number') {\n\t\tstr += mix;\n\t} else if (typeof mix === 'object') {\n\t\tif (Array.isArray(mix)) {\n\t\t\tfor (k=0; k < mix.length; k++) {\n\t\t\t\tif (mix[k]) {\n\t\t\t\t\tif (y = toVal(mix[k])) {\n\t\t\t\t\t\tstr && (str += ' ');\n\t\t\t\t\t\tstr += y;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tfor (k in mix) {\n\t\t\t\tif (mix[k]) {\n\t\t\t\t\tstr && (str += ' ');\n\t\t\t\t\tstr += k;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn str;\n}\n\nexport default function () {\n\tvar i=0, tmp, x, str='';\n\twhile (i < arguments.length) {\n\t\tif (tmp = arguments[i++]) {\n\t\t\tif (x = toVal(tmp)) {\n\t\t\t\tstr && (str += ' ');\n\t\t\t\tstr += x\n\t\t\t}\n\t\t}\n\t}\n\treturn str;\n}\n","module.exports = function (it) {\n if (typeof it != 'function') {\n throw TypeError(String(it) + ' is not a function');\n } return it;\n};\n","var isObject = require('../internals/is-object');\n\nmodule.exports = function (it) {\n if (!isObject(it) && it !== null) {\n throw TypeError(\"Can't set \" + String(it) + ' as a prototype');\n } return it;\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar create = require('../internals/object-create');\nvar definePropertyModule = require('../internals/object-define-property');\n\nvar UNSCOPABLES = wellKnownSymbol('unscopables');\nvar ArrayPrototype = Array.prototype;\n\n// Array.prototype[@@unscopables]\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\nif (ArrayPrototype[UNSCOPABLES] == undefined) {\n definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {\n configurable: true,\n value: create(null)\n });\n}\n\n// add a key to Array.prototype[@@unscopables]\nmodule.exports = function (key) {\n ArrayPrototype[UNSCOPABLES][key] = true;\n};\n","'use strict';\nvar charAt = require('../internals/string-multibyte').charAt;\n\n// `AdvanceStringIndex` abstract operation\n// https://tc39.es/ecma262/#sec-advancestringindex\nmodule.exports = function (S, index, unicode) {\n return index + (unicode ? charAt(S, index).length : 1);\n};\n","module.exports = function (it, Constructor, name) {\n if (!(it instanceof Constructor)) {\n throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation');\n } return it;\n};\n","var isObject = require('../internals/is-object');\n\nmodule.exports = function (it) {\n if (!isObject(it)) {\n throw TypeError(String(it) + ' is not an object');\n } return it;\n};\n","// eslint-disable-next-line es/no-typed-arrays -- safe\nmodule.exports = typeof ArrayBuffer !== 'undefined' && typeof DataView !== 'undefined';\n","'use strict';\nvar NATIVE_ARRAY_BUFFER = require('../internals/array-buffer-native');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar has = require('../internals/has');\nvar classof = require('../internals/classof');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar redefine = require('../internals/redefine');\nvar defineProperty = require('../internals/object-define-property').f;\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar uid = require('../internals/uid');\n\nvar Int8Array = global.Int8Array;\nvar Int8ArrayPrototype = Int8Array && Int8Array.prototype;\nvar Uint8ClampedArray = global.Uint8ClampedArray;\nvar Uint8ClampedArrayPrototype = Uint8ClampedArray && Uint8ClampedArray.prototype;\nvar TypedArray = Int8Array && getPrototypeOf(Int8Array);\nvar TypedArrayPrototype = Int8ArrayPrototype && getPrototypeOf(Int8ArrayPrototype);\nvar ObjectPrototype = Object.prototype;\nvar isPrototypeOf = ObjectPrototype.isPrototypeOf;\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');\nvar TYPED_ARRAY_CONSTRUCTOR = uid('TYPED_ARRAY_CONSTRUCTOR');\n// Fixing native typed arrays in Opera Presto crashes the browser, see #595\nvar NATIVE_ARRAY_BUFFER_VIEWS = NATIVE_ARRAY_BUFFER && !!setPrototypeOf && classof(global.opera) !== 'Opera';\nvar TYPED_ARRAY_TAG_REQIRED = false;\nvar NAME, Constructor, Prototype;\n\nvar TypedArrayConstructorsList = {\n Int8Array: 1,\n Uint8Array: 1,\n Uint8ClampedArray: 1,\n Int16Array: 2,\n Uint16Array: 2,\n Int32Array: 4,\n Uint32Array: 4,\n Float32Array: 4,\n Float64Array: 8\n};\n\nvar BigIntArrayConstructorsList = {\n BigInt64Array: 8,\n BigUint64Array: 8\n};\n\nvar isView = function isView(it) {\n if (!isObject(it)) return false;\n var klass = classof(it);\n return klass === 'DataView'\n || has(TypedArrayConstructorsList, klass)\n || has(BigIntArrayConstructorsList, klass);\n};\n\nvar isTypedArray = function (it) {\n if (!isObject(it)) return false;\n var klass = classof(it);\n return has(TypedArrayConstructorsList, klass)\n || has(BigIntArrayConstructorsList, klass);\n};\n\nvar aTypedArray = function (it) {\n if (isTypedArray(it)) return it;\n throw TypeError('Target is not a typed array');\n};\n\nvar aTypedArrayConstructor = function (C) {\n if (setPrototypeOf && !isPrototypeOf.call(TypedArray, C)) {\n throw TypeError('Target is not a typed array constructor');\n } return C;\n};\n\nvar exportTypedArrayMethod = function (KEY, property, forced) {\n if (!DESCRIPTORS) return;\n if (forced) for (var ARRAY in TypedArrayConstructorsList) {\n var TypedArrayConstructor = global[ARRAY];\n if (TypedArrayConstructor && has(TypedArrayConstructor.prototype, KEY)) try {\n delete TypedArrayConstructor.prototype[KEY];\n } catch (error) { /* empty */ }\n }\n if (!TypedArrayPrototype[KEY] || forced) {\n redefine(TypedArrayPrototype, KEY, forced ? property\n : NATIVE_ARRAY_BUFFER_VIEWS && Int8ArrayPrototype[KEY] || property);\n }\n};\n\nvar exportTypedArrayStaticMethod = function (KEY, property, forced) {\n var ARRAY, TypedArrayConstructor;\n if (!DESCRIPTORS) return;\n if (setPrototypeOf) {\n if (forced) for (ARRAY in TypedArrayConstructorsList) {\n TypedArrayConstructor = global[ARRAY];\n if (TypedArrayConstructor && has(TypedArrayConstructor, KEY)) try {\n delete TypedArrayConstructor[KEY];\n } catch (error) { /* empty */ }\n }\n if (!TypedArray[KEY] || forced) {\n // V8 ~ Chrome 49-50 `%TypedArray%` methods are non-writable non-configurable\n try {\n return redefine(TypedArray, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS && TypedArray[KEY] || property);\n } catch (error) { /* empty */ }\n } else return;\n }\n for (ARRAY in TypedArrayConstructorsList) {\n TypedArrayConstructor = global[ARRAY];\n if (TypedArrayConstructor && (!TypedArrayConstructor[KEY] || forced)) {\n redefine(TypedArrayConstructor, KEY, property);\n }\n }\n};\n\nfor (NAME in TypedArrayConstructorsList) {\n Constructor = global[NAME];\n Prototype = Constructor && Constructor.prototype;\n if (Prototype) createNonEnumerableProperty(Prototype, TYPED_ARRAY_CONSTRUCTOR, Constructor);\n else NATIVE_ARRAY_BUFFER_VIEWS = false;\n}\n\nfor (NAME in BigIntArrayConstructorsList) {\n Constructor = global[NAME];\n Prototype = Constructor && Constructor.prototype;\n if (Prototype) createNonEnumerableProperty(Prototype, TYPED_ARRAY_CONSTRUCTOR, Constructor);\n}\n\n// WebKit bug - typed arrays constructors prototype is Object.prototype\nif (!NATIVE_ARRAY_BUFFER_VIEWS || typeof TypedArray != 'function' || TypedArray === Function.prototype) {\n // eslint-disable-next-line no-shadow -- safe\n TypedArray = function TypedArray() {\n throw TypeError('Incorrect invocation');\n };\n if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {\n if (global[NAME]) setPrototypeOf(global[NAME], TypedArray);\n }\n}\n\nif (!NATIVE_ARRAY_BUFFER_VIEWS || !TypedArrayPrototype || TypedArrayPrototype === ObjectPrototype) {\n TypedArrayPrototype = TypedArray.prototype;\n if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {\n if (global[NAME]) setPrototypeOf(global[NAME].prototype, TypedArrayPrototype);\n }\n}\n\n// WebKit bug - one more object in Uint8ClampedArray prototype chain\nif (NATIVE_ARRAY_BUFFER_VIEWS && getPrototypeOf(Uint8ClampedArrayPrototype) !== TypedArrayPrototype) {\n setPrototypeOf(Uint8ClampedArrayPrototype, TypedArrayPrototype);\n}\n\nif (DESCRIPTORS && !has(TypedArrayPrototype, TO_STRING_TAG)) {\n TYPED_ARRAY_TAG_REQIRED = true;\n defineProperty(TypedArrayPrototype, TO_STRING_TAG, { get: function () {\n return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;\n } });\n for (NAME in TypedArrayConstructorsList) if (global[NAME]) {\n createNonEnumerableProperty(global[NAME], TYPED_ARRAY_TAG, NAME);\n }\n}\n\nmodule.exports = {\n NATIVE_ARRAY_BUFFER_VIEWS: NATIVE_ARRAY_BUFFER_VIEWS,\n TYPED_ARRAY_CONSTRUCTOR: TYPED_ARRAY_CONSTRUCTOR,\n TYPED_ARRAY_TAG: TYPED_ARRAY_TAG_REQIRED && TYPED_ARRAY_TAG,\n aTypedArray: aTypedArray,\n aTypedArrayConstructor: aTypedArrayConstructor,\n exportTypedArrayMethod: exportTypedArrayMethod,\n exportTypedArrayStaticMethod: exportTypedArrayStaticMethod,\n isView: isView,\n isTypedArray: isTypedArray,\n TypedArray: TypedArray,\n TypedArrayPrototype: TypedArrayPrototype\n};\n","'use strict';\nvar global = require('../internals/global');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar NATIVE_ARRAY_BUFFER = require('../internals/array-buffer-native');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar redefineAll = require('../internals/redefine-all');\nvar fails = require('../internals/fails');\nvar anInstance = require('../internals/an-instance');\nvar toInteger = require('../internals/to-integer');\nvar toLength = require('../internals/to-length');\nvar toIndex = require('../internals/to-index');\nvar IEEE754 = require('../internals/ieee754');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar defineProperty = require('../internals/object-define-property').f;\nvar arrayFill = require('../internals/array-fill');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar getInternalState = InternalStateModule.get;\nvar setInternalState = InternalStateModule.set;\nvar ARRAY_BUFFER = 'ArrayBuffer';\nvar DATA_VIEW = 'DataView';\nvar PROTOTYPE = 'prototype';\nvar WRONG_LENGTH = 'Wrong length';\nvar WRONG_INDEX = 'Wrong index';\nvar NativeArrayBuffer = global[ARRAY_BUFFER];\nvar $ArrayBuffer = NativeArrayBuffer;\nvar $DataView = global[DATA_VIEW];\nvar $DataViewPrototype = $DataView && $DataView[PROTOTYPE];\nvar ObjectPrototype = Object.prototype;\nvar RangeError = global.RangeError;\n\nvar packIEEE754 = IEEE754.pack;\nvar unpackIEEE754 = IEEE754.unpack;\n\nvar packInt8 = function (number) {\n return [number & 0xFF];\n};\n\nvar packInt16 = function (number) {\n return [number & 0xFF, number >> 8 & 0xFF];\n};\n\nvar packInt32 = function (number) {\n return [number & 0xFF, number >> 8 & 0xFF, number >> 16 & 0xFF, number >> 24 & 0xFF];\n};\n\nvar unpackInt32 = function (buffer) {\n return buffer[3] << 24 | buffer[2] << 16 | buffer[1] << 8 | buffer[0];\n};\n\nvar packFloat32 = function (number) {\n return packIEEE754(number, 23, 4);\n};\n\nvar packFloat64 = function (number) {\n return packIEEE754(number, 52, 8);\n};\n\nvar addGetter = function (Constructor, key) {\n defineProperty(Constructor[PROTOTYPE], key, { get: function () { return getInternalState(this)[key]; } });\n};\n\nvar get = function (view, count, index, isLittleEndian) {\n var intIndex = toIndex(index);\n var store = getInternalState(view);\n if (intIndex + count > store.byteLength) throw RangeError(WRONG_INDEX);\n var bytes = getInternalState(store.buffer).bytes;\n var start = intIndex + store.byteOffset;\n var pack = bytes.slice(start, start + count);\n return isLittleEndian ? pack : pack.reverse();\n};\n\nvar set = function (view, count, index, conversion, value, isLittleEndian) {\n var intIndex = toIndex(index);\n var store = getInternalState(view);\n if (intIndex + count > store.byteLength) throw RangeError(WRONG_INDEX);\n var bytes = getInternalState(store.buffer).bytes;\n var start = intIndex + store.byteOffset;\n var pack = conversion(+value);\n for (var i = 0; i < count; i++) bytes[start + i] = pack[isLittleEndian ? i : count - i - 1];\n};\n\nif (!NATIVE_ARRAY_BUFFER) {\n $ArrayBuffer = function ArrayBuffer(length) {\n anInstance(this, $ArrayBuffer, ARRAY_BUFFER);\n var byteLength = toIndex(length);\n setInternalState(this, {\n bytes: arrayFill.call(new Array(byteLength), 0),\n byteLength: byteLength\n });\n if (!DESCRIPTORS) this.byteLength = byteLength;\n };\n\n $DataView = function DataView(buffer, byteOffset, byteLength) {\n anInstance(this, $DataView, DATA_VIEW);\n anInstance(buffer, $ArrayBuffer, DATA_VIEW);\n var bufferLength = getInternalState(buffer).byteLength;\n var offset = toInteger(byteOffset);\n if (offset < 0 || offset > bufferLength) throw RangeError('Wrong offset');\n byteLength = byteLength === undefined ? bufferLength - offset : toLength(byteLength);\n if (offset + byteLength > bufferLength) throw RangeError(WRONG_LENGTH);\n setInternalState(this, {\n buffer: buffer,\n byteLength: byteLength,\n byteOffset: offset\n });\n if (!DESCRIPTORS) {\n this.buffer = buffer;\n this.byteLength = byteLength;\n this.byteOffset = offset;\n }\n };\n\n if (DESCRIPTORS) {\n addGetter($ArrayBuffer, 'byteLength');\n addGetter($DataView, 'buffer');\n addGetter($DataView, 'byteLength');\n addGetter($DataView, 'byteOffset');\n }\n\n redefineAll($DataView[PROTOTYPE], {\n getInt8: function getInt8(byteOffset) {\n return get(this, 1, byteOffset)[0] << 24 >> 24;\n },\n getUint8: function getUint8(byteOffset) {\n return get(this, 1, byteOffset)[0];\n },\n getInt16: function getInt16(byteOffset /* , littleEndian */) {\n var bytes = get(this, 2, byteOffset, arguments.length > 1 ? arguments[1] : undefined);\n return (bytes[1] << 8 | bytes[0]) << 16 >> 16;\n },\n getUint16: function getUint16(byteOffset /* , littleEndian */) {\n var bytes = get(this, 2, byteOffset, arguments.length > 1 ? arguments[1] : undefined);\n return bytes[1] << 8 | bytes[0];\n },\n getInt32: function getInt32(byteOffset /* , littleEndian */) {\n return unpackInt32(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : undefined));\n },\n getUint32: function getUint32(byteOffset /* , littleEndian */) {\n return unpackInt32(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : undefined)) >>> 0;\n },\n getFloat32: function getFloat32(byteOffset /* , littleEndian */) {\n return unpackIEEE754(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : undefined), 23);\n },\n getFloat64: function getFloat64(byteOffset /* , littleEndian */) {\n return unpackIEEE754(get(this, 8, byteOffset, arguments.length > 1 ? arguments[1] : undefined), 52);\n },\n setInt8: function setInt8(byteOffset, value) {\n set(this, 1, byteOffset, packInt8, value);\n },\n setUint8: function setUint8(byteOffset, value) {\n set(this, 1, byteOffset, packInt8, value);\n },\n setInt16: function setInt16(byteOffset, value /* , littleEndian */) {\n set(this, 2, byteOffset, packInt16, value, arguments.length > 2 ? arguments[2] : undefined);\n },\n setUint16: function setUint16(byteOffset, value /* , littleEndian */) {\n set(this, 2, byteOffset, packInt16, value, arguments.length > 2 ? arguments[2] : undefined);\n },\n setInt32: function setInt32(byteOffset, value /* , littleEndian */) {\n set(this, 4, byteOffset, packInt32, value, arguments.length > 2 ? arguments[2] : undefined);\n },\n setUint32: function setUint32(byteOffset, value /* , littleEndian */) {\n set(this, 4, byteOffset, packInt32, value, arguments.length > 2 ? arguments[2] : undefined);\n },\n setFloat32: function setFloat32(byteOffset, value /* , littleEndian */) {\n set(this, 4, byteOffset, packFloat32, value, arguments.length > 2 ? arguments[2] : undefined);\n },\n setFloat64: function setFloat64(byteOffset, value /* , littleEndian */) {\n set(this, 8, byteOffset, packFloat64, value, arguments.length > 2 ? arguments[2] : undefined);\n }\n });\n} else {\n /* eslint-disable no-new -- required for testing */\n if (!fails(function () {\n NativeArrayBuffer(1);\n }) || !fails(function () {\n new NativeArrayBuffer(-1);\n }) || fails(function () {\n new NativeArrayBuffer();\n new NativeArrayBuffer(1.5);\n new NativeArrayBuffer(NaN);\n return NativeArrayBuffer.name != ARRAY_BUFFER;\n })) {\n /* eslint-enable no-new -- required for testing */\n $ArrayBuffer = function ArrayBuffer(length) {\n anInstance(this, $ArrayBuffer);\n return new NativeArrayBuffer(toIndex(length));\n };\n var ArrayBufferPrototype = $ArrayBuffer[PROTOTYPE] = NativeArrayBuffer[PROTOTYPE];\n for (var keys = getOwnPropertyNames(NativeArrayBuffer), j = 0, key; keys.length > j;) {\n if (!((key = keys[j++]) in $ArrayBuffer)) {\n createNonEnumerableProperty($ArrayBuffer, key, NativeArrayBuffer[key]);\n }\n }\n ArrayBufferPrototype.constructor = $ArrayBuffer;\n }\n\n // WebKit bug - the same parent prototype for typed arrays and data view\n if (setPrototypeOf && getPrototypeOf($DataViewPrototype) !== ObjectPrototype) {\n setPrototypeOf($DataViewPrototype, ObjectPrototype);\n }\n\n // iOS Safari 7.x bug\n var testView = new $DataView(new $ArrayBuffer(2));\n var $setInt8 = $DataViewPrototype.setInt8;\n testView.setInt8(0, 2147483648);\n testView.setInt8(1, 2147483649);\n if (testView.getInt8(0) || !testView.getInt8(1)) redefineAll($DataViewPrototype, {\n setInt8: function setInt8(byteOffset, value) {\n $setInt8.call(this, byteOffset, value << 24 >> 24);\n },\n setUint8: function setUint8(byteOffset, value) {\n $setInt8.call(this, byteOffset, value << 24 >> 24);\n }\n }, { unsafe: true });\n}\n\nsetToStringTag($ArrayBuffer, ARRAY_BUFFER);\nsetToStringTag($DataView, DATA_VIEW);\n\nmodule.exports = {\n ArrayBuffer: $ArrayBuffer,\n DataView: $DataView\n};\n","'use strict';\nvar toObject = require('../internals/to-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar toLength = require('../internals/to-length');\n\nvar min = Math.min;\n\n// `Array.prototype.copyWithin` method implementation\n// https://tc39.es/ecma262/#sec-array.prototype.copywithin\n// eslint-disable-next-line es/no-array-prototype-copywithin -- safe\nmodule.exports = [].copyWithin || function copyWithin(target /* = 0 */, start /* = 0, end = @length */) {\n var O = toObject(this);\n var len = toLength(O.length);\n var to = toAbsoluteIndex(target, len);\n var from = toAbsoluteIndex(start, len);\n var end = arguments.length > 2 ? arguments[2] : undefined;\n var count = min((end === undefined ? len : toAbsoluteIndex(end, len)) - from, len - to);\n var inc = 1;\n if (from < to && to < from + count) {\n inc = -1;\n from += count - 1;\n to += count - 1;\n }\n while (count-- > 0) {\n if (from in O) O[to] = O[from];\n else delete O[to];\n to += inc;\n from += inc;\n } return O;\n};\n","'use strict';\nvar toObject = require('../internals/to-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar toLength = require('../internals/to-length');\n\n// `Array.prototype.fill` method implementation\n// https://tc39.es/ecma262/#sec-array.prototype.fill\nmodule.exports = function fill(value /* , start = 0, end = @length */) {\n var O = toObject(this);\n var length = toLength(O.length);\n var argumentsLength = arguments.length;\n var index = toAbsoluteIndex(argumentsLength > 1 ? arguments[1] : undefined, length);\n var end = argumentsLength > 2 ? arguments[2] : undefined;\n var endPos = end === undefined ? length : toAbsoluteIndex(end, length);\n while (endPos > index) O[index++] = value;\n return O;\n};\n","'use strict';\nvar $forEach = require('../internals/array-iteration').forEach;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\n\nvar STRICT_METHOD = arrayMethodIsStrict('forEach');\n\n// `Array.prototype.forEach` method implementation\n// https://tc39.es/ecma262/#sec-array.prototype.foreach\nmodule.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {\n return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n// eslint-disable-next-line es/no-array-prototype-foreach -- safe\n} : [].forEach;\n","module.exports = function (Constructor, list) {\n var index = 0;\n var length = list.length;\n var result = new Constructor(length);\n while (length > index) result[index] = list[index++];\n return result;\n};\n","'use strict';\nvar bind = require('../internals/function-bind-context');\nvar toObject = require('../internals/to-object');\nvar callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar toLength = require('../internals/to-length');\nvar createProperty = require('../internals/create-property');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\n// `Array.from` method implementation\n// https://tc39.es/ecma262/#sec-array.from\nmodule.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {\n var O = toObject(arrayLike);\n var C = typeof this == 'function' ? this : Array;\n var argumentsLength = arguments.length;\n var mapfn = argumentsLength > 1 ? arguments[1] : undefined;\n var mapping = mapfn !== undefined;\n var iteratorMethod = getIteratorMethod(O);\n var index = 0;\n var length, result, step, iterator, next, value;\n if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined, 2);\n // if the target is not iterable or it's an array with the default iterator - use a simple case\n if (iteratorMethod != undefined && !(C == Array && isArrayIteratorMethod(iteratorMethod))) {\n iterator = iteratorMethod.call(O);\n next = iterator.next;\n result = new C();\n for (;!(step = next.call(iterator)).done; index++) {\n value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;\n createProperty(result, index, value);\n }\n } else {\n length = toLength(O.length);\n result = new C(length);\n for (;length > index; index++) {\n value = mapping ? mapfn(O[index], index) : O[index];\n createProperty(result, index, value);\n }\n }\n result.length = index;\n return result;\n};\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar toLength = require('../internals/to-length');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","var bind = require('../internals/function-bind-context');\nvar IndexedObject = require('../internals/indexed-object');\nvar toObject = require('../internals/to-object');\nvar toLength = require('../internals/to-length');\nvar arraySpeciesCreate = require('../internals/array-species-create');\n\nvar push = [].push;\n\n// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation\nvar createMethod = function (TYPE) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var IS_FILTER_REJECT = TYPE == 7;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n return function ($this, callbackfn, that, specificCreate) {\n var O = toObject($this);\n var self = IndexedObject(O);\n var boundFunction = bind(callbackfn, that, 3);\n var length = toLength(self.length);\n var index = 0;\n var create = specificCreate || arraySpeciesCreate;\n var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;\n var value, result;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n value = self[index];\n result = boundFunction(value, index, O);\n if (TYPE) {\n if (IS_MAP) target[index] = result; // map\n else if (result) switch (TYPE) {\n case 3: return true; // some\n case 5: return value; // find\n case 6: return index; // findIndex\n case 2: push.call(target, value); // filter\n } else switch (TYPE) {\n case 4: return false; // every\n case 7: push.call(target, value); // filterReject\n }\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.forEach` method\n // https://tc39.es/ecma262/#sec-array.prototype.foreach\n forEach: createMethod(0),\n // `Array.prototype.map` method\n // https://tc39.es/ecma262/#sec-array.prototype.map\n map: createMethod(1),\n // `Array.prototype.filter` method\n // https://tc39.es/ecma262/#sec-array.prototype.filter\n filter: createMethod(2),\n // `Array.prototype.some` method\n // https://tc39.es/ecma262/#sec-array.prototype.some\n some: createMethod(3),\n // `Array.prototype.every` method\n // https://tc39.es/ecma262/#sec-array.prototype.every\n every: createMethod(4),\n // `Array.prototype.find` method\n // https://tc39.es/ecma262/#sec-array.prototype.find\n find: createMethod(5),\n // `Array.prototype.findIndex` method\n // https://tc39.es/ecma262/#sec-array.prototype.findIndex\n findIndex: createMethod(6),\n // `Array.prototype.filterReject` method\n // https://github.com/tc39/proposal-array-filtering\n filterReject: createMethod(7)\n};\n","'use strict';\n/* eslint-disable es/no-array-prototype-lastindexof -- safe */\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toInteger = require('../internals/to-integer');\nvar toLength = require('../internals/to-length');\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\n\nvar min = Math.min;\nvar $lastIndexOf = [].lastIndexOf;\nvar NEGATIVE_ZERO = !!$lastIndexOf && 1 / [1].lastIndexOf(1, -0) < 0;\nvar STRICT_METHOD = arrayMethodIsStrict('lastIndexOf');\nvar FORCED = NEGATIVE_ZERO || !STRICT_METHOD;\n\n// `Array.prototype.lastIndexOf` method implementation\n// https://tc39.es/ecma262/#sec-array.prototype.lastindexof\nmodule.exports = FORCED ? function lastIndexOf(searchElement /* , fromIndex = @[*-1] */) {\n // convert -0 to +0\n if (NEGATIVE_ZERO) return $lastIndexOf.apply(this, arguments) || 0;\n var O = toIndexedObject(this);\n var length = toLength(O.length);\n var index = length - 1;\n if (arguments.length > 1) index = min(index, toInteger(arguments[1]));\n if (index < 0) index = length + index;\n for (;index >= 0; index--) if (index in O && O[index] === searchElement) return index || 0;\n return -1;\n} : $lastIndexOf;\n","var fails = require('../internals/fails');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (METHOD_NAME) {\n // We can't use this feature detection in V8 since it causes\n // deoptimization and serious performance degradation\n // https://github.com/zloirock/core-js/issues/677\n return V8_VERSION >= 51 || !fails(function () {\n var array = [];\n var constructor = array.constructor = {};\n constructor[SPECIES] = function () {\n return { foo: 1 };\n };\n return array[METHOD_NAME](Boolean).foo !== 1;\n });\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\nmodule.exports = function (METHOD_NAME, argument) {\n var method = [][METHOD_NAME];\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call,no-throw-literal -- required for testing\n method.call(null, argument || function () { throw 1; }, 1);\n });\n};\n","var aFunction = require('../internals/a-function');\nvar toObject = require('../internals/to-object');\nvar IndexedObject = require('../internals/indexed-object');\nvar toLength = require('../internals/to-length');\n\n// `Array.prototype.{ reduce, reduceRight }` methods implementation\nvar createMethod = function (IS_RIGHT) {\n return function (that, callbackfn, argumentsLength, memo) {\n aFunction(callbackfn);\n var O = toObject(that);\n var self = IndexedObject(O);\n var length = toLength(O.length);\n var index = IS_RIGHT ? length - 1 : 0;\n var i = IS_RIGHT ? -1 : 1;\n if (argumentsLength < 2) while (true) {\n if (index in self) {\n memo = self[index];\n index += i;\n break;\n }\n index += i;\n if (IS_RIGHT ? index < 0 : length <= index) {\n throw TypeError('Reduce of empty array with no initial value');\n }\n }\n for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {\n memo = callbackfn(memo, self[index], index, O);\n }\n return memo;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.reduce` method\n // https://tc39.es/ecma262/#sec-array.prototype.reduce\n left: createMethod(false),\n // `Array.prototype.reduceRight` method\n // https://tc39.es/ecma262/#sec-array.prototype.reduceright\n right: createMethod(true)\n};\n","// TODO: use something more complex like timsort?\nvar floor = Math.floor;\n\nvar mergeSort = function (array, comparefn) {\n var length = array.length;\n var middle = floor(length / 2);\n return length < 8 ? insertionSort(array, comparefn) : merge(\n mergeSort(array.slice(0, middle), comparefn),\n mergeSort(array.slice(middle), comparefn),\n comparefn\n );\n};\n\nvar insertionSort = function (array, comparefn) {\n var length = array.length;\n var i = 1;\n var element, j;\n\n while (i < length) {\n j = i;\n element = array[i];\n while (j && comparefn(array[j - 1], element) > 0) {\n array[j] = array[--j];\n }\n if (j !== i++) array[j] = element;\n } return array;\n};\n\nvar merge = function (left, right, comparefn) {\n var llength = left.length;\n var rlength = right.length;\n var lindex = 0;\n var rindex = 0;\n var result = [];\n\n while (lindex < llength || rindex < rlength) {\n if (lindex < llength && rindex < rlength) {\n result.push(comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]);\n } else {\n result.push(lindex < llength ? left[lindex++] : right[rindex++]);\n }\n } return result;\n};\n\nmodule.exports = mergeSort;\n","var isObject = require('../internals/is-object');\nvar isArray = require('../internals/is-array');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\n\n// a part of `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray) {\n var C;\n if (isArray(originalArray)) {\n C = originalArray.constructor;\n // cross-realm fallback\n if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;\n else if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? Array : C;\n};\n","var arraySpeciesConstructor = require('../internals/array-species-constructor');\n\n// `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray, length) {\n return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);\n};\n","var anObject = require('../internals/an-object');\nvar iteratorClose = require('../internals/iterator-close');\n\n// call something on iterator step with safe closing on error\nmodule.exports = function (iterator, fn, value, ENTRIES) {\n try {\n return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);\n } catch (error) {\n iteratorClose(iterator);\n throw error;\n }\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var called = 0;\n var iteratorWithReturn = {\n next: function () {\n return { done: !!called++ };\n },\n 'return': function () {\n SAFE_CLOSING = true;\n }\n };\n iteratorWithReturn[ITERATOR] = function () {\n return this;\n };\n // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing\n Array.from(iteratorWithReturn, function () { throw 2; });\n} catch (error) { /* empty */ }\n\nmodule.exports = function (exec, SKIP_CLOSING) {\n if (!SKIP_CLOSING && !SAFE_CLOSING) return false;\n var ITERATION_SUPPORT = false;\n try {\n var object = {};\n object[ITERATOR] = function () {\n return {\n next: function () {\n return { done: ITERATION_SUPPORT = true };\n }\n };\n };\n exec(object);\n } catch (error) { /* empty */ }\n return ITERATION_SUPPORT;\n};\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;\n};\n","'use strict';\nvar defineProperty = require('../internals/object-define-property').f;\nvar create = require('../internals/object-create');\nvar redefineAll = require('../internals/redefine-all');\nvar bind = require('../internals/function-bind-context');\nvar anInstance = require('../internals/an-instance');\nvar iterate = require('../internals/iterate');\nvar defineIterator = require('../internals/define-iterator');\nvar setSpecies = require('../internals/set-species');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fastKey = require('../internals/internal-metadata').fastKey;\nvar InternalStateModule = require('../internals/internal-state');\n\nvar setInternalState = InternalStateModule.set;\nvar internalStateGetterFor = InternalStateModule.getterFor;\n\nmodule.exports = {\n getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {\n var C = wrapper(function (that, iterable) {\n anInstance(that, C, CONSTRUCTOR_NAME);\n setInternalState(that, {\n type: CONSTRUCTOR_NAME,\n index: create(null),\n first: undefined,\n last: undefined,\n size: 0\n });\n if (!DESCRIPTORS) that.size = 0;\n if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n });\n\n var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);\n\n var define = function (that, key, value) {\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n var previous, index;\n // change existing entry\n if (entry) {\n entry.value = value;\n // create new entry\n } else {\n state.last = entry = {\n index: index = fastKey(key, true),\n key: key,\n value: value,\n previous: previous = state.last,\n next: undefined,\n removed: false\n };\n if (!state.first) state.first = entry;\n if (previous) previous.next = entry;\n if (DESCRIPTORS) state.size++;\n else that.size++;\n // add to index\n if (index !== 'F') state.index[index] = entry;\n } return that;\n };\n\n var getEntry = function (that, key) {\n var state = getInternalState(that);\n // fast case\n var index = fastKey(key);\n var entry;\n if (index !== 'F') return state.index[index];\n // frozen object case\n for (entry = state.first; entry; entry = entry.next) {\n if (entry.key == key) return entry;\n }\n };\n\n redefineAll(C.prototype, {\n // `{ Map, Set }.prototype.clear()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.clear\n // https://tc39.es/ecma262/#sec-set.prototype.clear\n clear: function clear() {\n var that = this;\n var state = getInternalState(that);\n var data = state.index;\n var entry = state.first;\n while (entry) {\n entry.removed = true;\n if (entry.previous) entry.previous = entry.previous.next = undefined;\n delete data[entry.index];\n entry = entry.next;\n }\n state.first = state.last = undefined;\n if (DESCRIPTORS) state.size = 0;\n else that.size = 0;\n },\n // `{ Map, Set }.prototype.delete(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.delete\n // https://tc39.es/ecma262/#sec-set.prototype.delete\n 'delete': function (key) {\n var that = this;\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n if (entry) {\n var next = entry.next;\n var prev = entry.previous;\n delete state.index[entry.index];\n entry.removed = true;\n if (prev) prev.next = next;\n if (next) next.previous = prev;\n if (state.first == entry) state.first = next;\n if (state.last == entry) state.last = prev;\n if (DESCRIPTORS) state.size--;\n else that.size--;\n } return !!entry;\n },\n // `{ Map, Set }.prototype.forEach(callbackfn, thisArg = undefined)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.foreach\n // https://tc39.es/ecma262/#sec-set.prototype.foreach\n forEach: function forEach(callbackfn /* , that = undefined */) {\n var state = getInternalState(this);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);\n var entry;\n while (entry = entry ? entry.next : state.first) {\n boundFunction(entry.value, entry.key, this);\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n }\n },\n // `{ Map, Set}.prototype.has(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.has\n // https://tc39.es/ecma262/#sec-set.prototype.has\n has: function has(key) {\n return !!getEntry(this, key);\n }\n });\n\n redefineAll(C.prototype, IS_MAP ? {\n // `Map.prototype.get(key)` method\n // https://tc39.es/ecma262/#sec-map.prototype.get\n get: function get(key) {\n var entry = getEntry(this, key);\n return entry && entry.value;\n },\n // `Map.prototype.set(key, value)` method\n // https://tc39.es/ecma262/#sec-map.prototype.set\n set: function set(key, value) {\n return define(this, key === 0 ? 0 : key, value);\n }\n } : {\n // `Set.prototype.add(value)` method\n // https://tc39.es/ecma262/#sec-set.prototype.add\n add: function add(value) {\n return define(this, value = value === 0 ? 0 : value, value);\n }\n });\n if (DESCRIPTORS) defineProperty(C.prototype, 'size', {\n get: function () {\n return getInternalState(this).size;\n }\n });\n return C;\n },\n setStrong: function (C, CONSTRUCTOR_NAME, IS_MAP) {\n var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';\n var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);\n var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);\n // `{ Map, Set }.prototype.{ keys, values, entries, @@iterator }()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.entries\n // https://tc39.es/ecma262/#sec-map.prototype.keys\n // https://tc39.es/ecma262/#sec-map.prototype.values\n // https://tc39.es/ecma262/#sec-map.prototype-@@iterator\n // https://tc39.es/ecma262/#sec-set.prototype.entries\n // https://tc39.es/ecma262/#sec-set.prototype.keys\n // https://tc39.es/ecma262/#sec-set.prototype.values\n // https://tc39.es/ecma262/#sec-set.prototype-@@iterator\n defineIterator(C, CONSTRUCTOR_NAME, function (iterated, kind) {\n setInternalState(this, {\n type: ITERATOR_NAME,\n target: iterated,\n state: getInternalCollectionState(iterated),\n kind: kind,\n last: undefined\n });\n }, function () {\n var state = getInternalIteratorState(this);\n var kind = state.kind;\n var entry = state.last;\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n // get next entry\n if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {\n // or finish the iteration\n state.target = undefined;\n return { value: undefined, done: true };\n }\n // return step by kind\n if (kind == 'keys') return { value: entry.key, done: false };\n if (kind == 'values') return { value: entry.value, done: false };\n return { value: [entry.key, entry.value], done: false };\n }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);\n\n // `{ Map, Set }.prototype[@@species]` accessors\n // https://tc39.es/ecma262/#sec-get-map-@@species\n // https://tc39.es/ecma262/#sec-get-set-@@species\n setSpecies(CONSTRUCTOR_NAME);\n }\n};\n","'use strict';\nvar redefineAll = require('../internals/redefine-all');\nvar getWeakData = require('../internals/internal-metadata').getWeakData;\nvar anObject = require('../internals/an-object');\nvar isObject = require('../internals/is-object');\nvar anInstance = require('../internals/an-instance');\nvar iterate = require('../internals/iterate');\nvar ArrayIterationModule = require('../internals/array-iteration');\nvar $has = require('../internals/has');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar setInternalState = InternalStateModule.set;\nvar internalStateGetterFor = InternalStateModule.getterFor;\nvar find = ArrayIterationModule.find;\nvar findIndex = ArrayIterationModule.findIndex;\nvar id = 0;\n\n// fallback for uncaught frozen keys\nvar uncaughtFrozenStore = function (store) {\n return store.frozen || (store.frozen = new UncaughtFrozenStore());\n};\n\nvar UncaughtFrozenStore = function () {\n this.entries = [];\n};\n\nvar findUncaughtFrozen = function (store, key) {\n return find(store.entries, function (it) {\n return it[0] === key;\n });\n};\n\nUncaughtFrozenStore.prototype = {\n get: function (key) {\n var entry = findUncaughtFrozen(this, key);\n if (entry) return entry[1];\n },\n has: function (key) {\n return !!findUncaughtFrozen(this, key);\n },\n set: function (key, value) {\n var entry = findUncaughtFrozen(this, key);\n if (entry) entry[1] = value;\n else this.entries.push([key, value]);\n },\n 'delete': function (key) {\n var index = findIndex(this.entries, function (it) {\n return it[0] === key;\n });\n if (~index) this.entries.splice(index, 1);\n return !!~index;\n }\n};\n\nmodule.exports = {\n getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {\n var C = wrapper(function (that, iterable) {\n anInstance(that, C, CONSTRUCTOR_NAME);\n setInternalState(that, {\n type: CONSTRUCTOR_NAME,\n id: id++,\n frozen: undefined\n });\n if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n });\n\n var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);\n\n var define = function (that, key, value) {\n var state = getInternalState(that);\n var data = getWeakData(anObject(key), true);\n if (data === true) uncaughtFrozenStore(state).set(key, value);\n else data[state.id] = value;\n return that;\n };\n\n redefineAll(C.prototype, {\n // `{ WeakMap, WeakSet }.prototype.delete(key)` methods\n // https://tc39.es/ecma262/#sec-weakmap.prototype.delete\n // https://tc39.es/ecma262/#sec-weakset.prototype.delete\n 'delete': function (key) {\n var state = getInternalState(this);\n if (!isObject(key)) return false;\n var data = getWeakData(key);\n if (data === true) return uncaughtFrozenStore(state)['delete'](key);\n return data && $has(data, state.id) && delete data[state.id];\n },\n // `{ WeakMap, WeakSet }.prototype.has(key)` methods\n // https://tc39.es/ecma262/#sec-weakmap.prototype.has\n // https://tc39.es/ecma262/#sec-weakset.prototype.has\n has: function has(key) {\n var state = getInternalState(this);\n if (!isObject(key)) return false;\n var data = getWeakData(key);\n if (data === true) return uncaughtFrozenStore(state).has(key);\n return data && $has(data, state.id);\n }\n });\n\n redefineAll(C.prototype, IS_MAP ? {\n // `WeakMap.prototype.get(key)` method\n // https://tc39.es/ecma262/#sec-weakmap.prototype.get\n get: function get(key) {\n var state = getInternalState(this);\n if (isObject(key)) {\n var data = getWeakData(key);\n if (data === true) return uncaughtFrozenStore(state).get(key);\n return data ? data[state.id] : undefined;\n }\n },\n // `WeakMap.prototype.set(key, value)` method\n // https://tc39.es/ecma262/#sec-weakmap.prototype.set\n set: function set(key, value) {\n return define(this, key, value);\n }\n } : {\n // `WeakSet.prototype.add(value)` method\n // https://tc39.es/ecma262/#sec-weakset.prototype.add\n add: function add(value) {\n return define(this, value, true);\n }\n });\n\n return C;\n }\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar isForced = require('../internals/is-forced');\nvar redefine = require('../internals/redefine');\nvar InternalMetadataModule = require('../internals/internal-metadata');\nvar iterate = require('../internals/iterate');\nvar anInstance = require('../internals/an-instance');\nvar isObject = require('../internals/is-object');\nvar fails = require('../internals/fails');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar inheritIfRequired = require('../internals/inherit-if-required');\n\nmodule.exports = function (CONSTRUCTOR_NAME, wrapper, common) {\n var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;\n var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;\n var ADDER = IS_MAP ? 'set' : 'add';\n var NativeConstructor = global[CONSTRUCTOR_NAME];\n var NativePrototype = NativeConstructor && NativeConstructor.prototype;\n var Constructor = NativeConstructor;\n var exported = {};\n\n var fixMethod = function (KEY) {\n var nativeMethod = NativePrototype[KEY];\n redefine(NativePrototype, KEY,\n KEY == 'add' ? function add(value) {\n nativeMethod.call(this, value === 0 ? 0 : value);\n return this;\n } : KEY == 'delete' ? function (key) {\n return IS_WEAK && !isObject(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key);\n } : KEY == 'get' ? function get(key) {\n return IS_WEAK && !isObject(key) ? undefined : nativeMethod.call(this, key === 0 ? 0 : key);\n } : KEY == 'has' ? function has(key) {\n return IS_WEAK && !isObject(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key);\n } : function set(key, value) {\n nativeMethod.call(this, key === 0 ? 0 : key, value);\n return this;\n }\n );\n };\n\n var REPLACE = isForced(\n CONSTRUCTOR_NAME,\n typeof NativeConstructor != 'function' || !(IS_WEAK || NativePrototype.forEach && !fails(function () {\n new NativeConstructor().entries().next();\n }))\n );\n\n if (REPLACE) {\n // create collection constructor\n Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);\n InternalMetadataModule.enable();\n } else if (isForced(CONSTRUCTOR_NAME, true)) {\n var instance = new Constructor();\n // early implementations not supports chaining\n var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;\n // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false\n var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });\n // most early implementations doesn't supports iterables, most modern - not close it correctly\n // eslint-disable-next-line no-new -- required for testing\n var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); });\n // for early implementations -0 and +0 not the same\n var BUGGY_ZERO = !IS_WEAK && fails(function () {\n // V8 ~ Chromium 42- fails only with 5+ elements\n var $instance = new NativeConstructor();\n var index = 5;\n while (index--) $instance[ADDER](index, index);\n return !$instance.has(-0);\n });\n\n if (!ACCEPT_ITERABLES) {\n Constructor = wrapper(function (dummy, iterable) {\n anInstance(dummy, Constructor, CONSTRUCTOR_NAME);\n var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);\n if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n return that;\n });\n Constructor.prototype = NativePrototype;\n NativePrototype.constructor = Constructor;\n }\n\n if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {\n fixMethod('delete');\n fixMethod('has');\n IS_MAP && fixMethod('get');\n }\n\n if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);\n\n // weak collections should not contains .clear method\n if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear;\n }\n\n exported[CONSTRUCTOR_NAME] = Constructor;\n $({ global: true, forced: Constructor != NativeConstructor }, exported);\n\n setToStringTag(Constructor, CONSTRUCTOR_NAME);\n\n if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);\n\n return Constructor;\n};\n","var has = require('../internals/has');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\nmodule.exports = function (METHOD_NAME) {\n var regexp = /./;\n try {\n '/./'[METHOD_NAME](regexp);\n } catch (error1) {\n try {\n regexp[MATCH] = false;\n return '/./'[METHOD_NAME](regexp);\n } catch (error2) { /* empty */ }\n } return false;\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n function F() { /* empty */ }\n F.prototype.constructor = null;\n // eslint-disable-next-line es/no-object-getprototypeof -- required for testing\n return Object.getPrototypeOf(new F()) !== F.prototype;\n});\n","var requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\n\nvar quot = /\"/g;\n\n// `CreateHTML` abstract operation\n// https://tc39.es/ecma262/#sec-createhtml\nmodule.exports = function (string, tag, attribute, value) {\n var S = toString(requireObjectCoercible(string));\n var p1 = '<' + tag;\n if (attribute !== '') p1 += ' ' + attribute + '=\"' + toString(value).replace(quot, '"') + '\"';\n return p1 + '>' + S + '';\n};\n","'use strict';\nvar IteratorPrototype = require('../internals/iterators-core').IteratorPrototype;\nvar create = require('../internals/object-create');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar Iterators = require('../internals/iterators');\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (IteratorConstructor, NAME, next) {\n var TO_STRING_TAG = NAME + ' Iterator';\n IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(1, next) });\n setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);\n Iterators[TO_STRING_TAG] = returnThis;\n return IteratorConstructor;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","'use strict';\nvar toPropertyKey = require('../internals/to-property-key');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = function (object, key, value) {\n var propertyKey = toPropertyKey(key);\n if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));\n else object[propertyKey] = value;\n};\n","'use strict';\nvar fails = require('../internals/fails');\nvar padStart = require('../internals/string-pad').start;\n\nvar abs = Math.abs;\nvar DatePrototype = Date.prototype;\nvar getTime = DatePrototype.getTime;\nvar nativeDateToISOString = DatePrototype.toISOString;\n\n// `Date.prototype.toISOString` method implementation\n// https://tc39.es/ecma262/#sec-date.prototype.toisostring\n// PhantomJS / old WebKit fails here:\nmodule.exports = (fails(function () {\n return nativeDateToISOString.call(new Date(-5e13 - 1)) != '0385-07-25T07:06:39.999Z';\n}) || !fails(function () {\n nativeDateToISOString.call(new Date(NaN));\n})) ? function toISOString() {\n if (!isFinite(getTime.call(this))) throw RangeError('Invalid time value');\n var date = this;\n var year = date.getUTCFullYear();\n var milliseconds = date.getUTCMilliseconds();\n var sign = year < 0 ? '-' : year > 9999 ? '+' : '';\n return sign + padStart(abs(year), sign ? 6 : 4, 0) +\n '-' + padStart(date.getUTCMonth() + 1, 2, 0) +\n '-' + padStart(date.getUTCDate(), 2, 0) +\n 'T' + padStart(date.getUTCHours(), 2, 0) +\n ':' + padStart(date.getUTCMinutes(), 2, 0) +\n ':' + padStart(date.getUTCSeconds(), 2, 0) +\n '.' + padStart(milliseconds, 3, 0) +\n 'Z';\n} : nativeDateToISOString;\n","'use strict';\nvar anObject = require('../internals/an-object');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\n\n// `Date.prototype[@@toPrimitive](hint)` method implementation\n// https://tc39.es/ecma262/#sec-date.prototype-@@toprimitive\nmodule.exports = function (hint) {\n anObject(this);\n if (hint === 'string' || hint === 'default') hint = 'string';\n else if (hint !== 'number') throw TypeError('Incorrect hint');\n return ordinaryToPrimitive(this, hint);\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar createIteratorConstructor = require('../internals/create-iterator-constructor');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar redefine = require('../internals/redefine');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\nvar Iterators = require('../internals/iterators');\nvar IteratorsCore = require('../internals/iterators-core');\n\nvar IteratorPrototype = IteratorsCore.IteratorPrototype;\nvar BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;\nvar ITERATOR = wellKnownSymbol('iterator');\nvar KEYS = 'keys';\nvar VALUES = 'values';\nvar ENTRIES = 'entries';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {\n createIteratorConstructor(IteratorConstructor, NAME, next);\n\n var getIterationMethod = function (KIND) {\n if (KIND === DEFAULT && defaultIterator) return defaultIterator;\n if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];\n switch (KIND) {\n case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };\n case VALUES: return function values() { return new IteratorConstructor(this, KIND); };\n case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };\n } return function () { return new IteratorConstructor(this); };\n };\n\n var TO_STRING_TAG = NAME + ' Iterator';\n var INCORRECT_VALUES_NAME = false;\n var IterablePrototype = Iterable.prototype;\n var nativeIterator = IterablePrototype[ITERATOR]\n || IterablePrototype['@@iterator']\n || DEFAULT && IterablePrototype[DEFAULT];\n var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);\n var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;\n var CurrentIteratorPrototype, methods, KEY;\n\n // fix native\n if (anyNativeIterator) {\n CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));\n if (IteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {\n if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {\n if (setPrototypeOf) {\n setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);\n } else if (typeof CurrentIteratorPrototype[ITERATOR] != 'function') {\n createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR, returnThis);\n }\n }\n // Set @@toStringTag to native iterators\n setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);\n if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;\n }\n }\n\n // fix Array.prototype.{ values, @@iterator }.name in V8 / FF\n if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {\n INCORRECT_VALUES_NAME = true;\n defaultIterator = function values() { return nativeIterator.call(this); };\n }\n\n // define iterator\n if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {\n createNonEnumerableProperty(IterablePrototype, ITERATOR, defaultIterator);\n }\n Iterators[NAME] = defaultIterator;\n\n // export additional methods\n if (DEFAULT) {\n methods = {\n values: getIterationMethod(VALUES),\n keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),\n entries: getIterationMethod(ENTRIES)\n };\n if (FORCED) for (KEY in methods) {\n if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {\n redefine(IterablePrototype, KEY, methods[KEY]);\n }\n } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);\n }\n\n return methods;\n};\n","var path = require('../internals/path');\nvar has = require('../internals/has');\nvar wrappedWellKnownSymbolModule = require('../internals/well-known-symbol-wrapped');\nvar defineProperty = require('../internals/object-define-property').f;\n\nmodule.exports = function (NAME) {\n var Symbol = path.Symbol || (path.Symbol = {});\n if (!has(Symbol, NAME)) defineProperty(Symbol, NAME, {\n value: wrappedWellKnownSymbolModule.f(NAME)\n });\n};\n","var fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","// iterable DOM collections\n// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods\nmodule.exports = {\n CSSRuleList: 0,\n CSSStyleDeclaration: 0,\n CSSValueList: 0,\n ClientRectList: 0,\n DOMRectList: 0,\n DOMStringList: 0,\n DOMTokenList: 1,\n DataTransferItemList: 0,\n FileList: 0,\n HTMLAllCollection: 0,\n HTMLCollection: 0,\n HTMLFormElement: 0,\n HTMLSelectElement: 0,\n MediaList: 0,\n MimeTypeArray: 0,\n NamedNodeMap: 0,\n NodeList: 1,\n PaintRequestList: 0,\n Plugin: 0,\n PluginArray: 0,\n SVGLengthList: 0,\n SVGNumberList: 0,\n SVGPathSegList: 0,\n SVGPointList: 0,\n SVGStringList: 0,\n SVGTransformList: 0,\n SourceBufferList: 0,\n StyleSheetList: 0,\n TextTrackCueList: 0,\n TextTrackList: 0,\n TouchList: 0\n};\n","var userAgent = require('../internals/engine-user-agent');\n\nvar firefox = userAgent.match(/firefox\\/(\\d+)/i);\n\nmodule.exports = !!firefox && +firefox[1];\n","module.exports = typeof window == 'object';\n","var UA = require('../internals/engine-user-agent');\n\nmodule.exports = /MSIE|Trident/.test(UA);\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /(?:iphone|ipod|ipad).*applewebkit/i.test(userAgent);\n","var classof = require('../internals/classof-raw');\nvar global = require('../internals/global');\n\nmodule.exports = classof(global.process) == 'process';\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /web0s(?!.*chrome)/i.test(userAgent);\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('navigator', 'userAgent') || '';\n","var global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n version = match[0] < 4 ? 1 : match[0] + match[1];\n} else if (userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = match[1];\n }\n}\n\nmodule.exports = version && +version;\n","var userAgent = require('../internals/engine-user-agent');\n\nvar webkit = userAgent.match(/AppleWebKit\\/(\\d+)\\./);\n\nmodule.exports = !!webkit && +webkit[1];\n","// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","var global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar redefine = require('../internals/redefine');\nvar setGlobal = require('../internals/set-global');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.noTargetGet - prevent calling a getter on target\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || setGlobal(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.noTargetGet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty === typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n // extend global\n redefine(target, key, sourceProperty, options);\n }\n};\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","'use strict';\n// TODO: Remove from `core-js@4` since it's moved to entry points\nrequire('../modules/es.regexp.exec');\nvar redefine = require('../internals/redefine');\nvar regexpExec = require('../internals/regexp-exec');\nvar fails = require('../internals/fails');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\nvar SPECIES = wellKnownSymbol('species');\nvar RegExpPrototype = RegExp.prototype;\n\nmodule.exports = function (KEY, exec, FORCED, SHAM) {\n var SYMBOL = wellKnownSymbol(KEY);\n\n var DELEGATES_TO_SYMBOL = !fails(function () {\n // String methods call symbol-named RegEp methods\n var O = {};\n O[SYMBOL] = function () { return 7; };\n return ''[KEY](O) != 7;\n });\n\n var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {\n // Symbol-named RegExp methods call .exec\n var execCalled = false;\n var re = /a/;\n\n if (KEY === 'split') {\n // We can't use real regex here since it causes deoptimization\n // and serious performance degradation in V8\n // https://github.com/zloirock/core-js/issues/306\n re = {};\n // RegExp[@@split] doesn't call the regex's exec method, but first creates\n // a new one. We need to return the patched regex when creating the new one.\n re.constructor = {};\n re.constructor[SPECIES] = function () { return re; };\n re.flags = '';\n re[SYMBOL] = /./[SYMBOL];\n }\n\n re.exec = function () { execCalled = true; return null; };\n\n re[SYMBOL]('');\n return !execCalled;\n });\n\n if (\n !DELEGATES_TO_SYMBOL ||\n !DELEGATES_TO_EXEC ||\n FORCED\n ) {\n var nativeRegExpMethod = /./[SYMBOL];\n var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {\n var $exec = regexp.exec;\n if ($exec === regexpExec || $exec === RegExpPrototype.exec) {\n if (DELEGATES_TO_SYMBOL && !forceStringMethod) {\n // The native String method already delegates to @@method (this\n // polyfilled function), leasing to infinite recursion.\n // We avoid it by directly calling the native @@method method.\n return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };\n }\n return { done: true, value: nativeMethod.call(str, regexp, arg2) };\n }\n return { done: false };\n });\n\n redefine(String.prototype, KEY, methods[0]);\n redefine(RegExpPrototype, SYMBOL, methods[1]);\n }\n\n if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);\n};\n","'use strict';\nvar isArray = require('../internals/is-array');\nvar toLength = require('../internals/to-length');\nvar bind = require('../internals/function-bind-context');\n\n// `FlattenIntoArray` abstract operation\n// https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray\nvar flattenIntoArray = function (target, original, source, sourceLen, start, depth, mapper, thisArg) {\n var targetIndex = start;\n var sourceIndex = 0;\n var mapFn = mapper ? bind(mapper, thisArg, 3) : false;\n var element;\n\n while (sourceIndex < sourceLen) {\n if (sourceIndex in source) {\n element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];\n\n if (depth > 0 && isArray(element)) {\n targetIndex = flattenIntoArray(target, original, element, toLength(element.length), targetIndex, depth - 1) - 1;\n } else {\n if (targetIndex >= 0x1FFFFFFFFFFFFF) throw TypeError('Exceed the acceptable array length');\n target[targetIndex] = element;\n }\n\n targetIndex++;\n }\n sourceIndex++;\n }\n return targetIndex;\n};\n\nmodule.exports = flattenIntoArray;\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing\n return Object.isExtensible(Object.preventExtensions({}));\n});\n","var aFunction = require('../internals/a-function');\n\n// optional / simple context binding\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 0: return function () {\n return fn.call(that);\n };\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","'use strict';\nvar aFunction = require('../internals/a-function');\nvar isObject = require('../internals/is-object');\n\nvar slice = [].slice;\nvar factories = {};\n\nvar construct = function (C, argsLength, args) {\n if (!(argsLength in factories)) {\n for (var list = [], i = 0; i < argsLength; i++) list[i] = 'a[' + i + ']';\n // eslint-disable-next-line no-new-func -- we have no proper alternatives, IE8- only\n factories[argsLength] = Function('C,a', 'return new C(' + list.join(',') + ')');\n } return factories[argsLength](C, args);\n};\n\n// `Function.prototype.bind` method implementation\n// https://tc39.es/ecma262/#sec-function.prototype.bind\nmodule.exports = Function.bind || function bind(that /* , ...args */) {\n var fn = aFunction(this);\n var partArgs = slice.call(arguments, 1);\n var boundFunction = function bound(/* args... */) {\n var args = partArgs.concat(slice.call(arguments));\n return this instanceof boundFunction ? construct(fn, args.length, args) : fn.apply(that, args);\n };\n if (isObject(fn.prototype)) boundFunction.prototype = fn.prototype;\n return boundFunction;\n};\n","var global = require('../internals/global');\n\nvar aFunction = function (variable) {\n return typeof variable == 'function' ? variable : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];\n};\n","var classof = require('../internals/classof');\nvar Iterators = require('../internals/iterators');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\n\nmodule.exports = function (it) {\n if (it != undefined) return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n","var anObject = require('../internals/an-object');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\nmodule.exports = function (it) {\n var iteratorMethod = getIteratorMethod(it);\n if (typeof iteratorMethod != 'function') {\n throw TypeError(String(it) + ' is not iterable');\n } return anObject(iteratorMethod.call(it));\n};\n","var toObject = require('../internals/to-object');\n\nvar floor = Math.floor;\nvar replace = ''.replace;\nvar SUBSTITUTION_SYMBOLS = /\\$([$&'`]|\\d{1,2}|<[^>]*>)/g;\nvar SUBSTITUTION_SYMBOLS_NO_NAMED = /\\$([$&'`]|\\d{1,2})/g;\n\n// `GetSubstitution` abstract operation\n// https://tc39.es/ecma262/#sec-getsubstitution\nmodule.exports = function (matched, str, position, captures, namedCaptures, replacement) {\n var tailPos = position + matched.length;\n var m = captures.length;\n var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;\n if (namedCaptures !== undefined) {\n namedCaptures = toObject(namedCaptures);\n symbols = SUBSTITUTION_SYMBOLS;\n }\n return replace.call(replacement, symbols, function (match, ch) {\n var capture;\n switch (ch.charAt(0)) {\n case '$': return '$';\n case '&': return matched;\n case '`': return str.slice(0, position);\n case \"'\": return str.slice(tailPos);\n case '<':\n capture = namedCaptures[ch.slice(1, -1)];\n break;\n default: // \\d\\d?\n var n = +ch;\n if (n === 0) return match;\n if (n > m) {\n var f = floor(n / 10);\n if (f === 0) return match;\n if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);\n return match;\n }\n capture = captures[n - 1];\n }\n return capture === undefined ? '' : capture;\n });\n};\n","var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || Function('return this')();\n","var toObject = require('../internals/to-object');\n\nvar hasOwnProperty = {}.hasOwnProperty;\n\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty.call(toObject(it), key);\n};\n","module.exports = {};\n","var global = require('../internals/global');\n\nmodule.exports = function (a, b) {\n var console = global.console;\n if (console && console.error) {\n arguments.length === 1 ? console.error(a) : console.error(a, b);\n }\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('document', 'documentElement');\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thank's IE8 for his funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- requied for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","// IEEE754 conversions based on https://github.com/feross/ieee754\nvar abs = Math.abs;\nvar pow = Math.pow;\nvar floor = Math.floor;\nvar log = Math.log;\nvar LN2 = Math.LN2;\n\nvar pack = function (number, mantissaLength, bytes) {\n var buffer = new Array(bytes);\n var exponentLength = bytes * 8 - mantissaLength - 1;\n var eMax = (1 << exponentLength) - 1;\n var eBias = eMax >> 1;\n var rt = mantissaLength === 23 ? pow(2, -24) - pow(2, -77) : 0;\n var sign = number < 0 || number === 0 && 1 / number < 0 ? 1 : 0;\n var index = 0;\n var exponent, mantissa, c;\n number = abs(number);\n // eslint-disable-next-line no-self-compare -- NaN check\n if (number != number || number === Infinity) {\n // eslint-disable-next-line no-self-compare -- NaN check\n mantissa = number != number ? 1 : 0;\n exponent = eMax;\n } else {\n exponent = floor(log(number) / LN2);\n if (number * (c = pow(2, -exponent)) < 1) {\n exponent--;\n c *= 2;\n }\n if (exponent + eBias >= 1) {\n number += rt / c;\n } else {\n number += rt * pow(2, 1 - eBias);\n }\n if (number * c >= 2) {\n exponent++;\n c /= 2;\n }\n if (exponent + eBias >= eMax) {\n mantissa = 0;\n exponent = eMax;\n } else if (exponent + eBias >= 1) {\n mantissa = (number * c - 1) * pow(2, mantissaLength);\n exponent = exponent + eBias;\n } else {\n mantissa = number * pow(2, eBias - 1) * pow(2, mantissaLength);\n exponent = 0;\n }\n }\n for (; mantissaLength >= 8; buffer[index++] = mantissa & 255, mantissa /= 256, mantissaLength -= 8);\n exponent = exponent << mantissaLength | mantissa;\n exponentLength += mantissaLength;\n for (; exponentLength > 0; buffer[index++] = exponent & 255, exponent /= 256, exponentLength -= 8);\n buffer[--index] |= sign * 128;\n return buffer;\n};\n\nvar unpack = function (buffer, mantissaLength) {\n var bytes = buffer.length;\n var exponentLength = bytes * 8 - mantissaLength - 1;\n var eMax = (1 << exponentLength) - 1;\n var eBias = eMax >> 1;\n var nBits = exponentLength - 7;\n var index = bytes - 1;\n var sign = buffer[index--];\n var exponent = sign & 127;\n var mantissa;\n sign >>= 7;\n for (; nBits > 0; exponent = exponent * 256 + buffer[index], index--, nBits -= 8);\n mantissa = exponent & (1 << -nBits) - 1;\n exponent >>= -nBits;\n nBits += mantissaLength;\n for (; nBits > 0; mantissa = mantissa * 256 + buffer[index], index--, nBits -= 8);\n if (exponent === 0) {\n exponent = 1 - eBias;\n } else if (exponent === eMax) {\n return mantissa ? NaN : sign ? -Infinity : Infinity;\n } else {\n mantissa = mantissa + pow(2, mantissaLength);\n exponent = exponent - eBias;\n } return (sign ? -1 : 1) * mantissa * pow(2, exponent - mantissaLength);\n};\n\nmodule.exports = {\n pack: pack,\n unpack: unpack\n};\n","var fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar split = ''.split;\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split.call(it, '') : Object(it);\n} : Object;\n","var isObject = require('../internals/is-object');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\n\n// makes subclassing work correct for wrapped built-ins\nmodule.exports = function ($this, dummy, Wrapper) {\n var NewTarget, NewTargetPrototype;\n if (\n // it can work only with native `setPrototypeOf`\n setPrototypeOf &&\n // we haven't completely correct pre-ES6 way for getting `new.target`, so use this\n typeof (NewTarget = dummy.constructor) == 'function' &&\n NewTarget !== Wrapper &&\n isObject(NewTargetPrototype = NewTarget.prototype) &&\n NewTargetPrototype !== Wrapper.prototype\n ) setPrototypeOf($this, NewTargetPrototype);\n return $this;\n};\n","var store = require('../internals/shared-store');\n\nvar functionToString = Function.toString;\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (typeof store.inspectSource != 'function') {\n store.inspectSource = function (it) {\n return functionToString.call(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","var $ = require('../internals/export');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar isObject = require('../internals/is-object');\nvar has = require('../internals/has');\nvar defineProperty = require('../internals/object-define-property').f;\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertyNamesExternalModule = require('../internals/object-get-own-property-names-external');\nvar uid = require('../internals/uid');\nvar FREEZING = require('../internals/freezing');\n\nvar REQUIRED = false;\nvar METADATA = uid('meta');\nvar id = 0;\n\n// eslint-disable-next-line es/no-object-isextensible -- safe\nvar isExtensible = Object.isExtensible || function () {\n return true;\n};\n\nvar setMetadata = function (it) {\n defineProperty(it, METADATA, { value: {\n objectID: 'O' + id++, // object ID\n weakData: {} // weak collections IDs\n } });\n};\n\nvar fastKey = function (it, create) {\n // return a primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!has(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMetadata(it);\n // return object ID\n } return it[METADATA].objectID;\n};\n\nvar getWeakData = function (it, create) {\n if (!has(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMetadata(it);\n // return the store of weak collections IDs\n } return it[METADATA].weakData;\n};\n\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZING && REQUIRED && isExtensible(it) && !has(it, METADATA)) setMetadata(it);\n return it;\n};\n\nvar enable = function () {\n meta.enable = function () { /* empty */ };\n REQUIRED = true;\n var getOwnPropertyNames = getOwnPropertyNamesModule.f;\n var splice = [].splice;\n var test = {};\n test[METADATA] = 1;\n\n // prevent exposing of metadata key\n if (getOwnPropertyNames(test).length) {\n getOwnPropertyNamesModule.f = function (it) {\n var result = getOwnPropertyNames(it);\n for (var i = 0, length = result.length; i < length; i++) {\n if (result[i] === METADATA) {\n splice.call(result, i, 1);\n break;\n }\n } return result;\n };\n\n $({ target: 'Object', stat: true, forced: true }, {\n getOwnPropertyNames: getOwnPropertyNamesExternalModule.f\n });\n }\n};\n\nvar meta = module.exports = {\n enable: enable,\n fastKey: fastKey,\n getWeakData: getWeakData,\n onFreeze: onFreeze\n};\n\nhiddenKeys[METADATA] = true;\n","var NATIVE_WEAK_MAP = require('../internals/native-weak-map');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar objectHas = require('../internals/has');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n var wmget = store.get;\n var wmhas = store.has;\n var wmset = store.set;\n set = function (it, metadata) {\n if (wmhas.call(store, it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n wmset.call(store, it, metadata);\n return metadata;\n };\n get = function (it) {\n return wmget.call(store, it) || {};\n };\n has = function (it) {\n return wmhas.call(store, it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (objectHas(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return objectHas(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return objectHas(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar ArrayPrototype = Array.prototype;\n\n// check on default Array iterator\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);\n};\n","var classof = require('../internals/classof-raw');\n\n// `IsArray` abstract operation\n// https://tc39.es/ecma262/#sec-isarray\n// eslint-disable-next-line es/no-array-isarray -- safe\nmodule.exports = Array.isArray || function isArray(arg) {\n return classof(arg) == 'Array';\n};\n","var fails = require('../internals/fails');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : typeof detection == 'function' ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","var isObject = require('../internals/is-object');\n\nvar floor = Math.floor;\n\n// `Number.isInteger` method implementation\n// https://tc39.es/ecma262/#sec-number.isinteger\nmodule.exports = function isInteger(it) {\n return !isObject(it) && isFinite(it) && floor(it) === it;\n};\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","module.exports = false;\n","var isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\n// `IsRegExp` abstract operation\n// https://tc39.es/ecma262/#sec-isregexp\nmodule.exports = function (it) {\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');\n};\n","var getBuiltIn = require('../internals/get-built-in');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return typeof $Symbol == 'function' && Object(it) instanceof $Symbol;\n};\n","var anObject = require('../internals/an-object');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar toLength = require('../internals/to-length');\nvar bind = require('../internals/function-bind-context');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nvar iteratorClose = require('../internals/iterator-close');\n\nvar Result = function (stopped, result) {\n this.stopped = stopped;\n this.result = result;\n};\n\nmodule.exports = function (iterable, unboundFunction, options) {\n var that = options && options.that;\n var AS_ENTRIES = !!(options && options.AS_ENTRIES);\n var IS_ITERATOR = !!(options && options.IS_ITERATOR);\n var INTERRUPTED = !!(options && options.INTERRUPTED);\n var fn = bind(unboundFunction, that, 1 + AS_ENTRIES + INTERRUPTED);\n var iterator, iterFn, index, length, result, next, step;\n\n var stop = function (condition) {\n if (iterator) iteratorClose(iterator);\n return new Result(true, condition);\n };\n\n var callFn = function (value) {\n if (AS_ENTRIES) {\n anObject(value);\n return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);\n } return INTERRUPTED ? fn(value, stop) : fn(value);\n };\n\n if (IS_ITERATOR) {\n iterator = iterable;\n } else {\n iterFn = getIteratorMethod(iterable);\n if (typeof iterFn != 'function') throw TypeError('Target is not iterable');\n // optimisation for array iterators\n if (isArrayIteratorMethod(iterFn)) {\n for (index = 0, length = toLength(iterable.length); length > index; index++) {\n result = callFn(iterable[index]);\n if (result && result instanceof Result) return result;\n } return new Result(false);\n }\n iterator = iterFn.call(iterable);\n }\n\n next = iterator.next;\n while (!(step = next.call(iterator)).done) {\n try {\n result = callFn(step.value);\n } catch (error) {\n iteratorClose(iterator);\n throw error;\n }\n if (typeof result == 'object' && result && result instanceof Result) return result;\n } return new Result(false);\n};\n","var anObject = require('../internals/an-object');\n\nmodule.exports = function (iterator) {\n var returnMethod = iterator['return'];\n if (returnMethod !== undefined) {\n return anObject(returnMethod.call(iterator)).value;\n }\n};\n","'use strict';\nvar fails = require('../internals/fails');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar has = require('../internals/has');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar BUGGY_SAFARI_ITERATORS = false;\n\nvar returnThis = function () { return this; };\n\n// `%IteratorPrototype%` object\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-object\nvar IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;\n\n/* eslint-disable es/no-array-prototype-keys -- safe */\nif ([].keys) {\n arrayIterator = [].keys();\n // Safari 8 has buggy iterators w/o `next`\n if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;\n else {\n PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));\n if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;\n }\n}\n\nvar NEW_ITERATOR_PROTOTYPE = IteratorPrototype == undefined || fails(function () {\n var test = {};\n // FF44- legacy iterators case\n return IteratorPrototype[ITERATOR].call(test) !== test;\n});\n\nif (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};\n\n// `%IteratorPrototype%[@@iterator]()` method\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator\nif ((!IS_PURE || NEW_ITERATOR_PROTOTYPE) && !has(IteratorPrototype, ITERATOR)) {\n createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);\n}\n\nmodule.exports = {\n IteratorPrototype: IteratorPrototype,\n BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS\n};\n","module.exports = {};\n","// eslint-disable-next-line es/no-math-expm1 -- safe\nvar $expm1 = Math.expm1;\nvar exp = Math.exp;\n\n// `Math.expm1` method implementation\n// https://tc39.es/ecma262/#sec-math.expm1\nmodule.exports = (!$expm1\n // Old FF bug\n || $expm1(10) > 22025.465794806719 || $expm1(10) < 22025.4657948067165168\n // Tor Browser bug\n || $expm1(-2e-17) != -2e-17\n) ? function expm1(x) {\n return (x = +x) == 0 ? x : x > -1e-6 && x < 1e-6 ? x + x * x / 2 : exp(x) - 1;\n} : $expm1;\n","var sign = require('../internals/math-sign');\n\nvar abs = Math.abs;\nvar pow = Math.pow;\nvar EPSILON = pow(2, -52);\nvar EPSILON32 = pow(2, -23);\nvar MAX32 = pow(2, 127) * (2 - EPSILON32);\nvar MIN32 = pow(2, -126);\n\nvar roundTiesToEven = function (n) {\n return n + 1 / EPSILON - 1 / EPSILON;\n};\n\n// `Math.fround` method implementation\n// https://tc39.es/ecma262/#sec-math.fround\n// eslint-disable-next-line es/no-math-fround -- safe\nmodule.exports = Math.fround || function fround(x) {\n var $abs = abs(x);\n var $sign = sign(x);\n var a, result;\n if ($abs < MIN32) return $sign * roundTiesToEven($abs / MIN32 / EPSILON32) * MIN32 * EPSILON32;\n a = (1 + EPSILON32 / EPSILON) * $abs;\n result = a - (a - $abs);\n // eslint-disable-next-line no-self-compare -- NaN check\n if (result > MAX32 || result != result) return $sign * Infinity;\n return $sign * result;\n};\n","var log = Math.log;\n\n// `Math.log1p` method implementation\n// https://tc39.es/ecma262/#sec-math.log1p\n// eslint-disable-next-line es/no-math-log1p -- safe\nmodule.exports = Math.log1p || function log1p(x) {\n return (x = +x) > -1e-8 && x < 1e-8 ? x - x * x / 2 : log(1 + x);\n};\n","// `Math.sign` method implementation\n// https://tc39.es/ecma262/#sec-math.sign\n// eslint-disable-next-line es/no-math-sign -- safe\nmodule.exports = Math.sign || function sign(x) {\n // eslint-disable-next-line no-self-compare -- NaN check\n return (x = +x) == 0 || x != x ? x : x < 0 ? -1 : 1;\n};\n","var global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar macrotask = require('../internals/task').set;\nvar IS_IOS = require('../internals/engine-is-ios');\nvar IS_WEBOS_WEBKIT = require('../internals/engine-is-webos-webkit');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar MutationObserver = global.MutationObserver || global.WebKitMutationObserver;\nvar document = global.document;\nvar process = global.process;\nvar Promise = global.Promise;\n// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`\nvar queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');\nvar queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;\n\nvar flush, head, last, notify, toggle, node, promise, then;\n\n// modern engines have queueMicrotask method\nif (!queueMicrotask) {\n flush = function () {\n var parent, fn;\n if (IS_NODE && (parent = process.domain)) parent.exit();\n while (head) {\n fn = head.fn;\n head = head.next;\n try {\n fn();\n } catch (error) {\n if (head) notify();\n else last = undefined;\n throw error;\n }\n } last = undefined;\n if (parent) parent.enter();\n };\n\n // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339\n // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898\n if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) {\n toggle = true;\n node = document.createTextNode('');\n new MutationObserver(flush).observe(node, { characterData: true });\n notify = function () {\n node.data = toggle = !toggle;\n };\n // environments with maybe non-completely correct, but existent Promise\n } else if (Promise && Promise.resolve) {\n // Promise.resolve without an argument throws an error in LG WebOS 2\n promise = Promise.resolve(undefined);\n // workaround of WebKit ~ iOS Safari 10.1 bug\n promise.constructor = Promise;\n then = promise.then;\n notify = function () {\n then.call(promise, flush);\n };\n // Node.js without promises\n } else if (IS_NODE) {\n notify = function () {\n process.nextTick(flush);\n };\n // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessag\n // - onreadystatechange\n // - setTimeout\n } else {\n notify = function () {\n // strange IE + webpack dev server bug - use .call(global)\n macrotask.call(global, flush);\n };\n }\n}\n\nmodule.exports = queueMicrotask || function (fn) {\n var task = { fn: fn, next: undefined };\n if (last) last.next = task;\n if (!head) {\n head = task;\n notify();\n } last = task;\n};\n","var global = require('../internals/global');\n\nmodule.exports = global.Promise;\n","/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol();\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n return !String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","var fails = require('../internals/fails');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\n\nvar ITERATOR = wellKnownSymbol('iterator');\n\nmodule.exports = !fails(function () {\n var url = new URL('b?a=1&b=2&c=3', 'http://a');\n var searchParams = url.searchParams;\n var result = '';\n url.pathname = 'c%20d';\n searchParams.forEach(function (value, key) {\n searchParams['delete']('b');\n result += key + value;\n });\n return (IS_PURE && !url.toJSON)\n || !searchParams.sort\n || url.href !== 'http://a/c%20d?a=1&c=3'\n || searchParams.get('c') !== '3'\n || String(new URLSearchParams('?a=1')) !== 'a=1'\n || !searchParams[ITERATOR]\n // throws in Edge\n || new URL('https://a@b').username !== 'a'\n || new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b'\n // not punycoded in Edge\n || new URL('http://тест').host !== 'xn--e1aybc'\n // not escaped in Chrome 62-\n || new URL('http://a#б').hash !== '#%D0%B1'\n // fails in Chrome 66-\n || result !== 'a1c3'\n // throws in Safari\n || new URL('http://x', undefined).host !== 'x';\n});\n","var global = require('../internals/global');\nvar inspectSource = require('../internals/inspect-source');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));\n","'use strict';\nvar aFunction = require('../internals/a-function');\n\nvar PromiseCapability = function (C) {\n var resolve, reject;\n this.promise = new C(function ($$resolve, $$reject) {\n if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aFunction(resolve);\n this.reject = aFunction(reject);\n};\n\n// `NewPromiseCapability` abstract operation\n// https://tc39.es/ecma262/#sec-newpromisecapability\nmodule.exports.f = function (C) {\n return new PromiseCapability(C);\n};\n","var isRegExp = require('../internals/is-regexp');\n\nmodule.exports = function (it) {\n if (isRegExp(it)) {\n throw TypeError(\"The method doesn't accept regular expressions\");\n } return it;\n};\n","var global = require('../internals/global');\n\nvar globalIsFinite = global.isFinite;\n\n// `Number.isFinite` method\n// https://tc39.es/ecma262/#sec-number.isfinite\n// eslint-disable-next-line es/no-number-isfinite -- safe\nmodule.exports = Number.isFinite || function isFinite(it) {\n return typeof it == 'number' && globalIsFinite(it);\n};\n","var global = require('../internals/global');\nvar toString = require('../internals/to-string');\nvar trim = require('../internals/string-trim').trim;\nvar whitespaces = require('../internals/whitespaces');\n\nvar $parseFloat = global.parseFloat;\nvar FORCED = 1 / $parseFloat(whitespaces + '-0') !== -Infinity;\n\n// `parseFloat` method\n// https://tc39.es/ecma262/#sec-parsefloat-string\nmodule.exports = FORCED ? function parseFloat(string) {\n var trimmedString = trim(toString(string));\n var result = $parseFloat(trimmedString);\n return result === 0 && trimmedString.charAt(0) == '-' ? -0 : result;\n} : $parseFloat;\n","var global = require('../internals/global');\nvar toString = require('../internals/to-string');\nvar trim = require('../internals/string-trim').trim;\nvar whitespaces = require('../internals/whitespaces');\n\nvar $parseInt = global.parseInt;\nvar hex = /^[+-]?0[Xx]/;\nvar FORCED = $parseInt(whitespaces + '08') !== 8 || $parseInt(whitespaces + '0x16') !== 22;\n\n// `parseInt` method\n// https://tc39.es/ecma262/#sec-parseint-string-radix\nmodule.exports = FORCED ? function parseInt(string, radix) {\n var S = trim(toString(string));\n return $parseInt(S, (radix >>> 0) || (hex.test(S) ? 16 : 10));\n} : $parseInt;\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar objectKeys = require('../internals/object-keys');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar toObject = require('../internals/to-object');\nvar IndexedObject = require('../internals/indexed-object');\n\n// eslint-disable-next-line es/no-object-assign -- safe\nvar $assign = Object.assign;\n// eslint-disable-next-line es/no-object-defineproperty -- required for testing\nvar defineProperty = Object.defineProperty;\n\n// `Object.assign` method\n// https://tc39.es/ecma262/#sec-object.assign\nmodule.exports = !$assign || fails(function () {\n // should have correct order of operations (Edge bug)\n if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {\n enumerable: true,\n get: function () {\n defineProperty(this, 'b', {\n value: 3,\n enumerable: false\n });\n }\n }), { b: 2 })).b !== 1) return true;\n // should work with symbols and should have deterministic property order (V8 bug)\n var A = {};\n var B = {};\n // eslint-disable-next-line es/no-symbol -- safe\n var symbol = Symbol();\n var alphabet = 'abcdefghijklmnopqrst';\n A[symbol] = 7;\n alphabet.split('').forEach(function (chr) { B[chr] = chr; });\n return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`\n var T = toObject(target);\n var argumentsLength = arguments.length;\n var index = 1;\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n var propertyIsEnumerable = propertyIsEnumerableModule.f;\n while (argumentsLength > index) {\n var S = IndexedObject(arguments[index++]);\n var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) {\n key = keys[j++];\n if (!DESCRIPTORS || propertyIsEnumerable.call(S, key)) T[key] = S[key];\n }\n } return T;\n} : $assign;\n","/* global ActiveXObject -- old IE, WSH */\nvar anObject = require('../internals/an-object');\nvar defineProperties = require('../internals/object-define-properties');\nvar enumBugKeys = require('../internals/enum-bug-keys');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar html = require('../internals/html');\nvar documentCreateElement = require('../internals/document-create-element');\nvar sharedKey = require('../internals/shared-key');\n\nvar GT = '>';\nvar LT = '<';\nvar PROTOTYPE = 'prototype';\nvar SCRIPT = 'script';\nvar IE_PROTO = sharedKey('IE_PROTO');\n\nvar EmptyConstructor = function () { /* empty */ };\n\nvar scriptTag = function (content) {\n return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;\n};\n\n// Create object with fake `null` prototype: use ActiveX Object with cleared prototype\nvar NullProtoObjectViaActiveX = function (activeXDocument) {\n activeXDocument.write(scriptTag(''));\n activeXDocument.close();\n var temp = activeXDocument.parentWindow.Object;\n activeXDocument = null; // avoid memory leak\n return temp;\n};\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar NullProtoObjectViaIFrame = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = documentCreateElement('iframe');\n var JS = 'java' + SCRIPT + ':';\n var iframeDocument;\n if (iframe.style) {\n iframe.style.display = 'none';\n html.appendChild(iframe);\n // https://github.com/zloirock/core-js/issues/475\n iframe.src = String(JS);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(scriptTag('document.F=Object'));\n iframeDocument.close();\n return iframeDocument.F;\n }\n};\n\n// Check for document.domain and active x support\n// No need to use active x approach when document.domain is not set\n// see https://github.com/es-shims/es5-shim/issues/150\n// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346\n// avoid IE GC bug\nvar activeXDocument;\nvar NullProtoObject = function () {\n try {\n activeXDocument = new ActiveXObject('htmlfile');\n } catch (error) { /* ignore */ }\n NullProtoObject = document.domain && activeXDocument ?\n NullProtoObjectViaActiveX(activeXDocument) : // old IE\n NullProtoObjectViaIFrame() ||\n NullProtoObjectViaActiveX(activeXDocument); // WSH\n var length = enumBugKeys.length;\n while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];\n return NullProtoObject();\n};\n\nhiddenKeys[IE_PROTO] = true;\n\n// `Object.create` method\n// https://tc39.es/ecma262/#sec-object.create\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n EmptyConstructor[PROTOTYPE] = anObject(O);\n result = new EmptyConstructor();\n EmptyConstructor[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = NullProtoObject();\n return Properties === undefined ? result : defineProperties(result, Properties);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar anObject = require('../internals/an-object');\nvar objectKeys = require('../internals/object-keys');\n\n// `Object.defineProperties` method\n// https://tc39.es/ecma262/#sec-object.defineproperties\n// eslint-disable-next-line es/no-object-defineproperties -- safe\nmodule.exports = DESCRIPTORS ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = objectKeys(Properties);\n var length = keys.length;\n var index = 0;\n var key;\n while (length > index) definePropertyModule.f(O, key = keys[index++], Properties[key]);\n return O;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar has = require('../internals/has');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (has(O, P)) return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]);\n};\n","/* eslint-disable es/no-object-getownpropertynames -- safe */\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar $getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\n\nvar toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return $getOwnPropertyNames(it);\n } catch (error) {\n return windowNames.slice();\n }\n};\n\n// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && toString.call(it) == '[object Window]'\n ? getWindowNames(it)\n : $getOwnPropertyNames(toIndexedObject(it));\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nexports.f = Object.getOwnPropertySymbols;\n","var has = require('../internals/has');\nvar toObject = require('../internals/to-object');\nvar sharedKey = require('../internals/shared-key');\nvar CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');\n\nvar IE_PROTO = sharedKey('IE_PROTO');\nvar ObjectPrototype = Object.prototype;\n\n// `Object.getPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.getprototypeof\n// eslint-disable-next-line es/no-object-getprototypeof -- safe\nmodule.exports = CORRECT_PROTOTYPE_GETTER ? Object.getPrototypeOf : function (O) {\n O = toObject(O);\n if (has(O, IE_PROTO)) return O[IE_PROTO];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n } return O instanceof Object ? ObjectPrototype : null;\n};\n","var has = require('../internals/has');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~indexOf(result, key) || result.push(key);\n }\n return result;\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n// eslint-disable-next-line es/no-object-keys -- safe\nmodule.exports = Object.keys || function keys(O) {\n return internalObjectKeys(O, enumBugKeys);\n};\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","'use strict';\nvar IS_PURE = require('../internals/is-pure');\nvar global = require('../internals/global');\nvar fails = require('../internals/fails');\nvar WEBKIT = require('../internals/engine-webkit-version');\n\n// Forced replacement object prototype accessors methods\nmodule.exports = IS_PURE || !fails(function () {\n // This feature detection crashes old WebKit\n // https://github.com/zloirock/core-js/issues/232\n if (WEBKIT && WEBKIT < 535) return;\n var key = Math.random();\n // In FF throws only define methods\n // eslint-disable-next-line no-undef, no-useless-call -- required for testing\n __defineSetter__.call(null, key, function () { /* empty */ });\n delete global[key];\n});\n","/* eslint-disable no-proto -- safe */\nvar anObject = require('../internals/an-object');\nvar aPossiblePrototype = require('../internals/a-possible-prototype');\n\n// `Object.setPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n// eslint-disable-next-line es/no-object-setprototypeof -- safe\nmodule.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n var CORRECT_SETTER = false;\n var test = {};\n var setter;\n try {\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;\n setter.call(test, []);\n CORRECT_SETTER = test instanceof Array;\n } catch (error) { /* empty */ }\n return function setPrototypeOf(O, proto) {\n anObject(O);\n aPossiblePrototype(proto);\n if (CORRECT_SETTER) setter.call(O, proto);\n else O.__proto__ = proto;\n return O;\n };\n}() : undefined);\n","var DESCRIPTORS = require('../internals/descriptors');\nvar objectKeys = require('../internals/object-keys');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar propertyIsEnumerable = require('../internals/object-property-is-enumerable').f;\n\n// `Object.{ entries, values }` methods implementation\nvar createMethod = function (TO_ENTRIES) {\n return function (it) {\n var O = toIndexedObject(it);\n var keys = objectKeys(O);\n var length = keys.length;\n var i = 0;\n var result = [];\n var key;\n while (length > i) {\n key = keys[i++];\n if (!DESCRIPTORS || propertyIsEnumerable.call(O, key)) {\n result.push(TO_ENTRIES ? [key, O[key]] : O[key]);\n }\n }\n return result;\n };\n};\n\nmodule.exports = {\n // `Object.entries` method\n // https://tc39.es/ecma262/#sec-object.entries\n entries: createMethod(true),\n // `Object.values` method\n // https://tc39.es/ecma262/#sec-object.values\n values: createMethod(false)\n};\n","'use strict';\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar classof = require('../internals/classof');\n\n// `Object.prototype.toString` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nmodule.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {\n return '[object ' + classof(this) + ']';\n};\n","var isObject = require('../internals/is-object');\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;\n if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;\n if (pref !== 'string' && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","var getBuiltIn = require('../internals/get-built-in');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;\n};\n","var global = require('../internals/global');\n\nmodule.exports = global;\n","module.exports = function (exec) {\n try {\n return { error: false, value: exec() };\n } catch (error) {\n return { error: true, value: error };\n }\n};\n","var anObject = require('../internals/an-object');\nvar isObject = require('../internals/is-object');\nvar newPromiseCapability = require('../internals/new-promise-capability');\n\nmodule.exports = function (C, x) {\n anObject(C);\n if (isObject(x) && x.constructor === C) return x;\n var promiseCapability = newPromiseCapability.f(C);\n var resolve = promiseCapability.resolve;\n resolve(x);\n return promiseCapability.promise;\n};\n","var redefine = require('../internals/redefine');\n\nmodule.exports = function (target, src, options) {\n for (var key in src) redefine(target, key, src[key], options);\n return target;\n};\n","var global = require('../internals/global');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar has = require('../internals/has');\nvar setGlobal = require('../internals/set-global');\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar getInternalState = InternalStateModule.get;\nvar enforceInternalState = InternalStateModule.enforce;\nvar TEMPLATE = String(String).split('String');\n\n(module.exports = function (O, key, value, options) {\n var unsafe = options ? !!options.unsafe : false;\n var simple = options ? !!options.enumerable : false;\n var noTargetGet = options ? !!options.noTargetGet : false;\n var state;\n if (typeof value == 'function') {\n if (typeof key == 'string' && !has(value, 'name')) {\n createNonEnumerableProperty(value, 'name', key);\n }\n state = enforceInternalState(value);\n if (!state.source) {\n state.source = TEMPLATE.join(typeof key == 'string' ? key : '');\n }\n }\n if (O === global) {\n if (simple) O[key] = value;\n else setGlobal(key, value);\n return;\n } else if (!unsafe) {\n delete O[key];\n } else if (!noTargetGet && O[key]) {\n simple = true;\n }\n if (simple) O[key] = value;\n else createNonEnumerableProperty(O, key, value);\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, 'toString', function toString() {\n return typeof this == 'function' && getInternalState(this).source || inspectSource(this);\n});\n","var classof = require('./classof-raw');\nvar regexpExec = require('./regexp-exec');\n\n// `RegExpExec` abstract operation\n// https://tc39.es/ecma262/#sec-regexpexec\nmodule.exports = function (R, S) {\n var exec = R.exec;\n if (typeof exec === 'function') {\n var result = exec.call(R, S);\n if (typeof result !== 'object') {\n throw TypeError('RegExp exec method returned something other than an Object or null');\n }\n return result;\n }\n\n if (classof(R) !== 'RegExp') {\n throw TypeError('RegExp#exec called on incompatible receiver');\n }\n\n return regexpExec.call(R, S);\n};\n\n","'use strict';\n/* eslint-disable regexp/no-assertion-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */\n/* eslint-disable regexp/no-useless-quantifier -- testing */\nvar toString = require('../internals/to-string');\nvar regexpFlags = require('../internals/regexp-flags');\nvar stickyHelpers = require('../internals/regexp-sticky-helpers');\nvar shared = require('../internals/shared');\nvar create = require('../internals/object-create');\nvar getInternalState = require('../internals/internal-state').get;\nvar UNSUPPORTED_DOT_ALL = require('../internals/regexp-unsupported-dot-all');\nvar UNSUPPORTED_NCG = require('../internals/regexp-unsupported-ncg');\n\nvar nativeExec = RegExp.prototype.exec;\nvar nativeReplace = shared('native-string-replace', String.prototype.replace);\n\nvar patchedExec = nativeExec;\n\nvar UPDATES_LAST_INDEX_WRONG = (function () {\n var re1 = /a/;\n var re2 = /b*/g;\n nativeExec.call(re1, 'a');\n nativeExec.call(re2, 'a');\n return re1.lastIndex !== 0 || re2.lastIndex !== 0;\n})();\n\nvar UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y || stickyHelpers.BROKEN_CARET;\n\n// nonparticipating capturing group, copied from es5-shim's String#split patch.\nvar NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;\n\nvar PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;\n\nif (PATCH) {\n // eslint-disable-next-line max-statements -- TODO\n patchedExec = function exec(string) {\n var re = this;\n var state = getInternalState(re);\n var str = toString(string);\n var raw = state.raw;\n var result, reCopy, lastIndex, match, i, object, group;\n\n if (raw) {\n raw.lastIndex = re.lastIndex;\n result = patchedExec.call(raw, str);\n re.lastIndex = raw.lastIndex;\n return result;\n }\n\n var groups = state.groups;\n var sticky = UNSUPPORTED_Y && re.sticky;\n var flags = regexpFlags.call(re);\n var source = re.source;\n var charsAdded = 0;\n var strCopy = str;\n\n if (sticky) {\n flags = flags.replace('y', '');\n if (flags.indexOf('g') === -1) {\n flags += 'g';\n }\n\n strCopy = str.slice(re.lastIndex);\n // Support anchored sticky behavior.\n if (re.lastIndex > 0 && (!re.multiline || re.multiline && str.charAt(re.lastIndex - 1) !== '\\n')) {\n source = '(?: ' + source + ')';\n strCopy = ' ' + strCopy;\n charsAdded++;\n }\n // ^(? + rx + ) is needed, in combination with some str slicing, to\n // simulate the 'y' flag.\n reCopy = new RegExp('^(?:' + source + ')', flags);\n }\n\n if (NPCG_INCLUDED) {\n reCopy = new RegExp('^' + source + '$(?!\\\\s)', flags);\n }\n if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;\n\n match = nativeExec.call(sticky ? reCopy : re, strCopy);\n\n if (sticky) {\n if (match) {\n match.input = match.input.slice(charsAdded);\n match[0] = match[0].slice(charsAdded);\n match.index = re.lastIndex;\n re.lastIndex += match[0].length;\n } else re.lastIndex = 0;\n } else if (UPDATES_LAST_INDEX_WRONG && match) {\n re.lastIndex = re.global ? match.index + match[0].length : lastIndex;\n }\n if (NPCG_INCLUDED && match && match.length > 1) {\n // Fix browsers whose `exec` methods don't consistently return `undefined`\n // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/\n nativeReplace.call(match[0], reCopy, function () {\n for (i = 1; i < arguments.length - 2; i++) {\n if (arguments[i] === undefined) match[i] = undefined;\n }\n });\n }\n\n if (match && groups) {\n match.groups = object = create(null);\n for (i = 0; i < groups.length; i++) {\n group = groups[i];\n object[group[0]] = match[group[1]];\n }\n }\n\n return match;\n };\n}\n\nmodule.exports = patchedExec;\n","'use strict';\nvar anObject = require('../internals/an-object');\n\n// `RegExp.prototype.flags` getter implementation\n// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags\nmodule.exports = function () {\n var that = anObject(this);\n var result = '';\n if (that.global) result += 'g';\n if (that.ignoreCase) result += 'i';\n if (that.multiline) result += 'm';\n if (that.dotAll) result += 's';\n if (that.unicode) result += 'u';\n if (that.sticky) result += 'y';\n return result;\n};\n","var fails = require('../internals/fails');\n\n// babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,\nvar RE = function (s, f) {\n return RegExp(s, f);\n};\n\nexports.UNSUPPORTED_Y = fails(function () {\n var re = RE('a', 'y');\n re.lastIndex = 2;\n return re.exec('abcd') != null;\n});\n\nexports.BROKEN_CARET = fails(function () {\n // https://bugzilla.mozilla.org/show_bug.cgi?id=773687\n var re = RE('^r', 'gy');\n re.lastIndex = 2;\n return re.exec('str') != null;\n});\n","var fails = require('./fails');\n\nmodule.exports = fails(function () {\n // babel-minify transpiles RegExp('.', 's') -> /./s and it causes SyntaxError\n var re = RegExp('.', (typeof '').charAt(0));\n return !(re.dotAll && re.exec('\\n') && re.flags === 's');\n});\n","var fails = require('./fails');\n\nmodule.exports = fails(function () {\n // babel-minify transpiles RegExp('.', 'g') -> /./g and it causes SyntaxError\n var re = RegExp('(?b)', (typeof '').charAt(5));\n return re.exec('b').groups.a !== 'b' ||\n 'b'.replace(re, '$c') !== 'bc';\n});\n","// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","// `SameValue` abstract operation\n// https://tc39.es/ecma262/#sec-samevalue\n// eslint-disable-next-line es/no-object-is -- safe\nmodule.exports = Object.is || function is(x, y) {\n // eslint-disable-next-line no-self-compare -- NaN check\n return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;\n};\n","var global = require('../internals/global');\n\nmodule.exports = function (key, value) {\n try {\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar definePropertyModule = require('../internals/object-define-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (CONSTRUCTOR_NAME) {\n var Constructor = getBuiltIn(CONSTRUCTOR_NAME);\n var defineProperty = definePropertyModule.f;\n\n if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {\n defineProperty(Constructor, SPECIES, {\n configurable: true,\n get: function () { return this; }\n });\n }\n};\n","var defineProperty = require('../internals/object-define-property').f;\nvar has = require('../internals/has');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nmodule.exports = function (it, TAG, STATIC) {\n if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {\n defineProperty(it, TO_STRING_TAG, { configurable: true, value: TAG });\n }\n};\n","var shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","var global = require('../internals/global');\nvar setGlobal = require('../internals/set-global');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || setGlobal(SHARED, {});\n\nmodule.exports = store;\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.16.0',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2021 Denis Pushkarev (zloirock.ru)'\n});\n","var anObject = require('../internals/an-object');\nvar aFunction = require('../internals/a-function');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\n\n// `SpeciesConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-speciesconstructor\nmodule.exports = function (O, defaultConstructor) {\n var C = anObject(O).constructor;\n var S;\n return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? defaultConstructor : aFunction(S);\n};\n","var fails = require('../internals/fails');\n\n// check the existence of a method, lowercase\n// of a tag and escaping quotes in arguments\nmodule.exports = function (METHOD_NAME) {\n return fails(function () {\n var test = ''[METHOD_NAME]('\"');\n return test !== test.toLowerCase() || test.split('\"').length > 3;\n });\n};\n","var toInteger = require('../internals/to-integer');\nvar toString = require('../internals/to-string');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\n// `String.prototype.codePointAt` methods implementation\nvar createMethod = function (CONVERT_TO_STRING) {\n return function ($this, pos) {\n var S = toString(requireObjectCoercible($this));\n var position = toInteger(pos);\n var size = S.length;\n var first, second;\n if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;\n first = S.charCodeAt(position);\n return first < 0xD800 || first > 0xDBFF || position + 1 === size\n || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF\n ? CONVERT_TO_STRING ? S.charAt(position) : first\n : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;\n };\n};\n\nmodule.exports = {\n // `String.prototype.codePointAt` method\n // https://tc39.es/ecma262/#sec-string.prototype.codepointat\n codeAt: createMethod(false),\n // `String.prototype.at` method\n // https://github.com/mathiasbynens/String.prototype.at\n charAt: createMethod(true)\n};\n","// https://github.com/zloirock/core-js/issues/280\nvar userAgent = require('../internals/engine-user-agent');\n\n// eslint-disable-next-line unicorn/no-unsafe-regex -- safe\nmodule.exports = /Version\\/10(?:\\.\\d+){1,2}(?: [\\w./]+)?(?: Mobile\\/\\w+)? Safari\\//.test(userAgent);\n","// https://github.com/tc39/proposal-string-pad-start-end\nvar toLength = require('../internals/to-length');\nvar toString = require('../internals/to-string');\nvar repeat = require('../internals/string-repeat');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar ceil = Math.ceil;\n\n// `String.prototype.{ padStart, padEnd }` methods implementation\nvar createMethod = function (IS_END) {\n return function ($this, maxLength, fillString) {\n var S = toString(requireObjectCoercible($this));\n var stringLength = S.length;\n var fillStr = fillString === undefined ? ' ' : toString(fillString);\n var intMaxLength = toLength(maxLength);\n var fillLen, stringFiller;\n if (intMaxLength <= stringLength || fillStr == '') return S;\n fillLen = intMaxLength - stringLength;\n stringFiller = repeat.call(fillStr, ceil(fillLen / fillStr.length));\n if (stringFiller.length > fillLen) stringFiller = stringFiller.slice(0, fillLen);\n return IS_END ? S + stringFiller : stringFiller + S;\n };\n};\n\nmodule.exports = {\n // `String.prototype.padStart` method\n // https://tc39.es/ecma262/#sec-string.prototype.padstart\n start: createMethod(false),\n // `String.prototype.padEnd` method\n // https://tc39.es/ecma262/#sec-string.prototype.padend\n end: createMethod(true)\n};\n","'use strict';\n// based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js\nvar maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1\nvar base = 36;\nvar tMin = 1;\nvar tMax = 26;\nvar skew = 38;\nvar damp = 700;\nvar initialBias = 72;\nvar initialN = 128; // 0x80\nvar delimiter = '-'; // '\\x2D'\nvar regexNonASCII = /[^\\0-\\u007E]/; // non-ASCII chars\nvar regexSeparators = /[.\\u3002\\uFF0E\\uFF61]/g; // RFC 3490 separators\nvar OVERFLOW_ERROR = 'Overflow: input needs wider integers to process';\nvar baseMinusTMin = base - tMin;\nvar floor = Math.floor;\nvar stringFromCharCode = String.fromCharCode;\n\n/**\n * Creates an array containing the numeric code points of each Unicode\n * character in the string. While JavaScript uses UCS-2 internally,\n * this function will convert a pair of surrogate halves (each of which\n * UCS-2 exposes as separate characters) into a single code point,\n * matching UTF-16.\n */\nvar ucs2decode = function (string) {\n var output = [];\n var counter = 0;\n var length = string.length;\n while (counter < length) {\n var value = string.charCodeAt(counter++);\n if (value >= 0xD800 && value <= 0xDBFF && counter < length) {\n // It's a high surrogate, and there is a next character.\n var extra = string.charCodeAt(counter++);\n if ((extra & 0xFC00) == 0xDC00) { // Low surrogate.\n output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);\n } else {\n // It's an unmatched surrogate; only append this code unit, in case the\n // next code unit is the high surrogate of a surrogate pair.\n output.push(value);\n counter--;\n }\n } else {\n output.push(value);\n }\n }\n return output;\n};\n\n/**\n * Converts a digit/integer into a basic code point.\n */\nvar digitToBasic = function (digit) {\n // 0..25 map to ASCII a..z or A..Z\n // 26..35 map to ASCII 0..9\n return digit + 22 + 75 * (digit < 26);\n};\n\n/**\n * Bias adaptation function as per section 3.4 of RFC 3492.\n * https://tools.ietf.org/html/rfc3492#section-3.4\n */\nvar adapt = function (delta, numPoints, firstTime) {\n var k = 0;\n delta = firstTime ? floor(delta / damp) : delta >> 1;\n delta += floor(delta / numPoints);\n for (; delta > baseMinusTMin * tMax >> 1; k += base) {\n delta = floor(delta / baseMinusTMin);\n }\n return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));\n};\n\n/**\n * Converts a string of Unicode symbols (e.g. a domain name label) to a\n * Punycode string of ASCII-only symbols.\n */\n// eslint-disable-next-line max-statements -- TODO\nvar encode = function (input) {\n var output = [];\n\n // Convert the input in UCS-2 to an array of Unicode code points.\n input = ucs2decode(input);\n\n // Cache the length.\n var inputLength = input.length;\n\n // Initialize the state.\n var n = initialN;\n var delta = 0;\n var bias = initialBias;\n var i, currentValue;\n\n // Handle the basic code points.\n for (i = 0; i < input.length; i++) {\n currentValue = input[i];\n if (currentValue < 0x80) {\n output.push(stringFromCharCode(currentValue));\n }\n }\n\n var basicLength = output.length; // number of basic code points.\n var handledCPCount = basicLength; // number of code points that have been handled;\n\n // Finish the basic string with a delimiter unless it's empty.\n if (basicLength) {\n output.push(delimiter);\n }\n\n // Main encoding loop:\n while (handledCPCount < inputLength) {\n // All non-basic code points < n have been handled already. Find the next larger one:\n var m = maxInt;\n for (i = 0; i < input.length; i++) {\n currentValue = input[i];\n if (currentValue >= n && currentValue < m) {\n m = currentValue;\n }\n }\n\n // Increase `delta` enough to advance the decoder's state to , but guard against overflow.\n var handledCPCountPlusOne = handledCPCount + 1;\n if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {\n throw RangeError(OVERFLOW_ERROR);\n }\n\n delta += (m - n) * handledCPCountPlusOne;\n n = m;\n\n for (i = 0; i < input.length; i++) {\n currentValue = input[i];\n if (currentValue < n && ++delta > maxInt) {\n throw RangeError(OVERFLOW_ERROR);\n }\n if (currentValue == n) {\n // Represent delta as a generalized variable-length integer.\n var q = delta;\n for (var k = base; /* no condition */; k += base) {\n var t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\n if (q < t) break;\n var qMinusT = q - t;\n var baseMinusT = base - t;\n output.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT)));\n q = floor(qMinusT / baseMinusT);\n }\n\n output.push(stringFromCharCode(digitToBasic(q)));\n bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);\n delta = 0;\n ++handledCPCount;\n }\n }\n\n ++delta;\n ++n;\n }\n return output.join('');\n};\n\nmodule.exports = function (input) {\n var encoded = [];\n var labels = input.toLowerCase().replace(regexSeparators, '\\u002E').split('.');\n var i, label;\n for (i = 0; i < labels.length; i++) {\n label = labels[i];\n encoded.push(regexNonASCII.test(label) ? 'xn--' + encode(label) : label);\n }\n return encoded.join('.');\n};\n","'use strict';\nvar toInteger = require('../internals/to-integer');\nvar toString = require('../internals/to-string');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\n// `String.prototype.repeat` method implementation\n// https://tc39.es/ecma262/#sec-string.prototype.repeat\nmodule.exports = function repeat(count) {\n var str = toString(requireObjectCoercible(this));\n var result = '';\n var n = toInteger(count);\n if (n < 0 || n == Infinity) throw RangeError('Wrong number of repetitions');\n for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) result += str;\n return result;\n};\n","var fails = require('../internals/fails');\nvar whitespaces = require('../internals/whitespaces');\n\nvar non = '\\u200B\\u0085\\u180E';\n\n// check that a method works with the correct list\n// of whitespaces and has a correct name\nmodule.exports = function (METHOD_NAME) {\n return fails(function () {\n return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() != non || whitespaces[METHOD_NAME].name !== METHOD_NAME;\n });\n};\n","var requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\nvar whitespaces = require('../internals/whitespaces');\n\nvar whitespace = '[' + whitespaces + ']';\nvar ltrim = RegExp('^' + whitespace + whitespace + '*');\nvar rtrim = RegExp(whitespace + whitespace + '*$');\n\n// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation\nvar createMethod = function (TYPE) {\n return function ($this) {\n var string = toString(requireObjectCoercible($this));\n if (TYPE & 1) string = string.replace(ltrim, '');\n if (TYPE & 2) string = string.replace(rtrim, '');\n return string;\n };\n};\n\nmodule.exports = {\n // `String.prototype.{ trimLeft, trimStart }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimstart\n start: createMethod(1),\n // `String.prototype.{ trimRight, trimEnd }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimend\n end: createMethod(2),\n // `String.prototype.trim` method\n // https://tc39.es/ecma262/#sec-string.prototype.trim\n trim: createMethod(3)\n};\n","var global = require('../internals/global');\nvar fails = require('../internals/fails');\nvar bind = require('../internals/function-bind-context');\nvar html = require('../internals/html');\nvar createElement = require('../internals/document-create-element');\nvar IS_IOS = require('../internals/engine-is-ios');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar set = global.setImmediate;\nvar clear = global.clearImmediate;\nvar process = global.process;\nvar MessageChannel = global.MessageChannel;\nvar Dispatch = global.Dispatch;\nvar counter = 0;\nvar queue = {};\nvar ONREADYSTATECHANGE = 'onreadystatechange';\nvar location, defer, channel, port;\n\ntry {\n // Deno throws a ReferenceError on `location` access without `--location` flag\n location = global.location;\n} catch (error) { /* empty */ }\n\nvar run = function (id) {\n // eslint-disable-next-line no-prototype-builtins -- safe\n if (queue.hasOwnProperty(id)) {\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\n\nvar runner = function (id) {\n return function () {\n run(id);\n };\n};\n\nvar listener = function (event) {\n run(event.data);\n};\n\nvar post = function (id) {\n // old engines have not location.origin\n global.postMessage(String(id), location.protocol + '//' + location.host);\n};\n\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif (!set || !clear) {\n set = function setImmediate(fn) {\n var args = [];\n var argumentsLength = arguments.length;\n var i = 1;\n while (argumentsLength > i) args.push(arguments[i++]);\n queue[++counter] = function () {\n // eslint-disable-next-line no-new-func -- spec requirement\n (typeof fn == 'function' ? fn : Function(fn)).apply(undefined, args);\n };\n defer(counter);\n return counter;\n };\n clear = function clearImmediate(id) {\n delete queue[id];\n };\n // Node.js 0.8-\n if (IS_NODE) {\n defer = function (id) {\n process.nextTick(runner(id));\n };\n // Sphere (JS game engine) Dispatch API\n } else if (Dispatch && Dispatch.now) {\n defer = function (id) {\n Dispatch.now(runner(id));\n };\n // Browsers with MessageChannel, includes WebWorkers\n // except iOS - https://github.com/zloirock/core-js/issues/624\n } else if (MessageChannel && !IS_IOS) {\n channel = new MessageChannel();\n port = channel.port2;\n channel.port1.onmessage = listener;\n defer = bind(port.postMessage, port, 1);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if (\n global.addEventListener &&\n typeof postMessage == 'function' &&\n !global.importScripts &&\n location && location.protocol !== 'file:' &&\n !fails(post)\n ) {\n defer = post;\n global.addEventListener('message', listener, false);\n // IE8-\n } else if (ONREADYSTATECHANGE in createElement('script')) {\n defer = function (id) {\n html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {\n html.removeChild(this);\n run(id);\n };\n };\n // Rest old browsers\n } else {\n defer = function (id) {\n setTimeout(runner(id), 0);\n };\n }\n}\n\nmodule.exports = {\n set: set,\n clear: clear\n};\n","var classof = require('../internals/classof-raw');\n\n// `thisNumberValue` abstract operation\n// https://tc39.es/ecma262/#sec-thisnumbervalue\nmodule.exports = function (value) {\n if (typeof value != 'number' && classof(value) != 'Number') {\n throw TypeError('Incorrect invocation');\n }\n return +value;\n};\n","var toInteger = require('../internals/to-integer');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toInteger(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","var toInteger = require('../internals/to-integer');\nvar toLength = require('../internals/to-length');\n\n// `ToIndex` abstract operation\n// https://tc39.es/ecma262/#sec-toindex\nmodule.exports = function (it) {\n if (it === undefined) return 0;\n var number = toInteger(it);\n var length = toLength(number);\n if (number !== length) throw RangeError('Wrong length or index');\n return length;\n};\n","// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","var ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `ToInteger` abstract operation\n// https://tc39.es/ecma262/#sec-tointeger\nmodule.exports = function (argument) {\n return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);\n};\n","var toInteger = require('../internals/to-integer');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","var requireObjectCoercible = require('../internals/require-object-coercible');\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return Object(requireObjectCoercible(argument));\n};\n","var toPositiveInteger = require('../internals/to-positive-integer');\n\nmodule.exports = function (it, BYTES) {\n var offset = toPositiveInteger(it);\n if (offset % BYTES) throw RangeError('Wrong offset');\n return offset;\n};\n","var toInteger = require('../internals/to-integer');\n\nmodule.exports = function (it) {\n var result = toInteger(it);\n if (result < 0) throw RangeError(\"The argument can't be less than 0\");\n return result;\n};\n","var isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = input[TO_PRIMITIVE];\n var result;\n if (exoticToPrim !== undefined) {\n if (pref === undefined) pref = 'default';\n result = exoticToPrim.call(input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","var toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : String(key);\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","var isSymbol = require('../internals/is-symbol');\n\nmodule.exports = function (argument) {\n if (isSymbol(argument)) throw TypeError('Cannot convert a Symbol value to a string');\n return String(argument);\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = require('../internals/typed-array-constructors-require-wrappers');\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar ArrayBufferModule = require('../internals/array-buffer');\nvar anInstance = require('../internals/an-instance');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar isInteger = require('../internals/is-integer');\nvar toLength = require('../internals/to-length');\nvar toIndex = require('../internals/to-index');\nvar toOffset = require('../internals/to-offset');\nvar toPropertyKey = require('../internals/to-property-key');\nvar has = require('../internals/has');\nvar classof = require('../internals/classof');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar create = require('../internals/object-create');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar typedArrayFrom = require('../internals/typed-array-from');\nvar forEach = require('../internals/array-iteration').forEach;\nvar setSpecies = require('../internals/set-species');\nvar definePropertyModule = require('../internals/object-define-property');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar InternalStateModule = require('../internals/internal-state');\nvar inheritIfRequired = require('../internals/inherit-if-required');\n\nvar getInternalState = InternalStateModule.get;\nvar setInternalState = InternalStateModule.set;\nvar nativeDefineProperty = definePropertyModule.f;\nvar nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\nvar round = Math.round;\nvar RangeError = global.RangeError;\nvar ArrayBuffer = ArrayBufferModule.ArrayBuffer;\nvar DataView = ArrayBufferModule.DataView;\nvar NATIVE_ARRAY_BUFFER_VIEWS = ArrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS;\nvar TYPED_ARRAY_CONSTRUCTOR = ArrayBufferViewCore.TYPED_ARRAY_CONSTRUCTOR;\nvar TYPED_ARRAY_TAG = ArrayBufferViewCore.TYPED_ARRAY_TAG;\nvar TypedArray = ArrayBufferViewCore.TypedArray;\nvar TypedArrayPrototype = ArrayBufferViewCore.TypedArrayPrototype;\nvar aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;\nvar isTypedArray = ArrayBufferViewCore.isTypedArray;\nvar BYTES_PER_ELEMENT = 'BYTES_PER_ELEMENT';\nvar WRONG_LENGTH = 'Wrong length';\n\nvar fromList = function (C, list) {\n var index = 0;\n var length = list.length;\n var result = new (aTypedArrayConstructor(C))(length);\n while (length > index) result[index] = list[index++];\n return result;\n};\n\nvar addGetter = function (it, key) {\n nativeDefineProperty(it, key, { get: function () {\n return getInternalState(this)[key];\n } });\n};\n\nvar isArrayBuffer = function (it) {\n var klass;\n return it instanceof ArrayBuffer || (klass = classof(it)) == 'ArrayBuffer' || klass == 'SharedArrayBuffer';\n};\n\nvar isTypedArrayIndex = function (target, key) {\n return isTypedArray(target)\n && !isSymbol(key)\n && key in target\n && isInteger(+key)\n && key >= 0;\n};\n\nvar wrappedGetOwnPropertyDescriptor = function getOwnPropertyDescriptor(target, key) {\n key = toPropertyKey(key);\n return isTypedArrayIndex(target, key)\n ? createPropertyDescriptor(2, target[key])\n : nativeGetOwnPropertyDescriptor(target, key);\n};\n\nvar wrappedDefineProperty = function defineProperty(target, key, descriptor) {\n key = toPropertyKey(key);\n if (isTypedArrayIndex(target, key)\n && isObject(descriptor)\n && has(descriptor, 'value')\n && !has(descriptor, 'get')\n && !has(descriptor, 'set')\n // TODO: add validation descriptor w/o calling accessors\n && !descriptor.configurable\n && (!has(descriptor, 'writable') || descriptor.writable)\n && (!has(descriptor, 'enumerable') || descriptor.enumerable)\n ) {\n target[key] = descriptor.value;\n return target;\n } return nativeDefineProperty(target, key, descriptor);\n};\n\nif (DESCRIPTORS) {\n if (!NATIVE_ARRAY_BUFFER_VIEWS) {\n getOwnPropertyDescriptorModule.f = wrappedGetOwnPropertyDescriptor;\n definePropertyModule.f = wrappedDefineProperty;\n addGetter(TypedArrayPrototype, 'buffer');\n addGetter(TypedArrayPrototype, 'byteOffset');\n addGetter(TypedArrayPrototype, 'byteLength');\n addGetter(TypedArrayPrototype, 'length');\n }\n\n $({ target: 'Object', stat: true, forced: !NATIVE_ARRAY_BUFFER_VIEWS }, {\n getOwnPropertyDescriptor: wrappedGetOwnPropertyDescriptor,\n defineProperty: wrappedDefineProperty\n });\n\n module.exports = function (TYPE, wrapper, CLAMPED) {\n var BYTES = TYPE.match(/\\d+$/)[0] / 8;\n var CONSTRUCTOR_NAME = TYPE + (CLAMPED ? 'Clamped' : '') + 'Array';\n var GETTER = 'get' + TYPE;\n var SETTER = 'set' + TYPE;\n var NativeTypedArrayConstructor = global[CONSTRUCTOR_NAME];\n var TypedArrayConstructor = NativeTypedArrayConstructor;\n var TypedArrayConstructorPrototype = TypedArrayConstructor && TypedArrayConstructor.prototype;\n var exported = {};\n\n var getter = function (that, index) {\n var data = getInternalState(that);\n return data.view[GETTER](index * BYTES + data.byteOffset, true);\n };\n\n var setter = function (that, index, value) {\n var data = getInternalState(that);\n if (CLAMPED) value = (value = round(value)) < 0 ? 0 : value > 0xFF ? 0xFF : value & 0xFF;\n data.view[SETTER](index * BYTES + data.byteOffset, value, true);\n };\n\n var addElement = function (that, index) {\n nativeDefineProperty(that, index, {\n get: function () {\n return getter(this, index);\n },\n set: function (value) {\n return setter(this, index, value);\n },\n enumerable: true\n });\n };\n\n if (!NATIVE_ARRAY_BUFFER_VIEWS) {\n TypedArrayConstructor = wrapper(function (that, data, offset, $length) {\n anInstance(that, TypedArrayConstructor, CONSTRUCTOR_NAME);\n var index = 0;\n var byteOffset = 0;\n var buffer, byteLength, length;\n if (!isObject(data)) {\n length = toIndex(data);\n byteLength = length * BYTES;\n buffer = new ArrayBuffer(byteLength);\n } else if (isArrayBuffer(data)) {\n buffer = data;\n byteOffset = toOffset(offset, BYTES);\n var $len = data.byteLength;\n if ($length === undefined) {\n if ($len % BYTES) throw RangeError(WRONG_LENGTH);\n byteLength = $len - byteOffset;\n if (byteLength < 0) throw RangeError(WRONG_LENGTH);\n } else {\n byteLength = toLength($length) * BYTES;\n if (byteLength + byteOffset > $len) throw RangeError(WRONG_LENGTH);\n }\n length = byteLength / BYTES;\n } else if (isTypedArray(data)) {\n return fromList(TypedArrayConstructor, data);\n } else {\n return typedArrayFrom.call(TypedArrayConstructor, data);\n }\n setInternalState(that, {\n buffer: buffer,\n byteOffset: byteOffset,\n byteLength: byteLength,\n length: length,\n view: new DataView(buffer)\n });\n while (index < length) addElement(that, index++);\n });\n\n if (setPrototypeOf) setPrototypeOf(TypedArrayConstructor, TypedArray);\n TypedArrayConstructorPrototype = TypedArrayConstructor.prototype = create(TypedArrayPrototype);\n } else if (TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS) {\n TypedArrayConstructor = wrapper(function (dummy, data, typedArrayOffset, $length) {\n anInstance(dummy, TypedArrayConstructor, CONSTRUCTOR_NAME);\n return inheritIfRequired(function () {\n if (!isObject(data)) return new NativeTypedArrayConstructor(toIndex(data));\n if (isArrayBuffer(data)) return $length !== undefined\n ? new NativeTypedArrayConstructor(data, toOffset(typedArrayOffset, BYTES), $length)\n : typedArrayOffset !== undefined\n ? new NativeTypedArrayConstructor(data, toOffset(typedArrayOffset, BYTES))\n : new NativeTypedArrayConstructor(data);\n if (isTypedArray(data)) return fromList(TypedArrayConstructor, data);\n return typedArrayFrom.call(TypedArrayConstructor, data);\n }(), dummy, TypedArrayConstructor);\n });\n\n if (setPrototypeOf) setPrototypeOf(TypedArrayConstructor, TypedArray);\n forEach(getOwnPropertyNames(NativeTypedArrayConstructor), function (key) {\n if (!(key in TypedArrayConstructor)) {\n createNonEnumerableProperty(TypedArrayConstructor, key, NativeTypedArrayConstructor[key]);\n }\n });\n TypedArrayConstructor.prototype = TypedArrayConstructorPrototype;\n }\n\n if (TypedArrayConstructorPrototype.constructor !== TypedArrayConstructor) {\n createNonEnumerableProperty(TypedArrayConstructorPrototype, 'constructor', TypedArrayConstructor);\n }\n\n createNonEnumerableProperty(TypedArrayConstructorPrototype, TYPED_ARRAY_CONSTRUCTOR, TypedArrayConstructor);\n\n if (TYPED_ARRAY_TAG) {\n createNonEnumerableProperty(TypedArrayConstructorPrototype, TYPED_ARRAY_TAG, CONSTRUCTOR_NAME);\n }\n\n exported[CONSTRUCTOR_NAME] = TypedArrayConstructor;\n\n $({\n global: true, forced: TypedArrayConstructor != NativeTypedArrayConstructor, sham: !NATIVE_ARRAY_BUFFER_VIEWS\n }, exported);\n\n if (!(BYTES_PER_ELEMENT in TypedArrayConstructor)) {\n createNonEnumerableProperty(TypedArrayConstructor, BYTES_PER_ELEMENT, BYTES);\n }\n\n if (!(BYTES_PER_ELEMENT in TypedArrayConstructorPrototype)) {\n createNonEnumerableProperty(TypedArrayConstructorPrototype, BYTES_PER_ELEMENT, BYTES);\n }\n\n setSpecies(CONSTRUCTOR_NAME);\n };\n} else module.exports = function () { /* empty */ };\n","/* eslint-disable no-new -- required for testing */\nvar global = require('../internals/global');\nvar fails = require('../internals/fails');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar NATIVE_ARRAY_BUFFER_VIEWS = require('../internals/array-buffer-view-core').NATIVE_ARRAY_BUFFER_VIEWS;\n\nvar ArrayBuffer = global.ArrayBuffer;\nvar Int8Array = global.Int8Array;\n\nmodule.exports = !NATIVE_ARRAY_BUFFER_VIEWS || !fails(function () {\n Int8Array(1);\n}) || !fails(function () {\n new Int8Array(-1);\n}) || !checkCorrectnessOfIteration(function (iterable) {\n new Int8Array();\n new Int8Array(null);\n new Int8Array(1.5);\n new Int8Array(iterable);\n}, true) || fails(function () {\n // Safari (11+) bug - a reason why even Safari 13 should load a typed array polyfill\n return new Int8Array(new ArrayBuffer(2), 1, undefined).length !== 1;\n});\n","var arrayFromConstructorAndList = require('../internals/array-from-constructor-and-list');\nvar typedArraySpeciesConstructor = require('../internals/typed-array-species-constructor');\n\nmodule.exports = function (instance, list) {\n return arrayFromConstructorAndList(typedArraySpeciesConstructor(instance), list);\n};\n","var toObject = require('../internals/to-object');\nvar toLength = require('../internals/to-length');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar bind = require('../internals/function-bind-context');\nvar aTypedArrayConstructor = require('../internals/array-buffer-view-core').aTypedArrayConstructor;\n\nmodule.exports = function from(source /* , mapfn, thisArg */) {\n var O = toObject(source);\n var argumentsLength = arguments.length;\n var mapfn = argumentsLength > 1 ? arguments[1] : undefined;\n var mapping = mapfn !== undefined;\n var iteratorMethod = getIteratorMethod(O);\n var i, length, result, step, iterator, next;\n if (iteratorMethod != undefined && !isArrayIteratorMethod(iteratorMethod)) {\n iterator = iteratorMethod.call(O);\n next = iterator.next;\n O = [];\n while (!(step = next.call(iterator)).done) {\n O.push(step.value);\n }\n }\n if (mapping && argumentsLength > 2) {\n mapfn = bind(mapfn, arguments[2], 2);\n }\n length = toLength(O.length);\n result = new (aTypedArrayConstructor(this))(length);\n for (i = 0; length > i; i++) {\n result[i] = mapping ? mapfn(O[i], i) : O[i];\n }\n return result;\n};\n","var ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar speciesConstructor = require('../internals/species-constructor');\n\nvar TYPED_ARRAY_CONSTRUCTOR = ArrayBufferViewCore.TYPED_ARRAY_CONSTRUCTOR;\nvar aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;\n\n// a part of `TypedArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#typedarray-species-create\nmodule.exports = function (originalArray) {\n return aTypedArrayConstructor(speciesConstructor(originalArray, originalArray[TYPED_ARRAY_CONSTRUCTOR]));\n};\n","var id = 0;\nvar postfix = Math.random();\n\nmodule.exports = function (key) {\n return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);\n};\n","/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/native-symbol');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nexports.f = wellKnownSymbol;\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar has = require('../internals/has');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/native-symbol');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar WellKnownSymbolsStore = shared('wks');\nvar Symbol = global.Symbol;\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!has(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {\n if (NATIVE_SYMBOL && has(Symbol, name)) {\n WellKnownSymbolsStore[name] = Symbol[name];\n } else {\n WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);\n }\n } return WellKnownSymbolsStore[name];\n};\n","// a string of all valid unicode whitespaces\nmodule.exports = '\\u0009\\u000A\\u000B\\u000C\\u000D\\u0020\\u00A0\\u1680\\u2000\\u2001\\u2002' +\n '\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n","'use strict';\nvar $ = require('../internals/export');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar create = require('../internals/object-create');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar iterate = require('../internals/iterate');\nvar toString = require('../internals/to-string');\n\nvar $AggregateError = function AggregateError(errors, message) {\n var that = this;\n if (!(that instanceof $AggregateError)) return new $AggregateError(errors, message);\n if (setPrototypeOf) {\n // eslint-disable-next-line unicorn/error-message -- expected\n that = setPrototypeOf(new Error(undefined), getPrototypeOf(that));\n }\n if (message !== undefined) createNonEnumerableProperty(that, 'message', toString(message));\n var errorsArray = [];\n iterate(errors, errorsArray.push, { that: errorsArray });\n createNonEnumerableProperty(that, 'errors', errorsArray);\n return that;\n};\n\n$AggregateError.prototype = create(Error.prototype, {\n constructor: createPropertyDescriptor(5, $AggregateError),\n message: createPropertyDescriptor(5, ''),\n name: createPropertyDescriptor(5, 'AggregateError')\n});\n\n// `AggregateError` constructor\n// https://tc39.es/ecma262/#sec-aggregate-error-constructor\n$({ global: true }, {\n AggregateError: $AggregateError\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar arrayBufferModule = require('../internals/array-buffer');\nvar setSpecies = require('../internals/set-species');\n\nvar ARRAY_BUFFER = 'ArrayBuffer';\nvar ArrayBuffer = arrayBufferModule[ARRAY_BUFFER];\nvar NativeArrayBuffer = global[ARRAY_BUFFER];\n\n// `ArrayBuffer` constructor\n// https://tc39.es/ecma262/#sec-arraybuffer-constructor\n$({ global: true, forced: NativeArrayBuffer !== ArrayBuffer }, {\n ArrayBuffer: ArrayBuffer\n});\n\nsetSpecies(ARRAY_BUFFER);\n","var $ = require('../internals/export');\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\n\nvar NATIVE_ARRAY_BUFFER_VIEWS = ArrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS;\n\n// `ArrayBuffer.isView` method\n// https://tc39.es/ecma262/#sec-arraybuffer.isview\n$({ target: 'ArrayBuffer', stat: true, forced: !NATIVE_ARRAY_BUFFER_VIEWS }, {\n isView: ArrayBufferViewCore.isView\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar ArrayBufferModule = require('../internals/array-buffer');\nvar anObject = require('../internals/an-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar toLength = require('../internals/to-length');\nvar speciesConstructor = require('../internals/species-constructor');\n\nvar ArrayBuffer = ArrayBufferModule.ArrayBuffer;\nvar DataView = ArrayBufferModule.DataView;\nvar nativeArrayBufferSlice = ArrayBuffer.prototype.slice;\n\nvar INCORRECT_SLICE = fails(function () {\n return !new ArrayBuffer(2).slice(1, undefined).byteLength;\n});\n\n// `ArrayBuffer.prototype.slice` method\n// https://tc39.es/ecma262/#sec-arraybuffer.prototype.slice\n$({ target: 'ArrayBuffer', proto: true, unsafe: true, forced: INCORRECT_SLICE }, {\n slice: function slice(start, end) {\n if (nativeArrayBufferSlice !== undefined && end === undefined) {\n return nativeArrayBufferSlice.call(anObject(this), start); // FF fix\n }\n var length = anObject(this).byteLength;\n var first = toAbsoluteIndex(start, length);\n var fin = toAbsoluteIndex(end === undefined ? length : end, length);\n var result = new (speciesConstructor(this, ArrayBuffer))(toLength(fin - first));\n var viewSource = new DataView(this);\n var viewTarget = new DataView(result);\n var index = 0;\n while (first < fin) {\n viewTarget.setUint8(index++, viewSource.getUint8(first++));\n } return result;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar isArray = require('../internals/is-array');\nvar isObject = require('../internals/is-object');\nvar toObject = require('../internals/to-object');\nvar toLength = require('../internals/to-length');\nvar createProperty = require('../internals/create-property');\nvar arraySpeciesCreate = require('../internals/array-species-create');\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;\nvar MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';\n\n// We can't use this feature detection in V8 since it causes\n// deoptimization and serious performance degradation\n// https://github.com/zloirock/core-js/issues/679\nvar IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {\n var array = [];\n array[IS_CONCAT_SPREADABLE] = false;\n return array.concat()[0] !== array;\n});\n\nvar SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');\n\nvar isConcatSpreadable = function (O) {\n if (!isObject(O)) return false;\n var spreadable = O[IS_CONCAT_SPREADABLE];\n return spreadable !== undefined ? !!spreadable : isArray(O);\n};\n\nvar FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;\n\n// `Array.prototype.concat` method\n// https://tc39.es/ecma262/#sec-array.prototype.concat\n// with adding support of @@isConcatSpreadable and @@species\n$({ target: 'Array', proto: true, forced: FORCED }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n concat: function concat(arg) {\n var O = toObject(this);\n var A = arraySpeciesCreate(O, 0);\n var n = 0;\n var i, k, length, len, E;\n for (i = -1, length = arguments.length; i < length; i++) {\n E = i === -1 ? O : arguments[i];\n if (isConcatSpreadable(E)) {\n len = toLength(E.length);\n if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);\n for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);\n } else {\n if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);\n createProperty(A, n++, E);\n }\n }\n A.length = n;\n return A;\n }\n});\n","var $ = require('../internals/export');\nvar copyWithin = require('../internals/array-copy-within');\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// `Array.prototype.copyWithin` method\n// https://tc39.es/ecma262/#sec-array.prototype.copywithin\n$({ target: 'Array', proto: true }, {\n copyWithin: copyWithin\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('copyWithin');\n","'use strict';\nvar $ = require('../internals/export');\nvar $every = require('../internals/array-iteration').every;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\n\nvar STRICT_METHOD = arrayMethodIsStrict('every');\n\n// `Array.prototype.every` method\n// https://tc39.es/ecma262/#sec-array.prototype.every\n$({ target: 'Array', proto: true, forced: !STRICT_METHOD }, {\n every: function every(callbackfn /* , thisArg */) {\n return $every(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","var $ = require('../internals/export');\nvar fill = require('../internals/array-fill');\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// `Array.prototype.fill` method\n// https://tc39.es/ecma262/#sec-array.prototype.fill\n$({ target: 'Array', proto: true }, {\n fill: fill\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('fill');\n","'use strict';\nvar $ = require('../internals/export');\nvar $filter = require('../internals/array-iteration').filter;\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');\n\n// `Array.prototype.filter` method\n// https://tc39.es/ecma262/#sec-array.prototype.filter\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\n filter: function filter(callbackfn /* , thisArg */) {\n return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $findIndex = require('../internals/array-iteration').findIndex;\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\nvar FIND_INDEX = 'findIndex';\nvar SKIPS_HOLES = true;\n\n// Shouldn't skip holes\nif (FIND_INDEX in []) Array(1)[FIND_INDEX](function () { SKIPS_HOLES = false; });\n\n// `Array.prototype.findIndex` method\n// https://tc39.es/ecma262/#sec-array.prototype.findindex\n$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {\n findIndex: function findIndex(callbackfn /* , that = undefined */) {\n return $findIndex(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables(FIND_INDEX);\n","'use strict';\nvar $ = require('../internals/export');\nvar $find = require('../internals/array-iteration').find;\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\nvar FIND = 'find';\nvar SKIPS_HOLES = true;\n\n// Shouldn't skip holes\nif (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });\n\n// `Array.prototype.find` method\n// https://tc39.es/ecma262/#sec-array.prototype.find\n$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {\n find: function find(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables(FIND);\n","'use strict';\nvar $ = require('../internals/export');\nvar flattenIntoArray = require('../internals/flatten-into-array');\nvar toObject = require('../internals/to-object');\nvar toLength = require('../internals/to-length');\nvar aFunction = require('../internals/a-function');\nvar arraySpeciesCreate = require('../internals/array-species-create');\n\n// `Array.prototype.flatMap` method\n// https://tc39.es/ecma262/#sec-array.prototype.flatmap\n$({ target: 'Array', proto: true }, {\n flatMap: function flatMap(callbackfn /* , thisArg */) {\n var O = toObject(this);\n var sourceLen = toLength(O.length);\n var A;\n aFunction(callbackfn);\n A = arraySpeciesCreate(O, 0);\n A.length = flattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n return A;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar flattenIntoArray = require('../internals/flatten-into-array');\nvar toObject = require('../internals/to-object');\nvar toLength = require('../internals/to-length');\nvar toInteger = require('../internals/to-integer');\nvar arraySpeciesCreate = require('../internals/array-species-create');\n\n// `Array.prototype.flat` method\n// https://tc39.es/ecma262/#sec-array.prototype.flat\n$({ target: 'Array', proto: true }, {\n flat: function flat(/* depthArg = 1 */) {\n var depthArg = arguments.length ? arguments[0] : undefined;\n var O = toObject(this);\n var sourceLen = toLength(O.length);\n var A = arraySpeciesCreate(O, 0);\n A.length = flattenIntoArray(A, O, O, sourceLen, 0, depthArg === undefined ? 1 : toInteger(depthArg));\n return A;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar forEach = require('../internals/array-for-each');\n\n// `Array.prototype.forEach` method\n// https://tc39.es/ecma262/#sec-array.prototype.foreach\n// eslint-disable-next-line es/no-array-prototype-foreach -- safe\n$({ target: 'Array', proto: true, forced: [].forEach != forEach }, {\n forEach: forEach\n});\n","var $ = require('../internals/export');\nvar from = require('../internals/array-from');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\n\nvar INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) {\n // eslint-disable-next-line es/no-array-from -- required for testing\n Array.from(iterable);\n});\n\n// `Array.from` method\n// https://tc39.es/ecma262/#sec-array.from\n$({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {\n from: from\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $includes = require('../internals/array-includes').includes;\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// `Array.prototype.includes` method\n// https://tc39.es/ecma262/#sec-array.prototype.includes\n$({ target: 'Array', proto: true }, {\n includes: function includes(el /* , fromIndex = 0 */) {\n return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('includes');\n","'use strict';\n/* eslint-disable es/no-array-prototype-indexof -- required for testing */\nvar $ = require('../internals/export');\nvar $indexOf = require('../internals/array-includes').indexOf;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\n\nvar nativeIndexOf = [].indexOf;\n\nvar NEGATIVE_ZERO = !!nativeIndexOf && 1 / [1].indexOf(1, -0) < 0;\nvar STRICT_METHOD = arrayMethodIsStrict('indexOf');\n\n// `Array.prototype.indexOf` method\n// https://tc39.es/ecma262/#sec-array.prototype.indexof\n$({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD }, {\n indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {\n return NEGATIVE_ZERO\n // convert -0 to +0\n ? nativeIndexOf.apply(this, arguments) || 0\n : $indexOf(this, searchElement, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","var $ = require('../internals/export');\nvar isArray = require('../internals/is-array');\n\n// `Array.isArray` method\n// https://tc39.es/ecma262/#sec-array.isarray\n$({ target: 'Array', stat: true }, {\n isArray: isArray\n});\n","'use strict';\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar addToUnscopables = require('../internals/add-to-unscopables');\nvar Iterators = require('../internals/iterators');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineIterator = require('../internals/define-iterator');\n\nvar ARRAY_ITERATOR = 'Array Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);\n\n// `Array.prototype.entries` method\n// https://tc39.es/ecma262/#sec-array.prototype.entries\n// `Array.prototype.keys` method\n// https://tc39.es/ecma262/#sec-array.prototype.keys\n// `Array.prototype.values` method\n// https://tc39.es/ecma262/#sec-array.prototype.values\n// `Array.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-array.prototype-@@iterator\n// `CreateArrayIterator` internal method\n// https://tc39.es/ecma262/#sec-createarrayiterator\nmodule.exports = defineIterator(Array, 'Array', function (iterated, kind) {\n setInternalState(this, {\n type: ARRAY_ITERATOR,\n target: toIndexedObject(iterated), // target\n index: 0, // next index\n kind: kind // kind\n });\n// `%ArrayIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next\n}, function () {\n var state = getInternalState(this);\n var target = state.target;\n var kind = state.kind;\n var index = state.index++;\n if (!target || index >= target.length) {\n state.target = undefined;\n return { value: undefined, done: true };\n }\n if (kind == 'keys') return { value: index, done: false };\n if (kind == 'values') return { value: target[index], done: false };\n return { value: [index, target[index]], done: false };\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values%\n// https://tc39.es/ecma262/#sec-createunmappedargumentsobject\n// https://tc39.es/ecma262/#sec-createmappedargumentsobject\nIterators.Arguments = Iterators.Array;\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n","'use strict';\nvar $ = require('../internals/export');\nvar IndexedObject = require('../internals/indexed-object');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\n\nvar nativeJoin = [].join;\n\nvar ES3_STRINGS = IndexedObject != Object;\nvar STRICT_METHOD = arrayMethodIsStrict('join', ',');\n\n// `Array.prototype.join` method\n// https://tc39.es/ecma262/#sec-array.prototype.join\n$({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD }, {\n join: function join(separator) {\n return nativeJoin.call(toIndexedObject(this), separator === undefined ? ',' : separator);\n }\n});\n","var $ = require('../internals/export');\nvar lastIndexOf = require('../internals/array-last-index-of');\n\n// `Array.prototype.lastIndexOf` method\n// https://tc39.es/ecma262/#sec-array.prototype.lastindexof\n// eslint-disable-next-line es/no-array-prototype-lastindexof -- required for testing\n$({ target: 'Array', proto: true, forced: lastIndexOf !== [].lastIndexOf }, {\n lastIndexOf: lastIndexOf\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $map = require('../internals/array-iteration').map;\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');\n\n// `Array.prototype.map` method\n// https://tc39.es/ecma262/#sec-array.prototype.map\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar createProperty = require('../internals/create-property');\n\nvar ISNT_GENERIC = fails(function () {\n function F() { /* empty */ }\n // eslint-disable-next-line es/no-array-of -- required for testing\n return !(Array.of.call(F) instanceof F);\n});\n\n// `Array.of` method\n// https://tc39.es/ecma262/#sec-array.of\n// WebKit Array.of isn't generic\n$({ target: 'Array', stat: true, forced: ISNT_GENERIC }, {\n of: function of(/* ...args */) {\n var index = 0;\n var argumentsLength = arguments.length;\n var result = new (typeof this == 'function' ? this : Array)(argumentsLength);\n while (argumentsLength > index) createProperty(result, index, arguments[index++]);\n result.length = argumentsLength;\n return result;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $reduceRight = require('../internals/array-reduce').right;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\nvar CHROME_VERSION = require('../internals/engine-v8-version');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar STRICT_METHOD = arrayMethodIsStrict('reduceRight');\n// Chrome 80-82 has a critical bug\n// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982\nvar CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;\n\n// `Array.prototype.reduceRight` method\n// https://tc39.es/ecma262/#sec-array.prototype.reduceright\n$({ target: 'Array', proto: true, forced: !STRICT_METHOD || CHROME_BUG }, {\n reduceRight: function reduceRight(callbackfn /* , initialValue */) {\n return $reduceRight(this, callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $reduce = require('../internals/array-reduce').left;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\nvar CHROME_VERSION = require('../internals/engine-v8-version');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar STRICT_METHOD = arrayMethodIsStrict('reduce');\n// Chrome 80-82 has a critical bug\n// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982\nvar CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;\n\n// `Array.prototype.reduce` method\n// https://tc39.es/ecma262/#sec-array.prototype.reduce\n$({ target: 'Array', proto: true, forced: !STRICT_METHOD || CHROME_BUG }, {\n reduce: function reduce(callbackfn /* , initialValue */) {\n return $reduce(this, callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar isArray = require('../internals/is-array');\n\nvar nativeReverse = [].reverse;\nvar test = [1, 2];\n\n// `Array.prototype.reverse` method\n// https://tc39.es/ecma262/#sec-array.prototype.reverse\n// fix for Safari 12.0 bug\n// https://bugs.webkit.org/show_bug.cgi?id=188794\n$({ target: 'Array', proto: true, forced: String(test) === String(test.reverse()) }, {\n reverse: function reverse() {\n // eslint-disable-next-line no-self-assign -- dirty hack\n if (isArray(this)) this.length = this.length;\n return nativeReverse.call(this);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar isObject = require('../internals/is-object');\nvar isArray = require('../internals/is-array');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar toLength = require('../internals/to-length');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar createProperty = require('../internals/create-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');\n\nvar SPECIES = wellKnownSymbol('species');\nvar nativeSlice = [].slice;\nvar max = Math.max;\n\n// `Array.prototype.slice` method\n// https://tc39.es/ecma262/#sec-array.prototype.slice\n// fallback for not array-like ES3 strings and DOM objects\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\n slice: function slice(start, end) {\n var O = toIndexedObject(this);\n var length = toLength(O.length);\n var k = toAbsoluteIndex(start, length);\n var fin = toAbsoluteIndex(end === undefined ? length : end, length);\n // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible\n var Constructor, result, n;\n if (isArray(O)) {\n Constructor = O.constructor;\n // cross-realm fallback\n if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) {\n Constructor = undefined;\n } else if (isObject(Constructor)) {\n Constructor = Constructor[SPECIES];\n if (Constructor === null) Constructor = undefined;\n }\n if (Constructor === Array || Constructor === undefined) {\n return nativeSlice.call(O, k, fin);\n }\n }\n result = new (Constructor === undefined ? Array : Constructor)(max(fin - k, 0));\n for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);\n result.length = n;\n return result;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $some = require('../internals/array-iteration').some;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\n\nvar STRICT_METHOD = arrayMethodIsStrict('some');\n\n// `Array.prototype.some` method\n// https://tc39.es/ecma262/#sec-array.prototype.some\n$({ target: 'Array', proto: true, forced: !STRICT_METHOD }, {\n some: function some(callbackfn /* , thisArg */) {\n return $some(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar aFunction = require('../internals/a-function');\nvar toObject = require('../internals/to-object');\nvar toLength = require('../internals/to-length');\nvar toString = require('../internals/to-string');\nvar fails = require('../internals/fails');\nvar internalSort = require('../internals/array-sort');\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\nvar FF = require('../internals/engine-ff-version');\nvar IE_OR_EDGE = require('../internals/engine-is-ie-or-edge');\nvar V8 = require('../internals/engine-v8-version');\nvar WEBKIT = require('../internals/engine-webkit-version');\n\nvar test = [];\nvar nativeSort = test.sort;\n\n// IE8-\nvar FAILS_ON_UNDEFINED = fails(function () {\n test.sort(undefined);\n});\n// V8 bug\nvar FAILS_ON_NULL = fails(function () {\n test.sort(null);\n});\n// Old WebKit\nvar STRICT_METHOD = arrayMethodIsStrict('sort');\n\nvar STABLE_SORT = !fails(function () {\n // feature detection can be too slow, so check engines versions\n if (V8) return V8 < 70;\n if (FF && FF > 3) return;\n if (IE_OR_EDGE) return true;\n if (WEBKIT) return WEBKIT < 603;\n\n var result = '';\n var code, chr, value, index;\n\n // generate an array with more 512 elements (Chakra and old V8 fails only in this case)\n for (code = 65; code < 76; code++) {\n chr = String.fromCharCode(code);\n\n switch (code) {\n case 66: case 69: case 70: case 72: value = 3; break;\n case 68: case 71: value = 4; break;\n default: value = 2;\n }\n\n for (index = 0; index < 47; index++) {\n test.push({ k: chr + index, v: value });\n }\n }\n\n test.sort(function (a, b) { return b.v - a.v; });\n\n for (index = 0; index < test.length; index++) {\n chr = test[index].k.charAt(0);\n if (result.charAt(result.length - 1) !== chr) result += chr;\n }\n\n return result !== 'DGBEFHACIJK';\n});\n\nvar FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;\n\nvar getSortCompare = function (comparefn) {\n return function (x, y) {\n if (y === undefined) return -1;\n if (x === undefined) return 1;\n if (comparefn !== undefined) return +comparefn(x, y) || 0;\n return toString(x) > toString(y) ? 1 : -1;\n };\n};\n\n// `Array.prototype.sort` method\n// https://tc39.es/ecma262/#sec-array.prototype.sort\n$({ target: 'Array', proto: true, forced: FORCED }, {\n sort: function sort(comparefn) {\n if (comparefn !== undefined) aFunction(comparefn);\n\n var array = toObject(this);\n\n if (STABLE_SORT) return comparefn === undefined ? nativeSort.call(array) : nativeSort.call(array, comparefn);\n\n var items = [];\n var arrayLength = toLength(array.length);\n var itemsLength, index;\n\n for (index = 0; index < arrayLength; index++) {\n if (index in array) items.push(array[index]);\n }\n\n items = internalSort(items, getSortCompare(comparefn));\n itemsLength = items.length;\n index = 0;\n\n while (index < itemsLength) array[index] = items[index++];\n while (index < arrayLength) delete array[index++];\n\n return array;\n }\n});\n","var setSpecies = require('../internals/set-species');\n\n// `Array[@@species]` getter\n// https://tc39.es/ecma262/#sec-get-array-@@species\nsetSpecies('Array');\n","'use strict';\nvar $ = require('../internals/export');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar toInteger = require('../internals/to-integer');\nvar toLength = require('../internals/to-length');\nvar toObject = require('../internals/to-object');\nvar arraySpeciesCreate = require('../internals/array-species-create');\nvar createProperty = require('../internals/create-property');\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');\n\nvar max = Math.max;\nvar min = Math.min;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;\nvar MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded';\n\n// `Array.prototype.splice` method\n// https://tc39.es/ecma262/#sec-array.prototype.splice\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\n splice: function splice(start, deleteCount /* , ...items */) {\n var O = toObject(this);\n var len = toLength(O.length);\n var actualStart = toAbsoluteIndex(start, len);\n var argumentsLength = arguments.length;\n var insertCount, actualDeleteCount, A, k, from, to;\n if (argumentsLength === 0) {\n insertCount = actualDeleteCount = 0;\n } else if (argumentsLength === 1) {\n insertCount = 0;\n actualDeleteCount = len - actualStart;\n } else {\n insertCount = argumentsLength - 2;\n actualDeleteCount = min(max(toInteger(deleteCount), 0), len - actualStart);\n }\n if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) {\n throw TypeError(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);\n }\n A = arraySpeciesCreate(O, actualDeleteCount);\n for (k = 0; k < actualDeleteCount; k++) {\n from = actualStart + k;\n if (from in O) createProperty(A, k, O[from]);\n }\n A.length = actualDeleteCount;\n if (insertCount < actualDeleteCount) {\n for (k = actualStart; k < len - actualDeleteCount; k++) {\n from = k + actualDeleteCount;\n to = k + insertCount;\n if (from in O) O[to] = O[from];\n else delete O[to];\n }\n for (k = len; k > len - actualDeleteCount + insertCount; k--) delete O[k - 1];\n } else if (insertCount > actualDeleteCount) {\n for (k = len - actualDeleteCount; k > actualStart; k--) {\n from = k + actualDeleteCount - 1;\n to = k + insertCount - 1;\n if (from in O) O[to] = O[from];\n else delete O[to];\n }\n }\n for (k = 0; k < insertCount; k++) {\n O[k + actualStart] = arguments[k + 2];\n }\n O.length = len - actualDeleteCount + insertCount;\n return A;\n }\n});\n","// this method was added to unscopables after implementation\n// in popular engines, so it's moved to a separate module\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('flatMap');\n","// this method was added to unscopables after implementation\n// in popular engines, so it's moved to a separate module\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('flat');\n","var $ = require('../internals/export');\nvar ArrayBufferModule = require('../internals/array-buffer');\nvar NATIVE_ARRAY_BUFFER = require('../internals/array-buffer-native');\n\n// `DataView` constructor\n// https://tc39.es/ecma262/#sec-dataview-constructor\n$({ global: true, forced: !NATIVE_ARRAY_BUFFER }, {\n DataView: ArrayBufferModule.DataView\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar fails = require('../internals/fails');\n\nvar FORCED = fails(function () {\n return new Date(16e11).getYear() !== 120;\n});\n\nvar getFullYear = Date.prototype.getFullYear;\n\n// `Date.prototype.getYear` method\n// https://tc39.es/ecma262/#sec-date.prototype.getyear\n$({ target: 'Date', proto: true, forced: FORCED }, {\n getYear: function getYear() {\n return getFullYear.call(this) - 1900;\n }\n});\n","var $ = require('../internals/export');\n\n// `Date.now` method\n// https://tc39.es/ecma262/#sec-date.now\n$({ target: 'Date', stat: true }, {\n now: function now() {\n return new Date().getTime();\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar toInteger = require('../internals/to-integer');\n\nvar getTime = Date.prototype.getTime;\nvar setFullYear = Date.prototype.setFullYear;\n\n// `Date.prototype.setYear` method\n// https://tc39.es/ecma262/#sec-date.prototype.setyear\n$({ target: 'Date', proto: true }, {\n setYear: function setYear(year) {\n // validate\n getTime.call(this);\n var yi = toInteger(year);\n var yyyy = 0 <= yi && yi <= 99 ? yi + 1900 : yi;\n return setFullYear.call(this, yyyy);\n }\n});\n","var $ = require('../internals/export');\n\n// `Date.prototype.toGMTString` method\n// https://tc39.es/ecma262/#sec-date.prototype.togmtstring\n$({ target: 'Date', proto: true }, {\n toGMTString: Date.prototype.toUTCString\n});\n","var $ = require('../internals/export');\nvar toISOString = require('../internals/date-to-iso-string');\n\n// `Date.prototype.toISOString` method\n// https://tc39.es/ecma262/#sec-date.prototype.toisostring\n// PhantomJS / old WebKit has a broken implementations\n$({ target: 'Date', proto: true, forced: Date.prototype.toISOString !== toISOString }, {\n toISOString: toISOString\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar toObject = require('../internals/to-object');\nvar toPrimitive = require('../internals/to-primitive');\n\nvar FORCED = fails(function () {\n return new Date(NaN).toJSON() !== null\n || Date.prototype.toJSON.call({ toISOString: function () { return 1; } }) !== 1;\n});\n\n// `Date.prototype.toJSON` method\n// https://tc39.es/ecma262/#sec-date.prototype.tojson\n$({ target: 'Date', proto: true, forced: FORCED }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n toJSON: function toJSON(key) {\n var O = toObject(this);\n var pv = toPrimitive(O, 'number');\n return typeof pv == 'number' && !isFinite(pv) ? null : O.toISOString();\n }\n});\n","var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar dateToPrimitive = require('../internals/date-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\nvar DatePrototype = Date.prototype;\n\n// `Date.prototype[@@toPrimitive]` method\n// https://tc39.es/ecma262/#sec-date.prototype-@@toprimitive\nif (!(TO_PRIMITIVE in DatePrototype)) {\n createNonEnumerableProperty(DatePrototype, TO_PRIMITIVE, dateToPrimitive);\n}\n","var redefine = require('../internals/redefine');\n\nvar DatePrototype = Date.prototype;\nvar INVALID_DATE = 'Invalid Date';\nvar TO_STRING = 'toString';\nvar nativeDateToString = DatePrototype[TO_STRING];\nvar getTime = DatePrototype.getTime;\n\n// `Date.prototype.toString` method\n// https://tc39.es/ecma262/#sec-date.prototype.tostring\nif (String(new Date(NaN)) != INVALID_DATE) {\n redefine(DatePrototype, TO_STRING, function toString() {\n var value = getTime.call(this);\n // eslint-disable-next-line no-self-compare -- NaN check\n return value === value ? nativeDateToString.call(this) : INVALID_DATE;\n });\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar toString = require('../internals/to-string');\n\nvar raw = /[\\w*+\\-./@]/;\n\nvar hex = function (code, length) {\n var result = code.toString(16);\n while (result.length < length) result = '0' + result;\n return result;\n};\n\n// `escape` method\n// https://tc39.es/ecma262/#sec-escape-string\n$({ global: true }, {\n escape: function escape(string) {\n var str = toString(string);\n var result = '';\n var length = str.length;\n var index = 0;\n var chr, code;\n while (index < length) {\n chr = str.charAt(index++);\n if (raw.test(chr)) {\n result += chr;\n } else {\n code = chr.charCodeAt(0);\n if (code < 256) {\n result += '%' + hex(code, 2);\n } else {\n result += '%u' + hex(code, 4).toUpperCase();\n }\n }\n } return result;\n }\n});\n","var $ = require('../internals/export');\nvar bind = require('../internals/function-bind');\n\n// `Function.prototype.bind` method\n// https://tc39.es/ecma262/#sec-function.prototype.bind\n$({ target: 'Function', proto: true }, {\n bind: bind\n});\n","'use strict';\nvar isObject = require('../internals/is-object');\nvar definePropertyModule = require('../internals/object-define-property');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar HAS_INSTANCE = wellKnownSymbol('hasInstance');\nvar FunctionPrototype = Function.prototype;\n\n// `Function.prototype[@@hasInstance]` method\n// https://tc39.es/ecma262/#sec-function.prototype-@@hasinstance\nif (!(HAS_INSTANCE in FunctionPrototype)) {\n definePropertyModule.f(FunctionPrototype, HAS_INSTANCE, { value: function (O) {\n if (typeof this != 'function' || !isObject(O)) return false;\n if (!isObject(this.prototype)) return O instanceof this;\n // for environment w/o native `@@hasInstance` logic enough `instanceof`, but add this:\n while (O = getPrototypeOf(O)) if (this.prototype === O) return true;\n return false;\n } });\n}\n","var DESCRIPTORS = require('../internals/descriptors');\nvar defineProperty = require('../internals/object-define-property').f;\n\nvar FunctionPrototype = Function.prototype;\nvar FunctionPrototypeToString = FunctionPrototype.toString;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// Function instances `.name` property\n// https://tc39.es/ecma262/#sec-function-instances-name\nif (DESCRIPTORS && !(NAME in FunctionPrototype)) {\n defineProperty(FunctionPrototype, NAME, {\n configurable: true,\n get: function () {\n try {\n return FunctionPrototypeToString.call(this).match(nameRE)[1];\n } catch (error) {\n return '';\n }\n }\n });\n}\n","var $ = require('../internals/export');\nvar global = require('../internals/global');\n\n// `globalThis` object\n// https://tc39.es/ecma262/#sec-globalthis\n$({ global: true }, {\n globalThis: global\n});\n","var $ = require('../internals/export');\nvar getBuiltIn = require('../internals/get-built-in');\nvar fails = require('../internals/fails');\n\nvar $stringify = getBuiltIn('JSON', 'stringify');\nvar re = /[\\uD800-\\uDFFF]/g;\nvar low = /^[\\uD800-\\uDBFF]$/;\nvar hi = /^[\\uDC00-\\uDFFF]$/;\n\nvar fix = function (match, offset, string) {\n var prev = string.charAt(offset - 1);\n var next = string.charAt(offset + 1);\n if ((low.test(match) && !hi.test(next)) || (hi.test(match) && !low.test(prev))) {\n return '\\\\u' + match.charCodeAt(0).toString(16);\n } return match;\n};\n\nvar FORCED = fails(function () {\n return $stringify('\\uDF06\\uD834') !== '\"\\\\udf06\\\\ud834\"'\n || $stringify('\\uDEAD') !== '\"\\\\udead\"';\n});\n\nif ($stringify) {\n // `JSON.stringify` method\n // https://tc39.es/ecma262/#sec-json.stringify\n // https://github.com/tc39/proposal-well-formed-stringify\n $({ target: 'JSON', stat: true, forced: FORCED }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n stringify: function stringify(it, replacer, space) {\n var result = $stringify.apply(null, arguments);\n return typeof result == 'string' ? result.replace(re, fix) : result;\n }\n });\n}\n","var global = require('../internals/global');\nvar setToStringTag = require('../internals/set-to-string-tag');\n\n// JSON[@@toStringTag] property\n// https://tc39.es/ecma262/#sec-json-@@tostringtag\nsetToStringTag(global.JSON, 'JSON', true);\n","'use strict';\nvar collection = require('../internals/collection');\nvar collectionStrong = require('../internals/collection-strong');\n\n// `Map` constructor\n// https://tc39.es/ecma262/#sec-map-objects\nmodule.exports = collection('Map', function (init) {\n return function Map() { return init(this, arguments.length ? arguments[0] : undefined); };\n}, collectionStrong);\n","var $ = require('../internals/export');\nvar log1p = require('../internals/math-log1p');\n\n// eslint-disable-next-line es/no-math-acosh -- required for testing\nvar $acosh = Math.acosh;\nvar log = Math.log;\nvar sqrt = Math.sqrt;\nvar LN2 = Math.LN2;\n\nvar FORCED = !$acosh\n // V8 bug: https://code.google.com/p/v8/issues/detail?id=3509\n || Math.floor($acosh(Number.MAX_VALUE)) != 710\n // Tor Browser bug: Math.acosh(Infinity) -> NaN\n || $acosh(Infinity) != Infinity;\n\n// `Math.acosh` method\n// https://tc39.es/ecma262/#sec-math.acosh\n$({ target: 'Math', stat: true, forced: FORCED }, {\n acosh: function acosh(x) {\n return (x = +x) < 1 ? NaN : x > 94906265.62425156\n ? log(x) + LN2\n : log1p(x - 1 + sqrt(x - 1) * sqrt(x + 1));\n }\n});\n","var $ = require('../internals/export');\n\n// eslint-disable-next-line es/no-math-asinh -- required for testing\nvar $asinh = Math.asinh;\nvar log = Math.log;\nvar sqrt = Math.sqrt;\n\nfunction asinh(x) {\n return !isFinite(x = +x) || x == 0 ? x : x < 0 ? -asinh(-x) : log(x + sqrt(x * x + 1));\n}\n\n// `Math.asinh` method\n// https://tc39.es/ecma262/#sec-math.asinh\n// Tor Browser bug: Math.asinh(0) -> -0\n$({ target: 'Math', stat: true, forced: !($asinh && 1 / $asinh(0) > 0) }, {\n asinh: asinh\n});\n","var $ = require('../internals/export');\n\n// eslint-disable-next-line es/no-math-atanh -- required for testing\nvar $atanh = Math.atanh;\nvar log = Math.log;\n\n// `Math.atanh` method\n// https://tc39.es/ecma262/#sec-math.atanh\n// Tor Browser bug: Math.atanh(-0) -> 0\n$({ target: 'Math', stat: true, forced: !($atanh && 1 / $atanh(-0) < 0) }, {\n atanh: function atanh(x) {\n return (x = +x) == 0 ? x : log((1 + x) / (1 - x)) / 2;\n }\n});\n","var $ = require('../internals/export');\nvar sign = require('../internals/math-sign');\n\nvar abs = Math.abs;\nvar pow = Math.pow;\n\n// `Math.cbrt` method\n// https://tc39.es/ecma262/#sec-math.cbrt\n$({ target: 'Math', stat: true }, {\n cbrt: function cbrt(x) {\n return sign(x = +x) * pow(abs(x), 1 / 3);\n }\n});\n","var $ = require('../internals/export');\n\nvar floor = Math.floor;\nvar log = Math.log;\nvar LOG2E = Math.LOG2E;\n\n// `Math.clz32` method\n// https://tc39.es/ecma262/#sec-math.clz32\n$({ target: 'Math', stat: true }, {\n clz32: function clz32(x) {\n return (x >>>= 0) ? 31 - floor(log(x + 0.5) * LOG2E) : 32;\n }\n});\n","var $ = require('../internals/export');\nvar expm1 = require('../internals/math-expm1');\n\n// eslint-disable-next-line es/no-math-cosh -- required for testing\nvar $cosh = Math.cosh;\nvar abs = Math.abs;\nvar E = Math.E;\n\n// `Math.cosh` method\n// https://tc39.es/ecma262/#sec-math.cosh\n$({ target: 'Math', stat: true, forced: !$cosh || $cosh(710) === Infinity }, {\n cosh: function cosh(x) {\n var t = expm1(abs(x) - 1) + 1;\n return (t + 1 / (t * E * E)) * (E / 2);\n }\n});\n","var $ = require('../internals/export');\nvar expm1 = require('../internals/math-expm1');\n\n// `Math.expm1` method\n// https://tc39.es/ecma262/#sec-math.expm1\n// eslint-disable-next-line es/no-math-expm1 -- required for testing\n$({ target: 'Math', stat: true, forced: expm1 != Math.expm1 }, { expm1: expm1 });\n","var $ = require('../internals/export');\nvar fround = require('../internals/math-fround');\n\n// `Math.fround` method\n// https://tc39.es/ecma262/#sec-math.fround\n$({ target: 'Math', stat: true }, { fround: fround });\n","var $ = require('../internals/export');\n\n// eslint-disable-next-line es/no-math-hypot -- required for testing\nvar $hypot = Math.hypot;\nvar abs = Math.abs;\nvar sqrt = Math.sqrt;\n\n// Chrome 77 bug\n// https://bugs.chromium.org/p/v8/issues/detail?id=9546\nvar BUGGY = !!$hypot && $hypot(Infinity, NaN) !== Infinity;\n\n// `Math.hypot` method\n// https://tc39.es/ecma262/#sec-math.hypot\n$({ target: 'Math', stat: true, forced: BUGGY }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n hypot: function hypot(value1, value2) {\n var sum = 0;\n var i = 0;\n var aLen = arguments.length;\n var larg = 0;\n var arg, div;\n while (i < aLen) {\n arg = abs(arguments[i++]);\n if (larg < arg) {\n div = larg / arg;\n sum = sum * div * div + 1;\n larg = arg;\n } else if (arg > 0) {\n div = arg / larg;\n sum += div * div;\n } else sum += arg;\n }\n return larg === Infinity ? Infinity : larg * sqrt(sum);\n }\n});\n","var $ = require('../internals/export');\nvar fails = require('../internals/fails');\n\n// eslint-disable-next-line es/no-math-imul -- required for testing\nvar $imul = Math.imul;\n\nvar FORCED = fails(function () {\n return $imul(0xFFFFFFFF, 5) != -5 || $imul.length != 2;\n});\n\n// `Math.imul` method\n// https://tc39.es/ecma262/#sec-math.imul\n// some WebKit versions fails with big numbers, some has wrong arity\n$({ target: 'Math', stat: true, forced: FORCED }, {\n imul: function imul(x, y) {\n var UINT16 = 0xFFFF;\n var xn = +x;\n var yn = +y;\n var xl = UINT16 & xn;\n var yl = UINT16 & yn;\n return 0 | xl * yl + ((UINT16 & xn >>> 16) * yl + xl * (UINT16 & yn >>> 16) << 16 >>> 0);\n }\n});\n","var $ = require('../internals/export');\n\nvar log = Math.log;\nvar LOG10E = Math.LOG10E;\n\n// `Math.log10` method\n// https://tc39.es/ecma262/#sec-math.log10\n$({ target: 'Math', stat: true }, {\n log10: function log10(x) {\n return log(x) * LOG10E;\n }\n});\n","var $ = require('../internals/export');\nvar log1p = require('../internals/math-log1p');\n\n// `Math.log1p` method\n// https://tc39.es/ecma262/#sec-math.log1p\n$({ target: 'Math', stat: true }, { log1p: log1p });\n","var $ = require('../internals/export');\n\nvar log = Math.log;\nvar LN2 = Math.LN2;\n\n// `Math.log2` method\n// https://tc39.es/ecma262/#sec-math.log2\n$({ target: 'Math', stat: true }, {\n log2: function log2(x) {\n return log(x) / LN2;\n }\n});\n","var $ = require('../internals/export');\nvar sign = require('../internals/math-sign');\n\n// `Math.sign` method\n// https://tc39.es/ecma262/#sec-math.sign\n$({ target: 'Math', stat: true }, {\n sign: sign\n});\n","var $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar expm1 = require('../internals/math-expm1');\n\nvar abs = Math.abs;\nvar exp = Math.exp;\nvar E = Math.E;\n\nvar FORCED = fails(function () {\n // eslint-disable-next-line es/no-math-sinh -- required for testing\n return Math.sinh(-2e-17) != -2e-17;\n});\n\n// `Math.sinh` method\n// https://tc39.es/ecma262/#sec-math.sinh\n// V8 near Chromium 38 has a problem with very small numbers\n$({ target: 'Math', stat: true, forced: FORCED }, {\n sinh: function sinh(x) {\n return abs(x = +x) < 1 ? (expm1(x) - expm1(-x)) / 2 : (exp(x - 1) - exp(-x - 1)) * (E / 2);\n }\n});\n","var $ = require('../internals/export');\nvar expm1 = require('../internals/math-expm1');\n\nvar exp = Math.exp;\n\n// `Math.tanh` method\n// https://tc39.es/ecma262/#sec-math.tanh\n$({ target: 'Math', stat: true }, {\n tanh: function tanh(x) {\n var a = expm1(x = +x);\n var b = expm1(-x);\n return a == Infinity ? 1 : b == Infinity ? -1 : (a - b) / (exp(x) + exp(-x));\n }\n});\n","var setToStringTag = require('../internals/set-to-string-tag');\n\n// Math[@@toStringTag] property\n// https://tc39.es/ecma262/#sec-math-@@tostringtag\nsetToStringTag(Math, 'Math', true);\n","var $ = require('../internals/export');\n\nvar ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n$({ target: 'Math', stat: true }, {\n trunc: function trunc(it) {\n return (it > 0 ? floor : ceil)(it);\n }\n});\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar global = require('../internals/global');\nvar isForced = require('../internals/is-forced');\nvar redefine = require('../internals/redefine');\nvar has = require('../internals/has');\nvar classof = require('../internals/classof-raw');\nvar inheritIfRequired = require('../internals/inherit-if-required');\nvar isSymbol = require('../internals/is-symbol');\nvar toPrimitive = require('../internals/to-primitive');\nvar fails = require('../internals/fails');\nvar create = require('../internals/object-create');\nvar getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar defineProperty = require('../internals/object-define-property').f;\nvar trim = require('../internals/string-trim').trim;\n\nvar NUMBER = 'Number';\nvar NativeNumber = global[NUMBER];\nvar NumberPrototype = NativeNumber.prototype;\n\n// Opera ~12 has broken Object#toString\nvar BROKEN_CLASSOF = classof(create(NumberPrototype)) == NUMBER;\n\n// `ToNumber` abstract operation\n// https://tc39.es/ecma262/#sec-tonumber\nvar toNumber = function (argument) {\n if (isSymbol(argument)) throw TypeError('Cannot convert a Symbol value to a number');\n var it = toPrimitive(argument, 'number');\n var first, third, radix, maxCode, digits, length, index, code;\n if (typeof it == 'string' && it.length > 2) {\n it = trim(it);\n first = it.charCodeAt(0);\n if (first === 43 || first === 45) {\n third = it.charCodeAt(2);\n if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix\n } else if (first === 48) {\n switch (it.charCodeAt(1)) {\n case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i\n case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i\n default: return +it;\n }\n digits = it.slice(2);\n length = digits.length;\n for (index = 0; index < length; index++) {\n code = digits.charCodeAt(index);\n // parseInt parses a string to a first unavailable symbol\n // but ToNumber should return NaN if a string contains unavailable symbols\n if (code < 48 || code > maxCode) return NaN;\n } return parseInt(digits, radix);\n }\n } return +it;\n};\n\n// `Number` constructor\n// https://tc39.es/ecma262/#sec-number-constructor\nif (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {\n var NumberWrapper = function Number(value) {\n var it = arguments.length < 1 ? 0 : value;\n var dummy = this;\n return dummy instanceof NumberWrapper\n // check on 1..constructor(foo) case\n && (BROKEN_CLASSOF ? fails(function () { NumberPrototype.valueOf.call(dummy); }) : classof(dummy) != NUMBER)\n ? inheritIfRequired(new NativeNumber(toNumber(it)), dummy, NumberWrapper) : toNumber(it);\n };\n for (var keys = DESCRIPTORS ? getOwnPropertyNames(NativeNumber) : (\n // ES3:\n 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +\n // ES2015 (in case, if modules with ES2015 Number statics required before):\n 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +\n 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,' +\n // ESNext\n 'fromString,range'\n ).split(','), j = 0, key; keys.length > j; j++) {\n if (has(NativeNumber, key = keys[j]) && !has(NumberWrapper, key)) {\n defineProperty(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));\n }\n }\n NumberWrapper.prototype = NumberPrototype;\n NumberPrototype.constructor = NumberWrapper;\n redefine(global, NUMBER, NumberWrapper);\n}\n","var $ = require('../internals/export');\n\n// `Number.EPSILON` constant\n// https://tc39.es/ecma262/#sec-number.epsilon\n$({ target: 'Number', stat: true }, {\n EPSILON: Math.pow(2, -52)\n});\n","var $ = require('../internals/export');\nvar numberIsFinite = require('../internals/number-is-finite');\n\n// `Number.isFinite` method\n// https://tc39.es/ecma262/#sec-number.isfinite\n$({ target: 'Number', stat: true }, { isFinite: numberIsFinite });\n","var $ = require('../internals/export');\nvar isInteger = require('../internals/is-integer');\n\n// `Number.isInteger` method\n// https://tc39.es/ecma262/#sec-number.isinteger\n$({ target: 'Number', stat: true }, {\n isInteger: isInteger\n});\n","var $ = require('../internals/export');\n\n// `Number.isNaN` method\n// https://tc39.es/ecma262/#sec-number.isnan\n$({ target: 'Number', stat: true }, {\n isNaN: function isNaN(number) {\n // eslint-disable-next-line no-self-compare -- NaN check\n return number != number;\n }\n});\n","var $ = require('../internals/export');\nvar isInteger = require('../internals/is-integer');\n\nvar abs = Math.abs;\n\n// `Number.isSafeInteger` method\n// https://tc39.es/ecma262/#sec-number.issafeinteger\n$({ target: 'Number', stat: true }, {\n isSafeInteger: function isSafeInteger(number) {\n return isInteger(number) && abs(number) <= 0x1FFFFFFFFFFFFF;\n }\n});\n","var $ = require('../internals/export');\n\n// `Number.MAX_SAFE_INTEGER` constant\n// https://tc39.es/ecma262/#sec-number.max_safe_integer\n$({ target: 'Number', stat: true }, {\n MAX_SAFE_INTEGER: 0x1FFFFFFFFFFFFF\n});\n","var $ = require('../internals/export');\n\n// `Number.MIN_SAFE_INTEGER` constant\n// https://tc39.es/ecma262/#sec-number.min_safe_integer\n$({ target: 'Number', stat: true }, {\n MIN_SAFE_INTEGER: -0x1FFFFFFFFFFFFF\n});\n","var $ = require('../internals/export');\nvar parseFloat = require('../internals/number-parse-float');\n\n// `Number.parseFloat` method\n// https://tc39.es/ecma262/#sec-number.parseFloat\n// eslint-disable-next-line es/no-number-parsefloat -- required for testing\n$({ target: 'Number', stat: true, forced: Number.parseFloat != parseFloat }, {\n parseFloat: parseFloat\n});\n","var $ = require('../internals/export');\nvar parseInt = require('../internals/number-parse-int');\n\n// `Number.parseInt` method\n// https://tc39.es/ecma262/#sec-number.parseint\n// eslint-disable-next-line es/no-number-parseint -- required for testing\n$({ target: 'Number', stat: true, forced: Number.parseInt != parseInt }, {\n parseInt: parseInt\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar toInteger = require('../internals/to-integer');\nvar thisNumberValue = require('../internals/this-number-value');\nvar repeat = require('../internals/string-repeat');\nvar fails = require('../internals/fails');\n\nvar nativeToFixed = 1.0.toFixed;\nvar floor = Math.floor;\n\nvar pow = function (x, n, acc) {\n return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc);\n};\n\nvar log = function (x) {\n var n = 0;\n var x2 = x;\n while (x2 >= 4096) {\n n += 12;\n x2 /= 4096;\n }\n while (x2 >= 2) {\n n += 1;\n x2 /= 2;\n } return n;\n};\n\nvar multiply = function (data, n, c) {\n var index = -1;\n var c2 = c;\n while (++index < 6) {\n c2 += n * data[index];\n data[index] = c2 % 1e7;\n c2 = floor(c2 / 1e7);\n }\n};\n\nvar divide = function (data, n) {\n var index = 6;\n var c = 0;\n while (--index >= 0) {\n c += data[index];\n data[index] = floor(c / n);\n c = (c % n) * 1e7;\n }\n};\n\nvar dataToString = function (data) {\n var index = 6;\n var s = '';\n while (--index >= 0) {\n if (s !== '' || index === 0 || data[index] !== 0) {\n var t = String(data[index]);\n s = s === '' ? t : s + repeat.call('0', 7 - t.length) + t;\n }\n } return s;\n};\n\nvar FORCED = nativeToFixed && (\n 0.00008.toFixed(3) !== '0.000' ||\n 0.9.toFixed(0) !== '1' ||\n 1.255.toFixed(2) !== '1.25' ||\n 1000000000000000128.0.toFixed(0) !== '1000000000000000128'\n) || !fails(function () {\n // V8 ~ Android 4.3-\n nativeToFixed.call({});\n});\n\n// `Number.prototype.toFixed` method\n// https://tc39.es/ecma262/#sec-number.prototype.tofixed\n$({ target: 'Number', proto: true, forced: FORCED }, {\n toFixed: function toFixed(fractionDigits) {\n var number = thisNumberValue(this);\n var fractDigits = toInteger(fractionDigits);\n var data = [0, 0, 0, 0, 0, 0];\n var sign = '';\n var result = '0';\n var e, z, j, k;\n\n if (fractDigits < 0 || fractDigits > 20) throw RangeError('Incorrect fraction digits');\n // eslint-disable-next-line no-self-compare -- NaN check\n if (number != number) return 'NaN';\n if (number <= -1e21 || number >= 1e21) return String(number);\n if (number < 0) {\n sign = '-';\n number = -number;\n }\n if (number > 1e-21) {\n e = log(number * pow(2, 69, 1)) - 69;\n z = e < 0 ? number * pow(2, -e, 1) : number / pow(2, e, 1);\n z *= 0x10000000000000;\n e = 52 - e;\n if (e > 0) {\n multiply(data, 0, z);\n j = fractDigits;\n while (j >= 7) {\n multiply(data, 1e7, 0);\n j -= 7;\n }\n multiply(data, pow(10, j, 1), 0);\n j = e - 1;\n while (j >= 23) {\n divide(data, 1 << 23);\n j -= 23;\n }\n divide(data, 1 << j);\n multiply(data, 1, 1);\n divide(data, 2);\n result = dataToString(data);\n } else {\n multiply(data, 0, z);\n multiply(data, 1 << -e, 0);\n result = dataToString(data) + repeat.call('0', fractDigits);\n }\n }\n if (fractDigits > 0) {\n k = result.length;\n result = sign + (k <= fractDigits\n ? '0.' + repeat.call('0', fractDigits - k) + result\n : result.slice(0, k - fractDigits) + '.' + result.slice(k - fractDigits));\n } else {\n result = sign + result;\n } return result;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar thisNumberValue = require('../internals/this-number-value');\n\nvar nativeToPrecision = 1.0.toPrecision;\n\nvar FORCED = fails(function () {\n // IE7-\n return nativeToPrecision.call(1, undefined) !== '1';\n}) || !fails(function () {\n // V8 ~ Android 4.3-\n nativeToPrecision.call({});\n});\n\n// `Number.prototype.toPrecision` method\n// https://tc39.es/ecma262/#sec-number.prototype.toprecision\n$({ target: 'Number', proto: true, forced: FORCED }, {\n toPrecision: function toPrecision(precision) {\n return precision === undefined\n ? nativeToPrecision.call(thisNumberValue(this))\n : nativeToPrecision.call(thisNumberValue(this), precision);\n }\n});\n","var $ = require('../internals/export');\nvar assign = require('../internals/object-assign');\n\n// `Object.assign` method\n// https://tc39.es/ecma262/#sec-object.assign\n// eslint-disable-next-line es/no-object-assign -- required for testing\n$({ target: 'Object', stat: true, forced: Object.assign !== assign }, {\n assign: assign\n});\n","var $ = require('../internals/export');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar create = require('../internals/object-create');\n\n// `Object.create` method\n// https://tc39.es/ecma262/#sec-object.create\n$({ target: 'Object', stat: true, sham: !DESCRIPTORS }, {\n create: create\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar FORCED = require('../internals/object-prototype-accessors-forced');\nvar toObject = require('../internals/to-object');\nvar aFunction = require('../internals/a-function');\nvar definePropertyModule = require('../internals/object-define-property');\n\n// `Object.prototype.__defineGetter__` method\n// https://tc39.es/ecma262/#sec-object.prototype.__defineGetter__\nif (DESCRIPTORS) {\n $({ target: 'Object', proto: true, forced: FORCED }, {\n __defineGetter__: function __defineGetter__(P, getter) {\n definePropertyModule.f(toObject(this), P, { get: aFunction(getter), enumerable: true, configurable: true });\n }\n });\n}\n","var $ = require('../internals/export');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar defineProperties = require('../internals/object-define-properties');\n\n// `Object.defineProperties` method\n// https://tc39.es/ecma262/#sec-object.defineproperties\n$({ target: 'Object', stat: true, forced: !DESCRIPTORS, sham: !DESCRIPTORS }, {\n defineProperties: defineProperties\n});\n","var $ = require('../internals/export');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar objectDefinePropertyModile = require('../internals/object-define-property');\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\n$({ target: 'Object', stat: true, forced: !DESCRIPTORS, sham: !DESCRIPTORS }, {\n defineProperty: objectDefinePropertyModile.f\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar FORCED = require('../internals/object-prototype-accessors-forced');\nvar toObject = require('../internals/to-object');\nvar aFunction = require('../internals/a-function');\nvar definePropertyModule = require('../internals/object-define-property');\n\n// `Object.prototype.__defineSetter__` method\n// https://tc39.es/ecma262/#sec-object.prototype.__defineSetter__\nif (DESCRIPTORS) {\n $({ target: 'Object', proto: true, forced: FORCED }, {\n __defineSetter__: function __defineSetter__(P, setter) {\n definePropertyModule.f(toObject(this), P, { set: aFunction(setter), enumerable: true, configurable: true });\n }\n });\n}\n","var $ = require('../internals/export');\nvar $entries = require('../internals/object-to-array').entries;\n\n// `Object.entries` method\n// https://tc39.es/ecma262/#sec-object.entries\n$({ target: 'Object', stat: true }, {\n entries: function entries(O) {\n return $entries(O);\n }\n});\n","var $ = require('../internals/export');\nvar FREEZING = require('../internals/freezing');\nvar fails = require('../internals/fails');\nvar isObject = require('../internals/is-object');\nvar onFreeze = require('../internals/internal-metadata').onFreeze;\n\n// eslint-disable-next-line es/no-object-freeze -- safe\nvar $freeze = Object.freeze;\nvar FAILS_ON_PRIMITIVES = fails(function () { $freeze(1); });\n\n// `Object.freeze` method\n// https://tc39.es/ecma262/#sec-object.freeze\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING }, {\n freeze: function freeze(it) {\n return $freeze && isObject(it) ? $freeze(onFreeze(it)) : it;\n }\n});\n","var $ = require('../internals/export');\nvar iterate = require('../internals/iterate');\nvar createProperty = require('../internals/create-property');\n\n// `Object.fromEntries` method\n// https://github.com/tc39/proposal-object-from-entries\n$({ target: 'Object', stat: true }, {\n fromEntries: function fromEntries(iterable) {\n var obj = {};\n iterate(iterable, function (k, v) {\n createProperty(obj, k, v);\n }, { AS_ENTRIES: true });\n return obj;\n }\n});\n","var $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar nativeGetOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar FAILS_ON_PRIMITIVES = fails(function () { nativeGetOwnPropertyDescriptor(1); });\nvar FORCED = !DESCRIPTORS || FAILS_ON_PRIMITIVES;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\n$({ target: 'Object', stat: true, forced: FORCED, sham: !DESCRIPTORS }, {\n getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) {\n return nativeGetOwnPropertyDescriptor(toIndexedObject(it), key);\n }\n});\n","var $ = require('../internals/export');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar ownKeys = require('../internals/own-keys');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar createProperty = require('../internals/create-property');\n\n// `Object.getOwnPropertyDescriptors` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptors\n$({ target: 'Object', stat: true, sham: !DESCRIPTORS }, {\n getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {\n var O = toIndexedObject(object);\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n var keys = ownKeys(O);\n var result = {};\n var index = 0;\n var key, descriptor;\n while (keys.length > index) {\n descriptor = getOwnPropertyDescriptor(O, key = keys[index++]);\n if (descriptor !== undefined) createProperty(result, key, descriptor);\n }\n return result;\n }\n});\n","var $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar getOwnPropertyNames = require('../internals/object-get-own-property-names-external').f;\n\n// eslint-disable-next-line es/no-object-getownpropertynames -- required for testing\nvar FAILS_ON_PRIMITIVES = fails(function () { return !Object.getOwnPropertyNames(1); });\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {\n getOwnPropertyNames: getOwnPropertyNames\n});\n","var $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar toObject = require('../internals/to-object');\nvar nativeGetPrototypeOf = require('../internals/object-get-prototype-of');\nvar CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');\n\nvar FAILS_ON_PRIMITIVES = fails(function () { nativeGetPrototypeOf(1); });\n\n// `Object.getPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.getprototypeof\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !CORRECT_PROTOTYPE_GETTER }, {\n getPrototypeOf: function getPrototypeOf(it) {\n return nativeGetPrototypeOf(toObject(it));\n }\n});\n\n","var $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar isObject = require('../internals/is-object');\n\n// eslint-disable-next-line es/no-object-isextensible -- safe\nvar $isExtensible = Object.isExtensible;\nvar FAILS_ON_PRIMITIVES = fails(function () { $isExtensible(1); });\n\n// `Object.isExtensible` method\n// https://tc39.es/ecma262/#sec-object.isextensible\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {\n isExtensible: function isExtensible(it) {\n return isObject(it) ? $isExtensible ? $isExtensible(it) : true : false;\n }\n});\n","var $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar isObject = require('../internals/is-object');\n\n// eslint-disable-next-line es/no-object-isfrozen -- safe\nvar $isFrozen = Object.isFrozen;\nvar FAILS_ON_PRIMITIVES = fails(function () { $isFrozen(1); });\n\n// `Object.isFrozen` method\n// https://tc39.es/ecma262/#sec-object.isfrozen\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {\n isFrozen: function isFrozen(it) {\n return isObject(it) ? $isFrozen ? $isFrozen(it) : false : true;\n }\n});\n","var $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar isObject = require('../internals/is-object');\n\n// eslint-disable-next-line es/no-object-issealed -- safe\nvar $isSealed = Object.isSealed;\nvar FAILS_ON_PRIMITIVES = fails(function () { $isSealed(1); });\n\n// `Object.isSealed` method\n// https://tc39.es/ecma262/#sec-object.issealed\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {\n isSealed: function isSealed(it) {\n return isObject(it) ? $isSealed ? $isSealed(it) : false : true;\n }\n});\n","var $ = require('../internals/export');\nvar is = require('../internals/same-value');\n\n// `Object.is` method\n// https://tc39.es/ecma262/#sec-object.is\n$({ target: 'Object', stat: true }, {\n is: is\n});\n","var $ = require('../internals/export');\nvar toObject = require('../internals/to-object');\nvar nativeKeys = require('../internals/object-keys');\nvar fails = require('../internals/fails');\n\nvar FAILS_ON_PRIMITIVES = fails(function () { nativeKeys(1); });\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {\n keys: function keys(it) {\n return nativeKeys(toObject(it));\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar FORCED = require('../internals/object-prototype-accessors-forced');\nvar toObject = require('../internals/to-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\n\n// `Object.prototype.__lookupGetter__` method\n// https://tc39.es/ecma262/#sec-object.prototype.__lookupGetter__\nif (DESCRIPTORS) {\n $({ target: 'Object', proto: true, forced: FORCED }, {\n __lookupGetter__: function __lookupGetter__(P) {\n var O = toObject(this);\n var key = toPropertyKey(P);\n var desc;\n do {\n if (desc = getOwnPropertyDescriptor(O, key)) return desc.get;\n } while (O = getPrototypeOf(O));\n }\n });\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar FORCED = require('../internals/object-prototype-accessors-forced');\nvar toObject = require('../internals/to-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\n\n// `Object.prototype.__lookupSetter__` method\n// https://tc39.es/ecma262/#sec-object.prototype.__lookupSetter__\nif (DESCRIPTORS) {\n $({ target: 'Object', proto: true, forced: FORCED }, {\n __lookupSetter__: function __lookupSetter__(P) {\n var O = toObject(this);\n var key = toPropertyKey(P);\n var desc;\n do {\n if (desc = getOwnPropertyDescriptor(O, key)) return desc.set;\n } while (O = getPrototypeOf(O));\n }\n });\n}\n","var $ = require('../internals/export');\nvar isObject = require('../internals/is-object');\nvar onFreeze = require('../internals/internal-metadata').onFreeze;\nvar FREEZING = require('../internals/freezing');\nvar fails = require('../internals/fails');\n\n// eslint-disable-next-line es/no-object-preventextensions -- safe\nvar $preventExtensions = Object.preventExtensions;\nvar FAILS_ON_PRIMITIVES = fails(function () { $preventExtensions(1); });\n\n// `Object.preventExtensions` method\n// https://tc39.es/ecma262/#sec-object.preventextensions\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING }, {\n preventExtensions: function preventExtensions(it) {\n return $preventExtensions && isObject(it) ? $preventExtensions(onFreeze(it)) : it;\n }\n});\n","var $ = require('../internals/export');\nvar isObject = require('../internals/is-object');\nvar onFreeze = require('../internals/internal-metadata').onFreeze;\nvar FREEZING = require('../internals/freezing');\nvar fails = require('../internals/fails');\n\n// eslint-disable-next-line es/no-object-seal -- safe\nvar $seal = Object.seal;\nvar FAILS_ON_PRIMITIVES = fails(function () { $seal(1); });\n\n// `Object.seal` method\n// https://tc39.es/ecma262/#sec-object.seal\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING }, {\n seal: function seal(it) {\n return $seal && isObject(it) ? $seal(onFreeze(it)) : it;\n }\n});\n","var $ = require('../internals/export');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\n\n// `Object.setPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.setprototypeof\n$({ target: 'Object', stat: true }, {\n setPrototypeOf: setPrototypeOf\n});\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar redefine = require('../internals/redefine');\nvar toString = require('../internals/object-to-string');\n\n// `Object.prototype.toString` method\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nif (!TO_STRING_TAG_SUPPORT) {\n redefine(Object.prototype, 'toString', toString, { unsafe: true });\n}\n","var $ = require('../internals/export');\nvar $values = require('../internals/object-to-array').values;\n\n// `Object.values` method\n// https://tc39.es/ecma262/#sec-object.values\n$({ target: 'Object', stat: true }, {\n values: function values(O) {\n return $values(O);\n }\n});\n","var $ = require('../internals/export');\nvar parseFloatImplementation = require('../internals/number-parse-float');\n\n// `parseFloat` method\n// https://tc39.es/ecma262/#sec-parsefloat-string\n$({ global: true, forced: parseFloat != parseFloatImplementation }, {\n parseFloat: parseFloatImplementation\n});\n","var $ = require('../internals/export');\nvar parseIntImplementation = require('../internals/number-parse-int');\n\n// `parseInt` method\n// https://tc39.es/ecma262/#sec-parseint-string-radix\n$({ global: true, forced: parseInt != parseIntImplementation }, {\n parseInt: parseIntImplementation\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar aFunction = require('../internals/a-function');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\n\n// `Promise.allSettled` method\n// https://tc39.es/ecma262/#sec-promise.allsettled\n$({ target: 'Promise', stat: true }, {\n allSettled: function allSettled(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var promiseResolve = aFunction(C.resolve);\n var values = [];\n var counter = 0;\n var remaining = 1;\n iterate(iterable, function (promise) {\n var index = counter++;\n var alreadyCalled = false;\n values.push(undefined);\n remaining++;\n promiseResolve.call(C, promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = { status: 'fulfilled', value: value };\n --remaining || resolve(values);\n }, function (error) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = { status: 'rejected', reason: error };\n --remaining || resolve(values);\n });\n });\n --remaining || resolve(values);\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar aFunction = require('../internals/a-function');\nvar getBuiltIn = require('../internals/get-built-in');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\n\nvar PROMISE_ANY_ERROR = 'No one promise resolved';\n\n// `Promise.any` method\n// https://tc39.es/ecma262/#sec-promise.any\n$({ target: 'Promise', stat: true }, {\n any: function any(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var promiseResolve = aFunction(C.resolve);\n var errors = [];\n var counter = 0;\n var remaining = 1;\n var alreadyResolved = false;\n iterate(iterable, function (promise) {\n var index = counter++;\n var alreadyRejected = false;\n errors.push(undefined);\n remaining++;\n promiseResolve.call(C, promise).then(function (value) {\n if (alreadyRejected || alreadyResolved) return;\n alreadyResolved = true;\n resolve(value);\n }, function (error) {\n if (alreadyRejected || alreadyResolved) return;\n alreadyRejected = true;\n errors[index] = error;\n --remaining || reject(new (getBuiltIn('AggregateError'))(errors, PROMISE_ANY_ERROR));\n });\n });\n --remaining || reject(new (getBuiltIn('AggregateError'))(errors, PROMISE_ANY_ERROR));\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar NativePromise = require('../internals/native-promise-constructor');\nvar fails = require('../internals/fails');\nvar getBuiltIn = require('../internals/get-built-in');\nvar speciesConstructor = require('../internals/species-constructor');\nvar promiseResolve = require('../internals/promise-resolve');\nvar redefine = require('../internals/redefine');\n\n// Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829\nvar NON_GENERIC = !!NativePromise && fails(function () {\n NativePromise.prototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });\n});\n\n// `Promise.prototype.finally` method\n// https://tc39.es/ecma262/#sec-promise.prototype.finally\n$({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, {\n 'finally': function (onFinally) {\n var C = speciesConstructor(this, getBuiltIn('Promise'));\n var isFunction = typeof onFinally == 'function';\n return this.then(\n isFunction ? function (x) {\n return promiseResolve(C, onFinally()).then(function () { return x; });\n } : onFinally,\n isFunction ? function (e) {\n return promiseResolve(C, onFinally()).then(function () { throw e; });\n } : onFinally\n );\n }\n});\n\n// makes sure that native promise-based APIs `Promise#finally` properly works with patched `Promise#then`\nif (!IS_PURE && typeof NativePromise == 'function') {\n var method = getBuiltIn('Promise').prototype['finally'];\n if (NativePromise.prototype['finally'] !== method) {\n redefine(NativePromise.prototype, 'finally', method, { unsafe: true });\n }\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar global = require('../internals/global');\nvar getBuiltIn = require('../internals/get-built-in');\nvar NativePromise = require('../internals/native-promise-constructor');\nvar redefine = require('../internals/redefine');\nvar redefineAll = require('../internals/redefine-all');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar setSpecies = require('../internals/set-species');\nvar isObject = require('../internals/is-object');\nvar aFunction = require('../internals/a-function');\nvar anInstance = require('../internals/an-instance');\nvar inspectSource = require('../internals/inspect-source');\nvar iterate = require('../internals/iterate');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar speciesConstructor = require('../internals/species-constructor');\nvar task = require('../internals/task').set;\nvar microtask = require('../internals/microtask');\nvar promiseResolve = require('../internals/promise-resolve');\nvar hostReportErrors = require('../internals/host-report-errors');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar InternalStateModule = require('../internals/internal-state');\nvar isForced = require('../internals/is-forced');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_BROWSER = require('../internals/engine-is-browser');\nvar IS_NODE = require('../internals/engine-is-node');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar SPECIES = wellKnownSymbol('species');\nvar PROMISE = 'Promise';\nvar getInternalState = InternalStateModule.get;\nvar setInternalState = InternalStateModule.set;\nvar getInternalPromiseState = InternalStateModule.getterFor(PROMISE);\nvar NativePromisePrototype = NativePromise && NativePromise.prototype;\nvar PromiseConstructor = NativePromise;\nvar PromiseConstructorPrototype = NativePromisePrototype;\nvar TypeError = global.TypeError;\nvar document = global.document;\nvar process = global.process;\nvar newPromiseCapability = newPromiseCapabilityModule.f;\nvar newGenericPromiseCapability = newPromiseCapability;\nvar DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);\nvar NATIVE_REJECTION_EVENT = typeof PromiseRejectionEvent == 'function';\nvar UNHANDLED_REJECTION = 'unhandledrejection';\nvar REJECTION_HANDLED = 'rejectionhandled';\nvar PENDING = 0;\nvar FULFILLED = 1;\nvar REJECTED = 2;\nvar HANDLED = 1;\nvar UNHANDLED = 2;\nvar SUBCLASSING = false;\nvar Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;\n\nvar FORCED = isForced(PROMISE, function () {\n var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(PromiseConstructor);\n var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(PromiseConstructor);\n // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables\n // https://bugs.chromium.org/p/chromium/issues/detail?id=830565\n // We can't detect it synchronously, so just check versions\n if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;\n // We need Promise#finally in the pure version for preventing prototype pollution\n if (IS_PURE && !PromiseConstructorPrototype['finally']) return true;\n // We can't use @@species feature detection in V8 since it causes\n // deoptimization and performance degradation\n // https://github.com/zloirock/core-js/issues/679\n if (V8_VERSION >= 51 && /native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) return false;\n // Detect correctness of subclassing with @@species support\n var promise = new PromiseConstructor(function (resolve) { resolve(1); });\n var FakePromise = function (exec) {\n exec(function () { /* empty */ }, function () { /* empty */ });\n };\n var constructor = promise.constructor = {};\n constructor[SPECIES] = FakePromise;\n SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;\n if (!SUBCLASSING) return true;\n // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_REJECTION_EVENT;\n});\n\nvar INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {\n PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });\n});\n\n// helpers\nvar isThenable = function (it) {\n var then;\n return isObject(it) && typeof (then = it.then) == 'function' ? then : false;\n};\n\nvar notify = function (state, isReject) {\n if (state.notified) return;\n state.notified = true;\n var chain = state.reactions;\n microtask(function () {\n var value = state.value;\n var ok = state.state == FULFILLED;\n var index = 0;\n // variable length - can't use forEach\n while (chain.length > index) {\n var reaction = chain[index++];\n var handler = ok ? reaction.ok : reaction.fail;\n var resolve = reaction.resolve;\n var reject = reaction.reject;\n var domain = reaction.domain;\n var result, then, exited;\n try {\n if (handler) {\n if (!ok) {\n if (state.rejection === UNHANDLED) onHandleUnhandled(state);\n state.rejection = HANDLED;\n }\n if (handler === true) result = value;\n else {\n if (domain) domain.enter();\n result = handler(value); // can throw\n if (domain) {\n domain.exit();\n exited = true;\n }\n }\n if (result === reaction.promise) {\n reject(TypeError('Promise-chain cycle'));\n } else if (then = isThenable(result)) {\n then.call(result, resolve, reject);\n } else resolve(result);\n } else reject(value);\n } catch (error) {\n if (domain && !exited) domain.exit();\n reject(error);\n }\n }\n state.reactions = [];\n state.notified = false;\n if (isReject && !state.rejection) onUnhandled(state);\n });\n};\n\nvar dispatchEvent = function (name, promise, reason) {\n var event, handler;\n if (DISPATCH_EVENT) {\n event = document.createEvent('Event');\n event.promise = promise;\n event.reason = reason;\n event.initEvent(name, false, true);\n global.dispatchEvent(event);\n } else event = { promise: promise, reason: reason };\n if (!NATIVE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);\n else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);\n};\n\nvar onUnhandled = function (state) {\n task.call(global, function () {\n var promise = state.facade;\n var value = state.value;\n var IS_UNHANDLED = isUnhandled(state);\n var result;\n if (IS_UNHANDLED) {\n result = perform(function () {\n if (IS_NODE) {\n process.emit('unhandledRejection', value, promise);\n } else dispatchEvent(UNHANDLED_REJECTION, promise, value);\n });\n // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should\n state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;\n if (result.error) throw result.value;\n }\n });\n};\n\nvar isUnhandled = function (state) {\n return state.rejection !== HANDLED && !state.parent;\n};\n\nvar onHandleUnhandled = function (state) {\n task.call(global, function () {\n var promise = state.facade;\n if (IS_NODE) {\n process.emit('rejectionHandled', promise);\n } else dispatchEvent(REJECTION_HANDLED, promise, state.value);\n });\n};\n\nvar bind = function (fn, state, unwrap) {\n return function (value) {\n fn(state, value, unwrap);\n };\n};\n\nvar internalReject = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n state.value = value;\n state.state = REJECTED;\n notify(state, true);\n};\n\nvar internalResolve = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n try {\n if (state.facade === value) throw TypeError(\"Promise can't be resolved itself\");\n var then = isThenable(value);\n if (then) {\n microtask(function () {\n var wrapper = { done: false };\n try {\n then.call(value,\n bind(internalResolve, wrapper, state),\n bind(internalReject, wrapper, state)\n );\n } catch (error) {\n internalReject(wrapper, error, state);\n }\n });\n } else {\n state.value = value;\n state.state = FULFILLED;\n notify(state, false);\n }\n } catch (error) {\n internalReject({ done: false }, error, state);\n }\n};\n\n// constructor polyfill\nif (FORCED) {\n // 25.4.3.1 Promise(executor)\n PromiseConstructor = function Promise(executor) {\n anInstance(this, PromiseConstructor, PROMISE);\n aFunction(executor);\n Internal.call(this);\n var state = getInternalState(this);\n try {\n executor(bind(internalResolve, state), bind(internalReject, state));\n } catch (error) {\n internalReject(state, error);\n }\n };\n PromiseConstructorPrototype = PromiseConstructor.prototype;\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n Internal = function Promise(executor) {\n setInternalState(this, {\n type: PROMISE,\n done: false,\n notified: false,\n parent: false,\n reactions: [],\n rejection: false,\n state: PENDING,\n value: undefined\n });\n };\n Internal.prototype = redefineAll(PromiseConstructorPrototype, {\n // `Promise.prototype.then` method\n // https://tc39.es/ecma262/#sec-promise.prototype.then\n then: function then(onFulfilled, onRejected) {\n var state = getInternalPromiseState(this);\n var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));\n reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;\n reaction.fail = typeof onRejected == 'function' && onRejected;\n reaction.domain = IS_NODE ? process.domain : undefined;\n state.parent = true;\n state.reactions.push(reaction);\n if (state.state != PENDING) notify(state, false);\n return reaction.promise;\n },\n // `Promise.prototype.catch` method\n // https://tc39.es/ecma262/#sec-promise.prototype.catch\n 'catch': function (onRejected) {\n return this.then(undefined, onRejected);\n }\n });\n OwnPromiseCapability = function () {\n var promise = new Internal();\n var state = getInternalState(promise);\n this.promise = promise;\n this.resolve = bind(internalResolve, state);\n this.reject = bind(internalReject, state);\n };\n newPromiseCapabilityModule.f = newPromiseCapability = function (C) {\n return C === PromiseConstructor || C === PromiseWrapper\n ? new OwnPromiseCapability(C)\n : newGenericPromiseCapability(C);\n };\n\n if (!IS_PURE && typeof NativePromise == 'function' && NativePromisePrototype !== Object.prototype) {\n nativeThen = NativePromisePrototype.then;\n\n if (!SUBCLASSING) {\n // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs\n redefine(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {\n var that = this;\n return new PromiseConstructor(function (resolve, reject) {\n nativeThen.call(that, resolve, reject);\n }).then(onFulfilled, onRejected);\n // https://github.com/zloirock/core-js/issues/640\n }, { unsafe: true });\n\n // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`\n redefine(NativePromisePrototype, 'catch', PromiseConstructorPrototype['catch'], { unsafe: true });\n }\n\n // make `.constructor === Promise` work for native promise-based APIs\n try {\n delete NativePromisePrototype.constructor;\n } catch (error) { /* empty */ }\n\n // make `instanceof Promise` work for native promise-based APIs\n if (setPrototypeOf) {\n setPrototypeOf(NativePromisePrototype, PromiseConstructorPrototype);\n }\n }\n}\n\n$({ global: true, wrap: true, forced: FORCED }, {\n Promise: PromiseConstructor\n});\n\nsetToStringTag(PromiseConstructor, PROMISE, false, true);\nsetSpecies(PROMISE);\n\nPromiseWrapper = getBuiltIn(PROMISE);\n\n// statics\n$({ target: PROMISE, stat: true, forced: FORCED }, {\n // `Promise.reject` method\n // https://tc39.es/ecma262/#sec-promise.reject\n reject: function reject(r) {\n var capability = newPromiseCapability(this);\n capability.reject.call(undefined, r);\n return capability.promise;\n }\n});\n\n$({ target: PROMISE, stat: true, forced: IS_PURE || FORCED }, {\n // `Promise.resolve` method\n // https://tc39.es/ecma262/#sec-promise.resolve\n resolve: function resolve(x) {\n return promiseResolve(IS_PURE && this === PromiseWrapper ? PromiseConstructor : this, x);\n }\n});\n\n$({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {\n // `Promise.all` method\n // https://tc39.es/ecma262/#sec-promise.all\n all: function all(iterable) {\n var C = this;\n var capability = newPromiseCapability(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aFunction(C.resolve);\n var values = [];\n var counter = 0;\n var remaining = 1;\n iterate(iterable, function (promise) {\n var index = counter++;\n var alreadyCalled = false;\n values.push(undefined);\n remaining++;\n $promiseResolve.call(C, promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = value;\n --remaining || resolve(values);\n }, reject);\n });\n --remaining || resolve(values);\n });\n if (result.error) reject(result.value);\n return capability.promise;\n },\n // `Promise.race` method\n // https://tc39.es/ecma262/#sec-promise.race\n race: function race(iterable) {\n var C = this;\n var capability = newPromiseCapability(C);\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aFunction(C.resolve);\n iterate(iterable, function (promise) {\n $promiseResolve.call(C, promise).then(capability.resolve, reject);\n });\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","var $ = require('../internals/export');\nvar getBuiltIn = require('../internals/get-built-in');\nvar aFunction = require('../internals/a-function');\nvar anObject = require('../internals/an-object');\nvar fails = require('../internals/fails');\n\nvar nativeApply = getBuiltIn('Reflect', 'apply');\nvar functionApply = Function.apply;\n\n// MS Edge argumentsList argument is optional\nvar OPTIONAL_ARGUMENTS_LIST = !fails(function () {\n nativeApply(function () { /* empty */ });\n});\n\n// `Reflect.apply` method\n// https://tc39.es/ecma262/#sec-reflect.apply\n$({ target: 'Reflect', stat: true, forced: OPTIONAL_ARGUMENTS_LIST }, {\n apply: function apply(target, thisArgument, argumentsList) {\n aFunction(target);\n anObject(argumentsList);\n return nativeApply\n ? nativeApply(target, thisArgument, argumentsList)\n : functionApply.call(target, thisArgument, argumentsList);\n }\n});\n","var $ = require('../internals/export');\nvar getBuiltIn = require('../internals/get-built-in');\nvar aFunction = require('../internals/a-function');\nvar anObject = require('../internals/an-object');\nvar isObject = require('../internals/is-object');\nvar create = require('../internals/object-create');\nvar bind = require('../internals/function-bind');\nvar fails = require('../internals/fails');\n\nvar nativeConstruct = getBuiltIn('Reflect', 'construct');\n\n// `Reflect.construct` method\n// https://tc39.es/ecma262/#sec-reflect.construct\n// MS Edge supports only 2 arguments and argumentsList argument is optional\n// FF Nightly sets third argument as `new.target`, but does not create `this` from it\nvar NEW_TARGET_BUG = fails(function () {\n function F() { /* empty */ }\n return !(nativeConstruct(function () { /* empty */ }, [], F) instanceof F);\n});\nvar ARGS_BUG = !fails(function () {\n nativeConstruct(function () { /* empty */ });\n});\nvar FORCED = NEW_TARGET_BUG || ARGS_BUG;\n\n$({ target: 'Reflect', stat: true, forced: FORCED, sham: FORCED }, {\n construct: function construct(Target, args /* , newTarget */) {\n aFunction(Target);\n anObject(args);\n var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]);\n if (ARGS_BUG && !NEW_TARGET_BUG) return nativeConstruct(Target, args, newTarget);\n if (Target == newTarget) {\n // w/o altered newTarget, optimization for 0-4 arguments\n switch (args.length) {\n case 0: return new Target();\n case 1: return new Target(args[0]);\n case 2: return new Target(args[0], args[1]);\n case 3: return new Target(args[0], args[1], args[2]);\n case 4: return new Target(args[0], args[1], args[2], args[3]);\n }\n // w/o altered newTarget, lot of arguments case\n var $args = [null];\n $args.push.apply($args, args);\n return new (bind.apply(Target, $args))();\n }\n // with altered newTarget, not support built-in constructors\n var proto = newTarget.prototype;\n var instance = create(isObject(proto) ? proto : Object.prototype);\n var result = Function.apply.call(Target, instance, args);\n return isObject(result) ? result : instance;\n }\n});\n","var $ = require('../internals/export');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar definePropertyModule = require('../internals/object-define-property');\nvar fails = require('../internals/fails');\n\n// MS Edge has broken Reflect.defineProperty - throwing instead of returning false\nvar ERROR_INSTEAD_OF_FALSE = fails(function () {\n // eslint-disable-next-line es/no-reflect -- required for testing\n Reflect.defineProperty(definePropertyModule.f({}, 1, { value: 1 }), 1, { value: 2 });\n});\n\n// `Reflect.defineProperty` method\n// https://tc39.es/ecma262/#sec-reflect.defineproperty\n$({ target: 'Reflect', stat: true, forced: ERROR_INSTEAD_OF_FALSE, sham: !DESCRIPTORS }, {\n defineProperty: function defineProperty(target, propertyKey, attributes) {\n anObject(target);\n var key = toPropertyKey(propertyKey);\n anObject(attributes);\n try {\n definePropertyModule.f(target, key, attributes);\n return true;\n } catch (error) {\n return false;\n }\n }\n});\n","var $ = require('../internals/export');\nvar anObject = require('../internals/an-object');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\n\n// `Reflect.deleteProperty` method\n// https://tc39.es/ecma262/#sec-reflect.deleteproperty\n$({ target: 'Reflect', stat: true }, {\n deleteProperty: function deleteProperty(target, propertyKey) {\n var descriptor = getOwnPropertyDescriptor(anObject(target), propertyKey);\n return descriptor && !descriptor.configurable ? false : delete target[propertyKey];\n }\n});\n","var $ = require('../internals/export');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar anObject = require('../internals/an-object');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\n\n// `Reflect.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-reflect.getownpropertydescriptor\n$({ target: 'Reflect', stat: true, sham: !DESCRIPTORS }, {\n getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey) {\n return getOwnPropertyDescriptorModule.f(anObject(target), propertyKey);\n }\n});\n","var $ = require('../internals/export');\nvar anObject = require('../internals/an-object');\nvar objectGetPrototypeOf = require('../internals/object-get-prototype-of');\nvar CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');\n\n// `Reflect.getPrototypeOf` method\n// https://tc39.es/ecma262/#sec-reflect.getprototypeof\n$({ target: 'Reflect', stat: true, sham: !CORRECT_PROTOTYPE_GETTER }, {\n getPrototypeOf: function getPrototypeOf(target) {\n return objectGetPrototypeOf(anObject(target));\n }\n});\n","var $ = require('../internals/export');\nvar isObject = require('../internals/is-object');\nvar anObject = require('../internals/an-object');\nvar has = require('../internals/has');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\n\n// `Reflect.get` method\n// https://tc39.es/ecma262/#sec-reflect.get\nfunction get(target, propertyKey /* , receiver */) {\n var receiver = arguments.length < 3 ? target : arguments[2];\n var descriptor, prototype;\n if (anObject(target) === receiver) return target[propertyKey];\n if (descriptor = getOwnPropertyDescriptorModule.f(target, propertyKey)) return has(descriptor, 'value')\n ? descriptor.value\n : descriptor.get === undefined\n ? undefined\n : descriptor.get.call(receiver);\n if (isObject(prototype = getPrototypeOf(target))) return get(prototype, propertyKey, receiver);\n}\n\n$({ target: 'Reflect', stat: true }, {\n get: get\n});\n","var $ = require('../internals/export');\n\n// `Reflect.has` method\n// https://tc39.es/ecma262/#sec-reflect.has\n$({ target: 'Reflect', stat: true }, {\n has: function has(target, propertyKey) {\n return propertyKey in target;\n }\n});\n","var $ = require('../internals/export');\nvar anObject = require('../internals/an-object');\n\n// eslint-disable-next-line es/no-object-isextensible -- safe\nvar objectIsExtensible = Object.isExtensible;\n\n// `Reflect.isExtensible` method\n// https://tc39.es/ecma262/#sec-reflect.isextensible\n$({ target: 'Reflect', stat: true }, {\n isExtensible: function isExtensible(target) {\n anObject(target);\n return objectIsExtensible ? objectIsExtensible(target) : true;\n }\n});\n","var $ = require('../internals/export');\nvar ownKeys = require('../internals/own-keys');\n\n// `Reflect.ownKeys` method\n// https://tc39.es/ecma262/#sec-reflect.ownkeys\n$({ target: 'Reflect', stat: true }, {\n ownKeys: ownKeys\n});\n","var $ = require('../internals/export');\nvar getBuiltIn = require('../internals/get-built-in');\nvar anObject = require('../internals/an-object');\nvar FREEZING = require('../internals/freezing');\n\n// `Reflect.preventExtensions` method\n// https://tc39.es/ecma262/#sec-reflect.preventextensions\n$({ target: 'Reflect', stat: true, sham: !FREEZING }, {\n preventExtensions: function preventExtensions(target) {\n anObject(target);\n try {\n var objectPreventExtensions = getBuiltIn('Object', 'preventExtensions');\n if (objectPreventExtensions) objectPreventExtensions(target);\n return true;\n } catch (error) {\n return false;\n }\n }\n});\n","var $ = require('../internals/export');\nvar anObject = require('../internals/an-object');\nvar aPossiblePrototype = require('../internals/a-possible-prototype');\nvar objectSetPrototypeOf = require('../internals/object-set-prototype-of');\n\n// `Reflect.setPrototypeOf` method\n// https://tc39.es/ecma262/#sec-reflect.setprototypeof\nif (objectSetPrototypeOf) $({ target: 'Reflect', stat: true }, {\n setPrototypeOf: function setPrototypeOf(target, proto) {\n anObject(target);\n aPossiblePrototype(proto);\n try {\n objectSetPrototypeOf(target, proto);\n return true;\n } catch (error) {\n return false;\n }\n }\n});\n","var $ = require('../internals/export');\nvar anObject = require('../internals/an-object');\nvar isObject = require('../internals/is-object');\nvar has = require('../internals/has');\nvar fails = require('../internals/fails');\nvar definePropertyModule = require('../internals/object-define-property');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\n// `Reflect.set` method\n// https://tc39.es/ecma262/#sec-reflect.set\nfunction set(target, propertyKey, V /* , receiver */) {\n var receiver = arguments.length < 4 ? target : arguments[3];\n var ownDescriptor = getOwnPropertyDescriptorModule.f(anObject(target), propertyKey);\n var existingDescriptor, prototype;\n if (!ownDescriptor) {\n if (isObject(prototype = getPrototypeOf(target))) {\n return set(prototype, propertyKey, V, receiver);\n }\n ownDescriptor = createPropertyDescriptor(0);\n }\n if (has(ownDescriptor, 'value')) {\n if (ownDescriptor.writable === false || !isObject(receiver)) return false;\n if (existingDescriptor = getOwnPropertyDescriptorModule.f(receiver, propertyKey)) {\n if (existingDescriptor.get || existingDescriptor.set || existingDescriptor.writable === false) return false;\n existingDescriptor.value = V;\n definePropertyModule.f(receiver, propertyKey, existingDescriptor);\n } else definePropertyModule.f(receiver, propertyKey, createPropertyDescriptor(0, V));\n return true;\n }\n return ownDescriptor.set === undefined ? false : (ownDescriptor.set.call(receiver, V), true);\n}\n\n// MS Edge 17-18 Reflect.set allows setting the property to object\n// with non-writable property on the prototype\nvar MS_EDGE_BUG = fails(function () {\n var Constructor = function () { /* empty */ };\n var object = definePropertyModule.f(new Constructor(), 'a', { configurable: true });\n // eslint-disable-next-line es/no-reflect -- required for testing\n return Reflect.set(Constructor.prototype, 'a', 1, object) !== false;\n});\n\n$({ target: 'Reflect', stat: true, forced: MS_EDGE_BUG }, {\n set: set\n});\n","var $ = require('../internals/export');\nvar global = require('../internals/global');\nvar setToStringTag = require('../internals/set-to-string-tag');\n\n$({ global: true }, { Reflect: {} });\n\n// Reflect[@@toStringTag] property\n// https://tc39.es/ecma262/#sec-reflect-@@tostringtag\nsetToStringTag(global.Reflect, 'Reflect', true);\n","var DESCRIPTORS = require('../internals/descriptors');\nvar global = require('../internals/global');\nvar isForced = require('../internals/is-forced');\nvar inheritIfRequired = require('../internals/inherit-if-required');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineProperty = require('../internals/object-define-property').f;\nvar getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar isRegExp = require('../internals/is-regexp');\nvar toString = require('../internals/to-string');\nvar getFlags = require('../internals/regexp-flags');\nvar stickyHelpers = require('../internals/regexp-sticky-helpers');\nvar redefine = require('../internals/redefine');\nvar fails = require('../internals/fails');\nvar has = require('../internals/has');\nvar enforceInternalState = require('../internals/internal-state').enforce;\nvar setSpecies = require('../internals/set-species');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar UNSUPPORTED_DOT_ALL = require('../internals/regexp-unsupported-dot-all');\nvar UNSUPPORTED_NCG = require('../internals/regexp-unsupported-ncg');\n\nvar MATCH = wellKnownSymbol('match');\nvar NativeRegExp = global.RegExp;\nvar RegExpPrototype = NativeRegExp.prototype;\n// TODO: Use only propper RegExpIdentifierName\nvar IS_NCG = /^\\?<[^\\s\\d!#%&*+<=>@^][^\\s!#%&*+<=>@^]*>/;\nvar re1 = /a/g;\nvar re2 = /a/g;\n\n// \"new\" should create a new object, old webkit bug\nvar CORRECT_NEW = new NativeRegExp(re1) !== re1;\n\nvar UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;\n\nvar BASE_FORCED = DESCRIPTORS &&\n (!CORRECT_NEW || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG || fails(function () {\n re2[MATCH] = false;\n // RegExp constructor can alter flags and IsRegExp works correct with @@match\n return NativeRegExp(re1) != re1 || NativeRegExp(re2) == re2 || NativeRegExp(re1, 'i') != '/a/i';\n }));\n\nvar handleDotAll = function (string) {\n var length = string.length;\n var index = 0;\n var result = '';\n var brackets = false;\n var chr;\n for (; index <= length; index++) {\n chr = string.charAt(index);\n if (chr === '\\\\') {\n result += chr + string.charAt(++index);\n continue;\n }\n if (!brackets && chr === '.') {\n result += '[\\\\s\\\\S]';\n } else {\n if (chr === '[') {\n brackets = true;\n } else if (chr === ']') {\n brackets = false;\n } result += chr;\n }\n } return result;\n};\n\nvar handleNCG = function (string) {\n var length = string.length;\n var index = 0;\n var result = '';\n var named = [];\n var names = {};\n var brackets = false;\n var ncg = false;\n var groupid = 0;\n var groupname = '';\n var chr;\n for (; index <= length; index++) {\n chr = string.charAt(index);\n if (chr === '\\\\') {\n chr = chr + string.charAt(++index);\n } else if (chr === ']') {\n brackets = false;\n } else if (!brackets) switch (true) {\n case chr === '[':\n brackets = true;\n break;\n case chr === '(':\n if (IS_NCG.test(string.slice(index + 1))) {\n index += 2;\n ncg = true;\n }\n result += chr;\n groupid++;\n continue;\n case chr === '>' && ncg:\n if (groupname === '' || has(names, groupname)) {\n throw new SyntaxError('Invalid capture group name');\n }\n names[groupname] = true;\n named.push([groupname, groupid]);\n ncg = false;\n groupname = '';\n continue;\n }\n if (ncg) groupname += chr;\n else result += chr;\n } return [result, named];\n};\n\n// `RegExp` constructor\n// https://tc39.es/ecma262/#sec-regexp-constructor\nif (isForced('RegExp', BASE_FORCED)) {\n var RegExpWrapper = function RegExp(pattern, flags) {\n var thisIsRegExp = this instanceof RegExpWrapper;\n var patternIsRegExp = isRegExp(pattern);\n var flagsAreUndefined = flags === undefined;\n var groups = [];\n var rawPattern = pattern;\n var rawFlags, dotAll, sticky, handled, result, state;\n\n if (!thisIsRegExp && patternIsRegExp && flagsAreUndefined && pattern.constructor === RegExpWrapper) {\n return pattern;\n }\n\n if (patternIsRegExp || pattern instanceof RegExpWrapper) {\n pattern = pattern.source;\n if (flagsAreUndefined) flags = 'flags' in rawPattern ? rawPattern.flags : getFlags.call(rawPattern);\n }\n\n pattern = pattern === undefined ? '' : toString(pattern);\n flags = flags === undefined ? '' : toString(flags);\n rawPattern = pattern;\n\n if (UNSUPPORTED_DOT_ALL && 'dotAll' in re1) {\n dotAll = !!flags && flags.indexOf('s') > -1;\n if (dotAll) flags = flags.replace(/s/g, '');\n }\n\n rawFlags = flags;\n\n if (UNSUPPORTED_Y && 'sticky' in re1) {\n sticky = !!flags && flags.indexOf('y') > -1;\n if (sticky) flags = flags.replace(/y/g, '');\n }\n\n if (UNSUPPORTED_NCG) {\n handled = handleNCG(pattern);\n pattern = handled[0];\n groups = handled[1];\n }\n\n result = inheritIfRequired(NativeRegExp(pattern, flags), thisIsRegExp ? this : RegExpPrototype, RegExpWrapper);\n\n if (dotAll || sticky || groups.length) {\n state = enforceInternalState(result);\n if (dotAll) {\n state.dotAll = true;\n state.raw = RegExpWrapper(handleDotAll(pattern), rawFlags);\n }\n if (sticky) state.sticky = true;\n if (groups.length) state.groups = groups;\n }\n\n if (pattern !== rawPattern) try {\n // fails in old engines, but we have no alternatives for unsupported regex syntax\n createNonEnumerableProperty(result, 'source', rawPattern === '' ? '(?:)' : rawPattern);\n } catch (error) { /* empty */ }\n\n return result;\n };\n\n var proxy = function (key) {\n key in RegExpWrapper || defineProperty(RegExpWrapper, key, {\n configurable: true,\n get: function () { return NativeRegExp[key]; },\n set: function (it) { NativeRegExp[key] = it; }\n });\n };\n\n for (var keys = getOwnPropertyNames(NativeRegExp), index = 0; keys.length > index;) {\n proxy(keys[index++]);\n }\n\n RegExpPrototype.constructor = RegExpWrapper;\n RegExpWrapper.prototype = RegExpPrototype;\n redefine(global, 'RegExp', RegExpWrapper);\n}\n\n// https://tc39.es/ecma262/#sec-get-regexp-@@species\nsetSpecies('RegExp');\n","var DESCRIPTORS = require('../internals/descriptors');\nvar UNSUPPORTED_DOT_ALL = require('../internals/regexp-unsupported-dot-all');\nvar defineProperty = require('../internals/object-define-property').f;\nvar getInternalState = require('../internals/internal-state').get;\nvar RegExpPrototype = RegExp.prototype;\n\n// `RegExp.prototype.dotAll` getter\n// https://tc39.es/ecma262/#sec-get-regexp.prototype.dotall\nif (DESCRIPTORS && UNSUPPORTED_DOT_ALL) {\n defineProperty(RegExpPrototype, 'dotAll', {\n configurable: true,\n get: function () {\n if (this === RegExpPrototype) return undefined;\n // We can't use InternalStateModule.getterFor because\n // we don't add metadata for regexps created by a literal.\n if (this instanceof RegExp) {\n return !!getInternalState(this).dotAll;\n }\n throw TypeError('Incompatible receiver, RegExp required');\n }\n });\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar exec = require('../internals/regexp-exec');\n\n// `RegExp.prototype.exec` method\n// https://tc39.es/ecma262/#sec-regexp.prototype.exec\n$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {\n exec: exec\n});\n","var DESCRIPTORS = require('../internals/descriptors');\nvar objectDefinePropertyModule = require('../internals/object-define-property');\nvar regExpFlags = require('../internals/regexp-flags');\nvar fails = require('../internals/fails');\n\nvar FORCED = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n return Object.getOwnPropertyDescriptor(RegExp.prototype, 'flags').get.call({ dotAll: true, sticky: true }) !== 'sy';\n});\n\n// `RegExp.prototype.flags` getter\n// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags\nif (FORCED) objectDefinePropertyModule.f(RegExp.prototype, 'flags', {\n configurable: true,\n get: regExpFlags\n});\n","var DESCRIPTORS = require('../internals/descriptors');\nvar UNSUPPORTED_Y = require('../internals/regexp-sticky-helpers').UNSUPPORTED_Y;\nvar defineProperty = require('../internals/object-define-property').f;\nvar getInternalState = require('../internals/internal-state').get;\nvar RegExpPrototype = RegExp.prototype;\n\n// `RegExp.prototype.sticky` getter\n// https://tc39.es/ecma262/#sec-get-regexp.prototype.sticky\nif (DESCRIPTORS && UNSUPPORTED_Y) {\n defineProperty(RegExpPrototype, 'sticky', {\n configurable: true,\n get: function () {\n if (this === RegExpPrototype) return undefined;\n // We can't use InternalStateModule.getterFor because\n // we don't add metadata for regexps created by a literal.\n if (this instanceof RegExp) {\n return !!getInternalState(this).sticky;\n }\n throw TypeError('Incompatible receiver, RegExp required');\n }\n });\n}\n","'use strict';\n// TODO: Remove from `core-js@4` since it's moved to entry points\nrequire('../modules/es.regexp.exec');\nvar $ = require('../internals/export');\nvar isObject = require('../internals/is-object');\n\nvar DELEGATES_TO_EXEC = function () {\n var execCalled = false;\n var re = /[ac]/;\n re.exec = function () {\n execCalled = true;\n return /./.exec.apply(this, arguments);\n };\n return re.test('abc') === true && execCalled;\n}();\n\nvar nativeTest = /./.test;\n\n// `RegExp.prototype.test` method\n// https://tc39.es/ecma262/#sec-regexp.prototype.test\n$({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {\n test: function (str) {\n if (typeof this.exec !== 'function') {\n return nativeTest.call(this, str);\n }\n var result = this.exec(str);\n if (result !== null && !isObject(result)) {\n throw new Error('RegExp exec method returned something other than an Object or null');\n }\n return !!result;\n }\n});\n","'use strict';\nvar redefine = require('../internals/redefine');\nvar anObject = require('../internals/an-object');\nvar $toString = require('../internals/to-string');\nvar fails = require('../internals/fails');\nvar flags = require('../internals/regexp-flags');\n\nvar TO_STRING = 'toString';\nvar RegExpPrototype = RegExp.prototype;\nvar nativeToString = RegExpPrototype[TO_STRING];\n\nvar NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });\n// FF44- RegExp#toString has a wrong name\nvar INCORRECT_NAME = nativeToString.name != TO_STRING;\n\n// `RegExp.prototype.toString` method\n// https://tc39.es/ecma262/#sec-regexp.prototype.tostring\nif (NOT_GENERIC || INCORRECT_NAME) {\n redefine(RegExp.prototype, TO_STRING, function toString() {\n var R = anObject(this);\n var p = $toString(R.source);\n var rf = R.flags;\n var f = $toString(rf === undefined && R instanceof RegExp && !('flags' in RegExpPrototype) ? flags.call(R) : rf);\n return '/' + p + '/' + f;\n }, { unsafe: true });\n}\n","'use strict';\nvar collection = require('../internals/collection');\nvar collectionStrong = require('../internals/collection-strong');\n\n// `Set` constructor\n// https://tc39.es/ecma262/#sec-set-objects\nmodule.exports = collection('Set', function (init) {\n return function Set() { return init(this, arguments.length ? arguments[0] : undefined); };\n}, collectionStrong);\n","'use strict';\nvar $ = require('../internals/export');\nvar createHTML = require('../internals/create-html');\nvar forcedStringHTMLMethod = require('../internals/string-html-forced');\n\n// `String.prototype.anchor` method\n// https://tc39.es/ecma262/#sec-string.prototype.anchor\n$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('anchor') }, {\n anchor: function anchor(name) {\n return createHTML(this, 'a', 'name', name);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar createHTML = require('../internals/create-html');\nvar forcedStringHTMLMethod = require('../internals/string-html-forced');\n\n// `String.prototype.big` method\n// https://tc39.es/ecma262/#sec-string.prototype.big\n$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('big') }, {\n big: function big() {\n return createHTML(this, 'big', '', '');\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar createHTML = require('../internals/create-html');\nvar forcedStringHTMLMethod = require('../internals/string-html-forced');\n\n// `String.prototype.blink` method\n// https://tc39.es/ecma262/#sec-string.prototype.blink\n$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('blink') }, {\n blink: function blink() {\n return createHTML(this, 'blink', '', '');\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar createHTML = require('../internals/create-html');\nvar forcedStringHTMLMethod = require('../internals/string-html-forced');\n\n// `String.prototype.bold` method\n// https://tc39.es/ecma262/#sec-string.prototype.bold\n$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('bold') }, {\n bold: function bold() {\n return createHTML(this, 'b', '', '');\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar codeAt = require('../internals/string-multibyte').codeAt;\n\n// `String.prototype.codePointAt` method\n// https://tc39.es/ecma262/#sec-string.prototype.codepointat\n$({ target: 'String', proto: true }, {\n codePointAt: function codePointAt(pos) {\n return codeAt(this, pos);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar toLength = require('../internals/to-length');\nvar toString = require('../internals/to-string');\nvar notARegExp = require('../internals/not-a-regexp');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');\nvar IS_PURE = require('../internals/is-pure');\n\n// eslint-disable-next-line es/no-string-prototype-endswith -- safe\nvar $endsWith = ''.endsWith;\nvar min = Math.min;\n\nvar CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('endsWith');\n// https://github.com/zloirock/core-js/pull/702\nvar MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function () {\n var descriptor = getOwnPropertyDescriptor(String.prototype, 'endsWith');\n return descriptor && !descriptor.writable;\n}();\n\n// `String.prototype.endsWith` method\n// https://tc39.es/ecma262/#sec-string.prototype.endswith\n$({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {\n endsWith: function endsWith(searchString /* , endPosition = @length */) {\n var that = toString(requireObjectCoercible(this));\n notARegExp(searchString);\n var endPosition = arguments.length > 1 ? arguments[1] : undefined;\n var len = toLength(that.length);\n var end = endPosition === undefined ? len : min(toLength(endPosition), len);\n var search = toString(searchString);\n return $endsWith\n ? $endsWith.call(that, search, end)\n : that.slice(end - search.length, end) === search;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar createHTML = require('../internals/create-html');\nvar forcedStringHTMLMethod = require('../internals/string-html-forced');\n\n// `String.prototype.fixed` method\n// https://tc39.es/ecma262/#sec-string.prototype.fixed\n$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('fixed') }, {\n fixed: function fixed() {\n return createHTML(this, 'tt', '', '');\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar createHTML = require('../internals/create-html');\nvar forcedStringHTMLMethod = require('../internals/string-html-forced');\n\n// `String.prototype.fontcolor` method\n// https://tc39.es/ecma262/#sec-string.prototype.fontcolor\n$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('fontcolor') }, {\n fontcolor: function fontcolor(color) {\n return createHTML(this, 'font', 'color', color);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar createHTML = require('../internals/create-html');\nvar forcedStringHTMLMethod = require('../internals/string-html-forced');\n\n// `String.prototype.fontsize` method\n// https://tc39.es/ecma262/#sec-string.prototype.fontsize\n$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('fontsize') }, {\n fontsize: function fontsize(size) {\n return createHTML(this, 'font', 'size', size);\n }\n});\n","var $ = require('../internals/export');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\n\nvar fromCharCode = String.fromCharCode;\n// eslint-disable-next-line es/no-string-fromcodepoint -- required for testing\nvar $fromCodePoint = String.fromCodePoint;\n\n// length should be 1, old FF problem\nvar INCORRECT_LENGTH = !!$fromCodePoint && $fromCodePoint.length != 1;\n\n// `String.fromCodePoint` method\n// https://tc39.es/ecma262/#sec-string.fromcodepoint\n$({ target: 'String', stat: true, forced: INCORRECT_LENGTH }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n fromCodePoint: function fromCodePoint(x) {\n var elements = [];\n var length = arguments.length;\n var i = 0;\n var code;\n while (length > i) {\n code = +arguments[i++];\n if (toAbsoluteIndex(code, 0x10FFFF) !== code) throw RangeError(code + ' is not a valid code point');\n elements.push(code < 0x10000\n ? fromCharCode(code)\n : fromCharCode(((code -= 0x10000) >> 10) + 0xD800, code % 0x400 + 0xDC00)\n );\n } return elements.join('');\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar notARegExp = require('../internals/not-a-regexp');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\nvar correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');\n\n// `String.prototype.includes` method\n// https://tc39.es/ecma262/#sec-string.prototype.includes\n$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {\n includes: function includes(searchString /* , position = 0 */) {\n return !!~toString(requireObjectCoercible(this))\n .indexOf(toString(notARegExp(searchString)), arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar createHTML = require('../internals/create-html');\nvar forcedStringHTMLMethod = require('../internals/string-html-forced');\n\n// `String.prototype.italics` method\n// https://tc39.es/ecma262/#sec-string.prototype.italics\n$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('italics') }, {\n italics: function italics() {\n return createHTML(this, 'i', '', '');\n }\n});\n","'use strict';\nvar charAt = require('../internals/string-multibyte').charAt;\nvar toString = require('../internals/to-string');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineIterator = require('../internals/define-iterator');\n\nvar STRING_ITERATOR = 'String Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);\n\n// `String.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-string.prototype-@@iterator\ndefineIterator(String, 'String', function (iterated) {\n setInternalState(this, {\n type: STRING_ITERATOR,\n string: toString(iterated),\n index: 0\n });\n// `%StringIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next\n}, function next() {\n var state = getInternalState(this);\n var string = state.string;\n var index = state.index;\n var point;\n if (index >= string.length) return { value: undefined, done: true };\n point = charAt(string, index);\n state.index += point.length;\n return { value: point, done: false };\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar createHTML = require('../internals/create-html');\nvar forcedStringHTMLMethod = require('../internals/string-html-forced');\n\n// `String.prototype.link` method\n// https://tc39.es/ecma262/#sec-string.prototype.link\n$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('link') }, {\n link: function link(url) {\n return createHTML(this, 'a', 'href', url);\n }\n});\n","'use strict';\n/* eslint-disable es/no-string-prototype-matchall -- safe */\nvar $ = require('../internals/export');\nvar createIteratorConstructor = require('../internals/create-iterator-constructor');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toLength = require('../internals/to-length');\nvar toString = require('../internals/to-string');\nvar aFunction = require('../internals/a-function');\nvar anObject = require('../internals/an-object');\nvar classof = require('../internals/classof-raw');\nvar isRegExp = require('../internals/is-regexp');\nvar getRegExpFlags = require('../internals/regexp-flags');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar fails = require('../internals/fails');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar speciesConstructor = require('../internals/species-constructor');\nvar advanceStringIndex = require('../internals/advance-string-index');\nvar InternalStateModule = require('../internals/internal-state');\nvar IS_PURE = require('../internals/is-pure');\n\nvar MATCH_ALL = wellKnownSymbol('matchAll');\nvar REGEXP_STRING = 'RegExp String';\nvar REGEXP_STRING_ITERATOR = REGEXP_STRING + ' Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(REGEXP_STRING_ITERATOR);\nvar RegExpPrototype = RegExp.prototype;\nvar regExpBuiltinExec = RegExpPrototype.exec;\nvar nativeMatchAll = ''.matchAll;\n\nvar WORKS_WITH_NON_GLOBAL_REGEX = !!nativeMatchAll && !fails(function () {\n 'a'.matchAll(/./);\n});\n\nvar regExpExec = function (R, S) {\n var exec = R.exec;\n var result;\n if (typeof exec == 'function') {\n result = exec.call(R, S);\n if (typeof result != 'object') throw TypeError('Incorrect exec result');\n return result;\n } return regExpBuiltinExec.call(R, S);\n};\n\n// eslint-disable-next-line max-len -- ignore\nvar $RegExpStringIterator = createIteratorConstructor(function RegExpStringIterator(regexp, string, global, fullUnicode) {\n setInternalState(this, {\n type: REGEXP_STRING_ITERATOR,\n regexp: regexp,\n string: string,\n global: global,\n unicode: fullUnicode,\n done: false\n });\n}, REGEXP_STRING, function next() {\n var state = getInternalState(this);\n if (state.done) return { value: undefined, done: true };\n var R = state.regexp;\n var S = state.string;\n var match = regExpExec(R, S);\n if (match === null) return { value: undefined, done: state.done = true };\n if (state.global) {\n if (toString(match[0]) === '') R.lastIndex = advanceStringIndex(S, toLength(R.lastIndex), state.unicode);\n return { value: match, done: false };\n }\n state.done = true;\n return { value: match, done: false };\n});\n\nvar $matchAll = function (string) {\n var R = anObject(this);\n var S = toString(string);\n var C, flagsValue, flags, matcher, global, fullUnicode;\n C = speciesConstructor(R, RegExp);\n flagsValue = R.flags;\n if (flagsValue === undefined && R instanceof RegExp && !('flags' in RegExpPrototype)) {\n flagsValue = getRegExpFlags.call(R);\n }\n flags = flagsValue === undefined ? '' : toString(flagsValue);\n matcher = new C(C === RegExp ? R.source : R, flags);\n global = !!~flags.indexOf('g');\n fullUnicode = !!~flags.indexOf('u');\n matcher.lastIndex = toLength(R.lastIndex);\n return new $RegExpStringIterator(matcher, S, global, fullUnicode);\n};\n\n// `String.prototype.matchAll` method\n// https://tc39.es/ecma262/#sec-string.prototype.matchall\n$({ target: 'String', proto: true, forced: WORKS_WITH_NON_GLOBAL_REGEX }, {\n matchAll: function matchAll(regexp) {\n var O = requireObjectCoercible(this);\n var flags, S, matcher, rx;\n if (regexp != null) {\n if (isRegExp(regexp)) {\n flags = toString(requireObjectCoercible('flags' in RegExpPrototype\n ? regexp.flags\n : getRegExpFlags.call(regexp)\n ));\n if (!~flags.indexOf('g')) throw TypeError('`.matchAll` does not allow non-global regexes');\n }\n if (WORKS_WITH_NON_GLOBAL_REGEX) return nativeMatchAll.apply(O, arguments);\n matcher = regexp[MATCH_ALL];\n if (matcher === undefined && IS_PURE && classof(regexp) == 'RegExp') matcher = $matchAll;\n if (matcher != null) return aFunction(matcher).call(regexp, O);\n } else if (WORKS_WITH_NON_GLOBAL_REGEX) return nativeMatchAll.apply(O, arguments);\n S = toString(O);\n rx = new RegExp(regexp, 'g');\n return IS_PURE ? $matchAll.call(rx, S) : rx[MATCH_ALL](S);\n }\n});\n\nIS_PURE || MATCH_ALL in RegExpPrototype || createNonEnumerableProperty(RegExpPrototype, MATCH_ALL, $matchAll);\n","'use strict';\nvar fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic');\nvar anObject = require('../internals/an-object');\nvar toLength = require('../internals/to-length');\nvar toString = require('../internals/to-string');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar advanceStringIndex = require('../internals/advance-string-index');\nvar regExpExec = require('../internals/regexp-exec-abstract');\n\n// @@match logic\nfixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNative) {\n return [\n // `String.prototype.match` method\n // https://tc39.es/ecma262/#sec-string.prototype.match\n function match(regexp) {\n var O = requireObjectCoercible(this);\n var matcher = regexp == undefined ? undefined : regexp[MATCH];\n return matcher !== undefined ? matcher.call(regexp, O) : new RegExp(regexp)[MATCH](toString(O));\n },\n // `RegExp.prototype[@@match]` method\n // https://tc39.es/ecma262/#sec-regexp.prototype-@@match\n function (string) {\n var rx = anObject(this);\n var S = toString(string);\n var res = maybeCallNative(nativeMatch, rx, S);\n\n if (res.done) return res.value;\n\n if (!rx.global) return regExpExec(rx, S);\n\n var fullUnicode = rx.unicode;\n rx.lastIndex = 0;\n var A = [];\n var n = 0;\n var result;\n while ((result = regExpExec(rx, S)) !== null) {\n var matchStr = toString(result[0]);\n A[n] = matchStr;\n if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);\n n++;\n }\n return n === 0 ? null : A;\n }\n ];\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $padEnd = require('../internals/string-pad').end;\nvar WEBKIT_BUG = require('../internals/string-pad-webkit-bug');\n\n// `String.prototype.padEnd` method\n// https://tc39.es/ecma262/#sec-string.prototype.padend\n$({ target: 'String', proto: true, forced: WEBKIT_BUG }, {\n padEnd: function padEnd(maxLength /* , fillString = ' ' */) {\n return $padEnd(this, maxLength, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $padStart = require('../internals/string-pad').start;\nvar WEBKIT_BUG = require('../internals/string-pad-webkit-bug');\n\n// `String.prototype.padStart` method\n// https://tc39.es/ecma262/#sec-string.prototype.padstart\n$({ target: 'String', proto: true, forced: WEBKIT_BUG }, {\n padStart: function padStart(maxLength /* , fillString = ' ' */) {\n return $padStart(this, maxLength, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","var $ = require('../internals/export');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toLength = require('../internals/to-length');\nvar toString = require('../internals/to-string');\n\n// `String.raw` method\n// https://tc39.es/ecma262/#sec-string.raw\n$({ target: 'String', stat: true }, {\n raw: function raw(template) {\n var rawTemplate = toIndexedObject(template.raw);\n var literalSegments = toLength(rawTemplate.length);\n var argumentsLength = arguments.length;\n var elements = [];\n var i = 0;\n while (literalSegments > i) {\n elements.push(toString(rawTemplate[i++]));\n if (i < argumentsLength) elements.push(toString(arguments[i]));\n } return elements.join('');\n }\n});\n","var $ = require('../internals/export');\nvar repeat = require('../internals/string-repeat');\n\n// `String.prototype.repeat` method\n// https://tc39.es/ecma262/#sec-string.prototype.repeat\n$({ target: 'String', proto: true }, {\n repeat: repeat\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar isRegExp = require('../internals/is-regexp');\nvar toString = require('../internals/to-string');\nvar getRegExpFlags = require('../internals/regexp-flags');\nvar getSubstitution = require('../internals/get-substitution');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\n\nvar REPLACE = wellKnownSymbol('replace');\nvar RegExpPrototype = RegExp.prototype;\nvar max = Math.max;\n\nvar stringIndexOf = function (string, searchValue, fromIndex) {\n if (fromIndex > string.length) return -1;\n if (searchValue === '') return fromIndex;\n return string.indexOf(searchValue, fromIndex);\n};\n\n// `String.prototype.replaceAll` method\n// https://tc39.es/ecma262/#sec-string.prototype.replaceall\n$({ target: 'String', proto: true }, {\n replaceAll: function replaceAll(searchValue, replaceValue) {\n var O = requireObjectCoercible(this);\n var IS_REG_EXP, flags, replacer, string, searchString, functionalReplace, searchLength, advanceBy, replacement;\n var position = 0;\n var endOfLastMatch = 0;\n var result = '';\n if (searchValue != null) {\n IS_REG_EXP = isRegExp(searchValue);\n if (IS_REG_EXP) {\n flags = toString(requireObjectCoercible('flags' in RegExpPrototype\n ? searchValue.flags\n : getRegExpFlags.call(searchValue)\n ));\n if (!~flags.indexOf('g')) throw TypeError('`.replaceAll` does not allow non-global regexes');\n }\n replacer = searchValue[REPLACE];\n if (replacer !== undefined) {\n return replacer.call(searchValue, O, replaceValue);\n } else if (IS_PURE && IS_REG_EXP) {\n return toString(O).replace(searchValue, replaceValue);\n }\n }\n string = toString(O);\n searchString = toString(searchValue);\n functionalReplace = typeof replaceValue === 'function';\n if (!functionalReplace) replaceValue = toString(replaceValue);\n searchLength = searchString.length;\n advanceBy = max(1, searchLength);\n position = stringIndexOf(string, searchString, 0);\n while (position !== -1) {\n if (functionalReplace) {\n replacement = toString(replaceValue(searchString, position, string));\n } else {\n replacement = getSubstitution(searchString, string, position, [], undefined, replaceValue);\n }\n result += string.slice(endOfLastMatch, position) + replacement;\n endOfLastMatch = position + searchLength;\n position = stringIndexOf(string, searchString, position + advanceBy);\n }\n if (endOfLastMatch < string.length) {\n result += string.slice(endOfLastMatch);\n }\n return result;\n }\n});\n","'use strict';\nvar fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic');\nvar fails = require('../internals/fails');\nvar anObject = require('../internals/an-object');\nvar toInteger = require('../internals/to-integer');\nvar toLength = require('../internals/to-length');\nvar toString = require('../internals/to-string');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar advanceStringIndex = require('../internals/advance-string-index');\nvar getSubstitution = require('../internals/get-substitution');\nvar regExpExec = require('../internals/regexp-exec-abstract');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar REPLACE = wellKnownSymbol('replace');\nvar max = Math.max;\nvar min = Math.min;\n\nvar maybeToString = function (it) {\n return it === undefined ? it : String(it);\n};\n\n// IE <= 11 replaces $0 with the whole match, as if it was $&\n// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0\nvar REPLACE_KEEPS_$0 = (function () {\n // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing\n return 'a'.replace(/./, '$0') === '$0';\n})();\n\n// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string\nvar REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {\n if (/./[REPLACE]) {\n return /./[REPLACE]('a', '$0') === '';\n }\n return false;\n})();\n\nvar REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {\n var re = /./;\n re.exec = function () {\n var result = [];\n result.groups = { a: '7' };\n return result;\n };\n return ''.replace(re, '$') !== '7';\n});\n\n// @@replace logic\nfixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {\n var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';\n\n return [\n // `String.prototype.replace` method\n // https://tc39.es/ecma262/#sec-string.prototype.replace\n function replace(searchValue, replaceValue) {\n var O = requireObjectCoercible(this);\n var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];\n return replacer !== undefined\n ? replacer.call(searchValue, O, replaceValue)\n : nativeReplace.call(toString(O), searchValue, replaceValue);\n },\n // `RegExp.prototype[@@replace]` method\n // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace\n function (string, replaceValue) {\n var rx = anObject(this);\n var S = toString(string);\n\n if (\n typeof replaceValue === 'string' &&\n replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1 &&\n replaceValue.indexOf('$<') === -1\n ) {\n var res = maybeCallNative(nativeReplace, rx, S, replaceValue);\n if (res.done) return res.value;\n }\n\n var functionalReplace = typeof replaceValue === 'function';\n if (!functionalReplace) replaceValue = toString(replaceValue);\n\n var global = rx.global;\n if (global) {\n var fullUnicode = rx.unicode;\n rx.lastIndex = 0;\n }\n var results = [];\n while (true) {\n var result = regExpExec(rx, S);\n if (result === null) break;\n\n results.push(result);\n if (!global) break;\n\n var matchStr = toString(result[0]);\n if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);\n }\n\n var accumulatedResult = '';\n var nextSourcePosition = 0;\n for (var i = 0; i < results.length; i++) {\n result = results[i];\n\n var matched = toString(result[0]);\n var position = max(min(toInteger(result.index), S.length), 0);\n var captures = [];\n // NOTE: This is equivalent to\n // captures = result.slice(1).map(maybeToString)\n // but for some reason `nativeSlice.call(result, 1, result.length)` (called in\n // the slice polyfill when slicing native arrays) \"doesn't work\" in safari 9 and\n // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.\n for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));\n var namedCaptures = result.groups;\n if (functionalReplace) {\n var replacerArgs = [matched].concat(captures, position, S);\n if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);\n var replacement = toString(replaceValue.apply(undefined, replacerArgs));\n } else {\n replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);\n }\n if (position >= nextSourcePosition) {\n accumulatedResult += S.slice(nextSourcePosition, position) + replacement;\n nextSourcePosition = position + matched.length;\n }\n }\n return accumulatedResult + S.slice(nextSourcePosition);\n }\n ];\n}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);\n","'use strict';\nvar fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic');\nvar anObject = require('../internals/an-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar sameValue = require('../internals/same-value');\nvar toString = require('../internals/to-string');\nvar regExpExec = require('../internals/regexp-exec-abstract');\n\n// @@search logic\nfixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCallNative) {\n return [\n // `String.prototype.search` method\n // https://tc39.es/ecma262/#sec-string.prototype.search\n function search(regexp) {\n var O = requireObjectCoercible(this);\n var searcher = regexp == undefined ? undefined : regexp[SEARCH];\n return searcher !== undefined ? searcher.call(regexp, O) : new RegExp(regexp)[SEARCH](toString(O));\n },\n // `RegExp.prototype[@@search]` method\n // https://tc39.es/ecma262/#sec-regexp.prototype-@@search\n function (string) {\n var rx = anObject(this);\n var S = toString(string);\n var res = maybeCallNative(nativeSearch, rx, S);\n\n if (res.done) return res.value;\n\n var previousLastIndex = rx.lastIndex;\n if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;\n var result = regExpExec(rx, S);\n if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;\n return result === null ? -1 : result.index;\n }\n ];\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar createHTML = require('../internals/create-html');\nvar forcedStringHTMLMethod = require('../internals/string-html-forced');\n\n// `String.prototype.small` method\n// https://tc39.es/ecma262/#sec-string.prototype.small\n$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('small') }, {\n small: function small() {\n return createHTML(this, 'small', '', '');\n }\n});\n","'use strict';\nvar fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic');\nvar isRegExp = require('../internals/is-regexp');\nvar anObject = require('../internals/an-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar speciesConstructor = require('../internals/species-constructor');\nvar advanceStringIndex = require('../internals/advance-string-index');\nvar toLength = require('../internals/to-length');\nvar toString = require('../internals/to-string');\nvar callRegExpExec = require('../internals/regexp-exec-abstract');\nvar regexpExec = require('../internals/regexp-exec');\nvar stickyHelpers = require('../internals/regexp-sticky-helpers');\nvar fails = require('../internals/fails');\n\nvar UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;\nvar arrayPush = [].push;\nvar min = Math.min;\nvar MAX_UINT32 = 0xFFFFFFFF;\n\n// Chrome 51 has a buggy \"split\" implementation when RegExp#exec !== nativeExec\n// Weex JS has frozen built-in prototypes, so use try / catch wrapper\nvar SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {\n // eslint-disable-next-line regexp/no-empty-group -- required for testing\n var re = /(?:)/;\n var originalExec = re.exec;\n re.exec = function () { return originalExec.apply(this, arguments); };\n var result = 'ab'.split(re);\n return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';\n});\n\n// @@split logic\nfixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNative) {\n var internalSplit;\n if (\n 'abbc'.split(/(b)*/)[1] == 'c' ||\n // eslint-disable-next-line regexp/no-empty-group -- required for testing\n 'test'.split(/(?:)/, -1).length != 4 ||\n 'ab'.split(/(?:ab)*/).length != 2 ||\n '.'.split(/(.?)(.?)/).length != 4 ||\n // eslint-disable-next-line regexp/no-assertion-capturing-group, regexp/no-empty-group -- required for testing\n '.'.split(/()()/).length > 1 ||\n ''.split(/.?/).length\n ) {\n // based on es5-shim implementation, need to rework it\n internalSplit = function (separator, limit) {\n var string = toString(requireObjectCoercible(this));\n var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;\n if (lim === 0) return [];\n if (separator === undefined) return [string];\n // If `separator` is not a regex, use native split\n if (!isRegExp(separator)) {\n return nativeSplit.call(string, separator, lim);\n }\n var output = [];\n var flags = (separator.ignoreCase ? 'i' : '') +\n (separator.multiline ? 'm' : '') +\n (separator.unicode ? 'u' : '') +\n (separator.sticky ? 'y' : '');\n var lastLastIndex = 0;\n // Make `global` and avoid `lastIndex` issues by working with a copy\n var separatorCopy = new RegExp(separator.source, flags + 'g');\n var match, lastIndex, lastLength;\n while (match = regexpExec.call(separatorCopy, string)) {\n lastIndex = separatorCopy.lastIndex;\n if (lastIndex > lastLastIndex) {\n output.push(string.slice(lastLastIndex, match.index));\n if (match.length > 1 && match.index < string.length) arrayPush.apply(output, match.slice(1));\n lastLength = match[0].length;\n lastLastIndex = lastIndex;\n if (output.length >= lim) break;\n }\n if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop\n }\n if (lastLastIndex === string.length) {\n if (lastLength || !separatorCopy.test('')) output.push('');\n } else output.push(string.slice(lastLastIndex));\n return output.length > lim ? output.slice(0, lim) : output;\n };\n // Chakra, V8\n } else if ('0'.split(undefined, 0).length) {\n internalSplit = function (separator, limit) {\n return separator === undefined && limit === 0 ? [] : nativeSplit.call(this, separator, limit);\n };\n } else internalSplit = nativeSplit;\n\n return [\n // `String.prototype.split` method\n // https://tc39.es/ecma262/#sec-string.prototype.split\n function split(separator, limit) {\n var O = requireObjectCoercible(this);\n var splitter = separator == undefined ? undefined : separator[SPLIT];\n return splitter !== undefined\n ? splitter.call(separator, O, limit)\n : internalSplit.call(toString(O), separator, limit);\n },\n // `RegExp.prototype[@@split]` method\n // https://tc39.es/ecma262/#sec-regexp.prototype-@@split\n //\n // NOTE: This cannot be properly polyfilled in engines that don't support\n // the 'y' flag.\n function (string, limit) {\n var rx = anObject(this);\n var S = toString(string);\n var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);\n\n if (res.done) return res.value;\n\n var C = speciesConstructor(rx, RegExp);\n\n var unicodeMatching = rx.unicode;\n var flags = (rx.ignoreCase ? 'i' : '') +\n (rx.multiline ? 'm' : '') +\n (rx.unicode ? 'u' : '') +\n (UNSUPPORTED_Y ? 'g' : 'y');\n\n // ^(? + rx + ) is needed, in combination with some S slicing, to\n // simulate the 'y' flag.\n var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);\n var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;\n if (lim === 0) return [];\n if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];\n var p = 0;\n var q = 0;\n var A = [];\n while (q < S.length) {\n splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;\n var z = callRegExpExec(splitter, UNSUPPORTED_Y ? S.slice(q) : S);\n var e;\n if (\n z === null ||\n (e = min(toLength(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p\n ) {\n q = advanceStringIndex(S, q, unicodeMatching);\n } else {\n A.push(S.slice(p, q));\n if (A.length === lim) return A;\n for (var i = 1; i <= z.length - 1; i++) {\n A.push(z[i]);\n if (A.length === lim) return A;\n }\n q = p = e;\n }\n }\n A.push(S.slice(p));\n return A;\n }\n ];\n}, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);\n","'use strict';\nvar $ = require('../internals/export');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar toLength = require('../internals/to-length');\nvar toString = require('../internals/to-string');\nvar notARegExp = require('../internals/not-a-regexp');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');\nvar IS_PURE = require('../internals/is-pure');\n\n// eslint-disable-next-line es/no-string-prototype-startswith -- safe\nvar $startsWith = ''.startsWith;\nvar min = Math.min;\n\nvar CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith');\n// https://github.com/zloirock/core-js/pull/702\nvar MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function () {\n var descriptor = getOwnPropertyDescriptor(String.prototype, 'startsWith');\n return descriptor && !descriptor.writable;\n}();\n\n// `String.prototype.startsWith` method\n// https://tc39.es/ecma262/#sec-string.prototype.startswith\n$({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {\n startsWith: function startsWith(searchString /* , position = 0 */) {\n var that = toString(requireObjectCoercible(this));\n notARegExp(searchString);\n var index = toLength(min(arguments.length > 1 ? arguments[1] : undefined, that.length));\n var search = toString(searchString);\n return $startsWith\n ? $startsWith.call(that, search, index)\n : that.slice(index, index + search.length) === search;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar createHTML = require('../internals/create-html');\nvar forcedStringHTMLMethod = require('../internals/string-html-forced');\n\n// `String.prototype.strike` method\n// https://tc39.es/ecma262/#sec-string.prototype.strike\n$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('strike') }, {\n strike: function strike() {\n return createHTML(this, 'strike', '', '');\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar createHTML = require('../internals/create-html');\nvar forcedStringHTMLMethod = require('../internals/string-html-forced');\n\n// `String.prototype.sub` method\n// https://tc39.es/ecma262/#sec-string.prototype.sub\n$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('sub') }, {\n sub: function sub() {\n return createHTML(this, 'sub', '', '');\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toInteger = require('../internals/to-integer');\nvar toString = require('../internals/to-string');\n\nvar slice = ''.slice;\nvar max = Math.max;\nvar min = Math.min;\n\n// `String.prototype.substr` method\n// https://tc39.es/ecma262/#sec-string.prototype.substr\n$({ target: 'String', proto: true }, {\n substr: function substr(start, length) {\n var that = toString(requireObjectCoercible(this));\n var size = that.length;\n var intStart = toInteger(start);\n var intLength, intEnd;\n if (intStart === Infinity) intStart = 0;\n if (intStart < 0) intStart = max(size + intStart, 0);\n intLength = length === undefined ? size : toInteger(length);\n if (intLength <= 0 || intLength === Infinity) return '';\n intEnd = min(intStart + intLength, size);\n return intStart >= intEnd ? '' : slice.call(that, intStart, intEnd);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar createHTML = require('../internals/create-html');\nvar forcedStringHTMLMethod = require('../internals/string-html-forced');\n\n// `String.prototype.sup` method\n// https://tc39.es/ecma262/#sec-string.prototype.sup\n$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('sup') }, {\n sup: function sup() {\n return createHTML(this, 'sup', '', '');\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $trimEnd = require('../internals/string-trim').end;\nvar forcedStringTrimMethod = require('../internals/string-trim-forced');\n\nvar FORCED = forcedStringTrimMethod('trimEnd');\n\nvar trimEnd = FORCED ? function trimEnd() {\n return $trimEnd(this);\n// eslint-disable-next-line es/no-string-prototype-trimstart-trimend -- safe\n} : ''.trimEnd;\n\n// `String.prototype.{ trimEnd, trimRight }` methods\n// https://tc39.es/ecma262/#sec-string.prototype.trimend\n// https://tc39.es/ecma262/#String.prototype.trimright\n$({ target: 'String', proto: true, forced: FORCED }, {\n trimEnd: trimEnd,\n trimRight: trimEnd\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $trimStart = require('../internals/string-trim').start;\nvar forcedStringTrimMethod = require('../internals/string-trim-forced');\n\nvar FORCED = forcedStringTrimMethod('trimStart');\n\nvar trimStart = FORCED ? function trimStart() {\n return $trimStart(this);\n// eslint-disable-next-line es/no-string-prototype-trimstart-trimend -- safe\n} : ''.trimStart;\n\n// `String.prototype.{ trimStart, trimLeft }` methods\n// https://tc39.es/ecma262/#sec-string.prototype.trimstart\n// https://tc39.es/ecma262/#String.prototype.trimleft\n$({ target: 'String', proto: true, forced: FORCED }, {\n trimStart: trimStart,\n trimLeft: trimStart\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $trim = require('../internals/string-trim').trim;\nvar forcedStringTrimMethod = require('../internals/string-trim-forced');\n\n// `String.prototype.trim` method\n// https://tc39.es/ecma262/#sec-string.prototype.trim\n$({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {\n trim: function trim() {\n return $trim(this);\n }\n});\n","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.asyncIterator` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.asynciterator\ndefineWellKnownSymbol('asyncIterator');\n","// `Symbol.prototype.description` getter\n// https://tc39.es/ecma262/#sec-symbol.prototype.description\n'use strict';\nvar $ = require('../internals/export');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar global = require('../internals/global');\nvar has = require('../internals/has');\nvar isObject = require('../internals/is-object');\nvar defineProperty = require('../internals/object-define-property').f;\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\n\nvar NativeSymbol = global.Symbol;\n\nif (DESCRIPTORS && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||\n // Safari 12 bug\n NativeSymbol().description !== undefined\n)) {\n var EmptyStringDescriptionStore = {};\n // wrap Symbol constructor for correct work with undefined description\n var SymbolWrapper = function Symbol() {\n var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);\n var result = this instanceof SymbolWrapper\n ? new NativeSymbol(description)\n // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'\n : description === undefined ? NativeSymbol() : NativeSymbol(description);\n if (description === '') EmptyStringDescriptionStore[result] = true;\n return result;\n };\n copyConstructorProperties(SymbolWrapper, NativeSymbol);\n var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;\n symbolPrototype.constructor = SymbolWrapper;\n\n var symbolToString = symbolPrototype.toString;\n var native = String(NativeSymbol('test')) == 'Symbol(test)';\n var regexp = /^Symbol\\((.*)\\)[^)]+$/;\n defineProperty(symbolPrototype, 'description', {\n configurable: true,\n get: function description() {\n var symbol = isObject(this) ? this.valueOf() : this;\n var string = symbolToString.call(symbol);\n if (has(EmptyStringDescriptionStore, symbol)) return '';\n var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1');\n return desc === '' ? undefined : desc;\n }\n });\n\n $({ global: true, forced: true }, {\n Symbol: SymbolWrapper\n });\n}\n","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.hasInstance` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.hasinstance\ndefineWellKnownSymbol('hasInstance');\n","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.isConcatSpreadable` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.isconcatspreadable\ndefineWellKnownSymbol('isConcatSpreadable');\n","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.iterator` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.iterator\ndefineWellKnownSymbol('iterator');\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar getBuiltIn = require('../internals/get-built-in');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar NATIVE_SYMBOL = require('../internals/native-symbol');\nvar fails = require('../internals/fails');\nvar has = require('../internals/has');\nvar isArray = require('../internals/is-array');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar anObject = require('../internals/an-object');\nvar toObject = require('../internals/to-object');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar $toString = require('../internals/to-string');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar nativeObjectCreate = require('../internals/object-create');\nvar objectKeys = require('../internals/object-keys');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertyNamesExternal = require('../internals/object-get-own-property-names-external');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar redefine = require('../internals/redefine');\nvar shared = require('../internals/shared');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar uid = require('../internals/uid');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar wrappedWellKnownSymbolModule = require('../internals/well-known-symbol-wrapped');\nvar defineWellKnownSymbol = require('../internals/define-well-known-symbol');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar InternalStateModule = require('../internals/internal-state');\nvar $forEach = require('../internals/array-iteration').forEach;\n\nvar HIDDEN = sharedKey('hidden');\nvar SYMBOL = 'Symbol';\nvar PROTOTYPE = 'prototype';\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(SYMBOL);\nvar ObjectPrototype = Object[PROTOTYPE];\nvar $Symbol = global.Symbol;\nvar $stringify = getBuiltIn('JSON', 'stringify');\nvar nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\nvar nativeDefineProperty = definePropertyModule.f;\nvar nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f;\nvar nativePropertyIsEnumerable = propertyIsEnumerableModule.f;\nvar AllSymbols = shared('symbols');\nvar ObjectPrototypeSymbols = shared('op-symbols');\nvar StringToSymbolRegistry = shared('string-to-symbol-registry');\nvar SymbolToStringRegistry = shared('symbol-to-string-registry');\nvar WellKnownSymbolsStore = shared('wks');\nvar QObject = global.QObject;\n// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\nvar USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDescriptor = DESCRIPTORS && fails(function () {\n return nativeObjectCreate(nativeDefineProperty({}, 'a', {\n get: function () { return nativeDefineProperty(this, 'a', { value: 7 }).a; }\n })).a != 7;\n}) ? function (O, P, Attributes) {\n var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype, P);\n if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];\n nativeDefineProperty(O, P, Attributes);\n if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {\n nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor);\n }\n} : nativeDefineProperty;\n\nvar wrap = function (tag, description) {\n var symbol = AllSymbols[tag] = nativeObjectCreate($Symbol[PROTOTYPE]);\n setInternalState(symbol, {\n type: SYMBOL,\n tag: tag,\n description: description\n });\n if (!DESCRIPTORS) symbol.description = description;\n return symbol;\n};\n\nvar $defineProperty = function defineProperty(O, P, Attributes) {\n if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);\n anObject(O);\n var key = toPropertyKey(P);\n anObject(Attributes);\n if (has(AllSymbols, key)) {\n if (!Attributes.enumerable) {\n if (!has(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, {}));\n O[HIDDEN][key] = true;\n } else {\n if (has(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;\n Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });\n } return setSymbolDescriptor(O, key, Attributes);\n } return nativeDefineProperty(O, key, Attributes);\n};\n\nvar $defineProperties = function defineProperties(O, Properties) {\n anObject(O);\n var properties = toIndexedObject(Properties);\n var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));\n $forEach(keys, function (key) {\n if (!DESCRIPTORS || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);\n });\n return O;\n};\n\nvar $create = function create(O, Properties) {\n return Properties === undefined ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties);\n};\n\nvar $propertyIsEnumerable = function propertyIsEnumerable(V) {\n var P = toPropertyKey(V);\n var enumerable = nativePropertyIsEnumerable.call(this, P);\n if (this === ObjectPrototype && has(AllSymbols, P) && !has(ObjectPrototypeSymbols, P)) return false;\n return enumerable || !has(this, P) || !has(AllSymbols, P) || has(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;\n};\n\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {\n var it = toIndexedObject(O);\n var key = toPropertyKey(P);\n if (it === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key)) return;\n var descriptor = nativeGetOwnPropertyDescriptor(it, key);\n if (descriptor && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) {\n descriptor.enumerable = true;\n }\n return descriptor;\n};\n\nvar $getOwnPropertyNames = function getOwnPropertyNames(O) {\n var names = nativeGetOwnPropertyNames(toIndexedObject(O));\n var result = [];\n $forEach(names, function (key) {\n if (!has(AllSymbols, key) && !has(hiddenKeys, key)) result.push(key);\n });\n return result;\n};\n\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(O) {\n var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;\n var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));\n var result = [];\n $forEach(names, function (key) {\n if (has(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has(ObjectPrototype, key))) {\n result.push(AllSymbols[key]);\n }\n });\n return result;\n};\n\n// `Symbol` constructor\n// https://tc39.es/ecma262/#sec-symbol-constructor\nif (!NATIVE_SYMBOL) {\n $Symbol = function Symbol() {\n if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');\n var description = !arguments.length || arguments[0] === undefined ? undefined : $toString(arguments[0]);\n var tag = uid(description);\n var setter = function (value) {\n if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value);\n if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;\n setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));\n };\n if (DESCRIPTORS && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });\n return wrap(tag, description);\n };\n\n redefine($Symbol[PROTOTYPE], 'toString', function toString() {\n return getInternalState(this).tag;\n });\n\n redefine($Symbol, 'withoutSetter', function (description) {\n return wrap(uid(description), description);\n });\n\n propertyIsEnumerableModule.f = $propertyIsEnumerable;\n definePropertyModule.f = $defineProperty;\n getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor;\n getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;\n getOwnPropertySymbolsModule.f = $getOwnPropertySymbols;\n\n wrappedWellKnownSymbolModule.f = function (name) {\n return wrap(wellKnownSymbol(name), name);\n };\n\n if (DESCRIPTORS) {\n // https://github.com/tc39/proposal-Symbol-description\n nativeDefineProperty($Symbol[PROTOTYPE], 'description', {\n configurable: true,\n get: function description() {\n return getInternalState(this).description;\n }\n });\n if (!IS_PURE) {\n redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });\n }\n }\n}\n\n$({ global: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, {\n Symbol: $Symbol\n});\n\n$forEach(objectKeys(WellKnownSymbolsStore), function (name) {\n defineWellKnownSymbol(name);\n});\n\n$({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {\n // `Symbol.for` method\n // https://tc39.es/ecma262/#sec-symbol.for\n 'for': function (key) {\n var string = $toString(key);\n if (has(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];\n var symbol = $Symbol(string);\n StringToSymbolRegistry[string] = symbol;\n SymbolToStringRegistry[symbol] = string;\n return symbol;\n },\n // `Symbol.keyFor` method\n // https://tc39.es/ecma262/#sec-symbol.keyfor\n keyFor: function keyFor(sym) {\n if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');\n if (has(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];\n },\n useSetter: function () { USE_SETTER = true; },\n useSimple: function () { USE_SETTER = false; }\n});\n\n$({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS }, {\n // `Object.create` method\n // https://tc39.es/ecma262/#sec-object.create\n create: $create,\n // `Object.defineProperty` method\n // https://tc39.es/ecma262/#sec-object.defineproperty\n defineProperty: $defineProperty,\n // `Object.defineProperties` method\n // https://tc39.es/ecma262/#sec-object.defineproperties\n defineProperties: $defineProperties,\n // `Object.getOwnPropertyDescriptor` method\n // https://tc39.es/ecma262/#sec-object.getownpropertydescriptors\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor\n});\n\n$({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, {\n // `Object.getOwnPropertyNames` method\n // https://tc39.es/ecma262/#sec-object.getownpropertynames\n getOwnPropertyNames: $getOwnPropertyNames,\n // `Object.getOwnPropertySymbols` method\n // https://tc39.es/ecma262/#sec-object.getownpropertysymbols\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives\n// https://bugs.chromium.org/p/v8/issues/detail?id=3443\n$({ target: 'Object', stat: true, forced: fails(function () { getOwnPropertySymbolsModule.f(1); }) }, {\n getOwnPropertySymbols: function getOwnPropertySymbols(it) {\n return getOwnPropertySymbolsModule.f(toObject(it));\n }\n});\n\n// `JSON.stringify` method behavior with symbols\n// https://tc39.es/ecma262/#sec-json.stringify\nif ($stringify) {\n var FORCED_JSON_STRINGIFY = !NATIVE_SYMBOL || fails(function () {\n var symbol = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n return $stringify([symbol]) != '[null]'\n // WebKit converts symbol values to JSON as null\n || $stringify({ a: symbol }) != '{}'\n // V8 throws on boxed symbols\n || $stringify(Object(symbol)) != '{}';\n });\n\n $({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n stringify: function stringify(it, replacer, space) {\n var args = [it];\n var index = 1;\n var $replacer;\n while (arguments.length > index) args.push(arguments[index++]);\n $replacer = replacer;\n if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined\n if (!isArray(replacer)) replacer = function (key, value) {\n if (typeof $replacer == 'function') value = $replacer.call(this, key, value);\n if (!isSymbol(value)) return value;\n };\n args[1] = replacer;\n return $stringify.apply(null, args);\n }\n });\n}\n\n// `Symbol.prototype[@@toPrimitive]` method\n// https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive\nif (!$Symbol[PROTOTYPE][TO_PRIMITIVE]) {\n createNonEnumerableProperty($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);\n}\n// `Symbol.prototype[@@toStringTag]` property\n// https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag\nsetToStringTag($Symbol, SYMBOL);\n\nhiddenKeys[HIDDEN] = true;\n","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.matchAll` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.matchall\ndefineWellKnownSymbol('matchAll');\n","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.match` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.match\ndefineWellKnownSymbol('match');\n","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.replace` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.replace\ndefineWellKnownSymbol('replace');\n","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.search` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.search\ndefineWellKnownSymbol('search');\n","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.species` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.species\ndefineWellKnownSymbol('species');\n","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.split` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.split\ndefineWellKnownSymbol('split');\n","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.toPrimitive` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.toprimitive\ndefineWellKnownSymbol('toPrimitive');\n","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.toStringTag` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.tostringtag\ndefineWellKnownSymbol('toStringTag');\n","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.unscopables` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.unscopables\ndefineWellKnownSymbol('unscopables');\n","'use strict';\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar $copyWithin = require('../internals/array-copy-within');\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\n\n// `%TypedArray%.prototype.copyWithin` method\n// https://tc39.es/ecma262/#sec-%typedarray%.prototype.copywithin\nexportTypedArrayMethod('copyWithin', function copyWithin(target, start /* , end */) {\n return $copyWithin.call(aTypedArray(this), target, start, arguments.length > 2 ? arguments[2] : undefined);\n});\n","'use strict';\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar $every = require('../internals/array-iteration').every;\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\n\n// `%TypedArray%.prototype.every` method\n// https://tc39.es/ecma262/#sec-%typedarray%.prototype.every\nexportTypedArrayMethod('every', function every(callbackfn /* , thisArg */) {\n return $every(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n});\n","'use strict';\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar $fill = require('../internals/array-fill');\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\n\n// `%TypedArray%.prototype.fill` method\n// https://tc39.es/ecma262/#sec-%typedarray%.prototype.fill\n// eslint-disable-next-line no-unused-vars -- required for `.length`\nexportTypedArrayMethod('fill', function fill(value /* , start, end */) {\n return $fill.apply(aTypedArray(this), arguments);\n});\n","'use strict';\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar $filter = require('../internals/array-iteration').filter;\nvar fromSpeciesAndList = require('../internals/typed-array-from-species-and-list');\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\n\n// `%TypedArray%.prototype.filter` method\n// https://tc39.es/ecma262/#sec-%typedarray%.prototype.filter\nexportTypedArrayMethod('filter', function filter(callbackfn /* , thisArg */) {\n var list = $filter(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n return fromSpeciesAndList(this, list);\n});\n","'use strict';\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar $findIndex = require('../internals/array-iteration').findIndex;\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\n\n// `%TypedArray%.prototype.findIndex` method\n// https://tc39.es/ecma262/#sec-%typedarray%.prototype.findindex\nexportTypedArrayMethod('findIndex', function findIndex(predicate /* , thisArg */) {\n return $findIndex(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : undefined);\n});\n","'use strict';\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar $find = require('../internals/array-iteration').find;\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\n\n// `%TypedArray%.prototype.find` method\n// https://tc39.es/ecma262/#sec-%typedarray%.prototype.find\nexportTypedArrayMethod('find', function find(predicate /* , thisArg */) {\n return $find(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : undefined);\n});\n","var createTypedArrayConstructor = require('../internals/typed-array-constructor');\n\n// `Float32Array` constructor\n// https://tc39.es/ecma262/#sec-typedarray-objects\ncreateTypedArrayConstructor('Float32', function (init) {\n return function Float32Array(data, byteOffset, length) {\n return init(this, data, byteOffset, length);\n };\n});\n","var createTypedArrayConstructor = require('../internals/typed-array-constructor');\n\n// `Float64Array` constructor\n// https://tc39.es/ecma262/#sec-typedarray-objects\ncreateTypedArrayConstructor('Float64', function (init) {\n return function Float64Array(data, byteOffset, length) {\n return init(this, data, byteOffset, length);\n };\n});\n","'use strict';\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar $forEach = require('../internals/array-iteration').forEach;\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\n\n// `%TypedArray%.prototype.forEach` method\n// https://tc39.es/ecma262/#sec-%typedarray%.prototype.foreach\nexportTypedArrayMethod('forEach', function forEach(callbackfn /* , thisArg */) {\n $forEach(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n});\n","'use strict';\nvar TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = require('../internals/typed-array-constructors-require-wrappers');\nvar exportTypedArrayStaticMethod = require('../internals/array-buffer-view-core').exportTypedArrayStaticMethod;\nvar typedArrayFrom = require('../internals/typed-array-from');\n\n// `%TypedArray%.from` method\n// https://tc39.es/ecma262/#sec-%typedarray%.from\nexportTypedArrayStaticMethod('from', typedArrayFrom, TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS);\n","'use strict';\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar $includes = require('../internals/array-includes').includes;\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\n\n// `%TypedArray%.prototype.includes` method\n// https://tc39.es/ecma262/#sec-%typedarray%.prototype.includes\nexportTypedArrayMethod('includes', function includes(searchElement /* , fromIndex */) {\n return $includes(aTypedArray(this), searchElement, arguments.length > 1 ? arguments[1] : undefined);\n});\n","'use strict';\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar $indexOf = require('../internals/array-includes').indexOf;\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\n\n// `%TypedArray%.prototype.indexOf` method\n// https://tc39.es/ecma262/#sec-%typedarray%.prototype.indexof\nexportTypedArrayMethod('indexOf', function indexOf(searchElement /* , fromIndex */) {\n return $indexOf(aTypedArray(this), searchElement, arguments.length > 1 ? arguments[1] : undefined);\n});\n","var createTypedArrayConstructor = require('../internals/typed-array-constructor');\n\n// `Int16Array` constructor\n// https://tc39.es/ecma262/#sec-typedarray-objects\ncreateTypedArrayConstructor('Int16', function (init) {\n return function Int16Array(data, byteOffset, length) {\n return init(this, data, byteOffset, length);\n };\n});\n","var createTypedArrayConstructor = require('../internals/typed-array-constructor');\n\n// `Int32Array` constructor\n// https://tc39.es/ecma262/#sec-typedarray-objects\ncreateTypedArrayConstructor('Int32', function (init) {\n return function Int32Array(data, byteOffset, length) {\n return init(this, data, byteOffset, length);\n };\n});\n","var createTypedArrayConstructor = require('../internals/typed-array-constructor');\n\n// `Int8Array` constructor\n// https://tc39.es/ecma262/#sec-typedarray-objects\ncreateTypedArrayConstructor('Int8', function (init) {\n return function Int8Array(data, byteOffset, length) {\n return init(this, data, byteOffset, length);\n };\n});\n","'use strict';\nvar global = require('../internals/global');\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar ArrayIterators = require('../modules/es.array.iterator');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar Uint8Array = global.Uint8Array;\nvar arrayValues = ArrayIterators.values;\nvar arrayKeys = ArrayIterators.keys;\nvar arrayEntries = ArrayIterators.entries;\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\nvar nativeTypedArrayIterator = Uint8Array && Uint8Array.prototype[ITERATOR];\n\nvar CORRECT_ITER_NAME = !!nativeTypedArrayIterator\n && (nativeTypedArrayIterator.name == 'values' || nativeTypedArrayIterator.name == undefined);\n\nvar typedArrayValues = function values() {\n return arrayValues.call(aTypedArray(this));\n};\n\n// `%TypedArray%.prototype.entries` method\n// https://tc39.es/ecma262/#sec-%typedarray%.prototype.entries\nexportTypedArrayMethod('entries', function entries() {\n return arrayEntries.call(aTypedArray(this));\n});\n// `%TypedArray%.prototype.keys` method\n// https://tc39.es/ecma262/#sec-%typedarray%.prototype.keys\nexportTypedArrayMethod('keys', function keys() {\n return arrayKeys.call(aTypedArray(this));\n});\n// `%TypedArray%.prototype.values` method\n// https://tc39.es/ecma262/#sec-%typedarray%.prototype.values\nexportTypedArrayMethod('values', typedArrayValues, !CORRECT_ITER_NAME);\n// `%TypedArray%.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-%typedarray%.prototype-@@iterator\nexportTypedArrayMethod(ITERATOR, typedArrayValues, !CORRECT_ITER_NAME);\n","'use strict';\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\nvar $join = [].join;\n\n// `%TypedArray%.prototype.join` method\n// https://tc39.es/ecma262/#sec-%typedarray%.prototype.join\n// eslint-disable-next-line no-unused-vars -- required for `.length`\nexportTypedArrayMethod('join', function join(separator) {\n return $join.apply(aTypedArray(this), arguments);\n});\n","'use strict';\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar $lastIndexOf = require('../internals/array-last-index-of');\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\n\n// `%TypedArray%.prototype.lastIndexOf` method\n// https://tc39.es/ecma262/#sec-%typedarray%.prototype.lastindexof\n// eslint-disable-next-line no-unused-vars -- required for `.length`\nexportTypedArrayMethod('lastIndexOf', function lastIndexOf(searchElement /* , fromIndex */) {\n return $lastIndexOf.apply(aTypedArray(this), arguments);\n});\n","'use strict';\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar $map = require('../internals/array-iteration').map;\nvar typedArraySpeciesConstructor = require('../internals/typed-array-species-constructor');\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\n\n// `%TypedArray%.prototype.map` method\n// https://tc39.es/ecma262/#sec-%typedarray%.prototype.map\nexportTypedArrayMethod('map', function map(mapfn /* , thisArg */) {\n return $map(aTypedArray(this), mapfn, arguments.length > 1 ? arguments[1] : undefined, function (O, length) {\n return new (typedArraySpeciesConstructor(O))(length);\n });\n});\n","'use strict';\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = require('../internals/typed-array-constructors-require-wrappers');\n\nvar aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;\nvar exportTypedArrayStaticMethod = ArrayBufferViewCore.exportTypedArrayStaticMethod;\n\n// `%TypedArray%.of` method\n// https://tc39.es/ecma262/#sec-%typedarray%.of\nexportTypedArrayStaticMethod('of', function of(/* ...items */) {\n var index = 0;\n var length = arguments.length;\n var result = new (aTypedArrayConstructor(this))(length);\n while (length > index) result[index] = arguments[index++];\n return result;\n}, TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS);\n","'use strict';\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar $reduceRight = require('../internals/array-reduce').right;\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\n\n// `%TypedArray%.prototype.reduceRicht` method\n// https://tc39.es/ecma262/#sec-%typedarray%.prototype.reduceright\nexportTypedArrayMethod('reduceRight', function reduceRight(callbackfn /* , initialValue */) {\n return $reduceRight(aTypedArray(this), callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);\n});\n","'use strict';\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar $reduce = require('../internals/array-reduce').left;\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\n\n// `%TypedArray%.prototype.reduce` method\n// https://tc39.es/ecma262/#sec-%typedarray%.prototype.reduce\nexportTypedArrayMethod('reduce', function reduce(callbackfn /* , initialValue */) {\n return $reduce(aTypedArray(this), callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);\n});\n","'use strict';\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\nvar floor = Math.floor;\n\n// `%TypedArray%.prototype.reverse` method\n// https://tc39.es/ecma262/#sec-%typedarray%.prototype.reverse\nexportTypedArrayMethod('reverse', function reverse() {\n var that = this;\n var length = aTypedArray(that).length;\n var middle = floor(length / 2);\n var index = 0;\n var value;\n while (index < middle) {\n value = that[index];\n that[index++] = that[--length];\n that[length] = value;\n } return that;\n});\n","'use strict';\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar toLength = require('../internals/to-length');\nvar toOffset = require('../internals/to-offset');\nvar toObject = require('../internals/to-object');\nvar fails = require('../internals/fails');\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\n\nvar FORCED = fails(function () {\n // eslint-disable-next-line es/no-typed-arrays -- required for testing\n new Int8Array(1).set({});\n});\n\n// `%TypedArray%.prototype.set` method\n// https://tc39.es/ecma262/#sec-%typedarray%.prototype.set\nexportTypedArrayMethod('set', function set(arrayLike /* , offset */) {\n aTypedArray(this);\n var offset = toOffset(arguments.length > 1 ? arguments[1] : undefined, 1);\n var length = this.length;\n var src = toObject(arrayLike);\n var len = toLength(src.length);\n var index = 0;\n if (len + offset > length) throw RangeError('Wrong length');\n while (index < len) this[offset + index] = src[index++];\n}, FORCED);\n","'use strict';\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar typedArraySpeciesConstructor = require('../internals/typed-array-species-constructor');\nvar fails = require('../internals/fails');\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\nvar $slice = [].slice;\n\nvar FORCED = fails(function () {\n // eslint-disable-next-line es/no-typed-arrays -- required for testing\n new Int8Array(1).slice();\n});\n\n// `%TypedArray%.prototype.slice` method\n// https://tc39.es/ecma262/#sec-%typedarray%.prototype.slice\nexportTypedArrayMethod('slice', function slice(start, end) {\n var list = $slice.call(aTypedArray(this), start, end);\n var C = typedArraySpeciesConstructor(this);\n var index = 0;\n var length = list.length;\n var result = new C(length);\n while (length > index) result[index] = list[index++];\n return result;\n}, FORCED);\n","'use strict';\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar $some = require('../internals/array-iteration').some;\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\n\n// `%TypedArray%.prototype.some` method\n// https://tc39.es/ecma262/#sec-%typedarray%.prototype.some\nexportTypedArrayMethod('some', function some(callbackfn /* , thisArg */) {\n return $some(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n});\n","'use strict';\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar global = require('../internals/global');\nvar fails = require('../internals/fails');\nvar aFunction = require('../internals/a-function');\nvar toLength = require('../internals/to-length');\nvar internalSort = require('../internals/array-sort');\nvar FF = require('../internals/engine-ff-version');\nvar IE_OR_EDGE = require('../internals/engine-is-ie-or-edge');\nvar V8 = require('../internals/engine-v8-version');\nvar WEBKIT = require('../internals/engine-webkit-version');\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\nvar Uint16Array = global.Uint16Array;\nvar nativeSort = Uint16Array && Uint16Array.prototype.sort;\n\n// WebKit\nvar ACCEPT_INCORRECT_ARGUMENTS = !!nativeSort && !fails(function () {\n var array = new Uint16Array(2);\n array.sort(null);\n array.sort({});\n});\n\nvar STABLE_SORT = !!nativeSort && !fails(function () {\n // feature detection can be too slow, so check engines versions\n if (V8) return V8 < 74;\n if (FF) return FF < 67;\n if (IE_OR_EDGE) return true;\n if (WEBKIT) return WEBKIT < 602;\n\n var array = new Uint16Array(516);\n var expected = Array(516);\n var index, mod;\n\n for (index = 0; index < 516; index++) {\n mod = index % 4;\n array[index] = 515 - index;\n expected[index] = index - 2 * mod + 3;\n }\n\n array.sort(function (a, b) {\n return (a / 4 | 0) - (b / 4 | 0);\n });\n\n for (index = 0; index < 516; index++) {\n if (array[index] !== expected[index]) return true;\n }\n});\n\nvar getSortCompare = function (comparefn) {\n return function (x, y) {\n if (comparefn !== undefined) return +comparefn(x, y) || 0;\n // eslint-disable-next-line no-self-compare -- NaN check\n if (y !== y) return -1;\n // eslint-disable-next-line no-self-compare -- NaN check\n if (x !== x) return 1;\n if (x === 0 && y === 0) return 1 / x > 0 && 1 / y < 0 ? 1 : -1;\n return x > y;\n };\n};\n\n// `%TypedArray%.prototype.sort` method\n// https://tc39.es/ecma262/#sec-%typedarray%.prototype.sort\nexportTypedArrayMethod('sort', function sort(comparefn) {\n var array = this;\n if (comparefn !== undefined) aFunction(comparefn);\n if (STABLE_SORT) return nativeSort.call(array, comparefn);\n\n aTypedArray(array);\n var arrayLength = toLength(array.length);\n var items = Array(arrayLength);\n var index;\n\n for (index = 0; index < arrayLength; index++) {\n items[index] = array[index];\n }\n\n items = internalSort(array, getSortCompare(comparefn));\n\n for (index = 0; index < arrayLength; index++) {\n array[index] = items[index];\n }\n\n return array;\n}, !STABLE_SORT || ACCEPT_INCORRECT_ARGUMENTS);\n","'use strict';\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar toLength = require('../internals/to-length');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar typedArraySpeciesConstructor = require('../internals/typed-array-species-constructor');\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\n\n// `%TypedArray%.prototype.subarray` method\n// https://tc39.es/ecma262/#sec-%typedarray%.prototype.subarray\nexportTypedArrayMethod('subarray', function subarray(begin, end) {\n var O = aTypedArray(this);\n var length = O.length;\n var beginIndex = toAbsoluteIndex(begin, length);\n var C = typedArraySpeciesConstructor(O);\n return new C(\n O.buffer,\n O.byteOffset + beginIndex * O.BYTES_PER_ELEMENT,\n toLength((end === undefined ? length : toAbsoluteIndex(end, length)) - beginIndex)\n );\n});\n","'use strict';\nvar global = require('../internals/global');\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar fails = require('../internals/fails');\n\nvar Int8Array = global.Int8Array;\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\nvar $toLocaleString = [].toLocaleString;\nvar $slice = [].slice;\n\n// iOS Safari 6.x fails here\nvar TO_LOCALE_STRING_BUG = !!Int8Array && fails(function () {\n $toLocaleString.call(new Int8Array(1));\n});\n\nvar FORCED = fails(function () {\n return [1, 2].toLocaleString() != new Int8Array([1, 2]).toLocaleString();\n}) || !fails(function () {\n Int8Array.prototype.toLocaleString.call([1, 2]);\n});\n\n// `%TypedArray%.prototype.toLocaleString` method\n// https://tc39.es/ecma262/#sec-%typedarray%.prototype.tolocalestring\nexportTypedArrayMethod('toLocaleString', function toLocaleString() {\n return $toLocaleString.apply(TO_LOCALE_STRING_BUG ? $slice.call(aTypedArray(this)) : aTypedArray(this), arguments);\n}, FORCED);\n","'use strict';\nvar exportTypedArrayMethod = require('../internals/array-buffer-view-core').exportTypedArrayMethod;\nvar fails = require('../internals/fails');\nvar global = require('../internals/global');\n\nvar Uint8Array = global.Uint8Array;\nvar Uint8ArrayPrototype = Uint8Array && Uint8Array.prototype || {};\nvar arrayToString = [].toString;\nvar arrayJoin = [].join;\n\nif (fails(function () { arrayToString.call({}); })) {\n arrayToString = function toString() {\n return arrayJoin.call(this);\n };\n}\n\nvar IS_NOT_ARRAY_METHOD = Uint8ArrayPrototype.toString != arrayToString;\n\n// `%TypedArray%.prototype.toString` method\n// https://tc39.es/ecma262/#sec-%typedarray%.prototype.tostring\nexportTypedArrayMethod('toString', arrayToString, IS_NOT_ARRAY_METHOD);\n","var createTypedArrayConstructor = require('../internals/typed-array-constructor');\n\n// `Uint16Array` constructor\n// https://tc39.es/ecma262/#sec-typedarray-objects\ncreateTypedArrayConstructor('Uint16', function (init) {\n return function Uint16Array(data, byteOffset, length) {\n return init(this, data, byteOffset, length);\n };\n});\n","var createTypedArrayConstructor = require('../internals/typed-array-constructor');\n\n// `Uint32Array` constructor\n// https://tc39.es/ecma262/#sec-typedarray-objects\ncreateTypedArrayConstructor('Uint32', function (init) {\n return function Uint32Array(data, byteOffset, length) {\n return init(this, data, byteOffset, length);\n };\n});\n","var createTypedArrayConstructor = require('../internals/typed-array-constructor');\n\n// `Uint8Array` constructor\n// https://tc39.es/ecma262/#sec-typedarray-objects\ncreateTypedArrayConstructor('Uint8', function (init) {\n return function Uint8Array(data, byteOffset, length) {\n return init(this, data, byteOffset, length);\n };\n});\n","var createTypedArrayConstructor = require('../internals/typed-array-constructor');\n\n// `Uint8ClampedArray` constructor\n// https://tc39.es/ecma262/#sec-typedarray-objects\ncreateTypedArrayConstructor('Uint8', function (init) {\n return function Uint8ClampedArray(data, byteOffset, length) {\n return init(this, data, byteOffset, length);\n };\n}, true);\n","'use strict';\nvar $ = require('../internals/export');\nvar toString = require('../internals/to-string');\n\nvar fromCharCode = String.fromCharCode;\nvar hex2 = /^[\\da-f]{2}$/i;\nvar hex4 = /^[\\da-f]{4}$/i;\n\n// `unescape` method\n// https://tc39.es/ecma262/#sec-unescape-string\n$({ global: true }, {\n unescape: function unescape(string) {\n var str = toString(string);\n var result = '';\n var length = str.length;\n var index = 0;\n var chr, slice;\n while (index < length) {\n chr = str.charAt(index++);\n if (chr === '%') {\n if (str.charAt(index) === 'u') {\n slice = str.slice(index + 1, index + 5);\n if (hex4.test(slice)) {\n result += fromCharCode(parseInt(slice, 16));\n index += 5;\n continue;\n }\n } else {\n slice = str.slice(index, index + 2);\n if (hex2.test(slice)) {\n result += fromCharCode(parseInt(slice, 16));\n index += 2;\n continue;\n }\n }\n }\n result += chr;\n } return result;\n }\n});\n","'use strict';\nvar global = require('../internals/global');\nvar redefineAll = require('../internals/redefine-all');\nvar InternalMetadataModule = require('../internals/internal-metadata');\nvar collection = require('../internals/collection');\nvar collectionWeak = require('../internals/collection-weak');\nvar isObject = require('../internals/is-object');\nvar enforceIternalState = require('../internals/internal-state').enforce;\nvar NATIVE_WEAK_MAP = require('../internals/native-weak-map');\n\nvar IS_IE11 = !global.ActiveXObject && 'ActiveXObject' in global;\n// eslint-disable-next-line es/no-object-isextensible -- safe\nvar isExtensible = Object.isExtensible;\nvar InternalWeakMap;\n\nvar wrapper = function (init) {\n return function WeakMap() {\n return init(this, arguments.length ? arguments[0] : undefined);\n };\n};\n\n// `WeakMap` constructor\n// https://tc39.es/ecma262/#sec-weakmap-constructor\nvar $WeakMap = module.exports = collection('WeakMap', wrapper, collectionWeak);\n\n// IE11 WeakMap frozen keys fix\n// We can't use feature detection because it crash some old IE builds\n// https://github.com/zloirock/core-js/issues/485\nif (NATIVE_WEAK_MAP && IS_IE11) {\n InternalWeakMap = collectionWeak.getConstructor(wrapper, 'WeakMap', true);\n InternalMetadataModule.enable();\n var WeakMapPrototype = $WeakMap.prototype;\n var nativeDelete = WeakMapPrototype['delete'];\n var nativeHas = WeakMapPrototype.has;\n var nativeGet = WeakMapPrototype.get;\n var nativeSet = WeakMapPrototype.set;\n redefineAll(WeakMapPrototype, {\n 'delete': function (key) {\n if (isObject(key) && !isExtensible(key)) {\n var state = enforceIternalState(this);\n if (!state.frozen) state.frozen = new InternalWeakMap();\n return nativeDelete.call(this, key) || state.frozen['delete'](key);\n } return nativeDelete.call(this, key);\n },\n has: function has(key) {\n if (isObject(key) && !isExtensible(key)) {\n var state = enforceIternalState(this);\n if (!state.frozen) state.frozen = new InternalWeakMap();\n return nativeHas.call(this, key) || state.frozen.has(key);\n } return nativeHas.call(this, key);\n },\n get: function get(key) {\n if (isObject(key) && !isExtensible(key)) {\n var state = enforceIternalState(this);\n if (!state.frozen) state.frozen = new InternalWeakMap();\n return nativeHas.call(this, key) ? nativeGet.call(this, key) : state.frozen.get(key);\n } return nativeGet.call(this, key);\n },\n set: function set(key, value) {\n if (isObject(key) && !isExtensible(key)) {\n var state = enforceIternalState(this);\n if (!state.frozen) state.frozen = new InternalWeakMap();\n nativeHas.call(this, key) ? nativeSet.call(this, key, value) : state.frozen.set(key, value);\n } else nativeSet.call(this, key, value);\n return this;\n }\n });\n}\n","'use strict';\nvar collection = require('../internals/collection');\nvar collectionWeak = require('../internals/collection-weak');\n\n// `WeakSet` constructor\n// https://tc39.es/ecma262/#sec-weakset-constructor\ncollection('WeakSet', function (init) {\n return function WeakSet() { return init(this, arguments.length ? arguments[0] : undefined); };\n}, collectionWeak);\n","var global = require('../internals/global');\nvar DOMIterables = require('../internals/dom-iterables');\nvar forEach = require('../internals/array-for-each');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\nfor (var COLLECTION_NAME in DOMIterables) {\n var Collection = global[COLLECTION_NAME];\n var CollectionPrototype = Collection && Collection.prototype;\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {\n createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);\n } catch (error) {\n CollectionPrototype.forEach = forEach;\n }\n}\n","var global = require('../internals/global');\nvar DOMIterables = require('../internals/dom-iterables');\nvar ArrayIteratorMethods = require('../modules/es.array.iterator');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar ArrayValues = ArrayIteratorMethods.values;\n\nfor (var COLLECTION_NAME in DOMIterables) {\n var Collection = global[COLLECTION_NAME];\n var CollectionPrototype = Collection && Collection.prototype;\n if (CollectionPrototype) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype[ITERATOR] !== ArrayValues) try {\n createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);\n } catch (error) {\n CollectionPrototype[ITERATOR] = ArrayValues;\n }\n if (!CollectionPrototype[TO_STRING_TAG]) {\n createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);\n }\n if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {\n createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);\n } catch (error) {\n CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];\n }\n }\n }\n}\n","var $ = require('../internals/export');\nvar global = require('../internals/global');\nvar task = require('../internals/task');\n\nvar FORCED = !global.setImmediate || !global.clearImmediate;\n\n// http://w3c.github.io/setImmediate/\n$({ global: true, bind: true, enumerable: true, forced: FORCED }, {\n // `setImmediate` method\n // http://w3c.github.io/setImmediate/#si-setImmediate\n setImmediate: task.set,\n // `clearImmediate` method\n // http://w3c.github.io/setImmediate/#si-clearImmediate\n clearImmediate: task.clear\n});\n","var $ = require('../internals/export');\nvar global = require('../internals/global');\nvar microtask = require('../internals/microtask');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar process = global.process;\n\n// `queueMicrotask` method\n// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-queuemicrotask\n$({ global: true, enumerable: true, noTargetGet: true }, {\n queueMicrotask: function queueMicrotask(fn) {\n var domain = IS_NODE && process.domain;\n microtask(domain ? domain.bind(fn) : fn);\n }\n});\n","var $ = require('../internals/export');\nvar global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar slice = [].slice;\nvar MSIE = /MSIE .\\./.test(userAgent); // <- dirty ie9- check\n\nvar wrap = function (scheduler) {\n return function (handler, timeout /* , ...arguments */) {\n var boundArgs = arguments.length > 2;\n var args = boundArgs ? slice.call(arguments, 2) : undefined;\n return scheduler(boundArgs ? function () {\n // eslint-disable-next-line no-new-func -- spec requirement\n (typeof handler == 'function' ? handler : Function(handler)).apply(this, args);\n } : handler, timeout);\n };\n};\n\n// ie9- setTimeout & setInterval additional parameters fix\n// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#timers\n$({ global: true, bind: true, forced: MSIE }, {\n // `setTimeout` method\n // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-settimeout\n setTimeout: wrap(global.setTimeout),\n // `setInterval` method\n // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-setinterval\n setInterval: wrap(global.setInterval)\n});\n","'use strict';\n// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`\nrequire('../modules/es.array.iterator');\nvar $ = require('../internals/export');\nvar getBuiltIn = require('../internals/get-built-in');\nvar USE_NATIVE_URL = require('../internals/native-url');\nvar redefine = require('../internals/redefine');\nvar redefineAll = require('../internals/redefine-all');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar createIteratorConstructor = require('../internals/create-iterator-constructor');\nvar InternalStateModule = require('../internals/internal-state');\nvar anInstance = require('../internals/an-instance');\nvar hasOwn = require('../internals/has');\nvar bind = require('../internals/function-bind-context');\nvar classof = require('../internals/classof');\nvar anObject = require('../internals/an-object');\nvar isObject = require('../internals/is-object');\nvar $toString = require('../internals/to-string');\nvar create = require('../internals/object-create');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar getIterator = require('../internals/get-iterator');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar nativeFetch = getBuiltIn('fetch');\nvar NativeRequest = getBuiltIn('Request');\nvar RequestPrototype = NativeRequest && NativeRequest.prototype;\nvar Headers = getBuiltIn('Headers');\nvar ITERATOR = wellKnownSymbol('iterator');\nvar URL_SEARCH_PARAMS = 'URLSearchParams';\nvar URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalParamsState = InternalStateModule.getterFor(URL_SEARCH_PARAMS);\nvar getInternalIteratorState = InternalStateModule.getterFor(URL_SEARCH_PARAMS_ITERATOR);\n\nvar plus = /\\+/g;\nvar sequences = Array(4);\n\nvar percentSequence = function (bytes) {\n return sequences[bytes - 1] || (sequences[bytes - 1] = RegExp('((?:%[\\\\da-f]{2}){' + bytes + '})', 'gi'));\n};\n\nvar percentDecode = function (sequence) {\n try {\n return decodeURIComponent(sequence);\n } catch (error) {\n return sequence;\n }\n};\n\nvar deserialize = function (it) {\n var result = it.replace(plus, ' ');\n var bytes = 4;\n try {\n return decodeURIComponent(result);\n } catch (error) {\n while (bytes) {\n result = result.replace(percentSequence(bytes--), percentDecode);\n }\n return result;\n }\n};\n\nvar find = /[!'()~]|%20/g;\n\nvar replace = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+'\n};\n\nvar replacer = function (match) {\n return replace[match];\n};\n\nvar serialize = function (it) {\n return encodeURIComponent(it).replace(find, replacer);\n};\n\nvar parseSearchParams = function (result, query) {\n if (query) {\n var attributes = query.split('&');\n var index = 0;\n var attribute, entry;\n while (index < attributes.length) {\n attribute = attributes[index++];\n if (attribute.length) {\n entry = attribute.split('=');\n result.push({\n key: deserialize(entry.shift()),\n value: deserialize(entry.join('='))\n });\n }\n }\n }\n};\n\nvar updateSearchParams = function (query) {\n this.entries.length = 0;\n parseSearchParams(this.entries, query);\n};\n\nvar validateArgumentsLength = function (passed, required) {\n if (passed < required) throw TypeError('Not enough arguments');\n};\n\nvar URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {\n setInternalState(this, {\n type: URL_SEARCH_PARAMS_ITERATOR,\n iterator: getIterator(getInternalParamsState(params).entries),\n kind: kind\n });\n}, 'Iterator', function next() {\n var state = getInternalIteratorState(this);\n var kind = state.kind;\n var step = state.iterator.next();\n var entry = step.value;\n if (!step.done) {\n step.value = kind === 'keys' ? entry.key : kind === 'values' ? entry.value : [entry.key, entry.value];\n } return step;\n});\n\n// `URLSearchParams` constructor\n// https://url.spec.whatwg.org/#interface-urlsearchparams\nvar URLSearchParamsConstructor = function URLSearchParams(/* init */) {\n anInstance(this, URLSearchParamsConstructor, URL_SEARCH_PARAMS);\n var init = arguments.length > 0 ? arguments[0] : undefined;\n var that = this;\n var entries = [];\n var iteratorMethod, iterator, next, step, entryIterator, entryNext, first, second, key;\n\n setInternalState(that, {\n type: URL_SEARCH_PARAMS,\n entries: entries,\n updateURL: function () { /* empty */ },\n updateSearchParams: updateSearchParams\n });\n\n if (init !== undefined) {\n if (isObject(init)) {\n iteratorMethod = getIteratorMethod(init);\n if (typeof iteratorMethod === 'function') {\n iterator = iteratorMethod.call(init);\n next = iterator.next;\n while (!(step = next.call(iterator)).done) {\n entryIterator = getIterator(anObject(step.value));\n entryNext = entryIterator.next;\n if (\n (first = entryNext.call(entryIterator)).done ||\n (second = entryNext.call(entryIterator)).done ||\n !entryNext.call(entryIterator).done\n ) throw TypeError('Expected sequence with length 2');\n entries.push({ key: $toString(first.value), value: $toString(second.value) });\n }\n } else for (key in init) if (hasOwn(init, key)) entries.push({ key: key, value: $toString(init[key]) });\n } else {\n parseSearchParams(\n entries,\n typeof init === 'string' ? init.charAt(0) === '?' ? init.slice(1) : init : $toString(init)\n );\n }\n }\n};\n\nvar URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;\n\nredefineAll(URLSearchParamsPrototype, {\n // `URLSearchParams.prototype.append` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-append\n append: function append(name, value) {\n validateArgumentsLength(arguments.length, 2);\n var state = getInternalParamsState(this);\n state.entries.push({ key: $toString(name), value: $toString(value) });\n state.updateURL();\n },\n // `URLSearchParams.prototype.delete` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-delete\n 'delete': function (name) {\n validateArgumentsLength(arguments.length, 1);\n var state = getInternalParamsState(this);\n var entries = state.entries;\n var key = $toString(name);\n var index = 0;\n while (index < entries.length) {\n if (entries[index].key === key) entries.splice(index, 1);\n else index++;\n }\n state.updateURL();\n },\n // `URLSearchParams.prototype.get` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-get\n get: function get(name) {\n validateArgumentsLength(arguments.length, 1);\n var entries = getInternalParamsState(this).entries;\n var key = $toString(name);\n var index = 0;\n for (; index < entries.length; index++) {\n if (entries[index].key === key) return entries[index].value;\n }\n return null;\n },\n // `URLSearchParams.prototype.getAll` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-getall\n getAll: function getAll(name) {\n validateArgumentsLength(arguments.length, 1);\n var entries = getInternalParamsState(this).entries;\n var key = $toString(name);\n var result = [];\n var index = 0;\n for (; index < entries.length; index++) {\n if (entries[index].key === key) result.push(entries[index].value);\n }\n return result;\n },\n // `URLSearchParams.prototype.has` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-has\n has: function has(name) {\n validateArgumentsLength(arguments.length, 1);\n var entries = getInternalParamsState(this).entries;\n var key = $toString(name);\n var index = 0;\n while (index < entries.length) {\n if (entries[index++].key === key) return true;\n }\n return false;\n },\n // `URLSearchParams.prototype.set` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-set\n set: function set(name, value) {\n validateArgumentsLength(arguments.length, 1);\n var state = getInternalParamsState(this);\n var entries = state.entries;\n var found = false;\n var key = $toString(name);\n var val = $toString(value);\n var index = 0;\n var entry;\n for (; index < entries.length; index++) {\n entry = entries[index];\n if (entry.key === key) {\n if (found) entries.splice(index--, 1);\n else {\n found = true;\n entry.value = val;\n }\n }\n }\n if (!found) entries.push({ key: key, value: val });\n state.updateURL();\n },\n // `URLSearchParams.prototype.sort` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-sort\n sort: function sort() {\n var state = getInternalParamsState(this);\n var entries = state.entries;\n // Array#sort is not stable in some engines\n var slice = entries.slice();\n var entry, entriesIndex, sliceIndex;\n entries.length = 0;\n for (sliceIndex = 0; sliceIndex < slice.length; sliceIndex++) {\n entry = slice[sliceIndex];\n for (entriesIndex = 0; entriesIndex < sliceIndex; entriesIndex++) {\n if (entries[entriesIndex].key > entry.key) {\n entries.splice(entriesIndex, 0, entry);\n break;\n }\n }\n if (entriesIndex === sliceIndex) entries.push(entry);\n }\n state.updateURL();\n },\n // `URLSearchParams.prototype.forEach` method\n forEach: function forEach(callback /* , thisArg */) {\n var entries = getInternalParamsState(this).entries;\n var boundFunction = bind(callback, arguments.length > 1 ? arguments[1] : undefined, 3);\n var index = 0;\n var entry;\n while (index < entries.length) {\n entry = entries[index++];\n boundFunction(entry.value, entry.key, this);\n }\n },\n // `URLSearchParams.prototype.keys` method\n keys: function keys() {\n return new URLSearchParamsIterator(this, 'keys');\n },\n // `URLSearchParams.prototype.values` method\n values: function values() {\n return new URLSearchParamsIterator(this, 'values');\n },\n // `URLSearchParams.prototype.entries` method\n entries: function entries() {\n return new URLSearchParamsIterator(this, 'entries');\n }\n}, { enumerable: true });\n\n// `URLSearchParams.prototype[@@iterator]` method\nredefine(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries);\n\n// `URLSearchParams.prototype.toString` method\n// https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior\nredefine(URLSearchParamsPrototype, 'toString', function toString() {\n var entries = getInternalParamsState(this).entries;\n var result = [];\n var index = 0;\n var entry;\n while (index < entries.length) {\n entry = entries[index++];\n result.push(serialize(entry.key) + '=' + serialize(entry.value));\n } return result.join('&');\n}, { enumerable: true });\n\nsetToStringTag(URLSearchParamsConstructor, URL_SEARCH_PARAMS);\n\n$({ global: true, forced: !USE_NATIVE_URL }, {\n URLSearchParams: URLSearchParamsConstructor\n});\n\n// Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`\nif (!USE_NATIVE_URL && typeof Headers == 'function') {\n var wrapRequestOptions = function (init) {\n if (isObject(init)) {\n var body = init.body;\n var headers;\n if (classof(body) === URL_SEARCH_PARAMS) {\n headers = init.headers ? new Headers(init.headers) : new Headers();\n if (!headers.has('content-type')) {\n headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8');\n }\n return create(init, {\n body: createPropertyDescriptor(0, String(body)),\n headers: createPropertyDescriptor(0, headers)\n });\n }\n } return init;\n };\n\n if (typeof nativeFetch == 'function') {\n $({ global: true, enumerable: true, forced: true }, {\n fetch: function fetch(input /* , init */) {\n return nativeFetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});\n }\n });\n }\n\n if (typeof NativeRequest == 'function') {\n var RequestConstructor = function Request(input /* , init */) {\n anInstance(this, RequestConstructor, 'Request');\n return new NativeRequest(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});\n };\n\n RequestPrototype.constructor = RequestConstructor;\n RequestConstructor.prototype = RequestPrototype;\n\n $({ global: true, forced: true }, {\n Request: RequestConstructor\n });\n }\n}\n\nmodule.exports = {\n URLSearchParams: URLSearchParamsConstructor,\n getState: getInternalParamsState\n};\n","'use strict';\n// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`\nrequire('../modules/es.string.iterator');\nvar $ = require('../internals/export');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar USE_NATIVE_URL = require('../internals/native-url');\nvar global = require('../internals/global');\nvar defineProperties = require('../internals/object-define-properties');\nvar redefine = require('../internals/redefine');\nvar anInstance = require('../internals/an-instance');\nvar has = require('../internals/has');\nvar assign = require('../internals/object-assign');\nvar arrayFrom = require('../internals/array-from');\nvar codeAt = require('../internals/string-multibyte').codeAt;\nvar toASCII = require('../internals/string-punycode-to-ascii');\nvar $toString = require('../internals/to-string');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar URLSearchParamsModule = require('../modules/web.url-search-params');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar NativeURL = global.URL;\nvar URLSearchParams = URLSearchParamsModule.URLSearchParams;\nvar getInternalSearchParamsState = URLSearchParamsModule.getState;\nvar setInternalState = InternalStateModule.set;\nvar getInternalURLState = InternalStateModule.getterFor('URL');\nvar floor = Math.floor;\nvar pow = Math.pow;\n\nvar INVALID_AUTHORITY = 'Invalid authority';\nvar INVALID_SCHEME = 'Invalid scheme';\nvar INVALID_HOST = 'Invalid host';\nvar INVALID_PORT = 'Invalid port';\n\nvar ALPHA = /[A-Za-z]/;\n// eslint-disable-next-line regexp/no-obscure-range -- safe\nvar ALPHANUMERIC = /[\\d+-.A-Za-z]/;\nvar DIGIT = /\\d/;\nvar HEX_START = /^0x/i;\nvar OCT = /^[0-7]+$/;\nvar DEC = /^\\d+$/;\nvar HEX = /^[\\dA-Fa-f]+$/;\n/* eslint-disable no-control-regex -- safe */\nvar FORBIDDEN_HOST_CODE_POINT = /[\\0\\t\\n\\r #%/:<>?@[\\\\\\]^|]/;\nvar FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\\0\\t\\n\\r #/:<>?@[\\\\\\]^|]/;\nvar LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE = /^[\\u0000-\\u0020]+|[\\u0000-\\u0020]+$/g;\nvar TAB_AND_NEW_LINE = /[\\t\\n\\r]/g;\n/* eslint-enable no-control-regex -- safe */\nvar EOF;\n\nvar parseHost = function (url, input) {\n var result, codePoints, index;\n if (input.charAt(0) == '[') {\n if (input.charAt(input.length - 1) != ']') return INVALID_HOST;\n result = parseIPv6(input.slice(1, -1));\n if (!result) return INVALID_HOST;\n url.host = result;\n // opaque host\n } else if (!isSpecial(url)) {\n if (FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT.test(input)) return INVALID_HOST;\n result = '';\n codePoints = arrayFrom(input);\n for (index = 0; index < codePoints.length; index++) {\n result += percentEncode(codePoints[index], C0ControlPercentEncodeSet);\n }\n url.host = result;\n } else {\n input = toASCII(input);\n if (FORBIDDEN_HOST_CODE_POINT.test(input)) return INVALID_HOST;\n result = parseIPv4(input);\n if (result === null) return INVALID_HOST;\n url.host = result;\n }\n};\n\nvar parseIPv4 = function (input) {\n var parts = input.split('.');\n var partsLength, numbers, index, part, radix, number, ipv4;\n if (parts.length && parts[parts.length - 1] == '') {\n parts.pop();\n }\n partsLength = parts.length;\n if (partsLength > 4) return input;\n numbers = [];\n for (index = 0; index < partsLength; index++) {\n part = parts[index];\n if (part == '') return input;\n radix = 10;\n if (part.length > 1 && part.charAt(0) == '0') {\n radix = HEX_START.test(part) ? 16 : 8;\n part = part.slice(radix == 8 ? 1 : 2);\n }\n if (part === '') {\n number = 0;\n } else {\n if (!(radix == 10 ? DEC : radix == 8 ? OCT : HEX).test(part)) return input;\n number = parseInt(part, radix);\n }\n numbers.push(number);\n }\n for (index = 0; index < partsLength; index++) {\n number = numbers[index];\n if (index == partsLength - 1) {\n if (number >= pow(256, 5 - partsLength)) return null;\n } else if (number > 255) return null;\n }\n ipv4 = numbers.pop();\n for (index = 0; index < numbers.length; index++) {\n ipv4 += numbers[index] * pow(256, 3 - index);\n }\n return ipv4;\n};\n\n// eslint-disable-next-line max-statements -- TODO\nvar parseIPv6 = function (input) {\n var address = [0, 0, 0, 0, 0, 0, 0, 0];\n var pieceIndex = 0;\n var compress = null;\n var pointer = 0;\n var value, length, numbersSeen, ipv4Piece, number, swaps, swap;\n\n var char = function () {\n return input.charAt(pointer);\n };\n\n if (char() == ':') {\n if (input.charAt(1) != ':') return;\n pointer += 2;\n pieceIndex++;\n compress = pieceIndex;\n }\n while (char()) {\n if (pieceIndex == 8) return;\n if (char() == ':') {\n if (compress !== null) return;\n pointer++;\n pieceIndex++;\n compress = pieceIndex;\n continue;\n }\n value = length = 0;\n while (length < 4 && HEX.test(char())) {\n value = value * 16 + parseInt(char(), 16);\n pointer++;\n length++;\n }\n if (char() == '.') {\n if (length == 0) return;\n pointer -= length;\n if (pieceIndex > 6) return;\n numbersSeen = 0;\n while (char()) {\n ipv4Piece = null;\n if (numbersSeen > 0) {\n if (char() == '.' && numbersSeen < 4) pointer++;\n else return;\n }\n if (!DIGIT.test(char())) return;\n while (DIGIT.test(char())) {\n number = parseInt(char(), 10);\n if (ipv4Piece === null) ipv4Piece = number;\n else if (ipv4Piece == 0) return;\n else ipv4Piece = ipv4Piece * 10 + number;\n if (ipv4Piece > 255) return;\n pointer++;\n }\n address[pieceIndex] = address[pieceIndex] * 256 + ipv4Piece;\n numbersSeen++;\n if (numbersSeen == 2 || numbersSeen == 4) pieceIndex++;\n }\n if (numbersSeen != 4) return;\n break;\n } else if (char() == ':') {\n pointer++;\n if (!char()) return;\n } else if (char()) return;\n address[pieceIndex++] = value;\n }\n if (compress !== null) {\n swaps = pieceIndex - compress;\n pieceIndex = 7;\n while (pieceIndex != 0 && swaps > 0) {\n swap = address[pieceIndex];\n address[pieceIndex--] = address[compress + swaps - 1];\n address[compress + --swaps] = swap;\n }\n } else if (pieceIndex != 8) return;\n return address;\n};\n\nvar findLongestZeroSequence = function (ipv6) {\n var maxIndex = null;\n var maxLength = 1;\n var currStart = null;\n var currLength = 0;\n var index = 0;\n for (; index < 8; index++) {\n if (ipv6[index] !== 0) {\n if (currLength > maxLength) {\n maxIndex = currStart;\n maxLength = currLength;\n }\n currStart = null;\n currLength = 0;\n } else {\n if (currStart === null) currStart = index;\n ++currLength;\n }\n }\n if (currLength > maxLength) {\n maxIndex = currStart;\n maxLength = currLength;\n }\n return maxIndex;\n};\n\nvar serializeHost = function (host) {\n var result, index, compress, ignore0;\n // ipv4\n if (typeof host == 'number') {\n result = [];\n for (index = 0; index < 4; index++) {\n result.unshift(host % 256);\n host = floor(host / 256);\n } return result.join('.');\n // ipv6\n } else if (typeof host == 'object') {\n result = '';\n compress = findLongestZeroSequence(host);\n for (index = 0; index < 8; index++) {\n if (ignore0 && host[index] === 0) continue;\n if (ignore0) ignore0 = false;\n if (compress === index) {\n result += index ? ':' : '::';\n ignore0 = true;\n } else {\n result += host[index].toString(16);\n if (index < 7) result += ':';\n }\n }\n return '[' + result + ']';\n } return host;\n};\n\nvar C0ControlPercentEncodeSet = {};\nvar fragmentPercentEncodeSet = assign({}, C0ControlPercentEncodeSet, {\n ' ': 1, '\"': 1, '<': 1, '>': 1, '`': 1\n});\nvar pathPercentEncodeSet = assign({}, fragmentPercentEncodeSet, {\n '#': 1, '?': 1, '{': 1, '}': 1\n});\nvar userinfoPercentEncodeSet = assign({}, pathPercentEncodeSet, {\n '/': 1, ':': 1, ';': 1, '=': 1, '@': 1, '[': 1, '\\\\': 1, ']': 1, '^': 1, '|': 1\n});\n\nvar percentEncode = function (char, set) {\n var code = codeAt(char, 0);\n return code > 0x20 && code < 0x7F && !has(set, char) ? char : encodeURIComponent(char);\n};\n\nvar specialSchemes = {\n ftp: 21,\n file: null,\n http: 80,\n https: 443,\n ws: 80,\n wss: 443\n};\n\nvar isSpecial = function (url) {\n return has(specialSchemes, url.scheme);\n};\n\nvar includesCredentials = function (url) {\n return url.username != '' || url.password != '';\n};\n\nvar cannotHaveUsernamePasswordPort = function (url) {\n return !url.host || url.cannotBeABaseURL || url.scheme == 'file';\n};\n\nvar isWindowsDriveLetter = function (string, normalized) {\n var second;\n return string.length == 2 && ALPHA.test(string.charAt(0))\n && ((second = string.charAt(1)) == ':' || (!normalized && second == '|'));\n};\n\nvar startsWithWindowsDriveLetter = function (string) {\n var third;\n return string.length > 1 && isWindowsDriveLetter(string.slice(0, 2)) && (\n string.length == 2 ||\n ((third = string.charAt(2)) === '/' || third === '\\\\' || third === '?' || third === '#')\n );\n};\n\nvar shortenURLsPath = function (url) {\n var path = url.path;\n var pathSize = path.length;\n if (pathSize && (url.scheme != 'file' || pathSize != 1 || !isWindowsDriveLetter(path[0], true))) {\n path.pop();\n }\n};\n\nvar isSingleDot = function (segment) {\n return segment === '.' || segment.toLowerCase() === '%2e';\n};\n\nvar isDoubleDot = function (segment) {\n segment = segment.toLowerCase();\n return segment === '..' || segment === '%2e.' || segment === '.%2e' || segment === '%2e%2e';\n};\n\n// States:\nvar SCHEME_START = {};\nvar SCHEME = {};\nvar NO_SCHEME = {};\nvar SPECIAL_RELATIVE_OR_AUTHORITY = {};\nvar PATH_OR_AUTHORITY = {};\nvar RELATIVE = {};\nvar RELATIVE_SLASH = {};\nvar SPECIAL_AUTHORITY_SLASHES = {};\nvar SPECIAL_AUTHORITY_IGNORE_SLASHES = {};\nvar AUTHORITY = {};\nvar HOST = {};\nvar HOSTNAME = {};\nvar PORT = {};\nvar FILE = {};\nvar FILE_SLASH = {};\nvar FILE_HOST = {};\nvar PATH_START = {};\nvar PATH = {};\nvar CANNOT_BE_A_BASE_URL_PATH = {};\nvar QUERY = {};\nvar FRAGMENT = {};\n\n// eslint-disable-next-line max-statements -- TODO\nvar parseURL = function (url, input, stateOverride, base) {\n var state = stateOverride || SCHEME_START;\n var pointer = 0;\n var buffer = '';\n var seenAt = false;\n var seenBracket = false;\n var seenPasswordToken = false;\n var codePoints, char, bufferCodePoints, failure;\n\n if (!stateOverride) {\n url.scheme = '';\n url.username = '';\n url.password = '';\n url.host = null;\n url.port = null;\n url.path = [];\n url.query = null;\n url.fragment = null;\n url.cannotBeABaseURL = false;\n input = input.replace(LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE, '');\n }\n\n input = input.replace(TAB_AND_NEW_LINE, '');\n\n codePoints = arrayFrom(input);\n\n while (pointer <= codePoints.length) {\n char = codePoints[pointer];\n switch (state) {\n case SCHEME_START:\n if (char && ALPHA.test(char)) {\n buffer += char.toLowerCase();\n state = SCHEME;\n } else if (!stateOverride) {\n state = NO_SCHEME;\n continue;\n } else return INVALID_SCHEME;\n break;\n\n case SCHEME:\n if (char && (ALPHANUMERIC.test(char) || char == '+' || char == '-' || char == '.')) {\n buffer += char.toLowerCase();\n } else if (char == ':') {\n if (stateOverride && (\n (isSpecial(url) != has(specialSchemes, buffer)) ||\n (buffer == 'file' && (includesCredentials(url) || url.port !== null)) ||\n (url.scheme == 'file' && !url.host)\n )) return;\n url.scheme = buffer;\n if (stateOverride) {\n if (isSpecial(url) && specialSchemes[url.scheme] == url.port) url.port = null;\n return;\n }\n buffer = '';\n if (url.scheme == 'file') {\n state = FILE;\n } else if (isSpecial(url) && base && base.scheme == url.scheme) {\n state = SPECIAL_RELATIVE_OR_AUTHORITY;\n } else if (isSpecial(url)) {\n state = SPECIAL_AUTHORITY_SLASHES;\n } else if (codePoints[pointer + 1] == '/') {\n state = PATH_OR_AUTHORITY;\n pointer++;\n } else {\n url.cannotBeABaseURL = true;\n url.path.push('');\n state = CANNOT_BE_A_BASE_URL_PATH;\n }\n } else if (!stateOverride) {\n buffer = '';\n state = NO_SCHEME;\n pointer = 0;\n continue;\n } else return INVALID_SCHEME;\n break;\n\n case NO_SCHEME:\n if (!base || (base.cannotBeABaseURL && char != '#')) return INVALID_SCHEME;\n if (base.cannotBeABaseURL && char == '#') {\n url.scheme = base.scheme;\n url.path = base.path.slice();\n url.query = base.query;\n url.fragment = '';\n url.cannotBeABaseURL = true;\n state = FRAGMENT;\n break;\n }\n state = base.scheme == 'file' ? FILE : RELATIVE;\n continue;\n\n case SPECIAL_RELATIVE_OR_AUTHORITY:\n if (char == '/' && codePoints[pointer + 1] == '/') {\n state = SPECIAL_AUTHORITY_IGNORE_SLASHES;\n pointer++;\n } else {\n state = RELATIVE;\n continue;\n } break;\n\n case PATH_OR_AUTHORITY:\n if (char == '/') {\n state = AUTHORITY;\n break;\n } else {\n state = PATH;\n continue;\n }\n\n case RELATIVE:\n url.scheme = base.scheme;\n if (char == EOF) {\n url.username = base.username;\n url.password = base.password;\n url.host = base.host;\n url.port = base.port;\n url.path = base.path.slice();\n url.query = base.query;\n } else if (char == '/' || (char == '\\\\' && isSpecial(url))) {\n state = RELATIVE_SLASH;\n } else if (char == '?') {\n url.username = base.username;\n url.password = base.password;\n url.host = base.host;\n url.port = base.port;\n url.path = base.path.slice();\n url.query = '';\n state = QUERY;\n } else if (char == '#') {\n url.username = base.username;\n url.password = base.password;\n url.host = base.host;\n url.port = base.port;\n url.path = base.path.slice();\n url.query = base.query;\n url.fragment = '';\n state = FRAGMENT;\n } else {\n url.username = base.username;\n url.password = base.password;\n url.host = base.host;\n url.port = base.port;\n url.path = base.path.slice();\n url.path.pop();\n state = PATH;\n continue;\n } break;\n\n case RELATIVE_SLASH:\n if (isSpecial(url) && (char == '/' || char == '\\\\')) {\n state = SPECIAL_AUTHORITY_IGNORE_SLASHES;\n } else if (char == '/') {\n state = AUTHORITY;\n } else {\n url.username = base.username;\n url.password = base.password;\n url.host = base.host;\n url.port = base.port;\n state = PATH;\n continue;\n } break;\n\n case SPECIAL_AUTHORITY_SLASHES:\n state = SPECIAL_AUTHORITY_IGNORE_SLASHES;\n if (char != '/' || buffer.charAt(pointer + 1) != '/') continue;\n pointer++;\n break;\n\n case SPECIAL_AUTHORITY_IGNORE_SLASHES:\n if (char != '/' && char != '\\\\') {\n state = AUTHORITY;\n continue;\n } break;\n\n case AUTHORITY:\n if (char == '@') {\n if (seenAt) buffer = '%40' + buffer;\n seenAt = true;\n bufferCodePoints = arrayFrom(buffer);\n for (var i = 0; i < bufferCodePoints.length; i++) {\n var codePoint = bufferCodePoints[i];\n if (codePoint == ':' && !seenPasswordToken) {\n seenPasswordToken = true;\n continue;\n }\n var encodedCodePoints = percentEncode(codePoint, userinfoPercentEncodeSet);\n if (seenPasswordToken) url.password += encodedCodePoints;\n else url.username += encodedCodePoints;\n }\n buffer = '';\n } else if (\n char == EOF || char == '/' || char == '?' || char == '#' ||\n (char == '\\\\' && isSpecial(url))\n ) {\n if (seenAt && buffer == '') return INVALID_AUTHORITY;\n pointer -= arrayFrom(buffer).length + 1;\n buffer = '';\n state = HOST;\n } else buffer += char;\n break;\n\n case HOST:\n case HOSTNAME:\n if (stateOverride && url.scheme == 'file') {\n state = FILE_HOST;\n continue;\n } else if (char == ':' && !seenBracket) {\n if (buffer == '') return INVALID_HOST;\n failure = parseHost(url, buffer);\n if (failure) return failure;\n buffer = '';\n state = PORT;\n if (stateOverride == HOSTNAME) return;\n } else if (\n char == EOF || char == '/' || char == '?' || char == '#' ||\n (char == '\\\\' && isSpecial(url))\n ) {\n if (isSpecial(url) && buffer == '') return INVALID_HOST;\n if (stateOverride && buffer == '' && (includesCredentials(url) || url.port !== null)) return;\n failure = parseHost(url, buffer);\n if (failure) return failure;\n buffer = '';\n state = PATH_START;\n if (stateOverride) return;\n continue;\n } else {\n if (char == '[') seenBracket = true;\n else if (char == ']') seenBracket = false;\n buffer += char;\n } break;\n\n case PORT:\n if (DIGIT.test(char)) {\n buffer += char;\n } else if (\n char == EOF || char == '/' || char == '?' || char == '#' ||\n (char == '\\\\' && isSpecial(url)) ||\n stateOverride\n ) {\n if (buffer != '') {\n var port = parseInt(buffer, 10);\n if (port > 0xFFFF) return INVALID_PORT;\n url.port = (isSpecial(url) && port === specialSchemes[url.scheme]) ? null : port;\n buffer = '';\n }\n if (stateOverride) return;\n state = PATH_START;\n continue;\n } else return INVALID_PORT;\n break;\n\n case FILE:\n url.scheme = 'file';\n if (char == '/' || char == '\\\\') state = FILE_SLASH;\n else if (base && base.scheme == 'file') {\n if (char == EOF) {\n url.host = base.host;\n url.path = base.path.slice();\n url.query = base.query;\n } else if (char == '?') {\n url.host = base.host;\n url.path = base.path.slice();\n url.query = '';\n state = QUERY;\n } else if (char == '#') {\n url.host = base.host;\n url.path = base.path.slice();\n url.query = base.query;\n url.fragment = '';\n state = FRAGMENT;\n } else {\n if (!startsWithWindowsDriveLetter(codePoints.slice(pointer).join(''))) {\n url.host = base.host;\n url.path = base.path.slice();\n shortenURLsPath(url);\n }\n state = PATH;\n continue;\n }\n } else {\n state = PATH;\n continue;\n } break;\n\n case FILE_SLASH:\n if (char == '/' || char == '\\\\') {\n state = FILE_HOST;\n break;\n }\n if (base && base.scheme == 'file' && !startsWithWindowsDriveLetter(codePoints.slice(pointer).join(''))) {\n if (isWindowsDriveLetter(base.path[0], true)) url.path.push(base.path[0]);\n else url.host = base.host;\n }\n state = PATH;\n continue;\n\n case FILE_HOST:\n if (char == EOF || char == '/' || char == '\\\\' || char == '?' || char == '#') {\n if (!stateOverride && isWindowsDriveLetter(buffer)) {\n state = PATH;\n } else if (buffer == '') {\n url.host = '';\n if (stateOverride) return;\n state = PATH_START;\n } else {\n failure = parseHost(url, buffer);\n if (failure) return failure;\n if (url.host == 'localhost') url.host = '';\n if (stateOverride) return;\n buffer = '';\n state = PATH_START;\n } continue;\n } else buffer += char;\n break;\n\n case PATH_START:\n if (isSpecial(url)) {\n state = PATH;\n if (char != '/' && char != '\\\\') continue;\n } else if (!stateOverride && char == '?') {\n url.query = '';\n state = QUERY;\n } else if (!stateOverride && char == '#') {\n url.fragment = '';\n state = FRAGMENT;\n } else if (char != EOF) {\n state = PATH;\n if (char != '/') continue;\n } break;\n\n case PATH:\n if (\n char == EOF || char == '/' ||\n (char == '\\\\' && isSpecial(url)) ||\n (!stateOverride && (char == '?' || char == '#'))\n ) {\n if (isDoubleDot(buffer)) {\n shortenURLsPath(url);\n if (char != '/' && !(char == '\\\\' && isSpecial(url))) {\n url.path.push('');\n }\n } else if (isSingleDot(buffer)) {\n if (char != '/' && !(char == '\\\\' && isSpecial(url))) {\n url.path.push('');\n }\n } else {\n if (url.scheme == 'file' && !url.path.length && isWindowsDriveLetter(buffer)) {\n if (url.host) url.host = '';\n buffer = buffer.charAt(0) + ':'; // normalize windows drive letter\n }\n url.path.push(buffer);\n }\n buffer = '';\n if (url.scheme == 'file' && (char == EOF || char == '?' || char == '#')) {\n while (url.path.length > 1 && url.path[0] === '') {\n url.path.shift();\n }\n }\n if (char == '?') {\n url.query = '';\n state = QUERY;\n } else if (char == '#') {\n url.fragment = '';\n state = FRAGMENT;\n }\n } else {\n buffer += percentEncode(char, pathPercentEncodeSet);\n } break;\n\n case CANNOT_BE_A_BASE_URL_PATH:\n if (char == '?') {\n url.query = '';\n state = QUERY;\n } else if (char == '#') {\n url.fragment = '';\n state = FRAGMENT;\n } else if (char != EOF) {\n url.path[0] += percentEncode(char, C0ControlPercentEncodeSet);\n } break;\n\n case QUERY:\n if (!stateOverride && char == '#') {\n url.fragment = '';\n state = FRAGMENT;\n } else if (char != EOF) {\n if (char == \"'\" && isSpecial(url)) url.query += '%27';\n else if (char == '#') url.query += '%23';\n else url.query += percentEncode(char, C0ControlPercentEncodeSet);\n } break;\n\n case FRAGMENT:\n if (char != EOF) url.fragment += percentEncode(char, fragmentPercentEncodeSet);\n break;\n }\n\n pointer++;\n }\n};\n\n// `URL` constructor\n// https://url.spec.whatwg.org/#url-class\nvar URLConstructor = function URL(url /* , base */) {\n var that = anInstance(this, URLConstructor, 'URL');\n var base = arguments.length > 1 ? arguments[1] : undefined;\n var urlString = $toString(url);\n var state = setInternalState(that, { type: 'URL' });\n var baseState, failure;\n if (base !== undefined) {\n if (base instanceof URLConstructor) baseState = getInternalURLState(base);\n else {\n failure = parseURL(baseState = {}, $toString(base));\n if (failure) throw TypeError(failure);\n }\n }\n failure = parseURL(state, urlString, null, baseState);\n if (failure) throw TypeError(failure);\n var searchParams = state.searchParams = new URLSearchParams();\n var searchParamsState = getInternalSearchParamsState(searchParams);\n searchParamsState.updateSearchParams(state.query);\n searchParamsState.updateURL = function () {\n state.query = String(searchParams) || null;\n };\n if (!DESCRIPTORS) {\n that.href = serializeURL.call(that);\n that.origin = getOrigin.call(that);\n that.protocol = getProtocol.call(that);\n that.username = getUsername.call(that);\n that.password = getPassword.call(that);\n that.host = getHost.call(that);\n that.hostname = getHostname.call(that);\n that.port = getPort.call(that);\n that.pathname = getPathname.call(that);\n that.search = getSearch.call(that);\n that.searchParams = getSearchParams.call(that);\n that.hash = getHash.call(that);\n }\n};\n\nvar URLPrototype = URLConstructor.prototype;\n\nvar serializeURL = function () {\n var url = getInternalURLState(this);\n var scheme = url.scheme;\n var username = url.username;\n var password = url.password;\n var host = url.host;\n var port = url.port;\n var path = url.path;\n var query = url.query;\n var fragment = url.fragment;\n var output = scheme + ':';\n if (host !== null) {\n output += '//';\n if (includesCredentials(url)) {\n output += username + (password ? ':' + password : '') + '@';\n }\n output += serializeHost(host);\n if (port !== null) output += ':' + port;\n } else if (scheme == 'file') output += '//';\n output += url.cannotBeABaseURL ? path[0] : path.length ? '/' + path.join('/') : '';\n if (query !== null) output += '?' + query;\n if (fragment !== null) output += '#' + fragment;\n return output;\n};\n\nvar getOrigin = function () {\n var url = getInternalURLState(this);\n var scheme = url.scheme;\n var port = url.port;\n if (scheme == 'blob') try {\n return new URLConstructor(scheme.path[0]).origin;\n } catch (error) {\n return 'null';\n }\n if (scheme == 'file' || !isSpecial(url)) return 'null';\n return scheme + '://' + serializeHost(url.host) + (port !== null ? ':' + port : '');\n};\n\nvar getProtocol = function () {\n return getInternalURLState(this).scheme + ':';\n};\n\nvar getUsername = function () {\n return getInternalURLState(this).username;\n};\n\nvar getPassword = function () {\n return getInternalURLState(this).password;\n};\n\nvar getHost = function () {\n var url = getInternalURLState(this);\n var host = url.host;\n var port = url.port;\n return host === null ? ''\n : port === null ? serializeHost(host)\n : serializeHost(host) + ':' + port;\n};\n\nvar getHostname = function () {\n var host = getInternalURLState(this).host;\n return host === null ? '' : serializeHost(host);\n};\n\nvar getPort = function () {\n var port = getInternalURLState(this).port;\n return port === null ? '' : String(port);\n};\n\nvar getPathname = function () {\n var url = getInternalURLState(this);\n var path = url.path;\n return url.cannotBeABaseURL ? path[0] : path.length ? '/' + path.join('/') : '';\n};\n\nvar getSearch = function () {\n var query = getInternalURLState(this).query;\n return query ? '?' + query : '';\n};\n\nvar getSearchParams = function () {\n return getInternalURLState(this).searchParams;\n};\n\nvar getHash = function () {\n var fragment = getInternalURLState(this).fragment;\n return fragment ? '#' + fragment : '';\n};\n\nvar accessorDescriptor = function (getter, setter) {\n return { get: getter, set: setter, configurable: true, enumerable: true };\n};\n\nif (DESCRIPTORS) {\n defineProperties(URLPrototype, {\n // `URL.prototype.href` accessors pair\n // https://url.spec.whatwg.org/#dom-url-href\n href: accessorDescriptor(serializeURL, function (href) {\n var url = getInternalURLState(this);\n var urlString = $toString(href);\n var failure = parseURL(url, urlString);\n if (failure) throw TypeError(failure);\n getInternalSearchParamsState(url.searchParams).updateSearchParams(url.query);\n }),\n // `URL.prototype.origin` getter\n // https://url.spec.whatwg.org/#dom-url-origin\n origin: accessorDescriptor(getOrigin),\n // `URL.prototype.protocol` accessors pair\n // https://url.spec.whatwg.org/#dom-url-protocol\n protocol: accessorDescriptor(getProtocol, function (protocol) {\n var url = getInternalURLState(this);\n parseURL(url, $toString(protocol) + ':', SCHEME_START);\n }),\n // `URL.prototype.username` accessors pair\n // https://url.spec.whatwg.org/#dom-url-username\n username: accessorDescriptor(getUsername, function (username) {\n var url = getInternalURLState(this);\n var codePoints = arrayFrom($toString(username));\n if (cannotHaveUsernamePasswordPort(url)) return;\n url.username = '';\n for (var i = 0; i < codePoints.length; i++) {\n url.username += percentEncode(codePoints[i], userinfoPercentEncodeSet);\n }\n }),\n // `URL.prototype.password` accessors pair\n // https://url.spec.whatwg.org/#dom-url-password\n password: accessorDescriptor(getPassword, function (password) {\n var url = getInternalURLState(this);\n var codePoints = arrayFrom($toString(password));\n if (cannotHaveUsernamePasswordPort(url)) return;\n url.password = '';\n for (var i = 0; i < codePoints.length; i++) {\n url.password += percentEncode(codePoints[i], userinfoPercentEncodeSet);\n }\n }),\n // `URL.prototype.host` accessors pair\n // https://url.spec.whatwg.org/#dom-url-host\n host: accessorDescriptor(getHost, function (host) {\n var url = getInternalURLState(this);\n if (url.cannotBeABaseURL) return;\n parseURL(url, $toString(host), HOST);\n }),\n // `URL.prototype.hostname` accessors pair\n // https://url.spec.whatwg.org/#dom-url-hostname\n hostname: accessorDescriptor(getHostname, function (hostname) {\n var url = getInternalURLState(this);\n if (url.cannotBeABaseURL) return;\n parseURL(url, $toString(hostname), HOSTNAME);\n }),\n // `URL.prototype.port` accessors pair\n // https://url.spec.whatwg.org/#dom-url-port\n port: accessorDescriptor(getPort, function (port) {\n var url = getInternalURLState(this);\n if (cannotHaveUsernamePasswordPort(url)) return;\n port = $toString(port);\n if (port == '') url.port = null;\n else parseURL(url, port, PORT);\n }),\n // `URL.prototype.pathname` accessors pair\n // https://url.spec.whatwg.org/#dom-url-pathname\n pathname: accessorDescriptor(getPathname, function (pathname) {\n var url = getInternalURLState(this);\n if (url.cannotBeABaseURL) return;\n url.path = [];\n parseURL(url, $toString(pathname), PATH_START);\n }),\n // `URL.prototype.search` accessors pair\n // https://url.spec.whatwg.org/#dom-url-search\n search: accessorDescriptor(getSearch, function (search) {\n var url = getInternalURLState(this);\n search = $toString(search);\n if (search == '') {\n url.query = null;\n } else {\n if ('?' == search.charAt(0)) search = search.slice(1);\n url.query = '';\n parseURL(url, search, QUERY);\n }\n getInternalSearchParamsState(url.searchParams).updateSearchParams(url.query);\n }),\n // `URL.prototype.searchParams` getter\n // https://url.spec.whatwg.org/#dom-url-searchparams\n searchParams: accessorDescriptor(getSearchParams),\n // `URL.prototype.hash` accessors pair\n // https://url.spec.whatwg.org/#dom-url-hash\n hash: accessorDescriptor(getHash, function (hash) {\n var url = getInternalURLState(this);\n hash = $toString(hash);\n if (hash == '') {\n url.fragment = null;\n return;\n }\n if ('#' == hash.charAt(0)) hash = hash.slice(1);\n url.fragment = '';\n parseURL(url, hash, FRAGMENT);\n })\n });\n}\n\n// `URL.prototype.toJSON` method\n// https://url.spec.whatwg.org/#dom-url-tojson\nredefine(URLPrototype, 'toJSON', function toJSON() {\n return serializeURL.call(this);\n}, { enumerable: true });\n\n// `URL.prototype.toString` method\n// https://url.spec.whatwg.org/#URL-stringification-behavior\nredefine(URLPrototype, 'toString', function toString() {\n return serializeURL.call(this);\n}, { enumerable: true });\n\nif (NativeURL) {\n var nativeCreateObjectURL = NativeURL.createObjectURL;\n var nativeRevokeObjectURL = NativeURL.revokeObjectURL;\n // `URL.createObjectURL` method\n // https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n if (nativeCreateObjectURL) redefine(URLConstructor, 'createObjectURL', function createObjectURL(blob) {\n return nativeCreateObjectURL.apply(NativeURL, arguments);\n });\n // `URL.revokeObjectURL` method\n // https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n if (nativeRevokeObjectURL) redefine(URLConstructor, 'revokeObjectURL', function revokeObjectURL(url) {\n return nativeRevokeObjectURL.apply(NativeURL, arguments);\n });\n}\n\nsetToStringTag(URLConstructor, 'URL');\n\n$({ global: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS }, {\n URL: URLConstructor\n});\n","'use strict';\nvar $ = require('../internals/export');\n\n// `URL.prototype.toJSON` method\n// https://url.spec.whatwg.org/#dom-url-tojson\n$({ target: 'URL', proto: true, enumerable: true }, {\n toJSON: function toJSON() {\n return URL.prototype.toString.call(this);\n }\n});\n","require('../modules/es.symbol');\nrequire('../modules/es.symbol.description');\nrequire('../modules/es.symbol.async-iterator');\nrequire('../modules/es.symbol.has-instance');\nrequire('../modules/es.symbol.is-concat-spreadable');\nrequire('../modules/es.symbol.iterator');\nrequire('../modules/es.symbol.match');\nrequire('../modules/es.symbol.match-all');\nrequire('../modules/es.symbol.replace');\nrequire('../modules/es.symbol.search');\nrequire('../modules/es.symbol.species');\nrequire('../modules/es.symbol.split');\nrequire('../modules/es.symbol.to-primitive');\nrequire('../modules/es.symbol.to-string-tag');\nrequire('../modules/es.symbol.unscopables');\nrequire('../modules/es.aggregate-error');\nrequire('../modules/es.array.concat');\nrequire('../modules/es.array.copy-within');\nrequire('../modules/es.array.every');\nrequire('../modules/es.array.fill');\nrequire('../modules/es.array.filter');\nrequire('../modules/es.array.find');\nrequire('../modules/es.array.find-index');\nrequire('../modules/es.array.flat');\nrequire('../modules/es.array.flat-map');\nrequire('../modules/es.array.for-each');\nrequire('../modules/es.array.from');\nrequire('../modules/es.array.includes');\nrequire('../modules/es.array.index-of');\nrequire('../modules/es.array.is-array');\nrequire('../modules/es.array.iterator');\nrequire('../modules/es.array.join');\nrequire('../modules/es.array.last-index-of');\nrequire('../modules/es.array.map');\nrequire('../modules/es.array.of');\nrequire('../modules/es.array.reduce');\nrequire('../modules/es.array.reduce-right');\nrequire('../modules/es.array.reverse');\nrequire('../modules/es.array.slice');\nrequire('../modules/es.array.some');\nrequire('../modules/es.array.sort');\nrequire('../modules/es.array.species');\nrequire('../modules/es.array.splice');\nrequire('../modules/es.array.unscopables.flat');\nrequire('../modules/es.array.unscopables.flat-map');\nrequire('../modules/es.array-buffer.constructor');\nrequire('../modules/es.array-buffer.is-view');\nrequire('../modules/es.array-buffer.slice');\nrequire('../modules/es.data-view');\nrequire('../modules/es.date.get-year');\nrequire('../modules/es.date.now');\nrequire('../modules/es.date.set-year');\nrequire('../modules/es.date.to-gmt-string');\nrequire('../modules/es.date.to-iso-string');\nrequire('../modules/es.date.to-json');\nrequire('../modules/es.date.to-primitive');\nrequire('../modules/es.date.to-string');\nrequire('../modules/es.escape');\nrequire('../modules/es.function.bind');\nrequire('../modules/es.function.has-instance');\nrequire('../modules/es.function.name');\nrequire('../modules/es.global-this');\nrequire('../modules/es.json.stringify');\nrequire('../modules/es.json.to-string-tag');\nrequire('../modules/es.map');\nrequire('../modules/es.math.acosh');\nrequire('../modules/es.math.asinh');\nrequire('../modules/es.math.atanh');\nrequire('../modules/es.math.cbrt');\nrequire('../modules/es.math.clz32');\nrequire('../modules/es.math.cosh');\nrequire('../modules/es.math.expm1');\nrequire('../modules/es.math.fround');\nrequire('../modules/es.math.hypot');\nrequire('../modules/es.math.imul');\nrequire('../modules/es.math.log10');\nrequire('../modules/es.math.log1p');\nrequire('../modules/es.math.log2');\nrequire('../modules/es.math.sign');\nrequire('../modules/es.math.sinh');\nrequire('../modules/es.math.tanh');\nrequire('../modules/es.math.to-string-tag');\nrequire('../modules/es.math.trunc');\nrequire('../modules/es.number.constructor');\nrequire('../modules/es.number.epsilon');\nrequire('../modules/es.number.is-finite');\nrequire('../modules/es.number.is-integer');\nrequire('../modules/es.number.is-nan');\nrequire('../modules/es.number.is-safe-integer');\nrequire('../modules/es.number.max-safe-integer');\nrequire('../modules/es.number.min-safe-integer');\nrequire('../modules/es.number.parse-float');\nrequire('../modules/es.number.parse-int');\nrequire('../modules/es.number.to-fixed');\nrequire('../modules/es.number.to-precision');\nrequire('../modules/es.object.assign');\nrequire('../modules/es.object.create');\nrequire('../modules/es.object.define-getter');\nrequire('../modules/es.object.define-properties');\nrequire('../modules/es.object.define-property');\nrequire('../modules/es.object.define-setter');\nrequire('../modules/es.object.entries');\nrequire('../modules/es.object.freeze');\nrequire('../modules/es.object.from-entries');\nrequire('../modules/es.object.get-own-property-descriptor');\nrequire('../modules/es.object.get-own-property-descriptors');\nrequire('../modules/es.object.get-own-property-names');\nrequire('../modules/es.object.get-prototype-of');\nrequire('../modules/es.object.is');\nrequire('../modules/es.object.is-extensible');\nrequire('../modules/es.object.is-frozen');\nrequire('../modules/es.object.is-sealed');\nrequire('../modules/es.object.keys');\nrequire('../modules/es.object.lookup-getter');\nrequire('../modules/es.object.lookup-setter');\nrequire('../modules/es.object.prevent-extensions');\nrequire('../modules/es.object.seal');\nrequire('../modules/es.object.set-prototype-of');\nrequire('../modules/es.object.to-string');\nrequire('../modules/es.object.values');\nrequire('../modules/es.parse-float');\nrequire('../modules/es.parse-int');\nrequire('../modules/es.promise');\nrequire('../modules/es.promise.all-settled');\nrequire('../modules/es.promise.any');\nrequire('../modules/es.promise.finally');\nrequire('../modules/es.reflect.apply');\nrequire('../modules/es.reflect.construct');\nrequire('../modules/es.reflect.define-property');\nrequire('../modules/es.reflect.delete-property');\nrequire('../modules/es.reflect.get');\nrequire('../modules/es.reflect.get-own-property-descriptor');\nrequire('../modules/es.reflect.get-prototype-of');\nrequire('../modules/es.reflect.has');\nrequire('../modules/es.reflect.is-extensible');\nrequire('../modules/es.reflect.own-keys');\nrequire('../modules/es.reflect.prevent-extensions');\nrequire('../modules/es.reflect.set');\nrequire('../modules/es.reflect.set-prototype-of');\nrequire('../modules/es.reflect.to-string-tag');\nrequire('../modules/es.regexp.constructor');\nrequire('../modules/es.regexp.dot-all');\nrequire('../modules/es.regexp.exec');\nrequire('../modules/es.regexp.flags');\nrequire('../modules/es.regexp.sticky');\nrequire('../modules/es.regexp.test');\nrequire('../modules/es.regexp.to-string');\nrequire('../modules/es.set');\nrequire('../modules/es.string.code-point-at');\nrequire('../modules/es.string.ends-with');\nrequire('../modules/es.string.from-code-point');\nrequire('../modules/es.string.includes');\nrequire('../modules/es.string.iterator');\nrequire('../modules/es.string.match');\nrequire('../modules/es.string.match-all');\nrequire('../modules/es.string.pad-end');\nrequire('../modules/es.string.pad-start');\nrequire('../modules/es.string.raw');\nrequire('../modules/es.string.repeat');\nrequire('../modules/es.string.replace');\nrequire('../modules/es.string.replace-all');\nrequire('../modules/es.string.search');\nrequire('../modules/es.string.split');\nrequire('../modules/es.string.starts-with');\nrequire('../modules/es.string.substr');\nrequire('../modules/es.string.trim');\nrequire('../modules/es.string.trim-end');\nrequire('../modules/es.string.trim-start');\nrequire('../modules/es.string.anchor');\nrequire('../modules/es.string.big');\nrequire('../modules/es.string.blink');\nrequire('../modules/es.string.bold');\nrequire('../modules/es.string.fixed');\nrequire('../modules/es.string.fontcolor');\nrequire('../modules/es.string.fontsize');\nrequire('../modules/es.string.italics');\nrequire('../modules/es.string.link');\nrequire('../modules/es.string.small');\nrequire('../modules/es.string.strike');\nrequire('../modules/es.string.sub');\nrequire('../modules/es.string.sup');\nrequire('../modules/es.typed-array.float32-array');\nrequire('../modules/es.typed-array.float64-array');\nrequire('../modules/es.typed-array.int8-array');\nrequire('../modules/es.typed-array.int16-array');\nrequire('../modules/es.typed-array.int32-array');\nrequire('../modules/es.typed-array.uint8-array');\nrequire('../modules/es.typed-array.uint8-clamped-array');\nrequire('../modules/es.typed-array.uint16-array');\nrequire('../modules/es.typed-array.uint32-array');\nrequire('../modules/es.typed-array.copy-within');\nrequire('../modules/es.typed-array.every');\nrequire('../modules/es.typed-array.fill');\nrequire('../modules/es.typed-array.filter');\nrequire('../modules/es.typed-array.find');\nrequire('../modules/es.typed-array.find-index');\nrequire('../modules/es.typed-array.for-each');\nrequire('../modules/es.typed-array.from');\nrequire('../modules/es.typed-array.includes');\nrequire('../modules/es.typed-array.index-of');\nrequire('../modules/es.typed-array.iterator');\nrequire('../modules/es.typed-array.join');\nrequire('../modules/es.typed-array.last-index-of');\nrequire('../modules/es.typed-array.map');\nrequire('../modules/es.typed-array.of');\nrequire('../modules/es.typed-array.reduce');\nrequire('../modules/es.typed-array.reduce-right');\nrequire('../modules/es.typed-array.reverse');\nrequire('../modules/es.typed-array.set');\nrequire('../modules/es.typed-array.slice');\nrequire('../modules/es.typed-array.some');\nrequire('../modules/es.typed-array.sort');\nrequire('../modules/es.typed-array.subarray');\nrequire('../modules/es.typed-array.to-locale-string');\nrequire('../modules/es.typed-array.to-string');\nrequire('../modules/es.unescape');\nrequire('../modules/es.weak-map');\nrequire('../modules/es.weak-set');\nrequire('../modules/web.dom-collections.for-each');\nrequire('../modules/web.dom-collections.iterator');\nrequire('../modules/web.immediate');\nrequire('../modules/web.queue-microtask');\nrequire('../modules/web.timers');\nrequire('../modules/web.url');\nrequire('../modules/web.url.to-json');\nrequire('../modules/web.url-search-params');\n\nmodule.exports = require('../internals/path');\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../css-loader/dist/runtime/cssWithMappingToString.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../css-loader/dist/runtime/api.js\";\nimport ___CSS_LOADER_GET_URL_IMPORT___ from \"../../css-loader/dist/runtime/getUrl.js\";\nvar ___CSS_LOADER_URL_IMPORT_0___ = new URL(\"./files/ibm-plex-sans-cyrillic-ext-400-normal.woff2\", import.meta.url);\nvar ___CSS_LOADER_URL_IMPORT_1___ = new URL(\"./files/ibm-plex-sans-all-400-normal.woff\", import.meta.url);\nvar ___CSS_LOADER_URL_IMPORT_2___ = new URL(\"./files/ibm-plex-sans-cyrillic-400-normal.woff2\", import.meta.url);\nvar ___CSS_LOADER_URL_IMPORT_3___ = new URL(\"./files/ibm-plex-sans-greek-400-normal.woff2\", import.meta.url);\nvar ___CSS_LOADER_URL_IMPORT_4___ = new URL(\"./files/ibm-plex-sans-vietnamese-400-normal.woff2\", import.meta.url);\nvar ___CSS_LOADER_URL_IMPORT_5___ = new URL(\"./files/ibm-plex-sans-latin-ext-400-normal.woff2\", import.meta.url);\nvar ___CSS_LOADER_URL_IMPORT_6___ = new URL(\"./files/ibm-plex-sans-latin-400-normal.woff2\", import.meta.url);\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\nvar ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);\nvar ___CSS_LOADER_URL_REPLACEMENT_1___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_1___);\nvar ___CSS_LOADER_URL_REPLACEMENT_2___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_2___);\nvar ___CSS_LOADER_URL_REPLACEMENT_3___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_3___);\nvar ___CSS_LOADER_URL_REPLACEMENT_4___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_4___);\nvar ___CSS_LOADER_URL_REPLACEMENT_5___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_5___);\nvar ___CSS_LOADER_URL_REPLACEMENT_6___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_6___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \"/* ibm-plex-sans-cyrillic-ext-400-normal*/\\n@font-face {\\n font-family: 'IBM Plex Sans';\\n font-style: normal;\\n font-display: swap;\\n font-weight: 400;\\n src: url(\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \") format('woff2'), url(\" + ___CSS_LOADER_URL_REPLACEMENT_1___ + \") format('woff');\\n unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\\n}\\n/* ibm-plex-sans-cyrillic-400-normal*/\\n@font-face {\\n font-family: 'IBM Plex Sans';\\n font-style: normal;\\n font-display: swap;\\n font-weight: 400;\\n src: url(\" + ___CSS_LOADER_URL_REPLACEMENT_2___ + \") format('woff2'), url(\" + ___CSS_LOADER_URL_REPLACEMENT_1___ + \") format('woff');\\n unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\\n}\\n/* ibm-plex-sans-greek-400-normal*/\\n@font-face {\\n font-family: 'IBM Plex Sans';\\n font-style: normal;\\n font-display: swap;\\n font-weight: 400;\\n src: url(\" + ___CSS_LOADER_URL_REPLACEMENT_3___ + \") format('woff2'), url(\" + ___CSS_LOADER_URL_REPLACEMENT_1___ + \") format('woff');\\n unicode-range: U+0370-03FF;\\n}\\n/* ibm-plex-sans-vietnamese-400-normal*/\\n@font-face {\\n font-family: 'IBM Plex Sans';\\n font-style: normal;\\n font-display: swap;\\n font-weight: 400;\\n src: url(\" + ___CSS_LOADER_URL_REPLACEMENT_4___ + \") format('woff2'), url(\" + ___CSS_LOADER_URL_REPLACEMENT_1___ + \") format('woff');\\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;\\n}\\n/* ibm-plex-sans-latin-ext-400-normal*/\\n@font-face {\\n font-family: 'IBM Plex Sans';\\n font-style: normal;\\n font-display: swap;\\n font-weight: 400;\\n src: url(\" + ___CSS_LOADER_URL_REPLACEMENT_5___ + \") format('woff2'), url(\" + ___CSS_LOADER_URL_REPLACEMENT_1___ + \") format('woff');\\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;\\n}\\n/* ibm-plex-sans-latin-400-normal*/\\n@font-face {\\n font-family: 'IBM Plex Sans';\\n font-style: normal;\\n font-display: swap;\\n font-weight: 400;\\n src: url(\" + ___CSS_LOADER_URL_REPLACEMENT_6___ + \") format('woff2'), url(\" + ___CSS_LOADER_URL_REPLACEMENT_1___ + \") format('woff');\\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./node_modules/@fontsource/ibm-plex-sans/index.css\"],\"names\":[],\"mappings\":\"AAAA,yCAAyC;AACzC;EACE,4BAA4B;EAC5B,kBAAkB;EAClB,kBAAkB;EAClB,gBAAgB;EAChB,oHAAgJ;EAChJ,sFAAsF;AACxF;AACA,qCAAqC;AACrC;EACE,4BAA4B;EAC5B,kBAAkB;EAClB,kBAAkB;EAClB,gBAAgB;EAChB,oHAA4I;EAC5I,4DAA4D;AAC9D;AACA,kCAAkC;AAClC;EACE,4BAA4B;EAC5B,kBAAkB;EAClB,kBAAkB;EAClB,gBAAgB;EAChB,oHAAyI;EACzI,0BAA0B;AAC5B;AACA,uCAAuC;AACvC;EACE,4BAA4B;EAC5B,kBAAkB;EAClB,kBAAkB;EAClB,gBAAgB;EAChB,oHAA8I;EAC9I,gHAAgH;AAClH;AACA,sCAAsC;AACtC;EACE,4BAA4B;EAC5B,kBAAkB;EAClB,kBAAkB;EAClB,gBAAgB;EAChB,oHAA6I;EAC7I,mHAAmH;AACrH;AACA,kCAAkC;AAClC;EACE,4BAA4B;EAC5B,kBAAkB;EAClB,kBAAkB;EAClB,gBAAgB;EAChB,oHAAyI;EACzI,yKAAyK;AAC3K\",\"sourcesContent\":[\"/* ibm-plex-sans-cyrillic-ext-400-normal*/\\n@font-face {\\n font-family: 'IBM Plex Sans';\\n font-style: normal;\\n font-display: swap;\\n font-weight: 400;\\n src: url('./files/ibm-plex-sans-cyrillic-ext-400-normal.woff2') format('woff2'), url('./files/ibm-plex-sans-all-400-normal.woff') format('woff');\\n unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\\n}\\n/* ibm-plex-sans-cyrillic-400-normal*/\\n@font-face {\\n font-family: 'IBM Plex Sans';\\n font-style: normal;\\n font-display: swap;\\n font-weight: 400;\\n src: url('./files/ibm-plex-sans-cyrillic-400-normal.woff2') format('woff2'), url('./files/ibm-plex-sans-all-400-normal.woff') format('woff');\\n unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\\n}\\n/* ibm-plex-sans-greek-400-normal*/\\n@font-face {\\n font-family: 'IBM Plex Sans';\\n font-style: normal;\\n font-display: swap;\\n font-weight: 400;\\n src: url('./files/ibm-plex-sans-greek-400-normal.woff2') format('woff2'), url('./files/ibm-plex-sans-all-400-normal.woff') format('woff');\\n unicode-range: U+0370-03FF;\\n}\\n/* ibm-plex-sans-vietnamese-400-normal*/\\n@font-face {\\n font-family: 'IBM Plex Sans';\\n font-style: normal;\\n font-display: swap;\\n font-weight: 400;\\n src: url('./files/ibm-plex-sans-vietnamese-400-normal.woff2') format('woff2'), url('./files/ibm-plex-sans-all-400-normal.woff') format('woff');\\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;\\n}\\n/* ibm-plex-sans-latin-ext-400-normal*/\\n@font-face {\\n font-family: 'IBM Plex Sans';\\n font-style: normal;\\n font-display: swap;\\n font-weight: 400;\\n src: url('./files/ibm-plex-sans-latin-ext-400-normal.woff2') format('woff2'), url('./files/ibm-plex-sans-all-400-normal.woff') format('woff');\\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;\\n}\\n/* ibm-plex-sans-latin-400-normal*/\\n@font-face {\\n font-family: 'IBM Plex Sans';\\n font-style: normal;\\n font-display: swap;\\n font-weight: 400;\\n src: url('./files/ibm-plex-sans-latin-400-normal.woff2') format('woff2'), url('./files/ibm-plex-sans-all-400-normal.woff') format('woff');\\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../css-loader/dist/runtime/cssWithMappingToString.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \"/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\\n\\n/* Document\\n ========================================================================== */\\n\\n/**\\n * 1. Correct the line height in all browsers.\\n * 2. Prevent adjustments of font size after orientation changes in iOS.\\n */\\n\\nhtml {\\n line-height: 1.15; /* 1 */\\n -webkit-text-size-adjust: 100%; /* 2 */\\n}\\n\\n/* Sections\\n ========================================================================== */\\n\\n/**\\n * Remove the margin in all browsers.\\n */\\n\\nbody {\\n margin: 0;\\n}\\n\\n/**\\n * Render the `main` element consistently in IE.\\n */\\n\\nmain {\\n display: block;\\n}\\n\\n/**\\n * Correct the font size and margin on `h1` elements within `section` and\\n * `article` contexts in Chrome, Firefox, and Safari.\\n */\\n\\nh1 {\\n font-size: 2em;\\n margin: 0.67em 0;\\n}\\n\\n/* Grouping content\\n ========================================================================== */\\n\\n/**\\n * 1. Add the correct box sizing in Firefox.\\n * 2. Show the overflow in Edge and IE.\\n */\\n\\nhr {\\n box-sizing: content-box; /* 1 */\\n height: 0; /* 1 */\\n overflow: visible; /* 2 */\\n}\\n\\n/**\\n * 1. Correct the inheritance and scaling of font size in all browsers.\\n * 2. Correct the odd `em` font sizing in all browsers.\\n */\\n\\npre {\\n font-family: monospace, monospace; /* 1 */\\n font-size: 1em; /* 2 */\\n}\\n\\n/* Text-level semantics\\n ========================================================================== */\\n\\n/**\\n * Remove the gray background on active links in IE 10.\\n */\\n\\na {\\n background-color: transparent;\\n}\\n\\n/**\\n * 1. Remove the bottom border in Chrome 57-\\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\\n */\\n\\nabbr[title] {\\n border-bottom: none; /* 1 */\\n text-decoration: underline; /* 2 */\\n text-decoration: underline dotted; /* 2 */\\n}\\n\\n/**\\n * Add the correct font weight in Chrome, Edge, and Safari.\\n */\\n\\nb,\\nstrong {\\n font-weight: bolder;\\n}\\n\\n/**\\n * 1. Correct the inheritance and scaling of font size in all browsers.\\n * 2. Correct the odd `em` font sizing in all browsers.\\n */\\n\\ncode,\\nkbd,\\nsamp {\\n font-family: monospace, monospace; /* 1 */\\n font-size: 1em; /* 2 */\\n}\\n\\n/**\\n * Add the correct font size in all browsers.\\n */\\n\\nsmall {\\n font-size: 80%;\\n}\\n\\n/**\\n * Prevent `sub` and `sup` elements from affecting the line height in\\n * all browsers.\\n */\\n\\nsub,\\nsup {\\n font-size: 75%;\\n line-height: 0;\\n position: relative;\\n vertical-align: baseline;\\n}\\n\\nsub {\\n bottom: -0.25em;\\n}\\n\\nsup {\\n top: -0.5em;\\n}\\n\\n/* Embedded content\\n ========================================================================== */\\n\\n/**\\n * Remove the border on images inside links in IE 10.\\n */\\n\\nimg {\\n border-style: none;\\n}\\n\\n/* Forms\\n ========================================================================== */\\n\\n/**\\n * 1. Change the font styles in all browsers.\\n * 2. Remove the margin in Firefox and Safari.\\n */\\n\\nbutton,\\ninput,\\noptgroup,\\nselect,\\ntextarea {\\n font-family: inherit; /* 1 */\\n font-size: 100%; /* 1 */\\n line-height: 1.15; /* 1 */\\n margin: 0; /* 2 */\\n}\\n\\n/**\\n * Show the overflow in IE.\\n * 1. Show the overflow in Edge.\\n */\\n\\nbutton,\\ninput { /* 1 */\\n overflow: visible;\\n}\\n\\n/**\\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\\n * 1. Remove the inheritance of text transform in Firefox.\\n */\\n\\nbutton,\\nselect { /* 1 */\\n text-transform: none;\\n}\\n\\n/**\\n * Correct the inability to style clickable types in iOS and Safari.\\n */\\n\\nbutton,\\n[type=\\\"button\\\"],\\n[type=\\\"reset\\\"],\\n[type=\\\"submit\\\"] {\\n -webkit-appearance: button;\\n}\\n\\n/**\\n * Remove the inner border and padding in Firefox.\\n */\\n\\nbutton::-moz-focus-inner,\\n[type=\\\"button\\\"]::-moz-focus-inner,\\n[type=\\\"reset\\\"]::-moz-focus-inner,\\n[type=\\\"submit\\\"]::-moz-focus-inner {\\n border-style: none;\\n padding: 0;\\n}\\n\\n/**\\n * Restore the focus styles unset by the previous rule.\\n */\\n\\nbutton:-moz-focusring,\\n[type=\\\"button\\\"]:-moz-focusring,\\n[type=\\\"reset\\\"]:-moz-focusring,\\n[type=\\\"submit\\\"]:-moz-focusring {\\n outline: 1px dotted ButtonText;\\n}\\n\\n/**\\n * Correct the padding in Firefox.\\n */\\n\\nfieldset {\\n padding: 0.35em 0.75em 0.625em;\\n}\\n\\n/**\\n * 1. Correct the text wrapping in Edge and IE.\\n * 2. Correct the color inheritance from `fieldset` elements in IE.\\n * 3. Remove the padding so developers are not caught out when they zero out\\n * `fieldset` elements in all browsers.\\n */\\n\\nlegend {\\n box-sizing: border-box; /* 1 */\\n color: inherit; /* 2 */\\n display: table; /* 1 */\\n max-width: 100%; /* 1 */\\n padding: 0; /* 3 */\\n white-space: normal; /* 1 */\\n}\\n\\n/**\\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\\n */\\n\\nprogress {\\n vertical-align: baseline;\\n}\\n\\n/**\\n * Remove the default vertical scrollbar in IE 10+.\\n */\\n\\ntextarea {\\n overflow: auto;\\n}\\n\\n/**\\n * 1. Add the correct box sizing in IE 10.\\n * 2. Remove the padding in IE 10.\\n */\\n\\n[type=\\\"checkbox\\\"],\\n[type=\\\"radio\\\"] {\\n box-sizing: border-box; /* 1 */\\n padding: 0; /* 2 */\\n}\\n\\n/**\\n * Correct the cursor style of increment and decrement buttons in Chrome.\\n */\\n\\n[type=\\\"number\\\"]::-webkit-inner-spin-button,\\n[type=\\\"number\\\"]::-webkit-outer-spin-button {\\n height: auto;\\n}\\n\\n/**\\n * 1. Correct the odd appearance in Chrome and Safari.\\n * 2. Correct the outline style in Safari.\\n */\\n\\n[type=\\\"search\\\"] {\\n -webkit-appearance: textfield; /* 1 */\\n outline-offset: -2px; /* 2 */\\n}\\n\\n/**\\n * Remove the inner padding in Chrome and Safari on macOS.\\n */\\n\\n[type=\\\"search\\\"]::-webkit-search-decoration {\\n -webkit-appearance: none;\\n}\\n\\n/**\\n * 1. Correct the inability to style clickable types in iOS and Safari.\\n * 2. Change font properties to `inherit` in Safari.\\n */\\n\\n::-webkit-file-upload-button {\\n -webkit-appearance: button; /* 1 */\\n font: inherit; /* 2 */\\n}\\n\\n/* Interactive\\n ========================================================================== */\\n\\n/*\\n * Add the correct display in Edge, IE 10+, and Firefox.\\n */\\n\\ndetails {\\n display: block;\\n}\\n\\n/*\\n * Add the correct display in all browsers.\\n */\\n\\nsummary {\\n display: list-item;\\n}\\n\\n/* Misc\\n ========================================================================== */\\n\\n/**\\n * Add the correct display in IE 10+.\\n */\\n\\ntemplate {\\n display: none;\\n}\\n\\n/**\\n * Add the correct display in IE 10.\\n */\\n\\n[hidden] {\\n display: none;\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./node_modules/normalize.css/normalize.css\"],\"names\":[],\"mappings\":\"AAAA,2EAA2E;;AAE3E;+EAC+E;;AAE/E;;;EAGE;;AAEF;EACE,iBAAiB,EAAE,MAAM;EACzB,8BAA8B,EAAE,MAAM;AACxC;;AAEA;+EAC+E;;AAE/E;;EAEE;;AAEF;EACE,SAAS;AACX;;AAEA;;EAEE;;AAEF;EACE,cAAc;AAChB;;AAEA;;;EAGE;;AAEF;EACE,cAAc;EACd,gBAAgB;AAClB;;AAEA;+EAC+E;;AAE/E;;;EAGE;;AAEF;EACE,uBAAuB,EAAE,MAAM;EAC/B,SAAS,EAAE,MAAM;EACjB,iBAAiB,EAAE,MAAM;AAC3B;;AAEA;;;EAGE;;AAEF;EACE,iCAAiC,EAAE,MAAM;EACzC,cAAc,EAAE,MAAM;AACxB;;AAEA;+EAC+E;;AAE/E;;EAEE;;AAEF;EACE,6BAA6B;AAC/B;;AAEA;;;EAGE;;AAEF;EACE,mBAAmB,EAAE,MAAM;EAC3B,0BAA0B,EAAE,MAAM;EAClC,iCAAiC,EAAE,MAAM;AAC3C;;AAEA;;EAEE;;AAEF;;EAEE,mBAAmB;AACrB;;AAEA;;;EAGE;;AAEF;;;EAGE,iCAAiC,EAAE,MAAM;EACzC,cAAc,EAAE,MAAM;AACxB;;AAEA;;EAEE;;AAEF;EACE,cAAc;AAChB;;AAEA;;;EAGE;;AAEF;;EAEE,cAAc;EACd,cAAc;EACd,kBAAkB;EAClB,wBAAwB;AAC1B;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,WAAW;AACb;;AAEA;+EAC+E;;AAE/E;;EAEE;;AAEF;EACE,kBAAkB;AACpB;;AAEA;+EAC+E;;AAE/E;;;EAGE;;AAEF;;;;;EAKE,oBAAoB,EAAE,MAAM;EAC5B,eAAe,EAAE,MAAM;EACvB,iBAAiB,EAAE,MAAM;EACzB,SAAS,EAAE,MAAM;AACnB;;AAEA;;;EAGE;;AAEF;QACQ,MAAM;EACZ,iBAAiB;AACnB;;AAEA;;;EAGE;;AAEF;SACS,MAAM;EACb,oBAAoB;AACtB;;AAEA;;EAEE;;AAEF;;;;EAIE,0BAA0B;AAC5B;;AAEA;;EAEE;;AAEF;;;;EAIE,kBAAkB;EAClB,UAAU;AACZ;;AAEA;;EAEE;;AAEF;;;;EAIE,8BAA8B;AAChC;;AAEA;;EAEE;;AAEF;EACE,8BAA8B;AAChC;;AAEA;;;;;EAKE;;AAEF;EACE,sBAAsB,EAAE,MAAM;EAC9B,cAAc,EAAE,MAAM;EACtB,cAAc,EAAE,MAAM;EACtB,eAAe,EAAE,MAAM;EACvB,UAAU,EAAE,MAAM;EAClB,mBAAmB,EAAE,MAAM;AAC7B;;AAEA;;EAEE;;AAEF;EACE,wBAAwB;AAC1B;;AAEA;;EAEE;;AAEF;EACE,cAAc;AAChB;;AAEA;;;EAGE;;AAEF;;EAEE,sBAAsB,EAAE,MAAM;EAC9B,UAAU,EAAE,MAAM;AACpB;;AAEA;;EAEE;;AAEF;;EAEE,YAAY;AACd;;AAEA;;;EAGE;;AAEF;EACE,6BAA6B,EAAE,MAAM;EACrC,oBAAoB,EAAE,MAAM;AAC9B;;AAEA;;EAEE;;AAEF;EACE,wBAAwB;AAC1B;;AAEA;;;EAGE;;AAEF;EACE,0BAA0B,EAAE,MAAM;EAClC,aAAa,EAAE,MAAM;AACvB;;AAEA;+EAC+E;;AAE/E;;EAEE;;AAEF;EACE,cAAc;AAChB;;AAEA;;EAEE;;AAEF;EACE,kBAAkB;AACpB;;AAEA;+EAC+E;;AAE/E;;EAEE;;AAEF;EACE,aAAa;AACf;;AAEA;;EAEE;;AAEF;EACE,aAAa;AACf\",\"sourcesContent\":[\"/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\\n\\n/* Document\\n ========================================================================== */\\n\\n/**\\n * 1. Correct the line height in all browsers.\\n * 2. Prevent adjustments of font size after orientation changes in iOS.\\n */\\n\\nhtml {\\n line-height: 1.15; /* 1 */\\n -webkit-text-size-adjust: 100%; /* 2 */\\n}\\n\\n/* Sections\\n ========================================================================== */\\n\\n/**\\n * Remove the margin in all browsers.\\n */\\n\\nbody {\\n margin: 0;\\n}\\n\\n/**\\n * Render the `main` element consistently in IE.\\n */\\n\\nmain {\\n display: block;\\n}\\n\\n/**\\n * Correct the font size and margin on `h1` elements within `section` and\\n * `article` contexts in Chrome, Firefox, and Safari.\\n */\\n\\nh1 {\\n font-size: 2em;\\n margin: 0.67em 0;\\n}\\n\\n/* Grouping content\\n ========================================================================== */\\n\\n/**\\n * 1. Add the correct box sizing in Firefox.\\n * 2. Show the overflow in Edge and IE.\\n */\\n\\nhr {\\n box-sizing: content-box; /* 1 */\\n height: 0; /* 1 */\\n overflow: visible; /* 2 */\\n}\\n\\n/**\\n * 1. Correct the inheritance and scaling of font size in all browsers.\\n * 2. Correct the odd `em` font sizing in all browsers.\\n */\\n\\npre {\\n font-family: monospace, monospace; /* 1 */\\n font-size: 1em; /* 2 */\\n}\\n\\n/* Text-level semantics\\n ========================================================================== */\\n\\n/**\\n * Remove the gray background on active links in IE 10.\\n */\\n\\na {\\n background-color: transparent;\\n}\\n\\n/**\\n * 1. Remove the bottom border in Chrome 57-\\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\\n */\\n\\nabbr[title] {\\n border-bottom: none; /* 1 */\\n text-decoration: underline; /* 2 */\\n text-decoration: underline dotted; /* 2 */\\n}\\n\\n/**\\n * Add the correct font weight in Chrome, Edge, and Safari.\\n */\\n\\nb,\\nstrong {\\n font-weight: bolder;\\n}\\n\\n/**\\n * 1. Correct the inheritance and scaling of font size in all browsers.\\n * 2. Correct the odd `em` font sizing in all browsers.\\n */\\n\\ncode,\\nkbd,\\nsamp {\\n font-family: monospace, monospace; /* 1 */\\n font-size: 1em; /* 2 */\\n}\\n\\n/**\\n * Add the correct font size in all browsers.\\n */\\n\\nsmall {\\n font-size: 80%;\\n}\\n\\n/**\\n * Prevent `sub` and `sup` elements from affecting the line height in\\n * all browsers.\\n */\\n\\nsub,\\nsup {\\n font-size: 75%;\\n line-height: 0;\\n position: relative;\\n vertical-align: baseline;\\n}\\n\\nsub {\\n bottom: -0.25em;\\n}\\n\\nsup {\\n top: -0.5em;\\n}\\n\\n/* Embedded content\\n ========================================================================== */\\n\\n/**\\n * Remove the border on images inside links in IE 10.\\n */\\n\\nimg {\\n border-style: none;\\n}\\n\\n/* Forms\\n ========================================================================== */\\n\\n/**\\n * 1. Change the font styles in all browsers.\\n * 2. Remove the margin in Firefox and Safari.\\n */\\n\\nbutton,\\ninput,\\noptgroup,\\nselect,\\ntextarea {\\n font-family: inherit; /* 1 */\\n font-size: 100%; /* 1 */\\n line-height: 1.15; /* 1 */\\n margin: 0; /* 2 */\\n}\\n\\n/**\\n * Show the overflow in IE.\\n * 1. Show the overflow in Edge.\\n */\\n\\nbutton,\\ninput { /* 1 */\\n overflow: visible;\\n}\\n\\n/**\\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\\n * 1. Remove the inheritance of text transform in Firefox.\\n */\\n\\nbutton,\\nselect { /* 1 */\\n text-transform: none;\\n}\\n\\n/**\\n * Correct the inability to style clickable types in iOS and Safari.\\n */\\n\\nbutton,\\n[type=\\\"button\\\"],\\n[type=\\\"reset\\\"],\\n[type=\\\"submit\\\"] {\\n -webkit-appearance: button;\\n}\\n\\n/**\\n * Remove the inner border and padding in Firefox.\\n */\\n\\nbutton::-moz-focus-inner,\\n[type=\\\"button\\\"]::-moz-focus-inner,\\n[type=\\\"reset\\\"]::-moz-focus-inner,\\n[type=\\\"submit\\\"]::-moz-focus-inner {\\n border-style: none;\\n padding: 0;\\n}\\n\\n/**\\n * Restore the focus styles unset by the previous rule.\\n */\\n\\nbutton:-moz-focusring,\\n[type=\\\"button\\\"]:-moz-focusring,\\n[type=\\\"reset\\\"]:-moz-focusring,\\n[type=\\\"submit\\\"]:-moz-focusring {\\n outline: 1px dotted ButtonText;\\n}\\n\\n/**\\n * Correct the padding in Firefox.\\n */\\n\\nfieldset {\\n padding: 0.35em 0.75em 0.625em;\\n}\\n\\n/**\\n * 1. Correct the text wrapping in Edge and IE.\\n * 2. Correct the color inheritance from `fieldset` elements in IE.\\n * 3. Remove the padding so developers are not caught out when they zero out\\n * `fieldset` elements in all browsers.\\n */\\n\\nlegend {\\n box-sizing: border-box; /* 1 */\\n color: inherit; /* 2 */\\n display: table; /* 1 */\\n max-width: 100%; /* 1 */\\n padding: 0; /* 3 */\\n white-space: normal; /* 1 */\\n}\\n\\n/**\\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\\n */\\n\\nprogress {\\n vertical-align: baseline;\\n}\\n\\n/**\\n * Remove the default vertical scrollbar in IE 10+.\\n */\\n\\ntextarea {\\n overflow: auto;\\n}\\n\\n/**\\n * 1. Add the correct box sizing in IE 10.\\n * 2. Remove the padding in IE 10.\\n */\\n\\n[type=\\\"checkbox\\\"],\\n[type=\\\"radio\\\"] {\\n box-sizing: border-box; /* 1 */\\n padding: 0; /* 2 */\\n}\\n\\n/**\\n * Correct the cursor style of increment and decrement buttons in Chrome.\\n */\\n\\n[type=\\\"number\\\"]::-webkit-inner-spin-button,\\n[type=\\\"number\\\"]::-webkit-outer-spin-button {\\n height: auto;\\n}\\n\\n/**\\n * 1. Correct the odd appearance in Chrome and Safari.\\n * 2. Correct the outline style in Safari.\\n */\\n\\n[type=\\\"search\\\"] {\\n -webkit-appearance: textfield; /* 1 */\\n outline-offset: -2px; /* 2 */\\n}\\n\\n/**\\n * Remove the inner padding in Chrome and Safari on macOS.\\n */\\n\\n[type=\\\"search\\\"]::-webkit-search-decoration {\\n -webkit-appearance: none;\\n}\\n\\n/**\\n * 1. Correct the inability to style clickable types in iOS and Safari.\\n * 2. Change font properties to `inherit` in Safari.\\n */\\n\\n::-webkit-file-upload-button {\\n -webkit-appearance: button; /* 1 */\\n font: inherit; /* 2 */\\n}\\n\\n/* Interactive\\n ========================================================================== */\\n\\n/*\\n * Add the correct display in Edge, IE 10+, and Firefox.\\n */\\n\\ndetails {\\n display: block;\\n}\\n\\n/*\\n * Add the correct display in all browsers.\\n */\\n\\nsummary {\\n display: list-item;\\n}\\n\\n/* Misc\\n ========================================================================== */\\n\\n/**\\n * Add the correct display in IE 10+.\\n */\\n\\ntemplate {\\n display: none;\\n}\\n\\n/**\\n * Add the correct display in IE 10.\\n */\\n\\n[hidden] {\\n display: none;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\n// eslint-disable-next-line func-names\nmodule.exports = function (cssWithMappingToString) {\n var list = []; // return the list of modules as css string\n\n list.toString = function toString() {\n return this.map(function (item) {\n var content = cssWithMappingToString(item);\n\n if (item[2]) {\n return \"@media \".concat(item[2], \" {\").concat(content, \"}\");\n }\n\n return content;\n }).join(\"\");\n }; // import a list of modules into the list\n // eslint-disable-next-line func-names\n\n\n list.i = function (modules, mediaQuery, dedupe) {\n if (typeof modules === \"string\") {\n // eslint-disable-next-line no-param-reassign\n modules = [[null, modules, \"\"]];\n }\n\n var alreadyImportedModules = {};\n\n if (dedupe) {\n for (var i = 0; i < this.length; i++) {\n // eslint-disable-next-line prefer-destructuring\n var id = this[i][0];\n\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n\n for (var _i = 0; _i < modules.length; _i++) {\n var item = [].concat(modules[_i]);\n\n if (dedupe && alreadyImportedModules[item[0]]) {\n // eslint-disable-next-line no-continue\n continue;\n }\n\n if (mediaQuery) {\n if (!item[2]) {\n item[2] = mediaQuery;\n } else {\n item[2] = \"\".concat(mediaQuery, \" and \").concat(item[2]);\n }\n }\n\n list.push(item);\n }\n };\n\n return list;\n};","\"use strict\";\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nmodule.exports = function cssWithMappingToString(item) {\n var _item = _slicedToArray(item, 4),\n content = _item[1],\n cssMapping = _item[3];\n\n if (!cssMapping) {\n return content;\n }\n\n if (typeof btoa === \"function\") {\n // eslint-disable-next-line no-undef\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n var sourceMapping = \"/*# \".concat(data, \" */\");\n var sourceURLs = cssMapping.sources.map(function (source) {\n return \"/*# sourceURL=\".concat(cssMapping.sourceRoot || \"\").concat(source, \" */\");\n });\n return [content].concat(sourceURLs).concat([sourceMapping]).join(\"\\n\");\n }\n\n return [content].join(\"\\n\");\n};","\"use strict\";\n\nmodule.exports = function (url, options) {\n if (!options) {\n // eslint-disable-next-line no-param-reassign\n options = {};\n }\n\n if (!url) {\n return url;\n } // eslint-disable-next-line no-underscore-dangle, no-param-reassign\n\n\n url = String(url.__esModule ? url.default : url); // If url is already wrapped in quotes, remove them\n\n if (/^['\"].*['\"]$/.test(url)) {\n // eslint-disable-next-line no-param-reassign\n url = url.slice(1, -1);\n }\n\n if (options.hash) {\n // eslint-disable-next-line no-param-reassign\n url += options.hash;\n } // Should url be wrapped?\n // See https://drafts.csswg.org/css-values-3/#urls\n\n\n if (/[\"'() \\t\\n]|(%20)/.test(url) || options.needQuotes) {\n return \"\\\"\".concat(url.replace(/\"/g, '\\\\\"').replace(/\\n/g, \"\\\\n\"), \"\\\"\");\n }\n\n return url;\n};","import isInBrowser from 'is-in-browser';\nimport _toConsumableArray from '@babel/runtime/helpers/esm/toConsumableArray';\n\n// Export javascript style and css style vendor prefixes.\nvar js = '';\nvar css = '';\nvar vendor = '';\nvar browser = '';\nvar isTouch = isInBrowser && 'ontouchstart' in document.documentElement; // We should not do anything if required serverside.\n\nif (isInBrowser) {\n // Order matters. We need to check Webkit the last one because\n // other vendors use to add Webkit prefixes to some properties\n var jsCssMap = {\n Moz: '-moz-',\n ms: '-ms-',\n O: '-o-',\n Webkit: '-webkit-'\n };\n\n var _document$createEleme = document.createElement('p'),\n style = _document$createEleme.style;\n\n var testProp = 'Transform';\n\n for (var key in jsCssMap) {\n if (key + testProp in style) {\n js = key;\n css = jsCssMap[key];\n break;\n }\n } // Correctly detect the Edge browser.\n\n\n if (js === 'Webkit' && 'msHyphens' in style) {\n js = 'ms';\n css = jsCssMap.ms;\n browser = 'edge';\n } // Correctly detect the Safari browser.\n\n\n if (js === 'Webkit' && '-apple-trailing-word' in style) {\n vendor = 'apple';\n }\n}\n/**\n * Vendor prefix string for the current browser.\n *\n * @type {{js: String, css: String, vendor: String, browser: String}}\n * @api public\n */\n\n\nvar prefix = {\n js: js,\n css: css,\n vendor: vendor,\n browser: browser,\n isTouch: isTouch\n};\n\n/**\n * Test if a keyframe at-rule should be prefixed or not\n *\n * @param {String} vendor prefix string for the current browser.\n * @return {String}\n * @api public\n */\n\nfunction supportedKeyframes(key) {\n // Keyframes is already prefixed. e.g. key = '@-webkit-keyframes a'\n if (key[1] === '-') return key; // No need to prefix IE/Edge. Older browsers will ignore unsupported rules.\n // https://caniuse.com/#search=keyframes\n\n if (prefix.js === 'ms') return key;\n return \"@\" + prefix.css + \"keyframes\" + key.substr(10);\n}\n\n// https://caniuse.com/#search=appearance\n\nvar appearence = {\n noPrefill: ['appearance'],\n supportedProperty: function supportedProperty(prop) {\n if (prop !== 'appearance') return false;\n if (prefix.js === 'ms') return \"-webkit-\" + prop;\n return prefix.css + prop;\n }\n};\n\n// https://caniuse.com/#search=color-adjust\n\nvar colorAdjust = {\n noPrefill: ['color-adjust'],\n supportedProperty: function supportedProperty(prop) {\n if (prop !== 'color-adjust') return false;\n if (prefix.js === 'Webkit') return prefix.css + \"print-\" + prop;\n return prop;\n }\n};\n\nvar regExp = /[-\\s]+(.)?/g;\n/**\n * Replaces the letter with the capital letter\n *\n * @param {String} match\n * @param {String} c\n * @return {String}\n * @api private\n */\n\nfunction toUpper(match, c) {\n return c ? c.toUpperCase() : '';\n}\n/**\n * Convert dash separated strings to camel-cased.\n *\n * @param {String} str\n * @return {String}\n * @api private\n */\n\n\nfunction camelize(str) {\n return str.replace(regExp, toUpper);\n}\n\n/**\n * Convert dash separated strings to pascal cased.\n *\n * @param {String} str\n * @return {String}\n * @api private\n */\n\nfunction pascalize(str) {\n return camelize(\"-\" + str);\n}\n\n// but we can use a longhand property instead.\n// https://caniuse.com/#search=mask\n\nvar mask = {\n noPrefill: ['mask'],\n supportedProperty: function supportedProperty(prop, style) {\n if (!/^mask/.test(prop)) return false;\n\n if (prefix.js === 'Webkit') {\n var longhand = 'mask-image';\n\n if (camelize(longhand) in style) {\n return prop;\n }\n\n if (prefix.js + pascalize(longhand) in style) {\n return prefix.css + prop;\n }\n }\n\n return prop;\n }\n};\n\n// https://caniuse.com/#search=text-orientation\n\nvar textOrientation = {\n noPrefill: ['text-orientation'],\n supportedProperty: function supportedProperty(prop) {\n if (prop !== 'text-orientation') return false;\n\n if (prefix.vendor === 'apple' && !prefix.isTouch) {\n return prefix.css + prop;\n }\n\n return prop;\n }\n};\n\n// https://caniuse.com/#search=transform\n\nvar transform = {\n noPrefill: ['transform'],\n supportedProperty: function supportedProperty(prop, style, options) {\n if (prop !== 'transform') return false;\n\n if (options.transform) {\n return prop;\n }\n\n return prefix.css + prop;\n }\n};\n\n// https://caniuse.com/#search=transition\n\nvar transition = {\n noPrefill: ['transition'],\n supportedProperty: function supportedProperty(prop, style, options) {\n if (prop !== 'transition') return false;\n\n if (options.transition) {\n return prop;\n }\n\n return prefix.css + prop;\n }\n};\n\n// https://caniuse.com/#search=writing-mode\n\nvar writingMode = {\n noPrefill: ['writing-mode'],\n supportedProperty: function supportedProperty(prop) {\n if (prop !== 'writing-mode') return false;\n\n if (prefix.js === 'Webkit' || prefix.js === 'ms' && prefix.browser !== 'edge') {\n return prefix.css + prop;\n }\n\n return prop;\n }\n};\n\n// https://caniuse.com/#search=user-select\n\nvar userSelect = {\n noPrefill: ['user-select'],\n supportedProperty: function supportedProperty(prop) {\n if (prop !== 'user-select') return false;\n\n if (prefix.js === 'Moz' || prefix.js === 'ms' || prefix.vendor === 'apple') {\n return prefix.css + prop;\n }\n\n return prop;\n }\n};\n\n// https://caniuse.com/#search=multicolumn\n// https://github.com/postcss/autoprefixer/issues/491\n// https://github.com/postcss/autoprefixer/issues/177\n\nvar breakPropsOld = {\n supportedProperty: function supportedProperty(prop, style) {\n if (!/^break-/.test(prop)) return false;\n\n if (prefix.js === 'Webkit') {\n var jsProp = \"WebkitColumn\" + pascalize(prop);\n return jsProp in style ? prefix.css + \"column-\" + prop : false;\n }\n\n if (prefix.js === 'Moz') {\n var _jsProp = \"page\" + pascalize(prop);\n\n return _jsProp in style ? \"page-\" + prop : false;\n }\n\n return false;\n }\n};\n\n// See https://github.com/postcss/autoprefixer/issues/324.\n\nvar inlineLogicalOld = {\n supportedProperty: function supportedProperty(prop, style) {\n if (!/^(border|margin|padding)-inline/.test(prop)) return false;\n if (prefix.js === 'Moz') return prop;\n var newProp = prop.replace('-inline', '');\n return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;\n }\n};\n\n// Camelization is required because we can't test using.\n// CSS syntax for e.g. in FF.\n\nvar unprefixed = {\n supportedProperty: function supportedProperty(prop, style) {\n return camelize(prop) in style ? prop : false;\n }\n};\n\nvar prefixed = {\n supportedProperty: function supportedProperty(prop, style) {\n var pascalized = pascalize(prop); // Return custom CSS variable without prefixing.\n\n if (prop[0] === '-') return prop; // Return already prefixed value without prefixing.\n\n if (prop[0] === '-' && prop[1] === '-') return prop;\n if (prefix.js + pascalized in style) return prefix.css + prop; // Try webkit fallback.\n\n if (prefix.js !== 'Webkit' && \"Webkit\" + pascalized in style) return \"-webkit-\" + prop;\n return false;\n }\n};\n\n// https://caniuse.com/#search=scroll-snap\n\nvar scrollSnap = {\n supportedProperty: function supportedProperty(prop) {\n if (prop.substring(0, 11) !== 'scroll-snap') return false;\n\n if (prefix.js === 'ms') {\n return \"\" + prefix.css + prop;\n }\n\n return prop;\n }\n};\n\n// https://caniuse.com/#search=overscroll-behavior\n\nvar overscrollBehavior = {\n supportedProperty: function supportedProperty(prop) {\n if (prop !== 'overscroll-behavior') return false;\n\n if (prefix.js === 'ms') {\n return prefix.css + \"scroll-chaining\";\n }\n\n return prop;\n }\n};\n\nvar propMap = {\n 'flex-grow': 'flex-positive',\n 'flex-shrink': 'flex-negative',\n 'flex-basis': 'flex-preferred-size',\n 'justify-content': 'flex-pack',\n order: 'flex-order',\n 'align-items': 'flex-align',\n 'align-content': 'flex-line-pack' // 'align-self' is handled by 'align-self' plugin.\n\n}; // Support old flex spec from 2012.\n\nvar flex2012 = {\n supportedProperty: function supportedProperty(prop, style) {\n var newProp = propMap[prop];\n if (!newProp) return false;\n return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;\n }\n};\n\nvar propMap$1 = {\n flex: 'box-flex',\n 'flex-grow': 'box-flex',\n 'flex-direction': ['box-orient', 'box-direction'],\n order: 'box-ordinal-group',\n 'align-items': 'box-align',\n 'flex-flow': ['box-orient', 'box-direction'],\n 'justify-content': 'box-pack'\n};\nvar propKeys = Object.keys(propMap$1);\n\nvar prefixCss = function prefixCss(p) {\n return prefix.css + p;\n}; // Support old flex spec from 2009.\n\n\nvar flex2009 = {\n supportedProperty: function supportedProperty(prop, style, _ref) {\n var multiple = _ref.multiple;\n\n if (propKeys.indexOf(prop) > -1) {\n var newProp = propMap$1[prop];\n\n if (!Array.isArray(newProp)) {\n return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;\n }\n\n if (!multiple) return false;\n\n for (var i = 0; i < newProp.length; i++) {\n if (!(prefix.js + pascalize(newProp[0]) in style)) {\n return false;\n }\n }\n\n return newProp.map(prefixCss);\n }\n\n return false;\n }\n};\n\n// plugins = [\n// ...plugins,\n// breakPropsOld,\n// inlineLogicalOld,\n// unprefixed,\n// prefixed,\n// scrollSnap,\n// flex2012,\n// flex2009\n// ]\n// Plugins without 'noPrefill' value, going last.\n// 'flex-*' plugins should be at the bottom.\n// 'flex2009' going after 'flex2012'.\n// 'prefixed' going after 'unprefixed'\n\nvar plugins = [appearence, colorAdjust, mask, textOrientation, transform, transition, writingMode, userSelect, breakPropsOld, inlineLogicalOld, unprefixed, prefixed, scrollSnap, overscrollBehavior, flex2012, flex2009];\nvar propertyDetectors = plugins.filter(function (p) {\n return p.supportedProperty;\n}).map(function (p) {\n return p.supportedProperty;\n});\nvar noPrefill = plugins.filter(function (p) {\n return p.noPrefill;\n}).reduce(function (a, p) {\n a.push.apply(a, _toConsumableArray(p.noPrefill));\n return a;\n}, []);\n\nvar el;\nvar cache = {};\n\nif (isInBrowser) {\n el = document.createElement('p'); // We test every property on vendor prefix requirement.\n // Once tested, result is cached. It gives us up to 70% perf boost.\n // http://jsperf.com/element-style-object-access-vs-plain-object\n //\n // Prefill cache with known css properties to reduce amount of\n // properties we need to feature test at runtime.\n // http://davidwalsh.name/vendor-prefix\n\n var computed = window.getComputedStyle(document.documentElement, '');\n\n for (var key$1 in computed) {\n // eslint-disable-next-line no-restricted-globals\n if (!isNaN(key$1)) cache[computed[key$1]] = computed[key$1];\n } // Properties that cannot be correctly detected using the\n // cache prefill method.\n\n\n noPrefill.forEach(function (x) {\n return delete cache[x];\n });\n}\n/**\n * Test if a property is supported, returns supported property with vendor\n * prefix if required. Returns `false` if not supported.\n *\n * @param {String} prop dash separated\n * @param {Object} [options]\n * @return {String|Boolean}\n * @api public\n */\n\n\nfunction supportedProperty(prop, options) {\n if (options === void 0) {\n options = {};\n }\n\n // For server-side rendering.\n if (!el) return prop; // Remove cache for benchmark tests or return property from the cache.\n\n if (process.env.NODE_ENV !== 'benchmark' && cache[prop] != null) {\n return cache[prop];\n } // Check if 'transition' or 'transform' natively supported in browser.\n\n\n if (prop === 'transition' || prop === 'transform') {\n options[prop] = prop in el.style;\n } // Find a plugin for current prefix property.\n\n\n for (var i = 0; i < propertyDetectors.length; i++) {\n cache[prop] = propertyDetectors[i](prop, el.style, options); // Break loop, if value found.\n\n if (cache[prop]) break;\n } // Reset styles for current property.\n // Firefox can even throw an error for invalid properties, e.g., \"0\".\n\n\n try {\n el.style[prop] = '';\n } catch (err) {\n return false;\n }\n\n return cache[prop];\n}\n\nvar cache$1 = {};\nvar transitionProperties = {\n transition: 1,\n 'transition-property': 1,\n '-webkit-transition': 1,\n '-webkit-transition-property': 1\n};\nvar transPropsRegExp = /(^\\s*[\\w-]+)|, (\\s*[\\w-]+)(?![^()]*\\))/g;\nvar el$1;\n/**\n * Returns prefixed value transition/transform if needed.\n *\n * @param {String} match\n * @param {String} p1\n * @param {String} p2\n * @return {String}\n * @api private\n */\n\nfunction prefixTransitionCallback(match, p1, p2) {\n if (p1 === 'var') return 'var';\n if (p1 === 'all') return 'all';\n if (p2 === 'all') return ', all';\n var prefixedValue = p1 ? supportedProperty(p1) : \", \" + supportedProperty(p2);\n if (!prefixedValue) return p1 || p2;\n return prefixedValue;\n}\n\nif (isInBrowser) el$1 = document.createElement('p');\n/**\n * Returns prefixed value if needed. Returns `false` if value is not supported.\n *\n * @param {String} property\n * @param {String} value\n * @return {String|Boolean}\n * @api public\n */\n\nfunction supportedValue(property, value) {\n // For server-side rendering.\n var prefixedValue = value;\n if (!el$1 || property === 'content') return value; // It is a string or a number as a string like '1'.\n // We want only prefixable values here.\n // eslint-disable-next-line no-restricted-globals\n\n if (typeof prefixedValue !== 'string' || !isNaN(parseInt(prefixedValue, 10))) {\n return prefixedValue;\n } // Create cache key for current value.\n\n\n var cacheKey = property + prefixedValue; // Remove cache for benchmark tests or return value from cache.\n\n if (process.env.NODE_ENV !== 'benchmark' && cache$1[cacheKey] != null) {\n return cache$1[cacheKey];\n } // IE can even throw an error in some cases, for e.g. style.content = 'bar'.\n\n\n try {\n // Test value as it is.\n el$1.style[property] = prefixedValue;\n } catch (err) {\n // Return false if value not supported.\n cache$1[cacheKey] = false;\n return false;\n } // If 'transition' or 'transition-property' property.\n\n\n if (transitionProperties[property]) {\n prefixedValue = prefixedValue.replace(transPropsRegExp, prefixTransitionCallback);\n } else if (el$1.style[property] === '') {\n // Value with a vendor prefix.\n prefixedValue = prefix.css + prefixedValue; // Hardcode test to convert \"flex\" to \"-ms-flexbox\" for IE10.\n\n if (prefixedValue === '-ms-flex') el$1.style[property] = '-ms-flexbox'; // Test prefixed value.\n\n el$1.style[property] = prefixedValue; // Return false if value not supported.\n\n if (el$1.style[property] === '') {\n cache$1[cacheKey] = false;\n return false;\n }\n } // Reset styles for current property.\n\n\n el$1.style[property] = ''; // Write current value to cache.\n\n cache$1[cacheKey] = prefixedValue;\n return cache$1[cacheKey];\n}\n\nexport { prefix, supportedKeyframes, supportedProperty, supportedValue };\n","import _extends from '@babel/runtime/helpers/esm/extends';\nimport resolvePathname from 'resolve-pathname';\nimport valueEqual from 'value-equal';\nimport warning from 'tiny-warning';\nimport invariant from 'tiny-invariant';\n\nfunction addLeadingSlash(path) {\n return path.charAt(0) === '/' ? path : '/' + path;\n}\nfunction stripLeadingSlash(path) {\n return path.charAt(0) === '/' ? path.substr(1) : path;\n}\nfunction hasBasename(path, prefix) {\n return path.toLowerCase().indexOf(prefix.toLowerCase()) === 0 && '/?#'.indexOf(path.charAt(prefix.length)) !== -1;\n}\nfunction stripBasename(path, prefix) {\n return hasBasename(path, prefix) ? path.substr(prefix.length) : path;\n}\nfunction stripTrailingSlash(path) {\n return path.charAt(path.length - 1) === '/' ? path.slice(0, -1) : path;\n}\nfunction parsePath(path) {\n var pathname = path || '/';\n var search = '';\n var hash = '';\n var hashIndex = pathname.indexOf('#');\n\n if (hashIndex !== -1) {\n hash = pathname.substr(hashIndex);\n pathname = pathname.substr(0, hashIndex);\n }\n\n var searchIndex = pathname.indexOf('?');\n\n if (searchIndex !== -1) {\n search = pathname.substr(searchIndex);\n pathname = pathname.substr(0, searchIndex);\n }\n\n return {\n pathname: pathname,\n search: search === '?' ? '' : search,\n hash: hash === '#' ? '' : hash\n };\n}\nfunction createPath(location) {\n var pathname = location.pathname,\n search = location.search,\n hash = location.hash;\n var path = pathname || '/';\n if (search && search !== '?') path += search.charAt(0) === '?' ? search : \"?\" + search;\n if (hash && hash !== '#') path += hash.charAt(0) === '#' ? hash : \"#\" + hash;\n return path;\n}\n\nfunction createLocation(path, state, key, currentLocation) {\n var location;\n\n if (typeof path === 'string') {\n // Two-arg form: push(path, state)\n location = parsePath(path);\n location.state = state;\n } else {\n // One-arg form: push(location)\n location = _extends({}, path);\n if (location.pathname === undefined) location.pathname = '';\n\n if (location.search) {\n if (location.search.charAt(0) !== '?') location.search = '?' + location.search;\n } else {\n location.search = '';\n }\n\n if (location.hash) {\n if (location.hash.charAt(0) !== '#') location.hash = '#' + location.hash;\n } else {\n location.hash = '';\n }\n\n if (state !== undefined && location.state === undefined) location.state = state;\n }\n\n try {\n location.pathname = decodeURI(location.pathname);\n } catch (e) {\n if (e instanceof URIError) {\n throw new URIError('Pathname \"' + location.pathname + '\" could not be decoded. ' + 'This is likely caused by an invalid percent-encoding.');\n } else {\n throw e;\n }\n }\n\n if (key) location.key = key;\n\n if (currentLocation) {\n // Resolve incomplete/relative pathname relative to current location.\n if (!location.pathname) {\n location.pathname = currentLocation.pathname;\n } else if (location.pathname.charAt(0) !== '/') {\n location.pathname = resolvePathname(location.pathname, currentLocation.pathname);\n }\n } else {\n // When there is no prior location and pathname is empty, set it to /\n if (!location.pathname) {\n location.pathname = '/';\n }\n }\n\n return location;\n}\nfunction locationsAreEqual(a, b) {\n return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash && a.key === b.key && valueEqual(a.state, b.state);\n}\n\nfunction createTransitionManager() {\n var prompt = null;\n\n function setPrompt(nextPrompt) {\n process.env.NODE_ENV !== \"production\" ? warning(prompt == null, 'A history supports only one prompt at a time') : void 0;\n prompt = nextPrompt;\n return function () {\n if (prompt === nextPrompt) prompt = null;\n };\n }\n\n function confirmTransitionTo(location, action, getUserConfirmation, callback) {\n // TODO: If another transition starts while we're still confirming\n // the previous one, we may end up in a weird state. Figure out the\n // best way to handle this.\n if (prompt != null) {\n var result = typeof prompt === 'function' ? prompt(location, action) : prompt;\n\n if (typeof result === 'string') {\n if (typeof getUserConfirmation === 'function') {\n getUserConfirmation(result, callback);\n } else {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'A history needs a getUserConfirmation function in order to use a prompt message') : void 0;\n callback(true);\n }\n } else {\n // Return false from a transition hook to cancel the transition.\n callback(result !== false);\n }\n } else {\n callback(true);\n }\n }\n\n var listeners = [];\n\n function appendListener(fn) {\n var isActive = true;\n\n function listener() {\n if (isActive) fn.apply(void 0, arguments);\n }\n\n listeners.push(listener);\n return function () {\n isActive = false;\n listeners = listeners.filter(function (item) {\n return item !== listener;\n });\n };\n }\n\n function notifyListeners() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n listeners.forEach(function (listener) {\n return listener.apply(void 0, args);\n });\n }\n\n return {\n setPrompt: setPrompt,\n confirmTransitionTo: confirmTransitionTo,\n appendListener: appendListener,\n notifyListeners: notifyListeners\n };\n}\n\nvar canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\nfunction getConfirmation(message, callback) {\n callback(window.confirm(message)); // eslint-disable-line no-alert\n}\n/**\n * Returns true if the HTML5 history API is supported. Taken from Modernizr.\n *\n * https://github.com/Modernizr/Modernizr/blob/master/LICENSE\n * https://github.com/Modernizr/Modernizr/blob/master/feature-detects/history.js\n * changed to avoid false negatives for Windows Phones: https://github.com/reactjs/react-router/issues/586\n */\n\nfunction supportsHistory() {\n var ua = window.navigator.userAgent;\n if ((ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) && ua.indexOf('Mobile Safari') !== -1 && ua.indexOf('Chrome') === -1 && ua.indexOf('Windows Phone') === -1) return false;\n return window.history && 'pushState' in window.history;\n}\n/**\n * Returns true if browser fires popstate on hash change.\n * IE10 and IE11 do not.\n */\n\nfunction supportsPopStateOnHashChange() {\n return window.navigator.userAgent.indexOf('Trident') === -1;\n}\n/**\n * Returns false if using go(n) with hash history causes a full page reload.\n */\n\nfunction supportsGoWithoutReloadUsingHash() {\n return window.navigator.userAgent.indexOf('Firefox') === -1;\n}\n/**\n * Returns true if a given popstate event is an extraneous WebKit event.\n * Accounts for the fact that Chrome on iOS fires real popstate events\n * containing undefined state when pressing the back button.\n */\n\nfunction isExtraneousPopstateEvent(event) {\n return event.state === undefined && navigator.userAgent.indexOf('CriOS') === -1;\n}\n\nvar PopStateEvent = 'popstate';\nvar HashChangeEvent = 'hashchange';\n\nfunction getHistoryState() {\n try {\n return window.history.state || {};\n } catch (e) {\n // IE 11 sometimes throws when accessing window.history.state\n // See https://github.com/ReactTraining/history/pull/289\n return {};\n }\n}\n/**\n * Creates a history object that uses the HTML5 history API including\n * pushState, replaceState, and the popstate event.\n */\n\n\nfunction createBrowserHistory(props) {\n if (props === void 0) {\n props = {};\n }\n\n !canUseDOM ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Browser history needs a DOM') : invariant(false) : void 0;\n var globalHistory = window.history;\n var canUseHistory = supportsHistory();\n var needsHashChangeListener = !supportsPopStateOnHashChange();\n var _props = props,\n _props$forceRefresh = _props.forceRefresh,\n forceRefresh = _props$forceRefresh === void 0 ? false : _props$forceRefresh,\n _props$getUserConfirm = _props.getUserConfirmation,\n getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm,\n _props$keyLength = _props.keyLength,\n keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;\n var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : '';\n\n function getDOMLocation(historyState) {\n var _ref = historyState || {},\n key = _ref.key,\n state = _ref.state;\n\n var _window$location = window.location,\n pathname = _window$location.pathname,\n search = _window$location.search,\n hash = _window$location.hash;\n var path = pathname + search + hash;\n process.env.NODE_ENV !== \"production\" ? warning(!basename || hasBasename(path, basename), 'You are attempting to use a basename on a page whose URL path does not begin ' + 'with the basename. Expected path \"' + path + '\" to begin with \"' + basename + '\".') : void 0;\n if (basename) path = stripBasename(path, basename);\n return createLocation(path, state, key);\n }\n\n function createKey() {\n return Math.random().toString(36).substr(2, keyLength);\n }\n\n var transitionManager = createTransitionManager();\n\n function setState(nextState) {\n _extends(history, nextState);\n\n history.length = globalHistory.length;\n transitionManager.notifyListeners(history.location, history.action);\n }\n\n function handlePopState(event) {\n // Ignore extraneous popstate events in WebKit.\n if (isExtraneousPopstateEvent(event)) return;\n handlePop(getDOMLocation(event.state));\n }\n\n function handleHashChange() {\n handlePop(getDOMLocation(getHistoryState()));\n }\n\n var forceNextPop = false;\n\n function handlePop(location) {\n if (forceNextPop) {\n forceNextPop = false;\n setState();\n } else {\n var action = 'POP';\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (ok) {\n setState({\n action: action,\n location: location\n });\n } else {\n revertPop(location);\n }\n });\n }\n }\n\n function revertPop(fromLocation) {\n var toLocation = history.location; // TODO: We could probably make this more reliable by\n // keeping a list of keys we've seen in sessionStorage.\n // Instead, we just default to 0 for keys we don't know.\n\n var toIndex = allKeys.indexOf(toLocation.key);\n if (toIndex === -1) toIndex = 0;\n var fromIndex = allKeys.indexOf(fromLocation.key);\n if (fromIndex === -1) fromIndex = 0;\n var delta = toIndex - fromIndex;\n\n if (delta) {\n forceNextPop = true;\n go(delta);\n }\n }\n\n var initialLocation = getDOMLocation(getHistoryState());\n var allKeys = [initialLocation.key]; // Public interface\n\n function createHref(location) {\n return basename + createPath(location);\n }\n\n function push(path, state) {\n process.env.NODE_ENV !== \"production\" ? warning(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to push when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : void 0;\n var action = 'PUSH';\n var location = createLocation(path, state, createKey(), history.location);\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (!ok) return;\n var href = createHref(location);\n var key = location.key,\n state = location.state;\n\n if (canUseHistory) {\n globalHistory.pushState({\n key: key,\n state: state\n }, null, href);\n\n if (forceRefresh) {\n window.location.href = href;\n } else {\n var prevIndex = allKeys.indexOf(history.location.key);\n var nextKeys = allKeys.slice(0, prevIndex + 1);\n nextKeys.push(location.key);\n allKeys = nextKeys;\n setState({\n action: action,\n location: location\n });\n }\n } else {\n process.env.NODE_ENV !== \"production\" ? warning(state === undefined, 'Browser history cannot push state in browsers that do not support HTML5 history') : void 0;\n window.location.href = href;\n }\n });\n }\n\n function replace(path, state) {\n process.env.NODE_ENV !== \"production\" ? warning(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to replace when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : void 0;\n var action = 'REPLACE';\n var location = createLocation(path, state, createKey(), history.location);\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (!ok) return;\n var href = createHref(location);\n var key = location.key,\n state = location.state;\n\n if (canUseHistory) {\n globalHistory.replaceState({\n key: key,\n state: state\n }, null, href);\n\n if (forceRefresh) {\n window.location.replace(href);\n } else {\n var prevIndex = allKeys.indexOf(history.location.key);\n if (prevIndex !== -1) allKeys[prevIndex] = location.key;\n setState({\n action: action,\n location: location\n });\n }\n } else {\n process.env.NODE_ENV !== \"production\" ? warning(state === undefined, 'Browser history cannot replace state in browsers that do not support HTML5 history') : void 0;\n window.location.replace(href);\n }\n });\n }\n\n function go(n) {\n globalHistory.go(n);\n }\n\n function goBack() {\n go(-1);\n }\n\n function goForward() {\n go(1);\n }\n\n var listenerCount = 0;\n\n function checkDOMListeners(delta) {\n listenerCount += delta;\n\n if (listenerCount === 1 && delta === 1) {\n window.addEventListener(PopStateEvent, handlePopState);\n if (needsHashChangeListener) window.addEventListener(HashChangeEvent, handleHashChange);\n } else if (listenerCount === 0) {\n window.removeEventListener(PopStateEvent, handlePopState);\n if (needsHashChangeListener) window.removeEventListener(HashChangeEvent, handleHashChange);\n }\n }\n\n var isBlocked = false;\n\n function block(prompt) {\n if (prompt === void 0) {\n prompt = false;\n }\n\n var unblock = transitionManager.setPrompt(prompt);\n\n if (!isBlocked) {\n checkDOMListeners(1);\n isBlocked = true;\n }\n\n return function () {\n if (isBlocked) {\n isBlocked = false;\n checkDOMListeners(-1);\n }\n\n return unblock();\n };\n }\n\n function listen(listener) {\n var unlisten = transitionManager.appendListener(listener);\n checkDOMListeners(1);\n return function () {\n checkDOMListeners(-1);\n unlisten();\n };\n }\n\n var history = {\n length: globalHistory.length,\n action: 'POP',\n location: initialLocation,\n createHref: createHref,\n push: push,\n replace: replace,\n go: go,\n goBack: goBack,\n goForward: goForward,\n block: block,\n listen: listen\n };\n return history;\n}\n\nvar HashChangeEvent$1 = 'hashchange';\nvar HashPathCoders = {\n hashbang: {\n encodePath: function encodePath(path) {\n return path.charAt(0) === '!' ? path : '!/' + stripLeadingSlash(path);\n },\n decodePath: function decodePath(path) {\n return path.charAt(0) === '!' ? path.substr(1) : path;\n }\n },\n noslash: {\n encodePath: stripLeadingSlash,\n decodePath: addLeadingSlash\n },\n slash: {\n encodePath: addLeadingSlash,\n decodePath: addLeadingSlash\n }\n};\n\nfunction stripHash(url) {\n var hashIndex = url.indexOf('#');\n return hashIndex === -1 ? url : url.slice(0, hashIndex);\n}\n\nfunction getHashPath() {\n // We can't use window.location.hash here because it's not\n // consistent across browsers - Firefox will pre-decode it!\n var href = window.location.href;\n var hashIndex = href.indexOf('#');\n return hashIndex === -1 ? '' : href.substring(hashIndex + 1);\n}\n\nfunction pushHashPath(path) {\n window.location.hash = path;\n}\n\nfunction replaceHashPath(path) {\n window.location.replace(stripHash(window.location.href) + '#' + path);\n}\n\nfunction createHashHistory(props) {\n if (props === void 0) {\n props = {};\n }\n\n !canUseDOM ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Hash history needs a DOM') : invariant(false) : void 0;\n var globalHistory = window.history;\n var canGoWithoutReload = supportsGoWithoutReloadUsingHash();\n var _props = props,\n _props$getUserConfirm = _props.getUserConfirmation,\n getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm,\n _props$hashType = _props.hashType,\n hashType = _props$hashType === void 0 ? 'slash' : _props$hashType;\n var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : '';\n var _HashPathCoders$hashT = HashPathCoders[hashType],\n encodePath = _HashPathCoders$hashT.encodePath,\n decodePath = _HashPathCoders$hashT.decodePath;\n\n function getDOMLocation() {\n var path = decodePath(getHashPath());\n process.env.NODE_ENV !== \"production\" ? warning(!basename || hasBasename(path, basename), 'You are attempting to use a basename on a page whose URL path does not begin ' + 'with the basename. Expected path \"' + path + '\" to begin with \"' + basename + '\".') : void 0;\n if (basename) path = stripBasename(path, basename);\n return createLocation(path);\n }\n\n var transitionManager = createTransitionManager();\n\n function setState(nextState) {\n _extends(history, nextState);\n\n history.length = globalHistory.length;\n transitionManager.notifyListeners(history.location, history.action);\n }\n\n var forceNextPop = false;\n var ignorePath = null;\n\n function locationsAreEqual$$1(a, b) {\n return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash;\n }\n\n function handleHashChange() {\n var path = getHashPath();\n var encodedPath = encodePath(path);\n\n if (path !== encodedPath) {\n // Ensure we always have a properly-encoded hash.\n replaceHashPath(encodedPath);\n } else {\n var location = getDOMLocation();\n var prevLocation = history.location;\n if (!forceNextPop && locationsAreEqual$$1(prevLocation, location)) return; // A hashchange doesn't always == location change.\n\n if (ignorePath === createPath(location)) return; // Ignore this change; we already setState in push/replace.\n\n ignorePath = null;\n handlePop(location);\n }\n }\n\n function handlePop(location) {\n if (forceNextPop) {\n forceNextPop = false;\n setState();\n } else {\n var action = 'POP';\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (ok) {\n setState({\n action: action,\n location: location\n });\n } else {\n revertPop(location);\n }\n });\n }\n }\n\n function revertPop(fromLocation) {\n var toLocation = history.location; // TODO: We could probably make this more reliable by\n // keeping a list of paths we've seen in sessionStorage.\n // Instead, we just default to 0 for paths we don't know.\n\n var toIndex = allPaths.lastIndexOf(createPath(toLocation));\n if (toIndex === -1) toIndex = 0;\n var fromIndex = allPaths.lastIndexOf(createPath(fromLocation));\n if (fromIndex === -1) fromIndex = 0;\n var delta = toIndex - fromIndex;\n\n if (delta) {\n forceNextPop = true;\n go(delta);\n }\n } // Ensure the hash is encoded properly before doing anything else.\n\n\n var path = getHashPath();\n var encodedPath = encodePath(path);\n if (path !== encodedPath) replaceHashPath(encodedPath);\n var initialLocation = getDOMLocation();\n var allPaths = [createPath(initialLocation)]; // Public interface\n\n function createHref(location) {\n var baseTag = document.querySelector('base');\n var href = '';\n\n if (baseTag && baseTag.getAttribute('href')) {\n href = stripHash(window.location.href);\n }\n\n return href + '#' + encodePath(basename + createPath(location));\n }\n\n function push(path, state) {\n process.env.NODE_ENV !== \"production\" ? warning(state === undefined, 'Hash history cannot push state; it is ignored') : void 0;\n var action = 'PUSH';\n var location = createLocation(path, undefined, undefined, history.location);\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (!ok) return;\n var path = createPath(location);\n var encodedPath = encodePath(basename + path);\n var hashChanged = getHashPath() !== encodedPath;\n\n if (hashChanged) {\n // We cannot tell if a hashchange was caused by a PUSH, so we'd\n // rather setState here and ignore the hashchange. The caveat here\n // is that other hash histories in the page will consider it a POP.\n ignorePath = path;\n pushHashPath(encodedPath);\n var prevIndex = allPaths.lastIndexOf(createPath(history.location));\n var nextPaths = allPaths.slice(0, prevIndex + 1);\n nextPaths.push(path);\n allPaths = nextPaths;\n setState({\n action: action,\n location: location\n });\n } else {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'Hash history cannot PUSH the same path; a new entry will not be added to the history stack') : void 0;\n setState();\n }\n });\n }\n\n function replace(path, state) {\n process.env.NODE_ENV !== \"production\" ? warning(state === undefined, 'Hash history cannot replace state; it is ignored') : void 0;\n var action = 'REPLACE';\n var location = createLocation(path, undefined, undefined, history.location);\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (!ok) return;\n var path = createPath(location);\n var encodedPath = encodePath(basename + path);\n var hashChanged = getHashPath() !== encodedPath;\n\n if (hashChanged) {\n // We cannot tell if a hashchange was caused by a REPLACE, so we'd\n // rather setState here and ignore the hashchange. The caveat here\n // is that other hash histories in the page will consider it a POP.\n ignorePath = path;\n replaceHashPath(encodedPath);\n }\n\n var prevIndex = allPaths.indexOf(createPath(history.location));\n if (prevIndex !== -1) allPaths[prevIndex] = path;\n setState({\n action: action,\n location: location\n });\n });\n }\n\n function go(n) {\n process.env.NODE_ENV !== \"production\" ? warning(canGoWithoutReload, 'Hash history go(n) causes a full page reload in this browser') : void 0;\n globalHistory.go(n);\n }\n\n function goBack() {\n go(-1);\n }\n\n function goForward() {\n go(1);\n }\n\n var listenerCount = 0;\n\n function checkDOMListeners(delta) {\n listenerCount += delta;\n\n if (listenerCount === 1 && delta === 1) {\n window.addEventListener(HashChangeEvent$1, handleHashChange);\n } else if (listenerCount === 0) {\n window.removeEventListener(HashChangeEvent$1, handleHashChange);\n }\n }\n\n var isBlocked = false;\n\n function block(prompt) {\n if (prompt === void 0) {\n prompt = false;\n }\n\n var unblock = transitionManager.setPrompt(prompt);\n\n if (!isBlocked) {\n checkDOMListeners(1);\n isBlocked = true;\n }\n\n return function () {\n if (isBlocked) {\n isBlocked = false;\n checkDOMListeners(-1);\n }\n\n return unblock();\n };\n }\n\n function listen(listener) {\n var unlisten = transitionManager.appendListener(listener);\n checkDOMListeners(1);\n return function () {\n checkDOMListeners(-1);\n unlisten();\n };\n }\n\n var history = {\n length: globalHistory.length,\n action: 'POP',\n location: initialLocation,\n createHref: createHref,\n push: push,\n replace: replace,\n go: go,\n goBack: goBack,\n goForward: goForward,\n block: block,\n listen: listen\n };\n return history;\n}\n\nfunction clamp(n, lowerBound, upperBound) {\n return Math.min(Math.max(n, lowerBound), upperBound);\n}\n/**\n * Creates a history object that stores locations in memory.\n */\n\n\nfunction createMemoryHistory(props) {\n if (props === void 0) {\n props = {};\n }\n\n var _props = props,\n getUserConfirmation = _props.getUserConfirmation,\n _props$initialEntries = _props.initialEntries,\n initialEntries = _props$initialEntries === void 0 ? ['/'] : _props$initialEntries,\n _props$initialIndex = _props.initialIndex,\n initialIndex = _props$initialIndex === void 0 ? 0 : _props$initialIndex,\n _props$keyLength = _props.keyLength,\n keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;\n var transitionManager = createTransitionManager();\n\n function setState(nextState) {\n _extends(history, nextState);\n\n history.length = history.entries.length;\n transitionManager.notifyListeners(history.location, history.action);\n }\n\n function createKey() {\n return Math.random().toString(36).substr(2, keyLength);\n }\n\n var index = clamp(initialIndex, 0, initialEntries.length - 1);\n var entries = initialEntries.map(function (entry) {\n return typeof entry === 'string' ? createLocation(entry, undefined, createKey()) : createLocation(entry, undefined, entry.key || createKey());\n }); // Public interface\n\n var createHref = createPath;\n\n function push(path, state) {\n process.env.NODE_ENV !== \"production\" ? warning(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to push when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : void 0;\n var action = 'PUSH';\n var location = createLocation(path, state, createKey(), history.location);\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (!ok) return;\n var prevIndex = history.index;\n var nextIndex = prevIndex + 1;\n var nextEntries = history.entries.slice(0);\n\n if (nextEntries.length > nextIndex) {\n nextEntries.splice(nextIndex, nextEntries.length - nextIndex, location);\n } else {\n nextEntries.push(location);\n }\n\n setState({\n action: action,\n location: location,\n index: nextIndex,\n entries: nextEntries\n });\n });\n }\n\n function replace(path, state) {\n process.env.NODE_ENV !== \"production\" ? warning(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to replace when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : void 0;\n var action = 'REPLACE';\n var location = createLocation(path, state, createKey(), history.location);\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (!ok) return;\n history.entries[history.index] = location;\n setState({\n action: action,\n location: location\n });\n });\n }\n\n function go(n) {\n var nextIndex = clamp(history.index + n, 0, history.entries.length - 1);\n var action = 'POP';\n var location = history.entries[nextIndex];\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (ok) {\n setState({\n action: action,\n location: location,\n index: nextIndex\n });\n } else {\n // Mimic the behavior of DOM histories by\n // causing a render after a cancelled POP.\n setState();\n }\n });\n }\n\n function goBack() {\n go(-1);\n }\n\n function goForward() {\n go(1);\n }\n\n function canGo(n) {\n var nextIndex = history.index + n;\n return nextIndex >= 0 && nextIndex < history.entries.length;\n }\n\n function block(prompt) {\n if (prompt === void 0) {\n prompt = false;\n }\n\n return transitionManager.setPrompt(prompt);\n }\n\n function listen(listener) {\n return transitionManager.appendListener(listener);\n }\n\n var history = {\n length: entries.length,\n action: 'POP',\n location: entries[index],\n index: index,\n entries: entries,\n createHref: createHref,\n push: push,\n replace: replace,\n go: go,\n goBack: goBack,\n goForward: goForward,\n canGo: canGo,\n block: block,\n listen: listen\n };\n return history;\n}\n\nexport { createBrowserHistory, createHashHistory, createMemoryHistory, createLocation, locationsAreEqual, parsePath, createPath };\n","'use strict';\n\nvar reactIs = require('react-is');\n\n/**\n * Copyright 2015, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\nvar REACT_STATICS = {\n childContextTypes: true,\n contextType: true,\n contextTypes: true,\n defaultProps: true,\n displayName: true,\n getDefaultProps: true,\n getDerivedStateFromError: true,\n getDerivedStateFromProps: true,\n mixins: true,\n propTypes: true,\n type: true\n};\nvar KNOWN_STATICS = {\n name: true,\n length: true,\n prototype: true,\n caller: true,\n callee: true,\n arguments: true,\n arity: true\n};\nvar FORWARD_REF_STATICS = {\n '$$typeof': true,\n render: true,\n defaultProps: true,\n displayName: true,\n propTypes: true\n};\nvar MEMO_STATICS = {\n '$$typeof': true,\n compare: true,\n defaultProps: true,\n displayName: true,\n propTypes: true,\n type: true\n};\nvar TYPE_STATICS = {};\nTYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;\nTYPE_STATICS[reactIs.Memo] = MEMO_STATICS;\n\nfunction getStatics(component) {\n // React v16.11 and below\n if (reactIs.isMemo(component)) {\n return MEMO_STATICS;\n } // React v16.12 and above\n\n\n return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;\n}\n\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = Object.prototype;\nfunction hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {\n if (typeof sourceComponent !== 'string') {\n // don't hoist over string (html) components\n if (objectPrototype) {\n var inheritedComponent = getPrototypeOf(sourceComponent);\n\n if (inheritedComponent && inheritedComponent !== objectPrototype) {\n hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n }\n }\n\n var keys = getOwnPropertyNames(sourceComponent);\n\n if (getOwnPropertySymbols) {\n keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n }\n\n var targetStatics = getStatics(targetComponent);\n var sourceStatics = getStatics(sourceComponent);\n\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n\n if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {\n var descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n\n try {\n // Avoid failures from read-only properties\n defineProperty(targetComponent, key, descriptor);\n } catch (e) {}\n }\n }\n }\n\n return targetComponent;\n}\n\nmodule.exports = hoistNonReactStatics;\n","/* eslint-disable no-var, prefer-template */\nvar uppercasePattern = /[A-Z]/g\nvar msPattern = /^ms-/\nvar cache = {}\n\nfunction toHyphenLower(match) {\n return '-' + match.toLowerCase()\n}\n\nfunction hyphenateStyleName(name) {\n if (cache.hasOwnProperty(name)) {\n return cache[name]\n }\n\n var hName = name.replace(uppercasePattern, toHyphenLower)\n return (cache[name] = msPattern.test(hName) ? '-' + hName : hName)\n}\n\nexport default hyphenateStyleName\n","/*!\n * inflection\n * Copyright(c) 2011 Ben Lin \n * MIT Licensed\n *\n * @fileoverview\n * A port of inflection-js to node.js module.\n */\n\n( function ( root, factory ){\n if( typeof define === 'function' && define.amd ){\n define([], factory );\n }else if( typeof exports === 'object' ){\n module.exports = factory();\n }else{\n root.inflection = factory();\n }\n}( this, function (){\n\n /**\n * @description This is a list of nouns that use the same form for both singular and plural.\n * This list should remain entirely in lower case to correctly match Strings.\n * @private\n */\n var uncountable_words = [\n // 'access',\n 'accommodation',\n 'adulthood',\n 'advertising',\n 'advice',\n 'aggression',\n 'aid',\n 'air',\n 'aircraft',\n 'alcohol',\n 'anger',\n 'applause',\n 'arithmetic',\n // 'art',\n 'assistance',\n 'athletics',\n // 'attention',\n\n 'bacon',\n 'baggage',\n // 'ballet',\n // 'beauty',\n 'beef',\n // 'beer',\n // 'behavior',\n 'biology',\n // 'billiards',\n 'blood',\n 'botany',\n // 'bowels',\n 'bread',\n // 'business',\n 'butter',\n\n 'carbon',\n 'cardboard',\n 'cash',\n 'chalk',\n 'chaos',\n 'chess',\n 'crossroads',\n 'countryside',\n\n // 'damage',\n 'dancing',\n // 'danger',\n 'deer',\n // 'delight',\n // 'dessert',\n 'dignity',\n 'dirt',\n // 'distribution',\n 'dust',\n\n 'economics',\n 'education',\n 'electricity',\n // 'employment',\n // 'energy',\n 'engineering',\n 'enjoyment',\n // 'entertainment',\n 'envy',\n 'equipment',\n 'ethics',\n 'evidence',\n 'evolution',\n\n // 'failure',\n // 'faith',\n 'fame',\n 'fiction',\n // 'fish',\n 'flour',\n 'flu',\n 'food',\n // 'freedom',\n // 'fruit',\n 'fuel',\n 'fun',\n // 'funeral',\n 'furniture',\n\n 'gallows',\n 'garbage',\n 'garlic',\n // 'gas',\n 'genetics',\n // 'glass',\n 'gold',\n 'golf',\n 'gossip',\n // 'grass',\n 'gratitude',\n 'grief',\n // 'ground',\n 'guilt',\n 'gymnastics',\n\n // 'hair',\n 'happiness',\n 'hardware',\n 'harm',\n 'hate',\n 'hatred',\n 'health',\n 'heat',\n // 'height',\n 'help',\n 'homework',\n 'honesty',\n 'honey',\n 'hospitality',\n 'housework',\n 'humour',\n 'hunger',\n 'hydrogen',\n\n 'ice',\n 'importance',\n 'inflation',\n 'information',\n // 'injustice',\n 'innocence',\n // 'intelligence',\n 'iron',\n 'irony',\n\n 'jam',\n // 'jealousy',\n // 'jelly',\n 'jewelry',\n // 'joy',\n 'judo',\n // 'juice',\n // 'justice',\n\n 'karate',\n // 'kindness',\n 'knowledge',\n\n // 'labour',\n 'lack',\n // 'land',\n 'laughter',\n 'lava',\n 'leather',\n 'leisure',\n 'lightning',\n 'linguine',\n 'linguini',\n 'linguistics',\n 'literature',\n 'litter',\n 'livestock',\n 'logic',\n 'loneliness',\n // 'love',\n 'luck',\n 'luggage',\n\n 'macaroni',\n 'machinery',\n 'magic',\n // 'mail',\n 'management',\n 'mankind',\n 'marble',\n 'mathematics',\n 'mayonnaise',\n 'measles',\n // 'meat',\n // 'metal',\n 'methane',\n 'milk',\n 'minus',\n 'money',\n // 'moose',\n 'mud',\n 'music',\n 'mumps',\n\n 'nature',\n 'news',\n 'nitrogen',\n 'nonsense',\n 'nurture',\n 'nutrition',\n\n 'obedience',\n 'obesity',\n // 'oil',\n 'oxygen',\n\n // 'paper',\n // 'passion',\n 'pasta',\n 'patience',\n // 'permission',\n 'physics',\n 'poetry',\n 'pollution',\n 'poverty',\n // 'power',\n 'pride',\n // 'production',\n // 'progress',\n // 'pronunciation',\n 'psychology',\n 'publicity',\n 'punctuation',\n\n // 'quality',\n // 'quantity',\n 'quartz',\n\n 'racism',\n // 'rain',\n // 'recreation',\n 'relaxation',\n 'reliability',\n 'research',\n 'respect',\n 'revenge',\n 'rice',\n 'rubbish',\n 'rum',\n\n 'safety',\n // 'salad',\n // 'salt',\n // 'sand',\n // 'satire',\n 'scenery',\n 'seafood',\n 'seaside',\n 'series',\n 'shame',\n 'sheep',\n 'shopping',\n // 'silence',\n 'sleep',\n // 'slang'\n 'smoke',\n 'smoking',\n 'snow',\n 'soap',\n 'software',\n 'soil',\n // 'sorrow',\n // 'soup',\n 'spaghetti',\n // 'speed',\n 'species',\n // 'spelling',\n // 'sport',\n 'steam',\n // 'strength',\n 'stuff',\n 'stupidity',\n // 'success',\n // 'sugar',\n 'sunshine',\n 'symmetry',\n\n // 'tea',\n 'tennis',\n 'thirst',\n 'thunder',\n 'timber',\n // 'time',\n // 'toast',\n // 'tolerance',\n // 'trade',\n 'traffic',\n 'transportation',\n // 'travel',\n 'trust',\n\n // 'understanding',\n 'underwear',\n 'unemployment',\n 'unity',\n // 'usage',\n\n 'validity',\n 'veal',\n 'vegetation',\n 'vegetarianism',\n 'vengeance',\n 'violence',\n // 'vision',\n 'vitality',\n\n 'warmth',\n // 'water',\n 'wealth',\n 'weather',\n // 'weight',\n 'welfare',\n 'wheat',\n // 'whiskey',\n // 'width',\n 'wildlife',\n // 'wine',\n 'wisdom',\n // 'wood',\n // 'wool',\n // 'work',\n\n // 'yeast',\n 'yoga',\n\n 'zinc',\n 'zoology'\n ];\n\n /**\n * @description These rules translate from the singular form of a noun to its plural form.\n * @private\n */\n\n var regex = {\n plural : {\n men : new RegExp( '^(m|wom)en$' , 'gi' ),\n people : new RegExp( '(pe)ople$' , 'gi' ),\n children : new RegExp( '(child)ren$' , 'gi' ),\n tia : new RegExp( '([ti])a$' , 'gi' ),\n analyses : new RegExp( '((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$','gi' ),\n hives : new RegExp( '(hi|ti)ves$' , 'gi' ),\n curves : new RegExp( '(curve)s$' , 'gi' ),\n lrves : new RegExp( '([lr])ves$' , 'gi' ),\n aves : new RegExp( '([a])ves$' , 'gi' ),\n foves : new RegExp( '([^fo])ves$' , 'gi' ),\n movies : new RegExp( '(m)ovies$' , 'gi' ),\n aeiouyies : new RegExp( '([^aeiouy]|qu)ies$' , 'gi' ),\n series : new RegExp( '(s)eries$' , 'gi' ),\n xes : new RegExp( '(x|ch|ss|sh)es$' , 'gi' ),\n mice : new RegExp( '([m|l])ice$' , 'gi' ),\n buses : new RegExp( '(bus)es$' , 'gi' ),\n oes : new RegExp( '(o)es$' , 'gi' ),\n shoes : new RegExp( '(shoe)s$' , 'gi' ),\n crises : new RegExp( '(cris|ax|test)es$' , 'gi' ),\n octopuses : new RegExp( '(octop|vir)uses$' , 'gi' ),\n aliases : new RegExp( '(alias|canvas|status|campus)es$', 'gi' ),\n summonses : new RegExp( '^(summons|bonus)es$' , 'gi' ),\n oxen : new RegExp( '^(ox)en' , 'gi' ),\n matrices : new RegExp( '(matr)ices$' , 'gi' ),\n vertices : new RegExp( '(vert|ind)ices$' , 'gi' ),\n feet : new RegExp( '^feet$' , 'gi' ),\n teeth : new RegExp( '^teeth$' , 'gi' ),\n geese : new RegExp( '^geese$' , 'gi' ),\n quizzes : new RegExp( '(quiz)zes$' , 'gi' ),\n whereases : new RegExp( '^(whereas)es$' , 'gi' ),\n criteria : new RegExp( '^(criteri)a$' , 'gi' ),\n genera : new RegExp( '^genera$' , 'gi' ),\n ss : new RegExp( 'ss$' , 'gi' ),\n s : new RegExp( 's$' , 'gi' )\n },\n\n singular : {\n man : new RegExp( '^(m|wom)an$' , 'gi' ),\n person : new RegExp( '(pe)rson$' , 'gi' ),\n child : new RegExp( '(child)$' , 'gi' ),\n ox : new RegExp( '^(ox)$' , 'gi' ),\n axis : new RegExp( '(ax|test)is$' , 'gi' ),\n octopus : new RegExp( '(octop|vir)us$' , 'gi' ),\n alias : new RegExp( '(alias|status|canvas|campus)$', 'gi' ),\n summons : new RegExp( '^(summons|bonus)$' , 'gi' ),\n bus : new RegExp( '(bu)s$' , 'gi' ),\n buffalo : new RegExp( '(buffal|tomat|potat)o$' , 'gi' ),\n tium : new RegExp( '([ti])um$' , 'gi' ),\n sis : new RegExp( 'sis$' , 'gi' ),\n ffe : new RegExp( '(?:([^f])fe|([lr])f)$' , 'gi' ),\n hive : new RegExp( '(hi|ti)ve$' , 'gi' ),\n aeiouyy : new RegExp( '([^aeiouy]|qu)y$' , 'gi' ),\n x : new RegExp( '(x|ch|ss|sh)$' , 'gi' ),\n matrix : new RegExp( '(matr)ix$' , 'gi' ),\n vertex : new RegExp( '(vert|ind)ex$' , 'gi' ),\n mouse : new RegExp( '([m|l])ouse$' , 'gi' ),\n foot : new RegExp( '^foot$' , 'gi' ),\n tooth : new RegExp( '^tooth$' , 'gi' ),\n goose : new RegExp( '^goose$' , 'gi' ),\n quiz : new RegExp( '(quiz)$' , 'gi' ),\n whereas : new RegExp( '^(whereas)$' , 'gi' ),\n criterion : new RegExp( '^(criteri)on$' , 'gi' ),\n genus : new RegExp( '^genus$' , 'gi' ),\n s : new RegExp( 's$' , 'gi' ),\n common : new RegExp( '$' , 'gi' )\n }\n };\n\n var plural_rules = [\n\n // do not replace if its already a plural word\n [ regex.plural.men ],\n [ regex.plural.people ],\n [ regex.plural.children ],\n [ regex.plural.tia ],\n [ regex.plural.analyses ],\n [ regex.plural.hives ],\n [ regex.plural.curves ],\n [ regex.plural.lrves ],\n [ regex.plural.foves ],\n [ regex.plural.aeiouyies ],\n [ regex.plural.series ],\n [ regex.plural.movies ],\n [ regex.plural.xes ],\n [ regex.plural.mice ],\n [ regex.plural.buses ],\n [ regex.plural.oes ],\n [ regex.plural.shoes ],\n [ regex.plural.crises ],\n [ regex.plural.octopuses ],\n [ regex.plural.aliases ],\n [ regex.plural.summonses ],\n [ regex.plural.oxen ],\n [ regex.plural.matrices ],\n [ regex.plural.feet ],\n [ regex.plural.teeth ],\n [ regex.plural.geese ],\n [ regex.plural.quizzes ],\n [ regex.plural.whereases ],\n [ regex.plural.criteria ],\n [ regex.plural.genera ],\n\n // original rule\n [ regex.singular.man , '$1en' ],\n [ regex.singular.person , '$1ople' ],\n [ regex.singular.child , '$1ren' ],\n [ regex.singular.ox , '$1en' ],\n [ regex.singular.axis , '$1es' ],\n [ regex.singular.octopus , '$1uses' ],\n [ regex.singular.alias , '$1es' ],\n [ regex.singular.summons , '$1es' ],\n [ regex.singular.bus , '$1ses' ],\n [ regex.singular.buffalo , '$1oes' ],\n [ regex.singular.tium , '$1a' ],\n [ regex.singular.sis , 'ses' ],\n [ regex.singular.ffe , '$1$2ves' ],\n [ regex.singular.hive , '$1ves' ],\n [ regex.singular.aeiouyy , '$1ies' ],\n [ regex.singular.matrix , '$1ices' ],\n [ regex.singular.vertex , '$1ices' ],\n [ regex.singular.x , '$1es' ],\n [ regex.singular.mouse , '$1ice' ],\n [ regex.singular.foot , 'feet' ],\n [ regex.singular.tooth , 'teeth' ],\n [ regex.singular.goose , 'geese' ],\n [ regex.singular.quiz , '$1zes' ],\n [ regex.singular.whereas , '$1es' ],\n [ regex.singular.criterion, '$1a' ],\n [ regex.singular.genus , 'genera' ],\n\n [ regex.singular.s , 's' ],\n [ regex.singular.common, 's' ]\n ];\n\n /**\n * @description These rules translate from the plural form of a noun to its singular form.\n * @private\n */\n var singular_rules = [\n\n // do not replace if its already a singular word\n [ regex.singular.man ],\n [ regex.singular.person ],\n [ regex.singular.child ],\n [ regex.singular.ox ],\n [ regex.singular.axis ],\n [ regex.singular.octopus ],\n [ regex.singular.alias ],\n [ regex.singular.summons ],\n [ regex.singular.bus ],\n [ regex.singular.buffalo ],\n [ regex.singular.tium ],\n [ regex.singular.sis ],\n [ regex.singular.ffe ],\n [ regex.singular.hive ],\n [ regex.singular.aeiouyy ],\n [ regex.singular.x ],\n [ regex.singular.matrix ],\n [ regex.singular.mouse ],\n [ regex.singular.foot ],\n [ regex.singular.tooth ],\n [ regex.singular.goose ],\n [ regex.singular.quiz ],\n [ regex.singular.whereas ],\n [ regex.singular.criterion ],\n [ regex.singular.genus ],\n\n // original rule\n [ regex.plural.men , '$1an' ],\n [ regex.plural.people , '$1rson' ],\n [ regex.plural.children , '$1' ],\n [ regex.plural.genera , 'genus'],\n [ regex.plural.criteria , '$1on'],\n [ regex.plural.tia , '$1um' ],\n [ regex.plural.analyses , '$1$2sis' ],\n [ regex.plural.hives , '$1ve' ],\n [ regex.plural.curves , '$1' ],\n [ regex.plural.lrves , '$1f' ],\n [ regex.plural.aves , '$1ve' ],\n [ regex.plural.foves , '$1fe' ],\n [ regex.plural.movies , '$1ovie' ],\n [ regex.plural.aeiouyies, '$1y' ],\n [ regex.plural.series , '$1eries' ],\n [ regex.plural.xes , '$1' ],\n [ regex.plural.mice , '$1ouse' ],\n [ regex.plural.buses , '$1' ],\n [ regex.plural.oes , '$1' ],\n [ regex.plural.shoes , '$1' ],\n [ regex.plural.crises , '$1is' ],\n [ regex.plural.octopuses, '$1us' ],\n [ regex.plural.aliases , '$1' ],\n [ regex.plural.summonses, '$1' ],\n [ regex.plural.oxen , '$1' ],\n [ regex.plural.matrices , '$1ix' ],\n [ regex.plural.vertices , '$1ex' ],\n [ regex.plural.feet , 'foot' ],\n [ regex.plural.teeth , 'tooth' ],\n [ regex.plural.geese , 'goose' ],\n [ regex.plural.quizzes , '$1' ],\n [ regex.plural.whereases, '$1' ],\n\n [ regex.plural.ss, 'ss' ],\n [ regex.plural.s , '' ]\n ];\n\n /**\n * @description This is a list of words that should not be capitalized for title case.\n * @private\n */\n var non_titlecased_words = [\n 'and', 'or', 'nor', 'a', 'an', 'the', 'so', 'but', 'to', 'of', 'at','by',\n 'from', 'into', 'on', 'onto', 'off', 'out', 'in', 'over', 'with', 'for'\n ];\n\n /**\n * @description These are regular expressions used for converting between String formats.\n * @private\n */\n var id_suffix = new RegExp( '(_ids|_id)$', 'g' );\n var underbar = new RegExp( '_', 'g' );\n var space_or_underbar = new RegExp( '[\\ _]', 'g' );\n var uppercase = new RegExp( '([A-Z])', 'g' );\n var underbar_prefix = new RegExp( '^_' );\n\n var inflector = {\n\n /**\n * A helper method that applies rules based replacement to a String.\n * @private\n * @function\n * @param {String} str String to modify and return based on the passed rules.\n * @param {Array: [RegExp, String]} rules Regexp to match paired with String to use for replacement\n * @param {Array: [String]} skip Strings to skip if they match\n * @param {String} override String to return as though this method succeeded (used to conform to APIs)\n * @returns {String} Return passed String modified by passed rules.\n * @example\n *\n * this._apply_rules( 'cows', singular_rules ); // === 'cow'\n */\n _apply_rules : function ( str, rules, skip, override ){\n if( override ){\n str = override;\n }else{\n var ignore = ( inflector.indexOf( skip, str.toLowerCase()) > -1 );\n\n if( !ignore ){\n var i = 0;\n var j = rules.length;\n\n for( ; i < j; i++ ){\n if( str.match( rules[ i ][ 0 ])){\n if( rules[ i ][ 1 ] !== undefined ){\n str = str.replace( rules[ i ][ 0 ], rules[ i ][ 1 ]);\n }\n break;\n }\n }\n }\n }\n\n return str;\n },\n\n\n\n /**\n * This lets us detect if an Array contains a given element.\n * @public\n * @function\n * @param {Array} arr The subject array.\n * @param {Object} item Object to locate in the Array.\n * @param {Number} from_index Starts checking from this position in the Array.(optional)\n * @param {Function} compare_func Function used to compare Array item vs passed item.(optional)\n * @returns {Number} Return index position in the Array of the passed item.\n * @example\n *\n * var inflection = require( 'inflection' );\n *\n * inflection.indexOf([ 'hi','there' ], 'guys' ); // === -1\n * inflection.indexOf([ 'hi','there' ], 'hi' ); // === 0\n */\n indexOf : function ( arr, item, from_index, compare_func ){\n if( !from_index ){\n from_index = -1;\n }\n\n var index = -1;\n var i = from_index;\n var j = arr.length;\n\n for( ; i < j; i++ ){\n if( arr[ i ] === item || compare_func && compare_func( arr[ i ], item )){\n index = i;\n break;\n }\n }\n\n return index;\n },\n\n\n\n /**\n * This function adds pluralization support to every String object.\n * @public\n * @function\n * @param {String} str The subject string.\n * @param {String} plural Overrides normal output with said String.(optional)\n * @returns {String} Singular English language nouns are returned in plural form.\n * @example\n *\n * var inflection = require( 'inflection' );\n *\n * inflection.pluralize( 'person' ); // === 'people'\n * inflection.pluralize( 'octopus' ); // === 'octopuses'\n * inflection.pluralize( 'Hat' ); // === 'Hats'\n * inflection.pluralize( 'person', 'guys' ); // === 'guys'\n */\n pluralize : function ( str, plural ){\n return inflector._apply_rules( str, plural_rules, uncountable_words, plural );\n },\n\n\n\n /**\n * This function adds singularization support to every String object.\n * @public\n * @function\n * @param {String} str The subject string.\n * @param {String} singular Overrides normal output with said String.(optional)\n * @returns {String} Plural English language nouns are returned in singular form.\n * @example\n *\n * var inflection = require( 'inflection' );\n *\n * inflection.singularize( 'people' ); // === 'person'\n * inflection.singularize( 'octopuses' ); // === 'octopus'\n * inflection.singularize( 'Hats' ); // === 'Hat'\n * inflection.singularize( 'guys', 'person' ); // === 'person'\n */\n singularize : function ( str, singular ){\n return inflector._apply_rules( str, singular_rules, uncountable_words, singular );\n },\n\n\n /**\n * This function will pluralize or singularlize a String appropriately based on an integer value\n * @public\n * @function\n * @param {String} str The subject string.\n * @param {Number} count The number to base pluralization off of.\n * @param {String} singular Overrides normal output with said String.(optional)\n * @param {String} plural Overrides normal output with said String.(optional)\n * @returns {String} English language nouns are returned in the plural or singular form based on the count.\n * @example\n *\n * var inflection = require( 'inflection' );\n *\n * inflection.inflect( 'people' 1 ); // === 'person'\n * inflection.inflect( 'octopuses' 1 ); // === 'octopus'\n * inflection.inflect( 'Hats' 1 ); // === 'Hat'\n * inflection.inflect( 'guys', 1 , 'person' ); // === 'person'\n * inflection.inflect( 'person', 2 ); // === 'people'\n * inflection.inflect( 'octopus', 2 ); // === 'octopuses'\n * inflection.inflect( 'Hat', 2 ); // === 'Hats'\n * inflection.inflect( 'person', 2, null, 'guys' ); // === 'guys'\n */\n inflect : function ( str, count, singular, plural ){\n count = parseInt( count, 10 );\n\n if( isNaN( count )) return str;\n\n if( count === 0 || count > 1 ){\n return inflector._apply_rules( str, plural_rules, uncountable_words, plural );\n }else{\n return inflector._apply_rules( str, singular_rules, uncountable_words, singular );\n }\n },\n\n\n\n /**\n * This function adds camelization support to every String object.\n * @public\n * @function\n * @param {String} str The subject string.\n * @param {Boolean} low_first_letter Default is to capitalize the first letter of the results.(optional)\n * Passing true will lowercase it.\n * @returns {String} Lower case underscored words will be returned in camel case.\n * additionally '/' is translated to '::'\n * @example\n *\n * var inflection = require( 'inflection' );\n *\n * inflection.camelize( 'message_properties' ); // === 'MessageProperties'\n * inflection.camelize( 'message_properties', true ); // === 'messageProperties'\n */\n camelize : function ( str, low_first_letter ){\n var str_path = str.split( '/' );\n var i = 0;\n var j = str_path.length;\n var str_arr, init_x, k, l, first;\n\n for( ; i < j; i++ ){\n str_arr = str_path[ i ].split( '_' );\n k = 0;\n l = str_arr.length;\n\n for( ; k < l; k++ ){\n if( k !== 0 ){\n str_arr[ k ] = str_arr[ k ].toLowerCase();\n }\n\n first = str_arr[ k ].charAt( 0 );\n first = low_first_letter && i === 0 && k === 0\n ? first.toLowerCase() : first.toUpperCase();\n str_arr[ k ] = first + str_arr[ k ].substring( 1 );\n }\n\n str_path[ i ] = str_arr.join( '' );\n }\n\n return str_path.join( '::' );\n },\n\n\n\n /**\n * This function adds underscore support to every String object.\n * @public\n * @function\n * @param {String} str The subject string.\n * @param {Boolean} all_upper_case Default is to lowercase and add underscore prefix.(optional)\n * Passing true will return as entered.\n * @returns {String} Camel cased words are returned as lower cased and underscored.\n * additionally '::' is translated to '/'.\n * @example\n *\n * var inflection = require( 'inflection' );\n *\n * inflection.underscore( 'MessageProperties' ); // === 'message_properties'\n * inflection.underscore( 'messageProperties' ); // === 'message_properties'\n * inflection.underscore( 'MP', true ); // === 'MP'\n */\n underscore : function ( str, all_upper_case ){\n if( all_upper_case && str === str.toUpperCase()) return str;\n\n var str_path = str.split( '::' );\n var i = 0;\n var j = str_path.length;\n\n for( ; i < j; i++ ){\n str_path[ i ] = str_path[ i ].replace( uppercase, '_$1' );\n str_path[ i ] = str_path[ i ].replace( underbar_prefix, '' );\n }\n\n return str_path.join( '/' ).toLowerCase();\n },\n\n\n\n /**\n * This function adds humanize support to every String object.\n * @public\n * @function\n * @param {String} str The subject string.\n * @param {Boolean} low_first_letter Default is to capitalize the first letter of the results.(optional)\n * Passing true will lowercase it.\n * @returns {String} Lower case underscored words will be returned in humanized form.\n * @example\n *\n * var inflection = require( 'inflection' );\n *\n * inflection.humanize( 'message_properties' ); // === 'Message properties'\n * inflection.humanize( 'message_properties', true ); // === 'message properties'\n */\n humanize : function ( str, low_first_letter ){\n str = str.toLowerCase();\n str = str.replace( id_suffix, '' );\n str = str.replace( underbar, ' ' );\n\n if( !low_first_letter ){\n str = inflector.capitalize( str );\n }\n\n return str;\n },\n\n\n\n /**\n * This function adds capitalization support to every String object.\n * @public\n * @function\n * @param {String} str The subject string.\n * @returns {String} All characters will be lower case and the first will be upper.\n * @example\n *\n * var inflection = require( 'inflection' );\n *\n * inflection.capitalize( 'message_properties' ); // === 'Message_properties'\n * inflection.capitalize( 'message properties', true ); // === 'Message properties'\n */\n capitalize : function ( str ){\n str = str.toLowerCase();\n\n return str.substring( 0, 1 ).toUpperCase() + str.substring( 1 );\n },\n\n\n\n /**\n * This function replaces underscores with dashes in the string.\n * @public\n * @function\n * @param {String} str The subject string.\n * @returns {String} Replaces all spaces or underscores with dashes.\n * @example\n *\n * var inflection = require( 'inflection' );\n *\n * inflection.dasherize( 'message_properties' ); // === 'message-properties'\n * inflection.dasherize( 'Message Properties' ); // === 'Message-Properties'\n */\n dasherize : function ( str ){\n return str.replace( space_or_underbar, '-' );\n },\n\n\n\n /**\n * This function adds titleize support to every String object.\n * @public\n * @function\n * @param {String} str The subject string.\n * @returns {String} Capitalizes words as you would for a book title.\n * @example\n *\n * var inflection = require( 'inflection' );\n *\n * inflection.titleize( 'message_properties' ); // === 'Message Properties'\n * inflection.titleize( 'message properties to keep' ); // === 'Message Properties to Keep'\n */\n titleize : function ( str ){\n str = str.toLowerCase().replace( underbar, ' ' );\n var str_arr = str.split( ' ' );\n var i = 0;\n var j = str_arr.length;\n var d, k, l;\n\n for( ; i < j; i++ ){\n d = str_arr[ i ].split( '-' );\n k = 0;\n l = d.length;\n\n for( ; k < l; k++){\n if( inflector.indexOf( non_titlecased_words, d[ k ].toLowerCase()) < 0 ){\n d[ k ] = inflector.capitalize( d[ k ]);\n }\n }\n\n str_arr[ i ] = d.join( '-' );\n }\n\n str = str_arr.join( ' ' );\n str = str.substring( 0, 1 ).toUpperCase() + str.substring( 1 );\n\n return str;\n },\n\n\n\n /**\n * This function adds demodulize support to every String object.\n * @public\n * @function\n * @param {String} str The subject string.\n * @returns {String} Removes module names leaving only class names.(Ruby style)\n * @example\n *\n * var inflection = require( 'inflection' );\n *\n * inflection.demodulize( 'Message::Bus::Properties' ); // === 'Properties'\n */\n demodulize : function ( str ){\n var str_arr = str.split( '::' );\n\n return str_arr[ str_arr.length - 1 ];\n },\n\n\n\n /**\n * This function adds tableize support to every String object.\n * @public\n * @function\n * @param {String} str The subject string.\n * @returns {String} Return camel cased words into their underscored plural form.\n * @example\n *\n * var inflection = require( 'inflection' );\n *\n * inflection.tableize( 'MessageBusProperty' ); // === 'message_bus_properties'\n */\n tableize : function ( str ){\n str = inflector.underscore( str );\n str = inflector.pluralize( str );\n\n return str;\n },\n\n\n\n /**\n * This function adds classification support to every String object.\n * @public\n * @function\n * @param {String} str The subject string.\n * @returns {String} Underscored plural nouns become the camel cased singular form.\n * @example\n *\n * var inflection = require( 'inflection' );\n *\n * inflection.classify( 'message_bus_properties' ); // === 'MessageBusProperty'\n */\n classify : function ( str ){\n str = inflector.camelize( str );\n str = inflector.singularize( str );\n\n return str;\n },\n\n\n\n /**\n * This function adds foreign key support to every String object.\n * @public\n * @function\n * @param {String} str The subject string.\n * @param {Boolean} drop_id_ubar Default is to seperate id with an underbar at the end of the class name,\n you can pass true to skip it.(optional)\n * @returns {String} Underscored plural nouns become the camel cased singular form.\n * @example\n *\n * var inflection = require( 'inflection' );\n *\n * inflection.foreign_key( 'MessageBusProperty' ); // === 'message_bus_property_id'\n * inflection.foreign_key( 'MessageBusProperty', true ); // === 'message_bus_propertyid'\n */\n foreign_key : function ( str, drop_id_ubar ){\n str = inflector.demodulize( str );\n str = inflector.underscore( str ) + (( drop_id_ubar ) ? ( '' ) : ( '_' )) + 'id';\n\n return str;\n },\n\n\n\n /**\n * This function adds ordinalize support to every String object.\n * @public\n * @function\n * @param {String} str The subject string.\n * @returns {String} Return all found numbers their sequence like '22nd'.\n * @example\n *\n * var inflection = require( 'inflection' );\n *\n * inflection.ordinalize( 'the 1 pitch' ); // === 'the 1st pitch'\n */\n ordinalize : function ( str ){\n var str_arr = str.split( ' ' );\n var i = 0;\n var j = str_arr.length;\n\n for( ; i < j; i++ ){\n var k = parseInt( str_arr[ i ], 10 );\n\n if( !isNaN( k )){\n var ltd = str_arr[ i ].substring( str_arr[ i ].length - 2 );\n var ld = str_arr[ i ].substring( str_arr[ i ].length - 1 );\n var suf = 'th';\n\n if( ltd != '11' && ltd != '12' && ltd != '13' ){\n if( ld === '1' ){\n suf = 'st';\n }else if( ld === '2' ){\n suf = 'nd';\n }else if( ld === '3' ){\n suf = 'rd';\n }\n }\n\n str_arr[ i ] += suf;\n }\n }\n\n return str_arr.join( ' ' );\n },\n\n /**\n * This function performs multiple inflection methods on a string\n * @public\n * @function\n * @param {String} str The subject string.\n * @param {Array} arr An array of inflection methods.\n * @returns {String}\n * @example\n *\n * var inflection = require( 'inflection' );\n *\n * inflection.transform( 'all job', [ 'pluralize', 'capitalize', 'dasherize' ]); // === 'All-jobs'\n */\n transform : function ( str, arr ){\n var i = 0;\n var j = arr.length;\n\n for( ;i < j; i++ ){\n var method = arr[ i ];\n\n if( inflector.hasOwnProperty( method )){\n str = inflector[ method ]( str );\n }\n }\n\n return str;\n }\n };\n\n/**\n * @public\n */\n inflector.version = '1.13.1';\n\n return inflector;\n}));\n","var _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nexport var isBrowser = (typeof window === \"undefined\" ? \"undefined\" : _typeof(window)) === \"object\" && (typeof document === \"undefined\" ? \"undefined\" : _typeof(document)) === 'object' && document.nodeType === 9;\n\nexport default isBrowser;\n","import hyphenate from 'hyphenate-style-name';\n\n/**\n * Convert camel cased property names to dash separated.\n *\n * @param {Object} style\n * @return {Object}\n */\n\nfunction convertCase(style) {\n var converted = {};\n\n for (var prop in style) {\n var key = prop.indexOf('--') === 0 ? prop : hyphenate(prop);\n converted[key] = style[prop];\n }\n\n if (style.fallbacks) {\n if (Array.isArray(style.fallbacks)) converted.fallbacks = style.fallbacks.map(convertCase);else converted.fallbacks = convertCase(style.fallbacks);\n }\n\n return converted;\n}\n/**\n * Allow camel cased property names by converting them back to dasherized.\n *\n * @param {Rule} rule\n */\n\n\nfunction camelCase() {\n function onProcessStyle(style) {\n if (Array.isArray(style)) {\n // Handle rules like @font-face, which can have multiple styles in an array\n for (var index = 0; index < style.length; index++) {\n style[index] = convertCase(style[index]);\n }\n\n return style;\n }\n\n return convertCase(style);\n }\n\n function onChangeValue(value, prop, rule) {\n if (prop.indexOf('--') === 0) {\n return value;\n }\n\n var hyphenatedProp = hyphenate(prop); // There was no camel case in place\n\n if (prop === hyphenatedProp) return value;\n rule.prop(hyphenatedProp, value); // Core will ignore that property value we set the proper one above.\n\n return null;\n }\n\n return {\n onProcessStyle: onProcessStyle,\n onChangeValue: onChangeValue\n };\n}\n\nexport default camelCase;\n","import { hasCSSTOMSupport } from 'jss';\n\nvar px = hasCSSTOMSupport && CSS ? CSS.px : 'px';\nvar ms = hasCSSTOMSupport && CSS ? CSS.ms : 'ms';\nvar percent = hasCSSTOMSupport && CSS ? CSS.percent : '%';\n/**\n * Generated jss-plugin-default-unit CSS property units\n *\n * @type object\n */\n\nvar defaultUnits = {\n // Animation properties\n 'animation-delay': ms,\n 'animation-duration': ms,\n // Background properties\n 'background-position': px,\n 'background-position-x': px,\n 'background-position-y': px,\n 'background-size': px,\n // Border Properties\n border: px,\n 'border-bottom': px,\n 'border-bottom-left-radius': px,\n 'border-bottom-right-radius': px,\n 'border-bottom-width': px,\n 'border-left': px,\n 'border-left-width': px,\n 'border-radius': px,\n 'border-right': px,\n 'border-right-width': px,\n 'border-top': px,\n 'border-top-left-radius': px,\n 'border-top-right-radius': px,\n 'border-top-width': px,\n 'border-width': px,\n 'border-block': px,\n 'border-block-end': px,\n 'border-block-end-width': px,\n 'border-block-start': px,\n 'border-block-start-width': px,\n 'border-block-width': px,\n 'border-inline': px,\n 'border-inline-end': px,\n 'border-inline-end-width': px,\n 'border-inline-start': px,\n 'border-inline-start-width': px,\n 'border-inline-width': px,\n 'border-start-start-radius': px,\n 'border-start-end-radius': px,\n 'border-end-start-radius': px,\n 'border-end-end-radius': px,\n // Margin properties\n margin: px,\n 'margin-bottom': px,\n 'margin-left': px,\n 'margin-right': px,\n 'margin-top': px,\n 'margin-block': px,\n 'margin-block-end': px,\n 'margin-block-start': px,\n 'margin-inline': px,\n 'margin-inline-end': px,\n 'margin-inline-start': px,\n // Padding properties\n padding: px,\n 'padding-bottom': px,\n 'padding-left': px,\n 'padding-right': px,\n 'padding-top': px,\n 'padding-block': px,\n 'padding-block-end': px,\n 'padding-block-start': px,\n 'padding-inline': px,\n 'padding-inline-end': px,\n 'padding-inline-start': px,\n // Mask properties\n 'mask-position-x': px,\n 'mask-position-y': px,\n 'mask-size': px,\n // Width and height properties\n height: px,\n width: px,\n 'min-height': px,\n 'max-height': px,\n 'min-width': px,\n 'max-width': px,\n // Position properties\n bottom: px,\n left: px,\n top: px,\n right: px,\n inset: px,\n 'inset-block': px,\n 'inset-block-end': px,\n 'inset-block-start': px,\n 'inset-inline': px,\n 'inset-inline-end': px,\n 'inset-inline-start': px,\n // Shadow properties\n 'box-shadow': px,\n 'text-shadow': px,\n // Column properties\n 'column-gap': px,\n 'column-rule': px,\n 'column-rule-width': px,\n 'column-width': px,\n // Font and text properties\n 'font-size': px,\n 'font-size-delta': px,\n 'letter-spacing': px,\n 'text-decoration-thickness': px,\n 'text-indent': px,\n 'text-stroke': px,\n 'text-stroke-width': px,\n 'word-spacing': px,\n // Motion properties\n motion: px,\n 'motion-offset': px,\n // Outline properties\n outline: px,\n 'outline-offset': px,\n 'outline-width': px,\n // Perspective properties\n perspective: px,\n 'perspective-origin-x': percent,\n 'perspective-origin-y': percent,\n // Transform properties\n 'transform-origin': percent,\n 'transform-origin-x': percent,\n 'transform-origin-y': percent,\n 'transform-origin-z': percent,\n // Transition properties\n 'transition-delay': ms,\n 'transition-duration': ms,\n // Alignment properties\n 'vertical-align': px,\n 'flex-basis': px,\n // Some random properties\n 'shape-margin': px,\n size: px,\n gap: px,\n // Grid properties\n grid: px,\n 'grid-gap': px,\n 'row-gap': px,\n 'grid-row-gap': px,\n 'grid-column-gap': px,\n 'grid-template-rows': px,\n 'grid-template-columns': px,\n 'grid-auto-rows': px,\n 'grid-auto-columns': px,\n // Not existing properties.\n // Used to avoid issues with jss-plugin-expand integration.\n 'box-shadow-x': px,\n 'box-shadow-y': px,\n 'box-shadow-blur': px,\n 'box-shadow-spread': px,\n 'font-line-height': px,\n 'text-shadow-x': px,\n 'text-shadow-y': px,\n 'text-shadow-blur': px\n};\n\n/**\n * Clones the object and adds a camel cased property version.\n */\nfunction addCamelCasedVersion(obj) {\n var regExp = /(-[a-z])/g;\n\n var replace = function replace(str) {\n return str[1].toUpperCase();\n };\n\n var newObj = {};\n\n for (var _key in obj) {\n newObj[_key] = obj[_key];\n newObj[_key.replace(regExp, replace)] = obj[_key];\n }\n\n return newObj;\n}\n\nvar units = addCamelCasedVersion(defaultUnits);\n/**\n * Recursive deep style passing function\n */\n\nfunction iterate(prop, value, options) {\n if (value == null) return value;\n\n if (Array.isArray(value)) {\n for (var i = 0; i < value.length; i++) {\n value[i] = iterate(prop, value[i], options);\n }\n } else if (typeof value === 'object') {\n if (prop === 'fallbacks') {\n for (var innerProp in value) {\n value[innerProp] = iterate(innerProp, value[innerProp], options);\n }\n } else {\n for (var _innerProp in value) {\n value[_innerProp] = iterate(prop + \"-\" + _innerProp, value[_innerProp], options);\n }\n } // eslint-disable-next-line no-restricted-globals\n\n } else if (typeof value === 'number' && isNaN(value) === false) {\n var unit = options[prop] || units[prop]; // Add the unit if available, except for the special case of 0px.\n\n if (unit && !(value === 0 && unit === px)) {\n return typeof unit === 'function' ? unit(value).toString() : \"\" + value + unit;\n }\n\n return value.toString();\n }\n\n return value;\n}\n/**\n * Add unit to numeric values.\n */\n\n\nfunction defaultUnit(options) {\n if (options === void 0) {\n options = {};\n }\n\n var camelCasedOptions = addCamelCasedVersion(options);\n\n function onProcessStyle(style, rule) {\n if (rule.type !== 'style') return style;\n\n for (var prop in style) {\n style[prop] = iterate(prop, style[prop], camelCasedOptions);\n }\n\n return style;\n }\n\n function onChangeValue(value, prop) {\n return iterate(prop, value, camelCasedOptions);\n }\n\n return {\n onProcessStyle: onProcessStyle,\n onChangeValue: onChangeValue\n };\n}\n\nexport default defaultUnit;\n","import _extends from '@babel/runtime/helpers/esm/extends';\nimport { RuleList } from 'jss';\n\nvar at = '@global';\nvar atPrefix = '@global ';\n\nvar GlobalContainerRule =\n/*#__PURE__*/\nfunction () {\n function GlobalContainerRule(key, styles, options) {\n this.type = 'global';\n this.at = at;\n this.rules = void 0;\n this.options = void 0;\n this.key = void 0;\n this.isProcessed = false;\n this.key = key;\n this.options = options;\n this.rules = new RuleList(_extends({}, options, {\n parent: this\n }));\n\n for (var selector in styles) {\n this.rules.add(selector, styles[selector]);\n }\n\n this.rules.process();\n }\n /**\n * Get a rule.\n */\n\n\n var _proto = GlobalContainerRule.prototype;\n\n _proto.getRule = function getRule(name) {\n return this.rules.get(name);\n }\n /**\n * Create and register rule, run plugins.\n */\n ;\n\n _proto.addRule = function addRule(name, style, options) {\n var rule = this.rules.add(name, style, options);\n if (rule) this.options.jss.plugins.onProcessRule(rule);\n return rule;\n }\n /**\n * Get index of a rule.\n */\n ;\n\n _proto.indexOf = function indexOf(rule) {\n return this.rules.indexOf(rule);\n }\n /**\n * Generates a CSS string.\n */\n ;\n\n _proto.toString = function toString() {\n return this.rules.toString();\n };\n\n return GlobalContainerRule;\n}();\n\nvar GlobalPrefixedRule =\n/*#__PURE__*/\nfunction () {\n function GlobalPrefixedRule(key, style, options) {\n this.type = 'global';\n this.at = at;\n this.options = void 0;\n this.rule = void 0;\n this.isProcessed = false;\n this.key = void 0;\n this.key = key;\n this.options = options;\n var selector = key.substr(atPrefix.length);\n this.rule = options.jss.createRule(selector, style, _extends({}, options, {\n parent: this\n }));\n }\n\n var _proto2 = GlobalPrefixedRule.prototype;\n\n _proto2.toString = function toString(options) {\n return this.rule ? this.rule.toString(options) : '';\n };\n\n return GlobalPrefixedRule;\n}();\n\nvar separatorRegExp = /\\s*,\\s*/g;\n\nfunction addScope(selector, scope) {\n var parts = selector.split(separatorRegExp);\n var scoped = '';\n\n for (var i = 0; i < parts.length; i++) {\n scoped += scope + \" \" + parts[i].trim();\n if (parts[i + 1]) scoped += ', ';\n }\n\n return scoped;\n}\n\nfunction handleNestedGlobalContainerRule(rule, sheet) {\n var options = rule.options,\n style = rule.style;\n var rules = style ? style[at] : null;\n if (!rules) return;\n\n for (var name in rules) {\n sheet.addRule(name, rules[name], _extends({}, options, {\n selector: addScope(name, rule.selector)\n }));\n }\n\n delete style[at];\n}\n\nfunction handlePrefixedGlobalRule(rule, sheet) {\n var options = rule.options,\n style = rule.style;\n\n for (var prop in style) {\n if (prop[0] !== '@' || prop.substr(0, at.length) !== at) continue;\n var selector = addScope(prop.substr(at.length), rule.selector);\n sheet.addRule(selector, style[prop], _extends({}, options, {\n selector: selector\n }));\n delete style[prop];\n }\n}\n/**\n * Convert nested rules to separate, remove them from original styles.\n *\n * @param {Rule} rule\n * @api public\n */\n\n\nfunction jssGlobal() {\n function onCreateRule(name, styles, options) {\n if (!name) return null;\n\n if (name === at) {\n return new GlobalContainerRule(name, styles, options);\n }\n\n if (name[0] === '@' && name.substr(0, atPrefix.length) === atPrefix) {\n return new GlobalPrefixedRule(name, styles, options);\n }\n\n var parent = options.parent;\n\n if (parent) {\n if (parent.type === 'global' || parent.options.parent && parent.options.parent.type === 'global') {\n options.scoped = false;\n }\n }\n\n if (options.scoped === false) {\n options.selector = name;\n }\n\n return null;\n }\n\n function onProcessRule(rule, sheet) {\n if (rule.type !== 'style' || !sheet) return;\n handleNestedGlobalContainerRule(rule, sheet);\n handlePrefixedGlobalRule(rule, sheet);\n }\n\n return {\n onCreateRule: onCreateRule,\n onProcessRule: onProcessRule\n };\n}\n\nexport default jssGlobal;\n","import _extends from '@babel/runtime/helpers/esm/extends';\nimport warning from 'tiny-warning';\n\nvar separatorRegExp = /\\s*,\\s*/g;\nvar parentRegExp = /&/g;\nvar refRegExp = /\\$([\\w-]+)/g;\n/**\n * Convert nested rules to separate, remove them from original styles.\n *\n * @param {Rule} rule\n * @api public\n */\n\nfunction jssNested() {\n // Get a function to be used for $ref replacement.\n function getReplaceRef(container, sheet) {\n return function (match, key) {\n var rule = container.getRule(key) || sheet && sheet.getRule(key);\n\n if (rule) {\n rule = rule;\n return rule.selector;\n }\n\n process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] Could not find the referenced rule \\\"\" + key + \"\\\" in \\\"\" + (container.options.meta || container.toString()) + \"\\\".\") : void 0;\n return key;\n };\n }\n\n function replaceParentRefs(nestedProp, parentProp) {\n var parentSelectors = parentProp.split(separatorRegExp);\n var nestedSelectors = nestedProp.split(separatorRegExp);\n var result = '';\n\n for (var i = 0; i < parentSelectors.length; i++) {\n var parent = parentSelectors[i];\n\n for (var j = 0; j < nestedSelectors.length; j++) {\n var nested = nestedSelectors[j];\n if (result) result += ', '; // Replace all & by the parent or prefix & with the parent.\n\n result += nested.indexOf('&') !== -1 ? nested.replace(parentRegExp, parent) : parent + \" \" + nested;\n }\n }\n\n return result;\n }\n\n function getOptions(rule, container, prevOptions) {\n // Options has been already created, now we only increase index.\n if (prevOptions) return _extends({}, prevOptions, {\n index: prevOptions.index + 1 // $FlowFixMe[prop-missing]\n\n });\n var nestingLevel = rule.options.nestingLevel;\n nestingLevel = nestingLevel === undefined ? 1 : nestingLevel + 1;\n\n var options = _extends({}, rule.options, {\n nestingLevel: nestingLevel,\n index: container.indexOf(rule) + 1 // We don't need the parent name to be set options for chlid.\n\n });\n\n delete options.name;\n return options;\n }\n\n function onProcessStyle(style, rule, sheet) {\n if (rule.type !== 'style') return style;\n var styleRule = rule;\n var container = styleRule.options.parent;\n var options;\n var replaceRef;\n\n for (var prop in style) {\n var isNested = prop.indexOf('&') !== -1;\n var isNestedConditional = prop[0] === '@';\n if (!isNested && !isNestedConditional) continue;\n options = getOptions(styleRule, container, options);\n\n if (isNested) {\n var selector = replaceParentRefs(prop, styleRule.selector); // Lazily create the ref replacer function just once for\n // all nested rules within the sheet.\n\n if (!replaceRef) replaceRef = getReplaceRef(container, sheet); // Replace all $refs.\n\n selector = selector.replace(refRegExp, replaceRef);\n container.addRule(selector, style[prop], _extends({}, options, {\n selector: selector\n }));\n } else if (isNestedConditional) {\n // Place conditional right after the parent rule to ensure right ordering.\n container.addRule(prop, {}, options) // Flow expects more options but they aren't required\n // And flow doesn't know this will always be a StyleRule which has the addRule method\n // $FlowFixMe[incompatible-use]\n // $FlowFixMe[prop-missing]\n .addRule(styleRule.key, style[prop], {\n selector: styleRule.selector\n });\n }\n\n delete style[prop];\n }\n\n return style;\n }\n\n return {\n onProcessStyle: onProcessStyle\n };\n}\n\nexport default jssNested;\n","/**\n * Sort props by length.\n */\nfunction jssPropsSort() {\n var sort = function sort(prop0, prop1) {\n if (prop0.length === prop1.length) {\n return prop0 > prop1 ? 1 : -1;\n }\n\n return prop0.length - prop1.length;\n };\n\n return {\n onProcessStyle: function onProcessStyle(style, rule) {\n if (rule.type !== 'style') return style;\n var newStyle = {};\n var props = Object.keys(style).sort(sort);\n\n for (var i = 0; i < props.length; i++) {\n newStyle[props[i]] = style[props[i]];\n }\n\n return newStyle;\n }\n };\n}\n\nexport default jssPropsSort;\n","import warning from 'tiny-warning';\nimport { createRule } from 'jss';\n\nvar now = Date.now();\nvar fnValuesNs = \"fnValues\" + now;\nvar fnRuleNs = \"fnStyle\" + ++now;\n\nvar functionPlugin = function functionPlugin() {\n return {\n onCreateRule: function onCreateRule(name, decl, options) {\n if (typeof decl !== 'function') return null;\n var rule = createRule(name, {}, options);\n rule[fnRuleNs] = decl;\n return rule;\n },\n onProcessStyle: function onProcessStyle(style, rule) {\n // We need to extract function values from the declaration, so that we can keep core unaware of them.\n // We need to do that only once.\n // We don't need to extract functions on each style update, since this can happen only once.\n // We don't support function values inside of function rules.\n if (fnValuesNs in rule || fnRuleNs in rule) return style;\n var fnValues = {};\n\n for (var prop in style) {\n var value = style[prop];\n if (typeof value !== 'function') continue;\n delete style[prop];\n fnValues[prop] = value;\n } // $FlowFixMe[prop-missing]\n\n\n rule[fnValuesNs] = fnValues;\n return style;\n },\n onUpdate: function onUpdate(data, rule, sheet, options) {\n var styleRule = rule; // $FlowFixMe[prop-missing]\n\n var fnRule = styleRule[fnRuleNs]; // If we have a style function, the entire rule is dynamic and style object\n // will be returned from that function.\n\n if (fnRule) {\n // Empty object will remove all currently defined props\n // in case function rule returns a falsy value.\n styleRule.style = fnRule(data) || {};\n\n if (process.env.NODE_ENV === 'development') {\n for (var prop in styleRule.style) {\n if (typeof styleRule.style[prop] === 'function') {\n process.env.NODE_ENV !== \"production\" ? warning(false, '[JSS] Function values inside function rules are not supported.') : void 0;\n break;\n }\n }\n }\n } // $FlowFixMe[prop-missing]\n\n\n var fnValues = styleRule[fnValuesNs]; // If we have a fn values map, it is a rule with function values.\n\n if (fnValues) {\n for (var _prop in fnValues) {\n styleRule.prop(_prop, fnValues[_prop](data), options);\n }\n }\n }\n };\n};\n\nexport default functionPlugin;\n","import { supportedKeyframes, supportedValue, supportedProperty } from 'css-vendor';\nimport { toCssValue } from 'jss';\n\n/**\n * Add vendor prefix to a property name when needed.\n *\n * @api public\n */\n\nfunction jssVendorPrefixer() {\n function onProcessRule(rule) {\n if (rule.type === 'keyframes') {\n var atRule = rule;\n atRule.at = supportedKeyframes(atRule.at);\n }\n }\n\n function prefixStyle(style) {\n for (var prop in style) {\n var value = style[prop];\n\n if (prop === 'fallbacks' && Array.isArray(value)) {\n style[prop] = value.map(prefixStyle);\n continue;\n }\n\n var changeProp = false;\n var supportedProp = supportedProperty(prop);\n if (supportedProp && supportedProp !== prop) changeProp = true;\n var changeValue = false;\n var supportedValue$1 = supportedValue(supportedProp, toCssValue(value));\n if (supportedValue$1 && supportedValue$1 !== value) changeValue = true;\n\n if (changeProp || changeValue) {\n if (changeProp) delete style[prop];\n style[supportedProp || prop] = supportedValue$1 || value;\n }\n }\n\n return style;\n }\n\n function onProcessStyle(style, rule) {\n if (rule.type !== 'style') return style;\n return prefixStyle(style);\n }\n\n function onChangeValue(value, prop) {\n return supportedValue(prop, toCssValue(value)) || value;\n }\n\n return {\n onProcessRule: onProcessRule,\n onProcessStyle: onProcessStyle,\n onChangeValue: onChangeValue\n };\n}\n\nexport default jssVendorPrefixer;\n","import _extends from '@babel/runtime/helpers/esm/extends';\nimport isInBrowser from 'is-in-browser';\nimport warning from 'tiny-warning';\nimport _createClass from '@babel/runtime/helpers/esm/createClass';\nimport _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';\nimport _assertThisInitialized from '@babel/runtime/helpers/esm/assertThisInitialized';\nimport _objectWithoutPropertiesLoose from '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';\n\nvar plainObjectConstrurctor = {}.constructor;\nfunction cloneStyle(style) {\n if (style == null || typeof style !== 'object') return style;\n if (Array.isArray(style)) return style.map(cloneStyle);\n if (style.constructor !== plainObjectConstrurctor) return style;\n var newStyle = {};\n\n for (var name in style) {\n newStyle[name] = cloneStyle(style[name]);\n }\n\n return newStyle;\n}\n\n/**\n * Create a rule instance.\n */\n\nfunction createRule(name, decl, options) {\n if (name === void 0) {\n name = 'unnamed';\n }\n\n var jss = options.jss;\n var declCopy = cloneStyle(decl);\n var rule = jss.plugins.onCreateRule(name, declCopy, options);\n if (rule) return rule; // It is an at-rule and it has no instance.\n\n if (name[0] === '@') {\n process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] Unknown rule \" + name) : void 0;\n }\n\n return null;\n}\n\nvar join = function join(value, by) {\n var result = '';\n\n for (var i = 0; i < value.length; i++) {\n // Remove !important from the value, it will be readded later.\n if (value[i] === '!important') break;\n if (result) result += by;\n result += value[i];\n }\n\n return result;\n};\n\n/**\n * Converts array values to string.\n *\n * `margin: [['5px', '10px']]` > `margin: 5px 10px;`\n * `border: ['1px', '2px']` > `border: 1px, 2px;`\n * `margin: [['5px', '10px'], '!important']` > `margin: 5px 10px !important;`\n * `color: ['red', !important]` > `color: red !important;`\n */\nvar toCssValue = function toCssValue(value, ignoreImportant) {\n if (ignoreImportant === void 0) {\n ignoreImportant = false;\n }\n\n if (!Array.isArray(value)) return value;\n var cssValue = ''; // Support space separated values via `[['5px', '10px']]`.\n\n if (Array.isArray(value[0])) {\n for (var i = 0; i < value.length; i++) {\n if (value[i] === '!important') break;\n if (cssValue) cssValue += ', ';\n cssValue += join(value[i], ' ');\n }\n } else cssValue = join(value, ', '); // Add !important, because it was ignored.\n\n\n if (!ignoreImportant && value[value.length - 1] === '!important') {\n cssValue += ' !important';\n }\n\n return cssValue;\n};\n\n/**\n * Indent a string.\n * http://jsperf.com/array-join-vs-for\n */\nfunction indentStr(str, indent) {\n var result = '';\n\n for (var index = 0; index < indent; index++) {\n result += ' ';\n }\n\n return result + str;\n}\n/**\n * Converts a Rule to CSS string.\n */\n\n\nfunction toCss(selector, style, options) {\n if (options === void 0) {\n options = {};\n }\n\n var result = '';\n if (!style) return result;\n var _options = options,\n _options$indent = _options.indent,\n indent = _options$indent === void 0 ? 0 : _options$indent;\n var fallbacks = style.fallbacks;\n if (selector) indent++; // Apply fallbacks first.\n\n if (fallbacks) {\n // Array syntax {fallbacks: [{prop: value}]}\n if (Array.isArray(fallbacks)) {\n for (var index = 0; index < fallbacks.length; index++) {\n var fallback = fallbacks[index];\n\n for (var prop in fallback) {\n var value = fallback[prop];\n\n if (value != null) {\n if (result) result += '\\n';\n result += indentStr(prop + \": \" + toCssValue(value) + \";\", indent);\n }\n }\n }\n } else {\n // Object syntax {fallbacks: {prop: value}}\n for (var _prop in fallbacks) {\n var _value = fallbacks[_prop];\n\n if (_value != null) {\n if (result) result += '\\n';\n result += indentStr(_prop + \": \" + toCssValue(_value) + \";\", indent);\n }\n }\n }\n }\n\n for (var _prop2 in style) {\n var _value2 = style[_prop2];\n\n if (_value2 != null && _prop2 !== 'fallbacks') {\n if (result) result += '\\n';\n result += indentStr(_prop2 + \": \" + toCssValue(_value2) + \";\", indent);\n }\n } // Allow empty style in this case, because properties will be added dynamically.\n\n\n if (!result && !options.allowEmpty) return result; // When rule is being stringified before selector was defined.\n\n if (!selector) return result;\n indent--;\n if (result) result = \"\\n\" + result + \"\\n\";\n return indentStr(selector + \" {\" + result, indent) + indentStr('}', indent);\n}\n\nvar escapeRegex = /([[\\].#*$><+~=|^:(),\"'`\\s])/g;\nvar nativeEscape = typeof CSS !== 'undefined' && CSS.escape;\nvar escape = (function (str) {\n return nativeEscape ? nativeEscape(str) : str.replace(escapeRegex, '\\\\$1');\n});\n\nvar BaseStyleRule =\n/*#__PURE__*/\nfunction () {\n function BaseStyleRule(key, style, options) {\n this.type = 'style';\n this.key = void 0;\n this.isProcessed = false;\n this.style = void 0;\n this.renderer = void 0;\n this.renderable = void 0;\n this.options = void 0;\n var sheet = options.sheet,\n Renderer = options.Renderer;\n this.key = key;\n this.options = options;\n this.style = style;\n if (sheet) this.renderer = sheet.renderer;else if (Renderer) this.renderer = new Renderer();\n }\n /**\n * Get or set a style property.\n */\n\n\n var _proto = BaseStyleRule.prototype;\n\n _proto.prop = function prop(name, value, options) {\n // It's a getter.\n if (value === undefined) return this.style[name]; // Don't do anything if the value has not changed.\n\n var force = options ? options.force : false;\n if (!force && this.style[name] === value) return this;\n var newValue = value;\n\n if (!options || options.process !== false) {\n newValue = this.options.jss.plugins.onChangeValue(value, name, this);\n }\n\n var isEmpty = newValue == null || newValue === false;\n var isDefined = name in this.style; // Value is empty and wasn't defined before.\n\n if (isEmpty && !isDefined && !force) return this; // We are going to remove this value.\n\n var remove = isEmpty && isDefined;\n if (remove) delete this.style[name];else this.style[name] = newValue; // Renderable is defined if StyleSheet option `link` is true.\n\n if (this.renderable && this.renderer) {\n if (remove) this.renderer.removeProperty(this.renderable, name);else this.renderer.setProperty(this.renderable, name, newValue);\n return this;\n }\n\n var sheet = this.options.sheet;\n\n if (sheet && sheet.attached) {\n process.env.NODE_ENV !== \"production\" ? warning(false, '[JSS] Rule is not linked. Missing sheet option \"link: true\".') : void 0;\n }\n\n return this;\n };\n\n return BaseStyleRule;\n}();\nvar StyleRule =\n/*#__PURE__*/\nfunction (_BaseStyleRule) {\n _inheritsLoose(StyleRule, _BaseStyleRule);\n\n function StyleRule(key, style, options) {\n var _this;\n\n _this = _BaseStyleRule.call(this, key, style, options) || this;\n _this.selectorText = void 0;\n _this.id = void 0;\n _this.renderable = void 0;\n var selector = options.selector,\n scoped = options.scoped,\n sheet = options.sheet,\n generateId = options.generateId;\n\n if (selector) {\n _this.selectorText = selector;\n } else if (scoped !== false) {\n _this.id = generateId(_assertThisInitialized(_assertThisInitialized(_this)), sheet);\n _this.selectorText = \".\" + escape(_this.id);\n }\n\n return _this;\n }\n /**\n * Set selector string.\n * Attention: use this with caution. Most browsers didn't implement\n * selectorText setter, so this may result in rerendering of entire Style Sheet.\n */\n\n\n var _proto2 = StyleRule.prototype;\n\n /**\n * Apply rule to an element inline.\n */\n _proto2.applyTo = function applyTo(renderable) {\n var renderer = this.renderer;\n\n if (renderer) {\n var json = this.toJSON();\n\n for (var prop in json) {\n renderer.setProperty(renderable, prop, json[prop]);\n }\n }\n\n return this;\n }\n /**\n * Returns JSON representation of the rule.\n * Fallbacks are not supported.\n * Useful for inline styles.\n */\n ;\n\n _proto2.toJSON = function toJSON() {\n var json = {};\n\n for (var prop in this.style) {\n var value = this.style[prop];\n if (typeof value !== 'object') json[prop] = value;else if (Array.isArray(value)) json[prop] = toCssValue(value);\n }\n\n return json;\n }\n /**\n * Generates a CSS string.\n */\n ;\n\n _proto2.toString = function toString(options) {\n var sheet = this.options.sheet;\n var link = sheet ? sheet.options.link : false;\n var opts = link ? _extends({}, options, {\n allowEmpty: true\n }) : options;\n return toCss(this.selectorText, this.style, opts);\n };\n\n _createClass(StyleRule, [{\n key: \"selector\",\n set: function set(selector) {\n if (selector === this.selectorText) return;\n this.selectorText = selector;\n var renderer = this.renderer,\n renderable = this.renderable;\n if (!renderable || !renderer) return;\n var hasChanged = renderer.setSelector(renderable, selector); // If selector setter is not implemented, rerender the rule.\n\n if (!hasChanged) {\n renderer.replaceRule(renderable, this);\n }\n }\n /**\n * Get selector string.\n */\n ,\n get: function get() {\n return this.selectorText;\n }\n }]);\n\n return StyleRule;\n}(BaseStyleRule);\nvar pluginStyleRule = {\n onCreateRule: function onCreateRule(name, style, options) {\n if (name[0] === '@' || options.parent && options.parent.type === 'keyframes') {\n return null;\n }\n\n return new StyleRule(name, style, options);\n }\n};\n\nvar defaultToStringOptions = {\n indent: 1,\n children: true\n};\nvar atRegExp = /@([\\w-]+)/;\n/**\n * Conditional rule for @media, @supports\n */\n\nvar ConditionalRule =\n/*#__PURE__*/\nfunction () {\n function ConditionalRule(key, styles, options) {\n this.type = 'conditional';\n this.at = void 0;\n this.key = void 0;\n this.query = void 0;\n this.rules = void 0;\n this.options = void 0;\n this.isProcessed = false;\n this.renderable = void 0;\n this.key = key;\n var atMatch = key.match(atRegExp);\n this.at = atMatch ? atMatch[1] : 'unknown'; // Key might contain a unique suffix in case the `name` passed by user was duplicate.\n\n this.query = options.name || \"@\" + this.at;\n this.options = options;\n this.rules = new RuleList(_extends({}, options, {\n parent: this\n }));\n\n for (var name in styles) {\n this.rules.add(name, styles[name]);\n }\n\n this.rules.process();\n }\n /**\n * Get a rule.\n */\n\n\n var _proto = ConditionalRule.prototype;\n\n _proto.getRule = function getRule(name) {\n return this.rules.get(name);\n }\n /**\n * Get index of a rule.\n */\n ;\n\n _proto.indexOf = function indexOf(rule) {\n return this.rules.indexOf(rule);\n }\n /**\n * Create and register rule, run plugins.\n */\n ;\n\n _proto.addRule = function addRule(name, style, options) {\n var rule = this.rules.add(name, style, options);\n if (!rule) return null;\n this.options.jss.plugins.onProcessRule(rule);\n return rule;\n }\n /**\n * Generates a CSS string.\n */\n ;\n\n _proto.toString = function toString(options) {\n if (options === void 0) {\n options = defaultToStringOptions;\n }\n\n if (options.indent == null) options.indent = defaultToStringOptions.indent;\n if (options.children == null) options.children = defaultToStringOptions.children;\n\n if (options.children === false) {\n return this.query + \" {}\";\n }\n\n var children = this.rules.toString(options);\n return children ? this.query + \" {\\n\" + children + \"\\n}\" : '';\n };\n\n return ConditionalRule;\n}();\nvar keyRegExp = /@media|@supports\\s+/;\nvar pluginConditionalRule = {\n onCreateRule: function onCreateRule(key, styles, options) {\n return keyRegExp.test(key) ? new ConditionalRule(key, styles, options) : null;\n }\n};\n\nvar defaultToStringOptions$1 = {\n indent: 1,\n children: true\n};\nvar nameRegExp = /@keyframes\\s+([\\w-]+)/;\n/**\n * Rule for @keyframes\n */\n\nvar KeyframesRule =\n/*#__PURE__*/\nfunction () {\n function KeyframesRule(key, frames, options) {\n this.type = 'keyframes';\n this.at = '@keyframes';\n this.key = void 0;\n this.name = void 0;\n this.id = void 0;\n this.rules = void 0;\n this.options = void 0;\n this.isProcessed = false;\n this.renderable = void 0;\n var nameMatch = key.match(nameRegExp);\n\n if (nameMatch && nameMatch[1]) {\n this.name = nameMatch[1];\n } else {\n this.name = 'noname';\n process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] Bad keyframes name \" + key) : void 0;\n }\n\n this.key = this.type + \"-\" + this.name;\n this.options = options;\n var scoped = options.scoped,\n sheet = options.sheet,\n generateId = options.generateId;\n this.id = scoped === false ? this.name : escape(generateId(this, sheet));\n this.rules = new RuleList(_extends({}, options, {\n parent: this\n }));\n\n for (var name in frames) {\n this.rules.add(name, frames[name], _extends({}, options, {\n parent: this\n }));\n }\n\n this.rules.process();\n }\n /**\n * Generates a CSS string.\n */\n\n\n var _proto = KeyframesRule.prototype;\n\n _proto.toString = function toString(options) {\n if (options === void 0) {\n options = defaultToStringOptions$1;\n }\n\n if (options.indent == null) options.indent = defaultToStringOptions$1.indent;\n if (options.children == null) options.children = defaultToStringOptions$1.children;\n\n if (options.children === false) {\n return this.at + \" \" + this.id + \" {}\";\n }\n\n var children = this.rules.toString(options);\n if (children) children = \"\\n\" + children + \"\\n\";\n return this.at + \" \" + this.id + \" {\" + children + \"}\";\n };\n\n return KeyframesRule;\n}();\nvar keyRegExp$1 = /@keyframes\\s+/;\nvar refRegExp = /\\$([\\w-]+)/g;\n\nvar findReferencedKeyframe = function findReferencedKeyframe(val, keyframes) {\n if (typeof val === 'string') {\n return val.replace(refRegExp, function (match, name) {\n if (name in keyframes) {\n return keyframes[name];\n }\n\n process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] Referenced keyframes rule \\\"\" + name + \"\\\" is not defined.\") : void 0;\n return match;\n });\n }\n\n return val;\n};\n/**\n * Replace the reference for a animation name.\n */\n\n\nvar replaceRef = function replaceRef(style, prop, keyframes) {\n var value = style[prop];\n var refKeyframe = findReferencedKeyframe(value, keyframes);\n\n if (refKeyframe !== value) {\n style[prop] = refKeyframe;\n }\n};\n\nvar plugin = {\n onCreateRule: function onCreateRule(key, frames, options) {\n return typeof key === 'string' && keyRegExp$1.test(key) ? new KeyframesRule(key, frames, options) : null;\n },\n // Animation name ref replacer.\n onProcessStyle: function onProcessStyle(style, rule, sheet) {\n if (rule.type !== 'style' || !sheet) return style;\n if ('animation-name' in style) replaceRef(style, 'animation-name', sheet.keyframes);\n if ('animation' in style) replaceRef(style, 'animation', sheet.keyframes);\n return style;\n },\n onChangeValue: function onChangeValue(val, prop, rule) {\n var sheet = rule.options.sheet;\n\n if (!sheet) {\n return val;\n }\n\n switch (prop) {\n case 'animation':\n return findReferencedKeyframe(val, sheet.keyframes);\n\n case 'animation-name':\n return findReferencedKeyframe(val, sheet.keyframes);\n\n default:\n return val;\n }\n }\n};\n\nvar KeyframeRule =\n/*#__PURE__*/\nfunction (_BaseStyleRule) {\n _inheritsLoose(KeyframeRule, _BaseStyleRule);\n\n function KeyframeRule() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _BaseStyleRule.call.apply(_BaseStyleRule, [this].concat(args)) || this;\n _this.renderable = void 0;\n return _this;\n }\n\n var _proto = KeyframeRule.prototype;\n\n /**\n * Generates a CSS string.\n */\n _proto.toString = function toString(options) {\n var sheet = this.options.sheet;\n var link = sheet ? sheet.options.link : false;\n var opts = link ? _extends({}, options, {\n allowEmpty: true\n }) : options;\n return toCss(this.key, this.style, opts);\n };\n\n return KeyframeRule;\n}(BaseStyleRule);\nvar pluginKeyframeRule = {\n onCreateRule: function onCreateRule(key, style, options) {\n if (options.parent && options.parent.type === 'keyframes') {\n return new KeyframeRule(key, style, options);\n }\n\n return null;\n }\n};\n\nvar FontFaceRule =\n/*#__PURE__*/\nfunction () {\n function FontFaceRule(key, style, options) {\n this.type = 'font-face';\n this.at = '@font-face';\n this.key = void 0;\n this.style = void 0;\n this.options = void 0;\n this.isProcessed = false;\n this.renderable = void 0;\n this.key = key;\n this.style = style;\n this.options = options;\n }\n /**\n * Generates a CSS string.\n */\n\n\n var _proto = FontFaceRule.prototype;\n\n _proto.toString = function toString(options) {\n if (Array.isArray(this.style)) {\n var str = '';\n\n for (var index = 0; index < this.style.length; index++) {\n str += toCss(this.at, this.style[index]);\n if (this.style[index + 1]) str += '\\n';\n }\n\n return str;\n }\n\n return toCss(this.at, this.style, options);\n };\n\n return FontFaceRule;\n}();\nvar keyRegExp$2 = /@font-face/;\nvar pluginFontFaceRule = {\n onCreateRule: function onCreateRule(key, style, options) {\n return keyRegExp$2.test(key) ? new FontFaceRule(key, style, options) : null;\n }\n};\n\nvar ViewportRule =\n/*#__PURE__*/\nfunction () {\n function ViewportRule(key, style, options) {\n this.type = 'viewport';\n this.at = '@viewport';\n this.key = void 0;\n this.style = void 0;\n this.options = void 0;\n this.isProcessed = false;\n this.renderable = void 0;\n this.key = key;\n this.style = style;\n this.options = options;\n }\n /**\n * Generates a CSS string.\n */\n\n\n var _proto = ViewportRule.prototype;\n\n _proto.toString = function toString(options) {\n return toCss(this.key, this.style, options);\n };\n\n return ViewportRule;\n}();\nvar pluginViewportRule = {\n onCreateRule: function onCreateRule(key, style, options) {\n return key === '@viewport' || key === '@-ms-viewport' ? new ViewportRule(key, style, options) : null;\n }\n};\n\nvar SimpleRule =\n/*#__PURE__*/\nfunction () {\n function SimpleRule(key, value, options) {\n this.type = 'simple';\n this.key = void 0;\n this.value = void 0;\n this.options = void 0;\n this.isProcessed = false;\n this.renderable = void 0;\n this.key = key;\n this.value = value;\n this.options = options;\n }\n /**\n * Generates a CSS string.\n */\n // eslint-disable-next-line no-unused-vars\n\n\n var _proto = SimpleRule.prototype;\n\n _proto.toString = function toString(options) {\n if (Array.isArray(this.value)) {\n var str = '';\n\n for (var index = 0; index < this.value.length; index++) {\n str += this.key + \" \" + this.value[index] + \";\";\n if (this.value[index + 1]) str += '\\n';\n }\n\n return str;\n }\n\n return this.key + \" \" + this.value + \";\";\n };\n\n return SimpleRule;\n}();\nvar keysMap = {\n '@charset': true,\n '@import': true,\n '@namespace': true\n};\nvar pluginSimpleRule = {\n onCreateRule: function onCreateRule(key, value, options) {\n return key in keysMap ? new SimpleRule(key, value, options) : null;\n }\n};\n\nvar plugins = [pluginStyleRule, pluginConditionalRule, plugin, pluginKeyframeRule, pluginFontFaceRule, pluginViewportRule, pluginSimpleRule];\n\nvar defaultUpdateOptions = {\n process: true\n};\nvar forceUpdateOptions = {\n force: true,\n process: true\n /**\n * Contains rules objects and allows adding/removing etc.\n * Is used for e.g. by `StyleSheet` or `ConditionalRule`.\n */\n\n};\n\nvar RuleList =\n/*#__PURE__*/\nfunction () {\n // Rules registry for access by .get() method.\n // It contains the same rule registered by name and by selector.\n // Original styles object.\n // Used to ensure correct rules order.\n function RuleList(options) {\n this.map = {};\n this.raw = {};\n this.index = [];\n this.counter = 0;\n this.options = void 0;\n this.classes = void 0;\n this.keyframes = void 0;\n this.options = options;\n this.classes = options.classes;\n this.keyframes = options.keyframes;\n }\n /**\n * Create and register rule.\n *\n * Will not render after Style Sheet was rendered the first time.\n */\n\n\n var _proto = RuleList.prototype;\n\n _proto.add = function add(name, decl, ruleOptions) {\n var _this$options = this.options,\n parent = _this$options.parent,\n sheet = _this$options.sheet,\n jss = _this$options.jss,\n Renderer = _this$options.Renderer,\n generateId = _this$options.generateId,\n scoped = _this$options.scoped;\n\n var options = _extends({\n classes: this.classes,\n parent: parent,\n sheet: sheet,\n jss: jss,\n Renderer: Renderer,\n generateId: generateId,\n scoped: scoped,\n name: name,\n keyframes: this.keyframes,\n selector: undefined\n }, ruleOptions); // When user uses .createStyleSheet(), duplicate names are not possible, but\n // `sheet.addRule()` opens the door for any duplicate rule name. When this happens\n // we need to make the key unique within this RuleList instance scope.\n\n\n var key = name;\n\n if (name in this.raw) {\n key = name + \"-d\" + this.counter++;\n } // We need to save the original decl before creating the rule\n // because cache plugin needs to use it as a key to return a cached rule.\n\n\n this.raw[key] = decl;\n\n if (key in this.classes) {\n // E.g. rules inside of @media container\n options.selector = \".\" + escape(this.classes[key]);\n }\n\n var rule = createRule(key, decl, options);\n if (!rule) return null;\n this.register(rule);\n var index = options.index === undefined ? this.index.length : options.index;\n this.index.splice(index, 0, rule);\n return rule;\n }\n /**\n * Get a rule.\n */\n ;\n\n _proto.get = function get(name) {\n return this.map[name];\n }\n /**\n * Delete a rule.\n */\n ;\n\n _proto.remove = function remove(rule) {\n this.unregister(rule);\n delete this.raw[rule.key];\n this.index.splice(this.index.indexOf(rule), 1);\n }\n /**\n * Get index of a rule.\n */\n ;\n\n _proto.indexOf = function indexOf(rule) {\n return this.index.indexOf(rule);\n }\n /**\n * Run `onProcessRule()` plugins on every rule.\n */\n ;\n\n _proto.process = function process() {\n var plugins = this.options.jss.plugins; // We need to clone array because if we modify the index somewhere else during a loop\n // we end up with very hard-to-track-down side effects.\n\n this.index.slice(0).forEach(plugins.onProcessRule, plugins);\n }\n /**\n * Register a rule in `.map`, `.classes` and `.keyframes` maps.\n */\n ;\n\n _proto.register = function register(rule) {\n this.map[rule.key] = rule;\n\n if (rule instanceof StyleRule) {\n this.map[rule.selector] = rule;\n if (rule.id) this.classes[rule.key] = rule.id;\n } else if (rule instanceof KeyframesRule && this.keyframes) {\n this.keyframes[rule.name] = rule.id;\n }\n }\n /**\n * Unregister a rule.\n */\n ;\n\n _proto.unregister = function unregister(rule) {\n delete this.map[rule.key];\n\n if (rule instanceof StyleRule) {\n delete this.map[rule.selector];\n delete this.classes[rule.key];\n } else if (rule instanceof KeyframesRule) {\n delete this.keyframes[rule.name];\n }\n }\n /**\n * Update the function values with a new data.\n */\n ;\n\n _proto.update = function update() {\n var name;\n var data;\n var options;\n\n if (typeof (arguments.length <= 0 ? undefined : arguments[0]) === 'string') {\n name = arguments.length <= 0 ? undefined : arguments[0]; // $FlowFixMe[invalid-tuple-index]\n\n data = arguments.length <= 1 ? undefined : arguments[1]; // $FlowFixMe[invalid-tuple-index]\n\n options = arguments.length <= 2 ? undefined : arguments[2];\n } else {\n data = arguments.length <= 0 ? undefined : arguments[0]; // $FlowFixMe[invalid-tuple-index]\n\n options = arguments.length <= 1 ? undefined : arguments[1];\n name = null;\n }\n\n if (name) {\n this.updateOne(this.map[name], data, options);\n } else {\n for (var index = 0; index < this.index.length; index++) {\n this.updateOne(this.index[index], data, options);\n }\n }\n }\n /**\n * Execute plugins, update rule props.\n */\n ;\n\n _proto.updateOne = function updateOne(rule, data, options) {\n if (options === void 0) {\n options = defaultUpdateOptions;\n }\n\n var _this$options2 = this.options,\n plugins = _this$options2.jss.plugins,\n sheet = _this$options2.sheet; // It is a rules container like for e.g. ConditionalRule.\n\n if (rule.rules instanceof RuleList) {\n rule.rules.update(data, options);\n return;\n }\n\n var styleRule = rule;\n var style = styleRule.style;\n plugins.onUpdate(data, rule, sheet, options); // We rely on a new `style` ref in case it was mutated during onUpdate hook.\n\n if (options.process && style && style !== styleRule.style) {\n // We need to run the plugins in case new `style` relies on syntax plugins.\n plugins.onProcessStyle(styleRule.style, styleRule, sheet); // Update and add props.\n\n for (var prop in styleRule.style) {\n var nextValue = styleRule.style[prop];\n var prevValue = style[prop]; // We need to use `force: true` because `rule.style` has been updated during onUpdate hook, so `rule.prop()` will not update the CSSOM rule.\n // We do this comparison to avoid unneeded `rule.prop()` calls, since we have the old `style` object here.\n\n if (nextValue !== prevValue) {\n styleRule.prop(prop, nextValue, forceUpdateOptions);\n }\n } // Remove props.\n\n\n for (var _prop in style) {\n var _nextValue = styleRule.style[_prop];\n var _prevValue = style[_prop]; // We need to use `force: true` because `rule.style` has been updated during onUpdate hook, so `rule.prop()` will not update the CSSOM rule.\n // We do this comparison to avoid unneeded `rule.prop()` calls, since we have the old `style` object here.\n\n if (_nextValue == null && _nextValue !== _prevValue) {\n styleRule.prop(_prop, null, forceUpdateOptions);\n }\n }\n }\n }\n /**\n * Convert rules to a CSS string.\n */\n ;\n\n _proto.toString = function toString(options) {\n var str = '';\n var sheet = this.options.sheet;\n var link = sheet ? sheet.options.link : false;\n\n for (var index = 0; index < this.index.length; index++) {\n var rule = this.index[index];\n var css = rule.toString(options); // No need to render an empty rule.\n\n if (!css && !link) continue;\n if (str) str += '\\n';\n str += css;\n }\n\n return str;\n };\n\n return RuleList;\n}();\n\nvar StyleSheet =\n/*#__PURE__*/\nfunction () {\n function StyleSheet(styles, options) {\n this.options = void 0;\n this.deployed = void 0;\n this.attached = void 0;\n this.rules = void 0;\n this.renderer = void 0;\n this.classes = void 0;\n this.keyframes = void 0;\n this.queue = void 0;\n this.attached = false;\n this.deployed = false;\n this.classes = {};\n this.keyframes = {};\n this.options = _extends({}, options, {\n sheet: this,\n parent: this,\n classes: this.classes,\n keyframes: this.keyframes\n });\n\n if (options.Renderer) {\n this.renderer = new options.Renderer(this);\n }\n\n this.rules = new RuleList(this.options);\n\n for (var name in styles) {\n this.rules.add(name, styles[name]);\n }\n\n this.rules.process();\n }\n /**\n * Attach renderable to the render tree.\n */\n\n\n var _proto = StyleSheet.prototype;\n\n _proto.attach = function attach() {\n if (this.attached) return this;\n if (this.renderer) this.renderer.attach();\n this.attached = true; // Order is important, because we can't use insertRule API if style element is not attached.\n\n if (!this.deployed) this.deploy();\n return this;\n }\n /**\n * Remove renderable from render tree.\n */\n ;\n\n _proto.detach = function detach() {\n if (!this.attached) return this;\n if (this.renderer) this.renderer.detach();\n this.attached = false;\n return this;\n }\n /**\n * Add a rule to the current stylesheet.\n * Will insert a rule also after the stylesheet has been rendered first time.\n */\n ;\n\n _proto.addRule = function addRule(name, decl, options) {\n var queue = this.queue; // Plugins can create rules.\n // In order to preserve the right order, we need to queue all `.addRule` calls,\n // which happen after the first `rules.add()` call.\n\n if (this.attached && !queue) this.queue = [];\n var rule = this.rules.add(name, decl, options);\n if (!rule) return null;\n this.options.jss.plugins.onProcessRule(rule);\n\n if (this.attached) {\n if (!this.deployed) return rule; // Don't insert rule directly if there is no stringified version yet.\n // It will be inserted all together when .attach is called.\n\n if (queue) queue.push(rule);else {\n this.insertRule(rule);\n\n if (this.queue) {\n this.queue.forEach(this.insertRule, this);\n this.queue = undefined;\n }\n }\n return rule;\n } // We can't add rules to a detached style node.\n // We will redeploy the sheet once user will attach it.\n\n\n this.deployed = false;\n return rule;\n }\n /**\n * Insert rule into the StyleSheet\n */\n ;\n\n _proto.insertRule = function insertRule(rule) {\n if (this.renderer) {\n this.renderer.insertRule(rule);\n }\n }\n /**\n * Create and add rules.\n * Will render also after Style Sheet was rendered the first time.\n */\n ;\n\n _proto.addRules = function addRules(styles, options) {\n var added = [];\n\n for (var name in styles) {\n var rule = this.addRule(name, styles[name], options);\n if (rule) added.push(rule);\n }\n\n return added;\n }\n /**\n * Get a rule by name.\n */\n ;\n\n _proto.getRule = function getRule(name) {\n return this.rules.get(name);\n }\n /**\n * Delete a rule by name.\n * Returns `true`: if rule has been deleted from the DOM.\n */\n ;\n\n _proto.deleteRule = function deleteRule(name) {\n var rule = typeof name === 'object' ? name : this.rules.get(name);\n\n if (!rule || // Style sheet was created without link: true and attached, in this case we\n // won't be able to remove the CSS rule from the DOM.\n this.attached && !rule.renderable) {\n return false;\n }\n\n this.rules.remove(rule);\n\n if (this.attached && rule.renderable && this.renderer) {\n return this.renderer.deleteRule(rule.renderable);\n }\n\n return true;\n }\n /**\n * Get index of a rule.\n */\n ;\n\n _proto.indexOf = function indexOf(rule) {\n return this.rules.indexOf(rule);\n }\n /**\n * Deploy pure CSS string to a renderable.\n */\n ;\n\n _proto.deploy = function deploy() {\n if (this.renderer) this.renderer.deploy();\n this.deployed = true;\n return this;\n }\n /**\n * Update the function values with a new data.\n */\n ;\n\n _proto.update = function update() {\n var _this$rules;\n\n (_this$rules = this.rules).update.apply(_this$rules, arguments);\n\n return this;\n }\n /**\n * Updates a single rule.\n */\n ;\n\n _proto.updateOne = function updateOne(rule, data, options) {\n this.rules.updateOne(rule, data, options);\n return this;\n }\n /**\n * Convert rules to a CSS string.\n */\n ;\n\n _proto.toString = function toString(options) {\n return this.rules.toString(options);\n };\n\n return StyleSheet;\n}();\n\nvar PluginsRegistry =\n/*#__PURE__*/\nfunction () {\n function PluginsRegistry() {\n this.plugins = {\n internal: [],\n external: []\n };\n this.registry = void 0;\n }\n\n var _proto = PluginsRegistry.prototype;\n\n /**\n * Call `onCreateRule` hooks and return an object if returned by a hook.\n */\n _proto.onCreateRule = function onCreateRule(name, decl, options) {\n for (var i = 0; i < this.registry.onCreateRule.length; i++) {\n var rule = this.registry.onCreateRule[i](name, decl, options);\n if (rule) return rule;\n }\n\n return null;\n }\n /**\n * Call `onProcessRule` hooks.\n */\n ;\n\n _proto.onProcessRule = function onProcessRule(rule) {\n if (rule.isProcessed) return;\n var sheet = rule.options.sheet;\n\n for (var i = 0; i < this.registry.onProcessRule.length; i++) {\n this.registry.onProcessRule[i](rule, sheet);\n }\n\n if (rule.style) this.onProcessStyle(rule.style, rule, sheet);\n rule.isProcessed = true;\n }\n /**\n * Call `onProcessStyle` hooks.\n */\n ;\n\n _proto.onProcessStyle = function onProcessStyle(style, rule, sheet) {\n for (var i = 0; i < this.registry.onProcessStyle.length; i++) {\n // $FlowFixMe[prop-missing]\n rule.style = this.registry.onProcessStyle[i](rule.style, rule, sheet);\n }\n }\n /**\n * Call `onProcessSheet` hooks.\n */\n ;\n\n _proto.onProcessSheet = function onProcessSheet(sheet) {\n for (var i = 0; i < this.registry.onProcessSheet.length; i++) {\n this.registry.onProcessSheet[i](sheet);\n }\n }\n /**\n * Call `onUpdate` hooks.\n */\n ;\n\n _proto.onUpdate = function onUpdate(data, rule, sheet, options) {\n for (var i = 0; i < this.registry.onUpdate.length; i++) {\n this.registry.onUpdate[i](data, rule, sheet, options);\n }\n }\n /**\n * Call `onChangeValue` hooks.\n */\n ;\n\n _proto.onChangeValue = function onChangeValue(value, prop, rule) {\n var processedValue = value;\n\n for (var i = 0; i < this.registry.onChangeValue.length; i++) {\n processedValue = this.registry.onChangeValue[i](processedValue, prop, rule);\n }\n\n return processedValue;\n }\n /**\n * Register a plugin.\n */\n ;\n\n _proto.use = function use(newPlugin, options) {\n if (options === void 0) {\n options = {\n queue: 'external'\n };\n }\n\n var plugins = this.plugins[options.queue]; // Avoids applying same plugin twice, at least based on ref.\n\n if (plugins.indexOf(newPlugin) !== -1) {\n return;\n }\n\n plugins.push(newPlugin);\n this.registry = [].concat(this.plugins.external, this.plugins.internal).reduce(function (registry, plugin) {\n for (var name in plugin) {\n if (name in registry) {\n registry[name].push(plugin[name]);\n } else {\n process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] Unknown hook \\\"\" + name + \"\\\".\") : void 0;\n }\n }\n\n return registry;\n }, {\n onCreateRule: [],\n onProcessRule: [],\n onProcessStyle: [],\n onProcessSheet: [],\n onChangeValue: [],\n onUpdate: []\n });\n };\n\n return PluginsRegistry;\n}();\n\n/**\n * Sheets registry to access them all at one place.\n */\nvar SheetsRegistry =\n/*#__PURE__*/\nfunction () {\n function SheetsRegistry() {\n this.registry = [];\n }\n\n var _proto = SheetsRegistry.prototype;\n\n /**\n * Register a Style Sheet.\n */\n _proto.add = function add(sheet) {\n var registry = this.registry;\n var index = sheet.options.index;\n if (registry.indexOf(sheet) !== -1) return;\n\n if (registry.length === 0 || index >= this.index) {\n registry.push(sheet);\n return;\n } // Find a position.\n\n\n for (var i = 0; i < registry.length; i++) {\n if (registry[i].options.index > index) {\n registry.splice(i, 0, sheet);\n return;\n }\n }\n }\n /**\n * Reset the registry.\n */\n ;\n\n _proto.reset = function reset() {\n this.registry = [];\n }\n /**\n * Remove a Style Sheet.\n */\n ;\n\n _proto.remove = function remove(sheet) {\n var index = this.registry.indexOf(sheet);\n this.registry.splice(index, 1);\n }\n /**\n * Convert all attached sheets to a CSS string.\n */\n ;\n\n _proto.toString = function toString(_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n attached = _ref.attached,\n options = _objectWithoutPropertiesLoose(_ref, [\"attached\"]);\n\n var css = '';\n\n for (var i = 0; i < this.registry.length; i++) {\n var sheet = this.registry[i];\n\n if (attached != null && sheet.attached !== attached) {\n continue;\n }\n\n if (css) css += '\\n';\n css += sheet.toString(options);\n }\n\n return css;\n };\n\n _createClass(SheetsRegistry, [{\n key: \"index\",\n\n /**\n * Current highest index number.\n */\n get: function get() {\n return this.registry.length === 0 ? 0 : this.registry[this.registry.length - 1].options.index;\n }\n }]);\n\n return SheetsRegistry;\n}();\n\n/**\n * This is a global sheets registry. Only DomRenderer will add sheets to it.\n * On the server one should use an own SheetsRegistry instance and add the\n * sheets to it, because you need to make sure to create a new registry for\n * each request in order to not leak sheets across requests.\n */\n\nvar registry = new SheetsRegistry();\n\n/* eslint-disable */\n\n/**\n * Now that `globalThis` is available on most platforms\n * (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis#browser_compatibility)\n * we check for `globalThis` first. `globalThis` is necessary for jss\n * to run in Agoric's secure version of JavaScript (SES). Under SES,\n * `globalThis` exists, but `window`, `self`, and `Function('return\n * this')()` are all undefined for security reasons.\n *\n * https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\n */\nvar globalThis$1 = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' && window.Math === Math ? window : typeof self !== 'undefined' && self.Math === Math ? self : Function('return this')();\n\nvar ns = '2f1acc6c3a606b082e5eef5e54414ffb';\nif (globalThis$1[ns] == null) globalThis$1[ns] = 0; // Bundle may contain multiple JSS versions at the same time. In order to identify\n// the current version with just one short number and use it for classes generation\n// we use a counter. Also it is more accurate, because user can manually reevaluate\n// the module.\n\nvar moduleId = globalThis$1[ns]++;\n\nvar maxRules = 1e10;\n\n/**\n * Returns a function which generates unique class names based on counters.\n * When new generator function is created, rule counter is reseted.\n * We need to reset the rule counter for SSR for each request.\n */\nvar createGenerateId = function createGenerateId(options) {\n if (options === void 0) {\n options = {};\n }\n\n var ruleCounter = 0;\n\n var generateId = function generateId(rule, sheet) {\n ruleCounter += 1;\n\n if (ruleCounter > maxRules) {\n process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] You might have a memory leak. Rule counter is at \" + ruleCounter + \".\") : void 0;\n }\n\n var jssId = '';\n var prefix = '';\n\n if (sheet) {\n if (sheet.options.classNamePrefix) {\n prefix = sheet.options.classNamePrefix;\n }\n\n if (sheet.options.jss.id != null) {\n jssId = String(sheet.options.jss.id);\n }\n }\n\n if (options.minify) {\n // Using \"c\" because a number can't be the first char in a class name.\n return \"\" + (prefix || 'c') + moduleId + jssId + ruleCounter;\n }\n\n return prefix + rule.key + \"-\" + moduleId + (jssId ? \"-\" + jssId : '') + \"-\" + ruleCounter;\n };\n\n return generateId;\n};\n\n/**\n * Cache the value from the first time a function is called.\n */\nvar memoize = function memoize(fn) {\n var value;\n return function () {\n if (!value) value = fn();\n return value;\n };\n};\n\n/**\n * Get a style property value.\n */\nvar getPropertyValue = function getPropertyValue(cssRule, prop) {\n try {\n // Support CSSTOM.\n if (cssRule.attributeStyleMap) {\n return cssRule.attributeStyleMap.get(prop);\n }\n\n return cssRule.style.getPropertyValue(prop);\n } catch (err) {\n // IE may throw if property is unknown.\n return '';\n }\n};\n\n/**\n * Set a style property.\n */\nvar setProperty = function setProperty(cssRule, prop, value) {\n try {\n var cssValue = value;\n\n if (Array.isArray(value)) {\n cssValue = toCssValue(value, true);\n\n if (value[value.length - 1] === '!important') {\n cssRule.style.setProperty(prop, cssValue, 'important');\n return true;\n }\n } // Support CSSTOM.\n\n\n if (cssRule.attributeStyleMap) {\n cssRule.attributeStyleMap.set(prop, cssValue);\n } else {\n cssRule.style.setProperty(prop, cssValue);\n }\n } catch (err) {\n // IE may throw if property is unknown.\n return false;\n }\n\n return true;\n};\n\n/**\n * Remove a style property.\n */\nvar removeProperty = function removeProperty(cssRule, prop) {\n try {\n // Support CSSTOM.\n if (cssRule.attributeStyleMap) {\n cssRule.attributeStyleMap.delete(prop);\n } else {\n cssRule.style.removeProperty(prop);\n }\n } catch (err) {\n process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] DOMException \\\"\" + err.message + \"\\\" was thrown. Tried to remove property \\\"\" + prop + \"\\\".\") : void 0;\n }\n};\n\n/**\n * Set the selector.\n */\nvar setSelector = function setSelector(cssRule, selectorText) {\n cssRule.selectorText = selectorText; // Return false if setter was not successful.\n // Currently works in chrome only.\n\n return cssRule.selectorText === selectorText;\n};\n/**\n * Gets the `head` element upon the first call and caches it.\n * We assume it can't be null.\n */\n\n\nvar getHead = memoize(function () {\n return document.querySelector('head');\n});\n/**\n * Find attached sheet with an index higher than the passed one.\n */\n\nfunction findHigherSheet(registry, options) {\n for (var i = 0; i < registry.length; i++) {\n var sheet = registry[i];\n\n if (sheet.attached && sheet.options.index > options.index && sheet.options.insertionPoint === options.insertionPoint) {\n return sheet;\n }\n }\n\n return null;\n}\n/**\n * Find attached sheet with the highest index.\n */\n\n\nfunction findHighestSheet(registry, options) {\n for (var i = registry.length - 1; i >= 0; i--) {\n var sheet = registry[i];\n\n if (sheet.attached && sheet.options.insertionPoint === options.insertionPoint) {\n return sheet;\n }\n }\n\n return null;\n}\n/**\n * Find a comment with \"jss\" inside.\n */\n\n\nfunction findCommentNode(text) {\n var head = getHead();\n\n for (var i = 0; i < head.childNodes.length; i++) {\n var node = head.childNodes[i];\n\n if (node.nodeType === 8 && node.nodeValue.trim() === text) {\n return node;\n }\n }\n\n return null;\n}\n\n/**\n * Find a node before which we can insert the sheet.\n */\nfunction findPrevNode(options) {\n var registry$1 = registry.registry;\n\n if (registry$1.length > 0) {\n // Try to insert before the next higher sheet.\n var sheet = findHigherSheet(registry$1, options);\n\n if (sheet && sheet.renderer) {\n return {\n parent: sheet.renderer.element.parentNode,\n node: sheet.renderer.element\n };\n } // Otherwise insert after the last attached.\n\n\n sheet = findHighestSheet(registry$1, options);\n\n if (sheet && sheet.renderer) {\n return {\n parent: sheet.renderer.element.parentNode,\n node: sheet.renderer.element.nextSibling\n };\n }\n } // Try to find a comment placeholder if registry is empty.\n\n\n var insertionPoint = options.insertionPoint;\n\n if (insertionPoint && typeof insertionPoint === 'string') {\n var comment = findCommentNode(insertionPoint);\n\n if (comment) {\n return {\n parent: comment.parentNode,\n node: comment.nextSibling\n };\n } // If user specifies an insertion point and it can't be found in the document -\n // bad specificity issues may appear.\n\n\n process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] Insertion point \\\"\" + insertionPoint + \"\\\" not found.\") : void 0;\n }\n\n return false;\n}\n/**\n * Insert style element into the DOM.\n */\n\n\nfunction insertStyle(style, options) {\n var insertionPoint = options.insertionPoint;\n var nextNode = findPrevNode(options);\n\n if (nextNode !== false && nextNode.parent) {\n nextNode.parent.insertBefore(style, nextNode.node);\n return;\n } // Works with iframes and any node types.\n\n\n if (insertionPoint && typeof insertionPoint.nodeType === 'number') {\n // https://stackoverflow.com/questions/41328728/force-casting-in-flow\n var insertionPointElement = insertionPoint;\n var parentNode = insertionPointElement.parentNode;\n if (parentNode) parentNode.insertBefore(style, insertionPointElement.nextSibling);else process.env.NODE_ENV !== \"production\" ? warning(false, '[JSS] Insertion point is not in the DOM.') : void 0;\n return;\n }\n\n getHead().appendChild(style);\n}\n/**\n * Read jss nonce setting from the page if the user has set it.\n */\n\n\nvar getNonce = memoize(function () {\n var node = document.querySelector('meta[property=\"csp-nonce\"]');\n return node ? node.getAttribute('content') : null;\n});\n\nvar _insertRule = function insertRule(container, rule, index) {\n try {\n if ('insertRule' in container) {\n var c = container;\n c.insertRule(rule, index);\n } // Keyframes rule.\n else if ('appendRule' in container) {\n var _c = container;\n\n _c.appendRule(rule);\n }\n } catch (err) {\n process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] \" + err.message) : void 0;\n return false;\n }\n\n return container.cssRules[index];\n};\n\nvar getValidRuleInsertionIndex = function getValidRuleInsertionIndex(container, index) {\n var maxIndex = container.cssRules.length; // In case previous insertion fails, passed index might be wrong\n\n if (index === undefined || index > maxIndex) {\n // eslint-disable-next-line no-param-reassign\n return maxIndex;\n }\n\n return index;\n};\n\nvar createStyle = function createStyle() {\n var el = document.createElement('style'); // Without it, IE will have a broken source order specificity if we\n // insert rules after we insert the style tag.\n // It seems to kick-off the source order specificity algorithm.\n\n el.textContent = '\\n';\n return el;\n};\n\nvar DomRenderer =\n/*#__PURE__*/\nfunction () {\n // HTMLStyleElement needs fixing https://github.com/facebook/flow/issues/2696\n // Will be empty if link: true option is not set, because\n // it is only for use together with insertRule API.\n function DomRenderer(sheet) {\n this.getPropertyValue = getPropertyValue;\n this.setProperty = setProperty;\n this.removeProperty = removeProperty;\n this.setSelector = setSelector;\n this.element = void 0;\n this.sheet = void 0;\n this.hasInsertedRules = false;\n this.cssRules = [];\n // There is no sheet when the renderer is used from a standalone StyleRule.\n if (sheet) registry.add(sheet);\n this.sheet = sheet;\n\n var _ref = this.sheet ? this.sheet.options : {},\n media = _ref.media,\n meta = _ref.meta,\n element = _ref.element;\n\n this.element = element || createStyle();\n this.element.setAttribute('data-jss', '');\n if (media) this.element.setAttribute('media', media);\n if (meta) this.element.setAttribute('data-meta', meta);\n var nonce = getNonce();\n if (nonce) this.element.setAttribute('nonce', nonce);\n }\n /**\n * Insert style element into render tree.\n */\n\n\n var _proto = DomRenderer.prototype;\n\n _proto.attach = function attach() {\n // In the case the element node is external and it is already in the DOM.\n if (this.element.parentNode || !this.sheet) return;\n insertStyle(this.element, this.sheet.options); // When rules are inserted using `insertRule` API, after `sheet.detach().attach()`\n // most browsers create a new CSSStyleSheet, except of all IEs.\n\n var deployed = Boolean(this.sheet && this.sheet.deployed);\n\n if (this.hasInsertedRules && deployed) {\n this.hasInsertedRules = false;\n this.deploy();\n }\n }\n /**\n * Remove style element from render tree.\n */\n ;\n\n _proto.detach = function detach() {\n if (!this.sheet) return;\n var parentNode = this.element.parentNode;\n if (parentNode) parentNode.removeChild(this.element); // In the most browsers, rules inserted using insertRule() API will be lost when style element is removed.\n // Though IE will keep them and we need a consistent behavior.\n\n if (this.sheet.options.link) {\n this.cssRules = [];\n this.element.textContent = '\\n';\n }\n }\n /**\n * Inject CSS string into element.\n */\n ;\n\n _proto.deploy = function deploy() {\n var sheet = this.sheet;\n if (!sheet) return;\n\n if (sheet.options.link) {\n this.insertRules(sheet.rules);\n return;\n }\n\n this.element.textContent = \"\\n\" + sheet.toString() + \"\\n\";\n }\n /**\n * Insert RuleList into an element.\n */\n ;\n\n _proto.insertRules = function insertRules(rules, nativeParent) {\n for (var i = 0; i < rules.index.length; i++) {\n this.insertRule(rules.index[i], i, nativeParent);\n }\n }\n /**\n * Insert a rule into element.\n */\n ;\n\n _proto.insertRule = function insertRule(rule, index, nativeParent) {\n if (nativeParent === void 0) {\n nativeParent = this.element.sheet;\n }\n\n if (rule.rules) {\n var parent = rule;\n var latestNativeParent = nativeParent;\n\n if (rule.type === 'conditional' || rule.type === 'keyframes') {\n var _insertionIndex = getValidRuleInsertionIndex(nativeParent, index); // We need to render the container without children first.\n\n\n latestNativeParent = _insertRule(nativeParent, parent.toString({\n children: false\n }), _insertionIndex);\n\n if (latestNativeParent === false) {\n return false;\n }\n\n this.refCssRule(rule, _insertionIndex, latestNativeParent);\n }\n\n this.insertRules(parent.rules, latestNativeParent);\n return latestNativeParent;\n }\n\n var ruleStr = rule.toString();\n if (!ruleStr) return false;\n var insertionIndex = getValidRuleInsertionIndex(nativeParent, index);\n\n var nativeRule = _insertRule(nativeParent, ruleStr, insertionIndex);\n\n if (nativeRule === false) {\n return false;\n }\n\n this.hasInsertedRules = true;\n this.refCssRule(rule, insertionIndex, nativeRule);\n return nativeRule;\n };\n\n _proto.refCssRule = function refCssRule(rule, index, cssRule) {\n rule.renderable = cssRule; // We only want to reference the top level rules, deleteRule API doesn't support removing nested rules\n // like rules inside media queries or keyframes\n\n if (rule.options.parent instanceof StyleSheet) {\n this.cssRules[index] = cssRule;\n }\n }\n /**\n * Delete a rule.\n */\n ;\n\n _proto.deleteRule = function deleteRule(cssRule) {\n var sheet = this.element.sheet;\n var index = this.indexOf(cssRule);\n if (index === -1) return false;\n sheet.deleteRule(index);\n this.cssRules.splice(index, 1);\n return true;\n }\n /**\n * Get index of a CSS Rule.\n */\n ;\n\n _proto.indexOf = function indexOf(cssRule) {\n return this.cssRules.indexOf(cssRule);\n }\n /**\n * Generate a new CSS rule and replace the existing one.\n *\n * Only used for some old browsers because they can't set a selector.\n */\n ;\n\n _proto.replaceRule = function replaceRule(cssRule, rule) {\n var index = this.indexOf(cssRule);\n if (index === -1) return false;\n this.element.sheet.deleteRule(index);\n this.cssRules.splice(index, 1);\n return this.insertRule(rule, index);\n }\n /**\n * Get all rules elements.\n */\n ;\n\n _proto.getRules = function getRules() {\n return this.element.sheet.cssRules;\n };\n\n return DomRenderer;\n}();\n\nvar instanceCounter = 0;\n\nvar Jss =\n/*#__PURE__*/\nfunction () {\n function Jss(options) {\n this.id = instanceCounter++;\n this.version = \"10.7.1\";\n this.plugins = new PluginsRegistry();\n this.options = {\n id: {\n minify: false\n },\n createGenerateId: createGenerateId,\n Renderer: isInBrowser ? DomRenderer : null,\n plugins: []\n };\n this.generateId = createGenerateId({\n minify: false\n });\n\n for (var i = 0; i < plugins.length; i++) {\n this.plugins.use(plugins[i], {\n queue: 'internal'\n });\n }\n\n this.setup(options);\n }\n /**\n * Prepares various options, applies plugins.\n * Should not be used twice on the same instance, because there is no plugins\n * deduplication logic.\n */\n\n\n var _proto = Jss.prototype;\n\n _proto.setup = function setup(options) {\n if (options === void 0) {\n options = {};\n }\n\n if (options.createGenerateId) {\n this.options.createGenerateId = options.createGenerateId;\n }\n\n if (options.id) {\n this.options.id = _extends({}, this.options.id, options.id);\n }\n\n if (options.createGenerateId || options.id) {\n this.generateId = this.options.createGenerateId(this.options.id);\n }\n\n if (options.insertionPoint != null) this.options.insertionPoint = options.insertionPoint;\n\n if ('Renderer' in options) {\n this.options.Renderer = options.Renderer;\n } // eslint-disable-next-line prefer-spread\n\n\n if (options.plugins) this.use.apply(this, options.plugins);\n return this;\n }\n /**\n * Create a Style Sheet.\n */\n ;\n\n _proto.createStyleSheet = function createStyleSheet(styles, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n index = _options.index;\n\n if (typeof index !== 'number') {\n index = registry.index === 0 ? 0 : registry.index + 1;\n }\n\n var sheet = new StyleSheet(styles, _extends({}, options, {\n jss: this,\n generateId: options.generateId || this.generateId,\n insertionPoint: this.options.insertionPoint,\n Renderer: this.options.Renderer,\n index: index\n }));\n this.plugins.onProcessSheet(sheet);\n return sheet;\n }\n /**\n * Detach the Style Sheet and remove it from the registry.\n */\n ;\n\n _proto.removeStyleSheet = function removeStyleSheet(sheet) {\n sheet.detach();\n registry.remove(sheet);\n return this;\n }\n /**\n * Create a rule without a Style Sheet.\n * [Deprecated] will be removed in the next major version.\n */\n ;\n\n _proto.createRule = function createRule$1(name, style, options) {\n if (style === void 0) {\n style = {};\n }\n\n if (options === void 0) {\n options = {};\n }\n\n // Enable rule without name for inline styles.\n if (typeof name === 'object') {\n // $FlowFixMe[incompatible-call]\n return this.createRule(undefined, name, style);\n } // $FlowFixMe[incompatible-type]\n\n\n var ruleOptions = _extends({}, options, {\n name: name,\n jss: this,\n Renderer: this.options.Renderer\n });\n\n if (!ruleOptions.generateId) ruleOptions.generateId = this.generateId;\n if (!ruleOptions.classes) ruleOptions.classes = {};\n if (!ruleOptions.keyframes) ruleOptions.keyframes = {};\n\n var rule = createRule(name, style, ruleOptions);\n\n if (rule) this.plugins.onProcessRule(rule);\n return rule;\n }\n /**\n * Register plugin. Passed function will be invoked with a rule instance.\n */\n ;\n\n _proto.use = function use() {\n var _this = this;\n\n for (var _len = arguments.length, plugins = new Array(_len), _key = 0; _key < _len; _key++) {\n plugins[_key] = arguments[_key];\n }\n\n plugins.forEach(function (plugin) {\n _this.plugins.use(plugin);\n });\n return this;\n };\n\n return Jss;\n}();\n\n/**\n * Extracts a styles object with only props that contain function values.\n */\nfunction getDynamicStyles(styles) {\n var to = null;\n\n for (var key in styles) {\n var value = styles[key];\n var type = typeof value;\n\n if (type === 'function') {\n if (!to) to = {};\n to[key] = value;\n } else if (type === 'object' && value !== null && !Array.isArray(value)) {\n var extracted = getDynamicStyles(value);\n\n if (extracted) {\n if (!to) to = {};\n to[key] = extracted;\n }\n }\n }\n\n return to;\n}\n\n/**\n * SheetsManager is like a WeakMap which is designed to count StyleSheet\n * instances and attach/detach automatically.\n */\nvar SheetsManager =\n/*#__PURE__*/\nfunction () {\n function SheetsManager() {\n this.length = 0;\n this.sheets = new WeakMap();\n }\n\n var _proto = SheetsManager.prototype;\n\n _proto.get = function get(key) {\n var entry = this.sheets.get(key);\n return entry && entry.sheet;\n };\n\n _proto.add = function add(key, sheet) {\n if (this.sheets.has(key)) return;\n this.length++;\n this.sheets.set(key, {\n sheet: sheet,\n refs: 0\n });\n };\n\n _proto.manage = function manage(key) {\n var entry = this.sheets.get(key);\n\n if (entry) {\n if (entry.refs === 0) {\n entry.sheet.attach();\n }\n\n entry.refs++;\n return entry.sheet;\n }\n\n warning(false, \"[JSS] SheetsManager: can't find sheet to manage\");\n return undefined;\n };\n\n _proto.unmanage = function unmanage(key) {\n var entry = this.sheets.get(key);\n\n if (entry) {\n if (entry.refs > 0) {\n entry.refs--;\n if (entry.refs === 0) entry.sheet.detach();\n }\n } else {\n warning(false, \"SheetsManager: can't find sheet to unmanage\");\n }\n };\n\n _createClass(SheetsManager, [{\n key: \"size\",\n get: function get() {\n return this.length;\n }\n }]);\n\n return SheetsManager;\n}();\n\n/**\n * A better abstraction over CSS.\n *\n * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present\n * @website https://github.com/cssinjs/jss\n * @license MIT\n */\n\n/**\n * Export a constant indicating if this browser has CSSTOM support.\n * https://developers.google.com/web/updates/2018/03/cssom\n */\nvar hasCSSTOMSupport = typeof CSS === 'object' && CSS != null && 'number' in CSS;\n/**\n * Creates a new instance of Jss.\n */\n\nvar create = function create(options) {\n return new Jss(options);\n};\n/**\n * A global Jss instance.\n */\n\nvar jss = create();\n\nexport default jss;\nexport { RuleList, SheetsManager, SheetsRegistry, create, createGenerateId, createRule, getDynamicStyles, hasCSSTOMSupport, registry as sheets, toCssValue };\n","import React, { Component } from 'react';\nimport _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';\nimport PropTypes from 'prop-types';\nimport warning from 'tiny-warning';\n\nvar MAX_SIGNED_31_BIT_INT = 1073741823;\nvar commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : {};\n\nfunction getUniqueId() {\n var key = '__global_unique_id__';\n return commonjsGlobal[key] = (commonjsGlobal[key] || 0) + 1;\n}\n\nfunction objectIs(x, y) {\n if (x === y) {\n return x !== 0 || 1 / x === 1 / y;\n } else {\n return x !== x && y !== y;\n }\n}\n\nfunction createEventEmitter(value) {\n var handlers = [];\n return {\n on: function on(handler) {\n handlers.push(handler);\n },\n off: function off(handler) {\n handlers = handlers.filter(function (h) {\n return h !== handler;\n });\n },\n get: function get() {\n return value;\n },\n set: function set(newValue, changedBits) {\n value = newValue;\n handlers.forEach(function (handler) {\n return handler(value, changedBits);\n });\n }\n };\n}\n\nfunction onlyChild(children) {\n return Array.isArray(children) ? children[0] : children;\n}\n\nfunction createReactContext(defaultValue, calculateChangedBits) {\n var _Provider$childContex, _Consumer$contextType;\n\n var contextProp = '__create-react-context-' + getUniqueId() + '__';\n\n var Provider = /*#__PURE__*/function (_Component) {\n _inheritsLoose(Provider, _Component);\n\n function Provider() {\n var _this;\n\n _this = _Component.apply(this, arguments) || this;\n _this.emitter = createEventEmitter(_this.props.value);\n return _this;\n }\n\n var _proto = Provider.prototype;\n\n _proto.getChildContext = function getChildContext() {\n var _ref;\n\n return _ref = {}, _ref[contextProp] = this.emitter, _ref;\n };\n\n _proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if (this.props.value !== nextProps.value) {\n var oldValue = this.props.value;\n var newValue = nextProps.value;\n var changedBits;\n\n if (objectIs(oldValue, newValue)) {\n changedBits = 0;\n } else {\n changedBits = typeof calculateChangedBits === 'function' ? calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;\n\n if (process.env.NODE_ENV !== 'production') {\n warning((changedBits & MAX_SIGNED_31_BIT_INT) === changedBits, 'calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: ' + changedBits);\n }\n\n changedBits |= 0;\n\n if (changedBits !== 0) {\n this.emitter.set(nextProps.value, changedBits);\n }\n }\n }\n };\n\n _proto.render = function render() {\n return this.props.children;\n };\n\n return Provider;\n }(Component);\n\n Provider.childContextTypes = (_Provider$childContex = {}, _Provider$childContex[contextProp] = PropTypes.object.isRequired, _Provider$childContex);\n\n var Consumer = /*#__PURE__*/function (_Component2) {\n _inheritsLoose(Consumer, _Component2);\n\n function Consumer() {\n var _this2;\n\n _this2 = _Component2.apply(this, arguments) || this;\n _this2.state = {\n value: _this2.getValue()\n };\n\n _this2.onUpdate = function (newValue, changedBits) {\n var observedBits = _this2.observedBits | 0;\n\n if ((observedBits & changedBits) !== 0) {\n _this2.setState({\n value: _this2.getValue()\n });\n }\n };\n\n return _this2;\n }\n\n var _proto2 = Consumer.prototype;\n\n _proto2.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n var observedBits = nextProps.observedBits;\n this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT : observedBits;\n };\n\n _proto2.componentDidMount = function componentDidMount() {\n if (this.context[contextProp]) {\n this.context[contextProp].on(this.onUpdate);\n }\n\n var observedBits = this.props.observedBits;\n this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT : observedBits;\n };\n\n _proto2.componentWillUnmount = function componentWillUnmount() {\n if (this.context[contextProp]) {\n this.context[contextProp].off(this.onUpdate);\n }\n };\n\n _proto2.getValue = function getValue() {\n if (this.context[contextProp]) {\n return this.context[contextProp].get();\n } else {\n return defaultValue;\n }\n };\n\n _proto2.render = function render() {\n return onlyChild(this.props.children)(this.state.value);\n };\n\n return Consumer;\n }(Component);\n\n Consumer.contextTypes = (_Consumer$contextType = {}, _Consumer$contextType[contextProp] = PropTypes.object, _Consumer$contextType);\n return {\n Provider: Provider,\n Consumer: Consumer\n };\n}\n\nvar index = React.createContext || createReactContext;\n\nexport default index;\n","import React__default, { forwardRef, useRef, useCallback, useLayoutEffect, useEffect, createElement, useState, Component, useContext } from 'react';\nimport { createPortal } from 'react-dom';\nimport clsx from 'clsx';\nimport Slide from '@material-ui/core/Slide';\nimport { withStyles, createStyles, emphasize, makeStyles } from '@material-ui/core/styles';\nimport Collapse from '@material-ui/core/Collapse';\nimport SvgIcon from '@material-ui/core/SvgIcon';\nimport ClickAwayListener from '@material-ui/core/ClickAwayListener';\nimport hoistNonReactStatics from 'hoist-non-react-statics';\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nvar SnackbarContext = /*#__PURE__*/React__default.createContext();\n\nvar allClasses = {\n mui: {\n root: {},\n anchorOriginTopCenter: {},\n anchorOriginBottomCenter: {},\n anchorOriginTopRight: {},\n anchorOriginBottomRight: {},\n anchorOriginTopLeft: {},\n anchorOriginBottomLeft: {}\n },\n container: {\n containerRoot: {},\n containerAnchorOriginTopCenter: {},\n containerAnchorOriginBottomCenter: {},\n containerAnchorOriginTopRight: {},\n containerAnchorOriginBottomRight: {},\n containerAnchorOriginTopLeft: {},\n containerAnchorOriginBottomLeft: {}\n }\n};\nvar MESSAGES = {\n NO_PERSIST_ALL: 'WARNING - notistack: Reached maxSnack while all enqueued snackbars have \\'persist\\' flag. Notistack will dismiss the oldest snackbar anyway to allow other ones in the queue to be presented.'\n};\nvar SNACKBAR_INDENTS = {\n view: {\n \"default\": 20,\n dense: 4\n },\n snackbar: {\n \"default\": 6,\n dense: 2\n }\n};\nvar DEFAULTS = {\n maxSnack: 3,\n dense: false,\n hideIconVariant: false,\n variant: 'default',\n autoHideDuration: 5000,\n anchorOrigin: {\n vertical: 'bottom',\n horizontal: 'left'\n },\n TransitionComponent: Slide,\n transitionDuration: {\n enter: 225,\n exit: 195\n }\n};\nvar capitalise = function capitalise(text) {\n return text.charAt(0).toUpperCase() + text.slice(1);\n};\nvar originKeyExtractor = function originKeyExtractor(anchor) {\n return \"\" + capitalise(anchor.vertical) + capitalise(anchor.horizontal);\n};\n/**\r\n * Omit SnackbarContainer class keys that are not needed for SnackbarItem\r\n */\n\nvar omitContainerKeys = function omitContainerKeys(classes) {\n return (// @ts-ignore\n Object.keys(classes).filter(function (key) {\n return !allClasses.container[key];\n }).reduce(function (obj, key) {\n var _extends2;\n\n return _extends({}, obj, (_extends2 = {}, _extends2[key] = classes[key], _extends2));\n }, {})\n );\n};\nvar REASONS = {\n TIMEOUT: 'timeout',\n CLICKAWAY: 'clickaway',\n MAXSNACK: 'maxsnack',\n INSTRUCTED: 'instructed'\n};\n/** Tranforms classes name */\n\nvar transformer = {\n toContainerAnchorOrigin: function toContainerAnchorOrigin(origin) {\n return \"containerAnchorOrigin\" + origin;\n },\n toAnchorOrigin: function toAnchorOrigin(_ref) {\n var vertical = _ref.vertical,\n horizontal = _ref.horizontal;\n return \"anchorOrigin\" + capitalise(vertical) + capitalise(horizontal);\n },\n toVariant: function toVariant(variant) {\n return \"variant\" + capitalise(variant);\n }\n};\nvar isDefined = function isDefined(value) {\n return !!value || value === 0;\n};\n\nvar numberOrNull = function numberOrNull(numberish) {\n return typeof numberish === 'number' || numberish === null;\n}; // @ts-ignore\n\n\nvar merge = function merge(options, props, defaults) {\n return function (name) {\n if (name === 'autoHideDuration') {\n if (numberOrNull(options.autoHideDuration)) return options.autoHideDuration;\n if (numberOrNull(props.autoHideDuration)) return props.autoHideDuration;\n return DEFAULTS.autoHideDuration;\n }\n\n return options[name] || props[name] || defaults[name];\n };\n};\nfunction objectMerge(options, props, defaults) {\n if (options === void 0) {\n options = {};\n }\n\n if (props === void 0) {\n props = {};\n }\n\n if (defaults === void 0) {\n defaults = {};\n }\n\n return _extends({}, defaults, {}, props, {}, options);\n}\n\nvar styles = function styles(theme) {\n var _root;\n\n return createStyles({\n root: (_root = {\n display: 'flex',\n flexWrap: 'wrap',\n flexGrow: 1\n }, _root[theme.breakpoints.up('sm')] = {\n flexGrow: 'initial',\n minWidth: 288\n }, _root)\n });\n};\n\nvar SnackbarContent = /*#__PURE__*/forwardRef(function (_ref, ref) {\n var classes = _ref.classes,\n className = _ref.className,\n props = _objectWithoutPropertiesLoose(_ref, [\"classes\", \"className\"]);\n\n return React__default.createElement(\"div\", Object.assign({\n ref: ref,\n className: clsx(classes.root, className)\n }, props));\n});\nvar SnackbarContent$1 = /*#__PURE__*/withStyles(styles)(SnackbarContent);\n\nvar DIRECTION = {\n right: 'left',\n left: 'right',\n bottom: 'up',\n top: 'down'\n};\nvar getTransitionDirection = function getTransitionDirection(anchorOrigin) {\n if (anchorOrigin.horizontal !== 'center') {\n return DIRECTION[anchorOrigin.horizontal];\n }\n\n return DIRECTION[anchorOrigin.vertical];\n};\n\nvar CheckIcon = function CheckIcon(props) {\n return React__default.createElement(SvgIcon, Object.assign({}, props), React__default.createElement(\"path\", {\n d: \"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\\n 10.59L10 14.17L17.59 6.58L19 8L10 17Z\"\n }));\n};\n\nvar WarningIcon = function WarningIcon(props) {\n return React__default.createElement(SvgIcon, Object.assign({}, props), React__default.createElement(\"path\", {\n d: \"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z\"\n }));\n};\n\nvar ErrorIcon = function ErrorIcon(props) {\n return React__default.createElement(SvgIcon, Object.assign({}, props), React__default.createElement(\"path\", {\n d: \"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\\n 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\\n 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z\"\n }));\n};\n\nvar InfoIcon = function InfoIcon(props) {\n return React__default.createElement(SvgIcon, Object.assign({}, props), React__default.createElement(\"path\", {\n d: \"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\\n 0 22,12A10,10 0 0,0 12,2Z\"\n }));\n};\n\nvar iconStyles = {\n fontSize: 20,\n marginInlineEnd: 8\n};\nvar defaultIconVariants = {\n \"default\": undefined,\n success: /*#__PURE__*/React__default.createElement(CheckIcon, {\n style: iconStyles\n }),\n warning: /*#__PURE__*/React__default.createElement(WarningIcon, {\n style: iconStyles\n }),\n error: /*#__PURE__*/React__default.createElement(ErrorIcon, {\n style: iconStyles\n }),\n info: /*#__PURE__*/React__default.createElement(InfoIcon, {\n style: iconStyles\n })\n};\n\n/**\n * @link https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/utils/createChainedFunction.js\n */\nfunction createChainedFunction(funcs, extraArg) {\n return funcs.reduce(function (acc, func) {\n if (func == null) return acc;\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof func !== 'function') {\n // eslint-disable-next-line no-console\n console.error('Invalid Argument Type. must only provide functions, undefined, or null.');\n }\n }\n\n return function chainedFunction() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var argums = [].concat(args);\n\n if (extraArg && argums.indexOf(extraArg) === -1) {\n argums.push(extraArg);\n }\n\n acc.apply(this, argums);\n func.apply(this, argums);\n };\n }, function () {});\n}\n\n/**\n * @link https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/utils/useEventCallback.js\n */\nvar useEnhancedEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;\nfunction useEventCallback(fn) {\n var ref = useRef(fn);\n useEnhancedEffect(function () {\n ref.current = fn;\n });\n return useCallback(function () {\n return (ref.current).apply(void 0, arguments);\n }, []);\n}\n\nvar Snackbar = /*#__PURE__*/forwardRef(function (props, ref) {\n var children = props.children,\n autoHideDuration = props.autoHideDuration,\n ClickAwayListenerProps = props.ClickAwayListenerProps,\n _props$disableWindowB = props.disableWindowBlurListener,\n disableWindowBlurListener = _props$disableWindowB === void 0 ? false : _props$disableWindowB,\n onClose = props.onClose,\n onMouseEnter = props.onMouseEnter,\n onMouseLeave = props.onMouseLeave,\n open = props.open,\n resumeHideDuration = props.resumeHideDuration,\n other = _objectWithoutPropertiesLoose(props, [\"children\", \"autoHideDuration\", \"ClickAwayListenerProps\", \"disableWindowBlurListener\", \"onClose\", \"onMouseEnter\", \"onMouseLeave\", \"open\", \"resumeHideDuration\"]);\n\n var timerAutoHide = useRef();\n var handleClose = useEventCallback(function () {\n if (onClose) {\n onClose.apply(void 0, arguments);\n }\n });\n var setAutoHideTimer = useEventCallback(function (autoHideDurationParam) {\n if (!onClose || autoHideDurationParam == null) {\n return;\n }\n\n clearTimeout(timerAutoHide.current);\n timerAutoHide.current = setTimeout(function () {\n handleClose(null, REASONS.TIMEOUT);\n }, autoHideDurationParam);\n });\n useEffect(function () {\n if (open) {\n setAutoHideTimer(autoHideDuration);\n }\n\n return function () {\n clearTimeout(timerAutoHide.current);\n };\n }, [open, autoHideDuration, setAutoHideTimer]);\n /**\n * Pause the timer when the user is interacting with the Snackbar\n * or when the user hide the window.\n */\n\n var handlePause = function handlePause() {\n clearTimeout(timerAutoHide.current);\n };\n /**\n * Restart the timer when the user is no longer interacting with the Snackbar\n * or when the window is shown back.\n */\n\n\n var handleResume = useCallback(function () {\n if (autoHideDuration != null) {\n setAutoHideTimer(resumeHideDuration != null ? resumeHideDuration : autoHideDuration * 0.5);\n }\n }, [autoHideDuration, resumeHideDuration, setAutoHideTimer]);\n\n var handleMouseEnter = function handleMouseEnter(event) {\n if (onMouseEnter) {\n onMouseEnter(event);\n }\n\n handlePause();\n };\n\n var handleMouseLeave = function handleMouseLeave(event) {\n if (onMouseLeave) {\n onMouseLeave(event);\n }\n\n handleResume();\n };\n\n var handleClickAway = function handleClickAway(event) {\n if (onClose) {\n onClose(event, REASONS.CLICKAWAY);\n }\n };\n\n useEffect(function () {\n if (!disableWindowBlurListener && open) {\n window.addEventListener('focus', handleResume);\n window.addEventListener('blur', handlePause);\n return function () {\n window.removeEventListener('focus', handleResume);\n window.removeEventListener('blur', handlePause);\n };\n }\n\n return undefined;\n }, [disableWindowBlurListener, handleResume, open]);\n return createElement(ClickAwayListener, _extends({\n onClickAway: handleClickAway\n }, ClickAwayListenerProps), createElement(\"div\", _extends({\n onMouseEnter: handleMouseEnter,\n onMouseLeave: handleMouseLeave,\n ref: ref\n }, other), children));\n});\n\nvar styles$1 = function styles(theme) {\n // @ts-ignore\n var mode = theme.palette.mode || theme.palette.type;\n var backgroundColor = emphasize(theme.palette.background[\"default\"], mode === 'light' ? 0.8 : 0.98);\n return createStyles(_extends({}, allClasses.mui, {\n contentRoot: _extends({}, theme.typography.body2, {\n backgroundColor: backgroundColor,\n color: theme.palette.getContrastText(backgroundColor),\n alignItems: 'center',\n padding: '6px 16px',\n borderRadius: '4px',\n boxShadow: '0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)'\n }),\n lessPadding: {\n paddingLeft: 8 * 2.5\n },\n variantSuccess: {\n backgroundColor: '#43a047',\n color: '#fff'\n },\n variantError: {\n backgroundColor: '#d32f2f',\n color: '#fff'\n },\n variantInfo: {\n backgroundColor: '#2196f3',\n color: '#fff'\n },\n variantWarning: {\n backgroundColor: '#ff9800',\n color: '#fff'\n },\n message: {\n display: 'flex',\n alignItems: 'center',\n padding: '8px 0'\n },\n action: {\n display: 'flex',\n alignItems: 'center',\n marginLeft: 'auto',\n paddingLeft: 16,\n marginRight: -8\n },\n wrappedRoot: {\n position: 'relative',\n transform: 'translateX(0)',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n }\n }));\n};\n\nvar SnackbarItem = function SnackbarItem(_ref) {\n var classes = _ref.classes,\n props = _objectWithoutPropertiesLoose(_ref, [\"classes\"]);\n\n var timeout = useRef();\n\n var _useState = useState(true),\n collapsed = _useState[0],\n setCollapsed = _useState[1];\n\n useEffect(function () {\n return function () {\n if (timeout.current) {\n clearTimeout(timeout.current);\n }\n };\n }, []);\n var handleClose = createChainedFunction([props.snack.onClose, props.onClose], props.snack.key);\n\n var handleEntered = function handleEntered() {\n if (props.snack.requestClose) {\n handleClose(null, REASONS.INSTRCUTED);\n }\n };\n\n var handleExitedScreen = function handleExitedScreen() {\n timeout.current = setTimeout(function () {\n setCollapsed(!collapsed);\n }, 125);\n };\n\n var style = props.style,\n otherAriaAttributes = props.ariaAttributes,\n otherClassName = props.className,\n hideIconVariant = props.hideIconVariant,\n iconVariant = props.iconVariant,\n snack = props.snack,\n otherAction = props.action,\n otherContent = props.content,\n otherTranComponent = props.TransitionComponent,\n otherTranProps = props.TransitionProps,\n otherTranDuration = props.transitionDuration,\n other = _objectWithoutPropertiesLoose(props, [\"style\", \"dense\", \"ariaAttributes\", \"className\", \"hideIconVariant\", \"iconVariant\", \"snack\", \"action\", \"content\", \"TransitionComponent\", \"TransitionProps\", \"transitionDuration\", \"onEnter\", \"onEntered\", \"onEntering\", \"onExit\", \"onExited\", \"onExiting\"]);\n\n var key = snack.key,\n open = snack.open,\n singleClassName = snack.className,\n variant = snack.variant,\n singleContent = snack.content,\n singleAction = snack.action,\n singleAriaAttributes = snack.ariaAttributes,\n anchorOrigin = snack.anchorOrigin,\n snackMessage = snack.message,\n singleTranComponent = snack.TransitionComponent,\n singleTranProps = snack.TransitionProps,\n singleTranDuration = snack.transitionDuration,\n singleSnackProps = _objectWithoutPropertiesLoose(snack, [\"persist\", \"key\", \"open\", \"entered\", \"requestClose\", \"className\", \"variant\", \"content\", \"action\", \"ariaAttributes\", \"anchorOrigin\", \"message\", \"TransitionComponent\", \"TransitionProps\", \"transitionDuration\", \"onEnter\", \"onEntered\", \"onEntering\", \"onExit\", \"onExited\", \"onExiting\"]);\n\n var icon = _extends({}, defaultIconVariants, {}, iconVariant)[variant];\n\n var ariaAttributes = _extends({\n 'aria-describedby': 'notistack-snackbar'\n }, objectMerge(singleAriaAttributes, otherAriaAttributes));\n\n var TransitionComponent = singleTranComponent || otherTranComponent || DEFAULTS.TransitionComponent;\n var transitionDuration = objectMerge(singleTranDuration, otherTranDuration, DEFAULTS.transitionDuration);\n\n var transitionProps = _extends({\n direction: getTransitionDirection(anchorOrigin)\n }, objectMerge(singleTranProps, otherTranProps));\n\n var action = singleAction || otherAction;\n\n if (typeof action === 'function') {\n action = action(key);\n }\n\n var content = singleContent || otherContent;\n\n if (typeof content === 'function') {\n content = content(key, snack.message);\n }\n\n var callbacks = ['onEnter', 'onEntering', 'onEntered', 'onExit', 'onExiting', 'onExited'].reduce(function (acc, cbName) {\n var _extends2;\n\n return _extends({}, acc, (_extends2 = {}, _extends2[cbName] = createChainedFunction([props.snack[cbName], props[cbName]], props.snack.key), _extends2));\n }, {});\n return React__default.createElement(Collapse, {\n unmountOnExit: true,\n timeout: 175,\n \"in\": collapsed,\n onExited: callbacks.onExited\n }, React__default.createElement(Snackbar, Object.assign({}, other, singleSnackProps, {\n open: open,\n className: clsx(classes.root, classes.wrappedRoot, classes[transformer.toAnchorOrigin(anchorOrigin)]),\n onClose: handleClose\n }), React__default.createElement(TransitionComponent, Object.assign({\n appear: true,\n \"in\": open,\n timeout: transitionDuration\n }, transitionProps, {\n onExit: callbacks.onExit,\n onExiting: callbacks.onExiting,\n onExited: handleExitedScreen,\n onEnter: callbacks.onEnter,\n onEntering: callbacks.onEntering,\n // order matters. first callbacks.onEntered to set entered: true,\n // then handleEntered to check if there's a request for closing\n onEntered: createChainedFunction([callbacks.onEntered, handleEntered])\n }), content || React__default.createElement(SnackbarContent$1, Object.assign({}, ariaAttributes, {\n role: \"alert\",\n style: style,\n className: clsx(classes.contentRoot, classes[transformer.toVariant(variant)], otherClassName, singleClassName, !hideIconVariant && icon && classes.lessPadding)\n }), React__default.createElement(\"div\", {\n id: ariaAttributes['aria-describedby'],\n className: classes.message\n }, !hideIconVariant ? icon : null, snackMessage), action && React__default.createElement(\"div\", {\n className: classes.action\n }, action)))));\n};\n\nvar SnackbarItem$1 = /*#__PURE__*/withStyles(styles$1)(SnackbarItem);\n\nvar collapse = {\n // Material-UI 4.12.x and above uses MuiCollapse-root; earlier versions use\n // Mui-Collapse-container. https://github.com/mui-org/material-ui/pull/24084\n container: '& > .MuiCollapse-container, & > .MuiCollapse-root',\n wrapper: '& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper'\n};\nvar xsWidthMargin = 16;\nvar useStyle = /*#__PURE__*/makeStyles(function (theme) {\n var _root, _rootDense, _left, _right, _center;\n\n return {\n root: (_root = {\n boxSizing: 'border-box',\n display: 'flex',\n maxHeight: '100%',\n position: 'fixed',\n zIndex: theme.zIndex.snackbar,\n height: 'auto',\n width: 'auto',\n transition: 'top 300ms ease 0ms, right 300ms ease 0ms, bottom 300ms ease 0ms, left 300ms ease 0ms, margin 300ms ease 0ms, max-width 300ms ease 0ms',\n // container itself is invisible and should not block clicks, clicks should be passed to its children\n pointerEvents: 'none'\n }, _root[collapse.container] = {\n pointerEvents: 'all'\n }, _root[collapse.wrapper] = {\n padding: SNACKBAR_INDENTS.snackbar[\"default\"] + \"px 0px\",\n transition: 'padding 300ms ease 0ms'\n }, _root.maxWidth = \"calc(100% - \" + SNACKBAR_INDENTS.view[\"default\"] * 2 + \"px)\", _root[theme.breakpoints.down('xs')] = {\n width: '100%',\n maxWidth: \"calc(100% - \" + xsWidthMargin * 2 + \"px)\"\n }, _root),\n rootDense: (_rootDense = {}, _rootDense[collapse.wrapper] = {\n padding: SNACKBAR_INDENTS.snackbar.dense + \"px 0px\"\n }, _rootDense),\n top: {\n top: SNACKBAR_INDENTS.view[\"default\"] - SNACKBAR_INDENTS.snackbar[\"default\"],\n flexDirection: 'column'\n },\n bottom: {\n bottom: SNACKBAR_INDENTS.view[\"default\"] - SNACKBAR_INDENTS.snackbar[\"default\"],\n flexDirection: 'column-reverse'\n },\n left: (_left = {\n left: SNACKBAR_INDENTS.view[\"default\"]\n }, _left[theme.breakpoints.up('sm')] = {\n alignItems: 'flex-start'\n }, _left[theme.breakpoints.down('xs')] = {\n left: xsWidthMargin + \"px\"\n }, _left),\n right: (_right = {\n right: SNACKBAR_INDENTS.view[\"default\"]\n }, _right[theme.breakpoints.up('sm')] = {\n alignItems: 'flex-end'\n }, _right[theme.breakpoints.down('xs')] = {\n right: xsWidthMargin + \"px\"\n }, _right),\n center: (_center = {\n left: '50%',\n transform: 'translateX(-50%)'\n }, _center[theme.breakpoints.up('sm')] = {\n alignItems: 'center'\n }, _center)\n };\n});\n\nvar SnackbarContainer = function SnackbarContainer(props) {\n var classes = useStyle();\n\n var className = props.className,\n anchorOrigin = props.anchorOrigin,\n dense = props.dense,\n other = _objectWithoutPropertiesLoose(props, [\"className\", \"anchorOrigin\", \"dense\"]);\n\n var combinedClassname = clsx(classes[anchorOrigin.vertical], classes[anchorOrigin.horizontal], classes.root, // root should come after others to override maxWidth\n className, dense && classes.rootDense);\n return React__default.createElement(\"div\", Object.assign({\n className: combinedClassname\n }, other));\n};\n\nvar SnackbarContainer$1 = /*#__PURE__*/React__default.memo(SnackbarContainer);\n\n/* eslint-disable */\nvar __DEV__ = process.env.NODE_ENV !== 'production';\n\nvar warning = (function (message) {\n if (!__DEV__) return;\n\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n\n try {\n throw new Error(message);\n } catch (x) {}\n});\n\nvar SnackbarProvider = /*#__PURE__*/function (_Component) {\n _inheritsLoose(SnackbarProvider, _Component);\n\n function SnackbarProvider(props) {\n var _this;\n\n _this = _Component.call(this, props) || this;\n /**\r\n * Adds a new snackbar to the queue to be presented.\r\n * Returns generated or user defined key referencing the new snackbar or null\r\n */\n\n _this.enqueueSnackbar = function (message, opts) {\n if (opts === void 0) {\n opts = {};\n }\n\n var _opts = opts,\n key = _opts.key,\n preventDuplicate = _opts.preventDuplicate,\n options = _objectWithoutPropertiesLoose(_opts, [\"key\", \"preventDuplicate\"]);\n\n var hasSpecifiedKey = isDefined(key);\n var id = hasSpecifiedKey ? key : new Date().getTime() + Math.random();\n var merger = merge(options, _this.props, DEFAULTS);\n\n var snack = _extends({\n key: id\n }, options, {\n message: message,\n open: true,\n entered: false,\n requestClose: false,\n variant: merger('variant'),\n anchorOrigin: merger('anchorOrigin'),\n autoHideDuration: merger('autoHideDuration')\n });\n\n if (options.persist) {\n snack.autoHideDuration = undefined;\n }\n\n _this.setState(function (state) {\n if (preventDuplicate === undefined && _this.props.preventDuplicate || preventDuplicate) {\n var compareFunction = function compareFunction(item) {\n return hasSpecifiedKey ? item.key === key : item.message === message;\n };\n\n var inQueue = state.queue.findIndex(compareFunction) > -1;\n var inView = state.snacks.findIndex(compareFunction) > -1;\n\n if (inQueue || inView) {\n return state;\n }\n }\n\n return _this.handleDisplaySnack(_extends({}, state, {\n queue: [].concat(state.queue, [snack])\n }));\n });\n\n return id;\n };\n /**\r\n * Reducer: Display snack if there's space for it. Otherwise, immediately\r\n * begin dismissing the oldest message to start showing the new one.\r\n */\n\n\n _this.handleDisplaySnack = function (state) {\n var snacks = state.snacks;\n\n if (snacks.length >= _this.maxSnack) {\n return _this.handleDismissOldest(state);\n }\n\n return _this.processQueue(state);\n };\n /**\r\n * Reducer: Display items (notifications) in the queue if there's space for them.\r\n */\n\n\n _this.processQueue = function (state) {\n var queue = state.queue,\n snacks = state.snacks;\n\n if (queue.length > 0) {\n return _extends({}, state, {\n snacks: [].concat(snacks, [queue[0]]),\n queue: queue.slice(1, queue.length)\n });\n }\n\n return state;\n };\n /**\r\n * Reducer: Hide oldest snackbar on the screen because there exists a new one which we have to display.\r\n * (ignoring the one with 'persist' flag. i.e. explicitly told by user not to get dismissed).\r\n *\r\n * Note 1: If there is already a message leaving the screen, no new messages are dismissed.\r\n * Note 2: If the oldest message has not yet entered the screen, only a request to close the\r\n * snackbar is made. Once it entered the screen, it will be immediately dismissed.\r\n */\n\n\n _this.handleDismissOldest = function (state) {\n if (state.snacks.some(function (item) {\n return !item.open || item.requestClose;\n })) {\n return state;\n }\n\n var popped = false;\n var ignore = false;\n var persistentCount = state.snacks.reduce(function (acc, current) {\n return acc + (current.open && current.persist ? 1 : 0);\n }, 0);\n\n if (persistentCount === _this.maxSnack) {\n process.env.NODE_ENV !== \"production\" ? warning(MESSAGES.NO_PERSIST_ALL) : void 0;\n ignore = true;\n }\n\n var snacks = state.snacks.map(function (item) {\n if (!popped && (!item.persist || ignore)) {\n popped = true;\n\n if (!item.entered) {\n return _extends({}, item, {\n requestClose: true\n });\n }\n\n if (item.onClose) item.onClose(null, REASONS.MAXSNACK, item.key);\n if (_this.props.onClose) _this.props.onClose(null, REASONS.MAXSNACK, item.key);\n return _extends({}, item, {\n open: false\n });\n }\n\n return _extends({}, item);\n });\n return _extends({}, state, {\n snacks: snacks\n });\n };\n /**\r\n * Set the entered state of the snackbar with the given key.\r\n */\n\n\n _this.handleEnteredSnack = function (node, isAppearing, key) {\n if (!isDefined(key)) {\n throw new Error('handleEnteredSnack Cannot be called with undefined key');\n }\n\n _this.setState(function (_ref) {\n var snacks = _ref.snacks;\n return {\n snacks: snacks.map(function (item) {\n return item.key === key ? _extends({}, item, {\n entered: true\n }) : _extends({}, item);\n })\n };\n });\n };\n /**\r\n * Hide a snackbar after its timeout.\r\n */\n\n\n _this.handleCloseSnack = function (event, reason, key) {\n // should not use createChainedFunction for onClose.\n // because this.closeSnackbar called this function\n if (_this.props.onClose) {\n _this.props.onClose(event, reason, key);\n }\n\n if (reason === REASONS.CLICKAWAY) return;\n var shouldCloseAll = key === undefined;\n\n _this.setState(function (_ref2) {\n var snacks = _ref2.snacks,\n queue = _ref2.queue;\n return {\n snacks: snacks.map(function (item) {\n if (!shouldCloseAll && item.key !== key) {\n return _extends({}, item);\n }\n\n return item.entered ? _extends({}, item, {\n open: false\n }) : _extends({}, item, {\n requestClose: true\n });\n }),\n queue: queue.filter(function (item) {\n return item.key !== key;\n })\n };\n });\n };\n /**\r\n * Close snackbar with the given key\r\n */\n\n\n _this.closeSnackbar = function (key) {\n // call individual snackbar onClose callback passed through options parameter\n var toBeClosed = _this.state.snacks.find(function (item) {\n return item.key === key;\n });\n\n if (isDefined(key) && toBeClosed && toBeClosed.onClose) {\n toBeClosed.onClose(null, REASONS.INSTRUCTED, key);\n }\n\n _this.handleCloseSnack(null, REASONS.INSTRUCTED, key);\n };\n /**\r\n * When we set open attribute of a snackbar to false (i.e. after we hide a snackbar),\r\n * it leaves the screen and immediately after leaving animation is done, this method\r\n * gets called. We remove the hidden snackbar from state and then display notifications\r\n * waiting in the queue (if any). If after this process the queue is not empty, the\r\n * oldest message is dismissed.\r\n */\n // @ts-ignore\n\n\n _this.handleExitedSnack = function (event, key1, key2) {\n var key = key1 || key2;\n\n if (!isDefined(key)) {\n throw new Error('handleExitedSnack Cannot be called with undefined key');\n }\n\n _this.setState(function (state) {\n var newState = _this.processQueue(_extends({}, state, {\n snacks: state.snacks.filter(function (item) {\n return item.key !== key;\n })\n }));\n\n if (newState.queue.length === 0) {\n return newState;\n }\n\n return _this.handleDismissOldest(newState);\n });\n };\n\n _this.state = {\n snacks: [],\n queue: [],\n contextValue: {\n enqueueSnackbar: _this.enqueueSnackbar,\n closeSnackbar: _this.closeSnackbar\n }\n };\n return _this;\n }\n\n var _proto = SnackbarProvider.prototype;\n\n _proto.render = function render() {\n var _this2 = this;\n\n var contextValue = this.state.contextValue;\n\n var _this$props = this.props,\n iconVariant = _this$props.iconVariant,\n _this$props$dense = _this$props.dense,\n dense = _this$props$dense === void 0 ? DEFAULTS.dense : _this$props$dense,\n _this$props$hideIconV = _this$props.hideIconVariant,\n hideIconVariant = _this$props$hideIconV === void 0 ? DEFAULTS.hideIconVariant : _this$props$hideIconV,\n domRoot = _this$props.domRoot,\n children = _this$props.children,\n _this$props$classes = _this$props.classes,\n classes = _this$props$classes === void 0 ? {} : _this$props$classes,\n props = _objectWithoutPropertiesLoose(_this$props, [\"maxSnack\", \"preventDuplicate\", \"variant\", \"anchorOrigin\", \"iconVariant\", \"dense\", \"hideIconVariant\", \"domRoot\", \"children\", \"classes\"]);\n\n var categ = this.state.snacks.reduce(function (acc, current) {\n var _extends2;\n\n var category = originKeyExtractor(current.anchorOrigin);\n var existingOfCategory = acc[category] || [];\n return _extends({}, acc, (_extends2 = {}, _extends2[category] = [].concat(existingOfCategory, [current]), _extends2));\n }, {});\n var snackbars = Object.keys(categ).map(function (origin) {\n var snacks = categ[origin];\n return React__default.createElement(SnackbarContainer$1, {\n key: origin,\n dense: dense,\n anchorOrigin: snacks[0].anchorOrigin,\n className: clsx(classes.containerRoot, classes[transformer.toContainerAnchorOrigin(origin)])\n }, snacks.map(function (snack) {\n return React__default.createElement(SnackbarItem$1, Object.assign({}, props, {\n key: snack.key,\n snack: snack,\n dense: dense,\n iconVariant: iconVariant,\n hideIconVariant: hideIconVariant,\n classes: omitContainerKeys(classes),\n onClose: _this2.handleCloseSnack,\n onExited: createChainedFunction([_this2.handleExitedSnack, _this2.props.onExited]),\n onEntered: createChainedFunction([_this2.handleEnteredSnack, _this2.props.onEntered])\n }));\n }));\n });\n return React__default.createElement(SnackbarContext.Provider, {\n value: contextValue\n }, children, domRoot ? createPortal(snackbars, domRoot) : snackbars);\n };\n\n _createClass(SnackbarProvider, [{\n key: \"maxSnack\",\n get: function get() {\n return this.props.maxSnack || DEFAULTS.maxSnack;\n }\n }]);\n\n return SnackbarProvider;\n}(Component);\n\n// https://github.com/JamesMGreene/Function.name/blob/58b314d4a983110c3682f1228f845d39ccca1817/Function.name.js#L3\nvar fnNameMatchRegex = /^\\s*function(?:\\s|\\s*\\/\\*.*\\*\\/\\s*)+([^(\\s/]*)\\s*/;\n\nvar getFunctionName = function getFunctionName(fn) {\n var match = (\"\" + fn).match(fnNameMatchRegex);\n var name = match && match[1];\n return name || '';\n};\n/**\n * @param {function} Component\n * @param {string} fallback\n * @returns {string | undefined}\n */\n\n\nvar getFunctionComponentName = function getFunctionComponentName(Component, fallback) {\n if (fallback === void 0) {\n fallback = '';\n }\n\n return Component.displayName || Component.name || getFunctionName(Component) || fallback;\n};\n\nvar getWrappedName = function getWrappedName(outerType, innerType, wrapperName) {\n var functionName = getFunctionComponentName(innerType);\n return outerType.displayName || (functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName);\n};\n/** \n * From react-is\n * @link https://github.com/facebook/react/blob/master/packages/shared/ReactSymbols.js\n */\n\n\nvar ForwardRef = function ForwardRef() {\n var symbolFor = typeof Symbol === 'function' && Symbol[\"for\"];\n return symbolFor ? symbolFor('react.forward_ref') : 0xead0;\n};\n/**\n * https://github.com/facebook/react/blob/769b1f270e1251d9dbdce0fcbd9e92e502d059b8/packages/shared/getComponentName.js\n *\n * @param {React.ReactType} Component\n * @returns {string | undefined}\n */\n\n\nvar getDisplayName = (function (Component) {\n if (Component == null) {\n return undefined;\n }\n\n if (typeof Component === 'string') {\n return Component;\n }\n\n if (typeof Component === 'function') {\n return getFunctionComponentName(Component, 'Component');\n }\n\n if (typeof Component === 'object') {\n switch (Component.$$typeof) {\n case ForwardRef():\n return getWrappedName(Component, Component.render, 'ForwardRef');\n\n default:\n return undefined;\n }\n }\n\n return undefined;\n});\n\nvar withSnackbar = function withSnackbar(Component) {\n var WrappedComponent = React__default.forwardRef(function (props, ref) {\n return React__default.createElement(SnackbarContext.Consumer, null, function (context) {\n return React__default.createElement(Component, _extends({}, props, {\n ref: ref,\n enqueueSnackbar: context.enqueueSnackbar,\n closeSnackbar: context.closeSnackbar\n }));\n });\n });\n\n if (process.env.NODE_ENV !== 'production') {\n WrappedComponent.displayName = \"WithSnackbar(\" + getDisplayName(Component) + \")\";\n }\n\n hoistNonReactStatics(WrappedComponent, Component);\n return WrappedComponent;\n};\n\nvar useSnackbar = (function () {\n return useContext(SnackbarContext);\n});\n\nexport { SnackbarContent$1 as SnackbarContent, SnackbarProvider, useSnackbar, withSnackbar };\n//# sourceMappingURL=notistack.esm.js.map\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","var isarray = require('isarray')\n\n/**\n * Expose `pathToRegexp`.\n */\nmodule.exports = pathToRegexp\nmodule.exports.parse = parse\nmodule.exports.compile = compile\nmodule.exports.tokensToFunction = tokensToFunction\nmodule.exports.tokensToRegExp = tokensToRegExp\n\n/**\n * The main path matching regexp utility.\n *\n * @type {RegExp}\n */\nvar PATH_REGEXP = new RegExp([\n // Match escaped characters that would otherwise appear in future matches.\n // This allows the user to escape special characters that won't transform.\n '(\\\\\\\\.)',\n // Match Express-style parameters and un-named parameters with a prefix\n // and optional suffixes. Matches appear as:\n //\n // \"/:test(\\\\d+)?\" => [\"/\", \"test\", \"\\d+\", undefined, \"?\", undefined]\n // \"/route(\\\\d+)\" => [undefined, undefined, undefined, \"\\d+\", undefined, undefined]\n // \"/*\" => [\"/\", undefined, undefined, undefined, undefined, \"*\"]\n '([\\\\/.])?(?:(?:\\\\:(\\\\w+)(?:\\\\(((?:\\\\\\\\.|[^\\\\\\\\()])+)\\\\))?|\\\\(((?:\\\\\\\\.|[^\\\\\\\\()])+)\\\\))([+*?])?|(\\\\*))'\n].join('|'), 'g')\n\n/**\n * Parse a string for the raw tokens.\n *\n * @param {string} str\n * @param {Object=} options\n * @return {!Array}\n */\nfunction parse (str, options) {\n var tokens = []\n var key = 0\n var index = 0\n var path = ''\n var defaultDelimiter = options && options.delimiter || '/'\n var res\n\n while ((res = PATH_REGEXP.exec(str)) != null) {\n var m = res[0]\n var escaped = res[1]\n var offset = res.index\n path += str.slice(index, offset)\n index = offset + m.length\n\n // Ignore already escaped sequences.\n if (escaped) {\n path += escaped[1]\n continue\n }\n\n var next = str[index]\n var prefix = res[2]\n var name = res[3]\n var capture = res[4]\n var group = res[5]\n var modifier = res[6]\n var asterisk = res[7]\n\n // Push the current path onto the tokens.\n if (path) {\n tokens.push(path)\n path = ''\n }\n\n var partial = prefix != null && next != null && next !== prefix\n var repeat = modifier === '+' || modifier === '*'\n var optional = modifier === '?' || modifier === '*'\n var delimiter = res[2] || defaultDelimiter\n var pattern = capture || group\n\n tokens.push({\n name: name || key++,\n prefix: prefix || '',\n delimiter: delimiter,\n optional: optional,\n repeat: repeat,\n partial: partial,\n asterisk: !!asterisk,\n pattern: pattern ? escapeGroup(pattern) : (asterisk ? '.*' : '[^' + escapeString(delimiter) + ']+?')\n })\n }\n\n // Match any characters still remaining.\n if (index < str.length) {\n path += str.substr(index)\n }\n\n // If the path exists, push it onto the end.\n if (path) {\n tokens.push(path)\n }\n\n return tokens\n}\n\n/**\n * Compile a string to a template function for the path.\n *\n * @param {string} str\n * @param {Object=} options\n * @return {!function(Object=, Object=)}\n */\nfunction compile (str, options) {\n return tokensToFunction(parse(str, options), options)\n}\n\n/**\n * Prettier encoding of URI path segments.\n *\n * @param {string}\n * @return {string}\n */\nfunction encodeURIComponentPretty (str) {\n return encodeURI(str).replace(/[\\/?#]/g, function (c) {\n return '%' + c.charCodeAt(0).toString(16).toUpperCase()\n })\n}\n\n/**\n * Encode the asterisk parameter. Similar to `pretty`, but allows slashes.\n *\n * @param {string}\n * @return {string}\n */\nfunction encodeAsterisk (str) {\n return encodeURI(str).replace(/[?#]/g, function (c) {\n return '%' + c.charCodeAt(0).toString(16).toUpperCase()\n })\n}\n\n/**\n * Expose a method for transforming tokens into the path function.\n */\nfunction tokensToFunction (tokens, options) {\n // Compile all the tokens into regexps.\n var matches = new Array(tokens.length)\n\n // Compile all the patterns before compilation.\n for (var i = 0; i < tokens.length; i++) {\n if (typeof tokens[i] === 'object') {\n matches[i] = new RegExp('^(?:' + tokens[i].pattern + ')$', flags(options))\n }\n }\n\n return function (obj, opts) {\n var path = ''\n var data = obj || {}\n var options = opts || {}\n var encode = options.pretty ? encodeURIComponentPretty : encodeURIComponent\n\n for (var i = 0; i < tokens.length; i++) {\n var token = tokens[i]\n\n if (typeof token === 'string') {\n path += token\n\n continue\n }\n\n var value = data[token.name]\n var segment\n\n if (value == null) {\n if (token.optional) {\n // Prepend partial segment prefixes.\n if (token.partial) {\n path += token.prefix\n }\n\n continue\n } else {\n throw new TypeError('Expected \"' + token.name + '\" to be defined')\n }\n }\n\n if (isarray(value)) {\n if (!token.repeat) {\n throw new TypeError('Expected \"' + token.name + '\" to not repeat, but received `' + JSON.stringify(value) + '`')\n }\n\n if (value.length === 0) {\n if (token.optional) {\n continue\n } else {\n throw new TypeError('Expected \"' + token.name + '\" to not be empty')\n }\n }\n\n for (var j = 0; j < value.length; j++) {\n segment = encode(value[j])\n\n if (!matches[i].test(segment)) {\n throw new TypeError('Expected all \"' + token.name + '\" to match \"' + token.pattern + '\", but received `' + JSON.stringify(segment) + '`')\n }\n\n path += (j === 0 ? token.prefix : token.delimiter) + segment\n }\n\n continue\n }\n\n segment = token.asterisk ? encodeAsterisk(value) : encode(value)\n\n if (!matches[i].test(segment)) {\n throw new TypeError('Expected \"' + token.name + '\" to match \"' + token.pattern + '\", but received \"' + segment + '\"')\n }\n\n path += token.prefix + segment\n }\n\n return path\n }\n}\n\n/**\n * Escape a regular expression string.\n *\n * @param {string} str\n * @return {string}\n */\nfunction escapeString (str) {\n return str.replace(/([.+*?=^!:${}()[\\]|\\/\\\\])/g, '\\\\$1')\n}\n\n/**\n * Escape the capturing group by escaping special characters and meaning.\n *\n * @param {string} group\n * @return {string}\n */\nfunction escapeGroup (group) {\n return group.replace(/([=!:$\\/()])/g, '\\\\$1')\n}\n\n/**\n * Attach the keys as a property of the regexp.\n *\n * @param {!RegExp} re\n * @param {Array} keys\n * @return {!RegExp}\n */\nfunction attachKeys (re, keys) {\n re.keys = keys\n return re\n}\n\n/**\n * Get the flags for a regexp from the options.\n *\n * @param {Object} options\n * @return {string}\n */\nfunction flags (options) {\n return options && options.sensitive ? '' : 'i'\n}\n\n/**\n * Pull out keys from a regexp.\n *\n * @param {!RegExp} path\n * @param {!Array} keys\n * @return {!RegExp}\n */\nfunction regexpToRegexp (path, keys) {\n // Use a negative lookahead to match only capturing groups.\n var groups = path.source.match(/\\((?!\\?)/g)\n\n if (groups) {\n for (var i = 0; i < groups.length; i++) {\n keys.push({\n name: i,\n prefix: null,\n delimiter: null,\n optional: false,\n repeat: false,\n partial: false,\n asterisk: false,\n pattern: null\n })\n }\n }\n\n return attachKeys(path, keys)\n}\n\n/**\n * Transform an array into a regexp.\n *\n * @param {!Array} path\n * @param {Array} keys\n * @param {!Object} options\n * @return {!RegExp}\n */\nfunction arrayToRegexp (path, keys, options) {\n var parts = []\n\n for (var i = 0; i < path.length; i++) {\n parts.push(pathToRegexp(path[i], keys, options).source)\n }\n\n var regexp = new RegExp('(?:' + parts.join('|') + ')', flags(options))\n\n return attachKeys(regexp, keys)\n}\n\n/**\n * Create a path regexp from string input.\n *\n * @param {string} path\n * @param {!Array} keys\n * @param {!Object} options\n * @return {!RegExp}\n */\nfunction stringToRegexp (path, keys, options) {\n return tokensToRegExp(parse(path, options), keys, options)\n}\n\n/**\n * Expose a function for taking tokens and returning a RegExp.\n *\n * @param {!Array} tokens\n * @param {(Array|Object)=} keys\n * @param {Object=} options\n * @return {!RegExp}\n */\nfunction tokensToRegExp (tokens, keys, options) {\n if (!isarray(keys)) {\n options = /** @type {!Object} */ (keys || options)\n keys = []\n }\n\n options = options || {}\n\n var strict = options.strict\n var end = options.end !== false\n var route = ''\n\n // Iterate over the tokens and create our regexp string.\n for (var i = 0; i < tokens.length; i++) {\n var token = tokens[i]\n\n if (typeof token === 'string') {\n route += escapeString(token)\n } else {\n var prefix = escapeString(token.prefix)\n var capture = '(?:' + token.pattern + ')'\n\n keys.push(token)\n\n if (token.repeat) {\n capture += '(?:' + prefix + capture + ')*'\n }\n\n if (token.optional) {\n if (!token.partial) {\n capture = '(?:' + prefix + '(' + capture + '))?'\n } else {\n capture = prefix + '(' + capture + ')?'\n }\n } else {\n capture = prefix + '(' + capture + ')'\n }\n\n route += capture\n }\n }\n\n var delimiter = escapeString(options.delimiter || '/')\n var endsWithDelimiter = route.slice(-delimiter.length) === delimiter\n\n // In non-strict mode we allow a slash at the end of match. If the path to\n // match already ends with a slash, we remove it for consistency. The slash\n // is valid at the end of a path match, not in the middle. This is important\n // in non-ending mode, where \"/test/\" shouldn't match \"/test//route\".\n if (!strict) {\n route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + '(?:' + delimiter + '(?=$))?'\n }\n\n if (end) {\n route += '$'\n } else {\n // In non-ending mode, we need the capturing groups to match as much as\n // possible by using a positive lookahead to the end or next path segment.\n route += strict && endsWithDelimiter ? '' : '(?=' + delimiter + '|$)'\n }\n\n return attachKeys(new RegExp('^' + route, flags(options)), keys)\n}\n\n/**\n * Normalize the given path string, returning a regular expression.\n *\n * An empty array can be passed in for the keys, which will hold the\n * placeholder key descriptions. For example, using `/user/:id`, `keys` will\n * contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.\n *\n * @param {(string|RegExp|Array)} path\n * @param {(Array|Object)=} keys\n * @param {Object=} options\n * @return {!RegExp}\n */\nfunction pathToRegexp (path, keys, options) {\n if (!isarray(keys)) {\n options = /** @type {!Object} */ (keys || options)\n keys = []\n }\n\n options = options || {}\n\n if (path instanceof RegExp) {\n return regexpToRegexp(path, /** @type {!Array} */ (keys))\n }\n\n if (isarray(path)) {\n return arrayToRegexp(/** @type {!Array} */ (path), /** @type {!Array} */ (keys), options)\n }\n\n return stringToRegexp(/** @type {string} */ (path), /** @type {!Array} */ (keys), options)\n}\n","module.exports = Array.isArray || function (arr) {\n return Object.prototype.toString.call(arr) == '[object Array]';\n};\n","/**\n* plotly.js v2.6.2\n* Copyright 2012-2021, Plotly, Inc.\n* All rights reserved.\n* Licensed under the MIT license\n*/\n(function(f){if(typeof exports===\"object\"&&typeof module!==\"undefined\"){module.exports=f()}else if(typeof define===\"function\"&&define.amd){define([],f)}else{var g;if(typeof window!==\"undefined\"){g=window}else if(typeof global!==\"undefined\"){g=global}else if(typeof self!==\"undefined\"){g=self}else{g=this}g.Plotly = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c=\"function\"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error(\"Cannot find module '\"+i+\"'\");throw a.code=\"MODULE_NOT_FOUND\",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u=\"function\"==typeof require&&require,i=0;i:not(.watermark)\": \"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;\",\n \"X:hover .modebar--hover .modebar-group\": \"opacity:1;\",\n \"X .modebar-group\": \"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;\",\n \"X .modebar-btn\": \"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;\",\n \"X .modebar-btn svg\": \"position:relative;top:2px;\",\n \"X .modebar.vertical\": \"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;\",\n \"X .modebar.vertical svg\": \"top:-1px;\",\n \"X .modebar.vertical .modebar-group\": \"display:block;float:none;padding-left:0px;padding-bottom:8px;\",\n \"X .modebar.vertical .modebar-group .modebar-btn\": \"display:block;text-align:center;\",\n \"X [data-title]:before,X [data-title]:after\": \"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;\",\n \"X [data-title]:hover:before,X [data-title]:hover:after\": \"display:block;opacity:1;\",\n \"X [data-title]:before\": \"content:\\\"\\\";position:absolute;background:transparent;border:6px solid transparent;z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;\",\n \"X [data-title]:after\": \"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;\",\n \"X .vertical [data-title]:before,X .vertical [data-title]:after\": \"top:0%;right:200%;\",\n \"X .vertical [data-title]:before\": \"border:6px solid transparent;border-left-color:#69738a;margin-top:8px;margin-right:-30px;\",\n \"X .select-outline\": \"fill:none;stroke-width:1;shape-rendering:crispEdges;\",\n \"X .select-outline-1\": \"stroke:#fff;\",\n \"X .select-outline-2\": \"stroke:#000;stroke-dasharray:2px 2px;\",\n Y: \"font-family:\\\"Open Sans\\\",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;\",\n \"Y p\": \"margin:0;\",\n \"Y .notifier-note\": \"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;\",\n \"Y .notifier-close\": \"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;\",\n \"Y .notifier-close:hover\": \"color:#444;text-decoration:none;cursor:pointer;\"\n};\n\nfor(var selector in rules) {\n var fullSelector = selector.replace(/^,/,' ,')\n .replace(/X/g, '.js-plotly-plot .plotly')\n .replace(/Y/g, '.plotly-notifier');\n Lib.addStyleRule(fullSelector, rules[selector]);\n}\n\n},{\"../src/lib\":503}],2:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/transforms/aggregate');\n\n},{\"../src/transforms/aggregate\":1113}],3:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/bar');\n\n},{\"../src/traces/bar\":656}],4:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/barpolar');\n\n},{\"../src/traces/barpolar\":669}],5:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/box');\n\n},{\"../src/traces/box\":679}],6:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/components/calendars');\n\n},{\"../src/components/calendars\":364}],7:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/candlestick');\n\n},{\"../src/traces/candlestick\":688}],8:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/carpet');\n\n},{\"../src/traces/carpet\":707}],9:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/choropleth');\n\n},{\"../src/traces/choropleth\":721}],10:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/choroplethmapbox');\n\n},{\"../src/traces/choroplethmapbox\":728}],11:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/cone');\n\n},{\"../src/traces/cone\":734}],12:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/contour');\n\n},{\"../src/traces/contour\":749}],13:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/contourcarpet');\n\n},{\"../src/traces/contourcarpet\":760}],14:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/core');\n\n},{\"../src/core\":481}],15:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/densitymapbox');\n\n},{\"../src/traces/densitymapbox\":768}],16:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/transforms/filter');\n\n},{\"../src/transforms/filter\":1114}],17:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/funnel');\n\n},{\"../src/traces/funnel\":778}],18:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/funnelarea');\n\n},{\"../src/traces/funnelarea\":787}],19:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/transforms/groupby');\n\n},{\"../src/transforms/groupby\":1115}],20:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/heatmap');\n\n},{\"../src/traces/heatmap\":800}],21:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/heatmapgl');\n\n},{\"../src/traces/heatmapgl\":810}],22:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/histogram');\n\n},{\"../src/traces/histogram\":822}],23:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/histogram2d');\n\n},{\"../src/traces/histogram2d\":828}],24:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/histogram2dcontour');\n\n},{\"../src/traces/histogram2dcontour\":832}],25:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/icicle');\n\n},{\"../src/traces/icicle\":838}],26:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/image');\n\n},{\"../src/traces/image\":851}],27:[function(_dereq_,module,exports){\n'use strict';\n\nvar Plotly = _dereq_('./core');\n\nPlotly.register([\n // traces\n _dereq_('./bar'),\n _dereq_('./box'),\n _dereq_('./heatmap'),\n _dereq_('./histogram'),\n _dereq_('./histogram2d'),\n _dereq_('./histogram2dcontour'),\n _dereq_('./contour'),\n _dereq_('./scatterternary'),\n _dereq_('./violin'),\n _dereq_('./funnel'),\n _dereq_('./waterfall'),\n _dereq_('./image'),\n _dereq_('./pie'),\n _dereq_('./sunburst'),\n _dereq_('./treemap'),\n _dereq_('./icicle'),\n _dereq_('./funnelarea'),\n _dereq_('./scatter3d'),\n _dereq_('./surface'),\n _dereq_('./isosurface'),\n _dereq_('./volume'),\n _dereq_('./mesh3d'),\n _dereq_('./cone'),\n _dereq_('./streamtube'),\n _dereq_('./scattergeo'),\n _dereq_('./choropleth'),\n _dereq_('./scattergl'),\n _dereq_('./splom'),\n _dereq_('./pointcloud'),\n _dereq_('./heatmapgl'),\n _dereq_('./parcoords'),\n _dereq_('./parcats'),\n _dereq_('./scattermapbox'),\n _dereq_('./choroplethmapbox'),\n _dereq_('./densitymapbox'),\n _dereq_('./sankey'),\n _dereq_('./indicator'),\n _dereq_('./table'),\n _dereq_('./carpet'),\n _dereq_('./scattercarpet'),\n _dereq_('./contourcarpet'),\n _dereq_('./ohlc'),\n _dereq_('./candlestick'),\n _dereq_('./scatterpolar'),\n _dereq_('./scatterpolargl'),\n _dereq_('./barpolar'),\n _dereq_('./scattersmith'),\n\n // transforms\n _dereq_('./aggregate'),\n _dereq_('./filter'),\n _dereq_('./groupby'),\n _dereq_('./sort'),\n\n // components\n _dereq_('./calendars'),\n]);\n\nmodule.exports = Plotly;\n\n},{\"./aggregate\":2,\"./bar\":3,\"./barpolar\":4,\"./box\":5,\"./calendars\":6,\"./candlestick\":7,\"./carpet\":8,\"./choropleth\":9,\"./choroplethmapbox\":10,\"./cone\":11,\"./contour\":12,\"./contourcarpet\":13,\"./core\":14,\"./densitymapbox\":15,\"./filter\":16,\"./funnel\":17,\"./funnelarea\":18,\"./groupby\":19,\"./heatmap\":20,\"./heatmapgl\":21,\"./histogram\":22,\"./histogram2d\":23,\"./histogram2dcontour\":24,\"./icicle\":25,\"./image\":26,\"./indicator\":28,\"./isosurface\":29,\"./mesh3d\":30,\"./ohlc\":31,\"./parcats\":32,\"./parcoords\":33,\"./pie\":34,\"./pointcloud\":35,\"./sankey\":36,\"./scatter3d\":37,\"./scattercarpet\":38,\"./scattergeo\":39,\"./scattergl\":40,\"./scattermapbox\":41,\"./scatterpolar\":42,\"./scatterpolargl\":43,\"./scattersmith\":44,\"./scatterternary\":45,\"./sort\":46,\"./splom\":47,\"./streamtube\":48,\"./sunburst\":49,\"./surface\":50,\"./table\":51,\"./treemap\":52,\"./violin\":53,\"./volume\":54,\"./waterfall\":55}],28:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/indicator');\n\n},{\"../src/traces/indicator\":859}],29:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/isosurface');\n\n},{\"../src/traces/isosurface\":865}],30:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/mesh3d');\n\n},{\"../src/traces/mesh3d\":870}],31:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/ohlc');\n\n},{\"../src/traces/ohlc\":875}],32:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/parcats');\n\n},{\"../src/traces/parcats\":884}],33:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/parcoords');\n\n},{\"../src/traces/parcoords\":894}],34:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/pie');\n\n},{\"../src/traces/pie\":905}],35:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/pointcloud');\n\n},{\"../src/traces/pointcloud\":914}],36:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/sankey');\n\n},{\"../src/traces/sankey\":920}],37:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/scatter3d');\n\n},{\"../src/traces/scatter3d\":958}],38:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/scattercarpet');\n\n},{\"../src/traces/scattercarpet\":965}],39:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/scattergeo');\n\n},{\"../src/traces/scattergeo\":973}],40:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/scattergl');\n\n},{\"../src/traces/scattergl\":986}],41:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/scattermapbox');\n\n},{\"../src/traces/scattermapbox\":996}],42:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/scatterpolar');\n\n},{\"../src/traces/scatterpolar\":1004}],43:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/scatterpolargl');\n\n},{\"../src/traces/scatterpolargl\":1011}],44:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/scattersmith');\n\n},{\"../src/traces/scattersmith\":1018}],45:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/scatterternary');\n\n},{\"../src/traces/scatterternary\":1026}],46:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/transforms/sort');\n\n},{\"../src/transforms/sort\":1117}],47:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/splom');\n\n},{\"../src/traces/splom\":1035}],48:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/streamtube');\n\n},{\"../src/traces/streamtube\":1043}],49:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/sunburst');\n\n},{\"../src/traces/sunburst\":1051}],50:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/surface');\n\n},{\"../src/traces/surface\":1060}],51:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/table');\n\n},{\"../src/traces/table\":1068}],52:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/treemap');\n\n},{\"../src/traces/treemap\":1079}],53:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/violin');\n\n},{\"../src/traces/violin\":1092}],54:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/volume');\n\n},{\"../src/traces/volume\":1100}],55:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = _dereq_('../src/traces/waterfall');\n\n},{\"../src/traces/waterfall\":1108}],56:[function(_dereq_,module,exports){\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, _dereq_('d3-array'), _dereq_('d3-collection'), _dereq_('d3-shape'), _dereq_('elementary-circuits-directed-graph')) :\n typeof define === 'function' && define.amd ? define(['exports', 'd3-array', 'd3-collection', 'd3-shape', 'elementary-circuits-directed-graph'], factory) :\n (factory((global.d3 = global.d3 || {}),global.d3,global.d3,global.d3,null));\n}(this, (function (exports,d3Array,d3Collection,d3Shape,findCircuits) { 'use strict';\n\n findCircuits = findCircuits && findCircuits.hasOwnProperty('default') ? findCircuits['default'] : findCircuits;\n\n // For a given link, return the target node's depth\n function targetDepth(d) {\n return d.target.depth;\n }\n\n // The depth of a node when the nodeAlign (align) is set to 'left'\n function left(node) {\n return node.depth;\n }\n\n // The depth of a node when the nodeAlign (align) is set to 'right'\n function right(node, n) {\n return n - 1 - node.height;\n }\n\n // The depth of a node when the nodeAlign (align) is set to 'justify'\n function justify(node, n) {\n return node.sourceLinks.length ? node.depth : n - 1;\n }\n\n // The depth of a node when the nodeAlign (align) is set to 'center'\n function center(node) {\n return node.targetLinks.length ? node.depth : node.sourceLinks.length ? d3Array.min(node.sourceLinks, targetDepth) - 1 : 0;\n }\n\n // returns a function, using the parameter given to the sankey setting\n function constant(x) {\n return function () {\n return x;\n };\n }\n\n var _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n\n /// https://github.com/tomshanley/d3-sankeyCircular-circular\n\n // sort links' breadth (ie top to bottom in a column), based on their source nodes' breadths\n function ascendingSourceBreadth(a, b) {\n return ascendingBreadth(a.source, b.source) || a.index - b.index;\n }\n\n // sort links' breadth (ie top to bottom in a column), based on their target nodes' breadths\n function ascendingTargetBreadth(a, b) {\n return ascendingBreadth(a.target, b.target) || a.index - b.index;\n }\n\n // sort nodes' breadth (ie top to bottom in a column)\n // if both nodes have circular links, or both don't have circular links, then sort by the top (y0) of the node\n // else push nodes that have top circular links to the top, and nodes that have bottom circular links to the bottom\n function ascendingBreadth(a, b) {\n if (a.partOfCycle === b.partOfCycle) {\n return a.y0 - b.y0;\n } else {\n if (a.circularLinkType === 'top' || b.circularLinkType === 'bottom') {\n return -1;\n } else {\n return 1;\n }\n }\n }\n\n // return the value of a node or link\n function value(d) {\n return d.value;\n }\n\n // return the vertical center of a node\n function nodeCenter(node) {\n return (node.y0 + node.y1) / 2;\n }\n\n // return the vertical center of a link's source node\n function linkSourceCenter(link) {\n return nodeCenter(link.source);\n }\n\n // return the vertical center of a link's target node\n function linkTargetCenter(link) {\n return nodeCenter(link.target);\n }\n\n // Return the default value for ID for node, d.index\n function defaultId(d) {\n return d.index;\n }\n\n // Return the default object the graph's nodes, graph.nodes\n function defaultNodes(graph) {\n return graph.nodes;\n }\n\n // Return the default object the graph's nodes, graph.links\n function defaultLinks(graph) {\n return graph.links;\n }\n\n // Return the node from the collection that matches the provided ID, or throw an error if no match\n function find(nodeById, id) {\n var node = nodeById.get(id);\n if (!node) throw new Error('missing: ' + id);\n return node;\n }\n\n function getNodeID(node, id) {\n return id(node);\n }\n\n // The main sankeyCircular functions\n\n // Some constants for circular link calculations\n var verticalMargin = 25;\n var baseRadius = 10;\n var scale = 0.3; //Possibly let user control this, although anything over 0.5 starts to get too cramped\n\n function sankeyCircular () {\n // Set the default values\n var x0 = 0,\n y0 = 0,\n x1 = 1,\n y1 = 1,\n // extent\n dx = 24,\n // nodeWidth\n py,\n // nodePadding, for vertical postioning\n id = defaultId,\n align = justify,\n nodes = defaultNodes,\n links = defaultLinks,\n iterations = 32,\n circularLinkGap = 2,\n paddingRatio,\n sortNodes = null;\n\n function sankeyCircular() {\n var graph = {\n nodes: nodes.apply(null, arguments),\n links: links.apply(null, arguments)\n\n // Process the graph's nodes and links, setting their positions\n\n // 1. Associate the nodes with their respective links, and vice versa\n };computeNodeLinks(graph);\n\n // 2. Determine which links result in a circular path in the graph\n identifyCircles(graph, id, sortNodes);\n\n // 4. Calculate the nodes' values, based on the values of the incoming and outgoing links\n computeNodeValues(graph);\n\n // 5. Calculate the nodes' depth based on the incoming and outgoing links\n // Sets the nodes':\n // - depth: the depth in the graph\n // - column: the depth (0, 1, 2, etc), as is relates to visual position from left to right\n // - x0, x1: the x coordinates, as is relates to visual position from left to right\n computeNodeDepths(graph);\n\n // 3. Determine how the circular links will be drawn,\n // either travelling back above the main chart (\"top\")\n // or below the main chart (\"bottom\")\n selectCircularLinkTypes(graph, id);\n\n // 6. Calculate the nodes' and links' vertical position within their respective column\n // Also readjusts sankeyCircular size if circular links are needed, and node x's\n computeNodeBreadths(graph, iterations, id);\n computeLinkBreadths(graph);\n\n // 7. Sort links per node, based on the links' source/target nodes' breadths\n // 8. Adjust nodes that overlap links that span 2+ columns\n var linkSortingIterations = 4; //Possibly let user control this number, like the iterations over node placement\n for (var iteration = 0; iteration < linkSortingIterations; iteration++) {\n\n sortSourceLinks(graph, y1, id);\n sortTargetLinks(graph, y1, id);\n resolveNodeLinkOverlaps(graph, y0, y1, id);\n sortSourceLinks(graph, y1, id);\n sortTargetLinks(graph, y1, id);\n }\n\n // 8.1 Adjust node and link positions back to fill height of chart area if compressed\n fillHeight(graph, y0, y1);\n\n // 9. Calculate visually appealling path for the circular paths, and create the \"d\" string\n addCircularPathData(graph, circularLinkGap, y1, id);\n\n return graph;\n } // end of sankeyCircular function\n\n\n // Set the sankeyCircular parameters\n // nodeID, nodeAlign, nodeWidth, nodePadding, nodes, links, size, extent, iterations, nodePaddingRatio, circularLinkGap\n sankeyCircular.nodeId = function (_) {\n return arguments.length ? (id = typeof _ === 'function' ? _ : constant(_), sankeyCircular) : id;\n };\n\n sankeyCircular.nodeAlign = function (_) {\n return arguments.length ? (align = typeof _ === 'function' ? _ : constant(_), sankeyCircular) : align;\n };\n\n sankeyCircular.nodeWidth = function (_) {\n return arguments.length ? (dx = +_, sankeyCircular) : dx;\n };\n\n sankeyCircular.nodePadding = function (_) {\n return arguments.length ? (py = +_, sankeyCircular) : py;\n };\n\n sankeyCircular.nodes = function (_) {\n return arguments.length ? (nodes = typeof _ === 'function' ? _ : constant(_), sankeyCircular) : nodes;\n };\n\n sankeyCircular.links = function (_) {\n return arguments.length ? (links = typeof _ === 'function' ? _ : constant(_), sankeyCircular) : links;\n };\n\n sankeyCircular.size = function (_) {\n return arguments.length ? (x0 = y0 = 0, x1 = +_[0], y1 = +_[1], sankeyCircular) : [x1 - x0, y1 - y0];\n };\n\n sankeyCircular.extent = function (_) {\n return arguments.length ? (x0 = +_[0][0], x1 = +_[1][0], y0 = +_[0][1], y1 = +_[1][1], sankeyCircular) : [[x0, y0], [x1, y1]];\n };\n\n sankeyCircular.iterations = function (_) {\n return arguments.length ? (iterations = +_, sankeyCircular) : iterations;\n };\n\n sankeyCircular.circularLinkGap = function (_) {\n return arguments.length ? (circularLinkGap = +_, sankeyCircular) : circularLinkGap;\n };\n\n sankeyCircular.nodePaddingRatio = function (_) {\n return arguments.length ? (paddingRatio = +_, sankeyCircular) : paddingRatio;\n };\n\n sankeyCircular.sortNodes = function (_) {\n return arguments.length ? (sortNodes = _, sankeyCircular) : sortNodes;\n };\n\n sankeyCircular.update = function (graph) {\n // 5. Calculate the nodes' depth based on the incoming and outgoing links\n // Sets the nodes':\n // - depth: the depth in the graph\n // - column: the depth (0, 1, 2, etc), as is relates to visual position from left to right\n // - x0, x1: the x coordinates, as is relates to visual position from left to right\n // computeNodeDepths(graph)\n\n // 3. Determine how the circular links will be drawn,\n // either travelling back above the main chart (\"top\")\n // or below the main chart (\"bottom\")\n selectCircularLinkTypes(graph, id);\n\n // 6. Calculate the nodes' and links' vertical position within their respective column\n // Also readjusts sankeyCircular size if circular links are needed, and node x's\n // computeNodeBreadths(graph, iterations, id)\n computeLinkBreadths(graph);\n\n // Force position of circular link type based on position\n graph.links.forEach(function (link) {\n if (link.circular) {\n link.circularLinkType = link.y0 + link.y1 < y1 ? 'top' : 'bottom';\n\n link.source.circularLinkType = link.circularLinkType;\n link.target.circularLinkType = link.circularLinkType;\n }\n });\n\n sortSourceLinks(graph, y1, id, false); // Sort links but do not move nodes\n sortTargetLinks(graph, y1, id);\n\n // 7. Sort links per node, based on the links' source/target nodes' breadths\n // 8. Adjust nodes that overlap links that span 2+ columns\n // var linkSortingIterations = 4; //Possibly let user control this number, like the iterations over node placement\n // for (var iteration = 0; iteration < linkSortingIterations; iteration++) {\n //\n // sortSourceLinks(graph, y1, id)\n // sortTargetLinks(graph, y1, id)\n // resolveNodeLinkOverlaps(graph, y0, y1, id)\n // sortSourceLinks(graph, y1, id)\n // sortTargetLinks(graph, y1, id)\n //\n // }\n\n // 8.1 Adjust node and link positions back to fill height of chart area if compressed\n // fillHeight(graph, y0, y1)\n\n // 9. Calculate visually appealling path for the circular paths, and create the \"d\" string\n addCircularPathData(graph, circularLinkGap, y1, id);\n return graph;\n };\n\n // Populate the sourceLinks and targetLinks for each node.\n // Also, if the source and target are not objects, assume they are indices.\n function computeNodeLinks(graph) {\n graph.nodes.forEach(function (node, i) {\n node.index = i;\n node.sourceLinks = [];\n node.targetLinks = [];\n });\n var nodeById = d3Collection.map(graph.nodes, id);\n graph.links.forEach(function (link, i) {\n link.index = i;\n var source = link.source;\n var target = link.target;\n if ((typeof source === \"undefined\" ? \"undefined\" : _typeof(source)) !== 'object') {\n source = link.source = find(nodeById, source);\n }\n if ((typeof target === \"undefined\" ? \"undefined\" : _typeof(target)) !== 'object') {\n target = link.target = find(nodeById, target);\n }\n source.sourceLinks.push(link);\n target.targetLinks.push(link);\n });\n return graph;\n }\n\n // Compute the value (size) and cycleness of each node by summing the associated links.\n function computeNodeValues(graph) {\n graph.nodes.forEach(function (node) {\n node.partOfCycle = false;\n node.value = Math.max(d3Array.sum(node.sourceLinks, value), d3Array.sum(node.targetLinks, value));\n node.sourceLinks.forEach(function (link) {\n if (link.circular) {\n node.partOfCycle = true;\n node.circularLinkType = link.circularLinkType;\n }\n });\n node.targetLinks.forEach(function (link) {\n if (link.circular) {\n node.partOfCycle = true;\n node.circularLinkType = link.circularLinkType;\n }\n });\n });\n }\n\n function getCircleMargins(graph) {\n var totalTopLinksWidth = 0,\n totalBottomLinksWidth = 0,\n totalRightLinksWidth = 0,\n totalLeftLinksWidth = 0;\n\n var maxColumn = d3Array.max(graph.nodes, function (node) {\n return node.column;\n });\n\n graph.links.forEach(function (link) {\n if (link.circular) {\n if (link.circularLinkType == 'top') {\n totalTopLinksWidth = totalTopLinksWidth + link.width;\n } else {\n totalBottomLinksWidth = totalBottomLinksWidth + link.width;\n }\n\n if (link.target.column == 0) {\n totalLeftLinksWidth = totalLeftLinksWidth + link.width;\n }\n\n if (link.source.column == maxColumn) {\n totalRightLinksWidth = totalRightLinksWidth + link.width;\n }\n }\n });\n\n //account for radius of curves and padding between links\n totalTopLinksWidth = totalTopLinksWidth > 0 ? totalTopLinksWidth + verticalMargin + baseRadius : totalTopLinksWidth;\n totalBottomLinksWidth = totalBottomLinksWidth > 0 ? totalBottomLinksWidth + verticalMargin + baseRadius : totalBottomLinksWidth;\n totalRightLinksWidth = totalRightLinksWidth > 0 ? totalRightLinksWidth + verticalMargin + baseRadius : totalRightLinksWidth;\n totalLeftLinksWidth = totalLeftLinksWidth > 0 ? totalLeftLinksWidth + verticalMargin + baseRadius : totalLeftLinksWidth;\n\n return { \"top\": totalTopLinksWidth, \"bottom\": totalBottomLinksWidth, \"left\": totalLeftLinksWidth, \"right\": totalRightLinksWidth };\n }\n\n // Update the x0, y0, x1 and y1 for the sankeyCircular, to allow space for any circular links\n function scaleSankeySize(graph, margin) {\n\n var maxColumn = d3Array.max(graph.nodes, function (node) {\n return node.column;\n });\n\n var currentWidth = x1 - x0;\n var currentHeight = y1 - y0;\n\n var newWidth = currentWidth + margin.right + margin.left;\n var newHeight = currentHeight + margin.top + margin.bottom;\n\n var scaleX = currentWidth / newWidth;\n var scaleY = currentHeight / newHeight;\n\n x0 = x0 * scaleX + margin.left;\n x1 = margin.right == 0 ? x1 : x1 * scaleX;\n y0 = y0 * scaleY + margin.top;\n y1 = y1 * scaleY;\n\n graph.nodes.forEach(function (node) {\n node.x0 = x0 + node.column * ((x1 - x0 - dx) / maxColumn);\n node.x1 = node.x0 + dx;\n });\n\n return scaleY;\n }\n\n // Iteratively assign the depth for each node.\n // Nodes are assigned the maximum depth of incoming neighbors plus one;\n // nodes with no incoming links are assigned depth zero, while\n // nodes with no outgoing links are assigned the maximum depth.\n function computeNodeDepths(graph) {\n var nodes, next, x;\n\n for (nodes = graph.nodes, next = [], x = 0; nodes.length; ++x, nodes = next, next = []) {\n nodes.forEach(function (node) {\n node.depth = x;\n node.sourceLinks.forEach(function (link) {\n if (next.indexOf(link.target) < 0 && !link.circular) {\n next.push(link.target);\n }\n });\n });\n }\n\n for (nodes = graph.nodes, next = [], x = 0; nodes.length; ++x, nodes = next, next = []) {\n nodes.forEach(function (node) {\n node.height = x;\n node.targetLinks.forEach(function (link) {\n if (next.indexOf(link.source) < 0 && !link.circular) {\n next.push(link.source);\n }\n });\n });\n }\n\n // assign column numbers, and get max value\n graph.nodes.forEach(function (node) {\n node.column = Math.floor(align.call(null, node, x));\n });\n }\n\n // Assign nodes' breadths, and then shift nodes that overlap (resolveCollisions)\n function computeNodeBreadths(graph, iterations, id) {\n var columns = d3Collection.nest().key(function (d) {\n return d.column;\n }).sortKeys(d3Array.ascending).entries(graph.nodes).map(function (d) {\n return d.values;\n });\n\n initializeNodeBreadth(id);\n resolveCollisions();\n\n for (var alpha = 1, n = iterations; n > 0; --n) {\n relaxLeftAndRight(alpha *= 0.99, id);\n resolveCollisions();\n }\n\n function initializeNodeBreadth(id) {\n\n //override py if nodePadding has been set\n if (paddingRatio) {\n var padding = Infinity;\n columns.forEach(function (nodes) {\n var thisPadding = y1 * paddingRatio / (nodes.length + 1);\n padding = thisPadding < padding ? thisPadding : padding;\n });\n py = padding;\n }\n\n var ky = d3Array.min(columns, function (nodes) {\n return (y1 - y0 - (nodes.length - 1) * py) / d3Array.sum(nodes, value);\n });\n\n //calculate the widths of the links\n ky = ky * scale;\n\n graph.links.forEach(function (link) {\n link.width = link.value * ky;\n });\n\n //determine how much to scale down the chart, based on circular links\n var margin = getCircleMargins(graph);\n var ratio = scaleSankeySize(graph, margin);\n\n //re-calculate widths\n ky = ky * ratio;\n\n graph.links.forEach(function (link) {\n link.width = link.value * ky;\n });\n\n columns.forEach(function (nodes) {\n var nodesLength = nodes.length;\n nodes.forEach(function (node, i) {\n if (node.depth == columns.length - 1 && nodesLength == 1) {\n node.y0 = y1 / 2 - node.value * ky;\n node.y1 = node.y0 + node.value * ky;\n } else if (node.depth == 0 && nodesLength == 1) {\n node.y0 = y1 / 2 - node.value * ky;\n node.y1 = node.y0 + node.value * ky;\n } else if (node.partOfCycle) {\n if (numberOfNonSelfLinkingCycles(node, id) == 0) {\n node.y0 = y1 / 2 + i;\n node.y1 = node.y0 + node.value * ky;\n } else if (node.circularLinkType == 'top') {\n node.y0 = y0 + i;\n node.y1 = node.y0 + node.value * ky;\n } else {\n node.y0 = y1 - node.value * ky - i;\n node.y1 = node.y0 + node.value * ky;\n }\n } else {\n if (margin.top == 0 || margin.bottom == 0) {\n node.y0 = (y1 - y0) / nodesLength * i;\n node.y1 = node.y0 + node.value * ky;\n } else {\n node.y0 = (y1 - y0) / 2 - nodesLength / 2 + i;\n node.y1 = node.y0 + node.value * ky;\n }\n }\n });\n });\n }\n\n // For each node in each column, check the node's vertical position in relation to its targets and sources vertical position\n // and shift up/down to be closer to the vertical middle of those targets and sources\n function relaxLeftAndRight(alpha, id) {\n var columnsLength = columns.length;\n\n columns.forEach(function (nodes) {\n var n = nodes.length;\n var depth = nodes[0].depth;\n\n nodes.forEach(function (node) {\n // check the node is not an orphan\n var nodeHeight;\n if (node.sourceLinks.length || node.targetLinks.length) {\n if (node.partOfCycle && numberOfNonSelfLinkingCycles(node, id) > 0) ; else if (depth == 0 && n == 1) {\n nodeHeight = node.y1 - node.y0;\n\n node.y0 = y1 / 2 - nodeHeight / 2;\n node.y1 = y1 / 2 + nodeHeight / 2;\n } else if (depth == columnsLength - 1 && n == 1) {\n nodeHeight = node.y1 - node.y0;\n\n node.y0 = y1 / 2 - nodeHeight / 2;\n node.y1 = y1 / 2 + nodeHeight / 2;\n } else {\n var avg = 0;\n\n var avgTargetY = d3Array.mean(node.sourceLinks, linkTargetCenter);\n var avgSourceY = d3Array.mean(node.targetLinks, linkSourceCenter);\n\n if (avgTargetY && avgSourceY) {\n avg = (avgTargetY + avgSourceY) / 2;\n } else {\n avg = avgTargetY || avgSourceY;\n }\n\n var dy = (avg - nodeCenter(node)) * alpha;\n // positive if it node needs to move down\n node.y0 += dy;\n node.y1 += dy;\n }\n }\n });\n });\n }\n\n // For each column, check if nodes are overlapping, and if so, shift up/down\n function resolveCollisions() {\n columns.forEach(function (nodes) {\n var node,\n dy,\n y = y0,\n n = nodes.length,\n i;\n\n // Push any overlapping nodes down.\n nodes.sort(ascendingBreadth);\n\n for (i = 0; i < n; ++i) {\n node = nodes[i];\n dy = y - node.y0;\n\n if (dy > 0) {\n node.y0 += dy;\n node.y1 += dy;\n }\n y = node.y1 + py;\n }\n\n // If the bottommost node goes outside the bounds, push it back up.\n dy = y - py - y1;\n if (dy > 0) {\n y = node.y0 -= dy, node.y1 -= dy;\n\n // Push any overlapping nodes back up.\n for (i = n - 2; i >= 0; --i) {\n node = nodes[i];\n dy = node.y1 + py - y;\n if (dy > 0) node.y0 -= dy, node.y1 -= dy;\n y = node.y0;\n }\n }\n });\n }\n }\n\n // Assign the links y0 and y1 based on source/target nodes position,\n // plus the link's relative position to other links to the same node\n function computeLinkBreadths(graph) {\n graph.nodes.forEach(function (node) {\n node.sourceLinks.sort(ascendingTargetBreadth);\n node.targetLinks.sort(ascendingSourceBreadth);\n });\n graph.nodes.forEach(function (node) {\n var y0 = node.y0;\n var y1 = y0;\n\n // start from the bottom of the node for cycle links\n var y0cycle = node.y1;\n var y1cycle = y0cycle;\n\n node.sourceLinks.forEach(function (link) {\n if (link.circular) {\n link.y0 = y0cycle - link.width / 2;\n y0cycle = y0cycle - link.width;\n } else {\n link.y0 = y0 + link.width / 2;\n y0 += link.width;\n }\n });\n node.targetLinks.forEach(function (link) {\n if (link.circular) {\n link.y1 = y1cycle - link.width / 2;\n y1cycle = y1cycle - link.width;\n } else {\n link.y1 = y1 + link.width / 2;\n y1 += link.width;\n }\n });\n });\n }\n\n return sankeyCircular;\n }\n\n /// /////////////////////////////////////////////////////////////////////////////////\n // Cycle functions\n // portion of code to detect circular links based on Colin Fergus' bl.ock https://gist.github.com/cfergus/3956043\n\n // Identify circles in the link objects\n function identifyCircles(graph, id, sortNodes) {\n var circularLinkID = 0;\n if (sortNodes === null) {\n\n // Building adjacency graph\n var adjList = [];\n for (var i = 0; i < graph.links.length; i++) {\n var link = graph.links[i];\n var source = link.source.index;\n var target = link.target.index;\n if (!adjList[source]) adjList[source] = [];\n if (!adjList[target]) adjList[target] = [];\n\n // Add links if not already in set\n if (adjList[source].indexOf(target) === -1) adjList[source].push(target);\n }\n\n // Find all elementary circuits\n var cycles = findCircuits(adjList);\n\n // Sort by circuits length\n cycles.sort(function (a, b) {\n return a.length - b.length;\n });\n\n var circularLinks = {};\n for (i = 0; i < cycles.length; i++) {\n var cycle = cycles[i];\n var last = cycle.slice(-2);\n if (!circularLinks[last[0]]) circularLinks[last[0]] = {};\n circularLinks[last[0]][last[1]] = true;\n }\n\n graph.links.forEach(function (link) {\n var target = link.target.index;\n var source = link.source.index;\n // If self-linking or a back-edge\n if (target === source || circularLinks[source] && circularLinks[source][target]) {\n link.circular = true;\n link.circularLinkID = circularLinkID;\n circularLinkID = circularLinkID + 1;\n } else {\n link.circular = false;\n }\n });\n } else {\n graph.links.forEach(function (link) {\n if (link.source[sortNodes] < link.target[sortNodes]) {\n link.circular = false;\n } else {\n link.circular = true;\n link.circularLinkID = circularLinkID;\n circularLinkID = circularLinkID + 1;\n }\n });\n }\n }\n\n // Assign a circular link type (top or bottom), based on:\n // - if the source/target node already has circular links, then use the same type\n // - if not, choose the type with fewer links\n function selectCircularLinkTypes(graph, id) {\n var numberOfTops = 0;\n var numberOfBottoms = 0;\n graph.links.forEach(function (link) {\n if (link.circular) {\n // if either souce or target has type already use that\n if (link.source.circularLinkType || link.target.circularLinkType) {\n // default to source type if available\n link.circularLinkType = link.source.circularLinkType ? link.source.circularLinkType : link.target.circularLinkType;\n } else {\n link.circularLinkType = numberOfTops < numberOfBottoms ? 'top' : 'bottom';\n }\n\n if (link.circularLinkType == 'top') {\n numberOfTops = numberOfTops + 1;\n } else {\n numberOfBottoms = numberOfBottoms + 1;\n }\n\n graph.nodes.forEach(function (node) {\n if (getNodeID(node, id) == getNodeID(link.source, id) || getNodeID(node, id) == getNodeID(link.target, id)) {\n node.circularLinkType = link.circularLinkType;\n }\n });\n }\n });\n\n //correct self-linking links to be same direction as node\n graph.links.forEach(function (link) {\n if (link.circular) {\n //if both source and target node are same type, then link should have same type\n if (link.source.circularLinkType == link.target.circularLinkType) {\n link.circularLinkType = link.source.circularLinkType;\n }\n //if link is selflinking, then link should have same type as node\n if (selfLinking(link, id)) {\n link.circularLinkType = link.source.circularLinkType;\n }\n }\n });\n }\n\n // Return the angle between a straight line between the source and target of the link, and the vertical plane of the node\n function linkAngle(link) {\n var adjacent = Math.abs(link.y1 - link.y0);\n var opposite = Math.abs(link.target.x0 - link.source.x1);\n\n return Math.atan(opposite / adjacent);\n }\n\n // Check if two circular links potentially overlap\n function circularLinksCross(link1, link2) {\n if (link1.source.column < link2.target.column) {\n return false;\n } else if (link1.target.column > link2.source.column) {\n return false;\n } else {\n return true;\n }\n }\n\n // Return the number of circular links for node, not including self linking links\n function numberOfNonSelfLinkingCycles(node, id) {\n var sourceCount = 0;\n node.sourceLinks.forEach(function (l) {\n sourceCount = l.circular && !selfLinking(l, id) ? sourceCount + 1 : sourceCount;\n });\n\n var targetCount = 0;\n node.targetLinks.forEach(function (l) {\n targetCount = l.circular && !selfLinking(l, id) ? targetCount + 1 : targetCount;\n });\n\n return sourceCount + targetCount;\n }\n\n // Check if a circular link is the only circular link for both its source and target node\n function onlyCircularLink(link) {\n var nodeSourceLinks = link.source.sourceLinks;\n var sourceCount = 0;\n nodeSourceLinks.forEach(function (l) {\n sourceCount = l.circular ? sourceCount + 1 : sourceCount;\n });\n\n var nodeTargetLinks = link.target.targetLinks;\n var targetCount = 0;\n nodeTargetLinks.forEach(function (l) {\n targetCount = l.circular ? targetCount + 1 : targetCount;\n });\n\n if (sourceCount > 1 || targetCount > 1) {\n return false;\n } else {\n return true;\n }\n }\n\n // creates vertical buffer values per set of top/bottom links\n function calcVerticalBuffer(links, circularLinkGap, id) {\n links.sort(sortLinkColumnAscending);\n links.forEach(function (link, i) {\n var buffer = 0;\n\n if (selfLinking(link, id) && onlyCircularLink(link)) {\n link.circularPathData.verticalBuffer = buffer + link.width / 2;\n } else {\n var j = 0;\n for (j; j < i; j++) {\n if (circularLinksCross(links[i], links[j])) {\n var bufferOverThisLink = links[j].circularPathData.verticalBuffer + links[j].width / 2 + circularLinkGap;\n buffer = bufferOverThisLink > buffer ? bufferOverThisLink : buffer;\n }\n }\n\n link.circularPathData.verticalBuffer = buffer + link.width / 2;\n }\n });\n\n return links;\n }\n\n // calculate the optimum path for a link to reduce overlaps\n function addCircularPathData(graph, circularLinkGap, y1, id) {\n //var baseRadius = 10\n var buffer = 5;\n //var verticalMargin = 25\n\n var minY = d3Array.min(graph.links, function (link) {\n return link.source.y0;\n });\n\n // create object for circular Path Data\n graph.links.forEach(function (link) {\n if (link.circular) {\n link.circularPathData = {};\n }\n });\n\n // calc vertical offsets per top/bottom links\n var topLinks = graph.links.filter(function (l) {\n return l.circularLinkType == 'top';\n });\n /* topLinks = */calcVerticalBuffer(topLinks, circularLinkGap, id);\n\n var bottomLinks = graph.links.filter(function (l) {\n return l.circularLinkType == 'bottom';\n });\n /* bottomLinks = */calcVerticalBuffer(bottomLinks, circularLinkGap, id);\n\n // add the base data for each link\n graph.links.forEach(function (link) {\n if (link.circular) {\n link.circularPathData.arcRadius = link.width + baseRadius;\n link.circularPathData.leftNodeBuffer = buffer;\n link.circularPathData.rightNodeBuffer = buffer;\n link.circularPathData.sourceWidth = link.source.x1 - link.source.x0;\n link.circularPathData.sourceX = link.source.x0 + link.circularPathData.sourceWidth;\n link.circularPathData.targetX = link.target.x0;\n link.circularPathData.sourceY = link.y0;\n link.circularPathData.targetY = link.y1;\n\n // for self linking paths, and that the only circular link in/out of that node\n if (selfLinking(link, id) && onlyCircularLink(link)) {\n link.circularPathData.leftSmallArcRadius = baseRadius + link.width / 2;\n link.circularPathData.leftLargeArcRadius = baseRadius + link.width / 2;\n link.circularPathData.rightSmallArcRadius = baseRadius + link.width / 2;\n link.circularPathData.rightLargeArcRadius = baseRadius + link.width / 2;\n\n if (link.circularLinkType == 'bottom') {\n link.circularPathData.verticalFullExtent = link.source.y1 + verticalMargin + link.circularPathData.verticalBuffer;\n link.circularPathData.verticalLeftInnerExtent = link.circularPathData.verticalFullExtent - link.circularPathData.leftLargeArcRadius;\n link.circularPathData.verticalRightInnerExtent = link.circularPathData.verticalFullExtent - link.circularPathData.rightLargeArcRadius;\n } else {\n // top links\n link.circularPathData.verticalFullExtent = link.source.y0 - verticalMargin - link.circularPathData.verticalBuffer;\n link.circularPathData.verticalLeftInnerExtent = link.circularPathData.verticalFullExtent + link.circularPathData.leftLargeArcRadius;\n link.circularPathData.verticalRightInnerExtent = link.circularPathData.verticalFullExtent + link.circularPathData.rightLargeArcRadius;\n }\n } else {\n // else calculate normally\n // add left extent coordinates, based on links with same source column and circularLink type\n var thisColumn = link.source.column;\n var thisCircularLinkType = link.circularLinkType;\n var sameColumnLinks = graph.links.filter(function (l) {\n return l.source.column == thisColumn && l.circularLinkType == thisCircularLinkType;\n });\n\n if (link.circularLinkType == 'bottom') {\n sameColumnLinks.sort(sortLinkSourceYDescending);\n } else {\n sameColumnLinks.sort(sortLinkSourceYAscending);\n }\n\n var radiusOffset = 0;\n sameColumnLinks.forEach(function (l, i) {\n if (l.circularLinkID == link.circularLinkID) {\n link.circularPathData.leftSmallArcRadius = baseRadius + link.width / 2 + radiusOffset;\n link.circularPathData.leftLargeArcRadius = baseRadius + link.width / 2 + i * circularLinkGap + radiusOffset;\n }\n radiusOffset = radiusOffset + l.width;\n });\n\n // add right extent coordinates, based on links with same target column and circularLink type\n thisColumn = link.target.column;\n sameColumnLinks = graph.links.filter(function (l) {\n return l.target.column == thisColumn && l.circularLinkType == thisCircularLinkType;\n });\n if (link.circularLinkType == 'bottom') {\n sameColumnLinks.sort(sortLinkTargetYDescending);\n } else {\n sameColumnLinks.sort(sortLinkTargetYAscending);\n }\n\n radiusOffset = 0;\n sameColumnLinks.forEach(function (l, i) {\n if (l.circularLinkID == link.circularLinkID) {\n link.circularPathData.rightSmallArcRadius = baseRadius + link.width / 2 + radiusOffset;\n link.circularPathData.rightLargeArcRadius = baseRadius + link.width / 2 + i * circularLinkGap + radiusOffset;\n }\n radiusOffset = radiusOffset + l.width;\n });\n\n // bottom links\n if (link.circularLinkType == 'bottom') {\n link.circularPathData.verticalFullExtent = Math.max(y1, link.source.y1, link.target.y1) + verticalMargin + link.circularPathData.verticalBuffer;\n link.circularPathData.verticalLeftInnerExtent = link.circularPathData.verticalFullExtent - link.circularPathData.leftLargeArcRadius;\n link.circularPathData.verticalRightInnerExtent = link.circularPathData.verticalFullExtent - link.circularPathData.rightLargeArcRadius;\n } else {\n // top links\n link.circularPathData.verticalFullExtent = minY - verticalMargin - link.circularPathData.verticalBuffer;\n link.circularPathData.verticalLeftInnerExtent = link.circularPathData.verticalFullExtent + link.circularPathData.leftLargeArcRadius;\n link.circularPathData.verticalRightInnerExtent = link.circularPathData.verticalFullExtent + link.circularPathData.rightLargeArcRadius;\n }\n }\n\n // all links\n link.circularPathData.leftInnerExtent = link.circularPathData.sourceX + link.circularPathData.leftNodeBuffer;\n link.circularPathData.rightInnerExtent = link.circularPathData.targetX - link.circularPathData.rightNodeBuffer;\n link.circularPathData.leftFullExtent = link.circularPathData.sourceX + link.circularPathData.leftLargeArcRadius + link.circularPathData.leftNodeBuffer;\n link.circularPathData.rightFullExtent = link.circularPathData.targetX - link.circularPathData.rightLargeArcRadius - link.circularPathData.rightNodeBuffer;\n }\n\n if (link.circular) {\n link.path = createCircularPathString(link);\n } else {\n var normalPath = d3Shape.linkHorizontal().source(function (d) {\n var x = d.source.x0 + (d.source.x1 - d.source.x0);\n var y = d.y0;\n return [x, y];\n }).target(function (d) {\n var x = d.target.x0;\n var y = d.y1;\n return [x, y];\n });\n link.path = normalPath(link);\n }\n });\n }\n\n // create a d path using the addCircularPathData\n function createCircularPathString(link) {\n var pathString = '';\n // 'pathData' is assigned a value but never used\n // var pathData = {}\n\n if (link.circularLinkType == 'top') {\n pathString =\n // start at the right of the source node\n 'M' + link.circularPathData.sourceX + ' ' + link.circularPathData.sourceY + ' ' +\n // line right to buffer point\n 'L' + link.circularPathData.leftInnerExtent + ' ' + link.circularPathData.sourceY + ' ' +\n // Arc around: Centre of arc X and //Centre of arc Y\n 'A' + link.circularPathData.leftLargeArcRadius + ' ' + link.circularPathData.leftSmallArcRadius + ' 0 0 0 ' +\n // End of arc X //End of arc Y\n link.circularPathData.leftFullExtent + ' ' + (link.circularPathData.sourceY - link.circularPathData.leftSmallArcRadius) + ' ' + // End of arc X\n // line up to buffer point\n 'L' + link.circularPathData.leftFullExtent + ' ' + link.circularPathData.verticalLeftInnerExtent + ' ' +\n // Arc around: Centre of arc X and //Centre of arc Y\n 'A' + link.circularPathData.leftLargeArcRadius + ' ' + link.circularPathData.leftLargeArcRadius + ' 0 0 0 ' +\n // End of arc X //End of arc Y\n link.circularPathData.leftInnerExtent + ' ' + link.circularPathData.verticalFullExtent + ' ' + // End of arc X\n // line left to buffer point\n 'L' + link.circularPathData.rightInnerExtent + ' ' + link.circularPathData.verticalFullExtent + ' ' +\n // Arc around: Centre of arc X and //Centre of arc Y\n 'A' + link.circularPathData.rightLargeArcRadius + ' ' + link.circularPathData.rightLargeArcRadius + ' 0 0 0 ' +\n // End of arc X //End of arc Y\n link.circularPathData.rightFullExtent + ' ' + link.circularPathData.verticalRightInnerExtent + ' ' + // End of arc X\n // line down\n 'L' + link.circularPathData.rightFullExtent + ' ' + (link.circularPathData.targetY - link.circularPathData.rightSmallArcRadius) + ' ' +\n // Arc around: Centre of arc X and //Centre of arc Y\n 'A' + link.circularPathData.rightLargeArcRadius + ' ' + link.circularPathData.rightSmallArcRadius + ' 0 0 0 ' +\n // End of arc X //End of arc Y\n link.circularPathData.rightInnerExtent + ' ' + link.circularPathData.targetY + ' ' + // End of arc X\n // line to end\n 'L' + link.circularPathData.targetX + ' ' + link.circularPathData.targetY;\n } else {\n // bottom path\n pathString =\n // start at the right of the source node\n 'M' + link.circularPathData.sourceX + ' ' + link.circularPathData.sourceY + ' ' +\n // line right to buffer point\n 'L' + link.circularPathData.leftInnerExtent + ' ' + link.circularPathData.sourceY + ' ' +\n // Arc around: Centre of arc X and //Centre of arc Y\n 'A' + link.circularPathData.leftLargeArcRadius + ' ' + link.circularPathData.leftSmallArcRadius + ' 0 0 1 ' +\n // End of arc X //End of arc Y\n link.circularPathData.leftFullExtent + ' ' + (link.circularPathData.sourceY + link.circularPathData.leftSmallArcRadius) + ' ' + // End of arc X\n // line down to buffer point\n 'L' + link.circularPathData.leftFullExtent + ' ' + link.circularPathData.verticalLeftInnerExtent + ' ' +\n // Arc around: Centre of arc X and //Centre of arc Y\n 'A' + link.circularPathData.leftLargeArcRadius + ' ' + link.circularPathData.leftLargeArcRadius + ' 0 0 1 ' +\n // End of arc X //End of arc Y\n link.circularPathData.leftInnerExtent + ' ' + link.circularPathData.verticalFullExtent + ' ' + // End of arc X\n // line left to buffer point\n 'L' + link.circularPathData.rightInnerExtent + ' ' + link.circularPathData.verticalFullExtent + ' ' +\n // Arc around: Centre of arc X and //Centre of arc Y\n 'A' + link.circularPathData.rightLargeArcRadius + ' ' + link.circularPathData.rightLargeArcRadius + ' 0 0 1 ' +\n // End of arc X //End of arc Y\n link.circularPathData.rightFullExtent + ' ' + link.circularPathData.verticalRightInnerExtent + ' ' + // End of arc X\n // line up\n 'L' + link.circularPathData.rightFullExtent + ' ' + (link.circularPathData.targetY + link.circularPathData.rightSmallArcRadius) + ' ' +\n // Arc around: Centre of arc X and //Centre of arc Y\n 'A' + link.circularPathData.rightLargeArcRadius + ' ' + link.circularPathData.rightSmallArcRadius + ' 0 0 1 ' +\n // End of arc X //End of arc Y\n link.circularPathData.rightInnerExtent + ' ' + link.circularPathData.targetY + ' ' + // End of arc X\n // line to end\n 'L' + link.circularPathData.targetX + ' ' + link.circularPathData.targetY;\n }\n\n return pathString;\n }\n\n // sort links based on the distance between the source and tartget node columns\n // if the same, then use Y position of the source node\n function sortLinkColumnAscending(link1, link2) {\n if (linkColumnDistance(link1) == linkColumnDistance(link2)) {\n return link1.circularLinkType == 'bottom' ? sortLinkSourceYDescending(link1, link2) : sortLinkSourceYAscending(link1, link2);\n } else {\n return linkColumnDistance(link2) - linkColumnDistance(link1);\n }\n }\n\n // sort ascending links by their source vertical position, y0\n function sortLinkSourceYAscending(link1, link2) {\n return link1.y0 - link2.y0;\n }\n\n // sort descending links by their source vertical position, y0\n function sortLinkSourceYDescending(link1, link2) {\n return link2.y0 - link1.y0;\n }\n\n // sort ascending links by their target vertical position, y1\n function sortLinkTargetYAscending(link1, link2) {\n return link1.y1 - link2.y1;\n }\n\n // sort descending links by their target vertical position, y1\n function sortLinkTargetYDescending(link1, link2) {\n return link2.y1 - link1.y1;\n }\n\n // return the distance between the link's target and source node, in terms of the nodes' column\n function linkColumnDistance(link) {\n return link.target.column - link.source.column;\n }\n\n // return the distance between the link's target and source node, in terms of the nodes' X coordinate\n function linkXLength(link) {\n return link.target.x0 - link.source.x1;\n }\n\n // Return the Y coordinate on the longerLink path * which is perpendicular shorterLink's source.\n // * approx, based on a straight line from target to source, when in fact the path is a bezier\n function linkPerpendicularYToLinkSource(longerLink, shorterLink) {\n // get the angle for the longer link\n var angle = linkAngle(longerLink);\n\n // get the adjacent length to the other link's x position\n var heightFromY1ToPependicular = linkXLength(shorterLink) / Math.tan(angle);\n\n // add or subtract from longer link1's original y1, depending on the slope\n var yPerpendicular = incline(longerLink) == 'up' ? longerLink.y1 + heightFromY1ToPependicular : longerLink.y1 - heightFromY1ToPependicular;\n\n return yPerpendicular;\n }\n\n // Return the Y coordinate on the longerLink path * which is perpendicular shorterLink's source.\n // * approx, based on a straight line from target to source, when in fact the path is a bezier\n function linkPerpendicularYToLinkTarget(longerLink, shorterLink) {\n // get the angle for the longer link\n var angle = linkAngle(longerLink);\n\n // get the adjacent length to the other link's x position\n var heightFromY1ToPependicular = linkXLength(shorterLink) / Math.tan(angle);\n\n // add or subtract from longer link's original y1, depending on the slope\n var yPerpendicular = incline(longerLink) == 'up' ? longerLink.y1 - heightFromY1ToPependicular : longerLink.y1 + heightFromY1ToPependicular;\n\n return yPerpendicular;\n }\n\n // Move any nodes that overlap links which span 2+ columns\n function resolveNodeLinkOverlaps(graph, y0, y1, id) {\n\n graph.links.forEach(function (link) {\n if (link.circular) {\n return;\n }\n\n if (link.target.column - link.source.column > 1) {\n var columnToTest = link.source.column + 1;\n var maxColumnToTest = link.target.column - 1;\n\n var i = 1;\n var numberOfColumnsToTest = maxColumnToTest - columnToTest + 1;\n\n for (i = 1; columnToTest <= maxColumnToTest; columnToTest++, i++) {\n graph.nodes.forEach(function (node) {\n if (node.column == columnToTest) {\n var t = i / (numberOfColumnsToTest + 1);\n\n // Find all the points of a cubic bezier curve in javascript\n // https://stackoverflow.com/questions/15397596/find-all-the-points-of-a-cubic-bezier-curve-in-javascript\n\n var B0_t = Math.pow(1 - t, 3);\n var B1_t = 3 * t * Math.pow(1 - t, 2);\n var B2_t = 3 * Math.pow(t, 2) * (1 - t);\n var B3_t = Math.pow(t, 3);\n\n var py_t = B0_t * link.y0 + B1_t * link.y0 + B2_t * link.y1 + B3_t * link.y1;\n\n var linkY0AtColumn = py_t - link.width / 2;\n var linkY1AtColumn = py_t + link.width / 2;\n var dy;\n\n // If top of link overlaps node, push node up\n if (linkY0AtColumn > node.y0 && linkY0AtColumn < node.y1) {\n\n dy = node.y1 - linkY0AtColumn + 10;\n dy = node.circularLinkType == 'bottom' ? dy : -dy;\n\n node = adjustNodeHeight(node, dy, y0, y1);\n\n // check if other nodes need to move up too\n graph.nodes.forEach(function (otherNode) {\n // don't need to check itself or nodes at different columns\n if (getNodeID(otherNode, id) == getNodeID(node, id) || otherNode.column != node.column) {\n return;\n }\n if (nodesOverlap(node, otherNode)) {\n adjustNodeHeight(otherNode, dy, y0, y1);\n }\n });\n } else if (linkY1AtColumn > node.y0 && linkY1AtColumn < node.y1) {\n // If bottom of link overlaps node, push node down\n dy = linkY1AtColumn - node.y0 + 10;\n\n node = adjustNodeHeight(node, dy, y0, y1);\n\n // check if other nodes need to move down too\n graph.nodes.forEach(function (otherNode) {\n // don't need to check itself or nodes at different columns\n if (getNodeID(otherNode, id) == getNodeID(node, id) || otherNode.column != node.column) {\n return;\n }\n if (otherNode.y0 < node.y1 && otherNode.y1 > node.y1) {\n adjustNodeHeight(otherNode, dy, y0, y1);\n }\n });\n } else if (linkY0AtColumn < node.y0 && linkY1AtColumn > node.y1) {\n // if link completely overlaps node\n dy = linkY1AtColumn - node.y0 + 10;\n\n node = adjustNodeHeight(node, dy, y0, y1);\n\n graph.nodes.forEach(function (otherNode) {\n // don't need to check itself or nodes at different columns\n if (getNodeID(otherNode, id) == getNodeID(node, id) || otherNode.column != node.column) {\n return;\n }\n if (otherNode.y0 < node.y1 && otherNode.y1 > node.y1) {\n adjustNodeHeight(otherNode, dy, y0, y1);\n }\n });\n }\n }\n });\n }\n }\n });\n }\n\n // check if two nodes overlap\n function nodesOverlap(nodeA, nodeB) {\n // test if nodeA top partially overlaps nodeB\n if (nodeA.y0 > nodeB.y0 && nodeA.y0 < nodeB.y1) {\n return true;\n } else if (nodeA.y1 > nodeB.y0 && nodeA.y1 < nodeB.y1) {\n // test if nodeA bottom partially overlaps nodeB\n return true;\n } else if (nodeA.y0 < nodeB.y0 && nodeA.y1 > nodeB.y1) {\n // test if nodeA covers nodeB\n return true;\n } else {\n return false;\n }\n }\n\n // update a node, and its associated links, vertical positions (y0, y1)\n function adjustNodeHeight(node, dy, sankeyY0, sankeyY1) {\n if (node.y0 + dy >= sankeyY0 && node.y1 + dy <= sankeyY1) {\n node.y0 = node.y0 + dy;\n node.y1 = node.y1 + dy;\n\n node.targetLinks.forEach(function (l) {\n l.y1 = l.y1 + dy;\n });\n\n node.sourceLinks.forEach(function (l) {\n l.y0 = l.y0 + dy;\n });\n }\n return node;\n }\n\n // sort and set the links' y0 for each node\n function sortSourceLinks(graph, y1, id, moveNodes) {\n graph.nodes.forEach(function (node) {\n // move any nodes up which are off the bottom\n if (moveNodes && node.y + (node.y1 - node.y0) > y1) {\n node.y = node.y - (node.y + (node.y1 - node.y0) - y1);\n }\n\n var nodesSourceLinks = graph.links.filter(function (l) {\n return getNodeID(l.source, id) == getNodeID(node, id);\n });\n\n var nodeSourceLinksLength = nodesSourceLinks.length;\n\n // if more than 1 link then sort\n if (nodeSourceLinksLength > 1) {\n nodesSourceLinks.sort(function (link1, link2) {\n // if both are not circular...\n if (!link1.circular && !link2.circular) {\n // if the target nodes are the same column, then sort by the link's target y\n if (link1.target.column == link2.target.column) {\n return link1.y1 - link2.y1;\n } else if (!sameInclines(link1, link2)) {\n // if the links slope in different directions, then sort by the link's target y\n return link1.y1 - link2.y1;\n\n // if the links slope in same directions, then sort by any overlap\n } else {\n if (link1.target.column > link2.target.column) {\n var link2Adj = linkPerpendicularYToLinkTarget(link2, link1);\n return link1.y1 - link2Adj;\n }\n if (link2.target.column > link1.target.column) {\n var link1Adj = linkPerpendicularYToLinkTarget(link1, link2);\n return link1Adj - link2.y1;\n }\n }\n }\n\n // if only one is circular, the move top links up, or bottom links down\n if (link1.circular && !link2.circular) {\n return link1.circularLinkType == 'top' ? -1 : 1;\n } else if (link2.circular && !link1.circular) {\n return link2.circularLinkType == 'top' ? 1 : -1;\n }\n\n // if both links are circular...\n if (link1.circular && link2.circular) {\n // ...and they both loop the same way (both top)\n if (link1.circularLinkType === link2.circularLinkType && link1.circularLinkType == 'top') {\n // ...and they both connect to a target with same column, then sort by the target's y\n if (link1.target.column === link2.target.column) {\n return link1.target.y1 - link2.target.y1;\n } else {\n // ...and they connect to different column targets, then sort by how far back they\n return link2.target.column - link1.target.column;\n }\n } else if (link1.circularLinkType === link2.circularLinkType && link1.circularLinkType == 'bottom') {\n // ...and they both loop the same way (both bottom)\n // ...and they both connect to a target with same column, then sort by the target's y\n if (link1.target.column === link2.target.column) {\n return link2.target.y1 - link1.target.y1;\n } else {\n // ...and they connect to different column targets, then sort by how far back they\n return link1.target.column - link2.target.column;\n }\n } else {\n // ...and they loop around different ways, the move top up and bottom down\n return link1.circularLinkType == 'top' ? -1 : 1;\n }\n }\n });\n }\n\n // update y0 for links\n var ySourceOffset = node.y0;\n\n nodesSourceLinks.forEach(function (link) {\n link.y0 = ySourceOffset + link.width / 2;\n ySourceOffset = ySourceOffset + link.width;\n });\n\n // correct any circular bottom links so they are at the bottom of the node\n nodesSourceLinks.forEach(function (link, i) {\n if (link.circularLinkType == 'bottom') {\n var j = i + 1;\n var offsetFromBottom = 0;\n // sum the widths of any links that are below this link\n for (j; j < nodeSourceLinksLength; j++) {\n offsetFromBottom = offsetFromBottom + nodesSourceLinks[j].width;\n }\n link.y0 = node.y1 - offsetFromBottom - link.width / 2;\n }\n });\n });\n }\n\n // sort and set the links' y1 for each node\n function sortTargetLinks(graph, y1, id) {\n graph.nodes.forEach(function (node) {\n var nodesTargetLinks = graph.links.filter(function (l) {\n return getNodeID(l.target, id) == getNodeID(node, id);\n });\n\n var nodesTargetLinksLength = nodesTargetLinks.length;\n\n if (nodesTargetLinksLength > 1) {\n nodesTargetLinks.sort(function (link1, link2) {\n // if both are not circular, the base on the source y position\n if (!link1.circular && !link2.circular) {\n if (link1.source.column == link2.source.column) {\n return link1.y0 - link2.y0;\n } else if (!sameInclines(link1, link2)) {\n return link1.y0 - link2.y0;\n } else {\n // get the angle of the link to the further source node (ie the smaller column)\n if (link2.source.column < link1.source.column) {\n var link2Adj = linkPerpendicularYToLinkSource(link2, link1);\n\n return link1.y0 - link2Adj;\n }\n if (link1.source.column < link2.source.column) {\n var link1Adj = linkPerpendicularYToLinkSource(link1, link2);\n\n return link1Adj - link2.y0;\n }\n }\n }\n\n // if only one is circular, the move top links up, or bottom links down\n if (link1.circular && !link2.circular) {\n return link1.circularLinkType == 'top' ? -1 : 1;\n } else if (link2.circular && !link1.circular) {\n return link2.circularLinkType == 'top' ? 1 : -1;\n }\n\n // if both links are circular...\n if (link1.circular && link2.circular) {\n // ...and they both loop the same way (both top)\n if (link1.circularLinkType === link2.circularLinkType && link1.circularLinkType == 'top') {\n // ...and they both connect to a target with same column, then sort by the target's y\n if (link1.source.column === link2.source.column) {\n return link1.source.y1 - link2.source.y1;\n } else {\n // ...and they connect to different column targets, then sort by how far back they\n return link1.source.column - link2.source.column;\n }\n } else if (link1.circularLinkType === link2.circularLinkType && link1.circularLinkType == 'bottom') {\n // ...and they both loop the same way (both bottom)\n // ...and they both connect to a target with same column, then sort by the target's y\n if (link1.source.column === link2.source.column) {\n return link1.source.y1 - link2.source.y1;\n } else {\n // ...and they connect to different column targets, then sort by how far back they\n return link2.source.column - link1.source.column;\n }\n } else {\n // ...and they loop around different ways, the move top up and bottom down\n return link1.circularLinkType == 'top' ? -1 : 1;\n }\n }\n });\n }\n\n // update y1 for links\n var yTargetOffset = node.y0;\n\n nodesTargetLinks.forEach(function (link) {\n link.y1 = yTargetOffset + link.width / 2;\n yTargetOffset = yTargetOffset + link.width;\n });\n\n // correct any circular bottom links so they are at the bottom of the node\n nodesTargetLinks.forEach(function (link, i) {\n if (link.circularLinkType == 'bottom') {\n var j = i + 1;\n var offsetFromBottom = 0;\n // sum the widths of any links that are below this link\n for (j; j < nodesTargetLinksLength; j++) {\n offsetFromBottom = offsetFromBottom + nodesTargetLinks[j].width;\n }\n link.y1 = node.y1 - offsetFromBottom - link.width / 2;\n }\n });\n });\n }\n\n // test if links both slope up, or both slope down\n function sameInclines(link1, link2) {\n return incline(link1) == incline(link2);\n }\n\n // returns the slope of a link, from source to target\n // up => slopes up from source to target\n // down => slopes down from source to target\n function incline(link) {\n return link.y0 - link.y1 > 0 ? 'up' : 'down';\n }\n\n // check if link is self linking, ie links a node to the same node\n function selfLinking(link, id) {\n return getNodeID(link.source, id) == getNodeID(link.target, id);\n }\n\n function fillHeight(graph, y0, y1) {\n\n var nodes = graph.nodes;\n var links = graph.links;\n\n var top = false;\n var bottom = false;\n\n links.forEach(function (link) {\n if (link.circularLinkType == \"top\") {\n top = true;\n } else if (link.circularLinkType == \"bottom\") {\n bottom = true;\n }\n });\n\n if (top == false || bottom == false) {\n var minY0 = d3Array.min(nodes, function (node) {\n return node.y0;\n });\n var maxY1 = d3Array.max(nodes, function (node) {\n return node.y1;\n });\n var currentHeight = maxY1 - minY0;\n var chartHeight = y1 - y0;\n var ratio = chartHeight / currentHeight;\n\n nodes.forEach(function (node) {\n var nodeHeight = (node.y1 - node.y0) * ratio;\n node.y0 = (node.y0 - minY0) * ratio;\n node.y1 = node.y0 + nodeHeight;\n });\n\n links.forEach(function (link) {\n link.y0 = (link.y0 - minY0) * ratio;\n link.y1 = (link.y1 - minY0) * ratio;\n link.width = link.width * ratio;\n });\n }\n }\n\n exports.sankeyCircular = sankeyCircular;\n exports.sankeyCenter = center;\n exports.sankeyLeft = left;\n exports.sankeyRight = right;\n exports.sankeyJustify = justify;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n})));\n\n},{\"d3-array\":107,\"d3-collection\":108,\"d3-shape\":119,\"elementary-circuits-directed-graph\":130}],57:[function(_dereq_,module,exports){\n// https://github.com/d3/d3-sankey Version 0.7.2. Copyright 2019 Mike Bostock.\n(function (global, factory) {\n\ttypeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, _dereq_('d3-array'), _dereq_('d3-collection'), _dereq_('d3-shape')) :\n\ttypeof define === 'function' && define.amd ? define(['exports', 'd3-array', 'd3-collection', 'd3-shape'], factory) :\n\t(factory((global.d3 = global.d3 || {}),global.d3,global.d3,global.d3));\n}(this, (function (exports,d3Array,d3Collection,d3Shape) { 'use strict';\n\nfunction targetDepth(d) {\n return d.target.depth;\n}\n\nfunction left(node) {\n return node.depth;\n}\n\nfunction right(node, n) {\n return n - 1 - node.height;\n}\n\nfunction justify(node, n) {\n return node.sourceLinks.length ? node.depth : n - 1;\n}\n\nfunction center(node) {\n return node.targetLinks.length ? node.depth\n : node.sourceLinks.length ? d3Array.min(node.sourceLinks, targetDepth) - 1\n : 0;\n}\n\nfunction constant(x) {\n return function() {\n return x;\n };\n}\n\nfunction ascendingSourceBreadth(a, b) {\n return ascendingBreadth(a.source, b.source) || a.index - b.index;\n}\n\nfunction ascendingTargetBreadth(a, b) {\n return ascendingBreadth(a.target, b.target) || a.index - b.index;\n}\n\nfunction ascendingBreadth(a, b) {\n return a.y0 - b.y0;\n}\n\nfunction value(d) {\n return d.value;\n}\n\nfunction nodeCenter(node) {\n return (node.y0 + node.y1) / 2;\n}\n\nfunction weightedSource(link) {\n return nodeCenter(link.source) * link.value;\n}\n\nfunction weightedTarget(link) {\n return nodeCenter(link.target) * link.value;\n}\n\nfunction defaultId(d) {\n return d.index;\n}\n\nfunction defaultNodes(graph) {\n return graph.nodes;\n}\n\nfunction defaultLinks(graph) {\n return graph.links;\n}\n\nfunction find(nodeById, id) {\n var node = nodeById.get(id);\n if (!node) throw new Error(\"missing: \" + id);\n return node;\n}\n\nvar sankey = function() {\n var x0 = 0, y0 = 0, x1 = 1, y1 = 1, // extent\n dx = 24, // nodeWidth\n py = 8, // nodePadding\n id = defaultId,\n align = justify,\n nodes = defaultNodes,\n links = defaultLinks,\n iterations = 32,\n maxPaddedSpace = 2 / 3; // Defined as a fraction of the total available space\n\n function sankey() {\n var graph = {nodes: nodes.apply(null, arguments), links: links.apply(null, arguments)};\n computeNodeLinks(graph);\n computeNodeValues(graph);\n computeNodeDepths(graph);\n computeNodeBreadths(graph, iterations);\n computeLinkBreadths(graph);\n return graph;\n }\n\n sankey.update = function(graph) {\n computeLinkBreadths(graph);\n return graph;\n };\n\n sankey.nodeId = function(_) {\n return arguments.length ? (id = typeof _ === \"function\" ? _ : constant(_), sankey) : id;\n };\n\n sankey.nodeAlign = function(_) {\n return arguments.length ? (align = typeof _ === \"function\" ? _ : constant(_), sankey) : align;\n };\n\n sankey.nodeWidth = function(_) {\n return arguments.length ? (dx = +_, sankey) : dx;\n };\n\n sankey.nodePadding = function(_) {\n return arguments.length ? (py = +_, sankey) : py;\n };\n\n sankey.nodes = function(_) {\n return arguments.length ? (nodes = typeof _ === \"function\" ? _ : constant(_), sankey) : nodes;\n };\n\n sankey.links = function(_) {\n return arguments.length ? (links = typeof _ === \"function\" ? _ : constant(_), sankey) : links;\n };\n\n sankey.size = function(_) {\n return arguments.length ? (x0 = y0 = 0, x1 = +_[0], y1 = +_[1], sankey) : [x1 - x0, y1 - y0];\n };\n\n sankey.extent = function(_) {\n return arguments.length ? (x0 = +_[0][0], x1 = +_[1][0], y0 = +_[0][1], y1 = +_[1][1], sankey) : [[x0, y0], [x1, y1]];\n };\n\n sankey.iterations = function(_) {\n return arguments.length ? (iterations = +_, sankey) : iterations;\n };\n\n // Populate the sourceLinks and targetLinks for each node.\n // Also, if the source and target are not objects, assume they are indices.\n function computeNodeLinks(graph) {\n graph.nodes.forEach(function(node, i) {\n node.index = i;\n node.sourceLinks = [];\n node.targetLinks = [];\n });\n\n var nodeById = d3Collection.map(graph.nodes, id);\n graph.links.forEach(function(link, i) {\n link.index = i;\n var source = link.source, target = link.target;\n if (typeof source !== \"object\") source = link.source = find(nodeById, source);\n if (typeof target !== \"object\") target = link.target = find(nodeById, target);\n source.sourceLinks.push(link);\n target.targetLinks.push(link);\n });\n }\n\n // Compute the value (size) of each node by summing the associated links.\n function computeNodeValues(graph) {\n graph.nodes.forEach(function(node) {\n node.value = Math.max(\n d3Array.sum(node.sourceLinks, value),\n d3Array.sum(node.targetLinks, value)\n );\n });\n }\n\n // Iteratively assign the depth (x-position) for each node.\n // Nodes are assigned the maximum depth of incoming neighbors plus one;\n // nodes with no incoming links are assigned depth zero, while\n // nodes with no outgoing links are assigned the maximum depth.\n function computeNodeDepths(graph) {\n var nodes, next, x;\n\n for (nodes = graph.nodes, next = [], x = 0; nodes.length; ++x, nodes = next, next = []) {\n nodes.forEach(function(node) {\n node.depth = x;\n node.sourceLinks.forEach(function(link) {\n if (next.indexOf(link.target) < 0) {\n next.push(link.target);\n }\n });\n });\n }\n\n for (nodes = graph.nodes, next = [], x = 0; nodes.length; ++x, nodes = next, next = []) {\n nodes.forEach(function(node) {\n node.height = x;\n node.targetLinks.forEach(function(link) {\n if (next.indexOf(link.source) < 0) {\n next.push(link.source);\n }\n });\n });\n }\n\n var kx = (x1 - x0 - dx) / (x - 1);\n graph.nodes.forEach(function(node) {\n node.x1 = (node.x0 = x0 + Math.max(0, Math.min(x - 1, Math.floor(align.call(null, node, x)))) * kx) + dx;\n });\n }\n\n function computeNodeBreadths(graph) {\n var columns = d3Collection.nest()\n .key(function(d) { return d.x0; })\n .sortKeys(d3Array.ascending)\n .entries(graph.nodes)\n .map(function(d) { return d.values; });\n\n //\n initializeNodeBreadth();\n resolveCollisions();\n for (var alpha = 1, n = iterations; n > 0; --n) {\n relaxRightToLeft(alpha *= 0.99);\n resolveCollisions();\n relaxLeftToRight(alpha);\n resolveCollisions();\n }\n\n function initializeNodeBreadth() {\n var L = d3Array.max(columns, function(nodes) {\n return nodes.length;\n });\n var maxNodePadding = maxPaddedSpace * (y1 - y0) / (L - 1);\n if(py > maxNodePadding) py = maxNodePadding;\n var ky = d3Array.min(columns, function(nodes) {\n return (y1 - y0 - (nodes.length - 1) * py) / d3Array.sum(nodes, value);\n });\n\n columns.forEach(function(nodes) {\n nodes.forEach(function(node, i) {\n node.y1 = (node.y0 = i) + node.value * ky;\n });\n });\n\n graph.links.forEach(function(link) {\n link.width = link.value * ky;\n });\n }\n\n function relaxLeftToRight(alpha) {\n columns.forEach(function(nodes) {\n nodes.forEach(function(node) {\n if (node.targetLinks.length) {\n var dy = (d3Array.sum(node.targetLinks, weightedSource) / d3Array.sum(node.targetLinks, value) - nodeCenter(node)) * alpha;\n node.y0 += dy, node.y1 += dy;\n }\n });\n });\n }\n\n function relaxRightToLeft(alpha) {\n columns.slice().reverse().forEach(function(nodes) {\n nodes.forEach(function(node) {\n if (node.sourceLinks.length) {\n var dy = (d3Array.sum(node.sourceLinks, weightedTarget) / d3Array.sum(node.sourceLinks, value) - nodeCenter(node)) * alpha;\n node.y0 += dy, node.y1 += dy;\n }\n });\n });\n }\n\n function resolveCollisions() {\n columns.forEach(function(nodes) {\n var node,\n dy,\n y = y0,\n n = nodes.length,\n i;\n\n // Push any overlapping nodes down.\n nodes.sort(ascendingBreadth);\n for (i = 0; i < n; ++i) {\n node = nodes[i];\n dy = y - node.y0;\n if (dy > 0) node.y0 += dy, node.y1 += dy;\n y = node.y1 + py;\n }\n\n // If the bottommost node goes outside the bounds, push it back up.\n dy = y - py - y1;\n if (dy > 0) {\n y = (node.y0 -= dy), node.y1 -= dy;\n\n // Push any overlapping nodes back up.\n for (i = n - 2; i >= 0; --i) {\n node = nodes[i];\n dy = node.y1 + py - y;\n if (dy > 0) node.y0 -= dy, node.y1 -= dy;\n y = node.y0;\n }\n }\n });\n }\n }\n\n function computeLinkBreadths(graph) {\n graph.nodes.forEach(function(node) {\n node.sourceLinks.sort(ascendingTargetBreadth);\n node.targetLinks.sort(ascendingSourceBreadth);\n });\n graph.nodes.forEach(function(node) {\n var y0 = node.y0, y1 = y0;\n node.sourceLinks.forEach(function(link) {\n link.y0 = y0 + link.width / 2, y0 += link.width;\n });\n node.targetLinks.forEach(function(link) {\n link.y1 = y1 + link.width / 2, y1 += link.width;\n });\n });\n }\n\n return sankey;\n};\n\nfunction horizontalSource(d) {\n return [d.source.x1, d.y0];\n}\n\nfunction horizontalTarget(d) {\n return [d.target.x0, d.y1];\n}\n\nvar sankeyLinkHorizontal = function() {\n return d3Shape.linkHorizontal()\n .source(horizontalSource)\n .target(horizontalTarget);\n};\n\nexports.sankey = sankey;\nexports.sankeyCenter = center;\nexports.sankeyLeft = left;\nexports.sankeyRight = right;\nexports.sankeyJustify = justify;\nexports.sankeyLinkHorizontal = sankeyLinkHorizontal;\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n})));\n\n},{\"d3-array\":107,\"d3-collection\":108,\"d3-shape\":119}],58:[function(_dereq_,module,exports){\n!function() {\n var d3 = {\n version: \"3.8.0\"\n };\n var d3_arraySlice = [].slice, d3_array = function(list) {\n return d3_arraySlice.call(list);\n };\n var d3_document = self.document;\n function d3_documentElement(node) {\n return node && (node.ownerDocument || node.document || node).documentElement;\n }\n function d3_window(node) {\n return node && (node.ownerDocument && node.ownerDocument.defaultView || node.document && node || node.defaultView);\n }\n if (d3_document) {\n try {\n d3_array(d3_document.documentElement.childNodes)[0].nodeType;\n } catch (e) {\n d3_array = function(list) {\n var i = list.length, array = new Array(i);\n while (i--) array[i] = list[i];\n return array;\n };\n }\n }\n if (!Date.now) Date.now = function() {\n return +new Date();\n };\n if (d3_document) {\n try {\n d3_document.createElement(\"DIV\").style.setProperty(\"opacity\", 0, \"\");\n } catch (error) {\n var d3_element_prototype = this.Element.prototype, d3_element_setAttribute = d3_element_prototype.setAttribute, d3_element_setAttributeNS = d3_element_prototype.setAttributeNS, d3_style_prototype = this.CSSStyleDeclaration.prototype, d3_style_setProperty = d3_style_prototype.setProperty;\n d3_element_prototype.setAttribute = function(name, value) {\n d3_element_setAttribute.call(this, name, value + \"\");\n };\n d3_element_prototype.setAttributeNS = function(space, local, value) {\n d3_element_setAttributeNS.call(this, space, local, value + \"\");\n };\n d3_style_prototype.setProperty = function(name, value, priority) {\n d3_style_setProperty.call(this, name, value + \"\", priority);\n };\n }\n }\n d3.ascending = d3_ascending;\n function d3_ascending(a, b) {\n return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;\n }\n d3.descending = function(a, b) {\n return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;\n };\n d3.min = function(array, f) {\n var i = -1, n = array.length, a, b;\n if (arguments.length === 1) {\n while (++i < n) if ((b = array[i]) != null && b >= b) {\n a = b;\n break;\n }\n while (++i < n) if ((b = array[i]) != null && a > b) a = b;\n } else {\n while (++i < n) if ((b = f.call(array, array[i], i)) != null && b >= b) {\n a = b;\n break;\n }\n while (++i < n) if ((b = f.call(array, array[i], i)) != null && a > b) a = b;\n }\n return a;\n };\n d3.max = function(array, f) {\n var i = -1, n = array.length, a, b;\n if (arguments.length === 1) {\n while (++i < n) if ((b = array[i]) != null && b >= b) {\n a = b;\n break;\n }\n while (++i < n) if ((b = array[i]) != null && b > a) a = b;\n } else {\n while (++i < n) if ((b = f.call(array, array[i], i)) != null && b >= b) {\n a = b;\n break;\n }\n while (++i < n) if ((b = f.call(array, array[i], i)) != null && b > a) a = b;\n }\n return a;\n };\n d3.extent = function(array, f) {\n var i = -1, n = array.length, a, b, c;\n if (arguments.length === 1) {\n while (++i < n) if ((b = array[i]) != null && b >= b) {\n a = c = b;\n break;\n }\n while (++i < n) if ((b = array[i]) != null) {\n if (a > b) a = b;\n if (c < b) c = b;\n }\n } else {\n while (++i < n) if ((b = f.call(array, array[i], i)) != null && b >= b) {\n a = c = b;\n break;\n }\n while (++i < n) if ((b = f.call(array, array[i], i)) != null) {\n if (a > b) a = b;\n if (c < b) c = b;\n }\n }\n return [ a, c ];\n };\n function d3_number(x) {\n return x === null ? NaN : +x;\n }\n function d3_numeric(x) {\n return !isNaN(x);\n }\n d3.sum = function(array, f) {\n var s = 0, n = array.length, a, i = -1;\n if (arguments.length === 1) {\n while (++i < n) if (d3_numeric(a = +array[i])) s += a;\n } else {\n while (++i < n) if (d3_numeric(a = +f.call(array, array[i], i))) s += a;\n }\n return s;\n };\n d3.mean = function(array, f) {\n var s = 0, n = array.length, a, i = -1, j = n;\n if (arguments.length === 1) {\n while (++i < n) if (d3_numeric(a = d3_number(array[i]))) s += a; else --j;\n } else {\n while (++i < n) if (d3_numeric(a = d3_number(f.call(array, array[i], i)))) s += a; else --j;\n }\n if (j) return s / j;\n };\n d3.quantile = function(values, p) {\n var H = (values.length - 1) * p + 1, h = Math.floor(H), v = +values[h - 1], e = H - h;\n return e ? v + e * (values[h] - v) : v;\n };\n d3.median = function(array, f) {\n var numbers = [], n = array.length, a, i = -1;\n if (arguments.length === 1) {\n while (++i < n) if (d3_numeric(a = d3_number(array[i]))) numbers.push(a);\n } else {\n while (++i < n) if (d3_numeric(a = d3_number(f.call(array, array[i], i)))) numbers.push(a);\n }\n if (numbers.length) return d3.quantile(numbers.sort(d3_ascending), .5);\n };\n d3.variance = function(array, f) {\n var n = array.length, m = 0, a, d, s = 0, i = -1, j = 0;\n if (arguments.length === 1) {\n while (++i < n) {\n if (d3_numeric(a = d3_number(array[i]))) {\n d = a - m;\n m += d / ++j;\n s += d * (a - m);\n }\n }\n } else {\n while (++i < n) {\n if (d3_numeric(a = d3_number(f.call(array, array[i], i)))) {\n d = a - m;\n m += d / ++j;\n s += d * (a - m);\n }\n }\n }\n if (j > 1) return s / (j - 1);\n };\n d3.deviation = function() {\n var v = d3.variance.apply(this, arguments);\n return v ? Math.sqrt(v) : v;\n };\n function d3_bisector(compare) {\n return {\n left: function(a, x, lo, hi) {\n if (arguments.length < 3) lo = 0;\n if (arguments.length < 4) hi = a.length;\n while (lo < hi) {\n var mid = lo + hi >>> 1;\n if (compare(a[mid], x) < 0) lo = mid + 1; else hi = mid;\n }\n return lo;\n },\n right: function(a, x, lo, hi) {\n if (arguments.length < 3) lo = 0;\n if (arguments.length < 4) hi = a.length;\n while (lo < hi) {\n var mid = lo + hi >>> 1;\n if (compare(a[mid], x) > 0) hi = mid; else lo = mid + 1;\n }\n return lo;\n }\n };\n }\n var d3_bisect = d3_bisector(d3_ascending);\n d3.bisectLeft = d3_bisect.left;\n d3.bisect = d3.bisectRight = d3_bisect.right;\n d3.bisector = function(f) {\n return d3_bisector(f.length === 1 ? function(d, x) {\n return d3_ascending(f(d), x);\n } : f);\n };\n d3.shuffle = function(array, i0, i1) {\n if ((m = arguments.length) < 3) {\n i1 = array.length;\n if (m < 2) i0 = 0;\n }\n var m = i1 - i0, t, i;\n while (m) {\n i = Math.random() * m-- | 0;\n t = array[m + i0], array[m + i0] = array[i + i0], array[i + i0] = t;\n }\n return array;\n };\n d3.permute = function(array, indexes) {\n var i = indexes.length, permutes = new Array(i);\n while (i--) permutes[i] = array[indexes[i]];\n return permutes;\n };\n d3.pairs = function(array) {\n var i = 0, n = array.length - 1, p0, p1 = array[0], pairs = new Array(n < 0 ? 0 : n);\n while (i < n) pairs[i] = [ p0 = p1, p1 = array[++i] ];\n return pairs;\n };\n d3.transpose = function(matrix) {\n if (!(n = matrix.length)) return [];\n for (var i = -1, m = d3.min(matrix, d3_transposeLength), transpose = new Array(m); ++i < m; ) {\n for (var j = -1, n, row = transpose[i] = new Array(n); ++j < n; ) {\n row[j] = matrix[j][i];\n }\n }\n return transpose;\n };\n function d3_transposeLength(d) {\n return d.length;\n }\n d3.zip = function() {\n return d3.transpose(arguments);\n };\n d3.keys = function(map) {\n var keys = [];\n for (var key in map) keys.push(key);\n return keys;\n };\n d3.values = function(map) {\n var values = [];\n for (var key in map) values.push(map[key]);\n return values;\n };\n d3.entries = function(map) {\n var entries = [];\n for (var key in map) entries.push({\n key: key,\n value: map[key]\n });\n return entries;\n };\n d3.merge = function(arrays) {\n var n = arrays.length, m, i = -1, j = 0, merged, array;\n while (++i < n) j += arrays[i].length;\n merged = new Array(j);\n while (--n >= 0) {\n array = arrays[n];\n m = array.length;\n while (--m >= 0) {\n merged[--j] = array[m];\n }\n }\n return merged;\n };\n var abs = Math.abs;\n d3.range = function(start, stop, step) {\n if (arguments.length < 3) {\n step = 1;\n if (arguments.length < 2) {\n stop = start;\n start = 0;\n }\n }\n if ((stop - start) / step === Infinity) throw new Error(\"infinite range\");\n var range = [], k = d3_range_integerScale(abs(step)), i = -1, j;\n start *= k, stop *= k, step *= k;\n if (step < 0) while ((j = start + step * ++i) > stop) range.push(j / k); else while ((j = start + step * ++i) < stop) range.push(j / k);\n return range;\n };\n function d3_range_integerScale(x) {\n var k = 1;\n while (x * k % 1) k *= 10;\n return k;\n }\n function d3_class(ctor, properties) {\n for (var key in properties) {\n Object.defineProperty(ctor.prototype, key, {\n value: properties[key],\n enumerable: false\n });\n }\n }\n d3.map = function(object, f) {\n var map = new d3_Map();\n if (object instanceof d3_Map) {\n object.forEach(function(key, value) {\n map.set(key, value);\n });\n } else if (Array.isArray(object)) {\n var i = -1, n = object.length, o;\n if (arguments.length === 1) while (++i < n) map.set(i, object[i]); else while (++i < n) map.set(f.call(object, o = object[i], i), o);\n } else {\n for (var key in object) map.set(key, object[key]);\n }\n return map;\n };\n function d3_Map() {\n this._ = Object.create(null);\n }\n var d3_map_proto = \"__proto__\", d3_map_zero = \"\\x00\";\n d3_class(d3_Map, {\n has: d3_map_has,\n get: function(key) {\n return this._[d3_map_escape(key)];\n },\n set: function(key, value) {\n return this._[d3_map_escape(key)] = value;\n },\n remove: d3_map_remove,\n keys: d3_map_keys,\n values: function() {\n var values = [];\n for (var key in this._) values.push(this._[key]);\n return values;\n },\n entries: function() {\n var entries = [];\n for (var key in this._) entries.push({\n key: d3_map_unescape(key),\n value: this._[key]\n });\n return entries;\n },\n size: d3_map_size,\n empty: d3_map_empty,\n forEach: function(f) {\n for (var key in this._) f.call(this, d3_map_unescape(key), this._[key]);\n }\n });\n function d3_map_escape(key) {\n return (key += \"\") === d3_map_proto || key[0] === d3_map_zero ? d3_map_zero + key : key;\n }\n function d3_map_unescape(key) {\n return (key += \"\")[0] === d3_map_zero ? key.slice(1) : key;\n }\n function d3_map_has(key) {\n return d3_map_escape(key) in this._;\n }\n function d3_map_remove(key) {\n return (key = d3_map_escape(key)) in this._ && delete this._[key];\n }\n function d3_map_keys() {\n var keys = [];\n for (var key in this._) keys.push(d3_map_unescape(key));\n return keys;\n }\n function d3_map_size() {\n var size = 0;\n for (var key in this._) ++size;\n return size;\n }\n function d3_map_empty() {\n for (var key in this._) return false;\n return true;\n }\n d3.nest = function() {\n var nest = {}, keys = [], sortKeys = [], sortValues, rollup;\n function map(mapType, array, depth) {\n if (depth >= keys.length) return rollup ? rollup.call(nest, array) : sortValues ? array.sort(sortValues) : array;\n var i = -1, n = array.length, key = keys[depth++], keyValue, object, setter, valuesByKey = new d3_Map(), values;\n while (++i < n) {\n if (values = valuesByKey.get(keyValue = key(object = array[i]))) {\n values.push(object);\n } else {\n valuesByKey.set(keyValue, [ object ]);\n }\n }\n if (mapType) {\n object = mapType();\n setter = function(keyValue, values) {\n object.set(keyValue, map(mapType, values, depth));\n };\n } else {\n object = {};\n setter = function(keyValue, values) {\n object[keyValue] = map(mapType, values, depth);\n };\n }\n valuesByKey.forEach(setter);\n return object;\n }\n function entries(map, depth) {\n if (depth >= keys.length) return map;\n var array = [], sortKey = sortKeys[depth++];\n map.forEach(function(key, keyMap) {\n array.push({\n key: key,\n values: entries(keyMap, depth)\n });\n });\n return sortKey ? array.sort(function(a, b) {\n return sortKey(a.key, b.key);\n }) : array;\n }\n nest.map = function(array, mapType) {\n return map(mapType, array, 0);\n };\n nest.entries = function(array) {\n return entries(map(d3.map, array, 0), 0);\n };\n nest.key = function(d) {\n keys.push(d);\n return nest;\n };\n nest.sortKeys = function(order) {\n sortKeys[keys.length - 1] = order;\n return nest;\n };\n nest.sortValues = function(order) {\n sortValues = order;\n return nest;\n };\n nest.rollup = function(f) {\n rollup = f;\n return nest;\n };\n return nest;\n };\n d3.set = function(array) {\n var set = new d3_Set();\n if (array) for (var i = 0, n = array.length; i < n; ++i) set.add(array[i]);\n return set;\n };\n function d3_Set() {\n this._ = Object.create(null);\n }\n d3_class(d3_Set, {\n has: d3_map_has,\n add: function(key) {\n this._[d3_map_escape(key += \"\")] = true;\n return key;\n },\n remove: d3_map_remove,\n values: d3_map_keys,\n size: d3_map_size,\n empty: d3_map_empty,\n forEach: function(f) {\n for (var key in this._) f.call(this, d3_map_unescape(key));\n }\n });\n d3.behavior = {};\n function d3_identity(d) {\n return d;\n }\n d3.rebind = function(target, source) {\n var i = 1, n = arguments.length, method;\n while (++i < n) target[method = arguments[i]] = d3_rebind(target, source, source[method]);\n return target;\n };\n function d3_rebind(target, source, method) {\n return function() {\n var value = method.apply(source, arguments);\n return value === source ? target : value;\n };\n }\n function d3_vendorSymbol(object, name) {\n if (name in object) return name;\n name = name.charAt(0).toUpperCase() + name.slice(1);\n for (var i = 0, n = d3_vendorPrefixes.length; i < n; ++i) {\n var prefixName = d3_vendorPrefixes[i] + name;\n if (prefixName in object) return prefixName;\n }\n }\n var d3_vendorPrefixes = [ \"webkit\", \"ms\", \"moz\", \"Moz\", \"o\", \"O\" ];\n function d3_noop() {}\n d3.dispatch = function() {\n var dispatch = new d3_dispatch(), i = -1, n = arguments.length;\n while (++i < n) dispatch[arguments[i]] = d3_dispatch_event(dispatch);\n return dispatch;\n };\n function d3_dispatch() {}\n d3_dispatch.prototype.on = function(type, listener) {\n var i = type.indexOf(\".\"), name = \"\";\n if (i >= 0) {\n name = type.slice(i + 1);\n type = type.slice(0, i);\n }\n if (type) return arguments.length < 2 ? this[type].on(name) : this[type].on(name, listener);\n if (arguments.length === 2) {\n if (listener == null) for (type in this) {\n if (this.hasOwnProperty(type)) this[type].on(name, null);\n }\n return this;\n }\n };\n function d3_dispatch_event(dispatch) {\n var listeners = [], listenerByName = new d3_Map();\n function event() {\n var z = listeners, i = -1, n = z.length, l;\n while (++i < n) if (l = z[i].on) l.apply(this, arguments);\n return dispatch;\n }\n event.on = function(name, listener) {\n var l = listenerByName.get(name), i;\n if (arguments.length < 2) return l && l.on;\n if (l) {\n l.on = null;\n listeners = listeners.slice(0, i = listeners.indexOf(l)).concat(listeners.slice(i + 1));\n listenerByName.remove(name);\n }\n if (listener) listeners.push(listenerByName.set(name, {\n on: listener\n }));\n return dispatch;\n };\n return event;\n }\n d3.event = null;\n function d3_eventPreventDefault() {\n d3.event.preventDefault();\n }\n function d3_eventSource() {\n var e = d3.event, s;\n while (s = e.sourceEvent) e = s;\n return e;\n }\n function d3_eventDispatch(target) {\n var dispatch = new d3_dispatch(), i = 0, n = arguments.length;\n while (++i < n) dispatch[arguments[i]] = d3_dispatch_event(dispatch);\n dispatch.of = function(thiz, argumentz) {\n return function(e1) {\n try {\n var e0 = e1.sourceEvent = d3.event;\n e1.target = target;\n d3.event = e1;\n dispatch[e1.type].apply(thiz, argumentz);\n } finally {\n d3.event = e0;\n }\n };\n };\n return dispatch;\n }\n d3.requote = function(s) {\n return s.replace(d3_requote_re, \"\\\\$&\");\n };\n var d3_requote_re = /[\\\\\\^\\$\\*\\+\\?\\|\\[\\]\\(\\)\\.\\{\\}]/g;\n var d3_subclass = {}.__proto__ ? function(object, prototype) {\n object.__proto__ = prototype;\n } : function(object, prototype) {\n for (var property in prototype) object[property] = prototype[property];\n };\n function d3_selection(groups) {\n d3_subclass(groups, d3_selectionPrototype);\n return groups;\n }\n var d3_select = function(s, n) {\n return n.querySelector(s);\n }, d3_selectAll = function(s, n) {\n return n.querySelectorAll(s);\n }, d3_selectMatches = function(n, s) {\n var d3_selectMatcher = n.matches || n[d3_vendorSymbol(n, \"matchesSelector\")];\n d3_selectMatches = function(n, s) {\n return d3_selectMatcher.call(n, s);\n };\n return d3_selectMatches(n, s);\n };\n if (typeof Sizzle === \"function\") {\n d3_select = function(s, n) {\n return Sizzle(s, n)[0] || null;\n };\n d3_selectAll = Sizzle;\n d3_selectMatches = Sizzle.matchesSelector;\n }\n d3.selection = function() {\n return d3.select(d3_document.documentElement);\n };\n var d3_selectionPrototype = d3.selection.prototype = [];\n d3_selectionPrototype.select = function(selector) {\n var subgroups = [], subgroup, subnode, group, node;\n selector = d3_selection_selector(selector);\n for (var j = -1, m = this.length; ++j < m; ) {\n subgroups.push(subgroup = []);\n subgroup.parentNode = (group = this[j]).parentNode;\n for (var i = -1, n = group.length; ++i < n; ) {\n if (node = group[i]) {\n subgroup.push(subnode = selector.call(node, node.__data__, i, j));\n if (subnode && \"__data__\" in node) subnode.__data__ = node.__data__;\n } else {\n subgroup.push(null);\n }\n }\n }\n return d3_selection(subgroups);\n };\n function d3_selection_selector(selector) {\n return typeof selector === \"function\" ? selector : function() {\n return d3_select(selector, this);\n };\n }\n d3_selectionPrototype.selectAll = function(selector) {\n var subgroups = [], subgroup, node;\n selector = d3_selection_selectorAll(selector);\n for (var j = -1, m = this.length; ++j < m; ) {\n for (var group = this[j], i = -1, n = group.length; ++i < n; ) {\n if (node = group[i]) {\n subgroups.push(subgroup = d3_array(selector.call(node, node.__data__, i, j)));\n subgroup.parentNode = node;\n }\n }\n }\n return d3_selection(subgroups);\n };\n function d3_selection_selectorAll(selector) {\n return typeof selector === \"function\" ? selector : function() {\n return d3_selectAll(selector, this);\n };\n }\n var d3_nsXhtml = \"http://www.w3.org/1999/xhtml\";\n var d3_nsPrefix = {\n svg: \"http://www.w3.org/2000/svg\",\n xhtml: d3_nsXhtml,\n xlink: \"http://www.w3.org/1999/xlink\",\n xml: \"http://www.w3.org/XML/1998/namespace\",\n xmlns: \"http://www.w3.org/2000/xmlns/\"\n };\n d3.ns = {\n prefix: d3_nsPrefix,\n qualify: function(name) {\n var i = name.indexOf(\":\"), prefix = name;\n if (i >= 0 && (prefix = name.slice(0, i)) !== \"xmlns\") name = name.slice(i + 1);\n return d3_nsPrefix.hasOwnProperty(prefix) ? {\n space: d3_nsPrefix[prefix],\n local: name\n } : name;\n }\n };\n d3_selectionPrototype.attr = function(name, value) {\n if (arguments.length < 2) {\n if (typeof name === \"string\") {\n var node = this.node();\n name = d3.ns.qualify(name);\n return name.local ? node.getAttributeNS(name.space, name.local) : node.getAttribute(name);\n }\n for (value in name) this.each(d3_selection_attr(value, name[value]));\n return this;\n }\n return this.each(d3_selection_attr(name, value));\n };\n function d3_selection_attr(name, value) {\n name = d3.ns.qualify(name);\n function attrNull() {\n this.removeAttribute(name);\n }\n function attrNullNS() {\n this.removeAttributeNS(name.space, name.local);\n }\n function attrConstant() {\n this.setAttribute(name, value);\n }\n function attrConstantNS() {\n this.setAttributeNS(name.space, name.local, value);\n }\n function attrFunction() {\n var x = value.apply(this, arguments);\n if (x == null) this.removeAttribute(name); else this.setAttribute(name, x);\n }\n function attrFunctionNS() {\n var x = value.apply(this, arguments);\n if (x == null) this.removeAttributeNS(name.space, name.local); else this.setAttributeNS(name.space, name.local, x);\n }\n return value == null ? name.local ? attrNullNS : attrNull : typeof value === \"function\" ? name.local ? attrFunctionNS : attrFunction : name.local ? attrConstantNS : attrConstant;\n }\n function d3_collapse(s) {\n return s.trim().replace(/\\s+/g, \" \");\n }\n d3_selectionPrototype.classed = function(name, value) {\n if (arguments.length < 2) {\n if (typeof name === \"string\") {\n var node = this.node(), n = (name = d3_selection_classes(name)).length, i = -1;\n if (value = node.classList) {\n while (++i < n) if (!value.contains(name[i])) return false;\n } else {\n value = node.getAttribute(\"class\");\n while (++i < n) if (!d3_selection_classedRe(name[i]).test(value)) return false;\n }\n return true;\n }\n for (value in name) this.each(d3_selection_classed(value, name[value]));\n return this;\n }\n return this.each(d3_selection_classed(name, value));\n };\n function d3_selection_classedRe(name) {\n return new RegExp(\"(?:^|\\\\s+)\" + d3.requote(name) + \"(?:\\\\s+|$)\", \"g\");\n }\n function d3_selection_classes(name) {\n return (name + \"\").trim().split(/^|\\s+/);\n }\n function d3_selection_classed(name, value) {\n name = d3_selection_classes(name).map(d3_selection_classedName);\n var n = name.length;\n function classedConstant() {\n var i = -1;\n while (++i < n) name[i](this, value);\n }\n function classedFunction() {\n var i = -1, x = value.apply(this, arguments);\n while (++i < n) name[i](this, x);\n }\n return typeof value === \"function\" ? classedFunction : classedConstant;\n }\n function d3_selection_classedName(name) {\n var re = d3_selection_classedRe(name);\n return function(node, value) {\n if (c = node.classList) return value ? c.add(name) : c.remove(name);\n var c = node.getAttribute(\"class\") || \"\";\n if (value) {\n re.lastIndex = 0;\n if (!re.test(c)) node.setAttribute(\"class\", d3_collapse(c + \" \" + name));\n } else {\n node.setAttribute(\"class\", d3_collapse(c.replace(re, \" \")));\n }\n };\n }\n d3_selectionPrototype.style = function(name, value, priority) {\n var n = arguments.length;\n if (n < 3) {\n if (typeof name !== \"string\") {\n if (n < 2) value = \"\";\n for (priority in name) this.each(d3_selection_style(priority, name[priority], value));\n return this;\n }\n if (n < 2) {\n var node = this.node();\n return d3_window(node).getComputedStyle(node, null).getPropertyValue(name);\n }\n priority = \"\";\n }\n return this.each(d3_selection_style(name, value, priority));\n };\n function d3_selection_style(name, value, priority) {\n function styleNull() {\n this.style.removeProperty(name);\n }\n function styleConstant() {\n this.style.setProperty(name, value, priority);\n }\n function styleFunction() {\n var x = value.apply(this, arguments);\n if (x == null) this.style.removeProperty(name); else this.style.setProperty(name, x, priority);\n }\n return value == null ? styleNull : typeof value === \"function\" ? styleFunction : styleConstant;\n }\n d3_selectionPrototype.property = function(name, value) {\n if (arguments.length < 2) {\n if (typeof name === \"string\") return this.node()[name];\n for (value in name) this.each(d3_selection_property(value, name[value]));\n return this;\n }\n return this.each(d3_selection_property(name, value));\n };\n function d3_selection_property(name, value) {\n function propertyNull() {\n delete this[name];\n }\n function propertyConstant() {\n this[name] = value;\n }\n function propertyFunction() {\n var x = value.apply(this, arguments);\n if (x == null) delete this[name]; else this[name] = x;\n }\n return value == null ? propertyNull : typeof value === \"function\" ? propertyFunction : propertyConstant;\n }\n d3_selectionPrototype.text = function(value) {\n return arguments.length ? this.each(typeof value === \"function\" ? function() {\n var v = value.apply(this, arguments);\n this.textContent = v == null ? \"\" : v;\n } : value == null ? function() {\n this.textContent = \"\";\n } : function() {\n this.textContent = value;\n }) : this.node().textContent;\n };\n d3_selectionPrototype.html = function(value) {\n return arguments.length ? this.each(typeof value === \"function\" ? function() {\n var v = value.apply(this, arguments);\n this.innerHTML = v == null ? \"\" : v;\n } : value == null ? function() {\n this.innerHTML = \"\";\n } : function() {\n this.innerHTML = value;\n }) : this.node().innerHTML;\n };\n d3_selectionPrototype.append = function(name) {\n name = d3_selection_creator(name);\n return this.select(function() {\n return this.appendChild(name.apply(this, arguments));\n });\n };\n function d3_selection_creator(name) {\n function create() {\n var document = this.ownerDocument, namespace = this.namespaceURI;\n return namespace === d3_nsXhtml && document.documentElement.namespaceURI === d3_nsXhtml ? document.createElement(name) : document.createElementNS(namespace, name);\n }\n function createNS() {\n return this.ownerDocument.createElementNS(name.space, name.local);\n }\n return typeof name === \"function\" ? name : (name = d3.ns.qualify(name)).local ? createNS : create;\n }\n d3_selectionPrototype.insert = function(name, before) {\n name = d3_selection_creator(name);\n before = d3_selection_selector(before);\n return this.select(function() {\n return this.insertBefore(name.apply(this, arguments), before.apply(this, arguments) || null);\n });\n };\n d3_selectionPrototype.remove = function() {\n return this.each(d3_selectionRemove);\n };\n function d3_selectionRemove() {\n var parent = this.parentNode;\n if (parent) parent.removeChild(this);\n }\n d3_selectionPrototype.data = function(value, key) {\n var i = -1, n = this.length, group, node;\n if (!arguments.length) {\n value = new Array(n = (group = this[0]).length);\n while (++i < n) {\n if (node = group[i]) {\n value[i] = node.__data__;\n }\n }\n return value;\n }\n function bind(group, groupData) {\n var i, n = group.length, m = groupData.length, n0 = Math.min(n, m), updateNodes = new Array(m), enterNodes = new Array(m), exitNodes = new Array(n), node, nodeData;\n if (key) {\n var nodeByKeyValue = new d3_Map(), keyValues = new Array(n), keyValue;\n for (i = -1; ++i < n; ) {\n if (node = group[i]) {\n if (nodeByKeyValue.has(keyValue = key.call(node, node.__data__, i))) {\n exitNodes[i] = node;\n } else {\n nodeByKeyValue.set(keyValue, node);\n }\n keyValues[i] = keyValue;\n }\n }\n for (i = -1; ++i < m; ) {\n if (!(node = nodeByKeyValue.get(keyValue = key.call(groupData, nodeData = groupData[i], i)))) {\n enterNodes[i] = d3_selection_dataNode(nodeData);\n } else if (node !== true) {\n updateNodes[i] = node;\n node.__data__ = nodeData;\n }\n nodeByKeyValue.set(keyValue, true);\n }\n for (i = -1; ++i < n; ) {\n if (i in keyValues && nodeByKeyValue.get(keyValues[i]) !== true) {\n exitNodes[i] = group[i];\n }\n }\n } else {\n for (i = -1; ++i < n0; ) {\n node = group[i];\n nodeData = groupData[i];\n if (node) {\n node.__data__ = nodeData;\n updateNodes[i] = node;\n } else {\n enterNodes[i] = d3_selection_dataNode(nodeData);\n }\n }\n for (;i < m; ++i) {\n enterNodes[i] = d3_selection_dataNode(groupData[i]);\n }\n for (;i < n; ++i) {\n exitNodes[i] = group[i];\n }\n }\n enterNodes.update = updateNodes;\n enterNodes.parentNode = updateNodes.parentNode = exitNodes.parentNode = group.parentNode;\n enter.push(enterNodes);\n update.push(updateNodes);\n exit.push(exitNodes);\n }\n var enter = d3_selection_enter([]), update = d3_selection([]), exit = d3_selection([]);\n if (typeof value === \"function\") {\n while (++i < n) {\n bind(group = this[i], value.call(group, group.parentNode.__data__, i));\n }\n } else {\n while (++i < n) {\n bind(group = this[i], value);\n }\n }\n update.enter = function() {\n return enter;\n };\n update.exit = function() {\n return exit;\n };\n return update;\n };\n function d3_selection_dataNode(data) {\n return {\n __data__: data\n };\n }\n d3_selectionPrototype.datum = function(value) {\n return arguments.length ? this.property(\"__data__\", value) : this.property(\"__data__\");\n };\n d3_selectionPrototype.filter = function(filter) {\n var subgroups = [], subgroup, group, node;\n if (typeof filter !== \"function\") filter = d3_selection_filter(filter);\n for (var j = 0, m = this.length; j < m; j++) {\n subgroups.push(subgroup = []);\n subgroup.parentNode = (group = this[j]).parentNode;\n for (var i = 0, n = group.length; i < n; i++) {\n if ((node = group[i]) && filter.call(node, node.__data__, i, j)) {\n subgroup.push(node);\n }\n }\n }\n return d3_selection(subgroups);\n };\n function d3_selection_filter(selector) {\n return function() {\n return d3_selectMatches(this, selector);\n };\n }\n d3_selectionPrototype.order = function() {\n for (var j = -1, m = this.length; ++j < m; ) {\n for (var group = this[j], i = group.length - 1, next = group[i], node; --i >= 0; ) {\n if (node = group[i]) {\n if (next && next !== node.nextSibling) next.parentNode.insertBefore(node, next);\n next = node;\n }\n }\n }\n return this;\n };\n d3_selectionPrototype.sort = function(comparator) {\n comparator = d3_selection_sortComparator.apply(this, arguments);\n for (var j = -1, m = this.length; ++j < m; ) this[j].sort(comparator);\n return this.order();\n };\n function d3_selection_sortComparator(comparator) {\n if (!arguments.length) comparator = d3_ascending;\n return function(a, b) {\n return a && b ? comparator(a.__data__, b.__data__) : !a - !b;\n };\n }\n d3_selectionPrototype.each = function(callback) {\n return d3_selection_each(this, function(node, i, j) {\n callback.call(node, node.__data__, i, j);\n });\n };\n function d3_selection_each(groups, callback) {\n for (var j = 0, m = groups.length; j < m; j++) {\n for (var group = groups[j], i = 0, n = group.length, node; i < n; i++) {\n if (node = group[i]) callback(node, i, j);\n }\n }\n return groups;\n }\n d3_selectionPrototype.call = function(callback) {\n var args = d3_array(arguments);\n callback.apply(args[0] = this, args);\n return this;\n };\n d3_selectionPrototype.empty = function() {\n return !this.node();\n };\n d3_selectionPrototype.node = function() {\n for (var j = 0, m = this.length; j < m; j++) {\n for (var group = this[j], i = 0, n = group.length; i < n; i++) {\n var node = group[i];\n if (node) return node;\n }\n }\n return null;\n };\n d3_selectionPrototype.size = function() {\n var n = 0;\n d3_selection_each(this, function() {\n ++n;\n });\n return n;\n };\n function d3_selection_enter(selection) {\n d3_subclass(selection, d3_selection_enterPrototype);\n return selection;\n }\n var d3_selection_enterPrototype = [];\n d3.selection.enter = d3_selection_enter;\n d3.selection.enter.prototype = d3_selection_enterPrototype;\n d3_selection_enterPrototype.append = d3_selectionPrototype.append;\n d3_selection_enterPrototype.empty = d3_selectionPrototype.empty;\n d3_selection_enterPrototype.node = d3_selectionPrototype.node;\n d3_selection_enterPrototype.call = d3_selectionPrototype.call;\n d3_selection_enterPrototype.size = d3_selectionPrototype.size;\n d3_selection_enterPrototype.select = function(selector) {\n var subgroups = [], subgroup, subnode, upgroup, group, node;\n for (var j = -1, m = this.length; ++j < m; ) {\n upgroup = (group = this[j]).update;\n subgroups.push(subgroup = []);\n subgroup.parentNode = group.parentNode;\n for (var i = -1, n = group.length; ++i < n; ) {\n if (node = group[i]) {\n subgroup.push(upgroup[i] = subnode = selector.call(group.parentNode, node.__data__, i, j));\n subnode.__data__ = node.__data__;\n } else {\n subgroup.push(null);\n }\n }\n }\n return d3_selection(subgroups);\n };\n d3_selection_enterPrototype.insert = function(name, before) {\n if (arguments.length < 2) before = d3_selection_enterInsertBefore(this);\n return d3_selectionPrototype.insert.call(this, name, before);\n };\n function d3_selection_enterInsertBefore(enter) {\n var i0, j0;\n return function(d, i, j) {\n var group = enter[j].update, n = group.length, node;\n if (j != j0) j0 = j, i0 = 0;\n if (i >= i0) i0 = i + 1;\n while (!(node = group[i0]) && ++i0 < n) ;\n return node;\n };\n }\n d3.select = function(node) {\n var group;\n if (typeof node === \"string\") {\n group = [ d3_select(node, d3_document) ];\n group.parentNode = d3_document.documentElement;\n } else {\n group = [ node ];\n group.parentNode = d3_documentElement(node);\n }\n return d3_selection([ group ]);\n };\n d3.selectAll = function(nodes) {\n var group;\n if (typeof nodes === \"string\") {\n group = d3_array(d3_selectAll(nodes, d3_document));\n group.parentNode = d3_document.documentElement;\n } else {\n group = d3_array(nodes);\n group.parentNode = null;\n }\n return d3_selection([ group ]);\n };\n d3_selectionPrototype.on = function(type, listener, capture) {\n var n = arguments.length;\n if (n < 3) {\n if (typeof type !== \"string\") {\n if (n < 2) listener = false;\n for (capture in type) this.each(d3_selection_on(capture, type[capture], listener));\n return this;\n }\n if (n < 2) return (n = this.node()[\"__on\" + type]) && n._;\n capture = false;\n }\n return this.each(d3_selection_on(type, listener, capture));\n };\n function d3_selection_on(type, listener, capture) {\n var name = \"__on\" + type, i = type.indexOf(\".\"), wrap = d3_selection_onListener;\n if (i > 0) type = type.slice(0, i);\n var filter = d3_selection_onFilters.get(type);\n if (filter) type = filter, wrap = d3_selection_onFilter;\n function onRemove() {\n var l = this[name];\n if (l) {\n this.removeEventListener(type, l, l.$);\n delete this[name];\n }\n }\n function onAdd() {\n var l = wrap(listener, d3_array(arguments));\n onRemove.call(this);\n this.addEventListener(type, this[name] = l, l.$ = capture);\n l._ = listener;\n }\n function removeAll() {\n var re = new RegExp(\"^__on([^.]+)\" + d3.requote(type) + \"$\"), match;\n for (var name in this) {\n if (match = name.match(re)) {\n var l = this[name];\n this.removeEventListener(match[1], l, l.$);\n delete this[name];\n }\n }\n }\n return i ? listener ? onAdd : onRemove : listener ? d3_noop : removeAll;\n }\n var d3_selection_onFilters = d3.map({\n mouseenter: \"mouseover\",\n mouseleave: \"mouseout\"\n });\n if (d3_document) {\n d3_selection_onFilters.forEach(function(k) {\n if (\"on\" + k in d3_document) d3_selection_onFilters.remove(k);\n });\n }\n function d3_selection_onListener(listener, argumentz) {\n return function(e) {\n var o = d3.event;\n d3.event = e;\n argumentz[0] = this.__data__;\n try {\n listener.apply(this, argumentz);\n } finally {\n d3.event = o;\n }\n };\n }\n function d3_selection_onFilter(listener, argumentz) {\n var l = d3_selection_onListener(listener, argumentz);\n return function(e) {\n var target = this, related = e.relatedTarget;\n if (!related || related !== target && !(related.compareDocumentPosition(target) & 8)) {\n l.call(target, e);\n }\n };\n }\n var d3_event_dragSelect, d3_event_dragId = 0;\n function d3_event_dragSuppress(node) {\n var name = \".dragsuppress-\" + ++d3_event_dragId, click = \"click\" + name, w = d3.select(d3_window(node)).on(\"touchmove\" + name, d3_eventPreventDefault).on(\"dragstart\" + name, d3_eventPreventDefault).on(\"selectstart\" + name, d3_eventPreventDefault);\n if (d3_event_dragSelect == null) {\n d3_event_dragSelect = \"onselectstart\" in node ? false : d3_vendorSymbol(node.style, \"userSelect\");\n }\n if (d3_event_dragSelect) {\n var style = d3_documentElement(node).style, select = style[d3_event_dragSelect];\n style[d3_event_dragSelect] = \"none\";\n }\n return function(suppressClick) {\n w.on(name, null);\n if (d3_event_dragSelect) style[d3_event_dragSelect] = select;\n if (suppressClick) {\n var off = function() {\n w.on(click, null);\n };\n w.on(click, function() {\n d3_eventPreventDefault();\n off();\n }, true);\n setTimeout(off, 0);\n }\n };\n }\n d3.mouse = function(container) {\n return d3_mousePoint(container, d3_eventSource());\n };\n var d3_mouse_bug44083 = this.navigator && /WebKit/.test(this.navigator.userAgent) ? -1 : 0;\n function d3_mousePoint(container, e) {\n if (e.changedTouches) e = e.changedTouches[0];\n var svg = container.ownerSVGElement || container;\n if (svg.createSVGPoint) {\n var point = svg.createSVGPoint();\n if (d3_mouse_bug44083 < 0) {\n var window = d3_window(container);\n if (window.scrollX || window.scrollY) {\n svg = d3.select(\"body\").append(\"svg\").style({\n position: \"absolute\",\n top: 0,\n left: 0,\n margin: 0,\n padding: 0,\n border: \"none\"\n }, \"important\");\n var ctm = svg[0][0].getScreenCTM();\n d3_mouse_bug44083 = !(ctm.f || ctm.e);\n svg.remove();\n }\n }\n if (d3_mouse_bug44083) point.x = e.pageX, point.y = e.pageY; else point.x = e.clientX, \n point.y = e.clientY;\n point = point.matrixTransform(container.getScreenCTM().inverse());\n return [ point.x, point.y ];\n }\n var rect = container.getBoundingClientRect();\n return [ e.clientX - rect.left - container.clientLeft, e.clientY - rect.top - container.clientTop ];\n }\n d3.touch = function(container, touches, identifier) {\n if (arguments.length < 3) identifier = touches, touches = d3_eventSource().changedTouches;\n if (touches) for (var i = 0, n = touches.length, touch; i < n; ++i) {\n if ((touch = touches[i]).identifier === identifier) {\n return d3_mousePoint(container, touch);\n }\n }\n };\n d3.behavior.drag = function() {\n var event = d3_eventDispatch(drag, \"drag\", \"dragstart\", \"dragend\"), origin = null, mousedown = dragstart(d3_noop, d3.mouse, d3_window, \"mousemove\", \"mouseup\"), touchstart = dragstart(d3_behavior_dragTouchId, d3.touch, d3_identity, \"touchmove\", \"touchend\");\n function drag() {\n this.on(\"mousedown.drag\", mousedown).on(\"touchstart.drag\", touchstart);\n }\n function dragstart(id, position, subject, move, end) {\n return function() {\n var that = this, target = d3.event.target.correspondingElement || d3.event.target, parent = that.parentNode, dispatch = event.of(that, arguments), dragged = 0, dragId = id(), dragName = \".drag\" + (dragId == null ? \"\" : \"-\" + dragId), dragOffset, dragSubject = d3.select(subject(target)).on(move + dragName, moved).on(end + dragName, ended), dragRestore = d3_event_dragSuppress(target), position0 = position(parent, dragId);\n if (origin) {\n dragOffset = origin.apply(that, arguments);\n dragOffset = [ dragOffset.x - position0[0], dragOffset.y - position0[1] ];\n } else {\n dragOffset = [ 0, 0 ];\n }\n dispatch({\n type: \"dragstart\"\n });\n function moved() {\n var position1 = position(parent, dragId), dx, dy;\n if (!position1) return;\n dx = position1[0] - position0[0];\n dy = position1[1] - position0[1];\n dragged |= dx | dy;\n position0 = position1;\n dispatch({\n type: \"drag\",\n x: position1[0] + dragOffset[0],\n y: position1[1] + dragOffset[1],\n dx: dx,\n dy: dy\n });\n }\n function ended() {\n if (!position(parent, dragId)) return;\n dragSubject.on(move + dragName, null).on(end + dragName, null);\n dragRestore(dragged);\n dispatch({\n type: \"dragend\"\n });\n }\n };\n }\n drag.origin = function(x) {\n if (!arguments.length) return origin;\n origin = x;\n return drag;\n };\n return d3.rebind(drag, event, \"on\");\n };\n function d3_behavior_dragTouchId() {\n return d3.event.changedTouches[0].identifier;\n }\n d3.touches = function(container, touches) {\n if (arguments.length < 2) touches = d3_eventSource().touches;\n return touches ? d3_array(touches).map(function(touch) {\n var point = d3_mousePoint(container, touch);\n point.identifier = touch.identifier;\n return point;\n }) : [];\n };\n var ε = 1e-6, ε2 = ε * ε, π = Math.PI, τ = 2 * π, τε = τ - ε, halfπ = π / 2, d3_radians = π / 180, d3_degrees = 180 / π;\n function d3_sgn(x) {\n return x > 0 ? 1 : x < 0 ? -1 : 0;\n }\n function d3_cross2d(a, b, c) {\n return (b[0] - a[0]) * (c[1] - a[1]) - (b[1] - a[1]) * (c[0] - a[0]);\n }\n function d3_acos(x) {\n return x > 1 ? 0 : x < -1 ? π : Math.acos(x);\n }\n function d3_asin(x) {\n return x > 1 ? halfπ : x < -1 ? -halfπ : Math.asin(x);\n }\n function d3_sinh(x) {\n return ((x = Math.exp(x)) - 1 / x) / 2;\n }\n function d3_cosh(x) {\n return ((x = Math.exp(x)) + 1 / x) / 2;\n }\n function d3_tanh(x) {\n return ((x = Math.exp(2 * x)) - 1) / (x + 1);\n }\n function d3_haversin(x) {\n return (x = Math.sin(x / 2)) * x;\n }\n var ρ = Math.SQRT2, ρ2 = 2, ρ4 = 4;\n d3.interpolateZoom = function(p0, p1) {\n var ux0 = p0[0], uy0 = p0[1], w0 = p0[2], ux1 = p1[0], uy1 = p1[1], w1 = p1[2], dx = ux1 - ux0, dy = uy1 - uy0, d2 = dx * dx + dy * dy, i, S;\n if (d2 < ε2) {\n S = Math.log(w1 / w0) / ρ;\n i = function(t) {\n return [ ux0 + t * dx, uy0 + t * dy, w0 * Math.exp(ρ * t * S) ];\n };\n } else {\n var d1 = Math.sqrt(d2), b0 = (w1 * w1 - w0 * w0 + ρ4 * d2) / (2 * w0 * ρ2 * d1), b1 = (w1 * w1 - w0 * w0 - ρ4 * d2) / (2 * w1 * ρ2 * d1), r0 = Math.log(Math.sqrt(b0 * b0 + 1) - b0), r1 = Math.log(Math.sqrt(b1 * b1 + 1) - b1);\n S = (r1 - r0) / ρ;\n i = function(t) {\n var s = t * S, coshr0 = d3_cosh(r0), u = w0 / (ρ2 * d1) * (coshr0 * d3_tanh(ρ * s + r0) - d3_sinh(r0));\n return [ ux0 + u * dx, uy0 + u * dy, w0 * coshr0 / d3_cosh(ρ * s + r0) ];\n };\n }\n i.duration = S * 1e3;\n return i;\n };\n d3.behavior.zoom = function() {\n var view = {\n x: 0,\n y: 0,\n k: 1\n }, translate0, center0, center, size = [ 960, 500 ], scaleExtent = d3_behavior_zoomInfinity, duration = 250, zooming = 0, mousedown = \"mousedown.zoom\", mousemove = \"mousemove.zoom\", mouseup = \"mouseup.zoom\", mousewheelTimer, touchstart = \"touchstart.zoom\", touchtime, event = d3_eventDispatch(zoom, \"zoomstart\", \"zoom\", \"zoomend\"), x0, x1, y0, y1;\n if (!d3_behavior_zoomWheel) {\n d3_behavior_zoomWheel = \"onwheel\" in d3_document ? (d3_behavior_zoomDelta = function() {\n return -d3.event.deltaY * (d3.event.deltaMode ? 120 : 1);\n }, \"wheel\") : \"onmousewheel\" in d3_document ? (d3_behavior_zoomDelta = function() {\n return d3.event.wheelDelta;\n }, \"mousewheel\") : (d3_behavior_zoomDelta = function() {\n return -d3.event.detail;\n }, \"MozMousePixelScroll\");\n }\n function zoom(g) {\n g.on(mousedown, mousedowned).on(d3_behavior_zoomWheel + \".zoom\", mousewheeled).on(\"dblclick.zoom\", dblclicked).on(touchstart, touchstarted);\n }\n zoom.event = function(g) {\n g.each(function() {\n var dispatch = event.of(this, arguments), view1 = view;\n if (d3_transitionInheritId) {\n d3.select(this).transition().each(\"start.zoom\", function() {\n view = this.__chart__ || {\n x: 0,\n y: 0,\n k: 1\n };\n zoomstarted(dispatch);\n }).tween(\"zoom:zoom\", function() {\n var dx = size[0], dy = size[1], cx = center0 ? center0[0] : dx / 2, cy = center0 ? center0[1] : dy / 2, i = d3.interpolateZoom([ (cx - view.x) / view.k, (cy - view.y) / view.k, dx / view.k ], [ (cx - view1.x) / view1.k, (cy - view1.y) / view1.k, dx / view1.k ]);\n return function(t) {\n var l = i(t), k = dx / l[2];\n this.__chart__ = view = {\n x: cx - l[0] * k,\n y: cy - l[1] * k,\n k: k\n };\n zoomed(dispatch);\n };\n }).each(\"interrupt.zoom\", function() {\n zoomended(dispatch);\n }).each(\"end.zoom\", function() {\n zoomended(dispatch);\n });\n } else {\n this.__chart__ = view;\n zoomstarted(dispatch);\n zoomed(dispatch);\n zoomended(dispatch);\n }\n });\n };\n zoom.translate = function(_) {\n if (!arguments.length) return [ view.x, view.y ];\n view = {\n x: +_[0],\n y: +_[1],\n k: view.k\n };\n rescale();\n return zoom;\n };\n zoom.scale = function(_) {\n if (!arguments.length) return view.k;\n view = {\n x: view.x,\n y: view.y,\n k: null\n };\n scaleTo(+_);\n rescale();\n return zoom;\n };\n zoom.scaleExtent = function(_) {\n if (!arguments.length) return scaleExtent;\n scaleExtent = _ == null ? d3_behavior_zoomInfinity : [ +_[0], +_[1] ];\n return zoom;\n };\n zoom.center = function(_) {\n if (!arguments.length) return center;\n center = _ && [ +_[0], +_[1] ];\n return zoom;\n };\n zoom.size = function(_) {\n if (!arguments.length) return size;\n size = _ && [ +_[0], +_[1] ];\n return zoom;\n };\n zoom.duration = function(_) {\n if (!arguments.length) return duration;\n duration = +_;\n return zoom;\n };\n zoom.x = function(z) {\n if (!arguments.length) return x1;\n x1 = z;\n x0 = z.copy();\n view = {\n x: 0,\n y: 0,\n k: 1\n };\n return zoom;\n };\n zoom.y = function(z) {\n if (!arguments.length) return y1;\n y1 = z;\n y0 = z.copy();\n view = {\n x: 0,\n y: 0,\n k: 1\n };\n return zoom;\n };\n function location(p) {\n return [ (p[0] - view.x) / view.k, (p[1] - view.y) / view.k ];\n }\n function point(l) {\n return [ l[0] * view.k + view.x, l[1] * view.k + view.y ];\n }\n function scaleTo(s) {\n view.k = Math.max(scaleExtent[0], Math.min(scaleExtent[1], s));\n }\n function translateTo(p, l) {\n l = point(l);\n view.x += p[0] - l[0];\n view.y += p[1] - l[1];\n }\n function zoomTo(that, p, l, k) {\n that.__chart__ = {\n x: view.x,\n y: view.y,\n k: view.k\n };\n scaleTo(Math.pow(2, k));\n translateTo(center0 = p, l);\n that = d3.select(that);\n if (duration > 0) that = that.transition().duration(duration);\n that.call(zoom.event);\n }\n function rescale() {\n if (x1) x1.domain(x0.range().map(function(x) {\n return (x - view.x) / view.k;\n }).map(x0.invert));\n if (y1) y1.domain(y0.range().map(function(y) {\n return (y - view.y) / view.k;\n }).map(y0.invert));\n }\n function zoomstarted(dispatch) {\n if (!zooming++) dispatch({\n type: \"zoomstart\"\n });\n }\n function zoomed(dispatch) {\n rescale();\n dispatch({\n type: \"zoom\",\n scale: view.k,\n translate: [ view.x, view.y ]\n });\n }\n function zoomended(dispatch) {\n if (!--zooming) dispatch({\n type: \"zoomend\"\n }), center0 = null;\n }\n function mousedowned() {\n var that = this, dispatch = event.of(that, arguments), dragged = 0, subject = d3.select(d3_window(that)).on(mousemove, moved).on(mouseup, ended), location0 = location(d3.mouse(that)), dragRestore = d3_event_dragSuppress(that);\n d3_selection_interrupt.call(that);\n zoomstarted(dispatch);\n function moved() {\n dragged = 1;\n translateTo(d3.mouse(that), location0);\n zoomed(dispatch);\n }\n function ended() {\n subject.on(mousemove, null).on(mouseup, null);\n dragRestore(dragged);\n zoomended(dispatch);\n }\n }\n function touchstarted() {\n var that = this, dispatch = event.of(that, arguments), locations0 = {}, distance0 = 0, scale0, zoomName = \".zoom-\" + d3.event.changedTouches[0].identifier, touchmove = \"touchmove\" + zoomName, touchend = \"touchend\" + zoomName, targets = [], subject = d3.select(that), dragRestore = d3_event_dragSuppress(that);\n started();\n zoomstarted(dispatch);\n subject.on(mousedown, null).on(touchstart, started);\n function relocate() {\n var touches = d3.touches(that);\n scale0 = view.k;\n touches.forEach(function(t) {\n if (t.identifier in locations0) locations0[t.identifier] = location(t);\n });\n return touches;\n }\n function started() {\n var target = d3.event.target;\n d3.select(target).on(touchmove, moved).on(touchend, ended);\n targets.push(target);\n var changed = d3.event.changedTouches;\n for (var i = 0, n = changed.length; i < n; ++i) {\n locations0[changed[i].identifier] = null;\n }\n var touches = relocate(), now = Date.now();\n if (touches.length === 1) {\n if (now - touchtime < 500) {\n var p = touches[0];\n zoomTo(that, p, locations0[p.identifier], Math.floor(Math.log(view.k) / Math.LN2) + 1);\n d3_eventPreventDefault();\n }\n touchtime = now;\n } else if (touches.length > 1) {\n var p = touches[0], q = touches[1], dx = p[0] - q[0], dy = p[1] - q[1];\n distance0 = dx * dx + dy * dy;\n }\n }\n function moved() {\n var touches = d3.touches(that), p0, l0, p1, l1;\n d3_selection_interrupt.call(that);\n for (var i = 0, n = touches.length; i < n; ++i, l1 = null) {\n p1 = touches[i];\n if (l1 = locations0[p1.identifier]) {\n if (l0) break;\n p0 = p1, l0 = l1;\n }\n }\n if (l1) {\n var distance1 = (distance1 = p1[0] - p0[0]) * distance1 + (distance1 = p1[1] - p0[1]) * distance1, scale1 = distance0 && Math.sqrt(distance1 / distance0);\n p0 = [ (p0[0] + p1[0]) / 2, (p0[1] + p1[1]) / 2 ];\n l0 = [ (l0[0] + l1[0]) / 2, (l0[1] + l1[1]) / 2 ];\n scaleTo(scale1 * scale0);\n }\n touchtime = null;\n translateTo(p0, l0);\n zoomed(dispatch);\n }\n function ended() {\n if (d3.event.touches.length) {\n var changed = d3.event.changedTouches;\n for (var i = 0, n = changed.length; i < n; ++i) {\n delete locations0[changed[i].identifier];\n }\n for (var identifier in locations0) {\n return void relocate();\n }\n }\n d3.selectAll(targets).on(zoomName, null);\n subject.on(mousedown, mousedowned).on(touchstart, touchstarted);\n dragRestore();\n zoomended(dispatch);\n }\n }\n function mousewheeled() {\n var dispatch = event.of(this, arguments);\n if (mousewheelTimer) clearTimeout(mousewheelTimer); else d3_selection_interrupt.call(this), \n translate0 = location(center0 = center || d3.mouse(this)), zoomstarted(dispatch);\n mousewheelTimer = setTimeout(function() {\n mousewheelTimer = null;\n zoomended(dispatch);\n }, 50);\n d3_eventPreventDefault();\n scaleTo(Math.pow(2, d3_behavior_zoomDelta() * .002) * view.k);\n translateTo(center0, translate0);\n zoomed(dispatch);\n }\n function dblclicked() {\n var p = d3.mouse(this), k = Math.log(view.k) / Math.LN2;\n zoomTo(this, p, location(p), d3.event.shiftKey ? Math.ceil(k) - 1 : Math.floor(k) + 1);\n }\n return d3.rebind(zoom, event, \"on\");\n };\n var d3_behavior_zoomInfinity = [ 0, Infinity ], d3_behavior_zoomDelta, d3_behavior_zoomWheel;\n d3.color = d3_color;\n function d3_color() {}\n d3_color.prototype.toString = function() {\n return this.rgb() + \"\";\n };\n d3.hsl = d3_hsl;\n function d3_hsl(h, s, l) {\n return this instanceof d3_hsl ? void (this.h = +h, this.s = +s, this.l = +l) : arguments.length < 2 ? h instanceof d3_hsl ? new d3_hsl(h.h, h.s, h.l) : d3_rgb_parse(\"\" + h, d3_rgb_hsl, d3_hsl) : new d3_hsl(h, s, l);\n }\n var d3_hslPrototype = d3_hsl.prototype = new d3_color();\n d3_hslPrototype.brighter = function(k) {\n k = Math.pow(.7, arguments.length ? k : 1);\n return new d3_hsl(this.h, this.s, this.l / k);\n };\n d3_hslPrototype.darker = function(k) {\n k = Math.pow(.7, arguments.length ? k : 1);\n return new d3_hsl(this.h, this.s, k * this.l);\n };\n d3_hslPrototype.rgb = function() {\n return d3_hsl_rgb(this.h, this.s, this.l);\n };\n function d3_hsl_rgb(h, s, l) {\n var m1, m2;\n h = isNaN(h) ? 0 : (h %= 360) < 0 ? h + 360 : h;\n s = isNaN(s) ? 0 : s < 0 ? 0 : s > 1 ? 1 : s;\n l = l < 0 ? 0 : l > 1 ? 1 : l;\n m2 = l <= .5 ? l * (1 + s) : l + s - l * s;\n m1 = 2 * l - m2;\n function v(h) {\n if (h > 360) h -= 360; else if (h < 0) h += 360;\n if (h < 60) return m1 + (m2 - m1) * h / 60;\n if (h < 180) return m2;\n if (h < 240) return m1 + (m2 - m1) * (240 - h) / 60;\n return m1;\n }\n function vv(h) {\n return Math.round(v(h) * 255);\n }\n return new d3_rgb(vv(h + 120), vv(h), vv(h - 120));\n }\n d3.hcl = d3_hcl;\n function d3_hcl(h, c, l) {\n return this instanceof d3_hcl ? void (this.h = +h, this.c = +c, this.l = +l) : arguments.length < 2 ? h instanceof d3_hcl ? new d3_hcl(h.h, h.c, h.l) : h instanceof d3_lab ? d3_lab_hcl(h.l, h.a, h.b) : d3_lab_hcl((h = d3_rgb_lab((h = d3.rgb(h)).r, h.g, h.b)).l, h.a, h.b) : new d3_hcl(h, c, l);\n }\n var d3_hclPrototype = d3_hcl.prototype = new d3_color();\n d3_hclPrototype.brighter = function(k) {\n return new d3_hcl(this.h, this.c, Math.min(100, this.l + d3_lab_K * (arguments.length ? k : 1)));\n };\n d3_hclPrototype.darker = function(k) {\n return new d3_hcl(this.h, this.c, Math.max(0, this.l - d3_lab_K * (arguments.length ? k : 1)));\n };\n d3_hclPrototype.rgb = function() {\n return d3_hcl_lab(this.h, this.c, this.l).rgb();\n };\n function d3_hcl_lab(h, c, l) {\n if (isNaN(h)) h = 0;\n if (isNaN(c)) c = 0;\n return new d3_lab(l, Math.cos(h *= d3_radians) * c, Math.sin(h) * c);\n }\n d3.lab = d3_lab;\n function d3_lab(l, a, b) {\n return this instanceof d3_lab ? void (this.l = +l, this.a = +a, this.b = +b) : arguments.length < 2 ? l instanceof d3_lab ? new d3_lab(l.l, l.a, l.b) : l instanceof d3_hcl ? d3_hcl_lab(l.h, l.c, l.l) : d3_rgb_lab((l = d3_rgb(l)).r, l.g, l.b) : new d3_lab(l, a, b);\n }\n var d3_lab_K = 18;\n var d3_lab_X = .95047, d3_lab_Y = 1, d3_lab_Z = 1.08883;\n var d3_labPrototype = d3_lab.prototype = new d3_color();\n d3_labPrototype.brighter = function(k) {\n return new d3_lab(Math.min(100, this.l + d3_lab_K * (arguments.length ? k : 1)), this.a, this.b);\n };\n d3_labPrototype.darker = function(k) {\n return new d3_lab(Math.max(0, this.l - d3_lab_K * (arguments.length ? k : 1)), this.a, this.b);\n };\n d3_labPrototype.rgb = function() {\n return d3_lab_rgb(this.l, this.a, this.b);\n };\n function d3_lab_rgb(l, a, b) {\n var y = (l + 16) / 116, x = y + a / 500, z = y - b / 200;\n x = d3_lab_xyz(x) * d3_lab_X;\n y = d3_lab_xyz(y) * d3_lab_Y;\n z = d3_lab_xyz(z) * d3_lab_Z;\n return new d3_rgb(d3_xyz_rgb(3.2404542 * x - 1.5371385 * y - .4985314 * z), d3_xyz_rgb(-.969266 * x + 1.8760108 * y + .041556 * z), d3_xyz_rgb(.0556434 * x - .2040259 * y + 1.0572252 * z));\n }\n function d3_lab_hcl(l, a, b) {\n return l > 0 ? new d3_hcl(Math.atan2(b, a) * d3_degrees, Math.sqrt(a * a + b * b), l) : new d3_hcl(NaN, NaN, l);\n }\n function d3_lab_xyz(x) {\n return x > .206893034 ? x * x * x : (x - 4 / 29) / 7.787037;\n }\n function d3_xyz_lab(x) {\n return x > .008856 ? Math.pow(x, 1 / 3) : 7.787037 * x + 4 / 29;\n }\n function d3_xyz_rgb(r) {\n return Math.round(255 * (r <= .00304 ? 12.92 * r : 1.055 * Math.pow(r, 1 / 2.4) - .055));\n }\n d3.rgb = d3_rgb;\n function d3_rgb(r, g, b) {\n return this instanceof d3_rgb ? void (this.r = ~~r, this.g = ~~g, this.b = ~~b) : arguments.length < 2 ? r instanceof d3_rgb ? new d3_rgb(r.r, r.g, r.b) : d3_rgb_parse(\"\" + r, d3_rgb, d3_hsl_rgb) : new d3_rgb(r, g, b);\n }\n function d3_rgbNumber(value) {\n return new d3_rgb(value >> 16, value >> 8 & 255, value & 255);\n }\n function d3_rgbString(value) {\n return d3_rgbNumber(value) + \"\";\n }\n var d3_rgbPrototype = d3_rgb.prototype = new d3_color();\n d3_rgbPrototype.brighter = function(k) {\n k = Math.pow(.7, arguments.length ? k : 1);\n var r = this.r, g = this.g, b = this.b, i = 30;\n if (!r && !g && !b) return new d3_rgb(i, i, i);\n if (r && r < i) r = i;\n if (g && g < i) g = i;\n if (b && b < i) b = i;\n return new d3_rgb(Math.min(255, r / k), Math.min(255, g / k), Math.min(255, b / k));\n };\n d3_rgbPrototype.darker = function(k) {\n k = Math.pow(.7, arguments.length ? k : 1);\n return new d3_rgb(k * this.r, k * this.g, k * this.b);\n };\n d3_rgbPrototype.hsl = function() {\n return d3_rgb_hsl(this.r, this.g, this.b);\n };\n d3_rgbPrototype.toString = function() {\n return \"#\" + d3_rgb_hex(this.r) + d3_rgb_hex(this.g) + d3_rgb_hex(this.b);\n };\n function d3_rgb_hex(v) {\n return v < 16 ? \"0\" + Math.max(0, v).toString(16) : Math.min(255, v).toString(16);\n }\n function d3_rgb_parse(format, rgb, hsl) {\n var r = 0, g = 0, b = 0, m1, m2, color;\n m1 = /([a-z]+)\\((.*)\\)/.exec(format = format.toLowerCase());\n if (m1) {\n m2 = m1[2].split(\",\");\n switch (m1[1]) {\n case \"hsl\":\n {\n return hsl(parseFloat(m2[0]), parseFloat(m2[1]) / 100, parseFloat(m2[2]) / 100);\n }\n\n case \"rgb\":\n {\n return rgb(d3_rgb_parseNumber(m2[0]), d3_rgb_parseNumber(m2[1]), d3_rgb_parseNumber(m2[2]));\n }\n }\n }\n if (color = d3_rgb_names.get(format)) {\n return rgb(color.r, color.g, color.b);\n }\n if (format != null && format.charAt(0) === \"#\" && !isNaN(color = parseInt(format.slice(1), 16))) {\n if (format.length === 4) {\n r = (color & 3840) >> 4;\n r = r >> 4 | r;\n g = color & 240;\n g = g >> 4 | g;\n b = color & 15;\n b = b << 4 | b;\n } else if (format.length === 7) {\n r = (color & 16711680) >> 16;\n g = (color & 65280) >> 8;\n b = color & 255;\n }\n }\n return rgb(r, g, b);\n }\n function d3_rgb_hsl(r, g, b) {\n var min = Math.min(r /= 255, g /= 255, b /= 255), max = Math.max(r, g, b), d = max - min, h, s, l = (max + min) / 2;\n if (d) {\n s = l < .5 ? d / (max + min) : d / (2 - max - min);\n if (r == max) h = (g - b) / d + (g < b ? 6 : 0); else if (g == max) h = (b - r) / d + 2; else h = (r - g) / d + 4;\n h *= 60;\n } else {\n h = NaN;\n s = l > 0 && l < 1 ? 0 : h;\n }\n return new d3_hsl(h, s, l);\n }\n function d3_rgb_lab(r, g, b) {\n r = d3_rgb_xyz(r);\n g = d3_rgb_xyz(g);\n b = d3_rgb_xyz(b);\n var x = d3_xyz_lab((.4124564 * r + .3575761 * g + .1804375 * b) / d3_lab_X), y = d3_xyz_lab((.2126729 * r + .7151522 * g + .072175 * b) / d3_lab_Y), z = d3_xyz_lab((.0193339 * r + .119192 * g + .9503041 * b) / d3_lab_Z);\n return d3_lab(116 * y - 16, 500 * (x - y), 200 * (y - z));\n }\n function d3_rgb_xyz(r) {\n return (r /= 255) <= .04045 ? r / 12.92 : Math.pow((r + .055) / 1.055, 2.4);\n }\n function d3_rgb_parseNumber(c) {\n var f = parseFloat(c);\n return c.charAt(c.length - 1) === \"%\" ? Math.round(f * 2.55) : f;\n }\n var d3_rgb_names = d3.map({\n aliceblue: 15792383,\n antiquewhite: 16444375,\n aqua: 65535,\n aquamarine: 8388564,\n azure: 15794175,\n beige: 16119260,\n bisque: 16770244,\n black: 0,\n blanchedalmond: 16772045,\n blue: 255,\n blueviolet: 9055202,\n brown: 10824234,\n burlywood: 14596231,\n cadetblue: 6266528,\n chartreuse: 8388352,\n chocolate: 13789470,\n coral: 16744272,\n cornflowerblue: 6591981,\n cornsilk: 16775388,\n crimson: 14423100,\n cyan: 65535,\n darkblue: 139,\n darkcyan: 35723,\n darkgoldenrod: 12092939,\n darkgray: 11119017,\n darkgreen: 25600,\n darkgrey: 11119017,\n darkkhaki: 12433259,\n darkmagenta: 9109643,\n darkolivegreen: 5597999,\n darkorange: 16747520,\n darkorchid: 10040012,\n darkred: 9109504,\n darksalmon: 15308410,\n darkseagreen: 9419919,\n darkslateblue: 4734347,\n darkslategray: 3100495,\n darkslategrey: 3100495,\n darkturquoise: 52945,\n darkviolet: 9699539,\n deeppink: 16716947,\n deepskyblue: 49151,\n dimgray: 6908265,\n dimgrey: 6908265,\n dodgerblue: 2003199,\n firebrick: 11674146,\n floralwhite: 16775920,\n forestgreen: 2263842,\n fuchsia: 16711935,\n gainsboro: 14474460,\n ghostwhite: 16316671,\n gold: 16766720,\n goldenrod: 14329120,\n gray: 8421504,\n green: 32768,\n greenyellow: 11403055,\n grey: 8421504,\n honeydew: 15794160,\n hotpink: 16738740,\n indianred: 13458524,\n indigo: 4915330,\n ivory: 16777200,\n khaki: 15787660,\n lavender: 15132410,\n lavenderblush: 16773365,\n lawngreen: 8190976,\n lemonchiffon: 16775885,\n lightblue: 11393254,\n lightcoral: 15761536,\n lightcyan: 14745599,\n lightgoldenrodyellow: 16448210,\n lightgray: 13882323,\n lightgreen: 9498256,\n lightgrey: 13882323,\n lightpink: 16758465,\n lightsalmon: 16752762,\n lightseagreen: 2142890,\n lightskyblue: 8900346,\n lightslategray: 7833753,\n lightslategrey: 7833753,\n lightsteelblue: 11584734,\n lightyellow: 16777184,\n lime: 65280,\n limegreen: 3329330,\n linen: 16445670,\n magenta: 16711935,\n maroon: 8388608,\n mediumaquamarine: 6737322,\n mediumblue: 205,\n mediumorchid: 12211667,\n mediumpurple: 9662683,\n mediumseagreen: 3978097,\n mediumslateblue: 8087790,\n mediumspringgreen: 64154,\n mediumturquoise: 4772300,\n mediumvioletred: 13047173,\n midnightblue: 1644912,\n mintcream: 16121850,\n mistyrose: 16770273,\n moccasin: 16770229,\n navajowhite: 16768685,\n navy: 128,\n oldlace: 16643558,\n olive: 8421376,\n olivedrab: 7048739,\n orange: 16753920,\n orangered: 16729344,\n orchid: 14315734,\n palegoldenrod: 15657130,\n palegreen: 10025880,\n paleturquoise: 11529966,\n palevioletred: 14381203,\n papayawhip: 16773077,\n peachpuff: 16767673,\n peru: 13468991,\n pink: 16761035,\n plum: 14524637,\n powderblue: 11591910,\n purple: 8388736,\n rebeccapurple: 6697881,\n red: 16711680,\n rosybrown: 12357519,\n royalblue: 4286945,\n saddlebrown: 9127187,\n salmon: 16416882,\n sandybrown: 16032864,\n seagreen: 3050327,\n seashell: 16774638,\n sienna: 10506797,\n silver: 12632256,\n skyblue: 8900331,\n slateblue: 6970061,\n slategray: 7372944,\n slategrey: 7372944,\n snow: 16775930,\n springgreen: 65407,\n steelblue: 4620980,\n tan: 13808780,\n teal: 32896,\n thistle: 14204888,\n tomato: 16737095,\n turquoise: 4251856,\n violet: 15631086,\n wheat: 16113331,\n white: 16777215,\n whitesmoke: 16119285,\n yellow: 16776960,\n yellowgreen: 10145074\n });\n d3_rgb_names.forEach(function(key, value) {\n d3_rgb_names.set(key, d3_rgbNumber(value));\n });\n function d3_functor(v) {\n return typeof v === \"function\" ? v : function() {\n return v;\n };\n }\n d3.functor = d3_functor;\n d3.xhr = d3_xhrType(d3_identity);\n function d3_xhrType(response) {\n return function(url, mimeType, callback) {\n if (arguments.length === 2 && typeof mimeType === \"function\") callback = mimeType, \n mimeType = null;\n return d3_xhr(url, mimeType, response, callback);\n };\n }\n function d3_xhr(url, mimeType, response, callback) {\n var xhr = {}, dispatch = d3.dispatch(\"beforesend\", \"progress\", \"load\", \"error\"), headers = {}, request = new XMLHttpRequest(), responseType = null;\n if (self.XDomainRequest && !(\"withCredentials\" in request) && /^(http(s)?:)?\\/\\//.test(url)) request = new XDomainRequest();\n \"onload\" in request ? request.onload = request.onerror = respond : request.onreadystatechange = function() {\n request.readyState > 3 && respond();\n };\n function respond() {\n var status = request.status, result;\n if (!status && d3_xhrHasResponse(request) || status >= 200 && status < 300 || status === 304) {\n try {\n result = response.call(xhr, request);\n } catch (e) {\n dispatch.error.call(xhr, e);\n return;\n }\n dispatch.load.call(xhr, result);\n } else {\n dispatch.error.call(xhr, request);\n }\n }\n request.onprogress = function(event) {\n var o = d3.event;\n d3.event = event;\n try {\n dispatch.progress.call(xhr, request);\n } finally {\n d3.event = o;\n }\n };\n xhr.header = function(name, value) {\n name = (name + \"\").toLowerCase();\n if (arguments.length < 2) return headers[name];\n if (value == null) delete headers[name]; else headers[name] = value + \"\";\n return xhr;\n };\n xhr.mimeType = function(value) {\n if (!arguments.length) return mimeType;\n mimeType = value == null ? null : value + \"\";\n return xhr;\n };\n xhr.responseType = function(value) {\n if (!arguments.length) return responseType;\n responseType = value;\n return xhr;\n };\n xhr.response = function(value) {\n response = value;\n return xhr;\n };\n [ \"get\", \"post\" ].forEach(function(method) {\n xhr[method] = function() {\n return xhr.send.apply(xhr, [ method ].concat(d3_array(arguments)));\n };\n });\n xhr.send = function(method, data, callback) {\n if (arguments.length === 2 && typeof data === \"function\") callback = data, data = null;\n request.open(method, url, true);\n if (mimeType != null && !(\"accept\" in headers)) headers[\"accept\"] = mimeType + \",*/*\";\n if (request.setRequestHeader) for (var name in headers) request.setRequestHeader(name, headers[name]);\n if (mimeType != null && request.overrideMimeType) request.overrideMimeType(mimeType);\n if (responseType != null) request.responseType = responseType;\n if (callback != null) xhr.on(\"error\", callback).on(\"load\", function(request) {\n callback(null, request);\n });\n dispatch.beforesend.call(xhr, request);\n request.send(data == null ? null : data);\n return xhr;\n };\n xhr.abort = function() {\n request.abort();\n return xhr;\n };\n d3.rebind(xhr, dispatch, \"on\");\n return callback == null ? xhr : xhr.get(d3_xhr_fixCallback(callback));\n }\n function d3_xhr_fixCallback(callback) {\n return callback.length === 1 ? function(error, request) {\n callback(error == null ? request : null);\n } : callback;\n }\n function d3_xhrHasResponse(request) {\n var type = request.responseType;\n return type && type !== \"text\" ? request.response : request.responseText;\n }\n d3.dsv = function(delimiter, mimeType) {\n var reFormat = new RegExp('[\"' + delimiter + \"\\n]\"), delimiterCode = delimiter.charCodeAt(0);\n function dsv(url, row, callback) {\n if (arguments.length < 3) callback = row, row = null;\n var xhr = d3_xhr(url, mimeType, row == null ? response : typedResponse(row), callback);\n xhr.row = function(_) {\n return arguments.length ? xhr.response((row = _) == null ? response : typedResponse(_)) : row;\n };\n return xhr;\n }\n function response(request) {\n return dsv.parse(request.responseText);\n }\n function typedResponse(f) {\n return function(request) {\n return dsv.parse(request.responseText, f);\n };\n }\n dsv.parse = function(text, f) {\n var o;\n return dsv.parseRows(text, function(row, i) {\n if (o) return o(row, i - 1);\n var a = function(d) {\n var obj = {};\n var len = row.length;\n for (var k = 0; k < len; ++k) {\n obj[row[k]] = d[k];\n }\n return obj;\n };\n o = f ? function(row, i) {\n return f(a(row), i);\n } : a;\n });\n };\n dsv.parseRows = function(text, f) {\n var EOL = {}, EOF = {}, rows = [], N = text.length, I = 0, n = 0, t, eol;\n function token() {\n if (I >= N) return EOF;\n if (eol) return eol = false, EOL;\n var j = I;\n if (text.charCodeAt(j) === 34) {\n var i = j;\n while (i++ < N) {\n if (text.charCodeAt(i) === 34) {\n if (text.charCodeAt(i + 1) !== 34) break;\n ++i;\n }\n }\n I = i + 2;\n var c = text.charCodeAt(i + 1);\n if (c === 13) {\n eol = true;\n if (text.charCodeAt(i + 2) === 10) ++I;\n } else if (c === 10) {\n eol = true;\n }\n return text.slice(j + 1, i).replace(/\"\"/g, '\"');\n }\n while (I < N) {\n var c = text.charCodeAt(I++), k = 1;\n if (c === 10) eol = true; else if (c === 13) {\n eol = true;\n if (text.charCodeAt(I) === 10) ++I, ++k;\n } else if (c !== delimiterCode) continue;\n return text.slice(j, I - k);\n }\n return text.slice(j);\n }\n while ((t = token()) !== EOF) {\n var a = [];\n while (t !== EOL && t !== EOF) {\n a.push(t);\n t = token();\n }\n if (f && (a = f(a, n++)) == null) continue;\n rows.push(a);\n }\n return rows;\n };\n dsv.format = function(rows) {\n if (Array.isArray(rows[0])) return dsv.formatRows(rows);\n var fieldSet = new d3_Set(), fields = [];\n rows.forEach(function(row) {\n for (var field in row) {\n if (!fieldSet.has(field)) {\n fields.push(fieldSet.add(field));\n }\n }\n });\n return [ fields.map(formatValue).join(delimiter) ].concat(rows.map(function(row) {\n return fields.map(function(field) {\n return formatValue(row[field]);\n }).join(delimiter);\n })).join(\"\\n\");\n };\n dsv.formatRows = function(rows) {\n return rows.map(formatRow).join(\"\\n\");\n };\n function formatRow(row) {\n return row.map(formatValue).join(delimiter);\n }\n function formatValue(text) {\n return reFormat.test(text) ? '\"' + text.replace(/\\\"/g, '\"\"') + '\"' : text;\n }\n return dsv;\n };\n d3.csv = d3.dsv(\",\", \"text/csv\");\n d3.tsv = d3.dsv(\"\t\", \"text/tab-separated-values\");\n var d3_timer_queueHead, d3_timer_queueTail, d3_timer_interval, d3_timer_timeout, d3_timer_frame = this[d3_vendorSymbol(this, \"requestAnimationFrame\")] || function(callback) {\n setTimeout(callback, 17);\n };\n d3.timer = function() {\n d3_timer.apply(this, arguments);\n };\n function d3_timer(callback, delay, then) {\n var n = arguments.length;\n if (n < 2) delay = 0;\n if (n < 3) then = Date.now();\n var time = then + delay, timer = {\n c: callback,\n t: time,\n n: null\n };\n if (d3_timer_queueTail) d3_timer_queueTail.n = timer; else d3_timer_queueHead = timer;\n d3_timer_queueTail = timer;\n if (!d3_timer_interval) {\n d3_timer_timeout = clearTimeout(d3_timer_timeout);\n d3_timer_interval = 1;\n d3_timer_frame(d3_timer_step);\n }\n return timer;\n }\n function d3_timer_step() {\n var now = d3_timer_mark(), delay = d3_timer_sweep() - now;\n if (delay > 24) {\n if (isFinite(delay)) {\n clearTimeout(d3_timer_timeout);\n d3_timer_timeout = setTimeout(d3_timer_step, delay);\n }\n d3_timer_interval = 0;\n } else {\n d3_timer_interval = 1;\n d3_timer_frame(d3_timer_step);\n }\n }\n d3.timer.flush = function() {\n d3_timer_mark();\n d3_timer_sweep();\n };\n function d3_timer_mark() {\n var now = Date.now(), timer = d3_timer_queueHead;\n while (timer) {\n if (now >= timer.t && timer.c(now - timer.t)) timer.c = null;\n timer = timer.n;\n }\n return now;\n }\n function d3_timer_sweep() {\n var t0, t1 = d3_timer_queueHead, time = Infinity;\n while (t1) {\n if (t1.c) {\n if (t1.t < time) time = t1.t;\n t1 = (t0 = t1).n;\n } else {\n t1 = t0 ? t0.n = t1.n : d3_timer_queueHead = t1.n;\n }\n }\n d3_timer_queueTail = t0;\n return time;\n }\n d3.round = function(x, n) {\n return n ? Math.round(x * (n = Math.pow(10, n))) / n : Math.round(x);\n };\n d3.geom = {};\n function d3_geom_pointX(d) {\n return d[0];\n }\n function d3_geom_pointY(d) {\n return d[1];\n }\n d3.geom.hull = function(vertices) {\n var x = d3_geom_pointX, y = d3_geom_pointY;\n if (arguments.length) return hull(vertices);\n function hull(data) {\n if (data.length < 3) return [];\n var fx = d3_functor(x), fy = d3_functor(y), i, n = data.length, points = [], flippedPoints = [];\n for (i = 0; i < n; i++) {\n points.push([ +fx.call(this, data[i], i), +fy.call(this, data[i], i), i ]);\n }\n points.sort(d3_geom_hullOrder);\n for (i = 0; i < n; i++) flippedPoints.push([ points[i][0], -points[i][1] ]);\n var upper = d3_geom_hullUpper(points), lower = d3_geom_hullUpper(flippedPoints);\n var skipLeft = lower[0] === upper[0], skipRight = lower[lower.length - 1] === upper[upper.length - 1], polygon = [];\n for (i = upper.length - 1; i >= 0; --i) polygon.push(data[points[upper[i]][2]]);\n for (i = +skipLeft; i < lower.length - skipRight; ++i) polygon.push(data[points[lower[i]][2]]);\n return polygon;\n }\n hull.x = function(_) {\n return arguments.length ? (x = _, hull) : x;\n };\n hull.y = function(_) {\n return arguments.length ? (y = _, hull) : y;\n };\n return hull;\n };\n function d3_geom_hullUpper(points) {\n var n = points.length, hull = [ 0, 1 ], hs = 2;\n for (var i = 2; i < n; i++) {\n while (hs > 1 && d3_cross2d(points[hull[hs - 2]], points[hull[hs - 1]], points[i]) <= 0) --hs;\n hull[hs++] = i;\n }\n return hull.slice(0, hs);\n }\n function d3_geom_hullOrder(a, b) {\n return a[0] - b[0] || a[1] - b[1];\n }\n d3.geom.polygon = function(coordinates) {\n d3_subclass(coordinates, d3_geom_polygonPrototype);\n return coordinates;\n };\n var d3_geom_polygonPrototype = d3.geom.polygon.prototype = [];\n d3_geom_polygonPrototype.area = function() {\n var i = -1, n = this.length, a, b = this[n - 1], area = 0;\n while (++i < n) {\n a = b;\n b = this[i];\n area += a[1] * b[0] - a[0] * b[1];\n }\n return area * .5;\n };\n d3_geom_polygonPrototype.centroid = function(k) {\n var i = -1, n = this.length, x = 0, y = 0, a, b = this[n - 1], c;\n if (!arguments.length) k = -1 / (6 * this.area());\n while (++i < n) {\n a = b;\n b = this[i];\n c = a[0] * b[1] - b[0] * a[1];\n x += (a[0] + b[0]) * c;\n y += (a[1] + b[1]) * c;\n }\n return [ x * k, y * k ];\n };\n d3_geom_polygonPrototype.clip = function(subject) {\n var input, closed = d3_geom_polygonClosed(subject), i = -1, n = this.length - d3_geom_polygonClosed(this), j, m, a = this[n - 1], b, c, d;\n while (++i < n) {\n input = subject.slice();\n subject.length = 0;\n b = this[i];\n c = input[(m = input.length - closed) - 1];\n j = -1;\n while (++j < m) {\n d = input[j];\n if (d3_geom_polygonInside(d, a, b)) {\n if (!d3_geom_polygonInside(c, a, b)) {\n subject.push(d3_geom_polygonIntersect(c, d, a, b));\n }\n subject.push(d);\n } else if (d3_geom_polygonInside(c, a, b)) {\n subject.push(d3_geom_polygonIntersect(c, d, a, b));\n }\n c = d;\n }\n if (closed) subject.push(subject[0]);\n a = b;\n }\n return subject;\n };\n function d3_geom_polygonInside(p, a, b) {\n return (b[0] - a[0]) * (p[1] - a[1]) < (b[1] - a[1]) * (p[0] - a[0]);\n }\n function d3_geom_polygonIntersect(c, d, a, b) {\n var x1 = c[0], x3 = a[0], x21 = d[0] - x1, x43 = b[0] - x3, y1 = c[1], y3 = a[1], y21 = d[1] - y1, y43 = b[1] - y3, ua = (x43 * (y1 - y3) - y43 * (x1 - x3)) / (y43 * x21 - x43 * y21);\n return [ x1 + ua * x21, y1 + ua * y21 ];\n }\n function d3_geom_polygonClosed(coordinates) {\n var a = coordinates[0], b = coordinates[coordinates.length - 1];\n return !(a[0] - b[0] || a[1] - b[1]);\n }\n var d3_geom_voronoiEdges, d3_geom_voronoiCells, d3_geom_voronoiBeaches, d3_geom_voronoiBeachPool = [], d3_geom_voronoiFirstCircle, d3_geom_voronoiCircles, d3_geom_voronoiCirclePool = [];\n function d3_geom_voronoiBeach() {\n d3_geom_voronoiRedBlackNode(this);\n this.edge = this.site = this.circle = null;\n }\n function d3_geom_voronoiCreateBeach(site) {\n var beach = d3_geom_voronoiBeachPool.pop() || new d3_geom_voronoiBeach();\n beach.site = site;\n return beach;\n }\n function d3_geom_voronoiDetachBeach(beach) {\n d3_geom_voronoiDetachCircle(beach);\n d3_geom_voronoiBeaches.remove(beach);\n d3_geom_voronoiBeachPool.push(beach);\n d3_geom_voronoiRedBlackNode(beach);\n }\n function d3_geom_voronoiRemoveBeach(beach) {\n var circle = beach.circle, x = circle.x, y = circle.cy, vertex = {\n x: x,\n y: y\n }, previous = beach.P, next = beach.N, disappearing = [ beach ];\n d3_geom_voronoiDetachBeach(beach);\n var lArc = previous;\n while (lArc.circle && abs(x - lArc.circle.x) < ε && abs(y - lArc.circle.cy) < ε) {\n previous = lArc.P;\n disappearing.unshift(lArc);\n d3_geom_voronoiDetachBeach(lArc);\n lArc = previous;\n }\n disappearing.unshift(lArc);\n d3_geom_voronoiDetachCircle(lArc);\n var rArc = next;\n while (rArc.circle && abs(x - rArc.circle.x) < ε && abs(y - rArc.circle.cy) < ε) {\n next = rArc.N;\n disappearing.push(rArc);\n d3_geom_voronoiDetachBeach(rArc);\n rArc = next;\n }\n disappearing.push(rArc);\n d3_geom_voronoiDetachCircle(rArc);\n var nArcs = disappearing.length, iArc;\n for (iArc = 1; iArc < nArcs; ++iArc) {\n rArc = disappearing[iArc];\n lArc = disappearing[iArc - 1];\n d3_geom_voronoiSetEdgeEnd(rArc.edge, lArc.site, rArc.site, vertex);\n }\n lArc = disappearing[0];\n rArc = disappearing[nArcs - 1];\n rArc.edge = d3_geom_voronoiCreateEdge(lArc.site, rArc.site, null, vertex);\n d3_geom_voronoiAttachCircle(lArc);\n d3_geom_voronoiAttachCircle(rArc);\n }\n function d3_geom_voronoiAddBeach(site) {\n var x = site.x, directrix = site.y, lArc, rArc, dxl, dxr, node = d3_geom_voronoiBeaches._;\n while (node) {\n dxl = d3_geom_voronoiLeftBreakPoint(node, directrix) - x;\n if (dxl > ε) node = node.L; else {\n dxr = x - d3_geom_voronoiRightBreakPoint(node, directrix);\n if (dxr > ε) {\n if (!node.R) {\n lArc = node;\n break;\n }\n node = node.R;\n } else {\n if (dxl > -ε) {\n lArc = node.P;\n rArc = node;\n } else if (dxr > -ε) {\n lArc = node;\n rArc = node.N;\n } else {\n lArc = rArc = node;\n }\n break;\n }\n }\n }\n var newArc = d3_geom_voronoiCreateBeach(site);\n d3_geom_voronoiBeaches.insert(lArc, newArc);\n if (!lArc && !rArc) return;\n if (lArc === rArc) {\n d3_geom_voronoiDetachCircle(lArc);\n rArc = d3_geom_voronoiCreateBeach(lArc.site);\n d3_geom_voronoiBeaches.insert(newArc, rArc);\n newArc.edge = rArc.edge = d3_geom_voronoiCreateEdge(lArc.site, newArc.site);\n d3_geom_voronoiAttachCircle(lArc);\n d3_geom_voronoiAttachCircle(rArc);\n return;\n }\n if (!rArc) {\n newArc.edge = d3_geom_voronoiCreateEdge(lArc.site, newArc.site);\n return;\n }\n d3_geom_voronoiDetachCircle(lArc);\n d3_geom_voronoiDetachCircle(rArc);\n var lSite = lArc.site, ax = lSite.x, ay = lSite.y, bx = site.x - ax, by = site.y - ay, rSite = rArc.site, cx = rSite.x - ax, cy = rSite.y - ay, d = 2 * (bx * cy - by * cx), hb = bx * bx + by * by, hc = cx * cx + cy * cy, vertex = {\n x: (cy * hb - by * hc) / d + ax,\n y: (bx * hc - cx * hb) / d + ay\n };\n d3_geom_voronoiSetEdgeEnd(rArc.edge, lSite, rSite, vertex);\n newArc.edge = d3_geom_voronoiCreateEdge(lSite, site, null, vertex);\n rArc.edge = d3_geom_voronoiCreateEdge(site, rSite, null, vertex);\n d3_geom_voronoiAttachCircle(lArc);\n d3_geom_voronoiAttachCircle(rArc);\n }\n function d3_geom_voronoiLeftBreakPoint(arc, directrix) {\n var site = arc.site, rfocx = site.x, rfocy = site.y, pby2 = rfocy - directrix;\n if (!pby2) return rfocx;\n var lArc = arc.P;\n if (!lArc) return -Infinity;\n site = lArc.site;\n var lfocx = site.x, lfocy = site.y, plby2 = lfocy - directrix;\n if (!plby2) return lfocx;\n var hl = lfocx - rfocx, aby2 = 1 / pby2 - 1 / plby2, b = hl / plby2;\n if (aby2) return (-b + Math.sqrt(b * b - 2 * aby2 * (hl * hl / (-2 * plby2) - lfocy + plby2 / 2 + rfocy - pby2 / 2))) / aby2 + rfocx;\n return (rfocx + lfocx) / 2;\n }\n function d3_geom_voronoiRightBreakPoint(arc, directrix) {\n var rArc = arc.N;\n if (rArc) return d3_geom_voronoiLeftBreakPoint(rArc, directrix);\n var site = arc.site;\n return site.y === directrix ? site.x : Infinity;\n }\n function d3_geom_voronoiCell(site) {\n this.site = site;\n this.edges = [];\n }\n d3_geom_voronoiCell.prototype.prepare = function() {\n var halfEdges = this.edges, iHalfEdge = halfEdges.length, edge;\n while (iHalfEdge--) {\n edge = halfEdges[iHalfEdge].edge;\n if (!edge.b || !edge.a) halfEdges.splice(iHalfEdge, 1);\n }\n halfEdges.sort(d3_geom_voronoiHalfEdgeOrder);\n return halfEdges.length;\n };\n function d3_geom_voronoiCloseCells(extent) {\n var x0 = extent[0][0], x1 = extent[1][0], y0 = extent[0][1], y1 = extent[1][1], x2, y2, x3, y3, cells = d3_geom_voronoiCells, iCell = cells.length, cell, iHalfEdge, halfEdges, nHalfEdges, start, end;\n while (iCell--) {\n cell = cells[iCell];\n if (!cell || !cell.prepare()) continue;\n halfEdges = cell.edges;\n nHalfEdges = halfEdges.length;\n iHalfEdge = 0;\n while (iHalfEdge < nHalfEdges) {\n end = halfEdges[iHalfEdge].end(), x3 = end.x, y3 = end.y;\n start = halfEdges[++iHalfEdge % nHalfEdges].start(), x2 = start.x, y2 = start.y;\n if (abs(x3 - x2) > ε || abs(y3 - y2) > ε) {\n halfEdges.splice(iHalfEdge, 0, new d3_geom_voronoiHalfEdge(d3_geom_voronoiCreateBorderEdge(cell.site, end, abs(x3 - x0) < ε && y1 - y3 > ε ? {\n x: x0,\n y: abs(x2 - x0) < ε ? y2 : y1\n } : abs(y3 - y1) < ε && x1 - x3 > ε ? {\n x: abs(y2 - y1) < ε ? x2 : x1,\n y: y1\n } : abs(x3 - x1) < ε && y3 - y0 > ε ? {\n x: x1,\n y: abs(x2 - x1) < ε ? y2 : y0\n } : abs(y3 - y0) < ε && x3 - x0 > ε ? {\n x: abs(y2 - y0) < ε ? x2 : x0,\n y: y0\n } : null), cell.site, null));\n ++nHalfEdges;\n }\n }\n }\n }\n function d3_geom_voronoiHalfEdgeOrder(a, b) {\n return b.angle - a.angle;\n }\n function d3_geom_voronoiCircle() {\n d3_geom_voronoiRedBlackNode(this);\n this.x = this.y = this.arc = this.site = this.cy = null;\n }\n function d3_geom_voronoiAttachCircle(arc) {\n var lArc = arc.P, rArc = arc.N;\n if (!lArc || !rArc) return;\n var lSite = lArc.site, cSite = arc.site, rSite = rArc.site;\n if (lSite === rSite) return;\n var bx = cSite.x, by = cSite.y, ax = lSite.x - bx, ay = lSite.y - by, cx = rSite.x - bx, cy = rSite.y - by;\n var d = 2 * (ax * cy - ay * cx);\n if (d >= -ε2) return;\n var ha = ax * ax + ay * ay, hc = cx * cx + cy * cy, x = (cy * ha - ay * hc) / d, y = (ax * hc - cx * ha) / d, cy = y + by;\n var circle = d3_geom_voronoiCirclePool.pop() || new d3_geom_voronoiCircle();\n circle.arc = arc;\n circle.site = cSite;\n circle.x = x + bx;\n circle.y = cy + Math.sqrt(x * x + y * y);\n circle.cy = cy;\n arc.circle = circle;\n var before = null, node = d3_geom_voronoiCircles._;\n while (node) {\n if (circle.y < node.y || circle.y === node.y && circle.x <= node.x) {\n if (node.L) node = node.L; else {\n before = node.P;\n break;\n }\n } else {\n if (node.R) node = node.R; else {\n before = node;\n break;\n }\n }\n }\n d3_geom_voronoiCircles.insert(before, circle);\n if (!before) d3_geom_voronoiFirstCircle = circle;\n }\n function d3_geom_voronoiDetachCircle(arc) {\n var circle = arc.circle;\n if (circle) {\n if (!circle.P) d3_geom_voronoiFirstCircle = circle.N;\n d3_geom_voronoiCircles.remove(circle);\n d3_geom_voronoiCirclePool.push(circle);\n d3_geom_voronoiRedBlackNode(circle);\n arc.circle = null;\n }\n }\n function d3_geom_clipLine(x0, y0, x1, y1) {\n return function(line) {\n var a = line.a, b = line.b, ax = a.x, ay = a.y, bx = b.x, by = b.y, t0 = 0, t1 = 1, dx = bx - ax, dy = by - ay, r;\n r = x0 - ax;\n if (!dx && r > 0) return;\n r /= dx;\n if (dx < 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n } else if (dx > 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n }\n r = x1 - ax;\n if (!dx && r < 0) return;\n r /= dx;\n if (dx < 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n } else if (dx > 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n }\n r = y0 - ay;\n if (!dy && r > 0) return;\n r /= dy;\n if (dy < 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n } else if (dy > 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n }\n r = y1 - ay;\n if (!dy && r < 0) return;\n r /= dy;\n if (dy < 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n } else if (dy > 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n }\n if (t0 > 0) line.a = {\n x: ax + t0 * dx,\n y: ay + t0 * dy\n };\n if (t1 < 1) line.b = {\n x: ax + t1 * dx,\n y: ay + t1 * dy\n };\n return line;\n };\n }\n function d3_geom_voronoiClipEdges(extent) {\n var edges = d3_geom_voronoiEdges, clip = d3_geom_clipLine(extent[0][0], extent[0][1], extent[1][0], extent[1][1]), i = edges.length, e;\n while (i--) {\n e = edges[i];\n if (!d3_geom_voronoiConnectEdge(e, extent) || !clip(e) || abs(e.a.x - e.b.x) < ε && abs(e.a.y - e.b.y) < ε) {\n e.a = e.b = null;\n edges.splice(i, 1);\n }\n }\n }\n function d3_geom_voronoiConnectEdge(edge, extent) {\n var vb = edge.b;\n if (vb) return true;\n var va = edge.a, x0 = extent[0][0], x1 = extent[1][0], y0 = extent[0][1], y1 = extent[1][1], lSite = edge.l, rSite = edge.r, lx = lSite.x, ly = lSite.y, rx = rSite.x, ry = rSite.y, fx = (lx + rx) / 2, fy = (ly + ry) / 2, fm, fb;\n if (ry === ly) {\n if (fx < x0 || fx >= x1) return;\n if (lx > rx) {\n if (!va) va = {\n x: fx,\n y: y0\n }; else if (va.y >= y1) return;\n vb = {\n x: fx,\n y: y1\n };\n } else {\n if (!va) va = {\n x: fx,\n y: y1\n }; else if (va.y < y0) return;\n vb = {\n x: fx,\n y: y0\n };\n }\n } else {\n fm = (lx - rx) / (ry - ly);\n fb = fy - fm * fx;\n if (fm < -1 || fm > 1) {\n if (lx > rx) {\n if (!va) va = {\n x: (y0 - fb) / fm,\n y: y0\n }; else if (va.y >= y1) return;\n vb = {\n x: (y1 - fb) / fm,\n y: y1\n };\n } else {\n if (!va) va = {\n x: (y1 - fb) / fm,\n y: y1\n }; else if (va.y < y0) return;\n vb = {\n x: (y0 - fb) / fm,\n y: y0\n };\n }\n } else {\n if (ly < ry) {\n if (!va) va = {\n x: x0,\n y: fm * x0 + fb\n }; else if (va.x >= x1) return;\n vb = {\n x: x1,\n y: fm * x1 + fb\n };\n } else {\n if (!va) va = {\n x: x1,\n y: fm * x1 + fb\n }; else if (va.x < x0) return;\n vb = {\n x: x0,\n y: fm * x0 + fb\n };\n }\n }\n }\n edge.a = va;\n edge.b = vb;\n return true;\n }\n function d3_geom_voronoiEdge(lSite, rSite) {\n this.l = lSite;\n this.r = rSite;\n this.a = this.b = null;\n }\n function d3_geom_voronoiCreateEdge(lSite, rSite, va, vb) {\n var edge = new d3_geom_voronoiEdge(lSite, rSite);\n d3_geom_voronoiEdges.push(edge);\n if (va) d3_geom_voronoiSetEdgeEnd(edge, lSite, rSite, va);\n if (vb) d3_geom_voronoiSetEdgeEnd(edge, rSite, lSite, vb);\n d3_geom_voronoiCells[lSite.i].edges.push(new d3_geom_voronoiHalfEdge(edge, lSite, rSite));\n d3_geom_voronoiCells[rSite.i].edges.push(new d3_geom_voronoiHalfEdge(edge, rSite, lSite));\n return edge;\n }\n function d3_geom_voronoiCreateBorderEdge(lSite, va, vb) {\n var edge = new d3_geom_voronoiEdge(lSite, null);\n edge.a = va;\n edge.b = vb;\n d3_geom_voronoiEdges.push(edge);\n return edge;\n }\n function d3_geom_voronoiSetEdgeEnd(edge, lSite, rSite, vertex) {\n if (!edge.a && !edge.b) {\n edge.a = vertex;\n edge.l = lSite;\n edge.r = rSite;\n } else if (edge.l === rSite) {\n edge.b = vertex;\n } else {\n edge.a = vertex;\n }\n }\n function d3_geom_voronoiHalfEdge(edge, lSite, rSite) {\n var va = edge.a, vb = edge.b;\n this.edge = edge;\n this.site = lSite;\n this.angle = rSite ? Math.atan2(rSite.y - lSite.y, rSite.x - lSite.x) : edge.l === lSite ? Math.atan2(vb.x - va.x, va.y - vb.y) : Math.atan2(va.x - vb.x, vb.y - va.y);\n }\n d3_geom_voronoiHalfEdge.prototype = {\n start: function() {\n return this.edge.l === this.site ? this.edge.a : this.edge.b;\n },\n end: function() {\n return this.edge.l === this.site ? this.edge.b : this.edge.a;\n }\n };\n function d3_geom_voronoiRedBlackTree() {\n this._ = null;\n }\n function d3_geom_voronoiRedBlackNode(node) {\n node.U = node.C = node.L = node.R = node.P = node.N = null;\n }\n d3_geom_voronoiRedBlackTree.prototype = {\n insert: function(after, node) {\n var parent, grandpa, uncle;\n if (after) {\n node.P = after;\n node.N = after.N;\n if (after.N) after.N.P = node;\n after.N = node;\n if (after.R) {\n after = after.R;\n while (after.L) after = after.L;\n after.L = node;\n } else {\n after.R = node;\n }\n parent = after;\n } else if (this._) {\n after = d3_geom_voronoiRedBlackFirst(this._);\n node.P = null;\n node.N = after;\n after.P = after.L = node;\n parent = after;\n } else {\n node.P = node.N = null;\n this._ = node;\n parent = null;\n }\n node.L = node.R = null;\n node.U = parent;\n node.C = true;\n after = node;\n while (parent && parent.C) {\n grandpa = parent.U;\n if (parent === grandpa.L) {\n uncle = grandpa.R;\n if (uncle && uncle.C) {\n parent.C = uncle.C = false;\n grandpa.C = true;\n after = grandpa;\n } else {\n if (after === parent.R) {\n d3_geom_voronoiRedBlackRotateLeft(this, parent);\n after = parent;\n parent = after.U;\n }\n parent.C = false;\n grandpa.C = true;\n d3_geom_voronoiRedBlackRotateRight(this, grandpa);\n }\n } else {\n uncle = grandpa.L;\n if (uncle && uncle.C) {\n parent.C = uncle.C = false;\n grandpa.C = true;\n after = grandpa;\n } else {\n if (after === parent.L) {\n d3_geom_voronoiRedBlackRotateRight(this, parent);\n after = parent;\n parent = after.U;\n }\n parent.C = false;\n grandpa.C = true;\n d3_geom_voronoiRedBlackRotateLeft(this, grandpa);\n }\n }\n parent = after.U;\n }\n this._.C = false;\n },\n remove: function(node) {\n if (node.N) node.N.P = node.P;\n if (node.P) node.P.N = node.N;\n node.N = node.P = null;\n var parent = node.U, sibling, left = node.L, right = node.R, next, red;\n if (!left) next = right; else if (!right) next = left; else next = d3_geom_voronoiRedBlackFirst(right);\n if (parent) {\n if (parent.L === node) parent.L = next; else parent.R = next;\n } else {\n this._ = next;\n }\n if (left && right) {\n red = next.C;\n next.C = node.C;\n next.L = left;\n left.U = next;\n if (next !== right) {\n parent = next.U;\n next.U = node.U;\n node = next.R;\n parent.L = node;\n next.R = right;\n right.U = next;\n } else {\n next.U = parent;\n parent = next;\n node = next.R;\n }\n } else {\n red = node.C;\n node = next;\n }\n if (node) node.U = parent;\n if (red) return;\n if (node && node.C) {\n node.C = false;\n return;\n }\n do {\n if (node === this._) break;\n if (node === parent.L) {\n sibling = parent.R;\n if (sibling.C) {\n sibling.C = false;\n parent.C = true;\n d3_geom_voronoiRedBlackRotateLeft(this, parent);\n sibling = parent.R;\n }\n if (sibling.L && sibling.L.C || sibling.R && sibling.R.C) {\n if (!sibling.R || !sibling.R.C) {\n sibling.L.C = false;\n sibling.C = true;\n d3_geom_voronoiRedBlackRotateRight(this, sibling);\n sibling = parent.R;\n }\n sibling.C = parent.C;\n parent.C = sibling.R.C = false;\n d3_geom_voronoiRedBlackRotateLeft(this, parent);\n node = this._;\n break;\n }\n } else {\n sibling = parent.L;\n if (sibling.C) {\n sibling.C = false;\n parent.C = true;\n d3_geom_voronoiRedBlackRotateRight(this, parent);\n sibling = parent.L;\n }\n if (sibling.L && sibling.L.C || sibling.R && sibling.R.C) {\n if (!sibling.L || !sibling.L.C) {\n sibling.R.C = false;\n sibling.C = true;\n d3_geom_voronoiRedBlackRotateLeft(this, sibling);\n sibling = parent.L;\n }\n sibling.C = parent.C;\n parent.C = sibling.L.C = false;\n d3_geom_voronoiRedBlackRotateRight(this, parent);\n node = this._;\n break;\n }\n }\n sibling.C = true;\n node = parent;\n parent = parent.U;\n } while (!node.C);\n if (node) node.C = false;\n }\n };\n function d3_geom_voronoiRedBlackRotateLeft(tree, node) {\n var p = node, q = node.R, parent = p.U;\n if (parent) {\n if (parent.L === p) parent.L = q; else parent.R = q;\n } else {\n tree._ = q;\n }\n q.U = parent;\n p.U = q;\n p.R = q.L;\n if (p.R) p.R.U = p;\n q.L = p;\n }\n function d3_geom_voronoiRedBlackRotateRight(tree, node) {\n var p = node, q = node.L, parent = p.U;\n if (parent) {\n if (parent.L === p) parent.L = q; else parent.R = q;\n } else {\n tree._ = q;\n }\n q.U = parent;\n p.U = q;\n p.L = q.R;\n if (p.L) p.L.U = p;\n q.R = p;\n }\n function d3_geom_voronoiRedBlackFirst(node) {\n while (node.L) node = node.L;\n return node;\n }\n function d3_geom_voronoi(sites, bbox) {\n var site = sites.sort(d3_geom_voronoiVertexOrder).pop(), x0, y0, circle;\n d3_geom_voronoiEdges = [];\n d3_geom_voronoiCells = new Array(sites.length);\n d3_geom_voronoiBeaches = new d3_geom_voronoiRedBlackTree();\n d3_geom_voronoiCircles = new d3_geom_voronoiRedBlackTree();\n while (true) {\n circle = d3_geom_voronoiFirstCircle;\n if (site && (!circle || site.y < circle.y || site.y === circle.y && site.x < circle.x)) {\n if (site.x !== x0 || site.y !== y0) {\n d3_geom_voronoiCells[site.i] = new d3_geom_voronoiCell(site);\n d3_geom_voronoiAddBeach(site);\n x0 = site.x, y0 = site.y;\n }\n site = sites.pop();\n } else if (circle) {\n d3_geom_voronoiRemoveBeach(circle.arc);\n } else {\n break;\n }\n }\n if (bbox) d3_geom_voronoiClipEdges(bbox), d3_geom_voronoiCloseCells(bbox);\n var diagram = {\n cells: d3_geom_voronoiCells,\n edges: d3_geom_voronoiEdges\n };\n d3_geom_voronoiBeaches = d3_geom_voronoiCircles = d3_geom_voronoiEdges = d3_geom_voronoiCells = null;\n return diagram;\n }\n function d3_geom_voronoiVertexOrder(a, b) {\n return b.y - a.y || b.x - a.x;\n }\n d3.geom.voronoi = function(points) {\n var x = d3_geom_pointX, y = d3_geom_pointY, fx = x, fy = y, clipExtent = d3_geom_voronoiClipExtent;\n if (points) return voronoi(points);\n function voronoi(data) {\n var polygons = new Array(data.length), x0 = clipExtent[0][0], y0 = clipExtent[0][1], x1 = clipExtent[1][0], y1 = clipExtent[1][1];\n d3_geom_voronoi(sites(data), clipExtent).cells.forEach(function(cell, i) {\n var edges = cell.edges, site = cell.site, polygon = polygons[i] = edges.length ? edges.map(function(e) {\n var s = e.start();\n return [ s.x, s.y ];\n }) : site.x >= x0 && site.x <= x1 && site.y >= y0 && site.y <= y1 ? [ [ x0, y1 ], [ x1, y1 ], [ x1, y0 ], [ x0, y0 ] ] : [];\n polygon.point = data[i];\n });\n return polygons;\n }\n function sites(data) {\n return data.map(function(d, i) {\n return {\n x: Math.round(fx(d, i) / ε) * ε,\n y: Math.round(fy(d, i) / ε) * ε,\n i: i\n };\n });\n }\n voronoi.links = function(data) {\n return d3_geom_voronoi(sites(data)).edges.filter(function(edge) {\n return edge.l && edge.r;\n }).map(function(edge) {\n return {\n source: data[edge.l.i],\n target: data[edge.r.i]\n };\n });\n };\n voronoi.triangles = function(data) {\n var triangles = [];\n d3_geom_voronoi(sites(data)).cells.forEach(function(cell, i) {\n var site = cell.site, edges = cell.edges.sort(d3_geom_voronoiHalfEdgeOrder), j = -1, m = edges.length, e0, s0, e1 = edges[m - 1].edge, s1 = e1.l === site ? e1.r : e1.l;\n while (++j < m) {\n e0 = e1;\n s0 = s1;\n e1 = edges[j].edge;\n s1 = e1.l === site ? e1.r : e1.l;\n if (i < s0.i && i < s1.i && d3_geom_voronoiTriangleArea(site, s0, s1) < 0) {\n triangles.push([ data[i], data[s0.i], data[s1.i] ]);\n }\n }\n });\n return triangles;\n };\n voronoi.x = function(_) {\n return arguments.length ? (fx = d3_functor(x = _), voronoi) : x;\n };\n voronoi.y = function(_) {\n return arguments.length ? (fy = d3_functor(y = _), voronoi) : y;\n };\n voronoi.clipExtent = function(_) {\n if (!arguments.length) return clipExtent === d3_geom_voronoiClipExtent ? null : clipExtent;\n clipExtent = _ == null ? d3_geom_voronoiClipExtent : _;\n return voronoi;\n };\n voronoi.size = function(_) {\n if (!arguments.length) return clipExtent === d3_geom_voronoiClipExtent ? null : clipExtent && clipExtent[1];\n return voronoi.clipExtent(_ && [ [ 0, 0 ], _ ]);\n };\n return voronoi;\n };\n var d3_geom_voronoiClipExtent = [ [ -1e6, -1e6 ], [ 1e6, 1e6 ] ];\n function d3_geom_voronoiTriangleArea(a, b, c) {\n return (a.x - c.x) * (b.y - a.y) - (a.x - b.x) * (c.y - a.y);\n }\n d3.geom.delaunay = function(vertices) {\n return d3.geom.voronoi().triangles(vertices);\n };\n d3.geom.quadtree = function(points, x1, y1, x2, y2) {\n var x = d3_geom_pointX, y = d3_geom_pointY, compat;\n if (compat = arguments.length) {\n x = d3_geom_quadtreeCompatX;\n y = d3_geom_quadtreeCompatY;\n if (compat === 3) {\n y2 = y1;\n x2 = x1;\n y1 = x1 = 0;\n }\n return quadtree(points);\n }\n function quadtree(data) {\n var d, fx = d3_functor(x), fy = d3_functor(y), xs, ys, i, n, x1_, y1_, x2_, y2_;\n if (x1 != null) {\n x1_ = x1, y1_ = y1, x2_ = x2, y2_ = y2;\n } else {\n x2_ = y2_ = -(x1_ = y1_ = Infinity);\n xs = [], ys = [];\n n = data.length;\n if (compat) for (i = 0; i < n; ++i) {\n d = data[i];\n if (d.x < x1_) x1_ = d.x;\n if (d.y < y1_) y1_ = d.y;\n if (d.x > x2_) x2_ = d.x;\n if (d.y > y2_) y2_ = d.y;\n xs.push(d.x);\n ys.push(d.y);\n } else for (i = 0; i < n; ++i) {\n var x_ = +fx(d = data[i], i), y_ = +fy(d, i);\n if (x_ < x1_) x1_ = x_;\n if (y_ < y1_) y1_ = y_;\n if (x_ > x2_) x2_ = x_;\n if (y_ > y2_) y2_ = y_;\n xs.push(x_);\n ys.push(y_);\n }\n }\n var dx = x2_ - x1_, dy = y2_ - y1_;\n if (dx > dy) y2_ = y1_ + dx; else x2_ = x1_ + dy;\n function insert(n, d, x, y, x1, y1, x2, y2) {\n if (isNaN(x) || isNaN(y)) return;\n if (n.leaf) {\n var nx = n.x, ny = n.y;\n if (nx != null) {\n if (abs(nx - x) + abs(ny - y) < .01) {\n insertChild(n, d, x, y, x1, y1, x2, y2);\n } else {\n var nPoint = n.point;\n n.x = n.y = n.point = null;\n insertChild(n, nPoint, nx, ny, x1, y1, x2, y2);\n insertChild(n, d, x, y, x1, y1, x2, y2);\n }\n } else {\n n.x = x, n.y = y, n.point = d;\n }\n } else {\n insertChild(n, d, x, y, x1, y1, x2, y2);\n }\n }\n function insertChild(n, d, x, y, x1, y1, x2, y2) {\n var xm = (x1 + x2) * .5, ym = (y1 + y2) * .5, right = x >= xm, below = y >= ym, i = below << 1 | right;\n n.leaf = false;\n n = n.nodes[i] || (n.nodes[i] = d3_geom_quadtreeNode());\n if (right) x1 = xm; else x2 = xm;\n if (below) y1 = ym; else y2 = ym;\n insert(n, d, x, y, x1, y1, x2, y2);\n }\n var root = d3_geom_quadtreeNode();\n root.add = function(d) {\n insert(root, d, +fx(d, ++i), +fy(d, i), x1_, y1_, x2_, y2_);\n };\n root.visit = function(f) {\n d3_geom_quadtreeVisit(f, root, x1_, y1_, x2_, y2_);\n };\n root.find = function(point) {\n return d3_geom_quadtreeFind(root, point[0], point[1], x1_, y1_, x2_, y2_);\n };\n i = -1;\n if (x1 == null) {\n while (++i < n) {\n insert(root, data[i], xs[i], ys[i], x1_, y1_, x2_, y2_);\n }\n --i;\n } else data.forEach(root.add);\n xs = ys = data = d = null;\n return root;\n }\n quadtree.x = function(_) {\n return arguments.length ? (x = _, quadtree) : x;\n };\n quadtree.y = function(_) {\n return arguments.length ? (y = _, quadtree) : y;\n };\n quadtree.extent = function(_) {\n if (!arguments.length) return x1 == null ? null : [ [ x1, y1 ], [ x2, y2 ] ];\n if (_ == null) x1 = y1 = x2 = y2 = null; else x1 = +_[0][0], y1 = +_[0][1], x2 = +_[1][0], \n y2 = +_[1][1];\n return quadtree;\n };\n quadtree.size = function(_) {\n if (!arguments.length) return x1 == null ? null : [ x2 - x1, y2 - y1 ];\n if (_ == null) x1 = y1 = x2 = y2 = null; else x1 = y1 = 0, x2 = +_[0], y2 = +_[1];\n return quadtree;\n };\n return quadtree;\n };\n function d3_geom_quadtreeCompatX(d) {\n return d.x;\n }\n function d3_geom_quadtreeCompatY(d) {\n return d.y;\n }\n function d3_geom_quadtreeNode() {\n return {\n leaf: true,\n nodes: [],\n point: null,\n x: null,\n y: null\n };\n }\n function d3_geom_quadtreeVisit(f, node, x1, y1, x2, y2) {\n if (!f(node, x1, y1, x2, y2)) {\n var sx = (x1 + x2) * .5, sy = (y1 + y2) * .5, children = node.nodes;\n if (children[0]) d3_geom_quadtreeVisit(f, children[0], x1, y1, sx, sy);\n if (children[1]) d3_geom_quadtreeVisit(f, children[1], sx, y1, x2, sy);\n if (children[2]) d3_geom_quadtreeVisit(f, children[2], x1, sy, sx, y2);\n if (children[3]) d3_geom_quadtreeVisit(f, children[3], sx, sy, x2, y2);\n }\n }\n function d3_geom_quadtreeFind(root, x, y, x0, y0, x3, y3) {\n var minDistance2 = Infinity, closestPoint;\n (function find(node, x1, y1, x2, y2) {\n if (x1 > x3 || y1 > y3 || x2 < x0 || y2 < y0) return;\n if (point = node.point) {\n var point, dx = x - node.x, dy = y - node.y, distance2 = dx * dx + dy * dy;\n if (distance2 < minDistance2) {\n var distance = Math.sqrt(minDistance2 = distance2);\n x0 = x - distance, y0 = y - distance;\n x3 = x + distance, y3 = y + distance;\n closestPoint = point;\n }\n }\n var children = node.nodes, xm = (x1 + x2) * .5, ym = (y1 + y2) * .5, right = x >= xm, below = y >= ym;\n for (var i = below << 1 | right, j = i + 4; i < j; ++i) {\n if (node = children[i & 3]) switch (i & 3) {\n case 0:\n find(node, x1, y1, xm, ym);\n break;\n\n case 1:\n find(node, xm, y1, x2, ym);\n break;\n\n case 2:\n find(node, x1, ym, xm, y2);\n break;\n\n case 3:\n find(node, xm, ym, x2, y2);\n break;\n }\n }\n })(root, x0, y0, x3, y3);\n return closestPoint;\n }\n d3.interpolateRgb = d3_interpolateRgb;\n function d3_interpolateRgb(a, b) {\n a = d3.rgb(a);\n b = d3.rgb(b);\n var ar = a.r, ag = a.g, ab = a.b, br = b.r - ar, bg = b.g - ag, bb = b.b - ab;\n return function(t) {\n return \"#\" + d3_rgb_hex(Math.round(ar + br * t)) + d3_rgb_hex(Math.round(ag + bg * t)) + d3_rgb_hex(Math.round(ab + bb * t));\n };\n }\n d3.interpolateObject = d3_interpolateObject;\n function d3_interpolateObject(a, b) {\n var i = {}, c = {}, k;\n for (k in a) {\n if (k in b) {\n i[k] = d3_interpolate(a[k], b[k]);\n } else {\n c[k] = a[k];\n }\n }\n for (k in b) {\n if (!(k in a)) {\n c[k] = b[k];\n }\n }\n return function(t) {\n for (k in i) c[k] = i[k](t);\n return c;\n };\n }\n d3.interpolateNumber = d3_interpolateNumber;\n function d3_interpolateNumber(a, b) {\n a = +a, b = +b;\n return function(t) {\n return a * (1 - t) + b * t;\n };\n }\n d3.interpolateString = d3_interpolateString;\n function d3_interpolateString(a, b) {\n var bi = d3_interpolate_numberA.lastIndex = d3_interpolate_numberB.lastIndex = 0, am, bm, bs, i = -1, s = [], q = [];\n a = a + \"\", b = b + \"\";\n while ((am = d3_interpolate_numberA.exec(a)) && (bm = d3_interpolate_numberB.exec(b))) {\n if ((bs = bm.index) > bi) {\n bs = b.slice(bi, bs);\n if (s[i]) s[i] += bs; else s[++i] = bs;\n }\n if ((am = am[0]) === (bm = bm[0])) {\n if (s[i]) s[i] += bm; else s[++i] = bm;\n } else {\n s[++i] = null;\n q.push({\n i: i,\n x: d3_interpolateNumber(am, bm)\n });\n }\n bi = d3_interpolate_numberB.lastIndex;\n }\n if (bi < b.length) {\n bs = b.slice(bi);\n if (s[i]) s[i] += bs; else s[++i] = bs;\n }\n return s.length < 2 ? q[0] ? (b = q[0].x, function(t) {\n return b(t) + \"\";\n }) : function() {\n return b;\n } : (b = q.length, function(t) {\n for (var i = 0, o; i < b; ++i) s[(o = q[i]).i] = o.x(t);\n return s.join(\"\");\n });\n }\n var d3_interpolate_numberA = /[-+]?(?:\\d+\\.?\\d*|\\.?\\d+)(?:[eE][-+]?\\d+)?/g, d3_interpolate_numberB = new RegExp(d3_interpolate_numberA.source, \"g\");\n d3.interpolate = d3_interpolate;\n function d3_interpolate(a, b) {\n var i = d3.interpolators.length, f;\n while (--i >= 0 && !(f = d3.interpolators[i](a, b))) ;\n return f;\n }\n d3.interpolators = [ function(a, b) {\n var t = typeof b;\n return (t === \"string\" ? d3_rgb_names.has(b.toLowerCase()) || /^(#|rgb\\(|hsl\\()/i.test(b) ? d3_interpolateRgb : d3_interpolateString : b instanceof d3_color ? d3_interpolateRgb : Array.isArray(b) ? d3_interpolateArray : t === \"object\" && isNaN(b) ? d3_interpolateObject : d3_interpolateNumber)(a, b);\n } ];\n d3.interpolateArray = d3_interpolateArray;\n function d3_interpolateArray(a, b) {\n var x = [], c = [], na = a.length, nb = b.length, n0 = Math.min(a.length, b.length), i;\n for (i = 0; i < n0; ++i) x.push(d3_interpolate(a[i], b[i]));\n for (;i < na; ++i) c[i] = a[i];\n for (;i < nb; ++i) c[i] = b[i];\n return function(t) {\n for (i = 0; i < n0; ++i) c[i] = x[i](t);\n return c;\n };\n }\n var d3_ease_default = function() {\n return d3_identity;\n };\n var d3_ease = d3.map({\n linear: d3_ease_default,\n poly: d3_ease_poly,\n quad: function() {\n return d3_ease_quad;\n },\n cubic: function() {\n return d3_ease_cubic;\n },\n sin: function() {\n return d3_ease_sin;\n },\n exp: function() {\n return d3_ease_exp;\n },\n circle: function() {\n return d3_ease_circle;\n },\n elastic: d3_ease_elastic,\n back: d3_ease_back,\n bounce: function() {\n return d3_ease_bounce;\n }\n });\n var d3_ease_mode = d3.map({\n \"in\": d3_identity,\n out: d3_ease_reverse,\n \"in-out\": d3_ease_reflect,\n \"out-in\": function(f) {\n return d3_ease_reflect(d3_ease_reverse(f));\n }\n });\n d3.ease = function(name) {\n var i = name.indexOf(\"-\"), t = i >= 0 ? name.slice(0, i) : name, m = i >= 0 ? name.slice(i + 1) : \"in\";\n t = d3_ease.get(t) || d3_ease_default;\n m = d3_ease_mode.get(m) || d3_identity;\n return d3_ease_clamp(m(t.apply(null, d3_arraySlice.call(arguments, 1))));\n };\n function d3_ease_clamp(f) {\n return function(t) {\n return t <= 0 ? 0 : t >= 1 ? 1 : f(t);\n };\n }\n function d3_ease_reverse(f) {\n return function(t) {\n return 1 - f(1 - t);\n };\n }\n function d3_ease_reflect(f) {\n return function(t) {\n return .5 * (t < .5 ? f(2 * t) : 2 - f(2 - 2 * t));\n };\n }\n function d3_ease_quad(t) {\n return t * t;\n }\n function d3_ease_cubic(t) {\n return t * t * t;\n }\n function d3_ease_cubicInOut(t) {\n if (t <= 0) return 0;\n if (t >= 1) return 1;\n var t2 = t * t, t3 = t2 * t;\n return 4 * (t < .5 ? t3 : 3 * (t - t2) + t3 - .75);\n }\n function d3_ease_poly(e) {\n return function(t) {\n return Math.pow(t, e);\n };\n }\n function d3_ease_sin(t) {\n return 1 - Math.cos(t * halfπ);\n }\n function d3_ease_exp(t) {\n return Math.pow(2, 10 * (t - 1));\n }\n function d3_ease_circle(t) {\n return 1 - Math.sqrt(1 - t * t);\n }\n function d3_ease_elastic(a, p) {\n var s;\n if (arguments.length < 2) p = .45;\n if (arguments.length) s = p / τ * Math.asin(1 / a); else a = 1, s = p / 4;\n return function(t) {\n return 1 + a * Math.pow(2, -10 * t) * Math.sin((t - s) * τ / p);\n };\n }\n function d3_ease_back(s) {\n if (!s) s = 1.70158;\n return function(t) {\n return t * t * ((s + 1) * t - s);\n };\n }\n function d3_ease_bounce(t) {\n return t < 1 / 2.75 ? 7.5625 * t * t : t < 2 / 2.75 ? 7.5625 * (t -= 1.5 / 2.75) * t + .75 : t < 2.5 / 2.75 ? 7.5625 * (t -= 2.25 / 2.75) * t + .9375 : 7.5625 * (t -= 2.625 / 2.75) * t + .984375;\n }\n d3.interpolateHcl = d3_interpolateHcl;\n function d3_interpolateHcl(a, b) {\n a = d3.hcl(a);\n b = d3.hcl(b);\n var ah = a.h, ac = a.c, al = a.l, bh = b.h - ah, bc = b.c - ac, bl = b.l - al;\n if (isNaN(bc)) bc = 0, ac = isNaN(ac) ? b.c : ac;\n if (isNaN(bh)) bh = 0, ah = isNaN(ah) ? b.h : ah; else if (bh > 180) bh -= 360; else if (bh < -180) bh += 360;\n return function(t) {\n return d3_hcl_lab(ah + bh * t, ac + bc * t, al + bl * t) + \"\";\n };\n }\n d3.interpolateHsl = d3_interpolateHsl;\n function d3_interpolateHsl(a, b) {\n a = d3.hsl(a);\n b = d3.hsl(b);\n var ah = a.h, as = a.s, al = a.l, bh = b.h - ah, bs = b.s - as, bl = b.l - al;\n if (isNaN(bs)) bs = 0, as = isNaN(as) ? b.s : as;\n if (isNaN(bh)) bh = 0, ah = isNaN(ah) ? b.h : ah; else if (bh > 180) bh -= 360; else if (bh < -180) bh += 360;\n return function(t) {\n return d3_hsl_rgb(ah + bh * t, as + bs * t, al + bl * t) + \"\";\n };\n }\n d3.interpolateLab = d3_interpolateLab;\n function d3_interpolateLab(a, b) {\n a = d3.lab(a);\n b = d3.lab(b);\n var al = a.l, aa = a.a, ab = a.b, bl = b.l - al, ba = b.a - aa, bb = b.b - ab;\n return function(t) {\n return d3_lab_rgb(al + bl * t, aa + ba * t, ab + bb * t) + \"\";\n };\n }\n d3.interpolateRound = d3_interpolateRound;\n function d3_interpolateRound(a, b) {\n b -= a;\n return function(t) {\n return Math.round(a + b * t);\n };\n }\n d3.transform = function(string) {\n var g = d3_document.createElementNS(d3.ns.prefix.svg, \"g\");\n return (d3.transform = function(string) {\n if (string != null) {\n g.setAttribute(\"transform\", string);\n var t = g.transform.baseVal.consolidate();\n }\n return new d3_transform(t ? t.matrix : d3_transformIdentity);\n })(string);\n };\n function d3_transform(m) {\n var r0 = [ m.a, m.b ], r1 = [ m.c, m.d ], kx = d3_transformNormalize(r0), kz = d3_transformDot(r0, r1), ky = d3_transformNormalize(d3_transformCombine(r1, r0, -kz)) || 0;\n if (r0[0] * r1[1] < r1[0] * r0[1]) {\n r0[0] *= -1;\n r0[1] *= -1;\n kx *= -1;\n kz *= -1;\n }\n this.rotate = (kx ? Math.atan2(r0[1], r0[0]) : Math.atan2(-r1[0], r1[1])) * d3_degrees;\n this.translate = [ m.e, m.f ];\n this.scale = [ kx, ky ];\n this.skew = ky ? Math.atan2(kz, ky) * d3_degrees : 0;\n }\n d3_transform.prototype.toString = function() {\n return \"translate(\" + this.translate + \")rotate(\" + this.rotate + \")skewX(\" + this.skew + \")scale(\" + this.scale + \")\";\n };\n function d3_transformDot(a, b) {\n return a[0] * b[0] + a[1] * b[1];\n }\n function d3_transformNormalize(a) {\n var k = Math.sqrt(d3_transformDot(a, a));\n if (k) {\n a[0] /= k;\n a[1] /= k;\n }\n return k;\n }\n function d3_transformCombine(a, b, k) {\n a[0] += k * b[0];\n a[1] += k * b[1];\n return a;\n }\n var d3_transformIdentity = {\n a: 1,\n b: 0,\n c: 0,\n d: 1,\n e: 0,\n f: 0\n };\n d3.interpolateTransform = d3_interpolateTransform;\n function d3_interpolateTransformPop(s) {\n return s.length ? s.pop() + \",\" : \"\";\n }\n function d3_interpolateTranslate(ta, tb, s, q) {\n if (ta[0] !== tb[0] || ta[1] !== tb[1]) {\n var i = s.push(\"translate(\", null, \",\", null, \")\");\n q.push({\n i: i - 4,\n x: d3_interpolateNumber(ta[0], tb[0])\n }, {\n i: i - 2,\n x: d3_interpolateNumber(ta[1], tb[1])\n });\n } else if (tb[0] || tb[1]) {\n s.push(\"translate(\" + tb + \")\");\n }\n }\n function d3_interpolateRotate(ra, rb, s, q) {\n if (ra !== rb) {\n if (ra - rb > 180) rb += 360; else if (rb - ra > 180) ra += 360;\n q.push({\n i: s.push(d3_interpolateTransformPop(s) + \"rotate(\", null, \")\") - 2,\n x: d3_interpolateNumber(ra, rb)\n });\n } else if (rb) {\n s.push(d3_interpolateTransformPop(s) + \"rotate(\" + rb + \")\");\n }\n }\n function d3_interpolateSkew(wa, wb, s, q) {\n if (wa !== wb) {\n q.push({\n i: s.push(d3_interpolateTransformPop(s) + \"skewX(\", null, \")\") - 2,\n x: d3_interpolateNumber(wa, wb)\n });\n } else if (wb) {\n s.push(d3_interpolateTransformPop(s) + \"skewX(\" + wb + \")\");\n }\n }\n function d3_interpolateScale(ka, kb, s, q) {\n if (ka[0] !== kb[0] || ka[1] !== kb[1]) {\n var i = s.push(d3_interpolateTransformPop(s) + \"scale(\", null, \",\", null, \")\");\n q.push({\n i: i - 4,\n x: d3_interpolateNumber(ka[0], kb[0])\n }, {\n i: i - 2,\n x: d3_interpolateNumber(ka[1], kb[1])\n });\n } else if (kb[0] !== 1 || kb[1] !== 1) {\n s.push(d3_interpolateTransformPop(s) + \"scale(\" + kb + \")\");\n }\n }\n function d3_interpolateTransform(a, b) {\n var s = [], q = [];\n a = d3.transform(a), b = d3.transform(b);\n d3_interpolateTranslate(a.translate, b.translate, s, q);\n d3_interpolateRotate(a.rotate, b.rotate, s, q);\n d3_interpolateSkew(a.skew, b.skew, s, q);\n d3_interpolateScale(a.scale, b.scale, s, q);\n a = b = null;\n return function(t) {\n var i = -1, n = q.length, o;\n while (++i < n) s[(o = q[i]).i] = o.x(t);\n return s.join(\"\");\n };\n }\n function d3_uninterpolateNumber(a, b) {\n b = (b -= a = +a) || 1 / b;\n return function(x) {\n return (x - a) / b;\n };\n }\n function d3_uninterpolateClamp(a, b) {\n b = (b -= a = +a) || 1 / b;\n return function(x) {\n return Math.max(0, Math.min(1, (x - a) / b));\n };\n }\n d3.layout = {};\n d3.layout.bundle = function() {\n return function(links) {\n var paths = [], i = -1, n = links.length;\n while (++i < n) paths.push(d3_layout_bundlePath(links[i]));\n return paths;\n };\n };\n function d3_layout_bundlePath(link) {\n var start = link.source, end = link.target, lca = d3_layout_bundleLeastCommonAncestor(start, end), points = [ start ];\n while (start !== lca) {\n start = start.parent;\n points.push(start);\n }\n var k = points.length;\n while (end !== lca) {\n points.splice(k, 0, end);\n end = end.parent;\n }\n return points;\n }\n function d3_layout_bundleAncestors(node) {\n var ancestors = [], parent = node.parent;\n while (parent != null) {\n ancestors.push(node);\n node = parent;\n parent = parent.parent;\n }\n ancestors.push(node);\n return ancestors;\n }\n function d3_layout_bundleLeastCommonAncestor(a, b) {\n if (a === b) return a;\n var aNodes = d3_layout_bundleAncestors(a), bNodes = d3_layout_bundleAncestors(b), aNode = aNodes.pop(), bNode = bNodes.pop(), sharedNode = null;\n while (aNode === bNode) {\n sharedNode = aNode;\n aNode = aNodes.pop();\n bNode = bNodes.pop();\n }\n return sharedNode;\n }\n d3.layout.chord = function() {\n var chord = {}, chords, groups, matrix, n, padding = 0, sortGroups, sortSubgroups, sortChords;\n function relayout() {\n var subgroups = {}, groupSums = [], groupIndex = d3.range(n), subgroupIndex = [], k, x, x0, i, j;\n chords = [];\n groups = [];\n k = 0, i = -1;\n while (++i < n) {\n x = 0, j = -1;\n while (++j < n) {\n x += matrix[i][j];\n }\n groupSums.push(x);\n subgroupIndex.push(d3.range(n));\n k += x;\n }\n if (sortGroups) {\n groupIndex.sort(function(a, b) {\n return sortGroups(groupSums[a], groupSums[b]);\n });\n }\n if (sortSubgroups) {\n subgroupIndex.forEach(function(d, i) {\n d.sort(function(a, b) {\n return sortSubgroups(matrix[i][a], matrix[i][b]);\n });\n });\n }\n k = (τ - padding * n) / k;\n x = 0, i = -1;\n while (++i < n) {\n x0 = x, j = -1;\n while (++j < n) {\n var di = groupIndex[i], dj = subgroupIndex[di][j], v = matrix[di][dj], a0 = x, a1 = x += v * k;\n subgroups[di + \"-\" + dj] = {\n index: di,\n subindex: dj,\n startAngle: a0,\n endAngle: a1,\n value: v\n };\n }\n groups[di] = {\n index: di,\n startAngle: x0,\n endAngle: x,\n value: groupSums[di]\n };\n x += padding;\n }\n i = -1;\n while (++i < n) {\n j = i - 1;\n while (++j < n) {\n var source = subgroups[i + \"-\" + j], target = subgroups[j + \"-\" + i];\n if (source.value || target.value) {\n chords.push(source.value < target.value ? {\n source: target,\n target: source\n } : {\n source: source,\n target: target\n });\n }\n }\n }\n if (sortChords) resort();\n }\n function resort() {\n chords.sort(function(a, b) {\n return sortChords((a.source.value + a.target.value) / 2, (b.source.value + b.target.value) / 2);\n });\n }\n chord.matrix = function(x) {\n if (!arguments.length) return matrix;\n n = (matrix = x) && matrix.length;\n chords = groups = null;\n return chord;\n };\n chord.padding = function(x) {\n if (!arguments.length) return padding;\n padding = x;\n chords = groups = null;\n return chord;\n };\n chord.sortGroups = function(x) {\n if (!arguments.length) return sortGroups;\n sortGroups = x;\n chords = groups = null;\n return chord;\n };\n chord.sortSubgroups = function(x) {\n if (!arguments.length) return sortSubgroups;\n sortSubgroups = x;\n chords = null;\n return chord;\n };\n chord.sortChords = function(x) {\n if (!arguments.length) return sortChords;\n sortChords = x;\n if (chords) resort();\n return chord;\n };\n chord.chords = function() {\n if (!chords) relayout();\n return chords;\n };\n chord.groups = function() {\n if (!groups) relayout();\n return groups;\n };\n return chord;\n };\n d3.layout.force = function() {\n var force = {}, event = d3.dispatch(\"start\", \"tick\", \"end\"), timer, size = [ 1, 1 ], drag, alpha, friction = .9, linkDistance = d3_layout_forceLinkDistance, linkStrength = d3_layout_forceLinkStrength, charge = -30, chargeDistance2 = d3_layout_forceChargeDistance2, gravity = .1, theta2 = .64, nodes = [], links = [], distances, strengths, charges;\n function repulse(node) {\n return function(quad, x1, _, x2) {\n if (quad.point !== node) {\n var dx = quad.cx - node.x, dy = quad.cy - node.y, dw = x2 - x1, dn = dx * dx + dy * dy;\n if (dw * dw / theta2 < dn) {\n if (dn < chargeDistance2) {\n var k = quad.charge / dn;\n node.px -= dx * k;\n node.py -= dy * k;\n }\n return true;\n }\n if (quad.point && dn && dn < chargeDistance2) {\n var k = quad.pointCharge / dn;\n node.px -= dx * k;\n node.py -= dy * k;\n }\n }\n return !quad.charge;\n };\n }\n force.tick = function() {\n if ((alpha *= .99) < .005) {\n timer = null;\n event.end({\n type: \"end\",\n alpha: alpha = 0\n });\n return true;\n }\n var n = nodes.length, m = links.length, q, i, o, s, t, l, k, x, y;\n for (i = 0; i < m; ++i) {\n o = links[i];\n s = o.source;\n t = o.target;\n x = t.x - s.x;\n y = t.y - s.y;\n if (l = x * x + y * y) {\n l = alpha * strengths[i] * ((l = Math.sqrt(l)) - distances[i]) / l;\n x *= l;\n y *= l;\n t.x -= x * (k = s.weight + t.weight ? s.weight / (s.weight + t.weight) : .5);\n t.y -= y * k;\n s.x += x * (k = 1 - k);\n s.y += y * k;\n }\n }\n if (k = alpha * gravity) {\n x = size[0] / 2;\n y = size[1] / 2;\n i = -1;\n if (k) while (++i < n) {\n o = nodes[i];\n o.x += (x - o.x) * k;\n o.y += (y - o.y) * k;\n }\n }\n if (charge) {\n d3_layout_forceAccumulate(q = d3.geom.quadtree(nodes), alpha, charges);\n i = -1;\n while (++i < n) {\n if (!(o = nodes[i]).fixed) {\n q.visit(repulse(o));\n }\n }\n }\n i = -1;\n while (++i < n) {\n o = nodes[i];\n if (o.fixed) {\n o.x = o.px;\n o.y = o.py;\n } else {\n o.x -= (o.px - (o.px = o.x)) * friction;\n o.y -= (o.py - (o.py = o.y)) * friction;\n }\n }\n event.tick({\n type: \"tick\",\n alpha: alpha\n });\n };\n force.nodes = function(x) {\n if (!arguments.length) return nodes;\n nodes = x;\n return force;\n };\n force.links = function(x) {\n if (!arguments.length) return links;\n links = x;\n return force;\n };\n force.size = function(x) {\n if (!arguments.length) return size;\n size = x;\n return force;\n };\n force.linkDistance = function(x) {\n if (!arguments.length) return linkDistance;\n linkDistance = typeof x === \"function\" ? x : +x;\n return force;\n };\n force.distance = force.linkDistance;\n force.linkStrength = function(x) {\n if (!arguments.length) return linkStrength;\n linkStrength = typeof x === \"function\" ? x : +x;\n return force;\n };\n force.friction = function(x) {\n if (!arguments.length) return friction;\n friction = +x;\n return force;\n };\n force.charge = function(x) {\n if (!arguments.length) return charge;\n charge = typeof x === \"function\" ? x : +x;\n return force;\n };\n force.chargeDistance = function(x) {\n if (!arguments.length) return Math.sqrt(chargeDistance2);\n chargeDistance2 = x * x;\n return force;\n };\n force.gravity = function(x) {\n if (!arguments.length) return gravity;\n gravity = +x;\n return force;\n };\n force.theta = function(x) {\n if (!arguments.length) return Math.sqrt(theta2);\n theta2 = x * x;\n return force;\n };\n force.alpha = function(x) {\n if (!arguments.length) return alpha;\n x = +x;\n if (alpha) {\n if (x > 0) {\n alpha = x;\n } else {\n timer.c = null, timer.t = NaN, timer = null;\n event.end({\n type: \"end\",\n alpha: alpha = 0\n });\n }\n } else if (x > 0) {\n event.start({\n type: \"start\",\n alpha: alpha = x\n });\n timer = d3_timer(force.tick);\n }\n return force;\n };\n force.start = function() {\n var i, n = nodes.length, m = links.length, w = size[0], h = size[1], neighbors, o;\n for (i = 0; i < n; ++i) {\n (o = nodes[i]).index = i;\n o.weight = 0;\n }\n for (i = 0; i < m; ++i) {\n o = links[i];\n if (typeof o.source == \"number\") o.source = nodes[o.source];\n if (typeof o.target == \"number\") o.target = nodes[o.target];\n ++o.source.weight;\n ++o.target.weight;\n }\n for (i = 0; i < n; ++i) {\n o = nodes[i];\n if (isNaN(o.x)) o.x = position(\"x\", w);\n if (isNaN(o.y)) o.y = position(\"y\", h);\n if (isNaN(o.px)) o.px = o.x;\n if (isNaN(o.py)) o.py = o.y;\n }\n distances = [];\n if (typeof linkDistance === \"function\") for (i = 0; i < m; ++i) distances[i] = +linkDistance.call(this, links[i], i); else for (i = 0; i < m; ++i) distances[i] = linkDistance;\n strengths = [];\n if (typeof linkStrength === \"function\") for (i = 0; i < m; ++i) strengths[i] = +linkStrength.call(this, links[i], i); else for (i = 0; i < m; ++i) strengths[i] = linkStrength;\n charges = [];\n if (typeof charge === \"function\") for (i = 0; i < n; ++i) charges[i] = +charge.call(this, nodes[i], i); else for (i = 0; i < n; ++i) charges[i] = charge;\n function position(dimension, size) {\n if (!neighbors) {\n neighbors = new Array(n);\n for (j = 0; j < n; ++j) {\n neighbors[j] = [];\n }\n for (j = 0; j < m; ++j) {\n var o = links[j];\n neighbors[o.source.index].push(o.target);\n neighbors[o.target.index].push(o.source);\n }\n }\n var candidates = neighbors[i], j = -1, l = candidates.length, x;\n while (++j < l) if (!isNaN(x = candidates[j][dimension])) return x;\n return Math.random() * size;\n }\n return force.resume();\n };\n force.resume = function() {\n return force.alpha(.1);\n };\n force.stop = function() {\n return force.alpha(0);\n };\n force.drag = function() {\n if (!drag) drag = d3.behavior.drag().origin(d3_identity).on(\"dragstart.force\", d3_layout_forceDragstart).on(\"drag.force\", dragmove).on(\"dragend.force\", d3_layout_forceDragend);\n if (!arguments.length) return drag;\n this.on(\"mouseover.force\", d3_layout_forceMouseover).on(\"mouseout.force\", d3_layout_forceMouseout).call(drag);\n };\n function dragmove(d) {\n d.px = d3.event.x, d.py = d3.event.y;\n force.resume();\n }\n return d3.rebind(force, event, \"on\");\n };\n function d3_layout_forceDragstart(d) {\n d.fixed |= 2;\n }\n function d3_layout_forceDragend(d) {\n d.fixed &= ~6;\n }\n function d3_layout_forceMouseover(d) {\n d.fixed |= 4;\n d.px = d.x, d.py = d.y;\n }\n function d3_layout_forceMouseout(d) {\n d.fixed &= ~4;\n }\n function d3_layout_forceAccumulate(quad, alpha, charges) {\n var cx = 0, cy = 0;\n quad.charge = 0;\n if (!quad.leaf) {\n var nodes = quad.nodes, n = nodes.length, i = -1, c;\n while (++i < n) {\n c = nodes[i];\n if (c == null) continue;\n d3_layout_forceAccumulate(c, alpha, charges);\n quad.charge += c.charge;\n cx += c.charge * c.cx;\n cy += c.charge * c.cy;\n }\n }\n if (quad.point) {\n if (!quad.leaf) {\n quad.point.x += Math.random() - .5;\n quad.point.y += Math.random() - .5;\n }\n var k = alpha * charges[quad.point.index];\n quad.charge += quad.pointCharge = k;\n cx += k * quad.point.x;\n cy += k * quad.point.y;\n }\n quad.cx = cx / quad.charge;\n quad.cy = cy / quad.charge;\n }\n var d3_layout_forceLinkDistance = 20, d3_layout_forceLinkStrength = 1, d3_layout_forceChargeDistance2 = Infinity;\n d3.layout.hierarchy = function() {\n var sort = d3_layout_hierarchySort, children = d3_layout_hierarchyChildren, value = d3_layout_hierarchyValue;\n function hierarchy(root) {\n var stack = [ root ], nodes = [], node;\n root.depth = 0;\n while ((node = stack.pop()) != null) {\n nodes.push(node);\n if ((childs = children.call(hierarchy, node, node.depth)) && (n = childs.length)) {\n var n, childs, child;\n while (--n >= 0) {\n stack.push(child = childs[n]);\n child.parent = node;\n child.depth = node.depth + 1;\n }\n if (value) node.value = 0;\n node.children = childs;\n } else {\n if (value) node.value = +value.call(hierarchy, node, node.depth) || 0;\n delete node.children;\n }\n }\n d3_layout_hierarchyVisitAfter(root, function(node) {\n var childs, parent;\n if (sort && (childs = node.children)) childs.sort(sort);\n if (value && (parent = node.parent)) parent.value += node.value;\n });\n return nodes;\n }\n hierarchy.sort = function(x) {\n if (!arguments.length) return sort;\n sort = x;\n return hierarchy;\n };\n hierarchy.children = function(x) {\n if (!arguments.length) return children;\n children = x;\n return hierarchy;\n };\n hierarchy.value = function(x) {\n if (!arguments.length) return value;\n value = x;\n return hierarchy;\n };\n hierarchy.revalue = function(root) {\n if (value) {\n d3_layout_hierarchyVisitBefore(root, function(node) {\n if (node.children) node.value = 0;\n });\n d3_layout_hierarchyVisitAfter(root, function(node) {\n var parent;\n if (!node.children) node.value = +value.call(hierarchy, node, node.depth) || 0;\n if (parent = node.parent) parent.value += node.value;\n });\n }\n return root;\n };\n return hierarchy;\n };\n function d3_layout_hierarchyRebind(object, hierarchy) {\n d3.rebind(object, hierarchy, \"sort\", \"children\", \"value\");\n object.nodes = object;\n object.links = d3_layout_hierarchyLinks;\n return object;\n }\n function d3_layout_hierarchyVisitBefore(node, callback) {\n var nodes = [ node ];\n while ((node = nodes.pop()) != null) {\n callback(node);\n if ((children = node.children) && (n = children.length)) {\n var n, children;\n while (--n >= 0) nodes.push(children[n]);\n }\n }\n }\n function d3_layout_hierarchyVisitAfter(node, callback) {\n var nodes = [ node ], nodes2 = [];\n while ((node = nodes.pop()) != null) {\n nodes2.push(node);\n if ((children = node.children) && (n = children.length)) {\n var i = -1, n, children;\n while (++i < n) nodes.push(children[i]);\n }\n }\n while ((node = nodes2.pop()) != null) {\n callback(node);\n }\n }\n function d3_layout_hierarchyChildren(d) {\n return d.children;\n }\n function d3_layout_hierarchyValue(d) {\n return d.value;\n }\n function d3_layout_hierarchySort(a, b) {\n return b.value - a.value;\n }\n function d3_layout_hierarchyLinks(nodes) {\n return d3.merge(nodes.map(function(parent) {\n return (parent.children || []).map(function(child) {\n return {\n source: parent,\n target: child\n };\n });\n }));\n }\n d3.layout.partition = function() {\n var hierarchy = d3.layout.hierarchy(), size = [ 1, 1 ];\n function position(node, x, dx, dy) {\n var children = node.children;\n node.x = x;\n node.y = node.depth * dy;\n node.dx = dx;\n node.dy = dy;\n if (children && (n = children.length)) {\n var i = -1, n, c, d;\n dx = node.value ? dx / node.value : 0;\n while (++i < n) {\n position(c = children[i], x, d = c.value * dx, dy);\n x += d;\n }\n }\n }\n function depth(node) {\n var children = node.children, d = 0;\n if (children && (n = children.length)) {\n var i = -1, n;\n while (++i < n) d = Math.max(d, depth(children[i]));\n }\n return 1 + d;\n }\n function partition(d, i) {\n var nodes = hierarchy.call(this, d, i);\n position(nodes[0], 0, size[0], size[1] / depth(nodes[0]));\n return nodes;\n }\n partition.size = function(x) {\n if (!arguments.length) return size;\n size = x;\n return partition;\n };\n return d3_layout_hierarchyRebind(partition, hierarchy);\n };\n d3.layout.pie = function() {\n var value = Number, sort = d3_layout_pieSortByValue, startAngle = 0, endAngle = τ, padAngle = 0;\n function pie(data) {\n var n = data.length, values = data.map(function(d, i) {\n return +value.call(pie, d, i);\n }), a = +(typeof startAngle === \"function\" ? startAngle.apply(this, arguments) : startAngle), da = (typeof endAngle === \"function\" ? endAngle.apply(this, arguments) : endAngle) - a, p = Math.min(Math.abs(da) / n, +(typeof padAngle === \"function\" ? padAngle.apply(this, arguments) : padAngle)), pa = p * (da < 0 ? -1 : 1), sum = d3.sum(values), k = sum ? (da - n * pa) / sum : 0, index = d3.range(n), arcs = [], v;\n if (sort != null) index.sort(sort === d3_layout_pieSortByValue ? function(i, j) {\n return values[j] - values[i];\n } : function(i, j) {\n return sort(data[i], data[j]);\n });\n index.forEach(function(i) {\n arcs[i] = {\n data: data[i],\n value: v = values[i],\n startAngle: a,\n endAngle: a += v * k + pa,\n padAngle: p\n };\n });\n return arcs;\n }\n pie.value = function(_) {\n if (!arguments.length) return value;\n value = _;\n return pie;\n };\n pie.sort = function(_) {\n if (!arguments.length) return sort;\n sort = _;\n return pie;\n };\n pie.startAngle = function(_) {\n if (!arguments.length) return startAngle;\n startAngle = _;\n return pie;\n };\n pie.endAngle = function(_) {\n if (!arguments.length) return endAngle;\n endAngle = _;\n return pie;\n };\n pie.padAngle = function(_) {\n if (!arguments.length) return padAngle;\n padAngle = _;\n return pie;\n };\n return pie;\n };\n var d3_layout_pieSortByValue = {};\n d3.layout.stack = function() {\n var values = d3_identity, order = d3_layout_stackOrderDefault, offset = d3_layout_stackOffsetZero, out = d3_layout_stackOut, x = d3_layout_stackX, y = d3_layout_stackY;\n function stack(data, index) {\n if (!(n = data.length)) return data;\n var series = data.map(function(d, i) {\n return values.call(stack, d, i);\n });\n var points = series.map(function(d) {\n return d.map(function(v, i) {\n return [ x.call(stack, v, i), y.call(stack, v, i) ];\n });\n });\n var orders = order.call(stack, points, index);\n series = d3.permute(series, orders);\n points = d3.permute(points, orders);\n var offsets = offset.call(stack, points, index);\n var m = series[0].length, n, i, j, o;\n for (j = 0; j < m; ++j) {\n out.call(stack, series[0][j], o = offsets[j], points[0][j][1]);\n for (i = 1; i < n; ++i) {\n out.call(stack, series[i][j], o += points[i - 1][j][1], points[i][j][1]);\n }\n }\n return data;\n }\n stack.values = function(x) {\n if (!arguments.length) return values;\n values = x;\n return stack;\n };\n stack.order = function(x) {\n if (!arguments.length) return order;\n order = typeof x === \"function\" ? x : d3_layout_stackOrders.get(x) || d3_layout_stackOrderDefault;\n return stack;\n };\n stack.offset = function(x) {\n if (!arguments.length) return offset;\n offset = typeof x === \"function\" ? x : d3_layout_stackOffsets.get(x) || d3_layout_stackOffsetZero;\n return stack;\n };\n stack.x = function(z) {\n if (!arguments.length) return x;\n x = z;\n return stack;\n };\n stack.y = function(z) {\n if (!arguments.length) return y;\n y = z;\n return stack;\n };\n stack.out = function(z) {\n if (!arguments.length) return out;\n out = z;\n return stack;\n };\n return stack;\n };\n function d3_layout_stackX(d) {\n return d.x;\n }\n function d3_layout_stackY(d) {\n return d.y;\n }\n function d3_layout_stackOut(d, y0, y) {\n d.y0 = y0;\n d.y = y;\n }\n var d3_layout_stackOrders = d3.map({\n \"inside-out\": function(data) {\n var n = data.length, i, j, max = data.map(d3_layout_stackMaxIndex), sums = data.map(d3_layout_stackReduceSum), index = d3.range(n).sort(function(a, b) {\n return max[a] - max[b];\n }), top = 0, bottom = 0, tops = [], bottoms = [];\n for (i = 0; i < n; ++i) {\n j = index[i];\n if (top < bottom) {\n top += sums[j];\n tops.push(j);\n } else {\n bottom += sums[j];\n bottoms.push(j);\n }\n }\n return bottoms.reverse().concat(tops);\n },\n reverse: function(data) {\n return d3.range(data.length).reverse();\n },\n \"default\": d3_layout_stackOrderDefault\n });\n var d3_layout_stackOffsets = d3.map({\n silhouette: function(data) {\n var n = data.length, m = data[0].length, sums = [], max = 0, i, j, o, y0 = [];\n for (j = 0; j < m; ++j) {\n for (i = 0, o = 0; i < n; i++) o += data[i][j][1];\n if (o > max) max = o;\n sums.push(o);\n }\n for (j = 0; j < m; ++j) {\n y0[j] = (max - sums[j]) / 2;\n }\n return y0;\n },\n wiggle: function(data) {\n var n = data.length, x = data[0], m = x.length, i, j, k, s1, s2, s3, dx, o, o0, y0 = [];\n y0[0] = o = o0 = 0;\n for (j = 1; j < m; ++j) {\n for (i = 0, s1 = 0; i < n; ++i) s1 += data[i][j][1];\n for (i = 0, s2 = 0, dx = x[j][0] - x[j - 1][0]; i < n; ++i) {\n for (k = 0, s3 = (data[i][j][1] - data[i][j - 1][1]) / (2 * dx); k < i; ++k) {\n s3 += (data[k][j][1] - data[k][j - 1][1]) / dx;\n }\n s2 += s3 * data[i][j][1];\n }\n y0[j] = o -= s1 ? s2 / s1 * dx : 0;\n if (o < o0) o0 = o;\n }\n for (j = 0; j < m; ++j) y0[j] -= o0;\n return y0;\n },\n expand: function(data) {\n var n = data.length, m = data[0].length, k = 1 / n, i, j, o, y0 = [];\n for (j = 0; j < m; ++j) {\n for (i = 0, o = 0; i < n; i++) o += data[i][j][1];\n if (o) for (i = 0; i < n; i++) data[i][j][1] /= o; else for (i = 0; i < n; i++) data[i][j][1] = k;\n }\n for (j = 0; j < m; ++j) y0[j] = 0;\n return y0;\n },\n zero: d3_layout_stackOffsetZero\n });\n function d3_layout_stackOrderDefault(data) {\n return d3.range(data.length);\n }\n function d3_layout_stackOffsetZero(data) {\n var j = -1, m = data[0].length, y0 = [];\n while (++j < m) y0[j] = 0;\n return y0;\n }\n function d3_layout_stackMaxIndex(array) {\n var i = 1, j = 0, v = array[0][1], k, n = array.length;\n for (;i < n; ++i) {\n if ((k = array[i][1]) > v) {\n j = i;\n v = k;\n }\n }\n return j;\n }\n function d3_layout_stackReduceSum(d) {\n return d.reduce(d3_layout_stackSum, 0);\n }\n function d3_layout_stackSum(p, d) {\n return p + d[1];\n }\n d3.layout.histogram = function() {\n var frequency = true, valuer = Number, ranger = d3_layout_histogramRange, binner = d3_layout_histogramBinSturges;\n function histogram(data, i) {\n var bins = [], values = data.map(valuer, this), range = ranger.call(this, values, i), thresholds = binner.call(this, range, values, i), bin, i = -1, n = values.length, m = thresholds.length - 1, k = frequency ? 1 : 1 / n, x;\n while (++i < m) {\n bin = bins[i] = [];\n bin.dx = thresholds[i + 1] - (bin.x = thresholds[i]);\n bin.y = 0;\n }\n if (m > 0) {\n i = -1;\n while (++i < n) {\n x = values[i];\n if (x >= range[0] && x <= range[1]) {\n bin = bins[d3.bisect(thresholds, x, 1, m) - 1];\n bin.y += k;\n bin.push(data[i]);\n }\n }\n }\n return bins;\n }\n histogram.value = function(x) {\n if (!arguments.length) return valuer;\n valuer = x;\n return histogram;\n };\n histogram.range = function(x) {\n if (!arguments.length) return ranger;\n ranger = d3_functor(x);\n return histogram;\n };\n histogram.bins = function(x) {\n if (!arguments.length) return binner;\n binner = typeof x === \"number\" ? function(range) {\n return d3_layout_histogramBinFixed(range, x);\n } : d3_functor(x);\n return histogram;\n };\n histogram.frequency = function(x) {\n if (!arguments.length) return frequency;\n frequency = !!x;\n return histogram;\n };\n return histogram;\n };\n function d3_layout_histogramBinSturges(range, values) {\n return d3_layout_histogramBinFixed(range, Math.ceil(Math.log(values.length) / Math.LN2 + 1));\n }\n function d3_layout_histogramBinFixed(range, n) {\n var x = -1, b = +range[0], m = (range[1] - b) / n, f = [];\n while (++x <= n) f[x] = m * x + b;\n return f;\n }\n function d3_layout_histogramRange(values) {\n return [ d3.min(values), d3.max(values) ];\n }\n d3.layout.pack = function() {\n var hierarchy = d3.layout.hierarchy().sort(d3_layout_packSort), padding = 0, size = [ 1, 1 ], radius;\n function pack(d, i) {\n var nodes = hierarchy.call(this, d, i), root = nodes[0], w = size[0], h = size[1], r = radius == null ? Math.sqrt : typeof radius === \"function\" ? radius : function() {\n return radius;\n };\n root.x = root.y = 0;\n d3_layout_hierarchyVisitAfter(root, function(d) {\n d.r = +r(d.value);\n });\n d3_layout_hierarchyVisitAfter(root, d3_layout_packSiblings);\n if (padding) {\n var dr = padding * (radius ? 1 : Math.max(2 * root.r / w, 2 * root.r / h)) / 2;\n d3_layout_hierarchyVisitAfter(root, function(d) {\n d.r += dr;\n });\n d3_layout_hierarchyVisitAfter(root, d3_layout_packSiblings);\n d3_layout_hierarchyVisitAfter(root, function(d) {\n d.r -= dr;\n });\n }\n d3_layout_packTransform(root, w / 2, h / 2, radius ? 1 : 1 / Math.max(2 * root.r / w, 2 * root.r / h));\n return nodes;\n }\n pack.size = function(_) {\n if (!arguments.length) return size;\n size = _;\n return pack;\n };\n pack.radius = function(_) {\n if (!arguments.length) return radius;\n radius = _ == null || typeof _ === \"function\" ? _ : +_;\n return pack;\n };\n pack.padding = function(_) {\n if (!arguments.length) return padding;\n padding = +_;\n return pack;\n };\n return d3_layout_hierarchyRebind(pack, hierarchy);\n };\n function d3_layout_packSort(a, b) {\n return a.value - b.value;\n }\n function d3_layout_packInsert(a, b) {\n var c = a._pack_next;\n a._pack_next = b;\n b._pack_prev = a;\n b._pack_next = c;\n c._pack_prev = b;\n }\n function d3_layout_packSplice(a, b) {\n a._pack_next = b;\n b._pack_prev = a;\n }\n function d3_layout_packIntersects(a, b) {\n var dx = b.x - a.x, dy = b.y - a.y, dr = a.r + b.r;\n return .999 * dr * dr > dx * dx + dy * dy;\n }\n function d3_layout_packSiblings(node) {\n if (!(nodes = node.children) || !(n = nodes.length)) return;\n var nodes, xMin = Infinity, xMax = -Infinity, yMin = Infinity, yMax = -Infinity, a, b, c, i, j, k, n;\n function bound(node) {\n xMin = Math.min(node.x - node.r, xMin);\n xMax = Math.max(node.x + node.r, xMax);\n yMin = Math.min(node.y - node.r, yMin);\n yMax = Math.max(node.y + node.r, yMax);\n }\n nodes.forEach(d3_layout_packLink);\n a = nodes[0];\n a.x = -a.r;\n a.y = 0;\n bound(a);\n if (n > 1) {\n b = nodes[1];\n b.x = b.r;\n b.y = 0;\n bound(b);\n if (n > 2) {\n c = nodes[2];\n d3_layout_packPlace(a, b, c);\n bound(c);\n d3_layout_packInsert(a, c);\n a._pack_prev = c;\n d3_layout_packInsert(c, b);\n b = a._pack_next;\n for (i = 3; i < n; i++) {\n d3_layout_packPlace(a, b, c = nodes[i]);\n var isect = 0, s1 = 1, s2 = 1;\n for (j = b._pack_next; j !== b; j = j._pack_next, s1++) {\n if (d3_layout_packIntersects(j, c)) {\n isect = 1;\n break;\n }\n }\n if (isect == 1) {\n for (k = a._pack_prev; k !== j._pack_prev; k = k._pack_prev, s2++) {\n if (d3_layout_packIntersects(k, c)) {\n break;\n }\n }\n }\n if (isect) {\n if (s1 < s2 || s1 == s2 && b.r < a.r) d3_layout_packSplice(a, b = j); else d3_layout_packSplice(a = k, b);\n i--;\n } else {\n d3_layout_packInsert(a, c);\n b = c;\n bound(c);\n }\n }\n }\n }\n var cx = (xMin + xMax) / 2, cy = (yMin + yMax) / 2, cr = 0;\n for (i = 0; i < n; i++) {\n c = nodes[i];\n c.x -= cx;\n c.y -= cy;\n cr = Math.max(cr, c.r + Math.sqrt(c.x * c.x + c.y * c.y));\n }\n node.r = cr;\n nodes.forEach(d3_layout_packUnlink);\n }\n function d3_layout_packLink(node) {\n node._pack_next = node._pack_prev = node;\n }\n function d3_layout_packUnlink(node) {\n delete node._pack_next;\n delete node._pack_prev;\n }\n function d3_layout_packTransform(node, x, y, k) {\n var children = node.children;\n node.x = x += k * node.x;\n node.y = y += k * node.y;\n node.r *= k;\n if (children) {\n var i = -1, n = children.length;\n while (++i < n) d3_layout_packTransform(children[i], x, y, k);\n }\n }\n function d3_layout_packPlace(a, b, c) {\n var db = a.r + c.r, dx = b.x - a.x, dy = b.y - a.y;\n if (db && (dx || dy)) {\n var da = b.r + c.r, dc = dx * dx + dy * dy;\n da *= da;\n db *= db;\n var x = .5 + (db - da) / (2 * dc), y = Math.sqrt(Math.max(0, 2 * da * (db + dc) - (db -= dc) * db - da * da)) / (2 * dc);\n c.x = a.x + x * dx + y * dy;\n c.y = a.y + x * dy - y * dx;\n } else {\n c.x = a.x + db;\n c.y = a.y;\n }\n }\n d3.layout.tree = function() {\n var hierarchy = d3.layout.hierarchy().sort(null).value(null), separation = d3_layout_treeSeparation, size = [ 1, 1 ], nodeSize = null;\n function tree(d, i) {\n var nodes = hierarchy.call(this, d, i), root0 = nodes[0], root1 = wrapTree(root0);\n d3_layout_hierarchyVisitAfter(root1, firstWalk), root1.parent.m = -root1.z;\n d3_layout_hierarchyVisitBefore(root1, secondWalk);\n if (nodeSize) d3_layout_hierarchyVisitBefore(root0, sizeNode); else {\n var left = root0, right = root0, bottom = root0;\n d3_layout_hierarchyVisitBefore(root0, function(node) {\n if (node.x < left.x) left = node;\n if (node.x > right.x) right = node;\n if (node.depth > bottom.depth) bottom = node;\n });\n var tx = separation(left, right) / 2 - left.x, kx = size[0] / (right.x + separation(right, left) / 2 + tx), ky = size[1] / (bottom.depth || 1);\n d3_layout_hierarchyVisitBefore(root0, function(node) {\n node.x = (node.x + tx) * kx;\n node.y = node.depth * ky;\n });\n }\n return nodes;\n }\n function wrapTree(root0) {\n var root1 = {\n A: null,\n children: [ root0 ]\n }, queue = [ root1 ], node1;\n while ((node1 = queue.pop()) != null) {\n for (var children = node1.children, child, i = 0, n = children.length; i < n; ++i) {\n queue.push((children[i] = child = {\n _: children[i],\n parent: node1,\n children: (child = children[i].children) && child.slice() || [],\n A: null,\n a: null,\n z: 0,\n m: 0,\n c: 0,\n s: 0,\n t: null,\n i: i\n }).a = child);\n }\n }\n return root1.children[0];\n }\n function firstWalk(v) {\n var children = v.children, siblings = v.parent.children, w = v.i ? siblings[v.i - 1] : null;\n if (children.length) {\n d3_layout_treeShift(v);\n var midpoint = (children[0].z + children[children.length - 1].z) / 2;\n if (w) {\n v.z = w.z + separation(v._, w._);\n v.m = v.z - midpoint;\n } else {\n v.z = midpoint;\n }\n } else if (w) {\n v.z = w.z + separation(v._, w._);\n }\n v.parent.A = apportion(v, w, v.parent.A || siblings[0]);\n }\n function secondWalk(v) {\n v._.x = v.z + v.parent.m;\n v.m += v.parent.m;\n }\n function apportion(v, w, ancestor) {\n if (w) {\n var vip = v, vop = v, vim = w, vom = vip.parent.children[0], sip = vip.m, sop = vop.m, sim = vim.m, som = vom.m, shift;\n while (vim = d3_layout_treeRight(vim), vip = d3_layout_treeLeft(vip), vim && vip) {\n vom = d3_layout_treeLeft(vom);\n vop = d3_layout_treeRight(vop);\n vop.a = v;\n shift = vim.z + sim - vip.z - sip + separation(vim._, vip._);\n if (shift > 0) {\n d3_layout_treeMove(d3_layout_treeAncestor(vim, v, ancestor), v, shift);\n sip += shift;\n sop += shift;\n }\n sim += vim.m;\n sip += vip.m;\n som += vom.m;\n sop += vop.m;\n }\n if (vim && !d3_layout_treeRight(vop)) {\n vop.t = vim;\n vop.m += sim - sop;\n }\n if (vip && !d3_layout_treeLeft(vom)) {\n vom.t = vip;\n vom.m += sip - som;\n ancestor = v;\n }\n }\n return ancestor;\n }\n function sizeNode(node) {\n node.x *= size[0];\n node.y = node.depth * size[1];\n }\n tree.separation = function(x) {\n if (!arguments.length) return separation;\n separation = x;\n return tree;\n };\n tree.size = function(x) {\n if (!arguments.length) return nodeSize ? null : size;\n nodeSize = (size = x) == null ? sizeNode : null;\n return tree;\n };\n tree.nodeSize = function(x) {\n if (!arguments.length) return nodeSize ? size : null;\n nodeSize = (size = x) == null ? null : sizeNode;\n return tree;\n };\n return d3_layout_hierarchyRebind(tree, hierarchy);\n };\n function d3_layout_treeSeparation(a, b) {\n return a.parent == b.parent ? 1 : 2;\n }\n function d3_layout_treeLeft(v) {\n var children = v.children;\n return children.length ? children[0] : v.t;\n }\n function d3_layout_treeRight(v) {\n var children = v.children, n;\n return (n = children.length) ? children[n - 1] : v.t;\n }\n function d3_layout_treeMove(wm, wp, shift) {\n var change = shift / (wp.i - wm.i);\n wp.c -= change;\n wp.s += shift;\n wm.c += change;\n wp.z += shift;\n wp.m += shift;\n }\n function d3_layout_treeShift(v) {\n var shift = 0, change = 0, children = v.children, i = children.length, w;\n while (--i >= 0) {\n w = children[i];\n w.z += shift;\n w.m += shift;\n shift += w.s + (change += w.c);\n }\n }\n function d3_layout_treeAncestor(vim, v, ancestor) {\n return vim.a.parent === v.parent ? vim.a : ancestor;\n }\n d3.layout.cluster = function() {\n var hierarchy = d3.layout.hierarchy().sort(null).value(null), separation = d3_layout_treeSeparation, size = [ 1, 1 ], nodeSize = false;\n function cluster(d, i) {\n var nodes = hierarchy.call(this, d, i), root = nodes[0], previousNode, x = 0;\n d3_layout_hierarchyVisitAfter(root, function(node) {\n var children = node.children;\n if (children && children.length) {\n node.x = d3_layout_clusterX(children);\n node.y = d3_layout_clusterY(children);\n } else {\n node.x = previousNode ? x += separation(node, previousNode) : 0;\n node.y = 0;\n previousNode = node;\n }\n });\n var left = d3_layout_clusterLeft(root), right = d3_layout_clusterRight(root), x0 = left.x - separation(left, right) / 2, x1 = right.x + separation(right, left) / 2;\n d3_layout_hierarchyVisitAfter(root, nodeSize ? function(node) {\n node.x = (node.x - root.x) * size[0];\n node.y = (root.y - node.y) * size[1];\n } : function(node) {\n node.x = (node.x - x0) / (x1 - x0) * size[0];\n node.y = (1 - (root.y ? node.y / root.y : 1)) * size[1];\n });\n return nodes;\n }\n cluster.separation = function(x) {\n if (!arguments.length) return separation;\n separation = x;\n return cluster;\n };\n cluster.size = function(x) {\n if (!arguments.length) return nodeSize ? null : size;\n nodeSize = (size = x) == null;\n return cluster;\n };\n cluster.nodeSize = function(x) {\n if (!arguments.length) return nodeSize ? size : null;\n nodeSize = (size = x) != null;\n return cluster;\n };\n return d3_layout_hierarchyRebind(cluster, hierarchy);\n };\n function d3_layout_clusterY(children) {\n return 1 + d3.max(children, function(child) {\n return child.y;\n });\n }\n function d3_layout_clusterX(children) {\n return children.reduce(function(x, child) {\n return x + child.x;\n }, 0) / children.length;\n }\n function d3_layout_clusterLeft(node) {\n var children = node.children;\n return children && children.length ? d3_layout_clusterLeft(children[0]) : node;\n }\n function d3_layout_clusterRight(node) {\n var children = node.children, n;\n return children && (n = children.length) ? d3_layout_clusterRight(children[n - 1]) : node;\n }\n d3.layout.treemap = function() {\n var hierarchy = d3.layout.hierarchy(), round = Math.round, size = [ 1, 1 ], padding = null, pad = d3_layout_treemapPadNull, sticky = false, stickies, mode = \"squarify\", ratio = .5 * (1 + Math.sqrt(5));\n function scale(children, k) {\n var i = -1, n = children.length, child, area;\n while (++i < n) {\n area = (child = children[i]).value * (k < 0 ? 0 : k);\n child.area = isNaN(area) || area <= 0 ? 0 : area;\n }\n }\n function squarify(node) {\n var children = node.children;\n if (children && children.length) {\n var rect = pad(node), row = [], remaining = children.slice(), child, best = Infinity, score, u = mode === \"slice\" ? rect.dx : mode === \"dice\" ? rect.dy : mode === \"slice-dice\" ? node.depth & 1 ? rect.dy : rect.dx : Math.min(rect.dx, rect.dy), n;\n scale(remaining, rect.dx * rect.dy / node.value);\n row.area = 0;\n while ((n = remaining.length) > 0) {\n row.push(child = remaining[n - 1]);\n row.area += child.area;\n if (mode !== \"squarify\" || (score = worst(row, u)) <= best) {\n remaining.pop();\n best = score;\n } else {\n row.area -= row.pop().area;\n position(row, u, rect, false);\n u = Math.min(rect.dx, rect.dy);\n row.length = row.area = 0;\n best = Infinity;\n }\n }\n if (row.length) {\n position(row, u, rect, true);\n row.length = row.area = 0;\n }\n children.forEach(squarify);\n }\n }\n function stickify(node) {\n var children = node.children;\n if (children && children.length) {\n var rect = pad(node), remaining = children.slice(), child, row = [];\n scale(remaining, rect.dx * rect.dy / node.value);\n row.area = 0;\n while (child = remaining.pop()) {\n row.push(child);\n row.area += child.area;\n if (child.z != null) {\n position(row, child.z ? rect.dx : rect.dy, rect, !remaining.length);\n row.length = row.area = 0;\n }\n }\n children.forEach(stickify);\n }\n }\n function worst(row, u) {\n var s = row.area, r, rmax = 0, rmin = Infinity, i = -1, n = row.length;\n while (++i < n) {\n if (!(r = row[i].area)) continue;\n if (r < rmin) rmin = r;\n if (r > rmax) rmax = r;\n }\n s *= s;\n u *= u;\n return s ? Math.max(u * rmax * ratio / s, s / (u * rmin * ratio)) : Infinity;\n }\n function position(row, u, rect, flush) {\n var i = -1, n = row.length, x = rect.x, y = rect.y, v = u ? round(row.area / u) : 0, o;\n if (u == rect.dx) {\n if (flush || v > rect.dy) v = rect.dy;\n while (++i < n) {\n o = row[i];\n o.x = x;\n o.y = y;\n o.dy = v;\n x += o.dx = Math.min(rect.x + rect.dx - x, v ? round(o.area / v) : 0);\n }\n o.z = true;\n o.dx += rect.x + rect.dx - x;\n rect.y += v;\n rect.dy -= v;\n } else {\n if (flush || v > rect.dx) v = rect.dx;\n while (++i < n) {\n o = row[i];\n o.x = x;\n o.y = y;\n o.dx = v;\n y += o.dy = Math.min(rect.y + rect.dy - y, v ? round(o.area / v) : 0);\n }\n o.z = false;\n o.dy += rect.y + rect.dy - y;\n rect.x += v;\n rect.dx -= v;\n }\n }\n function treemap(d) {\n var nodes = stickies || hierarchy(d), root = nodes[0];\n root.x = root.y = 0;\n if (root.value) root.dx = size[0], root.dy = size[1]; else root.dx = root.dy = 0;\n if (stickies) hierarchy.revalue(root);\n scale([ root ], root.dx * root.dy / root.value);\n (stickies ? stickify : squarify)(root);\n if (sticky) stickies = nodes;\n return nodes;\n }\n treemap.size = function(x) {\n if (!arguments.length) return size;\n size = x;\n return treemap;\n };\n treemap.padding = function(x) {\n if (!arguments.length) return padding;\n function padFunction(node) {\n var p = x.call(treemap, node, node.depth);\n return p == null ? d3_layout_treemapPadNull(node) : d3_layout_treemapPad(node, typeof p === \"number\" ? [ p, p, p, p ] : p);\n }\n function padConstant(node) {\n return d3_layout_treemapPad(node, x);\n }\n var type;\n pad = (padding = x) == null ? d3_layout_treemapPadNull : (type = typeof x) === \"function\" ? padFunction : type === \"number\" ? (x = [ x, x, x, x ], \n padConstant) : padConstant;\n return treemap;\n };\n treemap.round = function(x) {\n if (!arguments.length) return round != Number;\n round = x ? Math.round : Number;\n return treemap;\n };\n treemap.sticky = function(x) {\n if (!arguments.length) return sticky;\n sticky = x;\n stickies = null;\n return treemap;\n };\n treemap.ratio = function(x) {\n if (!arguments.length) return ratio;\n ratio = x;\n return treemap;\n };\n treemap.mode = function(x) {\n if (!arguments.length) return mode;\n mode = x + \"\";\n return treemap;\n };\n return d3_layout_hierarchyRebind(treemap, hierarchy);\n };\n function d3_layout_treemapPadNull(node) {\n return {\n x: node.x,\n y: node.y,\n dx: node.dx,\n dy: node.dy\n };\n }\n function d3_layout_treemapPad(node, padding) {\n var x = node.x + padding[3], y = node.y + padding[0], dx = node.dx - padding[1] - padding[3], dy = node.dy - padding[0] - padding[2];\n if (dx < 0) {\n x += dx / 2;\n dx = 0;\n }\n if (dy < 0) {\n y += dy / 2;\n dy = 0;\n }\n return {\n x: x,\n y: y,\n dx: dx,\n dy: dy\n };\n }\n d3.random = {\n normal: function(µ, σ) {\n var n = arguments.length;\n if (n < 2) σ = 1;\n if (n < 1) µ = 0;\n return function() {\n var x, y, r;\n do {\n x = Math.random() * 2 - 1;\n y = Math.random() * 2 - 1;\n r = x * x + y * y;\n } while (!r || r > 1);\n return µ + σ * x * Math.sqrt(-2 * Math.log(r) / r);\n };\n },\n logNormal: function() {\n var random = d3.random.normal.apply(d3, arguments);\n return function() {\n return Math.exp(random());\n };\n },\n bates: function(m) {\n var random = d3.random.irwinHall(m);\n return function() {\n return random() / m;\n };\n },\n irwinHall: function(m) {\n return function() {\n for (var s = 0, j = 0; j < m; j++) s += Math.random();\n return s;\n };\n }\n };\n d3.scale = {};\n function d3_scaleExtent(domain) {\n var start = domain[0], stop = domain[domain.length - 1];\n return start < stop ? [ start, stop ] : [ stop, start ];\n }\n function d3_scaleRange(scale) {\n return scale.rangeExtent ? scale.rangeExtent() : d3_scaleExtent(scale.range());\n }\n function d3_scale_bilinear(domain, range, uninterpolate, interpolate) {\n var u = uninterpolate(domain[0], domain[1]), i = interpolate(range[0], range[1]);\n return function(x) {\n return i(u(x));\n };\n }\n function d3_scale_nice(domain, nice) {\n var i0 = 0, i1 = domain.length - 1, x0 = domain[i0], x1 = domain[i1], dx;\n if (x1 < x0) {\n dx = i0, i0 = i1, i1 = dx;\n dx = x0, x0 = x1, x1 = dx;\n }\n domain[i0] = nice.floor(x0);\n domain[i1] = nice.ceil(x1);\n return domain;\n }\n function d3_scale_niceStep(step) {\n return step ? {\n floor: function(x) {\n return Math.floor(x / step) * step;\n },\n ceil: function(x) {\n return Math.ceil(x / step) * step;\n }\n } : d3_scale_niceIdentity;\n }\n var d3_scale_niceIdentity = {\n floor: d3_identity,\n ceil: d3_identity\n };\n function d3_scale_polylinear(domain, range, uninterpolate, interpolate) {\n var u = [], i = [], j = 0, k = Math.min(domain.length, range.length) - 1;\n if (domain[k] < domain[0]) {\n domain = domain.slice().reverse();\n range = range.slice().reverse();\n }\n while (++j <= k) {\n u.push(uninterpolate(domain[j - 1], domain[j]));\n i.push(interpolate(range[j - 1], range[j]));\n }\n return function(x) {\n var j = d3.bisect(domain, x, 1, k) - 1;\n return i[j](u[j](x));\n };\n }\n d3.scale.linear = function() {\n return d3_scale_linear([ 0, 1 ], [ 0, 1 ], d3_interpolate, false);\n };\n function d3_scale_linear(domain, range, interpolate, clamp) {\n var output, input;\n function rescale() {\n var linear = Math.min(domain.length, range.length) > 2 ? d3_scale_polylinear : d3_scale_bilinear, uninterpolate = clamp ? d3_uninterpolateClamp : d3_uninterpolateNumber;\n output = linear(domain, range, uninterpolate, interpolate);\n input = linear(range, domain, uninterpolate, d3_interpolate);\n return scale;\n }\n function scale(x) {\n return output(x);\n }\n scale.invert = function(y) {\n return input(y);\n };\n scale.domain = function(x) {\n if (!arguments.length) return domain;\n domain = x.map(Number);\n return rescale();\n };\n scale.range = function(x) {\n if (!arguments.length) return range;\n range = x;\n return rescale();\n };\n scale.rangeRound = function(x) {\n return scale.range(x).interpolate(d3_interpolateRound);\n };\n scale.clamp = function(x) {\n if (!arguments.length) return clamp;\n clamp = x;\n return rescale();\n };\n scale.interpolate = function(x) {\n if (!arguments.length) return interpolate;\n interpolate = x;\n return rescale();\n };\n scale.ticks = function(m) {\n return d3_scale_linearTicks(domain, m);\n };\n scale.tickFormat = function(m, format) {\n return d3_scale_linearTickFormat(domain, m, format);\n };\n scale.nice = function(m) {\n d3_scale_linearNice(domain, m);\n return rescale();\n };\n scale.copy = function() {\n return d3_scale_linear(domain, range, interpolate, clamp);\n };\n return rescale();\n }\n function d3_scale_linearRebind(scale, linear) {\n return d3.rebind(scale, linear, \"range\", \"rangeRound\", \"interpolate\", \"clamp\");\n }\n function d3_scale_linearNice(domain, m) {\n d3_scale_nice(domain, d3_scale_niceStep(d3_scale_linearTickRange(domain, m)[2]));\n d3_scale_nice(domain, d3_scale_niceStep(d3_scale_linearTickRange(domain, m)[2]));\n return domain;\n }\n function d3_scale_linearTickRange(domain, m) {\n if (m == null) m = 10;\n var extent = d3_scaleExtent(domain), span = extent[1] - extent[0], step = Math.pow(10, Math.floor(Math.log(span / m) / Math.LN10)), err = m / span * step;\n if (err <= .15) step *= 10; else if (err <= .35) step *= 5; else if (err <= .75) step *= 2;\n extent[0] = Math.ceil(extent[0] / step) * step;\n extent[1] = Math.floor(extent[1] / step) * step + step * .5;\n extent[2] = step;\n return extent;\n }\n function d3_scale_linearTicks(domain, m) {\n return d3.range.apply(d3, d3_scale_linearTickRange(domain, m));\n }\n var d3_scale_linearFormatSignificant = {\n s: 1,\n g: 1,\n p: 1,\n r: 1,\n e: 1\n };\n function d3_scale_linearPrecision(value) {\n return -Math.floor(Math.log(value) / Math.LN10 + .01);\n }\n function d3_scale_linearFormatPrecision(type, range) {\n var p = d3_scale_linearPrecision(range[2]);\n return type in d3_scale_linearFormatSignificant ? Math.abs(p - d3_scale_linearPrecision(Math.max(abs(range[0]), abs(range[1])))) + +(type !== \"e\") : p - (type === \"%\") * 2;\n }\n d3.scale.log = function() {\n return d3_scale_log(d3.scale.linear().domain([ 0, 1 ]), 10, true, [ 1, 10 ]);\n };\n function d3_scale_log(linear, base, positive, domain) {\n function log(x) {\n return (positive ? Math.log(x < 0 ? 0 : x) : -Math.log(x > 0 ? 0 : -x)) / Math.log(base);\n }\n function pow(x) {\n return positive ? Math.pow(base, x) : -Math.pow(base, -x);\n }\n function scale(x) {\n return linear(log(x));\n }\n scale.invert = function(x) {\n return pow(linear.invert(x));\n };\n scale.domain = function(x) {\n if (!arguments.length) return domain;\n positive = x[0] >= 0;\n linear.domain((domain = x.map(Number)).map(log));\n return scale;\n };\n scale.base = function(_) {\n if (!arguments.length) return base;\n base = +_;\n linear.domain(domain.map(log));\n return scale;\n };\n scale.nice = function() {\n var niced = d3_scale_nice(domain.map(log), positive ? Math : d3_scale_logNiceNegative);\n linear.domain(niced);\n domain = niced.map(pow);\n return scale;\n };\n scale.ticks = function() {\n var extent = d3_scaleExtent(domain), ticks = [], u = extent[0], v = extent[1], i = Math.floor(log(u)), j = Math.ceil(log(v)), n = base % 1 ? 2 : base;\n if (isFinite(j - i)) {\n if (positive) {\n for (;i < j; i++) for (var k = 1; k < n; k++) ticks.push(pow(i) * k);\n ticks.push(pow(i));\n } else {\n ticks.push(pow(i));\n for (;i++ < j; ) for (var k = n - 1; k > 0; k--) ticks.push(pow(i) * k);\n }\n for (i = 0; ticks[i] < u; i++) {}\n for (j = ticks.length; ticks[j - 1] > v; j--) {}\n ticks = ticks.slice(i, j);\n }\n return ticks;\n };\n scale.copy = function() {\n return d3_scale_log(linear.copy(), base, positive, domain);\n };\n return d3_scale_linearRebind(scale, linear);\n }\n var d3_scale_logNiceNegative = {\n floor: function(x) {\n return -Math.ceil(-x);\n },\n ceil: function(x) {\n return -Math.floor(-x);\n }\n };\n d3.scale.pow = function() {\n return d3_scale_pow(d3.scale.linear(), 1, [ 0, 1 ]);\n };\n function d3_scale_pow(linear, exponent, domain) {\n var powp = d3_scale_powPow(exponent), powb = d3_scale_powPow(1 / exponent);\n function scale(x) {\n return linear(powp(x));\n }\n scale.invert = function(x) {\n return powb(linear.invert(x));\n };\n scale.domain = function(x) {\n if (!arguments.length) return domain;\n linear.domain((domain = x.map(Number)).map(powp));\n return scale;\n };\n scale.ticks = function(m) {\n return d3_scale_linearTicks(domain, m);\n };\n scale.tickFormat = function(m, format) {\n return d3_scale_linearTickFormat(domain, m, format);\n };\n scale.nice = function(m) {\n return scale.domain(d3_scale_linearNice(domain, m));\n };\n scale.exponent = function(x) {\n if (!arguments.length) return exponent;\n powp = d3_scale_powPow(exponent = x);\n powb = d3_scale_powPow(1 / exponent);\n linear.domain(domain.map(powp));\n return scale;\n };\n scale.copy = function() {\n return d3_scale_pow(linear.copy(), exponent, domain);\n };\n return d3_scale_linearRebind(scale, linear);\n }\n function d3_scale_powPow(e) {\n return function(x) {\n return x < 0 ? -Math.pow(-x, e) : Math.pow(x, e);\n };\n }\n d3.scale.sqrt = function() {\n return d3.scale.pow().exponent(.5);\n };\n d3.scale.ordinal = function() {\n return d3_scale_ordinal([], {\n t: \"range\",\n a: [ [] ]\n });\n };\n function d3_scale_ordinal(domain, ranger) {\n var index, range, rangeBand;\n function scale(x) {\n return range[((index.get(x) || (ranger.t === \"range\" ? index.set(x, domain.push(x)) : NaN)) - 1) % range.length];\n }\n function steps(start, step) {\n return d3.range(domain.length).map(function(i) {\n return start + step * i;\n });\n }\n scale.domain = function(x) {\n if (!arguments.length) return domain;\n domain = [];\n index = new d3_Map();\n var i = -1, n = x.length, xi;\n while (++i < n) if (!index.has(xi = x[i])) index.set(xi, domain.push(xi));\n return scale[ranger.t].apply(scale, ranger.a);\n };\n scale.range = function(x) {\n if (!arguments.length) return range;\n range = x;\n rangeBand = 0;\n ranger = {\n t: \"range\",\n a: arguments\n };\n return scale;\n };\n scale.rangePoints = function(x, padding) {\n if (arguments.length < 2) padding = 0;\n var start = x[0], stop = x[1], step = domain.length < 2 ? (start = (start + stop) / 2, \n 0) : (stop - start) / (domain.length - 1 + padding);\n range = steps(start + step * padding / 2, step);\n rangeBand = 0;\n ranger = {\n t: \"rangePoints\",\n a: arguments\n };\n return scale;\n };\n scale.rangeRoundPoints = function(x, padding) {\n if (arguments.length < 2) padding = 0;\n var start = x[0], stop = x[1], step = domain.length < 2 ? (start = stop = Math.round((start + stop) / 2), \n 0) : (stop - start) / (domain.length - 1 + padding) | 0;\n range = steps(start + Math.round(step * padding / 2 + (stop - start - (domain.length - 1 + padding) * step) / 2), step);\n rangeBand = 0;\n ranger = {\n t: \"rangeRoundPoints\",\n a: arguments\n };\n return scale;\n };\n scale.rangeBands = function(x, padding, outerPadding) {\n if (arguments.length < 2) padding = 0;\n if (arguments.length < 3) outerPadding = padding;\n var reverse = x[1] < x[0], start = x[reverse - 0], stop = x[1 - reverse], step = (stop - start) / (domain.length - padding + 2 * outerPadding);\n range = steps(start + step * outerPadding, step);\n if (reverse) range.reverse();\n rangeBand = step * (1 - padding);\n ranger = {\n t: \"rangeBands\",\n a: arguments\n };\n return scale;\n };\n scale.rangeRoundBands = function(x, padding, outerPadding) {\n if (arguments.length < 2) padding = 0;\n if (arguments.length < 3) outerPadding = padding;\n var reverse = x[1] < x[0], start = x[reverse - 0], stop = x[1 - reverse], step = Math.floor((stop - start) / (domain.length - padding + 2 * outerPadding));\n range = steps(start + Math.round((stop - start - (domain.length - padding) * step) / 2), step);\n if (reverse) range.reverse();\n rangeBand = Math.round(step * (1 - padding));\n ranger = {\n t: \"rangeRoundBands\",\n a: arguments\n };\n return scale;\n };\n scale.rangeBand = function() {\n return rangeBand;\n };\n scale.rangeExtent = function() {\n return d3_scaleExtent(ranger.a[0]);\n };\n scale.copy = function() {\n return d3_scale_ordinal(domain, ranger);\n };\n return scale.domain(domain);\n }\n d3.scale.category10 = function() {\n return d3.scale.ordinal().range(d3_category10);\n };\n d3.scale.category20 = function() {\n return d3.scale.ordinal().range(d3_category20);\n };\n d3.scale.category20b = function() {\n return d3.scale.ordinal().range(d3_category20b);\n };\n d3.scale.category20c = function() {\n return d3.scale.ordinal().range(d3_category20c);\n };\n var d3_category10 = [ 2062260, 16744206, 2924588, 14034728, 9725885, 9197131, 14907330, 8355711, 12369186, 1556175 ].map(d3_rgbString);\n var d3_category20 = [ 2062260, 11454440, 16744206, 16759672, 2924588, 10018698, 14034728, 16750742, 9725885, 12955861, 9197131, 12885140, 14907330, 16234194, 8355711, 13092807, 12369186, 14408589, 1556175, 10410725 ].map(d3_rgbString);\n var d3_category20b = [ 3750777, 5395619, 7040719, 10264286, 6519097, 9216594, 11915115, 13556636, 9202993, 12426809, 15186514, 15190932, 8666169, 11356490, 14049643, 15177372, 8077683, 10834324, 13528509, 14589654 ].map(d3_rgbString);\n var d3_category20c = [ 3244733, 7057110, 10406625, 13032431, 15095053, 16616764, 16625259, 16634018, 3253076, 7652470, 10607003, 13101504, 7695281, 10394312, 12369372, 14342891, 6513507, 9868950, 12434877, 14277081 ].map(d3_rgbString);\n d3.scale.quantile = function() {\n return d3_scale_quantile([], []);\n };\n function d3_scale_quantile(domain, range) {\n var thresholds;\n function rescale() {\n var k = 0, q = range.length;\n thresholds = [];\n while (++k < q) thresholds[k - 1] = d3.quantile(domain, k / q);\n return scale;\n }\n function scale(x) {\n if (!isNaN(x = +x)) return range[d3.bisect(thresholds, x)];\n }\n scale.domain = function(x) {\n if (!arguments.length) return domain;\n domain = x.map(d3_number).filter(d3_numeric).sort(d3_ascending);\n return rescale();\n };\n scale.range = function(x) {\n if (!arguments.length) return range;\n range = x;\n return rescale();\n };\n scale.quantiles = function() {\n return thresholds;\n };\n scale.invertExtent = function(y) {\n y = range.indexOf(y);\n return y < 0 ? [ NaN, NaN ] : [ y > 0 ? thresholds[y - 1] : domain[0], y < thresholds.length ? thresholds[y] : domain[domain.length - 1] ];\n };\n scale.copy = function() {\n return d3_scale_quantile(domain, range);\n };\n return rescale();\n }\n d3.scale.quantize = function() {\n return d3_scale_quantize(0, 1, [ 0, 1 ]);\n };\n function d3_scale_quantize(x0, x1, range) {\n var kx, i;\n function scale(x) {\n return range[Math.max(0, Math.min(i, Math.floor(kx * (x - x0))))];\n }\n function rescale() {\n kx = range.length / (x1 - x0);\n i = range.length - 1;\n return scale;\n }\n scale.domain = function(x) {\n if (!arguments.length) return [ x0, x1 ];\n x0 = +x[0];\n x1 = +x[x.length - 1];\n return rescale();\n };\n scale.range = function(x) {\n if (!arguments.length) return range;\n range = x;\n return rescale();\n };\n scale.invertExtent = function(y) {\n y = range.indexOf(y);\n y = y < 0 ? NaN : y / kx + x0;\n return [ y, y + 1 / kx ];\n };\n scale.copy = function() {\n return d3_scale_quantize(x0, x1, range);\n };\n return rescale();\n }\n d3.scale.threshold = function() {\n return d3_scale_threshold([ .5 ], [ 0, 1 ]);\n };\n function d3_scale_threshold(domain, range) {\n function scale(x) {\n if (x <= x) return range[d3.bisect(domain, x)];\n }\n scale.domain = function(_) {\n if (!arguments.length) return domain;\n domain = _;\n return scale;\n };\n scale.range = function(_) {\n if (!arguments.length) return range;\n range = _;\n return scale;\n };\n scale.invertExtent = function(y) {\n y = range.indexOf(y);\n return [ domain[y - 1], domain[y] ];\n };\n scale.copy = function() {\n return d3_scale_threshold(domain, range);\n };\n return scale;\n }\n d3.scale.identity = function() {\n return d3_scale_identity([ 0, 1 ]);\n };\n function d3_scale_identity(domain) {\n function identity(x) {\n return +x;\n }\n identity.invert = identity;\n identity.domain = identity.range = function(x) {\n if (!arguments.length) return domain;\n domain = x.map(identity);\n return identity;\n };\n identity.ticks = function(m) {\n return d3_scale_linearTicks(domain, m);\n };\n identity.tickFormat = function(m, format) {\n return d3_scale_linearTickFormat(domain, m, format);\n };\n identity.copy = function() {\n return d3_scale_identity(domain);\n };\n return identity;\n }\n d3.svg = {};\n function d3_zero() {\n return 0;\n }\n d3.svg.arc = function() {\n var innerRadius = d3_svg_arcInnerRadius, outerRadius = d3_svg_arcOuterRadius, cornerRadius = d3_zero, padRadius = d3_svg_arcAuto, startAngle = d3_svg_arcStartAngle, endAngle = d3_svg_arcEndAngle, padAngle = d3_svg_arcPadAngle;\n function arc() {\n var r0 = Math.max(0, +innerRadius.apply(this, arguments)), r1 = Math.max(0, +outerRadius.apply(this, arguments)), a0 = startAngle.apply(this, arguments) - halfπ, a1 = endAngle.apply(this, arguments) - halfπ, da = Math.abs(a1 - a0), cw = a0 > a1 ? 0 : 1;\n if (r1 < r0) rc = r1, r1 = r0, r0 = rc;\n if (da >= τε) return circleSegment(r1, cw) + (r0 ? circleSegment(r0, 1 - cw) : \"\") + \"Z\";\n var rc, cr, rp, ap, p0 = 0, p1 = 0, x0, y0, x1, y1, x2, y2, x3, y3, path = [];\n if (ap = (+padAngle.apply(this, arguments) || 0) / 2) {\n rp = padRadius === d3_svg_arcAuto ? Math.sqrt(r0 * r0 + r1 * r1) : +padRadius.apply(this, arguments);\n if (!cw) p1 *= -1;\n if (r1) p1 = d3_asin(rp / r1 * Math.sin(ap));\n if (r0) p0 = d3_asin(rp / r0 * Math.sin(ap));\n }\n if (r1) {\n x0 = r1 * Math.cos(a0 + p1);\n y0 = r1 * Math.sin(a0 + p1);\n x1 = r1 * Math.cos(a1 - p1);\n y1 = r1 * Math.sin(a1 - p1);\n var l1 = Math.abs(a1 - a0 - 2 * p1) <= π ? 0 : 1;\n if (p1 && d3_svg_arcSweep(x0, y0, x1, y1) === cw ^ l1) {\n var h1 = (a0 + a1) / 2;\n x0 = r1 * Math.cos(h1);\n y0 = r1 * Math.sin(h1);\n x1 = y1 = null;\n }\n } else {\n x0 = y0 = 0;\n }\n if (r0) {\n x2 = r0 * Math.cos(a1 - p0);\n y2 = r0 * Math.sin(a1 - p0);\n x3 = r0 * Math.cos(a0 + p0);\n y3 = r0 * Math.sin(a0 + p0);\n var l0 = Math.abs(a0 - a1 + 2 * p0) <= π ? 0 : 1;\n if (p0 && d3_svg_arcSweep(x2, y2, x3, y3) === 1 - cw ^ l0) {\n var h0 = (a0 + a1) / 2;\n x2 = r0 * Math.cos(h0);\n y2 = r0 * Math.sin(h0);\n x3 = y3 = null;\n }\n } else {\n x2 = y2 = 0;\n }\n if (da > ε && (rc = Math.min(Math.abs(r1 - r0) / 2, +cornerRadius.apply(this, arguments))) > .001) {\n cr = r0 < r1 ^ cw ? 0 : 1;\n var rc1 = rc, rc0 = rc;\n if (da < π) {\n var oc = x3 == null ? [ x2, y2 ] : x1 == null ? [ x0, y0 ] : d3_geom_polygonIntersect([ x0, y0 ], [ x3, y3 ], [ x1, y1 ], [ x2, y2 ]), ax = x0 - oc[0], ay = y0 - oc[1], bx = x1 - oc[0], by = y1 - oc[1], kc = 1 / Math.sin(Math.acos((ax * bx + ay * by) / (Math.sqrt(ax * ax + ay * ay) * Math.sqrt(bx * bx + by * by))) / 2), lc = Math.sqrt(oc[0] * oc[0] + oc[1] * oc[1]);\n rc0 = Math.min(rc, (r0 - lc) / (kc - 1));\n rc1 = Math.min(rc, (r1 - lc) / (kc + 1));\n }\n if (x1 != null) {\n var t30 = d3_svg_arcCornerTangents(x3 == null ? [ x2, y2 ] : [ x3, y3 ], [ x0, y0 ], r1, rc1, cw), t12 = d3_svg_arcCornerTangents([ x1, y1 ], [ x2, y2 ], r1, rc1, cw);\n if (rc === rc1) {\n path.push(\"M\", t30[0], \"A\", rc1, \",\", rc1, \" 0 0,\", cr, \" \", t30[1], \"A\", r1, \",\", r1, \" 0 \", 1 - cw ^ d3_svg_arcSweep(t30[1][0], t30[1][1], t12[1][0], t12[1][1]), \",\", cw, \" \", t12[1], \"A\", rc1, \",\", rc1, \" 0 0,\", cr, \" \", t12[0]);\n } else {\n path.push(\"M\", t30[0], \"A\", rc1, \",\", rc1, \" 0 1,\", cr, \" \", t12[0]);\n }\n } else {\n path.push(\"M\", x0, \",\", y0);\n }\n if (x3 != null) {\n var t03 = d3_svg_arcCornerTangents([ x0, y0 ], [ x3, y3 ], r0, -rc0, cw), t21 = d3_svg_arcCornerTangents([ x2, y2 ], x1 == null ? [ x0, y0 ] : [ x1, y1 ], r0, -rc0, cw);\n if (rc === rc0) {\n path.push(\"L\", t21[0], \"A\", rc0, \",\", rc0, \" 0 0,\", cr, \" \", t21[1], \"A\", r0, \",\", r0, \" 0 \", cw ^ d3_svg_arcSweep(t21[1][0], t21[1][1], t03[1][0], t03[1][1]), \",\", 1 - cw, \" \", t03[1], \"A\", rc0, \",\", rc0, \" 0 0,\", cr, \" \", t03[0]);\n } else {\n path.push(\"L\", t21[0], \"A\", rc0, \",\", rc0, \" 0 0,\", cr, \" \", t03[0]);\n }\n } else {\n path.push(\"L\", x2, \",\", y2);\n }\n } else {\n path.push(\"M\", x0, \",\", y0);\n if (x1 != null) path.push(\"A\", r1, \",\", r1, \" 0 \", l1, \",\", cw, \" \", x1, \",\", y1);\n path.push(\"L\", x2, \",\", y2);\n if (x3 != null) path.push(\"A\", r0, \",\", r0, \" 0 \", l0, \",\", 1 - cw, \" \", x3, \",\", y3);\n }\n path.push(\"Z\");\n return path.join(\"\");\n }\n function circleSegment(r1, cw) {\n return \"M0,\" + r1 + \"A\" + r1 + \",\" + r1 + \" 0 1,\" + cw + \" 0,\" + -r1 + \"A\" + r1 + \",\" + r1 + \" 0 1,\" + cw + \" 0,\" + r1;\n }\n arc.innerRadius = function(v) {\n if (!arguments.length) return innerRadius;\n innerRadius = d3_functor(v);\n return arc;\n };\n arc.outerRadius = function(v) {\n if (!arguments.length) return outerRadius;\n outerRadius = d3_functor(v);\n return arc;\n };\n arc.cornerRadius = function(v) {\n if (!arguments.length) return cornerRadius;\n cornerRadius = d3_functor(v);\n return arc;\n };\n arc.padRadius = function(v) {\n if (!arguments.length) return padRadius;\n padRadius = v == d3_svg_arcAuto ? d3_svg_arcAuto : d3_functor(v);\n return arc;\n };\n arc.startAngle = function(v) {\n if (!arguments.length) return startAngle;\n startAngle = d3_functor(v);\n return arc;\n };\n arc.endAngle = function(v) {\n if (!arguments.length) return endAngle;\n endAngle = d3_functor(v);\n return arc;\n };\n arc.padAngle = function(v) {\n if (!arguments.length) return padAngle;\n padAngle = d3_functor(v);\n return arc;\n };\n arc.centroid = function() {\n var r = (+innerRadius.apply(this, arguments) + +outerRadius.apply(this, arguments)) / 2, a = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - halfπ;\n return [ Math.cos(a) * r, Math.sin(a) * r ];\n };\n return arc;\n };\n var d3_svg_arcAuto = \"auto\";\n function d3_svg_arcInnerRadius(d) {\n return d.innerRadius;\n }\n function d3_svg_arcOuterRadius(d) {\n return d.outerRadius;\n }\n function d3_svg_arcStartAngle(d) {\n return d.startAngle;\n }\n function d3_svg_arcEndAngle(d) {\n return d.endAngle;\n }\n function d3_svg_arcPadAngle(d) {\n return d && d.padAngle;\n }\n function d3_svg_arcSweep(x0, y0, x1, y1) {\n return (x0 - x1) * y0 - (y0 - y1) * x0 > 0 ? 0 : 1;\n }\n function d3_svg_arcCornerTangents(p0, p1, r1, rc, cw) {\n var x01 = p0[0] - p1[0], y01 = p0[1] - p1[1], lo = (cw ? rc : -rc) / Math.sqrt(x01 * x01 + y01 * y01), ox = lo * y01, oy = -lo * x01, x1 = p0[0] + ox, y1 = p0[1] + oy, x2 = p1[0] + ox, y2 = p1[1] + oy, x3 = (x1 + x2) / 2, y3 = (y1 + y2) / 2, dx = x2 - x1, dy = y2 - y1, d2 = dx * dx + dy * dy, r = r1 - rc, D = x1 * y2 - x2 * y1, d = (dy < 0 ? -1 : 1) * Math.sqrt(Math.max(0, r * r * d2 - D * D)), cx0 = (D * dy - dx * d) / d2, cy0 = (-D * dx - dy * d) / d2, cx1 = (D * dy + dx * d) / d2, cy1 = (-D * dx + dy * d) / d2, dx0 = cx0 - x3, dy0 = cy0 - y3, dx1 = cx1 - x3, dy1 = cy1 - y3;\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n return [ [ cx0 - ox, cy0 - oy ], [ cx0 * r1 / r, cy0 * r1 / r ] ];\n }\n function d3_true() {\n return true;\n }\n function d3_svg_line(projection) {\n var x = d3_geom_pointX, y = d3_geom_pointY, defined = d3_true, interpolate = d3_svg_lineLinear, interpolateKey = interpolate.key, tension = .7;\n function line(data) {\n var segments = [], points = [], i = -1, n = data.length, d, fx = d3_functor(x), fy = d3_functor(y);\n function segment() {\n segments.push(\"M\", interpolate(projection(points), tension));\n }\n while (++i < n) {\n if (defined.call(this, d = data[i], i)) {\n points.push([ +fx.call(this, d, i), +fy.call(this, d, i) ]);\n } else if (points.length) {\n segment();\n points = [];\n }\n }\n if (points.length) segment();\n return segments.length ? segments.join(\"\") : null;\n }\n line.x = function(_) {\n if (!arguments.length) return x;\n x = _;\n return line;\n };\n line.y = function(_) {\n if (!arguments.length) return y;\n y = _;\n return line;\n };\n line.defined = function(_) {\n if (!arguments.length) return defined;\n defined = _;\n return line;\n };\n line.interpolate = function(_) {\n if (!arguments.length) return interpolateKey;\n if (typeof _ === \"function\") interpolateKey = interpolate = _; else interpolateKey = (interpolate = d3_svg_lineInterpolators.get(_) || d3_svg_lineLinear).key;\n return line;\n };\n line.tension = function(_) {\n if (!arguments.length) return tension;\n tension = _;\n return line;\n };\n return line;\n }\n d3.svg.line = function() {\n return d3_svg_line(d3_identity);\n };\n var d3_svg_lineInterpolators = d3.map({\n linear: d3_svg_lineLinear,\n \"linear-closed\": d3_svg_lineLinearClosed,\n step: d3_svg_lineStep,\n \"step-before\": d3_svg_lineStepBefore,\n \"step-after\": d3_svg_lineStepAfter,\n basis: d3_svg_lineBasis,\n \"basis-open\": d3_svg_lineBasisOpen,\n \"basis-closed\": d3_svg_lineBasisClosed,\n bundle: d3_svg_lineBundle,\n cardinal: d3_svg_lineCardinal,\n \"cardinal-open\": d3_svg_lineCardinalOpen,\n \"cardinal-closed\": d3_svg_lineCardinalClosed,\n monotone: d3_svg_lineMonotone\n });\n d3_svg_lineInterpolators.forEach(function(key, value) {\n value.key = key;\n value.closed = /-closed$/.test(key);\n });\n function d3_svg_lineLinear(points) {\n return points.length > 1 ? points.join(\"L\") : points + \"Z\";\n }\n function d3_svg_lineLinearClosed(points) {\n return points.join(\"L\") + \"Z\";\n }\n function d3_svg_lineStep(points) {\n var i = 0, n = points.length, p = points[0], path = [ p[0], \",\", p[1] ];\n while (++i < n) path.push(\"H\", (p[0] + (p = points[i])[0]) / 2, \"V\", p[1]);\n if (n > 1) path.push(\"H\", p[0]);\n return path.join(\"\");\n }\n function d3_svg_lineStepBefore(points) {\n var i = 0, n = points.length, p = points[0], path = [ p[0], \",\", p[1] ];\n while (++i < n) path.push(\"V\", (p = points[i])[1], \"H\", p[0]);\n return path.join(\"\");\n }\n function d3_svg_lineStepAfter(points) {\n var i = 0, n = points.length, p = points[0], path = [ p[0], \",\", p[1] ];\n while (++i < n) path.push(\"H\", (p = points[i])[0], \"V\", p[1]);\n return path.join(\"\");\n }\n function d3_svg_lineCardinalOpen(points, tension) {\n return points.length < 4 ? d3_svg_lineLinear(points) : points[1] + d3_svg_lineHermite(points.slice(1, -1), d3_svg_lineCardinalTangents(points, tension));\n }\n function d3_svg_lineCardinalClosed(points, tension) {\n return points.length < 3 ? d3_svg_lineLinearClosed(points) : points[0] + d3_svg_lineHermite((points.push(points[0]), \n points), d3_svg_lineCardinalTangents([ points[points.length - 2] ].concat(points, [ points[1] ]), tension));\n }\n function d3_svg_lineCardinal(points, tension) {\n return points.length < 3 ? d3_svg_lineLinear(points) : points[0] + d3_svg_lineHermite(points, d3_svg_lineCardinalTangents(points, tension));\n }\n function d3_svg_lineHermite(points, tangents) {\n if (tangents.length < 1 || points.length != tangents.length && points.length != tangents.length + 2) {\n return d3_svg_lineLinear(points);\n }\n var quad = points.length != tangents.length, path = \"\", p0 = points[0], p = points[1], t0 = tangents[0], t = t0, pi = 1;\n if (quad) {\n path += \"Q\" + (p[0] - t0[0] * 2 / 3) + \",\" + (p[1] - t0[1] * 2 / 3) + \",\" + p[0] + \",\" + p[1];\n p0 = points[1];\n pi = 2;\n }\n if (tangents.length > 1) {\n t = tangents[1];\n p = points[pi];\n pi++;\n path += \"C\" + (p0[0] + t0[0]) + \",\" + (p0[1] + t0[1]) + \",\" + (p[0] - t[0]) + \",\" + (p[1] - t[1]) + \",\" + p[0] + \",\" + p[1];\n for (var i = 2; i < tangents.length; i++, pi++) {\n p = points[pi];\n t = tangents[i];\n path += \"S\" + (p[0] - t[0]) + \",\" + (p[1] - t[1]) + \",\" + p[0] + \",\" + p[1];\n }\n }\n if (quad) {\n var lp = points[pi];\n path += \"Q\" + (p[0] + t[0] * 2 / 3) + \",\" + (p[1] + t[1] * 2 / 3) + \",\" + lp[0] + \",\" + lp[1];\n }\n return path;\n }\n function d3_svg_lineCardinalTangents(points, tension) {\n var tangents = [], a = (1 - tension) / 2, p0, p1 = points[0], p2 = points[1], i = 1, n = points.length;\n while (++i < n) {\n p0 = p1;\n p1 = p2;\n p2 = points[i];\n tangents.push([ a * (p2[0] - p0[0]), a * (p2[1] - p0[1]) ]);\n }\n return tangents;\n }\n function d3_svg_lineBasis(points) {\n if (points.length < 3) return d3_svg_lineLinear(points);\n var i = 1, n = points.length, pi = points[0], x0 = pi[0], y0 = pi[1], px = [ x0, x0, x0, (pi = points[1])[0] ], py = [ y0, y0, y0, pi[1] ], path = [ x0, \",\", y0, \"L\", d3_svg_lineDot4(d3_svg_lineBasisBezier3, px), \",\", d3_svg_lineDot4(d3_svg_lineBasisBezier3, py) ];\n points.push(points[n - 1]);\n while (++i <= n) {\n pi = points[i];\n px.shift();\n px.push(pi[0]);\n py.shift();\n py.push(pi[1]);\n d3_svg_lineBasisBezier(path, px, py);\n }\n points.pop();\n path.push(\"L\", pi);\n return path.join(\"\");\n }\n function d3_svg_lineBasisOpen(points) {\n if (points.length < 4) return d3_svg_lineLinear(points);\n var path = [], i = -1, n = points.length, pi, px = [ 0 ], py = [ 0 ];\n while (++i < 3) {\n pi = points[i];\n px.push(pi[0]);\n py.push(pi[1]);\n }\n path.push(d3_svg_lineDot4(d3_svg_lineBasisBezier3, px) + \",\" + d3_svg_lineDot4(d3_svg_lineBasisBezier3, py));\n --i;\n while (++i < n) {\n pi = points[i];\n px.shift();\n px.push(pi[0]);\n py.shift();\n py.push(pi[1]);\n d3_svg_lineBasisBezier(path, px, py);\n }\n return path.join(\"\");\n }\n function d3_svg_lineBasisClosed(points) {\n var path, i = -1, n = points.length, m = n + 4, pi, px = [], py = [];\n while (++i < 4) {\n pi = points[i % n];\n px.push(pi[0]);\n py.push(pi[1]);\n }\n path = [ d3_svg_lineDot4(d3_svg_lineBasisBezier3, px), \",\", d3_svg_lineDot4(d3_svg_lineBasisBezier3, py) ];\n --i;\n while (++i < m) {\n pi = points[i % n];\n px.shift();\n px.push(pi[0]);\n py.shift();\n py.push(pi[1]);\n d3_svg_lineBasisBezier(path, px, py);\n }\n return path.join(\"\");\n }\n function d3_svg_lineBundle(points, tension) {\n var n = points.length - 1;\n if (n) {\n var x0 = points[0][0], y0 = points[0][1], dx = points[n][0] - x0, dy = points[n][1] - y0, i = -1, p, t;\n while (++i <= n) {\n p = points[i];\n t = i / n;\n p[0] = tension * p[0] + (1 - tension) * (x0 + t * dx);\n p[1] = tension * p[1] + (1 - tension) * (y0 + t * dy);\n }\n }\n return d3_svg_lineBasis(points);\n }\n function d3_svg_lineDot4(a, b) {\n return a[0] * b[0] + a[1] * b[1] + a[2] * b[2] + a[3] * b[3];\n }\n var d3_svg_lineBasisBezier1 = [ 0, 2 / 3, 1 / 3, 0 ], d3_svg_lineBasisBezier2 = [ 0, 1 / 3, 2 / 3, 0 ], d3_svg_lineBasisBezier3 = [ 0, 1 / 6, 2 / 3, 1 / 6 ];\n function d3_svg_lineBasisBezier(path, x, y) {\n path.push(\"C\", d3_svg_lineDot4(d3_svg_lineBasisBezier1, x), \",\", d3_svg_lineDot4(d3_svg_lineBasisBezier1, y), \",\", d3_svg_lineDot4(d3_svg_lineBasisBezier2, x), \",\", d3_svg_lineDot4(d3_svg_lineBasisBezier2, y), \",\", d3_svg_lineDot4(d3_svg_lineBasisBezier3, x), \",\", d3_svg_lineDot4(d3_svg_lineBasisBezier3, y));\n }\n function d3_svg_lineSlope(p0, p1) {\n return (p1[1] - p0[1]) / (p1[0] - p0[0]);\n }\n function d3_svg_lineFiniteDifferences(points) {\n var i = 0, j = points.length - 1, m = [], p0 = points[0], p1 = points[1], d = m[0] = d3_svg_lineSlope(p0, p1);\n while (++i < j) {\n m[i] = (d + (d = d3_svg_lineSlope(p0 = p1, p1 = points[i + 1]))) / 2;\n }\n m[i] = d;\n return m;\n }\n function d3_svg_lineMonotoneTangents(points) {\n var tangents = [], d, a, b, s, m = d3_svg_lineFiniteDifferences(points), i = -1, j = points.length - 1;\n while (++i < j) {\n d = d3_svg_lineSlope(points[i], points[i + 1]);\n if (abs(d) < ε) {\n m[i] = m[i + 1] = 0;\n } else {\n a = m[i] / d;\n b = m[i + 1] / d;\n s = a * a + b * b;\n if (s > 9) {\n s = d * 3 / Math.sqrt(s);\n m[i] = s * a;\n m[i + 1] = s * b;\n }\n }\n }\n i = -1;\n while (++i <= j) {\n s = (points[Math.min(j, i + 1)][0] - points[Math.max(0, i - 1)][0]) / (6 * (1 + m[i] * m[i]));\n tangents.push([ s || 0, m[i] * s || 0 ]);\n }\n return tangents;\n }\n function d3_svg_lineMonotone(points) {\n return points.length < 3 ? d3_svg_lineLinear(points) : points[0] + d3_svg_lineHermite(points, d3_svg_lineMonotoneTangents(points));\n }\n d3.svg.line.radial = function() {\n var line = d3_svg_line(d3_svg_lineRadial);\n line.radius = line.x, delete line.x;\n line.angle = line.y, delete line.y;\n return line;\n };\n function d3_svg_lineRadial(points) {\n var point, i = -1, n = points.length, r, a;\n while (++i < n) {\n point = points[i];\n r = point[0];\n a = point[1] - halfπ;\n point[0] = r * Math.cos(a);\n point[1] = r * Math.sin(a);\n }\n return points;\n }\n function d3_svg_area(projection) {\n var x0 = d3_geom_pointX, x1 = d3_geom_pointX, y0 = 0, y1 = d3_geom_pointY, defined = d3_true, interpolate = d3_svg_lineLinear, interpolateKey = interpolate.key, interpolateReverse = interpolate, L = \"L\", tension = .7;\n function area(data) {\n var segments = [], points0 = [], points1 = [], i = -1, n = data.length, d, fx0 = d3_functor(x0), fy0 = d3_functor(y0), fx1 = x0 === x1 ? function() {\n return x;\n } : d3_functor(x1), fy1 = y0 === y1 ? function() {\n return y;\n } : d3_functor(y1), x, y;\n function segment() {\n segments.push(\"M\", interpolate(projection(points1), tension), L, interpolateReverse(projection(points0.reverse()), tension), \"Z\");\n }\n while (++i < n) {\n if (defined.call(this, d = data[i], i)) {\n points0.push([ x = +fx0.call(this, d, i), y = +fy0.call(this, d, i) ]);\n points1.push([ +fx1.call(this, d, i), +fy1.call(this, d, i) ]);\n } else if (points0.length) {\n segment();\n points0 = [];\n points1 = [];\n }\n }\n if (points0.length) segment();\n return segments.length ? segments.join(\"\") : null;\n }\n area.x = function(_) {\n if (!arguments.length) return x1;\n x0 = x1 = _;\n return area;\n };\n area.x0 = function(_) {\n if (!arguments.length) return x0;\n x0 = _;\n return area;\n };\n area.x1 = function(_) {\n if (!arguments.length) return x1;\n x1 = _;\n return area;\n };\n area.y = function(_) {\n if (!arguments.length) return y1;\n y0 = y1 = _;\n return area;\n };\n area.y0 = function(_) {\n if (!arguments.length) return y0;\n y0 = _;\n return area;\n };\n area.y1 = function(_) {\n if (!arguments.length) return y1;\n y1 = _;\n return area;\n };\n area.defined = function(_) {\n if (!arguments.length) return defined;\n defined = _;\n return area;\n };\n area.interpolate = function(_) {\n if (!arguments.length) return interpolateKey;\n if (typeof _ === \"function\") interpolateKey = interpolate = _; else interpolateKey = (interpolate = d3_svg_lineInterpolators.get(_) || d3_svg_lineLinear).key;\n interpolateReverse = interpolate.reverse || interpolate;\n L = interpolate.closed ? \"M\" : \"L\";\n return area;\n };\n area.tension = function(_) {\n if (!arguments.length) return tension;\n tension = _;\n return area;\n };\n return area;\n }\n d3_svg_lineStepBefore.reverse = d3_svg_lineStepAfter;\n d3_svg_lineStepAfter.reverse = d3_svg_lineStepBefore;\n d3.svg.area = function() {\n return d3_svg_area(d3_identity);\n };\n d3.svg.area.radial = function() {\n var area = d3_svg_area(d3_svg_lineRadial);\n area.radius = area.x, delete area.x;\n area.innerRadius = area.x0, delete area.x0;\n area.outerRadius = area.x1, delete area.x1;\n area.angle = area.y, delete area.y;\n area.startAngle = area.y0, delete area.y0;\n area.endAngle = area.y1, delete area.y1;\n return area;\n };\n function d3_source(d) {\n return d.source;\n }\n function d3_target(d) {\n return d.target;\n }\n d3.svg.chord = function() {\n var source = d3_source, target = d3_target, radius = d3_svg_chordRadius, startAngle = d3_svg_arcStartAngle, endAngle = d3_svg_arcEndAngle;\n function chord(d, i) {\n var s = subgroup(this, source, d, i), t = subgroup(this, target, d, i);\n return \"M\" + s.p0 + arc(s.r, s.p1, s.a1 - s.a0) + (equals(s, t) ? curve(s.r, s.p1, s.r, s.p0) : curve(s.r, s.p1, t.r, t.p0) + arc(t.r, t.p1, t.a1 - t.a0) + curve(t.r, t.p1, s.r, s.p0)) + \"Z\";\n }\n function subgroup(self, f, d, i) {\n var subgroup = f.call(self, d, i), r = radius.call(self, subgroup, i), a0 = startAngle.call(self, subgroup, i) - halfπ, a1 = endAngle.call(self, subgroup, i) - halfπ;\n return {\n r: r,\n a0: a0,\n a1: a1,\n p0: [ r * Math.cos(a0), r * Math.sin(a0) ],\n p1: [ r * Math.cos(a1), r * Math.sin(a1) ]\n };\n }\n function equals(a, b) {\n return a.a0 == b.a0 && a.a1 == b.a1;\n }\n function arc(r, p, a) {\n return \"A\" + r + \",\" + r + \" 0 \" + +(a > π) + \",1 \" + p;\n }\n function curve(r0, p0, r1, p1) {\n return \"Q 0,0 \" + p1;\n }\n chord.radius = function(v) {\n if (!arguments.length) return radius;\n radius = d3_functor(v);\n return chord;\n };\n chord.source = function(v) {\n if (!arguments.length) return source;\n source = d3_functor(v);\n return chord;\n };\n chord.target = function(v) {\n if (!arguments.length) return target;\n target = d3_functor(v);\n return chord;\n };\n chord.startAngle = function(v) {\n if (!arguments.length) return startAngle;\n startAngle = d3_functor(v);\n return chord;\n };\n chord.endAngle = function(v) {\n if (!arguments.length) return endAngle;\n endAngle = d3_functor(v);\n return chord;\n };\n return chord;\n };\n function d3_svg_chordRadius(d) {\n return d.radius;\n }\n d3.svg.diagonal = function() {\n var source = d3_source, target = d3_target, projection = d3_svg_diagonalProjection;\n function diagonal(d, i) {\n var p0 = source.call(this, d, i), p3 = target.call(this, d, i), m = (p0.y + p3.y) / 2, p = [ p0, {\n x: p0.x,\n y: m\n }, {\n x: p3.x,\n y: m\n }, p3 ];\n p = p.map(projection);\n return \"M\" + p[0] + \"C\" + p[1] + \" \" + p[2] + \" \" + p[3];\n }\n diagonal.source = function(x) {\n if (!arguments.length) return source;\n source = d3_functor(x);\n return diagonal;\n };\n diagonal.target = function(x) {\n if (!arguments.length) return target;\n target = d3_functor(x);\n return diagonal;\n };\n diagonal.projection = function(x) {\n if (!arguments.length) return projection;\n projection = x;\n return diagonal;\n };\n return diagonal;\n };\n function d3_svg_diagonalProjection(d) {\n return [ d.x, d.y ];\n }\n d3.svg.diagonal.radial = function() {\n var diagonal = d3.svg.diagonal(), projection = d3_svg_diagonalProjection, projection_ = diagonal.projection;\n diagonal.projection = function(x) {\n return arguments.length ? projection_(d3_svg_diagonalRadialProjection(projection = x)) : projection;\n };\n return diagonal;\n };\n function d3_svg_diagonalRadialProjection(projection) {\n return function() {\n var d = projection.apply(this, arguments), r = d[0], a = d[1] - halfπ;\n return [ r * Math.cos(a), r * Math.sin(a) ];\n };\n }\n d3.svg.symbol = function() {\n var type = d3_svg_symbolType, size = d3_svg_symbolSize;\n function symbol(d, i) {\n return (d3_svg_symbols.get(type.call(this, d, i)) || d3_svg_symbolCircle)(size.call(this, d, i));\n }\n symbol.type = function(x) {\n if (!arguments.length) return type;\n type = d3_functor(x);\n return symbol;\n };\n symbol.size = function(x) {\n if (!arguments.length) return size;\n size = d3_functor(x);\n return symbol;\n };\n return symbol;\n };\n function d3_svg_symbolSize() {\n return 64;\n }\n function d3_svg_symbolType() {\n return \"circle\";\n }\n function d3_svg_symbolCircle(size) {\n var r = Math.sqrt(size / π);\n return \"M0,\" + r + \"A\" + r + \",\" + r + \" 0 1,1 0,\" + -r + \"A\" + r + \",\" + r + \" 0 1,1 0,\" + r + \"Z\";\n }\n var d3_svg_symbols = d3.map({\n circle: d3_svg_symbolCircle,\n cross: function(size) {\n var r = Math.sqrt(size / 5) / 2;\n return \"M\" + -3 * r + \",\" + -r + \"H\" + -r + \"V\" + -3 * r + \"H\" + r + \"V\" + -r + \"H\" + 3 * r + \"V\" + r + \"H\" + r + \"V\" + 3 * r + \"H\" + -r + \"V\" + r + \"H\" + -3 * r + \"Z\";\n },\n diamond: function(size) {\n var ry = Math.sqrt(size / (2 * d3_svg_symbolTan30)), rx = ry * d3_svg_symbolTan30;\n return \"M0,\" + -ry + \"L\" + rx + \",0\" + \" 0,\" + ry + \" \" + -rx + \",0\" + \"Z\";\n },\n square: function(size) {\n var r = Math.sqrt(size) / 2;\n return \"M\" + -r + \",\" + -r + \"L\" + r + \",\" + -r + \" \" + r + \",\" + r + \" \" + -r + \",\" + r + \"Z\";\n },\n \"triangle-down\": function(size) {\n var rx = Math.sqrt(size / d3_svg_symbolSqrt3), ry = rx * d3_svg_symbolSqrt3 / 2;\n return \"M0,\" + ry + \"L\" + rx + \",\" + -ry + \" \" + -rx + \",\" + -ry + \"Z\";\n },\n \"triangle-up\": function(size) {\n var rx = Math.sqrt(size / d3_svg_symbolSqrt3), ry = rx * d3_svg_symbolSqrt3 / 2;\n return \"M0,\" + -ry + \"L\" + rx + \",\" + ry + \" \" + -rx + \",\" + ry + \"Z\";\n }\n });\n d3.svg.symbolTypes = d3_svg_symbols.keys();\n var d3_svg_symbolSqrt3 = Math.sqrt(3), d3_svg_symbolTan30 = Math.tan(30 * d3_radians);\n d3_selectionPrototype.transition = function(name) {\n var id = d3_transitionInheritId || ++d3_transitionId, ns = d3_transitionNamespace(name), subgroups = [], subgroup, node, transition = d3_transitionInherit || {\n time: Date.now(),\n ease: d3_ease_cubicInOut,\n delay: 0,\n duration: 250\n };\n for (var j = -1, m = this.length; ++j < m; ) {\n subgroups.push(subgroup = []);\n for (var group = this[j], i = -1, n = group.length; ++i < n; ) {\n if (node = group[i]) d3_transitionNode(node, i, ns, id, transition);\n subgroup.push(node);\n }\n }\n return d3_transition(subgroups, ns, id);\n };\n d3_selectionPrototype.interrupt = function(name) {\n return this.each(name == null ? d3_selection_interrupt : d3_selection_interruptNS(d3_transitionNamespace(name)));\n };\n var d3_selection_interrupt = d3_selection_interruptNS(d3_transitionNamespace());\n function d3_selection_interruptNS(ns) {\n return function() {\n var lock, activeId, active;\n if ((lock = this[ns]) && (active = lock[activeId = lock.active])) {\n active.timer.c = null;\n active.timer.t = NaN;\n if (--lock.count) delete lock[activeId]; else delete this[ns];\n lock.active += .5;\n active.event && active.event.interrupt.call(this, this.__data__, active.index);\n }\n };\n }\n function d3_transition(groups, ns, id) {\n d3_subclass(groups, d3_transitionPrototype);\n groups.namespace = ns;\n groups.id = id;\n return groups;\n }\n var d3_transitionPrototype = [], d3_transitionId = 0, d3_transitionInheritId, d3_transitionInherit;\n d3_transitionPrototype.call = d3_selectionPrototype.call;\n d3_transitionPrototype.empty = d3_selectionPrototype.empty;\n d3_transitionPrototype.node = d3_selectionPrototype.node;\n d3_transitionPrototype.size = d3_selectionPrototype.size;\n d3.transition = function(selection, name) {\n return selection && selection.transition ? d3_transitionInheritId ? selection.transition(name) : selection : d3.selection().transition(selection);\n };\n d3.transition.prototype = d3_transitionPrototype;\n d3_transitionPrototype.select = function(selector) {\n var id = this.id, ns = this.namespace, subgroups = [], subgroup, subnode, node;\n selector = d3_selection_selector(selector);\n for (var j = -1, m = this.length; ++j < m; ) {\n subgroups.push(subgroup = []);\n for (var group = this[j], i = -1, n = group.length; ++i < n; ) {\n if ((node = group[i]) && (subnode = selector.call(node, node.__data__, i, j))) {\n if (\"__data__\" in node) subnode.__data__ = node.__data__;\n d3_transitionNode(subnode, i, ns, id, node[ns][id]);\n subgroup.push(subnode);\n } else {\n subgroup.push(null);\n }\n }\n }\n return d3_transition(subgroups, ns, id);\n };\n d3_transitionPrototype.selectAll = function(selector) {\n var id = this.id, ns = this.namespace, subgroups = [], subgroup, subnodes, node, subnode, transition;\n selector = d3_selection_selectorAll(selector);\n for (var j = -1, m = this.length; ++j < m; ) {\n for (var group = this[j], i = -1, n = group.length; ++i < n; ) {\n if (node = group[i]) {\n transition = node[ns][id];\n subnodes = selector.call(node, node.__data__, i, j);\n subgroups.push(subgroup = []);\n for (var k = -1, o = subnodes.length; ++k < o; ) {\n if (subnode = subnodes[k]) d3_transitionNode(subnode, k, ns, id, transition);\n subgroup.push(subnode);\n }\n }\n }\n }\n return d3_transition(subgroups, ns, id);\n };\n d3_transitionPrototype.filter = function(filter) {\n var subgroups = [], subgroup, group, node;\n if (typeof filter !== \"function\") filter = d3_selection_filter(filter);\n for (var j = 0, m = this.length; j < m; j++) {\n subgroups.push(subgroup = []);\n for (var group = this[j], i = 0, n = group.length; i < n; i++) {\n if ((node = group[i]) && filter.call(node, node.__data__, i, j)) {\n subgroup.push(node);\n }\n }\n }\n return d3_transition(subgroups, this.namespace, this.id);\n };\n d3_transitionPrototype.tween = function(name, tween) {\n var id = this.id, ns = this.namespace;\n if (arguments.length < 2) return this.node()[ns][id].tween.get(name);\n return d3_selection_each(this, tween == null ? function(node) {\n node[ns][id].tween.remove(name);\n } : function(node) {\n node[ns][id].tween.set(name, tween);\n });\n };\n function d3_transition_tween(groups, name, value, tween) {\n var id = groups.id, ns = groups.namespace;\n return d3_selection_each(groups, typeof value === \"function\" ? function(node, i, j) {\n node[ns][id].tween.set(name, tween(value.call(node, node.__data__, i, j)));\n } : (value = tween(value), function(node) {\n node[ns][id].tween.set(name, value);\n }));\n }\n d3_transitionPrototype.attr = function(nameNS, value) {\n if (arguments.length < 2) {\n for (value in nameNS) this.attr(value, nameNS[value]);\n return this;\n }\n var interpolate = nameNS == \"transform\" ? d3_interpolateTransform : d3_interpolate, name = d3.ns.qualify(nameNS);\n function attrNull() {\n this.removeAttribute(name);\n }\n function attrNullNS() {\n this.removeAttributeNS(name.space, name.local);\n }\n function attrTween(b) {\n return b == null ? attrNull : (b += \"\", function() {\n var a = this.getAttribute(name), i;\n return a !== b && (i = interpolate(a, b), function(t) {\n this.setAttribute(name, i(t));\n });\n });\n }\n function attrTweenNS(b) {\n return b == null ? attrNullNS : (b += \"\", function() {\n var a = this.getAttributeNS(name.space, name.local), i;\n return a !== b && (i = interpolate(a, b), function(t) {\n this.setAttributeNS(name.space, name.local, i(t));\n });\n });\n }\n return d3_transition_tween(this, \"attr.\" + nameNS, value, name.local ? attrTweenNS : attrTween);\n };\n d3_transitionPrototype.attrTween = function(nameNS, tween) {\n var name = d3.ns.qualify(nameNS);\n function attrTween(d, i) {\n var f = tween.call(this, d, i, this.getAttribute(name));\n return f && function(t) {\n this.setAttribute(name, f(t));\n };\n }\n function attrTweenNS(d, i) {\n var f = tween.call(this, d, i, this.getAttributeNS(name.space, name.local));\n return f && function(t) {\n this.setAttributeNS(name.space, name.local, f(t));\n };\n }\n return this.tween(\"attr.\" + nameNS, name.local ? attrTweenNS : attrTween);\n };\n d3_transitionPrototype.style = function(name, value, priority) {\n var n = arguments.length;\n if (n < 3) {\n if (typeof name !== \"string\") {\n if (n < 2) value = \"\";\n for (priority in name) this.style(priority, name[priority], value);\n return this;\n }\n priority = \"\";\n }\n function styleNull() {\n this.style.removeProperty(name);\n }\n function styleString(b) {\n return b == null ? styleNull : (b += \"\", function() {\n var a = d3_window(this).getComputedStyle(this, null).getPropertyValue(name), i;\n return a !== b && (i = d3_interpolate(a, b), function(t) {\n this.style.setProperty(name, i(t), priority);\n });\n });\n }\n return d3_transition_tween(this, \"style.\" + name, value, styleString);\n };\n d3_transitionPrototype.styleTween = function(name, tween, priority) {\n if (arguments.length < 3) priority = \"\";\n function styleTween(d, i) {\n var f = tween.call(this, d, i, d3_window(this).getComputedStyle(this, null).getPropertyValue(name));\n return f && function(t) {\n this.style.setProperty(name, f(t), priority);\n };\n }\n return this.tween(\"style.\" + name, styleTween);\n };\n d3_transitionPrototype.text = function(value) {\n return d3_transition_tween(this, \"text\", value, d3_transition_text);\n };\n function d3_transition_text(b) {\n if (b == null) b = \"\";\n return function() {\n this.textContent = b;\n };\n }\n d3_transitionPrototype.remove = function() {\n var ns = this.namespace;\n return this.each(\"end.transition\", function() {\n var p;\n if (this[ns].count < 2 && (p = this.parentNode)) p.removeChild(this);\n });\n };\n d3_transitionPrototype.ease = function(value) {\n var id = this.id, ns = this.namespace;\n if (arguments.length < 1) return this.node()[ns][id].ease;\n if (typeof value !== \"function\") value = d3.ease.apply(d3, arguments);\n return d3_selection_each(this, function(node) {\n node[ns][id].ease = value;\n });\n };\n d3_transitionPrototype.delay = function(value) {\n var id = this.id, ns = this.namespace;\n if (arguments.length < 1) return this.node()[ns][id].delay;\n return d3_selection_each(this, typeof value === \"function\" ? function(node, i, j) {\n node[ns][id].delay = +value.call(node, node.__data__, i, j);\n } : (value = +value, function(node) {\n node[ns][id].delay = value;\n }));\n };\n d3_transitionPrototype.duration = function(value) {\n var id = this.id, ns = this.namespace;\n if (arguments.length < 1) return this.node()[ns][id].duration;\n return d3_selection_each(this, typeof value === \"function\" ? function(node, i, j) {\n node[ns][id].duration = Math.max(1, value.call(node, node.__data__, i, j));\n } : (value = Math.max(1, value), function(node) {\n node[ns][id].duration = value;\n }));\n };\n d3_transitionPrototype.each = function(type, listener) {\n var id = this.id, ns = this.namespace;\n if (arguments.length < 2) {\n var inherit = d3_transitionInherit, inheritId = d3_transitionInheritId;\n try {\n d3_transitionInheritId = id;\n d3_selection_each(this, function(node, i, j) {\n d3_transitionInherit = node[ns][id];\n type.call(node, node.__data__, i, j);\n });\n } finally {\n d3_transitionInherit = inherit;\n d3_transitionInheritId = inheritId;\n }\n } else {\n d3_selection_each(this, function(node) {\n var transition = node[ns][id];\n (transition.event || (transition.event = d3.dispatch(\"start\", \"end\", \"interrupt\"))).on(type, listener);\n });\n }\n return this;\n };\n d3_transitionPrototype.transition = function() {\n var id0 = this.id, id1 = ++d3_transitionId, ns = this.namespace, subgroups = [], subgroup, group, node, transition;\n for (var j = 0, m = this.length; j < m; j++) {\n subgroups.push(subgroup = []);\n for (var group = this[j], i = 0, n = group.length; i < n; i++) {\n if (node = group[i]) {\n transition = node[ns][id0];\n d3_transitionNode(node, i, ns, id1, {\n time: transition.time,\n ease: transition.ease,\n delay: transition.delay + transition.duration,\n duration: transition.duration\n });\n }\n subgroup.push(node);\n }\n }\n return d3_transition(subgroups, ns, id1);\n };\n function d3_transitionNamespace(name) {\n return name == null ? \"__transition__\" : \"__transition_\" + name + \"__\";\n }\n function d3_transitionNode(node, i, ns, id, inherit) {\n var lock = node[ns] || (node[ns] = {\n active: 0,\n count: 0\n }), transition = lock[id], time, timer, duration, ease, tweens;\n function schedule(elapsed) {\n var delay = transition.delay;\n timer.t = delay + time;\n if (delay <= elapsed) return start(elapsed - delay);\n timer.c = start;\n }\n function start(elapsed) {\n var activeId = lock.active, active = lock[activeId];\n if (active) {\n active.timer.c = null;\n active.timer.t = NaN;\n --lock.count;\n delete lock[activeId];\n active.event && active.event.interrupt.call(node, node.__data__, active.index);\n }\n for (var cancelId in lock) {\n if (+cancelId < id) {\n var cancel = lock[cancelId];\n cancel.timer.c = null;\n cancel.timer.t = NaN;\n --lock.count;\n delete lock[cancelId];\n }\n }\n timer.c = tick;\n d3_timer(function() {\n if (timer.c && tick(elapsed || 1)) {\n timer.c = null;\n timer.t = NaN;\n }\n return 1;\n }, 0, time);\n lock.active = id;\n transition.event && transition.event.start.call(node, node.__data__, i);\n tweens = [];\n transition.tween.forEach(function(key, value) {\n if (value = value.call(node, node.__data__, i)) {\n tweens.push(value);\n }\n });\n ease = transition.ease;\n duration = transition.duration;\n }\n function tick(elapsed) {\n var t = elapsed / duration, e = ease(t), n = tweens.length;\n while (n > 0) {\n tweens[--n].call(node, e);\n }\n if (t >= 1) {\n transition.event && transition.event.end.call(node, node.__data__, i);\n if (--lock.count) delete lock[id]; else delete node[ns];\n return 1;\n }\n }\n if (!transition) {\n time = inherit.time;\n timer = d3_timer(schedule, 0, time);\n transition = lock[id] = {\n tween: new d3_Map(),\n time: time,\n timer: timer,\n delay: inherit.delay,\n duration: inherit.duration,\n ease: inherit.ease,\n index: i\n };\n inherit = null;\n ++lock.count;\n }\n }\n d3.svg.axis = function() {\n var scale = d3.scale.linear(), orient = d3_svg_axisDefaultOrient, innerTickSize = 6, outerTickSize = 6, tickPadding = 3, tickArguments_ = [ 10 ], tickValues = null, tickFormat_;\n function axis(g) {\n g.each(function() {\n var g = d3.select(this);\n var scale0 = this.__chart__ || scale, scale1 = this.__chart__ = scale.copy();\n var ticks = tickValues == null ? scale1.ticks ? scale1.ticks.apply(scale1, tickArguments_) : scale1.domain() : tickValues, tickFormat = tickFormat_ == null ? scale1.tickFormat ? scale1.tickFormat.apply(scale1, tickArguments_) : d3_identity : tickFormat_, tick = g.selectAll(\".tick\").data(ticks, scale1), tickEnter = tick.enter().insert(\"g\", \".domain\").attr(\"class\", \"tick\").style(\"opacity\", ε), tickExit = d3.transition(tick.exit()).style(\"opacity\", ε).remove(), tickUpdate = d3.transition(tick.order()).style(\"opacity\", 1), tickSpacing = Math.max(innerTickSize, 0) + tickPadding, tickTransform;\n var range = d3_scaleRange(scale1), path = g.selectAll(\".domain\").data([ 0 ]), pathUpdate = (path.enter().append(\"path\").attr(\"class\", \"domain\"), \n d3.transition(path));\n tickEnter.append(\"line\");\n tickEnter.append(\"text\");\n var lineEnter = tickEnter.select(\"line\"), lineUpdate = tickUpdate.select(\"line\"), text = tick.select(\"text\").text(tickFormat), textEnter = tickEnter.select(\"text\"), textUpdate = tickUpdate.select(\"text\"), sign = orient === \"top\" || orient === \"left\" ? -1 : 1, x1, x2, y1, y2;\n if (orient === \"bottom\" || orient === \"top\") {\n tickTransform = d3_svg_axisX, x1 = \"x\", y1 = \"y\", x2 = \"x2\", y2 = \"y2\";\n text.attr(\"dy\", sign < 0 ? \"0em\" : \".71em\").style(\"text-anchor\", \"middle\");\n pathUpdate.attr(\"d\", \"M\" + range[0] + \",\" + sign * outerTickSize + \"V0H\" + range[1] + \"V\" + sign * outerTickSize);\n } else {\n tickTransform = d3_svg_axisY, x1 = \"y\", y1 = \"x\", x2 = \"y2\", y2 = \"x2\";\n text.attr(\"dy\", \".32em\").style(\"text-anchor\", sign < 0 ? \"end\" : \"start\");\n pathUpdate.attr(\"d\", \"M\" + sign * outerTickSize + \",\" + range[0] + \"H0V\" + range[1] + \"H\" + sign * outerTickSize);\n }\n lineEnter.attr(y2, sign * innerTickSize);\n textEnter.attr(y1, sign * tickSpacing);\n lineUpdate.attr(x2, 0).attr(y2, sign * innerTickSize);\n textUpdate.attr(x1, 0).attr(y1, sign * tickSpacing);\n if (scale1.rangeBand) {\n var x = scale1, dx = x.rangeBand() / 2;\n scale0 = scale1 = function(d) {\n return x(d) + dx;\n };\n } else if (scale0.rangeBand) {\n scale0 = scale1;\n } else {\n tickExit.call(tickTransform, scale1, scale0);\n }\n tickEnter.call(tickTransform, scale0, scale1);\n tickUpdate.call(tickTransform, scale1, scale1);\n });\n }\n axis.scale = function(x) {\n if (!arguments.length) return scale;\n scale = x;\n return axis;\n };\n axis.orient = function(x) {\n if (!arguments.length) return orient;\n orient = x in d3_svg_axisOrients ? x + \"\" : d3_svg_axisDefaultOrient;\n return axis;\n };\n axis.ticks = function() {\n if (!arguments.length) return tickArguments_;\n tickArguments_ = d3_array(arguments);\n return axis;\n };\n axis.tickValues = function(x) {\n if (!arguments.length) return tickValues;\n tickValues = x;\n return axis;\n };\n axis.tickFormat = function(x) {\n if (!arguments.length) return tickFormat_;\n tickFormat_ = x;\n return axis;\n };\n axis.tickSize = function(x) {\n var n = arguments.length;\n if (!n) return innerTickSize;\n innerTickSize = +x;\n outerTickSize = +arguments[n - 1];\n return axis;\n };\n axis.innerTickSize = function(x) {\n if (!arguments.length) return innerTickSize;\n innerTickSize = +x;\n return axis;\n };\n axis.outerTickSize = function(x) {\n if (!arguments.length) return outerTickSize;\n outerTickSize = +x;\n return axis;\n };\n axis.tickPadding = function(x) {\n if (!arguments.length) return tickPadding;\n tickPadding = +x;\n return axis;\n };\n axis.tickSubdivide = function() {\n return arguments.length && axis;\n };\n return axis;\n };\n var d3_svg_axisDefaultOrient = \"bottom\", d3_svg_axisOrients = {\n top: 1,\n right: 1,\n bottom: 1,\n left: 1\n };\n function d3_svg_axisX(selection, x0, x1) {\n selection.attr(\"transform\", function(d) {\n var v0 = x0(d);\n return \"translate(\" + (isFinite(v0) ? v0 : x1(d)) + \",0)\";\n });\n }\n function d3_svg_axisY(selection, y0, y1) {\n selection.attr(\"transform\", function(d) {\n var v0 = y0(d);\n return \"translate(0,\" + (isFinite(v0) ? v0 : y1(d)) + \")\";\n });\n }\n d3.svg.brush = function() {\n var event = d3_eventDispatch(brush, \"brushstart\", \"brush\", \"brushend\"), x = null, y = null, xExtent = [ 0, 0 ], yExtent = [ 0, 0 ], xExtentDomain, yExtentDomain, xClamp = true, yClamp = true, resizes = d3_svg_brushResizes[0];\n function brush(g) {\n g.each(function() {\n var g = d3.select(this).style(\"pointer-events\", \"all\").style(\"-webkit-tap-highlight-color\", \"rgba(0,0,0,0)\").on(\"mousedown.brush\", brushstart).on(\"touchstart.brush\", brushstart);\n var background = g.selectAll(\".background\").data([ 0 ]);\n background.enter().append(\"rect\").attr(\"class\", \"background\").style(\"visibility\", \"hidden\").style(\"cursor\", \"crosshair\");\n g.selectAll(\".extent\").data([ 0 ]).enter().append(\"rect\").attr(\"class\", \"extent\").style(\"cursor\", \"move\");\n var resize = g.selectAll(\".resize\").data(resizes, d3_identity);\n resize.exit().remove();\n resize.enter().append(\"g\").attr(\"class\", function(d) {\n return \"resize \" + d;\n }).style(\"cursor\", function(d) {\n return d3_svg_brushCursor[d];\n }).append(\"rect\").attr(\"x\", function(d) {\n return /[ew]$/.test(d) ? -3 : null;\n }).attr(\"y\", function(d) {\n return /^[ns]/.test(d) ? -3 : null;\n }).attr(\"width\", 6).attr(\"height\", 6).style(\"visibility\", \"hidden\");\n resize.style(\"display\", brush.empty() ? \"none\" : null);\n var gUpdate = d3.transition(g), backgroundUpdate = d3.transition(background), range;\n if (x) {\n range = d3_scaleRange(x);\n backgroundUpdate.attr(\"x\", range[0]).attr(\"width\", range[1] - range[0]);\n redrawX(gUpdate);\n }\n if (y) {\n range = d3_scaleRange(y);\n backgroundUpdate.attr(\"y\", range[0]).attr(\"height\", range[1] - range[0]);\n redrawY(gUpdate);\n }\n redraw(gUpdate);\n });\n }\n brush.event = function(g) {\n g.each(function() {\n var event_ = event.of(this, arguments), extent1 = {\n x: xExtent,\n y: yExtent,\n i: xExtentDomain,\n j: yExtentDomain\n }, extent0 = this.__chart__ || extent1;\n this.__chart__ = extent1;\n if (d3_transitionInheritId) {\n d3.select(this).transition().each(\"start.brush\", function() {\n xExtentDomain = extent0.i;\n yExtentDomain = extent0.j;\n xExtent = extent0.x;\n yExtent = extent0.y;\n event_({\n type: \"brushstart\"\n });\n }).tween(\"brush:brush\", function() {\n var xi = d3_interpolateArray(xExtent, extent1.x), yi = d3_interpolateArray(yExtent, extent1.y);\n xExtentDomain = yExtentDomain = null;\n return function(t) {\n xExtent = extent1.x = xi(t);\n yExtent = extent1.y = yi(t);\n event_({\n type: \"brush\",\n mode: \"resize\"\n });\n };\n }).each(\"end.brush\", function() {\n xExtentDomain = extent1.i;\n yExtentDomain = extent1.j;\n event_({\n type: \"brush\",\n mode: \"resize\"\n });\n event_({\n type: \"brushend\"\n });\n });\n } else {\n event_({\n type: \"brushstart\"\n });\n event_({\n type: \"brush\",\n mode: \"resize\"\n });\n event_({\n type: \"brushend\"\n });\n }\n });\n };\n function redraw(g) {\n g.selectAll(\".resize\").attr(\"transform\", function(d) {\n return \"translate(\" + xExtent[+/e$/.test(d)] + \",\" + yExtent[+/^s/.test(d)] + \")\";\n });\n }\n function redrawX(g) {\n g.select(\".extent\").attr(\"x\", xExtent[0]);\n g.selectAll(\".extent,.n>rect,.s>rect\").attr(\"width\", xExtent[1] - xExtent[0]);\n }\n function redrawY(g) {\n g.select(\".extent\").attr(\"y\", yExtent[0]);\n g.selectAll(\".extent,.e>rect,.w>rect\").attr(\"height\", yExtent[1] - yExtent[0]);\n }\n function brushstart() {\n var target = this, eventTarget = d3.select(d3.event.target), event_ = event.of(target, arguments), g = d3.select(target), resizing = eventTarget.datum(), resizingX = !/^(n|s)$/.test(resizing) && x, resizingY = !/^(e|w)$/.test(resizing) && y, dragging = eventTarget.classed(\"extent\"), dragRestore = d3_event_dragSuppress(target), center, origin = d3.mouse(target), offset;\n var w = d3.select(d3_window(target)).on(\"keydown.brush\", keydown).on(\"keyup.brush\", keyup);\n if (d3.event.changedTouches) {\n w.on(\"touchmove.brush\", brushmove).on(\"touchend.brush\", brushend);\n } else {\n w.on(\"mousemove.brush\", brushmove).on(\"mouseup.brush\", brushend);\n }\n g.interrupt().selectAll(\"*\").interrupt();\n if (dragging) {\n origin[0] = xExtent[0] - origin[0];\n origin[1] = yExtent[0] - origin[1];\n } else if (resizing) {\n var ex = +/w$/.test(resizing), ey = +/^n/.test(resizing);\n offset = [ xExtent[1 - ex] - origin[0], yExtent[1 - ey] - origin[1] ];\n origin[0] = xExtent[ex];\n origin[1] = yExtent[ey];\n } else if (d3.event.altKey) center = origin.slice();\n g.style(\"pointer-events\", \"none\").selectAll(\".resize\").style(\"display\", null);\n d3.select(\"body\").style(\"cursor\", eventTarget.style(\"cursor\"));\n event_({\n type: \"brushstart\"\n });\n brushmove();\n function keydown() {\n if (d3.event.keyCode == 32) {\n if (!dragging) {\n center = null;\n origin[0] -= xExtent[1];\n origin[1] -= yExtent[1];\n dragging = 2;\n }\n d3_eventPreventDefault();\n }\n }\n function keyup() {\n if (d3.event.keyCode == 32 && dragging == 2) {\n origin[0] += xExtent[1];\n origin[1] += yExtent[1];\n dragging = 0;\n d3_eventPreventDefault();\n }\n }\n function brushmove() {\n var point = d3.mouse(target), moved = false;\n if (offset) {\n point[0] += offset[0];\n point[1] += offset[1];\n }\n if (!dragging) {\n if (d3.event.altKey) {\n if (!center) center = [ (xExtent[0] + xExtent[1]) / 2, (yExtent[0] + yExtent[1]) / 2 ];\n origin[0] = xExtent[+(point[0] < center[0])];\n origin[1] = yExtent[+(point[1] < center[1])];\n } else center = null;\n }\n if (resizingX && move1(point, x, 0)) {\n redrawX(g);\n moved = true;\n }\n if (resizingY && move1(point, y, 1)) {\n redrawY(g);\n moved = true;\n }\n if (moved) {\n redraw(g);\n event_({\n type: \"brush\",\n mode: dragging ? \"move\" : \"resize\"\n });\n }\n }\n function move1(point, scale, i) {\n var range = d3_scaleRange(scale), r0 = range[0], r1 = range[1], position = origin[i], extent = i ? yExtent : xExtent, size = extent[1] - extent[0], min, max;\n if (dragging) {\n r0 -= position;\n r1 -= size + position;\n }\n min = (i ? yClamp : xClamp) ? Math.max(r0, Math.min(r1, point[i])) : point[i];\n if (dragging) {\n max = (min += position) + size;\n } else {\n if (center) position = Math.max(r0, Math.min(r1, 2 * center[i] - min));\n if (position < min) {\n max = min;\n min = position;\n } else {\n max = position;\n }\n }\n if (extent[0] != min || extent[1] != max) {\n if (i) yExtentDomain = null; else xExtentDomain = null;\n extent[0] = min;\n extent[1] = max;\n return true;\n }\n }\n function brushend() {\n brushmove();\n g.style(\"pointer-events\", \"all\").selectAll(\".resize\").style(\"display\", brush.empty() ? \"none\" : null);\n d3.select(\"body\").style(\"cursor\", null);\n w.on(\"mousemove.brush\", null).on(\"mouseup.brush\", null).on(\"touchmove.brush\", null).on(\"touchend.brush\", null).on(\"keydown.brush\", null).on(\"keyup.brush\", null);\n dragRestore();\n event_({\n type: \"brushend\"\n });\n }\n }\n brush.x = function(z) {\n if (!arguments.length) return x;\n x = z;\n resizes = d3_svg_brushResizes[!x << 1 | !y];\n return brush;\n };\n brush.y = function(z) {\n if (!arguments.length) return y;\n y = z;\n resizes = d3_svg_brushResizes[!x << 1 | !y];\n return brush;\n };\n brush.clamp = function(z) {\n if (!arguments.length) return x && y ? [ xClamp, yClamp ] : x ? xClamp : y ? yClamp : null;\n if (x && y) xClamp = !!z[0], yClamp = !!z[1]; else if (x) xClamp = !!z; else if (y) yClamp = !!z;\n return brush;\n };\n brush.extent = function(z) {\n var x0, x1, y0, y1, t;\n if (!arguments.length) {\n if (x) {\n if (xExtentDomain) {\n x0 = xExtentDomain[0], x1 = xExtentDomain[1];\n } else {\n x0 = xExtent[0], x1 = xExtent[1];\n if (x.invert) x0 = x.invert(x0), x1 = x.invert(x1);\n if (x1 < x0) t = x0, x0 = x1, x1 = t;\n }\n }\n if (y) {\n if (yExtentDomain) {\n y0 = yExtentDomain[0], y1 = yExtentDomain[1];\n } else {\n y0 = yExtent[0], y1 = yExtent[1];\n if (y.invert) y0 = y.invert(y0), y1 = y.invert(y1);\n if (y1 < y0) t = y0, y0 = y1, y1 = t;\n }\n }\n return x && y ? [ [ x0, y0 ], [ x1, y1 ] ] : x ? [ x0, x1 ] : y && [ y0, y1 ];\n }\n if (x) {\n x0 = z[0], x1 = z[1];\n if (y) x0 = x0[0], x1 = x1[0];\n xExtentDomain = [ x0, x1 ];\n if (x.invert) x0 = x(x0), x1 = x(x1);\n if (x1 < x0) t = x0, x0 = x1, x1 = t;\n if (x0 != xExtent[0] || x1 != xExtent[1]) xExtent = [ x0, x1 ];\n }\n if (y) {\n y0 = z[0], y1 = z[1];\n if (x) y0 = y0[1], y1 = y1[1];\n yExtentDomain = [ y0, y1 ];\n if (y.invert) y0 = y(y0), y1 = y(y1);\n if (y1 < y0) t = y0, y0 = y1, y1 = t;\n if (y0 != yExtent[0] || y1 != yExtent[1]) yExtent = [ y0, y1 ];\n }\n return brush;\n };\n brush.clear = function() {\n if (!brush.empty()) {\n xExtent = [ 0, 0 ], yExtent = [ 0, 0 ];\n xExtentDomain = yExtentDomain = null;\n }\n return brush;\n };\n brush.empty = function() {\n return !!x && xExtent[0] == xExtent[1] || !!y && yExtent[0] == yExtent[1];\n };\n return d3.rebind(brush, event, \"on\");\n };\n var d3_svg_brushCursor = {\n n: \"ns-resize\",\n e: \"ew-resize\",\n s: \"ns-resize\",\n w: \"ew-resize\",\n nw: \"nwse-resize\",\n ne: \"nesw-resize\",\n se: \"nwse-resize\",\n sw: \"nesw-resize\"\n };\n var d3_svg_brushResizes = [ [ \"n\", \"e\", \"s\", \"w\", \"nw\", \"ne\", \"se\", \"sw\" ], [ \"e\", \"w\" ], [ \"n\", \"s\" ], [] ];\n d3.text = d3_xhrType(function(request) {\n return request.responseText;\n });\n d3.json = function(url, callback) {\n return d3_xhr(url, \"application/json\", d3_json, callback);\n };\n function d3_json(request) {\n return JSON.parse(request.responseText);\n }\n d3.html = function(url, callback) {\n return d3_xhr(url, \"text/html\", d3_html, callback);\n };\n function d3_html(request) {\n var range = d3_document.createRange();\n range.selectNode(d3_document.body);\n return range.createContextualFragment(request.responseText);\n }\n d3.xml = d3_xhrType(function(request) {\n return request.responseXML;\n });\n if (typeof define === \"function\" && define.amd) this.d3 = d3, define(d3); else if (typeof module === \"object\" && module.exports) module.exports = d3; else this.d3 = d3;\n}.apply(self);\n},{}],59:[function(_dereq_,module,exports){\n'use strict'\n\nmodule.exports = _dereq_('./quad')\n\n},{\"./quad\":60}],60:[function(_dereq_,module,exports){\n/**\n * @module point-cluster/quad\n *\n * Bucket based quad tree clustering\n */\n\n'use strict'\n\nvar search = _dereq_('binary-search-bounds')\nvar clamp = _dereq_('clamp')\nvar rect = _dereq_('parse-rect')\nvar getBounds = _dereq_('array-bounds')\nvar pick = _dereq_('pick-by-alias')\nvar defined = _dereq_('defined')\nvar flatten = _dereq_('flatten-vertex-data')\nvar isObj = _dereq_('is-obj')\nvar dtype = _dereq_('dtype')\nvar log2 = _dereq_('math-log2')\n\nvar MAX_GROUP_ID = 1073741824\n\nmodule.exports = function cluster (srcPoints, options) {\n\tif (!options) { options = {} }\n\n\tsrcPoints = flatten(srcPoints, 'float64')\n\n\toptions = pick(options, {\n\t\tbounds: 'range bounds dataBox databox',\n\t\tmaxDepth: 'depth maxDepth maxdepth level maxLevel maxlevel levels',\n\t\tdtype: 'type dtype format out dst output destination'\n\t\t// sort: 'sortBy sortby sort',\n\t\t// pick: 'pick levelPoint',\n\t\t// nodeSize: 'node nodeSize minNodeSize minSize size'\n\t})\n\n\t// let nodeSize = defined(options.nodeSize, 1)\n\tvar maxDepth = defined(options.maxDepth, 255)\n\tvar bounds = defined(options.bounds, getBounds(srcPoints, 2))\n\tif (bounds[0] === bounds[2]) { bounds[2]++ }\n\tif (bounds[1] === bounds[3]) { bounds[3]++ }\n\n\tvar points = normalize(srcPoints, bounds)\n\n\t// init variables\n\tvar n = srcPoints.length >>> 1\n\tvar ids\n\tif (!options.dtype) { options.dtype = 'array' }\n\n\tif (typeof options.dtype === 'string') {\n\t\tids = new (dtype(options.dtype))(n)\n\t}\n\telse if (options.dtype) {\n\t\tids = options.dtype\n\t\tif (Array.isArray(ids)) { ids.length = n }\n\t}\n\tfor (var i = 0; i < n; ++i) {\n\t\tids[i] = i\n\t}\n\n\t// representative point indexes for levels\n\tvar levels = []\n\n\t// starting indexes of subranges in sub levels, levels.length * 4\n\tvar sublevels = []\n\n\t// unique group ids, sorted in z-curve fashion within levels by shifting bits\n\tvar groups = []\n\n\t// level offsets in `ids`\n\tvar offsets = []\n\n\n\t// sort points\n\tsort(0, 0, 1, ids, 0, 1)\n\n\n\t// return reordered ids with provided methods\n\t// save level offsets in output buffer\n\tvar offset = 0\n\tfor (var level = 0; level < levels.length; level++) {\n\t\tvar levelItems = levels[level]\n\t\tif (ids.set) { ids.set(levelItems, offset) }\n\t\telse {\n\t\t\tfor (var i$1 = 0, l = levelItems.length; i$1 < l; i$1++) {\n\t\t\t\tids[i$1 + offset] = levelItems[i$1]\n\t\t\t}\n\t\t}\n\t\tvar nextOffset = offset + levels[level].length\n\t\toffsets[level] = [offset, nextOffset]\n\t\toffset = nextOffset\n\t}\n\n\tids.range = range\n\n\treturn ids\n\n\n\n\t// FIXME: it is possible to create one typed array heap and reuse that to avoid memory blow\n\tfunction sort (x, y, diam, ids, level, group) {\n\t\tif (!ids.length) { return null }\n\n\t\t// save first point as level representative\n\t\tvar levelItems = levels[level] || (levels[level] = [])\n\t\tvar levelGroups = groups[level] || (groups[level] = [])\n\t\tvar sublevel = sublevels[level] || (sublevels[level] = [])\n\t\tvar offset = levelItems.length\n\n\t\tlevel++\n\n\t\t// max depth reached - put all items into a first group\n\t\t// alternatively - if group id overflow - avoid proceeding\n\t\tif (level > maxDepth || group > MAX_GROUP_ID) {\n\t\t\tfor (var i = 0; i < ids.length; i++) {\n\t\t\t\tlevelItems.push(ids[i])\n\t\t\t\tlevelGroups.push(group)\n\t\t\t\tsublevel.push(null, null, null, null)\n\t\t\t}\n\n\t\t\treturn offset\n\t\t}\n\n\t\tlevelItems.push(ids[0])\n\t\tlevelGroups.push(group)\n\n\t\tif (ids.length <= 1) {\n\t\t\tsublevel.push(null, null, null, null)\n\t\t\treturn offset\n\t\t}\n\n\n\t\tvar d2 = diam * .5\n\t\tvar cx = x + d2, cy = y + d2\n\n\t\t// distribute points by 4 buckets\n\t\tvar lolo = [], lohi = [], hilo = [], hihi = []\n\n\t\tfor (var i$1 = 1, l = ids.length; i$1 < l; i$1++) {\n\t\t\tvar idx = ids[i$1],\n\t\t\t\tx$1 = points[idx * 2],\n\t\t\t\ty$1 = points[idx * 2 + 1]\n\t\t\tx$1 < cx ? (y$1 < cy ? lolo.push(idx) : lohi.push(idx)) : (y$1 < cy ? hilo.push(idx) : hihi.push(idx))\n\t\t}\n\n\t\tgroup <<= 2\n\n\t\tsublevel.push(\n\t\t\tsort(x, y, d2, lolo, level, group),\n\t\t\tsort(x, cy, d2, lohi, level, group + 1),\n\t\t\tsort(cx, y, d2, hilo, level, group + 2),\n\t\t\tsort(cx, cy, d2, hihi, level, group + 3)\n\t\t)\n\n\t\treturn offset\n\t}\n\n\t// get all points within the passed range\n\tfunction range () {\n\t\tvar args = [], len = arguments.length;\n\t\twhile ( len-- ) args[ len ] = arguments[ len ];\n\n\t\tvar options\n\n\t\tif (isObj(args[args.length - 1])) {\n\t\t\tvar arg = args.pop()\n\n\t\t\t// detect if that was a rect object\n\t\t\tif (!args.length && (arg.x != null || arg.l != null || arg.left != null)) {\n\t\t\t\targs = [arg]\n\t\t\t\toptions = {}\n\t\t\t}\n\n\t\t\toptions = pick(arg, {\n\t\t\t\tlevel: 'level maxLevel',\n\t\t\t\td: 'd diam diameter r radius px pxSize pixel pixelSize maxD size minSize',\n\t\t\t\tlod: 'lod details ranges offsets'\n\t\t\t})\n\t\t}\n\t\telse {\n\t\t\toptions = {}\n\t\t}\n\n\t\tif (!args.length) { args = bounds }\n\n\t\tvar box = rect.apply( void 0, args )\n\n\t\tvar ref = [\n\t\t\tMath.min(box.x, box.x + box.width),\n\t\t\tMath.min(box.y, box.y + box.height),\n\t\t\tMath.max(box.x, box.x + box.width),\n\t\t\tMath.max(box.y, box.y + box.height)\n\t\t];\n\t\tvar minX = ref[0];\n\t\tvar minY = ref[1];\n\t\tvar maxX = ref[2];\n\t\tvar maxY = ref[3];\n\n\t\tvar ref$1 = normalize([minX, minY, maxX, maxY], bounds );\n\t\tvar nminX = ref$1[0];\n\t\tvar nminY = ref$1[1];\n\t\tvar nmaxX = ref$1[2];\n\t\tvar nmaxY = ref$1[3];\n\n\t\tvar maxLevel = defined(options.level, levels.length)\n\n\t\t// limit maxLevel by px size\n\t\tif (options.d != null) {\n\t\t\tvar d\n\t\t\tif (typeof options.d === 'number') { d = [options.d, options.d] }\n\t\t\telse if (options.d.length) { d = options.d }\n\n\t\t\tmaxLevel = Math.min(\n\t\t\t\tMath.max(\n\t\t\t\t\tMath.ceil(-log2(Math.abs(d[0]) / (bounds[2] - bounds[0]))),\n\t\t\t\t\tMath.ceil(-log2(Math.abs(d[1]) / (bounds[3] - bounds[1])))\n\t\t\t\t),\n\t\t\t\tmaxLevel\n\t\t\t)\n\t\t}\n\t\tmaxLevel = Math.min(maxLevel, levels.length)\n\n\t\t// return levels of details\n\t\tif (options.lod) {\n\t\t\treturn lod(nminX, nminY, nmaxX, nmaxY, maxLevel)\n\t\t}\n\n\n\n\t\t// do selection ids\n\t\tvar selection = []\n\n\t\t// FIXME: probably we can do LOD here beforehead\n\t\tselect( 0, 0, 1, 0, 0, 1)\n\n\t\tfunction select ( lox, loy, d, level, from, to ) {\n\t\t\tif (from === null || to === null) { return }\n\n\t\t\tvar hix = lox + d\n\t\t\tvar hiy = loy + d\n\n\t\t\t// if box does not intersect level - ignore\n\t\t\tif ( nminX > hix || nminY > hiy || nmaxX < lox || nmaxY < loy ) { return }\n\t\t\tif ( level >= maxLevel ) { return }\n\t\t\tif ( from === to ) { return }\n\n\t\t\t// if points fall into box range - take it\n\t\t\tvar levelItems = levels[level]\n\n\t\t\tif (to === undefined) { to = levelItems.length }\n\n\t\t\tfor (var i = from; i < to; i++) {\n\t\t\t\tvar id = levelItems[i]\n\n\t\t\t\tvar px = srcPoints[ id * 2 ]\n\t\t\t\tvar py = srcPoints[ id * 2 + 1 ]\n\n\t\t\t\tif ( px >= minX && px <= maxX && py >= minY && py <= maxY ) {selection.push(id)\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// for every subsection do select\n\t\t\tvar offsets = sublevels[ level ]\n\t\t\tvar off0 = offsets[ from * 4 + 0 ]\n\t\t\tvar off1 = offsets[ from * 4 + 1 ]\n\t\t\tvar off2 = offsets[ from * 4 + 2 ]\n\t\t\tvar off3 = offsets[ from * 4 + 3 ]\n\t\t\tvar end = nextOffset(offsets, from + 1)\n\n\t\t\tvar d2 = d * .5\n\t\t\tvar nextLevel = level + 1\n\t\t\tselect( lox, loy, d2, nextLevel, off0, off1 || off2 || off3 || end)\n\t\t\tselect( lox, loy + d2, d2, nextLevel, off1, off2 || off3 || end)\n\t\t\tselect( lox + d2, loy, d2, nextLevel, off2, off3 || end)\n\t\t\tselect( lox + d2, loy + d2, d2, nextLevel, off3, end)\n\t\t}\n\n\t\tfunction nextOffset(offsets, from) {\n\t\t\tvar offset = null, i = 0\n\t\t\twhile(offset === null) {\n\t\t\t\toffset = offsets[ from * 4 + i ]\n\t\t\t\ti++\n\t\t\t\tif (i > offsets.length) { return null }\n\t\t\t}\n\t\t\treturn offset\n\t\t}\n\n\t\treturn selection\n\t}\n\n\t// get range offsets within levels to render lods appropriate for zoom level\n\t// TODO: it is possible to store minSize of a point to optimize neede level calc\n\tfunction lod (lox, loy, hix, hiy, maxLevel) {\n\t\tvar ranges = []\n\n\t\tfor (var level = 0; level < maxLevel; level++) {\n\t\t\tvar levelGroups = groups[level]\n\t\t\tvar from = offsets[level][0]\n\n\t\t\tvar levelGroupStart = group(lox, loy, level)\n\t\t\tvar levelGroupEnd = group(hix, hiy, level)\n\n\t\t\t// FIXME: utilize sublevels to speed up search range here\n\t\t\tvar startOffset = search.ge(levelGroups, levelGroupStart)\n\t\t\tvar endOffset = search.gt(levelGroups, levelGroupEnd, startOffset, levelGroups.length - 1)\n\n\t\t\tranges[level] = [startOffset + from, endOffset + from]\n\t\t}\n\n\t\treturn ranges\n\t}\n\n\t// get group id closest to the x,y coordinate, corresponding to a level\n\tfunction group (x, y, level) {\n\t\tvar group = 1\n\n\t\tvar cx = .5, cy = .5\n\t\tvar diam = .5\n\n\t\tfor (var i = 0; i < level; i++) {\n\t\t\tgroup <<= 2\n\n\t\t\tgroup += x < cx ? (y < cy ? 0 : 1) : (y < cy ? 2 : 3)\n\n\t\t\tdiam *= .5\n\n\t\t\tcx += x < cx ? -diam : diam\n\t\t\tcy += y < cy ? -diam : diam\n\t\t}\n\n\t\treturn group\n\t}\n}\n\n\n// normalize points by bounds\nfunction normalize (pts, bounds) {\n\tvar lox = bounds[0];\n\tvar loy = bounds[1];\n\tvar hix = bounds[2];\n\tvar hiy = bounds[3];\n\tvar scaleX = 1.0 / (hix - lox)\n\tvar scaleY = 1.0 / (hiy - loy)\n\tvar result = new Array(pts.length)\n\n\tfor (var i = 0, n = pts.length / 2; i < n; i++) {\n\t\tresult[2*i] = clamp((pts[2*i] - lox) * scaleX, 0, 1)\n\t\tresult[2*i+1] = clamp((pts[2*i+1] - loy) * scaleY, 0, 1)\n\t}\n\n\treturn result\n}\n\n},{\"array-bounds\":71,\"binary-search-bounds\":80,\"clamp\":86,\"defined\":124,\"dtype\":127,\"flatten-vertex-data\":191,\"is-obj\":235,\"math-log2\":240,\"parse-rect\":249,\"pick-by-alias\":253}],61:[function(_dereq_,module,exports){\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar meta_1 = _dereq_(\"@turf/meta\");\n// Note: change RADIUS => earthRadius\nvar RADIUS = 6378137;\n/**\n * Takes one or more features and returns their area in square meters.\n *\n * @name area\n * @param {GeoJSON} geojson input GeoJSON feature(s)\n * @returns {number} area in square meters\n * @example\n * var polygon = turf.polygon([[[125, -15], [113, -22], [154, -27], [144, -15], [125, -15]]]);\n *\n * var area = turf.area(polygon);\n *\n * //addToMap\n * var addToMap = [polygon]\n * polygon.properties.area = area\n */\nfunction area(geojson) {\n return meta_1.geomReduce(geojson, function (value, geom) {\n return value + calculateArea(geom);\n }, 0);\n}\nexports.default = area;\n/**\n * Calculate Area\n *\n * @private\n * @param {Geometry} geom GeoJSON Geometries\n * @returns {number} area\n */\nfunction calculateArea(geom) {\n var total = 0;\n var i;\n switch (geom.type) {\n case \"Polygon\":\n return polygonArea(geom.coordinates);\n case \"MultiPolygon\":\n for (i = 0; i < geom.coordinates.length; i++) {\n total += polygonArea(geom.coordinates[i]);\n }\n return total;\n case \"Point\":\n case \"MultiPoint\":\n case \"LineString\":\n case \"MultiLineString\":\n return 0;\n }\n return 0;\n}\nfunction polygonArea(coords) {\n var total = 0;\n if (coords && coords.length > 0) {\n total += Math.abs(ringArea(coords[0]));\n for (var i = 1; i < coords.length; i++) {\n total -= Math.abs(ringArea(coords[i]));\n }\n }\n return total;\n}\n/**\n * @private\n * Calculate the approximate area of the polygon were it projected onto the earth.\n * Note that this area will be positive if ring is oriented clockwise, otherwise it will be negative.\n *\n * Reference:\n * Robert. G. Chamberlain and William H. Duquette, \"Some Algorithms for Polygons on a Sphere\",\n * JPL Publication 07-03, Jet Propulsion\n * Laboratory, Pasadena, CA, June 2007 https://trs.jpl.nasa.gov/handle/2014/40409\n *\n * @param {Array>} coords Ring Coordinates\n * @returns {number} The approximate signed geodesic area of the polygon in square meters.\n */\nfunction ringArea(coords) {\n var p1;\n var p2;\n var p3;\n var lowerIndex;\n var middleIndex;\n var upperIndex;\n var i;\n var total = 0;\n var coordsLength = coords.length;\n if (coordsLength > 2) {\n for (i = 0; i < coordsLength; i++) {\n if (i === coordsLength - 2) {\n // i = N-2\n lowerIndex = coordsLength - 2;\n middleIndex = coordsLength - 1;\n upperIndex = 0;\n }\n else if (i === coordsLength - 1) {\n // i = N-1\n lowerIndex = coordsLength - 1;\n middleIndex = 0;\n upperIndex = 1;\n }\n else {\n // i = 0 to N-3\n lowerIndex = i;\n middleIndex = i + 1;\n upperIndex = i + 2;\n }\n p1 = coords[lowerIndex];\n p2 = coords[middleIndex];\n p3 = coords[upperIndex];\n total += (rad(p3[0]) - rad(p1[0])) * Math.sin(rad(p2[1]));\n }\n total = (total * RADIUS * RADIUS) / 2;\n }\n return total;\n}\nfunction rad(num) {\n return (num * Math.PI) / 180;\n}\n\n},{\"@turf/meta\":63}],62:[function(_dereq_,module,exports){\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * @module helpers\n */\n/**\n * Earth Radius used with the Harvesine formula and approximates using a spherical (non-ellipsoid) Earth.\n *\n * @memberof helpers\n * @type {number}\n */\nexports.earthRadius = 6371008.8;\n/**\n * Unit of measurement factors using a spherical (non-ellipsoid) earth radius.\n *\n * @memberof helpers\n * @type {Object}\n */\nexports.factors = {\n centimeters: exports.earthRadius * 100,\n centimetres: exports.earthRadius * 100,\n degrees: exports.earthRadius / 111325,\n feet: exports.earthRadius * 3.28084,\n inches: exports.earthRadius * 39.37,\n kilometers: exports.earthRadius / 1000,\n kilometres: exports.earthRadius / 1000,\n meters: exports.earthRadius,\n metres: exports.earthRadius,\n miles: exports.earthRadius / 1609.344,\n millimeters: exports.earthRadius * 1000,\n millimetres: exports.earthRadius * 1000,\n nauticalmiles: exports.earthRadius / 1852,\n radians: 1,\n yards: exports.earthRadius * 1.0936,\n};\n/**\n * Units of measurement factors based on 1 meter.\n *\n * @memberof helpers\n * @type {Object}\n */\nexports.unitsFactors = {\n centimeters: 100,\n centimetres: 100,\n degrees: 1 / 111325,\n feet: 3.28084,\n inches: 39.37,\n kilometers: 1 / 1000,\n kilometres: 1 / 1000,\n meters: 1,\n metres: 1,\n miles: 1 / 1609.344,\n millimeters: 1000,\n millimetres: 1000,\n nauticalmiles: 1 / 1852,\n radians: 1 / exports.earthRadius,\n yards: 1.0936133,\n};\n/**\n * Area of measurement factors based on 1 square meter.\n *\n * @memberof helpers\n * @type {Object}\n */\nexports.areaFactors = {\n acres: 0.000247105,\n centimeters: 10000,\n centimetres: 10000,\n feet: 10.763910417,\n hectares: 0.0001,\n inches: 1550.003100006,\n kilometers: 0.000001,\n kilometres: 0.000001,\n meters: 1,\n metres: 1,\n miles: 3.86e-7,\n millimeters: 1000000,\n millimetres: 1000000,\n yards: 1.195990046,\n};\n/**\n * Wraps a GeoJSON {@link Geometry} in a GeoJSON {@link Feature}.\n *\n * @name feature\n * @param {Geometry} geometry input geometry\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature} a GeoJSON Feature\n * @example\n * var geometry = {\n * \"type\": \"Point\",\n * \"coordinates\": [110, 50]\n * };\n *\n * var feature = turf.feature(geometry);\n *\n * //=feature\n */\nfunction feature(geom, properties, options) {\n if (options === void 0) { options = {}; }\n var feat = { type: \"Feature\" };\n if (options.id === 0 || options.id) {\n feat.id = options.id;\n }\n if (options.bbox) {\n feat.bbox = options.bbox;\n }\n feat.properties = properties || {};\n feat.geometry = geom;\n return feat;\n}\nexports.feature = feature;\n/**\n * Creates a GeoJSON {@link Geometry} from a Geometry string type & coordinates.\n * For GeometryCollection type use `helpers.geometryCollection`\n *\n * @name geometry\n * @param {string} type Geometry Type\n * @param {Array} coordinates Coordinates\n * @param {Object} [options={}] Optional Parameters\n * @returns {Geometry} a GeoJSON Geometry\n * @example\n * var type = \"Point\";\n * var coordinates = [110, 50];\n * var geometry = turf.geometry(type, coordinates);\n * // => geometry\n */\nfunction geometry(type, coordinates, _options) {\n if (_options === void 0) { _options = {}; }\n switch (type) {\n case \"Point\":\n return point(coordinates).geometry;\n case \"LineString\":\n return lineString(coordinates).geometry;\n case \"Polygon\":\n return polygon(coordinates).geometry;\n case \"MultiPoint\":\n return multiPoint(coordinates).geometry;\n case \"MultiLineString\":\n return multiLineString(coordinates).geometry;\n case \"MultiPolygon\":\n return multiPolygon(coordinates).geometry;\n default:\n throw new Error(type + \" is invalid\");\n }\n}\nexports.geometry = geometry;\n/**\n * Creates a {@link Point} {@link Feature} from a Position.\n *\n * @name point\n * @param {Array} coordinates longitude, latitude position (each in decimal degrees)\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature} a Point feature\n * @example\n * var point = turf.point([-75.343, 39.984]);\n *\n * //=point\n */\nfunction point(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n if (!coordinates) {\n throw new Error(\"coordinates is required\");\n }\n if (!Array.isArray(coordinates)) {\n throw new Error(\"coordinates must be an Array\");\n }\n if (coordinates.length < 2) {\n throw new Error(\"coordinates must be at least 2 numbers long\");\n }\n if (!isNumber(coordinates[0]) || !isNumber(coordinates[1])) {\n throw new Error(\"coordinates must contain numbers\");\n }\n var geom = {\n type: \"Point\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\nexports.point = point;\n/**\n * Creates a {@link Point} {@link FeatureCollection} from an Array of Point coordinates.\n *\n * @name points\n * @param {Array>} coordinates an array of Points\n * @param {Object} [properties={}] Translate these properties to each Feature\n * @param {Object} [options={}] Optional Parameters\n * @param {Array} [options.bbox] Bounding Box Array [west, south, east, north]\n * associated with the FeatureCollection\n * @param {string|number} [options.id] Identifier associated with the FeatureCollection\n * @returns {FeatureCollection} Point Feature\n * @example\n * var points = turf.points([\n * [-75, 39],\n * [-80, 45],\n * [-78, 50]\n * ]);\n *\n * //=points\n */\nfunction points(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n return featureCollection(coordinates.map(function (coords) {\n return point(coords, properties);\n }), options);\n}\nexports.points = points;\n/**\n * Creates a {@link Polygon} {@link Feature} from an Array of LinearRings.\n *\n * @name polygon\n * @param {Array>>} coordinates an array of LinearRings\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature} Polygon Feature\n * @example\n * var polygon = turf.polygon([[[-5, 52], [-4, 56], [-2, 51], [-7, 54], [-5, 52]]], { name: 'poly1' });\n *\n * //=polygon\n */\nfunction polygon(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n for (var _i = 0, coordinates_1 = coordinates; _i < coordinates_1.length; _i++) {\n var ring = coordinates_1[_i];\n if (ring.length < 4) {\n throw new Error(\"Each LinearRing of a Polygon must have 4 or more Positions.\");\n }\n for (var j = 0; j < ring[ring.length - 1].length; j++) {\n // Check if first point of Polygon contains two numbers\n if (ring[ring.length - 1][j] !== ring[0][j]) {\n throw new Error(\"First and last Position are not equivalent.\");\n }\n }\n }\n var geom = {\n type: \"Polygon\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\nexports.polygon = polygon;\n/**\n * Creates a {@link Polygon} {@link FeatureCollection} from an Array of Polygon coordinates.\n *\n * @name polygons\n * @param {Array>>>} coordinates an array of Polygon coordinates\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the FeatureCollection\n * @returns {FeatureCollection} Polygon FeatureCollection\n * @example\n * var polygons = turf.polygons([\n * [[[-5, 52], [-4, 56], [-2, 51], [-7, 54], [-5, 52]]],\n * [[[-15, 42], [-14, 46], [-12, 41], [-17, 44], [-15, 42]]],\n * ]);\n *\n * //=polygons\n */\nfunction polygons(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n return featureCollection(coordinates.map(function (coords) {\n return polygon(coords, properties);\n }), options);\n}\nexports.polygons = polygons;\n/**\n * Creates a {@link LineString} {@link Feature} from an Array of Positions.\n *\n * @name lineString\n * @param {Array>} coordinates an array of Positions\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature} LineString Feature\n * @example\n * var linestring1 = turf.lineString([[-24, 63], [-23, 60], [-25, 65], [-20, 69]], {name: 'line 1'});\n * var linestring2 = turf.lineString([[-14, 43], [-13, 40], [-15, 45], [-10, 49]], {name: 'line 2'});\n *\n * //=linestring1\n * //=linestring2\n */\nfunction lineString(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n if (coordinates.length < 2) {\n throw new Error(\"coordinates must be an array of two or more positions\");\n }\n var geom = {\n type: \"LineString\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\nexports.lineString = lineString;\n/**\n * Creates a {@link LineString} {@link FeatureCollection} from an Array of LineString coordinates.\n *\n * @name lineStrings\n * @param {Array>>} coordinates an array of LinearRings\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array} [options.bbox] Bounding Box Array [west, south, east, north]\n * associated with the FeatureCollection\n * @param {string|number} [options.id] Identifier associated with the FeatureCollection\n * @returns {FeatureCollection} LineString FeatureCollection\n * @example\n * var linestrings = turf.lineStrings([\n * [[-24, 63], [-23, 60], [-25, 65], [-20, 69]],\n * [[-14, 43], [-13, 40], [-15, 45], [-10, 49]]\n * ]);\n *\n * //=linestrings\n */\nfunction lineStrings(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n return featureCollection(coordinates.map(function (coords) {\n return lineString(coords, properties);\n }), options);\n}\nexports.lineStrings = lineStrings;\n/**\n * Takes one or more {@link Feature|Features} and creates a {@link FeatureCollection}.\n *\n * @name featureCollection\n * @param {Feature[]} features input features\n * @param {Object} [options={}] Optional Parameters\n * @param {Array} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {FeatureCollection} FeatureCollection of Features\n * @example\n * var locationA = turf.point([-75.343, 39.984], {name: 'Location A'});\n * var locationB = turf.point([-75.833, 39.284], {name: 'Location B'});\n * var locationC = turf.point([-75.534, 39.123], {name: 'Location C'});\n *\n * var collection = turf.featureCollection([\n * locationA,\n * locationB,\n * locationC\n * ]);\n *\n * //=collection\n */\nfunction featureCollection(features, options) {\n if (options === void 0) { options = {}; }\n var fc = { type: \"FeatureCollection\" };\n if (options.id) {\n fc.id = options.id;\n }\n if (options.bbox) {\n fc.bbox = options.bbox;\n }\n fc.features = features;\n return fc;\n}\nexports.featureCollection = featureCollection;\n/**\n * Creates a {@link Feature} based on a\n * coordinate array. Properties can be added optionally.\n *\n * @name multiLineString\n * @param {Array>>} coordinates an array of LineStrings\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature} a MultiLineString feature\n * @throws {Error} if no coordinates are passed\n * @example\n * var multiLine = turf.multiLineString([[[0,0],[10,10]]]);\n *\n * //=multiLine\n */\nfunction multiLineString(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n var geom = {\n type: \"MultiLineString\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\nexports.multiLineString = multiLineString;\n/**\n * Creates a {@link Feature} based on a\n * coordinate array. Properties can be added optionally.\n *\n * @name multiPoint\n * @param {Array>} coordinates an array of Positions\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature} a MultiPoint feature\n * @throws {Error} if no coordinates are passed\n * @example\n * var multiPt = turf.multiPoint([[0,0],[10,10]]);\n *\n * //=multiPt\n */\nfunction multiPoint(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n var geom = {\n type: \"MultiPoint\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\nexports.multiPoint = multiPoint;\n/**\n * Creates a {@link Feature} based on a\n * coordinate array. Properties can be added optionally.\n *\n * @name multiPolygon\n * @param {Array>>>} coordinates an array of Polygons\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature} a multipolygon feature\n * @throws {Error} if no coordinates are passed\n * @example\n * var multiPoly = turf.multiPolygon([[[[0,0],[0,10],[10,10],[10,0],[0,0]]]]);\n *\n * //=multiPoly\n *\n */\nfunction multiPolygon(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n var geom = {\n type: \"MultiPolygon\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\nexports.multiPolygon = multiPolygon;\n/**\n * Creates a {@link Feature} based on a\n * coordinate array. Properties can be added optionally.\n *\n * @name geometryCollection\n * @param {Array} geometries an array of GeoJSON Geometries\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature} a GeoJSON GeometryCollection Feature\n * @example\n * var pt = turf.geometry(\"Point\", [100, 0]);\n * var line = turf.geometry(\"LineString\", [[101, 0], [102, 1]]);\n * var collection = turf.geometryCollection([pt, line]);\n *\n * // => collection\n */\nfunction geometryCollection(geometries, properties, options) {\n if (options === void 0) { options = {}; }\n var geom = {\n type: \"GeometryCollection\",\n geometries: geometries,\n };\n return feature(geom, properties, options);\n}\nexports.geometryCollection = geometryCollection;\n/**\n * Round number to precision\n *\n * @param {number} num Number\n * @param {number} [precision=0] Precision\n * @returns {number} rounded number\n * @example\n * turf.round(120.4321)\n * //=120\n *\n * turf.round(120.4321, 2)\n * //=120.43\n */\nfunction round(num, precision) {\n if (precision === void 0) { precision = 0; }\n if (precision && !(precision >= 0)) {\n throw new Error(\"precision must be a positive number\");\n }\n var multiplier = Math.pow(10, precision || 0);\n return Math.round(num * multiplier) / multiplier;\n}\nexports.round = round;\n/**\n * Convert a distance measurement (assuming a spherical Earth) from radians to a more friendly unit.\n * Valid units: miles, nauticalmiles, inches, yards, meters, metres, kilometers, centimeters, feet\n *\n * @name radiansToLength\n * @param {number} radians in radians across the sphere\n * @param {string} [units=\"kilometers\"] can be degrees, radians, miles, inches, yards, metres,\n * meters, kilometres, kilometers.\n * @returns {number} distance\n */\nfunction radiansToLength(radians, units) {\n if (units === void 0) { units = \"kilometers\"; }\n var factor = exports.factors[units];\n if (!factor) {\n throw new Error(units + \" units is invalid\");\n }\n return radians * factor;\n}\nexports.radiansToLength = radiansToLength;\n/**\n * Convert a distance measurement (assuming a spherical Earth) from a real-world unit into radians\n * Valid units: miles, nauticalmiles, inches, yards, meters, metres, kilometers, centimeters, feet\n *\n * @name lengthToRadians\n * @param {number} distance in real units\n * @param {string} [units=\"kilometers\"] can be degrees, radians, miles, inches, yards, metres,\n * meters, kilometres, kilometers.\n * @returns {number} radians\n */\nfunction lengthToRadians(distance, units) {\n if (units === void 0) { units = \"kilometers\"; }\n var factor = exports.factors[units];\n if (!factor) {\n throw new Error(units + \" units is invalid\");\n }\n return distance / factor;\n}\nexports.lengthToRadians = lengthToRadians;\n/**\n * Convert a distance measurement (assuming a spherical Earth) from a real-world unit into degrees\n * Valid units: miles, nauticalmiles, inches, yards, meters, metres, centimeters, kilometres, feet\n *\n * @name lengthToDegrees\n * @param {number} distance in real units\n * @param {string} [units=\"kilometers\"] can be degrees, radians, miles, inches, yards, metres,\n * meters, kilometres, kilometers.\n * @returns {number} degrees\n */\nfunction lengthToDegrees(distance, units) {\n return radiansToDegrees(lengthToRadians(distance, units));\n}\nexports.lengthToDegrees = lengthToDegrees;\n/**\n * Converts any bearing angle from the north line direction (positive clockwise)\n * and returns an angle between 0-360 degrees (positive clockwise), 0 being the north line\n *\n * @name bearingToAzimuth\n * @param {number} bearing angle, between -180 and +180 degrees\n * @returns {number} angle between 0 and 360 degrees\n */\nfunction bearingToAzimuth(bearing) {\n var angle = bearing % 360;\n if (angle < 0) {\n angle += 360;\n }\n return angle;\n}\nexports.bearingToAzimuth = bearingToAzimuth;\n/**\n * Converts an angle in radians to degrees\n *\n * @name radiansToDegrees\n * @param {number} radians angle in radians\n * @returns {number} degrees between 0 and 360 degrees\n */\nfunction radiansToDegrees(radians) {\n var degrees = radians % (2 * Math.PI);\n return (degrees * 180) / Math.PI;\n}\nexports.radiansToDegrees = radiansToDegrees;\n/**\n * Converts an angle in degrees to radians\n *\n * @name degreesToRadians\n * @param {number} degrees angle between 0 and 360 degrees\n * @returns {number} angle in radians\n */\nfunction degreesToRadians(degrees) {\n var radians = degrees % 360;\n return (radians * Math.PI) / 180;\n}\nexports.degreesToRadians = degreesToRadians;\n/**\n * Converts a length to the requested unit.\n * Valid units: miles, nauticalmiles, inches, yards, meters, metres, kilometers, centimeters, feet\n *\n * @param {number} length to be converted\n * @param {Units} [originalUnit=\"kilometers\"] of the length\n * @param {Units} [finalUnit=\"kilometers\"] returned unit\n * @returns {number} the converted length\n */\nfunction convertLength(length, originalUnit, finalUnit) {\n if (originalUnit === void 0) { originalUnit = \"kilometers\"; }\n if (finalUnit === void 0) { finalUnit = \"kilometers\"; }\n if (!(length >= 0)) {\n throw new Error(\"length must be a positive number\");\n }\n return radiansToLength(lengthToRadians(length, originalUnit), finalUnit);\n}\nexports.convertLength = convertLength;\n/**\n * Converts a area to the requested unit.\n * Valid units: kilometers, kilometres, meters, metres, centimetres, millimeters, acres, miles, yards, feet, inches, hectares\n * @param {number} area to be converted\n * @param {Units} [originalUnit=\"meters\"] of the distance\n * @param {Units} [finalUnit=\"kilometers\"] returned unit\n * @returns {number} the converted area\n */\nfunction convertArea(area, originalUnit, finalUnit) {\n if (originalUnit === void 0) { originalUnit = \"meters\"; }\n if (finalUnit === void 0) { finalUnit = \"kilometers\"; }\n if (!(area >= 0)) {\n throw new Error(\"area must be a positive number\");\n }\n var startFactor = exports.areaFactors[originalUnit];\n if (!startFactor) {\n throw new Error(\"invalid original units\");\n }\n var finalFactor = exports.areaFactors[finalUnit];\n if (!finalFactor) {\n throw new Error(\"invalid final units\");\n }\n return (area / startFactor) * finalFactor;\n}\nexports.convertArea = convertArea;\n/**\n * isNumber\n *\n * @param {*} num Number to validate\n * @returns {boolean} true/false\n * @example\n * turf.isNumber(123)\n * //=true\n * turf.isNumber('foo')\n * //=false\n */\nfunction isNumber(num) {\n return !isNaN(num) && num !== null && !Array.isArray(num);\n}\nexports.isNumber = isNumber;\n/**\n * isObject\n *\n * @param {*} input variable to validate\n * @returns {boolean} true/false\n * @example\n * turf.isObject({elevation: 10})\n * //=true\n * turf.isObject('foo')\n * //=false\n */\nfunction isObject(input) {\n return !!input && input.constructor === Object;\n}\nexports.isObject = isObject;\n/**\n * Validate BBox\n *\n * @private\n * @param {Array} bbox BBox to validate\n * @returns {void}\n * @throws Error if BBox is not valid\n * @example\n * validateBBox([-180, -40, 110, 50])\n * //=OK\n * validateBBox([-180, -40])\n * //=Error\n * validateBBox('Foo')\n * //=Error\n * validateBBox(5)\n * //=Error\n * validateBBox(null)\n * //=Error\n * validateBBox(undefined)\n * //=Error\n */\nfunction validateBBox(bbox) {\n if (!bbox) {\n throw new Error(\"bbox is required\");\n }\n if (!Array.isArray(bbox)) {\n throw new Error(\"bbox must be an Array\");\n }\n if (bbox.length !== 4 && bbox.length !== 6) {\n throw new Error(\"bbox must be an Array of 4 or 6 numbers\");\n }\n bbox.forEach(function (num) {\n if (!isNumber(num)) {\n throw new Error(\"bbox must only contain numbers\");\n }\n });\n}\nexports.validateBBox = validateBBox;\n/**\n * Validate Id\n *\n * @private\n * @param {string|number} id Id to validate\n * @returns {void}\n * @throws Error if Id is not valid\n * @example\n * validateId([-180, -40, 110, 50])\n * //=Error\n * validateId([-180, -40])\n * //=Error\n * validateId('Foo')\n * //=OK\n * validateId(5)\n * //=OK\n * validateId(null)\n * //=Error\n * validateId(undefined)\n * //=Error\n */\nfunction validateId(id) {\n if (!id) {\n throw new Error(\"id is required\");\n }\n if ([\"string\", \"number\"].indexOf(typeof id) === -1) {\n throw new Error(\"id must be a number or a string\");\n }\n}\nexports.validateId = validateId;\n\n},{}],63:[function(_dereq_,module,exports){\n'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar helpers = _dereq_('@turf/helpers');\n\n/**\n * Callback for coordEach\n *\n * @callback coordEachCallback\n * @param {Array} currentCoord The current coordinate being processed.\n * @param {number} coordIndex The current index of the coordinate being processed.\n * @param {number} featureIndex The current index of the Feature being processed.\n * @param {number} multiFeatureIndex The current index of the Multi-Feature being processed.\n * @param {number} geometryIndex The current index of the Geometry being processed.\n */\n\n/**\n * Iterate over coordinates in any GeoJSON object, similar to Array.forEach()\n *\n * @name coordEach\n * @param {FeatureCollection|Feature|Geometry} geojson any GeoJSON object\n * @param {Function} callback a method that takes (currentCoord, coordIndex, featureIndex, multiFeatureIndex)\n * @param {boolean} [excludeWrapCoord=false] whether or not to include the final coordinate of LinearRings that wraps the ring in its iteration.\n * @returns {void}\n * @example\n * var features = turf.featureCollection([\n * turf.point([26, 37], {\"foo\": \"bar\"}),\n * turf.point([36, 53], {\"hello\": \"world\"})\n * ]);\n *\n * turf.coordEach(features, function (currentCoord, coordIndex, featureIndex, multiFeatureIndex, geometryIndex) {\n * //=currentCoord\n * //=coordIndex\n * //=featureIndex\n * //=multiFeatureIndex\n * //=geometryIndex\n * });\n */\nfunction coordEach(geojson, callback, excludeWrapCoord) {\n // Handles null Geometry -- Skips this GeoJSON\n if (geojson === null) return;\n var j,\n k,\n l,\n geometry,\n stopG,\n coords,\n geometryMaybeCollection,\n wrapShrink = 0,\n coordIndex = 0,\n isGeometryCollection,\n type = geojson.type,\n isFeatureCollection = type === \"FeatureCollection\",\n isFeature = type === \"Feature\",\n stop = isFeatureCollection ? geojson.features.length : 1;\n\n // This logic may look a little weird. The reason why it is that way\n // is because it's trying to be fast. GeoJSON supports multiple kinds\n // of objects at its root: FeatureCollection, Features, Geometries.\n // This function has the responsibility of handling all of them, and that\n // means that some of the `for` loops you see below actually just don't apply\n // to certain inputs. For instance, if you give this just a\n // Point geometry, then both loops are short-circuited and all we do\n // is gradually rename the input until it's called 'geometry'.\n //\n // This also aims to allocate as few resources as possible: just a\n // few numbers and booleans, rather than any temporary arrays as would\n // be required with the normalization approach.\n for (var featureIndex = 0; featureIndex < stop; featureIndex++) {\n geometryMaybeCollection = isFeatureCollection\n ? geojson.features[featureIndex].geometry\n : isFeature\n ? geojson.geometry\n : geojson;\n isGeometryCollection = geometryMaybeCollection\n ? geometryMaybeCollection.type === \"GeometryCollection\"\n : false;\n stopG = isGeometryCollection\n ? geometryMaybeCollection.geometries.length\n : 1;\n\n for (var geomIndex = 0; geomIndex < stopG; geomIndex++) {\n var multiFeatureIndex = 0;\n var geometryIndex = 0;\n geometry = isGeometryCollection\n ? geometryMaybeCollection.geometries[geomIndex]\n : geometryMaybeCollection;\n\n // Handles null Geometry -- Skips this geometry\n if (geometry === null) continue;\n coords = geometry.coordinates;\n var geomType = geometry.type;\n\n wrapShrink =\n excludeWrapCoord &&\n (geomType === \"Polygon\" || geomType === \"MultiPolygon\")\n ? 1\n : 0;\n\n switch (geomType) {\n case null:\n break;\n case \"Point\":\n if (\n callback(\n coords,\n coordIndex,\n featureIndex,\n multiFeatureIndex,\n geometryIndex\n ) === false\n )\n return false;\n coordIndex++;\n multiFeatureIndex++;\n break;\n case \"LineString\":\n case \"MultiPoint\":\n for (j = 0; j < coords.length; j++) {\n if (\n callback(\n coords[j],\n coordIndex,\n featureIndex,\n multiFeatureIndex,\n geometryIndex\n ) === false\n )\n return false;\n coordIndex++;\n if (geomType === \"MultiPoint\") multiFeatureIndex++;\n }\n if (geomType === \"LineString\") multiFeatureIndex++;\n break;\n case \"Polygon\":\n case \"MultiLineString\":\n for (j = 0; j < coords.length; j++) {\n for (k = 0; k < coords[j].length - wrapShrink; k++) {\n if (\n callback(\n coords[j][k],\n coordIndex,\n featureIndex,\n multiFeatureIndex,\n geometryIndex\n ) === false\n )\n return false;\n coordIndex++;\n }\n if (geomType === \"MultiLineString\") multiFeatureIndex++;\n if (geomType === \"Polygon\") geometryIndex++;\n }\n if (geomType === \"Polygon\") multiFeatureIndex++;\n break;\n case \"MultiPolygon\":\n for (j = 0; j < coords.length; j++) {\n geometryIndex = 0;\n for (k = 0; k < coords[j].length; k++) {\n for (l = 0; l < coords[j][k].length - wrapShrink; l++) {\n if (\n callback(\n coords[j][k][l],\n coordIndex,\n featureIndex,\n multiFeatureIndex,\n geometryIndex\n ) === false\n )\n return false;\n coordIndex++;\n }\n geometryIndex++;\n }\n multiFeatureIndex++;\n }\n break;\n case \"GeometryCollection\":\n for (j = 0; j < geometry.geometries.length; j++)\n if (\n coordEach(geometry.geometries[j], callback, excludeWrapCoord) ===\n false\n )\n return false;\n break;\n default:\n throw new Error(\"Unknown Geometry Type\");\n }\n }\n }\n}\n\n/**\n * Callback for coordReduce\n *\n * The first time the callback function is called, the values provided as arguments depend\n * on whether the reduce method has an initialValue argument.\n *\n * If an initialValue is provided to the reduce method:\n * - The previousValue argument is initialValue.\n * - The currentValue argument is the value of the first element present in the array.\n *\n * If an initialValue is not provided:\n * - The previousValue argument is the value of the first element present in the array.\n * - The currentValue argument is the value of the second element present in the array.\n *\n * @callback coordReduceCallback\n * @param {*} previousValue The accumulated value previously returned in the last invocation\n * of the callback, or initialValue, if supplied.\n * @param {Array} currentCoord The current coordinate being processed.\n * @param {number} coordIndex The current index of the coordinate being processed.\n * Starts at index 0, if an initialValue is provided, and at index 1 otherwise.\n * @param {number} featureIndex The current index of the Feature being processed.\n * @param {number} multiFeatureIndex The current index of the Multi-Feature being processed.\n * @param {number} geometryIndex The current index of the Geometry being processed.\n */\n\n/**\n * Reduce coordinates in any GeoJSON object, similar to Array.reduce()\n *\n * @name coordReduce\n * @param {FeatureCollection|Geometry|Feature} geojson any GeoJSON object\n * @param {Function} callback a method that takes (previousValue, currentCoord, coordIndex)\n * @param {*} [initialValue] Value to use as the first argument to the first call of the callback.\n * @param {boolean} [excludeWrapCoord=false] whether or not to include the final coordinate of LinearRings that wraps the ring in its iteration.\n * @returns {*} The value that results from the reduction.\n * @example\n * var features = turf.featureCollection([\n * turf.point([26, 37], {\"foo\": \"bar\"}),\n * turf.point([36, 53], {\"hello\": \"world\"})\n * ]);\n *\n * turf.coordReduce(features, function (previousValue, currentCoord, coordIndex, featureIndex, multiFeatureIndex, geometryIndex) {\n * //=previousValue\n * //=currentCoord\n * //=coordIndex\n * //=featureIndex\n * //=multiFeatureIndex\n * //=geometryIndex\n * return currentCoord;\n * });\n */\nfunction coordReduce(geojson, callback, initialValue, excludeWrapCoord) {\n var previousValue = initialValue;\n coordEach(\n geojson,\n function (\n currentCoord,\n coordIndex,\n featureIndex,\n multiFeatureIndex,\n geometryIndex\n ) {\n if (coordIndex === 0 && initialValue === undefined)\n previousValue = currentCoord;\n else\n previousValue = callback(\n previousValue,\n currentCoord,\n coordIndex,\n featureIndex,\n multiFeatureIndex,\n geometryIndex\n );\n },\n excludeWrapCoord\n );\n return previousValue;\n}\n\n/**\n * Callback for propEach\n *\n * @callback propEachCallback\n * @param {Object} currentProperties The current Properties being processed.\n * @param {number} featureIndex The current index of the Feature being processed.\n */\n\n/**\n * Iterate over properties in any GeoJSON object, similar to Array.forEach()\n *\n * @name propEach\n * @param {FeatureCollection|Feature} geojson any GeoJSON object\n * @param {Function} callback a method that takes (currentProperties, featureIndex)\n * @returns {void}\n * @example\n * var features = turf.featureCollection([\n * turf.point([26, 37], {foo: 'bar'}),\n * turf.point([36, 53], {hello: 'world'})\n * ]);\n *\n * turf.propEach(features, function (currentProperties, featureIndex) {\n * //=currentProperties\n * //=featureIndex\n * });\n */\nfunction propEach(geojson, callback) {\n var i;\n switch (geojson.type) {\n case \"FeatureCollection\":\n for (i = 0; i < geojson.features.length; i++) {\n if (callback(geojson.features[i].properties, i) === false) break;\n }\n break;\n case \"Feature\":\n callback(geojson.properties, 0);\n break;\n }\n}\n\n/**\n * Callback for propReduce\n *\n * The first time the callback function is called, the values provided as arguments depend\n * on whether the reduce method has an initialValue argument.\n *\n * If an initialValue is provided to the reduce method:\n * - The previousValue argument is initialValue.\n * - The currentValue argument is the value of the first element present in the array.\n *\n * If an initialValue is not provided:\n * - The previousValue argument is the value of the first element present in the array.\n * - The currentValue argument is the value of the second element present in the array.\n *\n * @callback propReduceCallback\n * @param {*} previousValue The accumulated value previously returned in the last invocation\n * of the callback, or initialValue, if supplied.\n * @param {*} currentProperties The current Properties being processed.\n * @param {number} featureIndex The current index of the Feature being processed.\n */\n\n/**\n * Reduce properties in any GeoJSON object into a single value,\n * similar to how Array.reduce works. However, in this case we lazily run\n * the reduction, so an array of all properties is unnecessary.\n *\n * @name propReduce\n * @param {FeatureCollection|Feature} geojson any GeoJSON object\n * @param {Function} callback a method that takes (previousValue, currentProperties, featureIndex)\n * @param {*} [initialValue] Value to use as the first argument to the first call of the callback.\n * @returns {*} The value that results from the reduction.\n * @example\n * var features = turf.featureCollection([\n * turf.point([26, 37], {foo: 'bar'}),\n * turf.point([36, 53], {hello: 'world'})\n * ]);\n *\n * turf.propReduce(features, function (previousValue, currentProperties, featureIndex) {\n * //=previousValue\n * //=currentProperties\n * //=featureIndex\n * return currentProperties\n * });\n */\nfunction propReduce(geojson, callback, initialValue) {\n var previousValue = initialValue;\n propEach(geojson, function (currentProperties, featureIndex) {\n if (featureIndex === 0 && initialValue === undefined)\n previousValue = currentProperties;\n else\n previousValue = callback(previousValue, currentProperties, featureIndex);\n });\n return previousValue;\n}\n\n/**\n * Callback for featureEach\n *\n * @callback featureEachCallback\n * @param {Feature} currentFeature The current Feature being processed.\n * @param {number} featureIndex The current index of the Feature being processed.\n */\n\n/**\n * Iterate over features in any GeoJSON object, similar to\n * Array.forEach.\n *\n * @name featureEach\n * @param {FeatureCollection|Feature|Geometry} geojson any GeoJSON object\n * @param {Function} callback a method that takes (currentFeature, featureIndex)\n * @returns {void}\n * @example\n * var features = turf.featureCollection([\n * turf.point([26, 37], {foo: 'bar'}),\n * turf.point([36, 53], {hello: 'world'})\n * ]);\n *\n * turf.featureEach(features, function (currentFeature, featureIndex) {\n * //=currentFeature\n * //=featureIndex\n * });\n */\nfunction featureEach(geojson, callback) {\n if (geojson.type === \"Feature\") {\n callback(geojson, 0);\n } else if (geojson.type === \"FeatureCollection\") {\n for (var i = 0; i < geojson.features.length; i++) {\n if (callback(geojson.features[i], i) === false) break;\n }\n }\n}\n\n/**\n * Callback for featureReduce\n *\n * The first time the callback function is called, the values provided as arguments depend\n * on whether the reduce method has an initialValue argument.\n *\n * If an initialValue is provided to the reduce method:\n * - The previousValue argument is initialValue.\n * - The currentValue argument is the value of the first element present in the array.\n *\n * If an initialValue is not provided:\n * - The previousValue argument is the value of the first element present in the array.\n * - The currentValue argument is the value of the second element present in the array.\n *\n * @callback featureReduceCallback\n * @param {*} previousValue The accumulated value previously returned in the last invocation\n * of the callback, or initialValue, if supplied.\n * @param {Feature} currentFeature The current Feature being processed.\n * @param {number} featureIndex The current index of the Feature being processed.\n */\n\n/**\n * Reduce features in any GeoJSON object, similar to Array.reduce().\n *\n * @name featureReduce\n * @param {FeatureCollection|Feature|Geometry} geojson any GeoJSON object\n * @param {Function} callback a method that takes (previousValue, currentFeature, featureIndex)\n * @param {*} [initialValue] Value to use as the first argument to the first call of the callback.\n * @returns {*} The value that results from the reduction.\n * @example\n * var features = turf.featureCollection([\n * turf.point([26, 37], {\"foo\": \"bar\"}),\n * turf.point([36, 53], {\"hello\": \"world\"})\n * ]);\n *\n * turf.featureReduce(features, function (previousValue, currentFeature, featureIndex) {\n * //=previousValue\n * //=currentFeature\n * //=featureIndex\n * return currentFeature\n * });\n */\nfunction featureReduce(geojson, callback, initialValue) {\n var previousValue = initialValue;\n featureEach(geojson, function (currentFeature, featureIndex) {\n if (featureIndex === 0 && initialValue === undefined)\n previousValue = currentFeature;\n else previousValue = callback(previousValue, currentFeature, featureIndex);\n });\n return previousValue;\n}\n\n/**\n * Get all coordinates from any GeoJSON object.\n *\n * @name coordAll\n * @param {FeatureCollection|Feature|Geometry} geojson any GeoJSON object\n * @returns {Array>} coordinate position array\n * @example\n * var features = turf.featureCollection([\n * turf.point([26, 37], {foo: 'bar'}),\n * turf.point([36, 53], {hello: 'world'})\n * ]);\n *\n * var coords = turf.coordAll(features);\n * //= [[26, 37], [36, 53]]\n */\nfunction coordAll(geojson) {\n var coords = [];\n coordEach(geojson, function (coord) {\n coords.push(coord);\n });\n return coords;\n}\n\n/**\n * Callback for geomEach\n *\n * @callback geomEachCallback\n * @param {Geometry} currentGeometry The current Geometry being processed.\n * @param {number} featureIndex The current index of the Feature being processed.\n * @param {Object} featureProperties The current Feature Properties being processed.\n * @param {Array} featureBBox The current Feature BBox being processed.\n * @param {number|string} featureId The current Feature Id being processed.\n */\n\n/**\n * Iterate over each geometry in any GeoJSON object, similar to Array.forEach()\n *\n * @name geomEach\n * @param {FeatureCollection|Feature|Geometry} geojson any GeoJSON object\n * @param {Function} callback a method that takes (currentGeometry, featureIndex, featureProperties, featureBBox, featureId)\n * @returns {void}\n * @example\n * var features = turf.featureCollection([\n * turf.point([26, 37], {foo: 'bar'}),\n * turf.point([36, 53], {hello: 'world'})\n * ]);\n *\n * turf.geomEach(features, function (currentGeometry, featureIndex, featureProperties, featureBBox, featureId) {\n * //=currentGeometry\n * //=featureIndex\n * //=featureProperties\n * //=featureBBox\n * //=featureId\n * });\n */\nfunction geomEach(geojson, callback) {\n var i,\n j,\n g,\n geometry,\n stopG,\n geometryMaybeCollection,\n isGeometryCollection,\n featureProperties,\n featureBBox,\n featureId,\n featureIndex = 0,\n isFeatureCollection = geojson.type === \"FeatureCollection\",\n isFeature = geojson.type === \"Feature\",\n stop = isFeatureCollection ? geojson.features.length : 1;\n\n // This logic may look a little weird. The reason why it is that way\n // is because it's trying to be fast. GeoJSON supports multiple kinds\n // of objects at its root: FeatureCollection, Features, Geometries.\n // This function has the responsibility of handling all of them, and that\n // means that some of the `for` loops you see below actually just don't apply\n // to certain inputs. For instance, if you give this just a\n // Point geometry, then both loops are short-circuited and all we do\n // is gradually rename the input until it's called 'geometry'.\n //\n // This also aims to allocate as few resources as possible: just a\n // few numbers and booleans, rather than any temporary arrays as would\n // be required with the normalization approach.\n for (i = 0; i < stop; i++) {\n geometryMaybeCollection = isFeatureCollection\n ? geojson.features[i].geometry\n : isFeature\n ? geojson.geometry\n : geojson;\n featureProperties = isFeatureCollection\n ? geojson.features[i].properties\n : isFeature\n ? geojson.properties\n : {};\n featureBBox = isFeatureCollection\n ? geojson.features[i].bbox\n : isFeature\n ? geojson.bbox\n : undefined;\n featureId = isFeatureCollection\n ? geojson.features[i].id\n : isFeature\n ? geojson.id\n : undefined;\n isGeometryCollection = geometryMaybeCollection\n ? geometryMaybeCollection.type === \"GeometryCollection\"\n : false;\n stopG = isGeometryCollection\n ? geometryMaybeCollection.geometries.length\n : 1;\n\n for (g = 0; g < stopG; g++) {\n geometry = isGeometryCollection\n ? geometryMaybeCollection.geometries[g]\n : geometryMaybeCollection;\n\n // Handle null Geometry\n if (geometry === null) {\n if (\n callback(\n null,\n featureIndex,\n featureProperties,\n featureBBox,\n featureId\n ) === false\n )\n return false;\n continue;\n }\n switch (geometry.type) {\n case \"Point\":\n case \"LineString\":\n case \"MultiPoint\":\n case \"Polygon\":\n case \"MultiLineString\":\n case \"MultiPolygon\": {\n if (\n callback(\n geometry,\n featureIndex,\n featureProperties,\n featureBBox,\n featureId\n ) === false\n )\n return false;\n break;\n }\n case \"GeometryCollection\": {\n for (j = 0; j < geometry.geometries.length; j++) {\n if (\n callback(\n geometry.geometries[j],\n featureIndex,\n featureProperties,\n featureBBox,\n featureId\n ) === false\n )\n return false;\n }\n break;\n }\n default:\n throw new Error(\"Unknown Geometry Type\");\n }\n }\n // Only increase `featureIndex` per each feature\n featureIndex++;\n }\n}\n\n/**\n * Callback for geomReduce\n *\n * The first time the callback function is called, the values provided as arguments depend\n * on whether the reduce method has an initialValue argument.\n *\n * If an initialValue is provided to the reduce method:\n * - The previousValue argument is initialValue.\n * - The currentValue argument is the value of the first element present in the array.\n *\n * If an initialValue is not provided:\n * - The previousValue argument is the value of the first element present in the array.\n * - The currentValue argument is the value of the second element present in the array.\n *\n * @callback geomReduceCallback\n * @param {*} previousValue The accumulated value previously returned in the last invocation\n * of the callback, or initialValue, if supplied.\n * @param {Geometry} currentGeometry The current Geometry being processed.\n * @param {number} featureIndex The current index of the Feature being processed.\n * @param {Object} featureProperties The current Feature Properties being processed.\n * @param {Array} featureBBox The current Feature BBox being processed.\n * @param {number|string} featureId The current Feature Id being processed.\n */\n\n/**\n * Reduce geometry in any GeoJSON object, similar to Array.reduce().\n *\n * @name geomReduce\n * @param {FeatureCollection|Feature|Geometry} geojson any GeoJSON object\n * @param {Function} callback a method that takes (previousValue, currentGeometry, featureIndex, featureProperties, featureBBox, featureId)\n * @param {*} [initialValue] Value to use as the first argument to the first call of the callback.\n * @returns {*} The value that results from the reduction.\n * @example\n * var features = turf.featureCollection([\n * turf.point([26, 37], {foo: 'bar'}),\n * turf.point([36, 53], {hello: 'world'})\n * ]);\n *\n * turf.geomReduce(features, function (previousValue, currentGeometry, featureIndex, featureProperties, featureBBox, featureId) {\n * //=previousValue\n * //=currentGeometry\n * //=featureIndex\n * //=featureProperties\n * //=featureBBox\n * //=featureId\n * return currentGeometry\n * });\n */\nfunction geomReduce(geojson, callback, initialValue) {\n var previousValue = initialValue;\n geomEach(\n geojson,\n function (\n currentGeometry,\n featureIndex,\n featureProperties,\n featureBBox,\n featureId\n ) {\n if (featureIndex === 0 && initialValue === undefined)\n previousValue = currentGeometry;\n else\n previousValue = callback(\n previousValue,\n currentGeometry,\n featureIndex,\n featureProperties,\n featureBBox,\n featureId\n );\n }\n );\n return previousValue;\n}\n\n/**\n * Callback for flattenEach\n *\n * @callback flattenEachCallback\n * @param {Feature} currentFeature The current flattened feature being processed.\n * @param {number} featureIndex The current index of the Feature being processed.\n * @param {number} multiFeatureIndex The current index of the Multi-Feature being processed.\n */\n\n/**\n * Iterate over flattened features in any GeoJSON object, similar to\n * Array.forEach.\n *\n * @name flattenEach\n * @param {FeatureCollection|Feature|Geometry} geojson any GeoJSON object\n * @param {Function} callback a method that takes (currentFeature, featureIndex, multiFeatureIndex)\n * @example\n * var features = turf.featureCollection([\n * turf.point([26, 37], {foo: 'bar'}),\n * turf.multiPoint([[40, 30], [36, 53]], {hello: 'world'})\n * ]);\n *\n * turf.flattenEach(features, function (currentFeature, featureIndex, multiFeatureIndex) {\n * //=currentFeature\n * //=featureIndex\n * //=multiFeatureIndex\n * });\n */\nfunction flattenEach(geojson, callback) {\n geomEach(geojson, function (geometry, featureIndex, properties, bbox, id) {\n // Callback for single geometry\n var type = geometry === null ? null : geometry.type;\n switch (type) {\n case null:\n case \"Point\":\n case \"LineString\":\n case \"Polygon\":\n if (\n callback(\n helpers.feature(geometry, properties, { bbox: bbox, id: id }),\n featureIndex,\n 0\n ) === false\n )\n return false;\n return;\n }\n\n var geomType;\n\n // Callback for multi-geometry\n switch (type) {\n case \"MultiPoint\":\n geomType = \"Point\";\n break;\n case \"MultiLineString\":\n geomType = \"LineString\";\n break;\n case \"MultiPolygon\":\n geomType = \"Polygon\";\n break;\n }\n\n for (\n var multiFeatureIndex = 0;\n multiFeatureIndex < geometry.coordinates.length;\n multiFeatureIndex++\n ) {\n var coordinate = geometry.coordinates[multiFeatureIndex];\n var geom = {\n type: geomType,\n coordinates: coordinate,\n };\n if (\n callback(helpers.feature(geom, properties), featureIndex, multiFeatureIndex) ===\n false\n )\n return false;\n }\n });\n}\n\n/**\n * Callback for flattenReduce\n *\n * The first time the callback function is called, the values provided as arguments depend\n * on whether the reduce method has an initialValue argument.\n *\n * If an initialValue is provided to the reduce method:\n * - The previousValue argument is initialValue.\n * - The currentValue argument is the value of the first element present in the array.\n *\n * If an initialValue is not provided:\n * - The previousValue argument is the value of the first element present in the array.\n * - The currentValue argument is the value of the second element present in the array.\n *\n * @callback flattenReduceCallback\n * @param {*} previousValue The accumulated value previously returned in the last invocation\n * of the callback, or initialValue, if supplied.\n * @param {Feature} currentFeature The current Feature being processed.\n * @param {number} featureIndex The current index of the Feature being processed.\n * @param {number} multiFeatureIndex The current index of the Multi-Feature being processed.\n */\n\n/**\n * Reduce flattened features in any GeoJSON object, similar to Array.reduce().\n *\n * @name flattenReduce\n * @param {FeatureCollection|Feature|Geometry} geojson any GeoJSON object\n * @param {Function} callback a method that takes (previousValue, currentFeature, featureIndex, multiFeatureIndex)\n * @param {*} [initialValue] Value to use as the first argument to the first call of the callback.\n * @returns {*} The value that results from the reduction.\n * @example\n * var features = turf.featureCollection([\n * turf.point([26, 37], {foo: 'bar'}),\n * turf.multiPoint([[40, 30], [36, 53]], {hello: 'world'})\n * ]);\n *\n * turf.flattenReduce(features, function (previousValue, currentFeature, featureIndex, multiFeatureIndex) {\n * //=previousValue\n * //=currentFeature\n * //=featureIndex\n * //=multiFeatureIndex\n * return currentFeature\n * });\n */\nfunction flattenReduce(geojson, callback, initialValue) {\n var previousValue = initialValue;\n flattenEach(\n geojson,\n function (currentFeature, featureIndex, multiFeatureIndex) {\n if (\n featureIndex === 0 &&\n multiFeatureIndex === 0 &&\n initialValue === undefined\n )\n previousValue = currentFeature;\n else\n previousValue = callback(\n previousValue,\n currentFeature,\n featureIndex,\n multiFeatureIndex\n );\n }\n );\n return previousValue;\n}\n\n/**\n * Callback for segmentEach\n *\n * @callback segmentEachCallback\n * @param {Feature} currentSegment The current Segment being processed.\n * @param {number} featureIndex The current index of the Feature being processed.\n * @param {number} multiFeatureIndex The current index of the Multi-Feature being processed.\n * @param {number} geometryIndex The current index of the Geometry being processed.\n * @param {number} segmentIndex The current index of the Segment being processed.\n * @returns {void}\n */\n\n/**\n * Iterate over 2-vertex line segment in any GeoJSON object, similar to Array.forEach()\n * (Multi)Point geometries do not contain segments therefore they are ignored during this operation.\n *\n * @param {FeatureCollection|Feature|Geometry} geojson any GeoJSON\n * @param {Function} callback a method that takes (currentSegment, featureIndex, multiFeatureIndex, geometryIndex, segmentIndex)\n * @returns {void}\n * @example\n * var polygon = turf.polygon([[[-50, 5], [-40, -10], [-50, -10], [-40, 5], [-50, 5]]]);\n *\n * // Iterate over GeoJSON by 2-vertex segments\n * turf.segmentEach(polygon, function (currentSegment, featureIndex, multiFeatureIndex, geometryIndex, segmentIndex) {\n * //=currentSegment\n * //=featureIndex\n * //=multiFeatureIndex\n * //=geometryIndex\n * //=segmentIndex\n * });\n *\n * // Calculate the total number of segments\n * var total = 0;\n * turf.segmentEach(polygon, function () {\n * total++;\n * });\n */\nfunction segmentEach(geojson, callback) {\n flattenEach(geojson, function (feature, featureIndex, multiFeatureIndex) {\n var segmentIndex = 0;\n\n // Exclude null Geometries\n if (!feature.geometry) return;\n // (Multi)Point geometries do not contain segments therefore they are ignored during this operation.\n var type = feature.geometry.type;\n if (type === \"Point\" || type === \"MultiPoint\") return;\n\n // Generate 2-vertex line segments\n var previousCoords;\n var previousFeatureIndex = 0;\n var previousMultiIndex = 0;\n var prevGeomIndex = 0;\n if (\n coordEach(\n feature,\n function (\n currentCoord,\n coordIndex,\n featureIndexCoord,\n multiPartIndexCoord,\n geometryIndex\n ) {\n // Simulating a meta.coordReduce() since `reduce` operations cannot be stopped by returning `false`\n if (\n previousCoords === undefined ||\n featureIndex > previousFeatureIndex ||\n multiPartIndexCoord > previousMultiIndex ||\n geometryIndex > prevGeomIndex\n ) {\n previousCoords = currentCoord;\n previousFeatureIndex = featureIndex;\n previousMultiIndex = multiPartIndexCoord;\n prevGeomIndex = geometryIndex;\n segmentIndex = 0;\n return;\n }\n var currentSegment = helpers.lineString(\n [previousCoords, currentCoord],\n feature.properties\n );\n if (\n callback(\n currentSegment,\n featureIndex,\n multiFeatureIndex,\n geometryIndex,\n segmentIndex\n ) === false\n )\n return false;\n segmentIndex++;\n previousCoords = currentCoord;\n }\n ) === false\n )\n return false;\n });\n}\n\n/**\n * Callback for segmentReduce\n *\n * The first time the callback function is called, the values provided as arguments depend\n * on whether the reduce method has an initialValue argument.\n *\n * If an initialValue is provided to the reduce method:\n * - The previousValue argument is initialValue.\n * - The currentValue argument is the value of the first element present in the array.\n *\n * If an initialValue is not provided:\n * - The previousValue argument is the value of the first element present in the array.\n * - The currentValue argument is the value of the second element present in the array.\n *\n * @callback segmentReduceCallback\n * @param {*} previousValue The accumulated value previously returned in the last invocation\n * of the callback, or initialValue, if supplied.\n * @param {Feature} currentSegment The current Segment being processed.\n * @param {number} featureIndex The current index of the Feature being processed.\n * @param {number} multiFeatureIndex The current index of the Multi-Feature being processed.\n * @param {number} geometryIndex The current index of the Geometry being processed.\n * @param {number} segmentIndex The current index of the Segment being processed.\n */\n\n/**\n * Reduce 2-vertex line segment in any GeoJSON object, similar to Array.reduce()\n * (Multi)Point geometries do not contain segments therefore they are ignored during this operation.\n *\n * @param {FeatureCollection|Feature|Geometry} geojson any GeoJSON\n * @param {Function} callback a method that takes (previousValue, currentSegment, currentIndex)\n * @param {*} [initialValue] Value to use as the first argument to the first call of the callback.\n * @returns {void}\n * @example\n * var polygon = turf.polygon([[[-50, 5], [-40, -10], [-50, -10], [-40, 5], [-50, 5]]]);\n *\n * // Iterate over GeoJSON by 2-vertex segments\n * turf.segmentReduce(polygon, function (previousSegment, currentSegment, featureIndex, multiFeatureIndex, geometryIndex, segmentIndex) {\n * //= previousSegment\n * //= currentSegment\n * //= featureIndex\n * //= multiFeatureIndex\n * //= geometryIndex\n * //= segmentIndex\n * return currentSegment\n * });\n *\n * // Calculate the total number of segments\n * var initialValue = 0\n * var total = turf.segmentReduce(polygon, function (previousValue) {\n * previousValue++;\n * return previousValue;\n * }, initialValue);\n */\nfunction segmentReduce(geojson, callback, initialValue) {\n var previousValue = initialValue;\n var started = false;\n segmentEach(\n geojson,\n function (\n currentSegment,\n featureIndex,\n multiFeatureIndex,\n geometryIndex,\n segmentIndex\n ) {\n if (started === false && initialValue === undefined)\n previousValue = currentSegment;\n else\n previousValue = callback(\n previousValue,\n currentSegment,\n featureIndex,\n multiFeatureIndex,\n geometryIndex,\n segmentIndex\n );\n started = true;\n }\n );\n return previousValue;\n}\n\n/**\n * Callback for lineEach\n *\n * @callback lineEachCallback\n * @param {Feature} currentLine The current LineString|LinearRing being processed\n * @param {number} featureIndex The current index of the Feature being processed\n * @param {number} multiFeatureIndex The current index of the Multi-Feature being processed\n * @param {number} geometryIndex The current index of the Geometry being processed\n */\n\n/**\n * Iterate over line or ring coordinates in LineString, Polygon, MultiLineString, MultiPolygon Features or Geometries,\n * similar to Array.forEach.\n *\n * @name lineEach\n * @param {Geometry|Feature} geojson object\n * @param {Function} callback a method that takes (currentLine, featureIndex, multiFeatureIndex, geometryIndex)\n * @example\n * var multiLine = turf.multiLineString([\n * [[26, 37], [35, 45]],\n * [[36, 53], [38, 50], [41, 55]]\n * ]);\n *\n * turf.lineEach(multiLine, function (currentLine, featureIndex, multiFeatureIndex, geometryIndex) {\n * //=currentLine\n * //=featureIndex\n * //=multiFeatureIndex\n * //=geometryIndex\n * });\n */\nfunction lineEach(geojson, callback) {\n // validation\n if (!geojson) throw new Error(\"geojson is required\");\n\n flattenEach(geojson, function (feature, featureIndex, multiFeatureIndex) {\n if (feature.geometry === null) return;\n var type = feature.geometry.type;\n var coords = feature.geometry.coordinates;\n switch (type) {\n case \"LineString\":\n if (callback(feature, featureIndex, multiFeatureIndex, 0, 0) === false)\n return false;\n break;\n case \"Polygon\":\n for (\n var geometryIndex = 0;\n geometryIndex < coords.length;\n geometryIndex++\n ) {\n if (\n callback(\n helpers.lineString(coords[geometryIndex], feature.properties),\n featureIndex,\n multiFeatureIndex,\n geometryIndex\n ) === false\n )\n return false;\n }\n break;\n }\n });\n}\n\n/**\n * Callback for lineReduce\n *\n * The first time the callback function is called, the values provided as arguments depend\n * on whether the reduce method has an initialValue argument.\n *\n * If an initialValue is provided to the reduce method:\n * - The previousValue argument is initialValue.\n * - The currentValue argument is the value of the first element present in the array.\n *\n * If an initialValue is not provided:\n * - The previousValue argument is the value of the first element present in the array.\n * - The currentValue argument is the value of the second element present in the array.\n *\n * @callback lineReduceCallback\n * @param {*} previousValue The accumulated value previously returned in the last invocation\n * of the callback, or initialValue, if supplied.\n * @param {Feature} currentLine The current LineString|LinearRing being processed.\n * @param {number} featureIndex The current index of the Feature being processed\n * @param {number} multiFeatureIndex The current index of the Multi-Feature being processed\n * @param {number} geometryIndex The current index of the Geometry being processed\n */\n\n/**\n * Reduce features in any GeoJSON object, similar to Array.reduce().\n *\n * @name lineReduce\n * @param {Geometry|Feature} geojson object\n * @param {Function} callback a method that takes (previousValue, currentLine, featureIndex, multiFeatureIndex, geometryIndex)\n * @param {*} [initialValue] Value to use as the first argument to the first call of the callback.\n * @returns {*} The value that results from the reduction.\n * @example\n * var multiPoly = turf.multiPolygon([\n * turf.polygon([[[12,48],[2,41],[24,38],[12,48]], [[9,44],[13,41],[13,45],[9,44]]]),\n * turf.polygon([[[5, 5], [0, 0], [2, 2], [4, 4], [5, 5]]])\n * ]);\n *\n * turf.lineReduce(multiPoly, function (previousValue, currentLine, featureIndex, multiFeatureIndex, geometryIndex) {\n * //=previousValue\n * //=currentLine\n * //=featureIndex\n * //=multiFeatureIndex\n * //=geometryIndex\n * return currentLine\n * });\n */\nfunction lineReduce(geojson, callback, initialValue) {\n var previousValue = initialValue;\n lineEach(\n geojson,\n function (currentLine, featureIndex, multiFeatureIndex, geometryIndex) {\n if (featureIndex === 0 && initialValue === undefined)\n previousValue = currentLine;\n else\n previousValue = callback(\n previousValue,\n currentLine,\n featureIndex,\n multiFeatureIndex,\n geometryIndex\n );\n }\n );\n return previousValue;\n}\n\n/**\n * Finds a particular 2-vertex LineString Segment from a GeoJSON using `@turf/meta` indexes.\n *\n * Negative indexes are permitted.\n * Point & MultiPoint will always return null.\n *\n * @param {FeatureCollection|Feature|Geometry} geojson Any GeoJSON Feature or Geometry\n * @param {Object} [options={}] Optional parameters\n * @param {number} [options.featureIndex=0] Feature Index\n * @param {number} [options.multiFeatureIndex=0] Multi-Feature Index\n * @param {number} [options.geometryIndex=0] Geometry Index\n * @param {number} [options.segmentIndex=0] Segment Index\n * @param {Object} [options.properties={}] Translate Properties to output LineString\n * @param {BBox} [options.bbox={}] Translate BBox to output LineString\n * @param {number|string} [options.id={}] Translate Id to output LineString\n * @returns {Feature} 2-vertex GeoJSON Feature LineString\n * @example\n * var multiLine = turf.multiLineString([\n * [[10, 10], [50, 30], [30, 40]],\n * [[-10, -10], [-50, -30], [-30, -40]]\n * ]);\n *\n * // First Segment (defaults are 0)\n * turf.findSegment(multiLine);\n * // => Feature>\n *\n * // First Segment of 2nd Multi Feature\n * turf.findSegment(multiLine, {multiFeatureIndex: 1});\n * // => Feature>\n *\n * // Last Segment of Last Multi Feature\n * turf.findSegment(multiLine, {multiFeatureIndex: -1, segmentIndex: -1});\n * // => Feature>\n */\nfunction findSegment(geojson, options) {\n // Optional Parameters\n options = options || {};\n if (!helpers.isObject(options)) throw new Error(\"options is invalid\");\n var featureIndex = options.featureIndex || 0;\n var multiFeatureIndex = options.multiFeatureIndex || 0;\n var geometryIndex = options.geometryIndex || 0;\n var segmentIndex = options.segmentIndex || 0;\n\n // Find FeatureIndex\n var properties = options.properties;\n var geometry;\n\n switch (geojson.type) {\n case \"FeatureCollection\":\n if (featureIndex < 0)\n featureIndex = geojson.features.length + featureIndex;\n properties = properties || geojson.features[featureIndex].properties;\n geometry = geojson.features[featureIndex].geometry;\n break;\n case \"Feature\":\n properties = properties || geojson.properties;\n geometry = geojson.geometry;\n break;\n case \"Point\":\n case \"MultiPoint\":\n return null;\n case \"LineString\":\n case \"Polygon\":\n case \"MultiLineString\":\n case \"MultiPolygon\":\n geometry = geojson;\n break;\n default:\n throw new Error(\"geojson is invalid\");\n }\n\n // Find SegmentIndex\n if (geometry === null) return null;\n var coords = geometry.coordinates;\n switch (geometry.type) {\n case \"Point\":\n case \"MultiPoint\":\n return null;\n case \"LineString\":\n if (segmentIndex < 0) segmentIndex = coords.length + segmentIndex - 1;\n return helpers.lineString(\n [coords[segmentIndex], coords[segmentIndex + 1]],\n properties,\n options\n );\n case \"Polygon\":\n if (geometryIndex < 0) geometryIndex = coords.length + geometryIndex;\n if (segmentIndex < 0)\n segmentIndex = coords[geometryIndex].length + segmentIndex - 1;\n return helpers.lineString(\n [\n coords[geometryIndex][segmentIndex],\n coords[geometryIndex][segmentIndex + 1],\n ],\n properties,\n options\n );\n case \"MultiLineString\":\n if (multiFeatureIndex < 0)\n multiFeatureIndex = coords.length + multiFeatureIndex;\n if (segmentIndex < 0)\n segmentIndex = coords[multiFeatureIndex].length + segmentIndex - 1;\n return helpers.lineString(\n [\n coords[multiFeatureIndex][segmentIndex],\n coords[multiFeatureIndex][segmentIndex + 1],\n ],\n properties,\n options\n );\n case \"MultiPolygon\":\n if (multiFeatureIndex < 0)\n multiFeatureIndex = coords.length + multiFeatureIndex;\n if (geometryIndex < 0)\n geometryIndex = coords[multiFeatureIndex].length + geometryIndex;\n if (segmentIndex < 0)\n segmentIndex =\n coords[multiFeatureIndex][geometryIndex].length - segmentIndex - 1;\n return helpers.lineString(\n [\n coords[multiFeatureIndex][geometryIndex][segmentIndex],\n coords[multiFeatureIndex][geometryIndex][segmentIndex + 1],\n ],\n properties,\n options\n );\n }\n throw new Error(\"geojson is invalid\");\n}\n\n/**\n * Finds a particular Point from a GeoJSON using `@turf/meta` indexes.\n *\n * Negative indexes are permitted.\n *\n * @param {FeatureCollection|Feature|Geometry} geojson Any GeoJSON Feature or Geometry\n * @param {Object} [options={}] Optional parameters\n * @param {number} [options.featureIndex=0] Feature Index\n * @param {number} [options.multiFeatureIndex=0] Multi-Feature Index\n * @param {number} [options.geometryIndex=0] Geometry Index\n * @param {number} [options.coordIndex=0] Coord Index\n * @param {Object} [options.properties={}] Translate Properties to output Point\n * @param {BBox} [options.bbox={}] Translate BBox to output Point\n * @param {number|string} [options.id={}] Translate Id to output Point\n * @returns {Feature} 2-vertex GeoJSON Feature Point\n * @example\n * var multiLine = turf.multiLineString([\n * [[10, 10], [50, 30], [30, 40]],\n * [[-10, -10], [-50, -30], [-30, -40]]\n * ]);\n *\n * // First Segment (defaults are 0)\n * turf.findPoint(multiLine);\n * // => Feature>\n *\n * // First Segment of the 2nd Multi-Feature\n * turf.findPoint(multiLine, {multiFeatureIndex: 1});\n * // => Feature>\n *\n * // Last Segment of last Multi-Feature\n * turf.findPoint(multiLine, {multiFeatureIndex: -1, coordIndex: -1});\n * // => Feature>\n */\nfunction findPoint(geojson, options) {\n // Optional Parameters\n options = options || {};\n if (!helpers.isObject(options)) throw new Error(\"options is invalid\");\n var featureIndex = options.featureIndex || 0;\n var multiFeatureIndex = options.multiFeatureIndex || 0;\n var geometryIndex = options.geometryIndex || 0;\n var coordIndex = options.coordIndex || 0;\n\n // Find FeatureIndex\n var properties = options.properties;\n var geometry;\n\n switch (geojson.type) {\n case \"FeatureCollection\":\n if (featureIndex < 0)\n featureIndex = geojson.features.length + featureIndex;\n properties = properties || geojson.features[featureIndex].properties;\n geometry = geojson.features[featureIndex].geometry;\n break;\n case \"Feature\":\n properties = properties || geojson.properties;\n geometry = geojson.geometry;\n break;\n case \"Point\":\n case \"MultiPoint\":\n return null;\n case \"LineString\":\n case \"Polygon\":\n case \"MultiLineString\":\n case \"MultiPolygon\":\n geometry = geojson;\n break;\n default:\n throw new Error(\"geojson is invalid\");\n }\n\n // Find Coord Index\n if (geometry === null) return null;\n var coords = geometry.coordinates;\n switch (geometry.type) {\n case \"Point\":\n return helpers.point(coords, properties, options);\n case \"MultiPoint\":\n if (multiFeatureIndex < 0)\n multiFeatureIndex = coords.length + multiFeatureIndex;\n return helpers.point(coords[multiFeatureIndex], properties, options);\n case \"LineString\":\n if (coordIndex < 0) coordIndex = coords.length + coordIndex;\n return helpers.point(coords[coordIndex], properties, options);\n case \"Polygon\":\n if (geometryIndex < 0) geometryIndex = coords.length + geometryIndex;\n if (coordIndex < 0)\n coordIndex = coords[geometryIndex].length + coordIndex;\n return helpers.point(coords[geometryIndex][coordIndex], properties, options);\n case \"MultiLineString\":\n if (multiFeatureIndex < 0)\n multiFeatureIndex = coords.length + multiFeatureIndex;\n if (coordIndex < 0)\n coordIndex = coords[multiFeatureIndex].length + coordIndex;\n return helpers.point(coords[multiFeatureIndex][coordIndex], properties, options);\n case \"MultiPolygon\":\n if (multiFeatureIndex < 0)\n multiFeatureIndex = coords.length + multiFeatureIndex;\n if (geometryIndex < 0)\n geometryIndex = coords[multiFeatureIndex].length + geometryIndex;\n if (coordIndex < 0)\n coordIndex =\n coords[multiFeatureIndex][geometryIndex].length - coordIndex;\n return helpers.point(\n coords[multiFeatureIndex][geometryIndex][coordIndex],\n properties,\n options\n );\n }\n throw new Error(\"geojson is invalid\");\n}\n\nexports.coordEach = coordEach;\nexports.coordReduce = coordReduce;\nexports.propEach = propEach;\nexports.propReduce = propReduce;\nexports.featureEach = featureEach;\nexports.featureReduce = featureReduce;\nexports.coordAll = coordAll;\nexports.geomEach = geomEach;\nexports.geomReduce = geomReduce;\nexports.flattenEach = flattenEach;\nexports.flattenReduce = flattenReduce;\nexports.segmentEach = segmentEach;\nexports.segmentReduce = segmentReduce;\nexports.lineEach = lineEach;\nexports.lineReduce = lineReduce;\nexports.findSegment = findSegment;\nexports.findPoint = findPoint;\n\n},{\"@turf/helpers\":62}],64:[function(_dereq_,module,exports){\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar meta_1 = _dereq_(\"@turf/meta\");\n/**\n * Takes a set of features, calculates the bbox of all input features, and returns a bounding box.\n *\n * @name bbox\n * @param {GeoJSON} geojson any GeoJSON object\n * @returns {BBox} bbox extent in [minX, minY, maxX, maxY] order\n * @example\n * var line = turf.lineString([[-74, 40], [-78, 42], [-82, 35]]);\n * var bbox = turf.bbox(line);\n * var bboxPolygon = turf.bboxPolygon(bbox);\n *\n * //addToMap\n * var addToMap = [line, bboxPolygon]\n */\nfunction bbox(geojson) {\n var result = [Infinity, Infinity, -Infinity, -Infinity];\n meta_1.coordEach(geojson, function (coord) {\n if (result[0] > coord[0]) {\n result[0] = coord[0];\n }\n if (result[1] > coord[1]) {\n result[1] = coord[1];\n }\n if (result[2] < coord[0]) {\n result[2] = coord[0];\n }\n if (result[3] < coord[1]) {\n result[3] = coord[1];\n }\n });\n return result;\n}\nbbox[\"default\"] = bbox;\nexports.default = bbox;\n\n},{\"@turf/meta\":66}],65:[function(_dereq_,module,exports){\narguments[4][62][0].apply(exports,arguments)\n},{\"dup\":62}],66:[function(_dereq_,module,exports){\narguments[4][63][0].apply(exports,arguments)\n},{\"@turf/helpers\":65,\"dup\":63}],67:[function(_dereq_,module,exports){\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar meta_1 = _dereq_(\"@turf/meta\");\nvar helpers_1 = _dereq_(\"@turf/helpers\");\n/**\n * Takes one or more features and calculates the centroid using the mean of all vertices.\n * This lessens the effect of small islands and artifacts when calculating the centroid of a set of polygons.\n *\n * @name centroid\n * @param {GeoJSON} geojson GeoJSON to be centered\n * @param {Object} [options={}] Optional Parameters\n * @param {Object} [options.properties={}] an Object that is used as the {@link Feature}'s properties\n * @returns {Feature} the centroid of the input features\n * @example\n * var polygon = turf.polygon([[[-81, 41], [-88, 36], [-84, 31], [-80, 33], [-77, 39], [-81, 41]]]);\n *\n * var centroid = turf.centroid(polygon);\n *\n * //addToMap\n * var addToMap = [polygon, centroid]\n */\nfunction centroid(geojson, options) {\n if (options === void 0) { options = {}; }\n var xSum = 0;\n var ySum = 0;\n var len = 0;\n meta_1.coordEach(geojson, function (coord) {\n xSum += coord[0];\n ySum += coord[1];\n len++;\n });\n return helpers_1.point([xSum / len, ySum / len], options.properties);\n}\nexports.default = centroid;\n\n},{\"@turf/helpers\":68,\"@turf/meta\":69}],68:[function(_dereq_,module,exports){\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * @module helpers\n */\n/**\n * Earth Radius used with the Harvesine formula and approximates using a spherical (non-ellipsoid) Earth.\n *\n * @memberof helpers\n * @type {number}\n */\nexports.earthRadius = 6371008.8;\n/**\n * Unit of measurement factors using a spherical (non-ellipsoid) earth radius.\n *\n * @memberof helpers\n * @type {Object}\n */\nexports.factors = {\n centimeters: exports.earthRadius * 100,\n centimetres: exports.earthRadius * 100,\n degrees: exports.earthRadius / 111325,\n feet: exports.earthRadius * 3.28084,\n inches: exports.earthRadius * 39.370,\n kilometers: exports.earthRadius / 1000,\n kilometres: exports.earthRadius / 1000,\n meters: exports.earthRadius,\n metres: exports.earthRadius,\n miles: exports.earthRadius / 1609.344,\n millimeters: exports.earthRadius * 1000,\n millimetres: exports.earthRadius * 1000,\n nauticalmiles: exports.earthRadius / 1852,\n radians: 1,\n yards: exports.earthRadius / 1.0936,\n};\n/**\n * Units of measurement factors based on 1 meter.\n *\n * @memberof helpers\n * @type {Object}\n */\nexports.unitsFactors = {\n centimeters: 100,\n centimetres: 100,\n degrees: 1 / 111325,\n feet: 3.28084,\n inches: 39.370,\n kilometers: 1 / 1000,\n kilometres: 1 / 1000,\n meters: 1,\n metres: 1,\n miles: 1 / 1609.344,\n millimeters: 1000,\n millimetres: 1000,\n nauticalmiles: 1 / 1852,\n radians: 1 / exports.earthRadius,\n yards: 1 / 1.0936,\n};\n/**\n * Area of measurement factors based on 1 square meter.\n *\n * @memberof helpers\n * @type {Object}\n */\nexports.areaFactors = {\n acres: 0.000247105,\n centimeters: 10000,\n centimetres: 10000,\n feet: 10.763910417,\n inches: 1550.003100006,\n kilometers: 0.000001,\n kilometres: 0.000001,\n meters: 1,\n metres: 1,\n miles: 3.86e-7,\n millimeters: 1000000,\n millimetres: 1000000,\n yards: 1.195990046,\n};\n/**\n * Wraps a GeoJSON {@link Geometry} in a GeoJSON {@link Feature}.\n *\n * @name feature\n * @param {Geometry} geometry input geometry\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature} a GeoJSON Feature\n * @example\n * var geometry = {\n * \"type\": \"Point\",\n * \"coordinates\": [110, 50]\n * };\n *\n * var feature = turf.feature(geometry);\n *\n * //=feature\n */\nfunction feature(geom, properties, options) {\n if (options === void 0) { options = {}; }\n var feat = { type: \"Feature\" };\n if (options.id === 0 || options.id) {\n feat.id = options.id;\n }\n if (options.bbox) {\n feat.bbox = options.bbox;\n }\n feat.properties = properties || {};\n feat.geometry = geom;\n return feat;\n}\nexports.feature = feature;\n/**\n * Creates a GeoJSON {@link Geometry} from a Geometry string type & coordinates.\n * For GeometryCollection type use `helpers.geometryCollection`\n *\n * @name geometry\n * @param {string} type Geometry Type\n * @param {Array} coordinates Coordinates\n * @param {Object} [options={}] Optional Parameters\n * @returns {Geometry} a GeoJSON Geometry\n * @example\n * var type = \"Point\";\n * var coordinates = [110, 50];\n * var geometry = turf.geometry(type, coordinates);\n * // => geometry\n */\nfunction geometry(type, coordinates, options) {\n if (options === void 0) { options = {}; }\n switch (type) {\n case \"Point\": return point(coordinates).geometry;\n case \"LineString\": return lineString(coordinates).geometry;\n case \"Polygon\": return polygon(coordinates).geometry;\n case \"MultiPoint\": return multiPoint(coordinates).geometry;\n case \"MultiLineString\": return multiLineString(coordinates).geometry;\n case \"MultiPolygon\": return multiPolygon(coordinates).geometry;\n default: throw new Error(type + \" is invalid\");\n }\n}\nexports.geometry = geometry;\n/**\n * Creates a {@link Point} {@link Feature} from a Position.\n *\n * @name point\n * @param {Array} coordinates longitude, latitude position (each in decimal degrees)\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature} a Point feature\n * @example\n * var point = turf.point([-75.343, 39.984]);\n *\n * //=point\n */\nfunction point(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n var geom = {\n type: \"Point\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\nexports.point = point;\n/**\n * Creates a {@link Point} {@link FeatureCollection} from an Array of Point coordinates.\n *\n * @name points\n * @param {Array>} coordinates an array of Points\n * @param {Object} [properties={}] Translate these properties to each Feature\n * @param {Object} [options={}] Optional Parameters\n * @param {Array} [options.bbox] Bounding Box Array [west, south, east, north]\n * associated with the FeatureCollection\n * @param {string|number} [options.id] Identifier associated with the FeatureCollection\n * @returns {FeatureCollection} Point Feature\n * @example\n * var points = turf.points([\n * [-75, 39],\n * [-80, 45],\n * [-78, 50]\n * ]);\n *\n * //=points\n */\nfunction points(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n return featureCollection(coordinates.map(function (coords) {\n return point(coords, properties);\n }), options);\n}\nexports.points = points;\n/**\n * Creates a {@link Polygon} {@link Feature} from an Array of LinearRings.\n *\n * @name polygon\n * @param {Array>>} coordinates an array of LinearRings\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature} Polygon Feature\n * @example\n * var polygon = turf.polygon([[[-5, 52], [-4, 56], [-2, 51], [-7, 54], [-5, 52]]], { name: 'poly1' });\n *\n * //=polygon\n */\nfunction polygon(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n for (var _i = 0, coordinates_1 = coordinates; _i < coordinates_1.length; _i++) {\n var ring = coordinates_1[_i];\n if (ring.length < 4) {\n throw new Error(\"Each LinearRing of a Polygon must have 4 or more Positions.\");\n }\n for (var j = 0; j < ring[ring.length - 1].length; j++) {\n // Check if first point of Polygon contains two numbers\n if (ring[ring.length - 1][j] !== ring[0][j]) {\n throw new Error(\"First and last Position are not equivalent.\");\n }\n }\n }\n var geom = {\n type: \"Polygon\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\nexports.polygon = polygon;\n/**\n * Creates a {@link Polygon} {@link FeatureCollection} from an Array of Polygon coordinates.\n *\n * @name polygons\n * @param {Array>>>} coordinates an array of Polygon coordinates\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the FeatureCollection\n * @returns {FeatureCollection} Polygon FeatureCollection\n * @example\n * var polygons = turf.polygons([\n * [[[-5, 52], [-4, 56], [-2, 51], [-7, 54], [-5, 52]]],\n * [[[-15, 42], [-14, 46], [-12, 41], [-17, 44], [-15, 42]]],\n * ]);\n *\n * //=polygons\n */\nfunction polygons(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n return featureCollection(coordinates.map(function (coords) {\n return polygon(coords, properties);\n }), options);\n}\nexports.polygons = polygons;\n/**\n * Creates a {@link LineString} {@link Feature} from an Array of Positions.\n *\n * @name lineString\n * @param {Array>} coordinates an array of Positions\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature} LineString Feature\n * @example\n * var linestring1 = turf.lineString([[-24, 63], [-23, 60], [-25, 65], [-20, 69]], {name: 'line 1'});\n * var linestring2 = turf.lineString([[-14, 43], [-13, 40], [-15, 45], [-10, 49]], {name: 'line 2'});\n *\n * //=linestring1\n * //=linestring2\n */\nfunction lineString(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n if (coordinates.length < 2) {\n throw new Error(\"coordinates must be an array of two or more positions\");\n }\n var geom = {\n type: \"LineString\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\nexports.lineString = lineString;\n/**\n * Creates a {@link LineString} {@link FeatureCollection} from an Array of LineString coordinates.\n *\n * @name lineStrings\n * @param {Array>>} coordinates an array of LinearRings\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array} [options.bbox] Bounding Box Array [west, south, east, north]\n * associated with the FeatureCollection\n * @param {string|number} [options.id] Identifier associated with the FeatureCollection\n * @returns {FeatureCollection} LineString FeatureCollection\n * @example\n * var linestrings = turf.lineStrings([\n * [[-24, 63], [-23, 60], [-25, 65], [-20, 69]],\n * [[-14, 43], [-13, 40], [-15, 45], [-10, 49]]\n * ]);\n *\n * //=linestrings\n */\nfunction lineStrings(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n return featureCollection(coordinates.map(function (coords) {\n return lineString(coords, properties);\n }), options);\n}\nexports.lineStrings = lineStrings;\n/**\n * Takes one or more {@link Feature|Features} and creates a {@link FeatureCollection}.\n *\n * @name featureCollection\n * @param {Feature[]} features input features\n * @param {Object} [options={}] Optional Parameters\n * @param {Array} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {FeatureCollection} FeatureCollection of Features\n * @example\n * var locationA = turf.point([-75.343, 39.984], {name: 'Location A'});\n * var locationB = turf.point([-75.833, 39.284], {name: 'Location B'});\n * var locationC = turf.point([-75.534, 39.123], {name: 'Location C'});\n *\n * var collection = turf.featureCollection([\n * locationA,\n * locationB,\n * locationC\n * ]);\n *\n * //=collection\n */\nfunction featureCollection(features, options) {\n if (options === void 0) { options = {}; }\n var fc = { type: \"FeatureCollection\" };\n if (options.id) {\n fc.id = options.id;\n }\n if (options.bbox) {\n fc.bbox = options.bbox;\n }\n fc.features = features;\n return fc;\n}\nexports.featureCollection = featureCollection;\n/**\n * Creates a {@link Feature} based on a\n * coordinate array. Properties can be added optionally.\n *\n * @name multiLineString\n * @param {Array>>} coordinates an array of LineStrings\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature} a MultiLineString feature\n * @throws {Error} if no coordinates are passed\n * @example\n * var multiLine = turf.multiLineString([[[0,0],[10,10]]]);\n *\n * //=multiLine\n */\nfunction multiLineString(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n var geom = {\n type: \"MultiLineString\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\nexports.multiLineString = multiLineString;\n/**\n * Creates a {@link Feature} based on a\n * coordinate array. Properties can be added optionally.\n *\n * @name multiPoint\n * @param {Array>} coordinates an array of Positions\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature} a MultiPoint feature\n * @throws {Error} if no coordinates are passed\n * @example\n * var multiPt = turf.multiPoint([[0,0],[10,10]]);\n *\n * //=multiPt\n */\nfunction multiPoint(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n var geom = {\n type: \"MultiPoint\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\nexports.multiPoint = multiPoint;\n/**\n * Creates a {@link Feature} based on a\n * coordinate array. Properties can be added optionally.\n *\n * @name multiPolygon\n * @param {Array>>>} coordinates an array of Polygons\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature} a multipolygon feature\n * @throws {Error} if no coordinates are passed\n * @example\n * var multiPoly = turf.multiPolygon([[[[0,0],[0,10],[10,10],[10,0],[0,0]]]]);\n *\n * //=multiPoly\n *\n */\nfunction multiPolygon(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n var geom = {\n type: \"MultiPolygon\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\nexports.multiPolygon = multiPolygon;\n/**\n * Creates a {@link Feature} based on a\n * coordinate array. Properties can be added optionally.\n *\n * @name geometryCollection\n * @param {Array} geometries an array of GeoJSON Geometries\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature} a GeoJSON GeometryCollection Feature\n * @example\n * var pt = turf.geometry(\"Point\", [100, 0]);\n * var line = turf.geometry(\"LineString\", [[101, 0], [102, 1]]);\n * var collection = turf.geometryCollection([pt, line]);\n *\n * // => collection\n */\nfunction geometryCollection(geometries, properties, options) {\n if (options === void 0) { options = {}; }\n var geom = {\n type: \"GeometryCollection\",\n geometries: geometries,\n };\n return feature(geom, properties, options);\n}\nexports.geometryCollection = geometryCollection;\n/**\n * Round number to precision\n *\n * @param {number} num Number\n * @param {number} [precision=0] Precision\n * @returns {number} rounded number\n * @example\n * turf.round(120.4321)\n * //=120\n *\n * turf.round(120.4321, 2)\n * //=120.43\n */\nfunction round(num, precision) {\n if (precision === void 0) { precision = 0; }\n if (precision && !(precision >= 0)) {\n throw new Error(\"precision must be a positive number\");\n }\n var multiplier = Math.pow(10, precision || 0);\n return Math.round(num * multiplier) / multiplier;\n}\nexports.round = round;\n/**\n * Convert a distance measurement (assuming a spherical Earth) from radians to a more friendly unit.\n * Valid units: miles, nauticalmiles, inches, yards, meters, metres, kilometers, centimeters, feet\n *\n * @name radiansToLength\n * @param {number} radians in radians across the sphere\n * @param {string} [units=\"kilometers\"] can be degrees, radians, miles, or kilometers inches, yards, metres,\n * meters, kilometres, kilometers.\n * @returns {number} distance\n */\nfunction radiansToLength(radians, units) {\n if (units === void 0) { units = \"kilometers\"; }\n var factor = exports.factors[units];\n if (!factor) {\n throw new Error(units + \" units is invalid\");\n }\n return radians * factor;\n}\nexports.radiansToLength = radiansToLength;\n/**\n * Convert a distance measurement (assuming a spherical Earth) from a real-world unit into radians\n * Valid units: miles, nauticalmiles, inches, yards, meters, metres, kilometers, centimeters, feet\n *\n * @name lengthToRadians\n * @param {number} distance in real units\n * @param {string} [units=\"kilometers\"] can be degrees, radians, miles, or kilometers inches, yards, metres,\n * meters, kilometres, kilometers.\n * @returns {number} radians\n */\nfunction lengthToRadians(distance, units) {\n if (units === void 0) { units = \"kilometers\"; }\n var factor = exports.factors[units];\n if (!factor) {\n throw new Error(units + \" units is invalid\");\n }\n return distance / factor;\n}\nexports.lengthToRadians = lengthToRadians;\n/**\n * Convert a distance measurement (assuming a spherical Earth) from a real-world unit into degrees\n * Valid units: miles, nauticalmiles, inches, yards, meters, metres, centimeters, kilometres, feet\n *\n * @name lengthToDegrees\n * @param {number} distance in real units\n * @param {string} [units=\"kilometers\"] can be degrees, radians, miles, or kilometers inches, yards, metres,\n * meters, kilometres, kilometers.\n * @returns {number} degrees\n */\nfunction lengthToDegrees(distance, units) {\n return radiansToDegrees(lengthToRadians(distance, units));\n}\nexports.lengthToDegrees = lengthToDegrees;\n/**\n * Converts any bearing angle from the north line direction (positive clockwise)\n * and returns an angle between 0-360 degrees (positive clockwise), 0 being the north line\n *\n * @name bearingToAzimuth\n * @param {number} bearing angle, between -180 and +180 degrees\n * @returns {number} angle between 0 and 360 degrees\n */\nfunction bearingToAzimuth(bearing) {\n var angle = bearing % 360;\n if (angle < 0) {\n angle += 360;\n }\n return angle;\n}\nexports.bearingToAzimuth = bearingToAzimuth;\n/**\n * Converts an angle in radians to degrees\n *\n * @name radiansToDegrees\n * @param {number} radians angle in radians\n * @returns {number} degrees between 0 and 360 degrees\n */\nfunction radiansToDegrees(radians) {\n var degrees = radians % (2 * Math.PI);\n return degrees * 180 / Math.PI;\n}\nexports.radiansToDegrees = radiansToDegrees;\n/**\n * Converts an angle in degrees to radians\n *\n * @name degreesToRadians\n * @param {number} degrees angle between 0 and 360 degrees\n * @returns {number} angle in radians\n */\nfunction degreesToRadians(degrees) {\n var radians = degrees % 360;\n return radians * Math.PI / 180;\n}\nexports.degreesToRadians = degreesToRadians;\n/**\n * Converts a length to the requested unit.\n * Valid units: miles, nauticalmiles, inches, yards, meters, metres, kilometers, centimeters, feet\n *\n * @param {number} length to be converted\n * @param {Units} [originalUnit=\"kilometers\"] of the length\n * @param {Units} [finalUnit=\"kilometers\"] returned unit\n * @returns {number} the converted length\n */\nfunction convertLength(length, originalUnit, finalUnit) {\n if (originalUnit === void 0) { originalUnit = \"kilometers\"; }\n if (finalUnit === void 0) { finalUnit = \"kilometers\"; }\n if (!(length >= 0)) {\n throw new Error(\"length must be a positive number\");\n }\n return radiansToLength(lengthToRadians(length, originalUnit), finalUnit);\n}\nexports.convertLength = convertLength;\n/**\n * Converts a area to the requested unit.\n * Valid units: kilometers, kilometres, meters, metres, centimetres, millimeters, acres, miles, yards, feet, inches\n * @param {number} area to be converted\n * @param {Units} [originalUnit=\"meters\"] of the distance\n * @param {Units} [finalUnit=\"kilometers\"] returned unit\n * @returns {number} the converted distance\n */\nfunction convertArea(area, originalUnit, finalUnit) {\n if (originalUnit === void 0) { originalUnit = \"meters\"; }\n if (finalUnit === void 0) { finalUnit = \"kilometers\"; }\n if (!(area >= 0)) {\n throw new Error(\"area must be a positive number\");\n }\n var startFactor = exports.areaFactors[originalUnit];\n if (!startFactor) {\n throw new Error(\"invalid original units\");\n }\n var finalFactor = exports.areaFactors[finalUnit];\n if (!finalFactor) {\n throw new Error(\"invalid final units\");\n }\n return (area / startFactor) * finalFactor;\n}\nexports.convertArea = convertArea;\n/**\n * isNumber\n *\n * @param {*} num Number to validate\n * @returns {boolean} true/false\n * @example\n * turf.isNumber(123)\n * //=true\n * turf.isNumber('foo')\n * //=false\n */\nfunction isNumber(num) {\n return !isNaN(num) && num !== null && !Array.isArray(num) && !/^\\s*$/.test(num);\n}\nexports.isNumber = isNumber;\n/**\n * isObject\n *\n * @param {*} input variable to validate\n * @returns {boolean} true/false\n * @example\n * turf.isObject({elevation: 10})\n * //=true\n * turf.isObject('foo')\n * //=false\n */\nfunction isObject(input) {\n return (!!input) && (input.constructor === Object);\n}\nexports.isObject = isObject;\n/**\n * Validate BBox\n *\n * @private\n * @param {Array} bbox BBox to validate\n * @returns {void}\n * @throws Error if BBox is not valid\n * @example\n * validateBBox([-180, -40, 110, 50])\n * //=OK\n * validateBBox([-180, -40])\n * //=Error\n * validateBBox('Foo')\n * //=Error\n * validateBBox(5)\n * //=Error\n * validateBBox(null)\n * //=Error\n * validateBBox(undefined)\n * //=Error\n */\nfunction validateBBox(bbox) {\n if (!bbox) {\n throw new Error(\"bbox is required\");\n }\n if (!Array.isArray(bbox)) {\n throw new Error(\"bbox must be an Array\");\n }\n if (bbox.length !== 4 && bbox.length !== 6) {\n throw new Error(\"bbox must be an Array of 4 or 6 numbers\");\n }\n bbox.forEach(function (num) {\n if (!isNumber(num)) {\n throw new Error(\"bbox must only contain numbers\");\n }\n });\n}\nexports.validateBBox = validateBBox;\n/**\n * Validate Id\n *\n * @private\n * @param {string|number} id Id to validate\n * @returns {void}\n * @throws Error if Id is not valid\n * @example\n * validateId([-180, -40, 110, 50])\n * //=Error\n * validateId([-180, -40])\n * //=Error\n * validateId('Foo')\n * //=OK\n * validateId(5)\n * //=OK\n * validateId(null)\n * //=Error\n * validateId(undefined)\n * //=Error\n */\nfunction validateId(id) {\n if (!id) {\n throw new Error(\"id is required\");\n }\n if ([\"string\", \"number\"].indexOf(typeof id) === -1) {\n throw new Error(\"id must be a number or a string\");\n }\n}\nexports.validateId = validateId;\n// Deprecated methods\nfunction radians2degrees() {\n throw new Error(\"method has been renamed to `radiansToDegrees`\");\n}\nexports.radians2degrees = radians2degrees;\nfunction degrees2radians() {\n throw new Error(\"method has been renamed to `degreesToRadians`\");\n}\nexports.degrees2radians = degrees2radians;\nfunction distanceToDegrees() {\n throw new Error(\"method has been renamed to `lengthToDegrees`\");\n}\nexports.distanceToDegrees = distanceToDegrees;\nfunction distanceToRadians() {\n throw new Error(\"method has been renamed to `lengthToRadians`\");\n}\nexports.distanceToRadians = distanceToRadians;\nfunction radiansToDistance() {\n throw new Error(\"method has been renamed to `radiansToLength`\");\n}\nexports.radiansToDistance = radiansToDistance;\nfunction bearingToAngle() {\n throw new Error(\"method has been renamed to `bearingToAzimuth`\");\n}\nexports.bearingToAngle = bearingToAngle;\nfunction convertDistance() {\n throw new Error(\"method has been renamed to `convertLength`\");\n}\nexports.convertDistance = convertDistance;\n\n},{}],69:[function(_dereq_,module,exports){\n'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar helpers = _dereq_('@turf/helpers');\n\n/**\n * Callback for coordEach\n *\n * @callback coordEachCallback\n * @param {Array} currentCoord The current coordinate being processed.\n * @param {number} coordIndex The current index of the coordinate being processed.\n * @param {number} featureIndex The current index of the Feature being processed.\n * @param {number} multiFeatureIndex The current index of the Multi-Feature being processed.\n * @param {number} geometryIndex The current index of the Geometry being processed.\n */\n\n/**\n * Iterate over coordinates in any GeoJSON object, similar to Array.forEach()\n *\n * @name coordEach\n * @param {FeatureCollection|Feature|Geometry} geojson any GeoJSON object\n * @param {Function} callback a method that takes (currentCoord, coordIndex, featureIndex, multiFeatureIndex)\n * @param {boolean} [excludeWrapCoord=false] whether or not to include the final coordinate of LinearRings that wraps the ring in its iteration.\n * @returns {void}\n * @example\n * var features = turf.featureCollection([\n * turf.point([26, 37], {\"foo\": \"bar\"}),\n * turf.point([36, 53], {\"hello\": \"world\"})\n * ]);\n *\n * turf.coordEach(features, function (currentCoord, coordIndex, featureIndex, multiFeatureIndex, geometryIndex) {\n * //=currentCoord\n * //=coordIndex\n * //=featureIndex\n * //=multiFeatureIndex\n * //=geometryIndex\n * });\n */\nfunction coordEach(geojson, callback, excludeWrapCoord) {\n // Handles null Geometry -- Skips this GeoJSON\n if (geojson === null) return;\n var j, k, l, geometry, stopG, coords,\n geometryMaybeCollection,\n wrapShrink = 0,\n coordIndex = 0,\n isGeometryCollection,\n type = geojson.type,\n isFeatureCollection = type === 'FeatureCollection',\n isFeature = type === 'Feature',\n stop = isFeatureCollection ? geojson.features.length : 1;\n\n // This logic may look a little weird. The reason why it is that way\n // is because it's trying to be fast. GeoJSON supports multiple kinds\n // of objects at its root: FeatureCollection, Features, Geometries.\n // This function has the responsibility of handling all of them, and that\n // means that some of the `for` loops you see below actually just don't apply\n // to certain inputs. For instance, if you give this just a\n // Point geometry, then both loops are short-circuited and all we do\n // is gradually rename the input until it's called 'geometry'.\n //\n // This also aims to allocate as few resources as possible: just a\n // few numbers and booleans, rather than any temporary arrays as would\n // be required with the normalization approach.\n for (var featureIndex = 0; featureIndex < stop; featureIndex++) {\n geometryMaybeCollection = (isFeatureCollection ? geojson.features[featureIndex].geometry :\n (isFeature ? geojson.geometry : geojson));\n isGeometryCollection = (geometryMaybeCollection) ? geometryMaybeCollection.type === 'GeometryCollection' : false;\n stopG = isGeometryCollection ? geometryMaybeCollection.geometries.length : 1;\n\n for (var geomIndex = 0; geomIndex < stopG; geomIndex++) {\n var multiFeatureIndex = 0;\n var geometryIndex = 0;\n geometry = isGeometryCollection ?\n geometryMaybeCollection.geometries[geomIndex] : geometryMaybeCollection;\n\n // Handles null Geometry -- Skips this geometry\n if (geometry === null) continue;\n coords = geometry.coordinates;\n var geomType = geometry.type;\n\n wrapShrink = (excludeWrapCoord && (geomType === 'Polygon' || geomType === 'MultiPolygon')) ? 1 : 0;\n\n switch (geomType) {\n case null:\n break;\n case 'Point':\n if (callback(coords, coordIndex, featureIndex, multiFeatureIndex, geometryIndex) === false) return false;\n coordIndex++;\n multiFeatureIndex++;\n break;\n case 'LineString':\n case 'MultiPoint':\n for (j = 0; j < coords.length; j++) {\n if (callback(coords[j], coordIndex, featureIndex, multiFeatureIndex, geometryIndex) === false) return false;\n coordIndex++;\n if (geomType === 'MultiPoint') multiFeatureIndex++;\n }\n if (geomType === 'LineString') multiFeatureIndex++;\n break;\n case 'Polygon':\n case 'MultiLineString':\n for (j = 0; j < coords.length; j++) {\n for (k = 0; k < coords[j].length - wrapShrink; k++) {\n if (callback(coords[j][k], coordIndex, featureIndex, multiFeatureIndex, geometryIndex) === false) return false;\n coordIndex++;\n }\n if (geomType === 'MultiLineString') multiFeatureIndex++;\n if (geomType === 'Polygon') geometryIndex++;\n }\n if (geomType === 'Polygon') multiFeatureIndex++;\n break;\n case 'MultiPolygon':\n for (j = 0; j < coords.length; j++) {\n geometryIndex = 0;\n for (k = 0; k < coords[j].length; k++) {\n for (l = 0; l < coords[j][k].length - wrapShrink; l++) {\n if (callback(coords[j][k][l], coordIndex, featureIndex, multiFeatureIndex, geometryIndex) === false) return false;\n coordIndex++;\n }\n geometryIndex++;\n }\n multiFeatureIndex++;\n }\n break;\n case 'GeometryCollection':\n for (j = 0; j < geometry.geometries.length; j++)\n if (coordEach(geometry.geometries[j], callback, excludeWrapCoord) === false) return false;\n break;\n default:\n throw new Error('Unknown Geometry Type');\n }\n }\n }\n}\n\n/**\n * Callback for coordReduce\n *\n * The first time the callback function is called, the values provided as arguments depend\n * on whether the reduce method has an initialValue argument.\n *\n * If an initialValue is provided to the reduce method:\n * - The previousValue argument is initialValue.\n * - The currentValue argument is the value of the first element present in the array.\n *\n * If an initialValue is not provided:\n * - The previousValue argument is the value of the first element present in the array.\n * - The currentValue argument is the value of the second element present in the array.\n *\n * @callback coordReduceCallback\n * @param {*} previousValue The accumulated value previously returned in the last invocation\n * of the callback, or initialValue, if supplied.\n * @param {Array} currentCoord The current coordinate being processed.\n * @param {number} coordIndex The current index of the coordinate being processed.\n * Starts at index 0, if an initialValue is provided, and at index 1 otherwise.\n * @param {number} featureIndex The current index of the Feature being processed.\n * @param {number} multiFeatureIndex The current index of the Multi-Feature being processed.\n * @param {number} geometryIndex The current index of the Geometry being processed.\n */\n\n/**\n * Reduce coordinates in any GeoJSON object, similar to Array.reduce()\n *\n * @name coordReduce\n * @param {FeatureCollection|Geometry|Feature} geojson any GeoJSON object\n * @param {Function} callback a method that takes (previousValue, currentCoord, coordIndex)\n * @param {*} [initialValue] Value to use as the first argument to the first call of the callback.\n * @param {boolean} [excludeWrapCoord=false] whether or not to include the final coordinate of LinearRings that wraps the ring in its iteration.\n * @returns {*} The value that results from the reduction.\n * @example\n * var features = turf.featureCollection([\n * turf.point([26, 37], {\"foo\": \"bar\"}),\n * turf.point([36, 53], {\"hello\": \"world\"})\n * ]);\n *\n * turf.coordReduce(features, function (previousValue, currentCoord, coordIndex, featureIndex, multiFeatureIndex, geometryIndex) {\n * //=previousValue\n * //=currentCoord\n * //=coordIndex\n * //=featureIndex\n * //=multiFeatureIndex\n * //=geometryIndex\n * return currentCoord;\n * });\n */\nfunction coordReduce(geojson, callback, initialValue, excludeWrapCoord) {\n var previousValue = initialValue;\n coordEach(geojson, function (currentCoord, coordIndex, featureIndex, multiFeatureIndex, geometryIndex) {\n if (coordIndex === 0 && initialValue === undefined) previousValue = currentCoord;\n else previousValue = callback(previousValue, currentCoord, coordIndex, featureIndex, multiFeatureIndex, geometryIndex);\n }, excludeWrapCoord);\n return previousValue;\n}\n\n/**\n * Callback for propEach\n *\n * @callback propEachCallback\n * @param {Object} currentProperties The current Properties being processed.\n * @param {number} featureIndex The current index of the Feature being processed.\n */\n\n/**\n * Iterate over properties in any GeoJSON object, similar to Array.forEach()\n *\n * @name propEach\n * @param {FeatureCollection|Feature} geojson any GeoJSON object\n * @param {Function} callback a method that takes (currentProperties, featureIndex)\n * @returns {void}\n * @example\n * var features = turf.featureCollection([\n * turf.point([26, 37], {foo: 'bar'}),\n * turf.point([36, 53], {hello: 'world'})\n * ]);\n *\n * turf.propEach(features, function (currentProperties, featureIndex) {\n * //=currentProperties\n * //=featureIndex\n * });\n */\nfunction propEach(geojson, callback) {\n var i;\n switch (geojson.type) {\n case 'FeatureCollection':\n for (i = 0; i < geojson.features.length; i++) {\n if (callback(geojson.features[i].properties, i) === false) break;\n }\n break;\n case 'Feature':\n callback(geojson.properties, 0);\n break;\n }\n}\n\n\n/**\n * Callback for propReduce\n *\n * The first time the callback function is called, the values provided as arguments depend\n * on whether the reduce method has an initialValue argument.\n *\n * If an initialValue is provided to the reduce method:\n * - The previousValue argument is initialValue.\n * - The currentValue argument is the value of the first element present in the array.\n *\n * If an initialValue is not provided:\n * - The previousValue argument is the value of the first element present in the array.\n * - The currentValue argument is the value of the second element present in the array.\n *\n * @callback propReduceCallback\n * @param {*} previousValue The accumulated value previously returned in the last invocation\n * of the callback, or initialValue, if supplied.\n * @param {*} currentProperties The current Properties being processed.\n * @param {number} featureIndex The current index of the Feature being processed.\n */\n\n/**\n * Reduce properties in any GeoJSON object into a single value,\n * similar to how Array.reduce works. However, in this case we lazily run\n * the reduction, so an array of all properties is unnecessary.\n *\n * @name propReduce\n * @param {FeatureCollection|Feature} geojson any GeoJSON object\n * @param {Function} callback a method that takes (previousValue, currentProperties, featureIndex)\n * @param {*} [initialValue] Value to use as the first argument to the first call of the callback.\n * @returns {*} The value that results from the reduction.\n * @example\n * var features = turf.featureCollection([\n * turf.point([26, 37], {foo: 'bar'}),\n * turf.point([36, 53], {hello: 'world'})\n * ]);\n *\n * turf.propReduce(features, function (previousValue, currentProperties, featureIndex) {\n * //=previousValue\n * //=currentProperties\n * //=featureIndex\n * return currentProperties\n * });\n */\nfunction propReduce(geojson, callback, initialValue) {\n var previousValue = initialValue;\n propEach(geojson, function (currentProperties, featureIndex) {\n if (featureIndex === 0 && initialValue === undefined) previousValue = currentProperties;\n else previousValue = callback(previousValue, currentProperties, featureIndex);\n });\n return previousValue;\n}\n\n/**\n * Callback for featureEach\n *\n * @callback featureEachCallback\n * @param {Feature} currentFeature The current Feature being processed.\n * @param {number} featureIndex The current index of the Feature being processed.\n */\n\n/**\n * Iterate over features in any GeoJSON object, similar to\n * Array.forEach.\n *\n * @name featureEach\n * @param {FeatureCollection|Feature|Geometry} geojson any GeoJSON object\n * @param {Function} callback a method that takes (currentFeature, featureIndex)\n * @returns {void}\n * @example\n * var features = turf.featureCollection([\n * turf.point([26, 37], {foo: 'bar'}),\n * turf.point([36, 53], {hello: 'world'})\n * ]);\n *\n * turf.featureEach(features, function (currentFeature, featureIndex) {\n * //=currentFeature\n * //=featureIndex\n * });\n */\nfunction featureEach(geojson, callback) {\n if (geojson.type === 'Feature') {\n callback(geojson, 0);\n } else if (geojson.type === 'FeatureCollection') {\n for (var i = 0; i < geojson.features.length; i++) {\n if (callback(geojson.features[i], i) === false) break;\n }\n }\n}\n\n/**\n * Callback for featureReduce\n *\n * The first time the callback function is called, the values provided as arguments depend\n * on whether the reduce method has an initialValue argument.\n *\n * If an initialValue is provided to the reduce method:\n * - The previousValue argument is initialValue.\n * - The currentValue argument is the value of the first element present in the array.\n *\n * If an initialValue is not provided:\n * - The previousValue argument is the value of the first element present in the array.\n * - The currentValue argument is the value of the second element present in the array.\n *\n * @callback featureReduceCallback\n * @param {*} previousValue The accumulated value previously returned in the last invocation\n * of the callback, or initialValue, if supplied.\n * @param {Feature} currentFeature The current Feature being processed.\n * @param {number} featureIndex The current index of the Feature being processed.\n */\n\n/**\n * Reduce features in any GeoJSON object, similar to Array.reduce().\n *\n * @name featureReduce\n * @param {FeatureCollection|Feature|Geometry} geojson any GeoJSON object\n * @param {Function} callback a method that takes (previousValue, currentFeature, featureIndex)\n * @param {*} [initialValue] Value to use as the first argument to the first call of the callback.\n * @returns {*} The value that results from the reduction.\n * @example\n * var features = turf.featureCollection([\n * turf.point([26, 37], {\"foo\": \"bar\"}),\n * turf.point([36, 53], {\"hello\": \"world\"})\n * ]);\n *\n * turf.featureReduce(features, function (previousValue, currentFeature, featureIndex) {\n * //=previousValue\n * //=currentFeature\n * //=featureIndex\n * return currentFeature\n * });\n */\nfunction featureReduce(geojson, callback, initialValue) {\n var previousValue = initialValue;\n featureEach(geojson, function (currentFeature, featureIndex) {\n if (featureIndex === 0 && initialValue === undefined) previousValue = currentFeature;\n else previousValue = callback(previousValue, currentFeature, featureIndex);\n });\n return previousValue;\n}\n\n/**\n * Get all coordinates from any GeoJSON object.\n *\n * @name coordAll\n * @param {FeatureCollection|Feature|Geometry} geojson any GeoJSON object\n * @returns {Array>} coordinate position array\n * @example\n * var features = turf.featureCollection([\n * turf.point([26, 37], {foo: 'bar'}),\n * turf.point([36, 53], {hello: 'world'})\n * ]);\n *\n * var coords = turf.coordAll(features);\n * //= [[26, 37], [36, 53]]\n */\nfunction coordAll(geojson) {\n var coords = [];\n coordEach(geojson, function (coord) {\n coords.push(coord);\n });\n return coords;\n}\n\n/**\n * Callback for geomEach\n *\n * @callback geomEachCallback\n * @param {Geometry} currentGeometry The current Geometry being processed.\n * @param {number} featureIndex The current index of the Feature being processed.\n * @param {Object} featureProperties The current Feature Properties being processed.\n * @param {Array} featureBBox The current Feature BBox being processed.\n * @param {number|string} featureId The current Feature Id being processed.\n */\n\n/**\n * Iterate over each geometry in any GeoJSON object, similar to Array.forEach()\n *\n * @name geomEach\n * @param {FeatureCollection|Feature|Geometry} geojson any GeoJSON object\n * @param {Function} callback a method that takes (currentGeometry, featureIndex, featureProperties, featureBBox, featureId)\n * @returns {void}\n * @example\n * var features = turf.featureCollection([\n * turf.point([26, 37], {foo: 'bar'}),\n * turf.point([36, 53], {hello: 'world'})\n * ]);\n *\n * turf.geomEach(features, function (currentGeometry, featureIndex, featureProperties, featureBBox, featureId) {\n * //=currentGeometry\n * //=featureIndex\n * //=featureProperties\n * //=featureBBox\n * //=featureId\n * });\n */\nfunction geomEach(geojson, callback) {\n var i, j, g, geometry, stopG,\n geometryMaybeCollection,\n isGeometryCollection,\n featureProperties,\n featureBBox,\n featureId,\n featureIndex = 0,\n isFeatureCollection = geojson.type === 'FeatureCollection',\n isFeature = geojson.type === 'Feature',\n stop = isFeatureCollection ? geojson.features.length : 1;\n\n // This logic may look a little weird. The reason why it is that way\n // is because it's trying to be fast. GeoJSON supports multiple kinds\n // of objects at its root: FeatureCollection, Features, Geometries.\n // This function has the responsibility of handling all of them, and that\n // means that some of the `for` loops you see below actually just don't apply\n // to certain inputs. For instance, if you give this just a\n // Point geometry, then both loops are short-circuited and all we do\n // is gradually rename the input until it's called 'geometry'.\n //\n // This also aims to allocate as few resources as possible: just a\n // few numbers and booleans, rather than any temporary arrays as would\n // be required with the normalization approach.\n for (i = 0; i < stop; i++) {\n\n geometryMaybeCollection = (isFeatureCollection ? geojson.features[i].geometry :\n (isFeature ? geojson.geometry : geojson));\n featureProperties = (isFeatureCollection ? geojson.features[i].properties :\n (isFeature ? geojson.properties : {}));\n featureBBox = (isFeatureCollection ? geojson.features[i].bbox :\n (isFeature ? geojson.bbox : undefined));\n featureId = (isFeatureCollection ? geojson.features[i].id :\n (isFeature ? geojson.id : undefined));\n isGeometryCollection = (geometryMaybeCollection) ? geometryMaybeCollection.type === 'GeometryCollection' : false;\n stopG = isGeometryCollection ? geometryMaybeCollection.geometries.length : 1;\n\n for (g = 0; g < stopG; g++) {\n geometry = isGeometryCollection ?\n geometryMaybeCollection.geometries[g] : geometryMaybeCollection;\n\n // Handle null Geometry\n if (geometry === null) {\n if (callback(null, featureIndex, featureProperties, featureBBox, featureId) === false) return false;\n continue;\n }\n switch (geometry.type) {\n case 'Point':\n case 'LineString':\n case 'MultiPoint':\n case 'Polygon':\n case 'MultiLineString':\n case 'MultiPolygon': {\n if (callback(geometry, featureIndex, featureProperties, featureBBox, featureId) === false) return false;\n break;\n }\n case 'GeometryCollection': {\n for (j = 0; j < geometry.geometries.length; j++) {\n if (callback(geometry.geometries[j], featureIndex, featureProperties, featureBBox, featureId) === false) return false;\n }\n break;\n }\n default:\n throw new Error('Unknown Geometry Type');\n }\n }\n // Only increase `featureIndex` per each feature\n featureIndex++;\n }\n}\n\n/**\n * Callback for geomReduce\n *\n * The first time the callback function is called, the values provided as arguments depend\n * on whether the reduce method has an initialValue argument.\n *\n * If an initialValue is provided to the reduce method:\n * - The previousValue argument is initialValue.\n * - The currentValue argument is the value of the first element present in the array.\n *\n * If an initialValue is not provided:\n * - The previousValue argument is the value of the first element present in the array.\n * - The currentValue argument is the value of the second element present in the array.\n *\n * @callback geomReduceCallback\n * @param {*} previousValue The accumulated value previously returned in the last invocation\n * of the callback, or initialValue, if supplied.\n * @param {Geometry} currentGeometry The current Geometry being processed.\n * @param {number} featureIndex The current index of the Feature being processed.\n * @param {Object} featureProperties The current Feature Properties being processed.\n * @param {Array} featureBBox The current Feature BBox being processed.\n * @param {number|string} featureId The current Feature Id being processed.\n */\n\n/**\n * Reduce geometry in any GeoJSON object, similar to Array.reduce().\n *\n * @name geomReduce\n * @param {FeatureCollection|Feature|Geometry} geojson any GeoJSON object\n * @param {Function} callback a method that takes (previousValue, currentGeometry, featureIndex, featureProperties, featureBBox, featureId)\n * @param {*} [initialValue] Value to use as the first argument to the first call of the callback.\n * @returns {*} The value that results from the reduction.\n * @example\n * var features = turf.featureCollection([\n * turf.point([26, 37], {foo: 'bar'}),\n * turf.point([36, 53], {hello: 'world'})\n * ]);\n *\n * turf.geomReduce(features, function (previousValue, currentGeometry, featureIndex, featureProperties, featureBBox, featureId) {\n * //=previousValue\n * //=currentGeometry\n * //=featureIndex\n * //=featureProperties\n * //=featureBBox\n * //=featureId\n * return currentGeometry\n * });\n */\nfunction geomReduce(geojson, callback, initialValue) {\n var previousValue = initialValue;\n geomEach(geojson, function (currentGeometry, featureIndex, featureProperties, featureBBox, featureId) {\n if (featureIndex === 0 && initialValue === undefined) previousValue = currentGeometry;\n else previousValue = callback(previousValue, currentGeometry, featureIndex, featureProperties, featureBBox, featureId);\n });\n return previousValue;\n}\n\n/**\n * Callback for flattenEach\n *\n * @callback flattenEachCallback\n * @param {Feature} currentFeature The current flattened feature being processed.\n * @param {number} featureIndex The current index of the Feature being processed.\n * @param {number} multiFeatureIndex The current index of the Multi-Feature being processed.\n */\n\n/**\n * Iterate over flattened features in any GeoJSON object, similar to\n * Array.forEach.\n *\n * @name flattenEach\n * @param {FeatureCollection|Feature|Geometry} geojson any GeoJSON object\n * @param {Function} callback a method that takes (currentFeature, featureIndex, multiFeatureIndex)\n * @example\n * var features = turf.featureCollection([\n * turf.point([26, 37], {foo: 'bar'}),\n * turf.multiPoint([[40, 30], [36, 53]], {hello: 'world'})\n * ]);\n *\n * turf.flattenEach(features, function (currentFeature, featureIndex, multiFeatureIndex) {\n * //=currentFeature\n * //=featureIndex\n * //=multiFeatureIndex\n * });\n */\nfunction flattenEach(geojson, callback) {\n geomEach(geojson, function (geometry, featureIndex, properties, bbox, id) {\n // Callback for single geometry\n var type = (geometry === null) ? null : geometry.type;\n switch (type) {\n case null:\n case 'Point':\n case 'LineString':\n case 'Polygon':\n if (callback(helpers.feature(geometry, properties, {bbox: bbox, id: id}), featureIndex, 0) === false) return false;\n return;\n }\n\n var geomType;\n\n // Callback for multi-geometry\n switch (type) {\n case 'MultiPoint':\n geomType = 'Point';\n break;\n case 'MultiLineString':\n geomType = 'LineString';\n break;\n case 'MultiPolygon':\n geomType = 'Polygon';\n break;\n }\n\n for (var multiFeatureIndex = 0; multiFeatureIndex < geometry.coordinates.length; multiFeatureIndex++) {\n var coordinate = geometry.coordinates[multiFeatureIndex];\n var geom = {\n type: geomType,\n coordinates: coordinate\n };\n if (callback(helpers.feature(geom, properties), featureIndex, multiFeatureIndex) === false) return false;\n }\n });\n}\n\n/**\n * Callback for flattenReduce\n *\n * The first time the callback function is called, the values provided as arguments depend\n * on whether the reduce method has an initialValue argument.\n *\n * If an initialValue is provided to the reduce method:\n * - The previousValue argument is initialValue.\n * - The currentValue argument is the value of the first element present in the array.\n *\n * If an initialValue is not provided:\n * - The previousValue argument is the value of the first element present in the array.\n * - The currentValue argument is the value of the second element present in the array.\n *\n * @callback flattenReduceCallback\n * @param {*} previousValue The accumulated value previously returned in the last invocation\n * of the callback, or initialValue, if supplied.\n * @param {Feature} currentFeature The current Feature being processed.\n * @param {number} featureIndex The current index of the Feature being processed.\n * @param {number} multiFeatureIndex The current index of the Multi-Feature being processed.\n */\n\n/**\n * Reduce flattened features in any GeoJSON object, similar to Array.reduce().\n *\n * @name flattenReduce\n * @param {FeatureCollection|Feature|Geometry} geojson any GeoJSON object\n * @param {Function} callback a method that takes (previousValue, currentFeature, featureIndex, multiFeatureIndex)\n * @param {*} [initialValue] Value to use as the first argument to the first call of the callback.\n * @returns {*} The value that results from the reduction.\n * @example\n * var features = turf.featureCollection([\n * turf.point([26, 37], {foo: 'bar'}),\n * turf.multiPoint([[40, 30], [36, 53]], {hello: 'world'})\n * ]);\n *\n * turf.flattenReduce(features, function (previousValue, currentFeature, featureIndex, multiFeatureIndex) {\n * //=previousValue\n * //=currentFeature\n * //=featureIndex\n * //=multiFeatureIndex\n * return currentFeature\n * });\n */\nfunction flattenReduce(geojson, callback, initialValue) {\n var previousValue = initialValue;\n flattenEach(geojson, function (currentFeature, featureIndex, multiFeatureIndex) {\n if (featureIndex === 0 && multiFeatureIndex === 0 && initialValue === undefined) previousValue = currentFeature;\n else previousValue = callback(previousValue, currentFeature, featureIndex, multiFeatureIndex);\n });\n return previousValue;\n}\n\n/**\n * Callback for segmentEach\n *\n * @callback segmentEachCallback\n * @param {Feature} currentSegment The current Segment being processed.\n * @param {number} featureIndex The current index of the Feature being processed.\n * @param {number} multiFeatureIndex The current index of the Multi-Feature being processed.\n * @param {number} geometryIndex The current index of the Geometry being processed.\n * @param {number} segmentIndex The current index of the Segment being processed.\n * @returns {void}\n */\n\n/**\n * Iterate over 2-vertex line segment in any GeoJSON object, similar to Array.forEach()\n * (Multi)Point geometries do not contain segments therefore they are ignored during this operation.\n *\n * @param {FeatureCollection|Feature|Geometry} geojson any GeoJSON\n * @param {Function} callback a method that takes (currentSegment, featureIndex, multiFeatureIndex, geometryIndex, segmentIndex)\n * @returns {void}\n * @example\n * var polygon = turf.polygon([[[-50, 5], [-40, -10], [-50, -10], [-40, 5], [-50, 5]]]);\n *\n * // Iterate over GeoJSON by 2-vertex segments\n * turf.segmentEach(polygon, function (currentSegment, featureIndex, multiFeatureIndex, geometryIndex, segmentIndex) {\n * //=currentSegment\n * //=featureIndex\n * //=multiFeatureIndex\n * //=geometryIndex\n * //=segmentIndex\n * });\n *\n * // Calculate the total number of segments\n * var total = 0;\n * turf.segmentEach(polygon, function () {\n * total++;\n * });\n */\nfunction segmentEach(geojson, callback) {\n flattenEach(geojson, function (feature, featureIndex, multiFeatureIndex) {\n var segmentIndex = 0;\n\n // Exclude null Geometries\n if (!feature.geometry) return;\n // (Multi)Point geometries do not contain segments therefore they are ignored during this operation.\n var type = feature.geometry.type;\n if (type === 'Point' || type === 'MultiPoint') return;\n\n // Generate 2-vertex line segments\n var previousCoords;\n var previousFeatureIndex = 0;\n var previousMultiIndex = 0;\n var prevGeomIndex = 0;\n if (coordEach(feature, function (currentCoord, coordIndex, featureIndexCoord, multiPartIndexCoord, geometryIndex) {\n // Simulating a meta.coordReduce() since `reduce` operations cannot be stopped by returning `false`\n if (previousCoords === undefined || featureIndex > previousFeatureIndex || multiPartIndexCoord > previousMultiIndex || geometryIndex > prevGeomIndex) {\n previousCoords = currentCoord;\n previousFeatureIndex = featureIndex;\n previousMultiIndex = multiPartIndexCoord;\n prevGeomIndex = geometryIndex;\n segmentIndex = 0;\n return;\n }\n var currentSegment = helpers.lineString([previousCoords, currentCoord], feature.properties);\n if (callback(currentSegment, featureIndex, multiFeatureIndex, geometryIndex, segmentIndex) === false) return false;\n segmentIndex++;\n previousCoords = currentCoord;\n }) === false) return false;\n });\n}\n\n/**\n * Callback for segmentReduce\n *\n * The first time the callback function is called, the values provided as arguments depend\n * on whether the reduce method has an initialValue argument.\n *\n * If an initialValue is provided to the reduce method:\n * - The previousValue argument is initialValue.\n * - The currentValue argument is the value of the first element present in the array.\n *\n * If an initialValue is not provided:\n * - The previousValue argument is the value of the first element present in the array.\n * - The currentValue argument is the value of the second element present in the array.\n *\n * @callback segmentReduceCallback\n * @param {*} previousValue The accumulated value previously returned in the last invocation\n * of the callback, or initialValue, if supplied.\n * @param {Feature} currentSegment The current Segment being processed.\n * @param {number} featureIndex The current index of the Feature being processed.\n * @param {number} multiFeatureIndex The current index of the Multi-Feature being processed.\n * @param {number} geometryIndex The current index of the Geometry being processed.\n * @param {number} segmentIndex The current index of the Segment being processed.\n */\n\n/**\n * Reduce 2-vertex line segment in any GeoJSON object, similar to Array.reduce()\n * (Multi)Point geometries do not contain segments therefore they are ignored during this operation.\n *\n * @param {FeatureCollection|Feature|Geometry} geojson any GeoJSON\n * @param {Function} callback a method that takes (previousValue, currentSegment, currentIndex)\n * @param {*} [initialValue] Value to use as the first argument to the first call of the callback.\n * @returns {void}\n * @example\n * var polygon = turf.polygon([[[-50, 5], [-40, -10], [-50, -10], [-40, 5], [-50, 5]]]);\n *\n * // Iterate over GeoJSON by 2-vertex segments\n * turf.segmentReduce(polygon, function (previousSegment, currentSegment, featureIndex, multiFeatureIndex, geometryIndex, segmentIndex) {\n * //= previousSegment\n * //= currentSegment\n * //= featureIndex\n * //= multiFeatureIndex\n * //= geometryIndex\n * //= segmentInex\n * return currentSegment\n * });\n *\n * // Calculate the total number of segments\n * var initialValue = 0\n * var total = turf.segmentReduce(polygon, function (previousValue) {\n * previousValue++;\n * return previousValue;\n * }, initialValue);\n */\nfunction segmentReduce(geojson, callback, initialValue) {\n var previousValue = initialValue;\n var started = false;\n segmentEach(geojson, function (currentSegment, featureIndex, multiFeatureIndex, geometryIndex, segmentIndex) {\n if (started === false && initialValue === undefined) previousValue = currentSegment;\n else previousValue = callback(previousValue, currentSegment, featureIndex, multiFeatureIndex, geometryIndex, segmentIndex);\n started = true;\n });\n return previousValue;\n}\n\n/**\n * Callback for lineEach\n *\n * @callback lineEachCallback\n * @param {Feature} currentLine The current LineString|LinearRing being processed\n * @param {number} featureIndex The current index of the Feature being processed\n * @param {number} multiFeatureIndex The current index of the Multi-Feature being processed\n * @param {number} geometryIndex The current index of the Geometry being processed\n */\n\n/**\n * Iterate over line or ring coordinates in LineString, Polygon, MultiLineString, MultiPolygon Features or Geometries,\n * similar to Array.forEach.\n *\n * @name lineEach\n * @param {Geometry|Feature} geojson object\n * @param {Function} callback a method that takes (currentLine, featureIndex, multiFeatureIndex, geometryIndex)\n * @example\n * var multiLine = turf.multiLineString([\n * [[26, 37], [35, 45]],\n * [[36, 53], [38, 50], [41, 55]]\n * ]);\n *\n * turf.lineEach(multiLine, function (currentLine, featureIndex, multiFeatureIndex, geometryIndex) {\n * //=currentLine\n * //=featureIndex\n * //=multiFeatureIndex\n * //=geometryIndex\n * });\n */\nfunction lineEach(geojson, callback) {\n // validation\n if (!geojson) throw new Error('geojson is required');\n\n flattenEach(geojson, function (feature, featureIndex, multiFeatureIndex) {\n if (feature.geometry === null) return;\n var type = feature.geometry.type;\n var coords = feature.geometry.coordinates;\n switch (type) {\n case 'LineString':\n if (callback(feature, featureIndex, multiFeatureIndex, 0, 0) === false) return false;\n break;\n case 'Polygon':\n for (var geometryIndex = 0; geometryIndex < coords.length; geometryIndex++) {\n if (callback(helpers.lineString(coords[geometryIndex], feature.properties), featureIndex, multiFeatureIndex, geometryIndex) === false) return false;\n }\n break;\n }\n });\n}\n\n/**\n * Callback for lineReduce\n *\n * The first time the callback function is called, the values provided as arguments depend\n * on whether the reduce method has an initialValue argument.\n *\n * If an initialValue is provided to the reduce method:\n * - The previousValue argument is initialValue.\n * - The currentValue argument is the value of the first element present in the array.\n *\n * If an initialValue is not provided:\n * - The previousValue argument is the value of the first element present in the array.\n * - The currentValue argument is the value of the second element present in the array.\n *\n * @callback lineReduceCallback\n * @param {*} previousValue The accumulated value previously returned in the last invocation\n * of the callback, or initialValue, if supplied.\n * @param {Feature} currentLine The current LineString|LinearRing being processed.\n * @param {number} featureIndex The current index of the Feature being processed\n * @param {number} multiFeatureIndex The current index of the Multi-Feature being processed\n * @param {number} geometryIndex The current index of the Geometry being processed\n */\n\n/**\n * Reduce features in any GeoJSON object, similar to Array.reduce().\n *\n * @name lineReduce\n * @param {Geometry|Feature} geojson object\n * @param {Function} callback a method that takes (previousValue, currentLine, featureIndex, multiFeatureIndex, geometryIndex)\n * @param {*} [initialValue] Value to use as the first argument to the first call of the callback.\n * @returns {*} The value that results from the reduction.\n * @example\n * var multiPoly = turf.multiPolygon([\n * turf.polygon([[[12,48],[2,41],[24,38],[12,48]], [[9,44],[13,41],[13,45],[9,44]]]),\n * turf.polygon([[[5, 5], [0, 0], [2, 2], [4, 4], [5, 5]]])\n * ]);\n *\n * turf.lineReduce(multiPoly, function (previousValue, currentLine, featureIndex, multiFeatureIndex, geometryIndex) {\n * //=previousValue\n * //=currentLine\n * //=featureIndex\n * //=multiFeatureIndex\n * //=geometryIndex\n * return currentLine\n * });\n */\nfunction lineReduce(geojson, callback, initialValue) {\n var previousValue = initialValue;\n lineEach(geojson, function (currentLine, featureIndex, multiFeatureIndex, geometryIndex) {\n if (featureIndex === 0 && initialValue === undefined) previousValue = currentLine;\n else previousValue = callback(previousValue, currentLine, featureIndex, multiFeatureIndex, geometryIndex);\n });\n return previousValue;\n}\n\n/**\n * Finds a particular 2-vertex LineString Segment from a GeoJSON using `@turf/meta` indexes.\n *\n * Negative indexes are permitted.\n * Point & MultiPoint will always return null.\n *\n * @param {FeatureCollection|Feature|Geometry} geojson Any GeoJSON Feature or Geometry\n * @param {Object} [options={}] Optional parameters\n * @param {number} [options.featureIndex=0] Feature Index\n * @param {number} [options.multiFeatureIndex=0] Multi-Feature Index\n * @param {number} [options.geometryIndex=0] Geometry Index\n * @param {number} [options.segmentIndex=0] Segment Index\n * @param {Object} [options.properties={}] Translate Properties to output LineString\n * @param {BBox} [options.bbox={}] Translate BBox to output LineString\n * @param {number|string} [options.id={}] Translate Id to output LineString\n * @returns {Feature} 2-vertex GeoJSON Feature LineString\n * @example\n * var multiLine = turf.multiLineString([\n * [[10, 10], [50, 30], [30, 40]],\n * [[-10, -10], [-50, -30], [-30, -40]]\n * ]);\n *\n * // First Segment (defaults are 0)\n * turf.findSegment(multiLine);\n * // => Feature>\n *\n * // First Segment of 2nd Multi Feature\n * turf.findSegment(multiLine, {multiFeatureIndex: 1});\n * // => Feature>\n *\n * // Last Segment of Last Multi Feature\n * turf.findSegment(multiLine, {multiFeatureIndex: -1, segmentIndex: -1});\n * // => Feature>\n */\nfunction findSegment(geojson, options) {\n // Optional Parameters\n options = options || {};\n if (!helpers.isObject(options)) throw new Error('options is invalid');\n var featureIndex = options.featureIndex || 0;\n var multiFeatureIndex = options.multiFeatureIndex || 0;\n var geometryIndex = options.geometryIndex || 0;\n var segmentIndex = options.segmentIndex || 0;\n\n // Find FeatureIndex\n var properties = options.properties;\n var geometry;\n\n switch (geojson.type) {\n case 'FeatureCollection':\n if (featureIndex < 0) featureIndex = geojson.features.length + featureIndex;\n properties = properties || geojson.features[featureIndex].properties;\n geometry = geojson.features[featureIndex].geometry;\n break;\n case 'Feature':\n properties = properties || geojson.properties;\n geometry = geojson.geometry;\n break;\n case 'Point':\n case 'MultiPoint':\n return null;\n case 'LineString':\n case 'Polygon':\n case 'MultiLineString':\n case 'MultiPolygon':\n geometry = geojson;\n break;\n default:\n throw new Error('geojson is invalid');\n }\n\n // Find SegmentIndex\n if (geometry === null) return null;\n var coords = geometry.coordinates;\n switch (geometry.type) {\n case 'Point':\n case 'MultiPoint':\n return null;\n case 'LineString':\n if (segmentIndex < 0) segmentIndex = coords.length + segmentIndex - 1;\n return helpers.lineString([coords[segmentIndex], coords[segmentIndex + 1]], properties, options);\n case 'Polygon':\n if (geometryIndex < 0) geometryIndex = coords.length + geometryIndex;\n if (segmentIndex < 0) segmentIndex = coords[geometryIndex].length + segmentIndex - 1;\n return helpers.lineString([coords[geometryIndex][segmentIndex], coords[geometryIndex][segmentIndex + 1]], properties, options);\n case 'MultiLineString':\n if (multiFeatureIndex < 0) multiFeatureIndex = coords.length + multiFeatureIndex;\n if (segmentIndex < 0) segmentIndex = coords[multiFeatureIndex].length + segmentIndex - 1;\n return helpers.lineString([coords[multiFeatureIndex][segmentIndex], coords[multiFeatureIndex][segmentIndex + 1]], properties, options);\n case 'MultiPolygon':\n if (multiFeatureIndex < 0) multiFeatureIndex = coords.length + multiFeatureIndex;\n if (geometryIndex < 0) geometryIndex = coords[multiFeatureIndex].length + geometryIndex;\n if (segmentIndex < 0) segmentIndex = coords[multiFeatureIndex][geometryIndex].length - segmentIndex - 1;\n return helpers.lineString([coords[multiFeatureIndex][geometryIndex][segmentIndex], coords[multiFeatureIndex][geometryIndex][segmentIndex + 1]], properties, options);\n }\n throw new Error('geojson is invalid');\n}\n\n/**\n * Finds a particular Point from a GeoJSON using `@turf/meta` indexes.\n *\n * Negative indexes are permitted.\n *\n * @param {FeatureCollection|Feature|Geometry} geojson Any GeoJSON Feature or Geometry\n * @param {Object} [options={}] Optional parameters\n * @param {number} [options.featureIndex=0] Feature Index\n * @param {number} [options.multiFeatureIndex=0] Multi-Feature Index\n * @param {number} [options.geometryIndex=0] Geometry Index\n * @param {number} [options.coordIndex=0] Coord Index\n * @param {Object} [options.properties={}] Translate Properties to output Point\n * @param {BBox} [options.bbox={}] Translate BBox to output Point\n * @param {number|string} [options.id={}] Translate Id to output Point\n * @returns {Feature} 2-vertex GeoJSON Feature Point\n * @example\n * var multiLine = turf.multiLineString([\n * [[10, 10], [50, 30], [30, 40]],\n * [[-10, -10], [-50, -30], [-30, -40]]\n * ]);\n *\n * // First Segment (defaults are 0)\n * turf.findPoint(multiLine);\n * // => Feature>\n *\n * // First Segment of the 2nd Multi-Feature\n * turf.findPoint(multiLine, {multiFeatureIndex: 1});\n * // => Feature>\n *\n * // Last Segment of last Multi-Feature\n * turf.findPoint(multiLine, {multiFeatureIndex: -1, coordIndex: -1});\n * // => Feature>\n */\nfunction findPoint(geojson, options) {\n // Optional Parameters\n options = options || {};\n if (!helpers.isObject(options)) throw new Error('options is invalid');\n var featureIndex = options.featureIndex || 0;\n var multiFeatureIndex = options.multiFeatureIndex || 0;\n var geometryIndex = options.geometryIndex || 0;\n var coordIndex = options.coordIndex || 0;\n\n // Find FeatureIndex\n var properties = options.properties;\n var geometry;\n\n switch (geojson.type) {\n case 'FeatureCollection':\n if (featureIndex < 0) featureIndex = geojson.features.length + featureIndex;\n properties = properties || geojson.features[featureIndex].properties;\n geometry = geojson.features[featureIndex].geometry;\n break;\n case 'Feature':\n properties = properties || geojson.properties;\n geometry = geojson.geometry;\n break;\n case 'Point':\n case 'MultiPoint':\n return null;\n case 'LineString':\n case 'Polygon':\n case 'MultiLineString':\n case 'MultiPolygon':\n geometry = geojson;\n break;\n default:\n throw new Error('geojson is invalid');\n }\n\n // Find Coord Index\n if (geometry === null) return null;\n var coords = geometry.coordinates;\n switch (geometry.type) {\n case 'Point':\n return helpers.point(coords, properties, options);\n case 'MultiPoint':\n if (multiFeatureIndex < 0) multiFeatureIndex = coords.length + multiFeatureIndex;\n return helpers.point(coords[multiFeatureIndex], properties, options);\n case 'LineString':\n if (coordIndex < 0) coordIndex = coords.length + coordIndex;\n return helpers.point(coords[coordIndex], properties, options);\n case 'Polygon':\n if (geometryIndex < 0) geometryIndex = coords.length + geometryIndex;\n if (coordIndex < 0) coordIndex = coords[geometryIndex].length + coordIndex;\n return helpers.point(coords[geometryIndex][coordIndex], properties, options);\n case 'MultiLineString':\n if (multiFeatureIndex < 0) multiFeatureIndex = coords.length + multiFeatureIndex;\n if (coordIndex < 0) coordIndex = coords[multiFeatureIndex].length + coordIndex;\n return helpers.point(coords[multiFeatureIndex][coordIndex], properties, options);\n case 'MultiPolygon':\n if (multiFeatureIndex < 0) multiFeatureIndex = coords.length + multiFeatureIndex;\n if (geometryIndex < 0) geometryIndex = coords[multiFeatureIndex].length + geometryIndex;\n if (coordIndex < 0) coordIndex = coords[multiFeatureIndex][geometryIndex].length - coordIndex;\n return helpers.point(coords[multiFeatureIndex][geometryIndex][coordIndex], properties, options);\n }\n throw new Error('geojson is invalid');\n}\n\nexports.coordEach = coordEach;\nexports.coordReduce = coordReduce;\nexports.propEach = propEach;\nexports.propReduce = propReduce;\nexports.featureEach = featureEach;\nexports.featureReduce = featureReduce;\nexports.coordAll = coordAll;\nexports.geomEach = geomEach;\nexports.geomReduce = geomReduce;\nexports.flattenEach = flattenEach;\nexports.flattenReduce = flattenReduce;\nexports.segmentEach = segmentEach;\nexports.segmentReduce = segmentReduce;\nexports.lineEach = lineEach;\nexports.lineReduce = lineReduce;\nexports.findSegment = findSegment;\nexports.findPoint = findPoint;\n\n},{\"@turf/helpers\":68}],70:[function(_dereq_,module,exports){\n\nmodule.exports = absolutize\n\n/**\n * redefine `path` with absolute coordinates\n *\n * @param {Array} path\n * @return {Array}\n */\n\nfunction absolutize(path){\n\tvar startX = 0\n\tvar startY = 0\n\tvar x = 0\n\tvar y = 0\n\n\treturn path.map(function(seg){\n\t\tseg = seg.slice()\n\t\tvar type = seg[0]\n\t\tvar command = type.toUpperCase()\n\n\t\t// is relative\n\t\tif (type != command) {\n\t\t\tseg[0] = command\n\t\t\tswitch (type) {\n\t\t\t\tcase 'a':\n\t\t\t\t\tseg[6] += x\n\t\t\t\t\tseg[7] += y\n\t\t\t\t\tbreak\n\t\t\t\tcase 'v':\n\t\t\t\t\tseg[1] += y\n\t\t\t\t\tbreak\n\t\t\t\tcase 'h':\n\t\t\t\t\tseg[1] += x\n\t\t\t\t\tbreak\n\t\t\t\tdefault:\n\t\t\t\t\tfor (var i = 1; i < seg.length;) {\n\t\t\t\t\t\tseg[i++] += x\n\t\t\t\t\t\tseg[i++] += y\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// update cursor state\n\t\tswitch (command) {\n\t\t\tcase 'Z':\n\t\t\t\tx = startX\n\t\t\t\ty = startY\n\t\t\t\tbreak\n\t\t\tcase 'H':\n\t\t\t\tx = seg[1]\n\t\t\t\tbreak\n\t\t\tcase 'V':\n\t\t\t\ty = seg[1]\n\t\t\t\tbreak\n\t\t\tcase 'M':\n\t\t\t\tx = startX = seg[1]\n\t\t\t\ty = startY = seg[2]\n\t\t\t\tbreak\n\t\t\tdefault:\n\t\t\t\tx = seg[seg.length - 2]\n\t\t\t\ty = seg[seg.length - 1]\n\t\t}\n\n\t\treturn seg\n\t})\n}\n\n},{}],71:[function(_dereq_,module,exports){\n'use strict'\r\n\r\nmodule.exports = normalize;\r\n\r\nfunction normalize (arr, dim) {\r\n\tif (!arr || arr.length == null) throw Error('Argument should be an array')\r\n\r\n\tif (dim == null) dim = 1\r\n\telse dim = Math.floor(dim)\r\n\r\n\tvar bounds = Array(dim * 2)\r\n\r\n\tfor (var offset = 0; offset < dim; offset++) {\r\n\t\tvar max = -Infinity, min = Infinity, i = offset, l = arr.length;\r\n\r\n\t\tfor (; i < l; i+=dim) {\r\n\t\t\tif (arr[i] > max) max = arr[i];\r\n\t\t\tif (arr[i] < min) min = arr[i];\r\n\t\t}\r\n\r\n\t\tbounds[offset] = min\r\n\t\tbounds[dim + offset] = max\r\n\t}\r\n\r\n\treturn bounds;\r\n}\r\n\n},{}],72:[function(_dereq_,module,exports){\n'use strict';\nmodule.exports = function (arr, predicate, ctx) {\n\tif (typeof Array.prototype.findIndex === 'function') {\n\t\treturn arr.findIndex(predicate, ctx);\n\t}\n\n\tif (typeof predicate !== 'function') {\n\t\tthrow new TypeError('predicate must be a function');\n\t}\n\n\tvar list = Object(arr);\n\tvar len = list.length;\n\n\tif (len === 0) {\n\t\treturn -1;\n\t}\n\n\tfor (var i = 0; i < len; i++) {\n\t\tif (predicate.call(ctx, list[i], i, list)) {\n\t\t\treturn i;\n\t\t}\n\t}\n\n\treturn -1;\n};\n\n},{}],73:[function(_dereq_,module,exports){\n'use strict'\r\n\r\nvar getBounds = _dereq_('array-bounds')\r\n\r\nmodule.exports = normalize;\r\n\r\nfunction normalize (arr, dim, bounds) {\r\n\tif (!arr || arr.length == null) throw Error('Argument should be an array')\r\n\r\n\tif (dim == null) dim = 1\r\n\tif (bounds == null) bounds = getBounds(arr, dim)\r\n\r\n\tfor (var offset = 0; offset < dim; offset++) {\r\n\t\tvar max = bounds[dim + offset], min = bounds[offset], i = offset, l = arr.length;\r\n\r\n\t\tif (max === Infinity && min === -Infinity) {\r\n\t\t\tfor (i = offset; i < l; i+=dim) {\r\n\t\t\t\tarr[i] = arr[i] === max ? 1 : arr[i] === min ? 0 : .5\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (max === Infinity) {\r\n\t\t\tfor (i = offset; i < l; i+=dim) {\r\n\t\t\t\tarr[i] = arr[i] === max ? 1 : 0\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (min === -Infinity) {\r\n\t\t\tfor (i = offset; i < l; i+=dim) {\r\n\t\t\t\tarr[i] = arr[i] === min ? 0 : 1\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvar range = max - min\r\n\t\t\tfor (i = offset; i < l; i+=dim) {\r\n\t\t\t\tif (!isNaN(arr[i])) {\r\n\t\t\t\t\tarr[i] = range === 0 ? .5 : (arr[i] - min) / range\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\treturn arr;\r\n}\r\n\n},{\"array-bounds\":71}],74:[function(_dereq_,module,exports){\n\nmodule.exports = function newArray(start, end) {\n var n0 = typeof start === 'number',\n n1 = typeof end === 'number'\n\n if (n0 && !n1) {\n end = start\n start = 0\n } else if (!n0 && !n1) {\n start = 0\n end = 0\n }\n\n start = start|0\n end = end|0\n var len = end-start\n if (len<0)\n throw new Error('array length must be positive')\n \n var a = new Array(len)\n for (var i=0, c=start; i \n * @license MIT\n */\nfunction compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}\nfunction isBuffer(b) {\n if (global.Buffer && typeof global.Buffer.isBuffer === 'function') {\n return global.Buffer.isBuffer(b);\n }\n return !!(b != null && b._isBuffer);\n}\n\n// based on node assert, original notice:\n// NB: The URL to the CommonJS spec is kept just for tradition.\n// node-assert has evolved a lot since then, both in API and behavior.\n\n// http://wiki.commonjs.org/wiki/Unit_Testing/1.0\n//\n// THIS IS NOT TESTED NOR LIKELY TO WORK OUTSIDE V8!\n//\n// Originally from narwhal.js (http://narwhaljs.org)\n// Copyright (c) 2009 Thomas Robinson <280north.com>\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the 'Software'), to\n// deal in the Software without restriction, including without limitation the\n// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n// sell copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nvar util = _dereq_('util/');\nvar hasOwn = Object.prototype.hasOwnProperty;\nvar pSlice = Array.prototype.slice;\nvar functionsHaveNames = (function () {\n return function foo() {}.name === 'foo';\n}());\nfunction pToString (obj) {\n return Object.prototype.toString.call(obj);\n}\nfunction isView(arrbuf) {\n if (isBuffer(arrbuf)) {\n return false;\n }\n if (typeof global.ArrayBuffer !== 'function') {\n return false;\n }\n if (typeof ArrayBuffer.isView === 'function') {\n return ArrayBuffer.isView(arrbuf);\n }\n if (!arrbuf) {\n return false;\n }\n if (arrbuf instanceof DataView) {\n return true;\n }\n if (arrbuf.buffer && arrbuf.buffer instanceof ArrayBuffer) {\n return true;\n }\n return false;\n}\n// 1. The assert module provides functions that throw\n// AssertionError's when particular conditions are not met. The\n// assert module must conform to the following interface.\n\nvar assert = module.exports = ok;\n\n// 2. The AssertionError is defined in assert.\n// new assert.AssertionError({ message: message,\n// actual: actual,\n// expected: expected })\n\nvar regex = /\\s*function\\s+([^\\(\\s]*)\\s*/;\n// based on https://github.com/ljharb/function.prototype.name/blob/adeeeec8bfcc6068b187d7d9fb3d5bb1d3a30899/implementation.js\nfunction getName(func) {\n if (!util.isFunction(func)) {\n return;\n }\n if (functionsHaveNames) {\n return func.name;\n }\n var str = func.toString();\n var match = str.match(regex);\n return match && match[1];\n}\nassert.AssertionError = function AssertionError(options) {\n this.name = 'AssertionError';\n this.actual = options.actual;\n this.expected = options.expected;\n this.operator = options.operator;\n if (options.message) {\n this.message = options.message;\n this.generatedMessage = false;\n } else {\n this.message = getMessage(this);\n this.generatedMessage = true;\n }\n var stackStartFunction = options.stackStartFunction || fail;\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, stackStartFunction);\n } else {\n // non v8 browsers so we can have a stacktrace\n var err = new Error();\n if (err.stack) {\n var out = err.stack;\n\n // try to strip useless frames\n var fn_name = getName(stackStartFunction);\n var idx = out.indexOf('\\n' + fn_name);\n if (idx >= 0) {\n // once we have located the function frame\n // we need to strip out everything before it (and its line)\n var next_line = out.indexOf('\\n', idx + 1);\n out = out.substring(next_line + 1);\n }\n\n this.stack = out;\n }\n }\n};\n\n// assert.AssertionError instanceof Error\nutil.inherits(assert.AssertionError, Error);\n\nfunction truncate(s, n) {\n if (typeof s === 'string') {\n return s.length < n ? s : s.slice(0, n);\n } else {\n return s;\n }\n}\nfunction inspect(something) {\n if (functionsHaveNames || !util.isFunction(something)) {\n return util.inspect(something);\n }\n var rawname = getName(something);\n var name = rawname ? ': ' + rawname : '';\n return '[Function' + name + ']';\n}\nfunction getMessage(self) {\n return truncate(inspect(self.actual), 128) + ' ' +\n self.operator + ' ' +\n truncate(inspect(self.expected), 128);\n}\n\n// At present only the three keys mentioned above are used and\n// understood by the spec. Implementations or sub modules can pass\n// other keys to the AssertionError's constructor - they will be\n// ignored.\n\n// 3. All of the following functions must throw an AssertionError\n// when a corresponding condition is not met, with a message that\n// may be undefined if not provided. All assertion methods provide\n// both the actual and expected values to the assertion error for\n// display purposes.\n\nfunction fail(actual, expected, message, operator, stackStartFunction) {\n throw new assert.AssertionError({\n message: message,\n actual: actual,\n expected: expected,\n operator: operator,\n stackStartFunction: stackStartFunction\n });\n}\n\n// EXTENSION! allows for well behaved errors defined elsewhere.\nassert.fail = fail;\n\n// 4. Pure assertion tests whether a value is truthy, as determined\n// by !!guard.\n// assert.ok(guard, message_opt);\n// This statement is equivalent to assert.equal(true, !!guard,\n// message_opt);. To test strictly for the value true, use\n// assert.strictEqual(true, guard, message_opt);.\n\nfunction ok(value, message) {\n if (!value) fail(value, true, message, '==', assert.ok);\n}\nassert.ok = ok;\n\n// 5. The equality assertion tests shallow, coercive equality with\n// ==.\n// assert.equal(actual, expected, message_opt);\n\nassert.equal = function equal(actual, expected, message) {\n if (actual != expected) fail(actual, expected, message, '==', assert.equal);\n};\n\n// 6. The non-equality assertion tests for whether two objects are not equal\n// with != assert.notEqual(actual, expected, message_opt);\n\nassert.notEqual = function notEqual(actual, expected, message) {\n if (actual == expected) {\n fail(actual, expected, message, '!=', assert.notEqual);\n }\n};\n\n// 7. The equivalence assertion tests a deep equality relation.\n// assert.deepEqual(actual, expected, message_opt);\n\nassert.deepEqual = function deepEqual(actual, expected, message) {\n if (!_deepEqual(actual, expected, false)) {\n fail(actual, expected, message, 'deepEqual', assert.deepEqual);\n }\n};\n\nassert.deepStrictEqual = function deepStrictEqual(actual, expected, message) {\n if (!_deepEqual(actual, expected, true)) {\n fail(actual, expected, message, 'deepStrictEqual', assert.deepStrictEqual);\n }\n};\n\nfunction _deepEqual(actual, expected, strict, memos) {\n // 7.1. All identical values are equivalent, as determined by ===.\n if (actual === expected) {\n return true;\n } else if (isBuffer(actual) && isBuffer(expected)) {\n return compare(actual, expected) === 0;\n\n // 7.2. If the expected value is a Date object, the actual value is\n // equivalent if it is also a Date object that refers to the same time.\n } else if (util.isDate(actual) && util.isDate(expected)) {\n return actual.getTime() === expected.getTime();\n\n // 7.3 If the expected value is a RegExp object, the actual value is\n // equivalent if it is also a RegExp object with the same source and\n // properties (`global`, `multiline`, `lastIndex`, `ignoreCase`).\n } else if (util.isRegExp(actual) && util.isRegExp(expected)) {\n return actual.source === expected.source &&\n actual.global === expected.global &&\n actual.multiline === expected.multiline &&\n actual.lastIndex === expected.lastIndex &&\n actual.ignoreCase === expected.ignoreCase;\n\n // 7.4. Other pairs that do not both pass typeof value == 'object',\n // equivalence is determined by ==.\n } else if ((actual === null || typeof actual !== 'object') &&\n (expected === null || typeof expected !== 'object')) {\n return strict ? actual === expected : actual == expected;\n\n // If both values are instances of typed arrays, wrap their underlying\n // ArrayBuffers in a Buffer each to increase performance\n // This optimization requires the arrays to have the same type as checked by\n // Object.prototype.toString (aka pToString). Never perform binary\n // comparisons for Float*Arrays, though, since e.g. +0 === -0 but their\n // bit patterns are not identical.\n } else if (isView(actual) && isView(expected) &&\n pToString(actual) === pToString(expected) &&\n !(actual instanceof Float32Array ||\n actual instanceof Float64Array)) {\n return compare(new Uint8Array(actual.buffer),\n new Uint8Array(expected.buffer)) === 0;\n\n // 7.5 For all other Object pairs, including Array objects, equivalence is\n // determined by having the same number of owned properties (as verified\n // with Object.prototype.hasOwnProperty.call), the same set of keys\n // (although not necessarily the same order), equivalent values for every\n // corresponding key, and an identical 'prototype' property. Note: this\n // accounts for both named and indexed properties on Arrays.\n } else if (isBuffer(actual) !== isBuffer(expected)) {\n return false;\n } else {\n memos = memos || {actual: [], expected: []};\n\n var actualIndex = memos.actual.indexOf(actual);\n if (actualIndex !== -1) {\n if (actualIndex === memos.expected.indexOf(expected)) {\n return true;\n }\n }\n\n memos.actual.push(actual);\n memos.expected.push(expected);\n\n return objEquiv(actual, expected, strict, memos);\n }\n}\n\nfunction isArguments(object) {\n return Object.prototype.toString.call(object) == '[object Arguments]';\n}\n\nfunction objEquiv(a, b, strict, actualVisitedObjects) {\n if (a === null || a === undefined || b === null || b === undefined)\n return false;\n // if one is a primitive, the other must be same\n if (util.isPrimitive(a) || util.isPrimitive(b))\n return a === b;\n if (strict && Object.getPrototypeOf(a) !== Object.getPrototypeOf(b))\n return false;\n var aIsArgs = isArguments(a);\n var bIsArgs = isArguments(b);\n if ((aIsArgs && !bIsArgs) || (!aIsArgs && bIsArgs))\n return false;\n if (aIsArgs) {\n a = pSlice.call(a);\n b = pSlice.call(b);\n return _deepEqual(a, b, strict);\n }\n var ka = objectKeys(a);\n var kb = objectKeys(b);\n var key, i;\n // having the same number of owned properties (keys incorporates\n // hasOwnProperty)\n if (ka.length !== kb.length)\n return false;\n //the same set of keys (although not necessarily the same order),\n ka.sort();\n kb.sort();\n //~~~cheap key test\n for (i = ka.length - 1; i >= 0; i--) {\n if (ka[i] !== kb[i])\n return false;\n }\n //equivalent values for every corresponding key, and\n //~~~possibly expensive deep test\n for (i = ka.length - 1; i >= 0; i--) {\n key = ka[i];\n if (!_deepEqual(a[key], b[key], strict, actualVisitedObjects))\n return false;\n }\n return true;\n}\n\n// 8. The non-equivalence assertion tests for any deep inequality.\n// assert.notDeepEqual(actual, expected, message_opt);\n\nassert.notDeepEqual = function notDeepEqual(actual, expected, message) {\n if (_deepEqual(actual, expected, false)) {\n fail(actual, expected, message, 'notDeepEqual', assert.notDeepEqual);\n }\n};\n\nassert.notDeepStrictEqual = notDeepStrictEqual;\nfunction notDeepStrictEqual(actual, expected, message) {\n if (_deepEqual(actual, expected, true)) {\n fail(actual, expected, message, 'notDeepStrictEqual', notDeepStrictEqual);\n }\n}\n\n\n// 9. The strict equality assertion tests strict equality, as determined by ===.\n// assert.strictEqual(actual, expected, message_opt);\n\nassert.strictEqual = function strictEqual(actual, expected, message) {\n if (actual !== expected) {\n fail(actual, expected, message, '===', assert.strictEqual);\n }\n};\n\n// 10. The strict non-equality assertion tests for strict inequality, as\n// determined by !==. assert.notStrictEqual(actual, expected, message_opt);\n\nassert.notStrictEqual = function notStrictEqual(actual, expected, message) {\n if (actual === expected) {\n fail(actual, expected, message, '!==', assert.notStrictEqual);\n }\n};\n\nfunction expectedException(actual, expected) {\n if (!actual || !expected) {\n return false;\n }\n\n if (Object.prototype.toString.call(expected) == '[object RegExp]') {\n return expected.test(actual);\n }\n\n try {\n if (actual instanceof expected) {\n return true;\n }\n } catch (e) {\n // Ignore. The instanceof check doesn't work for arrow functions.\n }\n\n if (Error.isPrototypeOf(expected)) {\n return false;\n }\n\n return expected.call({}, actual) === true;\n}\n\nfunction _tryBlock(block) {\n var error;\n try {\n block();\n } catch (e) {\n error = e;\n }\n return error;\n}\n\nfunction _throws(shouldThrow, block, expected, message) {\n var actual;\n\n if (typeof block !== 'function') {\n throw new TypeError('\"block\" argument must be a function');\n }\n\n if (typeof expected === 'string') {\n message = expected;\n expected = null;\n }\n\n actual = _tryBlock(block);\n\n message = (expected && expected.name ? ' (' + expected.name + ').' : '.') +\n (message ? ' ' + message : '.');\n\n if (shouldThrow && !actual) {\n fail(actual, expected, 'Missing expected exception' + message);\n }\n\n var userProvidedMessage = typeof message === 'string';\n var isUnwantedException = !shouldThrow && util.isError(actual);\n var isUnexpectedException = !shouldThrow && actual && !expected;\n\n if ((isUnwantedException &&\n userProvidedMessage &&\n expectedException(actual, expected)) ||\n isUnexpectedException) {\n fail(actual, expected, 'Got unwanted exception' + message);\n }\n\n if ((shouldThrow && actual && expected &&\n !expectedException(actual, expected)) || (!shouldThrow && actual)) {\n throw actual;\n }\n}\n\n// 11. Expected to throw an error:\n// assert.throws(block, Error_opt, message_opt);\n\nassert.throws = function(block, /*optional*/error, /*optional*/message) {\n _throws(true, block, error, message);\n};\n\n// EXTENSION! This is annoying to write outside this module.\nassert.doesNotThrow = function(block, /*optional*/error, /*optional*/message) {\n _throws(false, block, error, message);\n};\n\nassert.ifError = function(err) { if (err) throw err; };\n\n// Expose a strict only variant of assert\nfunction strict(value, message) {\n if (!value) fail(value, true, message, '==', strict);\n}\nassert.strict = objectAssign(strict, assert, {\n equal: assert.strictEqual,\n deepEqual: assert.deepStrictEqual,\n notEqual: assert.notStrictEqual,\n notDeepEqual: assert.notDeepStrictEqual\n});\nassert.strict.strict = assert.strict;\n\nvar objectKeys = Object.keys || function (obj) {\n var keys = [];\n for (var key in obj) {\n if (hasOwn.call(obj, key)) keys.push(key);\n }\n return keys;\n};\n\n}).call(this)}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{\"object-assign\":247,\"util/\":78}],76:[function(_dereq_,module,exports){\nif (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n}\n\n},{}],77:[function(_dereq_,module,exports){\nmodule.exports = function isBuffer(arg) {\n return arg && typeof arg === 'object'\n && typeof arg.copy === 'function'\n && typeof arg.fill === 'function'\n && typeof arg.readUInt8 === 'function';\n}\n},{}],78:[function(_dereq_,module,exports){\n(function (process,global){(function (){\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nvar formatRegExp = /%[sdj%]/g;\nexports.format = function(f) {\n if (!isString(f)) {\n var objects = [];\n for (var i = 0; i < arguments.length; i++) {\n objects.push(inspect(arguments[i]));\n }\n return objects.join(' ');\n }\n\n var i = 1;\n var args = arguments;\n var len = args.length;\n var str = String(f).replace(formatRegExp, function(x) {\n if (x === '%%') return '%';\n if (i >= len) return x;\n switch (x) {\n case '%s': return String(args[i++]);\n case '%d': return Number(args[i++]);\n case '%j':\n try {\n return JSON.stringify(args[i++]);\n } catch (_) {\n return '[Circular]';\n }\n default:\n return x;\n }\n });\n for (var x = args[i]; i < len; x = args[++i]) {\n if (isNull(x) || !isObject(x)) {\n str += ' ' + x;\n } else {\n str += ' ' + inspect(x);\n }\n }\n return str;\n};\n\n\n// Mark that a method should not be used.\n// Returns a modified function which warns once by default.\n// If --no-deprecation is set, then it is a no-op.\nexports.deprecate = function(fn, msg) {\n // Allow for deprecating things in the process of starting up.\n if (isUndefined(global.process)) {\n return function() {\n return exports.deprecate(fn, msg).apply(this, arguments);\n };\n }\n\n if (process.noDeprecation === true) {\n return fn;\n }\n\n var warned = false;\n function deprecated() {\n if (!warned) {\n if (process.throwDeprecation) {\n throw new Error(msg);\n } else if (process.traceDeprecation) {\n console.trace(msg);\n } else {\n console.error(msg);\n }\n warned = true;\n }\n return fn.apply(this, arguments);\n }\n\n return deprecated;\n};\n\n\nvar debugs = {};\nvar debugEnviron;\nexports.debuglog = function(set) {\n if (isUndefined(debugEnviron))\n debugEnviron = process.env.NODE_DEBUG || '';\n set = set.toUpperCase();\n if (!debugs[set]) {\n if (new RegExp('\\\\b' + set + '\\\\b', 'i').test(debugEnviron)) {\n var pid = process.pid;\n debugs[set] = function() {\n var msg = exports.format.apply(exports, arguments);\n console.error('%s %d: %s', set, pid, msg);\n };\n } else {\n debugs[set] = function() {};\n }\n }\n return debugs[set];\n};\n\n\n/**\n * Echos the value of a value. Trys to print the value out\n * in the best way possible given the different types.\n *\n * @param {Object} obj The object to print out.\n * @param {Object} opts Optional options object that alters the output.\n */\n/* legacy: obj, showHidden, depth, colors*/\nfunction inspect(obj, opts) {\n // default options\n var ctx = {\n seen: [],\n stylize: stylizeNoColor\n };\n // legacy...\n if (arguments.length >= 3) ctx.depth = arguments[2];\n if (arguments.length >= 4) ctx.colors = arguments[3];\n if (isBoolean(opts)) {\n // legacy...\n ctx.showHidden = opts;\n } else if (opts) {\n // got an \"options\" object\n exports._extend(ctx, opts);\n }\n // set default options\n if (isUndefined(ctx.showHidden)) ctx.showHidden = false;\n if (isUndefined(ctx.depth)) ctx.depth = 2;\n if (isUndefined(ctx.colors)) ctx.colors = false;\n if (isUndefined(ctx.customInspect)) ctx.customInspect = true;\n if (ctx.colors) ctx.stylize = stylizeWithColor;\n return formatValue(ctx, obj, ctx.depth);\n}\nexports.inspect = inspect;\n\n\n// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics\ninspect.colors = {\n 'bold' : [1, 22],\n 'italic' : [3, 23],\n 'underline' : [4, 24],\n 'inverse' : [7, 27],\n 'white' : [37, 39],\n 'grey' : [90, 39],\n 'black' : [30, 39],\n 'blue' : [34, 39],\n 'cyan' : [36, 39],\n 'green' : [32, 39],\n 'magenta' : [35, 39],\n 'red' : [31, 39],\n 'yellow' : [33, 39]\n};\n\n// Don't use 'blue' not visible on cmd.exe\ninspect.styles = {\n 'special': 'cyan',\n 'number': 'yellow',\n 'boolean': 'yellow',\n 'undefined': 'grey',\n 'null': 'bold',\n 'string': 'green',\n 'date': 'magenta',\n // \"name\": intentionally not styling\n 'regexp': 'red'\n};\n\n\nfunction stylizeWithColor(str, styleType) {\n var style = inspect.styles[styleType];\n\n if (style) {\n return '\\u001b[' + inspect.colors[style][0] + 'm' + str +\n '\\u001b[' + inspect.colors[style][1] + 'm';\n } else {\n return str;\n }\n}\n\n\nfunction stylizeNoColor(str, styleType) {\n return str;\n}\n\n\nfunction arrayToHash(array) {\n var hash = {};\n\n array.forEach(function(val, idx) {\n hash[val] = true;\n });\n\n return hash;\n}\n\n\nfunction formatValue(ctx, value, recurseTimes) {\n // Provide a hook for user-specified inspect functions.\n // Check that value is an object with an inspect function on it\n if (ctx.customInspect &&\n value &&\n isFunction(value.inspect) &&\n // Filter out the util module, it's inspect function is special\n value.inspect !== exports.inspect &&\n // Also filter out any prototype objects using the circular check.\n !(value.constructor && value.constructor.prototype === value)) {\n var ret = value.inspect(recurseTimes, ctx);\n if (!isString(ret)) {\n ret = formatValue(ctx, ret, recurseTimes);\n }\n return ret;\n }\n\n // Primitive types cannot have properties\n var primitive = formatPrimitive(ctx, value);\n if (primitive) {\n return primitive;\n }\n\n // Look up the keys of the object.\n var keys = Object.keys(value);\n var visibleKeys = arrayToHash(keys);\n\n if (ctx.showHidden) {\n keys = Object.getOwnPropertyNames(value);\n }\n\n // IE doesn't make error fields non-enumerable\n // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx\n if (isError(value)\n && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {\n return formatError(value);\n }\n\n // Some type of object without properties can be shortcutted.\n if (keys.length === 0) {\n if (isFunction(value)) {\n var name = value.name ? ': ' + value.name : '';\n return ctx.stylize('[Function' + name + ']', 'special');\n }\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n }\n if (isDate(value)) {\n return ctx.stylize(Date.prototype.toString.call(value), 'date');\n }\n if (isError(value)) {\n return formatError(value);\n }\n }\n\n var base = '', array = false, braces = ['{', '}'];\n\n // Make Array say that they are Array\n if (isArray(value)) {\n array = true;\n braces = ['[', ']'];\n }\n\n // Make functions say that they are functions\n if (isFunction(value)) {\n var n = value.name ? ': ' + value.name : '';\n base = ' [Function' + n + ']';\n }\n\n // Make RegExps say that they are RegExps\n if (isRegExp(value)) {\n base = ' ' + RegExp.prototype.toString.call(value);\n }\n\n // Make dates with properties first say the date\n if (isDate(value)) {\n base = ' ' + Date.prototype.toUTCString.call(value);\n }\n\n // Make error with message first say the error\n if (isError(value)) {\n base = ' ' + formatError(value);\n }\n\n if (keys.length === 0 && (!array || value.length == 0)) {\n return braces[0] + base + braces[1];\n }\n\n if (recurseTimes < 0) {\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n } else {\n return ctx.stylize('[Object]', 'special');\n }\n }\n\n ctx.seen.push(value);\n\n var output;\n if (array) {\n output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);\n } else {\n output = keys.map(function(key) {\n return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);\n });\n }\n\n ctx.seen.pop();\n\n return reduceToSingleString(output, base, braces);\n}\n\n\nfunction formatPrimitive(ctx, value) {\n if (isUndefined(value))\n return ctx.stylize('undefined', 'undefined');\n if (isString(value)) {\n var simple = '\\'' + JSON.stringify(value).replace(/^\"|\"$/g, '')\n .replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"') + '\\'';\n return ctx.stylize(simple, 'string');\n }\n if (isNumber(value))\n return ctx.stylize('' + value, 'number');\n if (isBoolean(value))\n return ctx.stylize('' + value, 'boolean');\n // For some reason typeof null is \"object\", so special case here.\n if (isNull(value))\n return ctx.stylize('null', 'null');\n}\n\n\nfunction formatError(value) {\n return '[' + Error.prototype.toString.call(value) + ']';\n}\n\n\nfunction formatArray(ctx, value, recurseTimes, visibleKeys, keys) {\n var output = [];\n for (var i = 0, l = value.length; i < l; ++i) {\n if (hasOwnProperty(value, String(i))) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,\n String(i), true));\n } else {\n output.push('');\n }\n }\n keys.forEach(function(key) {\n if (!key.match(/^\\d+$/)) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,\n key, true));\n }\n });\n return output;\n}\n\n\nfunction formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {\n var name, str, desc;\n desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };\n if (desc.get) {\n if (desc.set) {\n str = ctx.stylize('[Getter/Setter]', 'special');\n } else {\n str = ctx.stylize('[Getter]', 'special');\n }\n } else {\n if (desc.set) {\n str = ctx.stylize('[Setter]', 'special');\n }\n }\n if (!hasOwnProperty(visibleKeys, key)) {\n name = '[' + key + ']';\n }\n if (!str) {\n if (ctx.seen.indexOf(desc.value) < 0) {\n if (isNull(recurseTimes)) {\n str = formatValue(ctx, desc.value, null);\n } else {\n str = formatValue(ctx, desc.value, recurseTimes - 1);\n }\n if (str.indexOf('\\n') > -1) {\n if (array) {\n str = str.split('\\n').map(function(line) {\n return ' ' + line;\n }).join('\\n').substr(2);\n } else {\n str = '\\n' + str.split('\\n').map(function(line) {\n return ' ' + line;\n }).join('\\n');\n }\n }\n } else {\n str = ctx.stylize('[Circular]', 'special');\n }\n }\n if (isUndefined(name)) {\n if (array && key.match(/^\\d+$/)) {\n return str;\n }\n name = JSON.stringify('' + key);\n if (name.match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)) {\n name = name.substr(1, name.length - 2);\n name = ctx.stylize(name, 'name');\n } else {\n name = name.replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"')\n .replace(/(^\"|\"$)/g, \"'\");\n name = ctx.stylize(name, 'string');\n }\n }\n\n return name + ': ' + str;\n}\n\n\nfunction reduceToSingleString(output, base, braces) {\n var numLinesEst = 0;\n var length = output.reduce(function(prev, cur) {\n numLinesEst++;\n if (cur.indexOf('\\n') >= 0) numLinesEst++;\n return prev + cur.replace(/\\u001b\\[\\d\\d?m/g, '').length + 1;\n }, 0);\n\n if (length > 60) {\n return braces[0] +\n (base === '' ? '' : base + '\\n ') +\n ' ' +\n output.join(',\\n ') +\n ' ' +\n braces[1];\n }\n\n return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];\n}\n\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\nfunction isArray(ar) {\n return Array.isArray(ar);\n}\nexports.isArray = isArray;\n\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\n\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\n\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\n\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nexports.isString = isString;\n\nfunction isSymbol(arg) {\n return typeof arg === 'symbol';\n}\nexports.isSymbol = isSymbol;\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nexports.isUndefined = isUndefined;\n\nfunction isRegExp(re) {\n return isObject(re) && objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\nexports.isObject = isObject;\n\nfunction isDate(d) {\n return isObject(d) && objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\n\nfunction isError(e) {\n return isObject(e) &&\n (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\n\nfunction isPrimitive(arg) {\n return arg === null ||\n typeof arg === 'boolean' ||\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'symbol' || // ES6 symbol\n typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\n\nexports.isBuffer = _dereq_('./support/isBuffer');\n\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\n\n\nfunction pad(n) {\n return n < 10 ? '0' + n.toString(10) : n.toString(10);\n}\n\n\nvar months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',\n 'Oct', 'Nov', 'Dec'];\n\n// 26 Feb 16:19:34\nfunction timestamp() {\n var d = new Date();\n var time = [pad(d.getHours()),\n pad(d.getMinutes()),\n pad(d.getSeconds())].join(':');\n return [d.getDate(), months[d.getMonth()], time].join(' ');\n}\n\n\n// log is just a thin wrapper to console.log that prepends a timestamp\nexports.log = function() {\n console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments));\n};\n\n\n/**\n * Inherit the prototype methods from one constructor into another.\n *\n * The Function.prototype.inherits from lang.js rewritten as a standalone\n * function (not on Function.prototype). NOTE: If this file is to be loaded\n * during bootstrapping this function needs to be rewritten using some native\n * functions as prototype setup using normal JavaScript does not work as\n * expected during bootstrapping (see mirror.js in r114903).\n *\n * @param {function} ctor Constructor function which needs to inherit the\n * prototype.\n * @param {function} superCtor Constructor function to inherit prototype from.\n */\nexports.inherits = _dereq_('inherits');\n\nexports._extend = function(origin, add) {\n // Don't do anything if add isn't an object\n if (!add || !isObject(add)) return origin;\n\n var keys = Object.keys(add);\n var i = keys.length;\n while (i--) {\n origin[keys[i]] = add[keys[i]];\n }\n return origin;\n};\n\nfunction hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\n}).call(this)}).call(this,_dereq_('_process'),typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{\"./support/isBuffer\":77,\"_process\":277,\"inherits\":76}],79:[function(_dereq_,module,exports){\n'use strict'\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i]\n revLookup[code.charCodeAt(i)] = i\n}\n\n// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction getLens (b64) {\n var len = b64.length\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n var validLen = b64.indexOf('=')\n if (validLen === -1) validLen = len\n\n var placeHoldersLen = validLen === len\n ? 0\n : 4 - (validLen % 4)\n\n return [validLen, placeHoldersLen]\n}\n\n// base64 is 4/3 + up to two characters of the original data\nfunction byteLength (b64) {\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction _byteLength (b64, validLen, placeHoldersLen) {\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction toByteArray (b64) {\n var tmp\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\n\n var curByte = 0\n\n // if there are placeholders, only get up to the last complete 4 chars\n var len = placeHoldersLen > 0\n ? validLen - 4\n : validLen\n\n var i\n for (i = 0; i < len; i += 4) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 18) |\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\n revLookup[b64.charCodeAt(i + 3)]\n arr[curByte++] = (tmp >> 16) & 0xFF\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 2) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 2) |\n (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 1) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 10) |\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\n (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] +\n lookup[num >> 12 & 0x3F] +\n lookup[num >> 6 & 0x3F] +\n lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp =\n ((uint8[i] << 16) & 0xFF0000) +\n ((uint8[i + 1] << 8) & 0xFF00) +\n (uint8[i + 2] & 0xFF)\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(\n uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)\n ))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n parts.push(\n lookup[tmp >> 2] +\n lookup[(tmp << 4) & 0x3F] +\n '=='\n )\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1]\n parts.push(\n lookup[tmp >> 10] +\n lookup[(tmp >> 4) & 0x3F] +\n lookup[(tmp << 2) & 0x3F] +\n '='\n )\n }\n\n return parts.join('')\n}\n\n},{}],80:[function(_dereq_,module,exports){\n\"use strict\"\n\n// (a, y, c, l, h) = (array, y[, cmp, lo, hi])\n\nfunction ge(a, y, c, l, h) {\n var i = h + 1;\n while (l <= h) {\n var m = (l + h) >>> 1, x = a[m];\n var p = (c !== undefined) ? c(x, y) : (x - y);\n if (p >= 0) { i = m; h = m - 1 } else { l = m + 1 }\n }\n return i;\n};\n\nfunction gt(a, y, c, l, h) {\n var i = h + 1;\n while (l <= h) {\n var m = (l + h) >>> 1, x = a[m];\n var p = (c !== undefined) ? c(x, y) : (x - y);\n if (p > 0) { i = m; h = m - 1 } else { l = m + 1 }\n }\n return i;\n};\n\nfunction lt(a, y, c, l, h) {\n var i = l - 1;\n while (l <= h) {\n var m = (l + h) >>> 1, x = a[m];\n var p = (c !== undefined) ? c(x, y) : (x - y);\n if (p < 0) { i = m; l = m + 1 } else { h = m - 1 }\n }\n return i;\n};\n\nfunction le(a, y, c, l, h) {\n var i = l - 1;\n while (l <= h) {\n var m = (l + h) >>> 1, x = a[m];\n var p = (c !== undefined) ? c(x, y) : (x - y);\n if (p <= 0) { i = m; l = m + 1 } else { h = m - 1 }\n }\n return i;\n};\n\nfunction eq(a, y, c, l, h) {\n while (l <= h) {\n var m = (l + h) >>> 1, x = a[m];\n var p = (c !== undefined) ? c(x, y) : (x - y);\n if (p === 0) { return m }\n if (p <= 0) { l = m + 1 } else { h = m - 1 }\n }\n return -1;\n};\n\nfunction norm(a, y, c, l, h, f) {\n if (typeof c === 'function') {\n return f(a, y, c, (l === undefined) ? 0 : l | 0, (h === undefined) ? a.length - 1 : h | 0);\n }\n return f(a, y, undefined, (c === undefined) ? 0 : c | 0, (l === undefined) ? a.length - 1 : l | 0);\n}\n\nmodule.exports = {\n ge: function(a, y, c, l, h) { return norm(a, y, c, l, h, ge)},\n gt: function(a, y, c, l, h) { return norm(a, y, c, l, h, gt)},\n lt: function(a, y, c, l, h) { return norm(a, y, c, l, h, lt)},\n le: function(a, y, c, l, h) { return norm(a, y, c, l, h, le)},\n eq: function(a, y, c, l, h) { return norm(a, y, c, l, h, eq)}\n}\n\n},{}],81:[function(_dereq_,module,exports){\n/**\n * Bit twiddling hacks for JavaScript.\n *\n * Author: Mikola Lysenko\n *\n * Ported from Stanford bit twiddling hack library:\n * http://graphics.stanford.edu/~seander/bithacks.html\n */\n\n\"use strict\"; \"use restrict\";\n\n//Number of bits in an integer\nvar INT_BITS = 32;\n\n//Constants\nexports.INT_BITS = INT_BITS;\nexports.INT_MAX = 0x7fffffff;\nexports.INT_MIN = -1<<(INT_BITS-1);\n\n//Returns -1, 0, +1 depending on sign of x\nexports.sign = function(v) {\n return (v > 0) - (v < 0);\n}\n\n//Computes absolute value of integer\nexports.abs = function(v) {\n var mask = v >> (INT_BITS-1);\n return (v ^ mask) - mask;\n}\n\n//Computes minimum of integers x and y\nexports.min = function(x, y) {\n return y ^ ((x ^ y) & -(x < y));\n}\n\n//Computes maximum of integers x and y\nexports.max = function(x, y) {\n return x ^ ((x ^ y) & -(x < y));\n}\n\n//Checks if a number is a power of two\nexports.isPow2 = function(v) {\n return !(v & (v-1)) && (!!v);\n}\n\n//Computes log base 2 of v\nexports.log2 = function(v) {\n var r, shift;\n r = (v > 0xFFFF) << 4; v >>>= r;\n shift = (v > 0xFF ) << 3; v >>>= shift; r |= shift;\n shift = (v > 0xF ) << 2; v >>>= shift; r |= shift;\n shift = (v > 0x3 ) << 1; v >>>= shift; r |= shift;\n return r | (v >> 1);\n}\n\n//Computes log base 10 of v\nexports.log10 = function(v) {\n return (v >= 1000000000) ? 9 : (v >= 100000000) ? 8 : (v >= 10000000) ? 7 :\n (v >= 1000000) ? 6 : (v >= 100000) ? 5 : (v >= 10000) ? 4 :\n (v >= 1000) ? 3 : (v >= 100) ? 2 : (v >= 10) ? 1 : 0;\n}\n\n//Counts number of bits\nexports.popCount = function(v) {\n v = v - ((v >>> 1) & 0x55555555);\n v = (v & 0x33333333) + ((v >>> 2) & 0x33333333);\n return ((v + (v >>> 4) & 0xF0F0F0F) * 0x1010101) >>> 24;\n}\n\n//Counts number of trailing zeros\nfunction countTrailingZeros(v) {\n var c = 32;\n v &= -v;\n if (v) c--;\n if (v & 0x0000FFFF) c -= 16;\n if (v & 0x00FF00FF) c -= 8;\n if (v & 0x0F0F0F0F) c -= 4;\n if (v & 0x33333333) c -= 2;\n if (v & 0x55555555) c -= 1;\n return c;\n}\nexports.countTrailingZeros = countTrailingZeros;\n\n//Rounds to next power of 2\nexports.nextPow2 = function(v) {\n v += v === 0;\n --v;\n v |= v >>> 1;\n v |= v >>> 2;\n v |= v >>> 4;\n v |= v >>> 8;\n v |= v >>> 16;\n return v + 1;\n}\n\n//Rounds down to previous power of 2\nexports.prevPow2 = function(v) {\n v |= v >>> 1;\n v |= v >>> 2;\n v |= v >>> 4;\n v |= v >>> 8;\n v |= v >>> 16;\n return v - (v>>>1);\n}\n\n//Computes parity of word\nexports.parity = function(v) {\n v ^= v >>> 16;\n v ^= v >>> 8;\n v ^= v >>> 4;\n v &= 0xf;\n return (0x6996 >>> v) & 1;\n}\n\nvar REVERSE_TABLE = new Array(256);\n\n(function(tab) {\n for(var i=0; i<256; ++i) {\n var v = i, r = i, s = 7;\n for (v >>>= 1; v; v >>>= 1) {\n r <<= 1;\n r |= v & 1;\n --s;\n }\n tab[i] = (r << s) & 0xff;\n }\n})(REVERSE_TABLE);\n\n//Reverse bits in a 32 bit word\nexports.reverse = function(v) {\n return (REVERSE_TABLE[ v & 0xff] << 24) |\n (REVERSE_TABLE[(v >>> 8) & 0xff] << 16) |\n (REVERSE_TABLE[(v >>> 16) & 0xff] << 8) |\n REVERSE_TABLE[(v >>> 24) & 0xff];\n}\n\n//Interleave bits of 2 coordinates with 16 bits. Useful for fast quadtree codes\nexports.interleave2 = function(x, y) {\n x &= 0xFFFF;\n x = (x | (x << 8)) & 0x00FF00FF;\n x = (x | (x << 4)) & 0x0F0F0F0F;\n x = (x | (x << 2)) & 0x33333333;\n x = (x | (x << 1)) & 0x55555555;\n\n y &= 0xFFFF;\n y = (y | (y << 8)) & 0x00FF00FF;\n y = (y | (y << 4)) & 0x0F0F0F0F;\n y = (y | (y << 2)) & 0x33333333;\n y = (y | (y << 1)) & 0x55555555;\n\n return x | (y << 1);\n}\n\n//Extracts the nth interleaved component\nexports.deinterleave2 = function(v, n) {\n v = (v >>> n) & 0x55555555;\n v = (v | (v >>> 1)) & 0x33333333;\n v = (v | (v >>> 2)) & 0x0F0F0F0F;\n v = (v | (v >>> 4)) & 0x00FF00FF;\n v = (v | (v >>> 16)) & 0x000FFFF;\n return (v << 16) >> 16;\n}\n\n\n//Interleave bits of 3 coordinates, each with 10 bits. Useful for fast octree codes\nexports.interleave3 = function(x, y, z) {\n x &= 0x3FF;\n x = (x | (x<<16)) & 4278190335;\n x = (x | (x<<8)) & 251719695;\n x = (x | (x<<4)) & 3272356035;\n x = (x | (x<<2)) & 1227133513;\n\n y &= 0x3FF;\n y = (y | (y<<16)) & 4278190335;\n y = (y | (y<<8)) & 251719695;\n y = (y | (y<<4)) & 3272356035;\n y = (y | (y<<2)) & 1227133513;\n x |= (y << 1);\n \n z &= 0x3FF;\n z = (z | (z<<16)) & 4278190335;\n z = (z | (z<<8)) & 251719695;\n z = (z | (z<<4)) & 3272356035;\n z = (z | (z<<2)) & 1227133513;\n \n return x | (z << 2);\n}\n\n//Extracts nth interleaved component of a 3-tuple\nexports.deinterleave3 = function(v, n) {\n v = (v >>> n) & 1227133513;\n v = (v | (v>>>2)) & 3272356035;\n v = (v | (v>>>4)) & 251719695;\n v = (v | (v>>>8)) & 4278190335;\n v = (v | (v>>>16)) & 0x3FF;\n return (v<<22)>>22;\n}\n\n//Computes next combination in colexicographic order (this is mistakenly called nextPermutation on the bit twiddling hacks page)\nexports.nextCombination = function(v) {\n var t = v | (v - 1);\n return (t + 1) | (((~t & -~t) - 1) >>> (countTrailingZeros(v) + 1));\n}\n\n\n},{}],82:[function(_dereq_,module,exports){\n'use strict'\r\n\r\nvar clamp = _dereq_('clamp')\r\n\r\nmodule.exports = calcSDF\r\n\r\nvar INF = 1e20;\r\n\r\nfunction calcSDF(src, options) {\r\n if (!options) options = {}\r\n\r\n var cutoff = options.cutoff == null ? 0.25 : options.cutoff\r\n var radius = options.radius == null ? 8 : options.radius\r\n var channel = options.channel || 0\r\n var w, h, size, data, intData, stride, ctx, canvas, imgData, i, l\r\n\r\n // handle image container\r\n if (ArrayBuffer.isView(src) || Array.isArray(src)) {\r\n if (!options.width || !options.height) throw Error('For raw data width and height should be provided by options')\r\n w = options.width, h = options.height\r\n data = src\r\n\r\n if (!options.stride) stride = Math.floor(src.length / w / h)\r\n else stride = options.stride\r\n }\r\n else {\r\n if (window.HTMLCanvasElement && src instanceof window.HTMLCanvasElement) {\r\n canvas = src\r\n ctx = canvas.getContext('2d')\r\n w = canvas.width, h = canvas.height\r\n imgData = ctx.getImageData(0, 0, w, h)\r\n data = imgData.data\r\n stride = 4\r\n }\r\n else if (window.CanvasRenderingContext2D && src instanceof window.CanvasRenderingContext2D) {\r\n canvas = src.canvas\r\n ctx = src\r\n w = canvas.width, h = canvas.height\r\n imgData = ctx.getImageData(0, 0, w, h)\r\n data = imgData.data\r\n stride = 4\r\n }\r\n else if (window.ImageData && src instanceof window.ImageData) {\r\n imgData = src\r\n w = src.width, h = src.height\r\n data = imgData.data\r\n stride = 4\r\n }\r\n }\r\n\r\n size = Math.max(w, h)\r\n\r\n //convert int data to floats\r\n if ((window.Uint8ClampedArray && data instanceof window.Uint8ClampedArray) || (window.Uint8Array && data instanceof window.Uint8Array)) {\r\n intData = data\r\n data = Array(w*h)\r\n\r\n for (i = 0, l = intData.length; i < l; i++) {\r\n data[i] = intData[i*stride + channel] / 255\r\n }\r\n }\r\n else {\r\n if (stride !== 1) throw Error('Raw data can have only 1 value per pixel')\r\n }\r\n\r\n // temporary arrays for the distance transform\r\n var gridOuter = Array(w * h)\r\n var gridInner = Array(w * h)\r\n var f = Array(size)\r\n var d = Array(size)\r\n var z = Array(size + 1)\r\n var v = Array(size)\r\n\r\n for (i = 0, l = w * h; i < l; i++) {\r\n var a = data[i]\r\n gridOuter[i] = a === 1 ? 0 : a === 0 ? INF : Math.pow(Math.max(0, 0.5 - a), 2)\r\n gridInner[i] = a === 1 ? INF : a === 0 ? 0 : Math.pow(Math.max(0, a - 0.5), 2)\r\n }\r\n\r\n edt(gridOuter, w, h, f, d, v, z)\r\n edt(gridInner, w, h, f, d, v, z)\r\n\r\n var dist = window.Float32Array ? new Float32Array(w * h) : new Array(w * h)\r\n\r\n for (i = 0, l = w*h; i < l; i++) {\r\n dist[i] = clamp(1 - ( (gridOuter[i] - gridInner[i]) / radius + cutoff), 0, 1)\r\n }\r\n\r\n return dist\r\n}\r\n\r\n// 2D Euclidean distance transform by Felzenszwalb & Huttenlocher https://cs.brown.edu/~pff/dt/\r\nfunction edt(data, width, height, f, d, v, z) {\r\n for (var x = 0; x < width; x++) {\r\n for (var y = 0; y < height; y++) {\r\n f[y] = data[y * width + x]\r\n }\r\n edt1d(f, d, v, z, height)\r\n for (y = 0; y < height; y++) {\r\n data[y * width + x] = d[y]\r\n }\r\n }\r\n for (y = 0; y < height; y++) {\r\n for (x = 0; x < width; x++) {\r\n f[x] = data[y * width + x]\r\n }\r\n edt1d(f, d, v, z, width)\r\n for (x = 0; x < width; x++) {\r\n data[y * width + x] = Math.sqrt(d[x])\r\n }\r\n }\r\n}\r\n\r\n// 1D squared distance transform\r\nfunction edt1d(f, d, v, z, n) {\r\n v[0] = 0;\r\n z[0] = -INF\r\n z[1] = +INF\r\n\r\n for (var q = 1, k = 0; q < n; q++) {\r\n var s = ((f[q] + q * q) - (f[v[k]] + v[k] * v[k])) / (2 * q - 2 * v[k])\r\n while (s <= z[k]) {\r\n k--\r\n s = ((f[q] + q * q) - (f[v[k]] + v[k] * v[k])) / (2 * q - 2 * v[k])\r\n }\r\n k++\r\n v[k] = q\r\n z[k] = s\r\n z[k + 1] = +INF\r\n }\r\n\r\n for (q = 0, k = 0; q < n; q++) {\r\n while (z[k + 1] < q) k++\r\n d[q] = (q - v[k]) * (q - v[k]) + f[v[k]]\r\n }\r\n}\r\n\n},{\"clamp\":86}],83:[function(_dereq_,module,exports){\n\n},{}],84:[function(_dereq_,module,exports){\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nvar R = typeof Reflect === 'object' ? Reflect : null\nvar ReflectApply = R && typeof R.apply === 'function'\n ? R.apply\n : function ReflectApply(target, receiver, args) {\n return Function.prototype.apply.call(target, receiver, args);\n }\n\nvar ReflectOwnKeys\nif (R && typeof R.ownKeys === 'function') {\n ReflectOwnKeys = R.ownKeys\n} else if (Object.getOwnPropertySymbols) {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target)\n .concat(Object.getOwnPropertySymbols(target));\n };\n} else {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target);\n };\n}\n\nfunction ProcessEmitWarning(warning) {\n if (console && console.warn) console.warn(warning);\n}\n\nvar NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {\n return value !== value;\n}\n\nfunction EventEmitter() {\n EventEmitter.init.call(this);\n}\nmodule.exports = EventEmitter;\nmodule.exports.once = once;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._eventsCount = 0;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nvar defaultMaxListeners = 10;\n\nfunction checkListener(listener) {\n if (typeof listener !== 'function') {\n throw new TypeError('The \"listener\" argument must be of type Function. Received type ' + typeof listener);\n }\n}\n\nObject.defineProperty(EventEmitter, 'defaultMaxListeners', {\n enumerable: true,\n get: function() {\n return defaultMaxListeners;\n },\n set: function(arg) {\n if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {\n throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received ' + arg + '.');\n }\n defaultMaxListeners = arg;\n }\n});\n\nEventEmitter.init = function() {\n\n if (this._events === undefined ||\n this._events === Object.getPrototypeOf(this)._events) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n }\n\n this._maxListeners = this._maxListeners || undefined;\n};\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {\n if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {\n throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received ' + n + '.');\n }\n this._maxListeners = n;\n return this;\n};\n\nfunction _getMaxListeners(that) {\n if (that._maxListeners === undefined)\n return EventEmitter.defaultMaxListeners;\n return that._maxListeners;\n}\n\nEventEmitter.prototype.getMaxListeners = function getMaxListeners() {\n return _getMaxListeners(this);\n};\n\nEventEmitter.prototype.emit = function emit(type) {\n var args = [];\n for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);\n var doError = (type === 'error');\n\n var events = this._events;\n if (events !== undefined)\n doError = (doError && events.error === undefined);\n else if (!doError)\n return false;\n\n // If there is no 'error' event listener then throw.\n if (doError) {\n var er;\n if (args.length > 0)\n er = args[0];\n if (er instanceof Error) {\n // Note: The comments on the `throw` lines are intentional, they show\n // up in Node's output if this results in an unhandled exception.\n throw er; // Unhandled 'error' event\n }\n // At least give some kind of context to the user\n var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));\n err.context = er;\n throw err; // Unhandled 'error' event\n }\n\n var handler = events[type];\n\n if (handler === undefined)\n return false;\n\n if (typeof handler === 'function') {\n ReflectApply(handler, this, args);\n } else {\n var len = handler.length;\n var listeners = arrayClone(handler, len);\n for (var i = 0; i < len; ++i)\n ReflectApply(listeners[i], this, args);\n }\n\n return true;\n};\n\nfunction _addListener(target, type, listener, prepend) {\n var m;\n var events;\n var existing;\n\n checkListener(listener);\n\n events = target._events;\n if (events === undefined) {\n events = target._events = Object.create(null);\n target._eventsCount = 0;\n } else {\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (events.newListener !== undefined) {\n target.emit('newListener', type,\n listener.listener ? listener.listener : listener);\n\n // Re-assign `events` because a newListener handler could have caused the\n // this._events to be assigned to a new object\n events = target._events;\n }\n existing = events[type];\n }\n\n if (existing === undefined) {\n // Optimize the case of one listener. Don't need the extra array object.\n existing = events[type] = listener;\n ++target._eventsCount;\n } else {\n if (typeof existing === 'function') {\n // Adding the second element, need to change to array.\n existing = events[type] =\n prepend ? [listener, existing] : [existing, listener];\n // If we've already got an array, just append.\n } else if (prepend) {\n existing.unshift(listener);\n } else {\n existing.push(listener);\n }\n\n // Check for listener leak\n m = _getMaxListeners(target);\n if (m > 0 && existing.length > m && !existing.warned) {\n existing.warned = true;\n // No error code for this since it is a Warning\n // eslint-disable-next-line no-restricted-syntax\n var w = new Error('Possible EventEmitter memory leak detected. ' +\n existing.length + ' ' + String(type) + ' listeners ' +\n 'added. Use emitter.setMaxListeners() to ' +\n 'increase limit');\n w.name = 'MaxListenersExceededWarning';\n w.emitter = target;\n w.type = type;\n w.count = existing.length;\n ProcessEmitWarning(w);\n }\n }\n\n return target;\n}\n\nEventEmitter.prototype.addListener = function addListener(type, listener) {\n return _addListener(this, type, listener, false);\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.prependListener =\n function prependListener(type, listener) {\n return _addListener(this, type, listener, true);\n };\n\nfunction onceWrapper() {\n if (!this.fired) {\n this.target.removeListener(this.type, this.wrapFn);\n this.fired = true;\n if (arguments.length === 0)\n return this.listener.call(this.target);\n return this.listener.apply(this.target, arguments);\n }\n}\n\nfunction _onceWrap(target, type, listener) {\n var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };\n var wrapped = onceWrapper.bind(state);\n wrapped.listener = listener;\n state.wrapFn = wrapped;\n return wrapped;\n}\n\nEventEmitter.prototype.once = function once(type, listener) {\n checkListener(listener);\n this.on(type, _onceWrap(this, type, listener));\n return this;\n};\n\nEventEmitter.prototype.prependOnceListener =\n function prependOnceListener(type, listener) {\n checkListener(listener);\n this.prependListener(type, _onceWrap(this, type, listener));\n return this;\n };\n\n// Emits a 'removeListener' event if and only if the listener was removed.\nEventEmitter.prototype.removeListener =\n function removeListener(type, listener) {\n var list, events, position, i, originalListener;\n\n checkListener(listener);\n\n events = this._events;\n if (events === undefined)\n return this;\n\n list = events[type];\n if (list === undefined)\n return this;\n\n if (list === listener || list.listener === listener) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else {\n delete events[type];\n if (events.removeListener)\n this.emit('removeListener', type, list.listener || listener);\n }\n } else if (typeof list !== 'function') {\n position = -1;\n\n for (i = list.length - 1; i >= 0; i--) {\n if (list[i] === listener || list[i].listener === listener) {\n originalListener = list[i].listener;\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (position === 0)\n list.shift();\n else {\n spliceOne(list, position);\n }\n\n if (list.length === 1)\n events[type] = list[0];\n\n if (events.removeListener !== undefined)\n this.emit('removeListener', type, originalListener || listener);\n }\n\n return this;\n };\n\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\n\nEventEmitter.prototype.removeAllListeners =\n function removeAllListeners(type) {\n var listeners, events, i;\n\n events = this._events;\n if (events === undefined)\n return this;\n\n // not listening for removeListener, no need to emit\n if (events.removeListener === undefined) {\n if (arguments.length === 0) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n } else if (events[type] !== undefined) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else\n delete events[type];\n }\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n var keys = Object.keys(events);\n var key;\n for (i = 0; i < keys.length; ++i) {\n key = keys[i];\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = Object.create(null);\n this._eventsCount = 0;\n return this;\n }\n\n listeners = events[type];\n\n if (typeof listeners === 'function') {\n this.removeListener(type, listeners);\n } else if (listeners !== undefined) {\n // LIFO order\n for (i = listeners.length - 1; i >= 0; i--) {\n this.removeListener(type, listeners[i]);\n }\n }\n\n return this;\n };\n\nfunction _listeners(target, type, unwrap) {\n var events = target._events;\n\n if (events === undefined)\n return [];\n\n var evlistener = events[type];\n if (evlistener === undefined)\n return [];\n\n if (typeof evlistener === 'function')\n return unwrap ? [evlistener.listener || evlistener] : [evlistener];\n\n return unwrap ?\n unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);\n}\n\nEventEmitter.prototype.listeners = function listeners(type) {\n return _listeners(this, type, true);\n};\n\nEventEmitter.prototype.rawListeners = function rawListeners(type) {\n return _listeners(this, type, false);\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n if (typeof emitter.listenerCount === 'function') {\n return emitter.listenerCount(type);\n } else {\n return listenerCount.call(emitter, type);\n }\n};\n\nEventEmitter.prototype.listenerCount = listenerCount;\nfunction listenerCount(type) {\n var events = this._events;\n\n if (events !== undefined) {\n var evlistener = events[type];\n\n if (typeof evlistener === 'function') {\n return 1;\n } else if (evlistener !== undefined) {\n return evlistener.length;\n }\n }\n\n return 0;\n}\n\nEventEmitter.prototype.eventNames = function eventNames() {\n return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];\n};\n\nfunction arrayClone(arr, n) {\n var copy = new Array(n);\n for (var i = 0; i < n; ++i)\n copy[i] = arr[i];\n return copy;\n}\n\nfunction spliceOne(list, index) {\n for (; index + 1 < list.length; index++)\n list[index] = list[index + 1];\n list.pop();\n}\n\nfunction unwrapListeners(arr) {\n var ret = new Array(arr.length);\n for (var i = 0; i < ret.length; ++i) {\n ret[i] = arr[i].listener || arr[i];\n }\n return ret;\n}\n\nfunction once(emitter, name) {\n return new Promise(function (resolve, reject) {\n function eventListener() {\n if (errorListener !== undefined) {\n emitter.removeListener('error', errorListener);\n }\n resolve([].slice.call(arguments));\n };\n var errorListener;\n\n // Adding an error listener is not optional because\n // if an error is thrown on an event emitter we cannot\n // guarantee that the actual event we are waiting will\n // be fired. The result could be a silent way to create\n // memory or file descriptor leaks, which is something\n // we should avoid.\n if (name !== 'error') {\n errorListener = function errorListener(err) {\n emitter.removeListener(name, eventListener);\n reject(err);\n };\n\n emitter.once('error', errorListener);\n }\n\n emitter.once(name, eventListener);\n });\n}\n\n},{}],85:[function(_dereq_,module,exports){\n(function (Buffer){(function (){\n/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n/* eslint-disable no-proto */\n\n'use strict'\n\nvar base64 = _dereq_('base64-js')\nvar ieee754 = _dereq_('ieee754')\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\n\nvar K_MAX_LENGTH = 0x7fffffff\nexports.kMaxLength = K_MAX_LENGTH\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Print warning and recommend using `buffer` v4.x which has an Object\n * implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * We report that the browser does not support typed arrays if the are not subclassable\n * using __proto__. Firefox 4-29 lacks support for adding new properties to `Uint8Array`\n * (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support\n * for __proto__ and has a buggy typed array implementation.\n */\nBuffer.TYPED_ARRAY_SUPPORT = typedArraySupport()\n\nif (!Buffer.TYPED_ARRAY_SUPPORT && typeof console !== 'undefined' &&\n typeof console.error === 'function') {\n console.error(\n 'This browser lacks typed array (Uint8Array) support which is required by ' +\n '`buffer` v5.x. Use `buffer` v4.x if you require old browser support.'\n )\n}\n\nfunction typedArraySupport () {\n // Can typed array instances can be augmented?\n try {\n var arr = new Uint8Array(1)\n arr.__proto__ = { __proto__: Uint8Array.prototype, foo: function () { return 42 } }\n return arr.foo() === 42\n } catch (e) {\n return false\n }\n}\n\nObject.defineProperty(Buffer.prototype, 'parent', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.buffer\n }\n})\n\nObject.defineProperty(Buffer.prototype, 'offset', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.byteOffset\n }\n})\n\nfunction createBuffer (length) {\n if (length > K_MAX_LENGTH) {\n throw new RangeError('The value \"' + length + '\" is invalid for option \"size\"')\n }\n // Return an augmented `Uint8Array` instance\n var buf = new Uint8Array(length)\n buf.__proto__ = Buffer.prototype\n return buf\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nfunction Buffer (arg, encodingOrOffset, length) {\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new TypeError(\n 'The \"string\" argument must be of type string. Received type number'\n )\n }\n return allocUnsafe(arg)\n }\n return from(arg, encodingOrOffset, length)\n}\n\n// Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97\nif (typeof Symbol !== 'undefined' && Symbol.species != null &&\n Buffer[Symbol.species] === Buffer) {\n Object.defineProperty(Buffer, Symbol.species, {\n value: null,\n configurable: true,\n enumerable: false,\n writable: false\n })\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\nfunction from (value, encodingOrOffset, length) {\n if (typeof value === 'string') {\n return fromString(value, encodingOrOffset)\n }\n\n if (ArrayBuffer.isView(value)) {\n return fromArrayLike(value)\n }\n\n if (value == null) {\n throw TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n }\n\n if (isInstance(value, ArrayBuffer) ||\n (value && isInstance(value.buffer, ArrayBuffer))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof value === 'number') {\n throw new TypeError(\n 'The \"value\" argument must not be of type number. Received type number'\n )\n }\n\n var valueOf = value.valueOf && value.valueOf()\n if (valueOf != null && valueOf !== value) {\n return Buffer.from(valueOf, encodingOrOffset, length)\n }\n\n var b = fromObject(value)\n if (b) return b\n\n if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null &&\n typeof value[Symbol.toPrimitive] === 'function') {\n return Buffer.from(\n value[Symbol.toPrimitive]('string'), encodingOrOffset, length\n )\n }\n\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n return from(value, encodingOrOffset, length)\n}\n\n// Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug:\n// https://github.com/feross/buffer/pull/148\nBuffer.prototype.__proto__ = Uint8Array.prototype\nBuffer.__proto__ = Uint8Array\n\nfunction assertSize (size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be of type number')\n } else if (size < 0) {\n throw new RangeError('The value \"' + size + '\" is invalid for option \"size\"')\n }\n}\n\nfunction alloc (size, fill, encoding) {\n assertSize(size)\n if (size <= 0) {\n return createBuffer(size)\n }\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpretted as a start offset.\n return typeof encoding === 'string'\n ? createBuffer(size).fill(fill, encoding)\n : createBuffer(size).fill(fill)\n }\n return createBuffer(size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n return alloc(size, fill, encoding)\n}\n\nfunction allocUnsafe (size) {\n assertSize(size)\n return createBuffer(size < 0 ? 0 : checked(size) | 0)\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n return allocUnsafe(size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(size)\n}\n\nfunction fromString (string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8'\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n\n var length = byteLength(string, encoding) | 0\n var buf = createBuffer(length)\n\n var actual = buf.write(string, encoding)\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n buf = buf.slice(0, actual)\n }\n\n return buf\n}\n\nfunction fromArrayLike (array) {\n var length = array.length < 0 ? 0 : checked(array.length) | 0\n var buf = createBuffer(length)\n for (var i = 0; i < length; i += 1) {\n buf[i] = array[i] & 255\n }\n return buf\n}\n\nfunction fromArrayBuffer (array, byteOffset, length) {\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\"offset\" is outside of buffer bounds')\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\"length\" is outside of buffer bounds')\n }\n\n var buf\n if (byteOffset === undefined && length === undefined) {\n buf = new Uint8Array(array)\n } else if (length === undefined) {\n buf = new Uint8Array(array, byteOffset)\n } else {\n buf = new Uint8Array(array, byteOffset, length)\n }\n\n // Return an augmented `Uint8Array` instance\n buf.__proto__ = Buffer.prototype\n return buf\n}\n\nfunction fromObject (obj) {\n if (Buffer.isBuffer(obj)) {\n var len = checked(obj.length) | 0\n var buf = createBuffer(len)\n\n if (buf.length === 0) {\n return buf\n }\n\n obj.copy(buf, 0, 0, len)\n return buf\n }\n\n if (obj.length !== undefined) {\n if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) {\n return createBuffer(0)\n }\n return fromArrayLike(obj)\n }\n\n if (obj.type === 'Buffer' && Array.isArray(obj.data)) {\n return fromArrayLike(obj.data)\n }\n}\n\nfunction checked (length) {\n // Note: cannot use `length < K_MAX_LENGTH` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= K_MAX_LENGTH) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + K_MAX_LENGTH.toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (length) {\n if (+length != length) { // eslint-disable-line eqeqeq\n length = 0\n }\n return Buffer.alloc(+length)\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return b != null && b._isBuffer === true &&\n b !== Buffer.prototype // so Buffer.isBuffer(Buffer.prototype) will be false\n}\n\nBuffer.compare = function compare (a, b) {\n if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength)\n if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength)\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError(\n 'The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array'\n )\n }\n\n if (a === b) return 0\n\n var x = a.length\n var y = b.length\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i]\n y = b[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!Array.isArray(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0)\n }\n\n var i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; ++i) {\n length += list[i].length\n }\n }\n\n var buffer = Buffer.allocUnsafe(length)\n var pos = 0\n for (i = 0; i < list.length; ++i) {\n var buf = list[i]\n if (isInstance(buf, Uint8Array)) {\n buf = Buffer.from(buf)\n }\n if (!Buffer.isBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n buf.copy(buffer, pos)\n pos += buf.length\n }\n return buffer\n}\n\nfunction byteLength (string, encoding) {\n if (Buffer.isBuffer(string)) {\n return string.length\n }\n if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {\n return string.byteLength\n }\n if (typeof string !== 'string') {\n throw new TypeError(\n 'The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. ' +\n 'Received type ' + typeof string\n )\n }\n\n var len = string.length\n var mustMatch = (arguments.length > 2 && arguments[2] === true)\n if (!mustMatch && len === 0) return 0\n\n // Use a for loop to avoid recursion\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len\n case 'utf8':\n case 'utf-8':\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) {\n return mustMatch ? -1 : utf8ToBytes(string).length // assume utf8\n }\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n var loweredCase = false\n\n // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n if (start === undefined || start < 0) {\n start = 0\n }\n // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n if (start > this.length) {\n return ''\n }\n\n if (end === undefined || end > this.length) {\n end = this.length\n }\n\n if (end <= 0) {\n return ''\n }\n\n // Force coersion to uint32. This will also coerce falsey/NaN values to 0.\n end >>>= 0\n start >>>= 0\n\n if (end <= start) {\n return ''\n }\n\n if (!encoding) encoding = 'utf8'\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\n// This property is used by `Buffer.isBuffer` (and the `is-buffer` npm package)\n// to detect a Buffer instance. It's not possible to use `instanceof Buffer`\n// reliably in a browserify context because there could be multiple different\n// copies of the 'buffer' package in use. This method works even for Buffer\n// instances that were created from another copy of the `buffer` package.\n// See: https://github.com/feross/buffer/issues/154\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n var i = b[n]\n b[n] = b[m]\n b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n var len = this.length\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits')\n }\n for (var i = 0; i < len; i += 2) {\n swap(this, i, i + 1)\n }\n return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n var len = this.length\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits')\n }\n for (var i = 0; i < len; i += 4) {\n swap(this, i, i + 3)\n swap(this, i + 1, i + 2)\n }\n return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n var len = this.length\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits')\n }\n for (var i = 0; i < len; i += 8) {\n swap(this, i, i + 7)\n swap(this, i + 1, i + 6)\n swap(this, i + 2, i + 5)\n swap(this, i + 3, i + 4)\n }\n return this\n}\n\nBuffer.prototype.toString = function toString () {\n var length = this.length\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.toLocaleString = Buffer.prototype.toString\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n var str = ''\n var max = exports.INSPECT_MAX_BYTES\n str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim()\n if (this.length > max) str += ' ... '\n return ''\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n if (isInstance(target, Uint8Array)) {\n target = Buffer.from(target, target.offset, target.byteLength)\n }\n if (!Buffer.isBuffer(target)) {\n throw new TypeError(\n 'The \"target\" argument must be one of type Buffer or Uint8Array. ' +\n 'Received type ' + (typeof target)\n )\n }\n\n if (start === undefined) {\n start = 0\n }\n if (end === undefined) {\n end = target ? target.length : 0\n }\n if (thisStart === undefined) {\n thisStart = 0\n }\n if (thisEnd === undefined) {\n thisEnd = this.length\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index')\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0\n }\n if (thisStart >= thisEnd) {\n return -1\n }\n if (start >= end) {\n return 1\n }\n\n start >>>= 0\n end >>>= 0\n thisStart >>>= 0\n thisEnd >>>= 0\n\n if (this === target) return 0\n\n var x = thisEnd - thisStart\n var y = end - start\n var len = Math.min(x, y)\n\n var thisCopy = this.slice(thisStart, thisEnd)\n var targetCopy = target.slice(start, end)\n\n for (var i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i]\n y = targetCopy[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = byteOffset\n byteOffset = 0\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000\n }\n byteOffset = +byteOffset // Coerce to Number.\n if (numberIsNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : (buffer.length - 1)\n }\n\n // Normalize byteOffset: negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n if (byteOffset >= buffer.length) {\n if (dir) return -1\n else byteOffset = buffer.length - 1\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0\n else return -1\n }\n\n // Normalize val\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding)\n }\n\n // Finally, search either indexOf (if dir is true) or lastIndexOf\n if (Buffer.isBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1\n }\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n } else if (typeof val === 'number') {\n val = val & 0xFF // Search for a byte value [0-255]\n if (typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n }\n }\n return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n var indexSize = 1\n var arrLength = arr.length\n var valLength = val.length\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase()\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1\n }\n indexSize = 2\n arrLength /= 2\n valLength /= 2\n byteOffset /= 2\n }\n }\n\n function read (buf, i) {\n if (indexSize === 1) {\n return buf[i]\n } else {\n return buf.readUInt16BE(i * indexSize)\n }\n }\n\n var i\n if (dir) {\n var foundIndex = -1\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n } else {\n if (foundIndex !== -1) i -= i - foundIndex\n foundIndex = -1\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n for (i = byteOffset; i >= 0; i--) {\n var found = true\n for (var j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false\n break\n }\n }\n if (found) return i\n }\n }\n\n return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n var remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n var strLen = string.length\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n for (var i = 0; i < length; ++i) {\n var parsed = parseInt(string.substr(i * 2, 2), 16)\n if (numberIsNaN(parsed)) return i\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction latin1Write (buf, string, offset, length) {\n return asciiWrite(buf, string, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset >>> 0\n if (isFinite(length)) {\n length = length >>> 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n } else {\n throw new Error(\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n )\n }\n\n var remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n return asciiWrite(this, string, offset, length)\n\n case 'latin1':\n case 'binary':\n return latin1Write(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n var res = []\n\n var i = start\n while (i < end) {\n var firstByte = buf[i]\n var codePoint = null\n var bytesPerSequence = (firstByte > 0xEF) ? 4\n : (firstByte > 0xDF) ? 3\n : (firstByte > 0xBF) ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n var secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nvar MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n var len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n var res = ''\n var i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n var len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n var out = ''\n for (var i = start; i < end; ++i) {\n out += toHex(buf[i])\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n var bytes = buf.slice(start, end)\n var res = ''\n for (var i = 0; i < bytes.length; i += 2) {\n res += String.fromCharCode(bytes[i] + (bytes[i + 1] * 256))\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n var len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n var newBuf = this.subarray(start, end)\n // Return an augmented `Uint8Array` instance\n newBuf.__proto__ = Buffer.prototype\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n var val = this[offset + --byteLength]\n var mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var i = byteLength\n var mul = 1\n var val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n var mul = 1\n var i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n var i = byteLength - 1\n var mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n var limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = 0\n var mul = 1\n var sub = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n var limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = byteLength - 1\n var mul = 1\n var sub = 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!Buffer.isBuffer(target)) throw new TypeError('argument should be a Buffer')\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('Index out of range')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n var len = end - start\n\n if (this === target && typeof Uint8Array.prototype.copyWithin === 'function') {\n // Use built-in when available, missing from IE11\n this.copyWithin(targetStart, start, end)\n } else if (this === target && start < targetStart && targetStart < end) {\n // descending copy from end\n for (var i = len - 1; i >= 0; --i) {\n target[i + targetStart] = this[i + start]\n }\n } else {\n Uint8Array.prototype.set.call(\n target,\n this.subarray(start, end),\n targetStart\n )\n }\n\n return len\n}\n\n// Usage:\n// buffer.fill(number[, offset[, end]])\n// buffer.fill(buffer[, offset[, end]])\n// buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start\n start = 0\n end = this.length\n } else if (typeof end === 'string') {\n encoding = end\n end = this.length\n }\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string')\n }\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n if (val.length === 1) {\n var code = val.charCodeAt(0)\n if ((encoding === 'utf8' && code < 128) ||\n encoding === 'latin1') {\n // Fast path: If `val` fits into a single byte, use that numeric value.\n val = code\n }\n }\n } else if (typeof val === 'number') {\n val = val & 255\n }\n\n // Invalid ranges are not set to a default, so can range check early.\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index')\n }\n\n if (end <= start) {\n return this\n }\n\n start = start >>> 0\n end = end === undefined ? this.length : end >>> 0\n\n if (!val) val = 0\n\n var i\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val\n }\n } else {\n var bytes = Buffer.isBuffer(val)\n ? val\n : Buffer.from(val, encoding)\n var len = bytes.length\n if (len === 0) {\n throw new TypeError('The value \"' + val +\n '\" is invalid for argument \"value\"')\n }\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len]\n }\n }\n\n return this\n}\n\n// HELPER FUNCTIONS\n// ================\n\nvar INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node takes equal signs as end of the Base64 encoding\n str = str.split('=')[0]\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = str.trim().replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction toHex (n) {\n if (n < 16) return '0' + n.toString(16)\n return n.toString(16)\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n var codePoint\n var length = string.length\n var leadSurrogate = null\n var bytes = []\n\n for (var i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n var byteArray = []\n for (var i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n var c, hi, lo\n var byteArray = []\n for (var i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n for (var i = 0; i < length; ++i) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\n// ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass\n// the `instanceof` check but they should be treated as of that type.\n// See: https://github.com/feross/buffer/issues/166\nfunction isInstance (obj, type) {\n return obj instanceof type ||\n (obj != null && obj.constructor != null && obj.constructor.name != null &&\n obj.constructor.name === type.name)\n}\nfunction numberIsNaN (obj) {\n // For IE11 support\n return obj !== obj // eslint-disable-line no-self-compare\n}\n\n}).call(this)}).call(this,_dereq_(\"buffer\").Buffer)\n},{\"base64-js\":79,\"buffer\":85,\"ieee754\":230}],86:[function(_dereq_,module,exports){\nmodule.exports = clamp\n\nfunction clamp(value, min, max) {\n return min < max\n ? (value < min ? min : value > max ? max : value)\n : (value < max ? max : value > min ? min : value)\n}\n\n},{}],87:[function(_dereq_,module,exports){\n/** @module color-id */\r\n\r\n'use strict'\r\n\r\nvar clamp = _dereq_('clamp')\r\n\r\nmodule.exports = toNumber\r\nmodule.exports.to = toNumber\r\nmodule.exports.from = fromNumber\r\n\r\nfunction toNumber (rgba, normalized) {\r\n\tif(normalized == null) normalized = true\r\n\r\n\tvar r = rgba[0], g = rgba[1], b = rgba[2], a = rgba[3]\r\n\r\n\tif (a == null) a = normalized ? 1 : 255\r\n\r\n\tif (normalized) {\r\n\t\tr *= 255\r\n\t\tg *= 255\r\n\t\tb *= 255\r\n\t\ta *= 255\r\n\t}\r\n\r\n\tr = clamp(r, 0, 255) & 0xFF\r\n\tg = clamp(g, 0, 255) & 0xFF\r\n\tb = clamp(b, 0, 255) & 0xFF\r\n\ta = clamp(a, 0, 255) & 0xFF\r\n\r\n\t//hi-order shift converts to -1, so we can't use <<24\r\n\tvar n = (r * 0x01000000) + (g << 16) + (b << 8) + (a)\r\n\r\n\treturn n\r\n}\r\n\r\nfunction fromNumber (n, normalized) {\r\n\tn = +n\r\n\r\n\tvar r = n >>> 24\r\n\tvar g = (n & 0x00ff0000) >>> 16\r\n\tvar b = (n & 0x0000ff00) >>> 8\r\n\tvar a = n & 0x000000ff\r\n\r\n\tif (normalized === false) return [r, g, b, a]\r\n\r\n\treturn [r/255, g/255, b/255, a/255]\r\n}\r\n\n},{\"clamp\":86}],88:[function(_dereq_,module,exports){\n'use strict'\r\n\r\nmodule.exports = {\r\n\t\"aliceblue\": [240, 248, 255],\r\n\t\"antiquewhite\": [250, 235, 215],\r\n\t\"aqua\": [0, 255, 255],\r\n\t\"aquamarine\": [127, 255, 212],\r\n\t\"azure\": [240, 255, 255],\r\n\t\"beige\": [245, 245, 220],\r\n\t\"bisque\": [255, 228, 196],\r\n\t\"black\": [0, 0, 0],\r\n\t\"blanchedalmond\": [255, 235, 205],\r\n\t\"blue\": [0, 0, 255],\r\n\t\"blueviolet\": [138, 43, 226],\r\n\t\"brown\": [165, 42, 42],\r\n\t\"burlywood\": [222, 184, 135],\r\n\t\"cadetblue\": [95, 158, 160],\r\n\t\"chartreuse\": [127, 255, 0],\r\n\t\"chocolate\": [210, 105, 30],\r\n\t\"coral\": [255, 127, 80],\r\n\t\"cornflowerblue\": [100, 149, 237],\r\n\t\"cornsilk\": [255, 248, 220],\r\n\t\"crimson\": [220, 20, 60],\r\n\t\"cyan\": [0, 255, 255],\r\n\t\"darkblue\": [0, 0, 139],\r\n\t\"darkcyan\": [0, 139, 139],\r\n\t\"darkgoldenrod\": [184, 134, 11],\r\n\t\"darkgray\": [169, 169, 169],\r\n\t\"darkgreen\": [0, 100, 0],\r\n\t\"darkgrey\": [169, 169, 169],\r\n\t\"darkkhaki\": [189, 183, 107],\r\n\t\"darkmagenta\": [139, 0, 139],\r\n\t\"darkolivegreen\": [85, 107, 47],\r\n\t\"darkorange\": [255, 140, 0],\r\n\t\"darkorchid\": [153, 50, 204],\r\n\t\"darkred\": [139, 0, 0],\r\n\t\"darksalmon\": [233, 150, 122],\r\n\t\"darkseagreen\": [143, 188, 143],\r\n\t\"darkslateblue\": [72, 61, 139],\r\n\t\"darkslategray\": [47, 79, 79],\r\n\t\"darkslategrey\": [47, 79, 79],\r\n\t\"darkturquoise\": [0, 206, 209],\r\n\t\"darkviolet\": [148, 0, 211],\r\n\t\"deeppink\": [255, 20, 147],\r\n\t\"deepskyblue\": [0, 191, 255],\r\n\t\"dimgray\": [105, 105, 105],\r\n\t\"dimgrey\": [105, 105, 105],\r\n\t\"dodgerblue\": [30, 144, 255],\r\n\t\"firebrick\": [178, 34, 34],\r\n\t\"floralwhite\": [255, 250, 240],\r\n\t\"forestgreen\": [34, 139, 34],\r\n\t\"fuchsia\": [255, 0, 255],\r\n\t\"gainsboro\": [220, 220, 220],\r\n\t\"ghostwhite\": [248, 248, 255],\r\n\t\"gold\": [255, 215, 0],\r\n\t\"goldenrod\": [218, 165, 32],\r\n\t\"gray\": [128, 128, 128],\r\n\t\"green\": [0, 128, 0],\r\n\t\"greenyellow\": [173, 255, 47],\r\n\t\"grey\": [128, 128, 128],\r\n\t\"honeydew\": [240, 255, 240],\r\n\t\"hotpink\": [255, 105, 180],\r\n\t\"indianred\": [205, 92, 92],\r\n\t\"indigo\": [75, 0, 130],\r\n\t\"ivory\": [255, 255, 240],\r\n\t\"khaki\": [240, 230, 140],\r\n\t\"lavender\": [230, 230, 250],\r\n\t\"lavenderblush\": [255, 240, 245],\r\n\t\"lawngreen\": [124, 252, 0],\r\n\t\"lemonchiffon\": [255, 250, 205],\r\n\t\"lightblue\": [173, 216, 230],\r\n\t\"lightcoral\": [240, 128, 128],\r\n\t\"lightcyan\": [224, 255, 255],\r\n\t\"lightgoldenrodyellow\": [250, 250, 210],\r\n\t\"lightgray\": [211, 211, 211],\r\n\t\"lightgreen\": [144, 238, 144],\r\n\t\"lightgrey\": [211, 211, 211],\r\n\t\"lightpink\": [255, 182, 193],\r\n\t\"lightsalmon\": [255, 160, 122],\r\n\t\"lightseagreen\": [32, 178, 170],\r\n\t\"lightskyblue\": [135, 206, 250],\r\n\t\"lightslategray\": [119, 136, 153],\r\n\t\"lightslategrey\": [119, 136, 153],\r\n\t\"lightsteelblue\": [176, 196, 222],\r\n\t\"lightyellow\": [255, 255, 224],\r\n\t\"lime\": [0, 255, 0],\r\n\t\"limegreen\": [50, 205, 50],\r\n\t\"linen\": [250, 240, 230],\r\n\t\"magenta\": [255, 0, 255],\r\n\t\"maroon\": [128, 0, 0],\r\n\t\"mediumaquamarine\": [102, 205, 170],\r\n\t\"mediumblue\": [0, 0, 205],\r\n\t\"mediumorchid\": [186, 85, 211],\r\n\t\"mediumpurple\": [147, 112, 219],\r\n\t\"mediumseagreen\": [60, 179, 113],\r\n\t\"mediumslateblue\": [123, 104, 238],\r\n\t\"mediumspringgreen\": [0, 250, 154],\r\n\t\"mediumturquoise\": [72, 209, 204],\r\n\t\"mediumvioletred\": [199, 21, 133],\r\n\t\"midnightblue\": [25, 25, 112],\r\n\t\"mintcream\": [245, 255, 250],\r\n\t\"mistyrose\": [255, 228, 225],\r\n\t\"moccasin\": [255, 228, 181],\r\n\t\"navajowhite\": [255, 222, 173],\r\n\t\"navy\": [0, 0, 128],\r\n\t\"oldlace\": [253, 245, 230],\r\n\t\"olive\": [128, 128, 0],\r\n\t\"olivedrab\": [107, 142, 35],\r\n\t\"orange\": [255, 165, 0],\r\n\t\"orangered\": [255, 69, 0],\r\n\t\"orchid\": [218, 112, 214],\r\n\t\"palegoldenrod\": [238, 232, 170],\r\n\t\"palegreen\": [152, 251, 152],\r\n\t\"paleturquoise\": [175, 238, 238],\r\n\t\"palevioletred\": [219, 112, 147],\r\n\t\"papayawhip\": [255, 239, 213],\r\n\t\"peachpuff\": [255, 218, 185],\r\n\t\"peru\": [205, 133, 63],\r\n\t\"pink\": [255, 192, 203],\r\n\t\"plum\": [221, 160, 221],\r\n\t\"powderblue\": [176, 224, 230],\r\n\t\"purple\": [128, 0, 128],\r\n\t\"rebeccapurple\": [102, 51, 153],\r\n\t\"red\": [255, 0, 0],\r\n\t\"rosybrown\": [188, 143, 143],\r\n\t\"royalblue\": [65, 105, 225],\r\n\t\"saddlebrown\": [139, 69, 19],\r\n\t\"salmon\": [250, 128, 114],\r\n\t\"sandybrown\": [244, 164, 96],\r\n\t\"seagreen\": [46, 139, 87],\r\n\t\"seashell\": [255, 245, 238],\r\n\t\"sienna\": [160, 82, 45],\r\n\t\"silver\": [192, 192, 192],\r\n\t\"skyblue\": [135, 206, 235],\r\n\t\"slateblue\": [106, 90, 205],\r\n\t\"slategray\": [112, 128, 144],\r\n\t\"slategrey\": [112, 128, 144],\r\n\t\"snow\": [255, 250, 250],\r\n\t\"springgreen\": [0, 255, 127],\r\n\t\"steelblue\": [70, 130, 180],\r\n\t\"tan\": [210, 180, 140],\r\n\t\"teal\": [0, 128, 128],\r\n\t\"thistle\": [216, 191, 216],\r\n\t\"tomato\": [255, 99, 71],\r\n\t\"turquoise\": [64, 224, 208],\r\n\t\"violet\": [238, 130, 238],\r\n\t\"wheat\": [245, 222, 179],\r\n\t\"white\": [255, 255, 255],\r\n\t\"whitesmoke\": [245, 245, 245],\r\n\t\"yellow\": [255, 255, 0],\r\n\t\"yellowgreen\": [154, 205, 50]\r\n};\r\n\n},{}],89:[function(_dereq_,module,exports){\n/** @module color-normalize */\r\n\r\n'use strict'\r\n\r\nvar rgba = _dereq_('color-rgba')\r\nvar clamp = _dereq_('clamp')\r\nvar dtype = _dereq_('dtype')\r\n\r\nmodule.exports = function normalize (color, type) {\r\n\tif (type === 'float' || !type) type = 'array'\r\n\tif (type === 'uint') type = 'uint8'\r\n\tif (type === 'uint_clamped') type = 'uint8_clamped'\r\n\tvar Ctor = dtype(type)\r\n\tvar output = new Ctor(4)\r\n\r\n\tvar normalize = type !== 'uint8' && type !== 'uint8_clamped'\r\n\r\n\t// attempt to parse non-array arguments\r\n\tif (!color.length || typeof color === 'string') {\r\n\t\tcolor = rgba(color)\r\n\t\tcolor[0] /= 255\r\n\t\tcolor[1] /= 255\r\n\t\tcolor[2] /= 255\r\n\t}\r\n\r\n\t// 0, 1 are possible contradictory values for Arrays:\r\n\t// [1,1,1] input gives [1,1,1] output instead of [1/255,1/255,1/255], which may be collision if input is meant to be uint.\r\n\t// converting [1,1,1] to [1/255,1/255,1/255] in case of float input gives larger mistake since [1,1,1] float is frequent edge value, whereas [0,1,1], [1,1,1] etc. uint inputs are relatively rare\r\n\tif (isInt(color)) {\r\n\t\toutput[0] = color[0]\r\n\t\toutput[1] = color[1]\r\n\t\toutput[2] = color[2]\r\n\t\toutput[3] = color[3] != null ? color[3] : 255\r\n\r\n\t\tif (normalize) {\r\n\t\t\toutput[0] /= 255\r\n\t\t\toutput[1] /= 255\r\n\t\t\toutput[2] /= 255\r\n\t\t\toutput[3] /= 255\r\n\t\t}\r\n\r\n\t\treturn output\r\n\t}\r\n\r\n\tif (!normalize) {\r\n\t\toutput[0] = clamp(Math.floor(color[0] * 255), 0, 255)\r\n\t\toutput[1] = clamp(Math.floor(color[1] * 255), 0, 255)\r\n\t\toutput[2] = clamp(Math.floor(color[2] * 255), 0, 255)\r\n\t\toutput[3] = color[3] == null ? 255 : clamp(Math.floor(color[3] * 255), 0, 255)\r\n\t} else {\r\n\t\toutput[0] = color[0]\r\n\t\toutput[1] = color[1]\r\n\t\toutput[2] = color[2]\r\n\t\toutput[3] = color[3] != null ? color[3] : 1\r\n\t}\r\n\r\n\treturn output\r\n}\r\n\r\nfunction isInt(color) {\r\n\tif (color instanceof Uint8Array || color instanceof Uint8ClampedArray) return true\r\n\r\n\tif (Array.isArray(color) &&\r\n\t\t(color[0] > 1 || color[0] === 0) &&\r\n\t\t(color[1] > 1 || color[1] === 0) &&\r\n\t\t(color[2] > 1 || color[2] === 0) &&\r\n\t\t(!color[3] || color[3] > 1)\r\n\t) return true\r\n\r\n\treturn false\r\n}\r\n\n},{\"clamp\":86,\"color-rgba\":91,\"dtype\":127}],90:[function(_dereq_,module,exports){\n(function (global){(function (){\n/**\n * @module color-parse\n */\n\n'use strict'\n\nvar names = _dereq_('color-name')\nvar isObject = _dereq_('is-plain-obj')\nvar defined = _dereq_('defined')\n\nmodule.exports = parse\n\n/**\n * Base hues\n * http://dev.w3.org/csswg/css-color/#typedef-named-hue\n */\n//FIXME: use external hue detector\nvar baseHues = {\n\tred: 0,\n\torange: 60,\n\tyellow: 120,\n\tgreen: 180,\n\tblue: 240,\n\tpurple: 300\n}\n\n/**\n * Parse color from the string passed\n *\n * @return {Object} A space indicator `space`, an array `values` and `alpha`\n */\nfunction parse (cstr) {\n\tvar m, parts = [], alpha = 1, space\n\n\tif (typeof cstr === 'string') {\n\t\t//keyword\n\t\tif (names[cstr]) {\n\t\t\tparts = names[cstr].slice()\n\t\t\tspace = 'rgb'\n\t\t}\n\n\t\t//reserved words\n\t\telse if (cstr === 'transparent') {\n\t\t\talpha = 0\n\t\t\tspace = 'rgb'\n\t\t\tparts = [0,0,0]\n\t\t}\n\n\t\t//hex\n\t\telse if (/^#[A-Fa-f0-9]+$/.test(cstr)) {\n\t\t\tvar base = cstr.slice(1)\n\t\t\tvar size = base.length\n\t\t\tvar isShort = size <= 4\n\t\t\talpha = 1\n\n\t\t\tif (isShort) {\n\t\t\t\tparts = [\n\t\t\t\t\tparseInt(base[0] + base[0], 16),\n\t\t\t\t\tparseInt(base[1] + base[1], 16),\n\t\t\t\t\tparseInt(base[2] + base[2], 16)\n\t\t\t\t]\n\t\t\t\tif (size === 4) {\n\t\t\t\t\talpha = parseInt(base[3] + base[3], 16) / 255\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tparts = [\n\t\t\t\t\tparseInt(base[0] + base[1], 16),\n\t\t\t\t\tparseInt(base[2] + base[3], 16),\n\t\t\t\t\tparseInt(base[4] + base[5], 16)\n\t\t\t\t]\n\t\t\t\tif (size === 8) {\n\t\t\t\t\talpha = parseInt(base[6] + base[7], 16) / 255\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!parts[0]) parts[0] = 0\n\t\t\tif (!parts[1]) parts[1] = 0\n\t\t\tif (!parts[2]) parts[2] = 0\n\n\t\t\tspace = 'rgb'\n\t\t}\n\n\t\t//color space\n\t\telse if (m = /^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\\s*\\(([^\\)]*)\\)/.exec(cstr)) {\n\t\t\tvar name = m[1]\n\t\t\tvar isRGB = name === 'rgb'\n\t\t\tvar base = name.replace(/a$/, '')\n\t\t\tspace = base\n\t\t\tvar size = base === 'cmyk' ? 4 : base === 'gray' ? 1 : 3\n\t\t\tparts = m[2].trim()\n\t\t\t\t.split(/\\s*,\\s*/)\n\t\t\t\t.map(function (x, i) {\n\t\t\t\t\t//\n\t\t\t\t\tif (/%$/.test(x)) {\n\t\t\t\t\t\t//alpha\n\t\t\t\t\t\tif (i === size)\treturn parseFloat(x) / 100\n\t\t\t\t\t\t//rgb\n\t\t\t\t\t\tif (base === 'rgb') return parseFloat(x) * 255 / 100\n\t\t\t\t\t\treturn parseFloat(x)\n\t\t\t\t\t}\n\t\t\t\t\t//hue\n\t\t\t\t\telse if (base[i] === 'h') {\n\t\t\t\t\t\t//\n\t\t\t\t\t\tif (/deg$/.test(x)) {\n\t\t\t\t\t\t\treturn parseFloat(x)\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//\n\t\t\t\t\t\telse if (baseHues[x] !== undefined) {\n\t\t\t\t\t\t\treturn baseHues[x]\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn parseFloat(x)\n\t\t\t\t})\n\n\t\t\tif (name === base) parts.push(1)\n\t\t\talpha = (isRGB) ? 1 : (parts[size] === undefined) ? 1 : parts[size]\n\t\t\tparts = parts.slice(0, size)\n\t\t}\n\n\t\t//named channels case\n\t\telse if (cstr.length > 10 && /[0-9](?:\\s|\\/)/.test(cstr)) {\n\t\t\tparts = cstr.match(/([0-9]+)/g).map(function (value) {\n\t\t\t\treturn parseFloat(value)\n\t\t\t})\n\n\t\t\tspace = cstr.match(/([a-z])/ig).join('').toLowerCase()\n\t\t}\n\t}\n\n\t//numeric case\n\telse if (!isNaN(cstr)) {\n\t\tspace = 'rgb'\n\t\tparts = [cstr >>> 16, (cstr & 0x00ff00) >>> 8, cstr & 0x0000ff]\n\t}\n\n\t//object case - detects css cases of rgb and hsl\n\telse if (isObject(cstr)) {\n\t\tvar r = defined(cstr.r, cstr.red, cstr.R, null)\n\n\t\tif (r !== null) {\n\t\t\tspace = 'rgb'\n\t\t\tparts = [\n\t\t\t\tr,\n\t\t\t\tdefined(cstr.g, cstr.green, cstr.G),\n\t\t\t\tdefined(cstr.b, cstr.blue, cstr.B)\n\t\t\t]\n\t\t}\n\t\telse {\n\t\t\tspace = 'hsl'\n\t\t\tparts = [\n\t\t\t\tdefined(cstr.h, cstr.hue, cstr.H),\n\t\t\t\tdefined(cstr.s, cstr.saturation, cstr.S),\n\t\t\t\tdefined(cstr.l, cstr.lightness, cstr.L, cstr.b, cstr.brightness)\n\t\t\t]\n\t\t}\n\n\t\talpha = defined(cstr.a, cstr.alpha, cstr.opacity, 1)\n\n\t\tif (cstr.opacity != null) alpha /= 100\n\t}\n\n\t//array\n\telse if (Array.isArray(cstr) || global.ArrayBuffer && ArrayBuffer.isView && ArrayBuffer.isView(cstr)) {\n\t\tparts = [cstr[0], cstr[1], cstr[2]]\n\t\tspace = 'rgb'\n\t\talpha = cstr.length === 4 ? cstr[3] : 1\n\t}\n\n\treturn {\n\t\tspace: space,\n\t\tvalues: parts,\n\t\talpha: alpha\n\t}\n}\n\n}).call(this)}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{\"color-name\":88,\"defined\":124,\"is-plain-obj\":236}],91:[function(_dereq_,module,exports){\n/** @module color-rgba */\n\n'use strict'\n\nvar parse = _dereq_('color-parse')\nvar hsl = _dereq_('color-space/hsl')\nvar clamp = _dereq_('clamp')\n\nmodule.exports = function rgba (color) {\n\tvar values, i, l\n\n\t//attempt to parse non-array arguments\n\tvar parsed = parse(color)\n\n\tif (!parsed.space) return []\n\n\tvalues = Array(3)\n\tvalues[0] = clamp(parsed.values[0], 0, 255)\n\tvalues[1] = clamp(parsed.values[1], 0, 255)\n\tvalues[2] = clamp(parsed.values[2], 0, 255)\n\n\tif (parsed.space[0] === 'h') {\n\t\tvalues = hsl.rgb(values)\n\t}\n\n\tvalues.push(clamp(parsed.alpha, 0, 1))\n\n\treturn values\n}\n\n},{\"clamp\":86,\"color-parse\":90,\"color-space/hsl\":92}],92:[function(_dereq_,module,exports){\n/**\n * @module color-space/hsl\n */\n'use strict'\n\nvar rgb = _dereq_('./rgb');\n\nmodule.exports = {\n\tname: 'hsl',\n\tmin: [0,0,0],\n\tmax: [360,100,100],\n\tchannel: ['hue', 'saturation', 'lightness'],\n\talias: ['HSL'],\n\n\trgb: function(hsl) {\n\t\tvar h = hsl[0] / 360,\n\t\t\t\ts = hsl[1] / 100,\n\t\t\t\tl = hsl[2] / 100,\n\t\t\t\tt1, t2, t3, rgb, val;\n\n\t\tif (s === 0) {\n\t\t\tval = l * 255;\n\t\t\treturn [val, val, val];\n\t\t}\n\n\t\tif (l < 0.5) {\n\t\t\tt2 = l * (1 + s);\n\t\t}\n\t\telse {\n\t\t\tt2 = l + s - l * s;\n\t\t}\n\t\tt1 = 2 * l - t2;\n\n\t\trgb = [0, 0, 0];\n\t\tfor (var i = 0; i < 3; i++) {\n\t\t\tt3 = h + 1 / 3 * - (i - 1);\n\t\t\tif (t3 < 0) {\n\t\t\t\tt3++;\n\t\t\t}\n\t\t\telse if (t3 > 1) {\n\t\t\t\tt3--;\n\t\t\t}\n\n\t\t\tif (6 * t3 < 1) {\n\t\t\t\tval = t1 + (t2 - t1) * 6 * t3;\n\t\t\t}\n\t\t\telse if (2 * t3 < 1) {\n\t\t\t\tval = t2;\n\t\t\t}\n\t\t\telse if (3 * t3 < 2) {\n\t\t\t\tval = t1 + (t2 - t1) * (2 / 3 - t3) * 6;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tval = t1;\n\t\t\t}\n\n\t\t\trgb[i] = val * 255;\n\t\t}\n\n\t\treturn rgb;\n\t}\n};\n\n\n//extend rgb\nrgb.hsl = function(rgb) {\n\tvar r = rgb[0]/255,\n\t\t\tg = rgb[1]/255,\n\t\t\tb = rgb[2]/255,\n\t\t\tmin = Math.min(r, g, b),\n\t\t\tmax = Math.max(r, g, b),\n\t\t\tdelta = max - min,\n\t\t\th, s, l;\n\n\tif (max === min) {\n\t\th = 0;\n\t}\n\telse if (r === max) {\n\t\th = (g - b) / delta;\n\t}\n\telse if (g === max) {\n\t\th = 2 + (b - r) / delta;\n\t}\n\telse if (b === max) {\n\t\th = 4 + (r - g)/ delta;\n\t}\n\n\th = Math.min(h * 60, 360);\n\n\tif (h < 0) {\n\t\th += 360;\n\t}\n\n\tl = (min + max) / 2;\n\n\tif (max === min) {\n\t\ts = 0;\n\t}\n\telse if (l <= 0.5) {\n\t\ts = delta / (max + min);\n\t}\n\telse {\n\t\ts = delta / (2 - max - min);\n\t}\n\n\treturn [h, s * 100, l * 100];\n};\n\n},{\"./rgb\":93}],93:[function(_dereq_,module,exports){\n/**\n * RGB space.\n *\n * @module color-space/rgb\n */\n'use strict'\n\nmodule.exports = {\n\tname: 'rgb',\n\tmin: [0,0,0],\n\tmax: [255,255,255],\n\tchannel: ['red', 'green', 'blue'],\n\talias: ['RGB']\n};\n\n},{}],94:[function(_dereq_,module,exports){\nmodule.exports = {\n AFG: 'afghan',\n ALA: '\\\\b\\\\wland',\n ALB: 'albania',\n DZA: 'algeria',\n ASM: '^(?=.*americ).*samoa',\n AND: 'andorra',\n AGO: 'angola',\n AIA: 'anguill?a',\n ATA: 'antarctica',\n ATG: 'antigua',\n ARG: 'argentin',\n ARM: 'armenia',\n ABW: '^(?!.*bonaire).*\\\\baruba',\n AUS: 'australia',\n AUT: '^(?!.*hungary).*austria|\\\\baustri.*\\\\bemp',\n AZE: 'azerbaijan',\n BHS: 'bahamas',\n BHR: 'bahrain',\n BGD: 'bangladesh|^(?=.*east).*paki?stan',\n BRB: 'barbados',\n BLR: 'belarus|byelo',\n BEL: '^(?!.*luxem).*belgium',\n BLZ: 'belize|^(?=.*british).*honduras',\n BEN: 'benin|dahome',\n BMU: 'bermuda',\n BTN: 'bhutan',\n BOL: 'bolivia',\n BES: '^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\\\bbes.?islands',\n BIH: 'herzegovina|bosnia',\n BWA: 'botswana|bechuana',\n BVT: 'bouvet',\n BRA: 'brazil',\n IOT: 'british.?indian.?ocean',\n BRN: 'brunei',\n BGR: 'bulgaria',\n BFA: 'burkina|\\\\bfaso|upper.?volta',\n BDI: 'burundi',\n CPV: 'verde',\n KHM: 'cambodia|kampuchea|khmer',\n CMR: 'cameroon',\n CAN: 'canada',\n CYM: 'cayman',\n CAF: '\\\\bcentral.african.republic',\n TCD: '\\\\bchad',\n CHL: '\\\\bchile',\n CHN: '^(?!.*\\\\bmac)(?!.*\\\\bhong)(?!.*\\\\btai)(?!.*\\\\brep).*china|^(?=.*peo)(?=.*rep).*china',\n CXR: 'christmas',\n CCK: '\\\\bcocos|keeling',\n COL: 'colombia',\n COM: 'comoro',\n COG: '^(?!.*\\\\bdem)(?!.*\\\\bd[\\\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\\\bcongo',\n COK: '\\\\bcook',\n CRI: 'costa.?rica',\n CIV: 'ivoire|ivory',\n HRV: 'croatia',\n CUB: '\\\\bcuba',\n CUW: '^(?!.*bonaire).*\\\\bcura(c|ç)ao',\n CYP: 'cyprus',\n CSK: 'czechoslovakia',\n CZE: '^(?=.*rep).*czech|czechia|bohemia',\n COD: '\\\\bdem.*congo|congo.*\\\\bdem|congo.*\\\\bd[\\\\.]?r|\\\\bd[\\\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc',\n DNK: 'denmark',\n DJI: 'djibouti',\n DMA: 'dominica(?!n)',\n DOM: 'dominican.rep',\n ECU: 'ecuador',\n EGY: 'egypt',\n SLV: 'el.?salvador',\n GNQ: 'guine.*eq|eq.*guine|^(?=.*span).*guinea',\n ERI: 'eritrea',\n EST: 'estonia',\n ETH: 'ethiopia|abyssinia',\n FLK: 'falkland|malvinas',\n FRO: 'faroe|faeroe',\n FJI: 'fiji',\n FIN: 'finland',\n FRA: '^(?!.*\\\\bdep)(?!.*martinique).*france|french.?republic|\\\\bgaul',\n GUF: '^(?=.*french).*guiana',\n PYF: 'french.?polynesia|tahiti',\n ATF: 'french.?southern',\n GAB: 'gabon',\n GMB: 'gambia',\n GEO: '^(?!.*south).*georgia',\n DDR: 'german.?democratic.?republic|democratic.?republic.*germany|east.germany',\n DEU: '^(?!.*east).*germany|^(?=.*\\\\bfed.*\\\\brep).*german',\n GHA: 'ghana|gold.?coast',\n GIB: 'gibraltar',\n GRC: 'greece|hellenic|hellas',\n GRL: 'greenland',\n GRD: 'grenada',\n GLP: 'guadeloupe',\n GUM: '\\\\bguam',\n GTM: 'guatemala',\n GGY: 'guernsey',\n GIN: '^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea',\n GNB: 'bissau|^(?=.*portu).*guinea',\n GUY: 'guyana|british.?guiana',\n HTI: 'haiti',\n HMD: 'heard.*mcdonald',\n VAT: 'holy.?see|vatican|papal.?st',\n HND: '^(?!.*brit).*honduras',\n HKG: 'hong.?kong',\n HUN: '^(?!.*austr).*hungary',\n ISL: 'iceland',\n IND: 'india(?!.*ocea)',\n IDN: 'indonesia',\n IRN: '\\\\biran|persia',\n IRQ: '\\\\biraq|mesopotamia',\n IRL: '(^ireland)|(^republic.*ireland)',\n IMN: '^(?=.*isle).*\\\\bman',\n ISR: 'israel',\n ITA: 'italy',\n JAM: 'jamaica',\n JPN: 'japan',\n JEY: 'jersey',\n JOR: 'jordan',\n KAZ: 'kazak',\n KEN: 'kenya|british.?east.?africa|east.?africa.?prot',\n KIR: 'kiribati',\n PRK: '^(?=.*democrat|people|north|d.*p.*.r).*\\\\bkorea|dprk|korea.*(d.*p.*r)',\n KWT: 'kuwait',\n KGZ: 'kyrgyz|kirghiz',\n LAO: '\\\\blaos?\\\\b',\n LVA: 'latvia',\n LBN: 'lebanon',\n LSO: 'lesotho|basuto',\n LBR: 'liberia',\n LBY: 'libya',\n LIE: 'liechtenstein',\n LTU: 'lithuania',\n LUX: '^(?!.*belg).*luxem',\n MAC: 'maca(o|u)',\n MDG: 'madagascar|malagasy',\n MWI: 'malawi|nyasa',\n MYS: 'malaysia',\n MDV: 'maldive',\n MLI: '\\\\bmali\\\\b',\n MLT: '\\\\bmalta',\n MHL: 'marshall',\n MTQ: 'martinique',\n MRT: 'mauritania',\n MUS: 'mauritius',\n MYT: '\\\\bmayotte',\n MEX: '\\\\bmexic',\n FSM: 'fed.*micronesia|micronesia.*fed',\n MCO: 'monaco',\n MNG: 'mongolia',\n MNE: '^(?!.*serbia).*montenegro',\n MSR: 'montserrat',\n MAR: 'morocco|\\\\bmaroc',\n MOZ: 'mozambique',\n MMR: 'myanmar|burma',\n NAM: 'namibia',\n NRU: 'nauru',\n NPL: 'nepal',\n NLD: '^(?!.*\\\\bant)(?!.*\\\\bcarib).*netherlands',\n ANT: '^(?=.*\\\\bant).*(nether|dutch)',\n NCL: 'new.?caledonia',\n NZL: 'new.?zealand',\n NIC: 'nicaragua',\n NER: '\\\\bniger(?!ia)',\n NGA: 'nigeria',\n NIU: 'niue',\n NFK: 'norfolk',\n MNP: 'mariana',\n NOR: 'norway',\n OMN: '\\\\boman|trucial',\n PAK: '^(?!.*east).*paki?stan',\n PLW: 'palau',\n PSE: 'palestin|\\\\bgaza|west.?bank',\n PAN: 'panama',\n PNG: 'papua|new.?guinea',\n PRY: 'paraguay',\n PER: 'peru',\n PHL: 'philippines',\n PCN: 'pitcairn',\n POL: 'poland',\n PRT: 'portugal',\n PRI: 'puerto.?rico',\n QAT: 'qatar',\n KOR: '^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\\\bkorea(?!.*d.*p.*r)',\n MDA: 'moldov|b(a|e)ssarabia',\n REU: 'r(e|é)union',\n ROU: 'r(o|u|ou)mania',\n RUS: '\\\\brussia|soviet.?union|u\\\\.?s\\\\.?s\\\\.?r|socialist.?republics',\n RWA: 'rwanda',\n BLM: 'barth(e|é)lemy',\n SHN: 'helena',\n KNA: 'kitts|\\\\bnevis',\n LCA: '\\\\blucia',\n MAF: '^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)',\n SPM: 'miquelon',\n VCT: 'vincent',\n WSM: '^(?!.*amer).*samoa',\n SMR: 'san.?marino',\n STP: '\\\\bs(a|ã)o.?tom(e|é)',\n SAU: '\\\\bsa\\\\w*.?arabia',\n SEN: 'senegal',\n SRB: '^(?!.*monte).*serbia',\n SYC: 'seychell',\n SLE: 'sierra',\n SGP: 'singapore',\n SXM: '^(?!.*martin)(?!.*saba).*maarten',\n SVK: '^(?!.*cze).*slovak',\n SVN: 'slovenia',\n SLB: 'solomon',\n SOM: 'somali',\n ZAF: 'south.africa|s\\\\\\\\..?africa',\n SGS: 'south.?georgia|sandwich',\n SSD: '\\\\bs\\\\w*.?sudan',\n ESP: 'spain',\n LKA: 'sri.?lanka|ceylon',\n SDN: '^(?!.*\\\\bs(?!u)).*sudan',\n SUR: 'surinam|dutch.?guiana',\n SJM: 'svalbard',\n SWZ: 'swaziland',\n SWE: 'sweden',\n CHE: 'switz|swiss',\n SYR: 'syria',\n TWN: 'taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china',\n TJK: 'tajik',\n THA: 'thailand|\\\\bsiam',\n MKD: 'macedonia|fyrom',\n TLS: '^(?=.*leste).*timor|^(?=.*east).*timor',\n TGO: 'togo',\n TKL: 'tokelau',\n TON: 'tonga',\n TTO: 'trinidad|tobago',\n TUN: 'tunisia',\n TUR: 'turkey',\n TKM: 'turkmen',\n TCA: 'turks',\n TUV: 'tuvalu',\n UGA: 'uganda',\n UKR: 'ukrain',\n ARE: 'emirates|^u\\\\.?a\\\\.?e\\\\.?$|united.?arab.?em',\n GBR: 'united.?kingdom|britain|^u\\\\.?k\\\\.?$',\n TZA: 'tanzania',\n USA: 'united.?states\\\\b(?!.*islands)|\\\\bu\\\\.?s\\\\.?a\\\\.?\\\\b|^\\\\s*u\\\\.?s\\\\.?\\\\b(?!.*islands)',\n UMI: 'minor.?outlying.?is',\n URY: 'uruguay',\n UZB: 'uzbek',\n VUT: 'vanuatu|new.?hebrides',\n VEN: 'venezuela',\n VNM: '^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam',\n VGB: '^(?=.*\\\\bu\\\\.?\\\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin',\n VIR: '^(?=.*\\\\bu\\\\.?\\\\s?s).*virgin|^(?=.*states).*virgin',\n WLF: 'futuna|wallis',\n ESH: 'western.sahara',\n YEM: '^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\\\bp\\\\.?d\\\\.?r).*yemen',\n YMD: '^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\\\bp\\\\.?d\\\\.?r).*yemen',\n YUG: 'yugoslavia',\n ZMB: 'zambia|northern.?rhodesia',\n EAZ: 'zanzibar',\n ZWE: 'zimbabwe|^(?!.*northern).*rhodesia'\n}\n\n},{}],95:[function(_dereq_,module,exports){\nmodule.exports=[\r\n\t\"xx-small\",\r\n\t\"x-small\",\r\n\t\"small\",\r\n\t\"medium\",\r\n\t\"large\",\r\n\t\"x-large\",\r\n\t\"xx-large\",\r\n\t\"larger\",\r\n\t\"smaller\"\r\n]\r\n\n},{}],96:[function(_dereq_,module,exports){\nmodule.exports=[\r\n\t\"normal\",\r\n\t\"condensed\",\r\n\t\"semi-condensed\",\r\n\t\"extra-condensed\",\r\n\t\"ultra-condensed\",\r\n\t\"expanded\",\r\n\t\"semi-expanded\",\r\n\t\"extra-expanded\",\r\n\t\"ultra-expanded\"\r\n]\r\n\n},{}],97:[function(_dereq_,module,exports){\nmodule.exports=[\r\n\t\"normal\",\r\n\t\"italic\",\r\n\t\"oblique\"\r\n]\r\n\n},{}],98:[function(_dereq_,module,exports){\nmodule.exports=[\r\n\t\"normal\",\r\n\t\"bold\",\r\n\t\"bolder\",\r\n\t\"lighter\",\r\n\t\"100\",\r\n\t\"200\",\r\n\t\"300\",\r\n\t\"400\",\r\n\t\"500\",\r\n\t\"600\",\r\n\t\"700\",\r\n\t\"800\",\r\n\t\"900\"\r\n]\r\n\n},{}],99:[function(_dereq_,module,exports){\n'use strict'\r\n\r\nmodule.exports = {\r\n\tparse: _dereq_('./parse'),\r\n\tstringify: _dereq_('./stringify')\r\n}\r\n\n},{\"./parse\":101,\"./stringify\":102}],100:[function(_dereq_,module,exports){\n'use strict'\r\n\r\nvar sizes = _dereq_('css-font-size-keywords')\r\n\r\nmodule.exports = {\r\n\tisSize: function isSize(value) {\r\n\t\treturn /^[\\d\\.]/.test(value)\r\n\t\t\t|| value.indexOf('/') !== -1\r\n\t\t\t|| sizes.indexOf(value) !== -1\r\n\t}\r\n}\r\n\n},{\"css-font-size-keywords\":95}],101:[function(_dereq_,module,exports){\n'use strict'\r\n\r\nvar unquote = _dereq_('unquote')\r\nvar globalKeywords = _dereq_('css-global-keywords')\r\nvar systemFontKeywords = _dereq_('css-system-font-keywords')\r\nvar fontWeightKeywords = _dereq_('css-font-weight-keywords')\r\nvar fontStyleKeywords = _dereq_('css-font-style-keywords')\r\nvar fontStretchKeywords = _dereq_('css-font-stretch-keywords')\r\nvar splitBy = _dereq_('string-split-by')\r\nvar isSize = _dereq_('./lib/util').isSize\r\n\r\n\r\nmodule.exports = parseFont\r\n\r\n\r\nvar cache = parseFont.cache = {}\r\n\r\n\r\nfunction parseFont (value) {\r\n\tif (typeof value !== 'string') throw new Error('Font argument must be a string.')\r\n\r\n\tif (cache[value]) return cache[value]\r\n\r\n\tif (value === '') {\r\n\t\tthrow new Error('Cannot parse an empty string.')\r\n\t}\r\n\r\n\tif (systemFontKeywords.indexOf(value) !== -1) {\r\n\t\treturn cache[value] = {system: value}\r\n\t}\r\n\r\n\tvar font = {\r\n\t\tstyle: 'normal',\r\n\t\tvariant: 'normal',\r\n\t\tweight: 'normal',\r\n\t\tstretch: 'normal',\r\n\t\tlineHeight: 'normal',\r\n\t\tsize: '1rem',\r\n\t\tfamily: ['serif']\r\n\t}\r\n\r\n\tvar tokens = splitBy(value, /\\s+/)\r\n\tvar token\r\n\r\n\twhile (token = tokens.shift()) {\r\n\t\tif (globalKeywords.indexOf(token) !== -1) {\r\n\t\t\t['style', 'variant', 'weight', 'stretch'].forEach(function(prop) {\r\n\t\t\t\tfont[prop] = token\r\n\t\t\t})\r\n\r\n\t\t\treturn cache[value] = font\r\n\t\t}\r\n\r\n\t\tif (fontStyleKeywords.indexOf(token) !== -1) {\r\n\t\t\tfont.style = token\r\n\t\t\tcontinue\r\n\t\t}\r\n\r\n\t\tif (token === 'normal' || token === 'small-caps') {\r\n\t\t\tfont.variant = token\r\n\t\t\tcontinue\r\n\t\t}\r\n\r\n\t\tif (fontStretchKeywords.indexOf(token) !== -1) {\r\n\t\t\tfont.stretch = token\r\n\t\t\tcontinue\r\n\t\t}\r\n\r\n\t\tif (fontWeightKeywords.indexOf(token) !== -1) {\r\n\t\t\tfont.weight = token\r\n\t\t\tcontinue\r\n\t\t}\r\n\r\n\r\n\t\tif (isSize(token)) {\r\n\t\t\tvar parts = splitBy(token, '/')\r\n\t\t\tfont.size = parts[0]\r\n\t\t\tif (parts[1] != null) {\r\n\t\t\t\tfont.lineHeight = parseLineHeight(parts[1])\r\n\t\t\t}\r\n\t\t\telse if (tokens[0] === '/') {\r\n\t\t\t\ttokens.shift()\r\n\t\t\t\tfont.lineHeight = parseLineHeight(tokens.shift())\r\n \t\t\t}\r\n\r\n\t\t\tif (!tokens.length) {\r\n\t\t\t\tthrow new Error('Missing required font-family.')\r\n\t\t\t}\r\n\t\t\tfont.family = splitBy(tokens.join(' '), /\\s*,\\s*/).map(unquote)\r\n\r\n\t\t\treturn cache[value] = font\r\n\t\t}\r\n\r\n\t\tthrow new Error('Unknown or unsupported font token: ' + token)\r\n\t}\r\n\r\n\tthrow new Error('Missing required font-size.')\r\n}\r\n\r\n\r\nfunction parseLineHeight(value) {\r\n\tvar parsed = parseFloat(value)\r\n\tif (parsed.toString() === value) {\r\n\t\treturn parsed\r\n\t}\r\n\treturn value\r\n}\r\n\n},{\"./lib/util\":100,\"css-font-stretch-keywords\":96,\"css-font-style-keywords\":97,\"css-font-weight-keywords\":98,\"css-global-keywords\":103,\"css-system-font-keywords\":104,\"string-split-by\":305,\"unquote\":328}],102:[function(_dereq_,module,exports){\n'use strict'\r\n\r\nvar pick = _dereq_('pick-by-alias')\r\nvar isSize = _dereq_('./lib/util').isSize\r\n\r\nvar globals = a2o(_dereq_('css-global-keywords'))\r\nvar systems = a2o(_dereq_('css-system-font-keywords'))\r\nvar weights = a2o(_dereq_('css-font-weight-keywords'))\r\nvar styles = a2o(_dereq_('css-font-style-keywords'))\r\nvar stretches = a2o(_dereq_('css-font-stretch-keywords'))\r\n\r\nvar variants = {'normal': 1, 'small-caps': 1}\r\nvar fams = {\r\n\t'serif': 1,\r\n\t'sans-serif': 1,\r\n\t'monospace': 1,\r\n\t'cursive': 1,\r\n\t'fantasy': 1,\r\n\t'system-ui': 1\r\n}\r\n\r\nvar defaults = {\r\n\tstyle: 'normal',\r\n\tvariant: 'normal',\r\n\tweight: 'normal',\r\n\tstretch: 'normal',\r\n\tsize: '1rem',\r\n\tlineHeight: 'normal',\r\n\tfamily: 'serif'\r\n}\r\n\r\nmodule.exports = function stringifyFont (o) {\r\n\to = pick(o, {\r\n\t\tstyle: 'style fontstyle fontStyle font-style slope distinction',\r\n\t\tvariant: 'variant font-variant fontVariant fontvariant var capitalization',\r\n\t\tweight: 'weight w font-weight fontWeight fontweight',\r\n\t\tstretch: 'stretch font-stretch fontStretch fontstretch width',\r\n\t\tsize: 'size s font-size fontSize fontsize height em emSize',\r\n\t\tlineHeight: 'lh line-height lineHeight lineheight leading',\r\n\t\tfamily: 'font family fontFamily font-family fontfamily type typeface face',\r\n\t\tsystem: 'system reserved default global',\r\n\t})\r\n\r\n\tif (o.system) {\r\n\t\tif (o.system) verify(o.system, systems)\r\n\t\treturn o.system\r\n\t}\r\n\r\n\tverify(o.style, styles)\r\n\tverify(o.variant, variants)\r\n\tverify(o.weight, weights)\r\n\tverify(o.stretch, stretches)\r\n\r\n\t// default root value is medium, but by default it's inherited\r\n\tif (o.size == null) o.size = defaults.size\r\n\tif (typeof o.size === 'number') o.size += 'px'\r\n\r\n\tif (!isSize) throw Error('Bad size value `' + o.size + '`')\r\n\r\n\t// many user-agents use serif, we don't detect that for consistency\r\n\tif (!o.family) o.family = defaults.family\r\n\tif (Array.isArray(o.family)) {\r\n\t\tif (!o.family.length) o.family = [defaults.family]\r\n\t\to.family = o.family.map(function (f) {\r\n\t\t\treturn fams[f] ? f : '\"' + f + '\"'\r\n\t\t}).join(', ')\r\n\t}\r\n\r\n\t// [ [ <'font-style'> || || <'font-weight'> || <'font-stretch'> ]? <'font-size'> [ / <'line-height'> ]? <'font-family'> ]\r\n\tvar result = []\r\n\r\n\tresult.push(o.style)\r\n\tif (o.variant !== o.style) result.push(o.variant)\r\n\r\n\tif (o.weight !== o.variant &&\r\n\t\to.weight !== o.style) result.push(o.weight)\r\n\r\n\tif (o.stretch !== o.weight &&\r\n\t\to.stretch !== o.variant &&\r\n\t\to.stretch !== o.style) result.push(o.stretch)\r\n\r\n\tresult.push(o.size + (o.lineHeight == null || o.lineHeight === 'normal' || (o.lineHeight + '' === '1') ? '' : ('/' + o.lineHeight)))\r\n\tresult.push(o.family)\r\n\r\n\treturn result.filter(Boolean).join(' ')\r\n}\r\n\r\nfunction verify (value, values) {\r\n\tif (value && !values[value] && !globals[value]) throw Error('Unknown keyword `' + value +'`')\r\n\r\n\treturn value\r\n}\r\n\r\n\r\n// ['a', 'b'] -> {a: true, b: true}\r\nfunction a2o (a) {\r\n\tvar o = {}\r\n\tfor (var i = 0; i < a.length; i++) {\r\n\t\to[a[i]] = 1\r\n\t}\r\n\treturn o\r\n}\r\n\n},{\"./lib/util\":100,\"css-font-stretch-keywords\":96,\"css-font-style-keywords\":97,\"css-font-weight-keywords\":98,\"css-global-keywords\":103,\"css-system-font-keywords\":104,\"pick-by-alias\":253}],103:[function(_dereq_,module,exports){\nmodule.exports=[\r\n\t\"inherit\",\r\n\t\"initial\",\r\n\t\"unset\"\r\n]\r\n\n},{}],104:[function(_dereq_,module,exports){\nmodule.exports=[\r\n\t\"caption\",\r\n\t\"icon\",\r\n\t\"menu\",\r\n\t\"message-box\",\r\n\t\"small-caption\",\r\n\t\"status-bar\"\r\n]\r\n\n},{}],105:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar isValue = _dereq_(\"type/value/is\")\n , ensureValue = _dereq_(\"type/value/ensure\")\n , ensurePlainFunction = _dereq_(\"type/plain-function/ensure\")\n , copy = _dereq_(\"es5-ext/object/copy\")\n , normalizeOptions = _dereq_(\"es5-ext/object/normalize-options\")\n , map = _dereq_(\"es5-ext/object/map\");\n\nvar bind = Function.prototype.bind\n , defineProperty = Object.defineProperty\n , hasOwnProperty = Object.prototype.hasOwnProperty\n , define;\n\ndefine = function (name, desc, options) {\n\tvar value = ensureValue(desc) && ensurePlainFunction(desc.value), dgs;\n\tdgs = copy(desc);\n\tdelete dgs.writable;\n\tdelete dgs.value;\n\tdgs.get = function () {\n\t\tif (!options.overwriteDefinition && hasOwnProperty.call(this, name)) return value;\n\t\tdesc.value = bind.call(value, options.resolveContext ? options.resolveContext(this) : this);\n\t\tdefineProperty(this, name, desc);\n\t\treturn this[name];\n\t};\n\treturn dgs;\n};\n\nmodule.exports = function (props/*, options*/) {\n\tvar options = normalizeOptions(arguments[1]);\n\tif (isValue(options.resolveContext)) ensurePlainFunction(options.resolveContext);\n\treturn map(props, function (desc, name) { return define(name, desc, options); });\n};\n\n},{\"es5-ext/object/copy\":147,\"es5-ext/object/map\":155,\"es5-ext/object/normalize-options\":156,\"type/plain-function/ensure\":321,\"type/value/ensure\":325,\"type/value/is\":326}],106:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar isValue = _dereq_(\"type/value/is\")\n , isPlainFunction = _dereq_(\"type/plain-function/is\")\n , assign = _dereq_(\"es5-ext/object/assign\")\n , normalizeOpts = _dereq_(\"es5-ext/object/normalize-options\")\n , contains = _dereq_(\"es5-ext/string/#/contains\");\n\nvar d = (module.exports = function (dscr, value/*, options*/) {\n\tvar c, e, w, options, desc;\n\tif (arguments.length < 2 || typeof dscr !== \"string\") {\n\t\toptions = value;\n\t\tvalue = dscr;\n\t\tdscr = null;\n\t} else {\n\t\toptions = arguments[2];\n\t}\n\tif (isValue(dscr)) {\n\t\tc = contains.call(dscr, \"c\");\n\t\te = contains.call(dscr, \"e\");\n\t\tw = contains.call(dscr, \"w\");\n\t} else {\n\t\tc = w = true;\n\t\te = false;\n\t}\n\n\tdesc = { value: value, configurable: c, enumerable: e, writable: w };\n\treturn !options ? desc : assign(normalizeOpts(options), desc);\n});\n\nd.gs = function (dscr, get, set/*, options*/) {\n\tvar c, e, options, desc;\n\tif (typeof dscr !== \"string\") {\n\t\toptions = set;\n\t\tset = get;\n\t\tget = dscr;\n\t\tdscr = null;\n\t} else {\n\t\toptions = arguments[3];\n\t}\n\tif (!isValue(get)) {\n\t\tget = undefined;\n\t} else if (!isPlainFunction(get)) {\n\t\toptions = get;\n\t\tget = set = undefined;\n\t} else if (!isValue(set)) {\n\t\tset = undefined;\n\t} else if (!isPlainFunction(set)) {\n\t\toptions = set;\n\t\tset = undefined;\n\t}\n\tif (isValue(dscr)) {\n\t\tc = contains.call(dscr, \"c\");\n\t\te = contains.call(dscr, \"e\");\n\t} else {\n\t\tc = true;\n\t\te = false;\n\t}\n\n\tdesc = { get: get, set: set, configurable: c, enumerable: e };\n\treturn !options ? desc : assign(normalizeOpts(options), desc);\n};\n\n},{\"es5-ext/object/assign\":144,\"es5-ext/object/normalize-options\":156,\"es5-ext/string/#/contains\":163,\"type/plain-function/is\":322,\"type/value/is\":326}],107:[function(_dereq_,module,exports){\n// https://d3js.org/d3-array/ v1.2.4 Copyright 2018 Mike Bostock\n(function (global, factory) {\ntypeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :\ntypeof define === 'function' && define.amd ? define(['exports'], factory) :\n(factory((global.d3 = global.d3 || {})));\n}(this, (function (exports) { 'use strict';\n\nfunction ascending(a, b) {\n return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;\n}\n\nfunction bisector(compare) {\n if (compare.length === 1) compare = ascendingComparator(compare);\n return {\n left: function(a, x, lo, hi) {\n if (lo == null) lo = 0;\n if (hi == null) hi = a.length;\n while (lo < hi) {\n var mid = lo + hi >>> 1;\n if (compare(a[mid], x) < 0) lo = mid + 1;\n else hi = mid;\n }\n return lo;\n },\n right: function(a, x, lo, hi) {\n if (lo == null) lo = 0;\n if (hi == null) hi = a.length;\n while (lo < hi) {\n var mid = lo + hi >>> 1;\n if (compare(a[mid], x) > 0) hi = mid;\n else lo = mid + 1;\n }\n return lo;\n }\n };\n}\n\nfunction ascendingComparator(f) {\n return function(d, x) {\n return ascending(f(d), x);\n };\n}\n\nvar ascendingBisect = bisector(ascending);\nvar bisectRight = ascendingBisect.right;\nvar bisectLeft = ascendingBisect.left;\n\nfunction pairs(array, f) {\n if (f == null) f = pair;\n var i = 0, n = array.length - 1, p = array[0], pairs = new Array(n < 0 ? 0 : n);\n while (i < n) pairs[i] = f(p, p = array[++i]);\n return pairs;\n}\n\nfunction pair(a, b) {\n return [a, b];\n}\n\nfunction cross(values0, values1, reduce) {\n var n0 = values0.length,\n n1 = values1.length,\n values = new Array(n0 * n1),\n i0,\n i1,\n i,\n value0;\n\n if (reduce == null) reduce = pair;\n\n for (i0 = i = 0; i0 < n0; ++i0) {\n for (value0 = values0[i0], i1 = 0; i1 < n1; ++i1, ++i) {\n values[i] = reduce(value0, values1[i1]);\n }\n }\n\n return values;\n}\n\nfunction descending(a, b) {\n return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;\n}\n\nfunction number(x) {\n return x === null ? NaN : +x;\n}\n\nfunction variance(values, valueof) {\n var n = values.length,\n m = 0,\n i = -1,\n mean = 0,\n value,\n delta,\n sum = 0;\n\n if (valueof == null) {\n while (++i < n) {\n if (!isNaN(value = number(values[i]))) {\n delta = value - mean;\n mean += delta / ++m;\n sum += delta * (value - mean);\n }\n }\n }\n\n else {\n while (++i < n) {\n if (!isNaN(value = number(valueof(values[i], i, values)))) {\n delta = value - mean;\n mean += delta / ++m;\n sum += delta * (value - mean);\n }\n }\n }\n\n if (m > 1) return sum / (m - 1);\n}\n\nfunction deviation(array, f) {\n var v = variance(array, f);\n return v ? Math.sqrt(v) : v;\n}\n\nfunction extent(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n min,\n max;\n\n if (valueof == null) {\n while (++i < n) { // Find the first comparable value.\n if ((value = values[i]) != null && value >= value) {\n min = max = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = values[i]) != null) {\n if (min > value) min = value;\n if (max < value) max = value;\n }\n }\n }\n }\n }\n\n else {\n while (++i < n) { // Find the first comparable value.\n if ((value = valueof(values[i], i, values)) != null && value >= value) {\n min = max = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = valueof(values[i], i, values)) != null) {\n if (min > value) min = value;\n if (max < value) max = value;\n }\n }\n }\n }\n }\n\n return [min, max];\n}\n\nvar array = Array.prototype;\n\nvar slice = array.slice;\nvar map = array.map;\n\nfunction constant(x) {\n return function() {\n return x;\n };\n}\n\nfunction identity(x) {\n return x;\n}\n\nfunction range(start, stop, step) {\n start = +start, stop = +stop, step = (n = arguments.length) < 2 ? (stop = start, start = 0, 1) : n < 3 ? 1 : +step;\n\n var i = -1,\n n = Math.max(0, Math.ceil((stop - start) / step)) | 0,\n range = new Array(n);\n\n while (++i < n) {\n range[i] = start + i * step;\n }\n\n return range;\n}\n\nvar e10 = Math.sqrt(50),\n e5 = Math.sqrt(10),\n e2 = Math.sqrt(2);\n\nfunction ticks(start, stop, count) {\n var reverse,\n i = -1,\n n,\n ticks,\n step;\n\n stop = +stop, start = +start, count = +count;\n if (start === stop && count > 0) return [start];\n if (reverse = stop < start) n = start, start = stop, stop = n;\n if ((step = tickIncrement(start, stop, count)) === 0 || !isFinite(step)) return [];\n\n if (step > 0) {\n start = Math.ceil(start / step);\n stop = Math.floor(stop / step);\n ticks = new Array(n = Math.ceil(stop - start + 1));\n while (++i < n) ticks[i] = (start + i) * step;\n } else {\n start = Math.floor(start * step);\n stop = Math.ceil(stop * step);\n ticks = new Array(n = Math.ceil(start - stop + 1));\n while (++i < n) ticks[i] = (start - i) / step;\n }\n\n if (reverse) ticks.reverse();\n\n return ticks;\n}\n\nfunction tickIncrement(start, stop, count) {\n var step = (stop - start) / Math.max(0, count),\n power = Math.floor(Math.log(step) / Math.LN10),\n error = step / Math.pow(10, power);\n return power >= 0\n ? (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1) * Math.pow(10, power)\n : -Math.pow(10, -power) / (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1);\n}\n\nfunction tickStep(start, stop, count) {\n var step0 = Math.abs(stop - start) / Math.max(0, count),\n step1 = Math.pow(10, Math.floor(Math.log(step0) / Math.LN10)),\n error = step0 / step1;\n if (error >= e10) step1 *= 10;\n else if (error >= e5) step1 *= 5;\n else if (error >= e2) step1 *= 2;\n return stop < start ? -step1 : step1;\n}\n\nfunction sturges(values) {\n return Math.ceil(Math.log(values.length) / Math.LN2) + 1;\n}\n\nfunction histogram() {\n var value = identity,\n domain = extent,\n threshold = sturges;\n\n function histogram(data) {\n var i,\n n = data.length,\n x,\n values = new Array(n);\n\n for (i = 0; i < n; ++i) {\n values[i] = value(data[i], i, data);\n }\n\n var xz = domain(values),\n x0 = xz[0],\n x1 = xz[1],\n tz = threshold(values, x0, x1);\n\n // Convert number of thresholds into uniform thresholds.\n if (!Array.isArray(tz)) {\n tz = tickStep(x0, x1, tz);\n tz = range(Math.ceil(x0 / tz) * tz, x1, tz); // exclusive\n }\n\n // Remove any thresholds outside the domain.\n var m = tz.length;\n while (tz[0] <= x0) tz.shift(), --m;\n while (tz[m - 1] > x1) tz.pop(), --m;\n\n var bins = new Array(m + 1),\n bin;\n\n // Initialize bins.\n for (i = 0; i <= m; ++i) {\n bin = bins[i] = [];\n bin.x0 = i > 0 ? tz[i - 1] : x0;\n bin.x1 = i < m ? tz[i] : x1;\n }\n\n // Assign data to bins by value, ignoring any outside the domain.\n for (i = 0; i < n; ++i) {\n x = values[i];\n if (x0 <= x && x <= x1) {\n bins[bisectRight(tz, x, 0, m)].push(data[i]);\n }\n }\n\n return bins;\n }\n\n histogram.value = function(_) {\n return arguments.length ? (value = typeof _ === \"function\" ? _ : constant(_), histogram) : value;\n };\n\n histogram.domain = function(_) {\n return arguments.length ? (domain = typeof _ === \"function\" ? _ : constant([_[0], _[1]]), histogram) : domain;\n };\n\n histogram.thresholds = function(_) {\n return arguments.length ? (threshold = typeof _ === \"function\" ? _ : Array.isArray(_) ? constant(slice.call(_)) : constant(_), histogram) : threshold;\n };\n\n return histogram;\n}\n\nfunction quantile(values, p, valueof) {\n if (valueof == null) valueof = number;\n if (!(n = values.length)) return;\n if ((p = +p) <= 0 || n < 2) return +valueof(values[0], 0, values);\n if (p >= 1) return +valueof(values[n - 1], n - 1, values);\n var n,\n i = (n - 1) * p,\n i0 = Math.floor(i),\n value0 = +valueof(values[i0], i0, values),\n value1 = +valueof(values[i0 + 1], i0 + 1, values);\n return value0 + (value1 - value0) * (i - i0);\n}\n\nfunction freedmanDiaconis(values, min, max) {\n values = map.call(values, number).sort(ascending);\n return Math.ceil((max - min) / (2 * (quantile(values, 0.75) - quantile(values, 0.25)) * Math.pow(values.length, -1 / 3)));\n}\n\nfunction scott(values, min, max) {\n return Math.ceil((max - min) / (3.5 * deviation(values) * Math.pow(values.length, -1 / 3)));\n}\n\nfunction max(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n max;\n\n if (valueof == null) {\n while (++i < n) { // Find the first comparable value.\n if ((value = values[i]) != null && value >= value) {\n max = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = values[i]) != null && value > max) {\n max = value;\n }\n }\n }\n }\n }\n\n else {\n while (++i < n) { // Find the first comparable value.\n if ((value = valueof(values[i], i, values)) != null && value >= value) {\n max = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = valueof(values[i], i, values)) != null && value > max) {\n max = value;\n }\n }\n }\n }\n }\n\n return max;\n}\n\nfunction mean(values, valueof) {\n var n = values.length,\n m = n,\n i = -1,\n value,\n sum = 0;\n\n if (valueof == null) {\n while (++i < n) {\n if (!isNaN(value = number(values[i]))) sum += value;\n else --m;\n }\n }\n\n else {\n while (++i < n) {\n if (!isNaN(value = number(valueof(values[i], i, values)))) sum += value;\n else --m;\n }\n }\n\n if (m) return sum / m;\n}\n\nfunction median(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n numbers = [];\n\n if (valueof == null) {\n while (++i < n) {\n if (!isNaN(value = number(values[i]))) {\n numbers.push(value);\n }\n }\n }\n\n else {\n while (++i < n) {\n if (!isNaN(value = number(valueof(values[i], i, values)))) {\n numbers.push(value);\n }\n }\n }\n\n return quantile(numbers.sort(ascending), 0.5);\n}\n\nfunction merge(arrays) {\n var n = arrays.length,\n m,\n i = -1,\n j = 0,\n merged,\n array;\n\n while (++i < n) j += arrays[i].length;\n merged = new Array(j);\n\n while (--n >= 0) {\n array = arrays[n];\n m = array.length;\n while (--m >= 0) {\n merged[--j] = array[m];\n }\n }\n\n return merged;\n}\n\nfunction min(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n min;\n\n if (valueof == null) {\n while (++i < n) { // Find the first comparable value.\n if ((value = values[i]) != null && value >= value) {\n min = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = values[i]) != null && min > value) {\n min = value;\n }\n }\n }\n }\n }\n\n else {\n while (++i < n) { // Find the first comparable value.\n if ((value = valueof(values[i], i, values)) != null && value >= value) {\n min = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = valueof(values[i], i, values)) != null && min > value) {\n min = value;\n }\n }\n }\n }\n }\n\n return min;\n}\n\nfunction permute(array, indexes) {\n var i = indexes.length, permutes = new Array(i);\n while (i--) permutes[i] = array[indexes[i]];\n return permutes;\n}\n\nfunction scan(values, compare) {\n if (!(n = values.length)) return;\n var n,\n i = 0,\n j = 0,\n xi,\n xj = values[j];\n\n if (compare == null) compare = ascending;\n\n while (++i < n) {\n if (compare(xi = values[i], xj) < 0 || compare(xj, xj) !== 0) {\n xj = xi, j = i;\n }\n }\n\n if (compare(xj, xj) === 0) return j;\n}\n\nfunction shuffle(array, i0, i1) {\n var m = (i1 == null ? array.length : i1) - (i0 = i0 == null ? 0 : +i0),\n t,\n i;\n\n while (m) {\n i = Math.random() * m-- | 0;\n t = array[m + i0];\n array[m + i0] = array[i + i0];\n array[i + i0] = t;\n }\n\n return array;\n}\n\nfunction sum(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n sum = 0;\n\n if (valueof == null) {\n while (++i < n) {\n if (value = +values[i]) sum += value; // Note: zero and null are equivalent.\n }\n }\n\n else {\n while (++i < n) {\n if (value = +valueof(values[i], i, values)) sum += value;\n }\n }\n\n return sum;\n}\n\nfunction transpose(matrix) {\n if (!(n = matrix.length)) return [];\n for (var i = -1, m = min(matrix, length), transpose = new Array(m); ++i < m;) {\n for (var j = -1, n, row = transpose[i] = new Array(n); ++j < n;) {\n row[j] = matrix[j][i];\n }\n }\n return transpose;\n}\n\nfunction length(d) {\n return d.length;\n}\n\nfunction zip() {\n return transpose(arguments);\n}\n\nexports.bisect = bisectRight;\nexports.bisectRight = bisectRight;\nexports.bisectLeft = bisectLeft;\nexports.ascending = ascending;\nexports.bisector = bisector;\nexports.cross = cross;\nexports.descending = descending;\nexports.deviation = deviation;\nexports.extent = extent;\nexports.histogram = histogram;\nexports.thresholdFreedmanDiaconis = freedmanDiaconis;\nexports.thresholdScott = scott;\nexports.thresholdSturges = sturges;\nexports.max = max;\nexports.mean = mean;\nexports.median = median;\nexports.merge = merge;\nexports.min = min;\nexports.pairs = pairs;\nexports.permute = permute;\nexports.quantile = quantile;\nexports.range = range;\nexports.scan = scan;\nexports.shuffle = shuffle;\nexports.sum = sum;\nexports.ticks = ticks;\nexports.tickIncrement = tickIncrement;\nexports.tickStep = tickStep;\nexports.transpose = transpose;\nexports.variance = variance;\nexports.zip = zip;\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n})));\n\n},{}],108:[function(_dereq_,module,exports){\n// https://d3js.org/d3-collection/ v1.0.7 Copyright 2018 Mike Bostock\n(function (global, factory) {\ntypeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :\ntypeof define === 'function' && define.amd ? define(['exports'], factory) :\n(factory((global.d3 = global.d3 || {})));\n}(this, (function (exports) { 'use strict';\n\nvar prefix = \"$\";\n\nfunction Map() {}\n\nMap.prototype = map.prototype = {\n constructor: Map,\n has: function(key) {\n return (prefix + key) in this;\n },\n get: function(key) {\n return this[prefix + key];\n },\n set: function(key, value) {\n this[prefix + key] = value;\n return this;\n },\n remove: function(key) {\n var property = prefix + key;\n return property in this && delete this[property];\n },\n clear: function() {\n for (var property in this) if (property[0] === prefix) delete this[property];\n },\n keys: function() {\n var keys = [];\n for (var property in this) if (property[0] === prefix) keys.push(property.slice(1));\n return keys;\n },\n values: function() {\n var values = [];\n for (var property in this) if (property[0] === prefix) values.push(this[property]);\n return values;\n },\n entries: function() {\n var entries = [];\n for (var property in this) if (property[0] === prefix) entries.push({key: property.slice(1), value: this[property]});\n return entries;\n },\n size: function() {\n var size = 0;\n for (var property in this) if (property[0] === prefix) ++size;\n return size;\n },\n empty: function() {\n for (var property in this) if (property[0] === prefix) return false;\n return true;\n },\n each: function(f) {\n for (var property in this) if (property[0] === prefix) f(this[property], property.slice(1), this);\n }\n};\n\nfunction map(object, f) {\n var map = new Map;\n\n // Copy constructor.\n if (object instanceof Map) object.each(function(value, key) { map.set(key, value); });\n\n // Index array by numeric index or specified key function.\n else if (Array.isArray(object)) {\n var i = -1,\n n = object.length,\n o;\n\n if (f == null) while (++i < n) map.set(i, object[i]);\n else while (++i < n) map.set(f(o = object[i], i, object), o);\n }\n\n // Convert object to map.\n else if (object) for (var key in object) map.set(key, object[key]);\n\n return map;\n}\n\nfunction nest() {\n var keys = [],\n sortKeys = [],\n sortValues,\n rollup,\n nest;\n\n function apply(array, depth, createResult, setResult) {\n if (depth >= keys.length) {\n if (sortValues != null) array.sort(sortValues);\n return rollup != null ? rollup(array) : array;\n }\n\n var i = -1,\n n = array.length,\n key = keys[depth++],\n keyValue,\n value,\n valuesByKey = map(),\n values,\n result = createResult();\n\n while (++i < n) {\n if (values = valuesByKey.get(keyValue = key(value = array[i]) + \"\")) {\n values.push(value);\n } else {\n valuesByKey.set(keyValue, [value]);\n }\n }\n\n valuesByKey.each(function(values, key) {\n setResult(result, key, apply(values, depth, createResult, setResult));\n });\n\n return result;\n }\n\n function entries(map$$1, depth) {\n if (++depth > keys.length) return map$$1;\n var array, sortKey = sortKeys[depth - 1];\n if (rollup != null && depth >= keys.length) array = map$$1.entries();\n else array = [], map$$1.each(function(v, k) { array.push({key: k, values: entries(v, depth)}); });\n return sortKey != null ? array.sort(function(a, b) { return sortKey(a.key, b.key); }) : array;\n }\n\n return nest = {\n object: function(array) { return apply(array, 0, createObject, setObject); },\n map: function(array) { return apply(array, 0, createMap, setMap); },\n entries: function(array) { return entries(apply(array, 0, createMap, setMap), 0); },\n key: function(d) { keys.push(d); return nest; },\n sortKeys: function(order) { sortKeys[keys.length - 1] = order; return nest; },\n sortValues: function(order) { sortValues = order; return nest; },\n rollup: function(f) { rollup = f; return nest; }\n };\n}\n\nfunction createObject() {\n return {};\n}\n\nfunction setObject(object, key, value) {\n object[key] = value;\n}\n\nfunction createMap() {\n return map();\n}\n\nfunction setMap(map$$1, key, value) {\n map$$1.set(key, value);\n}\n\nfunction Set() {}\n\nvar proto = map.prototype;\n\nSet.prototype = set.prototype = {\n constructor: Set,\n has: proto.has,\n add: function(value) {\n value += \"\";\n this[prefix + value] = value;\n return this;\n },\n remove: proto.remove,\n clear: proto.clear,\n values: proto.keys,\n size: proto.size,\n empty: proto.empty,\n each: proto.each\n};\n\nfunction set(object, f) {\n var set = new Set;\n\n // Copy constructor.\n if (object instanceof Set) object.each(function(value) { set.add(value); });\n\n // Otherwise, assume it’s an array.\n else if (object) {\n var i = -1, n = object.length;\n if (f == null) while (++i < n) set.add(object[i]);\n else while (++i < n) set.add(f(object[i], i, object));\n }\n\n return set;\n}\n\nfunction keys(map) {\n var keys = [];\n for (var key in map) keys.push(key);\n return keys;\n}\n\nfunction values(map) {\n var values = [];\n for (var key in map) values.push(map[key]);\n return values;\n}\n\nfunction entries(map) {\n var entries = [];\n for (var key in map) entries.push({key: key, value: map[key]});\n return entries;\n}\n\nexports.nest = nest;\nexports.set = set;\nexports.map = map;\nexports.keys = keys;\nexports.values = values;\nexports.entries = entries;\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n})));\n\n},{}],109:[function(_dereq_,module,exports){\n// https://d3js.org/d3-color/ v1.4.1 Copyright 2020 Mike Bostock\n(function (global, factory) {\ntypeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :\ntypeof define === 'function' && define.amd ? define(['exports'], factory) :\n(global = global || self, factory(global.d3 = global.d3 || {}));\n}(this, function (exports) { 'use strict';\n\nfunction define(constructor, factory, prototype) {\n constructor.prototype = factory.prototype = prototype;\n prototype.constructor = constructor;\n}\n\nfunction extend(parent, definition) {\n var prototype = Object.create(parent.prototype);\n for (var key in definition) prototype[key] = definition[key];\n return prototype;\n}\n\nfunction Color() {}\n\nvar darker = 0.7;\nvar brighter = 1 / darker;\n\nvar reI = \"\\\\s*([+-]?\\\\d+)\\\\s*\",\n reN = \"\\\\s*([+-]?\\\\d*\\\\.?\\\\d+(?:[eE][+-]?\\\\d+)?)\\\\s*\",\n reP = \"\\\\s*([+-]?\\\\d*\\\\.?\\\\d+(?:[eE][+-]?\\\\d+)?)%\\\\s*\",\n reHex = /^#([0-9a-f]{3,8})$/,\n reRgbInteger = new RegExp(\"^rgb\\\\(\" + [reI, reI, reI] + \"\\\\)$\"),\n reRgbPercent = new RegExp(\"^rgb\\\\(\" + [reP, reP, reP] + \"\\\\)$\"),\n reRgbaInteger = new RegExp(\"^rgba\\\\(\" + [reI, reI, reI, reN] + \"\\\\)$\"),\n reRgbaPercent = new RegExp(\"^rgba\\\\(\" + [reP, reP, reP, reN] + \"\\\\)$\"),\n reHslPercent = new RegExp(\"^hsl\\\\(\" + [reN, reP, reP] + \"\\\\)$\"),\n reHslaPercent = new RegExp(\"^hsla\\\\(\" + [reN, reP, reP, reN] + \"\\\\)$\");\n\nvar named = {\n aliceblue: 0xf0f8ff,\n antiquewhite: 0xfaebd7,\n aqua: 0x00ffff,\n aquamarine: 0x7fffd4,\n azure: 0xf0ffff,\n beige: 0xf5f5dc,\n bisque: 0xffe4c4,\n black: 0x000000,\n blanchedalmond: 0xffebcd,\n blue: 0x0000ff,\n blueviolet: 0x8a2be2,\n brown: 0xa52a2a,\n burlywood: 0xdeb887,\n cadetblue: 0x5f9ea0,\n chartreuse: 0x7fff00,\n chocolate: 0xd2691e,\n coral: 0xff7f50,\n cornflowerblue: 0x6495ed,\n cornsilk: 0xfff8dc,\n crimson: 0xdc143c,\n cyan: 0x00ffff,\n darkblue: 0x00008b,\n darkcyan: 0x008b8b,\n darkgoldenrod: 0xb8860b,\n darkgray: 0xa9a9a9,\n darkgreen: 0x006400,\n darkgrey: 0xa9a9a9,\n darkkhaki: 0xbdb76b,\n darkmagenta: 0x8b008b,\n darkolivegreen: 0x556b2f,\n darkorange: 0xff8c00,\n darkorchid: 0x9932cc,\n darkred: 0x8b0000,\n darksalmon: 0xe9967a,\n darkseagreen: 0x8fbc8f,\n darkslateblue: 0x483d8b,\n darkslategray: 0x2f4f4f,\n darkslategrey: 0x2f4f4f,\n darkturquoise: 0x00ced1,\n darkviolet: 0x9400d3,\n deeppink: 0xff1493,\n deepskyblue: 0x00bfff,\n dimgray: 0x696969,\n dimgrey: 0x696969,\n dodgerblue: 0x1e90ff,\n firebrick: 0xb22222,\n floralwhite: 0xfffaf0,\n forestgreen: 0x228b22,\n fuchsia: 0xff00ff,\n gainsboro: 0xdcdcdc,\n ghostwhite: 0xf8f8ff,\n gold: 0xffd700,\n goldenrod: 0xdaa520,\n gray: 0x808080,\n green: 0x008000,\n greenyellow: 0xadff2f,\n grey: 0x808080,\n honeydew: 0xf0fff0,\n hotpink: 0xff69b4,\n indianred: 0xcd5c5c,\n indigo: 0x4b0082,\n ivory: 0xfffff0,\n khaki: 0xf0e68c,\n lavender: 0xe6e6fa,\n lavenderblush: 0xfff0f5,\n lawngreen: 0x7cfc00,\n lemonchiffon: 0xfffacd,\n lightblue: 0xadd8e6,\n lightcoral: 0xf08080,\n lightcyan: 0xe0ffff,\n lightgoldenrodyellow: 0xfafad2,\n lightgray: 0xd3d3d3,\n lightgreen: 0x90ee90,\n lightgrey: 0xd3d3d3,\n lightpink: 0xffb6c1,\n lightsalmon: 0xffa07a,\n lightseagreen: 0x20b2aa,\n lightskyblue: 0x87cefa,\n lightslategray: 0x778899,\n lightslategrey: 0x778899,\n lightsteelblue: 0xb0c4de,\n lightyellow: 0xffffe0,\n lime: 0x00ff00,\n limegreen: 0x32cd32,\n linen: 0xfaf0e6,\n magenta: 0xff00ff,\n maroon: 0x800000,\n mediumaquamarine: 0x66cdaa,\n mediumblue: 0x0000cd,\n mediumorchid: 0xba55d3,\n mediumpurple: 0x9370db,\n mediumseagreen: 0x3cb371,\n mediumslateblue: 0x7b68ee,\n mediumspringgreen: 0x00fa9a,\n mediumturquoise: 0x48d1cc,\n mediumvioletred: 0xc71585,\n midnightblue: 0x191970,\n mintcream: 0xf5fffa,\n mistyrose: 0xffe4e1,\n moccasin: 0xffe4b5,\n navajowhite: 0xffdead,\n navy: 0x000080,\n oldlace: 0xfdf5e6,\n olive: 0x808000,\n olivedrab: 0x6b8e23,\n orange: 0xffa500,\n orangered: 0xff4500,\n orchid: 0xda70d6,\n palegoldenrod: 0xeee8aa,\n palegreen: 0x98fb98,\n paleturquoise: 0xafeeee,\n palevioletred: 0xdb7093,\n papayawhip: 0xffefd5,\n peachpuff: 0xffdab9,\n peru: 0xcd853f,\n pink: 0xffc0cb,\n plum: 0xdda0dd,\n powderblue: 0xb0e0e6,\n purple: 0x800080,\n rebeccapurple: 0x663399,\n red: 0xff0000,\n rosybrown: 0xbc8f8f,\n royalblue: 0x4169e1,\n saddlebrown: 0x8b4513,\n salmon: 0xfa8072,\n sandybrown: 0xf4a460,\n seagreen: 0x2e8b57,\n seashell: 0xfff5ee,\n sienna: 0xa0522d,\n silver: 0xc0c0c0,\n skyblue: 0x87ceeb,\n slateblue: 0x6a5acd,\n slategray: 0x708090,\n slategrey: 0x708090,\n snow: 0xfffafa,\n springgreen: 0x00ff7f,\n steelblue: 0x4682b4,\n tan: 0xd2b48c,\n teal: 0x008080,\n thistle: 0xd8bfd8,\n tomato: 0xff6347,\n turquoise: 0x40e0d0,\n violet: 0xee82ee,\n wheat: 0xf5deb3,\n white: 0xffffff,\n whitesmoke: 0xf5f5f5,\n yellow: 0xffff00,\n yellowgreen: 0x9acd32\n};\n\ndefine(Color, color, {\n copy: function(channels) {\n return Object.assign(new this.constructor, this, channels);\n },\n displayable: function() {\n return this.rgb().displayable();\n },\n hex: color_formatHex, // Deprecated! Use color.formatHex.\n formatHex: color_formatHex,\n formatHsl: color_formatHsl,\n formatRgb: color_formatRgb,\n toString: color_formatRgb\n});\n\nfunction color_formatHex() {\n return this.rgb().formatHex();\n}\n\nfunction color_formatHsl() {\n return hslConvert(this).formatHsl();\n}\n\nfunction color_formatRgb() {\n return this.rgb().formatRgb();\n}\n\nfunction color(format) {\n var m, l;\n format = (format + \"\").trim().toLowerCase();\n return (m = reHex.exec(format)) ? (l = m[1].length, m = parseInt(m[1], 16), l === 6 ? rgbn(m) // #ff0000\n : l === 3 ? new Rgb((m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), ((m & 0xf) << 4) | (m & 0xf), 1) // #f00\n : l === 8 ? rgba(m >> 24 & 0xff, m >> 16 & 0xff, m >> 8 & 0xff, (m & 0xff) / 0xff) // #ff000000\n : l === 4 ? rgba((m >> 12 & 0xf) | (m >> 8 & 0xf0), (m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), (((m & 0xf) << 4) | (m & 0xf)) / 0xff) // #f000\n : null) // invalid hex\n : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) // rgb(255, 0, 0)\n : (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) // rgb(100%, 0%, 0%)\n : (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) // rgba(255, 0, 0, 1)\n : (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) // rgb(100%, 0%, 0%, 1)\n : (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) // hsl(120, 50%, 50%)\n : (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) // hsla(120, 50%, 50%, 1)\n : named.hasOwnProperty(format) ? rgbn(named[format]) // eslint-disable-line no-prototype-builtins\n : format === \"transparent\" ? new Rgb(NaN, NaN, NaN, 0)\n : null;\n}\n\nfunction rgbn(n) {\n return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1);\n}\n\nfunction rgba(r, g, b, a) {\n if (a <= 0) r = g = b = NaN;\n return new Rgb(r, g, b, a);\n}\n\nfunction rgbConvert(o) {\n if (!(o instanceof Color)) o = color(o);\n if (!o) return new Rgb;\n o = o.rgb();\n return new Rgb(o.r, o.g, o.b, o.opacity);\n}\n\nfunction rgb(r, g, b, opacity) {\n return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity);\n}\n\nfunction Rgb(r, g, b, opacity) {\n this.r = +r;\n this.g = +g;\n this.b = +b;\n this.opacity = +opacity;\n}\n\ndefine(Rgb, rgb, extend(Color, {\n brighter: function(k) {\n k = k == null ? brighter : Math.pow(brighter, k);\n return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);\n },\n darker: function(k) {\n k = k == null ? darker : Math.pow(darker, k);\n return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);\n },\n rgb: function() {\n return this;\n },\n displayable: function() {\n return (-0.5 <= this.r && this.r < 255.5)\n && (-0.5 <= this.g && this.g < 255.5)\n && (-0.5 <= this.b && this.b < 255.5)\n && (0 <= this.opacity && this.opacity <= 1);\n },\n hex: rgb_formatHex, // Deprecated! Use color.formatHex.\n formatHex: rgb_formatHex,\n formatRgb: rgb_formatRgb,\n toString: rgb_formatRgb\n}));\n\nfunction rgb_formatHex() {\n return \"#\" + hex(this.r) + hex(this.g) + hex(this.b);\n}\n\nfunction rgb_formatRgb() {\n var a = this.opacity; a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));\n return (a === 1 ? \"rgb(\" : \"rgba(\")\n + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + \", \"\n + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + \", \"\n + Math.max(0, Math.min(255, Math.round(this.b) || 0))\n + (a === 1 ? \")\" : \", \" + a + \")\");\n}\n\nfunction hex(value) {\n value = Math.max(0, Math.min(255, Math.round(value) || 0));\n return (value < 16 ? \"0\" : \"\") + value.toString(16);\n}\n\nfunction hsla(h, s, l, a) {\n if (a <= 0) h = s = l = NaN;\n else if (l <= 0 || l >= 1) h = s = NaN;\n else if (s <= 0) h = NaN;\n return new Hsl(h, s, l, a);\n}\n\nfunction hslConvert(o) {\n if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);\n if (!(o instanceof Color)) o = color(o);\n if (!o) return new Hsl;\n if (o instanceof Hsl) return o;\n o = o.rgb();\n var r = o.r / 255,\n g = o.g / 255,\n b = o.b / 255,\n min = Math.min(r, g, b),\n max = Math.max(r, g, b),\n h = NaN,\n s = max - min,\n l = (max + min) / 2;\n if (s) {\n if (r === max) h = (g - b) / s + (g < b) * 6;\n else if (g === max) h = (b - r) / s + 2;\n else h = (r - g) / s + 4;\n s /= l < 0.5 ? max + min : 2 - max - min;\n h *= 60;\n } else {\n s = l > 0 && l < 1 ? 0 : h;\n }\n return new Hsl(h, s, l, o.opacity);\n}\n\nfunction hsl(h, s, l, opacity) {\n return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity);\n}\n\nfunction Hsl(h, s, l, opacity) {\n this.h = +h;\n this.s = +s;\n this.l = +l;\n this.opacity = +opacity;\n}\n\ndefine(Hsl, hsl, extend(Color, {\n brighter: function(k) {\n k = k == null ? brighter : Math.pow(brighter, k);\n return new Hsl(this.h, this.s, this.l * k, this.opacity);\n },\n darker: function(k) {\n k = k == null ? darker : Math.pow(darker, k);\n return new Hsl(this.h, this.s, this.l * k, this.opacity);\n },\n rgb: function() {\n var h = this.h % 360 + (this.h < 0) * 360,\n s = isNaN(h) || isNaN(this.s) ? 0 : this.s,\n l = this.l,\n m2 = l + (l < 0.5 ? l : 1 - l) * s,\n m1 = 2 * l - m2;\n return new Rgb(\n hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2),\n hsl2rgb(h, m1, m2),\n hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2),\n this.opacity\n );\n },\n displayable: function() {\n return (0 <= this.s && this.s <= 1 || isNaN(this.s))\n && (0 <= this.l && this.l <= 1)\n && (0 <= this.opacity && this.opacity <= 1);\n },\n formatHsl: function() {\n var a = this.opacity; a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));\n return (a === 1 ? \"hsl(\" : \"hsla(\")\n + (this.h || 0) + \", \"\n + (this.s || 0) * 100 + \"%, \"\n + (this.l || 0) * 100 + \"%\"\n + (a === 1 ? \")\" : \", \" + a + \")\");\n }\n}));\n\n/* From FvD 13.37, CSS Color Module Level 3 */\nfunction hsl2rgb(h, m1, m2) {\n return (h < 60 ? m1 + (m2 - m1) * h / 60\n : h < 180 ? m2\n : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60\n : m1) * 255;\n}\n\nvar deg2rad = Math.PI / 180;\nvar rad2deg = 180 / Math.PI;\n\n// https://observablehq.com/@mbostock/lab-and-rgb\nvar K = 18,\n Xn = 0.96422,\n Yn = 1,\n Zn = 0.82521,\n t0 = 4 / 29,\n t1 = 6 / 29,\n t2 = 3 * t1 * t1,\n t3 = t1 * t1 * t1;\n\nfunction labConvert(o) {\n if (o instanceof Lab) return new Lab(o.l, o.a, o.b, o.opacity);\n if (o instanceof Hcl) return hcl2lab(o);\n if (!(o instanceof Rgb)) o = rgbConvert(o);\n var r = rgb2lrgb(o.r),\n g = rgb2lrgb(o.g),\n b = rgb2lrgb(o.b),\n y = xyz2lab((0.2225045 * r + 0.7168786 * g + 0.0606169 * b) / Yn), x, z;\n if (r === g && g === b) x = z = y; else {\n x = xyz2lab((0.4360747 * r + 0.3850649 * g + 0.1430804 * b) / Xn);\n z = xyz2lab((0.0139322 * r + 0.0971045 * g + 0.7141733 * b) / Zn);\n }\n return new Lab(116 * y - 16, 500 * (x - y), 200 * (y - z), o.opacity);\n}\n\nfunction gray(l, opacity) {\n return new Lab(l, 0, 0, opacity == null ? 1 : opacity);\n}\n\nfunction lab(l, a, b, opacity) {\n return arguments.length === 1 ? labConvert(l) : new Lab(l, a, b, opacity == null ? 1 : opacity);\n}\n\nfunction Lab(l, a, b, opacity) {\n this.l = +l;\n this.a = +a;\n this.b = +b;\n this.opacity = +opacity;\n}\n\ndefine(Lab, lab, extend(Color, {\n brighter: function(k) {\n return new Lab(this.l + K * (k == null ? 1 : k), this.a, this.b, this.opacity);\n },\n darker: function(k) {\n return new Lab(this.l - K * (k == null ? 1 : k), this.a, this.b, this.opacity);\n },\n rgb: function() {\n var y = (this.l + 16) / 116,\n x = isNaN(this.a) ? y : y + this.a / 500,\n z = isNaN(this.b) ? y : y - this.b / 200;\n x = Xn * lab2xyz(x);\n y = Yn * lab2xyz(y);\n z = Zn * lab2xyz(z);\n return new Rgb(\n lrgb2rgb( 3.1338561 * x - 1.6168667 * y - 0.4906146 * z),\n lrgb2rgb(-0.9787684 * x + 1.9161415 * y + 0.0334540 * z),\n lrgb2rgb( 0.0719453 * x - 0.2289914 * y + 1.4052427 * z),\n this.opacity\n );\n }\n}));\n\nfunction xyz2lab(t) {\n return t > t3 ? Math.pow(t, 1 / 3) : t / t2 + t0;\n}\n\nfunction lab2xyz(t) {\n return t > t1 ? t * t * t : t2 * (t - t0);\n}\n\nfunction lrgb2rgb(x) {\n return 255 * (x <= 0.0031308 ? 12.92 * x : 1.055 * Math.pow(x, 1 / 2.4) - 0.055);\n}\n\nfunction rgb2lrgb(x) {\n return (x /= 255) <= 0.04045 ? x / 12.92 : Math.pow((x + 0.055) / 1.055, 2.4);\n}\n\nfunction hclConvert(o) {\n if (o instanceof Hcl) return new Hcl(o.h, o.c, o.l, o.opacity);\n if (!(o instanceof Lab)) o = labConvert(o);\n if (o.a === 0 && o.b === 0) return new Hcl(NaN, 0 < o.l && o.l < 100 ? 0 : NaN, o.l, o.opacity);\n var h = Math.atan2(o.b, o.a) * rad2deg;\n return new Hcl(h < 0 ? h + 360 : h, Math.sqrt(o.a * o.a + o.b * o.b), o.l, o.opacity);\n}\n\nfunction lch(l, c, h, opacity) {\n return arguments.length === 1 ? hclConvert(l) : new Hcl(h, c, l, opacity == null ? 1 : opacity);\n}\n\nfunction hcl(h, c, l, opacity) {\n return arguments.length === 1 ? hclConvert(h) : new Hcl(h, c, l, opacity == null ? 1 : opacity);\n}\n\nfunction Hcl(h, c, l, opacity) {\n this.h = +h;\n this.c = +c;\n this.l = +l;\n this.opacity = +opacity;\n}\n\nfunction hcl2lab(o) {\n if (isNaN(o.h)) return new Lab(o.l, 0, 0, o.opacity);\n var h = o.h * deg2rad;\n return new Lab(o.l, Math.cos(h) * o.c, Math.sin(h) * o.c, o.opacity);\n}\n\ndefine(Hcl, hcl, extend(Color, {\n brighter: function(k) {\n return new Hcl(this.h, this.c, this.l + K * (k == null ? 1 : k), this.opacity);\n },\n darker: function(k) {\n return new Hcl(this.h, this.c, this.l - K * (k == null ? 1 : k), this.opacity);\n },\n rgb: function() {\n return hcl2lab(this).rgb();\n }\n}));\n\nvar A = -0.14861,\n B = +1.78277,\n C = -0.29227,\n D = -0.90649,\n E = +1.97294,\n ED = E * D,\n EB = E * B,\n BC_DA = B * C - D * A;\n\nfunction cubehelixConvert(o) {\n if (o instanceof Cubehelix) return new Cubehelix(o.h, o.s, o.l, o.opacity);\n if (!(o instanceof Rgb)) o = rgbConvert(o);\n var r = o.r / 255,\n g = o.g / 255,\n b = o.b / 255,\n l = (BC_DA * b + ED * r - EB * g) / (BC_DA + ED - EB),\n bl = b - l,\n k = (E * (g - l) - C * bl) / D,\n s = Math.sqrt(k * k + bl * bl) / (E * l * (1 - l)), // NaN if l=0 or l=1\n h = s ? Math.atan2(k, bl) * rad2deg - 120 : NaN;\n return new Cubehelix(h < 0 ? h + 360 : h, s, l, o.opacity);\n}\n\nfunction cubehelix(h, s, l, opacity) {\n return arguments.length === 1 ? cubehelixConvert(h) : new Cubehelix(h, s, l, opacity == null ? 1 : opacity);\n}\n\nfunction Cubehelix(h, s, l, opacity) {\n this.h = +h;\n this.s = +s;\n this.l = +l;\n this.opacity = +opacity;\n}\n\ndefine(Cubehelix, cubehelix, extend(Color, {\n brighter: function(k) {\n k = k == null ? brighter : Math.pow(brighter, k);\n return new Cubehelix(this.h, this.s, this.l * k, this.opacity);\n },\n darker: function(k) {\n k = k == null ? darker : Math.pow(darker, k);\n return new Cubehelix(this.h, this.s, this.l * k, this.opacity);\n },\n rgb: function() {\n var h = isNaN(this.h) ? 0 : (this.h + 120) * deg2rad,\n l = +this.l,\n a = isNaN(this.s) ? 0 : this.s * l * (1 - l),\n cosh = Math.cos(h),\n sinh = Math.sin(h);\n return new Rgb(\n 255 * (l + a * (A * cosh + B * sinh)),\n 255 * (l + a * (C * cosh + D * sinh)),\n 255 * (l + a * (E * cosh)),\n this.opacity\n );\n }\n}));\n\nexports.color = color;\nexports.cubehelix = cubehelix;\nexports.gray = gray;\nexports.hcl = hcl;\nexports.hsl = hsl;\nexports.lab = lab;\nexports.lch = lch;\nexports.rgb = rgb;\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n}));\n\n},{}],110:[function(_dereq_,module,exports){\n// https://d3js.org/d3-dispatch/ v1.0.6 Copyright 2019 Mike Bostock\n(function (global, factory) {\ntypeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :\ntypeof define === 'function' && define.amd ? define(['exports'], factory) :\n(global = global || self, factory(global.d3 = global.d3 || {}));\n}(this, function (exports) { 'use strict';\n\nvar noop = {value: function() {}};\n\nfunction dispatch() {\n for (var i = 0, n = arguments.length, _ = {}, t; i < n; ++i) {\n if (!(t = arguments[i] + \"\") || (t in _) || /[\\s.]/.test(t)) throw new Error(\"illegal type: \" + t);\n _[t] = [];\n }\n return new Dispatch(_);\n}\n\nfunction Dispatch(_) {\n this._ = _;\n}\n\nfunction parseTypenames(typenames, types) {\n return typenames.trim().split(/^|\\s+/).map(function(t) {\n var name = \"\", i = t.indexOf(\".\");\n if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i);\n if (t && !types.hasOwnProperty(t)) throw new Error(\"unknown type: \" + t);\n return {type: t, name: name};\n });\n}\n\nDispatch.prototype = dispatch.prototype = {\n constructor: Dispatch,\n on: function(typename, callback) {\n var _ = this._,\n T = parseTypenames(typename + \"\", _),\n t,\n i = -1,\n n = T.length;\n\n // If no callback was specified, return the callback of the given type and name.\n if (arguments.length < 2) {\n while (++i < n) if ((t = (typename = T[i]).type) && (t = get(_[t], typename.name))) return t;\n return;\n }\n\n // If a type was specified, set the callback for the given type and name.\n // Otherwise, if a null callback was specified, remove callbacks of the given name.\n if (callback != null && typeof callback !== \"function\") throw new Error(\"invalid callback: \" + callback);\n while (++i < n) {\n if (t = (typename = T[i]).type) _[t] = set(_[t], typename.name, callback);\n else if (callback == null) for (t in _) _[t] = set(_[t], typename.name, null);\n }\n\n return this;\n },\n copy: function() {\n var copy = {}, _ = this._;\n for (var t in _) copy[t] = _[t].slice();\n return new Dispatch(copy);\n },\n call: function(type, that) {\n if ((n = arguments.length - 2) > 0) for (var args = new Array(n), i = 0, n, t; i < n; ++i) args[i] = arguments[i + 2];\n if (!this._.hasOwnProperty(type)) throw new Error(\"unknown type: \" + type);\n for (t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args);\n },\n apply: function(type, that, args) {\n if (!this._.hasOwnProperty(type)) throw new Error(\"unknown type: \" + type);\n for (var t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args);\n }\n};\n\nfunction get(type, name) {\n for (var i = 0, n = type.length, c; i < n; ++i) {\n if ((c = type[i]).name === name) {\n return c.value;\n }\n }\n}\n\nfunction set(type, name, callback) {\n for (var i = 0, n = type.length; i < n; ++i) {\n if (type[i].name === name) {\n type[i] = noop, type = type.slice(0, i).concat(type.slice(i + 1));\n break;\n }\n }\n if (callback != null) type.push({name: name, value: callback});\n return type;\n}\n\nexports.dispatch = dispatch;\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n}));\n\n},{}],111:[function(_dereq_,module,exports){\n// https://d3js.org/d3-force/ v1.2.1 Copyright 2019 Mike Bostock\n(function (global, factory) {\ntypeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, _dereq_('d3-quadtree'), _dereq_('d3-collection'), _dereq_('d3-dispatch'), _dereq_('d3-timer')) :\ntypeof define === 'function' && define.amd ? define(['exports', 'd3-quadtree', 'd3-collection', 'd3-dispatch', 'd3-timer'], factory) :\n(factory((global.d3 = global.d3 || {}),global.d3,global.d3,global.d3,global.d3));\n}(this, (function (exports,d3Quadtree,d3Collection,d3Dispatch,d3Timer) { 'use strict';\n\nfunction center(x, y) {\n var nodes;\n\n if (x == null) x = 0;\n if (y == null) y = 0;\n\n function force() {\n var i,\n n = nodes.length,\n node,\n sx = 0,\n sy = 0;\n\n for (i = 0; i < n; ++i) {\n node = nodes[i], sx += node.x, sy += node.y;\n }\n\n for (sx = sx / n - x, sy = sy / n - y, i = 0; i < n; ++i) {\n node = nodes[i], node.x -= sx, node.y -= sy;\n }\n }\n\n force.initialize = function(_) {\n nodes = _;\n };\n\n force.x = function(_) {\n return arguments.length ? (x = +_, force) : x;\n };\n\n force.y = function(_) {\n return arguments.length ? (y = +_, force) : y;\n };\n\n return force;\n}\n\nfunction constant(x) {\n return function() {\n return x;\n };\n}\n\nfunction jiggle() {\n return (Math.random() - 0.5) * 1e-6;\n}\n\nfunction x(d) {\n return d.x + d.vx;\n}\n\nfunction y(d) {\n return d.y + d.vy;\n}\n\nfunction collide(radius) {\n var nodes,\n radii,\n strength = 1,\n iterations = 1;\n\n if (typeof radius !== \"function\") radius = constant(radius == null ? 1 : +radius);\n\n function force() {\n var i, n = nodes.length,\n tree,\n node,\n xi,\n yi,\n ri,\n ri2;\n\n for (var k = 0; k < iterations; ++k) {\n tree = d3Quadtree.quadtree(nodes, x, y).visitAfter(prepare);\n for (i = 0; i < n; ++i) {\n node = nodes[i];\n ri = radii[node.index], ri2 = ri * ri;\n xi = node.x + node.vx;\n yi = node.y + node.vy;\n tree.visit(apply);\n }\n }\n\n function apply(quad, x0, y0, x1, y1) {\n var data = quad.data, rj = quad.r, r = ri + rj;\n if (data) {\n if (data.index > node.index) {\n var x = xi - data.x - data.vx,\n y = yi - data.y - data.vy,\n l = x * x + y * y;\n if (l < r * r) {\n if (x === 0) x = jiggle(), l += x * x;\n if (y === 0) y = jiggle(), l += y * y;\n l = (r - (l = Math.sqrt(l))) / l * strength;\n node.vx += (x *= l) * (r = (rj *= rj) / (ri2 + rj));\n node.vy += (y *= l) * r;\n data.vx -= x * (r = 1 - r);\n data.vy -= y * r;\n }\n }\n return;\n }\n return x0 > xi + r || x1 < xi - r || y0 > yi + r || y1 < yi - r;\n }\n }\n\n function prepare(quad) {\n if (quad.data) return quad.r = radii[quad.data.index];\n for (var i = quad.r = 0; i < 4; ++i) {\n if (quad[i] && quad[i].r > quad.r) {\n quad.r = quad[i].r;\n }\n }\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length, node;\n radii = new Array(n);\n for (i = 0; i < n; ++i) node = nodes[i], radii[node.index] = +radius(node, i, nodes);\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.iterations = function(_) {\n return arguments.length ? (iterations = +_, force) : iterations;\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = +_, force) : strength;\n };\n\n force.radius = function(_) {\n return arguments.length ? (radius = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : radius;\n };\n\n return force;\n}\n\nfunction index(d) {\n return d.index;\n}\n\nfunction find(nodeById, nodeId) {\n var node = nodeById.get(nodeId);\n if (!node) throw new Error(\"missing: \" + nodeId);\n return node;\n}\n\nfunction link(links) {\n var id = index,\n strength = defaultStrength,\n strengths,\n distance = constant(30),\n distances,\n nodes,\n count,\n bias,\n iterations = 1;\n\n if (links == null) links = [];\n\n function defaultStrength(link) {\n return 1 / Math.min(count[link.source.index], count[link.target.index]);\n }\n\n function force(alpha) {\n for (var k = 0, n = links.length; k < iterations; ++k) {\n for (var i = 0, link, source, target, x, y, l, b; i < n; ++i) {\n link = links[i], source = link.source, target = link.target;\n x = target.x + target.vx - source.x - source.vx || jiggle();\n y = target.y + target.vy - source.y - source.vy || jiggle();\n l = Math.sqrt(x * x + y * y);\n l = (l - distances[i]) / l * alpha * strengths[i];\n x *= l, y *= l;\n target.vx -= x * (b = bias[i]);\n target.vy -= y * b;\n source.vx += x * (b = 1 - b);\n source.vy += y * b;\n }\n }\n }\n\n function initialize() {\n if (!nodes) return;\n\n var i,\n n = nodes.length,\n m = links.length,\n nodeById = d3Collection.map(nodes, id),\n link;\n\n for (i = 0, count = new Array(n); i < m; ++i) {\n link = links[i], link.index = i;\n if (typeof link.source !== \"object\") link.source = find(nodeById, link.source);\n if (typeof link.target !== \"object\") link.target = find(nodeById, link.target);\n count[link.source.index] = (count[link.source.index] || 0) + 1;\n count[link.target.index] = (count[link.target.index] || 0) + 1;\n }\n\n for (i = 0, bias = new Array(m); i < m; ++i) {\n link = links[i], bias[i] = count[link.source.index] / (count[link.source.index] + count[link.target.index]);\n }\n\n strengths = new Array(m), initializeStrength();\n distances = new Array(m), initializeDistance();\n }\n\n function initializeStrength() {\n if (!nodes) return;\n\n for (var i = 0, n = links.length; i < n; ++i) {\n strengths[i] = +strength(links[i], i, links);\n }\n }\n\n function initializeDistance() {\n if (!nodes) return;\n\n for (var i = 0, n = links.length; i < n; ++i) {\n distances[i] = +distance(links[i], i, links);\n }\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.links = function(_) {\n return arguments.length ? (links = _, initialize(), force) : links;\n };\n\n force.id = function(_) {\n return arguments.length ? (id = _, force) : id;\n };\n\n force.iterations = function(_) {\n return arguments.length ? (iterations = +_, force) : iterations;\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initializeStrength(), force) : strength;\n };\n\n force.distance = function(_) {\n return arguments.length ? (distance = typeof _ === \"function\" ? _ : constant(+_), initializeDistance(), force) : distance;\n };\n\n return force;\n}\n\nfunction x$1(d) {\n return d.x;\n}\n\nfunction y$1(d) {\n return d.y;\n}\n\nvar initialRadius = 10,\n initialAngle = Math.PI * (3 - Math.sqrt(5));\n\nfunction simulation(nodes) {\n var simulation,\n alpha = 1,\n alphaMin = 0.001,\n alphaDecay = 1 - Math.pow(alphaMin, 1 / 300),\n alphaTarget = 0,\n velocityDecay = 0.6,\n forces = d3Collection.map(),\n stepper = d3Timer.timer(step),\n event = d3Dispatch.dispatch(\"tick\", \"end\");\n\n if (nodes == null) nodes = [];\n\n function step() {\n tick();\n event.call(\"tick\", simulation);\n if (alpha < alphaMin) {\n stepper.stop();\n event.call(\"end\", simulation);\n }\n }\n\n function tick(iterations) {\n var i, n = nodes.length, node;\n\n if (iterations === undefined) iterations = 1;\n\n for (var k = 0; k < iterations; ++k) {\n alpha += (alphaTarget - alpha) * alphaDecay;\n\n forces.each(function (force) {\n force(alpha);\n });\n\n for (i = 0; i < n; ++i) {\n node = nodes[i];\n if (node.fx == null) node.x += node.vx *= velocityDecay;\n else node.x = node.fx, node.vx = 0;\n if (node.fy == null) node.y += node.vy *= velocityDecay;\n else node.y = node.fy, node.vy = 0;\n }\n }\n\n return simulation;\n }\n\n function initializeNodes() {\n for (var i = 0, n = nodes.length, node; i < n; ++i) {\n node = nodes[i], node.index = i;\n if (node.fx != null) node.x = node.fx;\n if (node.fy != null) node.y = node.fy;\n if (isNaN(node.x) || isNaN(node.y)) {\n var radius = initialRadius * Math.sqrt(i), angle = i * initialAngle;\n node.x = radius * Math.cos(angle);\n node.y = radius * Math.sin(angle);\n }\n if (isNaN(node.vx) || isNaN(node.vy)) {\n node.vx = node.vy = 0;\n }\n }\n }\n\n function initializeForce(force) {\n if (force.initialize) force.initialize(nodes);\n return force;\n }\n\n initializeNodes();\n\n return simulation = {\n tick: tick,\n\n restart: function() {\n return stepper.restart(step), simulation;\n },\n\n stop: function() {\n return stepper.stop(), simulation;\n },\n\n nodes: function(_) {\n return arguments.length ? (nodes = _, initializeNodes(), forces.each(initializeForce), simulation) : nodes;\n },\n\n alpha: function(_) {\n return arguments.length ? (alpha = +_, simulation) : alpha;\n },\n\n alphaMin: function(_) {\n return arguments.length ? (alphaMin = +_, simulation) : alphaMin;\n },\n\n alphaDecay: function(_) {\n return arguments.length ? (alphaDecay = +_, simulation) : +alphaDecay;\n },\n\n alphaTarget: function(_) {\n return arguments.length ? (alphaTarget = +_, simulation) : alphaTarget;\n },\n\n velocityDecay: function(_) {\n return arguments.length ? (velocityDecay = 1 - _, simulation) : 1 - velocityDecay;\n },\n\n force: function(name, _) {\n return arguments.length > 1 ? ((_ == null ? forces.remove(name) : forces.set(name, initializeForce(_))), simulation) : forces.get(name);\n },\n\n find: function(x, y, radius) {\n var i = 0,\n n = nodes.length,\n dx,\n dy,\n d2,\n node,\n closest;\n\n if (radius == null) radius = Infinity;\n else radius *= radius;\n\n for (i = 0; i < n; ++i) {\n node = nodes[i];\n dx = x - node.x;\n dy = y - node.y;\n d2 = dx * dx + dy * dy;\n if (d2 < radius) closest = node, radius = d2;\n }\n\n return closest;\n },\n\n on: function(name, _) {\n return arguments.length > 1 ? (event.on(name, _), simulation) : event.on(name);\n }\n };\n}\n\nfunction manyBody() {\n var nodes,\n node,\n alpha,\n strength = constant(-30),\n strengths,\n distanceMin2 = 1,\n distanceMax2 = Infinity,\n theta2 = 0.81;\n\n function force(_) {\n var i, n = nodes.length, tree = d3Quadtree.quadtree(nodes, x$1, y$1).visitAfter(accumulate);\n for (alpha = _, i = 0; i < n; ++i) node = nodes[i], tree.visit(apply);\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length, node;\n strengths = new Array(n);\n for (i = 0; i < n; ++i) node = nodes[i], strengths[node.index] = +strength(node, i, nodes);\n }\n\n function accumulate(quad) {\n var strength = 0, q, c, weight = 0, x, y, i;\n\n // For internal nodes, accumulate forces from child quadrants.\n if (quad.length) {\n for (x = y = i = 0; i < 4; ++i) {\n if ((q = quad[i]) && (c = Math.abs(q.value))) {\n strength += q.value, weight += c, x += c * q.x, y += c * q.y;\n }\n }\n quad.x = x / weight;\n quad.y = y / weight;\n }\n\n // For leaf nodes, accumulate forces from coincident quadrants.\n else {\n q = quad;\n q.x = q.data.x;\n q.y = q.data.y;\n do strength += strengths[q.data.index];\n while (q = q.next);\n }\n\n quad.value = strength;\n }\n\n function apply(quad, x1, _, x2) {\n if (!quad.value) return true;\n\n var x = quad.x - node.x,\n y = quad.y - node.y,\n w = x2 - x1,\n l = x * x + y * y;\n\n // Apply the Barnes-Hut approximation if possible.\n // Limit forces for very close nodes; randomize direction if coincident.\n if (w * w / theta2 < l) {\n if (l < distanceMax2) {\n if (x === 0) x = jiggle(), l += x * x;\n if (y === 0) y = jiggle(), l += y * y;\n if (l < distanceMin2) l = Math.sqrt(distanceMin2 * l);\n node.vx += x * quad.value * alpha / l;\n node.vy += y * quad.value * alpha / l;\n }\n return true;\n }\n\n // Otherwise, process points directly.\n else if (quad.length || l >= distanceMax2) return;\n\n // Limit forces for very close nodes; randomize direction if coincident.\n if (quad.data !== node || quad.next) {\n if (x === 0) x = jiggle(), l += x * x;\n if (y === 0) y = jiggle(), l += y * y;\n if (l < distanceMin2) l = Math.sqrt(distanceMin2 * l);\n }\n\n do if (quad.data !== node) {\n w = strengths[quad.data.index] * alpha / l;\n node.vx += x * w;\n node.vy += y * w;\n } while (quad = quad.next);\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : strength;\n };\n\n force.distanceMin = function(_) {\n return arguments.length ? (distanceMin2 = _ * _, force) : Math.sqrt(distanceMin2);\n };\n\n force.distanceMax = function(_) {\n return arguments.length ? (distanceMax2 = _ * _, force) : Math.sqrt(distanceMax2);\n };\n\n force.theta = function(_) {\n return arguments.length ? (theta2 = _ * _, force) : Math.sqrt(theta2);\n };\n\n return force;\n}\n\nfunction radial(radius, x, y) {\n var nodes,\n strength = constant(0.1),\n strengths,\n radiuses;\n\n if (typeof radius !== \"function\") radius = constant(+radius);\n if (x == null) x = 0;\n if (y == null) y = 0;\n\n function force(alpha) {\n for (var i = 0, n = nodes.length; i < n; ++i) {\n var node = nodes[i],\n dx = node.x - x || 1e-6,\n dy = node.y - y || 1e-6,\n r = Math.sqrt(dx * dx + dy * dy),\n k = (radiuses[i] - r) * strengths[i] * alpha / r;\n node.vx += dx * k;\n node.vy += dy * k;\n }\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length;\n strengths = new Array(n);\n radiuses = new Array(n);\n for (i = 0; i < n; ++i) {\n radiuses[i] = +radius(nodes[i], i, nodes);\n strengths[i] = isNaN(radiuses[i]) ? 0 : +strength(nodes[i], i, nodes);\n }\n }\n\n force.initialize = function(_) {\n nodes = _, initialize();\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : strength;\n };\n\n force.radius = function(_) {\n return arguments.length ? (radius = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : radius;\n };\n\n force.x = function(_) {\n return arguments.length ? (x = +_, force) : x;\n };\n\n force.y = function(_) {\n return arguments.length ? (y = +_, force) : y;\n };\n\n return force;\n}\n\nfunction x$2(x) {\n var strength = constant(0.1),\n nodes,\n strengths,\n xz;\n\n if (typeof x !== \"function\") x = constant(x == null ? 0 : +x);\n\n function force(alpha) {\n for (var i = 0, n = nodes.length, node; i < n; ++i) {\n node = nodes[i], node.vx += (xz[i] - node.x) * strengths[i] * alpha;\n }\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length;\n strengths = new Array(n);\n xz = new Array(n);\n for (i = 0; i < n; ++i) {\n strengths[i] = isNaN(xz[i] = +x(nodes[i], i, nodes)) ? 0 : +strength(nodes[i], i, nodes);\n }\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : strength;\n };\n\n force.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : x;\n };\n\n return force;\n}\n\nfunction y$2(y) {\n var strength = constant(0.1),\n nodes,\n strengths,\n yz;\n\n if (typeof y !== \"function\") y = constant(y == null ? 0 : +y);\n\n function force(alpha) {\n for (var i = 0, n = nodes.length, node; i < n; ++i) {\n node = nodes[i], node.vy += (yz[i] - node.y) * strengths[i] * alpha;\n }\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length;\n strengths = new Array(n);\n yz = new Array(n);\n for (i = 0; i < n; ++i) {\n strengths[i] = isNaN(yz[i] = +y(nodes[i], i, nodes)) ? 0 : +strength(nodes[i], i, nodes);\n }\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : strength;\n };\n\n force.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : y;\n };\n\n return force;\n}\n\nexports.forceCenter = center;\nexports.forceCollide = collide;\nexports.forceLink = link;\nexports.forceManyBody = manyBody;\nexports.forceRadial = radial;\nexports.forceSimulation = simulation;\nexports.forceX = x$2;\nexports.forceY = y$2;\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n})));\n\n},{\"d3-collection\":108,\"d3-dispatch\":110,\"d3-quadtree\":118,\"d3-timer\":123}],112:[function(_dereq_,module,exports){\n// https://d3js.org/d3-format/ v1.4.5 Copyright 2020 Mike Bostock\n(function (global, factory) {\ntypeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :\ntypeof define === 'function' && define.amd ? define(['exports'], factory) :\n(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.d3 = global.d3 || {}));\n}(this, (function (exports) { 'use strict';\n\nfunction formatDecimal(x) {\n return Math.abs(x = Math.round(x)) >= 1e21\n ? x.toLocaleString(\"en\").replace(/,/g, \"\")\n : x.toString(10);\n}\n\n// Computes the decimal coefficient and exponent of the specified number x with\n// significant digits p, where x is positive and p is in [1, 21] or undefined.\n// For example, formatDecimalParts(1.23) returns [\"123\", 0].\nfunction formatDecimalParts(x, p) {\n if ((i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf(\"e\")) < 0) return null; // NaN, ±Infinity\n var i, coefficient = x.slice(0, i);\n\n // The string returned by toExponential either has the form \\d\\.\\d+e[-+]\\d+\n // (e.g., 1.2e+3) or the form \\de[-+]\\d+ (e.g., 1e+3).\n return [\n coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient,\n +x.slice(i + 1)\n ];\n}\n\nfunction exponent(x) {\n return x = formatDecimalParts(Math.abs(x)), x ? x[1] : NaN;\n}\n\nfunction formatGroup(grouping, thousands) {\n return function(value, width) {\n var i = value.length,\n t = [],\n j = 0,\n g = grouping[0],\n length = 0;\n\n while (i > 0 && g > 0) {\n if (length + g + 1 > width) g = Math.max(1, width - length);\n t.push(value.substring(i -= g, i + g));\n if ((length += g + 1) > width) break;\n g = grouping[j = (j + 1) % grouping.length];\n }\n\n return t.reverse().join(thousands);\n };\n}\n\nfunction formatNumerals(numerals) {\n return function(value) {\n return value.replace(/[0-9]/g, function(i) {\n return numerals[+i];\n });\n };\n}\n\n// [[fill]align][sign][symbol][0][width][,][.precision][~][type]\nvar re = /^(?:(.)?([<>=^]))?([+\\-( ])?([$#])?(0)?(\\d+)?(,)?(\\.\\d+)?(~)?([a-z%])?$/i;\n\nfunction formatSpecifier(specifier) {\n if (!(match = re.exec(specifier))) throw new Error(\"invalid format: \" + specifier);\n var match;\n return new FormatSpecifier({\n fill: match[1],\n align: match[2],\n sign: match[3],\n symbol: match[4],\n zero: match[5],\n width: match[6],\n comma: match[7],\n precision: match[8] && match[8].slice(1),\n trim: match[9],\n type: match[10]\n });\n}\n\nformatSpecifier.prototype = FormatSpecifier.prototype; // instanceof\n\nfunction FormatSpecifier(specifier) {\n this.fill = specifier.fill === undefined ? \" \" : specifier.fill + \"\";\n this.align = specifier.align === undefined ? \">\" : specifier.align + \"\";\n this.sign = specifier.sign === undefined ? \"-\" : specifier.sign + \"\";\n this.symbol = specifier.symbol === undefined ? \"\" : specifier.symbol + \"\";\n this.zero = !!specifier.zero;\n this.width = specifier.width === undefined ? undefined : +specifier.width;\n this.comma = !!specifier.comma;\n this.precision = specifier.precision === undefined ? undefined : +specifier.precision;\n this.trim = !!specifier.trim;\n this.type = specifier.type === undefined ? \"\" : specifier.type + \"\";\n}\n\nFormatSpecifier.prototype.toString = function() {\n return this.fill\n + this.align\n + this.sign\n + this.symbol\n + (this.zero ? \"0\" : \"\")\n + (this.width === undefined ? \"\" : Math.max(1, this.width | 0))\n + (this.comma ? \",\" : \"\")\n + (this.precision === undefined ? \"\" : \".\" + Math.max(0, this.precision | 0))\n + (this.trim ? \"~\" : \"\")\n + this.type;\n};\n\n// Trims insignificant zeros, e.g., replaces 1.2000k with 1.2k.\nfunction formatTrim(s) {\n out: for (var n = s.length, i = 1, i0 = -1, i1; i < n; ++i) {\n switch (s[i]) {\n case \".\": i0 = i1 = i; break;\n case \"0\": if (i0 === 0) i0 = i; i1 = i; break;\n default: if (!+s[i]) break out; if (i0 > 0) i0 = 0; break;\n }\n }\n return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s;\n}\n\nvar prefixExponent;\n\nfunction formatPrefixAuto(x, p) {\n var d = formatDecimalParts(x, p);\n if (!d) return x + \"\";\n var coefficient = d[0],\n exponent = d[1],\n i = exponent - (prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent / 3))) * 3) + 1,\n n = coefficient.length;\n return i === n ? coefficient\n : i > n ? coefficient + new Array(i - n + 1).join(\"0\")\n : i > 0 ? coefficient.slice(0, i) + \".\" + coefficient.slice(i)\n : \"0.\" + new Array(1 - i).join(\"0\") + formatDecimalParts(x, Math.max(0, p + i - 1))[0]; // less than 1y!\n}\n\nfunction formatRounded(x, p) {\n var d = formatDecimalParts(x, p);\n if (!d) return x + \"\";\n var coefficient = d[0],\n exponent = d[1];\n return exponent < 0 ? \"0.\" + new Array(-exponent).join(\"0\") + coefficient\n : coefficient.length > exponent + 1 ? coefficient.slice(0, exponent + 1) + \".\" + coefficient.slice(exponent + 1)\n : coefficient + new Array(exponent - coefficient.length + 2).join(\"0\");\n}\n\nvar formatTypes = {\n \"%\": function(x, p) { return (x * 100).toFixed(p); },\n \"b\": function(x) { return Math.round(x).toString(2); },\n \"c\": function(x) { return x + \"\"; },\n \"d\": formatDecimal,\n \"e\": function(x, p) { return x.toExponential(p); },\n \"f\": function(x, p) { return x.toFixed(p); },\n \"g\": function(x, p) { return x.toPrecision(p); },\n \"o\": function(x) { return Math.round(x).toString(8); },\n \"p\": function(x, p) { return formatRounded(x * 100, p); },\n \"r\": formatRounded,\n \"s\": formatPrefixAuto,\n \"X\": function(x) { return Math.round(x).toString(16).toUpperCase(); },\n \"x\": function(x) { return Math.round(x).toString(16); }\n};\n\nfunction identity(x) {\n return x;\n}\n\nvar map = Array.prototype.map,\n prefixes = [\"y\",\"z\",\"a\",\"f\",\"p\",\"n\",\"µ\",\"m\",\"\",\"k\",\"M\",\"G\",\"T\",\"P\",\"E\",\"Z\",\"Y\"];\n\nfunction formatLocale(locale) {\n var group = locale.grouping === undefined || locale.thousands === undefined ? identity : formatGroup(map.call(locale.grouping, Number), locale.thousands + \"\"),\n currencyPrefix = locale.currency === undefined ? \"\" : locale.currency[0] + \"\",\n currencySuffix = locale.currency === undefined ? \"\" : locale.currency[1] + \"\",\n decimal = locale.decimal === undefined ? \".\" : locale.decimal + \"\",\n numerals = locale.numerals === undefined ? identity : formatNumerals(map.call(locale.numerals, String)),\n percent = locale.percent === undefined ? \"%\" : locale.percent + \"\",\n minus = locale.minus === undefined ? \"-\" : locale.minus + \"\",\n nan = locale.nan === undefined ? \"NaN\" : locale.nan + \"\";\n\n function newFormat(specifier) {\n specifier = formatSpecifier(specifier);\n\n var fill = specifier.fill,\n align = specifier.align,\n sign = specifier.sign,\n symbol = specifier.symbol,\n zero = specifier.zero,\n width = specifier.width,\n comma = specifier.comma,\n precision = specifier.precision,\n trim = specifier.trim,\n type = specifier.type;\n\n // The \"n\" type is an alias for \",g\".\n if (type === \"n\") comma = true, type = \"g\";\n\n // The \"\" type, and any invalid type, is an alias for \".12~g\".\n else if (!formatTypes[type]) precision === undefined && (precision = 12), trim = true, type = \"g\";\n\n // If zero fill is specified, padding goes after sign and before digits.\n if (zero || (fill === \"0\" && align === \"=\")) zero = true, fill = \"0\", align = \"=\";\n\n // Compute the prefix and suffix.\n // For SI-prefix, the suffix is lazily computed.\n var prefix = symbol === \"$\" ? currencyPrefix : symbol === \"#\" && /[boxX]/.test(type) ? \"0\" + type.toLowerCase() : \"\",\n suffix = symbol === \"$\" ? currencySuffix : /[%p]/.test(type) ? percent : \"\";\n\n // What format function should we use?\n // Is this an integer type?\n // Can this type generate exponential notation?\n var formatType = formatTypes[type],\n maybeSuffix = /[defgprs%]/.test(type);\n\n // Set the default precision if not specified,\n // or clamp the specified precision to the supported range.\n // For significant precision, it must be in [1, 21].\n // For fixed precision, it must be in [0, 20].\n precision = precision === undefined ? 6\n : /[gprs]/.test(type) ? Math.max(1, Math.min(21, precision))\n : Math.max(0, Math.min(20, precision));\n\n function format(value) {\n var valuePrefix = prefix,\n valueSuffix = suffix,\n i, n, c;\n\n if (type === \"c\") {\n valueSuffix = formatType(value) + valueSuffix;\n value = \"\";\n } else {\n value = +value;\n\n // Determine the sign. -0 is not less than 0, but 1 / -0 is!\n var valueNegative = value < 0 || 1 / value < 0;\n\n // Perform the initial formatting.\n value = isNaN(value) ? nan : formatType(Math.abs(value), precision);\n\n // Trim insignificant zeros.\n if (trim) value = formatTrim(value);\n\n // If a negative value rounds to zero after formatting, and no explicit positive sign is requested, hide the sign.\n if (valueNegative && +value === 0 && sign !== \"+\") valueNegative = false;\n\n // Compute the prefix and suffix.\n valuePrefix = (valueNegative ? (sign === \"(\" ? sign : minus) : sign === \"-\" || sign === \"(\" ? \"\" : sign) + valuePrefix;\n valueSuffix = (type === \"s\" ? prefixes[8 + prefixExponent / 3] : \"\") + valueSuffix + (valueNegative && sign === \"(\" ? \")\" : \"\");\n\n // Break the formatted value into the integer “value” part that can be\n // grouped, and fractional or exponential “suffix” part that is not.\n if (maybeSuffix) {\n i = -1, n = value.length;\n while (++i < n) {\n if (c = value.charCodeAt(i), 48 > c || c > 57) {\n valueSuffix = (c === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix;\n value = value.slice(0, i);\n break;\n }\n }\n }\n }\n\n // If the fill character is not \"0\", grouping is applied before padding.\n if (comma && !zero) value = group(value, Infinity);\n\n // Compute the padding.\n var length = valuePrefix.length + value.length + valueSuffix.length,\n padding = length < width ? new Array(width - length + 1).join(fill) : \"\";\n\n // If the fill character is \"0\", grouping is applied after padding.\n if (comma && zero) value = group(padding + value, padding.length ? width - valueSuffix.length : Infinity), padding = \"\";\n\n // Reconstruct the final output based on the desired alignment.\n switch (align) {\n case \"<\": value = valuePrefix + value + valueSuffix + padding; break;\n case \"=\": value = valuePrefix + padding + value + valueSuffix; break;\n case \"^\": value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length); break;\n default: value = padding + valuePrefix + value + valueSuffix; break;\n }\n\n return numerals(value);\n }\n\n format.toString = function() {\n return specifier + \"\";\n };\n\n return format;\n }\n\n function formatPrefix(specifier, value) {\n var f = newFormat((specifier = formatSpecifier(specifier), specifier.type = \"f\", specifier)),\n e = Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3,\n k = Math.pow(10, -e),\n prefix = prefixes[8 + e / 3];\n return function(value) {\n return f(k * value) + prefix;\n };\n }\n\n return {\n format: newFormat,\n formatPrefix: formatPrefix\n };\n}\n\nvar locale;\n\ndefaultLocale({\n decimal: \".\",\n thousands: \",\",\n grouping: [3],\n currency: [\"$\", \"\"],\n minus: \"-\"\n});\n\nfunction defaultLocale(definition) {\n locale = formatLocale(definition);\n exports.format = locale.format;\n exports.formatPrefix = locale.formatPrefix;\n return locale;\n}\n\nfunction precisionFixed(step) {\n return Math.max(0, -exponent(Math.abs(step)));\n}\n\nfunction precisionPrefix(step, value) {\n return Math.max(0, Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3 - exponent(Math.abs(step)));\n}\n\nfunction precisionRound(step, max) {\n step = Math.abs(step), max = Math.abs(max) - step;\n return Math.max(0, exponent(max) - exponent(step)) + 1;\n}\n\nexports.FormatSpecifier = FormatSpecifier;\nexports.formatDefaultLocale = defaultLocale;\nexports.formatLocale = formatLocale;\nexports.formatSpecifier = formatSpecifier;\nexports.precisionFixed = precisionFixed;\nexports.precisionPrefix = precisionPrefix;\nexports.precisionRound = precisionRound;\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n})));\n\n},{}],113:[function(_dereq_,module,exports){\n// https://d3js.org/d3-geo-projection/ v2.9.0 Copyright 2020 Mike Bostock\n(function (global, factory) {\ntypeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, _dereq_('d3-geo'), _dereq_('d3-array')) :\ntypeof define === 'function' && define.amd ? define(['exports', 'd3-geo', 'd3-array'], factory) :\n(factory((global.d3 = global.d3 || {}),global.d3,global.d3));\n}(this, (function (exports,d3Geo,d3Array) { 'use strict';\n\nvar abs = Math.abs;\nvar atan = Math.atan;\nvar atan2 = Math.atan2;\nvar cos = Math.cos;\nvar exp = Math.exp;\nvar floor = Math.floor;\nvar log = Math.log;\nvar max = Math.max;\nvar min = Math.min;\nvar pow = Math.pow;\nvar round = Math.round;\nvar sign = Math.sign || function(x) { return x > 0 ? 1 : x < 0 ? -1 : 0; };\nvar sin = Math.sin;\nvar tan = Math.tan;\n\nvar epsilon = 1e-6;\nvar epsilon2 = 1e-12;\nvar pi = Math.PI;\nvar halfPi = pi / 2;\nvar quarterPi = pi / 4;\nvar sqrt1_2 = Math.SQRT1_2;\nvar sqrt2 = sqrt(2);\nvar sqrtPi = sqrt(pi);\nvar tau = pi * 2;\nvar degrees = 180 / pi;\nvar radians = pi / 180;\n\nfunction sinci(x) {\n return x ? x / Math.sin(x) : 1;\n}\n\nfunction asin(x) {\n return x > 1 ? halfPi : x < -1 ? -halfPi : Math.asin(x);\n}\n\nfunction acos(x) {\n return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);\n}\n\nfunction sqrt(x) {\n return x > 0 ? Math.sqrt(x) : 0;\n}\n\nfunction tanh(x) {\n x = exp(2 * x);\n return (x - 1) / (x + 1);\n}\n\nfunction sinh(x) {\n return (exp(x) - exp(-x)) / 2;\n}\n\nfunction cosh(x) {\n return (exp(x) + exp(-x)) / 2;\n}\n\nfunction arsinh(x) {\n return log(x + sqrt(x * x + 1));\n}\n\nfunction arcosh(x) {\n return log(x + sqrt(x * x - 1));\n}\n\nfunction airyRaw(beta) {\n var tanBeta_2 = tan(beta / 2),\n b = 2 * log(cos(beta / 2)) / (tanBeta_2 * tanBeta_2);\n\n function forward(x, y) {\n var cosx = cos(x),\n cosy = cos(y),\n siny = sin(y),\n cosz = cosy * cosx,\n k = -((1 - cosz ? log((1 + cosz) / 2) / (1 - cosz) : -0.5) + b / (1 + cosz));\n return [k * cosy * sin(x), k * siny];\n }\n\n forward.invert = function(x, y) {\n var r = sqrt(x * x + y * y),\n z = -beta / 2,\n i = 50, delta;\n if (!r) return [0, 0];\n do {\n var z_2 = z / 2,\n cosz_2 = cos(z_2),\n sinz_2 = sin(z_2),\n tanz_2 = sinz_2 / cosz_2,\n lnsecz_2 = -log(abs(cosz_2));\n z -= delta = (2 / tanz_2 * lnsecz_2 - b * tanz_2 - r) / (-lnsecz_2 / (sinz_2 * sinz_2) + 1 - b / (2 * cosz_2 * cosz_2)) * (cosz_2 < 0 ? 0.7 : 1);\n } while (abs(delta) > epsilon && --i > 0);\n var sinz = sin(z);\n return [atan2(x * sinz, r * cos(z)), asin(y * sinz / r)];\n };\n\n return forward;\n}\n\nfunction airy() {\n var beta = halfPi,\n m = d3Geo.geoProjectionMutator(airyRaw),\n p = m(beta);\n\n p.radius = function(_) {\n return arguments.length ? m(beta = _ * radians) : beta * degrees;\n };\n\n return p\n .scale(179.976)\n .clipAngle(147);\n}\n\nfunction aitoffRaw(x, y) {\n var cosy = cos(y), sincia = sinci(acos(cosy * cos(x /= 2)));\n return [2 * cosy * sin(x) * sincia, sin(y) * sincia];\n}\n\n// Abort if [x, y] is not within an ellipse centered at [0, 0] with\n// semi-major axis pi and semi-minor axis pi/2.\naitoffRaw.invert = function(x, y) {\n if (x * x + 4 * y * y > pi * pi + epsilon) return;\n var x1 = x, y1 = y, i = 25;\n do {\n var sinx = sin(x1),\n sinx_2 = sin(x1 / 2),\n cosx_2 = cos(x1 / 2),\n siny = sin(y1),\n cosy = cos(y1),\n sin_2y = sin(2 * y1),\n sin2y = siny * siny,\n cos2y = cosy * cosy,\n sin2x_2 = sinx_2 * sinx_2,\n c = 1 - cos2y * cosx_2 * cosx_2,\n e = c ? acos(cosy * cosx_2) * sqrt(f = 1 / c) : f = 0,\n f,\n fx = 2 * e * cosy * sinx_2 - x,\n fy = e * siny - y,\n dxdx = f * (cos2y * sin2x_2 + e * cosy * cosx_2 * sin2y),\n dxdy = f * (0.5 * sinx * sin_2y - e * 2 * siny * sinx_2),\n dydx = f * 0.25 * (sin_2y * sinx_2 - e * siny * cos2y * sinx),\n dydy = f * (sin2y * cosx_2 + e * sin2x_2 * cosy),\n z = dxdy * dydx - dydy * dxdx;\n if (!z) break;\n var dx = (fy * dxdy - fx * dydy) / z,\n dy = (fx * dydx - fy * dxdx) / z;\n x1 -= dx, y1 -= dy;\n } while ((abs(dx) > epsilon || abs(dy) > epsilon) && --i > 0);\n return [x1, y1];\n};\n\nfunction aitoff() {\n return d3Geo.geoProjection(aitoffRaw)\n .scale(152.63);\n}\n\nfunction armadilloRaw(phi0) {\n var sinPhi0 = sin(phi0),\n cosPhi0 = cos(phi0),\n sPhi0 = phi0 >= 0 ? 1 : -1,\n tanPhi0 = tan(sPhi0 * phi0),\n k = (1 + sinPhi0 - cosPhi0) / 2;\n\n function forward(lambda, phi) {\n var cosPhi = cos(phi),\n cosLambda = cos(lambda /= 2);\n return [\n (1 + cosPhi) * sin(lambda),\n (sPhi0 * phi > -atan2(cosLambda, tanPhi0) - 1e-3 ? 0 : -sPhi0 * 10) + k + sin(phi) * cosPhi0 - (1 + cosPhi) * sinPhi0 * cosLambda // TODO D3 core should allow null or [NaN, NaN] to be returned.\n ];\n }\n\n forward.invert = function(x, y) {\n var lambda = 0,\n phi = 0,\n i = 50;\n do {\n var cosLambda = cos(lambda),\n sinLambda = sin(lambda),\n cosPhi = cos(phi),\n sinPhi = sin(phi),\n A = 1 + cosPhi,\n fx = A * sinLambda - x,\n fy = k + sinPhi * cosPhi0 - A * sinPhi0 * cosLambda - y,\n dxdLambda = A * cosLambda / 2,\n dxdPhi = -sinLambda * sinPhi,\n dydLambda = sinPhi0 * A * sinLambda / 2,\n dydPhi = cosPhi0 * cosPhi + sinPhi0 * cosLambda * sinPhi,\n denominator = dxdPhi * dydLambda - dydPhi * dxdLambda,\n dLambda = (fy * dxdPhi - fx * dydPhi) / denominator / 2,\n dPhi = (fx * dydLambda - fy * dxdLambda) / denominator;\n if (abs(dPhi) > 2) dPhi /= 2;\n lambda -= dLambda, phi -= dPhi;\n } while ((abs(dLambda) > epsilon || abs(dPhi) > epsilon) && --i > 0);\n return sPhi0 * phi > -atan2(cos(lambda), tanPhi0) - 1e-3 ? [lambda * 2, phi] : null;\n };\n\n return forward;\n}\n\nfunction armadillo() {\n var phi0 = 20 * radians,\n sPhi0 = phi0 >= 0 ? 1 : -1,\n tanPhi0 = tan(sPhi0 * phi0),\n m = d3Geo.geoProjectionMutator(armadilloRaw),\n p = m(phi0),\n stream_ = p.stream;\n\n p.parallel = function(_) {\n if (!arguments.length) return phi0 * degrees;\n tanPhi0 = tan((sPhi0 = (phi0 = _ * radians) >= 0 ? 1 : -1) * phi0);\n return m(phi0);\n };\n\n p.stream = function(stream) {\n var rotate = p.rotate(),\n rotateStream = stream_(stream),\n sphereStream = (p.rotate([0, 0]), stream_(stream)),\n precision = p.precision();\n p.rotate(rotate);\n rotateStream.sphere = function() {\n sphereStream.polygonStart(), sphereStream.lineStart();\n for (var lambda = sPhi0 * -180; sPhi0 * lambda < 180; lambda += sPhi0 * 90)\n sphereStream.point(lambda, sPhi0 * 90);\n if (phi0) while (sPhi0 * (lambda -= 3 * sPhi0 * precision) >= -180) {\n sphereStream.point(lambda, sPhi0 * -atan2(cos(lambda * radians / 2), tanPhi0) * degrees);\n }\n sphereStream.lineEnd(), sphereStream.polygonEnd();\n };\n return rotateStream;\n };\n\n return p\n .scale(218.695)\n .center([0, 28.0974]);\n}\n\nfunction augustRaw(lambda, phi) {\n var tanPhi = tan(phi / 2),\n k = sqrt(1 - tanPhi * tanPhi),\n c = 1 + k * cos(lambda /= 2),\n x = sin(lambda) * k / c,\n y = tanPhi / c,\n x2 = x * x,\n y2 = y * y;\n return [\n 4 / 3 * x * (3 + x2 - 3 * y2),\n 4 / 3 * y * (3 + 3 * x2 - y2)\n ];\n}\n\naugustRaw.invert = function(x, y) {\n x *= 3 / 8, y *= 3 / 8;\n if (!x && abs(y) > 1) return null;\n var x2 = x * x,\n y2 = y * y,\n s = 1 + x2 + y2,\n sin3Eta = sqrt((s - sqrt(s * s - 4 * y * y)) / 2),\n eta = asin(sin3Eta) / 3,\n xi = sin3Eta ? arcosh(abs(y / sin3Eta)) / 3 : arsinh(abs(x)) / 3,\n cosEta = cos(eta),\n coshXi = cosh(xi),\n d = coshXi * coshXi - cosEta * cosEta;\n return [\n sign(x) * 2 * atan2(sinh(xi) * cosEta, 0.25 - d),\n sign(y) * 2 * atan2(coshXi * sin(eta), 0.25 + d)\n ];\n};\n\nfunction august() {\n return d3Geo.geoProjection(augustRaw)\n .scale(66.1603);\n}\n\nvar sqrt8 = sqrt(8),\n phi0 = log(1 + sqrt2);\n\nfunction bakerRaw(lambda, phi) {\n var phi0 = abs(phi);\n return phi0 < quarterPi\n ? [lambda, log(tan(quarterPi + phi / 2))]\n : [lambda * cos(phi0) * (2 * sqrt2 - 1 / sin(phi0)), sign(phi) * (2 * sqrt2 * (phi0 - quarterPi) - log(tan(phi0 / 2)))];\n}\n\nbakerRaw.invert = function(x, y) {\n if ((y0 = abs(y)) < phi0) return [x, 2 * atan(exp(y)) - halfPi];\n var phi = quarterPi, i = 25, delta, y0;\n do {\n var cosPhi_2 = cos(phi / 2), tanPhi_2 = tan(phi / 2);\n phi -= delta = (sqrt8 * (phi - quarterPi) - log(tanPhi_2) - y0) / (sqrt8 - cosPhi_2 * cosPhi_2 / (2 * tanPhi_2));\n } while (abs(delta) > epsilon2 && --i > 0);\n return [x / (cos(phi) * (sqrt8 - 1 / sin(phi))), sign(y) * phi];\n};\n\nfunction baker() {\n return d3Geo.geoProjection(bakerRaw)\n .scale(112.314);\n}\n\nfunction berghausRaw(lobes) {\n var k = 2 * pi / lobes;\n\n function forward(lambda, phi) {\n var p = d3Geo.geoAzimuthalEquidistantRaw(lambda, phi);\n if (abs(lambda) > halfPi) { // back hemisphere\n var theta = atan2(p[1], p[0]),\n r = sqrt(p[0] * p[0] + p[1] * p[1]),\n theta0 = k * round((theta - halfPi) / k) + halfPi,\n alpha = atan2(sin(theta -= theta0), 2 - cos(theta)); // angle relative to lobe end\n theta = theta0 + asin(pi / r * sin(alpha)) - alpha;\n p[0] = r * cos(theta);\n p[1] = r * sin(theta);\n }\n return p;\n }\n\n forward.invert = function(x, y) {\n var r = sqrt(x * x + y * y);\n if (r > halfPi) {\n var theta = atan2(y, x),\n theta0 = k * round((theta - halfPi) / k) + halfPi,\n s = theta > theta0 ? -1 : 1,\n A = r * cos(theta0 - theta),\n cotAlpha = 1 / tan(s * acos((A - pi) / sqrt(pi * (pi - 2 * A) + r * r)));\n theta = theta0 + 2 * atan((cotAlpha + s * sqrt(cotAlpha * cotAlpha - 3)) / 3);\n x = r * cos(theta), y = r * sin(theta);\n }\n return d3Geo.geoAzimuthalEquidistantRaw.invert(x, y);\n };\n\n return forward;\n}\n\nfunction berghaus() {\n var lobes = 5,\n m = d3Geo.geoProjectionMutator(berghausRaw),\n p = m(lobes),\n projectionStream = p.stream,\n epsilon$$1 = 1e-2,\n cr = -cos(epsilon$$1 * radians),\n sr = sin(epsilon$$1 * radians);\n\n p.lobes = function(_) {\n return arguments.length ? m(lobes = +_) : lobes;\n };\n\n p.stream = function(stream) {\n var rotate = p.rotate(),\n rotateStream = projectionStream(stream),\n sphereStream = (p.rotate([0, 0]), projectionStream(stream));\n p.rotate(rotate);\n rotateStream.sphere = function() {\n sphereStream.polygonStart(), sphereStream.lineStart();\n for (var i = 0, delta = 360 / lobes, delta0 = 2 * pi / lobes, phi = 90 - 180 / lobes, phi0 = halfPi; i < lobes; ++i, phi -= delta, phi0 -= delta0) {\n sphereStream.point(atan2(sr * cos(phi0), cr) * degrees, asin(sr * sin(phi0)) * degrees);\n if (phi < -90) {\n sphereStream.point(-90, -180 - phi - epsilon$$1);\n sphereStream.point(-90, -180 - phi + epsilon$$1);\n } else {\n sphereStream.point(90, phi + epsilon$$1);\n sphereStream.point(90, phi - epsilon$$1);\n }\n }\n sphereStream.lineEnd(), sphereStream.polygonEnd();\n };\n return rotateStream;\n };\n\n return p\n .scale(87.8076)\n .center([0, 17.1875])\n .clipAngle(180 - 1e-3);\n}\n\nfunction hammerRaw(A, B) {\n if (arguments.length < 2) B = A;\n if (B === 1) return d3Geo.geoAzimuthalEqualAreaRaw;\n if (B === Infinity) return hammerQuarticAuthalicRaw;\n\n function forward(lambda, phi) {\n var coordinates = d3Geo.geoAzimuthalEqualAreaRaw(lambda / B, phi);\n coordinates[0] *= A;\n return coordinates;\n }\n\n forward.invert = function(x, y) {\n var coordinates = d3Geo.geoAzimuthalEqualAreaRaw.invert(x / A, y);\n coordinates[0] *= B;\n return coordinates;\n };\n\n return forward;\n}\n\nfunction hammerQuarticAuthalicRaw(lambda, phi) {\n return [\n lambda * cos(phi) / cos(phi /= 2),\n 2 * sin(phi)\n ];\n}\n\nhammerQuarticAuthalicRaw.invert = function(x, y) {\n var phi = 2 * asin(y / 2);\n return [\n x * cos(phi / 2) / cos(phi),\n phi\n ];\n};\n\nfunction hammer() {\n var B = 2,\n m = d3Geo.geoProjectionMutator(hammerRaw),\n p = m(B);\n\n p.coefficient = function(_) {\n if (!arguments.length) return B;\n return m(B = +_);\n };\n\n return p\n .scale(169.529);\n}\n\n// Approximate Newton-Raphson\n// Solve f(x) = y, start from x\nfunction solve(f, y, x) {\n var steps = 100, delta, f0, f1;\n x = x === undefined ? 0 : +x;\n y = +y;\n do {\n f0 = f(x);\n f1 = f(x + epsilon);\n if (f0 === f1) f1 = f0 + epsilon;\n x -= delta = (-1 * epsilon * (f0 - y)) / (f0 - f1);\n } while (steps-- > 0 && abs(delta) > epsilon);\n return steps < 0 ? NaN : x;\n}\n\n// Approximate Newton-Raphson in 2D\n// Solve f(a,b) = [x,y]\nfunction solve2d(f, MAX_ITERATIONS, eps) {\n if (MAX_ITERATIONS === undefined) MAX_ITERATIONS = 40;\n if (eps === undefined) eps = epsilon2;\n return function(x, y, a, b) {\n var err2, da, db;\n a = a === undefined ? 0 : +a;\n b = b === undefined ? 0 : +b;\n for (var i = 0; i < MAX_ITERATIONS; i++) {\n var p = f(a, b),\n // diffs\n tx = p[0] - x,\n ty = p[1] - y;\n if (abs(tx) < eps && abs(ty) < eps) break; // we're there!\n\n // backtrack if we overshot\n var h = tx * tx + ty * ty;\n if (h > err2) {\n a -= da /= 2;\n b -= db /= 2;\n continue;\n }\n err2 = h;\n\n // partial derivatives\n var ea = (a > 0 ? -1 : 1) * eps,\n eb = (b > 0 ? -1 : 1) * eps,\n pa = f(a + ea, b),\n pb = f(a, b + eb),\n dxa = (pa[0] - p[0]) / ea,\n dya = (pa[1] - p[1]) / ea,\n dxb = (pb[0] - p[0]) / eb,\n dyb = (pb[1] - p[1]) / eb,\n // determinant\n D = dyb * dxa - dya * dxb,\n // newton step — or half-step for small D\n l = (abs(D) < 0.5 ? 0.5 : 1) / D;\n da = (ty * dxb - tx * dyb) * l;\n db = (tx * dya - ty * dxa) * l;\n a += da;\n b += db;\n if (abs(da) < eps && abs(db) < eps) break; // we're crawling\n }\n return [a, b];\n };\n}\n\n// Bertin 1953 as a modified Briesemeister\n// https://bl.ocks.org/Fil/5b9ee9636dfb6ffa53443c9006beb642\nfunction bertin1953Raw() {\n var hammer$$1 = hammerRaw(1.68, 2),\n fu = 1.4, k = 12;\n\n function forward(lambda, phi) {\n\n if (lambda + phi < -fu) {\n var u = (lambda - phi + 1.6) * (lambda + phi + fu) / 8;\n lambda += u;\n phi -= 0.8 * u * sin(phi + pi / 2);\n }\n\n var r = hammer$$1(lambda, phi);\n\n var d = (1 - cos(lambda * phi)) / k;\n\n if (r[1] < 0) {\n r[0] *= 1 + d;\n }\n if (r[1] > 0) {\n r[1] *= 1 + d / 1.5 * r[0] * r[0];\n }\n\n return r;\n }\n \n forward.invert = solve2d(forward);\n return forward;\n}\n\nfunction bertin() {\n // this projection should not be rotated\n return d3Geo.geoProjection(bertin1953Raw())\n .rotate([-16.5, -42])\n .scale(176.57)\n .center([7.93, 0.09]);\n}\n\nfunction mollweideBromleyTheta(cp, phi) {\n var cpsinPhi = cp * sin(phi), i = 30, delta;\n do phi -= delta = (phi + sin(phi) - cpsinPhi) / (1 + cos(phi));\n while (abs(delta) > epsilon && --i > 0);\n return phi / 2;\n}\n\nfunction mollweideBromleyRaw(cx, cy, cp) {\n\n function forward(lambda, phi) {\n return [cx * lambda * cos(phi = mollweideBromleyTheta(cp, phi)), cy * sin(phi)];\n }\n\n forward.invert = function(x, y) {\n return y = asin(y / cy), [x / (cx * cos(y)), asin((2 * y + sin(2 * y)) / cp)];\n };\n\n return forward;\n}\n\nvar mollweideRaw = mollweideBromleyRaw(sqrt2 / halfPi, sqrt2, pi);\n\nfunction mollweide() {\n return d3Geo.geoProjection(mollweideRaw)\n .scale(169.529);\n}\n\nvar k = 2.00276,\n w = 1.11072;\n\nfunction boggsRaw(lambda, phi) {\n var theta = mollweideBromleyTheta(pi, phi);\n return [k * lambda / (1 / cos(phi) + w / cos(theta)), (phi + sqrt2 * sin(theta)) / k];\n}\n\nboggsRaw.invert = function(x, y) {\n var ky = k * y, theta = y < 0 ? -quarterPi : quarterPi, i = 25, delta, phi;\n do {\n phi = ky - sqrt2 * sin(theta);\n theta -= delta = (sin(2 * theta) + 2 * theta - pi * sin(phi)) / (2 * cos(2 * theta) + 2 + pi * cos(phi) * sqrt2 * cos(theta));\n } while (abs(delta) > epsilon && --i > 0);\n phi = ky - sqrt2 * sin(theta);\n return [x * (1 / cos(phi) + w / cos(theta)) / k, phi];\n};\n\nfunction boggs() {\n return d3Geo.geoProjection(boggsRaw)\n .scale(160.857);\n}\n\nfunction parallel1(projectAt) {\n var phi0 = 0,\n m = d3Geo.geoProjectionMutator(projectAt),\n p = m(phi0);\n\n p.parallel = function(_) {\n return arguments.length ? m(phi0 = _ * radians) : phi0 * degrees;\n };\n\n return p;\n}\n\nfunction sinusoidalRaw(lambda, phi) {\n return [lambda * cos(phi), phi];\n}\n\nsinusoidalRaw.invert = function(x, y) {\n return [x / cos(y), y];\n};\n\nfunction sinusoidal() {\n return d3Geo.geoProjection(sinusoidalRaw)\n .scale(152.63);\n}\n\nfunction bonneRaw(phi0) {\n if (!phi0) return sinusoidalRaw;\n var cotPhi0 = 1 / tan(phi0);\n\n function forward(lambda, phi) {\n var rho = cotPhi0 + phi0 - phi,\n e = rho ? lambda * cos(phi) / rho : rho;\n return [rho * sin(e), cotPhi0 - rho * cos(e)];\n }\n\n forward.invert = function(x, y) {\n var rho = sqrt(x * x + (y = cotPhi0 - y) * y),\n phi = cotPhi0 + phi0 - rho;\n return [rho / cos(phi) * atan2(x, y), phi];\n };\n\n return forward;\n}\n\nfunction bonne() {\n return parallel1(bonneRaw)\n .scale(123.082)\n .center([0, 26.1441])\n .parallel(45);\n}\n\nfunction bottomleyRaw(sinPsi) {\n\n function forward(lambda, phi) {\n var rho = halfPi - phi,\n eta = rho ? lambda * sinPsi * sin(rho) / rho : rho;\n return [rho * sin(eta) / sinPsi, halfPi - rho * cos(eta)];\n }\n\n forward.invert = function(x, y) {\n var x1 = x * sinPsi,\n y1 = halfPi - y,\n rho = sqrt(x1 * x1 + y1 * y1),\n eta = atan2(x1, y1);\n return [(rho ? rho / sin(rho) : 1) * eta / sinPsi, halfPi - rho];\n };\n\n return forward;\n}\n\nfunction bottomley() {\n var sinPsi = 0.5,\n m = d3Geo.geoProjectionMutator(bottomleyRaw),\n p = m(sinPsi);\n\n p.fraction = function(_) {\n return arguments.length ? m(sinPsi = +_) : sinPsi;\n };\n\n return p\n .scale(158.837);\n}\n\nvar bromleyRaw = mollweideBromleyRaw(1, 4 / pi, pi);\n\nfunction bromley() {\n return d3Geo.geoProjection(bromleyRaw)\n .scale(152.63);\n}\n\n// Azimuthal distance.\nfunction distance(dPhi, c1, s1, c2, s2, dLambda) {\n var cosdLambda = cos(dLambda), r;\n if (abs(dPhi) > 1 || abs(dLambda) > 1) {\n r = acos(s1 * s2 + c1 * c2 * cosdLambda);\n } else {\n var sindPhi = sin(dPhi / 2), sindLambda = sin(dLambda / 2);\n r = 2 * asin(sqrt(sindPhi * sindPhi + c1 * c2 * sindLambda * sindLambda));\n }\n return abs(r) > epsilon ? [r, atan2(c2 * sin(dLambda), c1 * s2 - s1 * c2 * cosdLambda)] : [0, 0];\n}\n\n// Angle opposite a, and contained between sides of lengths b and c.\nfunction angle(b, c, a) {\n return acos((b * b + c * c - a * a) / (2 * b * c));\n}\n\n// Normalize longitude.\nfunction longitude(lambda) {\n return lambda - 2 * pi * floor((lambda + pi) / (2 * pi));\n}\n\nfunction chamberlinRaw(p0, p1, p2) {\n var points = [\n [p0[0], p0[1], sin(p0[1]), cos(p0[1])],\n [p1[0], p1[1], sin(p1[1]), cos(p1[1])],\n [p2[0], p2[1], sin(p2[1]), cos(p2[1])]\n ];\n\n for (var a = points[2], b, i = 0; i < 3; ++i, a = b) {\n b = points[i];\n a.v = distance(b[1] - a[1], a[3], a[2], b[3], b[2], b[0] - a[0]);\n a.point = [0, 0];\n }\n\n var beta0 = angle(points[0].v[0], points[2].v[0], points[1].v[0]),\n beta1 = angle(points[0].v[0], points[1].v[0], points[2].v[0]),\n beta2 = pi - beta0;\n\n points[2].point[1] = 0;\n points[0].point[0] = -(points[1].point[0] = points[0].v[0] / 2);\n\n var mean = [\n points[2].point[0] = points[0].point[0] + points[2].v[0] * cos(beta0),\n 2 * (points[0].point[1] = points[1].point[1] = points[2].v[0] * sin(beta0))\n ];\n\n function forward(lambda, phi) {\n var sinPhi = sin(phi),\n cosPhi = cos(phi),\n v = new Array(3), i;\n\n // Compute distance and azimuth from control points.\n for (i = 0; i < 3; ++i) {\n var p = points[i];\n v[i] = distance(phi - p[1], p[3], p[2], cosPhi, sinPhi, lambda - p[0]);\n if (!v[i][0]) return p.point;\n v[i][1] = longitude(v[i][1] - p.v[1]);\n }\n\n // Arithmetic mean of interception points.\n var point = mean.slice();\n for (i = 0; i < 3; ++i) {\n var j = i == 2 ? 0 : i + 1;\n var a = angle(points[i].v[0], v[i][0], v[j][0]);\n if (v[i][1] < 0) a = -a;\n\n if (!i) {\n point[0] += v[i][0] * cos(a);\n point[1] -= v[i][0] * sin(a);\n } else if (i == 1) {\n a = beta1 - a;\n point[0] -= v[i][0] * cos(a);\n point[1] -= v[i][0] * sin(a);\n } else {\n a = beta2 - a;\n point[0] += v[i][0] * cos(a);\n point[1] += v[i][0] * sin(a);\n }\n }\n\n point[0] /= 3, point[1] /= 3;\n return point;\n }\n\n return forward;\n}\n\nfunction pointRadians(p) {\n return p[0] *= radians, p[1] *= radians, p;\n}\n\nfunction chamberlinAfrica() {\n return chamberlin([0, 22], [45, 22], [22.5, -22])\n .scale(380)\n .center([22.5, 2]);\n}\n\nfunction chamberlin(p0, p1, p2) { // TODO order matters!\n var c = d3Geo.geoCentroid({type: \"MultiPoint\", coordinates: [p0, p1, p2]}),\n R = [-c[0], -c[1]],\n r = d3Geo.geoRotation(R),\n f = chamberlinRaw(pointRadians(r(p0)), pointRadians(r(p1)), pointRadians(r(p2)));\n f.invert = solve2d(f);\n var p = d3Geo.geoProjection(f).rotate(R),\n center = p.center;\n\n delete p.rotate;\n\n p.center = function(_) {\n return arguments.length ? center(r(_)) : r.invert(center());\n };\n\n return p\n .clipAngle(90);\n}\n\nfunction collignonRaw(lambda, phi) {\n var alpha = sqrt(1 - sin(phi));\n return [(2 / sqrtPi) * lambda * alpha, sqrtPi * (1 - alpha)];\n}\n\ncollignonRaw.invert = function(x, y) {\n var lambda = (lambda = y / sqrtPi - 1) * lambda;\n return [lambda > 0 ? x * sqrt(pi / lambda) / 2 : 0, asin(1 - lambda)];\n};\n\nfunction collignon() {\n return d3Geo.geoProjection(collignonRaw)\n .scale(95.6464)\n .center([0, 30]);\n}\n\nfunction craigRaw(phi0) {\n var tanPhi0 = tan(phi0);\n\n function forward(lambda, phi) {\n return [lambda, (lambda ? lambda / sin(lambda) : 1) * (sin(phi) * cos(lambda) - tanPhi0 * cos(phi))];\n }\n\n forward.invert = tanPhi0 ? function(x, y) {\n if (x) y *= sin(x) / x;\n var cosLambda = cos(x);\n return [x, 2 * atan2(sqrt(cosLambda * cosLambda + tanPhi0 * tanPhi0 - y * y) - cosLambda, tanPhi0 - y)];\n } : function(x, y) {\n return [x, asin(x ? y * tan(x) / x : y)];\n };\n\n return forward;\n}\n\nfunction craig() {\n return parallel1(craigRaw)\n .scale(249.828)\n .clipAngle(90);\n}\n\nvar sqrt3 = sqrt(3);\n\nfunction crasterRaw(lambda, phi) {\n return [sqrt3 * lambda * (2 * cos(2 * phi / 3) - 1) / sqrtPi, sqrt3 * sqrtPi * sin(phi / 3)];\n}\n\ncrasterRaw.invert = function(x, y) {\n var phi = 3 * asin(y / (sqrt3 * sqrtPi));\n return [sqrtPi * x / (sqrt3 * (2 * cos(2 * phi / 3) - 1)), phi];\n};\n\nfunction craster() {\n return d3Geo.geoProjection(crasterRaw)\n .scale(156.19);\n}\n\nfunction cylindricalEqualAreaRaw(phi0) {\n var cosPhi0 = cos(phi0);\n\n function forward(lambda, phi) {\n return [lambda * cosPhi0, sin(phi) / cosPhi0];\n }\n\n forward.invert = function(x, y) {\n return [x / cosPhi0, asin(y * cosPhi0)];\n };\n\n return forward;\n}\n\nfunction cylindricalEqualArea() {\n return parallel1(cylindricalEqualAreaRaw)\n .parallel(38.58) // acos(sqrt(width / height / pi)) * radians\n .scale(195.044); // width / (sqrt(width / height / pi) * 2 * pi)\n}\n\nfunction cylindricalStereographicRaw(phi0) {\n var cosPhi0 = cos(phi0);\n\n function forward(lambda, phi) {\n return [lambda * cosPhi0, (1 + cosPhi0) * tan(phi / 2)];\n }\n\n forward.invert = function(x, y) {\n return [x / cosPhi0, atan(y / (1 + cosPhi0)) * 2];\n };\n\n return forward;\n}\n\nfunction cylindricalStereographic() {\n return parallel1(cylindricalStereographicRaw)\n .scale(124.75);\n}\n\nfunction eckert1Raw(lambda, phi) {\n var alpha = sqrt(8 / (3 * pi));\n return [\n alpha * lambda * (1 - abs(phi) / pi),\n alpha * phi\n ];\n}\n\neckert1Raw.invert = function(x, y) {\n var alpha = sqrt(8 / (3 * pi)),\n phi = y / alpha;\n return [\n x / (alpha * (1 - abs(phi) / pi)),\n phi\n ];\n};\n\nfunction eckert1() {\n return d3Geo.geoProjection(eckert1Raw)\n .scale(165.664);\n}\n\nfunction eckert2Raw(lambda, phi) {\n var alpha = sqrt(4 - 3 * sin(abs(phi)));\n return [\n 2 / sqrt(6 * pi) * lambda * alpha,\n sign(phi) * sqrt(2 * pi / 3) * (2 - alpha)\n ];\n}\n\neckert2Raw.invert = function(x, y) {\n var alpha = 2 - abs(y) / sqrt(2 * pi / 3);\n return [\n x * sqrt(6 * pi) / (2 * alpha),\n sign(y) * asin((4 - alpha * alpha) / 3)\n ];\n};\n\nfunction eckert2() {\n return d3Geo.geoProjection(eckert2Raw)\n .scale(165.664);\n}\n\nfunction eckert3Raw(lambda, phi) {\n var k = sqrt(pi * (4 + pi));\n return [\n 2 / k * lambda * (1 + sqrt(1 - 4 * phi * phi / (pi * pi))),\n 4 / k * phi\n ];\n}\n\neckert3Raw.invert = function(x, y) {\n var k = sqrt(pi * (4 + pi)) / 2;\n return [\n x * k / (1 + sqrt(1 - y * y * (4 + pi) / (4 * pi))),\n y * k / 2\n ];\n};\n\nfunction eckert3() {\n return d3Geo.geoProjection(eckert3Raw)\n .scale(180.739);\n}\n\nfunction eckert4Raw(lambda, phi) {\n var k = (2 + halfPi) * sin(phi);\n phi /= 2;\n for (var i = 0, delta = Infinity; i < 10 && abs(delta) > epsilon; i++) {\n var cosPhi = cos(phi);\n phi -= delta = (phi + sin(phi) * (cosPhi + 2) - k) / (2 * cosPhi * (1 + cosPhi));\n }\n return [\n 2 / sqrt(pi * (4 + pi)) * lambda * (1 + cos(phi)),\n 2 * sqrt(pi / (4 + pi)) * sin(phi)\n ];\n}\n\neckert4Raw.invert = function(x, y) {\n var A = y * sqrt((4 + pi) / pi) / 2,\n k = asin(A),\n c = cos(k);\n return [\n x / (2 / sqrt(pi * (4 + pi)) * (1 + c)),\n asin((k + A * (c + 2)) / (2 + halfPi))\n ];\n};\n\nfunction eckert4() {\n return d3Geo.geoProjection(eckert4Raw)\n .scale(180.739);\n}\n\nfunction eckert5Raw(lambda, phi) {\n return [\n lambda * (1 + cos(phi)) / sqrt(2 + pi),\n 2 * phi / sqrt(2 + pi)\n ];\n}\n\neckert5Raw.invert = function(x, y) {\n var k = sqrt(2 + pi),\n phi = y * k / 2;\n return [\n k * x / (1 + cos(phi)),\n phi\n ];\n};\n\nfunction eckert5() {\n return d3Geo.geoProjection(eckert5Raw)\n .scale(173.044);\n}\n\nfunction eckert6Raw(lambda, phi) {\n var k = (1 + halfPi) * sin(phi);\n for (var i = 0, delta = Infinity; i < 10 && abs(delta) > epsilon; i++) {\n phi -= delta = (phi + sin(phi) - k) / (1 + cos(phi));\n }\n k = sqrt(2 + pi);\n return [\n lambda * (1 + cos(phi)) / k,\n 2 * phi / k\n ];\n}\n\neckert6Raw.invert = function(x, y) {\n var j = 1 + halfPi,\n k = sqrt(j / 2);\n return [\n x * 2 * k / (1 + cos(y *= k)),\n asin((y + sin(y)) / j)\n ];\n};\n\nfunction eckert6() {\n return d3Geo.geoProjection(eckert6Raw)\n .scale(173.044);\n}\n\nvar eisenlohrK = 3 + 2 * sqrt2;\n\nfunction eisenlohrRaw(lambda, phi) {\n var s0 = sin(lambda /= 2),\n c0 = cos(lambda),\n k = sqrt(cos(phi)),\n c1 = cos(phi /= 2),\n t = sin(phi) / (c1 + sqrt2 * c0 * k),\n c = sqrt(2 / (1 + t * t)),\n v = sqrt((sqrt2 * c1 + (c0 + s0) * k) / (sqrt2 * c1 + (c0 - s0) * k));\n return [\n eisenlohrK * (c * (v - 1 / v) - 2 * log(v)),\n eisenlohrK * (c * t * (v + 1 / v) - 2 * atan(t))\n ];\n}\n\neisenlohrRaw.invert = function(x, y) {\n if (!(p = augustRaw.invert(x / 1.2, y * 1.065))) return null;\n var lambda = p[0], phi = p[1], i = 20, p;\n x /= eisenlohrK, y /= eisenlohrK;\n do {\n var _0 = lambda / 2,\n _1 = phi / 2,\n s0 = sin(_0),\n c0 = cos(_0),\n s1 = sin(_1),\n c1 = cos(_1),\n cos1 = cos(phi),\n k = sqrt(cos1),\n t = s1 / (c1 + sqrt2 * c0 * k),\n t2 = t * t,\n c = sqrt(2 / (1 + t2)),\n v0 = (sqrt2 * c1 + (c0 + s0) * k),\n v1 = (sqrt2 * c1 + (c0 - s0) * k),\n v2 = v0 / v1,\n v = sqrt(v2),\n vm1v = v - 1 / v,\n vp1v = v + 1 / v,\n fx = c * vm1v - 2 * log(v) - x,\n fy = c * t * vp1v - 2 * atan(t) - y,\n deltatDeltaLambda = s1 && sqrt1_2 * k * s0 * t2 / s1,\n deltatDeltaPhi = (sqrt2 * c0 * c1 + k) / (2 * (c1 + sqrt2 * c0 * k) * (c1 + sqrt2 * c0 * k) * k),\n deltacDeltat = -0.5 * t * c * c * c,\n deltacDeltaLambda = deltacDeltat * deltatDeltaLambda,\n deltacDeltaPhi = deltacDeltat * deltatDeltaPhi,\n A = (A = 2 * c1 + sqrt2 * k * (c0 - s0)) * A * v,\n deltavDeltaLambda = (sqrt2 * c0 * c1 * k + cos1) / A,\n deltavDeltaPhi = -(sqrt2 * s0 * s1) / (k * A),\n deltaxDeltaLambda = vm1v * deltacDeltaLambda - 2 * deltavDeltaLambda / v + c * (deltavDeltaLambda + deltavDeltaLambda / v2),\n deltaxDeltaPhi = vm1v * deltacDeltaPhi - 2 * deltavDeltaPhi / v + c * (deltavDeltaPhi + deltavDeltaPhi / v2),\n deltayDeltaLambda = t * vp1v * deltacDeltaLambda - 2 * deltatDeltaLambda / (1 + t2) + c * vp1v * deltatDeltaLambda + c * t * (deltavDeltaLambda - deltavDeltaLambda / v2),\n deltayDeltaPhi = t * vp1v * deltacDeltaPhi - 2 * deltatDeltaPhi / (1 + t2) + c * vp1v * deltatDeltaPhi + c * t * (deltavDeltaPhi - deltavDeltaPhi / v2),\n denominator = deltaxDeltaPhi * deltayDeltaLambda - deltayDeltaPhi * deltaxDeltaLambda;\n if (!denominator) break;\n var deltaLambda = (fy * deltaxDeltaPhi - fx * deltayDeltaPhi) / denominator,\n deltaPhi = (fx * deltayDeltaLambda - fy * deltaxDeltaLambda) / denominator;\n lambda -= deltaLambda;\n phi = max(-halfPi, min(halfPi, phi - deltaPhi));\n } while ((abs(deltaLambda) > epsilon || abs(deltaPhi) > epsilon) && --i > 0);\n return abs(abs(phi) - halfPi) < epsilon ? [0, phi] : i && [lambda, phi];\n};\n\nfunction eisenlohr() {\n return d3Geo.geoProjection(eisenlohrRaw)\n .scale(62.5271);\n}\n\nvar faheyK = cos(35 * radians);\n\nfunction faheyRaw(lambda, phi) {\n var t = tan(phi / 2);\n return [lambda * faheyK * sqrt(1 - t * t), (1 + faheyK) * t];\n}\n\nfaheyRaw.invert = function(x, y) {\n var t = y / (1 + faheyK);\n return [x && x / (faheyK * sqrt(1 - t * t)), 2 * atan(t)];\n};\n\nfunction fahey() {\n return d3Geo.geoProjection(faheyRaw)\n .scale(137.152);\n}\n\nfunction foucautRaw(lambda, phi) {\n var k = phi / 2, cosk = cos(k);\n return [ 2 * lambda / sqrtPi * cos(phi) * cosk * cosk, sqrtPi * tan(k)];\n}\n\nfoucautRaw.invert = function(x, y) {\n var k = atan(y / sqrtPi), cosk = cos(k), phi = 2 * k;\n return [x * sqrtPi / 2 / (cos(phi) * cosk * cosk), phi];\n};\n\nfunction foucaut() {\n return d3Geo.geoProjection(foucautRaw)\n .scale(135.264);\n}\n\nfunction foucautSinusoidalRaw(alpha) {\n var beta = 1 - alpha,\n equatorial = raw(pi, 0)[0] - raw(-pi, 0)[0],\n polar = raw(0, halfPi)[1] - raw(0, -halfPi)[1],\n ratio = sqrt(2 * polar / equatorial);\n\n function raw(lambda, phi) {\n var cosphi = cos(phi),\n sinphi = sin(phi);\n return [\n cosphi / (beta + alpha * cosphi) * lambda,\n beta * phi + alpha * sinphi\n ];\n }\n\n function forward(lambda, phi) {\n var p = raw(lambda, phi);\n return [p[0] * ratio, p[1] / ratio];\n }\n\n function forwardMeridian(phi) {\n return forward(0, phi)[1];\n }\n\n forward.invert = function(x, y) {\n var phi = solve(forwardMeridian, y),\n lambda = x / ratio * (alpha + beta / cos(phi));\n return [lambda, phi];\n };\n\n return forward;\n}\n\nfunction foucautSinusoidal() {\n var alpha = 0.5,\n m = d3Geo.geoProjectionMutator(foucautSinusoidalRaw),\n p = m(alpha);\n\n p.alpha = function(_) {\n return arguments.length ? m(alpha = +_) : alpha;\n };\n\n return p\n .scale(168.725);\n}\n\nfunction gilbertForward(point) {\n return [point[0] / 2, asin(tan(point[1] / 2 * radians)) * degrees];\n}\n\nfunction gilbertInvert(point) {\n return [point[0] * 2, 2 * atan(sin(point[1] * radians)) * degrees];\n}\n\nfunction gilbert(projectionType) {\n if (projectionType == null) projectionType = d3Geo.geoOrthographic;\n var projection = projectionType(),\n equirectangular = d3Geo.geoEquirectangular().scale(degrees).precision(0).clipAngle(null).translate([0, 0]); // antimeridian cutting\n\n function gilbert(point) {\n return projection(gilbertForward(point));\n }\n\n if (projection.invert) gilbert.invert = function(point) {\n return gilbertInvert(projection.invert(point));\n };\n\n gilbert.stream = function(stream) {\n var s1 = projection.stream(stream), s0 = equirectangular.stream({\n point: function(lambda, phi) { s1.point(lambda / 2, asin(tan(-phi / 2 * radians)) * degrees); },\n lineStart: function() { s1.lineStart(); },\n lineEnd: function() { s1.lineEnd(); },\n polygonStart: function() { s1.polygonStart(); },\n polygonEnd: function() { s1.polygonEnd(); }\n });\n s0.sphere = s1.sphere;\n return s0;\n };\n\n function property(name) {\n gilbert[name] = function() {\n return arguments.length ? (projection[name].apply(projection, arguments), gilbert) : projection[name]();\n };\n }\n\n gilbert.rotate = function(_) {\n return arguments.length ? (equirectangular.rotate(_), gilbert) : equirectangular.rotate();\n };\n\n gilbert.center = function(_) {\n return arguments.length ? (projection.center(gilbertForward(_)), gilbert) : gilbertInvert(projection.center());\n };\n\n property(\"angle\");\n property(\"clipAngle\");\n property(\"clipExtent\");\n property(\"fitExtent\");\n property(\"fitHeight\");\n property(\"fitSize\");\n property(\"fitWidth\");\n property(\"scale\");\n property(\"translate\");\n property(\"precision\");\n\n return gilbert\n .scale(249.5);\n}\n\nfunction gingeryRaw(rho, n) {\n var k = 2 * pi / n,\n rho2 = rho * rho;\n\n function forward(lambda, phi) {\n var p = d3Geo.geoAzimuthalEquidistantRaw(lambda, phi),\n x = p[0],\n y = p[1],\n r2 = x * x + y * y;\n\n if (r2 > rho2) {\n var r = sqrt(r2),\n theta = atan2(y, x),\n theta0 = k * round(theta / k),\n alpha = theta - theta0,\n rhoCosAlpha = rho * cos(alpha),\n k_ = (rho * sin(alpha) - alpha * sin(rhoCosAlpha)) / (halfPi - rhoCosAlpha),\n s_ = gingeryLength(alpha, k_),\n e = (pi - rho) / gingeryIntegrate(s_, rhoCosAlpha, pi);\n\n x = r;\n var i = 50, delta;\n do {\n x -= delta = (rho + gingeryIntegrate(s_, rhoCosAlpha, x) * e - r) / (s_(x) * e);\n } while (abs(delta) > epsilon && --i > 0);\n\n y = alpha * sin(x);\n if (x < halfPi) y -= k_ * (x - halfPi);\n\n var s = sin(theta0),\n c = cos(theta0);\n p[0] = x * c - y * s;\n p[1] = x * s + y * c;\n }\n return p;\n }\n\n forward.invert = function(x, y) {\n var r2 = x * x + y * y;\n if (r2 > rho2) {\n var r = sqrt(r2),\n theta = atan2(y, x),\n theta0 = k * round(theta / k),\n dTheta = theta - theta0;\n\n x = r * cos(dTheta);\n y = r * sin(dTheta);\n\n var x_halfPi = x - halfPi,\n sinx = sin(x),\n alpha = y / sinx,\n delta = x < halfPi ? Infinity : 0,\n i = 10;\n\n while (true) {\n var rhosinAlpha = rho * sin(alpha),\n rhoCosAlpha = rho * cos(alpha),\n sinRhoCosAlpha = sin(rhoCosAlpha),\n halfPi_RhoCosAlpha = halfPi - rhoCosAlpha,\n k_ = (rhosinAlpha - alpha * sinRhoCosAlpha) / halfPi_RhoCosAlpha,\n s_ = gingeryLength(alpha, k_);\n\n if (abs(delta) < epsilon2 || !--i) break;\n\n alpha -= delta = (alpha * sinx - k_ * x_halfPi - y) / (\n sinx - x_halfPi * 2 * (\n halfPi_RhoCosAlpha * (rhoCosAlpha + alpha * rhosinAlpha * cos(rhoCosAlpha) - sinRhoCosAlpha) -\n rhosinAlpha * (rhosinAlpha - alpha * sinRhoCosAlpha)\n ) / (halfPi_RhoCosAlpha * halfPi_RhoCosAlpha));\n }\n r = rho + gingeryIntegrate(s_, rhoCosAlpha, x) * (pi - rho) / gingeryIntegrate(s_, rhoCosAlpha, pi);\n theta = theta0 + alpha;\n x = r * cos(theta);\n y = r * sin(theta);\n }\n return d3Geo.geoAzimuthalEquidistantRaw.invert(x, y);\n };\n\n return forward;\n}\n\nfunction gingeryLength(alpha, k) {\n return function(x) {\n var y_ = alpha * cos(x);\n if (x < halfPi) y_ -= k;\n return sqrt(1 + y_ * y_);\n };\n}\n\n// Numerical integration: trapezoidal rule.\nfunction gingeryIntegrate(f, a, b) {\n var n = 50,\n h = (b - a) / n,\n s = f(a) + f(b);\n for (var i = 1, x = a; i < n; ++i) s += 2 * f(x += h);\n return s * 0.5 * h;\n}\n\nfunction gingery() {\n var n = 6,\n rho = 30 * radians,\n cRho = cos(rho),\n sRho = sin(rho),\n m = d3Geo.geoProjectionMutator(gingeryRaw),\n p = m(rho, n),\n stream_ = p.stream,\n epsilon$$1 = 1e-2,\n cr = -cos(epsilon$$1 * radians),\n sr = sin(epsilon$$1 * radians);\n\n p.radius = function(_) {\n if (!arguments.length) return rho * degrees;\n cRho = cos(rho = _ * radians);\n sRho = sin(rho);\n return m(rho, n);\n };\n\n p.lobes = function(_) {\n if (!arguments.length) return n;\n return m(rho, n = +_);\n };\n\n p.stream = function(stream) {\n var rotate = p.rotate(),\n rotateStream = stream_(stream),\n sphereStream = (p.rotate([0, 0]), stream_(stream));\n p.rotate(rotate);\n rotateStream.sphere = function() {\n sphereStream.polygonStart(), sphereStream.lineStart();\n for (var i = 0, delta = 2 * pi / n, phi = 0; i < n; ++i, phi -= delta) {\n sphereStream.point(atan2(sr * cos(phi), cr) * degrees, asin(sr * sin(phi)) * degrees);\n sphereStream.point(atan2(sRho * cos(phi - delta / 2), cRho) * degrees, asin(sRho * sin(phi - delta / 2)) * degrees);\n }\n sphereStream.lineEnd(), sphereStream.polygonEnd();\n };\n return rotateStream;\n };\n\n return p\n .rotate([90, -40])\n .scale(91.7095)\n .clipAngle(180 - 1e-3);\n}\n\nfunction ginzburgPolyconicRaw(a, b, c, d, e, f, g, h) {\n if (arguments.length < 8) h = 0;\n\n function forward(lambda, phi) {\n if (!phi) return [a * lambda / pi, 0];\n var phi2 = phi * phi,\n xB = a + phi2 * (b + phi2 * (c + phi2 * d)),\n yB = phi * (e - 1 + phi2 * (f - h + phi2 * g)),\n m = (xB * xB + yB * yB) / (2 * yB),\n alpha = lambda * asin(xB / m) / pi;\n return [m * sin(alpha), phi * (1 + phi2 * h) + m * (1 - cos(alpha))];\n }\n\n forward.invert = function(x, y) {\n var lambda = pi * x / a,\n phi = y,\n deltaLambda, deltaPhi, i = 50;\n do {\n var phi2 = phi * phi,\n xB = a + phi2 * (b + phi2 * (c + phi2 * d)),\n yB = phi * (e - 1 + phi2 * (f - h + phi2 * g)),\n p = xB * xB + yB * yB,\n q = 2 * yB,\n m = p / q,\n m2 = m * m,\n dAlphadLambda = asin(xB / m) / pi,\n alpha = lambda * dAlphadLambda,\n xB2 = xB * xB,\n dxBdPhi = (2 * b + phi2 * (4 * c + phi2 * 6 * d)) * phi,\n dyBdPhi = e + phi2 * (3 * f + phi2 * 5 * g),\n dpdPhi = 2 * (xB * dxBdPhi + yB * (dyBdPhi - 1)),\n dqdPhi = 2 * (dyBdPhi - 1),\n dmdPhi = (dpdPhi * q - p * dqdPhi) / (q * q),\n cosAlpha = cos(alpha),\n sinAlpha = sin(alpha),\n mcosAlpha = m * cosAlpha,\n msinAlpha = m * sinAlpha,\n dAlphadPhi = ((lambda / pi) * (1 / sqrt(1 - xB2 / m2)) * (dxBdPhi * m - xB * dmdPhi)) / m2,\n fx = msinAlpha - x,\n fy = phi * (1 + phi2 * h) + m - mcosAlpha - y,\n deltaxDeltaPhi = dmdPhi * sinAlpha + mcosAlpha * dAlphadPhi,\n deltaxDeltaLambda = mcosAlpha * dAlphadLambda,\n deltayDeltaPhi = 1 + dmdPhi - (dmdPhi * cosAlpha - msinAlpha * dAlphadPhi),\n deltayDeltaLambda = msinAlpha * dAlphadLambda,\n denominator = deltaxDeltaPhi * deltayDeltaLambda - deltayDeltaPhi * deltaxDeltaLambda;\n if (!denominator) break;\n lambda -= deltaLambda = (fy * deltaxDeltaPhi - fx * deltayDeltaPhi) / denominator;\n phi -= deltaPhi = (fx * deltayDeltaLambda - fy * deltaxDeltaLambda) / denominator;\n } while ((abs(deltaLambda) > epsilon || abs(deltaPhi) > epsilon) && --i > 0);\n return [lambda, phi];\n };\n\n return forward;\n}\n\nvar ginzburg4Raw = ginzburgPolyconicRaw(2.8284, -1.6988, 0.75432, -0.18071, 1.76003, -0.38914, 0.042555);\n\nfunction ginzburg4() {\n return d3Geo.geoProjection(ginzburg4Raw)\n .scale(149.995);\n}\n\nvar ginzburg5Raw = ginzburgPolyconicRaw(2.583819, -0.835827, 0.170354, -0.038094, 1.543313, -0.411435,0.082742);\n\nfunction ginzburg5() {\n return d3Geo.geoProjection(ginzburg5Raw)\n .scale(153.93);\n}\n\nvar ginzburg6Raw = ginzburgPolyconicRaw(5 / 6 * pi, -0.62636, -0.0344, 0, 1.3493, -0.05524, 0, 0.045);\n\nfunction ginzburg6() {\n return d3Geo.geoProjection(ginzburg6Raw)\n .scale(130.945);\n}\n\nfunction ginzburg8Raw(lambda, phi) {\n var lambda2 = lambda * lambda,\n phi2 = phi * phi;\n return [\n lambda * (1 - 0.162388 * phi2) * (0.87 - 0.000952426 * lambda2 * lambda2),\n phi * (1 + phi2 / 12)\n ];\n}\n\nginzburg8Raw.invert = function(x, y) {\n var lambda = x,\n phi = y,\n i = 50, delta;\n do {\n var phi2 = phi * phi;\n phi -= delta = (phi * (1 + phi2 / 12) - y) / (1 + phi2 / 4);\n } while (abs(delta) > epsilon && --i > 0);\n i = 50;\n x /= 1 -0.162388 * phi2;\n do {\n var lambda4 = (lambda4 = lambda * lambda) * lambda4;\n lambda -= delta = (lambda * (0.87 - 0.000952426 * lambda4) - x) / (0.87 - 0.00476213 * lambda4);\n } while (abs(delta) > epsilon && --i > 0);\n return [lambda, phi];\n};\n\nfunction ginzburg8() {\n return d3Geo.geoProjection(ginzburg8Raw)\n .scale(131.747);\n}\n\nvar ginzburg9Raw = ginzburgPolyconicRaw(2.6516, -0.76534, 0.19123, -0.047094, 1.36289, -0.13965,0.031762);\n\nfunction ginzburg9() {\n return d3Geo.geoProjection(ginzburg9Raw)\n .scale(131.087);\n}\n\nfunction squareRaw(project) {\n var dx = project(halfPi, 0)[0] - project(-halfPi, 0)[0];\n\n function projectSquare(lambda, phi) {\n var s = lambda > 0 ? -0.5 : 0.5,\n point = project(lambda + s * pi, phi);\n point[0] -= s * dx;\n return point;\n }\n\n if (project.invert) projectSquare.invert = function(x, y) {\n var s = x > 0 ? -0.5 : 0.5,\n location = project.invert(x + s * dx, y),\n lambda = location[0] - s * pi;\n if (lambda < -pi) lambda += 2 * pi;\n else if (lambda > pi) lambda -= 2 * pi;\n location[0] = lambda;\n return location;\n };\n\n return projectSquare;\n}\n\nfunction gringortenRaw(lambda, phi) {\n var sLambda = sign(lambda),\n sPhi = sign(phi),\n cosPhi = cos(phi),\n x = cos(lambda) * cosPhi,\n y = sin(lambda) * cosPhi,\n z = sin(sPhi * phi);\n lambda = abs(atan2(y, z));\n phi = asin(x);\n if (abs(lambda - halfPi) > epsilon) lambda %= halfPi;\n var point = gringortenHexadecant(lambda > pi / 4 ? halfPi - lambda : lambda, phi);\n if (lambda > pi / 4) z = point[0], point[0] = -point[1], point[1] = -z;\n return (point[0] *= sLambda, point[1] *= -sPhi, point);\n}\n\ngringortenRaw.invert = function(x, y) {\n if (abs(x) > 1) x = sign(x) * 2 - x;\n if (abs(y) > 1) y = sign(y) * 2 - y;\n var sx = sign(x),\n sy = sign(y),\n x0 = -sx * x,\n y0 = -sy * y,\n t = y0 / x0 < 1,\n p = gringortenHexadecantInvert(t ? y0 : x0, t ? x0 : y0),\n lambda = p[0],\n phi = p[1],\n cosPhi = cos(phi);\n if (t) lambda = -halfPi - lambda;\n return [sx * (atan2(sin(lambda) * cosPhi, -sin(phi)) + pi), sy * asin(cos(lambda) * cosPhi)];\n};\n\nfunction gringortenHexadecant(lambda, phi) {\n if (phi === halfPi) return [0, 0];\n\n var sinPhi = sin(phi),\n r = sinPhi * sinPhi,\n r2 = r * r,\n j = 1 + r2,\n k = 1 + 3 * r2,\n q = 1 - r2,\n z = asin(1 / sqrt(j)),\n v = q + r * j * z,\n p2 = (1 - sinPhi) / v,\n p = sqrt(p2),\n a2 = p2 * j,\n a = sqrt(a2),\n h = p * q,\n x,\n i;\n\n if (lambda === 0) return [0, -(h + r * a)];\n\n var cosPhi = cos(phi),\n secPhi = 1 / cosPhi,\n drdPhi = 2 * sinPhi * cosPhi,\n dvdPhi = (-3 * r + z * k) * drdPhi,\n dp2dPhi = (-v * cosPhi - (1 - sinPhi) * dvdPhi) / (v * v),\n dpdPhi = (0.5 * dp2dPhi) / p,\n dhdPhi = q * dpdPhi - 2 * r * p * drdPhi,\n dra2dPhi = r * j * dp2dPhi + p2 * k * drdPhi,\n mu = -secPhi * drdPhi,\n nu = -secPhi * dra2dPhi,\n zeta = -2 * secPhi * dhdPhi,\n lambda1 = 4 * lambda / pi,\n delta;\n\n // Slower but accurate bisection method.\n if (lambda > 0.222 * pi || phi < pi / 4 && lambda > 0.175 * pi) {\n x = (h + r * sqrt(a2 * (1 + r2) - h * h)) / (1 + r2);\n if (lambda > pi / 4) return [x, x];\n var x1 = x, x0 = 0.5 * x;\n x = 0.5 * (x0 + x1), i = 50;\n do {\n var g = sqrt(a2 - x * x),\n f = (x * (zeta + mu * g) + nu * asin(x / a)) - lambda1;\n if (!f) break;\n if (f < 0) x0 = x;\n else x1 = x;\n x = 0.5 * (x0 + x1);\n } while (abs(x1 - x0) > epsilon && --i > 0);\n }\n\n // Newton-Raphson.\n else {\n x = epsilon, i = 25;\n do {\n var x2 = x * x,\n g2 = sqrt(a2 - x2),\n zetaMug = zeta + mu * g2,\n f2 = x * zetaMug + nu * asin(x / a) - lambda1,\n df = zetaMug + (nu - mu * x2) / g2;\n x -= delta = g2 ? f2 / df : 0;\n } while (abs(delta) > epsilon && --i > 0);\n }\n\n return [x, -h - r * sqrt(a2 - x * x)];\n}\n\nfunction gringortenHexadecantInvert(x, y) {\n var x0 = 0,\n x1 = 1,\n r = 0.5,\n i = 50;\n\n while (true) {\n var r2 = r * r,\n sinPhi = sqrt(r),\n z = asin(1 / sqrt(1 + r2)),\n v = (1 - r2) + r * (1 + r2) * z,\n p2 = (1 - sinPhi) / v,\n p = sqrt(p2),\n a2 = p2 * (1 + r2),\n h = p * (1 - r2),\n g2 = a2 - x * x,\n g = sqrt(g2),\n y0 = y + h + r * g;\n if (abs(x1 - x0) < epsilon2 || --i === 0 || y0 === 0) break;\n if (y0 > 0) x0 = r;\n else x1 = r;\n r = 0.5 * (x0 + x1);\n }\n\n if (!i) return null;\n\n var phi = asin(sinPhi),\n cosPhi = cos(phi),\n secPhi = 1 / cosPhi,\n drdPhi = 2 * sinPhi * cosPhi,\n dvdPhi = (-3 * r + z * (1 + 3 * r2)) * drdPhi,\n dp2dPhi = (-v * cosPhi - (1 - sinPhi) * dvdPhi) / (v * v),\n dpdPhi = 0.5 * dp2dPhi / p,\n dhdPhi = (1 - r2) * dpdPhi - 2 * r * p * drdPhi,\n zeta = -2 * secPhi * dhdPhi,\n mu = -secPhi * drdPhi,\n nu = -secPhi * (r * (1 + r2) * dp2dPhi + p2 * (1 + 3 * r2) * drdPhi);\n\n return [pi / 4 * (x * (zeta + mu * g) + nu * asin(x / sqrt(a2))), phi];\n}\n\nfunction gringorten() {\n return d3Geo.geoProjection(squareRaw(gringortenRaw))\n .scale(239.75);\n}\n\n// Returns [sn, cn, dn](u + iv|m).\nfunction ellipticJi(u, v, m) {\n var a, b, c;\n if (!u) {\n b = ellipticJ(v, 1 - m);\n return [\n [0, b[0] / b[1]],\n [1 / b[1], 0],\n [b[2] / b[1], 0]\n ];\n }\n a = ellipticJ(u, m);\n if (!v) return [[a[0], 0], [a[1], 0], [a[2], 0]];\n b = ellipticJ(v, 1 - m);\n c = b[1] * b[1] + m * a[0] * a[0] * b[0] * b[0];\n return [\n [a[0] * b[2] / c, a[1] * a[2] * b[0] * b[1] / c],\n [a[1] * b[1] / c, -a[0] * a[2] * b[0] * b[2] / c],\n [a[2] * b[1] * b[2] / c, -m * a[0] * a[1] * b[0] / c]\n ];\n}\n\n// Returns [sn, cn, dn, ph](u|m).\nfunction ellipticJ(u, m) {\n var ai, b, phi, t, twon;\n if (m < epsilon) {\n t = sin(u);\n b = cos(u);\n ai = m * (u - t * b) / 4;\n return [\n t - ai * b,\n b + ai * t,\n 1 - m * t * t / 2,\n u - ai\n ];\n }\n if (m >= 1 - epsilon) {\n ai = (1 - m) / 4;\n b = cosh(u);\n t = tanh(u);\n phi = 1 / b;\n twon = b * sinh(u);\n return [\n t + ai * (twon - u) / (b * b),\n phi - ai * t * phi * (twon - u),\n phi + ai * t * phi * (twon + u),\n 2 * atan(exp(u)) - halfPi + ai * (twon - u) / b\n ];\n }\n\n var a = [1, 0, 0, 0, 0, 0, 0, 0, 0],\n c = [sqrt(m), 0, 0, 0, 0, 0, 0, 0, 0],\n i = 0;\n b = sqrt(1 - m);\n twon = 1;\n\n while (abs(c[i] / a[i]) > epsilon && i < 8) {\n ai = a[i++];\n c[i] = (ai - b) / 2;\n a[i] = (ai + b) / 2;\n b = sqrt(ai * b);\n twon *= 2;\n }\n\n phi = twon * a[i] * u;\n do {\n t = c[i] * sin(b = phi) / a[i];\n phi = (asin(t) + phi) / 2;\n } while (--i);\n\n return [sin(phi), t = cos(phi), t / cos(phi - b), phi];\n}\n\n// Calculate F(phi+iPsi|m).\n// See Abramowitz and Stegun, 17.4.11.\nfunction ellipticFi(phi, psi, m) {\n var r = abs(phi),\n i = abs(psi),\n sinhPsi = sinh(i);\n if (r) {\n var cscPhi = 1 / sin(r),\n cotPhi2 = 1 / (tan(r) * tan(r)),\n b = -(cotPhi2 + m * (sinhPsi * sinhPsi * cscPhi * cscPhi) - 1 + m),\n c = (m - 1) * cotPhi2,\n cotLambda2 = (-b + sqrt(b * b - 4 * c)) / 2;\n return [\n ellipticF(atan(1 / sqrt(cotLambda2)), m) * sign(phi),\n ellipticF(atan(sqrt((cotLambda2 / cotPhi2 - 1) / m)), 1 - m) * sign(psi)\n ];\n }\n return [\n 0,\n ellipticF(atan(sinhPsi), 1 - m) * sign(psi)\n ];\n}\n\n// Calculate F(phi|m) where m = k² = sin²α.\n// See Abramowitz and Stegun, 17.6.7.\nfunction ellipticF(phi, m) {\n if (!m) return phi;\n if (m === 1) return log(tan(phi / 2 + quarterPi));\n var a = 1,\n b = sqrt(1 - m),\n c = sqrt(m);\n for (var i = 0; abs(c) > epsilon; i++) {\n if (phi % pi) {\n var dPhi = atan(b * tan(phi) / a);\n if (dPhi < 0) dPhi += pi;\n phi += dPhi + ~~(phi / pi) * pi;\n } else phi += phi;\n c = (a + b) / 2;\n b = sqrt(a * b);\n c = ((a = c) - b) / 2;\n }\n return phi / (pow(2, i) * a);\n}\n\nfunction guyouRaw(lambda, phi) {\n var k_ = (sqrt2 - 1) / (sqrt2 + 1),\n k = sqrt(1 - k_ * k_),\n K = ellipticF(halfPi, k * k),\n f = -1,\n psi = log(tan(pi / 4 + abs(phi) / 2)),\n r = exp(f * psi) / sqrt(k_),\n at = guyouComplexAtan(r * cos(f * lambda), r * sin(f * lambda)),\n t = ellipticFi(at[0], at[1], k * k);\n return [-t[1], (phi >= 0 ? 1 : -1) * (0.5 * K - t[0])];\n}\n\nfunction guyouComplexAtan(x, y) {\n var x2 = x * x,\n y_1 = y + 1,\n t = 1 - x2 - y * y;\n return [\n 0.5 * ((x >= 0 ? halfPi : -halfPi) - atan2(t, 2 * x)),\n -0.25 * log(t * t + 4 * x2) +0.5 * log(y_1 * y_1 + x2)\n ];\n}\n\nfunction guyouComplexDivide(a, b) {\n var denominator = b[0] * b[0] + b[1] * b[1];\n return [\n (a[0] * b[0] + a[1] * b[1]) / denominator,\n (a[1] * b[0] - a[0] * b[1]) / denominator\n ];\n}\n\nguyouRaw.invert = function(x, y) {\n var k_ = (sqrt2 - 1) / (sqrt2 + 1),\n k = sqrt(1 - k_ * k_),\n K = ellipticF(halfPi, k * k),\n f = -1,\n j = ellipticJi(0.5 * K - y, -x, k * k),\n tn = guyouComplexDivide(j[0], j[1]),\n lambda = atan2(tn[1], tn[0]) / f;\n return [\n lambda,\n 2 * atan(exp(0.5 / f * log(k_ * tn[0] * tn[0] + k_ * tn[1] * tn[1]))) - halfPi\n ];\n};\n\nfunction guyou() {\n return d3Geo.geoProjection(squareRaw(guyouRaw))\n .scale(151.496);\n}\n\nfunction hammerRetroazimuthalRaw(phi0) {\n var sinPhi0 = sin(phi0),\n cosPhi0 = cos(phi0),\n rotate = hammerRetroazimuthalRotation(phi0);\n\n rotate.invert = hammerRetroazimuthalRotation(-phi0);\n\n function forward(lambda, phi) {\n var p = rotate(lambda, phi);\n lambda = p[0], phi = p[1];\n var sinPhi = sin(phi),\n cosPhi = cos(phi),\n cosLambda = cos(lambda),\n z = acos(sinPhi0 * sinPhi + cosPhi0 * cosPhi * cosLambda),\n sinz = sin(z),\n K = abs(sinz) > epsilon ? z / sinz : 1;\n return [\n K * cosPhi0 * sin(lambda),\n (abs(lambda) > halfPi ? K : -K) // rotate for back hemisphere\n * (sinPhi0 * cosPhi - cosPhi0 * sinPhi * cosLambda)\n ];\n }\n\n forward.invert = function(x, y) {\n var rho = sqrt(x * x + y * y),\n sinz = -sin(rho),\n cosz = cos(rho),\n a = rho * cosz,\n b = -y * sinz,\n c = rho * sinPhi0,\n d = sqrt(a * a + b * b - c * c),\n phi = atan2(a * c + b * d, b * c - a * d),\n lambda = (rho > halfPi ? -1 : 1) * atan2(x * sinz, rho * cos(phi) * cosz + y * sin(phi) * sinz);\n return rotate.invert(lambda, phi);\n };\n\n return forward;\n}\n\n// Latitudinal rotation by phi0.\n// Temporary hack until D3 supports arbitrary small-circle clipping origins.\nfunction hammerRetroazimuthalRotation(phi0) {\n var sinPhi0 = sin(phi0),\n cosPhi0 = cos(phi0);\n\n return function(lambda, phi) {\n var cosPhi = cos(phi),\n x = cos(lambda) * cosPhi,\n y = sin(lambda) * cosPhi,\n z = sin(phi);\n return [\n atan2(y, x * cosPhi0 - z * sinPhi0),\n asin(z * cosPhi0 + x * sinPhi0)\n ];\n };\n}\n\nfunction hammerRetroazimuthal() {\n var phi0 = 0,\n m = d3Geo.geoProjectionMutator(hammerRetroazimuthalRaw),\n p = m(phi0),\n rotate_ = p.rotate,\n stream_ = p.stream,\n circle = d3Geo.geoCircle();\n\n p.parallel = function(_) {\n if (!arguments.length) return phi0 * degrees;\n var r = p.rotate();\n return m(phi0 = _ * radians).rotate(r);\n };\n\n // Temporary hack; see hammerRetroazimuthalRotation.\n p.rotate = function(_) {\n if (!arguments.length) return (_ = rotate_.call(p), _[1] += phi0 * degrees, _);\n rotate_.call(p, [_[0], _[1] - phi0 * degrees]);\n circle.center([-_[0], -_[1]]);\n return p;\n };\n\n p.stream = function(stream) {\n stream = stream_(stream);\n stream.sphere = function() {\n stream.polygonStart();\n var epsilon$$1 = 1e-2,\n ring = circle.radius(90 - epsilon$$1)().coordinates[0],\n n = ring.length - 1,\n i = -1,\n p;\n stream.lineStart();\n while (++i < n) stream.point((p = ring[i])[0], p[1]);\n stream.lineEnd();\n ring = circle.radius(90 + epsilon$$1)().coordinates[0];\n n = ring.length - 1;\n stream.lineStart();\n while (--i >= 0) stream.point((p = ring[i])[0], p[1]);\n stream.lineEnd();\n stream.polygonEnd();\n };\n return stream;\n };\n\n return p\n .scale(79.4187)\n .parallel(45)\n .clipAngle(180 - 1e-3);\n}\n\nvar K = 3,\n healpixParallel = asin(1 - 1 / K) * degrees,\n healpixLambert = cylindricalEqualAreaRaw(0);\n\nfunction healpixRaw(H) {\n var phi0 = healpixParallel * radians,\n dx = collignonRaw(pi, phi0)[0] - collignonRaw(-pi, phi0)[0],\n y0 = healpixLambert(0, phi0)[1],\n y1 = collignonRaw(0, phi0)[1],\n dy1 = sqrtPi - y1,\n k = tau / H,\n w = 4 / tau,\n h = y0 + (dy1 * dy1 * 4) / tau;\n\n function forward(lambda, phi) {\n var point,\n phi2 = abs(phi);\n if (phi2 > phi0) {\n var i = min(H - 1, max(0, floor((lambda + pi) / k)));\n lambda += pi * (H - 1) / H - i * k;\n point = collignonRaw(lambda, phi2);\n point[0] = point[0] * tau / dx - tau * (H - 1) / (2 * H) + i * tau / H;\n point[1] = y0 + (point[1] - y1) * 4 * dy1 / tau;\n if (phi < 0) point[1] = -point[1];\n } else {\n point = healpixLambert(lambda, phi);\n }\n point[0] *= w, point[1] /= h;\n return point;\n }\n\n forward.invert = function(x, y) {\n x /= w, y *= h;\n var y2 = abs(y);\n if (y2 > y0) {\n var i = min(H - 1, max(0, floor((x + pi) / k)));\n x = (x + pi * (H - 1) / H - i * k) * dx / tau;\n var point = collignonRaw.invert(x, 0.25 * (y2 - y0) * tau / dy1 + y1);\n point[0] -= pi * (H - 1) / H - i * k;\n if (y < 0) point[1] = -point[1];\n return point;\n }\n return healpixLambert.invert(x, y);\n };\n\n return forward;\n}\n\nfunction sphereTop(x, i) {\n return [x, i & 1 ? 90 - epsilon : healpixParallel];\n}\n\nfunction sphereBottom(x, i) {\n return [x, i & 1 ? -90 + epsilon : -healpixParallel];\n}\n\nfunction sphereNudge(d) {\n return [d[0] * (1 - epsilon), d[1]];\n}\n\nfunction sphere(step) {\n var c = [].concat(\n d3Array.range(-180, 180 + step / 2, step).map(sphereTop),\n d3Array.range(180, -180 - step / 2, -step).map(sphereBottom)\n );\n return {\n type: \"Polygon\",\n coordinates: [step === 180 ? c.map(sphereNudge) : c]\n };\n}\n\nfunction healpix() {\n var H = 4,\n m = d3Geo.geoProjectionMutator(healpixRaw),\n p = m(H),\n stream_ = p.stream;\n\n p.lobes = function(_) {\n return arguments.length ? m(H = +_) : H;\n };\n\n p.stream = function(stream) {\n var rotate = p.rotate(),\n rotateStream = stream_(stream),\n sphereStream = (p.rotate([0, 0]), stream_(stream));\n p.rotate(rotate);\n rotateStream.sphere = function() { d3Geo.geoStream(sphere(180 / H), sphereStream); };\n return rotateStream;\n };\n\n return p\n .scale(239.75);\n}\n\nfunction hillRaw(K) {\n var L = 1 + K,\n sinBt = sin(1 / L),\n Bt = asin(sinBt),\n A = 2 * sqrt(pi / (B = pi + 4 * Bt * L)),\n B,\n rho0 = 0.5 * A * (L + sqrt(K * (2 + K))),\n K2 = K * K,\n L2 = L * L;\n\n function forward(lambda, phi) {\n var t = 1 - sin(phi),\n rho,\n omega;\n if (t && t < 2) {\n var theta = halfPi - phi, i = 25, delta;\n do {\n var sinTheta = sin(theta),\n cosTheta = cos(theta),\n Bt_Bt1 = Bt + atan2(sinTheta, L - cosTheta),\n C = 1 + L2 - 2 * L * cosTheta;\n theta -= delta = (theta - K2 * Bt - L * sinTheta + C * Bt_Bt1 -0.5 * t * B) / (2 * L * sinTheta * Bt_Bt1);\n } while (abs(delta) > epsilon2 && --i > 0);\n rho = A * sqrt(C);\n omega = lambda * Bt_Bt1 / pi;\n } else {\n rho = A * (K + t);\n omega = lambda * Bt / pi;\n }\n return [\n rho * sin(omega),\n rho0 - rho * cos(omega)\n ];\n }\n\n forward.invert = function(x, y) {\n var rho2 = x * x + (y -= rho0) * y,\n cosTheta = (1 + L2 - rho2 / (A * A)) / (2 * L),\n theta = acos(cosTheta),\n sinTheta = sin(theta),\n Bt_Bt1 = Bt + atan2(sinTheta, L - cosTheta);\n return [\n asin(x / sqrt(rho2)) * pi / Bt_Bt1,\n asin(1 - 2 * (theta - K2 * Bt - L * sinTheta + (1 + L2 - 2 * L * cosTheta) * Bt_Bt1) / B)\n ];\n };\n\n return forward;\n}\n\nfunction hill() {\n var K = 1,\n m = d3Geo.geoProjectionMutator(hillRaw),\n p = m(K);\n\n p.ratio = function(_) {\n return arguments.length ? m(K = +_) : K;\n };\n\n return p\n .scale(167.774)\n .center([0, 18.67]);\n}\n\nvar sinuMollweidePhi = 0.7109889596207567;\n\nvar sinuMollweideY = 0.0528035274542;\n\nfunction sinuMollweideRaw(lambda, phi) {\n return phi > -sinuMollweidePhi\n ? (lambda = mollweideRaw(lambda, phi), lambda[1] += sinuMollweideY, lambda)\n : sinusoidalRaw(lambda, phi);\n}\n\nsinuMollweideRaw.invert = function(x, y) {\n return y > -sinuMollweidePhi\n ? mollweideRaw.invert(x, y - sinuMollweideY)\n : sinusoidalRaw.invert(x, y);\n};\n\nfunction sinuMollweide() {\n return d3Geo.geoProjection(sinuMollweideRaw)\n .rotate([-20, -55])\n .scale(164.263)\n .center([0, -5.4036]);\n}\n\nfunction homolosineRaw(lambda, phi) {\n return abs(phi) > sinuMollweidePhi\n ? (lambda = mollweideRaw(lambda, phi), lambda[1] -= phi > 0 ? sinuMollweideY : -sinuMollweideY, lambda)\n : sinusoidalRaw(lambda, phi);\n}\n\nhomolosineRaw.invert = function(x, y) {\n return abs(y) > sinuMollweidePhi\n ? mollweideRaw.invert(x, y + (y > 0 ? sinuMollweideY : -sinuMollweideY))\n : sinusoidalRaw.invert(x, y);\n};\n\nfunction homolosine() {\n return d3Geo.geoProjection(homolosineRaw)\n .scale(152.63);\n}\n\nfunction hufnagelRaw(a, b, psiMax, ratio) {\n var k = sqrt(\n (4 * pi) /\n (2 * psiMax +\n (1 + a - b / 2) * sin(2 * psiMax) +\n ((a + b) / 2) * sin(4 * psiMax) +\n (b / 2) * sin(6 * psiMax))\n ),\n c = sqrt(\n ratio *\n sin(psiMax) *\n sqrt((1 + a * cos(2 * psiMax) + b * cos(4 * psiMax)) / (1 + a + b))\n ),\n M = psiMax * mapping(1);\n\n function radius(psi) {\n return sqrt(1 + a * cos(2 * psi) + b * cos(4 * psi));\n }\n\n function mapping(t) {\n var psi = t * psiMax;\n return (\n (2 * psi +\n (1 + a - b / 2) * sin(2 * psi) +\n ((a + b) / 2) * sin(4 * psi) +\n (b / 2) * sin(6 * psi)) /\n psiMax\n );\n }\n\n function inversemapping(psi) {\n return radius(psi) * sin(psi);\n }\n\n var forward = function(lambda, phi) {\n var psi = psiMax * solve(mapping, (M * sin(phi)) / psiMax, phi / pi);\n if (isNaN(psi)) psi = psiMax * sign(phi);\n var kr = k * radius(psi);\n return [((kr * c * lambda) / pi) * cos(psi), (kr / c) * sin(psi)];\n };\n\n forward.invert = function(x, y) {\n var psi = solve(inversemapping, (y * c) / k);\n return [\n (x * pi) / (cos(psi) * k * c * radius(psi)),\n asin((psiMax * mapping(psi / psiMax)) / M)\n ];\n };\n\n if (psiMax === 0) {\n k = sqrt(ratio / pi);\n forward = function(lambda, phi) {\n return [lambda * k, sin(phi) / k];\n };\n forward.invert = function(x, y) {\n return [x / k, asin(y * k)];\n };\n }\n\n return forward;\n}\n\nfunction hufnagel() {\n var a = 1,\n b = 0,\n psiMax = 45 * radians,\n ratio = 2,\n mutate = d3Geo.geoProjectionMutator(hufnagelRaw),\n projection = mutate(a, b, psiMax, ratio);\n\n projection.a = function(_) {\n return arguments.length ? mutate((a = +_), b, psiMax, ratio) : a;\n };\n projection.b = function(_) {\n return arguments.length ? mutate(a, (b = +_), psiMax, ratio) : b;\n };\n projection.psiMax = function(_) {\n return arguments.length\n ? mutate(a, b, (psiMax = +_ * radians), ratio)\n : psiMax * degrees;\n };\n projection.ratio = function(_) {\n return arguments.length ? mutate(a, b, psiMax, (ratio = +_)) : ratio;\n };\n\n return projection.scale(180.739);\n}\n\n// https://github.com/scijs/integrate-adaptive-simpson\n\n// This algorithm adapted from pseudocode in:\n// http://www.math.utk.edu/~ccollins/refs/Handouts/rich.pdf\nfunction adsimp (f, a, b, fa, fm, fb, V0, tol, maxdepth, depth, state) {\n if (state.nanEncountered) {\n return NaN;\n }\n\n var h, f1, f2, sl, sr, s2, m, V1, V2, err;\n\n h = b - a;\n f1 = f(a + h * 0.25);\n f2 = f(b - h * 0.25);\n\n // Simple check for NaN:\n if (isNaN(f1)) {\n state.nanEncountered = true;\n return;\n }\n\n // Simple check for NaN:\n if (isNaN(f2)) {\n state.nanEncountered = true;\n return;\n }\n\n sl = h * (fa + 4 * f1 + fm) / 12;\n sr = h * (fm + 4 * f2 + fb) / 12;\n s2 = sl + sr;\n err = (s2 - V0) / 15;\n\n if (depth > maxdepth) {\n state.maxDepthCount++;\n return s2 + err;\n } else if (Math.abs(err) < tol) {\n return s2 + err;\n } else {\n m = a + h * 0.5;\n\n V1 = adsimp(f, a, m, fa, f1, fm, sl, tol * 0.5, maxdepth, depth + 1, state);\n\n if (isNaN(V1)) {\n state.nanEncountered = true;\n return NaN;\n }\n\n V2 = adsimp(f, m, b, fm, f2, fb, sr, tol * 0.5, maxdepth, depth + 1, state);\n\n if (isNaN(V2)) {\n state.nanEncountered = true;\n return NaN;\n }\n\n return V1 + V2;\n }\n}\n\nfunction integrate (f, a, b, tol, maxdepth) {\n var state = {\n maxDepthCount: 0,\n nanEncountered: false\n };\n\n if (tol === undefined) {\n tol = 1e-8;\n }\n if (maxdepth === undefined) {\n maxdepth = 20;\n }\n\n var fa = f(a);\n var fm = f(0.5 * (a + b));\n var fb = f(b);\n\n var V0 = (fa + 4 * fm + fb) * (b - a) / 6;\n\n var result = adsimp(f, a, b, fa, fm, fb, V0, tol, maxdepth, 1, state);\n\n/*\n if (state.maxDepthCount > 0 && console && console.warn) {\n console.warn('integrate-adaptive-simpson: Warning: maximum recursion depth (' + maxdepth + ') reached ' + state.maxDepthCount + ' times');\n }\n\n if (state.nanEncountered && console && console.warn) {\n console.warn('integrate-adaptive-simpson: Warning: NaN encountered. Halting early.');\n }\n*/\n\n return result;\n}\n\nfunction hyperellipticalRaw(alpha, k, gamma) {\n\n function elliptic (f) {\n return alpha + (1 - alpha) * pow(1 - pow(f, k), 1 / k);\n }\n\n function z(f) {\n return integrate(elliptic, 0, f, 1e-4);\n }\n\n var G = 1 / z(1),\n n = 1000,\n m = (1 + 1e-8) * G,\n approx = [];\n for (var i = 0; i <= n; i++)\n approx.push(z(i / n) * m);\n\n function Y(sinphi) {\n var rmin = 0, rmax = n, r = n >> 1;\n do {\n if (approx[r] > sinphi) rmax = r; else rmin = r;\n r = (rmin + rmax) >> 1;\n } while (r > rmin);\n var u = approx[r + 1] - approx[r];\n if (u) u = (sinphi - approx[r + 1]) / u;\n return (r + 1 + u) / n;\n }\n\n var ratio = 2 * Y(1) / pi * G / gamma;\n\n var forward = function(lambda, phi) {\n var y = Y(abs(sin(phi))),\n x = elliptic(y) * lambda;\n y /= ratio;\n return [ x, (phi >= 0) ? y : -y ];\n };\n\n forward.invert = function(x, y) {\n var phi;\n y *= ratio;\n if (abs(y) < 1) phi = sign(y) * asin(z(abs(y)) * G);\n return [ x / elliptic(abs(y)), phi ];\n };\n\n return forward;\n}\n\nfunction hyperelliptical() {\n var alpha = 0,\n k = 2.5,\n gamma = 1.183136, // affine = sqrt(2 * gamma / pi) = 0.8679\n m = d3Geo.geoProjectionMutator(hyperellipticalRaw),\n p = m(alpha, k, gamma);\n\n p.alpha = function(_) {\n return arguments.length ? m(alpha = +_, k, gamma) : alpha;\n };\n\n p.k = function(_) {\n return arguments.length ? m(alpha, k = +_, gamma) : k;\n };\n\n p.gamma = function(_) {\n return arguments.length ? m(alpha, k, gamma = +_) : gamma;\n };\n\n return p\n .scale(152.63);\n}\n\nfunction pointEqual(a, b) {\n return abs(a[0] - b[0]) < epsilon && abs(a[1] - b[1]) < epsilon;\n}\n\nfunction interpolateLine(coordinates, m) {\n var i = -1,\n n = coordinates.length,\n p0 = coordinates[0],\n p1,\n dx,\n dy,\n resampled = [];\n while (++i < n) {\n p1 = coordinates[i];\n dx = (p1[0] - p0[0]) / m;\n dy = (p1[1] - p0[1]) / m;\n for (var j = 0; j < m; ++j) resampled.push([p0[0] + j * dx, p0[1] + j * dy]);\n p0 = p1;\n }\n resampled.push(p1);\n return resampled;\n}\n\nfunction interpolateSphere(lobes) {\n var coordinates = [],\n lobe,\n lambda0, phi0, phi1,\n lambda2, phi2,\n i, n = lobes[0].length;\n\n // Northern Hemisphere\n for (i = 0; i < n; ++i) {\n lobe = lobes[0][i];\n lambda0 = lobe[0][0], phi0 = lobe[0][1], phi1 = lobe[1][1];\n lambda2 = lobe[2][0], phi2 = lobe[2][1];\n coordinates.push(interpolateLine([\n [lambda0 + epsilon, phi0 + epsilon],\n [lambda0 + epsilon, phi1 - epsilon],\n [lambda2 - epsilon, phi1 - epsilon],\n [lambda2 - epsilon, phi2 + epsilon]\n ], 30));\n }\n\n // Southern Hemisphere\n for (i = lobes[1].length - 1; i >= 0; --i) {\n lobe = lobes[1][i];\n lambda0 = lobe[0][0], phi0 = lobe[0][1], phi1 = lobe[1][1];\n lambda2 = lobe[2][0], phi2 = lobe[2][1];\n coordinates.push(interpolateLine([\n [lambda2 - epsilon, phi2 - epsilon],\n [lambda2 - epsilon, phi1 + epsilon],\n [lambda0 + epsilon, phi1 + epsilon],\n [lambda0 + epsilon, phi0 - epsilon]\n ], 30));\n }\n\n return {\n type: \"Polygon\",\n coordinates: [d3Array.merge(coordinates)]\n };\n}\n\nfunction interrupt(project, lobes, inverse) {\n var sphere, bounds;\n\n function forward(lambda, phi) {\n var sign$$1 = phi < 0 ? -1 : +1, lobe = lobes[+(phi < 0)];\n for (var i = 0, n = lobe.length - 1; i < n && lambda > lobe[i][2][0]; ++i);\n var p = project(lambda - lobe[i][1][0], phi);\n p[0] += project(lobe[i][1][0], sign$$1 * phi > sign$$1 * lobe[i][0][1] ? lobe[i][0][1] : phi)[0];\n return p;\n }\n\n if (inverse) {\n forward.invert = inverse(forward);\n } else if (project.invert) {\n forward.invert = function(x, y) {\n var bound = bounds[+(y < 0)], lobe = lobes[+(y < 0)];\n for (var i = 0, n = bound.length; i < n; ++i) {\n var b = bound[i];\n if (b[0][0] <= x && x < b[1][0] && b[0][1] <= y && y < b[1][1]) {\n var p = project.invert(x - project(lobe[i][1][0], 0)[0], y);\n p[0] += lobe[i][1][0];\n return pointEqual(forward(p[0], p[1]), [x, y]) ? p : null;\n }\n }\n };\n }\n\n var p = d3Geo.geoProjection(forward),\n stream_ = p.stream;\n\n p.stream = function(stream) {\n var rotate = p.rotate(),\n rotateStream = stream_(stream),\n sphereStream = (p.rotate([0, 0]), stream_(stream));\n p.rotate(rotate);\n rotateStream.sphere = function() { d3Geo.geoStream(sphere, sphereStream); };\n return rotateStream;\n };\n \n p.lobes = function(_) {\n if (!arguments.length) return lobes.map(function(lobe) {\n return lobe.map(function(l) {\n return [\n [l[0][0] * degrees, l[0][1] * degrees],\n [l[1][0] * degrees, l[1][1] * degrees],\n [l[2][0] * degrees, l[2][1] * degrees]\n ];\n });\n });\n\n sphere = interpolateSphere(_);\n\n lobes = _.map(function(lobe) {\n return lobe.map(function(l) {\n return [\n [l[0][0] * radians, l[0][1] * radians],\n [l[1][0] * radians, l[1][1] * radians],\n [l[2][0] * radians, l[2][1] * radians]\n ];\n });\n });\n\n bounds = lobes.map(function(lobe) {\n return lobe.map(function(l) {\n var x0 = project(l[0][0], l[0][1])[0],\n x1 = project(l[2][0], l[2][1])[0],\n y0 = project(l[1][0], l[0][1])[1],\n y1 = project(l[1][0], l[1][1])[1],\n t;\n if (y0 > y1) t = y0, y0 = y1, y1 = t;\n return [[x0, y0], [x1, y1]];\n });\n });\n\n return p;\n };\n\n if (lobes != null) p.lobes(lobes);\n\n return p;\n}\n\nvar lobes = [[ // northern hemisphere\n [[-180, 0], [-100, 90], [ -40, 0]],\n [[ -40, 0], [ 30, 90], [ 180, 0]]\n], [ // southern hemisphere\n [[-180, 0], [-160, -90], [-100, 0]],\n [[-100, 0], [ -60, -90], [ -20, 0]],\n [[ -20, 0], [ 20, -90], [ 80, 0]],\n [[ 80, 0], [ 140, -90], [ 180, 0]]\n]];\n\nfunction boggs$1() {\n return interrupt(boggsRaw, lobes)\n .scale(160.857);\n}\n\nvar lobes$1 = [[ // northern hemisphere\n [[-180, 0], [-100, 90], [ -40, 0]],\n [[ -40, 0], [ 30, 90], [ 180, 0]]\n], [ // southern hemisphere\n [[-180, 0], [-160, -90], [-100, 0]],\n [[-100, 0], [ -60, -90], [ -20, 0]],\n [[ -20, 0], [ 20, -90], [ 80, 0]],\n [[ 80, 0], [ 140, -90], [ 180, 0]]\n]];\n\nfunction homolosine$1() {\n return interrupt(homolosineRaw, lobes$1)\n .scale(152.63);\n}\n\nvar lobes$2 = [[ // northern hemisphere\n [[-180, 0], [-100, 90], [ -40, 0]],\n [[ -40, 0], [ 30, 90], [ 180, 0]]\n], [ // southern hemisphere\n [[-180, 0], [-160, -90], [-100, 0]],\n [[-100, 0], [ -60, -90], [ -20, 0]],\n [[ -20, 0], [ 20, -90], [ 80, 0]],\n [[ 80, 0], [ 140, -90], [ 180, 0]]\n]];\n\nfunction mollweide$1() {\n return interrupt(mollweideRaw, lobes$2)\n .scale(169.529);\n}\n\nvar lobes$3 = [[ // northern hemisphere\n [[-180, 0], [ -90, 90], [ 0, 0]],\n [[ 0, 0], [ 90, 90], [ 180, 0]]\n], [ // southern hemisphere\n [[-180, 0], [ -90, -90], [ 0, 0]],\n [[ 0, 0], [ 90, -90], [ 180, 0]]\n]];\n\nfunction mollweideHemispheres() {\n return interrupt(mollweideRaw, lobes$3)\n .scale(169.529)\n .rotate([20, 0]);\n}\n\nvar lobes$4 = [[ // northern hemisphere\n [[-180, 35], [ -30, 90], [ 0, 35]],\n [[ 0, 35], [ 30, 90], [ 180, 35]]\n], [ // southern hemisphere\n [[-180, -10], [-102, -90], [ -65, -10]],\n [[ -65, -10], [ 5, -90], [ 77, -10]],\n [[ 77, -10], [ 103, -90], [ 180, -10]]\n]];\n\nfunction sinuMollweide$1() {\n return interrupt(sinuMollweideRaw, lobes$4, solve2d)\n .rotate([-20, -55])\n .scale(164.263)\n .center([0, -5.4036]);\n}\n\nvar lobes$5 = [[ // northern hemisphere\n [[-180, 0], [-110, 90], [ -40, 0]],\n [[ -40, 0], [ 0, 90], [ 40, 0]],\n [[ 40, 0], [ 110, 90], [ 180, 0]]\n], [ // southern hemisphere\n [[-180, 0], [-110, -90], [ -40, 0]],\n [[ -40, 0], [ 0, -90], [ 40, 0]],\n [[ 40, 0], [ 110, -90], [ 180, 0]]\n]];\n\nfunction sinusoidal$1() {\n return interrupt(sinusoidalRaw, lobes$5)\n .scale(152.63)\n .rotate([-20, 0]);\n}\n\nfunction kavrayskiy7Raw(lambda, phi) {\n return [3 / tau * lambda * sqrt(pi * pi / 3 - phi * phi), phi];\n}\n\nkavrayskiy7Raw.invert = function(x, y) {\n return [tau / 3 * x / sqrt(pi * pi / 3 - y * y), y];\n};\n\nfunction kavrayskiy7() {\n return d3Geo.geoProjection(kavrayskiy7Raw)\n .scale(158.837);\n}\n\nfunction lagrangeRaw(n) {\n\n function forward(lambda, phi) {\n if (abs(abs(phi) - halfPi) < epsilon) return [0, phi < 0 ? -2 : 2];\n var sinPhi = sin(phi),\n v = pow((1 + sinPhi) / (1 - sinPhi), n / 2),\n c = 0.5 * (v + 1 / v) + cos(lambda *= n);\n return [\n 2 * sin(lambda) / c,\n (v - 1 / v) / c\n ];\n }\n\n forward.invert = function(x, y) {\n var y0 = abs(y);\n if (abs(y0 - 2) < epsilon) return x ? null : [0, sign(y) * halfPi];\n if (y0 > 2) return null;\n\n x /= 2, y /= 2;\n var x2 = x * x,\n y2 = y * y,\n t = 2 * y / (1 + x2 + y2); // tanh(nPhi)\n t = pow((1 + t) / (1 - t), 1 / n);\n return [\n atan2(2 * x, 1 - x2 - y2) / n,\n asin((t - 1) / (t + 1))\n ];\n };\n\n return forward;\n}\n\nfunction lagrange() {\n var n = 0.5,\n m = d3Geo.geoProjectionMutator(lagrangeRaw),\n p = m(n);\n\n p.spacing = function(_) {\n return arguments.length ? m(n = +_) : n;\n };\n\n return p\n .scale(124.75);\n}\n\nvar pi_sqrt2 = pi / sqrt2;\n\nfunction larriveeRaw(lambda, phi) {\n return [\n lambda * (1 + sqrt(cos(phi))) / 2,\n phi / (cos(phi / 2) * cos(lambda / 6))\n ];\n}\n\nlarriveeRaw.invert = function(x, y) {\n var x0 = abs(x),\n y0 = abs(y),\n lambda = epsilon,\n phi = halfPi;\n if (y0 < pi_sqrt2) phi *= y0 / pi_sqrt2;\n else lambda += 6 * acos(pi_sqrt2 / y0);\n for (var i = 0; i < 25; i++) {\n var sinPhi = sin(phi),\n sqrtcosPhi = sqrt(cos(phi)),\n sinPhi_2 = sin(phi / 2),\n cosPhi_2 = cos(phi / 2),\n sinLambda_6 = sin(lambda / 6),\n cosLambda_6 = cos(lambda / 6),\n f0 = 0.5 * lambda * (1 + sqrtcosPhi) - x0,\n f1 = phi / (cosPhi_2 * cosLambda_6) - y0,\n df0dPhi = sqrtcosPhi ? -0.25 * lambda * sinPhi / sqrtcosPhi : 0,\n df0dLambda = 0.5 * (1 + sqrtcosPhi),\n df1dPhi = (1 + 0.5 * phi * sinPhi_2 / cosPhi_2) / (cosPhi_2 * cosLambda_6),\n df1dLambda = (phi / cosPhi_2) * (sinLambda_6 / 6) / (cosLambda_6 * cosLambda_6),\n denom = df0dPhi * df1dLambda - df1dPhi * df0dLambda,\n dPhi = (f0 * df1dLambda - f1 * df0dLambda) / denom,\n dLambda = (f1 * df0dPhi - f0 * df1dPhi) / denom;\n phi -= dPhi;\n lambda -= dLambda;\n if (abs(dPhi) < epsilon && abs(dLambda) < epsilon) break;\n }\n return [x < 0 ? -lambda : lambda, y < 0 ? -phi : phi];\n};\n\nfunction larrivee() {\n return d3Geo.geoProjection(larriveeRaw)\n .scale(97.2672);\n}\n\nfunction laskowskiRaw(lambda, phi) {\n var lambda2 = lambda * lambda, phi2 = phi * phi;\n return [\n lambda * (0.975534 + phi2 * (-0.119161 + lambda2 * -0.0143059 + phi2 * -0.0547009)),\n phi * (1.00384 + lambda2 * (0.0802894 + phi2 * -0.02855 + lambda2 * 0.000199025) + phi2 * (0.0998909 + phi2 * -0.0491032))\n ];\n}\n\nlaskowskiRaw.invert = function(x, y) {\n var lambda = sign(x) * pi,\n phi = y / 2,\n i = 50;\n do {\n var lambda2 = lambda * lambda,\n phi2 = phi * phi,\n lambdaPhi = lambda * phi,\n fx = lambda * (0.975534 + phi2 * (-0.119161 + lambda2 * -0.0143059 + phi2 * -0.0547009)) - x,\n fy = phi * (1.00384 + lambda2 * (0.0802894 + phi2 * -0.02855 + lambda2 * 0.000199025) + phi2 * (0.0998909 + phi2 * -0.0491032)) - y,\n deltaxDeltaLambda = 0.975534 - phi2 * (0.119161 + 3 * lambda2 * 0.0143059 + phi2 * 0.0547009),\n deltaxDeltaPhi = -lambdaPhi * (2 * 0.119161 + 4 * 0.0547009 * phi2 + 2 * 0.0143059 * lambda2),\n deltayDeltaLambda = lambdaPhi * (2 * 0.0802894 + 4 * 0.000199025 * lambda2 + 2 * -0.02855 * phi2),\n deltayDeltaPhi = 1.00384 + lambda2 * (0.0802894 + 0.000199025 * lambda2) + phi2 * (3 * (0.0998909 - 0.02855 * lambda2) - 5 * 0.0491032 * phi2),\n denominator = deltaxDeltaPhi * deltayDeltaLambda - deltayDeltaPhi * deltaxDeltaLambda,\n deltaLambda = (fy * deltaxDeltaPhi - fx * deltayDeltaPhi) / denominator,\n deltaPhi = (fx * deltayDeltaLambda - fy * deltaxDeltaLambda) / denominator;\n lambda -= deltaLambda, phi -= deltaPhi;\n } while ((abs(deltaLambda) > epsilon || abs(deltaPhi) > epsilon) && --i > 0);\n return i && [lambda, phi];\n};\n\nfunction laskowski() {\n return d3Geo.geoProjection(laskowskiRaw)\n .scale(139.98);\n}\n\nfunction littrowRaw(lambda, phi) {\n return [\n sin(lambda) / cos(phi),\n tan(phi) * cos(lambda)\n ];\n}\n\nlittrowRaw.invert = function(x, y) {\n var x2 = x * x,\n y2 = y * y,\n y2_1 = y2 + 1,\n x2_y2_1 = x2 + y2_1,\n cosPhi = x\n ? sqrt1_2 * sqrt((x2_y2_1 - sqrt(x2_y2_1 * x2_y2_1 - 4 * x2)) / x2)\n : 1 / sqrt(y2_1);\n return [\n asin(x * cosPhi),\n sign(y) * acos(cosPhi)\n ];\n};\n\nfunction littrow() {\n return d3Geo.geoProjection(littrowRaw)\n .scale(144.049)\n .clipAngle(90 - 1e-3);\n}\n\nfunction loximuthalRaw(phi0) {\n var cosPhi0 = cos(phi0),\n tanPhi0 = tan(quarterPi + phi0 / 2);\n\n function forward(lambda, phi) {\n var y = phi - phi0,\n x = abs(y) < epsilon ? lambda * cosPhi0\n : abs(x = quarterPi + phi / 2) < epsilon || abs(abs(x) - halfPi) < epsilon\n ? 0 : lambda * y / log(tan(x) / tanPhi0);\n return [x, y];\n }\n\n forward.invert = function(x, y) {\n var lambda,\n phi = y + phi0;\n return [\n abs(y) < epsilon ? x / cosPhi0\n : (abs(lambda = quarterPi + phi / 2) < epsilon || abs(abs(lambda) - halfPi) < epsilon) ? 0\n : x * log(tan(lambda) / tanPhi0) / y,\n phi\n ];\n };\n\n return forward;\n}\n\nfunction loximuthal() {\n return parallel1(loximuthalRaw)\n .parallel(40)\n .scale(158.837);\n}\n\nfunction millerRaw(lambda, phi) {\n return [lambda, 1.25 * log(tan(quarterPi + 0.4 * phi))];\n}\n\nmillerRaw.invert = function(x, y) {\n return [x, 2.5 * atan(exp(0.8 * y)) - 0.625 * pi];\n};\n\nfunction miller() {\n return d3Geo.geoProjection(millerRaw)\n .scale(108.318);\n}\n\nfunction modifiedStereographicRaw(C) {\n var m = C.length - 1;\n\n function forward(lambda, phi) {\n var cosPhi = cos(phi),\n k = 2 / (1 + cosPhi * cos(lambda)),\n zr = k * cosPhi * sin(lambda),\n zi = k * sin(phi),\n i = m,\n w = C[i],\n ar = w[0],\n ai = w[1],\n t;\n while (--i >= 0) {\n w = C[i];\n ar = w[0] + zr * (t = ar) - zi * ai;\n ai = w[1] + zr * ai + zi * t;\n }\n ar = zr * (t = ar) - zi * ai;\n ai = zr * ai + zi * t;\n return [ar, ai];\n }\n\n forward.invert = function(x, y) {\n var i = 20,\n zr = x,\n zi = y;\n do {\n var j = m,\n w = C[j],\n ar = w[0],\n ai = w[1],\n br = 0,\n bi = 0,\n t;\n\n while (--j >= 0) {\n w = C[j];\n br = ar + zr * (t = br) - zi * bi;\n bi = ai + zr * bi + zi * t;\n ar = w[0] + zr * (t = ar) - zi * ai;\n ai = w[1] + zr * ai + zi * t;\n }\n br = ar + zr * (t = br) - zi * bi;\n bi = ai + zr * bi + zi * t;\n ar = zr * (t = ar) - zi * ai - x;\n ai = zr * ai + zi * t - y;\n\n var denominator = br * br + bi * bi, deltar, deltai;\n zr -= deltar = (ar * br + ai * bi) / denominator;\n zi -= deltai = (ai * br - ar * bi) / denominator;\n } while (abs(deltar) + abs(deltai) > epsilon * epsilon && --i > 0);\n\n if (i) {\n var rho = sqrt(zr * zr + zi * zi),\n c = 2 * atan(rho * 0.5),\n sinc = sin(c);\n return [atan2(zr * sinc, rho * cos(c)), rho ? asin(zi * sinc / rho) : 0];\n }\n };\n\n return forward;\n}\n\nvar alaska = [[0.9972523, 0], [0.0052513, -0.0041175], [0.0074606, 0.0048125], [-0.0153783, -0.1968253], [0.0636871, -0.1408027], [0.3660976, -0.2937382]],\n gs48 = [[0.98879, 0], [0, 0], [-0.050909, 0], [0, 0], [0.075528, 0]],\n gs50 = [[0.9842990, 0], [0.0211642, 0.0037608], [-0.1036018, -0.0575102], [-0.0329095, -0.0320119], [0.0499471, 0.1223335], [0.0260460, 0.0899805], [0.0007388, -0.1435792], [0.0075848, -0.1334108], [-0.0216473, 0.0776645], [-0.0225161, 0.0853673]],\n miller$1 = [[0.9245, 0], [0, 0], [0.01943, 0]],\n lee = [[0.721316, 0], [0, 0], [-0.00881625, -0.00617325]];\n\nfunction modifiedStereographicAlaska() {\n return modifiedStereographic(alaska, [152, -64])\n .scale(1400)\n .center([-160.908, 62.4864])\n .clipAngle(30)\n .angle(7.8);\n}\n\nfunction modifiedStereographicGs48() {\n return modifiedStereographic(gs48, [95, -38])\n .scale(1000)\n .clipAngle(55)\n .center([-96.5563, 38.8675]);\n}\n\nfunction modifiedStereographicGs50() {\n return modifiedStereographic(gs50, [120, -45])\n .scale(359.513)\n .clipAngle(55)\n .center([-117.474, 53.0628]);\n}\n\nfunction modifiedStereographicMiller() {\n return modifiedStereographic(miller$1, [-20, -18])\n .scale(209.091)\n .center([20, 16.7214])\n .clipAngle(82);\n}\n\nfunction modifiedStereographicLee() {\n return modifiedStereographic(lee, [165, 10])\n .scale(250)\n .clipAngle(130)\n .center([-165, -10]);\n}\n\nfunction modifiedStereographic(coefficients, rotate) {\n var p = d3Geo.geoProjection(modifiedStereographicRaw(coefficients)).rotate(rotate).clipAngle(90),\n r = d3Geo.geoRotation(rotate),\n center = p.center;\n\n delete p.rotate;\n\n p.center = function(_) {\n return arguments.length ? center(r(_)) : r.invert(center());\n };\n\n return p;\n}\n\nvar sqrt6 = sqrt(6),\n sqrt7 = sqrt(7);\n\nfunction mtFlatPolarParabolicRaw(lambda, phi) {\n var theta = asin(7 * sin(phi) / (3 * sqrt6));\n return [\n sqrt6 * lambda * (2 * cos(2 * theta / 3) - 1) / sqrt7,\n 9 * sin(theta / 3) / sqrt7\n ];\n}\n\nmtFlatPolarParabolicRaw.invert = function(x, y) {\n var theta = 3 * asin(y * sqrt7 / 9);\n return [\n x * sqrt7 / (sqrt6 * (2 * cos(2 * theta / 3) - 1)),\n asin(sin(theta) * 3 * sqrt6 / 7)\n ];\n};\n\nfunction mtFlatPolarParabolic() {\n return d3Geo.geoProjection(mtFlatPolarParabolicRaw)\n .scale(164.859);\n}\n\nfunction mtFlatPolarQuarticRaw(lambda, phi) {\n var k = (1 + sqrt1_2) * sin(phi),\n theta = phi;\n for (var i = 0, delta; i < 25; i++) {\n theta -= delta = (sin(theta / 2) + sin(theta) - k) / (0.5 * cos(theta / 2) + cos(theta));\n if (abs(delta) < epsilon) break;\n }\n return [\n lambda * (1 + 2 * cos(theta) / cos(theta / 2)) / (3 * sqrt2),\n 2 * sqrt(3) * sin(theta / 2) / sqrt(2 + sqrt2)\n ];\n}\n\nmtFlatPolarQuarticRaw.invert = function(x, y) {\n var sinTheta_2 = y * sqrt(2 + sqrt2) / (2 * sqrt(3)),\n theta = 2 * asin(sinTheta_2);\n return [\n 3 * sqrt2 * x / (1 + 2 * cos(theta) / cos(theta / 2)),\n asin((sinTheta_2 + sin(theta)) / (1 + sqrt1_2))\n ];\n};\n\nfunction mtFlatPolarQuartic() {\n return d3Geo.geoProjection(mtFlatPolarQuarticRaw)\n .scale(188.209);\n}\n\nfunction mtFlatPolarSinusoidalRaw(lambda, phi) {\n var A = sqrt(6 / (4 + pi)),\n k = (1 + pi / 4) * sin(phi),\n theta = phi / 2;\n for (var i = 0, delta; i < 25; i++) {\n theta -= delta = (theta / 2 + sin(theta) - k) / (0.5 + cos(theta));\n if (abs(delta) < epsilon) break;\n }\n return [\n A * (0.5 + cos(theta)) * lambda / 1.5,\n A * theta\n ];\n}\n\nmtFlatPolarSinusoidalRaw.invert = function(x, y) {\n var A = sqrt(6 / (4 + pi)),\n theta = y / A;\n if (abs(abs(theta) - halfPi) < epsilon) theta = theta < 0 ? -halfPi : halfPi;\n return [\n 1.5 * x / (A * (0.5 + cos(theta))),\n asin((theta / 2 + sin(theta)) / (1 + pi / 4))\n ];\n};\n\nfunction mtFlatPolarSinusoidal() {\n return d3Geo.geoProjection(mtFlatPolarSinusoidalRaw)\n .scale(166.518);\n}\n\nfunction naturalEarth2Raw(lambda, phi) {\n var phi2 = phi * phi, phi4 = phi2 * phi2, phi6 = phi2 * phi4;\n return [\n lambda * (0.84719 - 0.13063 * phi2 + phi6 * phi6 * (-0.04515 + 0.05494 * phi2 - 0.02326 * phi4 + 0.00331 * phi6)),\n phi * (1.01183 + phi4 * phi4 * (-0.02625 + 0.01926 * phi2 - 0.00396 * phi4))\n ];\n}\n\nnaturalEarth2Raw.invert = function(x, y) {\n var phi = y, i = 25, delta, phi2, phi4, phi6;\n do {\n phi2 = phi * phi; phi4 = phi2 * phi2;\n phi -= delta = ((phi * (1.01183 + phi4 * phi4 * (-0.02625 + 0.01926 * phi2 - 0.00396 * phi4))) - y) /\n (1.01183 + phi4 * phi4 * ((9 * -0.02625) + (11 * 0.01926) * phi2 + (13 * -0.00396) * phi4));\n } while (abs(delta) > epsilon2 && --i > 0);\n phi2 = phi * phi; phi4 = phi2 * phi2; phi6 = phi2 * phi4;\n return [\n x / (0.84719 - 0.13063 * phi2 + phi6 * phi6 * (-0.04515 + 0.05494 * phi2 - 0.02326 * phi4 + 0.00331 * phi6)),\n phi\n ];\n};\n\nfunction naturalEarth2() {\n return d3Geo.geoProjection(naturalEarth2Raw)\n .scale(175.295);\n}\n\nfunction nellHammerRaw(lambda, phi) {\n return [\n lambda * (1 + cos(phi)) / 2,\n 2 * (phi - tan(phi / 2))\n ];\n}\n\nnellHammerRaw.invert = function(x, y) {\n var p = y / 2;\n for (var i = 0, delta = Infinity; i < 10 && abs(delta) > epsilon; ++i) {\n var c = cos(y / 2);\n y -= delta = (y - tan(y / 2) - p) / (1 - 0.5 / (c * c));\n }\n return [\n 2 * x / (1 + cos(y)),\n y\n ];\n};\n\nfunction nellHammer() {\n return d3Geo.geoProjection(nellHammerRaw)\n .scale(152.63);\n}\n\nvar lobes$6 = [[ // northern hemisphere\n [[-180, 0], [-90, 90], [ 0, 0]],\n [[ 0, 0], [ 90, 90], [ 180, 0]]\n], [ // southern hemisphere\n [[-180, 0], [-90, -90], [ 0, 0]],\n [[ 0, 0], [ 90, -90], [180, 0]]\n]];\n\nfunction quarticAuthalic() {\n return interrupt(hammerRaw(Infinity), lobes$6)\n .rotate([20, 0])\n .scale(152.63);\n}\n\n// Based on Torben Jansen's implementation\n// https://beta.observablehq.com/@toja/nicolosi-globular-projection\n// https://beta.observablehq.com/@toja/nicolosi-globular-inverse\n\nfunction nicolosiRaw(lambda, phi) {\n var sinPhi = sin(phi),\n q = cos(phi),\n s = sign(lambda);\n\n if (lambda === 0 || abs(phi) === halfPi) return [0, phi];\n else if (phi === 0) return [lambda, 0];\n else if (abs(lambda) === halfPi) return [lambda * q, halfPi * sinPhi];\n\n var b = pi / (2 * lambda) - (2 * lambda) / pi,\n c = (2 * phi) / pi,\n d = (1 - c * c) / (sinPhi - c);\n\n var b2 = b * b,\n d2 = d * d,\n b2d2 = 1 + b2 / d2,\n d2b2 = 1 + d2 / b2;\n\n var M = ((b * sinPhi) / d - b / 2) / b2d2,\n N = ((d2 * sinPhi) / b2 + d / 2) / d2b2,\n m = M * M + (q * q) / b2d2,\n n = N * N - ((d2 * sinPhi * sinPhi) / b2 + d * sinPhi - 1) / d2b2;\n\n return [\n halfPi * (M + sqrt(m) * s),\n halfPi * (N + sqrt(n < 0 ? 0 : n) * sign(-phi * b) * s)\n ];\n}\n\nnicolosiRaw.invert = function(x, y) {\n\n x /= halfPi;\n y /= halfPi;\n\n var x2 = x * x,\n y2 = y * y,\n x2y2 = x2 + y2,\n pi2 = pi * pi;\n\n return [\n x ? (x2y2 -1 + sqrt((1 - x2y2) * (1 - x2y2) + 4 * x2)) / (2 * x) * halfPi : 0,\n solve(function(phi) {\n return (\n x2y2 * (pi * sin(phi) - 2 * phi) * pi +\n 4 * phi * phi * (y - sin(phi)) +\n 2 * pi * phi -\n pi2 * y\n );\n }, 0)\n ];\n};\n\nfunction nicolosi() {\n return d3Geo.geoProjection(nicolosiRaw)\n .scale(127.267);\n}\n\n// Based on Java implementation by Bojan Savric.\n// https://github.com/OSUCartography/JMapProjLib/blob/master/src/com/jhlabs/map/proj/PattersonProjection.java\n\nvar pattersonK1 = 1.0148,\n pattersonK2 = 0.23185,\n pattersonK3 = -0.14499,\n pattersonK4 = 0.02406,\n pattersonC1 = pattersonK1,\n pattersonC2 = 5 * pattersonK2,\n pattersonC3 = 7 * pattersonK3,\n pattersonC4 = 9 * pattersonK4,\n pattersonYmax = 1.790857183;\n\nfunction pattersonRaw(lambda, phi) {\n var phi2 = phi * phi;\n return [\n lambda,\n phi * (pattersonK1 + phi2 * phi2 * (pattersonK2 + phi2 * (pattersonK3 + pattersonK4 * phi2)))\n ];\n}\n\npattersonRaw.invert = function(x, y) {\n if (y > pattersonYmax) y = pattersonYmax;\n else if (y < -pattersonYmax) y = -pattersonYmax;\n var yc = y, delta;\n\n do { // Newton-Raphson\n var y2 = yc * yc;\n yc -= delta = ((yc * (pattersonK1 + y2 * y2 * (pattersonK2 + y2 * (pattersonK3 + pattersonK4 * y2)))) - y) / (pattersonC1 + y2 * y2 * (pattersonC2 + y2 * (pattersonC3 + pattersonC4 * y2)));\n } while (abs(delta) > epsilon);\n\n return [x, yc];\n};\n\nfunction patterson() {\n return d3Geo.geoProjection(pattersonRaw)\n .scale(139.319);\n}\n\nfunction polyconicRaw(lambda, phi) {\n if (abs(phi) < epsilon) return [lambda, 0];\n var tanPhi = tan(phi),\n k = lambda * sin(phi);\n return [\n sin(k) / tanPhi,\n phi + (1 - cos(k)) / tanPhi\n ];\n}\n\npolyconicRaw.invert = function(x, y) {\n if (abs(y) < epsilon) return [x, 0];\n var k = x * x + y * y,\n phi = y * 0.5,\n i = 10, delta;\n do {\n var tanPhi = tan(phi),\n secPhi = 1 / cos(phi),\n j = k - 2 * y * phi + phi * phi;\n phi -= delta = (tanPhi * j + 2 * (phi - y)) / (2 + j * secPhi * secPhi + 2 * (phi - y) * tanPhi);\n } while (abs(delta) > epsilon && --i > 0);\n tanPhi = tan(phi);\n return [\n (abs(y) < abs(phi + 1 / tanPhi) ? asin(x * tanPhi) : sign(y) * sign(x) * (acos(abs(x * tanPhi)) + halfPi)) / sin(phi),\n phi\n ];\n};\n\nfunction polyconic() {\n return d3Geo.geoProjection(polyconicRaw)\n .scale(103.74);\n}\n\n// Note: 6-element arrays are used to denote the 3x3 affine transform matrix:\n// [a, b, c,\n// d, e, f,\n// 0, 0, 1] - this redundant row is left out.\n\n// Transform matrix for [a0, a1] -> [b0, b1].\nfunction matrix(a, b) {\n var u = subtract(a[1], a[0]),\n v = subtract(b[1], b[0]),\n phi = angle$1(u, v),\n s = length(u) / length(v);\n\n return multiply([\n 1, 0, a[0][0],\n 0, 1, a[0][1]\n ], multiply([\n s, 0, 0,\n 0, s, 0\n ], multiply([\n cos(phi), sin(phi), 0,\n -sin(phi), cos(phi), 0\n ], [\n 1, 0, -b[0][0],\n 0, 1, -b[0][1]\n ])));\n}\n\n// Inverts a transform matrix.\nfunction inverse(m) {\n var k = 1 / (m[0] * m[4] - m[1] * m[3]);\n return [\n k * m[4], -k * m[1], k * (m[1] * m[5] - m[2] * m[4]),\n -k * m[3], k * m[0], k * (m[2] * m[3] - m[0] * m[5])\n ];\n}\n\n// Multiplies two 3x2 matrices.\nfunction multiply(a, b) {\n return [\n a[0] * b[0] + a[1] * b[3],\n a[0] * b[1] + a[1] * b[4],\n a[0] * b[2] + a[1] * b[5] + a[2],\n a[3] * b[0] + a[4] * b[3],\n a[3] * b[1] + a[4] * b[4],\n a[3] * b[2] + a[4] * b[5] + a[5]\n ];\n}\n\n// Subtracts 2D vectors.\nfunction subtract(a, b) {\n return [a[0] - b[0], a[1] - b[1]];\n}\n\n// Magnitude of a 2D vector.\nfunction length(v) {\n return sqrt(v[0] * v[0] + v[1] * v[1]);\n}\n\n// Angle between two 2D vectors.\nfunction angle$1(a, b) {\n return atan2(a[0] * b[1] - a[1] * b[0], a[0] * b[0] + a[1] * b[1]);\n}\n\n// Creates a polyhedral projection.\n// * root: a spanning tree of polygon faces. Nodes are automatically\n// augmented with a transform matrix.\n// * face: a function that returns the appropriate node for a given {lambda, phi}\n// point (radians).\n// * r: rotation angle for root face [deprecated by .angle()].\nfunction polyhedral(root, face, r) {\n\n recurse(root, {transform: null});\n\n function recurse(node, parent) {\n node.edges = faceEdges(node.face);\n // Find shared edge.\n if (parent.face) {\n var shared = node.shared = sharedEdge(node.face, parent.face),\n m = matrix(shared.map(parent.project), shared.map(node.project));\n node.transform = parent.transform ? multiply(parent.transform, m) : m;\n // Replace shared edge in parent edges array.\n var edges = parent.edges;\n for (var i = 0, n = edges.length; i < n; ++i) {\n if (pointEqual$1(shared[0], edges[i][1]) && pointEqual$1(shared[1], edges[i][0])) edges[i] = node;\n if (pointEqual$1(shared[0], edges[i][0]) && pointEqual$1(shared[1], edges[i][1])) edges[i] = node;\n }\n edges = node.edges;\n for (i = 0, n = edges.length; i < n; ++i) {\n if (pointEqual$1(shared[0], edges[i][0]) && pointEqual$1(shared[1], edges[i][1])) edges[i] = parent;\n if (pointEqual$1(shared[0], edges[i][1]) && pointEqual$1(shared[1], edges[i][0])) edges[i] = parent;\n }\n } else {\n node.transform = parent.transform;\n }\n if (node.children) {\n node.children.forEach(function(child) {\n recurse(child, node);\n });\n }\n return node;\n }\n\n function forward(lambda, phi) {\n var node = face(lambda, phi),\n point = node.project([lambda * degrees, phi * degrees]),\n t;\n if (t = node.transform) {\n return [\n t[0] * point[0] + t[1] * point[1] + t[2],\n -(t[3] * point[0] + t[4] * point[1] + t[5])\n ];\n }\n point[1] = -point[1];\n return point;\n }\n\n // Naive inverse! A faster solution would use bounding boxes, or even a\n // polygonal quadtree.\n if (hasInverse(root)) forward.invert = function(x, y) {\n var coordinates = faceInvert(root, [x, -y]);\n return coordinates && (coordinates[0] *= radians, coordinates[1] *= radians, coordinates);\n };\n\n function faceInvert(node, coordinates) {\n var invert = node.project.invert,\n t = node.transform,\n point = coordinates;\n if (t) {\n t = inverse(t);\n point = [\n t[0] * point[0] + t[1] * point[1] + t[2],\n (t[3] * point[0] + t[4] * point[1] + t[5])\n ];\n }\n if (invert && node === faceDegrees(p = invert(point))) return p;\n var p,\n children = node.children;\n for (var i = 0, n = children && children.length; i < n; ++i) {\n if (p = faceInvert(children[i], coordinates)) return p;\n }\n }\n\n function faceDegrees(coordinates) {\n return face(coordinates[0] * radians, coordinates[1] * radians);\n }\n\n var proj = d3Geo.geoProjection(forward),\n stream_ = proj.stream;\n\n proj.stream = function(stream) {\n var rotate = proj.rotate(),\n rotateStream = stream_(stream),\n sphereStream = (proj.rotate([0, 0]), stream_(stream));\n proj.rotate(rotate);\n rotateStream.sphere = function() {\n sphereStream.polygonStart();\n sphereStream.lineStart();\n outline(sphereStream, root);\n sphereStream.lineEnd();\n sphereStream.polygonEnd();\n };\n return rotateStream;\n };\n\n return proj.angle(r == null ? -30 : r * degrees);\n}\n\nfunction outline(stream, node, parent) {\n var point,\n edges = node.edges,\n n = edges.length,\n edge,\n multiPoint = {type: \"MultiPoint\", coordinates: node.face},\n notPoles = node.face.filter(function(d) { return abs(d[1]) !== 90; }),\n b = d3Geo.geoBounds({type: \"MultiPoint\", coordinates: notPoles}),\n inside = false,\n j = -1,\n dx = b[1][0] - b[0][0];\n // TODO\n var c = dx === 180 || dx === 360\n ? [(b[0][0] + b[1][0]) / 2, (b[0][1] + b[1][1]) / 2]\n : d3Geo.geoCentroid(multiPoint);\n // First find the shared edge…\n if (parent) while (++j < n) {\n if (edges[j] === parent) break;\n }\n ++j;\n for (var i = 0; i < n; ++i) {\n edge = edges[(i + j) % n];\n if (Array.isArray(edge)) {\n if (!inside) {\n stream.point((point = d3Geo.geoInterpolate(edge[0], c)(epsilon))[0], point[1]);\n inside = true;\n }\n stream.point((point = d3Geo.geoInterpolate(edge[1], c)(epsilon))[0], point[1]);\n } else {\n inside = false;\n if (edge !== parent) outline(stream, edge, node);\n }\n }\n}\n\n// Tests equality of two spherical points.\nfunction pointEqual$1(a, b) {\n return a && b && a[0] === b[0] && a[1] === b[1];\n}\n\n// Finds a shared edge given two clockwise polygons.\nfunction sharedEdge(a, b) {\n var x, y, n = a.length, found = null;\n for (var i = 0; i < n; ++i) {\n x = a[i];\n for (var j = b.length; --j >= 0;) {\n y = b[j];\n if (x[0] === y[0] && x[1] === y[1]) {\n if (found) return [found, x];\n found = x;\n }\n }\n }\n}\n\n// Converts an array of n face vertices to an array of n + 1 edges.\nfunction faceEdges(face) {\n var n = face.length,\n edges = [];\n for (var a = face[n - 1], i = 0; i < n; ++i) edges.push([a, a = face[i]]);\n return edges;\n}\n\nfunction hasInverse(node) {\n return node.project.invert || node.children && node.children.some(hasInverse);\n}\n\n// TODO generate on-the-fly to avoid external modification.\nvar octahedron = [\n [0, 90],\n [-90, 0], [0, 0], [90, 0], [180, 0],\n [0, -90]\n];\n\nvar octahedron$1 = [\n [0, 2, 1],\n [0, 3, 2],\n [5, 1, 2],\n [5, 2, 3],\n [0, 1, 4],\n [0, 4, 3],\n [5, 4, 1],\n [5, 3, 4]\n].map(function(face) {\n return face.map(function(i) {\n return octahedron[i];\n });\n});\n\nfunction butterfly(faceProjection) {\n\n faceProjection = faceProjection || function(face) {\n var c = d3Geo.geoCentroid({type: \"MultiPoint\", coordinates: face});\n return d3Geo.geoGnomonic().scale(1).translate([0, 0]).rotate([-c[0], -c[1]]);\n };\n\n var faces = octahedron$1.map(function(face) {\n return {face: face, project: faceProjection(face)};\n });\n\n [-1, 0, 0, 1, 0, 1, 4, 5].forEach(function(d, i) {\n var node = faces[d];\n node && (node.children || (node.children = [])).push(faces[i]);\n });\n\n return polyhedral(faces[0], function(lambda, phi) {\n return faces[lambda < -pi / 2 ? phi < 0 ? 6 : 4\n : lambda < 0 ? phi < 0 ? 2 : 0\n : lambda < pi / 2 ? phi < 0 ? 3 : 1\n : phi < 0 ? 7 : 5];\n })\n .angle(-30)\n .scale(101.858)\n .center([0, 45]);\n}\n\nvar kx = 2 / sqrt(3);\n\nfunction collignonK(a, b) {\n var p = collignonRaw(a, b);\n return [p[0] * kx, p[1]];\n}\n\ncollignonK.invert = function(x,y) {\n return collignonRaw.invert(x / kx, y);\n};\n\nfunction collignon$1(faceProjection) {\n\n faceProjection = faceProjection || function(face) {\n var c = d3Geo.geoCentroid({type: \"MultiPoint\", coordinates: face});\n return d3Geo.geoProjection(collignonK).translate([0, 0]).scale(1).rotate(c[1] > 0 ? [-c[0], 0] : [180 - c[0], 180]);\n };\n\n var faces = octahedron$1.map(function(face) {\n return {face: face, project: faceProjection(face)};\n });\n\n [-1, 0, 0, 1, 0, 1, 4, 5].forEach(function(d, i) {\n var node = faces[d];\n node && (node.children || (node.children = [])).push(faces[i]);\n });\n\n return polyhedral(faces[0], function(lambda, phi) {\n return faces[lambda < -pi / 2 ? phi < 0 ? 6 : 4\n : lambda < 0 ? phi < 0 ? 2 : 0\n : lambda < pi / 2 ? phi < 0 ? 3 : 1\n : phi < 0 ? 7 : 5];\n })\n .angle(-30)\n .scale(121.906)\n .center([0, 48.5904]);\n}\n\nfunction waterman(faceProjection) {\n\n faceProjection = faceProjection || function(face) {\n var c = face.length === 6 ? d3Geo.geoCentroid({type: \"MultiPoint\", coordinates: face}) : face[0];\n return d3Geo.geoGnomonic().scale(1).translate([0, 0]).rotate([-c[0], -c[1]]);\n };\n\n var w5 = octahedron$1.map(function(face) {\n var xyz = face.map(cartesian),\n n = xyz.length,\n a = xyz[n - 1],\n b,\n hexagon = [];\n for (var i = 0; i < n; ++i) {\n b = xyz[i];\n hexagon.push(spherical([\n a[0] * 0.9486832980505138 + b[0] * 0.31622776601683794,\n a[1] * 0.9486832980505138 + b[1] * 0.31622776601683794,\n a[2] * 0.9486832980505138 + b[2] * 0.31622776601683794\n ]), spherical([\n b[0] * 0.9486832980505138 + a[0] * 0.31622776601683794,\n b[1] * 0.9486832980505138 + a[1] * 0.31622776601683794,\n b[2] * 0.9486832980505138 + a[2] * 0.31622776601683794\n ]));\n a = b;\n }\n return hexagon;\n });\n\n var cornerNormals = [];\n\n var parents = [-1, 0, 0, 1, 0, 1, 4, 5];\n\n w5.forEach(function(hexagon, j) {\n var face = octahedron$1[j],\n n = face.length,\n normals = cornerNormals[j] = [];\n for (var i = 0; i < n; ++i) {\n w5.push([\n face[i],\n hexagon[(i * 2 + 2) % (2 * n)],\n hexagon[(i * 2 + 1) % (2 * n)]\n ]);\n parents.push(j);\n normals.push(cross(\n cartesian(hexagon[(i * 2 + 2) % (2 * n)]),\n cartesian(hexagon[(i * 2 + 1) % (2 * n)])\n ));\n }\n });\n\n var faces = w5.map(function(face) {\n return {\n project: faceProjection(face),\n face: face\n };\n });\n\n parents.forEach(function(d, i) {\n var parent = faces[d];\n parent && (parent.children || (parent.children = [])).push(faces[i]);\n });\n\n function face(lambda, phi) {\n var cosphi = cos(phi),\n p = [cosphi * cos(lambda), cosphi * sin(lambda), sin(phi)];\n\n var hexagon = lambda < -pi / 2 ? phi < 0 ? 6 : 4\n : lambda < 0 ? phi < 0 ? 2 : 0\n : lambda < pi / 2 ? phi < 0 ? 3 : 1\n : phi < 0 ? 7 : 5;\n\n var n = cornerNormals[hexagon];\n\n return faces[dot(n[0], p) < 0 ? 8 + 3 * hexagon\n : dot(n[1], p) < 0 ? 8 + 3 * hexagon + 1\n : dot(n[2], p) < 0 ? 8 + 3 * hexagon + 2\n : hexagon];\n }\n\n return polyhedral(faces[0], face)\n .angle(-30)\n .scale(110.625)\n .center([0,45]);\n}\n\nfunction dot(a, b) {\n for (var i = 0, n = a.length, s = 0; i < n; ++i) s += a[i] * b[i];\n return s;\n}\n\nfunction cross(a, b) {\n return [\n a[1] * b[2] - a[2] * b[1],\n a[2] * b[0] - a[0] * b[2],\n a[0] * b[1] - a[1] * b[0]\n ];\n}\n\n// Converts 3D Cartesian to spherical coordinates (degrees).\nfunction spherical(cartesian) {\n return [\n atan2(cartesian[1], cartesian[0]) * degrees,\n asin(max(-1, min(1, cartesian[2]))) * degrees\n ];\n}\n\n// Converts spherical coordinates (degrees) to 3D Cartesian.\nfunction cartesian(coordinates) {\n var lambda = coordinates[0] * radians,\n phi = coordinates[1] * radians,\n cosphi = cos(phi);\n return [\n cosphi * cos(lambda),\n cosphi * sin(lambda),\n sin(phi)\n ];\n}\n\nfunction noop() {}\n\nfunction clockwise(ring) {\n if ((n = ring.length) < 4) return false;\n var i = 0,\n n,\n area = ring[n - 1][1] * ring[0][0] - ring[n - 1][0] * ring[0][1];\n while (++i < n) area += ring[i - 1][1] * ring[i][0] - ring[i - 1][0] * ring[i][1];\n return area <= 0;\n}\n\nfunction contains(ring, point) {\n var x = point[0],\n y = point[1],\n contains = false;\n for (var i = 0, n = ring.length, j = n - 1; i < n; j = i++) {\n var pi = ring[i], xi = pi[0], yi = pi[1],\n pj = ring[j], xj = pj[0], yj = pj[1];\n if (((yi > y) ^ (yj > y)) && (x < (xj - xi) * (y - yi) / (yj - yi) + xi)) contains = !contains;\n }\n return contains;\n}\n\nfunction index(object, projection) {\n var stream = projection.stream, project;\n if (!stream) throw new Error(\"invalid projection\");\n switch (object && object.type) {\n case \"Feature\": project = projectFeature; break;\n case \"FeatureCollection\": project = projectFeatureCollection; break;\n default: project = projectGeometry; break;\n }\n return project(object, stream);\n}\n\nfunction projectFeatureCollection(o, stream) {\n return {\n type: \"FeatureCollection\",\n features: o.features.map(function(f) {\n return projectFeature(f, stream);\n })\n };\n}\n\nfunction projectFeature(o, stream) {\n return {\n type: \"Feature\",\n id: o.id,\n properties: o.properties,\n geometry: projectGeometry(o.geometry, stream)\n };\n}\n\nfunction projectGeometryCollection(o, stream) {\n return {\n type: \"GeometryCollection\",\n geometries: o.geometries.map(function(o) {\n return projectGeometry(o, stream);\n })\n };\n}\n\nfunction projectGeometry(o, stream) {\n if (!o) return null;\n if (o.type === \"GeometryCollection\") return projectGeometryCollection(o, stream);\n var sink;\n switch (o.type) {\n case \"Point\": sink = sinkPoint; break;\n case \"MultiPoint\": sink = sinkPoint; break;\n case \"LineString\": sink = sinkLine; break;\n case \"MultiLineString\": sink = sinkLine; break;\n case \"Polygon\": sink = sinkPolygon; break;\n case \"MultiPolygon\": sink = sinkPolygon; break;\n case \"Sphere\": sink = sinkPolygon; break;\n default: return null;\n }\n d3Geo.geoStream(o, stream(sink));\n return sink.result();\n}\n\nvar points = [],\n lines = [];\n\nvar sinkPoint = {\n point: function(x, y) {\n points.push([x, y]);\n },\n result: function() {\n var result = !points.length ? null\n : points.length < 2 ? {type: \"Point\", coordinates: points[0]}\n : {type: \"MultiPoint\", coordinates: points};\n points = [];\n return result;\n }\n};\n\nvar sinkLine = {\n lineStart: noop,\n point: function(x, y) {\n points.push([x, y]);\n },\n lineEnd: function() {\n if (points.length) lines.push(points), points = [];\n },\n result: function() {\n var result = !lines.length ? null\n : lines.length < 2 ? {type: \"LineString\", coordinates: lines[0]}\n : {type: \"MultiLineString\", coordinates: lines};\n lines = [];\n return result;\n }\n};\n\nvar sinkPolygon = {\n polygonStart: noop,\n lineStart: noop,\n point: function(x, y) {\n points.push([x, y]);\n },\n lineEnd: function() {\n var n = points.length;\n if (n) {\n do points.push(points[0].slice()); while (++n < 4);\n lines.push(points), points = [];\n }\n },\n polygonEnd: noop,\n result: function() {\n if (!lines.length) return null;\n var polygons = [],\n holes = [];\n\n // https://github.com/d3/d3/issues/1558\n lines.forEach(function(ring) {\n if (clockwise(ring)) polygons.push([ring]);\n else holes.push(ring);\n });\n\n holes.forEach(function(hole) {\n var point = hole[0];\n polygons.some(function(polygon) {\n if (contains(polygon[0], point)) {\n polygon.push(hole);\n return true;\n }\n }) || polygons.push([hole]);\n });\n\n lines = [];\n\n return !polygons.length ? null\n : polygons.length > 1 ? {type: \"MultiPolygon\", coordinates: polygons}\n : {type: \"Polygon\", coordinates: polygons[0]};\n }\n};\n\nfunction quincuncial(project) {\n var dx = project(halfPi, 0)[0] - project(-halfPi, 0)[0];\n\n function projectQuincuncial(lambda, phi) {\n var t = abs(lambda) < halfPi,\n p = project(t ? lambda : lambda > 0 ? lambda - pi : lambda + pi, phi),\n x = (p[0] - p[1]) * sqrt1_2,\n y = (p[0] + p[1]) * sqrt1_2;\n if (t) return [x, y];\n var d = dx * sqrt1_2,\n s = x > 0 ^ y > 0 ? -1 : 1;\n return [s * x - sign(y) * d, s * y - sign(x) * d];\n }\n\n if (project.invert) projectQuincuncial.invert = function(x0, y0) {\n var x = (x0 + y0) * sqrt1_2,\n y = (y0 - x0) * sqrt1_2,\n t = abs(x) < 0.5 * dx && abs(y) < 0.5 * dx;\n\n if (!t) {\n var d = dx * sqrt1_2,\n s = x > 0 ^ y > 0 ? -1 : 1,\n x1 = -s * x0 + (y > 0 ? 1 : -1) * d,\n y1 = -s * y0 + (x > 0 ? 1 : -1) * d;\n x = (-x1 - y1) * sqrt1_2;\n y = (x1 - y1) * sqrt1_2;\n }\n\n var p = project.invert(x, y);\n if (!t) p[0] += x > 0 ? pi : -pi;\n return p;\n };\n\n return d3Geo.geoProjection(projectQuincuncial)\n .rotate([-90, -90, 45])\n .clipAngle(180 - 1e-3);\n}\n\nfunction gringorten$1() {\n return quincuncial(gringortenRaw)\n .scale(176.423);\n}\n\nfunction peirce() {\n return quincuncial(guyouRaw)\n .scale(111.48);\n}\n\nfunction quantize(input, digits) {\n if (!(0 <= (digits = +digits) && digits <= 20)) throw new Error(\"invalid digits\");\n\n function quantizePoint(input) {\n var n = input.length, i = 2, output = new Array(n);\n output[0] = +input[0].toFixed(digits);\n output[1] = +input[1].toFixed(digits);\n while (i < n) output[i] = input[i], ++i;\n return output;\n }\n\n function quantizePoints(input) {\n return input.map(quantizePoint);\n }\n\n function quantizePointsNoDuplicates(input) {\n var point0 = quantizePoint(input[0]);\n var output = [point0];\n for (var i = 1; i < input.length; i++) {\n var point = quantizePoint(input[i]);\n if (point.length > 2 || point[0] != point0[0] || point[1] != point0[1]) {\n output.push(point);\n point0 = point;\n }\n }\n if (output.length === 1 && input.length > 1) {\n output.push(quantizePoint(input[input.length - 1]));\n }\n return output;\n }\n\n function quantizePolygon(input) {\n return input.map(quantizePointsNoDuplicates);\n }\n\n function quantizeGeometry(input) {\n if (input == null) return input;\n var output;\n switch (input.type) {\n case \"GeometryCollection\": output = {type: \"GeometryCollection\", geometries: input.geometries.map(quantizeGeometry)}; break;\n case \"Point\": output = {type: \"Point\", coordinates: quantizePoint(input.coordinates)}; break;\n case \"MultiPoint\": output = {type: input.type, coordinates: quantizePoints(input.coordinates)}; break;\n case \"LineString\": output = {type: input.type, coordinates: quantizePointsNoDuplicates(input.coordinates)}; break;\n case \"MultiLineString\": case \"Polygon\": output = {type: input.type, coordinates: quantizePolygon(input.coordinates)}; break;\n case \"MultiPolygon\": output = {type: \"MultiPolygon\", coordinates: input.coordinates.map(quantizePolygon)}; break;\n default: return input;\n }\n if (input.bbox != null) output.bbox = input.bbox;\n return output;\n }\n\n function quantizeFeature(input) {\n var output = {type: \"Feature\", properties: input.properties, geometry: quantizeGeometry(input.geometry)};\n if (input.id != null) output.id = input.id;\n if (input.bbox != null) output.bbox = input.bbox;\n return output;\n }\n\n if (input != null) switch (input.type) {\n case \"Feature\": return quantizeFeature(input);\n case \"FeatureCollection\": {\n var output = {type: \"FeatureCollection\", features: input.features.map(quantizeFeature)};\n if (input.bbox != null) output.bbox = input.bbox;\n return output;\n }\n default: return quantizeGeometry(input);\n }\n\n return input;\n}\n\nfunction rectangularPolyconicRaw(phi0) {\n var sinPhi0 = sin(phi0);\n\n function forward(lambda, phi) {\n var A = sinPhi0 ? tan(lambda * sinPhi0 / 2) / sinPhi0 : lambda / 2;\n if (!phi) return [2 * A, -phi0];\n var E = 2 * atan(A * sin(phi)),\n cotPhi = 1 / tan(phi);\n return [\n sin(E) * cotPhi,\n phi + (1 - cos(E)) * cotPhi - phi0\n ];\n }\n\n // TODO return null for points outside outline.\n forward.invert = function(x, y) {\n if (abs(y += phi0) < epsilon) return [sinPhi0 ? 2 * atan(sinPhi0 * x / 2) / sinPhi0 : x, 0];\n var k = x * x + y * y,\n phi = 0,\n i = 10, delta;\n do {\n var tanPhi = tan(phi),\n secPhi = 1 / cos(phi),\n j = k - 2 * y * phi + phi * phi;\n phi -= delta = (tanPhi * j + 2 * (phi - y)) / (2 + j * secPhi * secPhi + 2 * (phi - y) * tanPhi);\n } while (abs(delta) > epsilon && --i > 0);\n var E = x * (tanPhi = tan(phi)),\n A = tan(abs(y) < abs(phi + 1 / tanPhi) ? asin(E) * 0.5 : acos(E) * 0.5 + pi / 4) / sin(phi);\n return [\n sinPhi0 ? 2 * atan(sinPhi0 * A) / sinPhi0 : 2 * A,\n phi\n ];\n };\n\n return forward;\n}\n\nfunction rectangularPolyconic() {\n return parallel1(rectangularPolyconicRaw)\n .scale(131.215);\n}\n\nvar K$1 = [\n [0.9986, -0.062],\n [1.0000, 0.0000],\n [0.9986, 0.0620],\n [0.9954, 0.1240],\n [0.9900, 0.1860],\n [0.9822, 0.2480],\n [0.9730, 0.3100],\n [0.9600, 0.3720],\n [0.9427, 0.4340],\n [0.9216, 0.4958],\n [0.8962, 0.5571],\n [0.8679, 0.6176],\n [0.8350, 0.6769],\n [0.7986, 0.7346],\n [0.7597, 0.7903],\n [0.7186, 0.8435],\n [0.6732, 0.8936],\n [0.6213, 0.9394],\n [0.5722, 0.9761],\n [0.5322, 1.0000]\n];\n\nK$1.forEach(function(d) {\n d[1] *= 1.0144;\n});\n\nfunction robinsonRaw(lambda, phi) {\n var i = min(18, abs(phi) * 36 / pi),\n i0 = floor(i),\n di = i - i0,\n ax = (k = K$1[i0])[0],\n ay = k[1],\n bx = (k = K$1[++i0])[0],\n by = k[1],\n cx = (k = K$1[min(19, ++i0)])[0],\n cy = k[1],\n k;\n return [\n lambda * (bx + di * (cx - ax) / 2 + di * di * (cx - 2 * bx + ax) / 2),\n (phi > 0 ? halfPi : -halfPi) * (by + di * (cy - ay) / 2 + di * di * (cy - 2 * by + ay) / 2)\n ];\n}\n\nrobinsonRaw.invert = function(x, y) {\n var yy = y / halfPi,\n phi = yy * 90,\n i = min(18, abs(phi / 5)),\n i0 = max(0, floor(i));\n do {\n var ay = K$1[i0][1],\n by = K$1[i0 + 1][1],\n cy = K$1[min(19, i0 + 2)][1],\n u = cy - ay,\n v = cy - 2 * by + ay,\n t = 2 * (abs(yy) - by) / u,\n c = v / u,\n di = t * (1 - c * t * (1 - 2 * c * t));\n if (di >= 0 || i0 === 1) {\n phi = (y >= 0 ? 5 : -5) * (di + i);\n var j = 50, delta;\n do {\n i = min(18, abs(phi) / 5);\n i0 = floor(i);\n di = i - i0;\n ay = K$1[i0][1];\n by = K$1[i0 + 1][1];\n cy = K$1[min(19, i0 + 2)][1];\n phi -= (delta = (y >= 0 ? halfPi : -halfPi) * (by + di * (cy - ay) / 2 + di * di * (cy - 2 * by + ay) / 2) - y) * degrees;\n } while (abs(delta) > epsilon2 && --j > 0);\n break;\n }\n } while (--i0 >= 0);\n var ax = K$1[i0][0],\n bx = K$1[i0 + 1][0],\n cx = K$1[min(19, i0 + 2)][0];\n return [\n x / (bx + di * (cx - ax) / 2 + di * di * (cx - 2 * bx + ax) / 2),\n phi * radians\n ];\n};\n\nfunction robinson() {\n return d3Geo.geoProjection(robinsonRaw)\n .scale(152.63);\n}\n\nfunction satelliteVerticalRaw(P) {\n function forward(lambda, phi) {\n var cosPhi = cos(phi),\n k = (P - 1) / (P - cosPhi * cos(lambda));\n return [\n k * cosPhi * sin(lambda),\n k * sin(phi)\n ];\n }\n\n forward.invert = function(x, y) {\n var rho2 = x * x + y * y,\n rho = sqrt(rho2),\n sinc = (P - sqrt(1 - rho2 * (P + 1) / (P - 1))) / ((P - 1) / rho + rho / (P - 1));\n return [\n atan2(x * sinc, rho * sqrt(1 - sinc * sinc)),\n rho ? asin(y * sinc / rho) : 0\n ];\n };\n\n return forward;\n}\n\nfunction satelliteRaw(P, omega) {\n var vertical = satelliteVerticalRaw(P);\n if (!omega) return vertical;\n var cosOmega = cos(omega),\n sinOmega = sin(omega);\n\n function forward(lambda, phi) {\n var coordinates = vertical(lambda, phi),\n y = coordinates[1],\n A = y * sinOmega / (P - 1) + cosOmega;\n return [\n coordinates[0] * cosOmega / A,\n y / A\n ];\n }\n\n forward.invert = function(x, y) {\n var k = (P - 1) / (P - 1 - y * sinOmega);\n return vertical.invert(k * x, k * y * cosOmega);\n };\n\n return forward;\n}\n\nfunction satellite() {\n var distance = 2,\n omega = 0,\n m = d3Geo.geoProjectionMutator(satelliteRaw),\n p = m(distance, omega);\n\n // As a multiple of radius.\n p.distance = function(_) {\n if (!arguments.length) return distance;\n return m(distance = +_, omega);\n };\n\n p.tilt = function(_) {\n if (!arguments.length) return omega * degrees;\n return m(distance, omega = _ * radians);\n };\n\n return p\n .scale(432.147)\n .clipAngle(acos(1 / distance) * degrees - 1e-6);\n}\n\nvar epsilon$1 = 1e-4,\n epsilonInverse = 1e4,\n x0 = -180, x0e = x0 + epsilon$1,\n x1 = 180, x1e = x1 - epsilon$1,\n y0 = -90, y0e = y0 + epsilon$1,\n y1 = 90, y1e = y1 - epsilon$1;\n\nfunction nonempty(coordinates) {\n return coordinates.length > 0;\n}\n\nfunction quantize$1(x) {\n return Math.floor(x * epsilonInverse) / epsilonInverse;\n}\n\nfunction normalizePoint(y) {\n return y === y0 || y === y1 ? [0, y] : [x0, quantize$1(y)]; // pole or antimeridian?\n}\n\nfunction clampPoint(p) {\n var x = p[0], y = p[1], clamped = false;\n if (x <= x0e) x = x0, clamped = true;\n else if (x >= x1e) x = x1, clamped = true;\n if (y <= y0e) y = y0, clamped = true;\n else if (y >= y1e) y = y1, clamped = true;\n return clamped ? [x, y] : p;\n}\n\nfunction clampPoints(points) {\n return points.map(clampPoint);\n}\n\n// For each ring, detect where it crosses the antimeridian or pole.\nfunction extractFragments(rings, polygon, fragments) {\n for (var j = 0, m = rings.length; j < m; ++j) {\n var ring = rings[j].slice();\n\n // By default, assume that this ring doesn’t need any stitching.\n fragments.push({index: -1, polygon: polygon, ring: ring});\n\n for (var i = 0, n = ring.length; i < n; ++i) {\n var point = ring[i],\n x = point[0],\n y = point[1];\n\n // If this is an antimeridian or polar point…\n if (x <= x0e || x >= x1e || y <= y0e || y >= y1e) {\n ring[i] = clampPoint(point);\n\n // Advance through any antimeridian or polar points…\n for (var k = i + 1; k < n; ++k) {\n var pointk = ring[k],\n xk = pointk[0],\n yk = pointk[1];\n if (xk > x0e && xk < x1e && yk > y0e && yk < y1e) break;\n }\n\n // If this was just a single antimeridian or polar point,\n // we don’t need to cut this ring into a fragment;\n // we can just leave it as-is.\n if (k === i + 1) continue;\n\n // Otherwise, if this is not the first point in the ring,\n // cut the current fragment so that it ends at the current point.\n // The current point is also normalized for later joining.\n if (i) {\n var fragmentBefore = {index: -1, polygon: polygon, ring: ring.slice(0, i + 1)};\n fragmentBefore.ring[fragmentBefore.ring.length - 1] = normalizePoint(y);\n fragments[fragments.length - 1] = fragmentBefore;\n }\n\n // If the ring started with an antimeridian fragment,\n // we can ignore that fragment entirely.\n else fragments.pop();\n\n // If the remainder of the ring is an antimeridian fragment,\n // move on to the next ring.\n if (k >= n) break;\n\n // Otherwise, add the remaining ring fragment and continue.\n fragments.push({index: -1, polygon: polygon, ring: ring = ring.slice(k - 1)});\n ring[0] = normalizePoint(ring[0][1]);\n i = -1;\n n = ring.length;\n }\n }\n }\n}\n\n// Now stitch the fragments back together into rings.\nfunction stitchFragments(fragments) {\n var i, n = fragments.length;\n\n // To connect the fragments start-to-end, create a simple index by end.\n var fragmentByStart = {},\n fragmentByEnd = {},\n fragment,\n start,\n startFragment,\n end,\n endFragment;\n\n // For each fragment…\n for (i = 0; i < n; ++i) {\n fragment = fragments[i];\n start = fragment.ring[0];\n end = fragment.ring[fragment.ring.length - 1];\n\n // If this fragment is closed, add it as a standalone ring.\n if (start[0] === end[0] && start[1] === end[1]) {\n fragment.polygon.push(fragment.ring);\n fragments[i] = null;\n continue;\n }\n\n fragment.index = i;\n fragmentByStart[start] = fragmentByEnd[end] = fragment;\n }\n\n // For each open fragment…\n for (i = 0; i < n; ++i) {\n fragment = fragments[i];\n if (fragment) {\n start = fragment.ring[0];\n end = fragment.ring[fragment.ring.length - 1];\n startFragment = fragmentByEnd[start];\n endFragment = fragmentByStart[end];\n\n delete fragmentByStart[start];\n delete fragmentByEnd[end];\n\n // If this fragment is closed, add it as a standalone ring.\n if (start[0] === end[0] && start[1] === end[1]) {\n fragment.polygon.push(fragment.ring);\n continue;\n }\n\n if (startFragment) {\n delete fragmentByEnd[start];\n delete fragmentByStart[startFragment.ring[0]];\n startFragment.ring.pop(); // drop the shared coordinate\n fragments[startFragment.index] = null;\n fragment = {index: -1, polygon: startFragment.polygon, ring: startFragment.ring.concat(fragment.ring)};\n\n if (startFragment === endFragment) {\n // Connect both ends to this single fragment to create a ring.\n fragment.polygon.push(fragment.ring);\n } else {\n fragment.index = n++;\n fragments.push(fragmentByStart[fragment.ring[0]] = fragmentByEnd[fragment.ring[fragment.ring.length - 1]] = fragment);\n }\n } else if (endFragment) {\n delete fragmentByStart[end];\n delete fragmentByEnd[endFragment.ring[endFragment.ring.length - 1]];\n fragment.ring.pop(); // drop the shared coordinate\n fragment = {index: n++, polygon: endFragment.polygon, ring: fragment.ring.concat(endFragment.ring)};\n fragments[endFragment.index] = null;\n fragments.push(fragmentByStart[fragment.ring[0]] = fragmentByEnd[fragment.ring[fragment.ring.length - 1]] = fragment);\n } else {\n fragment.ring.push(fragment.ring[0]); // close ring\n fragment.polygon.push(fragment.ring);\n }\n }\n }\n}\n\nfunction stitchFeature(input) {\n var output = {type: \"Feature\", geometry: stitchGeometry(input.geometry)};\n if (input.id != null) output.id = input.id;\n if (input.bbox != null) output.bbox = input.bbox;\n if (input.properties != null) output.properties = input.properties;\n return output;\n}\n\nfunction stitchGeometry(input) {\n if (input == null) return input;\n var output, fragments, i, n;\n switch (input.type) {\n case \"GeometryCollection\": output = {type: \"GeometryCollection\", geometries: input.geometries.map(stitchGeometry)}; break;\n case \"Point\": output = {type: \"Point\", coordinates: clampPoint(input.coordinates)}; break;\n case \"MultiPoint\": case \"LineString\": output = {type: input.type, coordinates: clampPoints(input.coordinates)}; break;\n case \"MultiLineString\": output = {type: \"MultiLineString\", coordinates: input.coordinates.map(clampPoints)}; break;\n case \"Polygon\": {\n var polygon = [];\n extractFragments(input.coordinates, polygon, fragments = []);\n stitchFragments(fragments);\n output = {type: \"Polygon\", coordinates: polygon};\n break;\n }\n case \"MultiPolygon\": {\n fragments = [], i = -1, n = input.coordinates.length;\n var polygons = new Array(n);\n while (++i < n) extractFragments(input.coordinates[i], polygons[i] = [], fragments);\n stitchFragments(fragments);\n output = {type: \"MultiPolygon\", coordinates: polygons.filter(nonempty)};\n break;\n }\n default: return input;\n }\n if (input.bbox != null) output.bbox = input.bbox;\n return output;\n}\n\nfunction stitch(input) {\n if (input == null) return input;\n switch (input.type) {\n case \"Feature\": return stitchFeature(input);\n case \"FeatureCollection\": {\n var output = {type: \"FeatureCollection\", features: input.features.map(stitchFeature)};\n if (input.bbox != null) output.bbox = input.bbox;\n return output;\n }\n default: return stitchGeometry(input);\n }\n}\n\nfunction timesRaw(lambda, phi) {\n var t = tan(phi / 2),\n s = sin(quarterPi * t);\n return [\n lambda * (0.74482 - 0.34588 * s * s),\n 1.70711 * t\n ];\n}\n\ntimesRaw.invert = function(x, y) {\n var t = y / 1.70711,\n s = sin(quarterPi * t);\n return [\n x / (0.74482 - 0.34588 * s * s),\n 2 * atan(t)\n ];\n};\n\nfunction times() {\n return d3Geo.geoProjection(timesRaw)\n .scale(146.153);\n}\n\n// Compute the origin as the midpoint of the two reference points.\n// Rotate one of the reference points by the origin.\n// Apply the spherical law of sines to compute gamma rotation.\nfunction twoPoint(raw, p0, p1) {\n var i = d3Geo.geoInterpolate(p0, p1),\n o = i(0.5),\n a = d3Geo.geoRotation([-o[0], -o[1]])(p0),\n b = i.distance / 2,\n y = -asin(sin(a[1] * radians) / sin(b)),\n R = [-o[0], -o[1], -(a[0] > 0 ? pi - y : y) * degrees],\n p = d3Geo.geoProjection(raw(b)).rotate(R),\n r = d3Geo.geoRotation(R),\n center = p.center;\n\n delete p.rotate;\n\n p.center = function(_) {\n return arguments.length ? center(r(_)) : r.invert(center());\n };\n\n return p\n .clipAngle(90);\n}\n\nfunction twoPointAzimuthalRaw(d) {\n var cosd = cos(d);\n\n function forward(lambda, phi) {\n var coordinates = d3Geo.geoGnomonicRaw(lambda, phi);\n coordinates[0] *= cosd;\n return coordinates;\n }\n\n forward.invert = function(x, y) {\n return d3Geo.geoGnomonicRaw.invert(x / cosd, y);\n };\n\n return forward;\n}\n\nfunction twoPointAzimuthalUsa() {\n return twoPointAzimuthal([-158, 21.5], [-77, 39])\n .clipAngle(60)\n .scale(400);\n}\n\nfunction twoPointAzimuthal(p0, p1) {\n return twoPoint(twoPointAzimuthalRaw, p0, p1);\n}\n\n// TODO clip to ellipse\nfunction twoPointEquidistantRaw(z0) {\n if (!(z0 *= 2)) return d3Geo.geoAzimuthalEquidistantRaw;\n var lambdaa = -z0 / 2,\n lambdab = -lambdaa,\n z02 = z0 * z0,\n tanLambda0 = tan(lambdab),\n S = 0.5 / sin(lambdab);\n\n function forward(lambda, phi) {\n var za = acos(cos(phi) * cos(lambda - lambdaa)),\n zb = acos(cos(phi) * cos(lambda - lambdab)),\n ys = phi < 0 ? -1 : 1;\n za *= za, zb *= zb;\n return [\n (za - zb) / (2 * z0),\n ys * sqrt(4 * z02 * zb - (z02 - za + zb) * (z02 - za + zb)) / (2 * z0)\n ];\n }\n\n forward.invert = function(x, y) {\n var y2 = y * y,\n cosza = cos(sqrt(y2 + (t = x + lambdaa) * t)),\n coszb = cos(sqrt(y2 + (t = x + lambdab) * t)),\n t,\n d;\n return [\n atan2(d = cosza - coszb, t = (cosza + coszb) * tanLambda0),\n (y < 0 ? -1 : 1) * acos(sqrt(t * t + d * d) * S)\n ];\n };\n\n return forward;\n}\n\nfunction twoPointEquidistantUsa() {\n return twoPointEquidistant([-158, 21.5], [-77, 39])\n .clipAngle(130)\n .scale(122.571);\n}\n\nfunction twoPointEquidistant(p0, p1) {\n return twoPoint(twoPointEquidistantRaw, p0, p1);\n}\n\nfunction vanDerGrintenRaw(lambda, phi) {\n if (abs(phi) < epsilon) return [lambda, 0];\n var sinTheta = abs(phi / halfPi),\n theta = asin(sinTheta);\n if (abs(lambda) < epsilon || abs(abs(phi) - halfPi) < epsilon) return [0, sign(phi) * pi * tan(theta / 2)];\n var cosTheta = cos(theta),\n A = abs(pi / lambda - lambda / pi) / 2,\n A2 = A * A,\n G = cosTheta / (sinTheta + cosTheta - 1),\n P = G * (2 / sinTheta - 1),\n P2 = P * P,\n P2_A2 = P2 + A2,\n G_P2 = G - P2,\n Q = A2 + G;\n return [\n sign(lambda) * pi * (A * G_P2 + sqrt(A2 * G_P2 * G_P2 - P2_A2 * (G * G - P2))) / P2_A2,\n sign(phi) * pi * (P * Q - A * sqrt((A2 + 1) * P2_A2 - Q * Q)) / P2_A2\n ];\n}\n\nvanDerGrintenRaw.invert = function(x, y) {\n if (abs(y) < epsilon) return [x, 0];\n if (abs(x) < epsilon) return [0, halfPi * sin(2 * atan(y / pi))];\n var x2 = (x /= pi) * x,\n y2 = (y /= pi) * y,\n x2_y2 = x2 + y2,\n z = x2_y2 * x2_y2,\n c1 = -abs(y) * (1 + x2_y2),\n c2 = c1 - 2 * y2 + x2,\n c3 = -2 * c1 + 1 + 2 * y2 + z,\n d = y2 / c3 + (2 * c2 * c2 * c2 / (c3 * c3 * c3) - 9 * c1 * c2 / (c3 * c3)) / 27,\n a1 = (c1 - c2 * c2 / (3 * c3)) / c3,\n m1 = 2 * sqrt(-a1 / 3),\n theta1 = acos(3 * d / (a1 * m1)) / 3;\n return [\n pi * (x2_y2 - 1 + sqrt(1 + 2 * (x2 - y2) + z)) / (2 * x),\n sign(y) * pi * (-m1 * cos(theta1 + pi / 3) - c2 / (3 * c3))\n ];\n};\n\nfunction vanDerGrinten() {\n return d3Geo.geoProjection(vanDerGrintenRaw)\n .scale(79.4183);\n}\n\nfunction vanDerGrinten2Raw(lambda, phi) {\n if (abs(phi) < epsilon) return [lambda, 0];\n var sinTheta = abs(phi / halfPi),\n theta = asin(sinTheta);\n if (abs(lambda) < epsilon || abs(abs(phi) - halfPi) < epsilon) return [0, sign(phi) * pi * tan(theta / 2)];\n var cosTheta = cos(theta),\n A = abs(pi / lambda - lambda / pi) / 2,\n A2 = A * A,\n x1 = cosTheta * (sqrt(1 + A2) - A * cosTheta) / (1 + A2 * sinTheta * sinTheta);\n return [\n sign(lambda) * pi * x1,\n sign(phi) * pi * sqrt(1 - x1 * (2 * A + x1))\n ];\n}\n\nvanDerGrinten2Raw.invert = function(x, y) {\n if (!x) return [0, halfPi * sin(2 * atan(y / pi))];\n var x1 = abs(x / pi),\n A = (1 - x1 * x1 - (y /= pi) * y) / (2 * x1),\n A2 = A * A,\n B = sqrt(A2 + 1);\n return [\n sign(x) * pi * (B - A),\n sign(y) * halfPi * sin(2 * atan2(sqrt((1 - 2 * A * x1) * (A + B) - x1), sqrt(B + A + x1)))\n ];\n};\n\nfunction vanDerGrinten2() {\n return d3Geo.geoProjection(vanDerGrinten2Raw)\n .scale(79.4183);\n}\n\nfunction vanDerGrinten3Raw(lambda, phi) {\n if (abs(phi) < epsilon) return [lambda, 0];\n var sinTheta = phi / halfPi,\n theta = asin(sinTheta);\n if (abs(lambda) < epsilon || abs(abs(phi) - halfPi) < epsilon) return [0, pi * tan(theta / 2)];\n var A = (pi / lambda - lambda / pi) / 2,\n y1 = sinTheta / (1 + cos(theta));\n return [\n pi * (sign(lambda) * sqrt(A * A + 1 - y1 * y1) - A),\n pi * y1\n ];\n}\n\nvanDerGrinten3Raw.invert = function(x, y) {\n if (!y) return [x, 0];\n var y1 = y / pi,\n A = (pi * pi * (1 - y1 * y1) - x * x) / (2 * pi * x);\n return [\n x ? pi * (sign(x) * sqrt(A * A + 1) - A) : 0,\n halfPi * sin(2 * atan(y1))\n ];\n};\n\nfunction vanDerGrinten3() {\n return d3Geo.geoProjection(vanDerGrinten3Raw)\n .scale(79.4183);\n}\n\nfunction vanDerGrinten4Raw(lambda, phi) {\n if (!phi) return [lambda, 0];\n var phi0 = abs(phi);\n if (!lambda || phi0 === halfPi) return [0, phi];\n var B = phi0 / halfPi,\n B2 = B * B,\n C = (8 * B - B2 * (B2 + 2) - 5) / (2 * B2 * (B - 1)),\n C2 = C * C,\n BC = B * C,\n B_C2 = B2 + C2 + 2 * BC,\n B_3C = B + 3 * C,\n lambda0 = lambda / halfPi,\n lambda1 = lambda0 + 1 / lambda0,\n D = sign(abs(lambda) - halfPi) * sqrt(lambda1 * lambda1 - 4),\n D2 = D * D,\n F = B_C2 * (B2 + C2 * D2 - 1) + (1 - B2) * (B2 * (B_3C * B_3C + 4 * C2) + 12 * BC * C2 + 4 * C2 * C2),\n x1 = (D * (B_C2 + C2 - 1) + 2 * sqrt(F)) / (4 * B_C2 + D2);\n return [\n sign(lambda) * halfPi * x1,\n sign(phi) * halfPi * sqrt(1 + D * abs(x1) - x1 * x1)\n ];\n}\n\nvanDerGrinten4Raw.invert = function(x, y) {\n var delta;\n if (!x || !y) return [x, y];\n y /= pi;\n var x1 = sign(x) * x / halfPi,\n D = (x1 * x1 - 1 + 4 * y * y) / abs(x1),\n D2 = D * D,\n B = 2 * y,\n i = 50;\n do {\n var B2 = B * B,\n C = (8 * B - B2 * (B2 + 2) - 5) / (2 * B2 * (B - 1)),\n C_ = (3 * B - B2 * B - 10) / (2 * B2 * B),\n C2 = C * C,\n BC = B * C,\n B_C = B + C,\n B_C2 = B_C * B_C,\n B_3C = B + 3 * C,\n F = B_C2 * (B2 + C2 * D2 - 1) + (1 - B2) * (B2 * (B_3C * B_3C + 4 * C2) + C2 * (12 * BC + 4 * C2)),\n F_ = -2 * B_C * (4 * BC * C2 + (1 - 4 * B2 + 3 * B2 * B2) * (1 + C_) + C2 * (-6 + 14 * B2 - D2 + (-8 + 8 * B2 - 2 * D2) * C_) + BC * (-8 + 12 * B2 + (-10 + 10 * B2 - D2) * C_)),\n sqrtF = sqrt(F),\n f = D * (B_C2 + C2 - 1) + 2 * sqrtF - x1 * (4 * B_C2 + D2),\n f_ = D * (2 * C * C_ + 2 * B_C * (1 + C_)) + F_ / sqrtF - 8 * B_C * (D * (-1 + C2 + B_C2) + 2 * sqrtF) * (1 + C_) / (D2 + 4 * B_C2);\n B -= delta = f / f_;\n } while (delta > epsilon && --i > 0);\n return [\n sign(x) * (sqrt(D * D + 4) + D) * pi / 4,\n halfPi * B\n ];\n};\n\nfunction vanDerGrinten4() {\n return d3Geo.geoProjection(vanDerGrinten4Raw)\n .scale(127.16);\n}\n\nfunction wagnerFormula(cx, cy, m1, m2, n) {\n function forward(lambda, phi) {\n var s = m1 * sin(m2 * phi),\n c0 = sqrt(1 - s * s),\n c1 = sqrt(2 / (1 + c0 * cos(lambda *= n)));\n return [\n cx * c0 * c1 * sin(lambda),\n cy * s * c1\n ];\n }\n\n forward.invert = function(x, y) {\n var t1 = x / cx,\n t2 = y / cy,\n p = sqrt(t1 * t1 + t2 * t2),\n c = 2 * asin(p / 2);\n return [\n atan2(x * tan(c), cx * p) / n,\n p && asin(y * sin(c) / (cy * m1 * p)) / m2\n ];\n };\n\n return forward;\n}\n\nfunction wagnerRaw(poleline, parallels, inflation, ratio) {\n // 60 is always used as reference parallel\n var phi1 = pi / 3;\n\n // sanitizing the input values\n // poleline and parallels may approximate but never equal 0\n poleline = max(poleline, epsilon);\n parallels = max(parallels, epsilon);\n // poleline must be <= 90; parallels may approximate but never equal 180\n poleline = min(poleline, halfPi);\n parallels = min(parallels, pi - epsilon);\n // 0 <= inflation <= 99.999\n inflation = max(inflation, 0);\n inflation = min(inflation, 100 - epsilon);\n // ratio > 0.\n // sensible values, i.e. something that renders a map which still can be\n // recognized as world map, are e.g. 20 <= ratio <= 1000.\n ratio = max(ratio, epsilon);\n\n // convert values from boehm notation\n // areal inflation e.g. from 0 to 1 or 20 to 1.2:\n var vinflation = inflation/100 + 1;\n // axial ratio e.g. from 200 to 2:\n var vratio = ratio / 100;\n // the other ones are a bit more complicated...\n var m2 = acos(vinflation * cos(phi1)) / phi1,\n m1 = sin(poleline) / sin(m2 * halfPi),\n n = parallels / pi,\n k = sqrt(vratio * sin(poleline / 2) / sin(parallels / 2)),\n cx = k / sqrt(n * m1 * m2),\n cy = 1 / (k * sqrt(n * m1 * m2));\n\n return wagnerFormula(cx, cy, m1, m2, n);\n}\n\nfunction wagner() {\n // default values generate wagner8\n var poleline = 65 * radians,\n parallels = 60 * radians,\n inflation = 20,\n ratio = 200,\n mutate = d3Geo.geoProjectionMutator(wagnerRaw),\n projection = mutate(poleline, parallels, inflation, ratio);\n\n projection.poleline = function(_) {\n return arguments.length ? mutate(poleline = +_ * radians, parallels, inflation, ratio) : poleline * degrees;\n };\n\n projection.parallels = function(_) {\n return arguments.length ? mutate(poleline, parallels = +_ * radians, inflation, ratio) : parallels * degrees;\n };\n projection.inflation = function(_) {\n return arguments.length ? mutate(poleline, parallels, inflation = +_, ratio) : inflation;\n };\n projection.ratio = function(_) {\n return arguments.length ? mutate(poleline, parallels, inflation, ratio = +_) : ratio;\n };\n\n return projection\n .scale(163.775);\n}\n\nfunction wagner7() {\n return wagner()\n .poleline(65)\n .parallels(60)\n .inflation(0)\n .ratio(200)\n .scale(172.633);\n}\n\nvar A = 4 * pi + 3 * sqrt(3),\n B = 2 * sqrt(2 * pi * sqrt(3) / A);\n\nvar wagner4Raw = mollweideBromleyRaw(B * sqrt(3) / pi, B, A / 6);\n\nfunction wagner4() {\n return d3Geo.geoProjection(wagner4Raw)\n .scale(176.84);\n}\n\nfunction wagner6Raw(lambda, phi) {\n return [lambda * sqrt(1 - 3 * phi * phi / (pi * pi)), phi];\n}\n\nwagner6Raw.invert = function(x, y) {\n return [x / sqrt(1 - 3 * y * y / (pi * pi)), y];\n};\n\nfunction wagner6() {\n return d3Geo.geoProjection(wagner6Raw)\n .scale(152.63);\n}\n\nfunction wiechelRaw(lambda, phi) {\n var cosPhi = cos(phi),\n sinPhi = cos(lambda) * cosPhi,\n sin1_Phi = 1 - sinPhi,\n cosLambda = cos(lambda = atan2(sin(lambda) * cosPhi, -sin(phi))),\n sinLambda = sin(lambda);\n cosPhi = sqrt(1 - sinPhi * sinPhi);\n return [\n sinLambda * cosPhi - cosLambda * sin1_Phi,\n -cosLambda * cosPhi - sinLambda * sin1_Phi\n ];\n}\n\nwiechelRaw.invert = function(x, y) {\n var w = (x * x + y * y) / -2,\n k = sqrt(-w * (2 + w)),\n b = y * w + x * k,\n a = x * w - y * k,\n D = sqrt(a * a + b * b);\n return [\n atan2(k * b, D * (1 + w)),\n D ? -asin(k * a / D) : 0\n ];\n};\n\nfunction wiechel() {\n return d3Geo.geoProjection(wiechelRaw)\n .rotate([0, -90, 45])\n .scale(124.75)\n .clipAngle(180 - 1e-3);\n}\n\nfunction winkel3Raw(lambda, phi) {\n var coordinates = aitoffRaw(lambda, phi);\n return [\n (coordinates[0] + lambda / halfPi) / 2,\n (coordinates[1] + phi) / 2\n ];\n}\n\nwinkel3Raw.invert = function(x, y) {\n var lambda = x, phi = y, i = 25;\n do {\n var cosphi = cos(phi),\n sinphi = sin(phi),\n sin_2phi = sin(2 * phi),\n sin2phi = sinphi * sinphi,\n cos2phi = cosphi * cosphi,\n sinlambda = sin(lambda),\n coslambda_2 = cos(lambda / 2),\n sinlambda_2 = sin(lambda / 2),\n sin2lambda_2 = sinlambda_2 * sinlambda_2,\n C = 1 - cos2phi * coslambda_2 * coslambda_2,\n E = C ? acos(cosphi * coslambda_2) * sqrt(F = 1 / C) : F = 0,\n F,\n fx = 0.5 * (2 * E * cosphi * sinlambda_2 + lambda / halfPi) - x,\n fy = 0.5 * (E * sinphi + phi) - y,\n dxdlambda = 0.5 * F * (cos2phi * sin2lambda_2 + E * cosphi * coslambda_2 * sin2phi) + 0.5 / halfPi,\n dxdphi = F * (sinlambda * sin_2phi / 4 - E * sinphi * sinlambda_2),\n dydlambda = 0.125 * F * (sin_2phi * sinlambda_2 - E * sinphi * cos2phi * sinlambda),\n dydphi = 0.5 * F * (sin2phi * coslambda_2 + E * sin2lambda_2 * cosphi) + 0.5,\n denominator = dxdphi * dydlambda - dydphi * dxdlambda,\n dlambda = (fy * dxdphi - fx * dydphi) / denominator,\n dphi = (fx * dydlambda - fy * dxdlambda) / denominator;\n lambda -= dlambda, phi -= dphi;\n } while ((abs(dlambda) > epsilon || abs(dphi) > epsilon) && --i > 0);\n return [lambda, phi];\n};\n\nfunction winkel3() {\n return d3Geo.geoProjection(winkel3Raw)\n .scale(158.837);\n}\n\nexports.geoNaturalEarth = d3Geo.geoNaturalEarth1;\nexports.geoNaturalEarthRaw = d3Geo.geoNaturalEarth1Raw;\nexports.geoAiry = airy;\nexports.geoAiryRaw = airyRaw;\nexports.geoAitoff = aitoff;\nexports.geoAitoffRaw = aitoffRaw;\nexports.geoArmadillo = armadillo;\nexports.geoArmadilloRaw = armadilloRaw;\nexports.geoAugust = august;\nexports.geoAugustRaw = augustRaw;\nexports.geoBaker = baker;\nexports.geoBakerRaw = bakerRaw;\nexports.geoBerghaus = berghaus;\nexports.geoBerghausRaw = berghausRaw;\nexports.geoBertin1953 = bertin;\nexports.geoBertin1953Raw = bertin1953Raw;\nexports.geoBoggs = boggs;\nexports.geoBoggsRaw = boggsRaw;\nexports.geoBonne = bonne;\nexports.geoBonneRaw = bonneRaw;\nexports.geoBottomley = bottomley;\nexports.geoBottomleyRaw = bottomleyRaw;\nexports.geoBromley = bromley;\nexports.geoBromleyRaw = bromleyRaw;\nexports.geoChamberlin = chamberlin;\nexports.geoChamberlinRaw = chamberlinRaw;\nexports.geoChamberlinAfrica = chamberlinAfrica;\nexports.geoCollignon = collignon;\nexports.geoCollignonRaw = collignonRaw;\nexports.geoCraig = craig;\nexports.geoCraigRaw = craigRaw;\nexports.geoCraster = craster;\nexports.geoCrasterRaw = crasterRaw;\nexports.geoCylindricalEqualArea = cylindricalEqualArea;\nexports.geoCylindricalEqualAreaRaw = cylindricalEqualAreaRaw;\nexports.geoCylindricalStereographic = cylindricalStereographic;\nexports.geoCylindricalStereographicRaw = cylindricalStereographicRaw;\nexports.geoEckert1 = eckert1;\nexports.geoEckert1Raw = eckert1Raw;\nexports.geoEckert2 = eckert2;\nexports.geoEckert2Raw = eckert2Raw;\nexports.geoEckert3 = eckert3;\nexports.geoEckert3Raw = eckert3Raw;\nexports.geoEckert4 = eckert4;\nexports.geoEckert4Raw = eckert4Raw;\nexports.geoEckert5 = eckert5;\nexports.geoEckert5Raw = eckert5Raw;\nexports.geoEckert6 = eckert6;\nexports.geoEckert6Raw = eckert6Raw;\nexports.geoEisenlohr = eisenlohr;\nexports.geoEisenlohrRaw = eisenlohrRaw;\nexports.geoFahey = fahey;\nexports.geoFaheyRaw = faheyRaw;\nexports.geoFoucaut = foucaut;\nexports.geoFoucautRaw = foucautRaw;\nexports.geoFoucautSinusoidal = foucautSinusoidal;\nexports.geoFoucautSinusoidalRaw = foucautSinusoidalRaw;\nexports.geoGilbert = gilbert;\nexports.geoGingery = gingery;\nexports.geoGingeryRaw = gingeryRaw;\nexports.geoGinzburg4 = ginzburg4;\nexports.geoGinzburg4Raw = ginzburg4Raw;\nexports.geoGinzburg5 = ginzburg5;\nexports.geoGinzburg5Raw = ginzburg5Raw;\nexports.geoGinzburg6 = ginzburg6;\nexports.geoGinzburg6Raw = ginzburg6Raw;\nexports.geoGinzburg8 = ginzburg8;\nexports.geoGinzburg8Raw = ginzburg8Raw;\nexports.geoGinzburg9 = ginzburg9;\nexports.geoGinzburg9Raw = ginzburg9Raw;\nexports.geoGringorten = gringorten;\nexports.geoGringortenRaw = gringortenRaw;\nexports.geoGuyou = guyou;\nexports.geoGuyouRaw = guyouRaw;\nexports.geoHammer = hammer;\nexports.geoHammerRaw = hammerRaw;\nexports.geoHammerRetroazimuthal = hammerRetroazimuthal;\nexports.geoHammerRetroazimuthalRaw = hammerRetroazimuthalRaw;\nexports.geoHealpix = healpix;\nexports.geoHealpixRaw = healpixRaw;\nexports.geoHill = hill;\nexports.geoHillRaw = hillRaw;\nexports.geoHomolosine = homolosine;\nexports.geoHomolosineRaw = homolosineRaw;\nexports.geoHufnagel = hufnagel;\nexports.geoHufnagelRaw = hufnagelRaw;\nexports.geoHyperelliptical = hyperelliptical;\nexports.geoHyperellipticalRaw = hyperellipticalRaw;\nexports.geoInterrupt = interrupt;\nexports.geoInterruptedBoggs = boggs$1;\nexports.geoInterruptedHomolosine = homolosine$1;\nexports.geoInterruptedMollweide = mollweide$1;\nexports.geoInterruptedMollweideHemispheres = mollweideHemispheres;\nexports.geoInterruptedSinuMollweide = sinuMollweide$1;\nexports.geoInterruptedSinusoidal = sinusoidal$1;\nexports.geoKavrayskiy7 = kavrayskiy7;\nexports.geoKavrayskiy7Raw = kavrayskiy7Raw;\nexports.geoLagrange = lagrange;\nexports.geoLagrangeRaw = lagrangeRaw;\nexports.geoLarrivee = larrivee;\nexports.geoLarriveeRaw = larriveeRaw;\nexports.geoLaskowski = laskowski;\nexports.geoLaskowskiRaw = laskowskiRaw;\nexports.geoLittrow = littrow;\nexports.geoLittrowRaw = littrowRaw;\nexports.geoLoximuthal = loximuthal;\nexports.geoLoximuthalRaw = loximuthalRaw;\nexports.geoMiller = miller;\nexports.geoMillerRaw = millerRaw;\nexports.geoModifiedStereographic = modifiedStereographic;\nexports.geoModifiedStereographicRaw = modifiedStereographicRaw;\nexports.geoModifiedStereographicAlaska = modifiedStereographicAlaska;\nexports.geoModifiedStereographicGs48 = modifiedStereographicGs48;\nexports.geoModifiedStereographicGs50 = modifiedStereographicGs50;\nexports.geoModifiedStereographicMiller = modifiedStereographicMiller;\nexports.geoModifiedStereographicLee = modifiedStereographicLee;\nexports.geoMollweide = mollweide;\nexports.geoMollweideRaw = mollweideRaw;\nexports.geoMtFlatPolarParabolic = mtFlatPolarParabolic;\nexports.geoMtFlatPolarParabolicRaw = mtFlatPolarParabolicRaw;\nexports.geoMtFlatPolarQuartic = mtFlatPolarQuartic;\nexports.geoMtFlatPolarQuarticRaw = mtFlatPolarQuarticRaw;\nexports.geoMtFlatPolarSinusoidal = mtFlatPolarSinusoidal;\nexports.geoMtFlatPolarSinusoidalRaw = mtFlatPolarSinusoidalRaw;\nexports.geoNaturalEarth2 = naturalEarth2;\nexports.geoNaturalEarth2Raw = naturalEarth2Raw;\nexports.geoNellHammer = nellHammer;\nexports.geoNellHammerRaw = nellHammerRaw;\nexports.geoInterruptedQuarticAuthalic = quarticAuthalic;\nexports.geoNicolosi = nicolosi;\nexports.geoNicolosiRaw = nicolosiRaw;\nexports.geoPatterson = patterson;\nexports.geoPattersonRaw = pattersonRaw;\nexports.geoPolyconic = polyconic;\nexports.geoPolyconicRaw = polyconicRaw;\nexports.geoPolyhedral = polyhedral;\nexports.geoPolyhedralButterfly = butterfly;\nexports.geoPolyhedralCollignon = collignon$1;\nexports.geoPolyhedralWaterman = waterman;\nexports.geoProject = index;\nexports.geoGringortenQuincuncial = gringorten$1;\nexports.geoPeirceQuincuncial = peirce;\nexports.geoPierceQuincuncial = peirce;\nexports.geoQuantize = quantize;\nexports.geoQuincuncial = quincuncial;\nexports.geoRectangularPolyconic = rectangularPolyconic;\nexports.geoRectangularPolyconicRaw = rectangularPolyconicRaw;\nexports.geoRobinson = robinson;\nexports.geoRobinsonRaw = robinsonRaw;\nexports.geoSatellite = satellite;\nexports.geoSatelliteRaw = satelliteRaw;\nexports.geoSinuMollweide = sinuMollweide;\nexports.geoSinuMollweideRaw = sinuMollweideRaw;\nexports.geoSinusoidal = sinusoidal;\nexports.geoSinusoidalRaw = sinusoidalRaw;\nexports.geoStitch = stitch;\nexports.geoTimes = times;\nexports.geoTimesRaw = timesRaw;\nexports.geoTwoPointAzimuthal = twoPointAzimuthal;\nexports.geoTwoPointAzimuthalRaw = twoPointAzimuthalRaw;\nexports.geoTwoPointAzimuthalUsa = twoPointAzimuthalUsa;\nexports.geoTwoPointEquidistant = twoPointEquidistant;\nexports.geoTwoPointEquidistantRaw = twoPointEquidistantRaw;\nexports.geoTwoPointEquidistantUsa = twoPointEquidistantUsa;\nexports.geoVanDerGrinten = vanDerGrinten;\nexports.geoVanDerGrintenRaw = vanDerGrintenRaw;\nexports.geoVanDerGrinten2 = vanDerGrinten2;\nexports.geoVanDerGrinten2Raw = vanDerGrinten2Raw;\nexports.geoVanDerGrinten3 = vanDerGrinten3;\nexports.geoVanDerGrinten3Raw = vanDerGrinten3Raw;\nexports.geoVanDerGrinten4 = vanDerGrinten4;\nexports.geoVanDerGrinten4Raw = vanDerGrinten4Raw;\nexports.geoWagner = wagner;\nexports.geoWagner7 = wagner7;\nexports.geoWagnerRaw = wagnerRaw;\nexports.geoWagner4 = wagner4;\nexports.geoWagner4Raw = wagner4Raw;\nexports.geoWagner6 = wagner6;\nexports.geoWagner6Raw = wagner6Raw;\nexports.geoWiechel = wiechel;\nexports.geoWiechelRaw = wiechelRaw;\nexports.geoWinkel3 = winkel3;\nexports.geoWinkel3Raw = winkel3Raw;\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n})));\n\n},{\"d3-array\":107,\"d3-geo\":114}],114:[function(_dereq_,module,exports){\n// https://d3js.org/d3-geo/ v1.12.1 Copyright 2020 Mike Bostock\n(function (global, factory) {\ntypeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, _dereq_('d3-array')) :\ntypeof define === 'function' && define.amd ? define(['exports', 'd3-array'], factory) :\n(global = global || self, factory(global.d3 = global.d3 || {}, global.d3));\n}(this, (function (exports, d3Array) { 'use strict';\n\n// Adds floating point numbers with twice the normal precision.\n// Reference: J. R. Shewchuk, Adaptive Precision Floating-Point Arithmetic and\n// Fast Robust Geometric Predicates, Discrete & Computational Geometry 18(3)\n// 305–363 (1997).\n// Code adapted from GeographicLib by Charles F. F. Karney,\n// http://geographiclib.sourceforge.net/\n\nfunction adder() {\n return new Adder;\n}\n\nfunction Adder() {\n this.reset();\n}\n\nAdder.prototype = {\n constructor: Adder,\n reset: function() {\n this.s = // rounded value\n this.t = 0; // exact error\n },\n add: function(y) {\n add(temp, y, this.t);\n add(this, temp.s, this.s);\n if (this.s) this.t += temp.t;\n else this.s = temp.t;\n },\n valueOf: function() {\n return this.s;\n }\n};\n\nvar temp = new Adder;\n\nfunction add(adder, a, b) {\n var x = adder.s = a + b,\n bv = x - a,\n av = x - bv;\n adder.t = (a - av) + (b - bv);\n}\n\nvar epsilon = 1e-6;\nvar epsilon2 = 1e-12;\nvar pi = Math.PI;\nvar halfPi = pi / 2;\nvar quarterPi = pi / 4;\nvar tau = pi * 2;\n\nvar degrees = 180 / pi;\nvar radians = pi / 180;\n\nvar abs = Math.abs;\nvar atan = Math.atan;\nvar atan2 = Math.atan2;\nvar cos = Math.cos;\nvar ceil = Math.ceil;\nvar exp = Math.exp;\nvar log = Math.log;\nvar pow = Math.pow;\nvar sin = Math.sin;\nvar sign = Math.sign || function(x) { return x > 0 ? 1 : x < 0 ? -1 : 0; };\nvar sqrt = Math.sqrt;\nvar tan = Math.tan;\n\nfunction acos(x) {\n return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);\n}\n\nfunction asin(x) {\n return x > 1 ? halfPi : x < -1 ? -halfPi : Math.asin(x);\n}\n\nfunction haversin(x) {\n return (x = sin(x / 2)) * x;\n}\n\nfunction noop() {}\n\nfunction streamGeometry(geometry, stream) {\n if (geometry && streamGeometryType.hasOwnProperty(geometry.type)) {\n streamGeometryType[geometry.type](geometry, stream);\n }\n}\n\nvar streamObjectType = {\n Feature: function(object, stream) {\n streamGeometry(object.geometry, stream);\n },\n FeatureCollection: function(object, stream) {\n var features = object.features, i = -1, n = features.length;\n while (++i < n) streamGeometry(features[i].geometry, stream);\n }\n};\n\nvar streamGeometryType = {\n Sphere: function(object, stream) {\n stream.sphere();\n },\n Point: function(object, stream) {\n object = object.coordinates;\n stream.point(object[0], object[1], object[2]);\n },\n MultiPoint: function(object, stream) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) object = coordinates[i], stream.point(object[0], object[1], object[2]);\n },\n LineString: function(object, stream) {\n streamLine(object.coordinates, stream, 0);\n },\n MultiLineString: function(object, stream) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) streamLine(coordinates[i], stream, 0);\n },\n Polygon: function(object, stream) {\n streamPolygon(object.coordinates, stream);\n },\n MultiPolygon: function(object, stream) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) streamPolygon(coordinates[i], stream);\n },\n GeometryCollection: function(object, stream) {\n var geometries = object.geometries, i = -1, n = geometries.length;\n while (++i < n) streamGeometry(geometries[i], stream);\n }\n};\n\nfunction streamLine(coordinates, stream, closed) {\n var i = -1, n = coordinates.length - closed, coordinate;\n stream.lineStart();\n while (++i < n) coordinate = coordinates[i], stream.point(coordinate[0], coordinate[1], coordinate[2]);\n stream.lineEnd();\n}\n\nfunction streamPolygon(coordinates, stream) {\n var i = -1, n = coordinates.length;\n stream.polygonStart();\n while (++i < n) streamLine(coordinates[i], stream, 1);\n stream.polygonEnd();\n}\n\nfunction geoStream(object, stream) {\n if (object && streamObjectType.hasOwnProperty(object.type)) {\n streamObjectType[object.type](object, stream);\n } else {\n streamGeometry(object, stream);\n }\n}\n\nvar areaRingSum = adder();\n\nvar areaSum = adder(),\n lambda00,\n phi00,\n lambda0,\n cosPhi0,\n sinPhi0;\n\nvar areaStream = {\n point: noop,\n lineStart: noop,\n lineEnd: noop,\n polygonStart: function() {\n areaRingSum.reset();\n areaStream.lineStart = areaRingStart;\n areaStream.lineEnd = areaRingEnd;\n },\n polygonEnd: function() {\n var areaRing = +areaRingSum;\n areaSum.add(areaRing < 0 ? tau + areaRing : areaRing);\n this.lineStart = this.lineEnd = this.point = noop;\n },\n sphere: function() {\n areaSum.add(tau);\n }\n};\n\nfunction areaRingStart() {\n areaStream.point = areaPointFirst;\n}\n\nfunction areaRingEnd() {\n areaPoint(lambda00, phi00);\n}\n\nfunction areaPointFirst(lambda, phi) {\n areaStream.point = areaPoint;\n lambda00 = lambda, phi00 = phi;\n lambda *= radians, phi *= radians;\n lambda0 = lambda, cosPhi0 = cos(phi = phi / 2 + quarterPi), sinPhi0 = sin(phi);\n}\n\nfunction areaPoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n phi = phi / 2 + quarterPi; // half the angular distance from south pole\n\n // Spherical excess E for a spherical triangle with vertices: south pole,\n // previous point, current point. Uses a formula derived from Cagnoli’s\n // theorem. See Todhunter, Spherical Trig. (1871), Sec. 103, Eq. (2).\n var dLambda = lambda - lambda0,\n sdLambda = dLambda >= 0 ? 1 : -1,\n adLambda = sdLambda * dLambda,\n cosPhi = cos(phi),\n sinPhi = sin(phi),\n k = sinPhi0 * sinPhi,\n u = cosPhi0 * cosPhi + k * cos(adLambda),\n v = k * sdLambda * sin(adLambda);\n areaRingSum.add(atan2(v, u));\n\n // Advance the previous points.\n lambda0 = lambda, cosPhi0 = cosPhi, sinPhi0 = sinPhi;\n}\n\nfunction area(object) {\n areaSum.reset();\n geoStream(object, areaStream);\n return areaSum * 2;\n}\n\nfunction spherical(cartesian) {\n return [atan2(cartesian[1], cartesian[0]), asin(cartesian[2])];\n}\n\nfunction cartesian(spherical) {\n var lambda = spherical[0], phi = spherical[1], cosPhi = cos(phi);\n return [cosPhi * cos(lambda), cosPhi * sin(lambda), sin(phi)];\n}\n\nfunction cartesianDot(a, b) {\n return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];\n}\n\nfunction cartesianCross(a, b) {\n return [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];\n}\n\n// TODO return a\nfunction cartesianAddInPlace(a, b) {\n a[0] += b[0], a[1] += b[1], a[2] += b[2];\n}\n\nfunction cartesianScale(vector, k) {\n return [vector[0] * k, vector[1] * k, vector[2] * k];\n}\n\n// TODO return d\nfunction cartesianNormalizeInPlace(d) {\n var l = sqrt(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]);\n d[0] /= l, d[1] /= l, d[2] /= l;\n}\n\nvar lambda0$1, phi0, lambda1, phi1, // bounds\n lambda2, // previous lambda-coordinate\n lambda00$1, phi00$1, // first point\n p0, // previous 3D point\n deltaSum = adder(),\n ranges,\n range;\n\nvar boundsStream = {\n point: boundsPoint,\n lineStart: boundsLineStart,\n lineEnd: boundsLineEnd,\n polygonStart: function() {\n boundsStream.point = boundsRingPoint;\n boundsStream.lineStart = boundsRingStart;\n boundsStream.lineEnd = boundsRingEnd;\n deltaSum.reset();\n areaStream.polygonStart();\n },\n polygonEnd: function() {\n areaStream.polygonEnd();\n boundsStream.point = boundsPoint;\n boundsStream.lineStart = boundsLineStart;\n boundsStream.lineEnd = boundsLineEnd;\n if (areaRingSum < 0) lambda0$1 = -(lambda1 = 180), phi0 = -(phi1 = 90);\n else if (deltaSum > epsilon) phi1 = 90;\n else if (deltaSum < -epsilon) phi0 = -90;\n range[0] = lambda0$1, range[1] = lambda1;\n },\n sphere: function() {\n lambda0$1 = -(lambda1 = 180), phi0 = -(phi1 = 90);\n }\n};\n\nfunction boundsPoint(lambda, phi) {\n ranges.push(range = [lambda0$1 = lambda, lambda1 = lambda]);\n if (phi < phi0) phi0 = phi;\n if (phi > phi1) phi1 = phi;\n}\n\nfunction linePoint(lambda, phi) {\n var p = cartesian([lambda * radians, phi * radians]);\n if (p0) {\n var normal = cartesianCross(p0, p),\n equatorial = [normal[1], -normal[0], 0],\n inflection = cartesianCross(equatorial, normal);\n cartesianNormalizeInPlace(inflection);\n inflection = spherical(inflection);\n var delta = lambda - lambda2,\n sign = delta > 0 ? 1 : -1,\n lambdai = inflection[0] * degrees * sign,\n phii,\n antimeridian = abs(delta) > 180;\n if (antimeridian ^ (sign * lambda2 < lambdai && lambdai < sign * lambda)) {\n phii = inflection[1] * degrees;\n if (phii > phi1) phi1 = phii;\n } else if (lambdai = (lambdai + 360) % 360 - 180, antimeridian ^ (sign * lambda2 < lambdai && lambdai < sign * lambda)) {\n phii = -inflection[1] * degrees;\n if (phii < phi0) phi0 = phii;\n } else {\n if (phi < phi0) phi0 = phi;\n if (phi > phi1) phi1 = phi;\n }\n if (antimeridian) {\n if (lambda < lambda2) {\n if (angle(lambda0$1, lambda) > angle(lambda0$1, lambda1)) lambda1 = lambda;\n } else {\n if (angle(lambda, lambda1) > angle(lambda0$1, lambda1)) lambda0$1 = lambda;\n }\n } else {\n if (lambda1 >= lambda0$1) {\n if (lambda < lambda0$1) lambda0$1 = lambda;\n if (lambda > lambda1) lambda1 = lambda;\n } else {\n if (lambda > lambda2) {\n if (angle(lambda0$1, lambda) > angle(lambda0$1, lambda1)) lambda1 = lambda;\n } else {\n if (angle(lambda, lambda1) > angle(lambda0$1, lambda1)) lambda0$1 = lambda;\n }\n }\n }\n } else {\n ranges.push(range = [lambda0$1 = lambda, lambda1 = lambda]);\n }\n if (phi < phi0) phi0 = phi;\n if (phi > phi1) phi1 = phi;\n p0 = p, lambda2 = lambda;\n}\n\nfunction boundsLineStart() {\n boundsStream.point = linePoint;\n}\n\nfunction boundsLineEnd() {\n range[0] = lambda0$1, range[1] = lambda1;\n boundsStream.point = boundsPoint;\n p0 = null;\n}\n\nfunction boundsRingPoint(lambda, phi) {\n if (p0) {\n var delta = lambda - lambda2;\n deltaSum.add(abs(delta) > 180 ? delta + (delta > 0 ? 360 : -360) : delta);\n } else {\n lambda00$1 = lambda, phi00$1 = phi;\n }\n areaStream.point(lambda, phi);\n linePoint(lambda, phi);\n}\n\nfunction boundsRingStart() {\n areaStream.lineStart();\n}\n\nfunction boundsRingEnd() {\n boundsRingPoint(lambda00$1, phi00$1);\n areaStream.lineEnd();\n if (abs(deltaSum) > epsilon) lambda0$1 = -(lambda1 = 180);\n range[0] = lambda0$1, range[1] = lambda1;\n p0 = null;\n}\n\n// Finds the left-right distance between two longitudes.\n// This is almost the same as (lambda1 - lambda0 + 360°) % 360°, except that we want\n// the distance between ±180° to be 360°.\nfunction angle(lambda0, lambda1) {\n return (lambda1 -= lambda0) < 0 ? lambda1 + 360 : lambda1;\n}\n\nfunction rangeCompare(a, b) {\n return a[0] - b[0];\n}\n\nfunction rangeContains(range, x) {\n return range[0] <= range[1] ? range[0] <= x && x <= range[1] : x < range[0] || range[1] < x;\n}\n\nfunction bounds(feature) {\n var i, n, a, b, merged, deltaMax, delta;\n\n phi1 = lambda1 = -(lambda0$1 = phi0 = Infinity);\n ranges = [];\n geoStream(feature, boundsStream);\n\n // First, sort ranges by their minimum longitudes.\n if (n = ranges.length) {\n ranges.sort(rangeCompare);\n\n // Then, merge any ranges that overlap.\n for (i = 1, a = ranges[0], merged = [a]; i < n; ++i) {\n b = ranges[i];\n if (rangeContains(a, b[0]) || rangeContains(a, b[1])) {\n if (angle(a[0], b[1]) > angle(a[0], a[1])) a[1] = b[1];\n if (angle(b[0], a[1]) > angle(a[0], a[1])) a[0] = b[0];\n } else {\n merged.push(a = b);\n }\n }\n\n // Finally, find the largest gap between the merged ranges.\n // The final bounding box will be the inverse of this gap.\n for (deltaMax = -Infinity, n = merged.length - 1, i = 0, a = merged[n]; i <= n; a = b, ++i) {\n b = merged[i];\n if ((delta = angle(a[1], b[0])) > deltaMax) deltaMax = delta, lambda0$1 = b[0], lambda1 = a[1];\n }\n }\n\n ranges = range = null;\n\n return lambda0$1 === Infinity || phi0 === Infinity\n ? [[NaN, NaN], [NaN, NaN]]\n : [[lambda0$1, phi0], [lambda1, phi1]];\n}\n\nvar W0, W1,\n X0, Y0, Z0,\n X1, Y1, Z1,\n X2, Y2, Z2,\n lambda00$2, phi00$2, // first point\n x0, y0, z0; // previous point\n\nvar centroidStream = {\n sphere: noop,\n point: centroidPoint,\n lineStart: centroidLineStart,\n lineEnd: centroidLineEnd,\n polygonStart: function() {\n centroidStream.lineStart = centroidRingStart;\n centroidStream.lineEnd = centroidRingEnd;\n },\n polygonEnd: function() {\n centroidStream.lineStart = centroidLineStart;\n centroidStream.lineEnd = centroidLineEnd;\n }\n};\n\n// Arithmetic mean of Cartesian vectors.\nfunction centroidPoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n var cosPhi = cos(phi);\n centroidPointCartesian(cosPhi * cos(lambda), cosPhi * sin(lambda), sin(phi));\n}\n\nfunction centroidPointCartesian(x, y, z) {\n ++W0;\n X0 += (x - X0) / W0;\n Y0 += (y - Y0) / W0;\n Z0 += (z - Z0) / W0;\n}\n\nfunction centroidLineStart() {\n centroidStream.point = centroidLinePointFirst;\n}\n\nfunction centroidLinePointFirst(lambda, phi) {\n lambda *= radians, phi *= radians;\n var cosPhi = cos(phi);\n x0 = cosPhi * cos(lambda);\n y0 = cosPhi * sin(lambda);\n z0 = sin(phi);\n centroidStream.point = centroidLinePoint;\n centroidPointCartesian(x0, y0, z0);\n}\n\nfunction centroidLinePoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n var cosPhi = cos(phi),\n x = cosPhi * cos(lambda),\n y = cosPhi * sin(lambda),\n z = sin(phi),\n w = atan2(sqrt((w = y0 * z - z0 * y) * w + (w = z0 * x - x0 * z) * w + (w = x0 * y - y0 * x) * w), x0 * x + y0 * y + z0 * z);\n W1 += w;\n X1 += w * (x0 + (x0 = x));\n Y1 += w * (y0 + (y0 = y));\n Z1 += w * (z0 + (z0 = z));\n centroidPointCartesian(x0, y0, z0);\n}\n\nfunction centroidLineEnd() {\n centroidStream.point = centroidPoint;\n}\n\n// See J. E. Brock, The Inertia Tensor for a Spherical Triangle,\n// J. Applied Mechanics 42, 239 (1975).\nfunction centroidRingStart() {\n centroidStream.point = centroidRingPointFirst;\n}\n\nfunction centroidRingEnd() {\n centroidRingPoint(lambda00$2, phi00$2);\n centroidStream.point = centroidPoint;\n}\n\nfunction centroidRingPointFirst(lambda, phi) {\n lambda00$2 = lambda, phi00$2 = phi;\n lambda *= radians, phi *= radians;\n centroidStream.point = centroidRingPoint;\n var cosPhi = cos(phi);\n x0 = cosPhi * cos(lambda);\n y0 = cosPhi * sin(lambda);\n z0 = sin(phi);\n centroidPointCartesian(x0, y0, z0);\n}\n\nfunction centroidRingPoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n var cosPhi = cos(phi),\n x = cosPhi * cos(lambda),\n y = cosPhi * sin(lambda),\n z = sin(phi),\n cx = y0 * z - z0 * y,\n cy = z0 * x - x0 * z,\n cz = x0 * y - y0 * x,\n m = sqrt(cx * cx + cy * cy + cz * cz),\n w = asin(m), // line weight = angle\n v = m && -w / m; // area weight multiplier\n X2 += v * cx;\n Y2 += v * cy;\n Z2 += v * cz;\n W1 += w;\n X1 += w * (x0 + (x0 = x));\n Y1 += w * (y0 + (y0 = y));\n Z1 += w * (z0 + (z0 = z));\n centroidPointCartesian(x0, y0, z0);\n}\n\nfunction centroid(object) {\n W0 = W1 =\n X0 = Y0 = Z0 =\n X1 = Y1 = Z1 =\n X2 = Y2 = Z2 = 0;\n geoStream(object, centroidStream);\n\n var x = X2,\n y = Y2,\n z = Z2,\n m = x * x + y * y + z * z;\n\n // If the area-weighted ccentroid is undefined, fall back to length-weighted ccentroid.\n if (m < epsilon2) {\n x = X1, y = Y1, z = Z1;\n // If the feature has zero length, fall back to arithmetic mean of point vectors.\n if (W1 < epsilon) x = X0, y = Y0, z = Z0;\n m = x * x + y * y + z * z;\n // If the feature still has an undefined ccentroid, then return.\n if (m < epsilon2) return [NaN, NaN];\n }\n\n return [atan2(y, x) * degrees, asin(z / sqrt(m)) * degrees];\n}\n\nfunction constant(x) {\n return function() {\n return x;\n };\n}\n\nfunction compose(a, b) {\n\n function compose(x, y) {\n return x = a(x, y), b(x[0], x[1]);\n }\n\n if (a.invert && b.invert) compose.invert = function(x, y) {\n return x = b.invert(x, y), x && a.invert(x[0], x[1]);\n };\n\n return compose;\n}\n\nfunction rotationIdentity(lambda, phi) {\n return [abs(lambda) > pi ? lambda + Math.round(-lambda / tau) * tau : lambda, phi];\n}\n\nrotationIdentity.invert = rotationIdentity;\n\nfunction rotateRadians(deltaLambda, deltaPhi, deltaGamma) {\n return (deltaLambda %= tau) ? (deltaPhi || deltaGamma ? compose(rotationLambda(deltaLambda), rotationPhiGamma(deltaPhi, deltaGamma))\n : rotationLambda(deltaLambda))\n : (deltaPhi || deltaGamma ? rotationPhiGamma(deltaPhi, deltaGamma)\n : rotationIdentity);\n}\n\nfunction forwardRotationLambda(deltaLambda) {\n return function(lambda, phi) {\n return lambda += deltaLambda, [lambda > pi ? lambda - tau : lambda < -pi ? lambda + tau : lambda, phi];\n };\n}\n\nfunction rotationLambda(deltaLambda) {\n var rotation = forwardRotationLambda(deltaLambda);\n rotation.invert = forwardRotationLambda(-deltaLambda);\n return rotation;\n}\n\nfunction rotationPhiGamma(deltaPhi, deltaGamma) {\n var cosDeltaPhi = cos(deltaPhi),\n sinDeltaPhi = sin(deltaPhi),\n cosDeltaGamma = cos(deltaGamma),\n sinDeltaGamma = sin(deltaGamma);\n\n function rotation(lambda, phi) {\n var cosPhi = cos(phi),\n x = cos(lambda) * cosPhi,\n y = sin(lambda) * cosPhi,\n z = sin(phi),\n k = z * cosDeltaPhi + x * sinDeltaPhi;\n return [\n atan2(y * cosDeltaGamma - k * sinDeltaGamma, x * cosDeltaPhi - z * sinDeltaPhi),\n asin(k * cosDeltaGamma + y * sinDeltaGamma)\n ];\n }\n\n rotation.invert = function(lambda, phi) {\n var cosPhi = cos(phi),\n x = cos(lambda) * cosPhi,\n y = sin(lambda) * cosPhi,\n z = sin(phi),\n k = z * cosDeltaGamma - y * sinDeltaGamma;\n return [\n atan2(y * cosDeltaGamma + z * sinDeltaGamma, x * cosDeltaPhi + k * sinDeltaPhi),\n asin(k * cosDeltaPhi - x * sinDeltaPhi)\n ];\n };\n\n return rotation;\n}\n\nfunction rotation(rotate) {\n rotate = rotateRadians(rotate[0] * radians, rotate[1] * radians, rotate.length > 2 ? rotate[2] * radians : 0);\n\n function forward(coordinates) {\n coordinates = rotate(coordinates[0] * radians, coordinates[1] * radians);\n return coordinates[0] *= degrees, coordinates[1] *= degrees, coordinates;\n }\n\n forward.invert = function(coordinates) {\n coordinates = rotate.invert(coordinates[0] * radians, coordinates[1] * radians);\n return coordinates[0] *= degrees, coordinates[1] *= degrees, coordinates;\n };\n\n return forward;\n}\n\n// Generates a circle centered at [0°, 0°], with a given radius and precision.\nfunction circleStream(stream, radius, delta, direction, t0, t1) {\n if (!delta) return;\n var cosRadius = cos(radius),\n sinRadius = sin(radius),\n step = direction * delta;\n if (t0 == null) {\n t0 = radius + direction * tau;\n t1 = radius - step / 2;\n } else {\n t0 = circleRadius(cosRadius, t0);\n t1 = circleRadius(cosRadius, t1);\n if (direction > 0 ? t0 < t1 : t0 > t1) t0 += direction * tau;\n }\n for (var point, t = t0; direction > 0 ? t > t1 : t < t1; t -= step) {\n point = spherical([cosRadius, -sinRadius * cos(t), -sinRadius * sin(t)]);\n stream.point(point[0], point[1]);\n }\n}\n\n// Returns the signed angle of a cartesian point relative to [cosRadius, 0, 0].\nfunction circleRadius(cosRadius, point) {\n point = cartesian(point), point[0] -= cosRadius;\n cartesianNormalizeInPlace(point);\n var radius = acos(-point[1]);\n return ((-point[2] < 0 ? -radius : radius) + tau - epsilon) % tau;\n}\n\nfunction circle() {\n var center = constant([0, 0]),\n radius = constant(90),\n precision = constant(6),\n ring,\n rotate,\n stream = {point: point};\n\n function point(x, y) {\n ring.push(x = rotate(x, y));\n x[0] *= degrees, x[1] *= degrees;\n }\n\n function circle() {\n var c = center.apply(this, arguments),\n r = radius.apply(this, arguments) * radians,\n p = precision.apply(this, arguments) * radians;\n ring = [];\n rotate = rotateRadians(-c[0] * radians, -c[1] * radians, 0).invert;\n circleStream(stream, r, p, 1);\n c = {type: \"Polygon\", coordinates: [ring]};\n ring = rotate = null;\n return c;\n }\n\n circle.center = function(_) {\n return arguments.length ? (center = typeof _ === \"function\" ? _ : constant([+_[0], +_[1]]), circle) : center;\n };\n\n circle.radius = function(_) {\n return arguments.length ? (radius = typeof _ === \"function\" ? _ : constant(+_), circle) : radius;\n };\n\n circle.precision = function(_) {\n return arguments.length ? (precision = typeof _ === \"function\" ? _ : constant(+_), circle) : precision;\n };\n\n return circle;\n}\n\nfunction clipBuffer() {\n var lines = [],\n line;\n return {\n point: function(x, y, m) {\n line.push([x, y, m]);\n },\n lineStart: function() {\n lines.push(line = []);\n },\n lineEnd: noop,\n rejoin: function() {\n if (lines.length > 1) lines.push(lines.pop().concat(lines.shift()));\n },\n result: function() {\n var result = lines;\n lines = [];\n line = null;\n return result;\n }\n };\n}\n\nfunction pointEqual(a, b) {\n return abs(a[0] - b[0]) < epsilon && abs(a[1] - b[1]) < epsilon;\n}\n\nfunction Intersection(point, points, other, entry) {\n this.x = point;\n this.z = points;\n this.o = other; // another intersection\n this.e = entry; // is an entry?\n this.v = false; // visited\n this.n = this.p = null; // next & previous\n}\n\n// A generalized polygon clipping algorithm: given a polygon that has been cut\n// into its visible line segments, and rejoins the segments by interpolating\n// along the clip edge.\nfunction clipRejoin(segments, compareIntersection, startInside, interpolate, stream) {\n var subject = [],\n clip = [],\n i,\n n;\n\n segments.forEach(function(segment) {\n if ((n = segment.length - 1) <= 0) return;\n var n, p0 = segment[0], p1 = segment[n], x;\n\n if (pointEqual(p0, p1)) {\n if (!p0[2] && !p1[2]) {\n stream.lineStart();\n for (i = 0; i < n; ++i) stream.point((p0 = segment[i])[0], p0[1]);\n stream.lineEnd();\n return;\n }\n // handle degenerate cases by moving the point\n p1[0] += 2 * epsilon;\n }\n\n subject.push(x = new Intersection(p0, segment, null, true));\n clip.push(x.o = new Intersection(p0, null, x, false));\n subject.push(x = new Intersection(p1, segment, null, false));\n clip.push(x.o = new Intersection(p1, null, x, true));\n });\n\n if (!subject.length) return;\n\n clip.sort(compareIntersection);\n link(subject);\n link(clip);\n\n for (i = 0, n = clip.length; i < n; ++i) {\n clip[i].e = startInside = !startInside;\n }\n\n var start = subject[0],\n points,\n point;\n\n while (1) {\n // Find first unvisited intersection.\n var current = start,\n isSubject = true;\n while (current.v) if ((current = current.n) === start) return;\n points = current.z;\n stream.lineStart();\n do {\n current.v = current.o.v = true;\n if (current.e) {\n if (isSubject) {\n for (i = 0, n = points.length; i < n; ++i) stream.point((point = points[i])[0], point[1]);\n } else {\n interpolate(current.x, current.n.x, 1, stream);\n }\n current = current.n;\n } else {\n if (isSubject) {\n points = current.p.z;\n for (i = points.length - 1; i >= 0; --i) stream.point((point = points[i])[0], point[1]);\n } else {\n interpolate(current.x, current.p.x, -1, stream);\n }\n current = current.p;\n }\n current = current.o;\n points = current.z;\n isSubject = !isSubject;\n } while (!current.v);\n stream.lineEnd();\n }\n}\n\nfunction link(array) {\n if (!(n = array.length)) return;\n var n,\n i = 0,\n a = array[0],\n b;\n while (++i < n) {\n a.n = b = array[i];\n b.p = a;\n a = b;\n }\n a.n = b = array[0];\n b.p = a;\n}\n\nvar sum = adder();\n\nfunction longitude(point) {\n if (abs(point[0]) <= pi)\n return point[0];\n else\n return sign(point[0]) * ((abs(point[0]) + pi) % tau - pi);\n}\n\nfunction polygonContains(polygon, point) {\n var lambda = longitude(point),\n phi = point[1],\n sinPhi = sin(phi),\n normal = [sin(lambda), -cos(lambda), 0],\n angle = 0,\n winding = 0;\n\n sum.reset();\n\n if (sinPhi === 1) phi = halfPi + epsilon;\n else if (sinPhi === -1) phi = -halfPi - epsilon;\n\n for (var i = 0, n = polygon.length; i < n; ++i) {\n if (!(m = (ring = polygon[i]).length)) continue;\n var ring,\n m,\n point0 = ring[m - 1],\n lambda0 = longitude(point0),\n phi0 = point0[1] / 2 + quarterPi,\n sinPhi0 = sin(phi0),\n cosPhi0 = cos(phi0);\n\n for (var j = 0; j < m; ++j, lambda0 = lambda1, sinPhi0 = sinPhi1, cosPhi0 = cosPhi1, point0 = point1) {\n var point1 = ring[j],\n lambda1 = longitude(point1),\n phi1 = point1[1] / 2 + quarterPi,\n sinPhi1 = sin(phi1),\n cosPhi1 = cos(phi1),\n delta = lambda1 - lambda0,\n sign = delta >= 0 ? 1 : -1,\n absDelta = sign * delta,\n antimeridian = absDelta > pi,\n k = sinPhi0 * sinPhi1;\n\n sum.add(atan2(k * sign * sin(absDelta), cosPhi0 * cosPhi1 + k * cos(absDelta)));\n angle += antimeridian ? delta + sign * tau : delta;\n\n // Are the longitudes either side of the point’s meridian (lambda),\n // and are the latitudes smaller than the parallel (phi)?\n if (antimeridian ^ lambda0 >= lambda ^ lambda1 >= lambda) {\n var arc = cartesianCross(cartesian(point0), cartesian(point1));\n cartesianNormalizeInPlace(arc);\n var intersection = cartesianCross(normal, arc);\n cartesianNormalizeInPlace(intersection);\n var phiArc = (antimeridian ^ delta >= 0 ? -1 : 1) * asin(intersection[2]);\n if (phi > phiArc || phi === phiArc && (arc[0] || arc[1])) {\n winding += antimeridian ^ delta >= 0 ? 1 : -1;\n }\n }\n }\n }\n\n // First, determine whether the South pole is inside or outside:\n //\n // It is inside if:\n // * the polygon winds around it in a clockwise direction.\n // * the polygon does not (cumulatively) wind around it, but has a negative\n // (counter-clockwise) area.\n //\n // Second, count the (signed) number of times a segment crosses a lambda\n // from the point to the South pole. If it is zero, then the point is the\n // same side as the South pole.\n\n return (angle < -epsilon || angle < epsilon && sum < -epsilon) ^ (winding & 1);\n}\n\nfunction clip(pointVisible, clipLine, interpolate, start) {\n return function(sink) {\n var line = clipLine(sink),\n ringBuffer = clipBuffer(),\n ringSink = clipLine(ringBuffer),\n polygonStarted = false,\n polygon,\n segments,\n ring;\n\n var clip = {\n point: point,\n lineStart: lineStart,\n lineEnd: lineEnd,\n polygonStart: function() {\n clip.point = pointRing;\n clip.lineStart = ringStart;\n clip.lineEnd = ringEnd;\n segments = [];\n polygon = [];\n },\n polygonEnd: function() {\n clip.point = point;\n clip.lineStart = lineStart;\n clip.lineEnd = lineEnd;\n segments = d3Array.merge(segments);\n var startInside = polygonContains(polygon, start);\n if (segments.length) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n clipRejoin(segments, compareIntersection, startInside, interpolate, sink);\n } else if (startInside) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n sink.lineStart();\n interpolate(null, null, 1, sink);\n sink.lineEnd();\n }\n if (polygonStarted) sink.polygonEnd(), polygonStarted = false;\n segments = polygon = null;\n },\n sphere: function() {\n sink.polygonStart();\n sink.lineStart();\n interpolate(null, null, 1, sink);\n sink.lineEnd();\n sink.polygonEnd();\n }\n };\n\n function point(lambda, phi) {\n if (pointVisible(lambda, phi)) sink.point(lambda, phi);\n }\n\n function pointLine(lambda, phi) {\n line.point(lambda, phi);\n }\n\n function lineStart() {\n clip.point = pointLine;\n line.lineStart();\n }\n\n function lineEnd() {\n clip.point = point;\n line.lineEnd();\n }\n\n function pointRing(lambda, phi) {\n ring.push([lambda, phi]);\n ringSink.point(lambda, phi);\n }\n\n function ringStart() {\n ringSink.lineStart();\n ring = [];\n }\n\n function ringEnd() {\n pointRing(ring[0][0], ring[0][1]);\n ringSink.lineEnd();\n\n var clean = ringSink.clean(),\n ringSegments = ringBuffer.result(),\n i, n = ringSegments.length, m,\n segment,\n point;\n\n ring.pop();\n polygon.push(ring);\n ring = null;\n\n if (!n) return;\n\n // No intersections.\n if (clean & 1) {\n segment = ringSegments[0];\n if ((m = segment.length - 1) > 0) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n sink.lineStart();\n for (i = 0; i < m; ++i) sink.point((point = segment[i])[0], point[1]);\n sink.lineEnd();\n }\n return;\n }\n\n // Rejoin connected segments.\n // TODO reuse ringBuffer.rejoin()?\n if (n > 1 && clean & 2) ringSegments.push(ringSegments.pop().concat(ringSegments.shift()));\n\n segments.push(ringSegments.filter(validSegment));\n }\n\n return clip;\n };\n}\n\nfunction validSegment(segment) {\n return segment.length > 1;\n}\n\n// Intersections are sorted along the clip edge. For both antimeridian cutting\n// and circle clipping, the same comparison is used.\nfunction compareIntersection(a, b) {\n return ((a = a.x)[0] < 0 ? a[1] - halfPi - epsilon : halfPi - a[1])\n - ((b = b.x)[0] < 0 ? b[1] - halfPi - epsilon : halfPi - b[1]);\n}\n\nvar clipAntimeridian = clip(\n function() { return true; },\n clipAntimeridianLine,\n clipAntimeridianInterpolate,\n [-pi, -halfPi]\n);\n\n// Takes a line and cuts into visible segments. Return values: 0 - there were\n// intersections or the line was empty; 1 - no intersections; 2 - there were\n// intersections, and the first and last segments should be rejoined.\nfunction clipAntimeridianLine(stream) {\n var lambda0 = NaN,\n phi0 = NaN,\n sign0 = NaN,\n clean; // no intersections\n\n return {\n lineStart: function() {\n stream.lineStart();\n clean = 1;\n },\n point: function(lambda1, phi1) {\n var sign1 = lambda1 > 0 ? pi : -pi,\n delta = abs(lambda1 - lambda0);\n if (abs(delta - pi) < epsilon) { // line crosses a pole\n stream.point(lambda0, phi0 = (phi0 + phi1) / 2 > 0 ? halfPi : -halfPi);\n stream.point(sign0, phi0);\n stream.lineEnd();\n stream.lineStart();\n stream.point(sign1, phi0);\n stream.point(lambda1, phi0);\n clean = 0;\n } else if (sign0 !== sign1 && delta >= pi) { // line crosses antimeridian\n if (abs(lambda0 - sign0) < epsilon) lambda0 -= sign0 * epsilon; // handle degeneracies\n if (abs(lambda1 - sign1) < epsilon) lambda1 -= sign1 * epsilon;\n phi0 = clipAntimeridianIntersect(lambda0, phi0, lambda1, phi1);\n stream.point(sign0, phi0);\n stream.lineEnd();\n stream.lineStart();\n stream.point(sign1, phi0);\n clean = 0;\n }\n stream.point(lambda0 = lambda1, phi0 = phi1);\n sign0 = sign1;\n },\n lineEnd: function() {\n stream.lineEnd();\n lambda0 = phi0 = NaN;\n },\n clean: function() {\n return 2 - clean; // if intersections, rejoin first and last segments\n }\n };\n}\n\nfunction clipAntimeridianIntersect(lambda0, phi0, lambda1, phi1) {\n var cosPhi0,\n cosPhi1,\n sinLambda0Lambda1 = sin(lambda0 - lambda1);\n return abs(sinLambda0Lambda1) > epsilon\n ? atan((sin(phi0) * (cosPhi1 = cos(phi1)) * sin(lambda1)\n - sin(phi1) * (cosPhi0 = cos(phi0)) * sin(lambda0))\n / (cosPhi0 * cosPhi1 * sinLambda0Lambda1))\n : (phi0 + phi1) / 2;\n}\n\nfunction clipAntimeridianInterpolate(from, to, direction, stream) {\n var phi;\n if (from == null) {\n phi = direction * halfPi;\n stream.point(-pi, phi);\n stream.point(0, phi);\n stream.point(pi, phi);\n stream.point(pi, 0);\n stream.point(pi, -phi);\n stream.point(0, -phi);\n stream.point(-pi, -phi);\n stream.point(-pi, 0);\n stream.point(-pi, phi);\n } else if (abs(from[0] - to[0]) > epsilon) {\n var lambda = from[0] < to[0] ? pi : -pi;\n phi = direction * lambda / 2;\n stream.point(-lambda, phi);\n stream.point(0, phi);\n stream.point(lambda, phi);\n } else {\n stream.point(to[0], to[1]);\n }\n}\n\nfunction clipCircle(radius) {\n var cr = cos(radius),\n delta = 6 * radians,\n smallRadius = cr > 0,\n notHemisphere = abs(cr) > epsilon; // TODO optimise for this common case\n\n function interpolate(from, to, direction, stream) {\n circleStream(stream, radius, delta, direction, from, to);\n }\n\n function visible(lambda, phi) {\n return cos(lambda) * cos(phi) > cr;\n }\n\n // Takes a line and cuts into visible segments. Return values used for polygon\n // clipping: 0 - there were intersections or the line was empty; 1 - no\n // intersections 2 - there were intersections, and the first and last segments\n // should be rejoined.\n function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? pi : -pi), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || pointEqual(point0, point2) || pointEqual(point1, point2))\n point1[2] = 1;\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1], 2);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1], 3);\n }\n }\n }\n if (v && (!point0 || !pointEqual(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }\n\n // Intersects the great circle between a and b with the clip circle.\n function intersect(a, b, two) {\n var pa = cartesian(a),\n pb = cartesian(b);\n\n // We have two planes, n1.p = d1 and n2.p = d2.\n // Find intersection line p(t) = c1 n1 + c2 n2 + t (n1 ⨯ n2).\n var n1 = [1, 0, 0], // normal\n n2 = cartesianCross(pa, pb),\n n2n2 = cartesianDot(n2, n2),\n n1n2 = n2[0], // cartesianDot(n1, n2),\n determinant = n2n2 - n1n2 * n1n2;\n\n // Two polar points.\n if (!determinant) return !two && a;\n\n var c1 = cr * n2n2 / determinant,\n c2 = -cr * n1n2 / determinant,\n n1xn2 = cartesianCross(n1, n2),\n A = cartesianScale(n1, c1),\n B = cartesianScale(n2, c2);\n cartesianAddInPlace(A, B);\n\n // Solve |p(t)|^2 = 1.\n var u = n1xn2,\n w = cartesianDot(A, u),\n uu = cartesianDot(u, u),\n t2 = w * w - uu * (cartesianDot(A, A) - 1);\n\n if (t2 < 0) return;\n\n var t = sqrt(t2),\n q = cartesianScale(u, (-w - t) / uu);\n cartesianAddInPlace(q, A);\n q = spherical(q);\n\n if (!two) return q;\n\n // Two intersection points.\n var lambda0 = a[0],\n lambda1 = b[0],\n phi0 = a[1],\n phi1 = b[1],\n z;\n\n if (lambda1 < lambda0) z = lambda0, lambda0 = lambda1, lambda1 = z;\n\n var delta = lambda1 - lambda0,\n polar = abs(delta - pi) < epsilon,\n meridian = polar || delta < epsilon;\n\n if (!polar && phi1 < phi0) z = phi0, phi0 = phi1, phi1 = z;\n\n // Check that the first point is between a and b.\n if (meridian\n ? polar\n ? phi0 + phi1 > 0 ^ q[1] < (abs(q[0] - lambda0) < epsilon ? phi0 : phi1)\n : phi0 <= q[1] && q[1] <= phi1\n : delta > pi ^ (lambda0 <= q[0] && q[0] <= lambda1)) {\n var q1 = cartesianScale(u, (-w + t) / uu);\n cartesianAddInPlace(q1, A);\n return [q, spherical(q1)];\n }\n }\n\n // Generates a 4-bit vector representing the location of a point relative to\n // the small circle's bounding box.\n function code(lambda, phi) {\n var r = smallRadius ? radius : pi - radius,\n code = 0;\n if (lambda < -r) code |= 1; // left\n else if (lambda > r) code |= 2; // right\n if (phi < -r) code |= 4; // below\n else if (phi > r) code |= 8; // above\n return code;\n }\n\n return clip(visible, clipLine, interpolate, smallRadius ? [0, -radius] : [-pi, radius - pi]);\n}\n\nfunction clipLine(a, b, x0, y0, x1, y1) {\n var ax = a[0],\n ay = a[1],\n bx = b[0],\n by = b[1],\n t0 = 0,\n t1 = 1,\n dx = bx - ax,\n dy = by - ay,\n r;\n\n r = x0 - ax;\n if (!dx && r > 0) return;\n r /= dx;\n if (dx < 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n } else if (dx > 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n }\n\n r = x1 - ax;\n if (!dx && r < 0) return;\n r /= dx;\n if (dx < 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n } else if (dx > 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n }\n\n r = y0 - ay;\n if (!dy && r > 0) return;\n r /= dy;\n if (dy < 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n } else if (dy > 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n }\n\n r = y1 - ay;\n if (!dy && r < 0) return;\n r /= dy;\n if (dy < 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n } else if (dy > 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n }\n\n if (t0 > 0) a[0] = ax + t0 * dx, a[1] = ay + t0 * dy;\n if (t1 < 1) b[0] = ax + t1 * dx, b[1] = ay + t1 * dy;\n return true;\n}\n\nvar clipMax = 1e9, clipMin = -clipMax;\n\n// TODO Use d3-polygon’s polygonContains here for the ring check?\n// TODO Eliminate duplicate buffering in clipBuffer and polygon.push?\n\nfunction clipRectangle(x0, y0, x1, y1) {\n\n function visible(x, y) {\n return x0 <= x && x <= x1 && y0 <= y && y <= y1;\n }\n\n function interpolate(from, to, direction, stream) {\n var a = 0, a1 = 0;\n if (from == null\n || (a = corner(from, direction)) !== (a1 = corner(to, direction))\n || comparePoint(from, to) < 0 ^ direction > 0) {\n do stream.point(a === 0 || a === 3 ? x0 : x1, a > 1 ? y1 : y0);\n while ((a = (a + direction + 4) % 4) !== a1);\n } else {\n stream.point(to[0], to[1]);\n }\n }\n\n function corner(p, direction) {\n return abs(p[0] - x0) < epsilon ? direction > 0 ? 0 : 3\n : abs(p[0] - x1) < epsilon ? direction > 0 ? 2 : 1\n : abs(p[1] - y0) < epsilon ? direction > 0 ? 1 : 0\n : direction > 0 ? 3 : 2; // abs(p[1] - y1) < epsilon\n }\n\n function compareIntersection(a, b) {\n return comparePoint(a.x, b.x);\n }\n\n function comparePoint(a, b) {\n var ca = corner(a, 1),\n cb = corner(b, 1);\n return ca !== cb ? ca - cb\n : ca === 0 ? b[1] - a[1]\n : ca === 1 ? a[0] - b[0]\n : ca === 2 ? a[1] - b[1]\n : b[0] - a[0];\n }\n\n return function(stream) {\n var activeStream = stream,\n bufferStream = clipBuffer(),\n segments,\n polygon,\n ring,\n x__, y__, v__, // first point\n x_, y_, v_, // previous point\n first,\n clean;\n\n var clipStream = {\n point: point,\n lineStart: lineStart,\n lineEnd: lineEnd,\n polygonStart: polygonStart,\n polygonEnd: polygonEnd\n };\n\n function point(x, y) {\n if (visible(x, y)) activeStream.point(x, y);\n }\n\n function polygonInside() {\n var winding = 0;\n\n for (var i = 0, n = polygon.length; i < n; ++i) {\n for (var ring = polygon[i], j = 1, m = ring.length, point = ring[0], a0, a1, b0 = point[0], b1 = point[1]; j < m; ++j) {\n a0 = b0, a1 = b1, point = ring[j], b0 = point[0], b1 = point[1];\n if (a1 <= y1) { if (b1 > y1 && (b0 - a0) * (y1 - a1) > (b1 - a1) * (x0 - a0)) ++winding; }\n else { if (b1 <= y1 && (b0 - a0) * (y1 - a1) < (b1 - a1) * (x0 - a0)) --winding; }\n }\n }\n\n return winding;\n }\n\n // Buffer geometry within a polygon and then clip it en masse.\n function polygonStart() {\n activeStream = bufferStream, segments = [], polygon = [], clean = true;\n }\n\n function polygonEnd() {\n var startInside = polygonInside(),\n cleanInside = clean && startInside,\n visible = (segments = d3Array.merge(segments)).length;\n if (cleanInside || visible) {\n stream.polygonStart();\n if (cleanInside) {\n stream.lineStart();\n interpolate(null, null, 1, stream);\n stream.lineEnd();\n }\n if (visible) {\n clipRejoin(segments, compareIntersection, startInside, interpolate, stream);\n }\n stream.polygonEnd();\n }\n activeStream = stream, segments = polygon = ring = null;\n }\n\n function lineStart() {\n clipStream.point = linePoint;\n if (polygon) polygon.push(ring = []);\n first = true;\n v_ = false;\n x_ = y_ = NaN;\n }\n\n // TODO rather than special-case polygons, simply handle them separately.\n // Ideally, coincident intersection points should be jittered to avoid\n // clipping issues.\n function lineEnd() {\n if (segments) {\n linePoint(x__, y__);\n if (v__ && v_) bufferStream.rejoin();\n segments.push(bufferStream.result());\n }\n clipStream.point = point;\n if (v_) activeStream.lineEnd();\n }\n\n function linePoint(x, y) {\n var v = visible(x, y);\n if (polygon) ring.push([x, y]);\n if (first) {\n x__ = x, y__ = y, v__ = v;\n first = false;\n if (v) {\n activeStream.lineStart();\n activeStream.point(x, y);\n }\n } else {\n if (v && v_) activeStream.point(x, y);\n else {\n var a = [x_ = Math.max(clipMin, Math.min(clipMax, x_)), y_ = Math.max(clipMin, Math.min(clipMax, y_))],\n b = [x = Math.max(clipMin, Math.min(clipMax, x)), y = Math.max(clipMin, Math.min(clipMax, y))];\n if (clipLine(a, b, x0, y0, x1, y1)) {\n if (!v_) {\n activeStream.lineStart();\n activeStream.point(a[0], a[1]);\n }\n activeStream.point(b[0], b[1]);\n if (!v) activeStream.lineEnd();\n clean = false;\n } else if (v) {\n activeStream.lineStart();\n activeStream.point(x, y);\n clean = false;\n }\n }\n }\n x_ = x, y_ = y, v_ = v;\n }\n\n return clipStream;\n };\n}\n\nfunction extent() {\n var x0 = 0,\n y0 = 0,\n x1 = 960,\n y1 = 500,\n cache,\n cacheStream,\n clip;\n\n return clip = {\n stream: function(stream) {\n return cache && cacheStream === stream ? cache : cache = clipRectangle(x0, y0, x1, y1)(cacheStream = stream);\n },\n extent: function(_) {\n return arguments.length ? (x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1], cache = cacheStream = null, clip) : [[x0, y0], [x1, y1]];\n }\n };\n}\n\nvar lengthSum = adder(),\n lambda0$2,\n sinPhi0$1,\n cosPhi0$1;\n\nvar lengthStream = {\n sphere: noop,\n point: noop,\n lineStart: lengthLineStart,\n lineEnd: noop,\n polygonStart: noop,\n polygonEnd: noop\n};\n\nfunction lengthLineStart() {\n lengthStream.point = lengthPointFirst;\n lengthStream.lineEnd = lengthLineEnd;\n}\n\nfunction lengthLineEnd() {\n lengthStream.point = lengthStream.lineEnd = noop;\n}\n\nfunction lengthPointFirst(lambda, phi) {\n lambda *= radians, phi *= radians;\n lambda0$2 = lambda, sinPhi0$1 = sin(phi), cosPhi0$1 = cos(phi);\n lengthStream.point = lengthPoint;\n}\n\nfunction lengthPoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n var sinPhi = sin(phi),\n cosPhi = cos(phi),\n delta = abs(lambda - lambda0$2),\n cosDelta = cos(delta),\n sinDelta = sin(delta),\n x = cosPhi * sinDelta,\n y = cosPhi0$1 * sinPhi - sinPhi0$1 * cosPhi * cosDelta,\n z = sinPhi0$1 * sinPhi + cosPhi0$1 * cosPhi * cosDelta;\n lengthSum.add(atan2(sqrt(x * x + y * y), z));\n lambda0$2 = lambda, sinPhi0$1 = sinPhi, cosPhi0$1 = cosPhi;\n}\n\nfunction length(object) {\n lengthSum.reset();\n geoStream(object, lengthStream);\n return +lengthSum;\n}\n\nvar coordinates = [null, null],\n object = {type: \"LineString\", coordinates: coordinates};\n\nfunction distance(a, b) {\n coordinates[0] = a;\n coordinates[1] = b;\n return length(object);\n}\n\nvar containsObjectType = {\n Feature: function(object, point) {\n return containsGeometry(object.geometry, point);\n },\n FeatureCollection: function(object, point) {\n var features = object.features, i = -1, n = features.length;\n while (++i < n) if (containsGeometry(features[i].geometry, point)) return true;\n return false;\n }\n};\n\nvar containsGeometryType = {\n Sphere: function() {\n return true;\n },\n Point: function(object, point) {\n return containsPoint(object.coordinates, point);\n },\n MultiPoint: function(object, point) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) if (containsPoint(coordinates[i], point)) return true;\n return false;\n },\n LineString: function(object, point) {\n return containsLine(object.coordinates, point);\n },\n MultiLineString: function(object, point) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) if (containsLine(coordinates[i], point)) return true;\n return false;\n },\n Polygon: function(object, point) {\n return containsPolygon(object.coordinates, point);\n },\n MultiPolygon: function(object, point) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) if (containsPolygon(coordinates[i], point)) return true;\n return false;\n },\n GeometryCollection: function(object, point) {\n var geometries = object.geometries, i = -1, n = geometries.length;\n while (++i < n) if (containsGeometry(geometries[i], point)) return true;\n return false;\n }\n};\n\nfunction containsGeometry(geometry, point) {\n return geometry && containsGeometryType.hasOwnProperty(geometry.type)\n ? containsGeometryType[geometry.type](geometry, point)\n : false;\n}\n\nfunction containsPoint(coordinates, point) {\n return distance(coordinates, point) === 0;\n}\n\nfunction containsLine(coordinates, point) {\n var ao, bo, ab;\n for (var i = 0, n = coordinates.length; i < n; i++) {\n bo = distance(coordinates[i], point);\n if (bo === 0) return true;\n if (i > 0) {\n ab = distance(coordinates[i], coordinates[i - 1]);\n if (\n ab > 0 &&\n ao <= ab &&\n bo <= ab &&\n (ao + bo - ab) * (1 - Math.pow((ao - bo) / ab, 2)) < epsilon2 * ab\n )\n return true;\n }\n ao = bo;\n }\n return false;\n}\n\nfunction containsPolygon(coordinates, point) {\n return !!polygonContains(coordinates.map(ringRadians), pointRadians(point));\n}\n\nfunction ringRadians(ring) {\n return ring = ring.map(pointRadians), ring.pop(), ring;\n}\n\nfunction pointRadians(point) {\n return [point[0] * radians, point[1] * radians];\n}\n\nfunction contains(object, point) {\n return (object && containsObjectType.hasOwnProperty(object.type)\n ? containsObjectType[object.type]\n : containsGeometry)(object, point);\n}\n\nfunction graticuleX(y0, y1, dy) {\n var y = d3Array.range(y0, y1 - epsilon, dy).concat(y1);\n return function(x) { return y.map(function(y) { return [x, y]; }); };\n}\n\nfunction graticuleY(x0, x1, dx) {\n var x = d3Array.range(x0, x1 - epsilon, dx).concat(x1);\n return function(y) { return x.map(function(x) { return [x, y]; }); };\n}\n\nfunction graticule() {\n var x1, x0, X1, X0,\n y1, y0, Y1, Y0,\n dx = 10, dy = dx, DX = 90, DY = 360,\n x, y, X, Y,\n precision = 2.5;\n\n function graticule() {\n return {type: \"MultiLineString\", coordinates: lines()};\n }\n\n function lines() {\n return d3Array.range(ceil(X0 / DX) * DX, X1, DX).map(X)\n .concat(d3Array.range(ceil(Y0 / DY) * DY, Y1, DY).map(Y))\n .concat(d3Array.range(ceil(x0 / dx) * dx, x1, dx).filter(function(x) { return abs(x % DX) > epsilon; }).map(x))\n .concat(d3Array.range(ceil(y0 / dy) * dy, y1, dy).filter(function(y) { return abs(y % DY) > epsilon; }).map(y));\n }\n\n graticule.lines = function() {\n return lines().map(function(coordinates) { return {type: \"LineString\", coordinates: coordinates}; });\n };\n\n graticule.outline = function() {\n return {\n type: \"Polygon\",\n coordinates: [\n X(X0).concat(\n Y(Y1).slice(1),\n X(X1).reverse().slice(1),\n Y(Y0).reverse().slice(1))\n ]\n };\n };\n\n graticule.extent = function(_) {\n if (!arguments.length) return graticule.extentMinor();\n return graticule.extentMajor(_).extentMinor(_);\n };\n\n graticule.extentMajor = function(_) {\n if (!arguments.length) return [[X0, Y0], [X1, Y1]];\n X0 = +_[0][0], X1 = +_[1][0];\n Y0 = +_[0][1], Y1 = +_[1][1];\n if (X0 > X1) _ = X0, X0 = X1, X1 = _;\n if (Y0 > Y1) _ = Y0, Y0 = Y1, Y1 = _;\n return graticule.precision(precision);\n };\n\n graticule.extentMinor = function(_) {\n if (!arguments.length) return [[x0, y0], [x1, y1]];\n x0 = +_[0][0], x1 = +_[1][0];\n y0 = +_[0][1], y1 = +_[1][1];\n if (x0 > x1) _ = x0, x0 = x1, x1 = _;\n if (y0 > y1) _ = y0, y0 = y1, y1 = _;\n return graticule.precision(precision);\n };\n\n graticule.step = function(_) {\n if (!arguments.length) return graticule.stepMinor();\n return graticule.stepMajor(_).stepMinor(_);\n };\n\n graticule.stepMajor = function(_) {\n if (!arguments.length) return [DX, DY];\n DX = +_[0], DY = +_[1];\n return graticule;\n };\n\n graticule.stepMinor = function(_) {\n if (!arguments.length) return [dx, dy];\n dx = +_[0], dy = +_[1];\n return graticule;\n };\n\n graticule.precision = function(_) {\n if (!arguments.length) return precision;\n precision = +_;\n x = graticuleX(y0, y1, 90);\n y = graticuleY(x0, x1, precision);\n X = graticuleX(Y0, Y1, 90);\n Y = graticuleY(X0, X1, precision);\n return graticule;\n };\n\n return graticule\n .extentMajor([[-180, -90 + epsilon], [180, 90 - epsilon]])\n .extentMinor([[-180, -80 - epsilon], [180, 80 + epsilon]]);\n}\n\nfunction graticule10() {\n return graticule()();\n}\n\nfunction interpolate(a, b) {\n var x0 = a[0] * radians,\n y0 = a[1] * radians,\n x1 = b[0] * radians,\n y1 = b[1] * radians,\n cy0 = cos(y0),\n sy0 = sin(y0),\n cy1 = cos(y1),\n sy1 = sin(y1),\n kx0 = cy0 * cos(x0),\n ky0 = cy0 * sin(x0),\n kx1 = cy1 * cos(x1),\n ky1 = cy1 * sin(x1),\n d = 2 * asin(sqrt(haversin(y1 - y0) + cy0 * cy1 * haversin(x1 - x0))),\n k = sin(d);\n\n var interpolate = d ? function(t) {\n var B = sin(t *= d) / k,\n A = sin(d - t) / k,\n x = A * kx0 + B * kx1,\n y = A * ky0 + B * ky1,\n z = A * sy0 + B * sy1;\n return [\n atan2(y, x) * degrees,\n atan2(z, sqrt(x * x + y * y)) * degrees\n ];\n } : function() {\n return [x0 * degrees, y0 * degrees];\n };\n\n interpolate.distance = d;\n\n return interpolate;\n}\n\nfunction identity(x) {\n return x;\n}\n\nvar areaSum$1 = adder(),\n areaRingSum$1 = adder(),\n x00,\n y00,\n x0$1,\n y0$1;\n\nvar areaStream$1 = {\n point: noop,\n lineStart: noop,\n lineEnd: noop,\n polygonStart: function() {\n areaStream$1.lineStart = areaRingStart$1;\n areaStream$1.lineEnd = areaRingEnd$1;\n },\n polygonEnd: function() {\n areaStream$1.lineStart = areaStream$1.lineEnd = areaStream$1.point = noop;\n areaSum$1.add(abs(areaRingSum$1));\n areaRingSum$1.reset();\n },\n result: function() {\n var area = areaSum$1 / 2;\n areaSum$1.reset();\n return area;\n }\n};\n\nfunction areaRingStart$1() {\n areaStream$1.point = areaPointFirst$1;\n}\n\nfunction areaPointFirst$1(x, y) {\n areaStream$1.point = areaPoint$1;\n x00 = x0$1 = x, y00 = y0$1 = y;\n}\n\nfunction areaPoint$1(x, y) {\n areaRingSum$1.add(y0$1 * x - x0$1 * y);\n x0$1 = x, y0$1 = y;\n}\n\nfunction areaRingEnd$1() {\n areaPoint$1(x00, y00);\n}\n\nvar x0$2 = Infinity,\n y0$2 = x0$2,\n x1 = -x0$2,\n y1 = x1;\n\nvar boundsStream$1 = {\n point: boundsPoint$1,\n lineStart: noop,\n lineEnd: noop,\n polygonStart: noop,\n polygonEnd: noop,\n result: function() {\n var bounds = [[x0$2, y0$2], [x1, y1]];\n x1 = y1 = -(y0$2 = x0$2 = Infinity);\n return bounds;\n }\n};\n\nfunction boundsPoint$1(x, y) {\n if (x < x0$2) x0$2 = x;\n if (x > x1) x1 = x;\n if (y < y0$2) y0$2 = y;\n if (y > y1) y1 = y;\n}\n\n// TODO Enforce positive area for exterior, negative area for interior?\n\nvar X0$1 = 0,\n Y0$1 = 0,\n Z0$1 = 0,\n X1$1 = 0,\n Y1$1 = 0,\n Z1$1 = 0,\n X2$1 = 0,\n Y2$1 = 0,\n Z2$1 = 0,\n x00$1,\n y00$1,\n x0$3,\n y0$3;\n\nvar centroidStream$1 = {\n point: centroidPoint$1,\n lineStart: centroidLineStart$1,\n lineEnd: centroidLineEnd$1,\n polygonStart: function() {\n centroidStream$1.lineStart = centroidRingStart$1;\n centroidStream$1.lineEnd = centroidRingEnd$1;\n },\n polygonEnd: function() {\n centroidStream$1.point = centroidPoint$1;\n centroidStream$1.lineStart = centroidLineStart$1;\n centroidStream$1.lineEnd = centroidLineEnd$1;\n },\n result: function() {\n var centroid = Z2$1 ? [X2$1 / Z2$1, Y2$1 / Z2$1]\n : Z1$1 ? [X1$1 / Z1$1, Y1$1 / Z1$1]\n : Z0$1 ? [X0$1 / Z0$1, Y0$1 / Z0$1]\n : [NaN, NaN];\n X0$1 = Y0$1 = Z0$1 =\n X1$1 = Y1$1 = Z1$1 =\n X2$1 = Y2$1 = Z2$1 = 0;\n return centroid;\n }\n};\n\nfunction centroidPoint$1(x, y) {\n X0$1 += x;\n Y0$1 += y;\n ++Z0$1;\n}\n\nfunction centroidLineStart$1() {\n centroidStream$1.point = centroidPointFirstLine;\n}\n\nfunction centroidPointFirstLine(x, y) {\n centroidStream$1.point = centroidPointLine;\n centroidPoint$1(x0$3 = x, y0$3 = y);\n}\n\nfunction centroidPointLine(x, y) {\n var dx = x - x0$3, dy = y - y0$3, z = sqrt(dx * dx + dy * dy);\n X1$1 += z * (x0$3 + x) / 2;\n Y1$1 += z * (y0$3 + y) / 2;\n Z1$1 += z;\n centroidPoint$1(x0$3 = x, y0$3 = y);\n}\n\nfunction centroidLineEnd$1() {\n centroidStream$1.point = centroidPoint$1;\n}\n\nfunction centroidRingStart$1() {\n centroidStream$1.point = centroidPointFirstRing;\n}\n\nfunction centroidRingEnd$1() {\n centroidPointRing(x00$1, y00$1);\n}\n\nfunction centroidPointFirstRing(x, y) {\n centroidStream$1.point = centroidPointRing;\n centroidPoint$1(x00$1 = x0$3 = x, y00$1 = y0$3 = y);\n}\n\nfunction centroidPointRing(x, y) {\n var dx = x - x0$3,\n dy = y - y0$3,\n z = sqrt(dx * dx + dy * dy);\n\n X1$1 += z * (x0$3 + x) / 2;\n Y1$1 += z * (y0$3 + y) / 2;\n Z1$1 += z;\n\n z = y0$3 * x - x0$3 * y;\n X2$1 += z * (x0$3 + x);\n Y2$1 += z * (y0$3 + y);\n Z2$1 += z * 3;\n centroidPoint$1(x0$3 = x, y0$3 = y);\n}\n\nfunction PathContext(context) {\n this._context = context;\n}\n\nPathContext.prototype = {\n _radius: 4.5,\n pointRadius: function(_) {\n return this._radius = _, this;\n },\n polygonStart: function() {\n this._line = 0;\n },\n polygonEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line === 0) this._context.closePath();\n this._point = NaN;\n },\n point: function(x, y) {\n switch (this._point) {\n case 0: {\n this._context.moveTo(x, y);\n this._point = 1;\n break;\n }\n case 1: {\n this._context.lineTo(x, y);\n break;\n }\n default: {\n this._context.moveTo(x + this._radius, y);\n this._context.arc(x, y, this._radius, 0, tau);\n break;\n }\n }\n },\n result: noop\n};\n\nvar lengthSum$1 = adder(),\n lengthRing,\n x00$2,\n y00$2,\n x0$4,\n y0$4;\n\nvar lengthStream$1 = {\n point: noop,\n lineStart: function() {\n lengthStream$1.point = lengthPointFirst$1;\n },\n lineEnd: function() {\n if (lengthRing) lengthPoint$1(x00$2, y00$2);\n lengthStream$1.point = noop;\n },\n polygonStart: function() {\n lengthRing = true;\n },\n polygonEnd: function() {\n lengthRing = null;\n },\n result: function() {\n var length = +lengthSum$1;\n lengthSum$1.reset();\n return length;\n }\n};\n\nfunction lengthPointFirst$1(x, y) {\n lengthStream$1.point = lengthPoint$1;\n x00$2 = x0$4 = x, y00$2 = y0$4 = y;\n}\n\nfunction lengthPoint$1(x, y) {\n x0$4 -= x, y0$4 -= y;\n lengthSum$1.add(sqrt(x0$4 * x0$4 + y0$4 * y0$4));\n x0$4 = x, y0$4 = y;\n}\n\nfunction PathString() {\n this._string = [];\n}\n\nPathString.prototype = {\n _radius: 4.5,\n _circle: circle$1(4.5),\n pointRadius: function(_) {\n if ((_ = +_) !== this._radius) this._radius = _, this._circle = null;\n return this;\n },\n polygonStart: function() {\n this._line = 0;\n },\n polygonEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line === 0) this._string.push(\"Z\");\n this._point = NaN;\n },\n point: function(x, y) {\n switch (this._point) {\n case 0: {\n this._string.push(\"M\", x, \",\", y);\n this._point = 1;\n break;\n }\n case 1: {\n this._string.push(\"L\", x, \",\", y);\n break;\n }\n default: {\n if (this._circle == null) this._circle = circle$1(this._radius);\n this._string.push(\"M\", x, \",\", y, this._circle);\n break;\n }\n }\n },\n result: function() {\n if (this._string.length) {\n var result = this._string.join(\"\");\n this._string = [];\n return result;\n } else {\n return null;\n }\n }\n};\n\nfunction circle$1(radius) {\n return \"m0,\" + radius\n + \"a\" + radius + \",\" + radius + \" 0 1,1 0,\" + -2 * radius\n + \"a\" + radius + \",\" + radius + \" 0 1,1 0,\" + 2 * radius\n + \"z\";\n}\n\nfunction index(projection, context) {\n var pointRadius = 4.5,\n projectionStream,\n contextStream;\n\n function path(object) {\n if (object) {\n if (typeof pointRadius === \"function\") contextStream.pointRadius(+pointRadius.apply(this, arguments));\n geoStream(object, projectionStream(contextStream));\n }\n return contextStream.result();\n }\n\n path.area = function(object) {\n geoStream(object, projectionStream(areaStream$1));\n return areaStream$1.result();\n };\n\n path.measure = function(object) {\n geoStream(object, projectionStream(lengthStream$1));\n return lengthStream$1.result();\n };\n\n path.bounds = function(object) {\n geoStream(object, projectionStream(boundsStream$1));\n return boundsStream$1.result();\n };\n\n path.centroid = function(object) {\n geoStream(object, projectionStream(centroidStream$1));\n return centroidStream$1.result();\n };\n\n path.projection = function(_) {\n return arguments.length ? (projectionStream = _ == null ? (projection = null, identity) : (projection = _).stream, path) : projection;\n };\n\n path.context = function(_) {\n if (!arguments.length) return context;\n contextStream = _ == null ? (context = null, new PathString) : new PathContext(context = _);\n if (typeof pointRadius !== \"function\") contextStream.pointRadius(pointRadius);\n return path;\n };\n\n path.pointRadius = function(_) {\n if (!arguments.length) return pointRadius;\n pointRadius = typeof _ === \"function\" ? _ : (contextStream.pointRadius(+_), +_);\n return path;\n };\n\n return path.projection(projection).context(context);\n}\n\nfunction transform(methods) {\n return {\n stream: transformer(methods)\n };\n}\n\nfunction transformer(methods) {\n return function(stream) {\n var s = new TransformStream;\n for (var key in methods) s[key] = methods[key];\n s.stream = stream;\n return s;\n };\n}\n\nfunction TransformStream() {}\n\nTransformStream.prototype = {\n constructor: TransformStream,\n point: function(x, y) { this.stream.point(x, y); },\n sphere: function() { this.stream.sphere(); },\n lineStart: function() { this.stream.lineStart(); },\n lineEnd: function() { this.stream.lineEnd(); },\n polygonStart: function() { this.stream.polygonStart(); },\n polygonEnd: function() { this.stream.polygonEnd(); }\n};\n\nfunction fit(projection, fitBounds, object) {\n var clip = projection.clipExtent && projection.clipExtent();\n projection.scale(150).translate([0, 0]);\n if (clip != null) projection.clipExtent(null);\n geoStream(object, projection.stream(boundsStream$1));\n fitBounds(boundsStream$1.result());\n if (clip != null) projection.clipExtent(clip);\n return projection;\n}\n\nfunction fitExtent(projection, extent, object) {\n return fit(projection, function(b) {\n var w = extent[1][0] - extent[0][0],\n h = extent[1][1] - extent[0][1],\n k = Math.min(w / (b[1][0] - b[0][0]), h / (b[1][1] - b[0][1])),\n x = +extent[0][0] + (w - k * (b[1][0] + b[0][0])) / 2,\n y = +extent[0][1] + (h - k * (b[1][1] + b[0][1])) / 2;\n projection.scale(150 * k).translate([x, y]);\n }, object);\n}\n\nfunction fitSize(projection, size, object) {\n return fitExtent(projection, [[0, 0], size], object);\n}\n\nfunction fitWidth(projection, width, object) {\n return fit(projection, function(b) {\n var w = +width,\n k = w / (b[1][0] - b[0][0]),\n x = (w - k * (b[1][0] + b[0][0])) / 2,\n y = -k * b[0][1];\n projection.scale(150 * k).translate([x, y]);\n }, object);\n}\n\nfunction fitHeight(projection, height, object) {\n return fit(projection, function(b) {\n var h = +height,\n k = h / (b[1][1] - b[0][1]),\n x = -k * b[0][0],\n y = (h - k * (b[1][1] + b[0][1])) / 2;\n projection.scale(150 * k).translate([x, y]);\n }, object);\n}\n\nvar maxDepth = 16, // maximum depth of subdivision\n cosMinDistance = cos(30 * radians); // cos(minimum angular distance)\n\nfunction resample(project, delta2) {\n return +delta2 ? resample$1(project, delta2) : resampleNone(project);\n}\n\nfunction resampleNone(project) {\n return transformer({\n point: function(x, y) {\n x = project(x, y);\n this.stream.point(x[0], x[1]);\n }\n });\n}\n\nfunction resample$1(project, delta2) {\n\n function resampleLineTo(x0, y0, lambda0, a0, b0, c0, x1, y1, lambda1, a1, b1, c1, depth, stream) {\n var dx = x1 - x0,\n dy = y1 - y0,\n d2 = dx * dx + dy * dy;\n if (d2 > 4 * delta2 && depth--) {\n var a = a0 + a1,\n b = b0 + b1,\n c = c0 + c1,\n m = sqrt(a * a + b * b + c * c),\n phi2 = asin(c /= m),\n lambda2 = abs(abs(c) - 1) < epsilon || abs(lambda0 - lambda1) < epsilon ? (lambda0 + lambda1) / 2 : atan2(b, a),\n p = project(lambda2, phi2),\n x2 = p[0],\n y2 = p[1],\n dx2 = x2 - x0,\n dy2 = y2 - y0,\n dz = dy * dx2 - dx * dy2;\n if (dz * dz / d2 > delta2 // perpendicular projected distance\n || abs((dx * dx2 + dy * dy2) / d2 - 0.5) > 0.3 // midpoint close to an end\n || a0 * a1 + b0 * b1 + c0 * c1 < cosMinDistance) { // angular distance\n resampleLineTo(x0, y0, lambda0, a0, b0, c0, x2, y2, lambda2, a /= m, b /= m, c, depth, stream);\n stream.point(x2, y2);\n resampleLineTo(x2, y2, lambda2, a, b, c, x1, y1, lambda1, a1, b1, c1, depth, stream);\n }\n }\n }\n return function(stream) {\n var lambda00, x00, y00, a00, b00, c00, // first point\n lambda0, x0, y0, a0, b0, c0; // previous point\n\n var resampleStream = {\n point: point,\n lineStart: lineStart,\n lineEnd: lineEnd,\n polygonStart: function() { stream.polygonStart(); resampleStream.lineStart = ringStart; },\n polygonEnd: function() { stream.polygonEnd(); resampleStream.lineStart = lineStart; }\n };\n\n function point(x, y) {\n x = project(x, y);\n stream.point(x[0], x[1]);\n }\n\n function lineStart() {\n x0 = NaN;\n resampleStream.point = linePoint;\n stream.lineStart();\n }\n\n function linePoint(lambda, phi) {\n var c = cartesian([lambda, phi]), p = project(lambda, phi);\n resampleLineTo(x0, y0, lambda0, a0, b0, c0, x0 = p[0], y0 = p[1], lambda0 = lambda, a0 = c[0], b0 = c[1], c0 = c[2], maxDepth, stream);\n stream.point(x0, y0);\n }\n\n function lineEnd() {\n resampleStream.point = point;\n stream.lineEnd();\n }\n\n function ringStart() {\n lineStart();\n resampleStream.point = ringPoint;\n resampleStream.lineEnd = ringEnd;\n }\n\n function ringPoint(lambda, phi) {\n linePoint(lambda00 = lambda, phi), x00 = x0, y00 = y0, a00 = a0, b00 = b0, c00 = c0;\n resampleStream.point = linePoint;\n }\n\n function ringEnd() {\n resampleLineTo(x0, y0, lambda0, a0, b0, c0, x00, y00, lambda00, a00, b00, c00, maxDepth, stream);\n resampleStream.lineEnd = lineEnd;\n lineEnd();\n }\n\n return resampleStream;\n };\n}\n\nvar transformRadians = transformer({\n point: function(x, y) {\n this.stream.point(x * radians, y * radians);\n }\n});\n\nfunction transformRotate(rotate) {\n return transformer({\n point: function(x, y) {\n var r = rotate(x, y);\n return this.stream.point(r[0], r[1]);\n }\n });\n}\n\nfunction scaleTranslate(k, dx, dy, sx, sy) {\n function transform(x, y) {\n x *= sx; y *= sy;\n return [dx + k * x, dy - k * y];\n }\n transform.invert = function(x, y) {\n return [(x - dx) / k * sx, (dy - y) / k * sy];\n };\n return transform;\n}\n\nfunction scaleTranslateRotate(k, dx, dy, sx, sy, alpha) {\n var cosAlpha = cos(alpha),\n sinAlpha = sin(alpha),\n a = cosAlpha * k,\n b = sinAlpha * k,\n ai = cosAlpha / k,\n bi = sinAlpha / k,\n ci = (sinAlpha * dy - cosAlpha * dx) / k,\n fi = (sinAlpha * dx + cosAlpha * dy) / k;\n function transform(x, y) {\n x *= sx; y *= sy;\n return [a * x - b * y + dx, dy - b * x - a * y];\n }\n transform.invert = function(x, y) {\n return [sx * (ai * x - bi * y + ci), sy * (fi - bi * x - ai * y)];\n };\n return transform;\n}\n\nfunction projection(project) {\n return projectionMutator(function() { return project; })();\n}\n\nfunction projectionMutator(projectAt) {\n var project,\n k = 150, // scale\n x = 480, y = 250, // translate\n lambda = 0, phi = 0, // center\n deltaLambda = 0, deltaPhi = 0, deltaGamma = 0, rotate, // pre-rotate\n alpha = 0, // post-rotate angle\n sx = 1, // reflectX\n sy = 1, // reflectX\n theta = null, preclip = clipAntimeridian, // pre-clip angle\n x0 = null, y0, x1, y1, postclip = identity, // post-clip extent\n delta2 = 0.5, // precision\n projectResample,\n projectTransform,\n projectRotateTransform,\n cache,\n cacheStream;\n\n function projection(point) {\n return projectRotateTransform(point[0] * radians, point[1] * radians);\n }\n\n function invert(point) {\n point = projectRotateTransform.invert(point[0], point[1]);\n return point && [point[0] * degrees, point[1] * degrees];\n }\n\n projection.stream = function(stream) {\n return cache && cacheStream === stream ? cache : cache = transformRadians(transformRotate(rotate)(preclip(projectResample(postclip(cacheStream = stream)))));\n };\n\n projection.preclip = function(_) {\n return arguments.length ? (preclip = _, theta = undefined, reset()) : preclip;\n };\n\n projection.postclip = function(_) {\n return arguments.length ? (postclip = _, x0 = y0 = x1 = y1 = null, reset()) : postclip;\n };\n\n projection.clipAngle = function(_) {\n return arguments.length ? (preclip = +_ ? clipCircle(theta = _ * radians) : (theta = null, clipAntimeridian), reset()) : theta * degrees;\n };\n\n projection.clipExtent = function(_) {\n return arguments.length ? (postclip = _ == null ? (x0 = y0 = x1 = y1 = null, identity) : clipRectangle(x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1]), reset()) : x0 == null ? null : [[x0, y0], [x1, y1]];\n };\n\n projection.scale = function(_) {\n return arguments.length ? (k = +_, recenter()) : k;\n };\n\n projection.translate = function(_) {\n return arguments.length ? (x = +_[0], y = +_[1], recenter()) : [x, y];\n };\n\n projection.center = function(_) {\n return arguments.length ? (lambda = _[0] % 360 * radians, phi = _[1] % 360 * radians, recenter()) : [lambda * degrees, phi * degrees];\n };\n\n projection.rotate = function(_) {\n return arguments.length ? (deltaLambda = _[0] % 360 * radians, deltaPhi = _[1] % 360 * radians, deltaGamma = _.length > 2 ? _[2] % 360 * radians : 0, recenter()) : [deltaLambda * degrees, deltaPhi * degrees, deltaGamma * degrees];\n };\n\n projection.angle = function(_) {\n return arguments.length ? (alpha = _ % 360 * radians, recenter()) : alpha * degrees;\n };\n\n projection.reflectX = function(_) {\n return arguments.length ? (sx = _ ? -1 : 1, recenter()) : sx < 0;\n };\n\n projection.reflectY = function(_) {\n return arguments.length ? (sy = _ ? -1 : 1, recenter()) : sy < 0;\n };\n\n projection.precision = function(_) {\n return arguments.length ? (projectResample = resample(projectTransform, delta2 = _ * _), reset()) : sqrt(delta2);\n };\n\n projection.fitExtent = function(extent, object) {\n return fitExtent(projection, extent, object);\n };\n\n projection.fitSize = function(size, object) {\n return fitSize(projection, size, object);\n };\n\n projection.fitWidth = function(width, object) {\n return fitWidth(projection, width, object);\n };\n\n projection.fitHeight = function(height, object) {\n return fitHeight(projection, height, object);\n };\n\n function recenter() {\n var center = scaleTranslateRotate(k, 0, 0, sx, sy, alpha).apply(null, project(lambda, phi)),\n transform = (alpha ? scaleTranslateRotate : scaleTranslate)(k, x - center[0], y - center[1], sx, sy, alpha);\n rotate = rotateRadians(deltaLambda, deltaPhi, deltaGamma);\n projectTransform = compose(project, transform);\n projectRotateTransform = compose(rotate, projectTransform);\n projectResample = resample(projectTransform, delta2);\n return reset();\n }\n\n function reset() {\n cache = cacheStream = null;\n return projection;\n }\n\n return function() {\n project = projectAt.apply(this, arguments);\n projection.invert = project.invert && invert;\n return recenter();\n };\n}\n\nfunction conicProjection(projectAt) {\n var phi0 = 0,\n phi1 = pi / 3,\n m = projectionMutator(projectAt),\n p = m(phi0, phi1);\n\n p.parallels = function(_) {\n return arguments.length ? m(phi0 = _[0] * radians, phi1 = _[1] * radians) : [phi0 * degrees, phi1 * degrees];\n };\n\n return p;\n}\n\nfunction cylindricalEqualAreaRaw(phi0) {\n var cosPhi0 = cos(phi0);\n\n function forward(lambda, phi) {\n return [lambda * cosPhi0, sin(phi) / cosPhi0];\n }\n\n forward.invert = function(x, y) {\n return [x / cosPhi0, asin(y * cosPhi0)];\n };\n\n return forward;\n}\n\nfunction conicEqualAreaRaw(y0, y1) {\n var sy0 = sin(y0), n = (sy0 + sin(y1)) / 2;\n\n // Are the parallels symmetrical around the Equator?\n if (abs(n) < epsilon) return cylindricalEqualAreaRaw(y0);\n\n var c = 1 + sy0 * (2 * n - sy0), r0 = sqrt(c) / n;\n\n function project(x, y) {\n var r = sqrt(c - 2 * n * sin(y)) / n;\n return [r * sin(x *= n), r0 - r * cos(x)];\n }\n\n project.invert = function(x, y) {\n var r0y = r0 - y,\n l = atan2(x, abs(r0y)) * sign(r0y);\n if (r0y * n < 0)\n l -= pi * sign(x) * sign(r0y);\n return [l / n, asin((c - (x * x + r0y * r0y) * n * n) / (2 * n))];\n };\n\n return project;\n}\n\nfunction conicEqualArea() {\n return conicProjection(conicEqualAreaRaw)\n .scale(155.424)\n .center([0, 33.6442]);\n}\n\nfunction albers() {\n return conicEqualArea()\n .parallels([29.5, 45.5])\n .scale(1070)\n .translate([480, 250])\n .rotate([96, 0])\n .center([-0.6, 38.7]);\n}\n\n// The projections must have mutually exclusive clip regions on the sphere,\n// as this will avoid emitting interleaving lines and polygons.\nfunction multiplex(streams) {\n var n = streams.length;\n return {\n point: function(x, y) { var i = -1; while (++i < n) streams[i].point(x, y); },\n sphere: function() { var i = -1; while (++i < n) streams[i].sphere(); },\n lineStart: function() { var i = -1; while (++i < n) streams[i].lineStart(); },\n lineEnd: function() { var i = -1; while (++i < n) streams[i].lineEnd(); },\n polygonStart: function() { var i = -1; while (++i < n) streams[i].polygonStart(); },\n polygonEnd: function() { var i = -1; while (++i < n) streams[i].polygonEnd(); }\n };\n}\n\n// A composite projection for the United States, configured by default for\n// 960×500. The projection also works quite well at 960×600 if you change the\n// scale to 1285 and adjust the translate accordingly. The set of standard\n// parallels for each region comes from USGS, which is published here:\n// http://egsc.usgs.gov/isb/pubs/MapProjections/projections.html#albers\nfunction albersUsa() {\n var cache,\n cacheStream,\n lower48 = albers(), lower48Point,\n alaska = conicEqualArea().rotate([154, 0]).center([-2, 58.5]).parallels([55, 65]), alaskaPoint, // EPSG:3338\n hawaii = conicEqualArea().rotate([157, 0]).center([-3, 19.9]).parallels([8, 18]), hawaiiPoint, // ESRI:102007\n point, pointStream = {point: function(x, y) { point = [x, y]; }};\n\n function albersUsa(coordinates) {\n var x = coordinates[0], y = coordinates[1];\n return point = null,\n (lower48Point.point(x, y), point)\n || (alaskaPoint.point(x, y), point)\n || (hawaiiPoint.point(x, y), point);\n }\n\n albersUsa.invert = function(coordinates) {\n var k = lower48.scale(),\n t = lower48.translate(),\n x = (coordinates[0] - t[0]) / k,\n y = (coordinates[1] - t[1]) / k;\n return (y >= 0.120 && y < 0.234 && x >= -0.425 && x < -0.214 ? alaska\n : y >= 0.166 && y < 0.234 && x >= -0.214 && x < -0.115 ? hawaii\n : lower48).invert(coordinates);\n };\n\n albersUsa.stream = function(stream) {\n return cache && cacheStream === stream ? cache : cache = multiplex([lower48.stream(cacheStream = stream), alaska.stream(stream), hawaii.stream(stream)]);\n };\n\n albersUsa.precision = function(_) {\n if (!arguments.length) return lower48.precision();\n lower48.precision(_), alaska.precision(_), hawaii.precision(_);\n return reset();\n };\n\n albersUsa.scale = function(_) {\n if (!arguments.length) return lower48.scale();\n lower48.scale(_), alaska.scale(_ * 0.35), hawaii.scale(_);\n return albersUsa.translate(lower48.translate());\n };\n\n albersUsa.translate = function(_) {\n if (!arguments.length) return lower48.translate();\n var k = lower48.scale(), x = +_[0], y = +_[1];\n\n lower48Point = lower48\n .translate(_)\n .clipExtent([[x - 0.455 * k, y - 0.238 * k], [x + 0.455 * k, y + 0.238 * k]])\n .stream(pointStream);\n\n alaskaPoint = alaska\n .translate([x - 0.307 * k, y + 0.201 * k])\n .clipExtent([[x - 0.425 * k + epsilon, y + 0.120 * k + epsilon], [x - 0.214 * k - epsilon, y + 0.234 * k - epsilon]])\n .stream(pointStream);\n\n hawaiiPoint = hawaii\n .translate([x - 0.205 * k, y + 0.212 * k])\n .clipExtent([[x - 0.214 * k + epsilon, y + 0.166 * k + epsilon], [x - 0.115 * k - epsilon, y + 0.234 * k - epsilon]])\n .stream(pointStream);\n\n return reset();\n };\n\n albersUsa.fitExtent = function(extent, object) {\n return fitExtent(albersUsa, extent, object);\n };\n\n albersUsa.fitSize = function(size, object) {\n return fitSize(albersUsa, size, object);\n };\n\n albersUsa.fitWidth = function(width, object) {\n return fitWidth(albersUsa, width, object);\n };\n\n albersUsa.fitHeight = function(height, object) {\n return fitHeight(albersUsa, height, object);\n };\n\n function reset() {\n cache = cacheStream = null;\n return albersUsa;\n }\n\n return albersUsa.scale(1070);\n}\n\nfunction azimuthalRaw(scale) {\n return function(x, y) {\n var cx = cos(x),\n cy = cos(y),\n k = scale(cx * cy);\n return [\n k * cy * sin(x),\n k * sin(y)\n ];\n }\n}\n\nfunction azimuthalInvert(angle) {\n return function(x, y) {\n var z = sqrt(x * x + y * y),\n c = angle(z),\n sc = sin(c),\n cc = cos(c);\n return [\n atan2(x * sc, z * cc),\n asin(z && y * sc / z)\n ];\n }\n}\n\nvar azimuthalEqualAreaRaw = azimuthalRaw(function(cxcy) {\n return sqrt(2 / (1 + cxcy));\n});\n\nazimuthalEqualAreaRaw.invert = azimuthalInvert(function(z) {\n return 2 * asin(z / 2);\n});\n\nfunction azimuthalEqualArea() {\n return projection(azimuthalEqualAreaRaw)\n .scale(124.75)\n .clipAngle(180 - 1e-3);\n}\n\nvar azimuthalEquidistantRaw = azimuthalRaw(function(c) {\n return (c = acos(c)) && c / sin(c);\n});\n\nazimuthalEquidistantRaw.invert = azimuthalInvert(function(z) {\n return z;\n});\n\nfunction azimuthalEquidistant() {\n return projection(azimuthalEquidistantRaw)\n .scale(79.4188)\n .clipAngle(180 - 1e-3);\n}\n\nfunction mercatorRaw(lambda, phi) {\n return [lambda, log(tan((halfPi + phi) / 2))];\n}\n\nmercatorRaw.invert = function(x, y) {\n return [x, 2 * atan(exp(y)) - halfPi];\n};\n\nfunction mercator() {\n return mercatorProjection(mercatorRaw)\n .scale(961 / tau);\n}\n\nfunction mercatorProjection(project) {\n var m = projection(project),\n center = m.center,\n scale = m.scale,\n translate = m.translate,\n clipExtent = m.clipExtent,\n x0 = null, y0, x1, y1; // clip extent\n\n m.scale = function(_) {\n return arguments.length ? (scale(_), reclip()) : scale();\n };\n\n m.translate = function(_) {\n return arguments.length ? (translate(_), reclip()) : translate();\n };\n\n m.center = function(_) {\n return arguments.length ? (center(_), reclip()) : center();\n };\n\n m.clipExtent = function(_) {\n return arguments.length ? ((_ == null ? x0 = y0 = x1 = y1 = null : (x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1])), reclip()) : x0 == null ? null : [[x0, y0], [x1, y1]];\n };\n\n function reclip() {\n var k = pi * scale(),\n t = m(rotation(m.rotate()).invert([0, 0]));\n return clipExtent(x0 == null\n ? [[t[0] - k, t[1] - k], [t[0] + k, t[1] + k]] : project === mercatorRaw\n ? [[Math.max(t[0] - k, x0), y0], [Math.min(t[0] + k, x1), y1]]\n : [[x0, Math.max(t[1] - k, y0)], [x1, Math.min(t[1] + k, y1)]]);\n }\n\n return reclip();\n}\n\nfunction tany(y) {\n return tan((halfPi + y) / 2);\n}\n\nfunction conicConformalRaw(y0, y1) {\n var cy0 = cos(y0),\n n = y0 === y1 ? sin(y0) : log(cy0 / cos(y1)) / log(tany(y1) / tany(y0)),\n f = cy0 * pow(tany(y0), n) / n;\n\n if (!n) return mercatorRaw;\n\n function project(x, y) {\n if (f > 0) { if (y < -halfPi + epsilon) y = -halfPi + epsilon; }\n else { if (y > halfPi - epsilon) y = halfPi - epsilon; }\n var r = f / pow(tany(y), n);\n return [r * sin(n * x), f - r * cos(n * x)];\n }\n\n project.invert = function(x, y) {\n var fy = f - y, r = sign(n) * sqrt(x * x + fy * fy),\n l = atan2(x, abs(fy)) * sign(fy);\n if (fy * n < 0)\n l -= pi * sign(x) * sign(fy);\n return [l / n, 2 * atan(pow(f / r, 1 / n)) - halfPi];\n };\n\n return project;\n}\n\nfunction conicConformal() {\n return conicProjection(conicConformalRaw)\n .scale(109.5)\n .parallels([30, 30]);\n}\n\nfunction equirectangularRaw(lambda, phi) {\n return [lambda, phi];\n}\n\nequirectangularRaw.invert = equirectangularRaw;\n\nfunction equirectangular() {\n return projection(equirectangularRaw)\n .scale(152.63);\n}\n\nfunction conicEquidistantRaw(y0, y1) {\n var cy0 = cos(y0),\n n = y0 === y1 ? sin(y0) : (cy0 - cos(y1)) / (y1 - y0),\n g = cy0 / n + y0;\n\n if (abs(n) < epsilon) return equirectangularRaw;\n\n function project(x, y) {\n var gy = g - y, nx = n * x;\n return [gy * sin(nx), g - gy * cos(nx)];\n }\n\n project.invert = function(x, y) {\n var gy = g - y,\n l = atan2(x, abs(gy)) * sign(gy);\n if (gy * n < 0)\n l -= pi * sign(x) * sign(gy);\n return [l / n, g - sign(n) * sqrt(x * x + gy * gy)];\n };\n\n return project;\n}\n\nfunction conicEquidistant() {\n return conicProjection(conicEquidistantRaw)\n .scale(131.154)\n .center([0, 13.9389]);\n}\n\nvar A1 = 1.340264,\n A2 = -0.081106,\n A3 = 0.000893,\n A4 = 0.003796,\n M = sqrt(3) / 2,\n iterations = 12;\n\nfunction equalEarthRaw(lambda, phi) {\n var l = asin(M * sin(phi)), l2 = l * l, l6 = l2 * l2 * l2;\n return [\n lambda * cos(l) / (M * (A1 + 3 * A2 * l2 + l6 * (7 * A3 + 9 * A4 * l2))),\n l * (A1 + A2 * l2 + l6 * (A3 + A4 * l2))\n ];\n}\n\nequalEarthRaw.invert = function(x, y) {\n var l = y, l2 = l * l, l6 = l2 * l2 * l2;\n for (var i = 0, delta, fy, fpy; i < iterations; ++i) {\n fy = l * (A1 + A2 * l2 + l6 * (A3 + A4 * l2)) - y;\n fpy = A1 + 3 * A2 * l2 + l6 * (7 * A3 + 9 * A4 * l2);\n l -= delta = fy / fpy, l2 = l * l, l6 = l2 * l2 * l2;\n if (abs(delta) < epsilon2) break;\n }\n return [\n M * x * (A1 + 3 * A2 * l2 + l6 * (7 * A3 + 9 * A4 * l2)) / cos(l),\n asin(sin(l) / M)\n ];\n};\n\nfunction equalEarth() {\n return projection(equalEarthRaw)\n .scale(177.158);\n}\n\nfunction gnomonicRaw(x, y) {\n var cy = cos(y), k = cos(x) * cy;\n return [cy * sin(x) / k, sin(y) / k];\n}\n\ngnomonicRaw.invert = azimuthalInvert(atan);\n\nfunction gnomonic() {\n return projection(gnomonicRaw)\n .scale(144.049)\n .clipAngle(60);\n}\n\nfunction identity$1() {\n var k = 1, tx = 0, ty = 0, sx = 1, sy = 1, // scale, translate and reflect\n alpha = 0, ca, sa, // angle\n x0 = null, y0, x1, y1, // clip extent\n kx = 1, ky = 1,\n transform = transformer({\n point: function(x, y) {\n var p = projection([x, y]);\n this.stream.point(p[0], p[1]);\n }\n }),\n postclip = identity,\n cache,\n cacheStream;\n\n function reset() {\n kx = k * sx;\n ky = k * sy;\n cache = cacheStream = null;\n return projection;\n }\n\n function projection (p) {\n var x = p[0] * kx, y = p[1] * ky;\n if (alpha) {\n var t = y * ca - x * sa;\n x = x * ca + y * sa;\n y = t;\n } \n return [x + tx, y + ty];\n }\n projection.invert = function(p) {\n var x = p[0] - tx, y = p[1] - ty;\n if (alpha) {\n var t = y * ca + x * sa;\n x = x * ca - y * sa;\n y = t;\n }\n return [x / kx, y / ky];\n };\n projection.stream = function(stream) {\n return cache && cacheStream === stream ? cache : cache = transform(postclip(cacheStream = stream));\n };\n projection.postclip = function(_) {\n return arguments.length ? (postclip = _, x0 = y0 = x1 = y1 = null, reset()) : postclip;\n };\n projection.clipExtent = function(_) {\n return arguments.length ? (postclip = _ == null ? (x0 = y0 = x1 = y1 = null, identity) : clipRectangle(x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1]), reset()) : x0 == null ? null : [[x0, y0], [x1, y1]];\n };\n projection.scale = function(_) {\n return arguments.length ? (k = +_, reset()) : k;\n };\n projection.translate = function(_) {\n return arguments.length ? (tx = +_[0], ty = +_[1], reset()) : [tx, ty];\n };\n projection.angle = function(_) {\n return arguments.length ? (alpha = _ % 360 * radians, sa = sin(alpha), ca = cos(alpha), reset()) : alpha * degrees;\n };\n projection.reflectX = function(_) {\n return arguments.length ? (sx = _ ? -1 : 1, reset()) : sx < 0;\n };\n projection.reflectY = function(_) {\n return arguments.length ? (sy = _ ? -1 : 1, reset()) : sy < 0;\n };\n projection.fitExtent = function(extent, object) {\n return fitExtent(projection, extent, object);\n };\n projection.fitSize = function(size, object) {\n return fitSize(projection, size, object);\n };\n projection.fitWidth = function(width, object) {\n return fitWidth(projection, width, object);\n };\n projection.fitHeight = function(height, object) {\n return fitHeight(projection, height, object);\n };\n\n return projection;\n}\n\nfunction naturalEarth1Raw(lambda, phi) {\n var phi2 = phi * phi, phi4 = phi2 * phi2;\n return [\n lambda * (0.8707 - 0.131979 * phi2 + phi4 * (-0.013791 + phi4 * (0.003971 * phi2 - 0.001529 * phi4))),\n phi * (1.007226 + phi2 * (0.015085 + phi4 * (-0.044475 + 0.028874 * phi2 - 0.005916 * phi4)))\n ];\n}\n\nnaturalEarth1Raw.invert = function(x, y) {\n var phi = y, i = 25, delta;\n do {\n var phi2 = phi * phi, phi4 = phi2 * phi2;\n phi -= delta = (phi * (1.007226 + phi2 * (0.015085 + phi4 * (-0.044475 + 0.028874 * phi2 - 0.005916 * phi4))) - y) /\n (1.007226 + phi2 * (0.015085 * 3 + phi4 * (-0.044475 * 7 + 0.028874 * 9 * phi2 - 0.005916 * 11 * phi4)));\n } while (abs(delta) > epsilon && --i > 0);\n return [\n x / (0.8707 + (phi2 = phi * phi) * (-0.131979 + phi2 * (-0.013791 + phi2 * phi2 * phi2 * (0.003971 - 0.001529 * phi2)))),\n phi\n ];\n};\n\nfunction naturalEarth1() {\n return projection(naturalEarth1Raw)\n .scale(175.295);\n}\n\nfunction orthographicRaw(x, y) {\n return [cos(y) * sin(x), sin(y)];\n}\n\northographicRaw.invert = azimuthalInvert(asin);\n\nfunction orthographic() {\n return projection(orthographicRaw)\n .scale(249.5)\n .clipAngle(90 + epsilon);\n}\n\nfunction stereographicRaw(x, y) {\n var cy = cos(y), k = 1 + cos(x) * cy;\n return [cy * sin(x) / k, sin(y) / k];\n}\n\nstereographicRaw.invert = azimuthalInvert(function(z) {\n return 2 * atan(z);\n});\n\nfunction stereographic() {\n return projection(stereographicRaw)\n .scale(250)\n .clipAngle(142);\n}\n\nfunction transverseMercatorRaw(lambda, phi) {\n return [log(tan((halfPi + phi) / 2)), -lambda];\n}\n\ntransverseMercatorRaw.invert = function(x, y) {\n return [-y, 2 * atan(exp(x)) - halfPi];\n};\n\nfunction transverseMercator() {\n var m = mercatorProjection(transverseMercatorRaw),\n center = m.center,\n rotate = m.rotate;\n\n m.center = function(_) {\n return arguments.length ? center([-_[1], _[0]]) : (_ = center(), [_[1], -_[0]]);\n };\n\n m.rotate = function(_) {\n return arguments.length ? rotate([_[0], _[1], _.length > 2 ? _[2] + 90 : 90]) : (_ = rotate(), [_[0], _[1], _[2] - 90]);\n };\n\n return rotate([0, 0, 90])\n .scale(159.155);\n}\n\nexports.geoAlbers = albers;\nexports.geoAlbersUsa = albersUsa;\nexports.geoArea = area;\nexports.geoAzimuthalEqualArea = azimuthalEqualArea;\nexports.geoAzimuthalEqualAreaRaw = azimuthalEqualAreaRaw;\nexports.geoAzimuthalEquidistant = azimuthalEquidistant;\nexports.geoAzimuthalEquidistantRaw = azimuthalEquidistantRaw;\nexports.geoBounds = bounds;\nexports.geoCentroid = centroid;\nexports.geoCircle = circle;\nexports.geoClipAntimeridian = clipAntimeridian;\nexports.geoClipCircle = clipCircle;\nexports.geoClipExtent = extent;\nexports.geoClipRectangle = clipRectangle;\nexports.geoConicConformal = conicConformal;\nexports.geoConicConformalRaw = conicConformalRaw;\nexports.geoConicEqualArea = conicEqualArea;\nexports.geoConicEqualAreaRaw = conicEqualAreaRaw;\nexports.geoConicEquidistant = conicEquidistant;\nexports.geoConicEquidistantRaw = conicEquidistantRaw;\nexports.geoContains = contains;\nexports.geoDistance = distance;\nexports.geoEqualEarth = equalEarth;\nexports.geoEqualEarthRaw = equalEarthRaw;\nexports.geoEquirectangular = equirectangular;\nexports.geoEquirectangularRaw = equirectangularRaw;\nexports.geoGnomonic = gnomonic;\nexports.geoGnomonicRaw = gnomonicRaw;\nexports.geoGraticule = graticule;\nexports.geoGraticule10 = graticule10;\nexports.geoIdentity = identity$1;\nexports.geoInterpolate = interpolate;\nexports.geoLength = length;\nexports.geoMercator = mercator;\nexports.geoMercatorRaw = mercatorRaw;\nexports.geoNaturalEarth1 = naturalEarth1;\nexports.geoNaturalEarth1Raw = naturalEarth1Raw;\nexports.geoOrthographic = orthographic;\nexports.geoOrthographicRaw = orthographicRaw;\nexports.geoPath = index;\nexports.geoProjection = projection;\nexports.geoProjectionMutator = projectionMutator;\nexports.geoRotation = rotation;\nexports.geoStereographic = stereographic;\nexports.geoStereographicRaw = stereographicRaw;\nexports.geoStream = geoStream;\nexports.geoTransform = transform;\nexports.geoTransverseMercator = transverseMercator;\nexports.geoTransverseMercatorRaw = transverseMercatorRaw;\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n})));\n\n},{\"d3-array\":107}],115:[function(_dereq_,module,exports){\n// https://d3js.org/d3-hierarchy/ v1.1.9 Copyright 2019 Mike Bostock\n(function (global, factory) {\ntypeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :\ntypeof define === 'function' && define.amd ? define(['exports'], factory) :\n(global = global || self, factory(global.d3 = global.d3 || {}));\n}(this, function (exports) { 'use strict';\n\nfunction defaultSeparation(a, b) {\n return a.parent === b.parent ? 1 : 2;\n}\n\nfunction meanX(children) {\n return children.reduce(meanXReduce, 0) / children.length;\n}\n\nfunction meanXReduce(x, c) {\n return x + c.x;\n}\n\nfunction maxY(children) {\n return 1 + children.reduce(maxYReduce, 0);\n}\n\nfunction maxYReduce(y, c) {\n return Math.max(y, c.y);\n}\n\nfunction leafLeft(node) {\n var children;\n while (children = node.children) node = children[0];\n return node;\n}\n\nfunction leafRight(node) {\n var children;\n while (children = node.children) node = children[children.length - 1];\n return node;\n}\n\nfunction cluster() {\n var separation = defaultSeparation,\n dx = 1,\n dy = 1,\n nodeSize = false;\n\n function cluster(root) {\n var previousNode,\n x = 0;\n\n // First walk, computing the initial x & y values.\n root.eachAfter(function(node) {\n var children = node.children;\n if (children) {\n node.x = meanX(children);\n node.y = maxY(children);\n } else {\n node.x = previousNode ? x += separation(node, previousNode) : 0;\n node.y = 0;\n previousNode = node;\n }\n });\n\n var left = leafLeft(root),\n right = leafRight(root),\n x0 = left.x - separation(left, right) / 2,\n x1 = right.x + separation(right, left) / 2;\n\n // Second walk, normalizing x & y to the desired size.\n return root.eachAfter(nodeSize ? function(node) {\n node.x = (node.x - root.x) * dx;\n node.y = (root.y - node.y) * dy;\n } : function(node) {\n node.x = (node.x - x0) / (x1 - x0) * dx;\n node.y = (1 - (root.y ? node.y / root.y : 1)) * dy;\n });\n }\n\n cluster.separation = function(x) {\n return arguments.length ? (separation = x, cluster) : separation;\n };\n\n cluster.size = function(x) {\n return arguments.length ? (nodeSize = false, dx = +x[0], dy = +x[1], cluster) : (nodeSize ? null : [dx, dy]);\n };\n\n cluster.nodeSize = function(x) {\n return arguments.length ? (nodeSize = true, dx = +x[0], dy = +x[1], cluster) : (nodeSize ? [dx, dy] : null);\n };\n\n return cluster;\n}\n\nfunction count(node) {\n var sum = 0,\n children = node.children,\n i = children && children.length;\n if (!i) sum = 1;\n else while (--i >= 0) sum += children[i].value;\n node.value = sum;\n}\n\nfunction node_count() {\n return this.eachAfter(count);\n}\n\nfunction node_each(callback) {\n var node = this, current, next = [node], children, i, n;\n do {\n current = next.reverse(), next = [];\n while (node = current.pop()) {\n callback(node), children = node.children;\n if (children) for (i = 0, n = children.length; i < n; ++i) {\n next.push(children[i]);\n }\n }\n } while (next.length);\n return this;\n}\n\nfunction node_eachBefore(callback) {\n var node = this, nodes = [node], children, i;\n while (node = nodes.pop()) {\n callback(node), children = node.children;\n if (children) for (i = children.length - 1; i >= 0; --i) {\n nodes.push(children[i]);\n }\n }\n return this;\n}\n\nfunction node_eachAfter(callback) {\n var node = this, nodes = [node], next = [], children, i, n;\n while (node = nodes.pop()) {\n next.push(node), children = node.children;\n if (children) for (i = 0, n = children.length; i < n; ++i) {\n nodes.push(children[i]);\n }\n }\n while (node = next.pop()) {\n callback(node);\n }\n return this;\n}\n\nfunction node_sum(value) {\n return this.eachAfter(function(node) {\n var sum = +value(node.data) || 0,\n children = node.children,\n i = children && children.length;\n while (--i >= 0) sum += children[i].value;\n node.value = sum;\n });\n}\n\nfunction node_sort(compare) {\n return this.eachBefore(function(node) {\n if (node.children) {\n node.children.sort(compare);\n }\n });\n}\n\nfunction node_path(end) {\n var start = this,\n ancestor = leastCommonAncestor(start, end),\n nodes = [start];\n while (start !== ancestor) {\n start = start.parent;\n nodes.push(start);\n }\n var k = nodes.length;\n while (end !== ancestor) {\n nodes.splice(k, 0, end);\n end = end.parent;\n }\n return nodes;\n}\n\nfunction leastCommonAncestor(a, b) {\n if (a === b) return a;\n var aNodes = a.ancestors(),\n bNodes = b.ancestors(),\n c = null;\n a = aNodes.pop();\n b = bNodes.pop();\n while (a === b) {\n c = a;\n a = aNodes.pop();\n b = bNodes.pop();\n }\n return c;\n}\n\nfunction node_ancestors() {\n var node = this, nodes = [node];\n while (node = node.parent) {\n nodes.push(node);\n }\n return nodes;\n}\n\nfunction node_descendants() {\n var nodes = [];\n this.each(function(node) {\n nodes.push(node);\n });\n return nodes;\n}\n\nfunction node_leaves() {\n var leaves = [];\n this.eachBefore(function(node) {\n if (!node.children) {\n leaves.push(node);\n }\n });\n return leaves;\n}\n\nfunction node_links() {\n var root = this, links = [];\n root.each(function(node) {\n if (node !== root) { // Don’t include the root’s parent, if any.\n links.push({source: node.parent, target: node});\n }\n });\n return links;\n}\n\nfunction hierarchy(data, children) {\n var root = new Node(data),\n valued = +data.value && (root.value = data.value),\n node,\n nodes = [root],\n child,\n childs,\n i,\n n;\n\n if (children == null) children = defaultChildren;\n\n while (node = nodes.pop()) {\n if (valued) node.value = +node.data.value;\n if ((childs = children(node.data)) && (n = childs.length)) {\n node.children = new Array(n);\n for (i = n - 1; i >= 0; --i) {\n nodes.push(child = node.children[i] = new Node(childs[i]));\n child.parent = node;\n child.depth = node.depth + 1;\n }\n }\n }\n\n return root.eachBefore(computeHeight);\n}\n\nfunction node_copy() {\n return hierarchy(this).eachBefore(copyData);\n}\n\nfunction defaultChildren(d) {\n return d.children;\n}\n\nfunction copyData(node) {\n node.data = node.data.data;\n}\n\nfunction computeHeight(node) {\n var height = 0;\n do node.height = height;\n while ((node = node.parent) && (node.height < ++height));\n}\n\nfunction Node(data) {\n this.data = data;\n this.depth =\n this.height = 0;\n this.parent = null;\n}\n\nNode.prototype = hierarchy.prototype = {\n constructor: Node,\n count: node_count,\n each: node_each,\n eachAfter: node_eachAfter,\n eachBefore: node_eachBefore,\n sum: node_sum,\n sort: node_sort,\n path: node_path,\n ancestors: node_ancestors,\n descendants: node_descendants,\n leaves: node_leaves,\n links: node_links,\n copy: node_copy\n};\n\nvar slice = Array.prototype.slice;\n\nfunction shuffle(array) {\n var m = array.length,\n t,\n i;\n\n while (m) {\n i = Math.random() * m-- | 0;\n t = array[m];\n array[m] = array[i];\n array[i] = t;\n }\n\n return array;\n}\n\nfunction enclose(circles) {\n var i = 0, n = (circles = shuffle(slice.call(circles))).length, B = [], p, e;\n\n while (i < n) {\n p = circles[i];\n if (e && enclosesWeak(e, p)) ++i;\n else e = encloseBasis(B = extendBasis(B, p)), i = 0;\n }\n\n return e;\n}\n\nfunction extendBasis(B, p) {\n var i, j;\n\n if (enclosesWeakAll(p, B)) return [p];\n\n // If we get here then B must have at least one element.\n for (i = 0; i < B.length; ++i) {\n if (enclosesNot(p, B[i])\n && enclosesWeakAll(encloseBasis2(B[i], p), B)) {\n return [B[i], p];\n }\n }\n\n // If we get here then B must have at least two elements.\n for (i = 0; i < B.length - 1; ++i) {\n for (j = i + 1; j < B.length; ++j) {\n if (enclosesNot(encloseBasis2(B[i], B[j]), p)\n && enclosesNot(encloseBasis2(B[i], p), B[j])\n && enclosesNot(encloseBasis2(B[j], p), B[i])\n && enclosesWeakAll(encloseBasis3(B[i], B[j], p), B)) {\n return [B[i], B[j], p];\n }\n }\n }\n\n // If we get here then something is very wrong.\n throw new Error;\n}\n\nfunction enclosesNot(a, b) {\n var dr = a.r - b.r, dx = b.x - a.x, dy = b.y - a.y;\n return dr < 0 || dr * dr < dx * dx + dy * dy;\n}\n\nfunction enclosesWeak(a, b) {\n var dr = a.r - b.r + 1e-6, dx = b.x - a.x, dy = b.y - a.y;\n return dr > 0 && dr * dr > dx * dx + dy * dy;\n}\n\nfunction enclosesWeakAll(a, B) {\n for (var i = 0; i < B.length; ++i) {\n if (!enclosesWeak(a, B[i])) {\n return false;\n }\n }\n return true;\n}\n\nfunction encloseBasis(B) {\n switch (B.length) {\n case 1: return encloseBasis1(B[0]);\n case 2: return encloseBasis2(B[0], B[1]);\n case 3: return encloseBasis3(B[0], B[1], B[2]);\n }\n}\n\nfunction encloseBasis1(a) {\n return {\n x: a.x,\n y: a.y,\n r: a.r\n };\n}\n\nfunction encloseBasis2(a, b) {\n var x1 = a.x, y1 = a.y, r1 = a.r,\n x2 = b.x, y2 = b.y, r2 = b.r,\n x21 = x2 - x1, y21 = y2 - y1, r21 = r2 - r1,\n l = Math.sqrt(x21 * x21 + y21 * y21);\n return {\n x: (x1 + x2 + x21 / l * r21) / 2,\n y: (y1 + y2 + y21 / l * r21) / 2,\n r: (l + r1 + r2) / 2\n };\n}\n\nfunction encloseBasis3(a, b, c) {\n var x1 = a.x, y1 = a.y, r1 = a.r,\n x2 = b.x, y2 = b.y, r2 = b.r,\n x3 = c.x, y3 = c.y, r3 = c.r,\n a2 = x1 - x2,\n a3 = x1 - x3,\n b2 = y1 - y2,\n b3 = y1 - y3,\n c2 = r2 - r1,\n c3 = r3 - r1,\n d1 = x1 * x1 + y1 * y1 - r1 * r1,\n d2 = d1 - x2 * x2 - y2 * y2 + r2 * r2,\n d3 = d1 - x3 * x3 - y3 * y3 + r3 * r3,\n ab = a3 * b2 - a2 * b3,\n xa = (b2 * d3 - b3 * d2) / (ab * 2) - x1,\n xb = (b3 * c2 - b2 * c3) / ab,\n ya = (a3 * d2 - a2 * d3) / (ab * 2) - y1,\n yb = (a2 * c3 - a3 * c2) / ab,\n A = xb * xb + yb * yb - 1,\n B = 2 * (r1 + xa * xb + ya * yb),\n C = xa * xa + ya * ya - r1 * r1,\n r = -(A ? (B + Math.sqrt(B * B - 4 * A * C)) / (2 * A) : C / B);\n return {\n x: x1 + xa + xb * r,\n y: y1 + ya + yb * r,\n r: r\n };\n}\n\nfunction place(b, a, c) {\n var dx = b.x - a.x, x, a2,\n dy = b.y - a.y, y, b2,\n d2 = dx * dx + dy * dy;\n if (d2) {\n a2 = a.r + c.r, a2 *= a2;\n b2 = b.r + c.r, b2 *= b2;\n if (a2 > b2) {\n x = (d2 + b2 - a2) / (2 * d2);\n y = Math.sqrt(Math.max(0, b2 / d2 - x * x));\n c.x = b.x - x * dx - y * dy;\n c.y = b.y - x * dy + y * dx;\n } else {\n x = (d2 + a2 - b2) / (2 * d2);\n y = Math.sqrt(Math.max(0, a2 / d2 - x * x));\n c.x = a.x + x * dx - y * dy;\n c.y = a.y + x * dy + y * dx;\n }\n } else {\n c.x = a.x + c.r;\n c.y = a.y;\n }\n}\n\nfunction intersects(a, b) {\n var dr = a.r + b.r - 1e-6, dx = b.x - a.x, dy = b.y - a.y;\n return dr > 0 && dr * dr > dx * dx + dy * dy;\n}\n\nfunction score(node) {\n var a = node._,\n b = node.next._,\n ab = a.r + b.r,\n dx = (a.x * b.r + b.x * a.r) / ab,\n dy = (a.y * b.r + b.y * a.r) / ab;\n return dx * dx + dy * dy;\n}\n\nfunction Node$1(circle) {\n this._ = circle;\n this.next = null;\n this.previous = null;\n}\n\nfunction packEnclose(circles) {\n if (!(n = circles.length)) return 0;\n\n var a, b, c, n, aa, ca, i, j, k, sj, sk;\n\n // Place the first circle.\n a = circles[0], a.x = 0, a.y = 0;\n if (!(n > 1)) return a.r;\n\n // Place the second circle.\n b = circles[1], a.x = -b.r, b.x = a.r, b.y = 0;\n if (!(n > 2)) return a.r + b.r;\n\n // Place the third circle.\n place(b, a, c = circles[2]);\n\n // Initialize the front-chain using the first three circles a, b and c.\n a = new Node$1(a), b = new Node$1(b), c = new Node$1(c);\n a.next = c.previous = b;\n b.next = a.previous = c;\n c.next = b.previous = a;\n\n // Attempt to place each remaining circle…\n pack: for (i = 3; i < n; ++i) {\n place(a._, b._, c = circles[i]), c = new Node$1(c);\n\n // Find the closest intersecting circle on the front-chain, if any.\n // “Closeness” is determined by linear distance along the front-chain.\n // “Ahead” or “behind” is likewise determined by linear distance.\n j = b.next, k = a.previous, sj = b._.r, sk = a._.r;\n do {\n if (sj <= sk) {\n if (intersects(j._, c._)) {\n b = j, a.next = b, b.previous = a, --i;\n continue pack;\n }\n sj += j._.r, j = j.next;\n } else {\n if (intersects(k._, c._)) {\n a = k, a.next = b, b.previous = a, --i;\n continue pack;\n }\n sk += k._.r, k = k.previous;\n }\n } while (j !== k.next);\n\n // Success! Insert the new circle c between a and b.\n c.previous = a, c.next = b, a.next = b.previous = b = c;\n\n // Compute the new closest circle pair to the centroid.\n aa = score(a);\n while ((c = c.next) !== b) {\n if ((ca = score(c)) < aa) {\n a = c, aa = ca;\n }\n }\n b = a.next;\n }\n\n // Compute the enclosing circle of the front chain.\n a = [b._], c = b; while ((c = c.next) !== b) a.push(c._); c = enclose(a);\n\n // Translate the circles to put the enclosing circle around the origin.\n for (i = 0; i < n; ++i) a = circles[i], a.x -= c.x, a.y -= c.y;\n\n return c.r;\n}\n\nfunction siblings(circles) {\n packEnclose(circles);\n return circles;\n}\n\nfunction optional(f) {\n return f == null ? null : required(f);\n}\n\nfunction required(f) {\n if (typeof f !== \"function\") throw new Error;\n return f;\n}\n\nfunction constantZero() {\n return 0;\n}\n\nfunction constant(x) {\n return function() {\n return x;\n };\n}\n\nfunction defaultRadius(d) {\n return Math.sqrt(d.value);\n}\n\nfunction index() {\n var radius = null,\n dx = 1,\n dy = 1,\n padding = constantZero;\n\n function pack(root) {\n root.x = dx / 2, root.y = dy / 2;\n if (radius) {\n root.eachBefore(radiusLeaf(radius))\n .eachAfter(packChildren(padding, 0.5))\n .eachBefore(translateChild(1));\n } else {\n root.eachBefore(radiusLeaf(defaultRadius))\n .eachAfter(packChildren(constantZero, 1))\n .eachAfter(packChildren(padding, root.r / Math.min(dx, dy)))\n .eachBefore(translateChild(Math.min(dx, dy) / (2 * root.r)));\n }\n return root;\n }\n\n pack.radius = function(x) {\n return arguments.length ? (radius = optional(x), pack) : radius;\n };\n\n pack.size = function(x) {\n return arguments.length ? (dx = +x[0], dy = +x[1], pack) : [dx, dy];\n };\n\n pack.padding = function(x) {\n return arguments.length ? (padding = typeof x === \"function\" ? x : constant(+x), pack) : padding;\n };\n\n return pack;\n}\n\nfunction radiusLeaf(radius) {\n return function(node) {\n if (!node.children) {\n node.r = Math.max(0, +radius(node) || 0);\n }\n };\n}\n\nfunction packChildren(padding, k) {\n return function(node) {\n if (children = node.children) {\n var children,\n i,\n n = children.length,\n r = padding(node) * k || 0,\n e;\n\n if (r) for (i = 0; i < n; ++i) children[i].r += r;\n e = packEnclose(children);\n if (r) for (i = 0; i < n; ++i) children[i].r -= r;\n node.r = e + r;\n }\n };\n}\n\nfunction translateChild(k) {\n return function(node) {\n var parent = node.parent;\n node.r *= k;\n if (parent) {\n node.x = parent.x + k * node.x;\n node.y = parent.y + k * node.y;\n }\n };\n}\n\nfunction roundNode(node) {\n node.x0 = Math.round(node.x0);\n node.y0 = Math.round(node.y0);\n node.x1 = Math.round(node.x1);\n node.y1 = Math.round(node.y1);\n}\n\nfunction treemapDice(parent, x0, y0, x1, y1) {\n var nodes = parent.children,\n node,\n i = -1,\n n = nodes.length,\n k = parent.value && (x1 - x0) / parent.value;\n\n while (++i < n) {\n node = nodes[i], node.y0 = y0, node.y1 = y1;\n node.x0 = x0, node.x1 = x0 += node.value * k;\n }\n}\n\nfunction partition() {\n var dx = 1,\n dy = 1,\n padding = 0,\n round = false;\n\n function partition(root) {\n var n = root.height + 1;\n root.x0 =\n root.y0 = padding;\n root.x1 = dx;\n root.y1 = dy / n;\n root.eachBefore(positionNode(dy, n));\n if (round) root.eachBefore(roundNode);\n return root;\n }\n\n function positionNode(dy, n) {\n return function(node) {\n if (node.children) {\n treemapDice(node, node.x0, dy * (node.depth + 1) / n, node.x1, dy * (node.depth + 2) / n);\n }\n var x0 = node.x0,\n y0 = node.y0,\n x1 = node.x1 - padding,\n y1 = node.y1 - padding;\n if (x1 < x0) x0 = x1 = (x0 + x1) / 2;\n if (y1 < y0) y0 = y1 = (y0 + y1) / 2;\n node.x0 = x0;\n node.y0 = y0;\n node.x1 = x1;\n node.y1 = y1;\n };\n }\n\n partition.round = function(x) {\n return arguments.length ? (round = !!x, partition) : round;\n };\n\n partition.size = function(x) {\n return arguments.length ? (dx = +x[0], dy = +x[1], partition) : [dx, dy];\n };\n\n partition.padding = function(x) {\n return arguments.length ? (padding = +x, partition) : padding;\n };\n\n return partition;\n}\n\nvar keyPrefix = \"$\", // Protect against keys like “__proto__”.\n preroot = {depth: -1},\n ambiguous = {};\n\nfunction defaultId(d) {\n return d.id;\n}\n\nfunction defaultParentId(d) {\n return d.parentId;\n}\n\nfunction stratify() {\n var id = defaultId,\n parentId = defaultParentId;\n\n function stratify(data) {\n var d,\n i,\n n = data.length,\n root,\n parent,\n node,\n nodes = new Array(n),\n nodeId,\n nodeKey,\n nodeByKey = {};\n\n for (i = 0; i < n; ++i) {\n d = data[i], node = nodes[i] = new Node(d);\n if ((nodeId = id(d, i, data)) != null && (nodeId += \"\")) {\n nodeKey = keyPrefix + (node.id = nodeId);\n nodeByKey[nodeKey] = nodeKey in nodeByKey ? ambiguous : node;\n }\n }\n\n for (i = 0; i < n; ++i) {\n node = nodes[i], nodeId = parentId(data[i], i, data);\n if (nodeId == null || !(nodeId += \"\")) {\n if (root) throw new Error(\"multiple roots\");\n root = node;\n } else {\n parent = nodeByKey[keyPrefix + nodeId];\n if (!parent) throw new Error(\"missing: \" + nodeId);\n if (parent === ambiguous) throw new Error(\"ambiguous: \" + nodeId);\n if (parent.children) parent.children.push(node);\n else parent.children = [node];\n node.parent = parent;\n }\n }\n\n if (!root) throw new Error(\"no root\");\n root.parent = preroot;\n root.eachBefore(function(node) { node.depth = node.parent.depth + 1; --n; }).eachBefore(computeHeight);\n root.parent = null;\n if (n > 0) throw new Error(\"cycle\");\n\n return root;\n }\n\n stratify.id = function(x) {\n return arguments.length ? (id = required(x), stratify) : id;\n };\n\n stratify.parentId = function(x) {\n return arguments.length ? (parentId = required(x), stratify) : parentId;\n };\n\n return stratify;\n}\n\nfunction defaultSeparation$1(a, b) {\n return a.parent === b.parent ? 1 : 2;\n}\n\n// function radialSeparation(a, b) {\n// return (a.parent === b.parent ? 1 : 2) / a.depth;\n// }\n\n// This function is used to traverse the left contour of a subtree (or\n// subforest). It returns the successor of v on this contour. This successor is\n// either given by the leftmost child of v or by the thread of v. The function\n// returns null if and only if v is on the highest level of its subtree.\nfunction nextLeft(v) {\n var children = v.children;\n return children ? children[0] : v.t;\n}\n\n// This function works analogously to nextLeft.\nfunction nextRight(v) {\n var children = v.children;\n return children ? children[children.length - 1] : v.t;\n}\n\n// Shifts the current subtree rooted at w+. This is done by increasing\n// prelim(w+) and mod(w+) by shift.\nfunction moveSubtree(wm, wp, shift) {\n var change = shift / (wp.i - wm.i);\n wp.c -= change;\n wp.s += shift;\n wm.c += change;\n wp.z += shift;\n wp.m += shift;\n}\n\n// All other shifts, applied to the smaller subtrees between w- and w+, are\n// performed by this function. To prepare the shifts, we have to adjust\n// change(w+), shift(w+), and change(w-).\nfunction executeShifts(v) {\n var shift = 0,\n change = 0,\n children = v.children,\n i = children.length,\n w;\n while (--i >= 0) {\n w = children[i];\n w.z += shift;\n w.m += shift;\n shift += w.s + (change += w.c);\n }\n}\n\n// If vi-’s ancestor is a sibling of v, returns vi-’s ancestor. Otherwise,\n// returns the specified (default) ancestor.\nfunction nextAncestor(vim, v, ancestor) {\n return vim.a.parent === v.parent ? vim.a : ancestor;\n}\n\nfunction TreeNode(node, i) {\n this._ = node;\n this.parent = null;\n this.children = null;\n this.A = null; // default ancestor\n this.a = this; // ancestor\n this.z = 0; // prelim\n this.m = 0; // mod\n this.c = 0; // change\n this.s = 0; // shift\n this.t = null; // thread\n this.i = i; // number\n}\n\nTreeNode.prototype = Object.create(Node.prototype);\n\nfunction treeRoot(root) {\n var tree = new TreeNode(root, 0),\n node,\n nodes = [tree],\n child,\n children,\n i,\n n;\n\n while (node = nodes.pop()) {\n if (children = node._.children) {\n node.children = new Array(n = children.length);\n for (i = n - 1; i >= 0; --i) {\n nodes.push(child = node.children[i] = new TreeNode(children[i], i));\n child.parent = node;\n }\n }\n }\n\n (tree.parent = new TreeNode(null, 0)).children = [tree];\n return tree;\n}\n\n// Node-link tree diagram using the Reingold-Tilford \"tidy\" algorithm\nfunction tree() {\n var separation = defaultSeparation$1,\n dx = 1,\n dy = 1,\n nodeSize = null;\n\n function tree(root) {\n var t = treeRoot(root);\n\n // Compute the layout using Buchheim et al.’s algorithm.\n t.eachAfter(firstWalk), t.parent.m = -t.z;\n t.eachBefore(secondWalk);\n\n // If a fixed node size is specified, scale x and y.\n if (nodeSize) root.eachBefore(sizeNode);\n\n // If a fixed tree size is specified, scale x and y based on the extent.\n // Compute the left-most, right-most, and depth-most nodes for extents.\n else {\n var left = root,\n right = root,\n bottom = root;\n root.eachBefore(function(node) {\n if (node.x < left.x) left = node;\n if (node.x > right.x) right = node;\n if (node.depth > bottom.depth) bottom = node;\n });\n var s = left === right ? 1 : separation(left, right) / 2,\n tx = s - left.x,\n kx = dx / (right.x + s + tx),\n ky = dy / (bottom.depth || 1);\n root.eachBefore(function(node) {\n node.x = (node.x + tx) * kx;\n node.y = node.depth * ky;\n });\n }\n\n return root;\n }\n\n // Computes a preliminary x-coordinate for v. Before that, FIRST WALK is\n // applied recursively to the children of v, as well as the function\n // APPORTION. After spacing out the children by calling EXECUTE SHIFTS, the\n // node v is placed to the midpoint of its outermost children.\n function firstWalk(v) {\n var children = v.children,\n siblings = v.parent.children,\n w = v.i ? siblings[v.i - 1] : null;\n if (children) {\n executeShifts(v);\n var midpoint = (children[0].z + children[children.length - 1].z) / 2;\n if (w) {\n v.z = w.z + separation(v._, w._);\n v.m = v.z - midpoint;\n } else {\n v.z = midpoint;\n }\n } else if (w) {\n v.z = w.z + separation(v._, w._);\n }\n v.parent.A = apportion(v, w, v.parent.A || siblings[0]);\n }\n\n // Computes all real x-coordinates by summing up the modifiers recursively.\n function secondWalk(v) {\n v._.x = v.z + v.parent.m;\n v.m += v.parent.m;\n }\n\n // The core of the algorithm. Here, a new subtree is combined with the\n // previous subtrees. Threads are used to traverse the inside and outside\n // contours of the left and right subtree up to the highest common level. The\n // vertices used for the traversals are vi+, vi-, vo-, and vo+, where the\n // superscript o means outside and i means inside, the subscript - means left\n // subtree and + means right subtree. For summing up the modifiers along the\n // contour, we use respective variables si+, si-, so-, and so+. Whenever two\n // nodes of the inside contours conflict, we compute the left one of the\n // greatest uncommon ancestors using the function ANCESTOR and call MOVE\n // SUBTREE to shift the subtree and prepare the shifts of smaller subtrees.\n // Finally, we add a new thread (if necessary).\n function apportion(v, w, ancestor) {\n if (w) {\n var vip = v,\n vop = v,\n vim = w,\n vom = vip.parent.children[0],\n sip = vip.m,\n sop = vop.m,\n sim = vim.m,\n som = vom.m,\n shift;\n while (vim = nextRight(vim), vip = nextLeft(vip), vim && vip) {\n vom = nextLeft(vom);\n vop = nextRight(vop);\n vop.a = v;\n shift = vim.z + sim - vip.z - sip + separation(vim._, vip._);\n if (shift > 0) {\n moveSubtree(nextAncestor(vim, v, ancestor), v, shift);\n sip += shift;\n sop += shift;\n }\n sim += vim.m;\n sip += vip.m;\n som += vom.m;\n sop += vop.m;\n }\n if (vim && !nextRight(vop)) {\n vop.t = vim;\n vop.m += sim - sop;\n }\n if (vip && !nextLeft(vom)) {\n vom.t = vip;\n vom.m += sip - som;\n ancestor = v;\n }\n }\n return ancestor;\n }\n\n function sizeNode(node) {\n node.x *= dx;\n node.y = node.depth * dy;\n }\n\n tree.separation = function(x) {\n return arguments.length ? (separation = x, tree) : separation;\n };\n\n tree.size = function(x) {\n return arguments.length ? (nodeSize = false, dx = +x[0], dy = +x[1], tree) : (nodeSize ? null : [dx, dy]);\n };\n\n tree.nodeSize = function(x) {\n return arguments.length ? (nodeSize = true, dx = +x[0], dy = +x[1], tree) : (nodeSize ? [dx, dy] : null);\n };\n\n return tree;\n}\n\nfunction treemapSlice(parent, x0, y0, x1, y1) {\n var nodes = parent.children,\n node,\n i = -1,\n n = nodes.length,\n k = parent.value && (y1 - y0) / parent.value;\n\n while (++i < n) {\n node = nodes[i], node.x0 = x0, node.x1 = x1;\n node.y0 = y0, node.y1 = y0 += node.value * k;\n }\n}\n\nvar phi = (1 + Math.sqrt(5)) / 2;\n\nfunction squarifyRatio(ratio, parent, x0, y0, x1, y1) {\n var rows = [],\n nodes = parent.children,\n row,\n nodeValue,\n i0 = 0,\n i1 = 0,\n n = nodes.length,\n dx, dy,\n value = parent.value,\n sumValue,\n minValue,\n maxValue,\n newRatio,\n minRatio,\n alpha,\n beta;\n\n while (i0 < n) {\n dx = x1 - x0, dy = y1 - y0;\n\n // Find the next non-empty node.\n do sumValue = nodes[i1++].value; while (!sumValue && i1 < n);\n minValue = maxValue = sumValue;\n alpha = Math.max(dy / dx, dx / dy) / (value * ratio);\n beta = sumValue * sumValue * alpha;\n minRatio = Math.max(maxValue / beta, beta / minValue);\n\n // Keep adding nodes while the aspect ratio maintains or improves.\n for (; i1 < n; ++i1) {\n sumValue += nodeValue = nodes[i1].value;\n if (nodeValue < minValue) minValue = nodeValue;\n if (nodeValue > maxValue) maxValue = nodeValue;\n beta = sumValue * sumValue * alpha;\n newRatio = Math.max(maxValue / beta, beta / minValue);\n if (newRatio > minRatio) { sumValue -= nodeValue; break; }\n minRatio = newRatio;\n }\n\n // Position and record the row orientation.\n rows.push(row = {value: sumValue, dice: dx < dy, children: nodes.slice(i0, i1)});\n if (row.dice) treemapDice(row, x0, y0, x1, value ? y0 += dy * sumValue / value : y1);\n else treemapSlice(row, x0, y0, value ? x0 += dx * sumValue / value : x1, y1);\n value -= sumValue, i0 = i1;\n }\n\n return rows;\n}\n\nvar squarify = (function custom(ratio) {\n\n function squarify(parent, x0, y0, x1, y1) {\n squarifyRatio(ratio, parent, x0, y0, x1, y1);\n }\n\n squarify.ratio = function(x) {\n return custom((x = +x) > 1 ? x : 1);\n };\n\n return squarify;\n})(phi);\n\nfunction index$1() {\n var tile = squarify,\n round = false,\n dx = 1,\n dy = 1,\n paddingStack = [0],\n paddingInner = constantZero,\n paddingTop = constantZero,\n paddingRight = constantZero,\n paddingBottom = constantZero,\n paddingLeft = constantZero;\n\n function treemap(root) {\n root.x0 =\n root.y0 = 0;\n root.x1 = dx;\n root.y1 = dy;\n root.eachBefore(positionNode);\n paddingStack = [0];\n if (round) root.eachBefore(roundNode);\n return root;\n }\n\n function positionNode(node) {\n var p = paddingStack[node.depth],\n x0 = node.x0 + p,\n y0 = node.y0 + p,\n x1 = node.x1 - p,\n y1 = node.y1 - p;\n if (x1 < x0) x0 = x1 = (x0 + x1) / 2;\n if (y1 < y0) y0 = y1 = (y0 + y1) / 2;\n node.x0 = x0;\n node.y0 = y0;\n node.x1 = x1;\n node.y1 = y1;\n if (node.children) {\n p = paddingStack[node.depth + 1] = paddingInner(node) / 2;\n x0 += paddingLeft(node) - p;\n y0 += paddingTop(node) - p;\n x1 -= paddingRight(node) - p;\n y1 -= paddingBottom(node) - p;\n if (x1 < x0) x0 = x1 = (x0 + x1) / 2;\n if (y1 < y0) y0 = y1 = (y0 + y1) / 2;\n tile(node, x0, y0, x1, y1);\n }\n }\n\n treemap.round = function(x) {\n return arguments.length ? (round = !!x, treemap) : round;\n };\n\n treemap.size = function(x) {\n return arguments.length ? (dx = +x[0], dy = +x[1], treemap) : [dx, dy];\n };\n\n treemap.tile = function(x) {\n return arguments.length ? (tile = required(x), treemap) : tile;\n };\n\n treemap.padding = function(x) {\n return arguments.length ? treemap.paddingInner(x).paddingOuter(x) : treemap.paddingInner();\n };\n\n treemap.paddingInner = function(x) {\n return arguments.length ? (paddingInner = typeof x === \"function\" ? x : constant(+x), treemap) : paddingInner;\n };\n\n treemap.paddingOuter = function(x) {\n return arguments.length ? treemap.paddingTop(x).paddingRight(x).paddingBottom(x).paddingLeft(x) : treemap.paddingTop();\n };\n\n treemap.paddingTop = function(x) {\n return arguments.length ? (paddingTop = typeof x === \"function\" ? x : constant(+x), treemap) : paddingTop;\n };\n\n treemap.paddingRight = function(x) {\n return arguments.length ? (paddingRight = typeof x === \"function\" ? x : constant(+x), treemap) : paddingRight;\n };\n\n treemap.paddingBottom = function(x) {\n return arguments.length ? (paddingBottom = typeof x === \"function\" ? x : constant(+x), treemap) : paddingBottom;\n };\n\n treemap.paddingLeft = function(x) {\n return arguments.length ? (paddingLeft = typeof x === \"function\" ? x : constant(+x), treemap) : paddingLeft;\n };\n\n return treemap;\n}\n\nfunction binary(parent, x0, y0, x1, y1) {\n var nodes = parent.children,\n i, n = nodes.length,\n sum, sums = new Array(n + 1);\n\n for (sums[0] = sum = i = 0; i < n; ++i) {\n sums[i + 1] = sum += nodes[i].value;\n }\n\n partition(0, n, parent.value, x0, y0, x1, y1);\n\n function partition(i, j, value, x0, y0, x1, y1) {\n if (i >= j - 1) {\n var node = nodes[i];\n node.x0 = x0, node.y0 = y0;\n node.x1 = x1, node.y1 = y1;\n return;\n }\n\n var valueOffset = sums[i],\n valueTarget = (value / 2) + valueOffset,\n k = i + 1,\n hi = j - 1;\n\n while (k < hi) {\n var mid = k + hi >>> 1;\n if (sums[mid] < valueTarget) k = mid + 1;\n else hi = mid;\n }\n\n if ((valueTarget - sums[k - 1]) < (sums[k] - valueTarget) && i + 1 < k) --k;\n\n var valueLeft = sums[k] - valueOffset,\n valueRight = value - valueLeft;\n\n if ((x1 - x0) > (y1 - y0)) {\n var xk = (x0 * valueRight + x1 * valueLeft) / value;\n partition(i, k, valueLeft, x0, y0, xk, y1);\n partition(k, j, valueRight, xk, y0, x1, y1);\n } else {\n var yk = (y0 * valueRight + y1 * valueLeft) / value;\n partition(i, k, valueLeft, x0, y0, x1, yk);\n partition(k, j, valueRight, x0, yk, x1, y1);\n }\n }\n}\n\nfunction sliceDice(parent, x0, y0, x1, y1) {\n (parent.depth & 1 ? treemapSlice : treemapDice)(parent, x0, y0, x1, y1);\n}\n\nvar resquarify = (function custom(ratio) {\n\n function resquarify(parent, x0, y0, x1, y1) {\n if ((rows = parent._squarify) && (rows.ratio === ratio)) {\n var rows,\n row,\n nodes,\n i,\n j = -1,\n n,\n m = rows.length,\n value = parent.value;\n\n while (++j < m) {\n row = rows[j], nodes = row.children;\n for (i = row.value = 0, n = nodes.length; i < n; ++i) row.value += nodes[i].value;\n if (row.dice) treemapDice(row, x0, y0, x1, y0 += (y1 - y0) * row.value / value);\n else treemapSlice(row, x0, y0, x0 += (x1 - x0) * row.value / value, y1);\n value -= row.value;\n }\n } else {\n parent._squarify = rows = squarifyRatio(ratio, parent, x0, y0, x1, y1);\n rows.ratio = ratio;\n }\n }\n\n resquarify.ratio = function(x) {\n return custom((x = +x) > 1 ? x : 1);\n };\n\n return resquarify;\n})(phi);\n\nexports.cluster = cluster;\nexports.hierarchy = hierarchy;\nexports.pack = index;\nexports.packEnclose = enclose;\nexports.packSiblings = siblings;\nexports.partition = partition;\nexports.stratify = stratify;\nexports.tree = tree;\nexports.treemap = index$1;\nexports.treemapBinary = binary;\nexports.treemapDice = treemapDice;\nexports.treemapResquarify = resquarify;\nexports.treemapSlice = treemapSlice;\nexports.treemapSliceDice = sliceDice;\nexports.treemapSquarify = squarify;\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n}));\n\n},{}],116:[function(_dereq_,module,exports){\n// https://d3js.org/d3-interpolate/ v1.4.0 Copyright 2019 Mike Bostock\n(function (global, factory) {\ntypeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, _dereq_('d3-color')) :\ntypeof define === 'function' && define.amd ? define(['exports', 'd3-color'], factory) :\n(global = global || self, factory(global.d3 = global.d3 || {}, global.d3));\n}(this, function (exports, d3Color) { 'use strict';\n\nfunction basis(t1, v0, v1, v2, v3) {\n var t2 = t1 * t1, t3 = t2 * t1;\n return ((1 - 3 * t1 + 3 * t2 - t3) * v0\n + (4 - 6 * t2 + 3 * t3) * v1\n + (1 + 3 * t1 + 3 * t2 - 3 * t3) * v2\n + t3 * v3) / 6;\n}\n\nfunction basis$1(values) {\n var n = values.length - 1;\n return function(t) {\n var i = t <= 0 ? (t = 0) : t >= 1 ? (t = 1, n - 1) : Math.floor(t * n),\n v1 = values[i],\n v2 = values[i + 1],\n v0 = i > 0 ? values[i - 1] : 2 * v1 - v2,\n v3 = i < n - 1 ? values[i + 2] : 2 * v2 - v1;\n return basis((t - i / n) * n, v0, v1, v2, v3);\n };\n}\n\nfunction basisClosed(values) {\n var n = values.length;\n return function(t) {\n var i = Math.floor(((t %= 1) < 0 ? ++t : t) * n),\n v0 = values[(i + n - 1) % n],\n v1 = values[i % n],\n v2 = values[(i + 1) % n],\n v3 = values[(i + 2) % n];\n return basis((t - i / n) * n, v0, v1, v2, v3);\n };\n}\n\nfunction constant(x) {\n return function() {\n return x;\n };\n}\n\nfunction linear(a, d) {\n return function(t) {\n return a + t * d;\n };\n}\n\nfunction exponential(a, b, y) {\n return a = Math.pow(a, y), b = Math.pow(b, y) - a, y = 1 / y, function(t) {\n return Math.pow(a + t * b, y);\n };\n}\n\nfunction hue(a, b) {\n var d = b - a;\n return d ? linear(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : constant(isNaN(a) ? b : a);\n}\n\nfunction gamma(y) {\n return (y = +y) === 1 ? nogamma : function(a, b) {\n return b - a ? exponential(a, b, y) : constant(isNaN(a) ? b : a);\n };\n}\n\nfunction nogamma(a, b) {\n var d = b - a;\n return d ? linear(a, d) : constant(isNaN(a) ? b : a);\n}\n\nvar rgb = (function rgbGamma(y) {\n var color = gamma(y);\n\n function rgb(start, end) {\n var r = color((start = d3Color.rgb(start)).r, (end = d3Color.rgb(end)).r),\n g = color(start.g, end.g),\n b = color(start.b, end.b),\n opacity = nogamma(start.opacity, end.opacity);\n return function(t) {\n start.r = r(t);\n start.g = g(t);\n start.b = b(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n\n rgb.gamma = rgbGamma;\n\n return rgb;\n})(1);\n\nfunction rgbSpline(spline) {\n return function(colors) {\n var n = colors.length,\n r = new Array(n),\n g = new Array(n),\n b = new Array(n),\n i, color;\n for (i = 0; i < n; ++i) {\n color = d3Color.rgb(colors[i]);\n r[i] = color.r || 0;\n g[i] = color.g || 0;\n b[i] = color.b || 0;\n }\n r = spline(r);\n g = spline(g);\n b = spline(b);\n color.opacity = 1;\n return function(t) {\n color.r = r(t);\n color.g = g(t);\n color.b = b(t);\n return color + \"\";\n };\n };\n}\n\nvar rgbBasis = rgbSpline(basis$1);\nvar rgbBasisClosed = rgbSpline(basisClosed);\n\nfunction numberArray(a, b) {\n if (!b) b = [];\n var n = a ? Math.min(b.length, a.length) : 0,\n c = b.slice(),\n i;\n return function(t) {\n for (i = 0; i < n; ++i) c[i] = a[i] * (1 - t) + b[i] * t;\n return c;\n };\n}\n\nfunction isNumberArray(x) {\n return ArrayBuffer.isView(x) && !(x instanceof DataView);\n}\n\nfunction array(a, b) {\n return (isNumberArray(b) ? numberArray : genericArray)(a, b);\n}\n\nfunction genericArray(a, b) {\n var nb = b ? b.length : 0,\n na = a ? Math.min(nb, a.length) : 0,\n x = new Array(na),\n c = new Array(nb),\n i;\n\n for (i = 0; i < na; ++i) x[i] = value(a[i], b[i]);\n for (; i < nb; ++i) c[i] = b[i];\n\n return function(t) {\n for (i = 0; i < na; ++i) c[i] = x[i](t);\n return c;\n };\n}\n\nfunction date(a, b) {\n var d = new Date;\n return a = +a, b = +b, function(t) {\n return d.setTime(a * (1 - t) + b * t), d;\n };\n}\n\nfunction number(a, b) {\n return a = +a, b = +b, function(t) {\n return a * (1 - t) + b * t;\n };\n}\n\nfunction object(a, b) {\n var i = {},\n c = {},\n k;\n\n if (a === null || typeof a !== \"object\") a = {};\n if (b === null || typeof b !== \"object\") b = {};\n\n for (k in b) {\n if (k in a) {\n i[k] = value(a[k], b[k]);\n } else {\n c[k] = b[k];\n }\n }\n\n return function(t) {\n for (k in i) c[k] = i[k](t);\n return c;\n };\n}\n\nvar reA = /[-+]?(?:\\d+\\.?\\d*|\\.?\\d+)(?:[eE][-+]?\\d+)?/g,\n reB = new RegExp(reA.source, \"g\");\n\nfunction zero(b) {\n return function() {\n return b;\n };\n}\n\nfunction one(b) {\n return function(t) {\n return b(t) + \"\";\n };\n}\n\nfunction string(a, b) {\n var bi = reA.lastIndex = reB.lastIndex = 0, // scan index for next number in b\n am, // current match in a\n bm, // current match in b\n bs, // string preceding current number in b, if any\n i = -1, // index in s\n s = [], // string constants and placeholders\n q = []; // number interpolators\n\n // Coerce inputs to strings.\n a = a + \"\", b = b + \"\";\n\n // Interpolate pairs of numbers in a & b.\n while ((am = reA.exec(a))\n && (bm = reB.exec(b))) {\n if ((bs = bm.index) > bi) { // a string precedes the next number in b\n bs = b.slice(bi, bs);\n if (s[i]) s[i] += bs; // coalesce with previous string\n else s[++i] = bs;\n }\n if ((am = am[0]) === (bm = bm[0])) { // numbers in a & b match\n if (s[i]) s[i] += bm; // coalesce with previous string\n else s[++i] = bm;\n } else { // interpolate non-matching numbers\n s[++i] = null;\n q.push({i: i, x: number(am, bm)});\n }\n bi = reB.lastIndex;\n }\n\n // Add remains of b.\n if (bi < b.length) {\n bs = b.slice(bi);\n if (s[i]) s[i] += bs; // coalesce with previous string\n else s[++i] = bs;\n }\n\n // Special optimization for only a single match.\n // Otherwise, interpolate each of the numbers and rejoin the string.\n return s.length < 2 ? (q[0]\n ? one(q[0].x)\n : zero(b))\n : (b = q.length, function(t) {\n for (var i = 0, o; i < b; ++i) s[(o = q[i]).i] = o.x(t);\n return s.join(\"\");\n });\n}\n\nfunction value(a, b) {\n var t = typeof b, c;\n return b == null || t === \"boolean\" ? constant(b)\n : (t === \"number\" ? number\n : t === \"string\" ? ((c = d3Color.color(b)) ? (b = c, rgb) : string)\n : b instanceof d3Color.color ? rgb\n : b instanceof Date ? date\n : isNumberArray(b) ? numberArray\n : Array.isArray(b) ? genericArray\n : typeof b.valueOf !== \"function\" && typeof b.toString !== \"function\" || isNaN(b) ? object\n : number)(a, b);\n}\n\nfunction discrete(range) {\n var n = range.length;\n return function(t) {\n return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))];\n };\n}\n\nfunction hue$1(a, b) {\n var i = hue(+a, +b);\n return function(t) {\n var x = i(t);\n return x - 360 * Math.floor(x / 360);\n };\n}\n\nfunction round(a, b) {\n return a = +a, b = +b, function(t) {\n return Math.round(a * (1 - t) + b * t);\n };\n}\n\nvar degrees = 180 / Math.PI;\n\nvar identity = {\n translateX: 0,\n translateY: 0,\n rotate: 0,\n skewX: 0,\n scaleX: 1,\n scaleY: 1\n};\n\nfunction decompose(a, b, c, d, e, f) {\n var scaleX, scaleY, skewX;\n if (scaleX = Math.sqrt(a * a + b * b)) a /= scaleX, b /= scaleX;\n if (skewX = a * c + b * d) c -= a * skewX, d -= b * skewX;\n if (scaleY = Math.sqrt(c * c + d * d)) c /= scaleY, d /= scaleY, skewX /= scaleY;\n if (a * d < b * c) a = -a, b = -b, skewX = -skewX, scaleX = -scaleX;\n return {\n translateX: e,\n translateY: f,\n rotate: Math.atan2(b, a) * degrees,\n skewX: Math.atan(skewX) * degrees,\n scaleX: scaleX,\n scaleY: scaleY\n };\n}\n\nvar cssNode,\n cssRoot,\n cssView,\n svgNode;\n\nfunction parseCss(value) {\n if (value === \"none\") return identity;\n if (!cssNode) cssNode = document.createElement(\"DIV\"), cssRoot = document.documentElement, cssView = document.defaultView;\n cssNode.style.transform = value;\n value = cssView.getComputedStyle(cssRoot.appendChild(cssNode), null).getPropertyValue(\"transform\");\n cssRoot.removeChild(cssNode);\n value = value.slice(7, -1).split(\",\");\n return decompose(+value[0], +value[1], +value[2], +value[3], +value[4], +value[5]);\n}\n\nfunction parseSvg(value) {\n if (value == null) return identity;\n if (!svgNode) svgNode = document.createElementNS(\"http://www.w3.org/2000/svg\", \"g\");\n svgNode.setAttribute(\"transform\", value);\n if (!(value = svgNode.transform.baseVal.consolidate())) return identity;\n value = value.matrix;\n return decompose(value.a, value.b, value.c, value.d, value.e, value.f);\n}\n\nfunction interpolateTransform(parse, pxComma, pxParen, degParen) {\n\n function pop(s) {\n return s.length ? s.pop() + \" \" : \"\";\n }\n\n function translate(xa, ya, xb, yb, s, q) {\n if (xa !== xb || ya !== yb) {\n var i = s.push(\"translate(\", null, pxComma, null, pxParen);\n q.push({i: i - 4, x: number(xa, xb)}, {i: i - 2, x: number(ya, yb)});\n } else if (xb || yb) {\n s.push(\"translate(\" + xb + pxComma + yb + pxParen);\n }\n }\n\n function rotate(a, b, s, q) {\n if (a !== b) {\n if (a - b > 180) b += 360; else if (b - a > 180) a += 360; // shortest path\n q.push({i: s.push(pop(s) + \"rotate(\", null, degParen) - 2, x: number(a, b)});\n } else if (b) {\n s.push(pop(s) + \"rotate(\" + b + degParen);\n }\n }\n\n function skewX(a, b, s, q) {\n if (a !== b) {\n q.push({i: s.push(pop(s) + \"skewX(\", null, degParen) - 2, x: number(a, b)});\n } else if (b) {\n s.push(pop(s) + \"skewX(\" + b + degParen);\n }\n }\n\n function scale(xa, ya, xb, yb, s, q) {\n if (xa !== xb || ya !== yb) {\n var i = s.push(pop(s) + \"scale(\", null, \",\", null, \")\");\n q.push({i: i - 4, x: number(xa, xb)}, {i: i - 2, x: number(ya, yb)});\n } else if (xb !== 1 || yb !== 1) {\n s.push(pop(s) + \"scale(\" + xb + \",\" + yb + \")\");\n }\n }\n\n return function(a, b) {\n var s = [], // string constants and placeholders\n q = []; // number interpolators\n a = parse(a), b = parse(b);\n translate(a.translateX, a.translateY, b.translateX, b.translateY, s, q);\n rotate(a.rotate, b.rotate, s, q);\n skewX(a.skewX, b.skewX, s, q);\n scale(a.scaleX, a.scaleY, b.scaleX, b.scaleY, s, q);\n a = b = null; // gc\n return function(t) {\n var i = -1, n = q.length, o;\n while (++i < n) s[(o = q[i]).i] = o.x(t);\n return s.join(\"\");\n };\n };\n}\n\nvar interpolateTransformCss = interpolateTransform(parseCss, \"px, \", \"px)\", \"deg)\");\nvar interpolateTransformSvg = interpolateTransform(parseSvg, \", \", \")\", \")\");\n\nvar rho = Math.SQRT2,\n rho2 = 2,\n rho4 = 4,\n epsilon2 = 1e-12;\n\nfunction cosh(x) {\n return ((x = Math.exp(x)) + 1 / x) / 2;\n}\n\nfunction sinh(x) {\n return ((x = Math.exp(x)) - 1 / x) / 2;\n}\n\nfunction tanh(x) {\n return ((x = Math.exp(2 * x)) - 1) / (x + 1);\n}\n\n// p0 = [ux0, uy0, w0]\n// p1 = [ux1, uy1, w1]\nfunction zoom(p0, p1) {\n var ux0 = p0[0], uy0 = p0[1], w0 = p0[2],\n ux1 = p1[0], uy1 = p1[1], w1 = p1[2],\n dx = ux1 - ux0,\n dy = uy1 - uy0,\n d2 = dx * dx + dy * dy,\n i,\n S;\n\n // Special case for u0 ≅ u1.\n if (d2 < epsilon2) {\n S = Math.log(w1 / w0) / rho;\n i = function(t) {\n return [\n ux0 + t * dx,\n uy0 + t * dy,\n w0 * Math.exp(rho * t * S)\n ];\n };\n }\n\n // General case.\n else {\n var d1 = Math.sqrt(d2),\n b0 = (w1 * w1 - w0 * w0 + rho4 * d2) / (2 * w0 * rho2 * d1),\n b1 = (w1 * w1 - w0 * w0 - rho4 * d2) / (2 * w1 * rho2 * d1),\n r0 = Math.log(Math.sqrt(b0 * b0 + 1) - b0),\n r1 = Math.log(Math.sqrt(b1 * b1 + 1) - b1);\n S = (r1 - r0) / rho;\n i = function(t) {\n var s = t * S,\n coshr0 = cosh(r0),\n u = w0 / (rho2 * d1) * (coshr0 * tanh(rho * s + r0) - sinh(r0));\n return [\n ux0 + u * dx,\n uy0 + u * dy,\n w0 * coshr0 / cosh(rho * s + r0)\n ];\n };\n }\n\n i.duration = S * 1000;\n\n return i;\n}\n\nfunction hsl(hue) {\n return function(start, end) {\n var h = hue((start = d3Color.hsl(start)).h, (end = d3Color.hsl(end)).h),\n s = nogamma(start.s, end.s),\n l = nogamma(start.l, end.l),\n opacity = nogamma(start.opacity, end.opacity);\n return function(t) {\n start.h = h(t);\n start.s = s(t);\n start.l = l(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n}\n\nvar hsl$1 = hsl(hue);\nvar hslLong = hsl(nogamma);\n\nfunction lab(start, end) {\n var l = nogamma((start = d3Color.lab(start)).l, (end = d3Color.lab(end)).l),\n a = nogamma(start.a, end.a),\n b = nogamma(start.b, end.b),\n opacity = nogamma(start.opacity, end.opacity);\n return function(t) {\n start.l = l(t);\n start.a = a(t);\n start.b = b(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n}\n\nfunction hcl(hue) {\n return function(start, end) {\n var h = hue((start = d3Color.hcl(start)).h, (end = d3Color.hcl(end)).h),\n c = nogamma(start.c, end.c),\n l = nogamma(start.l, end.l),\n opacity = nogamma(start.opacity, end.opacity);\n return function(t) {\n start.h = h(t);\n start.c = c(t);\n start.l = l(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n}\n\nvar hcl$1 = hcl(hue);\nvar hclLong = hcl(nogamma);\n\nfunction cubehelix(hue) {\n return (function cubehelixGamma(y) {\n y = +y;\n\n function cubehelix(start, end) {\n var h = hue((start = d3Color.cubehelix(start)).h, (end = d3Color.cubehelix(end)).h),\n s = nogamma(start.s, end.s),\n l = nogamma(start.l, end.l),\n opacity = nogamma(start.opacity, end.opacity);\n return function(t) {\n start.h = h(t);\n start.s = s(t);\n start.l = l(Math.pow(t, y));\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n\n cubehelix.gamma = cubehelixGamma;\n\n return cubehelix;\n })(1);\n}\n\nvar cubehelix$1 = cubehelix(hue);\nvar cubehelixLong = cubehelix(nogamma);\n\nfunction piecewise(interpolate, values) {\n var i = 0, n = values.length - 1, v = values[0], I = new Array(n < 0 ? 0 : n);\n while (i < n) I[i] = interpolate(v, v = values[++i]);\n return function(t) {\n var i = Math.max(0, Math.min(n - 1, Math.floor(t *= n)));\n return I[i](t - i);\n };\n}\n\nfunction quantize(interpolator, n) {\n var samples = new Array(n);\n for (var i = 0; i < n; ++i) samples[i] = interpolator(i / (n - 1));\n return samples;\n}\n\nexports.interpolate = value;\nexports.interpolateArray = array;\nexports.interpolateBasis = basis$1;\nexports.interpolateBasisClosed = basisClosed;\nexports.interpolateCubehelix = cubehelix$1;\nexports.interpolateCubehelixLong = cubehelixLong;\nexports.interpolateDate = date;\nexports.interpolateDiscrete = discrete;\nexports.interpolateHcl = hcl$1;\nexports.interpolateHclLong = hclLong;\nexports.interpolateHsl = hsl$1;\nexports.interpolateHslLong = hslLong;\nexports.interpolateHue = hue$1;\nexports.interpolateLab = lab;\nexports.interpolateNumber = number;\nexports.interpolateNumberArray = numberArray;\nexports.interpolateObject = object;\nexports.interpolateRgb = rgb;\nexports.interpolateRgbBasis = rgbBasis;\nexports.interpolateRgbBasisClosed = rgbBasisClosed;\nexports.interpolateRound = round;\nexports.interpolateString = string;\nexports.interpolateTransformCss = interpolateTransformCss;\nexports.interpolateTransformSvg = interpolateTransformSvg;\nexports.interpolateZoom = zoom;\nexports.piecewise = piecewise;\nexports.quantize = quantize;\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n}));\n\n},{\"d3-color\":109}],117:[function(_dereq_,module,exports){\n// https://d3js.org/d3-path/ v1.0.9 Copyright 2019 Mike Bostock\n(function (global, factory) {\ntypeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :\ntypeof define === 'function' && define.amd ? define(['exports'], factory) :\n(global = global || self, factory(global.d3 = global.d3 || {}));\n}(this, function (exports) { 'use strict';\n\nvar pi = Math.PI,\n tau = 2 * pi,\n epsilon = 1e-6,\n tauEpsilon = tau - epsilon;\n\nfunction Path() {\n this._x0 = this._y0 = // start of current subpath\n this._x1 = this._y1 = null; // end of current subpath\n this._ = \"\";\n}\n\nfunction path() {\n return new Path;\n}\n\nPath.prototype = path.prototype = {\n constructor: Path,\n moveTo: function(x, y) {\n this._ += \"M\" + (this._x0 = this._x1 = +x) + \",\" + (this._y0 = this._y1 = +y);\n },\n closePath: function() {\n if (this._x1 !== null) {\n this._x1 = this._x0, this._y1 = this._y0;\n this._ += \"Z\";\n }\n },\n lineTo: function(x, y) {\n this._ += \"L\" + (this._x1 = +x) + \",\" + (this._y1 = +y);\n },\n quadraticCurveTo: function(x1, y1, x, y) {\n this._ += \"Q\" + (+x1) + \",\" + (+y1) + \",\" + (this._x1 = +x) + \",\" + (this._y1 = +y);\n },\n bezierCurveTo: function(x1, y1, x2, y2, x, y) {\n this._ += \"C\" + (+x1) + \",\" + (+y1) + \",\" + (+x2) + \",\" + (+y2) + \",\" + (this._x1 = +x) + \",\" + (this._y1 = +y);\n },\n arcTo: function(x1, y1, x2, y2, r) {\n x1 = +x1, y1 = +y1, x2 = +x2, y2 = +y2, r = +r;\n var x0 = this._x1,\n y0 = this._y1,\n x21 = x2 - x1,\n y21 = y2 - y1,\n x01 = x0 - x1,\n y01 = y0 - y1,\n l01_2 = x01 * x01 + y01 * y01;\n\n // Is the radius negative? Error.\n if (r < 0) throw new Error(\"negative radius: \" + r);\n\n // Is this path empty? Move to (x1,y1).\n if (this._x1 === null) {\n this._ += \"M\" + (this._x1 = x1) + \",\" + (this._y1 = y1);\n }\n\n // Or, is (x1,y1) coincident with (x0,y0)? Do nothing.\n else if (!(l01_2 > epsilon));\n\n // Or, are (x0,y0), (x1,y1) and (x2,y2) collinear?\n // Equivalently, is (x1,y1) coincident with (x2,y2)?\n // Or, is the radius zero? Line to (x1,y1).\n else if (!(Math.abs(y01 * x21 - y21 * x01) > epsilon) || !r) {\n this._ += \"L\" + (this._x1 = x1) + \",\" + (this._y1 = y1);\n }\n\n // Otherwise, draw an arc!\n else {\n var x20 = x2 - x0,\n y20 = y2 - y0,\n l21_2 = x21 * x21 + y21 * y21,\n l20_2 = x20 * x20 + y20 * y20,\n l21 = Math.sqrt(l21_2),\n l01 = Math.sqrt(l01_2),\n l = r * Math.tan((pi - Math.acos((l21_2 + l01_2 - l20_2) / (2 * l21 * l01))) / 2),\n t01 = l / l01,\n t21 = l / l21;\n\n // If the start tangent is not coincident with (x0,y0), line to.\n if (Math.abs(t01 - 1) > epsilon) {\n this._ += \"L\" + (x1 + t01 * x01) + \",\" + (y1 + t01 * y01);\n }\n\n this._ += \"A\" + r + \",\" + r + \",0,0,\" + (+(y01 * x20 > x01 * y20)) + \",\" + (this._x1 = x1 + t21 * x21) + \",\" + (this._y1 = y1 + t21 * y21);\n }\n },\n arc: function(x, y, r, a0, a1, ccw) {\n x = +x, y = +y, r = +r, ccw = !!ccw;\n var dx = r * Math.cos(a0),\n dy = r * Math.sin(a0),\n x0 = x + dx,\n y0 = y + dy,\n cw = 1 ^ ccw,\n da = ccw ? a0 - a1 : a1 - a0;\n\n // Is the radius negative? Error.\n if (r < 0) throw new Error(\"negative radius: \" + r);\n\n // Is this path empty? Move to (x0,y0).\n if (this._x1 === null) {\n this._ += \"M\" + x0 + \",\" + y0;\n }\n\n // Or, is (x0,y0) not coincident with the previous point? Line to (x0,y0).\n else if (Math.abs(this._x1 - x0) > epsilon || Math.abs(this._y1 - y0) > epsilon) {\n this._ += \"L\" + x0 + \",\" + y0;\n }\n\n // Is this arc empty? We’re done.\n if (!r) return;\n\n // Does the angle go the wrong way? Flip the direction.\n if (da < 0) da = da % tau + tau;\n\n // Is this a complete circle? Draw two arcs to complete the circle.\n if (da > tauEpsilon) {\n this._ += \"A\" + r + \",\" + r + \",0,1,\" + cw + \",\" + (x - dx) + \",\" + (y - dy) + \"A\" + r + \",\" + r + \",0,1,\" + cw + \",\" + (this._x1 = x0) + \",\" + (this._y1 = y0);\n }\n\n // Is this arc non-empty? Draw an arc!\n else if (da > epsilon) {\n this._ += \"A\" + r + \",\" + r + \",0,\" + (+(da >= pi)) + \",\" + cw + \",\" + (this._x1 = x + r * Math.cos(a1)) + \",\" + (this._y1 = y + r * Math.sin(a1));\n }\n },\n rect: function(x, y, w, h) {\n this._ += \"M\" + (this._x0 = this._x1 = +x) + \",\" + (this._y0 = this._y1 = +y) + \"h\" + (+w) + \"v\" + (+h) + \"h\" + (-w) + \"Z\";\n },\n toString: function() {\n return this._;\n }\n};\n\nexports.path = path;\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n}));\n\n},{}],118:[function(_dereq_,module,exports){\n// https://d3js.org/d3-quadtree/ v1.0.7 Copyright 2019 Mike Bostock\n(function (global, factory) {\ntypeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :\ntypeof define === 'function' && define.amd ? define(['exports'], factory) :\n(global = global || self, factory(global.d3 = global.d3 || {}));\n}(this, function (exports) { 'use strict';\n\nfunction tree_add(d) {\n var x = +this._x.call(null, d),\n y = +this._y.call(null, d);\n return add(this.cover(x, y), x, y, d);\n}\n\nfunction add(tree, x, y, d) {\n if (isNaN(x) || isNaN(y)) return tree; // ignore invalid points\n\n var parent,\n node = tree._root,\n leaf = {data: d},\n x0 = tree._x0,\n y0 = tree._y0,\n x1 = tree._x1,\n y1 = tree._y1,\n xm,\n ym,\n xp,\n yp,\n right,\n bottom,\n i,\n j;\n\n // If the tree is empty, initialize the root as a leaf.\n if (!node) return tree._root = leaf, tree;\n\n // Find the existing leaf for the new point, or add it.\n while (node.length) {\n if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm;\n if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym;\n if (parent = node, !(node = node[i = bottom << 1 | right])) return parent[i] = leaf, tree;\n }\n\n // Is the new point is exactly coincident with the existing point?\n xp = +tree._x.call(null, node.data);\n yp = +tree._y.call(null, node.data);\n if (x === xp && y === yp) return leaf.next = node, parent ? parent[i] = leaf : tree._root = leaf, tree;\n\n // Otherwise, split the leaf node until the old and new point are separated.\n do {\n parent = parent ? parent[i] = new Array(4) : tree._root = new Array(4);\n if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm;\n if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym;\n } while ((i = bottom << 1 | right) === (j = (yp >= ym) << 1 | (xp >= xm)));\n return parent[j] = node, parent[i] = leaf, tree;\n}\n\nfunction addAll(data) {\n var d, i, n = data.length,\n x,\n y,\n xz = new Array(n),\n yz = new Array(n),\n x0 = Infinity,\n y0 = Infinity,\n x1 = -Infinity,\n y1 = -Infinity;\n\n // Compute the points and their extent.\n for (i = 0; i < n; ++i) {\n if (isNaN(x = +this._x.call(null, d = data[i])) || isNaN(y = +this._y.call(null, d))) continue;\n xz[i] = x;\n yz[i] = y;\n if (x < x0) x0 = x;\n if (x > x1) x1 = x;\n if (y < y0) y0 = y;\n if (y > y1) y1 = y;\n }\n\n // If there were no (valid) points, abort.\n if (x0 > x1 || y0 > y1) return this;\n\n // Expand the tree to cover the new points.\n this.cover(x0, y0).cover(x1, y1);\n\n // Add the new points.\n for (i = 0; i < n; ++i) {\n add(this, xz[i], yz[i], data[i]);\n }\n\n return this;\n}\n\nfunction tree_cover(x, y) {\n if (isNaN(x = +x) || isNaN(y = +y)) return this; // ignore invalid points\n\n var x0 = this._x0,\n y0 = this._y0,\n x1 = this._x1,\n y1 = this._y1;\n\n // If the quadtree has no extent, initialize them.\n // Integer extent are necessary so that if we later double the extent,\n // the existing quadrant boundaries don’t change due to floating point error!\n if (isNaN(x0)) {\n x1 = (x0 = Math.floor(x)) + 1;\n y1 = (y0 = Math.floor(y)) + 1;\n }\n\n // Otherwise, double repeatedly to cover.\n else {\n var z = x1 - x0,\n node = this._root,\n parent,\n i;\n\n while (x0 > x || x >= x1 || y0 > y || y >= y1) {\n i = (y < y0) << 1 | (x < x0);\n parent = new Array(4), parent[i] = node, node = parent, z *= 2;\n switch (i) {\n case 0: x1 = x0 + z, y1 = y0 + z; break;\n case 1: x0 = x1 - z, y1 = y0 + z; break;\n case 2: x1 = x0 + z, y0 = y1 - z; break;\n case 3: x0 = x1 - z, y0 = y1 - z; break;\n }\n }\n\n if (this._root && this._root.length) this._root = node;\n }\n\n this._x0 = x0;\n this._y0 = y0;\n this._x1 = x1;\n this._y1 = y1;\n return this;\n}\n\nfunction tree_data() {\n var data = [];\n this.visit(function(node) {\n if (!node.length) do data.push(node.data); while (node = node.next)\n });\n return data;\n}\n\nfunction tree_extent(_) {\n return arguments.length\n ? this.cover(+_[0][0], +_[0][1]).cover(+_[1][0], +_[1][1])\n : isNaN(this._x0) ? undefined : [[this._x0, this._y0], [this._x1, this._y1]];\n}\n\nfunction Quad(node, x0, y0, x1, y1) {\n this.node = node;\n this.x0 = x0;\n this.y0 = y0;\n this.x1 = x1;\n this.y1 = y1;\n}\n\nfunction tree_find(x, y, radius) {\n var data,\n x0 = this._x0,\n y0 = this._y0,\n x1,\n y1,\n x2,\n y2,\n x3 = this._x1,\n y3 = this._y1,\n quads = [],\n node = this._root,\n q,\n i;\n\n if (node) quads.push(new Quad(node, x0, y0, x3, y3));\n if (radius == null) radius = Infinity;\n else {\n x0 = x - radius, y0 = y - radius;\n x3 = x + radius, y3 = y + radius;\n radius *= radius;\n }\n\n while (q = quads.pop()) {\n\n // Stop searching if this quadrant can’t contain a closer node.\n if (!(node = q.node)\n || (x1 = q.x0) > x3\n || (y1 = q.y0) > y3\n || (x2 = q.x1) < x0\n || (y2 = q.y1) < y0) continue;\n\n // Bisect the current quadrant.\n if (node.length) {\n var xm = (x1 + x2) / 2,\n ym = (y1 + y2) / 2;\n\n quads.push(\n new Quad(node[3], xm, ym, x2, y2),\n new Quad(node[2], x1, ym, xm, y2),\n new Quad(node[1], xm, y1, x2, ym),\n new Quad(node[0], x1, y1, xm, ym)\n );\n\n // Visit the closest quadrant first.\n if (i = (y >= ym) << 1 | (x >= xm)) {\n q = quads[quads.length - 1];\n quads[quads.length - 1] = quads[quads.length - 1 - i];\n quads[quads.length - 1 - i] = q;\n }\n }\n\n // Visit this point. (Visiting coincident points isn’t necessary!)\n else {\n var dx = x - +this._x.call(null, node.data),\n dy = y - +this._y.call(null, node.data),\n d2 = dx * dx + dy * dy;\n if (d2 < radius) {\n var d = Math.sqrt(radius = d2);\n x0 = x - d, y0 = y - d;\n x3 = x + d, y3 = y + d;\n data = node.data;\n }\n }\n }\n\n return data;\n}\n\nfunction tree_remove(d) {\n if (isNaN(x = +this._x.call(null, d)) || isNaN(y = +this._y.call(null, d))) return this; // ignore invalid points\n\n var parent,\n node = this._root,\n retainer,\n previous,\n next,\n x0 = this._x0,\n y0 = this._y0,\n x1 = this._x1,\n y1 = this._y1,\n x,\n y,\n xm,\n ym,\n right,\n bottom,\n i,\n j;\n\n // If the tree is empty, initialize the root as a leaf.\n if (!node) return this;\n\n // Find the leaf node for the point.\n // While descending, also retain the deepest parent with a non-removed sibling.\n if (node.length) while (true) {\n if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm;\n if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym;\n if (!(parent = node, node = node[i = bottom << 1 | right])) return this;\n if (!node.length) break;\n if (parent[(i + 1) & 3] || parent[(i + 2) & 3] || parent[(i + 3) & 3]) retainer = parent, j = i;\n }\n\n // Find the point to remove.\n while (node.data !== d) if (!(previous = node, node = node.next)) return this;\n if (next = node.next) delete node.next;\n\n // If there are multiple coincident points, remove just the point.\n if (previous) return (next ? previous.next = next : delete previous.next), this;\n\n // If this is the root point, remove it.\n if (!parent) return this._root = next, this;\n\n // Remove this leaf.\n next ? parent[i] = next : delete parent[i];\n\n // If the parent now contains exactly one leaf, collapse superfluous parents.\n if ((node = parent[0] || parent[1] || parent[2] || parent[3])\n && node === (parent[3] || parent[2] || parent[1] || parent[0])\n && !node.length) {\n if (retainer) retainer[j] = node;\n else this._root = node;\n }\n\n return this;\n}\n\nfunction removeAll(data) {\n for (var i = 0, n = data.length; i < n; ++i) this.remove(data[i]);\n return this;\n}\n\nfunction tree_root() {\n return this._root;\n}\n\nfunction tree_size() {\n var size = 0;\n this.visit(function(node) {\n if (!node.length) do ++size; while (node = node.next)\n });\n return size;\n}\n\nfunction tree_visit(callback) {\n var quads = [], q, node = this._root, child, x0, y0, x1, y1;\n if (node) quads.push(new Quad(node, this._x0, this._y0, this._x1, this._y1));\n while (q = quads.pop()) {\n if (!callback(node = q.node, x0 = q.x0, y0 = q.y0, x1 = q.x1, y1 = q.y1) && node.length) {\n var xm = (x0 + x1) / 2, ym = (y0 + y1) / 2;\n if (child = node[3]) quads.push(new Quad(child, xm, ym, x1, y1));\n if (child = node[2]) quads.push(new Quad(child, x0, ym, xm, y1));\n if (child = node[1]) quads.push(new Quad(child, xm, y0, x1, ym));\n if (child = node[0]) quads.push(new Quad(child, x0, y0, xm, ym));\n }\n }\n return this;\n}\n\nfunction tree_visitAfter(callback) {\n var quads = [], next = [], q;\n if (this._root) quads.push(new Quad(this._root, this._x0, this._y0, this._x1, this._y1));\n while (q = quads.pop()) {\n var node = q.node;\n if (node.length) {\n var child, x0 = q.x0, y0 = q.y0, x1 = q.x1, y1 = q.y1, xm = (x0 + x1) / 2, ym = (y0 + y1) / 2;\n if (child = node[0]) quads.push(new Quad(child, x0, y0, xm, ym));\n if (child = node[1]) quads.push(new Quad(child, xm, y0, x1, ym));\n if (child = node[2]) quads.push(new Quad(child, x0, ym, xm, y1));\n if (child = node[3]) quads.push(new Quad(child, xm, ym, x1, y1));\n }\n next.push(q);\n }\n while (q = next.pop()) {\n callback(q.node, q.x0, q.y0, q.x1, q.y1);\n }\n return this;\n}\n\nfunction defaultX(d) {\n return d[0];\n}\n\nfunction tree_x(_) {\n return arguments.length ? (this._x = _, this) : this._x;\n}\n\nfunction defaultY(d) {\n return d[1];\n}\n\nfunction tree_y(_) {\n return arguments.length ? (this._y = _, this) : this._y;\n}\n\nfunction quadtree(nodes, x, y) {\n var tree = new Quadtree(x == null ? defaultX : x, y == null ? defaultY : y, NaN, NaN, NaN, NaN);\n return nodes == null ? tree : tree.addAll(nodes);\n}\n\nfunction Quadtree(x, y, x0, y0, x1, y1) {\n this._x = x;\n this._y = y;\n this._x0 = x0;\n this._y0 = y0;\n this._x1 = x1;\n this._y1 = y1;\n this._root = undefined;\n}\n\nfunction leaf_copy(leaf) {\n var copy = {data: leaf.data}, next = copy;\n while (leaf = leaf.next) next = next.next = {data: leaf.data};\n return copy;\n}\n\nvar treeProto = quadtree.prototype = Quadtree.prototype;\n\ntreeProto.copy = function() {\n var copy = new Quadtree(this._x, this._y, this._x0, this._y0, this._x1, this._y1),\n node = this._root,\n nodes,\n child;\n\n if (!node) return copy;\n\n if (!node.length) return copy._root = leaf_copy(node), copy;\n\n nodes = [{source: node, target: copy._root = new Array(4)}];\n while (node = nodes.pop()) {\n for (var i = 0; i < 4; ++i) {\n if (child = node.source[i]) {\n if (child.length) nodes.push({source: child, target: node.target[i] = new Array(4)});\n else node.target[i] = leaf_copy(child);\n }\n }\n }\n\n return copy;\n};\n\ntreeProto.add = tree_add;\ntreeProto.addAll = addAll;\ntreeProto.cover = tree_cover;\ntreeProto.data = tree_data;\ntreeProto.extent = tree_extent;\ntreeProto.find = tree_find;\ntreeProto.remove = tree_remove;\ntreeProto.removeAll = removeAll;\ntreeProto.root = tree_root;\ntreeProto.size = tree_size;\ntreeProto.visit = tree_visit;\ntreeProto.visitAfter = tree_visitAfter;\ntreeProto.x = tree_x;\ntreeProto.y = tree_y;\n\nexports.quadtree = quadtree;\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n}));\n\n},{}],119:[function(_dereq_,module,exports){\n// https://d3js.org/d3-shape/ v1.3.7 Copyright 2019 Mike Bostock\n(function (global, factory) {\ntypeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, _dereq_('d3-path')) :\ntypeof define === 'function' && define.amd ? define(['exports', 'd3-path'], factory) :\n(global = global || self, factory(global.d3 = global.d3 || {}, global.d3));\n}(this, function (exports, d3Path) { 'use strict';\n\nfunction constant(x) {\n return function constant() {\n return x;\n };\n}\n\nvar abs = Math.abs;\nvar atan2 = Math.atan2;\nvar cos = Math.cos;\nvar max = Math.max;\nvar min = Math.min;\nvar sin = Math.sin;\nvar sqrt = Math.sqrt;\n\nvar epsilon = 1e-12;\nvar pi = Math.PI;\nvar halfPi = pi / 2;\nvar tau = 2 * pi;\n\nfunction acos(x) {\n return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);\n}\n\nfunction asin(x) {\n return x >= 1 ? halfPi : x <= -1 ? -halfPi : Math.asin(x);\n}\n\nfunction arcInnerRadius(d) {\n return d.innerRadius;\n}\n\nfunction arcOuterRadius(d) {\n return d.outerRadius;\n}\n\nfunction arcStartAngle(d) {\n return d.startAngle;\n}\n\nfunction arcEndAngle(d) {\n return d.endAngle;\n}\n\nfunction arcPadAngle(d) {\n return d && d.padAngle; // Note: optional!\n}\n\nfunction intersect(x0, y0, x1, y1, x2, y2, x3, y3) {\n var x10 = x1 - x0, y10 = y1 - y0,\n x32 = x3 - x2, y32 = y3 - y2,\n t = y32 * x10 - x32 * y10;\n if (t * t < epsilon) return;\n t = (x32 * (y0 - y2) - y32 * (x0 - x2)) / t;\n return [x0 + t * x10, y0 + t * y10];\n}\n\n// Compute perpendicular offset line of length rc.\n// http://mathworld.wolfram.com/Circle-LineIntersection.html\nfunction cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / sqrt(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * sqrt(max(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n}\n\nfunction arc() {\n var innerRadius = arcInnerRadius,\n outerRadius = arcOuterRadius,\n cornerRadius = constant(0),\n padRadius = null,\n startAngle = arcStartAngle,\n endAngle = arcEndAngle,\n padAngle = arcPadAngle,\n context = null;\n\n function arc() {\n var buffer,\n r,\n r0 = +innerRadius.apply(this, arguments),\n r1 = +outerRadius.apply(this, arguments),\n a0 = startAngle.apply(this, arguments) - halfPi,\n a1 = endAngle.apply(this, arguments) - halfPi,\n da = abs(a1 - a0),\n cw = a1 > a0;\n\n if (!context) context = buffer = d3Path.path();\n\n // Ensure that the outer radius is always larger than the inner radius.\n if (r1 < r0) r = r1, r1 = r0, r0 = r;\n\n // Is it a point?\n if (!(r1 > epsilon)) context.moveTo(0, 0);\n\n // Or is it a circle or annulus?\n else if (da > tau - epsilon) {\n context.moveTo(r1 * cos(a0), r1 * sin(a0));\n context.arc(0, 0, r1, a0, a1, !cw);\n if (r0 > epsilon) {\n context.moveTo(r0 * cos(a1), r0 * sin(a1));\n context.arc(0, 0, r0, a1, a0, cw);\n }\n }\n\n // Or is it a circular or annular sector?\n else {\n var a01 = a0,\n a11 = a1,\n a00 = a0,\n a10 = a1,\n da0 = da,\n da1 = da,\n ap = padAngle.apply(this, arguments) / 2,\n rp = (ap > epsilon) && (padRadius ? +padRadius.apply(this, arguments) : sqrt(r0 * r0 + r1 * r1)),\n rc = min(abs(r1 - r0) / 2, +cornerRadius.apply(this, arguments)),\n rc0 = rc,\n rc1 = rc,\n t0,\n t1;\n\n // Apply padding? Note that since r1 ≥ r0, da1 ≥ da0.\n if (rp > epsilon) {\n var p0 = asin(rp / r0 * sin(ap)),\n p1 = asin(rp / r1 * sin(ap));\n if ((da0 -= p0 * 2) > epsilon) p0 *= (cw ? 1 : -1), a00 += p0, a10 -= p0;\n else da0 = 0, a00 = a10 = (a0 + a1) / 2;\n if ((da1 -= p1 * 2) > epsilon) p1 *= (cw ? 1 : -1), a01 += p1, a11 -= p1;\n else da1 = 0, a01 = a11 = (a0 + a1) / 2;\n }\n\n var x01 = r1 * cos(a01),\n y01 = r1 * sin(a01),\n x10 = r0 * cos(a10),\n y10 = r0 * sin(a10);\n\n // Apply rounded corners?\n if (rc > epsilon) {\n var x11 = r1 * cos(a11),\n y11 = r1 * sin(a11),\n x00 = r0 * cos(a00),\n y00 = r0 * sin(a00),\n oc;\n\n // Restrict the corner radius according to the sector angle.\n if (da < pi && (oc = intersect(x01, y01, x00, y00, x11, y11, x10, y10))) {\n var ax = x01 - oc[0],\n ay = y01 - oc[1],\n bx = x11 - oc[0],\n by = y11 - oc[1],\n kc = 1 / sin(acos((ax * bx + ay * by) / (sqrt(ax * ax + ay * ay) * sqrt(bx * bx + by * by))) / 2),\n lc = sqrt(oc[0] * oc[0] + oc[1] * oc[1]);\n rc0 = min(rc, (r0 - lc) / (kc - 1));\n rc1 = min(rc, (r1 - lc) / (kc + 1));\n }\n }\n\n // Is the sector collapsed to a line?\n if (!(da1 > epsilon)) context.moveTo(x01, y01);\n\n // Does the sector’s outer ring have rounded corners?\n else if (rc1 > epsilon) {\n t0 = cornerTangents(x00, y00, x01, y01, r1, rc1, cw);\n t1 = cornerTangents(x11, y11, x10, y10, r1, rc1, cw);\n\n context.moveTo(t0.cx + t0.x01, t0.cy + t0.y01);\n\n // Have the corners merged?\n if (rc1 < rc) context.arc(t0.cx, t0.cy, rc1, atan2(t0.y01, t0.x01), atan2(t1.y01, t1.x01), !cw);\n\n // Otherwise, draw the two corners and the ring.\n else {\n context.arc(t0.cx, t0.cy, rc1, atan2(t0.y01, t0.x01), atan2(t0.y11, t0.x11), !cw);\n context.arc(0, 0, r1, atan2(t0.cy + t0.y11, t0.cx + t0.x11), atan2(t1.cy + t1.y11, t1.cx + t1.x11), !cw);\n context.arc(t1.cx, t1.cy, rc1, atan2(t1.y11, t1.x11), atan2(t1.y01, t1.x01), !cw);\n }\n }\n\n // Or is the outer ring just a circular arc?\n else context.moveTo(x01, y01), context.arc(0, 0, r1, a01, a11, !cw);\n\n // Is there no inner ring, and it’s a circular sector?\n // Or perhaps it’s an annular sector collapsed due to padding?\n if (!(r0 > epsilon) || !(da0 > epsilon)) context.lineTo(x10, y10);\n\n // Does the sector’s inner ring (or point) have rounded corners?\n else if (rc0 > epsilon) {\n t0 = cornerTangents(x10, y10, x11, y11, r0, -rc0, cw);\n t1 = cornerTangents(x01, y01, x00, y00, r0, -rc0, cw);\n\n context.lineTo(t0.cx + t0.x01, t0.cy + t0.y01);\n\n // Have the corners merged?\n if (rc0 < rc) context.arc(t0.cx, t0.cy, rc0, atan2(t0.y01, t0.x01), atan2(t1.y01, t1.x01), !cw);\n\n // Otherwise, draw the two corners and the ring.\n else {\n context.arc(t0.cx, t0.cy, rc0, atan2(t0.y01, t0.x01), atan2(t0.y11, t0.x11), !cw);\n context.arc(0, 0, r0, atan2(t0.cy + t0.y11, t0.cx + t0.x11), atan2(t1.cy + t1.y11, t1.cx + t1.x11), cw);\n context.arc(t1.cx, t1.cy, rc0, atan2(t1.y11, t1.x11), atan2(t1.y01, t1.x01), !cw);\n }\n }\n\n // Or is the inner ring just a circular arc?\n else context.arc(0, 0, r0, a10, a00, cw);\n }\n\n context.closePath();\n\n if (buffer) return context = null, buffer + \"\" || null;\n }\n\n arc.centroid = function() {\n var r = (+innerRadius.apply(this, arguments) + +outerRadius.apply(this, arguments)) / 2,\n a = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - pi / 2;\n return [cos(a) * r, sin(a) * r];\n };\n\n arc.innerRadius = function(_) {\n return arguments.length ? (innerRadius = typeof _ === \"function\" ? _ : constant(+_), arc) : innerRadius;\n };\n\n arc.outerRadius = function(_) {\n return arguments.length ? (outerRadius = typeof _ === \"function\" ? _ : constant(+_), arc) : outerRadius;\n };\n\n arc.cornerRadius = function(_) {\n return arguments.length ? (cornerRadius = typeof _ === \"function\" ? _ : constant(+_), arc) : cornerRadius;\n };\n\n arc.padRadius = function(_) {\n return arguments.length ? (padRadius = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), arc) : padRadius;\n };\n\n arc.startAngle = function(_) {\n return arguments.length ? (startAngle = typeof _ === \"function\" ? _ : constant(+_), arc) : startAngle;\n };\n\n arc.endAngle = function(_) {\n return arguments.length ? (endAngle = typeof _ === \"function\" ? _ : constant(+_), arc) : endAngle;\n };\n\n arc.padAngle = function(_) {\n return arguments.length ? (padAngle = typeof _ === \"function\" ? _ : constant(+_), arc) : padAngle;\n };\n\n arc.context = function(_) {\n return arguments.length ? ((context = _ == null ? null : _), arc) : context;\n };\n\n return arc;\n}\n\nfunction Linear(context) {\n this._context = context;\n}\n\nLinear.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; // proceed\n default: this._context.lineTo(x, y); break;\n }\n }\n};\n\nfunction curveLinear(context) {\n return new Linear(context);\n}\n\nfunction x(p) {\n return p[0];\n}\n\nfunction y(p) {\n return p[1];\n}\n\nfunction line() {\n var x$1 = x,\n y$1 = y,\n defined = constant(true),\n context = null,\n curve = curveLinear,\n output = null;\n\n function line(data) {\n var i,\n n = data.length,\n d,\n defined0 = false,\n buffer;\n\n if (context == null) output = curve(buffer = d3Path.path());\n\n for (i = 0; i <= n; ++i) {\n if (!(i < n && defined(d = data[i], i, data)) === defined0) {\n if (defined0 = !defined0) output.lineStart();\n else output.lineEnd();\n }\n if (defined0) output.point(+x$1(d, i, data), +y$1(d, i, data));\n }\n\n if (buffer) return output = null, buffer + \"\" || null;\n }\n\n line.x = function(_) {\n return arguments.length ? (x$1 = typeof _ === \"function\" ? _ : constant(+_), line) : x$1;\n };\n\n line.y = function(_) {\n return arguments.length ? (y$1 = typeof _ === \"function\" ? _ : constant(+_), line) : y$1;\n };\n\n line.defined = function(_) {\n return arguments.length ? (defined = typeof _ === \"function\" ? _ : constant(!!_), line) : defined;\n };\n\n line.curve = function(_) {\n return arguments.length ? (curve = _, context != null && (output = curve(context)), line) : curve;\n };\n\n line.context = function(_) {\n return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), line) : context;\n };\n\n return line;\n}\n\nfunction area() {\n var x0 = x,\n x1 = null,\n y0 = constant(0),\n y1 = y,\n defined = constant(true),\n context = null,\n curve = curveLinear,\n output = null;\n\n function area(data) {\n var i,\n j,\n k,\n n = data.length,\n d,\n defined0 = false,\n buffer,\n x0z = new Array(n),\n y0z = new Array(n);\n\n if (context == null) output = curve(buffer = d3Path.path());\n\n for (i = 0; i <= n; ++i) {\n if (!(i < n && defined(d = data[i], i, data)) === defined0) {\n if (defined0 = !defined0) {\n j = i;\n output.areaStart();\n output.lineStart();\n } else {\n output.lineEnd();\n output.lineStart();\n for (k = i - 1; k >= j; --k) {\n output.point(x0z[k], y0z[k]);\n }\n output.lineEnd();\n output.areaEnd();\n }\n }\n if (defined0) {\n x0z[i] = +x0(d, i, data), y0z[i] = +y0(d, i, data);\n output.point(x1 ? +x1(d, i, data) : x0z[i], y1 ? +y1(d, i, data) : y0z[i]);\n }\n }\n\n if (buffer) return output = null, buffer + \"\" || null;\n }\n\n function arealine() {\n return line().defined(defined).curve(curve).context(context);\n }\n\n area.x = function(_) {\n return arguments.length ? (x0 = typeof _ === \"function\" ? _ : constant(+_), x1 = null, area) : x0;\n };\n\n area.x0 = function(_) {\n return arguments.length ? (x0 = typeof _ === \"function\" ? _ : constant(+_), area) : x0;\n };\n\n area.x1 = function(_) {\n return arguments.length ? (x1 = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), area) : x1;\n };\n\n area.y = function(_) {\n return arguments.length ? (y0 = typeof _ === \"function\" ? _ : constant(+_), y1 = null, area) : y0;\n };\n\n area.y0 = function(_) {\n return arguments.length ? (y0 = typeof _ === \"function\" ? _ : constant(+_), area) : y0;\n };\n\n area.y1 = function(_) {\n return arguments.length ? (y1 = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), area) : y1;\n };\n\n area.lineX0 =\n area.lineY0 = function() {\n return arealine().x(x0).y(y0);\n };\n\n area.lineY1 = function() {\n return arealine().x(x0).y(y1);\n };\n\n area.lineX1 = function() {\n return arealine().x(x1).y(y0);\n };\n\n area.defined = function(_) {\n return arguments.length ? (defined = typeof _ === \"function\" ? _ : constant(!!_), area) : defined;\n };\n\n area.curve = function(_) {\n return arguments.length ? (curve = _, context != null && (output = curve(context)), area) : curve;\n };\n\n area.context = function(_) {\n return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), area) : context;\n };\n\n return area;\n}\n\nfunction descending(a, b) {\n return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;\n}\n\nfunction identity(d) {\n return d;\n}\n\nfunction pie() {\n var value = identity,\n sortValues = descending,\n sort = null,\n startAngle = constant(0),\n endAngle = constant(tau),\n padAngle = constant(0);\n\n function pie(data) {\n var i,\n n = data.length,\n j,\n k,\n sum = 0,\n index = new Array(n),\n arcs = new Array(n),\n a0 = +startAngle.apply(this, arguments),\n da = Math.min(tau, Math.max(-tau, endAngle.apply(this, arguments) - a0)),\n a1,\n p = Math.min(Math.abs(da) / n, padAngle.apply(this, arguments)),\n pa = p * (da < 0 ? -1 : 1),\n v;\n\n for (i = 0; i < n; ++i) {\n if ((v = arcs[index[i] = i] = +value(data[i], i, data)) > 0) {\n sum += v;\n }\n }\n\n // Optionally sort the arcs by previously-computed values or by data.\n if (sortValues != null) index.sort(function(i, j) { return sortValues(arcs[i], arcs[j]); });\n else if (sort != null) index.sort(function(i, j) { return sort(data[i], data[j]); });\n\n // Compute the arcs! They are stored in the original data's order.\n for (i = 0, k = sum ? (da - n * pa) / sum : 0; i < n; ++i, a0 = a1) {\n j = index[i], v = arcs[j], a1 = a0 + (v > 0 ? v * k : 0) + pa, arcs[j] = {\n data: data[j],\n index: i,\n value: v,\n startAngle: a0,\n endAngle: a1,\n padAngle: p\n };\n }\n\n return arcs;\n }\n\n pie.value = function(_) {\n return arguments.length ? (value = typeof _ === \"function\" ? _ : constant(+_), pie) : value;\n };\n\n pie.sortValues = function(_) {\n return arguments.length ? (sortValues = _, sort = null, pie) : sortValues;\n };\n\n pie.sort = function(_) {\n return arguments.length ? (sort = _, sortValues = null, pie) : sort;\n };\n\n pie.startAngle = function(_) {\n return arguments.length ? (startAngle = typeof _ === \"function\" ? _ : constant(+_), pie) : startAngle;\n };\n\n pie.endAngle = function(_) {\n return arguments.length ? (endAngle = typeof _ === \"function\" ? _ : constant(+_), pie) : endAngle;\n };\n\n pie.padAngle = function(_) {\n return arguments.length ? (padAngle = typeof _ === \"function\" ? _ : constant(+_), pie) : padAngle;\n };\n\n return pie;\n}\n\nvar curveRadialLinear = curveRadial(curveLinear);\n\nfunction Radial(curve) {\n this._curve = curve;\n}\n\nRadial.prototype = {\n areaStart: function() {\n this._curve.areaStart();\n },\n areaEnd: function() {\n this._curve.areaEnd();\n },\n lineStart: function() {\n this._curve.lineStart();\n },\n lineEnd: function() {\n this._curve.lineEnd();\n },\n point: function(a, r) {\n this._curve.point(r * Math.sin(a), r * -Math.cos(a));\n }\n};\n\nfunction curveRadial(curve) {\n\n function radial(context) {\n return new Radial(curve(context));\n }\n\n radial._curve = curve;\n\n return radial;\n}\n\nfunction lineRadial(l) {\n var c = l.curve;\n\n l.angle = l.x, delete l.x;\n l.radius = l.y, delete l.y;\n\n l.curve = function(_) {\n return arguments.length ? c(curveRadial(_)) : c()._curve;\n };\n\n return l;\n}\n\nfunction lineRadial$1() {\n return lineRadial(line().curve(curveRadialLinear));\n}\n\nfunction areaRadial() {\n var a = area().curve(curveRadialLinear),\n c = a.curve,\n x0 = a.lineX0,\n x1 = a.lineX1,\n y0 = a.lineY0,\n y1 = a.lineY1;\n\n a.angle = a.x, delete a.x;\n a.startAngle = a.x0, delete a.x0;\n a.endAngle = a.x1, delete a.x1;\n a.radius = a.y, delete a.y;\n a.innerRadius = a.y0, delete a.y0;\n a.outerRadius = a.y1, delete a.y1;\n a.lineStartAngle = function() { return lineRadial(x0()); }, delete a.lineX0;\n a.lineEndAngle = function() { return lineRadial(x1()); }, delete a.lineX1;\n a.lineInnerRadius = function() { return lineRadial(y0()); }, delete a.lineY0;\n a.lineOuterRadius = function() { return lineRadial(y1()); }, delete a.lineY1;\n\n a.curve = function(_) {\n return arguments.length ? c(curveRadial(_)) : c()._curve;\n };\n\n return a;\n}\n\nfunction pointRadial(x, y) {\n return [(y = +y) * Math.cos(x -= Math.PI / 2), y * Math.sin(x)];\n}\n\nvar slice = Array.prototype.slice;\n\nfunction linkSource(d) {\n return d.source;\n}\n\nfunction linkTarget(d) {\n return d.target;\n}\n\nfunction link(curve) {\n var source = linkSource,\n target = linkTarget,\n x$1 = x,\n y$1 = y,\n context = null;\n\n function link() {\n var buffer, argv = slice.call(arguments), s = source.apply(this, argv), t = target.apply(this, argv);\n if (!context) context = buffer = d3Path.path();\n curve(context, +x$1.apply(this, (argv[0] = s, argv)), +y$1.apply(this, argv), +x$1.apply(this, (argv[0] = t, argv)), +y$1.apply(this, argv));\n if (buffer) return context = null, buffer + \"\" || null;\n }\n\n link.source = function(_) {\n return arguments.length ? (source = _, link) : source;\n };\n\n link.target = function(_) {\n return arguments.length ? (target = _, link) : target;\n };\n\n link.x = function(_) {\n return arguments.length ? (x$1 = typeof _ === \"function\" ? _ : constant(+_), link) : x$1;\n };\n\n link.y = function(_) {\n return arguments.length ? (y$1 = typeof _ === \"function\" ? _ : constant(+_), link) : y$1;\n };\n\n link.context = function(_) {\n return arguments.length ? ((context = _ == null ? null : _), link) : context;\n };\n\n return link;\n}\n\nfunction curveHorizontal(context, x0, y0, x1, y1) {\n context.moveTo(x0, y0);\n context.bezierCurveTo(x0 = (x0 + x1) / 2, y0, x0, y1, x1, y1);\n}\n\nfunction curveVertical(context, x0, y0, x1, y1) {\n context.moveTo(x0, y0);\n context.bezierCurveTo(x0, y0 = (y0 + y1) / 2, x1, y0, x1, y1);\n}\n\nfunction curveRadial$1(context, x0, y0, x1, y1) {\n var p0 = pointRadial(x0, y0),\n p1 = pointRadial(x0, y0 = (y0 + y1) / 2),\n p2 = pointRadial(x1, y0),\n p3 = pointRadial(x1, y1);\n context.moveTo(p0[0], p0[1]);\n context.bezierCurveTo(p1[0], p1[1], p2[0], p2[1], p3[0], p3[1]);\n}\n\nfunction linkHorizontal() {\n return link(curveHorizontal);\n}\n\nfunction linkVertical() {\n return link(curveVertical);\n}\n\nfunction linkRadial() {\n var l = link(curveRadial$1);\n l.angle = l.x, delete l.x;\n l.radius = l.y, delete l.y;\n return l;\n}\n\nvar circle = {\n draw: function(context, size) {\n var r = Math.sqrt(size / pi);\n context.moveTo(r, 0);\n context.arc(0, 0, r, 0, tau);\n }\n};\n\nvar cross = {\n draw: function(context, size) {\n var r = Math.sqrt(size / 5) / 2;\n context.moveTo(-3 * r, -r);\n context.lineTo(-r, -r);\n context.lineTo(-r, -3 * r);\n context.lineTo(r, -3 * r);\n context.lineTo(r, -r);\n context.lineTo(3 * r, -r);\n context.lineTo(3 * r, r);\n context.lineTo(r, r);\n context.lineTo(r, 3 * r);\n context.lineTo(-r, 3 * r);\n context.lineTo(-r, r);\n context.lineTo(-3 * r, r);\n context.closePath();\n }\n};\n\nvar tan30 = Math.sqrt(1 / 3),\n tan30_2 = tan30 * 2;\n\nvar diamond = {\n draw: function(context, size) {\n var y = Math.sqrt(size / tan30_2),\n x = y * tan30;\n context.moveTo(0, -y);\n context.lineTo(x, 0);\n context.lineTo(0, y);\n context.lineTo(-x, 0);\n context.closePath();\n }\n};\n\nvar ka = 0.89081309152928522810,\n kr = Math.sin(pi / 10) / Math.sin(7 * pi / 10),\n kx = Math.sin(tau / 10) * kr,\n ky = -Math.cos(tau / 10) * kr;\n\nvar star = {\n draw: function(context, size) {\n var r = Math.sqrt(size * ka),\n x = kx * r,\n y = ky * r;\n context.moveTo(0, -r);\n context.lineTo(x, y);\n for (var i = 1; i < 5; ++i) {\n var a = tau * i / 5,\n c = Math.cos(a),\n s = Math.sin(a);\n context.lineTo(s * r, -c * r);\n context.lineTo(c * x - s * y, s * x + c * y);\n }\n context.closePath();\n }\n};\n\nvar square = {\n draw: function(context, size) {\n var w = Math.sqrt(size),\n x = -w / 2;\n context.rect(x, x, w, w);\n }\n};\n\nvar sqrt3 = Math.sqrt(3);\n\nvar triangle = {\n draw: function(context, size) {\n var y = -Math.sqrt(size / (sqrt3 * 3));\n context.moveTo(0, y * 2);\n context.lineTo(-sqrt3 * y, -y);\n context.lineTo(sqrt3 * y, -y);\n context.closePath();\n }\n};\n\nvar c = -0.5,\n s = Math.sqrt(3) / 2,\n k = 1 / Math.sqrt(12),\n a = (k / 2 + 1) * 3;\n\nvar wye = {\n draw: function(context, size) {\n var r = Math.sqrt(size / a),\n x0 = r / 2,\n y0 = r * k,\n x1 = x0,\n y1 = r * k + r,\n x2 = -x1,\n y2 = y1;\n context.moveTo(x0, y0);\n context.lineTo(x1, y1);\n context.lineTo(x2, y2);\n context.lineTo(c * x0 - s * y0, s * x0 + c * y0);\n context.lineTo(c * x1 - s * y1, s * x1 + c * y1);\n context.lineTo(c * x2 - s * y2, s * x2 + c * y2);\n context.lineTo(c * x0 + s * y0, c * y0 - s * x0);\n context.lineTo(c * x1 + s * y1, c * y1 - s * x1);\n context.lineTo(c * x2 + s * y2, c * y2 - s * x2);\n context.closePath();\n }\n};\n\nvar symbols = [\n circle,\n cross,\n diamond,\n square,\n star,\n triangle,\n wye\n];\n\nfunction symbol() {\n var type = constant(circle),\n size = constant(64),\n context = null;\n\n function symbol() {\n var buffer;\n if (!context) context = buffer = d3Path.path();\n type.apply(this, arguments).draw(context, +size.apply(this, arguments));\n if (buffer) return context = null, buffer + \"\" || null;\n }\n\n symbol.type = function(_) {\n return arguments.length ? (type = typeof _ === \"function\" ? _ : constant(_), symbol) : type;\n };\n\n symbol.size = function(_) {\n return arguments.length ? (size = typeof _ === \"function\" ? _ : constant(+_), symbol) : size;\n };\n\n symbol.context = function(_) {\n return arguments.length ? (context = _ == null ? null : _, symbol) : context;\n };\n\n return symbol;\n}\n\nfunction noop() {}\n\nfunction point(that, x, y) {\n that._context.bezierCurveTo(\n (2 * that._x0 + that._x1) / 3,\n (2 * that._y0 + that._y1) / 3,\n (that._x0 + 2 * that._x1) / 3,\n (that._y0 + 2 * that._y1) / 3,\n (that._x0 + 4 * that._x1 + x) / 6,\n (that._y0 + 4 * that._y1 + y) / 6\n );\n}\n\nfunction Basis(context) {\n this._context = context;\n}\n\nBasis.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 =\n this._y0 = this._y1 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 3: point(this, this._x1, this._y1); // proceed\n case 2: this._context.lineTo(this._x1, this._y1); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6); // proceed\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = x;\n this._y0 = this._y1, this._y1 = y;\n }\n};\n\nfunction basis(context) {\n return new Basis(context);\n}\n\nfunction BasisClosed(context) {\n this._context = context;\n}\n\nBasisClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._x0 = this._x1 = this._x2 = this._x3 = this._x4 =\n this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 1: {\n this._context.moveTo(this._x2, this._y2);\n this._context.closePath();\n break;\n }\n case 2: {\n this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3);\n this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3);\n this._context.closePath();\n break;\n }\n case 3: {\n this.point(this._x2, this._y2);\n this.point(this._x3, this._y3);\n this.point(this._x4, this._y4);\n break;\n }\n }\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._x2 = x, this._y2 = y; break;\n case 1: this._point = 2; this._x3 = x, this._y3 = y; break;\n case 2: this._point = 3; this._x4 = x, this._y4 = y; this._context.moveTo((this._x0 + 4 * this._x1 + x) / 6, (this._y0 + 4 * this._y1 + y) / 6); break;\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = x;\n this._y0 = this._y1, this._y1 = y;\n }\n};\n\nfunction basisClosed(context) {\n return new BasisClosed(context);\n}\n\nfunction BasisOpen(context) {\n this._context = context;\n}\n\nBasisOpen.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 =\n this._y0 = this._y1 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; var x0 = (this._x0 + 4 * this._x1 + x) / 6, y0 = (this._y0 + 4 * this._y1 + y) / 6; this._line ? this._context.lineTo(x0, y0) : this._context.moveTo(x0, y0); break;\n case 3: this._point = 4; // proceed\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = x;\n this._y0 = this._y1, this._y1 = y;\n }\n};\n\nfunction basisOpen(context) {\n return new BasisOpen(context);\n}\n\nfunction Bundle(context, beta) {\n this._basis = new Basis(context);\n this._beta = beta;\n}\n\nBundle.prototype = {\n lineStart: function() {\n this._x = [];\n this._y = [];\n this._basis.lineStart();\n },\n lineEnd: function() {\n var x = this._x,\n y = this._y,\n j = x.length - 1;\n\n if (j > 0) {\n var x0 = x[0],\n y0 = y[0],\n dx = x[j] - x0,\n dy = y[j] - y0,\n i = -1,\n t;\n\n while (++i <= j) {\n t = i / j;\n this._basis.point(\n this._beta * x[i] + (1 - this._beta) * (x0 + t * dx),\n this._beta * y[i] + (1 - this._beta) * (y0 + t * dy)\n );\n }\n }\n\n this._x = this._y = null;\n this._basis.lineEnd();\n },\n point: function(x, y) {\n this._x.push(+x);\n this._y.push(+y);\n }\n};\n\nvar bundle = (function custom(beta) {\n\n function bundle(context) {\n return beta === 1 ? new Basis(context) : new Bundle(context, beta);\n }\n\n bundle.beta = function(beta) {\n return custom(+beta);\n };\n\n return bundle;\n})(0.85);\n\nfunction point$1(that, x, y) {\n that._context.bezierCurveTo(\n that._x1 + that._k * (that._x2 - that._x0),\n that._y1 + that._k * (that._y2 - that._y0),\n that._x2 + that._k * (that._x1 - x),\n that._y2 + that._k * (that._y1 - y),\n that._x2,\n that._y2\n );\n}\n\nfunction Cardinal(context, tension) {\n this._context = context;\n this._k = (1 - tension) / 6;\n}\n\nCardinal.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 = this._x2 =\n this._y0 = this._y1 = this._y2 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 2: this._context.lineTo(this._x2, this._y2); break;\n case 3: point$1(this, this._x1, this._y1); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; this._x1 = x, this._y1 = y; break;\n case 2: this._point = 3; // proceed\n default: point$1(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nvar cardinal = (function custom(tension) {\n\n function cardinal(context) {\n return new Cardinal(context, tension);\n }\n\n cardinal.tension = function(tension) {\n return custom(+tension);\n };\n\n return cardinal;\n})(0);\n\nfunction CardinalClosed(context, tension) {\n this._context = context;\n this._k = (1 - tension) / 6;\n}\n\nCardinalClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 =\n this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 1: {\n this._context.moveTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 2: {\n this._context.lineTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 3: {\n this.point(this._x3, this._y3);\n this.point(this._x4, this._y4);\n this.point(this._x5, this._y5);\n break;\n }\n }\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._x3 = x, this._y3 = y; break;\n case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break;\n case 2: this._point = 3; this._x5 = x, this._y5 = y; break;\n default: point$1(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nvar cardinalClosed = (function custom(tension) {\n\n function cardinal(context) {\n return new CardinalClosed(context, tension);\n }\n\n cardinal.tension = function(tension) {\n return custom(+tension);\n };\n\n return cardinal;\n})(0);\n\nfunction CardinalOpen(context, tension) {\n this._context = context;\n this._k = (1 - tension) / 6;\n}\n\nCardinalOpen.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 = this._x2 =\n this._y0 = this._y1 = this._y2 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); break;\n case 3: this._point = 4; // proceed\n default: point$1(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nvar cardinalOpen = (function custom(tension) {\n\n function cardinal(context) {\n return new CardinalOpen(context, tension);\n }\n\n cardinal.tension = function(tension) {\n return custom(+tension);\n };\n\n return cardinal;\n})(0);\n\nfunction point$2(that, x, y) {\n var x1 = that._x1,\n y1 = that._y1,\n x2 = that._x2,\n y2 = that._y2;\n\n if (that._l01_a > epsilon) {\n var a = 2 * that._l01_2a + 3 * that._l01_a * that._l12_a + that._l12_2a,\n n = 3 * that._l01_a * (that._l01_a + that._l12_a);\n x1 = (x1 * a - that._x0 * that._l12_2a + that._x2 * that._l01_2a) / n;\n y1 = (y1 * a - that._y0 * that._l12_2a + that._y2 * that._l01_2a) / n;\n }\n\n if (that._l23_a > epsilon) {\n var b = 2 * that._l23_2a + 3 * that._l23_a * that._l12_a + that._l12_2a,\n m = 3 * that._l23_a * (that._l23_a + that._l12_a);\n x2 = (x2 * b + that._x1 * that._l23_2a - x * that._l12_2a) / m;\n y2 = (y2 * b + that._y1 * that._l23_2a - y * that._l12_2a) / m;\n }\n\n that._context.bezierCurveTo(x1, y1, x2, y2, that._x2, that._y2);\n}\n\nfunction CatmullRom(context, alpha) {\n this._context = context;\n this._alpha = alpha;\n}\n\nCatmullRom.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 = this._x2 =\n this._y0 = this._y1 = this._y2 = NaN;\n this._l01_a = this._l12_a = this._l23_a =\n this._l01_2a = this._l12_2a = this._l23_2a =\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 2: this._context.lineTo(this._x2, this._y2); break;\n case 3: this.point(this._x2, this._y2); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n\n if (this._point) {\n var x23 = this._x2 - x,\n y23 = this._y2 - y;\n this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));\n }\n\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; // proceed\n default: point$2(this, x, y); break;\n }\n\n this._l01_a = this._l12_a, this._l12_a = this._l23_a;\n this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nvar catmullRom = (function custom(alpha) {\n\n function catmullRom(context) {\n return alpha ? new CatmullRom(context, alpha) : new Cardinal(context, 0);\n }\n\n catmullRom.alpha = function(alpha) {\n return custom(+alpha);\n };\n\n return catmullRom;\n})(0.5);\n\nfunction CatmullRomClosed(context, alpha) {\n this._context = context;\n this._alpha = alpha;\n}\n\nCatmullRomClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 =\n this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;\n this._l01_a = this._l12_a = this._l23_a =\n this._l01_2a = this._l12_2a = this._l23_2a =\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 1: {\n this._context.moveTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 2: {\n this._context.lineTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 3: {\n this.point(this._x3, this._y3);\n this.point(this._x4, this._y4);\n this.point(this._x5, this._y5);\n break;\n }\n }\n },\n point: function(x, y) {\n x = +x, y = +y;\n\n if (this._point) {\n var x23 = this._x2 - x,\n y23 = this._y2 - y;\n this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));\n }\n\n switch (this._point) {\n case 0: this._point = 1; this._x3 = x, this._y3 = y; break;\n case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break;\n case 2: this._point = 3; this._x5 = x, this._y5 = y; break;\n default: point$2(this, x, y); break;\n }\n\n this._l01_a = this._l12_a, this._l12_a = this._l23_a;\n this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nvar catmullRomClosed = (function custom(alpha) {\n\n function catmullRom(context) {\n return alpha ? new CatmullRomClosed(context, alpha) : new CardinalClosed(context, 0);\n }\n\n catmullRom.alpha = function(alpha) {\n return custom(+alpha);\n };\n\n return catmullRom;\n})(0.5);\n\nfunction CatmullRomOpen(context, alpha) {\n this._context = context;\n this._alpha = alpha;\n}\n\nCatmullRomOpen.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 = this._x2 =\n this._y0 = this._y1 = this._y2 = NaN;\n this._l01_a = this._l12_a = this._l23_a =\n this._l01_2a = this._l12_2a = this._l23_2a =\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n\n if (this._point) {\n var x23 = this._x2 - x,\n y23 = this._y2 - y;\n this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));\n }\n\n switch (this._point) {\n case 0: this._point = 1; break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); break;\n case 3: this._point = 4; // proceed\n default: point$2(this, x, y); break;\n }\n\n this._l01_a = this._l12_a, this._l12_a = this._l23_a;\n this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nvar catmullRomOpen = (function custom(alpha) {\n\n function catmullRom(context) {\n return alpha ? new CatmullRomOpen(context, alpha) : new CardinalOpen(context, 0);\n }\n\n catmullRom.alpha = function(alpha) {\n return custom(+alpha);\n };\n\n return catmullRom;\n})(0.5);\n\nfunction LinearClosed(context) {\n this._context = context;\n}\n\nLinearClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._point) this._context.closePath();\n },\n point: function(x, y) {\n x = +x, y = +y;\n if (this._point) this._context.lineTo(x, y);\n else this._point = 1, this._context.moveTo(x, y);\n }\n};\n\nfunction linearClosed(context) {\n return new LinearClosed(context);\n}\n\nfunction sign(x) {\n return x < 0 ? -1 : 1;\n}\n\n// Calculate the slopes of the tangents (Hermite-type interpolation) based on\n// the following paper: Steffen, M. 1990. A Simple Method for Monotonic\n// Interpolation in One Dimension. Astronomy and Astrophysics, Vol. 239, NO.\n// NOV(II), P. 443, 1990.\nfunction slope3(that, x2, y2) {\n var h0 = that._x1 - that._x0,\n h1 = x2 - that._x1,\n s0 = (that._y1 - that._y0) / (h0 || h1 < 0 && -0),\n s1 = (y2 - that._y1) / (h1 || h0 < 0 && -0),\n p = (s0 * h1 + s1 * h0) / (h0 + h1);\n return (sign(s0) + sign(s1)) * Math.min(Math.abs(s0), Math.abs(s1), 0.5 * Math.abs(p)) || 0;\n}\n\n// Calculate a one-sided slope.\nfunction slope2(that, t) {\n var h = that._x1 - that._x0;\n return h ? (3 * (that._y1 - that._y0) / h - t) / 2 : t;\n}\n\n// According to https://en.wikipedia.org/wiki/Cubic_Hermite_spline#Representations\n// \"you can express cubic Hermite interpolation in terms of cubic Bézier curves\n// with respect to the four values p0, p0 + m0 / 3, p1 - m1 / 3, p1\".\nfunction point$3(that, t0, t1) {\n var x0 = that._x0,\n y0 = that._y0,\n x1 = that._x1,\n y1 = that._y1,\n dx = (x1 - x0) / 3;\n that._context.bezierCurveTo(x0 + dx, y0 + dx * t0, x1 - dx, y1 - dx * t1, x1, y1);\n}\n\nfunction MonotoneX(context) {\n this._context = context;\n}\n\nMonotoneX.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 =\n this._y0 = this._y1 =\n this._t0 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 2: this._context.lineTo(this._x1, this._y1); break;\n case 3: point$3(this, this._t0, slope2(this, this._t0)); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n var t1 = NaN;\n\n x = +x, y = +y;\n if (x === this._x1 && y === this._y1) return; // Ignore coincident points.\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; point$3(this, slope2(this, t1 = slope3(this, x, y)), t1); break;\n default: point$3(this, this._t0, t1 = slope3(this, x, y)); break;\n }\n\n this._x0 = this._x1, this._x1 = x;\n this._y0 = this._y1, this._y1 = y;\n this._t0 = t1;\n }\n};\n\nfunction MonotoneY(context) {\n this._context = new ReflectContext(context);\n}\n\n(MonotoneY.prototype = Object.create(MonotoneX.prototype)).point = function(x, y) {\n MonotoneX.prototype.point.call(this, y, x);\n};\n\nfunction ReflectContext(context) {\n this._context = context;\n}\n\nReflectContext.prototype = {\n moveTo: function(x, y) { this._context.moveTo(y, x); },\n closePath: function() { this._context.closePath(); },\n lineTo: function(x, y) { this._context.lineTo(y, x); },\n bezierCurveTo: function(x1, y1, x2, y2, x, y) { this._context.bezierCurveTo(y1, x1, y2, x2, y, x); }\n};\n\nfunction monotoneX(context) {\n return new MonotoneX(context);\n}\n\nfunction monotoneY(context) {\n return new MonotoneY(context);\n}\n\nfunction Natural(context) {\n this._context = context;\n}\n\nNatural.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x = [];\n this._y = [];\n },\n lineEnd: function() {\n var x = this._x,\n y = this._y,\n n = x.length;\n\n if (n) {\n this._line ? this._context.lineTo(x[0], y[0]) : this._context.moveTo(x[0], y[0]);\n if (n === 2) {\n this._context.lineTo(x[1], y[1]);\n } else {\n var px = controlPoints(x),\n py = controlPoints(y);\n for (var i0 = 0, i1 = 1; i1 < n; ++i0, ++i1) {\n this._context.bezierCurveTo(px[0][i0], py[0][i0], px[1][i0], py[1][i0], x[i1], y[i1]);\n }\n }\n }\n\n if (this._line || (this._line !== 0 && n === 1)) this._context.closePath();\n this._line = 1 - this._line;\n this._x = this._y = null;\n },\n point: function(x, y) {\n this._x.push(+x);\n this._y.push(+y);\n }\n};\n\n// See https://www.particleincell.com/2012/bezier-splines/ for derivation.\nfunction controlPoints(x) {\n var i,\n n = x.length - 1,\n m,\n a = new Array(n),\n b = new Array(n),\n r = new Array(n);\n a[0] = 0, b[0] = 2, r[0] = x[0] + 2 * x[1];\n for (i = 1; i < n - 1; ++i) a[i] = 1, b[i] = 4, r[i] = 4 * x[i] + 2 * x[i + 1];\n a[n - 1] = 2, b[n - 1] = 7, r[n - 1] = 8 * x[n - 1] + x[n];\n for (i = 1; i < n; ++i) m = a[i] / b[i - 1], b[i] -= m, r[i] -= m * r[i - 1];\n a[n - 1] = r[n - 1] / b[n - 1];\n for (i = n - 2; i >= 0; --i) a[i] = (r[i] - a[i + 1]) / b[i];\n b[n - 1] = (x[n] + a[n - 1]) / 2;\n for (i = 0; i < n - 1; ++i) b[i] = 2 * x[i + 1] - a[i + 1];\n return [a, b];\n}\n\nfunction natural(context) {\n return new Natural(context);\n}\n\nfunction Step(context, t) {\n this._context = context;\n this._t = t;\n}\n\nStep.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x = this._y = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n if (0 < this._t && this._t < 1 && this._point === 2) this._context.lineTo(this._x, this._y);\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n if (this._line >= 0) this._t = 1 - this._t, this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; // proceed\n default: {\n if (this._t <= 0) {\n this._context.lineTo(this._x, y);\n this._context.lineTo(x, y);\n } else {\n var x1 = this._x * (1 - this._t) + x * this._t;\n this._context.lineTo(x1, this._y);\n this._context.lineTo(x1, y);\n }\n break;\n }\n }\n this._x = x, this._y = y;\n }\n};\n\nfunction step(context) {\n return new Step(context, 0.5);\n}\n\nfunction stepBefore(context) {\n return new Step(context, 0);\n}\n\nfunction stepAfter(context) {\n return new Step(context, 1);\n}\n\nfunction none(series, order) {\n if (!((n = series.length) > 1)) return;\n for (var i = 1, j, s0, s1 = series[order[0]], n, m = s1.length; i < n; ++i) {\n s0 = s1, s1 = series[order[i]];\n for (j = 0; j < m; ++j) {\n s1[j][1] += s1[j][0] = isNaN(s0[j][1]) ? s0[j][0] : s0[j][1];\n }\n }\n}\n\nfunction none$1(series) {\n var n = series.length, o = new Array(n);\n while (--n >= 0) o[n] = n;\n return o;\n}\n\nfunction stackValue(d, key) {\n return d[key];\n}\n\nfunction stack() {\n var keys = constant([]),\n order = none$1,\n offset = none,\n value = stackValue;\n\n function stack(data) {\n var kz = keys.apply(this, arguments),\n i,\n m = data.length,\n n = kz.length,\n sz = new Array(n),\n oz;\n\n for (i = 0; i < n; ++i) {\n for (var ki = kz[i], si = sz[i] = new Array(m), j = 0, sij; j < m; ++j) {\n si[j] = sij = [0, +value(data[j], ki, j, data)];\n sij.data = data[j];\n }\n si.key = ki;\n }\n\n for (i = 0, oz = order(sz); i < n; ++i) {\n sz[oz[i]].index = i;\n }\n\n offset(sz, oz);\n return sz;\n }\n\n stack.keys = function(_) {\n return arguments.length ? (keys = typeof _ === \"function\" ? _ : constant(slice.call(_)), stack) : keys;\n };\n\n stack.value = function(_) {\n return arguments.length ? (value = typeof _ === \"function\" ? _ : constant(+_), stack) : value;\n };\n\n stack.order = function(_) {\n return arguments.length ? (order = _ == null ? none$1 : typeof _ === \"function\" ? _ : constant(slice.call(_)), stack) : order;\n };\n\n stack.offset = function(_) {\n return arguments.length ? (offset = _ == null ? none : _, stack) : offset;\n };\n\n return stack;\n}\n\nfunction expand(series, order) {\n if (!((n = series.length) > 0)) return;\n for (var i, n, j = 0, m = series[0].length, y; j < m; ++j) {\n for (y = i = 0; i < n; ++i) y += series[i][j][1] || 0;\n if (y) for (i = 0; i < n; ++i) series[i][j][1] /= y;\n }\n none(series, order);\n}\n\nfunction diverging(series, order) {\n if (!((n = series.length) > 0)) return;\n for (var i, j = 0, d, dy, yp, yn, n, m = series[order[0]].length; j < m; ++j) {\n for (yp = yn = 0, i = 0; i < n; ++i) {\n if ((dy = (d = series[order[i]][j])[1] - d[0]) > 0) {\n d[0] = yp, d[1] = yp += dy;\n } else if (dy < 0) {\n d[1] = yn, d[0] = yn += dy;\n } else {\n d[0] = 0, d[1] = dy;\n }\n }\n }\n}\n\nfunction silhouette(series, order) {\n if (!((n = series.length) > 0)) return;\n for (var j = 0, s0 = series[order[0]], n, m = s0.length; j < m; ++j) {\n for (var i = 0, y = 0; i < n; ++i) y += series[i][j][1] || 0;\n s0[j][1] += s0[j][0] = -y / 2;\n }\n none(series, order);\n}\n\nfunction wiggle(series, order) {\n if (!((n = series.length) > 0) || !((m = (s0 = series[order[0]]).length) > 0)) return;\n for (var y = 0, j = 1, s0, m, n; j < m; ++j) {\n for (var i = 0, s1 = 0, s2 = 0; i < n; ++i) {\n var si = series[order[i]],\n sij0 = si[j][1] || 0,\n sij1 = si[j - 1][1] || 0,\n s3 = (sij0 - sij1) / 2;\n for (var k = 0; k < i; ++k) {\n var sk = series[order[k]],\n skj0 = sk[j][1] || 0,\n skj1 = sk[j - 1][1] || 0;\n s3 += skj0 - skj1;\n }\n s1 += sij0, s2 += s3 * sij0;\n }\n s0[j - 1][1] += s0[j - 1][0] = y;\n if (s1) y -= s2 / s1;\n }\n s0[j - 1][1] += s0[j - 1][0] = y;\n none(series, order);\n}\n\nfunction appearance(series) {\n var peaks = series.map(peak);\n return none$1(series).sort(function(a, b) { return peaks[a] - peaks[b]; });\n}\n\nfunction peak(series) {\n var i = -1, j = 0, n = series.length, vi, vj = -Infinity;\n while (++i < n) if ((vi = +series[i][1]) > vj) vj = vi, j = i;\n return j;\n}\n\nfunction ascending(series) {\n var sums = series.map(sum);\n return none$1(series).sort(function(a, b) { return sums[a] - sums[b]; });\n}\n\nfunction sum(series) {\n var s = 0, i = -1, n = series.length, v;\n while (++i < n) if (v = +series[i][1]) s += v;\n return s;\n}\n\nfunction descending$1(series) {\n return ascending(series).reverse();\n}\n\nfunction insideOut(series) {\n var n = series.length,\n i,\n j,\n sums = series.map(sum),\n order = appearance(series),\n top = 0,\n bottom = 0,\n tops = [],\n bottoms = [];\n\n for (i = 0; i < n; ++i) {\n j = order[i];\n if (top < bottom) {\n top += sums[j];\n tops.push(j);\n } else {\n bottom += sums[j];\n bottoms.push(j);\n }\n }\n\n return bottoms.reverse().concat(tops);\n}\n\nfunction reverse(series) {\n return none$1(series).reverse();\n}\n\nexports.arc = arc;\nexports.area = area;\nexports.areaRadial = areaRadial;\nexports.curveBasis = basis;\nexports.curveBasisClosed = basisClosed;\nexports.curveBasisOpen = basisOpen;\nexports.curveBundle = bundle;\nexports.curveCardinal = cardinal;\nexports.curveCardinalClosed = cardinalClosed;\nexports.curveCardinalOpen = cardinalOpen;\nexports.curveCatmullRom = catmullRom;\nexports.curveCatmullRomClosed = catmullRomClosed;\nexports.curveCatmullRomOpen = catmullRomOpen;\nexports.curveLinear = curveLinear;\nexports.curveLinearClosed = linearClosed;\nexports.curveMonotoneX = monotoneX;\nexports.curveMonotoneY = monotoneY;\nexports.curveNatural = natural;\nexports.curveStep = step;\nexports.curveStepAfter = stepAfter;\nexports.curveStepBefore = stepBefore;\nexports.line = line;\nexports.lineRadial = lineRadial$1;\nexports.linkHorizontal = linkHorizontal;\nexports.linkRadial = linkRadial;\nexports.linkVertical = linkVertical;\nexports.pie = pie;\nexports.pointRadial = pointRadial;\nexports.radialArea = areaRadial;\nexports.radialLine = lineRadial$1;\nexports.stack = stack;\nexports.stackOffsetDiverging = diverging;\nexports.stackOffsetExpand = expand;\nexports.stackOffsetNone = none;\nexports.stackOffsetSilhouette = silhouette;\nexports.stackOffsetWiggle = wiggle;\nexports.stackOrderAppearance = appearance;\nexports.stackOrderAscending = ascending;\nexports.stackOrderDescending = descending$1;\nexports.stackOrderInsideOut = insideOut;\nexports.stackOrderNone = none$1;\nexports.stackOrderReverse = reverse;\nexports.symbol = symbol;\nexports.symbolCircle = circle;\nexports.symbolCross = cross;\nexports.symbolDiamond = diamond;\nexports.symbolSquare = square;\nexports.symbolStar = star;\nexports.symbolTriangle = triangle;\nexports.symbolWye = wye;\nexports.symbols = symbols;\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n}));\n\n},{\"d3-path\":117}],120:[function(_dereq_,module,exports){\n// https://d3js.org/d3-time-format/ v2.2.3 Copyright 2019 Mike Bostock\n(function (global, factory) {\ntypeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, _dereq_('d3-time')) :\ntypeof define === 'function' && define.amd ? define(['exports', 'd3-time'], factory) :\n(global = global || self, factory(global.d3 = global.d3 || {}, global.d3));\n}(this, function (exports, d3Time) { 'use strict';\n\nfunction localDate(d) {\n if (0 <= d.y && d.y < 100) {\n var date = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L);\n date.setFullYear(d.y);\n return date;\n }\n return new Date(d.y, d.m, d.d, d.H, d.M, d.S, d.L);\n}\n\nfunction utcDate(d) {\n if (0 <= d.y && d.y < 100) {\n var date = new Date(Date.UTC(-1, d.m, d.d, d.H, d.M, d.S, d.L));\n date.setUTCFullYear(d.y);\n return date;\n }\n return new Date(Date.UTC(d.y, d.m, d.d, d.H, d.M, d.S, d.L));\n}\n\nfunction newDate(y, m, d) {\n return {y: y, m: m, d: d, H: 0, M: 0, S: 0, L: 0};\n}\n\nfunction formatLocale(locale) {\n var locale_dateTime = locale.dateTime,\n locale_date = locale.date,\n locale_time = locale.time,\n locale_periods = locale.periods,\n locale_weekdays = locale.days,\n locale_shortWeekdays = locale.shortDays,\n locale_months = locale.months,\n locale_shortMonths = locale.shortMonths;\n\n var periodRe = formatRe(locale_periods),\n periodLookup = formatLookup(locale_periods),\n weekdayRe = formatRe(locale_weekdays),\n weekdayLookup = formatLookup(locale_weekdays),\n shortWeekdayRe = formatRe(locale_shortWeekdays),\n shortWeekdayLookup = formatLookup(locale_shortWeekdays),\n monthRe = formatRe(locale_months),\n monthLookup = formatLookup(locale_months),\n shortMonthRe = formatRe(locale_shortMonths),\n shortMonthLookup = formatLookup(locale_shortMonths);\n\n var formats = {\n \"a\": formatShortWeekday,\n \"A\": formatWeekday,\n \"b\": formatShortMonth,\n \"B\": formatMonth,\n \"c\": null,\n \"d\": formatDayOfMonth,\n \"e\": formatDayOfMonth,\n \"f\": formatMicroseconds,\n \"H\": formatHour24,\n \"I\": formatHour12,\n \"j\": formatDayOfYear,\n \"L\": formatMilliseconds,\n \"m\": formatMonthNumber,\n \"M\": formatMinutes,\n \"p\": formatPeriod,\n \"q\": formatQuarter,\n \"Q\": formatUnixTimestamp,\n \"s\": formatUnixTimestampSeconds,\n \"S\": formatSeconds,\n \"u\": formatWeekdayNumberMonday,\n \"U\": formatWeekNumberSunday,\n \"V\": formatWeekNumberISO,\n \"w\": formatWeekdayNumberSunday,\n \"W\": formatWeekNumberMonday,\n \"x\": null,\n \"X\": null,\n \"y\": formatYear,\n \"Y\": formatFullYear,\n \"Z\": formatZone,\n \"%\": formatLiteralPercent\n };\n\n var utcFormats = {\n \"a\": formatUTCShortWeekday,\n \"A\": formatUTCWeekday,\n \"b\": formatUTCShortMonth,\n \"B\": formatUTCMonth,\n \"c\": null,\n \"d\": formatUTCDayOfMonth,\n \"e\": formatUTCDayOfMonth,\n \"f\": formatUTCMicroseconds,\n \"H\": formatUTCHour24,\n \"I\": formatUTCHour12,\n \"j\": formatUTCDayOfYear,\n \"L\": formatUTCMilliseconds,\n \"m\": formatUTCMonthNumber,\n \"M\": formatUTCMinutes,\n \"p\": formatUTCPeriod,\n \"q\": formatUTCQuarter,\n \"Q\": formatUnixTimestamp,\n \"s\": formatUnixTimestampSeconds,\n \"S\": formatUTCSeconds,\n \"u\": formatUTCWeekdayNumberMonday,\n \"U\": formatUTCWeekNumberSunday,\n \"V\": formatUTCWeekNumberISO,\n \"w\": formatUTCWeekdayNumberSunday,\n \"W\": formatUTCWeekNumberMonday,\n \"x\": null,\n \"X\": null,\n \"y\": formatUTCYear,\n \"Y\": formatUTCFullYear,\n \"Z\": formatUTCZone,\n \"%\": formatLiteralPercent\n };\n\n var parses = {\n \"a\": parseShortWeekday,\n \"A\": parseWeekday,\n \"b\": parseShortMonth,\n \"B\": parseMonth,\n \"c\": parseLocaleDateTime,\n \"d\": parseDayOfMonth,\n \"e\": parseDayOfMonth,\n \"f\": parseMicroseconds,\n \"H\": parseHour24,\n \"I\": parseHour24,\n \"j\": parseDayOfYear,\n \"L\": parseMilliseconds,\n \"m\": parseMonthNumber,\n \"M\": parseMinutes,\n \"p\": parsePeriod,\n \"q\": parseQuarter,\n \"Q\": parseUnixTimestamp,\n \"s\": parseUnixTimestampSeconds,\n \"S\": parseSeconds,\n \"u\": parseWeekdayNumberMonday,\n \"U\": parseWeekNumberSunday,\n \"V\": parseWeekNumberISO,\n \"w\": parseWeekdayNumberSunday,\n \"W\": parseWeekNumberMonday,\n \"x\": parseLocaleDate,\n \"X\": parseLocaleTime,\n \"y\": parseYear,\n \"Y\": parseFullYear,\n \"Z\": parseZone,\n \"%\": parseLiteralPercent\n };\n\n // These recursive directive definitions must be deferred.\n formats.x = newFormat(locale_date, formats);\n formats.X = newFormat(locale_time, formats);\n formats.c = newFormat(locale_dateTime, formats);\n utcFormats.x = newFormat(locale_date, utcFormats);\n utcFormats.X = newFormat(locale_time, utcFormats);\n utcFormats.c = newFormat(locale_dateTime, utcFormats);\n\n function newFormat(specifier, formats) {\n return function(date) {\n var string = [],\n i = -1,\n j = 0,\n n = specifier.length,\n c,\n pad,\n format;\n\n if (!(date instanceof Date)) date = new Date(+date);\n\n while (++i < n) {\n if (specifier.charCodeAt(i) === 37) {\n string.push(specifier.slice(j, i));\n if ((pad = pads[c = specifier.charAt(++i)]) != null) c = specifier.charAt(++i);\n else pad = c === \"e\" ? \" \" : \"0\";\n if (format = formats[c]) c = format(date, pad);\n string.push(c);\n j = i + 1;\n }\n }\n\n string.push(specifier.slice(j, i));\n return string.join(\"\");\n };\n }\n\n function newParse(specifier, Z) {\n return function(string) {\n var d = newDate(1900, undefined, 1),\n i = parseSpecifier(d, specifier, string += \"\", 0),\n week, day;\n if (i != string.length) return null;\n\n // If a UNIX timestamp is specified, return it.\n if (\"Q\" in d) return new Date(d.Q);\n if (\"s\" in d) return new Date(d.s * 1000 + (\"L\" in d ? d.L : 0));\n\n // If this is utcParse, never use the local timezone.\n if (Z && !(\"Z\" in d)) d.Z = 0;\n\n // The am-pm flag is 0 for AM, and 1 for PM.\n if (\"p\" in d) d.H = d.H % 12 + d.p * 12;\n\n // If the month was not specified, inherit from the quarter.\n if (d.m === undefined) d.m = \"q\" in d ? d.q : 0;\n\n // Convert day-of-week and week-of-year to day-of-year.\n if (\"V\" in d) {\n if (d.V < 1 || d.V > 53) return null;\n if (!(\"w\" in d)) d.w = 1;\n if (\"Z\" in d) {\n week = utcDate(newDate(d.y, 0, 1)), day = week.getUTCDay();\n week = day > 4 || day === 0 ? d3Time.utcMonday.ceil(week) : d3Time.utcMonday(week);\n week = d3Time.utcDay.offset(week, (d.V - 1) * 7);\n d.y = week.getUTCFullYear();\n d.m = week.getUTCMonth();\n d.d = week.getUTCDate() + (d.w + 6) % 7;\n } else {\n week = localDate(newDate(d.y, 0, 1)), day = week.getDay();\n week = day > 4 || day === 0 ? d3Time.timeMonday.ceil(week) : d3Time.timeMonday(week);\n week = d3Time.timeDay.offset(week, (d.V - 1) * 7);\n d.y = week.getFullYear();\n d.m = week.getMonth();\n d.d = week.getDate() + (d.w + 6) % 7;\n }\n } else if (\"W\" in d || \"U\" in d) {\n if (!(\"w\" in d)) d.w = \"u\" in d ? d.u % 7 : \"W\" in d ? 1 : 0;\n day = \"Z\" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay();\n d.m = 0;\n d.d = \"W\" in d ? (d.w + 6) % 7 + d.W * 7 - (day + 5) % 7 : d.w + d.U * 7 - (day + 6) % 7;\n }\n\n // If a time zone is specified, all fields are interpreted as UTC and then\n // offset according to the specified time zone.\n if (\"Z\" in d) {\n d.H += d.Z / 100 | 0;\n d.M += d.Z % 100;\n return utcDate(d);\n }\n\n // Otherwise, all fields are in local time.\n return localDate(d);\n };\n }\n\n function parseSpecifier(d, specifier, string, j) {\n var i = 0,\n n = specifier.length,\n m = string.length,\n c,\n parse;\n\n while (i < n) {\n if (j >= m) return -1;\n c = specifier.charCodeAt(i++);\n if (c === 37) {\n c = specifier.charAt(i++);\n parse = parses[c in pads ? specifier.charAt(i++) : c];\n if (!parse || ((j = parse(d, string, j)) < 0)) return -1;\n } else if (c != string.charCodeAt(j++)) {\n return -1;\n }\n }\n\n return j;\n }\n\n function parsePeriod(d, string, i) {\n var n = periodRe.exec(string.slice(i));\n return n ? (d.p = periodLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseShortWeekday(d, string, i) {\n var n = shortWeekdayRe.exec(string.slice(i));\n return n ? (d.w = shortWeekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseWeekday(d, string, i) {\n var n = weekdayRe.exec(string.slice(i));\n return n ? (d.w = weekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseShortMonth(d, string, i) {\n var n = shortMonthRe.exec(string.slice(i));\n return n ? (d.m = shortMonthLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseMonth(d, string, i) {\n var n = monthRe.exec(string.slice(i));\n return n ? (d.m = monthLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseLocaleDateTime(d, string, i) {\n return parseSpecifier(d, locale_dateTime, string, i);\n }\n\n function parseLocaleDate(d, string, i) {\n return parseSpecifier(d, locale_date, string, i);\n }\n\n function parseLocaleTime(d, string, i) {\n return parseSpecifier(d, locale_time, string, i);\n }\n\n function formatShortWeekday(d) {\n return locale_shortWeekdays[d.getDay()];\n }\n\n function formatWeekday(d) {\n return locale_weekdays[d.getDay()];\n }\n\n function formatShortMonth(d) {\n return locale_shortMonths[d.getMonth()];\n }\n\n function formatMonth(d) {\n return locale_months[d.getMonth()];\n }\n\n function formatPeriod(d) {\n return locale_periods[+(d.getHours() >= 12)];\n }\n\n function formatQuarter(d) {\n return 1 + ~~(d.getMonth() / 3);\n }\n\n function formatUTCShortWeekday(d) {\n return locale_shortWeekdays[d.getUTCDay()];\n }\n\n function formatUTCWeekday(d) {\n return locale_weekdays[d.getUTCDay()];\n }\n\n function formatUTCShortMonth(d) {\n return locale_shortMonths[d.getUTCMonth()];\n }\n\n function formatUTCMonth(d) {\n return locale_months[d.getUTCMonth()];\n }\n\n function formatUTCPeriod(d) {\n return locale_periods[+(d.getUTCHours() >= 12)];\n }\n\n function formatUTCQuarter(d) {\n return 1 + ~~(d.getUTCMonth() / 3);\n }\n\n return {\n format: function(specifier) {\n var f = newFormat(specifier += \"\", formats);\n f.toString = function() { return specifier; };\n return f;\n },\n parse: function(specifier) {\n var p = newParse(specifier += \"\", false);\n p.toString = function() { return specifier; };\n return p;\n },\n utcFormat: function(specifier) {\n var f = newFormat(specifier += \"\", utcFormats);\n f.toString = function() { return specifier; };\n return f;\n },\n utcParse: function(specifier) {\n var p = newParse(specifier += \"\", true);\n p.toString = function() { return specifier; };\n return p;\n }\n };\n}\n\nvar pads = {\"-\": \"\", \"_\": \" \", \"0\": \"0\"},\n numberRe = /^\\s*\\d+/, // note: ignores next directive\n percentRe = /^%/,\n requoteRe = /[\\\\^$*+?|[\\]().{}]/g;\n\nfunction pad(value, fill, width) {\n var sign = value < 0 ? \"-\" : \"\",\n string = (sign ? -value : value) + \"\",\n length = string.length;\n return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string);\n}\n\nfunction requote(s) {\n return s.replace(requoteRe, \"\\\\$&\");\n}\n\nfunction formatRe(names) {\n return new RegExp(\"^(?:\" + names.map(requote).join(\"|\") + \")\", \"i\");\n}\n\nfunction formatLookup(names) {\n var map = {}, i = -1, n = names.length;\n while (++i < n) map[names[i].toLowerCase()] = i;\n return map;\n}\n\nfunction parseWeekdayNumberSunday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 1));\n return n ? (d.w = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseWeekdayNumberMonday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 1));\n return n ? (d.u = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseWeekNumberSunday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.U = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseWeekNumberISO(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.V = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseWeekNumberMonday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.W = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseFullYear(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 4));\n return n ? (d.y = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseYear(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.y = +n[0] + (+n[0] > 68 ? 1900 : 2000), i + n[0].length) : -1;\n}\n\nfunction parseZone(d, string, i) {\n var n = /^(Z)|([+-]\\d\\d)(?::?(\\d\\d))?/.exec(string.slice(i, i + 6));\n return n ? (d.Z = n[1] ? 0 : -(n[2] + (n[3] || \"00\")), i + n[0].length) : -1;\n}\n\nfunction parseQuarter(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 1));\n return n ? (d.q = n[0] * 3 - 3, i + n[0].length) : -1;\n}\n\nfunction parseMonthNumber(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.m = n[0] - 1, i + n[0].length) : -1;\n}\n\nfunction parseDayOfMonth(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.d = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseDayOfYear(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 3));\n return n ? (d.m = 0, d.d = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseHour24(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.H = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseMinutes(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.M = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseSeconds(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.S = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseMilliseconds(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 3));\n return n ? (d.L = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseMicroseconds(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 6));\n return n ? (d.L = Math.floor(n[0] / 1000), i + n[0].length) : -1;\n}\n\nfunction parseLiteralPercent(d, string, i) {\n var n = percentRe.exec(string.slice(i, i + 1));\n return n ? i + n[0].length : -1;\n}\n\nfunction parseUnixTimestamp(d, string, i) {\n var n = numberRe.exec(string.slice(i));\n return n ? (d.Q = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseUnixTimestampSeconds(d, string, i) {\n var n = numberRe.exec(string.slice(i));\n return n ? (d.s = +n[0], i + n[0].length) : -1;\n}\n\nfunction formatDayOfMonth(d, p) {\n return pad(d.getDate(), p, 2);\n}\n\nfunction formatHour24(d, p) {\n return pad(d.getHours(), p, 2);\n}\n\nfunction formatHour12(d, p) {\n return pad(d.getHours() % 12 || 12, p, 2);\n}\n\nfunction formatDayOfYear(d, p) {\n return pad(1 + d3Time.timeDay.count(d3Time.timeYear(d), d), p, 3);\n}\n\nfunction formatMilliseconds(d, p) {\n return pad(d.getMilliseconds(), p, 3);\n}\n\nfunction formatMicroseconds(d, p) {\n return formatMilliseconds(d, p) + \"000\";\n}\n\nfunction formatMonthNumber(d, p) {\n return pad(d.getMonth() + 1, p, 2);\n}\n\nfunction formatMinutes(d, p) {\n return pad(d.getMinutes(), p, 2);\n}\n\nfunction formatSeconds(d, p) {\n return pad(d.getSeconds(), p, 2);\n}\n\nfunction formatWeekdayNumberMonday(d) {\n var day = d.getDay();\n return day === 0 ? 7 : day;\n}\n\nfunction formatWeekNumberSunday(d, p) {\n return pad(d3Time.timeSunday.count(d3Time.timeYear(d) - 1, d), p, 2);\n}\n\nfunction formatWeekNumberISO(d, p) {\n var day = d.getDay();\n d = (day >= 4 || day === 0) ? d3Time.timeThursday(d) : d3Time.timeThursday.ceil(d);\n return pad(d3Time.timeThursday.count(d3Time.timeYear(d), d) + (d3Time.timeYear(d).getDay() === 4), p, 2);\n}\n\nfunction formatWeekdayNumberSunday(d) {\n return d.getDay();\n}\n\nfunction formatWeekNumberMonday(d, p) {\n return pad(d3Time.timeMonday.count(d3Time.timeYear(d) - 1, d), p, 2);\n}\n\nfunction formatYear(d, p) {\n return pad(d.getFullYear() % 100, p, 2);\n}\n\nfunction formatFullYear(d, p) {\n return pad(d.getFullYear() % 10000, p, 4);\n}\n\nfunction formatZone(d) {\n var z = d.getTimezoneOffset();\n return (z > 0 ? \"-\" : (z *= -1, \"+\"))\n + pad(z / 60 | 0, \"0\", 2)\n + pad(z % 60, \"0\", 2);\n}\n\nfunction formatUTCDayOfMonth(d, p) {\n return pad(d.getUTCDate(), p, 2);\n}\n\nfunction formatUTCHour24(d, p) {\n return pad(d.getUTCHours(), p, 2);\n}\n\nfunction formatUTCHour12(d, p) {\n return pad(d.getUTCHours() % 12 || 12, p, 2);\n}\n\nfunction formatUTCDayOfYear(d, p) {\n return pad(1 + d3Time.utcDay.count(d3Time.utcYear(d), d), p, 3);\n}\n\nfunction formatUTCMilliseconds(d, p) {\n return pad(d.getUTCMilliseconds(), p, 3);\n}\n\nfunction formatUTCMicroseconds(d, p) {\n return formatUTCMilliseconds(d, p) + \"000\";\n}\n\nfunction formatUTCMonthNumber(d, p) {\n return pad(d.getUTCMonth() + 1, p, 2);\n}\n\nfunction formatUTCMinutes(d, p) {\n return pad(d.getUTCMinutes(), p, 2);\n}\n\nfunction formatUTCSeconds(d, p) {\n return pad(d.getUTCSeconds(), p, 2);\n}\n\nfunction formatUTCWeekdayNumberMonday(d) {\n var dow = d.getUTCDay();\n return dow === 0 ? 7 : dow;\n}\n\nfunction formatUTCWeekNumberSunday(d, p) {\n return pad(d3Time.utcSunday.count(d3Time.utcYear(d) - 1, d), p, 2);\n}\n\nfunction formatUTCWeekNumberISO(d, p) {\n var day = d.getUTCDay();\n d = (day >= 4 || day === 0) ? d3Time.utcThursday(d) : d3Time.utcThursday.ceil(d);\n return pad(d3Time.utcThursday.count(d3Time.utcYear(d), d) + (d3Time.utcYear(d).getUTCDay() === 4), p, 2);\n}\n\nfunction formatUTCWeekdayNumberSunday(d) {\n return d.getUTCDay();\n}\n\nfunction formatUTCWeekNumberMonday(d, p) {\n return pad(d3Time.utcMonday.count(d3Time.utcYear(d) - 1, d), p, 2);\n}\n\nfunction formatUTCYear(d, p) {\n return pad(d.getUTCFullYear() % 100, p, 2);\n}\n\nfunction formatUTCFullYear(d, p) {\n return pad(d.getUTCFullYear() % 10000, p, 4);\n}\n\nfunction formatUTCZone() {\n return \"+0000\";\n}\n\nfunction formatLiteralPercent() {\n return \"%\";\n}\n\nfunction formatUnixTimestamp(d) {\n return +d;\n}\n\nfunction formatUnixTimestampSeconds(d) {\n return Math.floor(+d / 1000);\n}\n\nvar locale;\n\ndefaultLocale({\n dateTime: \"%x, %X\",\n date: \"%-m/%-d/%Y\",\n time: \"%-I:%M:%S %p\",\n periods: [\"AM\", \"PM\"],\n days: [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"],\n shortDays: [\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"],\n months: [\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\"],\n shortMonths: [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"]\n});\n\nfunction defaultLocale(definition) {\n locale = formatLocale(definition);\n exports.timeFormat = locale.format;\n exports.timeParse = locale.parse;\n exports.utcFormat = locale.utcFormat;\n exports.utcParse = locale.utcParse;\n return locale;\n}\n\nvar isoSpecifier = \"%Y-%m-%dT%H:%M:%S.%LZ\";\n\nfunction formatIsoNative(date) {\n return date.toISOString();\n}\n\nvar formatIso = Date.prototype.toISOString\n ? formatIsoNative\n : exports.utcFormat(isoSpecifier);\n\nfunction parseIsoNative(string) {\n var date = new Date(string);\n return isNaN(date) ? null : date;\n}\n\nvar parseIso = +new Date(\"2000-01-01T00:00:00.000Z\")\n ? parseIsoNative\n : exports.utcParse(isoSpecifier);\n\nexports.isoFormat = formatIso;\nexports.isoParse = parseIso;\nexports.timeFormatDefaultLocale = defaultLocale;\nexports.timeFormatLocale = formatLocale;\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n}));\n\n},{\"d3-time\":121}],121:[function(_dereq_,module,exports){\n// https://d3js.org/d3-time/ v1.1.0 Copyright 2019 Mike Bostock\n(function (global, factory) {\ntypeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :\ntypeof define === 'function' && define.amd ? define(['exports'], factory) :\n(global = global || self, factory(global.d3 = global.d3 || {}));\n}(this, function (exports) { 'use strict';\n\nvar t0 = new Date,\n t1 = new Date;\n\nfunction newInterval(floori, offseti, count, field) {\n\n function interval(date) {\n return floori(date = arguments.length === 0 ? new Date : new Date(+date)), date;\n }\n\n interval.floor = function(date) {\n return floori(date = new Date(+date)), date;\n };\n\n interval.ceil = function(date) {\n return floori(date = new Date(date - 1)), offseti(date, 1), floori(date), date;\n };\n\n interval.round = function(date) {\n var d0 = interval(date),\n d1 = interval.ceil(date);\n return date - d0 < d1 - date ? d0 : d1;\n };\n\n interval.offset = function(date, step) {\n return offseti(date = new Date(+date), step == null ? 1 : Math.floor(step)), date;\n };\n\n interval.range = function(start, stop, step) {\n var range = [], previous;\n start = interval.ceil(start);\n step = step == null ? 1 : Math.floor(step);\n if (!(start < stop) || !(step > 0)) return range; // also handles Invalid Date\n do range.push(previous = new Date(+start)), offseti(start, step), floori(start);\n while (previous < start && start < stop);\n return range;\n };\n\n interval.filter = function(test) {\n return newInterval(function(date) {\n if (date >= date) while (floori(date), !test(date)) date.setTime(date - 1);\n }, function(date, step) {\n if (date >= date) {\n if (step < 0) while (++step <= 0) {\n while (offseti(date, -1), !test(date)) {} // eslint-disable-line no-empty\n } else while (--step >= 0) {\n while (offseti(date, +1), !test(date)) {} // eslint-disable-line no-empty\n }\n }\n });\n };\n\n if (count) {\n interval.count = function(start, end) {\n t0.setTime(+start), t1.setTime(+end);\n floori(t0), floori(t1);\n return Math.floor(count(t0, t1));\n };\n\n interval.every = function(step) {\n step = Math.floor(step);\n return !isFinite(step) || !(step > 0) ? null\n : !(step > 1) ? interval\n : interval.filter(field\n ? function(d) { return field(d) % step === 0; }\n : function(d) { return interval.count(0, d) % step === 0; });\n };\n }\n\n return interval;\n}\n\nvar millisecond = newInterval(function() {\n // noop\n}, function(date, step) {\n date.setTime(+date + step);\n}, function(start, end) {\n return end - start;\n});\n\n// An optimized implementation for this simple case.\nmillisecond.every = function(k) {\n k = Math.floor(k);\n if (!isFinite(k) || !(k > 0)) return null;\n if (!(k > 1)) return millisecond;\n return newInterval(function(date) {\n date.setTime(Math.floor(date / k) * k);\n }, function(date, step) {\n date.setTime(+date + step * k);\n }, function(start, end) {\n return (end - start) / k;\n });\n};\nvar milliseconds = millisecond.range;\n\nvar durationSecond = 1e3;\nvar durationMinute = 6e4;\nvar durationHour = 36e5;\nvar durationDay = 864e5;\nvar durationWeek = 6048e5;\n\nvar second = newInterval(function(date) {\n date.setTime(date - date.getMilliseconds());\n}, function(date, step) {\n date.setTime(+date + step * durationSecond);\n}, function(start, end) {\n return (end - start) / durationSecond;\n}, function(date) {\n return date.getUTCSeconds();\n});\nvar seconds = second.range;\n\nvar minute = newInterval(function(date) {\n date.setTime(date - date.getMilliseconds() - date.getSeconds() * durationSecond);\n}, function(date, step) {\n date.setTime(+date + step * durationMinute);\n}, function(start, end) {\n return (end - start) / durationMinute;\n}, function(date) {\n return date.getMinutes();\n});\nvar minutes = minute.range;\n\nvar hour = newInterval(function(date) {\n date.setTime(date - date.getMilliseconds() - date.getSeconds() * durationSecond - date.getMinutes() * durationMinute);\n}, function(date, step) {\n date.setTime(+date + step * durationHour);\n}, function(start, end) {\n return (end - start) / durationHour;\n}, function(date) {\n return date.getHours();\n});\nvar hours = hour.range;\n\nvar day = newInterval(function(date) {\n date.setHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setDate(date.getDate() + step);\n}, function(start, end) {\n return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute) / durationDay;\n}, function(date) {\n return date.getDate() - 1;\n});\nvar days = day.range;\n\nfunction weekday(i) {\n return newInterval(function(date) {\n date.setDate(date.getDate() - (date.getDay() + 7 - i) % 7);\n date.setHours(0, 0, 0, 0);\n }, function(date, step) {\n date.setDate(date.getDate() + step * 7);\n }, function(start, end) {\n return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute) / durationWeek;\n });\n}\n\nvar sunday = weekday(0);\nvar monday = weekday(1);\nvar tuesday = weekday(2);\nvar wednesday = weekday(3);\nvar thursday = weekday(4);\nvar friday = weekday(5);\nvar saturday = weekday(6);\n\nvar sundays = sunday.range;\nvar mondays = monday.range;\nvar tuesdays = tuesday.range;\nvar wednesdays = wednesday.range;\nvar thursdays = thursday.range;\nvar fridays = friday.range;\nvar saturdays = saturday.range;\n\nvar month = newInterval(function(date) {\n date.setDate(1);\n date.setHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setMonth(date.getMonth() + step);\n}, function(start, end) {\n return end.getMonth() - start.getMonth() + (end.getFullYear() - start.getFullYear()) * 12;\n}, function(date) {\n return date.getMonth();\n});\nvar months = month.range;\n\nvar year = newInterval(function(date) {\n date.setMonth(0, 1);\n date.setHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setFullYear(date.getFullYear() + step);\n}, function(start, end) {\n return end.getFullYear() - start.getFullYear();\n}, function(date) {\n return date.getFullYear();\n});\n\n// An optimized implementation for this simple case.\nyear.every = function(k) {\n return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : newInterval(function(date) {\n date.setFullYear(Math.floor(date.getFullYear() / k) * k);\n date.setMonth(0, 1);\n date.setHours(0, 0, 0, 0);\n }, function(date, step) {\n date.setFullYear(date.getFullYear() + step * k);\n });\n};\nvar years = year.range;\n\nvar utcMinute = newInterval(function(date) {\n date.setUTCSeconds(0, 0);\n}, function(date, step) {\n date.setTime(+date + step * durationMinute);\n}, function(start, end) {\n return (end - start) / durationMinute;\n}, function(date) {\n return date.getUTCMinutes();\n});\nvar utcMinutes = utcMinute.range;\n\nvar utcHour = newInterval(function(date) {\n date.setUTCMinutes(0, 0, 0);\n}, function(date, step) {\n date.setTime(+date + step * durationHour);\n}, function(start, end) {\n return (end - start) / durationHour;\n}, function(date) {\n return date.getUTCHours();\n});\nvar utcHours = utcHour.range;\n\nvar utcDay = newInterval(function(date) {\n date.setUTCHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setUTCDate(date.getUTCDate() + step);\n}, function(start, end) {\n return (end - start) / durationDay;\n}, function(date) {\n return date.getUTCDate() - 1;\n});\nvar utcDays = utcDay.range;\n\nfunction utcWeekday(i) {\n return newInterval(function(date) {\n date.setUTCDate(date.getUTCDate() - (date.getUTCDay() + 7 - i) % 7);\n date.setUTCHours(0, 0, 0, 0);\n }, function(date, step) {\n date.setUTCDate(date.getUTCDate() + step * 7);\n }, function(start, end) {\n return (end - start) / durationWeek;\n });\n}\n\nvar utcSunday = utcWeekday(0);\nvar utcMonday = utcWeekday(1);\nvar utcTuesday = utcWeekday(2);\nvar utcWednesday = utcWeekday(3);\nvar utcThursday = utcWeekday(4);\nvar utcFriday = utcWeekday(5);\nvar utcSaturday = utcWeekday(6);\n\nvar utcSundays = utcSunday.range;\nvar utcMondays = utcMonday.range;\nvar utcTuesdays = utcTuesday.range;\nvar utcWednesdays = utcWednesday.range;\nvar utcThursdays = utcThursday.range;\nvar utcFridays = utcFriday.range;\nvar utcSaturdays = utcSaturday.range;\n\nvar utcMonth = newInterval(function(date) {\n date.setUTCDate(1);\n date.setUTCHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setUTCMonth(date.getUTCMonth() + step);\n}, function(start, end) {\n return end.getUTCMonth() - start.getUTCMonth() + (end.getUTCFullYear() - start.getUTCFullYear()) * 12;\n}, function(date) {\n return date.getUTCMonth();\n});\nvar utcMonths = utcMonth.range;\n\nvar utcYear = newInterval(function(date) {\n date.setUTCMonth(0, 1);\n date.setUTCHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setUTCFullYear(date.getUTCFullYear() + step);\n}, function(start, end) {\n return end.getUTCFullYear() - start.getUTCFullYear();\n}, function(date) {\n return date.getUTCFullYear();\n});\n\n// An optimized implementation for this simple case.\nutcYear.every = function(k) {\n return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : newInterval(function(date) {\n date.setUTCFullYear(Math.floor(date.getUTCFullYear() / k) * k);\n date.setUTCMonth(0, 1);\n date.setUTCHours(0, 0, 0, 0);\n }, function(date, step) {\n date.setUTCFullYear(date.getUTCFullYear() + step * k);\n });\n};\nvar utcYears = utcYear.range;\n\nexports.timeDay = day;\nexports.timeDays = days;\nexports.timeFriday = friday;\nexports.timeFridays = fridays;\nexports.timeHour = hour;\nexports.timeHours = hours;\nexports.timeInterval = newInterval;\nexports.timeMillisecond = millisecond;\nexports.timeMilliseconds = milliseconds;\nexports.timeMinute = minute;\nexports.timeMinutes = minutes;\nexports.timeMonday = monday;\nexports.timeMondays = mondays;\nexports.timeMonth = month;\nexports.timeMonths = months;\nexports.timeSaturday = saturday;\nexports.timeSaturdays = saturdays;\nexports.timeSecond = second;\nexports.timeSeconds = seconds;\nexports.timeSunday = sunday;\nexports.timeSundays = sundays;\nexports.timeThursday = thursday;\nexports.timeThursdays = thursdays;\nexports.timeTuesday = tuesday;\nexports.timeTuesdays = tuesdays;\nexports.timeWednesday = wednesday;\nexports.timeWednesdays = wednesdays;\nexports.timeWeek = sunday;\nexports.timeWeeks = sundays;\nexports.timeYear = year;\nexports.timeYears = years;\nexports.utcDay = utcDay;\nexports.utcDays = utcDays;\nexports.utcFriday = utcFriday;\nexports.utcFridays = utcFridays;\nexports.utcHour = utcHour;\nexports.utcHours = utcHours;\nexports.utcMillisecond = millisecond;\nexports.utcMilliseconds = milliseconds;\nexports.utcMinute = utcMinute;\nexports.utcMinutes = utcMinutes;\nexports.utcMonday = utcMonday;\nexports.utcMondays = utcMondays;\nexports.utcMonth = utcMonth;\nexports.utcMonths = utcMonths;\nexports.utcSaturday = utcSaturday;\nexports.utcSaturdays = utcSaturdays;\nexports.utcSecond = second;\nexports.utcSeconds = seconds;\nexports.utcSunday = utcSunday;\nexports.utcSundays = utcSundays;\nexports.utcThursday = utcThursday;\nexports.utcThursdays = utcThursdays;\nexports.utcTuesday = utcTuesday;\nexports.utcTuesdays = utcTuesdays;\nexports.utcWednesday = utcWednesday;\nexports.utcWednesdays = utcWednesdays;\nexports.utcWeek = utcSunday;\nexports.utcWeeks = utcSundays;\nexports.utcYear = utcYear;\nexports.utcYears = utcYears;\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n}));\n\n},{}],122:[function(_dereq_,module,exports){\narguments[4][121][0].apply(exports,arguments)\n},{\"dup\":121}],123:[function(_dereq_,module,exports){\n// https://d3js.org/d3-timer/ v1.0.10 Copyright 2019 Mike Bostock\n(function (global, factory) {\ntypeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :\ntypeof define === 'function' && define.amd ? define(['exports'], factory) :\n(global = global || self, factory(global.d3 = global.d3 || {}));\n}(this, function (exports) { 'use strict';\n\nvar frame = 0, // is an animation frame pending?\n timeout = 0, // is a timeout pending?\n interval = 0, // are any timers active?\n pokeDelay = 1000, // how frequently we check for clock skew\n taskHead,\n taskTail,\n clockLast = 0,\n clockNow = 0,\n clockSkew = 0,\n clock = typeof performance === \"object\" && performance.now ? performance : Date,\n setFrame = typeof window === \"object\" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(f) { setTimeout(f, 17); };\n\nfunction now() {\n return clockNow || (setFrame(clearNow), clockNow = clock.now() + clockSkew);\n}\n\nfunction clearNow() {\n clockNow = 0;\n}\n\nfunction Timer() {\n this._call =\n this._time =\n this._next = null;\n}\n\nTimer.prototype = timer.prototype = {\n constructor: Timer,\n restart: function(callback, delay, time) {\n if (typeof callback !== \"function\") throw new TypeError(\"callback is not a function\");\n time = (time == null ? now() : +time) + (delay == null ? 0 : +delay);\n if (!this._next && taskTail !== this) {\n if (taskTail) taskTail._next = this;\n else taskHead = this;\n taskTail = this;\n }\n this._call = callback;\n this._time = time;\n sleep();\n },\n stop: function() {\n if (this._call) {\n this._call = null;\n this._time = Infinity;\n sleep();\n }\n }\n};\n\nfunction timer(callback, delay, time) {\n var t = new Timer;\n t.restart(callback, delay, time);\n return t;\n}\n\nfunction timerFlush() {\n now(); // Get the current time, if not already set.\n ++frame; // Pretend we’ve set an alarm, if we haven’t already.\n var t = taskHead, e;\n while (t) {\n if ((e = clockNow - t._time) >= 0) t._call.call(null, e);\n t = t._next;\n }\n --frame;\n}\n\nfunction wake() {\n clockNow = (clockLast = clock.now()) + clockSkew;\n frame = timeout = 0;\n try {\n timerFlush();\n } finally {\n frame = 0;\n nap();\n clockNow = 0;\n }\n}\n\nfunction poke() {\n var now = clock.now(), delay = now - clockLast;\n if (delay > pokeDelay) clockSkew -= delay, clockLast = now;\n}\n\nfunction nap() {\n var t0, t1 = taskHead, t2, time = Infinity;\n while (t1) {\n if (t1._call) {\n if (time > t1._time) time = t1._time;\n t0 = t1, t1 = t1._next;\n } else {\n t2 = t1._next, t1._next = null;\n t1 = t0 ? t0._next = t2 : taskHead = t2;\n }\n }\n taskTail = t0;\n sleep(time);\n}\n\nfunction sleep(time) {\n if (frame) return; // Soonest alarm already set, or will be.\n if (timeout) timeout = clearTimeout(timeout);\n var delay = time - clockNow; // Strictly less than if we recomputed clockNow.\n if (delay > 24) {\n if (time < Infinity) timeout = setTimeout(wake, time - clock.now() - clockSkew);\n if (interval) interval = clearInterval(interval);\n } else {\n if (!interval) clockLast = clock.now(), interval = setInterval(poke, pokeDelay);\n frame = 1, setFrame(wake);\n }\n}\n\nfunction timeout$1(callback, delay, time) {\n var t = new Timer;\n delay = delay == null ? 0 : +delay;\n t.restart(function(elapsed) {\n t.stop();\n callback(elapsed + delay);\n }, delay, time);\n return t;\n}\n\nfunction interval$1(callback, delay, time) {\n var t = new Timer, total = delay;\n if (delay == null) return t.restart(callback, delay, time), t;\n delay = +delay, time = time == null ? now() : +time;\n t.restart(function tick(elapsed) {\n elapsed += total;\n t.restart(tick, total += delay, time);\n callback(elapsed);\n }, delay, time);\n return t;\n}\n\nexports.interval = interval$1;\nexports.now = now;\nexports.timeout = timeout$1;\nexports.timer = timer;\nexports.timerFlush = timerFlush;\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n}));\n\n},{}],124:[function(_dereq_,module,exports){\nmodule.exports = function () {\n for (var i = 0; i < arguments.length; i++) {\n if (arguments[i] !== undefined) return arguments[i];\n }\n};\n\n},{}],125:[function(_dereq_,module,exports){\n'use strict'\r\n\r\n\r\nmodule.exports = kerning\r\n\r\n\r\nvar canvas = kerning.canvas = document.createElement('canvas')\r\nvar ctx = canvas.getContext('2d')\r\nvar asciiPairs = createPairs([32, 126])\r\n\r\nkerning.createPairs = createPairs\r\nkerning.ascii = asciiPairs\r\n\r\n\r\nfunction kerning (family, o) {\r\n\tif (Array.isArray(family)) family = family.join(', ')\r\n\r\n\tvar table = {}, pairs, fs = 16, threshold = .05\r\n\r\n\tif (o) {\r\n\t\tif (o.length === 2 && typeof o[0] === 'number') {\r\n\t\t\tpairs = createPairs(o)\r\n\t\t}\r\n\t\telse if (Array.isArray(o)) {\r\n\t\t\tpairs = o\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (o.o) pairs = createPairs(o.o)\r\n\t\t\telse if (o.pairs) pairs = o.pairs\r\n\r\n\t\t\tif (o.fontSize) fs = o.fontSize\r\n\t\t\tif (o.threshold != null) threshold = o.threshold\r\n\t\t}\r\n\t}\r\n\r\n\tif (!pairs) pairs = asciiPairs\r\n\r\n\tctx.font = fs + 'px ' + family\r\n\r\n\tfor (var i = 0; i < pairs.length; i++) {\r\n\t\tvar pair = pairs[i]\r\n\t\tvar width = ctx.measureText(pair[0]).width + ctx.measureText(pair[1]).width\r\n\t\tvar kerningWidth = ctx.measureText(pair).width\r\n\t\tif (Math.abs(width - kerningWidth) > fs * threshold) {\r\n\t\t\tvar emWidth = (kerningWidth - width) / fs\r\n\t\t\ttable[pair] = emWidth * 1000\r\n\t\t}\r\n\t}\r\n\r\n\treturn table\r\n}\r\n\r\n\r\nfunction createPairs (range) {\r\n\tvar pairs = []\r\n\r\n for (var i = range[0]; i <= range[1]; i++) {\r\n\t\tvar leftChar = String.fromCharCode(i)\r\n\t\tfor (var j = range[0]; j < range[1]; j++) {\r\n\t\t\tvar rightChar = String.fromCharCode(j)\r\n\t\t\tvar pair = leftChar + rightChar\r\n\r\n\t\t\tpairs.push(pair)\r\n\t\t}\r\n\t}\r\n\r\n\treturn pairs\r\n}\r\n\n},{}],126:[function(_dereq_,module,exports){\nvar abs = _dereq_('abs-svg-path')\nvar normalize = _dereq_('normalize-svg-path')\n\nvar methods = {\n 'M': 'moveTo',\n 'C': 'bezierCurveTo'\n}\n\nmodule.exports = function(context, segments) {\n context.beginPath()\n\n // Make path easy to reproduce.\n normalize(abs(segments)).forEach(\n function(segment) {\n var command = segment[0]\n var args = segment.slice(1)\n\n // Convert the path command to a context method.\n context[methods[command]].apply(context, args)\n }\n )\n\n context.closePath()\n}\n\n},{\"abs-svg-path\":70,\"normalize-svg-path\":246}],127:[function(_dereq_,module,exports){\nmodule.exports = function(dtype) {\n switch (dtype) {\n case 'int8':\n return Int8Array\n case 'int16':\n return Int16Array\n case 'int32':\n return Int32Array\n case 'uint8':\n return Uint8Array\n case 'uint16':\n return Uint16Array\n case 'uint32':\n return Uint32Array\n case 'float32':\n return Float32Array\n case 'float64':\n return Float64Array\n case 'array':\n return Array\n case 'uint8_clamped':\n return Uint8ClampedArray\n }\n}\n\n},{}],128:[function(_dereq_,module,exports){\n\"use strict\"\n\nfunction dupe_array(count, value, i) {\n var c = count[i]|0\n if(c <= 0) {\n return []\n }\n var result = new Array(c), j\n if(i === count.length-1) {\n for(j=0; j 0) {\n return dupe_number(count|0, value)\n }\n break\n case \"object\":\n if(typeof (count.length) === \"number\") {\n return dupe_array(count, value, 0)\n }\n break\n }\n return []\n}\n\nmodule.exports = dupe\n},{}],129:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = earcut;\nmodule.exports.default = earcut;\n\nfunction earcut(data, holeIndices, dim) {\n\n dim = dim || 2;\n\n var hasHoles = holeIndices && holeIndices.length,\n outerLen = hasHoles ? holeIndices[0] * dim : data.length,\n outerNode = linkedList(data, 0, outerLen, dim, true),\n triangles = [];\n\n if (!outerNode || outerNode.next === outerNode.prev) return triangles;\n\n var minX, minY, maxX, maxY, x, y, invSize;\n\n if (hasHoles) outerNode = eliminateHoles(data, holeIndices, outerNode, dim);\n\n // if the shape is not too simple, we'll use z-order curve hash later; calculate polygon bbox\n if (data.length > 80 * dim) {\n minX = maxX = data[0];\n minY = maxY = data[1];\n\n for (var i = dim; i < outerLen; i += dim) {\n x = data[i];\n y = data[i + 1];\n if (x < minX) minX = x;\n if (y < minY) minY = y;\n if (x > maxX) maxX = x;\n if (y > maxY) maxY = y;\n }\n\n // minX, minY and invSize are later used to transform coords into integers for z-order calculation\n invSize = Math.max(maxX - minX, maxY - minY);\n invSize = invSize !== 0 ? 1 / invSize : 0;\n }\n\n earcutLinked(outerNode, triangles, dim, minX, minY, invSize);\n\n return triangles;\n}\n\n// create a circular doubly linked list from polygon points in the specified winding order\nfunction linkedList(data, start, end, dim, clockwise) {\n var i, last;\n\n if (clockwise === (signedArea(data, start, end, dim) > 0)) {\n for (i = start; i < end; i += dim) last = insertNode(i, data[i], data[i + 1], last);\n } else {\n for (i = end - dim; i >= start; i -= dim) last = insertNode(i, data[i], data[i + 1], last);\n }\n\n if (last && equals(last, last.next)) {\n removeNode(last);\n last = last.next;\n }\n\n return last;\n}\n\n// eliminate colinear or duplicate points\nfunction filterPoints(start, end) {\n if (!start) return start;\n if (!end) end = start;\n\n var p = start,\n again;\n do {\n again = false;\n\n if (!p.steiner && (equals(p, p.next) || area(p.prev, p, p.next) === 0)) {\n removeNode(p);\n p = end = p.prev;\n if (p === p.next) break;\n again = true;\n\n } else {\n p = p.next;\n }\n } while (again || p !== end);\n\n return end;\n}\n\n// main ear slicing loop which triangulates a polygon (given as a linked list)\nfunction earcutLinked(ear, triangles, dim, minX, minY, invSize, pass) {\n if (!ear) return;\n\n // interlink polygon nodes in z-order\n if (!pass && invSize) indexCurve(ear, minX, minY, invSize);\n\n var stop = ear,\n prev, next;\n\n // iterate through ears, slicing them one by one\n while (ear.prev !== ear.next) {\n prev = ear.prev;\n next = ear.next;\n\n if (invSize ? isEarHashed(ear, minX, minY, invSize) : isEar(ear)) {\n // cut off the triangle\n triangles.push(prev.i / dim);\n triangles.push(ear.i / dim);\n triangles.push(next.i / dim);\n\n removeNode(ear);\n\n // skipping the next vertex leads to less sliver triangles\n ear = next.next;\n stop = next.next;\n\n continue;\n }\n\n ear = next;\n\n // if we looped through the whole remaining polygon and can't find any more ears\n if (ear === stop) {\n // try filtering points and slicing again\n if (!pass) {\n earcutLinked(filterPoints(ear), triangles, dim, minX, minY, invSize, 1);\n\n // if this didn't work, try curing all small self-intersections locally\n } else if (pass === 1) {\n ear = cureLocalIntersections(filterPoints(ear), triangles, dim);\n earcutLinked(ear, triangles, dim, minX, minY, invSize, 2);\n\n // as a last resort, try splitting the remaining polygon into two\n } else if (pass === 2) {\n splitEarcut(ear, triangles, dim, minX, minY, invSize);\n }\n\n break;\n }\n }\n}\n\n// check whether a polygon node forms a valid ear with adjacent nodes\nfunction isEar(ear) {\n var a = ear.prev,\n b = ear,\n c = ear.next;\n\n if (area(a, b, c) >= 0) return false; // reflex, can't be an ear\n\n // now make sure we don't have other points inside the potential ear\n var p = ear.next.next;\n\n while (p !== ear.prev) {\n if (pointInTriangle(a.x, a.y, b.x, b.y, c.x, c.y, p.x, p.y) &&\n area(p.prev, p, p.next) >= 0) return false;\n p = p.next;\n }\n\n return true;\n}\n\nfunction isEarHashed(ear, minX, minY, invSize) {\n var a = ear.prev,\n b = ear,\n c = ear.next;\n\n if (area(a, b, c) >= 0) return false; // reflex, can't be an ear\n\n // triangle bbox; min & max are calculated like this for speed\n var minTX = a.x < b.x ? (a.x < c.x ? a.x : c.x) : (b.x < c.x ? b.x : c.x),\n minTY = a.y < b.y ? (a.y < c.y ? a.y : c.y) : (b.y < c.y ? b.y : c.y),\n maxTX = a.x > b.x ? (a.x > c.x ? a.x : c.x) : (b.x > c.x ? b.x : c.x),\n maxTY = a.y > b.y ? (a.y > c.y ? a.y : c.y) : (b.y > c.y ? b.y : c.y);\n\n // z-order range for the current triangle bbox;\n var minZ = zOrder(minTX, minTY, minX, minY, invSize),\n maxZ = zOrder(maxTX, maxTY, minX, minY, invSize);\n\n var p = ear.prevZ,\n n = ear.nextZ;\n\n // look for points inside the triangle in both directions\n while (p && p.z >= minZ && n && n.z <= maxZ) {\n if (p !== ear.prev && p !== ear.next &&\n pointInTriangle(a.x, a.y, b.x, b.y, c.x, c.y, p.x, p.y) &&\n area(p.prev, p, p.next) >= 0) return false;\n p = p.prevZ;\n\n if (n !== ear.prev && n !== ear.next &&\n pointInTriangle(a.x, a.y, b.x, b.y, c.x, c.y, n.x, n.y) &&\n area(n.prev, n, n.next) >= 0) return false;\n n = n.nextZ;\n }\n\n // look for remaining points in decreasing z-order\n while (p && p.z >= minZ) {\n if (p !== ear.prev && p !== ear.next &&\n pointInTriangle(a.x, a.y, b.x, b.y, c.x, c.y, p.x, p.y) &&\n area(p.prev, p, p.next) >= 0) return false;\n p = p.prevZ;\n }\n\n // look for remaining points in increasing z-order\n while (n && n.z <= maxZ) {\n if (n !== ear.prev && n !== ear.next &&\n pointInTriangle(a.x, a.y, b.x, b.y, c.x, c.y, n.x, n.y) &&\n area(n.prev, n, n.next) >= 0) return false;\n n = n.nextZ;\n }\n\n return true;\n}\n\n// go through all polygon nodes and cure small local self-intersections\nfunction cureLocalIntersections(start, triangles, dim) {\n var p = start;\n do {\n var a = p.prev,\n b = p.next.next;\n\n if (!equals(a, b) && intersects(a, p, p.next, b) && locallyInside(a, b) && locallyInside(b, a)) {\n\n triangles.push(a.i / dim);\n triangles.push(p.i / dim);\n triangles.push(b.i / dim);\n\n // remove two nodes involved\n removeNode(p);\n removeNode(p.next);\n\n p = start = b;\n }\n p = p.next;\n } while (p !== start);\n\n return filterPoints(p);\n}\n\n// try splitting polygon into two and triangulate them independently\nfunction splitEarcut(start, triangles, dim, minX, minY, invSize) {\n // look for a valid diagonal that divides the polygon into two\n var a = start;\n do {\n var b = a.next.next;\n while (b !== a.prev) {\n if (a.i !== b.i && isValidDiagonal(a, b)) {\n // split the polygon in two by the diagonal\n var c = splitPolygon(a, b);\n\n // filter colinear points around the cuts\n a = filterPoints(a, a.next);\n c = filterPoints(c, c.next);\n\n // run earcut on each half\n earcutLinked(a, triangles, dim, minX, minY, invSize);\n earcutLinked(c, triangles, dim, minX, minY, invSize);\n return;\n }\n b = b.next;\n }\n a = a.next;\n } while (a !== start);\n}\n\n// link every hole into the outer loop, producing a single-ring polygon without holes\nfunction eliminateHoles(data, holeIndices, outerNode, dim) {\n var queue = [],\n i, len, start, end, list;\n\n for (i = 0, len = holeIndices.length; i < len; i++) {\n start = holeIndices[i] * dim;\n end = i < len - 1 ? holeIndices[i + 1] * dim : data.length;\n list = linkedList(data, start, end, dim, false);\n if (list === list.next) list.steiner = true;\n queue.push(getLeftmost(list));\n }\n\n queue.sort(compareX);\n\n // process holes from left to right\n for (i = 0; i < queue.length; i++) {\n eliminateHole(queue[i], outerNode);\n outerNode = filterPoints(outerNode, outerNode.next);\n }\n\n return outerNode;\n}\n\nfunction compareX(a, b) {\n return a.x - b.x;\n}\n\n// find a bridge between vertices that connects hole with an outer ring and and link it\nfunction eliminateHole(hole, outerNode) {\n outerNode = findHoleBridge(hole, outerNode);\n if (outerNode) {\n var b = splitPolygon(outerNode, hole);\n\n // filter collinear points around the cuts\n filterPoints(outerNode, outerNode.next);\n filterPoints(b, b.next);\n }\n}\n\n// David Eberly's algorithm for finding a bridge between hole and outer polygon\nfunction findHoleBridge(hole, outerNode) {\n var p = outerNode,\n hx = hole.x,\n hy = hole.y,\n qx = -Infinity,\n m;\n\n // find a segment intersected by a ray from the hole's leftmost point to the left;\n // segment's endpoint with lesser x will be potential connection point\n do {\n if (hy <= p.y && hy >= p.next.y && p.next.y !== p.y) {\n var x = p.x + (hy - p.y) * (p.next.x - p.x) / (p.next.y - p.y);\n if (x <= hx && x > qx) {\n qx = x;\n if (x === hx) {\n if (hy === p.y) return p;\n if (hy === p.next.y) return p.next;\n }\n m = p.x < p.next.x ? p : p.next;\n }\n }\n p = p.next;\n } while (p !== outerNode);\n\n if (!m) return null;\n\n if (hx === qx) return m; // hole touches outer segment; pick leftmost endpoint\n\n // look for points inside the triangle of hole point, segment intersection and endpoint;\n // if there are no points found, we have a valid connection;\n // otherwise choose the point of the minimum angle with the ray as connection point\n\n var stop = m,\n mx = m.x,\n my = m.y,\n tanMin = Infinity,\n tan;\n\n p = m;\n\n do {\n if (hx >= p.x && p.x >= mx && hx !== p.x &&\n pointInTriangle(hy < my ? hx : qx, hy, mx, my, hy < my ? qx : hx, hy, p.x, p.y)) {\n\n tan = Math.abs(hy - p.y) / (hx - p.x); // tangential\n\n if (locallyInside(p, hole) &&\n (tan < tanMin || (tan === tanMin && (p.x > m.x || (p.x === m.x && sectorContainsSector(m, p)))))) {\n m = p;\n tanMin = tan;\n }\n }\n\n p = p.next;\n } while (p !== stop);\n\n return m;\n}\n\n// whether sector in vertex m contains sector in vertex p in the same coordinates\nfunction sectorContainsSector(m, p) {\n return area(m.prev, m, p.prev) < 0 && area(p.next, m, m.next) < 0;\n}\n\n// interlink polygon nodes in z-order\nfunction indexCurve(start, minX, minY, invSize) {\n var p = start;\n do {\n if (p.z === null) p.z = zOrder(p.x, p.y, minX, minY, invSize);\n p.prevZ = p.prev;\n p.nextZ = p.next;\n p = p.next;\n } while (p !== start);\n\n p.prevZ.nextZ = null;\n p.prevZ = null;\n\n sortLinked(p);\n}\n\n// Simon Tatham's linked list merge sort algorithm\n// http://www.chiark.greenend.org.uk/~sgtatham/algorithms/listsort.html\nfunction sortLinked(list) {\n var i, p, q, e, tail, numMerges, pSize, qSize,\n inSize = 1;\n\n do {\n p = list;\n list = null;\n tail = null;\n numMerges = 0;\n\n while (p) {\n numMerges++;\n q = p;\n pSize = 0;\n for (i = 0; i < inSize; i++) {\n pSize++;\n q = q.nextZ;\n if (!q) break;\n }\n qSize = inSize;\n\n while (pSize > 0 || (qSize > 0 && q)) {\n\n if (pSize !== 0 && (qSize === 0 || !q || p.z <= q.z)) {\n e = p;\n p = p.nextZ;\n pSize--;\n } else {\n e = q;\n q = q.nextZ;\n qSize--;\n }\n\n if (tail) tail.nextZ = e;\n else list = e;\n\n e.prevZ = tail;\n tail = e;\n }\n\n p = q;\n }\n\n tail.nextZ = null;\n inSize *= 2;\n\n } while (numMerges > 1);\n\n return list;\n}\n\n// z-order of a point given coords and inverse of the longer side of data bbox\nfunction zOrder(x, y, minX, minY, invSize) {\n // coords are transformed into non-negative 15-bit integer range\n x = 32767 * (x - minX) * invSize;\n y = 32767 * (y - minY) * invSize;\n\n x = (x | (x << 8)) & 0x00FF00FF;\n x = (x | (x << 4)) & 0x0F0F0F0F;\n x = (x | (x << 2)) & 0x33333333;\n x = (x | (x << 1)) & 0x55555555;\n\n y = (y | (y << 8)) & 0x00FF00FF;\n y = (y | (y << 4)) & 0x0F0F0F0F;\n y = (y | (y << 2)) & 0x33333333;\n y = (y | (y << 1)) & 0x55555555;\n\n return x | (y << 1);\n}\n\n// find the leftmost node of a polygon ring\nfunction getLeftmost(start) {\n var p = start,\n leftmost = start;\n do {\n if (p.x < leftmost.x || (p.x === leftmost.x && p.y < leftmost.y)) leftmost = p;\n p = p.next;\n } while (p !== start);\n\n return leftmost;\n}\n\n// check if a point lies within a convex triangle\nfunction pointInTriangle(ax, ay, bx, by, cx, cy, px, py) {\n return (cx - px) * (ay - py) - (ax - px) * (cy - py) >= 0 &&\n (ax - px) * (by - py) - (bx - px) * (ay - py) >= 0 &&\n (bx - px) * (cy - py) - (cx - px) * (by - py) >= 0;\n}\n\n// check if a diagonal between two polygon nodes is valid (lies in polygon interior)\nfunction isValidDiagonal(a, b) {\n return a.next.i !== b.i && a.prev.i !== b.i && !intersectsPolygon(a, b) && // dones't intersect other edges\n (locallyInside(a, b) && locallyInside(b, a) && middleInside(a, b) && // locally visible\n (area(a.prev, a, b.prev) || area(a, b.prev, b)) || // does not create opposite-facing sectors\n equals(a, b) && area(a.prev, a, a.next) > 0 && area(b.prev, b, b.next) > 0); // special zero-length case\n}\n\n// signed area of a triangle\nfunction area(p, q, r) {\n return (q.y - p.y) * (r.x - q.x) - (q.x - p.x) * (r.y - q.y);\n}\n\n// check if two points are equal\nfunction equals(p1, p2) {\n return p1.x === p2.x && p1.y === p2.y;\n}\n\n// check if two segments intersect\nfunction intersects(p1, q1, p2, q2) {\n var o1 = sign(area(p1, q1, p2));\n var o2 = sign(area(p1, q1, q2));\n var o3 = sign(area(p2, q2, p1));\n var o4 = sign(area(p2, q2, q1));\n\n if (o1 !== o2 && o3 !== o4) return true; // general case\n\n if (o1 === 0 && onSegment(p1, p2, q1)) return true; // p1, q1 and p2 are collinear and p2 lies on p1q1\n if (o2 === 0 && onSegment(p1, q2, q1)) return true; // p1, q1 and q2 are collinear and q2 lies on p1q1\n if (o3 === 0 && onSegment(p2, p1, q2)) return true; // p2, q2 and p1 are collinear and p1 lies on p2q2\n if (o4 === 0 && onSegment(p2, q1, q2)) return true; // p2, q2 and q1 are collinear and q1 lies on p2q2\n\n return false;\n}\n\n// for collinear points p, q, r, check if point q lies on segment pr\nfunction onSegment(p, q, r) {\n return q.x <= Math.max(p.x, r.x) && q.x >= Math.min(p.x, r.x) && q.y <= Math.max(p.y, r.y) && q.y >= Math.min(p.y, r.y);\n}\n\nfunction sign(num) {\n return num > 0 ? 1 : num < 0 ? -1 : 0;\n}\n\n// check if a polygon diagonal intersects any polygon segments\nfunction intersectsPolygon(a, b) {\n var p = a;\n do {\n if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n intersects(p, p.next, a, b)) return true;\n p = p.next;\n } while (p !== a);\n\n return false;\n}\n\n// check if a polygon diagonal is locally inside the polygon\nfunction locallyInside(a, b) {\n return area(a.prev, a, a.next) < 0 ?\n area(a, b, a.next) >= 0 && area(a, a.prev, b) >= 0 :\n area(a, b, a.prev) < 0 || area(a, a.next, b) < 0;\n}\n\n// check if the middle point of a polygon diagonal is inside the polygon\nfunction middleInside(a, b) {\n var p = a,\n inside = false,\n px = (a.x + b.x) / 2,\n py = (a.y + b.y) / 2;\n do {\n if (((p.y > py) !== (p.next.y > py)) && p.next.y !== p.y &&\n (px < (p.next.x - p.x) * (py - p.y) / (p.next.y - p.y) + p.x))\n inside = !inside;\n p = p.next;\n } while (p !== a);\n\n return inside;\n}\n\n// link two polygon vertices with a bridge; if the vertices belong to the same ring, it splits polygon into two;\n// if one belongs to the outer ring and another to a hole, it merges it into a single ring\nfunction splitPolygon(a, b) {\n var a2 = new Node(a.i, a.x, a.y),\n b2 = new Node(b.i, b.x, b.y),\n an = a.next,\n bp = b.prev;\n\n a.next = b;\n b.prev = a;\n\n a2.next = an;\n an.prev = a2;\n\n b2.next = a2;\n a2.prev = b2;\n\n bp.next = b2;\n b2.prev = bp;\n\n return b2;\n}\n\n// create a node and optionally link it with previous one (in a circular doubly linked list)\nfunction insertNode(i, x, y, last) {\n var p = new Node(i, x, y);\n\n if (!last) {\n p.prev = p;\n p.next = p;\n\n } else {\n p.next = last.next;\n p.prev = last;\n last.next.prev = p;\n last.next = p;\n }\n return p;\n}\n\nfunction removeNode(p) {\n p.next.prev = p.prev;\n p.prev.next = p.next;\n\n if (p.prevZ) p.prevZ.nextZ = p.nextZ;\n if (p.nextZ) p.nextZ.prevZ = p.prevZ;\n}\n\nfunction Node(i, x, y) {\n // vertex index in coordinates array\n this.i = i;\n\n // vertex coordinates\n this.x = x;\n this.y = y;\n\n // previous and next vertex nodes in a polygon ring\n this.prev = null;\n this.next = null;\n\n // z-order curve value\n this.z = null;\n\n // previous and next nodes in z-order\n this.prevZ = null;\n this.nextZ = null;\n\n // indicates whether this is a steiner point\n this.steiner = false;\n}\n\n// return a percentage difference between the polygon area and its triangulation area;\n// used to verify correctness of triangulation\nearcut.deviation = function (data, holeIndices, dim, triangles) {\n var hasHoles = holeIndices && holeIndices.length;\n var outerLen = hasHoles ? holeIndices[0] * dim : data.length;\n\n var polygonArea = Math.abs(signedArea(data, 0, outerLen, dim));\n if (hasHoles) {\n for (var i = 0, len = holeIndices.length; i < len; i++) {\n var start = holeIndices[i] * dim;\n var end = i < len - 1 ? holeIndices[i + 1] * dim : data.length;\n polygonArea -= Math.abs(signedArea(data, start, end, dim));\n }\n }\n\n var trianglesArea = 0;\n for (i = 0; i < triangles.length; i += 3) {\n var a = triangles[i] * dim;\n var b = triangles[i + 1] * dim;\n var c = triangles[i + 2] * dim;\n trianglesArea += Math.abs(\n (data[a] - data[c]) * (data[b + 1] - data[a + 1]) -\n (data[a] - data[b]) * (data[c + 1] - data[a + 1]));\n }\n\n return polygonArea === 0 && trianglesArea === 0 ? 0 :\n Math.abs((trianglesArea - polygonArea) / polygonArea);\n};\n\nfunction signedArea(data, start, end, dim) {\n var sum = 0;\n for (var i = start, j = end - dim; i < end; i += dim) {\n sum += (data[j] - data[i]) * (data[i + 1] + data[j + 1]);\n j = i;\n }\n return sum;\n}\n\n// turn a polygon in a multi-dimensional array form (e.g. as in GeoJSON) into a form Earcut accepts\nearcut.flatten = function (data) {\n var dim = data[0][0].length,\n result = {vertices: [], holes: [], dimensions: dim},\n holeIndex = 0;\n\n for (var i = 0; i < data.length; i++) {\n for (var j = 0; j < data[i].length; j++) {\n for (var d = 0; d < dim; d++) result.vertices.push(data[i][j][d]);\n }\n if (i > 0) {\n holeIndex += data[i - 1].length;\n result.holes.push(holeIndex);\n }\n }\n return result;\n};\n\n},{}],130:[function(_dereq_,module,exports){\nvar tarjan = _dereq_('strongly-connected-components');\n\nmodule.exports = function findCircuits(edges, cb) {\n var circuits = []; // Output\n\n var stack = [];\n var blocked = [];\n var B = {};\n var Ak = [];\n var s;\n\n function unblock(u) {\n blocked[u] = false;\n if(B.hasOwnProperty(u)) {\n Object.keys(B[u]).forEach(function(w) {\n delete B[u][w];\n if(blocked[w]) {unblock(w);}\n });\n }\n }\n\n function circuit(v) {\n var found = false;\n\n stack.push(v);\n blocked[v] = true;\n\n // L1\n var i;\n var w;\n for(i = 0; i < Ak[v].length; i++) {\n w = Ak[v][i];\n if(w === s) {\n output(s, stack);\n found = true;\n } else if(!blocked[w]) {\n found = circuit(w);\n }\n }\n\n // L2\n if(found) {\n unblock(v);\n } else {\n for(i = 0; i < Ak[v].length; i++) {\n w = Ak[v][i];\n var entry = B[w];\n\n if(!entry) {\n entry = {};\n B[w] = entry;\n }\n\n entry[w] = true;\n }\n }\n stack.pop();\n return found;\n }\n\n function output(start, stack) {\n var cycle = [].concat(stack).concat(start);\n if(cb) {\n cb(circuit);\n } else {\n circuits.push(cycle);\n }\n }\n\n function subgraph(minId) {\n // Remove edges with indice smaller than minId\n for(var i = 0; i < edges.length; i++) {\n if(i < minId) edges[i] = [];\n edges[i] = edges[i].filter(function(i) {\n return i >= minId;\n });\n }\n }\n\n function adjacencyStructureSCC(from) {\n // Make subgraph starting from vertex minId\n subgraph(from);\n var g = edges;\n\n // Find strongly connected components using Tarjan algorithm\n var sccs = tarjan(g);\n\n // Filter out trivial connected components (ie. made of one node)\n var ccs = sccs.components.filter(function(scc) {\n return scc.length > 1;\n });\n\n // Find least vertex\n var leastVertex = Infinity;\n var leastVertexComponent;\n for(var i = 0; i < ccs.length; i++) {\n for(var j = 0; j < ccs[i].length; j++) {\n if(ccs[i][j] < leastVertex) {\n leastVertex = ccs[i][j];\n leastVertexComponent = i;\n }\n }\n }\n\n var cc = ccs[leastVertexComponent];\n\n if(!cc) return false;\n\n // Return the adjacency list of first component\n var adjList = edges.map(function(l, index) {\n if(cc.indexOf(index) === -1) return [];\n return l.filter(function(i) {\n return cc.indexOf(i) !== -1;\n });\n });\n\n return {\n leastVertex: leastVertex,\n adjList: adjList\n };\n }\n\n s = 0;\n var n = edges.length;\n while(s < n) {\n // find strong component with least vertex in\n // subgraph starting from vertex `s`\n var p = adjacencyStructureSCC(s);\n\n // Its least vertex\n s = p.leastVertex;\n // Its adjacency list\n Ak = p.adjList;\n\n if(Ak) {\n for(var i = 0; i < Ak.length; i++) {\n for(var j = 0; j < Ak[i].length; j++) {\n var vertexId = Ak[i][j];\n blocked[+vertexId] = false;\n B[vertexId] = {};\n }\n }\n circuit(s);\n s = s + 1;\n } else {\n s = n;\n }\n\n }\n\n if(cb) {\n return;\n } else {\n return circuits;\n }\n};\n\n},{\"strongly-connected-components\":306}],131:[function(_dereq_,module,exports){\n// Inspired by Google Closure:\n// http://closure-library.googlecode.com/svn/docs/\n// closure_goog_array_array.js.html#goog.array.clear\n\n\"use strict\";\n\nvar value = _dereq_(\"../../object/valid-value\");\n\nmodule.exports = function () {\n\tvalue(this).length = 0;\n\treturn this;\n};\n\n},{\"../../object/valid-value\":162}],132:[function(_dereq_,module,exports){\n\"use strict\";\n\nmodule.exports = _dereq_(\"./is-implemented\")() ? Array.from : _dereq_(\"./shim\");\n\n},{\"./is-implemented\":133,\"./shim\":134}],133:[function(_dereq_,module,exports){\n\"use strict\";\n\nmodule.exports = function () {\n\tvar from = Array.from, arr, result;\n\tif (typeof from !== \"function\") return false;\n\tarr = [\"raz\", \"dwa\"];\n\tresult = from(arr);\n\treturn Boolean(result && result !== arr && result[1] === \"dwa\");\n};\n\n},{}],134:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar iteratorSymbol = _dereq_(\"es6-symbol\").iterator\n , isArguments = _dereq_(\"../../function/is-arguments\")\n , isFunction = _dereq_(\"../../function/is-function\")\n , toPosInt = _dereq_(\"../../number/to-pos-integer\")\n , callable = _dereq_(\"../../object/valid-callable\")\n , validValue = _dereq_(\"../../object/valid-value\")\n , isValue = _dereq_(\"../../object/is-value\")\n , isString = _dereq_(\"../../string/is-string\")\n , isArray = Array.isArray\n , call = Function.prototype.call\n , desc = { configurable: true, enumerable: true, writable: true, value: null }\n , defineProperty = Object.defineProperty;\n\n// eslint-disable-next-line complexity, max-lines-per-function\nmodule.exports = function (arrayLike/*, mapFn, thisArg*/) {\n\tvar mapFn = arguments[1]\n\t , thisArg = arguments[2]\n\t , Context\n\t , i\n\t , j\n\t , arr\n\t , length\n\t , code\n\t , iterator\n\t , result\n\t , getIterator\n\t , value;\n\n\tarrayLike = Object(validValue(arrayLike));\n\n\tif (isValue(mapFn)) callable(mapFn);\n\tif (!this || this === Array || !isFunction(this)) {\n\t\t// Result: Plain array\n\t\tif (!mapFn) {\n\t\t\tif (isArguments(arrayLike)) {\n\t\t\t\t// Source: Arguments\n\t\t\t\tlength = arrayLike.length;\n\t\t\t\tif (length !== 1) return Array.apply(null, arrayLike);\n\t\t\t\tarr = new Array(1);\n\t\t\t\tarr[0] = arrayLike[0];\n\t\t\t\treturn arr;\n\t\t\t}\n\t\t\tif (isArray(arrayLike)) {\n\t\t\t\t// Source: Array\n\t\t\t\tarr = new Array((length = arrayLike.length));\n\t\t\t\tfor (i = 0; i < length; ++i) arr[i] = arrayLike[i];\n\t\t\t\treturn arr;\n\t\t\t}\n\t\t}\n\t\tarr = [];\n\t} else {\n\t\t// Result: Non plain array\n\t\tContext = this;\n\t}\n\n\tif (!isArray(arrayLike)) {\n\t\tif ((getIterator = arrayLike[iteratorSymbol]) !== undefined) {\n\t\t\t// Source: Iterator\n\t\t\titerator = callable(getIterator).call(arrayLike);\n\t\t\tif (Context) arr = new Context();\n\t\t\tresult = iterator.next();\n\t\t\ti = 0;\n\t\t\twhile (!result.done) {\n\t\t\t\tvalue = mapFn ? call.call(mapFn, thisArg, result.value, i) : result.value;\n\t\t\t\tif (Context) {\n\t\t\t\t\tdesc.value = value;\n\t\t\t\t\tdefineProperty(arr, i, desc);\n\t\t\t\t} else {\n\t\t\t\t\tarr[i] = value;\n\t\t\t\t}\n\t\t\t\tresult = iterator.next();\n\t\t\t\t++i;\n\t\t\t}\n\t\t\tlength = i;\n\t\t} else if (isString(arrayLike)) {\n\t\t\t// Source: String\n\t\t\tlength = arrayLike.length;\n\t\t\tif (Context) arr = new Context();\n\t\t\tfor (i = 0, j = 0; i < length; ++i) {\n\t\t\t\tvalue = arrayLike[i];\n\t\t\t\tif (i + 1 < length) {\n\t\t\t\t\tcode = value.charCodeAt(0);\n\t\t\t\t\t// eslint-disable-next-line max-depth\n\t\t\t\t\tif (code >= 0xd800 && code <= 0xdbff) value += arrayLike[++i];\n\t\t\t\t}\n\t\t\t\tvalue = mapFn ? call.call(mapFn, thisArg, value, j) : value;\n\t\t\t\tif (Context) {\n\t\t\t\t\tdesc.value = value;\n\t\t\t\t\tdefineProperty(arr, j, desc);\n\t\t\t\t} else {\n\t\t\t\t\tarr[j] = value;\n\t\t\t\t}\n\t\t\t\t++j;\n\t\t\t}\n\t\t\tlength = j;\n\t\t}\n\t}\n\tif (length === undefined) {\n\t\t// Source: array or array-like\n\t\tlength = toPosInt(arrayLike.length);\n\t\tif (Context) arr = new Context(length);\n\t\tfor (i = 0; i < length; ++i) {\n\t\t\tvalue = mapFn ? call.call(mapFn, thisArg, arrayLike[i], i) : arrayLike[i];\n\t\t\tif (Context) {\n\t\t\t\tdesc.value = value;\n\t\t\t\tdefineProperty(arr, i, desc);\n\t\t\t} else {\n\t\t\t\tarr[i] = value;\n\t\t\t}\n\t\t}\n\t}\n\tif (Context) {\n\t\tdesc.value = null;\n\t\tarr.length = length;\n\t}\n\treturn arr;\n};\n\n},{\"../../function/is-arguments\":135,\"../../function/is-function\":136,\"../../number/to-pos-integer\":142,\"../../object/is-value\":151,\"../../object/valid-callable\":160,\"../../object/valid-value\":162,\"../../string/is-string\":166,\"es6-symbol\":175}],135:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar objToString = Object.prototype.toString\n , id = objToString.call((function () { return arguments; })());\n\nmodule.exports = function (value) { return objToString.call(value) === id; };\n\n},{}],136:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar objToString = Object.prototype.toString\n , isFunctionStringTag = RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);\n\nmodule.exports = function (value) {\n\treturn typeof value === \"function\" && isFunctionStringTag(objToString.call(value));\n};\n\n},{}],137:[function(_dereq_,module,exports){\n\"use strict\";\n\n// eslint-disable-next-line no-empty-function\nmodule.exports = function () {};\n\n},{}],138:[function(_dereq_,module,exports){\n\"use strict\";\n\nmodule.exports = _dereq_(\"./is-implemented\")() ? Math.sign : _dereq_(\"./shim\");\n\n},{\"./is-implemented\":139,\"./shim\":140}],139:[function(_dereq_,module,exports){\n\"use strict\";\n\nmodule.exports = function () {\n\tvar sign = Math.sign;\n\tif (typeof sign !== \"function\") return false;\n\treturn sign(10) === 1 && sign(-20) === -1;\n};\n\n},{}],140:[function(_dereq_,module,exports){\n\"use strict\";\n\nmodule.exports = function (value) {\n\tvalue = Number(value);\n\tif (isNaN(value) || value === 0) return value;\n\treturn value > 0 ? 1 : -1;\n};\n\n},{}],141:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar sign = _dereq_(\"../math/sign\")\n , abs = Math.abs\n , floor = Math.floor;\n\nmodule.exports = function (value) {\n\tif (isNaN(value)) return 0;\n\tvalue = Number(value);\n\tif (value === 0 || !isFinite(value)) return value;\n\treturn sign(value) * floor(abs(value));\n};\n\n},{\"../math/sign\":138}],142:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar toInteger = _dereq_(\"./to-integer\")\n , max = Math.max;\n\nmodule.exports = function (value) { return max(0, toInteger(value)); };\n\n},{\"./to-integer\":141}],143:[function(_dereq_,module,exports){\n// Internal method, used by iteration functions.\n// Calls a function for each key-value pair found in object\n// Optionally takes compareFn to iterate object in specific order\n\n\"use strict\";\n\nvar callable = _dereq_(\"./valid-callable\")\n , value = _dereq_(\"./valid-value\")\n , bind = Function.prototype.bind\n , call = Function.prototype.call\n , keys = Object.keys\n , objPropertyIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nmodule.exports = function (method, defVal) {\n\treturn function (obj, cb/*, thisArg, compareFn*/) {\n\t\tvar list, thisArg = arguments[2], compareFn = arguments[3];\n\t\tobj = Object(value(obj));\n\t\tcallable(cb);\n\n\t\tlist = keys(obj);\n\t\tif (compareFn) {\n\t\t\tlist.sort(typeof compareFn === \"function\" ? bind.call(compareFn, obj) : undefined);\n\t\t}\n\t\tif (typeof method !== \"function\") method = list[method];\n\t\treturn call.call(method, list, function (key, index) {\n\t\t\tif (!objPropertyIsEnumerable.call(obj, key)) return defVal;\n\t\t\treturn call.call(cb, thisArg, obj[key], key, obj, index);\n\t\t});\n\t};\n};\n\n},{\"./valid-callable\":160,\"./valid-value\":162}],144:[function(_dereq_,module,exports){\n\"use strict\";\n\nmodule.exports = _dereq_(\"./is-implemented\")() ? Object.assign : _dereq_(\"./shim\");\n\n},{\"./is-implemented\":145,\"./shim\":146}],145:[function(_dereq_,module,exports){\n\"use strict\";\n\nmodule.exports = function () {\n\tvar assign = Object.assign, obj;\n\tif (typeof assign !== \"function\") return false;\n\tobj = { foo: \"raz\" };\n\tassign(obj, { bar: \"dwa\" }, { trzy: \"trzy\" });\n\treturn obj.foo + obj.bar + obj.trzy === \"razdwatrzy\";\n};\n\n},{}],146:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar keys = _dereq_(\"../keys\")\n , value = _dereq_(\"../valid-value\")\n , max = Math.max;\n\nmodule.exports = function (dest, src/*, …srcn*/) {\n\tvar error, i, length = max(arguments.length, 2), assign;\n\tdest = Object(value(dest));\n\tassign = function (key) {\n\t\ttry {\n\t\t\tdest[key] = src[key];\n\t\t} catch (e) {\n\t\t\tif (!error) error = e;\n\t\t}\n\t};\n\tfor (i = 1; i < length; ++i) {\n\t\tsrc = arguments[i];\n\t\tkeys(src).forEach(assign);\n\t}\n\tif (error !== undefined) throw error;\n\treturn dest;\n};\n\n},{\"../keys\":152,\"../valid-value\":162}],147:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar aFrom = _dereq_(\"../array/from\")\n , assign = _dereq_(\"./assign\")\n , value = _dereq_(\"./valid-value\");\n\nmodule.exports = function (obj/*, propertyNames, options*/) {\n\tvar copy = Object(value(obj)), propertyNames = arguments[1], options = Object(arguments[2]);\n\tif (copy !== obj && !propertyNames) return copy;\n\tvar result = {};\n\tif (propertyNames) {\n\t\taFrom(propertyNames, function (propertyName) {\n\t\t\tif (options.ensure || propertyName in obj) result[propertyName] = obj[propertyName];\n\t\t});\n\t} else {\n\t\tassign(result, obj);\n\t}\n\treturn result;\n};\n\n},{\"../array/from\":132,\"./assign\":144,\"./valid-value\":162}],148:[function(_dereq_,module,exports){\n// Workaround for http://code.google.com/p/v8/issues/detail?id=2804\n\n\"use strict\";\n\nvar create = Object.create, shim;\n\nif (!_dereq_(\"./set-prototype-of/is-implemented\")()) {\n\tshim = _dereq_(\"./set-prototype-of/shim\");\n}\n\nmodule.exports = (function () {\n\tvar nullObject, polyProps, desc;\n\tif (!shim) return create;\n\tif (shim.level !== 1) return create;\n\n\tnullObject = {};\n\tpolyProps = {};\n\tdesc = { configurable: false, enumerable: false, writable: true, value: undefined };\n\tObject.getOwnPropertyNames(Object.prototype).forEach(function (name) {\n\t\tif (name === \"__proto__\") {\n\t\t\tpolyProps[name] = {\n\t\t\t\tconfigurable: true,\n\t\t\t\tenumerable: false,\n\t\t\t\twritable: true,\n\t\t\t\tvalue: undefined\n\t\t\t};\n\t\t\treturn;\n\t\t}\n\t\tpolyProps[name] = desc;\n\t});\n\tObject.defineProperties(nullObject, polyProps);\n\n\tObject.defineProperty(shim, \"nullPolyfill\", {\n\t\tconfigurable: false,\n\t\tenumerable: false,\n\t\twritable: false,\n\t\tvalue: nullObject\n\t});\n\n\treturn function (prototype, props) {\n\t\treturn create(prototype === null ? nullObject : prototype, props);\n\t};\n})();\n\n},{\"./set-prototype-of/is-implemented\":158,\"./set-prototype-of/shim\":159}],149:[function(_dereq_,module,exports){\n\"use strict\";\n\nmodule.exports = _dereq_(\"./_iterate\")(\"forEach\");\n\n},{\"./_iterate\":143}],150:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar isValue = _dereq_(\"./is-value\");\n\nvar map = { function: true, object: true };\n\nmodule.exports = function (value) { return (isValue(value) && map[typeof value]) || false; };\n\n},{\"./is-value\":151}],151:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar _undefined = _dereq_(\"../function/noop\")(); // Support ES3 engines\n\nmodule.exports = function (val) { return val !== _undefined && val !== null; };\n\n},{\"../function/noop\":137}],152:[function(_dereq_,module,exports){\n\"use strict\";\n\nmodule.exports = _dereq_(\"./is-implemented\")() ? Object.keys : _dereq_(\"./shim\");\n\n},{\"./is-implemented\":153,\"./shim\":154}],153:[function(_dereq_,module,exports){\n\"use strict\";\n\nmodule.exports = function () {\n\ttry {\n\t\tObject.keys(\"primitive\");\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t}\n};\n\n},{}],154:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar isValue = _dereq_(\"../is-value\");\n\nvar keys = Object.keys;\n\nmodule.exports = function (object) { return keys(isValue(object) ? Object(object) : object); };\n\n},{\"../is-value\":151}],155:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar callable = _dereq_(\"./valid-callable\")\n , forEach = _dereq_(\"./for-each\")\n , call = Function.prototype.call;\n\nmodule.exports = function (obj, cb/*, thisArg*/) {\n\tvar result = {}, thisArg = arguments[2];\n\tcallable(cb);\n\tforEach(obj, function (value, key, targetObj, index) {\n\t\tresult[key] = call.call(cb, thisArg, value, key, targetObj, index);\n\t});\n\treturn result;\n};\n\n},{\"./for-each\":149,\"./valid-callable\":160}],156:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar isValue = _dereq_(\"./is-value\");\n\nvar forEach = Array.prototype.forEach, create = Object.create;\n\nvar process = function (src, obj) {\n\tvar key;\n\tfor (key in src) obj[key] = src[key];\n};\n\n// eslint-disable-next-line no-unused-vars\nmodule.exports = function (opts1/*, …options*/) {\n\tvar result = create(null);\n\tforEach.call(arguments, function (options) {\n\t\tif (!isValue(options)) return;\n\t\tprocess(Object(options), result);\n\t});\n\treturn result;\n};\n\n},{\"./is-value\":151}],157:[function(_dereq_,module,exports){\n\"use strict\";\n\nmodule.exports = _dereq_(\"./is-implemented\")() ? Object.setPrototypeOf : _dereq_(\"./shim\");\n\n},{\"./is-implemented\":158,\"./shim\":159}],158:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar create = Object.create, getPrototypeOf = Object.getPrototypeOf, plainObject = {};\n\nmodule.exports = function (/* CustomCreate*/) {\n\tvar setPrototypeOf = Object.setPrototypeOf, customCreate = arguments[0] || create;\n\tif (typeof setPrototypeOf !== \"function\") return false;\n\treturn getPrototypeOf(setPrototypeOf(customCreate(null), plainObject)) === plainObject;\n};\n\n},{}],159:[function(_dereq_,module,exports){\n/* eslint no-proto: \"off\" */\n\n// Big thanks to @WebReflection for sorting this out\n// https://gist.github.com/WebReflection/5593554\n\n\"use strict\";\n\nvar isObject = _dereq_(\"../is-object\")\n , value = _dereq_(\"../valid-value\")\n , objIsPrototypeOf = Object.prototype.isPrototypeOf\n , defineProperty = Object.defineProperty\n , nullDesc = { configurable: true, enumerable: false, writable: true, value: undefined }\n , validate;\n\nvalidate = function (obj, prototype) {\n\tvalue(obj);\n\tif (prototype === null || isObject(prototype)) return obj;\n\tthrow new TypeError(\"Prototype must be null or an object\");\n};\n\nmodule.exports = (function (status) {\n\tvar fn, set;\n\tif (!status) return null;\n\tif (status.level === 2) {\n\t\tif (status.set) {\n\t\t\tset = status.set;\n\t\t\tfn = function (obj, prototype) {\n\t\t\t\tset.call(validate(obj, prototype), prototype);\n\t\t\t\treturn obj;\n\t\t\t};\n\t\t} else {\n\t\t\tfn = function (obj, prototype) {\n\t\t\t\tvalidate(obj, prototype).__proto__ = prototype;\n\t\t\t\treturn obj;\n\t\t\t};\n\t\t}\n\t} else {\n\t\tfn = function self(obj, prototype) {\n\t\t\tvar isNullBase;\n\t\t\tvalidate(obj, prototype);\n\t\t\tisNullBase = objIsPrototypeOf.call(self.nullPolyfill, obj);\n\t\t\tif (isNullBase) delete self.nullPolyfill.__proto__;\n\t\t\tif (prototype === null) prototype = self.nullPolyfill;\n\t\t\tobj.__proto__ = prototype;\n\t\t\tif (isNullBase) defineProperty(self.nullPolyfill, \"__proto__\", nullDesc);\n\t\t\treturn obj;\n\t\t};\n\t}\n\treturn Object.defineProperty(fn, \"level\", {\n\t\tconfigurable: false,\n\t\tenumerable: false,\n\t\twritable: false,\n\t\tvalue: status.level\n\t});\n})(\n\t(function () {\n\t\tvar tmpObj1 = Object.create(null)\n\t\t , tmpObj2 = {}\n\t\t , set\n\t\t , desc = Object.getOwnPropertyDescriptor(Object.prototype, \"__proto__\");\n\n\t\tif (desc) {\n\t\t\ttry {\n\t\t\t\tset = desc.set; // Opera crashes at this point\n\t\t\t\tset.call(tmpObj1, tmpObj2);\n\t\t\t} catch (ignore) {}\n\t\t\tif (Object.getPrototypeOf(tmpObj1) === tmpObj2) return { set: set, level: 2 };\n\t\t}\n\n\t\ttmpObj1.__proto__ = tmpObj2;\n\t\tif (Object.getPrototypeOf(tmpObj1) === tmpObj2) return { level: 2 };\n\n\t\ttmpObj1 = {};\n\t\ttmpObj1.__proto__ = tmpObj2;\n\t\tif (Object.getPrototypeOf(tmpObj1) === tmpObj2) return { level: 1 };\n\n\t\treturn false;\n\t})()\n);\n\n_dereq_(\"../create\");\n\n},{\"../create\":148,\"../is-object\":150,\"../valid-value\":162}],160:[function(_dereq_,module,exports){\n\"use strict\";\n\nmodule.exports = function (fn) {\n\tif (typeof fn !== \"function\") throw new TypeError(fn + \" is not a function\");\n\treturn fn;\n};\n\n},{}],161:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar isObject = _dereq_(\"./is-object\");\n\nmodule.exports = function (value) {\n\tif (!isObject(value)) throw new TypeError(value + \" is not an Object\");\n\treturn value;\n};\n\n},{\"./is-object\":150}],162:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar isValue = _dereq_(\"./is-value\");\n\nmodule.exports = function (value) {\n\tif (!isValue(value)) throw new TypeError(\"Cannot use null or undefined\");\n\treturn value;\n};\n\n},{\"./is-value\":151}],163:[function(_dereq_,module,exports){\n\"use strict\";\n\nmodule.exports = _dereq_(\"./is-implemented\")() ? String.prototype.contains : _dereq_(\"./shim\");\n\n},{\"./is-implemented\":164,\"./shim\":165}],164:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar str = \"razdwatrzy\";\n\nmodule.exports = function () {\n\tif (typeof str.contains !== \"function\") return false;\n\treturn str.contains(\"dwa\") === true && str.contains(\"foo\") === false;\n};\n\n},{}],165:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar indexOf = String.prototype.indexOf;\n\nmodule.exports = function (searchString/*, position*/) {\n\treturn indexOf.call(this, searchString, arguments[1]) > -1;\n};\n\n},{}],166:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar objToString = Object.prototype.toString, id = objToString.call(\"\");\n\nmodule.exports = function (value) {\n\treturn (\n\t\ttypeof value === \"string\" ||\n\t\t(value &&\n\t\t\ttypeof value === \"object\" &&\n\t\t\t(value instanceof String || objToString.call(value) === id)) ||\n\t\tfalse\n\t);\n};\n\n},{}],167:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar generated = Object.create(null), random = Math.random;\n\nmodule.exports = function () {\n\tvar str;\n\tdo {\n\t\tstr = random().toString(36).slice(2);\n\t} while (generated[str]);\n\treturn str;\n};\n\n},{}],168:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar setPrototypeOf = _dereq_(\"es5-ext/object/set-prototype-of\")\n , contains = _dereq_(\"es5-ext/string/#/contains\")\n , d = _dereq_(\"d\")\n , Symbol = _dereq_(\"es6-symbol\")\n , Iterator = _dereq_(\"./\");\n\nvar defineProperty = Object.defineProperty, ArrayIterator;\n\nArrayIterator = module.exports = function (arr, kind) {\n\tif (!(this instanceof ArrayIterator)) throw new TypeError(\"Constructor requires 'new'\");\n\tIterator.call(this, arr);\n\tif (!kind) kind = \"value\";\n\telse if (contains.call(kind, \"key+value\")) kind = \"key+value\";\n\telse if (contains.call(kind, \"key\")) kind = \"key\";\n\telse kind = \"value\";\n\tdefineProperty(this, \"__kind__\", d(\"\", kind));\n};\nif (setPrototypeOf) setPrototypeOf(ArrayIterator, Iterator);\n\n// Internal %ArrayIteratorPrototype% doesn't expose its constructor\ndelete ArrayIterator.prototype.constructor;\n\nArrayIterator.prototype = Object.create(Iterator.prototype, {\n\t_resolve: d(function (i) {\n\t\tif (this.__kind__ === \"value\") return this.__list__[i];\n\t\tif (this.__kind__ === \"key+value\") return [i, this.__list__[i]];\n\t\treturn i;\n\t})\n});\ndefineProperty(ArrayIterator.prototype, Symbol.toStringTag, d(\"c\", \"Array Iterator\"));\n\n},{\"./\":171,\"d\":106,\"es5-ext/object/set-prototype-of\":157,\"es5-ext/string/#/contains\":163,\"es6-symbol\":175}],169:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar isArguments = _dereq_(\"es5-ext/function/is-arguments\")\n , callable = _dereq_(\"es5-ext/object/valid-callable\")\n , isString = _dereq_(\"es5-ext/string/is-string\")\n , get = _dereq_(\"./get\");\n\nvar isArray = Array.isArray, call = Function.prototype.call, some = Array.prototype.some;\n\nmodule.exports = function (iterable, cb /*, thisArg*/) {\n\tvar mode, thisArg = arguments[2], result, doBreak, broken, i, length, char, code;\n\tif (isArray(iterable) || isArguments(iterable)) mode = \"array\";\n\telse if (isString(iterable)) mode = \"string\";\n\telse iterable = get(iterable);\n\n\tcallable(cb);\n\tdoBreak = function () {\n\t\tbroken = true;\n\t};\n\tif (mode === \"array\") {\n\t\tsome.call(iterable, function (value) {\n\t\t\tcall.call(cb, thisArg, value, doBreak);\n\t\t\treturn broken;\n\t\t});\n\t\treturn;\n\t}\n\tif (mode === \"string\") {\n\t\tlength = iterable.length;\n\t\tfor (i = 0; i < length; ++i) {\n\t\t\tchar = iterable[i];\n\t\t\tif (i + 1 < length) {\n\t\t\t\tcode = char.charCodeAt(0);\n\t\t\t\tif (code >= 0xd800 && code <= 0xdbff) char += iterable[++i];\n\t\t\t}\n\t\t\tcall.call(cb, thisArg, char, doBreak);\n\t\t\tif (broken) break;\n\t\t}\n\t\treturn;\n\t}\n\tresult = iterable.next();\n\n\twhile (!result.done) {\n\t\tcall.call(cb, thisArg, result.value, doBreak);\n\t\tif (broken) return;\n\t\tresult = iterable.next();\n\t}\n};\n\n},{\"./get\":170,\"es5-ext/function/is-arguments\":135,\"es5-ext/object/valid-callable\":160,\"es5-ext/string/is-string\":166}],170:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar isArguments = _dereq_(\"es5-ext/function/is-arguments\")\n , isString = _dereq_(\"es5-ext/string/is-string\")\n , ArrayIterator = _dereq_(\"./array\")\n , StringIterator = _dereq_(\"./string\")\n , iterable = _dereq_(\"./valid-iterable\")\n , iteratorSymbol = _dereq_(\"es6-symbol\").iterator;\n\nmodule.exports = function (obj) {\n\tif (typeof iterable(obj)[iteratorSymbol] === \"function\") return obj[iteratorSymbol]();\n\tif (isArguments(obj)) return new ArrayIterator(obj);\n\tif (isString(obj)) return new StringIterator(obj);\n\treturn new ArrayIterator(obj);\n};\n\n},{\"./array\":168,\"./string\":173,\"./valid-iterable\":174,\"es5-ext/function/is-arguments\":135,\"es5-ext/string/is-string\":166,\"es6-symbol\":175}],171:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar clear = _dereq_(\"es5-ext/array/#/clear\")\n , assign = _dereq_(\"es5-ext/object/assign\")\n , callable = _dereq_(\"es5-ext/object/valid-callable\")\n , value = _dereq_(\"es5-ext/object/valid-value\")\n , d = _dereq_(\"d\")\n , autoBind = _dereq_(\"d/auto-bind\")\n , Symbol = _dereq_(\"es6-symbol\");\n\nvar defineProperty = Object.defineProperty, defineProperties = Object.defineProperties, Iterator;\n\nmodule.exports = Iterator = function (list, context) {\n\tif (!(this instanceof Iterator)) throw new TypeError(\"Constructor requires 'new'\");\n\tdefineProperties(this, {\n\t\t__list__: d(\"w\", value(list)),\n\t\t__context__: d(\"w\", context),\n\t\t__nextIndex__: d(\"w\", 0)\n\t});\n\tif (!context) return;\n\tcallable(context.on);\n\tcontext.on(\"_add\", this._onAdd);\n\tcontext.on(\"_delete\", this._onDelete);\n\tcontext.on(\"_clear\", this._onClear);\n};\n\n// Internal %IteratorPrototype% doesn't expose its constructor\ndelete Iterator.prototype.constructor;\n\ndefineProperties(\n\tIterator.prototype,\n\tassign(\n\t\t{\n\t\t\t_next: d(function () {\n\t\t\t\tvar i;\n\t\t\t\tif (!this.__list__) return undefined;\n\t\t\t\tif (this.__redo__) {\n\t\t\t\t\ti = this.__redo__.shift();\n\t\t\t\t\tif (i !== undefined) return i;\n\t\t\t\t}\n\t\t\t\tif (this.__nextIndex__ < this.__list__.length) return this.__nextIndex__++;\n\t\t\t\tthis._unBind();\n\t\t\t\treturn undefined;\n\t\t\t}),\n\t\t\tnext: d(function () {\n\t\t\t\treturn this._createResult(this._next());\n\t\t\t}),\n\t\t\t_createResult: d(function (i) {\n\t\t\t\tif (i === undefined) return { done: true, value: undefined };\n\t\t\t\treturn { done: false, value: this._resolve(i) };\n\t\t\t}),\n\t\t\t_resolve: d(function (i) {\n\t\t\t\treturn this.__list__[i];\n\t\t\t}),\n\t\t\t_unBind: d(function () {\n\t\t\t\tthis.__list__ = null;\n\t\t\t\tdelete this.__redo__;\n\t\t\t\tif (!this.__context__) return;\n\t\t\t\tthis.__context__.off(\"_add\", this._onAdd);\n\t\t\t\tthis.__context__.off(\"_delete\", this._onDelete);\n\t\t\t\tthis.__context__.off(\"_clear\", this._onClear);\n\t\t\t\tthis.__context__ = null;\n\t\t\t}),\n\t\t\ttoString: d(function () {\n\t\t\t\treturn \"[object \" + (this[Symbol.toStringTag] || \"Object\") + \"]\";\n\t\t\t})\n\t\t},\n\t\tautoBind({\n\t\t\t_onAdd: d(function (index) {\n\t\t\t\tif (index >= this.__nextIndex__) return;\n\t\t\t\t++this.__nextIndex__;\n\t\t\t\tif (!this.__redo__) {\n\t\t\t\t\tdefineProperty(this, \"__redo__\", d(\"c\", [index]));\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tthis.__redo__.forEach(function (redo, i) {\n\t\t\t\t\tif (redo >= index) this.__redo__[i] = ++redo;\n\t\t\t\t}, this);\n\t\t\t\tthis.__redo__.push(index);\n\t\t\t}),\n\t\t\t_onDelete: d(function (index) {\n\t\t\t\tvar i;\n\t\t\t\tif (index >= this.__nextIndex__) return;\n\t\t\t\t--this.__nextIndex__;\n\t\t\t\tif (!this.__redo__) return;\n\t\t\t\ti = this.__redo__.indexOf(index);\n\t\t\t\tif (i !== -1) this.__redo__.splice(i, 1);\n\t\t\t\tthis.__redo__.forEach(function (redo, j) {\n\t\t\t\t\tif (redo > index) this.__redo__[j] = --redo;\n\t\t\t\t}, this);\n\t\t\t}),\n\t\t\t_onClear: d(function () {\n\t\t\t\tif (this.__redo__) clear.call(this.__redo__);\n\t\t\t\tthis.__nextIndex__ = 0;\n\t\t\t})\n\t\t})\n\t)\n);\n\ndefineProperty(\n\tIterator.prototype,\n\tSymbol.iterator,\n\td(function () {\n\t\treturn this;\n\t})\n);\n\n},{\"d\":106,\"d/auto-bind\":105,\"es5-ext/array/#/clear\":131,\"es5-ext/object/assign\":144,\"es5-ext/object/valid-callable\":160,\"es5-ext/object/valid-value\":162,\"es6-symbol\":175}],172:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar isArguments = _dereq_(\"es5-ext/function/is-arguments\")\n , isValue = _dereq_(\"es5-ext/object/is-value\")\n , isString = _dereq_(\"es5-ext/string/is-string\");\n\nvar iteratorSymbol = _dereq_(\"es6-symbol\").iterator\n , isArray = Array.isArray;\n\nmodule.exports = function (value) {\n\tif (!isValue(value)) return false;\n\tif (isArray(value)) return true;\n\tif (isString(value)) return true;\n\tif (isArguments(value)) return true;\n\treturn typeof value[iteratorSymbol] === \"function\";\n};\n\n},{\"es5-ext/function/is-arguments\":135,\"es5-ext/object/is-value\":151,\"es5-ext/string/is-string\":166,\"es6-symbol\":175}],173:[function(_dereq_,module,exports){\n// Thanks @mathiasbynens\n// http://mathiasbynens.be/notes/javascript-unicode#iterating-over-symbols\n\n\"use strict\";\n\nvar setPrototypeOf = _dereq_(\"es5-ext/object/set-prototype-of\")\n , d = _dereq_(\"d\")\n , Symbol = _dereq_(\"es6-symbol\")\n , Iterator = _dereq_(\"./\");\n\nvar defineProperty = Object.defineProperty, StringIterator;\n\nStringIterator = module.exports = function (str) {\n\tif (!(this instanceof StringIterator)) throw new TypeError(\"Constructor requires 'new'\");\n\tstr = String(str);\n\tIterator.call(this, str);\n\tdefineProperty(this, \"__length__\", d(\"\", str.length));\n};\nif (setPrototypeOf) setPrototypeOf(StringIterator, Iterator);\n\n// Internal %ArrayIteratorPrototype% doesn't expose its constructor\ndelete StringIterator.prototype.constructor;\n\nStringIterator.prototype = Object.create(Iterator.prototype, {\n\t_next: d(function () {\n\t\tif (!this.__list__) return undefined;\n\t\tif (this.__nextIndex__ < this.__length__) return this.__nextIndex__++;\n\t\tthis._unBind();\n\t\treturn undefined;\n\t}),\n\t_resolve: d(function (i) {\n\t\tvar char = this.__list__[i], code;\n\t\tif (this.__nextIndex__ === this.__length__) return char;\n\t\tcode = char.charCodeAt(0);\n\t\tif (code >= 0xd800 && code <= 0xdbff) return char + this.__list__[this.__nextIndex__++];\n\t\treturn char;\n\t})\n});\ndefineProperty(StringIterator.prototype, Symbol.toStringTag, d(\"c\", \"String Iterator\"));\n\n},{\"./\":171,\"d\":106,\"es5-ext/object/set-prototype-of\":157,\"es6-symbol\":175}],174:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar isIterable = _dereq_(\"./is-iterable\");\n\nmodule.exports = function (value) {\n\tif (!isIterable(value)) throw new TypeError(value + \" is not iterable\");\n\treturn value;\n};\n\n},{\"./is-iterable\":172}],175:[function(_dereq_,module,exports){\n\"use strict\";\n\nmodule.exports = _dereq_(\"./is-implemented\")()\n\t? _dereq_(\"ext/global-this\").Symbol\n\t: _dereq_(\"./polyfill\");\n\n},{\"./is-implemented\":176,\"./polyfill\":181,\"ext/global-this\":188}],176:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar global = _dereq_(\"ext/global-this\")\n , validTypes = { object: true, symbol: true };\n\nmodule.exports = function () {\n\tvar Symbol = global.Symbol;\n\tvar symbol;\n\tif (typeof Symbol !== \"function\") return false;\n\tsymbol = Symbol(\"test symbol\");\n\ttry { String(symbol); }\n\tcatch (e) { return false; }\n\n\t// Return 'true' also for polyfills\n\tif (!validTypes[typeof Symbol.iterator]) return false;\n\tif (!validTypes[typeof Symbol.toPrimitive]) return false;\n\tif (!validTypes[typeof Symbol.toStringTag]) return false;\n\n\treturn true;\n};\n\n},{\"ext/global-this\":188}],177:[function(_dereq_,module,exports){\n\"use strict\";\n\nmodule.exports = function (value) {\n\tif (!value) return false;\n\tif (typeof value === \"symbol\") return true;\n\tif (!value.constructor) return false;\n\tif (value.constructor.name !== \"Symbol\") return false;\n\treturn value[value.constructor.toStringTag] === \"Symbol\";\n};\n\n},{}],178:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar d = _dereq_(\"d\");\n\nvar create = Object.create, defineProperty = Object.defineProperty, objPrototype = Object.prototype;\n\nvar created = create(null);\nmodule.exports = function (desc) {\n\tvar postfix = 0, name, ie11BugWorkaround;\n\twhile (created[desc + (postfix || \"\")]) ++postfix;\n\tdesc += postfix || \"\";\n\tcreated[desc] = true;\n\tname = \"@@\" + desc;\n\tdefineProperty(\n\t\tobjPrototype,\n\t\tname,\n\t\td.gs(null, function (value) {\n\t\t\t// For IE11 issue see:\n\t\t\t// https://connect.microsoft.com/IE/feedbackdetail/view/1928508/\n\t\t\t// ie11-broken-getters-on-dom-objects\n\t\t\t// https://github.com/medikoo/es6-symbol/issues/12\n\t\t\tif (ie11BugWorkaround) return;\n\t\t\tie11BugWorkaround = true;\n\t\t\tdefineProperty(this, name, d(value));\n\t\t\tie11BugWorkaround = false;\n\t\t})\n\t);\n\treturn name;\n};\n\n},{\"d\":106}],179:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar d = _dereq_(\"d\")\n , NativeSymbol = _dereq_(\"ext/global-this\").Symbol;\n\nmodule.exports = function (SymbolPolyfill) {\n\treturn Object.defineProperties(SymbolPolyfill, {\n\t\t// To ensure proper interoperability with other native functions (e.g. Array.from)\n\t\t// fallback to eventual native implementation of given symbol\n\t\thasInstance: d(\n\t\t\t\"\", (NativeSymbol && NativeSymbol.hasInstance) || SymbolPolyfill(\"hasInstance\")\n\t\t),\n\t\tisConcatSpreadable: d(\n\t\t\t\"\",\n\t\t\t(NativeSymbol && NativeSymbol.isConcatSpreadable) ||\n\t\t\t\tSymbolPolyfill(\"isConcatSpreadable\")\n\t\t),\n\t\titerator: d(\"\", (NativeSymbol && NativeSymbol.iterator) || SymbolPolyfill(\"iterator\")),\n\t\tmatch: d(\"\", (NativeSymbol && NativeSymbol.match) || SymbolPolyfill(\"match\")),\n\t\treplace: d(\"\", (NativeSymbol && NativeSymbol.replace) || SymbolPolyfill(\"replace\")),\n\t\tsearch: d(\"\", (NativeSymbol && NativeSymbol.search) || SymbolPolyfill(\"search\")),\n\t\tspecies: d(\"\", (NativeSymbol && NativeSymbol.species) || SymbolPolyfill(\"species\")),\n\t\tsplit: d(\"\", (NativeSymbol && NativeSymbol.split) || SymbolPolyfill(\"split\")),\n\t\ttoPrimitive: d(\n\t\t\t\"\", (NativeSymbol && NativeSymbol.toPrimitive) || SymbolPolyfill(\"toPrimitive\")\n\t\t),\n\t\ttoStringTag: d(\n\t\t\t\"\", (NativeSymbol && NativeSymbol.toStringTag) || SymbolPolyfill(\"toStringTag\")\n\t\t),\n\t\tunscopables: d(\n\t\t\t\"\", (NativeSymbol && NativeSymbol.unscopables) || SymbolPolyfill(\"unscopables\")\n\t\t)\n\t});\n};\n\n},{\"d\":106,\"ext/global-this\":188}],180:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar d = _dereq_(\"d\")\n , validateSymbol = _dereq_(\"../../../validate-symbol\");\n\nvar registry = Object.create(null);\n\nmodule.exports = function (SymbolPolyfill) {\n\treturn Object.defineProperties(SymbolPolyfill, {\n\t\tfor: d(function (key) {\n\t\t\tif (registry[key]) return registry[key];\n\t\t\treturn (registry[key] = SymbolPolyfill(String(key)));\n\t\t}),\n\t\tkeyFor: d(function (symbol) {\n\t\t\tvar key;\n\t\t\tvalidateSymbol(symbol);\n\t\t\tfor (key in registry) {\n\t\t\t\tif (registry[key] === symbol) return key;\n\t\t\t}\n\t\t\treturn undefined;\n\t\t})\n\t});\n};\n\n},{\"../../../validate-symbol\":182,\"d\":106}],181:[function(_dereq_,module,exports){\n// ES2015 Symbol polyfill for environments that do not (or partially) support it\n\n\"use strict\";\n\nvar d = _dereq_(\"d\")\n , validateSymbol = _dereq_(\"./validate-symbol\")\n , NativeSymbol = _dereq_(\"ext/global-this\").Symbol\n , generateName = _dereq_(\"./lib/private/generate-name\")\n , setupStandardSymbols = _dereq_(\"./lib/private/setup/standard-symbols\")\n , setupSymbolRegistry = _dereq_(\"./lib/private/setup/symbol-registry\");\n\nvar create = Object.create\n , defineProperties = Object.defineProperties\n , defineProperty = Object.defineProperty;\n\nvar SymbolPolyfill, HiddenSymbol, isNativeSafe;\n\nif (typeof NativeSymbol === \"function\") {\n\ttry {\n\t\tString(NativeSymbol());\n\t\tisNativeSafe = true;\n\t} catch (ignore) {}\n} else {\n\tNativeSymbol = null;\n}\n\n// Internal constructor (not one exposed) for creating Symbol instances.\n// This one is used to ensure that `someSymbol instanceof Symbol` always return false\nHiddenSymbol = function Symbol(description) {\n\tif (this instanceof HiddenSymbol) throw new TypeError(\"Symbol is not a constructor\");\n\treturn SymbolPolyfill(description);\n};\n\n// Exposed `Symbol` constructor\n// (returns instances of HiddenSymbol)\nmodule.exports = SymbolPolyfill = function Symbol(description) {\n\tvar symbol;\n\tif (this instanceof Symbol) throw new TypeError(\"Symbol is not a constructor\");\n\tif (isNativeSafe) return NativeSymbol(description);\n\tsymbol = create(HiddenSymbol.prototype);\n\tdescription = description === undefined ? \"\" : String(description);\n\treturn defineProperties(symbol, {\n\t\t__description__: d(\"\", description),\n\t\t__name__: d(\"\", generateName(description))\n\t});\n};\n\nsetupStandardSymbols(SymbolPolyfill);\nsetupSymbolRegistry(SymbolPolyfill);\n\n// Internal tweaks for real symbol producer\ndefineProperties(HiddenSymbol.prototype, {\n\tconstructor: d(SymbolPolyfill),\n\ttoString: d(\"\", function () { return this.__name__; })\n});\n\n// Proper implementation of methods exposed on Symbol.prototype\n// They won't be accessible on produced symbol instances as they derive from HiddenSymbol.prototype\ndefineProperties(SymbolPolyfill.prototype, {\n\ttoString: d(function () { return \"Symbol (\" + validateSymbol(this).__description__ + \")\"; }),\n\tvalueOf: d(function () { return validateSymbol(this); })\n});\ndefineProperty(\n\tSymbolPolyfill.prototype,\n\tSymbolPolyfill.toPrimitive,\n\td(\"\", function () {\n\t\tvar symbol = validateSymbol(this);\n\t\tif (typeof symbol === \"symbol\") return symbol;\n\t\treturn symbol.toString();\n\t})\n);\ndefineProperty(SymbolPolyfill.prototype, SymbolPolyfill.toStringTag, d(\"c\", \"Symbol\"));\n\n// Proper implementaton of toPrimitive and toStringTag for returned symbol instances\ndefineProperty(\n\tHiddenSymbol.prototype, SymbolPolyfill.toStringTag,\n\td(\"c\", SymbolPolyfill.prototype[SymbolPolyfill.toStringTag])\n);\n\n// Note: It's important to define `toPrimitive` as last one, as some implementations\n// implement `toPrimitive` natively without implementing `toStringTag` (or other specified symbols)\n// And that may invoke error in definition flow:\n// See: https://github.com/medikoo/es6-symbol/issues/13#issuecomment-164146149\ndefineProperty(\n\tHiddenSymbol.prototype, SymbolPolyfill.toPrimitive,\n\td(\"c\", SymbolPolyfill.prototype[SymbolPolyfill.toPrimitive])\n);\n\n},{\"./lib/private/generate-name\":178,\"./lib/private/setup/standard-symbols\":179,\"./lib/private/setup/symbol-registry\":180,\"./validate-symbol\":182,\"d\":106,\"ext/global-this\":188}],182:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar isSymbol = _dereq_(\"./is-symbol\");\n\nmodule.exports = function (value) {\n\tif (!isSymbol(value)) throw new TypeError(value + \" is not a symbol\");\n\treturn value;\n};\n\n},{\"./is-symbol\":177}],183:[function(_dereq_,module,exports){\n\"use strict\";\n\nmodule.exports = _dereq_(\"./is-implemented\")() ? WeakMap : _dereq_(\"./polyfill\");\n\n},{\"./is-implemented\":184,\"./polyfill\":186}],184:[function(_dereq_,module,exports){\n\"use strict\";\n\nmodule.exports = function () {\n\tvar weakMap, obj;\n\n\tif (typeof WeakMap !== \"function\") return false;\n\ttry {\n\t\t// WebKit doesn't support arguments and crashes\n\t\tweakMap = new WeakMap([[obj = {}, \"one\"], [{}, \"two\"], [{}, \"three\"]]);\n\t} catch (e) {\n\t\treturn false;\n\t}\n\tif (String(weakMap) !== \"[object WeakMap]\") return false;\n\tif (typeof weakMap.set !== \"function\") return false;\n\tif (weakMap.set({}, 1) !== weakMap) return false;\n\tif (typeof weakMap.delete !== \"function\") return false;\n\tif (typeof weakMap.has !== \"function\") return false;\n\tif (weakMap.get(obj) !== \"one\") return false;\n\n\treturn true;\n};\n\n},{}],185:[function(_dereq_,module,exports){\n// Exports true if environment provides native `WeakMap` implementation, whatever that is.\n\n\"use strict\";\n\nmodule.exports = (function () {\n\tif (typeof WeakMap !== \"function\") return false;\n\treturn Object.prototype.toString.call(new WeakMap()) === \"[object WeakMap]\";\n}());\n\n},{}],186:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar isValue = _dereq_(\"es5-ext/object/is-value\")\n , setPrototypeOf = _dereq_(\"es5-ext/object/set-prototype-of\")\n , object = _dereq_(\"es5-ext/object/valid-object\")\n , ensureValue = _dereq_(\"es5-ext/object/valid-value\")\n , randomUniq = _dereq_(\"es5-ext/string/random-uniq\")\n , d = _dereq_(\"d\")\n , getIterator = _dereq_(\"es6-iterator/get\")\n , forOf = _dereq_(\"es6-iterator/for-of\")\n , toStringTagSymbol = _dereq_(\"es6-symbol\").toStringTag\n , isNative = _dereq_(\"./is-native-implemented\")\n\n , isArray = Array.isArray, defineProperty = Object.defineProperty\n , objHasOwnProperty = Object.prototype.hasOwnProperty, getPrototypeOf = Object.getPrototypeOf\n , WeakMapPoly;\n\nmodule.exports = WeakMapPoly = function (/* Iterable*/) {\n\tvar iterable = arguments[0], self;\n\n\tif (!(this instanceof WeakMapPoly)) throw new TypeError(\"Constructor requires 'new'\");\n\tself = isNative && setPrototypeOf && (WeakMap !== WeakMapPoly)\n\t\t? setPrototypeOf(new WeakMap(), getPrototypeOf(this)) : this;\n\n\tif (isValue(iterable)) {\n\t\tif (!isArray(iterable)) iterable = getIterator(iterable);\n\t}\n\tdefineProperty(self, \"__weakMapData__\", d(\"c\", \"$weakMap$\" + randomUniq()));\n\tif (!iterable) return self;\n\tforOf(iterable, function (val) {\n\t\tensureValue(val);\n\t\tself.set(val[0], val[1]);\n\t});\n\treturn self;\n};\n\nif (isNative) {\n\tif (setPrototypeOf) setPrototypeOf(WeakMapPoly, WeakMap);\n\tWeakMapPoly.prototype = Object.create(WeakMap.prototype, { constructor: d(WeakMapPoly) });\n}\n\nObject.defineProperties(WeakMapPoly.prototype, {\n\tdelete: d(function (key) {\n\t\tif (objHasOwnProperty.call(object(key), this.__weakMapData__)) {\n\t\t\tdelete key[this.__weakMapData__];\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}),\n\tget: d(function (key) {\n\t\tif (!objHasOwnProperty.call(object(key), this.__weakMapData__)) return undefined;\n\t\treturn key[this.__weakMapData__];\n\t}),\n\thas: d(function (key) {\n\t\treturn objHasOwnProperty.call(object(key), this.__weakMapData__);\n\t}),\n\tset: d(function (key, value) {\n\t\tdefineProperty(object(key), this.__weakMapData__, d(\"c\", value));\n\t\treturn this;\n\t}),\n\ttoString: d(function () {\n\t\treturn \"[object WeakMap]\";\n\t})\n});\ndefineProperty(WeakMapPoly.prototype, toStringTagSymbol, d(\"c\", \"WeakMap\"));\n\n},{\"./is-native-implemented\":185,\"d\":106,\"es5-ext/object/is-value\":151,\"es5-ext/object/set-prototype-of\":157,\"es5-ext/object/valid-object\":161,\"es5-ext/object/valid-value\":162,\"es5-ext/string/random-uniq\":167,\"es6-iterator/for-of\":169,\"es6-iterator/get\":170,\"es6-symbol\":175}],187:[function(_dereq_,module,exports){\nvar naiveFallback = function () {\n\tif (typeof self === \"object\" && self) return self;\n\tif (typeof window === \"object\" && window) return window;\n\tthrow new Error(\"Unable to resolve global `this`\");\n};\n\nmodule.exports = (function () {\n\tif (this) return this;\n\n\t// Unexpected strict mode (may happen if e.g. bundled into ESM module)\n\n\t// Thanks @mathiasbynens -> https://mathiasbynens.be/notes/globalthis\n\t// In all ES5+ engines global object inherits from Object.prototype\n\t// (if you approached one that doesn't please report)\n\ttry {\n\t\tObject.defineProperty(Object.prototype, \"__global__\", {\n\t\t\tget: function () { return this; },\n\t\t\tconfigurable: true\n\t\t});\n\t} catch (error) {\n\t\t// Unfortunate case of Object.prototype being sealed (via preventExtensions, seal or freeze)\n\t\treturn naiveFallback();\n\t}\n\ttry {\n\t\t// Safari case (window.__global__ is resolved with global context, but __global__ does not)\n\t\tif (!__global__) return naiveFallback();\n\t\treturn __global__;\n\t} finally {\n\t\tdelete Object.prototype.__global__;\n\t}\n})();\n\n},{}],188:[function(_dereq_,module,exports){\n\"use strict\";\n\nmodule.exports = _dereq_(\"./is-implemented\")() ? globalThis : _dereq_(\"./implementation\");\n\n},{\"./implementation\":187,\"./is-implemented\":189}],189:[function(_dereq_,module,exports){\n\"use strict\";\n\nmodule.exports = function () {\n\tif (typeof globalThis !== \"object\") return false;\n\tif (!globalThis) return false;\n\treturn globalThis.Array === Array;\n};\n\n},{}],190:[function(_dereq_,module,exports){\n/**\n * inspired by is-number \n * but significantly simplified and sped up by ignoring number and string constructors\n * ie these return false:\n * new Number(1)\n * new String('1')\n */\n\n'use strict';\n\nvar allBlankCharCodes = _dereq_('is-string-blank');\n\nmodule.exports = function(n) {\n var type = typeof n;\n if(type === 'string') {\n var original = n;\n n = +n;\n // whitespace strings cast to zero - filter them out\n if(n===0 && allBlankCharCodes(original)) return false;\n }\n else if(type !== 'number') return false;\n\n return n - n < 1;\n};\n\n},{\"is-string-blank\":237}],191:[function(_dereq_,module,exports){\n/*eslint new-cap:0*/\nvar dtype = _dereq_('dtype')\n\nmodule.exports = flattenVertexData\n\nfunction flattenVertexData (data, output, offset) {\n if (!data) throw new TypeError('must specify data as first parameter')\n offset = +(offset || 0) | 0\n\n if (Array.isArray(data) && (data[0] && typeof data[0][0] === 'number')) {\n var dim = data[0].length\n var length = data.length * dim\n var i, j, k, l\n\n // no output specified, create a new typed array\n if (!output || typeof output === 'string') {\n output = new (dtype(output || 'float32'))(length + offset)\n }\n\n var dstLength = output.length - offset\n if (length !== dstLength) {\n throw new Error('source length ' + length + ' (' + dim + 'x' + data.length + ')' +\n ' does not match destination length ' + dstLength)\n }\n\n for (i = 0, k = offset; i < data.length; i++) {\n for (j = 0; j < dim; j++) {\n output[k++] = data[i][j] === null ? NaN : data[i][j]\n }\n }\n } else {\n if (!output || typeof output === 'string') {\n // no output, create a new one\n var Ctor = dtype(output || 'float32')\n\n // handle arrays separately due to possible nulls\n if (Array.isArray(data) || output === 'array') {\n output = new Ctor(data.length + offset)\n for (i = 0, k = offset, l = output.length; k < l; k++, i++) {\n output[k] = data[i] === null ? NaN : data[i]\n }\n } else {\n if (offset === 0) {\n output = new Ctor(data)\n } else {\n output = new Ctor(data.length + offset)\n\n output.set(data, offset)\n }\n }\n } else {\n // store output in existing array\n output.set(data, offset)\n }\n }\n\n return output\n}\n\n},{\"dtype\":127}],192:[function(_dereq_,module,exports){\n'use strict'\r\n\r\nvar stringifyFont = _dereq_('css-font/stringify')\r\nvar defaultChars = [32, 126]\r\n\r\nmodule.exports = atlas\r\n\r\nfunction atlas(options) {\r\n options = options || {}\r\n\r\n var shape = options.shape ? options.shape : options.canvas ? [options.canvas.width, options.canvas.height] : [512, 512]\r\n var canvas = options.canvas || document.createElement('canvas')\r\n var font = options.font\r\n var step = typeof options.step === 'number' ? [options.step, options.step] : options.step || [32, 32]\r\n var chars = options.chars || defaultChars\r\n\r\n if (font && typeof font !== 'string') font = stringifyFont(font)\r\n\r\n if (!Array.isArray(chars)) {\r\n chars = String(chars).split('')\r\n } else\r\n if (chars.length === 2\r\n && typeof chars[0] === 'number'\r\n && typeof chars[1] === 'number'\r\n ) {\r\n var newchars = []\r\n\r\n for (var i = chars[0], j = 0; i <= chars[1]; i++) {\r\n newchars[j++] = String.fromCharCode(i)\r\n }\r\n\r\n chars = newchars\r\n }\r\n\r\n shape = shape.slice()\r\n canvas.width = shape[0]\r\n canvas.height = shape[1]\r\n\r\n var ctx = canvas.getContext('2d')\r\n\r\n ctx.fillStyle = '#000'\r\n ctx.fillRect(0, 0, canvas.width, canvas.height)\r\n\r\n ctx.font = font\r\n ctx.textAlign = 'center'\r\n ctx.textBaseline = 'middle'\r\n ctx.fillStyle = '#fff'\r\n\r\n var x = step[0] / 2\r\n var y = step[1] / 2\r\n for (var i = 0; i < chars.length; i++) {\r\n ctx.fillText(chars[i], x, y)\r\n if ((x += step[0]) > shape[0] - step[0]/2) (x = step[0]/2), (y += step[1])\r\n }\r\n\r\n return canvas\r\n}\r\n\n},{\"css-font/stringify\":102}],193:[function(_dereq_,module,exports){\n'use strict'\r\n\r\nmodule.exports = measure\r\n\r\nmeasure.canvas = document.createElement('canvas')\r\nmeasure.cache = {}\r\n\r\nfunction measure (font, o) {\r\n\tif (!o) o = {}\r\n\r\n\tif (typeof font === 'string' || Array.isArray(font)) {\r\n\t\to.family = font\r\n\t}\r\n\r\n\tvar family = Array.isArray(o.family) ? o.family.join(', ') : o.family\r\n\tif (!family) throw Error('`family` must be defined')\r\n\r\n\tvar fs = o.size || o.fontSize || o.em || 48\r\n\tvar weight = o.weight || o.fontWeight || ''\r\n\tvar style = o.style || o.fontStyle || ''\r\n\tvar font = [style, weight, fs].join(' ') + 'px ' + family\r\n\tvar origin = o.origin || 'top'\r\n\r\n\tif (measure.cache[family]) {\r\n\t\t// return more precise values if cache has them\r\n\t\tif (fs <= measure.cache[family].em) {\r\n\t\t\treturn applyOrigin(measure.cache[family], origin)\r\n\t\t}\r\n\t}\r\n\r\n\tvar canvas = o.canvas || measure.canvas\r\n\tvar ctx = canvas.getContext('2d')\r\n\tvar chars = {\r\n\t\tupper: o.upper !== undefined ? o.upper : 'H',\r\n\t\tlower: o.lower !== undefined ? o.lower : 'x',\r\n\t\tdescent: o.descent !== undefined ? o.descent : 'p',\r\n\t\tascent: o.ascent !== undefined ? o.ascent : 'h',\r\n\t\ttittle: o.tittle !== undefined ? o.tittle : 'i',\r\n\t\tovershoot: o.overshoot !== undefined ? o.overshoot : 'O'\r\n\t}\r\n\tvar l = Math.ceil(fs * 1.5)\r\n\tcanvas.height = l\r\n\tcanvas.width = l * .5\r\n\tctx.font = font\r\n\r\n\tvar char = 'H'\r\n\tvar result = {\r\n\t\ttop: 0\r\n\t}\r\n\r\n\t// measure line-height\r\n\tctx.clearRect(0, 0, l, l)\r\n\tctx.textBaseline = 'top'\r\n\tctx.fillStyle = 'black'\r\n\tctx.fillText(char, 0, 0)\r\n\tvar topPx = firstTop(ctx.getImageData(0, 0, l, l))\r\n\tctx.clearRect(0, 0, l, l)\r\n\tctx.textBaseline = 'bottom'\r\n\tctx.fillText(char, 0, l)\r\n\tvar bottomPx = firstTop(ctx.getImageData(0, 0, l, l))\r\n\tresult.lineHeight =\r\n\tresult.bottom = l - bottomPx + topPx\r\n\r\n\t// measure baseline\r\n\tctx.clearRect(0, 0, l, l)\r\n\tctx.textBaseline = 'alphabetic'\r\n\tctx.fillText(char, 0, l)\r\n\tvar baselinePx = firstTop(ctx.getImageData(0, 0, l, l))\r\n\tvar baseline = l - baselinePx - 1 + topPx\r\n\tresult.baseline =\r\n\tresult.alphabetic = baseline\r\n\r\n\t// measure median\r\n\tctx.clearRect(0, 0, l, l)\r\n\tctx.textBaseline = 'middle'\r\n\tctx.fillText(char, 0, l * .5)\r\n\tvar medianPx = firstTop(ctx.getImageData(0, 0, l, l))\r\n\tresult.median =\r\n\tresult.middle = l - medianPx - 1 + topPx - l * .5\r\n\r\n\t// measure hanging\r\n\tctx.clearRect(0, 0, l, l)\r\n\tctx.textBaseline = 'hanging'\r\n\tctx.fillText(char, 0, l * .5)\r\n\tvar hangingPx = firstTop(ctx.getImageData(0, 0, l, l))\r\n\tresult.hanging = l - hangingPx - 1 + topPx - l * .5\r\n\r\n\t// measure ideographic\r\n\tctx.clearRect(0, 0, l, l)\r\n\tctx.textBaseline = 'ideographic'\r\n\tctx.fillText(char, 0, l)\r\n\tvar ideographicPx = firstTop(ctx.getImageData(0, 0, l, l))\r\n\tresult.ideographic = l - ideographicPx - 1 + topPx\r\n\r\n\t// measure cap\r\n\tif (chars.upper) {\r\n\t\tctx.clearRect(0, 0, l, l)\r\n\t\tctx.textBaseline = 'top'\r\n\t\tctx.fillText(chars.upper, 0, 0)\r\n\t\tresult.upper = firstTop(ctx.getImageData(0, 0, l, l))\r\n\t\tresult.capHeight = (result.baseline - result.upper)\r\n\t}\r\n\r\n\t// measure x\r\n\tif (chars.lower) {\r\n\t\tctx.clearRect(0, 0, l, l)\r\n\t\tctx.textBaseline = 'top'\r\n\t\tctx.fillText(chars.lower, 0, 0)\r\n\t\tresult.lower = firstTop(ctx.getImageData(0, 0, l, l))\r\n\t\tresult.xHeight = (result.baseline - result.lower)\r\n\t}\r\n\r\n\t// measure tittle\r\n\tif (chars.tittle) {\r\n\t\tctx.clearRect(0, 0, l, l)\r\n\t\tctx.textBaseline = 'top'\r\n\t\tctx.fillText(chars.tittle, 0, 0)\r\n\t\tresult.tittle = firstTop(ctx.getImageData(0, 0, l, l))\r\n\t}\r\n\r\n\t// measure ascent\r\n\tif (chars.ascent) {\r\n\t\tctx.clearRect(0, 0, l, l)\r\n\t\tctx.textBaseline = 'top'\r\n\t\tctx.fillText(chars.ascent, 0, 0)\r\n\t\tresult.ascent = firstTop(ctx.getImageData(0, 0, l, l))\r\n\t}\r\n\r\n\t// measure descent\r\n\tif (chars.descent) {\r\n\t\tctx.clearRect(0, 0, l, l)\r\n\t\tctx.textBaseline = 'top'\r\n\t\tctx.fillText(chars.descent, 0, 0)\r\n\t\tresult.descent = firstBottom(ctx.getImageData(0, 0, l, l))\r\n\t}\r\n\r\n\t// measure overshoot\r\n\tif (chars.overshoot) {\r\n\t\tctx.clearRect(0, 0, l, l)\r\n\t\tctx.textBaseline = 'top'\r\n\t\tctx.fillText(chars.overshoot, 0, 0)\r\n\t\tvar overshootPx = firstBottom(ctx.getImageData(0, 0, l, l))\r\n\t\tresult.overshoot = overshootPx - baseline\r\n\t}\r\n\r\n\t// normalize result\r\n\tfor (var name in result) {\r\n\t\tresult[name] /= fs\r\n\t}\r\n\r\n\tresult.em = fs\r\n\tmeasure.cache[family] = result\r\n\r\n\treturn applyOrigin(result, origin)\r\n}\r\n\r\nfunction applyOrigin(obj, origin) {\r\n\tvar res = {}\r\n\tif (typeof origin === 'string') origin = obj[origin]\r\n\tfor (var name in obj) {\r\n\t\tif (name === 'em') continue\r\n\t\tres[name] = obj[name] - origin\r\n\t}\r\n\treturn res\r\n}\r\n\r\nfunction firstTop(iData) {\r\n\tvar l = iData.height\r\n\tvar data = iData.data\r\n\tfor (var i = 3; i < data.length; i+=4) {\r\n\t\tif (data[i] !== 0) {\r\n\t\t\treturn Math.floor((i - 3) *.25 / l)\r\n\t\t}\r\n\t}\r\n}\r\n\r\nfunction firstBottom(iData) {\r\n\tvar l = iData.height\r\n\tvar data = iData.data\r\n\tfor (var i = data.length - 1; i > 0; i -= 4) {\r\n\t\tif (data[i] !== 0) {\r\n\t\t\treturn Math.floor((i - 3) *.25 / l)\r\n\t\t}\r\n\t}\r\n}\r\n\n},{}],194:[function(_dereq_,module,exports){\nmodule.exports = getCanvasContext\nfunction getCanvasContext (type, opts) {\n if (typeof type !== 'string') {\n throw new TypeError('must specify type string')\n }\n\n opts = opts || {}\n\n if (typeof document === 'undefined' && !opts.canvas) {\n return null // check for Node\n }\n\n var canvas = opts.canvas || document.createElement('canvas')\n if (typeof opts.width === 'number') {\n canvas.width = opts.width\n }\n if (typeof opts.height === 'number') {\n canvas.height = opts.height\n }\n\n var attribs = opts\n var gl\n try {\n var names = [ type ]\n // prefix GL contexts\n if (type.indexOf('webgl') === 0) {\n names.push('experimental-' + type)\n }\n\n for (var i = 0; i < names.length; i++) {\n gl = canvas.getContext(names[i], attribs)\n if (gl) return gl\n }\n } catch (e) {\n gl = null\n }\n return (gl || null) // ensure null on fail\n}\n\n},{}],195:[function(_dereq_,module,exports){\nmodule.exports = adjoint;\n\n/**\n * Calculates the adjugate of a mat4\n *\n * @param {mat4} out the receiving matrix\n * @param {mat4} a the source matrix\n * @returns {mat4} out\n */\nfunction adjoint(out, a) {\n var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3],\n a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7],\n a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11],\n a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15];\n\n out[0] = (a11 * (a22 * a33 - a23 * a32) - a21 * (a12 * a33 - a13 * a32) + a31 * (a12 * a23 - a13 * a22));\n out[1] = -(a01 * (a22 * a33 - a23 * a32) - a21 * (a02 * a33 - a03 * a32) + a31 * (a02 * a23 - a03 * a22));\n out[2] = (a01 * (a12 * a33 - a13 * a32) - a11 * (a02 * a33 - a03 * a32) + a31 * (a02 * a13 - a03 * a12));\n out[3] = -(a01 * (a12 * a23 - a13 * a22) - a11 * (a02 * a23 - a03 * a22) + a21 * (a02 * a13 - a03 * a12));\n out[4] = -(a10 * (a22 * a33 - a23 * a32) - a20 * (a12 * a33 - a13 * a32) + a30 * (a12 * a23 - a13 * a22));\n out[5] = (a00 * (a22 * a33 - a23 * a32) - a20 * (a02 * a33 - a03 * a32) + a30 * (a02 * a23 - a03 * a22));\n out[6] = -(a00 * (a12 * a33 - a13 * a32) - a10 * (a02 * a33 - a03 * a32) + a30 * (a02 * a13 - a03 * a12));\n out[7] = (a00 * (a12 * a23 - a13 * a22) - a10 * (a02 * a23 - a03 * a22) + a20 * (a02 * a13 - a03 * a12));\n out[8] = (a10 * (a21 * a33 - a23 * a31) - a20 * (a11 * a33 - a13 * a31) + a30 * (a11 * a23 - a13 * a21));\n out[9] = -(a00 * (a21 * a33 - a23 * a31) - a20 * (a01 * a33 - a03 * a31) + a30 * (a01 * a23 - a03 * a21));\n out[10] = (a00 * (a11 * a33 - a13 * a31) - a10 * (a01 * a33 - a03 * a31) + a30 * (a01 * a13 - a03 * a11));\n out[11] = -(a00 * (a11 * a23 - a13 * a21) - a10 * (a01 * a23 - a03 * a21) + a20 * (a01 * a13 - a03 * a11));\n out[12] = -(a10 * (a21 * a32 - a22 * a31) - a20 * (a11 * a32 - a12 * a31) + a30 * (a11 * a22 - a12 * a21));\n out[13] = (a00 * (a21 * a32 - a22 * a31) - a20 * (a01 * a32 - a02 * a31) + a30 * (a01 * a22 - a02 * a21));\n out[14] = -(a00 * (a11 * a32 - a12 * a31) - a10 * (a01 * a32 - a02 * a31) + a30 * (a01 * a12 - a02 * a11));\n out[15] = (a00 * (a11 * a22 - a12 * a21) - a10 * (a01 * a22 - a02 * a21) + a20 * (a01 * a12 - a02 * a11));\n return out;\n};\n},{}],196:[function(_dereq_,module,exports){\nmodule.exports = clone;\n\n/**\n * Creates a new mat4 initialized with values from an existing matrix\n *\n * @param {mat4} a matrix to clone\n * @returns {mat4} a new 4x4 matrix\n */\nfunction clone(a) {\n var out = new Float32Array(16);\n out[0] = a[0];\n out[1] = a[1];\n out[2] = a[2];\n out[3] = a[3];\n out[4] = a[4];\n out[5] = a[5];\n out[6] = a[6];\n out[7] = a[7];\n out[8] = a[8];\n out[9] = a[9];\n out[10] = a[10];\n out[11] = a[11];\n out[12] = a[12];\n out[13] = a[13];\n out[14] = a[14];\n out[15] = a[15];\n return out;\n};\n},{}],197:[function(_dereq_,module,exports){\nmodule.exports = copy;\n\n/**\n * Copy the values from one mat4 to another\n *\n * @param {mat4} out the receiving matrix\n * @param {mat4} a the source matrix\n * @returns {mat4} out\n */\nfunction copy(out, a) {\n out[0] = a[0];\n out[1] = a[1];\n out[2] = a[2];\n out[3] = a[3];\n out[4] = a[4];\n out[5] = a[5];\n out[6] = a[6];\n out[7] = a[7];\n out[8] = a[8];\n out[9] = a[9];\n out[10] = a[10];\n out[11] = a[11];\n out[12] = a[12];\n out[13] = a[13];\n out[14] = a[14];\n out[15] = a[15];\n return out;\n};\n},{}],198:[function(_dereq_,module,exports){\nmodule.exports = create;\n\n/**\n * Creates a new identity mat4\n *\n * @returns {mat4} a new 4x4 matrix\n */\nfunction create() {\n var out = new Float32Array(16);\n out[0] = 1;\n out[1] = 0;\n out[2] = 0;\n out[3] = 0;\n out[4] = 0;\n out[5] = 1;\n out[6] = 0;\n out[7] = 0;\n out[8] = 0;\n out[9] = 0;\n out[10] = 1;\n out[11] = 0;\n out[12] = 0;\n out[13] = 0;\n out[14] = 0;\n out[15] = 1;\n return out;\n};\n},{}],199:[function(_dereq_,module,exports){\nmodule.exports = determinant;\n\n/**\n * Calculates the determinant of a mat4\n *\n * @param {mat4} a the source matrix\n * @returns {Number} determinant of a\n */\nfunction determinant(a) {\n var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3],\n a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7],\n a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11],\n a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15],\n\n b00 = a00 * a11 - a01 * a10,\n b01 = a00 * a12 - a02 * a10,\n b02 = a00 * a13 - a03 * a10,\n b03 = a01 * a12 - a02 * a11,\n b04 = a01 * a13 - a03 * a11,\n b05 = a02 * a13 - a03 * a12,\n b06 = a20 * a31 - a21 * a30,\n b07 = a20 * a32 - a22 * a30,\n b08 = a20 * a33 - a23 * a30,\n b09 = a21 * a32 - a22 * a31,\n b10 = a21 * a33 - a23 * a31,\n b11 = a22 * a33 - a23 * a32;\n\n // Calculate the determinant\n return b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06;\n};\n},{}],200:[function(_dereq_,module,exports){\nmodule.exports = fromQuat;\n\n/**\n * Creates a matrix from a quaternion rotation.\n *\n * @param {mat4} out mat4 receiving operation result\n * @param {quat4} q Rotation quaternion\n * @returns {mat4} out\n */\nfunction fromQuat(out, q) {\n var x = q[0], y = q[1], z = q[2], w = q[3],\n x2 = x + x,\n y2 = y + y,\n z2 = z + z,\n\n xx = x * x2,\n yx = y * x2,\n yy = y * y2,\n zx = z * x2,\n zy = z * y2,\n zz = z * z2,\n wx = w * x2,\n wy = w * y2,\n wz = w * z2;\n\n out[0] = 1 - yy - zz;\n out[1] = yx + wz;\n out[2] = zx - wy;\n out[3] = 0;\n\n out[4] = yx - wz;\n out[5] = 1 - xx - zz;\n out[6] = zy + wx;\n out[7] = 0;\n\n out[8] = zx + wy;\n out[9] = zy - wx;\n out[10] = 1 - xx - yy;\n out[11] = 0;\n\n out[12] = 0;\n out[13] = 0;\n out[14] = 0;\n out[15] = 1;\n\n return out;\n};\n},{}],201:[function(_dereq_,module,exports){\nmodule.exports = fromRotation\n\n/**\n * Creates a matrix from a given angle around a given axis\n * This is equivalent to (but much faster than):\n *\n * mat4.identity(dest)\n * mat4.rotate(dest, dest, rad, axis)\n *\n * @param {mat4} out mat4 receiving operation result\n * @param {Number} rad the angle to rotate the matrix by\n * @param {vec3} axis the axis to rotate around\n * @returns {mat4} out\n */\nfunction fromRotation(out, rad, axis) {\n var s, c, t\n var x = axis[0]\n var y = axis[1]\n var z = axis[2]\n var len = Math.sqrt(x * x + y * y + z * z)\n\n if (Math.abs(len) < 0.000001) {\n return null\n }\n\n len = 1 / len\n x *= len\n y *= len\n z *= len\n\n s = Math.sin(rad)\n c = Math.cos(rad)\n t = 1 - c\n\n // Perform rotation-specific matrix multiplication\n out[0] = x * x * t + c\n out[1] = y * x * t + z * s\n out[2] = z * x * t - y * s\n out[3] = 0\n out[4] = x * y * t - z * s\n out[5] = y * y * t + c\n out[6] = z * y * t + x * s\n out[7] = 0\n out[8] = x * z * t + y * s\n out[9] = y * z * t - x * s\n out[10] = z * z * t + c\n out[11] = 0\n out[12] = 0\n out[13] = 0\n out[14] = 0\n out[15] = 1\n return out\n}\n\n},{}],202:[function(_dereq_,module,exports){\nmodule.exports = fromRotationTranslation;\n\n/**\n * Creates a matrix from a quaternion rotation and vector translation\n * This is equivalent to (but much faster than):\n *\n * mat4.identity(dest);\n * mat4.translate(dest, vec);\n * var quatMat = mat4.create();\n * quat4.toMat4(quat, quatMat);\n * mat4.multiply(dest, quatMat);\n *\n * @param {mat4} out mat4 receiving operation result\n * @param {quat4} q Rotation quaternion\n * @param {vec3} v Translation vector\n * @returns {mat4} out\n */\nfunction fromRotationTranslation(out, q, v) {\n // Quaternion math\n var x = q[0], y = q[1], z = q[2], w = q[3],\n x2 = x + x,\n y2 = y + y,\n z2 = z + z,\n\n xx = x * x2,\n xy = x * y2,\n xz = x * z2,\n yy = y * y2,\n yz = y * z2,\n zz = z * z2,\n wx = w * x2,\n wy = w * y2,\n wz = w * z2;\n\n out[0] = 1 - (yy + zz);\n out[1] = xy + wz;\n out[2] = xz - wy;\n out[3] = 0;\n out[4] = xy - wz;\n out[5] = 1 - (xx + zz);\n out[6] = yz + wx;\n out[7] = 0;\n out[8] = xz + wy;\n out[9] = yz - wx;\n out[10] = 1 - (xx + yy);\n out[11] = 0;\n out[12] = v[0];\n out[13] = v[1];\n out[14] = v[2];\n out[15] = 1;\n \n return out;\n};\n},{}],203:[function(_dereq_,module,exports){\nmodule.exports = fromScaling\n\n/**\n * Creates a matrix from a vector scaling\n * This is equivalent to (but much faster than):\n *\n * mat4.identity(dest)\n * mat4.scale(dest, dest, vec)\n *\n * @param {mat4} out mat4 receiving operation result\n * @param {vec3} v Scaling vector\n * @returns {mat4} out\n */\nfunction fromScaling(out, v) {\n out[0] = v[0]\n out[1] = 0\n out[2] = 0\n out[3] = 0\n out[4] = 0\n out[5] = v[1]\n out[6] = 0\n out[7] = 0\n out[8] = 0\n out[9] = 0\n out[10] = v[2]\n out[11] = 0\n out[12] = 0\n out[13] = 0\n out[14] = 0\n out[15] = 1\n return out\n}\n\n},{}],204:[function(_dereq_,module,exports){\nmodule.exports = fromTranslation\n\n/**\n * Creates a matrix from a vector translation\n * This is equivalent to (but much faster than):\n *\n * mat4.identity(dest)\n * mat4.translate(dest, dest, vec)\n *\n * @param {mat4} out mat4 receiving operation result\n * @param {vec3} v Translation vector\n * @returns {mat4} out\n */\nfunction fromTranslation(out, v) {\n out[0] = 1\n out[1] = 0\n out[2] = 0\n out[3] = 0\n out[4] = 0\n out[5] = 1\n out[6] = 0\n out[7] = 0\n out[8] = 0\n out[9] = 0\n out[10] = 1\n out[11] = 0\n out[12] = v[0]\n out[13] = v[1]\n out[14] = v[2]\n out[15] = 1\n return out\n}\n\n},{}],205:[function(_dereq_,module,exports){\nmodule.exports = fromXRotation\n\n/**\n * Creates a matrix from the given angle around the X axis\n * This is equivalent to (but much faster than):\n *\n * mat4.identity(dest)\n * mat4.rotateX(dest, dest, rad)\n *\n * @param {mat4} out mat4 receiving operation result\n * @param {Number} rad the angle to rotate the matrix by\n * @returns {mat4} out\n */\nfunction fromXRotation(out, rad) {\n var s = Math.sin(rad),\n c = Math.cos(rad)\n\n // Perform axis-specific matrix multiplication\n out[0] = 1\n out[1] = 0\n out[2] = 0\n out[3] = 0\n out[4] = 0\n out[5] = c\n out[6] = s\n out[7] = 0\n out[8] = 0\n out[9] = -s\n out[10] = c\n out[11] = 0\n out[12] = 0\n out[13] = 0\n out[14] = 0\n out[15] = 1\n return out\n}\n},{}],206:[function(_dereq_,module,exports){\nmodule.exports = fromYRotation\n\n/**\n * Creates a matrix from the given angle around the Y axis\n * This is equivalent to (but much faster than):\n *\n * mat4.identity(dest)\n * mat4.rotateY(dest, dest, rad)\n *\n * @param {mat4} out mat4 receiving operation result\n * @param {Number} rad the angle to rotate the matrix by\n * @returns {mat4} out\n */\nfunction fromYRotation(out, rad) {\n var s = Math.sin(rad),\n c = Math.cos(rad)\n\n // Perform axis-specific matrix multiplication\n out[0] = c\n out[1] = 0\n out[2] = -s\n out[3] = 0\n out[4] = 0\n out[5] = 1\n out[6] = 0\n out[7] = 0\n out[8] = s\n out[9] = 0\n out[10] = c\n out[11] = 0\n out[12] = 0\n out[13] = 0\n out[14] = 0\n out[15] = 1\n return out\n}\n},{}],207:[function(_dereq_,module,exports){\nmodule.exports = fromZRotation\n\n/**\n * Creates a matrix from the given angle around the Z axis\n * This is equivalent to (but much faster than):\n *\n * mat4.identity(dest)\n * mat4.rotateZ(dest, dest, rad)\n *\n * @param {mat4} out mat4 receiving operation result\n * @param {Number} rad the angle to rotate the matrix by\n * @returns {mat4} out\n */\nfunction fromZRotation(out, rad) {\n var s = Math.sin(rad),\n c = Math.cos(rad)\n\n // Perform axis-specific matrix multiplication\n out[0] = c\n out[1] = s\n out[2] = 0\n out[3] = 0\n out[4] = -s\n out[5] = c\n out[6] = 0\n out[7] = 0\n out[8] = 0\n out[9] = 0\n out[10] = 1\n out[11] = 0\n out[12] = 0\n out[13] = 0\n out[14] = 0\n out[15] = 1\n return out\n}\n},{}],208:[function(_dereq_,module,exports){\nmodule.exports = frustum;\n\n/**\n * Generates a frustum matrix with the given bounds\n *\n * @param {mat4} out mat4 frustum matrix will be written into\n * @param {Number} left Left bound of the frustum\n * @param {Number} right Right bound of the frustum\n * @param {Number} bottom Bottom bound of the frustum\n * @param {Number} top Top bound of the frustum\n * @param {Number} near Near bound of the frustum\n * @param {Number} far Far bound of the frustum\n * @returns {mat4} out\n */\nfunction frustum(out, left, right, bottom, top, near, far) {\n var rl = 1 / (right - left),\n tb = 1 / (top - bottom),\n nf = 1 / (near - far);\n out[0] = (near * 2) * rl;\n out[1] = 0;\n out[2] = 0;\n out[3] = 0;\n out[4] = 0;\n out[5] = (near * 2) * tb;\n out[6] = 0;\n out[7] = 0;\n out[8] = (right + left) * rl;\n out[9] = (top + bottom) * tb;\n out[10] = (far + near) * nf;\n out[11] = -1;\n out[12] = 0;\n out[13] = 0;\n out[14] = (far * near * 2) * nf;\n out[15] = 0;\n return out;\n};\n},{}],209:[function(_dereq_,module,exports){\nmodule.exports = identity;\n\n/**\n * Set a mat4 to the identity matrix\n *\n * @param {mat4} out the receiving matrix\n * @returns {mat4} out\n */\nfunction identity(out) {\n out[0] = 1;\n out[1] = 0;\n out[2] = 0;\n out[3] = 0;\n out[4] = 0;\n out[5] = 1;\n out[6] = 0;\n out[7] = 0;\n out[8] = 0;\n out[9] = 0;\n out[10] = 1;\n out[11] = 0;\n out[12] = 0;\n out[13] = 0;\n out[14] = 0;\n out[15] = 1;\n return out;\n};\n},{}],210:[function(_dereq_,module,exports){\nmodule.exports = {\n create: _dereq_('./create')\n , clone: _dereq_('./clone')\n , copy: _dereq_('./copy')\n , identity: _dereq_('./identity')\n , transpose: _dereq_('./transpose')\n , invert: _dereq_('./invert')\n , adjoint: _dereq_('./adjoint')\n , determinant: _dereq_('./determinant')\n , multiply: _dereq_('./multiply')\n , translate: _dereq_('./translate')\n , scale: _dereq_('./scale')\n , rotate: _dereq_('./rotate')\n , rotateX: _dereq_('./rotateX')\n , rotateY: _dereq_('./rotateY')\n , rotateZ: _dereq_('./rotateZ')\n , fromRotation: _dereq_('./fromRotation')\n , fromRotationTranslation: _dereq_('./fromRotationTranslation')\n , fromScaling: _dereq_('./fromScaling')\n , fromTranslation: _dereq_('./fromTranslation')\n , fromXRotation: _dereq_('./fromXRotation')\n , fromYRotation: _dereq_('./fromYRotation')\n , fromZRotation: _dereq_('./fromZRotation')\n , fromQuat: _dereq_('./fromQuat')\n , frustum: _dereq_('./frustum')\n , perspective: _dereq_('./perspective')\n , perspectiveFromFieldOfView: _dereq_('./perspectiveFromFieldOfView')\n , ortho: _dereq_('./ortho')\n , lookAt: _dereq_('./lookAt')\n , str: _dereq_('./str')\n}\n\n},{\"./adjoint\":195,\"./clone\":196,\"./copy\":197,\"./create\":198,\"./determinant\":199,\"./fromQuat\":200,\"./fromRotation\":201,\"./fromRotationTranslation\":202,\"./fromScaling\":203,\"./fromTranslation\":204,\"./fromXRotation\":205,\"./fromYRotation\":206,\"./fromZRotation\":207,\"./frustum\":208,\"./identity\":209,\"./invert\":211,\"./lookAt\":212,\"./multiply\":213,\"./ortho\":214,\"./perspective\":215,\"./perspectiveFromFieldOfView\":216,\"./rotate\":217,\"./rotateX\":218,\"./rotateY\":219,\"./rotateZ\":220,\"./scale\":221,\"./str\":222,\"./translate\":223,\"./transpose\":224}],211:[function(_dereq_,module,exports){\nmodule.exports = invert;\n\n/**\n * Inverts a mat4\n *\n * @param {mat4} out the receiving matrix\n * @param {mat4} a the source matrix\n * @returns {mat4} out\n */\nfunction invert(out, a) {\n var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3],\n a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7],\n a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11],\n a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15],\n\n b00 = a00 * a11 - a01 * a10,\n b01 = a00 * a12 - a02 * a10,\n b02 = a00 * a13 - a03 * a10,\n b03 = a01 * a12 - a02 * a11,\n b04 = a01 * a13 - a03 * a11,\n b05 = a02 * a13 - a03 * a12,\n b06 = a20 * a31 - a21 * a30,\n b07 = a20 * a32 - a22 * a30,\n b08 = a20 * a33 - a23 * a30,\n b09 = a21 * a32 - a22 * a31,\n b10 = a21 * a33 - a23 * a31,\n b11 = a22 * a33 - a23 * a32,\n\n // Calculate the determinant\n det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06;\n\n if (!det) { \n return null; \n }\n det = 1.0 / det;\n\n out[0] = (a11 * b11 - a12 * b10 + a13 * b09) * det;\n out[1] = (a02 * b10 - a01 * b11 - a03 * b09) * det;\n out[2] = (a31 * b05 - a32 * b04 + a33 * b03) * det;\n out[3] = (a22 * b04 - a21 * b05 - a23 * b03) * det;\n out[4] = (a12 * b08 - a10 * b11 - a13 * b07) * det;\n out[5] = (a00 * b11 - a02 * b08 + a03 * b07) * det;\n out[6] = (a32 * b02 - a30 * b05 - a33 * b01) * det;\n out[7] = (a20 * b05 - a22 * b02 + a23 * b01) * det;\n out[8] = (a10 * b10 - a11 * b08 + a13 * b06) * det;\n out[9] = (a01 * b08 - a00 * b10 - a03 * b06) * det;\n out[10] = (a30 * b04 - a31 * b02 + a33 * b00) * det;\n out[11] = (a21 * b02 - a20 * b04 - a23 * b00) * det;\n out[12] = (a11 * b07 - a10 * b09 - a12 * b06) * det;\n out[13] = (a00 * b09 - a01 * b07 + a02 * b06) * det;\n out[14] = (a31 * b01 - a30 * b03 - a32 * b00) * det;\n out[15] = (a20 * b03 - a21 * b01 + a22 * b00) * det;\n\n return out;\n};\n},{}],212:[function(_dereq_,module,exports){\nvar identity = _dereq_('./identity');\n\nmodule.exports = lookAt;\n\n/**\n * Generates a look-at matrix with the given eye position, focal point, and up axis\n *\n * @param {mat4} out mat4 frustum matrix will be written into\n * @param {vec3} eye Position of the viewer\n * @param {vec3} center Point the viewer is looking at\n * @param {vec3} up vec3 pointing up\n * @returns {mat4} out\n */\nfunction lookAt(out, eye, center, up) {\n var x0, x1, x2, y0, y1, y2, z0, z1, z2, len,\n eyex = eye[0],\n eyey = eye[1],\n eyez = eye[2],\n upx = up[0],\n upy = up[1],\n upz = up[2],\n centerx = center[0],\n centery = center[1],\n centerz = center[2];\n\n if (Math.abs(eyex - centerx) < 0.000001 &&\n Math.abs(eyey - centery) < 0.000001 &&\n Math.abs(eyez - centerz) < 0.000001) {\n return identity(out);\n }\n\n z0 = eyex - centerx;\n z1 = eyey - centery;\n z2 = eyez - centerz;\n\n len = 1 / Math.sqrt(z0 * z0 + z1 * z1 + z2 * z2);\n z0 *= len;\n z1 *= len;\n z2 *= len;\n\n x0 = upy * z2 - upz * z1;\n x1 = upz * z0 - upx * z2;\n x2 = upx * z1 - upy * z0;\n len = Math.sqrt(x0 * x0 + x1 * x1 + x2 * x2);\n if (!len) {\n x0 = 0;\n x1 = 0;\n x2 = 0;\n } else {\n len = 1 / len;\n x0 *= len;\n x1 *= len;\n x2 *= len;\n }\n\n y0 = z1 * x2 - z2 * x1;\n y1 = z2 * x0 - z0 * x2;\n y2 = z0 * x1 - z1 * x0;\n\n len = Math.sqrt(y0 * y0 + y1 * y1 + y2 * y2);\n if (!len) {\n y0 = 0;\n y1 = 0;\n y2 = 0;\n } else {\n len = 1 / len;\n y0 *= len;\n y1 *= len;\n y2 *= len;\n }\n\n out[0] = x0;\n out[1] = y0;\n out[2] = z0;\n out[3] = 0;\n out[4] = x1;\n out[5] = y1;\n out[6] = z1;\n out[7] = 0;\n out[8] = x2;\n out[9] = y2;\n out[10] = z2;\n out[11] = 0;\n out[12] = -(x0 * eyex + x1 * eyey + x2 * eyez);\n out[13] = -(y0 * eyex + y1 * eyey + y2 * eyez);\n out[14] = -(z0 * eyex + z1 * eyey + z2 * eyez);\n out[15] = 1;\n\n return out;\n};\n},{\"./identity\":209}],213:[function(_dereq_,module,exports){\nmodule.exports = multiply;\n\n/**\n * Multiplies two mat4's\n *\n * @param {mat4} out the receiving matrix\n * @param {mat4} a the first operand\n * @param {mat4} b the second operand\n * @returns {mat4} out\n */\nfunction multiply(out, a, b) {\n var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3],\n a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7],\n a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11],\n a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15];\n\n // Cache only the current line of the second matrix\n var b0 = b[0], b1 = b[1], b2 = b[2], b3 = b[3]; \n out[0] = b0*a00 + b1*a10 + b2*a20 + b3*a30;\n out[1] = b0*a01 + b1*a11 + b2*a21 + b3*a31;\n out[2] = b0*a02 + b1*a12 + b2*a22 + b3*a32;\n out[3] = b0*a03 + b1*a13 + b2*a23 + b3*a33;\n\n b0 = b[4]; b1 = b[5]; b2 = b[6]; b3 = b[7];\n out[4] = b0*a00 + b1*a10 + b2*a20 + b3*a30;\n out[5] = b0*a01 + b1*a11 + b2*a21 + b3*a31;\n out[6] = b0*a02 + b1*a12 + b2*a22 + b3*a32;\n out[7] = b0*a03 + b1*a13 + b2*a23 + b3*a33;\n\n b0 = b[8]; b1 = b[9]; b2 = b[10]; b3 = b[11];\n out[8] = b0*a00 + b1*a10 + b2*a20 + b3*a30;\n out[9] = b0*a01 + b1*a11 + b2*a21 + b3*a31;\n out[10] = b0*a02 + b1*a12 + b2*a22 + b3*a32;\n out[11] = b0*a03 + b1*a13 + b2*a23 + b3*a33;\n\n b0 = b[12]; b1 = b[13]; b2 = b[14]; b3 = b[15];\n out[12] = b0*a00 + b1*a10 + b2*a20 + b3*a30;\n out[13] = b0*a01 + b1*a11 + b2*a21 + b3*a31;\n out[14] = b0*a02 + b1*a12 + b2*a22 + b3*a32;\n out[15] = b0*a03 + b1*a13 + b2*a23 + b3*a33;\n return out;\n};\n},{}],214:[function(_dereq_,module,exports){\nmodule.exports = ortho;\n\n/**\n * Generates a orthogonal projection matrix with the given bounds\n *\n * @param {mat4} out mat4 frustum matrix will be written into\n * @param {number} left Left bound of the frustum\n * @param {number} right Right bound of the frustum\n * @param {number} bottom Bottom bound of the frustum\n * @param {number} top Top bound of the frustum\n * @param {number} near Near bound of the frustum\n * @param {number} far Far bound of the frustum\n * @returns {mat4} out\n */\nfunction ortho(out, left, right, bottom, top, near, far) {\n var lr = 1 / (left - right),\n bt = 1 / (bottom - top),\n nf = 1 / (near - far);\n out[0] = -2 * lr;\n out[1] = 0;\n out[2] = 0;\n out[3] = 0;\n out[4] = 0;\n out[5] = -2 * bt;\n out[6] = 0;\n out[7] = 0;\n out[8] = 0;\n out[9] = 0;\n out[10] = 2 * nf;\n out[11] = 0;\n out[12] = (left + right) * lr;\n out[13] = (top + bottom) * bt;\n out[14] = (far + near) * nf;\n out[15] = 1;\n return out;\n};\n},{}],215:[function(_dereq_,module,exports){\nmodule.exports = perspective;\n\n/**\n * Generates a perspective projection matrix with the given bounds\n *\n * @param {mat4} out mat4 frustum matrix will be written into\n * @param {number} fovy Vertical field of view in radians\n * @param {number} aspect Aspect ratio. typically viewport width/height\n * @param {number} near Near bound of the frustum\n * @param {number} far Far bound of the frustum\n * @returns {mat4} out\n */\nfunction perspective(out, fovy, aspect, near, far) {\n var f = 1.0 / Math.tan(fovy / 2),\n nf = 1 / (near - far);\n out[0] = f / aspect;\n out[1] = 0;\n out[2] = 0;\n out[3] = 0;\n out[4] = 0;\n out[5] = f;\n out[6] = 0;\n out[7] = 0;\n out[8] = 0;\n out[9] = 0;\n out[10] = (far + near) * nf;\n out[11] = -1;\n out[12] = 0;\n out[13] = 0;\n out[14] = (2 * far * near) * nf;\n out[15] = 0;\n return out;\n};\n},{}],216:[function(_dereq_,module,exports){\nmodule.exports = perspectiveFromFieldOfView;\n\n/**\n * Generates a perspective projection matrix with the given field of view.\n * This is primarily useful for generating projection matrices to be used\n * with the still experiemental WebVR API.\n *\n * @param {mat4} out mat4 frustum matrix will be written into\n * @param {number} fov Object containing the following values: upDegrees, downDegrees, leftDegrees, rightDegrees\n * @param {number} near Near bound of the frustum\n * @param {number} far Far bound of the frustum\n * @returns {mat4} out\n */\nfunction perspectiveFromFieldOfView(out, fov, near, far) {\n var upTan = Math.tan(fov.upDegrees * Math.PI/180.0),\n downTan = Math.tan(fov.downDegrees * Math.PI/180.0),\n leftTan = Math.tan(fov.leftDegrees * Math.PI/180.0),\n rightTan = Math.tan(fov.rightDegrees * Math.PI/180.0),\n xScale = 2.0 / (leftTan + rightTan),\n yScale = 2.0 / (upTan + downTan);\n\n out[0] = xScale;\n out[1] = 0.0;\n out[2] = 0.0;\n out[3] = 0.0;\n out[4] = 0.0;\n out[5] = yScale;\n out[6] = 0.0;\n out[7] = 0.0;\n out[8] = -((leftTan - rightTan) * xScale * 0.5);\n out[9] = ((upTan - downTan) * yScale * 0.5);\n out[10] = far / (near - far);\n out[11] = -1.0;\n out[12] = 0.0;\n out[13] = 0.0;\n out[14] = (far * near) / (near - far);\n out[15] = 0.0;\n return out;\n}\n\n\n},{}],217:[function(_dereq_,module,exports){\nmodule.exports = rotate;\n\n/**\n * Rotates a mat4 by the given angle\n *\n * @param {mat4} out the receiving matrix\n * @param {mat4} a the matrix to rotate\n * @param {Number} rad the angle to rotate the matrix by\n * @param {vec3} axis the axis to rotate around\n * @returns {mat4} out\n */\nfunction rotate(out, a, rad, axis) {\n var x = axis[0], y = axis[1], z = axis[2],\n len = Math.sqrt(x * x + y * y + z * z),\n s, c, t,\n a00, a01, a02, a03,\n a10, a11, a12, a13,\n a20, a21, a22, a23,\n b00, b01, b02,\n b10, b11, b12,\n b20, b21, b22;\n\n if (Math.abs(len) < 0.000001) { return null; }\n \n len = 1 / len;\n x *= len;\n y *= len;\n z *= len;\n\n s = Math.sin(rad);\n c = Math.cos(rad);\n t = 1 - c;\n\n a00 = a[0]; a01 = a[1]; a02 = a[2]; a03 = a[3];\n a10 = a[4]; a11 = a[5]; a12 = a[6]; a13 = a[7];\n a20 = a[8]; a21 = a[9]; a22 = a[10]; a23 = a[11];\n\n // Construct the elements of the rotation matrix\n b00 = x * x * t + c; b01 = y * x * t + z * s; b02 = z * x * t - y * s;\n b10 = x * y * t - z * s; b11 = y * y * t + c; b12 = z * y * t + x * s;\n b20 = x * z * t + y * s; b21 = y * z * t - x * s; b22 = z * z * t + c;\n\n // Perform rotation-specific matrix multiplication\n out[0] = a00 * b00 + a10 * b01 + a20 * b02;\n out[1] = a01 * b00 + a11 * b01 + a21 * b02;\n out[2] = a02 * b00 + a12 * b01 + a22 * b02;\n out[3] = a03 * b00 + a13 * b01 + a23 * b02;\n out[4] = a00 * b10 + a10 * b11 + a20 * b12;\n out[5] = a01 * b10 + a11 * b11 + a21 * b12;\n out[6] = a02 * b10 + a12 * b11 + a22 * b12;\n out[7] = a03 * b10 + a13 * b11 + a23 * b12;\n out[8] = a00 * b20 + a10 * b21 + a20 * b22;\n out[9] = a01 * b20 + a11 * b21 + a21 * b22;\n out[10] = a02 * b20 + a12 * b21 + a22 * b22;\n out[11] = a03 * b20 + a13 * b21 + a23 * b22;\n\n if (a !== out) { // If the source and destination differ, copy the unchanged last row\n out[12] = a[12];\n out[13] = a[13];\n out[14] = a[14];\n out[15] = a[15];\n }\n return out;\n};\n},{}],218:[function(_dereq_,module,exports){\nmodule.exports = rotateX;\n\n/**\n * Rotates a matrix by the given angle around the X axis\n *\n * @param {mat4} out the receiving matrix\n * @param {mat4} a the matrix to rotate\n * @param {Number} rad the angle to rotate the matrix by\n * @returns {mat4} out\n */\nfunction rotateX(out, a, rad) {\n var s = Math.sin(rad),\n c = Math.cos(rad),\n a10 = a[4],\n a11 = a[5],\n a12 = a[6],\n a13 = a[7],\n a20 = a[8],\n a21 = a[9],\n a22 = a[10],\n a23 = a[11];\n\n if (a !== out) { // If the source and destination differ, copy the unchanged rows\n out[0] = a[0];\n out[1] = a[1];\n out[2] = a[2];\n out[3] = a[3];\n out[12] = a[12];\n out[13] = a[13];\n out[14] = a[14];\n out[15] = a[15];\n }\n\n // Perform axis-specific matrix multiplication\n out[4] = a10 * c + a20 * s;\n out[5] = a11 * c + a21 * s;\n out[6] = a12 * c + a22 * s;\n out[7] = a13 * c + a23 * s;\n out[8] = a20 * c - a10 * s;\n out[9] = a21 * c - a11 * s;\n out[10] = a22 * c - a12 * s;\n out[11] = a23 * c - a13 * s;\n return out;\n};\n},{}],219:[function(_dereq_,module,exports){\nmodule.exports = rotateY;\n\n/**\n * Rotates a matrix by the given angle around the Y axis\n *\n * @param {mat4} out the receiving matrix\n * @param {mat4} a the matrix to rotate\n * @param {Number} rad the angle to rotate the matrix by\n * @returns {mat4} out\n */\nfunction rotateY(out, a, rad) {\n var s = Math.sin(rad),\n c = Math.cos(rad),\n a00 = a[0],\n a01 = a[1],\n a02 = a[2],\n a03 = a[3],\n a20 = a[8],\n a21 = a[9],\n a22 = a[10],\n a23 = a[11];\n\n if (a !== out) { // If the source and destination differ, copy the unchanged rows\n out[4] = a[4];\n out[5] = a[5];\n out[6] = a[6];\n out[7] = a[7];\n out[12] = a[12];\n out[13] = a[13];\n out[14] = a[14];\n out[15] = a[15];\n }\n\n // Perform axis-specific matrix multiplication\n out[0] = a00 * c - a20 * s;\n out[1] = a01 * c - a21 * s;\n out[2] = a02 * c - a22 * s;\n out[3] = a03 * c - a23 * s;\n out[8] = a00 * s + a20 * c;\n out[9] = a01 * s + a21 * c;\n out[10] = a02 * s + a22 * c;\n out[11] = a03 * s + a23 * c;\n return out;\n};\n},{}],220:[function(_dereq_,module,exports){\nmodule.exports = rotateZ;\n\n/**\n * Rotates a matrix by the given angle around the Z axis\n *\n * @param {mat4} out the receiving matrix\n * @param {mat4} a the matrix to rotate\n * @param {Number} rad the angle to rotate the matrix by\n * @returns {mat4} out\n */\nfunction rotateZ(out, a, rad) {\n var s = Math.sin(rad),\n c = Math.cos(rad),\n a00 = a[0],\n a01 = a[1],\n a02 = a[2],\n a03 = a[3],\n a10 = a[4],\n a11 = a[5],\n a12 = a[6],\n a13 = a[7];\n\n if (a !== out) { // If the source and destination differ, copy the unchanged last row\n out[8] = a[8];\n out[9] = a[9];\n out[10] = a[10];\n out[11] = a[11];\n out[12] = a[12];\n out[13] = a[13];\n out[14] = a[14];\n out[15] = a[15];\n }\n\n // Perform axis-specific matrix multiplication\n out[0] = a00 * c + a10 * s;\n out[1] = a01 * c + a11 * s;\n out[2] = a02 * c + a12 * s;\n out[3] = a03 * c + a13 * s;\n out[4] = a10 * c - a00 * s;\n out[5] = a11 * c - a01 * s;\n out[6] = a12 * c - a02 * s;\n out[7] = a13 * c - a03 * s;\n return out;\n};\n},{}],221:[function(_dereq_,module,exports){\nmodule.exports = scale;\n\n/**\n * Scales the mat4 by the dimensions in the given vec3\n *\n * @param {mat4} out the receiving matrix\n * @param {mat4} a the matrix to scale\n * @param {vec3} v the vec3 to scale the matrix by\n * @returns {mat4} out\n **/\nfunction scale(out, a, v) {\n var x = v[0], y = v[1], z = v[2];\n\n out[0] = a[0] * x;\n out[1] = a[1] * x;\n out[2] = a[2] * x;\n out[3] = a[3] * x;\n out[4] = a[4] * y;\n out[5] = a[5] * y;\n out[6] = a[6] * y;\n out[7] = a[7] * y;\n out[8] = a[8] * z;\n out[9] = a[9] * z;\n out[10] = a[10] * z;\n out[11] = a[11] * z;\n out[12] = a[12];\n out[13] = a[13];\n out[14] = a[14];\n out[15] = a[15];\n return out;\n};\n},{}],222:[function(_dereq_,module,exports){\nmodule.exports = str;\n\n/**\n * Returns a string representation of a mat4\n *\n * @param {mat4} mat matrix to represent as a string\n * @returns {String} string representation of the matrix\n */\nfunction str(a) {\n return 'mat4(' + a[0] + ', ' + a[1] + ', ' + a[2] + ', ' + a[3] + ', ' +\n a[4] + ', ' + a[5] + ', ' + a[6] + ', ' + a[7] + ', ' +\n a[8] + ', ' + a[9] + ', ' + a[10] + ', ' + a[11] + ', ' + \n a[12] + ', ' + a[13] + ', ' + a[14] + ', ' + a[15] + ')';\n};\n},{}],223:[function(_dereq_,module,exports){\nmodule.exports = translate;\n\n/**\n * Translate a mat4 by the given vector\n *\n * @param {mat4} out the receiving matrix\n * @param {mat4} a the matrix to translate\n * @param {vec3} v vector to translate by\n * @returns {mat4} out\n */\nfunction translate(out, a, v) {\n var x = v[0], y = v[1], z = v[2],\n a00, a01, a02, a03,\n a10, a11, a12, a13,\n a20, a21, a22, a23;\n\n if (a === out) {\n out[12] = a[0] * x + a[4] * y + a[8] * z + a[12];\n out[13] = a[1] * x + a[5] * y + a[9] * z + a[13];\n out[14] = a[2] * x + a[6] * y + a[10] * z + a[14];\n out[15] = a[3] * x + a[7] * y + a[11] * z + a[15];\n } else {\n a00 = a[0]; a01 = a[1]; a02 = a[2]; a03 = a[3];\n a10 = a[4]; a11 = a[5]; a12 = a[6]; a13 = a[7];\n a20 = a[8]; a21 = a[9]; a22 = a[10]; a23 = a[11];\n\n out[0] = a00; out[1] = a01; out[2] = a02; out[3] = a03;\n out[4] = a10; out[5] = a11; out[6] = a12; out[7] = a13;\n out[8] = a20; out[9] = a21; out[10] = a22; out[11] = a23;\n\n out[12] = a00 * x + a10 * y + a20 * z + a[12];\n out[13] = a01 * x + a11 * y + a21 * z + a[13];\n out[14] = a02 * x + a12 * y + a22 * z + a[14];\n out[15] = a03 * x + a13 * y + a23 * z + a[15];\n }\n\n return out;\n};\n},{}],224:[function(_dereq_,module,exports){\nmodule.exports = transpose;\n\n/**\n * Transpose the values of a mat4\n *\n * @param {mat4} out the receiving matrix\n * @param {mat4} a the source matrix\n * @returns {mat4} out\n */\nfunction transpose(out, a) {\n // If we are transposing ourselves we can skip a few steps but have to cache some values\n if (out === a) {\n var a01 = a[1], a02 = a[2], a03 = a[3],\n a12 = a[6], a13 = a[7],\n a23 = a[11];\n\n out[1] = a[4];\n out[2] = a[8];\n out[3] = a[12];\n out[4] = a01;\n out[6] = a[9];\n out[7] = a[13];\n out[8] = a02;\n out[9] = a12;\n out[11] = a[14];\n out[12] = a03;\n out[13] = a13;\n out[14] = a23;\n } else {\n out[0] = a[0];\n out[1] = a[4];\n out[2] = a[8];\n out[3] = a[12];\n out[4] = a[1];\n out[5] = a[5];\n out[6] = a[9];\n out[7] = a[13];\n out[8] = a[2];\n out[9] = a[6];\n out[10] = a[10];\n out[11] = a[14];\n out[12] = a[3];\n out[13] = a[7];\n out[14] = a[11];\n out[15] = a[15];\n }\n \n return out;\n};\n},{}],225:[function(_dereq_,module,exports){\n'use strict'\n\nvar Font = _dereq_('css-font')\nvar pick = _dereq_('pick-by-alias')\nvar createRegl = _dereq_('regl')\nvar createGl = _dereq_('gl-util/context')\nvar WeakMap = _dereq_('es6-weak-map')\nvar rgba = _dereq_('color-normalize')\nvar fontAtlas = _dereq_('font-atlas')\nvar pool = _dereq_('typedarray-pool')\nvar parseRect = _dereq_('parse-rect')\nvar isObj = _dereq_('is-plain-obj')\nvar parseUnit = _dereq_('parse-unit')\nvar px = _dereq_('to-px')\nvar kerning = _dereq_('detect-kerning')\nvar extend = _dereq_('object-assign')\nvar metrics = _dereq_('font-measure')\nvar flatten = _dereq_('flatten-vertex-data')\nvar ref = _dereq_('bit-twiddle');\nvar nextPow2 = ref.nextPow2;\n\nvar shaderCache = new WeakMap\n\n\n// Safari does not support font-stretch\nvar isStretchSupported = false\nif (document.body) {\n var el = document.body.appendChild(document.createElement('div'))\n el.style.font = 'italic small-caps bold condensed 16px/2 cursive'\n if (getComputedStyle(el).fontStretch) {\n isStretchSupported = true\n }\n document.body.removeChild(el)\n}\n\nvar GlText = function GlText (o) {\n\tif (isRegl(o)) {\n\t\to = {regl: o}\n\t\tthis.gl = o.regl._gl\n\t}\n\telse {\n\t\tthis.gl = createGl(o)\n\t}\n\n\tthis.shader = shaderCache.get(this.gl)\n\n\tif (!this.shader) {\n\t\tthis.regl = o.regl || createRegl({ gl: this.gl })\n\t}\n\telse {\n\t\tthis.regl = this.shader.regl\n\t}\n\n\tthis.charBuffer = this.regl.buffer({ type: 'uint8', usage: 'stream' })\n\tthis.sizeBuffer = this.regl.buffer({ type: 'float', usage: 'stream' })\n\n\tif (!this.shader) {\n\t\tthis.shader = this.createShader()\n\t\tshaderCache.set(this.gl, this.shader)\n\t}\n\n\tthis.batch = []\n\n\t// multiple options initial state\n\tthis.fontSize = []\n\tthis.font = []\n\tthis.fontAtlas = []\n\n\tthis.draw = this.shader.draw.bind(this)\n\tthis.render = function () {\n\t\t// FIXME: add Safari regl report here:\n\t\t// charBuffer and width just do not trigger\n\t\tthis.regl._refresh()\n\t\tthis.draw(this.batch)\n\t}\n\tthis.canvas = this.gl.canvas\n\n\tthis.update(isObj(o) ? o : {})\n};\n\nGlText.prototype.createShader = function createShader () {\n\tvar regl = this.regl\n\n\tvar draw = regl({\n\t\tblend: {\n\t\t\tenable: true,\n\t\t\tcolor: [0,0,0,1],\n\n\t\t\tfunc: {\n\t\t\t\tsrcRGB: 'src alpha',\n\t\t\t\tdstRGB: 'one minus src alpha',\n\t\t\t\tsrcAlpha: 'one minus dst alpha',\n\t\t\t\tdstAlpha: 'one'\n\t\t\t}\n\t\t},\n\t\tstencil: {enable: false},\n\t\tdepth: {enable: false},\n\n\t\tcount: regl.prop('count'),\n\t\toffset: regl.prop('offset'),\n\t\tattributes: {\n\t\t\tcharOffset: {\n\t\t\t\toffset: 4,\n\t\t\t\tstride: 8,\n\t\t\t\tbuffer: regl.this('sizeBuffer')\n\t\t\t},\n\t\t\twidth: {\n\t\t\t\toffset: 0,\n\t\t\t\tstride: 8,\n\t\t\t\tbuffer: regl.this('sizeBuffer')\n\t\t\t},\n\t\t\tchar: regl.this('charBuffer'),\n\t\t\tposition: regl.this('position')\n\t\t},\n\t\tuniforms: {\n\t\t\tatlasSize: function (c, p) { return [p.atlas.width, p.atlas.height]; },\n\t\t\tatlasDim: function (c, p) { return [p.atlas.cols, p.atlas.rows]; },\n\t\t\tatlas: function (c, p) { return p.atlas.texture; },\n\t\t\tcharStep: function (c, p) { return p.atlas.step; },\n\t\t\tem: function (c, p) { return p.atlas.em; },\n\t\t\tcolor: regl.prop('color'),\n\t\t\topacity: regl.prop('opacity'),\n\t\t\tviewport: regl.this('viewportArray'),\n\t\t\tscale: regl.this('scale'),\n\t\t\talign: regl.prop('align'),\n\t\t\tbaseline: regl.prop('baseline'),\n\t\t\ttranslate: regl.this('translate'),\n\t\t\tpositionOffset: regl.prop('positionOffset')\n\t\t},\n\t\tprimitive: 'points',\n\t\tviewport: regl.this('viewport'),\n\n\t\tvert: \"\\n\\t\\t\\tprecision highp float;\\n\\t\\t\\tattribute float width, charOffset, char;\\n\\t\\t\\tattribute vec2 position;\\n\\t\\t\\tuniform float fontSize, charStep, em, align, baseline;\\n\\t\\t\\tuniform vec4 viewport;\\n\\t\\t\\tuniform vec4 color;\\n\\t\\t\\tuniform vec2 atlasSize, atlasDim, scale, translate, positionOffset;\\n\\t\\t\\tvarying vec2 charCoord, charId;\\n\\t\\t\\tvarying float charWidth;\\n\\t\\t\\tvarying vec4 fontColor;\\n\\t\\t\\tvoid main () {\\n\\t\\t\\t\\tvec2 offset = floor(em * (vec2(align + charOffset, baseline)\\n\\t\\t\\t\\t\\t+ vec2(positionOffset.x, -positionOffset.y)))\\n\\t\\t\\t\\t\\t/ (viewport.zw * scale.xy);\\n\\n\\t\\t\\t\\tvec2 position = (position + translate) * scale;\\n\\t\\t\\t\\tposition += offset * scale;\\n\\n\\t\\t\\t\\tcharCoord = position * viewport.zw + viewport.xy;\\n\\n\\t\\t\\t\\tgl_Position = vec4(position * 2. - 1., 0, 1);\\n\\n\\t\\t\\t\\tgl_PointSize = charStep;\\n\\n\\t\\t\\t\\tcharId.x = mod(char, atlasDim.x);\\n\\t\\t\\t\\tcharId.y = floor(char / atlasDim.x);\\n\\n\\t\\t\\t\\tcharWidth = width * em;\\n\\n\\t\\t\\t\\tfontColor = color / 255.;\\n\\t\\t\\t}\",\n\n\t\tfrag: \"\\n\\t\\t\\tprecision highp float;\\n\\t\\t\\tuniform float fontSize, charStep, opacity;\\n\\t\\t\\tuniform vec2 atlasSize;\\n\\t\\t\\tuniform vec4 viewport;\\n\\t\\t\\tuniform sampler2D atlas;\\n\\t\\t\\tvarying vec4 fontColor;\\n\\t\\t\\tvarying vec2 charCoord, charId;\\n\\t\\t\\tvarying float charWidth;\\n\\n\\t\\t\\tfloat lightness(vec4 color) {\\n\\t\\t\\t\\treturn color.r * 0.299 + color.g * 0.587 + color.b * 0.114;\\n\\t\\t\\t}\\n\\n\\t\\t\\tvoid main () {\\n\\t\\t\\t\\tvec2 uv = gl_FragCoord.xy - charCoord + charStep * .5;\\n\\t\\t\\t\\tfloat halfCharStep = floor(charStep * .5 + .5);\\n\\n\\t\\t\\t\\t// invert y and shift by 1px (FF expecially needs that)\\n\\t\\t\\t\\tuv.y = charStep - uv.y;\\n\\n\\t\\t\\t\\t// ignore points outside of character bounding box\\n\\t\\t\\t\\tfloat halfCharWidth = ceil(charWidth * .5);\\n\\t\\t\\t\\tif (floor(uv.x) > halfCharStep + halfCharWidth ||\\n\\t\\t\\t\\t\\tfloor(uv.x) < halfCharStep - halfCharWidth) return;\\n\\n\\t\\t\\t\\tuv += charId * charStep;\\n\\t\\t\\t\\tuv = uv / atlasSize;\\n\\n\\t\\t\\t\\tvec4 color = fontColor;\\n\\t\\t\\t\\tvec4 mask = texture2D(atlas, uv);\\n\\n\\t\\t\\t\\tfloat maskY = lightness(mask);\\n\\t\\t\\t\\t// float colorY = lightness(color);\\n\\t\\t\\t\\tcolor.a *= maskY;\\n\\t\\t\\t\\tcolor.a *= opacity;\\n\\n\\t\\t\\t\\t// color.a += .1;\\n\\n\\t\\t\\t\\t// antialiasing, see yiq color space y-channel formula\\n\\t\\t\\t\\t// color.rgb += (1. - color.rgb) * (1. - mask.rgb);\\n\\n\\t\\t\\t\\tgl_FragColor = color;\\n\\t\\t\\t}\"\n\t})\n\n\t// per font-size atlas\n\tvar atlas = {}\n\n\treturn { regl: regl, draw: draw, atlas: atlas }\n};\n\nGlText.prototype.update = function update (o) {\n\t\tvar this$1 = this;\n\n\tif (typeof o === 'string') { o = { text: o } }\n\telse if (!o) { return }\n\n\t// FIXME: make this a static transform or more general approact\n\to = pick(o, {\n\t\tposition: 'position positions coord coords coordinates',\n\t\tfont: 'font fontFace fontface typeface cssFont css-font family fontFamily',\n\t\tfontSize: 'fontSize fontsize size font-size',\n\t\ttext: 'text texts chars characters value values symbols',\n\t\talign: 'align alignment textAlign textbaseline',\n\t\tbaseline: 'baseline textBaseline textbaseline',\n\t\tdirection: 'dir direction textDirection',\n\t\tcolor: 'color colour fill fill-color fillColor textColor textcolor',\n\t\tkerning: 'kerning kern',\n\t\trange: 'range dataBox',\n\t\tviewport: 'vp viewport viewBox viewbox viewPort',\n\t\topacity: 'opacity alpha transparency visible visibility opaque',\n\t\toffset: 'offset positionOffset padding shift indent indentation'\n\t}, true)\n\n\n\tif (o.opacity != null) {\n\t\tif (Array.isArray(o.opacity)) {\n\t\t\tthis.opacity = o.opacity.map(function (o) { return parseFloat(o); })\n\t\t}\n\t\telse {\n\t\t\tthis.opacity = parseFloat(o.opacity)\n\t\t}\n\t}\n\n\tif (o.viewport != null) {\n\t\tthis.viewport = parseRect(o.viewport)\n\n\t\tthis.viewportArray = [this.viewport.x, this.viewport.y, this.viewport.width, this.viewport.height]\n\n\t}\n\tif (this.viewport == null) {\n\t\tthis.viewport = {\n\t\t\tx: 0, y: 0,\n\t\t\twidth: this.gl.drawingBufferWidth,\n\t\t\theight: this.gl.drawingBufferHeight\n\t\t}\n\t\tthis.viewportArray = [this.viewport.x, this.viewport.y, this.viewport.width, this.viewport.height]\n\t}\n\n\tif (o.kerning != null) { this.kerning = o.kerning }\n\n\tif (o.offset != null) {\n\t\tif (typeof o.offset === 'number') { o.offset = [o.offset, 0] }\n\n\t\tthis.positionOffset = flatten(o.offset)\n\t}\n\n\tif (o.direction) { this.direction = o.direction }\n\n\tif (o.range) {\n\t\tthis.range = o.range\n\t\tthis.scale = [1 / (o.range[2] - o.range[0]), 1 / (o.range[3] - o.range[1])]\n\t\tthis.translate = [-o.range[0], -o.range[1]]\n\t}\n\tif (o.scale) { this.scale = o.scale }\n\tif (o.translate) { this.translate = o.translate }\n\n\t// default scale corresponds to viewport\n\tif (!this.scale) { this.scale = [1 / this.viewport.width, 1 / this.viewport.height] }\n\n\tif (!this.translate) { this.translate = [0, 0] }\n\n\tif (!this.font.length && !o.font) { o.font = GlText.baseFontSize + 'px sans-serif' }\n\n\t// normalize font caching string\n\tvar newFont = false, newFontSize = false\n\n\t// obtain new font data\n\tif (o.font) {\n\t\t(Array.isArray(o.font) ? o.font : [o.font]).forEach(function (font, i) {\n\t\t\t// normalize font\n\t\t\tif (typeof font === 'string') {\n\t\t\t\ttry {\n\t\t\t\t\tfont = Font.parse(font)\n\t\t\t\t} catch (e) {\n\t\t\t\t\tfont = Font.parse(GlText.baseFontSize + 'px ' + font)\n\t\t\t\t}\n\t\t\t}\n\t\t\telse { font = Font.parse(Font.stringify(font)) }\n\n\t\t\tvar baseString = Font.stringify({\n\t\t\t\tsize: GlText.baseFontSize,\n\t\t\t\tfamily: font.family,\n\t\t\t\tstretch: isStretchSupported ? font.stretch : undefined,\n\t\t\t\tvariant: font.variant,\n\t\t\t\tweight: font.weight,\n\t\t\t\tstyle: font.style\n\t\t\t})\n\n\t\t\tvar unit = parseUnit(font.size)\n\t\t\tvar fs = Math.round(unit[0] * px(unit[1]))\n\t\t\tif (fs !== this$1.fontSize[i]) {\n\t\t\t\tnewFontSize = true\n\t\t\t\tthis$1.fontSize[i] = fs\n\t\t\t}\n\n\t\t\t// calc new font metrics/atlas\n\t\t\tif (!this$1.font[i] || baseString != this$1.font[i].baseString) {\n\t\t\t\tnewFont = true\n\n\t\t\t\t// obtain font cache or create one\n\t\t\t\tthis$1.font[i] = GlText.fonts[baseString]\n\t\t\t\tif (!this$1.font[i]) {\n\t\t\t\t\tvar family = font.family.join(', ')\n\t\t\t\t\tvar style = [font.style]\n\t\t\t\t\tif (font.style != font.variant) { style.push(font.variant) }\n\t\t\t\t\tif (font.variant != font.weight) { style.push(font.weight) }\n\t\t\t\t\tif (isStretchSupported && font.weight != font.stretch) { style.push(font.stretch) }\n\n\t\t\t\t\tthis$1.font[i] = {\n\t\t\t\t\t\tbaseString: baseString,\n\n\t\t\t\t\t\t// typeface\n\t\t\t\t\t\tfamily: family,\n\t\t\t\t\t\tweight: font.weight,\n\t\t\t\t\t\tstretch: font.stretch,\n\t\t\t\t\t\tstyle: font.style,\n\t\t\t\t\t\tvariant: font.variant,\n\n\t\t\t\t\t\t// widths of characters\n\t\t\t\t\t\twidth: {},\n\n\t\t\t\t\t\t// kernin pairs offsets\n\t\t\t\t\t\tkerning: {},\n\n\t\t\t\t\t\tmetrics: metrics(family, {\n\t\t\t\t\t\t\torigin: 'top',\n\t\t\t\t\t\t\tfontSize: GlText.baseFontSize,\n\t\t\t\t\t\t\tfontStyle: style.join(' ')\n\t\t\t\t\t\t})\n\t\t\t\t\t}\n\n\t\t\t\t\tGlText.fonts[baseString] = this$1.font[i]\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\t}\n\n\t// FIXME: make independend font-size\n\t// if (o.fontSize) {\n\t// let unit = parseUnit(o.fontSize)\n\t// let fs = Math.round(unit[0] * px(unit[1]))\n\n\t// if (fs != this.fontSize) {\n\t// \tnewFontSize = true\n\t// \tthis.fontSize = fs\n\t// }\n\t// }\n\n\tif (newFont || newFontSize) {\n\t\tthis.font.forEach(function (font, i) {\n\t\t\tvar fontString = Font.stringify({\n\t\t\t\tsize: this$1.fontSize[i],\n\t\t\t\tfamily: font.family,\n\t\t\t\tstretch: isStretchSupported ? font.stretch : undefined,\n\t\t\t\tvariant: font.variant,\n\t\t\t\tweight: font.weight,\n\t\t\t\tstyle: font.style\n\t\t\t})\n\n\t\t\t// calc new font size atlas\n\t\t\tthis$1.fontAtlas[i] = this$1.shader.atlas[fontString]\n\n\t\t\tif (!this$1.fontAtlas[i]) {\n\t\t\t\tvar metrics = font.metrics\n\n\t\t\t\tthis$1.shader.atlas[fontString] =\n\t\t\t\tthis$1.fontAtlas[i] = {\n\t\t\t\t\tfontString: fontString,\n\t\t\t\t\t// even step is better for rendered characters\n\t\t\t\t\tstep: Math.ceil(this$1.fontSize[i] * metrics.bottom * .5) * 2,\n\t\t\t\t\tem: this$1.fontSize[i],\n\t\t\t\t\tcols: 0,\n\t\t\t\t\trows: 0,\n\t\t\t\t\theight: 0,\n\t\t\t\t\twidth: 0,\n\t\t\t\t\tchars: [],\n\t\t\t\t\tids: {},\n\t\t\t\t\ttexture: this$1.regl.texture()\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// bump atlas characters\n\t\t\tif (o.text == null) { o.text = this$1.text }\n\t\t})\n\t}\n\n\t// if multiple positions - duplicate text arguments\n\t// FIXME: this possibly can be done better to avoid array spawn\n\tif (typeof o.text === 'string' && o.position && o.position.length > 2) {\n\t\tvar textArray = Array(o.position.length * .5)\n\t\tfor (var i = 0; i < textArray.length; i++) {\n\t\t\ttextArray[i] = o.text\n\t\t}\n\t\to.text = textArray\n\t}\n\n\t// calculate offsets for the new font/text\n\tvar newAtlasChars\n\tif (o.text != null || newFont) {\n\t\t// FIXME: ignore spaces\n\t\t// text offsets within the text buffer\n\t\tthis.textOffsets = [0]\n\n\t\tif (Array.isArray(o.text)) {\n\t\t\tthis.count = o.text[0].length\n\t\t\tthis.counts = [this.count]\n\t\t\tfor (var i$1 = 1; i$1 < o.text.length; i$1++) {\n\t\t\t\tthis.textOffsets[i$1] = this.textOffsets[i$1 - 1] + o.text[i$1 - 1].length\n\t\t\t\tthis.count += o.text[i$1].length\n\t\t\t\tthis.counts.push(o.text[i$1].length)\n\t\t\t}\n\t\t\tthis.text = o.text.join('')\n\t\t}\n\t\telse {\n\t\t\tthis.text = o.text\n\t\t\tthis.count = this.text.length\n\t\t\tthis.counts = [this.count]\n\t\t}\n\n\t\tnewAtlasChars = []\n\n\t\t// detect & measure new characters\n\t\tthis.font.forEach(function (font, idx) {\n\t\t\tGlText.atlasContext.font = font.baseString\n\n\t\t\tvar atlas = this$1.fontAtlas[idx]\n\n\t\t\tfor (var i = 0; i < this$1.text.length; i++) {\n\t\t\t\tvar char = this$1.text.charAt(i)\n\n\t\t\t\tif (atlas.ids[char] == null) {\n\t\t\t\t\tatlas.ids[char] = atlas.chars.length\n\t\t\t\t\tatlas.chars.push(char)\n\t\t\t\t\tnewAtlasChars.push(char)\n\t\t\t\t}\n\n\t\t\t\tif (font.width[char] == null) {\n\t\t\t\t\tfont.width[char] = GlText.atlasContext.measureText(char).width / GlText.baseFontSize\n\n\t\t\t\t\t// measure kerning pairs for the new character\n\t\t\t\t\tif (this$1.kerning) {\n\t\t\t\t\t\tvar pairs = []\n\t\t\t\t\t\tfor (var baseChar in font.width) {\n\t\t\t\t\t\t\tpairs.push(baseChar + char, char + baseChar)\n\t\t\t\t\t\t}\n\t\t\t\t\t\textend(font.kerning, kerning(font.family, {\n\t\t\t\t\t\t\tpairs: pairs\n\t\t\t\t\t\t}))\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\t}\n\n\t// create single position buffer (faster than batch or multiple separate instances)\n\tif (o.position) {\n\t\tif (o.position.length > 2) {\n\t\t\tvar flat = !o.position[0].length\n\t\t\tvar positionData = pool.mallocFloat(this.count * 2)\n\t\t\tfor (var i$2 = 0, ptr = 0; i$2 < this.counts.length; i$2++) {\n\t\t\t\tvar count = this.counts[i$2]\n\t\t\t\tif (flat) {\n\t\t\t\t\tfor (var j = 0; j < count; j++) {\n\t\t\t\t\t\tpositionData[ptr++] = o.position[i$2 * 2]\n\t\t\t\t\t\tpositionData[ptr++] = o.position[i$2 * 2 + 1]\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfor (var j$1 = 0; j$1 < count; j$1++) {\n\t\t\t\t\t\tpositionData[ptr++] = o.position[i$2][0]\n\t\t\t\t\t\tpositionData[ptr++] = o.position[i$2][1]\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (this.position.call) {\n\t\t\t\tthis.position({\n\t\t\t\t\ttype: 'float',\n\t\t\t\t\tdata: positionData\n\t\t\t\t})\n\t\t\t} else {\n\t\t\t\tthis.position = this.regl.buffer({\n\t\t\t\t\ttype: 'float',\n\t\t\t\t\tdata: positionData\n\t\t\t\t})\n\t\t\t}\n\t\t\tpool.freeFloat(positionData)\n\t\t}\n\t\telse {\n\t\t\tif (this.position.destroy) { this.position.destroy() }\n\t\t\tthis.position = {\n\t\t\t\tconstant: o.position\n\t\t\t}\n\t\t}\n\t}\n\n\t// populate text/offset buffers if font/text has changed\n\t// as [charWidth, offset, charWidth, offset...]\n\t// that is in em units since font-size can change often\n\tif (o.text || newFont) {\n\t\tvar charIds = pool.mallocUint8(this.count)\n\t\tvar sizeData = pool.mallocFloat(this.count * 2)\n\t\tthis.textWidth = []\n\n\t\tfor (var i$3 = 0, ptr$1 = 0; i$3 < this.counts.length; i$3++) {\n\t\t\tvar count$1 = this.counts[i$3]\n\t\t\tvar font = this.font[i$3] || this.font[0]\n\t\t\tvar atlas = this.fontAtlas[i$3] || this.fontAtlas[0]\n\n\t\t\tfor (var j$2 = 0; j$2 < count$1; j$2++) {\n\t\t\t\tvar char = this.text.charAt(ptr$1)\n\t\t\t\tvar prevChar = this.text.charAt(ptr$1 - 1)\n\n\t\t\t\tcharIds[ptr$1] = atlas.ids[char]\n\t\t\t\tsizeData[ptr$1 * 2] = font.width[char]\n\n\t\t\t\tif (j$2) {\n\t\t\t\t\tvar prevWidth = sizeData[ptr$1 * 2 - 2]\n\t\t\t\t\tvar currWidth = sizeData[ptr$1 * 2]\n\t\t\t\t\tvar prevOffset = sizeData[ptr$1 * 2 - 1]\n\t\t\t\t\tvar offset = prevOffset + prevWidth * .5 + currWidth * .5;\n\n\t\t\t\t\tif (this.kerning) {\n\t\t\t\t\t\tvar kerning$1 = font.kerning[prevChar + char]\n\t\t\t\t\t\tif (kerning$1) {\n\t\t\t\t\t\t\toffset += kerning$1 * 1e-3\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tsizeData[ptr$1 * 2 + 1] = offset\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tsizeData[ptr$1 * 2 + 1] = sizeData[ptr$1 * 2] * .5\n\t\t\t\t}\n\n\t\t\t\tptr$1++\n\t\t\t}\n\t\t\tthis.textWidth.push(\n\t\t\t\t!sizeData.length ? 0 :\n\t\t\t\t// last offset + half last width\n\t\t\t\tsizeData[ptr$1 * 2 - 2] * .5 + sizeData[ptr$1 * 2 - 1]\n\t\t\t)\n\t\t}\n\n\n\t\t// bump recalc align offset\n\t\tif (!o.align) { o.align = this.align }\n\t\tthis.charBuffer({data: charIds, type: 'uint8', usage: 'stream'})\n\t\tthis.sizeBuffer({data: sizeData, type: 'float', usage: 'stream'})\n\t\tpool.freeUint8(charIds)\n\t\tpool.freeFloat(sizeData)\n\n\t\t// udpate font atlas and texture\n\t\tif (newAtlasChars.length) {\n\t\t\tthis.font.forEach(function (font, i) {\n\t\t\t\tvar atlas = this$1.fontAtlas[i]\n\n\t\t\t\t// FIXME: insert metrics-based ratio here\n\t\t\t\tvar step = atlas.step\n\n\t\t\t\tvar maxCols = Math.floor(GlText.maxAtlasSize / step)\n\t\t\t\tvar cols = Math.min(maxCols, atlas.chars.length)\n\t\t\t\tvar rows = Math.ceil(atlas.chars.length / cols)\n\n\t\t\t\tvar atlasWidth = nextPow2( cols * step )\n\t\t\t\t// let atlasHeight = Math.min(rows * step + step * .5, GlText.maxAtlasSize);\n\t\t\t\tvar atlasHeight = nextPow2( rows * step );\n\n\t\t\t\tatlas.width = atlasWidth\n\t\t\t\tatlas.height = atlasHeight;\n\t\t\t\tatlas.rows = rows\n\t\t\t\tatlas.cols = cols\n\n\t\t\t\tif (!atlas.em) { return }\n\n\t\t\t\tatlas.texture({\n\t\t\t\t\tdata: fontAtlas({\n\t\t\t\t\t\tcanvas: GlText.atlasCanvas,\n\t\t\t\t\t\tfont: atlas.fontString,\n\t\t\t\t\t\tchars: atlas.chars,\n\t\t\t\t\t\tshape: [atlasWidth, atlasHeight],\n\t\t\t\t\t\tstep: [step, step]\n\t\t\t\t\t})\n\t\t\t\t})\n\n\t\t\t})\n\t\t}\n\t}\n\n\tif (o.align) {\n\t\tthis.align = o.align\n\t\tthis.alignOffset = this.textWidth.map(function (textWidth, i) {\n\t\t\tvar align = !Array.isArray(this$1.align) ? this$1.align : this$1.align.length > 1 ? this$1.align[i] : this$1.align[0]\n\n\t\t\tif (typeof align === 'number') { return align }\n\t\t\tswitch (align) {\n\t\t\t\tcase 'right':\n\t\t\t\tcase 'end':\n\t\t\t\t\treturn -textWidth\n\t\t\t\tcase 'center':\n\t\t\t\tcase 'centre':\n\t\t\t\tcase 'middle':\n\t\t\t\t\treturn -textWidth * .5\n\t\t\t}\n\n\t\t\treturn 0\n\t\t})\n\t}\n\n\tif (this.baseline == null && o.baseline == null) {\n\t\to.baseline = 0\n\t}\n\tif (o.baseline != null) {\n\t\tthis.baseline = o.baseline\n\t\tif (!Array.isArray(this.baseline)) { this.baseline = [this.baseline] }\n\t\tthis.baselineOffset = this.baseline.map(function (baseline, i) {\n\t\t\tvar m = (this$1.font[i] || this$1.font[0]).metrics\n\t\t\tvar base = 0\n\n\t\t\tbase += m.bottom * .5\n\n\t\t\tif (typeof baseline === 'number') {\n\t\t\t\tbase += (baseline - m.baseline)\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbase += -m[baseline]\n\t\t\t}\n\n\t\t\tbase *= -1\n\t\t\treturn base\n\t\t})\n\t}\n\n\t// flatten colors to a single uint8 array\n\tif (o.color != null) {\n\t\tif (!o.color) { o.color = 'transparent' }\n\n\t\t// single color\n\t\tif (typeof o.color === 'string' || !isNaN(o.color)) {\n\t\t\tthis.color = rgba(o.color, 'uint8')\n\t\t}\n\t\t// array\n\t\telse {\n\t\t\tvar colorData\n\n\t\t\t// flat array\n\t\t\tif (typeof o.color[0] === 'number' && o.color.length > this.counts.length) {\n\t\t\t\tvar l = o.color.length\n\t\t\t\tcolorData = pool.mallocUint8(l)\n\t\t\t\tvar sub = (o.color.subarray || o.color.slice).bind(o.color)\n\t\t\t\tfor (var i$4 = 0; i$4 < l; i$4 += 4) {\n\t\t\t\t\tcolorData.set(rgba(sub(i$4, i$4 + 4), 'uint8'), i$4)\n\t\t\t\t}\n\t\t\t}\n\t\t\t// nested array\n\t\t\telse {\n\t\t\t\tvar l$1 = o.color.length\n\t\t\t\tcolorData = pool.mallocUint8(l$1 * 4)\n\t\t\t\tfor (var i$5 = 0; i$5 < l$1; i$5++) {\n\t\t\t\t\tcolorData.set(rgba(o.color[i$5] || 0, 'uint8'), i$5 * 4)\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis.color = colorData\n\t\t}\n\t}\n\n\t// update render batch\n\tif (o.position || o.text || o.color || o.baseline || o.align || o.font || o.offset || o.opacity) {\n\t\tvar isBatch = (this.color.length > 4)\n\t\t\t|| (this.baselineOffset.length > 1)\n\t\t\t|| (this.align && this.align.length > 1)\n\t\t\t|| (this.fontAtlas.length > 1)\n\t\t\t|| (this.positionOffset.length > 2)\n\t\tif (isBatch) {\n\t\t\tvar length = Math.max(\n\t\t\t\tthis.position.length * .5 || 0,\n\t\t\t\tthis.color.length * .25 || 0,\n\t\t\t\tthis.baselineOffset.length || 0,\n\t\t\t\tthis.alignOffset.length || 0,\n\t\t\t\tthis.font.length || 0,\n\t\t\t\tthis.opacity.length || 0,\n\t\t\t\tthis.positionOffset.length * .5 || 0\n\t\t\t)\n\t\t\tthis.batch = Array(length)\n\t\t\tfor (var i$6 = 0; i$6 < this.batch.length; i$6++) {\n\t\t\t\tthis.batch[i$6] = {\n\t\t\t\t\tcount: this.counts.length > 1 ? this.counts[i$6] : this.counts[0],\n\t\t\t\t\toffset: this.textOffsets.length > 1 ? this.textOffsets[i$6] : this.textOffsets[0],\n\t\t\t\t\tcolor: !this.color ? [0,0,0,255] : this.color.length <= 4 ? this.color : this.color.subarray(i$6 * 4, i$6 * 4 + 4),\n\t\t\t\t\topacity: Array.isArray(this.opacity) ? this.opacity[i$6] : this.opacity,\n\t\t\t\t\tbaseline: this.baselineOffset[i$6] != null ? this.baselineOffset[i$6] : this.baselineOffset[0],\n\t\t\t\t\talign: !this.align ? 0 : this.alignOffset[i$6] != null ? this.alignOffset[i$6] : this.alignOffset[0],\n\t\t\t\t\tatlas: this.fontAtlas[i$6] || this.fontAtlas[0],\n\t\t\t\t\tpositionOffset: this.positionOffset.length > 2 ? this.positionOffset.subarray(i$6 * 2, i$6 * 2 + 2) : this.positionOffset\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// single-color, single-baseline, single-align batch is faster to render\n\t\telse {\n\t\t\tif (this.count) {\n\t\t\t\tthis.batch = [{\n\t\t\t\t\tcount: this.count,\n\t\t\t\t\toffset: 0,\n\t\t\t\t\tcolor: this.color || [0,0,0,255],\n\t\t\t\t\topacity: Array.isArray(this.opacity) ? this.opacity[0] : this.opacity,\n\t\t\t\t\tbaseline: this.baselineOffset[0],\n\t\t\t\t\talign: this.alignOffset ? this.alignOffset[0] : 0,\n\t\t\t\t\tatlas: this.fontAtlas[0],\n\t\t\t\t\tpositionOffset: this.positionOffset\n\t\t\t\t}]\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.batch = []\n\t\t\t}\n\t\t}\n\t}\n};\n\nGlText.prototype.destroy = function destroy () {\n\t// TODO: count instances of atlases and destroy all on null\n};\n\n\n// defaults\nGlText.prototype.kerning = true\nGlText.prototype.position = { constant: new Float32Array(2) }\nGlText.prototype.translate = null\nGlText.prototype.scale = null\nGlText.prototype.font = null\nGlText.prototype.text = ''\nGlText.prototype.positionOffset = [0, 0]\nGlText.prototype.opacity = 1\nGlText.prototype.color = new Uint8Array([0, 0, 0, 255])\nGlText.prototype.alignOffset = [0, 0]\n\n\n// size of an atlas\nGlText.maxAtlasSize = 1024\n\n// font atlas canvas is singleton\nGlText.atlasCanvas = document.createElement('canvas')\nGlText.atlasContext = GlText.atlasCanvas.getContext('2d', {alpha: false})\n\n// font-size used for metrics, atlas step calculation\nGlText.baseFontSize = 64\n\n// fonts storage\nGlText.fonts = {}\n\n// max number of different font atlases/textures cached\n// FIXME: enable atlas size limitation via LRU\n// GlText.atlasCacheSize = 64\n\nfunction isRegl (o) {\n\treturn typeof o === 'function' &&\n\to._gl &&\n\to.prop &&\n\to.texture &&\n\to.buffer\n}\n\n\nmodule.exports = GlText\n\n\n},{\"bit-twiddle\":81,\"color-normalize\":89,\"css-font\":99,\"detect-kerning\":125,\"es6-weak-map\":183,\"flatten-vertex-data\":191,\"font-atlas\":192,\"font-measure\":193,\"gl-util/context\":226,\"is-plain-obj\":236,\"object-assign\":247,\"parse-rect\":249,\"parse-unit\":251,\"pick-by-alias\":253,\"regl\":283,\"to-px\":314,\"typedarray-pool\":327}],226:[function(_dereq_,module,exports){\n(function (global){(function (){\n/** @module gl-util/context */\r\n'use strict'\r\n\r\nvar pick = _dereq_('pick-by-alias')\r\n\r\nmodule.exports = function setContext (o) {\r\n\tif (!o) o = {}\r\n\telse if (typeof o === 'string') o = {container: o}\r\n\r\n\t// HTMLCanvasElement\r\n\tif (isCanvas(o)) {\r\n\t\to = {container: o}\r\n\t}\r\n\t// HTMLElement\r\n\telse if (isElement(o)) {\r\n\t\to = {container: o}\r\n\t}\r\n\t// WebGLContext\r\n\telse if (isContext(o)) {\r\n\t\to = {gl: o}\r\n\t}\r\n\t// options object\r\n\telse {\r\n\t\to = pick(o, {\r\n\t\t\tcontainer: 'container target element el canvas holder parent parentNode wrapper use ref root node',\r\n\t\t\tgl: 'gl context webgl glContext',\r\n\t\t\tattrs: 'attributes attrs contextAttributes',\r\n\t\t\tpixelRatio: 'pixelRatio pxRatio px ratio pxratio pixelratio',\r\n\t\t\twidth: 'w width',\r\n\t\t\theight: 'h height'\r\n\t\t}, true)\r\n\t}\r\n\r\n\tif (!o.pixelRatio) o.pixelRatio = global.pixelRatio || 1\r\n\r\n\t// make sure there is container and canvas\r\n\tif (o.gl) {\r\n\t\treturn o.gl\r\n\t}\r\n\tif (o.canvas) {\r\n\t\to.container = o.canvas.parentNode\r\n\t}\r\n\tif (o.container) {\r\n\t\tif (typeof o.container === 'string') {\r\n\t\t\tvar c = document.querySelector(o.container)\r\n\t\t\tif (!c) throw Error('Element ' + o.container + ' is not found')\r\n\t\t\to.container = c\r\n\t\t}\r\n\t\tif (isCanvas(o.container)) {\r\n\t\t\to.canvas = o.container\r\n\t\t\to.container = o.canvas.parentNode\r\n\t\t}\r\n\t\telse if (!o.canvas) {\r\n\t\t\to.canvas = createCanvas()\r\n\t\t\to.container.appendChild(o.canvas)\r\n\t\t\tresize(o)\r\n\t\t}\r\n\t}\r\n\t// blank new canvas\r\n\telse if (!o.canvas) {\r\n\t\tif (typeof document !== 'undefined') {\r\n\t\t\to.container = document.body || document.documentElement\r\n\t\t\to.canvas = createCanvas()\r\n\t\t\to.container.appendChild(o.canvas)\r\n\t\t\tresize(o)\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow Error('Not DOM environment. Use headless-gl.')\r\n\t\t}\r\n\t}\r\n\r\n\t// make sure there is context\r\n\tif (!o.gl) {\r\n\t\t['webgl', 'experimental-webgl', 'webgl-experimental'].some(function (c) {\r\n\t\t\ttry {\r\n\t\t\t\to.gl = o.canvas.getContext(c, o.attrs);\r\n\t\t\t} catch (e) { /* no-op */ }\r\n\t\t\treturn o.gl;\r\n\t\t});\r\n\t}\r\n\r\n\treturn o.gl\r\n}\r\n\r\n\r\nfunction resize (o) {\r\n\tif (o.container) {\r\n\t\tif (o.container == document.body) {\r\n\t\t\tif (!document.body.style.width) o.canvas.width = o.width || (o.pixelRatio * global.innerWidth)\r\n\t\t\tif (!document.body.style.height) o.canvas.height = o.height || (o.pixelRatio * global.innerHeight)\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvar bounds = o.container.getBoundingClientRect()\r\n\t\t\to.canvas.width = o.width || (bounds.right - bounds.left)\r\n\t\t\to.canvas.height = o.height || (bounds.bottom - bounds.top)\r\n\t\t}\r\n\t}\r\n}\r\n\r\nfunction isCanvas (e) {\r\n\treturn typeof e.getContext === 'function'\r\n\t\t&& 'width' in e\r\n\t\t&& 'height' in e\r\n}\r\n\r\nfunction isElement (e) {\r\n\treturn typeof e.nodeName === 'string' &&\r\n\t\ttypeof e.appendChild === 'function' &&\r\n\t\ttypeof e.getBoundingClientRect === 'function'\r\n}\r\n\r\nfunction isContext (e) {\r\n\treturn typeof e.drawArrays === 'function' ||\r\n\t\ttypeof e.drawElements === 'function'\r\n}\r\n\r\nfunction createCanvas () {\r\n\tvar canvas = document.createElement('canvas')\r\n\tcanvas.style.position = 'absolute'\r\n\tcanvas.style.top = 0\r\n\tcanvas.style.left = 0\r\n\r\n\treturn canvas\r\n}\r\n\n}).call(this)}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{\"pick-by-alias\":253}],227:[function(_dereq_,module,exports){\nmodule.exports = function(strings) {\n if (typeof strings === 'string') strings = [strings]\n var exprs = [].slice.call(arguments,1)\n var parts = []\n for (var i = 0; i < strings.length-1; i++) {\n parts.push(strings[i], exprs[i] || '')\n }\n parts.push(strings[i])\n return parts.join('')\n}\n\n},{}],228:[function(_dereq_,module,exports){\n(function (global){(function (){\n'use strict'\r\n\r\nvar isBrowser = _dereq_('is-browser')\r\nvar hasHover\r\n\r\nif (typeof global.matchMedia === 'function') {\r\n\thasHover = !global.matchMedia('(hover: none)').matches\r\n}\r\nelse {\r\n\thasHover = isBrowser\r\n}\r\n\r\nmodule.exports = hasHover\r\n\n}).call(this)}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{\"is-browser\":232}],229:[function(_dereq_,module,exports){\n'use strict'\r\n\r\nvar isBrowser = _dereq_('is-browser')\r\n\r\nfunction detect() {\r\n\tvar supported = false\r\n\r\n\ttry {\r\n\t\tvar opts = Object.defineProperty({}, 'passive', {\r\n\t\t\tget: function() {\r\n\t\t\t\tsupported = true\r\n\t\t\t}\r\n\t\t})\r\n\r\n\t\twindow.addEventListener('test', null, opts)\r\n\t\twindow.removeEventListener('test', null, opts)\r\n\t} catch(e) {\r\n\t\tsupported = false\r\n\t}\r\n\r\n\treturn supported\r\n}\r\n\r\nmodule.exports = isBrowser && detect()\r\n\n},{\"is-browser\":232}],230:[function(_dereq_,module,exports){\nexports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = ((value * c) - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n\n},{}],231:[function(_dereq_,module,exports){\nif (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n })\n }\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n }\n}\n\n},{}],232:[function(_dereq_,module,exports){\nmodule.exports = true;\n},{}],233:[function(_dereq_,module,exports){\n'use strict';\nmodule.exports = typeof navigator !== 'undefined' &&\n\t(/MSIE/.test(navigator.userAgent) || /Trident\\//.test(navigator.appVersion));\n\n},{}],234:[function(_dereq_,module,exports){\n'use strict'\r\n\r\nmodule.exports = isMobile\r\nmodule.exports.isMobile = isMobile\r\nmodule.exports.default = isMobile\r\n\r\nvar mobileRE = /(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series[46]0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i\r\n\r\nvar tabletRE = /(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series[46]0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i\r\n\r\nfunction isMobile (opts) {\r\n if (!opts) opts = {}\r\n var ua = opts.ua\r\n if (!ua && typeof navigator !== 'undefined') ua = navigator.userAgent\r\n if (ua && ua.headers && typeof ua.headers['user-agent'] === 'string') {\r\n ua = ua.headers['user-agent']\r\n }\r\n if (typeof ua !== 'string') return false\r\n\r\n var result = opts.tablet ? tabletRE.test(ua) : mobileRE.test(ua)\r\n\r\n if (\r\n !result &&\r\n opts.tablet &&\r\n opts.featureDetect &&\r\n navigator &&\r\n navigator.maxTouchPoints > 1 &&\r\n ua.indexOf('Macintosh') !== -1 &&\r\n ua.indexOf('Safari') !== -1\r\n ) {\r\n result = true\r\n }\r\n\r\n return result\r\n}\r\n\n},{}],235:[function(_dereq_,module,exports){\n'use strict';\nmodule.exports = function (x) {\n\tvar type = typeof x;\n\treturn x !== null && (type === 'object' || type === 'function');\n};\n\n},{}],236:[function(_dereq_,module,exports){\n'use strict';\nvar toString = Object.prototype.toString;\n\nmodule.exports = function (x) {\n\tvar prototype;\n\treturn toString.call(x) === '[object Object]' && (prototype = Object.getPrototypeOf(x), prototype === null || prototype === Object.getPrototypeOf({}));\n};\n\n},{}],237:[function(_dereq_,module,exports){\n'use strict';\r\n\r\n/**\r\n * Is this string all whitespace?\r\n * This solution kind of makes my brain hurt, but it's significantly faster\r\n * than !str.trim() or any other solution I could find.\r\n *\r\n * whitespace codes from: http://en.wikipedia.org/wiki/Whitespace_character\r\n * and verified with:\r\n *\r\n * for(var i = 0; i < 65536; i++) {\r\n * var s = String.fromCharCode(i);\r\n * if(+s===0 && !s.trim()) console.log(i, s);\r\n * }\r\n *\r\n * which counts a couple of these as *not* whitespace, but finds nothing else\r\n * that *is* whitespace. Note that charCodeAt stops at 16 bits, but it appears\r\n * that there are no whitespace characters above this, and code points above\r\n * this do not map onto white space characters.\r\n */\r\n\r\nmodule.exports = function(str){\r\n var l = str.length,\r\n a;\r\n for(var i = 0; i < l; i++) {\r\n a = str.charCodeAt(i);\r\n if((a < 9 || a > 13) && (a !== 32) && (a !== 133) && (a !== 160) &&\r\n (a !== 5760) && (a !== 6158) && (a < 8192 || a > 8205) &&\r\n (a !== 8232) && (a !== 8233) && (a !== 8239) && (a !== 8287) &&\r\n (a !== 8288) && (a !== 12288) && (a !== 65279)) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n}\r\n\n},{}],238:[function(_dereq_,module,exports){\n'use strict'\r\n\r\nmodule.exports = function isPath(str) {\r\n\tif (typeof str !== 'string') return false\r\n\r\n\tstr = str.trim()\r\n\r\n\t// https://www.w3.org/TR/SVG/paths.html#PathDataBNF\r\n\tif (/^[mzlhvcsqta]\\s*[-+.0-9][^mlhvzcsqta]+/i.test(str) && /[\\dz]$/i.test(str) && str.length > 4) return true\r\n\r\n\treturn false\r\n}\r\n\n},{}],239:[function(_dereq_,module,exports){\n/* Mapbox GL JS is licensed under the 3-Clause BSD License. Full text of license: https://github.com/mapbox/mapbox-gl-js/blob/v1.10.1/LICENSE.txt */\n(function (global, factory) {\ntypeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\ntypeof define === 'function' && define.amd ? define(factory) :\n(global = global || self, global.mapboxgl = factory());\n}(this, (function () { 'use strict';\n\n/* eslint-disable */\n\nvar shared, worker, mapboxgl;\n// define gets called three times: one for each chunk. we rely on the order\n// they're imported to know which is which\nfunction define(_, chunk) {\nif (!shared) {\n shared = chunk;\n} else if (!worker) {\n worker = chunk;\n} else {\n var workerBundleString = 'var sharedChunk = {}; (' + shared + ')(sharedChunk); (' + worker + ')(sharedChunk);'\n\n var sharedChunk = {};\n shared(sharedChunk);\n mapboxgl = chunk(sharedChunk);\n mapboxgl.workerUrl = window.URL.createObjectURL(new Blob([workerBundleString], { type: 'text/javascript' }));\n}\n}\n\n\ndefine(['exports'], function (exports) { 'use strict';\n\nfunction createCommonjsModule(fn, module) {\n\treturn module = { exports: {} }, fn(module, module.exports), module.exports;\n}\n\nvar version = \"1.10.1\";\n\nvar unitbezier = UnitBezier;\nfunction UnitBezier(p1x, p1y, p2x, p2y) {\n this.cx = 3 * p1x;\n this.bx = 3 * (p2x - p1x) - this.cx;\n this.ax = 1 - this.cx - this.bx;\n this.cy = 3 * p1y;\n this.by = 3 * (p2y - p1y) - this.cy;\n this.ay = 1 - this.cy - this.by;\n this.p1x = p1x;\n this.p1y = p2y;\n this.p2x = p2x;\n this.p2y = p2y;\n}\nUnitBezier.prototype.sampleCurveX = function (t) {\n return ((this.ax * t + this.bx) * t + this.cx) * t;\n};\nUnitBezier.prototype.sampleCurveY = function (t) {\n return ((this.ay * t + this.by) * t + this.cy) * t;\n};\nUnitBezier.prototype.sampleCurveDerivativeX = function (t) {\n return (3 * this.ax * t + 2 * this.bx) * t + this.cx;\n};\nUnitBezier.prototype.solveCurveX = function (x, epsilon) {\n if (typeof epsilon === 'undefined') {\n epsilon = 0.000001;\n }\n var t0, t1, t2, x2, i;\n for (t2 = x, i = 0; i < 8; i++) {\n x2 = this.sampleCurveX(t2) - x;\n if (Math.abs(x2) < epsilon) {\n return t2;\n }\n var d2 = this.sampleCurveDerivativeX(t2);\n if (Math.abs(d2) < 0.000001) {\n break;\n }\n t2 = t2 - x2 / d2;\n }\n t0 = 0;\n t1 = 1;\n t2 = x;\n if (t2 < t0) {\n return t0;\n }\n if (t2 > t1) {\n return t1;\n }\n while (t0 < t1) {\n x2 = this.sampleCurveX(t2);\n if (Math.abs(x2 - x) < epsilon) {\n return t2;\n }\n if (x > x2) {\n t0 = t2;\n } else {\n t1 = t2;\n }\n t2 = (t1 - t0) * 0.5 + t0;\n }\n return t2;\n};\nUnitBezier.prototype.solve = function (x, epsilon) {\n return this.sampleCurveY(this.solveCurveX(x, epsilon));\n};\n\nvar pointGeometry = Point;\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n}\nPoint.prototype = {\n clone: function () {\n return new Point(this.x, this.y);\n },\n add: function (p) {\n return this.clone()._add(p);\n },\n sub: function (p) {\n return this.clone()._sub(p);\n },\n multByPoint: function (p) {\n return this.clone()._multByPoint(p);\n },\n divByPoint: function (p) {\n return this.clone()._divByPoint(p);\n },\n mult: function (k) {\n return this.clone()._mult(k);\n },\n div: function (k) {\n return this.clone()._div(k);\n },\n rotate: function (a) {\n return this.clone()._rotate(a);\n },\n rotateAround: function (a, p) {\n return this.clone()._rotateAround(a, p);\n },\n matMult: function (m) {\n return this.clone()._matMult(m);\n },\n unit: function () {\n return this.clone()._unit();\n },\n perp: function () {\n return this.clone()._perp();\n },\n round: function () {\n return this.clone()._round();\n },\n mag: function () {\n return Math.sqrt(this.x * this.x + this.y * this.y);\n },\n equals: function (other) {\n return this.x === other.x && this.y === other.y;\n },\n dist: function (p) {\n return Math.sqrt(this.distSqr(p));\n },\n distSqr: function (p) {\n var dx = p.x - this.x, dy = p.y - this.y;\n return dx * dx + dy * dy;\n },\n angle: function () {\n return Math.atan2(this.y, this.x);\n },\n angleTo: function (b) {\n return Math.atan2(this.y - b.y, this.x - b.x);\n },\n angleWith: function (b) {\n return this.angleWithSep(b.x, b.y);\n },\n angleWithSep: function (x, y) {\n return Math.atan2(this.x * y - this.y * x, this.x * x + this.y * y);\n },\n _matMult: function (m) {\n var x = m[0] * this.x + m[1] * this.y, y = m[2] * this.x + m[3] * this.y;\n this.x = x;\n this.y = y;\n return this;\n },\n _add: function (p) {\n this.x += p.x;\n this.y += p.y;\n return this;\n },\n _sub: function (p) {\n this.x -= p.x;\n this.y -= p.y;\n return this;\n },\n _mult: function (k) {\n this.x *= k;\n this.y *= k;\n return this;\n },\n _div: function (k) {\n this.x /= k;\n this.y /= k;\n return this;\n },\n _multByPoint: function (p) {\n this.x *= p.x;\n this.y *= p.y;\n return this;\n },\n _divByPoint: function (p) {\n this.x /= p.x;\n this.y /= p.y;\n return this;\n },\n _unit: function () {\n this._div(this.mag());\n return this;\n },\n _perp: function () {\n var y = this.y;\n this.y = this.x;\n this.x = -y;\n return this;\n },\n _rotate: function (angle) {\n var cos = Math.cos(angle), sin = Math.sin(angle), x = cos * this.x - sin * this.y, y = sin * this.x + cos * this.y;\n this.x = x;\n this.y = y;\n return this;\n },\n _rotateAround: function (angle, p) {\n var cos = Math.cos(angle), sin = Math.sin(angle), x = p.x + cos * (this.x - p.x) - sin * (this.y - p.y), y = p.y + sin * (this.x - p.x) + cos * (this.y - p.y);\n this.x = x;\n this.y = y;\n return this;\n },\n _round: function () {\n this.x = Math.round(this.x);\n this.y = Math.round(this.y);\n return this;\n }\n};\nPoint.convert = function (a) {\n if (a instanceof Point) {\n return a;\n }\n if (Array.isArray(a)) {\n return new Point(a[0], a[1]);\n }\n return a;\n};\n\nfunction deepEqual(a, b) {\n if (Array.isArray(a)) {\n if (!Array.isArray(b) || a.length !== b.length) {\n return false;\n }\n for (var i = 0; i < a.length; i++) {\n if (!deepEqual(a[i], b[i])) {\n return false;\n }\n }\n return true;\n }\n if (typeof a === 'object' && a !== null && b !== null) {\n if (!(typeof b === 'object')) {\n return false;\n }\n var keys = Object.keys(a);\n if (keys.length !== Object.keys(b).length) {\n return false;\n }\n for (var key in a) {\n if (!deepEqual(a[key], b[key])) {\n return false;\n }\n }\n return true;\n }\n return a === b;\n}\n\nfunction easeCubicInOut(t) {\n if (t <= 0) {\n return 0;\n }\n if (t >= 1) {\n return 1;\n }\n var t2 = t * t, t3 = t2 * t;\n return 4 * (t < 0.5 ? t3 : 3 * (t - t2) + t3 - 0.75);\n}\nfunction bezier(p1x, p1y, p2x, p2y) {\n var bezier = new unitbezier(p1x, p1y, p2x, p2y);\n return function (t) {\n return bezier.solve(t);\n };\n}\nvar ease = bezier(0.25, 0.1, 0.25, 1);\nfunction clamp(n, min, max) {\n return Math.min(max, Math.max(min, n));\n}\nfunction wrap(n, min, max) {\n var d = max - min;\n var w = ((n - min) % d + d) % d + min;\n return w === min ? max : w;\n}\nfunction asyncAll(array, fn, callback) {\n if (!array.length) {\n return callback(null, []);\n }\n var remaining = array.length;\n var results = new Array(array.length);\n var error = null;\n array.forEach(function (item, i) {\n fn(item, function (err, result) {\n if (err) {\n error = err;\n }\n results[i] = result;\n if (--remaining === 0) {\n callback(error, results);\n }\n });\n });\n}\nfunction values(obj) {\n var result = [];\n for (var k in obj) {\n result.push(obj[k]);\n }\n return result;\n}\nfunction keysDifference(obj, other) {\n var difference = [];\n for (var i in obj) {\n if (!(i in other)) {\n difference.push(i);\n }\n }\n return difference;\n}\nfunction extend(dest) {\n var sources = [], len = arguments.length - 1;\n while (len-- > 0)\n sources[len] = arguments[len + 1];\n for (var i = 0, list = sources; i < list.length; i += 1) {\n var src = list[i];\n for (var k in src) {\n dest[k] = src[k];\n }\n }\n return dest;\n}\nfunction pick(src, properties) {\n var result = {};\n for (var i = 0; i < properties.length; i++) {\n var k = properties[i];\n if (k in src) {\n result[k] = src[k];\n }\n }\n return result;\n}\nvar id = 1;\nfunction uniqueId() {\n return id++;\n}\nfunction uuid() {\n function b(a) {\n return a ? (a ^ Math.random() * 16 >> a / 4).toString(16) : ([10000000] + -[1000] + -4000 + -8000 + -100000000000).replace(/[018]/g, b);\n }\n return b();\n}\nfunction validateUuid(str) {\n return str ? /^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(str) : false;\n}\nfunction bindAll(fns, context) {\n fns.forEach(function (fn) {\n if (!context[fn]) {\n return;\n }\n context[fn] = context[fn].bind(context);\n });\n}\nfunction endsWith(string, suffix) {\n return string.indexOf(suffix, string.length - suffix.length) !== -1;\n}\nfunction mapObject(input, iterator, context) {\n var output = {};\n for (var key in input) {\n output[key] = iterator.call(context || this, input[key], key, input);\n }\n return output;\n}\nfunction filterObject(input, iterator, context) {\n var output = {};\n for (var key in input) {\n if (iterator.call(context || this, input[key], key, input)) {\n output[key] = input[key];\n }\n }\n return output;\n}\nfunction clone(input) {\n if (Array.isArray(input)) {\n return input.map(clone);\n } else if (typeof input === 'object' && input) {\n return mapObject(input, clone);\n } else {\n return input;\n }\n}\nfunction arraysIntersect(a, b) {\n for (var l = 0; l < a.length; l++) {\n if (b.indexOf(a[l]) >= 0) {\n return true;\n }\n }\n return false;\n}\nvar warnOnceHistory = {};\nfunction warnOnce(message) {\n if (!warnOnceHistory[message]) {\n if (typeof console !== 'undefined') {\n console.warn(message);\n }\n warnOnceHistory[message] = true;\n }\n}\nfunction isCounterClockwise(a, b, c) {\n return (c.y - a.y) * (b.x - a.x) > (b.y - a.y) * (c.x - a.x);\n}\nfunction calculateSignedArea(ring) {\n var sum = 0;\n for (var i = 0, len = ring.length, j = len - 1, p1 = void 0, p2 = void 0; i < len; j = i++) {\n p1 = ring[i];\n p2 = ring[j];\n sum += (p2.x - p1.x) * (p1.y + p2.y);\n }\n return sum;\n}\nfunction sphericalToCartesian(ref) {\n var r = ref[0];\n var azimuthal = ref[1];\n var polar = ref[2];\n azimuthal += 90;\n azimuthal *= Math.PI / 180;\n polar *= Math.PI / 180;\n return {\n x: r * Math.cos(azimuthal) * Math.sin(polar),\n y: r * Math.sin(azimuthal) * Math.sin(polar),\n z: r * Math.cos(polar)\n };\n}\nfunction isWorker() {\n return typeof WorkerGlobalScope !== 'undefined' && typeof self !== 'undefined' && self instanceof WorkerGlobalScope;\n}\nfunction parseCacheControl(cacheControl) {\n var re = /(?:^|(?:\\s*\\,\\s*))([^\\x00-\\x20\\(\\)<>@\\,;\\:\\\\\"\\/\\[\\]\\?\\=\\{\\}\\x7F]+)(?:\\=(?:([^\\x00-\\x20\\(\\)<>@\\,;\\:\\\\\"\\/\\[\\]\\?\\=\\{\\}\\x7F]+)|(?:\\\"((?:[^\"\\\\]|\\\\.)*)\\\")))?/g;\n var header = {};\n cacheControl.replace(re, function ($0, $1, $2, $3) {\n var value = $2 || $3;\n header[$1] = value ? value.toLowerCase() : true;\n return '';\n });\n if (header['max-age']) {\n var maxAge = parseInt(header['max-age'], 10);\n if (isNaN(maxAge)) {\n delete header['max-age'];\n } else {\n header['max-age'] = maxAge;\n }\n }\n return header;\n}\nvar _isSafari = null;\nfunction isSafari(scope) {\n if (_isSafari == null) {\n var userAgent = scope.navigator ? scope.navigator.userAgent : null;\n _isSafari = !!scope.safari || !!(userAgent && (/\\b(iPad|iPhone|iPod)\\b/.test(userAgent) || !!userAgent.match('Safari') && !userAgent.match('Chrome')));\n }\n return _isSafari;\n}\nfunction storageAvailable(type) {\n try {\n var storage = self[type];\n storage.setItem('_mapbox_test_', 1);\n storage.removeItem('_mapbox_test_');\n return true;\n } catch (e) {\n return false;\n }\n}\nfunction b64EncodeUnicode(str) {\n return self.btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function (match, p1) {\n return String.fromCharCode(Number('0x' + p1));\n }));\n}\nfunction b64DecodeUnicode(str) {\n return decodeURIComponent(self.atob(str).split('').map(function (c) {\n return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);\n }).join(''));\n}\n\nvar now = self.performance && self.performance.now ? self.performance.now.bind(self.performance) : Date.now.bind(Date);\nvar raf = self.requestAnimationFrame || self.mozRequestAnimationFrame || self.webkitRequestAnimationFrame || self.msRequestAnimationFrame;\nvar cancel = self.cancelAnimationFrame || self.mozCancelAnimationFrame || self.webkitCancelAnimationFrame || self.msCancelAnimationFrame;\nvar linkEl;\nvar reducedMotionQuery;\nvar exported = {\n now: now,\n frame: function frame(fn) {\n var frame = raf(fn);\n return {\n cancel: function () {\n return cancel(frame);\n }\n };\n },\n getImageData: function getImageData(img, padding) {\n if (padding === void 0)\n padding = 0;\n var canvas = self.document.createElement('canvas');\n var context = canvas.getContext('2d');\n if (!context) {\n throw new Error('failed to create canvas 2d context');\n }\n canvas.width = img.width;\n canvas.height = img.height;\n context.drawImage(img, 0, 0, img.width, img.height);\n return context.getImageData(-padding, -padding, img.width + 2 * padding, img.height + 2 * padding);\n },\n resolveURL: function resolveURL(path) {\n if (!linkEl) {\n linkEl = self.document.createElement('a');\n }\n linkEl.href = path;\n return linkEl.href;\n },\n hardwareConcurrency: self.navigator.hardwareConcurrency || 4,\n get devicePixelRatio() {\n return self.devicePixelRatio;\n },\n get prefersReducedMotion() {\n if (!self.matchMedia) {\n return false;\n }\n if (reducedMotionQuery == null) {\n reducedMotionQuery = self.matchMedia('(prefers-reduced-motion: reduce)');\n }\n return reducedMotionQuery.matches;\n }\n};\n\nvar config = {\n API_URL: 'https://api.mapbox.com',\n get EVENTS_URL() {\n if (!this.API_URL) {\n return null;\n }\n if (this.API_URL.indexOf('https://api.mapbox.cn') === 0) {\n return 'https://events.mapbox.cn/events/v2';\n } else if (this.API_URL.indexOf('https://api.mapbox.com') === 0) {\n return 'https://events.mapbox.com/events/v2';\n } else {\n return null;\n }\n },\n FEEDBACK_URL: 'https://apps.mapbox.com/feedback',\n REQUIRE_ACCESS_TOKEN: true,\n ACCESS_TOKEN: null,\n MAX_PARALLEL_IMAGE_REQUESTS: 16\n};\n\nvar exported$1 = {\n supported: false,\n testSupport: testSupport\n};\nvar glForTesting;\nvar webpCheckComplete = false;\nvar webpImgTest;\nvar webpImgTestOnloadComplete = false;\nif (self.document) {\n webpImgTest = self.document.createElement('img');\n webpImgTest.onload = function () {\n if (glForTesting) {\n testWebpTextureUpload(glForTesting);\n }\n glForTesting = null;\n webpImgTestOnloadComplete = true;\n };\n webpImgTest.onerror = function () {\n webpCheckComplete = true;\n glForTesting = null;\n };\n webpImgTest.src = 'data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=';\n}\nfunction testSupport(gl) {\n if (webpCheckComplete || !webpImgTest) {\n return;\n }\n if (webpImgTestOnloadComplete) {\n testWebpTextureUpload(gl);\n } else {\n glForTesting = gl;\n }\n}\nfunction testWebpTextureUpload(gl) {\n var texture = gl.createTexture();\n gl.bindTexture(gl.TEXTURE_2D, texture);\n try {\n gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, webpImgTest);\n if (gl.isContextLost()) {\n return;\n }\n exported$1.supported = true;\n } catch (e) {\n }\n gl.deleteTexture(texture);\n webpCheckComplete = true;\n}\n\nvar SKU_ID = '01';\nfunction createSkuToken() {\n var TOKEN_VERSION = '1';\n var base62chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';\n var sessionRandomizer = '';\n for (var i = 0; i < 10; i++) {\n sessionRandomizer += base62chars[Math.floor(Math.random() * 62)];\n }\n var expiration = 12 * 60 * 60 * 1000;\n var token = [\n TOKEN_VERSION,\n SKU_ID,\n sessionRandomizer\n ].join('');\n var tokenExpiresAt = Date.now() + expiration;\n return {\n token: token,\n tokenExpiresAt: tokenExpiresAt\n };\n}\n\nvar RequestManager = function RequestManager(transformRequestFn, customAccessToken) {\n this._transformRequestFn = transformRequestFn;\n this._customAccessToken = customAccessToken;\n this._createSkuToken();\n};\nRequestManager.prototype._createSkuToken = function _createSkuToken() {\n var skuToken = createSkuToken();\n this._skuToken = skuToken.token;\n this._skuTokenExpiresAt = skuToken.tokenExpiresAt;\n};\nRequestManager.prototype._isSkuTokenExpired = function _isSkuTokenExpired() {\n return Date.now() > this._skuTokenExpiresAt;\n};\nRequestManager.prototype.transformRequest = function transformRequest(url, type) {\n if (this._transformRequestFn) {\n return this._transformRequestFn(url, type) || { url: url };\n }\n return { url: url };\n};\nRequestManager.prototype.normalizeStyleURL = function normalizeStyleURL(url, accessToken) {\n if (!isMapboxURL(url)) {\n return url;\n }\n var urlObject = parseUrl(url);\n urlObject.path = '/styles/v1' + urlObject.path;\n return this._makeAPIURL(urlObject, this._customAccessToken || accessToken);\n};\nRequestManager.prototype.normalizeGlyphsURL = function normalizeGlyphsURL(url, accessToken) {\n if (!isMapboxURL(url)) {\n return url;\n }\n var urlObject = parseUrl(url);\n urlObject.path = '/fonts/v1' + urlObject.path;\n return this._makeAPIURL(urlObject, this._customAccessToken || accessToken);\n};\nRequestManager.prototype.normalizeSourceURL = function normalizeSourceURL(url, accessToken) {\n if (!isMapboxURL(url)) {\n return url;\n }\n var urlObject = parseUrl(url);\n urlObject.path = '/v4/' + urlObject.authority + '.json';\n urlObject.params.push('secure');\n return this._makeAPIURL(urlObject, this._customAccessToken || accessToken);\n};\nRequestManager.prototype.normalizeSpriteURL = function normalizeSpriteURL(url, format, extension, accessToken) {\n var urlObject = parseUrl(url);\n if (!isMapboxURL(url)) {\n urlObject.path += '' + format + extension;\n return formatUrl(urlObject);\n }\n urlObject.path = '/styles/v1' + urlObject.path + '/sprite' + format + extension;\n return this._makeAPIURL(urlObject, this._customAccessToken || accessToken);\n};\nRequestManager.prototype.normalizeTileURL = function normalizeTileURL(tileURL, tileSize) {\n if (this._isSkuTokenExpired()) {\n this._createSkuToken();\n }\n if (tileURL && !isMapboxURL(tileURL)) {\n return tileURL;\n }\n var urlObject = parseUrl(tileURL);\n var imageExtensionRe = /(\\.(png|jpg)\\d*)(?=$)/;\n var tileURLAPIPrefixRe = /^.+\\/v4\\//;\n var suffix = exported.devicePixelRatio >= 2 || tileSize === 512 ? '@2x' : '';\n var extension = exported$1.supported ? '.webp' : '$1';\n urlObject.path = urlObject.path.replace(imageExtensionRe, '' + suffix + extension);\n urlObject.path = urlObject.path.replace(tileURLAPIPrefixRe, '/');\n urlObject.path = '/v4' + urlObject.path;\n var accessToken = this._customAccessToken || getAccessToken(urlObject.params) || config.ACCESS_TOKEN;\n if (config.REQUIRE_ACCESS_TOKEN && accessToken && this._skuToken) {\n urlObject.params.push('sku=' + this._skuToken);\n }\n return this._makeAPIURL(urlObject, accessToken);\n};\nRequestManager.prototype.canonicalizeTileURL = function canonicalizeTileURL(url, removeAccessToken) {\n var version = '/v4/';\n var extensionRe = /\\.[\\w]+$/;\n var urlObject = parseUrl(url);\n if (!urlObject.path.match(/(^\\/v4\\/)/) || !urlObject.path.match(extensionRe)) {\n return url;\n }\n var result = 'mapbox://tiles/';\n result += urlObject.path.replace(version, '');\n var params = urlObject.params;\n if (removeAccessToken) {\n params = params.filter(function (p) {\n return !p.match(/^access_token=/);\n });\n }\n if (params.length) {\n result += '?' + params.join('&');\n }\n return result;\n};\nRequestManager.prototype.canonicalizeTileset = function canonicalizeTileset(tileJSON, sourceURL) {\n var removeAccessToken = sourceURL ? isMapboxURL(sourceURL) : false;\n var canonical = [];\n for (var i = 0, list = tileJSON.tiles || []; i < list.length; i += 1) {\n var url = list[i];\n if (isMapboxHTTPURL(url)) {\n canonical.push(this.canonicalizeTileURL(url, removeAccessToken));\n } else {\n canonical.push(url);\n }\n }\n return canonical;\n};\nRequestManager.prototype._makeAPIURL = function _makeAPIURL(urlObject, accessToken) {\n var help = 'See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes';\n var apiUrlObject = parseUrl(config.API_URL);\n urlObject.protocol = apiUrlObject.protocol;\n urlObject.authority = apiUrlObject.authority;\n if (apiUrlObject.path !== '/') {\n urlObject.path = '' + apiUrlObject.path + urlObject.path;\n }\n if (!config.REQUIRE_ACCESS_TOKEN) {\n return formatUrl(urlObject);\n }\n accessToken = accessToken || config.ACCESS_TOKEN;\n if (!accessToken) {\n throw new Error('An API access token is required to use Mapbox GL. ' + help);\n }\n if (accessToken[0] === 's') {\n throw new Error('Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). ' + help);\n }\n urlObject.params = urlObject.params.filter(function (d) {\n return d.indexOf('access_token') === -1;\n });\n urlObject.params.push('access_token=' + accessToken);\n return formatUrl(urlObject);\n};\nfunction isMapboxURL(url) {\n return url.indexOf('mapbox:') === 0;\n}\nvar mapboxHTTPURLRe = /^((https?:)?\\/\\/)?([^\\/]+\\.)?mapbox\\.c(n|om)(\\/|\\?|$)/i;\nfunction isMapboxHTTPURL(url) {\n return mapboxHTTPURLRe.test(url);\n}\nfunction hasCacheDefeatingSku(url) {\n return url.indexOf('sku=') > 0 && isMapboxHTTPURL(url);\n}\nfunction getAccessToken(params) {\n for (var i = 0, list = params; i < list.length; i += 1) {\n var param = list[i];\n var match = param.match(/^access_token=(.*)$/);\n if (match) {\n return match[1];\n }\n }\n return null;\n}\nvar urlRe = /^(\\w+):\\/\\/([^/?]*)(\\/[^?]+)?\\??(.+)?/;\nfunction parseUrl(url) {\n var parts = url.match(urlRe);\n if (!parts) {\n throw new Error('Unable to parse URL object');\n }\n return {\n protocol: parts[1],\n authority: parts[2],\n path: parts[3] || '/',\n params: parts[4] ? parts[4].split('&') : []\n };\n}\nfunction formatUrl(obj) {\n var params = obj.params.length ? '?' + obj.params.join('&') : '';\n return obj.protocol + '://' + obj.authority + obj.path + params;\n}\nvar telemEventKey = 'mapbox.eventData';\nfunction parseAccessToken(accessToken) {\n if (!accessToken) {\n return null;\n }\n var parts = accessToken.split('.');\n if (!parts || parts.length !== 3) {\n return null;\n }\n try {\n var jsonData = JSON.parse(b64DecodeUnicode(parts[1]));\n return jsonData;\n } catch (e) {\n return null;\n }\n}\nvar TelemetryEvent = function TelemetryEvent(type) {\n this.type = type;\n this.anonId = null;\n this.eventData = {};\n this.queue = [];\n this.pendingRequest = null;\n};\nTelemetryEvent.prototype.getStorageKey = function getStorageKey(domain) {\n var tokenData = parseAccessToken(config.ACCESS_TOKEN);\n var u = '';\n if (tokenData && tokenData['u']) {\n u = b64EncodeUnicode(tokenData['u']);\n } else {\n u = config.ACCESS_TOKEN || '';\n }\n return domain ? telemEventKey + '.' + domain + ':' + u : telemEventKey + ':' + u;\n};\nTelemetryEvent.prototype.fetchEventData = function fetchEventData() {\n var isLocalStorageAvailable = storageAvailable('localStorage');\n var storageKey = this.getStorageKey();\n var uuidKey = this.getStorageKey('uuid');\n if (isLocalStorageAvailable) {\n try {\n var data = self.localStorage.getItem(storageKey);\n if (data) {\n this.eventData = JSON.parse(data);\n }\n var uuid = self.localStorage.getItem(uuidKey);\n if (uuid) {\n this.anonId = uuid;\n }\n } catch (e) {\n warnOnce('Unable to read from LocalStorage');\n }\n }\n};\nTelemetryEvent.prototype.saveEventData = function saveEventData() {\n var isLocalStorageAvailable = storageAvailable('localStorage');\n var storageKey = this.getStorageKey();\n var uuidKey = this.getStorageKey('uuid');\n if (isLocalStorageAvailable) {\n try {\n self.localStorage.setItem(uuidKey, this.anonId);\n if (Object.keys(this.eventData).length >= 1) {\n self.localStorage.setItem(storageKey, JSON.stringify(this.eventData));\n }\n } catch (e) {\n warnOnce('Unable to write to LocalStorage');\n }\n }\n};\nTelemetryEvent.prototype.processRequests = function processRequests(_) {\n};\nTelemetryEvent.prototype.postEvent = function postEvent(timestamp, additionalPayload, callback, customAccessToken) {\n var this$1 = this;\n if (!config.EVENTS_URL) {\n return;\n }\n var eventsUrlObject = parseUrl(config.EVENTS_URL);\n eventsUrlObject.params.push('access_token=' + (customAccessToken || config.ACCESS_TOKEN || ''));\n var payload = {\n event: this.type,\n created: new Date(timestamp).toISOString(),\n sdkIdentifier: 'mapbox-gl-js',\n sdkVersion: version,\n skuId: SKU_ID,\n userId: this.anonId\n };\n var finalPayload = additionalPayload ? extend(payload, additionalPayload) : payload;\n var request = {\n url: formatUrl(eventsUrlObject),\n headers: { 'Content-Type': 'text/plain' },\n body: JSON.stringify([finalPayload])\n };\n this.pendingRequest = postData(request, function (error) {\n this$1.pendingRequest = null;\n callback(error);\n this$1.saveEventData();\n this$1.processRequests(customAccessToken);\n });\n};\nTelemetryEvent.prototype.queueRequest = function queueRequest(event, customAccessToken) {\n this.queue.push(event);\n this.processRequests(customAccessToken);\n};\nvar MapLoadEvent = function (TelemetryEvent) {\n function MapLoadEvent() {\n TelemetryEvent.call(this, 'map.load');\n this.success = {};\n this.skuToken = '';\n }\n if (TelemetryEvent)\n MapLoadEvent.__proto__ = TelemetryEvent;\n MapLoadEvent.prototype = Object.create(TelemetryEvent && TelemetryEvent.prototype);\n MapLoadEvent.prototype.constructor = MapLoadEvent;\n MapLoadEvent.prototype.postMapLoadEvent = function postMapLoadEvent(tileUrls, mapId, skuToken, customAccessToken) {\n this.skuToken = skuToken;\n if (config.EVENTS_URL && customAccessToken || config.ACCESS_TOKEN && Array.isArray(tileUrls) && tileUrls.some(function (url) {\n return isMapboxURL(url) || isMapboxHTTPURL(url);\n })) {\n this.queueRequest({\n id: mapId,\n timestamp: Date.now()\n }, customAccessToken);\n }\n };\n MapLoadEvent.prototype.processRequests = function processRequests(customAccessToken) {\n var this$1 = this;\n if (this.pendingRequest || this.queue.length === 0) {\n return;\n }\n var ref = this.queue.shift();\n var id = ref.id;\n var timestamp = ref.timestamp;\n if (id && this.success[id]) {\n return;\n }\n if (!this.anonId) {\n this.fetchEventData();\n }\n if (!validateUuid(this.anonId)) {\n this.anonId = uuid();\n }\n this.postEvent(timestamp, { skuToken: this.skuToken }, function (err) {\n if (!err) {\n if (id) {\n this$1.success[id] = true;\n }\n }\n }, customAccessToken);\n };\n return MapLoadEvent;\n}(TelemetryEvent);\nvar TurnstileEvent = function (TelemetryEvent) {\n function TurnstileEvent(customAccessToken) {\n TelemetryEvent.call(this, 'appUserTurnstile');\n this._customAccessToken = customAccessToken;\n }\n if (TelemetryEvent)\n TurnstileEvent.__proto__ = TelemetryEvent;\n TurnstileEvent.prototype = Object.create(TelemetryEvent && TelemetryEvent.prototype);\n TurnstileEvent.prototype.constructor = TurnstileEvent;\n TurnstileEvent.prototype.postTurnstileEvent = function postTurnstileEvent(tileUrls, customAccessToken) {\n if (config.EVENTS_URL && config.ACCESS_TOKEN && Array.isArray(tileUrls) && tileUrls.some(function (url) {\n return isMapboxURL(url) || isMapboxHTTPURL(url);\n })) {\n this.queueRequest(Date.now(), customAccessToken);\n }\n };\n TurnstileEvent.prototype.processRequests = function processRequests(customAccessToken) {\n var this$1 = this;\n if (this.pendingRequest || this.queue.length === 0) {\n return;\n }\n if (!this.anonId || !this.eventData.lastSuccess || !this.eventData.tokenU) {\n this.fetchEventData();\n }\n var tokenData = parseAccessToken(config.ACCESS_TOKEN);\n var tokenU = tokenData ? tokenData['u'] : config.ACCESS_TOKEN;\n var dueForEvent = tokenU !== this.eventData.tokenU;\n if (!validateUuid(this.anonId)) {\n this.anonId = uuid();\n dueForEvent = true;\n }\n var nextUpdate = this.queue.shift();\n if (this.eventData.lastSuccess) {\n var lastUpdate = new Date(this.eventData.lastSuccess);\n var nextDate = new Date(nextUpdate);\n var daysElapsed = (nextUpdate - this.eventData.lastSuccess) / (24 * 60 * 60 * 1000);\n dueForEvent = dueForEvent || daysElapsed >= 1 || daysElapsed < -1 || lastUpdate.getDate() !== nextDate.getDate();\n } else {\n dueForEvent = true;\n }\n if (!dueForEvent) {\n return this.processRequests();\n }\n this.postEvent(nextUpdate, { 'enabled.telemetry': false }, function (err) {\n if (!err) {\n this$1.eventData.lastSuccess = nextUpdate;\n this$1.eventData.tokenU = tokenU;\n }\n }, customAccessToken);\n };\n return TurnstileEvent;\n}(TelemetryEvent);\nvar turnstileEvent_ = new TurnstileEvent();\nvar postTurnstileEvent = turnstileEvent_.postTurnstileEvent.bind(turnstileEvent_);\nvar mapLoadEvent_ = new MapLoadEvent();\nvar postMapLoadEvent = mapLoadEvent_.postMapLoadEvent.bind(mapLoadEvent_);\n\nvar CACHE_NAME = 'mapbox-tiles';\nvar cacheLimit = 500;\nvar cacheCheckThreshold = 50;\nvar MIN_TIME_UNTIL_EXPIRY = 1000 * 60 * 7;\nvar sharedCache;\nfunction cacheOpen() {\n if (self.caches && !sharedCache) {\n sharedCache = self.caches.open(CACHE_NAME);\n }\n}\nvar responseConstructorSupportsReadableStream;\nfunction prepareBody(response, callback) {\n if (responseConstructorSupportsReadableStream === undefined) {\n try {\n new Response(new ReadableStream());\n responseConstructorSupportsReadableStream = true;\n } catch (e) {\n responseConstructorSupportsReadableStream = false;\n }\n }\n if (responseConstructorSupportsReadableStream) {\n callback(response.body);\n } else {\n response.blob().then(callback);\n }\n}\nfunction cachePut(request, response, requestTime) {\n cacheOpen();\n if (!sharedCache) {\n return;\n }\n var options = {\n status: response.status,\n statusText: response.statusText,\n headers: new self.Headers()\n };\n response.headers.forEach(function (v, k) {\n return options.headers.set(k, v);\n });\n var cacheControl = parseCacheControl(response.headers.get('Cache-Control') || '');\n if (cacheControl['no-store']) {\n return;\n }\n if (cacheControl['max-age']) {\n options.headers.set('Expires', new Date(requestTime + cacheControl['max-age'] * 1000).toUTCString());\n }\n var timeUntilExpiry = new Date(options.headers.get('Expires')).getTime() - requestTime;\n if (timeUntilExpiry < MIN_TIME_UNTIL_EXPIRY) {\n return;\n }\n prepareBody(response, function (body) {\n var clonedResponse = new self.Response(body, options);\n cacheOpen();\n if (!sharedCache) {\n return;\n }\n sharedCache.then(function (cache) {\n return cache.put(stripQueryParameters(request.url), clonedResponse);\n }).catch(function (e) {\n return warnOnce(e.message);\n });\n });\n}\nfunction stripQueryParameters(url) {\n var start = url.indexOf('?');\n return start < 0 ? url : url.slice(0, start);\n}\nfunction cacheGet(request, callback) {\n cacheOpen();\n if (!sharedCache) {\n return callback(null);\n }\n var strippedURL = stripQueryParameters(request.url);\n sharedCache.then(function (cache) {\n cache.match(strippedURL).then(function (response) {\n var fresh = isFresh(response);\n cache.delete(strippedURL);\n if (fresh) {\n cache.put(strippedURL, response.clone());\n }\n callback(null, response, fresh);\n }).catch(callback);\n }).catch(callback);\n}\nfunction isFresh(response) {\n if (!response) {\n return false;\n }\n var expires = new Date(response.headers.get('Expires') || 0);\n var cacheControl = parseCacheControl(response.headers.get('Cache-Control') || '');\n return expires > Date.now() && !cacheControl['no-cache'];\n}\nvar globalEntryCounter = Infinity;\nfunction cacheEntryPossiblyAdded(dispatcher) {\n globalEntryCounter++;\n if (globalEntryCounter > cacheCheckThreshold) {\n dispatcher.getActor().send('enforceCacheSizeLimit', cacheLimit);\n globalEntryCounter = 0;\n }\n}\nfunction enforceCacheSizeLimit(limit) {\n cacheOpen();\n if (!sharedCache) {\n return;\n }\n sharedCache.then(function (cache) {\n cache.keys().then(function (keys) {\n for (var i = 0; i < keys.length - limit; i++) {\n cache.delete(keys[i]);\n }\n });\n });\n}\nfunction clearTileCache(callback) {\n var promise = self.caches.delete(CACHE_NAME);\n if (callback) {\n promise.catch(callback).then(function () {\n return callback();\n });\n }\n}\nfunction setCacheLimits(limit, checkThreshold) {\n cacheLimit = limit;\n cacheCheckThreshold = checkThreshold;\n}\n\nvar supportsOffscreenCanvas;\nfunction offscreenCanvasSupported() {\n if (supportsOffscreenCanvas == null) {\n supportsOffscreenCanvas = self.OffscreenCanvas && new self.OffscreenCanvas(1, 1).getContext('2d') && typeof self.createImageBitmap === 'function';\n }\n return supportsOffscreenCanvas;\n}\n\nvar ResourceType = {\n Unknown: 'Unknown',\n Style: 'Style',\n Source: 'Source',\n Tile: 'Tile',\n Glyphs: 'Glyphs',\n SpriteImage: 'SpriteImage',\n SpriteJSON: 'SpriteJSON',\n Image: 'Image'\n};\nif (typeof Object.freeze == 'function') {\n Object.freeze(ResourceType);\n}\nvar AJAXError = function (Error) {\n function AJAXError(message, status, url) {\n if (status === 401 && isMapboxHTTPURL(url)) {\n message += ': you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes';\n }\n Error.call(this, message);\n this.status = status;\n this.url = url;\n this.name = this.constructor.name;\n this.message = message;\n }\n if (Error)\n AJAXError.__proto__ = Error;\n AJAXError.prototype = Object.create(Error && Error.prototype);\n AJAXError.prototype.constructor = AJAXError;\n AJAXError.prototype.toString = function toString() {\n return this.name + ': ' + this.message + ' (' + this.status + '): ' + this.url;\n };\n return AJAXError;\n}(Error);\nvar getReferrer = isWorker() ? function () {\n return self.worker && self.worker.referrer;\n} : function () {\n return (self.location.protocol === 'blob:' ? self.parent : self).location.href;\n};\nvar isFileURL = function (url) {\n return /^file:/.test(url) || /^file:/.test(getReferrer()) && !/^\\w+:/.test(url);\n};\nfunction makeFetchRequest(requestParameters, callback) {\n var controller = new self.AbortController();\n var request = new self.Request(requestParameters.url, {\n method: requestParameters.method || 'GET',\n body: requestParameters.body,\n credentials: requestParameters.credentials,\n headers: requestParameters.headers,\n referrer: getReferrer(),\n signal: controller.signal\n });\n var complete = false;\n var aborted = false;\n var cacheIgnoringSearch = hasCacheDefeatingSku(request.url);\n if (requestParameters.type === 'json') {\n request.headers.set('Accept', 'application/json');\n }\n var validateOrFetch = function (err, cachedResponse, responseIsFresh) {\n if (aborted) {\n return;\n }\n if (err) {\n if (err.message !== 'SecurityError') {\n warnOnce(err);\n }\n }\n if (cachedResponse && responseIsFresh) {\n return finishRequest(cachedResponse);\n }\n var requestTime = Date.now();\n self.fetch(request).then(function (response) {\n if (response.ok) {\n var cacheableResponse = cacheIgnoringSearch ? response.clone() : null;\n return finishRequest(response, cacheableResponse, requestTime);\n } else {\n return callback(new AJAXError(response.statusText, response.status, requestParameters.url));\n }\n }).catch(function (error) {\n if (error.code === 20) {\n return;\n }\n callback(new Error(error.message));\n });\n };\n var finishRequest = function (response, cacheableResponse, requestTime) {\n (requestParameters.type === 'arrayBuffer' ? response.arrayBuffer() : requestParameters.type === 'json' ? response.json() : response.text()).then(function (result) {\n if (aborted) {\n return;\n }\n if (cacheableResponse && requestTime) {\n cachePut(request, cacheableResponse, requestTime);\n }\n complete = true;\n callback(null, result, response.headers.get('Cache-Control'), response.headers.get('Expires'));\n }).catch(function (err) {\n if (!aborted) {\n callback(new Error(err.message));\n }\n });\n };\n if (cacheIgnoringSearch) {\n cacheGet(request, validateOrFetch);\n } else {\n validateOrFetch(null, null);\n }\n return {\n cancel: function () {\n aborted = true;\n if (!complete) {\n controller.abort();\n }\n }\n };\n}\nfunction makeXMLHttpRequest(requestParameters, callback) {\n var xhr = new self.XMLHttpRequest();\n xhr.open(requestParameters.method || 'GET', requestParameters.url, true);\n if (requestParameters.type === 'arrayBuffer') {\n xhr.responseType = 'arraybuffer';\n }\n for (var k in requestParameters.headers) {\n xhr.setRequestHeader(k, requestParameters.headers[k]);\n }\n if (requestParameters.type === 'json') {\n xhr.responseType = 'text';\n xhr.setRequestHeader('Accept', 'application/json');\n }\n xhr.withCredentials = requestParameters.credentials === 'include';\n xhr.onerror = function () {\n callback(new Error(xhr.statusText));\n };\n xhr.onload = function () {\n if ((xhr.status >= 200 && xhr.status < 300 || xhr.status === 0) && xhr.response !== null) {\n var data = xhr.response;\n if (requestParameters.type === 'json') {\n try {\n data = JSON.parse(xhr.response);\n } catch (err) {\n return callback(err);\n }\n }\n callback(null, data, xhr.getResponseHeader('Cache-Control'), xhr.getResponseHeader('Expires'));\n } else {\n callback(new AJAXError(xhr.statusText, xhr.status, requestParameters.url));\n }\n };\n xhr.send(requestParameters.body);\n return {\n cancel: function () {\n return xhr.abort();\n }\n };\n}\nvar makeRequest = function (requestParameters, callback) {\n if (!isFileURL(requestParameters.url)) {\n if (self.fetch && self.Request && self.AbortController && self.Request.prototype.hasOwnProperty('signal')) {\n return makeFetchRequest(requestParameters, callback);\n }\n if (isWorker() && self.worker && self.worker.actor) {\n var queueOnMainThread = true;\n return self.worker.actor.send('getResource', requestParameters, callback, undefined, queueOnMainThread);\n }\n }\n return makeXMLHttpRequest(requestParameters, callback);\n};\nvar getJSON = function (requestParameters, callback) {\n return makeRequest(extend(requestParameters, { type: 'json' }), callback);\n};\nvar getArrayBuffer = function (requestParameters, callback) {\n return makeRequest(extend(requestParameters, { type: 'arrayBuffer' }), callback);\n};\nvar postData = function (requestParameters, callback) {\n return makeRequest(extend(requestParameters, { method: 'POST' }), callback);\n};\nfunction sameOrigin(url) {\n var a = self.document.createElement('a');\n a.href = url;\n return a.protocol === self.document.location.protocol && a.host === self.document.location.host;\n}\nvar transparentPngUrl = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=';\nfunction arrayBufferToImage(data, callback, cacheControl, expires) {\n var img = new self.Image();\n var URL = self.URL;\n img.onload = function () {\n callback(null, img);\n URL.revokeObjectURL(img.src);\n };\n img.onerror = function () {\n return callback(new Error('Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.'));\n };\n var blob = new self.Blob([new Uint8Array(data)], { type: 'image/png' });\n img.cacheControl = cacheControl;\n img.expires = expires;\n img.src = data.byteLength ? URL.createObjectURL(blob) : transparentPngUrl;\n}\nfunction arrayBufferToImageBitmap(data, callback) {\n var blob = new self.Blob([new Uint8Array(data)], { type: 'image/png' });\n self.createImageBitmap(blob).then(function (imgBitmap) {\n callback(null, imgBitmap);\n }).catch(function (e) {\n callback(new Error('Could not load image because of ' + e.message + '. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.'));\n });\n}\nvar imageQueue, numImageRequests;\nvar resetImageRequestQueue = function () {\n imageQueue = [];\n numImageRequests = 0;\n};\nresetImageRequestQueue();\nvar getImage = function (requestParameters, callback) {\n if (exported$1.supported) {\n if (!requestParameters.headers) {\n requestParameters.headers = {};\n }\n requestParameters.headers.accept = 'image/webp,*/*';\n }\n if (numImageRequests >= config.MAX_PARALLEL_IMAGE_REQUESTS) {\n var queued = {\n requestParameters: requestParameters,\n callback: callback,\n cancelled: false,\n cancel: function cancel() {\n this.cancelled = true;\n }\n };\n imageQueue.push(queued);\n return queued;\n }\n numImageRequests++;\n var advanced = false;\n var advanceImageRequestQueue = function () {\n if (advanced) {\n return;\n }\n advanced = true;\n numImageRequests--;\n while (imageQueue.length && numImageRequests < config.MAX_PARALLEL_IMAGE_REQUESTS) {\n var request = imageQueue.shift();\n var requestParameters = request.requestParameters;\n var callback = request.callback;\n var cancelled = request.cancelled;\n if (!cancelled) {\n request.cancel = getImage(requestParameters, callback).cancel;\n }\n }\n };\n var request = getArrayBuffer(requestParameters, function (err, data, cacheControl, expires) {\n advanceImageRequestQueue();\n if (err) {\n callback(err);\n } else if (data) {\n if (offscreenCanvasSupported()) {\n arrayBufferToImageBitmap(data, callback);\n } else {\n arrayBufferToImage(data, callback, cacheControl, expires);\n }\n }\n });\n return {\n cancel: function () {\n request.cancel();\n advanceImageRequestQueue();\n }\n };\n};\nvar getVideo = function (urls, callback) {\n var video = self.document.createElement('video');\n video.muted = true;\n video.onloadstart = function () {\n callback(null, video);\n };\n for (var i = 0; i < urls.length; i++) {\n var s = self.document.createElement('source');\n if (!sameOrigin(urls[i])) {\n video.crossOrigin = 'Anonymous';\n }\n s.src = urls[i];\n video.appendChild(s);\n }\n return {\n cancel: function () {\n }\n };\n};\n\nfunction _addEventListener(type, listener, listenerList) {\n var listenerExists = listenerList[type] && listenerList[type].indexOf(listener) !== -1;\n if (!listenerExists) {\n listenerList[type] = listenerList[type] || [];\n listenerList[type].push(listener);\n }\n}\nfunction _removeEventListener(type, listener, listenerList) {\n if (listenerList && listenerList[type]) {\n var index = listenerList[type].indexOf(listener);\n if (index !== -1) {\n listenerList[type].splice(index, 1);\n }\n }\n}\nvar Event = function Event(type, data) {\n if (data === void 0)\n data = {};\n extend(this, data);\n this.type = type;\n};\nvar ErrorEvent = function (Event) {\n function ErrorEvent(error, data) {\n if (data === void 0)\n data = {};\n Event.call(this, 'error', extend({ error: error }, data));\n }\n if (Event)\n ErrorEvent.__proto__ = Event;\n ErrorEvent.prototype = Object.create(Event && Event.prototype);\n ErrorEvent.prototype.constructor = ErrorEvent;\n return ErrorEvent;\n}(Event);\nvar Evented = function Evented() {\n};\nEvented.prototype.on = function on(type, listener) {\n this._listeners = this._listeners || {};\n _addEventListener(type, listener, this._listeners);\n return this;\n};\nEvented.prototype.off = function off(type, listener) {\n _removeEventListener(type, listener, this._listeners);\n _removeEventListener(type, listener, this._oneTimeListeners);\n return this;\n};\nEvented.prototype.once = function once(type, listener) {\n this._oneTimeListeners = this._oneTimeListeners || {};\n _addEventListener(type, listener, this._oneTimeListeners);\n return this;\n};\nEvented.prototype.fire = function fire(event, properties) {\n if (typeof event === 'string') {\n event = new Event(event, properties || {});\n }\n var type = event.type;\n if (this.listens(type)) {\n event.target = this;\n var listeners = this._listeners && this._listeners[type] ? this._listeners[type].slice() : [];\n for (var i = 0, list = listeners; i < list.length; i += 1) {\n var listener = list[i];\n listener.call(this, event);\n }\n var oneTimeListeners = this._oneTimeListeners && this._oneTimeListeners[type] ? this._oneTimeListeners[type].slice() : [];\n for (var i$1 = 0, list$1 = oneTimeListeners; i$1 < list$1.length; i$1 += 1) {\n var listener$1 = list$1[i$1];\n _removeEventListener(type, listener$1, this._oneTimeListeners);\n listener$1.call(this, event);\n }\n var parent = this._eventedParent;\n if (parent) {\n extend(event, typeof this._eventedParentData === 'function' ? this._eventedParentData() : this._eventedParentData);\n parent.fire(event);\n }\n } else if (event instanceof ErrorEvent) {\n console.error(event.error);\n }\n return this;\n};\nEvented.prototype.listens = function listens(type) {\n return this._listeners && this._listeners[type] && this._listeners[type].length > 0 || this._oneTimeListeners && this._oneTimeListeners[type] && this._oneTimeListeners[type].length > 0 || this._eventedParent && this._eventedParent.listens(type);\n};\nEvented.prototype.setEventedParent = function setEventedParent(parent, data) {\n this._eventedParent = parent;\n this._eventedParentData = data;\n return this;\n};\n\nvar $version = 8;\nvar $root = {\n\tversion: {\n\t\trequired: true,\n\t\ttype: \"enum\",\n\t\tvalues: [\n\t\t\t8\n\t\t]\n\t},\n\tname: {\n\t\ttype: \"string\"\n\t},\n\tmetadata: {\n\t\ttype: \"*\"\n\t},\n\tcenter: {\n\t\ttype: \"array\",\n\t\tvalue: \"number\"\n\t},\n\tzoom: {\n\t\ttype: \"number\"\n\t},\n\tbearing: {\n\t\ttype: \"number\",\n\t\t\"default\": 0,\n\t\tperiod: 360,\n\t\tunits: \"degrees\"\n\t},\n\tpitch: {\n\t\ttype: \"number\",\n\t\t\"default\": 0,\n\t\tunits: \"degrees\"\n\t},\n\tlight: {\n\t\ttype: \"light\"\n\t},\n\tsources: {\n\t\trequired: true,\n\t\ttype: \"sources\"\n\t},\n\tsprite: {\n\t\ttype: \"string\"\n\t},\n\tglyphs: {\n\t\ttype: \"string\"\n\t},\n\ttransition: {\n\t\ttype: \"transition\"\n\t},\n\tlayers: {\n\t\trequired: true,\n\t\ttype: \"array\",\n\t\tvalue: \"layer\"\n\t}\n};\nvar sources = {\n\t\"*\": {\n\t\ttype: \"source\"\n\t}\n};\nvar source = [\n\t\"source_vector\",\n\t\"source_raster\",\n\t\"source_raster_dem\",\n\t\"source_geojson\",\n\t\"source_video\",\n\t\"source_image\"\n];\nvar source_vector = {\n\ttype: {\n\t\trequired: true,\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tvector: {\n\t\t\t}\n\t\t}\n\t},\n\turl: {\n\t\ttype: \"string\"\n\t},\n\ttiles: {\n\t\ttype: \"array\",\n\t\tvalue: \"string\"\n\t},\n\tbounds: {\n\t\ttype: \"array\",\n\t\tvalue: \"number\",\n\t\tlength: 4,\n\t\t\"default\": [\n\t\t\t-180,\n\t\t\t-85.051129,\n\t\t\t180,\n\t\t\t85.051129\n\t\t]\n\t},\n\tscheme: {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\txyz: {\n\t\t\t},\n\t\t\ttms: {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"xyz\"\n\t},\n\tminzoom: {\n\t\ttype: \"number\",\n\t\t\"default\": 0\n\t},\n\tmaxzoom: {\n\t\ttype: \"number\",\n\t\t\"default\": 22\n\t},\n\tattribution: {\n\t\ttype: \"string\"\n\t},\n\tpromoteId: {\n\t\ttype: \"promoteId\"\n\t},\n\t\"*\": {\n\t\ttype: \"*\"\n\t}\n};\nvar source_raster = {\n\ttype: {\n\t\trequired: true,\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\traster: {\n\t\t\t}\n\t\t}\n\t},\n\turl: {\n\t\ttype: \"string\"\n\t},\n\ttiles: {\n\t\ttype: \"array\",\n\t\tvalue: \"string\"\n\t},\n\tbounds: {\n\t\ttype: \"array\",\n\t\tvalue: \"number\",\n\t\tlength: 4,\n\t\t\"default\": [\n\t\t\t-180,\n\t\t\t-85.051129,\n\t\t\t180,\n\t\t\t85.051129\n\t\t]\n\t},\n\tminzoom: {\n\t\ttype: \"number\",\n\t\t\"default\": 0\n\t},\n\tmaxzoom: {\n\t\ttype: \"number\",\n\t\t\"default\": 22\n\t},\n\ttileSize: {\n\t\ttype: \"number\",\n\t\t\"default\": 512,\n\t\tunits: \"pixels\"\n\t},\n\tscheme: {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\txyz: {\n\t\t\t},\n\t\t\ttms: {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"xyz\"\n\t},\n\tattribution: {\n\t\ttype: \"string\"\n\t},\n\t\"*\": {\n\t\ttype: \"*\"\n\t}\n};\nvar source_raster_dem = {\n\ttype: {\n\t\trequired: true,\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\t\"raster-dem\": {\n\t\t\t}\n\t\t}\n\t},\n\turl: {\n\t\ttype: \"string\"\n\t},\n\ttiles: {\n\t\ttype: \"array\",\n\t\tvalue: \"string\"\n\t},\n\tbounds: {\n\t\ttype: \"array\",\n\t\tvalue: \"number\",\n\t\tlength: 4,\n\t\t\"default\": [\n\t\t\t-180,\n\t\t\t-85.051129,\n\t\t\t180,\n\t\t\t85.051129\n\t\t]\n\t},\n\tminzoom: {\n\t\ttype: \"number\",\n\t\t\"default\": 0\n\t},\n\tmaxzoom: {\n\t\ttype: \"number\",\n\t\t\"default\": 22\n\t},\n\ttileSize: {\n\t\ttype: \"number\",\n\t\t\"default\": 512,\n\t\tunits: \"pixels\"\n\t},\n\tattribution: {\n\t\ttype: \"string\"\n\t},\n\tencoding: {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tterrarium: {\n\t\t\t},\n\t\t\tmapbox: {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"mapbox\"\n\t},\n\t\"*\": {\n\t\ttype: \"*\"\n\t}\n};\nvar source_geojson = {\n\ttype: {\n\t\trequired: true,\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tgeojson: {\n\t\t\t}\n\t\t}\n\t},\n\tdata: {\n\t\ttype: \"*\"\n\t},\n\tmaxzoom: {\n\t\ttype: \"number\",\n\t\t\"default\": 18\n\t},\n\tattribution: {\n\t\ttype: \"string\"\n\t},\n\tbuffer: {\n\t\ttype: \"number\",\n\t\t\"default\": 128,\n\t\tmaximum: 512,\n\t\tminimum: 0\n\t},\n\ttolerance: {\n\t\ttype: \"number\",\n\t\t\"default\": 0.375\n\t},\n\tcluster: {\n\t\ttype: \"boolean\",\n\t\t\"default\": false\n\t},\n\tclusterRadius: {\n\t\ttype: \"number\",\n\t\t\"default\": 50,\n\t\tminimum: 0\n\t},\n\tclusterMaxZoom: {\n\t\ttype: \"number\"\n\t},\n\tclusterProperties: {\n\t\ttype: \"*\"\n\t},\n\tlineMetrics: {\n\t\ttype: \"boolean\",\n\t\t\"default\": false\n\t},\n\tgenerateId: {\n\t\ttype: \"boolean\",\n\t\t\"default\": false\n\t},\n\tpromoteId: {\n\t\ttype: \"promoteId\"\n\t}\n};\nvar source_video = {\n\ttype: {\n\t\trequired: true,\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tvideo: {\n\t\t\t}\n\t\t}\n\t},\n\turls: {\n\t\trequired: true,\n\t\ttype: \"array\",\n\t\tvalue: \"string\"\n\t},\n\tcoordinates: {\n\t\trequired: true,\n\t\ttype: \"array\",\n\t\tlength: 4,\n\t\tvalue: {\n\t\t\ttype: \"array\",\n\t\t\tlength: 2,\n\t\t\tvalue: \"number\"\n\t\t}\n\t}\n};\nvar source_image = {\n\ttype: {\n\t\trequired: true,\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\timage: {\n\t\t\t}\n\t\t}\n\t},\n\turl: {\n\t\trequired: true,\n\t\ttype: \"string\"\n\t},\n\tcoordinates: {\n\t\trequired: true,\n\t\ttype: \"array\",\n\t\tlength: 4,\n\t\tvalue: {\n\t\t\ttype: \"array\",\n\t\t\tlength: 2,\n\t\t\tvalue: \"number\"\n\t\t}\n\t}\n};\nvar layer = {\n\tid: {\n\t\ttype: \"string\",\n\t\trequired: true\n\t},\n\ttype: {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tfill: {\n\t\t\t},\n\t\t\tline: {\n\t\t\t},\n\t\t\tsymbol: {\n\t\t\t},\n\t\t\tcircle: {\n\t\t\t},\n\t\t\theatmap: {\n\t\t\t},\n\t\t\t\"fill-extrusion\": {\n\t\t\t},\n\t\t\traster: {\n\t\t\t},\n\t\t\thillshade: {\n\t\t\t},\n\t\t\tbackground: {\n\t\t\t}\n\t\t},\n\t\trequired: true\n\t},\n\tmetadata: {\n\t\ttype: \"*\"\n\t},\n\tsource: {\n\t\ttype: \"string\"\n\t},\n\t\"source-layer\": {\n\t\ttype: \"string\"\n\t},\n\tminzoom: {\n\t\ttype: \"number\",\n\t\tminimum: 0,\n\t\tmaximum: 24\n\t},\n\tmaxzoom: {\n\t\ttype: \"number\",\n\t\tminimum: 0,\n\t\tmaximum: 24\n\t},\n\tfilter: {\n\t\ttype: \"filter\"\n\t},\n\tlayout: {\n\t\ttype: \"layout\"\n\t},\n\tpaint: {\n\t\ttype: \"paint\"\n\t}\n};\nvar layout = [\n\t\"layout_fill\",\n\t\"layout_line\",\n\t\"layout_circle\",\n\t\"layout_heatmap\",\n\t\"layout_fill-extrusion\",\n\t\"layout_symbol\",\n\t\"layout_raster\",\n\t\"layout_hillshade\",\n\t\"layout_background\"\n];\nvar layout_background = {\n\tvisibility: {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tvisible: {\n\t\t\t},\n\t\t\tnone: {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"visible\",\n\t\t\"property-type\": \"constant\"\n\t}\n};\nvar layout_fill = {\n\t\"fill-sort-key\": {\n\t\ttype: \"number\",\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\tvisibility: {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tvisible: {\n\t\t\t},\n\t\t\tnone: {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"visible\",\n\t\t\"property-type\": \"constant\"\n\t}\n};\nvar layout_circle = {\n\t\"circle-sort-key\": {\n\t\ttype: \"number\",\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\tvisibility: {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tvisible: {\n\t\t\t},\n\t\t\tnone: {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"visible\",\n\t\t\"property-type\": \"constant\"\n\t}\n};\nvar layout_heatmap = {\n\tvisibility: {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tvisible: {\n\t\t\t},\n\t\t\tnone: {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"visible\",\n\t\t\"property-type\": \"constant\"\n\t}\n};\nvar layout_line = {\n\t\"line-cap\": {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tbutt: {\n\t\t\t},\n\t\t\tround: {\n\t\t\t},\n\t\t\tsquare: {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"butt\",\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"line-join\": {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tbevel: {\n\t\t\t},\n\t\t\tround: {\n\t\t\t},\n\t\t\tmiter: {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"miter\",\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"line-miter-limit\": {\n\t\ttype: \"number\",\n\t\t\"default\": 2,\n\t\trequires: [\n\t\t\t{\n\t\t\t\t\"line-join\": \"miter\"\n\t\t\t}\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"line-round-limit\": {\n\t\ttype: \"number\",\n\t\t\"default\": 1.05,\n\t\trequires: [\n\t\t\t{\n\t\t\t\t\"line-join\": \"round\"\n\t\t\t}\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"line-sort-key\": {\n\t\ttype: \"number\",\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\tvisibility: {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tvisible: {\n\t\t\t},\n\t\t\tnone: {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"visible\",\n\t\t\"property-type\": \"constant\"\n\t}\n};\nvar layout_symbol = {\n\t\"symbol-placement\": {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tpoint: {\n\t\t\t},\n\t\t\tline: {\n\t\t\t},\n\t\t\t\"line-center\": {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"point\",\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"symbol-spacing\": {\n\t\ttype: \"number\",\n\t\t\"default\": 250,\n\t\tminimum: 1,\n\t\tunits: \"pixels\",\n\t\trequires: [\n\t\t\t{\n\t\t\t\t\"symbol-placement\": \"line\"\n\t\t\t}\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"symbol-avoid-edges\": {\n\t\ttype: \"boolean\",\n\t\t\"default\": false,\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"symbol-sort-key\": {\n\t\ttype: \"number\",\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"symbol-z-order\": {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tauto: {\n\t\t\t},\n\t\t\t\"viewport-y\": {\n\t\t\t},\n\t\t\tsource: {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"auto\",\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"icon-allow-overlap\": {\n\t\ttype: \"boolean\",\n\t\t\"default\": false,\n\t\trequires: [\n\t\t\t\"icon-image\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"icon-ignore-placement\": {\n\t\ttype: \"boolean\",\n\t\t\"default\": false,\n\t\trequires: [\n\t\t\t\"icon-image\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"icon-optional\": {\n\t\ttype: \"boolean\",\n\t\t\"default\": false,\n\t\trequires: [\n\t\t\t\"icon-image\",\n\t\t\t\"text-field\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"icon-rotation-alignment\": {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tmap: {\n\t\t\t},\n\t\t\tviewport: {\n\t\t\t},\n\t\t\tauto: {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"auto\",\n\t\trequires: [\n\t\t\t\"icon-image\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"icon-size\": {\n\t\ttype: \"number\",\n\t\t\"default\": 1,\n\t\tminimum: 0,\n\t\tunits: \"factor of the original icon size\",\n\t\trequires: [\n\t\t\t\"icon-image\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"icon-text-fit\": {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tnone: {\n\t\t\t},\n\t\t\twidth: {\n\t\t\t},\n\t\t\theight: {\n\t\t\t},\n\t\t\tboth: {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"none\",\n\t\trequires: [\n\t\t\t\"icon-image\",\n\t\t\t\"text-field\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"icon-text-fit-padding\": {\n\t\ttype: \"array\",\n\t\tvalue: \"number\",\n\t\tlength: 4,\n\t\t\"default\": [\n\t\t\t0,\n\t\t\t0,\n\t\t\t0,\n\t\t\t0\n\t\t],\n\t\tunits: \"pixels\",\n\t\trequires: [\n\t\t\t\"icon-image\",\n\t\t\t\"text-field\",\n\t\t\t{\n\t\t\t\t\"icon-text-fit\": [\n\t\t\t\t\t\"both\",\n\t\t\t\t\t\"width\",\n\t\t\t\t\t\"height\"\n\t\t\t\t]\n\t\t\t}\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"icon-image\": {\n\t\ttype: \"resolvedImage\",\n\t\ttokens: true,\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"icon-rotate\": {\n\t\ttype: \"number\",\n\t\t\"default\": 0,\n\t\tperiod: 360,\n\t\tunits: \"degrees\",\n\t\trequires: [\n\t\t\t\"icon-image\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"icon-padding\": {\n\t\ttype: \"number\",\n\t\t\"default\": 2,\n\t\tminimum: 0,\n\t\tunits: \"pixels\",\n\t\trequires: [\n\t\t\t\"icon-image\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"icon-keep-upright\": {\n\t\ttype: \"boolean\",\n\t\t\"default\": false,\n\t\trequires: [\n\t\t\t\"icon-image\",\n\t\t\t{\n\t\t\t\t\"icon-rotation-alignment\": \"map\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"symbol-placement\": [\n\t\t\t\t\t\"line\",\n\t\t\t\t\t\"line-center\"\n\t\t\t\t]\n\t\t\t}\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"icon-offset\": {\n\t\ttype: \"array\",\n\t\tvalue: \"number\",\n\t\tlength: 2,\n\t\t\"default\": [\n\t\t\t0,\n\t\t\t0\n\t\t],\n\t\trequires: [\n\t\t\t\"icon-image\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"icon-anchor\": {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tcenter: {\n\t\t\t},\n\t\t\tleft: {\n\t\t\t},\n\t\t\tright: {\n\t\t\t},\n\t\t\ttop: {\n\t\t\t},\n\t\t\tbottom: {\n\t\t\t},\n\t\t\t\"top-left\": {\n\t\t\t},\n\t\t\t\"top-right\": {\n\t\t\t},\n\t\t\t\"bottom-left\": {\n\t\t\t},\n\t\t\t\"bottom-right\": {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"center\",\n\t\trequires: [\n\t\t\t\"icon-image\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"icon-pitch-alignment\": {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tmap: {\n\t\t\t},\n\t\t\tviewport: {\n\t\t\t},\n\t\t\tauto: {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"auto\",\n\t\trequires: [\n\t\t\t\"icon-image\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"text-pitch-alignment\": {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tmap: {\n\t\t\t},\n\t\t\tviewport: {\n\t\t\t},\n\t\t\tauto: {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"auto\",\n\t\trequires: [\n\t\t\t\"text-field\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"text-rotation-alignment\": {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tmap: {\n\t\t\t},\n\t\t\tviewport: {\n\t\t\t},\n\t\t\tauto: {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"auto\",\n\t\trequires: [\n\t\t\t\"text-field\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"text-field\": {\n\t\ttype: \"formatted\",\n\t\t\"default\": \"\",\n\t\ttokens: true,\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"text-font\": {\n\t\ttype: \"array\",\n\t\tvalue: \"string\",\n\t\t\"default\": [\n\t\t\t\"Open Sans Regular\",\n\t\t\t\"Arial Unicode MS Regular\"\n\t\t],\n\t\trequires: [\n\t\t\t\"text-field\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"text-size\": {\n\t\ttype: \"number\",\n\t\t\"default\": 16,\n\t\tminimum: 0,\n\t\tunits: \"pixels\",\n\t\trequires: [\n\t\t\t\"text-field\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"text-max-width\": {\n\t\ttype: \"number\",\n\t\t\"default\": 10,\n\t\tminimum: 0,\n\t\tunits: \"ems\",\n\t\trequires: [\n\t\t\t\"text-field\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"text-line-height\": {\n\t\ttype: \"number\",\n\t\t\"default\": 1.2,\n\t\tunits: \"ems\",\n\t\trequires: [\n\t\t\t\"text-field\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"text-letter-spacing\": {\n\t\ttype: \"number\",\n\t\t\"default\": 0,\n\t\tunits: \"ems\",\n\t\trequires: [\n\t\t\t\"text-field\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"text-justify\": {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tauto: {\n\t\t\t},\n\t\t\tleft: {\n\t\t\t},\n\t\t\tcenter: {\n\t\t\t},\n\t\t\tright: {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"center\",\n\t\trequires: [\n\t\t\t\"text-field\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"text-radial-offset\": {\n\t\ttype: \"number\",\n\t\tunits: \"ems\",\n\t\t\"default\": 0,\n\t\trequires: [\n\t\t\t\"text-field\"\n\t\t],\n\t\t\"property-type\": \"data-driven\",\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\"\n\t\t\t]\n\t\t}\n\t},\n\t\"text-variable-anchor\": {\n\t\ttype: \"array\",\n\t\tvalue: \"enum\",\n\t\tvalues: {\n\t\t\tcenter: {\n\t\t\t},\n\t\t\tleft: {\n\t\t\t},\n\t\t\tright: {\n\t\t\t},\n\t\t\ttop: {\n\t\t\t},\n\t\t\tbottom: {\n\t\t\t},\n\t\t\t\"top-left\": {\n\t\t\t},\n\t\t\t\"top-right\": {\n\t\t\t},\n\t\t\t\"bottom-left\": {\n\t\t\t},\n\t\t\t\"bottom-right\": {\n\t\t\t}\n\t\t},\n\t\trequires: [\n\t\t\t\"text-field\",\n\t\t\t{\n\t\t\t\t\"symbol-placement\": [\n\t\t\t\t\t\"point\"\n\t\t\t\t]\n\t\t\t}\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"text-anchor\": {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tcenter: {\n\t\t\t},\n\t\t\tleft: {\n\t\t\t},\n\t\t\tright: {\n\t\t\t},\n\t\t\ttop: {\n\t\t\t},\n\t\t\tbottom: {\n\t\t\t},\n\t\t\t\"top-left\": {\n\t\t\t},\n\t\t\t\"top-right\": {\n\t\t\t},\n\t\t\t\"bottom-left\": {\n\t\t\t},\n\t\t\t\"bottom-right\": {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"center\",\n\t\trequires: [\n\t\t\t\"text-field\",\n\t\t\t{\n\t\t\t\t\"!\": \"text-variable-anchor\"\n\t\t\t}\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"text-max-angle\": {\n\t\ttype: \"number\",\n\t\t\"default\": 45,\n\t\tunits: \"degrees\",\n\t\trequires: [\n\t\t\t\"text-field\",\n\t\t\t{\n\t\t\t\t\"symbol-placement\": [\n\t\t\t\t\t\"line\",\n\t\t\t\t\t\"line-center\"\n\t\t\t\t]\n\t\t\t}\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"text-writing-mode\": {\n\t\ttype: \"array\",\n\t\tvalue: \"enum\",\n\t\tvalues: {\n\t\t\thorizontal: {\n\t\t\t},\n\t\t\tvertical: {\n\t\t\t}\n\t\t},\n\t\trequires: [\n\t\t\t\"text-field\",\n\t\t\t{\n\t\t\t\t\"symbol-placement\": [\n\t\t\t\t\t\"point\"\n\t\t\t\t]\n\t\t\t}\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"text-rotate\": {\n\t\ttype: \"number\",\n\t\t\"default\": 0,\n\t\tperiod: 360,\n\t\tunits: \"degrees\",\n\t\trequires: [\n\t\t\t\"text-field\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"text-padding\": {\n\t\ttype: \"number\",\n\t\t\"default\": 2,\n\t\tminimum: 0,\n\t\tunits: \"pixels\",\n\t\trequires: [\n\t\t\t\"text-field\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"text-keep-upright\": {\n\t\ttype: \"boolean\",\n\t\t\"default\": true,\n\t\trequires: [\n\t\t\t\"text-field\",\n\t\t\t{\n\t\t\t\t\"text-rotation-alignment\": \"map\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"symbol-placement\": [\n\t\t\t\t\t\"line\",\n\t\t\t\t\t\"line-center\"\n\t\t\t\t]\n\t\t\t}\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"text-transform\": {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tnone: {\n\t\t\t},\n\t\t\tuppercase: {\n\t\t\t},\n\t\t\tlowercase: {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"none\",\n\t\trequires: [\n\t\t\t\"text-field\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"text-offset\": {\n\t\ttype: \"array\",\n\t\tvalue: \"number\",\n\t\tunits: \"ems\",\n\t\tlength: 2,\n\t\t\"default\": [\n\t\t\t0,\n\t\t\t0\n\t\t],\n\t\trequires: [\n\t\t\t\"text-field\",\n\t\t\t{\n\t\t\t\t\"!\": \"text-radial-offset\"\n\t\t\t}\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"text-allow-overlap\": {\n\t\ttype: \"boolean\",\n\t\t\"default\": false,\n\t\trequires: [\n\t\t\t\"text-field\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"text-ignore-placement\": {\n\t\ttype: \"boolean\",\n\t\t\"default\": false,\n\t\trequires: [\n\t\t\t\"text-field\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"text-optional\": {\n\t\ttype: \"boolean\",\n\t\t\"default\": false,\n\t\trequires: [\n\t\t\t\"text-field\",\n\t\t\t\"icon-image\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\tvisibility: {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tvisible: {\n\t\t\t},\n\t\t\tnone: {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"visible\",\n\t\t\"property-type\": \"constant\"\n\t}\n};\nvar layout_raster = {\n\tvisibility: {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tvisible: {\n\t\t\t},\n\t\t\tnone: {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"visible\",\n\t\t\"property-type\": \"constant\"\n\t}\n};\nvar layout_hillshade = {\n\tvisibility: {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tvisible: {\n\t\t\t},\n\t\t\tnone: {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"visible\",\n\t\t\"property-type\": \"constant\"\n\t}\n};\nvar filter = {\n\ttype: \"array\",\n\tvalue: \"*\"\n};\nvar filter_operator = {\n\ttype: \"enum\",\n\tvalues: {\n\t\t\"==\": {\n\t\t},\n\t\t\"!=\": {\n\t\t},\n\t\t\">\": {\n\t\t},\n\t\t\">=\": {\n\t\t},\n\t\t\"<\": {\n\t\t},\n\t\t\"<=\": {\n\t\t},\n\t\t\"in\": {\n\t\t},\n\t\t\"!in\": {\n\t\t},\n\t\tall: {\n\t\t},\n\t\tany: {\n\t\t},\n\t\tnone: {\n\t\t},\n\t\thas: {\n\t\t},\n\t\t\"!has\": {\n\t\t},\n\t\twithin: {\n\t\t}\n\t}\n};\nvar geometry_type = {\n\ttype: \"enum\",\n\tvalues: {\n\t\tPoint: {\n\t\t},\n\t\tLineString: {\n\t\t},\n\t\tPolygon: {\n\t\t}\n\t}\n};\nvar function_stop = {\n\ttype: \"array\",\n\tminimum: 0,\n\tmaximum: 24,\n\tvalue: [\n\t\t\"number\",\n\t\t\"color\"\n\t],\n\tlength: 2\n};\nvar expression = {\n\ttype: \"array\",\n\tvalue: \"*\",\n\tminimum: 1\n};\nvar expression_name = {\n\ttype: \"enum\",\n\tvalues: {\n\t\t\"let\": {\n\t\t\tgroup: \"Variable binding\"\n\t\t},\n\t\t\"var\": {\n\t\t\tgroup: \"Variable binding\"\n\t\t},\n\t\tliteral: {\n\t\t\tgroup: \"Types\"\n\t\t},\n\t\tarray: {\n\t\t\tgroup: \"Types\"\n\t\t},\n\t\tat: {\n\t\t\tgroup: \"Lookup\"\n\t\t},\n\t\t\"in\": {\n\t\t\tgroup: \"Lookup\"\n\t\t},\n\t\t\"index-of\": {\n\t\t\tgroup: \"Lookup\"\n\t\t},\n\t\tslice: {\n\t\t\tgroup: \"Lookup\"\n\t\t},\n\t\t\"case\": {\n\t\t\tgroup: \"Decision\"\n\t\t},\n\t\tmatch: {\n\t\t\tgroup: \"Decision\"\n\t\t},\n\t\tcoalesce: {\n\t\t\tgroup: \"Decision\"\n\t\t},\n\t\tstep: {\n\t\t\tgroup: \"Ramps, scales, curves\"\n\t\t},\n\t\tinterpolate: {\n\t\t\tgroup: \"Ramps, scales, curves\"\n\t\t},\n\t\t\"interpolate-hcl\": {\n\t\t\tgroup: \"Ramps, scales, curves\"\n\t\t},\n\t\t\"interpolate-lab\": {\n\t\t\tgroup: \"Ramps, scales, curves\"\n\t\t},\n\t\tln2: {\n\t\t\tgroup: \"Math\"\n\t\t},\n\t\tpi: {\n\t\t\tgroup: \"Math\"\n\t\t},\n\t\te: {\n\t\t\tgroup: \"Math\"\n\t\t},\n\t\t\"typeof\": {\n\t\t\tgroup: \"Types\"\n\t\t},\n\t\tstring: {\n\t\t\tgroup: \"Types\"\n\t\t},\n\t\tnumber: {\n\t\t\tgroup: \"Types\"\n\t\t},\n\t\tboolean: {\n\t\t\tgroup: \"Types\"\n\t\t},\n\t\tobject: {\n\t\t\tgroup: \"Types\"\n\t\t},\n\t\tcollator: {\n\t\t\tgroup: \"Types\"\n\t\t},\n\t\tformat: {\n\t\t\tgroup: \"Types\"\n\t\t},\n\t\timage: {\n\t\t\tgroup: \"Types\"\n\t\t},\n\t\t\"number-format\": {\n\t\t\tgroup: \"Types\"\n\t\t},\n\t\t\"to-string\": {\n\t\t\tgroup: \"Types\"\n\t\t},\n\t\t\"to-number\": {\n\t\t\tgroup: \"Types\"\n\t\t},\n\t\t\"to-boolean\": {\n\t\t\tgroup: \"Types\"\n\t\t},\n\t\t\"to-rgba\": {\n\t\t\tgroup: \"Color\"\n\t\t},\n\t\t\"to-color\": {\n\t\t\tgroup: \"Types\"\n\t\t},\n\t\trgb: {\n\t\t\tgroup: \"Color\"\n\t\t},\n\t\trgba: {\n\t\t\tgroup: \"Color\"\n\t\t},\n\t\tget: {\n\t\t\tgroup: \"Lookup\"\n\t\t},\n\t\thas: {\n\t\t\tgroup: \"Lookup\"\n\t\t},\n\t\tlength: {\n\t\t\tgroup: \"Lookup\"\n\t\t},\n\t\tproperties: {\n\t\t\tgroup: \"Feature data\"\n\t\t},\n\t\t\"feature-state\": {\n\t\t\tgroup: \"Feature data\"\n\t\t},\n\t\t\"geometry-type\": {\n\t\t\tgroup: \"Feature data\"\n\t\t},\n\t\tid: {\n\t\t\tgroup: \"Feature data\"\n\t\t},\n\t\tzoom: {\n\t\t\tgroup: \"Zoom\"\n\t\t},\n\t\t\"heatmap-density\": {\n\t\t\tgroup: \"Heatmap\"\n\t\t},\n\t\t\"line-progress\": {\n\t\t\tgroup: \"Feature data\"\n\t\t},\n\t\taccumulated: {\n\t\t\tgroup: \"Feature data\"\n\t\t},\n\t\t\"+\": {\n\t\t\tgroup: \"Math\"\n\t\t},\n\t\t\"*\": {\n\t\t\tgroup: \"Math\"\n\t\t},\n\t\t\"-\": {\n\t\t\tgroup: \"Math\"\n\t\t},\n\t\t\"/\": {\n\t\t\tgroup: \"Math\"\n\t\t},\n\t\t\"%\": {\n\t\t\tgroup: \"Math\"\n\t\t},\n\t\t\"^\": {\n\t\t\tgroup: \"Math\"\n\t\t},\n\t\tsqrt: {\n\t\t\tgroup: \"Math\"\n\t\t},\n\t\tlog10: {\n\t\t\tgroup: \"Math\"\n\t\t},\n\t\tln: {\n\t\t\tgroup: \"Math\"\n\t\t},\n\t\tlog2: {\n\t\t\tgroup: \"Math\"\n\t\t},\n\t\tsin: {\n\t\t\tgroup: \"Math\"\n\t\t},\n\t\tcos: {\n\t\t\tgroup: \"Math\"\n\t\t},\n\t\ttan: {\n\t\t\tgroup: \"Math\"\n\t\t},\n\t\tasin: {\n\t\t\tgroup: \"Math\"\n\t\t},\n\t\tacos: {\n\t\t\tgroup: \"Math\"\n\t\t},\n\t\tatan: {\n\t\t\tgroup: \"Math\"\n\t\t},\n\t\tmin: {\n\t\t\tgroup: \"Math\"\n\t\t},\n\t\tmax: {\n\t\t\tgroup: \"Math\"\n\t\t},\n\t\tround: {\n\t\t\tgroup: \"Math\"\n\t\t},\n\t\tabs: {\n\t\t\tgroup: \"Math\"\n\t\t},\n\t\tceil: {\n\t\t\tgroup: \"Math\"\n\t\t},\n\t\tfloor: {\n\t\t\tgroup: \"Math\"\n\t\t},\n\t\tdistance: {\n\t\t\tgroup: \"Math\"\n\t\t},\n\t\t\"==\": {\n\t\t\tgroup: \"Decision\"\n\t\t},\n\t\t\"!=\": {\n\t\t\tgroup: \"Decision\"\n\t\t},\n\t\t\">\": {\n\t\t\tgroup: \"Decision\"\n\t\t},\n\t\t\"<\": {\n\t\t\tgroup: \"Decision\"\n\t\t},\n\t\t\">=\": {\n\t\t\tgroup: \"Decision\"\n\t\t},\n\t\t\"<=\": {\n\t\t\tgroup: \"Decision\"\n\t\t},\n\t\tall: {\n\t\t\tgroup: \"Decision\"\n\t\t},\n\t\tany: {\n\t\t\tgroup: \"Decision\"\n\t\t},\n\t\t\"!\": {\n\t\t\tgroup: \"Decision\"\n\t\t},\n\t\twithin: {\n\t\t\tgroup: \"Decision\"\n\t\t},\n\t\t\"is-supported-script\": {\n\t\t\tgroup: \"String\"\n\t\t},\n\t\tupcase: {\n\t\t\tgroup: \"String\"\n\t\t},\n\t\tdowncase: {\n\t\t\tgroup: \"String\"\n\t\t},\n\t\tconcat: {\n\t\t\tgroup: \"String\"\n\t\t},\n\t\t\"resolved-locale\": {\n\t\t\tgroup: \"String\"\n\t\t}\n\t}\n};\nvar light = {\n\tanchor: {\n\t\ttype: \"enum\",\n\t\t\"default\": \"viewport\",\n\t\tvalues: {\n\t\t\tmap: {\n\t\t\t},\n\t\t\tviewport: {\n\t\t\t}\n\t\t},\n\t\t\"property-type\": \"data-constant\",\n\t\ttransition: false,\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t}\n\t},\n\tposition: {\n\t\ttype: \"array\",\n\t\t\"default\": [\n\t\t\t1.15,\n\t\t\t210,\n\t\t\t30\n\t\t],\n\t\tlength: 3,\n\t\tvalue: \"number\",\n\t\t\"property-type\": \"data-constant\",\n\t\ttransition: true,\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t}\n\t},\n\tcolor: {\n\t\ttype: \"color\",\n\t\t\"property-type\": \"data-constant\",\n\t\t\"default\": \"#ffffff\",\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\ttransition: true\n\t},\n\tintensity: {\n\t\ttype: \"number\",\n\t\t\"property-type\": \"data-constant\",\n\t\t\"default\": 0.5,\n\t\tminimum: 0,\n\t\tmaximum: 1,\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\ttransition: true\n\t}\n};\nvar paint = [\n\t\"paint_fill\",\n\t\"paint_line\",\n\t\"paint_circle\",\n\t\"paint_heatmap\",\n\t\"paint_fill-extrusion\",\n\t\"paint_symbol\",\n\t\"paint_raster\",\n\t\"paint_hillshade\",\n\t\"paint_background\"\n];\nvar paint_fill = {\n\t\"fill-antialias\": {\n\t\ttype: \"boolean\",\n\t\t\"default\": true,\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"fill-opacity\": {\n\t\ttype: \"number\",\n\t\t\"default\": 1,\n\t\tminimum: 0,\n\t\tmaximum: 1,\n\t\ttransition: true,\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\",\n\t\t\t\t\"feature-state\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"fill-color\": {\n\t\ttype: \"color\",\n\t\t\"default\": \"#000000\",\n\t\ttransition: true,\n\t\trequires: [\n\t\t\t{\n\t\t\t\t\"!\": \"fill-pattern\"\n\t\t\t}\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\",\n\t\t\t\t\"feature-state\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"fill-outline-color\": {\n\t\ttype: \"color\",\n\t\ttransition: true,\n\t\trequires: [\n\t\t\t{\n\t\t\t\t\"!\": \"fill-pattern\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"fill-antialias\": true\n\t\t\t}\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\",\n\t\t\t\t\"feature-state\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"fill-translate\": {\n\t\ttype: \"array\",\n\t\tvalue: \"number\",\n\t\tlength: 2,\n\t\t\"default\": [\n\t\t\t0,\n\t\t\t0\n\t\t],\n\t\ttransition: true,\n\t\tunits: \"pixels\",\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"fill-translate-anchor\": {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tmap: {\n\t\t\t},\n\t\t\tviewport: {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"map\",\n\t\trequires: [\n\t\t\t\"fill-translate\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"fill-pattern\": {\n\t\ttype: \"resolvedImage\",\n\t\ttransition: true,\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"cross-faded-data-driven\"\n\t}\n};\nvar paint_line = {\n\t\"line-opacity\": {\n\t\ttype: \"number\",\n\t\t\"default\": 1,\n\t\tminimum: 0,\n\t\tmaximum: 1,\n\t\ttransition: true,\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\",\n\t\t\t\t\"feature-state\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"line-color\": {\n\t\ttype: \"color\",\n\t\t\"default\": \"#000000\",\n\t\ttransition: true,\n\t\trequires: [\n\t\t\t{\n\t\t\t\t\"!\": \"line-pattern\"\n\t\t\t}\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\",\n\t\t\t\t\"feature-state\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"line-translate\": {\n\t\ttype: \"array\",\n\t\tvalue: \"number\",\n\t\tlength: 2,\n\t\t\"default\": [\n\t\t\t0,\n\t\t\t0\n\t\t],\n\t\ttransition: true,\n\t\tunits: \"pixels\",\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"line-translate-anchor\": {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tmap: {\n\t\t\t},\n\t\t\tviewport: {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"map\",\n\t\trequires: [\n\t\t\t\"line-translate\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"line-width\": {\n\t\ttype: \"number\",\n\t\t\"default\": 1,\n\t\tminimum: 0,\n\t\ttransition: true,\n\t\tunits: \"pixels\",\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\",\n\t\t\t\t\"feature-state\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"line-gap-width\": {\n\t\ttype: \"number\",\n\t\t\"default\": 0,\n\t\tminimum: 0,\n\t\ttransition: true,\n\t\tunits: \"pixels\",\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\",\n\t\t\t\t\"feature-state\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"line-offset\": {\n\t\ttype: \"number\",\n\t\t\"default\": 0,\n\t\ttransition: true,\n\t\tunits: \"pixels\",\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\",\n\t\t\t\t\"feature-state\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"line-blur\": {\n\t\ttype: \"number\",\n\t\t\"default\": 0,\n\t\tminimum: 0,\n\t\ttransition: true,\n\t\tunits: \"pixels\",\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\",\n\t\t\t\t\"feature-state\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"line-dasharray\": {\n\t\ttype: \"array\",\n\t\tvalue: \"number\",\n\t\tminimum: 0,\n\t\ttransition: true,\n\t\tunits: \"line widths\",\n\t\trequires: [\n\t\t\t{\n\t\t\t\t\"!\": \"line-pattern\"\n\t\t\t}\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"cross-faded\"\n\t},\n\t\"line-pattern\": {\n\t\ttype: \"resolvedImage\",\n\t\ttransition: true,\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"cross-faded-data-driven\"\n\t},\n\t\"line-gradient\": {\n\t\ttype: \"color\",\n\t\ttransition: false,\n\t\trequires: [\n\t\t\t{\n\t\t\t\t\"!\": \"line-dasharray\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"!\": \"line-pattern\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tsource: \"geojson\",\n\t\t\t\thas: {\n\t\t\t\t\tlineMetrics: true\n\t\t\t\t}\n\t\t\t}\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"line-progress\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"color-ramp\"\n\t}\n};\nvar paint_circle = {\n\t\"circle-radius\": {\n\t\ttype: \"number\",\n\t\t\"default\": 5,\n\t\tminimum: 0,\n\t\ttransition: true,\n\t\tunits: \"pixels\",\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\",\n\t\t\t\t\"feature-state\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"circle-color\": {\n\t\ttype: \"color\",\n\t\t\"default\": \"#000000\",\n\t\ttransition: true,\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\",\n\t\t\t\t\"feature-state\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"circle-blur\": {\n\t\ttype: \"number\",\n\t\t\"default\": 0,\n\t\ttransition: true,\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\",\n\t\t\t\t\"feature-state\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"circle-opacity\": {\n\t\ttype: \"number\",\n\t\t\"default\": 1,\n\t\tminimum: 0,\n\t\tmaximum: 1,\n\t\ttransition: true,\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\",\n\t\t\t\t\"feature-state\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"circle-translate\": {\n\t\ttype: \"array\",\n\t\tvalue: \"number\",\n\t\tlength: 2,\n\t\t\"default\": [\n\t\t\t0,\n\t\t\t0\n\t\t],\n\t\ttransition: true,\n\t\tunits: \"pixels\",\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"circle-translate-anchor\": {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tmap: {\n\t\t\t},\n\t\t\tviewport: {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"map\",\n\t\trequires: [\n\t\t\t\"circle-translate\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"circle-pitch-scale\": {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tmap: {\n\t\t\t},\n\t\t\tviewport: {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"map\",\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"circle-pitch-alignment\": {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tmap: {\n\t\t\t},\n\t\t\tviewport: {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"viewport\",\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"circle-stroke-width\": {\n\t\ttype: \"number\",\n\t\t\"default\": 0,\n\t\tminimum: 0,\n\t\ttransition: true,\n\t\tunits: \"pixels\",\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\",\n\t\t\t\t\"feature-state\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"circle-stroke-color\": {\n\t\ttype: \"color\",\n\t\t\"default\": \"#000000\",\n\t\ttransition: true,\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\",\n\t\t\t\t\"feature-state\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"circle-stroke-opacity\": {\n\t\ttype: \"number\",\n\t\t\"default\": 1,\n\t\tminimum: 0,\n\t\tmaximum: 1,\n\t\ttransition: true,\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\",\n\t\t\t\t\"feature-state\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t}\n};\nvar paint_heatmap = {\n\t\"heatmap-radius\": {\n\t\ttype: \"number\",\n\t\t\"default\": 30,\n\t\tminimum: 1,\n\t\ttransition: true,\n\t\tunits: \"pixels\",\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\",\n\t\t\t\t\"feature-state\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"heatmap-weight\": {\n\t\ttype: \"number\",\n\t\t\"default\": 1,\n\t\tminimum: 0,\n\t\ttransition: false,\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\",\n\t\t\t\t\"feature-state\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"heatmap-intensity\": {\n\t\ttype: \"number\",\n\t\t\"default\": 1,\n\t\tminimum: 0,\n\t\ttransition: true,\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"heatmap-color\": {\n\t\ttype: \"color\",\n\t\t\"default\": [\n\t\t\t\"interpolate\",\n\t\t\t[\n\t\t\t\t\"linear\"\n\t\t\t],\n\t\t\t[\n\t\t\t\t\"heatmap-density\"\n\t\t\t],\n\t\t\t0,\n\t\t\t\"rgba(0, 0, 255, 0)\",\n\t\t\t0.1,\n\t\t\t\"royalblue\",\n\t\t\t0.3,\n\t\t\t\"cyan\",\n\t\t\t0.5,\n\t\t\t\"lime\",\n\t\t\t0.7,\n\t\t\t\"yellow\",\n\t\t\t1,\n\t\t\t\"red\"\n\t\t],\n\t\ttransition: false,\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"heatmap-density\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"color-ramp\"\n\t},\n\t\"heatmap-opacity\": {\n\t\ttype: \"number\",\n\t\t\"default\": 1,\n\t\tminimum: 0,\n\t\tmaximum: 1,\n\t\ttransition: true,\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t}\n};\nvar paint_symbol = {\n\t\"icon-opacity\": {\n\t\ttype: \"number\",\n\t\t\"default\": 1,\n\t\tminimum: 0,\n\t\tmaximum: 1,\n\t\ttransition: true,\n\t\trequires: [\n\t\t\t\"icon-image\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\",\n\t\t\t\t\"feature-state\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"icon-color\": {\n\t\ttype: \"color\",\n\t\t\"default\": \"#000000\",\n\t\ttransition: true,\n\t\trequires: [\n\t\t\t\"icon-image\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\",\n\t\t\t\t\"feature-state\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"icon-halo-color\": {\n\t\ttype: \"color\",\n\t\t\"default\": \"rgba(0, 0, 0, 0)\",\n\t\ttransition: true,\n\t\trequires: [\n\t\t\t\"icon-image\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\",\n\t\t\t\t\"feature-state\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"icon-halo-width\": {\n\t\ttype: \"number\",\n\t\t\"default\": 0,\n\t\tminimum: 0,\n\t\ttransition: true,\n\t\tunits: \"pixels\",\n\t\trequires: [\n\t\t\t\"icon-image\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\",\n\t\t\t\t\"feature-state\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"icon-halo-blur\": {\n\t\ttype: \"number\",\n\t\t\"default\": 0,\n\t\tminimum: 0,\n\t\ttransition: true,\n\t\tunits: \"pixels\",\n\t\trequires: [\n\t\t\t\"icon-image\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\",\n\t\t\t\t\"feature-state\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"icon-translate\": {\n\t\ttype: \"array\",\n\t\tvalue: \"number\",\n\t\tlength: 2,\n\t\t\"default\": [\n\t\t\t0,\n\t\t\t0\n\t\t],\n\t\ttransition: true,\n\t\tunits: \"pixels\",\n\t\trequires: [\n\t\t\t\"icon-image\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"icon-translate-anchor\": {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tmap: {\n\t\t\t},\n\t\t\tviewport: {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"map\",\n\t\trequires: [\n\t\t\t\"icon-image\",\n\t\t\t\"icon-translate\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"text-opacity\": {\n\t\ttype: \"number\",\n\t\t\"default\": 1,\n\t\tminimum: 0,\n\t\tmaximum: 1,\n\t\ttransition: true,\n\t\trequires: [\n\t\t\t\"text-field\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\",\n\t\t\t\t\"feature-state\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"text-color\": {\n\t\ttype: \"color\",\n\t\t\"default\": \"#000000\",\n\t\ttransition: true,\n\t\toverridable: true,\n\t\trequires: [\n\t\t\t\"text-field\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\",\n\t\t\t\t\"feature-state\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"text-halo-color\": {\n\t\ttype: \"color\",\n\t\t\"default\": \"rgba(0, 0, 0, 0)\",\n\t\ttransition: true,\n\t\trequires: [\n\t\t\t\"text-field\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\",\n\t\t\t\t\"feature-state\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"text-halo-width\": {\n\t\ttype: \"number\",\n\t\t\"default\": 0,\n\t\tminimum: 0,\n\t\ttransition: true,\n\t\tunits: \"pixels\",\n\t\trequires: [\n\t\t\t\"text-field\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\",\n\t\t\t\t\"feature-state\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"text-halo-blur\": {\n\t\ttype: \"number\",\n\t\t\"default\": 0,\n\t\tminimum: 0,\n\t\ttransition: true,\n\t\tunits: \"pixels\",\n\t\trequires: [\n\t\t\t\"text-field\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\",\n\t\t\t\t\"feature-state\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"text-translate\": {\n\t\ttype: \"array\",\n\t\tvalue: \"number\",\n\t\tlength: 2,\n\t\t\"default\": [\n\t\t\t0,\n\t\t\t0\n\t\t],\n\t\ttransition: true,\n\t\tunits: \"pixels\",\n\t\trequires: [\n\t\t\t\"text-field\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"text-translate-anchor\": {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tmap: {\n\t\t\t},\n\t\t\tviewport: {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"map\",\n\t\trequires: [\n\t\t\t\"text-field\",\n\t\t\t\"text-translate\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t}\n};\nvar paint_raster = {\n\t\"raster-opacity\": {\n\t\ttype: \"number\",\n\t\t\"default\": 1,\n\t\tminimum: 0,\n\t\tmaximum: 1,\n\t\ttransition: true,\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"raster-hue-rotate\": {\n\t\ttype: \"number\",\n\t\t\"default\": 0,\n\t\tperiod: 360,\n\t\ttransition: true,\n\t\tunits: \"degrees\",\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"raster-brightness-min\": {\n\t\ttype: \"number\",\n\t\t\"default\": 0,\n\t\tminimum: 0,\n\t\tmaximum: 1,\n\t\ttransition: true,\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"raster-brightness-max\": {\n\t\ttype: \"number\",\n\t\t\"default\": 1,\n\t\tminimum: 0,\n\t\tmaximum: 1,\n\t\ttransition: true,\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"raster-saturation\": {\n\t\ttype: \"number\",\n\t\t\"default\": 0,\n\t\tminimum: -1,\n\t\tmaximum: 1,\n\t\ttransition: true,\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"raster-contrast\": {\n\t\ttype: \"number\",\n\t\t\"default\": 0,\n\t\tminimum: -1,\n\t\tmaximum: 1,\n\t\ttransition: true,\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"raster-resampling\": {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tlinear: {\n\t\t\t},\n\t\t\tnearest: {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"linear\",\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"raster-fade-duration\": {\n\t\ttype: \"number\",\n\t\t\"default\": 300,\n\t\tminimum: 0,\n\t\ttransition: false,\n\t\tunits: \"milliseconds\",\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t}\n};\nvar paint_hillshade = {\n\t\"hillshade-illumination-direction\": {\n\t\ttype: \"number\",\n\t\t\"default\": 335,\n\t\tminimum: 0,\n\t\tmaximum: 359,\n\t\ttransition: false,\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"hillshade-illumination-anchor\": {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tmap: {\n\t\t\t},\n\t\t\tviewport: {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"viewport\",\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"hillshade-exaggeration\": {\n\t\ttype: \"number\",\n\t\t\"default\": 0.5,\n\t\tminimum: 0,\n\t\tmaximum: 1,\n\t\ttransition: true,\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"hillshade-shadow-color\": {\n\t\ttype: \"color\",\n\t\t\"default\": \"#000000\",\n\t\ttransition: true,\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"hillshade-highlight-color\": {\n\t\ttype: \"color\",\n\t\t\"default\": \"#FFFFFF\",\n\t\ttransition: true,\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"hillshade-accent-color\": {\n\t\ttype: \"color\",\n\t\t\"default\": \"#000000\",\n\t\ttransition: true,\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t}\n};\nvar paint_background = {\n\t\"background-color\": {\n\t\ttype: \"color\",\n\t\t\"default\": \"#000000\",\n\t\ttransition: true,\n\t\trequires: [\n\t\t\t{\n\t\t\t\t\"!\": \"background-pattern\"\n\t\t\t}\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"background-pattern\": {\n\t\ttype: \"resolvedImage\",\n\t\ttransition: true,\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"cross-faded\"\n\t},\n\t\"background-opacity\": {\n\t\ttype: \"number\",\n\t\t\"default\": 1,\n\t\tminimum: 0,\n\t\tmaximum: 1,\n\t\ttransition: true,\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t}\n};\nvar transition = {\n\tduration: {\n\t\ttype: \"number\",\n\t\t\"default\": 300,\n\t\tminimum: 0,\n\t\tunits: \"milliseconds\"\n\t},\n\tdelay: {\n\t\ttype: \"number\",\n\t\t\"default\": 0,\n\t\tminimum: 0,\n\t\tunits: \"milliseconds\"\n\t}\n};\nvar promoteId = {\n\t\"*\": {\n\t\ttype: \"string\"\n\t}\n};\nvar spec = {\n\t$version: $version,\n\t$root: $root,\n\tsources: sources,\n\tsource: source,\n\tsource_vector: source_vector,\n\tsource_raster: source_raster,\n\tsource_raster_dem: source_raster_dem,\n\tsource_geojson: source_geojson,\n\tsource_video: source_video,\n\tsource_image: source_image,\n\tlayer: layer,\n\tlayout: layout,\n\tlayout_background: layout_background,\n\tlayout_fill: layout_fill,\n\tlayout_circle: layout_circle,\n\tlayout_heatmap: layout_heatmap,\n\t\"layout_fill-extrusion\": {\n\tvisibility: {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tvisible: {\n\t\t\t},\n\t\t\tnone: {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"visible\",\n\t\t\"property-type\": \"constant\"\n\t}\n},\n\tlayout_line: layout_line,\n\tlayout_symbol: layout_symbol,\n\tlayout_raster: layout_raster,\n\tlayout_hillshade: layout_hillshade,\n\tfilter: filter,\n\tfilter_operator: filter_operator,\n\tgeometry_type: geometry_type,\n\t\"function\": {\n\texpression: {\n\t\ttype: \"expression\"\n\t},\n\tstops: {\n\t\ttype: \"array\",\n\t\tvalue: \"function_stop\"\n\t},\n\tbase: {\n\t\ttype: \"number\",\n\t\t\"default\": 1,\n\t\tminimum: 0\n\t},\n\tproperty: {\n\t\ttype: \"string\",\n\t\t\"default\": \"$zoom\"\n\t},\n\ttype: {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tidentity: {\n\t\t\t},\n\t\t\texponential: {\n\t\t\t},\n\t\t\tinterval: {\n\t\t\t},\n\t\t\tcategorical: {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"exponential\"\n\t},\n\tcolorSpace: {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\trgb: {\n\t\t\t},\n\t\t\tlab: {\n\t\t\t},\n\t\t\thcl: {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"rgb\"\n\t},\n\t\"default\": {\n\t\ttype: \"*\",\n\t\trequired: false\n\t}\n},\n\tfunction_stop: function_stop,\n\texpression: expression,\n\texpression_name: expression_name,\n\tlight: light,\n\tpaint: paint,\n\tpaint_fill: paint_fill,\n\t\"paint_fill-extrusion\": {\n\t\"fill-extrusion-opacity\": {\n\t\ttype: \"number\",\n\t\t\"default\": 1,\n\t\tminimum: 0,\n\t\tmaximum: 1,\n\t\ttransition: true,\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"fill-extrusion-color\": {\n\t\ttype: \"color\",\n\t\t\"default\": \"#000000\",\n\t\ttransition: true,\n\t\trequires: [\n\t\t\t{\n\t\t\t\t\"!\": \"fill-extrusion-pattern\"\n\t\t\t}\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\",\n\t\t\t\t\"feature-state\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"fill-extrusion-translate\": {\n\t\ttype: \"array\",\n\t\tvalue: \"number\",\n\t\tlength: 2,\n\t\t\"default\": [\n\t\t\t0,\n\t\t\t0\n\t\t],\n\t\ttransition: true,\n\t\tunits: \"pixels\",\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"fill-extrusion-translate-anchor\": {\n\t\ttype: \"enum\",\n\t\tvalues: {\n\t\t\tmap: {\n\t\t\t},\n\t\t\tviewport: {\n\t\t\t}\n\t\t},\n\t\t\"default\": \"map\",\n\t\trequires: [\n\t\t\t\"fill-extrusion-translate\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t},\n\t\"fill-extrusion-pattern\": {\n\t\ttype: \"resolvedImage\",\n\t\ttransition: true,\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"cross-faded-data-driven\"\n\t},\n\t\"fill-extrusion-height\": {\n\t\ttype: \"number\",\n\t\t\"default\": 0,\n\t\tminimum: 0,\n\t\tunits: \"meters\",\n\t\ttransition: true,\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\",\n\t\t\t\t\"feature-state\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"fill-extrusion-base\": {\n\t\ttype: \"number\",\n\t\t\"default\": 0,\n\t\tminimum: 0,\n\t\tunits: \"meters\",\n\t\ttransition: true,\n\t\trequires: [\n\t\t\t\"fill-extrusion-height\"\n\t\t],\n\t\texpression: {\n\t\t\tinterpolated: true,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\",\n\t\t\t\t\"feature\",\n\t\t\t\t\"feature-state\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-driven\"\n\t},\n\t\"fill-extrusion-vertical-gradient\": {\n\t\ttype: \"boolean\",\n\t\t\"default\": true,\n\t\ttransition: false,\n\t\texpression: {\n\t\t\tinterpolated: false,\n\t\t\tparameters: [\n\t\t\t\t\"zoom\"\n\t\t\t]\n\t\t},\n\t\t\"property-type\": \"data-constant\"\n\t}\n},\n\tpaint_line: paint_line,\n\tpaint_circle: paint_circle,\n\tpaint_heatmap: paint_heatmap,\n\tpaint_symbol: paint_symbol,\n\tpaint_raster: paint_raster,\n\tpaint_hillshade: paint_hillshade,\n\tpaint_background: paint_background,\n\ttransition: transition,\n\t\"property-type\": {\n\t\"data-driven\": {\n\t\ttype: \"property-type\"\n\t},\n\t\"cross-faded\": {\n\t\ttype: \"property-type\"\n\t},\n\t\"cross-faded-data-driven\": {\n\t\ttype: \"property-type\"\n\t},\n\t\"color-ramp\": {\n\t\ttype: \"property-type\"\n\t},\n\t\"data-constant\": {\n\t\ttype: \"property-type\"\n\t},\n\tconstant: {\n\t\ttype: \"property-type\"\n\t}\n},\n\tpromoteId: promoteId\n};\n\nvar ValidationError = function ValidationError(key, value, message, identifier) {\n this.message = (key ? key + ': ' : '') + message;\n if (identifier) {\n this.identifier = identifier;\n }\n if (value !== null && value !== undefined && value.__line__) {\n this.line = value.__line__;\n }\n};\n\nfunction validateConstants(options) {\n var key = options.key;\n var constants = options.value;\n if (constants) {\n return [new ValidationError(key, constants, 'constants have been deprecated as of v8')];\n } else {\n return [];\n }\n}\n\nfunction extend$1 (output) {\n var inputs = [], len = arguments.length - 1;\n while (len-- > 0)\n inputs[len] = arguments[len + 1];\n for (var i = 0, list = inputs; i < list.length; i += 1) {\n var input = list[i];\n for (var k in input) {\n output[k] = input[k];\n }\n }\n return output;\n}\n\nfunction unbundle(value) {\n if (value instanceof Number || value instanceof String || value instanceof Boolean) {\n return value.valueOf();\n } else {\n return value;\n }\n}\nfunction deepUnbundle(value) {\n if (Array.isArray(value)) {\n return value.map(deepUnbundle);\n } else if (value instanceof Object && !(value instanceof Number || value instanceof String || value instanceof Boolean)) {\n var unbundledValue = {};\n for (var key in value) {\n unbundledValue[key] = deepUnbundle(value[key]);\n }\n return unbundledValue;\n }\n return unbundle(value);\n}\n\nvar ParsingError = function (Error) {\n function ParsingError(key, message) {\n Error.call(this, message);\n this.message = message;\n this.key = key;\n }\n if (Error)\n ParsingError.__proto__ = Error;\n ParsingError.prototype = Object.create(Error && Error.prototype);\n ParsingError.prototype.constructor = ParsingError;\n return ParsingError;\n}(Error);\n\nvar Scope = function Scope(parent, bindings) {\n if (bindings === void 0)\n bindings = [];\n this.parent = parent;\n this.bindings = {};\n for (var i = 0, list = bindings; i < list.length; i += 1) {\n var ref = list[i];\n var name = ref[0];\n var expression = ref[1];\n this.bindings[name] = expression;\n }\n};\nScope.prototype.concat = function concat(bindings) {\n return new Scope(this, bindings);\n};\nScope.prototype.get = function get(name) {\n if (this.bindings[name]) {\n return this.bindings[name];\n }\n if (this.parent) {\n return this.parent.get(name);\n }\n throw new Error(name + ' not found in scope.');\n};\nScope.prototype.has = function has(name) {\n if (this.bindings[name]) {\n return true;\n }\n return this.parent ? this.parent.has(name) : false;\n};\n\nvar NullType = { kind: 'null' };\nvar NumberType = { kind: 'number' };\nvar StringType = { kind: 'string' };\nvar BooleanType = { kind: 'boolean' };\nvar ColorType = { kind: 'color' };\nvar ObjectType = { kind: 'object' };\nvar ValueType = { kind: 'value' };\nvar ErrorType = { kind: 'error' };\nvar CollatorType = { kind: 'collator' };\nvar FormattedType = { kind: 'formatted' };\nvar ResolvedImageType = { kind: 'resolvedImage' };\nfunction array(itemType, N) {\n return {\n kind: 'array',\n itemType: itemType,\n N: N\n };\n}\nfunction toString(type) {\n if (type.kind === 'array') {\n var itemType = toString(type.itemType);\n return typeof type.N === 'number' ? 'array<' + itemType + ', ' + type.N + '>' : type.itemType.kind === 'value' ? 'array' : 'array<' + itemType + '>';\n } else {\n return type.kind;\n }\n}\nvar valueMemberTypes = [\n NullType,\n NumberType,\n StringType,\n BooleanType,\n ColorType,\n FormattedType,\n ObjectType,\n array(ValueType),\n ResolvedImageType\n];\nfunction checkSubtype(expected, t) {\n if (t.kind === 'error') {\n return null;\n } else if (expected.kind === 'array') {\n if (t.kind === 'array' && (t.N === 0 && t.itemType.kind === 'value' || !checkSubtype(expected.itemType, t.itemType)) && (typeof expected.N !== 'number' || expected.N === t.N)) {\n return null;\n }\n } else if (expected.kind === t.kind) {\n return null;\n } else if (expected.kind === 'value') {\n for (var i = 0, list = valueMemberTypes; i < list.length; i += 1) {\n var memberType = list[i];\n if (!checkSubtype(memberType, t)) {\n return null;\n }\n }\n }\n return 'Expected ' + toString(expected) + ' but found ' + toString(t) + ' instead.';\n}\nfunction isValidType(provided, allowedTypes) {\n return allowedTypes.some(function (t) {\n return t.kind === provided.kind;\n });\n}\nfunction isValidNativeType(provided, allowedTypes) {\n return allowedTypes.some(function (t) {\n if (t === 'null') {\n return provided === null;\n } else if (t === 'array') {\n return Array.isArray(provided);\n } else if (t === 'object') {\n return provided && !Array.isArray(provided) && typeof provided === 'object';\n } else {\n return t === typeof provided;\n }\n });\n}\n\nvar csscolorparser = createCommonjsModule(function (module, exports) {\nvar kCSSColorTable = {\n 'transparent': [\n 0,\n 0,\n 0,\n 0\n ],\n 'aliceblue': [\n 240,\n 248,\n 255,\n 1\n ],\n 'antiquewhite': [\n 250,\n 235,\n 215,\n 1\n ],\n 'aqua': [\n 0,\n 255,\n 255,\n 1\n ],\n 'aquamarine': [\n 127,\n 255,\n 212,\n 1\n ],\n 'azure': [\n 240,\n 255,\n 255,\n 1\n ],\n 'beige': [\n 245,\n 245,\n 220,\n 1\n ],\n 'bisque': [\n 255,\n 228,\n 196,\n 1\n ],\n 'black': [\n 0,\n 0,\n 0,\n 1\n ],\n 'blanchedalmond': [\n 255,\n 235,\n 205,\n 1\n ],\n 'blue': [\n 0,\n 0,\n 255,\n 1\n ],\n 'blueviolet': [\n 138,\n 43,\n 226,\n 1\n ],\n 'brown': [\n 165,\n 42,\n 42,\n 1\n ],\n 'burlywood': [\n 222,\n 184,\n 135,\n 1\n ],\n 'cadetblue': [\n 95,\n 158,\n 160,\n 1\n ],\n 'chartreuse': [\n 127,\n 255,\n 0,\n 1\n ],\n 'chocolate': [\n 210,\n 105,\n 30,\n 1\n ],\n 'coral': [\n 255,\n 127,\n 80,\n 1\n ],\n 'cornflowerblue': [\n 100,\n 149,\n 237,\n 1\n ],\n 'cornsilk': [\n 255,\n 248,\n 220,\n 1\n ],\n 'crimson': [\n 220,\n 20,\n 60,\n 1\n ],\n 'cyan': [\n 0,\n 255,\n 255,\n 1\n ],\n 'darkblue': [\n 0,\n 0,\n 139,\n 1\n ],\n 'darkcyan': [\n 0,\n 139,\n 139,\n 1\n ],\n 'darkgoldenrod': [\n 184,\n 134,\n 11,\n 1\n ],\n 'darkgray': [\n 169,\n 169,\n 169,\n 1\n ],\n 'darkgreen': [\n 0,\n 100,\n 0,\n 1\n ],\n 'darkgrey': [\n 169,\n 169,\n 169,\n 1\n ],\n 'darkkhaki': [\n 189,\n 183,\n 107,\n 1\n ],\n 'darkmagenta': [\n 139,\n 0,\n 139,\n 1\n ],\n 'darkolivegreen': [\n 85,\n 107,\n 47,\n 1\n ],\n 'darkorange': [\n 255,\n 140,\n 0,\n 1\n ],\n 'darkorchid': [\n 153,\n 50,\n 204,\n 1\n ],\n 'darkred': [\n 139,\n 0,\n 0,\n 1\n ],\n 'darksalmon': [\n 233,\n 150,\n 122,\n 1\n ],\n 'darkseagreen': [\n 143,\n 188,\n 143,\n 1\n ],\n 'darkslateblue': [\n 72,\n 61,\n 139,\n 1\n ],\n 'darkslategray': [\n 47,\n 79,\n 79,\n 1\n ],\n 'darkslategrey': [\n 47,\n 79,\n 79,\n 1\n ],\n 'darkturquoise': [\n 0,\n 206,\n 209,\n 1\n ],\n 'darkviolet': [\n 148,\n 0,\n 211,\n 1\n ],\n 'deeppink': [\n 255,\n 20,\n 147,\n 1\n ],\n 'deepskyblue': [\n 0,\n 191,\n 255,\n 1\n ],\n 'dimgray': [\n 105,\n 105,\n 105,\n 1\n ],\n 'dimgrey': [\n 105,\n 105,\n 105,\n 1\n ],\n 'dodgerblue': [\n 30,\n 144,\n 255,\n 1\n ],\n 'firebrick': [\n 178,\n 34,\n 34,\n 1\n ],\n 'floralwhite': [\n 255,\n 250,\n 240,\n 1\n ],\n 'forestgreen': [\n 34,\n 139,\n 34,\n 1\n ],\n 'fuchsia': [\n 255,\n 0,\n 255,\n 1\n ],\n 'gainsboro': [\n 220,\n 220,\n 220,\n 1\n ],\n 'ghostwhite': [\n 248,\n 248,\n 255,\n 1\n ],\n 'gold': [\n 255,\n 215,\n 0,\n 1\n ],\n 'goldenrod': [\n 218,\n 165,\n 32,\n 1\n ],\n 'gray': [\n 128,\n 128,\n 128,\n 1\n ],\n 'green': [\n 0,\n 128,\n 0,\n 1\n ],\n 'greenyellow': [\n 173,\n 255,\n 47,\n 1\n ],\n 'grey': [\n 128,\n 128,\n 128,\n 1\n ],\n 'honeydew': [\n 240,\n 255,\n 240,\n 1\n ],\n 'hotpink': [\n 255,\n 105,\n 180,\n 1\n ],\n 'indianred': [\n 205,\n 92,\n 92,\n 1\n ],\n 'indigo': [\n 75,\n 0,\n 130,\n 1\n ],\n 'ivory': [\n 255,\n 255,\n 240,\n 1\n ],\n 'khaki': [\n 240,\n 230,\n 140,\n 1\n ],\n 'lavender': [\n 230,\n 230,\n 250,\n 1\n ],\n 'lavenderblush': [\n 255,\n 240,\n 245,\n 1\n ],\n 'lawngreen': [\n 124,\n 252,\n 0,\n 1\n ],\n 'lemonchiffon': [\n 255,\n 250,\n 205,\n 1\n ],\n 'lightblue': [\n 173,\n 216,\n 230,\n 1\n ],\n 'lightcoral': [\n 240,\n 128,\n 128,\n 1\n ],\n 'lightcyan': [\n 224,\n 255,\n 255,\n 1\n ],\n 'lightgoldenrodyellow': [\n 250,\n 250,\n 210,\n 1\n ],\n 'lightgray': [\n 211,\n 211,\n 211,\n 1\n ],\n 'lightgreen': [\n 144,\n 238,\n 144,\n 1\n ],\n 'lightgrey': [\n 211,\n 211,\n 211,\n 1\n ],\n 'lightpink': [\n 255,\n 182,\n 193,\n 1\n ],\n 'lightsalmon': [\n 255,\n 160,\n 122,\n 1\n ],\n 'lightseagreen': [\n 32,\n 178,\n 170,\n 1\n ],\n 'lightskyblue': [\n 135,\n 206,\n 250,\n 1\n ],\n 'lightslategray': [\n 119,\n 136,\n 153,\n 1\n ],\n 'lightslategrey': [\n 119,\n 136,\n 153,\n 1\n ],\n 'lightsteelblue': [\n 176,\n 196,\n 222,\n 1\n ],\n 'lightyellow': [\n 255,\n 255,\n 224,\n 1\n ],\n 'lime': [\n 0,\n 255,\n 0,\n 1\n ],\n 'limegreen': [\n 50,\n 205,\n 50,\n 1\n ],\n 'linen': [\n 250,\n 240,\n 230,\n 1\n ],\n 'magenta': [\n 255,\n 0,\n 255,\n 1\n ],\n 'maroon': [\n 128,\n 0,\n 0,\n 1\n ],\n 'mediumaquamarine': [\n 102,\n 205,\n 170,\n 1\n ],\n 'mediumblue': [\n 0,\n 0,\n 205,\n 1\n ],\n 'mediumorchid': [\n 186,\n 85,\n 211,\n 1\n ],\n 'mediumpurple': [\n 147,\n 112,\n 219,\n 1\n ],\n 'mediumseagreen': [\n 60,\n 179,\n 113,\n 1\n ],\n 'mediumslateblue': [\n 123,\n 104,\n 238,\n 1\n ],\n 'mediumspringgreen': [\n 0,\n 250,\n 154,\n 1\n ],\n 'mediumturquoise': [\n 72,\n 209,\n 204,\n 1\n ],\n 'mediumvioletred': [\n 199,\n 21,\n 133,\n 1\n ],\n 'midnightblue': [\n 25,\n 25,\n 112,\n 1\n ],\n 'mintcream': [\n 245,\n 255,\n 250,\n 1\n ],\n 'mistyrose': [\n 255,\n 228,\n 225,\n 1\n ],\n 'moccasin': [\n 255,\n 228,\n 181,\n 1\n ],\n 'navajowhite': [\n 255,\n 222,\n 173,\n 1\n ],\n 'navy': [\n 0,\n 0,\n 128,\n 1\n ],\n 'oldlace': [\n 253,\n 245,\n 230,\n 1\n ],\n 'olive': [\n 128,\n 128,\n 0,\n 1\n ],\n 'olivedrab': [\n 107,\n 142,\n 35,\n 1\n ],\n 'orange': [\n 255,\n 165,\n 0,\n 1\n ],\n 'orangered': [\n 255,\n 69,\n 0,\n 1\n ],\n 'orchid': [\n 218,\n 112,\n 214,\n 1\n ],\n 'palegoldenrod': [\n 238,\n 232,\n 170,\n 1\n ],\n 'palegreen': [\n 152,\n 251,\n 152,\n 1\n ],\n 'paleturquoise': [\n 175,\n 238,\n 238,\n 1\n ],\n 'palevioletred': [\n 219,\n 112,\n 147,\n 1\n ],\n 'papayawhip': [\n 255,\n 239,\n 213,\n 1\n ],\n 'peachpuff': [\n 255,\n 218,\n 185,\n 1\n ],\n 'peru': [\n 205,\n 133,\n 63,\n 1\n ],\n 'pink': [\n 255,\n 192,\n 203,\n 1\n ],\n 'plum': [\n 221,\n 160,\n 221,\n 1\n ],\n 'powderblue': [\n 176,\n 224,\n 230,\n 1\n ],\n 'purple': [\n 128,\n 0,\n 128,\n 1\n ],\n 'rebeccapurple': [\n 102,\n 51,\n 153,\n 1\n ],\n 'red': [\n 255,\n 0,\n 0,\n 1\n ],\n 'rosybrown': [\n 188,\n 143,\n 143,\n 1\n ],\n 'royalblue': [\n 65,\n 105,\n 225,\n 1\n ],\n 'saddlebrown': [\n 139,\n 69,\n 19,\n 1\n ],\n 'salmon': [\n 250,\n 128,\n 114,\n 1\n ],\n 'sandybrown': [\n 244,\n 164,\n 96,\n 1\n ],\n 'seagreen': [\n 46,\n 139,\n 87,\n 1\n ],\n 'seashell': [\n 255,\n 245,\n 238,\n 1\n ],\n 'sienna': [\n 160,\n 82,\n 45,\n 1\n ],\n 'silver': [\n 192,\n 192,\n 192,\n 1\n ],\n 'skyblue': [\n 135,\n 206,\n 235,\n 1\n ],\n 'slateblue': [\n 106,\n 90,\n 205,\n 1\n ],\n 'slategray': [\n 112,\n 128,\n 144,\n 1\n ],\n 'slategrey': [\n 112,\n 128,\n 144,\n 1\n ],\n 'snow': [\n 255,\n 250,\n 250,\n 1\n ],\n 'springgreen': [\n 0,\n 255,\n 127,\n 1\n ],\n 'steelblue': [\n 70,\n 130,\n 180,\n 1\n ],\n 'tan': [\n 210,\n 180,\n 140,\n 1\n ],\n 'teal': [\n 0,\n 128,\n 128,\n 1\n ],\n 'thistle': [\n 216,\n 191,\n 216,\n 1\n ],\n 'tomato': [\n 255,\n 99,\n 71,\n 1\n ],\n 'turquoise': [\n 64,\n 224,\n 208,\n 1\n ],\n 'violet': [\n 238,\n 130,\n 238,\n 1\n ],\n 'wheat': [\n 245,\n 222,\n 179,\n 1\n ],\n 'white': [\n 255,\n 255,\n 255,\n 1\n ],\n 'whitesmoke': [\n 245,\n 245,\n 245,\n 1\n ],\n 'yellow': [\n 255,\n 255,\n 0,\n 1\n ],\n 'yellowgreen': [\n 154,\n 205,\n 50,\n 1\n ]\n};\nfunction clamp_css_byte(i) {\n i = Math.round(i);\n return i < 0 ? 0 : i > 255 ? 255 : i;\n}\nfunction clamp_css_float(f) {\n return f < 0 ? 0 : f > 1 ? 1 : f;\n}\nfunction parse_css_int(str) {\n if (str[str.length - 1] === '%') {\n return clamp_css_byte(parseFloat(str) / 100 * 255);\n }\n return clamp_css_byte(parseInt(str));\n}\nfunction parse_css_float(str) {\n if (str[str.length - 1] === '%') {\n return clamp_css_float(parseFloat(str) / 100);\n }\n return clamp_css_float(parseFloat(str));\n}\nfunction css_hue_to_rgb(m1, m2, h) {\n if (h < 0) {\n h += 1;\n } else if (h > 1) {\n h -= 1;\n }\n if (h * 6 < 1) {\n return m1 + (m2 - m1) * h * 6;\n }\n if (h * 2 < 1) {\n return m2;\n }\n if (h * 3 < 2) {\n return m1 + (m2 - m1) * (2 / 3 - h) * 6;\n }\n return m1;\n}\nfunction parseCSSColor(css_str) {\n var str = css_str.replace(/ /g, '').toLowerCase();\n if (str in kCSSColorTable) {\n return kCSSColorTable[str].slice();\n }\n if (str[0] === '#') {\n if (str.length === 4) {\n var iv = parseInt(str.substr(1), 16);\n if (!(iv >= 0 && iv <= 4095)) {\n return null;\n }\n return [\n (iv & 3840) >> 4 | (iv & 3840) >> 8,\n iv & 240 | (iv & 240) >> 4,\n iv & 15 | (iv & 15) << 4,\n 1\n ];\n } else if (str.length === 7) {\n var iv = parseInt(str.substr(1), 16);\n if (!(iv >= 0 && iv <= 16777215)) {\n return null;\n }\n return [\n (iv & 16711680) >> 16,\n (iv & 65280) >> 8,\n iv & 255,\n 1\n ];\n }\n return null;\n }\n var op = str.indexOf('('), ep = str.indexOf(')');\n if (op !== -1 && ep + 1 === str.length) {\n var fname = str.substr(0, op);\n var params = str.substr(op + 1, ep - (op + 1)).split(',');\n var alpha = 1;\n switch (fname) {\n case 'rgba':\n if (params.length !== 4) {\n return null;\n }\n alpha = parse_css_float(params.pop());\n case 'rgb':\n if (params.length !== 3) {\n return null;\n }\n return [\n parse_css_int(params[0]),\n parse_css_int(params[1]),\n parse_css_int(params[2]),\n alpha\n ];\n case 'hsla':\n if (params.length !== 4) {\n return null;\n }\n alpha = parse_css_float(params.pop());\n case 'hsl':\n if (params.length !== 3) {\n return null;\n }\n var h = (parseFloat(params[0]) % 360 + 360) % 360 / 360;\n var s = parse_css_float(params[1]);\n var l = parse_css_float(params[2]);\n var m2 = l <= 0.5 ? l * (s + 1) : l + s - l * s;\n var m1 = l * 2 - m2;\n return [\n clamp_css_byte(css_hue_to_rgb(m1, m2, h + 1 / 3) * 255),\n clamp_css_byte(css_hue_to_rgb(m1, m2, h) * 255),\n clamp_css_byte(css_hue_to_rgb(m1, m2, h - 1 / 3) * 255),\n alpha\n ];\n default:\n return null;\n }\n }\n return null;\n}\ntry {\n exports.parseCSSColor = parseCSSColor;\n} catch (e) {\n}\n});\nvar csscolorparser_1 = csscolorparser.parseCSSColor;\n\nvar Color = function Color(r, g, b, a) {\n if (a === void 0)\n a = 1;\n this.r = r;\n this.g = g;\n this.b = b;\n this.a = a;\n};\nColor.parse = function parse(input) {\n if (!input) {\n return undefined;\n }\n if (input instanceof Color) {\n return input;\n }\n if (typeof input !== 'string') {\n return undefined;\n }\n var rgba = csscolorparser_1(input);\n if (!rgba) {\n return undefined;\n }\n return new Color(rgba[0] / 255 * rgba[3], rgba[1] / 255 * rgba[3], rgba[2] / 255 * rgba[3], rgba[3]);\n};\nColor.prototype.toString = function toString() {\n var ref = this.toArray();\n var r = ref[0];\n var g = ref[1];\n var b = ref[2];\n var a = ref[3];\n return 'rgba(' + Math.round(r) + ',' + Math.round(g) + ',' + Math.round(b) + ',' + a + ')';\n};\nColor.prototype.toArray = function toArray() {\n var ref = this;\n var r = ref.r;\n var g = ref.g;\n var b = ref.b;\n var a = ref.a;\n return a === 0 ? [\n 0,\n 0,\n 0,\n 0\n ] : [\n r * 255 / a,\n g * 255 / a,\n b * 255 / a,\n a\n ];\n};\nColor.black = new Color(0, 0, 0, 1);\nColor.white = new Color(1, 1, 1, 1);\nColor.transparent = new Color(0, 0, 0, 0);\nColor.red = new Color(1, 0, 0, 1);\n\nvar Collator = function Collator(caseSensitive, diacriticSensitive, locale) {\n if (caseSensitive) {\n this.sensitivity = diacriticSensitive ? 'variant' : 'case';\n } else {\n this.sensitivity = diacriticSensitive ? 'accent' : 'base';\n }\n this.locale = locale;\n this.collator = new Intl.Collator(this.locale ? this.locale : [], {\n sensitivity: this.sensitivity,\n usage: 'search'\n });\n};\nCollator.prototype.compare = function compare(lhs, rhs) {\n return this.collator.compare(lhs, rhs);\n};\nCollator.prototype.resolvedLocale = function resolvedLocale() {\n return new Intl.Collator(this.locale ? this.locale : []).resolvedOptions().locale;\n};\n\nvar FormattedSection = function FormattedSection(text, image, scale, fontStack, textColor) {\n this.text = text;\n this.image = image;\n this.scale = scale;\n this.fontStack = fontStack;\n this.textColor = textColor;\n};\nvar Formatted = function Formatted(sections) {\n this.sections = sections;\n};\nFormatted.fromString = function fromString(unformatted) {\n return new Formatted([new FormattedSection(unformatted, null, null, null, null)]);\n};\nFormatted.prototype.isEmpty = function isEmpty() {\n if (this.sections.length === 0) {\n return true;\n }\n return !this.sections.some(function (section) {\n return section.text.length !== 0 || section.image && section.image.name.length !== 0;\n });\n};\nFormatted.factory = function factory(text) {\n if (text instanceof Formatted) {\n return text;\n } else {\n return Formatted.fromString(text);\n }\n};\nFormatted.prototype.toString = function toString() {\n if (this.sections.length === 0) {\n return '';\n }\n return this.sections.map(function (section) {\n return section.text;\n }).join('');\n};\nFormatted.prototype.serialize = function serialize() {\n var serialized = ['format'];\n for (var i = 0, list = this.sections; i < list.length; i += 1) {\n var section = list[i];\n if (section.image) {\n serialized.push([\n 'image',\n section.image.name\n ]);\n continue;\n }\n serialized.push(section.text);\n var options = {};\n if (section.fontStack) {\n options['text-font'] = [\n 'literal',\n section.fontStack.split(',')\n ];\n }\n if (section.scale) {\n options['font-scale'] = section.scale;\n }\n if (section.textColor) {\n options['text-color'] = ['rgba'].concat(section.textColor.toArray());\n }\n serialized.push(options);\n }\n return serialized;\n};\n\nvar ResolvedImage = function ResolvedImage(options) {\n this.name = options.name;\n this.available = options.available;\n};\nResolvedImage.prototype.toString = function toString() {\n return this.name;\n};\nResolvedImage.fromString = function fromString(name) {\n if (!name) {\n return null;\n }\n return new ResolvedImage({\n name: name,\n available: false\n });\n};\nResolvedImage.prototype.serialize = function serialize() {\n return [\n 'image',\n this.name\n ];\n};\n\nfunction validateRGBA(r, g, b, a) {\n if (!(typeof r === 'number' && r >= 0 && r <= 255 && typeof g === 'number' && g >= 0 && g <= 255 && typeof b === 'number' && b >= 0 && b <= 255)) {\n var value = typeof a === 'number' ? [\n r,\n g,\n b,\n a\n ] : [\n r,\n g,\n b\n ];\n return 'Invalid rgba value [' + value.join(', ') + ']: \\'r\\', \\'g\\', and \\'b\\' must be between 0 and 255.';\n }\n if (!(typeof a === 'undefined' || typeof a === 'number' && a >= 0 && a <= 1)) {\n return 'Invalid rgba value [' + [\n r,\n g,\n b,\n a\n ].join(', ') + ']: \\'a\\' must be between 0 and 1.';\n }\n return null;\n}\nfunction isValue(mixed) {\n if (mixed === null) {\n return true;\n } else if (typeof mixed === 'string') {\n return true;\n } else if (typeof mixed === 'boolean') {\n return true;\n } else if (typeof mixed === 'number') {\n return true;\n } else if (mixed instanceof Color) {\n return true;\n } else if (mixed instanceof Collator) {\n return true;\n } else if (mixed instanceof Formatted) {\n return true;\n } else if (mixed instanceof ResolvedImage) {\n return true;\n } else if (Array.isArray(mixed)) {\n for (var i = 0, list = mixed; i < list.length; i += 1) {\n var item = list[i];\n if (!isValue(item)) {\n return false;\n }\n }\n return true;\n } else if (typeof mixed === 'object') {\n for (var key in mixed) {\n if (!isValue(mixed[key])) {\n return false;\n }\n }\n return true;\n } else {\n return false;\n }\n}\nfunction typeOf(value) {\n if (value === null) {\n return NullType;\n } else if (typeof value === 'string') {\n return StringType;\n } else if (typeof value === 'boolean') {\n return BooleanType;\n } else if (typeof value === 'number') {\n return NumberType;\n } else if (value instanceof Color) {\n return ColorType;\n } else if (value instanceof Collator) {\n return CollatorType;\n } else if (value instanceof Formatted) {\n return FormattedType;\n } else if (value instanceof ResolvedImage) {\n return ResolvedImageType;\n } else if (Array.isArray(value)) {\n var length = value.length;\n var itemType;\n for (var i = 0, list = value; i < list.length; i += 1) {\n var item = list[i];\n var t = typeOf(item);\n if (!itemType) {\n itemType = t;\n } else if (itemType === t) {\n continue;\n } else {\n itemType = ValueType;\n break;\n }\n }\n return array(itemType || ValueType, length);\n } else {\n return ObjectType;\n }\n}\nfunction toString$1(value) {\n var type = typeof value;\n if (value === null) {\n return '';\n } else if (type === 'string' || type === 'number' || type === 'boolean') {\n return String(value);\n } else if (value instanceof Color || value instanceof Formatted || value instanceof ResolvedImage) {\n return value.toString();\n } else {\n return JSON.stringify(value);\n }\n}\n\nvar Literal = function Literal(type, value) {\n this.type = type;\n this.value = value;\n};\nLiteral.parse = function parse(args, context) {\n if (args.length !== 2) {\n return context.error('\\'literal\\' expression requires exactly one argument, but found ' + (args.length - 1) + ' instead.');\n }\n if (!isValue(args[1])) {\n return context.error('invalid value');\n }\n var value = args[1];\n var type = typeOf(value);\n var expected = context.expectedType;\n if (type.kind === 'array' && type.N === 0 && expected && expected.kind === 'array' && (typeof expected.N !== 'number' || expected.N === 0)) {\n type = expected;\n }\n return new Literal(type, value);\n};\nLiteral.prototype.evaluate = function evaluate() {\n return this.value;\n};\nLiteral.prototype.eachChild = function eachChild() {\n};\nLiteral.prototype.outputDefined = function outputDefined() {\n return true;\n};\nLiteral.prototype.serialize = function serialize() {\n if (this.type.kind === 'array' || this.type.kind === 'object') {\n return [\n 'literal',\n this.value\n ];\n } else if (this.value instanceof Color) {\n return ['rgba'].concat(this.value.toArray());\n } else if (this.value instanceof Formatted) {\n return this.value.serialize();\n } else {\n return this.value;\n }\n};\n\nvar RuntimeError = function RuntimeError(message) {\n this.name = 'ExpressionEvaluationError';\n this.message = message;\n};\nRuntimeError.prototype.toJSON = function toJSON() {\n return this.message;\n};\n\nvar types = {\n string: StringType,\n number: NumberType,\n boolean: BooleanType,\n object: ObjectType\n};\nvar Assertion = function Assertion(type, args) {\n this.type = type;\n this.args = args;\n};\nAssertion.parse = function parse(args, context) {\n if (args.length < 2) {\n return context.error('Expected at least one argument.');\n }\n var i = 1;\n var type;\n var name = args[0];\n if (name === 'array') {\n var itemType;\n if (args.length > 2) {\n var type$1 = args[1];\n if (typeof type$1 !== 'string' || !(type$1 in types) || type$1 === 'object') {\n return context.error('The item type argument of \"array\" must be one of string, number, boolean', 1);\n }\n itemType = types[type$1];\n i++;\n } else {\n itemType = ValueType;\n }\n var N;\n if (args.length > 3) {\n if (args[2] !== null && (typeof args[2] !== 'number' || args[2] < 0 || args[2] !== Math.floor(args[2]))) {\n return context.error('The length argument to \"array\" must be a positive integer literal', 2);\n }\n N = args[2];\n i++;\n }\n type = array(itemType, N);\n } else {\n type = types[name];\n }\n var parsed = [];\n for (; i < args.length; i++) {\n var input = context.parse(args[i], i, ValueType);\n if (!input) {\n return null;\n }\n parsed.push(input);\n }\n return new Assertion(type, parsed);\n};\nAssertion.prototype.evaluate = function evaluate(ctx) {\n for (var i = 0; i < this.args.length; i++) {\n var value = this.args[i].evaluate(ctx);\n var error = checkSubtype(this.type, typeOf(value));\n if (!error) {\n return value;\n } else if (i === this.args.length - 1) {\n throw new RuntimeError('Expected value to be of type ' + toString(this.type) + ', but found ' + toString(typeOf(value)) + ' instead.');\n }\n }\n return null;\n};\nAssertion.prototype.eachChild = function eachChild(fn) {\n this.args.forEach(fn);\n};\nAssertion.prototype.outputDefined = function outputDefined() {\n return this.args.every(function (arg) {\n return arg.outputDefined();\n });\n};\nAssertion.prototype.serialize = function serialize() {\n var type = this.type;\n var serialized = [type.kind];\n if (type.kind === 'array') {\n var itemType = type.itemType;\n if (itemType.kind === 'string' || itemType.kind === 'number' || itemType.kind === 'boolean') {\n serialized.push(itemType.kind);\n var N = type.N;\n if (typeof N === 'number' || this.args.length > 1) {\n serialized.push(N);\n }\n }\n }\n return serialized.concat(this.args.map(function (arg) {\n return arg.serialize();\n }));\n};\n\nvar FormatExpression = function FormatExpression(sections) {\n this.type = FormattedType;\n this.sections = sections;\n};\nFormatExpression.parse = function parse(args, context) {\n if (args.length < 2) {\n return context.error('Expected at least one argument.');\n }\n var firstArg = args[1];\n if (!Array.isArray(firstArg) && typeof firstArg === 'object') {\n return context.error('First argument must be an image or text section.');\n }\n var sections = [];\n var nextTokenMayBeObject = false;\n for (var i = 1; i <= args.length - 1; ++i) {\n var arg = args[i];\n if (nextTokenMayBeObject && typeof arg === 'object' && !Array.isArray(arg)) {\n nextTokenMayBeObject = false;\n var scale = null;\n if (arg['font-scale']) {\n scale = context.parse(arg['font-scale'], 1, NumberType);\n if (!scale) {\n return null;\n }\n }\n var font = null;\n if (arg['text-font']) {\n font = context.parse(arg['text-font'], 1, array(StringType));\n if (!font) {\n return null;\n }\n }\n var textColor = null;\n if (arg['text-color']) {\n textColor = context.parse(arg['text-color'], 1, ColorType);\n if (!textColor) {\n return null;\n }\n }\n var lastExpression = sections[sections.length - 1];\n lastExpression.scale = scale;\n lastExpression.font = font;\n lastExpression.textColor = textColor;\n } else {\n var content = context.parse(args[i], 1, ValueType);\n if (!content) {\n return null;\n }\n var kind = content.type.kind;\n if (kind !== 'string' && kind !== 'value' && kind !== 'null' && kind !== 'resolvedImage') {\n return context.error('Formatted text type must be \\'string\\', \\'value\\', \\'image\\' or \\'null\\'.');\n }\n nextTokenMayBeObject = true;\n sections.push({\n content: content,\n scale: null,\n font: null,\n textColor: null\n });\n }\n }\n return new FormatExpression(sections);\n};\nFormatExpression.prototype.evaluate = function evaluate(ctx) {\n var evaluateSection = function (section) {\n var evaluatedContent = section.content.evaluate(ctx);\n if (typeOf(evaluatedContent) === ResolvedImageType) {\n return new FormattedSection('', evaluatedContent, null, null, null);\n }\n return new FormattedSection(toString$1(evaluatedContent), null, section.scale ? section.scale.evaluate(ctx) : null, section.font ? section.font.evaluate(ctx).join(',') : null, section.textColor ? section.textColor.evaluate(ctx) : null);\n };\n return new Formatted(this.sections.map(evaluateSection));\n};\nFormatExpression.prototype.eachChild = function eachChild(fn) {\n for (var i = 0, list = this.sections; i < list.length; i += 1) {\n var section = list[i];\n fn(section.content);\n if (section.scale) {\n fn(section.scale);\n }\n if (section.font) {\n fn(section.font);\n }\n if (section.textColor) {\n fn(section.textColor);\n }\n }\n};\nFormatExpression.prototype.outputDefined = function outputDefined() {\n return false;\n};\nFormatExpression.prototype.serialize = function serialize() {\n var serialized = ['format'];\n for (var i = 0, list = this.sections; i < list.length; i += 1) {\n var section = list[i];\n serialized.push(section.content.serialize());\n var options = {};\n if (section.scale) {\n options['font-scale'] = section.scale.serialize();\n }\n if (section.font) {\n options['text-font'] = section.font.serialize();\n }\n if (section.textColor) {\n options['text-color'] = section.textColor.serialize();\n }\n serialized.push(options);\n }\n return serialized;\n};\n\nvar ImageExpression = function ImageExpression(input) {\n this.type = ResolvedImageType;\n this.input = input;\n};\nImageExpression.parse = function parse(args, context) {\n if (args.length !== 2) {\n return context.error('Expected two arguments.');\n }\n var name = context.parse(args[1], 1, StringType);\n if (!name) {\n return context.error('No image name provided.');\n }\n return new ImageExpression(name);\n};\nImageExpression.prototype.evaluate = function evaluate(ctx) {\n var evaluatedImageName = this.input.evaluate(ctx);\n var value = ResolvedImage.fromString(evaluatedImageName);\n if (value && ctx.availableImages) {\n value.available = ctx.availableImages.indexOf(evaluatedImageName) > -1;\n }\n return value;\n};\nImageExpression.prototype.eachChild = function eachChild(fn) {\n fn(this.input);\n};\nImageExpression.prototype.outputDefined = function outputDefined() {\n return false;\n};\nImageExpression.prototype.serialize = function serialize() {\n return [\n 'image',\n this.input.serialize()\n ];\n};\n\nvar types$1 = {\n 'to-boolean': BooleanType,\n 'to-color': ColorType,\n 'to-number': NumberType,\n 'to-string': StringType\n};\nvar Coercion = function Coercion(type, args) {\n this.type = type;\n this.args = args;\n};\nCoercion.parse = function parse(args, context) {\n if (args.length < 2) {\n return context.error('Expected at least one argument.');\n }\n var name = args[0];\n if ((name === 'to-boolean' || name === 'to-string') && args.length !== 2) {\n return context.error('Expected one argument.');\n }\n var type = types$1[name];\n var parsed = [];\n for (var i = 1; i < args.length; i++) {\n var input = context.parse(args[i], i, ValueType);\n if (!input) {\n return null;\n }\n parsed.push(input);\n }\n return new Coercion(type, parsed);\n};\nCoercion.prototype.evaluate = function evaluate(ctx) {\n if (this.type.kind === 'boolean') {\n return Boolean(this.args[0].evaluate(ctx));\n } else if (this.type.kind === 'color') {\n var input;\n var error;\n for (var i = 0, list = this.args; i < list.length; i += 1) {\n var arg = list[i];\n input = arg.evaluate(ctx);\n error = null;\n if (input instanceof Color) {\n return input;\n } else if (typeof input === 'string') {\n var c = ctx.parseColor(input);\n if (c) {\n return c;\n }\n } else if (Array.isArray(input)) {\n if (input.length < 3 || input.length > 4) {\n error = 'Invalid rbga value ' + JSON.stringify(input) + ': expected an array containing either three or four numeric values.';\n } else {\n error = validateRGBA(input[0], input[1], input[2], input[3]);\n }\n if (!error) {\n return new Color(input[0] / 255, input[1] / 255, input[2] / 255, input[3]);\n }\n }\n }\n throw new RuntimeError(error || 'Could not parse color from value \\'' + (typeof input === 'string' ? input : String(JSON.stringify(input))) + '\\'');\n } else if (this.type.kind === 'number') {\n var value = null;\n for (var i$1 = 0, list$1 = this.args; i$1 < list$1.length; i$1 += 1) {\n var arg$1 = list$1[i$1];\n value = arg$1.evaluate(ctx);\n if (value === null) {\n return 0;\n }\n var num = Number(value);\n if (isNaN(num)) {\n continue;\n }\n return num;\n }\n throw new RuntimeError('Could not convert ' + JSON.stringify(value) + ' to number.');\n } else if (this.type.kind === 'formatted') {\n return Formatted.fromString(toString$1(this.args[0].evaluate(ctx)));\n } else if (this.type.kind === 'resolvedImage') {\n return ResolvedImage.fromString(toString$1(this.args[0].evaluate(ctx)));\n } else {\n return toString$1(this.args[0].evaluate(ctx));\n }\n};\nCoercion.prototype.eachChild = function eachChild(fn) {\n this.args.forEach(fn);\n};\nCoercion.prototype.outputDefined = function outputDefined() {\n return this.args.every(function (arg) {\n return arg.outputDefined();\n });\n};\nCoercion.prototype.serialize = function serialize() {\n if (this.type.kind === 'formatted') {\n return new FormatExpression([{\n content: this.args[0],\n scale: null,\n font: null,\n textColor: null\n }]).serialize();\n }\n if (this.type.kind === 'resolvedImage') {\n return new ImageExpression(this.args[0]).serialize();\n }\n var serialized = ['to-' + this.type.kind];\n this.eachChild(function (child) {\n serialized.push(child.serialize());\n });\n return serialized;\n};\n\nvar geometryTypes = [\n 'Unknown',\n 'Point',\n 'LineString',\n 'Polygon'\n];\nvar EvaluationContext = function EvaluationContext() {\n this.globals = null;\n this.feature = null;\n this.featureState = null;\n this.formattedSection = null;\n this._parseColorCache = {};\n this.availableImages = null;\n this.canonical = null;\n};\nEvaluationContext.prototype.id = function id() {\n return this.feature && 'id' in this.feature ? this.feature.id : null;\n};\nEvaluationContext.prototype.geometryType = function geometryType() {\n return this.feature ? typeof this.feature.type === 'number' ? geometryTypes[this.feature.type] : this.feature.type : null;\n};\nEvaluationContext.prototype.geometry = function geometry() {\n return this.feature && 'geometry' in this.feature ? this.feature.geometry : null;\n};\nEvaluationContext.prototype.canonicalID = function canonicalID() {\n return this.canonical;\n};\nEvaluationContext.prototype.properties = function properties() {\n return this.feature && this.feature.properties || {};\n};\nEvaluationContext.prototype.parseColor = function parseColor(input) {\n var cached = this._parseColorCache[input];\n if (!cached) {\n cached = this._parseColorCache[input] = Color.parse(input);\n }\n return cached;\n};\n\nvar CompoundExpression = function CompoundExpression(name, type, evaluate, args) {\n this.name = name;\n this.type = type;\n this._evaluate = evaluate;\n this.args = args;\n};\nCompoundExpression.prototype.evaluate = function evaluate(ctx) {\n return this._evaluate(ctx, this.args);\n};\nCompoundExpression.prototype.eachChild = function eachChild(fn) {\n this.args.forEach(fn);\n};\nCompoundExpression.prototype.outputDefined = function outputDefined() {\n return false;\n};\nCompoundExpression.prototype.serialize = function serialize() {\n return [this.name].concat(this.args.map(function (arg) {\n return arg.serialize();\n }));\n};\nCompoundExpression.parse = function parse(args, context) {\n var ref$1;\n var op = args[0];\n var definition = CompoundExpression.definitions[op];\n if (!definition) {\n return context.error('Unknown expression \"' + op + '\". If you wanted a literal array, use [\"literal\", [...]].', 0);\n }\n var type = Array.isArray(definition) ? definition[0] : definition.type;\n var availableOverloads = Array.isArray(definition) ? [[\n definition[1],\n definition[2]\n ]] : definition.overloads;\n var overloads = availableOverloads.filter(function (ref) {\n var signature = ref[0];\n return !Array.isArray(signature) || signature.length === args.length - 1;\n });\n var signatureContext = null;\n for (var i$3 = 0, list = overloads; i$3 < list.length; i$3 += 1) {\n var ref = list[i$3];\n var params = ref[0];\n var evaluate = ref[1];\n signatureContext = new ParsingContext(context.registry, context.path, null, context.scope);\n var parsedArgs = [];\n var argParseFailed = false;\n for (var i = 1; i < args.length; i++) {\n var arg = args[i];\n var expectedType = Array.isArray(params) ? params[i - 1] : params.type;\n var parsed = signatureContext.parse(arg, 1 + parsedArgs.length, expectedType);\n if (!parsed) {\n argParseFailed = true;\n break;\n }\n parsedArgs.push(parsed);\n }\n if (argParseFailed) {\n continue;\n }\n if (Array.isArray(params)) {\n if (params.length !== parsedArgs.length) {\n signatureContext.error('Expected ' + params.length + ' arguments, but found ' + parsedArgs.length + ' instead.');\n continue;\n }\n }\n for (var i$1 = 0; i$1 < parsedArgs.length; i$1++) {\n var expected = Array.isArray(params) ? params[i$1] : params.type;\n var arg$1 = parsedArgs[i$1];\n signatureContext.concat(i$1 + 1).checkSubtype(expected, arg$1.type);\n }\n if (signatureContext.errors.length === 0) {\n return new CompoundExpression(op, type, evaluate, parsedArgs);\n }\n }\n if (overloads.length === 1) {\n (ref$1 = context.errors).push.apply(ref$1, signatureContext.errors);\n } else {\n var expected$1 = overloads.length ? overloads : availableOverloads;\n var signatures = expected$1.map(function (ref) {\n var params = ref[0];\n return stringifySignature(params);\n }).join(' | ');\n var actualTypes = [];\n for (var i$2 = 1; i$2 < args.length; i$2++) {\n var parsed$1 = context.parse(args[i$2], 1 + actualTypes.length);\n if (!parsed$1) {\n return null;\n }\n actualTypes.push(toString(parsed$1.type));\n }\n context.error('Expected arguments of type ' + signatures + ', but found (' + actualTypes.join(', ') + ') instead.');\n }\n return null;\n};\nCompoundExpression.register = function register(registry, definitions) {\n CompoundExpression.definitions = definitions;\n for (var name in definitions) {\n registry[name] = CompoundExpression;\n }\n};\nfunction stringifySignature(signature) {\n if (Array.isArray(signature)) {\n return '(' + signature.map(toString).join(', ') + ')';\n } else {\n return '(' + toString(signature.type) + '...)';\n }\n}\n\nvar CollatorExpression = function CollatorExpression(caseSensitive, diacriticSensitive, locale) {\n this.type = CollatorType;\n this.locale = locale;\n this.caseSensitive = caseSensitive;\n this.diacriticSensitive = diacriticSensitive;\n};\nCollatorExpression.parse = function parse(args, context) {\n if (args.length !== 2) {\n return context.error('Expected one argument.');\n }\n var options = args[1];\n if (typeof options !== 'object' || Array.isArray(options)) {\n return context.error('Collator options argument must be an object.');\n }\n var caseSensitive = context.parse(options['case-sensitive'] === undefined ? false : options['case-sensitive'], 1, BooleanType);\n if (!caseSensitive) {\n return null;\n }\n var diacriticSensitive = context.parse(options['diacritic-sensitive'] === undefined ? false : options['diacritic-sensitive'], 1, BooleanType);\n if (!diacriticSensitive) {\n return null;\n }\n var locale = null;\n if (options['locale']) {\n locale = context.parse(options['locale'], 1, StringType);\n if (!locale) {\n return null;\n }\n }\n return new CollatorExpression(caseSensitive, diacriticSensitive, locale);\n};\nCollatorExpression.prototype.evaluate = function evaluate(ctx) {\n return new Collator(this.caseSensitive.evaluate(ctx), this.diacriticSensitive.evaluate(ctx), this.locale ? this.locale.evaluate(ctx) : null);\n};\nCollatorExpression.prototype.eachChild = function eachChild(fn) {\n fn(this.caseSensitive);\n fn(this.diacriticSensitive);\n if (this.locale) {\n fn(this.locale);\n }\n};\nCollatorExpression.prototype.outputDefined = function outputDefined() {\n return false;\n};\nCollatorExpression.prototype.serialize = function serialize() {\n var options = {};\n options['case-sensitive'] = this.caseSensitive.serialize();\n options['diacritic-sensitive'] = this.diacriticSensitive.serialize();\n if (this.locale) {\n options['locale'] = this.locale.serialize();\n }\n return [\n 'collator',\n options\n ];\n};\n\nvar EXTENT = 8192;\nfunction updateBBox(bbox, coord) {\n bbox[0] = Math.min(bbox[0], coord[0]);\n bbox[1] = Math.min(bbox[1], coord[1]);\n bbox[2] = Math.max(bbox[2], coord[0]);\n bbox[3] = Math.max(bbox[3], coord[1]);\n}\nfunction mercatorXfromLng(lng) {\n return (180 + lng) / 360;\n}\nfunction mercatorYfromLat(lat) {\n return (180 - 180 / Math.PI * Math.log(Math.tan(Math.PI / 4 + lat * Math.PI / 360))) / 360;\n}\nfunction boxWithinBox(bbox1, bbox2) {\n if (bbox1[0] <= bbox2[0]) {\n return false;\n }\n if (bbox1[2] >= bbox2[2]) {\n return false;\n }\n if (bbox1[1] <= bbox2[1]) {\n return false;\n }\n if (bbox1[3] >= bbox2[3]) {\n return false;\n }\n return true;\n}\nfunction getTileCoordinates(p, canonical) {\n var x = mercatorXfromLng(p[0]);\n var y = mercatorYfromLat(p[1]);\n var tilesAtZoom = Math.pow(2, canonical.z);\n return [\n Math.round(x * tilesAtZoom * EXTENT),\n Math.round(y * tilesAtZoom * EXTENT)\n ];\n}\nfunction onBoundary(p, p1, p2) {\n var x1 = p[0] - p1[0];\n var y1 = p[1] - p1[1];\n var x2 = p[0] - p2[0];\n var y2 = p[1] - p2[1];\n return x1 * y2 - x2 * y1 === 0 && x1 * x2 <= 0 && y1 * y2 <= 0;\n}\nfunction rayIntersect(p, p1, p2) {\n return p1[1] > p[1] !== p2[1] > p[1] && p[0] < (p2[0] - p1[0]) * (p[1] - p1[1]) / (p2[1] - p1[1]) + p1[0];\n}\nfunction pointWithinPolygon(point, rings) {\n var inside = false;\n for (var i = 0, len = rings.length; i < len; i++) {\n var ring = rings[i];\n for (var j = 0, len2 = ring.length; j < len2 - 1; j++) {\n if (onBoundary(point, ring[j], ring[j + 1])) {\n return false;\n }\n if (rayIntersect(point, ring[j], ring[j + 1])) {\n inside = !inside;\n }\n }\n }\n return inside;\n}\nfunction pointWithinPolygons(point, polygons) {\n for (var i = 0; i < polygons.length; i++) {\n if (pointWithinPolygon(point, polygons[i])) {\n return true;\n }\n }\n return false;\n}\nfunction perp(v1, v2) {\n return v1[0] * v2[1] - v1[1] * v2[0];\n}\nfunction twoSided(p1, p2, q1, q2) {\n var x1 = p1[0] - q1[0];\n var y1 = p1[1] - q1[1];\n var x2 = p2[0] - q1[0];\n var y2 = p2[1] - q1[1];\n var x3 = q2[0] - q1[0];\n var y3 = q2[1] - q1[1];\n var det1 = x1 * y3 - x3 * y1;\n var det2 = x2 * y3 - x3 * y2;\n if (det1 > 0 && det2 < 0 || det1 < 0 && det2 > 0) {\n return true;\n }\n return false;\n}\nfunction lineIntersectLine(a, b, c, d) {\n var vectorP = [\n b[0] - a[0],\n b[1] - a[1]\n ];\n var vectorQ = [\n d[0] - c[0],\n d[1] - c[1]\n ];\n if (perp(vectorQ, vectorP) === 0) {\n return false;\n }\n if (twoSided(a, b, c, d) && twoSided(c, d, a, b)) {\n return true;\n }\n return false;\n}\nfunction lineIntersectPolygon(p1, p2, polygon) {\n for (var i = 0, list = polygon; i < list.length; i += 1) {\n var ring = list[i];\n for (var j = 0; j < ring.length - 1; ++j) {\n if (lineIntersectLine(p1, p2, ring[j], ring[j + 1])) {\n return true;\n }\n }\n }\n return false;\n}\nfunction lineStringWithinPolygon(line, polygon) {\n for (var i = 0; i < line.length; ++i) {\n if (!pointWithinPolygon(line[i], polygon)) {\n return false;\n }\n }\n for (var i$1 = 0; i$1 < line.length - 1; ++i$1) {\n if (lineIntersectPolygon(line[i$1], line[i$1 + 1], polygon)) {\n return false;\n }\n }\n return true;\n}\nfunction lineStringWithinPolygons(line, polygons) {\n for (var i = 0; i < polygons.length; i++) {\n if (lineStringWithinPolygon(line, polygons[i])) {\n return true;\n }\n }\n return false;\n}\nfunction getTilePolygon(coordinates, bbox, canonical) {\n var polygon = [];\n for (var i = 0; i < coordinates.length; i++) {\n var ring = [];\n for (var j = 0; j < coordinates[i].length; j++) {\n var coord = getTileCoordinates(coordinates[i][j], canonical);\n updateBBox(bbox, coord);\n ring.push(coord);\n }\n polygon.push(ring);\n }\n return polygon;\n}\nfunction getTilePolygons(coordinates, bbox, canonical) {\n var polygons = [];\n for (var i = 0; i < coordinates.length; i++) {\n var polygon = getTilePolygon(coordinates[i], bbox, canonical);\n polygons.push(polygon);\n }\n return polygons;\n}\nfunction updatePoint(p, bbox, polyBBox, worldSize) {\n if (p[0] < polyBBox[0] || p[0] > polyBBox[2]) {\n var halfWorldSize = worldSize * 0.5;\n var shift = p[0] - polyBBox[0] > halfWorldSize ? -worldSize : polyBBox[0] - p[0] > halfWorldSize ? worldSize : 0;\n if (shift === 0) {\n shift = p[0] - polyBBox[2] > halfWorldSize ? -worldSize : polyBBox[2] - p[0] > halfWorldSize ? worldSize : 0;\n }\n p[0] += shift;\n }\n updateBBox(bbox, p);\n}\nfunction resetBBox(bbox) {\n bbox[0] = bbox[1] = Infinity;\n bbox[2] = bbox[3] = -Infinity;\n}\nfunction getTilePoints(geometry, pointBBox, polyBBox, canonical) {\n var worldSize = Math.pow(2, canonical.z) * EXTENT;\n var shifts = [\n canonical.x * EXTENT,\n canonical.y * EXTENT\n ];\n var tilePoints = [];\n for (var i$1 = 0, list$1 = geometry; i$1 < list$1.length; i$1 += 1) {\n var points = list$1[i$1];\n for (var i = 0, list = points; i < list.length; i += 1) {\n var point = list[i];\n var p = [\n point.x + shifts[0],\n point.y + shifts[1]\n ];\n updatePoint(p, pointBBox, polyBBox, worldSize);\n tilePoints.push(p);\n }\n }\n return tilePoints;\n}\nfunction getTileLines(geometry, lineBBox, polyBBox, canonical) {\n var worldSize = Math.pow(2, canonical.z) * EXTENT;\n var shifts = [\n canonical.x * EXTENT,\n canonical.y * EXTENT\n ];\n var tileLines = [];\n for (var i$1 = 0, list$1 = geometry; i$1 < list$1.length; i$1 += 1) {\n var line = list$1[i$1];\n var tileLine = [];\n for (var i = 0, list = line; i < list.length; i += 1) {\n var point = list[i];\n var p = [\n point.x + shifts[0],\n point.y + shifts[1]\n ];\n updateBBox(lineBBox, p);\n tileLine.push(p);\n }\n tileLines.push(tileLine);\n }\n if (lineBBox[2] - lineBBox[0] <= worldSize / 2) {\n resetBBox(lineBBox);\n for (var i$3 = 0, list$3 = tileLines; i$3 < list$3.length; i$3 += 1) {\n var line$1 = list$3[i$3];\n for (var i$2 = 0, list$2 = line$1; i$2 < list$2.length; i$2 += 1) {\n var p$1 = list$2[i$2];\n updatePoint(p$1, lineBBox, polyBBox, worldSize);\n }\n }\n }\n return tileLines;\n}\nfunction pointsWithinPolygons(ctx, polygonGeometry) {\n var pointBBox = [\n Infinity,\n Infinity,\n -Infinity,\n -Infinity\n ];\n var polyBBox = [\n Infinity,\n Infinity,\n -Infinity,\n -Infinity\n ];\n var canonical = ctx.canonicalID();\n if (polygonGeometry.type === 'Polygon') {\n var tilePolygon = getTilePolygon(polygonGeometry.coordinates, polyBBox, canonical);\n var tilePoints = getTilePoints(ctx.geometry(), pointBBox, polyBBox, canonical);\n if (!boxWithinBox(pointBBox, polyBBox)) {\n return false;\n }\n for (var i = 0, list = tilePoints; i < list.length; i += 1) {\n var point = list[i];\n if (!pointWithinPolygon(point, tilePolygon)) {\n return false;\n }\n }\n }\n if (polygonGeometry.type === 'MultiPolygon') {\n var tilePolygons = getTilePolygons(polygonGeometry.coordinates, polyBBox, canonical);\n var tilePoints$1 = getTilePoints(ctx.geometry(), pointBBox, polyBBox, canonical);\n if (!boxWithinBox(pointBBox, polyBBox)) {\n return false;\n }\n for (var i$1 = 0, list$1 = tilePoints$1; i$1 < list$1.length; i$1 += 1) {\n var point$1 = list$1[i$1];\n if (!pointWithinPolygons(point$1, tilePolygons)) {\n return false;\n }\n }\n }\n return true;\n}\nfunction linesWithinPolygons(ctx, polygonGeometry) {\n var lineBBox = [\n Infinity,\n Infinity,\n -Infinity,\n -Infinity\n ];\n var polyBBox = [\n Infinity,\n Infinity,\n -Infinity,\n -Infinity\n ];\n var canonical = ctx.canonicalID();\n if (polygonGeometry.type === 'Polygon') {\n var tilePolygon = getTilePolygon(polygonGeometry.coordinates, polyBBox, canonical);\n var tileLines = getTileLines(ctx.geometry(), lineBBox, polyBBox, canonical);\n if (!boxWithinBox(lineBBox, polyBBox)) {\n return false;\n }\n for (var i = 0, list = tileLines; i < list.length; i += 1) {\n var line = list[i];\n if (!lineStringWithinPolygon(line, tilePolygon)) {\n return false;\n }\n }\n }\n if (polygonGeometry.type === 'MultiPolygon') {\n var tilePolygons = getTilePolygons(polygonGeometry.coordinates, polyBBox, canonical);\n var tileLines$1 = getTileLines(ctx.geometry(), lineBBox, polyBBox, canonical);\n if (!boxWithinBox(lineBBox, polyBBox)) {\n return false;\n }\n for (var i$1 = 0, list$1 = tileLines$1; i$1 < list$1.length; i$1 += 1) {\n var line$1 = list$1[i$1];\n if (!lineStringWithinPolygons(line$1, tilePolygons)) {\n return false;\n }\n }\n }\n return true;\n}\nvar Within = function Within(geojson, geometries) {\n this.type = BooleanType;\n this.geojson = geojson;\n this.geometries = geometries;\n};\nWithin.parse = function parse(args, context) {\n if (args.length !== 2) {\n return context.error('\\'within\\' expression requires exactly one argument, but found ' + (args.length - 1) + ' instead.');\n }\n if (isValue(args[1])) {\n var geojson = args[1];\n if (geojson.type === 'FeatureCollection') {\n for (var i = 0; i < geojson.features.length; ++i) {\n var type = geojson.features[i].geometry.type;\n if (type === 'Polygon' || type === 'MultiPolygon') {\n return new Within(geojson, geojson.features[i].geometry);\n }\n }\n } else if (geojson.type === 'Feature') {\n var type$1 = geojson.geometry.type;\n if (type$1 === 'Polygon' || type$1 === 'MultiPolygon') {\n return new Within(geojson, geojson.geometry);\n }\n } else if (geojson.type === 'Polygon' || geojson.type === 'MultiPolygon') {\n return new Within(geojson, geojson);\n }\n }\n return context.error('\\'within\\' expression requires valid geojson object that contains polygon geometry type.');\n};\nWithin.prototype.evaluate = function evaluate(ctx) {\n if (ctx.geometry() != null && ctx.canonicalID() != null) {\n if (ctx.geometryType() === 'Point') {\n return pointsWithinPolygons(ctx, this.geometries);\n } else if (ctx.geometryType() === 'LineString') {\n return linesWithinPolygons(ctx, this.geometries);\n }\n }\n return false;\n};\nWithin.prototype.eachChild = function eachChild() {\n};\nWithin.prototype.outputDefined = function outputDefined() {\n return true;\n};\nWithin.prototype.serialize = function serialize() {\n return [\n 'within',\n this.geojson\n ];\n};\n\nfunction isFeatureConstant(e) {\n if (e instanceof CompoundExpression) {\n if (e.name === 'get' && e.args.length === 1) {\n return false;\n } else if (e.name === 'feature-state') {\n return false;\n } else if (e.name === 'has' && e.args.length === 1) {\n return false;\n } else if (e.name === 'properties' || e.name === 'geometry-type' || e.name === 'id') {\n return false;\n } else if (/^filter-/.test(e.name)) {\n return false;\n }\n }\n if (e instanceof Within) {\n return false;\n }\n var result = true;\n e.eachChild(function (arg) {\n if (result && !isFeatureConstant(arg)) {\n result = false;\n }\n });\n return result;\n}\nfunction isStateConstant(e) {\n if (e instanceof CompoundExpression) {\n if (e.name === 'feature-state') {\n return false;\n }\n }\n var result = true;\n e.eachChild(function (arg) {\n if (result && !isStateConstant(arg)) {\n result = false;\n }\n });\n return result;\n}\nfunction isGlobalPropertyConstant(e, properties) {\n if (e instanceof CompoundExpression && properties.indexOf(e.name) >= 0) {\n return false;\n }\n var result = true;\n e.eachChild(function (arg) {\n if (result && !isGlobalPropertyConstant(arg, properties)) {\n result = false;\n }\n });\n return result;\n}\n\nvar Var = function Var(name, boundExpression) {\n this.type = boundExpression.type;\n this.name = name;\n this.boundExpression = boundExpression;\n};\nVar.parse = function parse(args, context) {\n if (args.length !== 2 || typeof args[1] !== 'string') {\n return context.error('\\'var\\' expression requires exactly one string literal argument.');\n }\n var name = args[1];\n if (!context.scope.has(name)) {\n return context.error('Unknown variable \"' + name + '\". Make sure \"' + name + '\" has been bound in an enclosing \"let\" expression before using it.', 1);\n }\n return new Var(name, context.scope.get(name));\n};\nVar.prototype.evaluate = function evaluate(ctx) {\n return this.boundExpression.evaluate(ctx);\n};\nVar.prototype.eachChild = function eachChild() {\n};\nVar.prototype.outputDefined = function outputDefined() {\n return false;\n};\nVar.prototype.serialize = function serialize() {\n return [\n 'var',\n this.name\n ];\n};\n\nvar ParsingContext = function ParsingContext(registry, path, expectedType, scope, errors) {\n if (path === void 0)\n path = [];\n if (scope === void 0)\n scope = new Scope();\n if (errors === void 0)\n errors = [];\n this.registry = registry;\n this.path = path;\n this.key = path.map(function (part) {\n return '[' + part + ']';\n }).join('');\n this.scope = scope;\n this.errors = errors;\n this.expectedType = expectedType;\n};\nParsingContext.prototype.parse = function parse(expr, index, expectedType, bindings, options) {\n if (options === void 0)\n options = {};\n if (index) {\n return this.concat(index, expectedType, bindings)._parse(expr, options);\n }\n return this._parse(expr, options);\n};\nParsingContext.prototype._parse = function _parse(expr, options) {\n if (expr === null || typeof expr === 'string' || typeof expr === 'boolean' || typeof expr === 'number') {\n expr = [\n 'literal',\n expr\n ];\n }\n function annotate(parsed, type, typeAnnotation) {\n if (typeAnnotation === 'assert') {\n return new Assertion(type, [parsed]);\n } else if (typeAnnotation === 'coerce') {\n return new Coercion(type, [parsed]);\n } else {\n return parsed;\n }\n }\n if (Array.isArray(expr)) {\n if (expr.length === 0) {\n return this.error('Expected an array with at least one element. If you wanted a literal array, use [\"literal\", []].');\n }\n var op = expr[0];\n if (typeof op !== 'string') {\n this.error('Expression name must be a string, but found ' + typeof op + ' instead. If you wanted a literal array, use [\"literal\", [...]].', 0);\n return null;\n }\n var Expr = this.registry[op];\n if (Expr) {\n var parsed = Expr.parse(expr, this);\n if (!parsed) {\n return null;\n }\n if (this.expectedType) {\n var expected = this.expectedType;\n var actual = parsed.type;\n if ((expected.kind === 'string' || expected.kind === 'number' || expected.kind === 'boolean' || expected.kind === 'object' || expected.kind === 'array') && actual.kind === 'value') {\n parsed = annotate(parsed, expected, options.typeAnnotation || 'assert');\n } else if ((expected.kind === 'color' || expected.kind === 'formatted' || expected.kind === 'resolvedImage') && (actual.kind === 'value' || actual.kind === 'string')) {\n parsed = annotate(parsed, expected, options.typeAnnotation || 'coerce');\n } else if (this.checkSubtype(expected, actual)) {\n return null;\n }\n }\n if (!(parsed instanceof Literal) && parsed.type.kind !== 'resolvedImage' && isConstant(parsed)) {\n var ec = new EvaluationContext();\n try {\n parsed = new Literal(parsed.type, parsed.evaluate(ec));\n } catch (e) {\n this.error(e.message);\n return null;\n }\n }\n return parsed;\n }\n return this.error('Unknown expression \"' + op + '\". If you wanted a literal array, use [\"literal\", [...]].', 0);\n } else if (typeof expr === 'undefined') {\n return this.error('\\'undefined\\' value invalid. Use null instead.');\n } else if (typeof expr === 'object') {\n return this.error('Bare objects invalid. Use [\"literal\", {...}] instead.');\n } else {\n return this.error('Expected an array, but found ' + typeof expr + ' instead.');\n }\n};\nParsingContext.prototype.concat = function concat(index, expectedType, bindings) {\n var path = typeof index === 'number' ? this.path.concat(index) : this.path;\n var scope = bindings ? this.scope.concat(bindings) : this.scope;\n return new ParsingContext(this.registry, path, expectedType || null, scope, this.errors);\n};\nParsingContext.prototype.error = function error(error$1) {\n var keys = [], len = arguments.length - 1;\n while (len-- > 0)\n keys[len] = arguments[len + 1];\n var key = '' + this.key + keys.map(function (k) {\n return '[' + k + ']';\n }).join('');\n this.errors.push(new ParsingError(key, error$1));\n};\nParsingContext.prototype.checkSubtype = function checkSubtype$1(expected, t) {\n var error = checkSubtype(expected, t);\n if (error) {\n this.error(error);\n }\n return error;\n};\nfunction isConstant(expression) {\n if (expression instanceof Var) {\n return isConstant(expression.boundExpression);\n } else if (expression instanceof CompoundExpression && expression.name === 'error') {\n return false;\n } else if (expression instanceof CollatorExpression) {\n return false;\n } else if (expression instanceof Within) {\n return false;\n }\n var isTypeAnnotation = expression instanceof Coercion || expression instanceof Assertion;\n var childrenConstant = true;\n expression.eachChild(function (child) {\n if (isTypeAnnotation) {\n childrenConstant = childrenConstant && isConstant(child);\n } else {\n childrenConstant = childrenConstant && child instanceof Literal;\n }\n });\n if (!childrenConstant) {\n return false;\n }\n return isFeatureConstant(expression) && isGlobalPropertyConstant(expression, [\n 'zoom',\n 'heatmap-density',\n 'line-progress',\n 'accumulated',\n 'is-supported-script'\n ]);\n}\n\nfunction findStopLessThanOrEqualTo(stops, input) {\n var lastIndex = stops.length - 1;\n var lowerIndex = 0;\n var upperIndex = lastIndex;\n var currentIndex = 0;\n var currentValue, nextValue;\n while (lowerIndex <= upperIndex) {\n currentIndex = Math.floor((lowerIndex + upperIndex) / 2);\n currentValue = stops[currentIndex];\n nextValue = stops[currentIndex + 1];\n if (currentValue <= input) {\n if (currentIndex === lastIndex || input < nextValue) {\n return currentIndex;\n }\n lowerIndex = currentIndex + 1;\n } else if (currentValue > input) {\n upperIndex = currentIndex - 1;\n } else {\n throw new RuntimeError('Input is not a number.');\n }\n }\n return 0;\n}\n\nvar Step = function Step(type, input, stops) {\n this.type = type;\n this.input = input;\n this.labels = [];\n this.outputs = [];\n for (var i = 0, list = stops; i < list.length; i += 1) {\n var ref = list[i];\n var label = ref[0];\n var expression = ref[1];\n this.labels.push(label);\n this.outputs.push(expression);\n }\n};\nStep.parse = function parse(args, context) {\n if (args.length - 1 < 4) {\n return context.error('Expected at least 4 arguments, but found only ' + (args.length - 1) + '.');\n }\n if ((args.length - 1) % 2 !== 0) {\n return context.error('Expected an even number of arguments.');\n }\n var input = context.parse(args[1], 1, NumberType);\n if (!input) {\n return null;\n }\n var stops = [];\n var outputType = null;\n if (context.expectedType && context.expectedType.kind !== 'value') {\n outputType = context.expectedType;\n }\n for (var i = 1; i < args.length; i += 2) {\n var label = i === 1 ? -Infinity : args[i];\n var value = args[i + 1];\n var labelKey = i;\n var valueKey = i + 1;\n if (typeof label !== 'number') {\n return context.error('Input/output pairs for \"step\" expressions must be defined using literal numeric values (not computed expressions) for the input values.', labelKey);\n }\n if (stops.length && stops[stops.length - 1][0] >= label) {\n return context.error('Input/output pairs for \"step\" expressions must be arranged with input values in strictly ascending order.', labelKey);\n }\n var parsed = context.parse(value, valueKey, outputType);\n if (!parsed) {\n return null;\n }\n outputType = outputType || parsed.type;\n stops.push([\n label,\n parsed\n ]);\n }\n return new Step(outputType, input, stops);\n};\nStep.prototype.evaluate = function evaluate(ctx) {\n var labels = this.labels;\n var outputs = this.outputs;\n if (labels.length === 1) {\n return outputs[0].evaluate(ctx);\n }\n var value = this.input.evaluate(ctx);\n if (value <= labels[0]) {\n return outputs[0].evaluate(ctx);\n }\n var stopCount = labels.length;\n if (value >= labels[stopCount - 1]) {\n return outputs[stopCount - 1].evaluate(ctx);\n }\n var index = findStopLessThanOrEqualTo(labels, value);\n return outputs[index].evaluate(ctx);\n};\nStep.prototype.eachChild = function eachChild(fn) {\n fn(this.input);\n for (var i = 0, list = this.outputs; i < list.length; i += 1) {\n var expression = list[i];\n fn(expression);\n }\n};\nStep.prototype.outputDefined = function outputDefined() {\n return this.outputs.every(function (out) {\n return out.outputDefined();\n });\n};\nStep.prototype.serialize = function serialize() {\n var serialized = [\n 'step',\n this.input.serialize()\n ];\n for (var i = 0; i < this.labels.length; i++) {\n if (i > 0) {\n serialized.push(this.labels[i]);\n }\n serialized.push(this.outputs[i].serialize());\n }\n return serialized;\n};\n\nfunction number(a, b, t) {\n return a * (1 - t) + b * t;\n}\nfunction color(from, to, t) {\n return new Color(number(from.r, to.r, t), number(from.g, to.g, t), number(from.b, to.b, t), number(from.a, to.a, t));\n}\nfunction array$1(from, to, t) {\n return from.map(function (d, i) {\n return number(d, to[i], t);\n });\n}\n\nvar interpolate = /*#__PURE__*/Object.freeze({\n__proto__: null,\nnumber: number,\ncolor: color,\narray: array$1\n});\n\nvar Xn = 0.95047, Yn = 1, Zn = 1.08883, t0 = 4 / 29, t1 = 6 / 29, t2 = 3 * t1 * t1, t3 = t1 * t1 * t1, deg2rad = Math.PI / 180, rad2deg = 180 / Math.PI;\nfunction xyz2lab(t) {\n return t > t3 ? Math.pow(t, 1 / 3) : t / t2 + t0;\n}\nfunction lab2xyz(t) {\n return t > t1 ? t * t * t : t2 * (t - t0);\n}\nfunction xyz2rgb(x) {\n return 255 * (x <= 0.0031308 ? 12.92 * x : 1.055 * Math.pow(x, 1 / 2.4) - 0.055);\n}\nfunction rgb2xyz(x) {\n x /= 255;\n return x <= 0.04045 ? x / 12.92 : Math.pow((x + 0.055) / 1.055, 2.4);\n}\nfunction rgbToLab(rgbColor) {\n var b = rgb2xyz(rgbColor.r), a = rgb2xyz(rgbColor.g), l = rgb2xyz(rgbColor.b), x = xyz2lab((0.4124564 * b + 0.3575761 * a + 0.1804375 * l) / Xn), y = xyz2lab((0.2126729 * b + 0.7151522 * a + 0.072175 * l) / Yn), z = xyz2lab((0.0193339 * b + 0.119192 * a + 0.9503041 * l) / Zn);\n return {\n l: 116 * y - 16,\n a: 500 * (x - y),\n b: 200 * (y - z),\n alpha: rgbColor.a\n };\n}\nfunction labToRgb(labColor) {\n var y = (labColor.l + 16) / 116, x = isNaN(labColor.a) ? y : y + labColor.a / 500, z = isNaN(labColor.b) ? y : y - labColor.b / 200;\n y = Yn * lab2xyz(y);\n x = Xn * lab2xyz(x);\n z = Zn * lab2xyz(z);\n return new Color(xyz2rgb(3.2404542 * x - 1.5371385 * y - 0.4985314 * z), xyz2rgb(-0.969266 * x + 1.8760108 * y + 0.041556 * z), xyz2rgb(0.0556434 * x - 0.2040259 * y + 1.0572252 * z), labColor.alpha);\n}\nfunction interpolateLab(from, to, t) {\n return {\n l: number(from.l, to.l, t),\n a: number(from.a, to.a, t),\n b: number(from.b, to.b, t),\n alpha: number(from.alpha, to.alpha, t)\n };\n}\nfunction rgbToHcl(rgbColor) {\n var ref = rgbToLab(rgbColor);\n var l = ref.l;\n var a = ref.a;\n var b = ref.b;\n var h = Math.atan2(b, a) * rad2deg;\n return {\n h: h < 0 ? h + 360 : h,\n c: Math.sqrt(a * a + b * b),\n l: l,\n alpha: rgbColor.a\n };\n}\nfunction hclToRgb(hclColor) {\n var h = hclColor.h * deg2rad, c = hclColor.c, l = hclColor.l;\n return labToRgb({\n l: l,\n a: Math.cos(h) * c,\n b: Math.sin(h) * c,\n alpha: hclColor.alpha\n });\n}\nfunction interpolateHue(a, b, t) {\n var d = b - a;\n return a + t * (d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d);\n}\nfunction interpolateHcl(from, to, t) {\n return {\n h: interpolateHue(from.h, to.h, t),\n c: number(from.c, to.c, t),\n l: number(from.l, to.l, t),\n alpha: number(from.alpha, to.alpha, t)\n };\n}\nvar lab = {\n forward: rgbToLab,\n reverse: labToRgb,\n interpolate: interpolateLab\n};\nvar hcl = {\n forward: rgbToHcl,\n reverse: hclToRgb,\n interpolate: interpolateHcl\n};\n\nvar colorSpaces = /*#__PURE__*/Object.freeze({\n__proto__: null,\nlab: lab,\nhcl: hcl\n});\n\nvar Interpolate = function Interpolate(type, operator, interpolation, input, stops) {\n this.type = type;\n this.operator = operator;\n this.interpolation = interpolation;\n this.input = input;\n this.labels = [];\n this.outputs = [];\n for (var i = 0, list = stops; i < list.length; i += 1) {\n var ref = list[i];\n var label = ref[0];\n var expression = ref[1];\n this.labels.push(label);\n this.outputs.push(expression);\n }\n};\nInterpolate.interpolationFactor = function interpolationFactor(interpolation, input, lower, upper) {\n var t = 0;\n if (interpolation.name === 'exponential') {\n t = exponentialInterpolation(input, interpolation.base, lower, upper);\n } else if (interpolation.name === 'linear') {\n t = exponentialInterpolation(input, 1, lower, upper);\n } else if (interpolation.name === 'cubic-bezier') {\n var c = interpolation.controlPoints;\n var ub = new unitbezier(c[0], c[1], c[2], c[3]);\n t = ub.solve(exponentialInterpolation(input, 1, lower, upper));\n }\n return t;\n};\nInterpolate.parse = function parse(args, context) {\n var operator = args[0];\n var interpolation = args[1];\n var input = args[2];\n var rest = args.slice(3);\n if (!Array.isArray(interpolation) || interpolation.length === 0) {\n return context.error('Expected an interpolation type expression.', 1);\n }\n if (interpolation[0] === 'linear') {\n interpolation = { name: 'linear' };\n } else if (interpolation[0] === 'exponential') {\n var base = interpolation[1];\n if (typeof base !== 'number') {\n return context.error('Exponential interpolation requires a numeric base.', 1, 1);\n }\n interpolation = {\n name: 'exponential',\n base: base\n };\n } else if (interpolation[0] === 'cubic-bezier') {\n var controlPoints = interpolation.slice(1);\n if (controlPoints.length !== 4 || controlPoints.some(function (t) {\n return typeof t !== 'number' || t < 0 || t > 1;\n })) {\n return context.error('Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.', 1);\n }\n interpolation = {\n name: 'cubic-bezier',\n controlPoints: controlPoints\n };\n } else {\n return context.error('Unknown interpolation type ' + String(interpolation[0]), 1, 0);\n }\n if (args.length - 1 < 4) {\n return context.error('Expected at least 4 arguments, but found only ' + (args.length - 1) + '.');\n }\n if ((args.length - 1) % 2 !== 0) {\n return context.error('Expected an even number of arguments.');\n }\n input = context.parse(input, 2, NumberType);\n if (!input) {\n return null;\n }\n var stops = [];\n var outputType = null;\n if (operator === 'interpolate-hcl' || operator === 'interpolate-lab') {\n outputType = ColorType;\n } else if (context.expectedType && context.expectedType.kind !== 'value') {\n outputType = context.expectedType;\n }\n for (var i = 0; i < rest.length; i += 2) {\n var label = rest[i];\n var value = rest[i + 1];\n var labelKey = i + 3;\n var valueKey = i + 4;\n if (typeof label !== 'number') {\n return context.error('Input/output pairs for \"interpolate\" expressions must be defined using literal numeric values (not computed expressions) for the input values.', labelKey);\n }\n if (stops.length && stops[stops.length - 1][0] >= label) {\n return context.error('Input/output pairs for \"interpolate\" expressions must be arranged with input values in strictly ascending order.', labelKey);\n }\n var parsed = context.parse(value, valueKey, outputType);\n if (!parsed) {\n return null;\n }\n outputType = outputType || parsed.type;\n stops.push([\n label,\n parsed\n ]);\n }\n if (outputType.kind !== 'number' && outputType.kind !== 'color' && !(outputType.kind === 'array' && outputType.itemType.kind === 'number' && typeof outputType.N === 'number')) {\n return context.error('Type ' + toString(outputType) + ' is not interpolatable.');\n }\n return new Interpolate(outputType, operator, interpolation, input, stops);\n};\nInterpolate.prototype.evaluate = function evaluate(ctx) {\n var labels = this.labels;\n var outputs = this.outputs;\n if (labels.length === 1) {\n return outputs[0].evaluate(ctx);\n }\n var value = this.input.evaluate(ctx);\n if (value <= labels[0]) {\n return outputs[0].evaluate(ctx);\n }\n var stopCount = labels.length;\n if (value >= labels[stopCount - 1]) {\n return outputs[stopCount - 1].evaluate(ctx);\n }\n var index = findStopLessThanOrEqualTo(labels, value);\n var lower = labels[index];\n var upper = labels[index + 1];\n var t = Interpolate.interpolationFactor(this.interpolation, value, lower, upper);\n var outputLower = outputs[index].evaluate(ctx);\n var outputUpper = outputs[index + 1].evaluate(ctx);\n if (this.operator === 'interpolate') {\n return interpolate[this.type.kind.toLowerCase()](outputLower, outputUpper, t);\n } else if (this.operator === 'interpolate-hcl') {\n return hcl.reverse(hcl.interpolate(hcl.forward(outputLower), hcl.forward(outputUpper), t));\n } else {\n return lab.reverse(lab.interpolate(lab.forward(outputLower), lab.forward(outputUpper), t));\n }\n};\nInterpolate.prototype.eachChild = function eachChild(fn) {\n fn(this.input);\n for (var i = 0, list = this.outputs; i < list.length; i += 1) {\n var expression = list[i];\n fn(expression);\n }\n};\nInterpolate.prototype.outputDefined = function outputDefined() {\n return this.outputs.every(function (out) {\n return out.outputDefined();\n });\n};\nInterpolate.prototype.serialize = function serialize() {\n var interpolation;\n if (this.interpolation.name === 'linear') {\n interpolation = ['linear'];\n } else if (this.interpolation.name === 'exponential') {\n if (this.interpolation.base === 1) {\n interpolation = ['linear'];\n } else {\n interpolation = [\n 'exponential',\n this.interpolation.base\n ];\n }\n } else {\n interpolation = ['cubic-bezier'].concat(this.interpolation.controlPoints);\n }\n var serialized = [\n this.operator,\n interpolation,\n this.input.serialize()\n ];\n for (var i = 0; i < this.labels.length; i++) {\n serialized.push(this.labels[i], this.outputs[i].serialize());\n }\n return serialized;\n};\nfunction exponentialInterpolation(input, base, lowerValue, upperValue) {\n var difference = upperValue - lowerValue;\n var progress = input - lowerValue;\n if (difference === 0) {\n return 0;\n } else if (base === 1) {\n return progress / difference;\n } else {\n return (Math.pow(base, progress) - 1) / (Math.pow(base, difference) - 1);\n }\n}\n\nvar Coalesce = function Coalesce(type, args) {\n this.type = type;\n this.args = args;\n};\nCoalesce.parse = function parse(args, context) {\n if (args.length < 2) {\n return context.error('Expectected at least one argument.');\n }\n var outputType = null;\n var expectedType = context.expectedType;\n if (expectedType && expectedType.kind !== 'value') {\n outputType = expectedType;\n }\n var parsedArgs = [];\n for (var i = 0, list = args.slice(1); i < list.length; i += 1) {\n var arg = list[i];\n var parsed = context.parse(arg, 1 + parsedArgs.length, outputType, undefined, { typeAnnotation: 'omit' });\n if (!parsed) {\n return null;\n }\n outputType = outputType || parsed.type;\n parsedArgs.push(parsed);\n }\n var needsAnnotation = expectedType && parsedArgs.some(function (arg) {\n return checkSubtype(expectedType, arg.type);\n });\n return needsAnnotation ? new Coalesce(ValueType, parsedArgs) : new Coalesce(outputType, parsedArgs);\n};\nCoalesce.prototype.evaluate = function evaluate(ctx) {\n var result = null;\n var argCount = 0;\n var requestedImageName;\n for (var i = 0, list = this.args; i < list.length; i += 1) {\n var arg = list[i];\n argCount++;\n result = arg.evaluate(ctx);\n if (result && result instanceof ResolvedImage && !result.available) {\n if (!requestedImageName) {\n requestedImageName = result.name;\n }\n result = null;\n if (argCount === this.args.length) {\n result = requestedImageName;\n }\n }\n if (result !== null) {\n break;\n }\n }\n return result;\n};\nCoalesce.prototype.eachChild = function eachChild(fn) {\n this.args.forEach(fn);\n};\nCoalesce.prototype.outputDefined = function outputDefined() {\n return this.args.every(function (arg) {\n return arg.outputDefined();\n });\n};\nCoalesce.prototype.serialize = function serialize() {\n var serialized = ['coalesce'];\n this.eachChild(function (child) {\n serialized.push(child.serialize());\n });\n return serialized;\n};\n\nvar Let = function Let(bindings, result) {\n this.type = result.type;\n this.bindings = [].concat(bindings);\n this.result = result;\n};\nLet.prototype.evaluate = function evaluate(ctx) {\n return this.result.evaluate(ctx);\n};\nLet.prototype.eachChild = function eachChild(fn) {\n for (var i = 0, list = this.bindings; i < list.length; i += 1) {\n var binding = list[i];\n fn(binding[1]);\n }\n fn(this.result);\n};\nLet.parse = function parse(args, context) {\n if (args.length < 4) {\n return context.error('Expected at least 3 arguments, but found ' + (args.length - 1) + ' instead.');\n }\n var bindings = [];\n for (var i = 1; i < args.length - 1; i += 2) {\n var name = args[i];\n if (typeof name !== 'string') {\n return context.error('Expected string, but found ' + typeof name + ' instead.', i);\n }\n if (/[^a-zA-Z0-9_]/.test(name)) {\n return context.error('Variable names must contain only alphanumeric characters or \\'_\\'.', i);\n }\n var value = context.parse(args[i + 1], i + 1);\n if (!value) {\n return null;\n }\n bindings.push([\n name,\n value\n ]);\n }\n var result = context.parse(args[args.length - 1], args.length - 1, context.expectedType, bindings);\n if (!result) {\n return null;\n }\n return new Let(bindings, result);\n};\nLet.prototype.outputDefined = function outputDefined() {\n return this.result.outputDefined();\n};\nLet.prototype.serialize = function serialize() {\n var serialized = ['let'];\n for (var i = 0, list = this.bindings; i < list.length; i += 1) {\n var ref = list[i];\n var name = ref[0];\n var expr = ref[1];\n serialized.push(name, expr.serialize());\n }\n serialized.push(this.result.serialize());\n return serialized;\n};\n\nvar At = function At(type, index, input) {\n this.type = type;\n this.index = index;\n this.input = input;\n};\nAt.parse = function parse(args, context) {\n if (args.length !== 3) {\n return context.error('Expected 2 arguments, but found ' + (args.length - 1) + ' instead.');\n }\n var index = context.parse(args[1], 1, NumberType);\n var input = context.parse(args[2], 2, array(context.expectedType || ValueType));\n if (!index || !input) {\n return null;\n }\n var t = input.type;\n return new At(t.itemType, index, input);\n};\nAt.prototype.evaluate = function evaluate(ctx) {\n var index = this.index.evaluate(ctx);\n var array = this.input.evaluate(ctx);\n if (index < 0) {\n throw new RuntimeError('Array index out of bounds: ' + index + ' < 0.');\n }\n if (index >= array.length) {\n throw new RuntimeError('Array index out of bounds: ' + index + ' > ' + (array.length - 1) + '.');\n }\n if (index !== Math.floor(index)) {\n throw new RuntimeError('Array index must be an integer, but found ' + index + ' instead.');\n }\n return array[index];\n};\nAt.prototype.eachChild = function eachChild(fn) {\n fn(this.index);\n fn(this.input);\n};\nAt.prototype.outputDefined = function outputDefined() {\n return false;\n};\nAt.prototype.serialize = function serialize() {\n return [\n 'at',\n this.index.serialize(),\n this.input.serialize()\n ];\n};\n\nvar In = function In(needle, haystack) {\n this.type = BooleanType;\n this.needle = needle;\n this.haystack = haystack;\n};\nIn.parse = function parse(args, context) {\n if (args.length !== 3) {\n return context.error('Expected 2 arguments, but found ' + (args.length - 1) + ' instead.');\n }\n var needle = context.parse(args[1], 1, ValueType);\n var haystack = context.parse(args[2], 2, ValueType);\n if (!needle || !haystack) {\n return null;\n }\n if (!isValidType(needle.type, [\n BooleanType,\n StringType,\n NumberType,\n NullType,\n ValueType\n ])) {\n return context.error('Expected first argument to be of type boolean, string, number or null, but found ' + toString(needle.type) + ' instead');\n }\n return new In(needle, haystack);\n};\nIn.prototype.evaluate = function evaluate(ctx) {\n var needle = this.needle.evaluate(ctx);\n var haystack = this.haystack.evaluate(ctx);\n if (!haystack) {\n return false;\n }\n if (!isValidNativeType(needle, [\n 'boolean',\n 'string',\n 'number',\n 'null'\n ])) {\n throw new RuntimeError('Expected first argument to be of type boolean, string, number or null, but found ' + toString(typeOf(needle)) + ' instead.');\n }\n if (!isValidNativeType(haystack, [\n 'string',\n 'array'\n ])) {\n throw new RuntimeError('Expected second argument to be of type array or string, but found ' + toString(typeOf(haystack)) + ' instead.');\n }\n return haystack.indexOf(needle) >= 0;\n};\nIn.prototype.eachChild = function eachChild(fn) {\n fn(this.needle);\n fn(this.haystack);\n};\nIn.prototype.outputDefined = function outputDefined() {\n return true;\n};\nIn.prototype.serialize = function serialize() {\n return [\n 'in',\n this.needle.serialize(),\n this.haystack.serialize()\n ];\n};\n\nvar IndexOf = function IndexOf(needle, haystack, fromIndex) {\n this.type = NumberType;\n this.needle = needle;\n this.haystack = haystack;\n this.fromIndex = fromIndex;\n};\nIndexOf.parse = function parse(args, context) {\n if (args.length <= 2 || args.length >= 5) {\n return context.error('Expected 3 or 4 arguments, but found ' + (args.length - 1) + ' instead.');\n }\n var needle = context.parse(args[1], 1, ValueType);\n var haystack = context.parse(args[2], 2, ValueType);\n if (!needle || !haystack) {\n return null;\n }\n if (!isValidType(needle.type, [\n BooleanType,\n StringType,\n NumberType,\n NullType,\n ValueType\n ])) {\n return context.error('Expected first argument to be of type boolean, string, number or null, but found ' + toString(needle.type) + ' instead');\n }\n if (args.length === 4) {\n var fromIndex = context.parse(args[3], 3, NumberType);\n if (!fromIndex) {\n return null;\n }\n return new IndexOf(needle, haystack, fromIndex);\n } else {\n return new IndexOf(needle, haystack);\n }\n};\nIndexOf.prototype.evaluate = function evaluate(ctx) {\n var needle = this.needle.evaluate(ctx);\n var haystack = this.haystack.evaluate(ctx);\n if (!isValidNativeType(needle, [\n 'boolean',\n 'string',\n 'number',\n 'null'\n ])) {\n throw new RuntimeError('Expected first argument to be of type boolean, string, number or null, but found ' + toString(typeOf(needle)) + ' instead.');\n }\n if (!isValidNativeType(haystack, [\n 'string',\n 'array'\n ])) {\n throw new RuntimeError('Expected second argument to be of type array or string, but found ' + toString(typeOf(haystack)) + ' instead.');\n }\n if (this.fromIndex) {\n var fromIndex = this.fromIndex.evaluate(ctx);\n return haystack.indexOf(needle, fromIndex);\n }\n return haystack.indexOf(needle);\n};\nIndexOf.prototype.eachChild = function eachChild(fn) {\n fn(this.needle);\n fn(this.haystack);\n if (this.fromIndex) {\n fn(this.fromIndex);\n }\n};\nIndexOf.prototype.outputDefined = function outputDefined() {\n return false;\n};\nIndexOf.prototype.serialize = function serialize() {\n if (this.fromIndex != null && this.fromIndex !== undefined) {\n var fromIndex = this.fromIndex.serialize();\n return [\n 'index-of',\n this.needle.serialize(),\n this.haystack.serialize(),\n fromIndex\n ];\n }\n return [\n 'index-of',\n this.needle.serialize(),\n this.haystack.serialize()\n ];\n};\n\nvar Match = function Match(inputType, outputType, input, cases, outputs, otherwise) {\n this.inputType = inputType;\n this.type = outputType;\n this.input = input;\n this.cases = cases;\n this.outputs = outputs;\n this.otherwise = otherwise;\n};\nMatch.parse = function parse(args, context) {\n if (args.length < 5) {\n return context.error('Expected at least 4 arguments, but found only ' + (args.length - 1) + '.');\n }\n if (args.length % 2 !== 1) {\n return context.error('Expected an even number of arguments.');\n }\n var inputType;\n var outputType;\n if (context.expectedType && context.expectedType.kind !== 'value') {\n outputType = context.expectedType;\n }\n var cases = {};\n var outputs = [];\n for (var i = 2; i < args.length - 1; i += 2) {\n var labels = args[i];\n var value = args[i + 1];\n if (!Array.isArray(labels)) {\n labels = [labels];\n }\n var labelContext = context.concat(i);\n if (labels.length === 0) {\n return labelContext.error('Expected at least one branch label.');\n }\n for (var i$1 = 0, list = labels; i$1 < list.length; i$1 += 1) {\n var label = list[i$1];\n if (typeof label !== 'number' && typeof label !== 'string') {\n return labelContext.error('Branch labels must be numbers or strings.');\n } else if (typeof label === 'number' && Math.abs(label) > Number.MAX_SAFE_INTEGER) {\n return labelContext.error('Branch labels must be integers no larger than ' + Number.MAX_SAFE_INTEGER + '.');\n } else if (typeof label === 'number' && Math.floor(label) !== label) {\n return labelContext.error('Numeric branch labels must be integer values.');\n } else if (!inputType) {\n inputType = typeOf(label);\n } else if (labelContext.checkSubtype(inputType, typeOf(label))) {\n return null;\n }\n if (typeof cases[String(label)] !== 'undefined') {\n return labelContext.error('Branch labels must be unique.');\n }\n cases[String(label)] = outputs.length;\n }\n var result = context.parse(value, i, outputType);\n if (!result) {\n return null;\n }\n outputType = outputType || result.type;\n outputs.push(result);\n }\n var input = context.parse(args[1], 1, ValueType);\n if (!input) {\n return null;\n }\n var otherwise = context.parse(args[args.length - 1], args.length - 1, outputType);\n if (!otherwise) {\n return null;\n }\n if (input.type.kind !== 'value' && context.concat(1).checkSubtype(inputType, input.type)) {\n return null;\n }\n return new Match(inputType, outputType, input, cases, outputs, otherwise);\n};\nMatch.prototype.evaluate = function evaluate(ctx) {\n var input = this.input.evaluate(ctx);\n var output = typeOf(input) === this.inputType && this.outputs[this.cases[input]] || this.otherwise;\n return output.evaluate(ctx);\n};\nMatch.prototype.eachChild = function eachChild(fn) {\n fn(this.input);\n this.outputs.forEach(fn);\n fn(this.otherwise);\n};\nMatch.prototype.outputDefined = function outputDefined() {\n return this.outputs.every(function (out) {\n return out.outputDefined();\n }) && this.otherwise.outputDefined();\n};\nMatch.prototype.serialize = function serialize() {\n var this$1 = this;\n var serialized = [\n 'match',\n this.input.serialize()\n ];\n var sortedLabels = Object.keys(this.cases).sort();\n var groupedByOutput = [];\n var outputLookup = {};\n for (var i = 0, list = sortedLabels; i < list.length; i += 1) {\n var label = list[i];\n var outputIndex = outputLookup[this.cases[label]];\n if (outputIndex === undefined) {\n outputLookup[this.cases[label]] = groupedByOutput.length;\n groupedByOutput.push([\n this.cases[label],\n [label]\n ]);\n } else {\n groupedByOutput[outputIndex][1].push(label);\n }\n }\n var coerceLabel = function (label) {\n return this$1.inputType.kind === 'number' ? Number(label) : label;\n };\n for (var i$1 = 0, list$1 = groupedByOutput; i$1 < list$1.length; i$1 += 1) {\n var ref = list$1[i$1];\n var outputIndex = ref[0];\n var labels = ref[1];\n if (labels.length === 1) {\n serialized.push(coerceLabel(labels[0]));\n } else {\n serialized.push(labels.map(coerceLabel));\n }\n serialized.push(this.outputs[outputIndex$1].serialize());\n }\n serialized.push(this.otherwise.serialize());\n return serialized;\n};\n\nvar Case = function Case(type, branches, otherwise) {\n this.type = type;\n this.branches = branches;\n this.otherwise = otherwise;\n};\nCase.parse = function parse(args, context) {\n if (args.length < 4) {\n return context.error('Expected at least 3 arguments, but found only ' + (args.length - 1) + '.');\n }\n if (args.length % 2 !== 0) {\n return context.error('Expected an odd number of arguments.');\n }\n var outputType;\n if (context.expectedType && context.expectedType.kind !== 'value') {\n outputType = context.expectedType;\n }\n var branches = [];\n for (var i = 1; i < args.length - 1; i += 2) {\n var test = context.parse(args[i], i, BooleanType);\n if (!test) {\n return null;\n }\n var result = context.parse(args[i + 1], i + 1, outputType);\n if (!result) {\n return null;\n }\n branches.push([\n test,\n result\n ]);\n outputType = outputType || result.type;\n }\n var otherwise = context.parse(args[args.length - 1], args.length - 1, outputType);\n if (!otherwise) {\n return null;\n }\n return new Case(outputType, branches, otherwise);\n};\nCase.prototype.evaluate = function evaluate(ctx) {\n for (var i = 0, list = this.branches; i < list.length; i += 1) {\n var ref = list[i];\n var test = ref[0];\n var expression = ref[1];\n if (test.evaluate(ctx)) {\n return expression.evaluate(ctx);\n }\n }\n return this.otherwise.evaluate(ctx);\n};\nCase.prototype.eachChild = function eachChild(fn) {\n for (var i = 0, list = this.branches; i < list.length; i += 1) {\n var ref = list[i];\n var test = ref[0];\n var expression = ref[1];\n fn(test);\n fn(expression);\n }\n fn(this.otherwise);\n};\nCase.prototype.outputDefined = function outputDefined() {\n return this.branches.every(function (ref) {\n var _ = ref[0];\n var out = ref[1];\n return out.outputDefined();\n }) && this.otherwise.outputDefined();\n};\nCase.prototype.serialize = function serialize() {\n var serialized = ['case'];\n this.eachChild(function (child) {\n serialized.push(child.serialize());\n });\n return serialized;\n};\n\nvar Slice = function Slice(type, input, beginIndex, endIndex) {\n this.type = type;\n this.input = input;\n this.beginIndex = beginIndex;\n this.endIndex = endIndex;\n};\nSlice.parse = function parse(args, context) {\n if (args.length <= 2 || args.length >= 5) {\n return context.error('Expected 3 or 4 arguments, but found ' + (args.length - 1) + ' instead.');\n }\n var input = context.parse(args[1], 1, ValueType);\n var beginIndex = context.parse(args[2], 2, NumberType);\n if (!input || !beginIndex) {\n return null;\n }\n if (!isValidType(input.type, [\n array(ValueType),\n StringType,\n ValueType\n ])) {\n return context.error('Expected first argument to be of type array or string, but found ' + toString(input.type) + ' instead');\n }\n if (args.length === 4) {\n var endIndex = context.parse(args[3], 3, NumberType);\n if (!endIndex) {\n return null;\n }\n return new Slice(input.type, input, beginIndex, endIndex);\n } else {\n return new Slice(input.type, input, beginIndex);\n }\n};\nSlice.prototype.evaluate = function evaluate(ctx) {\n var input = this.input.evaluate(ctx);\n var beginIndex = this.beginIndex.evaluate(ctx);\n if (!isValidNativeType(input, [\n 'string',\n 'array'\n ])) {\n throw new RuntimeError('Expected first argument to be of type array or string, but found ' + toString(typeOf(input)) + ' instead.');\n }\n if (this.endIndex) {\n var endIndex = this.endIndex.evaluate(ctx);\n return input.slice(beginIndex, endIndex);\n }\n return input.slice(beginIndex);\n};\nSlice.prototype.eachChild = function eachChild(fn) {\n fn(this.input);\n fn(this.beginIndex);\n if (this.endIndex) {\n fn(this.endIndex);\n }\n};\nSlice.prototype.outputDefined = function outputDefined() {\n return false;\n};\nSlice.prototype.serialize = function serialize() {\n if (this.endIndex != null && this.endIndex !== undefined) {\n var endIndex = this.endIndex.serialize();\n return [\n 'slice',\n this.input.serialize(),\n this.beginIndex.serialize(),\n endIndex\n ];\n }\n return [\n 'slice',\n this.input.serialize(),\n this.beginIndex.serialize()\n ];\n};\n\nfunction isComparableType(op, type) {\n if (op === '==' || op === '!=') {\n return type.kind === 'boolean' || type.kind === 'string' || type.kind === 'number' || type.kind === 'null' || type.kind === 'value';\n } else {\n return type.kind === 'string' || type.kind === 'number' || type.kind === 'value';\n }\n}\nfunction eq(ctx, a, b) {\n return a === b;\n}\nfunction neq(ctx, a, b) {\n return a !== b;\n}\nfunction lt(ctx, a, b) {\n return a < b;\n}\nfunction gt(ctx, a, b) {\n return a > b;\n}\nfunction lteq(ctx, a, b) {\n return a <= b;\n}\nfunction gteq(ctx, a, b) {\n return a >= b;\n}\nfunction eqCollate(ctx, a, b, c) {\n return c.compare(a, b) === 0;\n}\nfunction neqCollate(ctx, a, b, c) {\n return !eqCollate(ctx, a, b, c);\n}\nfunction ltCollate(ctx, a, b, c) {\n return c.compare(a, b) < 0;\n}\nfunction gtCollate(ctx, a, b, c) {\n return c.compare(a, b) > 0;\n}\nfunction lteqCollate(ctx, a, b, c) {\n return c.compare(a, b) <= 0;\n}\nfunction gteqCollate(ctx, a, b, c) {\n return c.compare(a, b) >= 0;\n}\nfunction makeComparison(op, compareBasic, compareWithCollator) {\n var isOrderComparison = op !== '==' && op !== '!=';\n return function () {\n function Comparison(lhs, rhs, collator) {\n this.type = BooleanType;\n this.lhs = lhs;\n this.rhs = rhs;\n this.collator = collator;\n this.hasUntypedArgument = lhs.type.kind === 'value' || rhs.type.kind === 'value';\n }\n Comparison.parse = function parse(args, context) {\n if (args.length !== 3 && args.length !== 4) {\n return context.error('Expected two or three arguments.');\n }\n var op = args[0];\n var lhs = context.parse(args[1], 1, ValueType);\n if (!lhs) {\n return null;\n }\n if (!isComparableType(op, lhs.type)) {\n return context.concat(1).error('\"' + op + '\" comparisons are not supported for type \\'' + toString(lhs.type) + '\\'.');\n }\n var rhs = context.parse(args[2], 2, ValueType);\n if (!rhs) {\n return null;\n }\n if (!isComparableType(op, rhs.type)) {\n return context.concat(2).error('\"' + op + '\" comparisons are not supported for type \\'' + toString(rhs.type) + '\\'.');\n }\n if (lhs.type.kind !== rhs.type.kind && lhs.type.kind !== 'value' && rhs.type.kind !== 'value') {\n return context.error('Cannot compare types \\'' + toString(lhs.type) + '\\' and \\'' + toString(rhs.type) + '\\'.');\n }\n if (isOrderComparison) {\n if (lhs.type.kind === 'value' && rhs.type.kind !== 'value') {\n lhs = new Assertion(rhs.type, [lhs]);\n } else if (lhs.type.kind !== 'value' && rhs.type.kind === 'value') {\n rhs = new Assertion(lhs.type, [rhs]);\n }\n }\n var collator = null;\n if (args.length === 4) {\n if (lhs.type.kind !== 'string' && rhs.type.kind !== 'string' && lhs.type.kind !== 'value' && rhs.type.kind !== 'value') {\n return context.error('Cannot use collator to compare non-string types.');\n }\n collator = context.parse(args[3], 3, CollatorType);\n if (!collator) {\n return null;\n }\n }\n return new Comparison(lhs, rhs, collator);\n };\n Comparison.prototype.evaluate = function evaluate(ctx) {\n var lhs = this.lhs.evaluate(ctx);\n var rhs = this.rhs.evaluate(ctx);\n if (isOrderComparison && this.hasUntypedArgument) {\n var lt = typeOf(lhs);\n var rt = typeOf(rhs);\n if (lt.kind !== rt.kind || !(lt.kind === 'string' || lt.kind === 'number')) {\n throw new RuntimeError('Expected arguments for \"' + op + '\" to be (string, string) or (number, number), but found (' + lt.kind + ', ' + rt.kind + ') instead.');\n }\n }\n if (this.collator && !isOrderComparison && this.hasUntypedArgument) {\n var lt$1 = typeOf(lhs);\n var rt$1 = typeOf(rhs);\n if (lt$1.kind !== 'string' || rt$1.kind !== 'string') {\n return compareBasic(ctx, lhs, rhs);\n }\n }\n return this.collator ? compareWithCollator(ctx, lhs, rhs, this.collator.evaluate(ctx)) : compareBasic(ctx, lhs, rhs);\n };\n Comparison.prototype.eachChild = function eachChild(fn) {\n fn(this.lhs);\n fn(this.rhs);\n if (this.collator) {\n fn(this.collator);\n }\n };\n Comparison.prototype.outputDefined = function outputDefined() {\n return true;\n };\n Comparison.prototype.serialize = function serialize() {\n var serialized = [op];\n this.eachChild(function (child) {\n serialized.push(child.serialize());\n });\n return serialized;\n };\n return Comparison;\n }();\n}\nvar Equals = makeComparison('==', eq, eqCollate);\nvar NotEquals = makeComparison('!=', neq, neqCollate);\nvar LessThan = makeComparison('<', lt, ltCollate);\nvar GreaterThan = makeComparison('>', gt, gtCollate);\nvar LessThanOrEqual = makeComparison('<=', lteq, lteqCollate);\nvar GreaterThanOrEqual = makeComparison('>=', gteq, gteqCollate);\n\nvar NumberFormat = function NumberFormat(number, locale, currency, minFractionDigits, maxFractionDigits) {\n this.type = StringType;\n this.number = number;\n this.locale = locale;\n this.currency = currency;\n this.minFractionDigits = minFractionDigits;\n this.maxFractionDigits = maxFractionDigits;\n};\nNumberFormat.parse = function parse(args, context) {\n if (args.length !== 3) {\n return context.error('Expected two arguments.');\n }\n var number = context.parse(args[1], 1, NumberType);\n if (!number) {\n return null;\n }\n var options = args[2];\n if (typeof options !== 'object' || Array.isArray(options)) {\n return context.error('NumberFormat options argument must be an object.');\n }\n var locale = null;\n if (options['locale']) {\n locale = context.parse(options['locale'], 1, StringType);\n if (!locale) {\n return null;\n }\n }\n var currency = null;\n if (options['currency']) {\n currency = context.parse(options['currency'], 1, StringType);\n if (!currency) {\n return null;\n }\n }\n var minFractionDigits = null;\n if (options['min-fraction-digits']) {\n minFractionDigits = context.parse(options['min-fraction-digits'], 1, NumberType);\n if (!minFractionDigits) {\n return null;\n }\n }\n var maxFractionDigits = null;\n if (options['max-fraction-digits']) {\n maxFractionDigits = context.parse(options['max-fraction-digits'], 1, NumberType);\n if (!maxFractionDigits) {\n return null;\n }\n }\n return new NumberFormat(number, locale, currency, minFractionDigits, maxFractionDigits);\n};\nNumberFormat.prototype.evaluate = function evaluate(ctx) {\n return new Intl.NumberFormat(this.locale ? this.locale.evaluate(ctx) : [], {\n style: this.currency ? 'currency' : 'decimal',\n currency: this.currency ? this.currency.evaluate(ctx) : undefined,\n minimumFractionDigits: this.minFractionDigits ? this.minFractionDigits.evaluate(ctx) : undefined,\n maximumFractionDigits: this.maxFractionDigits ? this.maxFractionDigits.evaluate(ctx) : undefined\n }).format(this.number.evaluate(ctx));\n};\nNumberFormat.prototype.eachChild = function eachChild(fn) {\n fn(this.number);\n if (this.locale) {\n fn(this.locale);\n }\n if (this.currency) {\n fn(this.currency);\n }\n if (this.minFractionDigits) {\n fn(this.minFractionDigits);\n }\n if (this.maxFractionDigits) {\n fn(this.maxFractionDigits);\n }\n};\nNumberFormat.prototype.outputDefined = function outputDefined() {\n return false;\n};\nNumberFormat.prototype.serialize = function serialize() {\n var options = {};\n if (this.locale) {\n options['locale'] = this.locale.serialize();\n }\n if (this.currency) {\n options['currency'] = this.currency.serialize();\n }\n if (this.minFractionDigits) {\n options['min-fraction-digits'] = this.minFractionDigits.serialize();\n }\n if (this.maxFractionDigits) {\n options['max-fraction-digits'] = this.maxFractionDigits.serialize();\n }\n return [\n 'number-format',\n this.number.serialize(),\n options\n ];\n};\n\nvar Length = function Length(input) {\n this.type = NumberType;\n this.input = input;\n};\nLength.parse = function parse(args, context) {\n if (args.length !== 2) {\n return context.error('Expected 1 argument, but found ' + (args.length - 1) + ' instead.');\n }\n var input = context.parse(args[1], 1);\n if (!input) {\n return null;\n }\n if (input.type.kind !== 'array' && input.type.kind !== 'string' && input.type.kind !== 'value') {\n return context.error('Expected argument of type string or array, but found ' + toString(input.type) + ' instead.');\n }\n return new Length(input);\n};\nLength.prototype.evaluate = function evaluate(ctx) {\n var input = this.input.evaluate(ctx);\n if (typeof input === 'string') {\n return input.length;\n } else if (Array.isArray(input)) {\n return input.length;\n } else {\n throw new RuntimeError('Expected value to be of type string or array, but found ' + toString(typeOf(input)) + ' instead.');\n }\n};\nLength.prototype.eachChild = function eachChild(fn) {\n fn(this.input);\n};\nLength.prototype.outputDefined = function outputDefined() {\n return false;\n};\nLength.prototype.serialize = function serialize() {\n var serialized = ['length'];\n this.eachChild(function (child) {\n serialized.push(child.serialize());\n });\n return serialized;\n};\n\nvar expressions = {\n '==': Equals,\n '!=': NotEquals,\n '>': GreaterThan,\n '<': LessThan,\n '>=': GreaterThanOrEqual,\n '<=': LessThanOrEqual,\n 'array': Assertion,\n 'at': At,\n 'boolean': Assertion,\n 'case': Case,\n 'coalesce': Coalesce,\n 'collator': CollatorExpression,\n 'format': FormatExpression,\n 'image': ImageExpression,\n 'in': In,\n 'index-of': IndexOf,\n 'interpolate': Interpolate,\n 'interpolate-hcl': Interpolate,\n 'interpolate-lab': Interpolate,\n 'length': Length,\n 'let': Let,\n 'literal': Literal,\n 'match': Match,\n 'number': Assertion,\n 'number-format': NumberFormat,\n 'object': Assertion,\n 'slice': Slice,\n 'step': Step,\n 'string': Assertion,\n 'to-boolean': Coercion,\n 'to-color': Coercion,\n 'to-number': Coercion,\n 'to-string': Coercion,\n 'var': Var,\n 'within': Within\n};\nfunction rgba(ctx, ref) {\n var r = ref[0];\n var g = ref[1];\n var b = ref[2];\n var a = ref[3];\n r = r.evaluate(ctx);\n g = g.evaluate(ctx);\n b = b.evaluate(ctx);\n var alpha = a ? a.evaluate(ctx) : 1;\n var error = validateRGBA(r, g, b, alpha);\n if (error) {\n throw new RuntimeError(error);\n }\n return new Color(r / 255 * alpha, g / 255 * alpha, b / 255 * alpha, alpha);\n}\nfunction has(key, obj) {\n return key in obj;\n}\nfunction get(key, obj) {\n var v = obj[key];\n return typeof v === 'undefined' ? null : v;\n}\nfunction binarySearch(v, a, i, j) {\n while (i <= j) {\n var m = i + j >> 1;\n if (a[m] === v) {\n return true;\n }\n if (a[m] > v) {\n j = m - 1;\n } else {\n i = m + 1;\n }\n }\n return false;\n}\nfunction varargs(type) {\n return { type: type };\n}\nCompoundExpression.register(expressions, {\n 'error': [\n ErrorType,\n [StringType],\n function (ctx, ref) {\n var v = ref[0];\n throw new RuntimeError(v.evaluate(ctx));\n }\n ],\n 'typeof': [\n StringType,\n [ValueType],\n function (ctx, ref) {\n var v = ref[0];\n return toString(typeOf(v.evaluate(ctx)));\n }\n ],\n 'to-rgba': [\n array(NumberType, 4),\n [ColorType],\n function (ctx, ref) {\n var v = ref[0];\n return v.evaluate(ctx).toArray();\n }\n ],\n 'rgb': [\n ColorType,\n [\n NumberType,\n NumberType,\n NumberType\n ],\n rgba\n ],\n 'rgba': [\n ColorType,\n [\n NumberType,\n NumberType,\n NumberType,\n NumberType\n ],\n rgba\n ],\n 'has': {\n type: BooleanType,\n overloads: [\n [\n [StringType],\n function (ctx, ref) {\n var key = ref[0];\n return has(key.evaluate(ctx), ctx.properties());\n }\n ],\n [\n [\n StringType,\n ObjectType\n ],\n function (ctx, ref) {\n var key = ref[0];\n var obj = ref[1];\n return has(key.evaluate(ctx), obj.evaluate(ctx));\n }\n ]\n ]\n },\n 'get': {\n type: ValueType,\n overloads: [\n [\n [StringType],\n function (ctx, ref) {\n var key = ref[0];\n return get(key.evaluate(ctx), ctx.properties());\n }\n ],\n [\n [\n StringType,\n ObjectType\n ],\n function (ctx, ref) {\n var key = ref[0];\n var obj = ref[1];\n return get(key.evaluate(ctx), obj.evaluate(ctx));\n }\n ]\n ]\n },\n 'feature-state': [\n ValueType,\n [StringType],\n function (ctx, ref) {\n var key = ref[0];\n return get(key.evaluate(ctx), ctx.featureState || {});\n }\n ],\n 'properties': [\n ObjectType,\n [],\n function (ctx) {\n return ctx.properties();\n }\n ],\n 'geometry-type': [\n StringType,\n [],\n function (ctx) {\n return ctx.geometryType();\n }\n ],\n 'id': [\n ValueType,\n [],\n function (ctx) {\n return ctx.id();\n }\n ],\n 'zoom': [\n NumberType,\n [],\n function (ctx) {\n return ctx.globals.zoom;\n }\n ],\n 'heatmap-density': [\n NumberType,\n [],\n function (ctx) {\n return ctx.globals.heatmapDensity || 0;\n }\n ],\n 'line-progress': [\n NumberType,\n [],\n function (ctx) {\n return ctx.globals.lineProgress || 0;\n }\n ],\n 'accumulated': [\n ValueType,\n [],\n function (ctx) {\n return ctx.globals.accumulated === undefined ? null : ctx.globals.accumulated;\n }\n ],\n '+': [\n NumberType,\n varargs(NumberType),\n function (ctx, args) {\n var result = 0;\n for (var i = 0, list = args; i < list.length; i += 1) {\n var arg = list[i];\n result += arg.evaluate(ctx);\n }\n return result;\n }\n ],\n '*': [\n NumberType,\n varargs(NumberType),\n function (ctx, args) {\n var result = 1;\n for (var i = 0, list = args; i < list.length; i += 1) {\n var arg = list[i];\n result *= arg.evaluate(ctx);\n }\n return result;\n }\n ],\n '-': {\n type: NumberType,\n overloads: [\n [\n [\n NumberType,\n NumberType\n ],\n function (ctx, ref) {\n var a = ref[0];\n var b = ref[1];\n return a.evaluate(ctx) - b.evaluate(ctx);\n }\n ],\n [\n [NumberType],\n function (ctx, ref) {\n var a = ref[0];\n return -a.evaluate(ctx);\n }\n ]\n ]\n },\n '/': [\n NumberType,\n [\n NumberType,\n NumberType\n ],\n function (ctx, ref) {\n var a = ref[0];\n var b = ref[1];\n return a.evaluate(ctx) / b.evaluate(ctx);\n }\n ],\n '%': [\n NumberType,\n [\n NumberType,\n NumberType\n ],\n function (ctx, ref) {\n var a = ref[0];\n var b = ref[1];\n return a.evaluate(ctx) % b.evaluate(ctx);\n }\n ],\n 'ln2': [\n NumberType,\n [],\n function () {\n return Math.LN2;\n }\n ],\n 'pi': [\n NumberType,\n [],\n function () {\n return Math.PI;\n }\n ],\n 'e': [\n NumberType,\n [],\n function () {\n return Math.E;\n }\n ],\n '^': [\n NumberType,\n [\n NumberType,\n NumberType\n ],\n function (ctx, ref) {\n var b = ref[0];\n var e = ref[1];\n return Math.pow(b.evaluate(ctx), e.evaluate(ctx));\n }\n ],\n 'sqrt': [\n NumberType,\n [NumberType],\n function (ctx, ref) {\n var x = ref[0];\n return Math.sqrt(x.evaluate(ctx));\n }\n ],\n 'log10': [\n NumberType,\n [NumberType],\n function (ctx, ref) {\n var n = ref[0];\n return Math.log(n.evaluate(ctx)) / Math.LN10;\n }\n ],\n 'ln': [\n NumberType,\n [NumberType],\n function (ctx, ref) {\n var n = ref[0];\n return Math.log(n.evaluate(ctx));\n }\n ],\n 'log2': [\n NumberType,\n [NumberType],\n function (ctx, ref) {\n var n = ref[0];\n return Math.log(n.evaluate(ctx)) / Math.LN2;\n }\n ],\n 'sin': [\n NumberType,\n [NumberType],\n function (ctx, ref) {\n var n = ref[0];\n return Math.sin(n.evaluate(ctx));\n }\n ],\n 'cos': [\n NumberType,\n [NumberType],\n function (ctx, ref) {\n var n = ref[0];\n return Math.cos(n.evaluate(ctx));\n }\n ],\n 'tan': [\n NumberType,\n [NumberType],\n function (ctx, ref) {\n var n = ref[0];\n return Math.tan(n.evaluate(ctx));\n }\n ],\n 'asin': [\n NumberType,\n [NumberType],\n function (ctx, ref) {\n var n = ref[0];\n return Math.asin(n.evaluate(ctx));\n }\n ],\n 'acos': [\n NumberType,\n [NumberType],\n function (ctx, ref) {\n var n = ref[0];\n return Math.acos(n.evaluate(ctx));\n }\n ],\n 'atan': [\n NumberType,\n [NumberType],\n function (ctx, ref) {\n var n = ref[0];\n return Math.atan(n.evaluate(ctx));\n }\n ],\n 'min': [\n NumberType,\n varargs(NumberType),\n function (ctx, args) {\n return Math.min.apply(Math, args.map(function (arg) {\n return arg.evaluate(ctx);\n }));\n }\n ],\n 'max': [\n NumberType,\n varargs(NumberType),\n function (ctx, args) {\n return Math.max.apply(Math, args.map(function (arg) {\n return arg.evaluate(ctx);\n }));\n }\n ],\n 'abs': [\n NumberType,\n [NumberType],\n function (ctx, ref) {\n var n = ref[0];\n return Math.abs(n.evaluate(ctx));\n }\n ],\n 'round': [\n NumberType,\n [NumberType],\n function (ctx, ref) {\n var n = ref[0];\n var v = n.evaluate(ctx);\n return v < 0 ? -Math.round(-v) : Math.round(v);\n }\n ],\n 'floor': [\n NumberType,\n [NumberType],\n function (ctx, ref) {\n var n = ref[0];\n return Math.floor(n.evaluate(ctx));\n }\n ],\n 'ceil': [\n NumberType,\n [NumberType],\n function (ctx, ref) {\n var n = ref[0];\n return Math.ceil(n.evaluate(ctx));\n }\n ],\n 'filter-==': [\n BooleanType,\n [\n StringType,\n ValueType\n ],\n function (ctx, ref) {\n var k = ref[0];\n var v = ref[1];\n return ctx.properties()[k.value] === v.value;\n }\n ],\n 'filter-id-==': [\n BooleanType,\n [ValueType],\n function (ctx, ref) {\n var v = ref[0];\n return ctx.id() === v.value;\n }\n ],\n 'filter-type-==': [\n BooleanType,\n [StringType],\n function (ctx, ref) {\n var v = ref[0];\n return ctx.geometryType() === v.value;\n }\n ],\n 'filter-<': [\n BooleanType,\n [\n StringType,\n ValueType\n ],\n function (ctx, ref) {\n var k = ref[0];\n var v = ref[1];\n var a = ctx.properties()[k.value];\n var b = v.value;\n return typeof a === typeof b && a < b;\n }\n ],\n 'filter-id-<': [\n BooleanType,\n [ValueType],\n function (ctx, ref) {\n var v = ref[0];\n var a = ctx.id();\n var b = v.value;\n return typeof a === typeof b && a < b;\n }\n ],\n 'filter->': [\n BooleanType,\n [\n StringType,\n ValueType\n ],\n function (ctx, ref) {\n var k = ref[0];\n var v = ref[1];\n var a = ctx.properties()[k.value];\n var b = v.value;\n return typeof a === typeof b && a > b;\n }\n ],\n 'filter-id->': [\n BooleanType,\n [ValueType],\n function (ctx, ref) {\n var v = ref[0];\n var a = ctx.id();\n var b = v.value;\n return typeof a === typeof b && a > b;\n }\n ],\n 'filter-<=': [\n BooleanType,\n [\n StringType,\n ValueType\n ],\n function (ctx, ref) {\n var k = ref[0];\n var v = ref[1];\n var a = ctx.properties()[k.value];\n var b = v.value;\n return typeof a === typeof b && a <= b;\n }\n ],\n 'filter-id-<=': [\n BooleanType,\n [ValueType],\n function (ctx, ref) {\n var v = ref[0];\n var a = ctx.id();\n var b = v.value;\n return typeof a === typeof b && a <= b;\n }\n ],\n 'filter->=': [\n BooleanType,\n [\n StringType,\n ValueType\n ],\n function (ctx, ref) {\n var k = ref[0];\n var v = ref[1];\n var a = ctx.properties()[k.value];\n var b = v.value;\n return typeof a === typeof b && a >= b;\n }\n ],\n 'filter-id->=': [\n BooleanType,\n [ValueType],\n function (ctx, ref) {\n var v = ref[0];\n var a = ctx.id();\n var b = v.value;\n return typeof a === typeof b && a >= b;\n }\n ],\n 'filter-has': [\n BooleanType,\n [ValueType],\n function (ctx, ref) {\n var k = ref[0];\n return k.value in ctx.properties();\n }\n ],\n 'filter-has-id': [\n BooleanType,\n [],\n function (ctx) {\n return ctx.id() !== null && ctx.id() !== undefined;\n }\n ],\n 'filter-type-in': [\n BooleanType,\n [array(StringType)],\n function (ctx, ref) {\n var v = ref[0];\n return v.value.indexOf(ctx.geometryType()) >= 0;\n }\n ],\n 'filter-id-in': [\n BooleanType,\n [array(ValueType)],\n function (ctx, ref) {\n var v = ref[0];\n return v.value.indexOf(ctx.id()) >= 0;\n }\n ],\n 'filter-in-small': [\n BooleanType,\n [\n StringType,\n array(ValueType)\n ],\n function (ctx, ref) {\n var k = ref[0];\n var v = ref[1];\n return v.value.indexOf(ctx.properties()[k.value]) >= 0;\n }\n ],\n 'filter-in-large': [\n BooleanType,\n [\n StringType,\n array(ValueType)\n ],\n function (ctx, ref) {\n var k = ref[0];\n var v = ref[1];\n return binarySearch(ctx.properties()[k.value], v.value, 0, v.value.length - 1);\n }\n ],\n 'all': {\n type: BooleanType,\n overloads: [\n [\n [\n BooleanType,\n BooleanType\n ],\n function (ctx, ref) {\n var a = ref[0];\n var b = ref[1];\n return a.evaluate(ctx) && b.evaluate(ctx);\n }\n ],\n [\n varargs(BooleanType),\n function (ctx, args) {\n for (var i = 0, list = args; i < list.length; i += 1) {\n var arg = list[i];\n if (!arg.evaluate(ctx)) {\n return false;\n }\n }\n return true;\n }\n ]\n ]\n },\n 'any': {\n type: BooleanType,\n overloads: [\n [\n [\n BooleanType,\n BooleanType\n ],\n function (ctx, ref) {\n var a = ref[0];\n var b = ref[1];\n return a.evaluate(ctx) || b.evaluate(ctx);\n }\n ],\n [\n varargs(BooleanType),\n function (ctx, args) {\n for (var i = 0, list = args; i < list.length; i += 1) {\n var arg = list[i];\n if (arg.evaluate(ctx)) {\n return true;\n }\n }\n return false;\n }\n ]\n ]\n },\n '!': [\n BooleanType,\n [BooleanType],\n function (ctx, ref) {\n var b = ref[0];\n return !b.evaluate(ctx);\n }\n ],\n 'is-supported-script': [\n BooleanType,\n [StringType],\n function (ctx, ref) {\n var s = ref[0];\n var isSupportedScript = ctx.globals && ctx.globals.isSupportedScript;\n if (isSupportedScript) {\n return isSupportedScript(s.evaluate(ctx));\n }\n return true;\n }\n ],\n 'upcase': [\n StringType,\n [StringType],\n function (ctx, ref) {\n var s = ref[0];\n return s.evaluate(ctx).toUpperCase();\n }\n ],\n 'downcase': [\n StringType,\n [StringType],\n function (ctx, ref) {\n var s = ref[0];\n return s.evaluate(ctx).toLowerCase();\n }\n ],\n 'concat': [\n StringType,\n varargs(ValueType),\n function (ctx, args) {\n return args.map(function (arg) {\n return toString$1(arg.evaluate(ctx));\n }).join('');\n }\n ],\n 'resolved-locale': [\n StringType,\n [CollatorType],\n function (ctx, ref) {\n var collator = ref[0];\n return collator.evaluate(ctx).resolvedLocale();\n }\n ]\n});\n\nfunction success(value) {\n return {\n result: 'success',\n value: value\n };\n}\nfunction error(value) {\n return {\n result: 'error',\n value: value\n };\n}\n\nfunction supportsPropertyExpression(spec) {\n return spec['property-type'] === 'data-driven' || spec['property-type'] === 'cross-faded-data-driven';\n}\nfunction supportsZoomExpression(spec) {\n return !!spec.expression && spec.expression.parameters.indexOf('zoom') > -1;\n}\nfunction supportsInterpolation(spec) {\n return !!spec.expression && spec.expression.interpolated;\n}\n\nfunction getType(val) {\n if (val instanceof Number) {\n return 'number';\n } else if (val instanceof String) {\n return 'string';\n } else if (val instanceof Boolean) {\n return 'boolean';\n } else if (Array.isArray(val)) {\n return 'array';\n } else if (val === null) {\n return 'null';\n } else {\n return typeof val;\n }\n}\n\nfunction isFunction(value) {\n return typeof value === 'object' && value !== null && !Array.isArray(value);\n}\nfunction identityFunction(x) {\n return x;\n}\nfunction createFunction(parameters, propertySpec) {\n var isColor = propertySpec.type === 'color';\n var zoomAndFeatureDependent = parameters.stops && typeof parameters.stops[0][0] === 'object';\n var featureDependent = zoomAndFeatureDependent || parameters.property !== undefined;\n var zoomDependent = zoomAndFeatureDependent || !featureDependent;\n var type = parameters.type || (supportsInterpolation(propertySpec) ? 'exponential' : 'interval');\n if (isColor) {\n parameters = extend$1({}, parameters);\n if (parameters.stops) {\n parameters.stops = parameters.stops.map(function (stop) {\n return [\n stop[0],\n Color.parse(stop[1])\n ];\n });\n }\n if (parameters.default) {\n parameters.default = Color.parse(parameters.default);\n } else {\n parameters.default = Color.parse(propertySpec.default);\n }\n }\n if (parameters.colorSpace && parameters.colorSpace !== 'rgb' && !colorSpaces[parameters.colorSpace]) {\n throw new Error('Unknown color space: ' + parameters.colorSpace);\n }\n var innerFun;\n var hashedStops;\n var categoricalKeyType;\n if (type === 'exponential') {\n innerFun = evaluateExponentialFunction;\n } else if (type === 'interval') {\n innerFun = evaluateIntervalFunction;\n } else if (type === 'categorical') {\n innerFun = evaluateCategoricalFunction;\n hashedStops = Object.create(null);\n for (var i = 0, list = parameters.stops; i < list.length; i += 1) {\n var stop = list[i];\n hashedStops[stop[0]] = stop[1];\n }\n categoricalKeyType = typeof parameters.stops[0][0];\n } else if (type === 'identity') {\n innerFun = evaluateIdentityFunction;\n } else {\n throw new Error('Unknown function type \"' + type + '\"');\n }\n if (zoomAndFeatureDependent) {\n var featureFunctions = {};\n var zoomStops = [];\n for (var s = 0; s < parameters.stops.length; s++) {\n var stop$1 = parameters.stops[s];\n var zoom = stop$1[0].zoom;\n if (featureFunctions[zoom] === undefined) {\n featureFunctions[zoom] = {\n zoom: zoom,\n type: parameters.type,\n property: parameters.property,\n default: parameters.default,\n stops: []\n };\n zoomStops.push(zoom);\n }\n featureFunctions[zoom].stops.push([\n stop$1[0].value,\n stop$1[1]\n ]);\n }\n var featureFunctionStops = [];\n for (var i$1 = 0, list$1 = zoomStops; i$1 < list$1.length; i$1 += 1) {\n var z = list$1[i$1];\n featureFunctionStops.push([\n featureFunctions[z].zoom,\n createFunction(featureFunctions[z], propertySpec)\n ]);\n }\n var interpolationType = { name: 'linear' };\n return {\n kind: 'composite',\n interpolationType: interpolationType,\n interpolationFactor: Interpolate.interpolationFactor.bind(undefined, interpolationType),\n zoomStops: featureFunctionStops.map(function (s) {\n return s[0];\n }),\n evaluate: function evaluate(ref, properties) {\n var zoom = ref.zoom;\n return evaluateExponentialFunction({\n stops: featureFunctionStops,\n base: parameters.base\n }, propertySpec, zoom).evaluate(zoom, properties);\n }\n };\n } else if (zoomDependent) {\n var interpolationType$1 = type === 'exponential' ? {\n name: 'exponential',\n base: parameters.base !== undefined ? parameters.base : 1\n } : null;\n return {\n kind: 'camera',\n interpolationType: interpolationType$1,\n interpolationFactor: Interpolate.interpolationFactor.bind(undefined, interpolationType$1),\n zoomStops: parameters.stops.map(function (s) {\n return s[0];\n }),\n evaluate: function (ref) {\n var zoom = ref.zoom;\n return innerFun(parameters, propertySpec, zoom, hashedStops, categoricalKeyType);\n }\n };\n } else {\n return {\n kind: 'source',\n evaluate: function evaluate(_, feature) {\n var value = feature && feature.properties ? feature.properties[parameters.property] : undefined;\n if (value === undefined) {\n return coalesce(parameters.default, propertySpec.default);\n }\n return innerFun(parameters, propertySpec, value, hashedStops, categoricalKeyType);\n }\n };\n }\n}\nfunction coalesce(a, b, c) {\n if (a !== undefined) {\n return a;\n }\n if (b !== undefined) {\n return b;\n }\n if (c !== undefined) {\n return c;\n }\n}\nfunction evaluateCategoricalFunction(parameters, propertySpec, input, hashedStops, keyType) {\n var evaluated = typeof input === keyType ? hashedStops[input] : undefined;\n return coalesce(evaluated, parameters.default, propertySpec.default);\n}\nfunction evaluateIntervalFunction(parameters, propertySpec, input) {\n if (getType(input) !== 'number') {\n return coalesce(parameters.default, propertySpec.default);\n }\n var n = parameters.stops.length;\n if (n === 1) {\n return parameters.stops[0][1];\n }\n if (input <= parameters.stops[0][0]) {\n return parameters.stops[0][1];\n }\n if (input >= parameters.stops[n - 1][0]) {\n return parameters.stops[n - 1][1];\n }\n var index = findStopLessThanOrEqualTo(parameters.stops.map(function (stop) {\n return stop[0];\n }), input);\n return parameters.stops[index][1];\n}\nfunction evaluateExponentialFunction(parameters, propertySpec, input) {\n var base = parameters.base !== undefined ? parameters.base : 1;\n if (getType(input) !== 'number') {\n return coalesce(parameters.default, propertySpec.default);\n }\n var n = parameters.stops.length;\n if (n === 1) {\n return parameters.stops[0][1];\n }\n if (input <= parameters.stops[0][0]) {\n return parameters.stops[0][1];\n }\n if (input >= parameters.stops[n - 1][0]) {\n return parameters.stops[n - 1][1];\n }\n var index = findStopLessThanOrEqualTo(parameters.stops.map(function (stop) {\n return stop[0];\n }), input);\n var t = interpolationFactor(input, base, parameters.stops[index][0], parameters.stops[index + 1][0]);\n var outputLower = parameters.stops[index][1];\n var outputUpper = parameters.stops[index + 1][1];\n var interp = interpolate[propertySpec.type] || identityFunction;\n if (parameters.colorSpace && parameters.colorSpace !== 'rgb') {\n var colorspace = colorSpaces[parameters.colorSpace];\n interp = function (a, b) {\n return colorspace.reverse(colorspace.interpolate(colorspace.forward(a), colorspace.forward(b), t));\n };\n }\n if (typeof outputLower.evaluate === 'function') {\n return {\n evaluate: function evaluate() {\n var args = [], len = arguments.length;\n while (len--)\n args[len] = arguments[len];\n var evaluatedLower = outputLower.evaluate.apply(undefined, args);\n var evaluatedUpper = outputUpper.evaluate.apply(undefined, args);\n if (evaluatedLower === undefined || evaluatedUpper === undefined) {\n return undefined;\n }\n return interp(evaluatedLower, evaluatedUpper, t);\n }\n };\n }\n return interp(outputLower, outputUpper, t);\n}\nfunction evaluateIdentityFunction(parameters, propertySpec, input) {\n if (propertySpec.type === 'color') {\n input = Color.parse(input);\n } else if (propertySpec.type === 'formatted') {\n input = Formatted.fromString(input.toString());\n } else if (propertySpec.type === 'resolvedImage') {\n input = ResolvedImage.fromString(input.toString());\n } else if (getType(input) !== propertySpec.type && (propertySpec.type !== 'enum' || !propertySpec.values[input])) {\n input = undefined;\n }\n return coalesce(input, parameters.default, propertySpec.default);\n}\nfunction interpolationFactor(input, base, lowerValue, upperValue) {\n var difference = upperValue - lowerValue;\n var progress = input - lowerValue;\n if (difference === 0) {\n return 0;\n } else if (base === 1) {\n return progress / difference;\n } else {\n return (Math.pow(base, progress) - 1) / (Math.pow(base, difference) - 1);\n }\n}\n\nvar StyleExpression = function StyleExpression(expression, propertySpec) {\n this.expression = expression;\n this._warningHistory = {};\n this._evaluator = new EvaluationContext();\n this._defaultValue = propertySpec ? getDefaultValue(propertySpec) : null;\n this._enumValues = propertySpec && propertySpec.type === 'enum' ? propertySpec.values : null;\n};\nStyleExpression.prototype.evaluateWithoutErrorHandling = function evaluateWithoutErrorHandling(globals, feature, featureState, canonical, availableImages, formattedSection) {\n this._evaluator.globals = globals;\n this._evaluator.feature = feature;\n this._evaluator.featureState = featureState;\n this._evaluator.canonical = canonical;\n this._evaluator.availableImages = availableImages || null;\n this._evaluator.formattedSection = formattedSection;\n return this.expression.evaluate(this._evaluator);\n};\nStyleExpression.prototype.evaluate = function evaluate(globals, feature, featureState, canonical, availableImages, formattedSection) {\n this._evaluator.globals = globals;\n this._evaluator.feature = feature || null;\n this._evaluator.featureState = featureState || null;\n this._evaluator.canonical = canonical;\n this._evaluator.availableImages = availableImages || null;\n this._evaluator.formattedSection = formattedSection || null;\n try {\n var val = this.expression.evaluate(this._evaluator);\n if (val === null || val === undefined || typeof val === 'number' && val !== val) {\n return this._defaultValue;\n }\n if (this._enumValues && !(val in this._enumValues)) {\n throw new RuntimeError('Expected value to be one of ' + Object.keys(this._enumValues).map(function (v) {\n return JSON.stringify(v);\n }).join(', ') + ', but found ' + JSON.stringify(val) + ' instead.');\n }\n return val;\n } catch (e) {\n if (!this._warningHistory[e.message]) {\n this._warningHistory[e.message] = true;\n if (typeof console !== 'undefined') {\n console.warn(e.message);\n }\n }\n return this._defaultValue;\n }\n};\nfunction isExpression(expression) {\n return Array.isArray(expression) && expression.length > 0 && typeof expression[0] === 'string' && expression[0] in expressions;\n}\nfunction createExpression(expression, propertySpec) {\n var parser = new ParsingContext(expressions, [], propertySpec ? getExpectedType(propertySpec) : undefined);\n var parsed = parser.parse(expression, undefined, undefined, undefined, propertySpec && propertySpec.type === 'string' ? { typeAnnotation: 'coerce' } : undefined);\n if (!parsed) {\n return error(parser.errors);\n }\n return success(new StyleExpression(parsed, propertySpec));\n}\nvar ZoomConstantExpression = function ZoomConstantExpression(kind, expression) {\n this.kind = kind;\n this._styleExpression = expression;\n this.isStateDependent = kind !== 'constant' && !isStateConstant(expression.expression);\n};\nZoomConstantExpression.prototype.evaluateWithoutErrorHandling = function evaluateWithoutErrorHandling(globals, feature, featureState, canonical, availableImages, formattedSection) {\n return this._styleExpression.evaluateWithoutErrorHandling(globals, feature, featureState, canonical, availableImages, formattedSection);\n};\nZoomConstantExpression.prototype.evaluate = function evaluate(globals, feature, featureState, canonical, availableImages, formattedSection) {\n return this._styleExpression.evaluate(globals, feature, featureState, canonical, availableImages, formattedSection);\n};\nvar ZoomDependentExpression = function ZoomDependentExpression(kind, expression, zoomStops, interpolationType) {\n this.kind = kind;\n this.zoomStops = zoomStops;\n this._styleExpression = expression;\n this.isStateDependent = kind !== 'camera' && !isStateConstant(expression.expression);\n this.interpolationType = interpolationType;\n};\nZoomDependentExpression.prototype.evaluateWithoutErrorHandling = function evaluateWithoutErrorHandling(globals, feature, featureState, canonical, availableImages, formattedSection) {\n return this._styleExpression.evaluateWithoutErrorHandling(globals, feature, featureState, canonical, availableImages, formattedSection);\n};\nZoomDependentExpression.prototype.evaluate = function evaluate(globals, feature, featureState, canonical, availableImages, formattedSection) {\n return this._styleExpression.evaluate(globals, feature, featureState, canonical, availableImages, formattedSection);\n};\nZoomDependentExpression.prototype.interpolationFactor = function interpolationFactor(input, lower, upper) {\n if (this.interpolationType) {\n return Interpolate.interpolationFactor(this.interpolationType, input, lower, upper);\n } else {\n return 0;\n }\n};\nfunction createPropertyExpression(expression, propertySpec) {\n expression = createExpression(expression, propertySpec);\n if (expression.result === 'error') {\n return expression;\n }\n var parsed = expression.value.expression;\n var isFeatureConstant$1 = isFeatureConstant(parsed);\n if (!isFeatureConstant$1 && !supportsPropertyExpression(propertySpec)) {\n return error([new ParsingError('', 'data expressions not supported')]);\n }\n var isZoomConstant = isGlobalPropertyConstant(parsed, ['zoom']);\n if (!isZoomConstant && !supportsZoomExpression(propertySpec)) {\n return error([new ParsingError('', 'zoom expressions not supported')]);\n }\n var zoomCurve = findZoomCurve(parsed);\n if (!zoomCurve && !isZoomConstant) {\n return error([new ParsingError('', '\"zoom\" expression may only be used as input to a top-level \"step\" or \"interpolate\" expression.')]);\n } else if (zoomCurve instanceof ParsingError) {\n return error([zoomCurve]);\n } else if (zoomCurve instanceof Interpolate && !supportsInterpolation(propertySpec)) {\n return error([new ParsingError('', '\"interpolate\" expressions cannot be used with this property')]);\n }\n if (!zoomCurve) {\n return success(isFeatureConstant$1 ? new ZoomConstantExpression('constant', expression.value) : new ZoomConstantExpression('source', expression.value));\n }\n var interpolationType = zoomCurve instanceof Interpolate ? zoomCurve.interpolation : undefined;\n return success(isFeatureConstant$1 ? new ZoomDependentExpression('camera', expression.value, zoomCurve.labels, interpolationType) : new ZoomDependentExpression('composite', expression.value, zoomCurve.labels, interpolationType));\n}\nvar StylePropertyFunction = function StylePropertyFunction(parameters, specification) {\n this._parameters = parameters;\n this._specification = specification;\n extend$1(this, createFunction(this._parameters, this._specification));\n};\nStylePropertyFunction.deserialize = function deserialize(serialized) {\n return new StylePropertyFunction(serialized._parameters, serialized._specification);\n};\nStylePropertyFunction.serialize = function serialize(input) {\n return {\n _parameters: input._parameters,\n _specification: input._specification\n };\n};\nfunction normalizePropertyExpression(value, specification) {\n if (isFunction(value)) {\n return new StylePropertyFunction(value, specification);\n } else if (isExpression(value)) {\n var expression = createPropertyExpression(value, specification);\n if (expression.result === 'error') {\n throw new Error(expression.value.map(function (err) {\n return err.key + ': ' + err.message;\n }).join(', '));\n }\n return expression.value;\n } else {\n var constant = value;\n if (typeof value === 'string' && specification.type === 'color') {\n constant = Color.parse(value);\n }\n return {\n kind: 'constant',\n evaluate: function () {\n return constant;\n }\n };\n }\n}\nfunction findZoomCurve(expression) {\n var result = null;\n if (expression instanceof Let) {\n result = findZoomCurve(expression.result);\n } else if (expression instanceof Coalesce) {\n for (var i = 0, list = expression.args; i < list.length; i += 1) {\n var arg = list[i];\n result = findZoomCurve(arg);\n if (result) {\n break;\n }\n }\n } else if ((expression instanceof Step || expression instanceof Interpolate) && expression.input instanceof CompoundExpression && expression.input.name === 'zoom') {\n result = expression;\n }\n if (result instanceof ParsingError) {\n return result;\n }\n expression.eachChild(function (child) {\n var childResult = findZoomCurve(child);\n if (childResult instanceof ParsingError) {\n result = childResult;\n } else if (!result && childResult) {\n result = new ParsingError('', '\"zoom\" expression may only be used as input to a top-level \"step\" or \"interpolate\" expression.');\n } else if (result && childResult && result !== childResult) {\n result = new ParsingError('', 'Only one zoom-based \"step\" or \"interpolate\" subexpression may be used in an expression.');\n }\n });\n return result;\n}\nfunction getExpectedType(spec) {\n var types = {\n color: ColorType,\n string: StringType,\n number: NumberType,\n enum: StringType,\n boolean: BooleanType,\n formatted: FormattedType,\n resolvedImage: ResolvedImageType\n };\n if (spec.type === 'array') {\n return array(types[spec.value] || ValueType, spec.length);\n }\n return types[spec.type];\n}\nfunction getDefaultValue(spec) {\n if (spec.type === 'color' && isFunction(spec.default)) {\n return new Color(0, 0, 0, 0);\n } else if (spec.type === 'color') {\n return Color.parse(spec.default) || null;\n } else if (spec.default === undefined) {\n return null;\n } else {\n return spec.default;\n }\n}\n\nfunction validateObject(options) {\n var key = options.key;\n var object = options.value;\n var elementSpecs = options.valueSpec || {};\n var elementValidators = options.objectElementValidators || {};\n var style = options.style;\n var styleSpec = options.styleSpec;\n var errors = [];\n var type = getType(object);\n if (type !== 'object') {\n return [new ValidationError(key, object, 'object expected, ' + type + ' found')];\n }\n for (var objectKey in object) {\n var elementSpecKey = objectKey.split('.')[0];\n var elementSpec = elementSpecs[elementSpecKey] || elementSpecs['*'];\n var validateElement = void 0;\n if (elementValidators[elementSpecKey]) {\n validateElement = elementValidators[elementSpecKey];\n } else if (elementSpecs[elementSpecKey]) {\n validateElement = validate;\n } else if (elementValidators['*']) {\n validateElement = elementValidators['*'];\n } else if (elementSpecs['*']) {\n validateElement = validate;\n } else {\n errors.push(new ValidationError(key, object[objectKey], 'unknown property \"' + objectKey + '\"'));\n continue;\n }\n errors = errors.concat(validateElement({\n key: (key ? key + '.' : key) + objectKey,\n value: object[objectKey],\n valueSpec: elementSpec,\n style: style,\n styleSpec: styleSpec,\n object: object,\n objectKey: objectKey\n }, object));\n }\n for (var elementSpecKey$1 in elementSpecs) {\n if (elementValidators[elementSpecKey$1]) {\n continue;\n }\n if (elementSpecs[elementSpecKey$1].required && elementSpecs[elementSpecKey$1]['default'] === undefined && object[elementSpecKey$1] === undefined) {\n errors.push(new ValidationError(key, object, 'missing required property \"' + elementSpecKey$1 + '\"'));\n }\n }\n return errors;\n}\n\nfunction validateArray(options) {\n var array = options.value;\n var arraySpec = options.valueSpec;\n var style = options.style;\n var styleSpec = options.styleSpec;\n var key = options.key;\n var validateArrayElement = options.arrayElementValidator || validate;\n if (getType(array) !== 'array') {\n return [new ValidationError(key, array, 'array expected, ' + getType(array) + ' found')];\n }\n if (arraySpec.length && array.length !== arraySpec.length) {\n return [new ValidationError(key, array, 'array length ' + arraySpec.length + ' expected, length ' + array.length + ' found')];\n }\n if (arraySpec['min-length'] && array.length < arraySpec['min-length']) {\n return [new ValidationError(key, array, 'array length at least ' + arraySpec['min-length'] + ' expected, length ' + array.length + ' found')];\n }\n var arrayElementSpec = {\n 'type': arraySpec.value,\n 'values': arraySpec.values\n };\n if (styleSpec.$version < 7) {\n arrayElementSpec.function = arraySpec.function;\n }\n if (getType(arraySpec.value) === 'object') {\n arrayElementSpec = arraySpec.value;\n }\n var errors = [];\n for (var i = 0; i < array.length; i++) {\n errors = errors.concat(validateArrayElement({\n array: array,\n arrayIndex: i,\n value: array[i],\n valueSpec: arrayElementSpec,\n style: style,\n styleSpec: styleSpec,\n key: key + '[' + i + ']'\n }));\n }\n return errors;\n}\n\nfunction validateNumber(options) {\n var key = options.key;\n var value = options.value;\n var valueSpec = options.valueSpec;\n var type = getType(value);\n if (type === 'number' && value !== value) {\n type = 'NaN';\n }\n if (type !== 'number') {\n return [new ValidationError(key, value, 'number expected, ' + type + ' found')];\n }\n if ('minimum' in valueSpec && value < valueSpec.minimum) {\n return [new ValidationError(key, value, value + ' is less than the minimum value ' + valueSpec.minimum)];\n }\n if ('maximum' in valueSpec && value > valueSpec.maximum) {\n return [new ValidationError(key, value, value + ' is greater than the maximum value ' + valueSpec.maximum)];\n }\n return [];\n}\n\nfunction validateFunction(options) {\n var functionValueSpec = options.valueSpec;\n var functionType = unbundle(options.value.type);\n var stopKeyType;\n var stopDomainValues = {};\n var previousStopDomainValue;\n var previousStopDomainZoom;\n var isZoomFunction = functionType !== 'categorical' && options.value.property === undefined;\n var isPropertyFunction = !isZoomFunction;\n var isZoomAndPropertyFunction = getType(options.value.stops) === 'array' && getType(options.value.stops[0]) === 'array' && getType(options.value.stops[0][0]) === 'object';\n var errors = validateObject({\n key: options.key,\n value: options.value,\n valueSpec: options.styleSpec.function,\n style: options.style,\n styleSpec: options.styleSpec,\n objectElementValidators: {\n stops: validateFunctionStops,\n default: validateFunctionDefault\n }\n });\n if (functionType === 'identity' && isZoomFunction) {\n errors.push(new ValidationError(options.key, options.value, 'missing required property \"property\"'));\n }\n if (functionType !== 'identity' && !options.value.stops) {\n errors.push(new ValidationError(options.key, options.value, 'missing required property \"stops\"'));\n }\n if (functionType === 'exponential' && options.valueSpec.expression && !supportsInterpolation(options.valueSpec)) {\n errors.push(new ValidationError(options.key, options.value, 'exponential functions not supported'));\n }\n if (options.styleSpec.$version >= 8) {\n if (isPropertyFunction && !supportsPropertyExpression(options.valueSpec)) {\n errors.push(new ValidationError(options.key, options.value, 'property functions not supported'));\n } else if (isZoomFunction && !supportsZoomExpression(options.valueSpec)) {\n errors.push(new ValidationError(options.key, options.value, 'zoom functions not supported'));\n }\n }\n if ((functionType === 'categorical' || isZoomAndPropertyFunction) && options.value.property === undefined) {\n errors.push(new ValidationError(options.key, options.value, '\"property\" property is required'));\n }\n return errors;\n function validateFunctionStops(options) {\n if (functionType === 'identity') {\n return [new ValidationError(options.key, options.value, 'identity function may not have a \"stops\" property')];\n }\n var errors = [];\n var value = options.value;\n errors = errors.concat(validateArray({\n key: options.key,\n value: value,\n valueSpec: options.valueSpec,\n style: options.style,\n styleSpec: options.styleSpec,\n arrayElementValidator: validateFunctionStop\n }));\n if (getType(value) === 'array' && value.length === 0) {\n errors.push(new ValidationError(options.key, value, 'array must have at least one stop'));\n }\n return errors;\n }\n function validateFunctionStop(options) {\n var errors = [];\n var value = options.value;\n var key = options.key;\n if (getType(value) !== 'array') {\n return [new ValidationError(key, value, 'array expected, ' + getType(value) + ' found')];\n }\n if (value.length !== 2) {\n return [new ValidationError(key, value, 'array length 2 expected, length ' + value.length + ' found')];\n }\n if (isZoomAndPropertyFunction) {\n if (getType(value[0]) !== 'object') {\n return [new ValidationError(key, value, 'object expected, ' + getType(value[0]) + ' found')];\n }\n if (value[0].zoom === undefined) {\n return [new ValidationError(key, value, 'object stop key must have zoom')];\n }\n if (value[0].value === undefined) {\n return [new ValidationError(key, value, 'object stop key must have value')];\n }\n if (previousStopDomainZoom && previousStopDomainZoom > unbundle(value[0].zoom)) {\n return [new ValidationError(key, value[0].zoom, 'stop zoom values must appear in ascending order')];\n }\n if (unbundle(value[0].zoom) !== previousStopDomainZoom) {\n previousStopDomainZoom = unbundle(value[0].zoom);\n previousStopDomainValue = undefined;\n stopDomainValues = {};\n }\n errors = errors.concat(validateObject({\n key: key + '[0]',\n value: value[0],\n valueSpec: { zoom: {} },\n style: options.style,\n styleSpec: options.styleSpec,\n objectElementValidators: {\n zoom: validateNumber,\n value: validateStopDomainValue\n }\n }));\n } else {\n errors = errors.concat(validateStopDomainValue({\n key: key + '[0]',\n value: value[0],\n valueSpec: {},\n style: options.style,\n styleSpec: options.styleSpec\n }, value));\n }\n if (isExpression(deepUnbundle(value[1]))) {\n return errors.concat([new ValidationError(key + '[1]', value[1], 'expressions are not allowed in function stops.')]);\n }\n return errors.concat(validate({\n key: key + '[1]',\n value: value[1],\n valueSpec: functionValueSpec,\n style: options.style,\n styleSpec: options.styleSpec\n }));\n }\n function validateStopDomainValue(options, stop) {\n var type = getType(options.value);\n var value = unbundle(options.value);\n var reportValue = options.value !== null ? options.value : stop;\n if (!stopKeyType) {\n stopKeyType = type;\n } else if (type !== stopKeyType) {\n return [new ValidationError(options.key, reportValue, type + ' stop domain type must match previous stop domain type ' + stopKeyType)];\n }\n if (type !== 'number' && type !== 'string' && type !== 'boolean') {\n return [new ValidationError(options.key, reportValue, 'stop domain value must be a number, string, or boolean')];\n }\n if (type !== 'number' && functionType !== 'categorical') {\n var message = 'number expected, ' + type + ' found';\n if (supportsPropertyExpression(functionValueSpec) && functionType === undefined) {\n message += '\\nIf you intended to use a categorical function, specify `\"type\": \"categorical\"`.';\n }\n return [new ValidationError(options.key, reportValue, message)];\n }\n if (functionType === 'categorical' && type === 'number' && (!isFinite(value) || Math.floor(value) !== value)) {\n return [new ValidationError(options.key, reportValue, 'integer expected, found ' + value)];\n }\n if (functionType !== 'categorical' && type === 'number' && previousStopDomainValue !== undefined && value < previousStopDomainValue) {\n return [new ValidationError(options.key, reportValue, 'stop domain values must appear in ascending order')];\n } else {\n previousStopDomainValue = value;\n }\n if (functionType === 'categorical' && value in stopDomainValues) {\n return [new ValidationError(options.key, reportValue, 'stop domain values must be unique')];\n } else {\n stopDomainValues[value] = true;\n }\n return [];\n }\n function validateFunctionDefault(options) {\n return validate({\n key: options.key,\n value: options.value,\n valueSpec: functionValueSpec,\n style: options.style,\n styleSpec: options.styleSpec\n });\n }\n}\n\nfunction validateExpression(options) {\n var expression = (options.expressionContext === 'property' ? createPropertyExpression : createExpression)(deepUnbundle(options.value), options.valueSpec);\n if (expression.result === 'error') {\n return expression.value.map(function (error) {\n return new ValidationError('' + options.key + error.key, options.value, error.message);\n });\n }\n var expressionObj = expression.value.expression || expression.value._styleExpression.expression;\n if (options.expressionContext === 'property' && options.propertyKey === 'text-font' && !expressionObj.outputDefined()) {\n return [new ValidationError(options.key, options.value, 'Invalid data expression for \"' + options.propertyKey + '\". Output values must be contained as literals within the expression.')];\n }\n if (options.expressionContext === 'property' && options.propertyType === 'layout' && !isStateConstant(expressionObj)) {\n return [new ValidationError(options.key, options.value, '\"feature-state\" data expressions are not supported with layout properties.')];\n }\n if (options.expressionContext === 'filter' && !isStateConstant(expressionObj)) {\n return [new ValidationError(options.key, options.value, '\"feature-state\" data expressions are not supported with filters.')];\n }\n if (options.expressionContext && options.expressionContext.indexOf('cluster') === 0) {\n if (!isGlobalPropertyConstant(expressionObj, [\n 'zoom',\n 'feature-state'\n ])) {\n return [new ValidationError(options.key, options.value, '\"zoom\" and \"feature-state\" expressions are not supported with cluster properties.')];\n }\n if (options.expressionContext === 'cluster-initial' && !isFeatureConstant(expressionObj)) {\n return [new ValidationError(options.key, options.value, 'Feature data expressions are not supported with initial expression part of cluster properties.')];\n }\n }\n return [];\n}\n\nfunction validateBoolean(options) {\n var value = options.value;\n var key = options.key;\n var type = getType(value);\n if (type !== 'boolean') {\n return [new ValidationError(key, value, 'boolean expected, ' + type + ' found')];\n }\n return [];\n}\n\nfunction validateColor(options) {\n var key = options.key;\n var value = options.value;\n var type = getType(value);\n if (type !== 'string') {\n return [new ValidationError(key, value, 'color expected, ' + type + ' found')];\n }\n if (csscolorparser_1(value) === null) {\n return [new ValidationError(key, value, 'color expected, \"' + value + '\" found')];\n }\n return [];\n}\n\nfunction validateEnum(options) {\n var key = options.key;\n var value = options.value;\n var valueSpec = options.valueSpec;\n var errors = [];\n if (Array.isArray(valueSpec.values)) {\n if (valueSpec.values.indexOf(unbundle(value)) === -1) {\n errors.push(new ValidationError(key, value, 'expected one of [' + valueSpec.values.join(', ') + '], ' + JSON.stringify(value) + ' found'));\n }\n } else {\n if (Object.keys(valueSpec.values).indexOf(unbundle(value)) === -1) {\n errors.push(new ValidationError(key, value, 'expected one of [' + Object.keys(valueSpec.values).join(', ') + '], ' + JSON.stringify(value) + ' found'));\n }\n }\n return errors;\n}\n\nfunction isExpressionFilter(filter) {\n if (filter === true || filter === false) {\n return true;\n }\n if (!Array.isArray(filter) || filter.length === 0) {\n return false;\n }\n switch (filter[0]) {\n case 'has':\n return filter.length >= 2 && filter[1] !== '$id' && filter[1] !== '$type';\n case 'in':\n return filter.length >= 3 && (typeof filter[1] !== 'string' || Array.isArray(filter[2]));\n case '!in':\n case '!has':\n case 'none':\n return false;\n case '==':\n case '!=':\n case '>':\n case '>=':\n case '<':\n case '<=':\n return filter.length !== 3 || (Array.isArray(filter[1]) || Array.isArray(filter[2]));\n case 'any':\n case 'all':\n for (var i = 0, list = filter.slice(1); i < list.length; i += 1) {\n var f = list[i];\n if (!isExpressionFilter(f) && typeof f !== 'boolean') {\n return false;\n }\n }\n return true;\n default:\n return true;\n }\n}\nvar filterSpec = {\n 'type': 'boolean',\n 'default': false,\n 'transition': false,\n 'property-type': 'data-driven',\n 'expression': {\n 'interpolated': false,\n 'parameters': [\n 'zoom',\n 'feature'\n ]\n }\n};\nfunction createFilter(filter) {\n if (filter === null || filter === undefined) {\n return {\n filter: function () {\n return true;\n },\n needGeometry: false\n };\n }\n if (!isExpressionFilter(filter)) {\n filter = convertFilter(filter);\n }\n var compiled = createExpression(filter, filterSpec);\n if (compiled.result === 'error') {\n throw new Error(compiled.value.map(function (err) {\n return err.key + ': ' + err.message;\n }).join(', '));\n } else {\n var needGeometry = geometryNeeded(filter);\n return {\n filter: function (globalProperties, feature, canonical) {\n return compiled.value.evaluate(globalProperties, feature, {}, canonical);\n },\n needGeometry: needGeometry\n };\n }\n}\nfunction compare(a, b) {\n return a < b ? -1 : a > b ? 1 : 0;\n}\nfunction geometryNeeded(filter) {\n if (!Array.isArray(filter)) {\n return false;\n }\n if (filter[0] === 'within') {\n return true;\n }\n for (var index = 1; index < filter.length; index++) {\n if (geometryNeeded(filter[index])) {\n return true;\n }\n }\n return false;\n}\nfunction convertFilter(filter) {\n if (!filter) {\n return true;\n }\n var op = filter[0];\n if (filter.length <= 1) {\n return op !== 'any';\n }\n var converted = op === '==' ? convertComparisonOp(filter[1], filter[2], '==') : op === '!=' ? convertNegation(convertComparisonOp(filter[1], filter[2], '==')) : op === '<' || op === '>' || op === '<=' || op === '>=' ? convertComparisonOp(filter[1], filter[2], op) : op === 'any' ? convertDisjunctionOp(filter.slice(1)) : op === 'all' ? ['all'].concat(filter.slice(1).map(convertFilter)) : op === 'none' ? ['all'].concat(filter.slice(1).map(convertFilter).map(convertNegation)) : op === 'in' ? convertInOp(filter[1], filter.slice(2)) : op === '!in' ? convertNegation(convertInOp(filter[1], filter.slice(2))) : op === 'has' ? convertHasOp(filter[1]) : op === '!has' ? convertNegation(convertHasOp(filter[1])) : op === 'within' ? filter : true;\n return converted;\n}\nfunction convertComparisonOp(property, value, op) {\n switch (property) {\n case '$type':\n return [\n 'filter-type-' + op,\n value\n ];\n case '$id':\n return [\n 'filter-id-' + op,\n value\n ];\n default:\n return [\n 'filter-' + op,\n property,\n value\n ];\n }\n}\nfunction convertDisjunctionOp(filters) {\n return ['any'].concat(filters.map(convertFilter));\n}\nfunction convertInOp(property, values) {\n if (values.length === 0) {\n return false;\n }\n switch (property) {\n case '$type':\n return [\n 'filter-type-in',\n [\n 'literal',\n values\n ]\n ];\n case '$id':\n return [\n 'filter-id-in',\n [\n 'literal',\n values\n ]\n ];\n default:\n if (values.length > 200 && !values.some(function (v) {\n return typeof v !== typeof values[0];\n })) {\n return [\n 'filter-in-large',\n property,\n [\n 'literal',\n values.sort(compare)\n ]\n ];\n } else {\n return [\n 'filter-in-small',\n property,\n [\n 'literal',\n values\n ]\n ];\n }\n }\n}\nfunction convertHasOp(property) {\n switch (property) {\n case '$type':\n return true;\n case '$id':\n return ['filter-has-id'];\n default:\n return [\n 'filter-has',\n property\n ];\n }\n}\nfunction convertNegation(filter) {\n return [\n '!',\n filter\n ];\n}\n\nfunction validateFilter(options) {\n if (isExpressionFilter(deepUnbundle(options.value))) {\n return validateExpression(extend$1({}, options, {\n expressionContext: 'filter',\n valueSpec: { value: 'boolean' }\n }));\n } else {\n return validateNonExpressionFilter(options);\n }\n}\nfunction validateNonExpressionFilter(options) {\n var value = options.value;\n var key = options.key;\n if (getType(value) !== 'array') {\n return [new ValidationError(key, value, 'array expected, ' + getType(value) + ' found')];\n }\n var styleSpec = options.styleSpec;\n var type;\n var errors = [];\n if (value.length < 1) {\n return [new ValidationError(key, value, 'filter array must have at least 1 element')];\n }\n errors = errors.concat(validateEnum({\n key: key + '[0]',\n value: value[0],\n valueSpec: styleSpec.filter_operator,\n style: options.style,\n styleSpec: options.styleSpec\n }));\n switch (unbundle(value[0])) {\n case '<':\n case '<=':\n case '>':\n case '>=':\n if (value.length >= 2 && unbundle(value[1]) === '$type') {\n errors.push(new ValidationError(key, value, '\"$type\" cannot be use with operator \"' + value[0] + '\"'));\n }\n case '==':\n case '!=':\n if (value.length !== 3) {\n errors.push(new ValidationError(key, value, 'filter array for operator \"' + value[0] + '\" must have 3 elements'));\n }\n case 'in':\n case '!in':\n if (value.length >= 2) {\n type = getType(value[1]);\n if (type !== 'string') {\n errors.push(new ValidationError(key + '[1]', value[1], 'string expected, ' + type + ' found'));\n }\n }\n for (var i = 2; i < value.length; i++) {\n type = getType(value[i]);\n if (unbundle(value[1]) === '$type') {\n errors = errors.concat(validateEnum({\n key: key + '[' + i + ']',\n value: value[i],\n valueSpec: styleSpec.geometry_type,\n style: options.style,\n styleSpec: options.styleSpec\n }));\n } else if (type !== 'string' && type !== 'number' && type !== 'boolean') {\n errors.push(new ValidationError(key + '[' + i + ']', value[i], 'string, number, or boolean expected, ' + type + ' found'));\n }\n }\n break;\n case 'any':\n case 'all':\n case 'none':\n for (var i$1 = 1; i$1 < value.length; i$1++) {\n errors = errors.concat(validateNonExpressionFilter({\n key: key + '[' + i$1 + ']',\n value: value[i$1],\n style: options.style,\n styleSpec: options.styleSpec\n }));\n }\n break;\n case 'has':\n case '!has':\n type = getType(value[1]);\n if (value.length !== 2) {\n errors.push(new ValidationError(key, value, 'filter array for \"' + value[0] + '\" operator must have 2 elements'));\n } else if (type !== 'string') {\n errors.push(new ValidationError(key + '[1]', value[1], 'string expected, ' + type + ' found'));\n }\n break;\n case 'within':\n type = getType(value[1]);\n if (value.length !== 2) {\n errors.push(new ValidationError(key, value, 'filter array for \"' + value[0] + '\" operator must have 2 elements'));\n } else if (type !== 'object') {\n errors.push(new ValidationError(key + '[1]', value[1], 'object expected, ' + type + ' found'));\n }\n break;\n }\n return errors;\n}\n\nfunction validateProperty(options, propertyType) {\n var key = options.key;\n var style = options.style;\n var styleSpec = options.styleSpec;\n var value = options.value;\n var propertyKey = options.objectKey;\n var layerSpec = styleSpec[propertyType + '_' + options.layerType];\n if (!layerSpec) {\n return [];\n }\n var transitionMatch = propertyKey.match(/^(.*)-transition$/);\n if (propertyType === 'paint' && transitionMatch && layerSpec[transitionMatch[1]] && layerSpec[transitionMatch[1]].transition) {\n return validate({\n key: key,\n value: value,\n valueSpec: styleSpec.transition,\n style: style,\n styleSpec: styleSpec\n });\n }\n var valueSpec = options.valueSpec || layerSpec[propertyKey];\n if (!valueSpec) {\n return [new ValidationError(key, value, 'unknown property \"' + propertyKey + '\"')];\n }\n var tokenMatch;\n if (getType(value) === 'string' && supportsPropertyExpression(valueSpec) && !valueSpec.tokens && (tokenMatch = /^{([^}]+)}$/.exec(value))) {\n return [new ValidationError(key, value, '\"' + propertyKey + '\" does not support interpolation syntax\\n' + 'Use an identity property function instead: `{ \"type\": \"identity\", \"property\": ' + JSON.stringify(tokenMatch[1]) + ' }`.')];\n }\n var errors = [];\n if (options.layerType === 'symbol') {\n if (propertyKey === 'text-field' && style && !style.glyphs) {\n errors.push(new ValidationError(key, value, 'use of \"text-field\" requires a style \"glyphs\" property'));\n }\n if (propertyKey === 'text-font' && isFunction(deepUnbundle(value)) && unbundle(value.type) === 'identity') {\n errors.push(new ValidationError(key, value, '\"text-font\" does not support identity functions'));\n }\n }\n return errors.concat(validate({\n key: options.key,\n value: value,\n valueSpec: valueSpec,\n style: style,\n styleSpec: styleSpec,\n expressionContext: 'property',\n propertyType: propertyType,\n propertyKey: propertyKey\n }));\n}\n\nfunction validatePaintProperty(options) {\n return validateProperty(options, 'paint');\n}\n\nfunction validateLayoutProperty(options) {\n return validateProperty(options, 'layout');\n}\n\nfunction validateLayer(options) {\n var errors = [];\n var layer = options.value;\n var key = options.key;\n var style = options.style;\n var styleSpec = options.styleSpec;\n if (!layer.type && !layer.ref) {\n errors.push(new ValidationError(key, layer, 'either \"type\" or \"ref\" is required'));\n }\n var type = unbundle(layer.type);\n var ref = unbundle(layer.ref);\n if (layer.id) {\n var layerId = unbundle(layer.id);\n for (var i = 0; i < options.arrayIndex; i++) {\n var otherLayer = style.layers[i];\n if (unbundle(otherLayer.id) === layerId) {\n errors.push(new ValidationError(key, layer.id, 'duplicate layer id \"' + layer.id + '\", previously used at line ' + otherLayer.id.__line__));\n }\n }\n }\n if ('ref' in layer) {\n [\n 'type',\n 'source',\n 'source-layer',\n 'filter',\n 'layout'\n ].forEach(function (p) {\n if (p in layer) {\n errors.push(new ValidationError(key, layer[p], '\"' + p + '\" is prohibited for ref layers'));\n }\n });\n var parent;\n style.layers.forEach(function (layer) {\n if (unbundle(layer.id) === ref) {\n parent = layer;\n }\n });\n if (!parent) {\n errors.push(new ValidationError(key, layer.ref, 'ref layer \"' + ref + '\" not found'));\n } else if (parent.ref) {\n errors.push(new ValidationError(key, layer.ref, 'ref cannot reference another ref layer'));\n } else {\n type = unbundle(parent.type);\n }\n } else if (type !== 'background') {\n if (!layer.source) {\n errors.push(new ValidationError(key, layer, 'missing required property \"source\"'));\n } else {\n var source = style.sources && style.sources[layer.source];\n var sourceType = source && unbundle(source.type);\n if (!source) {\n errors.push(new ValidationError(key, layer.source, 'source \"' + layer.source + '\" not found'));\n } else if (sourceType === 'vector' && type === 'raster') {\n errors.push(new ValidationError(key, layer.source, 'layer \"' + layer.id + '\" requires a raster source'));\n } else if (sourceType === 'raster' && type !== 'raster') {\n errors.push(new ValidationError(key, layer.source, 'layer \"' + layer.id + '\" requires a vector source'));\n } else if (sourceType === 'vector' && !layer['source-layer']) {\n errors.push(new ValidationError(key, layer, 'layer \"' + layer.id + '\" must specify a \"source-layer\"'));\n } else if (sourceType === 'raster-dem' && type !== 'hillshade') {\n errors.push(new ValidationError(key, layer.source, 'raster-dem source can only be used with layer type \\'hillshade\\'.'));\n } else if (type === 'line' && layer.paint && layer.paint['line-gradient'] && (sourceType !== 'geojson' || !source.lineMetrics)) {\n errors.push(new ValidationError(key, layer, 'layer \"' + layer.id + '\" specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.'));\n }\n }\n }\n errors = errors.concat(validateObject({\n key: key,\n value: layer,\n valueSpec: styleSpec.layer,\n style: options.style,\n styleSpec: options.styleSpec,\n objectElementValidators: {\n '*': function _() {\n return [];\n },\n type: function type() {\n return validate({\n key: key + '.type',\n value: layer.type,\n valueSpec: styleSpec.layer.type,\n style: options.style,\n styleSpec: options.styleSpec,\n object: layer,\n objectKey: 'type'\n });\n },\n filter: validateFilter,\n layout: function layout(options) {\n return validateObject({\n layer: layer,\n key: options.key,\n value: options.value,\n style: options.style,\n styleSpec: options.styleSpec,\n objectElementValidators: {\n '*': function _(options) {\n return validateLayoutProperty(extend$1({ layerType: type }, options));\n }\n }\n });\n },\n paint: function paint(options) {\n return validateObject({\n layer: layer,\n key: options.key,\n value: options.value,\n style: options.style,\n styleSpec: options.styleSpec,\n objectElementValidators: {\n '*': function _(options) {\n return validatePaintProperty(extend$1({ layerType: type }, options));\n }\n }\n });\n }\n }\n }));\n return errors;\n}\n\nfunction validateString(options) {\n var value = options.value;\n var key = options.key;\n var type = getType(value);\n if (type !== 'string') {\n return [new ValidationError(key, value, 'string expected, ' + type + ' found')];\n }\n return [];\n}\n\nvar objectElementValidators = { promoteId: validatePromoteId };\nfunction validateSource(options) {\n var value = options.value;\n var key = options.key;\n var styleSpec = options.styleSpec;\n var style = options.style;\n if (!value.type) {\n return [new ValidationError(key, value, '\"type\" is required')];\n }\n var type = unbundle(value.type);\n var errors;\n switch (type) {\n case 'vector':\n case 'raster':\n case 'raster-dem':\n errors = validateObject({\n key: key,\n value: value,\n valueSpec: styleSpec['source_' + type.replace('-', '_')],\n style: options.style,\n styleSpec: styleSpec,\n objectElementValidators: objectElementValidators\n });\n return errors;\n case 'geojson':\n errors = validateObject({\n key: key,\n value: value,\n valueSpec: styleSpec.source_geojson,\n style: style,\n styleSpec: styleSpec,\n objectElementValidators: objectElementValidators\n });\n if (value.cluster) {\n for (var prop in value.clusterProperties) {\n var ref = value.clusterProperties[prop];\n var operator = ref[0];\n var mapExpr = ref[1];\n var reduceExpr = typeof operator === 'string' ? [\n operator,\n ['accumulated'],\n [\n 'get',\n prop\n ]\n ] : operator;\n errors.push.apply(errors, validateExpression({\n key: key + '.' + prop + '.map',\n value: mapExpr,\n expressionContext: 'cluster-map'\n }));\n errors.push.apply(errors, validateExpression({\n key: key + '.' + prop + '.reduce',\n value: reduceExpr,\n expressionContext: 'cluster-reduce'\n }));\n }\n }\n return errors;\n case 'video':\n return validateObject({\n key: key,\n value: value,\n valueSpec: styleSpec.source_video,\n style: style,\n styleSpec: styleSpec\n });\n case 'image':\n return validateObject({\n key: key,\n value: value,\n valueSpec: styleSpec.source_image,\n style: style,\n styleSpec: styleSpec\n });\n case 'canvas':\n return [new ValidationError(key, null, 'Please use runtime APIs to add canvas sources, rather than including them in stylesheets.', 'source.canvas')];\n default:\n return validateEnum({\n key: key + '.type',\n value: value.type,\n valueSpec: {\n values: [\n 'vector',\n 'raster',\n 'raster-dem',\n 'geojson',\n 'video',\n 'image'\n ]\n },\n style: style,\n styleSpec: styleSpec\n });\n }\n}\nfunction validatePromoteId(ref) {\n var key = ref.key;\n var value = ref.value;\n if (getType(value) === 'string') {\n return validateString({\n key: key,\n value: value\n });\n } else {\n var errors = [];\n for (var prop in value) {\n errors.push.apply(errors, validateString({\n key: key + '.' + prop,\n value: value[prop]\n }));\n }\n return errors;\n }\n}\n\nfunction validateLight(options) {\n var light = options.value;\n var styleSpec = options.styleSpec;\n var lightSpec = styleSpec.light;\n var style = options.style;\n var errors = [];\n var rootType = getType(light);\n if (light === undefined) {\n return errors;\n } else if (rootType !== 'object') {\n errors = errors.concat([new ValidationError('light', light, 'object expected, ' + rootType + ' found')]);\n return errors;\n }\n for (var key in light) {\n var transitionMatch = key.match(/^(.*)-transition$/);\n if (transitionMatch && lightSpec[transitionMatch[1]] && lightSpec[transitionMatch[1]].transition) {\n errors = errors.concat(validate({\n key: key,\n value: light[key],\n valueSpec: styleSpec.transition,\n style: style,\n styleSpec: styleSpec\n }));\n } else if (lightSpec[key]) {\n errors = errors.concat(validate({\n key: key,\n value: light[key],\n valueSpec: lightSpec[key],\n style: style,\n styleSpec: styleSpec\n }));\n } else {\n errors = errors.concat([new ValidationError(key, light[key], 'unknown property \"' + key + '\"')]);\n }\n }\n return errors;\n}\n\nfunction validateFormatted(options) {\n if (validateString(options).length === 0) {\n return [];\n }\n return validateExpression(options);\n}\n\nfunction validateImage(options) {\n if (validateString(options).length === 0) {\n return [];\n }\n return validateExpression(options);\n}\n\nvar VALIDATORS = {\n '*': function _() {\n return [];\n },\n 'array': validateArray,\n 'boolean': validateBoolean,\n 'number': validateNumber,\n 'color': validateColor,\n 'constants': validateConstants,\n 'enum': validateEnum,\n 'filter': validateFilter,\n 'function': validateFunction,\n 'layer': validateLayer,\n 'object': validateObject,\n 'source': validateSource,\n 'light': validateLight,\n 'string': validateString,\n 'formatted': validateFormatted,\n 'resolvedImage': validateImage\n};\nfunction validate(options) {\n var value = options.value;\n var valueSpec = options.valueSpec;\n var styleSpec = options.styleSpec;\n if (valueSpec.expression && isFunction(unbundle(value))) {\n return validateFunction(options);\n } else if (valueSpec.expression && isExpression(deepUnbundle(value))) {\n return validateExpression(options);\n } else if (valueSpec.type && VALIDATORS[valueSpec.type]) {\n return VALIDATORS[valueSpec.type](options);\n } else {\n var valid = validateObject(extend$1({}, options, { valueSpec: valueSpec.type ? styleSpec[valueSpec.type] : valueSpec }));\n return valid;\n }\n}\n\nfunction validateGlyphsURL (options) {\n var value = options.value;\n var key = options.key;\n var errors = validateString(options);\n if (errors.length) {\n return errors;\n }\n if (value.indexOf('{fontstack}') === -1) {\n errors.push(new ValidationError(key, value, '\"glyphs\" url must include a \"{fontstack}\" token'));\n }\n if (value.indexOf('{range}') === -1) {\n errors.push(new ValidationError(key, value, '\"glyphs\" url must include a \"{range}\" token'));\n }\n return errors;\n}\n\nfunction validateStyleMin(style, styleSpec) {\n if (styleSpec === void 0)\n styleSpec = spec;\n var errors = [];\n errors = errors.concat(validate({\n key: '',\n value: style,\n valueSpec: styleSpec.$root,\n styleSpec: styleSpec,\n style: style,\n objectElementValidators: {\n glyphs: validateGlyphsURL,\n '*': function _() {\n return [];\n }\n }\n }));\n if (style.constants) {\n errors = errors.concat(validateConstants({\n key: 'constants',\n value: style.constants,\n style: style,\n styleSpec: styleSpec\n }));\n }\n return sortErrors(errors);\n}\nvalidateStyleMin.source = wrapCleanErrors(validateSource);\nvalidateStyleMin.light = wrapCleanErrors(validateLight);\nvalidateStyleMin.layer = wrapCleanErrors(validateLayer);\nvalidateStyleMin.filter = wrapCleanErrors(validateFilter);\nvalidateStyleMin.paintProperty = wrapCleanErrors(validatePaintProperty);\nvalidateStyleMin.layoutProperty = wrapCleanErrors(validateLayoutProperty);\nfunction sortErrors(errors) {\n return [].concat(errors).sort(function (a, b) {\n return a.line - b.line;\n });\n}\nfunction wrapCleanErrors(inner) {\n return function () {\n var args = [], len = arguments.length;\n while (len--)\n args[len] = arguments[len];\n return sortErrors(inner.apply(this, args));\n };\n}\n\nvar validateStyle = validateStyleMin;\nvar validateLight$1 = validateStyle.light;\nvar validatePaintProperty$1 = validateStyle.paintProperty;\nvar validateLayoutProperty$1 = validateStyle.layoutProperty;\nfunction emitValidationErrors(emitter, errors) {\n var hasErrors = false;\n if (errors && errors.length) {\n for (var i = 0, list = errors; i < list.length; i += 1) {\n var error = list[i];\n emitter.fire(new ErrorEvent(new Error(error.message)));\n hasErrors = true;\n }\n }\n return hasErrors;\n}\n\nvar gridIndex = GridIndex;\nvar NUM_PARAMS = 3;\nfunction GridIndex(extent, n, padding) {\n var cells = this.cells = [];\n if (extent instanceof ArrayBuffer) {\n this.arrayBuffer = extent;\n var array = new Int32Array(this.arrayBuffer);\n extent = array[0];\n n = array[1];\n padding = array[2];\n this.d = n + 2 * padding;\n for (var k = 0; k < this.d * this.d; k++) {\n var start = array[NUM_PARAMS + k];\n var end = array[NUM_PARAMS + k + 1];\n cells.push(start === end ? null : array.subarray(start, end));\n }\n var keysOffset = array[NUM_PARAMS + cells.length];\n var bboxesOffset = array[NUM_PARAMS + cells.length + 1];\n this.keys = array.subarray(keysOffset, bboxesOffset);\n this.bboxes = array.subarray(bboxesOffset);\n this.insert = this._insertReadonly;\n } else {\n this.d = n + 2 * padding;\n for (var i = 0; i < this.d * this.d; i++) {\n cells.push([]);\n }\n this.keys = [];\n this.bboxes = [];\n }\n this.n = n;\n this.extent = extent;\n this.padding = padding;\n this.scale = n / extent;\n this.uid = 0;\n var p = padding / n * extent;\n this.min = -p;\n this.max = extent + p;\n}\nGridIndex.prototype.insert = function (key, x1, y1, x2, y2) {\n this._forEachCell(x1, y1, x2, y2, this._insertCell, this.uid++);\n this.keys.push(key);\n this.bboxes.push(x1);\n this.bboxes.push(y1);\n this.bboxes.push(x2);\n this.bboxes.push(y2);\n};\nGridIndex.prototype._insertReadonly = function () {\n throw 'Cannot insert into a GridIndex created from an ArrayBuffer.';\n};\nGridIndex.prototype._insertCell = function (x1, y1, x2, y2, cellIndex, uid) {\n this.cells[cellIndex].push(uid);\n};\nGridIndex.prototype.query = function (x1, y1, x2, y2, intersectionTest) {\n var min = this.min;\n var max = this.max;\n if (x1 <= min && y1 <= min && max <= x2 && max <= y2 && !intersectionTest) {\n return Array.prototype.slice.call(this.keys);\n } else {\n var result = [];\n var seenUids = {};\n this._forEachCell(x1, y1, x2, y2, this._queryCell, result, seenUids, intersectionTest);\n return result;\n }\n};\nGridIndex.prototype._queryCell = function (x1, y1, x2, y2, cellIndex, result, seenUids, intersectionTest) {\n var cell = this.cells[cellIndex];\n if (cell !== null) {\n var keys = this.keys;\n var bboxes = this.bboxes;\n for (var u = 0; u < cell.length; u++) {\n var uid = cell[u];\n if (seenUids[uid] === undefined) {\n var offset = uid * 4;\n if (intersectionTest ? intersectionTest(bboxes[offset + 0], bboxes[offset + 1], bboxes[offset + 2], bboxes[offset + 3]) : x1 <= bboxes[offset + 2] && y1 <= bboxes[offset + 3] && x2 >= bboxes[offset + 0] && y2 >= bboxes[offset + 1]) {\n seenUids[uid] = true;\n result.push(keys[uid]);\n } else {\n seenUids[uid] = false;\n }\n }\n }\n }\n};\nGridIndex.prototype._forEachCell = function (x1, y1, x2, y2, fn, arg1, arg2, intersectionTest) {\n var cx1 = this._convertToCellCoord(x1);\n var cy1 = this._convertToCellCoord(y1);\n var cx2 = this._convertToCellCoord(x2);\n var cy2 = this._convertToCellCoord(y2);\n for (var x = cx1; x <= cx2; x++) {\n for (var y = cy1; y <= cy2; y++) {\n var cellIndex = this.d * y + x;\n if (intersectionTest && !intersectionTest(this._convertFromCellCoord(x), this._convertFromCellCoord(y), this._convertFromCellCoord(x + 1), this._convertFromCellCoord(y + 1))) {\n continue;\n }\n if (fn.call(this, x1, y1, x2, y2, cellIndex, arg1, arg2, intersectionTest)) {\n return;\n }\n }\n }\n};\nGridIndex.prototype._convertFromCellCoord = function (x) {\n return (x - this.padding) / this.scale;\n};\nGridIndex.prototype._convertToCellCoord = function (x) {\n return Math.max(0, Math.min(this.d - 1, Math.floor(x * this.scale) + this.padding));\n};\nGridIndex.prototype.toArrayBuffer = function () {\n if (this.arrayBuffer) {\n return this.arrayBuffer;\n }\n var cells = this.cells;\n var metadataLength = NUM_PARAMS + this.cells.length + 1 + 1;\n var totalCellLength = 0;\n for (var i = 0; i < this.cells.length; i++) {\n totalCellLength += this.cells[i].length;\n }\n var array = new Int32Array(metadataLength + totalCellLength + this.keys.length + this.bboxes.length);\n array[0] = this.extent;\n array[1] = this.n;\n array[2] = this.padding;\n var offset = metadataLength;\n for (var k = 0; k < cells.length; k++) {\n var cell = cells[k];\n array[NUM_PARAMS + k] = offset;\n array.set(cell, offset);\n offset += cell.length;\n }\n array[NUM_PARAMS + cells.length] = offset;\n array.set(this.keys, offset);\n offset += this.keys.length;\n array[NUM_PARAMS + cells.length + 1] = offset;\n array.set(this.bboxes, offset);\n offset += this.bboxes.length;\n return array.buffer;\n};\n\nvar ImageData = self.ImageData;\nvar ImageBitmap = self.ImageBitmap;\nvar registry = {};\nfunction register(name, klass, options) {\n if (options === void 0)\n options = {};\n Object.defineProperty(klass, '_classRegistryKey', {\n value: name,\n writeable: false\n });\n registry[name] = {\n klass: klass,\n omit: options.omit || [],\n shallow: options.shallow || []\n };\n}\nregister('Object', Object);\ngridIndex.serialize = function serialize(grid, transferables) {\n var buffer = grid.toArrayBuffer();\n if (transferables) {\n transferables.push(buffer);\n }\n return { buffer: buffer };\n};\ngridIndex.deserialize = function deserialize(serialized) {\n return new gridIndex(serialized.buffer);\n};\nregister('Grid', gridIndex);\nregister('Color', Color);\nregister('Error', Error);\nregister('ResolvedImage', ResolvedImage);\nregister('StylePropertyFunction', StylePropertyFunction);\nregister('StyleExpression', StyleExpression, { omit: ['_evaluator'] });\nregister('ZoomDependentExpression', ZoomDependentExpression);\nregister('ZoomConstantExpression', ZoomConstantExpression);\nregister('CompoundExpression', CompoundExpression, { omit: ['_evaluate'] });\nfor (var name in expressions) {\n if (expressions[name]._classRegistryKey) {\n continue;\n }\n register('Expression_' + name, expressions[name]);\n}\nfunction isArrayBuffer(val) {\n return val && typeof ArrayBuffer !== 'undefined' && (val instanceof ArrayBuffer || val.constructor && val.constructor.name === 'ArrayBuffer');\n}\nfunction isImageBitmap(val) {\n return ImageBitmap && val instanceof ImageBitmap;\n}\nfunction serialize(input, transferables) {\n if (input === null || input === undefined || typeof input === 'boolean' || typeof input === 'number' || typeof input === 'string' || input instanceof Boolean || input instanceof Number || input instanceof String || input instanceof Date || input instanceof RegExp) {\n return input;\n }\n if (isArrayBuffer(input) || isImageBitmap(input)) {\n if (transferables) {\n transferables.push(input);\n }\n return input;\n }\n if (ArrayBuffer.isView(input)) {\n var view = input;\n if (transferables) {\n transferables.push(view.buffer);\n }\n return view;\n }\n if (input instanceof ImageData) {\n if (transferables) {\n transferables.push(input.data.buffer);\n }\n return input;\n }\n if (Array.isArray(input)) {\n var serialized = [];\n for (var i = 0, list = input; i < list.length; i += 1) {\n var item = list[i];\n serialized.push(serialize(item, transferables));\n }\n return serialized;\n }\n if (typeof input === 'object') {\n var klass = input.constructor;\n var name = klass._classRegistryKey;\n if (!name) {\n throw new Error('can\\'t serialize object of unregistered class');\n }\n var properties = klass.serialize ? klass.serialize(input, transferables) : {};\n if (!klass.serialize) {\n for (var key in input) {\n if (!input.hasOwnProperty(key)) {\n continue;\n }\n if (registry[name].omit.indexOf(key) >= 0) {\n continue;\n }\n var property = input[key];\n properties[key] = registry[name].shallow.indexOf(key) >= 0 ? property : serialize(property, transferables);\n }\n if (input instanceof Error) {\n properties.message = input.message;\n }\n }\n if (properties.$name) {\n throw new Error('$name property is reserved for worker serialization logic.');\n }\n if (name !== 'Object') {\n properties.$name = name;\n }\n return properties;\n }\n throw new Error('can\\'t serialize object of type ' + typeof input);\n}\nfunction deserialize(input) {\n if (input === null || input === undefined || typeof input === 'boolean' || typeof input === 'number' || typeof input === 'string' || input instanceof Boolean || input instanceof Number || input instanceof String || input instanceof Date || input instanceof RegExp || isArrayBuffer(input) || isImageBitmap(input) || ArrayBuffer.isView(input) || input instanceof ImageData) {\n return input;\n }\n if (Array.isArray(input)) {\n return input.map(deserialize);\n }\n if (typeof input === 'object') {\n var name = input.$name || 'Object';\n var ref = registry[name];\n var klass = ref.klass;\n if (!klass) {\n throw new Error('can\\'t deserialize unregistered class ' + name);\n }\n if (klass.deserialize) {\n return klass.deserialize(input);\n }\n var result = Object.create(klass.prototype);\n for (var i = 0, list = Object.keys(input); i < list.length; i += 1) {\n var key = list[i];\n if (key === '$name') {\n continue;\n }\n var value = input[key];\n result[key] = registry[name].shallow.indexOf(key) >= 0 ? value : deserialize(value);\n }\n return result;\n }\n throw new Error('can\\'t deserialize object of type ' + typeof input);\n}\n\nvar ZoomHistory = function ZoomHistory() {\n this.first = true;\n};\nZoomHistory.prototype.update = function update(z, now) {\n var floorZ = Math.floor(z);\n if (this.first) {\n this.first = false;\n this.lastIntegerZoom = floorZ;\n this.lastIntegerZoomTime = 0;\n this.lastZoom = z;\n this.lastFloorZoom = floorZ;\n return true;\n }\n if (this.lastFloorZoom > floorZ) {\n this.lastIntegerZoom = floorZ + 1;\n this.lastIntegerZoomTime = now;\n } else if (this.lastFloorZoom < floorZ) {\n this.lastIntegerZoom = floorZ;\n this.lastIntegerZoomTime = now;\n }\n if (z !== this.lastZoom) {\n this.lastZoom = z;\n this.lastFloorZoom = floorZ;\n return true;\n }\n return false;\n};\n\nvar unicodeBlockLookup = {\n 'Latin-1 Supplement': function (char) {\n return char >= 128 && char <= 255;\n },\n 'Arabic': function (char) {\n return char >= 1536 && char <= 1791;\n },\n 'Arabic Supplement': function (char) {\n return char >= 1872 && char <= 1919;\n },\n 'Arabic Extended-A': function (char) {\n return char >= 2208 && char <= 2303;\n },\n 'Hangul Jamo': function (char) {\n return char >= 4352 && char <= 4607;\n },\n 'Unified Canadian Aboriginal Syllabics': function (char) {\n return char >= 5120 && char <= 5759;\n },\n 'Khmer': function (char) {\n return char >= 6016 && char <= 6143;\n },\n 'Unified Canadian Aboriginal Syllabics Extended': function (char) {\n return char >= 6320 && char <= 6399;\n },\n 'General Punctuation': function (char) {\n return char >= 8192 && char <= 8303;\n },\n 'Letterlike Symbols': function (char) {\n return char >= 8448 && char <= 8527;\n },\n 'Number Forms': function (char) {\n return char >= 8528 && char <= 8591;\n },\n 'Miscellaneous Technical': function (char) {\n return char >= 8960 && char <= 9215;\n },\n 'Control Pictures': function (char) {\n return char >= 9216 && char <= 9279;\n },\n 'Optical Character Recognition': function (char) {\n return char >= 9280 && char <= 9311;\n },\n 'Enclosed Alphanumerics': function (char) {\n return char >= 9312 && char <= 9471;\n },\n 'Geometric Shapes': function (char) {\n return char >= 9632 && char <= 9727;\n },\n 'Miscellaneous Symbols': function (char) {\n return char >= 9728 && char <= 9983;\n },\n 'Miscellaneous Symbols and Arrows': function (char) {\n return char >= 11008 && char <= 11263;\n },\n 'CJK Radicals Supplement': function (char) {\n return char >= 11904 && char <= 12031;\n },\n 'Kangxi Radicals': function (char) {\n return char >= 12032 && char <= 12255;\n },\n 'Ideographic Description Characters': function (char) {\n return char >= 12272 && char <= 12287;\n },\n 'CJK Symbols and Punctuation': function (char) {\n return char >= 12288 && char <= 12351;\n },\n 'Hiragana': function (char) {\n return char >= 12352 && char <= 12447;\n },\n 'Katakana': function (char) {\n return char >= 12448 && char <= 12543;\n },\n 'Bopomofo': function (char) {\n return char >= 12544 && char <= 12591;\n },\n 'Hangul Compatibility Jamo': function (char) {\n return char >= 12592 && char <= 12687;\n },\n 'Kanbun': function (char) {\n return char >= 12688 && char <= 12703;\n },\n 'Bopomofo Extended': function (char) {\n return char >= 12704 && char <= 12735;\n },\n 'CJK Strokes': function (char) {\n return char >= 12736 && char <= 12783;\n },\n 'Katakana Phonetic Extensions': function (char) {\n return char >= 12784 && char <= 12799;\n },\n 'Enclosed CJK Letters and Months': function (char) {\n return char >= 12800 && char <= 13055;\n },\n 'CJK Compatibility': function (char) {\n return char >= 13056 && char <= 13311;\n },\n 'CJK Unified Ideographs Extension A': function (char) {\n return char >= 13312 && char <= 19903;\n },\n 'Yijing Hexagram Symbols': function (char) {\n return char >= 19904 && char <= 19967;\n },\n 'CJK Unified Ideographs': function (char) {\n return char >= 19968 && char <= 40959;\n },\n 'Yi Syllables': function (char) {\n return char >= 40960 && char <= 42127;\n },\n 'Yi Radicals': function (char) {\n return char >= 42128 && char <= 42191;\n },\n 'Hangul Jamo Extended-A': function (char) {\n return char >= 43360 && char <= 43391;\n },\n 'Hangul Syllables': function (char) {\n return char >= 44032 && char <= 55215;\n },\n 'Hangul Jamo Extended-B': function (char) {\n return char >= 55216 && char <= 55295;\n },\n 'Private Use Area': function (char) {\n return char >= 57344 && char <= 63743;\n },\n 'CJK Compatibility Ideographs': function (char) {\n return char >= 63744 && char <= 64255;\n },\n 'Arabic Presentation Forms-A': function (char) {\n return char >= 64336 && char <= 65023;\n },\n 'Vertical Forms': function (char) {\n return char >= 65040 && char <= 65055;\n },\n 'CJK Compatibility Forms': function (char) {\n return char >= 65072 && char <= 65103;\n },\n 'Small Form Variants': function (char) {\n return char >= 65104 && char <= 65135;\n },\n 'Arabic Presentation Forms-B': function (char) {\n return char >= 65136 && char <= 65279;\n },\n 'Halfwidth and Fullwidth Forms': function (char) {\n return char >= 65280 && char <= 65519;\n }\n};\n\nfunction allowsVerticalWritingMode(chars) {\n for (var i = 0, list = chars; i < list.length; i += 1) {\n var char = list[i];\n if (charHasUprightVerticalOrientation(char.charCodeAt(0))) {\n return true;\n }\n }\n return false;\n}\nfunction allowsLetterSpacing(chars) {\n for (var i = 0, list = chars; i < list.length; i += 1) {\n var char = list[i];\n if (!charAllowsLetterSpacing(char.charCodeAt(0))) {\n return false;\n }\n }\n return true;\n}\nfunction charAllowsLetterSpacing(char) {\n if (unicodeBlockLookup['Arabic'](char)) {\n return false;\n }\n if (unicodeBlockLookup['Arabic Supplement'](char)) {\n return false;\n }\n if (unicodeBlockLookup['Arabic Extended-A'](char)) {\n return false;\n }\n if (unicodeBlockLookup['Arabic Presentation Forms-A'](char)) {\n return false;\n }\n if (unicodeBlockLookup['Arabic Presentation Forms-B'](char)) {\n return false;\n }\n return true;\n}\nfunction charAllowsIdeographicBreaking(char) {\n if (char < 11904) {\n return false;\n }\n if (unicodeBlockLookup['Bopomofo Extended'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Bopomofo'](char)) {\n return true;\n }\n if (unicodeBlockLookup['CJK Compatibility Forms'](char)) {\n return true;\n }\n if (unicodeBlockLookup['CJK Compatibility Ideographs'](char)) {\n return true;\n }\n if (unicodeBlockLookup['CJK Compatibility'](char)) {\n return true;\n }\n if (unicodeBlockLookup['CJK Radicals Supplement'](char)) {\n return true;\n }\n if (unicodeBlockLookup['CJK Strokes'](char)) {\n return true;\n }\n if (unicodeBlockLookup['CJK Symbols and Punctuation'](char)) {\n return true;\n }\n if (unicodeBlockLookup['CJK Unified Ideographs Extension A'](char)) {\n return true;\n }\n if (unicodeBlockLookup['CJK Unified Ideographs'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Enclosed CJK Letters and Months'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Halfwidth and Fullwidth Forms'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Hiragana'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Ideographic Description Characters'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Kangxi Radicals'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Katakana Phonetic Extensions'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Katakana'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Vertical Forms'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Yi Radicals'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Yi Syllables'](char)) {\n return true;\n }\n return false;\n}\nfunction charHasUprightVerticalOrientation(char) {\n if (char === 746 || char === 747) {\n return true;\n }\n if (char < 4352) {\n return false;\n }\n if (unicodeBlockLookup['Bopomofo Extended'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Bopomofo'](char)) {\n return true;\n }\n if (unicodeBlockLookup['CJK Compatibility Forms'](char)) {\n if (!(char >= 65097 && char <= 65103)) {\n return true;\n }\n }\n if (unicodeBlockLookup['CJK Compatibility Ideographs'](char)) {\n return true;\n }\n if (unicodeBlockLookup['CJK Compatibility'](char)) {\n return true;\n }\n if (unicodeBlockLookup['CJK Radicals Supplement'](char)) {\n return true;\n }\n if (unicodeBlockLookup['CJK Strokes'](char)) {\n return true;\n }\n if (unicodeBlockLookup['CJK Symbols and Punctuation'](char)) {\n if (!(char >= 12296 && char <= 12305) && !(char >= 12308 && char <= 12319) && char !== 12336) {\n return true;\n }\n }\n if (unicodeBlockLookup['CJK Unified Ideographs Extension A'](char)) {\n return true;\n }\n if (unicodeBlockLookup['CJK Unified Ideographs'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Enclosed CJK Letters and Months'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Hangul Compatibility Jamo'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Hangul Jamo Extended-A'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Hangul Jamo Extended-B'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Hangul Jamo'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Hangul Syllables'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Hiragana'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Ideographic Description Characters'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Kanbun'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Kangxi Radicals'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Katakana Phonetic Extensions'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Katakana'](char)) {\n if (char !== 12540) {\n return true;\n }\n }\n if (unicodeBlockLookup['Halfwidth and Fullwidth Forms'](char)) {\n if (char !== 65288 && char !== 65289 && char !== 65293 && !(char >= 65306 && char <= 65310) && char !== 65339 && char !== 65341 && char !== 65343 && !(char >= 65371 && char <= 65503) && char !== 65507 && !(char >= 65512 && char <= 65519)) {\n return true;\n }\n }\n if (unicodeBlockLookup['Small Form Variants'](char)) {\n if (!(char >= 65112 && char <= 65118) && !(char >= 65123 && char <= 65126)) {\n return true;\n }\n }\n if (unicodeBlockLookup['Unified Canadian Aboriginal Syllabics'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Unified Canadian Aboriginal Syllabics Extended'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Vertical Forms'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Yijing Hexagram Symbols'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Yi Syllables'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Yi Radicals'](char)) {\n return true;\n }\n return false;\n}\nfunction charHasNeutralVerticalOrientation(char) {\n if (unicodeBlockLookup['Latin-1 Supplement'](char)) {\n if (char === 167 || char === 169 || char === 174 || char === 177 || char === 188 || char === 189 || char === 190 || char === 215 || char === 247) {\n return true;\n }\n }\n if (unicodeBlockLookup['General Punctuation'](char)) {\n if (char === 8214 || char === 8224 || char === 8225 || char === 8240 || char === 8241 || char === 8251 || char === 8252 || char === 8258 || char === 8263 || char === 8264 || char === 8265 || char === 8273) {\n return true;\n }\n }\n if (unicodeBlockLookup['Letterlike Symbols'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Number Forms'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Miscellaneous Technical'](char)) {\n if (char >= 8960 && char <= 8967 || char >= 8972 && char <= 8991 || char >= 8996 && char <= 9000 || char === 9003 || char >= 9085 && char <= 9114 || char >= 9150 && char <= 9165 || char === 9167 || char >= 9169 && char <= 9179 || char >= 9186 && char <= 9215) {\n return true;\n }\n }\n if (unicodeBlockLookup['Control Pictures'](char) && char !== 9251) {\n return true;\n }\n if (unicodeBlockLookup['Optical Character Recognition'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Enclosed Alphanumerics'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Geometric Shapes'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Miscellaneous Symbols'](char)) {\n if (!(char >= 9754 && char <= 9759)) {\n return true;\n }\n }\n if (unicodeBlockLookup['Miscellaneous Symbols and Arrows'](char)) {\n if (char >= 11026 && char <= 11055 || char >= 11088 && char <= 11097 || char >= 11192 && char <= 11243) {\n return true;\n }\n }\n if (unicodeBlockLookup['CJK Symbols and Punctuation'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Katakana'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Private Use Area'](char)) {\n return true;\n }\n if (unicodeBlockLookup['CJK Compatibility Forms'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Small Form Variants'](char)) {\n return true;\n }\n if (unicodeBlockLookup['Halfwidth and Fullwidth Forms'](char)) {\n return true;\n }\n if (char === 8734 || char === 8756 || char === 8757 || char >= 9984 && char <= 10087 || char >= 10102 && char <= 10131 || char === 65532 || char === 65533) {\n return true;\n }\n return false;\n}\nfunction charHasRotatedVerticalOrientation(char) {\n return !(charHasUprightVerticalOrientation(char) || charHasNeutralVerticalOrientation(char));\n}\nfunction charInComplexShapingScript(char) {\n return unicodeBlockLookup['Arabic'](char) || unicodeBlockLookup['Arabic Supplement'](char) || unicodeBlockLookup['Arabic Extended-A'](char) || unicodeBlockLookup['Arabic Presentation Forms-A'](char) || unicodeBlockLookup['Arabic Presentation Forms-B'](char);\n}\nfunction charInRTLScript(char) {\n return char >= 1424 && char <= 2303 || unicodeBlockLookup['Arabic Presentation Forms-A'](char) || unicodeBlockLookup['Arabic Presentation Forms-B'](char);\n}\nfunction charInSupportedScript(char, canRenderRTL) {\n if (!canRenderRTL && charInRTLScript(char)) {\n return false;\n }\n if (char >= 2304 && char <= 3583 || char >= 3840 && char <= 4255 || unicodeBlockLookup['Khmer'](char)) {\n return false;\n }\n return true;\n}\nfunction stringContainsRTLText(chars) {\n for (var i = 0, list = chars; i < list.length; i += 1) {\n var char = list[i];\n if (charInRTLScript(char.charCodeAt(0))) {\n return true;\n }\n }\n return false;\n}\nfunction isStringInSupportedScript(chars, canRenderRTL) {\n for (var i = 0, list = chars; i < list.length; i += 1) {\n var char = list[i];\n if (!charInSupportedScript(char.charCodeAt(0), canRenderRTL)) {\n return false;\n }\n }\n return true;\n}\n\nvar status = {\n unavailable: 'unavailable',\n deferred: 'deferred',\n loading: 'loading',\n loaded: 'loaded',\n error: 'error'\n};\nvar _completionCallback = null;\nvar pluginStatus = status.unavailable;\nvar pluginURL = null;\nvar triggerPluginCompletionEvent = function (error) {\n if (error && typeof error === 'string' && error.indexOf('NetworkError') > -1) {\n pluginStatus = status.error;\n }\n if (_completionCallback) {\n _completionCallback(error);\n }\n};\nfunction sendPluginStateToWorker() {\n evented.fire(new Event('pluginStateChange', {\n pluginStatus: pluginStatus,\n pluginURL: pluginURL\n }));\n}\nvar evented = new Evented();\nvar getRTLTextPluginStatus = function () {\n return pluginStatus;\n};\nvar registerForPluginStateChange = function (callback) {\n callback({\n pluginStatus: pluginStatus,\n pluginURL: pluginURL\n });\n evented.on('pluginStateChange', callback);\n return callback;\n};\nvar setRTLTextPlugin = function (url, callback, deferred) {\n if (deferred === void 0)\n deferred = false;\n if (pluginStatus === status.deferred || pluginStatus === status.loading || pluginStatus === status.loaded) {\n throw new Error('setRTLTextPlugin cannot be called multiple times.');\n }\n pluginURL = exported.resolveURL(url);\n pluginStatus = status.deferred;\n _completionCallback = callback;\n sendPluginStateToWorker();\n if (!deferred) {\n downloadRTLTextPlugin();\n }\n};\nvar downloadRTLTextPlugin = function () {\n if (pluginStatus !== status.deferred || !pluginURL) {\n throw new Error('rtl-text-plugin cannot be downloaded unless a pluginURL is specified');\n }\n pluginStatus = status.loading;\n sendPluginStateToWorker();\n if (pluginURL) {\n getArrayBuffer({ url: pluginURL }, function (error) {\n if (error) {\n triggerPluginCompletionEvent(error);\n } else {\n pluginStatus = status.loaded;\n sendPluginStateToWorker();\n }\n });\n }\n};\nvar plugin = {\n applyArabicShaping: null,\n processBidirectionalText: null,\n processStyledBidirectionalText: null,\n isLoaded: function isLoaded() {\n return pluginStatus === status.loaded || plugin.applyArabicShaping != null;\n },\n isLoading: function isLoading() {\n return pluginStatus === status.loading;\n },\n setState: function setState(state) {\n pluginStatus = state.pluginStatus;\n pluginURL = state.pluginURL;\n },\n isParsed: function isParsed() {\n return plugin.applyArabicShaping != null && plugin.processBidirectionalText != null && plugin.processStyledBidirectionalText != null;\n },\n getPluginURL: function getPluginURL() {\n return pluginURL;\n }\n};\nvar lazyLoadRTLTextPlugin = function () {\n if (!plugin.isLoading() && !plugin.isLoaded() && getRTLTextPluginStatus() === 'deferred') {\n downloadRTLTextPlugin();\n }\n};\n\nvar EvaluationParameters = function EvaluationParameters(zoom, options) {\n this.zoom = zoom;\n if (options) {\n this.now = options.now;\n this.fadeDuration = options.fadeDuration;\n this.zoomHistory = options.zoomHistory;\n this.transition = options.transition;\n } else {\n this.now = 0;\n this.fadeDuration = 0;\n this.zoomHistory = new ZoomHistory();\n this.transition = {};\n }\n};\nEvaluationParameters.prototype.isSupportedScript = function isSupportedScript(str) {\n return isStringInSupportedScript(str, plugin.isLoaded());\n};\nEvaluationParameters.prototype.crossFadingFactor = function crossFadingFactor() {\n if (this.fadeDuration === 0) {\n return 1;\n } else {\n return Math.min((this.now - this.zoomHistory.lastIntegerZoomTime) / this.fadeDuration, 1);\n }\n};\nEvaluationParameters.prototype.getCrossfadeParameters = function getCrossfadeParameters() {\n var z = this.zoom;\n var fraction = z - Math.floor(z);\n var t = this.crossFadingFactor();\n return z > this.zoomHistory.lastIntegerZoom ? {\n fromScale: 2,\n toScale: 1,\n t: fraction + (1 - fraction) * t\n } : {\n fromScale: 0.5,\n toScale: 1,\n t: 1 - (1 - t) * fraction\n };\n};\n\nvar PropertyValue = function PropertyValue(property, value) {\n this.property = property;\n this.value = value;\n this.expression = normalizePropertyExpression(value === undefined ? property.specification.default : value, property.specification);\n};\nPropertyValue.prototype.isDataDriven = function isDataDriven() {\n return this.expression.kind === 'source' || this.expression.kind === 'composite';\n};\nPropertyValue.prototype.possiblyEvaluate = function possiblyEvaluate(parameters, canonical, availableImages) {\n return this.property.possiblyEvaluate(this, parameters, canonical, availableImages);\n};\nvar TransitionablePropertyValue = function TransitionablePropertyValue(property) {\n this.property = property;\n this.value = new PropertyValue(property, undefined);\n};\nTransitionablePropertyValue.prototype.transitioned = function transitioned(parameters, prior) {\n return new TransitioningPropertyValue(this.property, this.value, prior, extend({}, parameters.transition, this.transition), parameters.now);\n};\nTransitionablePropertyValue.prototype.untransitioned = function untransitioned() {\n return new TransitioningPropertyValue(this.property, this.value, null, {}, 0);\n};\nvar Transitionable = function Transitionable(properties) {\n this._properties = properties;\n this._values = Object.create(properties.defaultTransitionablePropertyValues);\n};\nTransitionable.prototype.getValue = function getValue(name) {\n return clone(this._values[name].value.value);\n};\nTransitionable.prototype.setValue = function setValue(name, value) {\n if (!this._values.hasOwnProperty(name)) {\n this._values[name] = new TransitionablePropertyValue(this._values[name].property);\n }\n this._values[name].value = new PropertyValue(this._values[name].property, value === null ? undefined : clone(value));\n};\nTransitionable.prototype.getTransition = function getTransition(name) {\n return clone(this._values[name].transition);\n};\nTransitionable.prototype.setTransition = function setTransition(name, value) {\n if (!this._values.hasOwnProperty(name)) {\n this._values[name] = new TransitionablePropertyValue(this._values[name].property);\n }\n this._values[name].transition = clone(value) || undefined;\n};\nTransitionable.prototype.serialize = function serialize() {\n var result = {};\n for (var i = 0, list = Object.keys(this._values); i < list.length; i += 1) {\n var property = list[i];\n var value = this.getValue(property);\n if (value !== undefined) {\n result[property] = value;\n }\n var transition = this.getTransition(property);\n if (transition !== undefined) {\n result[property + '-transition'] = transition;\n }\n }\n return result;\n};\nTransitionable.prototype.transitioned = function transitioned(parameters, prior) {\n var result = new Transitioning(this._properties);\n for (var i = 0, list = Object.keys(this._values); i < list.length; i += 1) {\n var property = list[i];\n result._values[property] = this._values[property].transitioned(parameters, prior._values[property]);\n }\n return result;\n};\nTransitionable.prototype.untransitioned = function untransitioned() {\n var result = new Transitioning(this._properties);\n for (var i = 0, list = Object.keys(this._values); i < list.length; i += 1) {\n var property = list[i];\n result._values[property] = this._values[property].untransitioned();\n }\n return result;\n};\nvar TransitioningPropertyValue = function TransitioningPropertyValue(property, value, prior, transition, now) {\n this.property = property;\n this.value = value;\n this.begin = now + transition.delay || 0;\n this.end = this.begin + transition.duration || 0;\n if (property.specification.transition && (transition.delay || transition.duration)) {\n this.prior = prior;\n }\n};\nTransitioningPropertyValue.prototype.possiblyEvaluate = function possiblyEvaluate(parameters, canonical, availableImages) {\n var now = parameters.now || 0;\n var finalValue = this.value.possiblyEvaluate(parameters, canonical, availableImages);\n var prior = this.prior;\n if (!prior) {\n return finalValue;\n } else if (now > this.end) {\n this.prior = null;\n return finalValue;\n } else if (this.value.isDataDriven()) {\n this.prior = null;\n return finalValue;\n } else if (now < this.begin) {\n return prior.possiblyEvaluate(parameters, canonical, availableImages);\n } else {\n var t = (now - this.begin) / (this.end - this.begin);\n return this.property.interpolate(prior.possiblyEvaluate(parameters, canonical, availableImages), finalValue, easeCubicInOut(t));\n }\n};\nvar Transitioning = function Transitioning(properties) {\n this._properties = properties;\n this._values = Object.create(properties.defaultTransitioningPropertyValues);\n};\nTransitioning.prototype.possiblyEvaluate = function possiblyEvaluate(parameters, canonical, availableImages) {\n var result = new PossiblyEvaluated(this._properties);\n for (var i = 0, list = Object.keys(this._values); i < list.length; i += 1) {\n var property = list[i];\n result._values[property] = this._values[property].possiblyEvaluate(parameters, canonical, availableImages);\n }\n return result;\n};\nTransitioning.prototype.hasTransition = function hasTransition() {\n for (var i = 0, list = Object.keys(this._values); i < list.length; i += 1) {\n var property = list[i];\n if (this._values[property].prior) {\n return true;\n }\n }\n return false;\n};\nvar Layout = function Layout(properties) {\n this._properties = properties;\n this._values = Object.create(properties.defaultPropertyValues);\n};\nLayout.prototype.getValue = function getValue(name) {\n return clone(this._values[name].value);\n};\nLayout.prototype.setValue = function setValue(name, value) {\n this._values[name] = new PropertyValue(this._values[name].property, value === null ? undefined : clone(value));\n};\nLayout.prototype.serialize = function serialize() {\n var result = {};\n for (var i = 0, list = Object.keys(this._values); i < list.length; i += 1) {\n var property = list[i];\n var value = this.getValue(property);\n if (value !== undefined) {\n result[property] = value;\n }\n }\n return result;\n};\nLayout.prototype.possiblyEvaluate = function possiblyEvaluate(parameters, canonical, availableImages) {\n var result = new PossiblyEvaluated(this._properties);\n for (var i = 0, list = Object.keys(this._values); i < list.length; i += 1) {\n var property = list[i];\n result._values[property] = this._values[property].possiblyEvaluate(parameters, canonical, availableImages);\n }\n return result;\n};\nvar PossiblyEvaluatedPropertyValue = function PossiblyEvaluatedPropertyValue(property, value, parameters) {\n this.property = property;\n this.value = value;\n this.parameters = parameters;\n};\nPossiblyEvaluatedPropertyValue.prototype.isConstant = function isConstant() {\n return this.value.kind === 'constant';\n};\nPossiblyEvaluatedPropertyValue.prototype.constantOr = function constantOr(value) {\n if (this.value.kind === 'constant') {\n return this.value.value;\n } else {\n return value;\n }\n};\nPossiblyEvaluatedPropertyValue.prototype.evaluate = function evaluate(feature, featureState, canonical, availableImages) {\n return this.property.evaluate(this.value, this.parameters, feature, featureState, canonical, availableImages);\n};\nvar PossiblyEvaluated = function PossiblyEvaluated(properties) {\n this._properties = properties;\n this._values = Object.create(properties.defaultPossiblyEvaluatedValues);\n};\nPossiblyEvaluated.prototype.get = function get(name) {\n return this._values[name];\n};\nvar DataConstantProperty = function DataConstantProperty(specification) {\n this.specification = specification;\n};\nDataConstantProperty.prototype.possiblyEvaluate = function possiblyEvaluate(value, parameters) {\n return value.expression.evaluate(parameters);\n};\nDataConstantProperty.prototype.interpolate = function interpolate$1(a, b, t) {\n var interp = interpolate[this.specification.type];\n if (interp) {\n return interp(a, b, t);\n } else {\n return a;\n }\n};\nvar DataDrivenProperty = function DataDrivenProperty(specification, overrides) {\n this.specification = specification;\n this.overrides = overrides;\n};\nDataDrivenProperty.prototype.possiblyEvaluate = function possiblyEvaluate(value, parameters, canonical, availableImages) {\n if (value.expression.kind === 'constant' || value.expression.kind === 'camera') {\n return new PossiblyEvaluatedPropertyValue(this, {\n kind: 'constant',\n value: value.expression.evaluate(parameters, null, {}, canonical, availableImages)\n }, parameters);\n } else {\n return new PossiblyEvaluatedPropertyValue(this, value.expression, parameters);\n }\n};\nDataDrivenProperty.prototype.interpolate = function interpolate$2(a, b, t) {\n if (a.value.kind !== 'constant' || b.value.kind !== 'constant') {\n return a;\n }\n if (a.value.value === undefined || b.value.value === undefined) {\n return new PossiblyEvaluatedPropertyValue(this, {\n kind: 'constant',\n value: undefined\n }, a.parameters);\n }\n var interp = interpolate[this.specification.type];\n if (interp) {\n return new PossiblyEvaluatedPropertyValue(this, {\n kind: 'constant',\n value: interp(a.value.value, b.value.value, t)\n }, a.parameters);\n } else {\n return a;\n }\n};\nDataDrivenProperty.prototype.evaluate = function evaluate(value, parameters, feature, featureState, canonical, availableImages) {\n if (value.kind === 'constant') {\n return value.value;\n } else {\n return value.evaluate(parameters, feature, featureState, canonical, availableImages);\n }\n};\nvar CrossFadedDataDrivenProperty = function (DataDrivenProperty) {\n function CrossFadedDataDrivenProperty() {\n DataDrivenProperty.apply(this, arguments);\n }\n if (DataDrivenProperty)\n CrossFadedDataDrivenProperty.__proto__ = DataDrivenProperty;\n CrossFadedDataDrivenProperty.prototype = Object.create(DataDrivenProperty && DataDrivenProperty.prototype);\n CrossFadedDataDrivenProperty.prototype.constructor = CrossFadedDataDrivenProperty;\n CrossFadedDataDrivenProperty.prototype.possiblyEvaluate = function possiblyEvaluate(value, parameters, canonical, availableImages) {\n if (value.value === undefined) {\n return new PossiblyEvaluatedPropertyValue(this, {\n kind: 'constant',\n value: undefined\n }, parameters);\n } else if (value.expression.kind === 'constant') {\n var evaluatedValue = value.expression.evaluate(parameters, null, {}, canonical, availableImages);\n var isImageExpression = value.property.specification.type === 'resolvedImage';\n var constantValue = isImageExpression && typeof evaluatedValue !== 'string' ? evaluatedValue.name : evaluatedValue;\n var constant = this._calculate(constantValue, constantValue, constantValue, parameters);\n return new PossiblyEvaluatedPropertyValue(this, {\n kind: 'constant',\n value: constant\n }, parameters);\n } else if (value.expression.kind === 'camera') {\n var cameraVal = this._calculate(value.expression.evaluate({ zoom: parameters.zoom - 1 }), value.expression.evaluate({ zoom: parameters.zoom }), value.expression.evaluate({ zoom: parameters.zoom + 1 }), parameters);\n return new PossiblyEvaluatedPropertyValue(this, {\n kind: 'constant',\n value: cameraVal\n }, parameters);\n } else {\n return new PossiblyEvaluatedPropertyValue(this, value.expression, parameters);\n }\n };\n CrossFadedDataDrivenProperty.prototype.evaluate = function evaluate(value, globals, feature, featureState, canonical, availableImages) {\n if (value.kind === 'source') {\n var constant = value.evaluate(globals, feature, featureState, canonical, availableImages);\n return this._calculate(constant, constant, constant, globals);\n } else if (value.kind === 'composite') {\n return this._calculate(value.evaluate({ zoom: Math.floor(globals.zoom) - 1 }, feature, featureState), value.evaluate({ zoom: Math.floor(globals.zoom) }, feature, featureState), value.evaluate({ zoom: Math.floor(globals.zoom) + 1 }, feature, featureState), globals);\n } else {\n return value.value;\n }\n };\n CrossFadedDataDrivenProperty.prototype._calculate = function _calculate(min, mid, max, parameters) {\n var z = parameters.zoom;\n return z > parameters.zoomHistory.lastIntegerZoom ? {\n from: min,\n to: mid\n } : {\n from: max,\n to: mid\n };\n };\n CrossFadedDataDrivenProperty.prototype.interpolate = function interpolate(a) {\n return a;\n };\n return CrossFadedDataDrivenProperty;\n}(DataDrivenProperty);\nvar CrossFadedProperty = function CrossFadedProperty(specification) {\n this.specification = specification;\n};\nCrossFadedProperty.prototype.possiblyEvaluate = function possiblyEvaluate(value, parameters, canonical, availableImages) {\n if (value.value === undefined) {\n return undefined;\n } else if (value.expression.kind === 'constant') {\n var constant = value.expression.evaluate(parameters, null, {}, canonical, availableImages);\n return this._calculate(constant, constant, constant, parameters);\n } else {\n return this._calculate(value.expression.evaluate(new EvaluationParameters(Math.floor(parameters.zoom - 1), parameters)), value.expression.evaluate(new EvaluationParameters(Math.floor(parameters.zoom), parameters)), value.expression.evaluate(new EvaluationParameters(Math.floor(parameters.zoom + 1), parameters)), parameters);\n }\n};\nCrossFadedProperty.prototype._calculate = function _calculate(min, mid, max, parameters) {\n var z = parameters.zoom;\n return z > parameters.zoomHistory.lastIntegerZoom ? {\n from: min,\n to: mid\n } : {\n from: max,\n to: mid\n };\n};\nCrossFadedProperty.prototype.interpolate = function interpolate(a) {\n return a;\n};\nvar ColorRampProperty = function ColorRampProperty(specification) {\n this.specification = specification;\n};\nColorRampProperty.prototype.possiblyEvaluate = function possiblyEvaluate(value, parameters, canonical, availableImages) {\n return !!value.expression.evaluate(parameters, null, {}, canonical, availableImages);\n};\nColorRampProperty.prototype.interpolate = function interpolate() {\n return false;\n};\nvar Properties = function Properties(properties) {\n this.properties = properties;\n this.defaultPropertyValues = {};\n this.defaultTransitionablePropertyValues = {};\n this.defaultTransitioningPropertyValues = {};\n this.defaultPossiblyEvaluatedValues = {};\n this.overridableProperties = [];\n for (var property in properties) {\n var prop = properties[property];\n if (prop.specification.overridable) {\n this.overridableProperties.push(property);\n }\n var defaultPropertyValue = this.defaultPropertyValues[property] = new PropertyValue(prop, undefined);\n var defaultTransitionablePropertyValue = this.defaultTransitionablePropertyValues[property] = new TransitionablePropertyValue(prop);\n this.defaultTransitioningPropertyValues[property] = defaultTransitionablePropertyValue.untransitioned();\n this.defaultPossiblyEvaluatedValues[property] = defaultPropertyValue.possiblyEvaluate({});\n }\n};\nregister('DataDrivenProperty', DataDrivenProperty);\nregister('DataConstantProperty', DataConstantProperty);\nregister('CrossFadedDataDrivenProperty', CrossFadedDataDrivenProperty);\nregister('CrossFadedProperty', CrossFadedProperty);\nregister('ColorRampProperty', ColorRampProperty);\n\nvar TRANSITION_SUFFIX = '-transition';\nvar StyleLayer = function (Evented) {\n function StyleLayer(layer, properties) {\n Evented.call(this);\n this.id = layer.id;\n this.type = layer.type;\n this._featureFilter = {\n filter: function () {\n return true;\n },\n needGeometry: false\n };\n if (layer.type === 'custom') {\n return;\n }\n layer = layer;\n this.metadata = layer.metadata;\n this.minzoom = layer.minzoom;\n this.maxzoom = layer.maxzoom;\n if (layer.type !== 'background') {\n this.source = layer.source;\n this.sourceLayer = layer['source-layer'];\n this.filter = layer.filter;\n }\n if (properties.layout) {\n this._unevaluatedLayout = new Layout(properties.layout);\n }\n if (properties.paint) {\n this._transitionablePaint = new Transitionable(properties.paint);\n for (var property in layer.paint) {\n this.setPaintProperty(property, layer.paint[property], { validate: false });\n }\n for (var property$1 in layer.layout) {\n this.setLayoutProperty(property$1, layer.layout[property$1], { validate: false });\n }\n this._transitioningPaint = this._transitionablePaint.untransitioned();\n this.paint = new PossiblyEvaluated(properties.paint);\n }\n }\n if (Evented)\n StyleLayer.__proto__ = Evented;\n StyleLayer.prototype = Object.create(Evented && Evented.prototype);\n StyleLayer.prototype.constructor = StyleLayer;\n StyleLayer.prototype.getCrossfadeParameters = function getCrossfadeParameters() {\n return this._crossfadeParameters;\n };\n StyleLayer.prototype.getLayoutProperty = function getLayoutProperty(name) {\n if (name === 'visibility') {\n return this.visibility;\n }\n return this._unevaluatedLayout.getValue(name);\n };\n StyleLayer.prototype.setLayoutProperty = function setLayoutProperty(name, value, options) {\n if (options === void 0)\n options = {};\n if (value !== null && value !== undefined) {\n var key = 'layers.' + this.id + '.layout.' + name;\n if (this._validate(validateLayoutProperty$1, key, name, value, options)) {\n return;\n }\n }\n if (name === 'visibility') {\n this.visibility = value;\n return;\n }\n this._unevaluatedLayout.setValue(name, value);\n };\n StyleLayer.prototype.getPaintProperty = function getPaintProperty(name) {\n if (endsWith(name, TRANSITION_SUFFIX)) {\n return this._transitionablePaint.getTransition(name.slice(0, -TRANSITION_SUFFIX.length));\n } else {\n return this._transitionablePaint.getValue(name);\n }\n };\n StyleLayer.prototype.setPaintProperty = function setPaintProperty(name, value, options) {\n if (options === void 0)\n options = {};\n if (value !== null && value !== undefined) {\n var key = 'layers.' + this.id + '.paint.' + name;\n if (this._validate(validatePaintProperty$1, key, name, value, options)) {\n return false;\n }\n }\n if (endsWith(name, TRANSITION_SUFFIX)) {\n this._transitionablePaint.setTransition(name.slice(0, -TRANSITION_SUFFIX.length), value || undefined);\n return false;\n } else {\n var transitionable = this._transitionablePaint._values[name];\n var isCrossFadedProperty = transitionable.property.specification['property-type'] === 'cross-faded-data-driven';\n var wasDataDriven = transitionable.value.isDataDriven();\n var oldValue = transitionable.value;\n this._transitionablePaint.setValue(name, value);\n this._handleSpecialPaintPropertyUpdate(name);\n var newValue = this._transitionablePaint._values[name].value;\n var isDataDriven = newValue.isDataDriven();\n return isDataDriven || wasDataDriven || isCrossFadedProperty || this._handleOverridablePaintPropertyUpdate(name, oldValue, newValue);\n }\n };\n StyleLayer.prototype._handleSpecialPaintPropertyUpdate = function _handleSpecialPaintPropertyUpdate(_) {\n };\n StyleLayer.prototype._handleOverridablePaintPropertyUpdate = function _handleOverridablePaintPropertyUpdate(name, oldValue, newValue) {\n return false;\n };\n StyleLayer.prototype.isHidden = function isHidden(zoom) {\n if (this.minzoom && zoom < this.minzoom) {\n return true;\n }\n if (this.maxzoom && zoom >= this.maxzoom) {\n return true;\n }\n return this.visibility === 'none';\n };\n StyleLayer.prototype.updateTransitions = function updateTransitions(parameters) {\n this._transitioningPaint = this._transitionablePaint.transitioned(parameters, this._transitioningPaint);\n };\n StyleLayer.prototype.hasTransition = function hasTransition() {\n return this._transitioningPaint.hasTransition();\n };\n StyleLayer.prototype.recalculate = function recalculate(parameters, availableImages) {\n if (parameters.getCrossfadeParameters) {\n this._crossfadeParameters = parameters.getCrossfadeParameters();\n }\n if (this._unevaluatedLayout) {\n this.layout = this._unevaluatedLayout.possiblyEvaluate(parameters, undefined, availableImages);\n }\n this.paint = this._transitioningPaint.possiblyEvaluate(parameters, undefined, availableImages);\n };\n StyleLayer.prototype.serialize = function serialize() {\n var output = {\n 'id': this.id,\n 'type': this.type,\n 'source': this.source,\n 'source-layer': this.sourceLayer,\n 'metadata': this.metadata,\n 'minzoom': this.minzoom,\n 'maxzoom': this.maxzoom,\n 'filter': this.filter,\n 'layout': this._unevaluatedLayout && this._unevaluatedLayout.serialize(),\n 'paint': this._transitionablePaint && this._transitionablePaint.serialize()\n };\n if (this.visibility) {\n output.layout = output.layout || {};\n output.layout.visibility = this.visibility;\n }\n return filterObject(output, function (value, key) {\n return value !== undefined && !(key === 'layout' && !Object.keys(value).length) && !(key === 'paint' && !Object.keys(value).length);\n });\n };\n StyleLayer.prototype._validate = function _validate(validate, key, name, value, options) {\n if (options === void 0)\n options = {};\n if (options && options.validate === false) {\n return false;\n }\n return emitValidationErrors(this, validate.call(validateStyle, {\n key: key,\n layerType: this.type,\n objectKey: name,\n value: value,\n styleSpec: spec,\n style: {\n glyphs: true,\n sprite: true\n }\n }));\n };\n StyleLayer.prototype.is3D = function is3D() {\n return false;\n };\n StyleLayer.prototype.isTileClipped = function isTileClipped() {\n return false;\n };\n StyleLayer.prototype.hasOffscreenPass = function hasOffscreenPass() {\n return false;\n };\n StyleLayer.prototype.resize = function resize() {\n };\n StyleLayer.prototype.isStateDependent = function isStateDependent() {\n for (var property in this.paint._values) {\n var value = this.paint.get(property);\n if (!(value instanceof PossiblyEvaluatedPropertyValue) || !supportsPropertyExpression(value.property.specification)) {\n continue;\n }\n if ((value.value.kind === 'source' || value.value.kind === 'composite') && value.value.isStateDependent) {\n return true;\n }\n }\n return false;\n };\n return StyleLayer;\n}(Evented);\n\nvar viewTypes = {\n 'Int8': Int8Array,\n 'Uint8': Uint8Array,\n 'Int16': Int16Array,\n 'Uint16': Uint16Array,\n 'Int32': Int32Array,\n 'Uint32': Uint32Array,\n 'Float32': Float32Array\n};\nvar Struct = function Struct(structArray, index) {\n this._structArray = structArray;\n this._pos1 = index * this.size;\n this._pos2 = this._pos1 / 2;\n this._pos4 = this._pos1 / 4;\n this._pos8 = this._pos1 / 8;\n};\nvar DEFAULT_CAPACITY = 128;\nvar RESIZE_MULTIPLIER = 5;\nvar StructArray = function StructArray() {\n this.isTransferred = false;\n this.capacity = -1;\n this.resize(0);\n};\nStructArray.serialize = function serialize(array, transferables) {\n array._trim();\n if (transferables) {\n array.isTransferred = true;\n transferables.push(array.arrayBuffer);\n }\n return {\n length: array.length,\n arrayBuffer: array.arrayBuffer\n };\n};\nStructArray.deserialize = function deserialize(input) {\n var structArray = Object.create(this.prototype);\n structArray.arrayBuffer = input.arrayBuffer;\n structArray.length = input.length;\n structArray.capacity = input.arrayBuffer.byteLength / structArray.bytesPerElement;\n structArray._refreshViews();\n return structArray;\n};\nStructArray.prototype._trim = function _trim() {\n if (this.length !== this.capacity) {\n this.capacity = this.length;\n this.arrayBuffer = this.arrayBuffer.slice(0, this.length * this.bytesPerElement);\n this._refreshViews();\n }\n};\nStructArray.prototype.clear = function clear() {\n this.length = 0;\n};\nStructArray.prototype.resize = function resize(n) {\n this.reserve(n);\n this.length = n;\n};\nStructArray.prototype.reserve = function reserve(n) {\n if (n > this.capacity) {\n this.capacity = Math.max(n, Math.floor(this.capacity * RESIZE_MULTIPLIER), DEFAULT_CAPACITY);\n this.arrayBuffer = new ArrayBuffer(this.capacity * this.bytesPerElement);\n var oldUint8Array = this.uint8;\n this._refreshViews();\n if (oldUint8Array) {\n this.uint8.set(oldUint8Array);\n }\n }\n};\nStructArray.prototype._refreshViews = function _refreshViews() {\n throw new Error('_refreshViews() must be implemented by each concrete StructArray layout');\n};\nfunction createLayout(members, alignment) {\n if (alignment === void 0)\n alignment = 1;\n var offset = 0;\n var maxSize = 0;\n var layoutMembers = members.map(function (member) {\n var typeSize = sizeOf(member.type);\n var memberOffset = offset = align(offset, Math.max(alignment, typeSize));\n var components = member.components || 1;\n maxSize = Math.max(maxSize, typeSize);\n offset += typeSize * components;\n return {\n name: member.name,\n type: member.type,\n components: components,\n offset: memberOffset\n };\n });\n var size = align(offset, Math.max(maxSize, alignment));\n return {\n members: layoutMembers,\n size: size,\n alignment: alignment\n };\n}\nfunction sizeOf(type) {\n return viewTypes[type].BYTES_PER_ELEMENT;\n}\nfunction align(offset, size) {\n return Math.ceil(offset / size) * size;\n}\n\nvar StructArrayLayout2i4 = function (StructArray) {\n function StructArrayLayout2i4() {\n StructArray.apply(this, arguments);\n }\n if (StructArray)\n StructArrayLayout2i4.__proto__ = StructArray;\n StructArrayLayout2i4.prototype = Object.create(StructArray && StructArray.prototype);\n StructArrayLayout2i4.prototype.constructor = StructArrayLayout2i4;\n StructArrayLayout2i4.prototype._refreshViews = function _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer);\n this.int16 = new Int16Array(this.arrayBuffer);\n };\n StructArrayLayout2i4.prototype.emplaceBack = function emplaceBack(v0, v1) {\n var i = this.length;\n this.resize(i + 1);\n return this.emplace(i, v0, v1);\n };\n StructArrayLayout2i4.prototype.emplace = function emplace(i, v0, v1) {\n var o2 = i * 2;\n this.int16[o2 + 0] = v0;\n this.int16[o2 + 1] = v1;\n return i;\n };\n return StructArrayLayout2i4;\n}(StructArray);\nStructArrayLayout2i4.prototype.bytesPerElement = 4;\nregister('StructArrayLayout2i4', StructArrayLayout2i4);\nvar StructArrayLayout4i8 = function (StructArray) {\n function StructArrayLayout4i8() {\n StructArray.apply(this, arguments);\n }\n if (StructArray)\n StructArrayLayout4i8.__proto__ = StructArray;\n StructArrayLayout4i8.prototype = Object.create(StructArray && StructArray.prototype);\n StructArrayLayout4i8.prototype.constructor = StructArrayLayout4i8;\n StructArrayLayout4i8.prototype._refreshViews = function _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer);\n this.int16 = new Int16Array(this.arrayBuffer);\n };\n StructArrayLayout4i8.prototype.emplaceBack = function emplaceBack(v0, v1, v2, v3) {\n var i = this.length;\n this.resize(i + 1);\n return this.emplace(i, v0, v1, v2, v3);\n };\n StructArrayLayout4i8.prototype.emplace = function emplace(i, v0, v1, v2, v3) {\n var o2 = i * 4;\n this.int16[o2 + 0] = v0;\n this.int16[o2 + 1] = v1;\n this.int16[o2 + 2] = v2;\n this.int16[o2 + 3] = v3;\n return i;\n };\n return StructArrayLayout4i8;\n}(StructArray);\nStructArrayLayout4i8.prototype.bytesPerElement = 8;\nregister('StructArrayLayout4i8', StructArrayLayout4i8);\nvar StructArrayLayout2i4i12 = function (StructArray) {\n function StructArrayLayout2i4i12() {\n StructArray.apply(this, arguments);\n }\n if (StructArray)\n StructArrayLayout2i4i12.__proto__ = StructArray;\n StructArrayLayout2i4i12.prototype = Object.create(StructArray && StructArray.prototype);\n StructArrayLayout2i4i12.prototype.constructor = StructArrayLayout2i4i12;\n StructArrayLayout2i4i12.prototype._refreshViews = function _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer);\n this.int16 = new Int16Array(this.arrayBuffer);\n };\n StructArrayLayout2i4i12.prototype.emplaceBack = function emplaceBack(v0, v1, v2, v3, v4, v5) {\n var i = this.length;\n this.resize(i + 1);\n return this.emplace(i, v0, v1, v2, v3, v4, v5);\n };\n StructArrayLayout2i4i12.prototype.emplace = function emplace(i, v0, v1, v2, v3, v4, v5) {\n var o2 = i * 6;\n this.int16[o2 + 0] = v0;\n this.int16[o2 + 1] = v1;\n this.int16[o2 + 2] = v2;\n this.int16[o2 + 3] = v3;\n this.int16[o2 + 4] = v4;\n this.int16[o2 + 5] = v5;\n return i;\n };\n return StructArrayLayout2i4i12;\n}(StructArray);\nStructArrayLayout2i4i12.prototype.bytesPerElement = 12;\nregister('StructArrayLayout2i4i12', StructArrayLayout2i4i12);\nvar StructArrayLayout2i4ub8 = function (StructArray) {\n function StructArrayLayout2i4ub8() {\n StructArray.apply(this, arguments);\n }\n if (StructArray)\n StructArrayLayout2i4ub8.__proto__ = StructArray;\n StructArrayLayout2i4ub8.prototype = Object.create(StructArray && StructArray.prototype);\n StructArrayLayout2i4ub8.prototype.constructor = StructArrayLayout2i4ub8;\n StructArrayLayout2i4ub8.prototype._refreshViews = function _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer);\n this.int16 = new Int16Array(this.arrayBuffer);\n };\n StructArrayLayout2i4ub8.prototype.emplaceBack = function emplaceBack(v0, v1, v2, v3, v4, v5) {\n var i = this.length;\n this.resize(i + 1);\n return this.emplace(i, v0, v1, v2, v3, v4, v5);\n };\n StructArrayLayout2i4ub8.prototype.emplace = function emplace(i, v0, v1, v2, v3, v4, v5) {\n var o2 = i * 4;\n var o1 = i * 8;\n this.int16[o2 + 0] = v0;\n this.int16[o2 + 1] = v1;\n this.uint8[o1 + 4] = v2;\n this.uint8[o1 + 5] = v3;\n this.uint8[o1 + 6] = v4;\n this.uint8[o1 + 7] = v5;\n return i;\n };\n return StructArrayLayout2i4ub8;\n}(StructArray);\nStructArrayLayout2i4ub8.prototype.bytesPerElement = 8;\nregister('StructArrayLayout2i4ub8', StructArrayLayout2i4ub8);\nvar StructArrayLayout8ui2ub18 = function (StructArray) {\n function StructArrayLayout8ui2ub18() {\n StructArray.apply(this, arguments);\n }\n if (StructArray)\n StructArrayLayout8ui2ub18.__proto__ = StructArray;\n StructArrayLayout8ui2ub18.prototype = Object.create(StructArray && StructArray.prototype);\n StructArrayLayout8ui2ub18.prototype.constructor = StructArrayLayout8ui2ub18;\n StructArrayLayout8ui2ub18.prototype._refreshViews = function _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer);\n this.uint16 = new Uint16Array(this.arrayBuffer);\n };\n StructArrayLayout8ui2ub18.prototype.emplaceBack = function emplaceBack(v0, v1, v2, v3, v4, v5, v6, v7, v8, v9) {\n var i = this.length;\n this.resize(i + 1);\n return this.emplace(i, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9);\n };\n StructArrayLayout8ui2ub18.prototype.emplace = function emplace(i, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9) {\n var o2 = i * 9;\n var o1 = i * 18;\n this.uint16[o2 + 0] = v0;\n this.uint16[o2 + 1] = v1;\n this.uint16[o2 + 2] = v2;\n this.uint16[o2 + 3] = v3;\n this.uint16[o2 + 4] = v4;\n this.uint16[o2 + 5] = v5;\n this.uint16[o2 + 6] = v6;\n this.uint16[o2 + 7] = v7;\n this.uint8[o1 + 16] = v8;\n this.uint8[o1 + 17] = v9;\n return i;\n };\n return StructArrayLayout8ui2ub18;\n}(StructArray);\nStructArrayLayout8ui2ub18.prototype.bytesPerElement = 18;\nregister('StructArrayLayout8ui2ub18', StructArrayLayout8ui2ub18);\nvar StructArrayLayout4i4ui4i24 = function (StructArray) {\n function StructArrayLayout4i4ui4i24() {\n StructArray.apply(this, arguments);\n }\n if (StructArray)\n StructArrayLayout4i4ui4i24.__proto__ = StructArray;\n StructArrayLayout4i4ui4i24.prototype = Object.create(StructArray && StructArray.prototype);\n StructArrayLayout4i4ui4i24.prototype.constructor = StructArrayLayout4i4ui4i24;\n StructArrayLayout4i4ui4i24.prototype._refreshViews = function _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer);\n this.int16 = new Int16Array(this.arrayBuffer);\n this.uint16 = new Uint16Array(this.arrayBuffer);\n };\n StructArrayLayout4i4ui4i24.prototype.emplaceBack = function emplaceBack(v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) {\n var i = this.length;\n this.resize(i + 1);\n return this.emplace(i, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11);\n };\n StructArrayLayout4i4ui4i24.prototype.emplace = function emplace(i, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) {\n var o2 = i * 12;\n this.int16[o2 + 0] = v0;\n this.int16[o2 + 1] = v1;\n this.int16[o2 + 2] = v2;\n this.int16[o2 + 3] = v3;\n this.uint16[o2 + 4] = v4;\n this.uint16[o2 + 5] = v5;\n this.uint16[o2 + 6] = v6;\n this.uint16[o2 + 7] = v7;\n this.int16[o2 + 8] = v8;\n this.int16[o2 + 9] = v9;\n this.int16[o2 + 10] = v10;\n this.int16[o2 + 11] = v11;\n return i;\n };\n return StructArrayLayout4i4ui4i24;\n}(StructArray);\nStructArrayLayout4i4ui4i24.prototype.bytesPerElement = 24;\nregister('StructArrayLayout4i4ui4i24', StructArrayLayout4i4ui4i24);\nvar StructArrayLayout3f12 = function (StructArray) {\n function StructArrayLayout3f12() {\n StructArray.apply(this, arguments);\n }\n if (StructArray)\n StructArrayLayout3f12.__proto__ = StructArray;\n StructArrayLayout3f12.prototype = Object.create(StructArray && StructArray.prototype);\n StructArrayLayout3f12.prototype.constructor = StructArrayLayout3f12;\n StructArrayLayout3f12.prototype._refreshViews = function _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer);\n this.float32 = new Float32Array(this.arrayBuffer);\n };\n StructArrayLayout3f12.prototype.emplaceBack = function emplaceBack(v0, v1, v2) {\n var i = this.length;\n this.resize(i + 1);\n return this.emplace(i, v0, v1, v2);\n };\n StructArrayLayout3f12.prototype.emplace = function emplace(i, v0, v1, v2) {\n var o4 = i * 3;\n this.float32[o4 + 0] = v0;\n this.float32[o4 + 1] = v1;\n this.float32[o4 + 2] = v2;\n return i;\n };\n return StructArrayLayout3f12;\n}(StructArray);\nStructArrayLayout3f12.prototype.bytesPerElement = 12;\nregister('StructArrayLayout3f12', StructArrayLayout3f12);\nvar StructArrayLayout1ul4 = function (StructArray) {\n function StructArrayLayout1ul4() {\n StructArray.apply(this, arguments);\n }\n if (StructArray)\n StructArrayLayout1ul4.__proto__ = StructArray;\n StructArrayLayout1ul4.prototype = Object.create(StructArray && StructArray.prototype);\n StructArrayLayout1ul4.prototype.constructor = StructArrayLayout1ul4;\n StructArrayLayout1ul4.prototype._refreshViews = function _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer);\n this.uint32 = new Uint32Array(this.arrayBuffer);\n };\n StructArrayLayout1ul4.prototype.emplaceBack = function emplaceBack(v0) {\n var i = this.length;\n this.resize(i + 1);\n return this.emplace(i, v0);\n };\n StructArrayLayout1ul4.prototype.emplace = function emplace(i, v0) {\n var o4 = i * 1;\n this.uint32[o4 + 0] = v0;\n return i;\n };\n return StructArrayLayout1ul4;\n}(StructArray);\nStructArrayLayout1ul4.prototype.bytesPerElement = 4;\nregister('StructArrayLayout1ul4', StructArrayLayout1ul4);\nvar StructArrayLayout6i1ul2ui20 = function (StructArray) {\n function StructArrayLayout6i1ul2ui20() {\n StructArray.apply(this, arguments);\n }\n if (StructArray)\n StructArrayLayout6i1ul2ui20.__proto__ = StructArray;\n StructArrayLayout6i1ul2ui20.prototype = Object.create(StructArray && StructArray.prototype);\n StructArrayLayout6i1ul2ui20.prototype.constructor = StructArrayLayout6i1ul2ui20;\n StructArrayLayout6i1ul2ui20.prototype._refreshViews = function _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer);\n this.int16 = new Int16Array(this.arrayBuffer);\n this.uint32 = new Uint32Array(this.arrayBuffer);\n this.uint16 = new Uint16Array(this.arrayBuffer);\n };\n StructArrayLayout6i1ul2ui20.prototype.emplaceBack = function emplaceBack(v0, v1, v2, v3, v4, v5, v6, v7, v8) {\n var i = this.length;\n this.resize(i + 1);\n return this.emplace(i, v0, v1, v2, v3, v4, v5, v6, v7, v8);\n };\n StructArrayLayout6i1ul2ui20.prototype.emplace = function emplace(i, v0, v1, v2, v3, v4, v5, v6, v7, v8) {\n var o2 = i * 10;\n var o4 = i * 5;\n this.int16[o2 + 0] = v0;\n this.int16[o2 + 1] = v1;\n this.int16[o2 + 2] = v2;\n this.int16[o2 + 3] = v3;\n this.int16[o2 + 4] = v4;\n this.int16[o2 + 5] = v5;\n this.uint32[o4 + 3] = v6;\n this.uint16[o2 + 8] = v7;\n this.uint16[o2 + 9] = v8;\n return i;\n };\n return StructArrayLayout6i1ul2ui20;\n}(StructArray);\nStructArrayLayout6i1ul2ui20.prototype.bytesPerElement = 20;\nregister('StructArrayLayout6i1ul2ui20', StructArrayLayout6i1ul2ui20);\nvar StructArrayLayout2i2i2i12 = function (StructArray) {\n function StructArrayLayout2i2i2i12() {\n StructArray.apply(this, arguments);\n }\n if (StructArray)\n StructArrayLayout2i2i2i12.__proto__ = StructArray;\n StructArrayLayout2i2i2i12.prototype = Object.create(StructArray && StructArray.prototype);\n StructArrayLayout2i2i2i12.prototype.constructor = StructArrayLayout2i2i2i12;\n StructArrayLayout2i2i2i12.prototype._refreshViews = function _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer);\n this.int16 = new Int16Array(this.arrayBuffer);\n };\n StructArrayLayout2i2i2i12.prototype.emplaceBack = function emplaceBack(v0, v1, v2, v3, v4, v5) {\n var i = this.length;\n this.resize(i + 1);\n return this.emplace(i, v0, v1, v2, v3, v4, v5);\n };\n StructArrayLayout2i2i2i12.prototype.emplace = function emplace(i, v0, v1, v2, v3, v4, v5) {\n var o2 = i * 6;\n this.int16[o2 + 0] = v0;\n this.int16[o2 + 1] = v1;\n this.int16[o2 + 2] = v2;\n this.int16[o2 + 3] = v3;\n this.int16[o2 + 4] = v4;\n this.int16[o2 + 5] = v5;\n return i;\n };\n return StructArrayLayout2i2i2i12;\n}(StructArray);\nStructArrayLayout2i2i2i12.prototype.bytesPerElement = 12;\nregister('StructArrayLayout2i2i2i12', StructArrayLayout2i2i2i12);\nvar StructArrayLayout2f1f2i16 = function (StructArray) {\n function StructArrayLayout2f1f2i16() {\n StructArray.apply(this, arguments);\n }\n if (StructArray)\n StructArrayLayout2f1f2i16.__proto__ = StructArray;\n StructArrayLayout2f1f2i16.prototype = Object.create(StructArray && StructArray.prototype);\n StructArrayLayout2f1f2i16.prototype.constructor = StructArrayLayout2f1f2i16;\n StructArrayLayout2f1f2i16.prototype._refreshViews = function _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer);\n this.float32 = new Float32Array(this.arrayBuffer);\n this.int16 = new Int16Array(this.arrayBuffer);\n };\n StructArrayLayout2f1f2i16.prototype.emplaceBack = function emplaceBack(v0, v1, v2, v3, v4) {\n var i = this.length;\n this.resize(i + 1);\n return this.emplace(i, v0, v1, v2, v3, v4);\n };\n StructArrayLayout2f1f2i16.prototype.emplace = function emplace(i, v0, v1, v2, v3, v4) {\n var o4 = i * 4;\n var o2 = i * 8;\n this.float32[o4 + 0] = v0;\n this.float32[o4 + 1] = v1;\n this.float32[o4 + 2] = v2;\n this.int16[o2 + 6] = v3;\n this.int16[o2 + 7] = v4;\n return i;\n };\n return StructArrayLayout2f1f2i16;\n}(StructArray);\nStructArrayLayout2f1f2i16.prototype.bytesPerElement = 16;\nregister('StructArrayLayout2f1f2i16', StructArrayLayout2f1f2i16);\nvar StructArrayLayout2ub2f12 = function (StructArray) {\n function StructArrayLayout2ub2f12() {\n StructArray.apply(this, arguments);\n }\n if (StructArray)\n StructArrayLayout2ub2f12.__proto__ = StructArray;\n StructArrayLayout2ub2f12.prototype = Object.create(StructArray && StructArray.prototype);\n StructArrayLayout2ub2f12.prototype.constructor = StructArrayLayout2ub2f12;\n StructArrayLayout2ub2f12.prototype._refreshViews = function _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer);\n this.float32 = new Float32Array(this.arrayBuffer);\n };\n StructArrayLayout2ub2f12.prototype.emplaceBack = function emplaceBack(v0, v1, v2, v3) {\n var i = this.length;\n this.resize(i + 1);\n return this.emplace(i, v0, v1, v2, v3);\n };\n StructArrayLayout2ub2f12.prototype.emplace = function emplace(i, v0, v1, v2, v3) {\n var o1 = i * 12;\n var o4 = i * 3;\n this.uint8[o1 + 0] = v0;\n this.uint8[o1 + 1] = v1;\n this.float32[o4 + 1] = v2;\n this.float32[o4 + 2] = v3;\n return i;\n };\n return StructArrayLayout2ub2f12;\n}(StructArray);\nStructArrayLayout2ub2f12.prototype.bytesPerElement = 12;\nregister('StructArrayLayout2ub2f12', StructArrayLayout2ub2f12);\nvar StructArrayLayout3ui6 = function (StructArray) {\n function StructArrayLayout3ui6() {\n StructArray.apply(this, arguments);\n }\n if (StructArray)\n StructArrayLayout3ui6.__proto__ = StructArray;\n StructArrayLayout3ui6.prototype = Object.create(StructArray && StructArray.prototype);\n StructArrayLayout3ui6.prototype.constructor = StructArrayLayout3ui6;\n StructArrayLayout3ui6.prototype._refreshViews = function _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer);\n this.uint16 = new Uint16Array(this.arrayBuffer);\n };\n StructArrayLayout3ui6.prototype.emplaceBack = function emplaceBack(v0, v1, v2) {\n var i = this.length;\n this.resize(i + 1);\n return this.emplace(i, v0, v1, v2);\n };\n StructArrayLayout3ui6.prototype.emplace = function emplace(i, v0, v1, v2) {\n var o2 = i * 3;\n this.uint16[o2 + 0] = v0;\n this.uint16[o2 + 1] = v1;\n this.uint16[o2 + 2] = v2;\n return i;\n };\n return StructArrayLayout3ui6;\n}(StructArray);\nStructArrayLayout3ui6.prototype.bytesPerElement = 6;\nregister('StructArrayLayout3ui6', StructArrayLayout3ui6);\nvar StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48 = function (StructArray) {\n function StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48() {\n StructArray.apply(this, arguments);\n }\n if (StructArray)\n StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48.__proto__ = StructArray;\n StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48.prototype = Object.create(StructArray && StructArray.prototype);\n StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48.prototype.constructor = StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48;\n StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48.prototype._refreshViews = function _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer);\n this.int16 = new Int16Array(this.arrayBuffer);\n this.uint16 = new Uint16Array(this.arrayBuffer);\n this.uint32 = new Uint32Array(this.arrayBuffer);\n this.float32 = new Float32Array(this.arrayBuffer);\n };\n StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48.prototype.emplaceBack = function emplaceBack(v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16) {\n var i = this.length;\n this.resize(i + 1);\n return this.emplace(i, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16);\n };\n StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48.prototype.emplace = function emplace(i, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16) {\n var o2 = i * 24;\n var o4 = i * 12;\n var o1 = i * 48;\n this.int16[o2 + 0] = v0;\n this.int16[o2 + 1] = v1;\n this.uint16[o2 + 2] = v2;\n this.uint16[o2 + 3] = v3;\n this.uint32[o4 + 2] = v4;\n this.uint32[o4 + 3] = v5;\n this.uint32[o4 + 4] = v6;\n this.uint16[o2 + 10] = v7;\n this.uint16[o2 + 11] = v8;\n this.uint16[o2 + 12] = v9;\n this.float32[o4 + 7] = v10;\n this.float32[o4 + 8] = v11;\n this.uint8[o1 + 36] = v12;\n this.uint8[o1 + 37] = v13;\n this.uint8[o1 + 38] = v14;\n this.uint32[o4 + 10] = v15;\n this.int16[o2 + 22] = v16;\n return i;\n };\n return StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48;\n}(StructArray);\nStructArrayLayout2i2ui3ul3ui2f3ub1ul1i48.prototype.bytesPerElement = 48;\nregister('StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48', StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48);\nvar StructArrayLayout8i15ui1ul4f68 = function (StructArray) {\n function StructArrayLayout8i15ui1ul4f68() {\n StructArray.apply(this, arguments);\n }\n if (StructArray)\n StructArrayLayout8i15ui1ul4f68.__proto__ = StructArray;\n StructArrayLayout8i15ui1ul4f68.prototype = Object.create(StructArray && StructArray.prototype);\n StructArrayLayout8i15ui1ul4f68.prototype.constructor = StructArrayLayout8i15ui1ul4f68;\n StructArrayLayout8i15ui1ul4f68.prototype._refreshViews = function _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer);\n this.int16 = new Int16Array(this.arrayBuffer);\n this.uint16 = new Uint16Array(this.arrayBuffer);\n this.uint32 = new Uint32Array(this.arrayBuffer);\n this.float32 = new Float32Array(this.arrayBuffer);\n };\n StructArrayLayout8i15ui1ul4f68.prototype.emplaceBack = function emplaceBack(v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27) {\n var i = this.length;\n this.resize(i + 1);\n return this.emplace(i, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27);\n };\n StructArrayLayout8i15ui1ul4f68.prototype.emplace = function emplace(i, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27) {\n var o2 = i * 34;\n var o4 = i * 17;\n this.int16[o2 + 0] = v0;\n this.int16[o2 + 1] = v1;\n this.int16[o2 + 2] = v2;\n this.int16[o2 + 3] = v3;\n this.int16[o2 + 4] = v4;\n this.int16[o2 + 5] = v5;\n this.int16[o2 + 6] = v6;\n this.int16[o2 + 7] = v7;\n this.uint16[o2 + 8] = v8;\n this.uint16[o2 + 9] = v9;\n this.uint16[o2 + 10] = v10;\n this.uint16[o2 + 11] = v11;\n this.uint16[o2 + 12] = v12;\n this.uint16[o2 + 13] = v13;\n this.uint16[o2 + 14] = v14;\n this.uint16[o2 + 15] = v15;\n this.uint16[o2 + 16] = v16;\n this.uint16[o2 + 17] = v17;\n this.uint16[o2 + 18] = v18;\n this.uint16[o2 + 19] = v19;\n this.uint16[o2 + 20] = v20;\n this.uint16[o2 + 21] = v21;\n this.uint16[o2 + 22] = v22;\n this.uint32[o4 + 12] = v23;\n this.float32[o4 + 13] = v24;\n this.float32[o4 + 14] = v25;\n this.float32[o4 + 15] = v26;\n this.float32[o4 + 16] = v27;\n return i;\n };\n return StructArrayLayout8i15ui1ul4f68;\n}(StructArray);\nStructArrayLayout8i15ui1ul4f68.prototype.bytesPerElement = 68;\nregister('StructArrayLayout8i15ui1ul4f68', StructArrayLayout8i15ui1ul4f68);\nvar StructArrayLayout1f4 = function (StructArray) {\n function StructArrayLayout1f4() {\n StructArray.apply(this, arguments);\n }\n if (StructArray)\n StructArrayLayout1f4.__proto__ = StructArray;\n StructArrayLayout1f4.prototype = Object.create(StructArray && StructArray.prototype);\n StructArrayLayout1f4.prototype.constructor = StructArrayLayout1f4;\n StructArrayLayout1f4.prototype._refreshViews = function _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer);\n this.float32 = new Float32Array(this.arrayBuffer);\n };\n StructArrayLayout1f4.prototype.emplaceBack = function emplaceBack(v0) {\n var i = this.length;\n this.resize(i + 1);\n return this.emplace(i, v0);\n };\n StructArrayLayout1f4.prototype.emplace = function emplace(i, v0) {\n var o4 = i * 1;\n this.float32[o4 + 0] = v0;\n return i;\n };\n return StructArrayLayout1f4;\n}(StructArray);\nStructArrayLayout1f4.prototype.bytesPerElement = 4;\nregister('StructArrayLayout1f4', StructArrayLayout1f4);\nvar StructArrayLayout3i6 = function (StructArray) {\n function StructArrayLayout3i6() {\n StructArray.apply(this, arguments);\n }\n if (StructArray)\n StructArrayLayout3i6.__proto__ = StructArray;\n StructArrayLayout3i6.prototype = Object.create(StructArray && StructArray.prototype);\n StructArrayLayout3i6.prototype.constructor = StructArrayLayout3i6;\n StructArrayLayout3i6.prototype._refreshViews = function _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer);\n this.int16 = new Int16Array(this.arrayBuffer);\n };\n StructArrayLayout3i6.prototype.emplaceBack = function emplaceBack(v0, v1, v2) {\n var i = this.length;\n this.resize(i + 1);\n return this.emplace(i, v0, v1, v2);\n };\n StructArrayLayout3i6.prototype.emplace = function emplace(i, v0, v1, v2) {\n var o2 = i * 3;\n this.int16[o2 + 0] = v0;\n this.int16[o2 + 1] = v1;\n this.int16[o2 + 2] = v2;\n return i;\n };\n return StructArrayLayout3i6;\n}(StructArray);\nStructArrayLayout3i6.prototype.bytesPerElement = 6;\nregister('StructArrayLayout3i6', StructArrayLayout3i6);\nvar StructArrayLayout1ul2ui8 = function (StructArray) {\n function StructArrayLayout1ul2ui8() {\n StructArray.apply(this, arguments);\n }\n if (StructArray)\n StructArrayLayout1ul2ui8.__proto__ = StructArray;\n StructArrayLayout1ul2ui8.prototype = Object.create(StructArray && StructArray.prototype);\n StructArrayLayout1ul2ui8.prototype.constructor = StructArrayLayout1ul2ui8;\n StructArrayLayout1ul2ui8.prototype._refreshViews = function _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer);\n this.uint32 = new Uint32Array(this.arrayBuffer);\n this.uint16 = new Uint16Array(this.arrayBuffer);\n };\n StructArrayLayout1ul2ui8.prototype.emplaceBack = function emplaceBack(v0, v1, v2) {\n var i = this.length;\n this.resize(i + 1);\n return this.emplace(i, v0, v1, v2);\n };\n StructArrayLayout1ul2ui8.prototype.emplace = function emplace(i, v0, v1, v2) {\n var o4 = i * 2;\n var o2 = i * 4;\n this.uint32[o4 + 0] = v0;\n this.uint16[o2 + 2] = v1;\n this.uint16[o2 + 3] = v2;\n return i;\n };\n return StructArrayLayout1ul2ui8;\n}(StructArray);\nStructArrayLayout1ul2ui8.prototype.bytesPerElement = 8;\nregister('StructArrayLayout1ul2ui8', StructArrayLayout1ul2ui8);\nvar StructArrayLayout2ui4 = function (StructArray) {\n function StructArrayLayout2ui4() {\n StructArray.apply(this, arguments);\n }\n if (StructArray)\n StructArrayLayout2ui4.__proto__ = StructArray;\n StructArrayLayout2ui4.prototype = Object.create(StructArray && StructArray.prototype);\n StructArrayLayout2ui4.prototype.constructor = StructArrayLayout2ui4;\n StructArrayLayout2ui4.prototype._refreshViews = function _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer);\n this.uint16 = new Uint16Array(this.arrayBuffer);\n };\n StructArrayLayout2ui4.prototype.emplaceBack = function emplaceBack(v0, v1) {\n var i = this.length;\n this.resize(i + 1);\n return this.emplace(i, v0, v1);\n };\n StructArrayLayout2ui4.prototype.emplace = function emplace(i, v0, v1) {\n var o2 = i * 2;\n this.uint16[o2 + 0] = v0;\n this.uint16[o2 + 1] = v1;\n return i;\n };\n return StructArrayLayout2ui4;\n}(StructArray);\nStructArrayLayout2ui4.prototype.bytesPerElement = 4;\nregister('StructArrayLayout2ui4', StructArrayLayout2ui4);\nvar StructArrayLayout1ui2 = function (StructArray) {\n function StructArrayLayout1ui2() {\n StructArray.apply(this, arguments);\n }\n if (StructArray)\n StructArrayLayout1ui2.__proto__ = StructArray;\n StructArrayLayout1ui2.prototype = Object.create(StructArray && StructArray.prototype);\n StructArrayLayout1ui2.prototype.constructor = StructArrayLayout1ui2;\n StructArrayLayout1ui2.prototype._refreshViews = function _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer);\n this.uint16 = new Uint16Array(this.arrayBuffer);\n };\n StructArrayLayout1ui2.prototype.emplaceBack = function emplaceBack(v0) {\n var i = this.length;\n this.resize(i + 1);\n return this.emplace(i, v0);\n };\n StructArrayLayout1ui2.prototype.emplace = function emplace(i, v0) {\n var o2 = i * 1;\n this.uint16[o2 + 0] = v0;\n return i;\n };\n return StructArrayLayout1ui2;\n}(StructArray);\nStructArrayLayout1ui2.prototype.bytesPerElement = 2;\nregister('StructArrayLayout1ui2', StructArrayLayout1ui2);\nvar StructArrayLayout2f8 = function (StructArray) {\n function StructArrayLayout2f8() {\n StructArray.apply(this, arguments);\n }\n if (StructArray)\n StructArrayLayout2f8.__proto__ = StructArray;\n StructArrayLayout2f8.prototype = Object.create(StructArray && StructArray.prototype);\n StructArrayLayout2f8.prototype.constructor = StructArrayLayout2f8;\n StructArrayLayout2f8.prototype._refreshViews = function _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer);\n this.float32 = new Float32Array(this.arrayBuffer);\n };\n StructArrayLayout2f8.prototype.emplaceBack = function emplaceBack(v0, v1) {\n var i = this.length;\n this.resize(i + 1);\n return this.emplace(i, v0, v1);\n };\n StructArrayLayout2f8.prototype.emplace = function emplace(i, v0, v1) {\n var o4 = i * 2;\n this.float32[o4 + 0] = v0;\n this.float32[o4 + 1] = v1;\n return i;\n };\n return StructArrayLayout2f8;\n}(StructArray);\nStructArrayLayout2f8.prototype.bytesPerElement = 8;\nregister('StructArrayLayout2f8', StructArrayLayout2f8);\nvar StructArrayLayout4f16 = function (StructArray) {\n function StructArrayLayout4f16() {\n StructArray.apply(this, arguments);\n }\n if (StructArray)\n StructArrayLayout4f16.__proto__ = StructArray;\n StructArrayLayout4f16.prototype = Object.create(StructArray && StructArray.prototype);\n StructArrayLayout4f16.prototype.constructor = StructArrayLayout4f16;\n StructArrayLayout4f16.prototype._refreshViews = function _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer);\n this.float32 = new Float32Array(this.arrayBuffer);\n };\n StructArrayLayout4f16.prototype.emplaceBack = function emplaceBack(v0, v1, v2, v3) {\n var i = this.length;\n this.resize(i + 1);\n return this.emplace(i, v0, v1, v2, v3);\n };\n StructArrayLayout4f16.prototype.emplace = function emplace(i, v0, v1, v2, v3) {\n var o4 = i * 4;\n this.float32[o4 + 0] = v0;\n this.float32[o4 + 1] = v1;\n this.float32[o4 + 2] = v2;\n this.float32[o4 + 3] = v3;\n return i;\n };\n return StructArrayLayout4f16;\n}(StructArray);\nStructArrayLayout4f16.prototype.bytesPerElement = 16;\nregister('StructArrayLayout4f16', StructArrayLayout4f16);\nvar CollisionBoxStruct = function (Struct) {\n function CollisionBoxStruct() {\n Struct.apply(this, arguments);\n }\n if (Struct)\n CollisionBoxStruct.__proto__ = Struct;\n CollisionBoxStruct.prototype = Object.create(Struct && Struct.prototype);\n CollisionBoxStruct.prototype.constructor = CollisionBoxStruct;\n var prototypeAccessors = {\n anchorPointX: { configurable: true },\n anchorPointY: { configurable: true },\n x1: { configurable: true },\n y1: { configurable: true },\n x2: { configurable: true },\n y2: { configurable: true },\n featureIndex: { configurable: true },\n sourceLayerIndex: { configurable: true },\n bucketIndex: { configurable: true },\n anchorPoint: { configurable: true }\n };\n prototypeAccessors.anchorPointX.get = function () {\n return this._structArray.int16[this._pos2 + 0];\n };\n prototypeAccessors.anchorPointY.get = function () {\n return this._structArray.int16[this._pos2 + 1];\n };\n prototypeAccessors.x1.get = function () {\n return this._structArray.int16[this._pos2 + 2];\n };\n prototypeAccessors.y1.get = function () {\n return this._structArray.int16[this._pos2 + 3];\n };\n prototypeAccessors.x2.get = function () {\n return this._structArray.int16[this._pos2 + 4];\n };\n prototypeAccessors.y2.get = function () {\n return this._structArray.int16[this._pos2 + 5];\n };\n prototypeAccessors.featureIndex.get = function () {\n return this._structArray.uint32[this._pos4 + 3];\n };\n prototypeAccessors.sourceLayerIndex.get = function () {\n return this._structArray.uint16[this._pos2 + 8];\n };\n prototypeAccessors.bucketIndex.get = function () {\n return this._structArray.uint16[this._pos2 + 9];\n };\n prototypeAccessors.anchorPoint.get = function () {\n return new pointGeometry(this.anchorPointX, this.anchorPointY);\n };\n Object.defineProperties(CollisionBoxStruct.prototype, prototypeAccessors);\n return CollisionBoxStruct;\n}(Struct);\nCollisionBoxStruct.prototype.size = 20;\nvar CollisionBoxArray = function (StructArrayLayout6i1ul2ui20) {\n function CollisionBoxArray() {\n StructArrayLayout6i1ul2ui20.apply(this, arguments);\n }\n if (StructArrayLayout6i1ul2ui20)\n CollisionBoxArray.__proto__ = StructArrayLayout6i1ul2ui20;\n CollisionBoxArray.prototype = Object.create(StructArrayLayout6i1ul2ui20 && StructArrayLayout6i1ul2ui20.prototype);\n CollisionBoxArray.prototype.constructor = CollisionBoxArray;\n CollisionBoxArray.prototype.get = function get(index) {\n return new CollisionBoxStruct(this, index);\n };\n return CollisionBoxArray;\n}(StructArrayLayout6i1ul2ui20);\nregister('CollisionBoxArray', CollisionBoxArray);\nvar PlacedSymbolStruct = function (Struct) {\n function PlacedSymbolStruct() {\n Struct.apply(this, arguments);\n }\n if (Struct)\n PlacedSymbolStruct.__proto__ = Struct;\n PlacedSymbolStruct.prototype = Object.create(Struct && Struct.prototype);\n PlacedSymbolStruct.prototype.constructor = PlacedSymbolStruct;\n var prototypeAccessors$1 = {\n anchorX: { configurable: true },\n anchorY: { configurable: true },\n glyphStartIndex: { configurable: true },\n numGlyphs: { configurable: true },\n vertexStartIndex: { configurable: true },\n lineStartIndex: { configurable: true },\n lineLength: { configurable: true },\n segment: { configurable: true },\n lowerSize: { configurable: true },\n upperSize: { configurable: true },\n lineOffsetX: { configurable: true },\n lineOffsetY: { configurable: true },\n writingMode: { configurable: true },\n placedOrientation: { configurable: true },\n hidden: { configurable: true },\n crossTileID: { configurable: true },\n associatedIconIndex: { configurable: true }\n };\n prototypeAccessors$1.anchorX.get = function () {\n return this._structArray.int16[this._pos2 + 0];\n };\n prototypeAccessors$1.anchorY.get = function () {\n return this._structArray.int16[this._pos2 + 1];\n };\n prototypeAccessors$1.glyphStartIndex.get = function () {\n return this._structArray.uint16[this._pos2 + 2];\n };\n prototypeAccessors$1.numGlyphs.get = function () {\n return this._structArray.uint16[this._pos2 + 3];\n };\n prototypeAccessors$1.vertexStartIndex.get = function () {\n return this._structArray.uint32[this._pos4 + 2];\n };\n prototypeAccessors$1.lineStartIndex.get = function () {\n return this._structArray.uint32[this._pos4 + 3];\n };\n prototypeAccessors$1.lineLength.get = function () {\n return this._structArray.uint32[this._pos4 + 4];\n };\n prototypeAccessors$1.segment.get = function () {\n return this._structArray.uint16[this._pos2 + 10];\n };\n prototypeAccessors$1.lowerSize.get = function () {\n return this._structArray.uint16[this._pos2 + 11];\n };\n prototypeAccessors$1.upperSize.get = function () {\n return this._structArray.uint16[this._pos2 + 12];\n };\n prototypeAccessors$1.lineOffsetX.get = function () {\n return this._structArray.float32[this._pos4 + 7];\n };\n prototypeAccessors$1.lineOffsetY.get = function () {\n return this._structArray.float32[this._pos4 + 8];\n };\n prototypeAccessors$1.writingMode.get = function () {\n return this._structArray.uint8[this._pos1 + 36];\n };\n prototypeAccessors$1.placedOrientation.get = function () {\n return this._structArray.uint8[this._pos1 + 37];\n };\n prototypeAccessors$1.placedOrientation.set = function (x) {\n this._structArray.uint8[this._pos1 + 37] = x;\n };\n prototypeAccessors$1.hidden.get = function () {\n return this._structArray.uint8[this._pos1 + 38];\n };\n prototypeAccessors$1.hidden.set = function (x) {\n this._structArray.uint8[this._pos1 + 38] = x;\n };\n prototypeAccessors$1.crossTileID.get = function () {\n return this._structArray.uint32[this._pos4 + 10];\n };\n prototypeAccessors$1.crossTileID.set = function (x) {\n this._structArray.uint32[this._pos4 + 10] = x;\n };\n prototypeAccessors$1.associatedIconIndex.get = function () {\n return this._structArray.int16[this._pos2 + 22];\n };\n Object.defineProperties(PlacedSymbolStruct.prototype, prototypeAccessors$1);\n return PlacedSymbolStruct;\n}(Struct);\nPlacedSymbolStruct.prototype.size = 48;\nvar PlacedSymbolArray = function (StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48) {\n function PlacedSymbolArray() {\n StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48.apply(this, arguments);\n }\n if (StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48)\n PlacedSymbolArray.__proto__ = StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48;\n PlacedSymbolArray.prototype = Object.create(StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48 && StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48.prototype);\n PlacedSymbolArray.prototype.constructor = PlacedSymbolArray;\n PlacedSymbolArray.prototype.get = function get(index) {\n return new PlacedSymbolStruct(this, index);\n };\n return PlacedSymbolArray;\n}(StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48);\nregister('PlacedSymbolArray', PlacedSymbolArray);\nvar SymbolInstanceStruct = function (Struct) {\n function SymbolInstanceStruct() {\n Struct.apply(this, arguments);\n }\n if (Struct)\n SymbolInstanceStruct.__proto__ = Struct;\n SymbolInstanceStruct.prototype = Object.create(Struct && Struct.prototype);\n SymbolInstanceStruct.prototype.constructor = SymbolInstanceStruct;\n var prototypeAccessors$2 = {\n anchorX: { configurable: true },\n anchorY: { configurable: true },\n rightJustifiedTextSymbolIndex: { configurable: true },\n centerJustifiedTextSymbolIndex: { configurable: true },\n leftJustifiedTextSymbolIndex: { configurable: true },\n verticalPlacedTextSymbolIndex: { configurable: true },\n placedIconSymbolIndex: { configurable: true },\n verticalPlacedIconSymbolIndex: { configurable: true },\n key: { configurable: true },\n textBoxStartIndex: { configurable: true },\n textBoxEndIndex: { configurable: true },\n verticalTextBoxStartIndex: { configurable: true },\n verticalTextBoxEndIndex: { configurable: true },\n iconBoxStartIndex: { configurable: true },\n iconBoxEndIndex: { configurable: true },\n verticalIconBoxStartIndex: { configurable: true },\n verticalIconBoxEndIndex: { configurable: true },\n featureIndex: { configurable: true },\n numHorizontalGlyphVertices: { configurable: true },\n numVerticalGlyphVertices: { configurable: true },\n numIconVertices: { configurable: true },\n numVerticalIconVertices: { configurable: true },\n useRuntimeCollisionCircles: { configurable: true },\n crossTileID: { configurable: true },\n textBoxScale: { configurable: true },\n textOffset0: { configurable: true },\n textOffset1: { configurable: true },\n collisionCircleDiameter: { configurable: true }\n };\n prototypeAccessors$2.anchorX.get = function () {\n return this._structArray.int16[this._pos2 + 0];\n };\n prototypeAccessors$2.anchorY.get = function () {\n return this._structArray.int16[this._pos2 + 1];\n };\n prototypeAccessors$2.rightJustifiedTextSymbolIndex.get = function () {\n return this._structArray.int16[this._pos2 + 2];\n };\n prototypeAccessors$2.centerJustifiedTextSymbolIndex.get = function () {\n return this._structArray.int16[this._pos2 + 3];\n };\n prototypeAccessors$2.leftJustifiedTextSymbolIndex.get = function () {\n return this._structArray.int16[this._pos2 + 4];\n };\n prototypeAccessors$2.verticalPlacedTextSymbolIndex.get = function () {\n return this._structArray.int16[this._pos2 + 5];\n };\n prototypeAccessors$2.placedIconSymbolIndex.get = function () {\n return this._structArray.int16[this._pos2 + 6];\n };\n prototypeAccessors$2.verticalPlacedIconSymbolIndex.get = function () {\n return this._structArray.int16[this._pos2 + 7];\n };\n prototypeAccessors$2.key.get = function () {\n return this._structArray.uint16[this._pos2 + 8];\n };\n prototypeAccessors$2.textBoxStartIndex.get = function () {\n return this._structArray.uint16[this._pos2 + 9];\n };\n prototypeAccessors$2.textBoxEndIndex.get = function () {\n return this._structArray.uint16[this._pos2 + 10];\n };\n prototypeAccessors$2.verticalTextBoxStartIndex.get = function () {\n return this._structArray.uint16[this._pos2 + 11];\n };\n prototypeAccessors$2.verticalTextBoxEndIndex.get = function () {\n return this._structArray.uint16[this._pos2 + 12];\n };\n prototypeAccessors$2.iconBoxStartIndex.get = function () {\n return this._structArray.uint16[this._pos2 + 13];\n };\n prototypeAccessors$2.iconBoxEndIndex.get = function () {\n return this._structArray.uint16[this._pos2 + 14];\n };\n prototypeAccessors$2.verticalIconBoxStartIndex.get = function () {\n return this._structArray.uint16[this._pos2 + 15];\n };\n prototypeAccessors$2.verticalIconBoxEndIndex.get = function () {\n return this._structArray.uint16[this._pos2 + 16];\n };\n prototypeAccessors$2.featureIndex.get = function () {\n return this._structArray.uint16[this._pos2 + 17];\n };\n prototypeAccessors$2.numHorizontalGlyphVertices.get = function () {\n return this._structArray.uint16[this._pos2 + 18];\n };\n prototypeAccessors$2.numVerticalGlyphVertices.get = function () {\n return this._structArray.uint16[this._pos2 + 19];\n };\n prototypeAccessors$2.numIconVertices.get = function () {\n return this._structArray.uint16[this._pos2 + 20];\n };\n prototypeAccessors$2.numVerticalIconVertices.get = function () {\n return this._structArray.uint16[this._pos2 + 21];\n };\n prototypeAccessors$2.useRuntimeCollisionCircles.get = function () {\n return this._structArray.uint16[this._pos2 + 22];\n };\n prototypeAccessors$2.crossTileID.get = function () {\n return this._structArray.uint32[this._pos4 + 12];\n };\n prototypeAccessors$2.crossTileID.set = function (x) {\n this._structArray.uint32[this._pos4 + 12] = x;\n };\n prototypeAccessors$2.textBoxScale.get = function () {\n return this._structArray.float32[this._pos4 + 13];\n };\n prototypeAccessors$2.textOffset0.get = function () {\n return this._structArray.float32[this._pos4 + 14];\n };\n prototypeAccessors$2.textOffset1.get = function () {\n return this._structArray.float32[this._pos4 + 15];\n };\n prototypeAccessors$2.collisionCircleDiameter.get = function () {\n return this._structArray.float32[this._pos4 + 16];\n };\n Object.defineProperties(SymbolInstanceStruct.prototype, prototypeAccessors$2);\n return SymbolInstanceStruct;\n}(Struct);\nSymbolInstanceStruct.prototype.size = 68;\nvar SymbolInstanceArray = function (StructArrayLayout8i15ui1ul4f68) {\n function SymbolInstanceArray() {\n StructArrayLayout8i15ui1ul4f68.apply(this, arguments);\n }\n if (StructArrayLayout8i15ui1ul4f68)\n SymbolInstanceArray.__proto__ = StructArrayLayout8i15ui1ul4f68;\n SymbolInstanceArray.prototype = Object.create(StructArrayLayout8i15ui1ul4f68 && StructArrayLayout8i15ui1ul4f68.prototype);\n SymbolInstanceArray.prototype.constructor = SymbolInstanceArray;\n SymbolInstanceArray.prototype.get = function get(index) {\n return new SymbolInstanceStruct(this, index);\n };\n return SymbolInstanceArray;\n}(StructArrayLayout8i15ui1ul4f68);\nregister('SymbolInstanceArray', SymbolInstanceArray);\nvar GlyphOffsetArray = function (StructArrayLayout1f4) {\n function GlyphOffsetArray() {\n StructArrayLayout1f4.apply(this, arguments);\n }\n if (StructArrayLayout1f4)\n GlyphOffsetArray.__proto__ = StructArrayLayout1f4;\n GlyphOffsetArray.prototype = Object.create(StructArrayLayout1f4 && StructArrayLayout1f4.prototype);\n GlyphOffsetArray.prototype.constructor = GlyphOffsetArray;\n GlyphOffsetArray.prototype.getoffsetX = function getoffsetX(index) {\n return this.float32[index * 1 + 0];\n };\n return GlyphOffsetArray;\n}(StructArrayLayout1f4);\nregister('GlyphOffsetArray', GlyphOffsetArray);\nvar SymbolLineVertexArray = function (StructArrayLayout3i6) {\n function SymbolLineVertexArray() {\n StructArrayLayout3i6.apply(this, arguments);\n }\n if (StructArrayLayout3i6)\n SymbolLineVertexArray.__proto__ = StructArrayLayout3i6;\n SymbolLineVertexArray.prototype = Object.create(StructArrayLayout3i6 && StructArrayLayout3i6.prototype);\n SymbolLineVertexArray.prototype.constructor = SymbolLineVertexArray;\n SymbolLineVertexArray.prototype.getx = function getx(index) {\n return this.int16[index * 3 + 0];\n };\n SymbolLineVertexArray.prototype.gety = function gety(index) {\n return this.int16[index * 3 + 1];\n };\n SymbolLineVertexArray.prototype.gettileUnitDistanceFromAnchor = function gettileUnitDistanceFromAnchor(index) {\n return this.int16[index * 3 + 2];\n };\n return SymbolLineVertexArray;\n}(StructArrayLayout3i6);\nregister('SymbolLineVertexArray', SymbolLineVertexArray);\nvar FeatureIndexStruct = function (Struct) {\n function FeatureIndexStruct() {\n Struct.apply(this, arguments);\n }\n if (Struct)\n FeatureIndexStruct.__proto__ = Struct;\n FeatureIndexStruct.prototype = Object.create(Struct && Struct.prototype);\n FeatureIndexStruct.prototype.constructor = FeatureIndexStruct;\n var prototypeAccessors$3 = {\n featureIndex: { configurable: true },\n sourceLayerIndex: { configurable: true },\n bucketIndex: { configurable: true }\n };\n prototypeAccessors$3.featureIndex.get = function () {\n return this._structArray.uint32[this._pos4 + 0];\n };\n prototypeAccessors$3.sourceLayerIndex.get = function () {\n return this._structArray.uint16[this._pos2 + 2];\n };\n prototypeAccessors$3.bucketIndex.get = function () {\n return this._structArray.uint16[this._pos2 + 3];\n };\n Object.defineProperties(FeatureIndexStruct.prototype, prototypeAccessors$3);\n return FeatureIndexStruct;\n}(Struct);\nFeatureIndexStruct.prototype.size = 8;\nvar FeatureIndexArray = function (StructArrayLayout1ul2ui8) {\n function FeatureIndexArray() {\n StructArrayLayout1ul2ui8.apply(this, arguments);\n }\n if (StructArrayLayout1ul2ui8)\n FeatureIndexArray.__proto__ = StructArrayLayout1ul2ui8;\n FeatureIndexArray.prototype = Object.create(StructArrayLayout1ul2ui8 && StructArrayLayout1ul2ui8.prototype);\n FeatureIndexArray.prototype.constructor = FeatureIndexArray;\n FeatureIndexArray.prototype.get = function get(index) {\n return new FeatureIndexStruct(this, index);\n };\n return FeatureIndexArray;\n}(StructArrayLayout1ul2ui8);\nregister('FeatureIndexArray', FeatureIndexArray);\n\nvar layout$1 = createLayout([{\n name: 'a_pos',\n components: 2,\n type: 'Int16'\n }], 4);\nvar members = layout$1.members;\n\nvar SegmentVector = function SegmentVector(segments) {\n if (segments === void 0)\n segments = [];\n this.segments = segments;\n};\nSegmentVector.prototype.prepareSegment = function prepareSegment(numVertices, layoutVertexArray, indexArray, sortKey) {\n var segment = this.segments[this.segments.length - 1];\n if (numVertices > SegmentVector.MAX_VERTEX_ARRAY_LENGTH) {\n warnOnce('Max vertices per segment is ' + SegmentVector.MAX_VERTEX_ARRAY_LENGTH + ': bucket requested ' + numVertices);\n }\n if (!segment || segment.vertexLength + numVertices > SegmentVector.MAX_VERTEX_ARRAY_LENGTH || segment.sortKey !== sortKey) {\n segment = {\n vertexOffset: layoutVertexArray.length,\n primitiveOffset: indexArray.length,\n vertexLength: 0,\n primitiveLength: 0\n };\n if (sortKey !== undefined) {\n segment.sortKey = sortKey;\n }\n this.segments.push(segment);\n }\n return segment;\n};\nSegmentVector.prototype.get = function get() {\n return this.segments;\n};\nSegmentVector.prototype.destroy = function destroy() {\n for (var i = 0, list = this.segments; i < list.length; i += 1) {\n var segment = list[i];\n for (var k in segment.vaos) {\n segment.vaos[k].destroy();\n }\n }\n};\nSegmentVector.simpleSegment = function simpleSegment(vertexOffset, primitiveOffset, vertexLength, primitiveLength) {\n return new SegmentVector([{\n vertexOffset: vertexOffset,\n primitiveOffset: primitiveOffset,\n vertexLength: vertexLength,\n primitiveLength: primitiveLength,\n vaos: {},\n sortKey: 0\n }]);\n};\nSegmentVector.MAX_VERTEX_ARRAY_LENGTH = Math.pow(2, 16) - 1;\nregister('SegmentVector', SegmentVector);\n\nfunction packUint8ToFloat(a, b) {\n a = clamp(Math.floor(a), 0, 255);\n b = clamp(Math.floor(b), 0, 255);\n return 256 * a + b;\n}\n\nvar patternAttributes = createLayout([\n {\n name: 'a_pattern_from',\n components: 4,\n type: 'Uint16'\n },\n {\n name: 'a_pattern_to',\n components: 4,\n type: 'Uint16'\n },\n {\n name: 'a_pixel_ratio_from',\n components: 1,\n type: 'Uint8'\n },\n {\n name: 'a_pixel_ratio_to',\n components: 1,\n type: 'Uint8'\n }\n]);\n\nvar murmurhash3_gc = createCommonjsModule(function (module) {\nfunction murmurhash3_32_gc(key, seed) {\n var remainder, bytes, h1, h1b, c1, c2, k1, i;\n remainder = key.length & 3;\n bytes = key.length - remainder;\n h1 = seed;\n c1 = 3432918353;\n c2 = 461845907;\n i = 0;\n while (i < bytes) {\n k1 = key.charCodeAt(i) & 255 | (key.charCodeAt(++i) & 255) << 8 | (key.charCodeAt(++i) & 255) << 16 | (key.charCodeAt(++i) & 255) << 24;\n ++i;\n k1 = (k1 & 65535) * c1 + (((k1 >>> 16) * c1 & 65535) << 16) & 4294967295;\n k1 = k1 << 15 | k1 >>> 17;\n k1 = (k1 & 65535) * c2 + (((k1 >>> 16) * c2 & 65535) << 16) & 4294967295;\n h1 ^= k1;\n h1 = h1 << 13 | h1 >>> 19;\n h1b = (h1 & 65535) * 5 + (((h1 >>> 16) * 5 & 65535) << 16) & 4294967295;\n h1 = (h1b & 65535) + 27492 + (((h1b >>> 16) + 58964 & 65535) << 16);\n }\n k1 = 0;\n switch (remainder) {\n case 3:\n k1 ^= (key.charCodeAt(i + 2) & 255) << 16;\n case 2:\n k1 ^= (key.charCodeAt(i + 1) & 255) << 8;\n case 1:\n k1 ^= key.charCodeAt(i) & 255;\n k1 = (k1 & 65535) * c1 + (((k1 >>> 16) * c1 & 65535) << 16) & 4294967295;\n k1 = k1 << 15 | k1 >>> 17;\n k1 = (k1 & 65535) * c2 + (((k1 >>> 16) * c2 & 65535) << 16) & 4294967295;\n h1 ^= k1;\n }\n h1 ^= key.length;\n h1 ^= h1 >>> 16;\n h1 = (h1 & 65535) * 2246822507 + (((h1 >>> 16) * 2246822507 & 65535) << 16) & 4294967295;\n h1 ^= h1 >>> 13;\n h1 = (h1 & 65535) * 3266489909 + (((h1 >>> 16) * 3266489909 & 65535) << 16) & 4294967295;\n h1 ^= h1 >>> 16;\n return h1 >>> 0;\n}\n{\n module.exports = murmurhash3_32_gc;\n}\n});\n\nvar murmurhash2_gc = createCommonjsModule(function (module) {\nfunction murmurhash2_32_gc(str, seed) {\n var l = str.length, h = seed ^ l, i = 0, k;\n while (l >= 4) {\n k = str.charCodeAt(i) & 255 | (str.charCodeAt(++i) & 255) << 8 | (str.charCodeAt(++i) & 255) << 16 | (str.charCodeAt(++i) & 255) << 24;\n k = (k & 65535) * 1540483477 + (((k >>> 16) * 1540483477 & 65535) << 16);\n k ^= k >>> 24;\n k = (k & 65535) * 1540483477 + (((k >>> 16) * 1540483477 & 65535) << 16);\n h = (h & 65535) * 1540483477 + (((h >>> 16) * 1540483477 & 65535) << 16) ^ k;\n l -= 4;\n ++i;\n }\n switch (l) {\n case 3:\n h ^= (str.charCodeAt(i + 2) & 255) << 16;\n case 2:\n h ^= (str.charCodeAt(i + 1) & 255) << 8;\n case 1:\n h ^= str.charCodeAt(i) & 255;\n h = (h & 65535) * 1540483477 + (((h >>> 16) * 1540483477 & 65535) << 16);\n }\n h ^= h >>> 13;\n h = (h & 65535) * 1540483477 + (((h >>> 16) * 1540483477 & 65535) << 16);\n h ^= h >>> 15;\n return h >>> 0;\n}\n{\n module.exports = murmurhash2_32_gc;\n}\n});\n\nvar murmurhashJs = murmurhash3_gc;\nvar murmur3_1 = murmurhash3_gc;\nvar murmur2_1 = murmurhash2_gc;\nmurmurhashJs.murmur3 = murmur3_1;\nmurmurhashJs.murmur2 = murmur2_1;\n\nvar FeaturePositionMap = function FeaturePositionMap() {\n this.ids = [];\n this.positions = [];\n this.indexed = false;\n};\nFeaturePositionMap.prototype.add = function add(id, index, start, end) {\n this.ids.push(getNumericId(id));\n this.positions.push(index, start, end);\n};\nFeaturePositionMap.prototype.getPositions = function getPositions(id) {\n var intId = getNumericId(id);\n var i = 0;\n var j = this.ids.length - 1;\n while (i < j) {\n var m = i + j >> 1;\n if (this.ids[m] >= intId) {\n j = m;\n } else {\n i = m + 1;\n }\n }\n var positions = [];\n while (this.ids[i] === intId) {\n var index = this.positions[3 * i];\n var start = this.positions[3 * i + 1];\n var end = this.positions[3 * i + 2];\n positions.push({\n index: index,\n start: start,\n end: end\n });\n i++;\n }\n return positions;\n};\nFeaturePositionMap.serialize = function serialize(map, transferables) {\n var ids = new Float64Array(map.ids);\n var positions = new Uint32Array(map.positions);\n sort(ids, positions, 0, ids.length - 1);\n if (transferables) {\n transferables.push(ids.buffer, positions.buffer);\n }\n return {\n ids: ids,\n positions: positions\n };\n};\nFeaturePositionMap.deserialize = function deserialize(obj) {\n var map = new FeaturePositionMap();\n map.ids = obj.ids;\n map.positions = obj.positions;\n map.indexed = true;\n return map;\n};\nvar MAX_SAFE_INTEGER = Math.pow(2, 53) - 1;\nfunction getNumericId(value) {\n var numValue = +value;\n if (!isNaN(numValue) && numValue <= MAX_SAFE_INTEGER) {\n return numValue;\n }\n return murmurhashJs(String(value));\n}\nfunction sort(ids, positions, left, right) {\n while (left < right) {\n var pivot = ids[left + right >> 1];\n var i = left - 1;\n var j = right + 1;\n while (true) {\n do {\n i++;\n } while (ids[i] < pivot);\n do {\n j--;\n } while (ids[j] > pivot);\n if (i >= j) {\n break;\n }\n swap(ids, i, j);\n swap(positions, 3 * i, 3 * j);\n swap(positions, 3 * i + 1, 3 * j + 1);\n swap(positions, 3 * i + 2, 3 * j + 2);\n }\n if (j - left < right - j) {\n sort(ids, positions, left, j);\n left = j + 1;\n } else {\n sort(ids, positions, j + 1, right);\n right = j;\n }\n }\n}\nfunction swap(arr, i, j) {\n var tmp = arr[i];\n arr[i] = arr[j];\n arr[j] = tmp;\n}\nregister('FeaturePositionMap', FeaturePositionMap);\n\nvar Uniform = function Uniform(context, location) {\n this.gl = context.gl;\n this.location = location;\n};\nvar Uniform1i = function (Uniform) {\n function Uniform1i(context, location) {\n Uniform.call(this, context, location);\n this.current = 0;\n }\n if (Uniform)\n Uniform1i.__proto__ = Uniform;\n Uniform1i.prototype = Object.create(Uniform && Uniform.prototype);\n Uniform1i.prototype.constructor = Uniform1i;\n Uniform1i.prototype.set = function set(v) {\n if (this.current !== v) {\n this.current = v;\n this.gl.uniform1i(this.location, v);\n }\n };\n return Uniform1i;\n}(Uniform);\nvar Uniform1f = function (Uniform) {\n function Uniform1f(context, location) {\n Uniform.call(this, context, location);\n this.current = 0;\n }\n if (Uniform)\n Uniform1f.__proto__ = Uniform;\n Uniform1f.prototype = Object.create(Uniform && Uniform.prototype);\n Uniform1f.prototype.constructor = Uniform1f;\n Uniform1f.prototype.set = function set(v) {\n if (this.current !== v) {\n this.current = v;\n this.gl.uniform1f(this.location, v);\n }\n };\n return Uniform1f;\n}(Uniform);\nvar Uniform2f = function (Uniform) {\n function Uniform2f(context, location) {\n Uniform.call(this, context, location);\n this.current = [\n 0,\n 0\n ];\n }\n if (Uniform)\n Uniform2f.__proto__ = Uniform;\n Uniform2f.prototype = Object.create(Uniform && Uniform.prototype);\n Uniform2f.prototype.constructor = Uniform2f;\n Uniform2f.prototype.set = function set(v) {\n if (v[0] !== this.current[0] || v[1] !== this.current[1]) {\n this.current = v;\n this.gl.uniform2f(this.location, v[0], v[1]);\n }\n };\n return Uniform2f;\n}(Uniform);\nvar Uniform3f = function (Uniform) {\n function Uniform3f(context, location) {\n Uniform.call(this, context, location);\n this.current = [\n 0,\n 0,\n 0\n ];\n }\n if (Uniform)\n Uniform3f.__proto__ = Uniform;\n Uniform3f.prototype = Object.create(Uniform && Uniform.prototype);\n Uniform3f.prototype.constructor = Uniform3f;\n Uniform3f.prototype.set = function set(v) {\n if (v[0] !== this.current[0] || v[1] !== this.current[1] || v[2] !== this.current[2]) {\n this.current = v;\n this.gl.uniform3f(this.location, v[0], v[1], v[2]);\n }\n };\n return Uniform3f;\n}(Uniform);\nvar Uniform4f = function (Uniform) {\n function Uniform4f(context, location) {\n Uniform.call(this, context, location);\n this.current = [\n 0,\n 0,\n 0,\n 0\n ];\n }\n if (Uniform)\n Uniform4f.__proto__ = Uniform;\n Uniform4f.prototype = Object.create(Uniform && Uniform.prototype);\n Uniform4f.prototype.constructor = Uniform4f;\n Uniform4f.prototype.set = function set(v) {\n if (v[0] !== this.current[0] || v[1] !== this.current[1] || v[2] !== this.current[2] || v[3] !== this.current[3]) {\n this.current = v;\n this.gl.uniform4f(this.location, v[0], v[1], v[2], v[3]);\n }\n };\n return Uniform4f;\n}(Uniform);\nvar UniformColor = function (Uniform) {\n function UniformColor(context, location) {\n Uniform.call(this, context, location);\n this.current = Color.transparent;\n }\n if (Uniform)\n UniformColor.__proto__ = Uniform;\n UniformColor.prototype = Object.create(Uniform && Uniform.prototype);\n UniformColor.prototype.constructor = UniformColor;\n UniformColor.prototype.set = function set(v) {\n if (v.r !== this.current.r || v.g !== this.current.g || v.b !== this.current.b || v.a !== this.current.a) {\n this.current = v;\n this.gl.uniform4f(this.location, v.r, v.g, v.b, v.a);\n }\n };\n return UniformColor;\n}(Uniform);\nvar emptyMat4 = new Float32Array(16);\nvar UniformMatrix4f = function (Uniform) {\n function UniformMatrix4f(context, location) {\n Uniform.call(this, context, location);\n this.current = emptyMat4;\n }\n if (Uniform)\n UniformMatrix4f.__proto__ = Uniform;\n UniformMatrix4f.prototype = Object.create(Uniform && Uniform.prototype);\n UniformMatrix4f.prototype.constructor = UniformMatrix4f;\n UniformMatrix4f.prototype.set = function set(v) {\n if (v[12] !== this.current[12] || v[0] !== this.current[0]) {\n this.current = v;\n this.gl.uniformMatrix4fv(this.location, false, v);\n return;\n }\n for (var i = 1; i < 16; i++) {\n if (v[i] !== this.current[i]) {\n this.current = v;\n this.gl.uniformMatrix4fv(this.location, false, v);\n break;\n }\n }\n };\n return UniformMatrix4f;\n}(Uniform);\n\nfunction packColor(color) {\n return [\n packUint8ToFloat(255 * color.r, 255 * color.g),\n packUint8ToFloat(255 * color.b, 255 * color.a)\n ];\n}\nvar ConstantBinder = function ConstantBinder(value, names, type) {\n this.value = value;\n this.uniformNames = names.map(function (name) {\n return 'u_' + name;\n });\n this.type = type;\n};\nConstantBinder.prototype.setUniform = function setUniform(uniform, globals, currentValue) {\n uniform.set(currentValue.constantOr(this.value));\n};\nConstantBinder.prototype.getBinding = function getBinding(context, location, _) {\n return this.type === 'color' ? new UniformColor(context, location) : new Uniform1f(context, location);\n};\nvar CrossFadedConstantBinder = function CrossFadedConstantBinder(value, names) {\n this.uniformNames = names.map(function (name) {\n return 'u_' + name;\n });\n this.patternFrom = null;\n this.patternTo = null;\n this.pixelRatioFrom = 1;\n this.pixelRatioTo = 1;\n};\nCrossFadedConstantBinder.prototype.setConstantPatternPositions = function setConstantPatternPositions(posTo, posFrom) {\n this.pixelRatioFrom = posFrom.pixelRatio;\n this.pixelRatioTo = posTo.pixelRatio;\n this.patternFrom = posFrom.tlbr;\n this.patternTo = posTo.tlbr;\n};\nCrossFadedConstantBinder.prototype.setUniform = function setUniform(uniform, globals, currentValue, uniformName) {\n var pos = uniformName === 'u_pattern_to' ? this.patternTo : uniformName === 'u_pattern_from' ? this.patternFrom : uniformName === 'u_pixel_ratio_to' ? this.pixelRatioTo : uniformName === 'u_pixel_ratio_from' ? this.pixelRatioFrom : null;\n if (pos) {\n uniform.set(pos);\n }\n};\nCrossFadedConstantBinder.prototype.getBinding = function getBinding(context, location, name) {\n return name.substr(0, 9) === 'u_pattern' ? new Uniform4f(context, location) : new Uniform1f(context, location);\n};\nvar SourceExpressionBinder = function SourceExpressionBinder(expression, names, type, PaintVertexArray) {\n this.expression = expression;\n this.type = type;\n this.maxValue = 0;\n this.paintVertexAttributes = names.map(function (name) {\n return {\n name: 'a_' + name,\n type: 'Float32',\n components: type === 'color' ? 2 : 1,\n offset: 0\n };\n });\n this.paintVertexArray = new PaintVertexArray();\n};\nSourceExpressionBinder.prototype.populatePaintArray = function populatePaintArray(newLength, feature, imagePositions, canonical, formattedSection) {\n var start = this.paintVertexArray.length;\n var value = this.expression.evaluate(new EvaluationParameters(0), feature, {}, canonical, [], formattedSection);\n this.paintVertexArray.resize(newLength);\n this._setPaintValue(start, newLength, value);\n};\nSourceExpressionBinder.prototype.updatePaintArray = function updatePaintArray(start, end, feature, featureState) {\n var value = this.expression.evaluate({ zoom: 0 }, feature, featureState);\n this._setPaintValue(start, end, value);\n};\nSourceExpressionBinder.prototype._setPaintValue = function _setPaintValue(start, end, value) {\n if (this.type === 'color') {\n var color = packColor(value);\n for (var i = start; i < end; i++) {\n this.paintVertexArray.emplace(i, color[0], color[1]);\n }\n } else {\n for (var i$1 = start; i$1 < end; i$1++) {\n this.paintVertexArray.emplace(i$1, value);\n }\n this.maxValue = Math.max(this.maxValue, Math.abs(value));\n }\n};\nSourceExpressionBinder.prototype.upload = function upload(context) {\n if (this.paintVertexArray && this.paintVertexArray.arrayBuffer) {\n if (this.paintVertexBuffer && this.paintVertexBuffer.buffer) {\n this.paintVertexBuffer.updateData(this.paintVertexArray);\n } else {\n this.paintVertexBuffer = context.createVertexBuffer(this.paintVertexArray, this.paintVertexAttributes, this.expression.isStateDependent);\n }\n }\n};\nSourceExpressionBinder.prototype.destroy = function destroy() {\n if (this.paintVertexBuffer) {\n this.paintVertexBuffer.destroy();\n }\n};\nvar CompositeExpressionBinder = function CompositeExpressionBinder(expression, names, type, useIntegerZoom, zoom, PaintVertexArray) {\n this.expression = expression;\n this.uniformNames = names.map(function (name) {\n return 'u_' + name + '_t';\n });\n this.type = type;\n this.useIntegerZoom = useIntegerZoom;\n this.zoom = zoom;\n this.maxValue = 0;\n this.paintVertexAttributes = names.map(function (name) {\n return {\n name: 'a_' + name,\n type: 'Float32',\n components: type === 'color' ? 4 : 2,\n offset: 0\n };\n });\n this.paintVertexArray = new PaintVertexArray();\n};\nCompositeExpressionBinder.prototype.populatePaintArray = function populatePaintArray(newLength, feature, imagePositions, canonical, formattedSection) {\n var min = this.expression.evaluate(new EvaluationParameters(this.zoom), feature, {}, canonical, [], formattedSection);\n var max = this.expression.evaluate(new EvaluationParameters(this.zoom + 1), feature, {}, canonical, [], formattedSection);\n var start = this.paintVertexArray.length;\n this.paintVertexArray.resize(newLength);\n this._setPaintValue(start, newLength, min, max);\n};\nCompositeExpressionBinder.prototype.updatePaintArray = function updatePaintArray(start, end, feature, featureState) {\n var min = this.expression.evaluate({ zoom: this.zoom }, feature, featureState);\n var max = this.expression.evaluate({ zoom: this.zoom + 1 }, feature, featureState);\n this._setPaintValue(start, end, min, max);\n};\nCompositeExpressionBinder.prototype._setPaintValue = function _setPaintValue(start, end, min, max) {\n if (this.type === 'color') {\n var minColor = packColor(min);\n var maxColor = packColor(max);\n for (var i = start; i < end; i++) {\n this.paintVertexArray.emplace(i, minColor[0], minColor[1], maxColor[0], maxColor[1]);\n }\n } else {\n for (var i$1 = start; i$1 < end; i$1++) {\n this.paintVertexArray.emplace(i$1, min, max);\n }\n this.maxValue = Math.max(this.maxValue, Math.abs(min), Math.abs(max));\n }\n};\nCompositeExpressionBinder.prototype.upload = function upload(context) {\n if (this.paintVertexArray && this.paintVertexArray.arrayBuffer) {\n if (this.paintVertexBuffer && this.paintVertexBuffer.buffer) {\n this.paintVertexBuffer.updateData(this.paintVertexArray);\n } else {\n this.paintVertexBuffer = context.createVertexBuffer(this.paintVertexArray, this.paintVertexAttributes, this.expression.isStateDependent);\n }\n }\n};\nCompositeExpressionBinder.prototype.destroy = function destroy() {\n if (this.paintVertexBuffer) {\n this.paintVertexBuffer.destroy();\n }\n};\nCompositeExpressionBinder.prototype.setUniform = function setUniform(uniform, globals) {\n var currentZoom = this.useIntegerZoom ? Math.floor(globals.zoom) : globals.zoom;\n var factor = clamp(this.expression.interpolationFactor(currentZoom, this.zoom, this.zoom + 1), 0, 1);\n uniform.set(factor);\n};\nCompositeExpressionBinder.prototype.getBinding = function getBinding(context, location, _) {\n return new Uniform1f(context, location);\n};\nvar CrossFadedCompositeBinder = function CrossFadedCompositeBinder(expression, type, useIntegerZoom, zoom, PaintVertexArray, layerId) {\n this.expression = expression;\n this.type = type;\n this.useIntegerZoom = useIntegerZoom;\n this.zoom = zoom;\n this.layerId = layerId;\n this.zoomInPaintVertexArray = new PaintVertexArray();\n this.zoomOutPaintVertexArray = new PaintVertexArray();\n};\nCrossFadedCompositeBinder.prototype.populatePaintArray = function populatePaintArray(length, feature, imagePositions) {\n var start = this.zoomInPaintVertexArray.length;\n this.zoomInPaintVertexArray.resize(length);\n this.zoomOutPaintVertexArray.resize(length);\n this._setPaintValues(start, length, feature.patterns && feature.patterns[this.layerId], imagePositions);\n};\nCrossFadedCompositeBinder.prototype.updatePaintArray = function updatePaintArray(start, end, feature, featureState, imagePositions) {\n this._setPaintValues(start, end, feature.patterns && feature.patterns[this.layerId], imagePositions);\n};\nCrossFadedCompositeBinder.prototype._setPaintValues = function _setPaintValues(start, end, patterns, positions) {\n if (!positions || !patterns) {\n return;\n }\n var min = patterns.min;\n var mid = patterns.mid;\n var max = patterns.max;\n var imageMin = positions[min];\n var imageMid = positions[mid];\n var imageMax = positions[max];\n if (!imageMin || !imageMid || !imageMax) {\n return;\n }\n for (var i = start; i < end; i++) {\n this.zoomInPaintVertexArray.emplace(i, imageMid.tl[0], imageMid.tl[1], imageMid.br[0], imageMid.br[1], imageMin.tl[0], imageMin.tl[1], imageMin.br[0], imageMin.br[1], imageMid.pixelRatio, imageMin.pixelRatio);\n this.zoomOutPaintVertexArray.emplace(i, imageMid.tl[0], imageMid.tl[1], imageMid.br[0], imageMid.br[1], imageMax.tl[0], imageMax.tl[1], imageMax.br[0], imageMax.br[1], imageMid.pixelRatio, imageMax.pixelRatio);\n }\n};\nCrossFadedCompositeBinder.prototype.upload = function upload(context) {\n if (this.zoomInPaintVertexArray && this.zoomInPaintVertexArray.arrayBuffer && this.zoomOutPaintVertexArray && this.zoomOutPaintVertexArray.arrayBuffer) {\n this.zoomInPaintVertexBuffer = context.createVertexBuffer(this.zoomInPaintVertexArray, patternAttributes.members, this.expression.isStateDependent);\n this.zoomOutPaintVertexBuffer = context.createVertexBuffer(this.zoomOutPaintVertexArray, patternAttributes.members, this.expression.isStateDependent);\n }\n};\nCrossFadedCompositeBinder.prototype.destroy = function destroy() {\n if (this.zoomOutPaintVertexBuffer) {\n this.zoomOutPaintVertexBuffer.destroy();\n }\n if (this.zoomInPaintVertexBuffer) {\n this.zoomInPaintVertexBuffer.destroy();\n }\n};\nvar ProgramConfiguration = function ProgramConfiguration(layer, zoom, filterProperties, layoutAttributes) {\n this.binders = {};\n this.layoutAttributes = layoutAttributes;\n this._buffers = [];\n var keys = [];\n for (var property in layer.paint._values) {\n if (!filterProperties(property)) {\n continue;\n }\n var value = layer.paint.get(property);\n if (!(value instanceof PossiblyEvaluatedPropertyValue) || !supportsPropertyExpression(value.property.specification)) {\n continue;\n }\n var names = paintAttributeNames(property, layer.type);\n var expression = value.value;\n var type = value.property.specification.type;\n var useIntegerZoom = value.property.useIntegerZoom;\n var propType = value.property.specification['property-type'];\n var isCrossFaded = propType === 'cross-faded' || propType === 'cross-faded-data-driven';\n if (expression.kind === 'constant') {\n this.binders[property] = isCrossFaded ? new CrossFadedConstantBinder(expression.value, names) : new ConstantBinder(expression.value, names, type);\n keys.push('/u_' + property);\n } else if (expression.kind === 'source' || isCrossFaded) {\n var StructArrayLayout = layoutType(property, type, 'source');\n this.binders[property] = isCrossFaded ? new CrossFadedCompositeBinder(expression, type, useIntegerZoom, zoom, StructArrayLayout, layer.id) : new SourceExpressionBinder(expression, names, type, StructArrayLayout);\n keys.push('/a_' + property);\n } else {\n var StructArrayLayout$1 = layoutType(property, type, 'composite');\n this.binders[property] = new CompositeExpressionBinder(expression, names, type, useIntegerZoom, zoom, StructArrayLayout$1);\n keys.push('/z_' + property);\n }\n }\n this.cacheKey = keys.sort().join('');\n};\nProgramConfiguration.prototype.getMaxValue = function getMaxValue(property) {\n var binder = this.binders[property];\n return binder instanceof SourceExpressionBinder || binder instanceof CompositeExpressionBinder ? binder.maxValue : 0;\n};\nProgramConfiguration.prototype.populatePaintArrays = function populatePaintArrays(newLength, feature, imagePositions, canonical, formattedSection) {\n for (var property in this.binders) {\n var binder = this.binders[property];\n if (binder instanceof SourceExpressionBinder || binder instanceof CompositeExpressionBinder || binder instanceof CrossFadedCompositeBinder) {\n binder.populatePaintArray(newLength, feature, imagePositions, canonical, formattedSection);\n }\n }\n};\nProgramConfiguration.prototype.setConstantPatternPositions = function setConstantPatternPositions(posTo, posFrom) {\n for (var property in this.binders) {\n var binder = this.binders[property];\n if (binder instanceof CrossFadedConstantBinder) {\n binder.setConstantPatternPositions(posTo, posFrom);\n }\n }\n};\nProgramConfiguration.prototype.updatePaintArrays = function updatePaintArrays(featureStates, featureMap, vtLayer, layer, imagePositions) {\n var dirty = false;\n for (var id in featureStates) {\n var positions = featureMap.getPositions(id);\n for (var i = 0, list = positions; i < list.length; i += 1) {\n var pos = list[i];\n var feature = vtLayer.feature(pos.index);\n for (var property in this.binders) {\n var binder = this.binders[property];\n if ((binder instanceof SourceExpressionBinder || binder instanceof CompositeExpressionBinder || binder instanceof CrossFadedCompositeBinder) && binder.expression.isStateDependent === true) {\n var value = layer.paint.get(property);\n binder.expression = value.value;\n binder.updatePaintArray(pos.start, pos.end, feature, featureStates[id], imagePositions);\n dirty = true;\n }\n }\n }\n }\n return dirty;\n};\nProgramConfiguration.prototype.defines = function defines() {\n var result = [];\n for (var property in this.binders) {\n var binder = this.binders[property];\n if (binder instanceof ConstantBinder || binder instanceof CrossFadedConstantBinder) {\n result.push.apply(result, binder.uniformNames.map(function (name) {\n return '#define HAS_UNIFORM_' + name;\n }));\n }\n }\n return result;\n};\nProgramConfiguration.prototype.getPaintVertexBuffers = function getPaintVertexBuffers() {\n return this._buffers;\n};\nProgramConfiguration.prototype.getUniforms = function getUniforms(context, locations) {\n var uniforms = [];\n for (var property in this.binders) {\n var binder = this.binders[property];\n if (binder instanceof ConstantBinder || binder instanceof CrossFadedConstantBinder || binder instanceof CompositeExpressionBinder) {\n for (var i = 0, list = binder.uniformNames; i < list.length; i += 1) {\n var name = list[i];\n if (locations[name]) {\n var binding = binder.getBinding(context, locations[name], name);\n uniforms.push({\n name: name,\n property: property,\n binding: binding\n });\n }\n }\n }\n }\n return uniforms;\n};\nProgramConfiguration.prototype.setUniforms = function setUniforms(context, binderUniforms, properties, globals) {\n for (var i = 0, list = binderUniforms; i < list.length; i += 1) {\n var ref = list[i];\n var name = ref.name;\n var property = ref.property;\n var binding = ref.binding;\n this.binders[property].setUniform(binding, globals, properties.get(property), name);\n }\n};\nProgramConfiguration.prototype.updatePaintBuffers = function updatePaintBuffers(crossfade) {\n this._buffers = [];\n for (var property in this.binders) {\n var binder = this.binders[property];\n if (crossfade && binder instanceof CrossFadedCompositeBinder) {\n var patternVertexBuffer = crossfade.fromScale === 2 ? binder.zoomInPaintVertexBuffer : binder.zoomOutPaintVertexBuffer;\n if (patternVertexBuffer) {\n this._buffers.push(patternVertexBuffer);\n }\n } else if ((binder instanceof SourceExpressionBinder || binder instanceof CompositeExpressionBinder) && binder.paintVertexBuffer) {\n this._buffers.push(binder.paintVertexBuffer);\n }\n }\n};\nProgramConfiguration.prototype.upload = function upload(context) {\n for (var property in this.binders) {\n var binder = this.binders[property];\n if (binder instanceof SourceExpressionBinder || binder instanceof CompositeExpressionBinder || binder instanceof CrossFadedCompositeBinder) {\n binder.upload(context);\n }\n }\n this.updatePaintBuffers();\n};\nProgramConfiguration.prototype.destroy = function destroy() {\n for (var property in this.binders) {\n var binder = this.binders[property];\n if (binder instanceof SourceExpressionBinder || binder instanceof CompositeExpressionBinder || binder instanceof CrossFadedCompositeBinder) {\n binder.destroy();\n }\n }\n};\nvar ProgramConfigurationSet = function ProgramConfigurationSet(layoutAttributes, layers, zoom, filterProperties) {\n if (filterProperties === void 0)\n filterProperties = function () {\n return true;\n };\n this.programConfigurations = {};\n for (var i = 0, list = layers; i < list.length; i += 1) {\n var layer = list[i];\n this.programConfigurations[layer.id] = new ProgramConfiguration(layer, zoom, filterProperties, layoutAttributes);\n }\n this.needsUpload = false;\n this._featureMap = new FeaturePositionMap();\n this._bufferOffset = 0;\n};\nProgramConfigurationSet.prototype.populatePaintArrays = function populatePaintArrays(length, feature, index, imagePositions, canonical, formattedSection) {\n for (var key in this.programConfigurations) {\n this.programConfigurations[key].populatePaintArrays(length, feature, imagePositions, canonical, formattedSection);\n }\n if (feature.id !== undefined) {\n this._featureMap.add(feature.id, index, this._bufferOffset, length);\n }\n this._bufferOffset = length;\n this.needsUpload = true;\n};\nProgramConfigurationSet.prototype.updatePaintArrays = function updatePaintArrays(featureStates, vtLayer, layers, imagePositions) {\n for (var i = 0, list = layers; i < list.length; i += 1) {\n var layer = list[i];\n this.needsUpload = this.programConfigurations[layer.id].updatePaintArrays(featureStates, this._featureMap, vtLayer, layer, imagePositions) || this.needsUpload;\n }\n};\nProgramConfigurationSet.prototype.get = function get(layerId) {\n return this.programConfigurations[layerId];\n};\nProgramConfigurationSet.prototype.upload = function upload(context) {\n if (!this.needsUpload) {\n return;\n }\n for (var layerId in this.programConfigurations) {\n this.programConfigurations[layerId].upload(context);\n }\n this.needsUpload = false;\n};\nProgramConfigurationSet.prototype.destroy = function destroy() {\n for (var layerId in this.programConfigurations) {\n this.programConfigurations[layerId].destroy();\n }\n};\nfunction paintAttributeNames(property, type) {\n var attributeNameExceptions = {\n 'text-opacity': ['opacity'],\n 'icon-opacity': ['opacity'],\n 'text-color': ['fill_color'],\n 'icon-color': ['fill_color'],\n 'text-halo-color': ['halo_color'],\n 'icon-halo-color': ['halo_color'],\n 'text-halo-blur': ['halo_blur'],\n 'icon-halo-blur': ['halo_blur'],\n 'text-halo-width': ['halo_width'],\n 'icon-halo-width': ['halo_width'],\n 'line-gap-width': ['gapwidth'],\n 'line-pattern': [\n 'pattern_to',\n 'pattern_from',\n 'pixel_ratio_to',\n 'pixel_ratio_from'\n ],\n 'fill-pattern': [\n 'pattern_to',\n 'pattern_from',\n 'pixel_ratio_to',\n 'pixel_ratio_from'\n ],\n 'fill-extrusion-pattern': [\n 'pattern_to',\n 'pattern_from',\n 'pixel_ratio_to',\n 'pixel_ratio_from'\n ]\n };\n return attributeNameExceptions[property] || [property.replace(type + '-', '').replace(/-/g, '_')];\n}\nfunction getLayoutException(property) {\n var propertyExceptions = {\n 'line-pattern': {\n 'source': StructArrayLayout8ui2ub18,\n 'composite': StructArrayLayout8ui2ub18\n },\n 'fill-pattern': {\n 'source': StructArrayLayout8ui2ub18,\n 'composite': StructArrayLayout8ui2ub18\n },\n 'fill-extrusion-pattern': {\n 'source': StructArrayLayout8ui2ub18,\n 'composite': StructArrayLayout8ui2ub18\n }\n };\n return propertyExceptions[property];\n}\nfunction layoutType(property, type, binderType) {\n var defaultLayouts = {\n 'color': {\n 'source': StructArrayLayout2f8,\n 'composite': StructArrayLayout4f16\n },\n 'number': {\n 'source': StructArrayLayout1f4,\n 'composite': StructArrayLayout2f8\n }\n };\n var layoutException = getLayoutException(property);\n return layoutException && layoutException[binderType] || defaultLayouts[type][binderType];\n}\nregister('ConstantBinder', ConstantBinder);\nregister('CrossFadedConstantBinder', CrossFadedConstantBinder);\nregister('SourceExpressionBinder', SourceExpressionBinder);\nregister('CrossFadedCompositeBinder', CrossFadedCompositeBinder);\nregister('CompositeExpressionBinder', CompositeExpressionBinder);\nregister('ProgramConfiguration', ProgramConfiguration, { omit: ['_buffers'] });\nregister('ProgramConfigurationSet', ProgramConfigurationSet);\n\nvar EXTENT$1 = 8192;\n\nfunction createBounds(bits) {\n return {\n min: -1 * Math.pow(2, bits - 1),\n max: Math.pow(2, bits - 1) - 1\n };\n}\nvar bounds = createBounds(15);\nfunction loadGeometry(feature) {\n var scale = EXTENT$1 / feature.extent;\n var geometry = feature.loadGeometry();\n for (var r = 0; r < geometry.length; r++) {\n var ring = geometry[r];\n for (var p = 0; p < ring.length; p++) {\n var point = ring[p];\n point.x = Math.round(point.x * scale);\n point.y = Math.round(point.y * scale);\n if (point.x < bounds.min || point.x > bounds.max || point.y < bounds.min || point.y > bounds.max) {\n warnOnce('Geometry exceeds allowed extent, reduce your vector tile buffer size');\n point.x = clamp(point.x, bounds.min, bounds.max);\n point.y = clamp(point.y, bounds.min, bounds.max);\n }\n }\n }\n return geometry;\n}\n\nfunction addCircleVertex(layoutVertexArray, x, y, extrudeX, extrudeY) {\n layoutVertexArray.emplaceBack(x * 2 + (extrudeX + 1) / 2, y * 2 + (extrudeY + 1) / 2);\n}\nvar CircleBucket = function CircleBucket(options) {\n this.zoom = options.zoom;\n this.overscaling = options.overscaling;\n this.layers = options.layers;\n this.layerIds = this.layers.map(function (layer) {\n return layer.id;\n });\n this.index = options.index;\n this.hasPattern = false;\n this.layoutVertexArray = new StructArrayLayout2i4();\n this.indexArray = new StructArrayLayout3ui6();\n this.segments = new SegmentVector();\n this.programConfigurations = new ProgramConfigurationSet(members, options.layers, options.zoom);\n this.stateDependentLayerIds = this.layers.filter(function (l) {\n return l.isStateDependent();\n }).map(function (l) {\n return l.id;\n });\n};\nCircleBucket.prototype.populate = function populate(features, options, canonical) {\n var styleLayer = this.layers[0];\n var bucketFeatures = [];\n var circleSortKey = null;\n if (styleLayer.type === 'circle') {\n circleSortKey = styleLayer.layout.get('circle-sort-key');\n }\n for (var i = 0, list = features; i < list.length; i += 1) {\n var ref = list[i];\n var feature = ref.feature;\n var id = ref.id;\n var index = ref.index;\n var sourceLayerIndex = ref.sourceLayerIndex;\n var needGeometry = this.layers[0]._featureFilter.needGeometry;\n var evaluationFeature = {\n type: feature.type,\n id: id,\n properties: feature.properties,\n geometry: needGeometry ? loadGeometry(feature) : []\n };\n if (!this.layers[0]._featureFilter.filter(new EvaluationParameters(this.zoom), evaluationFeature, canonical)) {\n continue;\n }\n if (!needGeometry) {\n evaluationFeature.geometry = loadGeometry(feature);\n }\n var sortKey = circleSortKey ? circleSortKey.evaluate(evaluationFeature, {}, canonical) : undefined;\n var bucketFeature = {\n id: id,\n properties: feature.properties,\n type: feature.type,\n sourceLayerIndex: sourceLayerIndex,\n index: index,\n geometry: evaluationFeature.geometry,\n patterns: {},\n sortKey: sortKey\n };\n bucketFeatures.push(bucketFeature);\n }\n if (circleSortKey) {\n bucketFeatures.sort(function (a, b) {\n return a.sortKey - b.sortKey;\n });\n }\n for (var i$1 = 0, list$1 = bucketFeatures; i$1 < list$1.length; i$1 += 1) {\n var bucketFeature$1 = list$1[i$1];\n var ref$1 = bucketFeature$1;\n var geometry = ref$1.geometry;\n var index$1 = ref$1.index;\n var sourceLayerIndex$1 = ref$1.sourceLayerIndex;\n var feature$1 = features[index$1].feature;\n this.addFeature(bucketFeature$1, geometry, index$1, canonical);\n options.featureIndex.insert(feature$1, geometry, index$1, sourceLayerIndex$1, this.index);\n }\n};\nCircleBucket.prototype.update = function update(states, vtLayer, imagePositions) {\n if (!this.stateDependentLayers.length) {\n return;\n }\n this.programConfigurations.updatePaintArrays(states, vtLayer, this.stateDependentLayers, imagePositions);\n};\nCircleBucket.prototype.isEmpty = function isEmpty() {\n return this.layoutVertexArray.length === 0;\n};\nCircleBucket.prototype.uploadPending = function uploadPending() {\n return !this.uploaded || this.programConfigurations.needsUpload;\n};\nCircleBucket.prototype.upload = function upload(context) {\n if (!this.uploaded) {\n this.layoutVertexBuffer = context.createVertexBuffer(this.layoutVertexArray, members);\n this.indexBuffer = context.createIndexBuffer(this.indexArray);\n }\n this.programConfigurations.upload(context);\n this.uploaded = true;\n};\nCircleBucket.prototype.destroy = function destroy() {\n if (!this.layoutVertexBuffer) {\n return;\n }\n this.layoutVertexBuffer.destroy();\n this.indexBuffer.destroy();\n this.programConfigurations.destroy();\n this.segments.destroy();\n};\nCircleBucket.prototype.addFeature = function addFeature(feature, geometry, index, canonical) {\n for (var i$1 = 0, list$1 = geometry; i$1 < list$1.length; i$1 += 1) {\n var ring = list$1[i$1];\n for (var i = 0, list = ring; i < list.length; i += 1) {\n var point = list[i];\n var x = point.x;\n var y = point.y;\n if (x < 0 || x >= EXTENT$1 || y < 0 || y >= EXTENT$1) {\n continue;\n }\n var segment = this.segments.prepareSegment(4, this.layoutVertexArray, this.indexArray, feature.sortKey);\n var index$1 = segment.vertexLength;\n addCircleVertex(this.layoutVertexArray, x, y, -1, -1);\n addCircleVertex(this.layoutVertexArray, x, y, 1, -1);\n addCircleVertex(this.layoutVertexArray, x, y, 1, 1);\n addCircleVertex(this.layoutVertexArray, x, y, -1, 1);\n this.indexArray.emplaceBack(index$1, index$1 + 1, index$1 + 2);\n this.indexArray.emplaceBack(index$1, index$1 + 3, index$1 + 2);\n segment.vertexLength += 4;\n segment.primitiveLength += 2;\n }\n }\n this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length, feature, index, {}, canonical);\n};\nregister('CircleBucket', CircleBucket, { omit: ['layers'] });\n\nfunction polygonIntersectsPolygon(polygonA, polygonB) {\n for (var i = 0; i < polygonA.length; i++) {\n if (polygonContainsPoint(polygonB, polygonA[i])) {\n return true;\n }\n }\n for (var i$1 = 0; i$1 < polygonB.length; i$1++) {\n if (polygonContainsPoint(polygonA, polygonB[i$1])) {\n return true;\n }\n }\n if (lineIntersectsLine(polygonA, polygonB)) {\n return true;\n }\n return false;\n}\nfunction polygonIntersectsBufferedPoint(polygon, point, radius) {\n if (polygonContainsPoint(polygon, point)) {\n return true;\n }\n if (pointIntersectsBufferedLine(point, polygon, radius)) {\n return true;\n }\n return false;\n}\nfunction polygonIntersectsMultiPolygon(polygon, multiPolygon) {\n if (polygon.length === 1) {\n return multiPolygonContainsPoint(multiPolygon, polygon[0]);\n }\n for (var m = 0; m < multiPolygon.length; m++) {\n var ring = multiPolygon[m];\n for (var n = 0; n < ring.length; n++) {\n if (polygonContainsPoint(polygon, ring[n])) {\n return true;\n }\n }\n }\n for (var i = 0; i < polygon.length; i++) {\n if (multiPolygonContainsPoint(multiPolygon, polygon[i])) {\n return true;\n }\n }\n for (var k = 0; k < multiPolygon.length; k++) {\n if (lineIntersectsLine(polygon, multiPolygon[k])) {\n return true;\n }\n }\n return false;\n}\nfunction polygonIntersectsBufferedMultiLine(polygon, multiLine, radius) {\n for (var i = 0; i < multiLine.length; i++) {\n var line = multiLine[i];\n if (polygon.length >= 3) {\n for (var k = 0; k < line.length; k++) {\n if (polygonContainsPoint(polygon, line[k])) {\n return true;\n }\n }\n }\n if (lineIntersectsBufferedLine(polygon, line, radius)) {\n return true;\n }\n }\n return false;\n}\nfunction lineIntersectsBufferedLine(lineA, lineB, radius) {\n if (lineA.length > 1) {\n if (lineIntersectsLine(lineA, lineB)) {\n return true;\n }\n for (var j = 0; j < lineB.length; j++) {\n if (pointIntersectsBufferedLine(lineB[j], lineA, radius)) {\n return true;\n }\n }\n }\n for (var k = 0; k < lineA.length; k++) {\n if (pointIntersectsBufferedLine(lineA[k], lineB, radius)) {\n return true;\n }\n }\n return false;\n}\nfunction lineIntersectsLine(lineA, lineB) {\n if (lineA.length === 0 || lineB.length === 0) {\n return false;\n }\n for (var i = 0; i < lineA.length - 1; i++) {\n var a0 = lineA[i];\n var a1 = lineA[i + 1];\n for (var j = 0; j < lineB.length - 1; j++) {\n var b0 = lineB[j];\n var b1 = lineB[j + 1];\n if (lineSegmentIntersectsLineSegment(a0, a1, b0, b1)) {\n return true;\n }\n }\n }\n return false;\n}\nfunction lineSegmentIntersectsLineSegment(a0, a1, b0, b1) {\n return isCounterClockwise(a0, b0, b1) !== isCounterClockwise(a1, b0, b1) && isCounterClockwise(a0, a1, b0) !== isCounterClockwise(a0, a1, b1);\n}\nfunction pointIntersectsBufferedLine(p, line, radius) {\n var radiusSquared = radius * radius;\n if (line.length === 1) {\n return p.distSqr(line[0]) < radiusSquared;\n }\n for (var i = 1; i < line.length; i++) {\n var v = line[i - 1], w = line[i];\n if (distToSegmentSquared(p, v, w) < radiusSquared) {\n return true;\n }\n }\n return false;\n}\nfunction distToSegmentSquared(p, v, w) {\n var l2 = v.distSqr(w);\n if (l2 === 0) {\n return p.distSqr(v);\n }\n var t = ((p.x - v.x) * (w.x - v.x) + (p.y - v.y) * (w.y - v.y)) / l2;\n if (t < 0) {\n return p.distSqr(v);\n }\n if (t > 1) {\n return p.distSqr(w);\n }\n return p.distSqr(w.sub(v)._mult(t)._add(v));\n}\nfunction multiPolygonContainsPoint(rings, p) {\n var c = false, ring, p1, p2;\n for (var k = 0; k < rings.length; k++) {\n ring = rings[k];\n for (var i = 0, j = ring.length - 1; i < ring.length; j = i++) {\n p1 = ring[i];\n p2 = ring[j];\n if (p1.y > p.y !== p2.y > p.y && p.x < (p2.x - p1.x) * (p.y - p1.y) / (p2.y - p1.y) + p1.x) {\n c = !c;\n }\n }\n }\n return c;\n}\nfunction polygonContainsPoint(ring, p) {\n var c = false;\n for (var i = 0, j = ring.length - 1; i < ring.length; j = i++) {\n var p1 = ring[i];\n var p2 = ring[j];\n if (p1.y > p.y !== p2.y > p.y && p.x < (p2.x - p1.x) * (p.y - p1.y) / (p2.y - p1.y) + p1.x) {\n c = !c;\n }\n }\n return c;\n}\nfunction polygonIntersectsBox(ring, boxX1, boxY1, boxX2, boxY2) {\n for (var i$1 = 0, list = ring; i$1 < list.length; i$1 += 1) {\n var p = list[i$1];\n if (boxX1 <= p.x && boxY1 <= p.y && boxX2 >= p.x && boxY2 >= p.y) {\n return true;\n }\n }\n var corners = [\n new pointGeometry(boxX1, boxY1),\n new pointGeometry(boxX1, boxY2),\n new pointGeometry(boxX2, boxY2),\n new pointGeometry(boxX2, boxY1)\n ];\n if (ring.length > 2) {\n for (var i$2 = 0, list$1 = corners; i$2 < list$1.length; i$2 += 1) {\n var corner = list$1[i$2];\n if (polygonContainsPoint(ring, corner)) {\n return true;\n }\n }\n }\n for (var i = 0; i < ring.length - 1; i++) {\n var p1 = ring[i];\n var p2 = ring[i + 1];\n if (edgeIntersectsBox(p1, p2, corners)) {\n return true;\n }\n }\n return false;\n}\nfunction edgeIntersectsBox(e1, e2, corners) {\n var tl = corners[0];\n var br = corners[2];\n if (e1.x < tl.x && e2.x < tl.x || e1.x > br.x && e2.x > br.x || e1.y < tl.y && e2.y < tl.y || e1.y > br.y && e2.y > br.y) {\n return false;\n }\n var dir = isCounterClockwise(e1, e2, corners[0]);\n return dir !== isCounterClockwise(e1, e2, corners[1]) || dir !== isCounterClockwise(e1, e2, corners[2]) || dir !== isCounterClockwise(e1, e2, corners[3]);\n}\n\nfunction getMaximumPaintValue(property, layer, bucket) {\n var value = layer.paint.get(property).value;\n if (value.kind === 'constant') {\n return value.value;\n } else {\n return bucket.programConfigurations.get(layer.id).getMaxValue(property);\n }\n}\nfunction translateDistance(translate) {\n return Math.sqrt(translate[0] * translate[0] + translate[1] * translate[1]);\n}\nfunction translate(queryGeometry, translate, translateAnchor, bearing, pixelsToTileUnits) {\n if (!translate[0] && !translate[1]) {\n return queryGeometry;\n }\n var pt = pointGeometry.convert(translate)._mult(pixelsToTileUnits);\n if (translateAnchor === 'viewport') {\n pt._rotate(-bearing);\n }\n var translated = [];\n for (var i = 0; i < queryGeometry.length; i++) {\n var point = queryGeometry[i];\n translated.push(point.sub(pt));\n }\n return translated;\n}\n\nvar layout$2 = new Properties({ 'circle-sort-key': new DataDrivenProperty(spec['layout_circle']['circle-sort-key']) });\nvar paint$1 = new Properties({\n 'circle-radius': new DataDrivenProperty(spec['paint_circle']['circle-radius']),\n 'circle-color': new DataDrivenProperty(spec['paint_circle']['circle-color']),\n 'circle-blur': new DataDrivenProperty(spec['paint_circle']['circle-blur']),\n 'circle-opacity': new DataDrivenProperty(spec['paint_circle']['circle-opacity']),\n 'circle-translate': new DataConstantProperty(spec['paint_circle']['circle-translate']),\n 'circle-translate-anchor': new DataConstantProperty(spec['paint_circle']['circle-translate-anchor']),\n 'circle-pitch-scale': new DataConstantProperty(spec['paint_circle']['circle-pitch-scale']),\n 'circle-pitch-alignment': new DataConstantProperty(spec['paint_circle']['circle-pitch-alignment']),\n 'circle-stroke-width': new DataDrivenProperty(spec['paint_circle']['circle-stroke-width']),\n 'circle-stroke-color': new DataDrivenProperty(spec['paint_circle']['circle-stroke-color']),\n 'circle-stroke-opacity': new DataDrivenProperty(spec['paint_circle']['circle-stroke-opacity'])\n});\nvar properties = {\n paint: paint$1,\n layout: layout$2\n};\n\nvar ARRAY_TYPE = typeof Float32Array !== 'undefined' ? Float32Array : Array;\nif (!Math.hypot) {\n Math.hypot = function () {\n var arguments$1 = arguments;\n var y = 0, i = arguments.length;\n while (i--) {\n y += arguments$1[i] * arguments$1[i];\n }\n return Math.sqrt(y);\n };\n}\n\nfunction create() {\n var out = new ARRAY_TYPE(4);\n if (ARRAY_TYPE != Float32Array) {\n out[1] = 0;\n out[2] = 0;\n }\n out[0] = 1;\n out[3] = 1;\n return out;\n}\nfunction rotate(out, a, rad) {\n var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3];\n var s = Math.sin(rad);\n var c = Math.cos(rad);\n out[0] = a0 * c + a2 * s;\n out[1] = a1 * c + a3 * s;\n out[2] = a0 * -s + a2 * c;\n out[3] = a1 * -s + a3 * c;\n return out;\n}\n\nfunction create$1() {\n var out = new ARRAY_TYPE(9);\n if (ARRAY_TYPE != Float32Array) {\n out[1] = 0;\n out[2] = 0;\n out[3] = 0;\n out[5] = 0;\n out[6] = 0;\n out[7] = 0;\n }\n out[0] = 1;\n out[4] = 1;\n out[8] = 1;\n return out;\n}\nfunction fromRotation(out, rad) {\n var s = Math.sin(rad), c = Math.cos(rad);\n out[0] = c;\n out[1] = s;\n out[2] = 0;\n out[3] = -s;\n out[4] = c;\n out[5] = 0;\n out[6] = 0;\n out[7] = 0;\n out[8] = 1;\n return out;\n}\n\nfunction create$2() {\n var out = new ARRAY_TYPE(16);\n if (ARRAY_TYPE != Float32Array) {\n out[1] = 0;\n out[2] = 0;\n out[3] = 0;\n out[4] = 0;\n out[6] = 0;\n out[7] = 0;\n out[8] = 0;\n out[9] = 0;\n out[11] = 0;\n out[12] = 0;\n out[13] = 0;\n out[14] = 0;\n }\n out[0] = 1;\n out[5] = 1;\n out[10] = 1;\n out[15] = 1;\n return out;\n}\nfunction clone$1(a) {\n var out = new ARRAY_TYPE(16);\n out[0] = a[0];\n out[1] = a[1];\n out[2] = a[2];\n out[3] = a[3];\n out[4] = a[4];\n out[5] = a[5];\n out[6] = a[6];\n out[7] = a[7];\n out[8] = a[8];\n out[9] = a[9];\n out[10] = a[10];\n out[11] = a[11];\n out[12] = a[12];\n out[13] = a[13];\n out[14] = a[14];\n out[15] = a[15];\n return out;\n}\nfunction identity(out) {\n out[0] = 1;\n out[1] = 0;\n out[2] = 0;\n out[3] = 0;\n out[4] = 0;\n out[5] = 1;\n out[6] = 0;\n out[7] = 0;\n out[8] = 0;\n out[9] = 0;\n out[10] = 1;\n out[11] = 0;\n out[12] = 0;\n out[13] = 0;\n out[14] = 0;\n out[15] = 1;\n return out;\n}\nfunction invert(out, a) {\n var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3];\n var a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7];\n var a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11];\n var a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15];\n var b00 = a00 * a11 - a01 * a10;\n var b01 = a00 * a12 - a02 * a10;\n var b02 = a00 * a13 - a03 * a10;\n var b03 = a01 * a12 - a02 * a11;\n var b04 = a01 * a13 - a03 * a11;\n var b05 = a02 * a13 - a03 * a12;\n var b06 = a20 * a31 - a21 * a30;\n var b07 = a20 * a32 - a22 * a30;\n var b08 = a20 * a33 - a23 * a30;\n var b09 = a21 * a32 - a22 * a31;\n var b10 = a21 * a33 - a23 * a31;\n var b11 = a22 * a33 - a23 * a32;\n var det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06;\n if (!det) {\n return null;\n }\n det = 1 / det;\n out[0] = (a11 * b11 - a12 * b10 + a13 * b09) * det;\n out[1] = (a02 * b10 - a01 * b11 - a03 * b09) * det;\n out[2] = (a31 * b05 - a32 * b04 + a33 * b03) * det;\n out[3] = (a22 * b04 - a21 * b05 - a23 * b03) * det;\n out[4] = (a12 * b08 - a10 * b11 - a13 * b07) * det;\n out[5] = (a00 * b11 - a02 * b08 + a03 * b07) * det;\n out[6] = (a32 * b02 - a30 * b05 - a33 * b01) * det;\n out[7] = (a20 * b05 - a22 * b02 + a23 * b01) * det;\n out[8] = (a10 * b10 - a11 * b08 + a13 * b06) * det;\n out[9] = (a01 * b08 - a00 * b10 - a03 * b06) * det;\n out[10] = (a30 * b04 - a31 * b02 + a33 * b00) * det;\n out[11] = (a21 * b02 - a20 * b04 - a23 * b00) * det;\n out[12] = (a11 * b07 - a10 * b09 - a12 * b06) * det;\n out[13] = (a00 * b09 - a01 * b07 + a02 * b06) * det;\n out[14] = (a31 * b01 - a30 * b03 - a32 * b00) * det;\n out[15] = (a20 * b03 - a21 * b01 + a22 * b00) * det;\n return out;\n}\nfunction multiply(out, a, b) {\n var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3];\n var a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7];\n var a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11];\n var a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15];\n var b0 = b[0], b1 = b[1], b2 = b[2], b3 = b[3];\n out[0] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30;\n out[1] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31;\n out[2] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32;\n out[3] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33;\n b0 = b[4];\n b1 = b[5];\n b2 = b[6];\n b3 = b[7];\n out[4] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30;\n out[5] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31;\n out[6] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32;\n out[7] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33;\n b0 = b[8];\n b1 = b[9];\n b2 = b[10];\n b3 = b[11];\n out[8] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30;\n out[9] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31;\n out[10] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32;\n out[11] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33;\n b0 = b[12];\n b1 = b[13];\n b2 = b[14];\n b3 = b[15];\n out[12] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30;\n out[13] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31;\n out[14] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32;\n out[15] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33;\n return out;\n}\nfunction translate$1(out, a, v) {\n var x = v[0], y = v[1], z = v[2];\n var a00, a01, a02, a03;\n var a10, a11, a12, a13;\n var a20, a21, a22, a23;\n if (a === out) {\n out[12] = a[0] * x + a[4] * y + a[8] * z + a[12];\n out[13] = a[1] * x + a[5] * y + a[9] * z + a[13];\n out[14] = a[2] * x + a[6] * y + a[10] * z + a[14];\n out[15] = a[3] * x + a[7] * y + a[11] * z + a[15];\n } else {\n a00 = a[0];\n a01 = a[1];\n a02 = a[2];\n a03 = a[3];\n a10 = a[4];\n a11 = a[5];\n a12 = a[6];\n a13 = a[7];\n a20 = a[8];\n a21 = a[9];\n a22 = a[10];\n a23 = a[11];\n out[0] = a00;\n out[1] = a01;\n out[2] = a02;\n out[3] = a03;\n out[4] = a10;\n out[5] = a11;\n out[6] = a12;\n out[7] = a13;\n out[8] = a20;\n out[9] = a21;\n out[10] = a22;\n out[11] = a23;\n out[12] = a00 * x + a10 * y + a20 * z + a[12];\n out[13] = a01 * x + a11 * y + a21 * z + a[13];\n out[14] = a02 * x + a12 * y + a22 * z + a[14];\n out[15] = a03 * x + a13 * y + a23 * z + a[15];\n }\n return out;\n}\nfunction scale(out, a, v) {\n var x = v[0], y = v[1], z = v[2];\n out[0] = a[0] * x;\n out[1] = a[1] * x;\n out[2] = a[2] * x;\n out[3] = a[3] * x;\n out[4] = a[4] * y;\n out[5] = a[5] * y;\n out[6] = a[6] * y;\n out[7] = a[7] * y;\n out[8] = a[8] * z;\n out[9] = a[9] * z;\n out[10] = a[10] * z;\n out[11] = a[11] * z;\n out[12] = a[12];\n out[13] = a[13];\n out[14] = a[14];\n out[15] = a[15];\n return out;\n}\nfunction rotateX(out, a, rad) {\n var s = Math.sin(rad);\n var c = Math.cos(rad);\n var a10 = a[4];\n var a11 = a[5];\n var a12 = a[6];\n var a13 = a[7];\n var a20 = a[8];\n var a21 = a[9];\n var a22 = a[10];\n var a23 = a[11];\n if (a !== out) {\n out[0] = a[0];\n out[1] = a[1];\n out[2] = a[2];\n out[3] = a[3];\n out[12] = a[12];\n out[13] = a[13];\n out[14] = a[14];\n out[15] = a[15];\n }\n out[4] = a10 * c + a20 * s;\n out[5] = a11 * c + a21 * s;\n out[6] = a12 * c + a22 * s;\n out[7] = a13 * c + a23 * s;\n out[8] = a20 * c - a10 * s;\n out[9] = a21 * c - a11 * s;\n out[10] = a22 * c - a12 * s;\n out[11] = a23 * c - a13 * s;\n return out;\n}\nfunction rotateZ(out, a, rad) {\n var s = Math.sin(rad);\n var c = Math.cos(rad);\n var a00 = a[0];\n var a01 = a[1];\n var a02 = a[2];\n var a03 = a[3];\n var a10 = a[4];\n var a11 = a[5];\n var a12 = a[6];\n var a13 = a[7];\n if (a !== out) {\n out[8] = a[8];\n out[9] = a[9];\n out[10] = a[10];\n out[11] = a[11];\n out[12] = a[12];\n out[13] = a[13];\n out[14] = a[14];\n out[15] = a[15];\n }\n out[0] = a00 * c + a10 * s;\n out[1] = a01 * c + a11 * s;\n out[2] = a02 * c + a12 * s;\n out[3] = a03 * c + a13 * s;\n out[4] = a10 * c - a00 * s;\n out[5] = a11 * c - a01 * s;\n out[6] = a12 * c - a02 * s;\n out[7] = a13 * c - a03 * s;\n return out;\n}\nfunction perspective(out, fovy, aspect, near, far) {\n var f = 1 / Math.tan(fovy / 2), nf;\n out[0] = f / aspect;\n out[1] = 0;\n out[2] = 0;\n out[3] = 0;\n out[4] = 0;\n out[5] = f;\n out[6] = 0;\n out[7] = 0;\n out[8] = 0;\n out[9] = 0;\n out[11] = -1;\n out[12] = 0;\n out[13] = 0;\n out[15] = 0;\n if (far != null && far !== Infinity) {\n nf = 1 / (near - far);\n out[10] = (far + near) * nf;\n out[14] = 2 * far * near * nf;\n } else {\n out[10] = -1;\n out[14] = -2 * near;\n }\n return out;\n}\nfunction ortho(out, left, right, bottom, top, near, far) {\n var lr = 1 / (left - right);\n var bt = 1 / (bottom - top);\n var nf = 1 / (near - far);\n out[0] = -2 * lr;\n out[1] = 0;\n out[2] = 0;\n out[3] = 0;\n out[4] = 0;\n out[5] = -2 * bt;\n out[6] = 0;\n out[7] = 0;\n out[8] = 0;\n out[9] = 0;\n out[10] = 2 * nf;\n out[11] = 0;\n out[12] = (left + right) * lr;\n out[13] = (top + bottom) * bt;\n out[14] = (far + near) * nf;\n out[15] = 1;\n return out;\n}\nvar mul = multiply;\n\nfunction create$3() {\n var out = new ARRAY_TYPE(3);\n if (ARRAY_TYPE != Float32Array) {\n out[0] = 0;\n out[1] = 0;\n out[2] = 0;\n }\n return out;\n}\nfunction clone$2(a) {\n var out = new ARRAY_TYPE(3);\n out[0] = a[0];\n out[1] = a[1];\n out[2] = a[2];\n return out;\n}\nfunction add(out, a, b) {\n out[0] = a[0] + b[0];\n out[1] = a[1] + b[1];\n out[2] = a[2] + b[2];\n return out;\n}\nfunction subtract(out, a, b) {\n out[0] = a[0] - b[0];\n out[1] = a[1] - b[1];\n out[2] = a[2] - b[2];\n return out;\n}\nfunction scale$1(out, a, b) {\n out[0] = a[0] * b;\n out[1] = a[1] * b;\n out[2] = a[2] * b;\n return out;\n}\nfunction normalize(out, a) {\n var x = a[0];\n var y = a[1];\n var z = a[2];\n var len = x * x + y * y + z * z;\n if (len > 0) {\n len = 1 / Math.sqrt(len);\n }\n out[0] = a[0] * len;\n out[1] = a[1] * len;\n out[2] = a[2] * len;\n return out;\n}\nfunction dot(a, b) {\n return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];\n}\nfunction cross(out, a, b) {\n var ax = a[0], ay = a[1], az = a[2];\n var bx = b[0], by = b[1], bz = b[2];\n out[0] = ay * bz - az * by;\n out[1] = az * bx - ax * bz;\n out[2] = ax * by - ay * bx;\n return out;\n}\nfunction transformMat3(out, a, m) {\n var x = a[0], y = a[1], z = a[2];\n out[0] = x * m[0] + y * m[3] + z * m[6];\n out[1] = x * m[1] + y * m[4] + z * m[7];\n out[2] = x * m[2] + y * m[5] + z * m[8];\n return out;\n}\nvar sub = subtract;\nvar forEach = function () {\n var vec = create$3();\n return function (a, stride, offset, count, fn, arg) {\n var i, l;\n if (!stride) {\n stride = 3;\n }\n if (!offset) {\n offset = 0;\n }\n if (count) {\n l = Math.min(count * stride + offset, a.length);\n } else {\n l = a.length;\n }\n for (i = offset; i < l; i += stride) {\n vec[0] = a[i];\n vec[1] = a[i + 1];\n vec[2] = a[i + 2];\n fn(vec, vec, arg);\n a[i] = vec[0];\n a[i + 1] = vec[1];\n a[i + 2] = vec[2];\n }\n return a;\n };\n}();\n\nfunction create$4() {\n var out = new ARRAY_TYPE(4);\n if (ARRAY_TYPE != Float32Array) {\n out[0] = 0;\n out[1] = 0;\n out[2] = 0;\n out[3] = 0;\n }\n return out;\n}\nfunction scale$2(out, a, b) {\n out[0] = a[0] * b;\n out[1] = a[1] * b;\n out[2] = a[2] * b;\n out[3] = a[3] * b;\n return out;\n}\nfunction dot$1(a, b) {\n return a[0] * b[0] + a[1] * b[1] + a[2] * b[2] + a[3] * b[3];\n}\nfunction transformMat4(out, a, m) {\n var x = a[0], y = a[1], z = a[2], w = a[3];\n out[0] = m[0] * x + m[4] * y + m[8] * z + m[12] * w;\n out[1] = m[1] * x + m[5] * y + m[9] * z + m[13] * w;\n out[2] = m[2] * x + m[6] * y + m[10] * z + m[14] * w;\n out[3] = m[3] * x + m[7] * y + m[11] * z + m[15] * w;\n return out;\n}\nvar forEach$1 = function () {\n var vec = create$4();\n return function (a, stride, offset, count, fn, arg) {\n var i, l;\n if (!stride) {\n stride = 4;\n }\n if (!offset) {\n offset = 0;\n }\n if (count) {\n l = Math.min(count * stride + offset, a.length);\n } else {\n l = a.length;\n }\n for (i = offset; i < l; i += stride) {\n vec[0] = a[i];\n vec[1] = a[i + 1];\n vec[2] = a[i + 2];\n vec[3] = a[i + 3];\n fn(vec, vec, arg);\n a[i] = vec[0];\n a[i + 1] = vec[1];\n a[i + 2] = vec[2];\n a[i + 3] = vec[3];\n }\n return a;\n };\n}();\n\nfunction create$5() {\n var out = new ARRAY_TYPE(2);\n if (ARRAY_TYPE != Float32Array) {\n out[0] = 0;\n out[1] = 0;\n }\n return out;\n}\nfunction squaredLength(a) {\n var x = a[0], y = a[1];\n return x * x + y * y;\n}\nvar sqrLen = squaredLength;\nvar forEach$2 = function () {\n var vec = create$5();\n return function (a, stride, offset, count, fn, arg) {\n var i, l;\n if (!stride) {\n stride = 2;\n }\n if (!offset) {\n offset = 0;\n }\n if (count) {\n l = Math.min(count * stride + offset, a.length);\n } else {\n l = a.length;\n }\n for (i = offset; i < l; i += stride) {\n vec[0] = a[i];\n vec[1] = a[i + 1];\n fn(vec, vec, arg);\n a[i] = vec[0];\n a[i + 1] = vec[1];\n }\n return a;\n };\n}();\n\nvar CircleStyleLayer = function (StyleLayer) {\n function CircleStyleLayer(layer) {\n StyleLayer.call(this, layer, properties);\n }\n if (StyleLayer)\n CircleStyleLayer.__proto__ = StyleLayer;\n CircleStyleLayer.prototype = Object.create(StyleLayer && StyleLayer.prototype);\n CircleStyleLayer.prototype.constructor = CircleStyleLayer;\n CircleStyleLayer.prototype.createBucket = function createBucket(parameters) {\n return new CircleBucket(parameters);\n };\n CircleStyleLayer.prototype.queryRadius = function queryRadius(bucket) {\n var circleBucket = bucket;\n return getMaximumPaintValue('circle-radius', this, circleBucket) + getMaximumPaintValue('circle-stroke-width', this, circleBucket) + translateDistance(this.paint.get('circle-translate'));\n };\n CircleStyleLayer.prototype.queryIntersectsFeature = function queryIntersectsFeature(queryGeometry, feature, featureState, geometry, zoom, transform, pixelsToTileUnits, pixelPosMatrix) {\n var translatedPolygon = translate(queryGeometry, this.paint.get('circle-translate'), this.paint.get('circle-translate-anchor'), transform.angle, pixelsToTileUnits);\n var radius = this.paint.get('circle-radius').evaluate(feature, featureState);\n var stroke = this.paint.get('circle-stroke-width').evaluate(feature, featureState);\n var size = radius + stroke;\n var alignWithMap = this.paint.get('circle-pitch-alignment') === 'map';\n var transformedPolygon = alignWithMap ? translatedPolygon : projectQueryGeometry(translatedPolygon, pixelPosMatrix);\n var transformedSize = alignWithMap ? size * pixelsToTileUnits : size;\n for (var i$1 = 0, list$1 = geometry; i$1 < list$1.length; i$1 += 1) {\n var ring = list$1[i$1];\n for (var i = 0, list = ring; i < list.length; i += 1) {\n var point = list[i];\n var transformedPoint = alignWithMap ? point : projectPoint(point, pixelPosMatrix);\n var adjustedSize = transformedSize;\n var projectedCenter = transformMat4([], [\n point.x,\n point.y,\n 0,\n 1\n ], pixelPosMatrix);\n if (this.paint.get('circle-pitch-scale') === 'viewport' && this.paint.get('circle-pitch-alignment') === 'map') {\n adjustedSize *= projectedCenter[3] / transform.cameraToCenterDistance;\n } else if (this.paint.get('circle-pitch-scale') === 'map' && this.paint.get('circle-pitch-alignment') === 'viewport') {\n adjustedSize *= transform.cameraToCenterDistance / projectedCenter[3];\n }\n if (polygonIntersectsBufferedPoint(transformedPolygon, transformedPoint, adjustedSize)) {\n return true;\n }\n }\n }\n return false;\n };\n return CircleStyleLayer;\n}(StyleLayer);\nfunction projectPoint(p, pixelPosMatrix) {\n var point = transformMat4([], [\n p.x,\n p.y,\n 0,\n 1\n ], pixelPosMatrix);\n return new pointGeometry(point[0] / point[3], point[1] / point[3]);\n}\nfunction projectQueryGeometry(queryGeometry, pixelPosMatrix) {\n return queryGeometry.map(function (p) {\n return projectPoint(p, pixelPosMatrix);\n });\n}\n\nvar HeatmapBucket = function (CircleBucket) {\n function HeatmapBucket() {\n CircleBucket.apply(this, arguments);\n }\n if (CircleBucket)\n HeatmapBucket.__proto__ = CircleBucket;\n HeatmapBucket.prototype = Object.create(CircleBucket && CircleBucket.prototype);\n HeatmapBucket.prototype.constructor = HeatmapBucket;\n return HeatmapBucket;\n}(CircleBucket);\nregister('HeatmapBucket', HeatmapBucket, { omit: ['layers'] });\n\nfunction createImage(image, ref, channels, data) {\n var width = ref.width;\n var height = ref.height;\n if (!data) {\n data = new Uint8Array(width * height * channels);\n } else if (data instanceof Uint8ClampedArray) {\n data = new Uint8Array(data.buffer);\n } else if (data.length !== width * height * channels) {\n throw new RangeError('mismatched image size');\n }\n image.width = width;\n image.height = height;\n image.data = data;\n return image;\n}\nfunction resizeImage(image, ref, channels) {\n var width = ref.width;\n var height = ref.height;\n if (width === image.width && height === image.height) {\n return;\n }\n var newImage = createImage({}, {\n width: width,\n height: height\n }, channels);\n copyImage(image, newImage, {\n x: 0,\n y: 0\n }, {\n x: 0,\n y: 0\n }, {\n width: Math.min(image.width, width),\n height: Math.min(image.height, height)\n }, channels);\n image.width = width;\n image.height = height;\n image.data = newImage.data;\n}\nfunction copyImage(srcImg, dstImg, srcPt, dstPt, size, channels) {\n if (size.width === 0 || size.height === 0) {\n return dstImg;\n }\n if (size.width > srcImg.width || size.height > srcImg.height || srcPt.x > srcImg.width - size.width || srcPt.y > srcImg.height - size.height) {\n throw new RangeError('out of range source coordinates for image copy');\n }\n if (size.width > dstImg.width || size.height > dstImg.height || dstPt.x > dstImg.width - size.width || dstPt.y > dstImg.height - size.height) {\n throw new RangeError('out of range destination coordinates for image copy');\n }\n var srcData = srcImg.data;\n var dstData = dstImg.data;\n for (var y = 0; y < size.height; y++) {\n var srcOffset = ((srcPt.y + y) * srcImg.width + srcPt.x) * channels;\n var dstOffset = ((dstPt.y + y) * dstImg.width + dstPt.x) * channels;\n for (var i = 0; i < size.width * channels; i++) {\n dstData[dstOffset + i] = srcData[srcOffset + i];\n }\n }\n return dstImg;\n}\nvar AlphaImage = function AlphaImage(size, data) {\n createImage(this, size, 1, data);\n};\nAlphaImage.prototype.resize = function resize(size) {\n resizeImage(this, size, 1);\n};\nAlphaImage.prototype.clone = function clone() {\n return new AlphaImage({\n width: this.width,\n height: this.height\n }, new Uint8Array(this.data));\n};\nAlphaImage.copy = function copy(srcImg, dstImg, srcPt, dstPt, size) {\n copyImage(srcImg, dstImg, srcPt, dstPt, size, 1);\n};\nvar RGBAImage = function RGBAImage(size, data) {\n createImage(this, size, 4, data);\n};\nRGBAImage.prototype.resize = function resize(size) {\n resizeImage(this, size, 4);\n};\nRGBAImage.prototype.replace = function replace(data, copy) {\n if (copy) {\n this.data.set(data);\n } else if (data instanceof Uint8ClampedArray) {\n this.data = new Uint8Array(data.buffer);\n } else {\n this.data = data;\n }\n};\nRGBAImage.prototype.clone = function clone() {\n return new RGBAImage({\n width: this.width,\n height: this.height\n }, new Uint8Array(this.data));\n};\nRGBAImage.copy = function copy(srcImg, dstImg, srcPt, dstPt, size) {\n copyImage(srcImg, dstImg, srcPt, dstPt, size, 4);\n};\nregister('AlphaImage', AlphaImage);\nregister('RGBAImage', RGBAImage);\n\nvar paint$2 = new Properties({\n 'heatmap-radius': new DataDrivenProperty(spec['paint_heatmap']['heatmap-radius']),\n 'heatmap-weight': new DataDrivenProperty(spec['paint_heatmap']['heatmap-weight']),\n 'heatmap-intensity': new DataConstantProperty(spec['paint_heatmap']['heatmap-intensity']),\n 'heatmap-color': new ColorRampProperty(spec['paint_heatmap']['heatmap-color']),\n 'heatmap-opacity': new DataConstantProperty(spec['paint_heatmap']['heatmap-opacity'])\n});\nvar properties$1 = { paint: paint$2 };\n\nfunction renderColorRamp(expression, colorRampEvaluationParameter) {\n var colorRampData = new Uint8Array(256 * 4);\n var evaluationGlobals = {};\n for (var i = 0, j = 0; i < 256; i++, j += 4) {\n evaluationGlobals[colorRampEvaluationParameter] = i / 255;\n var pxColor = expression.evaluate(evaluationGlobals);\n colorRampData[j + 0] = Math.floor(pxColor.r * 255 / pxColor.a);\n colorRampData[j + 1] = Math.floor(pxColor.g * 255 / pxColor.a);\n colorRampData[j + 2] = Math.floor(pxColor.b * 255 / pxColor.a);\n colorRampData[j + 3] = Math.floor(pxColor.a * 255);\n }\n return new RGBAImage({\n width: 256,\n height: 1\n }, colorRampData);\n}\n\nvar HeatmapStyleLayer = function (StyleLayer) {\n function HeatmapStyleLayer(layer) {\n StyleLayer.call(this, layer, properties$1);\n this._updateColorRamp();\n }\n if (StyleLayer)\n HeatmapStyleLayer.__proto__ = StyleLayer;\n HeatmapStyleLayer.prototype = Object.create(StyleLayer && StyleLayer.prototype);\n HeatmapStyleLayer.prototype.constructor = HeatmapStyleLayer;\n HeatmapStyleLayer.prototype.createBucket = function createBucket(options) {\n return new HeatmapBucket(options);\n };\n HeatmapStyleLayer.prototype._handleSpecialPaintPropertyUpdate = function _handleSpecialPaintPropertyUpdate(name) {\n if (name === 'heatmap-color') {\n this._updateColorRamp();\n }\n };\n HeatmapStyleLayer.prototype._updateColorRamp = function _updateColorRamp() {\n var expression = this._transitionablePaint._values['heatmap-color'].value.expression;\n this.colorRamp = renderColorRamp(expression, 'heatmapDensity');\n this.colorRampTexture = null;\n };\n HeatmapStyleLayer.prototype.resize = function resize() {\n if (this.heatmapFbo) {\n this.heatmapFbo.destroy();\n this.heatmapFbo = null;\n }\n };\n HeatmapStyleLayer.prototype.queryRadius = function queryRadius() {\n return 0;\n };\n HeatmapStyleLayer.prototype.queryIntersectsFeature = function queryIntersectsFeature() {\n return false;\n };\n HeatmapStyleLayer.prototype.hasOffscreenPass = function hasOffscreenPass() {\n return this.paint.get('heatmap-opacity') !== 0 && this.visibility !== 'none';\n };\n return HeatmapStyleLayer;\n}(StyleLayer);\n\nvar paint$3 = new Properties({\n 'hillshade-illumination-direction': new DataConstantProperty(spec['paint_hillshade']['hillshade-illumination-direction']),\n 'hillshade-illumination-anchor': new DataConstantProperty(spec['paint_hillshade']['hillshade-illumination-anchor']),\n 'hillshade-exaggeration': new DataConstantProperty(spec['paint_hillshade']['hillshade-exaggeration']),\n 'hillshade-shadow-color': new DataConstantProperty(spec['paint_hillshade']['hillshade-shadow-color']),\n 'hillshade-highlight-color': new DataConstantProperty(spec['paint_hillshade']['hillshade-highlight-color']),\n 'hillshade-accent-color': new DataConstantProperty(spec['paint_hillshade']['hillshade-accent-color'])\n});\nvar properties$2 = { paint: paint$3 };\n\nvar HillshadeStyleLayer = function (StyleLayer) {\n function HillshadeStyleLayer(layer) {\n StyleLayer.call(this, layer, properties$2);\n }\n if (StyleLayer)\n HillshadeStyleLayer.__proto__ = StyleLayer;\n HillshadeStyleLayer.prototype = Object.create(StyleLayer && StyleLayer.prototype);\n HillshadeStyleLayer.prototype.constructor = HillshadeStyleLayer;\n HillshadeStyleLayer.prototype.hasOffscreenPass = function hasOffscreenPass() {\n return this.paint.get('hillshade-exaggeration') !== 0 && this.visibility !== 'none';\n };\n return HillshadeStyleLayer;\n}(StyleLayer);\n\nvar layout$3 = createLayout([{\n name: 'a_pos',\n components: 2,\n type: 'Int16'\n }], 4);\nvar members$1 = layout$3.members;\n\nvar earcut_1 = earcut;\nvar default_1 = earcut;\nfunction earcut(data, holeIndices, dim) {\n dim = dim || 2;\n var hasHoles = holeIndices && holeIndices.length, outerLen = hasHoles ? holeIndices[0] * dim : data.length, outerNode = linkedList(data, 0, outerLen, dim, true), triangles = [];\n if (!outerNode || outerNode.next === outerNode.prev) {\n return triangles;\n }\n var minX, minY, maxX, maxY, x, y, invSize;\n if (hasHoles) {\n outerNode = eliminateHoles(data, holeIndices, outerNode, dim);\n }\n if (data.length > 80 * dim) {\n minX = maxX = data[0];\n minY = maxY = data[1];\n for (var i = dim; i < outerLen; i += dim) {\n x = data[i];\n y = data[i + 1];\n if (x < minX) {\n minX = x;\n }\n if (y < minY) {\n minY = y;\n }\n if (x > maxX) {\n maxX = x;\n }\n if (y > maxY) {\n maxY = y;\n }\n }\n invSize = Math.max(maxX - minX, maxY - minY);\n invSize = invSize !== 0 ? 1 / invSize : 0;\n }\n earcutLinked(outerNode, triangles, dim, minX, minY, invSize);\n return triangles;\n}\nfunction linkedList(data, start, end, dim, clockwise) {\n var i, last;\n if (clockwise === signedArea(data, start, end, dim) > 0) {\n for (i = start; i < end; i += dim) {\n last = insertNode(i, data[i], data[i + 1], last);\n }\n } else {\n for (i = end - dim; i >= start; i -= dim) {\n last = insertNode(i, data[i], data[i + 1], last);\n }\n }\n if (last && equals(last, last.next)) {\n removeNode(last);\n last = last.next;\n }\n return last;\n}\nfunction filterPoints(start, end) {\n if (!start) {\n return start;\n }\n if (!end) {\n end = start;\n }\n var p = start, again;\n do {\n again = false;\n if (!p.steiner && (equals(p, p.next) || area(p.prev, p, p.next) === 0)) {\n removeNode(p);\n p = end = p.prev;\n if (p === p.next) {\n break;\n }\n again = true;\n } else {\n p = p.next;\n }\n } while (again || p !== end);\n return end;\n}\nfunction earcutLinked(ear, triangles, dim, minX, minY, invSize, pass) {\n if (!ear) {\n return;\n }\n if (!pass && invSize) {\n indexCurve(ear, minX, minY, invSize);\n }\n var stop = ear, prev, next;\n while (ear.prev !== ear.next) {\n prev = ear.prev;\n next = ear.next;\n if (invSize ? isEarHashed(ear, minX, minY, invSize) : isEar(ear)) {\n triangles.push(prev.i / dim);\n triangles.push(ear.i / dim);\n triangles.push(next.i / dim);\n removeNode(ear);\n ear = next.next;\n stop = next.next;\n continue;\n }\n ear = next;\n if (ear === stop) {\n if (!pass) {\n earcutLinked(filterPoints(ear), triangles, dim, minX, minY, invSize, 1);\n } else if (pass === 1) {\n ear = cureLocalIntersections(filterPoints(ear), triangles, dim);\n earcutLinked(ear, triangles, dim, minX, minY, invSize, 2);\n } else if (pass === 2) {\n splitEarcut(ear, triangles, dim, minX, minY, invSize);\n }\n break;\n }\n }\n}\nfunction isEar(ear) {\n var a = ear.prev, b = ear, c = ear.next;\n if (area(a, b, c) >= 0) {\n return false;\n }\n var p = ear.next.next;\n while (p !== ear.prev) {\n if (pointInTriangle(a.x, a.y, b.x, b.y, c.x, c.y, p.x, p.y) && area(p.prev, p, p.next) >= 0) {\n return false;\n }\n p = p.next;\n }\n return true;\n}\nfunction isEarHashed(ear, minX, minY, invSize) {\n var a = ear.prev, b = ear, c = ear.next;\n if (area(a, b, c) >= 0) {\n return false;\n }\n var minTX = a.x < b.x ? a.x < c.x ? a.x : c.x : b.x < c.x ? b.x : c.x, minTY = a.y < b.y ? a.y < c.y ? a.y : c.y : b.y < c.y ? b.y : c.y, maxTX = a.x > b.x ? a.x > c.x ? a.x : c.x : b.x > c.x ? b.x : c.x, maxTY = a.y > b.y ? a.y > c.y ? a.y : c.y : b.y > c.y ? b.y : c.y;\n var minZ = zOrder(minTX, minTY, minX, minY, invSize), maxZ = zOrder(maxTX, maxTY, minX, minY, invSize);\n var p = ear.prevZ, n = ear.nextZ;\n while (p && p.z >= minZ && n && n.z <= maxZ) {\n if (p !== ear.prev && p !== ear.next && pointInTriangle(a.x, a.y, b.x, b.y, c.x, c.y, p.x, p.y) && area(p.prev, p, p.next) >= 0) {\n return false;\n }\n p = p.prevZ;\n if (n !== ear.prev && n !== ear.next && pointInTriangle(a.x, a.y, b.x, b.y, c.x, c.y, n.x, n.y) && area(n.prev, n, n.next) >= 0) {\n return false;\n }\n n = n.nextZ;\n }\n while (p && p.z >= minZ) {\n if (p !== ear.prev && p !== ear.next && pointInTriangle(a.x, a.y, b.x, b.y, c.x, c.y, p.x, p.y) && area(p.prev, p, p.next) >= 0) {\n return false;\n }\n p = p.prevZ;\n }\n while (n && n.z <= maxZ) {\n if (n !== ear.prev && n !== ear.next && pointInTriangle(a.x, a.y, b.x, b.y, c.x, c.y, n.x, n.y) && area(n.prev, n, n.next) >= 0) {\n return false;\n }\n n = n.nextZ;\n }\n return true;\n}\nfunction cureLocalIntersections(start, triangles, dim) {\n var p = start;\n do {\n var a = p.prev, b = p.next.next;\n if (!equals(a, b) && intersects(a, p, p.next, b) && locallyInside(a, b) && locallyInside(b, a)) {\n triangles.push(a.i / dim);\n triangles.push(p.i / dim);\n triangles.push(b.i / dim);\n removeNode(p);\n removeNode(p.next);\n p = start = b;\n }\n p = p.next;\n } while (p !== start);\n return filterPoints(p);\n}\nfunction splitEarcut(start, triangles, dim, minX, minY, invSize) {\n var a = start;\n do {\n var b = a.next.next;\n while (b !== a.prev) {\n if (a.i !== b.i && isValidDiagonal(a, b)) {\n var c = splitPolygon(a, b);\n a = filterPoints(a, a.next);\n c = filterPoints(c, c.next);\n earcutLinked(a, triangles, dim, minX, minY, invSize);\n earcutLinked(c, triangles, dim, minX, minY, invSize);\n return;\n }\n b = b.next;\n }\n a = a.next;\n } while (a !== start);\n}\nfunction eliminateHoles(data, holeIndices, outerNode, dim) {\n var queue = [], i, len, start, end, list;\n for (i = 0, len = holeIndices.length; i < len; i++) {\n start = holeIndices[i] * dim;\n end = i < len - 1 ? holeIndices[i + 1] * dim : data.length;\n list = linkedList(data, start, end, dim, false);\n if (list === list.next) {\n list.steiner = true;\n }\n queue.push(getLeftmost(list));\n }\n queue.sort(compareX);\n for (i = 0; i < queue.length; i++) {\n eliminateHole(queue[i], outerNode);\n outerNode = filterPoints(outerNode, outerNode.next);\n }\n return outerNode;\n}\nfunction compareX(a, b) {\n return a.x - b.x;\n}\nfunction eliminateHole(hole, outerNode) {\n outerNode = findHoleBridge(hole, outerNode);\n if (outerNode) {\n var b = splitPolygon(outerNode, hole);\n filterPoints(outerNode, outerNode.next);\n filterPoints(b, b.next);\n }\n}\nfunction findHoleBridge(hole, outerNode) {\n var p = outerNode, hx = hole.x, hy = hole.y, qx = -Infinity, m;\n do {\n if (hy <= p.y && hy >= p.next.y && p.next.y !== p.y) {\n var x = p.x + (hy - p.y) * (p.next.x - p.x) / (p.next.y - p.y);\n if (x <= hx && x > qx) {\n qx = x;\n if (x === hx) {\n if (hy === p.y) {\n return p;\n }\n if (hy === p.next.y) {\n return p.next;\n }\n }\n m = p.x < p.next.x ? p : p.next;\n }\n }\n p = p.next;\n } while (p !== outerNode);\n if (!m) {\n return null;\n }\n if (hx === qx) {\n return m;\n }\n var stop = m, mx = m.x, my = m.y, tanMin = Infinity, tan;\n p = m;\n do {\n if (hx >= p.x && p.x >= mx && hx !== p.x && pointInTriangle(hy < my ? hx : qx, hy, mx, my, hy < my ? qx : hx, hy, p.x, p.y)) {\n tan = Math.abs(hy - p.y) / (hx - p.x);\n if (locallyInside(p, hole) && (tan < tanMin || tan === tanMin && (p.x > m.x || p.x === m.x && sectorContainsSector(m, p)))) {\n m = p;\n tanMin = tan;\n }\n }\n p = p.next;\n } while (p !== stop);\n return m;\n}\nfunction sectorContainsSector(m, p) {\n return area(m.prev, m, p.prev) < 0 && area(p.next, m, m.next) < 0;\n}\nfunction indexCurve(start, minX, minY, invSize) {\n var p = start;\n do {\n if (p.z === null) {\n p.z = zOrder(p.x, p.y, minX, minY, invSize);\n }\n p.prevZ = p.prev;\n p.nextZ = p.next;\n p = p.next;\n } while (p !== start);\n p.prevZ.nextZ = null;\n p.prevZ = null;\n sortLinked(p);\n}\nfunction sortLinked(list) {\n var i, p, q, e, tail, numMerges, pSize, qSize, inSize = 1;\n do {\n p = list;\n list = null;\n tail = null;\n numMerges = 0;\n while (p) {\n numMerges++;\n q = p;\n pSize = 0;\n for (i = 0; i < inSize; i++) {\n pSize++;\n q = q.nextZ;\n if (!q) {\n break;\n }\n }\n qSize = inSize;\n while (pSize > 0 || qSize > 0 && q) {\n if (pSize !== 0 && (qSize === 0 || !q || p.z <= q.z)) {\n e = p;\n p = p.nextZ;\n pSize--;\n } else {\n e = q;\n q = q.nextZ;\n qSize--;\n }\n if (tail) {\n tail.nextZ = e;\n } else {\n list = e;\n }\n e.prevZ = tail;\n tail = e;\n }\n p = q;\n }\n tail.nextZ = null;\n inSize *= 2;\n } while (numMerges > 1);\n return list;\n}\nfunction zOrder(x, y, minX, minY, invSize) {\n x = 32767 * (x - minX) * invSize;\n y = 32767 * (y - minY) * invSize;\n x = (x | x << 8) & 16711935;\n x = (x | x << 4) & 252645135;\n x = (x | x << 2) & 858993459;\n x = (x | x << 1) & 1431655765;\n y = (y | y << 8) & 16711935;\n y = (y | y << 4) & 252645135;\n y = (y | y << 2) & 858993459;\n y = (y | y << 1) & 1431655765;\n return x | y << 1;\n}\nfunction getLeftmost(start) {\n var p = start, leftmost = start;\n do {\n if (p.x < leftmost.x || p.x === leftmost.x && p.y < leftmost.y) {\n leftmost = p;\n }\n p = p.next;\n } while (p !== start);\n return leftmost;\n}\nfunction pointInTriangle(ax, ay, bx, by, cx, cy, px, py) {\n return (cx - px) * (ay - py) - (ax - px) * (cy - py) >= 0 && (ax - px) * (by - py) - (bx - px) * (ay - py) >= 0 && (bx - px) * (cy - py) - (cx - px) * (by - py) >= 0;\n}\nfunction isValidDiagonal(a, b) {\n return a.next.i !== b.i && a.prev.i !== b.i && !intersectsPolygon(a, b) && (locallyInside(a, b) && locallyInside(b, a) && middleInside(a, b) && (area(a.prev, a, b.prev) || area(a, b.prev, b)) || equals(a, b) && area(a.prev, a, a.next) > 0 && area(b.prev, b, b.next) > 0);\n}\nfunction area(p, q, r) {\n return (q.y - p.y) * (r.x - q.x) - (q.x - p.x) * (r.y - q.y);\n}\nfunction equals(p1, p2) {\n return p1.x === p2.x && p1.y === p2.y;\n}\nfunction intersects(p1, q1, p2, q2) {\n var o1 = sign(area(p1, q1, p2));\n var o2 = sign(area(p1, q1, q2));\n var o3 = sign(area(p2, q2, p1));\n var o4 = sign(area(p2, q2, q1));\n if (o1 !== o2 && o3 !== o4) {\n return true;\n }\n if (o1 === 0 && onSegment(p1, p2, q1)) {\n return true;\n }\n if (o2 === 0 && onSegment(p1, q2, q1)) {\n return true;\n }\n if (o3 === 0 && onSegment(p2, p1, q2)) {\n return true;\n }\n if (o4 === 0 && onSegment(p2, q1, q2)) {\n return true;\n }\n return false;\n}\nfunction onSegment(p, q, r) {\n return q.x <= Math.max(p.x, r.x) && q.x >= Math.min(p.x, r.x) && q.y <= Math.max(p.y, r.y) && q.y >= Math.min(p.y, r.y);\n}\nfunction sign(num) {\n return num > 0 ? 1 : num < 0 ? -1 : 0;\n}\nfunction intersectsPolygon(a, b) {\n var p = a;\n do {\n if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i && intersects(p, p.next, a, b)) {\n return true;\n }\n p = p.next;\n } while (p !== a);\n return false;\n}\nfunction locallyInside(a, b) {\n return area(a.prev, a, a.next) < 0 ? area(a, b, a.next) >= 0 && area(a, a.prev, b) >= 0 : area(a, b, a.prev) < 0 || area(a, a.next, b) < 0;\n}\nfunction middleInside(a, b) {\n var p = a, inside = false, px = (a.x + b.x) / 2, py = (a.y + b.y) / 2;\n do {\n if (p.y > py !== p.next.y > py && p.next.y !== p.y && px < (p.next.x - p.x) * (py - p.y) / (p.next.y - p.y) + p.x) {\n inside = !inside;\n }\n p = p.next;\n } while (p !== a);\n return inside;\n}\nfunction splitPolygon(a, b) {\n var a2 = new Node(a.i, a.x, a.y), b2 = new Node(b.i, b.x, b.y), an = a.next, bp = b.prev;\n a.next = b;\n b.prev = a;\n a2.next = an;\n an.prev = a2;\n b2.next = a2;\n a2.prev = b2;\n bp.next = b2;\n b2.prev = bp;\n return b2;\n}\nfunction insertNode(i, x, y, last) {\n var p = new Node(i, x, y);\n if (!last) {\n p.prev = p;\n p.next = p;\n } else {\n p.next = last.next;\n p.prev = last;\n last.next.prev = p;\n last.next = p;\n }\n return p;\n}\nfunction removeNode(p) {\n p.next.prev = p.prev;\n p.prev.next = p.next;\n if (p.prevZ) {\n p.prevZ.nextZ = p.nextZ;\n }\n if (p.nextZ) {\n p.nextZ.prevZ = p.prevZ;\n }\n}\nfunction Node(i, x, y) {\n this.i = i;\n this.x = x;\n this.y = y;\n this.prev = null;\n this.next = null;\n this.z = null;\n this.prevZ = null;\n this.nextZ = null;\n this.steiner = false;\n}\nearcut.deviation = function (data, holeIndices, dim, triangles) {\n var hasHoles = holeIndices && holeIndices.length;\n var outerLen = hasHoles ? holeIndices[0] * dim : data.length;\n var polygonArea = Math.abs(signedArea(data, 0, outerLen, dim));\n if (hasHoles) {\n for (var i = 0, len = holeIndices.length; i < len; i++) {\n var start = holeIndices[i] * dim;\n var end = i < len - 1 ? holeIndices[i + 1] * dim : data.length;\n polygonArea -= Math.abs(signedArea(data, start, end, dim));\n }\n }\n var trianglesArea = 0;\n for (i = 0; i < triangles.length; i += 3) {\n var a = triangles[i] * dim;\n var b = triangles[i + 1] * dim;\n var c = triangles[i + 2] * dim;\n trianglesArea += Math.abs((data[a] - data[c]) * (data[b + 1] - data[a + 1]) - (data[a] - data[b]) * (data[c + 1] - data[a + 1]));\n }\n return polygonArea === 0 && trianglesArea === 0 ? 0 : Math.abs((trianglesArea - polygonArea) / polygonArea);\n};\nfunction signedArea(data, start, end, dim) {\n var sum = 0;\n for (var i = start, j = end - dim; i < end; i += dim) {\n sum += (data[j] - data[i]) * (data[i + 1] + data[j + 1]);\n j = i;\n }\n return sum;\n}\nearcut.flatten = function (data) {\n var dim = data[0][0].length, result = {\n vertices: [],\n holes: [],\n dimensions: dim\n }, holeIndex = 0;\n for (var i = 0; i < data.length; i++) {\n for (var j = 0; j < data[i].length; j++) {\n for (var d = 0; d < dim; d++) {\n result.vertices.push(data[i][j][d]);\n }\n }\n if (i > 0) {\n holeIndex += data[i - 1].length;\n result.holes.push(holeIndex);\n }\n }\n return result;\n};\nearcut_1.default = default_1;\n\nfunction quickselect(arr, k, left, right, compare) {\n quickselectStep(arr, k, left || 0, right || arr.length - 1, compare || defaultCompare);\n}\nfunction quickselectStep(arr, k, left, right, compare) {\n while (right > left) {\n if (right - left > 600) {\n var n = right - left + 1;\n var m = k - left + 1;\n var z = Math.log(n);\n var s = 0.5 * Math.exp(2 * z / 3);\n var sd = 0.5 * Math.sqrt(z * s * (n - s) / n) * (m - n / 2 < 0 ? -1 : 1);\n var newLeft = Math.max(left, Math.floor(k - m * s / n + sd));\n var newRight = Math.min(right, Math.floor(k + (n - m) * s / n + sd));\n quickselectStep(arr, k, newLeft, newRight, compare);\n }\n var t = arr[k];\n var i = left;\n var j = right;\n swap$1(arr, left, k);\n if (compare(arr[right], t) > 0) {\n swap$1(arr, left, right);\n }\n while (i < j) {\n swap$1(arr, i, j);\n i++;\n j--;\n while (compare(arr[i], t) < 0) {\n i++;\n }\n while (compare(arr[j], t) > 0) {\n j--;\n }\n }\n if (compare(arr[left], t) === 0) {\n swap$1(arr, left, j);\n } else {\n j++;\n swap$1(arr, j, right);\n }\n if (j <= k) {\n left = j + 1;\n }\n if (k <= j) {\n right = j - 1;\n }\n }\n}\nfunction swap$1(arr, i, j) {\n var tmp = arr[i];\n arr[i] = arr[j];\n arr[j] = tmp;\n}\nfunction defaultCompare(a, b) {\n return a < b ? -1 : a > b ? 1 : 0;\n}\n\nfunction classifyRings(rings, maxRings) {\n var len = rings.length;\n if (len <= 1) {\n return [rings];\n }\n var polygons = [];\n var polygon, ccw;\n for (var i = 0; i < len; i++) {\n var area = calculateSignedArea(rings[i]);\n if (area === 0) {\n continue;\n }\n rings[i].area = Math.abs(area);\n if (ccw === undefined) {\n ccw = area < 0;\n }\n if (ccw === area < 0) {\n if (polygon) {\n polygons.push(polygon);\n }\n polygon = [rings[i]];\n } else {\n polygon.push(rings[i]);\n }\n }\n if (polygon) {\n polygons.push(polygon);\n }\n if (maxRings > 1) {\n for (var j = 0; j < polygons.length; j++) {\n if (polygons[j].length <= maxRings) {\n continue;\n }\n quickselect(polygons[j], maxRings, 1, polygons[j].length - 1, compareAreas);\n polygons[j] = polygons[j].slice(0, maxRings);\n }\n }\n return polygons;\n}\nfunction compareAreas(a, b) {\n return b.area - a.area;\n}\n\nfunction hasPattern(type, layers, options) {\n var patterns = options.patternDependencies;\n var hasPattern = false;\n for (var i = 0, list = layers; i < list.length; i += 1) {\n var layer = list[i];\n var patternProperty = layer.paint.get(type + '-pattern');\n if (!patternProperty.isConstant()) {\n hasPattern = true;\n }\n var constantPattern = patternProperty.constantOr(null);\n if (constantPattern) {\n hasPattern = true;\n patterns[constantPattern.to] = true;\n patterns[constantPattern.from] = true;\n }\n }\n return hasPattern;\n}\nfunction addPatternDependencies(type, layers, patternFeature, zoom, options) {\n var patterns = options.patternDependencies;\n for (var i = 0, list = layers; i < list.length; i += 1) {\n var layer = list[i];\n var patternProperty = layer.paint.get(type + '-pattern');\n var patternPropertyValue = patternProperty.value;\n if (patternPropertyValue.kind !== 'constant') {\n var min = patternPropertyValue.evaluate({ zoom: zoom - 1 }, patternFeature, {}, options.availableImages);\n var mid = patternPropertyValue.evaluate({ zoom: zoom }, patternFeature, {}, options.availableImages);\n var max = patternPropertyValue.evaluate({ zoom: zoom + 1 }, patternFeature, {}, options.availableImages);\n min = min && min.name ? min.name : min;\n mid = mid && mid.name ? mid.name : mid;\n max = max && max.name ? max.name : max;\n patterns[min] = true;\n patterns[mid] = true;\n patterns[max] = true;\n patternFeature.patterns[layer.id] = {\n min: min,\n mid: mid,\n max: max\n };\n }\n }\n return patternFeature;\n}\n\nvar EARCUT_MAX_RINGS = 500;\nvar FillBucket = function FillBucket(options) {\n this.zoom = options.zoom;\n this.overscaling = options.overscaling;\n this.layers = options.layers;\n this.layerIds = this.layers.map(function (layer) {\n return layer.id;\n });\n this.index = options.index;\n this.hasPattern = false;\n this.patternFeatures = [];\n this.layoutVertexArray = new StructArrayLayout2i4();\n this.indexArray = new StructArrayLayout3ui6();\n this.indexArray2 = new StructArrayLayout2ui4();\n this.programConfigurations = new ProgramConfigurationSet(members$1, options.layers, options.zoom);\n this.segments = new SegmentVector();\n this.segments2 = new SegmentVector();\n this.stateDependentLayerIds = this.layers.filter(function (l) {\n return l.isStateDependent();\n }).map(function (l) {\n return l.id;\n });\n};\nFillBucket.prototype.populate = function populate(features, options, canonical) {\n this.hasPattern = hasPattern('fill', this.layers, options);\n var fillSortKey = this.layers[0].layout.get('fill-sort-key');\n var bucketFeatures = [];\n for (var i = 0, list = features; i < list.length; i += 1) {\n var ref = list[i];\n var feature = ref.feature;\n var id = ref.id;\n var index = ref.index;\n var sourceLayerIndex = ref.sourceLayerIndex;\n var needGeometry = this.layers[0]._featureFilter.needGeometry;\n var evaluationFeature = {\n type: feature.type,\n id: id,\n properties: feature.properties,\n geometry: needGeometry ? loadGeometry(feature) : []\n };\n if (!this.layers[0]._featureFilter.filter(new EvaluationParameters(this.zoom), evaluationFeature, canonical)) {\n continue;\n }\n if (!needGeometry) {\n evaluationFeature.geometry = loadGeometry(feature);\n }\n var sortKey = fillSortKey ? fillSortKey.evaluate(evaluationFeature, {}, canonical, options.availableImages) : undefined;\n var bucketFeature = {\n id: id,\n properties: feature.properties,\n type: feature.type,\n sourceLayerIndex: sourceLayerIndex,\n index: index,\n geometry: evaluationFeature.geometry,\n patterns: {},\n sortKey: sortKey\n };\n bucketFeatures.push(bucketFeature);\n }\n if (fillSortKey) {\n bucketFeatures.sort(function (a, b) {\n return a.sortKey - b.sortKey;\n });\n }\n for (var i$1 = 0, list$1 = bucketFeatures; i$1 < list$1.length; i$1 += 1) {\n var bucketFeature$1 = list$1[i$1];\n var ref$1 = bucketFeature$1;\n var geometry = ref$1.geometry;\n var index$1 = ref$1.index;\n var sourceLayerIndex$1 = ref$1.sourceLayerIndex;\n if (this.hasPattern) {\n var patternFeature = addPatternDependencies('fill', this.layers, bucketFeature$1, this.zoom, options);\n this.patternFeatures.push(patternFeature);\n } else {\n this.addFeature(bucketFeature$1, geometry, index$1, canonical, {});\n }\n var feature$1 = features[index$1].feature;\n options.featureIndex.insert(feature$1, geometry, index$1, sourceLayerIndex$1, this.index);\n }\n};\nFillBucket.prototype.update = function update(states, vtLayer, imagePositions) {\n if (!this.stateDependentLayers.length) {\n return;\n }\n this.programConfigurations.updatePaintArrays(states, vtLayer, this.stateDependentLayers, imagePositions);\n};\nFillBucket.prototype.addFeatures = function addFeatures(options, canonical, imagePositions) {\n for (var i = 0, list = this.patternFeatures; i < list.length; i += 1) {\n var feature = list[i];\n this.addFeature(feature, feature.geometry, feature.index, canonical, imagePositions);\n }\n};\nFillBucket.prototype.isEmpty = function isEmpty() {\n return this.layoutVertexArray.length === 0;\n};\nFillBucket.prototype.uploadPending = function uploadPending() {\n return !this.uploaded || this.programConfigurations.needsUpload;\n};\nFillBucket.prototype.upload = function upload(context) {\n if (!this.uploaded) {\n this.layoutVertexBuffer = context.createVertexBuffer(this.layoutVertexArray, members$1);\n this.indexBuffer = context.createIndexBuffer(this.indexArray);\n this.indexBuffer2 = context.createIndexBuffer(this.indexArray2);\n }\n this.programConfigurations.upload(context);\n this.uploaded = true;\n};\nFillBucket.prototype.destroy = function destroy() {\n if (!this.layoutVertexBuffer) {\n return;\n }\n this.layoutVertexBuffer.destroy();\n this.indexBuffer.destroy();\n this.indexBuffer2.destroy();\n this.programConfigurations.destroy();\n this.segments.destroy();\n this.segments2.destroy();\n};\nFillBucket.prototype.addFeature = function addFeature(feature, geometry, index, canonical, imagePositions) {\n for (var i$4 = 0, list$2 = classifyRings(geometry, EARCUT_MAX_RINGS); i$4 < list$2.length; i$4 += 1) {\n var polygon = list$2[i$4];\n var numVertices = 0;\n for (var i$2 = 0, list = polygon; i$2 < list.length; i$2 += 1) {\n var ring = list[i$2];\n numVertices += ring.length;\n }\n var triangleSegment = this.segments.prepareSegment(numVertices, this.layoutVertexArray, this.indexArray);\n var triangleIndex = triangleSegment.vertexLength;\n var flattened = [];\n var holeIndices = [];\n for (var i$3 = 0, list$1 = polygon; i$3 < list$1.length; i$3 += 1) {\n var ring$1 = list$1[i$3];\n if (ring$1.length === 0) {\n continue;\n }\n if (ring$1 !== polygon[0]) {\n holeIndices.push(flattened.length / 2);\n }\n var lineSegment = this.segments2.prepareSegment(ring$1.length, this.layoutVertexArray, this.indexArray2);\n var lineIndex = lineSegment.vertexLength;\n this.layoutVertexArray.emplaceBack(ring$1[0].x, ring$1[0].y);\n this.indexArray2.emplaceBack(lineIndex + ring$1.length - 1, lineIndex);\n flattened.push(ring$1[0].x);\n flattened.push(ring$1[0].y);\n for (var i = 1; i < ring$1.length; i++) {\n this.layoutVertexArray.emplaceBack(ring$1[i].x, ring$1[i].y);\n this.indexArray2.emplaceBack(lineIndex + i - 1, lineIndex + i);\n flattened.push(ring$1[i].x);\n flattened.push(ring$1[i].y);\n }\n lineSegment.vertexLength += ring$1.length;\n lineSegment.primitiveLength += ring$1.length;\n }\n var indices = earcut_1(flattened, holeIndices);\n for (var i$1 = 0; i$1 < indices.length; i$1 += 3) {\n this.indexArray.emplaceBack(triangleIndex + indices[i$1], triangleIndex + indices[i$1 + 1], triangleIndex + indices[i$1 + 2]);\n }\n triangleSegment.vertexLength += numVertices;\n triangleSegment.primitiveLength += indices.length / 3;\n }\n this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length, feature, index, imagePositions, canonical);\n};\nregister('FillBucket', FillBucket, {\n omit: [\n 'layers',\n 'patternFeatures'\n ]\n});\n\nvar layout$4 = new Properties({ 'fill-sort-key': new DataDrivenProperty(spec['layout_fill']['fill-sort-key']) });\nvar paint$4 = new Properties({\n 'fill-antialias': new DataConstantProperty(spec['paint_fill']['fill-antialias']),\n 'fill-opacity': new DataDrivenProperty(spec['paint_fill']['fill-opacity']),\n 'fill-color': new DataDrivenProperty(spec['paint_fill']['fill-color']),\n 'fill-outline-color': new DataDrivenProperty(spec['paint_fill']['fill-outline-color']),\n 'fill-translate': new DataConstantProperty(spec['paint_fill']['fill-translate']),\n 'fill-translate-anchor': new DataConstantProperty(spec['paint_fill']['fill-translate-anchor']),\n 'fill-pattern': new CrossFadedDataDrivenProperty(spec['paint_fill']['fill-pattern'])\n});\nvar properties$3 = {\n paint: paint$4,\n layout: layout$4\n};\n\nvar FillStyleLayer = function (StyleLayer) {\n function FillStyleLayer(layer) {\n StyleLayer.call(this, layer, properties$3);\n }\n if (StyleLayer)\n FillStyleLayer.__proto__ = StyleLayer;\n FillStyleLayer.prototype = Object.create(StyleLayer && StyleLayer.prototype);\n FillStyleLayer.prototype.constructor = FillStyleLayer;\n FillStyleLayer.prototype.recalculate = function recalculate(parameters, availableImages) {\n StyleLayer.prototype.recalculate.call(this, parameters, availableImages);\n var outlineColor = this.paint._values['fill-outline-color'];\n if (outlineColor.value.kind === 'constant' && outlineColor.value.value === undefined) {\n this.paint._values['fill-outline-color'] = this.paint._values['fill-color'];\n }\n };\n FillStyleLayer.prototype.createBucket = function createBucket(parameters) {\n return new FillBucket(parameters);\n };\n FillStyleLayer.prototype.queryRadius = function queryRadius() {\n return translateDistance(this.paint.get('fill-translate'));\n };\n FillStyleLayer.prototype.queryIntersectsFeature = function queryIntersectsFeature(queryGeometry, feature, featureState, geometry, zoom, transform, pixelsToTileUnits) {\n var translatedPolygon = translate(queryGeometry, this.paint.get('fill-translate'), this.paint.get('fill-translate-anchor'), transform.angle, pixelsToTileUnits);\n return polygonIntersectsMultiPolygon(translatedPolygon, geometry);\n };\n FillStyleLayer.prototype.isTileClipped = function isTileClipped() {\n return true;\n };\n return FillStyleLayer;\n}(StyleLayer);\n\nvar layout$5 = createLayout([\n {\n name: 'a_pos',\n components: 2,\n type: 'Int16'\n },\n {\n name: 'a_normal_ed',\n components: 4,\n type: 'Int16'\n }\n], 4);\nvar members$2 = layout$5.members;\n\nvar vectortilefeature = VectorTileFeature;\nfunction VectorTileFeature(pbf, end, extent, keys, values) {\n this.properties = {};\n this.extent = extent;\n this.type = 0;\n this._pbf = pbf;\n this._geometry = -1;\n this._keys = keys;\n this._values = values;\n pbf.readFields(readFeature, this, end);\n}\nfunction readFeature(tag, feature, pbf) {\n if (tag == 1) {\n feature.id = pbf.readVarint();\n } else if (tag == 2) {\n readTag(pbf, feature);\n } else if (tag == 3) {\n feature.type = pbf.readVarint();\n } else if (tag == 4) {\n feature._geometry = pbf.pos;\n }\n}\nfunction readTag(pbf, feature) {\n var end = pbf.readVarint() + pbf.pos;\n while (pbf.pos < end) {\n var key = feature._keys[pbf.readVarint()], value = feature._values[pbf.readVarint()];\n feature.properties[key] = value;\n }\n}\nVectorTileFeature.types = [\n 'Unknown',\n 'Point',\n 'LineString',\n 'Polygon'\n];\nVectorTileFeature.prototype.loadGeometry = function () {\n var pbf = this._pbf;\n pbf.pos = this._geometry;\n var end = pbf.readVarint() + pbf.pos, cmd = 1, length = 0, x = 0, y = 0, lines = [], line;\n while (pbf.pos < end) {\n if (length <= 0) {\n var cmdLen = pbf.readVarint();\n cmd = cmdLen & 7;\n length = cmdLen >> 3;\n }\n length--;\n if (cmd === 1 || cmd === 2) {\n x += pbf.readSVarint();\n y += pbf.readSVarint();\n if (cmd === 1) {\n if (line) {\n lines.push(line);\n }\n line = [];\n }\n line.push(new pointGeometry(x, y));\n } else if (cmd === 7) {\n if (line) {\n line.push(line[0].clone());\n }\n } else {\n throw new Error('unknown command ' + cmd);\n }\n }\n if (line) {\n lines.push(line);\n }\n return lines;\n};\nVectorTileFeature.prototype.bbox = function () {\n var pbf = this._pbf;\n pbf.pos = this._geometry;\n var end = pbf.readVarint() + pbf.pos, cmd = 1, length = 0, x = 0, y = 0, x1 = Infinity, x2 = -Infinity, y1 = Infinity, y2 = -Infinity;\n while (pbf.pos < end) {\n if (length <= 0) {\n var cmdLen = pbf.readVarint();\n cmd = cmdLen & 7;\n length = cmdLen >> 3;\n }\n length--;\n if (cmd === 1 || cmd === 2) {\n x += pbf.readSVarint();\n y += pbf.readSVarint();\n if (x < x1) {\n x1 = x;\n }\n if (x > x2) {\n x2 = x;\n }\n if (y < y1) {\n y1 = y;\n }\n if (y > y2) {\n y2 = y;\n }\n } else if (cmd !== 7) {\n throw new Error('unknown command ' + cmd);\n }\n }\n return [\n x1,\n y1,\n x2,\n y2\n ];\n};\nVectorTileFeature.prototype.toGeoJSON = function (x, y, z) {\n var size = this.extent * Math.pow(2, z), x0 = this.extent * x, y0 = this.extent * y, coords = this.loadGeometry(), type = VectorTileFeature.types[this.type], i, j;\n function project(line) {\n for (var j = 0; j < line.length; j++) {\n var p = line[j], y2 = 180 - (p.y + y0) * 360 / size;\n line[j] = [\n (p.x + x0) * 360 / size - 180,\n 360 / Math.PI * Math.atan(Math.exp(y2 * Math.PI / 180)) - 90\n ];\n }\n }\n switch (this.type) {\n case 1:\n var points = [];\n for (i = 0; i < coords.length; i++) {\n points[i] = coords[i][0];\n }\n coords = points;\n project(coords);\n break;\n case 2:\n for (i = 0; i < coords.length; i++) {\n project(coords[i]);\n }\n break;\n case 3:\n coords = classifyRings$1(coords);\n for (i = 0; i < coords.length; i++) {\n for (j = 0; j < coords[i].length; j++) {\n project(coords[i][j]);\n }\n }\n break;\n }\n if (coords.length === 1) {\n coords = coords[0];\n } else {\n type = 'Multi' + type;\n }\n var result = {\n type: 'Feature',\n geometry: {\n type: type,\n coordinates: coords\n },\n properties: this.properties\n };\n if ('id' in this) {\n result.id = this.id;\n }\n return result;\n};\nfunction classifyRings$1(rings) {\n var len = rings.length;\n if (len <= 1) {\n return [rings];\n }\n var polygons = [], polygon, ccw;\n for (var i = 0; i < len; i++) {\n var area = signedArea$1(rings[i]);\n if (area === 0) {\n continue;\n }\n if (ccw === undefined) {\n ccw = area < 0;\n }\n if (ccw === area < 0) {\n if (polygon) {\n polygons.push(polygon);\n }\n polygon = [rings[i]];\n } else {\n polygon.push(rings[i]);\n }\n }\n if (polygon) {\n polygons.push(polygon);\n }\n return polygons;\n}\nfunction signedArea$1(ring) {\n var sum = 0;\n for (var i = 0, len = ring.length, j = len - 1, p1, p2; i < len; j = i++) {\n p1 = ring[i];\n p2 = ring[j];\n sum += (p2.x - p1.x) * (p1.y + p2.y);\n }\n return sum;\n}\n\nvar vectortilelayer = VectorTileLayer;\nfunction VectorTileLayer(pbf, end) {\n this.version = 1;\n this.name = null;\n this.extent = 4096;\n this.length = 0;\n this._pbf = pbf;\n this._keys = [];\n this._values = [];\n this._features = [];\n pbf.readFields(readLayer, this, end);\n this.length = this._features.length;\n}\nfunction readLayer(tag, layer, pbf) {\n if (tag === 15) {\n layer.version = pbf.readVarint();\n } else if (tag === 1) {\n layer.name = pbf.readString();\n } else if (tag === 5) {\n layer.extent = pbf.readVarint();\n } else if (tag === 2) {\n layer._features.push(pbf.pos);\n } else if (tag === 3) {\n layer._keys.push(pbf.readString());\n } else if (tag === 4) {\n layer._values.push(readValueMessage(pbf));\n }\n}\nfunction readValueMessage(pbf) {\n var value = null, end = pbf.readVarint() + pbf.pos;\n while (pbf.pos < end) {\n var tag = pbf.readVarint() >> 3;\n value = tag === 1 ? pbf.readString() : tag === 2 ? pbf.readFloat() : tag === 3 ? pbf.readDouble() : tag === 4 ? pbf.readVarint64() : tag === 5 ? pbf.readVarint() : tag === 6 ? pbf.readSVarint() : tag === 7 ? pbf.readBoolean() : null;\n }\n return value;\n}\nVectorTileLayer.prototype.feature = function (i) {\n if (i < 0 || i >= this._features.length) {\n throw new Error('feature index out of bounds');\n }\n this._pbf.pos = this._features[i];\n var end = this._pbf.readVarint() + this._pbf.pos;\n return new vectortilefeature(this._pbf, end, this.extent, this._keys, this._values);\n};\n\nvar vectortile = VectorTile;\nfunction VectorTile(pbf, end) {\n this.layers = pbf.readFields(readTile, {}, end);\n}\nfunction readTile(tag, layers, pbf) {\n if (tag === 3) {\n var layer = new vectortilelayer(pbf, pbf.readVarint() + pbf.pos);\n if (layer.length) {\n layers[layer.name] = layer;\n }\n }\n}\n\nvar VectorTile$1 = vectortile;\nvar VectorTileFeature$1 = vectortilefeature;\nvar VectorTileLayer$1 = vectortilelayer;\n\nvar vectorTile = {\n\tVectorTile: VectorTile$1,\n\tVectorTileFeature: VectorTileFeature$1,\n\tVectorTileLayer: VectorTileLayer$1\n};\n\nvar vectorTileFeatureTypes = vectorTile.VectorTileFeature.types;\nvar EARCUT_MAX_RINGS$1 = 500;\nvar FACTOR = Math.pow(2, 13);\nfunction addVertex(vertexArray, x, y, nx, ny, nz, t, e) {\n vertexArray.emplaceBack(x, y, Math.floor(nx * FACTOR) * 2 + t, ny * FACTOR * 2, nz * FACTOR * 2, Math.round(e));\n}\nvar FillExtrusionBucket = function FillExtrusionBucket(options) {\n this.zoom = options.zoom;\n this.overscaling = options.overscaling;\n this.layers = options.layers;\n this.layerIds = this.layers.map(function (layer) {\n return layer.id;\n });\n this.index = options.index;\n this.hasPattern = false;\n this.layoutVertexArray = new StructArrayLayout2i4i12();\n this.indexArray = new StructArrayLayout3ui6();\n this.programConfigurations = new ProgramConfigurationSet(members$2, options.layers, options.zoom);\n this.segments = new SegmentVector();\n this.stateDependentLayerIds = this.layers.filter(function (l) {\n return l.isStateDependent();\n }).map(function (l) {\n return l.id;\n });\n};\nFillExtrusionBucket.prototype.populate = function populate(features, options, canonical) {\n this.features = [];\n this.hasPattern = hasPattern('fill-extrusion', this.layers, options);\n for (var i = 0, list = features; i < list.length; i += 1) {\n var ref = list[i];\n var feature = ref.feature;\n var id = ref.id;\n var index = ref.index;\n var sourceLayerIndex = ref.sourceLayerIndex;\n var needGeometry = this.layers[0]._featureFilter.needGeometry;\n var evaluationFeature = {\n type: feature.type,\n id: id,\n properties: feature.properties,\n geometry: needGeometry ? loadGeometry(feature) : []\n };\n if (!this.layers[0]._featureFilter.filter(new EvaluationParameters(this.zoom), evaluationFeature, canonical)) {\n continue;\n }\n var patternFeature = {\n id: id,\n sourceLayerIndex: sourceLayerIndex,\n index: index,\n geometry: needGeometry ? evaluationFeature.geometry : loadGeometry(feature),\n properties: feature.properties,\n type: feature.type,\n patterns: {}\n };\n if (typeof feature.id !== 'undefined') {\n patternFeature.id = feature.id;\n }\n if (this.hasPattern) {\n this.features.push(addPatternDependencies('fill-extrusion', this.layers, patternFeature, this.zoom, options));\n } else {\n this.addFeature(patternFeature, patternFeature.geometry, index, canonical, {});\n }\n options.featureIndex.insert(feature, patternFeature.geometry, index, sourceLayerIndex, this.index, true);\n }\n};\nFillExtrusionBucket.prototype.addFeatures = function addFeatures(options, canonical, imagePositions) {\n for (var i = 0, list = this.features; i < list.length; i += 1) {\n var feature = list[i];\n var geometry = feature.geometry;\n this.addFeature(feature, geometry, feature.index, canonical, imagePositions);\n }\n};\nFillExtrusionBucket.prototype.update = function update(states, vtLayer, imagePositions) {\n if (!this.stateDependentLayers.length) {\n return;\n }\n this.programConfigurations.updatePaintArrays(states, vtLayer, this.stateDependentLayers, imagePositions);\n};\nFillExtrusionBucket.prototype.isEmpty = function isEmpty() {\n return this.layoutVertexArray.length === 0;\n};\nFillExtrusionBucket.prototype.uploadPending = function uploadPending() {\n return !this.uploaded || this.programConfigurations.needsUpload;\n};\nFillExtrusionBucket.prototype.upload = function upload(context) {\n if (!this.uploaded) {\n this.layoutVertexBuffer = context.createVertexBuffer(this.layoutVertexArray, members$2);\n this.indexBuffer = context.createIndexBuffer(this.indexArray);\n }\n this.programConfigurations.upload(context);\n this.uploaded = true;\n};\nFillExtrusionBucket.prototype.destroy = function destroy() {\n if (!this.layoutVertexBuffer) {\n return;\n }\n this.layoutVertexBuffer.destroy();\n this.indexBuffer.destroy();\n this.programConfigurations.destroy();\n this.segments.destroy();\n};\nFillExtrusionBucket.prototype.addFeature = function addFeature(feature, geometry, index, canonical, imagePositions) {\n for (var i$4 = 0, list$3 = classifyRings(geometry, EARCUT_MAX_RINGS$1); i$4 < list$3.length; i$4 += 1) {\n var polygon = list$3[i$4];\n var numVertices = 0;\n for (var i$1 = 0, list = polygon; i$1 < list.length; i$1 += 1) {\n var ring = list[i$1];\n numVertices += ring.length;\n }\n var segment = this.segments.prepareSegment(4, this.layoutVertexArray, this.indexArray);\n for (var i$2 = 0, list$1 = polygon; i$2 < list$1.length; i$2 += 1) {\n var ring$1 = list$1[i$2];\n if (ring$1.length === 0) {\n continue;\n }\n if (isEntirelyOutside(ring$1)) {\n continue;\n }\n var edgeDistance = 0;\n for (var p = 0; p < ring$1.length; p++) {\n var p1 = ring$1[p];\n if (p >= 1) {\n var p2 = ring$1[p - 1];\n if (!isBoundaryEdge(p1, p2)) {\n if (segment.vertexLength + 4 > SegmentVector.MAX_VERTEX_ARRAY_LENGTH) {\n segment = this.segments.prepareSegment(4, this.layoutVertexArray, this.indexArray);\n }\n var perp = p1.sub(p2)._perp()._unit();\n var dist = p2.dist(p1);\n if (edgeDistance + dist > 32768) {\n edgeDistance = 0;\n }\n addVertex(this.layoutVertexArray, p1.x, p1.y, perp.x, perp.y, 0, 0, edgeDistance);\n addVertex(this.layoutVertexArray, p1.x, p1.y, perp.x, perp.y, 0, 1, edgeDistance);\n edgeDistance += dist;\n addVertex(this.layoutVertexArray, p2.x, p2.y, perp.x, perp.y, 0, 0, edgeDistance);\n addVertex(this.layoutVertexArray, p2.x, p2.y, perp.x, perp.y, 0, 1, edgeDistance);\n var bottomRight = segment.vertexLength;\n this.indexArray.emplaceBack(bottomRight, bottomRight + 2, bottomRight + 1);\n this.indexArray.emplaceBack(bottomRight + 1, bottomRight + 2, bottomRight + 3);\n segment.vertexLength += 4;\n segment.primitiveLength += 2;\n }\n }\n }\n }\n if (segment.vertexLength + numVertices > SegmentVector.MAX_VERTEX_ARRAY_LENGTH) {\n segment = this.segments.prepareSegment(numVertices, this.layoutVertexArray, this.indexArray);\n }\n if (vectorTileFeatureTypes[feature.type] !== 'Polygon') {\n continue;\n }\n var flattened = [];\n var holeIndices = [];\n var triangleIndex = segment.vertexLength;\n for (var i$3 = 0, list$2 = polygon; i$3 < list$2.length; i$3 += 1) {\n var ring$2 = list$2[i$3];\n if (ring$2.length === 0) {\n continue;\n }\n if (ring$2 !== polygon[0]) {\n holeIndices.push(flattened.length / 2);\n }\n for (var i = 0; i < ring$2.length; i++) {\n var p$1 = ring$2[i];\n addVertex(this.layoutVertexArray, p$1.x, p$1.y, 0, 0, 1, 1, 0);\n flattened.push(p$1.x);\n flattened.push(p$1.y);\n }\n }\n var indices = earcut_1(flattened, holeIndices);\n for (var j = 0; j < indices.length; j += 3) {\n this.indexArray.emplaceBack(triangleIndex + indices[j], triangleIndex + indices[j + 2], triangleIndex + indices[j + 1]);\n }\n segment.primitiveLength += indices.length / 3;\n segment.vertexLength += numVertices;\n }\n this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length, feature, index, imagePositions, canonical);\n};\nregister('FillExtrusionBucket', FillExtrusionBucket, {\n omit: [\n 'layers',\n 'features'\n ]\n});\nfunction isBoundaryEdge(p1, p2) {\n return p1.x === p2.x && (p1.x < 0 || p1.x > EXTENT$1) || p1.y === p2.y && (p1.y < 0 || p1.y > EXTENT$1);\n}\nfunction isEntirelyOutside(ring) {\n return ring.every(function (p) {\n return p.x < 0;\n }) || ring.every(function (p) {\n return p.x > EXTENT$1;\n }) || ring.every(function (p) {\n return p.y < 0;\n }) || ring.every(function (p) {\n return p.y > EXTENT$1;\n });\n}\n\nvar paint$5 = new Properties({\n 'fill-extrusion-opacity': new DataConstantProperty(spec['paint_fill-extrusion']['fill-extrusion-opacity']),\n 'fill-extrusion-color': new DataDrivenProperty(spec['paint_fill-extrusion']['fill-extrusion-color']),\n 'fill-extrusion-translate': new DataConstantProperty(spec['paint_fill-extrusion']['fill-extrusion-translate']),\n 'fill-extrusion-translate-anchor': new DataConstantProperty(spec['paint_fill-extrusion']['fill-extrusion-translate-anchor']),\n 'fill-extrusion-pattern': new CrossFadedDataDrivenProperty(spec['paint_fill-extrusion']['fill-extrusion-pattern']),\n 'fill-extrusion-height': new DataDrivenProperty(spec['paint_fill-extrusion']['fill-extrusion-height']),\n 'fill-extrusion-base': new DataDrivenProperty(spec['paint_fill-extrusion']['fill-extrusion-base']),\n 'fill-extrusion-vertical-gradient': new DataConstantProperty(spec['paint_fill-extrusion']['fill-extrusion-vertical-gradient'])\n});\nvar properties$4 = { paint: paint$5 };\n\nvar FillExtrusionStyleLayer = function (StyleLayer) {\n function FillExtrusionStyleLayer(layer) {\n StyleLayer.call(this, layer, properties$4);\n }\n if (StyleLayer)\n FillExtrusionStyleLayer.__proto__ = StyleLayer;\n FillExtrusionStyleLayer.prototype = Object.create(StyleLayer && StyleLayer.prototype);\n FillExtrusionStyleLayer.prototype.constructor = FillExtrusionStyleLayer;\n FillExtrusionStyleLayer.prototype.createBucket = function createBucket(parameters) {\n return new FillExtrusionBucket(parameters);\n };\n FillExtrusionStyleLayer.prototype.queryRadius = function queryRadius() {\n return translateDistance(this.paint.get('fill-extrusion-translate'));\n };\n FillExtrusionStyleLayer.prototype.is3D = function is3D() {\n return true;\n };\n FillExtrusionStyleLayer.prototype.queryIntersectsFeature = function queryIntersectsFeature(queryGeometry, feature, featureState, geometry, zoom, transform, pixelsToTileUnits, pixelPosMatrix) {\n var translatedPolygon = translate(queryGeometry, this.paint.get('fill-extrusion-translate'), this.paint.get('fill-extrusion-translate-anchor'), transform.angle, pixelsToTileUnits);\n var height = this.paint.get('fill-extrusion-height').evaluate(feature, featureState);\n var base = this.paint.get('fill-extrusion-base').evaluate(feature, featureState);\n var projectedQueryGeometry = projectQueryGeometry$1(translatedPolygon, pixelPosMatrix, transform, 0);\n var projected = projectExtrusion(geometry, base, height, pixelPosMatrix);\n var projectedBase = projected[0];\n var projectedTop = projected[1];\n return checkIntersection(projectedBase, projectedTop, projectedQueryGeometry);\n };\n return FillExtrusionStyleLayer;\n}(StyleLayer);\nfunction dot$2(a, b) {\n return a.x * b.x + a.y * b.y;\n}\nfunction getIntersectionDistance(projectedQueryGeometry, projectedFace) {\n if (projectedQueryGeometry.length === 1) {\n var i = 0;\n var a = projectedFace[i++];\n var b;\n while (!b || a.equals(b)) {\n b = projectedFace[i++];\n if (!b) {\n return Infinity;\n }\n }\n for (; i < projectedFace.length; i++) {\n var c = projectedFace[i];\n var p = projectedQueryGeometry[0];\n var ab = b.sub(a);\n var ac = c.sub(a);\n var ap = p.sub(a);\n var dotABAB = dot$2(ab, ab);\n var dotABAC = dot$2(ab, ac);\n var dotACAC = dot$2(ac, ac);\n var dotAPAB = dot$2(ap, ab);\n var dotAPAC = dot$2(ap, ac);\n var denom = dotABAB * dotACAC - dotABAC * dotABAC;\n var v = (dotACAC * dotAPAB - dotABAC * dotAPAC) / denom;\n var w = (dotABAB * dotAPAC - dotABAC * dotAPAB) / denom;\n var u = 1 - v - w;\n var distance = a.z * u + b.z * v + c.z * w;\n if (isFinite(distance)) {\n return distance;\n }\n }\n return Infinity;\n } else {\n var closestDistance = Infinity;\n for (var i$1 = 0, list = projectedFace; i$1 < list.length; i$1 += 1) {\n var p$1 = list[i$1];\n closestDistance = Math.min(closestDistance, p$1.z);\n }\n return closestDistance;\n }\n}\nfunction checkIntersection(projectedBase, projectedTop, projectedQueryGeometry) {\n var closestDistance = Infinity;\n if (polygonIntersectsMultiPolygon(projectedQueryGeometry, projectedTop)) {\n closestDistance = getIntersectionDistance(projectedQueryGeometry, projectedTop[0]);\n }\n for (var r = 0; r < projectedTop.length; r++) {\n var ringTop = projectedTop[r];\n var ringBase = projectedBase[r];\n for (var p = 0; p < ringTop.length - 1; p++) {\n var topA = ringTop[p];\n var topB = ringTop[p + 1];\n var baseA = ringBase[p];\n var baseB = ringBase[p + 1];\n var face = [\n topA,\n topB,\n baseB,\n baseA,\n topA\n ];\n if (polygonIntersectsPolygon(projectedQueryGeometry, face)) {\n closestDistance = Math.min(closestDistance, getIntersectionDistance(projectedQueryGeometry, face));\n }\n }\n }\n return closestDistance === Infinity ? false : closestDistance;\n}\nfunction projectExtrusion(geometry, zBase, zTop, m) {\n var projectedBase = [];\n var projectedTop = [];\n var baseXZ = m[8] * zBase;\n var baseYZ = m[9] * zBase;\n var baseZZ = m[10] * zBase;\n var baseWZ = m[11] * zBase;\n var topXZ = m[8] * zTop;\n var topYZ = m[9] * zTop;\n var topZZ = m[10] * zTop;\n var topWZ = m[11] * zTop;\n for (var i$1 = 0, list$1 = geometry; i$1 < list$1.length; i$1 += 1) {\n var r = list$1[i$1];\n var ringBase = [];\n var ringTop = [];\n for (var i = 0, list = r; i < list.length; i += 1) {\n var p = list[i];\n var x = p.x;\n var y = p.y;\n var sX = m[0] * x + m[4] * y + m[12];\n var sY = m[1] * x + m[5] * y + m[13];\n var sZ = m[2] * x + m[6] * y + m[14];\n var sW = m[3] * x + m[7] * y + m[15];\n var baseX = sX + baseXZ;\n var baseY = sY + baseYZ;\n var baseZ = sZ + baseZZ;\n var baseW = sW + baseWZ;\n var topX = sX + topXZ;\n var topY = sY + topYZ;\n var topZ = sZ + topZZ;\n var topW = sW + topWZ;\n var b = new pointGeometry(baseX / baseW, baseY / baseW);\n b.z = baseZ / baseW;\n ringBase.push(b);\n var t = new pointGeometry(topX / topW, topY / topW);\n t.z = topZ / topW;\n ringTop.push(t);\n }\n projectedBase.push(ringBase);\n projectedTop.push(ringTop);\n }\n return [\n projectedBase,\n projectedTop\n ];\n}\nfunction projectQueryGeometry$1(queryGeometry, pixelPosMatrix, transform, z) {\n var projectedQueryGeometry = [];\n for (var i = 0, list = queryGeometry; i < list.length; i += 1) {\n var p = list[i];\n var v = [\n p.x,\n p.y,\n z,\n 1\n ];\n transformMat4(v, v, pixelPosMatrix);\n projectedQueryGeometry.push(new pointGeometry(v[0] / v[3], v[1] / v[3]));\n }\n return projectedQueryGeometry;\n}\n\nvar lineLayoutAttributes = createLayout([\n {\n name: 'a_pos_normal',\n components: 2,\n type: 'Int16'\n },\n {\n name: 'a_data',\n components: 4,\n type: 'Uint8'\n }\n], 4);\nvar members$3 = lineLayoutAttributes.members;\n\nvar vectorTileFeatureTypes$1 = vectorTile.VectorTileFeature.types;\nvar EXTRUDE_SCALE = 63;\nvar COS_HALF_SHARP_CORNER = Math.cos(75 / 2 * (Math.PI / 180));\nvar SHARP_CORNER_OFFSET = 15;\nvar DEG_PER_TRIANGLE = 20;\nvar LINE_DISTANCE_BUFFER_BITS = 15;\nvar LINE_DISTANCE_SCALE = 1 / 2;\nvar MAX_LINE_DISTANCE = Math.pow(2, LINE_DISTANCE_BUFFER_BITS - 1) / LINE_DISTANCE_SCALE;\nvar LineBucket = function LineBucket(options) {\n this.zoom = options.zoom;\n this.overscaling = options.overscaling;\n this.layers = options.layers;\n this.layerIds = this.layers.map(function (layer) {\n return layer.id;\n });\n this.index = options.index;\n this.hasPattern = false;\n this.patternFeatures = [];\n this.layoutVertexArray = new StructArrayLayout2i4ub8();\n this.indexArray = new StructArrayLayout3ui6();\n this.programConfigurations = new ProgramConfigurationSet(members$3, options.layers, options.zoom);\n this.segments = new SegmentVector();\n this.stateDependentLayerIds = this.layers.filter(function (l) {\n return l.isStateDependent();\n }).map(function (l) {\n return l.id;\n });\n};\nLineBucket.prototype.populate = function populate(features, options, canonical) {\n this.hasPattern = hasPattern('line', this.layers, options);\n var lineSortKey = this.layers[0].layout.get('line-sort-key');\n var bucketFeatures = [];\n for (var i = 0, list = features; i < list.length; i += 1) {\n var ref = list[i];\n var feature = ref.feature;\n var id = ref.id;\n var index = ref.index;\n var sourceLayerIndex = ref.sourceLayerIndex;\n var needGeometry = this.layers[0]._featureFilter.needGeometry;\n var evaluationFeature = {\n type: feature.type,\n id: id,\n properties: feature.properties,\n geometry: needGeometry ? loadGeometry(feature) : []\n };\n if (!this.layers[0]._featureFilter.filter(new EvaluationParameters(this.zoom), evaluationFeature, canonical)) {\n continue;\n }\n if (!needGeometry) {\n evaluationFeature.geometry = loadGeometry(feature);\n }\n var sortKey = lineSortKey ? lineSortKey.evaluate(evaluationFeature, {}, canonical) : undefined;\n var bucketFeature = {\n id: id,\n properties: feature.properties,\n type: feature.type,\n sourceLayerIndex: sourceLayerIndex,\n index: index,\n geometry: evaluationFeature.geometry,\n patterns: {},\n sortKey: sortKey\n };\n bucketFeatures.push(bucketFeature);\n }\n if (lineSortKey) {\n bucketFeatures.sort(function (a, b) {\n return a.sortKey - b.sortKey;\n });\n }\n for (var i$1 = 0, list$1 = bucketFeatures; i$1 < list$1.length; i$1 += 1) {\n var bucketFeature$1 = list$1[i$1];\n var ref$1 = bucketFeature$1;\n var geometry = ref$1.geometry;\n var index$1 = ref$1.index;\n var sourceLayerIndex$1 = ref$1.sourceLayerIndex;\n if (this.hasPattern) {\n var patternBucketFeature = addPatternDependencies('line', this.layers, bucketFeature$1, this.zoom, options);\n this.patternFeatures.push(patternBucketFeature);\n } else {\n this.addFeature(bucketFeature$1, geometry, index$1, canonical, {});\n }\n var feature$1 = features[index$1].feature;\n options.featureIndex.insert(feature$1, geometry, index$1, sourceLayerIndex$1, this.index);\n }\n};\nLineBucket.prototype.update = function update(states, vtLayer, imagePositions) {\n if (!this.stateDependentLayers.length) {\n return;\n }\n this.programConfigurations.updatePaintArrays(states, vtLayer, this.stateDependentLayers, imagePositions);\n};\nLineBucket.prototype.addFeatures = function addFeatures(options, canonical, imagePositions) {\n for (var i = 0, list = this.patternFeatures; i < list.length; i += 1) {\n var feature = list[i];\n this.addFeature(feature, feature.geometry, feature.index, canonical, imagePositions);\n }\n};\nLineBucket.prototype.isEmpty = function isEmpty() {\n return this.layoutVertexArray.length === 0;\n};\nLineBucket.prototype.uploadPending = function uploadPending() {\n return !this.uploaded || this.programConfigurations.needsUpload;\n};\nLineBucket.prototype.upload = function upload(context) {\n if (!this.uploaded) {\n this.layoutVertexBuffer = context.createVertexBuffer(this.layoutVertexArray, members$3);\n this.indexBuffer = context.createIndexBuffer(this.indexArray);\n }\n this.programConfigurations.upload(context);\n this.uploaded = true;\n};\nLineBucket.prototype.destroy = function destroy() {\n if (!this.layoutVertexBuffer) {\n return;\n }\n this.layoutVertexBuffer.destroy();\n this.indexBuffer.destroy();\n this.programConfigurations.destroy();\n this.segments.destroy();\n};\nLineBucket.prototype.addFeature = function addFeature(feature, geometry, index, canonical, imagePositions) {\n var layout = this.layers[0].layout;\n var join = layout.get('line-join').evaluate(feature, {});\n var cap = layout.get('line-cap');\n var miterLimit = layout.get('line-miter-limit');\n var roundLimit = layout.get('line-round-limit');\n for (var i = 0, list = geometry; i < list.length; i += 1) {\n var line = list[i];\n this.addLine(line, feature, join, cap, miterLimit, roundLimit);\n }\n this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length, feature, index, imagePositions, canonical);\n};\nLineBucket.prototype.addLine = function addLine(vertices, feature, join, cap, miterLimit, roundLimit) {\n this.distance = 0;\n this.scaledDistance = 0;\n this.totalDistance = 0;\n if (!!feature.properties && feature.properties.hasOwnProperty('mapbox_clip_start') && feature.properties.hasOwnProperty('mapbox_clip_end')) {\n this.clipStart = +feature.properties['mapbox_clip_start'];\n this.clipEnd = +feature.properties['mapbox_clip_end'];\n for (var i = 0; i < vertices.length - 1; i++) {\n this.totalDistance += vertices[i].dist(vertices[i + 1]);\n }\n this.updateScaledDistance();\n }\n var isPolygon = vectorTileFeatureTypes$1[feature.type] === 'Polygon';\n var len = vertices.length;\n while (len >= 2 && vertices[len - 1].equals(vertices[len - 2])) {\n len--;\n }\n var first = 0;\n while (first < len - 1 && vertices[first].equals(vertices[first + 1])) {\n first++;\n }\n if (len < (isPolygon ? 3 : 2)) {\n return;\n }\n if (join === 'bevel') {\n miterLimit = 1.05;\n }\n var sharpCornerOffset = this.overscaling <= 16 ? SHARP_CORNER_OFFSET * EXTENT$1 / (512 * this.overscaling) : 0;\n var segment = this.segments.prepareSegment(len * 10, this.layoutVertexArray, this.indexArray);\n var currentVertex;\n var prevVertex = undefined;\n var nextVertex = undefined;\n var prevNormal = undefined;\n var nextNormal = undefined;\n this.e1 = this.e2 = -1;\n if (isPolygon) {\n currentVertex = vertices[len - 2];\n nextNormal = vertices[first].sub(currentVertex)._unit()._perp();\n }\n for (var i$1 = first; i$1 < len; i$1++) {\n nextVertex = i$1 === len - 1 ? isPolygon ? vertices[first + 1] : undefined : vertices[i$1 + 1];\n if (nextVertex && vertices[i$1].equals(nextVertex)) {\n continue;\n }\n if (nextNormal) {\n prevNormal = nextNormal;\n }\n if (currentVertex) {\n prevVertex = currentVertex;\n }\n currentVertex = vertices[i$1];\n nextNormal = nextVertex ? nextVertex.sub(currentVertex)._unit()._perp() : prevNormal;\n prevNormal = prevNormal || nextNormal;\n var joinNormal = prevNormal.add(nextNormal);\n if (joinNormal.x !== 0 || joinNormal.y !== 0) {\n joinNormal._unit();\n }\n var cosAngle = prevNormal.x * nextNormal.x + prevNormal.y * nextNormal.y;\n var cosHalfAngle = joinNormal.x * nextNormal.x + joinNormal.y * nextNormal.y;\n var miterLength = cosHalfAngle !== 0 ? 1 / cosHalfAngle : Infinity;\n var approxAngle = 2 * Math.sqrt(2 - 2 * cosHalfAngle);\n var isSharpCorner = cosHalfAngle < COS_HALF_SHARP_CORNER && prevVertex && nextVertex;\n var lineTurnsLeft = prevNormal.x * nextNormal.y - prevNormal.y * nextNormal.x > 0;\n if (isSharpCorner && i$1 > first) {\n var prevSegmentLength = currentVertex.dist(prevVertex);\n if (prevSegmentLength > 2 * sharpCornerOffset) {\n var newPrevVertex = currentVertex.sub(currentVertex.sub(prevVertex)._mult(sharpCornerOffset / prevSegmentLength)._round());\n this.updateDistance(prevVertex, newPrevVertex);\n this.addCurrentVertex(newPrevVertex, prevNormal, 0, 0, segment);\n prevVertex = newPrevVertex;\n }\n }\n var middleVertex = prevVertex && nextVertex;\n var currentJoin = middleVertex ? join : isPolygon ? 'butt' : cap;\n if (middleVertex && currentJoin === 'round') {\n if (miterLength < roundLimit) {\n currentJoin = 'miter';\n } else if (miterLength <= 2) {\n currentJoin = 'fakeround';\n }\n }\n if (currentJoin === 'miter' && miterLength > miterLimit) {\n currentJoin = 'bevel';\n }\n if (currentJoin === 'bevel') {\n if (miterLength > 2) {\n currentJoin = 'flipbevel';\n }\n if (miterLength < miterLimit) {\n currentJoin = 'miter';\n }\n }\n if (prevVertex) {\n this.updateDistance(prevVertex, currentVertex);\n }\n if (currentJoin === 'miter') {\n joinNormal._mult(miterLength);\n this.addCurrentVertex(currentVertex, joinNormal, 0, 0, segment);\n } else if (currentJoin === 'flipbevel') {\n if (miterLength > 100) {\n joinNormal = nextNormal.mult(-1);\n } else {\n var bevelLength = miterLength * prevNormal.add(nextNormal).mag() / prevNormal.sub(nextNormal).mag();\n joinNormal._perp()._mult(bevelLength * (lineTurnsLeft ? -1 : 1));\n }\n this.addCurrentVertex(currentVertex, joinNormal, 0, 0, segment);\n this.addCurrentVertex(currentVertex, joinNormal.mult(-1), 0, 0, segment);\n } else if (currentJoin === 'bevel' || currentJoin === 'fakeround') {\n var offset = -Math.sqrt(miterLength * miterLength - 1);\n var offsetA = lineTurnsLeft ? offset : 0;\n var offsetB = lineTurnsLeft ? 0 : offset;\n if (prevVertex) {\n this.addCurrentVertex(currentVertex, prevNormal, offsetA, offsetB, segment);\n }\n if (currentJoin === 'fakeround') {\n var n = Math.round(approxAngle * 180 / Math.PI / DEG_PER_TRIANGLE);\n for (var m = 1; m < n; m++) {\n var t = m / n;\n if (t !== 0.5) {\n var t2 = t - 0.5;\n var A = 1.0904 + cosAngle * (-3.2452 + cosAngle * (3.55645 - cosAngle * 1.43519));\n var B = 0.848013 + cosAngle * (-1.06021 + cosAngle * 0.215638);\n t = t + t * t2 * (t - 1) * (A * t2 * t2 + B);\n }\n var extrude = nextNormal.sub(prevNormal)._mult(t)._add(prevNormal)._unit()._mult(lineTurnsLeft ? -1 : 1);\n this.addHalfVertex(currentVertex, extrude.x, extrude.y, false, lineTurnsLeft, 0, segment);\n }\n }\n if (nextVertex) {\n this.addCurrentVertex(currentVertex, nextNormal, -offsetA, -offsetB, segment);\n }\n } else if (currentJoin === 'butt') {\n this.addCurrentVertex(currentVertex, joinNormal, 0, 0, segment);\n } else if (currentJoin === 'square') {\n var offset$1 = prevVertex ? 1 : -1;\n this.addCurrentVertex(currentVertex, joinNormal, offset$1, offset$1, segment);\n } else if (currentJoin === 'round') {\n if (prevVertex) {\n this.addCurrentVertex(currentVertex, prevNormal, 0, 0, segment);\n this.addCurrentVertex(currentVertex, prevNormal, 1, 1, segment, true);\n }\n if (nextVertex) {\n this.addCurrentVertex(currentVertex, nextNormal, -1, -1, segment, true);\n this.addCurrentVertex(currentVertex, nextNormal, 0, 0, segment);\n }\n }\n if (isSharpCorner && i$1 < len - 1) {\n var nextSegmentLength = currentVertex.dist(nextVertex);\n if (nextSegmentLength > 2 * sharpCornerOffset) {\n var newCurrentVertex = currentVertex.add(nextVertex.sub(currentVertex)._mult(sharpCornerOffset / nextSegmentLength)._round());\n this.updateDistance(currentVertex, newCurrentVertex);\n this.addCurrentVertex(newCurrentVertex, nextNormal, 0, 0, segment);\n currentVertex = newCurrentVertex;\n }\n }\n }\n};\nLineBucket.prototype.addCurrentVertex = function addCurrentVertex(p, normal, endLeft, endRight, segment, round) {\n if (round === void 0)\n round = false;\n var leftX = normal.x + normal.y * endLeft;\n var leftY = normal.y - normal.x * endLeft;\n var rightX = -normal.x + normal.y * endRight;\n var rightY = -normal.y - normal.x * endRight;\n this.addHalfVertex(p, leftX, leftY, round, false, endLeft, segment);\n this.addHalfVertex(p, rightX, rightY, round, true, -endRight, segment);\n if (this.distance > MAX_LINE_DISTANCE / 2 && this.totalDistance === 0) {\n this.distance = 0;\n this.addCurrentVertex(p, normal, endLeft, endRight, segment, round);\n }\n};\nLineBucket.prototype.addHalfVertex = function addHalfVertex(ref, extrudeX, extrudeY, round, up, dir, segment) {\n var x = ref.x;\n var y = ref.y;\n var linesofar = this.scaledDistance * LINE_DISTANCE_SCALE;\n this.layoutVertexArray.emplaceBack((x << 1) + (round ? 1 : 0), (y << 1) + (up ? 1 : 0), Math.round(EXTRUDE_SCALE * extrudeX) + 128, Math.round(EXTRUDE_SCALE * extrudeY) + 128, (dir === 0 ? 0 : dir < 0 ? -1 : 1) + 1 | (linesofar & 63) << 2, linesofar >> 6);\n var e = segment.vertexLength++;\n if (this.e1 >= 0 && this.e2 >= 0) {\n this.indexArray.emplaceBack(this.e1, this.e2, e);\n segment.primitiveLength++;\n }\n if (up) {\n this.e2 = e;\n } else {\n this.e1 = e;\n }\n};\nLineBucket.prototype.updateScaledDistance = function updateScaledDistance() {\n this.scaledDistance = this.totalDistance > 0 ? (this.clipStart + (this.clipEnd - this.clipStart) * this.distance / this.totalDistance) * (MAX_LINE_DISTANCE - 1) : this.distance;\n};\nLineBucket.prototype.updateDistance = function updateDistance(prev, next) {\n this.distance += prev.dist(next);\n this.updateScaledDistance();\n};\nregister('LineBucket', LineBucket, {\n omit: [\n 'layers',\n 'patternFeatures'\n ]\n});\n\nvar layout$6 = new Properties({\n 'line-cap': new DataConstantProperty(spec['layout_line']['line-cap']),\n 'line-join': new DataDrivenProperty(spec['layout_line']['line-join']),\n 'line-miter-limit': new DataConstantProperty(spec['layout_line']['line-miter-limit']),\n 'line-round-limit': new DataConstantProperty(spec['layout_line']['line-round-limit']),\n 'line-sort-key': new DataDrivenProperty(spec['layout_line']['line-sort-key'])\n});\nvar paint$6 = new Properties({\n 'line-opacity': new DataDrivenProperty(spec['paint_line']['line-opacity']),\n 'line-color': new DataDrivenProperty(spec['paint_line']['line-color']),\n 'line-translate': new DataConstantProperty(spec['paint_line']['line-translate']),\n 'line-translate-anchor': new DataConstantProperty(spec['paint_line']['line-translate-anchor']),\n 'line-width': new DataDrivenProperty(spec['paint_line']['line-width']),\n 'line-gap-width': new DataDrivenProperty(spec['paint_line']['line-gap-width']),\n 'line-offset': new DataDrivenProperty(spec['paint_line']['line-offset']),\n 'line-blur': new DataDrivenProperty(spec['paint_line']['line-blur']),\n 'line-dasharray': new CrossFadedProperty(spec['paint_line']['line-dasharray']),\n 'line-pattern': new CrossFadedDataDrivenProperty(spec['paint_line']['line-pattern']),\n 'line-gradient': new ColorRampProperty(spec['paint_line']['line-gradient'])\n});\nvar properties$5 = {\n paint: paint$6,\n layout: layout$6\n};\n\nvar LineFloorwidthProperty = function (DataDrivenProperty) {\n function LineFloorwidthProperty() {\n DataDrivenProperty.apply(this, arguments);\n }\n if (DataDrivenProperty)\n LineFloorwidthProperty.__proto__ = DataDrivenProperty;\n LineFloorwidthProperty.prototype = Object.create(DataDrivenProperty && DataDrivenProperty.prototype);\n LineFloorwidthProperty.prototype.constructor = LineFloorwidthProperty;\n LineFloorwidthProperty.prototype.possiblyEvaluate = function possiblyEvaluate(value, parameters) {\n parameters = new EvaluationParameters(Math.floor(parameters.zoom), {\n now: parameters.now,\n fadeDuration: parameters.fadeDuration,\n zoomHistory: parameters.zoomHistory,\n transition: parameters.transition\n });\n return DataDrivenProperty.prototype.possiblyEvaluate.call(this, value, parameters);\n };\n LineFloorwidthProperty.prototype.evaluate = function evaluate(value, globals, feature, featureState) {\n globals = extend({}, globals, { zoom: Math.floor(globals.zoom) });\n return DataDrivenProperty.prototype.evaluate.call(this, value, globals, feature, featureState);\n };\n return LineFloorwidthProperty;\n}(DataDrivenProperty);\nvar lineFloorwidthProperty = new LineFloorwidthProperty(properties$5.paint.properties['line-width'].specification);\nlineFloorwidthProperty.useIntegerZoom = true;\nvar LineStyleLayer = function (StyleLayer) {\n function LineStyleLayer(layer) {\n StyleLayer.call(this, layer, properties$5);\n }\n if (StyleLayer)\n LineStyleLayer.__proto__ = StyleLayer;\n LineStyleLayer.prototype = Object.create(StyleLayer && StyleLayer.prototype);\n LineStyleLayer.prototype.constructor = LineStyleLayer;\n LineStyleLayer.prototype._handleSpecialPaintPropertyUpdate = function _handleSpecialPaintPropertyUpdate(name) {\n if (name === 'line-gradient') {\n this._updateGradient();\n }\n };\n LineStyleLayer.prototype._updateGradient = function _updateGradient() {\n var expression = this._transitionablePaint._values['line-gradient'].value.expression;\n this.gradient = renderColorRamp(expression, 'lineProgress');\n this.gradientTexture = null;\n };\n LineStyleLayer.prototype.recalculate = function recalculate(parameters, availableImages) {\n StyleLayer.prototype.recalculate.call(this, parameters, availableImages);\n this.paint._values['line-floorwidth'] = lineFloorwidthProperty.possiblyEvaluate(this._transitioningPaint._values['line-width'].value, parameters);\n };\n LineStyleLayer.prototype.createBucket = function createBucket(parameters) {\n return new LineBucket(parameters);\n };\n LineStyleLayer.prototype.queryRadius = function queryRadius(bucket) {\n var lineBucket = bucket;\n var width = getLineWidth(getMaximumPaintValue('line-width', this, lineBucket), getMaximumPaintValue('line-gap-width', this, lineBucket));\n var offset = getMaximumPaintValue('line-offset', this, lineBucket);\n return width / 2 + Math.abs(offset) + translateDistance(this.paint.get('line-translate'));\n };\n LineStyleLayer.prototype.queryIntersectsFeature = function queryIntersectsFeature(queryGeometry, feature, featureState, geometry, zoom, transform, pixelsToTileUnits) {\n var translatedPolygon = translate(queryGeometry, this.paint.get('line-translate'), this.paint.get('line-translate-anchor'), transform.angle, pixelsToTileUnits);\n var halfWidth = pixelsToTileUnits / 2 * getLineWidth(this.paint.get('line-width').evaluate(feature, featureState), this.paint.get('line-gap-width').evaluate(feature, featureState));\n var lineOffset = this.paint.get('line-offset').evaluate(feature, featureState);\n if (lineOffset) {\n geometry = offsetLine(geometry, lineOffset * pixelsToTileUnits);\n }\n return polygonIntersectsBufferedMultiLine(translatedPolygon, geometry, halfWidth);\n };\n LineStyleLayer.prototype.isTileClipped = function isTileClipped() {\n return true;\n };\n return LineStyleLayer;\n}(StyleLayer);\nfunction getLineWidth(lineWidth, lineGapWidth) {\n if (lineGapWidth > 0) {\n return lineGapWidth + 2 * lineWidth;\n } else {\n return lineWidth;\n }\n}\nfunction offsetLine(rings, offset) {\n var newRings = [];\n var zero = new pointGeometry(0, 0);\n for (var k = 0; k < rings.length; k++) {\n var ring = rings[k];\n var newRing = [];\n for (var i = 0; i < ring.length; i++) {\n var a = ring[i - 1];\n var b = ring[i];\n var c = ring[i + 1];\n var aToB = i === 0 ? zero : b.sub(a)._unit()._perp();\n var bToC = i === ring.length - 1 ? zero : c.sub(b)._unit()._perp();\n var extrude = aToB._add(bToC)._unit();\n var cosHalfAngle = extrude.x * bToC.x + extrude.y * bToC.y;\n extrude._mult(1 / cosHalfAngle);\n newRing.push(extrude._mult(offset)._add(b));\n }\n newRings.push(newRing);\n }\n return newRings;\n}\n\nvar symbolLayoutAttributes = createLayout([\n {\n name: 'a_pos_offset',\n components: 4,\n type: 'Int16'\n },\n {\n name: 'a_data',\n components: 4,\n type: 'Uint16'\n },\n {\n name: 'a_pixeloffset',\n components: 4,\n type: 'Int16'\n }\n], 4);\nvar dynamicLayoutAttributes = createLayout([{\n name: 'a_projected_pos',\n components: 3,\n type: 'Float32'\n }], 4);\nvar placementOpacityAttributes = createLayout([{\n name: 'a_fade_opacity',\n components: 1,\n type: 'Uint32'\n }], 4);\nvar collisionVertexAttributes = createLayout([\n {\n name: 'a_placed',\n components: 2,\n type: 'Uint8'\n },\n {\n name: 'a_shift',\n components: 2,\n type: 'Float32'\n }\n]);\nvar collisionBox = createLayout([\n {\n type: 'Int16',\n name: 'anchorPointX'\n },\n {\n type: 'Int16',\n name: 'anchorPointY'\n },\n {\n type: 'Int16',\n name: 'x1'\n },\n {\n type: 'Int16',\n name: 'y1'\n },\n {\n type: 'Int16',\n name: 'x2'\n },\n {\n type: 'Int16',\n name: 'y2'\n },\n {\n type: 'Uint32',\n name: 'featureIndex'\n },\n {\n type: 'Uint16',\n name: 'sourceLayerIndex'\n },\n {\n type: 'Uint16',\n name: 'bucketIndex'\n }\n]);\nvar collisionBoxLayout = createLayout([\n {\n name: 'a_pos',\n components: 2,\n type: 'Int16'\n },\n {\n name: 'a_anchor_pos',\n components: 2,\n type: 'Int16'\n },\n {\n name: 'a_extrude',\n components: 2,\n type: 'Int16'\n }\n], 4);\nvar collisionCircleLayout = createLayout([\n {\n name: 'a_pos',\n components: 2,\n type: 'Float32'\n },\n {\n name: 'a_radius',\n components: 1,\n type: 'Float32'\n },\n {\n name: 'a_flags',\n components: 2,\n type: 'Int16'\n }\n], 4);\nvar quadTriangle = createLayout([{\n name: 'triangle',\n components: 3,\n type: 'Uint16'\n }]);\nvar placement = createLayout([\n {\n type: 'Int16',\n name: 'anchorX'\n },\n {\n type: 'Int16',\n name: 'anchorY'\n },\n {\n type: 'Uint16',\n name: 'glyphStartIndex'\n },\n {\n type: 'Uint16',\n name: 'numGlyphs'\n },\n {\n type: 'Uint32',\n name: 'vertexStartIndex'\n },\n {\n type: 'Uint32',\n name: 'lineStartIndex'\n },\n {\n type: 'Uint32',\n name: 'lineLength'\n },\n {\n type: 'Uint16',\n name: 'segment'\n },\n {\n type: 'Uint16',\n name: 'lowerSize'\n },\n {\n type: 'Uint16',\n name: 'upperSize'\n },\n {\n type: 'Float32',\n name: 'lineOffsetX'\n },\n {\n type: 'Float32',\n name: 'lineOffsetY'\n },\n {\n type: 'Uint8',\n name: 'writingMode'\n },\n {\n type: 'Uint8',\n name: 'placedOrientation'\n },\n {\n type: 'Uint8',\n name: 'hidden'\n },\n {\n type: 'Uint32',\n name: 'crossTileID'\n },\n {\n type: 'Int16',\n name: 'associatedIconIndex'\n }\n]);\nvar symbolInstance = createLayout([\n {\n type: 'Int16',\n name: 'anchorX'\n },\n {\n type: 'Int16',\n name: 'anchorY'\n },\n {\n type: 'Int16',\n name: 'rightJustifiedTextSymbolIndex'\n },\n {\n type: 'Int16',\n name: 'centerJustifiedTextSymbolIndex'\n },\n {\n type: 'Int16',\n name: 'leftJustifiedTextSymbolIndex'\n },\n {\n type: 'Int16',\n name: 'verticalPlacedTextSymbolIndex'\n },\n {\n type: 'Int16',\n name: 'placedIconSymbolIndex'\n },\n {\n type: 'Int16',\n name: 'verticalPlacedIconSymbolIndex'\n },\n {\n type: 'Uint16',\n name: 'key'\n },\n {\n type: 'Uint16',\n name: 'textBoxStartIndex'\n },\n {\n type: 'Uint16',\n name: 'textBoxEndIndex'\n },\n {\n type: 'Uint16',\n name: 'verticalTextBoxStartIndex'\n },\n {\n type: 'Uint16',\n name: 'verticalTextBoxEndIndex'\n },\n {\n type: 'Uint16',\n name: 'iconBoxStartIndex'\n },\n {\n type: 'Uint16',\n name: 'iconBoxEndIndex'\n },\n {\n type: 'Uint16',\n name: 'verticalIconBoxStartIndex'\n },\n {\n type: 'Uint16',\n name: 'verticalIconBoxEndIndex'\n },\n {\n type: 'Uint16',\n name: 'featureIndex'\n },\n {\n type: 'Uint16',\n name: 'numHorizontalGlyphVertices'\n },\n {\n type: 'Uint16',\n name: 'numVerticalGlyphVertices'\n },\n {\n type: 'Uint16',\n name: 'numIconVertices'\n },\n {\n type: 'Uint16',\n name: 'numVerticalIconVertices'\n },\n {\n type: 'Uint16',\n name: 'useRuntimeCollisionCircles'\n },\n {\n type: 'Uint32',\n name: 'crossTileID'\n },\n {\n type: 'Float32',\n name: 'textBoxScale'\n },\n {\n type: 'Float32',\n components: 2,\n name: 'textOffset'\n },\n {\n type: 'Float32',\n name: 'collisionCircleDiameter'\n }\n]);\nvar glyphOffset = createLayout([{\n type: 'Float32',\n name: 'offsetX'\n }]);\nvar lineVertex = createLayout([\n {\n type: 'Int16',\n name: 'x'\n },\n {\n type: 'Int16',\n name: 'y'\n },\n {\n type: 'Int16',\n name: 'tileUnitDistanceFromAnchor'\n }\n]);\n\nfunction transformText(text, layer, feature) {\n var transform = layer.layout.get('text-transform').evaluate(feature, {});\n if (transform === 'uppercase') {\n text = text.toLocaleUpperCase();\n } else if (transform === 'lowercase') {\n text = text.toLocaleLowerCase();\n }\n if (plugin.applyArabicShaping) {\n text = plugin.applyArabicShaping(text);\n }\n return text;\n}\nfunction transformText$1 (text, layer, feature) {\n text.sections.forEach(function (section) {\n section.text = transformText(section.text, layer, feature);\n });\n return text;\n}\n\nfunction mergeLines (features) {\n var leftIndex = {};\n var rightIndex = {};\n var mergedFeatures = [];\n var mergedIndex = 0;\n function add(k) {\n mergedFeatures.push(features[k]);\n mergedIndex++;\n }\n function mergeFromRight(leftKey, rightKey, geom) {\n var i = rightIndex[leftKey];\n delete rightIndex[leftKey];\n rightIndex[rightKey] = i;\n mergedFeatures[i].geometry[0].pop();\n mergedFeatures[i].geometry[0] = mergedFeatures[i].geometry[0].concat(geom[0]);\n return i;\n }\n function mergeFromLeft(leftKey, rightKey, geom) {\n var i = leftIndex[rightKey];\n delete leftIndex[rightKey];\n leftIndex[leftKey] = i;\n mergedFeatures[i].geometry[0].shift();\n mergedFeatures[i].geometry[0] = geom[0].concat(mergedFeatures[i].geometry[0]);\n return i;\n }\n function getKey(text, geom, onRight) {\n var point = onRight ? geom[0][geom[0].length - 1] : geom[0][0];\n return text + ':' + point.x + ':' + point.y;\n }\n for (var k = 0; k < features.length; k++) {\n var feature = features[k];\n var geom = feature.geometry;\n var text = feature.text ? feature.text.toString() : null;\n if (!text) {\n add(k);\n continue;\n }\n var leftKey = getKey(text, geom), rightKey = getKey(text, geom, true);\n if (leftKey in rightIndex && rightKey in leftIndex && rightIndex[leftKey] !== leftIndex[rightKey]) {\n var j = mergeFromLeft(leftKey, rightKey, geom);\n var i = mergeFromRight(leftKey, rightKey, mergedFeatures[j].geometry);\n delete leftIndex[leftKey];\n delete rightIndex[rightKey];\n rightIndex[getKey(text, mergedFeatures[i].geometry, true)] = i;\n mergedFeatures[j].geometry = null;\n } else if (leftKey in rightIndex) {\n mergeFromRight(leftKey, rightKey, geom);\n } else if (rightKey in leftIndex) {\n mergeFromLeft(leftKey, rightKey, geom);\n } else {\n add(k);\n leftIndex[leftKey] = mergedIndex - 1;\n rightIndex[rightKey] = mergedIndex - 1;\n }\n }\n return mergedFeatures.filter(function (f) {\n return f.geometry;\n });\n}\n\nvar verticalizedCharacterMap = {\n '!': '\\uFE15',\n '#': '\\uFF03',\n '$': '\\uFF04',\n '%': '\\uFF05',\n '&': '\\uFF06',\n '(': '\\uFE35',\n ')': '\\uFE36',\n '*': '\\uFF0A',\n '+': '\\uFF0B',\n ',': '\\uFE10',\n '-': '\\uFE32',\n '.': '\\u30FB',\n '/': '\\uFF0F',\n ':': '\\uFE13',\n ';': '\\uFE14',\n '<': '\\uFE3F',\n '=': '\\uFF1D',\n '>': '\\uFE40',\n '?': '\\uFE16',\n '@': '\\uFF20',\n '[': '\\uFE47',\n '\\\\': '\\uFF3C',\n ']': '\\uFE48',\n '^': '\\uFF3E',\n '_': '︳',\n '`': '\\uFF40',\n '{': '\\uFE37',\n '|': '\\u2015',\n '}': '\\uFE38',\n '~': '\\uFF5E',\n '\\xA2': '\\uFFE0',\n '\\xA3': '\\uFFE1',\n '\\xA5': '\\uFFE5',\n '\\xA6': '\\uFFE4',\n '\\xAC': '\\uFFE2',\n '\\xAF': '\\uFFE3',\n '\\u2013': '\\uFE32',\n '\\u2014': '\\uFE31',\n '\\u2018': '\\uFE43',\n '\\u2019': '\\uFE44',\n '\\u201C': '\\uFE41',\n '\\u201D': '\\uFE42',\n '\\u2026': '\\uFE19',\n '\\u2027': '\\u30FB',\n '\\u20A9': '\\uFFE6',\n '\\u3001': '\\uFE11',\n '\\u3002': '\\uFE12',\n '\\u3008': '\\uFE3F',\n '\\u3009': '\\uFE40',\n '\\u300A': '\\uFE3D',\n '\\u300B': '\\uFE3E',\n '\\u300C': '\\uFE41',\n '\\u300D': '\\uFE42',\n '\\u300E': '\\uFE43',\n '\\u300F': '\\uFE44',\n '\\u3010': '\\uFE3B',\n '\\u3011': '\\uFE3C',\n '\\u3014': '\\uFE39',\n '\\u3015': '\\uFE3A',\n '\\u3016': '\\uFE17',\n '\\u3017': '\\uFE18',\n '\\uFF01': '\\uFE15',\n '\\uFF08': '\\uFE35',\n '\\uFF09': '\\uFE36',\n '\\uFF0C': '\\uFE10',\n '\\uFF0D': '\\uFE32',\n '\\uFF0E': '\\u30FB',\n '\\uFF1A': '\\uFE13',\n '\\uFF1B': '\\uFE14',\n '\\uFF1C': '\\uFE3F',\n '\\uFF1E': '\\uFE40',\n '\\uFF1F': '\\uFE16',\n '\\uFF3B': '\\uFE47',\n '\\uFF3D': '\\uFE48',\n '_': '︳',\n '\\uFF5B': '\\uFE37',\n '\\uFF5C': '\\u2015',\n '\\uFF5D': '\\uFE38',\n '\\uFF5F': '\\uFE35',\n '\\uFF60': '\\uFE36',\n '\\uFF61': '\\uFE12',\n '\\uFF62': '\\uFE41',\n '\\uFF63': '\\uFE42'\n};\nfunction verticalizePunctuation(input) {\n var output = '';\n for (var i = 0; i < input.length; i++) {\n var nextCharCode = input.charCodeAt(i + 1) || null;\n var prevCharCode = input.charCodeAt(i - 1) || null;\n var canReplacePunctuation = (!nextCharCode || !charHasRotatedVerticalOrientation(nextCharCode) || verticalizedCharacterMap[input[i + 1]]) && (!prevCharCode || !charHasRotatedVerticalOrientation(prevCharCode) || verticalizedCharacterMap[input[i - 1]]);\n if (canReplacePunctuation && verticalizedCharacterMap[input[i]]) {\n output += verticalizedCharacterMap[input[i]];\n } else {\n output += input[i];\n }\n }\n return output;\n}\n\nvar ONE_EM = 24;\n\nvar read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m;\n var eLen = nBytes * 8 - mLen - 1;\n var eMax = (1 << eLen) - 1;\n var eBias = eMax >> 1;\n var nBits = -7;\n var i = isLE ? nBytes - 1 : 0;\n var d = isLE ? -1 : 1;\n var s = buffer[offset + i];\n i += d;\n e = s & (1 << -nBits) - 1;\n s >>= -nBits;\n nBits += eLen;\n for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {\n }\n m = e & (1 << -nBits) - 1;\n e >>= -nBits;\n nBits += mLen;\n for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {\n }\n if (e === 0) {\n e = 1 - eBias;\n } else if (e === eMax) {\n return m ? NaN : (s ? -1 : 1) * Infinity;\n } else {\n m = m + Math.pow(2, mLen);\n e = e - eBias;\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen);\n};\nvar write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c;\n var eLen = nBytes * 8 - mLen - 1;\n var eMax = (1 << eLen) - 1;\n var eBias = eMax >> 1;\n var rt = mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0;\n var i = isLE ? 0 : nBytes - 1;\n var d = isLE ? 1 : -1;\n var s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0;\n value = Math.abs(value);\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0;\n e = eMax;\n } else {\n e = Math.floor(Math.log(value) / Math.LN2);\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--;\n c *= 2;\n }\n if (e + eBias >= 1) {\n value += rt / c;\n } else {\n value += rt * Math.pow(2, 1 - eBias);\n }\n if (value * c >= 2) {\n e++;\n c /= 2;\n }\n if (e + eBias >= eMax) {\n m = 0;\n e = eMax;\n } else if (e + eBias >= 1) {\n m = (value * c - 1) * Math.pow(2, mLen);\n e = e + eBias;\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen);\n e = 0;\n }\n }\n for (; mLen >= 8; buffer[offset + i] = m & 255, i += d, m /= 256, mLen -= 8) {\n }\n e = e << mLen | m;\n eLen += mLen;\n for (; eLen > 0; buffer[offset + i] = e & 255, i += d, e /= 256, eLen -= 8) {\n }\n buffer[offset + i - d] |= s * 128;\n};\n\nvar ieee754 = {\n\tread: read,\n\twrite: write\n};\n\nvar pbf = Pbf;\n\nfunction Pbf(buf) {\n this.buf = ArrayBuffer.isView && ArrayBuffer.isView(buf) ? buf : new Uint8Array(buf || 0);\n this.pos = 0;\n this.type = 0;\n this.length = this.buf.length;\n}\nPbf.Varint = 0;\nPbf.Fixed64 = 1;\nPbf.Bytes = 2;\nPbf.Fixed32 = 5;\nvar SHIFT_LEFT_32 = (1 << 16) * (1 << 16), SHIFT_RIGHT_32 = 1 / SHIFT_LEFT_32;\nvar TEXT_DECODER_MIN_LENGTH = 12;\nvar utf8TextDecoder = typeof TextDecoder === 'undefined' ? null : new TextDecoder('utf8');\nPbf.prototype = {\n destroy: function () {\n this.buf = null;\n },\n readFields: function (readField, result, end) {\n end = end || this.length;\n while (this.pos < end) {\n var val = this.readVarint(), tag = val >> 3, startPos = this.pos;\n this.type = val & 7;\n readField(tag, result, this);\n if (this.pos === startPos) {\n this.skip(val);\n }\n }\n return result;\n },\n readMessage: function (readField, result) {\n return this.readFields(readField, result, this.readVarint() + this.pos);\n },\n readFixed32: function () {\n var val = readUInt32(this.buf, this.pos);\n this.pos += 4;\n return val;\n },\n readSFixed32: function () {\n var val = readInt32(this.buf, this.pos);\n this.pos += 4;\n return val;\n },\n readFixed64: function () {\n var val = readUInt32(this.buf, this.pos) + readUInt32(this.buf, this.pos + 4) * SHIFT_LEFT_32;\n this.pos += 8;\n return val;\n },\n readSFixed64: function () {\n var val = readUInt32(this.buf, this.pos) + readInt32(this.buf, this.pos + 4) * SHIFT_LEFT_32;\n this.pos += 8;\n return val;\n },\n readFloat: function () {\n var val = ieee754.read(this.buf, this.pos, true, 23, 4);\n this.pos += 4;\n return val;\n },\n readDouble: function () {\n var val = ieee754.read(this.buf, this.pos, true, 52, 8);\n this.pos += 8;\n return val;\n },\n readVarint: function (isSigned) {\n var buf = this.buf, val, b;\n b = buf[this.pos++];\n val = b & 127;\n if (b < 128) {\n return val;\n }\n b = buf[this.pos++];\n val |= (b & 127) << 7;\n if (b < 128) {\n return val;\n }\n b = buf[this.pos++];\n val |= (b & 127) << 14;\n if (b < 128) {\n return val;\n }\n b = buf[this.pos++];\n val |= (b & 127) << 21;\n if (b < 128) {\n return val;\n }\n b = buf[this.pos];\n val |= (b & 15) << 28;\n return readVarintRemainder(val, isSigned, this);\n },\n readVarint64: function () {\n return this.readVarint(true);\n },\n readSVarint: function () {\n var num = this.readVarint();\n return num % 2 === 1 ? (num + 1) / -2 : num / 2;\n },\n readBoolean: function () {\n return Boolean(this.readVarint());\n },\n readString: function () {\n var end = this.readVarint() + this.pos;\n var pos = this.pos;\n this.pos = end;\n if (end - pos >= TEXT_DECODER_MIN_LENGTH && utf8TextDecoder) {\n return readUtf8TextDecoder(this.buf, pos, end);\n }\n return readUtf8(this.buf, pos, end);\n },\n readBytes: function () {\n var end = this.readVarint() + this.pos, buffer = this.buf.subarray(this.pos, end);\n this.pos = end;\n return buffer;\n },\n readPackedVarint: function (arr, isSigned) {\n if (this.type !== Pbf.Bytes) {\n return arr.push(this.readVarint(isSigned));\n }\n var end = readPackedEnd(this);\n arr = arr || [];\n while (this.pos < end) {\n arr.push(this.readVarint(isSigned));\n }\n return arr;\n },\n readPackedSVarint: function (arr) {\n if (this.type !== Pbf.Bytes) {\n return arr.push(this.readSVarint());\n }\n var end = readPackedEnd(this);\n arr = arr || [];\n while (this.pos < end) {\n arr.push(this.readSVarint());\n }\n return arr;\n },\n readPackedBoolean: function (arr) {\n if (this.type !== Pbf.Bytes) {\n return arr.push(this.readBoolean());\n }\n var end = readPackedEnd(this);\n arr = arr || [];\n while (this.pos < end) {\n arr.push(this.readBoolean());\n }\n return arr;\n },\n readPackedFloat: function (arr) {\n if (this.type !== Pbf.Bytes) {\n return arr.push(this.readFloat());\n }\n var end = readPackedEnd(this);\n arr = arr || [];\n while (this.pos < end) {\n arr.push(this.readFloat());\n }\n return arr;\n },\n readPackedDouble: function (arr) {\n if (this.type !== Pbf.Bytes) {\n return arr.push(this.readDouble());\n }\n var end = readPackedEnd(this);\n arr = arr || [];\n while (this.pos < end) {\n arr.push(this.readDouble());\n }\n return arr;\n },\n readPackedFixed32: function (arr) {\n if (this.type !== Pbf.Bytes) {\n return arr.push(this.readFixed32());\n }\n var end = readPackedEnd(this);\n arr = arr || [];\n while (this.pos < end) {\n arr.push(this.readFixed32());\n }\n return arr;\n },\n readPackedSFixed32: function (arr) {\n if (this.type !== Pbf.Bytes) {\n return arr.push(this.readSFixed32());\n }\n var end = readPackedEnd(this);\n arr = arr || [];\n while (this.pos < end) {\n arr.push(this.readSFixed32());\n }\n return arr;\n },\n readPackedFixed64: function (arr) {\n if (this.type !== Pbf.Bytes) {\n return arr.push(this.readFixed64());\n }\n var end = readPackedEnd(this);\n arr = arr || [];\n while (this.pos < end) {\n arr.push(this.readFixed64());\n }\n return arr;\n },\n readPackedSFixed64: function (arr) {\n if (this.type !== Pbf.Bytes) {\n return arr.push(this.readSFixed64());\n }\n var end = readPackedEnd(this);\n arr = arr || [];\n while (this.pos < end) {\n arr.push(this.readSFixed64());\n }\n return arr;\n },\n skip: function (val) {\n var type = val & 7;\n if (type === Pbf.Varint) {\n while (this.buf[this.pos++] > 127) {\n }\n } else if (type === Pbf.Bytes) {\n this.pos = this.readVarint() + this.pos;\n } else if (type === Pbf.Fixed32) {\n this.pos += 4;\n } else if (type === Pbf.Fixed64) {\n this.pos += 8;\n } else {\n throw new Error('Unimplemented type: ' + type);\n }\n },\n writeTag: function (tag, type) {\n this.writeVarint(tag << 3 | type);\n },\n realloc: function (min) {\n var length = this.length || 16;\n while (length < this.pos + min) {\n length *= 2;\n }\n if (length !== this.length) {\n var buf = new Uint8Array(length);\n buf.set(this.buf);\n this.buf = buf;\n this.length = length;\n }\n },\n finish: function () {\n this.length = this.pos;\n this.pos = 0;\n return this.buf.subarray(0, this.length);\n },\n writeFixed32: function (val) {\n this.realloc(4);\n writeInt32(this.buf, val, this.pos);\n this.pos += 4;\n },\n writeSFixed32: function (val) {\n this.realloc(4);\n writeInt32(this.buf, val, this.pos);\n this.pos += 4;\n },\n writeFixed64: function (val) {\n this.realloc(8);\n writeInt32(this.buf, val & -1, this.pos);\n writeInt32(this.buf, Math.floor(val * SHIFT_RIGHT_32), this.pos + 4);\n this.pos += 8;\n },\n writeSFixed64: function (val) {\n this.realloc(8);\n writeInt32(this.buf, val & -1, this.pos);\n writeInt32(this.buf, Math.floor(val * SHIFT_RIGHT_32), this.pos + 4);\n this.pos += 8;\n },\n writeVarint: function (val) {\n val = +val || 0;\n if (val > 268435455 || val < 0) {\n writeBigVarint(val, this);\n return;\n }\n this.realloc(4);\n this.buf[this.pos++] = val & 127 | (val > 127 ? 128 : 0);\n if (val <= 127) {\n return;\n }\n this.buf[this.pos++] = (val >>>= 7) & 127 | (val > 127 ? 128 : 0);\n if (val <= 127) {\n return;\n }\n this.buf[this.pos++] = (val >>>= 7) & 127 | (val > 127 ? 128 : 0);\n if (val <= 127) {\n return;\n }\n this.buf[this.pos++] = val >>> 7 & 127;\n },\n writeSVarint: function (val) {\n this.writeVarint(val < 0 ? -val * 2 - 1 : val * 2);\n },\n writeBoolean: function (val) {\n this.writeVarint(Boolean(val));\n },\n writeString: function (str) {\n str = String(str);\n this.realloc(str.length * 4);\n this.pos++;\n var startPos = this.pos;\n this.pos = writeUtf8(this.buf, str, this.pos);\n var len = this.pos - startPos;\n if (len >= 128) {\n makeRoomForExtraLength(startPos, len, this);\n }\n this.pos = startPos - 1;\n this.writeVarint(len);\n this.pos += len;\n },\n writeFloat: function (val) {\n this.realloc(4);\n ieee754.write(this.buf, val, this.pos, true, 23, 4);\n this.pos += 4;\n },\n writeDouble: function (val) {\n this.realloc(8);\n ieee754.write(this.buf, val, this.pos, true, 52, 8);\n this.pos += 8;\n },\n writeBytes: function (buffer) {\n var len = buffer.length;\n this.writeVarint(len);\n this.realloc(len);\n for (var i = 0; i < len; i++) {\n this.buf[this.pos++] = buffer[i];\n }\n },\n writeRawMessage: function (fn, obj) {\n this.pos++;\n var startPos = this.pos;\n fn(obj, this);\n var len = this.pos - startPos;\n if (len >= 128) {\n makeRoomForExtraLength(startPos, len, this);\n }\n this.pos = startPos - 1;\n this.writeVarint(len);\n this.pos += len;\n },\n writeMessage: function (tag, fn, obj) {\n this.writeTag(tag, Pbf.Bytes);\n this.writeRawMessage(fn, obj);\n },\n writePackedVarint: function (tag, arr) {\n if (arr.length) {\n this.writeMessage(tag, writePackedVarint, arr);\n }\n },\n writePackedSVarint: function (tag, arr) {\n if (arr.length) {\n this.writeMessage(tag, writePackedSVarint, arr);\n }\n },\n writePackedBoolean: function (tag, arr) {\n if (arr.length) {\n this.writeMessage(tag, writePackedBoolean, arr);\n }\n },\n writePackedFloat: function (tag, arr) {\n if (arr.length) {\n this.writeMessage(tag, writePackedFloat, arr);\n }\n },\n writePackedDouble: function (tag, arr) {\n if (arr.length) {\n this.writeMessage(tag, writePackedDouble, arr);\n }\n },\n writePackedFixed32: function (tag, arr) {\n if (arr.length) {\n this.writeMessage(tag, writePackedFixed32, arr);\n }\n },\n writePackedSFixed32: function (tag, arr) {\n if (arr.length) {\n this.writeMessage(tag, writePackedSFixed32, arr);\n }\n },\n writePackedFixed64: function (tag, arr) {\n if (arr.length) {\n this.writeMessage(tag, writePackedFixed64, arr);\n }\n },\n writePackedSFixed64: function (tag, arr) {\n if (arr.length) {\n this.writeMessage(tag, writePackedSFixed64, arr);\n }\n },\n writeBytesField: function (tag, buffer) {\n this.writeTag(tag, Pbf.Bytes);\n this.writeBytes(buffer);\n },\n writeFixed32Field: function (tag, val) {\n this.writeTag(tag, Pbf.Fixed32);\n this.writeFixed32(val);\n },\n writeSFixed32Field: function (tag, val) {\n this.writeTag(tag, Pbf.Fixed32);\n this.writeSFixed32(val);\n },\n writeFixed64Field: function (tag, val) {\n this.writeTag(tag, Pbf.Fixed64);\n this.writeFixed64(val);\n },\n writeSFixed64Field: function (tag, val) {\n this.writeTag(tag, Pbf.Fixed64);\n this.writeSFixed64(val);\n },\n writeVarintField: function (tag, val) {\n this.writeTag(tag, Pbf.Varint);\n this.writeVarint(val);\n },\n writeSVarintField: function (tag, val) {\n this.writeTag(tag, Pbf.Varint);\n this.writeSVarint(val);\n },\n writeStringField: function (tag, str) {\n this.writeTag(tag, Pbf.Bytes);\n this.writeString(str);\n },\n writeFloatField: function (tag, val) {\n this.writeTag(tag, Pbf.Fixed32);\n this.writeFloat(val);\n },\n writeDoubleField: function (tag, val) {\n this.writeTag(tag, Pbf.Fixed64);\n this.writeDouble(val);\n },\n writeBooleanField: function (tag, val) {\n this.writeVarintField(tag, Boolean(val));\n }\n};\nfunction readVarintRemainder(l, s, p) {\n var buf = p.buf, h, b;\n b = buf[p.pos++];\n h = (b & 112) >> 4;\n if (b < 128) {\n return toNum(l, h, s);\n }\n b = buf[p.pos++];\n h |= (b & 127) << 3;\n if (b < 128) {\n return toNum(l, h, s);\n }\n b = buf[p.pos++];\n h |= (b & 127) << 10;\n if (b < 128) {\n return toNum(l, h, s);\n }\n b = buf[p.pos++];\n h |= (b & 127) << 17;\n if (b < 128) {\n return toNum(l, h, s);\n }\n b = buf[p.pos++];\n h |= (b & 127) << 24;\n if (b < 128) {\n return toNum(l, h, s);\n }\n b = buf[p.pos++];\n h |= (b & 1) << 31;\n if (b < 128) {\n return toNum(l, h, s);\n }\n throw new Error('Expected varint not more than 10 bytes');\n}\nfunction readPackedEnd(pbf) {\n return pbf.type === Pbf.Bytes ? pbf.readVarint() + pbf.pos : pbf.pos + 1;\n}\nfunction toNum(low, high, isSigned) {\n if (isSigned) {\n return high * 4294967296 + (low >>> 0);\n }\n return (high >>> 0) * 4294967296 + (low >>> 0);\n}\nfunction writeBigVarint(val, pbf) {\n var low, high;\n if (val >= 0) {\n low = val % 4294967296 | 0;\n high = val / 4294967296 | 0;\n } else {\n low = ~(-val % 4294967296);\n high = ~(-val / 4294967296);\n if (low ^ 4294967295) {\n low = low + 1 | 0;\n } else {\n low = 0;\n high = high + 1 | 0;\n }\n }\n if (val >= 18446744073709552000 || val < -18446744073709552000) {\n throw new Error('Given varint doesn\\'t fit into 10 bytes');\n }\n pbf.realloc(10);\n writeBigVarintLow(low, high, pbf);\n writeBigVarintHigh(high, pbf);\n}\nfunction writeBigVarintLow(low, high, pbf) {\n pbf.buf[pbf.pos++] = low & 127 | 128;\n low >>>= 7;\n pbf.buf[pbf.pos++] = low & 127 | 128;\n low >>>= 7;\n pbf.buf[pbf.pos++] = low & 127 | 128;\n low >>>= 7;\n pbf.buf[pbf.pos++] = low & 127 | 128;\n low >>>= 7;\n pbf.buf[pbf.pos] = low & 127;\n}\nfunction writeBigVarintHigh(high, pbf) {\n var lsb = (high & 7) << 4;\n pbf.buf[pbf.pos++] |= lsb | ((high >>>= 3) ? 128 : 0);\n if (!high) {\n return;\n }\n pbf.buf[pbf.pos++] = high & 127 | ((high >>>= 7) ? 128 : 0);\n if (!high) {\n return;\n }\n pbf.buf[pbf.pos++] = high & 127 | ((high >>>= 7) ? 128 : 0);\n if (!high) {\n return;\n }\n pbf.buf[pbf.pos++] = high & 127 | ((high >>>= 7) ? 128 : 0);\n if (!high) {\n return;\n }\n pbf.buf[pbf.pos++] = high & 127 | ((high >>>= 7) ? 128 : 0);\n if (!high) {\n return;\n }\n pbf.buf[pbf.pos++] = high & 127;\n}\nfunction makeRoomForExtraLength(startPos, len, pbf) {\n var extraLen = len <= 16383 ? 1 : len <= 2097151 ? 2 : len <= 268435455 ? 3 : Math.floor(Math.log(len) / (Math.LN2 * 7));\n pbf.realloc(extraLen);\n for (var i = pbf.pos - 1; i >= startPos; i--) {\n pbf.buf[i + extraLen] = pbf.buf[i];\n }\n}\nfunction writePackedVarint(arr, pbf) {\n for (var i = 0; i < arr.length; i++) {\n pbf.writeVarint(arr[i]);\n }\n}\nfunction writePackedSVarint(arr, pbf) {\n for (var i = 0; i < arr.length; i++) {\n pbf.writeSVarint(arr[i]);\n }\n}\nfunction writePackedFloat(arr, pbf) {\n for (var i = 0; i < arr.length; i++) {\n pbf.writeFloat(arr[i]);\n }\n}\nfunction writePackedDouble(arr, pbf) {\n for (var i = 0; i < arr.length; i++) {\n pbf.writeDouble(arr[i]);\n }\n}\nfunction writePackedBoolean(arr, pbf) {\n for (var i = 0; i < arr.length; i++) {\n pbf.writeBoolean(arr[i]);\n }\n}\nfunction writePackedFixed32(arr, pbf) {\n for (var i = 0; i < arr.length; i++) {\n pbf.writeFixed32(arr[i]);\n }\n}\nfunction writePackedSFixed32(arr, pbf) {\n for (var i = 0; i < arr.length; i++) {\n pbf.writeSFixed32(arr[i]);\n }\n}\nfunction writePackedFixed64(arr, pbf) {\n for (var i = 0; i < arr.length; i++) {\n pbf.writeFixed64(arr[i]);\n }\n}\nfunction writePackedSFixed64(arr, pbf) {\n for (var i = 0; i < arr.length; i++) {\n pbf.writeSFixed64(arr[i]);\n }\n}\nfunction readUInt32(buf, pos) {\n return (buf[pos] | buf[pos + 1] << 8 | buf[pos + 2] << 16) + buf[pos + 3] * 16777216;\n}\nfunction writeInt32(buf, val, pos) {\n buf[pos] = val;\n buf[pos + 1] = val >>> 8;\n buf[pos + 2] = val >>> 16;\n buf[pos + 3] = val >>> 24;\n}\nfunction readInt32(buf, pos) {\n return (buf[pos] | buf[pos + 1] << 8 | buf[pos + 2] << 16) + (buf[pos + 3] << 24);\n}\nfunction readUtf8(buf, pos, end) {\n var str = '';\n var i = pos;\n while (i < end) {\n var b0 = buf[i];\n var c = null;\n var bytesPerSequence = b0 > 239 ? 4 : b0 > 223 ? 3 : b0 > 191 ? 2 : 1;\n if (i + bytesPerSequence > end) {\n break;\n }\n var b1, b2, b3;\n if (bytesPerSequence === 1) {\n if (b0 < 128) {\n c = b0;\n }\n } else if (bytesPerSequence === 2) {\n b1 = buf[i + 1];\n if ((b1 & 192) === 128) {\n c = (b0 & 31) << 6 | b1 & 63;\n if (c <= 127) {\n c = null;\n }\n }\n } else if (bytesPerSequence === 3) {\n b1 = buf[i + 1];\n b2 = buf[i + 2];\n if ((b1 & 192) === 128 && (b2 & 192) === 128) {\n c = (b0 & 15) << 12 | (b1 & 63) << 6 | b2 & 63;\n if (c <= 2047 || c >= 55296 && c <= 57343) {\n c = null;\n }\n }\n } else if (bytesPerSequence === 4) {\n b1 = buf[i + 1];\n b2 = buf[i + 2];\n b3 = buf[i + 3];\n if ((b1 & 192) === 128 && (b2 & 192) === 128 && (b3 & 192) === 128) {\n c = (b0 & 15) << 18 | (b1 & 63) << 12 | (b2 & 63) << 6 | b3 & 63;\n if (c <= 65535 || c >= 1114112) {\n c = null;\n }\n }\n }\n if (c === null) {\n c = 65533;\n bytesPerSequence = 1;\n } else if (c > 65535) {\n c -= 65536;\n str += String.fromCharCode(c >>> 10 & 1023 | 55296);\n c = 56320 | c & 1023;\n }\n str += String.fromCharCode(c);\n i += bytesPerSequence;\n }\n return str;\n}\nfunction readUtf8TextDecoder(buf, pos, end) {\n return utf8TextDecoder.decode(buf.subarray(pos, end));\n}\nfunction writeUtf8(buf, str, pos) {\n for (var i = 0, c, lead; i < str.length; i++) {\n c = str.charCodeAt(i);\n if (c > 55295 && c < 57344) {\n if (lead) {\n if (c < 56320) {\n buf[pos++] = 239;\n buf[pos++] = 191;\n buf[pos++] = 189;\n lead = c;\n continue;\n } else {\n c = lead - 55296 << 10 | c - 56320 | 65536;\n lead = null;\n }\n } else {\n if (c > 56319 || i + 1 === str.length) {\n buf[pos++] = 239;\n buf[pos++] = 191;\n buf[pos++] = 189;\n } else {\n lead = c;\n }\n continue;\n }\n } else if (lead) {\n buf[pos++] = 239;\n buf[pos++] = 191;\n buf[pos++] = 189;\n lead = null;\n }\n if (c < 128) {\n buf[pos++] = c;\n } else {\n if (c < 2048) {\n buf[pos++] = c >> 6 | 192;\n } else {\n if (c < 65536) {\n buf[pos++] = c >> 12 | 224;\n } else {\n buf[pos++] = c >> 18 | 240;\n buf[pos++] = c >> 12 & 63 | 128;\n }\n buf[pos++] = c >> 6 & 63 | 128;\n }\n buf[pos++] = c & 63 | 128;\n }\n }\n return pos;\n}\n\nvar border = 3;\nfunction readFontstacks(tag, glyphs, pbf) {\n if (tag === 1) {\n pbf.readMessage(readFontstack, glyphs);\n }\n}\nfunction readFontstack(tag, glyphs, pbf) {\n if (tag === 3) {\n var ref = pbf.readMessage(readGlyph, {});\n var id = ref.id;\n var bitmap = ref.bitmap;\n var width = ref.width;\n var height = ref.height;\n var left = ref.left;\n var top = ref.top;\n var advance = ref.advance;\n glyphs.push({\n id: id,\n bitmap: new AlphaImage({\n width: width + 2 * border,\n height: height + 2 * border\n }, bitmap),\n metrics: {\n width: width,\n height: height,\n left: left,\n top: top,\n advance: advance\n }\n });\n }\n}\nfunction readGlyph(tag, glyph, pbf) {\n if (tag === 1) {\n glyph.id = pbf.readVarint();\n } else if (tag === 2) {\n glyph.bitmap = pbf.readBytes();\n } else if (tag === 3) {\n glyph.width = pbf.readVarint();\n } else if (tag === 4) {\n glyph.height = pbf.readVarint();\n } else if (tag === 5) {\n glyph.left = pbf.readSVarint();\n } else if (tag === 6) {\n glyph.top = pbf.readSVarint();\n } else if (tag === 7) {\n glyph.advance = pbf.readVarint();\n }\n}\nfunction parseGlyphPBF (data) {\n return new pbf(data).readFields(readFontstacks, []);\n}\nvar GLYPH_PBF_BORDER = border;\n\nfunction potpack(boxes) {\n\n // calculate total box area and maximum box width\n var area = 0;\n var maxWidth = 0;\n\n for (var i$1 = 0, list = boxes; i$1 < list.length; i$1 += 1) {\n var box = list[i$1];\n\n area += box.w * box.h;\n maxWidth = Math.max(maxWidth, box.w);\n }\n\n // sort the boxes for insertion by height, descending\n boxes.sort(function (a, b) { return b.h - a.h; });\n\n // aim for a squarish resulting container,\n // slightly adjusted for sub-100% space utilization\n var startWidth = Math.max(Math.ceil(Math.sqrt(area / 0.95)), maxWidth);\n\n // start with a single empty space, unbounded at the bottom\n var spaces = [{x: 0, y: 0, w: startWidth, h: Infinity}];\n\n var width = 0;\n var height = 0;\n\n for (var i$2 = 0, list$1 = boxes; i$2 < list$1.length; i$2 += 1) {\n // look through spaces backwards so that we check smaller spaces first\n var box$1 = list$1[i$2];\n\n for (var i = spaces.length - 1; i >= 0; i--) {\n var space = spaces[i];\n\n // look for empty spaces that can accommodate the current box\n if (box$1.w > space.w || box$1.h > space.h) { continue; }\n\n // found the space; add the box to its top-left corner\n // |-------|-------|\n // | box | |\n // |_______| |\n // | space |\n // |_______________|\n box$1.x = space.x;\n box$1.y = space.y;\n\n height = Math.max(height, box$1.y + box$1.h);\n width = Math.max(width, box$1.x + box$1.w);\n\n if (box$1.w === space.w && box$1.h === space.h) {\n // space matches the box exactly; remove it\n var last = spaces.pop();\n if (i < spaces.length) { spaces[i] = last; }\n\n } else if (box$1.h === space.h) {\n // space matches the box height; update it accordingly\n // |-------|---------------|\n // | box | updated space |\n // |_______|_______________|\n space.x += box$1.w;\n space.w -= box$1.w;\n\n } else if (box$1.w === space.w) {\n // space matches the box width; update it accordingly\n // |---------------|\n // | box |\n // |_______________|\n // | updated space |\n // |_______________|\n space.y += box$1.h;\n space.h -= box$1.h;\n\n } else {\n // otherwise the box splits the space into two spaces\n // |-------|-----------|\n // | box | new space |\n // |_______|___________|\n // | updated space |\n // |___________________|\n spaces.push({\n x: space.x + box$1.w,\n y: space.y,\n w: space.w - box$1.w,\n h: box$1.h\n });\n space.y += box$1.h;\n space.h -= box$1.h;\n }\n break;\n }\n }\n\n return {\n w: width, // container width\n h: height, // container height\n fill: (area / (width * height)) || 0 // space utilization\n };\n}\n\nvar IMAGE_PADDING = 1;\nvar ImagePosition = function ImagePosition(paddedRect, ref) {\n var pixelRatio = ref.pixelRatio;\n var version = ref.version;\n var stretchX = ref.stretchX;\n var stretchY = ref.stretchY;\n var content = ref.content;\n this.paddedRect = paddedRect;\n this.pixelRatio = pixelRatio;\n this.stretchX = stretchX;\n this.stretchY = stretchY;\n this.content = content;\n this.version = version;\n};\nvar prototypeAccessors = {\n tl: { configurable: true },\n br: { configurable: true },\n tlbr: { configurable: true },\n displaySize: { configurable: true }\n};\nprototypeAccessors.tl.get = function () {\n return [\n this.paddedRect.x + IMAGE_PADDING,\n this.paddedRect.y + IMAGE_PADDING\n ];\n};\nprototypeAccessors.br.get = function () {\n return [\n this.paddedRect.x + this.paddedRect.w - IMAGE_PADDING,\n this.paddedRect.y + this.paddedRect.h - IMAGE_PADDING\n ];\n};\nprototypeAccessors.tlbr.get = function () {\n return this.tl.concat(this.br);\n};\nprototypeAccessors.displaySize.get = function () {\n return [\n (this.paddedRect.w - IMAGE_PADDING * 2) / this.pixelRatio,\n (this.paddedRect.h - IMAGE_PADDING * 2) / this.pixelRatio\n ];\n};\nObject.defineProperties(ImagePosition.prototype, prototypeAccessors);\nvar ImageAtlas = function ImageAtlas(icons, patterns) {\n var iconPositions = {}, patternPositions = {};\n this.haveRenderCallbacks = [];\n var bins = [];\n this.addImages(icons, iconPositions, bins);\n this.addImages(patterns, patternPositions, bins);\n var ref = potpack(bins);\n var w = ref.w;\n var h = ref.h;\n var image = new RGBAImage({\n width: w || 1,\n height: h || 1\n });\n for (var id in icons) {\n var src = icons[id];\n var bin = iconPositions[id].paddedRect;\n RGBAImage.copy(src.data, image, {\n x: 0,\n y: 0\n }, {\n x: bin.x + IMAGE_PADDING,\n y: bin.y + IMAGE_PADDING\n }, src.data);\n }\n for (var id$1 in patterns) {\n var src$1 = patterns[id$1];\n var bin$1 = patternPositions[id$1].paddedRect;\n var x = bin$1.x + IMAGE_PADDING, y = bin$1.y + IMAGE_PADDING, w$1 = src$1.data.width, h$1 = src$1.data.height;\n RGBAImage.copy(src$1.data, image, {\n x: 0,\n y: 0\n }, {\n x: x,\n y: y\n }, src$1.data);\n RGBAImage.copy(src$1.data, image, {\n x: 0,\n y: h$1 - 1\n }, {\n x: x,\n y: y - 1\n }, {\n width: w$1,\n height: 1\n });\n RGBAImage.copy(src$1.data, image, {\n x: 0,\n y: 0\n }, {\n x: x,\n y: y + h$1\n }, {\n width: w$1,\n height: 1\n });\n RGBAImage.copy(src$1.data, image, {\n x: w$1 - 1,\n y: 0\n }, {\n x: x - 1,\n y: y\n }, {\n width: 1,\n height: h$1\n });\n RGBAImage.copy(src$1.data, image, {\n x: 0,\n y: 0\n }, {\n x: x + w$1,\n y: y\n }, {\n width: 1,\n height: h$1\n });\n }\n this.image = image;\n this.iconPositions = iconPositions;\n this.patternPositions = patternPositions;\n};\nImageAtlas.prototype.addImages = function addImages(images, positions, bins) {\n for (var id in images) {\n var src = images[id];\n var bin = {\n x: 0,\n y: 0,\n w: src.data.width + 2 * IMAGE_PADDING,\n h: src.data.height + 2 * IMAGE_PADDING\n };\n bins.push(bin);\n positions[id] = new ImagePosition(bin, src);\n if (src.hasRenderCallback) {\n this.haveRenderCallbacks.push(id);\n }\n }\n};\nImageAtlas.prototype.patchUpdatedImages = function patchUpdatedImages(imageManager, texture) {\n imageManager.dispatchRenderCallbacks(this.haveRenderCallbacks);\n for (var name in imageManager.updatedImages) {\n this.patchUpdatedImage(this.iconPositions[name], imageManager.getImage(name), texture);\n this.patchUpdatedImage(this.patternPositions[name], imageManager.getImage(name), texture);\n }\n};\nImageAtlas.prototype.patchUpdatedImage = function patchUpdatedImage(position, image, texture) {\n if (!position || !image) {\n return;\n }\n if (position.version === image.version) {\n return;\n }\n position.version = image.version;\n var ref = position.tl;\n var x = ref[0];\n var y = ref[1];\n texture.update(image.data, undefined, {\n x: x,\n y: y\n });\n};\nregister('ImagePosition', ImagePosition);\nregister('ImageAtlas', ImageAtlas);\n\nvar WritingMode = {\n horizontal: 1,\n vertical: 2,\n horizontalOnly: 3\n};\nvar SHAPING_DEFAULT_OFFSET = -17;\nfunction isEmpty(positionedLines) {\n for (var i = 0, list = positionedLines; i < list.length; i += 1) {\n var line = list[i];\n if (line.positionedGlyphs.length !== 0) {\n return false;\n }\n }\n return true;\n}\nvar PUAbegin = 57344;\nvar PUAend = 63743;\nvar SectionOptions = function SectionOptions() {\n this.scale = 1;\n this.fontStack = '';\n this.imageName = null;\n};\nSectionOptions.forText = function forText(scale, fontStack) {\n var textOptions = new SectionOptions();\n textOptions.scale = scale || 1;\n textOptions.fontStack = fontStack;\n return textOptions;\n};\nSectionOptions.forImage = function forImage(imageName) {\n var imageOptions = new SectionOptions();\n imageOptions.imageName = imageName;\n return imageOptions;\n};\nvar TaggedString = function TaggedString() {\n this.text = '';\n this.sectionIndex = [];\n this.sections = [];\n this.imageSectionID = null;\n};\nTaggedString.fromFeature = function fromFeature(text, defaultFontStack) {\n var result = new TaggedString();\n for (var i = 0; i < text.sections.length; i++) {\n var section = text.sections[i];\n if (!section.image) {\n result.addTextSection(section, defaultFontStack);\n } else {\n result.addImageSection(section);\n }\n }\n return result;\n};\nTaggedString.prototype.length = function length() {\n return this.text.length;\n};\nTaggedString.prototype.getSection = function getSection(index) {\n return this.sections[this.sectionIndex[index]];\n};\nTaggedString.prototype.getSectionIndex = function getSectionIndex(index) {\n return this.sectionIndex[index];\n};\nTaggedString.prototype.getCharCode = function getCharCode(index) {\n return this.text.charCodeAt(index);\n};\nTaggedString.prototype.verticalizePunctuation = function verticalizePunctuation$1() {\n this.text = verticalizePunctuation(this.text);\n};\nTaggedString.prototype.trim = function trim() {\n var beginningWhitespace = 0;\n for (var i = 0; i < this.text.length && whitespace[this.text.charCodeAt(i)]; i++) {\n beginningWhitespace++;\n }\n var trailingWhitespace = this.text.length;\n for (var i$1 = this.text.length - 1; i$1 >= 0 && i$1 >= beginningWhitespace && whitespace[this.text.charCodeAt(i$1)]; i$1--) {\n trailingWhitespace--;\n }\n this.text = this.text.substring(beginningWhitespace, trailingWhitespace);\n this.sectionIndex = this.sectionIndex.slice(beginningWhitespace, trailingWhitespace);\n};\nTaggedString.prototype.substring = function substring(start, end) {\n var substring = new TaggedString();\n substring.text = this.text.substring(start, end);\n substring.sectionIndex = this.sectionIndex.slice(start, end);\n substring.sections = this.sections;\n return substring;\n};\nTaggedString.prototype.toString = function toString() {\n return this.text;\n};\nTaggedString.prototype.getMaxScale = function getMaxScale() {\n var this$1 = this;\n return this.sectionIndex.reduce(function (max, index) {\n return Math.max(max, this$1.sections[index].scale);\n }, 0);\n};\nTaggedString.prototype.addTextSection = function addTextSection(section, defaultFontStack) {\n this.text += section.text;\n this.sections.push(SectionOptions.forText(section.scale, section.fontStack || defaultFontStack));\n var index = this.sections.length - 1;\n for (var i = 0; i < section.text.length; ++i) {\n this.sectionIndex.push(index);\n }\n};\nTaggedString.prototype.addImageSection = function addImageSection(section) {\n var imageName = section.image ? section.image.name : '';\n if (imageName.length === 0) {\n warnOnce('Can\\'t add FormattedSection with an empty image.');\n return;\n }\n var nextImageSectionCharCode = this.getNextImageSectionCharCode();\n if (!nextImageSectionCharCode) {\n warnOnce('Reached maximum number of images ' + (PUAend - PUAbegin + 2));\n return;\n }\n this.text += String.fromCharCode(nextImageSectionCharCode);\n this.sections.push(SectionOptions.forImage(imageName));\n this.sectionIndex.push(this.sections.length - 1);\n};\nTaggedString.prototype.getNextImageSectionCharCode = function getNextImageSectionCharCode() {\n if (!this.imageSectionID) {\n this.imageSectionID = PUAbegin;\n return this.imageSectionID;\n }\n if (this.imageSectionID >= PUAend) {\n return null;\n }\n return ++this.imageSectionID;\n};\nfunction breakLines(input, lineBreakPoints) {\n var lines = [];\n var text = input.text;\n var start = 0;\n for (var i = 0, list = lineBreakPoints; i < list.length; i += 1) {\n var lineBreak = list[i];\n lines.push(input.substring(start, lineBreak));\n start = lineBreak;\n }\n if (start < text.length) {\n lines.push(input.substring(start, text.length));\n }\n return lines;\n}\nfunction shapeText(text, glyphMap, glyphPositions, imagePositions, defaultFontStack, maxWidth, lineHeight, textAnchor, textJustify, spacing, translate, writingMode, allowVerticalPlacement, symbolPlacement, layoutTextSize, layoutTextSizeThisZoom) {\n var logicalInput = TaggedString.fromFeature(text, defaultFontStack);\n if (writingMode === WritingMode.vertical) {\n logicalInput.verticalizePunctuation();\n }\n var lines;\n var processBidirectionalText = plugin.processBidirectionalText;\n var processStyledBidirectionalText = plugin.processStyledBidirectionalText;\n if (processBidirectionalText && logicalInput.sections.length === 1) {\n lines = [];\n var untaggedLines = processBidirectionalText(logicalInput.toString(), determineLineBreaks(logicalInput, spacing, maxWidth, glyphMap, imagePositions, symbolPlacement, layoutTextSize));\n for (var i$1 = 0, list = untaggedLines; i$1 < list.length; i$1 += 1) {\n var line = list[i$1];\n var taggedLine = new TaggedString();\n taggedLine.text = line;\n taggedLine.sections = logicalInput.sections;\n for (var i = 0; i < line.length; i++) {\n taggedLine.sectionIndex.push(0);\n }\n lines.push(taggedLine);\n }\n } else if (processStyledBidirectionalText) {\n lines = [];\n var processedLines = processStyledBidirectionalText(logicalInput.text, logicalInput.sectionIndex, determineLineBreaks(logicalInput, spacing, maxWidth, glyphMap, imagePositions, symbolPlacement, layoutTextSize));\n for (var i$2 = 0, list$1 = processedLines; i$2 < list$1.length; i$2 += 1) {\n var line$1 = list$1[i$2];\n var taggedLine$1 = new TaggedString();\n taggedLine$1.text = line$1[0];\n taggedLine$1.sectionIndex = line$1[1];\n taggedLine$1.sections = logicalInput.sections;\n lines.push(taggedLine$1);\n }\n } else {\n lines = breakLines(logicalInput, determineLineBreaks(logicalInput, spacing, maxWidth, glyphMap, imagePositions, symbolPlacement, layoutTextSize));\n }\n var positionedLines = [];\n var shaping = {\n positionedLines: positionedLines,\n text: logicalInput.toString(),\n top: translate[1],\n bottom: translate[1],\n left: translate[0],\n right: translate[0],\n writingMode: writingMode,\n iconsInText: false,\n verticalizable: false\n };\n shapeLines(shaping, glyphMap, glyphPositions, imagePositions, lines, lineHeight, textAnchor, textJustify, writingMode, spacing, allowVerticalPlacement, layoutTextSizeThisZoom);\n if (isEmpty(positionedLines)) {\n return false;\n }\n return shaping;\n}\nvar whitespace = {};\nwhitespace[9] = true;\nwhitespace[10] = true;\nwhitespace[11] = true;\nwhitespace[12] = true;\nwhitespace[13] = true;\nwhitespace[32] = true;\nvar breakable = {};\nbreakable[10] = true;\nbreakable[32] = true;\nbreakable[38] = true;\nbreakable[40] = true;\nbreakable[41] = true;\nbreakable[43] = true;\nbreakable[45] = true;\nbreakable[47] = true;\nbreakable[173] = true;\nbreakable[183] = true;\nbreakable[8203] = true;\nbreakable[8208] = true;\nbreakable[8211] = true;\nbreakable[8231] = true;\nfunction getGlyphAdvance(codePoint, section, glyphMap, imagePositions, spacing, layoutTextSize) {\n if (!section.imageName) {\n var positions = glyphMap[section.fontStack];\n var glyph = positions && positions[codePoint];\n if (!glyph) {\n return 0;\n }\n return glyph.metrics.advance * section.scale + spacing;\n } else {\n var imagePosition = imagePositions[section.imageName];\n if (!imagePosition) {\n return 0;\n }\n return imagePosition.displaySize[0] * section.scale * ONE_EM / layoutTextSize + spacing;\n }\n}\nfunction determineAverageLineWidth(logicalInput, spacing, maxWidth, glyphMap, imagePositions, layoutTextSize) {\n var totalWidth = 0;\n for (var index = 0; index < logicalInput.length(); index++) {\n var section = logicalInput.getSection(index);\n totalWidth += getGlyphAdvance(logicalInput.getCharCode(index), section, glyphMap, imagePositions, spacing, layoutTextSize);\n }\n var lineCount = Math.max(1, Math.ceil(totalWidth / maxWidth));\n return totalWidth / lineCount;\n}\nfunction calculateBadness(lineWidth, targetWidth, penalty, isLastBreak) {\n var raggedness = Math.pow(lineWidth - targetWidth, 2);\n if (isLastBreak) {\n if (lineWidth < targetWidth) {\n return raggedness / 2;\n } else {\n return raggedness * 2;\n }\n }\n return raggedness + Math.abs(penalty) * penalty;\n}\nfunction calculatePenalty(codePoint, nextCodePoint, penalizableIdeographicBreak) {\n var penalty = 0;\n if (codePoint === 10) {\n penalty -= 10000;\n }\n if (penalizableIdeographicBreak) {\n penalty += 150;\n }\n if (codePoint === 40 || codePoint === 65288) {\n penalty += 50;\n }\n if (nextCodePoint === 41 || nextCodePoint === 65289) {\n penalty += 50;\n }\n return penalty;\n}\nfunction evaluateBreak(breakIndex, breakX, targetWidth, potentialBreaks, penalty, isLastBreak) {\n var bestPriorBreak = null;\n var bestBreakBadness = calculateBadness(breakX, targetWidth, penalty, isLastBreak);\n for (var i = 0, list = potentialBreaks; i < list.length; i += 1) {\n var potentialBreak = list[i];\n var lineWidth = breakX - potentialBreak.x;\n var breakBadness = calculateBadness(lineWidth, targetWidth, penalty, isLastBreak) + potentialBreak.badness;\n if (breakBadness <= bestBreakBadness) {\n bestPriorBreak = potentialBreak;\n bestBreakBadness = breakBadness;\n }\n }\n return {\n index: breakIndex,\n x: breakX,\n priorBreak: bestPriorBreak,\n badness: bestBreakBadness\n };\n}\nfunction leastBadBreaks(lastLineBreak) {\n if (!lastLineBreak) {\n return [];\n }\n return leastBadBreaks(lastLineBreak.priorBreak).concat(lastLineBreak.index);\n}\nfunction determineLineBreaks(logicalInput, spacing, maxWidth, glyphMap, imagePositions, symbolPlacement, layoutTextSize) {\n if (symbolPlacement !== 'point') {\n return [];\n }\n if (!logicalInput) {\n return [];\n }\n var potentialLineBreaks = [];\n var targetWidth = determineAverageLineWidth(logicalInput, spacing, maxWidth, glyphMap, imagePositions, layoutTextSize);\n var hasServerSuggestedBreakpoints = logicalInput.text.indexOf('\\u200B') >= 0;\n var currentX = 0;\n for (var i = 0; i < logicalInput.length(); i++) {\n var section = logicalInput.getSection(i);\n var codePoint = logicalInput.getCharCode(i);\n if (!whitespace[codePoint]) {\n currentX += getGlyphAdvance(codePoint, section, glyphMap, imagePositions, spacing, layoutTextSize);\n }\n if (i < logicalInput.length() - 1) {\n var ideographicBreak = charAllowsIdeographicBreaking(codePoint);\n if (breakable[codePoint] || ideographicBreak || section.imageName) {\n potentialLineBreaks.push(evaluateBreak(i + 1, currentX, targetWidth, potentialLineBreaks, calculatePenalty(codePoint, logicalInput.getCharCode(i + 1), ideographicBreak && hasServerSuggestedBreakpoints), false));\n }\n }\n }\n return leastBadBreaks(evaluateBreak(logicalInput.length(), currentX, targetWidth, potentialLineBreaks, 0, true));\n}\nfunction getAnchorAlignment(anchor) {\n var horizontalAlign = 0.5, verticalAlign = 0.5;\n switch (anchor) {\n case 'right':\n case 'top-right':\n case 'bottom-right':\n horizontalAlign = 1;\n break;\n case 'left':\n case 'top-left':\n case 'bottom-left':\n horizontalAlign = 0;\n break;\n }\n switch (anchor) {\n case 'bottom':\n case 'bottom-right':\n case 'bottom-left':\n verticalAlign = 1;\n break;\n case 'top':\n case 'top-right':\n case 'top-left':\n verticalAlign = 0;\n break;\n }\n return {\n horizontalAlign: horizontalAlign,\n verticalAlign: verticalAlign\n };\n}\nfunction shapeLines(shaping, glyphMap, glyphPositions, imagePositions, lines, lineHeight, textAnchor, textJustify, writingMode, spacing, allowVerticalPlacement, layoutTextSizeThisZoom) {\n var x = 0;\n var y = SHAPING_DEFAULT_OFFSET;\n var maxLineLength = 0;\n var maxLineHeight = 0;\n var justify = textJustify === 'right' ? 1 : textJustify === 'left' ? 0 : 0.5;\n var lineIndex = 0;\n for (var i$1 = 0, list = lines; i$1 < list.length; i$1 += 1) {\n var line = list[i$1];\n line.trim();\n var lineMaxScale = line.getMaxScale();\n var maxLineOffset = (lineMaxScale - 1) * ONE_EM;\n var positionedLine = {\n positionedGlyphs: [],\n lineOffset: 0\n };\n shaping.positionedLines[lineIndex] = positionedLine;\n var positionedGlyphs = positionedLine.positionedGlyphs;\n var lineOffset = 0;\n if (!line.length()) {\n y += lineHeight;\n ++lineIndex;\n continue;\n }\n for (var i = 0; i < line.length(); i++) {\n var section = line.getSection(i);\n var sectionIndex = line.getSectionIndex(i);\n var codePoint = line.getCharCode(i);\n var baselineOffset = 0;\n var metrics = null;\n var rect = null;\n var imageName = null;\n var verticalAdvance = ONE_EM;\n var vertical = !(writingMode === WritingMode.horizontal || !allowVerticalPlacement && !charHasUprightVerticalOrientation(codePoint) || allowVerticalPlacement && (whitespace[codePoint] || charInComplexShapingScript(codePoint)));\n if (!section.imageName) {\n var positions = glyphPositions[section.fontStack];\n var glyphPosition = positions && positions[codePoint];\n if (glyphPosition && glyphPosition.rect) {\n rect = glyphPosition.rect;\n metrics = glyphPosition.metrics;\n } else {\n var glyphs = glyphMap[section.fontStack];\n var glyph = glyphs && glyphs[codePoint];\n if (!glyph) {\n continue;\n }\n metrics = glyph.metrics;\n }\n baselineOffset = (lineMaxScale - section.scale) * ONE_EM;\n } else {\n var imagePosition = imagePositions[section.imageName];\n if (!imagePosition) {\n continue;\n }\n imageName = section.imageName;\n shaping.iconsInText = shaping.iconsInText || true;\n rect = imagePosition.paddedRect;\n var size = imagePosition.displaySize;\n section.scale = section.scale * ONE_EM / layoutTextSizeThisZoom;\n metrics = {\n width: size[0],\n height: size[1],\n left: IMAGE_PADDING,\n top: -GLYPH_PBF_BORDER,\n advance: vertical ? size[1] : size[0]\n };\n var imageOffset = ONE_EM - size[1] * section.scale;\n baselineOffset = maxLineOffset + imageOffset;\n verticalAdvance = metrics.advance;\n var offset = vertical ? size[0] * section.scale - ONE_EM * lineMaxScale : size[1] * section.scale - ONE_EM * lineMaxScale;\n if (offset > 0 && offset > lineOffset) {\n lineOffset = offset;\n }\n }\n if (!vertical) {\n positionedGlyphs.push({\n glyph: codePoint,\n imageName: imageName,\n x: x,\n y: y + baselineOffset,\n vertical: vertical,\n scale: section.scale,\n fontStack: section.fontStack,\n sectionIndex: sectionIndex,\n metrics: metrics,\n rect: rect\n });\n x += metrics.advance * section.scale + spacing;\n } else {\n shaping.verticalizable = true;\n positionedGlyphs.push({\n glyph: codePoint,\n imageName: imageName,\n x: x,\n y: y + baselineOffset,\n vertical: vertical,\n scale: section.scale,\n fontStack: section.fontStack,\n sectionIndex: sectionIndex,\n metrics: metrics,\n rect: rect\n });\n x += verticalAdvance * section.scale + spacing;\n }\n }\n if (positionedGlyphs.length !== 0) {\n var lineLength = x - spacing;\n maxLineLength = Math.max(lineLength, maxLineLength);\n justifyLine(positionedGlyphs, 0, positionedGlyphs.length - 1, justify, lineOffset);\n }\n x = 0;\n var currentLineHeight = lineHeight * lineMaxScale + lineOffset;\n positionedLine.lineOffset = Math.max(lineOffset, maxLineOffset);\n y += currentLineHeight;\n maxLineHeight = Math.max(currentLineHeight, maxLineHeight);\n ++lineIndex;\n }\n var height = y - SHAPING_DEFAULT_OFFSET;\n var ref = getAnchorAlignment(textAnchor);\n var horizontalAlign = ref.horizontalAlign;\n var verticalAlign = ref.verticalAlign;\n align$1(shaping.positionedLines, justify, horizontalAlign, verticalAlign, maxLineLength, maxLineHeight, lineHeight, height, lines.length);\n shaping.top += -verticalAlign * height;\n shaping.bottom = shaping.top + height;\n shaping.left += -horizontalAlign * maxLineLength;\n shaping.right = shaping.left + maxLineLength;\n}\nfunction justifyLine(positionedGlyphs, start, end, justify, lineOffset) {\n if (!justify && !lineOffset) {\n return;\n }\n var lastPositionedGlyph = positionedGlyphs[end];\n var lastAdvance = lastPositionedGlyph.metrics.advance * lastPositionedGlyph.scale;\n var lineIndent = (positionedGlyphs[end].x + lastAdvance) * justify;\n for (var j = start; j <= end; j++) {\n positionedGlyphs[j].x -= lineIndent;\n positionedGlyphs[j].y += lineOffset;\n }\n}\nfunction align$1(positionedLines, justify, horizontalAlign, verticalAlign, maxLineLength, maxLineHeight, lineHeight, blockHeight, lineCount) {\n var shiftX = (justify - horizontalAlign) * maxLineLength;\n var shiftY = 0;\n if (maxLineHeight !== lineHeight) {\n shiftY = -blockHeight * verticalAlign - SHAPING_DEFAULT_OFFSET;\n } else {\n shiftY = (-verticalAlign * lineCount + 0.5) * lineHeight;\n }\n for (var i$1 = 0, list$1 = positionedLines; i$1 < list$1.length; i$1 += 1) {\n var line = list$1[i$1];\n for (var i = 0, list = line.positionedGlyphs; i < list.length; i += 1) {\n var positionedGlyph = list[i];\n positionedGlyph.x += shiftX;\n positionedGlyph.y += shiftY;\n }\n }\n}\nfunction shapeIcon(image, iconOffset, iconAnchor) {\n var ref = getAnchorAlignment(iconAnchor);\n var horizontalAlign = ref.horizontalAlign;\n var verticalAlign = ref.verticalAlign;\n var dx = iconOffset[0];\n var dy = iconOffset[1];\n var x1 = dx - image.displaySize[0] * horizontalAlign;\n var x2 = x1 + image.displaySize[0];\n var y1 = dy - image.displaySize[1] * verticalAlign;\n var y2 = y1 + image.displaySize[1];\n return {\n image: image,\n top: y1,\n bottom: y2,\n left: x1,\n right: x2\n };\n}\nfunction fitIconToText(shapedIcon, shapedText, textFit, padding, iconOffset, fontScale) {\n var image = shapedIcon.image;\n var collisionPadding;\n if (image.content) {\n var content = image.content;\n var pixelRatio = image.pixelRatio || 1;\n collisionPadding = [\n content[0] / pixelRatio,\n content[1] / pixelRatio,\n image.displaySize[0] - content[2] / pixelRatio,\n image.displaySize[1] - content[3] / pixelRatio\n ];\n }\n var textLeft = shapedText.left * fontScale;\n var textRight = shapedText.right * fontScale;\n var top, right, bottom, left;\n if (textFit === 'width' || textFit === 'both') {\n left = iconOffset[0] + textLeft - padding[3];\n right = iconOffset[0] + textRight + padding[1];\n } else {\n left = iconOffset[0] + (textLeft + textRight - image.displaySize[0]) / 2;\n right = left + image.displaySize[0];\n }\n var textTop = shapedText.top * fontScale;\n var textBottom = shapedText.bottom * fontScale;\n if (textFit === 'height' || textFit === 'both') {\n top = iconOffset[1] + textTop - padding[0];\n bottom = iconOffset[1] + textBottom + padding[2];\n } else {\n top = iconOffset[1] + (textTop + textBottom - image.displaySize[1]) / 2;\n bottom = top + image.displaySize[1];\n }\n return {\n image: image,\n top: top,\n right: right,\n bottom: bottom,\n left: left,\n collisionPadding: collisionPadding\n };\n}\n\nvar Anchor = function (Point) {\n function Anchor(x, y, angle, segment) {\n Point.call(this, x, y);\n this.angle = angle;\n if (segment !== undefined) {\n this.segment = segment;\n }\n }\n if (Point)\n Anchor.__proto__ = Point;\n Anchor.prototype = Object.create(Point && Point.prototype);\n Anchor.prototype.constructor = Anchor;\n Anchor.prototype.clone = function clone() {\n return new Anchor(this.x, this.y, this.angle, this.segment);\n };\n return Anchor;\n}(pointGeometry);\nregister('Anchor', Anchor);\n\nvar SIZE_PACK_FACTOR = 128;\nfunction getSizeData(tileZoom, value) {\n var expression = value.expression;\n if (expression.kind === 'constant') {\n var layoutSize = expression.evaluate(new EvaluationParameters(tileZoom + 1));\n return {\n kind: 'constant',\n layoutSize: layoutSize\n };\n } else if (expression.kind === 'source') {\n return { kind: 'source' };\n } else {\n var zoomStops = expression.zoomStops;\n var interpolationType = expression.interpolationType;\n var lower = 0;\n while (lower < zoomStops.length && zoomStops[lower] <= tileZoom) {\n lower++;\n }\n lower = Math.max(0, lower - 1);\n var upper = lower;\n while (upper < zoomStops.length && zoomStops[upper] < tileZoom + 1) {\n upper++;\n }\n upper = Math.min(zoomStops.length - 1, upper);\n var minZoom = zoomStops[lower];\n var maxZoom = zoomStops[upper];\n if (expression.kind === 'composite') {\n return {\n kind: 'composite',\n minZoom: minZoom,\n maxZoom: maxZoom,\n interpolationType: interpolationType\n };\n }\n var minSize = expression.evaluate(new EvaluationParameters(minZoom));\n var maxSize = expression.evaluate(new EvaluationParameters(maxZoom));\n return {\n kind: 'camera',\n minZoom: minZoom,\n maxZoom: maxZoom,\n minSize: minSize,\n maxSize: maxSize,\n interpolationType: interpolationType\n };\n }\n}\nfunction evaluateSizeForFeature(sizeData, ref, ref$1) {\n var uSize = ref.uSize;\n var uSizeT = ref.uSizeT;\n var lowerSize = ref$1.lowerSize;\n var upperSize = ref$1.upperSize;\n if (sizeData.kind === 'source') {\n return lowerSize / SIZE_PACK_FACTOR;\n } else if (sizeData.kind === 'composite') {\n return number(lowerSize / SIZE_PACK_FACTOR, upperSize / SIZE_PACK_FACTOR, uSizeT);\n }\n return uSize;\n}\nfunction evaluateSizeForZoom(sizeData, zoom) {\n var uSizeT = 0;\n var uSize = 0;\n if (sizeData.kind === 'constant') {\n uSize = sizeData.layoutSize;\n } else if (sizeData.kind !== 'source') {\n var interpolationType = sizeData.interpolationType;\n var minZoom = sizeData.minZoom;\n var maxZoom = sizeData.maxZoom;\n var t = !interpolationType ? 0 : clamp(Interpolate.interpolationFactor(interpolationType, zoom, minZoom, maxZoom), 0, 1);\n if (sizeData.kind === 'camera') {\n uSize = number(sizeData.minSize, sizeData.maxSize, t);\n } else {\n uSizeT = t;\n }\n }\n return {\n uSizeT: uSizeT,\n uSize: uSize\n };\n}\n\nvar symbolSize = /*#__PURE__*/Object.freeze({\n__proto__: null,\ngetSizeData: getSizeData,\nevaluateSizeForFeature: evaluateSizeForFeature,\nevaluateSizeForZoom: evaluateSizeForZoom,\nSIZE_PACK_FACTOR: SIZE_PACK_FACTOR\n});\n\nfunction checkMaxAngle(line, anchor, labelLength, windowSize, maxAngle) {\n if (anchor.segment === undefined) {\n return true;\n }\n var p = anchor;\n var index = anchor.segment + 1;\n var anchorDistance = 0;\n while (anchorDistance > -labelLength / 2) {\n index--;\n if (index < 0) {\n return false;\n }\n anchorDistance -= line[index].dist(p);\n p = line[index];\n }\n anchorDistance += line[index].dist(line[index + 1]);\n index++;\n var recentCorners = [];\n var recentAngleDelta = 0;\n while (anchorDistance < labelLength / 2) {\n var prev = line[index - 1];\n var current = line[index];\n var next = line[index + 1];\n if (!next) {\n return false;\n }\n var angleDelta = prev.angleTo(current) - current.angleTo(next);\n angleDelta = Math.abs((angleDelta + 3 * Math.PI) % (Math.PI * 2) - Math.PI);\n recentCorners.push({\n distance: anchorDistance,\n angleDelta: angleDelta\n });\n recentAngleDelta += angleDelta;\n while (anchorDistance - recentCorners[0].distance > windowSize) {\n recentAngleDelta -= recentCorners.shift().angleDelta;\n }\n if (recentAngleDelta > maxAngle) {\n return false;\n }\n index++;\n anchorDistance += current.dist(next);\n }\n return true;\n}\n\nfunction getLineLength(line) {\n var lineLength = 0;\n for (var k = 0; k < line.length - 1; k++) {\n lineLength += line[k].dist(line[k + 1]);\n }\n return lineLength;\n}\nfunction getAngleWindowSize(shapedText, glyphSize, boxScale) {\n return shapedText ? 3 / 5 * glyphSize * boxScale : 0;\n}\nfunction getShapedLabelLength(shapedText, shapedIcon) {\n return Math.max(shapedText ? shapedText.right - shapedText.left : 0, shapedIcon ? shapedIcon.right - shapedIcon.left : 0);\n}\nfunction getCenterAnchor(line, maxAngle, shapedText, shapedIcon, glyphSize, boxScale) {\n var angleWindowSize = getAngleWindowSize(shapedText, glyphSize, boxScale);\n var labelLength = getShapedLabelLength(shapedText, shapedIcon) * boxScale;\n var prevDistance = 0;\n var centerDistance = getLineLength(line) / 2;\n for (var i = 0; i < line.length - 1; i++) {\n var a = line[i], b = line[i + 1];\n var segmentDistance = a.dist(b);\n if (prevDistance + segmentDistance > centerDistance) {\n var t = (centerDistance - prevDistance) / segmentDistance, x = number(a.x, b.x, t), y = number(a.y, b.y, t);\n var anchor = new Anchor(x, y, b.angleTo(a), i);\n anchor._round();\n if (!angleWindowSize || checkMaxAngle(line, anchor, labelLength, angleWindowSize, maxAngle)) {\n return anchor;\n } else {\n return;\n }\n }\n prevDistance += segmentDistance;\n }\n}\nfunction getAnchors(line, spacing, maxAngle, shapedText, shapedIcon, glyphSize, boxScale, overscaling, tileExtent) {\n var angleWindowSize = getAngleWindowSize(shapedText, glyphSize, boxScale);\n var shapedLabelLength = getShapedLabelLength(shapedText, shapedIcon);\n var labelLength = shapedLabelLength * boxScale;\n var isLineContinued = line[0].x === 0 || line[0].x === tileExtent || line[0].y === 0 || line[0].y === tileExtent;\n if (spacing - labelLength < spacing / 4) {\n spacing = labelLength + spacing / 4;\n }\n var fixedExtraOffset = glyphSize * 2;\n var offset = !isLineContinued ? (shapedLabelLength / 2 + fixedExtraOffset) * boxScale * overscaling % spacing : spacing / 2 * overscaling % spacing;\n return resample(line, offset, spacing, angleWindowSize, maxAngle, labelLength, isLineContinued, false, tileExtent);\n}\nfunction resample(line, offset, spacing, angleWindowSize, maxAngle, labelLength, isLineContinued, placeAtMiddle, tileExtent) {\n var halfLabelLength = labelLength / 2;\n var lineLength = getLineLength(line);\n var distance = 0, markedDistance = offset - spacing;\n var anchors = [];\n for (var i = 0; i < line.length - 1; i++) {\n var a = line[i], b = line[i + 1];\n var segmentDist = a.dist(b), angle = b.angleTo(a);\n while (markedDistance + spacing < distance + segmentDist) {\n markedDistance += spacing;\n var t = (markedDistance - distance) / segmentDist, x = number(a.x, b.x, t), y = number(a.y, b.y, t);\n if (x >= 0 && x < tileExtent && y >= 0 && y < tileExtent && markedDistance - halfLabelLength >= 0 && markedDistance + halfLabelLength <= lineLength) {\n var anchor = new Anchor(x, y, angle, i);\n anchor._round();\n if (!angleWindowSize || checkMaxAngle(line, anchor, labelLength, angleWindowSize, maxAngle)) {\n anchors.push(anchor);\n }\n }\n }\n distance += segmentDist;\n }\n if (!placeAtMiddle && !anchors.length && !isLineContinued) {\n anchors = resample(line, distance / 2, spacing, angleWindowSize, maxAngle, labelLength, isLineContinued, true, tileExtent);\n }\n return anchors;\n}\n\nfunction clipLine(lines, x1, y1, x2, y2) {\n var clippedLines = [];\n for (var l = 0; l < lines.length; l++) {\n var line = lines[l];\n var clippedLine = void 0;\n for (var i = 0; i < line.length - 1; i++) {\n var p0 = line[i];\n var p1 = line[i + 1];\n if (p0.x < x1 && p1.x < x1) {\n continue;\n } else if (p0.x < x1) {\n p0 = new pointGeometry(x1, p0.y + (p1.y - p0.y) * ((x1 - p0.x) / (p1.x - p0.x)))._round();\n } else if (p1.x < x1) {\n p1 = new pointGeometry(x1, p0.y + (p1.y - p0.y) * ((x1 - p0.x) / (p1.x - p0.x)))._round();\n }\n if (p0.y < y1 && p1.y < y1) {\n continue;\n } else if (p0.y < y1) {\n p0 = new pointGeometry(p0.x + (p1.x - p0.x) * ((y1 - p0.y) / (p1.y - p0.y)), y1)._round();\n } else if (p1.y < y1) {\n p1 = new pointGeometry(p0.x + (p1.x - p0.x) * ((y1 - p0.y) / (p1.y - p0.y)), y1)._round();\n }\n if (p0.x >= x2 && p1.x >= x2) {\n continue;\n } else if (p0.x >= x2) {\n p0 = new pointGeometry(x2, p0.y + (p1.y - p0.y) * ((x2 - p0.x) / (p1.x - p0.x)))._round();\n } else if (p1.x >= x2) {\n p1 = new pointGeometry(x2, p0.y + (p1.y - p0.y) * ((x2 - p0.x) / (p1.x - p0.x)))._round();\n }\n if (p0.y >= y2 && p1.y >= y2) {\n continue;\n } else if (p0.y >= y2) {\n p0 = new pointGeometry(p0.x + (p1.x - p0.x) * ((y2 - p0.y) / (p1.y - p0.y)), y2)._round();\n } else if (p1.y >= y2) {\n p1 = new pointGeometry(p0.x + (p1.x - p0.x) * ((y2 - p0.y) / (p1.y - p0.y)), y2)._round();\n }\n if (!clippedLine || !p0.equals(clippedLine[clippedLine.length - 1])) {\n clippedLine = [p0];\n clippedLines.push(clippedLine);\n }\n clippedLine.push(p1);\n }\n }\n return clippedLines;\n}\n\nvar border$1 = IMAGE_PADDING;\nfunction getIconQuads(shapedIcon, iconRotate, isSDFIcon, hasIconTextFit) {\n var quads = [];\n var image = shapedIcon.image;\n var pixelRatio = image.pixelRatio;\n var imageWidth = image.paddedRect.w - 2 * border$1;\n var imageHeight = image.paddedRect.h - 2 * border$1;\n var iconWidth = shapedIcon.right - shapedIcon.left;\n var iconHeight = shapedIcon.bottom - shapedIcon.top;\n var stretchX = image.stretchX || [[\n 0,\n imageWidth\n ]];\n var stretchY = image.stretchY || [[\n 0,\n imageHeight\n ]];\n var reduceRanges = function (sum, range) {\n return sum + range[1] - range[0];\n };\n var stretchWidth = stretchX.reduce(reduceRanges, 0);\n var stretchHeight = stretchY.reduce(reduceRanges, 0);\n var fixedWidth = imageWidth - stretchWidth;\n var fixedHeight = imageHeight - stretchHeight;\n var stretchOffsetX = 0;\n var stretchContentWidth = stretchWidth;\n var stretchOffsetY = 0;\n var stretchContentHeight = stretchHeight;\n var fixedOffsetX = 0;\n var fixedContentWidth = fixedWidth;\n var fixedOffsetY = 0;\n var fixedContentHeight = fixedHeight;\n if (image.content && hasIconTextFit) {\n var content = image.content;\n stretchOffsetX = sumWithinRange(stretchX, 0, content[0]);\n stretchOffsetY = sumWithinRange(stretchY, 0, content[1]);\n stretchContentWidth = sumWithinRange(stretchX, content[0], content[2]);\n stretchContentHeight = sumWithinRange(stretchY, content[1], content[3]);\n fixedOffsetX = content[0] - stretchOffsetX;\n fixedOffsetY = content[1] - stretchOffsetY;\n fixedContentWidth = content[2] - content[0] - stretchContentWidth;\n fixedContentHeight = content[3] - content[1] - stretchContentHeight;\n }\n var makeBox = function (left, top, right, bottom) {\n var leftEm = getEmOffset(left.stretch - stretchOffsetX, stretchContentWidth, iconWidth, shapedIcon.left);\n var leftPx = getPxOffset(left.fixed - fixedOffsetX, fixedContentWidth, left.stretch, stretchWidth);\n var topEm = getEmOffset(top.stretch - stretchOffsetY, stretchContentHeight, iconHeight, shapedIcon.top);\n var topPx = getPxOffset(top.fixed - fixedOffsetY, fixedContentHeight, top.stretch, stretchHeight);\n var rightEm = getEmOffset(right.stretch - stretchOffsetX, stretchContentWidth, iconWidth, shapedIcon.left);\n var rightPx = getPxOffset(right.fixed - fixedOffsetX, fixedContentWidth, right.stretch, stretchWidth);\n var bottomEm = getEmOffset(bottom.stretch - stretchOffsetY, stretchContentHeight, iconHeight, shapedIcon.top);\n var bottomPx = getPxOffset(bottom.fixed - fixedOffsetY, fixedContentHeight, bottom.stretch, stretchHeight);\n var tl = new pointGeometry(leftEm, topEm);\n var tr = new pointGeometry(rightEm, topEm);\n var br = new pointGeometry(rightEm, bottomEm);\n var bl = new pointGeometry(leftEm, bottomEm);\n var pixelOffsetTL = new pointGeometry(leftPx / pixelRatio, topPx / pixelRatio);\n var pixelOffsetBR = new pointGeometry(rightPx / pixelRatio, bottomPx / pixelRatio);\n var angle = iconRotate * Math.PI / 180;\n if (angle) {\n var sin = Math.sin(angle), cos = Math.cos(angle), matrix = [\n cos,\n -sin,\n sin,\n cos\n ];\n tl._matMult(matrix);\n tr._matMult(matrix);\n bl._matMult(matrix);\n br._matMult(matrix);\n }\n var x1 = left.stretch + left.fixed;\n var x2 = right.stretch + right.fixed;\n var y1 = top.stretch + top.fixed;\n var y2 = bottom.stretch + bottom.fixed;\n var subRect = {\n x: image.paddedRect.x + border$1 + x1,\n y: image.paddedRect.y + border$1 + y1,\n w: x2 - x1,\n h: y2 - y1\n };\n var minFontScaleX = fixedContentWidth / pixelRatio / iconWidth;\n var minFontScaleY = fixedContentHeight / pixelRatio / iconHeight;\n return {\n tl: tl,\n tr: tr,\n bl: bl,\n br: br,\n tex: subRect,\n writingMode: undefined,\n glyphOffset: [\n 0,\n 0\n ],\n sectionIndex: 0,\n pixelOffsetTL: pixelOffsetTL,\n pixelOffsetBR: pixelOffsetBR,\n minFontScaleX: minFontScaleX,\n minFontScaleY: minFontScaleY,\n isSDF: isSDFIcon\n };\n };\n if (!hasIconTextFit || !image.stretchX && !image.stretchY) {\n quads.push(makeBox({\n fixed: 0,\n stretch: -1\n }, {\n fixed: 0,\n stretch: -1\n }, {\n fixed: 0,\n stretch: imageWidth + 1\n }, {\n fixed: 0,\n stretch: imageHeight + 1\n }));\n } else {\n var xCuts = stretchZonesToCuts(stretchX, fixedWidth, stretchWidth);\n var yCuts = stretchZonesToCuts(stretchY, fixedHeight, stretchHeight);\n for (var xi = 0; xi < xCuts.length - 1; xi++) {\n var x1 = xCuts[xi];\n var x2 = xCuts[xi + 1];\n for (var yi = 0; yi < yCuts.length - 1; yi++) {\n var y1 = yCuts[yi];\n var y2 = yCuts[yi + 1];\n quads.push(makeBox(x1, y1, x2, y2));\n }\n }\n }\n return quads;\n}\nfunction sumWithinRange(ranges, min, max) {\n var sum = 0;\n for (var i = 0, list = ranges; i < list.length; i += 1) {\n var range = list[i];\n sum += Math.max(min, Math.min(max, range[1])) - Math.max(min, Math.min(max, range[0]));\n }\n return sum;\n}\nfunction stretchZonesToCuts(stretchZones, fixedSize, stretchSize) {\n var cuts = [{\n fixed: -border$1,\n stretch: 0\n }];\n for (var i = 0, list = stretchZones; i < list.length; i += 1) {\n var ref = list[i];\n var c1 = ref[0];\n var c2 = ref[1];\n var last = cuts[cuts.length - 1];\n cuts.push({\n fixed: c1 - last.stretch,\n stretch: last.stretch\n });\n cuts.push({\n fixed: c1 - last.stretch,\n stretch: last.stretch + (c2 - c1)\n });\n }\n cuts.push({\n fixed: fixedSize + border$1,\n stretch: stretchSize\n });\n return cuts;\n}\nfunction getEmOffset(stretchOffset, stretchSize, iconSize, iconOffset) {\n return stretchOffset / stretchSize * iconSize + iconOffset;\n}\nfunction getPxOffset(fixedOffset, fixedSize, stretchOffset, stretchSize) {\n return fixedOffset - fixedSize * stretchOffset / stretchSize;\n}\nfunction getGlyphQuads(anchor, shaping, textOffset, layer, alongLine, feature, imageMap, allowVerticalPlacement) {\n var textRotate = layer.layout.get('text-rotate').evaluate(feature, {}) * Math.PI / 180;\n var quads = [];\n for (var i$1 = 0, list$1 = shaping.positionedLines; i$1 < list$1.length; i$1 += 1) {\n var line = list$1[i$1];\n for (var i = 0, list = line.positionedGlyphs; i < list.length; i += 1) {\n var positionedGlyph = list[i];\n if (!positionedGlyph.rect) {\n continue;\n }\n var textureRect = positionedGlyph.rect || {};\n var glyphPadding = 1;\n var rectBuffer = GLYPH_PBF_BORDER + glyphPadding;\n var isSDF = true;\n var pixelRatio = 1;\n var lineOffset = 0;\n var rotateVerticalGlyph = (alongLine || allowVerticalPlacement) && positionedGlyph.vertical;\n var halfAdvance = positionedGlyph.metrics.advance * positionedGlyph.scale / 2;\n if (allowVerticalPlacement && shaping.verticalizable) {\n var scaledGlyphOffset = (positionedGlyph.scale - 1) * ONE_EM;\n var imageOffset = (ONE_EM - positionedGlyph.metrics.width * positionedGlyph.scale) / 2;\n lineOffset = line.lineOffset / 2 - (positionedGlyph.imageName ? -imageOffset : scaledGlyphOffset);\n }\n if (positionedGlyph.imageName) {\n var image = imageMap[positionedGlyph.imageName];\n isSDF = image.sdf;\n pixelRatio = image.pixelRatio;\n rectBuffer = IMAGE_PADDING / pixelRatio;\n }\n var glyphOffset = alongLine ? [\n positionedGlyph.x + halfAdvance,\n positionedGlyph.y\n ] : [\n 0,\n 0\n ];\n var builtInOffset = alongLine ? [\n 0,\n 0\n ] : [\n positionedGlyph.x + halfAdvance + textOffset[0],\n positionedGlyph.y + textOffset[1] - lineOffset\n ];\n var verticalizedLabelOffset = [\n 0,\n 0\n ];\n if (rotateVerticalGlyph) {\n verticalizedLabelOffset = builtInOffset;\n builtInOffset = [\n 0,\n 0\n ];\n }\n var x1 = (positionedGlyph.metrics.left - rectBuffer) * positionedGlyph.scale - halfAdvance + builtInOffset[0];\n var y1 = (-positionedGlyph.metrics.top - rectBuffer) * positionedGlyph.scale + builtInOffset[1];\n var x2 = x1 + textureRect.w * positionedGlyph.scale / pixelRatio;\n var y2 = y1 + textureRect.h * positionedGlyph.scale / pixelRatio;\n var tl = new pointGeometry(x1, y1);\n var tr = new pointGeometry(x2, y1);\n var bl = new pointGeometry(x1, y2);\n var br = new pointGeometry(x2, y2);\n if (rotateVerticalGlyph) {\n var center = new pointGeometry(-halfAdvance, halfAdvance - SHAPING_DEFAULT_OFFSET);\n var verticalRotation = -Math.PI / 2;\n var xHalfWidthOffsetCorrection = ONE_EM / 2 - halfAdvance;\n var yImageOffsetCorrection = positionedGlyph.imageName ? xHalfWidthOffsetCorrection : 0;\n var halfWidthOffsetCorrection = new pointGeometry(5 - SHAPING_DEFAULT_OFFSET - xHalfWidthOffsetCorrection, -yImageOffsetCorrection);\n var verticalOffsetCorrection = new (Function.prototype.bind.apply(pointGeometry, [null].concat(verticalizedLabelOffset)))();\n tl._rotateAround(verticalRotation, center)._add(halfWidthOffsetCorrection)._add(verticalOffsetCorrection);\n tr._rotateAround(verticalRotation, center)._add(halfWidthOffsetCorrection)._add(verticalOffsetCorrection);\n bl._rotateAround(verticalRotation, center)._add(halfWidthOffsetCorrection)._add(verticalOffsetCorrection);\n br._rotateAround(verticalRotation, center)._add(halfWidthOffsetCorrection)._add(verticalOffsetCorrection);\n }\n if (textRotate) {\n var sin = Math.sin(textRotate), cos = Math.cos(textRotate), matrix = [\n cos,\n -sin,\n sin,\n cos\n ];\n tl._matMult(matrix);\n tr._matMult(matrix);\n bl._matMult(matrix);\n br._matMult(matrix);\n }\n var pixelOffsetTL = new pointGeometry(0, 0);\n var pixelOffsetBR = new pointGeometry(0, 0);\n var minFontScaleX = 0;\n var minFontScaleY = 0;\n quads.push({\n tl: tl,\n tr: tr,\n bl: bl,\n br: br,\n tex: textureRect,\n writingMode: shaping.writingMode,\n glyphOffset: glyphOffset,\n sectionIndex: positionedGlyph.sectionIndex,\n isSDF: isSDF,\n pixelOffsetTL: pixelOffsetTL,\n pixelOffsetBR: pixelOffsetBR,\n minFontScaleX: minFontScaleX,\n minFontScaleY: minFontScaleY\n });\n }\n }\n return quads;\n}\n\nvar CollisionFeature = function CollisionFeature(collisionBoxArray, anchor, featureIndex, sourceLayerIndex, bucketIndex, shaped, boxScale, padding, alignLine, rotate) {\n this.boxStartIndex = collisionBoxArray.length;\n if (alignLine) {\n var top = shaped.top;\n var bottom = shaped.bottom;\n var collisionPadding = shaped.collisionPadding;\n if (collisionPadding) {\n top -= collisionPadding[1];\n bottom += collisionPadding[3];\n }\n var height = bottom - top;\n if (height > 0) {\n height = Math.max(10, height);\n this.circleDiameter = height;\n }\n } else {\n var y1 = shaped.top * boxScale - padding;\n var y2 = shaped.bottom * boxScale + padding;\n var x1 = shaped.left * boxScale - padding;\n var x2 = shaped.right * boxScale + padding;\n var collisionPadding$1 = shaped.collisionPadding;\n if (collisionPadding$1) {\n x1 -= collisionPadding$1[0] * boxScale;\n y1 -= collisionPadding$1[1] * boxScale;\n x2 += collisionPadding$1[2] * boxScale;\n y2 += collisionPadding$1[3] * boxScale;\n }\n if (rotate) {\n var tl = new pointGeometry(x1, y1);\n var tr = new pointGeometry(x2, y1);\n var bl = new pointGeometry(x1, y2);\n var br = new pointGeometry(x2, y2);\n var rotateRadians = rotate * Math.PI / 180;\n tl._rotate(rotateRadians);\n tr._rotate(rotateRadians);\n bl._rotate(rotateRadians);\n br._rotate(rotateRadians);\n x1 = Math.min(tl.x, tr.x, bl.x, br.x);\n x2 = Math.max(tl.x, tr.x, bl.x, br.x);\n y1 = Math.min(tl.y, tr.y, bl.y, br.y);\n y2 = Math.max(tl.y, tr.y, bl.y, br.y);\n }\n collisionBoxArray.emplaceBack(anchor.x, anchor.y, x1, y1, x2, y2, featureIndex, sourceLayerIndex, bucketIndex);\n }\n this.boxEndIndex = collisionBoxArray.length;\n};\n\nvar TinyQueue = function TinyQueue(data, compare) {\n if (data === void 0)\n data = [];\n if (compare === void 0)\n compare = defaultCompare$1;\n this.data = data;\n this.length = this.data.length;\n this.compare = compare;\n if (this.length > 0) {\n for (var i = (this.length >> 1) - 1; i >= 0; i--) {\n this._down(i);\n }\n }\n};\nTinyQueue.prototype.push = function push(item) {\n this.data.push(item);\n this.length++;\n this._up(this.length - 1);\n};\nTinyQueue.prototype.pop = function pop() {\n if (this.length === 0) {\n return undefined;\n }\n var top = this.data[0];\n var bottom = this.data.pop();\n this.length--;\n if (this.length > 0) {\n this.data[0] = bottom;\n this._down(0);\n }\n return top;\n};\nTinyQueue.prototype.peek = function peek() {\n return this.data[0];\n};\nTinyQueue.prototype._up = function _up(pos) {\n var ref = this;\n var data = ref.data;\n var compare = ref.compare;\n var item = data[pos];\n while (pos > 0) {\n var parent = pos - 1 >> 1;\n var current = data[parent];\n if (compare(item, current) >= 0) {\n break;\n }\n data[pos] = current;\n pos = parent;\n }\n data[pos] = item;\n};\nTinyQueue.prototype._down = function _down(pos) {\n var ref = this;\n var data = ref.data;\n var compare = ref.compare;\n var halfLength = this.length >> 1;\n var item = data[pos];\n while (pos < halfLength) {\n var left = (pos << 1) + 1;\n var best = data[left];\n var right = left + 1;\n if (right < this.length && compare(data[right], best) < 0) {\n left = right;\n best = data[right];\n }\n if (compare(best, item) >= 0) {\n break;\n }\n data[pos] = best;\n pos = left;\n }\n data[pos] = item;\n};\nfunction defaultCompare$1(a, b) {\n return a < b ? -1 : a > b ? 1 : 0;\n}\n\nfunction findPoleOfInaccessibility (polygonRings, precision, debug) {\n if (precision === void 0)\n precision = 1;\n if (debug === void 0)\n debug = false;\n var minX = Infinity, minY = Infinity, maxX = -Infinity, maxY = -Infinity;\n var outerRing = polygonRings[0];\n for (var i = 0; i < outerRing.length; i++) {\n var p = outerRing[i];\n if (!i || p.x < minX) {\n minX = p.x;\n }\n if (!i || p.y < minY) {\n minY = p.y;\n }\n if (!i || p.x > maxX) {\n maxX = p.x;\n }\n if (!i || p.y > maxY) {\n maxY = p.y;\n }\n }\n var width = maxX - minX;\n var height = maxY - minY;\n var cellSize = Math.min(width, height);\n var h = cellSize / 2;\n var cellQueue = new TinyQueue([], compareMax);\n if (cellSize === 0) {\n return new pointGeometry(minX, minY);\n }\n for (var x = minX; x < maxX; x += cellSize) {\n for (var y = minY; y < maxY; y += cellSize) {\n cellQueue.push(new Cell(x + h, y + h, h, polygonRings));\n }\n }\n var bestCell = getCentroidCell(polygonRings);\n var numProbes = cellQueue.length;\n while (cellQueue.length) {\n var cell = cellQueue.pop();\n if (cell.d > bestCell.d || !bestCell.d) {\n bestCell = cell;\n if (debug) {\n console.log('found best %d after %d probes', Math.round(10000 * cell.d) / 10000, numProbes);\n }\n }\n if (cell.max - bestCell.d <= precision) {\n continue;\n }\n h = cell.h / 2;\n cellQueue.push(new Cell(cell.p.x - h, cell.p.y - h, h, polygonRings));\n cellQueue.push(new Cell(cell.p.x + h, cell.p.y - h, h, polygonRings));\n cellQueue.push(new Cell(cell.p.x - h, cell.p.y + h, h, polygonRings));\n cellQueue.push(new Cell(cell.p.x + h, cell.p.y + h, h, polygonRings));\n numProbes += 4;\n }\n if (debug) {\n console.log('num probes: ' + numProbes);\n console.log('best distance: ' + bestCell.d);\n }\n return bestCell.p;\n}\nfunction compareMax(a, b) {\n return b.max - a.max;\n}\nfunction Cell(x, y, h, polygon) {\n this.p = new pointGeometry(x, y);\n this.h = h;\n this.d = pointToPolygonDist(this.p, polygon);\n this.max = this.d + this.h * Math.SQRT2;\n}\nfunction pointToPolygonDist(p, polygon) {\n var inside = false;\n var minDistSq = Infinity;\n for (var k = 0; k < polygon.length; k++) {\n var ring = polygon[k];\n for (var i = 0, len = ring.length, j = len - 1; i < len; j = i++) {\n var a = ring[i];\n var b = ring[j];\n if (a.y > p.y !== b.y > p.y && p.x < (b.x - a.x) * (p.y - a.y) / (b.y - a.y) + a.x) {\n inside = !inside;\n }\n minDistSq = Math.min(minDistSq, distToSegmentSquared(p, a, b));\n }\n }\n return (inside ? 1 : -1) * Math.sqrt(minDistSq);\n}\nfunction getCentroidCell(polygon) {\n var area = 0;\n var x = 0;\n var y = 0;\n var points = polygon[0];\n for (var i = 0, len = points.length, j = len - 1; i < len; j = i++) {\n var a = points[i];\n var b = points[j];\n var f = a.x * b.y - b.x * a.y;\n x += (a.x + b.x) * f;\n y += (a.y + b.y) * f;\n area += f * 3;\n }\n return new Cell(x / area, y / area, 0, polygon);\n}\n\nvar baselineOffset = 7;\nvar INVALID_TEXT_OFFSET = Number.POSITIVE_INFINITY;\nfunction evaluateVariableOffset(anchor, offset) {\n function fromRadialOffset(anchor, radialOffset) {\n var x = 0, y = 0;\n if (radialOffset < 0) {\n radialOffset = 0;\n }\n var hypotenuse = radialOffset / Math.sqrt(2);\n switch (anchor) {\n case 'top-right':\n case 'top-left':\n y = hypotenuse - baselineOffset;\n break;\n case 'bottom-right':\n case 'bottom-left':\n y = -hypotenuse + baselineOffset;\n break;\n case 'bottom':\n y = -radialOffset + baselineOffset;\n break;\n case 'top':\n y = radialOffset - baselineOffset;\n break;\n }\n switch (anchor) {\n case 'top-right':\n case 'bottom-right':\n x = -hypotenuse;\n break;\n case 'top-left':\n case 'bottom-left':\n x = hypotenuse;\n break;\n case 'left':\n x = radialOffset;\n break;\n case 'right':\n x = -radialOffset;\n break;\n }\n return [\n x,\n y\n ];\n }\n function fromTextOffset(anchor, offsetX, offsetY) {\n var x = 0, y = 0;\n offsetX = Math.abs(offsetX);\n offsetY = Math.abs(offsetY);\n switch (anchor) {\n case 'top-right':\n case 'top-left':\n case 'top':\n y = offsetY - baselineOffset;\n break;\n case 'bottom-right':\n case 'bottom-left':\n case 'bottom':\n y = -offsetY + baselineOffset;\n break;\n }\n switch (anchor) {\n case 'top-right':\n case 'bottom-right':\n case 'right':\n x = -offsetX;\n break;\n case 'top-left':\n case 'bottom-left':\n case 'left':\n x = offsetX;\n break;\n }\n return [\n x,\n y\n ];\n }\n return offset[1] !== INVALID_TEXT_OFFSET ? fromTextOffset(anchor, offset[0], offset[1]) : fromRadialOffset(anchor, offset[0]);\n}\nfunction performSymbolLayout(bucket, glyphMap, glyphPositions, imageMap, imagePositions, showCollisionBoxes, canonical) {\n bucket.createArrays();\n var tileSize = 512 * bucket.overscaling;\n bucket.tilePixelRatio = EXTENT$1 / tileSize;\n bucket.compareText = {};\n bucket.iconsNeedLinear = false;\n var layout = bucket.layers[0].layout;\n var unevaluatedLayoutValues = bucket.layers[0]._unevaluatedLayout._values;\n var sizes = {};\n if (bucket.textSizeData.kind === 'composite') {\n var ref = bucket.textSizeData;\n var minZoom = ref.minZoom;\n var maxZoom = ref.maxZoom;\n sizes.compositeTextSizes = [\n unevaluatedLayoutValues['text-size'].possiblyEvaluate(new EvaluationParameters(minZoom), canonical),\n unevaluatedLayoutValues['text-size'].possiblyEvaluate(new EvaluationParameters(maxZoom), canonical)\n ];\n }\n if (bucket.iconSizeData.kind === 'composite') {\n var ref$1 = bucket.iconSizeData;\n var minZoom$1 = ref$1.minZoom;\n var maxZoom$1 = ref$1.maxZoom;\n sizes.compositeIconSizes = [\n unevaluatedLayoutValues['icon-size'].possiblyEvaluate(new EvaluationParameters(minZoom$1), canonical),\n unevaluatedLayoutValues['icon-size'].possiblyEvaluate(new EvaluationParameters(maxZoom$1), canonical)\n ];\n }\n sizes.layoutTextSize = unevaluatedLayoutValues['text-size'].possiblyEvaluate(new EvaluationParameters(bucket.zoom + 1), canonical);\n sizes.layoutIconSize = unevaluatedLayoutValues['icon-size'].possiblyEvaluate(new EvaluationParameters(bucket.zoom + 1), canonical);\n sizes.textMaxSize = unevaluatedLayoutValues['text-size'].possiblyEvaluate(new EvaluationParameters(18));\n var lineHeight = layout.get('text-line-height') * ONE_EM;\n var textAlongLine = layout.get('text-rotation-alignment') === 'map' && layout.get('symbol-placement') !== 'point';\n var keepUpright = layout.get('text-keep-upright');\n var textSize = layout.get('text-size');\n var loop = function () {\n var feature = list[i$1];\n var fontstack = layout.get('text-font').evaluate(feature, {}, canonical).join(',');\n var layoutTextSizeThisZoom = textSize.evaluate(feature, {}, canonical);\n var layoutTextSize = sizes.layoutTextSize.evaluate(feature, {}, canonical);\n var layoutIconSize = sizes.layoutIconSize.evaluate(feature, {}, canonical);\n var shapedTextOrientations = {\n horizontal: {},\n vertical: undefined\n };\n var text = feature.text;\n var textOffset = [\n 0,\n 0\n ];\n if (text) {\n var unformattedText = text.toString();\n var spacing = layout.get('text-letter-spacing').evaluate(feature, {}, canonical) * ONE_EM;\n var spacingIfAllowed = allowsLetterSpacing(unformattedText) ? spacing : 0;\n var textAnchor = layout.get('text-anchor').evaluate(feature, {}, canonical);\n var variableTextAnchor = layout.get('text-variable-anchor');\n if (!variableTextAnchor) {\n var radialOffset = layout.get('text-radial-offset').evaluate(feature, {}, canonical);\n if (radialOffset) {\n textOffset = evaluateVariableOffset(textAnchor, [\n radialOffset * ONE_EM,\n INVALID_TEXT_OFFSET\n ]);\n } else {\n textOffset = layout.get('text-offset').evaluate(feature, {}, canonical).map(function (t) {\n return t * ONE_EM;\n });\n }\n }\n var textJustify = textAlongLine ? 'center' : layout.get('text-justify').evaluate(feature, {}, canonical);\n var symbolPlacement = layout.get('symbol-placement');\n var maxWidth = symbolPlacement === 'point' ? layout.get('text-max-width').evaluate(feature, {}, canonical) * ONE_EM : 0;\n var addVerticalShapingForPointLabelIfNeeded = function () {\n if (bucket.allowVerticalPlacement && allowsVerticalWritingMode(unformattedText)) {\n shapedTextOrientations.vertical = shapeText(text, glyphMap, glyphPositions, imagePositions, fontstack, maxWidth, lineHeight, textAnchor, 'left', spacingIfAllowed, textOffset, WritingMode.vertical, true, symbolPlacement, layoutTextSize, layoutTextSizeThisZoom);\n }\n };\n if (!textAlongLine && variableTextAnchor) {\n var justifications = textJustify === 'auto' ? variableTextAnchor.map(function (a) {\n return getAnchorJustification(a);\n }) : [textJustify];\n var singleLine = false;\n for (var i = 0; i < justifications.length; i++) {\n var justification = justifications[i];\n if (shapedTextOrientations.horizontal[justification]) {\n continue;\n }\n if (singleLine) {\n shapedTextOrientations.horizontal[justification] = shapedTextOrientations.horizontal[0];\n } else {\n var shaping = shapeText(text, glyphMap, glyphPositions, imagePositions, fontstack, maxWidth, lineHeight, 'center', justification, spacingIfAllowed, textOffset, WritingMode.horizontal, false, symbolPlacement, layoutTextSize, layoutTextSizeThisZoom);\n if (shaping) {\n shapedTextOrientations.horizontal[justification] = shaping;\n singleLine = shaping.positionedLines.length === 1;\n }\n }\n }\n addVerticalShapingForPointLabelIfNeeded();\n } else {\n if (textJustify === 'auto') {\n textJustify = getAnchorJustification(textAnchor);\n }\n var shaping$1 = shapeText(text, glyphMap, glyphPositions, imagePositions, fontstack, maxWidth, lineHeight, textAnchor, textJustify, spacingIfAllowed, textOffset, WritingMode.horizontal, false, symbolPlacement, layoutTextSize, layoutTextSizeThisZoom);\n if (shaping$1) {\n shapedTextOrientations.horizontal[textJustify] = shaping$1;\n }\n addVerticalShapingForPointLabelIfNeeded();\n if (allowsVerticalWritingMode(unformattedText) && textAlongLine && keepUpright) {\n shapedTextOrientations.vertical = shapeText(text, glyphMap, glyphPositions, imagePositions, fontstack, maxWidth, lineHeight, textAnchor, textJustify, spacingIfAllowed, textOffset, WritingMode.vertical, false, symbolPlacement, layoutTextSize, layoutTextSizeThisZoom);\n }\n }\n }\n var shapedIcon = void 0;\n var isSDFIcon = false;\n if (feature.icon && feature.icon.name) {\n var image = imageMap[feature.icon.name];\n if (image) {\n shapedIcon = shapeIcon(imagePositions[feature.icon.name], layout.get('icon-offset').evaluate(feature, {}, canonical), layout.get('icon-anchor').evaluate(feature, {}, canonical));\n isSDFIcon = image.sdf;\n if (bucket.sdfIcons === undefined) {\n bucket.sdfIcons = image.sdf;\n } else if (bucket.sdfIcons !== image.sdf) {\n warnOnce('Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer');\n }\n if (image.pixelRatio !== bucket.pixelRatio) {\n bucket.iconsNeedLinear = true;\n } else if (layout.get('icon-rotate').constantOr(1) !== 0) {\n bucket.iconsNeedLinear = true;\n }\n }\n }\n var shapedText = getDefaultHorizontalShaping(shapedTextOrientations.horizontal) || shapedTextOrientations.vertical;\n bucket.iconsInText = shapedText ? shapedText.iconsInText : false;\n if (shapedText || shapedIcon) {\n addFeature(bucket, feature, shapedTextOrientations, shapedIcon, imageMap, sizes, layoutTextSize, layoutIconSize, textOffset, isSDFIcon, canonical);\n }\n };\n for (var i$1 = 0, list = bucket.features; i$1 < list.length; i$1 += 1)\n loop();\n if (showCollisionBoxes) {\n bucket.generateCollisionDebugBuffers();\n }\n}\nfunction getAnchorJustification(anchor) {\n switch (anchor) {\n case 'right':\n case 'top-right':\n case 'bottom-right':\n return 'right';\n case 'left':\n case 'top-left':\n case 'bottom-left':\n return 'left';\n }\n return 'center';\n}\nfunction addFeature(bucket, feature, shapedTextOrientations, shapedIcon, imageMap, sizes, layoutTextSize, layoutIconSize, textOffset, isSDFIcon, canonical) {\n var textMaxSize = sizes.textMaxSize.evaluate(feature, {});\n if (textMaxSize === undefined) {\n textMaxSize = layoutTextSize;\n }\n var layout = bucket.layers[0].layout;\n var iconOffset = layout.get('icon-offset').evaluate(feature, {}, canonical);\n var defaultHorizontalShaping = getDefaultHorizontalShaping(shapedTextOrientations.horizontal);\n var glyphSize = 24, fontScale = layoutTextSize / glyphSize, textBoxScale = bucket.tilePixelRatio * fontScale, textMaxBoxScale = bucket.tilePixelRatio * textMaxSize / glyphSize, iconBoxScale = bucket.tilePixelRatio * layoutIconSize, symbolMinDistance = bucket.tilePixelRatio * layout.get('symbol-spacing'), textPadding = layout.get('text-padding') * bucket.tilePixelRatio, iconPadding = layout.get('icon-padding') * bucket.tilePixelRatio, textMaxAngle = layout.get('text-max-angle') / 180 * Math.PI, textAlongLine = layout.get('text-rotation-alignment') === 'map' && layout.get('symbol-placement') !== 'point', iconAlongLine = layout.get('icon-rotation-alignment') === 'map' && layout.get('symbol-placement') !== 'point', symbolPlacement = layout.get('symbol-placement'), textRepeatDistance = symbolMinDistance / 2;\n var iconTextFit = layout.get('icon-text-fit');\n var verticallyShapedIcon;\n if (shapedIcon && iconTextFit !== 'none') {\n if (bucket.allowVerticalPlacement && shapedTextOrientations.vertical) {\n verticallyShapedIcon = fitIconToText(shapedIcon, shapedTextOrientations.vertical, iconTextFit, layout.get('icon-text-fit-padding'), iconOffset, fontScale);\n }\n if (defaultHorizontalShaping) {\n shapedIcon = fitIconToText(shapedIcon, defaultHorizontalShaping, iconTextFit, layout.get('icon-text-fit-padding'), iconOffset, fontScale);\n }\n }\n var addSymbolAtAnchor = function (line, anchor) {\n if (anchor.x < 0 || anchor.x >= EXTENT$1 || anchor.y < 0 || anchor.y >= EXTENT$1) {\n return;\n }\n addSymbol(bucket, anchor, line, shapedTextOrientations, shapedIcon, imageMap, verticallyShapedIcon, bucket.layers[0], bucket.collisionBoxArray, feature.index, feature.sourceLayerIndex, bucket.index, textBoxScale, textPadding, textAlongLine, textOffset, iconBoxScale, iconPadding, iconAlongLine, iconOffset, feature, sizes, isSDFIcon, canonical, layoutTextSize);\n };\n if (symbolPlacement === 'line') {\n for (var i$1 = 0, list$1 = clipLine(feature.geometry, 0, 0, EXTENT$1, EXTENT$1); i$1 < list$1.length; i$1 += 1) {\n var line = list$1[i$1];\n var anchors = getAnchors(line, symbolMinDistance, textMaxAngle, shapedTextOrientations.vertical || defaultHorizontalShaping, shapedIcon, glyphSize, textMaxBoxScale, bucket.overscaling, EXTENT$1);\n for (var i = 0, list = anchors; i < list.length; i += 1) {\n var anchor = list[i];\n var shapedText = defaultHorizontalShaping;\n if (!shapedText || !anchorIsTooClose(bucket, shapedText.text, textRepeatDistance, anchor)) {\n addSymbolAtAnchor(line, anchor);\n }\n }\n }\n } else if (symbolPlacement === 'line-center') {\n for (var i$2 = 0, list$2 = feature.geometry; i$2 < list$2.length; i$2 += 1) {\n var line$1 = list$2[i$2];\n if (line$1.length > 1) {\n var anchor$1 = getCenterAnchor(line$1, textMaxAngle, shapedTextOrientations.vertical || defaultHorizontalShaping, shapedIcon, glyphSize, textMaxBoxScale);\n if (anchor$1) {\n addSymbolAtAnchor(line$1, anchor$1);\n }\n }\n }\n } else if (feature.type === 'Polygon') {\n for (var i$3 = 0, list$3 = classifyRings(feature.geometry, 0); i$3 < list$3.length; i$3 += 1) {\n var polygon = list$3[i$3];\n var poi = findPoleOfInaccessibility(polygon, 16);\n addSymbolAtAnchor(polygon[0], new Anchor(poi.x, poi.y, 0));\n }\n } else if (feature.type === 'LineString') {\n for (var i$4 = 0, list$4 = feature.geometry; i$4 < list$4.length; i$4 += 1) {\n var line$2 = list$4[i$4];\n addSymbolAtAnchor(line$2, new Anchor(line$2[0].x, line$2[0].y, 0));\n }\n } else if (feature.type === 'Point') {\n for (var i$6 = 0, list$6 = feature.geometry; i$6 < list$6.length; i$6 += 1) {\n var points = list$6[i$6];\n for (var i$5 = 0, list$5 = points; i$5 < list$5.length; i$5 += 1) {\n var point = list$5[i$5];\n addSymbolAtAnchor([point], new Anchor(point.x, point.y, 0));\n }\n }\n }\n}\nvar MAX_GLYPH_ICON_SIZE = 255;\nvar MAX_PACKED_SIZE = MAX_GLYPH_ICON_SIZE * SIZE_PACK_FACTOR;\nfunction addTextVertices(bucket, anchor, shapedText, imageMap, layer, textAlongLine, feature, textOffset, lineArray, writingMode, placementTypes, placedTextSymbolIndices, placedIconIndex, sizes, canonical) {\n var glyphQuads = getGlyphQuads(anchor, shapedText, textOffset, layer, textAlongLine, feature, imageMap, bucket.allowVerticalPlacement);\n var sizeData = bucket.textSizeData;\n var textSizeData = null;\n if (sizeData.kind === 'source') {\n textSizeData = [SIZE_PACK_FACTOR * layer.layout.get('text-size').evaluate(feature, {})];\n if (textSizeData[0] > MAX_PACKED_SIZE) {\n warnOnce(bucket.layerIds[0] + ': Value for \"text-size\" is >= ' + MAX_GLYPH_ICON_SIZE + '. Reduce your \"text-size\".');\n }\n } else if (sizeData.kind === 'composite') {\n textSizeData = [\n SIZE_PACK_FACTOR * sizes.compositeTextSizes[0].evaluate(feature, {}, canonical),\n SIZE_PACK_FACTOR * sizes.compositeTextSizes[1].evaluate(feature, {}, canonical)\n ];\n if (textSizeData[0] > MAX_PACKED_SIZE || textSizeData[1] > MAX_PACKED_SIZE) {\n warnOnce(bucket.layerIds[0] + ': Value for \"text-size\" is >= ' + MAX_GLYPH_ICON_SIZE + '. Reduce your \"text-size\".');\n }\n }\n bucket.addSymbols(bucket.text, glyphQuads, textSizeData, textOffset, textAlongLine, feature, writingMode, anchor, lineArray.lineStartIndex, lineArray.lineLength, placedIconIndex, canonical);\n for (var i = 0, list = placementTypes; i < list.length; i += 1) {\n var placementType = list[i];\n placedTextSymbolIndices[placementType] = bucket.text.placedSymbolArray.length - 1;\n }\n return glyphQuads.length * 4;\n}\nfunction getDefaultHorizontalShaping(horizontalShaping) {\n for (var justification in horizontalShaping) {\n return horizontalShaping[justification];\n }\n return null;\n}\nfunction addSymbol(bucket, anchor, line, shapedTextOrientations, shapedIcon, imageMap, verticallyShapedIcon, layer, collisionBoxArray, featureIndex, sourceLayerIndex, bucketIndex, textBoxScale, textPadding, textAlongLine, textOffset, iconBoxScale, iconPadding, iconAlongLine, iconOffset, feature, sizes, isSDFIcon, canonical, layoutTextSize) {\n var assign;\n var lineArray = bucket.addToLineVertexArray(anchor, line);\n var textCollisionFeature, iconCollisionFeature, verticalTextCollisionFeature, verticalIconCollisionFeature;\n var numIconVertices = 0;\n var numVerticalIconVertices = 0;\n var numHorizontalGlyphVertices = 0;\n var numVerticalGlyphVertices = 0;\n var placedIconSymbolIndex = -1;\n var verticalPlacedIconSymbolIndex = -1;\n var placedTextSymbolIndices = {};\n var key = murmurhashJs('');\n var textOffset0 = 0;\n var textOffset1 = 0;\n if (layer._unevaluatedLayout.getValue('text-radial-offset') === undefined) {\n assign = layer.layout.get('text-offset').evaluate(feature, {}, canonical).map(function (t) {\n return t * ONE_EM;\n }), textOffset0 = assign[0], textOffset1 = assign[1];\n } else {\n textOffset0 = layer.layout.get('text-radial-offset').evaluate(feature, {}, canonical) * ONE_EM;\n textOffset1 = INVALID_TEXT_OFFSET;\n }\n if (bucket.allowVerticalPlacement && shapedTextOrientations.vertical) {\n var textRotation = layer.layout.get('text-rotate').evaluate(feature, {}, canonical);\n var verticalTextRotation = textRotation + 90;\n var verticalShaping = shapedTextOrientations.vertical;\n verticalTextCollisionFeature = new CollisionFeature(collisionBoxArray, anchor, featureIndex, sourceLayerIndex, bucketIndex, verticalShaping, textBoxScale, textPadding, textAlongLine, verticalTextRotation);\n if (verticallyShapedIcon) {\n verticalIconCollisionFeature = new CollisionFeature(collisionBoxArray, anchor, featureIndex, sourceLayerIndex, bucketIndex, verticallyShapedIcon, iconBoxScale, iconPadding, textAlongLine, verticalTextRotation);\n }\n }\n if (shapedIcon) {\n var iconRotate = layer.layout.get('icon-rotate').evaluate(feature, {});\n var hasIconTextFit = layer.layout.get('icon-text-fit') !== 'none';\n var iconQuads = getIconQuads(shapedIcon, iconRotate, isSDFIcon, hasIconTextFit);\n var verticalIconQuads = verticallyShapedIcon ? getIconQuads(verticallyShapedIcon, iconRotate, isSDFIcon, hasIconTextFit) : undefined;\n iconCollisionFeature = new CollisionFeature(collisionBoxArray, anchor, featureIndex, sourceLayerIndex, bucketIndex, shapedIcon, iconBoxScale, iconPadding, false, iconRotate);\n numIconVertices = iconQuads.length * 4;\n var sizeData = bucket.iconSizeData;\n var iconSizeData = null;\n if (sizeData.kind === 'source') {\n iconSizeData = [SIZE_PACK_FACTOR * layer.layout.get('icon-size').evaluate(feature, {})];\n if (iconSizeData[0] > MAX_PACKED_SIZE) {\n warnOnce(bucket.layerIds[0] + ': Value for \"icon-size\" is >= ' + MAX_GLYPH_ICON_SIZE + '. Reduce your \"icon-size\".');\n }\n } else if (sizeData.kind === 'composite') {\n iconSizeData = [\n SIZE_PACK_FACTOR * sizes.compositeIconSizes[0].evaluate(feature, {}, canonical),\n SIZE_PACK_FACTOR * sizes.compositeIconSizes[1].evaluate(feature, {}, canonical)\n ];\n if (iconSizeData[0] > MAX_PACKED_SIZE || iconSizeData[1] > MAX_PACKED_SIZE) {\n warnOnce(bucket.layerIds[0] + ': Value for \"icon-size\" is >= ' + MAX_GLYPH_ICON_SIZE + '. Reduce your \"icon-size\".');\n }\n }\n bucket.addSymbols(bucket.icon, iconQuads, iconSizeData, iconOffset, iconAlongLine, feature, false, anchor, lineArray.lineStartIndex, lineArray.lineLength, -1, canonical);\n placedIconSymbolIndex = bucket.icon.placedSymbolArray.length - 1;\n if (verticalIconQuads) {\n numVerticalIconVertices = verticalIconQuads.length * 4;\n bucket.addSymbols(bucket.icon, verticalIconQuads, iconSizeData, iconOffset, iconAlongLine, feature, WritingMode.vertical, anchor, lineArray.lineStartIndex, lineArray.lineLength, -1, canonical);\n verticalPlacedIconSymbolIndex = bucket.icon.placedSymbolArray.length - 1;\n }\n }\n for (var justification in shapedTextOrientations.horizontal) {\n var shaping = shapedTextOrientations.horizontal[justification];\n if (!textCollisionFeature) {\n key = murmurhashJs(shaping.text);\n var textRotate = layer.layout.get('text-rotate').evaluate(feature, {}, canonical);\n textCollisionFeature = new CollisionFeature(collisionBoxArray, anchor, featureIndex, sourceLayerIndex, bucketIndex, shaping, textBoxScale, textPadding, textAlongLine, textRotate);\n }\n var singleLine = shaping.positionedLines.length === 1;\n numHorizontalGlyphVertices += addTextVertices(bucket, anchor, shaping, imageMap, layer, textAlongLine, feature, textOffset, lineArray, shapedTextOrientations.vertical ? WritingMode.horizontal : WritingMode.horizontalOnly, singleLine ? Object.keys(shapedTextOrientations.horizontal) : [justification], placedTextSymbolIndices, placedIconSymbolIndex, sizes, canonical);\n if (singleLine) {\n break;\n }\n }\n if (shapedTextOrientations.vertical) {\n numVerticalGlyphVertices += addTextVertices(bucket, anchor, shapedTextOrientations.vertical, imageMap, layer, textAlongLine, feature, textOffset, lineArray, WritingMode.vertical, ['vertical'], placedTextSymbolIndices, verticalPlacedIconSymbolIndex, sizes, canonical);\n }\n var textBoxStartIndex = textCollisionFeature ? textCollisionFeature.boxStartIndex : bucket.collisionBoxArray.length;\n var textBoxEndIndex = textCollisionFeature ? textCollisionFeature.boxEndIndex : bucket.collisionBoxArray.length;\n var verticalTextBoxStartIndex = verticalTextCollisionFeature ? verticalTextCollisionFeature.boxStartIndex : bucket.collisionBoxArray.length;\n var verticalTextBoxEndIndex = verticalTextCollisionFeature ? verticalTextCollisionFeature.boxEndIndex : bucket.collisionBoxArray.length;\n var iconBoxStartIndex = iconCollisionFeature ? iconCollisionFeature.boxStartIndex : bucket.collisionBoxArray.length;\n var iconBoxEndIndex = iconCollisionFeature ? iconCollisionFeature.boxEndIndex : bucket.collisionBoxArray.length;\n var verticalIconBoxStartIndex = verticalIconCollisionFeature ? verticalIconCollisionFeature.boxStartIndex : bucket.collisionBoxArray.length;\n var verticalIconBoxEndIndex = verticalIconCollisionFeature ? verticalIconCollisionFeature.boxEndIndex : bucket.collisionBoxArray.length;\n var collisionCircleDiameter = -1;\n var getCollisionCircleHeight = function (feature, prevHeight) {\n if (feature && feature.circleDiameter) {\n return Math.max(feature.circleDiameter, prevHeight);\n }\n return prevHeight;\n };\n collisionCircleDiameter = getCollisionCircleHeight(textCollisionFeature, collisionCircleDiameter);\n collisionCircleDiameter = getCollisionCircleHeight(verticalTextCollisionFeature, collisionCircleDiameter);\n collisionCircleDiameter = getCollisionCircleHeight(iconCollisionFeature, collisionCircleDiameter);\n collisionCircleDiameter = getCollisionCircleHeight(verticalIconCollisionFeature, collisionCircleDiameter);\n var useRuntimeCollisionCircles = collisionCircleDiameter > -1 ? 1 : 0;\n if (useRuntimeCollisionCircles) {\n collisionCircleDiameter *= layoutTextSize / ONE_EM;\n }\n if (bucket.glyphOffsetArray.length >= SymbolBucket.MAX_GLYPHS) {\n warnOnce('Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907');\n }\n if (feature.sortKey !== undefined) {\n bucket.addToSortKeyRanges(bucket.symbolInstances.length, feature.sortKey);\n }\n bucket.symbolInstances.emplaceBack(anchor.x, anchor.y, placedTextSymbolIndices.right >= 0 ? placedTextSymbolIndices.right : -1, placedTextSymbolIndices.center >= 0 ? placedTextSymbolIndices.center : -1, placedTextSymbolIndices.left >= 0 ? placedTextSymbolIndices.left : -1, placedTextSymbolIndices.vertical || -1, placedIconSymbolIndex, verticalPlacedIconSymbolIndex, key, textBoxStartIndex, textBoxEndIndex, verticalTextBoxStartIndex, verticalTextBoxEndIndex, iconBoxStartIndex, iconBoxEndIndex, verticalIconBoxStartIndex, verticalIconBoxEndIndex, featureIndex, numHorizontalGlyphVertices, numVerticalGlyphVertices, numIconVertices, numVerticalIconVertices, useRuntimeCollisionCircles, 0, textBoxScale, textOffset0, textOffset1, collisionCircleDiameter);\n}\nfunction anchorIsTooClose(bucket, text, repeatDistance, anchor) {\n var compareText = bucket.compareText;\n if (!(text in compareText)) {\n compareText[text] = [];\n } else {\n var otherAnchors = compareText[text];\n for (var k = otherAnchors.length - 1; k >= 0; k--) {\n if (anchor.dist(otherAnchors[k]) < repeatDistance) {\n return true;\n }\n }\n }\n compareText[text].push(anchor);\n return false;\n}\n\nvar vectorTileFeatureTypes$2 = vectorTile.VectorTileFeature.types;\nvar shaderOpacityAttributes = [{\n name: 'a_fade_opacity',\n components: 1,\n type: 'Uint8',\n offset: 0\n }];\nfunction addVertex$1(array, anchorX, anchorY, ox, oy, tx, ty, sizeVertex, isSDF, pixelOffsetX, pixelOffsetY, minFontScaleX, minFontScaleY) {\n var aSizeX = sizeVertex ? Math.min(MAX_PACKED_SIZE, Math.round(sizeVertex[0])) : 0;\n var aSizeY = sizeVertex ? Math.min(MAX_PACKED_SIZE, Math.round(sizeVertex[1])) : 0;\n array.emplaceBack(anchorX, anchorY, Math.round(ox * 32), Math.round(oy * 32), tx, ty, (aSizeX << 1) + (isSDF ? 1 : 0), aSizeY, pixelOffsetX * 16, pixelOffsetY * 16, minFontScaleX * 256, minFontScaleY * 256);\n}\nfunction addDynamicAttributes(dynamicLayoutVertexArray, p, angle) {\n dynamicLayoutVertexArray.emplaceBack(p.x, p.y, angle);\n dynamicLayoutVertexArray.emplaceBack(p.x, p.y, angle);\n dynamicLayoutVertexArray.emplaceBack(p.x, p.y, angle);\n dynamicLayoutVertexArray.emplaceBack(p.x, p.y, angle);\n}\nfunction containsRTLText(formattedText) {\n for (var i = 0, list = formattedText.sections; i < list.length; i += 1) {\n var section = list[i];\n if (stringContainsRTLText(section.text)) {\n return true;\n }\n }\n return false;\n}\nvar SymbolBuffers = function SymbolBuffers(programConfigurations) {\n this.layoutVertexArray = new StructArrayLayout4i4ui4i24();\n this.indexArray = new StructArrayLayout3ui6();\n this.programConfigurations = programConfigurations;\n this.segments = new SegmentVector();\n this.dynamicLayoutVertexArray = new StructArrayLayout3f12();\n this.opacityVertexArray = new StructArrayLayout1ul4();\n this.placedSymbolArray = new PlacedSymbolArray();\n};\nSymbolBuffers.prototype.isEmpty = function isEmpty() {\n return this.layoutVertexArray.length === 0 && this.indexArray.length === 0 && this.dynamicLayoutVertexArray.length === 0 && this.opacityVertexArray.length === 0;\n};\nSymbolBuffers.prototype.upload = function upload(context, dynamicIndexBuffer, upload$1, update) {\n if (this.isEmpty()) {\n return;\n }\n if (upload$1) {\n this.layoutVertexBuffer = context.createVertexBuffer(this.layoutVertexArray, symbolLayoutAttributes.members);\n this.indexBuffer = context.createIndexBuffer(this.indexArray, dynamicIndexBuffer);\n this.dynamicLayoutVertexBuffer = context.createVertexBuffer(this.dynamicLayoutVertexArray, dynamicLayoutAttributes.members, true);\n this.opacityVertexBuffer = context.createVertexBuffer(this.opacityVertexArray, shaderOpacityAttributes, true);\n this.opacityVertexBuffer.itemSize = 1;\n }\n if (upload$1 || update) {\n this.programConfigurations.upload(context);\n }\n};\nSymbolBuffers.prototype.destroy = function destroy() {\n if (!this.layoutVertexBuffer) {\n return;\n }\n this.layoutVertexBuffer.destroy();\n this.indexBuffer.destroy();\n this.programConfigurations.destroy();\n this.segments.destroy();\n this.dynamicLayoutVertexBuffer.destroy();\n this.opacityVertexBuffer.destroy();\n};\nregister('SymbolBuffers', SymbolBuffers);\nvar CollisionBuffers = function CollisionBuffers(LayoutArray, layoutAttributes, IndexArray) {\n this.layoutVertexArray = new LayoutArray();\n this.layoutAttributes = layoutAttributes;\n this.indexArray = new IndexArray();\n this.segments = new SegmentVector();\n this.collisionVertexArray = new StructArrayLayout2ub2f12();\n};\nCollisionBuffers.prototype.upload = function upload(context) {\n this.layoutVertexBuffer = context.createVertexBuffer(this.layoutVertexArray, this.layoutAttributes);\n this.indexBuffer = context.createIndexBuffer(this.indexArray);\n this.collisionVertexBuffer = context.createVertexBuffer(this.collisionVertexArray, collisionVertexAttributes.members, true);\n};\nCollisionBuffers.prototype.destroy = function destroy() {\n if (!this.layoutVertexBuffer) {\n return;\n }\n this.layoutVertexBuffer.destroy();\n this.indexBuffer.destroy();\n this.segments.destroy();\n this.collisionVertexBuffer.destroy();\n};\nregister('CollisionBuffers', CollisionBuffers);\nvar SymbolBucket = function SymbolBucket(options) {\n this.collisionBoxArray = options.collisionBoxArray;\n this.zoom = options.zoom;\n this.overscaling = options.overscaling;\n this.layers = options.layers;\n this.layerIds = this.layers.map(function (layer) {\n return layer.id;\n });\n this.index = options.index;\n this.pixelRatio = options.pixelRatio;\n this.sourceLayerIndex = options.sourceLayerIndex;\n this.hasPattern = false;\n this.hasRTLText = false;\n this.sortKeyRanges = [];\n this.collisionCircleArray = [];\n this.placementInvProjMatrix = identity([]);\n this.placementViewportMatrix = identity([]);\n var layer = this.layers[0];\n var unevaluatedLayoutValues = layer._unevaluatedLayout._values;\n this.textSizeData = getSizeData(this.zoom, unevaluatedLayoutValues['text-size']);\n this.iconSizeData = getSizeData(this.zoom, unevaluatedLayoutValues['icon-size']);\n var layout = this.layers[0].layout;\n var sortKey = layout.get('symbol-sort-key');\n var zOrder = layout.get('symbol-z-order');\n this.sortFeaturesByKey = zOrder !== 'viewport-y' && sortKey.constantOr(1) !== undefined;\n var zOrderByViewportY = zOrder === 'viewport-y' || zOrder === 'auto' && !this.sortFeaturesByKey;\n this.sortFeaturesByY = zOrderByViewportY && (layout.get('text-allow-overlap') || layout.get('icon-allow-overlap') || layout.get('text-ignore-placement') || layout.get('icon-ignore-placement'));\n if (layout.get('symbol-placement') === 'point') {\n this.writingModes = layout.get('text-writing-mode').map(function (wm) {\n return WritingMode[wm];\n });\n }\n this.stateDependentLayerIds = this.layers.filter(function (l) {\n return l.isStateDependent();\n }).map(function (l) {\n return l.id;\n });\n this.sourceID = options.sourceID;\n};\nSymbolBucket.prototype.createArrays = function createArrays() {\n this.text = new SymbolBuffers(new ProgramConfigurationSet(symbolLayoutAttributes.members, this.layers, this.zoom, function (property) {\n return /^text/.test(property);\n }));\n this.icon = new SymbolBuffers(new ProgramConfigurationSet(symbolLayoutAttributes.members, this.layers, this.zoom, function (property) {\n return /^icon/.test(property);\n }));\n this.glyphOffsetArray = new GlyphOffsetArray();\n this.lineVertexArray = new SymbolLineVertexArray();\n this.symbolInstances = new SymbolInstanceArray();\n};\nSymbolBucket.prototype.calculateGlyphDependencies = function calculateGlyphDependencies(text, stack, textAlongLine, allowVerticalPlacement, doesAllowVerticalWritingMode) {\n for (var i = 0; i < text.length; i++) {\n stack[text.charCodeAt(i)] = true;\n if ((textAlongLine || allowVerticalPlacement) && doesAllowVerticalWritingMode) {\n var verticalChar = verticalizedCharacterMap[text.charAt(i)];\n if (verticalChar) {\n stack[verticalChar.charCodeAt(0)] = true;\n }\n }\n }\n};\nSymbolBucket.prototype.populate = function populate(features, options, canonical) {\n var layer = this.layers[0];\n var layout = layer.layout;\n var textFont = layout.get('text-font');\n var textField = layout.get('text-field');\n var iconImage = layout.get('icon-image');\n var hasText = (textField.value.kind !== 'constant' || textField.value.value instanceof Formatted && !textField.value.value.isEmpty() || textField.value.value.toString().length > 0) && (textFont.value.kind !== 'constant' || textFont.value.value.length > 0);\n var hasIcon = iconImage.value.kind !== 'constant' || !!iconImage.value.value || Object.keys(iconImage.parameters).length > 0;\n var symbolSortKey = layout.get('symbol-sort-key');\n this.features = [];\n if (!hasText && !hasIcon) {\n return;\n }\n var icons = options.iconDependencies;\n var stacks = options.glyphDependencies;\n var availableImages = options.availableImages;\n var globalProperties = new EvaluationParameters(this.zoom);\n for (var i$1 = 0, list$1 = features; i$1 < list$1.length; i$1 += 1) {\n var ref = list$1[i$1];\n var feature = ref.feature;\n var id = ref.id;\n var index = ref.index;\n var sourceLayerIndex = ref.sourceLayerIndex;\n var needGeometry = layer._featureFilter.needGeometry;\n var evaluationFeature = {\n type: feature.type,\n id: id,\n properties: feature.properties,\n geometry: needGeometry ? loadGeometry(feature) : []\n };\n if (!layer._featureFilter.filter(globalProperties, evaluationFeature, canonical)) {\n continue;\n }\n if (!needGeometry) {\n evaluationFeature.geometry = loadGeometry(feature);\n }\n var text = void 0;\n if (hasText) {\n var resolvedTokens = layer.getValueAndResolveTokens('text-field', evaluationFeature, canonical, availableImages);\n var formattedText = Formatted.factory(resolvedTokens);\n if (containsRTLText(formattedText)) {\n this.hasRTLText = true;\n }\n if (!this.hasRTLText || getRTLTextPluginStatus() === 'unavailable' || this.hasRTLText && plugin.isParsed()) {\n text = transformText$1(formattedText, layer, evaluationFeature);\n }\n }\n var icon = void 0;\n if (hasIcon) {\n var resolvedTokens$1 = layer.getValueAndResolveTokens('icon-image', evaluationFeature, canonical, availableImages);\n if (resolvedTokens$1 instanceof ResolvedImage) {\n icon = resolvedTokens$1;\n } else {\n icon = ResolvedImage.fromString(resolvedTokens$1);\n }\n }\n if (!text && !icon) {\n continue;\n }\n var sortKey = this.sortFeaturesByKey ? symbolSortKey.evaluate(evaluationFeature, {}, canonical) : undefined;\n var symbolFeature = {\n id: id,\n text: text,\n icon: icon,\n index: index,\n sourceLayerIndex: sourceLayerIndex,\n geometry: loadGeometry(feature),\n properties: feature.properties,\n type: vectorTileFeatureTypes$2[feature.type],\n sortKey: sortKey\n };\n this.features.push(symbolFeature);\n if (icon) {\n icons[icon.name] = true;\n }\n if (text) {\n var fontStack = textFont.evaluate(evaluationFeature, {}, canonical).join(',');\n var textAlongLine = layout.get('text-rotation-alignment') === 'map' && layout.get('symbol-placement') !== 'point';\n this.allowVerticalPlacement = this.writingModes && this.writingModes.indexOf(WritingMode.vertical) >= 0;\n for (var i = 0, list = text.sections; i < list.length; i += 1) {\n var section = list[i];\n if (!section.image) {\n var doesAllowVerticalWritingMode = allowsVerticalWritingMode(text.toString());\n var sectionFont = section.fontStack || fontStack;\n var sectionStack = stacks[sectionFont] = stacks[sectionFont] || {};\n this.calculateGlyphDependencies(section.text, sectionStack, textAlongLine, this.allowVerticalPlacement, doesAllowVerticalWritingMode);\n } else {\n icons[section.image.name] = true;\n }\n }\n }\n }\n if (layout.get('symbol-placement') === 'line') {\n this.features = mergeLines(this.features);\n }\n if (this.sortFeaturesByKey) {\n this.features.sort(function (a, b) {\n return a.sortKey - b.sortKey;\n });\n }\n};\nSymbolBucket.prototype.update = function update(states, vtLayer, imagePositions) {\n if (!this.stateDependentLayers.length) {\n return;\n }\n this.text.programConfigurations.updatePaintArrays(states, vtLayer, this.layers, imagePositions);\n this.icon.programConfigurations.updatePaintArrays(states, vtLayer, this.layers, imagePositions);\n};\nSymbolBucket.prototype.isEmpty = function isEmpty() {\n return this.symbolInstances.length === 0 && !this.hasRTLText;\n};\nSymbolBucket.prototype.uploadPending = function uploadPending() {\n return !this.uploaded || this.text.programConfigurations.needsUpload || this.icon.programConfigurations.needsUpload;\n};\nSymbolBucket.prototype.upload = function upload(context) {\n if (!this.uploaded && this.hasDebugData()) {\n this.textCollisionBox.upload(context);\n this.iconCollisionBox.upload(context);\n }\n this.text.upload(context, this.sortFeaturesByY, !this.uploaded, this.text.programConfigurations.needsUpload);\n this.icon.upload(context, this.sortFeaturesByY, !this.uploaded, this.icon.programConfigurations.needsUpload);\n this.uploaded = true;\n};\nSymbolBucket.prototype.destroyDebugData = function destroyDebugData() {\n this.textCollisionBox.destroy();\n this.iconCollisionBox.destroy();\n};\nSymbolBucket.prototype.destroy = function destroy() {\n this.text.destroy();\n this.icon.destroy();\n if (this.hasDebugData()) {\n this.destroyDebugData();\n }\n};\nSymbolBucket.prototype.addToLineVertexArray = function addToLineVertexArray(anchor, line) {\n var lineStartIndex = this.lineVertexArray.length;\n if (anchor.segment !== undefined) {\n var sumForwardLength = anchor.dist(line[anchor.segment + 1]);\n var sumBackwardLength = anchor.dist(line[anchor.segment]);\n var vertices = {};\n for (var i = anchor.segment + 1; i < line.length; i++) {\n vertices[i] = {\n x: line[i].x,\n y: line[i].y,\n tileUnitDistanceFromAnchor: sumForwardLength\n };\n if (i < line.length - 1) {\n sumForwardLength += line[i + 1].dist(line[i]);\n }\n }\n for (var i$1 = anchor.segment || 0; i$1 >= 0; i$1--) {\n vertices[i$1] = {\n x: line[i$1].x,\n y: line[i$1].y,\n tileUnitDistanceFromAnchor: sumBackwardLength\n };\n if (i$1 > 0) {\n sumBackwardLength += line[i$1 - 1].dist(line[i$1]);\n }\n }\n for (var i$2 = 0; i$2 < line.length; i$2++) {\n var vertex = vertices[i$2];\n this.lineVertexArray.emplaceBack(vertex.x, vertex.y, vertex.tileUnitDistanceFromAnchor);\n }\n }\n return {\n lineStartIndex: lineStartIndex,\n lineLength: this.lineVertexArray.length - lineStartIndex\n };\n};\nSymbolBucket.prototype.addSymbols = function addSymbols(arrays, quads, sizeVertex, lineOffset, alongLine, feature, writingMode, labelAnchor, lineStartIndex, lineLength, associatedIconIndex, canonical) {\n var indexArray = arrays.indexArray;\n var layoutVertexArray = arrays.layoutVertexArray;\n var segment = arrays.segments.prepareSegment(4 * quads.length, layoutVertexArray, indexArray, feature.sortKey);\n var glyphOffsetArrayStart = this.glyphOffsetArray.length;\n var vertexStartIndex = segment.vertexLength;\n var angle = this.allowVerticalPlacement && writingMode === WritingMode.vertical ? Math.PI / 2 : 0;\n var sections = feature.text && feature.text.sections;\n for (var i = 0; i < quads.length; i++) {\n var ref = quads[i];\n var tl = ref.tl;\n var tr = ref.tr;\n var bl = ref.bl;\n var br = ref.br;\n var tex = ref.tex;\n var pixelOffsetTL = ref.pixelOffsetTL;\n var pixelOffsetBR = ref.pixelOffsetBR;\n var minFontScaleX = ref.minFontScaleX;\n var minFontScaleY = ref.minFontScaleY;\n var glyphOffset = ref.glyphOffset;\n var isSDF = ref.isSDF;\n var sectionIndex = ref.sectionIndex;\n var index = segment.vertexLength;\n var y = glyphOffset[1];\n addVertex$1(layoutVertexArray, labelAnchor.x, labelAnchor.y, tl.x, y + tl.y, tex.x, tex.y, sizeVertex, isSDF, pixelOffsetTL.x, pixelOffsetTL.y, minFontScaleX, minFontScaleY);\n addVertex$1(layoutVertexArray, labelAnchor.x, labelAnchor.y, tr.x, y + tr.y, tex.x + tex.w, tex.y, sizeVertex, isSDF, pixelOffsetBR.x, pixelOffsetTL.y, minFontScaleX, minFontScaleY);\n addVertex$1(layoutVertexArray, labelAnchor.x, labelAnchor.y, bl.x, y + bl.y, tex.x, tex.y + tex.h, sizeVertex, isSDF, pixelOffsetTL.x, pixelOffsetBR.y, minFontScaleX, minFontScaleY);\n addVertex$1(layoutVertexArray, labelAnchor.x, labelAnchor.y, br.x, y + br.y, tex.x + tex.w, tex.y + tex.h, sizeVertex, isSDF, pixelOffsetBR.x, pixelOffsetBR.y, minFontScaleX, minFontScaleY);\n addDynamicAttributes(arrays.dynamicLayoutVertexArray, labelAnchor, angle);\n indexArray.emplaceBack(index, index + 1, index + 2);\n indexArray.emplaceBack(index + 1, index + 2, index + 3);\n segment.vertexLength += 4;\n segment.primitiveLength += 2;\n this.glyphOffsetArray.emplaceBack(glyphOffset[0]);\n if (i === quads.length - 1 || sectionIndex !== quads[i + 1].sectionIndex) {\n arrays.programConfigurations.populatePaintArrays(layoutVertexArray.length, feature, feature.index, {}, canonical, sections && sections[sectionIndex]);\n }\n }\n arrays.placedSymbolArray.emplaceBack(labelAnchor.x, labelAnchor.y, glyphOffsetArrayStart, this.glyphOffsetArray.length - glyphOffsetArrayStart, vertexStartIndex, lineStartIndex, lineLength, labelAnchor.segment, sizeVertex ? sizeVertex[0] : 0, sizeVertex ? sizeVertex[1] : 0, lineOffset[0], lineOffset[1], writingMode, 0, false, 0, associatedIconIndex);\n};\nSymbolBucket.prototype._addCollisionDebugVertex = function _addCollisionDebugVertex(layoutVertexArray, collisionVertexArray, point, anchorX, anchorY, extrude) {\n collisionVertexArray.emplaceBack(0, 0);\n return layoutVertexArray.emplaceBack(point.x, point.y, anchorX, anchorY, Math.round(extrude.x), Math.round(extrude.y));\n};\nSymbolBucket.prototype.addCollisionDebugVertices = function addCollisionDebugVertices(x1, y1, x2, y2, arrays, boxAnchorPoint, symbolInstance) {\n var segment = arrays.segments.prepareSegment(4, arrays.layoutVertexArray, arrays.indexArray);\n var index = segment.vertexLength;\n var layoutVertexArray = arrays.layoutVertexArray;\n var collisionVertexArray = arrays.collisionVertexArray;\n var anchorX = symbolInstance.anchorX;\n var anchorY = symbolInstance.anchorY;\n this._addCollisionDebugVertex(layoutVertexArray, collisionVertexArray, boxAnchorPoint, anchorX, anchorY, new pointGeometry(x1, y1));\n this._addCollisionDebugVertex(layoutVertexArray, collisionVertexArray, boxAnchorPoint, anchorX, anchorY, new pointGeometry(x2, y1));\n this._addCollisionDebugVertex(layoutVertexArray, collisionVertexArray, boxAnchorPoint, anchorX, anchorY, new pointGeometry(x2, y2));\n this._addCollisionDebugVertex(layoutVertexArray, collisionVertexArray, boxAnchorPoint, anchorX, anchorY, new pointGeometry(x1, y2));\n segment.vertexLength += 4;\n var indexArray = arrays.indexArray;\n indexArray.emplaceBack(index, index + 1);\n indexArray.emplaceBack(index + 1, index + 2);\n indexArray.emplaceBack(index + 2, index + 3);\n indexArray.emplaceBack(index + 3, index);\n segment.primitiveLength += 4;\n};\nSymbolBucket.prototype.addDebugCollisionBoxes = function addDebugCollisionBoxes(startIndex, endIndex, symbolInstance, isText) {\n for (var b = startIndex; b < endIndex; b++) {\n var box = this.collisionBoxArray.get(b);\n var x1 = box.x1;\n var y1 = box.y1;\n var x2 = box.x2;\n var y2 = box.y2;\n this.addCollisionDebugVertices(x1, y1, x2, y2, isText ? this.textCollisionBox : this.iconCollisionBox, box.anchorPoint, symbolInstance);\n }\n};\nSymbolBucket.prototype.generateCollisionDebugBuffers = function generateCollisionDebugBuffers() {\n if (this.hasDebugData()) {\n this.destroyDebugData();\n }\n this.textCollisionBox = new CollisionBuffers(StructArrayLayout2i2i2i12, collisionBoxLayout.members, StructArrayLayout2ui4);\n this.iconCollisionBox = new CollisionBuffers(StructArrayLayout2i2i2i12, collisionBoxLayout.members, StructArrayLayout2ui4);\n for (var i = 0; i < this.symbolInstances.length; i++) {\n var symbolInstance = this.symbolInstances.get(i);\n this.addDebugCollisionBoxes(symbolInstance.textBoxStartIndex, symbolInstance.textBoxEndIndex, symbolInstance, true);\n this.addDebugCollisionBoxes(symbolInstance.verticalTextBoxStartIndex, symbolInstance.verticalTextBoxEndIndex, symbolInstance, true);\n this.addDebugCollisionBoxes(symbolInstance.iconBoxStartIndex, symbolInstance.iconBoxEndIndex, symbolInstance, false);\n this.addDebugCollisionBoxes(symbolInstance.verticalIconBoxStartIndex, symbolInstance.verticalIconBoxEndIndex, symbolInstance, false);\n }\n};\nSymbolBucket.prototype._deserializeCollisionBoxesForSymbol = function _deserializeCollisionBoxesForSymbol(collisionBoxArray, textStartIndex, textEndIndex, verticalTextStartIndex, verticalTextEndIndex, iconStartIndex, iconEndIndex, verticalIconStartIndex, verticalIconEndIndex) {\n var collisionArrays = {};\n for (var k = textStartIndex; k < textEndIndex; k++) {\n var box = collisionBoxArray.get(k);\n collisionArrays.textBox = {\n x1: box.x1,\n y1: box.y1,\n x2: box.x2,\n y2: box.y2,\n anchorPointX: box.anchorPointX,\n anchorPointY: box.anchorPointY\n };\n collisionArrays.textFeatureIndex = box.featureIndex;\n break;\n }\n for (var k$1 = verticalTextStartIndex; k$1 < verticalTextEndIndex; k$1++) {\n var box$1 = collisionBoxArray.get(k$1);\n collisionArrays.verticalTextBox = {\n x1: box$1.x1,\n y1: box$1.y1,\n x2: box$1.x2,\n y2: box$1.y2,\n anchorPointX: box$1.anchorPointX,\n anchorPointY: box$1.anchorPointY\n };\n collisionArrays.verticalTextFeatureIndex = box$1.featureIndex;\n break;\n }\n for (var k$2 = iconStartIndex; k$2 < iconEndIndex; k$2++) {\n var box$2 = collisionBoxArray.get(k$2);\n collisionArrays.iconBox = {\n x1: box$2.x1,\n y1: box$2.y1,\n x2: box$2.x2,\n y2: box$2.y2,\n anchorPointX: box$2.anchorPointX,\n anchorPointY: box$2.anchorPointY\n };\n collisionArrays.iconFeatureIndex = box$2.featureIndex;\n break;\n }\n for (var k$3 = verticalIconStartIndex; k$3 < verticalIconEndIndex; k$3++) {\n var box$3 = collisionBoxArray.get(k$3);\n collisionArrays.verticalIconBox = {\n x1: box$3.x1,\n y1: box$3.y1,\n x2: box$3.x2,\n y2: box$3.y2,\n anchorPointX: box$3.anchorPointX,\n anchorPointY: box$3.anchorPointY\n };\n collisionArrays.verticalIconFeatureIndex = box$3.featureIndex;\n break;\n }\n return collisionArrays;\n};\nSymbolBucket.prototype.deserializeCollisionBoxes = function deserializeCollisionBoxes(collisionBoxArray) {\n this.collisionArrays = [];\n for (var i = 0; i < this.symbolInstances.length; i++) {\n var symbolInstance = this.symbolInstances.get(i);\n this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(collisionBoxArray, symbolInstance.textBoxStartIndex, symbolInstance.textBoxEndIndex, symbolInstance.verticalTextBoxStartIndex, symbolInstance.verticalTextBoxEndIndex, symbolInstance.iconBoxStartIndex, symbolInstance.iconBoxEndIndex, symbolInstance.verticalIconBoxStartIndex, symbolInstance.verticalIconBoxEndIndex));\n }\n};\nSymbolBucket.prototype.hasTextData = function hasTextData() {\n return this.text.segments.get().length > 0;\n};\nSymbolBucket.prototype.hasIconData = function hasIconData() {\n return this.icon.segments.get().length > 0;\n};\nSymbolBucket.prototype.hasDebugData = function hasDebugData() {\n return this.textCollisionBox && this.iconCollisionBox;\n};\nSymbolBucket.prototype.hasTextCollisionBoxData = function hasTextCollisionBoxData() {\n return this.hasDebugData() && this.textCollisionBox.segments.get().length > 0;\n};\nSymbolBucket.prototype.hasIconCollisionBoxData = function hasIconCollisionBoxData() {\n return this.hasDebugData() && this.iconCollisionBox.segments.get().length > 0;\n};\nSymbolBucket.prototype.addIndicesForPlacedSymbol = function addIndicesForPlacedSymbol(iconOrText, placedSymbolIndex) {\n var placedSymbol = iconOrText.placedSymbolArray.get(placedSymbolIndex);\n var endIndex = placedSymbol.vertexStartIndex + placedSymbol.numGlyphs * 4;\n for (var vertexIndex = placedSymbol.vertexStartIndex; vertexIndex < endIndex; vertexIndex += 4) {\n iconOrText.indexArray.emplaceBack(vertexIndex, vertexIndex + 1, vertexIndex + 2);\n iconOrText.indexArray.emplaceBack(vertexIndex + 1, vertexIndex + 2, vertexIndex + 3);\n }\n};\nSymbolBucket.prototype.getSortedSymbolIndexes = function getSortedSymbolIndexes(angle) {\n if (this.sortedAngle === angle && this.symbolInstanceIndexes !== undefined) {\n return this.symbolInstanceIndexes;\n }\n var sin = Math.sin(angle);\n var cos = Math.cos(angle);\n var rotatedYs = [];\n var featureIndexes = [];\n var result = [];\n for (var i = 0; i < this.symbolInstances.length; ++i) {\n result.push(i);\n var symbolInstance = this.symbolInstances.get(i);\n rotatedYs.push(Math.round(sin * symbolInstance.anchorX + cos * symbolInstance.anchorY) | 0);\n featureIndexes.push(symbolInstance.featureIndex);\n }\n result.sort(function (aIndex, bIndex) {\n return rotatedYs[aIndex] - rotatedYs[bIndex] || featureIndexes[bIndex] - featureIndexes[aIndex];\n });\n return result;\n};\nSymbolBucket.prototype.addToSortKeyRanges = function addToSortKeyRanges(symbolInstanceIndex, sortKey) {\n var last = this.sortKeyRanges[this.sortKeyRanges.length - 1];\n if (last && last.sortKey === sortKey) {\n last.symbolInstanceEnd = symbolInstanceIndex + 1;\n } else {\n this.sortKeyRanges.push({\n sortKey: sortKey,\n symbolInstanceStart: symbolInstanceIndex,\n symbolInstanceEnd: symbolInstanceIndex + 1\n });\n }\n};\nSymbolBucket.prototype.sortFeatures = function sortFeatures(angle) {\n var this$1 = this;\n if (!this.sortFeaturesByY) {\n return;\n }\n if (this.sortedAngle === angle) {\n return;\n }\n if (this.text.segments.get().length > 1 || this.icon.segments.get().length > 1) {\n return;\n }\n this.symbolInstanceIndexes = this.getSortedSymbolIndexes(angle);\n this.sortedAngle = angle;\n this.text.indexArray.clear();\n this.icon.indexArray.clear();\n this.featureSortOrder = [];\n for (var i$1 = 0, list = this.symbolInstanceIndexes; i$1 < list.length; i$1 += 1) {\n var i = list[i$1];\n var symbolInstance = this.symbolInstances.get(i);\n this.featureSortOrder.push(symbolInstance.featureIndex);\n [\n symbolInstance.rightJustifiedTextSymbolIndex,\n symbolInstance.centerJustifiedTextSymbolIndex,\n symbolInstance.leftJustifiedTextSymbolIndex\n ].forEach(function (index, i, array) {\n if (index >= 0 && array.indexOf(index) === i) {\n this$1.addIndicesForPlacedSymbol(this$1.text, index);\n }\n });\n if (symbolInstance.verticalPlacedTextSymbolIndex >= 0) {\n this.addIndicesForPlacedSymbol(this.text, symbolInstance.verticalPlacedTextSymbolIndex);\n }\n if (symbolInstance.placedIconSymbolIndex >= 0) {\n this.addIndicesForPlacedSymbol(this.icon, symbolInstance.placedIconSymbolIndex);\n }\n if (symbolInstance.verticalPlacedIconSymbolIndex >= 0) {\n this.addIndicesForPlacedSymbol(this.icon, symbolInstance.verticalPlacedIconSymbolIndex);\n }\n }\n if (this.text.indexBuffer) {\n this.text.indexBuffer.updateData(this.text.indexArray);\n }\n if (this.icon.indexBuffer) {\n this.icon.indexBuffer.updateData(this.icon.indexArray);\n }\n};\nregister('SymbolBucket', SymbolBucket, {\n omit: [\n 'layers',\n 'collisionBoxArray',\n 'features',\n 'compareText'\n ]\n});\nSymbolBucket.MAX_GLYPHS = 65535;\nSymbolBucket.addDynamicAttributes = addDynamicAttributes;\n\nfunction resolveTokens(properties, text) {\n return text.replace(/{([^{}]+)}/g, function (match, key) {\n return key in properties ? String(properties[key]) : '';\n });\n}\n\nvar layout$7 = new Properties({\n 'symbol-placement': new DataConstantProperty(spec['layout_symbol']['symbol-placement']),\n 'symbol-spacing': new DataConstantProperty(spec['layout_symbol']['symbol-spacing']),\n 'symbol-avoid-edges': new DataConstantProperty(spec['layout_symbol']['symbol-avoid-edges']),\n 'symbol-sort-key': new DataDrivenProperty(spec['layout_symbol']['symbol-sort-key']),\n 'symbol-z-order': new DataConstantProperty(spec['layout_symbol']['symbol-z-order']),\n 'icon-allow-overlap': new DataConstantProperty(spec['layout_symbol']['icon-allow-overlap']),\n 'icon-ignore-placement': new DataConstantProperty(spec['layout_symbol']['icon-ignore-placement']),\n 'icon-optional': new DataConstantProperty(spec['layout_symbol']['icon-optional']),\n 'icon-rotation-alignment': new DataConstantProperty(spec['layout_symbol']['icon-rotation-alignment']),\n 'icon-size': new DataDrivenProperty(spec['layout_symbol']['icon-size']),\n 'icon-text-fit': new DataConstantProperty(spec['layout_symbol']['icon-text-fit']),\n 'icon-text-fit-padding': new DataConstantProperty(spec['layout_symbol']['icon-text-fit-padding']),\n 'icon-image': new DataDrivenProperty(spec['layout_symbol']['icon-image']),\n 'icon-rotate': new DataDrivenProperty(spec['layout_symbol']['icon-rotate']),\n 'icon-padding': new DataConstantProperty(spec['layout_symbol']['icon-padding']),\n 'icon-keep-upright': new DataConstantProperty(spec['layout_symbol']['icon-keep-upright']),\n 'icon-offset': new DataDrivenProperty(spec['layout_symbol']['icon-offset']),\n 'icon-anchor': new DataDrivenProperty(spec['layout_symbol']['icon-anchor']),\n 'icon-pitch-alignment': new DataConstantProperty(spec['layout_symbol']['icon-pitch-alignment']),\n 'text-pitch-alignment': new DataConstantProperty(spec['layout_symbol']['text-pitch-alignment']),\n 'text-rotation-alignment': new DataConstantProperty(spec['layout_symbol']['text-rotation-alignment']),\n 'text-field': new DataDrivenProperty(spec['layout_symbol']['text-field']),\n 'text-font': new DataDrivenProperty(spec['layout_symbol']['text-font']),\n 'text-size': new DataDrivenProperty(spec['layout_symbol']['text-size']),\n 'text-max-width': new DataDrivenProperty(spec['layout_symbol']['text-max-width']),\n 'text-line-height': new DataConstantProperty(spec['layout_symbol']['text-line-height']),\n 'text-letter-spacing': new DataDrivenProperty(spec['layout_symbol']['text-letter-spacing']),\n 'text-justify': new DataDrivenProperty(spec['layout_symbol']['text-justify']),\n 'text-radial-offset': new DataDrivenProperty(spec['layout_symbol']['text-radial-offset']),\n 'text-variable-anchor': new DataConstantProperty(spec['layout_symbol']['text-variable-anchor']),\n 'text-anchor': new DataDrivenProperty(spec['layout_symbol']['text-anchor']),\n 'text-max-angle': new DataConstantProperty(spec['layout_symbol']['text-max-angle']),\n 'text-writing-mode': new DataConstantProperty(spec['layout_symbol']['text-writing-mode']),\n 'text-rotate': new DataDrivenProperty(spec['layout_symbol']['text-rotate']),\n 'text-padding': new DataConstantProperty(spec['layout_symbol']['text-padding']),\n 'text-keep-upright': new DataConstantProperty(spec['layout_symbol']['text-keep-upright']),\n 'text-transform': new DataDrivenProperty(spec['layout_symbol']['text-transform']),\n 'text-offset': new DataDrivenProperty(spec['layout_symbol']['text-offset']),\n 'text-allow-overlap': new DataConstantProperty(spec['layout_symbol']['text-allow-overlap']),\n 'text-ignore-placement': new DataConstantProperty(spec['layout_symbol']['text-ignore-placement']),\n 'text-optional': new DataConstantProperty(spec['layout_symbol']['text-optional'])\n});\nvar paint$7 = new Properties({\n 'icon-opacity': new DataDrivenProperty(spec['paint_symbol']['icon-opacity']),\n 'icon-color': new DataDrivenProperty(spec['paint_symbol']['icon-color']),\n 'icon-halo-color': new DataDrivenProperty(spec['paint_symbol']['icon-halo-color']),\n 'icon-halo-width': new DataDrivenProperty(spec['paint_symbol']['icon-halo-width']),\n 'icon-halo-blur': new DataDrivenProperty(spec['paint_symbol']['icon-halo-blur']),\n 'icon-translate': new DataConstantProperty(spec['paint_symbol']['icon-translate']),\n 'icon-translate-anchor': new DataConstantProperty(spec['paint_symbol']['icon-translate-anchor']),\n 'text-opacity': new DataDrivenProperty(spec['paint_symbol']['text-opacity']),\n 'text-color': new DataDrivenProperty(spec['paint_symbol']['text-color'], {\n runtimeType: ColorType,\n getOverride: function (o) {\n return o.textColor;\n },\n hasOverride: function (o) {\n return !!o.textColor;\n }\n }),\n 'text-halo-color': new DataDrivenProperty(spec['paint_symbol']['text-halo-color']),\n 'text-halo-width': new DataDrivenProperty(spec['paint_symbol']['text-halo-width']),\n 'text-halo-blur': new DataDrivenProperty(spec['paint_symbol']['text-halo-blur']),\n 'text-translate': new DataConstantProperty(spec['paint_symbol']['text-translate']),\n 'text-translate-anchor': new DataConstantProperty(spec['paint_symbol']['text-translate-anchor'])\n});\nvar properties$6 = {\n paint: paint$7,\n layout: layout$7\n};\n\nvar FormatSectionOverride = function FormatSectionOverride(defaultValue) {\n this.type = defaultValue.property.overrides ? defaultValue.property.overrides.runtimeType : NullType;\n this.defaultValue = defaultValue;\n};\nFormatSectionOverride.prototype.evaluate = function evaluate(ctx) {\n if (ctx.formattedSection) {\n var overrides = this.defaultValue.property.overrides;\n if (overrides && overrides.hasOverride(ctx.formattedSection)) {\n return overrides.getOverride(ctx.formattedSection);\n }\n }\n if (ctx.feature && ctx.featureState) {\n return this.defaultValue.evaluate(ctx.feature, ctx.featureState);\n }\n return this.defaultValue.property.specification.default;\n};\nFormatSectionOverride.prototype.eachChild = function eachChild(fn) {\n if (!this.defaultValue.isConstant()) {\n var expr = this.defaultValue.value;\n fn(expr._styleExpression.expression);\n }\n};\nFormatSectionOverride.prototype.outputDefined = function outputDefined() {\n return false;\n};\nFormatSectionOverride.prototype.serialize = function serialize() {\n return null;\n};\nregister('FormatSectionOverride', FormatSectionOverride, { omit: ['defaultValue'] });\n\nvar SymbolStyleLayer = function (StyleLayer) {\n function SymbolStyleLayer(layer) {\n StyleLayer.call(this, layer, properties$6);\n }\n if (StyleLayer)\n SymbolStyleLayer.__proto__ = StyleLayer;\n SymbolStyleLayer.prototype = Object.create(StyleLayer && StyleLayer.prototype);\n SymbolStyleLayer.prototype.constructor = SymbolStyleLayer;\n SymbolStyleLayer.prototype.recalculate = function recalculate(parameters, availableImages) {\n StyleLayer.prototype.recalculate.call(this, parameters, availableImages);\n if (this.layout.get('icon-rotation-alignment') === 'auto') {\n if (this.layout.get('symbol-placement') !== 'point') {\n this.layout._values['icon-rotation-alignment'] = 'map';\n } else {\n this.layout._values['icon-rotation-alignment'] = 'viewport';\n }\n }\n if (this.layout.get('text-rotation-alignment') === 'auto') {\n if (this.layout.get('symbol-placement') !== 'point') {\n this.layout._values['text-rotation-alignment'] = 'map';\n } else {\n this.layout._values['text-rotation-alignment'] = 'viewport';\n }\n }\n if (this.layout.get('text-pitch-alignment') === 'auto') {\n this.layout._values['text-pitch-alignment'] = this.layout.get('text-rotation-alignment');\n }\n if (this.layout.get('icon-pitch-alignment') === 'auto') {\n this.layout._values['icon-pitch-alignment'] = this.layout.get('icon-rotation-alignment');\n }\n if (this.layout.get('symbol-placement') === 'point') {\n var writingModes = this.layout.get('text-writing-mode');\n if (writingModes) {\n var deduped = [];\n for (var i = 0, list = writingModes; i < list.length; i += 1) {\n var m = list[i];\n if (deduped.indexOf(m) < 0) {\n deduped.push(m);\n }\n }\n this.layout._values['text-writing-mode'] = deduped;\n } else {\n this.layout._values['text-writing-mode'] = ['horizontal'];\n }\n }\n this._setPaintOverrides();\n };\n SymbolStyleLayer.prototype.getValueAndResolveTokens = function getValueAndResolveTokens(name, feature, canonical, availableImages) {\n var value = this.layout.get(name).evaluate(feature, {}, canonical, availableImages);\n var unevaluated = this._unevaluatedLayout._values[name];\n if (!unevaluated.isDataDriven() && !isExpression(unevaluated.value) && value) {\n return resolveTokens(feature.properties, value);\n }\n return value;\n };\n SymbolStyleLayer.prototype.createBucket = function createBucket(parameters) {\n return new SymbolBucket(parameters);\n };\n SymbolStyleLayer.prototype.queryRadius = function queryRadius() {\n return 0;\n };\n SymbolStyleLayer.prototype.queryIntersectsFeature = function queryIntersectsFeature() {\n return false;\n };\n SymbolStyleLayer.prototype._setPaintOverrides = function _setPaintOverrides() {\n for (var i = 0, list = properties$6.paint.overridableProperties; i < list.length; i += 1) {\n var overridable = list[i];\n if (!SymbolStyleLayer.hasPaintOverride(this.layout, overridable)) {\n continue;\n }\n var overriden = this.paint.get(overridable);\n var override = new FormatSectionOverride(overriden);\n var styleExpression = new StyleExpression(override, overriden.property.specification);\n var expression = null;\n if (overriden.value.kind === 'constant' || overriden.value.kind === 'source') {\n expression = new ZoomConstantExpression('source', styleExpression);\n } else {\n expression = new ZoomDependentExpression('composite', styleExpression, overriden.value.zoomStops, overriden.value._interpolationType);\n }\n this.paint._values[overridable] = new PossiblyEvaluatedPropertyValue(overriden.property, expression, overriden.parameters);\n }\n };\n SymbolStyleLayer.prototype._handleOverridablePaintPropertyUpdate = function _handleOverridablePaintPropertyUpdate(name, oldValue, newValue) {\n if (!this.layout || oldValue.isDataDriven() || newValue.isDataDriven()) {\n return false;\n }\n return SymbolStyleLayer.hasPaintOverride(this.layout, name);\n };\n SymbolStyleLayer.hasPaintOverride = function hasPaintOverride(layout, propertyName) {\n var textField = layout.get('text-field');\n var property = properties$6.paint.properties[propertyName];\n var hasOverrides = false;\n var checkSections = function (sections) {\n for (var i = 0, list = sections; i < list.length; i += 1) {\n var section = list[i];\n if (property.overrides && property.overrides.hasOverride(section)) {\n hasOverrides = true;\n return;\n }\n }\n };\n if (textField.value.kind === 'constant' && textField.value.value instanceof Formatted) {\n checkSections(textField.value.value.sections);\n } else if (textField.value.kind === 'source') {\n var checkExpression = function (expression) {\n if (hasOverrides) {\n return;\n }\n if (expression instanceof Literal && typeOf(expression.value) === FormattedType) {\n var formatted = expression.value;\n checkSections(formatted.sections);\n } else if (expression instanceof FormatExpression) {\n checkSections(expression.sections);\n } else {\n expression.eachChild(checkExpression);\n }\n };\n var expr = textField.value;\n if (expr._styleExpression) {\n checkExpression(expr._styleExpression.expression);\n }\n }\n return hasOverrides;\n };\n return SymbolStyleLayer;\n}(StyleLayer);\n\nvar paint$8 = new Properties({\n 'background-color': new DataConstantProperty(spec['paint_background']['background-color']),\n 'background-pattern': new CrossFadedProperty(spec['paint_background']['background-pattern']),\n 'background-opacity': new DataConstantProperty(spec['paint_background']['background-opacity'])\n});\nvar properties$7 = { paint: paint$8 };\n\nvar BackgroundStyleLayer = function (StyleLayer) {\n function BackgroundStyleLayer(layer) {\n StyleLayer.call(this, layer, properties$7);\n }\n if (StyleLayer)\n BackgroundStyleLayer.__proto__ = StyleLayer;\n BackgroundStyleLayer.prototype = Object.create(StyleLayer && StyleLayer.prototype);\n BackgroundStyleLayer.prototype.constructor = BackgroundStyleLayer;\n return BackgroundStyleLayer;\n}(StyleLayer);\n\nvar paint$9 = new Properties({\n 'raster-opacity': new DataConstantProperty(spec['paint_raster']['raster-opacity']),\n 'raster-hue-rotate': new DataConstantProperty(spec['paint_raster']['raster-hue-rotate']),\n 'raster-brightness-min': new DataConstantProperty(spec['paint_raster']['raster-brightness-min']),\n 'raster-brightness-max': new DataConstantProperty(spec['paint_raster']['raster-brightness-max']),\n 'raster-saturation': new DataConstantProperty(spec['paint_raster']['raster-saturation']),\n 'raster-contrast': new DataConstantProperty(spec['paint_raster']['raster-contrast']),\n 'raster-resampling': new DataConstantProperty(spec['paint_raster']['raster-resampling']),\n 'raster-fade-duration': new DataConstantProperty(spec['paint_raster']['raster-fade-duration'])\n});\nvar properties$8 = { paint: paint$9 };\n\nvar RasterStyleLayer = function (StyleLayer) {\n function RasterStyleLayer(layer) {\n StyleLayer.call(this, layer, properties$8);\n }\n if (StyleLayer)\n RasterStyleLayer.__proto__ = StyleLayer;\n RasterStyleLayer.prototype = Object.create(StyleLayer && StyleLayer.prototype);\n RasterStyleLayer.prototype.constructor = RasterStyleLayer;\n return RasterStyleLayer;\n}(StyleLayer);\n\nfunction validateCustomStyleLayer(layerObject) {\n var errors = [];\n var id = layerObject.id;\n if (id === undefined) {\n errors.push({ message: 'layers.' + id + ': missing required property \"id\"' });\n }\n if (layerObject.render === undefined) {\n errors.push({ message: 'layers.' + id + ': missing required method \"render\"' });\n }\n if (layerObject.renderingMode && layerObject.renderingMode !== '2d' && layerObject.renderingMode !== '3d') {\n errors.push({ message: 'layers.' + id + ': property \"renderingMode\" must be either \"2d\" or \"3d\"' });\n }\n return errors;\n}\nvar CustomStyleLayer = function (StyleLayer) {\n function CustomStyleLayer(implementation) {\n StyleLayer.call(this, implementation, {});\n this.implementation = implementation;\n }\n if (StyleLayer)\n CustomStyleLayer.__proto__ = StyleLayer;\n CustomStyleLayer.prototype = Object.create(StyleLayer && StyleLayer.prototype);\n CustomStyleLayer.prototype.constructor = CustomStyleLayer;\n CustomStyleLayer.prototype.is3D = function is3D() {\n return this.implementation.renderingMode === '3d';\n };\n CustomStyleLayer.prototype.hasOffscreenPass = function hasOffscreenPass() {\n return this.implementation.prerender !== undefined;\n };\n CustomStyleLayer.prototype.recalculate = function recalculate() {\n };\n CustomStyleLayer.prototype.updateTransitions = function updateTransitions() {\n };\n CustomStyleLayer.prototype.hasTransition = function hasTransition() {\n };\n CustomStyleLayer.prototype.serialize = function serialize() {\n };\n CustomStyleLayer.prototype.onAdd = function onAdd(map) {\n if (this.implementation.onAdd) {\n this.implementation.onAdd(map, map.painter.context.gl);\n }\n };\n CustomStyleLayer.prototype.onRemove = function onRemove(map) {\n if (this.implementation.onRemove) {\n this.implementation.onRemove(map, map.painter.context.gl);\n }\n };\n return CustomStyleLayer;\n}(StyleLayer);\n\nvar subclasses = {\n circle: CircleStyleLayer,\n heatmap: HeatmapStyleLayer,\n hillshade: HillshadeStyleLayer,\n fill: FillStyleLayer,\n 'fill-extrusion': FillExtrusionStyleLayer,\n line: LineStyleLayer,\n symbol: SymbolStyleLayer,\n background: BackgroundStyleLayer,\n raster: RasterStyleLayer\n};\nfunction createStyleLayer(layer) {\n if (layer.type === 'custom') {\n return new CustomStyleLayer(layer);\n } else {\n return new subclasses[layer.type](layer);\n }\n}\n\nvar HTMLImageElement = self.HTMLImageElement;\nvar HTMLCanvasElement = self.HTMLCanvasElement;\nvar HTMLVideoElement = self.HTMLVideoElement;\nvar ImageData$1 = self.ImageData;\nvar ImageBitmap$1 = self.ImageBitmap;\nvar Texture = function Texture(context, image, format, options) {\n this.context = context;\n this.format = format;\n this.texture = context.gl.createTexture();\n this.update(image, options);\n};\nTexture.prototype.update = function update(image, options, position) {\n var width = image.width;\n var height = image.height;\n var resize = (!this.size || this.size[0] !== width || this.size[1] !== height) && !position;\n var ref = this;\n var context = ref.context;\n var gl = context.gl;\n this.useMipmap = Boolean(options && options.useMipmap);\n gl.bindTexture(gl.TEXTURE_2D, this.texture);\n context.pixelStoreUnpackFlipY.set(false);\n context.pixelStoreUnpack.set(1);\n context.pixelStoreUnpackPremultiplyAlpha.set(this.format === gl.RGBA && (!options || options.premultiply !== false));\n if (resize) {\n this.size = [\n width,\n height\n ];\n if (image instanceof HTMLImageElement || image instanceof HTMLCanvasElement || image instanceof HTMLVideoElement || image instanceof ImageData$1 || ImageBitmap$1 && image instanceof ImageBitmap$1) {\n gl.texImage2D(gl.TEXTURE_2D, 0, this.format, this.format, gl.UNSIGNED_BYTE, image);\n } else {\n gl.texImage2D(gl.TEXTURE_2D, 0, this.format, width, height, 0, this.format, gl.UNSIGNED_BYTE, image.data);\n }\n } else {\n var ref$1 = position || {\n x: 0,\n y: 0\n };\n var x = ref$1.x;\n var y = ref$1.y;\n if (image instanceof HTMLImageElement || image instanceof HTMLCanvasElement || image instanceof HTMLVideoElement || image instanceof ImageData$1 || ImageBitmap$1 && image instanceof ImageBitmap$1) {\n gl.texSubImage2D(gl.TEXTURE_2D, 0, x, y, gl.RGBA, gl.UNSIGNED_BYTE, image);\n } else {\n gl.texSubImage2D(gl.TEXTURE_2D, 0, x, y, width, height, gl.RGBA, gl.UNSIGNED_BYTE, image.data);\n }\n }\n if (this.useMipmap && this.isSizePowerOfTwo()) {\n gl.generateMipmap(gl.TEXTURE_2D);\n }\n};\nTexture.prototype.bind = function bind(filter, wrap, minFilter) {\n var ref = this;\n var context = ref.context;\n var gl = context.gl;\n gl.bindTexture(gl.TEXTURE_2D, this.texture);\n if (minFilter === gl.LINEAR_MIPMAP_NEAREST && !this.isSizePowerOfTwo()) {\n minFilter = gl.LINEAR;\n }\n if (filter !== this.filter) {\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, filter);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, minFilter || filter);\n this.filter = filter;\n }\n if (wrap !== this.wrap) {\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, wrap);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, wrap);\n this.wrap = wrap;\n }\n};\nTexture.prototype.isSizePowerOfTwo = function isSizePowerOfTwo() {\n return this.size[0] === this.size[1] && Math.log(this.size[0]) / Math.LN2 % 1 === 0;\n};\nTexture.prototype.destroy = function destroy() {\n var ref = this.context;\n var gl = ref.gl;\n gl.deleteTexture(this.texture);\n this.texture = null;\n};\n\nvar ThrottledInvoker = function ThrottledInvoker(callback) {\n var this$1 = this;\n this._callback = callback;\n this._triggered = false;\n if (typeof MessageChannel !== 'undefined') {\n this._channel = new MessageChannel();\n this._channel.port2.onmessage = function () {\n this$1._triggered = false;\n this$1._callback();\n };\n }\n};\nThrottledInvoker.prototype.trigger = function trigger() {\n var this$1 = this;\n if (!this._triggered) {\n this._triggered = true;\n if (this._channel) {\n this._channel.port1.postMessage(true);\n } else {\n setTimeout(function () {\n this$1._triggered = false;\n this$1._callback();\n }, 0);\n }\n }\n};\nThrottledInvoker.prototype.remove = function remove() {\n delete this._channel;\n this._callback = function () {\n };\n};\n\nvar Actor = function Actor(target, parent, mapId) {\n this.target = target;\n this.parent = parent;\n this.mapId = mapId;\n this.callbacks = {};\n this.tasks = {};\n this.taskQueue = [];\n this.cancelCallbacks = {};\n bindAll([\n 'receive',\n 'process'\n ], this);\n this.invoker = new ThrottledInvoker(this.process);\n this.target.addEventListener('message', this.receive, false);\n this.globalScope = isWorker() ? target : self;\n};\nActor.prototype.send = function send(type, data, callback, targetMapId, mustQueue) {\n var this$1 = this;\n if (mustQueue === void 0)\n mustQueue = false;\n var id = Math.round(Math.random() * 1000000000000000000).toString(36).substring(0, 10);\n if (callback) {\n this.callbacks[id] = callback;\n }\n var buffers = isSafari(this.globalScope) ? undefined : [];\n this.target.postMessage({\n id: id,\n type: type,\n hasCallback: !!callback,\n targetMapId: targetMapId,\n mustQueue: mustQueue,\n sourceMapId: this.mapId,\n data: serialize(data, buffers)\n }, buffers);\n return {\n cancel: function () {\n if (callback) {\n delete this$1.callbacks[id];\n }\n this$1.target.postMessage({\n id: id,\n type: '',\n targetMapId: targetMapId,\n sourceMapId: this$1.mapId\n });\n }\n };\n};\nActor.prototype.receive = function receive(message) {\n var data = message.data, id = data.id;\n if (!id) {\n return;\n }\n if (data.targetMapId && this.mapId !== data.targetMapId) {\n return;\n }\n if (data.type === '') {\n delete this.tasks[id];\n var cancel = this.cancelCallbacks[id];\n delete this.cancelCallbacks[id];\n if (cancel) {\n cancel();\n }\n } else {\n if (isWorker() || data.mustQueue) {\n this.tasks[id] = data;\n this.taskQueue.push(id);\n this.invoker.trigger();\n } else {\n this.processTask(id, data);\n }\n }\n};\nActor.prototype.process = function process() {\n if (!this.taskQueue.length) {\n return;\n }\n var id = this.taskQueue.shift();\n var task = this.tasks[id];\n delete this.tasks[id];\n if (this.taskQueue.length) {\n this.invoker.trigger();\n }\n if (!task) {\n return;\n }\n this.processTask(id, task);\n};\nActor.prototype.processTask = function processTask(id, task) {\n var this$1 = this;\n if (task.type === '') {\n var callback = this.callbacks[id];\n delete this.callbacks[id];\n if (callback) {\n if (task.error) {\n callback(deserialize(task.error));\n } else {\n callback(null, deserialize(task.data));\n }\n }\n } else {\n var completed = false;\n var buffers = isSafari(this.globalScope) ? undefined : [];\n var done = task.hasCallback ? function (err, data) {\n completed = true;\n delete this$1.cancelCallbacks[id];\n this$1.target.postMessage({\n id: id,\n type: '',\n sourceMapId: this$1.mapId,\n error: err ? serialize(err) : null,\n data: serialize(data, buffers)\n }, buffers);\n } : function (_) {\n completed = true;\n };\n var callback$1 = null;\n var params = deserialize(task.data);\n if (this.parent[task.type]) {\n callback$1 = this.parent[task.type](task.sourceMapId, params, done);\n } else if (this.parent.getWorkerSource) {\n var keys = task.type.split('.');\n var scope = this.parent.getWorkerSource(task.sourceMapId, keys[0], params.source);\n callback$1 = scope[keys[1]](params, done);\n } else {\n done(new Error('Could not find function ' + task.type));\n }\n if (!completed && callback$1 && callback$1.cancel) {\n this.cancelCallbacks[id] = callback$1.cancel;\n }\n }\n};\nActor.prototype.remove = function remove() {\n this.invoker.remove();\n this.target.removeEventListener('message', this.receive, false);\n};\n\n/**\n * getTileBBox\n *\n * @param {Number} x Tile coordinate x\n * @param {Number} y Tile coordinate y\n * @param {Number} z Tile zoom\n * @returns {String} String of the bounding box\n */\nfunction getTileBBox(x, y, z) {\n // for Google/OSM tile scheme we need to alter the y\n y = (Math.pow(2, z) - y - 1);\n\n var min = getMercCoords(x * 256, y * 256, z),\n max = getMercCoords((x + 1) * 256, (y + 1) * 256, z);\n\n return min[0] + ',' + min[1] + ',' + max[0] + ',' + max[1];\n}\n\n\n/**\n * getMercCoords\n *\n * @param {Number} x Pixel coordinate x\n * @param {Number} y Pixel coordinate y\n * @param {Number} z Tile zoom\n * @returns {Array} [x, y]\n */\nfunction getMercCoords(x, y, z) {\n var resolution = (2 * Math.PI * 6378137 / 256) / Math.pow(2, z),\n merc_x = (x * resolution - 2 * Math.PI * 6378137 / 2.0),\n merc_y = (y * resolution - 2 * Math.PI * 6378137 / 2.0);\n\n return [merc_x, merc_y];\n}\n\nvar LngLatBounds = function LngLatBounds(sw, ne) {\n if (!sw) ; else if (ne) {\n this.setSouthWest(sw).setNorthEast(ne);\n } else if (sw.length === 4) {\n this.setSouthWest([\n sw[0],\n sw[1]\n ]).setNorthEast([\n sw[2],\n sw[3]\n ]);\n } else {\n this.setSouthWest(sw[0]).setNorthEast(sw[1]);\n }\n};\nLngLatBounds.prototype.setNorthEast = function setNorthEast(ne) {\n this._ne = ne instanceof LngLat ? new LngLat(ne.lng, ne.lat) : LngLat.convert(ne);\n return this;\n};\nLngLatBounds.prototype.setSouthWest = function setSouthWest(sw) {\n this._sw = sw instanceof LngLat ? new LngLat(sw.lng, sw.lat) : LngLat.convert(sw);\n return this;\n};\nLngLatBounds.prototype.extend = function extend(obj) {\n var sw = this._sw, ne = this._ne;\n var sw2, ne2;\n if (obj instanceof LngLat) {\n sw2 = obj;\n ne2 = obj;\n } else if (obj instanceof LngLatBounds) {\n sw2 = obj._sw;\n ne2 = obj._ne;\n if (!sw2 || !ne2) {\n return this;\n }\n } else {\n if (Array.isArray(obj)) {\n if (obj.length === 4 || obj.every(Array.isArray)) {\n var lngLatBoundsObj = obj;\n return this.extend(LngLatBounds.convert(lngLatBoundsObj));\n } else {\n var lngLatObj = obj;\n return this.extend(LngLat.convert(lngLatObj));\n }\n }\n return this;\n }\n if (!sw && !ne) {\n this._sw = new LngLat(sw2.lng, sw2.lat);\n this._ne = new LngLat(ne2.lng, ne2.lat);\n } else {\n sw.lng = Math.min(sw2.lng, sw.lng);\n sw.lat = Math.min(sw2.lat, sw.lat);\n ne.lng = Math.max(ne2.lng, ne.lng);\n ne.lat = Math.max(ne2.lat, ne.lat);\n }\n return this;\n};\nLngLatBounds.prototype.getCenter = function getCenter() {\n return new LngLat((this._sw.lng + this._ne.lng) / 2, (this._sw.lat + this._ne.lat) / 2);\n};\nLngLatBounds.prototype.getSouthWest = function getSouthWest() {\n return this._sw;\n};\nLngLatBounds.prototype.getNorthEast = function getNorthEast() {\n return this._ne;\n};\nLngLatBounds.prototype.getNorthWest = function getNorthWest() {\n return new LngLat(this.getWest(), this.getNorth());\n};\nLngLatBounds.prototype.getSouthEast = function getSouthEast() {\n return new LngLat(this.getEast(), this.getSouth());\n};\nLngLatBounds.prototype.getWest = function getWest() {\n return this._sw.lng;\n};\nLngLatBounds.prototype.getSouth = function getSouth() {\n return this._sw.lat;\n};\nLngLatBounds.prototype.getEast = function getEast() {\n return this._ne.lng;\n};\nLngLatBounds.prototype.getNorth = function getNorth() {\n return this._ne.lat;\n};\nLngLatBounds.prototype.toArray = function toArray() {\n return [\n this._sw.toArray(),\n this._ne.toArray()\n ];\n};\nLngLatBounds.prototype.toString = function toString() {\n return 'LngLatBounds(' + this._sw.toString() + ', ' + this._ne.toString() + ')';\n};\nLngLatBounds.prototype.isEmpty = function isEmpty() {\n return !(this._sw && this._ne);\n};\nLngLatBounds.prototype.contains = function contains(lnglat) {\n var ref = LngLat.convert(lnglat);\n var lng = ref.lng;\n var lat = ref.lat;\n var containsLatitude = this._sw.lat <= lat && lat <= this._ne.lat;\n var containsLongitude = this._sw.lng <= lng && lng <= this._ne.lng;\n if (this._sw.lng > this._ne.lng) {\n containsLongitude = this._sw.lng >= lng && lng >= this._ne.lng;\n }\n return containsLatitude && containsLongitude;\n};\nLngLatBounds.convert = function convert(input) {\n if (!input || input instanceof LngLatBounds) {\n return input;\n }\n return new LngLatBounds(input);\n};\n\nvar earthRadius = 6371008.8;\nvar LngLat = function LngLat(lng, lat) {\n if (isNaN(lng) || isNaN(lat)) {\n throw new Error('Invalid LngLat object: (' + lng + ', ' + lat + ')');\n }\n this.lng = +lng;\n this.lat = +lat;\n if (this.lat > 90 || this.lat < -90) {\n throw new Error('Invalid LngLat latitude value: must be between -90 and 90');\n }\n};\nLngLat.prototype.wrap = function wrap$1() {\n return new LngLat(wrap(this.lng, -180, 180), this.lat);\n};\nLngLat.prototype.toArray = function toArray() {\n return [\n this.lng,\n this.lat\n ];\n};\nLngLat.prototype.toString = function toString() {\n return 'LngLat(' + this.lng + ', ' + this.lat + ')';\n};\nLngLat.prototype.distanceTo = function distanceTo(lngLat) {\n var rad = Math.PI / 180;\n var lat1 = this.lat * rad;\n var lat2 = lngLat.lat * rad;\n var a = Math.sin(lat1) * Math.sin(lat2) + Math.cos(lat1) * Math.cos(lat2) * Math.cos((lngLat.lng - this.lng) * rad);\n var maxMeters = earthRadius * Math.acos(Math.min(a, 1));\n return maxMeters;\n};\nLngLat.prototype.toBounds = function toBounds(radius) {\n if (radius === void 0)\n radius = 0;\n var earthCircumferenceInMetersAtEquator = 40075017;\n var latAccuracy = 360 * radius / earthCircumferenceInMetersAtEquator, lngAccuracy = latAccuracy / Math.cos(Math.PI / 180 * this.lat);\n return new LngLatBounds(new LngLat(this.lng - lngAccuracy, this.lat - latAccuracy), new LngLat(this.lng + lngAccuracy, this.lat + latAccuracy));\n};\nLngLat.convert = function convert(input) {\n if (input instanceof LngLat) {\n return input;\n }\n if (Array.isArray(input) && (input.length === 2 || input.length === 3)) {\n return new LngLat(Number(input[0]), Number(input[1]));\n }\n if (!Array.isArray(input) && typeof input === 'object' && input !== null) {\n return new LngLat(Number('lng' in input ? input.lng : input.lon), Number(input.lat));\n }\n throw new Error('`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]');\n};\n\nvar earthCircumfrence = 2 * Math.PI * earthRadius;\nfunction circumferenceAtLatitude(latitude) {\n return earthCircumfrence * Math.cos(latitude * Math.PI / 180);\n}\nfunction mercatorXfromLng$1(lng) {\n return (180 + lng) / 360;\n}\nfunction mercatorYfromLat$1(lat) {\n return (180 - 180 / Math.PI * Math.log(Math.tan(Math.PI / 4 + lat * Math.PI / 360))) / 360;\n}\nfunction mercatorZfromAltitude(altitude, lat) {\n return altitude / circumferenceAtLatitude(lat);\n}\nfunction lngFromMercatorX(x) {\n return x * 360 - 180;\n}\nfunction latFromMercatorY(y) {\n var y2 = 180 - y * 360;\n return 360 / Math.PI * Math.atan(Math.exp(y2 * Math.PI / 180)) - 90;\n}\nfunction altitudeFromMercatorZ(z, y) {\n return z * circumferenceAtLatitude(latFromMercatorY(y));\n}\nfunction mercatorScale(lat) {\n return 1 / Math.cos(lat * Math.PI / 180);\n}\nvar MercatorCoordinate = function MercatorCoordinate(x, y, z) {\n if (z === void 0)\n z = 0;\n this.x = +x;\n this.y = +y;\n this.z = +z;\n};\nMercatorCoordinate.fromLngLat = function fromLngLat(lngLatLike, altitude) {\n if (altitude === void 0)\n altitude = 0;\n var lngLat = LngLat.convert(lngLatLike);\n return new MercatorCoordinate(mercatorXfromLng$1(lngLat.lng), mercatorYfromLat$1(lngLat.lat), mercatorZfromAltitude(altitude, lngLat.lat));\n};\nMercatorCoordinate.prototype.toLngLat = function toLngLat() {\n return new LngLat(lngFromMercatorX(this.x), latFromMercatorY(this.y));\n};\nMercatorCoordinate.prototype.toAltitude = function toAltitude() {\n return altitudeFromMercatorZ(this.z, this.y);\n};\nMercatorCoordinate.prototype.meterInMercatorCoordinateUnits = function meterInMercatorCoordinateUnits() {\n return 1 / earthCircumfrence * mercatorScale(latFromMercatorY(this.y));\n};\n\nvar CanonicalTileID = function CanonicalTileID(z, x, y) {\n this.z = z;\n this.x = x;\n this.y = y;\n this.key = calculateKey(0, z, z, x, y);\n};\nCanonicalTileID.prototype.equals = function equals(id) {\n return this.z === id.z && this.x === id.x && this.y === id.y;\n};\nCanonicalTileID.prototype.url = function url(urls, scheme) {\n var bbox = getTileBBox(this.x, this.y, this.z);\n var quadkey = getQuadkey(this.z, this.x, this.y);\n return urls[(this.x + this.y) % urls.length].replace('{prefix}', (this.x % 16).toString(16) + (this.y % 16).toString(16)).replace('{z}', String(this.z)).replace('{x}', String(this.x)).replace('{y}', String(scheme === 'tms' ? Math.pow(2, this.z) - this.y - 1 : this.y)).replace('{quadkey}', quadkey).replace('{bbox-epsg-3857}', bbox);\n};\nCanonicalTileID.prototype.getTilePoint = function getTilePoint(coord) {\n var tilesAtZoom = Math.pow(2, this.z);\n return new pointGeometry((coord.x * tilesAtZoom - this.x) * EXTENT$1, (coord.y * tilesAtZoom - this.y) * EXTENT$1);\n};\nCanonicalTileID.prototype.toString = function toString() {\n return this.z + '/' + this.x + '/' + this.y;\n};\nvar UnwrappedTileID = function UnwrappedTileID(wrap, canonical) {\n this.wrap = wrap;\n this.canonical = canonical;\n this.key = calculateKey(wrap, canonical.z, canonical.z, canonical.x, canonical.y);\n};\nvar OverscaledTileID = function OverscaledTileID(overscaledZ, wrap, z, x, y) {\n this.overscaledZ = overscaledZ;\n this.wrap = wrap;\n this.canonical = new CanonicalTileID(z, +x, +y);\n this.key = calculateKey(wrap, overscaledZ, z, x, y);\n};\nOverscaledTileID.prototype.equals = function equals(id) {\n return this.overscaledZ === id.overscaledZ && this.wrap === id.wrap && this.canonical.equals(id.canonical);\n};\nOverscaledTileID.prototype.scaledTo = function scaledTo(targetZ) {\n var zDifference = this.canonical.z - targetZ;\n if (targetZ > this.canonical.z) {\n return new OverscaledTileID(targetZ, this.wrap, this.canonical.z, this.canonical.x, this.canonical.y);\n } else {\n return new OverscaledTileID(targetZ, this.wrap, targetZ, this.canonical.x >> zDifference, this.canonical.y >> zDifference);\n }\n};\nOverscaledTileID.prototype.calculateScaledKey = function calculateScaledKey(targetZ, withWrap) {\n var zDifference = this.canonical.z - targetZ;\n if (targetZ > this.canonical.z) {\n return calculateKey(this.wrap * +withWrap, targetZ, this.canonical.z, this.canonical.x, this.canonical.y);\n } else {\n return calculateKey(this.wrap * +withWrap, targetZ, targetZ, this.canonical.x >> zDifference, this.canonical.y >> zDifference);\n }\n};\nOverscaledTileID.prototype.isChildOf = function isChildOf(parent) {\n if (parent.wrap !== this.wrap) {\n return false;\n }\n var zDifference = this.canonical.z - parent.canonical.z;\n return parent.overscaledZ === 0 || parent.overscaledZ < this.overscaledZ && parent.canonical.x === this.canonical.x >> zDifference && parent.canonical.y === this.canonical.y >> zDifference;\n};\nOverscaledTileID.prototype.children = function children(sourceMaxZoom) {\n if (this.overscaledZ >= sourceMaxZoom) {\n return [new OverscaledTileID(this.overscaledZ + 1, this.wrap, this.canonical.z, this.canonical.x, this.canonical.y)];\n }\n var z = this.canonical.z + 1;\n var x = this.canonical.x * 2;\n var y = this.canonical.y * 2;\n return [\n new OverscaledTileID(z, this.wrap, z, x, y),\n new OverscaledTileID(z, this.wrap, z, x + 1, y),\n new OverscaledTileID(z, this.wrap, z, x, y + 1),\n new OverscaledTileID(z, this.wrap, z, x + 1, y + 1)\n ];\n};\nOverscaledTileID.prototype.isLessThan = function isLessThan(rhs) {\n if (this.wrap < rhs.wrap) {\n return true;\n }\n if (this.wrap > rhs.wrap) {\n return false;\n }\n if (this.overscaledZ < rhs.overscaledZ) {\n return true;\n }\n if (this.overscaledZ > rhs.overscaledZ) {\n return false;\n }\n if (this.canonical.x < rhs.canonical.x) {\n return true;\n }\n if (this.canonical.x > rhs.canonical.x) {\n return false;\n }\n if (this.canonical.y < rhs.canonical.y) {\n return true;\n }\n return false;\n};\nOverscaledTileID.prototype.wrapped = function wrapped() {\n return new OverscaledTileID(this.overscaledZ, 0, this.canonical.z, this.canonical.x, this.canonical.y);\n};\nOverscaledTileID.prototype.unwrapTo = function unwrapTo(wrap) {\n return new OverscaledTileID(this.overscaledZ, wrap, this.canonical.z, this.canonical.x, this.canonical.y);\n};\nOverscaledTileID.prototype.overscaleFactor = function overscaleFactor() {\n return Math.pow(2, this.overscaledZ - this.canonical.z);\n};\nOverscaledTileID.prototype.toUnwrapped = function toUnwrapped() {\n return new UnwrappedTileID(this.wrap, this.canonical);\n};\nOverscaledTileID.prototype.toString = function toString() {\n return this.overscaledZ + '/' + this.canonical.x + '/' + this.canonical.y;\n};\nOverscaledTileID.prototype.getTilePoint = function getTilePoint(coord) {\n return this.canonical.getTilePoint(new MercatorCoordinate(coord.x - this.wrap, coord.y));\n};\nfunction calculateKey(wrap, overscaledZ, z, x, y) {\n wrap *= 2;\n if (wrap < 0) {\n wrap = wrap * -1 - 1;\n }\n var dim = 1 << z;\n return (dim * dim * wrap + dim * y + x).toString(36) + z.toString(36) + overscaledZ.toString(36);\n}\nfunction getQuadkey(z, x, y) {\n var quadkey = '', mask;\n for (var i = z; i > 0; i--) {\n mask = 1 << i - 1;\n quadkey += (x & mask ? 1 : 0) + (y & mask ? 2 : 0);\n }\n return quadkey;\n}\nregister('CanonicalTileID', CanonicalTileID);\nregister('OverscaledTileID', OverscaledTileID, { omit: ['posMatrix'] });\n\nvar DEMData = function DEMData(uid, data, encoding) {\n this.uid = uid;\n if (data.height !== data.width) {\n throw new RangeError('DEM tiles must be square');\n }\n if (encoding && encoding !== 'mapbox' && encoding !== 'terrarium') {\n return warnOnce('\"' + encoding + '\" is not a valid encoding type. Valid types include \"mapbox\" and \"terrarium\".');\n }\n this.stride = data.height;\n var dim = this.dim = data.height - 2;\n this.data = new Uint32Array(data.data.buffer);\n this.encoding = encoding || 'mapbox';\n for (var x = 0; x < dim; x++) {\n this.data[this._idx(-1, x)] = this.data[this._idx(0, x)];\n this.data[this._idx(dim, x)] = this.data[this._idx(dim - 1, x)];\n this.data[this._idx(x, -1)] = this.data[this._idx(x, 0)];\n this.data[this._idx(x, dim)] = this.data[this._idx(x, dim - 1)];\n }\n this.data[this._idx(-1, -1)] = this.data[this._idx(0, 0)];\n this.data[this._idx(dim, -1)] = this.data[this._idx(dim - 1, 0)];\n this.data[this._idx(-1, dim)] = this.data[this._idx(0, dim - 1)];\n this.data[this._idx(dim, dim)] = this.data[this._idx(dim - 1, dim - 1)];\n};\nDEMData.prototype.get = function get(x, y) {\n var pixels = new Uint8Array(this.data.buffer);\n var index = this._idx(x, y) * 4;\n var unpack = this.encoding === 'terrarium' ? this._unpackTerrarium : this._unpackMapbox;\n return unpack(pixels[index], pixels[index + 1], pixels[index + 2]);\n};\nDEMData.prototype.getUnpackVector = function getUnpackVector() {\n return this.encoding === 'terrarium' ? [\n 256,\n 1,\n 1 / 256,\n 32768\n ] : [\n 6553.6,\n 25.6,\n 0.1,\n 10000\n ];\n};\nDEMData.prototype._idx = function _idx(x, y) {\n if (x < -1 || x >= this.dim + 1 || y < -1 || y >= this.dim + 1) {\n throw new RangeError('out of range source coordinates for DEM data');\n }\n return (y + 1) * this.stride + (x + 1);\n};\nDEMData.prototype._unpackMapbox = function _unpackMapbox(r, g, b) {\n return (r * 256 * 256 + g * 256 + b) / 10 - 10000;\n};\nDEMData.prototype._unpackTerrarium = function _unpackTerrarium(r, g, b) {\n return r * 256 + g + b / 256 - 32768;\n};\nDEMData.prototype.getPixels = function getPixels() {\n return new RGBAImage({\n width: this.stride,\n height: this.stride\n }, new Uint8Array(this.data.buffer));\n};\nDEMData.prototype.backfillBorder = function backfillBorder(borderTile, dx, dy) {\n if (this.dim !== borderTile.dim) {\n throw new Error('dem dimension mismatch');\n }\n var xMin = dx * this.dim, xMax = dx * this.dim + this.dim, yMin = dy * this.dim, yMax = dy * this.dim + this.dim;\n switch (dx) {\n case -1:\n xMin = xMax - 1;\n break;\n case 1:\n xMax = xMin + 1;\n break;\n }\n switch (dy) {\n case -1:\n yMin = yMax - 1;\n break;\n case 1:\n yMax = yMin + 1;\n break;\n }\n var ox = -dx * this.dim;\n var oy = -dy * this.dim;\n for (var y = yMin; y < yMax; y++) {\n for (var x = xMin; x < xMax; x++) {\n this.data[this._idx(x, y)] = borderTile.data[this._idx(x + ox, y + oy)];\n }\n }\n};\nregister('DEMData', DEMData);\n\nfunction deserialize$1(input, style) {\n var output = {};\n if (!style) {\n return output;\n }\n var loop = function () {\n var bucket = list$1[i$1];\n var layers = bucket.layerIds.map(function (id) {\n return style.getLayer(id);\n }).filter(Boolean);\n if (layers.length === 0) {\n return;\n }\n bucket.layers = layers;\n if (bucket.stateDependentLayerIds) {\n bucket.stateDependentLayers = bucket.stateDependentLayerIds.map(function (lId) {\n return layers.filter(function (l) {\n return l.id === lId;\n })[0];\n });\n }\n for (var i = 0, list = layers; i < list.length; i += 1) {\n var layer = list[i];\n output[layer.id] = bucket;\n }\n };\n for (var i$1 = 0, list$1 = input; i$1 < list$1.length; i$1 += 1)\n loop();\n return output;\n}\n\nvar DictionaryCoder = function DictionaryCoder(strings) {\n this._stringToNumber = {};\n this._numberToString = [];\n for (var i = 0; i < strings.length; i++) {\n var string = strings[i];\n this._stringToNumber[string] = i;\n this._numberToString[i] = string;\n }\n};\nDictionaryCoder.prototype.encode = function encode(string) {\n return this._stringToNumber[string];\n};\nDictionaryCoder.prototype.decode = function decode(n) {\n return this._numberToString[n];\n};\n\nvar Feature = function Feature(vectorTileFeature, z, x, y, id) {\n this.type = 'Feature';\n this._vectorTileFeature = vectorTileFeature;\n vectorTileFeature._z = z;\n vectorTileFeature._x = x;\n vectorTileFeature._y = y;\n this.properties = vectorTileFeature.properties;\n this.id = id;\n};\nvar prototypeAccessors$1 = { geometry: { configurable: true } };\nprototypeAccessors$1.geometry.get = function () {\n if (this._geometry === undefined) {\n this._geometry = this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x, this._vectorTileFeature._y, this._vectorTileFeature._z).geometry;\n }\n return this._geometry;\n};\nprototypeAccessors$1.geometry.set = function (g) {\n this._geometry = g;\n};\nFeature.prototype.toJSON = function toJSON() {\n var json = { geometry: this.geometry };\n for (var i in this) {\n if (i === '_geometry' || i === '_vectorTileFeature') {\n continue;\n }\n json[i] = this[i];\n }\n return json;\n};\nObject.defineProperties(Feature.prototype, prototypeAccessors$1);\n\nvar SourceFeatureState = function SourceFeatureState() {\n this.state = {};\n this.stateChanges = {};\n this.deletedStates = {};\n};\nSourceFeatureState.prototype.updateState = function updateState(sourceLayer, featureId, newState) {\n var feature = String(featureId);\n this.stateChanges[sourceLayer] = this.stateChanges[sourceLayer] || {};\n this.stateChanges[sourceLayer][feature] = this.stateChanges[sourceLayer][feature] || {};\n extend(this.stateChanges[sourceLayer][feature], newState);\n if (this.deletedStates[sourceLayer] === null) {\n this.deletedStates[sourceLayer] = {};\n for (var ft in this.state[sourceLayer]) {\n if (ft !== feature) {\n this.deletedStates[sourceLayer][ft] = null;\n }\n }\n } else {\n var featureDeletionQueued = this.deletedStates[sourceLayer] && this.deletedStates[sourceLayer][feature] === null;\n if (featureDeletionQueued) {\n this.deletedStates[sourceLayer][feature] = {};\n for (var prop in this.state[sourceLayer][feature]) {\n if (!newState[prop]) {\n this.deletedStates[sourceLayer][feature][prop] = null;\n }\n }\n } else {\n for (var key in newState) {\n var deletionInQueue = this.deletedStates[sourceLayer] && this.deletedStates[sourceLayer][feature] && this.deletedStates[sourceLayer][feature][key] === null;\n if (deletionInQueue) {\n delete this.deletedStates[sourceLayer][feature][key];\n }\n }\n }\n }\n};\nSourceFeatureState.prototype.removeFeatureState = function removeFeatureState(sourceLayer, featureId, key) {\n var sourceLayerDeleted = this.deletedStates[sourceLayer] === null;\n if (sourceLayerDeleted) {\n return;\n }\n var feature = String(featureId);\n this.deletedStates[sourceLayer] = this.deletedStates[sourceLayer] || {};\n if (key && featureId !== undefined) {\n if (this.deletedStates[sourceLayer][feature] !== null) {\n this.deletedStates[sourceLayer][feature] = this.deletedStates[sourceLayer][feature] || {};\n this.deletedStates[sourceLayer][feature][key] = null;\n }\n } else if (featureId !== undefined) {\n var updateInQueue = this.stateChanges[sourceLayer] && this.stateChanges[sourceLayer][feature];\n if (updateInQueue) {\n this.deletedStates[sourceLayer][feature] = {};\n for (key in this.stateChanges[sourceLayer][feature]) {\n this.deletedStates[sourceLayer][feature][key] = null;\n }\n } else {\n this.deletedStates[sourceLayer][feature] = null;\n }\n } else {\n this.deletedStates[sourceLayer] = null;\n }\n};\nSourceFeatureState.prototype.getState = function getState(sourceLayer, featureId) {\n var feature = String(featureId);\n var base = this.state[sourceLayer] || {};\n var changes = this.stateChanges[sourceLayer] || {};\n var reconciledState = extend({}, base[feature], changes[feature]);\n if (this.deletedStates[sourceLayer] === null) {\n return {};\n } else if (this.deletedStates[sourceLayer]) {\n var featureDeletions = this.deletedStates[sourceLayer][featureId];\n if (featureDeletions === null) {\n return {};\n }\n for (var prop in featureDeletions) {\n delete reconciledState[prop];\n }\n }\n return reconciledState;\n};\nSourceFeatureState.prototype.initializeTileState = function initializeTileState(tile, painter) {\n tile.setFeatureState(this.state, painter);\n};\nSourceFeatureState.prototype.coalesceChanges = function coalesceChanges(tiles, painter) {\n var featuresChanged = {};\n for (var sourceLayer in this.stateChanges) {\n this.state[sourceLayer] = this.state[sourceLayer] || {};\n var layerStates = {};\n for (var feature in this.stateChanges[sourceLayer]) {\n if (!this.state[sourceLayer][feature]) {\n this.state[sourceLayer][feature] = {};\n }\n extend(this.state[sourceLayer][feature], this.stateChanges[sourceLayer][feature]);\n layerStates[feature] = this.state[sourceLayer][feature];\n }\n featuresChanged[sourceLayer] = layerStates;\n }\n for (var sourceLayer$1 in this.deletedStates) {\n this.state[sourceLayer$1] = this.state[sourceLayer$1] || {};\n var layerStates$1 = {};\n if (this.deletedStates[sourceLayer$1] === null) {\n for (var ft in this.state[sourceLayer$1]) {\n layerStates$1[ft] = {};\n this.state[sourceLayer$1][ft] = {};\n }\n } else {\n for (var feature$1 in this.deletedStates[sourceLayer$1]) {\n var deleteWholeFeatureState = this.deletedStates[sourceLayer$1][feature$1] === null;\n if (deleteWholeFeatureState) {\n this.state[sourceLayer$1][feature$1] = {};\n } else {\n for (var i = 0, list = Object.keys(this.deletedStates[sourceLayer$1][feature$1]); i < list.length; i += 1) {\n var key = list[i];\n delete this.state[sourceLayer$1][feature$1][key];\n }\n }\n layerStates$1[feature$1] = this.state[sourceLayer$1][feature$1];\n }\n }\n featuresChanged[sourceLayer$1] = featuresChanged[sourceLayer$1] || {};\n extend(featuresChanged[sourceLayer$1], layerStates$1);\n }\n this.stateChanges = {};\n this.deletedStates = {};\n if (Object.keys(featuresChanged).length === 0) {\n return;\n }\n for (var id in tiles) {\n var tile = tiles[id];\n tile.setFeatureState(featuresChanged, painter);\n }\n};\n\nvar FeatureIndex = function FeatureIndex(tileID, promoteId) {\n this.tileID = tileID;\n this.x = tileID.canonical.x;\n this.y = tileID.canonical.y;\n this.z = tileID.canonical.z;\n this.grid = new gridIndex(EXTENT$1, 16, 0);\n this.grid3D = new gridIndex(EXTENT$1, 16, 0);\n this.featureIndexArray = new FeatureIndexArray();\n this.promoteId = promoteId;\n};\nFeatureIndex.prototype.insert = function insert(feature, geometry, featureIndex, sourceLayerIndex, bucketIndex, is3D) {\n var key = this.featureIndexArray.length;\n this.featureIndexArray.emplaceBack(featureIndex, sourceLayerIndex, bucketIndex);\n var grid = is3D ? this.grid3D : this.grid;\n for (var r = 0; r < geometry.length; r++) {\n var ring = geometry[r];\n var bbox = [\n Infinity,\n Infinity,\n -Infinity,\n -Infinity\n ];\n for (var i = 0; i < ring.length; i++) {\n var p = ring[i];\n bbox[0] = Math.min(bbox[0], p.x);\n bbox[1] = Math.min(bbox[1], p.y);\n bbox[2] = Math.max(bbox[2], p.x);\n bbox[3] = Math.max(bbox[3], p.y);\n }\n if (bbox[0] < EXTENT$1 && bbox[1] < EXTENT$1 && bbox[2] >= 0 && bbox[3] >= 0) {\n grid.insert(key, bbox[0], bbox[1], bbox[2], bbox[3]);\n }\n }\n};\nFeatureIndex.prototype.loadVTLayers = function loadVTLayers() {\n if (!this.vtLayers) {\n this.vtLayers = new vectorTile.VectorTile(new pbf(this.rawTileData)).layers;\n this.sourceLayerCoder = new DictionaryCoder(this.vtLayers ? Object.keys(this.vtLayers).sort() : ['_geojsonTileLayer']);\n }\n return this.vtLayers;\n};\nFeatureIndex.prototype.query = function query(args, styleLayers, serializedLayers, sourceFeatureState) {\n var this$1 = this;\n this.loadVTLayers();\n var params = args.params || {}, pixelsToTileUnits = EXTENT$1 / args.tileSize / args.scale, filter = createFilter(params.filter);\n var queryGeometry = args.queryGeometry;\n var queryPadding = args.queryPadding * pixelsToTileUnits;\n var bounds = getBounds(queryGeometry);\n var matching = this.grid.query(bounds.minX - queryPadding, bounds.minY - queryPadding, bounds.maxX + queryPadding, bounds.maxY + queryPadding);\n var cameraBounds = getBounds(args.cameraQueryGeometry);\n var matching3D = this.grid3D.query(cameraBounds.minX - queryPadding, cameraBounds.minY - queryPadding, cameraBounds.maxX + queryPadding, cameraBounds.maxY + queryPadding, function (bx1, by1, bx2, by2) {\n return polygonIntersectsBox(args.cameraQueryGeometry, bx1 - queryPadding, by1 - queryPadding, bx2 + queryPadding, by2 + queryPadding);\n });\n for (var i = 0, list = matching3D; i < list.length; i += 1) {\n var key = list[i];\n matching.push(key);\n }\n matching.sort(topDownFeatureComparator);\n var result = {};\n var previousIndex;\n var loop = function (k) {\n var index = matching[k];\n if (index === previousIndex) {\n return;\n }\n previousIndex = index;\n var match = this$1.featureIndexArray.get(index);\n var featureGeometry = null;\n this$1.loadMatchingFeature(result, match.bucketIndex, match.sourceLayerIndex, match.featureIndex, filter, params.layers, params.availableImages, styleLayers, serializedLayers, sourceFeatureState, function (feature, styleLayer, featureState) {\n if (!featureGeometry) {\n featureGeometry = loadGeometry(feature);\n }\n return styleLayer.queryIntersectsFeature(queryGeometry, feature, featureState, featureGeometry, this$1.z, args.transform, pixelsToTileUnits, args.pixelPosMatrix);\n });\n };\n for (var k = 0; k < matching.length; k++)\n loop(k);\n return result;\n};\nFeatureIndex.prototype.loadMatchingFeature = function loadMatchingFeature(result, bucketIndex, sourceLayerIndex, featureIndex, filter, filterLayerIDs, availableImages, styleLayers, serializedLayers, sourceFeatureState, intersectionTest) {\n var layerIDs = this.bucketLayerIDs[bucketIndex];\n if (filterLayerIDs && !arraysIntersect(filterLayerIDs, layerIDs)) {\n return;\n }\n var sourceLayerName = this.sourceLayerCoder.decode(sourceLayerIndex);\n var sourceLayer = this.vtLayers[sourceLayerName];\n var feature = sourceLayer.feature(featureIndex);\n if (!filter.filter(new EvaluationParameters(this.tileID.overscaledZ), feature)) {\n return;\n }\n var id = this.getId(feature, sourceLayerName);\n for (var l = 0; l < layerIDs.length; l++) {\n var layerID = layerIDs[l];\n if (filterLayerIDs && filterLayerIDs.indexOf(layerID) < 0) {\n continue;\n }\n var styleLayer = styleLayers[layerID];\n if (!styleLayer) {\n continue;\n }\n var featureState = {};\n if (id !== undefined && sourceFeatureState) {\n featureState = sourceFeatureState.getState(styleLayer.sourceLayer || '_geojsonTileLayer', id);\n }\n var serializedLayer = serializedLayers[layerID];\n serializedLayer.paint = evaluateProperties(serializedLayer.paint, styleLayer.paint, feature, featureState, availableImages);\n serializedLayer.layout = evaluateProperties(serializedLayer.layout, styleLayer.layout, feature, featureState, availableImages);\n var intersectionZ = !intersectionTest || intersectionTest(feature, styleLayer, featureState);\n if (!intersectionZ) {\n continue;\n }\n var geojsonFeature = new Feature(feature, this.z, this.x, this.y, id);\n geojsonFeature.layer = serializedLayer;\n var layerResult = result[layerID];\n if (layerResult === undefined) {\n layerResult = result[layerID] = [];\n }\n layerResult.push({\n featureIndex: featureIndex,\n feature: geojsonFeature,\n intersectionZ: intersectionZ\n });\n }\n};\nFeatureIndex.prototype.lookupSymbolFeatures = function lookupSymbolFeatures(symbolFeatureIndexes, serializedLayers, bucketIndex, sourceLayerIndex, filterSpec, filterLayerIDs, availableImages, styleLayers) {\n var result = {};\n this.loadVTLayers();\n var filter = createFilter(filterSpec);\n for (var i = 0, list = symbolFeatureIndexes; i < list.length; i += 1) {\n var symbolFeatureIndex = list[i];\n this.loadMatchingFeature(result, bucketIndex, sourceLayerIndex, symbolFeatureIndex, filter, filterLayerIDs, availableImages, styleLayers, serializedLayers);\n }\n return result;\n};\nFeatureIndex.prototype.hasLayer = function hasLayer(id) {\n for (var i$1 = 0, list$1 = this.bucketLayerIDs; i$1 < list$1.length; i$1 += 1) {\n var layerIDs = list$1[i$1];\n for (var i = 0, list = layerIDs; i < list.length; i += 1) {\n var layerID = list[i];\n if (id === layerID) {\n return true;\n }\n }\n }\n return false;\n};\nFeatureIndex.prototype.getId = function getId(feature, sourceLayerId) {\n var id = feature.id;\n if (this.promoteId) {\n var propName = typeof this.promoteId === 'string' ? this.promoteId : this.promoteId[sourceLayerId];\n id = feature.properties[propName];\n if (typeof id === 'boolean') {\n id = Number(id);\n }\n }\n return id;\n};\nregister('FeatureIndex', FeatureIndex, {\n omit: [\n 'rawTileData',\n 'sourceLayerCoder'\n ]\n});\nfunction evaluateProperties(serializedProperties, styleLayerProperties, feature, featureState, availableImages) {\n return mapObject(serializedProperties, function (property, key) {\n var prop = styleLayerProperties instanceof PossiblyEvaluated ? styleLayerProperties.get(key) : null;\n return prop && prop.evaluate ? prop.evaluate(feature, featureState, availableImages) : prop;\n });\n}\nfunction getBounds(geometry) {\n var minX = Infinity;\n var minY = Infinity;\n var maxX = -Infinity;\n var maxY = -Infinity;\n for (var i = 0, list = geometry; i < list.length; i += 1) {\n var p = list[i];\n minX = Math.min(minX, p.x);\n minY = Math.min(minY, p.y);\n maxX = Math.max(maxX, p.x);\n maxY = Math.max(maxY, p.y);\n }\n return {\n minX: minX,\n minY: minY,\n maxX: maxX,\n maxY: maxY\n };\n}\nfunction topDownFeatureComparator(a, b) {\n return b - a;\n}\n\nvar CLOCK_SKEW_RETRY_TIMEOUT = 30000;\nvar Tile = function Tile(tileID, size) {\n this.tileID = tileID;\n this.uid = uniqueId();\n this.uses = 0;\n this.tileSize = size;\n this.buckets = {};\n this.expirationTime = null;\n this.queryPadding = 0;\n this.hasSymbolBuckets = false;\n this.hasRTLText = false;\n this.dependencies = {};\n this.expiredRequestCount = 0;\n this.state = 'loading';\n};\nTile.prototype.registerFadeDuration = function registerFadeDuration(duration) {\n var fadeEndTime = duration + this.timeAdded;\n if (fadeEndTime < exported.now()) {\n return;\n }\n if (this.fadeEndTime && fadeEndTime < this.fadeEndTime) {\n return;\n }\n this.fadeEndTime = fadeEndTime;\n};\nTile.prototype.wasRequested = function wasRequested() {\n return this.state === 'errored' || this.state === 'loaded' || this.state === 'reloading';\n};\nTile.prototype.loadVectorData = function loadVectorData(data, painter, justReloaded) {\n if (this.hasData()) {\n this.unloadVectorData();\n }\n this.state = 'loaded';\n if (!data) {\n this.collisionBoxArray = new CollisionBoxArray();\n return;\n }\n if (data.featureIndex) {\n this.latestFeatureIndex = data.featureIndex;\n if (data.rawTileData) {\n this.latestRawTileData = data.rawTileData;\n this.latestFeatureIndex.rawTileData = data.rawTileData;\n } else if (this.latestRawTileData) {\n this.latestFeatureIndex.rawTileData = this.latestRawTileData;\n }\n }\n this.collisionBoxArray = data.collisionBoxArray;\n this.buckets = deserialize$1(data.buckets, painter.style);\n this.hasSymbolBuckets = false;\n for (var id in this.buckets) {\n var bucket = this.buckets[id];\n if (bucket instanceof SymbolBucket) {\n this.hasSymbolBuckets = true;\n if (justReloaded) {\n bucket.justReloaded = true;\n } else {\n break;\n }\n }\n }\n this.hasRTLText = false;\n if (this.hasSymbolBuckets) {\n for (var id$1 in this.buckets) {\n var bucket$1 = this.buckets[id$1];\n if (bucket$1 instanceof SymbolBucket) {\n if (bucket$1.hasRTLText) {\n this.hasRTLText = true;\n lazyLoadRTLTextPlugin();\n break;\n }\n }\n }\n }\n this.queryPadding = 0;\n for (var id$2 in this.buckets) {\n var bucket$2 = this.buckets[id$2];\n this.queryPadding = Math.max(this.queryPadding, painter.style.getLayer(id$2).queryRadius(bucket$2));\n }\n if (data.imageAtlas) {\n this.imageAtlas = data.imageAtlas;\n }\n if (data.glyphAtlasImage) {\n this.glyphAtlasImage = data.glyphAtlasImage;\n }\n};\nTile.prototype.unloadVectorData = function unloadVectorData() {\n for (var id in this.buckets) {\n this.buckets[id].destroy();\n }\n this.buckets = {};\n if (this.imageAtlasTexture) {\n this.imageAtlasTexture.destroy();\n }\n if (this.imageAtlas) {\n this.imageAtlas = null;\n }\n if (this.glyphAtlasTexture) {\n this.glyphAtlasTexture.destroy();\n }\n this.latestFeatureIndex = null;\n this.state = 'unloaded';\n};\nTile.prototype.getBucket = function getBucket(layer) {\n return this.buckets[layer.id];\n};\nTile.prototype.upload = function upload(context) {\n for (var id in this.buckets) {\n var bucket = this.buckets[id];\n if (bucket.uploadPending()) {\n bucket.upload(context);\n }\n }\n var gl = context.gl;\n if (this.imageAtlas && !this.imageAtlas.uploaded) {\n this.imageAtlasTexture = new Texture(context, this.imageAtlas.image, gl.RGBA);\n this.imageAtlas.uploaded = true;\n }\n if (this.glyphAtlasImage) {\n this.glyphAtlasTexture = new Texture(context, this.glyphAtlasImage, gl.ALPHA);\n this.glyphAtlasImage = null;\n }\n};\nTile.prototype.prepare = function prepare(imageManager) {\n if (this.imageAtlas) {\n this.imageAtlas.patchUpdatedImages(imageManager, this.imageAtlasTexture);\n }\n};\nTile.prototype.queryRenderedFeatures = function queryRenderedFeatures(layers, serializedLayers, sourceFeatureState, queryGeometry, cameraQueryGeometry, scale, params, transform, maxPitchScaleFactor, pixelPosMatrix) {\n if (!this.latestFeatureIndex || !this.latestFeatureIndex.rawTileData) {\n return {};\n }\n return this.latestFeatureIndex.query({\n queryGeometry: queryGeometry,\n cameraQueryGeometry: cameraQueryGeometry,\n scale: scale,\n tileSize: this.tileSize,\n pixelPosMatrix: pixelPosMatrix,\n transform: transform,\n params: params,\n queryPadding: this.queryPadding * maxPitchScaleFactor\n }, layers, serializedLayers, sourceFeatureState);\n};\nTile.prototype.querySourceFeatures = function querySourceFeatures(result, params) {\n var featureIndex = this.latestFeatureIndex;\n if (!featureIndex || !featureIndex.rawTileData) {\n return;\n }\n var vtLayers = featureIndex.loadVTLayers();\n var sourceLayer = params ? params.sourceLayer : '';\n var layer = vtLayers._geojsonTileLayer || vtLayers[sourceLayer];\n if (!layer) {\n return;\n }\n var filter = createFilter(params && params.filter);\n var ref = this.tileID.canonical;\n var z = ref.z;\n var x = ref.x;\n var y = ref.y;\n var coord = {\n z: z,\n x: x,\n y: y\n };\n for (var i = 0; i < layer.length; i++) {\n var feature = layer.feature(i);\n if (filter.filter(new EvaluationParameters(this.tileID.overscaledZ), feature)) {\n var id = featureIndex.getId(feature, sourceLayer);\n var geojsonFeature = new Feature(feature, z, x, y, id);\n geojsonFeature.tile = coord;\n result.push(geojsonFeature);\n }\n }\n};\nTile.prototype.hasData = function hasData() {\n return this.state === 'loaded' || this.state === 'reloading' || this.state === 'expired';\n};\nTile.prototype.patternsLoaded = function patternsLoaded() {\n return this.imageAtlas && !!Object.keys(this.imageAtlas.patternPositions).length;\n};\nTile.prototype.setExpiryData = function setExpiryData(data) {\n var prior = this.expirationTime;\n if (data.cacheControl) {\n var parsedCC = parseCacheControl(data.cacheControl);\n if (parsedCC['max-age']) {\n this.expirationTime = Date.now() + parsedCC['max-age'] * 1000;\n }\n } else if (data.expires) {\n this.expirationTime = new Date(data.expires).getTime();\n }\n if (this.expirationTime) {\n var now = Date.now();\n var isExpired = false;\n if (this.expirationTime > now) {\n isExpired = false;\n } else if (!prior) {\n isExpired = true;\n } else if (this.expirationTime < prior) {\n isExpired = true;\n } else {\n var delta = this.expirationTime - prior;\n if (!delta) {\n isExpired = true;\n } else {\n this.expirationTime = now + Math.max(delta, CLOCK_SKEW_RETRY_TIMEOUT);\n }\n }\n if (isExpired) {\n this.expiredRequestCount++;\n this.state = 'expired';\n } else {\n this.expiredRequestCount = 0;\n }\n }\n};\nTile.prototype.getExpiryTimeout = function getExpiryTimeout() {\n if (this.expirationTime) {\n if (this.expiredRequestCount) {\n return 1000 * (1 << Math.min(this.expiredRequestCount - 1, 31));\n } else {\n return Math.min(this.expirationTime - new Date().getTime(), Math.pow(2, 31) - 1);\n }\n }\n};\nTile.prototype.setFeatureState = function setFeatureState(states, painter) {\n if (!this.latestFeatureIndex || !this.latestFeatureIndex.rawTileData || Object.keys(states).length === 0) {\n return;\n }\n var vtLayers = this.latestFeatureIndex.loadVTLayers();\n for (var id in this.buckets) {\n if (!painter.style.hasLayer(id)) {\n continue;\n }\n var bucket = this.buckets[id];\n var sourceLayerId = bucket.layers[0]['sourceLayer'] || '_geojsonTileLayer';\n var sourceLayer = vtLayers[sourceLayerId];\n var sourceLayerStates = states[sourceLayerId];\n if (!sourceLayer || !sourceLayerStates || Object.keys(sourceLayerStates).length === 0) {\n continue;\n }\n bucket.update(sourceLayerStates, sourceLayer, this.imageAtlas && this.imageAtlas.patternPositions || {});\n var layer = painter && painter.style && painter.style.getLayer(id);\n if (layer) {\n this.queryPadding = Math.max(this.queryPadding, layer.queryRadius(bucket));\n }\n }\n};\nTile.prototype.holdingForFade = function holdingForFade() {\n return this.symbolFadeHoldUntil !== undefined;\n};\nTile.prototype.symbolFadeFinished = function symbolFadeFinished() {\n return !this.symbolFadeHoldUntil || this.symbolFadeHoldUntil < exported.now();\n};\nTile.prototype.clearFadeHold = function clearFadeHold() {\n this.symbolFadeHoldUntil = undefined;\n};\nTile.prototype.setHoldDuration = function setHoldDuration(duration) {\n this.symbolFadeHoldUntil = exported.now() + duration;\n};\nTile.prototype.setDependencies = function setDependencies(namespace, dependencies) {\n var index = {};\n for (var i = 0, list = dependencies; i < list.length; i += 1) {\n var dep = list[i];\n index[dep] = true;\n }\n this.dependencies[namespace] = index;\n};\nTile.prototype.hasDependency = function hasDependency(namespaces, keys) {\n for (var i$1 = 0, list$1 = namespaces; i$1 < list$1.length; i$1 += 1) {\n var namespace = list$1[i$1];\n var dependencies = this.dependencies[namespace];\n if (dependencies) {\n for (var i = 0, list = keys; i < list.length; i += 1) {\n var key = list[i];\n if (dependencies[key]) {\n return true;\n }\n }\n }\n }\n return false;\n};\n\nvar refProperties = [\n 'type',\n 'source',\n 'source-layer',\n 'minzoom',\n 'maxzoom',\n 'filter',\n 'layout'\n];\n\nvar performance = self.performance;\nvar RequestPerformance = function RequestPerformance(request) {\n this._marks = {\n start: [\n request.url,\n 'start'\n ].join('#'),\n end: [\n request.url,\n 'end'\n ].join('#'),\n measure: request.url.toString()\n };\n performance.mark(this._marks.start);\n};\nRequestPerformance.prototype.finish = function finish() {\n performance.mark(this._marks.end);\n var resourceTimingData = performance.getEntriesByName(this._marks.measure);\n if (resourceTimingData.length === 0) {\n performance.measure(this._marks.measure, this._marks.start, this._marks.end);\n resourceTimingData = performance.getEntriesByName(this._marks.measure);\n performance.clearMarks(this._marks.start);\n performance.clearMarks(this._marks.end);\n performance.clearMeasures(this._marks.measure);\n }\n return resourceTimingData;\n};\n\nexports.Actor = Actor;\nexports.AlphaImage = AlphaImage;\nexports.CanonicalTileID = CanonicalTileID;\nexports.CollisionBoxArray = CollisionBoxArray;\nexports.Color = Color;\nexports.DEMData = DEMData;\nexports.DataConstantProperty = DataConstantProperty;\nexports.DictionaryCoder = DictionaryCoder;\nexports.EXTENT = EXTENT$1;\nexports.ErrorEvent = ErrorEvent;\nexports.EvaluationParameters = EvaluationParameters;\nexports.Event = Event;\nexports.Evented = Evented;\nexports.FeatureIndex = FeatureIndex;\nexports.FillBucket = FillBucket;\nexports.FillExtrusionBucket = FillExtrusionBucket;\nexports.ImageAtlas = ImageAtlas;\nexports.ImagePosition = ImagePosition;\nexports.LineBucket = LineBucket;\nexports.LngLat = LngLat;\nexports.LngLatBounds = LngLatBounds;\nexports.MercatorCoordinate = MercatorCoordinate;\nexports.ONE_EM = ONE_EM;\nexports.OverscaledTileID = OverscaledTileID;\nexports.Point = pointGeometry;\nexports.Point$1 = pointGeometry;\nexports.Properties = Properties;\nexports.Protobuf = pbf;\nexports.RGBAImage = RGBAImage;\nexports.RequestManager = RequestManager;\nexports.RequestPerformance = RequestPerformance;\nexports.ResourceType = ResourceType;\nexports.SegmentVector = SegmentVector;\nexports.SourceFeatureState = SourceFeatureState;\nexports.StructArrayLayout1ui2 = StructArrayLayout1ui2;\nexports.StructArrayLayout2f1f2i16 = StructArrayLayout2f1f2i16;\nexports.StructArrayLayout2i4 = StructArrayLayout2i4;\nexports.StructArrayLayout3ui6 = StructArrayLayout3ui6;\nexports.StructArrayLayout4i8 = StructArrayLayout4i8;\nexports.SymbolBucket = SymbolBucket;\nexports.Texture = Texture;\nexports.Tile = Tile;\nexports.Transitionable = Transitionable;\nexports.Uniform1f = Uniform1f;\nexports.Uniform1i = Uniform1i;\nexports.Uniform2f = Uniform2f;\nexports.Uniform3f = Uniform3f;\nexports.Uniform4f = Uniform4f;\nexports.UniformColor = UniformColor;\nexports.UniformMatrix4f = UniformMatrix4f;\nexports.UnwrappedTileID = UnwrappedTileID;\nexports.ValidationError = ValidationError;\nexports.WritingMode = WritingMode;\nexports.ZoomHistory = ZoomHistory;\nexports.add = add;\nexports.addDynamicAttributes = addDynamicAttributes;\nexports.asyncAll = asyncAll;\nexports.bezier = bezier;\nexports.bindAll = bindAll;\nexports.browser = exported;\nexports.cacheEntryPossiblyAdded = cacheEntryPossiblyAdded;\nexports.clamp = clamp;\nexports.clearTileCache = clearTileCache;\nexports.clipLine = clipLine;\nexports.clone = clone$1;\nexports.clone$1 = clone;\nexports.clone$2 = clone$2;\nexports.collisionCircleLayout = collisionCircleLayout;\nexports.config = config;\nexports.create = create$2;\nexports.create$1 = create$1;\nexports.create$2 = create;\nexports.createCommonjsModule = createCommonjsModule;\nexports.createExpression = createExpression;\nexports.createLayout = createLayout;\nexports.createStyleLayer = createStyleLayer;\nexports.cross = cross;\nexports.deepEqual = deepEqual;\nexports.dot = dot;\nexports.dot$1 = dot$1;\nexports.ease = ease;\nexports.emitValidationErrors = emitValidationErrors;\nexports.endsWith = endsWith;\nexports.enforceCacheSizeLimit = enforceCacheSizeLimit;\nexports.evaluateSizeForFeature = evaluateSizeForFeature;\nexports.evaluateSizeForZoom = evaluateSizeForZoom;\nexports.evaluateVariableOffset = evaluateVariableOffset;\nexports.evented = evented;\nexports.extend = extend;\nexports.featureFilter = createFilter;\nexports.filterObject = filterObject;\nexports.fromRotation = fromRotation;\nexports.getAnchorAlignment = getAnchorAlignment;\nexports.getAnchorJustification = getAnchorJustification;\nexports.getArrayBuffer = getArrayBuffer;\nexports.getImage = getImage;\nexports.getJSON = getJSON;\nexports.getRTLTextPluginStatus = getRTLTextPluginStatus;\nexports.getReferrer = getReferrer;\nexports.getVideo = getVideo;\nexports.identity = identity;\nexports.invert = invert;\nexports.isChar = unicodeBlockLookup;\nexports.isMapboxURL = isMapboxURL;\nexports.keysDifference = keysDifference;\nexports.makeRequest = makeRequest;\nexports.mapObject = mapObject;\nexports.mercatorXfromLng = mercatorXfromLng$1;\nexports.mercatorYfromLat = mercatorYfromLat$1;\nexports.mercatorZfromAltitude = mercatorZfromAltitude;\nexports.mul = mul;\nexports.multiply = multiply;\nexports.mvt = vectorTile;\nexports.normalize = normalize;\nexports.number = number;\nexports.offscreenCanvasSupported = offscreenCanvasSupported;\nexports.ortho = ortho;\nexports.parseGlyphPBF = parseGlyphPBF;\nexports.pbf = pbf;\nexports.performSymbolLayout = performSymbolLayout;\nexports.perspective = perspective;\nexports.pick = pick;\nexports.plugin = plugin;\nexports.polygonIntersectsPolygon = polygonIntersectsPolygon;\nexports.postMapLoadEvent = postMapLoadEvent;\nexports.postTurnstileEvent = postTurnstileEvent;\nexports.potpack = potpack;\nexports.refProperties = refProperties;\nexports.register = register;\nexports.registerForPluginStateChange = registerForPluginStateChange;\nexports.rotate = rotate;\nexports.rotateX = rotateX;\nexports.rotateZ = rotateZ;\nexports.scale = scale;\nexports.scale$1 = scale$2;\nexports.scale$2 = scale$1;\nexports.setCacheLimits = setCacheLimits;\nexports.setRTLTextPlugin = setRTLTextPlugin;\nexports.sphericalToCartesian = sphericalToCartesian;\nexports.sqrLen = sqrLen;\nexports.styleSpec = spec;\nexports.sub = sub;\nexports.symbolSize = symbolSize;\nexports.transformMat3 = transformMat3;\nexports.transformMat4 = transformMat4;\nexports.translate = translate$1;\nexports.triggerPluginCompletionEvent = triggerPluginCompletionEvent;\nexports.uniqueId = uniqueId;\nexports.validateCustomStyleLayer = validateCustomStyleLayer;\nexports.validateLight = validateLight$1;\nexports.validateStyle = validateStyle;\nexports.values = values;\nexports.vectorTile = vectorTile;\nexports.version = version;\nexports.warnOnce = warnOnce;\nexports.webpSupported = exported$1;\nexports.window = self;\nexports.wrap = wrap;\n\n});\n\ndefine(['./shared'], function (performance$1) { 'use strict';\n\nfunction stringify(obj) {\n var type = typeof obj;\n if (type === 'number' || type === 'boolean' || type === 'string' || obj === undefined || obj === null) {\n return JSON.stringify(obj);\n }\n if (Array.isArray(obj)) {\n var str$1 = '[';\n for (var i$1 = 0, list = obj; i$1 < list.length; i$1 += 1) {\n var val = list[i$1];\n str$1 += stringify(val) + ',';\n }\n return str$1 + ']';\n }\n var keys = Object.keys(obj).sort();\n var str = '{';\n for (var i = 0; i < keys.length; i++) {\n str += JSON.stringify(keys[i]) + ':' + stringify(obj[keys[i]]) + ',';\n }\n return str + '}';\n}\nfunction getKey(layer) {\n var key = '';\n for (var i = 0, list = performance$1.refProperties; i < list.length; i += 1) {\n var k = list[i];\n key += '/' + stringify(layer[k]);\n }\n return key;\n}\nfunction groupByLayout(layers, cachedKeys) {\n var groups = {};\n for (var i = 0; i < layers.length; i++) {\n var k = cachedKeys && cachedKeys[layers[i].id] || getKey(layers[i]);\n if (cachedKeys) {\n cachedKeys[layers[i].id] = k;\n }\n var group = groups[k];\n if (!group) {\n group = groups[k] = [];\n }\n group.push(layers[i]);\n }\n var result = [];\n for (var k$1 in groups) {\n result.push(groups[k$1]);\n }\n return result;\n}\n\nvar StyleLayerIndex = function StyleLayerIndex(layerConfigs) {\n this.keyCache = {};\n if (layerConfigs) {\n this.replace(layerConfigs);\n }\n};\nStyleLayerIndex.prototype.replace = function replace(layerConfigs) {\n this._layerConfigs = {};\n this._layers = {};\n this.update(layerConfigs, []);\n};\nStyleLayerIndex.prototype.update = function update(layerConfigs, removedIds) {\n var this$1 = this;\n for (var i = 0, list = layerConfigs; i < list.length; i += 1) {\n var layerConfig = list[i];\n this._layerConfigs[layerConfig.id] = layerConfig;\n var layer = this._layers[layerConfig.id] = performance$1.createStyleLayer(layerConfig);\n layer._featureFilter = performance$1.featureFilter(layer.filter);\n if (this.keyCache[layerConfig.id]) {\n delete this.keyCache[layerConfig.id];\n }\n }\n for (var i$1 = 0, list$1 = removedIds; i$1 < list$1.length; i$1 += 1) {\n var id = list$1[i$1];\n delete this.keyCache[id];\n delete this._layerConfigs[id];\n delete this._layers[id];\n }\n this.familiesBySource = {};\n var groups = groupByLayout(performance$1.values(this._layerConfigs), this.keyCache);\n for (var i$2 = 0, list$2 = groups; i$2 < list$2.length; i$2 += 1) {\n var layerConfigs$1 = list$2[i$2];\n var layers = layerConfigs$1.map(function (layerConfig) {\n return this$1._layers[layerConfig.id];\n });\n var layer$1 = layers[0];\n if (layer$1.visibility === 'none') {\n continue;\n }\n var sourceId = layer$1.source || '';\n var sourceGroup = this.familiesBySource[sourceId];\n if (!sourceGroup) {\n sourceGroup = this.familiesBySource[sourceId] = {};\n }\n var sourceLayerId = layer$1.sourceLayer || '_geojsonTileLayer';\n var sourceLayerFamilies = sourceGroup[sourceLayerId];\n if (!sourceLayerFamilies) {\n sourceLayerFamilies = sourceGroup[sourceLayerId] = [];\n }\n sourceLayerFamilies.push(layers);\n }\n};\n\nvar padding = 1;\nvar GlyphAtlas = function GlyphAtlas(stacks) {\n var positions = {};\n var bins = [];\n for (var stack in stacks) {\n var glyphs = stacks[stack];\n var stackPositions = positions[stack] = {};\n for (var id in glyphs) {\n var src = glyphs[+id];\n if (!src || src.bitmap.width === 0 || src.bitmap.height === 0) {\n continue;\n }\n var bin = {\n x: 0,\n y: 0,\n w: src.bitmap.width + 2 * padding,\n h: src.bitmap.height + 2 * padding\n };\n bins.push(bin);\n stackPositions[id] = {\n rect: bin,\n metrics: src.metrics\n };\n }\n }\n var ref = performance$1.potpack(bins);\n var w = ref.w;\n var h = ref.h;\n var image = new performance$1.AlphaImage({\n width: w || 1,\n height: h || 1\n });\n for (var stack$1 in stacks) {\n var glyphs$1 = stacks[stack$1];\n for (var id$1 in glyphs$1) {\n var src$1 = glyphs$1[+id$1];\n if (!src$1 || src$1.bitmap.width === 0 || src$1.bitmap.height === 0) {\n continue;\n }\n var bin$1 = positions[stack$1][id$1].rect;\n performance$1.AlphaImage.copy(src$1.bitmap, image, {\n x: 0,\n y: 0\n }, {\n x: bin$1.x + padding,\n y: bin$1.y + padding\n }, src$1.bitmap);\n }\n }\n this.image = image;\n this.positions = positions;\n};\nperformance$1.register('GlyphAtlas', GlyphAtlas);\n\nvar WorkerTile = function WorkerTile(params) {\n this.tileID = new performance$1.OverscaledTileID(params.tileID.overscaledZ, params.tileID.wrap, params.tileID.canonical.z, params.tileID.canonical.x, params.tileID.canonical.y);\n this.uid = params.uid;\n this.zoom = params.zoom;\n this.pixelRatio = params.pixelRatio;\n this.tileSize = params.tileSize;\n this.source = params.source;\n this.overscaling = this.tileID.overscaleFactor();\n this.showCollisionBoxes = params.showCollisionBoxes;\n this.collectResourceTiming = !!params.collectResourceTiming;\n this.returnDependencies = !!params.returnDependencies;\n this.promoteId = params.promoteId;\n};\nWorkerTile.prototype.parse = function parse(data, layerIndex, availableImages, actor, callback) {\n var this$1 = this;\n this.status = 'parsing';\n this.data = data;\n this.collisionBoxArray = new performance$1.CollisionBoxArray();\n var sourceLayerCoder = new performance$1.DictionaryCoder(Object.keys(data.layers).sort());\n var featureIndex = new performance$1.FeatureIndex(this.tileID, this.promoteId);\n featureIndex.bucketLayerIDs = [];\n var buckets = {};\n var options = {\n featureIndex: featureIndex,\n iconDependencies: {},\n patternDependencies: {},\n glyphDependencies: {},\n availableImages: availableImages\n };\n var layerFamilies = layerIndex.familiesBySource[this.source];\n for (var sourceLayerId in layerFamilies) {\n var sourceLayer = data.layers[sourceLayerId];\n if (!sourceLayer) {\n continue;\n }\n if (sourceLayer.version === 1) {\n performance$1.warnOnce('Vector tile source \"' + this.source + '\" layer \"' + sourceLayerId + '\" ' + 'does not use vector tile spec v2 and therefore may have some rendering errors.');\n }\n var sourceLayerIndex = sourceLayerCoder.encode(sourceLayerId);\n var features = [];\n for (var index = 0; index < sourceLayer.length; index++) {\n var feature = sourceLayer.feature(index);\n var id = featureIndex.getId(feature, sourceLayerId);\n features.push({\n feature: feature,\n id: id,\n index: index,\n sourceLayerIndex: sourceLayerIndex\n });\n }\n for (var i = 0, list = layerFamilies[sourceLayerId]; i < list.length; i += 1) {\n var family = list[i];\n var layer = family[0];\n if (layer.minzoom && this.zoom < Math.floor(layer.minzoom)) {\n continue;\n }\n if (layer.maxzoom && this.zoom >= layer.maxzoom) {\n continue;\n }\n if (layer.visibility === 'none') {\n continue;\n }\n recalculateLayers(family, this.zoom, availableImages);\n var bucket = buckets[layer.id] = layer.createBucket({\n index: featureIndex.bucketLayerIDs.length,\n layers: family,\n zoom: this.zoom,\n pixelRatio: this.pixelRatio,\n overscaling: this.overscaling,\n collisionBoxArray: this.collisionBoxArray,\n sourceLayerIndex: sourceLayerIndex,\n sourceID: this.source\n });\n bucket.populate(features, options, this.tileID.canonical);\n featureIndex.bucketLayerIDs.push(family.map(function (l) {\n return l.id;\n }));\n }\n }\n var error;\n var glyphMap;\n var iconMap;\n var patternMap;\n var stacks = performance$1.mapObject(options.glyphDependencies, function (glyphs) {\n return Object.keys(glyphs).map(Number);\n });\n if (Object.keys(stacks).length) {\n actor.send('getGlyphs', {\n uid: this.uid,\n stacks: stacks\n }, function (err, result) {\n if (!error) {\n error = err;\n glyphMap = result;\n maybePrepare.call(this$1);\n }\n });\n } else {\n glyphMap = {};\n }\n var icons = Object.keys(options.iconDependencies);\n if (icons.length) {\n actor.send('getImages', {\n icons: icons,\n source: this.source,\n tileID: this.tileID,\n type: 'icons'\n }, function (err, result) {\n if (!error) {\n error = err;\n iconMap = result;\n maybePrepare.call(this$1);\n }\n });\n } else {\n iconMap = {};\n }\n var patterns = Object.keys(options.patternDependencies);\n if (patterns.length) {\n actor.send('getImages', {\n icons: patterns,\n source: this.source,\n tileID: this.tileID,\n type: 'patterns'\n }, function (err, result) {\n if (!error) {\n error = err;\n patternMap = result;\n maybePrepare.call(this$1);\n }\n });\n } else {\n patternMap = {};\n }\n maybePrepare.call(this);\n function maybePrepare() {\n if (error) {\n return callback(error);\n } else if (glyphMap && iconMap && patternMap) {\n var glyphAtlas = new GlyphAtlas(glyphMap);\n var imageAtlas = new performance$1.ImageAtlas(iconMap, patternMap);\n for (var key in buckets) {\n var bucket = buckets[key];\n if (bucket instanceof performance$1.SymbolBucket) {\n recalculateLayers(bucket.layers, this.zoom, availableImages);\n performance$1.performSymbolLayout(bucket, glyphMap, glyphAtlas.positions, iconMap, imageAtlas.iconPositions, this.showCollisionBoxes, this.tileID.canonical);\n } else if (bucket.hasPattern && (bucket instanceof performance$1.LineBucket || bucket instanceof performance$1.FillBucket || bucket instanceof performance$1.FillExtrusionBucket)) {\n recalculateLayers(bucket.layers, this.zoom, availableImages);\n bucket.addFeatures(options, this.tileID.canonical, imageAtlas.patternPositions);\n }\n }\n this.status = 'done';\n callback(null, {\n buckets: performance$1.values(buckets).filter(function (b) {\n return !b.isEmpty();\n }),\n featureIndex: featureIndex,\n collisionBoxArray: this.collisionBoxArray,\n glyphAtlasImage: glyphAtlas.image,\n imageAtlas: imageAtlas,\n glyphMap: this.returnDependencies ? glyphMap : null,\n iconMap: this.returnDependencies ? iconMap : null,\n glyphPositions: this.returnDependencies ? glyphAtlas.positions : null\n });\n }\n }\n};\nfunction recalculateLayers(layers, zoom, availableImages) {\n var parameters = new performance$1.EvaluationParameters(zoom);\n for (var i = 0, list = layers; i < list.length; i += 1) {\n var layer = list[i];\n layer.recalculate(parameters, availableImages);\n }\n}\n\nfunction loadVectorTile(params, callback) {\n var request = performance$1.getArrayBuffer(params.request, function (err, data, cacheControl, expires) {\n if (err) {\n callback(err);\n } else if (data) {\n callback(null, {\n vectorTile: new performance$1.vectorTile.VectorTile(new performance$1.pbf(data)),\n rawData: data,\n cacheControl: cacheControl,\n expires: expires\n });\n }\n });\n return function () {\n request.cancel();\n callback();\n };\n}\nvar VectorTileWorkerSource = function VectorTileWorkerSource(actor, layerIndex, availableImages, loadVectorData) {\n this.actor = actor;\n this.layerIndex = layerIndex;\n this.availableImages = availableImages;\n this.loadVectorData = loadVectorData || loadVectorTile;\n this.loading = {};\n this.loaded = {};\n};\nVectorTileWorkerSource.prototype.loadTile = function loadTile(params, callback) {\n var this$1 = this;\n var uid = params.uid;\n if (!this.loading) {\n this.loading = {};\n }\n var perf = params && params.request && params.request.collectResourceTiming ? new performance$1.RequestPerformance(params.request) : false;\n var workerTile = this.loading[uid] = new WorkerTile(params);\n workerTile.abort = this.loadVectorData(params, function (err, response) {\n delete this$1.loading[uid];\n if (err || !response) {\n workerTile.status = 'done';\n this$1.loaded[uid] = workerTile;\n return callback(err);\n }\n var rawTileData = response.rawData;\n var cacheControl = {};\n if (response.expires) {\n cacheControl.expires = response.expires;\n }\n if (response.cacheControl) {\n cacheControl.cacheControl = response.cacheControl;\n }\n var resourceTiming = {};\n if (perf) {\n var resourceTimingData = perf.finish();\n if (resourceTimingData) {\n resourceTiming.resourceTiming = JSON.parse(JSON.stringify(resourceTimingData));\n }\n }\n workerTile.vectorTile = response.vectorTile;\n workerTile.parse(response.vectorTile, this$1.layerIndex, this$1.availableImages, this$1.actor, function (err, result) {\n if (err || !result) {\n return callback(err);\n }\n callback(null, performance$1.extend({ rawTileData: rawTileData.slice(0) }, result, cacheControl, resourceTiming));\n });\n this$1.loaded = this$1.loaded || {};\n this$1.loaded[uid] = workerTile;\n });\n};\nVectorTileWorkerSource.prototype.reloadTile = function reloadTile(params, callback) {\n var this$1 = this;\n var loaded = this.loaded, uid = params.uid, vtSource = this;\n if (loaded && loaded[uid]) {\n var workerTile = loaded[uid];\n workerTile.showCollisionBoxes = params.showCollisionBoxes;\n var done = function (err, data) {\n var reloadCallback = workerTile.reloadCallback;\n if (reloadCallback) {\n delete workerTile.reloadCallback;\n workerTile.parse(workerTile.vectorTile, vtSource.layerIndex, this$1.availableImages, vtSource.actor, reloadCallback);\n }\n callback(err, data);\n };\n if (workerTile.status === 'parsing') {\n workerTile.reloadCallback = done;\n } else if (workerTile.status === 'done') {\n if (workerTile.vectorTile) {\n workerTile.parse(workerTile.vectorTile, this.layerIndex, this.availableImages, this.actor, done);\n } else {\n done();\n }\n }\n }\n};\nVectorTileWorkerSource.prototype.abortTile = function abortTile(params, callback) {\n var loading = this.loading, uid = params.uid;\n if (loading && loading[uid] && loading[uid].abort) {\n loading[uid].abort();\n delete loading[uid];\n }\n callback();\n};\nVectorTileWorkerSource.prototype.removeTile = function removeTile(params, callback) {\n var loaded = this.loaded, uid = params.uid;\n if (loaded && loaded[uid]) {\n delete loaded[uid];\n }\n callback();\n};\n\nvar ImageBitmap = performance$1.window.ImageBitmap;\nvar RasterDEMTileWorkerSource = function RasterDEMTileWorkerSource() {\n this.loaded = {};\n};\nRasterDEMTileWorkerSource.prototype.loadTile = function loadTile(params, callback) {\n var uid = params.uid;\n var encoding = params.encoding;\n var rawImageData = params.rawImageData;\n var imagePixels = ImageBitmap && rawImageData instanceof ImageBitmap ? this.getImageData(rawImageData) : rawImageData;\n var dem = new performance$1.DEMData(uid, imagePixels, encoding);\n this.loaded = this.loaded || {};\n this.loaded[uid] = dem;\n callback(null, dem);\n};\nRasterDEMTileWorkerSource.prototype.getImageData = function getImageData(imgBitmap) {\n if (!this.offscreenCanvas || !this.offscreenCanvasContext) {\n this.offscreenCanvas = new OffscreenCanvas(imgBitmap.width, imgBitmap.height);\n this.offscreenCanvasContext = this.offscreenCanvas.getContext('2d');\n }\n this.offscreenCanvas.width = imgBitmap.width;\n this.offscreenCanvas.height = imgBitmap.height;\n this.offscreenCanvasContext.drawImage(imgBitmap, 0, 0, imgBitmap.width, imgBitmap.height);\n var imgData = this.offscreenCanvasContext.getImageData(-1, -1, imgBitmap.width + 2, imgBitmap.height + 2);\n this.offscreenCanvasContext.clearRect(0, 0, this.offscreenCanvas.width, this.offscreenCanvas.height);\n return new performance$1.RGBAImage({\n width: imgData.width,\n height: imgData.height\n }, imgData.data);\n};\nRasterDEMTileWorkerSource.prototype.removeTile = function removeTile(params) {\n var loaded = this.loaded, uid = params.uid;\n if (loaded && loaded[uid]) {\n delete loaded[uid];\n }\n};\n\nvar geojsonRewind = rewind;\nfunction rewind(gj, outer) {\n var type = gj && gj.type, i;\n if (type === 'FeatureCollection') {\n for (i = 0; i < gj.features.length; i++) {\n rewind(gj.features[i], outer);\n }\n } else if (type === 'GeometryCollection') {\n for (i = 0; i < gj.geometries.length; i++) {\n rewind(gj.geometries[i], outer);\n }\n } else if (type === 'Feature') {\n rewind(gj.geometry, outer);\n } else if (type === 'Polygon') {\n rewindRings(gj.coordinates, outer);\n } else if (type === 'MultiPolygon') {\n for (i = 0; i < gj.coordinates.length; i++) {\n rewindRings(gj.coordinates[i], outer);\n }\n }\n return gj;\n}\nfunction rewindRings(rings, outer) {\n if (rings.length === 0) {\n return;\n }\n rewindRing(rings[0], outer);\n for (var i = 1; i < rings.length; i++) {\n rewindRing(rings[i], !outer);\n }\n}\nfunction rewindRing(ring, dir) {\n var area = 0;\n for (var i = 0, len = ring.length, j = len - 1; i < len; j = i++) {\n area += (ring[i][0] - ring[j][0]) * (ring[j][1] + ring[i][1]);\n }\n if (area >= 0 !== !!dir) {\n ring.reverse();\n }\n}\n\nvar toGeoJSON = performance$1.vectorTile.VectorTileFeature.prototype.toGeoJSON;\nvar FeatureWrapper = function FeatureWrapper(feature) {\n this._feature = feature;\n this.extent = performance$1.EXTENT;\n this.type = feature.type;\n this.properties = feature.tags;\n if ('id' in feature && !isNaN(feature.id)) {\n this.id = parseInt(feature.id, 10);\n }\n};\nFeatureWrapper.prototype.loadGeometry = function loadGeometry() {\n if (this._feature.type === 1) {\n var geometry = [];\n for (var i = 0, list = this._feature.geometry; i < list.length; i += 1) {\n var point = list[i];\n geometry.push([new performance$1.Point$1(point[0], point[1])]);\n }\n return geometry;\n } else {\n var geometry$1 = [];\n for (var i$2 = 0, list$2 = this._feature.geometry; i$2 < list$2.length; i$2 += 1) {\n var ring = list$2[i$2];\n var newRing = [];\n for (var i$1 = 0, list$1 = ring; i$1 < list$1.length; i$1 += 1) {\n var point$1 = list$1[i$1];\n newRing.push(new performance$1.Point$1(point$1[0], point$1[1]));\n }\n geometry$1.push(newRing);\n }\n return geometry$1;\n }\n};\nFeatureWrapper.prototype.toGeoJSON = function toGeoJSON$1(x, y, z) {\n return toGeoJSON.call(this, x, y, z);\n};\nvar GeoJSONWrapper = function GeoJSONWrapper(features) {\n this.layers = { '_geojsonTileLayer': this };\n this.name = '_geojsonTileLayer';\n this.extent = performance$1.EXTENT;\n this.length = features.length;\n this._features = features;\n};\nGeoJSONWrapper.prototype.feature = function feature(i) {\n return new FeatureWrapper(this._features[i]);\n};\n\nvar VectorTileFeature = performance$1.vectorTile.VectorTileFeature;\nvar geojson_wrapper = GeoJSONWrapper$1;\nfunction GeoJSONWrapper$1(features, options) {\n this.options = options || {};\n this.features = features;\n this.length = features.length;\n}\nGeoJSONWrapper$1.prototype.feature = function (i) {\n return new FeatureWrapper$1(this.features[i], this.options.extent);\n};\nfunction FeatureWrapper$1(feature, extent) {\n this.id = typeof feature.id === 'number' ? feature.id : undefined;\n this.type = feature.type;\n this.rawGeometry = feature.type === 1 ? [feature.geometry] : feature.geometry;\n this.properties = feature.tags;\n this.extent = extent || 4096;\n}\nFeatureWrapper$1.prototype.loadGeometry = function () {\n var rings = this.rawGeometry;\n this.geometry = [];\n for (var i = 0; i < rings.length; i++) {\n var ring = rings[i];\n var newRing = [];\n for (var j = 0; j < ring.length; j++) {\n newRing.push(new performance$1.Point$1(ring[j][0], ring[j][1]));\n }\n this.geometry.push(newRing);\n }\n return this.geometry;\n};\nFeatureWrapper$1.prototype.bbox = function () {\n if (!this.geometry) {\n this.loadGeometry();\n }\n var rings = this.geometry;\n var x1 = Infinity;\n var x2 = -Infinity;\n var y1 = Infinity;\n var y2 = -Infinity;\n for (var i = 0; i < rings.length; i++) {\n var ring = rings[i];\n for (var j = 0; j < ring.length; j++) {\n var coord = ring[j];\n x1 = Math.min(x1, coord.x);\n x2 = Math.max(x2, coord.x);\n y1 = Math.min(y1, coord.y);\n y2 = Math.max(y2, coord.y);\n }\n }\n return [\n x1,\n y1,\n x2,\n y2\n ];\n};\nFeatureWrapper$1.prototype.toGeoJSON = VectorTileFeature.prototype.toGeoJSON;\n\nvar vtPbf = fromVectorTileJs;\nvar fromVectorTileJs_1 = fromVectorTileJs;\nvar fromGeojsonVt_1 = fromGeojsonVt;\nvar GeoJSONWrapper_1 = geojson_wrapper;\nfunction fromVectorTileJs(tile) {\n var out = new performance$1.pbf();\n writeTile(tile, out);\n return out.finish();\n}\nfunction fromGeojsonVt(layers, options) {\n options = options || {};\n var l = {};\n for (var k in layers) {\n l[k] = new geojson_wrapper(layers[k].features, options);\n l[k].name = k;\n l[k].version = options.version;\n l[k].extent = options.extent;\n }\n return fromVectorTileJs({ layers: l });\n}\nfunction writeTile(tile, pbf) {\n for (var key in tile.layers) {\n pbf.writeMessage(3, writeLayer, tile.layers[key]);\n }\n}\nfunction writeLayer(layer, pbf) {\n pbf.writeVarintField(15, layer.version || 1);\n pbf.writeStringField(1, layer.name || '');\n pbf.writeVarintField(5, layer.extent || 4096);\n var i;\n var context = {\n keys: [],\n values: [],\n keycache: {},\n valuecache: {}\n };\n for (i = 0; i < layer.length; i++) {\n context.feature = layer.feature(i);\n pbf.writeMessage(2, writeFeature, context);\n }\n var keys = context.keys;\n for (i = 0; i < keys.length; i++) {\n pbf.writeStringField(3, keys[i]);\n }\n var values = context.values;\n for (i = 0; i < values.length; i++) {\n pbf.writeMessage(4, writeValue, values[i]);\n }\n}\nfunction writeFeature(context, pbf) {\n var feature = context.feature;\n if (feature.id !== undefined) {\n pbf.writeVarintField(1, feature.id);\n }\n pbf.writeMessage(2, writeProperties, context);\n pbf.writeVarintField(3, feature.type);\n pbf.writeMessage(4, writeGeometry, feature);\n}\nfunction writeProperties(context, pbf) {\n var feature = context.feature;\n var keys = context.keys;\n var values = context.values;\n var keycache = context.keycache;\n var valuecache = context.valuecache;\n for (var key in feature.properties) {\n var keyIndex = keycache[key];\n if (typeof keyIndex === 'undefined') {\n keys.push(key);\n keyIndex = keys.length - 1;\n keycache[key] = keyIndex;\n }\n pbf.writeVarint(keyIndex);\n var value = feature.properties[key];\n var type = typeof value;\n if (type !== 'string' && type !== 'boolean' && type !== 'number') {\n value = JSON.stringify(value);\n }\n var valueKey = type + ':' + value;\n var valueIndex = valuecache[valueKey];\n if (typeof valueIndex === 'undefined') {\n values.push(value);\n valueIndex = values.length - 1;\n valuecache[valueKey] = valueIndex;\n }\n pbf.writeVarint(valueIndex);\n }\n}\nfunction command(cmd, length) {\n return (length << 3) + (cmd & 7);\n}\nfunction zigzag(num) {\n return num << 1 ^ num >> 31;\n}\nfunction writeGeometry(feature, pbf) {\n var geometry = feature.loadGeometry();\n var type = feature.type;\n var x = 0;\n var y = 0;\n var rings = geometry.length;\n for (var r = 0; r < rings; r++) {\n var ring = geometry[r];\n var count = 1;\n if (type === 1) {\n count = ring.length;\n }\n pbf.writeVarint(command(1, count));\n var lineCount = type === 3 ? ring.length - 1 : ring.length;\n for (var i = 0; i < lineCount; i++) {\n if (i === 1 && type !== 1) {\n pbf.writeVarint(command(2, lineCount - 1));\n }\n var dx = ring[i].x - x;\n var dy = ring[i].y - y;\n pbf.writeVarint(zigzag(dx));\n pbf.writeVarint(zigzag(dy));\n x += dx;\n y += dy;\n }\n if (type === 3) {\n pbf.writeVarint(command(7, 1));\n }\n }\n}\nfunction writeValue(value, pbf) {\n var type = typeof value;\n if (type === 'string') {\n pbf.writeStringField(1, value);\n } else if (type === 'boolean') {\n pbf.writeBooleanField(7, value);\n } else if (type === 'number') {\n if (value % 1 !== 0) {\n pbf.writeDoubleField(3, value);\n } else if (value < 0) {\n pbf.writeSVarintField(6, value);\n } else {\n pbf.writeVarintField(5, value);\n }\n }\n}\nvtPbf.fromVectorTileJs = fromVectorTileJs_1;\nvtPbf.fromGeojsonVt = fromGeojsonVt_1;\nvtPbf.GeoJSONWrapper = GeoJSONWrapper_1;\n\nfunction sortKD(ids, coords, nodeSize, left, right, depth) {\n if (right - left <= nodeSize) {\n return;\n }\n var m = left + right >> 1;\n select(ids, coords, m, left, right, depth % 2);\n sortKD(ids, coords, nodeSize, left, m - 1, depth + 1);\n sortKD(ids, coords, nodeSize, m + 1, right, depth + 1);\n}\nfunction select(ids, coords, k, left, right, inc) {\n while (right > left) {\n if (right - left > 600) {\n var n = right - left + 1;\n var m = k - left + 1;\n var z = Math.log(n);\n var s = 0.5 * Math.exp(2 * z / 3);\n var sd = 0.5 * Math.sqrt(z * s * (n - s) / n) * (m - n / 2 < 0 ? -1 : 1);\n var newLeft = Math.max(left, Math.floor(k - m * s / n + sd));\n var newRight = Math.min(right, Math.floor(k + (n - m) * s / n + sd));\n select(ids, coords, k, newLeft, newRight, inc);\n }\n var t = coords[2 * k + inc];\n var i = left;\n var j = right;\n swapItem(ids, coords, left, k);\n if (coords[2 * right + inc] > t) {\n swapItem(ids, coords, left, right);\n }\n while (i < j) {\n swapItem(ids, coords, i, j);\n i++;\n j--;\n while (coords[2 * i + inc] < t) {\n i++;\n }\n while (coords[2 * j + inc] > t) {\n j--;\n }\n }\n if (coords[2 * left + inc] === t) {\n swapItem(ids, coords, left, j);\n } else {\n j++;\n swapItem(ids, coords, j, right);\n }\n if (j <= k) {\n left = j + 1;\n }\n if (k <= j) {\n right = j - 1;\n }\n }\n}\nfunction swapItem(ids, coords, i, j) {\n swap(ids, i, j);\n swap(coords, 2 * i, 2 * j);\n swap(coords, 2 * i + 1, 2 * j + 1);\n}\nfunction swap(arr, i, j) {\n var tmp = arr[i];\n arr[i] = arr[j];\n arr[j] = tmp;\n}\n\nfunction range(ids, coords, minX, minY, maxX, maxY, nodeSize) {\n var stack = [\n 0,\n ids.length - 1,\n 0\n ];\n var result = [];\n var x, y;\n while (stack.length) {\n var axis = stack.pop();\n var right = stack.pop();\n var left = stack.pop();\n if (right - left <= nodeSize) {\n for (var i = left; i <= right; i++) {\n x = coords[2 * i];\n y = coords[2 * i + 1];\n if (x >= minX && x <= maxX && y >= minY && y <= maxY) {\n result.push(ids[i]);\n }\n }\n continue;\n }\n var m = Math.floor((left + right) / 2);\n x = coords[2 * m];\n y = coords[2 * m + 1];\n if (x >= minX && x <= maxX && y >= minY && y <= maxY) {\n result.push(ids[m]);\n }\n var nextAxis = (axis + 1) % 2;\n if (axis === 0 ? minX <= x : minY <= y) {\n stack.push(left);\n stack.push(m - 1);\n stack.push(nextAxis);\n }\n if (axis === 0 ? maxX >= x : maxY >= y) {\n stack.push(m + 1);\n stack.push(right);\n stack.push(nextAxis);\n }\n }\n return result;\n}\n\nfunction within(ids, coords, qx, qy, r, nodeSize) {\n var stack = [\n 0,\n ids.length - 1,\n 0\n ];\n var result = [];\n var r2 = r * r;\n while (stack.length) {\n var axis = stack.pop();\n var right = stack.pop();\n var left = stack.pop();\n if (right - left <= nodeSize) {\n for (var i = left; i <= right; i++) {\n if (sqDist(coords[2 * i], coords[2 * i + 1], qx, qy) <= r2) {\n result.push(ids[i]);\n }\n }\n continue;\n }\n var m = Math.floor((left + right) / 2);\n var x = coords[2 * m];\n var y = coords[2 * m + 1];\n if (sqDist(x, y, qx, qy) <= r2) {\n result.push(ids[m]);\n }\n var nextAxis = (axis + 1) % 2;\n if (axis === 0 ? qx - r <= x : qy - r <= y) {\n stack.push(left);\n stack.push(m - 1);\n stack.push(nextAxis);\n }\n if (axis === 0 ? qx + r >= x : qy + r >= y) {\n stack.push(m + 1);\n stack.push(right);\n stack.push(nextAxis);\n }\n }\n return result;\n}\nfunction sqDist(ax, ay, bx, by) {\n var dx = ax - bx;\n var dy = ay - by;\n return dx * dx + dy * dy;\n}\n\nvar defaultGetX = function (p) {\n return p[0];\n};\nvar defaultGetY = function (p) {\n return p[1];\n};\nvar KDBush = function KDBush(points, getX, getY, nodeSize, ArrayType) {\n if (getX === void 0)\n getX = defaultGetX;\n if (getY === void 0)\n getY = defaultGetY;\n if (nodeSize === void 0)\n nodeSize = 64;\n if (ArrayType === void 0)\n ArrayType = Float64Array;\n this.nodeSize = nodeSize;\n this.points = points;\n var IndexArrayType = points.length < 65536 ? Uint16Array : Uint32Array;\n var ids = this.ids = new IndexArrayType(points.length);\n var coords = this.coords = new ArrayType(points.length * 2);\n for (var i = 0; i < points.length; i++) {\n ids[i] = i;\n coords[2 * i] = getX(points[i]);\n coords[2 * i + 1] = getY(points[i]);\n }\n sortKD(ids, coords, nodeSize, 0, ids.length - 1, 0);\n};\nKDBush.prototype.range = function range$1(minX, minY, maxX, maxY) {\n return range(this.ids, this.coords, minX, minY, maxX, maxY, this.nodeSize);\n};\nKDBush.prototype.within = function within$1(x, y, r) {\n return within(this.ids, this.coords, x, y, r, this.nodeSize);\n};\n\nvar defaultOptions = {\n minZoom: 0,\n maxZoom: 16,\n radius: 40,\n extent: 512,\n nodeSize: 64,\n log: false,\n generateId: false,\n reduce: null,\n map: function (props) {\n return props;\n }\n};\nvar Supercluster = function Supercluster(options) {\n this.options = extend(Object.create(defaultOptions), options);\n this.trees = new Array(this.options.maxZoom + 1);\n};\nSupercluster.prototype.load = function load(points) {\n var ref = this.options;\n var log = ref.log;\n var minZoom = ref.minZoom;\n var maxZoom = ref.maxZoom;\n var nodeSize = ref.nodeSize;\n if (log) {\n console.time('total time');\n }\n var timerId = 'prepare ' + points.length + ' points';\n if (log) {\n console.time(timerId);\n }\n this.points = points;\n var clusters = [];\n for (var i = 0; i < points.length; i++) {\n if (!points[i].geometry) {\n continue;\n }\n clusters.push(createPointCluster(points[i], i));\n }\n this.trees[maxZoom + 1] = new KDBush(clusters, getX, getY, nodeSize, Float32Array);\n if (log) {\n console.timeEnd(timerId);\n }\n for (var z = maxZoom; z >= minZoom; z--) {\n var now = +Date.now();\n clusters = this._cluster(clusters, z);\n this.trees[z] = new KDBush(clusters, getX, getY, nodeSize, Float32Array);\n if (log) {\n console.log('z%d: %d clusters in %dms', z, clusters.length, +Date.now() - now);\n }\n }\n if (log) {\n console.timeEnd('total time');\n }\n return this;\n};\nSupercluster.prototype.getClusters = function getClusters(bbox, zoom) {\n var minLng = ((bbox[0] + 180) % 360 + 360) % 360 - 180;\n var minLat = Math.max(-90, Math.min(90, bbox[1]));\n var maxLng = bbox[2] === 180 ? 180 : ((bbox[2] + 180) % 360 + 360) % 360 - 180;\n var maxLat = Math.max(-90, Math.min(90, bbox[3]));\n if (bbox[2] - bbox[0] >= 360) {\n minLng = -180;\n maxLng = 180;\n } else if (minLng > maxLng) {\n var easternHem = this.getClusters([\n minLng,\n minLat,\n 180,\n maxLat\n ], zoom);\n var westernHem = this.getClusters([\n -180,\n minLat,\n maxLng,\n maxLat\n ], zoom);\n return easternHem.concat(westernHem);\n }\n var tree = this.trees[this._limitZoom(zoom)];\n var ids = tree.range(lngX(minLng), latY(maxLat), lngX(maxLng), latY(minLat));\n var clusters = [];\n for (var i = 0, list = ids; i < list.length; i += 1) {\n var id = list[i];\n var c = tree.points[id];\n clusters.push(c.numPoints ? getClusterJSON(c) : this.points[c.index]);\n }\n return clusters;\n};\nSupercluster.prototype.getChildren = function getChildren(clusterId) {\n var originId = this._getOriginId(clusterId);\n var originZoom = this._getOriginZoom(clusterId);\n var errorMsg = 'No cluster with the specified id.';\n var index = this.trees[originZoom];\n if (!index) {\n throw new Error(errorMsg);\n }\n var origin = index.points[originId];\n if (!origin) {\n throw new Error(errorMsg);\n }\n var r = this.options.radius / (this.options.extent * Math.pow(2, originZoom - 1));\n var ids = index.within(origin.x, origin.y, r);\n var children = [];\n for (var i = 0, list = ids; i < list.length; i += 1) {\n var id = list[i];\n var c = index.points[id];\n if (c.parentId === clusterId) {\n children.push(c.numPoints ? getClusterJSON(c) : this.points[c.index]);\n }\n }\n if (children.length === 0) {\n throw new Error(errorMsg);\n }\n return children;\n};\nSupercluster.prototype.getLeaves = function getLeaves(clusterId, limit, offset) {\n limit = limit || 10;\n offset = offset || 0;\n var leaves = [];\n this._appendLeaves(leaves, clusterId, limit, offset, 0);\n return leaves;\n};\nSupercluster.prototype.getTile = function getTile(z, x, y) {\n var tree = this.trees[this._limitZoom(z)];\n var z2 = Math.pow(2, z);\n var ref = this.options;\n var extent = ref.extent;\n var radius = ref.radius;\n var p = radius / extent;\n var top = (y - p) / z2;\n var bottom = (y + 1 + p) / z2;\n var tile = { features: [] };\n this._addTileFeatures(tree.range((x - p) / z2, top, (x + 1 + p) / z2, bottom), tree.points, x, y, z2, tile);\n if (x === 0) {\n this._addTileFeatures(tree.range(1 - p / z2, top, 1, bottom), tree.points, z2, y, z2, tile);\n }\n if (x === z2 - 1) {\n this._addTileFeatures(tree.range(0, top, p / z2, bottom), tree.points, -1, y, z2, tile);\n }\n return tile.features.length ? tile : null;\n};\nSupercluster.prototype.getClusterExpansionZoom = function getClusterExpansionZoom(clusterId) {\n var expansionZoom = this._getOriginZoom(clusterId) - 1;\n while (expansionZoom <= this.options.maxZoom) {\n var children = this.getChildren(clusterId);\n expansionZoom++;\n if (children.length !== 1) {\n break;\n }\n clusterId = children[0].properties.cluster_id;\n }\n return expansionZoom;\n};\nSupercluster.prototype._appendLeaves = function _appendLeaves(result, clusterId, limit, offset, skipped) {\n var children = this.getChildren(clusterId);\n for (var i = 0, list = children; i < list.length; i += 1) {\n var child = list[i];\n var props = child.properties;\n if (props && props.cluster) {\n if (skipped + props.point_count <= offset) {\n skipped += props.point_count;\n } else {\n skipped = this._appendLeaves(result, props.cluster_id, limit, offset, skipped);\n }\n } else if (skipped < offset) {\n skipped++;\n } else {\n result.push(child);\n }\n if (result.length === limit) {\n break;\n }\n }\n return skipped;\n};\nSupercluster.prototype._addTileFeatures = function _addTileFeatures(ids, points, x, y, z2, tile) {\n for (var i$1 = 0, list = ids; i$1 < list.length; i$1 += 1) {\n var i = list[i$1];\n var c = points[i];\n var isCluster = c.numPoints;\n var f = {\n type: 1,\n geometry: [[\n Math.round(this.options.extent * (c.x * z2 - x)),\n Math.round(this.options.extent * (c.y * z2 - y))\n ]],\n tags: isCluster ? getClusterProperties(c) : this.points[c.index].properties\n };\n var id = void 0;\n if (isCluster) {\n id = c.id;\n } else if (this.options.generateId) {\n id = c.index;\n } else if (this.points[c.index].id) {\n id = this.points[c.index].id;\n }\n if (id !== undefined) {\n f.id = id;\n }\n tile.features.push(f);\n }\n};\nSupercluster.prototype._limitZoom = function _limitZoom(z) {\n return Math.max(this.options.minZoom, Math.min(z, this.options.maxZoom + 1));\n};\nSupercluster.prototype._cluster = function _cluster(points, zoom) {\n var clusters = [];\n var ref = this.options;\n var radius = ref.radius;\n var extent = ref.extent;\n var reduce = ref.reduce;\n var r = radius / (extent * Math.pow(2, zoom));\n for (var i = 0; i < points.length; i++) {\n var p = points[i];\n if (p.zoom <= zoom) {\n continue;\n }\n p.zoom = zoom;\n var tree = this.trees[zoom + 1];\n var neighborIds = tree.within(p.x, p.y, r);\n var numPoints = p.numPoints || 1;\n var wx = p.x * numPoints;\n var wy = p.y * numPoints;\n var clusterProperties = reduce && numPoints > 1 ? this._map(p, true) : null;\n var id = (i << 5) + (zoom + 1) + this.points.length;\n for (var i$1 = 0, list = neighborIds; i$1 < list.length; i$1 += 1) {\n var neighborId = list[i$1];\n var b = tree.points[neighborId];\n if (b.zoom <= zoom) {\n continue;\n }\n b.zoom = zoom;\n var numPoints2 = b.numPoints || 1;\n wx += b.x * numPoints2;\n wy += b.y * numPoints2;\n numPoints += numPoints2;\n b.parentId = id;\n if (reduce) {\n if (!clusterProperties) {\n clusterProperties = this._map(p, true);\n }\n reduce(clusterProperties, this._map(b));\n }\n }\n if (numPoints === 1) {\n clusters.push(p);\n } else {\n p.parentId = id;\n clusters.push(createCluster(wx / numPoints, wy / numPoints, id, numPoints, clusterProperties));\n }\n }\n return clusters;\n};\nSupercluster.prototype._getOriginId = function _getOriginId(clusterId) {\n return clusterId - this.points.length >> 5;\n};\nSupercluster.prototype._getOriginZoom = function _getOriginZoom(clusterId) {\n return (clusterId - this.points.length) % 32;\n};\nSupercluster.prototype._map = function _map(point, clone) {\n if (point.numPoints) {\n return clone ? extend({}, point.properties) : point.properties;\n }\n var original = this.points[point.index].properties;\n var result = this.options.map(original);\n return clone && result === original ? extend({}, result) : result;\n};\nfunction createCluster(x, y, id, numPoints, properties) {\n return {\n x: x,\n y: y,\n zoom: Infinity,\n id: id,\n parentId: -1,\n numPoints: numPoints,\n properties: properties\n };\n}\nfunction createPointCluster(p, id) {\n var ref = p.geometry.coordinates;\n var x = ref[0];\n var y = ref[1];\n return {\n x: lngX(x),\n y: latY(y),\n zoom: Infinity,\n index: id,\n parentId: -1\n };\n}\nfunction getClusterJSON(cluster) {\n return {\n type: 'Feature',\n id: cluster.id,\n properties: getClusterProperties(cluster),\n geometry: {\n type: 'Point',\n coordinates: [\n xLng(cluster.x),\n yLat(cluster.y)\n ]\n }\n };\n}\nfunction getClusterProperties(cluster) {\n var count = cluster.numPoints;\n var abbrev = count >= 10000 ? Math.round(count / 1000) + 'k' : count >= 1000 ? Math.round(count / 100) / 10 + 'k' : count;\n return extend(extend({}, cluster.properties), {\n cluster: true,\n cluster_id: cluster.id,\n point_count: count,\n point_count_abbreviated: abbrev\n });\n}\nfunction lngX(lng) {\n return lng / 360 + 0.5;\n}\nfunction latY(lat) {\n var sin = Math.sin(lat * Math.PI / 180);\n var y = 0.5 - 0.25 * Math.log((1 + sin) / (1 - sin)) / Math.PI;\n return y < 0 ? 0 : y > 1 ? 1 : y;\n}\nfunction xLng(x) {\n return (x - 0.5) * 360;\n}\nfunction yLat(y) {\n var y2 = (180 - y * 360) * Math.PI / 180;\n return 360 * Math.atan(Math.exp(y2)) / Math.PI - 90;\n}\nfunction extend(dest, src) {\n for (var id in src) {\n dest[id] = src[id];\n }\n return dest;\n}\nfunction getX(p) {\n return p.x;\n}\nfunction getY(p) {\n return p.y;\n}\n\nfunction simplify(coords, first, last, sqTolerance) {\n var maxSqDist = sqTolerance;\n var mid = last - first >> 1;\n var minPosToMid = last - first;\n var index;\n var ax = coords[first];\n var ay = coords[first + 1];\n var bx = coords[last];\n var by = coords[last + 1];\n for (var i = first + 3; i < last; i += 3) {\n var d = getSqSegDist(coords[i], coords[i + 1], ax, ay, bx, by);\n if (d > maxSqDist) {\n index = i;\n maxSqDist = d;\n } else if (d === maxSqDist) {\n var posToMid = Math.abs(i - mid);\n if (posToMid < minPosToMid) {\n index = i;\n minPosToMid = posToMid;\n }\n }\n }\n if (maxSqDist > sqTolerance) {\n if (index - first > 3) {\n simplify(coords, first, index, sqTolerance);\n }\n coords[index + 2] = maxSqDist;\n if (last - index > 3) {\n simplify(coords, index, last, sqTolerance);\n }\n }\n}\nfunction getSqSegDist(px, py, x, y, bx, by) {\n var dx = bx - x;\n var dy = by - y;\n if (dx !== 0 || dy !== 0) {\n var t = ((px - x) * dx + (py - y) * dy) / (dx * dx + dy * dy);\n if (t > 1) {\n x = bx;\n y = by;\n } else if (t > 0) {\n x += dx * t;\n y += dy * t;\n }\n }\n dx = px - x;\n dy = py - y;\n return dx * dx + dy * dy;\n}\n\nfunction createFeature(id, type, geom, tags) {\n var feature = {\n id: typeof id === 'undefined' ? null : id,\n type: type,\n geometry: geom,\n tags: tags,\n minX: Infinity,\n minY: Infinity,\n maxX: -Infinity,\n maxY: -Infinity\n };\n calcBBox(feature);\n return feature;\n}\nfunction calcBBox(feature) {\n var geom = feature.geometry;\n var type = feature.type;\n if (type === 'Point' || type === 'MultiPoint' || type === 'LineString') {\n calcLineBBox(feature, geom);\n } else if (type === 'Polygon' || type === 'MultiLineString') {\n for (var i = 0; i < geom.length; i++) {\n calcLineBBox(feature, geom[i]);\n }\n } else if (type === 'MultiPolygon') {\n for (i = 0; i < geom.length; i++) {\n for (var j = 0; j < geom[i].length; j++) {\n calcLineBBox(feature, geom[i][j]);\n }\n }\n }\n}\nfunction calcLineBBox(feature, geom) {\n for (var i = 0; i < geom.length; i += 3) {\n feature.minX = Math.min(feature.minX, geom[i]);\n feature.minY = Math.min(feature.minY, geom[i + 1]);\n feature.maxX = Math.max(feature.maxX, geom[i]);\n feature.maxY = Math.max(feature.maxY, geom[i + 1]);\n }\n}\n\nfunction convert(data, options) {\n var features = [];\n if (data.type === 'FeatureCollection') {\n for (var i = 0; i < data.features.length; i++) {\n convertFeature(features, data.features[i], options, i);\n }\n } else if (data.type === 'Feature') {\n convertFeature(features, data, options);\n } else {\n convertFeature(features, { geometry: data }, options);\n }\n return features;\n}\nfunction convertFeature(features, geojson, options, index) {\n if (!geojson.geometry) {\n return;\n }\n var coords = geojson.geometry.coordinates;\n var type = geojson.geometry.type;\n var tolerance = Math.pow(options.tolerance / ((1 << options.maxZoom) * options.extent), 2);\n var geometry = [];\n var id = geojson.id;\n if (options.promoteId) {\n id = geojson.properties[options.promoteId];\n } else if (options.generateId) {\n id = index || 0;\n }\n if (type === 'Point') {\n convertPoint(coords, geometry);\n } else if (type === 'MultiPoint') {\n for (var i = 0; i < coords.length; i++) {\n convertPoint(coords[i], geometry);\n }\n } else if (type === 'LineString') {\n convertLine(coords, geometry, tolerance, false);\n } else if (type === 'MultiLineString') {\n if (options.lineMetrics) {\n for (i = 0; i < coords.length; i++) {\n geometry = [];\n convertLine(coords[i], geometry, tolerance, false);\n features.push(createFeature(id, 'LineString', geometry, geojson.properties));\n }\n return;\n } else {\n convertLines(coords, geometry, tolerance, false);\n }\n } else if (type === 'Polygon') {\n convertLines(coords, geometry, tolerance, true);\n } else if (type === 'MultiPolygon') {\n for (i = 0; i < coords.length; i++) {\n var polygon = [];\n convertLines(coords[i], polygon, tolerance, true);\n geometry.push(polygon);\n }\n } else if (type === 'GeometryCollection') {\n for (i = 0; i < geojson.geometry.geometries.length; i++) {\n convertFeature(features, {\n id: id,\n geometry: geojson.geometry.geometries[i],\n properties: geojson.properties\n }, options, index);\n }\n return;\n } else {\n throw new Error('Input data is not a valid GeoJSON object.');\n }\n features.push(createFeature(id, type, geometry, geojson.properties));\n}\nfunction convertPoint(coords, out) {\n out.push(projectX(coords[0]));\n out.push(projectY(coords[1]));\n out.push(0);\n}\nfunction convertLine(ring, out, tolerance, isPolygon) {\n var x0, y0;\n var size = 0;\n for (var j = 0; j < ring.length; j++) {\n var x = projectX(ring[j][0]);\n var y = projectY(ring[j][1]);\n out.push(x);\n out.push(y);\n out.push(0);\n if (j > 0) {\n if (isPolygon) {\n size += (x0 * y - x * y0) / 2;\n } else {\n size += Math.sqrt(Math.pow(x - x0, 2) + Math.pow(y - y0, 2));\n }\n }\n x0 = x;\n y0 = y;\n }\n var last = out.length - 3;\n out[2] = 1;\n simplify(out, 0, last, tolerance);\n out[last + 2] = 1;\n out.size = Math.abs(size);\n out.start = 0;\n out.end = out.size;\n}\nfunction convertLines(rings, out, tolerance, isPolygon) {\n for (var i = 0; i < rings.length; i++) {\n var geom = [];\n convertLine(rings[i], geom, tolerance, isPolygon);\n out.push(geom);\n }\n}\nfunction projectX(x) {\n return x / 360 + 0.5;\n}\nfunction projectY(y) {\n var sin = Math.sin(y * Math.PI / 180);\n var y2 = 0.5 - 0.25 * Math.log((1 + sin) / (1 - sin)) / Math.PI;\n return y2 < 0 ? 0 : y2 > 1 ? 1 : y2;\n}\n\nfunction clip(features, scale, k1, k2, axis, minAll, maxAll, options) {\n k1 /= scale;\n k2 /= scale;\n if (minAll >= k1 && maxAll < k2) {\n return features;\n } else if (maxAll < k1 || minAll >= k2) {\n return null;\n }\n var clipped = [];\n for (var i = 0; i < features.length; i++) {\n var feature = features[i];\n var geometry = feature.geometry;\n var type = feature.type;\n var min = axis === 0 ? feature.minX : feature.minY;\n var max = axis === 0 ? feature.maxX : feature.maxY;\n if (min >= k1 && max < k2) {\n clipped.push(feature);\n continue;\n } else if (max < k1 || min >= k2) {\n continue;\n }\n var newGeometry = [];\n if (type === 'Point' || type === 'MultiPoint') {\n clipPoints(geometry, newGeometry, k1, k2, axis);\n } else if (type === 'LineString') {\n clipLine(geometry, newGeometry, k1, k2, axis, false, options.lineMetrics);\n } else if (type === 'MultiLineString') {\n clipLines(geometry, newGeometry, k1, k2, axis, false);\n } else if (type === 'Polygon') {\n clipLines(geometry, newGeometry, k1, k2, axis, true);\n } else if (type === 'MultiPolygon') {\n for (var j = 0; j < geometry.length; j++) {\n var polygon = [];\n clipLines(geometry[j], polygon, k1, k2, axis, true);\n if (polygon.length) {\n newGeometry.push(polygon);\n }\n }\n }\n if (newGeometry.length) {\n if (options.lineMetrics && type === 'LineString') {\n for (j = 0; j < newGeometry.length; j++) {\n clipped.push(createFeature(feature.id, type, newGeometry[j], feature.tags));\n }\n continue;\n }\n if (type === 'LineString' || type === 'MultiLineString') {\n if (newGeometry.length === 1) {\n type = 'LineString';\n newGeometry = newGeometry[0];\n } else {\n type = 'MultiLineString';\n }\n }\n if (type === 'Point' || type === 'MultiPoint') {\n type = newGeometry.length === 3 ? 'Point' : 'MultiPoint';\n }\n clipped.push(createFeature(feature.id, type, newGeometry, feature.tags));\n }\n }\n return clipped.length ? clipped : null;\n}\nfunction clipPoints(geom, newGeom, k1, k2, axis) {\n for (var i = 0; i < geom.length; i += 3) {\n var a = geom[i + axis];\n if (a >= k1 && a <= k2) {\n newGeom.push(geom[i]);\n newGeom.push(geom[i + 1]);\n newGeom.push(geom[i + 2]);\n }\n }\n}\nfunction clipLine(geom, newGeom, k1, k2, axis, isPolygon, trackMetrics) {\n var slice = newSlice(geom);\n var intersect = axis === 0 ? intersectX : intersectY;\n var len = geom.start;\n var segLen, t;\n for (var i = 0; i < geom.length - 3; i += 3) {\n var ax = geom[i];\n var ay = geom[i + 1];\n var az = geom[i + 2];\n var bx = geom[i + 3];\n var by = geom[i + 4];\n var a = axis === 0 ? ax : ay;\n var b = axis === 0 ? bx : by;\n var exited = false;\n if (trackMetrics) {\n segLen = Math.sqrt(Math.pow(ax - bx, 2) + Math.pow(ay - by, 2));\n }\n if (a < k1) {\n if (b > k1) {\n t = intersect(slice, ax, ay, bx, by, k1);\n if (trackMetrics) {\n slice.start = len + segLen * t;\n }\n }\n } else if (a > k2) {\n if (b < k2) {\n t = intersect(slice, ax, ay, bx, by, k2);\n if (trackMetrics) {\n slice.start = len + segLen * t;\n }\n }\n } else {\n addPoint(slice, ax, ay, az);\n }\n if (b < k1 && a >= k1) {\n t = intersect(slice, ax, ay, bx, by, k1);\n exited = true;\n }\n if (b > k2 && a <= k2) {\n t = intersect(slice, ax, ay, bx, by, k2);\n exited = true;\n }\n if (!isPolygon && exited) {\n if (trackMetrics) {\n slice.end = len + segLen * t;\n }\n newGeom.push(slice);\n slice = newSlice(geom);\n }\n if (trackMetrics) {\n len += segLen;\n }\n }\n var last = geom.length - 3;\n ax = geom[last];\n ay = geom[last + 1];\n az = geom[last + 2];\n a = axis === 0 ? ax : ay;\n if (a >= k1 && a <= k2) {\n addPoint(slice, ax, ay, az);\n }\n last = slice.length - 3;\n if (isPolygon && last >= 3 && (slice[last] !== slice[0] || slice[last + 1] !== slice[1])) {\n addPoint(slice, slice[0], slice[1], slice[2]);\n }\n if (slice.length) {\n newGeom.push(slice);\n }\n}\nfunction newSlice(line) {\n var slice = [];\n slice.size = line.size;\n slice.start = line.start;\n slice.end = line.end;\n return slice;\n}\nfunction clipLines(geom, newGeom, k1, k2, axis, isPolygon) {\n for (var i = 0; i < geom.length; i++) {\n clipLine(geom[i], newGeom, k1, k2, axis, isPolygon, false);\n }\n}\nfunction addPoint(out, x, y, z) {\n out.push(x);\n out.push(y);\n out.push(z);\n}\nfunction intersectX(out, ax, ay, bx, by, x) {\n var t = (x - ax) / (bx - ax);\n out.push(x);\n out.push(ay + (by - ay) * t);\n out.push(1);\n return t;\n}\nfunction intersectY(out, ax, ay, bx, by, y) {\n var t = (y - ay) / (by - ay);\n out.push(ax + (bx - ax) * t);\n out.push(y);\n out.push(1);\n return t;\n}\n\nfunction wrap(features, options) {\n var buffer = options.buffer / options.extent;\n var merged = features;\n var left = clip(features, 1, -1 - buffer, buffer, 0, -1, 2, options);\n var right = clip(features, 1, 1 - buffer, 2 + buffer, 0, -1, 2, options);\n if (left || right) {\n merged = clip(features, 1, -buffer, 1 + buffer, 0, -1, 2, options) || [];\n if (left) {\n merged = shiftFeatureCoords(left, 1).concat(merged);\n }\n if (right) {\n merged = merged.concat(shiftFeatureCoords(right, -1));\n }\n }\n return merged;\n}\nfunction shiftFeatureCoords(features, offset) {\n var newFeatures = [];\n for (var i = 0; i < features.length; i++) {\n var feature = features[i], type = feature.type;\n var newGeometry;\n if (type === 'Point' || type === 'MultiPoint' || type === 'LineString') {\n newGeometry = shiftCoords(feature.geometry, offset);\n } else if (type === 'MultiLineString' || type === 'Polygon') {\n newGeometry = [];\n for (var j = 0; j < feature.geometry.length; j++) {\n newGeometry.push(shiftCoords(feature.geometry[j], offset));\n }\n } else if (type === 'MultiPolygon') {\n newGeometry = [];\n for (j = 0; j < feature.geometry.length; j++) {\n var newPolygon = [];\n for (var k = 0; k < feature.geometry[j].length; k++) {\n newPolygon.push(shiftCoords(feature.geometry[j][k], offset));\n }\n newGeometry.push(newPolygon);\n }\n }\n newFeatures.push(createFeature(feature.id, type, newGeometry, feature.tags));\n }\n return newFeatures;\n}\nfunction shiftCoords(points, offset) {\n var newPoints = [];\n newPoints.size = points.size;\n if (points.start !== undefined) {\n newPoints.start = points.start;\n newPoints.end = points.end;\n }\n for (var i = 0; i < points.length; i += 3) {\n newPoints.push(points[i] + offset, points[i + 1], points[i + 2]);\n }\n return newPoints;\n}\n\nfunction transformTile(tile, extent) {\n if (tile.transformed) {\n return tile;\n }\n var z2 = 1 << tile.z, tx = tile.x, ty = tile.y, i, j, k;\n for (i = 0; i < tile.features.length; i++) {\n var feature = tile.features[i], geom = feature.geometry, type = feature.type;\n feature.geometry = [];\n if (type === 1) {\n for (j = 0; j < geom.length; j += 2) {\n feature.geometry.push(transformPoint(geom[j], geom[j + 1], extent, z2, tx, ty));\n }\n } else {\n for (j = 0; j < geom.length; j++) {\n var ring = [];\n for (k = 0; k < geom[j].length; k += 2) {\n ring.push(transformPoint(geom[j][k], geom[j][k + 1], extent, z2, tx, ty));\n }\n feature.geometry.push(ring);\n }\n }\n }\n tile.transformed = true;\n return tile;\n}\nfunction transformPoint(x, y, extent, z2, tx, ty) {\n return [\n Math.round(extent * (x * z2 - tx)),\n Math.round(extent * (y * z2 - ty))\n ];\n}\n\nfunction createTile(features, z, tx, ty, options) {\n var tolerance = z === options.maxZoom ? 0 : options.tolerance / ((1 << z) * options.extent);\n var tile = {\n features: [],\n numPoints: 0,\n numSimplified: 0,\n numFeatures: 0,\n source: null,\n x: tx,\n y: ty,\n z: z,\n transformed: false,\n minX: 2,\n minY: 1,\n maxX: -1,\n maxY: 0\n };\n for (var i = 0; i < features.length; i++) {\n tile.numFeatures++;\n addFeature(tile, features[i], tolerance, options);\n var minX = features[i].minX;\n var minY = features[i].minY;\n var maxX = features[i].maxX;\n var maxY = features[i].maxY;\n if (minX < tile.minX) {\n tile.minX = minX;\n }\n if (minY < tile.minY) {\n tile.minY = minY;\n }\n if (maxX > tile.maxX) {\n tile.maxX = maxX;\n }\n if (maxY > tile.maxY) {\n tile.maxY = maxY;\n }\n }\n return tile;\n}\nfunction addFeature(tile, feature, tolerance, options) {\n var geom = feature.geometry, type = feature.type, simplified = [];\n if (type === 'Point' || type === 'MultiPoint') {\n for (var i = 0; i < geom.length; i += 3) {\n simplified.push(geom[i]);\n simplified.push(geom[i + 1]);\n tile.numPoints++;\n tile.numSimplified++;\n }\n } else if (type === 'LineString') {\n addLine(simplified, geom, tile, tolerance, false, false);\n } else if (type === 'MultiLineString' || type === 'Polygon') {\n for (i = 0; i < geom.length; i++) {\n addLine(simplified, geom[i], tile, tolerance, type === 'Polygon', i === 0);\n }\n } else if (type === 'MultiPolygon') {\n for (var k = 0; k < geom.length; k++) {\n var polygon = geom[k];\n for (i = 0; i < polygon.length; i++) {\n addLine(simplified, polygon[i], tile, tolerance, true, i === 0);\n }\n }\n }\n if (simplified.length) {\n var tags = feature.tags || null;\n if (type === 'LineString' && options.lineMetrics) {\n tags = {};\n for (var key in feature.tags) {\n tags[key] = feature.tags[key];\n }\n tags['mapbox_clip_start'] = geom.start / geom.size;\n tags['mapbox_clip_end'] = geom.end / geom.size;\n }\n var tileFeature = {\n geometry: simplified,\n type: type === 'Polygon' || type === 'MultiPolygon' ? 3 : type === 'LineString' || type === 'MultiLineString' ? 2 : 1,\n tags: tags\n };\n if (feature.id !== null) {\n tileFeature.id = feature.id;\n }\n tile.features.push(tileFeature);\n }\n}\nfunction addLine(result, geom, tile, tolerance, isPolygon, isOuter) {\n var sqTolerance = tolerance * tolerance;\n if (tolerance > 0 && geom.size < (isPolygon ? sqTolerance : tolerance)) {\n tile.numPoints += geom.length / 3;\n return;\n }\n var ring = [];\n for (var i = 0; i < geom.length; i += 3) {\n if (tolerance === 0 || geom[i + 2] > sqTolerance) {\n tile.numSimplified++;\n ring.push(geom[i]);\n ring.push(geom[i + 1]);\n }\n tile.numPoints++;\n }\n if (isPolygon) {\n rewind$1(ring, isOuter);\n }\n result.push(ring);\n}\nfunction rewind$1(ring, clockwise) {\n var area = 0;\n for (var i = 0, len = ring.length, j = len - 2; i < len; j = i, i += 2) {\n area += (ring[i] - ring[j]) * (ring[i + 1] + ring[j + 1]);\n }\n if (area > 0 === clockwise) {\n for (i = 0, len = ring.length; i < len / 2; i += 2) {\n var x = ring[i];\n var y = ring[i + 1];\n ring[i] = ring[len - 2 - i];\n ring[i + 1] = ring[len - 1 - i];\n ring[len - 2 - i] = x;\n ring[len - 1 - i] = y;\n }\n }\n}\n\nfunction geojsonvt(data, options) {\n return new GeoJSONVT(data, options);\n}\nfunction GeoJSONVT(data, options) {\n options = this.options = extend$1(Object.create(this.options), options);\n var debug = options.debug;\n if (debug) {\n console.time('preprocess data');\n }\n if (options.maxZoom < 0 || options.maxZoom > 24) {\n throw new Error('maxZoom should be in the 0-24 range');\n }\n if (options.promoteId && options.generateId) {\n throw new Error('promoteId and generateId cannot be used together.');\n }\n var features = convert(data, options);\n this.tiles = {};\n this.tileCoords = [];\n if (debug) {\n console.timeEnd('preprocess data');\n console.log('index: maxZoom: %d, maxPoints: %d', options.indexMaxZoom, options.indexMaxPoints);\n console.time('generate tiles');\n this.stats = {};\n this.total = 0;\n }\n features = wrap(features, options);\n if (features.length) {\n this.splitTile(features, 0, 0, 0);\n }\n if (debug) {\n if (features.length) {\n console.log('features: %d, points: %d', this.tiles[0].numFeatures, this.tiles[0].numPoints);\n }\n console.timeEnd('generate tiles');\n console.log('tiles generated:', this.total, JSON.stringify(this.stats));\n }\n}\nGeoJSONVT.prototype.options = {\n maxZoom: 14,\n indexMaxZoom: 5,\n indexMaxPoints: 100000,\n tolerance: 3,\n extent: 4096,\n buffer: 64,\n lineMetrics: false,\n promoteId: null,\n generateId: false,\n debug: 0\n};\nGeoJSONVT.prototype.splitTile = function (features, z, x, y, cz, cx, cy) {\n var stack = [\n features,\n z,\n x,\n y\n ], options = this.options, debug = options.debug;\n while (stack.length) {\n y = stack.pop();\n x = stack.pop();\n z = stack.pop();\n features = stack.pop();\n var z2 = 1 << z, id = toID(z, x, y), tile = this.tiles[id];\n if (!tile) {\n if (debug > 1) {\n console.time('creation');\n }\n tile = this.tiles[id] = createTile(features, z, x, y, options);\n this.tileCoords.push({\n z: z,\n x: x,\n y: y\n });\n if (debug) {\n if (debug > 1) {\n console.log('tile z%d-%d-%d (features: %d, points: %d, simplified: %d)', z, x, y, tile.numFeatures, tile.numPoints, tile.numSimplified);\n console.timeEnd('creation');\n }\n var key = 'z' + z;\n this.stats[key] = (this.stats[key] || 0) + 1;\n this.total++;\n }\n }\n tile.source = features;\n if (!cz) {\n if (z === options.indexMaxZoom || tile.numPoints <= options.indexMaxPoints) {\n continue;\n }\n } else {\n if (z === options.maxZoom || z === cz) {\n continue;\n }\n var m = 1 << cz - z;\n if (x !== Math.floor(cx / m) || y !== Math.floor(cy / m)) {\n continue;\n }\n }\n tile.source = null;\n if (features.length === 0) {\n continue;\n }\n if (debug > 1) {\n console.time('clipping');\n }\n var k1 = 0.5 * options.buffer / options.extent, k2 = 0.5 - k1, k3 = 0.5 + k1, k4 = 1 + k1, tl, bl, tr, br, left, right;\n tl = bl = tr = br = null;\n left = clip(features, z2, x - k1, x + k3, 0, tile.minX, tile.maxX, options);\n right = clip(features, z2, x + k2, x + k4, 0, tile.minX, tile.maxX, options);\n features = null;\n if (left) {\n tl = clip(left, z2, y - k1, y + k3, 1, tile.minY, tile.maxY, options);\n bl = clip(left, z2, y + k2, y + k4, 1, tile.minY, tile.maxY, options);\n left = null;\n }\n if (right) {\n tr = clip(right, z2, y - k1, y + k3, 1, tile.minY, tile.maxY, options);\n br = clip(right, z2, y + k2, y + k4, 1, tile.minY, tile.maxY, options);\n right = null;\n }\n if (debug > 1) {\n console.timeEnd('clipping');\n }\n stack.push(tl || [], z + 1, x * 2, y * 2);\n stack.push(bl || [], z + 1, x * 2, y * 2 + 1);\n stack.push(tr || [], z + 1, x * 2 + 1, y * 2);\n stack.push(br || [], z + 1, x * 2 + 1, y * 2 + 1);\n }\n};\nGeoJSONVT.prototype.getTile = function (z, x, y) {\n var options = this.options, extent = options.extent, debug = options.debug;\n if (z < 0 || z > 24) {\n return null;\n }\n var z2 = 1 << z;\n x = (x % z2 + z2) % z2;\n var id = toID(z, x, y);\n if (this.tiles[id]) {\n return transformTile(this.tiles[id], extent);\n }\n if (debug > 1) {\n console.log('drilling down to z%d-%d-%d', z, x, y);\n }\n var z0 = z, x0 = x, y0 = y, parent;\n while (!parent && z0 > 0) {\n z0--;\n x0 = Math.floor(x0 / 2);\n y0 = Math.floor(y0 / 2);\n parent = this.tiles[toID(z0, x0, y0)];\n }\n if (!parent || !parent.source) {\n return null;\n }\n if (debug > 1) {\n console.log('found parent tile z%d-%d-%d', z0, x0, y0);\n }\n if (debug > 1) {\n console.time('drilling down');\n }\n this.splitTile(parent.source, z0, x0, y0, z, x, y);\n if (debug > 1) {\n console.timeEnd('drilling down');\n }\n return this.tiles[id] ? transformTile(this.tiles[id], extent) : null;\n};\nfunction toID(z, x, y) {\n return ((1 << z) * y + x) * 32 + z;\n}\nfunction extend$1(dest, src) {\n for (var i in src) {\n dest[i] = src[i];\n }\n return dest;\n}\n\nfunction loadGeoJSONTile(params, callback) {\n var canonical = params.tileID.canonical;\n if (!this._geoJSONIndex) {\n return callback(null, null);\n }\n var geoJSONTile = this._geoJSONIndex.getTile(canonical.z, canonical.x, canonical.y);\n if (!geoJSONTile) {\n return callback(null, null);\n }\n var geojsonWrapper = new GeoJSONWrapper(geoJSONTile.features);\n var pbf = vtPbf(geojsonWrapper);\n if (pbf.byteOffset !== 0 || pbf.byteLength !== pbf.buffer.byteLength) {\n pbf = new Uint8Array(pbf);\n }\n callback(null, {\n vectorTile: geojsonWrapper,\n rawData: pbf.buffer\n });\n}\nvar GeoJSONWorkerSource = function (VectorTileWorkerSource) {\n function GeoJSONWorkerSource(actor, layerIndex, availableImages, loadGeoJSON) {\n VectorTileWorkerSource.call(this, actor, layerIndex, availableImages, loadGeoJSONTile);\n if (loadGeoJSON) {\n this.loadGeoJSON = loadGeoJSON;\n }\n }\n if (VectorTileWorkerSource)\n GeoJSONWorkerSource.__proto__ = VectorTileWorkerSource;\n GeoJSONWorkerSource.prototype = Object.create(VectorTileWorkerSource && VectorTileWorkerSource.prototype);\n GeoJSONWorkerSource.prototype.constructor = GeoJSONWorkerSource;\n GeoJSONWorkerSource.prototype.loadData = function loadData(params, callback) {\n if (this._pendingCallback) {\n this._pendingCallback(null, { abandoned: true });\n }\n this._pendingCallback = callback;\n this._pendingLoadDataParams = params;\n if (this._state && this._state !== 'Idle') {\n this._state = 'NeedsLoadData';\n } else {\n this._state = 'Coalescing';\n this._loadData();\n }\n };\n GeoJSONWorkerSource.prototype._loadData = function _loadData() {\n var this$1 = this;\n if (!this._pendingCallback || !this._pendingLoadDataParams) {\n return;\n }\n var callback = this._pendingCallback;\n var params = this._pendingLoadDataParams;\n delete this._pendingCallback;\n delete this._pendingLoadDataParams;\n var perf = params && params.request && params.request.collectResourceTiming ? new performance$1.RequestPerformance(params.request) : false;\n this.loadGeoJSON(params, function (err, data) {\n if (err || !data) {\n return callback(err);\n } else if (typeof data !== 'object') {\n return callback(new Error('Input data given to \\'' + params.source + '\\' is not a valid GeoJSON object.'));\n } else {\n geojsonRewind(data, true);\n try {\n this$1._geoJSONIndex = params.cluster ? new Supercluster(getSuperclusterOptions(params)).load(data.features) : geojsonvt(data, params.geojsonVtOptions);\n } catch (err) {\n return callback(err);\n }\n this$1.loaded = {};\n var result = {};\n if (perf) {\n var resourceTimingData = perf.finish();\n if (resourceTimingData) {\n result.resourceTiming = {};\n result.resourceTiming[params.source] = JSON.parse(JSON.stringify(resourceTimingData));\n }\n }\n callback(null, result);\n }\n });\n };\n GeoJSONWorkerSource.prototype.coalesce = function coalesce() {\n if (this._state === 'Coalescing') {\n this._state = 'Idle';\n } else if (this._state === 'NeedsLoadData') {\n this._state = 'Coalescing';\n this._loadData();\n }\n };\n GeoJSONWorkerSource.prototype.reloadTile = function reloadTile(params, callback) {\n var loaded = this.loaded, uid = params.uid;\n if (loaded && loaded[uid]) {\n return VectorTileWorkerSource.prototype.reloadTile.call(this, params, callback);\n } else {\n return this.loadTile(params, callback);\n }\n };\n GeoJSONWorkerSource.prototype.loadGeoJSON = function loadGeoJSON(params, callback) {\n if (params.request) {\n performance$1.getJSON(params.request, callback);\n } else if (typeof params.data === 'string') {\n try {\n return callback(null, JSON.parse(params.data));\n } catch (e) {\n return callback(new Error('Input data given to \\'' + params.source + '\\' is not a valid GeoJSON object.'));\n }\n } else {\n return callback(new Error('Input data given to \\'' + params.source + '\\' is not a valid GeoJSON object.'));\n }\n };\n GeoJSONWorkerSource.prototype.removeSource = function removeSource(params, callback) {\n if (this._pendingCallback) {\n this._pendingCallback(null, { abandoned: true });\n }\n callback();\n };\n GeoJSONWorkerSource.prototype.getClusterExpansionZoom = function getClusterExpansionZoom(params, callback) {\n try {\n callback(null, this._geoJSONIndex.getClusterExpansionZoom(params.clusterId));\n } catch (e) {\n callback(e);\n }\n };\n GeoJSONWorkerSource.prototype.getClusterChildren = function getClusterChildren(params, callback) {\n try {\n callback(null, this._geoJSONIndex.getChildren(params.clusterId));\n } catch (e) {\n callback(e);\n }\n };\n GeoJSONWorkerSource.prototype.getClusterLeaves = function getClusterLeaves(params, callback) {\n try {\n callback(null, this._geoJSONIndex.getLeaves(params.clusterId, params.limit, params.offset));\n } catch (e) {\n callback(e);\n }\n };\n return GeoJSONWorkerSource;\n}(VectorTileWorkerSource);\nfunction getSuperclusterOptions(ref) {\n var superclusterOptions = ref.superclusterOptions;\n var clusterProperties = ref.clusterProperties;\n if (!clusterProperties || !superclusterOptions) {\n return superclusterOptions;\n }\n var mapExpressions = {};\n var reduceExpressions = {};\n var globals = {\n accumulated: null,\n zoom: 0\n };\n var feature = { properties: null };\n var propertyNames = Object.keys(clusterProperties);\n for (var i = 0, list = propertyNames; i < list.length; i += 1) {\n var key = list[i];\n var ref$1 = clusterProperties[key];\n var operator = ref$1[0];\n var mapExpression = ref$1[1];\n var mapExpressionParsed = performance$1.createExpression(mapExpression);\n var reduceExpressionParsed = performance$1.createExpression(typeof operator === 'string' ? [\n operator,\n ['accumulated'],\n [\n 'get',\n key\n ]\n ] : operator);\n mapExpressions[key] = mapExpressionParsed.value;\n reduceExpressions[key] = reduceExpressionParsed.value;\n }\n superclusterOptions.map = function (pointProperties) {\n feature.properties = pointProperties;\n var properties = {};\n for (var i = 0, list = propertyNames; i < list.length; i += 1) {\n var key = list[i];\n properties[key] = mapExpressions[key].evaluate(globals, feature);\n }\n return properties;\n };\n superclusterOptions.reduce = function (accumulated, clusterProperties) {\n feature.properties = clusterProperties;\n for (var i = 0, list = propertyNames; i < list.length; i += 1) {\n var key = list[i];\n globals.accumulated = accumulated[key];\n accumulated[key] = reduceExpressions[key].evaluate(globals, feature);\n }\n };\n return superclusterOptions;\n}\n\nvar Worker = function Worker(self) {\n var this$1 = this;\n this.self = self;\n this.actor = new performance$1.Actor(self, this);\n this.layerIndexes = {};\n this.availableImages = {};\n this.workerSourceTypes = {\n vector: VectorTileWorkerSource,\n geojson: GeoJSONWorkerSource\n };\n this.workerSources = {};\n this.demWorkerSources = {};\n this.self.registerWorkerSource = function (name, WorkerSource) {\n if (this$1.workerSourceTypes[name]) {\n throw new Error('Worker source with name \"' + name + '\" already registered.');\n }\n this$1.workerSourceTypes[name] = WorkerSource;\n };\n this.self.registerRTLTextPlugin = function (rtlTextPlugin) {\n if (performance$1.plugin.isParsed()) {\n throw new Error('RTL text plugin already registered.');\n }\n performance$1.plugin['applyArabicShaping'] = rtlTextPlugin.applyArabicShaping;\n performance$1.plugin['processBidirectionalText'] = rtlTextPlugin.processBidirectionalText;\n performance$1.plugin['processStyledBidirectionalText'] = rtlTextPlugin.processStyledBidirectionalText;\n };\n};\nWorker.prototype.setReferrer = function setReferrer(mapID, referrer) {\n this.referrer = referrer;\n};\nWorker.prototype.setImages = function setImages(mapId, images, callback) {\n this.availableImages[mapId] = images;\n for (var workerSource in this.workerSources[mapId]) {\n var ws = this.workerSources[mapId][workerSource];\n for (var source in ws) {\n ws[source].availableImages = images;\n }\n }\n callback();\n};\nWorker.prototype.setLayers = function setLayers(mapId, layers, callback) {\n this.getLayerIndex(mapId).replace(layers);\n callback();\n};\nWorker.prototype.updateLayers = function updateLayers(mapId, params, callback) {\n this.getLayerIndex(mapId).update(params.layers, params.removedIds);\n callback();\n};\nWorker.prototype.loadTile = function loadTile(mapId, params, callback) {\n this.getWorkerSource(mapId, params.type, params.source).loadTile(params, callback);\n};\nWorker.prototype.loadDEMTile = function loadDEMTile(mapId, params, callback) {\n this.getDEMWorkerSource(mapId, params.source).loadTile(params, callback);\n};\nWorker.prototype.reloadTile = function reloadTile(mapId, params, callback) {\n this.getWorkerSource(mapId, params.type, params.source).reloadTile(params, callback);\n};\nWorker.prototype.abortTile = function abortTile(mapId, params, callback) {\n this.getWorkerSource(mapId, params.type, params.source).abortTile(params, callback);\n};\nWorker.prototype.removeTile = function removeTile(mapId, params, callback) {\n this.getWorkerSource(mapId, params.type, params.source).removeTile(params, callback);\n};\nWorker.prototype.removeDEMTile = function removeDEMTile(mapId, params) {\n this.getDEMWorkerSource(mapId, params.source).removeTile(params);\n};\nWorker.prototype.removeSource = function removeSource(mapId, params, callback) {\n if (!this.workerSources[mapId] || !this.workerSources[mapId][params.type] || !this.workerSources[mapId][params.type][params.source]) {\n return;\n }\n var worker = this.workerSources[mapId][params.type][params.source];\n delete this.workerSources[mapId][params.type][params.source];\n if (worker.removeSource !== undefined) {\n worker.removeSource(params, callback);\n } else {\n callback();\n }\n};\nWorker.prototype.loadWorkerSource = function loadWorkerSource(map, params, callback) {\n try {\n this.self.importScripts(params.url);\n callback();\n } catch (e) {\n callback(e.toString());\n }\n};\nWorker.prototype.syncRTLPluginState = function syncRTLPluginState(map, state, callback) {\n try {\n performance$1.plugin.setState(state);\n var pluginURL = performance$1.plugin.getPluginURL();\n if (performance$1.plugin.isLoaded() && !performance$1.plugin.isParsed() && pluginURL != null) {\n this.self.importScripts(pluginURL);\n var complete = performance$1.plugin.isParsed();\n var error = complete ? undefined : new Error('RTL Text Plugin failed to import scripts from ' + pluginURL);\n callback(error, complete);\n }\n } catch (e) {\n callback(e.toString());\n }\n};\nWorker.prototype.getAvailableImages = function getAvailableImages(mapId) {\n var availableImages = this.availableImages[mapId];\n if (!availableImages) {\n availableImages = [];\n }\n return availableImages;\n};\nWorker.prototype.getLayerIndex = function getLayerIndex(mapId) {\n var layerIndexes = this.layerIndexes[mapId];\n if (!layerIndexes) {\n layerIndexes = this.layerIndexes[mapId] = new StyleLayerIndex();\n }\n return layerIndexes;\n};\nWorker.prototype.getWorkerSource = function getWorkerSource(mapId, type, source) {\n var this$1 = this;\n if (!this.workerSources[mapId]) {\n this.workerSources[mapId] = {};\n }\n if (!this.workerSources[mapId][type]) {\n this.workerSources[mapId][type] = {};\n }\n if (!this.workerSources[mapId][type][source]) {\n var actor = {\n send: function (type, data, callback) {\n this$1.actor.send(type, data, callback, mapId);\n }\n };\n this.workerSources[mapId][type][source] = new this.workerSourceTypes[type](actor, this.getLayerIndex(mapId), this.getAvailableImages(mapId));\n }\n return this.workerSources[mapId][type][source];\n};\nWorker.prototype.getDEMWorkerSource = function getDEMWorkerSource(mapId, source) {\n if (!this.demWorkerSources[mapId]) {\n this.demWorkerSources[mapId] = {};\n }\n if (!this.demWorkerSources[mapId][source]) {\n this.demWorkerSources[mapId][source] = new RasterDEMTileWorkerSource();\n }\n return this.demWorkerSources[mapId][source];\n};\nWorker.prototype.enforceCacheSizeLimit = function enforceCacheSizeLimit$1(mapId, limit) {\n performance$1.enforceCacheSizeLimit(limit);\n};\nif (typeof WorkerGlobalScope !== 'undefined' && typeof performance$1.window !== 'undefined' && performance$1.window instanceof WorkerGlobalScope) {\n performance$1.window.worker = new Worker(performance$1.window);\n}\n\nreturn Worker;\n\n});\n\ndefine(['./shared'], function (performance) { 'use strict';\n\nvar mapboxGlSupported = performance.createCommonjsModule(function (module) {\nif ( module.exports) {\n module.exports = isSupported;\n} else if (window) {\n window.mapboxgl = window.mapboxgl || {};\n window.mapboxgl.supported = isSupported;\n window.mapboxgl.notSupportedReason = notSupportedReason;\n}\nfunction isSupported(options) {\n return !notSupportedReason(options);\n}\nfunction notSupportedReason(options) {\n if (!isBrowser()) {\n return 'not a browser';\n }\n if (!isArraySupported()) {\n return 'insufficent Array support';\n }\n if (!isFunctionSupported()) {\n return 'insufficient Function support';\n }\n if (!isObjectSupported()) {\n return 'insufficient Object support';\n }\n if (!isJSONSupported()) {\n return 'insufficient JSON support';\n }\n if (!isWorkerSupported()) {\n return 'insufficient worker support';\n }\n if (!isUint8ClampedArraySupported()) {\n return 'insufficient Uint8ClampedArray support';\n }\n if (!isArrayBufferSupported()) {\n return 'insufficient ArrayBuffer support';\n }\n if (!isCanvasGetImageDataSupported()) {\n return 'insufficient Canvas/getImageData support';\n }\n if (!isWebGLSupportedCached(options && options.failIfMajorPerformanceCaveat)) {\n return 'insufficient WebGL support';\n }\n}\nfunction isBrowser() {\n return typeof window !== 'undefined' && typeof document !== 'undefined';\n}\nfunction isArraySupported() {\n return Array.prototype && Array.prototype.every && Array.prototype.filter && Array.prototype.forEach && Array.prototype.indexOf && Array.prototype.lastIndexOf && Array.prototype.map && Array.prototype.some && Array.prototype.reduce && Array.prototype.reduceRight && Array.isArray;\n}\nfunction isFunctionSupported() {\n return Function.prototype && Function.prototype.bind;\n}\nfunction isObjectSupported() {\n return Object.keys && Object.create && Object.getPrototypeOf && Object.getOwnPropertyNames && Object.isSealed && Object.isFrozen && Object.isExtensible && Object.getOwnPropertyDescriptor && Object.defineProperty && Object.defineProperties && Object.seal && Object.freeze && Object.preventExtensions;\n}\nfunction isJSONSupported() {\n return 'JSON' in window && 'parse' in JSON && 'stringify' in JSON;\n}\nfunction isWorkerSupported() {\n if (!('Worker' in window && 'Blob' in window && 'URL' in window)) {\n return false;\n }\n var blob = new Blob([''], { type: 'text/javascript' });\n var workerURL = URL.createObjectURL(blob);\n var supported;\n var worker;\n try {\n worker = new Worker(workerURL);\n supported = true;\n } catch (e) {\n supported = false;\n }\n if (worker) {\n worker.terminate();\n }\n URL.revokeObjectURL(workerURL);\n return supported;\n}\nfunction isUint8ClampedArraySupported() {\n return 'Uint8ClampedArray' in window;\n}\nfunction isArrayBufferSupported() {\n return ArrayBuffer.isView;\n}\nfunction isCanvasGetImageDataSupported() {\n var canvas = document.createElement('canvas');\n canvas.width = canvas.height = 1;\n var context = canvas.getContext('2d');\n if (!context) {\n return false;\n }\n var imageData = context.getImageData(0, 0, 1, 1);\n return imageData && imageData.width === canvas.width;\n}\nvar isWebGLSupportedCache = {};\nfunction isWebGLSupportedCached(failIfMajorPerformanceCaveat) {\n if (isWebGLSupportedCache[failIfMajorPerformanceCaveat] === undefined) {\n isWebGLSupportedCache[failIfMajorPerformanceCaveat] = isWebGLSupported(failIfMajorPerformanceCaveat);\n }\n return isWebGLSupportedCache[failIfMajorPerformanceCaveat];\n}\nisSupported.webGLContextAttributes = {\n antialias: false,\n alpha: true,\n stencil: true,\n depth: true\n};\nfunction getWebGLContext(failIfMajorPerformanceCaveat) {\n var canvas = document.createElement('canvas');\n var attributes = Object.create(isSupported.webGLContextAttributes);\n attributes.failIfMajorPerformanceCaveat = failIfMajorPerformanceCaveat;\n if (canvas.probablySupportsContext) {\n return canvas.probablySupportsContext('webgl', attributes) || canvas.probablySupportsContext('experimental-webgl', attributes);\n } else if (canvas.supportsContext) {\n return canvas.supportsContext('webgl', attributes) || canvas.supportsContext('experimental-webgl', attributes);\n } else {\n return canvas.getContext('webgl', attributes) || canvas.getContext('experimental-webgl', attributes);\n }\n}\nfunction isWebGLSupported(failIfMajorPerformanceCaveat) {\n var gl = getWebGLContext(failIfMajorPerformanceCaveat);\n if (!gl) {\n return false;\n }\n var shader = gl.createShader(gl.VERTEX_SHADER);\n if (!shader || gl.isContextLost()) {\n return false;\n }\n gl.shaderSource(shader, 'void main() {}');\n gl.compileShader(shader);\n return gl.getShaderParameter(shader, gl.COMPILE_STATUS) === true;\n}\n});\n\nvar DOM = {};\nDOM.create = function (tagName, className, container) {\n var el = performance.window.document.createElement(tagName);\n if (className !== undefined) {\n el.className = className;\n }\n if (container) {\n container.appendChild(el);\n }\n return el;\n};\nDOM.createNS = function (namespaceURI, tagName) {\n var el = performance.window.document.createElementNS(namespaceURI, tagName);\n return el;\n};\nvar docStyle = performance.window.document.documentElement.style;\nfunction testProp(props) {\n if (!docStyle) {\n return props[0];\n }\n for (var i = 0; i < props.length; i++) {\n if (props[i] in docStyle) {\n return props[i];\n }\n }\n return props[0];\n}\nvar selectProp = testProp([\n 'userSelect',\n 'MozUserSelect',\n 'WebkitUserSelect',\n 'msUserSelect'\n]);\nvar userSelect;\nDOM.disableDrag = function () {\n if (docStyle && selectProp) {\n userSelect = docStyle[selectProp];\n docStyle[selectProp] = 'none';\n }\n};\nDOM.enableDrag = function () {\n if (docStyle && selectProp) {\n docStyle[selectProp] = userSelect;\n }\n};\nvar transformProp = testProp([\n 'transform',\n 'WebkitTransform'\n]);\nDOM.setTransform = function (el, value) {\n el.style[transformProp] = value;\n};\nvar passiveSupported = false;\ntry {\n var options$1 = Object.defineProperty({}, 'passive', {\n get: function get() {\n passiveSupported = true;\n }\n });\n performance.window.addEventListener('test', options$1, options$1);\n performance.window.removeEventListener('test', options$1, options$1);\n} catch (err) {\n passiveSupported = false;\n}\nDOM.addEventListener = function (target, type, callback, options) {\n if (options === void 0)\n options = {};\n if ('passive' in options && passiveSupported) {\n target.addEventListener(type, callback, options);\n } else {\n target.addEventListener(type, callback, options.capture);\n }\n};\nDOM.removeEventListener = function (target, type, callback, options) {\n if (options === void 0)\n options = {};\n if ('passive' in options && passiveSupported) {\n target.removeEventListener(type, callback, options);\n } else {\n target.removeEventListener(type, callback, options.capture);\n }\n};\nvar suppressClick = function (e) {\n e.preventDefault();\n e.stopPropagation();\n performance.window.removeEventListener('click', suppressClick, true);\n};\nDOM.suppressClick = function () {\n performance.window.addEventListener('click', suppressClick, true);\n performance.window.setTimeout(function () {\n performance.window.removeEventListener('click', suppressClick, true);\n }, 0);\n};\nDOM.mousePos = function (el, e) {\n var rect = el.getBoundingClientRect();\n return new performance.Point(e.clientX - rect.left - el.clientLeft, e.clientY - rect.top - el.clientTop);\n};\nDOM.touchPos = function (el, touches) {\n var rect = el.getBoundingClientRect(), points = [];\n for (var i = 0; i < touches.length; i++) {\n points.push(new performance.Point(touches[i].clientX - rect.left - el.clientLeft, touches[i].clientY - rect.top - el.clientTop));\n }\n return points;\n};\nDOM.mouseButton = function (e) {\n if (typeof performance.window.InstallTrigger !== 'undefined' && e.button === 2 && e.ctrlKey && performance.window.navigator.platform.toUpperCase().indexOf('MAC') >= 0) {\n return 0;\n }\n return e.button;\n};\nDOM.remove = function (node) {\n if (node.parentNode) {\n node.parentNode.removeChild(node);\n }\n};\n\nfunction loadSprite (baseURL, requestManager, callback) {\n var json, image, error;\n var format = performance.browser.devicePixelRatio > 1 ? '@2x' : '';\n var jsonRequest = performance.getJSON(requestManager.transformRequest(requestManager.normalizeSpriteURL(baseURL, format, '.json'), performance.ResourceType.SpriteJSON), function (err, data) {\n jsonRequest = null;\n if (!error) {\n error = err;\n json = data;\n maybeComplete();\n }\n });\n var imageRequest = performance.getImage(requestManager.transformRequest(requestManager.normalizeSpriteURL(baseURL, format, '.png'), performance.ResourceType.SpriteImage), function (err, img) {\n imageRequest = null;\n if (!error) {\n error = err;\n image = img;\n maybeComplete();\n }\n });\n function maybeComplete() {\n if (error) {\n callback(error);\n } else if (json && image) {\n var imageData = performance.browser.getImageData(image);\n var result = {};\n for (var id in json) {\n var ref = json[id];\n var width = ref.width;\n var height = ref.height;\n var x = ref.x;\n var y = ref.y;\n var sdf = ref.sdf;\n var pixelRatio = ref.pixelRatio;\n var stretchX = ref.stretchX;\n var stretchY = ref.stretchY;\n var content = ref.content;\n var data = new performance.RGBAImage({\n width: width,\n height: height\n });\n performance.RGBAImage.copy(imageData, data, {\n x: x,\n y: y\n }, {\n x: 0,\n y: 0\n }, {\n width: width,\n height: height\n });\n result[id] = {\n data: data,\n pixelRatio: pixelRatio,\n sdf: sdf,\n stretchX: stretchX,\n stretchY: stretchY,\n content: content\n };\n }\n callback(null, result);\n }\n }\n return {\n cancel: function cancel() {\n if (jsonRequest) {\n jsonRequest.cancel();\n jsonRequest = null;\n }\n if (imageRequest) {\n imageRequest.cancel();\n imageRequest = null;\n }\n }\n };\n}\n\nfunction renderStyleImage(image) {\n var userImage = image.userImage;\n if (userImage && userImage.render) {\n var updated = userImage.render();\n if (updated) {\n image.data.replace(new Uint8Array(userImage.data.buffer));\n return true;\n }\n }\n return false;\n}\n\nvar padding = 1;\nvar ImageManager = function (Evented) {\n function ImageManager() {\n Evented.call(this);\n this.images = {};\n this.updatedImages = {};\n this.callbackDispatchedThisFrame = {};\n this.loaded = false;\n this.requestors = [];\n this.patterns = {};\n this.atlasImage = new performance.RGBAImage({\n width: 1,\n height: 1\n });\n this.dirty = true;\n }\n if (Evented)\n ImageManager.__proto__ = Evented;\n ImageManager.prototype = Object.create(Evented && Evented.prototype);\n ImageManager.prototype.constructor = ImageManager;\n ImageManager.prototype.isLoaded = function isLoaded() {\n return this.loaded;\n };\n ImageManager.prototype.setLoaded = function setLoaded(loaded) {\n if (this.loaded === loaded) {\n return;\n }\n this.loaded = loaded;\n if (loaded) {\n for (var i = 0, list = this.requestors; i < list.length; i += 1) {\n var ref = list[i];\n var ids = ref.ids;\n var callback = ref.callback;\n this._notify(ids, callback);\n }\n this.requestors = [];\n }\n };\n ImageManager.prototype.getImage = function getImage(id) {\n return this.images[id];\n };\n ImageManager.prototype.addImage = function addImage(id, image) {\n if (this._validate(id, image)) {\n this.images[id] = image;\n }\n };\n ImageManager.prototype._validate = function _validate(id, image) {\n var valid = true;\n if (!this._validateStretch(image.stretchX, image.data && image.data.width)) {\n this.fire(new performance.ErrorEvent(new Error('Image \"' + id + '\" has invalid \"stretchX\" value')));\n valid = false;\n }\n if (!this._validateStretch(image.stretchY, image.data && image.data.height)) {\n this.fire(new performance.ErrorEvent(new Error('Image \"' + id + '\" has invalid \"stretchY\" value')));\n valid = false;\n }\n if (!this._validateContent(image.content, image)) {\n this.fire(new performance.ErrorEvent(new Error('Image \"' + id + '\" has invalid \"content\" value')));\n valid = false;\n }\n return valid;\n };\n ImageManager.prototype._validateStretch = function _validateStretch(stretch, size) {\n if (!stretch) {\n return true;\n }\n var last = 0;\n for (var i = 0, list = stretch; i < list.length; i += 1) {\n var part = list[i];\n if (part[0] < last || part[1] < part[0] || size < part[1]) {\n return false;\n }\n last = part[1];\n }\n return true;\n };\n ImageManager.prototype._validateContent = function _validateContent(content, image) {\n if (!content) {\n return true;\n }\n if (content.length !== 4) {\n return false;\n }\n if (content[0] < 0 || image.data.width < content[0]) {\n return false;\n }\n if (content[1] < 0 || image.data.height < content[1]) {\n return false;\n }\n if (content[2] < 0 || image.data.width < content[2]) {\n return false;\n }\n if (content[3] < 0 || image.data.height < content[3]) {\n return false;\n }\n if (content[2] < content[0]) {\n return false;\n }\n if (content[3] < content[1]) {\n return false;\n }\n return true;\n };\n ImageManager.prototype.updateImage = function updateImage(id, image) {\n var oldImage = this.images[id];\n image.version = oldImage.version + 1;\n this.images[id] = image;\n this.updatedImages[id] = true;\n };\n ImageManager.prototype.removeImage = function removeImage(id) {\n var image = this.images[id];\n delete this.images[id];\n delete this.patterns[id];\n if (image.userImage && image.userImage.onRemove) {\n image.userImage.onRemove();\n }\n };\n ImageManager.prototype.listImages = function listImages() {\n return Object.keys(this.images);\n };\n ImageManager.prototype.getImages = function getImages(ids, callback) {\n var hasAllDependencies = true;\n if (!this.isLoaded()) {\n for (var i = 0, list = ids; i < list.length; i += 1) {\n var id = list[i];\n if (!this.images[id]) {\n hasAllDependencies = false;\n }\n }\n }\n if (this.isLoaded() || hasAllDependencies) {\n this._notify(ids, callback);\n } else {\n this.requestors.push({\n ids: ids,\n callback: callback\n });\n }\n };\n ImageManager.prototype._notify = function _notify(ids, callback) {\n var response = {};\n for (var i = 0, list = ids; i < list.length; i += 1) {\n var id = list[i];\n if (!this.images[id]) {\n this.fire(new performance.Event('styleimagemissing', { id: id }));\n }\n var image = this.images[id];\n if (image) {\n response[id] = {\n data: image.data.clone(),\n pixelRatio: image.pixelRatio,\n sdf: image.sdf,\n version: image.version,\n stretchX: image.stretchX,\n stretchY: image.stretchY,\n content: image.content,\n hasRenderCallback: Boolean(image.userImage && image.userImage.render)\n };\n } else {\n performance.warnOnce('Image \"' + id + '\" could not be loaded. Please make sure you have added the image with map.addImage() or a \"sprite\" property in your style. You can provide missing images by listening for the \"styleimagemissing\" map event.');\n }\n }\n callback(null, response);\n };\n ImageManager.prototype.getPixelSize = function getPixelSize() {\n var ref = this.atlasImage;\n var width = ref.width;\n var height = ref.height;\n return {\n width: width,\n height: height\n };\n };\n ImageManager.prototype.getPattern = function getPattern(id) {\n var pattern = this.patterns[id];\n var image = this.getImage(id);\n if (!image) {\n return null;\n }\n if (pattern && pattern.position.version === image.version) {\n return pattern.position;\n }\n if (!pattern) {\n var w = image.data.width + padding * 2;\n var h = image.data.height + padding * 2;\n var bin = {\n w: w,\n h: h,\n x: 0,\n y: 0\n };\n var position = new performance.ImagePosition(bin, image);\n this.patterns[id] = {\n bin: bin,\n position: position\n };\n } else {\n pattern.position.version = image.version;\n }\n this._updatePatternAtlas();\n return this.patterns[id].position;\n };\n ImageManager.prototype.bind = function bind(context) {\n var gl = context.gl;\n if (!this.atlasTexture) {\n this.atlasTexture = new performance.Texture(context, this.atlasImage, gl.RGBA);\n } else if (this.dirty) {\n this.atlasTexture.update(this.atlasImage);\n this.dirty = false;\n }\n this.atlasTexture.bind(gl.LINEAR, gl.CLAMP_TO_EDGE);\n };\n ImageManager.prototype._updatePatternAtlas = function _updatePatternAtlas() {\n var bins = [];\n for (var id in this.patterns) {\n bins.push(this.patterns[id].bin);\n }\n var ref = performance.potpack(bins);\n var w = ref.w;\n var h = ref.h;\n var dst = this.atlasImage;\n dst.resize({\n width: w || 1,\n height: h || 1\n });\n for (var id$1 in this.patterns) {\n var ref$1 = this.patterns[id$1];\n var bin = ref$1.bin;\n var x = bin.x + padding;\n var y = bin.y + padding;\n var src = this.images[id$1].data;\n var w$1 = src.width;\n var h$1 = src.height;\n performance.RGBAImage.copy(src, dst, {\n x: 0,\n y: 0\n }, {\n x: x,\n y: y\n }, {\n width: w$1,\n height: h$1\n });\n performance.RGBAImage.copy(src, dst, {\n x: 0,\n y: h$1 - 1\n }, {\n x: x,\n y: y - 1\n }, {\n width: w$1,\n height: 1\n });\n performance.RGBAImage.copy(src, dst, {\n x: 0,\n y: 0\n }, {\n x: x,\n y: y + h$1\n }, {\n width: w$1,\n height: 1\n });\n performance.RGBAImage.copy(src, dst, {\n x: w$1 - 1,\n y: 0\n }, {\n x: x - 1,\n y: y\n }, {\n width: 1,\n height: h$1\n });\n performance.RGBAImage.copy(src, dst, {\n x: 0,\n y: 0\n }, {\n x: x + w$1,\n y: y\n }, {\n width: 1,\n height: h$1\n });\n }\n this.dirty = true;\n };\n ImageManager.prototype.beginFrame = function beginFrame() {\n this.callbackDispatchedThisFrame = {};\n };\n ImageManager.prototype.dispatchRenderCallbacks = function dispatchRenderCallbacks(ids) {\n for (var i = 0, list = ids; i < list.length; i += 1) {\n var id = list[i];\n if (this.callbackDispatchedThisFrame[id]) {\n continue;\n }\n this.callbackDispatchedThisFrame[id] = true;\n var image = this.images[id];\n var updated = renderStyleImage(image);\n if (updated) {\n this.updateImage(id, image);\n }\n }\n };\n return ImageManager;\n}(performance.Evented);\n\nfunction loadGlyphRange (fontstack, range, urlTemplate, requestManager, callback) {\n var begin = range * 256;\n var end = begin + 255;\n var request = requestManager.transformRequest(requestManager.normalizeGlyphsURL(urlTemplate).replace('{fontstack}', fontstack).replace('{range}', begin + '-' + end), performance.ResourceType.Glyphs);\n performance.getArrayBuffer(request, function (err, data) {\n if (err) {\n callback(err);\n } else if (data) {\n var glyphs = {};\n for (var i = 0, list = performance.parseGlyphPBF(data); i < list.length; i += 1) {\n var glyph = list[i];\n glyphs[glyph.id] = glyph;\n }\n callback(null, glyphs);\n }\n });\n}\n\nvar tinySdf = TinySDF;\nvar default_1 = TinySDF;\nvar INF = 100000000000000000000;\nfunction TinySDF(fontSize, buffer, radius, cutoff, fontFamily, fontWeight) {\n this.fontSize = fontSize || 24;\n this.buffer = buffer === undefined ? 3 : buffer;\n this.cutoff = cutoff || 0.25;\n this.fontFamily = fontFamily || 'sans-serif';\n this.fontWeight = fontWeight || 'normal';\n this.radius = radius || 8;\n var size = this.size = this.fontSize + this.buffer * 2;\n this.canvas = document.createElement('canvas');\n this.canvas.width = this.canvas.height = size;\n this.ctx = this.canvas.getContext('2d');\n this.ctx.font = this.fontWeight + ' ' + this.fontSize + 'px ' + this.fontFamily;\n this.ctx.textBaseline = 'middle';\n this.ctx.fillStyle = 'black';\n this.gridOuter = new Float64Array(size * size);\n this.gridInner = new Float64Array(size * size);\n this.f = new Float64Array(size);\n this.d = new Float64Array(size);\n this.z = new Float64Array(size + 1);\n this.v = new Int16Array(size);\n this.middle = Math.round(size / 2 * (navigator.userAgent.indexOf('Gecko/') >= 0 ? 1.2 : 1));\n}\nTinySDF.prototype.draw = function (char) {\n this.ctx.clearRect(0, 0, this.size, this.size);\n this.ctx.fillText(char, this.buffer, this.middle);\n var imgData = this.ctx.getImageData(0, 0, this.size, this.size);\n var alphaChannel = new Uint8ClampedArray(this.size * this.size);\n for (var i = 0; i < this.size * this.size; i++) {\n var a = imgData.data[i * 4 + 3] / 255;\n this.gridOuter[i] = a === 1 ? 0 : a === 0 ? INF : Math.pow(Math.max(0, 0.5 - a), 2);\n this.gridInner[i] = a === 1 ? INF : a === 0 ? 0 : Math.pow(Math.max(0, a - 0.5), 2);\n }\n edt(this.gridOuter, this.size, this.size, this.f, this.d, this.v, this.z);\n edt(this.gridInner, this.size, this.size, this.f, this.d, this.v, this.z);\n for (i = 0; i < this.size * this.size; i++) {\n var d = this.gridOuter[i] - this.gridInner[i];\n alphaChannel[i] = Math.max(0, Math.min(255, Math.round(255 - 255 * (d / this.radius + this.cutoff))));\n }\n return alphaChannel;\n};\nfunction edt(data, width, height, f, d, v, z) {\n for (var x = 0; x < width; x++) {\n for (var y = 0; y < height; y++) {\n f[y] = data[y * width + x];\n }\n edt1d(f, d, v, z, height);\n for (y = 0; y < height; y++) {\n data[y * width + x] = d[y];\n }\n }\n for (y = 0; y < height; y++) {\n for (x = 0; x < width; x++) {\n f[x] = data[y * width + x];\n }\n edt1d(f, d, v, z, width);\n for (x = 0; x < width; x++) {\n data[y * width + x] = Math.sqrt(d[x]);\n }\n }\n}\nfunction edt1d(f, d, v, z, n) {\n v[0] = 0;\n z[0] = -INF;\n z[1] = +INF;\n for (var q = 1, k = 0; q < n; q++) {\n var s = (f[q] + q * q - (f[v[k]] + v[k] * v[k])) / (2 * q - 2 * v[k]);\n while (s <= z[k]) {\n k--;\n s = (f[q] + q * q - (f[v[k]] + v[k] * v[k])) / (2 * q - 2 * v[k]);\n }\n k++;\n v[k] = q;\n z[k] = s;\n z[k + 1] = +INF;\n }\n for (q = 0, k = 0; q < n; q++) {\n while (z[k + 1] < q) {\n k++;\n }\n d[q] = (q - v[k]) * (q - v[k]) + f[v[k]];\n }\n}\ntinySdf.default = default_1;\n\nvar GlyphManager = function GlyphManager(requestManager, localIdeographFontFamily) {\n this.requestManager = requestManager;\n this.localIdeographFontFamily = localIdeographFontFamily;\n this.entries = {};\n};\nGlyphManager.prototype.setURL = function setURL(url) {\n this.url = url;\n};\nGlyphManager.prototype.getGlyphs = function getGlyphs(glyphs, callback) {\n var this$1 = this;\n var all = [];\n for (var stack in glyphs) {\n for (var i = 0, list = glyphs[stack]; i < list.length; i += 1) {\n var id = list[i];\n all.push({\n stack: stack,\n id: id\n });\n }\n }\n performance.asyncAll(all, function (ref, callback) {\n var stack = ref.stack;\n var id = ref.id;\n var entry = this$1.entries[stack];\n if (!entry) {\n entry = this$1.entries[stack] = {\n glyphs: {},\n requests: {},\n ranges: {}\n };\n }\n var glyph = entry.glyphs[id];\n if (glyph !== undefined) {\n callback(null, {\n stack: stack,\n id: id,\n glyph: glyph\n });\n return;\n }\n glyph = this$1._tinySDF(entry, stack, id);\n if (glyph) {\n entry.glyphs[id] = glyph;\n callback(null, {\n stack: stack,\n id: id,\n glyph: glyph\n });\n return;\n }\n var range = Math.floor(id / 256);\n if (range * 256 > 65535) {\n callback(new Error('glyphs > 65535 not supported'));\n return;\n }\n if (entry.ranges[range]) {\n callback(null, {\n stack: stack,\n id: id,\n glyph: glyph\n });\n return;\n }\n var requests = entry.requests[range];\n if (!requests) {\n requests = entry.requests[range] = [];\n GlyphManager.loadGlyphRange(stack, range, this$1.url, this$1.requestManager, function (err, response) {\n if (response) {\n for (var id in response) {\n if (!this$1._doesCharSupportLocalGlyph(+id)) {\n entry.glyphs[+id] = response[+id];\n }\n }\n entry.ranges[range] = true;\n }\n for (var i = 0, list = requests; i < list.length; i += 1) {\n var cb = list[i];\n cb(err, response);\n }\n delete entry.requests[range];\n });\n }\n requests.push(function (err, result) {\n if (err) {\n callback(err);\n } else if (result) {\n callback(null, {\n stack: stack,\n id: id,\n glyph: result[id] || null\n });\n }\n });\n }, function (err, glyphs) {\n if (err) {\n callback(err);\n } else if (glyphs) {\n var result = {};\n for (var i = 0, list = glyphs; i < list.length; i += 1) {\n var ref = list[i];\n var stack = ref.stack;\n var id = ref.id;\n var glyph = ref.glyph;\n (result[stack] || (result[stack] = {}))[id] = glyph && {\n id: glyph.id,\n bitmap: glyph.bitmap.clone(),\n metrics: glyph.metrics\n };\n }\n callback(null, result);\n }\n });\n};\nGlyphManager.prototype._doesCharSupportLocalGlyph = function _doesCharSupportLocalGlyph(id) {\n return !!this.localIdeographFontFamily && (performance.isChar['CJK Unified Ideographs'](id) || performance.isChar['Hangul Syllables'](id) || performance.isChar['Hiragana'](id) || performance.isChar['Katakana'](id));\n};\nGlyphManager.prototype._tinySDF = function _tinySDF(entry, stack, id) {\n var family = this.localIdeographFontFamily;\n if (!family) {\n return;\n }\n if (!this._doesCharSupportLocalGlyph(id)) {\n return;\n }\n var tinySDF = entry.tinySDF;\n if (!tinySDF) {\n var fontWeight = '400';\n if (/bold/i.test(stack)) {\n fontWeight = '900';\n } else if (/medium/i.test(stack)) {\n fontWeight = '500';\n } else if (/light/i.test(stack)) {\n fontWeight = '200';\n }\n tinySDF = entry.tinySDF = new GlyphManager.TinySDF(24, 3, 8, 0.25, family, fontWeight);\n }\n return {\n id: id,\n bitmap: new performance.AlphaImage({\n width: 30,\n height: 30\n }, tinySDF.draw(String.fromCharCode(id))),\n metrics: {\n width: 24,\n height: 24,\n left: 0,\n top: -8,\n advance: 24\n }\n };\n};\nGlyphManager.loadGlyphRange = loadGlyphRange;\nGlyphManager.TinySDF = tinySdf;\n\nvar LightPositionProperty = function LightPositionProperty() {\n this.specification = performance.styleSpec.light.position;\n};\nLightPositionProperty.prototype.possiblyEvaluate = function possiblyEvaluate(value, parameters) {\n return performance.sphericalToCartesian(value.expression.evaluate(parameters));\n};\nLightPositionProperty.prototype.interpolate = function interpolate$1(a, b, t) {\n return {\n x: performance.number(a.x, b.x, t),\n y: performance.number(a.y, b.y, t),\n z: performance.number(a.z, b.z, t)\n };\n};\nvar properties = new performance.Properties({\n 'anchor': new performance.DataConstantProperty(performance.styleSpec.light.anchor),\n 'position': new LightPositionProperty(),\n 'color': new performance.DataConstantProperty(performance.styleSpec.light.color),\n 'intensity': new performance.DataConstantProperty(performance.styleSpec.light.intensity)\n});\nvar TRANSITION_SUFFIX = '-transition';\nvar Light = function (Evented) {\n function Light(lightOptions) {\n Evented.call(this);\n this._transitionable = new performance.Transitionable(properties);\n this.setLight(lightOptions);\n this._transitioning = this._transitionable.untransitioned();\n }\n if (Evented)\n Light.__proto__ = Evented;\n Light.prototype = Object.create(Evented && Evented.prototype);\n Light.prototype.constructor = Light;\n Light.prototype.getLight = function getLight() {\n return this._transitionable.serialize();\n };\n Light.prototype.setLight = function setLight(light, options) {\n if (options === void 0)\n options = {};\n if (this._validate(performance.validateLight, light, options)) {\n return;\n }\n for (var name in light) {\n var value = light[name];\n if (performance.endsWith(name, TRANSITION_SUFFIX)) {\n this._transitionable.setTransition(name.slice(0, -TRANSITION_SUFFIX.length), value);\n } else {\n this._transitionable.setValue(name, value);\n }\n }\n };\n Light.prototype.updateTransitions = function updateTransitions(parameters) {\n this._transitioning = this._transitionable.transitioned(parameters, this._transitioning);\n };\n Light.prototype.hasTransition = function hasTransition() {\n return this._transitioning.hasTransition();\n };\n Light.prototype.recalculate = function recalculate(parameters) {\n this.properties = this._transitioning.possiblyEvaluate(parameters);\n };\n Light.prototype._validate = function _validate(validate, value, options) {\n if (options && options.validate === false) {\n return false;\n }\n return performance.emitValidationErrors(this, validate.call(performance.validateStyle, performance.extend({\n value: value,\n style: {\n glyphs: true,\n sprite: true\n },\n styleSpec: performance.styleSpec\n })));\n };\n return Light;\n}(performance.Evented);\n\nvar LineAtlas = function LineAtlas(width, height) {\n this.width = width;\n this.height = height;\n this.nextRow = 0;\n this.data = new Uint8Array(this.width * this.height);\n this.dashEntry = {};\n};\nLineAtlas.prototype.getDash = function getDash(dasharray, round) {\n var key = dasharray.join(',') + String(round);\n if (!this.dashEntry[key]) {\n this.dashEntry[key] = this.addDash(dasharray, round);\n }\n return this.dashEntry[key];\n};\nLineAtlas.prototype.getDashRanges = function getDashRanges(dasharray, lineAtlasWidth, stretch) {\n var oddDashArray = dasharray.length % 2 === 1;\n var ranges = [];\n var left = oddDashArray ? -dasharray[dasharray.length - 1] * stretch : 0;\n var right = dasharray[0] * stretch;\n var isDash = true;\n ranges.push({\n left: left,\n right: right,\n isDash: isDash,\n zeroLength: dasharray[0] === 0\n });\n var currentDashLength = dasharray[0];\n for (var i = 1; i < dasharray.length; i++) {\n isDash = !isDash;\n var dashLength = dasharray[i];\n left = currentDashLength * stretch;\n currentDashLength += dashLength;\n right = currentDashLength * stretch;\n ranges.push({\n left: left,\n right: right,\n isDash: isDash,\n zeroLength: dashLength === 0\n });\n }\n return ranges;\n};\nLineAtlas.prototype.addRoundDash = function addRoundDash(ranges, stretch, n) {\n var halfStretch = stretch / 2;\n for (var y = -n; y <= n; y++) {\n var row = this.nextRow + n + y;\n var index = this.width * row;\n var currIndex = 0;\n var range = ranges[currIndex];\n for (var x = 0; x < this.width; x++) {\n if (x / range.right > 1) {\n range = ranges[++currIndex];\n }\n var distLeft = Math.abs(x - range.left);\n var distRight = Math.abs(x - range.right);\n var minDist = Math.min(distLeft, distRight);\n var signedDistance = void 0;\n var distMiddle = y / n * (halfStretch + 1);\n if (range.isDash) {\n var distEdge = halfStretch - Math.abs(distMiddle);\n signedDistance = Math.sqrt(minDist * minDist + distEdge * distEdge);\n } else {\n signedDistance = halfStretch - Math.sqrt(minDist * minDist + distMiddle * distMiddle);\n }\n this.data[index + x] = Math.max(0, Math.min(255, signedDistance + 128));\n }\n }\n};\nLineAtlas.prototype.addRegularDash = function addRegularDash(ranges) {\n for (var i = ranges.length - 1; i >= 0; --i) {\n var part = ranges[i];\n var next = ranges[i + 1];\n if (part.zeroLength) {\n ranges.splice(i, 1);\n } else if (next && next.isDash === part.isDash) {\n next.left = part.left;\n ranges.splice(i, 1);\n }\n }\n var first = ranges[0];\n var last = ranges[ranges.length - 1];\n if (first.isDash === last.isDash) {\n first.left = last.left - this.width;\n last.right = first.right + this.width;\n }\n var index = this.width * this.nextRow;\n var currIndex = 0;\n var range = ranges[currIndex];\n for (var x = 0; x < this.width; x++) {\n if (x / range.right > 1) {\n range = ranges[++currIndex];\n }\n var distLeft = Math.abs(x - range.left);\n var distRight = Math.abs(x - range.right);\n var minDist = Math.min(distLeft, distRight);\n var signedDistance = range.isDash ? minDist : -minDist;\n this.data[index + x] = Math.max(0, Math.min(255, signedDistance + 128));\n }\n};\nLineAtlas.prototype.addDash = function addDash(dasharray, round) {\n var n = round ? 7 : 0;\n var height = 2 * n + 1;\n if (this.nextRow + height > this.height) {\n performance.warnOnce('LineAtlas out of space');\n return null;\n }\n var length = 0;\n for (var i = 0; i < dasharray.length; i++) {\n length += dasharray[i];\n }\n if (length !== 0) {\n var stretch = this.width / length;\n var ranges = this.getDashRanges(dasharray, this.width, stretch);\n if (round) {\n this.addRoundDash(ranges, stretch, n);\n } else {\n this.addRegularDash(ranges);\n }\n }\n var dashEntry = {\n y: (this.nextRow + n + 0.5) / this.height,\n height: 2 * n / this.height,\n width: length\n };\n this.nextRow += height;\n this.dirty = true;\n return dashEntry;\n};\nLineAtlas.prototype.bind = function bind(context) {\n var gl = context.gl;\n if (!this.texture) {\n this.texture = gl.createTexture();\n gl.bindTexture(gl.TEXTURE_2D, this.texture);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.REPEAT);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.REPEAT);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);\n gl.texImage2D(gl.TEXTURE_2D, 0, gl.ALPHA, this.width, this.height, 0, gl.ALPHA, gl.UNSIGNED_BYTE, this.data);\n } else {\n gl.bindTexture(gl.TEXTURE_2D, this.texture);\n if (this.dirty) {\n this.dirty = false;\n gl.texSubImage2D(gl.TEXTURE_2D, 0, 0, 0, this.width, this.height, gl.ALPHA, gl.UNSIGNED_BYTE, this.data);\n }\n }\n};\n\nvar Dispatcher = function Dispatcher(workerPool, parent) {\n this.workerPool = workerPool;\n this.actors = [];\n this.currentActor = 0;\n this.id = performance.uniqueId();\n var workers = this.workerPool.acquire(this.id);\n for (var i = 0; i < workers.length; i++) {\n var worker = workers[i];\n var actor = new Dispatcher.Actor(worker, parent, this.id);\n actor.name = 'Worker ' + i;\n this.actors.push(actor);\n }\n};\nDispatcher.prototype.broadcast = function broadcast(type, data, cb) {\n cb = cb || function () {\n };\n performance.asyncAll(this.actors, function (actor, done) {\n actor.send(type, data, done);\n }, cb);\n};\nDispatcher.prototype.getActor = function getActor() {\n this.currentActor = (this.currentActor + 1) % this.actors.length;\n return this.actors[this.currentActor];\n};\nDispatcher.prototype.remove = function remove() {\n this.actors.forEach(function (actor) {\n actor.remove();\n });\n this.actors = [];\n this.workerPool.release(this.id);\n};\nDispatcher.Actor = performance.Actor;\n\nfunction loadTileJSON (options, requestManager, callback) {\n var loaded = function (err, tileJSON) {\n if (err) {\n return callback(err);\n } else if (tileJSON) {\n var result = performance.pick(performance.extend(tileJSON, options), [\n 'tiles',\n 'minzoom',\n 'maxzoom',\n 'attribution',\n 'mapbox_logo',\n 'bounds',\n 'scheme',\n 'tileSize',\n 'encoding'\n ]);\n if (tileJSON.vector_layers) {\n result.vectorLayers = tileJSON.vector_layers;\n result.vectorLayerIds = result.vectorLayers.map(function (layer) {\n return layer.id;\n });\n }\n result.tiles = requestManager.canonicalizeTileset(result, options.url);\n callback(null, result);\n }\n };\n if (options.url) {\n return performance.getJSON(requestManager.transformRequest(requestManager.normalizeSourceURL(options.url), performance.ResourceType.Source), loaded);\n } else {\n return performance.browser.frame(function () {\n return loaded(null, options);\n });\n }\n}\n\nvar TileBounds = function TileBounds(bounds, minzoom, maxzoom) {\n this.bounds = performance.LngLatBounds.convert(this.validateBounds(bounds));\n this.minzoom = minzoom || 0;\n this.maxzoom = maxzoom || 24;\n};\nTileBounds.prototype.validateBounds = function validateBounds(bounds) {\n if (!Array.isArray(bounds) || bounds.length !== 4) {\n return [\n -180,\n -90,\n 180,\n 90\n ];\n }\n return [\n Math.max(-180, bounds[0]),\n Math.max(-90, bounds[1]),\n Math.min(180, bounds[2]),\n Math.min(90, bounds[3])\n ];\n};\nTileBounds.prototype.contains = function contains(tileID) {\n var worldSize = Math.pow(2, tileID.z);\n var level = {\n minX: Math.floor(performance.mercatorXfromLng(this.bounds.getWest()) * worldSize),\n minY: Math.floor(performance.mercatorYfromLat(this.bounds.getNorth()) * worldSize),\n maxX: Math.ceil(performance.mercatorXfromLng(this.bounds.getEast()) * worldSize),\n maxY: Math.ceil(performance.mercatorYfromLat(this.bounds.getSouth()) * worldSize)\n };\n var hit = tileID.x >= level.minX && tileID.x < level.maxX && tileID.y >= level.minY && tileID.y < level.maxY;\n return hit;\n};\n\nvar VectorTileSource = function (Evented) {\n function VectorTileSource(id, options, dispatcher, eventedParent) {\n Evented.call(this);\n this.id = id;\n this.dispatcher = dispatcher;\n this.type = 'vector';\n this.minzoom = 0;\n this.maxzoom = 22;\n this.scheme = 'xyz';\n this.tileSize = 512;\n this.reparseOverscaled = true;\n this.isTileClipped = true;\n this._loaded = false;\n performance.extend(this, performance.pick(options, [\n 'url',\n 'scheme',\n 'tileSize',\n 'promoteId'\n ]));\n this._options = performance.extend({ type: 'vector' }, options);\n this._collectResourceTiming = options.collectResourceTiming;\n if (this.tileSize !== 512) {\n throw new Error('vector tile sources must have a tileSize of 512');\n }\n this.setEventedParent(eventedParent);\n }\n if (Evented)\n VectorTileSource.__proto__ = Evented;\n VectorTileSource.prototype = Object.create(Evented && Evented.prototype);\n VectorTileSource.prototype.constructor = VectorTileSource;\n VectorTileSource.prototype.load = function load() {\n var this$1 = this;\n this._loaded = false;\n this.fire(new performance.Event('dataloading', { dataType: 'source' }));\n this._tileJSONRequest = loadTileJSON(this._options, this.map._requestManager, function (err, tileJSON) {\n this$1._tileJSONRequest = null;\n this$1._loaded = true;\n if (err) {\n this$1.fire(new performance.ErrorEvent(err));\n } else if (tileJSON) {\n performance.extend(this$1, tileJSON);\n if (tileJSON.bounds) {\n this$1.tileBounds = new TileBounds(tileJSON.bounds, this$1.minzoom, this$1.maxzoom);\n }\n performance.postTurnstileEvent(tileJSON.tiles, this$1.map._requestManager._customAccessToken);\n performance.postMapLoadEvent(tileJSON.tiles, this$1.map._getMapId(), this$1.map._requestManager._skuToken, this$1.map._requestManager._customAccessToken);\n this$1.fire(new performance.Event('data', {\n dataType: 'source',\n sourceDataType: 'metadata'\n }));\n this$1.fire(new performance.Event('data', {\n dataType: 'source',\n sourceDataType: 'content'\n }));\n }\n });\n };\n VectorTileSource.prototype.loaded = function loaded() {\n return this._loaded;\n };\n VectorTileSource.prototype.hasTile = function hasTile(tileID) {\n return !this.tileBounds || this.tileBounds.contains(tileID.canonical);\n };\n VectorTileSource.prototype.onAdd = function onAdd(map) {\n this.map = map;\n this.load();\n };\n VectorTileSource.prototype.onRemove = function onRemove() {\n if (this._tileJSONRequest) {\n this._tileJSONRequest.cancel();\n this._tileJSONRequest = null;\n }\n };\n VectorTileSource.prototype.serialize = function serialize() {\n return performance.extend({}, this._options);\n };\n VectorTileSource.prototype.loadTile = function loadTile(tile, callback) {\n var url = this.map._requestManager.normalizeTileURL(tile.tileID.canonical.url(this.tiles, this.scheme));\n var params = {\n request: this.map._requestManager.transformRequest(url, performance.ResourceType.Tile),\n uid: tile.uid,\n tileID: tile.tileID,\n zoom: tile.tileID.overscaledZ,\n tileSize: this.tileSize * tile.tileID.overscaleFactor(),\n type: this.type,\n source: this.id,\n pixelRatio: performance.browser.devicePixelRatio,\n showCollisionBoxes: this.map.showCollisionBoxes,\n promoteId: this.promoteId\n };\n params.request.collectResourceTiming = this._collectResourceTiming;\n if (!tile.actor || tile.state === 'expired') {\n tile.actor = this.dispatcher.getActor();\n tile.request = tile.actor.send('loadTile', params, done.bind(this));\n } else if (tile.state === 'loading') {\n tile.reloadCallback = callback;\n } else {\n tile.request = tile.actor.send('reloadTile', params, done.bind(this));\n }\n function done(err, data) {\n delete tile.request;\n if (tile.aborted) {\n return callback(null);\n }\n if (err && err.status !== 404) {\n return callback(err);\n }\n if (data && data.resourceTiming) {\n tile.resourceTiming = data.resourceTiming;\n }\n if (this.map._refreshExpiredTiles && data) {\n tile.setExpiryData(data);\n }\n tile.loadVectorData(data, this.map.painter);\n performance.cacheEntryPossiblyAdded(this.dispatcher);\n callback(null);\n if (tile.reloadCallback) {\n this.loadTile(tile, tile.reloadCallback);\n tile.reloadCallback = null;\n }\n }\n };\n VectorTileSource.prototype.abortTile = function abortTile(tile) {\n if (tile.request) {\n tile.request.cancel();\n delete tile.request;\n }\n if (tile.actor) {\n tile.actor.send('abortTile', {\n uid: tile.uid,\n type: this.type,\n source: this.id\n }, undefined);\n }\n };\n VectorTileSource.prototype.unloadTile = function unloadTile(tile) {\n tile.unloadVectorData();\n if (tile.actor) {\n tile.actor.send('removeTile', {\n uid: tile.uid,\n type: this.type,\n source: this.id\n }, undefined);\n }\n };\n VectorTileSource.prototype.hasTransition = function hasTransition() {\n return false;\n };\n return VectorTileSource;\n}(performance.Evented);\n\nvar RasterTileSource = function (Evented) {\n function RasterTileSource(id, options, dispatcher, eventedParent) {\n Evented.call(this);\n this.id = id;\n this.dispatcher = dispatcher;\n this.setEventedParent(eventedParent);\n this.type = 'raster';\n this.minzoom = 0;\n this.maxzoom = 22;\n this.roundZoom = true;\n this.scheme = 'xyz';\n this.tileSize = 512;\n this._loaded = false;\n this._options = performance.extend({ type: 'raster' }, options);\n performance.extend(this, performance.pick(options, [\n 'url',\n 'scheme',\n 'tileSize'\n ]));\n }\n if (Evented)\n RasterTileSource.__proto__ = Evented;\n RasterTileSource.prototype = Object.create(Evented && Evented.prototype);\n RasterTileSource.prototype.constructor = RasterTileSource;\n RasterTileSource.prototype.load = function load() {\n var this$1 = this;\n this._loaded = false;\n this.fire(new performance.Event('dataloading', { dataType: 'source' }));\n this._tileJSONRequest = loadTileJSON(this._options, this.map._requestManager, function (err, tileJSON) {\n this$1._tileJSONRequest = null;\n this$1._loaded = true;\n if (err) {\n this$1.fire(new performance.ErrorEvent(err));\n } else if (tileJSON) {\n performance.extend(this$1, tileJSON);\n if (tileJSON.bounds) {\n this$1.tileBounds = new TileBounds(tileJSON.bounds, this$1.minzoom, this$1.maxzoom);\n }\n performance.postTurnstileEvent(tileJSON.tiles);\n performance.postMapLoadEvent(tileJSON.tiles, this$1.map._getMapId(), this$1.map._requestManager._skuToken);\n this$1.fire(new performance.Event('data', {\n dataType: 'source',\n sourceDataType: 'metadata'\n }));\n this$1.fire(new performance.Event('data', {\n dataType: 'source',\n sourceDataType: 'content'\n }));\n }\n });\n };\n RasterTileSource.prototype.loaded = function loaded() {\n return this._loaded;\n };\n RasterTileSource.prototype.onAdd = function onAdd(map) {\n this.map = map;\n this.load();\n };\n RasterTileSource.prototype.onRemove = function onRemove() {\n if (this._tileJSONRequest) {\n this._tileJSONRequest.cancel();\n this._tileJSONRequest = null;\n }\n };\n RasterTileSource.prototype.serialize = function serialize() {\n return performance.extend({}, this._options);\n };\n RasterTileSource.prototype.hasTile = function hasTile(tileID) {\n return !this.tileBounds || this.tileBounds.contains(tileID.canonical);\n };\n RasterTileSource.prototype.loadTile = function loadTile(tile, callback) {\n var this$1 = this;\n var url = this.map._requestManager.normalizeTileURL(tile.tileID.canonical.url(this.tiles, this.scheme), this.tileSize);\n tile.request = performance.getImage(this.map._requestManager.transformRequest(url, performance.ResourceType.Tile), function (err, img) {\n delete tile.request;\n if (tile.aborted) {\n tile.state = 'unloaded';\n callback(null);\n } else if (err) {\n tile.state = 'errored';\n callback(err);\n } else if (img) {\n if (this$1.map._refreshExpiredTiles) {\n tile.setExpiryData(img);\n }\n delete img.cacheControl;\n delete img.expires;\n var context = this$1.map.painter.context;\n var gl = context.gl;\n tile.texture = this$1.map.painter.getTileTexture(img.width);\n if (tile.texture) {\n tile.texture.update(img, { useMipmap: true });\n } else {\n tile.texture = new performance.Texture(context, img, gl.RGBA, { useMipmap: true });\n tile.texture.bind(gl.LINEAR, gl.CLAMP_TO_EDGE, gl.LINEAR_MIPMAP_NEAREST);\n if (context.extTextureFilterAnisotropic) {\n gl.texParameterf(gl.TEXTURE_2D, context.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT, context.extTextureFilterAnisotropicMax);\n }\n }\n tile.state = 'loaded';\n performance.cacheEntryPossiblyAdded(this$1.dispatcher);\n callback(null);\n }\n });\n };\n RasterTileSource.prototype.abortTile = function abortTile(tile, callback) {\n if (tile.request) {\n tile.request.cancel();\n delete tile.request;\n }\n callback();\n };\n RasterTileSource.prototype.unloadTile = function unloadTile(tile, callback) {\n if (tile.texture) {\n this.map.painter.saveTileTexture(tile.texture);\n }\n callback();\n };\n RasterTileSource.prototype.hasTransition = function hasTransition() {\n return false;\n };\n return RasterTileSource;\n}(performance.Evented);\n\nvar RasterDEMTileSource = function (RasterTileSource) {\n function RasterDEMTileSource(id, options, dispatcher, eventedParent) {\n RasterTileSource.call(this, id, options, dispatcher, eventedParent);\n this.type = 'raster-dem';\n this.maxzoom = 22;\n this._options = performance.extend({ type: 'raster-dem' }, options);\n this.encoding = options.encoding || 'mapbox';\n }\n if (RasterTileSource)\n RasterDEMTileSource.__proto__ = RasterTileSource;\n RasterDEMTileSource.prototype = Object.create(RasterTileSource && RasterTileSource.prototype);\n RasterDEMTileSource.prototype.constructor = RasterDEMTileSource;\n RasterDEMTileSource.prototype.serialize = function serialize() {\n return {\n type: 'raster-dem',\n url: this.url,\n tileSize: this.tileSize,\n tiles: this.tiles,\n bounds: this.bounds,\n encoding: this.encoding\n };\n };\n RasterDEMTileSource.prototype.loadTile = function loadTile(tile, callback) {\n var url = this.map._requestManager.normalizeTileURL(tile.tileID.canonical.url(this.tiles, this.scheme), this.tileSize);\n tile.request = performance.getImage(this.map._requestManager.transformRequest(url, performance.ResourceType.Tile), imageLoaded.bind(this));\n tile.neighboringTiles = this._getNeighboringTiles(tile.tileID);\n function imageLoaded(err, img) {\n delete tile.request;\n if (tile.aborted) {\n tile.state = 'unloaded';\n callback(null);\n } else if (err) {\n tile.state = 'errored';\n callback(err);\n } else if (img) {\n if (this.map._refreshExpiredTiles) {\n tile.setExpiryData(img);\n }\n delete img.cacheControl;\n delete img.expires;\n var transfer = performance.window.ImageBitmap && img instanceof performance.window.ImageBitmap && performance.offscreenCanvasSupported();\n var rawImageData = transfer ? img : performance.browser.getImageData(img, 1);\n var params = {\n uid: tile.uid,\n coord: tile.tileID,\n source: this.id,\n rawImageData: rawImageData,\n encoding: this.encoding\n };\n if (!tile.actor || tile.state === 'expired') {\n tile.actor = this.dispatcher.getActor();\n tile.actor.send('loadDEMTile', params, done.bind(this));\n }\n }\n }\n function done(err, dem) {\n if (err) {\n tile.state = 'errored';\n callback(err);\n }\n if (dem) {\n tile.dem = dem;\n tile.needsHillshadePrepare = true;\n tile.state = 'loaded';\n callback(null);\n }\n }\n };\n RasterDEMTileSource.prototype._getNeighboringTiles = function _getNeighboringTiles(tileID) {\n var canonical = tileID.canonical;\n var dim = Math.pow(2, canonical.z);\n var px = (canonical.x - 1 + dim) % dim;\n var pxw = canonical.x === 0 ? tileID.wrap - 1 : tileID.wrap;\n var nx = (canonical.x + 1 + dim) % dim;\n var nxw = canonical.x + 1 === dim ? tileID.wrap + 1 : tileID.wrap;\n var neighboringTiles = {};\n neighboringTiles[new performance.OverscaledTileID(tileID.overscaledZ, pxw, canonical.z, px, canonical.y).key] = { backfilled: false };\n neighboringTiles[new performance.OverscaledTileID(tileID.overscaledZ, nxw, canonical.z, nx, canonical.y).key] = { backfilled: false };\n if (canonical.y > 0) {\n neighboringTiles[new performance.OverscaledTileID(tileID.overscaledZ, pxw, canonical.z, px, canonical.y - 1).key] = { backfilled: false };\n neighboringTiles[new performance.OverscaledTileID(tileID.overscaledZ, tileID.wrap, canonical.z, canonical.x, canonical.y - 1).key] = { backfilled: false };\n neighboringTiles[new performance.OverscaledTileID(tileID.overscaledZ, nxw, canonical.z, nx, canonical.y - 1).key] = { backfilled: false };\n }\n if (canonical.y + 1 < dim) {\n neighboringTiles[new performance.OverscaledTileID(tileID.overscaledZ, pxw, canonical.z, px, canonical.y + 1).key] = { backfilled: false };\n neighboringTiles[new performance.OverscaledTileID(tileID.overscaledZ, tileID.wrap, canonical.z, canonical.x, canonical.y + 1).key] = { backfilled: false };\n neighboringTiles[new performance.OverscaledTileID(tileID.overscaledZ, nxw, canonical.z, nx, canonical.y + 1).key] = { backfilled: false };\n }\n return neighboringTiles;\n };\n RasterDEMTileSource.prototype.unloadTile = function unloadTile(tile) {\n if (tile.demTexture) {\n this.map.painter.saveTileTexture(tile.demTexture);\n }\n if (tile.fbo) {\n tile.fbo.destroy();\n delete tile.fbo;\n }\n if (tile.dem) {\n delete tile.dem;\n }\n delete tile.neighboringTiles;\n tile.state = 'unloaded';\n if (tile.actor) {\n tile.actor.send('removeDEMTile', {\n uid: tile.uid,\n source: this.id\n });\n }\n };\n return RasterDEMTileSource;\n}(RasterTileSource);\n\nvar GeoJSONSource = function (Evented) {\n function GeoJSONSource(id, options, dispatcher, eventedParent) {\n Evented.call(this);\n this.id = id;\n this.type = 'geojson';\n this.minzoom = 0;\n this.maxzoom = 18;\n this.tileSize = 512;\n this.isTileClipped = true;\n this.reparseOverscaled = true;\n this._removed = false;\n this._loaded = false;\n this.actor = dispatcher.getActor();\n this.setEventedParent(eventedParent);\n this._data = options.data;\n this._options = performance.extend({}, options);\n this._collectResourceTiming = options.collectResourceTiming;\n this._resourceTiming = [];\n if (options.maxzoom !== undefined) {\n this.maxzoom = options.maxzoom;\n }\n if (options.type) {\n this.type = options.type;\n }\n if (options.attribution) {\n this.attribution = options.attribution;\n }\n this.promoteId = options.promoteId;\n var scale = performance.EXTENT / this.tileSize;\n this.workerOptions = performance.extend({\n source: this.id,\n cluster: options.cluster || false,\n geojsonVtOptions: {\n buffer: (options.buffer !== undefined ? options.buffer : 128) * scale,\n tolerance: (options.tolerance !== undefined ? options.tolerance : 0.375) * scale,\n extent: performance.EXTENT,\n maxZoom: this.maxzoom,\n lineMetrics: options.lineMetrics || false,\n generateId: options.generateId || false\n },\n superclusterOptions: {\n maxZoom: options.clusterMaxZoom !== undefined ? Math.min(options.clusterMaxZoom, this.maxzoom - 1) : this.maxzoom - 1,\n extent: performance.EXTENT,\n radius: (options.clusterRadius || 50) * scale,\n log: false,\n generateId: options.generateId || false\n },\n clusterProperties: options.clusterProperties\n }, options.workerOptions);\n }\n if (Evented)\n GeoJSONSource.__proto__ = Evented;\n GeoJSONSource.prototype = Object.create(Evented && Evented.prototype);\n GeoJSONSource.prototype.constructor = GeoJSONSource;\n GeoJSONSource.prototype.load = function load() {\n var this$1 = this;\n this.fire(new performance.Event('dataloading', { dataType: 'source' }));\n this._updateWorkerData(function (err) {\n if (err) {\n this$1.fire(new performance.ErrorEvent(err));\n return;\n }\n var data = {\n dataType: 'source',\n sourceDataType: 'metadata'\n };\n if (this$1._collectResourceTiming && this$1._resourceTiming && this$1._resourceTiming.length > 0) {\n data.resourceTiming = this$1._resourceTiming;\n this$1._resourceTiming = [];\n }\n this$1.fire(new performance.Event('data', data));\n });\n };\n GeoJSONSource.prototype.onAdd = function onAdd(map) {\n this.map = map;\n this.load();\n };\n GeoJSONSource.prototype.setData = function setData(data) {\n var this$1 = this;\n this._data = data;\n this.fire(new performance.Event('dataloading', { dataType: 'source' }));\n this._updateWorkerData(function (err) {\n if (err) {\n this$1.fire(new performance.ErrorEvent(err));\n return;\n }\n var data = {\n dataType: 'source',\n sourceDataType: 'content'\n };\n if (this$1._collectResourceTiming && this$1._resourceTiming && this$1._resourceTiming.length > 0) {\n data.resourceTiming = this$1._resourceTiming;\n this$1._resourceTiming = [];\n }\n this$1.fire(new performance.Event('data', data));\n });\n return this;\n };\n GeoJSONSource.prototype.getClusterExpansionZoom = function getClusterExpansionZoom(clusterId, callback) {\n this.actor.send('geojson.getClusterExpansionZoom', {\n clusterId: clusterId,\n source: this.id\n }, callback);\n return this;\n };\n GeoJSONSource.prototype.getClusterChildren = function getClusterChildren(clusterId, callback) {\n this.actor.send('geojson.getClusterChildren', {\n clusterId: clusterId,\n source: this.id\n }, callback);\n return this;\n };\n GeoJSONSource.prototype.getClusterLeaves = function getClusterLeaves(clusterId, limit, offset, callback) {\n this.actor.send('geojson.getClusterLeaves', {\n source: this.id,\n clusterId: clusterId,\n limit: limit,\n offset: offset\n }, callback);\n return this;\n };\n GeoJSONSource.prototype._updateWorkerData = function _updateWorkerData(callback) {\n var this$1 = this;\n this._loaded = false;\n var options = performance.extend({}, this.workerOptions);\n var data = this._data;\n if (typeof data === 'string') {\n options.request = this.map._requestManager.transformRequest(performance.browser.resolveURL(data), performance.ResourceType.Source);\n options.request.collectResourceTiming = this._collectResourceTiming;\n } else {\n options.data = JSON.stringify(data);\n }\n this.actor.send(this.type + '.loadData', options, function (err, result) {\n if (this$1._removed || result && result.abandoned) {\n return;\n }\n this$1._loaded = true;\n if (result && result.resourceTiming && result.resourceTiming[this$1.id]) {\n this$1._resourceTiming = result.resourceTiming[this$1.id].slice(0);\n }\n this$1.actor.send(this$1.type + '.coalesce', { source: options.source }, null);\n callback(err);\n });\n };\n GeoJSONSource.prototype.loaded = function loaded() {\n return this._loaded;\n };\n GeoJSONSource.prototype.loadTile = function loadTile(tile, callback) {\n var this$1 = this;\n var message = !tile.actor ? 'loadTile' : 'reloadTile';\n tile.actor = this.actor;\n var params = {\n type: this.type,\n uid: tile.uid,\n tileID: tile.tileID,\n zoom: tile.tileID.overscaledZ,\n maxZoom: this.maxzoom,\n tileSize: this.tileSize,\n source: this.id,\n pixelRatio: performance.browser.devicePixelRatio,\n showCollisionBoxes: this.map.showCollisionBoxes,\n promoteId: this.promoteId\n };\n tile.request = this.actor.send(message, params, function (err, data) {\n delete tile.request;\n tile.unloadVectorData();\n if (tile.aborted) {\n return callback(null);\n }\n if (err) {\n return callback(err);\n }\n tile.loadVectorData(data, this$1.map.painter, message === 'reloadTile');\n return callback(null);\n });\n };\n GeoJSONSource.prototype.abortTile = function abortTile(tile) {\n if (tile.request) {\n tile.request.cancel();\n delete tile.request;\n }\n tile.aborted = true;\n };\n GeoJSONSource.prototype.unloadTile = function unloadTile(tile) {\n tile.unloadVectorData();\n this.actor.send('removeTile', {\n uid: tile.uid,\n type: this.type,\n source: this.id\n });\n };\n GeoJSONSource.prototype.onRemove = function onRemove() {\n this._removed = true;\n this.actor.send('removeSource', {\n type: this.type,\n source: this.id\n });\n };\n GeoJSONSource.prototype.serialize = function serialize() {\n return performance.extend({}, this._options, {\n type: this.type,\n data: this._data\n });\n };\n GeoJSONSource.prototype.hasTransition = function hasTransition() {\n return false;\n };\n return GeoJSONSource;\n}(performance.Evented);\n\nvar rasterBoundsAttributes = performance.createLayout([\n {\n name: 'a_pos',\n type: 'Int16',\n components: 2\n },\n {\n name: 'a_texture_pos',\n type: 'Int16',\n components: 2\n }\n]);\n\nvar ImageSource = function (Evented) {\n function ImageSource(id, options, dispatcher, eventedParent) {\n Evented.call(this);\n this.id = id;\n this.dispatcher = dispatcher;\n this.coordinates = options.coordinates;\n this.type = 'image';\n this.minzoom = 0;\n this.maxzoom = 22;\n this.tileSize = 512;\n this.tiles = {};\n this._loaded = false;\n this.setEventedParent(eventedParent);\n this.options = options;\n }\n if (Evented)\n ImageSource.__proto__ = Evented;\n ImageSource.prototype = Object.create(Evented && Evented.prototype);\n ImageSource.prototype.constructor = ImageSource;\n ImageSource.prototype.load = function load(newCoordinates, successCallback) {\n var this$1 = this;\n this._loaded = false;\n this.fire(new performance.Event('dataloading', { dataType: 'source' }));\n this.url = this.options.url;\n performance.getImage(this.map._requestManager.transformRequest(this.url, performance.ResourceType.Image), function (err, image) {\n this$1._loaded = true;\n if (err) {\n this$1.fire(new performance.ErrorEvent(err));\n } else if (image) {\n this$1.image = image;\n if (newCoordinates) {\n this$1.coordinates = newCoordinates;\n }\n if (successCallback) {\n successCallback();\n }\n this$1._finishLoading();\n }\n });\n };\n ImageSource.prototype.loaded = function loaded() {\n return this._loaded;\n };\n ImageSource.prototype.updateImage = function updateImage(options) {\n var this$1 = this;\n if (!this.image || !options.url) {\n return this;\n }\n this.options.url = options.url;\n this.load(options.coordinates, function () {\n this$1.texture = null;\n });\n return this;\n };\n ImageSource.prototype._finishLoading = function _finishLoading() {\n if (this.map) {\n this.setCoordinates(this.coordinates);\n this.fire(new performance.Event('data', {\n dataType: 'source',\n sourceDataType: 'metadata'\n }));\n }\n };\n ImageSource.prototype.onAdd = function onAdd(map) {\n this.map = map;\n this.load();\n };\n ImageSource.prototype.setCoordinates = function setCoordinates(coordinates) {\n var this$1 = this;\n this.coordinates = coordinates;\n var cornerCoords = coordinates.map(performance.MercatorCoordinate.fromLngLat);\n this.tileID = getCoordinatesCenterTileID(cornerCoords);\n this.minzoom = this.maxzoom = this.tileID.z;\n var tileCoords = cornerCoords.map(function (coord) {\n return this$1.tileID.getTilePoint(coord)._round();\n });\n this._boundsArray = new performance.StructArrayLayout4i8();\n this._boundsArray.emplaceBack(tileCoords[0].x, tileCoords[0].y, 0, 0);\n this._boundsArray.emplaceBack(tileCoords[1].x, tileCoords[1].y, performance.EXTENT, 0);\n this._boundsArray.emplaceBack(tileCoords[3].x, tileCoords[3].y, 0, performance.EXTENT);\n this._boundsArray.emplaceBack(tileCoords[2].x, tileCoords[2].y, performance.EXTENT, performance.EXTENT);\n if (this.boundsBuffer) {\n this.boundsBuffer.destroy();\n delete this.boundsBuffer;\n }\n this.fire(new performance.Event('data', {\n dataType: 'source',\n sourceDataType: 'content'\n }));\n return this;\n };\n ImageSource.prototype.prepare = function prepare() {\n if (Object.keys(this.tiles).length === 0 || !this.image) {\n return;\n }\n var context = this.map.painter.context;\n var gl = context.gl;\n if (!this.boundsBuffer) {\n this.boundsBuffer = context.createVertexBuffer(this._boundsArray, rasterBoundsAttributes.members);\n }\n if (!this.boundsSegments) {\n this.boundsSegments = performance.SegmentVector.simpleSegment(0, 0, 4, 2);\n }\n if (!this.texture) {\n this.texture = new performance.Texture(context, this.image, gl.RGBA);\n this.texture.bind(gl.LINEAR, gl.CLAMP_TO_EDGE);\n }\n for (var w in this.tiles) {\n var tile = this.tiles[w];\n if (tile.state !== 'loaded') {\n tile.state = 'loaded';\n tile.texture = this.texture;\n }\n }\n };\n ImageSource.prototype.loadTile = function loadTile(tile, callback) {\n if (this.tileID && this.tileID.equals(tile.tileID.canonical)) {\n this.tiles[String(tile.tileID.wrap)] = tile;\n tile.buckets = {};\n callback(null);\n } else {\n tile.state = 'errored';\n callback(null);\n }\n };\n ImageSource.prototype.serialize = function serialize() {\n return {\n type: 'image',\n url: this.options.url,\n coordinates: this.coordinates\n };\n };\n ImageSource.prototype.hasTransition = function hasTransition() {\n return false;\n };\n return ImageSource;\n}(performance.Evented);\nfunction getCoordinatesCenterTileID(coords) {\n var minX = Infinity;\n var minY = Infinity;\n var maxX = -Infinity;\n var maxY = -Infinity;\n for (var i = 0, list = coords; i < list.length; i += 1) {\n var coord = list[i];\n minX = Math.min(minX, coord.x);\n minY = Math.min(minY, coord.y);\n maxX = Math.max(maxX, coord.x);\n maxY = Math.max(maxY, coord.y);\n }\n var dx = maxX - minX;\n var dy = maxY - minY;\n var dMax = Math.max(dx, dy);\n var zoom = Math.max(0, Math.floor(-Math.log(dMax) / Math.LN2));\n var tilesAtZoom = Math.pow(2, zoom);\n return new performance.CanonicalTileID(zoom, Math.floor((minX + maxX) / 2 * tilesAtZoom), Math.floor((minY + maxY) / 2 * tilesAtZoom));\n}\n\nvar VideoSource = function (ImageSource) {\n function VideoSource(id, options, dispatcher, eventedParent) {\n ImageSource.call(this, id, options, dispatcher, eventedParent);\n this.roundZoom = true;\n this.type = 'video';\n this.options = options;\n }\n if (ImageSource)\n VideoSource.__proto__ = ImageSource;\n VideoSource.prototype = Object.create(ImageSource && ImageSource.prototype);\n VideoSource.prototype.constructor = VideoSource;\n VideoSource.prototype.load = function load() {\n var this$1 = this;\n this._loaded = false;\n var options = this.options;\n this.urls = [];\n for (var i = 0, list = options.urls; i < list.length; i += 1) {\n var url = list[i];\n this.urls.push(this.map._requestManager.transformRequest(url, performance.ResourceType.Source).url);\n }\n performance.getVideo(this.urls, function (err, video) {\n this$1._loaded = true;\n if (err) {\n this$1.fire(new performance.ErrorEvent(err));\n } else if (video) {\n this$1.video = video;\n this$1.video.loop = true;\n this$1.video.addEventListener('playing', function () {\n this$1.map.triggerRepaint();\n });\n if (this$1.map) {\n this$1.video.play();\n }\n this$1._finishLoading();\n }\n });\n };\n VideoSource.prototype.pause = function pause() {\n if (this.video) {\n this.video.pause();\n }\n };\n VideoSource.prototype.play = function play() {\n if (this.video) {\n this.video.play();\n }\n };\n VideoSource.prototype.seek = function seek(seconds) {\n if (this.video) {\n var seekableRange = this.video.seekable;\n if (seconds < seekableRange.start(0) || seconds > seekableRange.end(0)) {\n this.fire(new performance.ErrorEvent(new performance.ValidationError('sources.' + this.id, null, 'Playback for this video can be set only between the ' + seekableRange.start(0) + ' and ' + seekableRange.end(0) + '-second mark.')));\n } else {\n this.video.currentTime = seconds;\n }\n }\n };\n VideoSource.prototype.getVideo = function getVideo() {\n return this.video;\n };\n VideoSource.prototype.onAdd = function onAdd(map) {\n if (this.map) {\n return;\n }\n this.map = map;\n this.load();\n if (this.video) {\n this.video.play();\n this.setCoordinates(this.coordinates);\n }\n };\n VideoSource.prototype.prepare = function prepare() {\n if (Object.keys(this.tiles).length === 0 || this.video.readyState < 2) {\n return;\n }\n var context = this.map.painter.context;\n var gl = context.gl;\n if (!this.boundsBuffer) {\n this.boundsBuffer = context.createVertexBuffer(this._boundsArray, rasterBoundsAttributes.members);\n }\n if (!this.boundsSegments) {\n this.boundsSegments = performance.SegmentVector.simpleSegment(0, 0, 4, 2);\n }\n if (!this.texture) {\n this.texture = new performance.Texture(context, this.video, gl.RGBA);\n this.texture.bind(gl.LINEAR, gl.CLAMP_TO_EDGE);\n } else if (!this.video.paused) {\n this.texture.bind(gl.LINEAR, gl.CLAMP_TO_EDGE);\n gl.texSubImage2D(gl.TEXTURE_2D, 0, 0, 0, gl.RGBA, gl.UNSIGNED_BYTE, this.video);\n }\n for (var w in this.tiles) {\n var tile = this.tiles[w];\n if (tile.state !== 'loaded') {\n tile.state = 'loaded';\n tile.texture = this.texture;\n }\n }\n };\n VideoSource.prototype.serialize = function serialize() {\n return {\n type: 'video',\n urls: this.urls,\n coordinates: this.coordinates\n };\n };\n VideoSource.prototype.hasTransition = function hasTransition() {\n return this.video && !this.video.paused;\n };\n return VideoSource;\n}(ImageSource);\n\nvar CanvasSource = function (ImageSource) {\n function CanvasSource(id, options, dispatcher, eventedParent) {\n ImageSource.call(this, id, options, dispatcher, eventedParent);\n if (!options.coordinates) {\n this.fire(new performance.ErrorEvent(new performance.ValidationError('sources.' + id, null, 'missing required property \"coordinates\"')));\n } else if (!Array.isArray(options.coordinates) || options.coordinates.length !== 4 || options.coordinates.some(function (c) {\n return !Array.isArray(c) || c.length !== 2 || c.some(function (l) {\n return typeof l !== 'number';\n });\n })) {\n this.fire(new performance.ErrorEvent(new performance.ValidationError('sources.' + id, null, '\"coordinates\" property must be an array of 4 longitude/latitude array pairs')));\n }\n if (options.animate && typeof options.animate !== 'boolean') {\n this.fire(new performance.ErrorEvent(new performance.ValidationError('sources.' + id, null, 'optional \"animate\" property must be a boolean value')));\n }\n if (!options.canvas) {\n this.fire(new performance.ErrorEvent(new performance.ValidationError('sources.' + id, null, 'missing required property \"canvas\"')));\n } else if (typeof options.canvas !== 'string' && !(options.canvas instanceof performance.window.HTMLCanvasElement)) {\n this.fire(new performance.ErrorEvent(new performance.ValidationError('sources.' + id, null, '\"canvas\" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance')));\n }\n this.options = options;\n this.animate = options.animate !== undefined ? options.animate : true;\n }\n if (ImageSource)\n CanvasSource.__proto__ = ImageSource;\n CanvasSource.prototype = Object.create(ImageSource && ImageSource.prototype);\n CanvasSource.prototype.constructor = CanvasSource;\n CanvasSource.prototype.load = function load() {\n this._loaded = true;\n if (!this.canvas) {\n this.canvas = this.options.canvas instanceof performance.window.HTMLCanvasElement ? this.options.canvas : performance.window.document.getElementById(this.options.canvas);\n }\n this.width = this.canvas.width;\n this.height = this.canvas.height;\n if (this._hasInvalidDimensions()) {\n this.fire(new performance.ErrorEvent(new Error('Canvas dimensions cannot be less than or equal to zero.')));\n return;\n }\n this.play = function () {\n this._playing = true;\n this.map.triggerRepaint();\n };\n this.pause = function () {\n if (this._playing) {\n this.prepare();\n this._playing = false;\n }\n };\n this._finishLoading();\n };\n CanvasSource.prototype.getCanvas = function getCanvas() {\n return this.canvas;\n };\n CanvasSource.prototype.onAdd = function onAdd(map) {\n this.map = map;\n this.load();\n if (this.canvas) {\n if (this.animate) {\n this.play();\n }\n }\n };\n CanvasSource.prototype.onRemove = function onRemove() {\n this.pause();\n };\n CanvasSource.prototype.prepare = function prepare() {\n var resize = false;\n if (this.canvas.width !== this.width) {\n this.width = this.canvas.width;\n resize = true;\n }\n if (this.canvas.height !== this.height) {\n this.height = this.canvas.height;\n resize = true;\n }\n if (this._hasInvalidDimensions()) {\n return;\n }\n if (Object.keys(this.tiles).length === 0) {\n return;\n }\n var context = this.map.painter.context;\n var gl = context.gl;\n if (!this.boundsBuffer) {\n this.boundsBuffer = context.createVertexBuffer(this._boundsArray, rasterBoundsAttributes.members);\n }\n if (!this.boundsSegments) {\n this.boundsSegments = performance.SegmentVector.simpleSegment(0, 0, 4, 2);\n }\n if (!this.texture) {\n this.texture = new performance.Texture(context, this.canvas, gl.RGBA, { premultiply: true });\n } else if (resize || this._playing) {\n this.texture.update(this.canvas, { premultiply: true });\n }\n for (var w in this.tiles) {\n var tile = this.tiles[w];\n if (tile.state !== 'loaded') {\n tile.state = 'loaded';\n tile.texture = this.texture;\n }\n }\n };\n CanvasSource.prototype.serialize = function serialize() {\n return {\n type: 'canvas',\n coordinates: this.coordinates\n };\n };\n CanvasSource.prototype.hasTransition = function hasTransition() {\n return this._playing;\n };\n CanvasSource.prototype._hasInvalidDimensions = function _hasInvalidDimensions() {\n for (var i = 0, list = [\n this.canvas.width,\n this.canvas.height\n ]; i < list.length; i += 1) {\n var x = list[i];\n if (isNaN(x) || x <= 0) {\n return true;\n }\n }\n return false;\n };\n return CanvasSource;\n}(ImageSource);\n\nvar sourceTypes = {\n vector: VectorTileSource,\n raster: RasterTileSource,\n 'raster-dem': RasterDEMTileSource,\n geojson: GeoJSONSource,\n video: VideoSource,\n image: ImageSource,\n canvas: CanvasSource\n};\nvar create = function (id, specification, dispatcher, eventedParent) {\n var source = new sourceTypes[specification.type](id, specification, dispatcher, eventedParent);\n if (source.id !== id) {\n throw new Error('Expected Source id to be ' + id + ' instead of ' + source.id);\n }\n performance.bindAll([\n 'load',\n 'abort',\n 'unload',\n 'serialize',\n 'prepare'\n ], source);\n return source;\n};\nvar getType = function (name) {\n return sourceTypes[name];\n};\nvar setType = function (name, type) {\n sourceTypes[name] = type;\n};\n\nfunction getPixelPosMatrix(transform, tileID) {\n var t = performance.identity([]);\n performance.translate(t, t, [\n 1,\n 1,\n 0\n ]);\n performance.scale(t, t, [\n transform.width * 0.5,\n transform.height * 0.5,\n 1\n ]);\n return performance.multiply(t, t, transform.calculatePosMatrix(tileID.toUnwrapped()));\n}\nfunction queryIncludes3DLayer(layers, styleLayers, sourceID) {\n if (layers) {\n for (var i = 0, list = layers; i < list.length; i += 1) {\n var layerID = list[i];\n var layer = styleLayers[layerID];\n if (layer && layer.source === sourceID && layer.type === 'fill-extrusion') {\n return true;\n }\n }\n } else {\n for (var key in styleLayers) {\n var layer$1 = styleLayers[key];\n if (layer$1.source === sourceID && layer$1.type === 'fill-extrusion') {\n return true;\n }\n }\n }\n return false;\n}\nfunction queryRenderedFeatures(sourceCache, styleLayers, serializedLayers, queryGeometry, params, transform) {\n var has3DLayer = queryIncludes3DLayer(params && params.layers, styleLayers, sourceCache.id);\n var maxPitchScaleFactor = transform.maxPitchScaleFactor();\n var tilesIn = sourceCache.tilesIn(queryGeometry, maxPitchScaleFactor, has3DLayer);\n tilesIn.sort(sortTilesIn);\n var renderedFeatureLayers = [];\n for (var i = 0, list = tilesIn; i < list.length; i += 1) {\n var tileIn = list[i];\n renderedFeatureLayers.push({\n wrappedTileID: tileIn.tileID.wrapped().key,\n queryResults: tileIn.tile.queryRenderedFeatures(styleLayers, serializedLayers, sourceCache._state, tileIn.queryGeometry, tileIn.cameraQueryGeometry, tileIn.scale, params, transform, maxPitchScaleFactor, getPixelPosMatrix(sourceCache.transform, tileIn.tileID))\n });\n }\n var result = mergeRenderedFeatureLayers(renderedFeatureLayers);\n for (var layerID in result) {\n result[layerID].forEach(function (featureWrapper) {\n var feature = featureWrapper.feature;\n var state = sourceCache.getFeatureState(feature.layer['source-layer'], feature.id);\n feature.source = feature.layer.source;\n if (feature.layer['source-layer']) {\n feature.sourceLayer = feature.layer['source-layer'];\n }\n feature.state = state;\n });\n }\n return result;\n}\nfunction queryRenderedSymbols(styleLayers, serializedLayers, sourceCaches, queryGeometry, params, collisionIndex, retainedQueryData) {\n var result = {};\n var renderedSymbols = collisionIndex.queryRenderedSymbols(queryGeometry);\n var bucketQueryData = [];\n for (var i = 0, list = Object.keys(renderedSymbols).map(Number); i < list.length; i += 1) {\n var bucketInstanceId = list[i];\n bucketQueryData.push(retainedQueryData[bucketInstanceId]);\n }\n bucketQueryData.sort(sortTilesIn);\n var loop = function () {\n var queryData = list$2[i$2];\n var bucketSymbols = queryData.featureIndex.lookupSymbolFeatures(renderedSymbols[queryData.bucketInstanceId], serializedLayers, queryData.bucketIndex, queryData.sourceLayerIndex, params.filter, params.layers, params.availableImages, styleLayers);\n for (var layerID in bucketSymbols) {\n var resultFeatures = result[layerID] = result[layerID] || [];\n var layerSymbols = bucketSymbols[layerID];\n layerSymbols.sort(function (a, b) {\n var featureSortOrder = queryData.featureSortOrder;\n if (featureSortOrder) {\n var sortedA = featureSortOrder.indexOf(a.featureIndex);\n var sortedB = featureSortOrder.indexOf(b.featureIndex);\n return sortedB - sortedA;\n } else {\n return b.featureIndex - a.featureIndex;\n }\n });\n for (var i$1 = 0, list$1 = layerSymbols; i$1 < list$1.length; i$1 += 1) {\n var symbolFeature = list$1[i$1];\n resultFeatures.push(symbolFeature);\n }\n }\n };\n for (var i$2 = 0, list$2 = bucketQueryData; i$2 < list$2.length; i$2 += 1)\n loop();\n var loop$1 = function (layerName) {\n result[layerName].forEach(function (featureWrapper) {\n var feature = featureWrapper.feature;\n var layer = styleLayers[layerName];\n var sourceCache = sourceCaches[layer.source];\n var state = sourceCache.getFeatureState(feature.layer['source-layer'], feature.id);\n feature.source = feature.layer.source;\n if (feature.layer['source-layer']) {\n feature.sourceLayer = feature.layer['source-layer'];\n }\n feature.state = state;\n });\n };\n for (var layerName in result)\n loop$1(layerName);\n return result;\n}\nfunction querySourceFeatures(sourceCache, params) {\n var tiles = sourceCache.getRenderableIds().map(function (id) {\n return sourceCache.getTileByID(id);\n });\n var result = [];\n var dataTiles = {};\n for (var i = 0; i < tiles.length; i++) {\n var tile = tiles[i];\n var dataID = tile.tileID.canonical.key;\n if (!dataTiles[dataID]) {\n dataTiles[dataID] = true;\n tile.querySourceFeatures(result, params);\n }\n }\n return result;\n}\nfunction sortTilesIn(a, b) {\n var idA = a.tileID;\n var idB = b.tileID;\n return idA.overscaledZ - idB.overscaledZ || idA.canonical.y - idB.canonical.y || idA.wrap - idB.wrap || idA.canonical.x - idB.canonical.x;\n}\nfunction mergeRenderedFeatureLayers(tiles) {\n var result = {};\n var wrappedIDLayerMap = {};\n for (var i$1 = 0, list$1 = tiles; i$1 < list$1.length; i$1 += 1) {\n var tile = list$1[i$1];\n var queryResults = tile.queryResults;\n var wrappedID = tile.wrappedTileID;\n var wrappedIDLayers = wrappedIDLayerMap[wrappedID] = wrappedIDLayerMap[wrappedID] || {};\n for (var layerID in queryResults) {\n var tileFeatures = queryResults[layerID];\n var wrappedIDFeatures = wrappedIDLayers[layerID] = wrappedIDLayers[layerID] || {};\n var resultFeatures = result[layerID] = result[layerID] || [];\n for (var i = 0, list = tileFeatures; i < list.length; i += 1) {\n var tileFeature = list[i];\n if (!wrappedIDFeatures[tileFeature.featureIndex]) {\n wrappedIDFeatures[tileFeature.featureIndex] = true;\n resultFeatures.push(tileFeature);\n }\n }\n }\n }\n return result;\n}\n\nvar TileCache = function TileCache(max, onRemove) {\n this.max = max;\n this.onRemove = onRemove;\n this.reset();\n};\nTileCache.prototype.reset = function reset() {\n for (var key in this.data) {\n for (var i = 0, list = this.data[key]; i < list.length; i += 1) {\n var removedData = list[i];\n if (removedData.timeout) {\n clearTimeout(removedData.timeout);\n }\n this.onRemove(removedData.value);\n }\n }\n this.data = {};\n this.order = [];\n return this;\n};\nTileCache.prototype.add = function add(tileID, data, expiryTimeout) {\n var this$1 = this;\n var key = tileID.wrapped().key;\n if (this.data[key] === undefined) {\n this.data[key] = [];\n }\n var dataWrapper = {\n value: data,\n timeout: undefined\n };\n if (expiryTimeout !== undefined) {\n dataWrapper.timeout = setTimeout(function () {\n this$1.remove(tileID, dataWrapper);\n }, expiryTimeout);\n }\n this.data[key].push(dataWrapper);\n this.order.push(key);\n if (this.order.length > this.max) {\n var removedData = this._getAndRemoveByKey(this.order[0]);\n if (removedData) {\n this.onRemove(removedData);\n }\n }\n return this;\n};\nTileCache.prototype.has = function has(tileID) {\n return tileID.wrapped().key in this.data;\n};\nTileCache.prototype.getAndRemove = function getAndRemove(tileID) {\n if (!this.has(tileID)) {\n return null;\n }\n return this._getAndRemoveByKey(tileID.wrapped().key);\n};\nTileCache.prototype._getAndRemoveByKey = function _getAndRemoveByKey(key) {\n var data = this.data[key].shift();\n if (data.timeout) {\n clearTimeout(data.timeout);\n }\n if (this.data[key].length === 0) {\n delete this.data[key];\n }\n this.order.splice(this.order.indexOf(key), 1);\n return data.value;\n};\nTileCache.prototype.getByKey = function getByKey(key) {\n var data = this.data[key];\n return data ? data[0].value : null;\n};\nTileCache.prototype.get = function get(tileID) {\n if (!this.has(tileID)) {\n return null;\n }\n var data = this.data[tileID.wrapped().key][0];\n return data.value;\n};\nTileCache.prototype.remove = function remove(tileID, value) {\n if (!this.has(tileID)) {\n return this;\n }\n var key = tileID.wrapped().key;\n var dataIndex = value === undefined ? 0 : this.data[key].indexOf(value);\n var data = this.data[key][dataIndex];\n this.data[key].splice(dataIndex, 1);\n if (data.timeout) {\n clearTimeout(data.timeout);\n }\n if (this.data[key].length === 0) {\n delete this.data[key];\n }\n this.onRemove(data.value);\n this.order.splice(this.order.indexOf(key), 1);\n return this;\n};\nTileCache.prototype.setMaxSize = function setMaxSize(max) {\n this.max = max;\n while (this.order.length > this.max) {\n var removedData = this._getAndRemoveByKey(this.order[0]);\n if (removedData) {\n this.onRemove(removedData);\n }\n }\n return this;\n};\nTileCache.prototype.filter = function filter(filterFn) {\n var removed = [];\n for (var key in this.data) {\n for (var i = 0, list = this.data[key]; i < list.length; i += 1) {\n var entry = list[i];\n if (!filterFn(entry.value)) {\n removed.push(entry);\n }\n }\n }\n for (var i$1 = 0, list$1 = removed; i$1 < list$1.length; i$1 += 1) {\n var r = list$1[i$1];\n this.remove(r.value.tileID, r);\n }\n};\n\nvar IndexBuffer = function IndexBuffer(context, array, dynamicDraw) {\n this.context = context;\n var gl = context.gl;\n this.buffer = gl.createBuffer();\n this.dynamicDraw = Boolean(dynamicDraw);\n this.context.unbindVAO();\n context.bindElementBuffer.set(this.buffer);\n gl.bufferData(gl.ELEMENT_ARRAY_BUFFER, array.arrayBuffer, this.dynamicDraw ? gl.DYNAMIC_DRAW : gl.STATIC_DRAW);\n if (!this.dynamicDraw) {\n delete array.arrayBuffer;\n }\n};\nIndexBuffer.prototype.bind = function bind() {\n this.context.bindElementBuffer.set(this.buffer);\n};\nIndexBuffer.prototype.updateData = function updateData(array) {\n var gl = this.context.gl;\n this.context.unbindVAO();\n this.bind();\n gl.bufferSubData(gl.ELEMENT_ARRAY_BUFFER, 0, array.arrayBuffer);\n};\nIndexBuffer.prototype.destroy = function destroy() {\n var gl = this.context.gl;\n if (this.buffer) {\n gl.deleteBuffer(this.buffer);\n delete this.buffer;\n }\n};\n\nvar AttributeType = {\n Int8: 'BYTE',\n Uint8: 'UNSIGNED_BYTE',\n Int16: 'SHORT',\n Uint16: 'UNSIGNED_SHORT',\n Int32: 'INT',\n Uint32: 'UNSIGNED_INT',\n Float32: 'FLOAT'\n};\nvar VertexBuffer = function VertexBuffer(context, array, attributes, dynamicDraw) {\n this.length = array.length;\n this.attributes = attributes;\n this.itemSize = array.bytesPerElement;\n this.dynamicDraw = dynamicDraw;\n this.context = context;\n var gl = context.gl;\n this.buffer = gl.createBuffer();\n context.bindVertexBuffer.set(this.buffer);\n gl.bufferData(gl.ARRAY_BUFFER, array.arrayBuffer, this.dynamicDraw ? gl.DYNAMIC_DRAW : gl.STATIC_DRAW);\n if (!this.dynamicDraw) {\n delete array.arrayBuffer;\n }\n};\nVertexBuffer.prototype.bind = function bind() {\n this.context.bindVertexBuffer.set(this.buffer);\n};\nVertexBuffer.prototype.updateData = function updateData(array) {\n var gl = this.context.gl;\n this.bind();\n gl.bufferSubData(gl.ARRAY_BUFFER, 0, array.arrayBuffer);\n};\nVertexBuffer.prototype.enableAttributes = function enableAttributes(gl, program) {\n for (var j = 0; j < this.attributes.length; j++) {\n var member = this.attributes[j];\n var attribIndex = program.attributes[member.name];\n if (attribIndex !== undefined) {\n gl.enableVertexAttribArray(attribIndex);\n }\n }\n};\nVertexBuffer.prototype.setVertexAttribPointers = function setVertexAttribPointers(gl, program, vertexOffset) {\n for (var j = 0; j < this.attributes.length; j++) {\n var member = this.attributes[j];\n var attribIndex = program.attributes[member.name];\n if (attribIndex !== undefined) {\n gl.vertexAttribPointer(attribIndex, member.components, gl[AttributeType[member.type]], false, this.itemSize, member.offset + this.itemSize * (vertexOffset || 0));\n }\n }\n};\nVertexBuffer.prototype.destroy = function destroy() {\n var gl = this.context.gl;\n if (this.buffer) {\n gl.deleteBuffer(this.buffer);\n delete this.buffer;\n }\n};\n\nvar BaseValue = function BaseValue(context) {\n this.gl = context.gl;\n this.default = this.getDefault();\n this.current = this.default;\n this.dirty = false;\n};\nBaseValue.prototype.get = function get() {\n return this.current;\n};\nBaseValue.prototype.set = function set(value) {\n};\nBaseValue.prototype.getDefault = function getDefault() {\n return this.default;\n};\nBaseValue.prototype.setDefault = function setDefault() {\n this.set(this.default);\n};\nvar ClearColor = function (BaseValue) {\n function ClearColor() {\n BaseValue.apply(this, arguments);\n }\n if (BaseValue)\n ClearColor.__proto__ = BaseValue;\n ClearColor.prototype = Object.create(BaseValue && BaseValue.prototype);\n ClearColor.prototype.constructor = ClearColor;\n ClearColor.prototype.getDefault = function getDefault() {\n return performance.Color.transparent;\n };\n ClearColor.prototype.set = function set(v) {\n var c = this.current;\n if (v.r === c.r && v.g === c.g && v.b === c.b && v.a === c.a && !this.dirty) {\n return;\n }\n this.gl.clearColor(v.r, v.g, v.b, v.a);\n this.current = v;\n this.dirty = false;\n };\n return ClearColor;\n}(BaseValue);\nvar ClearDepth = function (BaseValue) {\n function ClearDepth() {\n BaseValue.apply(this, arguments);\n }\n if (BaseValue)\n ClearDepth.__proto__ = BaseValue;\n ClearDepth.prototype = Object.create(BaseValue && BaseValue.prototype);\n ClearDepth.prototype.constructor = ClearDepth;\n ClearDepth.prototype.getDefault = function getDefault() {\n return 1;\n };\n ClearDepth.prototype.set = function set(v) {\n if (v === this.current && !this.dirty) {\n return;\n }\n this.gl.clearDepth(v);\n this.current = v;\n this.dirty = false;\n };\n return ClearDepth;\n}(BaseValue);\nvar ClearStencil = function (BaseValue) {\n function ClearStencil() {\n BaseValue.apply(this, arguments);\n }\n if (BaseValue)\n ClearStencil.__proto__ = BaseValue;\n ClearStencil.prototype = Object.create(BaseValue && BaseValue.prototype);\n ClearStencil.prototype.constructor = ClearStencil;\n ClearStencil.prototype.getDefault = function getDefault() {\n return 0;\n };\n ClearStencil.prototype.set = function set(v) {\n if (v === this.current && !this.dirty) {\n return;\n }\n this.gl.clearStencil(v);\n this.current = v;\n this.dirty = false;\n };\n return ClearStencil;\n}(BaseValue);\nvar ColorMask = function (BaseValue) {\n function ColorMask() {\n BaseValue.apply(this, arguments);\n }\n if (BaseValue)\n ColorMask.__proto__ = BaseValue;\n ColorMask.prototype = Object.create(BaseValue && BaseValue.prototype);\n ColorMask.prototype.constructor = ColorMask;\n ColorMask.prototype.getDefault = function getDefault() {\n return [\n true,\n true,\n true,\n true\n ];\n };\n ColorMask.prototype.set = function set(v) {\n var c = this.current;\n if (v[0] === c[0] && v[1] === c[1] && v[2] === c[2] && v[3] === c[3] && !this.dirty) {\n return;\n }\n this.gl.colorMask(v[0], v[1], v[2], v[3]);\n this.current = v;\n this.dirty = false;\n };\n return ColorMask;\n}(BaseValue);\nvar DepthMask = function (BaseValue) {\n function DepthMask() {\n BaseValue.apply(this, arguments);\n }\n if (BaseValue)\n DepthMask.__proto__ = BaseValue;\n DepthMask.prototype = Object.create(BaseValue && BaseValue.prototype);\n DepthMask.prototype.constructor = DepthMask;\n DepthMask.prototype.getDefault = function getDefault() {\n return true;\n };\n DepthMask.prototype.set = function set(v) {\n if (v === this.current && !this.dirty) {\n return;\n }\n this.gl.depthMask(v);\n this.current = v;\n this.dirty = false;\n };\n return DepthMask;\n}(BaseValue);\nvar StencilMask = function (BaseValue) {\n function StencilMask() {\n BaseValue.apply(this, arguments);\n }\n if (BaseValue)\n StencilMask.__proto__ = BaseValue;\n StencilMask.prototype = Object.create(BaseValue && BaseValue.prototype);\n StencilMask.prototype.constructor = StencilMask;\n StencilMask.prototype.getDefault = function getDefault() {\n return 255;\n };\n StencilMask.prototype.set = function set(v) {\n if (v === this.current && !this.dirty) {\n return;\n }\n this.gl.stencilMask(v);\n this.current = v;\n this.dirty = false;\n };\n return StencilMask;\n}(BaseValue);\nvar StencilFunc = function (BaseValue) {\n function StencilFunc() {\n BaseValue.apply(this, arguments);\n }\n if (BaseValue)\n StencilFunc.__proto__ = BaseValue;\n StencilFunc.prototype = Object.create(BaseValue && BaseValue.prototype);\n StencilFunc.prototype.constructor = StencilFunc;\n StencilFunc.prototype.getDefault = function getDefault() {\n return {\n func: this.gl.ALWAYS,\n ref: 0,\n mask: 255\n };\n };\n StencilFunc.prototype.set = function set(v) {\n var c = this.current;\n if (v.func === c.func && v.ref === c.ref && v.mask === c.mask && !this.dirty) {\n return;\n }\n this.gl.stencilFunc(v.func, v.ref, v.mask);\n this.current = v;\n this.dirty = false;\n };\n return StencilFunc;\n}(BaseValue);\nvar StencilOp = function (BaseValue) {\n function StencilOp() {\n BaseValue.apply(this, arguments);\n }\n if (BaseValue)\n StencilOp.__proto__ = BaseValue;\n StencilOp.prototype = Object.create(BaseValue && BaseValue.prototype);\n StencilOp.prototype.constructor = StencilOp;\n StencilOp.prototype.getDefault = function getDefault() {\n var gl = this.gl;\n return [\n gl.KEEP,\n gl.KEEP,\n gl.KEEP\n ];\n };\n StencilOp.prototype.set = function set(v) {\n var c = this.current;\n if (v[0] === c[0] && v[1] === c[1] && v[2] === c[2] && !this.dirty) {\n return;\n }\n this.gl.stencilOp(v[0], v[1], v[2]);\n this.current = v;\n this.dirty = false;\n };\n return StencilOp;\n}(BaseValue);\nvar StencilTest = function (BaseValue) {\n function StencilTest() {\n BaseValue.apply(this, arguments);\n }\n if (BaseValue)\n StencilTest.__proto__ = BaseValue;\n StencilTest.prototype = Object.create(BaseValue && BaseValue.prototype);\n StencilTest.prototype.constructor = StencilTest;\n StencilTest.prototype.getDefault = function getDefault() {\n return false;\n };\n StencilTest.prototype.set = function set(v) {\n if (v === this.current && !this.dirty) {\n return;\n }\n var gl = this.gl;\n if (v) {\n gl.enable(gl.STENCIL_TEST);\n } else {\n gl.disable(gl.STENCIL_TEST);\n }\n this.current = v;\n this.dirty = false;\n };\n return StencilTest;\n}(BaseValue);\nvar DepthRange = function (BaseValue) {\n function DepthRange() {\n BaseValue.apply(this, arguments);\n }\n if (BaseValue)\n DepthRange.__proto__ = BaseValue;\n DepthRange.prototype = Object.create(BaseValue && BaseValue.prototype);\n DepthRange.prototype.constructor = DepthRange;\n DepthRange.prototype.getDefault = function getDefault() {\n return [\n 0,\n 1\n ];\n };\n DepthRange.prototype.set = function set(v) {\n var c = this.current;\n if (v[0] === c[0] && v[1] === c[1] && !this.dirty) {\n return;\n }\n this.gl.depthRange(v[0], v[1]);\n this.current = v;\n this.dirty = false;\n };\n return DepthRange;\n}(BaseValue);\nvar DepthTest = function (BaseValue) {\n function DepthTest() {\n BaseValue.apply(this, arguments);\n }\n if (BaseValue)\n DepthTest.__proto__ = BaseValue;\n DepthTest.prototype = Object.create(BaseValue && BaseValue.prototype);\n DepthTest.prototype.constructor = DepthTest;\n DepthTest.prototype.getDefault = function getDefault() {\n return false;\n };\n DepthTest.prototype.set = function set(v) {\n if (v === this.current && !this.dirty) {\n return;\n }\n var gl = this.gl;\n if (v) {\n gl.enable(gl.DEPTH_TEST);\n } else {\n gl.disable(gl.DEPTH_TEST);\n }\n this.current = v;\n this.dirty = false;\n };\n return DepthTest;\n}(BaseValue);\nvar DepthFunc = function (BaseValue) {\n function DepthFunc() {\n BaseValue.apply(this, arguments);\n }\n if (BaseValue)\n DepthFunc.__proto__ = BaseValue;\n DepthFunc.prototype = Object.create(BaseValue && BaseValue.prototype);\n DepthFunc.prototype.constructor = DepthFunc;\n DepthFunc.prototype.getDefault = function getDefault() {\n return this.gl.LESS;\n };\n DepthFunc.prototype.set = function set(v) {\n if (v === this.current && !this.dirty) {\n return;\n }\n this.gl.depthFunc(v);\n this.current = v;\n this.dirty = false;\n };\n return DepthFunc;\n}(BaseValue);\nvar Blend = function (BaseValue) {\n function Blend() {\n BaseValue.apply(this, arguments);\n }\n if (BaseValue)\n Blend.__proto__ = BaseValue;\n Blend.prototype = Object.create(BaseValue && BaseValue.prototype);\n Blend.prototype.constructor = Blend;\n Blend.prototype.getDefault = function getDefault() {\n return false;\n };\n Blend.prototype.set = function set(v) {\n if (v === this.current && !this.dirty) {\n return;\n }\n var gl = this.gl;\n if (v) {\n gl.enable(gl.BLEND);\n } else {\n gl.disable(gl.BLEND);\n }\n this.current = v;\n this.dirty = false;\n };\n return Blend;\n}(BaseValue);\nvar BlendFunc = function (BaseValue) {\n function BlendFunc() {\n BaseValue.apply(this, arguments);\n }\n if (BaseValue)\n BlendFunc.__proto__ = BaseValue;\n BlendFunc.prototype = Object.create(BaseValue && BaseValue.prototype);\n BlendFunc.prototype.constructor = BlendFunc;\n BlendFunc.prototype.getDefault = function getDefault() {\n var gl = this.gl;\n return [\n gl.ONE,\n gl.ZERO\n ];\n };\n BlendFunc.prototype.set = function set(v) {\n var c = this.current;\n if (v[0] === c[0] && v[1] === c[1] && !this.dirty) {\n return;\n }\n this.gl.blendFunc(v[0], v[1]);\n this.current = v;\n this.dirty = false;\n };\n return BlendFunc;\n}(BaseValue);\nvar BlendColor = function (BaseValue) {\n function BlendColor() {\n BaseValue.apply(this, arguments);\n }\n if (BaseValue)\n BlendColor.__proto__ = BaseValue;\n BlendColor.prototype = Object.create(BaseValue && BaseValue.prototype);\n BlendColor.prototype.constructor = BlendColor;\n BlendColor.prototype.getDefault = function getDefault() {\n return performance.Color.transparent;\n };\n BlendColor.prototype.set = function set(v) {\n var c = this.current;\n if (v.r === c.r && v.g === c.g && v.b === c.b && v.a === c.a && !this.dirty) {\n return;\n }\n this.gl.blendColor(v.r, v.g, v.b, v.a);\n this.current = v;\n this.dirty = false;\n };\n return BlendColor;\n}(BaseValue);\nvar BlendEquation = function (BaseValue) {\n function BlendEquation() {\n BaseValue.apply(this, arguments);\n }\n if (BaseValue)\n BlendEquation.__proto__ = BaseValue;\n BlendEquation.prototype = Object.create(BaseValue && BaseValue.prototype);\n BlendEquation.prototype.constructor = BlendEquation;\n BlendEquation.prototype.getDefault = function getDefault() {\n return this.gl.FUNC_ADD;\n };\n BlendEquation.prototype.set = function set(v) {\n if (v === this.current && !this.dirty) {\n return;\n }\n this.gl.blendEquation(v);\n this.current = v;\n this.dirty = false;\n };\n return BlendEquation;\n}(BaseValue);\nvar CullFace = function (BaseValue) {\n function CullFace() {\n BaseValue.apply(this, arguments);\n }\n if (BaseValue)\n CullFace.__proto__ = BaseValue;\n CullFace.prototype = Object.create(BaseValue && BaseValue.prototype);\n CullFace.prototype.constructor = CullFace;\n CullFace.prototype.getDefault = function getDefault() {\n return false;\n };\n CullFace.prototype.set = function set(v) {\n if (v === this.current && !this.dirty) {\n return;\n }\n var gl = this.gl;\n if (v) {\n gl.enable(gl.CULL_FACE);\n } else {\n gl.disable(gl.CULL_FACE);\n }\n this.current = v;\n this.dirty = false;\n };\n return CullFace;\n}(BaseValue);\nvar CullFaceSide = function (BaseValue) {\n function CullFaceSide() {\n BaseValue.apply(this, arguments);\n }\n if (BaseValue)\n CullFaceSide.__proto__ = BaseValue;\n CullFaceSide.prototype = Object.create(BaseValue && BaseValue.prototype);\n CullFaceSide.prototype.constructor = CullFaceSide;\n CullFaceSide.prototype.getDefault = function getDefault() {\n return this.gl.BACK;\n };\n CullFaceSide.prototype.set = function set(v) {\n if (v === this.current && !this.dirty) {\n return;\n }\n this.gl.cullFace(v);\n this.current = v;\n this.dirty = false;\n };\n return CullFaceSide;\n}(BaseValue);\nvar FrontFace = function (BaseValue) {\n function FrontFace() {\n BaseValue.apply(this, arguments);\n }\n if (BaseValue)\n FrontFace.__proto__ = BaseValue;\n FrontFace.prototype = Object.create(BaseValue && BaseValue.prototype);\n FrontFace.prototype.constructor = FrontFace;\n FrontFace.prototype.getDefault = function getDefault() {\n return this.gl.CCW;\n };\n FrontFace.prototype.set = function set(v) {\n if (v === this.current && !this.dirty) {\n return;\n }\n this.gl.frontFace(v);\n this.current = v;\n this.dirty = false;\n };\n return FrontFace;\n}(BaseValue);\nvar Program = function (BaseValue) {\n function Program() {\n BaseValue.apply(this, arguments);\n }\n if (BaseValue)\n Program.__proto__ = BaseValue;\n Program.prototype = Object.create(BaseValue && BaseValue.prototype);\n Program.prototype.constructor = Program;\n Program.prototype.getDefault = function getDefault() {\n return null;\n };\n Program.prototype.set = function set(v) {\n if (v === this.current && !this.dirty) {\n return;\n }\n this.gl.useProgram(v);\n this.current = v;\n this.dirty = false;\n };\n return Program;\n}(BaseValue);\nvar ActiveTextureUnit = function (BaseValue) {\n function ActiveTextureUnit() {\n BaseValue.apply(this, arguments);\n }\n if (BaseValue)\n ActiveTextureUnit.__proto__ = BaseValue;\n ActiveTextureUnit.prototype = Object.create(BaseValue && BaseValue.prototype);\n ActiveTextureUnit.prototype.constructor = ActiveTextureUnit;\n ActiveTextureUnit.prototype.getDefault = function getDefault() {\n return this.gl.TEXTURE0;\n };\n ActiveTextureUnit.prototype.set = function set(v) {\n if (v === this.current && !this.dirty) {\n return;\n }\n this.gl.activeTexture(v);\n this.current = v;\n this.dirty = false;\n };\n return ActiveTextureUnit;\n}(BaseValue);\nvar Viewport = function (BaseValue) {\n function Viewport() {\n BaseValue.apply(this, arguments);\n }\n if (BaseValue)\n Viewport.__proto__ = BaseValue;\n Viewport.prototype = Object.create(BaseValue && BaseValue.prototype);\n Viewport.prototype.constructor = Viewport;\n Viewport.prototype.getDefault = function getDefault() {\n var gl = this.gl;\n return [\n 0,\n 0,\n gl.drawingBufferWidth,\n gl.drawingBufferHeight\n ];\n };\n Viewport.prototype.set = function set(v) {\n var c = this.current;\n if (v[0] === c[0] && v[1] === c[1] && v[2] === c[2] && v[3] === c[3] && !this.dirty) {\n return;\n }\n this.gl.viewport(v[0], v[1], v[2], v[3]);\n this.current = v;\n this.dirty = false;\n };\n return Viewport;\n}(BaseValue);\nvar BindFramebuffer = function (BaseValue) {\n function BindFramebuffer() {\n BaseValue.apply(this, arguments);\n }\n if (BaseValue)\n BindFramebuffer.__proto__ = BaseValue;\n BindFramebuffer.prototype = Object.create(BaseValue && BaseValue.prototype);\n BindFramebuffer.prototype.constructor = BindFramebuffer;\n BindFramebuffer.prototype.getDefault = function getDefault() {\n return null;\n };\n BindFramebuffer.prototype.set = function set(v) {\n if (v === this.current && !this.dirty) {\n return;\n }\n var gl = this.gl;\n gl.bindFramebuffer(gl.FRAMEBUFFER, v);\n this.current = v;\n this.dirty = false;\n };\n return BindFramebuffer;\n}(BaseValue);\nvar BindRenderbuffer = function (BaseValue) {\n function BindRenderbuffer() {\n BaseValue.apply(this, arguments);\n }\n if (BaseValue)\n BindRenderbuffer.__proto__ = BaseValue;\n BindRenderbuffer.prototype = Object.create(BaseValue && BaseValue.prototype);\n BindRenderbuffer.prototype.constructor = BindRenderbuffer;\n BindRenderbuffer.prototype.getDefault = function getDefault() {\n return null;\n };\n BindRenderbuffer.prototype.set = function set(v) {\n if (v === this.current && !this.dirty) {\n return;\n }\n var gl = this.gl;\n gl.bindRenderbuffer(gl.RENDERBUFFER, v);\n this.current = v;\n this.dirty = false;\n };\n return BindRenderbuffer;\n}(BaseValue);\nvar BindTexture = function (BaseValue) {\n function BindTexture() {\n BaseValue.apply(this, arguments);\n }\n if (BaseValue)\n BindTexture.__proto__ = BaseValue;\n BindTexture.prototype = Object.create(BaseValue && BaseValue.prototype);\n BindTexture.prototype.constructor = BindTexture;\n BindTexture.prototype.getDefault = function getDefault() {\n return null;\n };\n BindTexture.prototype.set = function set(v) {\n if (v === this.current && !this.dirty) {\n return;\n }\n var gl = this.gl;\n gl.bindTexture(gl.TEXTURE_2D, v);\n this.current = v;\n this.dirty = false;\n };\n return BindTexture;\n}(BaseValue);\nvar BindVertexBuffer = function (BaseValue) {\n function BindVertexBuffer() {\n BaseValue.apply(this, arguments);\n }\n if (BaseValue)\n BindVertexBuffer.__proto__ = BaseValue;\n BindVertexBuffer.prototype = Object.create(BaseValue && BaseValue.prototype);\n BindVertexBuffer.prototype.constructor = BindVertexBuffer;\n BindVertexBuffer.prototype.getDefault = function getDefault() {\n return null;\n };\n BindVertexBuffer.prototype.set = function set(v) {\n if (v === this.current && !this.dirty) {\n return;\n }\n var gl = this.gl;\n gl.bindBuffer(gl.ARRAY_BUFFER, v);\n this.current = v;\n this.dirty = false;\n };\n return BindVertexBuffer;\n}(BaseValue);\nvar BindElementBuffer = function (BaseValue) {\n function BindElementBuffer() {\n BaseValue.apply(this, arguments);\n }\n if (BaseValue)\n BindElementBuffer.__proto__ = BaseValue;\n BindElementBuffer.prototype = Object.create(BaseValue && BaseValue.prototype);\n BindElementBuffer.prototype.constructor = BindElementBuffer;\n BindElementBuffer.prototype.getDefault = function getDefault() {\n return null;\n };\n BindElementBuffer.prototype.set = function set(v) {\n var gl = this.gl;\n gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, v);\n this.current = v;\n this.dirty = false;\n };\n return BindElementBuffer;\n}(BaseValue);\nvar BindVertexArrayOES = function (BaseValue) {\n function BindVertexArrayOES(context) {\n BaseValue.call(this, context);\n this.vao = context.extVertexArrayObject;\n }\n if (BaseValue)\n BindVertexArrayOES.__proto__ = BaseValue;\n BindVertexArrayOES.prototype = Object.create(BaseValue && BaseValue.prototype);\n BindVertexArrayOES.prototype.constructor = BindVertexArrayOES;\n BindVertexArrayOES.prototype.getDefault = function getDefault() {\n return null;\n };\n BindVertexArrayOES.prototype.set = function set(v) {\n if (!this.vao || v === this.current && !this.dirty) {\n return;\n }\n this.vao.bindVertexArrayOES(v);\n this.current = v;\n this.dirty = false;\n };\n return BindVertexArrayOES;\n}(BaseValue);\nvar PixelStoreUnpack = function (BaseValue) {\n function PixelStoreUnpack() {\n BaseValue.apply(this, arguments);\n }\n if (BaseValue)\n PixelStoreUnpack.__proto__ = BaseValue;\n PixelStoreUnpack.prototype = Object.create(BaseValue && BaseValue.prototype);\n PixelStoreUnpack.prototype.constructor = PixelStoreUnpack;\n PixelStoreUnpack.prototype.getDefault = function getDefault() {\n return 4;\n };\n PixelStoreUnpack.prototype.set = function set(v) {\n if (v === this.current && !this.dirty) {\n return;\n }\n var gl = this.gl;\n gl.pixelStorei(gl.UNPACK_ALIGNMENT, v);\n this.current = v;\n this.dirty = false;\n };\n return PixelStoreUnpack;\n}(BaseValue);\nvar PixelStoreUnpackPremultiplyAlpha = function (BaseValue) {\n function PixelStoreUnpackPremultiplyAlpha() {\n BaseValue.apply(this, arguments);\n }\n if (BaseValue)\n PixelStoreUnpackPremultiplyAlpha.__proto__ = BaseValue;\n PixelStoreUnpackPremultiplyAlpha.prototype = Object.create(BaseValue && BaseValue.prototype);\n PixelStoreUnpackPremultiplyAlpha.prototype.constructor = PixelStoreUnpackPremultiplyAlpha;\n PixelStoreUnpackPremultiplyAlpha.prototype.getDefault = function getDefault() {\n return false;\n };\n PixelStoreUnpackPremultiplyAlpha.prototype.set = function set(v) {\n if (v === this.current && !this.dirty) {\n return;\n }\n var gl = this.gl;\n gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, v);\n this.current = v;\n this.dirty = false;\n };\n return PixelStoreUnpackPremultiplyAlpha;\n}(BaseValue);\nvar PixelStoreUnpackFlipY = function (BaseValue) {\n function PixelStoreUnpackFlipY() {\n BaseValue.apply(this, arguments);\n }\n if (BaseValue)\n PixelStoreUnpackFlipY.__proto__ = BaseValue;\n PixelStoreUnpackFlipY.prototype = Object.create(BaseValue && BaseValue.prototype);\n PixelStoreUnpackFlipY.prototype.constructor = PixelStoreUnpackFlipY;\n PixelStoreUnpackFlipY.prototype.getDefault = function getDefault() {\n return false;\n };\n PixelStoreUnpackFlipY.prototype.set = function set(v) {\n if (v === this.current && !this.dirty) {\n return;\n }\n var gl = this.gl;\n gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, v);\n this.current = v;\n this.dirty = false;\n };\n return PixelStoreUnpackFlipY;\n}(BaseValue);\nvar FramebufferAttachment = function (BaseValue) {\n function FramebufferAttachment(context, parent) {\n BaseValue.call(this, context);\n this.context = context;\n this.parent = parent;\n }\n if (BaseValue)\n FramebufferAttachment.__proto__ = BaseValue;\n FramebufferAttachment.prototype = Object.create(BaseValue && BaseValue.prototype);\n FramebufferAttachment.prototype.constructor = FramebufferAttachment;\n FramebufferAttachment.prototype.getDefault = function getDefault() {\n return null;\n };\n return FramebufferAttachment;\n}(BaseValue);\nvar ColorAttachment = function (FramebufferAttachment) {\n function ColorAttachment() {\n FramebufferAttachment.apply(this, arguments);\n }\n if (FramebufferAttachment)\n ColorAttachment.__proto__ = FramebufferAttachment;\n ColorAttachment.prototype = Object.create(FramebufferAttachment && FramebufferAttachment.prototype);\n ColorAttachment.prototype.constructor = ColorAttachment;\n ColorAttachment.prototype.setDirty = function setDirty() {\n this.dirty = true;\n };\n ColorAttachment.prototype.set = function set(v) {\n if (v === this.current && !this.dirty) {\n return;\n }\n this.context.bindFramebuffer.set(this.parent);\n var gl = this.gl;\n gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, v, 0);\n this.current = v;\n this.dirty = false;\n };\n return ColorAttachment;\n}(FramebufferAttachment);\nvar DepthAttachment = function (FramebufferAttachment) {\n function DepthAttachment() {\n FramebufferAttachment.apply(this, arguments);\n }\n if (FramebufferAttachment)\n DepthAttachment.__proto__ = FramebufferAttachment;\n DepthAttachment.prototype = Object.create(FramebufferAttachment && FramebufferAttachment.prototype);\n DepthAttachment.prototype.constructor = DepthAttachment;\n DepthAttachment.prototype.set = function set(v) {\n if (v === this.current && !this.dirty) {\n return;\n }\n this.context.bindFramebuffer.set(this.parent);\n var gl = this.gl;\n gl.framebufferRenderbuffer(gl.FRAMEBUFFER, gl.DEPTH_ATTACHMENT, gl.RENDERBUFFER, v);\n this.current = v;\n this.dirty = false;\n };\n return DepthAttachment;\n}(FramebufferAttachment);\n\nvar Framebuffer = function Framebuffer(context, width, height, hasDepth) {\n this.context = context;\n this.width = width;\n this.height = height;\n var gl = context.gl;\n var fbo = this.framebuffer = gl.createFramebuffer();\n this.colorAttachment = new ColorAttachment(context, fbo);\n if (hasDepth) {\n this.depthAttachment = new DepthAttachment(context, fbo);\n }\n};\nFramebuffer.prototype.destroy = function destroy() {\n var gl = this.context.gl;\n var texture = this.colorAttachment.get();\n if (texture) {\n gl.deleteTexture(texture);\n }\n if (this.depthAttachment) {\n var renderbuffer = this.depthAttachment.get();\n if (renderbuffer) {\n gl.deleteRenderbuffer(renderbuffer);\n }\n }\n gl.deleteFramebuffer(this.framebuffer);\n};\n\nvar ALWAYS = 519;\nvar DepthMode = function DepthMode(depthFunc, depthMask, depthRange) {\n this.func = depthFunc;\n this.mask = depthMask;\n this.range = depthRange;\n};\nDepthMode.ReadOnly = false;\nDepthMode.ReadWrite = true;\nDepthMode.disabled = new DepthMode(ALWAYS, DepthMode.ReadOnly, [\n 0,\n 1\n]);\n\nvar ALWAYS$1 = 519;\nvar KEEP = 7680;\nvar StencilMode = function StencilMode(test, ref, mask, fail, depthFail, pass) {\n this.test = test;\n this.ref = ref;\n this.mask = mask;\n this.fail = fail;\n this.depthFail = depthFail;\n this.pass = pass;\n};\nStencilMode.disabled = new StencilMode({\n func: ALWAYS$1,\n mask: 0\n}, 0, 0, KEEP, KEEP, KEEP);\n\nvar ZERO = 0;\nvar ONE = 1;\nvar ONE_MINUS_SRC_ALPHA = 771;\nvar ColorMode = function ColorMode(blendFunction, blendColor, mask) {\n this.blendFunction = blendFunction;\n this.blendColor = blendColor;\n this.mask = mask;\n};\nColorMode.Replace = [\n ONE,\n ZERO\n];\nColorMode.disabled = new ColorMode(ColorMode.Replace, performance.Color.transparent, [\n false,\n false,\n false,\n false\n]);\nColorMode.unblended = new ColorMode(ColorMode.Replace, performance.Color.transparent, [\n true,\n true,\n true,\n true\n]);\nColorMode.alphaBlended = new ColorMode([\n ONE,\n ONE_MINUS_SRC_ALPHA\n], performance.Color.transparent, [\n true,\n true,\n true,\n true\n]);\n\nvar BACK = 1029;\nvar CCW = 2305;\nvar CullFaceMode = function CullFaceMode(enable, mode, frontFace) {\n this.enable = enable;\n this.mode = mode;\n this.frontFace = frontFace;\n};\nCullFaceMode.disabled = new CullFaceMode(false, BACK, CCW);\nCullFaceMode.backCCW = new CullFaceMode(true, BACK, CCW);\n\nvar Context = function Context(gl) {\n this.gl = gl;\n this.extVertexArrayObject = this.gl.getExtension('OES_vertex_array_object');\n this.clearColor = new ClearColor(this);\n this.clearDepth = new ClearDepth(this);\n this.clearStencil = new ClearStencil(this);\n this.colorMask = new ColorMask(this);\n this.depthMask = new DepthMask(this);\n this.stencilMask = new StencilMask(this);\n this.stencilFunc = new StencilFunc(this);\n this.stencilOp = new StencilOp(this);\n this.stencilTest = new StencilTest(this);\n this.depthRange = new DepthRange(this);\n this.depthTest = new DepthTest(this);\n this.depthFunc = new DepthFunc(this);\n this.blend = new Blend(this);\n this.blendFunc = new BlendFunc(this);\n this.blendColor = new BlendColor(this);\n this.blendEquation = new BlendEquation(this);\n this.cullFace = new CullFace(this);\n this.cullFaceSide = new CullFaceSide(this);\n this.frontFace = new FrontFace(this);\n this.program = new Program(this);\n this.activeTexture = new ActiveTextureUnit(this);\n this.viewport = new Viewport(this);\n this.bindFramebuffer = new BindFramebuffer(this);\n this.bindRenderbuffer = new BindRenderbuffer(this);\n this.bindTexture = new BindTexture(this);\n this.bindVertexBuffer = new BindVertexBuffer(this);\n this.bindElementBuffer = new BindElementBuffer(this);\n this.bindVertexArrayOES = this.extVertexArrayObject && new BindVertexArrayOES(this);\n this.pixelStoreUnpack = new PixelStoreUnpack(this);\n this.pixelStoreUnpackPremultiplyAlpha = new PixelStoreUnpackPremultiplyAlpha(this);\n this.pixelStoreUnpackFlipY = new PixelStoreUnpackFlipY(this);\n this.extTextureFilterAnisotropic = gl.getExtension('EXT_texture_filter_anisotropic') || gl.getExtension('MOZ_EXT_texture_filter_anisotropic') || gl.getExtension('WEBKIT_EXT_texture_filter_anisotropic');\n if (this.extTextureFilterAnisotropic) {\n this.extTextureFilterAnisotropicMax = gl.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT);\n }\n this.extTextureHalfFloat = gl.getExtension('OES_texture_half_float');\n if (this.extTextureHalfFloat) {\n gl.getExtension('OES_texture_half_float_linear');\n this.extRenderToTextureHalfFloat = gl.getExtension('EXT_color_buffer_half_float');\n }\n this.extTimerQuery = gl.getExtension('EXT_disjoint_timer_query');\n};\nContext.prototype.setDefault = function setDefault() {\n this.unbindVAO();\n this.clearColor.setDefault();\n this.clearDepth.setDefault();\n this.clearStencil.setDefault();\n this.colorMask.setDefault();\n this.depthMask.setDefault();\n this.stencilMask.setDefault();\n this.stencilFunc.setDefault();\n this.stencilOp.setDefault();\n this.stencilTest.setDefault();\n this.depthRange.setDefault();\n this.depthTest.setDefault();\n this.depthFunc.setDefault();\n this.blend.setDefault();\n this.blendFunc.setDefault();\n this.blendColor.setDefault();\n this.blendEquation.setDefault();\n this.cullFace.setDefault();\n this.cullFaceSide.setDefault();\n this.frontFace.setDefault();\n this.program.setDefault();\n this.activeTexture.setDefault();\n this.bindFramebuffer.setDefault();\n this.pixelStoreUnpack.setDefault();\n this.pixelStoreUnpackPremultiplyAlpha.setDefault();\n this.pixelStoreUnpackFlipY.setDefault();\n};\nContext.prototype.setDirty = function setDirty() {\n this.clearColor.dirty = true;\n this.clearDepth.dirty = true;\n this.clearStencil.dirty = true;\n this.colorMask.dirty = true;\n this.depthMask.dirty = true;\n this.stencilMask.dirty = true;\n this.stencilFunc.dirty = true;\n this.stencilOp.dirty = true;\n this.stencilTest.dirty = true;\n this.depthRange.dirty = true;\n this.depthTest.dirty = true;\n this.depthFunc.dirty = true;\n this.blend.dirty = true;\n this.blendFunc.dirty = true;\n this.blendColor.dirty = true;\n this.blendEquation.dirty = true;\n this.cullFace.dirty = true;\n this.cullFaceSide.dirty = true;\n this.frontFace.dirty = true;\n this.program.dirty = true;\n this.activeTexture.dirty = true;\n this.viewport.dirty = true;\n this.bindFramebuffer.dirty = true;\n this.bindRenderbuffer.dirty = true;\n this.bindTexture.dirty = true;\n this.bindVertexBuffer.dirty = true;\n this.bindElementBuffer.dirty = true;\n if (this.extVertexArrayObject) {\n this.bindVertexArrayOES.dirty = true;\n }\n this.pixelStoreUnpack.dirty = true;\n this.pixelStoreUnpackPremultiplyAlpha.dirty = true;\n this.pixelStoreUnpackFlipY.dirty = true;\n};\nContext.prototype.createIndexBuffer = function createIndexBuffer(array, dynamicDraw) {\n return new IndexBuffer(this, array, dynamicDraw);\n};\nContext.prototype.createVertexBuffer = function createVertexBuffer(array, attributes, dynamicDraw) {\n return new VertexBuffer(this, array, attributes, dynamicDraw);\n};\nContext.prototype.createRenderbuffer = function createRenderbuffer(storageFormat, width, height) {\n var gl = this.gl;\n var rbo = gl.createRenderbuffer();\n this.bindRenderbuffer.set(rbo);\n gl.renderbufferStorage(gl.RENDERBUFFER, storageFormat, width, height);\n this.bindRenderbuffer.set(null);\n return rbo;\n};\nContext.prototype.createFramebuffer = function createFramebuffer(width, height, hasDepth) {\n return new Framebuffer(this, width, height, hasDepth);\n};\nContext.prototype.clear = function clear(ref) {\n var color = ref.color;\n var depth = ref.depth;\n var gl = this.gl;\n var mask = 0;\n if (color) {\n mask |= gl.COLOR_BUFFER_BIT;\n this.clearColor.set(color);\n this.colorMask.set([\n true,\n true,\n true,\n true\n ]);\n }\n if (typeof depth !== 'undefined') {\n mask |= gl.DEPTH_BUFFER_BIT;\n this.depthRange.set([\n 0,\n 1\n ]);\n this.clearDepth.set(depth);\n this.depthMask.set(true);\n }\n gl.clear(mask);\n};\nContext.prototype.setCullFace = function setCullFace(cullFaceMode) {\n if (cullFaceMode.enable === false) {\n this.cullFace.set(false);\n } else {\n this.cullFace.set(true);\n this.cullFaceSide.set(cullFaceMode.mode);\n this.frontFace.set(cullFaceMode.frontFace);\n }\n};\nContext.prototype.setDepthMode = function setDepthMode(depthMode) {\n if (depthMode.func === this.gl.ALWAYS && !depthMode.mask) {\n this.depthTest.set(false);\n } else {\n this.depthTest.set(true);\n this.depthFunc.set(depthMode.func);\n this.depthMask.set(depthMode.mask);\n this.depthRange.set(depthMode.range);\n }\n};\nContext.prototype.setStencilMode = function setStencilMode(stencilMode) {\n if (stencilMode.test.func === this.gl.ALWAYS && !stencilMode.mask) {\n this.stencilTest.set(false);\n } else {\n this.stencilTest.set(true);\n this.stencilMask.set(stencilMode.mask);\n this.stencilOp.set([\n stencilMode.fail,\n stencilMode.depthFail,\n stencilMode.pass\n ]);\n this.stencilFunc.set({\n func: stencilMode.test.func,\n ref: stencilMode.ref,\n mask: stencilMode.test.mask\n });\n }\n};\nContext.prototype.setColorMode = function setColorMode(colorMode) {\n if (performance.deepEqual(colorMode.blendFunction, ColorMode.Replace)) {\n this.blend.set(false);\n } else {\n this.blend.set(true);\n this.blendFunc.set(colorMode.blendFunction);\n this.blendColor.set(colorMode.blendColor);\n }\n this.colorMask.set(colorMode.mask);\n};\nContext.prototype.unbindVAO = function unbindVAO() {\n if (this.extVertexArrayObject) {\n this.bindVertexArrayOES.set(null);\n }\n};\n\nvar SourceCache = function (Evented) {\n function SourceCache(id, options, dispatcher) {\n var this$1 = this;\n Evented.call(this);\n this.id = id;\n this.dispatcher = dispatcher;\n this.on('data', function (e) {\n if (e.dataType === 'source' && e.sourceDataType === 'metadata') {\n this$1._sourceLoaded = true;\n }\n if (this$1._sourceLoaded && !this$1._paused && e.dataType === 'source' && e.sourceDataType === 'content') {\n this$1.reload();\n if (this$1.transform) {\n this$1.update(this$1.transform);\n }\n }\n });\n this.on('error', function () {\n this$1._sourceErrored = true;\n });\n this._source = create(id, options, dispatcher, this);\n this._tiles = {};\n this._cache = new TileCache(0, this._unloadTile.bind(this));\n this._timers = {};\n this._cacheTimers = {};\n this._maxTileCacheSize = null;\n this._loadedParentTiles = {};\n this._coveredTiles = {};\n this._state = new performance.SourceFeatureState();\n }\n if (Evented)\n SourceCache.__proto__ = Evented;\n SourceCache.prototype = Object.create(Evented && Evented.prototype);\n SourceCache.prototype.constructor = SourceCache;\n SourceCache.prototype.onAdd = function onAdd(map) {\n this.map = map;\n this._maxTileCacheSize = map ? map._maxTileCacheSize : null;\n if (this._source && this._source.onAdd) {\n this._source.onAdd(map);\n }\n };\n SourceCache.prototype.onRemove = function onRemove(map) {\n if (this._source && this._source.onRemove) {\n this._source.onRemove(map);\n }\n };\n SourceCache.prototype.loaded = function loaded() {\n if (this._sourceErrored) {\n return true;\n }\n if (!this._sourceLoaded) {\n return false;\n }\n if (!this._source.loaded()) {\n return false;\n }\n for (var t in this._tiles) {\n var tile = this._tiles[t];\n if (tile.state !== 'loaded' && tile.state !== 'errored') {\n return false;\n }\n }\n return true;\n };\n SourceCache.prototype.getSource = function getSource() {\n return this._source;\n };\n SourceCache.prototype.pause = function pause() {\n this._paused = true;\n };\n SourceCache.prototype.resume = function resume() {\n if (!this._paused) {\n return;\n }\n var shouldReload = this._shouldReloadOnResume;\n this._paused = false;\n this._shouldReloadOnResume = false;\n if (shouldReload) {\n this.reload();\n }\n if (this.transform) {\n this.update(this.transform);\n }\n };\n SourceCache.prototype._loadTile = function _loadTile(tile, callback) {\n return this._source.loadTile(tile, callback);\n };\n SourceCache.prototype._unloadTile = function _unloadTile(tile) {\n if (this._source.unloadTile) {\n return this._source.unloadTile(tile, function () {\n });\n }\n };\n SourceCache.prototype._abortTile = function _abortTile(tile) {\n if (this._source.abortTile) {\n return this._source.abortTile(tile, function () {\n });\n }\n };\n SourceCache.prototype.serialize = function serialize() {\n return this._source.serialize();\n };\n SourceCache.prototype.prepare = function prepare(context) {\n if (this._source.prepare) {\n this._source.prepare();\n }\n this._state.coalesceChanges(this._tiles, this.map ? this.map.painter : null);\n for (var i in this._tiles) {\n var tile = this._tiles[i];\n tile.upload(context);\n tile.prepare(this.map.style.imageManager);\n }\n };\n SourceCache.prototype.getIds = function getIds() {\n return performance.values(this._tiles).map(function (tile) {\n return tile.tileID;\n }).sort(compareTileId).map(function (id) {\n return id.key;\n });\n };\n SourceCache.prototype.getRenderableIds = function getRenderableIds(symbolLayer) {\n var this$1 = this;\n var renderables = [];\n for (var id in this._tiles) {\n if (this._isIdRenderable(id, symbolLayer)) {\n renderables.push(this._tiles[id]);\n }\n }\n if (symbolLayer) {\n return renderables.sort(function (a_, b_) {\n var a = a_.tileID;\n var b = b_.tileID;\n var rotatedA = new performance.Point(a.canonical.x, a.canonical.y)._rotate(this$1.transform.angle);\n var rotatedB = new performance.Point(b.canonical.x, b.canonical.y)._rotate(this$1.transform.angle);\n return a.overscaledZ - b.overscaledZ || rotatedB.y - rotatedA.y || rotatedB.x - rotatedA.x;\n }).map(function (tile) {\n return tile.tileID.key;\n });\n }\n return renderables.map(function (tile) {\n return tile.tileID;\n }).sort(compareTileId).map(function (id) {\n return id.key;\n });\n };\n SourceCache.prototype.hasRenderableParent = function hasRenderableParent(tileID) {\n var parentTile = this.findLoadedParent(tileID, 0);\n if (parentTile) {\n return this._isIdRenderable(parentTile.tileID.key);\n }\n return false;\n };\n SourceCache.prototype._isIdRenderable = function _isIdRenderable(id, symbolLayer) {\n return this._tiles[id] && this._tiles[id].hasData() && !this._coveredTiles[id] && (symbolLayer || !this._tiles[id].holdingForFade());\n };\n SourceCache.prototype.reload = function reload() {\n if (this._paused) {\n this._shouldReloadOnResume = true;\n return;\n }\n this._cache.reset();\n for (var i in this._tiles) {\n if (this._tiles[i].state !== 'errored') {\n this._reloadTile(i, 'reloading');\n }\n }\n };\n SourceCache.prototype._reloadTile = function _reloadTile(id, state) {\n var tile = this._tiles[id];\n if (!tile) {\n return;\n }\n if (tile.state !== 'loading') {\n tile.state = state;\n }\n this._loadTile(tile, this._tileLoaded.bind(this, tile, id, state));\n };\n SourceCache.prototype._tileLoaded = function _tileLoaded(tile, id, previousState, err) {\n if (err) {\n tile.state = 'errored';\n if (err.status !== 404) {\n this._source.fire(new performance.ErrorEvent(err, { tile: tile }));\n } else {\n this.update(this.transform);\n }\n return;\n }\n tile.timeAdded = performance.browser.now();\n if (previousState === 'expired') {\n tile.refreshedUponExpiration = true;\n }\n this._setTileReloadTimer(id, tile);\n if (this.getSource().type === 'raster-dem' && tile.dem) {\n this._backfillDEM(tile);\n }\n this._state.initializeTileState(tile, this.map ? this.map.painter : null);\n this._source.fire(new performance.Event('data', {\n dataType: 'source',\n tile: tile,\n coord: tile.tileID\n }));\n };\n SourceCache.prototype._backfillDEM = function _backfillDEM(tile) {\n var renderables = this.getRenderableIds();\n for (var i = 0; i < renderables.length; i++) {\n var borderId = renderables[i];\n if (tile.neighboringTiles && tile.neighboringTiles[borderId]) {\n var borderTile = this.getTileByID(borderId);\n fillBorder(tile, borderTile);\n fillBorder(borderTile, tile);\n }\n }\n function fillBorder(tile, borderTile) {\n tile.needsHillshadePrepare = true;\n var dx = borderTile.tileID.canonical.x - tile.tileID.canonical.x;\n var dy = borderTile.tileID.canonical.y - tile.tileID.canonical.y;\n var dim = Math.pow(2, tile.tileID.canonical.z);\n var borderId = borderTile.tileID.key;\n if (dx === 0 && dy === 0) {\n return;\n }\n if (Math.abs(dy) > 1) {\n return;\n }\n if (Math.abs(dx) > 1) {\n if (Math.abs(dx + dim) === 1) {\n dx += dim;\n } else if (Math.abs(dx - dim) === 1) {\n dx -= dim;\n }\n }\n if (!borderTile.dem || !tile.dem) {\n return;\n }\n tile.dem.backfillBorder(borderTile.dem, dx, dy);\n if (tile.neighboringTiles && tile.neighboringTiles[borderId]) {\n tile.neighboringTiles[borderId].backfilled = true;\n }\n }\n };\n SourceCache.prototype.getTile = function getTile(tileID) {\n return this.getTileByID(tileID.key);\n };\n SourceCache.prototype.getTileByID = function getTileByID(id) {\n return this._tiles[id];\n };\n SourceCache.prototype._retainLoadedChildren = function _retainLoadedChildren(idealTiles, zoom, maxCoveringZoom, retain) {\n for (var id in this._tiles) {\n var tile = this._tiles[id];\n if (retain[id] || !tile.hasData() || tile.tileID.overscaledZ <= zoom || tile.tileID.overscaledZ > maxCoveringZoom) {\n continue;\n }\n var topmostLoadedID = tile.tileID;\n while (tile && tile.tileID.overscaledZ > zoom + 1) {\n var parentID = tile.tileID.scaledTo(tile.tileID.overscaledZ - 1);\n tile = this._tiles[parentID.key];\n if (tile && tile.hasData()) {\n topmostLoadedID = parentID;\n }\n }\n var tileID = topmostLoadedID;\n while (tileID.overscaledZ > zoom) {\n tileID = tileID.scaledTo(tileID.overscaledZ - 1);\n if (idealTiles[tileID.key]) {\n retain[topmostLoadedID.key] = topmostLoadedID;\n break;\n }\n }\n }\n };\n SourceCache.prototype.findLoadedParent = function findLoadedParent(tileID, minCoveringZoom) {\n if (tileID.key in this._loadedParentTiles) {\n var parent = this._loadedParentTiles[tileID.key];\n if (parent && parent.tileID.overscaledZ >= minCoveringZoom) {\n return parent;\n } else {\n return null;\n }\n }\n for (var z = tileID.overscaledZ - 1; z >= minCoveringZoom; z--) {\n var parentTileID = tileID.scaledTo(z);\n var tile = this._getLoadedTile(parentTileID);\n if (tile) {\n return tile;\n }\n }\n };\n SourceCache.prototype._getLoadedTile = function _getLoadedTile(tileID) {\n var tile = this._tiles[tileID.key];\n if (tile && tile.hasData()) {\n return tile;\n }\n var cachedTile = this._cache.getByKey(tileID.wrapped().key);\n return cachedTile;\n };\n SourceCache.prototype.updateCacheSize = function updateCacheSize(transform) {\n var widthInTiles = Math.ceil(transform.width / this._source.tileSize) + 1;\n var heightInTiles = Math.ceil(transform.height / this._source.tileSize) + 1;\n var approxTilesInView = widthInTiles * heightInTiles;\n var commonZoomRange = 5;\n var viewDependentMaxSize = Math.floor(approxTilesInView * commonZoomRange);\n var maxSize = typeof this._maxTileCacheSize === 'number' ? Math.min(this._maxTileCacheSize, viewDependentMaxSize) : viewDependentMaxSize;\n this._cache.setMaxSize(maxSize);\n };\n SourceCache.prototype.handleWrapJump = function handleWrapJump(lng) {\n var prevLng = this._prevLng === undefined ? lng : this._prevLng;\n var lngDifference = lng - prevLng;\n var worldDifference = lngDifference / 360;\n var wrapDelta = Math.round(worldDifference);\n this._prevLng = lng;\n if (wrapDelta) {\n var tiles = {};\n for (var key in this._tiles) {\n var tile = this._tiles[key];\n tile.tileID = tile.tileID.unwrapTo(tile.tileID.wrap + wrapDelta);\n tiles[tile.tileID.key] = tile;\n }\n this._tiles = tiles;\n for (var id in this._timers) {\n clearTimeout(this._timers[id]);\n delete this._timers[id];\n }\n for (var id$1 in this._tiles) {\n var tile$1 = this._tiles[id$1];\n this._setTileReloadTimer(id$1, tile$1);\n }\n }\n };\n SourceCache.prototype.update = function update(transform) {\n var this$1 = this;\n this.transform = transform;\n if (!this._sourceLoaded || this._paused) {\n return;\n }\n this.updateCacheSize(transform);\n this.handleWrapJump(this.transform.center.lng);\n this._coveredTiles = {};\n var idealTileIDs;\n if (!this.used) {\n idealTileIDs = [];\n } else if (this._source.tileID) {\n idealTileIDs = transform.getVisibleUnwrappedCoordinates(this._source.tileID).map(function (unwrapped) {\n return new performance.OverscaledTileID(unwrapped.canonical.z, unwrapped.wrap, unwrapped.canonical.z, unwrapped.canonical.x, unwrapped.canonical.y);\n });\n } else {\n idealTileIDs = transform.coveringTiles({\n tileSize: this._source.tileSize,\n minzoom: this._source.minzoom,\n maxzoom: this._source.maxzoom,\n roundZoom: this._source.roundZoom,\n reparseOverscaled: this._source.reparseOverscaled\n });\n if (this._source.hasTile) {\n idealTileIDs = idealTileIDs.filter(function (coord) {\n return this$1._source.hasTile(coord);\n });\n }\n }\n var zoom = transform.coveringZoomLevel(this._source);\n var minCoveringZoom = Math.max(zoom - SourceCache.maxOverzooming, this._source.minzoom);\n var maxCoveringZoom = Math.max(zoom + SourceCache.maxUnderzooming, this._source.minzoom);\n var retain = this._updateRetainedTiles(idealTileIDs, zoom);\n if (isRasterType(this._source.type)) {\n var parentsForFading = {};\n var fadingTiles = {};\n var ids = Object.keys(retain);\n for (var i = 0, list = ids; i < list.length; i += 1) {\n var id = list[i];\n var tileID = retain[id];\n var tile = this._tiles[id];\n if (!tile || tile.fadeEndTime && tile.fadeEndTime <= performance.browser.now()) {\n continue;\n }\n var parentTile = this.findLoadedParent(tileID, minCoveringZoom);\n if (parentTile) {\n this._addTile(parentTile.tileID);\n parentsForFading[parentTile.tileID.key] = parentTile.tileID;\n }\n fadingTiles[id] = tileID;\n }\n this._retainLoadedChildren(fadingTiles, zoom, maxCoveringZoom, retain);\n for (var id$1 in parentsForFading) {\n if (!retain[id$1]) {\n this._coveredTiles[id$1] = true;\n retain[id$1] = parentsForFading[id$1];\n }\n }\n }\n for (var retainedId in retain) {\n this._tiles[retainedId].clearFadeHold();\n }\n var remove = performance.keysDifference(this._tiles, retain);\n for (var i$1 = 0, list$1 = remove; i$1 < list$1.length; i$1 += 1) {\n var tileID$1 = list$1[i$1];\n var tile$1 = this._tiles[tileID$1];\n if (tile$1.hasSymbolBuckets && !tile$1.holdingForFade()) {\n tile$1.setHoldDuration(this.map._fadeDuration);\n } else if (!tile$1.hasSymbolBuckets || tile$1.symbolFadeFinished()) {\n this._removeTile(tileID$1);\n }\n }\n this._updateLoadedParentTileCache();\n };\n SourceCache.prototype.releaseSymbolFadeTiles = function releaseSymbolFadeTiles() {\n for (var id in this._tiles) {\n if (this._tiles[id].holdingForFade()) {\n this._removeTile(id);\n }\n }\n };\n SourceCache.prototype._updateRetainedTiles = function _updateRetainedTiles(idealTileIDs, zoom) {\n var retain = {};\n var checked = {};\n var minCoveringZoom = Math.max(zoom - SourceCache.maxOverzooming, this._source.minzoom);\n var maxCoveringZoom = Math.max(zoom + SourceCache.maxUnderzooming, this._source.minzoom);\n var missingTiles = {};\n for (var i = 0, list = idealTileIDs; i < list.length; i += 1) {\n var tileID = list[i];\n var tile = this._addTile(tileID);\n retain[tileID.key] = tileID;\n if (tile.hasData()) {\n continue;\n }\n if (zoom < this._source.maxzoom) {\n missingTiles[tileID.key] = tileID;\n }\n }\n this._retainLoadedChildren(missingTiles, zoom, maxCoveringZoom, retain);\n for (var i$1 = 0, list$1 = idealTileIDs; i$1 < list$1.length; i$1 += 1) {\n var tileID$1 = list$1[i$1];\n var tile$1 = this._tiles[tileID$1.key];\n if (tile$1.hasData()) {\n continue;\n }\n if (zoom + 1 > this._source.maxzoom) {\n var childCoord = tileID$1.children(this._source.maxzoom)[0];\n var childTile = this.getTile(childCoord);\n if (!!childTile && childTile.hasData()) {\n retain[childCoord.key] = childCoord;\n continue;\n }\n } else {\n var children = tileID$1.children(this._source.maxzoom);\n if (retain[children[0].key] && retain[children[1].key] && retain[children[2].key] && retain[children[3].key]) {\n continue;\n }\n }\n var parentWasRequested = tile$1.wasRequested();\n for (var overscaledZ = tileID$1.overscaledZ - 1; overscaledZ >= minCoveringZoom; --overscaledZ) {\n var parentId = tileID$1.scaledTo(overscaledZ);\n if (checked[parentId.key]) {\n break;\n }\n checked[parentId.key] = true;\n tile$1 = this.getTile(parentId);\n if (!tile$1 && parentWasRequested) {\n tile$1 = this._addTile(parentId);\n }\n if (tile$1) {\n retain[parentId.key] = parentId;\n parentWasRequested = tile$1.wasRequested();\n if (tile$1.hasData()) {\n break;\n }\n }\n }\n }\n return retain;\n };\n SourceCache.prototype._updateLoadedParentTileCache = function _updateLoadedParentTileCache() {\n this._loadedParentTiles = {};\n for (var tileKey in this._tiles) {\n var path = [];\n var parentTile = void 0;\n var currentId = this._tiles[tileKey].tileID;\n while (currentId.overscaledZ > 0) {\n if (currentId.key in this._loadedParentTiles) {\n parentTile = this._loadedParentTiles[currentId.key];\n break;\n }\n path.push(currentId.key);\n var parentId = currentId.scaledTo(currentId.overscaledZ - 1);\n parentTile = this._getLoadedTile(parentId);\n if (parentTile) {\n break;\n }\n currentId = parentId;\n }\n for (var i = 0, list = path; i < list.length; i += 1) {\n var key = list[i];\n this._loadedParentTiles[key] = parentTile;\n }\n }\n };\n SourceCache.prototype._addTile = function _addTile(tileID) {\n var tile = this._tiles[tileID.key];\n if (tile) {\n return tile;\n }\n tile = this._cache.getAndRemove(tileID);\n if (tile) {\n this._setTileReloadTimer(tileID.key, tile);\n tile.tileID = tileID;\n this._state.initializeTileState(tile, this.map ? this.map.painter : null);\n if (this._cacheTimers[tileID.key]) {\n clearTimeout(this._cacheTimers[tileID.key]);\n delete this._cacheTimers[tileID.key];\n this._setTileReloadTimer(tileID.key, tile);\n }\n }\n var cached = Boolean(tile);\n if (!cached) {\n tile = new performance.Tile(tileID, this._source.tileSize * tileID.overscaleFactor());\n this._loadTile(tile, this._tileLoaded.bind(this, tile, tileID.key, tile.state));\n }\n if (!tile) {\n return null;\n }\n tile.uses++;\n this._tiles[tileID.key] = tile;\n if (!cached) {\n this._source.fire(new performance.Event('dataloading', {\n tile: tile,\n coord: tile.tileID,\n dataType: 'source'\n }));\n }\n return tile;\n };\n SourceCache.prototype._setTileReloadTimer = function _setTileReloadTimer(id, tile) {\n var this$1 = this;\n if (id in this._timers) {\n clearTimeout(this._timers[id]);\n delete this._timers[id];\n }\n var expiryTimeout = tile.getExpiryTimeout();\n if (expiryTimeout) {\n this._timers[id] = setTimeout(function () {\n this$1._reloadTile(id, 'expired');\n delete this$1._timers[id];\n }, expiryTimeout);\n }\n };\n SourceCache.prototype._removeTile = function _removeTile(id) {\n var tile = this._tiles[id];\n if (!tile) {\n return;\n }\n tile.uses--;\n delete this._tiles[id];\n if (this._timers[id]) {\n clearTimeout(this._timers[id]);\n delete this._timers[id];\n }\n if (tile.uses > 0) {\n return;\n }\n if (tile.hasData() && tile.state !== 'reloading') {\n this._cache.add(tile.tileID, tile, tile.getExpiryTimeout());\n } else {\n tile.aborted = true;\n this._abortTile(tile);\n this._unloadTile(tile);\n }\n };\n SourceCache.prototype.clearTiles = function clearTiles() {\n this._shouldReloadOnResume = false;\n this._paused = false;\n for (var id in this._tiles) {\n this._removeTile(id);\n }\n this._cache.reset();\n };\n SourceCache.prototype.tilesIn = function tilesIn(pointQueryGeometry, maxPitchScaleFactor, has3DLayer) {\n var this$1 = this;\n var tileResults = [];\n var transform = this.transform;\n if (!transform) {\n return tileResults;\n }\n var cameraPointQueryGeometry = has3DLayer ? transform.getCameraQueryGeometry(pointQueryGeometry) : pointQueryGeometry;\n var queryGeometry = pointQueryGeometry.map(function (p) {\n return transform.pointCoordinate(p);\n });\n var cameraQueryGeometry = cameraPointQueryGeometry.map(function (p) {\n return transform.pointCoordinate(p);\n });\n var ids = this.getIds();\n var minX = Infinity;\n var minY = Infinity;\n var maxX = -Infinity;\n var maxY = -Infinity;\n for (var i$1 = 0, list = cameraQueryGeometry; i$1 < list.length; i$1 += 1) {\n var p = list[i$1];\n minX = Math.min(minX, p.x);\n minY = Math.min(minY, p.y);\n maxX = Math.max(maxX, p.x);\n maxY = Math.max(maxY, p.y);\n }\n var loop = function (i) {\n var tile = this$1._tiles[ids[i]];\n if (tile.holdingForFade()) {\n return;\n }\n var tileID = tile.tileID;\n var scale = Math.pow(2, transform.zoom - tile.tileID.overscaledZ);\n var queryPadding = maxPitchScaleFactor * tile.queryPadding * performance.EXTENT / tile.tileSize / scale;\n var tileSpaceBounds = [\n tileID.getTilePoint(new performance.MercatorCoordinate(minX, minY)),\n tileID.getTilePoint(new performance.MercatorCoordinate(maxX, maxY))\n ];\n if (tileSpaceBounds[0].x - queryPadding < performance.EXTENT && tileSpaceBounds[0].y - queryPadding < performance.EXTENT && tileSpaceBounds[1].x + queryPadding >= 0 && tileSpaceBounds[1].y + queryPadding >= 0) {\n var tileSpaceQueryGeometry = queryGeometry.map(function (c) {\n return tileID.getTilePoint(c);\n });\n var tileSpaceCameraQueryGeometry = cameraQueryGeometry.map(function (c) {\n return tileID.getTilePoint(c);\n });\n tileResults.push({\n tile: tile,\n tileID: tileID,\n queryGeometry: tileSpaceQueryGeometry,\n cameraQueryGeometry: tileSpaceCameraQueryGeometry,\n scale: scale\n });\n }\n };\n for (var i = 0; i < ids.length; i++)\n loop(i);\n return tileResults;\n };\n SourceCache.prototype.getVisibleCoordinates = function getVisibleCoordinates(symbolLayer) {\n var this$1 = this;\n var coords = this.getRenderableIds(symbolLayer).map(function (id) {\n return this$1._tiles[id].tileID;\n });\n for (var i = 0, list = coords; i < list.length; i += 1) {\n var coord = list[i];\n coord.posMatrix = this.transform.calculatePosMatrix(coord.toUnwrapped());\n }\n return coords;\n };\n SourceCache.prototype.hasTransition = function hasTransition() {\n if (this._source.hasTransition()) {\n return true;\n }\n if (isRasterType(this._source.type)) {\n for (var id in this._tiles) {\n var tile = this._tiles[id];\n if (tile.fadeEndTime !== undefined && tile.fadeEndTime >= performance.browser.now()) {\n return true;\n }\n }\n }\n return false;\n };\n SourceCache.prototype.setFeatureState = function setFeatureState(sourceLayer, featureId, state) {\n sourceLayer = sourceLayer || '_geojsonTileLayer';\n this._state.updateState(sourceLayer, featureId, state);\n };\n SourceCache.prototype.removeFeatureState = function removeFeatureState(sourceLayer, featureId, key) {\n sourceLayer = sourceLayer || '_geojsonTileLayer';\n this._state.removeFeatureState(sourceLayer, featureId, key);\n };\n SourceCache.prototype.getFeatureState = function getFeatureState(sourceLayer, featureId) {\n sourceLayer = sourceLayer || '_geojsonTileLayer';\n return this._state.getState(sourceLayer, featureId);\n };\n SourceCache.prototype.setDependencies = function setDependencies(tileKey, namespace, dependencies) {\n var tile = this._tiles[tileKey];\n if (tile) {\n tile.setDependencies(namespace, dependencies);\n }\n };\n SourceCache.prototype.reloadTilesForDependencies = function reloadTilesForDependencies(namespaces, keys) {\n for (var id in this._tiles) {\n var tile = this._tiles[id];\n if (tile.hasDependency(namespaces, keys)) {\n this._reloadTile(id, 'reloading');\n }\n }\n this._cache.filter(function (tile) {\n return !tile.hasDependency(namespaces, keys);\n });\n };\n return SourceCache;\n}(performance.Evented);\nSourceCache.maxOverzooming = 10;\nSourceCache.maxUnderzooming = 3;\nfunction compareTileId(a, b) {\n var aWrap = Math.abs(a.wrap * 2) - +(a.wrap < 0);\n var bWrap = Math.abs(b.wrap * 2) - +(b.wrap < 0);\n return a.overscaledZ - b.overscaledZ || bWrap - aWrap || b.canonical.y - a.canonical.y || b.canonical.x - a.canonical.x;\n}\nfunction isRasterType(type) {\n return type === 'raster' || type === 'image' || type === 'video';\n}\n\nfunction WebWorker () {\n return new performance.window.Worker(exported.workerUrl);\n}\n\nvar PRELOAD_POOL_ID = 'mapboxgl_preloaded_worker_pool';\nvar WorkerPool = function WorkerPool() {\n this.active = {};\n};\nWorkerPool.prototype.acquire = function acquire(mapId) {\n if (!this.workers) {\n this.workers = [];\n while (this.workers.length < WorkerPool.workerCount) {\n this.workers.push(new WebWorker());\n }\n }\n this.active[mapId] = true;\n return this.workers.slice();\n};\nWorkerPool.prototype.release = function release(mapId) {\n delete this.active[mapId];\n if (this.numActive() === 0) {\n this.workers.forEach(function (w) {\n w.terminate();\n });\n this.workers = null;\n }\n};\nWorkerPool.prototype.isPreloaded = function isPreloaded() {\n return !!this.active[PRELOAD_POOL_ID];\n};\nWorkerPool.prototype.numActive = function numActive() {\n return Object.keys(this.active).length;\n};\nvar availableLogicalProcessors = Math.floor(performance.browser.hardwareConcurrency / 2);\nWorkerPool.workerCount = Math.max(Math.min(availableLogicalProcessors, 6), 1);\n\nvar globalWorkerPool;\nfunction getGlobalWorkerPool() {\n if (!globalWorkerPool) {\n globalWorkerPool = new WorkerPool();\n }\n return globalWorkerPool;\n}\nfunction prewarm() {\n var workerPool = getGlobalWorkerPool();\n workerPool.acquire(PRELOAD_POOL_ID);\n}\nfunction clearPrewarmedResources() {\n var pool = globalWorkerPool;\n if (pool) {\n if (pool.isPreloaded() && pool.numActive() === 1) {\n pool.release(PRELOAD_POOL_ID);\n globalWorkerPool = null;\n } else {\n console.warn('Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()');\n }\n }\n}\n\nfunction deref(layer, parent) {\n var result = {};\n for (var k in layer) {\n if (k !== 'ref') {\n result[k] = layer[k];\n }\n }\n performance.refProperties.forEach(function (k) {\n if (k in parent) {\n result[k] = parent[k];\n }\n });\n return result;\n}\nfunction derefLayers(layers) {\n layers = layers.slice();\n var map = Object.create(null);\n for (var i = 0; i < layers.length; i++) {\n map[layers[i].id] = layers[i];\n }\n for (var i$1 = 0; i$1 < layers.length; i$1++) {\n if ('ref' in layers[i$1]) {\n layers[i$1] = deref(layers[i$1], map[layers[i$1].ref]);\n }\n }\n return layers;\n}\n\nfunction emptyStyle() {\n var style = {};\n var version = performance.styleSpec['$version'];\n for (var styleKey in performance.styleSpec['$root']) {\n var spec = performance.styleSpec['$root'][styleKey];\n if (spec.required) {\n var value = null;\n if (styleKey === 'version') {\n value = version;\n } else {\n if (spec.type === 'array') {\n value = [];\n } else {\n value = {};\n }\n }\n if (value != null) {\n style[styleKey] = value;\n }\n }\n }\n return style;\n}\n\nvar operations = {\n setStyle: 'setStyle',\n addLayer: 'addLayer',\n removeLayer: 'removeLayer',\n setPaintProperty: 'setPaintProperty',\n setLayoutProperty: 'setLayoutProperty',\n setFilter: 'setFilter',\n addSource: 'addSource',\n removeSource: 'removeSource',\n setGeoJSONSourceData: 'setGeoJSONSourceData',\n setLayerZoomRange: 'setLayerZoomRange',\n setLayerProperty: 'setLayerProperty',\n setCenter: 'setCenter',\n setZoom: 'setZoom',\n setBearing: 'setBearing',\n setPitch: 'setPitch',\n setSprite: 'setSprite',\n setGlyphs: 'setGlyphs',\n setTransition: 'setTransition',\n setLight: 'setLight'\n};\nfunction addSource(sourceId, after, commands) {\n commands.push({\n command: operations.addSource,\n args: [\n sourceId,\n after[sourceId]\n ]\n });\n}\nfunction removeSource(sourceId, commands, sourcesRemoved) {\n commands.push({\n command: operations.removeSource,\n args: [sourceId]\n });\n sourcesRemoved[sourceId] = true;\n}\nfunction updateSource(sourceId, after, commands, sourcesRemoved) {\n removeSource(sourceId, commands, sourcesRemoved);\n addSource(sourceId, after, commands);\n}\nfunction canUpdateGeoJSON(before, after, sourceId) {\n var prop;\n for (prop in before[sourceId]) {\n if (!before[sourceId].hasOwnProperty(prop)) {\n continue;\n }\n if (prop !== 'data' && !performance.deepEqual(before[sourceId][prop], after[sourceId][prop])) {\n return false;\n }\n }\n for (prop in after[sourceId]) {\n if (!after[sourceId].hasOwnProperty(prop)) {\n continue;\n }\n if (prop !== 'data' && !performance.deepEqual(before[sourceId][prop], after[sourceId][prop])) {\n return false;\n }\n }\n return true;\n}\nfunction diffSources(before, after, commands, sourcesRemoved) {\n before = before || {};\n after = after || {};\n var sourceId;\n for (sourceId in before) {\n if (!before.hasOwnProperty(sourceId)) {\n continue;\n }\n if (!after.hasOwnProperty(sourceId)) {\n removeSource(sourceId, commands, sourcesRemoved);\n }\n }\n for (sourceId in after) {\n if (!after.hasOwnProperty(sourceId)) {\n continue;\n }\n if (!before.hasOwnProperty(sourceId)) {\n addSource(sourceId, after, commands);\n } else if (!performance.deepEqual(before[sourceId], after[sourceId])) {\n if (before[sourceId].type === 'geojson' && after[sourceId].type === 'geojson' && canUpdateGeoJSON(before, after, sourceId)) {\n commands.push({\n command: operations.setGeoJSONSourceData,\n args: [\n sourceId,\n after[sourceId].data\n ]\n });\n } else {\n updateSource(sourceId, after, commands, sourcesRemoved);\n }\n }\n }\n}\nfunction diffLayerPropertyChanges(before, after, commands, layerId, klass, command) {\n before = before || {};\n after = after || {};\n var prop;\n for (prop in before) {\n if (!before.hasOwnProperty(prop)) {\n continue;\n }\n if (!performance.deepEqual(before[prop], after[prop])) {\n commands.push({\n command: command,\n args: [\n layerId,\n prop,\n after[prop],\n klass\n ]\n });\n }\n }\n for (prop in after) {\n if (!after.hasOwnProperty(prop) || before.hasOwnProperty(prop)) {\n continue;\n }\n if (!performance.deepEqual(before[prop], after[prop])) {\n commands.push({\n command: command,\n args: [\n layerId,\n prop,\n after[prop],\n klass\n ]\n });\n }\n }\n}\nfunction pluckId(layer) {\n return layer.id;\n}\nfunction indexById(group, layer) {\n group[layer.id] = layer;\n return group;\n}\nfunction diffLayers(before, after, commands) {\n before = before || [];\n after = after || [];\n var beforeOrder = before.map(pluckId);\n var afterOrder = after.map(pluckId);\n var beforeIndex = before.reduce(indexById, {});\n var afterIndex = after.reduce(indexById, {});\n var tracker = beforeOrder.slice();\n var clean = Object.create(null);\n var i, d, layerId, beforeLayer, afterLayer, insertBeforeLayerId, prop;\n for (i = 0, d = 0; i < beforeOrder.length; i++) {\n layerId = beforeOrder[i];\n if (!afterIndex.hasOwnProperty(layerId)) {\n commands.push({\n command: operations.removeLayer,\n args: [layerId]\n });\n tracker.splice(tracker.indexOf(layerId, d), 1);\n } else {\n d++;\n }\n }\n for (i = 0, d = 0; i < afterOrder.length; i++) {\n layerId = afterOrder[afterOrder.length - 1 - i];\n if (tracker[tracker.length - 1 - i] === layerId) {\n continue;\n }\n if (beforeIndex.hasOwnProperty(layerId)) {\n commands.push({\n command: operations.removeLayer,\n args: [layerId]\n });\n tracker.splice(tracker.lastIndexOf(layerId, tracker.length - d), 1);\n } else {\n d++;\n }\n insertBeforeLayerId = tracker[tracker.length - i];\n commands.push({\n command: operations.addLayer,\n args: [\n afterIndex[layerId],\n insertBeforeLayerId\n ]\n });\n tracker.splice(tracker.length - i, 0, layerId);\n clean[layerId] = true;\n }\n for (i = 0; i < afterOrder.length; i++) {\n layerId = afterOrder[i];\n beforeLayer = beforeIndex[layerId];\n afterLayer = afterIndex[layerId];\n if (clean[layerId] || performance.deepEqual(beforeLayer, afterLayer)) {\n continue;\n }\n if (!performance.deepEqual(beforeLayer.source, afterLayer.source) || !performance.deepEqual(beforeLayer['source-layer'], afterLayer['source-layer']) || !performance.deepEqual(beforeLayer.type, afterLayer.type)) {\n commands.push({\n command: operations.removeLayer,\n args: [layerId]\n });\n insertBeforeLayerId = tracker[tracker.lastIndexOf(layerId) + 1];\n commands.push({\n command: operations.addLayer,\n args: [\n afterLayer,\n insertBeforeLayerId\n ]\n });\n continue;\n }\n diffLayerPropertyChanges(beforeLayer.layout, afterLayer.layout, commands, layerId, null, operations.setLayoutProperty);\n diffLayerPropertyChanges(beforeLayer.paint, afterLayer.paint, commands, layerId, null, operations.setPaintProperty);\n if (!performance.deepEqual(beforeLayer.filter, afterLayer.filter)) {\n commands.push({\n command: operations.setFilter,\n args: [\n layerId,\n afterLayer.filter\n ]\n });\n }\n if (!performance.deepEqual(beforeLayer.minzoom, afterLayer.minzoom) || !performance.deepEqual(beforeLayer.maxzoom, afterLayer.maxzoom)) {\n commands.push({\n command: operations.setLayerZoomRange,\n args: [\n layerId,\n afterLayer.minzoom,\n afterLayer.maxzoom\n ]\n });\n }\n for (prop in beforeLayer) {\n if (!beforeLayer.hasOwnProperty(prop)) {\n continue;\n }\n if (prop === 'layout' || prop === 'paint' || prop === 'filter' || prop === 'metadata' || prop === 'minzoom' || prop === 'maxzoom') {\n continue;\n }\n if (prop.indexOf('paint.') === 0) {\n diffLayerPropertyChanges(beforeLayer[prop], afterLayer[prop], commands, layerId, prop.slice(6), operations.setPaintProperty);\n } else if (!performance.deepEqual(beforeLayer[prop], afterLayer[prop])) {\n commands.push({\n command: operations.setLayerProperty,\n args: [\n layerId,\n prop,\n afterLayer[prop]\n ]\n });\n }\n }\n for (prop in afterLayer) {\n if (!afterLayer.hasOwnProperty(prop) || beforeLayer.hasOwnProperty(prop)) {\n continue;\n }\n if (prop === 'layout' || prop === 'paint' || prop === 'filter' || prop === 'metadata' || prop === 'minzoom' || prop === 'maxzoom') {\n continue;\n }\n if (prop.indexOf('paint.') === 0) {\n diffLayerPropertyChanges(beforeLayer[prop], afterLayer[prop], commands, layerId, prop.slice(6), operations.setPaintProperty);\n } else if (!performance.deepEqual(beforeLayer[prop], afterLayer[prop])) {\n commands.push({\n command: operations.setLayerProperty,\n args: [\n layerId,\n prop,\n afterLayer[prop]\n ]\n });\n }\n }\n }\n}\nfunction diffStyles(before, after) {\n if (!before) {\n return [{\n command: operations.setStyle,\n args: [after]\n }];\n }\n var commands = [];\n try {\n if (!performance.deepEqual(before.version, after.version)) {\n return [{\n command: operations.setStyle,\n args: [after]\n }];\n }\n if (!performance.deepEqual(before.center, after.center)) {\n commands.push({\n command: operations.setCenter,\n args: [after.center]\n });\n }\n if (!performance.deepEqual(before.zoom, after.zoom)) {\n commands.push({\n command: operations.setZoom,\n args: [after.zoom]\n });\n }\n if (!performance.deepEqual(before.bearing, after.bearing)) {\n commands.push({\n command: operations.setBearing,\n args: [after.bearing]\n });\n }\n if (!performance.deepEqual(before.pitch, after.pitch)) {\n commands.push({\n command: operations.setPitch,\n args: [after.pitch]\n });\n }\n if (!performance.deepEqual(before.sprite, after.sprite)) {\n commands.push({\n command: operations.setSprite,\n args: [after.sprite]\n });\n }\n if (!performance.deepEqual(before.glyphs, after.glyphs)) {\n commands.push({\n command: operations.setGlyphs,\n args: [after.glyphs]\n });\n }\n if (!performance.deepEqual(before.transition, after.transition)) {\n commands.push({\n command: operations.setTransition,\n args: [after.transition]\n });\n }\n if (!performance.deepEqual(before.light, after.light)) {\n commands.push({\n command: operations.setLight,\n args: [after.light]\n });\n }\n var sourcesRemoved = {};\n var removeOrAddSourceCommands = [];\n diffSources(before.sources, after.sources, removeOrAddSourceCommands, sourcesRemoved);\n var beforeLayers = [];\n if (before.layers) {\n before.layers.forEach(function (layer) {\n if (sourcesRemoved[layer.source]) {\n commands.push({\n command: operations.removeLayer,\n args: [layer.id]\n });\n } else {\n beforeLayers.push(layer);\n }\n });\n }\n commands = commands.concat(removeOrAddSourceCommands);\n diffLayers(beforeLayers, after.layers, commands);\n } catch (e) {\n console.warn('Unable to compute style diff:', e);\n commands = [{\n command: operations.setStyle,\n args: [after]\n }];\n }\n return commands;\n}\n\nvar PathInterpolator = function PathInterpolator(points_, padding_) {\n this.reset(points_, padding_);\n};\nPathInterpolator.prototype.reset = function reset(points_, padding_) {\n this.points = points_ || [];\n this._distances = [0];\n for (var i = 1; i < this.points.length; i++) {\n this._distances[i] = this._distances[i - 1] + this.points[i].dist(this.points[i - 1]);\n }\n this.length = this._distances[this._distances.length - 1];\n this.padding = Math.min(padding_ || 0, this.length * 0.5);\n this.paddedLength = this.length - this.padding * 2;\n};\nPathInterpolator.prototype.lerp = function lerp(t) {\n if (this.points.length === 1) {\n return this.points[0];\n }\n t = performance.clamp(t, 0, 1);\n var currentIndex = 1;\n var distOfCurrentIdx = this._distances[currentIndex];\n var distToTarget = t * this.paddedLength + this.padding;\n while (distOfCurrentIdx < distToTarget && currentIndex < this._distances.length) {\n distOfCurrentIdx = this._distances[++currentIndex];\n }\n var idxOfPrevPoint = currentIndex - 1;\n var distOfPrevIdx = this._distances[idxOfPrevPoint];\n var segmentLength = distOfCurrentIdx - distOfPrevIdx;\n var segmentT = segmentLength > 0 ? (distToTarget - distOfPrevIdx) / segmentLength : 0;\n return this.points[idxOfPrevPoint].mult(1 - segmentT).add(this.points[currentIndex].mult(segmentT));\n};\n\nvar GridIndex = function GridIndex(width, height, cellSize) {\n var boxCells = this.boxCells = [];\n var circleCells = this.circleCells = [];\n this.xCellCount = Math.ceil(width / cellSize);\n this.yCellCount = Math.ceil(height / cellSize);\n for (var i = 0; i < this.xCellCount * this.yCellCount; i++) {\n boxCells.push([]);\n circleCells.push([]);\n }\n this.circleKeys = [];\n this.boxKeys = [];\n this.bboxes = [];\n this.circles = [];\n this.width = width;\n this.height = height;\n this.xScale = this.xCellCount / width;\n this.yScale = this.yCellCount / height;\n this.boxUid = 0;\n this.circleUid = 0;\n};\nGridIndex.prototype.keysLength = function keysLength() {\n return this.boxKeys.length + this.circleKeys.length;\n};\nGridIndex.prototype.insert = function insert(key, x1, y1, x2, y2) {\n this._forEachCell(x1, y1, x2, y2, this._insertBoxCell, this.boxUid++);\n this.boxKeys.push(key);\n this.bboxes.push(x1);\n this.bboxes.push(y1);\n this.bboxes.push(x2);\n this.bboxes.push(y2);\n};\nGridIndex.prototype.insertCircle = function insertCircle(key, x, y, radius) {\n this._forEachCell(x - radius, y - radius, x + radius, y + radius, this._insertCircleCell, this.circleUid++);\n this.circleKeys.push(key);\n this.circles.push(x);\n this.circles.push(y);\n this.circles.push(radius);\n};\nGridIndex.prototype._insertBoxCell = function _insertBoxCell(x1, y1, x2, y2, cellIndex, uid) {\n this.boxCells[cellIndex].push(uid);\n};\nGridIndex.prototype._insertCircleCell = function _insertCircleCell(x1, y1, x2, y2, cellIndex, uid) {\n this.circleCells[cellIndex].push(uid);\n};\nGridIndex.prototype._query = function _query(x1, y1, x2, y2, hitTest, predicate) {\n if (x2 < 0 || x1 > this.width || y2 < 0 || y1 > this.height) {\n return hitTest ? false : [];\n }\n var result = [];\n if (x1 <= 0 && y1 <= 0 && this.width <= x2 && this.height <= y2) {\n if (hitTest) {\n return true;\n }\n for (var boxUid = 0; boxUid < this.boxKeys.length; boxUid++) {\n result.push({\n key: this.boxKeys[boxUid],\n x1: this.bboxes[boxUid * 4],\n y1: this.bboxes[boxUid * 4 + 1],\n x2: this.bboxes[boxUid * 4 + 2],\n y2: this.bboxes[boxUid * 4 + 3]\n });\n }\n for (var circleUid = 0; circleUid < this.circleKeys.length; circleUid++) {\n var x = this.circles[circleUid * 3];\n var y = this.circles[circleUid * 3 + 1];\n var radius = this.circles[circleUid * 3 + 2];\n result.push({\n key: this.circleKeys[circleUid],\n x1: x - radius,\n y1: y - radius,\n x2: x + radius,\n y2: y + radius\n });\n }\n return predicate ? result.filter(predicate) : result;\n } else {\n var queryArgs = {\n hitTest: hitTest,\n seenUids: {\n box: {},\n circle: {}\n }\n };\n this._forEachCell(x1, y1, x2, y2, this._queryCell, result, queryArgs, predicate);\n return hitTest ? result.length > 0 : result;\n }\n};\nGridIndex.prototype._queryCircle = function _queryCircle(x, y, radius, hitTest, predicate) {\n var x1 = x - radius;\n var x2 = x + radius;\n var y1 = y - radius;\n var y2 = y + radius;\n if (x2 < 0 || x1 > this.width || y2 < 0 || y1 > this.height) {\n return hitTest ? false : [];\n }\n var result = [];\n var queryArgs = {\n hitTest: hitTest,\n circle: {\n x: x,\n y: y,\n radius: radius\n },\n seenUids: {\n box: {},\n circle: {}\n }\n };\n this._forEachCell(x1, y1, x2, y2, this._queryCellCircle, result, queryArgs, predicate);\n return hitTest ? result.length > 0 : result;\n};\nGridIndex.prototype.query = function query(x1, y1, x2, y2, predicate) {\n return this._query(x1, y1, x2, y2, false, predicate);\n};\nGridIndex.prototype.hitTest = function hitTest(x1, y1, x2, y2, predicate) {\n return this._query(x1, y1, x2, y2, true, predicate);\n};\nGridIndex.prototype.hitTestCircle = function hitTestCircle(x, y, radius, predicate) {\n return this._queryCircle(x, y, radius, true, predicate);\n};\nGridIndex.prototype._queryCell = function _queryCell(x1, y1, x2, y2, cellIndex, result, queryArgs, predicate) {\n var seenUids = queryArgs.seenUids;\n var boxCell = this.boxCells[cellIndex];\n if (boxCell !== null) {\n var bboxes = this.bboxes;\n for (var i = 0, list = boxCell; i < list.length; i += 1) {\n var boxUid = list[i];\n if (!seenUids.box[boxUid]) {\n seenUids.box[boxUid] = true;\n var offset = boxUid * 4;\n if (x1 <= bboxes[offset + 2] && y1 <= bboxes[offset + 3] && x2 >= bboxes[offset + 0] && y2 >= bboxes[offset + 1] && (!predicate || predicate(this.boxKeys[boxUid]))) {\n if (queryArgs.hitTest) {\n result.push(true);\n return true;\n } else {\n result.push({\n key: this.boxKeys[boxUid],\n x1: bboxes[offset],\n y1: bboxes[offset + 1],\n x2: bboxes[offset + 2],\n y2: bboxes[offset + 3]\n });\n }\n }\n }\n }\n }\n var circleCell = this.circleCells[cellIndex];\n if (circleCell !== null) {\n var circles = this.circles;\n for (var i$1 = 0, list$1 = circleCell; i$1 < list$1.length; i$1 += 1) {\n var circleUid = list$1[i$1];\n if (!seenUids.circle[circleUid]) {\n seenUids.circle[circleUid] = true;\n var offset$1 = circleUid * 3;\n if (this._circleAndRectCollide(circles[offset$1], circles[offset$1 + 1], circles[offset$1 + 2], x1, y1, x2, y2) && (!predicate || predicate(this.circleKeys[circleUid]))) {\n if (queryArgs.hitTest) {\n result.push(true);\n return true;\n } else {\n var x = circles[offset$1];\n var y = circles[offset$1 + 1];\n var radius = circles[offset$1 + 2];\n result.push({\n key: this.circleKeys[circleUid],\n x1: x - radius,\n y1: y - radius,\n x2: x + radius,\n y2: y + radius\n });\n }\n }\n }\n }\n }\n};\nGridIndex.prototype._queryCellCircle = function _queryCellCircle(x1, y1, x2, y2, cellIndex, result, queryArgs, predicate) {\n var circle = queryArgs.circle;\n var seenUids = queryArgs.seenUids;\n var boxCell = this.boxCells[cellIndex];\n if (boxCell !== null) {\n var bboxes = this.bboxes;\n for (var i = 0, list = boxCell; i < list.length; i += 1) {\n var boxUid = list[i];\n if (!seenUids.box[boxUid]) {\n seenUids.box[boxUid] = true;\n var offset = boxUid * 4;\n if (this._circleAndRectCollide(circle.x, circle.y, circle.radius, bboxes[offset + 0], bboxes[offset + 1], bboxes[offset + 2], bboxes[offset + 3]) && (!predicate || predicate(this.boxKeys[boxUid]))) {\n result.push(true);\n return true;\n }\n }\n }\n }\n var circleCell = this.circleCells[cellIndex];\n if (circleCell !== null) {\n var circles = this.circles;\n for (var i$1 = 0, list$1 = circleCell; i$1 < list$1.length; i$1 += 1) {\n var circleUid = list$1[i$1];\n if (!seenUids.circle[circleUid]) {\n seenUids.circle[circleUid] = true;\n var offset$1 = circleUid * 3;\n if (this._circlesCollide(circles[offset$1], circles[offset$1 + 1], circles[offset$1 + 2], circle.x, circle.y, circle.radius) && (!predicate || predicate(this.circleKeys[circleUid]))) {\n result.push(true);\n return true;\n }\n }\n }\n }\n};\nGridIndex.prototype._forEachCell = function _forEachCell(x1, y1, x2, y2, fn, arg1, arg2, predicate) {\n var cx1 = this._convertToXCellCoord(x1);\n var cy1 = this._convertToYCellCoord(y1);\n var cx2 = this._convertToXCellCoord(x2);\n var cy2 = this._convertToYCellCoord(y2);\n for (var x = cx1; x <= cx2; x++) {\n for (var y = cy1; y <= cy2; y++) {\n var cellIndex = this.xCellCount * y + x;\n if (fn.call(this, x1, y1, x2, y2, cellIndex, arg1, arg2, predicate)) {\n return;\n }\n }\n }\n};\nGridIndex.prototype._convertToXCellCoord = function _convertToXCellCoord(x) {\n return Math.max(0, Math.min(this.xCellCount - 1, Math.floor(x * this.xScale)));\n};\nGridIndex.prototype._convertToYCellCoord = function _convertToYCellCoord(y) {\n return Math.max(0, Math.min(this.yCellCount - 1, Math.floor(y * this.yScale)));\n};\nGridIndex.prototype._circlesCollide = function _circlesCollide(x1, y1, r1, x2, y2, r2) {\n var dx = x2 - x1;\n var dy = y2 - y1;\n var bothRadii = r1 + r2;\n return bothRadii * bothRadii > dx * dx + dy * dy;\n};\nGridIndex.prototype._circleAndRectCollide = function _circleAndRectCollide(circleX, circleY, radius, x1, y1, x2, y2) {\n var halfRectWidth = (x2 - x1) / 2;\n var distX = Math.abs(circleX - (x1 + halfRectWidth));\n if (distX > halfRectWidth + radius) {\n return false;\n }\n var halfRectHeight = (y2 - y1) / 2;\n var distY = Math.abs(circleY - (y1 + halfRectHeight));\n if (distY > halfRectHeight + radius) {\n return false;\n }\n if (distX <= halfRectWidth || distY <= halfRectHeight) {\n return true;\n }\n var dx = distX - halfRectWidth;\n var dy = distY - halfRectHeight;\n return dx * dx + dy * dy <= radius * radius;\n};\n\nfunction getLabelPlaneMatrix(posMatrix, pitchWithMap, rotateWithMap, transform, pixelsToTileUnits) {\n var m = performance.create();\n if (pitchWithMap) {\n performance.scale(m, m, [\n 1 / pixelsToTileUnits,\n 1 / pixelsToTileUnits,\n 1\n ]);\n if (!rotateWithMap) {\n performance.rotateZ(m, m, transform.angle);\n }\n } else {\n performance.multiply(m, transform.labelPlaneMatrix, posMatrix);\n }\n return m;\n}\nfunction getGlCoordMatrix(posMatrix, pitchWithMap, rotateWithMap, transform, pixelsToTileUnits) {\n if (pitchWithMap) {\n var m = performance.clone(posMatrix);\n performance.scale(m, m, [\n pixelsToTileUnits,\n pixelsToTileUnits,\n 1\n ]);\n if (!rotateWithMap) {\n performance.rotateZ(m, m, -transform.angle);\n }\n return m;\n } else {\n return transform.glCoordMatrix;\n }\n}\nfunction project(point, matrix) {\n var pos = [\n point.x,\n point.y,\n 0,\n 1\n ];\n xyTransformMat4(pos, pos, matrix);\n var w = pos[3];\n return {\n point: new performance.Point(pos[0] / w, pos[1] / w),\n signedDistanceFromCamera: w\n };\n}\nfunction getPerspectiveRatio(cameraToCenterDistance, signedDistanceFromCamera) {\n return 0.5 + 0.5 * (cameraToCenterDistance / signedDistanceFromCamera);\n}\nfunction isVisible(anchorPos, clippingBuffer) {\n var x = anchorPos[0] / anchorPos[3];\n var y = anchorPos[1] / anchorPos[3];\n var inPaddedViewport = x >= -clippingBuffer[0] && x <= clippingBuffer[0] && y >= -clippingBuffer[1] && y <= clippingBuffer[1];\n return inPaddedViewport;\n}\nfunction updateLineLabels(bucket, posMatrix, painter, isText, labelPlaneMatrix, glCoordMatrix, pitchWithMap, keepUpright) {\n var sizeData = isText ? bucket.textSizeData : bucket.iconSizeData;\n var partiallyEvaluatedSize = performance.evaluateSizeForZoom(sizeData, painter.transform.zoom);\n var clippingBuffer = [\n 256 / painter.width * 2 + 1,\n 256 / painter.height * 2 + 1\n ];\n var dynamicLayoutVertexArray = isText ? bucket.text.dynamicLayoutVertexArray : bucket.icon.dynamicLayoutVertexArray;\n dynamicLayoutVertexArray.clear();\n var lineVertexArray = bucket.lineVertexArray;\n var placedSymbols = isText ? bucket.text.placedSymbolArray : bucket.icon.placedSymbolArray;\n var aspectRatio = painter.transform.width / painter.transform.height;\n var useVertical = false;\n for (var s = 0; s < placedSymbols.length; s++) {\n var symbol = placedSymbols.get(s);\n if (symbol.hidden || symbol.writingMode === performance.WritingMode.vertical && !useVertical) {\n hideGlyphs(symbol.numGlyphs, dynamicLayoutVertexArray);\n continue;\n }\n useVertical = false;\n var anchorPos = [\n symbol.anchorX,\n symbol.anchorY,\n 0,\n 1\n ];\n performance.transformMat4(anchorPos, anchorPos, posMatrix);\n if (!isVisible(anchorPos, clippingBuffer)) {\n hideGlyphs(symbol.numGlyphs, dynamicLayoutVertexArray);\n continue;\n }\n var cameraToAnchorDistance = anchorPos[3];\n var perspectiveRatio = getPerspectiveRatio(painter.transform.cameraToCenterDistance, cameraToAnchorDistance);\n var fontSize = performance.evaluateSizeForFeature(sizeData, partiallyEvaluatedSize, symbol);\n var pitchScaledFontSize = pitchWithMap ? fontSize / perspectiveRatio : fontSize * perspectiveRatio;\n var tileAnchorPoint = new performance.Point(symbol.anchorX, symbol.anchorY);\n var anchorPoint = project(tileAnchorPoint, labelPlaneMatrix).point;\n var projectionCache = {};\n var placeUnflipped = placeGlyphsAlongLine(symbol, pitchScaledFontSize, false, keepUpright, posMatrix, labelPlaneMatrix, glCoordMatrix, bucket.glyphOffsetArray, lineVertexArray, dynamicLayoutVertexArray, anchorPoint, tileAnchorPoint, projectionCache, aspectRatio);\n useVertical = placeUnflipped.useVertical;\n if (placeUnflipped.notEnoughRoom || useVertical || placeUnflipped.needsFlipping && placeGlyphsAlongLine(symbol, pitchScaledFontSize, true, keepUpright, posMatrix, labelPlaneMatrix, glCoordMatrix, bucket.glyphOffsetArray, lineVertexArray, dynamicLayoutVertexArray, anchorPoint, tileAnchorPoint, projectionCache, aspectRatio).notEnoughRoom) {\n hideGlyphs(symbol.numGlyphs, dynamicLayoutVertexArray);\n }\n }\n if (isText) {\n bucket.text.dynamicLayoutVertexBuffer.updateData(dynamicLayoutVertexArray);\n } else {\n bucket.icon.dynamicLayoutVertexBuffer.updateData(dynamicLayoutVertexArray);\n }\n}\nfunction placeFirstAndLastGlyph(fontScale, glyphOffsetArray, lineOffsetX, lineOffsetY, flip, anchorPoint, tileAnchorPoint, symbol, lineVertexArray, labelPlaneMatrix, projectionCache) {\n var glyphEndIndex = symbol.glyphStartIndex + symbol.numGlyphs;\n var lineStartIndex = symbol.lineStartIndex;\n var lineEndIndex = symbol.lineStartIndex + symbol.lineLength;\n var firstGlyphOffset = glyphOffsetArray.getoffsetX(symbol.glyphStartIndex);\n var lastGlyphOffset = glyphOffsetArray.getoffsetX(glyphEndIndex - 1);\n var firstPlacedGlyph = placeGlyphAlongLine(fontScale * firstGlyphOffset, lineOffsetX, lineOffsetY, flip, anchorPoint, tileAnchorPoint, symbol.segment, lineStartIndex, lineEndIndex, lineVertexArray, labelPlaneMatrix, projectionCache);\n if (!firstPlacedGlyph) {\n return null;\n }\n var lastPlacedGlyph = placeGlyphAlongLine(fontScale * lastGlyphOffset, lineOffsetX, lineOffsetY, flip, anchorPoint, tileAnchorPoint, symbol.segment, lineStartIndex, lineEndIndex, lineVertexArray, labelPlaneMatrix, projectionCache);\n if (!lastPlacedGlyph) {\n return null;\n }\n return {\n first: firstPlacedGlyph,\n last: lastPlacedGlyph\n };\n}\nfunction requiresOrientationChange(writingMode, firstPoint, lastPoint, aspectRatio) {\n if (writingMode === performance.WritingMode.horizontal) {\n var rise = Math.abs(lastPoint.y - firstPoint.y);\n var run = Math.abs(lastPoint.x - firstPoint.x) * aspectRatio;\n if (rise > run) {\n return { useVertical: true };\n }\n }\n if (writingMode === performance.WritingMode.vertical ? firstPoint.y < lastPoint.y : firstPoint.x > lastPoint.x) {\n return { needsFlipping: true };\n }\n return null;\n}\nfunction placeGlyphsAlongLine(symbol, fontSize, flip, keepUpright, posMatrix, labelPlaneMatrix, glCoordMatrix, glyphOffsetArray, lineVertexArray, dynamicLayoutVertexArray, anchorPoint, tileAnchorPoint, projectionCache, aspectRatio) {\n var fontScale = fontSize / 24;\n var lineOffsetX = symbol.lineOffsetX * fontScale;\n var lineOffsetY = symbol.lineOffsetY * fontScale;\n var placedGlyphs;\n if (symbol.numGlyphs > 1) {\n var glyphEndIndex = symbol.glyphStartIndex + symbol.numGlyphs;\n var lineStartIndex = symbol.lineStartIndex;\n var lineEndIndex = symbol.lineStartIndex + symbol.lineLength;\n var firstAndLastGlyph = placeFirstAndLastGlyph(fontScale, glyphOffsetArray, lineOffsetX, lineOffsetY, flip, anchorPoint, tileAnchorPoint, symbol, lineVertexArray, labelPlaneMatrix, projectionCache);\n if (!firstAndLastGlyph) {\n return { notEnoughRoom: true };\n }\n var firstPoint = project(firstAndLastGlyph.first.point, glCoordMatrix).point;\n var lastPoint = project(firstAndLastGlyph.last.point, glCoordMatrix).point;\n if (keepUpright && !flip) {\n var orientationChange = requiresOrientationChange(symbol.writingMode, firstPoint, lastPoint, aspectRatio);\n if (orientationChange) {\n return orientationChange;\n }\n }\n placedGlyphs = [firstAndLastGlyph.first];\n for (var glyphIndex = symbol.glyphStartIndex + 1; glyphIndex < glyphEndIndex - 1; glyphIndex++) {\n placedGlyphs.push(placeGlyphAlongLine(fontScale * glyphOffsetArray.getoffsetX(glyphIndex), lineOffsetX, lineOffsetY, flip, anchorPoint, tileAnchorPoint, symbol.segment, lineStartIndex, lineEndIndex, lineVertexArray, labelPlaneMatrix, projectionCache));\n }\n placedGlyphs.push(firstAndLastGlyph.last);\n } else {\n if (keepUpright && !flip) {\n var a = project(tileAnchorPoint, posMatrix).point;\n var tileVertexIndex = symbol.lineStartIndex + symbol.segment + 1;\n var tileSegmentEnd = new performance.Point(lineVertexArray.getx(tileVertexIndex), lineVertexArray.gety(tileVertexIndex));\n var projectedVertex = project(tileSegmentEnd, posMatrix);\n var b = projectedVertex.signedDistanceFromCamera > 0 ? projectedVertex.point : projectTruncatedLineSegment(tileAnchorPoint, tileSegmentEnd, a, 1, posMatrix);\n var orientationChange$1 = requiresOrientationChange(symbol.writingMode, a, b, aspectRatio);\n if (orientationChange$1) {\n return orientationChange$1;\n }\n }\n var singleGlyph = placeGlyphAlongLine(fontScale * glyphOffsetArray.getoffsetX(symbol.glyphStartIndex), lineOffsetX, lineOffsetY, flip, anchorPoint, tileAnchorPoint, symbol.segment, symbol.lineStartIndex, symbol.lineStartIndex + symbol.lineLength, lineVertexArray, labelPlaneMatrix, projectionCache);\n if (!singleGlyph) {\n return { notEnoughRoom: true };\n }\n placedGlyphs = [singleGlyph];\n }\n for (var i = 0, list = placedGlyphs; i < list.length; i += 1) {\n var glyph = list[i];\n performance.addDynamicAttributes(dynamicLayoutVertexArray, glyph.point, glyph.angle);\n }\n return {};\n}\nfunction projectTruncatedLineSegment(previousTilePoint, currentTilePoint, previousProjectedPoint, minimumLength, projectionMatrix) {\n var projectedUnitVertex = project(previousTilePoint.add(previousTilePoint.sub(currentTilePoint)._unit()), projectionMatrix).point;\n var projectedUnitSegment = previousProjectedPoint.sub(projectedUnitVertex);\n return previousProjectedPoint.add(projectedUnitSegment._mult(minimumLength / projectedUnitSegment.mag()));\n}\nfunction placeGlyphAlongLine(offsetX, lineOffsetX, lineOffsetY, flip, anchorPoint, tileAnchorPoint, anchorSegment, lineStartIndex, lineEndIndex, lineVertexArray, labelPlaneMatrix, projectionCache) {\n var combinedOffsetX = flip ? offsetX - lineOffsetX : offsetX + lineOffsetX;\n var dir = combinedOffsetX > 0 ? 1 : -1;\n var angle = 0;\n if (flip) {\n dir *= -1;\n angle = Math.PI;\n }\n if (dir < 0) {\n angle += Math.PI;\n }\n var currentIndex = dir > 0 ? lineStartIndex + anchorSegment : lineStartIndex + anchorSegment + 1;\n var current = anchorPoint;\n var prev = anchorPoint;\n var distanceToPrev = 0;\n var currentSegmentDistance = 0;\n var absOffsetX = Math.abs(combinedOffsetX);\n var pathVertices = [];\n while (distanceToPrev + currentSegmentDistance <= absOffsetX) {\n currentIndex += dir;\n if (currentIndex < lineStartIndex || currentIndex >= lineEndIndex) {\n return null;\n }\n prev = current;\n pathVertices.push(current);\n current = projectionCache[currentIndex];\n if (current === undefined) {\n var currentVertex = new performance.Point(lineVertexArray.getx(currentIndex), lineVertexArray.gety(currentIndex));\n var projection = project(currentVertex, labelPlaneMatrix);\n if (projection.signedDistanceFromCamera > 0) {\n current = projectionCache[currentIndex] = projection.point;\n } else {\n var previousLineVertexIndex = currentIndex - dir;\n var previousTilePoint = distanceToPrev === 0 ? tileAnchorPoint : new performance.Point(lineVertexArray.getx(previousLineVertexIndex), lineVertexArray.gety(previousLineVertexIndex));\n current = projectTruncatedLineSegment(previousTilePoint, currentVertex, prev, absOffsetX - distanceToPrev + 1, labelPlaneMatrix);\n }\n }\n distanceToPrev += currentSegmentDistance;\n currentSegmentDistance = prev.dist(current);\n }\n var segmentInterpolationT = (absOffsetX - distanceToPrev) / currentSegmentDistance;\n var prevToCurrent = current.sub(prev);\n var p = prevToCurrent.mult(segmentInterpolationT)._add(prev);\n p._add(prevToCurrent._unit()._perp()._mult(lineOffsetY * dir));\n var segmentAngle = angle + Math.atan2(current.y - prev.y, current.x - prev.x);\n pathVertices.push(p);\n return {\n point: p,\n angle: segmentAngle,\n path: pathVertices\n };\n}\nvar hiddenGlyphAttributes = new Float32Array([\n -Infinity,\n -Infinity,\n 0,\n -Infinity,\n -Infinity,\n 0,\n -Infinity,\n -Infinity,\n 0,\n -Infinity,\n -Infinity,\n 0\n]);\nfunction hideGlyphs(num, dynamicLayoutVertexArray) {\n for (var i = 0; i < num; i++) {\n var offset = dynamicLayoutVertexArray.length;\n dynamicLayoutVertexArray.resize(offset + 4);\n dynamicLayoutVertexArray.float32.set(hiddenGlyphAttributes, offset * 3);\n }\n}\nfunction xyTransformMat4(out, a, m) {\n var x = a[0], y = a[1];\n out[0] = m[0] * x + m[4] * y + m[12];\n out[1] = m[1] * x + m[5] * y + m[13];\n out[3] = m[3] * x + m[7] * y + m[15];\n return out;\n}\n\nvar viewportPadding = 100;\nvar CollisionIndex = function CollisionIndex(transform, grid, ignoredGrid) {\n if (grid === void 0)\n grid = new GridIndex(transform.width + 2 * viewportPadding, transform.height + 2 * viewportPadding, 25);\n if (ignoredGrid === void 0)\n ignoredGrid = new GridIndex(transform.width + 2 * viewportPadding, transform.height + 2 * viewportPadding, 25);\n this.transform = transform;\n this.grid = grid;\n this.ignoredGrid = ignoredGrid;\n this.pitchfactor = Math.cos(transform._pitch) * transform.cameraToCenterDistance;\n this.screenRightBoundary = transform.width + viewportPadding;\n this.screenBottomBoundary = transform.height + viewportPadding;\n this.gridRightBoundary = transform.width + 2 * viewportPadding;\n this.gridBottomBoundary = transform.height + 2 * viewportPadding;\n};\nCollisionIndex.prototype.placeCollisionBox = function placeCollisionBox(collisionBox, allowOverlap, textPixelRatio, posMatrix, collisionGroupPredicate) {\n var projectedPoint = this.projectAndGetPerspectiveRatio(posMatrix, collisionBox.anchorPointX, collisionBox.anchorPointY);\n var tileToViewport = textPixelRatio * projectedPoint.perspectiveRatio;\n var tlX = collisionBox.x1 * tileToViewport + projectedPoint.point.x;\n var tlY = collisionBox.y1 * tileToViewport + projectedPoint.point.y;\n var brX = collisionBox.x2 * tileToViewport + projectedPoint.point.x;\n var brY = collisionBox.y2 * tileToViewport + projectedPoint.point.y;\n if (!this.isInsideGrid(tlX, tlY, brX, brY) || !allowOverlap && this.grid.hitTest(tlX, tlY, brX, brY, collisionGroupPredicate)) {\n return {\n box: [],\n offscreen: false\n };\n }\n return {\n box: [\n tlX,\n tlY,\n brX,\n brY\n ],\n offscreen: this.isOffscreen(tlX, tlY, brX, brY)\n };\n};\nCollisionIndex.prototype.placeCollisionCircles = function placeCollisionCircles(allowOverlap, symbol, lineVertexArray, glyphOffsetArray, fontSize, posMatrix, labelPlaneMatrix, labelToScreenMatrix, showCollisionCircles, pitchWithMap, collisionGroupPredicate, circlePixelDiameter, textPixelPadding) {\n var placedCollisionCircles = [];\n var tileUnitAnchorPoint = new performance.Point(symbol.anchorX, symbol.anchorY);\n var screenAnchorPoint = project(tileUnitAnchorPoint, posMatrix);\n var perspectiveRatio = getPerspectiveRatio(this.transform.cameraToCenterDistance, screenAnchorPoint.signedDistanceFromCamera);\n var labelPlaneFontSize = pitchWithMap ? fontSize / perspectiveRatio : fontSize * perspectiveRatio;\n var labelPlaneFontScale = labelPlaneFontSize / performance.ONE_EM;\n var labelPlaneAnchorPoint = project(tileUnitAnchorPoint, labelPlaneMatrix).point;\n var projectionCache = {};\n var lineOffsetX = symbol.lineOffsetX * labelPlaneFontScale;\n var lineOffsetY = symbol.lineOffsetY * labelPlaneFontScale;\n var firstAndLastGlyph = placeFirstAndLastGlyph(labelPlaneFontScale, glyphOffsetArray, lineOffsetX, lineOffsetY, false, labelPlaneAnchorPoint, tileUnitAnchorPoint, symbol, lineVertexArray, labelPlaneMatrix, projectionCache);\n var collisionDetected = false;\n var inGrid = false;\n var entirelyOffscreen = true;\n if (firstAndLastGlyph) {\n var radius = circlePixelDiameter * 0.5 * perspectiveRatio + textPixelPadding;\n var screenPlaneMin = new performance.Point(-viewportPadding, -viewportPadding);\n var screenPlaneMax = new performance.Point(this.screenRightBoundary, this.screenBottomBoundary);\n var interpolator = new PathInterpolator();\n var first = firstAndLastGlyph.first;\n var last = firstAndLastGlyph.last;\n var projectedPath = [];\n for (var i = first.path.length - 1; i >= 1; i--) {\n projectedPath.push(first.path[i]);\n }\n for (var i$1 = 1; i$1 < last.path.length; i$1++) {\n projectedPath.push(last.path[i$1]);\n }\n var circleDist = radius * 2.5;\n if (labelToScreenMatrix) {\n var screenSpacePath = projectedPath.map(function (p) {\n return project(p, labelToScreenMatrix);\n });\n if (screenSpacePath.some(function (point) {\n return point.signedDistanceFromCamera <= 0;\n })) {\n projectedPath = [];\n } else {\n projectedPath = screenSpacePath.map(function (p) {\n return p.point;\n });\n }\n }\n var segments = [];\n if (projectedPath.length > 0) {\n var minPoint = projectedPath[0].clone();\n var maxPoint = projectedPath[0].clone();\n for (var i$2 = 1; i$2 < projectedPath.length; i$2++) {\n minPoint.x = Math.min(minPoint.x, projectedPath[i$2].x);\n minPoint.y = Math.min(minPoint.y, projectedPath[i$2].y);\n maxPoint.x = Math.max(maxPoint.x, projectedPath[i$2].x);\n maxPoint.y = Math.max(maxPoint.y, projectedPath[i$2].y);\n }\n if (minPoint.x >= screenPlaneMin.x && maxPoint.x <= screenPlaneMax.x && minPoint.y >= screenPlaneMin.y && maxPoint.y <= screenPlaneMax.y) {\n segments = [projectedPath];\n } else if (maxPoint.x < screenPlaneMin.x || minPoint.x > screenPlaneMax.x || maxPoint.y < screenPlaneMin.y || minPoint.y > screenPlaneMax.y) {\n segments = [];\n } else {\n segments = performance.clipLine([projectedPath], screenPlaneMin.x, screenPlaneMin.y, screenPlaneMax.x, screenPlaneMax.y);\n }\n }\n for (var i$4 = 0, list = segments; i$4 < list.length; i$4 += 1) {\n var seg = list[i$4];\n interpolator.reset(seg, radius * 0.25);\n var numCircles = 0;\n if (interpolator.length <= 0.5 * radius) {\n numCircles = 1;\n } else {\n numCircles = Math.ceil(interpolator.paddedLength / circleDist) + 1;\n }\n for (var i$3 = 0; i$3 < numCircles; i$3++) {\n var t = i$3 / Math.max(numCircles - 1, 1);\n var circlePosition = interpolator.lerp(t);\n var centerX = circlePosition.x + viewportPadding;\n var centerY = circlePosition.y + viewportPadding;\n placedCollisionCircles.push(centerX, centerY, radius, 0);\n var x1 = centerX - radius;\n var y1 = centerY - radius;\n var x2 = centerX + radius;\n var y2 = centerY + radius;\n entirelyOffscreen = entirelyOffscreen && this.isOffscreen(x1, y1, x2, y2);\n inGrid = inGrid || this.isInsideGrid(x1, y1, x2, y2);\n if (!allowOverlap) {\n if (this.grid.hitTestCircle(centerX, centerY, radius, collisionGroupPredicate)) {\n collisionDetected = true;\n if (!showCollisionCircles) {\n return {\n circles: [],\n offscreen: false,\n collisionDetected: collisionDetected\n };\n }\n }\n }\n }\n }\n }\n return {\n circles: !showCollisionCircles && collisionDetected || !inGrid ? [] : placedCollisionCircles,\n offscreen: entirelyOffscreen,\n collisionDetected: collisionDetected\n };\n};\nCollisionIndex.prototype.queryRenderedSymbols = function queryRenderedSymbols(viewportQueryGeometry) {\n if (viewportQueryGeometry.length === 0 || this.grid.keysLength() === 0 && this.ignoredGrid.keysLength() === 0) {\n return {};\n }\n var query = [];\n var minX = Infinity;\n var minY = Infinity;\n var maxX = -Infinity;\n var maxY = -Infinity;\n for (var i = 0, list = viewportQueryGeometry; i < list.length; i += 1) {\n var point = list[i];\n var gridPoint = new performance.Point(point.x + viewportPadding, point.y + viewportPadding);\n minX = Math.min(minX, gridPoint.x);\n minY = Math.min(minY, gridPoint.y);\n maxX = Math.max(maxX, gridPoint.x);\n maxY = Math.max(maxY, gridPoint.y);\n query.push(gridPoint);\n }\n var features = this.grid.query(minX, minY, maxX, maxY).concat(this.ignoredGrid.query(minX, minY, maxX, maxY));\n var seenFeatures = {};\n var result = {};\n for (var i$1 = 0, list$1 = features; i$1 < list$1.length; i$1 += 1) {\n var feature = list$1[i$1];\n var featureKey = feature.key;\n if (seenFeatures[featureKey.bucketInstanceId] === undefined) {\n seenFeatures[featureKey.bucketInstanceId] = {};\n }\n if (seenFeatures[featureKey.bucketInstanceId][featureKey.featureIndex]) {\n continue;\n }\n var bbox = [\n new performance.Point(feature.x1, feature.y1),\n new performance.Point(feature.x2, feature.y1),\n new performance.Point(feature.x2, feature.y2),\n new performance.Point(feature.x1, feature.y2)\n ];\n if (!performance.polygonIntersectsPolygon(query, bbox)) {\n continue;\n }\n seenFeatures[featureKey.bucketInstanceId][featureKey.featureIndex] = true;\n if (result[featureKey.bucketInstanceId] === undefined) {\n result[featureKey.bucketInstanceId] = [];\n }\n result[featureKey.bucketInstanceId].push(featureKey.featureIndex);\n }\n return result;\n};\nCollisionIndex.prototype.insertCollisionBox = function insertCollisionBox(collisionBox, ignorePlacement, bucketInstanceId, featureIndex, collisionGroupID) {\n var grid = ignorePlacement ? this.ignoredGrid : this.grid;\n var key = {\n bucketInstanceId: bucketInstanceId,\n featureIndex: featureIndex,\n collisionGroupID: collisionGroupID\n };\n grid.insert(key, collisionBox[0], collisionBox[1], collisionBox[2], collisionBox[3]);\n};\nCollisionIndex.prototype.insertCollisionCircles = function insertCollisionCircles(collisionCircles, ignorePlacement, bucketInstanceId, featureIndex, collisionGroupID) {\n var grid = ignorePlacement ? this.ignoredGrid : this.grid;\n var key = {\n bucketInstanceId: bucketInstanceId,\n featureIndex: featureIndex,\n collisionGroupID: collisionGroupID\n };\n for (var k = 0; k < collisionCircles.length; k += 4) {\n grid.insertCircle(key, collisionCircles[k], collisionCircles[k + 1], collisionCircles[k + 2]);\n }\n};\nCollisionIndex.prototype.projectAndGetPerspectiveRatio = function projectAndGetPerspectiveRatio(posMatrix, x, y) {\n var p = [\n x,\n y,\n 0,\n 1\n ];\n xyTransformMat4(p, p, posMatrix);\n var a = new performance.Point((p[0] / p[3] + 1) / 2 * this.transform.width + viewportPadding, (-p[1] / p[3] + 1) / 2 * this.transform.height + viewportPadding);\n return {\n point: a,\n perspectiveRatio: 0.5 + 0.5 * (this.transform.cameraToCenterDistance / p[3])\n };\n};\nCollisionIndex.prototype.isOffscreen = function isOffscreen(x1, y1, x2, y2) {\n return x2 < viewportPadding || x1 >= this.screenRightBoundary || y2 < viewportPadding || y1 > this.screenBottomBoundary;\n};\nCollisionIndex.prototype.isInsideGrid = function isInsideGrid(x1, y1, x2, y2) {\n return x2 >= 0 && x1 < this.gridRightBoundary && y2 >= 0 && y1 < this.gridBottomBoundary;\n};\nCollisionIndex.prototype.getViewportMatrix = function getViewportMatrix() {\n var m = performance.identity([]);\n performance.translate(m, m, [\n -viewportPadding,\n -viewportPadding,\n 0\n ]);\n return m;\n};\n\nfunction pixelsToTileUnits (tile, pixelValue, z) {\n return pixelValue * (performance.EXTENT / (tile.tileSize * Math.pow(2, z - tile.tileID.overscaledZ)));\n}\n\nvar OpacityState = function OpacityState(prevState, increment, placed, skipFade) {\n if (prevState) {\n this.opacity = Math.max(0, Math.min(1, prevState.opacity + (prevState.placed ? increment : -increment)));\n } else {\n this.opacity = skipFade && placed ? 1 : 0;\n }\n this.placed = placed;\n};\nOpacityState.prototype.isHidden = function isHidden() {\n return this.opacity === 0 && !this.placed;\n};\nvar JointOpacityState = function JointOpacityState(prevState, increment, placedText, placedIcon, skipFade) {\n this.text = new OpacityState(prevState ? prevState.text : null, increment, placedText, skipFade);\n this.icon = new OpacityState(prevState ? prevState.icon : null, increment, placedIcon, skipFade);\n};\nJointOpacityState.prototype.isHidden = function isHidden() {\n return this.text.isHidden() && this.icon.isHidden();\n};\nvar JointPlacement = function JointPlacement(text, icon, skipFade) {\n this.text = text;\n this.icon = icon;\n this.skipFade = skipFade;\n};\nvar CollisionCircleArray = function CollisionCircleArray() {\n this.invProjMatrix = performance.create();\n this.viewportMatrix = performance.create();\n this.circles = [];\n};\nvar RetainedQueryData = function RetainedQueryData(bucketInstanceId, featureIndex, sourceLayerIndex, bucketIndex, tileID) {\n this.bucketInstanceId = bucketInstanceId;\n this.featureIndex = featureIndex;\n this.sourceLayerIndex = sourceLayerIndex;\n this.bucketIndex = bucketIndex;\n this.tileID = tileID;\n};\nvar CollisionGroups = function CollisionGroups(crossSourceCollisions) {\n this.crossSourceCollisions = crossSourceCollisions;\n this.maxGroupID = 0;\n this.collisionGroups = {};\n};\nCollisionGroups.prototype.get = function get(sourceID) {\n if (!this.crossSourceCollisions) {\n if (!this.collisionGroups[sourceID]) {\n var nextGroupID = ++this.maxGroupID;\n this.collisionGroups[sourceID] = {\n ID: nextGroupID,\n predicate: function (key) {\n return key.collisionGroupID === nextGroupID;\n }\n };\n }\n return this.collisionGroups[sourceID];\n } else {\n return {\n ID: 0,\n predicate: null\n };\n }\n};\nfunction calculateVariableLayoutShift(anchor, width, height, textOffset, textBoxScale) {\n var ref = performance.getAnchorAlignment(anchor);\n var horizontalAlign = ref.horizontalAlign;\n var verticalAlign = ref.verticalAlign;\n var shiftX = -(horizontalAlign - 0.5) * width;\n var shiftY = -(verticalAlign - 0.5) * height;\n var offset = performance.evaluateVariableOffset(anchor, textOffset);\n return new performance.Point(shiftX + offset[0] * textBoxScale, shiftY + offset[1] * textBoxScale);\n}\nfunction shiftVariableCollisionBox(collisionBox, shiftX, shiftY, rotateWithMap, pitchWithMap, angle) {\n var x1 = collisionBox.x1;\n var x2 = collisionBox.x2;\n var y1 = collisionBox.y1;\n var y2 = collisionBox.y2;\n var anchorPointX = collisionBox.anchorPointX;\n var anchorPointY = collisionBox.anchorPointY;\n var rotatedOffset = new performance.Point(shiftX, shiftY);\n if (rotateWithMap) {\n rotatedOffset._rotate(pitchWithMap ? angle : -angle);\n }\n return {\n x1: x1 + rotatedOffset.x,\n y1: y1 + rotatedOffset.y,\n x2: x2 + rotatedOffset.x,\n y2: y2 + rotatedOffset.y,\n anchorPointX: anchorPointX,\n anchorPointY: anchorPointY\n };\n}\nvar Placement = function Placement(transform, fadeDuration, crossSourceCollisions, prevPlacement) {\n this.transform = transform.clone();\n this.collisionIndex = new CollisionIndex(this.transform);\n this.placements = {};\n this.opacities = {};\n this.variableOffsets = {};\n this.stale = false;\n this.commitTime = 0;\n this.fadeDuration = fadeDuration;\n this.retainedQueryData = {};\n this.collisionGroups = new CollisionGroups(crossSourceCollisions);\n this.collisionCircleArrays = {};\n this.prevPlacement = prevPlacement;\n if (prevPlacement) {\n prevPlacement.prevPlacement = undefined;\n }\n this.placedOrientations = {};\n};\nPlacement.prototype.getBucketParts = function getBucketParts(results, styleLayer, tile, sortAcrossTiles) {\n var symbolBucket = tile.getBucket(styleLayer);\n var bucketFeatureIndex = tile.latestFeatureIndex;\n if (!symbolBucket || !bucketFeatureIndex || styleLayer.id !== symbolBucket.layerIds[0]) {\n return;\n }\n var collisionBoxArray = tile.collisionBoxArray;\n var layout = symbolBucket.layers[0].layout;\n var scale = Math.pow(2, this.transform.zoom - tile.tileID.overscaledZ);\n var textPixelRatio = tile.tileSize / performance.EXTENT;\n var posMatrix = this.transform.calculatePosMatrix(tile.tileID.toUnwrapped());\n var pitchWithMap = layout.get('text-pitch-alignment') === 'map';\n var rotateWithMap = layout.get('text-rotation-alignment') === 'map';\n var pixelsToTiles = pixelsToTileUnits(tile, 1, this.transform.zoom);\n var textLabelPlaneMatrix = getLabelPlaneMatrix(posMatrix, pitchWithMap, rotateWithMap, this.transform, pixelsToTiles);\n var labelToScreenMatrix = null;\n if (pitchWithMap) {\n var glMatrix = getGlCoordMatrix(posMatrix, pitchWithMap, rotateWithMap, this.transform, pixelsToTiles);\n labelToScreenMatrix = performance.multiply([], this.transform.labelPlaneMatrix, glMatrix);\n }\n this.retainedQueryData[symbolBucket.bucketInstanceId] = new RetainedQueryData(symbolBucket.bucketInstanceId, bucketFeatureIndex, symbolBucket.sourceLayerIndex, symbolBucket.index, tile.tileID);\n var parameters = {\n bucket: symbolBucket,\n layout: layout,\n posMatrix: posMatrix,\n textLabelPlaneMatrix: textLabelPlaneMatrix,\n labelToScreenMatrix: labelToScreenMatrix,\n scale: scale,\n textPixelRatio: textPixelRatio,\n holdingForFade: tile.holdingForFade(),\n collisionBoxArray: collisionBoxArray,\n partiallyEvaluatedTextSize: performance.evaluateSizeForZoom(symbolBucket.textSizeData, this.transform.zoom),\n collisionGroup: this.collisionGroups.get(symbolBucket.sourceID)\n };\n if (sortAcrossTiles) {\n for (var i = 0, list = symbolBucket.sortKeyRanges; i < list.length; i += 1) {\n var range = list[i];\n var sortKey = range.sortKey;\n var symbolInstanceStart = range.symbolInstanceStart;\n var symbolInstanceEnd = range.symbolInstanceEnd;\n results.push({\n sortKey: sortKey,\n symbolInstanceStart: symbolInstanceStart,\n symbolInstanceEnd: symbolInstanceEnd,\n parameters: parameters\n });\n }\n } else {\n results.push({\n symbolInstanceStart: 0,\n symbolInstanceEnd: symbolBucket.symbolInstances.length,\n parameters: parameters\n });\n }\n};\nPlacement.prototype.attemptAnchorPlacement = function attemptAnchorPlacement(anchor, textBox, width, height, textBoxScale, rotateWithMap, pitchWithMap, textPixelRatio, posMatrix, collisionGroup, textAllowOverlap, symbolInstance, bucket, orientation, iconBox) {\n var textOffset = [\n symbolInstance.textOffset0,\n symbolInstance.textOffset1\n ];\n var shift = calculateVariableLayoutShift(anchor, width, height, textOffset, textBoxScale);\n var placedGlyphBoxes = this.collisionIndex.placeCollisionBox(shiftVariableCollisionBox(textBox, shift.x, shift.y, rotateWithMap, pitchWithMap, this.transform.angle), textAllowOverlap, textPixelRatio, posMatrix, collisionGroup.predicate);\n if (iconBox) {\n var placedIconBoxes = this.collisionIndex.placeCollisionBox(shiftVariableCollisionBox(iconBox, shift.x, shift.y, rotateWithMap, pitchWithMap, this.transform.angle), textAllowOverlap, textPixelRatio, posMatrix, collisionGroup.predicate);\n if (placedIconBoxes.box.length === 0) {\n return;\n }\n }\n if (placedGlyphBoxes.box.length > 0) {\n var prevAnchor;\n if (this.prevPlacement && this.prevPlacement.variableOffsets[symbolInstance.crossTileID] && this.prevPlacement.placements[symbolInstance.crossTileID] && this.prevPlacement.placements[symbolInstance.crossTileID].text) {\n prevAnchor = this.prevPlacement.variableOffsets[symbolInstance.crossTileID].anchor;\n }\n this.variableOffsets[symbolInstance.crossTileID] = {\n textOffset: textOffset,\n width: width,\n height: height,\n anchor: anchor,\n textBoxScale: textBoxScale,\n prevAnchor: prevAnchor\n };\n this.markUsedJustification(bucket, anchor, symbolInstance, orientation);\n if (bucket.allowVerticalPlacement) {\n this.markUsedOrientation(bucket, orientation, symbolInstance);\n this.placedOrientations[symbolInstance.crossTileID] = orientation;\n }\n return {\n shift: shift,\n placedGlyphBoxes: placedGlyphBoxes\n };\n }\n};\nPlacement.prototype.placeLayerBucketPart = function placeLayerBucketPart(bucketPart, seenCrossTileIDs, showCollisionBoxes) {\n var this$1 = this;\n var ref = bucketPart.parameters;\n var bucket = ref.bucket;\n var layout = ref.layout;\n var posMatrix = ref.posMatrix;\n var textLabelPlaneMatrix = ref.textLabelPlaneMatrix;\n var labelToScreenMatrix = ref.labelToScreenMatrix;\n var textPixelRatio = ref.textPixelRatio;\n var holdingForFade = ref.holdingForFade;\n var collisionBoxArray = ref.collisionBoxArray;\n var partiallyEvaluatedTextSize = ref.partiallyEvaluatedTextSize;\n var collisionGroup = ref.collisionGroup;\n var textOptional = layout.get('text-optional');\n var iconOptional = layout.get('icon-optional');\n var textAllowOverlap = layout.get('text-allow-overlap');\n var iconAllowOverlap = layout.get('icon-allow-overlap');\n var rotateWithMap = layout.get('text-rotation-alignment') === 'map';\n var pitchWithMap = layout.get('text-pitch-alignment') === 'map';\n var hasIconTextFit = layout.get('icon-text-fit') !== 'none';\n var zOrderByViewportY = layout.get('symbol-z-order') === 'viewport-y';\n var alwaysShowText = textAllowOverlap && (iconAllowOverlap || !bucket.hasIconData() || iconOptional);\n var alwaysShowIcon = iconAllowOverlap && (textAllowOverlap || !bucket.hasTextData() || textOptional);\n if (!bucket.collisionArrays && collisionBoxArray) {\n bucket.deserializeCollisionBoxes(collisionBoxArray);\n }\n var placeSymbol = function (symbolInstance, collisionArrays) {\n if (seenCrossTileIDs[symbolInstance.crossTileID]) {\n return;\n }\n if (holdingForFade) {\n this$1.placements[symbolInstance.crossTileID] = new JointPlacement(false, false, false);\n return;\n }\n var placeText = false;\n var placeIcon = false;\n var offscreen = true;\n var shift = null;\n var placed = {\n box: null,\n offscreen: null\n };\n var placedVerticalText = {\n box: null,\n offscreen: null\n };\n var placedGlyphBoxes = null;\n var placedGlyphCircles = null;\n var placedIconBoxes = null;\n var textFeatureIndex = 0;\n var verticalTextFeatureIndex = 0;\n var iconFeatureIndex = 0;\n if (collisionArrays.textFeatureIndex) {\n textFeatureIndex = collisionArrays.textFeatureIndex;\n } else if (symbolInstance.useRuntimeCollisionCircles) {\n textFeatureIndex = symbolInstance.featureIndex;\n }\n if (collisionArrays.verticalTextFeatureIndex) {\n verticalTextFeatureIndex = collisionArrays.verticalTextFeatureIndex;\n }\n var textBox = collisionArrays.textBox;\n if (textBox) {\n var updatePreviousOrientationIfNotPlaced = function (isPlaced) {\n var previousOrientation = performance.WritingMode.horizontal;\n if (bucket.allowVerticalPlacement && !isPlaced && this$1.prevPlacement) {\n var prevPlacedOrientation = this$1.prevPlacement.placedOrientations[symbolInstance.crossTileID];\n if (prevPlacedOrientation) {\n this$1.placedOrientations[symbolInstance.crossTileID] = prevPlacedOrientation;\n previousOrientation = prevPlacedOrientation;\n this$1.markUsedOrientation(bucket, previousOrientation, symbolInstance);\n }\n }\n return previousOrientation;\n };\n var placeTextForPlacementModes = function (placeHorizontalFn, placeVerticalFn) {\n if (bucket.allowVerticalPlacement && symbolInstance.numVerticalGlyphVertices > 0 && collisionArrays.verticalTextBox) {\n for (var i = 0, list = bucket.writingModes; i < list.length; i += 1) {\n var placementMode = list[i];\n if (placementMode === performance.WritingMode.vertical) {\n placed = placeVerticalFn();\n placedVerticalText = placed;\n } else {\n placed = placeHorizontalFn();\n }\n if (placed && placed.box && placed.box.length) {\n break;\n }\n }\n } else {\n placed = placeHorizontalFn();\n }\n };\n if (!layout.get('text-variable-anchor')) {\n var placeBox = function (collisionTextBox, orientation) {\n var placedFeature = this$1.collisionIndex.placeCollisionBox(collisionTextBox, textAllowOverlap, textPixelRatio, posMatrix, collisionGroup.predicate);\n if (placedFeature && placedFeature.box && placedFeature.box.length) {\n this$1.markUsedOrientation(bucket, orientation, symbolInstance);\n this$1.placedOrientations[symbolInstance.crossTileID] = orientation;\n }\n return placedFeature;\n };\n var placeHorizontal = function () {\n return placeBox(textBox, performance.WritingMode.horizontal);\n };\n var placeVertical = function () {\n var verticalTextBox = collisionArrays.verticalTextBox;\n if (bucket.allowVerticalPlacement && symbolInstance.numVerticalGlyphVertices > 0 && verticalTextBox) {\n return placeBox(verticalTextBox, performance.WritingMode.vertical);\n }\n return {\n box: null,\n offscreen: null\n };\n };\n placeTextForPlacementModes(placeHorizontal, placeVertical);\n updatePreviousOrientationIfNotPlaced(placed && placed.box && placed.box.length);\n } else {\n var anchors = layout.get('text-variable-anchor');\n if (this$1.prevPlacement && this$1.prevPlacement.variableOffsets[symbolInstance.crossTileID]) {\n var prevOffsets = this$1.prevPlacement.variableOffsets[symbolInstance.crossTileID];\n if (anchors.indexOf(prevOffsets.anchor) > 0) {\n anchors = anchors.filter(function (anchor) {\n return anchor !== prevOffsets.anchor;\n });\n anchors.unshift(prevOffsets.anchor);\n }\n }\n var placeBoxForVariableAnchors = function (collisionTextBox, collisionIconBox, orientation) {\n var width = collisionTextBox.x2 - collisionTextBox.x1;\n var height = collisionTextBox.y2 - collisionTextBox.y1;\n var textBoxScale = symbolInstance.textBoxScale;\n var variableIconBox = hasIconTextFit && !iconAllowOverlap ? collisionIconBox : null;\n var placedBox = {\n box: [],\n offscreen: false\n };\n var placementAttempts = textAllowOverlap ? anchors.length * 2 : anchors.length;\n for (var i = 0; i < placementAttempts; ++i) {\n var anchor = anchors[i % anchors.length];\n var allowOverlap = i >= anchors.length;\n var result = this$1.attemptAnchorPlacement(anchor, collisionTextBox, width, height, textBoxScale, rotateWithMap, pitchWithMap, textPixelRatio, posMatrix, collisionGroup, allowOverlap, symbolInstance, bucket, orientation, variableIconBox);\n if (result) {\n placedBox = result.placedGlyphBoxes;\n if (placedBox && placedBox.box && placedBox.box.length) {\n placeText = true;\n shift = result.shift;\n break;\n }\n }\n }\n return placedBox;\n };\n var placeHorizontal$1 = function () {\n return placeBoxForVariableAnchors(textBox, collisionArrays.iconBox, performance.WritingMode.horizontal);\n };\n var placeVertical$1 = function () {\n var verticalTextBox = collisionArrays.verticalTextBox;\n var wasPlaced = placed && placed.box && placed.box.length;\n if (bucket.allowVerticalPlacement && !wasPlaced && symbolInstance.numVerticalGlyphVertices > 0 && verticalTextBox) {\n return placeBoxForVariableAnchors(verticalTextBox, collisionArrays.verticalIconBox, performance.WritingMode.vertical);\n }\n return {\n box: null,\n offscreen: null\n };\n };\n placeTextForPlacementModes(placeHorizontal$1, placeVertical$1);\n if (placed) {\n placeText = placed.box;\n offscreen = placed.offscreen;\n }\n var prevOrientation = updatePreviousOrientationIfNotPlaced(placed && placed.box);\n if (!placeText && this$1.prevPlacement) {\n var prevOffset = this$1.prevPlacement.variableOffsets[symbolInstance.crossTileID];\n if (prevOffset) {\n this$1.variableOffsets[symbolInstance.crossTileID] = prevOffset;\n this$1.markUsedJustification(bucket, prevOffset.anchor, symbolInstance, prevOrientation);\n }\n }\n }\n }\n placedGlyphBoxes = placed;\n placeText = placedGlyphBoxes && placedGlyphBoxes.box && placedGlyphBoxes.box.length > 0;\n offscreen = placedGlyphBoxes && placedGlyphBoxes.offscreen;\n if (symbolInstance.useRuntimeCollisionCircles) {\n var placedSymbol = bucket.text.placedSymbolArray.get(symbolInstance.centerJustifiedTextSymbolIndex);\n var fontSize = performance.evaluateSizeForFeature(bucket.textSizeData, partiallyEvaluatedTextSize, placedSymbol);\n var textPixelPadding = layout.get('text-padding');\n var circlePixelDiameter = symbolInstance.collisionCircleDiameter;\n placedGlyphCircles = this$1.collisionIndex.placeCollisionCircles(textAllowOverlap, placedSymbol, bucket.lineVertexArray, bucket.glyphOffsetArray, fontSize, posMatrix, textLabelPlaneMatrix, labelToScreenMatrix, showCollisionBoxes, pitchWithMap, collisionGroup.predicate, circlePixelDiameter, textPixelPadding);\n placeText = textAllowOverlap || placedGlyphCircles.circles.length > 0 && !placedGlyphCircles.collisionDetected;\n offscreen = offscreen && placedGlyphCircles.offscreen;\n }\n if (collisionArrays.iconFeatureIndex) {\n iconFeatureIndex = collisionArrays.iconFeatureIndex;\n }\n if (collisionArrays.iconBox) {\n var placeIconFeature = function (iconBox) {\n var shiftedIconBox = hasIconTextFit && shift ? shiftVariableCollisionBox(iconBox, shift.x, shift.y, rotateWithMap, pitchWithMap, this$1.transform.angle) : iconBox;\n return this$1.collisionIndex.placeCollisionBox(shiftedIconBox, iconAllowOverlap, textPixelRatio, posMatrix, collisionGroup.predicate);\n };\n if (placedVerticalText && placedVerticalText.box && placedVerticalText.box.length && collisionArrays.verticalIconBox) {\n placedIconBoxes = placeIconFeature(collisionArrays.verticalIconBox);\n placeIcon = placedIconBoxes.box.length > 0;\n } else {\n placedIconBoxes = placeIconFeature(collisionArrays.iconBox);\n placeIcon = placedIconBoxes.box.length > 0;\n }\n offscreen = offscreen && placedIconBoxes.offscreen;\n }\n var iconWithoutText = textOptional || symbolInstance.numHorizontalGlyphVertices === 0 && symbolInstance.numVerticalGlyphVertices === 0;\n var textWithoutIcon = iconOptional || symbolInstance.numIconVertices === 0;\n if (!iconWithoutText && !textWithoutIcon) {\n placeIcon = placeText = placeIcon && placeText;\n } else if (!textWithoutIcon) {\n placeText = placeIcon && placeText;\n } else if (!iconWithoutText) {\n placeIcon = placeIcon && placeText;\n }\n if (placeText && placedGlyphBoxes && placedGlyphBoxes.box) {\n if (placedVerticalText && placedVerticalText.box && verticalTextFeatureIndex) {\n this$1.collisionIndex.insertCollisionBox(placedGlyphBoxes.box, layout.get('text-ignore-placement'), bucket.bucketInstanceId, verticalTextFeatureIndex, collisionGroup.ID);\n } else {\n this$1.collisionIndex.insertCollisionBox(placedGlyphBoxes.box, layout.get('text-ignore-placement'), bucket.bucketInstanceId, textFeatureIndex, collisionGroup.ID);\n }\n }\n if (placeIcon && placedIconBoxes) {\n this$1.collisionIndex.insertCollisionBox(placedIconBoxes.box, layout.get('icon-ignore-placement'), bucket.bucketInstanceId, iconFeatureIndex, collisionGroup.ID);\n }\n if (placedGlyphCircles) {\n if (placeText) {\n this$1.collisionIndex.insertCollisionCircles(placedGlyphCircles.circles, layout.get('text-ignore-placement'), bucket.bucketInstanceId, textFeatureIndex, collisionGroup.ID);\n }\n if (showCollisionBoxes) {\n var id = bucket.bucketInstanceId;\n var circleArray = this$1.collisionCircleArrays[id];\n if (circleArray === undefined) {\n circleArray = this$1.collisionCircleArrays[id] = new CollisionCircleArray();\n }\n for (var i = 0; i < placedGlyphCircles.circles.length; i += 4) {\n circleArray.circles.push(placedGlyphCircles.circles[i + 0]);\n circleArray.circles.push(placedGlyphCircles.circles[i + 1]);\n circleArray.circles.push(placedGlyphCircles.circles[i + 2]);\n circleArray.circles.push(placedGlyphCircles.collisionDetected ? 1 : 0);\n }\n }\n }\n this$1.placements[symbolInstance.crossTileID] = new JointPlacement(placeText || alwaysShowText, placeIcon || alwaysShowIcon, offscreen || bucket.justReloaded);\n seenCrossTileIDs[symbolInstance.crossTileID] = true;\n };\n if (zOrderByViewportY) {\n var symbolIndexes = bucket.getSortedSymbolIndexes(this.transform.angle);\n for (var i = symbolIndexes.length - 1; i >= 0; --i) {\n var symbolIndex = symbolIndexes[i];\n placeSymbol(bucket.symbolInstances.get(symbolIndex), bucket.collisionArrays[symbolIndex]);\n }\n } else {\n for (var i$1 = bucketPart.symbolInstanceStart; i$1 < bucketPart.symbolInstanceEnd; i$1++) {\n placeSymbol(bucket.symbolInstances.get(i$1), bucket.collisionArrays[i$1]);\n }\n }\n if (showCollisionBoxes && bucket.bucketInstanceId in this.collisionCircleArrays) {\n var circleArray = this.collisionCircleArrays[bucket.bucketInstanceId];\n performance.invert(circleArray.invProjMatrix, posMatrix);\n circleArray.viewportMatrix = this.collisionIndex.getViewportMatrix();\n }\n bucket.justReloaded = false;\n};\nPlacement.prototype.markUsedJustification = function markUsedJustification(bucket, placedAnchor, symbolInstance, orientation) {\n var justifications = {\n 'left': symbolInstance.leftJustifiedTextSymbolIndex,\n 'center': symbolInstance.centerJustifiedTextSymbolIndex,\n 'right': symbolInstance.rightJustifiedTextSymbolIndex\n };\n var autoIndex;\n if (orientation === performance.WritingMode.vertical) {\n autoIndex = symbolInstance.verticalPlacedTextSymbolIndex;\n } else {\n autoIndex = justifications[performance.getAnchorJustification(placedAnchor)];\n }\n var indexes = [\n symbolInstance.leftJustifiedTextSymbolIndex,\n symbolInstance.centerJustifiedTextSymbolIndex,\n symbolInstance.rightJustifiedTextSymbolIndex,\n symbolInstance.verticalPlacedTextSymbolIndex\n ];\n for (var i = 0, list = indexes; i < list.length; i += 1) {\n var index = list[i];\n if (index >= 0) {\n if (autoIndex >= 0 && index !== autoIndex) {\n bucket.text.placedSymbolArray.get(index).crossTileID = 0;\n } else {\n bucket.text.placedSymbolArray.get(index).crossTileID = symbolInstance.crossTileID;\n }\n }\n }\n};\nPlacement.prototype.markUsedOrientation = function markUsedOrientation(bucket, orientation, symbolInstance) {\n var horizontal = orientation === performance.WritingMode.horizontal || orientation === performance.WritingMode.horizontalOnly ? orientation : 0;\n var vertical = orientation === performance.WritingMode.vertical ? orientation : 0;\n var horizontalIndexes = [\n symbolInstance.leftJustifiedTextSymbolIndex,\n symbolInstance.centerJustifiedTextSymbolIndex,\n symbolInstance.rightJustifiedTextSymbolIndex\n ];\n for (var i = 0, list = horizontalIndexes; i < list.length; i += 1) {\n var index = list[i];\n bucket.text.placedSymbolArray.get(index).placedOrientation = horizontal;\n }\n if (symbolInstance.verticalPlacedTextSymbolIndex) {\n bucket.text.placedSymbolArray.get(symbolInstance.verticalPlacedTextSymbolIndex).placedOrientation = vertical;\n }\n};\nPlacement.prototype.commit = function commit(now) {\n this.commitTime = now;\n this.zoomAtLastRecencyCheck = this.transform.zoom;\n var prevPlacement = this.prevPlacement;\n var placementChanged = false;\n this.prevZoomAdjustment = prevPlacement ? prevPlacement.zoomAdjustment(this.transform.zoom) : 0;\n var increment = prevPlacement ? prevPlacement.symbolFadeChange(now) : 1;\n var prevOpacities = prevPlacement ? prevPlacement.opacities : {};\n var prevOffsets = prevPlacement ? prevPlacement.variableOffsets : {};\n var prevOrientations = prevPlacement ? prevPlacement.placedOrientations : {};\n for (var crossTileID in this.placements) {\n var jointPlacement = this.placements[crossTileID];\n var prevOpacity = prevOpacities[crossTileID];\n if (prevOpacity) {\n this.opacities[crossTileID] = new JointOpacityState(prevOpacity, increment, jointPlacement.text, jointPlacement.icon);\n placementChanged = placementChanged || jointPlacement.text !== prevOpacity.text.placed || jointPlacement.icon !== prevOpacity.icon.placed;\n } else {\n this.opacities[crossTileID] = new JointOpacityState(null, increment, jointPlacement.text, jointPlacement.icon, jointPlacement.skipFade);\n placementChanged = placementChanged || jointPlacement.text || jointPlacement.icon;\n }\n }\n for (var crossTileID$1 in prevOpacities) {\n var prevOpacity$1 = prevOpacities[crossTileID$1];\n if (!this.opacities[crossTileID$1]) {\n var jointOpacity = new JointOpacityState(prevOpacity$1, increment, false, false);\n if (!jointOpacity.isHidden()) {\n this.opacities[crossTileID$1] = jointOpacity;\n placementChanged = placementChanged || prevOpacity$1.text.placed || prevOpacity$1.icon.placed;\n }\n }\n }\n for (var crossTileID$2 in prevOffsets) {\n if (!this.variableOffsets[crossTileID$2] && this.opacities[crossTileID$2] && !this.opacities[crossTileID$2].isHidden()) {\n this.variableOffsets[crossTileID$2] = prevOffsets[crossTileID$2];\n }\n }\n for (var crossTileID$3 in prevOrientations) {\n if (!this.placedOrientations[crossTileID$3] && this.opacities[crossTileID$3] && !this.opacities[crossTileID$3].isHidden()) {\n this.placedOrientations[crossTileID$3] = prevOrientations[crossTileID$3];\n }\n }\n if (placementChanged) {\n this.lastPlacementChangeTime = now;\n } else if (typeof this.lastPlacementChangeTime !== 'number') {\n this.lastPlacementChangeTime = prevPlacement ? prevPlacement.lastPlacementChangeTime : now;\n }\n};\nPlacement.prototype.updateLayerOpacities = function updateLayerOpacities(styleLayer, tiles) {\n var seenCrossTileIDs = {};\n for (var i = 0, list = tiles; i < list.length; i += 1) {\n var tile = list[i];\n var symbolBucket = tile.getBucket(styleLayer);\n if (symbolBucket && tile.latestFeatureIndex && styleLayer.id === symbolBucket.layerIds[0]) {\n this.updateBucketOpacities(symbolBucket, seenCrossTileIDs, tile.collisionBoxArray);\n }\n }\n};\nPlacement.prototype.updateBucketOpacities = function updateBucketOpacities(bucket, seenCrossTileIDs, collisionBoxArray) {\n var this$1 = this;\n if (bucket.hasTextData()) {\n bucket.text.opacityVertexArray.clear();\n }\n if (bucket.hasIconData()) {\n bucket.icon.opacityVertexArray.clear();\n }\n if (bucket.hasIconCollisionBoxData()) {\n bucket.iconCollisionBox.collisionVertexArray.clear();\n }\n if (bucket.hasTextCollisionBoxData()) {\n bucket.textCollisionBox.collisionVertexArray.clear();\n }\n var layout = bucket.layers[0].layout;\n var duplicateOpacityState = new JointOpacityState(null, 0, false, false, true);\n var textAllowOverlap = layout.get('text-allow-overlap');\n var iconAllowOverlap = layout.get('icon-allow-overlap');\n var variablePlacement = layout.get('text-variable-anchor');\n var rotateWithMap = layout.get('text-rotation-alignment') === 'map';\n var pitchWithMap = layout.get('text-pitch-alignment') === 'map';\n var hasIconTextFit = layout.get('icon-text-fit') !== 'none';\n var defaultOpacityState = new JointOpacityState(null, 0, textAllowOverlap && (iconAllowOverlap || !bucket.hasIconData() || layout.get('icon-optional')), iconAllowOverlap && (textAllowOverlap || !bucket.hasTextData() || layout.get('text-optional')), true);\n if (!bucket.collisionArrays && collisionBoxArray && (bucket.hasIconCollisionBoxData() || bucket.hasTextCollisionBoxData())) {\n bucket.deserializeCollisionBoxes(collisionBoxArray);\n }\n var addOpacities = function (iconOrText, numVertices, opacity) {\n for (var i = 0; i < numVertices / 4; i++) {\n iconOrText.opacityVertexArray.emplaceBack(opacity);\n }\n };\n var loop = function (s) {\n var symbolInstance = bucket.symbolInstances.get(s);\n var numHorizontalGlyphVertices = symbolInstance.numHorizontalGlyphVertices;\n var numVerticalGlyphVertices = symbolInstance.numVerticalGlyphVertices;\n var crossTileID = symbolInstance.crossTileID;\n var isDuplicate = seenCrossTileIDs[crossTileID];\n var opacityState = this$1.opacities[crossTileID];\n if (isDuplicate) {\n opacityState = duplicateOpacityState;\n } else if (!opacityState) {\n opacityState = defaultOpacityState;\n this$1.opacities[crossTileID] = opacityState;\n }\n seenCrossTileIDs[crossTileID] = true;\n var hasText = numHorizontalGlyphVertices > 0 || numVerticalGlyphVertices > 0;\n var hasIcon = symbolInstance.numIconVertices > 0;\n var placedOrientation = this$1.placedOrientations[symbolInstance.crossTileID];\n var horizontalHidden = placedOrientation === performance.WritingMode.vertical;\n var verticalHidden = placedOrientation === performance.WritingMode.horizontal || placedOrientation === performance.WritingMode.horizontalOnly;\n if (hasText) {\n var packedOpacity = packOpacity(opacityState.text);\n var horizontalOpacity = horizontalHidden ? PACKED_HIDDEN_OPACITY : packedOpacity;\n addOpacities(bucket.text, numHorizontalGlyphVertices, horizontalOpacity);\n var verticalOpacity = verticalHidden ? PACKED_HIDDEN_OPACITY : packedOpacity;\n addOpacities(bucket.text, numVerticalGlyphVertices, verticalOpacity);\n var symbolHidden = opacityState.text.isHidden();\n [\n symbolInstance.rightJustifiedTextSymbolIndex,\n symbolInstance.centerJustifiedTextSymbolIndex,\n symbolInstance.leftJustifiedTextSymbolIndex\n ].forEach(function (index) {\n if (index >= 0) {\n bucket.text.placedSymbolArray.get(index).hidden = symbolHidden || horizontalHidden ? 1 : 0;\n }\n });\n if (symbolInstance.verticalPlacedTextSymbolIndex >= 0) {\n bucket.text.placedSymbolArray.get(symbolInstance.verticalPlacedTextSymbolIndex).hidden = symbolHidden || verticalHidden ? 1 : 0;\n }\n var prevOffset = this$1.variableOffsets[symbolInstance.crossTileID];\n if (prevOffset) {\n this$1.markUsedJustification(bucket, prevOffset.anchor, symbolInstance, placedOrientation);\n }\n var prevOrientation = this$1.placedOrientations[symbolInstance.crossTileID];\n if (prevOrientation) {\n this$1.markUsedJustification(bucket, 'left', symbolInstance, prevOrientation);\n this$1.markUsedOrientation(bucket, prevOrientation, symbolInstance);\n }\n }\n if (hasIcon) {\n var packedOpacity$1 = packOpacity(opacityState.icon);\n var useHorizontal = !(hasIconTextFit && symbolInstance.verticalPlacedIconSymbolIndex && horizontalHidden);\n if (symbolInstance.placedIconSymbolIndex >= 0) {\n var horizontalOpacity$1 = useHorizontal ? packedOpacity$1 : PACKED_HIDDEN_OPACITY;\n addOpacities(bucket.icon, symbolInstance.numIconVertices, horizontalOpacity$1);\n bucket.icon.placedSymbolArray.get(symbolInstance.placedIconSymbolIndex).hidden = opacityState.icon.isHidden();\n }\n if (symbolInstance.verticalPlacedIconSymbolIndex >= 0) {\n var verticalOpacity$1 = !useHorizontal ? packedOpacity$1 : PACKED_HIDDEN_OPACITY;\n addOpacities(bucket.icon, symbolInstance.numVerticalIconVertices, verticalOpacity$1);\n bucket.icon.placedSymbolArray.get(symbolInstance.verticalPlacedIconSymbolIndex).hidden = opacityState.icon.isHidden();\n }\n }\n if (bucket.hasIconCollisionBoxData() || bucket.hasTextCollisionBoxData()) {\n var collisionArrays = bucket.collisionArrays[s];\n if (collisionArrays) {\n var shift = new performance.Point(0, 0);\n if (collisionArrays.textBox || collisionArrays.verticalTextBox) {\n var used = true;\n if (variablePlacement) {\n var variableOffset = this$1.variableOffsets[crossTileID];\n if (variableOffset) {\n shift = calculateVariableLayoutShift(variableOffset.anchor, variableOffset.width, variableOffset.height, variableOffset.textOffset, variableOffset.textBoxScale);\n if (rotateWithMap) {\n shift._rotate(pitchWithMap ? this$1.transform.angle : -this$1.transform.angle);\n }\n } else {\n used = false;\n }\n }\n if (collisionArrays.textBox) {\n updateCollisionVertices(bucket.textCollisionBox.collisionVertexArray, opacityState.text.placed, !used || horizontalHidden, shift.x, shift.y);\n }\n if (collisionArrays.verticalTextBox) {\n updateCollisionVertices(bucket.textCollisionBox.collisionVertexArray, opacityState.text.placed, !used || verticalHidden, shift.x, shift.y);\n }\n }\n var verticalIconUsed = Boolean(!verticalHidden && collisionArrays.verticalIconBox);\n if (collisionArrays.iconBox) {\n updateCollisionVertices(bucket.iconCollisionBox.collisionVertexArray, opacityState.icon.placed, verticalIconUsed, hasIconTextFit ? shift.x : 0, hasIconTextFit ? shift.y : 0);\n }\n if (collisionArrays.verticalIconBox) {\n updateCollisionVertices(bucket.iconCollisionBox.collisionVertexArray, opacityState.icon.placed, !verticalIconUsed, hasIconTextFit ? shift.x : 0, hasIconTextFit ? shift.y : 0);\n }\n }\n }\n };\n for (var s = 0; s < bucket.symbolInstances.length; s++)\n loop(s);\n bucket.sortFeatures(this.transform.angle);\n if (this.retainedQueryData[bucket.bucketInstanceId]) {\n this.retainedQueryData[bucket.bucketInstanceId].featureSortOrder = bucket.featureSortOrder;\n }\n if (bucket.hasTextData() && bucket.text.opacityVertexBuffer) {\n bucket.text.opacityVertexBuffer.updateData(bucket.text.opacityVertexArray);\n }\n if (bucket.hasIconData() && bucket.icon.opacityVertexBuffer) {\n bucket.icon.opacityVertexBuffer.updateData(bucket.icon.opacityVertexArray);\n }\n if (bucket.hasIconCollisionBoxData() && bucket.iconCollisionBox.collisionVertexBuffer) {\n bucket.iconCollisionBox.collisionVertexBuffer.updateData(bucket.iconCollisionBox.collisionVertexArray);\n }\n if (bucket.hasTextCollisionBoxData() && bucket.textCollisionBox.collisionVertexBuffer) {\n bucket.textCollisionBox.collisionVertexBuffer.updateData(bucket.textCollisionBox.collisionVertexArray);\n }\n if (bucket.bucketInstanceId in this.collisionCircleArrays) {\n var instance = this.collisionCircleArrays[bucket.bucketInstanceId];\n bucket.placementInvProjMatrix = instance.invProjMatrix;\n bucket.placementViewportMatrix = instance.viewportMatrix;\n bucket.collisionCircleArray = instance.circles;\n delete this.collisionCircleArrays[bucket.bucketInstanceId];\n }\n};\nPlacement.prototype.symbolFadeChange = function symbolFadeChange(now) {\n return this.fadeDuration === 0 ? 1 : (now - this.commitTime) / this.fadeDuration + this.prevZoomAdjustment;\n};\nPlacement.prototype.zoomAdjustment = function zoomAdjustment(zoom) {\n return Math.max(0, (this.transform.zoom - zoom) / 1.5);\n};\nPlacement.prototype.hasTransitions = function hasTransitions(now) {\n return this.stale || now - this.lastPlacementChangeTime < this.fadeDuration;\n};\nPlacement.prototype.stillRecent = function stillRecent(now, zoom) {\n var durationAdjustment = this.zoomAtLastRecencyCheck === zoom ? 1 - this.zoomAdjustment(zoom) : 1;\n this.zoomAtLastRecencyCheck = zoom;\n return this.commitTime + this.fadeDuration * durationAdjustment > now;\n};\nPlacement.prototype.setStale = function setStale() {\n this.stale = true;\n};\nfunction updateCollisionVertices(collisionVertexArray, placed, notUsed, shiftX, shiftY) {\n collisionVertexArray.emplaceBack(placed ? 1 : 0, notUsed ? 1 : 0, shiftX || 0, shiftY || 0);\n collisionVertexArray.emplaceBack(placed ? 1 : 0, notUsed ? 1 : 0, shiftX || 0, shiftY || 0);\n collisionVertexArray.emplaceBack(placed ? 1 : 0, notUsed ? 1 : 0, shiftX || 0, shiftY || 0);\n collisionVertexArray.emplaceBack(placed ? 1 : 0, notUsed ? 1 : 0, shiftX || 0, shiftY || 0);\n}\nvar shift25 = Math.pow(2, 25);\nvar shift24 = Math.pow(2, 24);\nvar shift17 = Math.pow(2, 17);\nvar shift16 = Math.pow(2, 16);\nvar shift9 = Math.pow(2, 9);\nvar shift8 = Math.pow(2, 8);\nvar shift1 = Math.pow(2, 1);\nfunction packOpacity(opacityState) {\n if (opacityState.opacity === 0 && !opacityState.placed) {\n return 0;\n } else if (opacityState.opacity === 1 && opacityState.placed) {\n return 4294967295;\n }\n var targetBit = opacityState.placed ? 1 : 0;\n var opacityBits = Math.floor(opacityState.opacity * 127);\n return opacityBits * shift25 + targetBit * shift24 + opacityBits * shift17 + targetBit * shift16 + opacityBits * shift9 + targetBit * shift8 + opacityBits * shift1 + targetBit;\n}\nvar PACKED_HIDDEN_OPACITY = 0;\n\nvar LayerPlacement = function LayerPlacement(styleLayer) {\n this._sortAcrossTiles = styleLayer.layout.get('symbol-z-order') !== 'viewport-y' && styleLayer.layout.get('symbol-sort-key').constantOr(1) !== undefined;\n this._currentTileIndex = 0;\n this._currentPartIndex = 0;\n this._seenCrossTileIDs = {};\n this._bucketParts = [];\n};\nLayerPlacement.prototype.continuePlacement = function continuePlacement(tiles, placement, showCollisionBoxes, styleLayer, shouldPausePlacement) {\n var bucketParts = this._bucketParts;\n while (this._currentTileIndex < tiles.length) {\n var tile = tiles[this._currentTileIndex];\n placement.getBucketParts(bucketParts, styleLayer, tile, this._sortAcrossTiles);\n this._currentTileIndex++;\n if (shouldPausePlacement()) {\n return true;\n }\n }\n if (this._sortAcrossTiles) {\n this._sortAcrossTiles = false;\n bucketParts.sort(function (a, b) {\n return a.sortKey - b.sortKey;\n });\n }\n while (this._currentPartIndex < bucketParts.length) {\n var bucketPart = bucketParts[this._currentPartIndex];\n placement.placeLayerBucketPart(bucketPart, this._seenCrossTileIDs, showCollisionBoxes);\n this._currentPartIndex++;\n if (shouldPausePlacement()) {\n return true;\n }\n }\n return false;\n};\nvar PauseablePlacement = function PauseablePlacement(transform, order, forceFullPlacement, showCollisionBoxes, fadeDuration, crossSourceCollisions, prevPlacement) {\n this.placement = new Placement(transform, fadeDuration, crossSourceCollisions, prevPlacement);\n this._currentPlacementIndex = order.length - 1;\n this._forceFullPlacement = forceFullPlacement;\n this._showCollisionBoxes = showCollisionBoxes;\n this._done = false;\n};\nPauseablePlacement.prototype.isDone = function isDone() {\n return this._done;\n};\nPauseablePlacement.prototype.continuePlacement = function continuePlacement(order, layers, layerTiles) {\n var this$1 = this;\n var startTime = performance.browser.now();\n var shouldPausePlacement = function () {\n var elapsedTime = performance.browser.now() - startTime;\n return this$1._forceFullPlacement ? false : elapsedTime > 2;\n };\n while (this._currentPlacementIndex >= 0) {\n var layerId = order[this._currentPlacementIndex];\n var layer = layers[layerId];\n var placementZoom = this.placement.collisionIndex.transform.zoom;\n if (layer.type === 'symbol' && (!layer.minzoom || layer.minzoom <= placementZoom) && (!layer.maxzoom || layer.maxzoom > placementZoom)) {\n if (!this._inProgressLayer) {\n this._inProgressLayer = new LayerPlacement(layer);\n }\n var pausePlacement = this._inProgressLayer.continuePlacement(layerTiles[layer.source], this.placement, this._showCollisionBoxes, layer, shouldPausePlacement);\n if (pausePlacement) {\n return;\n }\n delete this._inProgressLayer;\n }\n this._currentPlacementIndex--;\n }\n this._done = true;\n};\nPauseablePlacement.prototype.commit = function commit(now) {\n this.placement.commit(now);\n return this.placement;\n};\n\nvar roundingFactor = 512 / performance.EXTENT / 2;\nvar TileLayerIndex = function TileLayerIndex(tileID, symbolInstances, bucketInstanceId) {\n this.tileID = tileID;\n this.indexedSymbolInstances = {};\n this.bucketInstanceId = bucketInstanceId;\n for (var i = 0; i < symbolInstances.length; i++) {\n var symbolInstance = symbolInstances.get(i);\n var key = symbolInstance.key;\n if (!this.indexedSymbolInstances[key]) {\n this.indexedSymbolInstances[key] = [];\n }\n this.indexedSymbolInstances[key].push({\n crossTileID: symbolInstance.crossTileID,\n coord: this.getScaledCoordinates(symbolInstance, tileID)\n });\n }\n};\nTileLayerIndex.prototype.getScaledCoordinates = function getScaledCoordinates(symbolInstance, childTileID) {\n var zDifference = childTileID.canonical.z - this.tileID.canonical.z;\n var scale = roundingFactor / Math.pow(2, zDifference);\n return {\n x: Math.floor((childTileID.canonical.x * performance.EXTENT + symbolInstance.anchorX) * scale),\n y: Math.floor((childTileID.canonical.y * performance.EXTENT + symbolInstance.anchorY) * scale)\n };\n};\nTileLayerIndex.prototype.findMatches = function findMatches(symbolInstances, newTileID, zoomCrossTileIDs) {\n var tolerance = this.tileID.canonical.z < newTileID.canonical.z ? 1 : Math.pow(2, this.tileID.canonical.z - newTileID.canonical.z);\n for (var i = 0; i < symbolInstances.length; i++) {\n var symbolInstance = symbolInstances.get(i);\n if (symbolInstance.crossTileID) {\n continue;\n }\n var indexedInstances = this.indexedSymbolInstances[symbolInstance.key];\n if (!indexedInstances) {\n continue;\n }\n var scaledSymbolCoord = this.getScaledCoordinates(symbolInstance, newTileID);\n for (var i$1 = 0, list = indexedInstances; i$1 < list.length; i$1 += 1) {\n var thisTileSymbol = list[i$1];\n if (Math.abs(thisTileSymbol.coord.x - scaledSymbolCoord.x) <= tolerance && Math.abs(thisTileSymbol.coord.y - scaledSymbolCoord.y) <= tolerance && !zoomCrossTileIDs[thisTileSymbol.crossTileID]) {\n zoomCrossTileIDs[thisTileSymbol.crossTileID] = true;\n symbolInstance.crossTileID = thisTileSymbol.crossTileID;\n break;\n }\n }\n }\n};\nvar CrossTileIDs = function CrossTileIDs() {\n this.maxCrossTileID = 0;\n};\nCrossTileIDs.prototype.generate = function generate() {\n return ++this.maxCrossTileID;\n};\nvar CrossTileSymbolLayerIndex = function CrossTileSymbolLayerIndex() {\n this.indexes = {};\n this.usedCrossTileIDs = {};\n this.lng = 0;\n};\nCrossTileSymbolLayerIndex.prototype.handleWrapJump = function handleWrapJump(lng) {\n var wrapDelta = Math.round((lng - this.lng) / 360);\n if (wrapDelta !== 0) {\n for (var zoom in this.indexes) {\n var zoomIndexes = this.indexes[zoom];\n var newZoomIndex = {};\n for (var key in zoomIndexes) {\n var index = zoomIndexes[key];\n index.tileID = index.tileID.unwrapTo(index.tileID.wrap + wrapDelta);\n newZoomIndex[index.tileID.key] = index;\n }\n this.indexes[zoom] = newZoomIndex;\n }\n }\n this.lng = lng;\n};\nCrossTileSymbolLayerIndex.prototype.addBucket = function addBucket(tileID, bucket, crossTileIDs) {\n if (this.indexes[tileID.overscaledZ] && this.indexes[tileID.overscaledZ][tileID.key]) {\n if (this.indexes[tileID.overscaledZ][tileID.key].bucketInstanceId === bucket.bucketInstanceId) {\n return false;\n } else {\n this.removeBucketCrossTileIDs(tileID.overscaledZ, this.indexes[tileID.overscaledZ][tileID.key]);\n }\n }\n for (var i = 0; i < bucket.symbolInstances.length; i++) {\n var symbolInstance = bucket.symbolInstances.get(i);\n symbolInstance.crossTileID = 0;\n }\n if (!this.usedCrossTileIDs[tileID.overscaledZ]) {\n this.usedCrossTileIDs[tileID.overscaledZ] = {};\n }\n var zoomCrossTileIDs = this.usedCrossTileIDs[tileID.overscaledZ];\n for (var zoom in this.indexes) {\n var zoomIndexes = this.indexes[zoom];\n if (Number(zoom) > tileID.overscaledZ) {\n for (var id in zoomIndexes) {\n var childIndex = zoomIndexes[id];\n if (childIndex.tileID.isChildOf(tileID)) {\n childIndex.findMatches(bucket.symbolInstances, tileID, zoomCrossTileIDs);\n }\n }\n } else {\n var parentCoord = tileID.scaledTo(Number(zoom));\n var parentIndex = zoomIndexes[parentCoord.key];\n if (parentIndex) {\n parentIndex.findMatches(bucket.symbolInstances, tileID, zoomCrossTileIDs);\n }\n }\n }\n for (var i$1 = 0; i$1 < bucket.symbolInstances.length; i$1++) {\n var symbolInstance$1 = bucket.symbolInstances.get(i$1);\n if (!symbolInstance$1.crossTileID) {\n symbolInstance$1.crossTileID = crossTileIDs.generate();\n zoomCrossTileIDs[symbolInstance$1.crossTileID] = true;\n }\n }\n if (this.indexes[tileID.overscaledZ] === undefined) {\n this.indexes[tileID.overscaledZ] = {};\n }\n this.indexes[tileID.overscaledZ][tileID.key] = new TileLayerIndex(tileID, bucket.symbolInstances, bucket.bucketInstanceId);\n return true;\n};\nCrossTileSymbolLayerIndex.prototype.removeBucketCrossTileIDs = function removeBucketCrossTileIDs(zoom, removedBucket) {\n for (var key in removedBucket.indexedSymbolInstances) {\n for (var i = 0, list = removedBucket.indexedSymbolInstances[key]; i < list.length; i += 1) {\n var symbolInstance = list[i];\n delete this.usedCrossTileIDs[zoom][symbolInstance.crossTileID];\n }\n }\n};\nCrossTileSymbolLayerIndex.prototype.removeStaleBuckets = function removeStaleBuckets(currentIDs) {\n var tilesChanged = false;\n for (var z in this.indexes) {\n var zoomIndexes = this.indexes[z];\n for (var tileKey in zoomIndexes) {\n if (!currentIDs[zoomIndexes[tileKey].bucketInstanceId]) {\n this.removeBucketCrossTileIDs(z, zoomIndexes[tileKey]);\n delete zoomIndexes[tileKey];\n tilesChanged = true;\n }\n }\n }\n return tilesChanged;\n};\nvar CrossTileSymbolIndex = function CrossTileSymbolIndex() {\n this.layerIndexes = {};\n this.crossTileIDs = new CrossTileIDs();\n this.maxBucketInstanceId = 0;\n this.bucketsInCurrentPlacement = {};\n};\nCrossTileSymbolIndex.prototype.addLayer = function addLayer(styleLayer, tiles, lng) {\n var layerIndex = this.layerIndexes[styleLayer.id];\n if (layerIndex === undefined) {\n layerIndex = this.layerIndexes[styleLayer.id] = new CrossTileSymbolLayerIndex();\n }\n var symbolBucketsChanged = false;\n var currentBucketIDs = {};\n layerIndex.handleWrapJump(lng);\n for (var i = 0, list = tiles; i < list.length; i += 1) {\n var tile = list[i];\n var symbolBucket = tile.getBucket(styleLayer);\n if (!symbolBucket || styleLayer.id !== symbolBucket.layerIds[0]) {\n continue;\n }\n if (!symbolBucket.bucketInstanceId) {\n symbolBucket.bucketInstanceId = ++this.maxBucketInstanceId;\n }\n if (layerIndex.addBucket(tile.tileID, symbolBucket, this.crossTileIDs)) {\n symbolBucketsChanged = true;\n }\n currentBucketIDs[symbolBucket.bucketInstanceId] = true;\n }\n if (layerIndex.removeStaleBuckets(currentBucketIDs)) {\n symbolBucketsChanged = true;\n }\n return symbolBucketsChanged;\n};\nCrossTileSymbolIndex.prototype.pruneUnusedLayers = function pruneUnusedLayers(usedLayers) {\n var usedLayerMap = {};\n usedLayers.forEach(function (usedLayer) {\n usedLayerMap[usedLayer] = true;\n });\n for (var layerId in this.layerIndexes) {\n if (!usedLayerMap[layerId]) {\n delete this.layerIndexes[layerId];\n }\n }\n};\n\nvar emitValidationErrors = function (evented, errors) {\n return performance.emitValidationErrors(evented, errors && errors.filter(function (error) {\n return error.identifier !== 'source.canvas';\n }));\n};\nvar supportedDiffOperations = performance.pick(operations, [\n 'addLayer',\n 'removeLayer',\n 'setPaintProperty',\n 'setLayoutProperty',\n 'setFilter',\n 'addSource',\n 'removeSource',\n 'setLayerZoomRange',\n 'setLight',\n 'setTransition',\n 'setGeoJSONSourceData'\n]);\nvar ignoredDiffOperations = performance.pick(operations, [\n 'setCenter',\n 'setZoom',\n 'setBearing',\n 'setPitch'\n]);\nvar empty = emptyStyle();\nvar Style = function (Evented) {\n function Style(map, options) {\n var this$1 = this;\n if (options === void 0)\n options = {};\n Evented.call(this);\n this.map = map;\n this.dispatcher = new Dispatcher(getGlobalWorkerPool(), this);\n this.imageManager = new ImageManager();\n this.imageManager.setEventedParent(this);\n this.glyphManager = new GlyphManager(map._requestManager, options.localIdeographFontFamily);\n this.lineAtlas = new LineAtlas(256, 512);\n this.crossTileSymbolIndex = new CrossTileSymbolIndex();\n this._layers = {};\n this._serializedLayers = {};\n this._order = [];\n this.sourceCaches = {};\n this.zoomHistory = new performance.ZoomHistory();\n this._loaded = false;\n this._availableImages = [];\n this._resetUpdates();\n this.dispatcher.broadcast('setReferrer', performance.getReferrer());\n var self = this;\n this._rtlTextPluginCallback = Style.registerForPluginStateChange(function (event) {\n var state = {\n pluginStatus: event.pluginStatus,\n pluginURL: event.pluginURL\n };\n self.dispatcher.broadcast('syncRTLPluginState', state, function (err, results) {\n performance.triggerPluginCompletionEvent(err);\n if (results) {\n var allComplete = results.every(function (elem) {\n return elem;\n });\n if (allComplete) {\n for (var id in self.sourceCaches) {\n self.sourceCaches[id].reload();\n }\n }\n }\n });\n });\n this.on('data', function (event) {\n if (event.dataType !== 'source' || event.sourceDataType !== 'metadata') {\n return;\n }\n var sourceCache = this$1.sourceCaches[event.sourceId];\n if (!sourceCache) {\n return;\n }\n var source = sourceCache.getSource();\n if (!source || !source.vectorLayerIds) {\n return;\n }\n for (var layerId in this$1._layers) {\n var layer = this$1._layers[layerId];\n if (layer.source === source.id) {\n this$1._validateLayer(layer);\n }\n }\n });\n }\n if (Evented)\n Style.__proto__ = Evented;\n Style.prototype = Object.create(Evented && Evented.prototype);\n Style.prototype.constructor = Style;\n Style.prototype.loadURL = function loadURL(url, options) {\n var this$1 = this;\n if (options === void 0)\n options = {};\n this.fire(new performance.Event('dataloading', { dataType: 'style' }));\n var validate = typeof options.validate === 'boolean' ? options.validate : !performance.isMapboxURL(url);\n url = this.map._requestManager.normalizeStyleURL(url, options.accessToken);\n var request = this.map._requestManager.transformRequest(url, performance.ResourceType.Style);\n this._request = performance.getJSON(request, function (error, json) {\n this$1._request = null;\n if (error) {\n this$1.fire(new performance.ErrorEvent(error));\n } else if (json) {\n this$1._load(json, validate);\n }\n });\n };\n Style.prototype.loadJSON = function loadJSON(json, options) {\n var this$1 = this;\n if (options === void 0)\n options = {};\n this.fire(new performance.Event('dataloading', { dataType: 'style' }));\n this._request = performance.browser.frame(function () {\n this$1._request = null;\n this$1._load(json, options.validate !== false);\n });\n };\n Style.prototype.loadEmpty = function loadEmpty() {\n this.fire(new performance.Event('dataloading', { dataType: 'style' }));\n this._load(empty, false);\n };\n Style.prototype._load = function _load(json, validate) {\n if (validate && emitValidationErrors(this, performance.validateStyle(json))) {\n return;\n }\n this._loaded = true;\n this.stylesheet = json;\n for (var id in json.sources) {\n this.addSource(id, json.sources[id], { validate: false });\n }\n if (json.sprite) {\n this._loadSprite(json.sprite);\n } else {\n this.imageManager.setLoaded(true);\n }\n this.glyphManager.setURL(json.glyphs);\n var layers = derefLayers(this.stylesheet.layers);\n this._order = layers.map(function (layer) {\n return layer.id;\n });\n this._layers = {};\n this._serializedLayers = {};\n for (var i = 0, list = layers; i < list.length; i += 1) {\n var layer = list[i];\n layer = performance.createStyleLayer(layer);\n layer.setEventedParent(this, { layer: { id: layer.id } });\n this._layers[layer.id] = layer;\n this._serializedLayers[layer.id] = layer.serialize();\n }\n this.dispatcher.broadcast('setLayers', this._serializeLayers(this._order));\n this.light = new Light(this.stylesheet.light);\n this.fire(new performance.Event('data', { dataType: 'style' }));\n this.fire(new performance.Event('style.load'));\n };\n Style.prototype._loadSprite = function _loadSprite(url) {\n var this$1 = this;\n this._spriteRequest = loadSprite(url, this.map._requestManager, function (err, images) {\n this$1._spriteRequest = null;\n if (err) {\n this$1.fire(new performance.ErrorEvent(err));\n } else if (images) {\n for (var id in images) {\n this$1.imageManager.addImage(id, images[id]);\n }\n }\n this$1.imageManager.setLoaded(true);\n this$1._availableImages = this$1.imageManager.listImages();\n this$1.dispatcher.broadcast('setImages', this$1._availableImages);\n this$1.fire(new performance.Event('data', { dataType: 'style' }));\n });\n };\n Style.prototype._validateLayer = function _validateLayer(layer) {\n var sourceCache = this.sourceCaches[layer.source];\n if (!sourceCache) {\n return;\n }\n var sourceLayer = layer.sourceLayer;\n if (!sourceLayer) {\n return;\n }\n var source = sourceCache.getSource();\n if (source.type === 'geojson' || source.vectorLayerIds && source.vectorLayerIds.indexOf(sourceLayer) === -1) {\n this.fire(new performance.ErrorEvent(new Error('Source layer \"' + sourceLayer + '\" ' + 'does not exist on source \"' + source.id + '\" ' + 'as specified by style layer \"' + layer.id + '\"')));\n }\n };\n Style.prototype.loaded = function loaded() {\n if (!this._loaded) {\n return false;\n }\n if (Object.keys(this._updatedSources).length) {\n return false;\n }\n for (var id in this.sourceCaches) {\n if (!this.sourceCaches[id].loaded()) {\n return false;\n }\n }\n if (!this.imageManager.isLoaded()) {\n return false;\n }\n return true;\n };\n Style.prototype._serializeLayers = function _serializeLayers(ids) {\n var serializedLayers = [];\n for (var i = 0, list = ids; i < list.length; i += 1) {\n var id = list[i];\n var layer = this._layers[id];\n if (layer.type !== 'custom') {\n serializedLayers.push(layer.serialize());\n }\n }\n return serializedLayers;\n };\n Style.prototype.hasTransitions = function hasTransitions() {\n if (this.light && this.light.hasTransition()) {\n return true;\n }\n for (var id in this.sourceCaches) {\n if (this.sourceCaches[id].hasTransition()) {\n return true;\n }\n }\n for (var id$1 in this._layers) {\n if (this._layers[id$1].hasTransition()) {\n return true;\n }\n }\n return false;\n };\n Style.prototype._checkLoaded = function _checkLoaded() {\n if (!this._loaded) {\n throw new Error('Style is not done loading');\n }\n };\n Style.prototype.update = function update(parameters) {\n if (!this._loaded) {\n return;\n }\n var changed = this._changed;\n if (this._changed) {\n var updatedIds = Object.keys(this._updatedLayers);\n var removedIds = Object.keys(this._removedLayers);\n if (updatedIds.length || removedIds.length) {\n this._updateWorkerLayers(updatedIds, removedIds);\n }\n for (var id in this._updatedSources) {\n var action = this._updatedSources[id];\n if (action === 'reload') {\n this._reloadSource(id);\n } else if (action === 'clear') {\n this._clearSource(id);\n }\n }\n this._updateTilesForChangedImages();\n for (var id$1 in this._updatedPaintProps) {\n this._layers[id$1].updateTransitions(parameters);\n }\n this.light.updateTransitions(parameters);\n this._resetUpdates();\n }\n for (var sourceId in this.sourceCaches) {\n this.sourceCaches[sourceId].used = false;\n }\n for (var i = 0, list = this._order; i < list.length; i += 1) {\n var layerId = list[i];\n var layer = this._layers[layerId];\n layer.recalculate(parameters, this._availableImages);\n if (!layer.isHidden(parameters.zoom) && layer.source) {\n this.sourceCaches[layer.source].used = true;\n }\n }\n this.light.recalculate(parameters);\n this.z = parameters.zoom;\n if (changed) {\n this.fire(new performance.Event('data', { dataType: 'style' }));\n }\n };\n Style.prototype._updateTilesForChangedImages = function _updateTilesForChangedImages() {\n var changedImages = Object.keys(this._changedImages);\n if (changedImages.length) {\n for (var name in this.sourceCaches) {\n this.sourceCaches[name].reloadTilesForDependencies([\n 'icons',\n 'patterns'\n ], changedImages);\n }\n this._changedImages = {};\n }\n };\n Style.prototype._updateWorkerLayers = function _updateWorkerLayers(updatedIds, removedIds) {\n this.dispatcher.broadcast('updateLayers', {\n layers: this._serializeLayers(updatedIds),\n removedIds: removedIds\n });\n };\n Style.prototype._resetUpdates = function _resetUpdates() {\n this._changed = false;\n this._updatedLayers = {};\n this._removedLayers = {};\n this._updatedSources = {};\n this._updatedPaintProps = {};\n this._changedImages = {};\n };\n Style.prototype.setState = function setState(nextState) {\n var this$1 = this;\n this._checkLoaded();\n if (emitValidationErrors(this, performance.validateStyle(nextState))) {\n return false;\n }\n nextState = performance.clone$1(nextState);\n nextState.layers = derefLayers(nextState.layers);\n var changes = diffStyles(this.serialize(), nextState).filter(function (op) {\n return !(op.command in ignoredDiffOperations);\n });\n if (changes.length === 0) {\n return false;\n }\n var unimplementedOps = changes.filter(function (op) {\n return !(op.command in supportedDiffOperations);\n });\n if (unimplementedOps.length > 0) {\n throw new Error('Unimplemented: ' + unimplementedOps.map(function (op) {\n return op.command;\n }).join(', ') + '.');\n }\n changes.forEach(function (op) {\n if (op.command === 'setTransition') {\n return;\n }\n this$1[op.command].apply(this$1, op.args);\n });\n this.stylesheet = nextState;\n return true;\n };\n Style.prototype.addImage = function addImage(id, image) {\n if (this.getImage(id)) {\n return this.fire(new performance.ErrorEvent(new Error('An image with this name already exists.')));\n }\n this.imageManager.addImage(id, image);\n this._availableImages = this.imageManager.listImages();\n this._changedImages[id] = true;\n this._changed = true;\n this.fire(new performance.Event('data', { dataType: 'style' }));\n };\n Style.prototype.updateImage = function updateImage(id, image) {\n this.imageManager.updateImage(id, image);\n };\n Style.prototype.getImage = function getImage(id) {\n return this.imageManager.getImage(id);\n };\n Style.prototype.removeImage = function removeImage(id) {\n if (!this.getImage(id)) {\n return this.fire(new performance.ErrorEvent(new Error('No image with this name exists.')));\n }\n this.imageManager.removeImage(id);\n this._availableImages = this.imageManager.listImages();\n this._changedImages[id] = true;\n this._changed = true;\n this.fire(new performance.Event('data', { dataType: 'style' }));\n };\n Style.prototype.listImages = function listImages() {\n this._checkLoaded();\n return this.imageManager.listImages();\n };\n Style.prototype.addSource = function addSource(id, source, options) {\n var this$1 = this;\n if (options === void 0)\n options = {};\n this._checkLoaded();\n if (this.sourceCaches[id] !== undefined) {\n throw new Error('There is already a source with this ID');\n }\n if (!source.type) {\n throw new Error('The type property must be defined, but the only the following properties were given: ' + Object.keys(source).join(', ') + '.');\n }\n var builtIns = [\n 'vector',\n 'raster',\n 'geojson',\n 'video',\n 'image'\n ];\n var shouldValidate = builtIns.indexOf(source.type) >= 0;\n if (shouldValidate && this._validate(performance.validateStyle.source, 'sources.' + id, source, null, options)) {\n return;\n }\n if (this.map && this.map._collectResourceTiming) {\n source.collectResourceTiming = true;\n }\n var sourceCache = this.sourceCaches[id] = new SourceCache(id, source, this.dispatcher);\n sourceCache.style = this;\n sourceCache.setEventedParent(this, function () {\n return {\n isSourceLoaded: this$1.loaded(),\n source: sourceCache.serialize(),\n sourceId: id\n };\n });\n sourceCache.onAdd(this.map);\n this._changed = true;\n };\n Style.prototype.removeSource = function removeSource(id) {\n this._checkLoaded();\n if (this.sourceCaches[id] === undefined) {\n throw new Error('There is no source with this ID');\n }\n for (var layerId in this._layers) {\n if (this._layers[layerId].source === id) {\n return this.fire(new performance.ErrorEvent(new Error('Source \"' + id + '\" cannot be removed while layer \"' + layerId + '\" is using it.')));\n }\n }\n var sourceCache = this.sourceCaches[id];\n delete this.sourceCaches[id];\n delete this._updatedSources[id];\n sourceCache.fire(new performance.Event('data', {\n sourceDataType: 'metadata',\n dataType: 'source',\n sourceId: id\n }));\n sourceCache.setEventedParent(null);\n sourceCache.clearTiles();\n if (sourceCache.onRemove) {\n sourceCache.onRemove(this.map);\n }\n this._changed = true;\n };\n Style.prototype.setGeoJSONSourceData = function setGeoJSONSourceData(id, data) {\n this._checkLoaded();\n var geojsonSource = this.sourceCaches[id].getSource();\n geojsonSource.setData(data);\n this._changed = true;\n };\n Style.prototype.getSource = function getSource(id) {\n return this.sourceCaches[id] && this.sourceCaches[id].getSource();\n };\n Style.prototype.addLayer = function addLayer(layerObject, before, options) {\n if (options === void 0)\n options = {};\n this._checkLoaded();\n var id = layerObject.id;\n if (this.getLayer(id)) {\n this.fire(new performance.ErrorEvent(new Error('Layer with id \"' + id + '\" already exists on this map')));\n return;\n }\n var layer;\n if (layerObject.type === 'custom') {\n if (emitValidationErrors(this, performance.validateCustomStyleLayer(layerObject))) {\n return;\n }\n layer = performance.createStyleLayer(layerObject);\n } else {\n if (typeof layerObject.source === 'object') {\n this.addSource(id, layerObject.source);\n layerObject = performance.clone$1(layerObject);\n layerObject = performance.extend(layerObject, { source: id });\n }\n if (this._validate(performance.validateStyle.layer, 'layers.' + id, layerObject, { arrayIndex: -1 }, options)) {\n return;\n }\n layer = performance.createStyleLayer(layerObject);\n this._validateLayer(layer);\n layer.setEventedParent(this, { layer: { id: id } });\n this._serializedLayers[layer.id] = layer.serialize();\n }\n var index = before ? this._order.indexOf(before) : this._order.length;\n if (before && index === -1) {\n this.fire(new performance.ErrorEvent(new Error('Layer with id \"' + before + '\" does not exist on this map.')));\n return;\n }\n this._order.splice(index, 0, id);\n this._layerOrderChanged = true;\n this._layers[id] = layer;\n if (this._removedLayers[id] && layer.source && layer.type !== 'custom') {\n var removed = this._removedLayers[id];\n delete this._removedLayers[id];\n if (removed.type !== layer.type) {\n this._updatedSources[layer.source] = 'clear';\n } else {\n this._updatedSources[layer.source] = 'reload';\n this.sourceCaches[layer.source].pause();\n }\n }\n this._updateLayer(layer);\n if (layer.onAdd) {\n layer.onAdd(this.map);\n }\n };\n Style.prototype.moveLayer = function moveLayer(id, before) {\n this._checkLoaded();\n this._changed = true;\n var layer = this._layers[id];\n if (!layer) {\n this.fire(new performance.ErrorEvent(new Error('The layer \\'' + id + '\\' does not exist in the map\\'s style and cannot be moved.')));\n return;\n }\n if (id === before) {\n return;\n }\n var index = this._order.indexOf(id);\n this._order.splice(index, 1);\n var newIndex = before ? this._order.indexOf(before) : this._order.length;\n if (before && newIndex === -1) {\n this.fire(new performance.ErrorEvent(new Error('Layer with id \"' + before + '\" does not exist on this map.')));\n return;\n }\n this._order.splice(newIndex, 0, id);\n this._layerOrderChanged = true;\n };\n Style.prototype.removeLayer = function removeLayer(id) {\n this._checkLoaded();\n var layer = this._layers[id];\n if (!layer) {\n this.fire(new performance.ErrorEvent(new Error('The layer \\'' + id + '\\' does not exist in the map\\'s style and cannot be removed.')));\n return;\n }\n layer.setEventedParent(null);\n var index = this._order.indexOf(id);\n this._order.splice(index, 1);\n this._layerOrderChanged = true;\n this._changed = true;\n this._removedLayers[id] = layer;\n delete this._layers[id];\n delete this._serializedLayers[id];\n delete this._updatedLayers[id];\n delete this._updatedPaintProps[id];\n if (layer.onRemove) {\n layer.onRemove(this.map);\n }\n };\n Style.prototype.getLayer = function getLayer(id) {\n return this._layers[id];\n };\n Style.prototype.hasLayer = function hasLayer(id) {\n return id in this._layers;\n };\n Style.prototype.setLayerZoomRange = function setLayerZoomRange(layerId, minzoom, maxzoom) {\n this._checkLoaded();\n var layer = this.getLayer(layerId);\n if (!layer) {\n this.fire(new performance.ErrorEvent(new Error('The layer \\'' + layerId + '\\' does not exist in the map\\'s style and cannot have zoom extent.')));\n return;\n }\n if (layer.minzoom === minzoom && layer.maxzoom === maxzoom) {\n return;\n }\n if (minzoom != null) {\n layer.minzoom = minzoom;\n }\n if (maxzoom != null) {\n layer.maxzoom = maxzoom;\n }\n this._updateLayer(layer);\n };\n Style.prototype.setFilter = function setFilter(layerId, filter, options) {\n if (options === void 0)\n options = {};\n this._checkLoaded();\n var layer = this.getLayer(layerId);\n if (!layer) {\n this.fire(new performance.ErrorEvent(new Error('The layer \\'' + layerId + '\\' does not exist in the map\\'s style and cannot be filtered.')));\n return;\n }\n if (performance.deepEqual(layer.filter, filter)) {\n return;\n }\n if (filter === null || filter === undefined) {\n layer.filter = undefined;\n this._updateLayer(layer);\n return;\n }\n if (this._validate(performance.validateStyle.filter, 'layers.' + layer.id + '.filter', filter, null, options)) {\n return;\n }\n layer.filter = performance.clone$1(filter);\n this._updateLayer(layer);\n };\n Style.prototype.getFilter = function getFilter(layer) {\n return performance.clone$1(this.getLayer(layer).filter);\n };\n Style.prototype.setLayoutProperty = function setLayoutProperty(layerId, name, value, options) {\n if (options === void 0)\n options = {};\n this._checkLoaded();\n var layer = this.getLayer(layerId);\n if (!layer) {\n this.fire(new performance.ErrorEvent(new Error('The layer \\'' + layerId + '\\' does not exist in the map\\'s style and cannot be styled.')));\n return;\n }\n if (performance.deepEqual(layer.getLayoutProperty(name), value)) {\n return;\n }\n layer.setLayoutProperty(name, value, options);\n this._updateLayer(layer);\n };\n Style.prototype.getLayoutProperty = function getLayoutProperty(layerId, name) {\n var layer = this.getLayer(layerId);\n if (!layer) {\n this.fire(new performance.ErrorEvent(new Error('The layer \\'' + layerId + '\\' does not exist in the map\\'s style.')));\n return;\n }\n return layer.getLayoutProperty(name);\n };\n Style.prototype.setPaintProperty = function setPaintProperty(layerId, name, value, options) {\n if (options === void 0)\n options = {};\n this._checkLoaded();\n var layer = this.getLayer(layerId);\n if (!layer) {\n this.fire(new performance.ErrorEvent(new Error('The layer \\'' + layerId + '\\' does not exist in the map\\'s style and cannot be styled.')));\n return;\n }\n if (performance.deepEqual(layer.getPaintProperty(name), value)) {\n return;\n }\n var requiresRelayout = layer.setPaintProperty(name, value, options);\n if (requiresRelayout) {\n this._updateLayer(layer);\n }\n this._changed = true;\n this._updatedPaintProps[layerId] = true;\n };\n Style.prototype.getPaintProperty = function getPaintProperty(layer, name) {\n return this.getLayer(layer).getPaintProperty(name);\n };\n Style.prototype.setFeatureState = function setFeatureState(target, state) {\n this._checkLoaded();\n var sourceId = target.source;\n var sourceLayer = target.sourceLayer;\n var sourceCache = this.sourceCaches[sourceId];\n if (sourceCache === undefined) {\n this.fire(new performance.ErrorEvent(new Error('The source \\'' + sourceId + '\\' does not exist in the map\\'s style.')));\n return;\n }\n var sourceType = sourceCache.getSource().type;\n if (sourceType === 'geojson' && sourceLayer) {\n this.fire(new performance.ErrorEvent(new Error('GeoJSON sources cannot have a sourceLayer parameter.')));\n return;\n }\n if (sourceType === 'vector' && !sourceLayer) {\n this.fire(new performance.ErrorEvent(new Error('The sourceLayer parameter must be provided for vector source types.')));\n return;\n }\n if (target.id === undefined) {\n this.fire(new performance.ErrorEvent(new Error('The feature id parameter must be provided.')));\n }\n sourceCache.setFeatureState(sourceLayer, target.id, state);\n };\n Style.prototype.removeFeatureState = function removeFeatureState(target, key) {\n this._checkLoaded();\n var sourceId = target.source;\n var sourceCache = this.sourceCaches[sourceId];\n if (sourceCache === undefined) {\n this.fire(new performance.ErrorEvent(new Error('The source \\'' + sourceId + '\\' does not exist in the map\\'s style.')));\n return;\n }\n var sourceType = sourceCache.getSource().type;\n var sourceLayer = sourceType === 'vector' ? target.sourceLayer : undefined;\n if (sourceType === 'vector' && !sourceLayer) {\n this.fire(new performance.ErrorEvent(new Error('The sourceLayer parameter must be provided for vector source types.')));\n return;\n }\n if (key && (typeof target.id !== 'string' && typeof target.id !== 'number')) {\n this.fire(new performance.ErrorEvent(new Error('A feature id is requred to remove its specific state property.')));\n return;\n }\n sourceCache.removeFeatureState(sourceLayer, target.id, key);\n };\n Style.prototype.getFeatureState = function getFeatureState(target) {\n this._checkLoaded();\n var sourceId = target.source;\n var sourceLayer = target.sourceLayer;\n var sourceCache = this.sourceCaches[sourceId];\n if (sourceCache === undefined) {\n this.fire(new performance.ErrorEvent(new Error('The source \\'' + sourceId + '\\' does not exist in the map\\'s style.')));\n return;\n }\n var sourceType = sourceCache.getSource().type;\n if (sourceType === 'vector' && !sourceLayer) {\n this.fire(new performance.ErrorEvent(new Error('The sourceLayer parameter must be provided for vector source types.')));\n return;\n }\n if (target.id === undefined) {\n this.fire(new performance.ErrorEvent(new Error('The feature id parameter must be provided.')));\n }\n return sourceCache.getFeatureState(sourceLayer, target.id);\n };\n Style.prototype.getTransition = function getTransition() {\n return performance.extend({\n duration: 300,\n delay: 0\n }, this.stylesheet && this.stylesheet.transition);\n };\n Style.prototype.serialize = function serialize() {\n return performance.filterObject({\n version: this.stylesheet.version,\n name: this.stylesheet.name,\n metadata: this.stylesheet.metadata,\n light: this.stylesheet.light,\n center: this.stylesheet.center,\n zoom: this.stylesheet.zoom,\n bearing: this.stylesheet.bearing,\n pitch: this.stylesheet.pitch,\n sprite: this.stylesheet.sprite,\n glyphs: this.stylesheet.glyphs,\n transition: this.stylesheet.transition,\n sources: performance.mapObject(this.sourceCaches, function (source) {\n return source.serialize();\n }),\n layers: this._serializeLayers(this._order)\n }, function (value) {\n return value !== undefined;\n });\n };\n Style.prototype._updateLayer = function _updateLayer(layer) {\n this._updatedLayers[layer.id] = true;\n if (layer.source && !this._updatedSources[layer.source] && this.sourceCaches[layer.source].getSource().type !== 'raster') {\n this._updatedSources[layer.source] = 'reload';\n this.sourceCaches[layer.source].pause();\n }\n this._changed = true;\n };\n Style.prototype._flattenAndSortRenderedFeatures = function _flattenAndSortRenderedFeatures(sourceResults) {\n var this$1 = this;\n var isLayer3D = function (layerId) {\n return this$1._layers[layerId].type === 'fill-extrusion';\n };\n var layerIndex = {};\n var features3D = [];\n for (var l = this._order.length - 1; l >= 0; l--) {\n var layerId = this._order[l];\n if (isLayer3D(layerId)) {\n layerIndex[layerId] = l;\n for (var i$2 = 0, list$1 = sourceResults; i$2 < list$1.length; i$2 += 1) {\n var sourceResult = list$1[i$2];\n var layerFeatures = sourceResult[layerId];\n if (layerFeatures) {\n for (var i$1 = 0, list = layerFeatures; i$1 < list.length; i$1 += 1) {\n var featureWrapper = list[i$1];\n features3D.push(featureWrapper);\n }\n }\n }\n }\n }\n features3D.sort(function (a, b) {\n return b.intersectionZ - a.intersectionZ;\n });\n var features = [];\n for (var l$1 = this._order.length - 1; l$1 >= 0; l$1--) {\n var layerId$1 = this._order[l$1];\n if (isLayer3D(layerId$1)) {\n for (var i = features3D.length - 1; i >= 0; i--) {\n var topmost3D = features3D[i].feature;\n if (layerIndex[topmost3D.layer.id] < l$1) {\n break;\n }\n features.push(topmost3D);\n features3D.pop();\n }\n } else {\n for (var i$4 = 0, list$3 = sourceResults; i$4 < list$3.length; i$4 += 1) {\n var sourceResult$1 = list$3[i$4];\n var layerFeatures$1 = sourceResult$1[layerId$1];\n if (layerFeatures$1) {\n for (var i$3 = 0, list$2 = layerFeatures$1; i$3 < list$2.length; i$3 += 1) {\n var featureWrapper$1 = list$2[i$3];\n features.push(featureWrapper$1.feature);\n }\n }\n }\n }\n }\n return features;\n };\n Style.prototype.queryRenderedFeatures = function queryRenderedFeatures$1(queryGeometry, params, transform) {\n if (params && params.filter) {\n this._validate(performance.validateStyle.filter, 'queryRenderedFeatures.filter', params.filter, null, params);\n }\n var includedSources = {};\n if (params && params.layers) {\n if (!Array.isArray(params.layers)) {\n this.fire(new performance.ErrorEvent(new Error('parameters.layers must be an Array.')));\n return [];\n }\n for (var i = 0, list = params.layers; i < list.length; i += 1) {\n var layerId = list[i];\n var layer = this._layers[layerId];\n if (!layer) {\n this.fire(new performance.ErrorEvent(new Error('The layer \\'' + layerId + '\\' does not exist in the map\\'s style and cannot be queried for features.')));\n return [];\n }\n includedSources[layer.source] = true;\n }\n }\n var sourceResults = [];\n params.availableImages = this._availableImages;\n for (var id in this.sourceCaches) {\n if (params.layers && !includedSources[id]) {\n continue;\n }\n sourceResults.push(queryRenderedFeatures(this.sourceCaches[id], this._layers, this._serializedLayers, queryGeometry, params, transform));\n }\n if (this.placement) {\n sourceResults.push(queryRenderedSymbols(this._layers, this._serializedLayers, this.sourceCaches, queryGeometry, params, this.placement.collisionIndex, this.placement.retainedQueryData));\n }\n return this._flattenAndSortRenderedFeatures(sourceResults);\n };\n Style.prototype.querySourceFeatures = function querySourceFeatures$1(sourceID, params) {\n if (params && params.filter) {\n this._validate(performance.validateStyle.filter, 'querySourceFeatures.filter', params.filter, null, params);\n }\n var sourceCache = this.sourceCaches[sourceID];\n return sourceCache ? querySourceFeatures(sourceCache, params) : [];\n };\n Style.prototype.addSourceType = function addSourceType(name, SourceType, callback) {\n if (Style.getSourceType(name)) {\n return callback(new Error('A source type called \"' + name + '\" already exists.'));\n }\n Style.setSourceType(name, SourceType);\n if (!SourceType.workerSourceURL) {\n return callback(null, null);\n }\n this.dispatcher.broadcast('loadWorkerSource', {\n name: name,\n url: SourceType.workerSourceURL\n }, callback);\n };\n Style.prototype.getLight = function getLight() {\n return this.light.getLight();\n };\n Style.prototype.setLight = function setLight(lightOptions, options) {\n if (options === void 0)\n options = {};\n this._checkLoaded();\n var light = this.light.getLight();\n var _update = false;\n for (var key in lightOptions) {\n if (!performance.deepEqual(lightOptions[key], light[key])) {\n _update = true;\n break;\n }\n }\n if (!_update) {\n return;\n }\n var parameters = {\n now: performance.browser.now(),\n transition: performance.extend({\n duration: 300,\n delay: 0\n }, this.stylesheet.transition)\n };\n this.light.setLight(lightOptions, options);\n this.light.updateTransitions(parameters);\n };\n Style.prototype._validate = function _validate(validate, key, value, props, options) {\n if (options === void 0)\n options = {};\n if (options && options.validate === false) {\n return false;\n }\n return emitValidationErrors(this, validate.call(performance.validateStyle, performance.extend({\n key: key,\n style: this.serialize(),\n value: value,\n styleSpec: performance.styleSpec\n }, props)));\n };\n Style.prototype._remove = function _remove() {\n if (this._request) {\n this._request.cancel();\n this._request = null;\n }\n if (this._spriteRequest) {\n this._spriteRequest.cancel();\n this._spriteRequest = null;\n }\n performance.evented.off('pluginStateChange', this._rtlTextPluginCallback);\n for (var layerId in this._layers) {\n var layer = this._layers[layerId];\n layer.setEventedParent(null);\n }\n for (var id in this.sourceCaches) {\n this.sourceCaches[id].clearTiles();\n this.sourceCaches[id].setEventedParent(null);\n }\n this.imageManager.setEventedParent(null);\n this.setEventedParent(null);\n this.dispatcher.remove();\n };\n Style.prototype._clearSource = function _clearSource(id) {\n this.sourceCaches[id].clearTiles();\n };\n Style.prototype._reloadSource = function _reloadSource(id) {\n this.sourceCaches[id].resume();\n this.sourceCaches[id].reload();\n };\n Style.prototype._updateSources = function _updateSources(transform) {\n for (var id in this.sourceCaches) {\n this.sourceCaches[id].update(transform);\n }\n };\n Style.prototype._generateCollisionBoxes = function _generateCollisionBoxes() {\n for (var id in this.sourceCaches) {\n this._reloadSource(id);\n }\n };\n Style.prototype._updatePlacement = function _updatePlacement(transform, showCollisionBoxes, fadeDuration, crossSourceCollisions, forceFullPlacement) {\n if (forceFullPlacement === void 0)\n forceFullPlacement = false;\n var symbolBucketsChanged = false;\n var placementCommitted = false;\n var layerTiles = {};\n for (var i = 0, list = this._order; i < list.length; i += 1) {\n var layerID = list[i];\n var styleLayer = this._layers[layerID];\n if (styleLayer.type !== 'symbol') {\n continue;\n }\n if (!layerTiles[styleLayer.source]) {\n var sourceCache = this.sourceCaches[styleLayer.source];\n layerTiles[styleLayer.source] = sourceCache.getRenderableIds(true).map(function (id) {\n return sourceCache.getTileByID(id);\n }).sort(function (a, b) {\n return b.tileID.overscaledZ - a.tileID.overscaledZ || (a.tileID.isLessThan(b.tileID) ? -1 : 1);\n });\n }\n var layerBucketsChanged = this.crossTileSymbolIndex.addLayer(styleLayer, layerTiles[styleLayer.source], transform.center.lng);\n symbolBucketsChanged = symbolBucketsChanged || layerBucketsChanged;\n }\n this.crossTileSymbolIndex.pruneUnusedLayers(this._order);\n forceFullPlacement = forceFullPlacement || this._layerOrderChanged || fadeDuration === 0;\n if (forceFullPlacement || !this.pauseablePlacement || this.pauseablePlacement.isDone() && !this.placement.stillRecent(performance.browser.now(), transform.zoom)) {\n this.pauseablePlacement = new PauseablePlacement(transform, this._order, forceFullPlacement, showCollisionBoxes, fadeDuration, crossSourceCollisions, this.placement);\n this._layerOrderChanged = false;\n }\n if (this.pauseablePlacement.isDone()) {\n this.placement.setStale();\n } else {\n this.pauseablePlacement.continuePlacement(this._order, this._layers, layerTiles);\n if (this.pauseablePlacement.isDone()) {\n this.placement = this.pauseablePlacement.commit(performance.browser.now());\n placementCommitted = true;\n }\n if (symbolBucketsChanged) {\n this.pauseablePlacement.placement.setStale();\n }\n }\n if (placementCommitted || symbolBucketsChanged) {\n for (var i$1 = 0, list$1 = this._order; i$1 < list$1.length; i$1 += 1) {\n var layerID$1 = list$1[i$1];\n var styleLayer$1 = this._layers[layerID$1];\n if (styleLayer$1.type !== 'symbol') {\n continue;\n }\n this.placement.updateLayerOpacities(styleLayer$1, layerTiles[styleLayer$1.source]);\n }\n }\n var needsRerender = !this.pauseablePlacement.isDone() || this.placement.hasTransitions(performance.browser.now());\n return needsRerender;\n };\n Style.prototype._releaseSymbolFadeTiles = function _releaseSymbolFadeTiles() {\n for (var id in this.sourceCaches) {\n this.sourceCaches[id].releaseSymbolFadeTiles();\n }\n };\n Style.prototype.getImages = function getImages(mapId, params, callback) {\n this.imageManager.getImages(params.icons, callback);\n this._updateTilesForChangedImages();\n var sourceCache = this.sourceCaches[params.source];\n if (sourceCache) {\n sourceCache.setDependencies(params.tileID.key, params.type, params.icons);\n }\n };\n Style.prototype.getGlyphs = function getGlyphs(mapId, params, callback) {\n this.glyphManager.getGlyphs(params.stacks, callback);\n };\n Style.prototype.getResource = function getResource(mapId, params, callback) {\n return performance.makeRequest(params, callback);\n };\n return Style;\n}(performance.Evented);\nStyle.getSourceType = getType;\nStyle.setSourceType = setType;\nStyle.registerForPluginStateChange = performance.registerForPluginStateChange;\n\nvar posAttributes = performance.createLayout([{\n name: 'a_pos',\n type: 'Int16',\n components: 2\n }]);\n\nvar preludeFrag = \"#ifdef GL_ES\\nprecision mediump float;\\n#else\\n#if !defined(lowp)\\n#define lowp\\n#endif\\n#if !defined(mediump)\\n#define mediump\\n#endif\\n#if !defined(highp)\\n#define highp\\n#endif\\n#endif\";\n\nvar preludeVert = \"#ifdef GL_ES\\nprecision highp float;\\n#else\\n#if !defined(lowp)\\n#define lowp\\n#endif\\n#if !defined(mediump)\\n#define mediump\\n#endif\\n#if !defined(highp)\\n#define highp\\n#endif\\n#endif\\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}\";\n\nvar backgroundFrag = \"uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\";\n\nvar backgroundVert = \"attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}\";\n\nvar backgroundPatternFrag = \"uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\";\n\nvar backgroundPatternVert = \"uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}\";\n\nvar circleFrag = \"varying vec3 v_data;\\n#pragma mapbox: define highp vec4 color\\n#pragma mapbox: define mediump float radius\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define highp vec4 stroke_color\\n#pragma mapbox: define mediump float stroke_width\\n#pragma mapbox: define lowp float stroke_opacity\\nvoid main() {\\n#pragma mapbox: initialize highp vec4 color\\n#pragma mapbox: initialize mediump float radius\\n#pragma mapbox: initialize lowp float blur\\n#pragma mapbox: initialize lowp float opacity\\n#pragma mapbox: initialize highp vec4 stroke_color\\n#pragma mapbox: initialize mediump float stroke_width\\n#pragma mapbox: initialize lowp float stroke_opacity\\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\";\n\nvar circleVert = \"uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;\\n#pragma mapbox: define highp vec4 color\\n#pragma mapbox: define mediump float radius\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define highp vec4 stroke_color\\n#pragma mapbox: define mediump float stroke_width\\n#pragma mapbox: define lowp float stroke_opacity\\nvoid main(void) {\\n#pragma mapbox: initialize highp vec4 color\\n#pragma mapbox: initialize mediump float radius\\n#pragma mapbox: initialize lowp float blur\\n#pragma mapbox: initialize lowp float opacity\\n#pragma mapbox: initialize highp vec4 stroke_color\\n#pragma mapbox: initialize mediump float stroke_width\\n#pragma mapbox: initialize lowp float stroke_opacity\\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,0,1);} else {gl_Position=u_matrix*vec4(circle_center,0,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);}\";\n\nvar clippingMaskFrag = \"void main() {gl_FragColor=vec4(1.0);}\";\n\nvar clippingMaskVert = \"attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}\";\n\nvar heatmapFrag = \"uniform highp float u_intensity;varying vec2 v_extrude;\\n#pragma mapbox: define highp float weight\\n#define GAUSS_COEF 0.3989422804014327\\nvoid main() {\\n#pragma mapbox: initialize highp float weight\\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\";\n\nvar heatmapVert = \"uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude;\\n#pragma mapbox: define highp float weight\\n#pragma mapbox: define mediump float radius\\nconst highp float ZERO=1.0/255.0/16.0;\\n#define GAUSS_COEF 0.3989422804014327\\nvoid main(void) {\\n#pragma mapbox: initialize highp float weight\\n#pragma mapbox: initialize mediump float radius\\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,0,1);gl_Position=u_matrix*pos;}\";\n\nvar heatmapTextureFrag = \"uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(0.0);\\n#endif\\n}\";\n\nvar heatmapTextureVert = \"uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}\";\n\nvar collisionBoxFrag = \"varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}\";\n\nvar collisionBoxVert = \"attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}\";\n\nvar collisionCircleFrag = \"varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}\";\n\nvar collisionCircleVert = \"attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}\";\n\nvar debugFrag = \"uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}\";\n\nvar debugVert = \"attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}\";\n\nvar fillFrag = \"#pragma mapbox: define highp vec4 color\\n#pragma mapbox: define lowp float opacity\\nvoid main() {\\n#pragma mapbox: initialize highp vec4 color\\n#pragma mapbox: initialize lowp float opacity\\ngl_FragColor=color*opacity;\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\";\n\nvar fillVert = \"attribute vec2 a_pos;uniform mat4 u_matrix;\\n#pragma mapbox: define highp vec4 color\\n#pragma mapbox: define lowp float opacity\\nvoid main() {\\n#pragma mapbox: initialize highp vec4 color\\n#pragma mapbox: initialize lowp float opacity\\ngl_Position=u_matrix*vec4(a_pos,0,1);}\";\n\nvar fillOutlineFrag = \"varying vec2 v_pos;\\n#pragma mapbox: define highp vec4 outline_color\\n#pragma mapbox: define lowp float opacity\\nvoid main() {\\n#pragma mapbox: initialize highp vec4 outline_color\\n#pragma mapbox: initialize lowp float opacity\\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\";\n\nvar fillOutlineVert = \"attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\\n#pragma mapbox: define highp vec4 outline_color\\n#pragma mapbox: define lowp float opacity\\nvoid main() {\\n#pragma mapbox: initialize highp vec4 outline_color\\n#pragma mapbox: initialize lowp float opacity\\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}\";\n\nvar fillOutlinePatternFrag = \"uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define lowp vec4 pattern_from\\n#pragma mapbox: define lowp vec4 pattern_to\\nvoid main() {\\n#pragma mapbox: initialize lowp float opacity\\n#pragma mapbox: initialize mediump vec4 pattern_from\\n#pragma mapbox: initialize mediump vec4 pattern_to\\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\";\n\nvar fillOutlinePatternVert = \"uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define lowp vec4 pattern_from\\n#pragma mapbox: define lowp vec4 pattern_to\\n#pragma mapbox: define lowp float pixel_ratio_from\\n#pragma mapbox: define lowp float pixel_ratio_to\\nvoid main() {\\n#pragma mapbox: initialize lowp float opacity\\n#pragma mapbox: initialize mediump vec4 pattern_from\\n#pragma mapbox: initialize mediump vec4 pattern_to\\n#pragma mapbox: initialize lowp float pixel_ratio_from\\n#pragma mapbox: initialize lowp float pixel_ratio_to\\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}\";\n\nvar fillPatternFrag = \"uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define lowp vec4 pattern_from\\n#pragma mapbox: define lowp vec4 pattern_to\\nvoid main() {\\n#pragma mapbox: initialize lowp float opacity\\n#pragma mapbox: initialize mediump vec4 pattern_from\\n#pragma mapbox: initialize mediump vec4 pattern_to\\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\";\n\nvar fillPatternVert = \"uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define lowp vec4 pattern_from\\n#pragma mapbox: define lowp vec4 pattern_to\\n#pragma mapbox: define lowp float pixel_ratio_from\\n#pragma mapbox: define lowp float pixel_ratio_to\\nvoid main() {\\n#pragma mapbox: initialize lowp float opacity\\n#pragma mapbox: initialize mediump vec4 pattern_from\\n#pragma mapbox: initialize mediump vec4 pattern_to\\n#pragma mapbox: initialize lowp float pixel_ratio_from\\n#pragma mapbox: initialize lowp float pixel_ratio_to\\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}\";\n\nvar fillExtrusionFrag = \"varying vec4 v_color;void main() {gl_FragColor=v_color;\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\";\n\nvar fillExtrusionVert = \"uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color;\\n#pragma mapbox: define highp float base\\n#pragma mapbox: define highp float height\\n#pragma mapbox: define highp vec4 color\\nvoid main() {\\n#pragma mapbox: initialize highp float base\\n#pragma mapbox: initialize highp float height\\n#pragma mapbox: initialize highp vec4 color\\nvec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}\";\n\nvar fillExtrusionPatternFrag = \"uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\\n#pragma mapbox: define lowp float base\\n#pragma mapbox: define lowp float height\\n#pragma mapbox: define lowp vec4 pattern_from\\n#pragma mapbox: define lowp vec4 pattern_to\\n#pragma mapbox: define lowp float pixel_ratio_from\\n#pragma mapbox: define lowp float pixel_ratio_to\\nvoid main() {\\n#pragma mapbox: initialize lowp float base\\n#pragma mapbox: initialize lowp float height\\n#pragma mapbox: initialize mediump vec4 pattern_from\\n#pragma mapbox: initialize mediump vec4 pattern_to\\n#pragma mapbox: initialize lowp float pixel_ratio_from\\n#pragma mapbox: initialize lowp float pixel_ratio_to\\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\";\n\nvar fillExtrusionPatternVert = \"uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\\n#pragma mapbox: define lowp float base\\n#pragma mapbox: define lowp float height\\n#pragma mapbox: define lowp vec4 pattern_from\\n#pragma mapbox: define lowp vec4 pattern_to\\n#pragma mapbox: define lowp float pixel_ratio_from\\n#pragma mapbox: define lowp float pixel_ratio_to\\nvoid main() {\\n#pragma mapbox: initialize lowp float base\\n#pragma mapbox: initialize lowp float height\\n#pragma mapbox: initialize mediump vec4 pattern_from\\n#pragma mapbox: initialize mediump vec4 pattern_to\\n#pragma mapbox: initialize lowp float pixel_ratio_from\\n#pragma mapbox: initialize lowp float pixel_ratio_to\\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0\\n? a_pos\\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}\";\n\nvar hillshadePrepareFrag = \"#ifdef GL_ES\\nprecision highp float;\\n#endif\\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform float u_maxzoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggeration=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/ pow(2.0,(u_zoom-u_maxzoom)*exaggeration+19.2562-u_zoom);gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\";\n\nvar hillshadePrepareVert = \"uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}\";\n\nvar hillshadeFrag = \"uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;\\n#define PI 3.141592653589793\\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\";\n\nvar hillshadeVert = \"uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}\";\n\nvar lineFrag = \"uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\\n#pragma mapbox: define highp vec4 color\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\nvoid main() {\\n#pragma mapbox: initialize highp vec4 color\\n#pragma mapbox: initialize lowp float blur\\n#pragma mapbox: initialize lowp float opacity\\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\";\n\nvar lineVert = \"\\n#define scale 0.015873016\\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\\n#pragma mapbox: define highp vec4 color\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define mediump float gapwidth\\n#pragma mapbox: define lowp float offset\\n#pragma mapbox: define mediump float width\\nvoid main() {\\n#pragma mapbox: initialize highp vec4 color\\n#pragma mapbox: initialize lowp float blur\\n#pragma mapbox: initialize lowp float opacity\\n#pragma mapbox: initialize mediump float gapwidth\\n#pragma mapbox: initialize lowp float offset\\n#pragma mapbox: initialize mediump float width\\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}\";\n\nvar lineGradientFrag = \"uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp float v_lineprogress;\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\nvoid main() {\\n#pragma mapbox: initialize lowp float blur\\n#pragma mapbox: initialize lowp float opacity\\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,vec2(v_lineprogress,0.5));gl_FragColor=color*(alpha*opacity);\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\";\n\nvar lineGradientVert = \"\\n#define MAX_LINE_DISTANCE 32767.0\\n#define scale 0.015873016\\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_lineprogress;\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define mediump float gapwidth\\n#pragma mapbox: define lowp float offset\\n#pragma mapbox: define mediump float width\\nvoid main() {\\n#pragma mapbox: initialize lowp float blur\\n#pragma mapbox: initialize lowp float opacity\\n#pragma mapbox: initialize mediump float gapwidth\\n#pragma mapbox: initialize lowp float offset\\n#pragma mapbox: initialize mediump float width\\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_lineprogress=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0/MAX_LINE_DISTANCE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}\";\n\nvar linePatternFrag = \"uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\\n#pragma mapbox: define lowp vec4 pattern_from\\n#pragma mapbox: define lowp vec4 pattern_to\\n#pragma mapbox: define lowp float pixel_ratio_from\\n#pragma mapbox: define lowp float pixel_ratio_to\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\nvoid main() {\\n#pragma mapbox: initialize mediump vec4 pattern_from\\n#pragma mapbox: initialize mediump vec4 pattern_to\\n#pragma mapbox: initialize lowp float pixel_ratio_from\\n#pragma mapbox: initialize lowp float pixel_ratio_to\\n#pragma mapbox: initialize lowp float blur\\n#pragma mapbox: initialize lowp float opacity\\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\";\n\nvar linePatternVert = \"\\n#define scale 0.015873016\\n#define LINE_DISTANCE_SCALE 2.0\\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define lowp float offset\\n#pragma mapbox: define mediump float gapwidth\\n#pragma mapbox: define mediump float width\\n#pragma mapbox: define lowp float floorwidth\\n#pragma mapbox: define lowp vec4 pattern_from\\n#pragma mapbox: define lowp vec4 pattern_to\\n#pragma mapbox: define lowp float pixel_ratio_from\\n#pragma mapbox: define lowp float pixel_ratio_to\\nvoid main() {\\n#pragma mapbox: initialize lowp float blur\\n#pragma mapbox: initialize lowp float opacity\\n#pragma mapbox: initialize lowp float offset\\n#pragma mapbox: initialize mediump float gapwidth\\n#pragma mapbox: initialize mediump float width\\n#pragma mapbox: initialize lowp float floorwidth\\n#pragma mapbox: initialize mediump vec4 pattern_from\\n#pragma mapbox: initialize mediump vec4 pattern_to\\n#pragma mapbox: initialize lowp float pixel_ratio_from\\n#pragma mapbox: initialize lowp float pixel_ratio_to\\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}\";\n\nvar lineSDFFrag = \"uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\\n#pragma mapbox: define highp vec4 color\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define mediump float width\\n#pragma mapbox: define lowp float floorwidth\\nvoid main() {\\n#pragma mapbox: initialize highp vec4 color\\n#pragma mapbox: initialize lowp float blur\\n#pragma mapbox: initialize lowp float opacity\\n#pragma mapbox: initialize mediump float width\\n#pragma mapbox: initialize lowp float floorwidth\\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\";\n\nvar lineSDFVert = \"\\n#define scale 0.015873016\\n#define LINE_DISTANCE_SCALE 2.0\\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\\n#pragma mapbox: define highp vec4 color\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define mediump float gapwidth\\n#pragma mapbox: define lowp float offset\\n#pragma mapbox: define mediump float width\\n#pragma mapbox: define lowp float floorwidth\\nvoid main() {\\n#pragma mapbox: initialize highp vec4 color\\n#pragma mapbox: initialize lowp float blur\\n#pragma mapbox: initialize lowp float opacity\\n#pragma mapbox: initialize mediump float gapwidth\\n#pragma mapbox: initialize lowp float offset\\n#pragma mapbox: initialize mediump float width\\n#pragma mapbox: initialize lowp float floorwidth\\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}\";\n\nvar rasterFrag = \"uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\";\n\nvar rasterVert = \"uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}\";\n\nvar symbolIconFrag = \"uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\\n#pragma mapbox: define lowp float opacity\\nvoid main() {\\n#pragma mapbox: initialize lowp float opacity\\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\";\n\nvar symbolIconVert = \"const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\\n#pragma mapbox: define lowp float opacity\\nvoid main() {\\n#pragma mapbox: initialize lowp float opacity\\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\\ncamera_to_anchor_distance/u_camera_to_center_distance :\\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}\";\n\nvar symbolSDFFrag = \"#define SDF_PX 8.0\\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\\n#pragma mapbox: define highp vec4 fill_color\\n#pragma mapbox: define highp vec4 halo_color\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define lowp float halo_width\\n#pragma mapbox: define lowp float halo_blur\\nvoid main() {\\n#pragma mapbox: initialize highp vec4 fill_color\\n#pragma mapbox: initialize highp vec4 halo_color\\n#pragma mapbox: initialize lowp float opacity\\n#pragma mapbox: initialize lowp float halo_width\\n#pragma mapbox: initialize lowp float halo_blur\\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\";\n\nvar symbolSDFVert = \"const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;\\n#pragma mapbox: define highp vec4 fill_color\\n#pragma mapbox: define highp vec4 halo_color\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define lowp float halo_width\\n#pragma mapbox: define lowp float halo_blur\\nvoid main() {\\n#pragma mapbox: initialize highp vec4 fill_color\\n#pragma mapbox: initialize highp vec4 halo_color\\n#pragma mapbox: initialize lowp float opacity\\n#pragma mapbox: initialize lowp float halo_width\\n#pragma mapbox: initialize lowp float halo_blur\\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\\ncamera_to_anchor_distance/u_camera_to_center_distance :\\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}\";\n\nvar symbolTextAndIconFrag = \"#define SDF_PX 8.0\\n#define SDF 1.0\\n#define ICON 0.0\\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\\n#pragma mapbox: define highp vec4 fill_color\\n#pragma mapbox: define highp vec4 halo_color\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define lowp float halo_width\\n#pragma mapbox: define lowp float halo_blur\\nvoid main() {\\n#pragma mapbox: initialize highp vec4 fill_color\\n#pragma mapbox: initialize highp vec4 halo_color\\n#pragma mapbox: initialize lowp float opacity\\n#pragma mapbox: initialize lowp float halo_width\\n#pragma mapbox: initialize lowp float halo_blur\\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\";\n\nvar symbolTextAndIconVert = \"const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;\\n#pragma mapbox: define highp vec4 fill_color\\n#pragma mapbox: define highp vec4 halo_color\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define lowp float halo_width\\n#pragma mapbox: define lowp float halo_blur\\nvoid main() {\\n#pragma mapbox: initialize highp vec4 fill_color\\n#pragma mapbox: initialize highp vec4 halo_color\\n#pragma mapbox: initialize lowp float opacity\\n#pragma mapbox: initialize lowp float halo_width\\n#pragma mapbox: initialize lowp float halo_blur\\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\\ncamera_to_anchor_distance/u_camera_to_center_distance :\\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}\";\n\nvar prelude = compile(preludeFrag, preludeVert);\nvar background = compile(backgroundFrag, backgroundVert);\nvar backgroundPattern = compile(backgroundPatternFrag, backgroundPatternVert);\nvar circle = compile(circleFrag, circleVert);\nvar clippingMask = compile(clippingMaskFrag, clippingMaskVert);\nvar heatmap = compile(heatmapFrag, heatmapVert);\nvar heatmapTexture = compile(heatmapTextureFrag, heatmapTextureVert);\nvar collisionBox = compile(collisionBoxFrag, collisionBoxVert);\nvar collisionCircle = compile(collisionCircleFrag, collisionCircleVert);\nvar debug = compile(debugFrag, debugVert);\nvar fill = compile(fillFrag, fillVert);\nvar fillOutline = compile(fillOutlineFrag, fillOutlineVert);\nvar fillOutlinePattern = compile(fillOutlinePatternFrag, fillOutlinePatternVert);\nvar fillPattern = compile(fillPatternFrag, fillPatternVert);\nvar fillExtrusion = compile(fillExtrusionFrag, fillExtrusionVert);\nvar fillExtrusionPattern = compile(fillExtrusionPatternFrag, fillExtrusionPatternVert);\nvar hillshadePrepare = compile(hillshadePrepareFrag, hillshadePrepareVert);\nvar hillshade = compile(hillshadeFrag, hillshadeVert);\nvar line = compile(lineFrag, lineVert);\nvar lineGradient = compile(lineGradientFrag, lineGradientVert);\nvar linePattern = compile(linePatternFrag, linePatternVert);\nvar lineSDF = compile(lineSDFFrag, lineSDFVert);\nvar raster = compile(rasterFrag, rasterVert);\nvar symbolIcon = compile(symbolIconFrag, symbolIconVert);\nvar symbolSDF = compile(symbolSDFFrag, symbolSDFVert);\nvar symbolTextAndIcon = compile(symbolTextAndIconFrag, symbolTextAndIconVert);\nfunction compile(fragmentSource, vertexSource) {\n var re = /#pragma mapbox: ([\\w]+) ([\\w]+) ([\\w]+) ([\\w]+)/g;\n var fragmentPragmas = {};\n fragmentSource = fragmentSource.replace(re, function (match, operation, precision, type, name) {\n fragmentPragmas[name] = true;\n if (operation === 'define') {\n return '\\n#ifndef HAS_UNIFORM_u_' + name + '\\nvarying ' + precision + ' ' + type + ' ' + name + ';\\n#else\\nuniform ' + precision + ' ' + type + ' u_' + name + ';\\n#endif\\n';\n } else {\n return '\\n#ifdef HAS_UNIFORM_u_' + name + '\\n ' + precision + ' ' + type + ' ' + name + ' = u_' + name + ';\\n#endif\\n';\n }\n });\n vertexSource = vertexSource.replace(re, function (match, operation, precision, type, name) {\n var attrType = type === 'float' ? 'vec2' : 'vec4';\n var unpackType = name.match(/color/) ? 'color' : attrType;\n if (fragmentPragmas[name]) {\n if (operation === 'define') {\n return '\\n#ifndef HAS_UNIFORM_u_' + name + '\\nuniform lowp float u_' + name + '_t;\\nattribute ' + precision + ' ' + attrType + ' a_' + name + ';\\nvarying ' + precision + ' ' + type + ' ' + name + ';\\n#else\\nuniform ' + precision + ' ' + type + ' u_' + name + ';\\n#endif\\n';\n } else {\n if (unpackType === 'vec4') {\n return '\\n#ifndef HAS_UNIFORM_u_' + name + '\\n ' + name + ' = a_' + name + ';\\n#else\\n ' + precision + ' ' + type + ' ' + name + ' = u_' + name + ';\\n#endif\\n';\n } else {\n return '\\n#ifndef HAS_UNIFORM_u_' + name + '\\n ' + name + ' = unpack_mix_' + unpackType + '(a_' + name + ', u_' + name + '_t);\\n#else\\n ' + precision + ' ' + type + ' ' + name + ' = u_' + name + ';\\n#endif\\n';\n }\n }\n } else {\n if (operation === 'define') {\n return '\\n#ifndef HAS_UNIFORM_u_' + name + '\\nuniform lowp float u_' + name + '_t;\\nattribute ' + precision + ' ' + attrType + ' a_' + name + ';\\n#else\\nuniform ' + precision + ' ' + type + ' u_' + name + ';\\n#endif\\n';\n } else {\n if (unpackType === 'vec4') {\n return '\\n#ifndef HAS_UNIFORM_u_' + name + '\\n ' + precision + ' ' + type + ' ' + name + ' = a_' + name + ';\\n#else\\n ' + precision + ' ' + type + ' ' + name + ' = u_' + name + ';\\n#endif\\n';\n } else {\n return '\\n#ifndef HAS_UNIFORM_u_' + name + '\\n ' + precision + ' ' + type + ' ' + name + ' = unpack_mix_' + unpackType + '(a_' + name + ', u_' + name + '_t);\\n#else\\n ' + precision + ' ' + type + ' ' + name + ' = u_' + name + ';\\n#endif\\n';\n }\n }\n }\n });\n return {\n fragmentSource: fragmentSource,\n vertexSource: vertexSource\n };\n}\n\nvar shaders = /*#__PURE__*/Object.freeze({\n__proto__: null,\nprelude: prelude,\nbackground: background,\nbackgroundPattern: backgroundPattern,\ncircle: circle,\nclippingMask: clippingMask,\nheatmap: heatmap,\nheatmapTexture: heatmapTexture,\ncollisionBox: collisionBox,\ncollisionCircle: collisionCircle,\ndebug: debug,\nfill: fill,\nfillOutline: fillOutline,\nfillOutlinePattern: fillOutlinePattern,\nfillPattern: fillPattern,\nfillExtrusion: fillExtrusion,\nfillExtrusionPattern: fillExtrusionPattern,\nhillshadePrepare: hillshadePrepare,\nhillshade: hillshade,\nline: line,\nlineGradient: lineGradient,\nlinePattern: linePattern,\nlineSDF: lineSDF,\nraster: raster,\nsymbolIcon: symbolIcon,\nsymbolSDF: symbolSDF,\nsymbolTextAndIcon: symbolTextAndIcon\n});\n\nvar VertexArrayObject = function VertexArrayObject() {\n this.boundProgram = null;\n this.boundLayoutVertexBuffer = null;\n this.boundPaintVertexBuffers = [];\n this.boundIndexBuffer = null;\n this.boundVertexOffset = null;\n this.boundDynamicVertexBuffer = null;\n this.vao = null;\n};\nVertexArrayObject.prototype.bind = function bind(context, program, layoutVertexBuffer, paintVertexBuffers, indexBuffer, vertexOffset, dynamicVertexBuffer, dynamicVertexBuffer2) {\n this.context = context;\n var paintBuffersDiffer = this.boundPaintVertexBuffers.length !== paintVertexBuffers.length;\n for (var i = 0; !paintBuffersDiffer && i < paintVertexBuffers.length; i++) {\n if (this.boundPaintVertexBuffers[i] !== paintVertexBuffers[i]) {\n paintBuffersDiffer = true;\n }\n }\n var isFreshBindRequired = !this.vao || this.boundProgram !== program || this.boundLayoutVertexBuffer !== layoutVertexBuffer || paintBuffersDiffer || this.boundIndexBuffer !== indexBuffer || this.boundVertexOffset !== vertexOffset || this.boundDynamicVertexBuffer !== dynamicVertexBuffer || this.boundDynamicVertexBuffer2 !== dynamicVertexBuffer2;\n if (!context.extVertexArrayObject || isFreshBindRequired) {\n this.freshBind(program, layoutVertexBuffer, paintVertexBuffers, indexBuffer, vertexOffset, dynamicVertexBuffer, dynamicVertexBuffer2);\n } else {\n context.bindVertexArrayOES.set(this.vao);\n if (dynamicVertexBuffer) {\n dynamicVertexBuffer.bind();\n }\n if (indexBuffer && indexBuffer.dynamicDraw) {\n indexBuffer.bind();\n }\n if (dynamicVertexBuffer2) {\n dynamicVertexBuffer2.bind();\n }\n }\n};\nVertexArrayObject.prototype.freshBind = function freshBind(program, layoutVertexBuffer, paintVertexBuffers, indexBuffer, vertexOffset, dynamicVertexBuffer, dynamicVertexBuffer2) {\n var numPrevAttributes;\n var numNextAttributes = program.numAttributes;\n var context = this.context;\n var gl = context.gl;\n if (context.extVertexArrayObject) {\n if (this.vao) {\n this.destroy();\n }\n this.vao = context.extVertexArrayObject.createVertexArrayOES();\n context.bindVertexArrayOES.set(this.vao);\n numPrevAttributes = 0;\n this.boundProgram = program;\n this.boundLayoutVertexBuffer = layoutVertexBuffer;\n this.boundPaintVertexBuffers = paintVertexBuffers;\n this.boundIndexBuffer = indexBuffer;\n this.boundVertexOffset = vertexOffset;\n this.boundDynamicVertexBuffer = dynamicVertexBuffer;\n this.boundDynamicVertexBuffer2 = dynamicVertexBuffer2;\n } else {\n numPrevAttributes = context.currentNumAttributes || 0;\n for (var i = numNextAttributes; i < numPrevAttributes; i++) {\n gl.disableVertexAttribArray(i);\n }\n }\n layoutVertexBuffer.enableAttributes(gl, program);\n for (var i$1 = 0, list = paintVertexBuffers; i$1 < list.length; i$1 += 1) {\n var vertexBuffer = list[i$1];\n vertexBuffer.enableAttributes(gl, program);\n }\n if (dynamicVertexBuffer) {\n dynamicVertexBuffer.enableAttributes(gl, program);\n }\n if (dynamicVertexBuffer2) {\n dynamicVertexBuffer2.enableAttributes(gl, program);\n }\n layoutVertexBuffer.bind();\n layoutVertexBuffer.setVertexAttribPointers(gl, program, vertexOffset);\n for (var i$2 = 0, list$1 = paintVertexBuffers; i$2 < list$1.length; i$2 += 1) {\n var vertexBuffer$1 = list$1[i$2];\n vertexBuffer$1.bind();\n vertexBuffer$1.setVertexAttribPointers(gl, program, vertexOffset);\n }\n if (dynamicVertexBuffer) {\n dynamicVertexBuffer.bind();\n dynamicVertexBuffer.setVertexAttribPointers(gl, program, vertexOffset);\n }\n if (indexBuffer) {\n indexBuffer.bind();\n }\n if (dynamicVertexBuffer2) {\n dynamicVertexBuffer2.bind();\n dynamicVertexBuffer2.setVertexAttribPointers(gl, program, vertexOffset);\n }\n context.currentNumAttributes = numNextAttributes;\n};\nVertexArrayObject.prototype.destroy = function destroy() {\n if (this.vao) {\n this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao);\n this.vao = null;\n }\n};\n\nvar Program$1 = function Program(context, source, configuration, fixedUniforms, showOverdrawInspector) {\n var gl = context.gl;\n this.program = gl.createProgram();\n var defines = configuration ? configuration.defines() : [];\n if (showOverdrawInspector) {\n defines.push('#define OVERDRAW_INSPECTOR;');\n }\n var fragmentSource = defines.concat(prelude.fragmentSource, source.fragmentSource).join('\\n');\n var vertexSource = defines.concat(prelude.vertexSource, source.vertexSource).join('\\n');\n var fragmentShader = gl.createShader(gl.FRAGMENT_SHADER);\n if (gl.isContextLost()) {\n this.failedToCreate = true;\n return;\n }\n gl.shaderSource(fragmentShader, fragmentSource);\n gl.compileShader(fragmentShader);\n gl.attachShader(this.program, fragmentShader);\n var vertexShader = gl.createShader(gl.VERTEX_SHADER);\n if (gl.isContextLost()) {\n this.failedToCreate = true;\n return;\n }\n gl.shaderSource(vertexShader, vertexSource);\n gl.compileShader(vertexShader);\n gl.attachShader(this.program, vertexShader);\n var layoutAttributes = configuration ? configuration.layoutAttributes : [];\n for (var i = 0; i < layoutAttributes.length; i++) {\n gl.bindAttribLocation(this.program, i, layoutAttributes[i].name);\n }\n gl.linkProgram(this.program);\n gl.deleteShader(vertexShader);\n gl.deleteShader(fragmentShader);\n this.numAttributes = gl.getProgramParameter(this.program, gl.ACTIVE_ATTRIBUTES);\n this.attributes = {};\n var uniformLocations = {};\n for (var i$1 = 0; i$1 < this.numAttributes; i$1++) {\n var attribute = gl.getActiveAttrib(this.program, i$1);\n if (attribute) {\n this.attributes[attribute.name] = gl.getAttribLocation(this.program, attribute.name);\n }\n }\n var numUniforms = gl.getProgramParameter(this.program, gl.ACTIVE_UNIFORMS);\n for (var i$2 = 0; i$2 < numUniforms; i$2++) {\n var uniform = gl.getActiveUniform(this.program, i$2);\n if (uniform) {\n uniformLocations[uniform.name] = gl.getUniformLocation(this.program, uniform.name);\n }\n }\n this.fixedUniforms = fixedUniforms(context, uniformLocations);\n this.binderUniforms = configuration ? configuration.getUniforms(context, uniformLocations) : [];\n};\nProgram$1.prototype.draw = function draw(context, drawMode, depthMode, stencilMode, colorMode, cullFaceMode, uniformValues, layerID, layoutVertexBuffer, indexBuffer, segments, currentProperties, zoom, configuration, dynamicLayoutBuffer, dynamicLayoutBuffer2) {\n var obj;\n var gl = context.gl;\n if (this.failedToCreate) {\n return;\n }\n context.program.set(this.program);\n context.setDepthMode(depthMode);\n context.setStencilMode(stencilMode);\n context.setColorMode(colorMode);\n context.setCullFace(cullFaceMode);\n for (var name in this.fixedUniforms) {\n this.fixedUniforms[name].set(uniformValues[name]);\n }\n if (configuration) {\n configuration.setUniforms(context, this.binderUniforms, currentProperties, { zoom: zoom });\n }\n var primitiveSize = (obj = {}, obj[gl.LINES] = 2, obj[gl.TRIANGLES] = 3, obj[gl.LINE_STRIP] = 1, obj)[drawMode];\n for (var i = 0, list = segments.get(); i < list.length; i += 1) {\n var segment = list[i];\n var vaos = segment.vaos || (segment.vaos = {});\n var vao = vaos[layerID] || (vaos[layerID] = new VertexArrayObject());\n vao.bind(context, this, layoutVertexBuffer, configuration ? configuration.getPaintVertexBuffers() : [], indexBuffer, segment.vertexOffset, dynamicLayoutBuffer, dynamicLayoutBuffer2);\n gl.drawElements(drawMode, segment.primitiveLength * primitiveSize, gl.UNSIGNED_SHORT, segment.primitiveOffset * primitiveSize * 2);\n }\n};\n\nfunction patternUniformValues(crossfade, painter, tile) {\n var tileRatio = 1 / pixelsToTileUnits(tile, 1, painter.transform.tileZoom);\n var numTiles = Math.pow(2, tile.tileID.overscaledZ);\n var tileSizeAtNearestZoom = tile.tileSize * Math.pow(2, painter.transform.tileZoom) / numTiles;\n var pixelX = tileSizeAtNearestZoom * (tile.tileID.canonical.x + tile.tileID.wrap * numTiles);\n var pixelY = tileSizeAtNearestZoom * tile.tileID.canonical.y;\n return {\n 'u_image': 0,\n 'u_texsize': tile.imageAtlasTexture.size,\n 'u_scale': [\n tileRatio,\n crossfade.fromScale,\n crossfade.toScale\n ],\n 'u_fade': crossfade.t,\n 'u_pixel_coord_upper': [\n pixelX >> 16,\n pixelY >> 16\n ],\n 'u_pixel_coord_lower': [\n pixelX & 65535,\n pixelY & 65535\n ]\n };\n}\nfunction bgPatternUniformValues(image, crossfade, painter, tile) {\n var imagePosA = painter.imageManager.getPattern(image.from.toString());\n var imagePosB = painter.imageManager.getPattern(image.to.toString());\n var ref = painter.imageManager.getPixelSize();\n var width = ref.width;\n var height = ref.height;\n var numTiles = Math.pow(2, tile.tileID.overscaledZ);\n var tileSizeAtNearestZoom = tile.tileSize * Math.pow(2, painter.transform.tileZoom) / numTiles;\n var pixelX = tileSizeAtNearestZoom * (tile.tileID.canonical.x + tile.tileID.wrap * numTiles);\n var pixelY = tileSizeAtNearestZoom * tile.tileID.canonical.y;\n return {\n 'u_image': 0,\n 'u_pattern_tl_a': imagePosA.tl,\n 'u_pattern_br_a': imagePosA.br,\n 'u_pattern_tl_b': imagePosB.tl,\n 'u_pattern_br_b': imagePosB.br,\n 'u_texsize': [\n width,\n height\n ],\n 'u_mix': crossfade.t,\n 'u_pattern_size_a': imagePosA.displaySize,\n 'u_pattern_size_b': imagePosB.displaySize,\n 'u_scale_a': crossfade.fromScale,\n 'u_scale_b': crossfade.toScale,\n 'u_tile_units_to_pixels': 1 / pixelsToTileUnits(tile, 1, painter.transform.tileZoom),\n 'u_pixel_coord_upper': [\n pixelX >> 16,\n pixelY >> 16\n ],\n 'u_pixel_coord_lower': [\n pixelX & 65535,\n pixelY & 65535\n ]\n };\n}\n\nvar fillExtrusionUniforms = function (context, locations) {\n return {\n 'u_matrix': new performance.UniformMatrix4f(context, locations.u_matrix),\n 'u_lightpos': new performance.Uniform3f(context, locations.u_lightpos),\n 'u_lightintensity': new performance.Uniform1f(context, locations.u_lightintensity),\n 'u_lightcolor': new performance.Uniform3f(context, locations.u_lightcolor),\n 'u_vertical_gradient': new performance.Uniform1f(context, locations.u_vertical_gradient),\n 'u_opacity': new performance.Uniform1f(context, locations.u_opacity)\n };\n};\nvar fillExtrusionPatternUniforms = function (context, locations) {\n return {\n 'u_matrix': new performance.UniformMatrix4f(context, locations.u_matrix),\n 'u_lightpos': new performance.Uniform3f(context, locations.u_lightpos),\n 'u_lightintensity': new performance.Uniform1f(context, locations.u_lightintensity),\n 'u_lightcolor': new performance.Uniform3f(context, locations.u_lightcolor),\n 'u_vertical_gradient': new performance.Uniform1f(context, locations.u_vertical_gradient),\n 'u_height_factor': new performance.Uniform1f(context, locations.u_height_factor),\n 'u_image': new performance.Uniform1i(context, locations.u_image),\n 'u_texsize': new performance.Uniform2f(context, locations.u_texsize),\n 'u_pixel_coord_upper': new performance.Uniform2f(context, locations.u_pixel_coord_upper),\n 'u_pixel_coord_lower': new performance.Uniform2f(context, locations.u_pixel_coord_lower),\n 'u_scale': new performance.Uniform3f(context, locations.u_scale),\n 'u_fade': new performance.Uniform1f(context, locations.u_fade),\n 'u_opacity': new performance.Uniform1f(context, locations.u_opacity)\n };\n};\nvar fillExtrusionUniformValues = function (matrix, painter, shouldUseVerticalGradient, opacity) {\n var light = painter.style.light;\n var _lp = light.properties.get('position');\n var lightPos = [\n _lp.x,\n _lp.y,\n _lp.z\n ];\n var lightMat = performance.create$1();\n if (light.properties.get('anchor') === 'viewport') {\n performance.fromRotation(lightMat, -painter.transform.angle);\n }\n performance.transformMat3(lightPos, lightPos, lightMat);\n var lightColor = light.properties.get('color');\n return {\n 'u_matrix': matrix,\n 'u_lightpos': lightPos,\n 'u_lightintensity': light.properties.get('intensity'),\n 'u_lightcolor': [\n lightColor.r,\n lightColor.g,\n lightColor.b\n ],\n 'u_vertical_gradient': +shouldUseVerticalGradient,\n 'u_opacity': opacity\n };\n};\nvar fillExtrusionPatternUniformValues = function (matrix, painter, shouldUseVerticalGradient, opacity, coord, crossfade, tile) {\n return performance.extend(fillExtrusionUniformValues(matrix, painter, shouldUseVerticalGradient, opacity), patternUniformValues(crossfade, painter, tile), { 'u_height_factor': -Math.pow(2, coord.overscaledZ) / tile.tileSize / 8 });\n};\n\nvar fillUniforms = function (context, locations) {\n return { 'u_matrix': new performance.UniformMatrix4f(context, locations.u_matrix) };\n};\nvar fillPatternUniforms = function (context, locations) {\n return {\n 'u_matrix': new performance.UniformMatrix4f(context, locations.u_matrix),\n 'u_image': new performance.Uniform1i(context, locations.u_image),\n 'u_texsize': new performance.Uniform2f(context, locations.u_texsize),\n 'u_pixel_coord_upper': new performance.Uniform2f(context, locations.u_pixel_coord_upper),\n 'u_pixel_coord_lower': new performance.Uniform2f(context, locations.u_pixel_coord_lower),\n 'u_scale': new performance.Uniform3f(context, locations.u_scale),\n 'u_fade': new performance.Uniform1f(context, locations.u_fade)\n };\n};\nvar fillOutlineUniforms = function (context, locations) {\n return {\n 'u_matrix': new performance.UniformMatrix4f(context, locations.u_matrix),\n 'u_world': new performance.Uniform2f(context, locations.u_world)\n };\n};\nvar fillOutlinePatternUniforms = function (context, locations) {\n return {\n 'u_matrix': new performance.UniformMatrix4f(context, locations.u_matrix),\n 'u_world': new performance.Uniform2f(context, locations.u_world),\n 'u_image': new performance.Uniform1i(context, locations.u_image),\n 'u_texsize': new performance.Uniform2f(context, locations.u_texsize),\n 'u_pixel_coord_upper': new performance.Uniform2f(context, locations.u_pixel_coord_upper),\n 'u_pixel_coord_lower': new performance.Uniform2f(context, locations.u_pixel_coord_lower),\n 'u_scale': new performance.Uniform3f(context, locations.u_scale),\n 'u_fade': new performance.Uniform1f(context, locations.u_fade)\n };\n};\nvar fillUniformValues = function (matrix) {\n return { 'u_matrix': matrix };\n};\nvar fillPatternUniformValues = function (matrix, painter, crossfade, tile) {\n return performance.extend(fillUniformValues(matrix), patternUniformValues(crossfade, painter, tile));\n};\nvar fillOutlineUniformValues = function (matrix, drawingBufferSize) {\n return {\n 'u_matrix': matrix,\n 'u_world': drawingBufferSize\n };\n};\nvar fillOutlinePatternUniformValues = function (matrix, painter, crossfade, tile, drawingBufferSize) {\n return performance.extend(fillPatternUniformValues(matrix, painter, crossfade, tile), { 'u_world': drawingBufferSize });\n};\n\nvar circleUniforms = function (context, locations) {\n return {\n 'u_camera_to_center_distance': new performance.Uniform1f(context, locations.u_camera_to_center_distance),\n 'u_scale_with_map': new performance.Uniform1i(context, locations.u_scale_with_map),\n 'u_pitch_with_map': new performance.Uniform1i(context, locations.u_pitch_with_map),\n 'u_extrude_scale': new performance.Uniform2f(context, locations.u_extrude_scale),\n 'u_device_pixel_ratio': new performance.Uniform1f(context, locations.u_device_pixel_ratio),\n 'u_matrix': new performance.UniformMatrix4f(context, locations.u_matrix)\n };\n};\nvar circleUniformValues = function (painter, coord, tile, layer) {\n var transform = painter.transform;\n var pitchWithMap, extrudeScale;\n if (layer.paint.get('circle-pitch-alignment') === 'map') {\n var pixelRatio = pixelsToTileUnits(tile, 1, transform.zoom);\n pitchWithMap = true;\n extrudeScale = [\n pixelRatio,\n pixelRatio\n ];\n } else {\n pitchWithMap = false;\n extrudeScale = transform.pixelsToGLUnits;\n }\n return {\n 'u_camera_to_center_distance': transform.cameraToCenterDistance,\n 'u_scale_with_map': +(layer.paint.get('circle-pitch-scale') === 'map'),\n 'u_matrix': painter.translatePosMatrix(coord.posMatrix, tile, layer.paint.get('circle-translate'), layer.paint.get('circle-translate-anchor')),\n 'u_pitch_with_map': +pitchWithMap,\n 'u_device_pixel_ratio': performance.browser.devicePixelRatio,\n 'u_extrude_scale': extrudeScale\n };\n};\n\nvar collisionUniforms = function (context, locations) {\n return {\n 'u_matrix': new performance.UniformMatrix4f(context, locations.u_matrix),\n 'u_camera_to_center_distance': new performance.Uniform1f(context, locations.u_camera_to_center_distance),\n 'u_pixels_to_tile_units': new performance.Uniform1f(context, locations.u_pixels_to_tile_units),\n 'u_extrude_scale': new performance.Uniform2f(context, locations.u_extrude_scale),\n 'u_overscale_factor': new performance.Uniform1f(context, locations.u_overscale_factor)\n };\n};\nvar collisionCircleUniforms = function (context, locations) {\n return {\n 'u_matrix': new performance.UniformMatrix4f(context, locations.u_matrix),\n 'u_inv_matrix': new performance.UniformMatrix4f(context, locations.u_inv_matrix),\n 'u_camera_to_center_distance': new performance.Uniform1f(context, locations.u_camera_to_center_distance),\n 'u_viewport_size': new performance.Uniform2f(context, locations.u_viewport_size)\n };\n};\nvar collisionUniformValues = function (matrix, transform, tile) {\n var pixelRatio = pixelsToTileUnits(tile, 1, transform.zoom);\n var scale = Math.pow(2, transform.zoom - tile.tileID.overscaledZ);\n var overscaleFactor = tile.tileID.overscaleFactor();\n return {\n 'u_matrix': matrix,\n 'u_camera_to_center_distance': transform.cameraToCenterDistance,\n 'u_pixels_to_tile_units': pixelRatio,\n 'u_extrude_scale': [\n transform.pixelsToGLUnits[0] / (pixelRatio * scale),\n transform.pixelsToGLUnits[1] / (pixelRatio * scale)\n ],\n 'u_overscale_factor': overscaleFactor\n };\n};\nvar collisionCircleUniformValues = function (matrix, invMatrix, transform) {\n return {\n 'u_matrix': matrix,\n 'u_inv_matrix': invMatrix,\n 'u_camera_to_center_distance': transform.cameraToCenterDistance,\n 'u_viewport_size': [\n transform.width,\n transform.height\n ]\n };\n};\n\nvar debugUniforms = function (context, locations) {\n return {\n 'u_color': new performance.UniformColor(context, locations.u_color),\n 'u_matrix': new performance.UniformMatrix4f(context, locations.u_matrix),\n 'u_overlay': new performance.Uniform1i(context, locations.u_overlay),\n 'u_overlay_scale': new performance.Uniform1f(context, locations.u_overlay_scale)\n };\n};\nvar debugUniformValues = function (matrix, color, scaleRatio) {\n if (scaleRatio === void 0)\n scaleRatio = 1;\n return {\n 'u_matrix': matrix,\n 'u_color': color,\n 'u_overlay': 0,\n 'u_overlay_scale': scaleRatio\n };\n};\n\nvar clippingMaskUniforms = function (context, locations) {\n return { 'u_matrix': new performance.UniformMatrix4f(context, locations.u_matrix) };\n};\nvar clippingMaskUniformValues = function (matrix) {\n return { 'u_matrix': matrix };\n};\n\nvar heatmapUniforms = function (context, locations) {\n return {\n 'u_extrude_scale': new performance.Uniform1f(context, locations.u_extrude_scale),\n 'u_intensity': new performance.Uniform1f(context, locations.u_intensity),\n 'u_matrix': new performance.UniformMatrix4f(context, locations.u_matrix)\n };\n};\nvar heatmapTextureUniforms = function (context, locations) {\n return {\n 'u_matrix': new performance.UniformMatrix4f(context, locations.u_matrix),\n 'u_world': new performance.Uniform2f(context, locations.u_world),\n 'u_image': new performance.Uniform1i(context, locations.u_image),\n 'u_color_ramp': new performance.Uniform1i(context, locations.u_color_ramp),\n 'u_opacity': new performance.Uniform1f(context, locations.u_opacity)\n };\n};\nvar heatmapUniformValues = function (matrix, tile, zoom, intensity) {\n return {\n 'u_matrix': matrix,\n 'u_extrude_scale': pixelsToTileUnits(tile, 1, zoom),\n 'u_intensity': intensity\n };\n};\nvar heatmapTextureUniformValues = function (painter, layer, textureUnit, colorRampUnit) {\n var matrix = performance.create();\n performance.ortho(matrix, 0, painter.width, painter.height, 0, 0, 1);\n var gl = painter.context.gl;\n return {\n 'u_matrix': matrix,\n 'u_world': [\n gl.drawingBufferWidth,\n gl.drawingBufferHeight\n ],\n 'u_image': textureUnit,\n 'u_color_ramp': colorRampUnit,\n 'u_opacity': layer.paint.get('heatmap-opacity')\n };\n};\n\nvar hillshadeUniforms = function (context, locations) {\n return {\n 'u_matrix': new performance.UniformMatrix4f(context, locations.u_matrix),\n 'u_image': new performance.Uniform1i(context, locations.u_image),\n 'u_latrange': new performance.Uniform2f(context, locations.u_latrange),\n 'u_light': new performance.Uniform2f(context, locations.u_light),\n 'u_shadow': new performance.UniformColor(context, locations.u_shadow),\n 'u_highlight': new performance.UniformColor(context, locations.u_highlight),\n 'u_accent': new performance.UniformColor(context, locations.u_accent)\n };\n};\nvar hillshadePrepareUniforms = function (context, locations) {\n return {\n 'u_matrix': new performance.UniformMatrix4f(context, locations.u_matrix),\n 'u_image': new performance.Uniform1i(context, locations.u_image),\n 'u_dimension': new performance.Uniform2f(context, locations.u_dimension),\n 'u_zoom': new performance.Uniform1f(context, locations.u_zoom),\n 'u_maxzoom': new performance.Uniform1f(context, locations.u_maxzoom),\n 'u_unpack': new performance.Uniform4f(context, locations.u_unpack)\n };\n};\nvar hillshadeUniformValues = function (painter, tile, layer) {\n var shadow = layer.paint.get('hillshade-shadow-color');\n var highlight = layer.paint.get('hillshade-highlight-color');\n var accent = layer.paint.get('hillshade-accent-color');\n var azimuthal = layer.paint.get('hillshade-illumination-direction') * (Math.PI / 180);\n if (layer.paint.get('hillshade-illumination-anchor') === 'viewport') {\n azimuthal -= painter.transform.angle;\n }\n var align = !painter.options.moving;\n return {\n 'u_matrix': painter.transform.calculatePosMatrix(tile.tileID.toUnwrapped(), align),\n 'u_image': 0,\n 'u_latrange': getTileLatRange(painter, tile.tileID),\n 'u_light': [\n layer.paint.get('hillshade-exaggeration'),\n azimuthal\n ],\n 'u_shadow': shadow,\n 'u_highlight': highlight,\n 'u_accent': accent\n };\n};\nvar hillshadeUniformPrepareValues = function (tileID, dem, maxzoom) {\n var stride = dem.stride;\n var matrix = performance.create();\n performance.ortho(matrix, 0, performance.EXTENT, -performance.EXTENT, 0, 0, 1);\n performance.translate(matrix, matrix, [\n 0,\n -performance.EXTENT,\n 0\n ]);\n return {\n 'u_matrix': matrix,\n 'u_image': 1,\n 'u_dimension': [\n stride,\n stride\n ],\n 'u_zoom': tileID.overscaledZ,\n 'u_maxzoom': maxzoom,\n 'u_unpack': dem.getUnpackVector()\n };\n};\nfunction getTileLatRange(painter, tileID) {\n var tilesAtZoom = Math.pow(2, tileID.canonical.z);\n var y = tileID.canonical.y;\n return [\n new performance.MercatorCoordinate(0, y / tilesAtZoom).toLngLat().lat,\n new performance.MercatorCoordinate(0, (y + 1) / tilesAtZoom).toLngLat().lat\n ];\n}\n\nvar lineUniforms = function (context, locations) {\n return {\n 'u_matrix': new performance.UniformMatrix4f(context, locations.u_matrix),\n 'u_ratio': new performance.Uniform1f(context, locations.u_ratio),\n 'u_device_pixel_ratio': new performance.Uniform1f(context, locations.u_device_pixel_ratio),\n 'u_units_to_pixels': new performance.Uniform2f(context, locations.u_units_to_pixels)\n };\n};\nvar lineGradientUniforms = function (context, locations) {\n return {\n 'u_matrix': new performance.UniformMatrix4f(context, locations.u_matrix),\n 'u_ratio': new performance.Uniform1f(context, locations.u_ratio),\n 'u_device_pixel_ratio': new performance.Uniform1f(context, locations.u_device_pixel_ratio),\n 'u_units_to_pixels': new performance.Uniform2f(context, locations.u_units_to_pixels),\n 'u_image': new performance.Uniform1i(context, locations.u_image)\n };\n};\nvar linePatternUniforms = function (context, locations) {\n return {\n 'u_matrix': new performance.UniformMatrix4f(context, locations.u_matrix),\n 'u_texsize': new performance.Uniform2f(context, locations.u_texsize),\n 'u_ratio': new performance.Uniform1f(context, locations.u_ratio),\n 'u_device_pixel_ratio': new performance.Uniform1f(context, locations.u_device_pixel_ratio),\n 'u_image': new performance.Uniform1i(context, locations.u_image),\n 'u_units_to_pixels': new performance.Uniform2f(context, locations.u_units_to_pixels),\n 'u_scale': new performance.Uniform3f(context, locations.u_scale),\n 'u_fade': new performance.Uniform1f(context, locations.u_fade)\n };\n};\nvar lineSDFUniforms = function (context, locations) {\n return {\n 'u_matrix': new performance.UniformMatrix4f(context, locations.u_matrix),\n 'u_ratio': new performance.Uniform1f(context, locations.u_ratio),\n 'u_device_pixel_ratio': new performance.Uniform1f(context, locations.u_device_pixel_ratio),\n 'u_units_to_pixels': new performance.Uniform2f(context, locations.u_units_to_pixels),\n 'u_patternscale_a': new performance.Uniform2f(context, locations.u_patternscale_a),\n 'u_patternscale_b': new performance.Uniform2f(context, locations.u_patternscale_b),\n 'u_sdfgamma': new performance.Uniform1f(context, locations.u_sdfgamma),\n 'u_image': new performance.Uniform1i(context, locations.u_image),\n 'u_tex_y_a': new performance.Uniform1f(context, locations.u_tex_y_a),\n 'u_tex_y_b': new performance.Uniform1f(context, locations.u_tex_y_b),\n 'u_mix': new performance.Uniform1f(context, locations.u_mix)\n };\n};\nvar lineUniformValues = function (painter, tile, layer) {\n var transform = painter.transform;\n return {\n 'u_matrix': calculateMatrix(painter, tile, layer),\n 'u_ratio': 1 / pixelsToTileUnits(tile, 1, transform.zoom),\n 'u_device_pixel_ratio': performance.browser.devicePixelRatio,\n 'u_units_to_pixels': [\n 1 / transform.pixelsToGLUnits[0],\n 1 / transform.pixelsToGLUnits[1]\n ]\n };\n};\nvar lineGradientUniformValues = function (painter, tile, layer) {\n return performance.extend(lineUniformValues(painter, tile, layer), { 'u_image': 0 });\n};\nvar linePatternUniformValues = function (painter, tile, layer, crossfade) {\n var transform = painter.transform;\n var tileZoomRatio = calculateTileRatio(tile, transform);\n return {\n 'u_matrix': calculateMatrix(painter, tile, layer),\n 'u_texsize': tile.imageAtlasTexture.size,\n 'u_ratio': 1 / pixelsToTileUnits(tile, 1, transform.zoom),\n 'u_device_pixel_ratio': performance.browser.devicePixelRatio,\n 'u_image': 0,\n 'u_scale': [\n tileZoomRatio,\n crossfade.fromScale,\n crossfade.toScale\n ],\n 'u_fade': crossfade.t,\n 'u_units_to_pixels': [\n 1 / transform.pixelsToGLUnits[0],\n 1 / transform.pixelsToGLUnits[1]\n ]\n };\n};\nvar lineSDFUniformValues = function (painter, tile, layer, dasharray, crossfade) {\n var transform = painter.transform;\n var lineAtlas = painter.lineAtlas;\n var tileRatio = calculateTileRatio(tile, transform);\n var round = layer.layout.get('line-cap') === 'round';\n var posA = lineAtlas.getDash(dasharray.from, round);\n var posB = lineAtlas.getDash(dasharray.to, round);\n var widthA = posA.width * crossfade.fromScale;\n var widthB = posB.width * crossfade.toScale;\n return performance.extend(lineUniformValues(painter, tile, layer), {\n 'u_patternscale_a': [\n tileRatio / widthA,\n -posA.height / 2\n ],\n 'u_patternscale_b': [\n tileRatio / widthB,\n -posB.height / 2\n ],\n 'u_sdfgamma': lineAtlas.width / (Math.min(widthA, widthB) * 256 * performance.browser.devicePixelRatio) / 2,\n 'u_image': 0,\n 'u_tex_y_a': posA.y,\n 'u_tex_y_b': posB.y,\n 'u_mix': crossfade.t\n });\n};\nfunction calculateTileRatio(tile, transform) {\n return 1 / pixelsToTileUnits(tile, 1, transform.tileZoom);\n}\nfunction calculateMatrix(painter, tile, layer) {\n return painter.translatePosMatrix(tile.tileID.posMatrix, tile, layer.paint.get('line-translate'), layer.paint.get('line-translate-anchor'));\n}\n\nvar rasterUniforms = function (context, locations) {\n return {\n 'u_matrix': new performance.UniformMatrix4f(context, locations.u_matrix),\n 'u_tl_parent': new performance.Uniform2f(context, locations.u_tl_parent),\n 'u_scale_parent': new performance.Uniform1f(context, locations.u_scale_parent),\n 'u_buffer_scale': new performance.Uniform1f(context, locations.u_buffer_scale),\n 'u_fade_t': new performance.Uniform1f(context, locations.u_fade_t),\n 'u_opacity': new performance.Uniform1f(context, locations.u_opacity),\n 'u_image0': new performance.Uniform1i(context, locations.u_image0),\n 'u_image1': new performance.Uniform1i(context, locations.u_image1),\n 'u_brightness_low': new performance.Uniform1f(context, locations.u_brightness_low),\n 'u_brightness_high': new performance.Uniform1f(context, locations.u_brightness_high),\n 'u_saturation_factor': new performance.Uniform1f(context, locations.u_saturation_factor),\n 'u_contrast_factor': new performance.Uniform1f(context, locations.u_contrast_factor),\n 'u_spin_weights': new performance.Uniform3f(context, locations.u_spin_weights)\n };\n};\nvar rasterUniformValues = function (matrix, parentTL, parentScaleBy, fade, layer) {\n return {\n 'u_matrix': matrix,\n 'u_tl_parent': parentTL,\n 'u_scale_parent': parentScaleBy,\n 'u_buffer_scale': 1,\n 'u_fade_t': fade.mix,\n 'u_opacity': fade.opacity * layer.paint.get('raster-opacity'),\n 'u_image0': 0,\n 'u_image1': 1,\n 'u_brightness_low': layer.paint.get('raster-brightness-min'),\n 'u_brightness_high': layer.paint.get('raster-brightness-max'),\n 'u_saturation_factor': saturationFactor(layer.paint.get('raster-saturation')),\n 'u_contrast_factor': contrastFactor(layer.paint.get('raster-contrast')),\n 'u_spin_weights': spinWeights(layer.paint.get('raster-hue-rotate'))\n };\n};\nfunction spinWeights(angle) {\n angle *= Math.PI / 180;\n var s = Math.sin(angle);\n var c = Math.cos(angle);\n return [\n (2 * c + 1) / 3,\n (-Math.sqrt(3) * s - c + 1) / 3,\n (Math.sqrt(3) * s - c + 1) / 3\n ];\n}\nfunction contrastFactor(contrast) {\n return contrast > 0 ? 1 / (1 - contrast) : 1 + contrast;\n}\nfunction saturationFactor(saturation) {\n return saturation > 0 ? 1 - 1 / (1.001 - saturation) : -saturation;\n}\n\nvar symbolIconUniforms = function (context, locations) {\n return {\n 'u_is_size_zoom_constant': new performance.Uniform1i(context, locations.u_is_size_zoom_constant),\n 'u_is_size_feature_constant': new performance.Uniform1i(context, locations.u_is_size_feature_constant),\n 'u_size_t': new performance.Uniform1f(context, locations.u_size_t),\n 'u_size': new performance.Uniform1f(context, locations.u_size),\n 'u_camera_to_center_distance': new performance.Uniform1f(context, locations.u_camera_to_center_distance),\n 'u_pitch': new performance.Uniform1f(context, locations.u_pitch),\n 'u_rotate_symbol': new performance.Uniform1i(context, locations.u_rotate_symbol),\n 'u_aspect_ratio': new performance.Uniform1f(context, locations.u_aspect_ratio),\n 'u_fade_change': new performance.Uniform1f(context, locations.u_fade_change),\n 'u_matrix': new performance.UniformMatrix4f(context, locations.u_matrix),\n 'u_label_plane_matrix': new performance.UniformMatrix4f(context, locations.u_label_plane_matrix),\n 'u_coord_matrix': new performance.UniformMatrix4f(context, locations.u_coord_matrix),\n 'u_is_text': new performance.Uniform1i(context, locations.u_is_text),\n 'u_pitch_with_map': new performance.Uniform1i(context, locations.u_pitch_with_map),\n 'u_texsize': new performance.Uniform2f(context, locations.u_texsize),\n 'u_texture': new performance.Uniform1i(context, locations.u_texture)\n };\n};\nvar symbolSDFUniforms = function (context, locations) {\n return {\n 'u_is_size_zoom_constant': new performance.Uniform1i(context, locations.u_is_size_zoom_constant),\n 'u_is_size_feature_constant': new performance.Uniform1i(context, locations.u_is_size_feature_constant),\n 'u_size_t': new performance.Uniform1f(context, locations.u_size_t),\n 'u_size': new performance.Uniform1f(context, locations.u_size),\n 'u_camera_to_center_distance': new performance.Uniform1f(context, locations.u_camera_to_center_distance),\n 'u_pitch': new performance.Uniform1f(context, locations.u_pitch),\n 'u_rotate_symbol': new performance.Uniform1i(context, locations.u_rotate_symbol),\n 'u_aspect_ratio': new performance.Uniform1f(context, locations.u_aspect_ratio),\n 'u_fade_change': new performance.Uniform1f(context, locations.u_fade_change),\n 'u_matrix': new performance.UniformMatrix4f(context, locations.u_matrix),\n 'u_label_plane_matrix': new performance.UniformMatrix4f(context, locations.u_label_plane_matrix),\n 'u_coord_matrix': new performance.UniformMatrix4f(context, locations.u_coord_matrix),\n 'u_is_text': new performance.Uniform1i(context, locations.u_is_text),\n 'u_pitch_with_map': new performance.Uniform1i(context, locations.u_pitch_with_map),\n 'u_texsize': new performance.Uniform2f(context, locations.u_texsize),\n 'u_texture': new performance.Uniform1i(context, locations.u_texture),\n 'u_gamma_scale': new performance.Uniform1f(context, locations.u_gamma_scale),\n 'u_device_pixel_ratio': new performance.Uniform1f(context, locations.u_device_pixel_ratio),\n 'u_is_halo': new performance.Uniform1i(context, locations.u_is_halo)\n };\n};\nvar symbolTextAndIconUniforms = function (context, locations) {\n return {\n 'u_is_size_zoom_constant': new performance.Uniform1i(context, locations.u_is_size_zoom_constant),\n 'u_is_size_feature_constant': new performance.Uniform1i(context, locations.u_is_size_feature_constant),\n 'u_size_t': new performance.Uniform1f(context, locations.u_size_t),\n 'u_size': new performance.Uniform1f(context, locations.u_size),\n 'u_camera_to_center_distance': new performance.Uniform1f(context, locations.u_camera_to_center_distance),\n 'u_pitch': new performance.Uniform1f(context, locations.u_pitch),\n 'u_rotate_symbol': new performance.Uniform1i(context, locations.u_rotate_symbol),\n 'u_aspect_ratio': new performance.Uniform1f(context, locations.u_aspect_ratio),\n 'u_fade_change': new performance.Uniform1f(context, locations.u_fade_change),\n 'u_matrix': new performance.UniformMatrix4f(context, locations.u_matrix),\n 'u_label_plane_matrix': new performance.UniformMatrix4f(context, locations.u_label_plane_matrix),\n 'u_coord_matrix': new performance.UniformMatrix4f(context, locations.u_coord_matrix),\n 'u_is_text': new performance.Uniform1i(context, locations.u_is_text),\n 'u_pitch_with_map': new performance.Uniform1i(context, locations.u_pitch_with_map),\n 'u_texsize': new performance.Uniform2f(context, locations.u_texsize),\n 'u_texsize_icon': new performance.Uniform2f(context, locations.u_texsize_icon),\n 'u_texture': new performance.Uniform1i(context, locations.u_texture),\n 'u_texture_icon': new performance.Uniform1i(context, locations.u_texture_icon),\n 'u_gamma_scale': new performance.Uniform1f(context, locations.u_gamma_scale),\n 'u_device_pixel_ratio': new performance.Uniform1f(context, locations.u_device_pixel_ratio),\n 'u_is_halo': new performance.Uniform1i(context, locations.u_is_halo)\n };\n};\nvar symbolIconUniformValues = function (functionType, size, rotateInShader, pitchWithMap, painter, matrix, labelPlaneMatrix, glCoordMatrix, isText, texSize) {\n var transform = painter.transform;\n return {\n 'u_is_size_zoom_constant': +(functionType === 'constant' || functionType === 'source'),\n 'u_is_size_feature_constant': +(functionType === 'constant' || functionType === 'camera'),\n 'u_size_t': size ? size.uSizeT : 0,\n 'u_size': size ? size.uSize : 0,\n 'u_camera_to_center_distance': transform.cameraToCenterDistance,\n 'u_pitch': transform.pitch / 360 * 2 * Math.PI,\n 'u_rotate_symbol': +rotateInShader,\n 'u_aspect_ratio': transform.width / transform.height,\n 'u_fade_change': painter.options.fadeDuration ? painter.symbolFadeChange : 1,\n 'u_matrix': matrix,\n 'u_label_plane_matrix': labelPlaneMatrix,\n 'u_coord_matrix': glCoordMatrix,\n 'u_is_text': +isText,\n 'u_pitch_with_map': +pitchWithMap,\n 'u_texsize': texSize,\n 'u_texture': 0\n };\n};\nvar symbolSDFUniformValues = function (functionType, size, rotateInShader, pitchWithMap, painter, matrix, labelPlaneMatrix, glCoordMatrix, isText, texSize, isHalo) {\n var transform = painter.transform;\n return performance.extend(symbolIconUniformValues(functionType, size, rotateInShader, pitchWithMap, painter, matrix, labelPlaneMatrix, glCoordMatrix, isText, texSize), {\n 'u_gamma_scale': pitchWithMap ? Math.cos(transform._pitch) * transform.cameraToCenterDistance : 1,\n 'u_device_pixel_ratio': performance.browser.devicePixelRatio,\n 'u_is_halo': +isHalo\n });\n};\nvar symbolTextAndIconUniformValues = function (functionType, size, rotateInShader, pitchWithMap, painter, matrix, labelPlaneMatrix, glCoordMatrix, texSizeSDF, texSizeIcon) {\n return performance.extend(symbolSDFUniformValues(functionType, size, rotateInShader, pitchWithMap, painter, matrix, labelPlaneMatrix, glCoordMatrix, true, texSizeSDF, true), {\n 'u_texsize_icon': texSizeIcon,\n 'u_texture_icon': 1\n });\n};\n\nvar backgroundUniforms = function (context, locations) {\n return {\n 'u_matrix': new performance.UniformMatrix4f(context, locations.u_matrix),\n 'u_opacity': new performance.Uniform1f(context, locations.u_opacity),\n 'u_color': new performance.UniformColor(context, locations.u_color)\n };\n};\nvar backgroundPatternUniforms = function (context, locations) {\n return {\n 'u_matrix': new performance.UniformMatrix4f(context, locations.u_matrix),\n 'u_opacity': new performance.Uniform1f(context, locations.u_opacity),\n 'u_image': new performance.Uniform1i(context, locations.u_image),\n 'u_pattern_tl_a': new performance.Uniform2f(context, locations.u_pattern_tl_a),\n 'u_pattern_br_a': new performance.Uniform2f(context, locations.u_pattern_br_a),\n 'u_pattern_tl_b': new performance.Uniform2f(context, locations.u_pattern_tl_b),\n 'u_pattern_br_b': new performance.Uniform2f(context, locations.u_pattern_br_b),\n 'u_texsize': new performance.Uniform2f(context, locations.u_texsize),\n 'u_mix': new performance.Uniform1f(context, locations.u_mix),\n 'u_pattern_size_a': new performance.Uniform2f(context, locations.u_pattern_size_a),\n 'u_pattern_size_b': new performance.Uniform2f(context, locations.u_pattern_size_b),\n 'u_scale_a': new performance.Uniform1f(context, locations.u_scale_a),\n 'u_scale_b': new performance.Uniform1f(context, locations.u_scale_b),\n 'u_pixel_coord_upper': new performance.Uniform2f(context, locations.u_pixel_coord_upper),\n 'u_pixel_coord_lower': new performance.Uniform2f(context, locations.u_pixel_coord_lower),\n 'u_tile_units_to_pixels': new performance.Uniform1f(context, locations.u_tile_units_to_pixels)\n };\n};\nvar backgroundUniformValues = function (matrix, opacity, color) {\n return {\n 'u_matrix': matrix,\n 'u_opacity': opacity,\n 'u_color': color\n };\n};\nvar backgroundPatternUniformValues = function (matrix, opacity, painter, image, tile, crossfade) {\n return performance.extend(bgPatternUniformValues(image, crossfade, painter, tile), {\n 'u_matrix': matrix,\n 'u_opacity': opacity\n });\n};\n\nvar programUniforms = {\n fillExtrusion: fillExtrusionUniforms,\n fillExtrusionPattern: fillExtrusionPatternUniforms,\n fill: fillUniforms,\n fillPattern: fillPatternUniforms,\n fillOutline: fillOutlineUniforms,\n fillOutlinePattern: fillOutlinePatternUniforms,\n circle: circleUniforms,\n collisionBox: collisionUniforms,\n collisionCircle: collisionCircleUniforms,\n debug: debugUniforms,\n clippingMask: clippingMaskUniforms,\n heatmap: heatmapUniforms,\n heatmapTexture: heatmapTextureUniforms,\n hillshade: hillshadeUniforms,\n hillshadePrepare: hillshadePrepareUniforms,\n line: lineUniforms,\n lineGradient: lineGradientUniforms,\n linePattern: linePatternUniforms,\n lineSDF: lineSDFUniforms,\n raster: rasterUniforms,\n symbolIcon: symbolIconUniforms,\n symbolSDF: symbolSDFUniforms,\n symbolTextAndIcon: symbolTextAndIconUniforms,\n background: backgroundUniforms,\n backgroundPattern: backgroundPatternUniforms\n};\n\nvar quadTriangles;\nfunction drawCollisionDebug(painter, sourceCache, layer, coords, translate, translateAnchor, isText) {\n var context = painter.context;\n var gl = context.gl;\n var program = painter.useProgram('collisionBox');\n var tileBatches = [];\n var circleCount = 0;\n var circleOffset = 0;\n for (var i = 0; i < coords.length; i++) {\n var coord = coords[i];\n var tile = sourceCache.getTile(coord);\n var bucket = tile.getBucket(layer);\n if (!bucket) {\n continue;\n }\n var posMatrix = coord.posMatrix;\n if (translate[0] !== 0 || translate[1] !== 0) {\n posMatrix = painter.translatePosMatrix(coord.posMatrix, tile, translate, translateAnchor);\n }\n var buffers = isText ? bucket.textCollisionBox : bucket.iconCollisionBox;\n var circleArray = bucket.collisionCircleArray;\n if (circleArray.length > 0) {\n var invTransform = performance.create();\n var transform = posMatrix;\n performance.mul(invTransform, bucket.placementInvProjMatrix, painter.transform.glCoordMatrix);\n performance.mul(invTransform, invTransform, bucket.placementViewportMatrix);\n tileBatches.push({\n circleArray: circleArray,\n circleOffset: circleOffset,\n transform: transform,\n invTransform: invTransform\n });\n circleCount += circleArray.length / 4;\n circleOffset = circleCount;\n }\n if (!buffers) {\n continue;\n }\n program.draw(context, gl.LINES, DepthMode.disabled, StencilMode.disabled, painter.colorModeForRenderPass(), CullFaceMode.disabled, collisionUniformValues(posMatrix, painter.transform, tile), layer.id, buffers.layoutVertexBuffer, buffers.indexBuffer, buffers.segments, null, painter.transform.zoom, null, null, buffers.collisionVertexBuffer);\n }\n if (!isText || !tileBatches.length) {\n return;\n }\n var circleProgram = painter.useProgram('collisionCircle');\n var vertexData = new performance.StructArrayLayout2f1f2i16();\n vertexData.resize(circleCount * 4);\n vertexData._trim();\n var vertexOffset = 0;\n for (var i$2 = 0, list = tileBatches; i$2 < list.length; i$2 += 1) {\n var batch = list[i$2];\n for (var i$1 = 0; i$1 < batch.circleArray.length / 4; i$1++) {\n var circleIdx = i$1 * 4;\n var x = batch.circleArray[circleIdx + 0];\n var y = batch.circleArray[circleIdx + 1];\n var radius = batch.circleArray[circleIdx + 2];\n var collision = batch.circleArray[circleIdx + 3];\n vertexData.emplace(vertexOffset++, x, y, radius, collision, 0);\n vertexData.emplace(vertexOffset++, x, y, radius, collision, 1);\n vertexData.emplace(vertexOffset++, x, y, radius, collision, 2);\n vertexData.emplace(vertexOffset++, x, y, radius, collision, 3);\n }\n }\n if (!quadTriangles || quadTriangles.length < circleCount * 2) {\n quadTriangles = createQuadTriangles(circleCount);\n }\n var indexBuffer = context.createIndexBuffer(quadTriangles, true);\n var vertexBuffer = context.createVertexBuffer(vertexData, performance.collisionCircleLayout.members, true);\n for (var i$3 = 0, list$1 = tileBatches; i$3 < list$1.length; i$3 += 1) {\n var batch$1 = list$1[i$3];\n var uniforms = collisionCircleUniformValues(batch$1.transform, batch$1.invTransform, painter.transform);\n circleProgram.draw(context, gl.TRIANGLES, DepthMode.disabled, StencilMode.disabled, painter.colorModeForRenderPass(), CullFaceMode.disabled, uniforms, layer.id, vertexBuffer, indexBuffer, performance.SegmentVector.simpleSegment(0, batch$1.circleOffset * 2, batch$1.circleArray.length, batch$1.circleArray.length / 2), null, painter.transform.zoom, null, null, null);\n }\n vertexBuffer.destroy();\n indexBuffer.destroy();\n}\nfunction createQuadTriangles(quadCount) {\n var triCount = quadCount * 2;\n var array = new performance.StructArrayLayout3ui6();\n array.resize(triCount);\n array._trim();\n for (var i = 0; i < triCount; i++) {\n var idx = i * 6;\n array.uint16[idx + 0] = i * 4 + 0;\n array.uint16[idx + 1] = i * 4 + 1;\n array.uint16[idx + 2] = i * 4 + 2;\n array.uint16[idx + 3] = i * 4 + 2;\n array.uint16[idx + 4] = i * 4 + 3;\n array.uint16[idx + 5] = i * 4 + 0;\n }\n return array;\n}\n\nvar identityMat4 = performance.identity(new Float32Array(16));\nfunction drawSymbols(painter, sourceCache, layer, coords, variableOffsets) {\n if (painter.renderPass !== 'translucent') {\n return;\n }\n var stencilMode = StencilMode.disabled;\n var colorMode = painter.colorModeForRenderPass();\n var variablePlacement = layer.layout.get('text-variable-anchor');\n if (variablePlacement) {\n updateVariableAnchors(coords, painter, layer, sourceCache, layer.layout.get('text-rotation-alignment'), layer.layout.get('text-pitch-alignment'), variableOffsets);\n }\n if (layer.paint.get('icon-opacity').constantOr(1) !== 0) {\n drawLayerSymbols(painter, sourceCache, layer, coords, false, layer.paint.get('icon-translate'), layer.paint.get('icon-translate-anchor'), layer.layout.get('icon-rotation-alignment'), layer.layout.get('icon-pitch-alignment'), layer.layout.get('icon-keep-upright'), stencilMode, colorMode);\n }\n if (layer.paint.get('text-opacity').constantOr(1) !== 0) {\n drawLayerSymbols(painter, sourceCache, layer, coords, true, layer.paint.get('text-translate'), layer.paint.get('text-translate-anchor'), layer.layout.get('text-rotation-alignment'), layer.layout.get('text-pitch-alignment'), layer.layout.get('text-keep-upright'), stencilMode, colorMode);\n }\n if (sourceCache.map.showCollisionBoxes) {\n drawCollisionDebug(painter, sourceCache, layer, coords, layer.paint.get('text-translate'), layer.paint.get('text-translate-anchor'), true);\n drawCollisionDebug(painter, sourceCache, layer, coords, layer.paint.get('icon-translate'), layer.paint.get('icon-translate-anchor'), false);\n }\n}\nfunction calculateVariableRenderShift(anchor, width, height, textOffset, textBoxScale, renderTextSize) {\n var ref = performance.getAnchorAlignment(anchor);\n var horizontalAlign = ref.horizontalAlign;\n var verticalAlign = ref.verticalAlign;\n var shiftX = -(horizontalAlign - 0.5) * width;\n var shiftY = -(verticalAlign - 0.5) * height;\n var variableOffset = performance.evaluateVariableOffset(anchor, textOffset);\n return new performance.Point((shiftX / textBoxScale + variableOffset[0]) * renderTextSize, (shiftY / textBoxScale + variableOffset[1]) * renderTextSize);\n}\nfunction updateVariableAnchors(coords, painter, layer, sourceCache, rotationAlignment, pitchAlignment, variableOffsets) {\n var tr = painter.transform;\n var rotateWithMap = rotationAlignment === 'map';\n var pitchWithMap = pitchAlignment === 'map';\n for (var i = 0, list = coords; i < list.length; i += 1) {\n var coord = list[i];\n var tile = sourceCache.getTile(coord);\n var bucket = tile.getBucket(layer);\n if (!bucket || !bucket.text || !bucket.text.segments.get().length) {\n continue;\n }\n var sizeData = bucket.textSizeData;\n var size = performance.evaluateSizeForZoom(sizeData, tr.zoom);\n var pixelToTileScale = pixelsToTileUnits(tile, 1, painter.transform.zoom);\n var labelPlaneMatrix = getLabelPlaneMatrix(coord.posMatrix, pitchWithMap, rotateWithMap, painter.transform, pixelToTileScale);\n var updateTextFitIcon = layer.layout.get('icon-text-fit') !== 'none' && bucket.hasIconData();\n if (size) {\n var tileScale = Math.pow(2, tr.zoom - tile.tileID.overscaledZ);\n updateVariableAnchorsForBucket(bucket, rotateWithMap, pitchWithMap, variableOffsets, performance.symbolSize, tr, labelPlaneMatrix, coord.posMatrix, tileScale, size, updateTextFitIcon);\n }\n }\n}\nfunction updateVariableAnchorsForBucket(bucket, rotateWithMap, pitchWithMap, variableOffsets, symbolSize, transform, labelPlaneMatrix, posMatrix, tileScale, size, updateTextFitIcon) {\n var placedSymbols = bucket.text.placedSymbolArray;\n var dynamicTextLayoutVertexArray = bucket.text.dynamicLayoutVertexArray;\n var dynamicIconLayoutVertexArray = bucket.icon.dynamicLayoutVertexArray;\n var placedTextShifts = {};\n dynamicTextLayoutVertexArray.clear();\n for (var s = 0; s < placedSymbols.length; s++) {\n var symbol = placedSymbols.get(s);\n var skipOrientation = bucket.allowVerticalPlacement && !symbol.placedOrientation;\n var variableOffset = !symbol.hidden && symbol.crossTileID && !skipOrientation ? variableOffsets[symbol.crossTileID] : null;\n if (!variableOffset) {\n hideGlyphs(symbol.numGlyphs, dynamicTextLayoutVertexArray);\n } else {\n var tileAnchor = new performance.Point(symbol.anchorX, symbol.anchorY);\n var projectedAnchor = project(tileAnchor, pitchWithMap ? posMatrix : labelPlaneMatrix);\n var perspectiveRatio = getPerspectiveRatio(transform.cameraToCenterDistance, projectedAnchor.signedDistanceFromCamera);\n var renderTextSize = symbolSize.evaluateSizeForFeature(bucket.textSizeData, size, symbol) * perspectiveRatio / performance.ONE_EM;\n if (pitchWithMap) {\n renderTextSize *= bucket.tilePixelRatio / tileScale;\n }\n var width = variableOffset.width;\n var height = variableOffset.height;\n var anchor = variableOffset.anchor;\n var textOffset = variableOffset.textOffset;\n var textBoxScale = variableOffset.textBoxScale;\n var shift = calculateVariableRenderShift(anchor, width, height, textOffset, textBoxScale, renderTextSize);\n var shiftedAnchor = pitchWithMap ? project(tileAnchor.add(shift), labelPlaneMatrix).point : projectedAnchor.point.add(rotateWithMap ? shift.rotate(-transform.angle) : shift);\n var angle = bucket.allowVerticalPlacement && symbol.placedOrientation === performance.WritingMode.vertical ? Math.PI / 2 : 0;\n for (var g = 0; g < symbol.numGlyphs; g++) {\n performance.addDynamicAttributes(dynamicTextLayoutVertexArray, shiftedAnchor, angle);\n }\n if (updateTextFitIcon && symbol.associatedIconIndex >= 0) {\n placedTextShifts[symbol.associatedIconIndex] = {\n shiftedAnchor: shiftedAnchor,\n angle: angle\n };\n }\n }\n }\n if (updateTextFitIcon) {\n dynamicIconLayoutVertexArray.clear();\n var placedIcons = bucket.icon.placedSymbolArray;\n for (var i = 0; i < placedIcons.length; i++) {\n var placedIcon = placedIcons.get(i);\n if (placedIcon.hidden) {\n hideGlyphs(placedIcon.numGlyphs, dynamicIconLayoutVertexArray);\n } else {\n var shift$1 = placedTextShifts[i];\n if (!shift$1) {\n hideGlyphs(placedIcon.numGlyphs, dynamicIconLayoutVertexArray);\n } else {\n for (var g$1 = 0; g$1 < placedIcon.numGlyphs; g$1++) {\n performance.addDynamicAttributes(dynamicIconLayoutVertexArray, shift$1.shiftedAnchor, shift$1.angle);\n }\n }\n }\n }\n bucket.icon.dynamicLayoutVertexBuffer.updateData(dynamicIconLayoutVertexArray);\n }\n bucket.text.dynamicLayoutVertexBuffer.updateData(dynamicTextLayoutVertexArray);\n}\nfunction getSymbolProgramName(isSDF, isText, bucket) {\n if (bucket.iconsInText && isText) {\n return 'symbolTextAndIcon';\n } else if (isSDF) {\n return 'symbolSDF';\n } else {\n return 'symbolIcon';\n }\n}\nfunction drawLayerSymbols(painter, sourceCache, layer, coords, isText, translate, translateAnchor, rotationAlignment, pitchAlignment, keepUpright, stencilMode, colorMode) {\n var context = painter.context;\n var gl = context.gl;\n var tr = painter.transform;\n var rotateWithMap = rotationAlignment === 'map';\n var pitchWithMap = pitchAlignment === 'map';\n var alongLine = rotateWithMap && layer.layout.get('symbol-placement') !== 'point';\n var rotateInShader = rotateWithMap && !pitchWithMap && !alongLine;\n var sortFeaturesByKey = layer.layout.get('symbol-sort-key').constantOr(1) !== undefined;\n var depthMode = painter.depthModeForSublayer(0, DepthMode.ReadOnly);\n var variablePlacement = layer.layout.get('text-variable-anchor');\n var tileRenderState = [];\n for (var i$1 = 0, list$1 = coords; i$1 < list$1.length; i$1 += 1) {\n var coord = list$1[i$1];\n var tile = sourceCache.getTile(coord);\n var bucket = tile.getBucket(layer);\n if (!bucket) {\n continue;\n }\n var buffers = isText ? bucket.text : bucket.icon;\n if (!buffers || !buffers.segments.get().length) {\n continue;\n }\n var programConfiguration = buffers.programConfigurations.get(layer.id);\n var isSDF = isText || bucket.sdfIcons;\n var sizeData = isText ? bucket.textSizeData : bucket.iconSizeData;\n var transformed = pitchWithMap || tr.pitch !== 0;\n var program = painter.useProgram(getSymbolProgramName(isSDF, isText, bucket), programConfiguration);\n var size = performance.evaluateSizeForZoom(sizeData, tr.zoom);\n var texSize = void 0;\n var texSizeIcon = [\n 0,\n 0\n ];\n var atlasTexture = void 0;\n var atlasInterpolation = void 0;\n var atlasTextureIcon = null;\n var atlasInterpolationIcon = void 0;\n if (isText) {\n atlasTexture = tile.glyphAtlasTexture;\n atlasInterpolation = gl.LINEAR;\n texSize = tile.glyphAtlasTexture.size;\n if (bucket.iconsInText) {\n texSizeIcon = tile.imageAtlasTexture.size;\n atlasTextureIcon = tile.imageAtlasTexture;\n var zoomDependentSize = sizeData.kind === 'composite' || sizeData.kind === 'camera';\n atlasInterpolationIcon = transformed || painter.options.rotating || painter.options.zooming || zoomDependentSize ? gl.LINEAR : gl.NEAREST;\n }\n } else {\n var iconScaled = layer.layout.get('icon-size').constantOr(0) !== 1 || bucket.iconsNeedLinear;\n atlasTexture = tile.imageAtlasTexture;\n atlasInterpolation = isSDF || painter.options.rotating || painter.options.zooming || iconScaled || transformed ? gl.LINEAR : gl.NEAREST;\n texSize = tile.imageAtlasTexture.size;\n }\n var s = pixelsToTileUnits(tile, 1, painter.transform.zoom);\n var labelPlaneMatrix = getLabelPlaneMatrix(coord.posMatrix, pitchWithMap, rotateWithMap, painter.transform, s);\n var glCoordMatrix = getGlCoordMatrix(coord.posMatrix, pitchWithMap, rotateWithMap, painter.transform, s);\n var hasVariableAnchors = variablePlacement && bucket.hasTextData();\n var updateTextFitIcon = layer.layout.get('icon-text-fit') !== 'none' && hasVariableAnchors && bucket.hasIconData();\n if (alongLine) {\n updateLineLabels(bucket, coord.posMatrix, painter, isText, labelPlaneMatrix, glCoordMatrix, pitchWithMap, keepUpright);\n }\n var matrix = painter.translatePosMatrix(coord.posMatrix, tile, translate, translateAnchor), uLabelPlaneMatrix = alongLine || isText && variablePlacement || updateTextFitIcon ? identityMat4 : labelPlaneMatrix, uglCoordMatrix = painter.translatePosMatrix(glCoordMatrix, tile, translate, translateAnchor, true);\n var hasHalo = isSDF && layer.paint.get(isText ? 'text-halo-width' : 'icon-halo-width').constantOr(1) !== 0;\n var uniformValues = void 0;\n if (isSDF) {\n if (!bucket.iconsInText) {\n uniformValues = symbolSDFUniformValues(sizeData.kind, size, rotateInShader, pitchWithMap, painter, matrix, uLabelPlaneMatrix, uglCoordMatrix, isText, texSize, true);\n } else {\n uniformValues = symbolTextAndIconUniformValues(sizeData.kind, size, rotateInShader, pitchWithMap, painter, matrix, uLabelPlaneMatrix, uglCoordMatrix, texSize, texSizeIcon);\n }\n } else {\n uniformValues = symbolIconUniformValues(sizeData.kind, size, rotateInShader, pitchWithMap, painter, matrix, uLabelPlaneMatrix, uglCoordMatrix, isText, texSize);\n }\n var state = {\n program: program,\n buffers: buffers,\n uniformValues: uniformValues,\n atlasTexture: atlasTexture,\n atlasTextureIcon: atlasTextureIcon,\n atlasInterpolation: atlasInterpolation,\n atlasInterpolationIcon: atlasInterpolationIcon,\n isSDF: isSDF,\n hasHalo: hasHalo\n };\n if (sortFeaturesByKey) {\n var oldSegments = buffers.segments.get();\n for (var i = 0, list = oldSegments; i < list.length; i += 1) {\n var segment = list[i];\n tileRenderState.push({\n segments: new performance.SegmentVector([segment]),\n sortKey: segment.sortKey,\n state: state\n });\n }\n } else {\n tileRenderState.push({\n segments: buffers.segments,\n sortKey: 0,\n state: state\n });\n }\n }\n if (sortFeaturesByKey) {\n tileRenderState.sort(function (a, b) {\n return a.sortKey - b.sortKey;\n });\n }\n for (var i$2 = 0, list$2 = tileRenderState; i$2 < list$2.length; i$2 += 1) {\n var segmentState = list$2[i$2];\n var state$1 = segmentState.state;\n context.activeTexture.set(gl.TEXTURE0);\n state$1.atlasTexture.bind(state$1.atlasInterpolation, gl.CLAMP_TO_EDGE);\n if (state$1.atlasTextureIcon) {\n context.activeTexture.set(gl.TEXTURE1);\n if (state$1.atlasTextureIcon) {\n state$1.atlasTextureIcon.bind(state$1.atlasInterpolationIcon, gl.CLAMP_TO_EDGE);\n }\n }\n if (state$1.isSDF) {\n var uniformValues$1 = state$1.uniformValues;\n if (state$1.hasHalo) {\n uniformValues$1['u_is_halo'] = 1;\n drawSymbolElements(state$1.buffers, segmentState.segments, layer, painter, state$1.program, depthMode, stencilMode, colorMode, uniformValues$1);\n }\n uniformValues$1['u_is_halo'] = 0;\n }\n drawSymbolElements(state$1.buffers, segmentState.segments, layer, painter, state$1.program, depthMode, stencilMode, colorMode, state$1.uniformValues);\n }\n}\nfunction drawSymbolElements(buffers, segments, layer, painter, program, depthMode, stencilMode, colorMode, uniformValues) {\n var context = painter.context;\n var gl = context.gl;\n program.draw(context, gl.TRIANGLES, depthMode, stencilMode, colorMode, CullFaceMode.disabled, uniformValues, layer.id, buffers.layoutVertexBuffer, buffers.indexBuffer, segments, layer.paint, painter.transform.zoom, buffers.programConfigurations.get(layer.id), buffers.dynamicLayoutVertexBuffer, buffers.opacityVertexBuffer);\n}\n\nfunction drawCircles(painter, sourceCache, layer, coords) {\n if (painter.renderPass !== 'translucent') {\n return;\n }\n var opacity = layer.paint.get('circle-opacity');\n var strokeWidth = layer.paint.get('circle-stroke-width');\n var strokeOpacity = layer.paint.get('circle-stroke-opacity');\n var sortFeaturesByKey = layer.layout.get('circle-sort-key').constantOr(1) !== undefined;\n if (opacity.constantOr(1) === 0 && (strokeWidth.constantOr(1) === 0 || strokeOpacity.constantOr(1) === 0)) {\n return;\n }\n var context = painter.context;\n var gl = context.gl;\n var depthMode = painter.depthModeForSublayer(0, DepthMode.ReadOnly);\n var stencilMode = StencilMode.disabled;\n var colorMode = painter.colorModeForRenderPass();\n var segmentsRenderStates = [];\n for (var i = 0; i < coords.length; i++) {\n var coord = coords[i];\n var tile = sourceCache.getTile(coord);\n var bucket = tile.getBucket(layer);\n if (!bucket) {\n continue;\n }\n var programConfiguration = bucket.programConfigurations.get(layer.id);\n var program = painter.useProgram('circle', programConfiguration);\n var layoutVertexBuffer = bucket.layoutVertexBuffer;\n var indexBuffer = bucket.indexBuffer;\n var uniformValues = circleUniformValues(painter, coord, tile, layer);\n var state = {\n programConfiguration: programConfiguration,\n program: program,\n layoutVertexBuffer: layoutVertexBuffer,\n indexBuffer: indexBuffer,\n uniformValues: uniformValues\n };\n if (sortFeaturesByKey) {\n var oldSegments = bucket.segments.get();\n for (var i$1 = 0, list = oldSegments; i$1 < list.length; i$1 += 1) {\n var segment = list[i$1];\n segmentsRenderStates.push({\n segments: new performance.SegmentVector([segment]),\n sortKey: segment.sortKey,\n state: state\n });\n }\n } else {\n segmentsRenderStates.push({\n segments: bucket.segments,\n sortKey: 0,\n state: state\n });\n }\n }\n if (sortFeaturesByKey) {\n segmentsRenderStates.sort(function (a, b) {\n return a.sortKey - b.sortKey;\n });\n }\n for (var i$2 = 0, list$1 = segmentsRenderStates; i$2 < list$1.length; i$2 += 1) {\n var segmentsState = list$1[i$2];\n var ref = segmentsState.state;\n var programConfiguration$1 = ref.programConfiguration;\n var program$1 = ref.program;\n var layoutVertexBuffer$1 = ref.layoutVertexBuffer;\n var indexBuffer$1 = ref.indexBuffer;\n var uniformValues$1 = ref.uniformValues;\n var segments = segmentsState.segments;\n program$1.draw(context, gl.TRIANGLES, depthMode, stencilMode, colorMode, CullFaceMode.disabled, uniformValues$1, layer.id, layoutVertexBuffer$1, indexBuffer$1, segments, layer.paint, painter.transform.zoom, programConfiguration$1);\n }\n}\n\nfunction drawHeatmap(painter, sourceCache, layer, coords) {\n if (layer.paint.get('heatmap-opacity') === 0) {\n return;\n }\n if (painter.renderPass === 'offscreen') {\n var context = painter.context;\n var gl = context.gl;\n var stencilMode = StencilMode.disabled;\n var colorMode = new ColorMode([\n gl.ONE,\n gl.ONE\n ], performance.Color.transparent, [\n true,\n true,\n true,\n true\n ]);\n bindFramebuffer(context, painter, layer);\n context.clear({ color: performance.Color.transparent });\n for (var i = 0; i < coords.length; i++) {\n var coord = coords[i];\n if (sourceCache.hasRenderableParent(coord)) {\n continue;\n }\n var tile = sourceCache.getTile(coord);\n var bucket = tile.getBucket(layer);\n if (!bucket) {\n continue;\n }\n var programConfiguration = bucket.programConfigurations.get(layer.id);\n var program = painter.useProgram('heatmap', programConfiguration);\n var ref = painter.transform;\n var zoom = ref.zoom;\n program.draw(context, gl.TRIANGLES, DepthMode.disabled, stencilMode, colorMode, CullFaceMode.disabled, heatmapUniformValues(coord.posMatrix, tile, zoom, layer.paint.get('heatmap-intensity')), layer.id, bucket.layoutVertexBuffer, bucket.indexBuffer, bucket.segments, layer.paint, painter.transform.zoom, programConfiguration);\n }\n context.viewport.set([\n 0,\n 0,\n painter.width,\n painter.height\n ]);\n } else if (painter.renderPass === 'translucent') {\n painter.context.setColorMode(painter.colorModeForRenderPass());\n renderTextureToMap(painter, layer);\n }\n}\nfunction bindFramebuffer(context, painter, layer) {\n var gl = context.gl;\n context.activeTexture.set(gl.TEXTURE1);\n context.viewport.set([\n 0,\n 0,\n painter.width / 4,\n painter.height / 4\n ]);\n var fbo = layer.heatmapFbo;\n if (!fbo) {\n var texture = gl.createTexture();\n gl.bindTexture(gl.TEXTURE_2D, texture);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);\n fbo = layer.heatmapFbo = context.createFramebuffer(painter.width / 4, painter.height / 4, false);\n bindTextureToFramebuffer(context, painter, texture, fbo);\n } else {\n gl.bindTexture(gl.TEXTURE_2D, fbo.colorAttachment.get());\n context.bindFramebuffer.set(fbo.framebuffer);\n }\n}\nfunction bindTextureToFramebuffer(context, painter, texture, fbo) {\n var gl = context.gl;\n var internalFormat = context.extRenderToTextureHalfFloat ? context.extTextureHalfFloat.HALF_FLOAT_OES : gl.UNSIGNED_BYTE;\n gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, painter.width / 4, painter.height / 4, 0, gl.RGBA, internalFormat, null);\n fbo.colorAttachment.set(texture);\n}\nfunction renderTextureToMap(painter, layer) {\n var context = painter.context;\n var gl = context.gl;\n var fbo = layer.heatmapFbo;\n if (!fbo) {\n return;\n }\n context.activeTexture.set(gl.TEXTURE0);\n gl.bindTexture(gl.TEXTURE_2D, fbo.colorAttachment.get());\n context.activeTexture.set(gl.TEXTURE1);\n var colorRampTexture = layer.colorRampTexture;\n if (!colorRampTexture) {\n colorRampTexture = layer.colorRampTexture = new performance.Texture(context, layer.colorRamp, gl.RGBA);\n }\n colorRampTexture.bind(gl.LINEAR, gl.CLAMP_TO_EDGE);\n painter.useProgram('heatmapTexture').draw(context, gl.TRIANGLES, DepthMode.disabled, StencilMode.disabled, painter.colorModeForRenderPass(), CullFaceMode.disabled, heatmapTextureUniformValues(painter, layer, 0, 1), layer.id, painter.viewportBuffer, painter.quadTriangleIndexBuffer, painter.viewportSegments, layer.paint, painter.transform.zoom);\n}\n\nfunction drawLine(painter, sourceCache, layer, coords) {\n if (painter.renderPass !== 'translucent') {\n return;\n }\n var opacity = layer.paint.get('line-opacity');\n var width = layer.paint.get('line-width');\n if (opacity.constantOr(1) === 0 || width.constantOr(1) === 0) {\n return;\n }\n var depthMode = painter.depthModeForSublayer(0, DepthMode.ReadOnly);\n var colorMode = painter.colorModeForRenderPass();\n var dasharray = layer.paint.get('line-dasharray');\n var patternProperty = layer.paint.get('line-pattern');\n var image = patternProperty.constantOr(1);\n var gradient = layer.paint.get('line-gradient');\n var crossfade = layer.getCrossfadeParameters();\n var programId = image ? 'linePattern' : dasharray ? 'lineSDF' : gradient ? 'lineGradient' : 'line';\n var context = painter.context;\n var gl = context.gl;\n var firstTile = true;\n if (gradient) {\n context.activeTexture.set(gl.TEXTURE0);\n var gradientTexture = layer.gradientTexture;\n if (!layer.gradient) {\n return;\n }\n if (!gradientTexture) {\n gradientTexture = layer.gradientTexture = new performance.Texture(context, layer.gradient, gl.RGBA);\n }\n gradientTexture.bind(gl.LINEAR, gl.CLAMP_TO_EDGE);\n }\n for (var i = 0, list = coords; i < list.length; i += 1) {\n var coord = list[i];\n var tile = sourceCache.getTile(coord);\n if (image && !tile.patternsLoaded()) {\n continue;\n }\n var bucket = tile.getBucket(layer);\n if (!bucket) {\n continue;\n }\n var programConfiguration = bucket.programConfigurations.get(layer.id);\n var prevProgram = painter.context.program.get();\n var program = painter.useProgram(programId, programConfiguration);\n var programChanged = firstTile || program.program !== prevProgram;\n var constantPattern = patternProperty.constantOr(null);\n if (constantPattern && tile.imageAtlas) {\n var atlas = tile.imageAtlas;\n var posTo = atlas.patternPositions[constantPattern.to.toString()];\n var posFrom = atlas.patternPositions[constantPattern.from.toString()];\n if (posTo && posFrom) {\n programConfiguration.setConstantPatternPositions(posTo, posFrom);\n }\n }\n var uniformValues = image ? linePatternUniformValues(painter, tile, layer, crossfade) : dasharray ? lineSDFUniformValues(painter, tile, layer, dasharray, crossfade) : gradient ? lineGradientUniformValues(painter, tile, layer) : lineUniformValues(painter, tile, layer);\n if (image) {\n context.activeTexture.set(gl.TEXTURE0);\n tile.imageAtlasTexture.bind(gl.LINEAR, gl.CLAMP_TO_EDGE);\n programConfiguration.updatePaintBuffers(crossfade);\n } else if (dasharray && (programChanged || painter.lineAtlas.dirty)) {\n context.activeTexture.set(gl.TEXTURE0);\n painter.lineAtlas.bind(context);\n }\n program.draw(context, gl.TRIANGLES, depthMode, painter.stencilModeForClipping(coord), colorMode, CullFaceMode.disabled, uniformValues, layer.id, bucket.layoutVertexBuffer, bucket.indexBuffer, bucket.segments, layer.paint, painter.transform.zoom, programConfiguration);\n firstTile = false;\n }\n}\n\nfunction drawFill(painter, sourceCache, layer, coords) {\n var color = layer.paint.get('fill-color');\n var opacity = layer.paint.get('fill-opacity');\n if (opacity.constantOr(1) === 0) {\n return;\n }\n var colorMode = painter.colorModeForRenderPass();\n var pattern = layer.paint.get('fill-pattern');\n var pass = painter.opaquePassEnabledForLayer() && (!pattern.constantOr(1) && color.constantOr(performance.Color.transparent).a === 1 && opacity.constantOr(0) === 1) ? 'opaque' : 'translucent';\n if (painter.renderPass === pass) {\n var depthMode = painter.depthModeForSublayer(1, painter.renderPass === 'opaque' ? DepthMode.ReadWrite : DepthMode.ReadOnly);\n drawFillTiles(painter, sourceCache, layer, coords, depthMode, colorMode, false);\n }\n if (painter.renderPass === 'translucent' && layer.paint.get('fill-antialias')) {\n var depthMode$1 = painter.depthModeForSublayer(layer.getPaintProperty('fill-outline-color') ? 2 : 0, DepthMode.ReadOnly);\n drawFillTiles(painter, sourceCache, layer, coords, depthMode$1, colorMode, true);\n }\n}\nfunction drawFillTiles(painter, sourceCache, layer, coords, depthMode, colorMode, isOutline) {\n var gl = painter.context.gl;\n var patternProperty = layer.paint.get('fill-pattern');\n var image = patternProperty && patternProperty.constantOr(1);\n var crossfade = layer.getCrossfadeParameters();\n var drawMode, programName, uniformValues, indexBuffer, segments;\n if (!isOutline) {\n programName = image ? 'fillPattern' : 'fill';\n drawMode = gl.TRIANGLES;\n } else {\n programName = image && !layer.getPaintProperty('fill-outline-color') ? 'fillOutlinePattern' : 'fillOutline';\n drawMode = gl.LINES;\n }\n for (var i = 0, list = coords; i < list.length; i += 1) {\n var coord = list[i];\n var tile = sourceCache.getTile(coord);\n if (image && !tile.patternsLoaded()) {\n continue;\n }\n var bucket = tile.getBucket(layer);\n if (!bucket) {\n continue;\n }\n var programConfiguration = bucket.programConfigurations.get(layer.id);\n var program = painter.useProgram(programName, programConfiguration);\n if (image) {\n painter.context.activeTexture.set(gl.TEXTURE0);\n tile.imageAtlasTexture.bind(gl.LINEAR, gl.CLAMP_TO_EDGE);\n programConfiguration.updatePaintBuffers(crossfade);\n }\n var constantPattern = patternProperty.constantOr(null);\n if (constantPattern && tile.imageAtlas) {\n var atlas = tile.imageAtlas;\n var posTo = atlas.patternPositions[constantPattern.to.toString()];\n var posFrom = atlas.patternPositions[constantPattern.from.toString()];\n if (posTo && posFrom) {\n programConfiguration.setConstantPatternPositions(posTo, posFrom);\n }\n }\n var tileMatrix = painter.translatePosMatrix(coord.posMatrix, tile, layer.paint.get('fill-translate'), layer.paint.get('fill-translate-anchor'));\n if (!isOutline) {\n indexBuffer = bucket.indexBuffer;\n segments = bucket.segments;\n uniformValues = image ? fillPatternUniformValues(tileMatrix, painter, crossfade, tile) : fillUniformValues(tileMatrix);\n } else {\n indexBuffer = bucket.indexBuffer2;\n segments = bucket.segments2;\n var drawingBufferSize = [\n gl.drawingBufferWidth,\n gl.drawingBufferHeight\n ];\n uniformValues = programName === 'fillOutlinePattern' && image ? fillOutlinePatternUniformValues(tileMatrix, painter, crossfade, tile, drawingBufferSize) : fillOutlineUniformValues(tileMatrix, drawingBufferSize);\n }\n program.draw(painter.context, drawMode, depthMode, painter.stencilModeForClipping(coord), colorMode, CullFaceMode.disabled, uniformValues, layer.id, bucket.layoutVertexBuffer, indexBuffer, segments, layer.paint, painter.transform.zoom, programConfiguration);\n }\n}\n\nfunction draw(painter, source, layer, coords) {\n var opacity = layer.paint.get('fill-extrusion-opacity');\n if (opacity === 0) {\n return;\n }\n if (painter.renderPass === 'translucent') {\n var depthMode = new DepthMode(painter.context.gl.LEQUAL, DepthMode.ReadWrite, painter.depthRangeFor3D);\n if (opacity === 1 && !layer.paint.get('fill-extrusion-pattern').constantOr(1)) {\n var colorMode = painter.colorModeForRenderPass();\n drawExtrusionTiles(painter, source, layer, coords, depthMode, StencilMode.disabled, colorMode);\n } else {\n drawExtrusionTiles(painter, source, layer, coords, depthMode, StencilMode.disabled, ColorMode.disabled);\n drawExtrusionTiles(painter, source, layer, coords, depthMode, painter.stencilModeFor3D(), painter.colorModeForRenderPass());\n }\n }\n}\nfunction drawExtrusionTiles(painter, source, layer, coords, depthMode, stencilMode, colorMode) {\n var context = painter.context;\n var gl = context.gl;\n var patternProperty = layer.paint.get('fill-extrusion-pattern');\n var image = patternProperty.constantOr(1);\n var crossfade = layer.getCrossfadeParameters();\n var opacity = layer.paint.get('fill-extrusion-opacity');\n for (var i = 0, list = coords; i < list.length; i += 1) {\n var coord = list[i];\n var tile = source.getTile(coord);\n var bucket = tile.getBucket(layer);\n if (!bucket) {\n continue;\n }\n var programConfiguration = bucket.programConfigurations.get(layer.id);\n var program = painter.useProgram(image ? 'fillExtrusionPattern' : 'fillExtrusion', programConfiguration);\n if (image) {\n painter.context.activeTexture.set(gl.TEXTURE0);\n tile.imageAtlasTexture.bind(gl.LINEAR, gl.CLAMP_TO_EDGE);\n programConfiguration.updatePaintBuffers(crossfade);\n }\n var constantPattern = patternProperty.constantOr(null);\n if (constantPattern && tile.imageAtlas) {\n var atlas = tile.imageAtlas;\n var posTo = atlas.patternPositions[constantPattern.to.toString()];\n var posFrom = atlas.patternPositions[constantPattern.from.toString()];\n if (posTo && posFrom) {\n programConfiguration.setConstantPatternPositions(posTo, posFrom);\n }\n }\n var matrix = painter.translatePosMatrix(coord.posMatrix, tile, layer.paint.get('fill-extrusion-translate'), layer.paint.get('fill-extrusion-translate-anchor'));\n var shouldUseVerticalGradient = layer.paint.get('fill-extrusion-vertical-gradient');\n var uniformValues = image ? fillExtrusionPatternUniformValues(matrix, painter, shouldUseVerticalGradient, opacity, coord, crossfade, tile) : fillExtrusionUniformValues(matrix, painter, shouldUseVerticalGradient, opacity);\n program.draw(context, context.gl.TRIANGLES, depthMode, stencilMode, colorMode, CullFaceMode.backCCW, uniformValues, layer.id, bucket.layoutVertexBuffer, bucket.indexBuffer, bucket.segments, layer.paint, painter.transform.zoom, programConfiguration);\n }\n}\n\nfunction drawHillshade(painter, sourceCache, layer, tileIDs) {\n if (painter.renderPass !== 'offscreen' && painter.renderPass !== 'translucent') {\n return;\n }\n var context = painter.context;\n var sourceMaxZoom = sourceCache.getSource().maxzoom;\n var depthMode = painter.depthModeForSublayer(0, DepthMode.ReadOnly);\n var colorMode = painter.colorModeForRenderPass();\n var ref = painter.renderPass === 'translucent' ? painter.stencilConfigForOverlap(tileIDs) : [\n {},\n tileIDs\n ];\n var stencilModes = ref[0];\n var coords = ref[1];\n for (var i = 0, list = coords; i < list.length; i += 1) {\n var coord = list[i];\n var tile = sourceCache.getTile(coord);\n if (tile.needsHillshadePrepare && painter.renderPass === 'offscreen') {\n prepareHillshade(painter, tile, layer, sourceMaxZoom, depthMode, StencilMode.disabled, colorMode);\n } else if (painter.renderPass === 'translucent') {\n renderHillshade(painter, tile, layer, depthMode, stencilModes[coord.overscaledZ], colorMode);\n }\n }\n context.viewport.set([\n 0,\n 0,\n painter.width,\n painter.height\n ]);\n}\nfunction renderHillshade(painter, tile, layer, depthMode, stencilMode, colorMode) {\n var context = painter.context;\n var gl = context.gl;\n var fbo = tile.fbo;\n if (!fbo) {\n return;\n }\n var program = painter.useProgram('hillshade');\n context.activeTexture.set(gl.TEXTURE0);\n gl.bindTexture(gl.TEXTURE_2D, fbo.colorAttachment.get());\n var uniformValues = hillshadeUniformValues(painter, tile, layer);\n program.draw(context, gl.TRIANGLES, depthMode, stencilMode, colorMode, CullFaceMode.disabled, uniformValues, layer.id, painter.rasterBoundsBuffer, painter.quadTriangleIndexBuffer, painter.rasterBoundsSegments);\n}\nfunction prepareHillshade(painter, tile, layer, sourceMaxZoom, depthMode, stencilMode, colorMode) {\n var context = painter.context;\n var gl = context.gl;\n var dem = tile.dem;\n if (dem && dem.data) {\n var tileSize = dem.dim;\n var textureStride = dem.stride;\n var pixelData = dem.getPixels();\n context.activeTexture.set(gl.TEXTURE1);\n context.pixelStoreUnpackPremultiplyAlpha.set(false);\n tile.demTexture = tile.demTexture || painter.getTileTexture(textureStride);\n if (tile.demTexture) {\n var demTexture = tile.demTexture;\n demTexture.update(pixelData, { premultiply: false });\n demTexture.bind(gl.NEAREST, gl.CLAMP_TO_EDGE);\n } else {\n tile.demTexture = new performance.Texture(context, pixelData, gl.RGBA, { premultiply: false });\n tile.demTexture.bind(gl.NEAREST, gl.CLAMP_TO_EDGE);\n }\n context.activeTexture.set(gl.TEXTURE0);\n var fbo = tile.fbo;\n if (!fbo) {\n var renderTexture = new performance.Texture(context, {\n width: tileSize,\n height: tileSize,\n data: null\n }, gl.RGBA);\n renderTexture.bind(gl.LINEAR, gl.CLAMP_TO_EDGE);\n fbo = tile.fbo = context.createFramebuffer(tileSize, tileSize, true);\n fbo.colorAttachment.set(renderTexture.texture);\n }\n context.bindFramebuffer.set(fbo.framebuffer);\n context.viewport.set([\n 0,\n 0,\n tileSize,\n tileSize\n ]);\n painter.useProgram('hillshadePrepare').draw(context, gl.TRIANGLES, depthMode, stencilMode, colorMode, CullFaceMode.disabled, hillshadeUniformPrepareValues(tile.tileID, dem, sourceMaxZoom), layer.id, painter.rasterBoundsBuffer, painter.quadTriangleIndexBuffer, painter.rasterBoundsSegments);\n tile.needsHillshadePrepare = false;\n }\n}\n\nfunction drawRaster(painter, sourceCache, layer, tileIDs) {\n if (painter.renderPass !== 'translucent') {\n return;\n }\n if (layer.paint.get('raster-opacity') === 0) {\n return;\n }\n if (!tileIDs.length) {\n return;\n }\n var context = painter.context;\n var gl = context.gl;\n var source = sourceCache.getSource();\n var program = painter.useProgram('raster');\n var colorMode = painter.colorModeForRenderPass();\n var ref = source instanceof ImageSource ? [\n {},\n tileIDs\n ] : painter.stencilConfigForOverlap(tileIDs);\n var stencilModes = ref[0];\n var coords = ref[1];\n var minTileZ = coords[coords.length - 1].overscaledZ;\n var align = !painter.options.moving;\n for (var i = 0, list = coords; i < list.length; i += 1) {\n var coord = list[i];\n var depthMode = painter.depthModeForSublayer(coord.overscaledZ - minTileZ, layer.paint.get('raster-opacity') === 1 ? DepthMode.ReadWrite : DepthMode.ReadOnly, gl.LESS);\n var tile = sourceCache.getTile(coord);\n var posMatrix = painter.transform.calculatePosMatrix(coord.toUnwrapped(), align);\n tile.registerFadeDuration(layer.paint.get('raster-fade-duration'));\n var parentTile = sourceCache.findLoadedParent(coord, 0), fade = getFadeValues(tile, parentTile, sourceCache, layer, painter.transform);\n var parentScaleBy = void 0, parentTL = void 0;\n var textureFilter = layer.paint.get('raster-resampling') === 'nearest' ? gl.NEAREST : gl.LINEAR;\n context.activeTexture.set(gl.TEXTURE0);\n tile.texture.bind(textureFilter, gl.CLAMP_TO_EDGE, gl.LINEAR_MIPMAP_NEAREST);\n context.activeTexture.set(gl.TEXTURE1);\n if (parentTile) {\n parentTile.texture.bind(textureFilter, gl.CLAMP_TO_EDGE, gl.LINEAR_MIPMAP_NEAREST);\n parentScaleBy = Math.pow(2, parentTile.tileID.overscaledZ - tile.tileID.overscaledZ);\n parentTL = [\n tile.tileID.canonical.x * parentScaleBy % 1,\n tile.tileID.canonical.y * parentScaleBy % 1\n ];\n } else {\n tile.texture.bind(textureFilter, gl.CLAMP_TO_EDGE, gl.LINEAR_MIPMAP_NEAREST);\n }\n var uniformValues = rasterUniformValues(posMatrix, parentTL || [\n 0,\n 0\n ], parentScaleBy || 1, fade, layer);\n if (source instanceof ImageSource) {\n program.draw(context, gl.TRIANGLES, depthMode, StencilMode.disabled, colorMode, CullFaceMode.disabled, uniformValues, layer.id, source.boundsBuffer, painter.quadTriangleIndexBuffer, source.boundsSegments);\n } else {\n program.draw(context, gl.TRIANGLES, depthMode, stencilModes[coord.overscaledZ], colorMode, CullFaceMode.disabled, uniformValues, layer.id, painter.rasterBoundsBuffer, painter.quadTriangleIndexBuffer, painter.rasterBoundsSegments);\n }\n }\n}\nfunction getFadeValues(tile, parentTile, sourceCache, layer, transform) {\n var fadeDuration = layer.paint.get('raster-fade-duration');\n if (fadeDuration > 0) {\n var now = performance.browser.now();\n var sinceTile = (now - tile.timeAdded) / fadeDuration;\n var sinceParent = parentTile ? (now - parentTile.timeAdded) / fadeDuration : -1;\n var source = sourceCache.getSource();\n var idealZ = transform.coveringZoomLevel({\n tileSize: source.tileSize,\n roundZoom: source.roundZoom\n });\n var fadeIn = !parentTile || Math.abs(parentTile.tileID.overscaledZ - idealZ) > Math.abs(tile.tileID.overscaledZ - idealZ);\n var childOpacity = fadeIn && tile.refreshedUponExpiration ? 1 : performance.clamp(fadeIn ? sinceTile : 1 - sinceParent, 0, 1);\n if (tile.refreshedUponExpiration && sinceTile >= 1) {\n tile.refreshedUponExpiration = false;\n }\n if (parentTile) {\n return {\n opacity: 1,\n mix: 1 - childOpacity\n };\n } else {\n return {\n opacity: childOpacity,\n mix: 0\n };\n }\n } else {\n return {\n opacity: 1,\n mix: 0\n };\n }\n}\n\nfunction drawBackground(painter, sourceCache, layer) {\n var color = layer.paint.get('background-color');\n var opacity = layer.paint.get('background-opacity');\n if (opacity === 0) {\n return;\n }\n var context = painter.context;\n var gl = context.gl;\n var transform = painter.transform;\n var tileSize = transform.tileSize;\n var image = layer.paint.get('background-pattern');\n if (painter.isPatternMissing(image)) {\n return;\n }\n var pass = !image && color.a === 1 && opacity === 1 && painter.opaquePassEnabledForLayer() ? 'opaque' : 'translucent';\n if (painter.renderPass !== pass) {\n return;\n }\n var stencilMode = StencilMode.disabled;\n var depthMode = painter.depthModeForSublayer(0, pass === 'opaque' ? DepthMode.ReadWrite : DepthMode.ReadOnly);\n var colorMode = painter.colorModeForRenderPass();\n var program = painter.useProgram(image ? 'backgroundPattern' : 'background');\n var tileIDs = transform.coveringTiles({ tileSize: tileSize });\n if (image) {\n context.activeTexture.set(gl.TEXTURE0);\n painter.imageManager.bind(painter.context);\n }\n var crossfade = layer.getCrossfadeParameters();\n for (var i = 0, list = tileIDs; i < list.length; i += 1) {\n var tileID = list[i];\n var matrix = painter.transform.calculatePosMatrix(tileID.toUnwrapped());\n var uniformValues = image ? backgroundPatternUniformValues(matrix, opacity, painter, image, {\n tileID: tileID,\n tileSize: tileSize\n }, crossfade) : backgroundUniformValues(matrix, opacity, color);\n program.draw(context, gl.TRIANGLES, depthMode, stencilMode, colorMode, CullFaceMode.disabled, uniformValues, layer.id, painter.tileExtentBuffer, painter.quadTriangleIndexBuffer, painter.tileExtentSegments);\n }\n}\n\nvar topColor = new performance.Color(1, 0, 0, 1);\nvar btmColor = new performance.Color(0, 1, 0, 1);\nvar leftColor = new performance.Color(0, 0, 1, 1);\nvar rightColor = new performance.Color(1, 0, 1, 1);\nvar centerColor = new performance.Color(0, 1, 1, 1);\nfunction drawDebugPadding(painter) {\n var padding = painter.transform.padding;\n var lineWidth = 3;\n drawHorizontalLine(painter, painter.transform.height - (padding.top || 0), lineWidth, topColor);\n drawHorizontalLine(painter, padding.bottom || 0, lineWidth, btmColor);\n drawVerticalLine(painter, padding.left || 0, lineWidth, leftColor);\n drawVerticalLine(painter, painter.transform.width - (padding.right || 0), lineWidth, rightColor);\n var center = painter.transform.centerPoint;\n drawCrosshair(painter, center.x, painter.transform.height - center.y, centerColor);\n}\nfunction drawCrosshair(painter, x, y, color) {\n var size = 20;\n var lineWidth = 2;\n drawDebugSSRect(painter, x - lineWidth / 2, y - size / 2, lineWidth, size, color);\n drawDebugSSRect(painter, x - size / 2, y - lineWidth / 2, size, lineWidth, color);\n}\nfunction drawHorizontalLine(painter, y, lineWidth, color) {\n drawDebugSSRect(painter, 0, y + lineWidth / 2, painter.transform.width, lineWidth, color);\n}\nfunction drawVerticalLine(painter, x, lineWidth, color) {\n drawDebugSSRect(painter, x - lineWidth / 2, 0, lineWidth, painter.transform.height, color);\n}\nfunction drawDebugSSRect(painter, x, y, width, height, color) {\n var context = painter.context;\n var gl = context.gl;\n gl.enable(gl.SCISSOR_TEST);\n gl.scissor(x * performance.browser.devicePixelRatio, y * performance.browser.devicePixelRatio, width * performance.browser.devicePixelRatio, height * performance.browser.devicePixelRatio);\n context.clear({ color: color });\n gl.disable(gl.SCISSOR_TEST);\n}\nfunction drawDebug(painter, sourceCache, coords) {\n for (var i = 0; i < coords.length; i++) {\n drawDebugTile(painter, sourceCache, coords[i]);\n }\n}\nfunction drawDebugTile(painter, sourceCache, coord) {\n var context = painter.context;\n var gl = context.gl;\n var posMatrix = coord.posMatrix;\n var program = painter.useProgram('debug');\n var depthMode = DepthMode.disabled;\n var stencilMode = StencilMode.disabled;\n var colorMode = painter.colorModeForRenderPass();\n var id = '$debug';\n context.activeTexture.set(gl.TEXTURE0);\n painter.emptyTexture.bind(gl.LINEAR, gl.CLAMP_TO_EDGE);\n program.draw(context, gl.LINE_STRIP, depthMode, stencilMode, colorMode, CullFaceMode.disabled, debugUniformValues(posMatrix, performance.Color.red), id, painter.debugBuffer, painter.tileBorderIndexBuffer, painter.debugSegments);\n var tileRawData = sourceCache.getTileByID(coord.key).latestRawTileData;\n var tileByteLength = tileRawData && tileRawData.byteLength || 0;\n var tileSizeKb = Math.floor(tileByteLength / 1024);\n var tileSize = sourceCache.getTile(coord).tileSize;\n var scaleRatio = 512 / Math.min(tileSize, 512) * (coord.overscaledZ / painter.transform.zoom) * 0.5;\n var tileIdText = coord.canonical.toString();\n if (coord.overscaledZ !== coord.canonical.z) {\n tileIdText += ' => ' + coord.overscaledZ;\n }\n var tileLabel = tileIdText + ' ' + tileSizeKb + 'kb';\n drawTextToOverlay(painter, tileLabel);\n program.draw(context, gl.TRIANGLES, depthMode, stencilMode, ColorMode.alphaBlended, CullFaceMode.disabled, debugUniformValues(posMatrix, performance.Color.transparent, scaleRatio), id, painter.debugBuffer, painter.quadTriangleIndexBuffer, painter.debugSegments);\n}\nfunction drawTextToOverlay(painter, text) {\n painter.initDebugOverlayCanvas();\n var canvas = painter.debugOverlayCanvas;\n var gl = painter.context.gl;\n var ctx2d = painter.debugOverlayCanvas.getContext('2d');\n ctx2d.clearRect(0, 0, canvas.width, canvas.height);\n ctx2d.shadowColor = 'white';\n ctx2d.shadowBlur = 2;\n ctx2d.lineWidth = 1.5;\n ctx2d.strokeStyle = 'white';\n ctx2d.textBaseline = 'top';\n ctx2d.font = 'bold ' + 36 + 'px Open Sans, sans-serif';\n ctx2d.fillText(text, 5, 5);\n ctx2d.strokeText(text, 5, 5);\n painter.debugOverlayTexture.update(canvas);\n painter.debugOverlayTexture.bind(gl.LINEAR, gl.CLAMP_TO_EDGE);\n}\n\nfunction drawCustom(painter, sourceCache, layer) {\n var context = painter.context;\n var implementation = layer.implementation;\n if (painter.renderPass === 'offscreen') {\n var prerender = implementation.prerender;\n if (prerender) {\n painter.setCustomLayerDefaults();\n context.setColorMode(painter.colorModeForRenderPass());\n prerender.call(implementation, context.gl, painter.transform.customLayerMatrix());\n context.setDirty();\n painter.setBaseState();\n }\n } else if (painter.renderPass === 'translucent') {\n painter.setCustomLayerDefaults();\n context.setColorMode(painter.colorModeForRenderPass());\n context.setStencilMode(StencilMode.disabled);\n var depthMode = implementation.renderingMode === '3d' ? new DepthMode(painter.context.gl.LEQUAL, DepthMode.ReadWrite, painter.depthRangeFor3D) : painter.depthModeForSublayer(0, DepthMode.ReadOnly);\n context.setDepthMode(depthMode);\n implementation.render(context.gl, painter.transform.customLayerMatrix());\n context.setDirty();\n painter.setBaseState();\n context.bindFramebuffer.set(null);\n }\n}\n\nvar draw$1 = {\n symbol: drawSymbols,\n circle: drawCircles,\n heatmap: drawHeatmap,\n line: drawLine,\n fill: drawFill,\n 'fill-extrusion': draw,\n hillshade: drawHillshade,\n raster: drawRaster,\n background: drawBackground,\n debug: drawDebug,\n custom: drawCustom\n};\nvar Painter = function Painter(gl, transform) {\n this.context = new Context(gl);\n this.transform = transform;\n this._tileTextures = {};\n this.setup();\n this.numSublayers = SourceCache.maxUnderzooming + SourceCache.maxOverzooming + 1;\n this.depthEpsilon = 1 / Math.pow(2, 16);\n this.crossTileSymbolIndex = new CrossTileSymbolIndex();\n this.gpuTimers = {};\n};\nPainter.prototype.resize = function resize(width, height) {\n this.width = width * performance.browser.devicePixelRatio;\n this.height = height * performance.browser.devicePixelRatio;\n this.context.viewport.set([\n 0,\n 0,\n this.width,\n this.height\n ]);\n if (this.style) {\n for (var i = 0, list = this.style._order; i < list.length; i += 1) {\n var layerId = list[i];\n this.style._layers[layerId].resize();\n }\n }\n};\nPainter.prototype.setup = function setup() {\n var context = this.context;\n var tileExtentArray = new performance.StructArrayLayout2i4();\n tileExtentArray.emplaceBack(0, 0);\n tileExtentArray.emplaceBack(performance.EXTENT, 0);\n tileExtentArray.emplaceBack(0, performance.EXTENT);\n tileExtentArray.emplaceBack(performance.EXTENT, performance.EXTENT);\n this.tileExtentBuffer = context.createVertexBuffer(tileExtentArray, posAttributes.members);\n this.tileExtentSegments = performance.SegmentVector.simpleSegment(0, 0, 4, 2);\n var debugArray = new performance.StructArrayLayout2i4();\n debugArray.emplaceBack(0, 0);\n debugArray.emplaceBack(performance.EXTENT, 0);\n debugArray.emplaceBack(0, performance.EXTENT);\n debugArray.emplaceBack(performance.EXTENT, performance.EXTENT);\n this.debugBuffer = context.createVertexBuffer(debugArray, posAttributes.members);\n this.debugSegments = performance.SegmentVector.simpleSegment(0, 0, 4, 5);\n var rasterBoundsArray = new performance.StructArrayLayout4i8();\n rasterBoundsArray.emplaceBack(0, 0, 0, 0);\n rasterBoundsArray.emplaceBack(performance.EXTENT, 0, performance.EXTENT, 0);\n rasterBoundsArray.emplaceBack(0, performance.EXTENT, 0, performance.EXTENT);\n rasterBoundsArray.emplaceBack(performance.EXTENT, performance.EXTENT, performance.EXTENT, performance.EXTENT);\n this.rasterBoundsBuffer = context.createVertexBuffer(rasterBoundsArray, rasterBoundsAttributes.members);\n this.rasterBoundsSegments = performance.SegmentVector.simpleSegment(0, 0, 4, 2);\n var viewportArray = new performance.StructArrayLayout2i4();\n viewportArray.emplaceBack(0, 0);\n viewportArray.emplaceBack(1, 0);\n viewportArray.emplaceBack(0, 1);\n viewportArray.emplaceBack(1, 1);\n this.viewportBuffer = context.createVertexBuffer(viewportArray, posAttributes.members);\n this.viewportSegments = performance.SegmentVector.simpleSegment(0, 0, 4, 2);\n var tileLineStripIndices = new performance.StructArrayLayout1ui2();\n tileLineStripIndices.emplaceBack(0);\n tileLineStripIndices.emplaceBack(1);\n tileLineStripIndices.emplaceBack(3);\n tileLineStripIndices.emplaceBack(2);\n tileLineStripIndices.emplaceBack(0);\n this.tileBorderIndexBuffer = context.createIndexBuffer(tileLineStripIndices);\n var quadTriangleIndices = new performance.StructArrayLayout3ui6();\n quadTriangleIndices.emplaceBack(0, 1, 2);\n quadTriangleIndices.emplaceBack(2, 1, 3);\n this.quadTriangleIndexBuffer = context.createIndexBuffer(quadTriangleIndices);\n this.emptyTexture = new performance.Texture(context, {\n width: 1,\n height: 1,\n data: new Uint8Array([\n 0,\n 0,\n 0,\n 0\n ])\n }, context.gl.RGBA);\n var gl = this.context.gl;\n this.stencilClearMode = new StencilMode({\n func: gl.ALWAYS,\n mask: 0\n }, 0, 255, gl.ZERO, gl.ZERO, gl.ZERO);\n};\nPainter.prototype.clearStencil = function clearStencil() {\n var context = this.context;\n var gl = context.gl;\n this.nextStencilID = 1;\n this.currentStencilSource = undefined;\n var matrix = performance.create();\n performance.ortho(matrix, 0, this.width, this.height, 0, 0, 1);\n performance.scale(matrix, matrix, [\n gl.drawingBufferWidth,\n gl.drawingBufferHeight,\n 0\n ]);\n this.useProgram('clippingMask').draw(context, gl.TRIANGLES, DepthMode.disabled, this.stencilClearMode, ColorMode.disabled, CullFaceMode.disabled, clippingMaskUniformValues(matrix), '$clipping', this.viewportBuffer, this.quadTriangleIndexBuffer, this.viewportSegments);\n};\nPainter.prototype._renderTileClippingMasks = function _renderTileClippingMasks(layer, tileIDs) {\n if (this.currentStencilSource === layer.source || !layer.isTileClipped() || !tileIDs || !tileIDs.length) {\n return;\n }\n this.currentStencilSource = layer.source;\n var context = this.context;\n var gl = context.gl;\n if (this.nextStencilID + tileIDs.length > 256) {\n this.clearStencil();\n }\n context.setColorMode(ColorMode.disabled);\n context.setDepthMode(DepthMode.disabled);\n var program = this.useProgram('clippingMask');\n this._tileClippingMaskIDs = {};\n for (var i = 0, list = tileIDs; i < list.length; i += 1) {\n var tileID = list[i];\n var id = this._tileClippingMaskIDs[tileID.key] = this.nextStencilID++;\n program.draw(context, gl.TRIANGLES, DepthMode.disabled, new StencilMode({\n func: gl.ALWAYS,\n mask: 0\n }, id, 255, gl.KEEP, gl.KEEP, gl.REPLACE), ColorMode.disabled, CullFaceMode.disabled, clippingMaskUniformValues(tileID.posMatrix), '$clipping', this.tileExtentBuffer, this.quadTriangleIndexBuffer, this.tileExtentSegments);\n }\n};\nPainter.prototype.stencilModeFor3D = function stencilModeFor3D() {\n this.currentStencilSource = undefined;\n if (this.nextStencilID + 1 > 256) {\n this.clearStencil();\n }\n var id = this.nextStencilID++;\n var gl = this.context.gl;\n return new StencilMode({\n func: gl.NOTEQUAL,\n mask: 255\n }, id, 255, gl.KEEP, gl.KEEP, gl.REPLACE);\n};\nPainter.prototype.stencilModeForClipping = function stencilModeForClipping(tileID) {\n var gl = this.context.gl;\n return new StencilMode({\n func: gl.EQUAL,\n mask: 255\n }, this._tileClippingMaskIDs[tileID.key], 0, gl.KEEP, gl.KEEP, gl.REPLACE);\n};\nPainter.prototype.stencilConfigForOverlap = function stencilConfigForOverlap(tileIDs) {\n var obj;\n var gl = this.context.gl;\n var coords = tileIDs.sort(function (a, b) {\n return b.overscaledZ - a.overscaledZ;\n });\n var minTileZ = coords[coords.length - 1].overscaledZ;\n var stencilValues = coords[0].overscaledZ - minTileZ + 1;\n if (stencilValues > 1) {\n this.currentStencilSource = undefined;\n if (this.nextStencilID + stencilValues > 256) {\n this.clearStencil();\n }\n var zToStencilMode = {};\n for (var i = 0; i < stencilValues; i++) {\n zToStencilMode[i + minTileZ] = new StencilMode({\n func: gl.GEQUAL,\n mask: 255\n }, i + this.nextStencilID, 255, gl.KEEP, gl.KEEP, gl.REPLACE);\n }\n this.nextStencilID += stencilValues;\n return [\n zToStencilMode,\n coords\n ];\n }\n return [\n (obj = {}, obj[minTileZ] = StencilMode.disabled, obj),\n coords\n ];\n};\nPainter.prototype.colorModeForRenderPass = function colorModeForRenderPass() {\n var gl = this.context.gl;\n if (this._showOverdrawInspector) {\n var numOverdrawSteps = 8;\n var a = 1 / numOverdrawSteps;\n return new ColorMode([\n gl.CONSTANT_COLOR,\n gl.ONE\n ], new performance.Color(a, a, a, 0), [\n true,\n true,\n true,\n true\n ]);\n } else if (this.renderPass === 'opaque') {\n return ColorMode.unblended;\n } else {\n return ColorMode.alphaBlended;\n }\n};\nPainter.prototype.depthModeForSublayer = function depthModeForSublayer(n, mask, func) {\n if (!this.opaquePassEnabledForLayer()) {\n return DepthMode.disabled;\n }\n var depth = 1 - ((1 + this.currentLayer) * this.numSublayers + n) * this.depthEpsilon;\n return new DepthMode(func || this.context.gl.LEQUAL, mask, [\n depth,\n depth\n ]);\n};\nPainter.prototype.opaquePassEnabledForLayer = function opaquePassEnabledForLayer() {\n return this.currentLayer < this.opaquePassCutoff;\n};\nPainter.prototype.render = function render(style, options) {\n var this$1 = this;\n this.style = style;\n this.options = options;\n this.lineAtlas = style.lineAtlas;\n this.imageManager = style.imageManager;\n this.glyphManager = style.glyphManager;\n this.symbolFadeChange = style.placement.symbolFadeChange(performance.browser.now());\n this.imageManager.beginFrame();\n var layerIds = this.style._order;\n var sourceCaches = this.style.sourceCaches;\n for (var id in sourceCaches) {\n var sourceCache = sourceCaches[id];\n if (sourceCache.used) {\n sourceCache.prepare(this.context);\n }\n }\n var coordsAscending = {};\n var coordsDescending = {};\n var coordsDescendingSymbol = {};\n for (var id$1 in sourceCaches) {\n var sourceCache$1 = sourceCaches[id$1];\n coordsAscending[id$1] = sourceCache$1.getVisibleCoordinates();\n coordsDescending[id$1] = coordsAscending[id$1].slice().reverse();\n coordsDescendingSymbol[id$1] = sourceCache$1.getVisibleCoordinates(true).reverse();\n }\n this.opaquePassCutoff = Infinity;\n for (var i = 0; i < layerIds.length; i++) {\n var layerId = layerIds[i];\n if (this.style._layers[layerId].is3D()) {\n this.opaquePassCutoff = i;\n break;\n }\n }\n this.renderPass = 'offscreen';\n for (var i$1 = 0, list = layerIds; i$1 < list.length; i$1 += 1) {\n var layerId$1 = list[i$1];\n var layer = this.style._layers[layerId$1];\n if (!layer.hasOffscreenPass() || layer.isHidden(this.transform.zoom)) {\n continue;\n }\n var coords = coordsDescending[layer.source];\n if (layer.type !== 'custom' && !coords.length) {\n continue;\n }\n this.renderLayer(this, sourceCaches[layer.source], layer, coords);\n }\n this.context.bindFramebuffer.set(null);\n this.context.clear({\n color: options.showOverdrawInspector ? performance.Color.black : performance.Color.transparent,\n depth: 1\n });\n this.clearStencil();\n this._showOverdrawInspector = options.showOverdrawInspector;\n this.depthRangeFor3D = [\n 0,\n 1 - (style._order.length + 2) * this.numSublayers * this.depthEpsilon\n ];\n this.renderPass = 'opaque';\n for (this.currentLayer = layerIds.length - 1; this.currentLayer >= 0; this.currentLayer--) {\n var layer$1 = this.style._layers[layerIds[this.currentLayer]];\n var sourceCache$2 = sourceCaches[layer$1.source];\n var coords$1 = coordsAscending[layer$1.source];\n this._renderTileClippingMasks(layer$1, coords$1);\n this.renderLayer(this, sourceCache$2, layer$1, coords$1);\n }\n this.renderPass = 'translucent';\n for (this.currentLayer = 0; this.currentLayer < layerIds.length; this.currentLayer++) {\n var layer$2 = this.style._layers[layerIds[this.currentLayer]];\n var sourceCache$3 = sourceCaches[layer$2.source];\n var coords$2 = (layer$2.type === 'symbol' ? coordsDescendingSymbol : coordsDescending)[layer$2.source];\n this._renderTileClippingMasks(layer$2, coordsAscending[layer$2.source]);\n this.renderLayer(this, sourceCache$3, layer$2, coords$2);\n }\n if (this.options.showTileBoundaries) {\n var selectedSource;\n var sourceCache$4;\n var layers = performance.values(this.style._layers);\n layers.forEach(function (layer) {\n if (layer.source && !layer.isHidden(this$1.transform.zoom)) {\n if (layer.source !== (sourceCache$4 && sourceCache$4.id)) {\n sourceCache$4 = this$1.style.sourceCaches[layer.source];\n }\n if (!selectedSource || selectedSource.getSource().maxzoom < sourceCache$4.getSource().maxzoom) {\n selectedSource = sourceCache$4;\n }\n }\n });\n if (selectedSource) {\n draw$1.debug(this, selectedSource, selectedSource.getVisibleCoordinates());\n }\n }\n if (this.options.showPadding) {\n drawDebugPadding(this);\n }\n this.context.setDefault();\n};\nPainter.prototype.renderLayer = function renderLayer(painter, sourceCache, layer, coords) {\n if (layer.isHidden(this.transform.zoom)) {\n return;\n }\n if (layer.type !== 'background' && layer.type !== 'custom' && !coords.length) {\n return;\n }\n this.id = layer.id;\n this.gpuTimingStart(layer);\n draw$1[layer.type](painter, sourceCache, layer, coords, this.style.placement.variableOffsets);\n this.gpuTimingEnd();\n};\nPainter.prototype.gpuTimingStart = function gpuTimingStart(layer) {\n if (!this.options.gpuTiming) {\n return;\n }\n var ext = this.context.extTimerQuery;\n var layerTimer = this.gpuTimers[layer.id];\n if (!layerTimer) {\n layerTimer = this.gpuTimers[layer.id] = {\n calls: 0,\n cpuTime: 0,\n query: ext.createQueryEXT()\n };\n }\n layerTimer.calls++;\n ext.beginQueryEXT(ext.TIME_ELAPSED_EXT, layerTimer.query);\n};\nPainter.prototype.gpuTimingEnd = function gpuTimingEnd() {\n if (!this.options.gpuTiming) {\n return;\n }\n var ext = this.context.extTimerQuery;\n ext.endQueryEXT(ext.TIME_ELAPSED_EXT);\n};\nPainter.prototype.collectGpuTimers = function collectGpuTimers() {\n var currentLayerTimers = this.gpuTimers;\n this.gpuTimers = {};\n return currentLayerTimers;\n};\nPainter.prototype.queryGpuTimers = function queryGpuTimers(gpuTimers) {\n var layers = {};\n for (var layerId in gpuTimers) {\n var gpuTimer = gpuTimers[layerId];\n var ext = this.context.extTimerQuery;\n var gpuTime = ext.getQueryObjectEXT(gpuTimer.query, ext.QUERY_RESULT_EXT) / (1000 * 1000);\n ext.deleteQueryEXT(gpuTimer.query);\n layers[layerId] = gpuTime;\n }\n return layers;\n};\nPainter.prototype.translatePosMatrix = function translatePosMatrix(matrix, tile, translate, translateAnchor, inViewportPixelUnitsUnits) {\n if (!translate[0] && !translate[1]) {\n return matrix;\n }\n var angle = inViewportPixelUnitsUnits ? translateAnchor === 'map' ? this.transform.angle : 0 : translateAnchor === 'viewport' ? -this.transform.angle : 0;\n if (angle) {\n var sinA = Math.sin(angle);\n var cosA = Math.cos(angle);\n translate = [\n translate[0] * cosA - translate[1] * sinA,\n translate[0] * sinA + translate[1] * cosA\n ];\n }\n var translation = [\n inViewportPixelUnitsUnits ? translate[0] : pixelsToTileUnits(tile, translate[0], this.transform.zoom),\n inViewportPixelUnitsUnits ? translate[1] : pixelsToTileUnits(tile, translate[1], this.transform.zoom),\n 0\n ];\n var translatedMatrix = new Float32Array(16);\n performance.translate(translatedMatrix, matrix, translation);\n return translatedMatrix;\n};\nPainter.prototype.saveTileTexture = function saveTileTexture(texture) {\n var textures = this._tileTextures[texture.size[0]];\n if (!textures) {\n this._tileTextures[texture.size[0]] = [texture];\n } else {\n textures.push(texture);\n }\n};\nPainter.prototype.getTileTexture = function getTileTexture(size) {\n var textures = this._tileTextures[size];\n return textures && textures.length > 0 ? textures.pop() : null;\n};\nPainter.prototype.isPatternMissing = function isPatternMissing(image) {\n if (!image) {\n return false;\n }\n if (!image.from || !image.to) {\n return true;\n }\n var imagePosA = this.imageManager.getPattern(image.from.toString());\n var imagePosB = this.imageManager.getPattern(image.to.toString());\n return !imagePosA || !imagePosB;\n};\nPainter.prototype.useProgram = function useProgram(name, programConfiguration) {\n this.cache = this.cache || {};\n var key = '' + name + (programConfiguration ? programConfiguration.cacheKey : '') + (this._showOverdrawInspector ? '/overdraw' : '');\n if (!this.cache[key]) {\n this.cache[key] = new Program$1(this.context, shaders[name], programConfiguration, programUniforms[name], this._showOverdrawInspector);\n }\n return this.cache[key];\n};\nPainter.prototype.setCustomLayerDefaults = function setCustomLayerDefaults() {\n this.context.unbindVAO();\n this.context.cullFace.setDefault();\n this.context.activeTexture.setDefault();\n this.context.pixelStoreUnpack.setDefault();\n this.context.pixelStoreUnpackPremultiplyAlpha.setDefault();\n this.context.pixelStoreUnpackFlipY.setDefault();\n};\nPainter.prototype.setBaseState = function setBaseState() {\n var gl = this.context.gl;\n this.context.cullFace.set(false);\n this.context.viewport.set([\n 0,\n 0,\n this.width,\n this.height\n ]);\n this.context.blendEquation.set(gl.FUNC_ADD);\n};\nPainter.prototype.initDebugOverlayCanvas = function initDebugOverlayCanvas() {\n if (this.debugOverlayCanvas == null) {\n this.debugOverlayCanvas = performance.window.document.createElement('canvas');\n this.debugOverlayCanvas.width = 512;\n this.debugOverlayCanvas.height = 512;\n var gl = this.context.gl;\n this.debugOverlayTexture = new performance.Texture(this.context, this.debugOverlayCanvas, gl.RGBA);\n }\n};\nPainter.prototype.destroy = function destroy() {\n this.emptyTexture.destroy();\n if (this.debugOverlayTexture) {\n this.debugOverlayTexture.destroy();\n }\n};\n\nvar Frustum = function Frustum(points_, planes_) {\n this.points = points_;\n this.planes = planes_;\n};\nFrustum.fromInvProjectionMatrix = function fromInvProjectionMatrix(invProj, worldSize, zoom) {\n var clipSpaceCorners = [\n [\n -1,\n 1,\n -1,\n 1\n ],\n [\n 1,\n 1,\n -1,\n 1\n ],\n [\n 1,\n -1,\n -1,\n 1\n ],\n [\n -1,\n -1,\n -1,\n 1\n ],\n [\n -1,\n 1,\n 1,\n 1\n ],\n [\n 1,\n 1,\n 1,\n 1\n ],\n [\n 1,\n -1,\n 1,\n 1\n ],\n [\n -1,\n -1,\n 1,\n 1\n ]\n ];\n var scale = Math.pow(2, zoom);\n var frustumCoords = clipSpaceCorners.map(function (v) {\n return performance.transformMat4([], v, invProj);\n }).map(function (v) {\n return performance.scale$1([], v, 1 / v[3] / worldSize * scale);\n });\n var frustumPlanePointIndices = [\n [\n 0,\n 1,\n 2\n ],\n [\n 6,\n 5,\n 4\n ],\n [\n 0,\n 3,\n 7\n ],\n [\n 2,\n 1,\n 5\n ],\n [\n 3,\n 2,\n 6\n ],\n [\n 0,\n 4,\n 5\n ]\n ];\n var frustumPlanes = frustumPlanePointIndices.map(function (p) {\n var a = performance.sub([], frustumCoords[p[0]], frustumCoords[p[1]]);\n var b = performance.sub([], frustumCoords[p[2]], frustumCoords[p[1]]);\n var n = performance.normalize([], performance.cross([], a, b));\n var d = -performance.dot(n, frustumCoords[p[1]]);\n return n.concat(d);\n });\n return new Frustum(frustumCoords, frustumPlanes);\n};\nvar Aabb = function Aabb(min_, max_) {\n this.min = min_;\n this.max = max_;\n this.center = performance.scale$2([], performance.add([], this.min, this.max), 0.5);\n};\nAabb.prototype.quadrant = function quadrant(index) {\n var split = [\n index % 2 === 0,\n index < 2\n ];\n var qMin = performance.clone$2(this.min);\n var qMax = performance.clone$2(this.max);\n for (var axis = 0; axis < split.length; axis++) {\n qMin[axis] = split[axis] ? this.min[axis] : this.center[axis];\n qMax[axis] = split[axis] ? this.center[axis] : this.max[axis];\n }\n qMax[2] = this.max[2];\n return new Aabb(qMin, qMax);\n};\nAabb.prototype.distanceX = function distanceX(point) {\n var pointOnAabb = Math.max(Math.min(this.max[0], point[0]), this.min[0]);\n return pointOnAabb - point[0];\n};\nAabb.prototype.distanceY = function distanceY(point) {\n var pointOnAabb = Math.max(Math.min(this.max[1], point[1]), this.min[1]);\n return pointOnAabb - point[1];\n};\nAabb.prototype.intersects = function intersects(frustum) {\n var aabbPoints = [\n [\n this.min[0],\n this.min[1],\n 0,\n 1\n ],\n [\n this.max[0],\n this.min[1],\n 0,\n 1\n ],\n [\n this.max[0],\n this.max[1],\n 0,\n 1\n ],\n [\n this.min[0],\n this.max[1],\n 0,\n 1\n ]\n ];\n var fullyInside = true;\n for (var p = 0; p < frustum.planes.length; p++) {\n var plane = frustum.planes[p];\n var pointsInside = 0;\n for (var i = 0; i < aabbPoints.length; i++) {\n pointsInside += performance.dot$1(plane, aabbPoints[i]) >= 0;\n }\n if (pointsInside === 0) {\n return 0;\n }\n if (pointsInside !== aabbPoints.length) {\n fullyInside = false;\n }\n }\n if (fullyInside) {\n return 2;\n }\n for (var axis = 0; axis < 3; axis++) {\n var projMin = Number.MAX_VALUE;\n var projMax = -Number.MAX_VALUE;\n for (var p$1 = 0; p$1 < frustum.points.length; p$1++) {\n var projectedPoint = frustum.points[p$1][axis] - this.min[axis];\n projMin = Math.min(projMin, projectedPoint);\n projMax = Math.max(projMax, projectedPoint);\n }\n if (projMax < 0 || projMin > this.max[axis] - this.min[axis]) {\n return 0;\n }\n }\n return 1;\n};\n\nvar EdgeInsets = function EdgeInsets(top, bottom, left, right) {\n if (top === void 0)\n top = 0;\n if (bottom === void 0)\n bottom = 0;\n if (left === void 0)\n left = 0;\n if (right === void 0)\n right = 0;\n if (isNaN(top) || top < 0 || isNaN(bottom) || bottom < 0 || isNaN(left) || left < 0 || isNaN(right) || right < 0) {\n throw new Error('Invalid value for edge-insets, top, bottom, left and right must all be numbers');\n }\n this.top = top;\n this.bottom = bottom;\n this.left = left;\n this.right = right;\n};\nEdgeInsets.prototype.interpolate = function interpolate(start, target, t) {\n if (target.top != null && start.top != null) {\n this.top = performance.number(start.top, target.top, t);\n }\n if (target.bottom != null && start.bottom != null) {\n this.bottom = performance.number(start.bottom, target.bottom, t);\n }\n if (target.left != null && start.left != null) {\n this.left = performance.number(start.left, target.left, t);\n }\n if (target.right != null && start.right != null) {\n this.right = performance.number(start.right, target.right, t);\n }\n return this;\n};\nEdgeInsets.prototype.getCenter = function getCenter(width, height) {\n var x = performance.clamp((this.left + width - this.right) / 2, 0, width);\n var y = performance.clamp((this.top + height - this.bottom) / 2, 0, height);\n return new performance.Point(x, y);\n};\nEdgeInsets.prototype.equals = function equals(other) {\n return this.top === other.top && this.bottom === other.bottom && this.left === other.left && this.right === other.right;\n};\nEdgeInsets.prototype.clone = function clone() {\n return new EdgeInsets(this.top, this.bottom, this.left, this.right);\n};\nEdgeInsets.prototype.toJSON = function toJSON() {\n return {\n top: this.top,\n bottom: this.bottom,\n left: this.left,\n right: this.right\n };\n};\n\nvar Transform = function Transform(minZoom, maxZoom, minPitch, maxPitch, renderWorldCopies) {\n this.tileSize = 512;\n this.maxValidLatitude = 85.051129;\n this._renderWorldCopies = renderWorldCopies === undefined ? true : renderWorldCopies;\n this._minZoom = minZoom || 0;\n this._maxZoom = maxZoom || 22;\n this._minPitch = minPitch === undefined || minPitch === null ? 0 : minPitch;\n this._maxPitch = maxPitch === undefined || maxPitch === null ? 60 : maxPitch;\n this.setMaxBounds();\n this.width = 0;\n this.height = 0;\n this._center = new performance.LngLat(0, 0);\n this.zoom = 0;\n this.angle = 0;\n this._fov = 0.6435011087932844;\n this._pitch = 0;\n this._unmodified = true;\n this._edgeInsets = new EdgeInsets();\n this._posMatrixCache = {};\n this._alignedPosMatrixCache = {};\n};\nvar prototypeAccessors = {\n minZoom: { configurable: true },\n maxZoom: { configurable: true },\n minPitch: { configurable: true },\n maxPitch: { configurable: true },\n renderWorldCopies: { configurable: true },\n worldSize: { configurable: true },\n centerOffset: { configurable: true },\n size: { configurable: true },\n bearing: { configurable: true },\n pitch: { configurable: true },\n fov: { configurable: true },\n zoom: { configurable: true },\n center: { configurable: true },\n padding: { configurable: true },\n centerPoint: { configurable: true },\n unmodified: { configurable: true },\n point: { configurable: true }\n};\nTransform.prototype.clone = function clone() {\n var clone = new Transform(this._minZoom, this._maxZoom, this._minPitch, this.maxPitch, this._renderWorldCopies);\n clone.tileSize = this.tileSize;\n clone.latRange = this.latRange;\n clone.width = this.width;\n clone.height = this.height;\n clone._center = this._center;\n clone.zoom = this.zoom;\n clone.angle = this.angle;\n clone._fov = this._fov;\n clone._pitch = this._pitch;\n clone._unmodified = this._unmodified;\n clone._edgeInsets = this._edgeInsets.clone();\n clone._calcMatrices();\n return clone;\n};\nprototypeAccessors.minZoom.get = function () {\n return this._minZoom;\n};\nprototypeAccessors.minZoom.set = function (zoom) {\n if (this._minZoom === zoom) {\n return;\n }\n this._minZoom = zoom;\n this.zoom = Math.max(this.zoom, zoom);\n};\nprototypeAccessors.maxZoom.get = function () {\n return this._maxZoom;\n};\nprototypeAccessors.maxZoom.set = function (zoom) {\n if (this._maxZoom === zoom) {\n return;\n }\n this._maxZoom = zoom;\n this.zoom = Math.min(this.zoom, zoom);\n};\nprototypeAccessors.minPitch.get = function () {\n return this._minPitch;\n};\nprototypeAccessors.minPitch.set = function (pitch) {\n if (this._minPitch === pitch) {\n return;\n }\n this._minPitch = pitch;\n this.pitch = Math.max(this.pitch, pitch);\n};\nprototypeAccessors.maxPitch.get = function () {\n return this._maxPitch;\n};\nprototypeAccessors.maxPitch.set = function (pitch) {\n if (this._maxPitch === pitch) {\n return;\n }\n this._maxPitch = pitch;\n this.pitch = Math.min(this.pitch, pitch);\n};\nprototypeAccessors.renderWorldCopies.get = function () {\n return this._renderWorldCopies;\n};\nprototypeAccessors.renderWorldCopies.set = function (renderWorldCopies) {\n if (renderWorldCopies === undefined) {\n renderWorldCopies = true;\n } else if (renderWorldCopies === null) {\n renderWorldCopies = false;\n }\n this._renderWorldCopies = renderWorldCopies;\n};\nprototypeAccessors.worldSize.get = function () {\n return this.tileSize * this.scale;\n};\nprototypeAccessors.centerOffset.get = function () {\n return this.centerPoint._sub(this.size._div(2));\n};\nprototypeAccessors.size.get = function () {\n return new performance.Point(this.width, this.height);\n};\nprototypeAccessors.bearing.get = function () {\n return -this.angle / Math.PI * 180;\n};\nprototypeAccessors.bearing.set = function (bearing) {\n var b = -performance.wrap(bearing, -180, 180) * Math.PI / 180;\n if (this.angle === b) {\n return;\n }\n this._unmodified = false;\n this.angle = b;\n this._calcMatrices();\n this.rotationMatrix = performance.create$2();\n performance.rotate(this.rotationMatrix, this.rotationMatrix, this.angle);\n};\nprototypeAccessors.pitch.get = function () {\n return this._pitch / Math.PI * 180;\n};\nprototypeAccessors.pitch.set = function (pitch) {\n var p = performance.clamp(pitch, this.minPitch, this.maxPitch) / 180 * Math.PI;\n if (this._pitch === p) {\n return;\n }\n this._unmodified = false;\n this._pitch = p;\n this._calcMatrices();\n};\nprototypeAccessors.fov.get = function () {\n return this._fov / Math.PI * 180;\n};\nprototypeAccessors.fov.set = function (fov) {\n fov = Math.max(0.01, Math.min(60, fov));\n if (this._fov === fov) {\n return;\n }\n this._unmodified = false;\n this._fov = fov / 180 * Math.PI;\n this._calcMatrices();\n};\nprototypeAccessors.zoom.get = function () {\n return this._zoom;\n};\nprototypeAccessors.zoom.set = function (zoom) {\n var z = Math.min(Math.max(zoom, this.minZoom), this.maxZoom);\n if (this._zoom === z) {\n return;\n }\n this._unmodified = false;\n this._zoom = z;\n this.scale = this.zoomScale(z);\n this.tileZoom = Math.floor(z);\n this.zoomFraction = z - this.tileZoom;\n this._constrain();\n this._calcMatrices();\n};\nprototypeAccessors.center.get = function () {\n return this._center;\n};\nprototypeAccessors.center.set = function (center) {\n if (center.lat === this._center.lat && center.lng === this._center.lng) {\n return;\n }\n this._unmodified = false;\n this._center = center;\n this._constrain();\n this._calcMatrices();\n};\nprototypeAccessors.padding.get = function () {\n return this._edgeInsets.toJSON();\n};\nprototypeAccessors.padding.set = function (padding) {\n if (this._edgeInsets.equals(padding)) {\n return;\n }\n this._unmodified = false;\n this._edgeInsets.interpolate(this._edgeInsets, padding, 1);\n this._calcMatrices();\n};\nprototypeAccessors.centerPoint.get = function () {\n return this._edgeInsets.getCenter(this.width, this.height);\n};\nTransform.prototype.isPaddingEqual = function isPaddingEqual(padding) {\n return this._edgeInsets.equals(padding);\n};\nTransform.prototype.interpolatePadding = function interpolatePadding(start, target, t) {\n this._unmodified = false;\n this._edgeInsets.interpolate(start, target, t);\n this._constrain();\n this._calcMatrices();\n};\nTransform.prototype.coveringZoomLevel = function coveringZoomLevel(options) {\n var z = (options.roundZoom ? Math.round : Math.floor)(this.zoom + this.scaleZoom(this.tileSize / options.tileSize));\n return Math.max(0, z);\n};\nTransform.prototype.getVisibleUnwrappedCoordinates = function getVisibleUnwrappedCoordinates(tileID) {\n var result = [new performance.UnwrappedTileID(0, tileID)];\n if (this._renderWorldCopies) {\n var utl = this.pointCoordinate(new performance.Point(0, 0));\n var utr = this.pointCoordinate(new performance.Point(this.width, 0));\n var ubl = this.pointCoordinate(new performance.Point(this.width, this.height));\n var ubr = this.pointCoordinate(new performance.Point(0, this.height));\n var w0 = Math.floor(Math.min(utl.x, utr.x, ubl.x, ubr.x));\n var w1 = Math.floor(Math.max(utl.x, utr.x, ubl.x, ubr.x));\n var extraWorldCopy = 1;\n for (var w = w0 - extraWorldCopy; w <= w1 + extraWorldCopy; w++) {\n if (w === 0) {\n continue;\n }\n result.push(new performance.UnwrappedTileID(w, tileID));\n }\n }\n return result;\n};\nTransform.prototype.coveringTiles = function coveringTiles(options) {\n var z = this.coveringZoomLevel(options);\n var actualZ = z;\n if (options.minzoom !== undefined && z < options.minzoom) {\n return [];\n }\n if (options.maxzoom !== undefined && z > options.maxzoom) {\n z = options.maxzoom;\n }\n var centerCoord = performance.MercatorCoordinate.fromLngLat(this.center);\n var numTiles = Math.pow(2, z);\n var centerPoint = [\n numTiles * centerCoord.x,\n numTiles * centerCoord.y,\n 0\n ];\n var cameraFrustum = Frustum.fromInvProjectionMatrix(this.invProjMatrix, this.worldSize, z);\n var minZoom = options.minzoom || 0;\n if (this.pitch <= 60 && this._edgeInsets.top < 0.1) {\n minZoom = z;\n }\n var radiusOfMaxLvlLodInTiles = 3;\n var newRootTile = function (wrap) {\n return {\n aabb: new Aabb([\n wrap * numTiles,\n 0,\n 0\n ], [\n (wrap + 1) * numTiles,\n numTiles,\n 0\n ]),\n zoom: 0,\n x: 0,\n y: 0,\n wrap: wrap,\n fullyVisible: false\n };\n };\n var stack = [];\n var result = [];\n var maxZoom = z;\n var overscaledZ = options.reparseOverscaled ? actualZ : z;\n if (this._renderWorldCopies) {\n for (var i = 1; i <= 3; i++) {\n stack.push(newRootTile(-i));\n stack.push(newRootTile(i));\n }\n }\n stack.push(newRootTile(0));\n while (stack.length > 0) {\n var it = stack.pop();\n var x = it.x;\n var y = it.y;\n var fullyVisible = it.fullyVisible;\n if (!fullyVisible) {\n var intersectResult = it.aabb.intersects(cameraFrustum);\n if (intersectResult === 0) {\n continue;\n }\n fullyVisible = intersectResult === 2;\n }\n var distanceX = it.aabb.distanceX(centerPoint);\n var distanceY = it.aabb.distanceY(centerPoint);\n var longestDim = Math.max(Math.abs(distanceX), Math.abs(distanceY));\n var distToSplit = radiusOfMaxLvlLodInTiles + (1 << maxZoom - it.zoom) - 2;\n if (it.zoom === maxZoom || longestDim > distToSplit && it.zoom >= minZoom) {\n result.push({\n tileID: new performance.OverscaledTileID(it.zoom === maxZoom ? overscaledZ : it.zoom, it.wrap, it.zoom, x, y),\n distanceSq: performance.sqrLen([\n centerPoint[0] - 0.5 - x,\n centerPoint[1] - 0.5 - y\n ])\n });\n continue;\n }\n for (var i$1 = 0; i$1 < 4; i$1++) {\n var childX = (x << 1) + i$1 % 2;\n var childY = (y << 1) + (i$1 >> 1);\n stack.push({\n aabb: it.aabb.quadrant(i$1),\n zoom: it.zoom + 1,\n x: childX,\n y: childY,\n wrap: it.wrap,\n fullyVisible: fullyVisible\n });\n }\n }\n return result.sort(function (a, b) {\n return a.distanceSq - b.distanceSq;\n }).map(function (a) {\n return a.tileID;\n });\n};\nTransform.prototype.resize = function resize(width, height) {\n this.width = width;\n this.height = height;\n this.pixelsToGLUnits = [\n 2 / width,\n -2 / height\n ];\n this._constrain();\n this._calcMatrices();\n};\nprototypeAccessors.unmodified.get = function () {\n return this._unmodified;\n};\nTransform.prototype.zoomScale = function zoomScale(zoom) {\n return Math.pow(2, zoom);\n};\nTransform.prototype.scaleZoom = function scaleZoom(scale) {\n return Math.log(scale) / Math.LN2;\n};\nTransform.prototype.project = function project(lnglat) {\n var lat = performance.clamp(lnglat.lat, -this.maxValidLatitude, this.maxValidLatitude);\n return new performance.Point(performance.mercatorXfromLng(lnglat.lng) * this.worldSize, performance.mercatorYfromLat(lat) * this.worldSize);\n};\nTransform.prototype.unproject = function unproject(point) {\n return new performance.MercatorCoordinate(point.x / this.worldSize, point.y / this.worldSize).toLngLat();\n};\nprototypeAccessors.point.get = function () {\n return this.project(this.center);\n};\nTransform.prototype.setLocationAtPoint = function setLocationAtPoint(lnglat, point) {\n var a = this.pointCoordinate(point);\n var b = this.pointCoordinate(this.centerPoint);\n var loc = this.locationCoordinate(lnglat);\n var newCenter = new performance.MercatorCoordinate(loc.x - (a.x - b.x), loc.y - (a.y - b.y));\n this.center = this.coordinateLocation(newCenter);\n if (this._renderWorldCopies) {\n this.center = this.center.wrap();\n }\n};\nTransform.prototype.locationPoint = function locationPoint(lnglat) {\n return this.coordinatePoint(this.locationCoordinate(lnglat));\n};\nTransform.prototype.pointLocation = function pointLocation(p) {\n return this.coordinateLocation(this.pointCoordinate(p));\n};\nTransform.prototype.locationCoordinate = function locationCoordinate(lnglat) {\n return performance.MercatorCoordinate.fromLngLat(lnglat);\n};\nTransform.prototype.coordinateLocation = function coordinateLocation(coord) {\n return coord.toLngLat();\n};\nTransform.prototype.pointCoordinate = function pointCoordinate(p) {\n var targetZ = 0;\n var coord0 = [\n p.x,\n p.y,\n 0,\n 1\n ];\n var coord1 = [\n p.x,\n p.y,\n 1,\n 1\n ];\n performance.transformMat4(coord0, coord0, this.pixelMatrixInverse);\n performance.transformMat4(coord1, coord1, this.pixelMatrixInverse);\n var w0 = coord0[3];\n var w1 = coord1[3];\n var x0 = coord0[0] / w0;\n var x1 = coord1[0] / w1;\n var y0 = coord0[1] / w0;\n var y1 = coord1[1] / w1;\n var z0 = coord0[2] / w0;\n var z1 = coord1[2] / w1;\n var t = z0 === z1 ? 0 : (targetZ - z0) / (z1 - z0);\n return new performance.MercatorCoordinate(performance.number(x0, x1, t) / this.worldSize, performance.number(y0, y1, t) / this.worldSize);\n};\nTransform.prototype.coordinatePoint = function coordinatePoint(coord) {\n var p = [\n coord.x * this.worldSize,\n coord.y * this.worldSize,\n 0,\n 1\n ];\n performance.transformMat4(p, p, this.pixelMatrix);\n return new performance.Point(p[0] / p[3], p[1] / p[3]);\n};\nTransform.prototype.getBounds = function getBounds() {\n return new performance.LngLatBounds().extend(this.pointLocation(new performance.Point(0, 0))).extend(this.pointLocation(new performance.Point(this.width, 0))).extend(this.pointLocation(new performance.Point(this.width, this.height))).extend(this.pointLocation(new performance.Point(0, this.height)));\n};\nTransform.prototype.getMaxBounds = function getMaxBounds() {\n if (!this.latRange || this.latRange.length !== 2 || !this.lngRange || this.lngRange.length !== 2) {\n return null;\n }\n return new performance.LngLatBounds([\n this.lngRange[0],\n this.latRange[0]\n ], [\n this.lngRange[1],\n this.latRange[1]\n ]);\n};\nTransform.prototype.setMaxBounds = function setMaxBounds(bounds) {\n if (bounds) {\n this.lngRange = [\n bounds.getWest(),\n bounds.getEast()\n ];\n this.latRange = [\n bounds.getSouth(),\n bounds.getNorth()\n ];\n this._constrain();\n } else {\n this.lngRange = null;\n this.latRange = [\n -this.maxValidLatitude,\n this.maxValidLatitude\n ];\n }\n};\nTransform.prototype.calculatePosMatrix = function calculatePosMatrix(unwrappedTileID, aligned) {\n if (aligned === void 0)\n aligned = false;\n var posMatrixKey = unwrappedTileID.key;\n var cache = aligned ? this._alignedPosMatrixCache : this._posMatrixCache;\n if (cache[posMatrixKey]) {\n return cache[posMatrixKey];\n }\n var canonical = unwrappedTileID.canonical;\n var scale = this.worldSize / this.zoomScale(canonical.z);\n var unwrappedX = canonical.x + Math.pow(2, canonical.z) * unwrappedTileID.wrap;\n var posMatrix = performance.identity(new Float64Array(16));\n performance.translate(posMatrix, posMatrix, [\n unwrappedX * scale,\n canonical.y * scale,\n 0\n ]);\n performance.scale(posMatrix, posMatrix, [\n scale / performance.EXTENT,\n scale / performance.EXTENT,\n 1\n ]);\n performance.multiply(posMatrix, aligned ? this.alignedProjMatrix : this.projMatrix, posMatrix);\n cache[posMatrixKey] = new Float32Array(posMatrix);\n return cache[posMatrixKey];\n};\nTransform.prototype.customLayerMatrix = function customLayerMatrix() {\n return this.mercatorMatrix.slice();\n};\nTransform.prototype._constrain = function _constrain() {\n if (!this.center || !this.width || !this.height || this._constraining) {\n return;\n }\n this._constraining = true;\n var minY = -90;\n var maxY = 90;\n var minX = -180;\n var maxX = 180;\n var sy, sx, x2, y2;\n var size = this.size, unmodified = this._unmodified;\n if (this.latRange) {\n var latRange = this.latRange;\n minY = performance.mercatorYfromLat(latRange[1]) * this.worldSize;\n maxY = performance.mercatorYfromLat(latRange[0]) * this.worldSize;\n sy = maxY - minY < size.y ? size.y / (maxY - minY) : 0;\n }\n if (this.lngRange) {\n var lngRange = this.lngRange;\n minX = performance.mercatorXfromLng(lngRange[0]) * this.worldSize;\n maxX = performance.mercatorXfromLng(lngRange[1]) * this.worldSize;\n sx = maxX - minX < size.x ? size.x / (maxX - minX) : 0;\n }\n var point = this.point;\n var s = Math.max(sx || 0, sy || 0);\n if (s) {\n this.center = this.unproject(new performance.Point(sx ? (maxX + minX) / 2 : point.x, sy ? (maxY + minY) / 2 : point.y));\n this.zoom += this.scaleZoom(s);\n this._unmodified = unmodified;\n this._constraining = false;\n return;\n }\n if (this.latRange) {\n var y = point.y, h2 = size.y / 2;\n if (y - h2 < minY) {\n y2 = minY + h2;\n }\n if (y + h2 > maxY) {\n y2 = maxY - h2;\n }\n }\n if (this.lngRange) {\n var x = point.x, w2 = size.x / 2;\n if (x - w2 < minX) {\n x2 = minX + w2;\n }\n if (x + w2 > maxX) {\n x2 = maxX - w2;\n }\n }\n if (x2 !== undefined || y2 !== undefined) {\n this.center = this.unproject(new performance.Point(x2 !== undefined ? x2 : point.x, y2 !== undefined ? y2 : point.y));\n }\n this._unmodified = unmodified;\n this._constraining = false;\n};\nTransform.prototype._calcMatrices = function _calcMatrices() {\n if (!this.height) {\n return;\n }\n var halfFov = this._fov / 2;\n var offset = this.centerOffset;\n this.cameraToCenterDistance = 0.5 / Math.tan(halfFov) * this.height;\n var groundAngle = Math.PI / 2 + this._pitch;\n var fovAboveCenter = this._fov * (0.5 + offset.y / this.height);\n var topHalfSurfaceDistance = Math.sin(fovAboveCenter) * this.cameraToCenterDistance / Math.sin(performance.clamp(Math.PI - groundAngle - fovAboveCenter, 0.01, Math.PI - 0.01));\n var point = this.point;\n var x = point.x, y = point.y;\n var furthestDistance = Math.cos(Math.PI / 2 - this._pitch) * topHalfSurfaceDistance + this.cameraToCenterDistance;\n var farZ = furthestDistance * 1.01;\n var nearZ = this.height / 50;\n var m = new Float64Array(16);\n performance.perspective(m, this._fov, this.width / this.height, nearZ, farZ);\n m[8] = -offset.x * 2 / this.width;\n m[9] = offset.y * 2 / this.height;\n performance.scale(m, m, [\n 1,\n -1,\n 1\n ]);\n performance.translate(m, m, [\n 0,\n 0,\n -this.cameraToCenterDistance\n ]);\n performance.rotateX(m, m, this._pitch);\n performance.rotateZ(m, m, this.angle);\n performance.translate(m, m, [\n -x,\n -y,\n 0\n ]);\n this.mercatorMatrix = performance.scale([], m, [\n this.worldSize,\n this.worldSize,\n this.worldSize\n ]);\n performance.scale(m, m, [\n 1,\n 1,\n performance.mercatorZfromAltitude(1, this.center.lat) * this.worldSize,\n 1\n ]);\n this.projMatrix = m;\n this.invProjMatrix = performance.invert([], this.projMatrix);\n var xShift = this.width % 2 / 2, yShift = this.height % 2 / 2, angleCos = Math.cos(this.angle), angleSin = Math.sin(this.angle), dx = x - Math.round(x) + angleCos * xShift + angleSin * yShift, dy = y - Math.round(y) + angleCos * yShift + angleSin * xShift;\n var alignedM = new Float64Array(m);\n performance.translate(alignedM, alignedM, [\n dx > 0.5 ? dx - 1 : dx,\n dy > 0.5 ? dy - 1 : dy,\n 0\n ]);\n this.alignedProjMatrix = alignedM;\n m = performance.create();\n performance.scale(m, m, [\n this.width / 2,\n -this.height / 2,\n 1\n ]);\n performance.translate(m, m, [\n 1,\n -1,\n 0\n ]);\n this.labelPlaneMatrix = m;\n m = performance.create();\n performance.scale(m, m, [\n 1,\n -1,\n 1\n ]);\n performance.translate(m, m, [\n -1,\n -1,\n 0\n ]);\n performance.scale(m, m, [\n 2 / this.width,\n 2 / this.height,\n 1\n ]);\n this.glCoordMatrix = m;\n this.pixelMatrix = performance.multiply(new Float64Array(16), this.labelPlaneMatrix, this.projMatrix);\n m = performance.invert(new Float64Array(16), this.pixelMatrix);\n if (!m) {\n throw new Error('failed to invert matrix');\n }\n this.pixelMatrixInverse = m;\n this._posMatrixCache = {};\n this._alignedPosMatrixCache = {};\n};\nTransform.prototype.maxPitchScaleFactor = function maxPitchScaleFactor() {\n if (!this.pixelMatrixInverse) {\n return 1;\n }\n var coord = this.pointCoordinate(new performance.Point(0, 0));\n var p = [\n coord.x * this.worldSize,\n coord.y * this.worldSize,\n 0,\n 1\n ];\n var topPoint = performance.transformMat4(p, p, this.pixelMatrix);\n return topPoint[3] / this.cameraToCenterDistance;\n};\nTransform.prototype.getCameraPoint = function getCameraPoint() {\n var pitch = this._pitch;\n var yOffset = Math.tan(pitch) * (this.cameraToCenterDistance || 1);\n return this.centerPoint.add(new performance.Point(0, yOffset));\n};\nTransform.prototype.getCameraQueryGeometry = function getCameraQueryGeometry(queryGeometry) {\n var c = this.getCameraPoint();\n if (queryGeometry.length === 1) {\n return [\n queryGeometry[0],\n c\n ];\n } else {\n var minX = c.x;\n var minY = c.y;\n var maxX = c.x;\n var maxY = c.y;\n for (var i = 0, list = queryGeometry; i < list.length; i += 1) {\n var p = list[i];\n minX = Math.min(minX, p.x);\n minY = Math.min(minY, p.y);\n maxX = Math.max(maxX, p.x);\n maxY = Math.max(maxY, p.y);\n }\n return [\n new performance.Point(minX, minY),\n new performance.Point(maxX, minY),\n new performance.Point(maxX, maxY),\n new performance.Point(minX, maxY),\n new performance.Point(minX, minY)\n ];\n }\n};\nObject.defineProperties(Transform.prototype, prototypeAccessors);\n\nfunction throttle(fn, time) {\n var pending = false;\n var timerId = null;\n var later = function () {\n timerId = null;\n if (pending) {\n fn();\n timerId = setTimeout(later, time);\n pending = false;\n }\n };\n return function () {\n pending = true;\n if (!timerId) {\n later();\n }\n return timerId;\n };\n}\n\nvar Hash = function Hash(hashName) {\n this._hashName = hashName && encodeURIComponent(hashName);\n performance.bindAll([\n '_getCurrentHash',\n '_onHashChange',\n '_updateHash'\n ], this);\n this._updateHash = throttle(this._updateHashUnthrottled.bind(this), 30 * 1000 / 100);\n};\nHash.prototype.addTo = function addTo(map) {\n this._map = map;\n performance.window.addEventListener('hashchange', this._onHashChange, false);\n this._map.on('moveend', this._updateHash);\n return this;\n};\nHash.prototype.remove = function remove() {\n performance.window.removeEventListener('hashchange', this._onHashChange, false);\n this._map.off('moveend', this._updateHash);\n clearTimeout(this._updateHash());\n delete this._map;\n return this;\n};\nHash.prototype.getHashString = function getHashString(mapFeedback) {\n var center = this._map.getCenter(), zoom = Math.round(this._map.getZoom() * 100) / 100, precision = Math.ceil((zoom * Math.LN2 + Math.log(512 / 360 / 0.5)) / Math.LN10), m = Math.pow(10, precision), lng = Math.round(center.lng * m) / m, lat = Math.round(center.lat * m) / m, bearing = this._map.getBearing(), pitch = this._map.getPitch();\n var hash = '';\n if (mapFeedback) {\n hash += '/' + lng + '/' + lat + '/' + zoom;\n } else {\n hash += zoom + '/' + lat + '/' + lng;\n }\n if (bearing || pitch) {\n hash += '/' + Math.round(bearing * 10) / 10;\n }\n if (pitch) {\n hash += '/' + Math.round(pitch);\n }\n if (this._hashName) {\n var hashName = this._hashName;\n var found = false;\n var parts = performance.window.location.hash.slice(1).split('&').map(function (part) {\n var key = part.split('=')[0];\n if (key === hashName) {\n found = true;\n return key + '=' + hash;\n }\n return part;\n }).filter(function (a) {\n return a;\n });\n if (!found) {\n parts.push(hashName + '=' + hash);\n }\n return '#' + parts.join('&');\n }\n return '#' + hash;\n};\nHash.prototype._getCurrentHash = function _getCurrentHash() {\n var this$1 = this;\n var hash = performance.window.location.hash.replace('#', '');\n if (this._hashName) {\n var keyval;\n hash.split('&').map(function (part) {\n return part.split('=');\n }).forEach(function (part) {\n if (part[0] === this$1._hashName) {\n keyval = part;\n }\n });\n return (keyval ? keyval[1] || '' : '').split('/');\n }\n return hash.split('/');\n};\nHash.prototype._onHashChange = function _onHashChange() {\n var loc = this._getCurrentHash();\n if (loc.length >= 3 && !loc.some(function (v) {\n return isNaN(v);\n })) {\n var bearing = this._map.dragRotate.isEnabled() && this._map.touchZoomRotate.isEnabled() ? +(loc[3] || 0) : this._map.getBearing();\n this._map.jumpTo({\n center: [\n +loc[2],\n +loc[1]\n ],\n zoom: +loc[0],\n bearing: bearing,\n pitch: +(loc[4] || 0)\n });\n return true;\n }\n return false;\n};\nHash.prototype._updateHashUnthrottled = function _updateHashUnthrottled() {\n var hash = this.getHashString();\n try {\n performance.window.history.replaceState(performance.window.history.state, '', hash);\n } catch (SecurityError) {\n }\n};\n\nvar defaultInertiaOptions = {\n linearity: 0.3,\n easing: performance.bezier(0, 0, 0.3, 1)\n};\nvar defaultPanInertiaOptions = performance.extend({\n deceleration: 2500,\n maxSpeed: 1400\n}, defaultInertiaOptions);\nvar defaultZoomInertiaOptions = performance.extend({\n deceleration: 20,\n maxSpeed: 1400\n}, defaultInertiaOptions);\nvar defaultBearingInertiaOptions = performance.extend({\n deceleration: 1000,\n maxSpeed: 360\n}, defaultInertiaOptions);\nvar defaultPitchInertiaOptions = performance.extend({\n deceleration: 1000,\n maxSpeed: 90\n}, defaultInertiaOptions);\nvar HandlerInertia = function HandlerInertia(map) {\n this._map = map;\n this.clear();\n};\nHandlerInertia.prototype.clear = function clear() {\n this._inertiaBuffer = [];\n};\nHandlerInertia.prototype.record = function record(settings) {\n this._drainInertiaBuffer();\n this._inertiaBuffer.push({\n time: performance.browser.now(),\n settings: settings\n });\n};\nHandlerInertia.prototype._drainInertiaBuffer = function _drainInertiaBuffer() {\n var inertia = this._inertiaBuffer, now = performance.browser.now(), cutoff = 160;\n while (inertia.length > 0 && now - inertia[0].time > cutoff) {\n inertia.shift();\n }\n};\nHandlerInertia.prototype._onMoveEnd = function _onMoveEnd(panInertiaOptions) {\n this._drainInertiaBuffer();\n if (this._inertiaBuffer.length < 2) {\n return;\n }\n var deltas = {\n zoom: 0,\n bearing: 0,\n pitch: 0,\n pan: new performance.Point(0, 0),\n pinchAround: undefined,\n around: undefined\n };\n for (var i = 0, list = this._inertiaBuffer; i < list.length; i += 1) {\n var ref = list[i];\n var settings = ref.settings;\n deltas.zoom += settings.zoomDelta || 0;\n deltas.bearing += settings.bearingDelta || 0;\n deltas.pitch += settings.pitchDelta || 0;\n if (settings.panDelta) {\n deltas.pan._add(settings.panDelta);\n }\n if (settings.around) {\n deltas.around = settings.around;\n }\n if (settings.pinchAround) {\n deltas.pinchAround = settings.pinchAround;\n }\n }\n var lastEntry = this._inertiaBuffer[this._inertiaBuffer.length - 1];\n var duration = lastEntry.time - this._inertiaBuffer[0].time;\n var easeOptions = {};\n if (deltas.pan.mag()) {\n var result = calculateEasing(deltas.pan.mag(), duration, performance.extend({}, defaultPanInertiaOptions, panInertiaOptions || {}));\n easeOptions.offset = deltas.pan.mult(result.amount / deltas.pan.mag());\n easeOptions.center = this._map.transform.center;\n extendDuration(easeOptions, result);\n }\n if (deltas.zoom) {\n var result$1 = calculateEasing(deltas.zoom, duration, defaultZoomInertiaOptions);\n easeOptions.zoom = this._map.transform.zoom + result$1.amount;\n extendDuration(easeOptions, result$1);\n }\n if (deltas.bearing) {\n var result$2 = calculateEasing(deltas.bearing, duration, defaultBearingInertiaOptions);\n easeOptions.bearing = this._map.transform.bearing + performance.clamp(result$2.amount, -179, 179);\n extendDuration(easeOptions, result$2);\n }\n if (deltas.pitch) {\n var result$3 = calculateEasing(deltas.pitch, duration, defaultPitchInertiaOptions);\n easeOptions.pitch = this._map.transform.pitch + result$3.amount;\n extendDuration(easeOptions, result$3);\n }\n if (easeOptions.zoom || easeOptions.bearing) {\n var last = deltas.pinchAround === undefined ? deltas.around : deltas.pinchAround;\n easeOptions.around = last ? this._map.unproject(last) : this._map.getCenter();\n }\n this.clear();\n return performance.extend(easeOptions, { noMoveStart: true });\n};\nfunction extendDuration(easeOptions, result) {\n if (!easeOptions.duration || easeOptions.duration < result.duration) {\n easeOptions.duration = result.duration;\n easeOptions.easing = result.easing;\n }\n}\nfunction calculateEasing(amount, inertiaDuration, inertiaOptions) {\n var maxSpeed = inertiaOptions.maxSpeed;\n var linearity = inertiaOptions.linearity;\n var deceleration = inertiaOptions.deceleration;\n var speed = performance.clamp(amount * linearity / (inertiaDuration / 1000), -maxSpeed, maxSpeed);\n var duration = Math.abs(speed) / (deceleration * linearity);\n return {\n easing: inertiaOptions.easing,\n duration: duration * 1000,\n amount: speed * (duration / 2)\n };\n}\n\nvar MapMouseEvent = function (Event) {\n function MapMouseEvent(type, map, originalEvent, data) {\n if (data === void 0)\n data = {};\n var point = DOM.mousePos(map.getCanvasContainer(), originalEvent);\n var lngLat = map.unproject(point);\n Event.call(this, type, performance.extend({\n point: point,\n lngLat: lngLat,\n originalEvent: originalEvent\n }, data));\n this._defaultPrevented = false;\n this.target = map;\n }\n if (Event)\n MapMouseEvent.__proto__ = Event;\n MapMouseEvent.prototype = Object.create(Event && Event.prototype);\n MapMouseEvent.prototype.constructor = MapMouseEvent;\n var prototypeAccessors = { defaultPrevented: { configurable: true } };\n MapMouseEvent.prototype.preventDefault = function preventDefault() {\n this._defaultPrevented = true;\n };\n prototypeAccessors.defaultPrevented.get = function () {\n return this._defaultPrevented;\n };\n Object.defineProperties(MapMouseEvent.prototype, prototypeAccessors);\n return MapMouseEvent;\n}(performance.Event);\nvar MapTouchEvent = function (Event) {\n function MapTouchEvent(type, map, originalEvent) {\n var touches = type === 'touchend' ? originalEvent.changedTouches : originalEvent.touches;\n var points = DOM.touchPos(map.getCanvasContainer(), touches);\n var lngLats = points.map(function (t) {\n return map.unproject(t);\n });\n var point = points.reduce(function (prev, curr, i, arr) {\n return prev.add(curr.div(arr.length));\n }, new performance.Point(0, 0));\n var lngLat = map.unproject(point);\n Event.call(this, type, {\n points: points,\n point: point,\n lngLats: lngLats,\n lngLat: lngLat,\n originalEvent: originalEvent\n });\n this._defaultPrevented = false;\n }\n if (Event)\n MapTouchEvent.__proto__ = Event;\n MapTouchEvent.prototype = Object.create(Event && Event.prototype);\n MapTouchEvent.prototype.constructor = MapTouchEvent;\n var prototypeAccessors$1 = { defaultPrevented: { configurable: true } };\n MapTouchEvent.prototype.preventDefault = function preventDefault() {\n this._defaultPrevented = true;\n };\n prototypeAccessors$1.defaultPrevented.get = function () {\n return this._defaultPrevented;\n };\n Object.defineProperties(MapTouchEvent.prototype, prototypeAccessors$1);\n return MapTouchEvent;\n}(performance.Event);\nvar MapWheelEvent = function (Event) {\n function MapWheelEvent(type, map, originalEvent) {\n Event.call(this, type, { originalEvent: originalEvent });\n this._defaultPrevented = false;\n }\n if (Event)\n MapWheelEvent.__proto__ = Event;\n MapWheelEvent.prototype = Object.create(Event && Event.prototype);\n MapWheelEvent.prototype.constructor = MapWheelEvent;\n var prototypeAccessors$2 = { defaultPrevented: { configurable: true } };\n MapWheelEvent.prototype.preventDefault = function preventDefault() {\n this._defaultPrevented = true;\n };\n prototypeAccessors$2.defaultPrevented.get = function () {\n return this._defaultPrevented;\n };\n Object.defineProperties(MapWheelEvent.prototype, prototypeAccessors$2);\n return MapWheelEvent;\n}(performance.Event);\n\nvar MapEventHandler = function MapEventHandler(map, options) {\n this._map = map;\n this._clickTolerance = options.clickTolerance;\n};\nMapEventHandler.prototype.reset = function reset() {\n delete this._mousedownPos;\n};\nMapEventHandler.prototype.wheel = function wheel(e) {\n return this._firePreventable(new MapWheelEvent(e.type, this._map, e));\n};\nMapEventHandler.prototype.mousedown = function mousedown(e, point) {\n this._mousedownPos = point;\n return this._firePreventable(new MapMouseEvent(e.type, this._map, e));\n};\nMapEventHandler.prototype.mouseup = function mouseup(e) {\n this._map.fire(new MapMouseEvent(e.type, this._map, e));\n};\nMapEventHandler.prototype.click = function click(e, point) {\n if (this._mousedownPos && this._mousedownPos.dist(point) >= this._clickTolerance) {\n return;\n }\n this._map.fire(new MapMouseEvent(e.type, this._map, e));\n};\nMapEventHandler.prototype.dblclick = function dblclick(e) {\n return this._firePreventable(new MapMouseEvent(e.type, this._map, e));\n};\nMapEventHandler.prototype.mouseover = function mouseover(e) {\n this._map.fire(new MapMouseEvent(e.type, this._map, e));\n};\nMapEventHandler.prototype.mouseout = function mouseout(e) {\n this._map.fire(new MapMouseEvent(e.type, this._map, e));\n};\nMapEventHandler.prototype.touchstart = function touchstart(e) {\n return this._firePreventable(new MapTouchEvent(e.type, this._map, e));\n};\nMapEventHandler.prototype.touchmove = function touchmove(e) {\n this._map.fire(new MapTouchEvent(e.type, this._map, e));\n};\nMapEventHandler.prototype.touchend = function touchend(e) {\n this._map.fire(new MapTouchEvent(e.type, this._map, e));\n};\nMapEventHandler.prototype.touchcancel = function touchcancel(e) {\n this._map.fire(new MapTouchEvent(e.type, this._map, e));\n};\nMapEventHandler.prototype._firePreventable = function _firePreventable(mapEvent) {\n this._map.fire(mapEvent);\n if (mapEvent.defaultPrevented) {\n return {};\n }\n};\nMapEventHandler.prototype.isEnabled = function isEnabled() {\n return true;\n};\nMapEventHandler.prototype.isActive = function isActive() {\n return false;\n};\nMapEventHandler.prototype.enable = function enable() {\n};\nMapEventHandler.prototype.disable = function disable() {\n};\nvar BlockableMapEventHandler = function BlockableMapEventHandler(map) {\n this._map = map;\n};\nBlockableMapEventHandler.prototype.reset = function reset() {\n this._delayContextMenu = false;\n delete this._contextMenuEvent;\n};\nBlockableMapEventHandler.prototype.mousemove = function mousemove(e) {\n this._map.fire(new MapMouseEvent(e.type, this._map, e));\n};\nBlockableMapEventHandler.prototype.mousedown = function mousedown() {\n this._delayContextMenu = true;\n};\nBlockableMapEventHandler.prototype.mouseup = function mouseup() {\n this._delayContextMenu = false;\n if (this._contextMenuEvent) {\n this._map.fire(new MapMouseEvent('contextmenu', this._map, this._contextMenuEvent));\n delete this._contextMenuEvent;\n }\n};\nBlockableMapEventHandler.prototype.contextmenu = function contextmenu(e) {\n if (this._delayContextMenu) {\n this._contextMenuEvent = e;\n } else {\n this._map.fire(new MapMouseEvent(e.type, this._map, e));\n }\n if (this._map.listens('contextmenu')) {\n e.preventDefault();\n }\n};\nBlockableMapEventHandler.prototype.isEnabled = function isEnabled() {\n return true;\n};\nBlockableMapEventHandler.prototype.isActive = function isActive() {\n return false;\n};\nBlockableMapEventHandler.prototype.enable = function enable() {\n};\nBlockableMapEventHandler.prototype.disable = function disable() {\n};\n\nvar BoxZoomHandler = function BoxZoomHandler(map, options) {\n this._map = map;\n this._el = map.getCanvasContainer();\n this._container = map.getContainer();\n this._clickTolerance = options.clickTolerance || 1;\n};\nBoxZoomHandler.prototype.isEnabled = function isEnabled() {\n return !!this._enabled;\n};\nBoxZoomHandler.prototype.isActive = function isActive() {\n return !!this._active;\n};\nBoxZoomHandler.prototype.enable = function enable() {\n if (this.isEnabled()) {\n return;\n }\n this._enabled = true;\n};\nBoxZoomHandler.prototype.disable = function disable() {\n if (!this.isEnabled()) {\n return;\n }\n this._enabled = false;\n};\nBoxZoomHandler.prototype.mousedown = function mousedown(e, point) {\n if (!this.isEnabled()) {\n return;\n }\n if (!(e.shiftKey && e.button === 0)) {\n return;\n }\n DOM.disableDrag();\n this._startPos = this._lastPos = point;\n this._active = true;\n};\nBoxZoomHandler.prototype.mousemoveWindow = function mousemoveWindow(e, point) {\n if (!this._active) {\n return;\n }\n var pos = point;\n if (this._lastPos.equals(pos) || !this._box && pos.dist(this._startPos) < this._clickTolerance) {\n return;\n }\n var p0 = this._startPos;\n this._lastPos = pos;\n if (!this._box) {\n this._box = DOM.create('div', 'mapboxgl-boxzoom', this._container);\n this._container.classList.add('mapboxgl-crosshair');\n this._fireEvent('boxzoomstart', e);\n }\n var minX = Math.min(p0.x, pos.x), maxX = Math.max(p0.x, pos.x), minY = Math.min(p0.y, pos.y), maxY = Math.max(p0.y, pos.y);\n DOM.setTransform(this._box, 'translate(' + minX + 'px,' + minY + 'px)');\n this._box.style.width = maxX - minX + 'px';\n this._box.style.height = maxY - minY + 'px';\n};\nBoxZoomHandler.prototype.mouseupWindow = function mouseupWindow(e, point) {\n var this$1 = this;\n if (!this._active) {\n return;\n }\n if (e.button !== 0) {\n return;\n }\n var p0 = this._startPos, p1 = point;\n this.reset();\n DOM.suppressClick();\n if (p0.x === p1.x && p0.y === p1.y) {\n this._fireEvent('boxzoomcancel', e);\n } else {\n this._map.fire(new performance.Event('boxzoomend', { originalEvent: e }));\n return {\n cameraAnimation: function (map) {\n return map.fitScreenCoordinates(p0, p1, this$1._map.getBearing(), { linear: true });\n }\n };\n }\n};\nBoxZoomHandler.prototype.keydown = function keydown(e) {\n if (!this._active) {\n return;\n }\n if (e.keyCode === 27) {\n this.reset();\n this._fireEvent('boxzoomcancel', e);\n }\n};\nBoxZoomHandler.prototype.reset = function reset() {\n this._active = false;\n this._container.classList.remove('mapboxgl-crosshair');\n if (this._box) {\n DOM.remove(this._box);\n this._box = null;\n }\n DOM.enableDrag();\n delete this._startPos;\n delete this._lastPos;\n};\nBoxZoomHandler.prototype._fireEvent = function _fireEvent(type, e) {\n return this._map.fire(new performance.Event(type, { originalEvent: e }));\n};\n\nfunction indexTouches(touches, points) {\n var obj = {};\n for (var i = 0; i < touches.length; i++) {\n obj[touches[i].identifier] = points[i];\n }\n return obj;\n}\n\nfunction getCentroid(points) {\n var sum = new performance.Point(0, 0);\n for (var i = 0, list = points; i < list.length; i += 1) {\n var point = list[i];\n sum._add(point);\n }\n return sum.div(points.length);\n}\nvar MAX_TAP_INTERVAL = 500;\nvar MAX_TOUCH_TIME = 500;\nvar MAX_DIST = 30;\nvar SingleTapRecognizer = function SingleTapRecognizer(options) {\n this.reset();\n this.numTouches = options.numTouches;\n};\nSingleTapRecognizer.prototype.reset = function reset() {\n delete this.centroid;\n delete this.startTime;\n delete this.touches;\n this.aborted = false;\n};\nSingleTapRecognizer.prototype.touchstart = function touchstart(e, points, mapTouches) {\n if (this.centroid || mapTouches.length > this.numTouches) {\n this.aborted = true;\n }\n if (this.aborted) {\n return;\n }\n if (this.startTime === undefined) {\n this.startTime = e.timeStamp;\n }\n if (mapTouches.length === this.numTouches) {\n this.centroid = getCentroid(points);\n this.touches = indexTouches(mapTouches, points);\n }\n};\nSingleTapRecognizer.prototype.touchmove = function touchmove(e, points, mapTouches) {\n if (this.aborted || !this.centroid) {\n return;\n }\n var newTouches = indexTouches(mapTouches, points);\n for (var id in this.touches) {\n var prevPos = this.touches[id];\n var pos = newTouches[id];\n if (!pos || pos.dist(prevPos) > MAX_DIST) {\n this.aborted = true;\n }\n }\n};\nSingleTapRecognizer.prototype.touchend = function touchend(e, points, mapTouches) {\n if (!this.centroid || e.timeStamp - this.startTime > MAX_TOUCH_TIME) {\n this.aborted = true;\n }\n if (mapTouches.length === 0) {\n var centroid = !this.aborted && this.centroid;\n this.reset();\n if (centroid) {\n return centroid;\n }\n }\n};\nvar TapRecognizer = function TapRecognizer(options) {\n this.singleTap = new SingleTapRecognizer(options);\n this.numTaps = options.numTaps;\n this.reset();\n};\nTapRecognizer.prototype.reset = function reset() {\n this.lastTime = Infinity;\n delete this.lastTap;\n this.count = 0;\n this.singleTap.reset();\n};\nTapRecognizer.prototype.touchstart = function touchstart(e, points, mapTouches) {\n this.singleTap.touchstart(e, points, mapTouches);\n};\nTapRecognizer.prototype.touchmove = function touchmove(e, points, mapTouches) {\n this.singleTap.touchmove(e, points, mapTouches);\n};\nTapRecognizer.prototype.touchend = function touchend(e, points, mapTouches) {\n var tap = this.singleTap.touchend(e, points, mapTouches);\n if (tap) {\n var soonEnough = e.timeStamp - this.lastTime < MAX_TAP_INTERVAL;\n var closeEnough = !this.lastTap || this.lastTap.dist(tap) < MAX_DIST;\n if (!soonEnough || !closeEnough) {\n this.reset();\n }\n this.count++;\n this.lastTime = e.timeStamp;\n this.lastTap = tap;\n if (this.count === this.numTaps) {\n this.reset();\n return tap;\n }\n }\n};\n\nvar TapZoomHandler = function TapZoomHandler() {\n this._zoomIn = new TapRecognizer({\n numTouches: 1,\n numTaps: 2\n });\n this._zoomOut = new TapRecognizer({\n numTouches: 2,\n numTaps: 1\n });\n this.reset();\n};\nTapZoomHandler.prototype.reset = function reset() {\n this._active = false;\n this._zoomIn.reset();\n this._zoomOut.reset();\n};\nTapZoomHandler.prototype.touchstart = function touchstart(e, points, mapTouches) {\n this._zoomIn.touchstart(e, points, mapTouches);\n this._zoomOut.touchstart(e, points, mapTouches);\n};\nTapZoomHandler.prototype.touchmove = function touchmove(e, points, mapTouches) {\n this._zoomIn.touchmove(e, points, mapTouches);\n this._zoomOut.touchmove(e, points, mapTouches);\n};\nTapZoomHandler.prototype.touchend = function touchend(e, points, mapTouches) {\n var this$1 = this;\n var zoomInPoint = this._zoomIn.touchend(e, points, mapTouches);\n var zoomOutPoint = this._zoomOut.touchend(e, points, mapTouches);\n if (zoomInPoint) {\n this._active = true;\n e.preventDefault();\n setTimeout(function () {\n return this$1.reset();\n }, 0);\n return {\n cameraAnimation: function (map) {\n return map.easeTo({\n duration: 300,\n zoom: map.getZoom() + 1,\n around: map.unproject(zoomInPoint)\n }, { originalEvent: e });\n }\n };\n } else if (zoomOutPoint) {\n this._active = true;\n e.preventDefault();\n setTimeout(function () {\n return this$1.reset();\n }, 0);\n return {\n cameraAnimation: function (map) {\n return map.easeTo({\n duration: 300,\n zoom: map.getZoom() - 1,\n around: map.unproject(zoomOutPoint)\n }, { originalEvent: e });\n }\n };\n }\n};\nTapZoomHandler.prototype.touchcancel = function touchcancel() {\n this.reset();\n};\nTapZoomHandler.prototype.enable = function enable() {\n this._enabled = true;\n};\nTapZoomHandler.prototype.disable = function disable() {\n this._enabled = false;\n this.reset();\n};\nTapZoomHandler.prototype.isEnabled = function isEnabled() {\n return this._enabled;\n};\nTapZoomHandler.prototype.isActive = function isActive() {\n return this._active;\n};\n\nvar LEFT_BUTTON = 0;\nvar RIGHT_BUTTON = 2;\nvar MouseHandler = function MouseHandler(options) {\n this.reset();\n this._clickTolerance = options.clickTolerance || 1;\n};\nMouseHandler.prototype.reset = function reset() {\n this._active = false;\n this._moved = false;\n delete this._lastPoint;\n delete this._eventButton;\n};\nMouseHandler.prototype._correctButton = function _correctButton(e, button) {\n return false;\n};\nMouseHandler.prototype._move = function _move(lastPoint, point) {\n return {};\n};\nMouseHandler.prototype.mousedown = function mousedown(e, point) {\n if (this._lastPoint) {\n return;\n }\n var eventButton = DOM.mouseButton(e);\n if (!this._correctButton(e, eventButton)) {\n return;\n }\n this._lastPoint = point;\n this._eventButton = eventButton;\n};\nMouseHandler.prototype.mousemoveWindow = function mousemoveWindow(e, point) {\n var lastPoint = this._lastPoint;\n if (!lastPoint) {\n return;\n }\n e.preventDefault();\n if (!this._moved && point.dist(lastPoint) < this._clickTolerance) {\n return;\n }\n this._moved = true;\n this._lastPoint = point;\n return this._move(lastPoint, point);\n};\nMouseHandler.prototype.mouseupWindow = function mouseupWindow(e) {\n var eventButton = DOM.mouseButton(e);\n if (eventButton !== this._eventButton) {\n return;\n }\n if (this._moved) {\n DOM.suppressClick();\n }\n this.reset();\n};\nMouseHandler.prototype.enable = function enable() {\n this._enabled = true;\n};\nMouseHandler.prototype.disable = function disable() {\n this._enabled = false;\n this.reset();\n};\nMouseHandler.prototype.isEnabled = function isEnabled() {\n return this._enabled;\n};\nMouseHandler.prototype.isActive = function isActive() {\n return this._active;\n};\nvar MousePanHandler = function (MouseHandler) {\n function MousePanHandler() {\n MouseHandler.apply(this, arguments);\n }\n if (MouseHandler)\n MousePanHandler.__proto__ = MouseHandler;\n MousePanHandler.prototype = Object.create(MouseHandler && MouseHandler.prototype);\n MousePanHandler.prototype.constructor = MousePanHandler;\n MousePanHandler.prototype.mousedown = function mousedown(e, point) {\n MouseHandler.prototype.mousedown.call(this, e, point);\n if (this._lastPoint) {\n this._active = true;\n }\n };\n MousePanHandler.prototype._correctButton = function _correctButton(e, button) {\n return button === LEFT_BUTTON && !e.ctrlKey;\n };\n MousePanHandler.prototype._move = function _move(lastPoint, point) {\n return {\n around: point,\n panDelta: point.sub(lastPoint)\n };\n };\n return MousePanHandler;\n}(MouseHandler);\nvar MouseRotateHandler = function (MouseHandler) {\n function MouseRotateHandler() {\n MouseHandler.apply(this, arguments);\n }\n if (MouseHandler)\n MouseRotateHandler.__proto__ = MouseHandler;\n MouseRotateHandler.prototype = Object.create(MouseHandler && MouseHandler.prototype);\n MouseRotateHandler.prototype.constructor = MouseRotateHandler;\n MouseRotateHandler.prototype._correctButton = function _correctButton(e, button) {\n return button === LEFT_BUTTON && e.ctrlKey || button === RIGHT_BUTTON;\n };\n MouseRotateHandler.prototype._move = function _move(lastPoint, point) {\n var degreesPerPixelMoved = 0.8;\n var bearingDelta = (point.x - lastPoint.x) * degreesPerPixelMoved;\n if (bearingDelta) {\n this._active = true;\n return { bearingDelta: bearingDelta };\n }\n };\n MouseRotateHandler.prototype.contextmenu = function contextmenu(e) {\n e.preventDefault();\n };\n return MouseRotateHandler;\n}(MouseHandler);\nvar MousePitchHandler = function (MouseHandler) {\n function MousePitchHandler() {\n MouseHandler.apply(this, arguments);\n }\n if (MouseHandler)\n MousePitchHandler.__proto__ = MouseHandler;\n MousePitchHandler.prototype = Object.create(MouseHandler && MouseHandler.prototype);\n MousePitchHandler.prototype.constructor = MousePitchHandler;\n MousePitchHandler.prototype._correctButton = function _correctButton(e, button) {\n return button === LEFT_BUTTON && e.ctrlKey || button === RIGHT_BUTTON;\n };\n MousePitchHandler.prototype._move = function _move(lastPoint, point) {\n var degreesPerPixelMoved = -0.5;\n var pitchDelta = (point.y - lastPoint.y) * degreesPerPixelMoved;\n if (pitchDelta) {\n this._active = true;\n return { pitchDelta: pitchDelta };\n }\n };\n MousePitchHandler.prototype.contextmenu = function contextmenu(e) {\n e.preventDefault();\n };\n return MousePitchHandler;\n}(MouseHandler);\n\nvar TouchPanHandler = function TouchPanHandler(options) {\n this._minTouches = 1;\n this._clickTolerance = options.clickTolerance || 1;\n this.reset();\n};\nTouchPanHandler.prototype.reset = function reset() {\n this._active = false;\n this._touches = {};\n this._sum = new performance.Point(0, 0);\n};\nTouchPanHandler.prototype.touchstart = function touchstart(e, points, mapTouches) {\n return this._calculateTransform(e, points, mapTouches);\n};\nTouchPanHandler.prototype.touchmove = function touchmove(e, points, mapTouches) {\n if (!this._active) {\n return;\n }\n e.preventDefault();\n return this._calculateTransform(e, points, mapTouches);\n};\nTouchPanHandler.prototype.touchend = function touchend(e, points, mapTouches) {\n this._calculateTransform(e, points, mapTouches);\n if (this._active && mapTouches.length < this._minTouches) {\n this.reset();\n }\n};\nTouchPanHandler.prototype.touchcancel = function touchcancel() {\n this.reset();\n};\nTouchPanHandler.prototype._calculateTransform = function _calculateTransform(e, points, mapTouches) {\n if (mapTouches.length > 0) {\n this._active = true;\n }\n var touches = indexTouches(mapTouches, points);\n var touchPointSum = new performance.Point(0, 0);\n var touchDeltaSum = new performance.Point(0, 0);\n var touchDeltaCount = 0;\n for (var identifier in touches) {\n var point = touches[identifier];\n var prevPoint = this._touches[identifier];\n if (prevPoint) {\n touchPointSum._add(point);\n touchDeltaSum._add(point.sub(prevPoint));\n touchDeltaCount++;\n touches[identifier] = point;\n }\n }\n this._touches = touches;\n if (touchDeltaCount < this._minTouches || !touchDeltaSum.mag()) {\n return;\n }\n var panDelta = touchDeltaSum.div(touchDeltaCount);\n this._sum._add(panDelta);\n if (this._sum.mag() < this._clickTolerance) {\n return;\n }\n var around = touchPointSum.div(touchDeltaCount);\n return {\n around: around,\n panDelta: panDelta\n };\n};\nTouchPanHandler.prototype.enable = function enable() {\n this._enabled = true;\n};\nTouchPanHandler.prototype.disable = function disable() {\n this._enabled = false;\n this.reset();\n};\nTouchPanHandler.prototype.isEnabled = function isEnabled() {\n return this._enabled;\n};\nTouchPanHandler.prototype.isActive = function isActive() {\n return this._active;\n};\n\nvar TwoTouchHandler = function TwoTouchHandler() {\n this.reset();\n};\nTwoTouchHandler.prototype.reset = function reset() {\n this._active = false;\n delete this._firstTwoTouches;\n};\nTwoTouchHandler.prototype._start = function _start(points) {\n};\nTwoTouchHandler.prototype._move = function _move(points, pinchAround, e) {\n return {};\n};\nTwoTouchHandler.prototype.touchstart = function touchstart(e, points, mapTouches) {\n if (this._firstTwoTouches || mapTouches.length < 2) {\n return;\n }\n this._firstTwoTouches = [\n mapTouches[0].identifier,\n mapTouches[1].identifier\n ];\n this._start([\n points[0],\n points[1]\n ]);\n};\nTwoTouchHandler.prototype.touchmove = function touchmove(e, points, mapTouches) {\n if (!this._firstTwoTouches) {\n return;\n }\n e.preventDefault();\n var ref = this._firstTwoTouches;\n var idA = ref[0];\n var idB = ref[1];\n var a = getTouchById(mapTouches, points, idA);\n var b = getTouchById(mapTouches, points, idB);\n if (!a || !b) {\n return;\n }\n var pinchAround = this._aroundCenter ? null : a.add(b).div(2);\n return this._move([\n a,\n b\n ], pinchAround, e);\n};\nTwoTouchHandler.prototype.touchend = function touchend(e, points, mapTouches) {\n if (!this._firstTwoTouches) {\n return;\n }\n var ref = this._firstTwoTouches;\n var idA = ref[0];\n var idB = ref[1];\n var a = getTouchById(mapTouches, points, idA);\n var b = getTouchById(mapTouches, points, idB);\n if (a && b) {\n return;\n }\n if (this._active) {\n DOM.suppressClick();\n }\n this.reset();\n};\nTwoTouchHandler.prototype.touchcancel = function touchcancel() {\n this.reset();\n};\nTwoTouchHandler.prototype.enable = function enable(options) {\n this._enabled = true;\n this._aroundCenter = !!options && options.around === 'center';\n};\nTwoTouchHandler.prototype.disable = function disable() {\n this._enabled = false;\n this.reset();\n};\nTwoTouchHandler.prototype.isEnabled = function isEnabled() {\n return this._enabled;\n};\nTwoTouchHandler.prototype.isActive = function isActive() {\n return this._active;\n};\nfunction getTouchById(mapTouches, points, identifier) {\n for (var i = 0; i < mapTouches.length; i++) {\n if (mapTouches[i].identifier === identifier) {\n return points[i];\n }\n }\n}\nvar ZOOM_THRESHOLD = 0.1;\nfunction getZoomDelta(distance, lastDistance) {\n return Math.log(distance / lastDistance) / Math.LN2;\n}\nvar TouchZoomHandler = function (TwoTouchHandler) {\n function TouchZoomHandler() {\n TwoTouchHandler.apply(this, arguments);\n }\n if (TwoTouchHandler)\n TouchZoomHandler.__proto__ = TwoTouchHandler;\n TouchZoomHandler.prototype = Object.create(TwoTouchHandler && TwoTouchHandler.prototype);\n TouchZoomHandler.prototype.constructor = TouchZoomHandler;\n TouchZoomHandler.prototype.reset = function reset() {\n TwoTouchHandler.prototype.reset.call(this);\n delete this._distance;\n delete this._startDistance;\n };\n TouchZoomHandler.prototype._start = function _start(points) {\n this._startDistance = this._distance = points[0].dist(points[1]);\n };\n TouchZoomHandler.prototype._move = function _move(points, pinchAround) {\n var lastDistance = this._distance;\n this._distance = points[0].dist(points[1]);\n if (!this._active && Math.abs(getZoomDelta(this._distance, this._startDistance)) < ZOOM_THRESHOLD) {\n return;\n }\n this._active = true;\n return {\n zoomDelta: getZoomDelta(this._distance, lastDistance),\n pinchAround: pinchAround\n };\n };\n return TouchZoomHandler;\n}(TwoTouchHandler);\nvar ROTATION_THRESHOLD = 25;\nfunction getBearingDelta(a, b) {\n return a.angleWith(b) * 180 / Math.PI;\n}\nvar TouchRotateHandler = function (TwoTouchHandler) {\n function TouchRotateHandler() {\n TwoTouchHandler.apply(this, arguments);\n }\n if (TwoTouchHandler)\n TouchRotateHandler.__proto__ = TwoTouchHandler;\n TouchRotateHandler.prototype = Object.create(TwoTouchHandler && TwoTouchHandler.prototype);\n TouchRotateHandler.prototype.constructor = TouchRotateHandler;\n TouchRotateHandler.prototype.reset = function reset() {\n TwoTouchHandler.prototype.reset.call(this);\n delete this._minDiameter;\n delete this._startVector;\n delete this._vector;\n };\n TouchRotateHandler.prototype._start = function _start(points) {\n this._startVector = this._vector = points[0].sub(points[1]);\n this._minDiameter = points[0].dist(points[1]);\n };\n TouchRotateHandler.prototype._move = function _move(points, pinchAround) {\n var lastVector = this._vector;\n this._vector = points[0].sub(points[1]);\n if (!this._active && this._isBelowThreshold(this._vector)) {\n return;\n }\n this._active = true;\n return {\n bearingDelta: getBearingDelta(this._vector, lastVector),\n pinchAround: pinchAround\n };\n };\n TouchRotateHandler.prototype._isBelowThreshold = function _isBelowThreshold(vector) {\n this._minDiameter = Math.min(this._minDiameter, vector.mag());\n var circumference = Math.PI * this._minDiameter;\n var threshold = ROTATION_THRESHOLD / circumference * 360;\n var bearingDeltaSinceStart = getBearingDelta(vector, this._startVector);\n return Math.abs(bearingDeltaSinceStart) < threshold;\n };\n return TouchRotateHandler;\n}(TwoTouchHandler);\nfunction isVertical(vector) {\n return Math.abs(vector.y) > Math.abs(vector.x);\n}\nvar ALLOWED_SINGLE_TOUCH_TIME = 100;\nvar TouchPitchHandler = function (TwoTouchHandler) {\n function TouchPitchHandler() {\n TwoTouchHandler.apply(this, arguments);\n }\n if (TwoTouchHandler)\n TouchPitchHandler.__proto__ = TwoTouchHandler;\n TouchPitchHandler.prototype = Object.create(TwoTouchHandler && TwoTouchHandler.prototype);\n TouchPitchHandler.prototype.constructor = TouchPitchHandler;\n TouchPitchHandler.prototype.reset = function reset() {\n TwoTouchHandler.prototype.reset.call(this);\n this._valid = undefined;\n delete this._firstMove;\n delete this._lastPoints;\n };\n TouchPitchHandler.prototype._start = function _start(points) {\n this._lastPoints = points;\n if (isVertical(points[0].sub(points[1]))) {\n this._valid = false;\n }\n };\n TouchPitchHandler.prototype._move = function _move(points, center, e) {\n var vectorA = points[0].sub(this._lastPoints[0]);\n var vectorB = points[1].sub(this._lastPoints[1]);\n this._valid = this.gestureBeginsVertically(vectorA, vectorB, e.timeStamp);\n if (!this._valid) {\n return;\n }\n this._lastPoints = points;\n this._active = true;\n var yDeltaAverage = (vectorA.y + vectorB.y) / 2;\n var degreesPerPixelMoved = -0.5;\n return { pitchDelta: yDeltaAverage * degreesPerPixelMoved };\n };\n TouchPitchHandler.prototype.gestureBeginsVertically = function gestureBeginsVertically(vectorA, vectorB, timeStamp) {\n if (this._valid !== undefined) {\n return this._valid;\n }\n var threshold = 2;\n var movedA = vectorA.mag() >= threshold;\n var movedB = vectorB.mag() >= threshold;\n if (!movedA && !movedB) {\n return;\n }\n if (!movedA || !movedB) {\n if (this._firstMove === undefined) {\n this._firstMove = timeStamp;\n }\n if (timeStamp - this._firstMove < ALLOWED_SINGLE_TOUCH_TIME) {\n return undefined;\n } else {\n return false;\n }\n }\n var isSameDirection = vectorA.y > 0 === vectorB.y > 0;\n return isVertical(vectorA) && isVertical(vectorB) && isSameDirection;\n };\n return TouchPitchHandler;\n}(TwoTouchHandler);\n\nvar defaultOptions = {\n panStep: 100,\n bearingStep: 15,\n pitchStep: 10\n};\nvar KeyboardHandler = function KeyboardHandler() {\n var stepOptions = defaultOptions;\n this._panStep = stepOptions.panStep;\n this._bearingStep = stepOptions.bearingStep;\n this._pitchStep = stepOptions.pitchStep;\n};\nKeyboardHandler.prototype.reset = function reset() {\n this._active = false;\n};\nKeyboardHandler.prototype.keydown = function keydown(e) {\n var this$1 = this;\n if (e.altKey || e.ctrlKey || e.metaKey) {\n return;\n }\n var zoomDir = 0;\n var bearingDir = 0;\n var pitchDir = 0;\n var xDir = 0;\n var yDir = 0;\n switch (e.keyCode) {\n case 61:\n case 107:\n case 171:\n case 187:\n zoomDir = 1;\n break;\n case 189:\n case 109:\n case 173:\n zoomDir = -1;\n break;\n case 37:\n if (e.shiftKey) {\n bearingDir = -1;\n } else {\n e.preventDefault();\n xDir = -1;\n }\n break;\n case 39:\n if (e.shiftKey) {\n bearingDir = 1;\n } else {\n e.preventDefault();\n xDir = 1;\n }\n break;\n case 38:\n if (e.shiftKey) {\n pitchDir = 1;\n } else {\n e.preventDefault();\n yDir = -1;\n }\n break;\n case 40:\n if (e.shiftKey) {\n pitchDir = -1;\n } else {\n e.preventDefault();\n yDir = 1;\n }\n break;\n default:\n return;\n }\n return {\n cameraAnimation: function (map) {\n var zoom = map.getZoom();\n map.easeTo({\n duration: 300,\n easeId: 'keyboardHandler',\n easing: easeOut,\n zoom: zoomDir ? Math.round(zoom) + zoomDir * (e.shiftKey ? 2 : 1) : zoom,\n bearing: map.getBearing() + bearingDir * this$1._bearingStep,\n pitch: map.getPitch() + pitchDir * this$1._pitchStep,\n offset: [\n -xDir * this$1._panStep,\n -yDir * this$1._panStep\n ],\n center: map.getCenter()\n }, { originalEvent: e });\n }\n };\n};\nKeyboardHandler.prototype.enable = function enable() {\n this._enabled = true;\n};\nKeyboardHandler.prototype.disable = function disable() {\n this._enabled = false;\n this.reset();\n};\nKeyboardHandler.prototype.isEnabled = function isEnabled() {\n return this._enabled;\n};\nKeyboardHandler.prototype.isActive = function isActive() {\n return this._active;\n};\nfunction easeOut(t) {\n return t * (2 - t);\n}\n\nvar wheelZoomDelta = 4.000244140625;\nvar defaultZoomRate = 1 / 100;\nvar wheelZoomRate = 1 / 450;\nvar maxScalePerFrame = 2;\nvar ScrollZoomHandler = function ScrollZoomHandler(map, handler) {\n this._map = map;\n this._el = map.getCanvasContainer();\n this._handler = handler;\n this._delta = 0;\n this._defaultZoomRate = defaultZoomRate;\n this._wheelZoomRate = wheelZoomRate;\n performance.bindAll([\n '_onWheel',\n '_onTimeout',\n '_onScrollFrame',\n '_onScrollFinished'\n ], this);\n};\nScrollZoomHandler.prototype.setZoomRate = function setZoomRate(zoomRate) {\n this._defaultZoomRate = zoomRate;\n};\nScrollZoomHandler.prototype.setWheelZoomRate = function setWheelZoomRate(wheelZoomRate) {\n this._wheelZoomRate = wheelZoomRate;\n};\nScrollZoomHandler.prototype.isEnabled = function isEnabled() {\n return !!this._enabled;\n};\nScrollZoomHandler.prototype.isActive = function isActive() {\n return !!this._active || this._finishTimeout !== undefined;\n};\nScrollZoomHandler.prototype.isZooming = function isZooming() {\n return !!this._zooming;\n};\nScrollZoomHandler.prototype.enable = function enable(options) {\n if (this.isEnabled()) {\n return;\n }\n this._enabled = true;\n this._aroundCenter = options && options.around === 'center';\n};\nScrollZoomHandler.prototype.disable = function disable() {\n if (!this.isEnabled()) {\n return;\n }\n this._enabled = false;\n};\nScrollZoomHandler.prototype.wheel = function wheel(e) {\n if (!this.isEnabled()) {\n return;\n }\n var value = e.deltaMode === performance.window.WheelEvent.DOM_DELTA_LINE ? e.deltaY * 40 : e.deltaY;\n var now = performance.browser.now(), timeDelta = now - (this._lastWheelEventTime || 0);\n this._lastWheelEventTime = now;\n if (value !== 0 && value % wheelZoomDelta === 0) {\n this._type = 'wheel';\n } else if (value !== 0 && Math.abs(value) < 4) {\n this._type = 'trackpad';\n } else if (timeDelta > 400) {\n this._type = null;\n this._lastValue = value;\n this._timeout = setTimeout(this._onTimeout, 40, e);\n } else if (!this._type) {\n this._type = Math.abs(timeDelta * value) < 200 ? 'trackpad' : 'wheel';\n if (this._timeout) {\n clearTimeout(this._timeout);\n this._timeout = null;\n value += this._lastValue;\n }\n }\n if (e.shiftKey && value) {\n value = value / 4;\n }\n if (this._type) {\n this._lastWheelEvent = e;\n this._delta -= value;\n if (!this._active) {\n this._start(e);\n }\n }\n e.preventDefault();\n};\nScrollZoomHandler.prototype._onTimeout = function _onTimeout(initialEvent) {\n this._type = 'wheel';\n this._delta -= this._lastValue;\n if (!this._active) {\n this._start(initialEvent);\n }\n};\nScrollZoomHandler.prototype._start = function _start(e) {\n if (!this._delta) {\n return;\n }\n if (this._frameId) {\n this._frameId = null;\n }\n this._active = true;\n if (!this.isZooming()) {\n this._zooming = true;\n }\n if (this._finishTimeout) {\n clearTimeout(this._finishTimeout);\n delete this._finishTimeout;\n }\n var pos = DOM.mousePos(this._el, e);\n this._around = performance.LngLat.convert(this._aroundCenter ? this._map.getCenter() : this._map.unproject(pos));\n this._aroundPoint = this._map.transform.locationPoint(this._around);\n if (!this._frameId) {\n this._frameId = true;\n this._handler._triggerRenderFrame();\n }\n};\nScrollZoomHandler.prototype.renderFrame = function renderFrame() {\n return this._onScrollFrame();\n};\nScrollZoomHandler.prototype._onScrollFrame = function _onScrollFrame() {\n var this$1 = this;\n if (!this._frameId) {\n return;\n }\n this._frameId = null;\n if (!this.isActive()) {\n return;\n }\n var tr = this._map.transform;\n if (this._delta !== 0) {\n var zoomRate = this._type === 'wheel' && Math.abs(this._delta) > wheelZoomDelta ? this._wheelZoomRate : this._defaultZoomRate;\n var scale = maxScalePerFrame / (1 + Math.exp(-Math.abs(this._delta * zoomRate)));\n if (this._delta < 0 && scale !== 0) {\n scale = 1 / scale;\n }\n var fromScale = typeof this._targetZoom === 'number' ? tr.zoomScale(this._targetZoom) : tr.scale;\n this._targetZoom = Math.min(tr.maxZoom, Math.max(tr.minZoom, tr.scaleZoom(fromScale * scale)));\n if (this._type === 'wheel') {\n this._startZoom = tr.zoom;\n this._easing = this._smoothOutEasing(200);\n }\n this._delta = 0;\n }\n var targetZoom = typeof this._targetZoom === 'number' ? this._targetZoom : tr.zoom;\n var startZoom = this._startZoom;\n var easing = this._easing;\n var finished = false;\n var zoom;\n if (this._type === 'wheel' && startZoom && easing) {\n var t = Math.min((performance.browser.now() - this._lastWheelEventTime) / 200, 1);\n var k = easing(t);\n zoom = performance.number(startZoom, targetZoom, k);\n if (t < 1) {\n if (!this._frameId) {\n this._frameId = true;\n }\n } else {\n finished = true;\n }\n } else {\n zoom = targetZoom;\n finished = true;\n }\n this._active = true;\n if (finished) {\n this._active = false;\n this._finishTimeout = setTimeout(function () {\n this$1._zooming = false;\n this$1._handler._triggerRenderFrame();\n delete this$1._targetZoom;\n delete this$1._finishTimeout;\n }, 200);\n }\n return {\n noInertia: true,\n needsRenderFrame: !finished,\n zoomDelta: zoom - tr.zoom,\n around: this._aroundPoint,\n originalEvent: this._lastWheelEvent\n };\n};\nScrollZoomHandler.prototype._smoothOutEasing = function _smoothOutEasing(duration) {\n var easing = performance.ease;\n if (this._prevEase) {\n var ease = this._prevEase, t = (performance.browser.now() - ease.start) / ease.duration, speed = ease.easing(t + 0.01) - ease.easing(t), x = 0.27 / Math.sqrt(speed * speed + 0.0001) * 0.01, y = Math.sqrt(0.27 * 0.27 - x * x);\n easing = performance.bezier(x, y, 0.25, 1);\n }\n this._prevEase = {\n start: performance.browser.now(),\n duration: duration,\n easing: easing\n };\n return easing;\n};\nScrollZoomHandler.prototype.reset = function reset() {\n this._active = false;\n};\n\nvar DoubleClickZoomHandler = function DoubleClickZoomHandler(clickZoom, TapZoom) {\n this._clickZoom = clickZoom;\n this._tapZoom = TapZoom;\n};\nDoubleClickZoomHandler.prototype.enable = function enable() {\n this._clickZoom.enable();\n this._tapZoom.enable();\n};\nDoubleClickZoomHandler.prototype.disable = function disable() {\n this._clickZoom.disable();\n this._tapZoom.disable();\n};\nDoubleClickZoomHandler.prototype.isEnabled = function isEnabled() {\n return this._clickZoom.isEnabled() && this._tapZoom.isEnabled();\n};\nDoubleClickZoomHandler.prototype.isActive = function isActive() {\n return this._clickZoom.isActive() || this._tapZoom.isActive();\n};\n\nvar ClickZoomHandler = function ClickZoomHandler() {\n this.reset();\n};\nClickZoomHandler.prototype.reset = function reset() {\n this._active = false;\n};\nClickZoomHandler.prototype.dblclick = function dblclick(e, point) {\n e.preventDefault();\n return {\n cameraAnimation: function (map) {\n map.easeTo({\n duration: 300,\n zoom: map.getZoom() + (e.shiftKey ? -1 : 1),\n around: map.unproject(point)\n }, { originalEvent: e });\n }\n };\n};\nClickZoomHandler.prototype.enable = function enable() {\n this._enabled = true;\n};\nClickZoomHandler.prototype.disable = function disable() {\n this._enabled = false;\n this.reset();\n};\nClickZoomHandler.prototype.isEnabled = function isEnabled() {\n return this._enabled;\n};\nClickZoomHandler.prototype.isActive = function isActive() {\n return this._active;\n};\n\nvar TapDragZoomHandler = function TapDragZoomHandler() {\n this._tap = new TapRecognizer({\n numTouches: 1,\n numTaps: 1\n });\n this.reset();\n};\nTapDragZoomHandler.prototype.reset = function reset() {\n this._active = false;\n delete this._swipePoint;\n delete this._swipeTouch;\n delete this._tapTime;\n this._tap.reset();\n};\nTapDragZoomHandler.prototype.touchstart = function touchstart(e, points, mapTouches) {\n if (this._swipePoint) {\n return;\n }\n if (this._tapTime && e.timeStamp - this._tapTime > MAX_TAP_INTERVAL) {\n this.reset();\n }\n if (!this._tapTime) {\n this._tap.touchstart(e, points, mapTouches);\n } else if (mapTouches.length > 0) {\n this._swipePoint = points[0];\n this._swipeTouch = mapTouches[0].identifier;\n }\n};\nTapDragZoomHandler.prototype.touchmove = function touchmove(e, points, mapTouches) {\n if (!this._tapTime) {\n this._tap.touchmove(e, points, mapTouches);\n } else if (this._swipePoint) {\n if (mapTouches[0].identifier !== this._swipeTouch) {\n return;\n }\n var newSwipePoint = points[0];\n var dist = newSwipePoint.y - this._swipePoint.y;\n this._swipePoint = newSwipePoint;\n e.preventDefault();\n this._active = true;\n return { zoomDelta: dist / 128 };\n }\n};\nTapDragZoomHandler.prototype.touchend = function touchend(e, points, mapTouches) {\n if (!this._tapTime) {\n var point = this._tap.touchend(e, points, mapTouches);\n if (point) {\n this._tapTime = e.timeStamp;\n }\n } else if (this._swipePoint) {\n if (mapTouches.length === 0) {\n this.reset();\n }\n }\n};\nTapDragZoomHandler.prototype.touchcancel = function touchcancel() {\n this.reset();\n};\nTapDragZoomHandler.prototype.enable = function enable() {\n this._enabled = true;\n};\nTapDragZoomHandler.prototype.disable = function disable() {\n this._enabled = false;\n this.reset();\n};\nTapDragZoomHandler.prototype.isEnabled = function isEnabled() {\n return this._enabled;\n};\nTapDragZoomHandler.prototype.isActive = function isActive() {\n return this._active;\n};\n\nvar DragPanHandler = function DragPanHandler(el, mousePan, touchPan) {\n this._el = el;\n this._mousePan = mousePan;\n this._touchPan = touchPan;\n};\nDragPanHandler.prototype.enable = function enable(options) {\n this._inertiaOptions = options || {};\n this._mousePan.enable();\n this._touchPan.enable();\n this._el.classList.add('mapboxgl-touch-drag-pan');\n};\nDragPanHandler.prototype.disable = function disable() {\n this._mousePan.disable();\n this._touchPan.disable();\n this._el.classList.remove('mapboxgl-touch-drag-pan');\n};\nDragPanHandler.prototype.isEnabled = function isEnabled() {\n return this._mousePan.isEnabled() && this._touchPan.isEnabled();\n};\nDragPanHandler.prototype.isActive = function isActive() {\n return this._mousePan.isActive() || this._touchPan.isActive();\n};\n\nvar DragRotateHandler = function DragRotateHandler(options, mouseRotate, mousePitch) {\n this._pitchWithRotate = options.pitchWithRotate;\n this._mouseRotate = mouseRotate;\n this._mousePitch = mousePitch;\n};\nDragRotateHandler.prototype.enable = function enable() {\n this._mouseRotate.enable();\n if (this._pitchWithRotate) {\n this._mousePitch.enable();\n }\n};\nDragRotateHandler.prototype.disable = function disable() {\n this._mouseRotate.disable();\n this._mousePitch.disable();\n};\nDragRotateHandler.prototype.isEnabled = function isEnabled() {\n return this._mouseRotate.isEnabled() && (!this._pitchWithRotate || this._mousePitch.isEnabled());\n};\nDragRotateHandler.prototype.isActive = function isActive() {\n return this._mouseRotate.isActive() || this._mousePitch.isActive();\n};\n\nvar TouchZoomRotateHandler = function TouchZoomRotateHandler(el, touchZoom, touchRotate, tapDragZoom) {\n this._el = el;\n this._touchZoom = touchZoom;\n this._touchRotate = touchRotate;\n this._tapDragZoom = tapDragZoom;\n this._rotationDisabled = false;\n this._enabled = true;\n};\nTouchZoomRotateHandler.prototype.enable = function enable(options) {\n this._touchZoom.enable(options);\n if (!this._rotationDisabled) {\n this._touchRotate.enable(options);\n }\n this._tapDragZoom.enable();\n this._el.classList.add('mapboxgl-touch-zoom-rotate');\n};\nTouchZoomRotateHandler.prototype.disable = function disable() {\n this._touchZoom.disable();\n this._touchRotate.disable();\n this._tapDragZoom.disable();\n this._el.classList.remove('mapboxgl-touch-zoom-rotate');\n};\nTouchZoomRotateHandler.prototype.isEnabled = function isEnabled() {\n return this._touchZoom.isEnabled() && (this._rotationDisabled || this._touchRotate.isEnabled()) && this._tapDragZoom.isEnabled();\n};\nTouchZoomRotateHandler.prototype.isActive = function isActive() {\n return this._touchZoom.isActive() || this._touchRotate.isActive() || this._tapDragZoom.isActive();\n};\nTouchZoomRotateHandler.prototype.disableRotation = function disableRotation() {\n this._rotationDisabled = true;\n this._touchRotate.disable();\n};\nTouchZoomRotateHandler.prototype.enableRotation = function enableRotation() {\n this._rotationDisabled = false;\n if (this._touchZoom.isEnabled()) {\n this._touchRotate.enable();\n }\n};\n\nvar isMoving = function (p) {\n return p.zoom || p.drag || p.pitch || p.rotate;\n};\nvar RenderFrameEvent = function (Event) {\n function RenderFrameEvent() {\n Event.apply(this, arguments);\n }\n if (Event)\n RenderFrameEvent.__proto__ = Event;\n RenderFrameEvent.prototype = Object.create(Event && Event.prototype);\n RenderFrameEvent.prototype.constructor = RenderFrameEvent;\n return RenderFrameEvent;\n}(performance.Event);\nfunction hasChange(result) {\n return result.panDelta && result.panDelta.mag() || result.zoomDelta || result.bearingDelta || result.pitchDelta;\n}\nvar HandlerManager = function HandlerManager(map, options) {\n this._map = map;\n this._el = this._map.getCanvasContainer();\n this._handlers = [];\n this._handlersById = {};\n this._changes = [];\n this._inertia = new HandlerInertia(map);\n this._bearingSnap = options.bearingSnap;\n this._previousActiveHandlers = {};\n this._eventsInProgress = {};\n this._addDefaultHandlers(options);\n performance.bindAll([\n 'handleEvent',\n 'handleWindowEvent'\n ], this);\n var el = this._el;\n this._listeners = [\n [\n el,\n 'touchstart',\n { passive: false }\n ],\n [\n el,\n 'touchmove',\n { passive: false }\n ],\n [\n el,\n 'touchend',\n undefined\n ],\n [\n el,\n 'touchcancel',\n undefined\n ],\n [\n el,\n 'mousedown',\n undefined\n ],\n [\n el,\n 'mousemove',\n undefined\n ],\n [\n el,\n 'mouseup',\n undefined\n ],\n [\n performance.window.document,\n 'mousemove',\n { capture: true }\n ],\n [\n performance.window.document,\n 'mouseup',\n undefined\n ],\n [\n el,\n 'mouseover',\n undefined\n ],\n [\n el,\n 'mouseout',\n undefined\n ],\n [\n el,\n 'dblclick',\n undefined\n ],\n [\n el,\n 'click',\n undefined\n ],\n [\n el,\n 'keydown',\n { capture: false }\n ],\n [\n el,\n 'keyup',\n undefined\n ],\n [\n el,\n 'wheel',\n { passive: false }\n ],\n [\n el,\n 'contextmenu',\n undefined\n ],\n [\n performance.window,\n 'blur',\n undefined\n ]\n ];\n for (var i = 0, list = this._listeners; i < list.length; i += 1) {\n var ref = list[i];\n var target = ref[0];\n var type = ref[1];\n var listenerOptions = ref[2];\n DOM.addEventListener(target, type, target === performance.window.document ? this.handleWindowEvent : this.handleEvent, listenerOptions);\n }\n};\nHandlerManager.prototype.destroy = function destroy() {\n for (var i = 0, list = this._listeners; i < list.length; i += 1) {\n var ref = list[i];\n var target = ref[0];\n var type = ref[1];\n var listenerOptions = ref[2];\n DOM.removeEventListener(target, type, target === performance.window.document ? this.handleWindowEvent : this.handleEvent, listenerOptions);\n }\n};\nHandlerManager.prototype._addDefaultHandlers = function _addDefaultHandlers(options) {\n var map = this._map;\n var el = map.getCanvasContainer();\n this._add('mapEvent', new MapEventHandler(map, options));\n var boxZoom = map.boxZoom = new BoxZoomHandler(map, options);\n this._add('boxZoom', boxZoom);\n var tapZoom = new TapZoomHandler();\n var clickZoom = new ClickZoomHandler();\n map.doubleClickZoom = new DoubleClickZoomHandler(clickZoom, tapZoom);\n this._add('tapZoom', tapZoom);\n this._add('clickZoom', clickZoom);\n var tapDragZoom = new TapDragZoomHandler();\n this._add('tapDragZoom', tapDragZoom);\n var touchPitch = map.touchPitch = new TouchPitchHandler();\n this._add('touchPitch', touchPitch);\n var mouseRotate = new MouseRotateHandler(options);\n var mousePitch = new MousePitchHandler(options);\n map.dragRotate = new DragRotateHandler(options, mouseRotate, mousePitch);\n this._add('mouseRotate', mouseRotate, ['mousePitch']);\n this._add('mousePitch', mousePitch, ['mouseRotate']);\n var mousePan = new MousePanHandler(options);\n var touchPan = new TouchPanHandler(options);\n map.dragPan = new DragPanHandler(el, mousePan, touchPan);\n this._add('mousePan', mousePan);\n this._add('touchPan', touchPan, [\n 'touchZoom',\n 'touchRotate'\n ]);\n var touchRotate = new TouchRotateHandler();\n var touchZoom = new TouchZoomHandler();\n map.touchZoomRotate = new TouchZoomRotateHandler(el, touchZoom, touchRotate, tapDragZoom);\n this._add('touchRotate', touchRotate, [\n 'touchPan',\n 'touchZoom'\n ]);\n this._add('touchZoom', touchZoom, [\n 'touchPan',\n 'touchRotate'\n ]);\n var scrollZoom = map.scrollZoom = new ScrollZoomHandler(map, this);\n this._add('scrollZoom', scrollZoom, ['mousePan']);\n var keyboard = map.keyboard = new KeyboardHandler();\n this._add('keyboard', keyboard);\n this._add('blockableMapEvent', new BlockableMapEventHandler(map));\n for (var i = 0, list = [\n 'boxZoom',\n 'doubleClickZoom',\n 'tapDragZoom',\n 'touchPitch',\n 'dragRotate',\n 'dragPan',\n 'touchZoomRotate',\n 'scrollZoom',\n 'keyboard'\n ]; i < list.length; i += 1) {\n var name = list[i];\n if (options.interactive && options[name]) {\n map[name].enable(options[name]);\n }\n }\n};\nHandlerManager.prototype._add = function _add(handlerName, handler, allowed) {\n this._handlers.push({\n handlerName: handlerName,\n handler: handler,\n allowed: allowed\n });\n this._handlersById[handlerName] = handler;\n};\nHandlerManager.prototype.stop = function stop() {\n if (this._updatingCamera) {\n return;\n }\n for (var i = 0, list = this._handlers; i < list.length; i += 1) {\n var ref = list[i];\n var handler = ref.handler;\n handler.reset();\n }\n this._inertia.clear();\n this._fireEvents({}, {});\n this._changes = [];\n};\nHandlerManager.prototype.isActive = function isActive() {\n for (var i = 0, list = this._handlers; i < list.length; i += 1) {\n var ref = list[i];\n var handler = ref.handler;\n if (handler.isActive()) {\n return true;\n }\n }\n return false;\n};\nHandlerManager.prototype.isZooming = function isZooming() {\n return !!this._eventsInProgress.zoom || this._map.scrollZoom.isZooming();\n};\nHandlerManager.prototype.isRotating = function isRotating() {\n return !!this._eventsInProgress.rotate;\n};\nHandlerManager.prototype.isMoving = function isMoving$1() {\n return Boolean(isMoving(this._eventsInProgress)) || this.isZooming();\n};\nHandlerManager.prototype._blockedByActive = function _blockedByActive(activeHandlers, allowed, myName) {\n for (var name in activeHandlers) {\n if (name === myName) {\n continue;\n }\n if (!allowed || allowed.indexOf(name) < 0) {\n return true;\n }\n }\n return false;\n};\nHandlerManager.prototype.handleWindowEvent = function handleWindowEvent(e) {\n this.handleEvent(e, e.type + 'Window');\n};\nHandlerManager.prototype._getMapTouches = function _getMapTouches(touches) {\n var mapTouches = [];\n for (var i = 0, list = touches; i < list.length; i += 1) {\n var t = list[i];\n var target = t.target;\n if (this._el.contains(target)) {\n mapTouches.push(t);\n }\n }\n return mapTouches;\n};\nHandlerManager.prototype.handleEvent = function handleEvent(e, eventName) {\n if (e.type === 'blur') {\n this.stop();\n return;\n }\n this._updatingCamera = true;\n var inputEvent = e.type === 'renderFrame' ? undefined : e;\n var mergedHandlerResult = { needsRenderFrame: false };\n var eventsInProgress = {};\n var activeHandlers = {};\n var mapTouches = e.touches ? this._getMapTouches(e.touches) : undefined;\n var points = mapTouches ? DOM.touchPos(this._el, mapTouches) : DOM.mousePos(this._el, e);\n for (var i = 0, list = this._handlers; i < list.length; i += 1) {\n var ref = list[i];\n var handlerName = ref.handlerName;\n var handler = ref.handler;\n var allowed = ref.allowed;\n if (!handler.isEnabled()) {\n continue;\n }\n var data = void 0;\n if (this._blockedByActive(activeHandlers, allowed, handlerName)) {\n handler.reset();\n } else {\n if (handler[eventName || e.type]) {\n data = handler[eventName || e.type](e, points, mapTouches);\n this.mergeHandlerResult(mergedHandlerResult, eventsInProgress, data, handlerName, inputEvent);\n if (data && data.needsRenderFrame) {\n this._triggerRenderFrame();\n }\n }\n }\n if (data || handler.isActive()) {\n activeHandlers[handlerName] = handler;\n }\n }\n var deactivatedHandlers = {};\n for (var name in this._previousActiveHandlers) {\n if (!activeHandlers[name]) {\n deactivatedHandlers[name] = inputEvent;\n }\n }\n this._previousActiveHandlers = activeHandlers;\n if (Object.keys(deactivatedHandlers).length || hasChange(mergedHandlerResult)) {\n this._changes.push([\n mergedHandlerResult,\n eventsInProgress,\n deactivatedHandlers\n ]);\n this._triggerRenderFrame();\n }\n if (Object.keys(activeHandlers).length || hasChange(mergedHandlerResult)) {\n this._map._stop(true);\n }\n this._updatingCamera = false;\n var cameraAnimation = mergedHandlerResult.cameraAnimation;\n if (cameraAnimation) {\n this._inertia.clear();\n this._fireEvents({}, {});\n this._changes = [];\n cameraAnimation(this._map);\n }\n};\nHandlerManager.prototype.mergeHandlerResult = function mergeHandlerResult(mergedHandlerResult, eventsInProgress, handlerResult, name, e) {\n if (!handlerResult) {\n return;\n }\n performance.extend(mergedHandlerResult, handlerResult);\n var eventData = {\n handlerName: name,\n originalEvent: handlerResult.originalEvent || e\n };\n if (handlerResult.zoomDelta !== undefined) {\n eventsInProgress.zoom = eventData;\n }\n if (handlerResult.panDelta !== undefined) {\n eventsInProgress.drag = eventData;\n }\n if (handlerResult.pitchDelta !== undefined) {\n eventsInProgress.pitch = eventData;\n }\n if (handlerResult.bearingDelta !== undefined) {\n eventsInProgress.rotate = eventData;\n }\n};\nHandlerManager.prototype._applyChanges = function _applyChanges() {\n var combined = {};\n var combinedEventsInProgress = {};\n var combinedDeactivatedHandlers = {};\n for (var i = 0, list = this._changes; i < list.length; i += 1) {\n var ref = list[i];\n var change = ref[0];\n var eventsInProgress = ref[1];\n var deactivatedHandlers = ref[2];\n if (change.panDelta) {\n combined.panDelta = (combined.panDelta || new performance.Point(0, 0))._add(change.panDelta);\n }\n if (change.zoomDelta) {\n combined.zoomDelta = (combined.zoomDelta || 0) + change.zoomDelta;\n }\n if (change.bearingDelta) {\n combined.bearingDelta = (combined.bearingDelta || 0) + change.bearingDelta;\n }\n if (change.pitchDelta) {\n combined.pitchDelta = (combined.pitchDelta || 0) + change.pitchDelta;\n }\n if (change.around !== undefined) {\n combined.around = change.around;\n }\n if (change.pinchAround !== undefined) {\n combined.pinchAround = change.pinchAround;\n }\n if (change.noInertia) {\n combined.noInertia = change.noInertia;\n }\n performance.extend(combinedEventsInProgress, eventsInProgress);\n performance.extend(combinedDeactivatedHandlers, deactivatedHandlers);\n }\n this._updateMapTransform(combined, combinedEventsInProgress, combinedDeactivatedHandlers);\n this._changes = [];\n};\nHandlerManager.prototype._updateMapTransform = function _updateMapTransform(combinedResult, combinedEventsInProgress, deactivatedHandlers) {\n var map = this._map;\n var tr = map.transform;\n if (!hasChange(combinedResult)) {\n return this._fireEvents(combinedEventsInProgress, deactivatedHandlers);\n }\n var panDelta = combinedResult.panDelta;\n var zoomDelta = combinedResult.zoomDelta;\n var bearingDelta = combinedResult.bearingDelta;\n var pitchDelta = combinedResult.pitchDelta;\n var around = combinedResult.around;\n var pinchAround = combinedResult.pinchAround;\n if (pinchAround !== undefined) {\n around = pinchAround;\n }\n map._stop(true);\n around = around || map.transform.centerPoint;\n var loc = tr.pointLocation(panDelta ? around.sub(panDelta) : around);\n if (bearingDelta) {\n tr.bearing += bearingDelta;\n }\n if (pitchDelta) {\n tr.pitch += pitchDelta;\n }\n if (zoomDelta) {\n tr.zoom += zoomDelta;\n }\n tr.setLocationAtPoint(loc, around);\n this._map._update();\n if (!combinedResult.noInertia) {\n this._inertia.record(combinedResult);\n }\n this._fireEvents(combinedEventsInProgress, deactivatedHandlers);\n};\nHandlerManager.prototype._fireEvents = function _fireEvents(newEventsInProgress, deactivatedHandlers) {\n var this$1 = this;\n var wasMoving = isMoving(this._eventsInProgress);\n var nowMoving = isMoving(newEventsInProgress);\n var startEvents = {};\n for (var eventName in newEventsInProgress) {\n var ref = newEventsInProgress[eventName];\n var originalEvent = ref.originalEvent;\n if (!this._eventsInProgress[eventName]) {\n startEvents[eventName + 'start'] = originalEvent;\n }\n this._eventsInProgress[eventName] = newEventsInProgress[eventName];\n }\n if (!wasMoving && nowMoving) {\n this._fireEvent('movestart', nowMoving.originalEvent);\n }\n for (var name in startEvents) {\n this._fireEvent(name, startEvents[name]);\n }\n if (newEventsInProgress.rotate) {\n this._bearingChanged = true;\n }\n if (nowMoving) {\n this._fireEvent('move', nowMoving.originalEvent);\n }\n for (var eventName$1 in newEventsInProgress) {\n var ref$1 = newEventsInProgress[eventName$1];\n var originalEvent$1 = ref$1.originalEvent;\n this._fireEvent(eventName$1, originalEvent$1);\n }\n var endEvents = {};\n var originalEndEvent;\n for (var eventName$2 in this._eventsInProgress) {\n var ref$2 = this._eventsInProgress[eventName$2];\n var handlerName = ref$2.handlerName;\n var originalEvent$2 = ref$2.originalEvent;\n if (!this._handlersById[handlerName].isActive()) {\n delete this._eventsInProgress[eventName$2];\n originalEndEvent = deactivatedHandlers[handlerName] || originalEvent$2;\n endEvents[eventName$2 + 'end'] = originalEndEvent;\n }\n }\n for (var name$1 in endEvents) {\n this._fireEvent(name$1, endEvents[name$1]);\n }\n var stillMoving = isMoving(this._eventsInProgress);\n if ((wasMoving || nowMoving) && !stillMoving) {\n this._updatingCamera = true;\n var inertialEase = this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions);\n var shouldSnapToNorth = function (bearing) {\n return bearing !== 0 && -this$1._bearingSnap < bearing && bearing < this$1._bearingSnap;\n };\n if (inertialEase) {\n if (shouldSnapToNorth(inertialEase.bearing || this._map.getBearing())) {\n inertialEase.bearing = 0;\n }\n this._map.easeTo(inertialEase, { originalEvent: originalEndEvent });\n } else {\n this._map.fire(new performance.Event('moveend', { originalEvent: originalEndEvent }));\n if (shouldSnapToNorth(this._map.getBearing())) {\n this._map.resetNorth();\n }\n }\n this._bearingChanged = false;\n this._updatingCamera = false;\n }\n};\nHandlerManager.prototype._fireEvent = function _fireEvent(type, e) {\n this._map.fire(new performance.Event(type, e ? { originalEvent: e } : {}));\n};\nHandlerManager.prototype._triggerRenderFrame = function _triggerRenderFrame() {\n var this$1 = this;\n if (this._frameId === undefined) {\n this._frameId = this._map._requestRenderFrame(function (timeStamp) {\n delete this$1._frameId;\n this$1.handleEvent(new RenderFrameEvent('renderFrame', { timeStamp: timeStamp }));\n this$1._applyChanges();\n });\n }\n};\n\nvar Camera = function (Evented) {\n function Camera(transform, options) {\n Evented.call(this);\n this._moving = false;\n this._zooming = false;\n this.transform = transform;\n this._bearingSnap = options.bearingSnap;\n performance.bindAll(['_renderFrameCallback'], this);\n }\n if (Evented)\n Camera.__proto__ = Evented;\n Camera.prototype = Object.create(Evented && Evented.prototype);\n Camera.prototype.constructor = Camera;\n Camera.prototype.getCenter = function getCenter() {\n return new performance.LngLat(this.transform.center.lng, this.transform.center.lat);\n };\n Camera.prototype.setCenter = function setCenter(center, eventData) {\n return this.jumpTo({ center: center }, eventData);\n };\n Camera.prototype.panBy = function panBy(offset, options, eventData) {\n offset = performance.Point.convert(offset).mult(-1);\n return this.panTo(this.transform.center, performance.extend({ offset: offset }, options), eventData);\n };\n Camera.prototype.panTo = function panTo(lnglat, options, eventData) {\n return this.easeTo(performance.extend({ center: lnglat }, options), eventData);\n };\n Camera.prototype.getZoom = function getZoom() {\n return this.transform.zoom;\n };\n Camera.prototype.setZoom = function setZoom(zoom, eventData) {\n this.jumpTo({ zoom: zoom }, eventData);\n return this;\n };\n Camera.prototype.zoomTo = function zoomTo(zoom, options, eventData) {\n return this.easeTo(performance.extend({ zoom: zoom }, options), eventData);\n };\n Camera.prototype.zoomIn = function zoomIn(options, eventData) {\n this.zoomTo(this.getZoom() + 1, options, eventData);\n return this;\n };\n Camera.prototype.zoomOut = function zoomOut(options, eventData) {\n this.zoomTo(this.getZoom() - 1, options, eventData);\n return this;\n };\n Camera.prototype.getBearing = function getBearing() {\n return this.transform.bearing;\n };\n Camera.prototype.setBearing = function setBearing(bearing, eventData) {\n this.jumpTo({ bearing: bearing }, eventData);\n return this;\n };\n Camera.prototype.getPadding = function getPadding() {\n return this.transform.padding;\n };\n Camera.prototype.setPadding = function setPadding(padding, eventData) {\n this.jumpTo({ padding: padding }, eventData);\n return this;\n };\n Camera.prototype.rotateTo = function rotateTo(bearing, options, eventData) {\n return this.easeTo(performance.extend({ bearing: bearing }, options), eventData);\n };\n Camera.prototype.resetNorth = function resetNorth(options, eventData) {\n this.rotateTo(0, performance.extend({ duration: 1000 }, options), eventData);\n return this;\n };\n Camera.prototype.resetNorthPitch = function resetNorthPitch(options, eventData) {\n this.easeTo(performance.extend({\n bearing: 0,\n pitch: 0,\n duration: 1000\n }, options), eventData);\n return this;\n };\n Camera.prototype.snapToNorth = function snapToNorth(options, eventData) {\n if (Math.abs(this.getBearing()) < this._bearingSnap) {\n return this.resetNorth(options, eventData);\n }\n return this;\n };\n Camera.prototype.getPitch = function getPitch() {\n return this.transform.pitch;\n };\n Camera.prototype.setPitch = function setPitch(pitch, eventData) {\n this.jumpTo({ pitch: pitch }, eventData);\n return this;\n };\n Camera.prototype.cameraForBounds = function cameraForBounds(bounds, options) {\n bounds = performance.LngLatBounds.convert(bounds);\n return this._cameraForBoxAndBearing(bounds.getNorthWest(), bounds.getSouthEast(), 0, options);\n };\n Camera.prototype._cameraForBoxAndBearing = function _cameraForBoxAndBearing(p0, p1, bearing, options) {\n var defaultPadding = {\n top: 0,\n bottom: 0,\n right: 0,\n left: 0\n };\n options = performance.extend({\n padding: defaultPadding,\n offset: [\n 0,\n 0\n ],\n maxZoom: this.transform.maxZoom\n }, options);\n if (typeof options.padding === 'number') {\n var p = options.padding;\n options.padding = {\n top: p,\n bottom: p,\n right: p,\n left: p\n };\n }\n options.padding = performance.extend(defaultPadding, options.padding);\n var tr = this.transform;\n var edgePadding = tr.padding;\n var p0world = tr.project(performance.LngLat.convert(p0));\n var p1world = tr.project(performance.LngLat.convert(p1));\n var p0rotated = p0world.rotate(-bearing * Math.PI / 180);\n var p1rotated = p1world.rotate(-bearing * Math.PI / 180);\n var upperRight = new performance.Point(Math.max(p0rotated.x, p1rotated.x), Math.max(p0rotated.y, p1rotated.y));\n var lowerLeft = new performance.Point(Math.min(p0rotated.x, p1rotated.x), Math.min(p0rotated.y, p1rotated.y));\n var size = upperRight.sub(lowerLeft);\n var scaleX = (tr.width - (edgePadding.left + edgePadding.right + options.padding.left + options.padding.right)) / size.x;\n var scaleY = (tr.height - (edgePadding.top + edgePadding.bottom + options.padding.top + options.padding.bottom)) / size.y;\n if (scaleY < 0 || scaleX < 0) {\n performance.warnOnce('Map cannot fit within canvas with the given bounds, padding, and/or offset.');\n return;\n }\n var zoom = Math.min(tr.scaleZoom(tr.scale * Math.min(scaleX, scaleY)), options.maxZoom);\n var offset = performance.Point.convert(options.offset);\n var paddingOffsetX = (options.padding.left - options.padding.right) / 2;\n var paddingOffsetY = (options.padding.top - options.padding.bottom) / 2;\n var offsetAtInitialZoom = new performance.Point(offset.x + paddingOffsetX, offset.y + paddingOffsetY);\n var offsetAtFinalZoom = offsetAtInitialZoom.mult(tr.scale / tr.zoomScale(zoom));\n var center = tr.unproject(p0world.add(p1world).div(2).sub(offsetAtFinalZoom));\n return {\n center: center,\n zoom: zoom,\n bearing: bearing\n };\n };\n Camera.prototype.fitBounds = function fitBounds(bounds, options, eventData) {\n return this._fitInternal(this.cameraForBounds(bounds, options), options, eventData);\n };\n Camera.prototype.fitScreenCoordinates = function fitScreenCoordinates(p0, p1, bearing, options, eventData) {\n return this._fitInternal(this._cameraForBoxAndBearing(this.transform.pointLocation(performance.Point.convert(p0)), this.transform.pointLocation(performance.Point.convert(p1)), bearing, options), options, eventData);\n };\n Camera.prototype._fitInternal = function _fitInternal(calculatedOptions, options, eventData) {\n if (!calculatedOptions) {\n return this;\n }\n options = performance.extend(calculatedOptions, options);\n delete options.padding;\n return options.linear ? this.easeTo(options, eventData) : this.flyTo(options, eventData);\n };\n Camera.prototype.jumpTo = function jumpTo(options, eventData) {\n this.stop();\n var tr = this.transform;\n var zoomChanged = false, bearingChanged = false, pitchChanged = false;\n if ('zoom' in options && tr.zoom !== +options.zoom) {\n zoomChanged = true;\n tr.zoom = +options.zoom;\n }\n if (options.center !== undefined) {\n tr.center = performance.LngLat.convert(options.center);\n }\n if ('bearing' in options && tr.bearing !== +options.bearing) {\n bearingChanged = true;\n tr.bearing = +options.bearing;\n }\n if ('pitch' in options && tr.pitch !== +options.pitch) {\n pitchChanged = true;\n tr.pitch = +options.pitch;\n }\n if (options.padding != null && !tr.isPaddingEqual(options.padding)) {\n tr.padding = options.padding;\n }\n this.fire(new performance.Event('movestart', eventData)).fire(new performance.Event('move', eventData));\n if (zoomChanged) {\n this.fire(new performance.Event('zoomstart', eventData)).fire(new performance.Event('zoom', eventData)).fire(new performance.Event('zoomend', eventData));\n }\n if (bearingChanged) {\n this.fire(new performance.Event('rotatestart', eventData)).fire(new performance.Event('rotate', eventData)).fire(new performance.Event('rotateend', eventData));\n }\n if (pitchChanged) {\n this.fire(new performance.Event('pitchstart', eventData)).fire(new performance.Event('pitch', eventData)).fire(new performance.Event('pitchend', eventData));\n }\n return this.fire(new performance.Event('moveend', eventData));\n };\n Camera.prototype.easeTo = function easeTo(options, eventData) {\n var this$1 = this;\n this._stop(false, options.easeId);\n options = performance.extend({\n offset: [\n 0,\n 0\n ],\n duration: 500,\n easing: performance.ease\n }, options);\n if (options.animate === false || !options.essential && performance.browser.prefersReducedMotion) {\n options.duration = 0;\n }\n var tr = this.transform, startZoom = this.getZoom(), startBearing = this.getBearing(), startPitch = this.getPitch(), startPadding = this.getPadding(), zoom = 'zoom' in options ? +options.zoom : startZoom, bearing = 'bearing' in options ? this._normalizeBearing(options.bearing, startBearing) : startBearing, pitch = 'pitch' in options ? +options.pitch : startPitch, padding = 'padding' in options ? options.padding : tr.padding;\n var offsetAsPoint = performance.Point.convert(options.offset);\n var pointAtOffset = tr.centerPoint.add(offsetAsPoint);\n var locationAtOffset = tr.pointLocation(pointAtOffset);\n var center = performance.LngLat.convert(options.center || locationAtOffset);\n this._normalizeCenter(center);\n var from = tr.project(locationAtOffset);\n var delta = tr.project(center).sub(from);\n var finalScale = tr.zoomScale(zoom - startZoom);\n var around, aroundPoint;\n if (options.around) {\n around = performance.LngLat.convert(options.around);\n aroundPoint = tr.locationPoint(around);\n }\n var currently = {\n moving: this._moving,\n zooming: this._zooming,\n rotating: this._rotating,\n pitching: this._pitching\n };\n this._zooming = this._zooming || zoom !== startZoom;\n this._rotating = this._rotating || startBearing !== bearing;\n this._pitching = this._pitching || pitch !== startPitch;\n this._padding = !tr.isPaddingEqual(padding);\n this._easeId = options.easeId;\n this._prepareEase(eventData, options.noMoveStart, currently);\n clearTimeout(this._easeEndTimeoutID);\n this._ease(function (k) {\n if (this$1._zooming) {\n tr.zoom = performance.number(startZoom, zoom, k);\n }\n if (this$1._rotating) {\n tr.bearing = performance.number(startBearing, bearing, k);\n }\n if (this$1._pitching) {\n tr.pitch = performance.number(startPitch, pitch, k);\n }\n if (this$1._padding) {\n tr.interpolatePadding(startPadding, padding, k);\n pointAtOffset = tr.centerPoint.add(offsetAsPoint);\n }\n if (around) {\n tr.setLocationAtPoint(around, aroundPoint);\n } else {\n var scale = tr.zoomScale(tr.zoom - startZoom);\n var base = zoom > startZoom ? Math.min(2, finalScale) : Math.max(0.5, finalScale);\n var speedup = Math.pow(base, 1 - k);\n var newCenter = tr.unproject(from.add(delta.mult(k * speedup)).mult(scale));\n tr.setLocationAtPoint(tr.renderWorldCopies ? newCenter.wrap() : newCenter, pointAtOffset);\n }\n this$1._fireMoveEvents(eventData);\n }, function (interruptingEaseId) {\n this$1._afterEase(eventData, interruptingEaseId);\n }, options);\n return this;\n };\n Camera.prototype._prepareEase = function _prepareEase(eventData, noMoveStart, currently) {\n if (currently === void 0)\n currently = {};\n this._moving = true;\n if (!noMoveStart && !currently.moving) {\n this.fire(new performance.Event('movestart', eventData));\n }\n if (this._zooming && !currently.zooming) {\n this.fire(new performance.Event('zoomstart', eventData));\n }\n if (this._rotating && !currently.rotating) {\n this.fire(new performance.Event('rotatestart', eventData));\n }\n if (this._pitching && !currently.pitching) {\n this.fire(new performance.Event('pitchstart', eventData));\n }\n };\n Camera.prototype._fireMoveEvents = function _fireMoveEvents(eventData) {\n this.fire(new performance.Event('move', eventData));\n if (this._zooming) {\n this.fire(new performance.Event('zoom', eventData));\n }\n if (this._rotating) {\n this.fire(new performance.Event('rotate', eventData));\n }\n if (this._pitching) {\n this.fire(new performance.Event('pitch', eventData));\n }\n };\n Camera.prototype._afterEase = function _afterEase(eventData, easeId) {\n if (this._easeId && easeId && this._easeId === easeId) {\n return;\n }\n delete this._easeId;\n var wasZooming = this._zooming;\n var wasRotating = this._rotating;\n var wasPitching = this._pitching;\n this._moving = false;\n this._zooming = false;\n this._rotating = false;\n this._pitching = false;\n this._padding = false;\n if (wasZooming) {\n this.fire(new performance.Event('zoomend', eventData));\n }\n if (wasRotating) {\n this.fire(new performance.Event('rotateend', eventData));\n }\n if (wasPitching) {\n this.fire(new performance.Event('pitchend', eventData));\n }\n this.fire(new performance.Event('moveend', eventData));\n };\n Camera.prototype.flyTo = function flyTo(options, eventData) {\n var this$1 = this;\n if (!options.essential && performance.browser.prefersReducedMotion) {\n var coercedOptions = performance.pick(options, [\n 'center',\n 'zoom',\n 'bearing',\n 'pitch',\n 'around'\n ]);\n return this.jumpTo(coercedOptions, eventData);\n }\n this.stop();\n options = performance.extend({\n offset: [\n 0,\n 0\n ],\n speed: 1.2,\n curve: 1.42,\n easing: performance.ease\n }, options);\n var tr = this.transform, startZoom = this.getZoom(), startBearing = this.getBearing(), startPitch = this.getPitch(), startPadding = this.getPadding();\n var zoom = 'zoom' in options ? performance.clamp(+options.zoom, tr.minZoom, tr.maxZoom) : startZoom;\n var bearing = 'bearing' in options ? this._normalizeBearing(options.bearing, startBearing) : startBearing;\n var pitch = 'pitch' in options ? +options.pitch : startPitch;\n var padding = 'padding' in options ? options.padding : tr.padding;\n var scale = tr.zoomScale(zoom - startZoom);\n var offsetAsPoint = performance.Point.convert(options.offset);\n var pointAtOffset = tr.centerPoint.add(offsetAsPoint);\n var locationAtOffset = tr.pointLocation(pointAtOffset);\n var center = performance.LngLat.convert(options.center || locationAtOffset);\n this._normalizeCenter(center);\n var from = tr.project(locationAtOffset);\n var delta = tr.project(center).sub(from);\n var rho = options.curve;\n var w0 = Math.max(tr.width, tr.height), w1 = w0 / scale, u1 = delta.mag();\n if ('minZoom' in options) {\n var minZoom = performance.clamp(Math.min(options.minZoom, startZoom, zoom), tr.minZoom, tr.maxZoom);\n var wMax = w0 / tr.zoomScale(minZoom - startZoom);\n rho = Math.sqrt(wMax / u1 * 2);\n }\n var rho2 = rho * rho;\n function r(i) {\n var b = (w1 * w1 - w0 * w0 + (i ? -1 : 1) * rho2 * rho2 * u1 * u1) / (2 * (i ? w1 : w0) * rho2 * u1);\n return Math.log(Math.sqrt(b * b + 1) - b);\n }\n function sinh(n) {\n return (Math.exp(n) - Math.exp(-n)) / 2;\n }\n function cosh(n) {\n return (Math.exp(n) + Math.exp(-n)) / 2;\n }\n function tanh(n) {\n return sinh(n) / cosh(n);\n }\n var r0 = r(0);\n var w = function (s) {\n return cosh(r0) / cosh(r0 + rho * s);\n };\n var u = function (s) {\n return w0 * ((cosh(r0) * tanh(r0 + rho * s) - sinh(r0)) / rho2) / u1;\n };\n var S = (r(1) - r0) / rho;\n if (Math.abs(u1) < 0.000001 || !isFinite(S)) {\n if (Math.abs(w0 - w1) < 0.000001) {\n return this.easeTo(options, eventData);\n }\n var k = w1 < w0 ? -1 : 1;\n S = Math.abs(Math.log(w1 / w0)) / rho;\n u = function () {\n return 0;\n };\n w = function (s) {\n return Math.exp(k * rho * s);\n };\n }\n if ('duration' in options) {\n options.duration = +options.duration;\n } else {\n var V = 'screenSpeed' in options ? +options.screenSpeed / rho : +options.speed;\n options.duration = 1000 * S / V;\n }\n if (options.maxDuration && options.duration > options.maxDuration) {\n options.duration = 0;\n }\n this._zooming = true;\n this._rotating = startBearing !== bearing;\n this._pitching = pitch !== startPitch;\n this._padding = !tr.isPaddingEqual(padding);\n this._prepareEase(eventData, false);\n this._ease(function (k) {\n var s = k * S;\n var scale = 1 / w(s);\n tr.zoom = k === 1 ? zoom : startZoom + tr.scaleZoom(scale);\n if (this$1._rotating) {\n tr.bearing = performance.number(startBearing, bearing, k);\n }\n if (this$1._pitching) {\n tr.pitch = performance.number(startPitch, pitch, k);\n }\n if (this$1._padding) {\n tr.interpolatePadding(startPadding, padding, k);\n pointAtOffset = tr.centerPoint.add(offsetAsPoint);\n }\n var newCenter = k === 1 ? center : tr.unproject(from.add(delta.mult(u(s))).mult(scale));\n tr.setLocationAtPoint(tr.renderWorldCopies ? newCenter.wrap() : newCenter, pointAtOffset);\n this$1._fireMoveEvents(eventData);\n }, function () {\n return this$1._afterEase(eventData);\n }, options);\n return this;\n };\n Camera.prototype.isEasing = function isEasing() {\n return !!this._easeFrameId;\n };\n Camera.prototype.stop = function stop() {\n return this._stop();\n };\n Camera.prototype._stop = function _stop(allowGestures, easeId) {\n if (this._easeFrameId) {\n this._cancelRenderFrame(this._easeFrameId);\n delete this._easeFrameId;\n delete this._onEaseFrame;\n }\n if (this._onEaseEnd) {\n var onEaseEnd = this._onEaseEnd;\n delete this._onEaseEnd;\n onEaseEnd.call(this, easeId);\n }\n if (!allowGestures) {\n var handlers = this.handlers;\n if (handlers) {\n handlers.stop();\n }\n }\n return this;\n };\n Camera.prototype._ease = function _ease(frame, finish, options) {\n if (options.animate === false || options.duration === 0) {\n frame(1);\n finish();\n } else {\n this._easeStart = performance.browser.now();\n this._easeOptions = options;\n this._onEaseFrame = frame;\n this._onEaseEnd = finish;\n this._easeFrameId = this._requestRenderFrame(this._renderFrameCallback);\n }\n };\n Camera.prototype._renderFrameCallback = function _renderFrameCallback() {\n var t = Math.min((performance.browser.now() - this._easeStart) / this._easeOptions.duration, 1);\n this._onEaseFrame(this._easeOptions.easing(t));\n if (t < 1) {\n this._easeFrameId = this._requestRenderFrame(this._renderFrameCallback);\n } else {\n this.stop();\n }\n };\n Camera.prototype._normalizeBearing = function _normalizeBearing(bearing, currentBearing) {\n bearing = performance.wrap(bearing, -180, 180);\n var diff = Math.abs(bearing - currentBearing);\n if (Math.abs(bearing - 360 - currentBearing) < diff) {\n bearing -= 360;\n }\n if (Math.abs(bearing + 360 - currentBearing) < diff) {\n bearing += 360;\n }\n return bearing;\n };\n Camera.prototype._normalizeCenter = function _normalizeCenter(center) {\n var tr = this.transform;\n if (!tr.renderWorldCopies || tr.lngRange) {\n return;\n }\n var delta = center.lng - tr.center.lng;\n center.lng += delta > 180 ? -360 : delta < -180 ? 360 : 0;\n };\n return Camera;\n}(performance.Evented);\n\nvar AttributionControl = function AttributionControl(options) {\n if (options === void 0)\n options = {};\n this.options = options;\n performance.bindAll([\n '_updateEditLink',\n '_updateData',\n '_updateCompact'\n ], this);\n};\nAttributionControl.prototype.getDefaultPosition = function getDefaultPosition() {\n return 'bottom-right';\n};\nAttributionControl.prototype.onAdd = function onAdd(map) {\n var compact = this.options && this.options.compact;\n this._map = map;\n this._container = DOM.create('div', 'mapboxgl-ctrl mapboxgl-ctrl-attrib');\n this._innerContainer = DOM.create('div', 'mapboxgl-ctrl-attrib-inner', this._container);\n if (compact) {\n this._container.classList.add('mapboxgl-compact');\n }\n this._updateAttributions();\n this._updateEditLink();\n this._map.on('styledata', this._updateData);\n this._map.on('sourcedata', this._updateData);\n this._map.on('moveend', this._updateEditLink);\n if (compact === undefined) {\n this._map.on('resize', this._updateCompact);\n this._updateCompact();\n }\n return this._container;\n};\nAttributionControl.prototype.onRemove = function onRemove() {\n DOM.remove(this._container);\n this._map.off('styledata', this._updateData);\n this._map.off('sourcedata', this._updateData);\n this._map.off('moveend', this._updateEditLink);\n this._map.off('resize', this._updateCompact);\n this._map = undefined;\n this._attribHTML = undefined;\n};\nAttributionControl.prototype._updateEditLink = function _updateEditLink() {\n var editLink = this._editLink;\n if (!editLink) {\n editLink = this._editLink = this._container.querySelector('.mapbox-improve-map');\n }\n var params = [\n {\n key: 'owner',\n value: this.styleOwner\n },\n {\n key: 'id',\n value: this.styleId\n },\n {\n key: 'access_token',\n value: this._map._requestManager._customAccessToken || performance.config.ACCESS_TOKEN\n }\n ];\n if (editLink) {\n var paramString = params.reduce(function (acc, next, i) {\n if (next.value) {\n acc += next.key + '=' + next.value + (i < params.length - 1 ? '&' : '');\n }\n return acc;\n }, '?');\n editLink.href = performance.config.FEEDBACK_URL + '/' + paramString + (this._map._hash ? this._map._hash.getHashString(true) : '');\n editLink.rel = 'noopener nofollow';\n }\n};\nAttributionControl.prototype._updateData = function _updateData(e) {\n if (e && (e.sourceDataType === 'metadata' || e.dataType === 'style')) {\n this._updateAttributions();\n this._updateEditLink();\n }\n};\nAttributionControl.prototype._updateAttributions = function _updateAttributions() {\n if (!this._map.style) {\n return;\n }\n var attributions = [];\n if (this.options.customAttribution) {\n if (Array.isArray(this.options.customAttribution)) {\n attributions = attributions.concat(this.options.customAttribution.map(function (attribution) {\n if (typeof attribution !== 'string') {\n return '';\n }\n return attribution;\n }));\n } else if (typeof this.options.customAttribution === 'string') {\n attributions.push(this.options.customAttribution);\n }\n }\n if (this._map.style.stylesheet) {\n var stylesheet = this._map.style.stylesheet;\n this.styleOwner = stylesheet.owner;\n this.styleId = stylesheet.id;\n }\n var sourceCaches = this._map.style.sourceCaches;\n for (var id in sourceCaches) {\n var sourceCache = sourceCaches[id];\n if (sourceCache.used) {\n var source = sourceCache.getSource();\n if (source.attribution && attributions.indexOf(source.attribution) < 0) {\n attributions.push(source.attribution);\n }\n }\n }\n attributions.sort(function (a, b) {\n return a.length - b.length;\n });\n attributions = attributions.filter(function (attrib, i) {\n for (var j = i + 1; j < attributions.length; j++) {\n if (attributions[j].indexOf(attrib) >= 0) {\n return false;\n }\n }\n return true;\n });\n var attribHTML = attributions.join(' | ');\n if (attribHTML === this._attribHTML) {\n return;\n }\n this._attribHTML = attribHTML;\n if (attributions.length) {\n this._innerContainer.innerHTML = attribHTML;\n this._container.classList.remove('mapboxgl-attrib-empty');\n } else {\n this._container.classList.add('mapboxgl-attrib-empty');\n }\n this._editLink = null;\n};\nAttributionControl.prototype._updateCompact = function _updateCompact() {\n if (this._map.getCanvasContainer().offsetWidth <= 640) {\n this._container.classList.add('mapboxgl-compact');\n } else {\n this._container.classList.remove('mapboxgl-compact');\n }\n};\n\nvar LogoControl = function LogoControl() {\n performance.bindAll(['_updateLogo'], this);\n performance.bindAll(['_updateCompact'], this);\n};\nLogoControl.prototype.onAdd = function onAdd(map) {\n this._map = map;\n this._container = DOM.create('div', 'mapboxgl-ctrl');\n var anchor = DOM.create('a', 'mapboxgl-ctrl-logo');\n anchor.target = '_blank';\n anchor.rel = 'noopener nofollow';\n anchor.href = 'https://www.mapbox.com/';\n anchor.setAttribute('aria-label', this._map._getUIString('LogoControl.Title'));\n anchor.setAttribute('rel', 'noopener nofollow');\n this._container.appendChild(anchor);\n this._container.style.display = 'none';\n this._map.on('sourcedata', this._updateLogo);\n this._updateLogo();\n this._map.on('resize', this._updateCompact);\n this._updateCompact();\n return this._container;\n};\nLogoControl.prototype.onRemove = function onRemove() {\n DOM.remove(this._container);\n this._map.off('sourcedata', this._updateLogo);\n this._map.off('resize', this._updateCompact);\n};\nLogoControl.prototype.getDefaultPosition = function getDefaultPosition() {\n return 'bottom-left';\n};\nLogoControl.prototype._updateLogo = function _updateLogo(e) {\n if (!e || e.sourceDataType === 'metadata') {\n this._container.style.display = this._logoRequired() ? 'block' : 'none';\n }\n};\nLogoControl.prototype._logoRequired = function _logoRequired() {\n if (!this._map.style) {\n return;\n }\n var sourceCaches = this._map.style.sourceCaches;\n for (var id in sourceCaches) {\n var source = sourceCaches[id].getSource();\n if (source.mapbox_logo) {\n return true;\n }\n }\n return false;\n};\nLogoControl.prototype._updateCompact = function _updateCompact() {\n var containerChildren = this._container.children;\n if (containerChildren.length) {\n var anchor = containerChildren[0];\n if (this._map.getCanvasContainer().offsetWidth < 250) {\n anchor.classList.add('mapboxgl-compact');\n } else {\n anchor.classList.remove('mapboxgl-compact');\n }\n }\n};\n\nvar TaskQueue = function TaskQueue() {\n this._queue = [];\n this._id = 0;\n this._cleared = false;\n this._currentlyRunning = false;\n};\nTaskQueue.prototype.add = function add(callback) {\n var id = ++this._id;\n var queue = this._queue;\n queue.push({\n callback: callback,\n id: id,\n cancelled: false\n });\n return id;\n};\nTaskQueue.prototype.remove = function remove(id) {\n var running = this._currentlyRunning;\n var queue = running ? this._queue.concat(running) : this._queue;\n for (var i = 0, list = queue; i < list.length; i += 1) {\n var task = list[i];\n if (task.id === id) {\n task.cancelled = true;\n return;\n }\n }\n};\nTaskQueue.prototype.run = function run(timeStamp) {\n if (timeStamp === void 0)\n timeStamp = 0;\n var queue = this._currentlyRunning = this._queue;\n this._queue = [];\n for (var i = 0, list = queue; i < list.length; i += 1) {\n var task = list[i];\n if (task.cancelled) {\n continue;\n }\n task.callback(timeStamp);\n if (this._cleared) {\n break;\n }\n }\n this._cleared = false;\n this._currentlyRunning = false;\n};\nTaskQueue.prototype.clear = function clear() {\n if (this._currentlyRunning) {\n this._cleared = true;\n }\n this._queue = [];\n};\n\nvar defaultLocale = {\n 'FullscreenControl.Enter': 'Enter fullscreen',\n 'FullscreenControl.Exit': 'Exit fullscreen',\n 'GeolocateControl.FindMyLocation': 'Find my location',\n 'GeolocateControl.LocationNotAvailable': 'Location not available',\n 'LogoControl.Title': 'Mapbox logo',\n 'NavigationControl.ResetBearing': 'Reset bearing to north',\n 'NavigationControl.ZoomIn': 'Zoom in',\n 'NavigationControl.ZoomOut': 'Zoom out',\n 'ScaleControl.Feet': 'ft',\n 'ScaleControl.Meters': 'm',\n 'ScaleControl.Kilometers': 'km',\n 'ScaleControl.Miles': 'mi',\n 'ScaleControl.NauticalMiles': 'nm'\n};\n\nvar HTMLImageElement = performance.window.HTMLImageElement;\nvar HTMLElement = performance.window.HTMLElement;\nvar ImageBitmap = performance.window.ImageBitmap;\nvar defaultMinZoom = -2;\nvar defaultMaxZoom = 22;\nvar defaultMinPitch = 0;\nvar defaultMaxPitch = 60;\nvar defaultOptions$1 = {\n center: [\n 0,\n 0\n ],\n zoom: 0,\n bearing: 0,\n pitch: 0,\n minZoom: defaultMinZoom,\n maxZoom: defaultMaxZoom,\n minPitch: defaultMinPitch,\n maxPitch: defaultMaxPitch,\n interactive: true,\n scrollZoom: true,\n boxZoom: true,\n dragRotate: true,\n dragPan: true,\n keyboard: true,\n doubleClickZoom: true,\n touchZoomRotate: true,\n touchPitch: true,\n bearingSnap: 7,\n clickTolerance: 3,\n pitchWithRotate: true,\n hash: false,\n attributionControl: true,\n failIfMajorPerformanceCaveat: false,\n preserveDrawingBuffer: false,\n trackResize: true,\n renderWorldCopies: true,\n refreshExpiredTiles: true,\n maxTileCacheSize: null,\n localIdeographFontFamily: 'sans-serif',\n transformRequest: null,\n accessToken: null,\n fadeDuration: 300,\n crossSourceCollisions: true\n};\nvar Map = function (Camera) {\n function Map(options) {\n var this$1 = this;\n options = performance.extend({}, defaultOptions$1, options);\n if (options.minZoom != null && options.maxZoom != null && options.minZoom > options.maxZoom) {\n throw new Error('maxZoom must be greater than or equal to minZoom');\n }\n if (options.minPitch != null && options.maxPitch != null && options.minPitch > options.maxPitch) {\n throw new Error('maxPitch must be greater than or equal to minPitch');\n }\n if (options.minPitch != null && options.minPitch < defaultMinPitch) {\n throw new Error('minPitch must be greater than or equal to ' + defaultMinPitch);\n }\n if (options.maxPitch != null && options.maxPitch > defaultMaxPitch) {\n throw new Error('maxPitch must be less than or equal to ' + defaultMaxPitch);\n }\n var transform = new Transform(options.minZoom, options.maxZoom, options.minPitch, options.maxPitch, options.renderWorldCopies);\n Camera.call(this, transform, options);\n this._interactive = options.interactive;\n this._maxTileCacheSize = options.maxTileCacheSize;\n this._failIfMajorPerformanceCaveat = options.failIfMajorPerformanceCaveat;\n this._preserveDrawingBuffer = options.preserveDrawingBuffer;\n this._antialias = options.antialias;\n this._trackResize = options.trackResize;\n this._bearingSnap = options.bearingSnap;\n this._refreshExpiredTiles = options.refreshExpiredTiles;\n this._fadeDuration = options.fadeDuration;\n this._crossSourceCollisions = options.crossSourceCollisions;\n this._crossFadingFactor = 1;\n this._collectResourceTiming = options.collectResourceTiming;\n this._renderTaskQueue = new TaskQueue();\n this._controls = [];\n this._mapId = performance.uniqueId();\n this._locale = performance.extend({}, defaultLocale, options.locale);\n this._requestManager = new performance.RequestManager(options.transformRequest, options.accessToken);\n if (typeof options.container === 'string') {\n this._container = performance.window.document.getElementById(options.container);\n if (!this._container) {\n throw new Error('Container \\'' + options.container + '\\' not found.');\n }\n } else if (options.container instanceof HTMLElement) {\n this._container = options.container;\n } else {\n throw new Error('Invalid type: \\'container\\' must be a String or HTMLElement.');\n }\n if (options.maxBounds) {\n this.setMaxBounds(options.maxBounds);\n }\n performance.bindAll([\n '_onWindowOnline',\n '_onWindowResize',\n '_contextLost',\n '_contextRestored'\n ], this);\n this._setupContainer();\n this._setupPainter();\n if (this.painter === undefined) {\n throw new Error('Failed to initialize WebGL.');\n }\n this.on('move', function () {\n return this$1._update(false);\n });\n this.on('moveend', function () {\n return this$1._update(false);\n });\n this.on('zoom', function () {\n return this$1._update(true);\n });\n if (typeof performance.window !== 'undefined') {\n performance.window.addEventListener('online', this._onWindowOnline, false);\n performance.window.addEventListener('resize', this._onWindowResize, false);\n }\n this.handlers = new HandlerManager(this, options);\n var hashName = typeof options.hash === 'string' && options.hash || undefined;\n this._hash = options.hash && new Hash(hashName).addTo(this);\n if (!this._hash || !this._hash._onHashChange()) {\n this.jumpTo({\n center: options.center,\n zoom: options.zoom,\n bearing: options.bearing,\n pitch: options.pitch\n });\n if (options.bounds) {\n this.resize();\n this.fitBounds(options.bounds, performance.extend({}, options.fitBoundsOptions, { duration: 0 }));\n }\n }\n this.resize();\n this._localIdeographFontFamily = options.localIdeographFontFamily;\n if (options.style) {\n this.setStyle(options.style, { localIdeographFontFamily: options.localIdeographFontFamily });\n }\n if (options.attributionControl) {\n this.addControl(new AttributionControl({ customAttribution: options.customAttribution }));\n }\n this.addControl(new LogoControl(), options.logoPosition);\n this.on('style.load', function () {\n if (this$1.transform.unmodified) {\n this$1.jumpTo(this$1.style.stylesheet);\n }\n });\n this.on('data', function (event) {\n this$1._update(event.dataType === 'style');\n this$1.fire(new performance.Event(event.dataType + 'data', event));\n });\n this.on('dataloading', function (event) {\n this$1.fire(new performance.Event(event.dataType + 'dataloading', event));\n });\n }\n if (Camera)\n Map.__proto__ = Camera;\n Map.prototype = Object.create(Camera && Camera.prototype);\n Map.prototype.constructor = Map;\n var prototypeAccessors = {\n showTileBoundaries: { configurable: true },\n showPadding: { configurable: true },\n showCollisionBoxes: { configurable: true },\n showOverdrawInspector: { configurable: true },\n repaint: { configurable: true },\n vertices: { configurable: true },\n version: { configurable: true }\n };\n Map.prototype._getMapId = function _getMapId() {\n return this._mapId;\n };\n Map.prototype.addControl = function addControl(control, position) {\n if (position === undefined && control.getDefaultPosition) {\n position = control.getDefaultPosition();\n }\n if (position === undefined) {\n position = 'top-right';\n }\n if (!control || !control.onAdd) {\n return this.fire(new performance.ErrorEvent(new Error('Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.')));\n }\n var controlElement = control.onAdd(this);\n this._controls.push(control);\n var positionContainer = this._controlPositions[position];\n if (position.indexOf('bottom') !== -1) {\n positionContainer.insertBefore(controlElement, positionContainer.firstChild);\n } else {\n positionContainer.appendChild(controlElement);\n }\n return this;\n };\n Map.prototype.removeControl = function removeControl(control) {\n if (!control || !control.onRemove) {\n return this.fire(new performance.ErrorEvent(new Error('Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.')));\n }\n var ci = this._controls.indexOf(control);\n if (ci > -1) {\n this._controls.splice(ci, 1);\n }\n control.onRemove(this);\n return this;\n };\n Map.prototype.resize = function resize(eventData) {\n var dimensions = this._containerDimensions();\n var width = dimensions[0];\n var height = dimensions[1];\n this._resizeCanvas(width, height);\n this.transform.resize(width, height);\n this.painter.resize(width, height);\n var fireMoving = !this._moving;\n if (fireMoving) {\n this.stop();\n this.fire(new performance.Event('movestart', eventData)).fire(new performance.Event('move', eventData));\n }\n this.fire(new performance.Event('resize', eventData));\n if (fireMoving) {\n this.fire(new performance.Event('moveend', eventData));\n }\n return this;\n };\n Map.prototype.getBounds = function getBounds() {\n return this.transform.getBounds();\n };\n Map.prototype.getMaxBounds = function getMaxBounds() {\n return this.transform.getMaxBounds();\n };\n Map.prototype.setMaxBounds = function setMaxBounds(bounds) {\n this.transform.setMaxBounds(performance.LngLatBounds.convert(bounds));\n return this._update();\n };\n Map.prototype.setMinZoom = function setMinZoom(minZoom) {\n minZoom = minZoom === null || minZoom === undefined ? defaultMinZoom : minZoom;\n if (minZoom >= defaultMinZoom && minZoom <= this.transform.maxZoom) {\n this.transform.minZoom = minZoom;\n this._update();\n if (this.getZoom() < minZoom) {\n this.setZoom(minZoom);\n }\n return this;\n } else {\n throw new Error('minZoom must be between ' + defaultMinZoom + ' and the current maxZoom, inclusive');\n }\n };\n Map.prototype.getMinZoom = function getMinZoom() {\n return this.transform.minZoom;\n };\n Map.prototype.setMaxZoom = function setMaxZoom(maxZoom) {\n maxZoom = maxZoom === null || maxZoom === undefined ? defaultMaxZoom : maxZoom;\n if (maxZoom >= this.transform.minZoom) {\n this.transform.maxZoom = maxZoom;\n this._update();\n if (this.getZoom() > maxZoom) {\n this.setZoom(maxZoom);\n }\n return this;\n } else {\n throw new Error('maxZoom must be greater than the current minZoom');\n }\n };\n Map.prototype.getMaxZoom = function getMaxZoom() {\n return this.transform.maxZoom;\n };\n Map.prototype.setMinPitch = function setMinPitch(minPitch) {\n minPitch = minPitch === null || minPitch === undefined ? defaultMinPitch : minPitch;\n if (minPitch < defaultMinPitch) {\n throw new Error('minPitch must be greater than or equal to ' + defaultMinPitch);\n }\n if (minPitch >= defaultMinPitch && minPitch <= this.transform.maxPitch) {\n this.transform.minPitch = minPitch;\n this._update();\n if (this.getPitch() < minPitch) {\n this.setPitch(minPitch);\n }\n return this;\n } else {\n throw new Error('minPitch must be between ' + defaultMinPitch + ' and the current maxPitch, inclusive');\n }\n };\n Map.prototype.getMinPitch = function getMinPitch() {\n return this.transform.minPitch;\n };\n Map.prototype.setMaxPitch = function setMaxPitch(maxPitch) {\n maxPitch = maxPitch === null || maxPitch === undefined ? defaultMaxPitch : maxPitch;\n if (maxPitch > defaultMaxPitch) {\n throw new Error('maxPitch must be less than or equal to ' + defaultMaxPitch);\n }\n if (maxPitch >= this.transform.minPitch) {\n this.transform.maxPitch = maxPitch;\n this._update();\n if (this.getPitch() > maxPitch) {\n this.setPitch(maxPitch);\n }\n return this;\n } else {\n throw new Error('maxPitch must be greater than the current minPitch');\n }\n };\n Map.prototype.getMaxPitch = function getMaxPitch() {\n return this.transform.maxPitch;\n };\n Map.prototype.getRenderWorldCopies = function getRenderWorldCopies() {\n return this.transform.renderWorldCopies;\n };\n Map.prototype.setRenderWorldCopies = function setRenderWorldCopies(renderWorldCopies) {\n this.transform.renderWorldCopies = renderWorldCopies;\n return this._update();\n };\n Map.prototype.project = function project(lnglat) {\n return this.transform.locationPoint(performance.LngLat.convert(lnglat));\n };\n Map.prototype.unproject = function unproject(point) {\n return this.transform.pointLocation(performance.Point.convert(point));\n };\n Map.prototype.isMoving = function isMoving() {\n return this._moving || this.handlers.isMoving();\n };\n Map.prototype.isZooming = function isZooming() {\n return this._zooming || this.handlers.isZooming();\n };\n Map.prototype.isRotating = function isRotating() {\n return this._rotating || this.handlers.isRotating();\n };\n Map.prototype._createDelegatedListener = function _createDelegatedListener(type, layerId, listener) {\n var this$1 = this;\n var obj;\n if (type === 'mouseenter' || type === 'mouseover') {\n var mousein = false;\n var mousemove = function (e) {\n var features = this$1.getLayer(layerId) ? this$1.queryRenderedFeatures(e.point, { layers: [layerId] }) : [];\n if (!features.length) {\n mousein = false;\n } else if (!mousein) {\n mousein = true;\n listener.call(this$1, new MapMouseEvent(type, this$1, e.originalEvent, { features: features }));\n }\n };\n var mouseout = function () {\n mousein = false;\n };\n return {\n layer: layerId,\n listener: listener,\n delegates: {\n mousemove: mousemove,\n mouseout: mouseout\n }\n };\n } else if (type === 'mouseleave' || type === 'mouseout') {\n var mousein$1 = false;\n var mousemove$1 = function (e) {\n var features = this$1.getLayer(layerId) ? this$1.queryRenderedFeatures(e.point, { layers: [layerId] }) : [];\n if (features.length) {\n mousein$1 = true;\n } else if (mousein$1) {\n mousein$1 = false;\n listener.call(this$1, new MapMouseEvent(type, this$1, e.originalEvent));\n }\n };\n var mouseout$1 = function (e) {\n if (mousein$1) {\n mousein$1 = false;\n listener.call(this$1, new MapMouseEvent(type, this$1, e.originalEvent));\n }\n };\n return {\n layer: layerId,\n listener: listener,\n delegates: {\n mousemove: mousemove$1,\n mouseout: mouseout$1\n }\n };\n } else {\n var delegate = function (e) {\n var features = this$1.getLayer(layerId) ? this$1.queryRenderedFeatures(e.point, { layers: [layerId] }) : [];\n if (features.length) {\n e.features = features;\n listener.call(this$1, e);\n delete e.features;\n }\n };\n return {\n layer: layerId,\n listener: listener,\n delegates: (obj = {}, obj[type] = delegate, obj)\n };\n }\n };\n Map.prototype.on = function on(type, layerId, listener) {\n if (listener === undefined) {\n return Camera.prototype.on.call(this, type, layerId);\n }\n var delegatedListener = this._createDelegatedListener(type, layerId, listener);\n this._delegatedListeners = this._delegatedListeners || {};\n this._delegatedListeners[type] = this._delegatedListeners[type] || [];\n this._delegatedListeners[type].push(delegatedListener);\n for (var event in delegatedListener.delegates) {\n this.on(event, delegatedListener.delegates[event]);\n }\n return this;\n };\n Map.prototype.once = function once(type, layerId, listener) {\n if (listener === undefined) {\n return Camera.prototype.once.call(this, type, layerId);\n }\n var delegatedListener = this._createDelegatedListener(type, layerId, listener);\n for (var event in delegatedListener.delegates) {\n this.once(event, delegatedListener.delegates[event]);\n }\n return this;\n };\n Map.prototype.off = function off(type, layerId, listener) {\n var this$1 = this;\n if (listener === undefined) {\n return Camera.prototype.off.call(this, type, layerId);\n }\n var removeDelegatedListener = function (delegatedListeners) {\n var listeners = delegatedListeners[type];\n for (var i = 0; i < listeners.length; i++) {\n var delegatedListener = listeners[i];\n if (delegatedListener.layer === layerId && delegatedListener.listener === listener) {\n for (var event in delegatedListener.delegates) {\n this$1.off(event, delegatedListener.delegates[event]);\n }\n listeners.splice(i, 1);\n return this$1;\n }\n }\n };\n if (this._delegatedListeners && this._delegatedListeners[type]) {\n removeDelegatedListener(this._delegatedListeners);\n }\n return this;\n };\n Map.prototype.queryRenderedFeatures = function queryRenderedFeatures(geometry, options) {\n if (!this.style) {\n return [];\n }\n if (options === undefined && geometry !== undefined && !(geometry instanceof performance.Point) && !Array.isArray(geometry)) {\n options = geometry;\n geometry = undefined;\n }\n options = options || {};\n geometry = geometry || [\n [\n 0,\n 0\n ],\n [\n this.transform.width,\n this.transform.height\n ]\n ];\n var queryGeometry;\n if (geometry instanceof performance.Point || typeof geometry[0] === 'number') {\n queryGeometry = [performance.Point.convert(geometry)];\n } else {\n var tl = performance.Point.convert(geometry[0]);\n var br = performance.Point.convert(geometry[1]);\n queryGeometry = [\n tl,\n new performance.Point(br.x, tl.y),\n br,\n new performance.Point(tl.x, br.y),\n tl\n ];\n }\n return this.style.queryRenderedFeatures(queryGeometry, options, this.transform);\n };\n Map.prototype.querySourceFeatures = function querySourceFeatures(sourceId, parameters) {\n return this.style.querySourceFeatures(sourceId, parameters);\n };\n Map.prototype.setStyle = function setStyle(style, options) {\n options = performance.extend({}, { localIdeographFontFamily: this._localIdeographFontFamily }, options);\n if (options.diff !== false && options.localIdeographFontFamily === this._localIdeographFontFamily && this.style && style) {\n this._diffStyle(style, options);\n return this;\n } else {\n this._localIdeographFontFamily = options.localIdeographFontFamily;\n return this._updateStyle(style, options);\n }\n };\n Map.prototype._getUIString = function _getUIString(key) {\n var str = this._locale[key];\n if (str == null) {\n throw new Error('Missing UI string \\'' + key + '\\'');\n }\n return str;\n };\n Map.prototype._updateStyle = function _updateStyle(style, options) {\n if (this.style) {\n this.style.setEventedParent(null);\n this.style._remove();\n }\n if (!style) {\n delete this.style;\n return this;\n } else {\n this.style = new Style(this, options || {});\n }\n this.style.setEventedParent(this, { style: this.style });\n if (typeof style === 'string') {\n this.style.loadURL(style);\n } else {\n this.style.loadJSON(style);\n }\n return this;\n };\n Map.prototype._lazyInitEmptyStyle = function _lazyInitEmptyStyle() {\n if (!this.style) {\n this.style = new Style(this, {});\n this.style.setEventedParent(this, { style: this.style });\n this.style.loadEmpty();\n }\n };\n Map.prototype._diffStyle = function _diffStyle(style, options) {\n var this$1 = this;\n if (typeof style === 'string') {\n var url = this._requestManager.normalizeStyleURL(style);\n var request = this._requestManager.transformRequest(url, performance.ResourceType.Style);\n performance.getJSON(request, function (error, json) {\n if (error) {\n this$1.fire(new performance.ErrorEvent(error));\n } else if (json) {\n this$1._updateDiff(json, options);\n }\n });\n } else if (typeof style === 'object') {\n this._updateDiff(style, options);\n }\n };\n Map.prototype._updateDiff = function _updateDiff(style, options) {\n try {\n if (this.style.setState(style)) {\n this._update(true);\n }\n } catch (e) {\n performance.warnOnce('Unable to perform style diff: ' + (e.message || e.error || e) + '. Rebuilding the style from scratch.');\n this._updateStyle(style, options);\n }\n };\n Map.prototype.getStyle = function getStyle() {\n if (this.style) {\n return this.style.serialize();\n }\n };\n Map.prototype.isStyleLoaded = function isStyleLoaded() {\n if (!this.style) {\n return performance.warnOnce('There is no style added to the map.');\n }\n return this.style.loaded();\n };\n Map.prototype.addSource = function addSource(id, source) {\n this._lazyInitEmptyStyle();\n this.style.addSource(id, source);\n return this._update(true);\n };\n Map.prototype.isSourceLoaded = function isSourceLoaded(id) {\n var source = this.style && this.style.sourceCaches[id];\n if (source === undefined) {\n this.fire(new performance.ErrorEvent(new Error('There is no source with ID \\'' + id + '\\'')));\n return;\n }\n return source.loaded();\n };\n Map.prototype.areTilesLoaded = function areTilesLoaded() {\n var sources = this.style && this.style.sourceCaches;\n for (var id in sources) {\n var source = sources[id];\n var tiles = source._tiles;\n for (var t in tiles) {\n var tile = tiles[t];\n if (!(tile.state === 'loaded' || tile.state === 'errored')) {\n return false;\n }\n }\n }\n return true;\n };\n Map.prototype.addSourceType = function addSourceType(name, SourceType, callback) {\n this._lazyInitEmptyStyle();\n return this.style.addSourceType(name, SourceType, callback);\n };\n Map.prototype.removeSource = function removeSource(id) {\n this.style.removeSource(id);\n return this._update(true);\n };\n Map.prototype.getSource = function getSource(id) {\n return this.style.getSource(id);\n };\n Map.prototype.addImage = function addImage(id, image, ref) {\n if (ref === void 0)\n ref = {};\n var pixelRatio = ref.pixelRatio;\n if (pixelRatio === void 0)\n pixelRatio = 1;\n var sdf = ref.sdf;\n if (sdf === void 0)\n sdf = false;\n var stretchX = ref.stretchX;\n var stretchY = ref.stretchY;\n var content = ref.content;\n this._lazyInitEmptyStyle();\n var version = 0;\n if (image instanceof HTMLImageElement || ImageBitmap && image instanceof ImageBitmap) {\n var ref$1 = performance.browser.getImageData(image);\n var width = ref$1.width;\n var height = ref$1.height;\n var data = ref$1.data;\n this.style.addImage(id, {\n data: new performance.RGBAImage({\n width: width,\n height: height\n }, data),\n pixelRatio: pixelRatio,\n stretchX: stretchX,\n stretchY: stretchY,\n content: content,\n sdf: sdf,\n version: version\n });\n } else if (image.width === undefined || image.height === undefined) {\n return this.fire(new performance.ErrorEvent(new Error('Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, ' + 'or object with `width`, `height`, and `data` properties with the same format as `ImageData`')));\n } else {\n var width$1 = image.width;\n var height$1 = image.height;\n var data$1 = image.data;\n var userImage = image;\n this.style.addImage(id, {\n data: new performance.RGBAImage({\n width: width$1,\n height: height$1\n }, new Uint8Array(data$1)),\n pixelRatio: pixelRatio,\n stretchX: stretchX,\n stretchY: stretchY,\n content: content,\n sdf: sdf,\n version: version,\n userImage: userImage\n });\n if (userImage.onAdd) {\n userImage.onAdd(this, id);\n }\n }\n };\n Map.prototype.updateImage = function updateImage(id, image) {\n var existingImage = this.style.getImage(id);\n if (!existingImage) {\n return this.fire(new performance.ErrorEvent(new Error('The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.')));\n }\n var imageData = image instanceof HTMLImageElement || ImageBitmap && image instanceof ImageBitmap ? performance.browser.getImageData(image) : image;\n var width = imageData.width;\n var height = imageData.height;\n var data = imageData.data;\n if (width === undefined || height === undefined) {\n return this.fire(new performance.ErrorEvent(new Error('Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, ' + 'or object with `width`, `height`, and `data` properties with the same format as `ImageData`')));\n }\n if (width !== existingImage.data.width || height !== existingImage.data.height) {\n return this.fire(new performance.ErrorEvent(new Error('The width and height of the updated image must be that same as the previous version of the image')));\n }\n var copy = !(image instanceof HTMLImageElement || ImageBitmap && image instanceof ImageBitmap);\n existingImage.data.replace(data, copy);\n this.style.updateImage(id, existingImage);\n };\n Map.prototype.hasImage = function hasImage(id) {\n if (!id) {\n this.fire(new performance.ErrorEvent(new Error('Missing required image id')));\n return false;\n }\n return !!this.style.getImage(id);\n };\n Map.prototype.removeImage = function removeImage(id) {\n this.style.removeImage(id);\n };\n Map.prototype.loadImage = function loadImage(url, callback) {\n performance.getImage(this._requestManager.transformRequest(url, performance.ResourceType.Image), callback);\n };\n Map.prototype.listImages = function listImages() {\n return this.style.listImages();\n };\n Map.prototype.addLayer = function addLayer(layer, beforeId) {\n this._lazyInitEmptyStyle();\n this.style.addLayer(layer, beforeId);\n return this._update(true);\n };\n Map.prototype.moveLayer = function moveLayer(id, beforeId) {\n this.style.moveLayer(id, beforeId);\n return this._update(true);\n };\n Map.prototype.removeLayer = function removeLayer(id) {\n this.style.removeLayer(id);\n return this._update(true);\n };\n Map.prototype.getLayer = function getLayer(id) {\n return this.style.getLayer(id);\n };\n Map.prototype.setLayerZoomRange = function setLayerZoomRange(layerId, minzoom, maxzoom) {\n this.style.setLayerZoomRange(layerId, minzoom, maxzoom);\n return this._update(true);\n };\n Map.prototype.setFilter = function setFilter(layerId, filter, options) {\n if (options === void 0)\n options = {};\n this.style.setFilter(layerId, filter, options);\n return this._update(true);\n };\n Map.prototype.getFilter = function getFilter(layerId) {\n return this.style.getFilter(layerId);\n };\n Map.prototype.setPaintProperty = function setPaintProperty(layerId, name, value, options) {\n if (options === void 0)\n options = {};\n this.style.setPaintProperty(layerId, name, value, options);\n return this._update(true);\n };\n Map.prototype.getPaintProperty = function getPaintProperty(layerId, name) {\n return this.style.getPaintProperty(layerId, name);\n };\n Map.prototype.setLayoutProperty = function setLayoutProperty(layerId, name, value, options) {\n if (options === void 0)\n options = {};\n this.style.setLayoutProperty(layerId, name, value, options);\n return this._update(true);\n };\n Map.prototype.getLayoutProperty = function getLayoutProperty(layerId, name) {\n return this.style.getLayoutProperty(layerId, name);\n };\n Map.prototype.setLight = function setLight(light, options) {\n if (options === void 0)\n options = {};\n this._lazyInitEmptyStyle();\n this.style.setLight(light, options);\n return this._update(true);\n };\n Map.prototype.getLight = function getLight() {\n return this.style.getLight();\n };\n Map.prototype.setFeatureState = function setFeatureState(feature, state) {\n this.style.setFeatureState(feature, state);\n return this._update();\n };\n Map.prototype.removeFeatureState = function removeFeatureState(target, key) {\n this.style.removeFeatureState(target, key);\n return this._update();\n };\n Map.prototype.getFeatureState = function getFeatureState(feature) {\n return this.style.getFeatureState(feature);\n };\n Map.prototype.getContainer = function getContainer() {\n return this._container;\n };\n Map.prototype.getCanvasContainer = function getCanvasContainer() {\n return this._canvasContainer;\n };\n Map.prototype.getCanvas = function getCanvas() {\n return this._canvas;\n };\n Map.prototype._containerDimensions = function _containerDimensions() {\n var width = 0;\n var height = 0;\n if (this._container) {\n width = this._container.clientWidth || 400;\n height = this._container.clientHeight || 300;\n }\n return [\n width,\n height\n ];\n };\n Map.prototype._detectMissingCSS = function _detectMissingCSS() {\n var computedColor = performance.window.getComputedStyle(this._missingCSSCanary).getPropertyValue('background-color');\n if (computedColor !== 'rgb(250, 128, 114)') {\n performance.warnOnce('This page appears to be missing CSS declarations for ' + 'Mapbox GL JS, which may cause the map to display incorrectly. ' + 'Please ensure your page includes mapbox-gl.css, as described ' + 'in https://www.mapbox.com/mapbox-gl-js/api/.');\n }\n };\n Map.prototype._setupContainer = function _setupContainer() {\n var container = this._container;\n container.classList.add('mapboxgl-map');\n var missingCSSCanary = this._missingCSSCanary = DOM.create('div', 'mapboxgl-canary', container);\n missingCSSCanary.style.visibility = 'hidden';\n this._detectMissingCSS();\n var canvasContainer = this._canvasContainer = DOM.create('div', 'mapboxgl-canvas-container', container);\n if (this._interactive) {\n canvasContainer.classList.add('mapboxgl-interactive');\n }\n this._canvas = DOM.create('canvas', 'mapboxgl-canvas', canvasContainer);\n this._canvas.addEventListener('webglcontextlost', this._contextLost, false);\n this._canvas.addEventListener('webglcontextrestored', this._contextRestored, false);\n this._canvas.setAttribute('tabindex', '0');\n this._canvas.setAttribute('aria-label', 'Map');\n var dimensions = this._containerDimensions();\n this._resizeCanvas(dimensions[0], dimensions[1]);\n var controlContainer = this._controlContainer = DOM.create('div', 'mapboxgl-control-container', container);\n var positions = this._controlPositions = {};\n [\n 'top-left',\n 'top-right',\n 'bottom-left',\n 'bottom-right'\n ].forEach(function (positionName) {\n positions[positionName] = DOM.create('div', 'mapboxgl-ctrl-' + positionName, controlContainer);\n });\n };\n Map.prototype._resizeCanvas = function _resizeCanvas(width, height) {\n var pixelRatio = performance.browser.devicePixelRatio || 1;\n this._canvas.width = pixelRatio * width;\n this._canvas.height = pixelRatio * height;\n this._canvas.style.width = width + 'px';\n this._canvas.style.height = height + 'px';\n };\n Map.prototype._setupPainter = function _setupPainter() {\n var attributes = performance.extend({}, mapboxGlSupported.webGLContextAttributes, {\n failIfMajorPerformanceCaveat: this._failIfMajorPerformanceCaveat,\n preserveDrawingBuffer: this._preserveDrawingBuffer,\n antialias: this._antialias || false\n });\n var gl = this._canvas.getContext('webgl', attributes) || this._canvas.getContext('experimental-webgl', attributes);\n if (!gl) {\n this.fire(new performance.ErrorEvent(new Error('Failed to initialize WebGL')));\n return;\n }\n this.painter = new Painter(gl, this.transform);\n performance.webpSupported.testSupport(gl);\n };\n Map.prototype._contextLost = function _contextLost(event) {\n event.preventDefault();\n if (this._frame) {\n this._frame.cancel();\n this._frame = null;\n }\n this.fire(new performance.Event('webglcontextlost', { originalEvent: event }));\n };\n Map.prototype._contextRestored = function _contextRestored(event) {\n this._setupPainter();\n this.resize();\n this._update();\n this.fire(new performance.Event('webglcontextrestored', { originalEvent: event }));\n };\n Map.prototype.loaded = function loaded() {\n return !this._styleDirty && !this._sourcesDirty && !!this.style && this.style.loaded();\n };\n Map.prototype._update = function _update(updateStyle) {\n if (!this.style) {\n return this;\n }\n this._styleDirty = this._styleDirty || updateStyle;\n this._sourcesDirty = true;\n this.triggerRepaint();\n return this;\n };\n Map.prototype._requestRenderFrame = function _requestRenderFrame(callback) {\n this._update();\n return this._renderTaskQueue.add(callback);\n };\n Map.prototype._cancelRenderFrame = function _cancelRenderFrame(id) {\n this._renderTaskQueue.remove(id);\n };\n Map.prototype._render = function _render(paintStartTimeStamp) {\n var this$1 = this;\n var gpuTimer, frameStartTime = 0;\n var extTimerQuery = this.painter.context.extTimerQuery;\n if (this.listens('gpu-timing-frame')) {\n gpuTimer = extTimerQuery.createQueryEXT();\n extTimerQuery.beginQueryEXT(extTimerQuery.TIME_ELAPSED_EXT, gpuTimer);\n frameStartTime = performance.browser.now();\n }\n this.painter.context.setDirty();\n this.painter.setBaseState();\n this._renderTaskQueue.run(paintStartTimeStamp);\n if (this._removed) {\n return;\n }\n var crossFading = false;\n if (this.style && this._styleDirty) {\n this._styleDirty = false;\n var zoom = this.transform.zoom;\n var now = performance.browser.now();\n this.style.zoomHistory.update(zoom, now);\n var parameters = new performance.EvaluationParameters(zoom, {\n now: now,\n fadeDuration: this._fadeDuration,\n zoomHistory: this.style.zoomHistory,\n transition: this.style.getTransition()\n });\n var factor = parameters.crossFadingFactor();\n if (factor !== 1 || factor !== this._crossFadingFactor) {\n crossFading = true;\n this._crossFadingFactor = factor;\n }\n this.style.update(parameters);\n }\n if (this.style && this._sourcesDirty) {\n this._sourcesDirty = false;\n this.style._updateSources(this.transform);\n }\n this._placementDirty = this.style && this.style._updatePlacement(this.painter.transform, this.showCollisionBoxes, this._fadeDuration, this._crossSourceCollisions);\n this.painter.render(this.style, {\n showTileBoundaries: this.showTileBoundaries,\n showOverdrawInspector: this._showOverdrawInspector,\n rotating: this.isRotating(),\n zooming: this.isZooming(),\n moving: this.isMoving(),\n fadeDuration: this._fadeDuration,\n showPadding: this.showPadding,\n gpuTiming: !!this.listens('gpu-timing-layer')\n });\n this.fire(new performance.Event('render'));\n if (this.loaded() && !this._loaded) {\n this._loaded = true;\n this.fire(new performance.Event('load'));\n }\n if (this.style && (this.style.hasTransitions() || crossFading)) {\n this._styleDirty = true;\n }\n if (this.style && !this._placementDirty) {\n this.style._releaseSymbolFadeTiles();\n }\n if (this.listens('gpu-timing-frame')) {\n var renderCPUTime = performance.browser.now() - frameStartTime;\n extTimerQuery.endQueryEXT(extTimerQuery.TIME_ELAPSED_EXT, gpuTimer);\n setTimeout(function () {\n var renderGPUTime = extTimerQuery.getQueryObjectEXT(gpuTimer, extTimerQuery.QUERY_RESULT_EXT) / (1000 * 1000);\n extTimerQuery.deleteQueryEXT(gpuTimer);\n this$1.fire(new performance.Event('gpu-timing-frame', {\n cpuTime: renderCPUTime,\n gpuTime: renderGPUTime\n }));\n }, 50);\n }\n if (this.listens('gpu-timing-layer')) {\n var frameLayerQueries = this.painter.collectGpuTimers();\n setTimeout(function () {\n var renderedLayerTimes = this$1.painter.queryGpuTimers(frameLayerQueries);\n this$1.fire(new performance.Event('gpu-timing-layer', { layerTimes: renderedLayerTimes }));\n }, 50);\n }\n var somethingDirty = this._sourcesDirty || this._styleDirty || this._placementDirty;\n if (somethingDirty || this._repaint) {\n this.triggerRepaint();\n } else if (!this.isMoving() && this.loaded()) {\n if (!this._fullyLoaded) {\n this._fullyLoaded = true;\n }\n this.fire(new performance.Event('idle'));\n }\n return this;\n };\n Map.prototype.remove = function remove() {\n if (this._hash) {\n this._hash.remove();\n }\n for (var i = 0, list = this._controls; i < list.length; i += 1) {\n var control = list[i];\n control.onRemove(this);\n }\n this._controls = [];\n if (this._frame) {\n this._frame.cancel();\n this._frame = null;\n }\n this._renderTaskQueue.clear();\n this.painter.destroy();\n this.handlers.destroy();\n delete this.handlers;\n this.setStyle(null);\n if (typeof performance.window !== 'undefined') {\n performance.window.removeEventListener('resize', this._onWindowResize, false);\n performance.window.removeEventListener('online', this._onWindowOnline, false);\n }\n var extension = this.painter.context.gl.getExtension('WEBGL_lose_context');\n if (extension) {\n extension.loseContext();\n }\n removeNode(this._canvasContainer);\n removeNode(this._controlContainer);\n removeNode(this._missingCSSCanary);\n this._container.classList.remove('mapboxgl-map');\n this._removed = true;\n this.fire(new performance.Event('remove'));\n };\n Map.prototype.triggerRepaint = function triggerRepaint() {\n var this$1 = this;\n if (this.style && !this._frame) {\n this._frame = performance.browser.frame(function (paintStartTimeStamp) {\n this$1._frame = null;\n this$1._render(paintStartTimeStamp);\n });\n }\n };\n Map.prototype._onWindowOnline = function _onWindowOnline() {\n this._update();\n };\n Map.prototype._onWindowResize = function _onWindowResize(event) {\n if (this._trackResize) {\n this.resize({ originalEvent: event })._update();\n }\n };\n prototypeAccessors.showTileBoundaries.get = function () {\n return !!this._showTileBoundaries;\n };\n prototypeAccessors.showTileBoundaries.set = function (value) {\n if (this._showTileBoundaries === value) {\n return;\n }\n this._showTileBoundaries = value;\n this._update();\n };\n prototypeAccessors.showPadding.get = function () {\n return !!this._showPadding;\n };\n prototypeAccessors.showPadding.set = function (value) {\n if (this._showPadding === value) {\n return;\n }\n this._showPadding = value;\n this._update();\n };\n prototypeAccessors.showCollisionBoxes.get = function () {\n return !!this._showCollisionBoxes;\n };\n prototypeAccessors.showCollisionBoxes.set = function (value) {\n if (this._showCollisionBoxes === value) {\n return;\n }\n this._showCollisionBoxes = value;\n if (value) {\n this.style._generateCollisionBoxes();\n } else {\n this._update();\n }\n };\n prototypeAccessors.showOverdrawInspector.get = function () {\n return !!this._showOverdrawInspector;\n };\n prototypeAccessors.showOverdrawInspector.set = function (value) {\n if (this._showOverdrawInspector === value) {\n return;\n }\n this._showOverdrawInspector = value;\n this._update();\n };\n prototypeAccessors.repaint.get = function () {\n return !!this._repaint;\n };\n prototypeAccessors.repaint.set = function (value) {\n if (this._repaint !== value) {\n this._repaint = value;\n this.triggerRepaint();\n }\n };\n prototypeAccessors.vertices.get = function () {\n return !!this._vertices;\n };\n prototypeAccessors.vertices.set = function (value) {\n this._vertices = value;\n this._update();\n };\n Map.prototype._setCacheLimits = function _setCacheLimits(limit, checkThreshold) {\n performance.setCacheLimits(limit, checkThreshold);\n };\n prototypeAccessors.version.get = function () {\n return performance.version;\n };\n Object.defineProperties(Map.prototype, prototypeAccessors);\n return Map;\n}(Camera);\nfunction removeNode(node) {\n if (node.parentNode) {\n node.parentNode.removeChild(node);\n }\n}\n\nvar defaultOptions$2 = {\n showCompass: true,\n showZoom: true,\n visualizePitch: false\n};\nvar NavigationControl = function NavigationControl(options) {\n var this$1 = this;\n this.options = performance.extend({}, defaultOptions$2, options);\n this._container = DOM.create('div', 'mapboxgl-ctrl mapboxgl-ctrl-group');\n this._container.addEventListener('contextmenu', function (e) {\n return e.preventDefault();\n });\n if (this.options.showZoom) {\n performance.bindAll([\n '_setButtonTitle',\n '_updateZoomButtons'\n ], this);\n this._zoomInButton = this._createButton('mapboxgl-ctrl-zoom-in', function (e) {\n return this$1._map.zoomIn({}, { originalEvent: e });\n });\n DOM.create('span', 'mapboxgl-ctrl-icon', this._zoomInButton).setAttribute('aria-hidden', true);\n this._zoomOutButton = this._createButton('mapboxgl-ctrl-zoom-out', function (e) {\n return this$1._map.zoomOut({}, { originalEvent: e });\n });\n DOM.create('span', 'mapboxgl-ctrl-icon', this._zoomOutButton).setAttribute('aria-hidden', true);\n }\n if (this.options.showCompass) {\n performance.bindAll(['_rotateCompassArrow'], this);\n this._compass = this._createButton('mapboxgl-ctrl-compass', function (e) {\n if (this$1.options.visualizePitch) {\n this$1._map.resetNorthPitch({}, { originalEvent: e });\n } else {\n this$1._map.resetNorth({}, { originalEvent: e });\n }\n });\n this._compassIcon = DOM.create('span', 'mapboxgl-ctrl-icon', this._compass);\n this._compassIcon.setAttribute('aria-hidden', true);\n }\n};\nNavigationControl.prototype._updateZoomButtons = function _updateZoomButtons() {\n var zoom = this._map.getZoom();\n this._zoomInButton.disabled = zoom === this._map.getMaxZoom();\n this._zoomOutButton.disabled = zoom === this._map.getMinZoom();\n};\nNavigationControl.prototype._rotateCompassArrow = function _rotateCompassArrow() {\n var rotate = this.options.visualizePitch ? 'scale(' + 1 / Math.pow(Math.cos(this._map.transform.pitch * (Math.PI / 180)), 0.5) + ') rotateX(' + this._map.transform.pitch + 'deg) rotateZ(' + this._map.transform.angle * (180 / Math.PI) + 'deg)' : 'rotate(' + this._map.transform.angle * (180 / Math.PI) + 'deg)';\n this._compassIcon.style.transform = rotate;\n};\nNavigationControl.prototype.onAdd = function onAdd(map) {\n this._map = map;\n if (this.options.showZoom) {\n this._setButtonTitle(this._zoomInButton, 'ZoomIn');\n this._setButtonTitle(this._zoomOutButton, 'ZoomOut');\n this._map.on('zoom', this._updateZoomButtons);\n this._updateZoomButtons();\n }\n if (this.options.showCompass) {\n this._setButtonTitle(this._compass, 'ResetBearing');\n if (this.options.visualizePitch) {\n this._map.on('pitch', this._rotateCompassArrow);\n }\n this._map.on('rotate', this._rotateCompassArrow);\n this._rotateCompassArrow();\n this._handler = new MouseRotateWrapper(this._map, this._compass, this.options.visualizePitch);\n }\n return this._container;\n};\nNavigationControl.prototype.onRemove = function onRemove() {\n DOM.remove(this._container);\n if (this.options.showZoom) {\n this._map.off('zoom', this._updateZoomButtons);\n }\n if (this.options.showCompass) {\n if (this.options.visualizePitch) {\n this._map.off('pitch', this._rotateCompassArrow);\n }\n this._map.off('rotate', this._rotateCompassArrow);\n this._handler.off();\n delete this._handler;\n }\n delete this._map;\n};\nNavigationControl.prototype._createButton = function _createButton(className, fn) {\n var a = DOM.create('button', className, this._container);\n a.type = 'button';\n a.addEventListener('click', fn);\n return a;\n};\nNavigationControl.prototype._setButtonTitle = function _setButtonTitle(button, title) {\n var str = this._map._getUIString('NavigationControl.' + title);\n button.title = str;\n button.setAttribute('aria-label', str);\n};\nvar MouseRotateWrapper = function MouseRotateWrapper(map, element, pitch) {\n if (pitch === void 0)\n pitch = false;\n this._clickTolerance = 10;\n this.element = element;\n this.mouseRotate = new MouseRotateHandler({ clickTolerance: map.dragRotate._mouseRotate._clickTolerance });\n this.map = map;\n if (pitch) {\n this.mousePitch = new MousePitchHandler({ clickTolerance: map.dragRotate._mousePitch._clickTolerance });\n }\n performance.bindAll([\n 'mousedown',\n 'mousemove',\n 'mouseup',\n 'touchstart',\n 'touchmove',\n 'touchend',\n 'reset'\n ], this);\n DOM.addEventListener(element, 'mousedown', this.mousedown);\n DOM.addEventListener(element, 'touchstart', this.touchstart, { passive: false });\n DOM.addEventListener(element, 'touchmove', this.touchmove);\n DOM.addEventListener(element, 'touchend', this.touchend);\n DOM.addEventListener(element, 'touchcancel', this.reset);\n};\nMouseRotateWrapper.prototype.down = function down(e, point) {\n this.mouseRotate.mousedown(e, point);\n if (this.mousePitch) {\n this.mousePitch.mousedown(e, point);\n }\n DOM.disableDrag();\n};\nMouseRotateWrapper.prototype.move = function move(e, point) {\n var map = this.map;\n var r = this.mouseRotate.mousemoveWindow(e, point);\n if (r && r.bearingDelta) {\n map.setBearing(map.getBearing() + r.bearingDelta);\n }\n if (this.mousePitch) {\n var p = this.mousePitch.mousemoveWindow(e, point);\n if (p && p.pitchDelta) {\n map.setPitch(map.getPitch() + p.pitchDelta);\n }\n }\n};\nMouseRotateWrapper.prototype.off = function off() {\n var element = this.element;\n DOM.removeEventListener(element, 'mousedown', this.mousedown);\n DOM.removeEventListener(element, 'touchstart', this.touchstart, { passive: false });\n DOM.removeEventListener(element, 'touchmove', this.touchmove);\n DOM.removeEventListener(element, 'touchend', this.touchend);\n DOM.removeEventListener(element, 'touchcancel', this.reset);\n this.offTemp();\n};\nMouseRotateWrapper.prototype.offTemp = function offTemp() {\n DOM.enableDrag();\n DOM.removeEventListener(performance.window, 'mousemove', this.mousemove);\n DOM.removeEventListener(performance.window, 'mouseup', this.mouseup);\n};\nMouseRotateWrapper.prototype.mousedown = function mousedown(e) {\n this.down(performance.extend({}, e, {\n ctrlKey: true,\n preventDefault: function () {\n return e.preventDefault();\n }\n }), DOM.mousePos(this.element, e));\n DOM.addEventListener(performance.window, 'mousemove', this.mousemove);\n DOM.addEventListener(performance.window, 'mouseup', this.mouseup);\n};\nMouseRotateWrapper.prototype.mousemove = function mousemove(e) {\n this.move(e, DOM.mousePos(this.element, e));\n};\nMouseRotateWrapper.prototype.mouseup = function mouseup(e) {\n this.mouseRotate.mouseupWindow(e);\n if (this.mousePitch) {\n this.mousePitch.mouseupWindow(e);\n }\n this.offTemp();\n};\nMouseRotateWrapper.prototype.touchstart = function touchstart(e) {\n if (e.targetTouches.length !== 1) {\n this.reset();\n } else {\n this._startPos = this._lastPos = DOM.touchPos(this.element, e.targetTouches)[0];\n this.down({\n type: 'mousedown',\n button: 0,\n ctrlKey: true,\n preventDefault: function () {\n return e.preventDefault();\n }\n }, this._startPos);\n }\n};\nMouseRotateWrapper.prototype.touchmove = function touchmove(e) {\n if (e.targetTouches.length !== 1) {\n this.reset();\n } else {\n this._lastPos = DOM.touchPos(this.element, e.targetTouches)[0];\n this.move({\n preventDefault: function () {\n return e.preventDefault();\n }\n }, this._lastPos);\n }\n};\nMouseRotateWrapper.prototype.touchend = function touchend(e) {\n if (e.targetTouches.length === 0 && this._startPos && this._lastPos && this._startPos.dist(this._lastPos) < this._clickTolerance) {\n this.element.click();\n }\n this.reset();\n};\nMouseRotateWrapper.prototype.reset = function reset() {\n this.mouseRotate.reset();\n if (this.mousePitch) {\n this.mousePitch.reset();\n }\n delete this._startPos;\n delete this._lastPos;\n this.offTemp();\n};\n\nfunction smartWrap (lngLat, priorPos, transform) {\n lngLat = new performance.LngLat(lngLat.lng, lngLat.lat);\n if (priorPos) {\n var left = new performance.LngLat(lngLat.lng - 360, lngLat.lat);\n var right = new performance.LngLat(lngLat.lng + 360, lngLat.lat);\n var delta = transform.locationPoint(lngLat).distSqr(priorPos);\n if (transform.locationPoint(left).distSqr(priorPos) < delta) {\n lngLat = left;\n } else if (transform.locationPoint(right).distSqr(priorPos) < delta) {\n lngLat = right;\n }\n }\n while (Math.abs(lngLat.lng - transform.center.lng) > 180) {\n var pos = transform.locationPoint(lngLat);\n if (pos.x >= 0 && pos.y >= 0 && pos.x <= transform.width && pos.y <= transform.height) {\n break;\n }\n if (lngLat.lng > transform.center.lng) {\n lngLat.lng -= 360;\n } else {\n lngLat.lng += 360;\n }\n }\n return lngLat;\n}\n\nvar anchorTranslate = {\n 'center': 'translate(-50%,-50%)',\n 'top': 'translate(-50%,0)',\n 'top-left': 'translate(0,0)',\n 'top-right': 'translate(-100%,0)',\n 'bottom': 'translate(-50%,-100%)',\n 'bottom-left': 'translate(0,-100%)',\n 'bottom-right': 'translate(-100%,-100%)',\n 'left': 'translate(0,-50%)',\n 'right': 'translate(-100%,-50%)'\n};\nfunction applyAnchorClass(element, anchor, prefix) {\n var classList = element.classList;\n for (var key in anchorTranslate) {\n classList.remove('mapboxgl-' + prefix + '-anchor-' + key);\n }\n classList.add('mapboxgl-' + prefix + '-anchor-' + anchor);\n}\n\nvar Marker = function (Evented) {\n function Marker(options, legacyOptions) {\n var this$1 = this;\n Evented.call(this);\n if (options instanceof performance.window.HTMLElement || legacyOptions) {\n options = performance.extend({ element: options }, legacyOptions);\n }\n performance.bindAll([\n '_update',\n '_onMove',\n '_onUp',\n '_addDragHandler',\n '_onMapClick',\n '_onKeyPress'\n ], this);\n this._anchor = options && options.anchor || 'center';\n this._color = options && options.color || '#3FB1CE';\n this._draggable = options && options.draggable || false;\n this._state = 'inactive';\n this._rotation = options && options.rotation || 0;\n this._rotationAlignment = options && options.rotationAlignment || 'auto';\n this._pitchAlignment = options && options.pitchAlignment && options.pitchAlignment !== 'auto' ? options.pitchAlignment : this._rotationAlignment;\n if (!options || !options.element) {\n this._defaultMarker = true;\n this._element = DOM.create('div');\n this._element.setAttribute('aria-label', 'Map marker');\n var svg = DOM.createNS('http://www.w3.org/2000/svg', 'svg');\n svg.setAttributeNS(null, 'display', 'block');\n svg.setAttributeNS(null, 'height', '41px');\n svg.setAttributeNS(null, 'width', '27px');\n svg.setAttributeNS(null, 'viewBox', '0 0 27 41');\n var markerLarge = DOM.createNS('http://www.w3.org/2000/svg', 'g');\n markerLarge.setAttributeNS(null, 'stroke', 'none');\n markerLarge.setAttributeNS(null, 'stroke-width', '1');\n markerLarge.setAttributeNS(null, 'fill', 'none');\n markerLarge.setAttributeNS(null, 'fill-rule', 'evenodd');\n var page1 = DOM.createNS('http://www.w3.org/2000/svg', 'g');\n page1.setAttributeNS(null, 'fill-rule', 'nonzero');\n var shadow = DOM.createNS('http://www.w3.org/2000/svg', 'g');\n shadow.setAttributeNS(null, 'transform', 'translate(3.0, 29.0)');\n shadow.setAttributeNS(null, 'fill', '#000000');\n var ellipses = [\n {\n 'rx': '10.5',\n 'ry': '5.25002273'\n },\n {\n 'rx': '10.5',\n 'ry': '5.25002273'\n },\n {\n 'rx': '9.5',\n 'ry': '4.77275007'\n },\n {\n 'rx': '8.5',\n 'ry': '4.29549936'\n },\n {\n 'rx': '7.5',\n 'ry': '3.81822308'\n },\n {\n 'rx': '6.5',\n 'ry': '3.34094679'\n },\n {\n 'rx': '5.5',\n 'ry': '2.86367051'\n },\n {\n 'rx': '4.5',\n 'ry': '2.38636864'\n }\n ];\n for (var i = 0, list = ellipses; i < list.length; i += 1) {\n var data = list[i];\n var ellipse = DOM.createNS('http://www.w3.org/2000/svg', 'ellipse');\n ellipse.setAttributeNS(null, 'opacity', '0.04');\n ellipse.setAttributeNS(null, 'cx', '10.5');\n ellipse.setAttributeNS(null, 'cy', '5.80029008');\n ellipse.setAttributeNS(null, 'rx', data['rx']);\n ellipse.setAttributeNS(null, 'ry', data['ry']);\n shadow.appendChild(ellipse);\n }\n var background = DOM.createNS('http://www.w3.org/2000/svg', 'g');\n background.setAttributeNS(null, 'fill', this._color);\n var bgPath = DOM.createNS('http://www.w3.org/2000/svg', 'path');\n bgPath.setAttributeNS(null, 'd', 'M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z');\n background.appendChild(bgPath);\n var border = DOM.createNS('http://www.w3.org/2000/svg', 'g');\n border.setAttributeNS(null, 'opacity', '0.25');\n border.setAttributeNS(null, 'fill', '#000000');\n var borderPath = DOM.createNS('http://www.w3.org/2000/svg', 'path');\n borderPath.setAttributeNS(null, 'd', 'M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z');\n border.appendChild(borderPath);\n var maki = DOM.createNS('http://www.w3.org/2000/svg', 'g');\n maki.setAttributeNS(null, 'transform', 'translate(6.0, 7.0)');\n maki.setAttributeNS(null, 'fill', '#FFFFFF');\n var circleContainer = DOM.createNS('http://www.w3.org/2000/svg', 'g');\n circleContainer.setAttributeNS(null, 'transform', 'translate(8.0, 8.0)');\n var circle1 = DOM.createNS('http://www.w3.org/2000/svg', 'circle');\n circle1.setAttributeNS(null, 'fill', '#000000');\n circle1.setAttributeNS(null, 'opacity', '0.25');\n circle1.setAttributeNS(null, 'cx', '5.5');\n circle1.setAttributeNS(null, 'cy', '5.5');\n circle1.setAttributeNS(null, 'r', '5.4999962');\n var circle2 = DOM.createNS('http://www.w3.org/2000/svg', 'circle');\n circle2.setAttributeNS(null, 'fill', '#FFFFFF');\n circle2.setAttributeNS(null, 'cx', '5.5');\n circle2.setAttributeNS(null, 'cy', '5.5');\n circle2.setAttributeNS(null, 'r', '5.4999962');\n circleContainer.appendChild(circle1);\n circleContainer.appendChild(circle2);\n page1.appendChild(shadow);\n page1.appendChild(background);\n page1.appendChild(border);\n page1.appendChild(maki);\n page1.appendChild(circleContainer);\n svg.appendChild(page1);\n this._element.appendChild(svg);\n this._offset = performance.Point.convert(options && options.offset || [\n 0,\n -14\n ]);\n } else {\n this._element = options.element;\n this._offset = performance.Point.convert(options && options.offset || [\n 0,\n 0\n ]);\n }\n this._element.classList.add('mapboxgl-marker');\n this._element.addEventListener('dragstart', function (e) {\n e.preventDefault();\n });\n this._element.addEventListener('mousedown', function (e) {\n e.preventDefault();\n });\n this._element.addEventListener('focus', function () {\n var el = this$1._map.getContainer();\n el.scrollTop = 0;\n el.scrollLeft = 0;\n });\n applyAnchorClass(this._element, this._anchor, 'marker');\n this._popup = null;\n }\n if (Evented)\n Marker.__proto__ = Evented;\n Marker.prototype = Object.create(Evented && Evented.prototype);\n Marker.prototype.constructor = Marker;\n Marker.prototype.addTo = function addTo(map) {\n this.remove();\n this._map = map;\n map.getCanvasContainer().appendChild(this._element);\n map.on('move', this._update);\n map.on('moveend', this._update);\n this.setDraggable(this._draggable);\n this._update();\n this._map.on('click', this._onMapClick);\n return this;\n };\n Marker.prototype.remove = function remove() {\n if (this._map) {\n this._map.off('click', this._onMapClick);\n this._map.off('move', this._update);\n this._map.off('moveend', this._update);\n this._map.off('mousedown', this._addDragHandler);\n this._map.off('touchstart', this._addDragHandler);\n this._map.off('mouseup', this._onUp);\n this._map.off('touchend', this._onUp);\n this._map.off('mousemove', this._onMove);\n this._map.off('touchmove', this._onMove);\n delete this._map;\n }\n DOM.remove(this._element);\n if (this._popup) {\n this._popup.remove();\n }\n return this;\n };\n Marker.prototype.getLngLat = function getLngLat() {\n return this._lngLat;\n };\n Marker.prototype.setLngLat = function setLngLat(lnglat) {\n this._lngLat = performance.LngLat.convert(lnglat);\n this._pos = null;\n if (this._popup) {\n this._popup.setLngLat(this._lngLat);\n }\n this._update();\n return this;\n };\n Marker.prototype.getElement = function getElement() {\n return this._element;\n };\n Marker.prototype.setPopup = function setPopup(popup) {\n if (this._popup) {\n this._popup.remove();\n this._popup = null;\n this._element.removeEventListener('keypress', this._onKeyPress);\n if (!this._originalTabIndex) {\n this._element.removeAttribute('tabindex');\n }\n }\n if (popup) {\n if (!('offset' in popup.options)) {\n var markerHeight = 41 - 5.8 / 2;\n var markerRadius = 13.5;\n var linearOffset = Math.sqrt(Math.pow(markerRadius, 2) / 2);\n popup.options.offset = this._defaultMarker ? {\n 'top': [\n 0,\n 0\n ],\n 'top-left': [\n 0,\n 0\n ],\n 'top-right': [\n 0,\n 0\n ],\n 'bottom': [\n 0,\n -markerHeight\n ],\n 'bottom-left': [\n linearOffset,\n (markerHeight - markerRadius + linearOffset) * -1\n ],\n 'bottom-right': [\n -linearOffset,\n (markerHeight - markerRadius + linearOffset) * -1\n ],\n 'left': [\n markerRadius,\n (markerHeight - markerRadius) * -1\n ],\n 'right': [\n -markerRadius,\n (markerHeight - markerRadius) * -1\n ]\n } : this._offset;\n }\n this._popup = popup;\n if (this._lngLat) {\n this._popup.setLngLat(this._lngLat);\n }\n this._originalTabIndex = this._element.getAttribute('tabindex');\n if (!this._originalTabIndex) {\n this._element.setAttribute('tabindex', '0');\n }\n this._element.addEventListener('keypress', this._onKeyPress);\n }\n return this;\n };\n Marker.prototype._onKeyPress = function _onKeyPress(e) {\n var code = e.code;\n var legacyCode = e.charCode || e.keyCode;\n if (code === 'Space' || code === 'Enter' || legacyCode === 32 || legacyCode === 13) {\n this.togglePopup();\n }\n };\n Marker.prototype._onMapClick = function _onMapClick(e) {\n var targetElement = e.originalEvent.target;\n var element = this._element;\n if (this._popup && (targetElement === element || element.contains(targetElement))) {\n this.togglePopup();\n }\n };\n Marker.prototype.getPopup = function getPopup() {\n return this._popup;\n };\n Marker.prototype.togglePopup = function togglePopup() {\n var popup = this._popup;\n if (!popup) {\n return this;\n } else if (popup.isOpen()) {\n popup.remove();\n } else {\n popup.addTo(this._map);\n }\n return this;\n };\n Marker.prototype._update = function _update(e) {\n if (!this._map) {\n return;\n }\n if (this._map.transform.renderWorldCopies) {\n this._lngLat = smartWrap(this._lngLat, this._pos, this._map.transform);\n }\n this._pos = this._map.project(this._lngLat)._add(this._offset);\n var rotation = '';\n if (this._rotationAlignment === 'viewport' || this._rotationAlignment === 'auto') {\n rotation = 'rotateZ(' + this._rotation + 'deg)';\n } else if (this._rotationAlignment === 'map') {\n rotation = 'rotateZ(' + (this._rotation - this._map.getBearing()) + 'deg)';\n }\n var pitch = '';\n if (this._pitchAlignment === 'viewport' || this._pitchAlignment === 'auto') {\n pitch = 'rotateX(0deg)';\n } else if (this._pitchAlignment === 'map') {\n pitch = 'rotateX(' + this._map.getPitch() + 'deg)';\n }\n if (!e || e.type === 'moveend') {\n this._pos = this._pos.round();\n }\n DOM.setTransform(this._element, anchorTranslate[this._anchor] + ' translate(' + this._pos.x + 'px, ' + this._pos.y + 'px) ' + pitch + ' ' + rotation);\n };\n Marker.prototype.getOffset = function getOffset() {\n return this._offset;\n };\n Marker.prototype.setOffset = function setOffset(offset) {\n this._offset = performance.Point.convert(offset);\n this._update();\n return this;\n };\n Marker.prototype._onMove = function _onMove(e) {\n this._pos = e.point.sub(this._positionDelta);\n this._lngLat = this._map.unproject(this._pos);\n this.setLngLat(this._lngLat);\n this._element.style.pointerEvents = 'none';\n if (this._state === 'pending') {\n this._state = 'active';\n this.fire(new performance.Event('dragstart'));\n }\n this.fire(new performance.Event('drag'));\n };\n Marker.prototype._onUp = function _onUp() {\n this._element.style.pointerEvents = 'auto';\n this._positionDelta = null;\n this._map.off('mousemove', this._onMove);\n this._map.off('touchmove', this._onMove);\n if (this._state === 'active') {\n this.fire(new performance.Event('dragend'));\n }\n this._state = 'inactive';\n };\n Marker.prototype._addDragHandler = function _addDragHandler(e) {\n if (this._element.contains(e.originalEvent.target)) {\n e.preventDefault();\n this._positionDelta = e.point.sub(this._pos).add(this._offset);\n this._state = 'pending';\n this._map.on('mousemove', this._onMove);\n this._map.on('touchmove', this._onMove);\n this._map.once('mouseup', this._onUp);\n this._map.once('touchend', this._onUp);\n }\n };\n Marker.prototype.setDraggable = function setDraggable(shouldBeDraggable) {\n this._draggable = !!shouldBeDraggable;\n if (this._map) {\n if (shouldBeDraggable) {\n this._map.on('mousedown', this._addDragHandler);\n this._map.on('touchstart', this._addDragHandler);\n } else {\n this._map.off('mousedown', this._addDragHandler);\n this._map.off('touchstart', this._addDragHandler);\n }\n }\n return this;\n };\n Marker.prototype.isDraggable = function isDraggable() {\n return this._draggable;\n };\n Marker.prototype.setRotation = function setRotation(rotation) {\n this._rotation = rotation || 0;\n this._update();\n return this;\n };\n Marker.prototype.getRotation = function getRotation() {\n return this._rotation;\n };\n Marker.prototype.setRotationAlignment = function setRotationAlignment(alignment) {\n this._rotationAlignment = alignment || 'auto';\n this._update();\n return this;\n };\n Marker.prototype.getRotationAlignment = function getRotationAlignment() {\n return this._rotationAlignment;\n };\n Marker.prototype.setPitchAlignment = function setPitchAlignment(alignment) {\n this._pitchAlignment = alignment && alignment !== 'auto' ? alignment : this._rotationAlignment;\n this._update();\n return this;\n };\n Marker.prototype.getPitchAlignment = function getPitchAlignment() {\n return this._pitchAlignment;\n };\n return Marker;\n}(performance.Evented);\n\nvar defaultOptions$3 = {\n positionOptions: {\n enableHighAccuracy: false,\n maximumAge: 0,\n timeout: 6000\n },\n fitBoundsOptions: { maxZoom: 15 },\n trackUserLocation: false,\n showAccuracyCircle: true,\n showUserLocation: true\n};\nvar supportsGeolocation;\nfunction checkGeolocationSupport(callback) {\n if (supportsGeolocation !== undefined) {\n callback(supportsGeolocation);\n } else if (performance.window.navigator.permissions !== undefined) {\n performance.window.navigator.permissions.query({ name: 'geolocation' }).then(function (p) {\n supportsGeolocation = p.state !== 'denied';\n callback(supportsGeolocation);\n });\n } else {\n supportsGeolocation = !!performance.window.navigator.geolocation;\n callback(supportsGeolocation);\n }\n}\nvar numberOfWatches = 0;\nvar noTimeout = false;\nvar GeolocateControl = function (Evented) {\n function GeolocateControl(options) {\n Evented.call(this);\n this.options = performance.extend({}, defaultOptions$3, options);\n performance.bindAll([\n '_onSuccess',\n '_onError',\n '_onZoom',\n '_finish',\n '_setupUI',\n '_updateCamera',\n '_updateMarker'\n ], this);\n }\n if (Evented)\n GeolocateControl.__proto__ = Evented;\n GeolocateControl.prototype = Object.create(Evented && Evented.prototype);\n GeolocateControl.prototype.constructor = GeolocateControl;\n GeolocateControl.prototype.onAdd = function onAdd(map) {\n this._map = map;\n this._container = DOM.create('div', 'mapboxgl-ctrl mapboxgl-ctrl-group');\n checkGeolocationSupport(this._setupUI);\n return this._container;\n };\n GeolocateControl.prototype.onRemove = function onRemove() {\n if (this._geolocationWatchID !== undefined) {\n performance.window.navigator.geolocation.clearWatch(this._geolocationWatchID);\n this._geolocationWatchID = undefined;\n }\n if (this.options.showUserLocation && this._userLocationDotMarker) {\n this._userLocationDotMarker.remove();\n }\n if (this.options.showAccuracyCircle && this._accuracyCircleMarker) {\n this._accuracyCircleMarker.remove();\n }\n DOM.remove(this._container);\n this._map.off('zoom', this._onZoom);\n this._map = undefined;\n numberOfWatches = 0;\n noTimeout = false;\n };\n GeolocateControl.prototype._isOutOfMapMaxBounds = function _isOutOfMapMaxBounds(position) {\n var bounds = this._map.getMaxBounds();\n var coordinates = position.coords;\n return bounds && (coordinates.longitude < bounds.getWest() || coordinates.longitude > bounds.getEast() || coordinates.latitude < bounds.getSouth() || coordinates.latitude > bounds.getNorth());\n };\n GeolocateControl.prototype._setErrorState = function _setErrorState() {\n switch (this._watchState) {\n case 'WAITING_ACTIVE':\n this._watchState = 'ACTIVE_ERROR';\n this._geolocateButton.classList.remove('mapboxgl-ctrl-geolocate-active');\n this._geolocateButton.classList.add('mapboxgl-ctrl-geolocate-active-error');\n break;\n case 'ACTIVE_LOCK':\n this._watchState = 'ACTIVE_ERROR';\n this._geolocateButton.classList.remove('mapboxgl-ctrl-geolocate-active');\n this._geolocateButton.classList.add('mapboxgl-ctrl-geolocate-active-error');\n this._geolocateButton.classList.add('mapboxgl-ctrl-geolocate-waiting');\n break;\n case 'BACKGROUND':\n this._watchState = 'BACKGROUND_ERROR';\n this._geolocateButton.classList.remove('mapboxgl-ctrl-geolocate-background');\n this._geolocateButton.classList.add('mapboxgl-ctrl-geolocate-background-error');\n this._geolocateButton.classList.add('mapboxgl-ctrl-geolocate-waiting');\n break;\n }\n };\n GeolocateControl.prototype._onSuccess = function _onSuccess(position) {\n if (!this._map) {\n return;\n }\n if (this._isOutOfMapMaxBounds(position)) {\n this._setErrorState();\n this.fire(new performance.Event('outofmaxbounds', position));\n this._updateMarker();\n this._finish();\n return;\n }\n if (this.options.trackUserLocation) {\n this._lastKnownPosition = position;\n switch (this._watchState) {\n case 'WAITING_ACTIVE':\n case 'ACTIVE_LOCK':\n case 'ACTIVE_ERROR':\n this._watchState = 'ACTIVE_LOCK';\n this._geolocateButton.classList.remove('mapboxgl-ctrl-geolocate-waiting');\n this._geolocateButton.classList.remove('mapboxgl-ctrl-geolocate-active-error');\n this._geolocateButton.classList.add('mapboxgl-ctrl-geolocate-active');\n break;\n case 'BACKGROUND':\n case 'BACKGROUND_ERROR':\n this._watchState = 'BACKGROUND';\n this._geolocateButton.classList.remove('mapboxgl-ctrl-geolocate-waiting');\n this._geolocateButton.classList.remove('mapboxgl-ctrl-geolocate-background-error');\n this._geolocateButton.classList.add('mapboxgl-ctrl-geolocate-background');\n break;\n }\n }\n if (this.options.showUserLocation && this._watchState !== 'OFF') {\n this._updateMarker(position);\n }\n if (!this.options.trackUserLocation || this._watchState === 'ACTIVE_LOCK') {\n this._updateCamera(position);\n }\n if (this.options.showUserLocation) {\n this._dotElement.classList.remove('mapboxgl-user-location-dot-stale');\n }\n this.fire(new performance.Event('geolocate', position));\n this._finish();\n };\n GeolocateControl.prototype._updateCamera = function _updateCamera(position) {\n var center = new performance.LngLat(position.coords.longitude, position.coords.latitude);\n var radius = position.coords.accuracy;\n var bearing = this._map.getBearing();\n var options = performance.extend({ bearing: bearing }, this.options.fitBoundsOptions);\n this._map.fitBounds(center.toBounds(radius), options, { geolocateSource: true });\n };\n GeolocateControl.prototype._updateMarker = function _updateMarker(position) {\n if (position) {\n var center = new performance.LngLat(position.coords.longitude, position.coords.latitude);\n this._accuracyCircleMarker.setLngLat(center).addTo(this._map);\n this._userLocationDotMarker.setLngLat(center).addTo(this._map);\n this._accuracy = position.coords.accuracy;\n if (this.options.showUserLocation && this.options.showAccuracyCircle) {\n this._updateCircleRadius();\n }\n } else {\n this._userLocationDotMarker.remove();\n this._accuracyCircleMarker.remove();\n }\n };\n GeolocateControl.prototype._updateCircleRadius = function _updateCircleRadius() {\n var y = this._map._container.clientHeight / 2;\n var a = this._map.unproject([\n 0,\n y\n ]);\n var b = this._map.unproject([\n 1,\n y\n ]);\n var metersPerPixel = a.distanceTo(b);\n var circleDiameter = Math.ceil(2 * this._accuracy / metersPerPixel);\n this._circleElement.style.width = circleDiameter + 'px';\n this._circleElement.style.height = circleDiameter + 'px';\n };\n GeolocateControl.prototype._onZoom = function _onZoom() {\n if (this.options.showUserLocation && this.options.showAccuracyCircle) {\n this._updateCircleRadius();\n }\n };\n GeolocateControl.prototype._onError = function _onError(error) {\n if (!this._map) {\n return;\n }\n if (this.options.trackUserLocation) {\n if (error.code === 1) {\n this._watchState = 'OFF';\n this._geolocateButton.classList.remove('mapboxgl-ctrl-geolocate-waiting');\n this._geolocateButton.classList.remove('mapboxgl-ctrl-geolocate-active');\n this._geolocateButton.classList.remove('mapboxgl-ctrl-geolocate-active-error');\n this._geolocateButton.classList.remove('mapboxgl-ctrl-geolocate-background');\n this._geolocateButton.classList.remove('mapboxgl-ctrl-geolocate-background-error');\n this._geolocateButton.disabled = true;\n var title = this._map._getUIString('GeolocateControl.LocationNotAvailable');\n this._geolocateButton.title = title;\n this._geolocateButton.setAttribute('aria-label', title);\n if (this._geolocationWatchID !== undefined) {\n this._clearWatch();\n }\n } else if (error.code === 3 && noTimeout) {\n return;\n } else {\n this._setErrorState();\n }\n }\n if (this._watchState !== 'OFF' && this.options.showUserLocation) {\n this._dotElement.classList.add('mapboxgl-user-location-dot-stale');\n }\n this.fire(new performance.Event('error', error));\n this._finish();\n };\n GeolocateControl.prototype._finish = function _finish() {\n if (this._timeoutId) {\n clearTimeout(this._timeoutId);\n }\n this._timeoutId = undefined;\n };\n GeolocateControl.prototype._setupUI = function _setupUI(supported) {\n var this$1 = this;\n this._container.addEventListener('contextmenu', function (e) {\n return e.preventDefault();\n });\n this._geolocateButton = DOM.create('button', 'mapboxgl-ctrl-geolocate', this._container);\n DOM.create('span', 'mapboxgl-ctrl-icon', this._geolocateButton).setAttribute('aria-hidden', true);\n this._geolocateButton.type = 'button';\n if (supported === false) {\n performance.warnOnce('Geolocation support is not available so the GeolocateControl will be disabled.');\n var title = this._map._getUIString('GeolocateControl.LocationNotAvailable');\n this._geolocateButton.disabled = true;\n this._geolocateButton.title = title;\n this._geolocateButton.setAttribute('aria-label', title);\n } else {\n var title$1 = this._map._getUIString('GeolocateControl.FindMyLocation');\n this._geolocateButton.title = title$1;\n this._geolocateButton.setAttribute('aria-label', title$1);\n }\n if (this.options.trackUserLocation) {\n this._geolocateButton.setAttribute('aria-pressed', 'false');\n this._watchState = 'OFF';\n }\n if (this.options.showUserLocation) {\n this._dotElement = DOM.create('div', 'mapboxgl-user-location-dot');\n this._userLocationDotMarker = new Marker(this._dotElement);\n this._circleElement = DOM.create('div', 'mapboxgl-user-location-accuracy-circle');\n this._accuracyCircleMarker = new Marker({\n element: this._circleElement,\n pitchAlignment: 'map'\n });\n if (this.options.trackUserLocation) {\n this._watchState = 'OFF';\n }\n this._map.on('zoom', this._onZoom);\n }\n this._geolocateButton.addEventListener('click', this.trigger.bind(this));\n this._setup = true;\n if (this.options.trackUserLocation) {\n this._map.on('movestart', function (event) {\n var fromResize = event.originalEvent && event.originalEvent.type === 'resize';\n if (!event.geolocateSource && this$1._watchState === 'ACTIVE_LOCK' && !fromResize) {\n this$1._watchState = 'BACKGROUND';\n this$1._geolocateButton.classList.add('mapboxgl-ctrl-geolocate-background');\n this$1._geolocateButton.classList.remove('mapboxgl-ctrl-geolocate-active');\n this$1.fire(new performance.Event('trackuserlocationend'));\n }\n });\n }\n };\n GeolocateControl.prototype.trigger = function trigger() {\n if (!this._setup) {\n performance.warnOnce('Geolocate control triggered before added to a map');\n return false;\n }\n if (this.options.trackUserLocation) {\n switch (this._watchState) {\n case 'OFF':\n this._watchState = 'WAITING_ACTIVE';\n this.fire(new performance.Event('trackuserlocationstart'));\n break;\n case 'WAITING_ACTIVE':\n case 'ACTIVE_LOCK':\n case 'ACTIVE_ERROR':\n case 'BACKGROUND_ERROR':\n numberOfWatches--;\n noTimeout = false;\n this._watchState = 'OFF';\n this._geolocateButton.classList.remove('mapboxgl-ctrl-geolocate-waiting');\n this._geolocateButton.classList.remove('mapboxgl-ctrl-geolocate-active');\n this._geolocateButton.classList.remove('mapboxgl-ctrl-geolocate-active-error');\n this._geolocateButton.classList.remove('mapboxgl-ctrl-geolocate-background');\n this._geolocateButton.classList.remove('mapboxgl-ctrl-geolocate-background-error');\n this.fire(new performance.Event('trackuserlocationend'));\n break;\n case 'BACKGROUND':\n this._watchState = 'ACTIVE_LOCK';\n this._geolocateButton.classList.remove('mapboxgl-ctrl-geolocate-background');\n if (this._lastKnownPosition) {\n this._updateCamera(this._lastKnownPosition);\n }\n this.fire(new performance.Event('trackuserlocationstart'));\n break;\n }\n switch (this._watchState) {\n case 'WAITING_ACTIVE':\n this._geolocateButton.classList.add('mapboxgl-ctrl-geolocate-waiting');\n this._geolocateButton.classList.add('mapboxgl-ctrl-geolocate-active');\n break;\n case 'ACTIVE_LOCK':\n this._geolocateButton.classList.add('mapboxgl-ctrl-geolocate-active');\n break;\n case 'ACTIVE_ERROR':\n this._geolocateButton.classList.add('mapboxgl-ctrl-geolocate-waiting');\n this._geolocateButton.classList.add('mapboxgl-ctrl-geolocate-active-error');\n break;\n case 'BACKGROUND':\n this._geolocateButton.classList.add('mapboxgl-ctrl-geolocate-background');\n break;\n case 'BACKGROUND_ERROR':\n this._geolocateButton.classList.add('mapboxgl-ctrl-geolocate-waiting');\n this._geolocateButton.classList.add('mapboxgl-ctrl-geolocate-background-error');\n break;\n }\n if (this._watchState === 'OFF' && this._geolocationWatchID !== undefined) {\n this._clearWatch();\n } else if (this._geolocationWatchID === undefined) {\n this._geolocateButton.classList.add('mapboxgl-ctrl-geolocate-waiting');\n this._geolocateButton.setAttribute('aria-pressed', 'true');\n numberOfWatches++;\n var positionOptions;\n if (numberOfWatches > 1) {\n positionOptions = {\n maximumAge: 600000,\n timeout: 0\n };\n noTimeout = true;\n } else {\n positionOptions = this.options.positionOptions;\n noTimeout = false;\n }\n this._geolocationWatchID = performance.window.navigator.geolocation.watchPosition(this._onSuccess, this._onError, positionOptions);\n }\n } else {\n performance.window.navigator.geolocation.getCurrentPosition(this._onSuccess, this._onError, this.options.positionOptions);\n this._timeoutId = setTimeout(this._finish, 10000);\n }\n return true;\n };\n GeolocateControl.prototype._clearWatch = function _clearWatch() {\n performance.window.navigator.geolocation.clearWatch(this._geolocationWatchID);\n this._geolocationWatchID = undefined;\n this._geolocateButton.classList.remove('mapboxgl-ctrl-geolocate-waiting');\n this._geolocateButton.setAttribute('aria-pressed', 'false');\n if (this.options.showUserLocation) {\n this._updateMarker(null);\n }\n };\n return GeolocateControl;\n}(performance.Evented);\n\nvar defaultOptions$4 = {\n maxWidth: 100,\n unit: 'metric'\n};\nvar ScaleControl = function ScaleControl(options) {\n this.options = performance.extend({}, defaultOptions$4, options);\n performance.bindAll([\n '_onMove',\n 'setUnit'\n ], this);\n};\nScaleControl.prototype.getDefaultPosition = function getDefaultPosition() {\n return 'bottom-left';\n};\nScaleControl.prototype._onMove = function _onMove() {\n updateScale(this._map, this._container, this.options);\n};\nScaleControl.prototype.onAdd = function onAdd(map) {\n this._map = map;\n this._container = DOM.create('div', 'mapboxgl-ctrl mapboxgl-ctrl-scale', map.getContainer());\n this._map.on('move', this._onMove);\n this._onMove();\n return this._container;\n};\nScaleControl.prototype.onRemove = function onRemove() {\n DOM.remove(this._container);\n this._map.off('move', this._onMove);\n this._map = undefined;\n};\nScaleControl.prototype.setUnit = function setUnit(unit) {\n this.options.unit = unit;\n updateScale(this._map, this._container, this.options);\n};\nfunction updateScale(map, container, options) {\n var maxWidth = options && options.maxWidth || 100;\n var y = map._container.clientHeight / 2;\n var left = map.unproject([\n 0,\n y\n ]);\n var right = map.unproject([\n maxWidth,\n y\n ]);\n var maxMeters = left.distanceTo(right);\n if (options && options.unit === 'imperial') {\n var maxFeet = 3.2808 * maxMeters;\n if (maxFeet > 5280) {\n var maxMiles = maxFeet / 5280;\n setScale(container, maxWidth, maxMiles, map._getUIString('ScaleControl.Miles'));\n } else {\n setScale(container, maxWidth, maxFeet, map._getUIString('ScaleControl.Feet'));\n }\n } else if (options && options.unit === 'nautical') {\n var maxNauticals = maxMeters / 1852;\n setScale(container, maxWidth, maxNauticals, map._getUIString('ScaleControl.NauticalMiles'));\n } else if (maxMeters >= 1000) {\n setScale(container, maxWidth, maxMeters / 1000, map._getUIString('ScaleControl.Kilometers'));\n } else {\n setScale(container, maxWidth, maxMeters, map._getUIString('ScaleControl.Meters'));\n }\n}\nfunction setScale(container, maxWidth, maxDistance, unit) {\n var distance = getRoundNum(maxDistance);\n var ratio = distance / maxDistance;\n container.style.width = maxWidth * ratio + 'px';\n container.innerHTML = distance + ' ' + unit;\n}\nfunction getDecimalRoundNum(d) {\n var multiplier = Math.pow(10, Math.ceil(-Math.log(d) / Math.LN10));\n return Math.round(d * multiplier) / multiplier;\n}\nfunction getRoundNum(num) {\n var pow10 = Math.pow(10, ('' + Math.floor(num)).length - 1);\n var d = num / pow10;\n d = d >= 10 ? 10 : d >= 5 ? 5 : d >= 3 ? 3 : d >= 2 ? 2 : d >= 1 ? 1 : getDecimalRoundNum(d);\n return pow10 * d;\n}\n\nvar FullscreenControl = function FullscreenControl(options) {\n this._fullscreen = false;\n if (options && options.container) {\n if (options.container instanceof performance.window.HTMLElement) {\n this._container = options.container;\n } else {\n performance.warnOnce('Full screen control \\'container\\' must be a DOM element.');\n }\n }\n performance.bindAll([\n '_onClickFullscreen',\n '_changeIcon'\n ], this);\n if ('onfullscreenchange' in performance.window.document) {\n this._fullscreenchange = 'fullscreenchange';\n } else if ('onmozfullscreenchange' in performance.window.document) {\n this._fullscreenchange = 'mozfullscreenchange';\n } else if ('onwebkitfullscreenchange' in performance.window.document) {\n this._fullscreenchange = 'webkitfullscreenchange';\n } else if ('onmsfullscreenchange' in performance.window.document) {\n this._fullscreenchange = 'MSFullscreenChange';\n }\n};\nFullscreenControl.prototype.onAdd = function onAdd(map) {\n this._map = map;\n if (!this._container) {\n this._container = this._map.getContainer();\n }\n this._controlContainer = DOM.create('div', 'mapboxgl-ctrl mapboxgl-ctrl-group');\n if (this._checkFullscreenSupport()) {\n this._setupUI();\n } else {\n this._controlContainer.style.display = 'none';\n performance.warnOnce('This device does not support fullscreen mode.');\n }\n return this._controlContainer;\n};\nFullscreenControl.prototype.onRemove = function onRemove() {\n DOM.remove(this._controlContainer);\n this._map = null;\n performance.window.document.removeEventListener(this._fullscreenchange, this._changeIcon);\n};\nFullscreenControl.prototype._checkFullscreenSupport = function _checkFullscreenSupport() {\n return !!(performance.window.document.fullscreenEnabled || performance.window.document.mozFullScreenEnabled || performance.window.document.msFullscreenEnabled || performance.window.document.webkitFullscreenEnabled);\n};\nFullscreenControl.prototype._setupUI = function _setupUI() {\n var button = this._fullscreenButton = DOM.create('button', 'mapboxgl-ctrl-fullscreen', this._controlContainer);\n DOM.create('span', 'mapboxgl-ctrl-icon', button).setAttribute('aria-hidden', true);\n button.type = 'button';\n this._updateTitle();\n this._fullscreenButton.addEventListener('click', this._onClickFullscreen);\n performance.window.document.addEventListener(this._fullscreenchange, this._changeIcon);\n};\nFullscreenControl.prototype._updateTitle = function _updateTitle() {\n var title = this._getTitle();\n this._fullscreenButton.setAttribute('aria-label', title);\n this._fullscreenButton.title = title;\n};\nFullscreenControl.prototype._getTitle = function _getTitle() {\n return this._map._getUIString(this._isFullscreen() ? 'FullscreenControl.Exit' : 'FullscreenControl.Enter');\n};\nFullscreenControl.prototype._isFullscreen = function _isFullscreen() {\n return this._fullscreen;\n};\nFullscreenControl.prototype._changeIcon = function _changeIcon() {\n var fullscreenElement = performance.window.document.fullscreenElement || performance.window.document.mozFullScreenElement || performance.window.document.webkitFullscreenElement || performance.window.document.msFullscreenElement;\n if (fullscreenElement === this._container !== this._fullscreen) {\n this._fullscreen = !this._fullscreen;\n this._fullscreenButton.classList.toggle('mapboxgl-ctrl-shrink');\n this._fullscreenButton.classList.toggle('mapboxgl-ctrl-fullscreen');\n this._updateTitle();\n }\n};\nFullscreenControl.prototype._onClickFullscreen = function _onClickFullscreen() {\n if (this._isFullscreen()) {\n if (performance.window.document.exitFullscreen) {\n performance.window.document.exitFullscreen();\n } else if (performance.window.document.mozCancelFullScreen) {\n performance.window.document.mozCancelFullScreen();\n } else if (performance.window.document.msExitFullscreen) {\n performance.window.document.msExitFullscreen();\n } else if (performance.window.document.webkitCancelFullScreen) {\n performance.window.document.webkitCancelFullScreen();\n }\n } else if (this._container.requestFullscreen) {\n this._container.requestFullscreen();\n } else if (this._container.mozRequestFullScreen) {\n this._container.mozRequestFullScreen();\n } else if (this._container.msRequestFullscreen) {\n this._container.msRequestFullscreen();\n } else if (this._container.webkitRequestFullscreen) {\n this._container.webkitRequestFullscreen();\n }\n};\n\nvar defaultOptions$5 = {\n closeButton: true,\n closeOnClick: true,\n className: '',\n maxWidth: '240px'\n};\nvar Popup = function (Evented) {\n function Popup(options) {\n Evented.call(this);\n this.options = performance.extend(Object.create(defaultOptions$5), options);\n performance.bindAll([\n '_update',\n '_onClose',\n 'remove',\n '_onMouseMove',\n '_onMouseUp',\n '_onDrag'\n ], this);\n }\n if (Evented)\n Popup.__proto__ = Evented;\n Popup.prototype = Object.create(Evented && Evented.prototype);\n Popup.prototype.constructor = Popup;\n Popup.prototype.addTo = function addTo(map) {\n if (this._map) {\n this.remove();\n }\n this._map = map;\n if (this.options.closeOnClick) {\n this._map.on('click', this._onClose);\n }\n if (this.options.closeOnMove) {\n this._map.on('move', this._onClose);\n }\n this._map.on('remove', this.remove);\n this._update();\n if (this._trackPointer) {\n this._map.on('mousemove', this._onMouseMove);\n this._map.on('mouseup', this._onMouseUp);\n if (this._container) {\n this._container.classList.add('mapboxgl-popup-track-pointer');\n }\n this._map._canvasContainer.classList.add('mapboxgl-track-pointer');\n } else {\n this._map.on('move', this._update);\n }\n this.fire(new performance.Event('open'));\n return this;\n };\n Popup.prototype.isOpen = function isOpen() {\n return !!this._map;\n };\n Popup.prototype.remove = function remove() {\n if (this._content) {\n DOM.remove(this._content);\n }\n if (this._container) {\n DOM.remove(this._container);\n delete this._container;\n }\n if (this._map) {\n this._map.off('move', this._update);\n this._map.off('move', this._onClose);\n this._map.off('click', this._onClose);\n this._map.off('remove', this.remove);\n this._map.off('mousemove', this._onMouseMove);\n this._map.off('mouseup', this._onMouseUp);\n this._map.off('drag', this._onDrag);\n delete this._map;\n }\n this.fire(new performance.Event('close'));\n return this;\n };\n Popup.prototype.getLngLat = function getLngLat() {\n return this._lngLat;\n };\n Popup.prototype.setLngLat = function setLngLat(lnglat) {\n this._lngLat = performance.LngLat.convert(lnglat);\n this._pos = null;\n this._trackPointer = false;\n this._update();\n if (this._map) {\n this._map.on('move', this._update);\n this._map.off('mousemove', this._onMouseMove);\n if (this._container) {\n this._container.classList.remove('mapboxgl-popup-track-pointer');\n }\n this._map._canvasContainer.classList.remove('mapboxgl-track-pointer');\n }\n return this;\n };\n Popup.prototype.trackPointer = function trackPointer() {\n this._trackPointer = true;\n this._pos = null;\n this._update();\n if (this._map) {\n this._map.off('move', this._update);\n this._map.on('mousemove', this._onMouseMove);\n this._map.on('drag', this._onDrag);\n if (this._container) {\n this._container.classList.add('mapboxgl-popup-track-pointer');\n }\n this._map._canvasContainer.classList.add('mapboxgl-track-pointer');\n }\n return this;\n };\n Popup.prototype.getElement = function getElement() {\n return this._container;\n };\n Popup.prototype.setText = function setText(text) {\n return this.setDOMContent(performance.window.document.createTextNode(text));\n };\n Popup.prototype.setHTML = function setHTML(html) {\n var frag = performance.window.document.createDocumentFragment();\n var temp = performance.window.document.createElement('body');\n var child;\n temp.innerHTML = html;\n while (true) {\n child = temp.firstChild;\n if (!child) {\n break;\n }\n frag.appendChild(child);\n }\n return this.setDOMContent(frag);\n };\n Popup.prototype.getMaxWidth = function getMaxWidth() {\n return this._container && this._container.style.maxWidth;\n };\n Popup.prototype.setMaxWidth = function setMaxWidth(maxWidth) {\n this.options.maxWidth = maxWidth;\n this._update();\n return this;\n };\n Popup.prototype.setDOMContent = function setDOMContent(htmlNode) {\n this._createContent();\n this._content.appendChild(htmlNode);\n this._update();\n return this;\n };\n Popup.prototype.addClassName = function addClassName(className) {\n if (this._container) {\n this._container.classList.add(className);\n }\n };\n Popup.prototype.removeClassName = function removeClassName(className) {\n if (this._container) {\n this._container.classList.remove(className);\n }\n };\n Popup.prototype.toggleClassName = function toggleClassName(className) {\n if (this._container) {\n return this._container.classList.toggle(className);\n }\n };\n Popup.prototype._createContent = function _createContent() {\n if (this._content) {\n DOM.remove(this._content);\n }\n this._content = DOM.create('div', 'mapboxgl-popup-content', this._container);\n if (this.options.closeButton) {\n this._closeButton = DOM.create('button', 'mapboxgl-popup-close-button', this._content);\n this._closeButton.type = 'button';\n this._closeButton.setAttribute('aria-label', 'Close popup');\n this._closeButton.innerHTML = '×';\n this._closeButton.addEventListener('click', this._onClose);\n }\n };\n Popup.prototype._onMouseUp = function _onMouseUp(event) {\n this._update(event.point);\n };\n Popup.prototype._onMouseMove = function _onMouseMove(event) {\n this._update(event.point);\n };\n Popup.prototype._onDrag = function _onDrag(event) {\n this._update(event.point);\n };\n Popup.prototype._update = function _update(cursor) {\n var this$1 = this;\n var hasPosition = this._lngLat || this._trackPointer;\n if (!this._map || !hasPosition || !this._content) {\n return;\n }\n if (!this._container) {\n this._container = DOM.create('div', 'mapboxgl-popup', this._map.getContainer());\n this._tip = DOM.create('div', 'mapboxgl-popup-tip', this._container);\n this._container.appendChild(this._content);\n if (this.options.className) {\n this.options.className.split(' ').forEach(function (name) {\n return this$1._container.classList.add(name);\n });\n }\n if (this._trackPointer) {\n this._container.classList.add('mapboxgl-popup-track-pointer');\n }\n }\n if (this.options.maxWidth && this._container.style.maxWidth !== this.options.maxWidth) {\n this._container.style.maxWidth = this.options.maxWidth;\n }\n if (this._map.transform.renderWorldCopies && !this._trackPointer) {\n this._lngLat = smartWrap(this._lngLat, this._pos, this._map.transform);\n }\n if (this._trackPointer && !cursor) {\n return;\n }\n var pos = this._pos = this._trackPointer && cursor ? cursor : this._map.project(this._lngLat);\n var anchor = this.options.anchor;\n var offset = normalizeOffset(this.options.offset);\n if (!anchor) {\n var width = this._container.offsetWidth;\n var height = this._container.offsetHeight;\n var anchorComponents;\n if (pos.y + offset.bottom.y < height) {\n anchorComponents = ['top'];\n } else if (pos.y > this._map.transform.height - height) {\n anchorComponents = ['bottom'];\n } else {\n anchorComponents = [];\n }\n if (pos.x < width / 2) {\n anchorComponents.push('left');\n } else if (pos.x > this._map.transform.width - width / 2) {\n anchorComponents.push('right');\n }\n if (anchorComponents.length === 0) {\n anchor = 'bottom';\n } else {\n anchor = anchorComponents.join('-');\n }\n }\n var offsetedPos = pos.add(offset[anchor]).round();\n DOM.setTransform(this._container, anchorTranslate[anchor] + ' translate(' + offsetedPos.x + 'px,' + offsetedPos.y + 'px)');\n applyAnchorClass(this._container, anchor, 'popup');\n };\n Popup.prototype._onClose = function _onClose() {\n this.remove();\n };\n return Popup;\n}(performance.Evented);\nfunction normalizeOffset(offset) {\n if (!offset) {\n return normalizeOffset(new performance.Point(0, 0));\n } else if (typeof offset === 'number') {\n var cornerOffset = Math.round(Math.sqrt(0.5 * Math.pow(offset, 2)));\n return {\n 'center': new performance.Point(0, 0),\n 'top': new performance.Point(0, offset),\n 'top-left': new performance.Point(cornerOffset, cornerOffset),\n 'top-right': new performance.Point(-cornerOffset, cornerOffset),\n 'bottom': new performance.Point(0, -offset),\n 'bottom-left': new performance.Point(cornerOffset, -cornerOffset),\n 'bottom-right': new performance.Point(-cornerOffset, -cornerOffset),\n 'left': new performance.Point(offset, 0),\n 'right': new performance.Point(-offset, 0)\n };\n } else if (offset instanceof performance.Point || Array.isArray(offset)) {\n var convertedOffset = performance.Point.convert(offset);\n return {\n 'center': convertedOffset,\n 'top': convertedOffset,\n 'top-left': convertedOffset,\n 'top-right': convertedOffset,\n 'bottom': convertedOffset,\n 'bottom-left': convertedOffset,\n 'bottom-right': convertedOffset,\n 'left': convertedOffset,\n 'right': convertedOffset\n };\n } else {\n return {\n 'center': performance.Point.convert(offset['center'] || [\n 0,\n 0\n ]),\n 'top': performance.Point.convert(offset['top'] || [\n 0,\n 0\n ]),\n 'top-left': performance.Point.convert(offset['top-left'] || [\n 0,\n 0\n ]),\n 'top-right': performance.Point.convert(offset['top-right'] || [\n 0,\n 0\n ]),\n 'bottom': performance.Point.convert(offset['bottom'] || [\n 0,\n 0\n ]),\n 'bottom-left': performance.Point.convert(offset['bottom-left'] || [\n 0,\n 0\n ]),\n 'bottom-right': performance.Point.convert(offset['bottom-right'] || [\n 0,\n 0\n ]),\n 'left': performance.Point.convert(offset['left'] || [\n 0,\n 0\n ]),\n 'right': performance.Point.convert(offset['right'] || [\n 0,\n 0\n ])\n };\n }\n}\n\nvar exported = {\n version: performance.version,\n supported: mapboxGlSupported,\n setRTLTextPlugin: performance.setRTLTextPlugin,\n getRTLTextPluginStatus: performance.getRTLTextPluginStatus,\n Map: Map,\n NavigationControl: NavigationControl,\n GeolocateControl: GeolocateControl,\n AttributionControl: AttributionControl,\n ScaleControl: ScaleControl,\n FullscreenControl: FullscreenControl,\n Popup: Popup,\n Marker: Marker,\n Style: Style,\n LngLat: performance.LngLat,\n LngLatBounds: performance.LngLatBounds,\n Point: performance.Point,\n MercatorCoordinate: performance.MercatorCoordinate,\n Evented: performance.Evented,\n config: performance.config,\n prewarm: prewarm,\n clearPrewarmedResources: clearPrewarmedResources,\n get accessToken() {\n return performance.config.ACCESS_TOKEN;\n },\n set accessToken(token) {\n performance.config.ACCESS_TOKEN = token;\n },\n get baseApiUrl() {\n return performance.config.API_URL;\n },\n set baseApiUrl(url) {\n performance.config.API_URL = url;\n },\n get workerCount() {\n return WorkerPool.workerCount;\n },\n set workerCount(count) {\n WorkerPool.workerCount = count;\n },\n get maxParallelImageRequests() {\n return performance.config.MAX_PARALLEL_IMAGE_REQUESTS;\n },\n set maxParallelImageRequests(numRequests) {\n performance.config.MAX_PARALLEL_IMAGE_REQUESTS = numRequests;\n },\n clearStorage: function clearStorage(callback) {\n performance.clearTileCache(callback);\n },\n workerUrl: ''\n};\n\nreturn exported;\n\n});\n\n//\n\nreturn mapboxgl;\n\n})));\n\n\n},{}],240:[function(_dereq_,module,exports){\n'use strict';\nmodule.exports = Math.log2 || function (x) {\n\treturn Math.log(x) * Math.LOG2E;\n};\n\n},{}],241:[function(_dereq_,module,exports){\n'use strict'\n\nmodule.exports = mouseListen\n\nvar mouse = _dereq_('mouse-event')\n\nfunction mouseListen (element, callback) {\n if (!callback) {\n callback = element\n element = window\n }\n\n var buttonState = 0\n var x = 0\n var y = 0\n var mods = {\n shift: false,\n alt: false,\n control: false,\n meta: false\n }\n var attached = false\n\n function updateMods (ev) {\n var changed = false\n if ('altKey' in ev) {\n changed = changed || ev.altKey !== mods.alt\n mods.alt = !!ev.altKey\n }\n if ('shiftKey' in ev) {\n changed = changed || ev.shiftKey !== mods.shift\n mods.shift = !!ev.shiftKey\n }\n if ('ctrlKey' in ev) {\n changed = changed || ev.ctrlKey !== mods.control\n mods.control = !!ev.ctrlKey\n }\n if ('metaKey' in ev) {\n changed = changed || ev.metaKey !== mods.meta\n mods.meta = !!ev.metaKey\n }\n return changed\n }\n\n function handleEvent (nextButtons, ev) {\n var nextX = mouse.x(ev)\n var nextY = mouse.y(ev)\n if ('buttons' in ev) {\n nextButtons = ev.buttons | 0\n }\n if (nextButtons !== buttonState ||\n nextX !== x ||\n nextY !== y ||\n updateMods(ev)) {\n buttonState = nextButtons | 0\n x = nextX || 0\n y = nextY || 0\n callback && callback(buttonState, x, y, mods)\n }\n }\n\n function clearState (ev) {\n handleEvent(0, ev)\n }\n\n function handleBlur () {\n if (buttonState ||\n x ||\n y ||\n mods.shift ||\n mods.alt ||\n mods.meta ||\n mods.control) {\n x = y = 0\n buttonState = 0\n mods.shift = mods.alt = mods.control = mods.meta = false\n callback && callback(0, 0, 0, mods)\n }\n }\n\n function handleMods (ev) {\n if (updateMods(ev)) {\n callback && callback(buttonState, x, y, mods)\n }\n }\n\n function handleMouseMove (ev) {\n if (mouse.buttons(ev) === 0) {\n handleEvent(0, ev)\n } else {\n handleEvent(buttonState, ev)\n }\n }\n\n function handleMouseDown (ev) {\n handleEvent(buttonState | mouse.buttons(ev), ev)\n }\n\n function handleMouseUp (ev) {\n handleEvent(buttonState & ~mouse.buttons(ev), ev)\n }\n\n function attachListeners () {\n if (attached) {\n return\n }\n attached = true\n\n element.addEventListener('mousemove', handleMouseMove)\n\n element.addEventListener('mousedown', handleMouseDown)\n\n element.addEventListener('mouseup', handleMouseUp)\n\n element.addEventListener('mouseleave', clearState)\n element.addEventListener('mouseenter', clearState)\n element.addEventListener('mouseout', clearState)\n element.addEventListener('mouseover', clearState)\n\n element.addEventListener('blur', handleBlur)\n\n element.addEventListener('keyup', handleMods)\n element.addEventListener('keydown', handleMods)\n element.addEventListener('keypress', handleMods)\n\n if (element !== window) {\n window.addEventListener('blur', handleBlur)\n\n window.addEventListener('keyup', handleMods)\n window.addEventListener('keydown', handleMods)\n window.addEventListener('keypress', handleMods)\n }\n }\n\n function detachListeners () {\n if (!attached) {\n return\n }\n attached = false\n\n element.removeEventListener('mousemove', handleMouseMove)\n\n element.removeEventListener('mousedown', handleMouseDown)\n\n element.removeEventListener('mouseup', handleMouseUp)\n\n element.removeEventListener('mouseleave', clearState)\n element.removeEventListener('mouseenter', clearState)\n element.removeEventListener('mouseout', clearState)\n element.removeEventListener('mouseover', clearState)\n\n element.removeEventListener('blur', handleBlur)\n\n element.removeEventListener('keyup', handleMods)\n element.removeEventListener('keydown', handleMods)\n element.removeEventListener('keypress', handleMods)\n\n if (element !== window) {\n window.removeEventListener('blur', handleBlur)\n\n window.removeEventListener('keyup', handleMods)\n window.removeEventListener('keydown', handleMods)\n window.removeEventListener('keypress', handleMods)\n }\n }\n\n // Attach listeners\n attachListeners()\n\n var result = {\n element: element\n }\n\n Object.defineProperties(result, {\n enabled: {\n get: function () { return attached },\n set: function (f) {\n if (f) {\n attachListeners()\n } else {\n detachListeners()\n }\n },\n enumerable: true\n },\n buttons: {\n get: function () { return buttonState },\n enumerable: true\n },\n x: {\n get: function () { return x },\n enumerable: true\n },\n y: {\n get: function () { return y },\n enumerable: true\n },\n mods: {\n get: function () { return mods },\n enumerable: true\n }\n })\n\n return result\n}\n\n},{\"mouse-event\":243}],242:[function(_dereq_,module,exports){\nvar rootPosition = { left: 0, top: 0 }\n\nmodule.exports = mouseEventOffset\nfunction mouseEventOffset (ev, target, out) {\n target = target || ev.currentTarget || ev.srcElement\n if (!Array.isArray(out)) {\n out = [ 0, 0 ]\n }\n var cx = ev.clientX || 0\n var cy = ev.clientY || 0\n var rect = getBoundingClientOffset(target)\n out[0] = cx - rect.left\n out[1] = cy - rect.top\n return out\n}\n\nfunction getBoundingClientOffset (element) {\n if (element === window ||\n element === document ||\n element === document.body) {\n return rootPosition\n } else {\n return element.getBoundingClientRect()\n }\n}\n\n},{}],243:[function(_dereq_,module,exports){\n'use strict'\n\nfunction mouseButtons(ev) {\n if(typeof ev === 'object') {\n if('buttons' in ev) {\n return ev.buttons\n } else if('which' in ev) {\n var b = ev.which\n if(b === 2) {\n return 4\n } else if(b === 3) {\n return 2\n } else if(b > 0) {\n return 1<<(b-1)\n }\n } else if('button' in ev) {\n var b = ev.button\n if(b === 1) {\n return 4\n } else if(b === 2) {\n return 2\n } else if(b >= 0) {\n return 1< 0) {\n\t\t\t\t\tschedule(notify,self);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (err) {\n\t\t\treject.call(new MakeDefWrapper(self),err);\n\t\t}\n\t}\n\n\tfunction reject(msg) {\n\t\tvar self = this;\n\n\t\t// already triggered?\n\t\tif (self.triggered) { return; }\n\n\t\tself.triggered = true;\n\n\t\t// unwrap\n\t\tif (self.def) {\n\t\t\tself = self.def;\n\t\t}\n\n\t\tself.msg = msg;\n\t\tself.state = 2;\n\t\tif (self.chain.length > 0) {\n\t\t\tschedule(notify,self);\n\t\t}\n\t}\n\n\tfunction iteratePromises(Constructor,arr,resolver,rejecter) {\n\t\tfor (var idx=0; idx 7) {\n\t\t\t\t\tresult.push(seg.splice(0, 7))\n\t\t\t\t\tseg.unshift('C')\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\tcase 'S':\n\t\t\t\t// default control point\n\t\t\t\tvar cx = x\n\t\t\t\tvar cy = y\n\t\t\t\tif (prev == 'C' || prev == 'S') {\n\t\t\t\t\tcx += cx - bezierX // reflect the previous command's control\n\t\t\t\t\tcy += cy - bezierY // point relative to the current point\n\t\t\t\t}\n\t\t\t\tseg = ['C', cx, cy, seg[1], seg[2], seg[3], seg[4]]\n\t\t\t\tbreak\n\t\t\tcase 'T':\n\t\t\t\tif (prev == 'Q' || prev == 'T') {\n\t\t\t\t\tquadX = x * 2 - quadX // as with 'S' reflect previous control point\n\t\t\t\t\tquadY = y * 2 - quadY\n\t\t\t\t} else {\n\t\t\t\t\tquadX = x\n\t\t\t\t\tquadY = y\n\t\t\t\t}\n\t\t\t\tseg = quadratic(x, y, quadX, quadY, seg[1], seg[2])\n\t\t\t\tbreak\n\t\t\tcase 'Q':\n\t\t\t\tquadX = seg[1]\n\t\t\t\tquadY = seg[2]\n\t\t\t\tseg = quadratic(x, y, seg[1], seg[2], seg[3], seg[4])\n\t\t\t\tbreak\n\t\t\tcase 'L':\n\t\t\t\tseg = line(x, y, seg[1], seg[2])\n\t\t\t\tbreak\n\t\t\tcase 'H':\n\t\t\t\tseg = line(x, y, seg[1], y)\n\t\t\t\tbreak\n\t\t\tcase 'V':\n\t\t\t\tseg = line(x, y, x, seg[1])\n\t\t\t\tbreak\n\t\t\tcase 'Z':\n\t\t\t\tseg = line(x, y, startX, startY)\n\t\t\t\tbreak\n\t\t}\n\n\t\t// update state\n\t\tprev = command\n\t\tx = seg[seg.length - 2]\n\t\ty = seg[seg.length - 1]\n\t\tif (seg.length > 4) {\n\t\t\tbezierX = seg[seg.length - 4]\n\t\t\tbezierY = seg[seg.length - 3]\n\t\t} else {\n\t\t\tbezierX = x\n\t\t\tbezierY = y\n\t\t}\n\t\tresult.push(seg)\n\t}\n\n\treturn result\n}\n\nfunction line(x1, y1, x2, y2){\n\treturn ['C', x1, y1, x2, y2, x2, y2]\n}\n\nfunction quadratic(x1, y1, cx, cy, x2, y2){\n\treturn [\n\t\t'C',\n\t\tx1/3 + (2/3) * cx,\n\t\ty1/3 + (2/3) * cy,\n\t\tx2/3 + (2/3) * cx,\n\t\ty2/3 + (2/3) * cy,\n\t\tx2,\n\t\ty2\n\t]\n}\n\n// This function is ripped from \n// github.com/DmitryBaranovskiy/raphael/blob/4d97d4/raphael.js#L2216-L2304 \n// which references w3.org/TR/SVG11/implnote.html#ArcImplementationNotes\n// TODO: make it human readable\n\nfunction arc(x1, y1, rx, ry, angle, large_arc_flag, sweep_flag, x2, y2, recursive) {\n\tif (!recursive) {\n\t\tvar xy = rotate(x1, y1, -angle)\n\t\tx1 = xy.x\n\t\ty1 = xy.y\n\t\txy = rotate(x2, y2, -angle)\n\t\tx2 = xy.x\n\t\ty2 = xy.y\n\t\tvar x = (x1 - x2) / 2\n\t\tvar y = (y1 - y2) / 2\n\t\tvar h = (x * x) / (rx * rx) + (y * y) / (ry * ry)\n\t\tif (h > 1) {\n\t\t\th = Math.sqrt(h)\n\t\t\trx = h * rx\n\t\t\try = h * ry\n\t\t}\n\t\tvar rx2 = rx * rx\n\t\tvar ry2 = ry * ry\n\t\tvar k = (large_arc_flag == sweep_flag ? -1 : 1)\n\t\t\t* Math.sqrt(Math.abs((rx2 * ry2 - rx2 * y * y - ry2 * x * x) / (rx2 * y * y + ry2 * x * x)))\n\t\tif (k == Infinity) k = 1 // neutralize\n\t\tvar cx = k * rx * y / ry + (x1 + x2) / 2\n\t\tvar cy = k * -ry * x / rx + (y1 + y2) / 2\n\t\tvar f1 = Math.asin(((y1 - cy) / ry).toFixed(9))\n\t\tvar f2 = Math.asin(((y2 - cy) / ry).toFixed(9))\n\n\t\tf1 = x1 < cx ? π - f1 : f1\n\t\tf2 = x2 < cx ? π - f2 : f2\n\t\tif (f1 < 0) f1 = π * 2 + f1\n\t\tif (f2 < 0) f2 = π * 2 + f2\n\t\tif (sweep_flag && f1 > f2) f1 = f1 - π * 2\n\t\tif (!sweep_flag && f2 > f1) f2 = f2 - π * 2\n\t} else {\n\t\tf1 = recursive[0]\n\t\tf2 = recursive[1]\n\t\tcx = recursive[2]\n\t\tcy = recursive[3]\n\t}\n\t// greater than 120 degrees requires multiple segments\n\tif (Math.abs(f2 - f1) > _120) {\n\t\tvar f2old = f2\n\t\tvar x2old = x2\n\t\tvar y2old = y2\n\t\tf2 = f1 + _120 * (sweep_flag && f2 > f1 ? 1 : -1)\n\t\tx2 = cx + rx * Math.cos(f2)\n\t\ty2 = cy + ry * Math.sin(f2)\n\t\tvar res = arc(x2, y2, rx, ry, angle, 0, sweep_flag, x2old, y2old, [f2, f2old, cx, cy])\n\t}\n\tvar t = Math.tan((f2 - f1) / 4)\n\tvar hx = 4 / 3 * rx * t\n\tvar hy = 4 / 3 * ry * t\n\tvar curve = [\n\t\t2 * x1 - (x1 + hx * Math.sin(f1)),\n\t\t2 * y1 - (y1 - hy * Math.cos(f1)),\n\t\tx2 + hx * Math.sin(f2),\n\t\ty2 - hy * Math.cos(f2),\n\t\tx2,\n\t\ty2\n\t]\n\tif (recursive) return curve\n\tif (res) curve = curve.concat(res)\n\tfor (var i = 0; i < curve.length;) {\n\t\tvar rot = rotate(curve[i], curve[i+1], angle)\n\t\tcurve[i++] = rot.x\n\t\tcurve[i++] = rot.y\n\t}\n\treturn curve\n}\n\nfunction rotate(x, y, rad){\n\treturn {\n\t\tx: x * Math.cos(rad) - y * Math.sin(rad),\n\t\ty: x * Math.sin(rad) + y * Math.cos(rad)\n\t}\n}\n\nfunction radians(degress){\n\treturn degress * (π / 180)\n}\n\n},{}],247:[function(_dereq_,module,exports){\n/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n\n},{}],248:[function(_dereq_,module,exports){\n'use strict'\n\n/**\n * @module parenthesis\n */\n\nfunction parse (str, opts) {\n\t// pretend non-string parsed per-se\n\tif (typeof str !== 'string') return [str]\n\n\tvar res = [str]\n\n\tif (typeof opts === 'string' || Array.isArray(opts)) {\n\t\topts = {brackets: opts}\n\t}\n\telse if (!opts) opts = {}\n\n\tvar brackets = opts.brackets ? (Array.isArray(opts.brackets) ? opts.brackets : [opts.brackets]) : ['{}', '[]', '()']\n\n\tvar escape = opts.escape || '___'\n\n\tvar flat = !!opts.flat\n\n\tbrackets.forEach(function (bracket) {\n\t\t// create parenthesis regex\n\t\tvar pRE = new RegExp(['\\\\', bracket[0], '[^\\\\', bracket[0], '\\\\', bracket[1], ']*\\\\', bracket[1]].join(''))\n\n\t\tvar ids = []\n\n\t\tfunction replaceToken(token, idx, str){\n\t\t\t// save token to res\n\t\t\tvar refId = res.push(token.slice(bracket[0].length, -bracket[1].length)) - 1\n\n\t\t\tids.push(refId)\n\n\t\t\treturn escape + refId + escape\n\t\t}\n\n\t\tres.forEach(function (str, i) {\n\t\t\tvar prevStr\n\n\t\t\t// replace paren tokens till there’s none\n\t\t\tvar a = 0\n\t\t\twhile (str != prevStr) {\n\t\t\t\tprevStr = str\n\t\t\t\tstr = str.replace(pRE, replaceToken)\n\t\t\t\tif (a++ > 10e3) throw Error('References have circular dependency. Please, check them.')\n\t\t\t}\n\n\t\t\tres[i] = str\n\t\t})\n\n\t\t// wrap found refs to brackets\n\t\tids = ids.reverse()\n\t\tres = res.map(function (str) {\n\t\t\tids.forEach(function (id) {\n\t\t\t\tstr = str.replace(new RegExp('(\\\\' + escape + id + '\\\\' + escape + ')', 'g'), bracket[0] + '$1' + bracket[1])\n\t\t\t})\n\t\t\treturn str\n\t\t})\n\t})\n\n\tvar re = new RegExp('\\\\' + escape + '([0-9]+)' + '\\\\' + escape)\n\n\t// transform references to tree\n\tfunction nest (str, refs, escape) {\n\t\tvar res = [], match\n\n\t\tvar a = 0\n\t\twhile (match = re.exec(str)) {\n\t\t\tif (a++ > 10e3) throw Error('Circular references in parenthesis')\n\n\t\t\tres.push(str.slice(0, match.index))\n\n\t\t\tres.push(nest(refs[match[1]], refs))\n\n\t\t\tstr = str.slice(match.index + match[0].length)\n\t\t}\n\n\t\tres.push(str)\n\n\t\treturn res\n\t}\n\n\treturn flat ? res : nest(res[0], res)\n}\n\nfunction stringify (arg, opts) {\n\tif (opts && opts.flat) {\n\t\tvar escape = opts && opts.escape || '___'\n\n\t\tvar str = arg[0], prevStr\n\n\t\t// pretend bad string stringified with no parentheses\n\t\tif (!str) return ''\n\n\n\t\tvar re = new RegExp('\\\\' + escape + '([0-9]+)' + '\\\\' + escape)\n\n\t\tvar a = 0\n\t\twhile (str != prevStr) {\n\t\t\tif (a++ > 10e3) throw Error('Circular references in ' + arg)\n\t\t\tprevStr = str\n\t\t\tstr = str.replace(re, replaceRef)\n\t\t}\n\n\t\treturn str\n\t}\n\n\treturn arg.reduce(function f (prev, curr) {\n\t\tif (Array.isArray(curr)) {\n\t\t\tcurr = curr.reduce(f, '')\n\t\t}\n\t\treturn prev + curr\n\t}, '')\n\n\tfunction replaceRef(match, idx){\n\t\tif (arg[idx] == null) throw Error('Reference ' + idx + 'is undefined')\n\t\treturn arg[idx]\n\t}\n}\n\nfunction parenthesis (arg, opts) {\n\tif (Array.isArray(arg)) {\n\t\treturn stringify(arg, opts)\n\t}\n\telse {\n\t\treturn parse(arg, opts)\n\t}\n}\n\nparenthesis.parse = parse\nparenthesis.stringify = stringify\n\nmodule.exports = parenthesis\n\n},{}],249:[function(_dereq_,module,exports){\n'use strict'\r\n\r\nvar pick = _dereq_('pick-by-alias')\r\n\r\nmodule.exports = parseRect\r\n\r\nfunction parseRect (arg) {\r\n var rect\r\n\r\n // direct arguments sequence\r\n if (arguments.length > 1) {\r\n arg = arguments\r\n }\r\n\r\n // svg viewbox\r\n if (typeof arg === 'string') {\r\n arg = arg.split(/\\s/).map(parseFloat)\r\n }\r\n else if (typeof arg === 'number') {\r\n arg = [arg]\r\n }\r\n\r\n // 0, 0, 100, 100 - array-like\r\n if (arg.length && typeof arg[0] === 'number') {\r\n // [w, w]\r\n if (arg.length === 1) {\r\n rect = {\r\n width: arg[0],\r\n height: arg[0],\r\n x: 0, y: 0\r\n }\r\n }\r\n // [w, h]\r\n else if (arg.length === 2) {\r\n rect = {\r\n width: arg[0],\r\n height: arg[1],\r\n x: 0, y: 0\r\n }\r\n }\r\n // [l, t, r, b]\r\n else {\r\n rect = {\r\n x: arg[0],\r\n y: arg[1],\r\n width: (arg[2] - arg[0]) || 0,\r\n height: (arg[3] - arg[1]) || 0\r\n }\r\n }\r\n }\r\n // {x, y, w, h} or {l, t, b, r}\r\n else if (arg) {\r\n arg = pick(arg, {\r\n left: 'x l left Left',\r\n top: 'y t top Top',\r\n width: 'w width W Width',\r\n height: 'h height W Width',\r\n bottom: 'b bottom Bottom',\r\n right: 'r right Right'\r\n })\r\n\r\n rect = {\r\n x: arg.left || 0,\r\n y: arg.top || 0\r\n }\r\n\r\n if (arg.width == null) {\r\n if (arg.right) rect.width = arg.right - rect.x\r\n else rect.width = 0\r\n }\r\n else {\r\n rect.width = arg.width\r\n }\r\n\r\n if (arg.height == null) {\r\n if (arg.bottom) rect.height = arg.bottom - rect.y\r\n else rect.height = 0\r\n }\r\n else {\r\n rect.height = arg.height\r\n }\r\n }\r\n\r\n return rect\r\n}\r\n\n},{\"pick-by-alias\":253}],250:[function(_dereq_,module,exports){\n\nmodule.exports = parse\n\n/**\n * expected argument lengths\n * @type {Object}\n */\n\nvar length = {a: 7, c: 6, h: 1, l: 2, m: 2, q: 4, s: 4, t: 2, v: 1, z: 0}\n\n/**\n * segment pattern\n * @type {RegExp}\n */\n\nvar segment = /([astvzqmhlc])([^astvzqmhlc]*)/ig\n\n/**\n * parse an svg path data string. Generates an Array\n * of commands where each command is an Array of the\n * form `[command, arg1, arg2, ...]`\n *\n * @param {String} path\n * @return {Array}\n */\n\nfunction parse(path) {\n\tvar data = []\n\tpath.replace(segment, function(_, command, args){\n\t\tvar type = command.toLowerCase()\n\t\targs = parseValues(args)\n\n\t\t// overloaded moveTo\n\t\tif (type == 'm' && args.length > 2) {\n\t\t\tdata.push([command].concat(args.splice(0, 2)))\n\t\t\ttype = 'l'\n\t\t\tcommand = command == 'm' ? 'l' : 'L'\n\t\t}\n\n\t\twhile (true) {\n\t\t\tif (args.length == length[type]) {\n\t\t\t\targs.unshift(command)\n\t\t\t\treturn data.push(args)\n\t\t\t}\n\t\t\tif (args.length < length[type]) throw new Error('malformed path data')\n\t\t\tdata.push([command].concat(args.splice(0, length[type])))\n\t\t}\n\t})\n\treturn data\n}\n\nvar number = /-?[0-9]*\\.?[0-9]+(?:e[-+]?\\d+)?/ig\n\nfunction parseValues(args) {\n\tvar numbers = args.match(number)\n\treturn numbers ? numbers.map(Number) : []\n}\n\n},{}],251:[function(_dereq_,module,exports){\nmodule.exports = function parseUnit(str, out) {\n if (!out)\n out = [ 0, '' ]\n\n str = String(str)\n var num = parseFloat(str, 10)\n out[0] = num\n out[1] = str.match(/[\\d.\\-\\+]*\\s*(.*)/)[1] || ''\n return out\n}\n},{}],252:[function(_dereq_,module,exports){\n(function (process){(function (){\n// Generated by CoffeeScript 1.12.2\n(function() {\n var getNanoSeconds, hrtime, loadTime, moduleLoadTime, nodeLoadTime, upTime;\n\n if ((typeof performance !== \"undefined\" && performance !== null) && performance.now) {\n module.exports = function() {\n return performance.now();\n };\n } else if ((typeof process !== \"undefined\" && process !== null) && process.hrtime) {\n module.exports = function() {\n return (getNanoSeconds() - nodeLoadTime) / 1e6;\n };\n hrtime = process.hrtime;\n getNanoSeconds = function() {\n var hr;\n hr = hrtime();\n return hr[0] * 1e9 + hr[1];\n };\n moduleLoadTime = getNanoSeconds();\n upTime = process.uptime() * 1e9;\n nodeLoadTime = moduleLoadTime - upTime;\n } else if (Date.now) {\n module.exports = function() {\n return Date.now() - loadTime;\n };\n loadTime = Date.now();\n } else {\n module.exports = function() {\n return new Date().getTime() - loadTime;\n };\n loadTime = new Date().getTime();\n }\n\n}).call(this);\n\n\n\n}).call(this)}).call(this,_dereq_('_process'))\n},{\"_process\":277}],253:[function(_dereq_,module,exports){\n'use strict'\r\n\r\n\r\nmodule.exports = function pick (src, props, keepRest) {\r\n\tvar result = {}, prop, i\r\n\r\n\tif (typeof props === 'string') props = toList(props)\r\n\tif (Array.isArray(props)) {\r\n\t\tvar res = {}\r\n\t\tfor (i = 0; i < props.length; i++) {\r\n\t\t\tres[props[i]] = true\r\n\t\t}\r\n\t\tprops = res\r\n\t}\r\n\r\n\t// convert strings to lists\r\n\tfor (prop in props) {\r\n\t\tprops[prop] = toList(props[prop])\r\n\t}\r\n\r\n\t// keep-rest strategy requires unmatched props to be preserved\r\n\tvar occupied = {}\r\n\r\n\tfor (prop in props) {\r\n\t\tvar aliases = props[prop]\r\n\r\n\t\tif (Array.isArray(aliases)) {\r\n\t\t\tfor (i = 0; i < aliases.length; i++) {\r\n\t\t\t\tvar alias = aliases[i]\r\n\r\n\t\t\t\tif (keepRest) {\r\n\t\t\t\t\toccupied[alias] = true\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (alias in src) {\r\n\t\t\t\t\tresult[prop] = src[alias]\r\n\r\n\t\t\t\t\tif (keepRest) {\r\n\t\t\t\t\t\tfor (var j = i; j < aliases.length; j++) {\r\n\t\t\t\t\t\t\toccupied[aliases[j]] = true\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tbreak\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (prop in src) {\r\n\t\t\tif (props[prop]) {\r\n\t\t\t\tresult[prop] = src[prop]\r\n\t\t\t}\r\n\r\n\t\t\tif (keepRest) {\r\n\t\t\t\toccupied[prop] = true\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tif (keepRest) {\r\n\t\tfor (prop in src) {\r\n\t\t\tif (occupied[prop]) continue\r\n\t\t\tresult[prop] = src[prop]\r\n\t\t}\r\n\t}\r\n\r\n\treturn result\r\n}\r\n\r\nvar CACHE = {}\r\n\r\nfunction toList(arg) {\r\n\tif (CACHE[arg]) return CACHE[arg]\r\n\tif (typeof arg === 'string') {\r\n\t\targ = CACHE[arg] = arg.split(/\\s*,\\s*|\\s+/)\r\n\t}\r\n\treturn arg\r\n}\r\n\n},{}],254:[function(_dereq_,module,exports){\n/*\n * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc\n * @license MIT\n * @preserve Project Home: https://github.com/voidqk/polybooljs\n */\n\nvar BuildLog = _dereq_('./lib/build-log');\nvar Epsilon = _dereq_('./lib/epsilon');\nvar Intersecter = _dereq_('./lib/intersecter');\nvar SegmentChainer = _dereq_('./lib/segment-chainer');\nvar SegmentSelector = _dereq_('./lib/segment-selector');\nvar GeoJSON = _dereq_('./lib/geojson');\n\nvar buildLog = false;\nvar epsilon = Epsilon();\n\nvar PolyBool;\nPolyBool = {\n\t// getter/setter for buildLog\n\tbuildLog: function(bl){\n\t\tif (bl === true)\n\t\t\tbuildLog = BuildLog();\n\t\telse if (bl === false)\n\t\t\tbuildLog = false;\n\t\treturn buildLog === false ? false : buildLog.list;\n\t},\n\t// getter/setter for epsilon\n\tepsilon: function(v){\n\t\treturn epsilon.epsilon(v);\n\t},\n\n\t// core API\n\tsegments: function(poly){\n\t\tvar i = Intersecter(true, epsilon, buildLog);\n\t\tpoly.regions.forEach(i.addRegion);\n\t\treturn {\n\t\t\tsegments: i.calculate(poly.inverted),\n\t\t\tinverted: poly.inverted\n\t\t};\n\t},\n\tcombine: function(segments1, segments2){\n\t\tvar i3 = Intersecter(false, epsilon, buildLog);\n\t\treturn {\n\t\t\tcombined: i3.calculate(\n\t\t\t\tsegments1.segments, segments1.inverted,\n\t\t\t\tsegments2.segments, segments2.inverted\n\t\t\t),\n\t\t\tinverted1: segments1.inverted,\n\t\t\tinverted2: segments2.inverted\n\t\t};\n\t},\n\tselectUnion: function(combined){\n\t\treturn {\n\t\t\tsegments: SegmentSelector.union(combined.combined, buildLog),\n\t\t\tinverted: combined.inverted1 || combined.inverted2\n\t\t}\n\t},\n\tselectIntersect: function(combined){\n\t\treturn {\n\t\t\tsegments: SegmentSelector.intersect(combined.combined, buildLog),\n\t\t\tinverted: combined.inverted1 && combined.inverted2\n\t\t}\n\t},\n\tselectDifference: function(combined){\n\t\treturn {\n\t\t\tsegments: SegmentSelector.difference(combined.combined, buildLog),\n\t\t\tinverted: combined.inverted1 && !combined.inverted2\n\t\t}\n\t},\n\tselectDifferenceRev: function(combined){\n\t\treturn {\n\t\t\tsegments: SegmentSelector.differenceRev(combined.combined, buildLog),\n\t\t\tinverted: !combined.inverted1 && combined.inverted2\n\t\t}\n\t},\n\tselectXor: function(combined){\n\t\treturn {\n\t\t\tsegments: SegmentSelector.xor(combined.combined, buildLog),\n\t\t\tinverted: combined.inverted1 !== combined.inverted2\n\t\t}\n\t},\n\tpolygon: function(segments){\n\t\treturn {\n\t\t\tregions: SegmentChainer(segments.segments, epsilon, buildLog),\n\t\t\tinverted: segments.inverted\n\t\t};\n\t},\n\n\t// GeoJSON converters\n\tpolygonFromGeoJSON: function(geojson){\n\t\treturn GeoJSON.toPolygon(PolyBool, geojson);\n\t},\n\tpolygonToGeoJSON: function(poly){\n\t\treturn GeoJSON.fromPolygon(PolyBool, epsilon, poly);\n\t},\n\n\t// helper functions for common operations\n\tunion: function(poly1, poly2){\n\t\treturn operate(poly1, poly2, PolyBool.selectUnion);\n\t},\n\tintersect: function(poly1, poly2){\n\t\treturn operate(poly1, poly2, PolyBool.selectIntersect);\n\t},\n\tdifference: function(poly1, poly2){\n\t\treturn operate(poly1, poly2, PolyBool.selectDifference);\n\t},\n\tdifferenceRev: function(poly1, poly2){\n\t\treturn operate(poly1, poly2, PolyBool.selectDifferenceRev);\n\t},\n\txor: function(poly1, poly2){\n\t\treturn operate(poly1, poly2, PolyBool.selectXor);\n\t}\n};\n\nfunction operate(poly1, poly2, selector){\n\tvar seg1 = PolyBool.segments(poly1);\n\tvar seg2 = PolyBool.segments(poly2);\n\tvar comb = PolyBool.combine(seg1, seg2);\n\tvar seg3 = selector(comb);\n\treturn PolyBool.polygon(seg3);\n}\n\nif (typeof window === 'object')\n\twindow.PolyBool = PolyBool;\n\nmodule.exports = PolyBool;\n\n},{\"./lib/build-log\":255,\"./lib/epsilon\":256,\"./lib/geojson\":257,\"./lib/intersecter\":258,\"./lib/segment-chainer\":260,\"./lib/segment-selector\":261}],255:[function(_dereq_,module,exports){\n// (c) Copyright 2016, Sean Connelly (@voidqk), http://syntheti.cc\n// MIT License\n// Project Home: https://github.com/voidqk/polybooljs\n\n//\n// used strictly for logging the processing of the algorithm... only useful if you intend on\n// looking under the covers (for pretty UI's or debugging)\n//\n\nfunction BuildLog(){\n\tvar my;\n\tvar nextSegmentId = 0;\n\tvar curVert = false;\n\n\tfunction push(type, data){\n\t\tmy.list.push({\n\t\t\ttype: type,\n\t\t\tdata: data ? JSON.parse(JSON.stringify(data)) : void 0\n\t\t});\n\t\treturn my;\n\t}\n\n\tmy = {\n\t\tlist: [],\n\t\tsegmentId: function(){\n\t\t\treturn nextSegmentId++;\n\t\t},\n\t\tcheckIntersection: function(seg1, seg2){\n\t\t\treturn push('check', { seg1: seg1, seg2: seg2 });\n\t\t},\n\t\tsegmentChop: function(seg, end){\n\t\t\tpush('div_seg', { seg: seg, pt: end });\n\t\t\treturn push('chop', { seg: seg, pt: end });\n\t\t},\n\t\tstatusRemove: function(seg){\n\t\t\treturn push('pop_seg', { seg: seg });\n\t\t},\n\t\tsegmentUpdate: function(seg){\n\t\t\treturn push('seg_update', { seg: seg });\n\t\t},\n\t\tsegmentNew: function(seg, primary){\n\t\t\treturn push('new_seg', { seg: seg, primary: primary });\n\t\t},\n\t\tsegmentRemove: function(seg){\n\t\t\treturn push('rem_seg', { seg: seg });\n\t\t},\n\t\ttempStatus: function(seg, above, below){\n\t\t\treturn push('temp_status', { seg: seg, above: above, below: below });\n\t\t},\n\t\trewind: function(seg){\n\t\t\treturn push('rewind', { seg: seg });\n\t\t},\n\t\tstatus: function(seg, above, below){\n\t\t\treturn push('status', { seg: seg, above: above, below: below });\n\t\t},\n\t\tvert: function(x){\n\t\t\tif (x === curVert)\n\t\t\t\treturn my;\n\t\t\tcurVert = x;\n\t\t\treturn push('vert', { x: x });\n\t\t},\n\t\tlog: function(data){\n\t\t\tif (typeof data !== 'string')\n\t\t\t\tdata = JSON.stringify(data, false, ' ');\n\t\t\treturn push('log', { txt: data });\n\t\t},\n\t\treset: function(){\n\t\t\treturn push('reset');\n\t\t},\n\t\tselected: function(segs){\n\t\t\treturn push('selected', { segs: segs });\n\t\t},\n\t\tchainStart: function(seg){\n\t\t\treturn push('chain_start', { seg: seg });\n\t\t},\n\t\tchainRemoveHead: function(index, pt){\n\t\t\treturn push('chain_rem_head', { index: index, pt: pt });\n\t\t},\n\t\tchainRemoveTail: function(index, pt){\n\t\t\treturn push('chain_rem_tail', { index: index, pt: pt });\n\t\t},\n\t\tchainNew: function(pt1, pt2){\n\t\t\treturn push('chain_new', { pt1: pt1, pt2: pt2 });\n\t\t},\n\t\tchainMatch: function(index){\n\t\t\treturn push('chain_match', { index: index });\n\t\t},\n\t\tchainClose: function(index){\n\t\t\treturn push('chain_close', { index: index });\n\t\t},\n\t\tchainAddHead: function(index, pt){\n\t\t\treturn push('chain_add_head', { index: index, pt: pt });\n\t\t},\n\t\tchainAddTail: function(index, pt){\n\t\t\treturn push('chain_add_tail', { index: index, pt: pt, });\n\t\t},\n\t\tchainConnect: function(index1, index2){\n\t\t\treturn push('chain_con', { index1: index1, index2: index2 });\n\t\t},\n\t\tchainReverse: function(index){\n\t\t\treturn push('chain_rev', { index: index });\n\t\t},\n\t\tchainJoin: function(index1, index2){\n\t\t\treturn push('chain_join', { index1: index1, index2: index2 });\n\t\t},\n\t\tdone: function(){\n\t\t\treturn push('done');\n\t\t}\n\t};\n\treturn my;\n}\n\nmodule.exports = BuildLog;\n\n},{}],256:[function(_dereq_,module,exports){\n// (c) Copyright 2016, Sean Connelly (@voidqk), http://syntheti.cc\n// MIT License\n// Project Home: https://github.com/voidqk/polybooljs\n\n//\n// provides the raw computation functions that takes epsilon into account\n//\n// zero is defined to be between (-epsilon, epsilon) exclusive\n//\n\nfunction Epsilon(eps){\n\tif (typeof eps !== 'number')\n\t\teps = 0.0000000001; // sane default? sure why not\n\tvar my = {\n\t\tepsilon: function(v){\n\t\t\tif (typeof v === 'number')\n\t\t\t\teps = v;\n\t\t\treturn eps;\n\t\t},\n\t\tpointAboveOrOnLine: function(pt, left, right){\n\t\t\tvar Ax = left[0];\n\t\t\tvar Ay = left[1];\n\t\t\tvar Bx = right[0];\n\t\t\tvar By = right[1];\n\t\t\tvar Cx = pt[0];\n\t\t\tvar Cy = pt[1];\n\t\t\treturn (Bx - Ax) * (Cy - Ay) - (By - Ay) * (Cx - Ax) >= -eps;\n\t\t},\n\t\tpointBetween: function(p, left, right){\n\t\t\t// p must be collinear with left->right\n\t\t\t// returns false if p == left, p == right, or left == right\n\t\t\tvar d_py_ly = p[1] - left[1];\n\t\t\tvar d_rx_lx = right[0] - left[0];\n\t\t\tvar d_px_lx = p[0] - left[0];\n\t\t\tvar d_ry_ly = right[1] - left[1];\n\n\t\t\tvar dot = d_px_lx * d_rx_lx + d_py_ly * d_ry_ly;\n\t\t\t// if `dot` is 0, then `p` == `left` or `left` == `right` (reject)\n\t\t\t// if `dot` is less than 0, then `p` is to the left of `left` (reject)\n\t\t\tif (dot < eps)\n\t\t\t\treturn false;\n\n\t\t\tvar sqlen = d_rx_lx * d_rx_lx + d_ry_ly * d_ry_ly;\n\t\t\t// if `dot` > `sqlen`, then `p` is to the right of `right` (reject)\n\t\t\t// therefore, if `dot - sqlen` is greater than 0, then `p` is to the right of `right` (reject)\n\t\t\tif (dot - sqlen > -eps)\n\t\t\t\treturn false;\n\n\t\t\treturn true;\n\t\t},\n\t\tpointsSameX: function(p1, p2){\n\t\t\treturn Math.abs(p1[0] - p2[0]) < eps;\n\t\t},\n\t\tpointsSameY: function(p1, p2){\n\t\t\treturn Math.abs(p1[1] - p2[1]) < eps;\n\t\t},\n\t\tpointsSame: function(p1, p2){\n\t\t\treturn my.pointsSameX(p1, p2) && my.pointsSameY(p1, p2);\n\t\t},\n\t\tpointsCompare: function(p1, p2){\n\t\t\t// returns -1 if p1 is smaller, 1 if p2 is smaller, 0 if equal\n\t\t\tif (my.pointsSameX(p1, p2))\n\t\t\t\treturn my.pointsSameY(p1, p2) ? 0 : (p1[1] < p2[1] ? -1 : 1);\n\t\t\treturn p1[0] < p2[0] ? -1 : 1;\n\t\t},\n\t\tpointsCollinear: function(pt1, pt2, pt3){\n\t\t\t// does pt1->pt2->pt3 make a straight line?\n\t\t\t// essentially this is just checking to see if the slope(pt1->pt2) === slope(pt2->pt3)\n\t\t\t// if slopes are equal, then they must be collinear, because they share pt2\n\t\t\tvar dx1 = pt1[0] - pt2[0];\n\t\t\tvar dy1 = pt1[1] - pt2[1];\n\t\t\tvar dx2 = pt2[0] - pt3[0];\n\t\t\tvar dy2 = pt2[1] - pt3[1];\n\t\t\treturn Math.abs(dx1 * dy2 - dx2 * dy1) < eps;\n\t\t},\n\t\tlinesIntersect: function(a0, a1, b0, b1){\n\t\t\t// returns false if the lines are coincident (e.g., parallel or on top of each other)\n\t\t\t//\n\t\t\t// returns an object if the lines intersect:\n\t\t\t// {\n\t\t\t// pt: [x, y], where the intersection point is at\n\t\t\t// alongA: where intersection point is along A,\n\t\t\t// alongB: where intersection point is along B\n\t\t\t// }\n\t\t\t//\n\t\t\t// alongA and alongB will each be one of: -2, -1, 0, 1, 2\n\t\t\t//\n\t\t\t// with the following meaning:\n\t\t\t//\n\t\t\t// -2 intersection point is before segment's first point\n\t\t\t// -1 intersection point is directly on segment's first point\n\t\t\t// 0 intersection point is between segment's first and second points (exclusive)\n\t\t\t// 1 intersection point is directly on segment's second point\n\t\t\t// 2 intersection point is after segment's second point\n\t\t\tvar adx = a1[0] - a0[0];\n\t\t\tvar ady = a1[1] - a0[1];\n\t\t\tvar bdx = b1[0] - b0[0];\n\t\t\tvar bdy = b1[1] - b0[1];\n\n\t\t\tvar axb = adx * bdy - ady * bdx;\n\t\t\tif (Math.abs(axb) < eps)\n\t\t\t\treturn false; // lines are coincident\n\n\t\t\tvar dx = a0[0] - b0[0];\n\t\t\tvar dy = a0[1] - b0[1];\n\n\t\t\tvar A = (bdx * dy - bdy * dx) / axb;\n\t\t\tvar B = (adx * dy - ady * dx) / axb;\n\n\t\t\tvar ret = {\n\t\t\t\talongA: 0,\n\t\t\t\talongB: 0,\n\t\t\t\tpt: [\n\t\t\t\t\ta0[0] + A * adx,\n\t\t\t\t\ta0[1] + A * ady\n\t\t\t\t]\n\t\t\t};\n\n\t\t\t// categorize where intersection point is along A and B\n\n\t\t\tif (A <= -eps)\n\t\t\t\tret.alongA = -2;\n\t\t\telse if (A < eps)\n\t\t\t\tret.alongA = -1;\n\t\t\telse if (A - 1 <= -eps)\n\t\t\t\tret.alongA = 0;\n\t\t\telse if (A - 1 < eps)\n\t\t\t\tret.alongA = 1;\n\t\t\telse\n\t\t\t\tret.alongA = 2;\n\n\t\t\tif (B <= -eps)\n\t\t\t\tret.alongB = -2;\n\t\t\telse if (B < eps)\n\t\t\t\tret.alongB = -1;\n\t\t\telse if (B - 1 <= -eps)\n\t\t\t\tret.alongB = 0;\n\t\t\telse if (B - 1 < eps)\n\t\t\t\tret.alongB = 1;\n\t\t\telse\n\t\t\t\tret.alongB = 2;\n\n\t\t\treturn ret;\n\t\t},\n\t\tpointInsideRegion: function(pt, region){\n\t\t\tvar x = pt[0];\n\t\t\tvar y = pt[1];\n\t\t\tvar last_x = region[region.length - 1][0];\n\t\t\tvar last_y = region[region.length - 1][1];\n\t\t\tvar inside = false;\n\t\t\tfor (var i = 0; i < region.length; i++){\n\t\t\t\tvar curr_x = region[i][0];\n\t\t\t\tvar curr_y = region[i][1];\n\n\t\t\t\t// if y is between curr_y and last_y, and\n\t\t\t\t// x is to the right of the boundary created by the line\n\t\t\t\tif ((curr_y - y > eps) != (last_y - y > eps) &&\n\t\t\t\t\t(last_x - curr_x) * (y - curr_y) / (last_y - curr_y) + curr_x - x > eps)\n\t\t\t\t\tinside = !inside\n\n\t\t\t\tlast_x = curr_x;\n\t\t\t\tlast_y = curr_y;\n\t\t\t}\n\t\t\treturn inside;\n\t\t}\n\t};\n\treturn my;\n}\n\nmodule.exports = Epsilon;\n\n},{}],257:[function(_dereq_,module,exports){\n// (c) Copyright 2017, Sean Connelly (@voidqk), http://syntheti.cc\n// MIT License\n// Project Home: https://github.com/voidqk/polybooljs\n\n//\n// convert between PolyBool polygon format and GeoJSON formats (Polygon and MultiPolygon)\n//\n\nvar GeoJSON = {\n\t// convert a GeoJSON object to a PolyBool polygon\n\ttoPolygon: function(PolyBool, geojson){\n\n\t\t// converts list of LineString's to segments\n\t\tfunction GeoPoly(coords){\n\t\t\t// check for empty coords\n\t\t\tif (coords.length <= 0)\n\t\t\t\treturn PolyBool.segments({ inverted: false, regions: [] });\n\n\t\t\t// convert LineString to segments\n\t\t\tfunction LineString(ls){\n\t\t\t\t// remove tail which should be the same as head\n\t\t\t\tvar reg = ls.slice(0, ls.length - 1);\n\t\t\t\treturn PolyBool.segments({ inverted: false, regions: [reg] });\n\t\t\t}\n\n\t\t\t// the first LineString is considered the outside\n\t\t\tvar out = LineString(coords[0]);\n\n\t\t\t// the rest of the LineStrings are considered interior holes, so subtract them from the\n\t\t\t// current result\n\t\t\tfor (var i = 1; i < coords.length; i++)\n\t\t\t\tout = PolyBool.selectDifference(PolyBool.combine(out, LineString(coords[i])));\n\n\t\t\treturn out;\n\t\t}\n\n\t\tif (geojson.type === 'Polygon'){\n\t\t\t// single polygon, so just convert it and we're done\n\t\t\treturn PolyBool.polygon(GeoPoly(geojson.coordinates));\n\t\t}\n\t\telse if (geojson.type === 'MultiPolygon'){\n\t\t\t// multiple polygons, so union all the polygons together\n\t\t\tvar out = PolyBool.segments({ inverted: false, regions: [] });\n\t\t\tfor (var i = 0; i < geojson.coordinates.length; i++)\n\t\t\t\tout = PolyBool.selectUnion(PolyBool.combine(out, GeoPoly(geojson.coordinates[i])));\n\t\t\treturn PolyBool.polygon(out);\n\t\t}\n\t\tthrow new Error('PolyBool: Cannot convert GeoJSON object to PolyBool polygon');\n\t},\n\n\t// convert a PolyBool polygon to a GeoJSON object\n\tfromPolygon: function(PolyBool, eps, poly){\n\t\t// make sure out polygon is clean\n\t\tpoly = PolyBool.polygon(PolyBool.segments(poly));\n\n\t\t// test if r1 is inside r2\n\t\tfunction regionInsideRegion(r1, r2){\n\t\t\t// we're guaranteed no lines intersect (because the polygon is clean), but a vertex\n\t\t\t// could be on the edge -- so we just average pt[0] and pt[1] to produce a point on the\n\t\t\t// edge of the first line, which cannot be on an edge\n\t\t\treturn eps.pointInsideRegion([\n\t\t\t\t(r1[0][0] + r1[1][0]) * 0.5,\n\t\t\t\t(r1[0][1] + r1[1][1]) * 0.5\n\t\t\t], r2);\n\t\t}\n\n\t\t// calculate inside heirarchy\n\t\t//\n\t\t// _____________________ _______ roots -> A -> F\n\t\t// | A | | F | | |\n\t\t// | _______ _______ | | ___ | +-- B +-- G\n\t\t// | | B | | C | | | | | | | |\n\t\t// | | ___ | | ___ | | | | | | | +-- D\n\t\t// | | | D | | | | E | | | | | G | | |\n\t\t// | | |___| | | |___| | | | | | | +-- C\n\t\t// | |_______| |_______| | | |___| | |\n\t\t// |_____________________| |_______| +-- E\n\n\t\tfunction newNode(region){\n\t\t\treturn {\n\t\t\t\tregion: region,\n\t\t\t\tchildren: []\n\t\t\t};\n\t\t}\n\n\t\tvar roots = newNode(null);\n\n\t\tfunction addChild(root, region){\n\t\t\t// first check if we're inside any children\n\t\t\tfor (var i = 0; i < root.children.length; i++){\n\t\t\t\tvar child = root.children[i];\n\t\t\t\tif (regionInsideRegion(region, child.region)){\n\t\t\t\t\t// we are, so insert inside them instead\n\t\t\t\t\taddChild(child, region);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// not inside any children, so check to see if any children are inside us\n\t\t\tvar node = newNode(region);\n\t\t\tfor (var i = 0; i < root.children.length; i++){\n\t\t\t\tvar child = root.children[i];\n\t\t\t\tif (regionInsideRegion(child.region, region)){\n\t\t\t\t\t// oops... move the child beneath us, and remove them from root\n\t\t\t\t\tnode.children.push(child);\n\t\t\t\t\troot.children.splice(i, 1);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// now we can add ourselves\n\t\t\troot.children.push(node);\n\t\t}\n\n\t\t// add all regions to the root\n\t\tfor (var i = 0; i < poly.regions.length; i++){\n\t\t\tvar region = poly.regions[i];\n\t\t\tif (region.length < 3) // regions must have at least 3 points (sanity check)\n\t\t\t\tcontinue;\n\t\t\taddChild(roots, region);\n\t\t}\n\n\t\t// with our heirarchy, we can distinguish between exterior borders, and interior holes\n\t\t// the root nodes are exterior, children are interior, children's children are exterior,\n\t\t// children's children's children are interior, etc\n\n\t\t// while we're at it, exteriors are counter-clockwise, and interiors are clockwise\n\n\t\tfunction forceWinding(region, clockwise){\n\t\t\t// first, see if we're clockwise or counter-clockwise\n\t\t\t// https://en.wikipedia.org/wiki/Shoelace_formula\n\t\t\tvar winding = 0;\n\t\t\tvar last_x = region[region.length - 1][0];\n\t\t\tvar last_y = region[region.length - 1][1];\n\t\t\tvar copy = [];\n\t\t\tfor (var i = 0; i < region.length; i++){\n\t\t\t\tvar curr_x = region[i][0];\n\t\t\t\tvar curr_y = region[i][1];\n\t\t\t\tcopy.push([curr_x, curr_y]); // create a copy while we're at it\n\t\t\t\twinding += curr_y * last_x - curr_x * last_y;\n\t\t\t\tlast_x = curr_x;\n\t\t\t\tlast_y = curr_y;\n\t\t\t}\n\t\t\t// this assumes Cartesian coordinates (Y is positive going up)\n\t\t\tvar isclockwise = winding < 0;\n\t\t\tif (isclockwise !== clockwise)\n\t\t\t\tcopy.reverse();\n\t\t\t// while we're here, the last point must be the first point...\n\t\t\tcopy.push([copy[0][0], copy[0][1]]);\n\t\t\treturn copy;\n\t\t}\n\n\t\tvar geopolys = [];\n\n\t\tfunction addExterior(node){\n\t\t\tvar poly = [forceWinding(node.region, false)];\n\t\t\tgeopolys.push(poly);\n\t\t\t// children of exteriors are interior\n\t\t\tfor (var i = 0; i < node.children.length; i++)\n\t\t\t\tpoly.push(getInterior(node.children[i]));\n\t\t}\n\n\t\tfunction getInterior(node){\n\t\t\t// children of interiors are exterior\n\t\t\tfor (var i = 0; i < node.children.length; i++)\n\t\t\t\taddExterior(node.children[i]);\n\t\t\t// return the clockwise interior\n\t\t\treturn forceWinding(node.region, true);\n\t\t}\n\n\t\t// root nodes are exterior\n\t\tfor (var i = 0; i < roots.children.length; i++)\n\t\t\taddExterior(roots.children[i]);\n\n\t\t// lastly, construct the approrpriate GeoJSON object\n\n\t\tif (geopolys.length <= 0) // empty GeoJSON Polygon\n\t\t\treturn { type: 'Polygon', coordinates: [] };\n\t\tif (geopolys.length == 1) // use a GeoJSON Polygon\n\t\t\treturn { type: 'Polygon', coordinates: geopolys[0] };\n\t\treturn { // otherwise, use a GeoJSON MultiPolygon\n\t\t\ttype: 'MultiPolygon',\n\t\t\tcoordinates: geopolys\n\t\t};\n\t}\n};\n\nmodule.exports = GeoJSON;\n\n},{}],258:[function(_dereq_,module,exports){\n// (c) Copyright 2016, Sean Connelly (@voidqk), http://syntheti.cc\n// MIT License\n// Project Home: https://github.com/voidqk/polybooljs\n\n//\n// this is the core work-horse\n//\n\nvar LinkedList = _dereq_('./linked-list');\n\nfunction Intersecter(selfIntersection, eps, buildLog){\n\t// selfIntersection is true/false depending on the phase of the overall algorithm\n\n\t//\n\t// segment creation\n\t//\n\n\tfunction segmentNew(start, end){\n\t\treturn {\n\t\t\tid: buildLog ? buildLog.segmentId() : -1,\n\t\t\tstart: start,\n\t\t\tend: end,\n\t\t\tmyFill: {\n\t\t\t\tabove: null, // is there fill above us?\n\t\t\t\tbelow: null // is there fill below us?\n\t\t\t},\n\t\t\totherFill: null\n\t\t};\n\t}\n\n\tfunction segmentCopy(start, end, seg){\n\t\treturn {\n\t\t\tid: buildLog ? buildLog.segmentId() : -1,\n\t\t\tstart: start,\n\t\t\tend: end,\n\t\t\tmyFill: {\n\t\t\t\tabove: seg.myFill.above,\n\t\t\t\tbelow: seg.myFill.below\n\t\t\t},\n\t\t\totherFill: null\n\t\t};\n\t}\n\n\t//\n\t// event logic\n\t//\n\n\tvar event_root = LinkedList.create();\n\n\tfunction eventCompare(p1_isStart, p1_1, p1_2, p2_isStart, p2_1, p2_2){\n\t\t// compare the selected points first\n\t\tvar comp = eps.pointsCompare(p1_1, p2_1);\n\t\tif (comp !== 0)\n\t\t\treturn comp;\n\t\t// the selected points are the same\n\n\t\tif (eps.pointsSame(p1_2, p2_2)) // if the non-selected points are the same too...\n\t\t\treturn 0; // then the segments are equal\n\n\t\tif (p1_isStart !== p2_isStart) // if one is a start and the other isn't...\n\t\t\treturn p1_isStart ? 1 : -1; // favor the one that isn't the start\n\n\t\t// otherwise, we'll have to calculate which one is below the other manually\n\t\treturn eps.pointAboveOrOnLine(p1_2,\n\t\t\tp2_isStart ? p2_1 : p2_2, // order matters\n\t\t\tp2_isStart ? p2_2 : p2_1\n\t\t) ? 1 : -1;\n\t}\n\n\tfunction eventAdd(ev, other_pt){\n\t\tevent_root.insertBefore(ev, function(here){\n\t\t\t// should ev be inserted before here?\n\t\t\tvar comp = eventCompare(\n\t\t\t\tev .isStart, ev .pt, other_pt,\n\t\t\t\there.isStart, here.pt, here.other.pt\n\t\t\t);\n\t\t\treturn comp < 0;\n\t\t});\n\t}\n\n\tfunction eventAddSegmentStart(seg, primary){\n\t\tvar ev_start = LinkedList.node({\n\t\t\tisStart: true,\n\t\t\tpt: seg.start,\n\t\t\tseg: seg,\n\t\t\tprimary: primary,\n\t\t\tother: null,\n\t\t\tstatus: null\n\t\t});\n\t\teventAdd(ev_start, seg.end);\n\t\treturn ev_start;\n\t}\n\n\tfunction eventAddSegmentEnd(ev_start, seg, primary){\n\t\tvar ev_end = LinkedList.node({\n\t\t\tisStart: false,\n\t\t\tpt: seg.end,\n\t\t\tseg: seg,\n\t\t\tprimary: primary,\n\t\t\tother: ev_start,\n\t\t\tstatus: null\n\t\t});\n\t\tev_start.other = ev_end;\n\t\teventAdd(ev_end, ev_start.pt);\n\t}\n\n\tfunction eventAddSegment(seg, primary){\n\t\tvar ev_start = eventAddSegmentStart(seg, primary);\n\t\teventAddSegmentEnd(ev_start, seg, primary);\n\t\treturn ev_start;\n\t}\n\n\tfunction eventUpdateEnd(ev, end){\n\t\t// slides an end backwards\n\t\t// (start)------------(end) to:\n\t\t// (start)---(end)\n\n\t\tif (buildLog)\n\t\t\tbuildLog.segmentChop(ev.seg, end);\n\n\t\tev.other.remove();\n\t\tev.seg.end = end;\n\t\tev.other.pt = end;\n\t\teventAdd(ev.other, ev.pt);\n\t}\n\n\tfunction eventDivide(ev, pt){\n\t\tvar ns = segmentCopy(pt, ev.seg.end, ev.seg);\n\t\teventUpdateEnd(ev, pt);\n\t\treturn eventAddSegment(ns, ev.primary);\n\t}\n\n\tfunction calculate(primaryPolyInverted, secondaryPolyInverted){\n\t\t// if selfIntersection is true then there is no secondary polygon, so that isn't used\n\n\t\t//\n\t\t// status logic\n\t\t//\n\n\t\tvar status_root = LinkedList.create();\n\n\t\tfunction statusCompare(ev1, ev2){\n\t\t\tvar a1 = ev1.seg.start;\n\t\t\tvar a2 = ev1.seg.end;\n\t\t\tvar b1 = ev2.seg.start;\n\t\t\tvar b2 = ev2.seg.end;\n\n\t\t\tif (eps.pointsCollinear(a1, b1, b2)){\n\t\t\t\tif (eps.pointsCollinear(a2, b1, b2))\n\t\t\t\t\treturn 1;//eventCompare(true, a1, a2, true, b1, b2);\n\t\t\t\treturn eps.pointAboveOrOnLine(a2, b1, b2) ? 1 : -1;\n\t\t\t}\n\t\t\treturn eps.pointAboveOrOnLine(a1, b1, b2) ? 1 : -1;\n\t\t}\n\n\t\tfunction statusFindSurrounding(ev){\n\t\t\treturn status_root.findTransition(function(here){\n\t\t\t\tvar comp = statusCompare(ev, here.ev);\n\t\t\t\treturn comp > 0;\n\t\t\t});\n\t\t}\n\n\t\tfunction checkIntersection(ev1, ev2){\n\t\t\t// returns the segment equal to ev1, or false if nothing equal\n\n\t\t\tvar seg1 = ev1.seg;\n\t\t\tvar seg2 = ev2.seg;\n\t\t\tvar a1 = seg1.start;\n\t\t\tvar a2 = seg1.end;\n\t\t\tvar b1 = seg2.start;\n\t\t\tvar b2 = seg2.end;\n\n\t\t\tif (buildLog)\n\t\t\t\tbuildLog.checkIntersection(seg1, seg2);\n\n\t\t\tvar i = eps.linesIntersect(a1, a2, b1, b2);\n\n\t\t\tif (i === false){\n\t\t\t\t// segments are parallel or coincident\n\n\t\t\t\t// if points aren't collinear, then the segments are parallel, so no intersections\n\t\t\t\tif (!eps.pointsCollinear(a1, a2, b1))\n\t\t\t\t\treturn false;\n\t\t\t\t// otherwise, segments are on top of each other somehow (aka coincident)\n\n\t\t\t\tif (eps.pointsSame(a1, b2) || eps.pointsSame(a2, b1))\n\t\t\t\t\treturn false; // segments touch at endpoints... no intersection\n\n\t\t\t\tvar a1_equ_b1 = eps.pointsSame(a1, b1);\n\t\t\t\tvar a2_equ_b2 = eps.pointsSame(a2, b2);\n\n\t\t\t\tif (a1_equ_b1 && a2_equ_b2)\n\t\t\t\t\treturn ev2; // segments are exactly equal\n\n\t\t\t\tvar a1_between = !a1_equ_b1 && eps.pointBetween(a1, b1, b2);\n\t\t\t\tvar a2_between = !a2_equ_b2 && eps.pointBetween(a2, b1, b2);\n\n\t\t\t\t// handy for debugging:\n\t\t\t\t// buildLog.log({\n\t\t\t\t//\ta1_equ_b1: a1_equ_b1,\n\t\t\t\t//\ta2_equ_b2: a2_equ_b2,\n\t\t\t\t//\ta1_between: a1_between,\n\t\t\t\t//\ta2_between: a2_between\n\t\t\t\t// });\n\n\t\t\t\tif (a1_equ_b1){\n\t\t\t\t\tif (a2_between){\n\t\t\t\t\t\t// (a1)---(a2)\n\t\t\t\t\t\t// (b1)----------(b2)\n\t\t\t\t\t\teventDivide(ev2, a2);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t// (a1)----------(a2)\n\t\t\t\t\t\t// (b1)---(b2)\n\t\t\t\t\t\teventDivide(ev1, b2);\n\t\t\t\t\t}\n\t\t\t\t\treturn ev2;\n\t\t\t\t}\n\t\t\t\telse if (a1_between){\n\t\t\t\t\tif (!a2_equ_b2){\n\t\t\t\t\t\t// make a2 equal to b2\n\t\t\t\t\t\tif (a2_between){\n\t\t\t\t\t\t\t// (a1)---(a2)\n\t\t\t\t\t\t\t// (b1)-----------------(b2)\n\t\t\t\t\t\t\teventDivide(ev2, a2);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t// (a1)----------(a2)\n\t\t\t\t\t\t\t// (b1)----------(b2)\n\t\t\t\t\t\t\teventDivide(ev1, b2);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// (a1)---(a2)\n\t\t\t\t\t// (b1)----------(b2)\n\t\t\t\t\teventDivide(ev2, a1);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\t// otherwise, lines intersect at i.pt, which may or may not be between the endpoints\n\n\t\t\t\t// is A divided between its endpoints? (exclusive)\n\t\t\t\tif (i.alongA === 0){\n\t\t\t\t\tif (i.alongB === -1) // yes, at exactly b1\n\t\t\t\t\t\teventDivide(ev1, b1);\n\t\t\t\t\telse if (i.alongB === 0) // yes, somewhere between B's endpoints\n\t\t\t\t\t\teventDivide(ev1, i.pt);\n\t\t\t\t\telse if (i.alongB === 1) // yes, at exactly b2\n\t\t\t\t\t\teventDivide(ev1, b2);\n\t\t\t\t}\n\n\t\t\t\t// is B divided between its endpoints? (exclusive)\n\t\t\t\tif (i.alongB === 0){\n\t\t\t\t\tif (i.alongA === -1) // yes, at exactly a1\n\t\t\t\t\t\teventDivide(ev2, a1);\n\t\t\t\t\telse if (i.alongA === 0) // yes, somewhere between A's endpoints (exclusive)\n\t\t\t\t\t\teventDivide(ev2, i.pt);\n\t\t\t\t\telse if (i.alongA === 1) // yes, at exactly a2\n\t\t\t\t\t\teventDivide(ev2, a2);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\n\t\t//\n\t\t// main event loop\n\t\t//\n\t\tvar segments = [];\n\t\twhile (!event_root.isEmpty()){\n\t\t\tvar ev = event_root.getHead();\n\n\t\t\tif (buildLog)\n\t\t\t\tbuildLog.vert(ev.pt[0]);\n\n\t\t\tif (ev.isStart){\n\n\t\t\t\tif (buildLog)\n\t\t\t\t\tbuildLog.segmentNew(ev.seg, ev.primary);\n\n\t\t\t\tvar surrounding = statusFindSurrounding(ev);\n\t\t\t\tvar above = surrounding.before ? surrounding.before.ev : null;\n\t\t\t\tvar below = surrounding.after ? surrounding.after.ev : null;\n\n\t\t\t\tif (buildLog){\n\t\t\t\t\tbuildLog.tempStatus(\n\t\t\t\t\t\tev.seg,\n\t\t\t\t\t\tabove ? above.seg : false,\n\t\t\t\t\t\tbelow ? below.seg : false\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\tfunction checkBothIntersections(){\n\t\t\t\t\tif (above){\n\t\t\t\t\t\tvar eve = checkIntersection(ev, above);\n\t\t\t\t\t\tif (eve)\n\t\t\t\t\t\t\treturn eve;\n\t\t\t\t\t}\n\t\t\t\t\tif (below)\n\t\t\t\t\t\treturn checkIntersection(ev, below);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tvar eve = checkBothIntersections();\n\t\t\t\tif (eve){\n\t\t\t\t\t// ev and eve are equal\n\t\t\t\t\t// we'll keep eve and throw away ev\n\n\t\t\t\t\t// merge ev.seg's fill information into eve.seg\n\n\t\t\t\t\tif (selfIntersection){\n\t\t\t\t\t\tvar toggle; // are we a toggling edge?\n\t\t\t\t\t\tif (ev.seg.myFill.below === null)\n\t\t\t\t\t\t\ttoggle = true;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ttoggle = ev.seg.myFill.above !== ev.seg.myFill.below;\n\n\t\t\t\t\t\t// merge two segments that belong to the same polygon\n\t\t\t\t\t\t// think of this as sandwiching two segments together, where `eve.seg` is\n\t\t\t\t\t\t// the bottom -- this will cause the above fill flag to toggle\n\t\t\t\t\t\tif (toggle)\n\t\t\t\t\t\t\teve.seg.myFill.above = !eve.seg.myFill.above;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t// merge two segments that belong to different polygons\n\t\t\t\t\t\t// each segment has distinct knowledge, so no special logic is needed\n\t\t\t\t\t\t// note that this can only happen once per segment in this phase, because we\n\t\t\t\t\t\t// are guaranteed that all self-intersections are gone\n\t\t\t\t\t\teve.seg.otherFill = ev.seg.myFill;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (buildLog)\n\t\t\t\t\t\tbuildLog.segmentUpdate(eve.seg);\n\n\t\t\t\t\tev.other.remove();\n\t\t\t\t\tev.remove();\n\t\t\t\t}\n\n\t\t\t\tif (event_root.getHead() !== ev){\n\t\t\t\t\t// something was inserted before us in the event queue, so loop back around and\n\t\t\t\t\t// process it before continuing\n\t\t\t\t\tif (buildLog)\n\t\t\t\t\t\tbuildLog.rewind(ev.seg);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t//\n\t\t\t\t// calculate fill flags\n\t\t\t\t//\n\t\t\t\tif (selfIntersection){\n\t\t\t\t\tvar toggle; // are we a toggling edge?\n\t\t\t\t\tif (ev.seg.myFill.below === null) // if we are a new segment...\n\t\t\t\t\t\ttoggle = true; // then we toggle\n\t\t\t\t\telse // we are a segment that has previous knowledge from a division\n\t\t\t\t\t\ttoggle = ev.seg.myFill.above !== ev.seg.myFill.below; // calculate toggle\n\n\t\t\t\t\t// next, calculate whether we are filled below us\n\t\t\t\t\tif (!below){ // if nothing is below us...\n\t\t\t\t\t\t// we are filled below us if the polygon is inverted\n\t\t\t\t\t\tev.seg.myFill.below = primaryPolyInverted;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t// otherwise, we know the answer -- it's the same if whatever is below\n\t\t\t\t\t\t// us is filled above it\n\t\t\t\t\t\tev.seg.myFill.below = below.seg.myFill.above;\n\t\t\t\t\t}\n\n\t\t\t\t\t// since now we know if we're filled below us, we can calculate whether\n\t\t\t\t\t// we're filled above us by applying toggle to whatever is below us\n\t\t\t\t\tif (toggle)\n\t\t\t\t\t\tev.seg.myFill.above = !ev.seg.myFill.below;\n\t\t\t\t\telse\n\t\t\t\t\t\tev.seg.myFill.above = ev.seg.myFill.below;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t// now we fill in any missing transition information, since we are all-knowing\n\t\t\t\t\t// at this point\n\n\t\t\t\t\tif (ev.seg.otherFill === null){\n\t\t\t\t\t\t// if we don't have other information, then we need to figure out if we're\n\t\t\t\t\t\t// inside the other polygon\n\t\t\t\t\t\tvar inside;\n\t\t\t\t\t\tif (!below){\n\t\t\t\t\t\t\t// if nothing is below us, then we're inside if the other polygon is\n\t\t\t\t\t\t\t// inverted\n\t\t\t\t\t\t\tinside =\n\t\t\t\t\t\t\t\tev.primary ? secondaryPolyInverted : primaryPolyInverted;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{ // otherwise, something is below us\n\t\t\t\t\t\t\t// so copy the below segment's other polygon's above\n\t\t\t\t\t\t\tif (ev.primary === below.primary)\n\t\t\t\t\t\t\t\tinside = below.seg.otherFill.above;\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tinside = below.seg.myFill.above;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tev.seg.otherFill = {\n\t\t\t\t\t\t\tabove: inside,\n\t\t\t\t\t\t\tbelow: inside\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (buildLog){\n\t\t\t\t\tbuildLog.status(\n\t\t\t\t\t\tev.seg,\n\t\t\t\t\t\tabove ? above.seg : false,\n\t\t\t\t\t\tbelow ? below.seg : false\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\t// insert the status and remember it for later removal\n\t\t\t\tev.other.status = surrounding.insert(LinkedList.node({ ev: ev }));\n\t\t\t}\n\t\t\telse{\n\t\t\t\tvar st = ev.status;\n\n\t\t\t\tif (st === null){\n\t\t\t\t\tthrow new Error('PolyBool: Zero-length segment detected; your epsilon is ' +\n\t\t\t\t\t\t'probably too small or too large');\n\t\t\t\t}\n\n\t\t\t\t// removing the status will create two new adjacent edges, so we'll need to check\n\t\t\t\t// for those\n\t\t\t\tif (status_root.exists(st.prev) && status_root.exists(st.next))\n\t\t\t\t\tcheckIntersection(st.prev.ev, st.next.ev);\n\n\t\t\t\tif (buildLog)\n\t\t\t\t\tbuildLog.statusRemove(st.ev.seg);\n\n\t\t\t\t// remove the status\n\t\t\t\tst.remove();\n\n\t\t\t\t// if we've reached this point, we've calculated everything there is to know, so\n\t\t\t\t// save the segment for reporting\n\t\t\t\tif (!ev.primary){\n\t\t\t\t\t// make sure `seg.myFill` actually points to the primary polygon though\n\t\t\t\t\tvar s = ev.seg.myFill;\n\t\t\t\t\tev.seg.myFill = ev.seg.otherFill;\n\t\t\t\t\tev.seg.otherFill = s;\n\t\t\t\t}\n\t\t\t\tsegments.push(ev.seg);\n\t\t\t}\n\n\t\t\t// remove the event and continue\n\t\t\tevent_root.getHead().remove();\n\t\t}\n\n\t\tif (buildLog)\n\t\t\tbuildLog.done();\n\n\t\treturn segments;\n\t}\n\n\t// return the appropriate API depending on what we're doing\n\tif (!selfIntersection){\n\t\t// performing combination of polygons, so only deal with already-processed segments\n\t\treturn {\n\t\t\tcalculate: function(segments1, inverted1, segments2, inverted2){\n\t\t\t\t// segmentsX come from the self-intersection API, or this API\n\t\t\t\t// invertedX is whether we treat that list of segments as an inverted polygon or not\n\t\t\t\t// returns segments that can be used for further operations\n\t\t\t\tsegments1.forEach(function(seg){\n\t\t\t\t\teventAddSegment(segmentCopy(seg.start, seg.end, seg), true);\n\t\t\t\t});\n\t\t\t\tsegments2.forEach(function(seg){\n\t\t\t\t\teventAddSegment(segmentCopy(seg.start, seg.end, seg), false);\n\t\t\t\t});\n\t\t\t\treturn calculate(inverted1, inverted2);\n\t\t\t}\n\t\t};\n\t}\n\n\t// otherwise, performing self-intersection, so deal with regions\n\treturn {\n\t\taddRegion: function(region){\n\t\t\t// regions are a list of points:\n\t\t\t// [ [0, 0], [100, 0], [50, 100] ]\n\t\t\t// you can add multiple regions before running calculate\n\t\t\tvar pt1;\n\t\t\tvar pt2 = region[region.length - 1];\n\t\t\tfor (var i = 0; i < region.length; i++){\n\t\t\t\tpt1 = pt2;\n\t\t\t\tpt2 = region[i];\n\n\t\t\t\tvar forward = eps.pointsCompare(pt1, pt2);\n\t\t\t\tif (forward === 0) // points are equal, so we have a zero-length segment\n\t\t\t\t\tcontinue; // just skip it\n\n\t\t\t\teventAddSegment(\n\t\t\t\t\tsegmentNew(\n\t\t\t\t\t\tforward < 0 ? pt1 : pt2,\n\t\t\t\t\t\tforward < 0 ? pt2 : pt1\n\t\t\t\t\t),\n\t\t\t\t\ttrue\n\t\t\t\t);\n\t\t\t}\n\t\t},\n\t\tcalculate: function(inverted){\n\t\t\t// is the polygon inverted?\n\t\t\t// returns segments\n\t\t\treturn calculate(inverted, false);\n\t\t}\n\t};\n}\n\nmodule.exports = Intersecter;\n\n},{\"./linked-list\":259}],259:[function(_dereq_,module,exports){\n// (c) Copyright 2016, Sean Connelly (@voidqk), http://syntheti.cc\n// MIT License\n// Project Home: https://github.com/voidqk/polybooljs\n\n//\n// simple linked list implementation that allows you to traverse down nodes and save positions\n//\n\nvar LinkedList = {\n\tcreate: function(){\n\t\tvar my = {\n\t\t\troot: { root: true, next: null },\n\t\t\texists: function(node){\n\t\t\t\tif (node === null || node === my.root)\n\t\t\t\t\treturn false;\n\t\t\t\treturn true;\n\t\t\t},\n\t\t\tisEmpty: function(){\n\t\t\t\treturn my.root.next === null;\n\t\t\t},\n\t\t\tgetHead: function(){\n\t\t\t\treturn my.root.next;\n\t\t\t},\n\t\t\tinsertBefore: function(node, check){\n\t\t\t\tvar last = my.root;\n\t\t\t\tvar here = my.root.next;\n\t\t\t\twhile (here !== null){\n\t\t\t\t\tif (check(here)){\n\t\t\t\t\t\tnode.prev = here.prev;\n\t\t\t\t\t\tnode.next = here;\n\t\t\t\t\t\there.prev.next = node;\n\t\t\t\t\t\there.prev = node;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tlast = here;\n\t\t\t\t\there = here.next;\n\t\t\t\t}\n\t\t\t\tlast.next = node;\n\t\t\t\tnode.prev = last;\n\t\t\t\tnode.next = null;\n\t\t\t},\n\t\t\tfindTransition: function(check){\n\t\t\t\tvar prev = my.root;\n\t\t\t\tvar here = my.root.next;\n\t\t\t\twhile (here !== null){\n\t\t\t\t\tif (check(here))\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tprev = here;\n\t\t\t\t\there = here.next;\n\t\t\t\t}\n\t\t\t\treturn {\n\t\t\t\t\tbefore: prev === my.root ? null : prev,\n\t\t\t\t\tafter: here,\n\t\t\t\t\tinsert: function(node){\n\t\t\t\t\t\tnode.prev = prev;\n\t\t\t\t\t\tnode.next = here;\n\t\t\t\t\t\tprev.next = node;\n\t\t\t\t\t\tif (here !== null)\n\t\t\t\t\t\t\there.prev = node;\n\t\t\t\t\t\treturn node;\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}\n\t\t};\n\t\treturn my;\n\t},\n\tnode: function(data){\n\t\tdata.prev = null;\n\t\tdata.next = null;\n\t\tdata.remove = function(){\n\t\t\tdata.prev.next = data.next;\n\t\t\tif (data.next)\n\t\t\t\tdata.next.prev = data.prev;\n\t\t\tdata.prev = null;\n\t\t\tdata.next = null;\n\t\t};\n\t\treturn data;\n\t}\n};\n\nmodule.exports = LinkedList;\n\n},{}],260:[function(_dereq_,module,exports){\n// (c) Copyright 2016, Sean Connelly (@voidqk), http://syntheti.cc\n// MIT License\n// Project Home: https://github.com/voidqk/polybooljs\n\n//\n// converts a list of segments into a list of regions, while also removing unnecessary verticies\n//\n\nfunction SegmentChainer(segments, eps, buildLog){\n\tvar chains = [];\n\tvar regions = [];\n\n\tsegments.forEach(function(seg){\n\t\tvar pt1 = seg.start;\n\t\tvar pt2 = seg.end;\n\t\tif (eps.pointsSame(pt1, pt2)){\n\t\t\tconsole.warn('PolyBool: Warning: Zero-length segment detected; your epsilon is ' +\n\t\t\t\t'probably too small or too large');\n\t\t\treturn;\n\t\t}\n\n\t\tif (buildLog)\n\t\t\tbuildLog.chainStart(seg);\n\n\t\t// search for two chains that this segment matches\n\t\tvar first_match = {\n\t\t\tindex: 0,\n\t\t\tmatches_head: false,\n\t\t\tmatches_pt1: false\n\t\t};\n\t\tvar second_match = {\n\t\t\tindex: 0,\n\t\t\tmatches_head: false,\n\t\t\tmatches_pt1: false\n\t\t};\n\t\tvar next_match = first_match;\n\t\tfunction setMatch(index, matches_head, matches_pt1){\n\t\t\t// return true if we've matched twice\n\t\t\tnext_match.index = index;\n\t\t\tnext_match.matches_head = matches_head;\n\t\t\tnext_match.matches_pt1 = matches_pt1;\n\t\t\tif (next_match === first_match){\n\t\t\t\tnext_match = second_match;\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tnext_match = null;\n\t\t\treturn true; // we've matched twice, we're done here\n\t\t}\n\t\tfor (var i = 0; i < chains.length; i++){\n\t\t\tvar chain = chains[i];\n\t\t\tvar head = chain[0];\n\t\t\tvar head2 = chain[1];\n\t\t\tvar tail = chain[chain.length - 1];\n\t\t\tvar tail2 = chain[chain.length - 2];\n\t\t\tif (eps.pointsSame(head, pt1)){\n\t\t\t\tif (setMatch(i, true, true))\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if (eps.pointsSame(head, pt2)){\n\t\t\t\tif (setMatch(i, true, false))\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if (eps.pointsSame(tail, pt1)){\n\t\t\t\tif (setMatch(i, false, true))\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if (eps.pointsSame(tail, pt2)){\n\t\t\t\tif (setMatch(i, false, false))\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (next_match === first_match){\n\t\t\t// we didn't match anything, so create a new chain\n\t\t\tchains.push([ pt1, pt2 ]);\n\t\t\tif (buildLog)\n\t\t\t\tbuildLog.chainNew(pt1, pt2);\n\t\t\treturn;\n\t\t}\n\n\t\tif (next_match === second_match){\n\t\t\t// we matched a single chain\n\n\t\t\tif (buildLog)\n\t\t\t\tbuildLog.chainMatch(first_match.index);\n\n\t\t\t// add the other point to the apporpriate end, and check to see if we've closed the\n\t\t\t// chain into a loop\n\n\t\t\tvar index = first_match.index;\n\t\t\tvar pt = first_match.matches_pt1 ? pt2 : pt1; // if we matched pt1, then we add pt2, etc\n\t\t\tvar addToHead = first_match.matches_head; // if we matched at head, then add to the head\n\n\t\t\tvar chain = chains[index];\n\t\t\tvar grow = addToHead ? chain[0] : chain[chain.length - 1];\n\t\t\tvar grow2 = addToHead ? chain[1] : chain[chain.length - 2];\n\t\t\tvar oppo = addToHead ? chain[chain.length - 1] : chain[0];\n\t\t\tvar oppo2 = addToHead ? chain[chain.length - 2] : chain[1];\n\n\t\t\tif (eps.pointsCollinear(grow2, grow, pt)){\n\t\t\t\t// grow isn't needed because it's directly between grow2 and pt:\n\t\t\t\t// grow2 ---grow---> pt\n\t\t\t\tif (addToHead){\n\t\t\t\t\tif (buildLog)\n\t\t\t\t\t\tbuildLog.chainRemoveHead(first_match.index, pt);\n\t\t\t\t\tchain.shift();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tif (buildLog)\n\t\t\t\t\t\tbuildLog.chainRemoveTail(first_match.index, pt);\n\t\t\t\t\tchain.pop();\n\t\t\t\t}\n\t\t\t\tgrow = grow2; // old grow is gone... new grow is what grow2 was\n\t\t\t}\n\n\t\t\tif (eps.pointsSame(oppo, pt)){\n\t\t\t\t// we're closing the loop, so remove chain from chains\n\t\t\t\tchains.splice(index, 1);\n\n\t\t\t\tif (eps.pointsCollinear(oppo2, oppo, grow)){\n\t\t\t\t\t// oppo isn't needed because it's directly between oppo2 and grow:\n\t\t\t\t\t// oppo2 ---oppo--->grow\n\t\t\t\t\tif (addToHead){\n\t\t\t\t\t\tif (buildLog)\n\t\t\t\t\t\t\tbuildLog.chainRemoveTail(first_match.index, grow);\n\t\t\t\t\t\tchain.pop();\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tif (buildLog)\n\t\t\t\t\t\t\tbuildLog.chainRemoveHead(first_match.index, grow);\n\t\t\t\t\t\tchain.shift();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (buildLog)\n\t\t\t\t\tbuildLog.chainClose(first_match.index);\n\n\t\t\t\t// we have a closed chain!\n\t\t\t\tregions.push(chain);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// not closing a loop, so just add it to the apporpriate side\n\t\t\tif (addToHead){\n\t\t\t\tif (buildLog)\n\t\t\t\t\tbuildLog.chainAddHead(first_match.index, pt);\n\t\t\t\tchain.unshift(pt);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif (buildLog)\n\t\t\t\t\tbuildLog.chainAddTail(first_match.index, pt);\n\t\t\t\tchain.push(pt);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\t// otherwise, we matched two chains, so we need to combine those chains together\n\n\t\tfunction reverseChain(index){\n\t\t\tif (buildLog)\n\t\t\t\tbuildLog.chainReverse(index);\n\t\t\tchains[index].reverse(); // gee, that's easy\n\t\t}\n\n\t\tfunction appendChain(index1, index2){\n\t\t\t// index1 gets index2 appended to it, and index2 is removed\n\t\t\tvar chain1 = chains[index1];\n\t\t\tvar chain2 = chains[index2];\n\t\t\tvar tail = chain1[chain1.length - 1];\n\t\t\tvar tail2 = chain1[chain1.length - 2];\n\t\t\tvar head = chain2[0];\n\t\t\tvar head2 = chain2[1];\n\n\t\t\tif (eps.pointsCollinear(tail2, tail, head)){\n\t\t\t\t// tail isn't needed because it's directly between tail2 and head\n\t\t\t\t// tail2 ---tail---> head\n\t\t\t\tif (buildLog)\n\t\t\t\t\tbuildLog.chainRemoveTail(index1, tail);\n\t\t\t\tchain1.pop();\n\t\t\t\ttail = tail2; // old tail is gone... new tail is what tail2 was\n\t\t\t}\n\n\t\t\tif (eps.pointsCollinear(tail, head, head2)){\n\t\t\t\t// head isn't needed because it's directly between tail and head2\n\t\t\t\t// tail ---head---> head2\n\t\t\t\tif (buildLog)\n\t\t\t\t\tbuildLog.chainRemoveHead(index2, head);\n\t\t\t\tchain2.shift();\n\t\t\t}\n\n\t\t\tif (buildLog)\n\t\t\t\tbuildLog.chainJoin(index1, index2);\n\t\t\tchains[index1] = chain1.concat(chain2);\n\t\t\tchains.splice(index2, 1);\n\t\t}\n\n\t\tvar F = first_match.index;\n\t\tvar S = second_match.index;\n\n\t\tif (buildLog)\n\t\t\tbuildLog.chainConnect(F, S);\n\n\t\tvar reverseF = chains[F].length < chains[S].length; // reverse the shorter chain, if needed\n\t\tif (first_match.matches_head){\n\t\t\tif (second_match.matches_head){\n\t\t\t\tif (reverseF){\n\t\t\t\t\t// <<<< F <<<< --- >>>> S >>>>\n\t\t\t\t\treverseChain(F);\n\t\t\t\t\t// >>>> F >>>> --- >>>> S >>>>\n\t\t\t\t\tappendChain(F, S);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t// <<<< F <<<< --- >>>> S >>>>\n\t\t\t\t\treverseChain(S);\n\t\t\t\t\t// <<<< F <<<< --- <<<< S <<<< logically same as:\n\t\t\t\t\t// >>>> S >>>> --- >>>> F >>>>\n\t\t\t\t\tappendChain(S, F);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\t// <<<< F <<<< --- <<<< S <<<< logically same as:\n\t\t\t\t// >>>> S >>>> --- >>>> F >>>>\n\t\t\t\tappendChain(S, F);\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tif (second_match.matches_head){\n\t\t\t\t// >>>> F >>>> --- >>>> S >>>>\n\t\t\t\tappendChain(F, S);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif (reverseF){\n\t\t\t\t\t// >>>> F >>>> --- <<<< S <<<<\n\t\t\t\t\treverseChain(F);\n\t\t\t\t\t// <<<< F <<<< --- <<<< S <<<< logically same as:\n\t\t\t\t\t// >>>> S >>>> --- >>>> F >>>>\n\t\t\t\t\tappendChain(S, F);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t// >>>> F >>>> --- <<<< S <<<<\n\t\t\t\t\treverseChain(S);\n\t\t\t\t\t// >>>> F >>>> --- >>>> S >>>>\n\t\t\t\t\tappendChain(F, S);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\n\treturn regions;\n}\n\nmodule.exports = SegmentChainer;\n\n},{}],261:[function(_dereq_,module,exports){\n// (c) Copyright 2016, Sean Connelly (@voidqk), http://syntheti.cc\n// MIT License\n// Project Home: https://github.com/voidqk/polybooljs\n\n//\n// filter a list of segments based on boolean operations\n//\n\nfunction select(segments, selection, buildLog){\n\tvar result = [];\n\tsegments.forEach(function(seg){\n\t\tvar index =\n\t\t\t(seg.myFill.above ? 8 : 0) +\n\t\t\t(seg.myFill.below ? 4 : 0) +\n\t\t\t((seg.otherFill && seg.otherFill.above) ? 2 : 0) +\n\t\t\t((seg.otherFill && seg.otherFill.below) ? 1 : 0);\n\t\tif (selection[index] !== 0){\n\t\t\t// copy the segment to the results, while also calculating the fill status\n\t\t\tresult.push({\n\t\t\t\tid: buildLog ? buildLog.segmentId() : -1,\n\t\t\t\tstart: seg.start,\n\t\t\t\tend: seg.end,\n\t\t\t\tmyFill: {\n\t\t\t\t\tabove: selection[index] === 1, // 1 if filled above\n\t\t\t\t\tbelow: selection[index] === 2 // 2 if filled below\n\t\t\t\t},\n\t\t\t\totherFill: null\n\t\t\t});\n\t\t}\n\t});\n\n\tif (buildLog)\n\t\tbuildLog.selected(result);\n\n\treturn result;\n}\n\nvar SegmentSelector = {\n\tunion: function(segments, buildLog){ // primary | secondary\n\t\t// above1 below1 above2 below2 Keep? Value\n\t\t// 0 0 0 0 => no 0\n\t\t// 0 0 0 1 => yes filled below 2\n\t\t// 0 0 1 0 => yes filled above 1\n\t\t// 0 0 1 1 => no 0\n\t\t// 0 1 0 0 => yes filled below 2\n\t\t// 0 1 0 1 => yes filled below 2\n\t\t// 0 1 1 0 => no 0\n\t\t// 0 1 1 1 => no 0\n\t\t// 1 0 0 0 => yes filled above 1\n\t\t// 1 0 0 1 => no 0\n\t\t// 1 0 1 0 => yes filled above 1\n\t\t// 1 0 1 1 => no 0\n\t\t// 1 1 0 0 => no 0\n\t\t// 1 1 0 1 => no 0\n\t\t// 1 1 1 0 => no 0\n\t\t// 1 1 1 1 => no 0\n\t\treturn select(segments, [\n\t\t\t0, 2, 1, 0,\n\t\t\t2, 2, 0, 0,\n\t\t\t1, 0, 1, 0,\n\t\t\t0, 0, 0, 0\n\t\t], buildLog);\n\t},\n\tintersect: function(segments, buildLog){ // primary & secondary\n\t\t// above1 below1 above2 below2 Keep? Value\n\t\t// 0 0 0 0 => no 0\n\t\t// 0 0 0 1 => no 0\n\t\t// 0 0 1 0 => no 0\n\t\t// 0 0 1 1 => no 0\n\t\t// 0 1 0 0 => no 0\n\t\t// 0 1 0 1 => yes filled below 2\n\t\t// 0 1 1 0 => no 0\n\t\t// 0 1 1 1 => yes filled below 2\n\t\t// 1 0 0 0 => no 0\n\t\t// 1 0 0 1 => no 0\n\t\t// 1 0 1 0 => yes filled above 1\n\t\t// 1 0 1 1 => yes filled above 1\n\t\t// 1 1 0 0 => no 0\n\t\t// 1 1 0 1 => yes filled below 2\n\t\t// 1 1 1 0 => yes filled above 1\n\t\t// 1 1 1 1 => no 0\n\t\treturn select(segments, [\n\t\t\t0, 0, 0, 0,\n\t\t\t0, 2, 0, 2,\n\t\t\t0, 0, 1, 1,\n\t\t\t0, 2, 1, 0\n\t\t], buildLog);\n\t},\n\tdifference: function(segments, buildLog){ // primary - secondary\n\t\t// above1 below1 above2 below2 Keep? Value\n\t\t// 0 0 0 0 => no 0\n\t\t// 0 0 0 1 => no 0\n\t\t// 0 0 1 0 => no 0\n\t\t// 0 0 1 1 => no 0\n\t\t// 0 1 0 0 => yes filled below 2\n\t\t// 0 1 0 1 => no 0\n\t\t// 0 1 1 0 => yes filled below 2\n\t\t// 0 1 1 1 => no 0\n\t\t// 1 0 0 0 => yes filled above 1\n\t\t// 1 0 0 1 => yes filled above 1\n\t\t// 1 0 1 0 => no 0\n\t\t// 1 0 1 1 => no 0\n\t\t// 1 1 0 0 => no 0\n\t\t// 1 1 0 1 => yes filled above 1\n\t\t// 1 1 1 0 => yes filled below 2\n\t\t// 1 1 1 1 => no 0\n\t\treturn select(segments, [\n\t\t\t0, 0, 0, 0,\n\t\t\t2, 0, 2, 0,\n\t\t\t1, 1, 0, 0,\n\t\t\t0, 1, 2, 0\n\t\t], buildLog);\n\t},\n\tdifferenceRev: function(segments, buildLog){ // secondary - primary\n\t\t// above1 below1 above2 below2 Keep? Value\n\t\t// 0 0 0 0 => no 0\n\t\t// 0 0 0 1 => yes filled below 2\n\t\t// 0 0 1 0 => yes filled above 1\n\t\t// 0 0 1 1 => no 0\n\t\t// 0 1 0 0 => no 0\n\t\t// 0 1 0 1 => no 0\n\t\t// 0 1 1 0 => yes filled above 1\n\t\t// 0 1 1 1 => yes filled above 1\n\t\t// 1 0 0 0 => no 0\n\t\t// 1 0 0 1 => yes filled below 2\n\t\t// 1 0 1 0 => no 0\n\t\t// 1 0 1 1 => yes filled below 2\n\t\t// 1 1 0 0 => no 0\n\t\t// 1 1 0 1 => no 0\n\t\t// 1 1 1 0 => no 0\n\t\t// 1 1 1 1 => no 0\n\t\treturn select(segments, [\n\t\t\t0, 2, 1, 0,\n\t\t\t0, 0, 1, 1,\n\t\t\t0, 2, 0, 2,\n\t\t\t0, 0, 0, 0\n\t\t], buildLog);\n\t},\n\txor: function(segments, buildLog){ // primary ^ secondary\n\t\t// above1 below1 above2 below2 Keep? Value\n\t\t// 0 0 0 0 => no 0\n\t\t// 0 0 0 1 => yes filled below 2\n\t\t// 0 0 1 0 => yes filled above 1\n\t\t// 0 0 1 1 => no 0\n\t\t// 0 1 0 0 => yes filled below 2\n\t\t// 0 1 0 1 => no 0\n\t\t// 0 1 1 0 => no 0\n\t\t// 0 1 1 1 => yes filled above 1\n\t\t// 1 0 0 0 => yes filled above 1\n\t\t// 1 0 0 1 => no 0\n\t\t// 1 0 1 0 => no 0\n\t\t// 1 0 1 1 => yes filled below 2\n\t\t// 1 1 0 0 => no 0\n\t\t// 1 1 0 1 => yes filled above 1\n\t\t// 1 1 1 0 => yes filled below 2\n\t\t// 1 1 1 1 => no 0\n\t\treturn select(segments, [\n\t\t\t0, 2, 1, 0,\n\t\t\t2, 0, 0, 1,\n\t\t\t1, 0, 0, 2,\n\t\t\t0, 1, 2, 0\n\t\t], buildLog);\n\t}\n};\n\nmodule.exports = SegmentSelector;\n\n},{}],262:[function(_dereq_,module,exports){\n'use strict';\n\n\nvar Transform = _dereq_('stream').Transform;\nvar streamParser = _dereq_('stream-parser');\n\n\nfunction ParserStream() {\n Transform.call(this, { readableObjectMode: true });\n}\n\n// Inherit from Transform\nParserStream.prototype = Object.create(Transform.prototype);\nParserStream.prototype.constructor = ParserStream;\n\nstreamParser(ParserStream.prototype);\n\n\nexports.ParserStream = ParserStream;\n\n\nexports.sliceEq = function (src, start, dest) {\n for (var i = start, j = 0; j < dest.length;) {\n if (src[i++] !== dest[j++]) return false;\n }\n return true;\n};\n\nexports.str2arr = function (str, format) {\n var arr = [], i = 0;\n\n if (format && format === 'hex') {\n while (i < str.length) {\n arr.push(parseInt(str.slice(i, i + 2), 16));\n i += 2;\n }\n } else {\n for (; i < str.length; i++) {\n /* eslint-disable no-bitwise */\n arr.push(str.charCodeAt(i) & 0xFF);\n }\n }\n\n return arr;\n};\n\nexports.readUInt16LE = function (data, offset) {\n return data[offset] | (data[offset + 1] << 8);\n};\n\nexports.readUInt16BE = function (data, offset) {\n return data[offset + 1] | (data[offset] << 8);\n};\n\nexports.readUInt32LE = function (data, offset) {\n return data[offset] |\n (data[offset + 1] << 8) |\n (data[offset + 2] << 16) |\n (data[offset + 3] * 0x1000000);\n};\n\nexports.readUInt32BE = function (data, offset) {\n return data[offset + 3] |\n (data[offset + 2] << 8) |\n (data[offset + 1] << 16) |\n (data[offset] * 0x1000000);\n};\n\n\nfunction ProbeError(message, code, statusCode) {\n Error.call(this);\n Error.captureStackTrace(this, this.constructor);\n\n this.name = this.constructor.name;\n\n this.message = message;\n if (code) this.code = code;\n if (statusCode) this.statusCode = statusCode;\n}\n\n// Inherit from Error\nProbeError.prototype = Object.create(Error.prototype);\nProbeError.prototype.constructor = ProbeError;\n\n\nexports.ProbeError = ProbeError;\n\n},{\"stream\":285,\"stream-parser\":301}],263:[function(_dereq_,module,exports){\n\n/* eslint-disable no-bitwise */\n/* eslint-disable consistent-return */\n\n'use strict';\n\n//////////////////////////////////////////////////////////////////////////\n// Helpers\n//\nfunction error(message, code) {\n var err = new Error(message);\n err.code = code;\n return err;\n}\n\n\nfunction utf8_decode(str) {\n try {\n return decodeURIComponent(escape(str));\n } catch (_) {\n return str;\n }\n}\n\n\n//////////////////////////////////////////////////////////////////////////\n// Exif parser\n//\n// Input:\n// - jpeg_bin: Uint8Array - jpeg file\n// - exif_start: Number - start of TIFF header (after Exif\\0\\0)\n// - exif_end: Number - end of Exif segment\n// - on_entry: Number - callback\n//\nfunction ExifParser(jpeg_bin, exif_start, exif_end) {\n // Uint8Array, exif without signature (which isn't included in offsets)\n this.input = jpeg_bin.subarray(exif_start, exif_end);\n\n // offset correction for `on_entry` callback\n this.start = exif_start;\n\n // Check TIFF header (includes byte alignment and first IFD offset)\n var sig = String.fromCharCode.apply(null, this.input.subarray(0, 4));\n\n if (sig !== 'II\\x2A\\0' && sig !== 'MM\\0\\x2A') {\n throw error('invalid TIFF signature', 'EBADDATA');\n }\n\n // true if motorola (big endian) byte alignment, false if intel\n this.big_endian = sig[0] === 'M';\n}\n\n\nExifParser.prototype.each = function (on_entry) {\n // allow premature exit\n this.aborted = false;\n\n var offset = this.read_uint32(4);\n\n this.ifds_to_read = [ {\n id: 0,\n offset: offset\n } ];\n\n while (this.ifds_to_read.length > 0 && !this.aborted) {\n var i = this.ifds_to_read.shift();\n if (!i.offset) continue;\n this.scan_ifd(i.id, i.offset, on_entry);\n }\n};\n\n\nExifParser.prototype.read_uint16 = function (offset) {\n var d = this.input;\n if (offset + 2 > d.length) throw error('unexpected EOF', 'EBADDATA');\n\n return this.big_endian ?\n d[offset] * 0x100 + d[offset + 1] :\n d[offset] + d[offset + 1] * 0x100;\n};\n\n\nExifParser.prototype.read_uint32 = function (offset) {\n var d = this.input;\n if (offset + 4 > d.length) throw error('unexpected EOF', 'EBADDATA');\n\n return this.big_endian ?\n d[offset] * 0x1000000 + d[offset + 1] * 0x10000 + d[offset + 2] * 0x100 + d[offset + 3] :\n d[offset] + d[offset + 1] * 0x100 + d[offset + 2] * 0x10000 + d[offset + 3] * 0x1000000;\n};\n\n\nExifParser.prototype.is_subifd_link = function (ifd, tag) {\n return (ifd === 0 && tag === 0x8769) || // SubIFD\n (ifd === 0 && tag === 0x8825) || // GPS Info\n (ifd === 0x8769 && tag === 0xA005); // Interop IFD\n};\n\n\n// Returns byte length of a single component of a given format\n//\nExifParser.prototype.exif_format_length = function (format) {\n switch (format) {\n case 1: // byte\n case 2: // ascii\n case 6: // sbyte\n case 7: // undefined\n return 1;\n\n case 3: // short\n case 8: // sshort\n return 2;\n\n case 4: // long\n case 9: // slong\n case 11: // float\n return 4;\n\n case 5: // rational\n case 10: // srational\n case 12: // double\n return 8;\n\n default:\n // unknown type\n return 0;\n }\n};\n\n\n// Reads Exif data\n//\nExifParser.prototype.exif_format_read = function (format, offset) {\n var v;\n\n switch (format) {\n case 1: // byte\n case 2: // ascii\n v = this.input[offset];\n return v;\n\n case 6: // sbyte\n v = this.input[offset];\n return v | (v & 0x80) * 0x1fffffe;\n\n case 3: // short\n v = this.read_uint16(offset);\n return v;\n\n case 8: // sshort\n v = this.read_uint16(offset);\n return v | (v & 0x8000) * 0x1fffe;\n\n case 4: // long\n v = this.read_uint32(offset);\n return v;\n\n case 9: // slong\n v = this.read_uint32(offset);\n return v | 0;\n\n case 5: // rational\n case 10: // srational\n case 11: // float\n case 12: // double\n return null; // not implemented\n\n case 7: // undefined\n return null; // blob\n\n default:\n // unknown type\n return null;\n }\n};\n\n\nExifParser.prototype.scan_ifd = function (ifd_no, offset, on_entry) {\n var entry_count = this.read_uint16(offset);\n\n offset += 2;\n\n for (var i = 0; i < entry_count; i++) {\n var tag = this.read_uint16(offset);\n var format = this.read_uint16(offset + 2);\n var count = this.read_uint32(offset + 4);\n\n var comp_length = this.exif_format_length(format);\n var data_length = count * comp_length;\n var data_offset = data_length <= 4 ? offset + 8 : this.read_uint32(offset + 8);\n var is_subifd_link = false;\n\n if (data_offset + data_length > this.input.length) {\n throw error('unexpected EOF', 'EBADDATA');\n }\n\n var value = [];\n var comp_offset = data_offset;\n\n for (var j = 0; j < count; j++, comp_offset += comp_length) {\n var item = this.exif_format_read(format, comp_offset);\n if (item === null) {\n value = null;\n break;\n }\n value.push(item);\n }\n\n if (Array.isArray(value) && format === 2) {\n value = utf8_decode(String.fromCharCode.apply(null, value));\n if (value && value[value.length - 1] === '\\0') value = value.slice(0, -1);\n }\n\n if (this.is_subifd_link(ifd_no, tag)) {\n if (Array.isArray(value) && Number.isInteger(value[0]) && value[0] > 0) {\n this.ifds_to_read.push({\n id: tag,\n offset: value[0]\n });\n is_subifd_link = true;\n }\n }\n\n var entry = {\n is_big_endian: this.big_endian,\n ifd: ifd_no,\n tag: tag,\n format: format,\n count: count,\n entry_offset: offset + this.start,\n data_length: data_length,\n data_offset: data_offset + this.start,\n value: value,\n is_subifd_link: is_subifd_link\n };\n\n if (on_entry(entry) === false) {\n this.aborted = true;\n return;\n }\n\n offset += 12;\n }\n\n if (ifd_no === 0) {\n this.ifds_to_read.push({\n id: 1,\n offset: this.read_uint32(offset)\n });\n }\n};\n\n\nmodule.exports.ExifParser = ExifParser;\n\n// returns orientation stored in Exif (1-8), 0 if none was found, -1 if error\nmodule.exports.get_orientation = function (data) {\n var orientation = 0;\n try {\n new ExifParser(data, 0, data.length).each(function (entry) {\n if (entry.ifd === 0 && entry.tag === 0x112 && Array.isArray(entry.value)) {\n orientation = entry.value[0];\n return false;\n }\n });\n return orientation;\n } catch (err) {\n return -1;\n }\n};\n\n},{}],264:[function(_dereq_,module,exports){\n// Utils used to parse miaf-based files (avif/heic/heif)\n//\n// ISO media file spec:\n// https://web.archive.org/web/20180219054429/http://l.web.umkc.edu/lizhu/teaching/2016sp.video-communication/ref/mp4.pdf\n//\n// ISO image file format spec:\n// https://standards.iso.org/ittf/PubliclyAvailableStandards/c066067_ISO_IEC_23008-12_2017.zip\n//\n\n'use strict';\n\n/* eslint-disable consistent-return */\n/* eslint-disable no-bitwise */\n\nvar readUInt16BE = _dereq_('./common').readUInt16BE;\nvar readUInt32BE = _dereq_('./common').readUInt32BE;\n\n/*\n * interface Box {\n * size: uint32; // if size == 0, box lasts until EOF\n * boxtype: char[4];\n * largesize?: uint64; // only if size == 1\n * usertype?: char[16]; // only if boxtype == 'uuid'\n * }\n */\nfunction unbox(data, offset) {\n if (data.length < 4 + offset) return null;\n\n var size = readUInt32BE(data, offset);\n\n // size includes first 4 bytes (length)\n if (data.length < size + offset || size < 8) return null;\n\n // if size === 1, real size is following uint64 (only for big boxes, not needed)\n // if size === 0, real size is until the end of the file (only for big boxes, not needed)\n\n return {\n boxtype: String.fromCharCode.apply(null, data.slice(offset + 4, offset + 8)),\n data: data.slice(offset + 8, offset + size),\n end: offset + size\n };\n}\n\n\nmodule.exports.unbox = unbox;\n\n\n// parses `meta` -> `iprp` -> `ipco` box, returns:\n// {\n// sizes: [ { width, height } ],\n// transforms: [ { type, value } ]\n// }\nfunction scan_ipco(data, sandbox) {\n var offset = 0;\n\n for (;;) {\n var box = unbox(data, offset);\n if (!box) break;\n\n switch (box.boxtype) {\n case 'ispe':\n sandbox.sizes.push({\n width: readUInt32BE(box.data, 4),\n height: readUInt32BE(box.data, 8)\n });\n break;\n\n case 'irot':\n sandbox.transforms.push({\n type: 'irot',\n value: box.data[0] & 3\n });\n break;\n\n case 'imir':\n sandbox.transforms.push({\n type: 'imir',\n value: box.data[0] & 1\n });\n break;\n }\n\n offset = box.end;\n }\n}\n\n\nfunction readUIntBE(data, offset, size) {\n var result = 0;\n\n for (var i = 0; i < size; i++) {\n result = result * 256 + (data[offset + i] || 0);\n }\n\n return result;\n}\n\n\n// parses `meta` -> `iloc` box\nfunction scan_iloc(data, sandbox) {\n var offset_size = (data[4] >> 4) & 0xF;\n var length_size = data[4] & 0xF;\n var base_offset_size = (data[5] >> 4) & 0xF;\n var item_count = readUInt16BE(data, 6);\n var offset = 8;\n\n for (var i = 0; i < item_count; i++) {\n var item_ID = readUInt16BE(data, offset);\n offset += 2;\n\n var data_reference_index = readUInt16BE(data, offset);\n offset += 2;\n\n var base_offset = readUIntBE(data, offset, base_offset_size);\n offset += base_offset_size;\n\n var extent_count = readUInt16BE(data, offset);\n offset += 2;\n\n if (data_reference_index === 0 && extent_count === 1) {\n var first_extent_offset = readUIntBE(data, offset, offset_size);\n var first_extent_length = readUIntBE(data, offset + offset_size, length_size);\n sandbox.item_loc[item_ID] = { length: first_extent_length, offset: first_extent_offset + base_offset };\n }\n\n offset += extent_count * (offset_size + length_size);\n }\n}\n\n\n// parses `meta` -> `iinf` box\nfunction scan_iinf(data, sandbox) {\n var item_count = readUInt16BE(data, 4);\n var offset = 6;\n\n for (var i = 0; i < item_count; i++) {\n var box = unbox(data, offset);\n if (!box) break;\n if (box.boxtype === 'infe') {\n var item_id = readUInt16BE(box.data, 4);\n var item_name = '';\n\n for (var pos = 8; pos < box.data.length && box.data[pos]; pos++) {\n item_name += String.fromCharCode(box.data[pos]);\n }\n\n sandbox.item_inf[item_name] = item_id;\n }\n offset = box.end;\n }\n}\n\n\n// parses `meta` -> `iprp` box\nfunction scan_iprp(data, sandbox) {\n var offset = 0;\n\n for (;;) {\n var box = unbox(data, offset);\n if (!box) break;\n if (box.boxtype === 'ipco') scan_ipco(box.data, sandbox);\n offset = box.end;\n }\n}\n\n\n// parses `meta` box\nfunction scan_meta(data, sandbox) {\n var offset = 4; // version + flags\n\n for (;;) {\n var box = unbox(data, offset);\n if (!box) break;\n if (box.boxtype === 'iprp') scan_iprp(box.data, sandbox);\n if (box.boxtype === 'iloc') scan_iloc(box.data, sandbox);\n if (box.boxtype === 'iinf') scan_iinf(box.data, sandbox);\n offset = box.end;\n }\n}\n\n\n// get image with largest single dimension as base\nfunction getMaxSize(sizes) {\n var maxWidthSize = sizes.reduce(function (a, b) {\n return a.width > b.width || (a.width === b.width && a.height > b.height) ? a : b;\n });\n\n var maxHeightSize = sizes.reduce(function (a, b) {\n return a.height > b.height || (a.height === b.height && a.width > b.width) ? a : b;\n });\n\n var maxSize;\n\n if (maxWidthSize.width > maxHeightSize.height ||\n (maxWidthSize.width === maxHeightSize.height && maxWidthSize.height > maxHeightSize.width)) {\n maxSize = maxWidthSize;\n } else {\n maxSize = maxHeightSize;\n }\n\n return maxSize;\n}\n\n\nmodule.exports.readSizeFromMeta = function (data) {\n var sandbox = {\n sizes: [],\n transforms: [],\n item_inf: {},\n item_loc: {}\n };\n\n scan_meta(data, sandbox);\n\n if (!sandbox.sizes.length) return;\n\n var maxSize = getMaxSize(sandbox.sizes);\n\n var orientation = 1;\n\n // convert imir/irot to exif orientation\n sandbox.transforms.forEach(function (transform) {\n var rotate_ccw = { 1: 6, 2: 5, 3: 8, 4: 7, 5: 4, 6: 3, 7: 2, 8: 1 };\n var mirror_vert = { 1: 4, 2: 3, 3: 2, 4: 1, 5: 6, 6: 5, 7: 8, 8: 7 };\n\n if (transform.type === 'imir') {\n if (transform.value === 0) {\n // vertical flip\n orientation = mirror_vert[orientation];\n } else {\n // horizontal flip = vertical flip + 180 deg rotation\n orientation = mirror_vert[orientation];\n orientation = rotate_ccw[orientation];\n orientation = rotate_ccw[orientation];\n }\n }\n\n if (transform.type === 'irot') {\n // counter-clockwise rotation 90 deg 0-3 times\n for (var i = 0; i < transform.value; i++) {\n orientation = rotate_ccw[orientation];\n }\n }\n });\n\n var exif_location = null;\n\n if (sandbox.item_inf.Exif) {\n exif_location = sandbox.item_loc[sandbox.item_inf.Exif];\n }\n\n return {\n width: maxSize.width,\n height: maxSize.height,\n orientation: sandbox.transforms.length ? orientation : null,\n variants: sandbox.sizes,\n exif_location: exif_location\n };\n};\n\n\nmodule.exports.getMimeType = function (data) {\n var brand = String.fromCharCode.apply(null, data.slice(0, 4));\n var compat = {};\n\n compat[brand] = true;\n\n for (var i = 8; i < data.length; i += 4) {\n compat[String.fromCharCode.apply(null, data.slice(i, i + 4))] = true;\n }\n\n // heic and avif are superset of miaf, so they should all list mif1 as compatible\n if (!compat.mif1 && !compat.msf1 && !compat.miaf) return;\n\n if (brand === 'avif' || brand === 'avis' || brand === 'avio') {\n // `.avifs` and `image/avif-sequence` are removed from spec, all files have single type\n return { type: 'avif', mime: 'image/avif' };\n }\n\n // https://nokiatech.github.io/heif/technical.html\n if (brand === 'heic' || brand === 'heix') {\n return { type: 'heic', mime: 'image/heic' };\n }\n\n if (brand === 'hevc' || brand === 'hevx') {\n return { type: 'heic', mime: 'image/heic-sequence' };\n }\n\n if (compat.avif || compat.avis) {\n return { type: 'avif', mime: 'image/avif' };\n }\n\n if (compat.heic || compat.heix || compat.hevc || compat.hevx || compat.heis) {\n if (compat.msf1) {\n return { type: 'heif', mime: 'image/heif-sequence' };\n }\n return { type: 'heif', mime: 'image/heif' };\n }\n\n return { type: 'avif', mime: 'image/avif' };\n};\n\n},{\"./common\":262}],265:[function(_dereq_,module,exports){\n// Utils used to parse miaf-based files (avif/heic/heif)\n//\n// - image collections are not supported (only last size is reported)\n// - images with metadata encoded after image data are not supported\n// - images without any `ispe` box are not supported\n//\n\n/* eslint-disable consistent-return */\n\n'use strict';\n\n\nvar str2arr = _dereq_('../common').str2arr;\nvar sliceEq = _dereq_('../common').sliceEq;\nvar readUInt32BE = _dereq_('../common').readUInt32BE;\nvar miaf = _dereq_('../miaf_utils');\nvar exif = _dereq_('../exif_utils');\n\nvar SIG_FTYP = str2arr('ftyp');\n\n\nmodule.exports = function (data) {\n // ISO media file (avif format) starts with ftyp box:\n // 0000 0020 6674 7970 6176 6966\n // (length) f t y p a v i f\n //\n if (!sliceEq(data, 4, SIG_FTYP)) return;\n\n var firstBox = miaf.unbox(data, 0);\n if (!firstBox) return;\n\n var fileType = miaf.getMimeType(firstBox.data);\n if (!fileType) return;\n\n var meta, offset = firstBox.end;\n\n for (;;) {\n var box = miaf.unbox(data, offset);\n if (!box) break;\n offset = box.end;\n\n // mdat block SHOULD be last (but not strictly required),\n // so it's unlikely that metadata is after it\n if (box.boxtype === 'mdat') return;\n if (box.boxtype === 'meta') {\n meta = box.data;\n break;\n }\n }\n\n if (!meta) return;\n\n var imgSize = miaf.readSizeFromMeta(meta);\n\n if (!imgSize) return;\n\n var result = {\n width: imgSize.width,\n height: imgSize.height,\n type: fileType.type,\n mime: fileType.mime,\n wUnits: 'px',\n hUnits: 'px'\n };\n\n if (imgSize.variants.length > 1) {\n result.variants = imgSize.variants;\n }\n\n if (imgSize.orientation) {\n result.orientation = imgSize.orientation;\n }\n\n if (imgSize.exif_location &&\n imgSize.exif_location.offset + imgSize.exif_location.length <= data.length) {\n\n var sig_offset = readUInt32BE(data, imgSize.exif_location.offset);\n var exif_data = data.slice(\n imgSize.exif_location.offset + sig_offset + 4,\n imgSize.exif_location.offset + imgSize.exif_location.length);\n\n var orientation = exif.get_orientation(exif_data);\n\n if (orientation > 0) result.orientation = orientation;\n }\n\n return result;\n};\n\n},{\"../common\":262,\"../exif_utils\":263,\"../miaf_utils\":264}],266:[function(_dereq_,module,exports){\n'use strict';\n\n/* eslint-disable consistent-return */\n\nvar str2arr = _dereq_('../common').str2arr;\nvar sliceEq = _dereq_('../common').sliceEq;\nvar readUInt16LE = _dereq_('../common').readUInt16LE;\n\nvar SIG_BM = str2arr('BM');\n\n\nmodule.exports = function (data) {\n if (data.length < 26) return;\n\n if (!sliceEq(data, 0, SIG_BM)) return;\n\n return {\n width: readUInt16LE(data, 18),\n height: readUInt16LE(data, 22),\n type: 'bmp',\n mime: 'image/bmp',\n wUnits: 'px',\n hUnits: 'px'\n };\n};\n\n},{\"../common\":262}],267:[function(_dereq_,module,exports){\n'use strict';\n\n/* eslint-disable consistent-return */\n\nvar str2arr = _dereq_('../common').str2arr;\nvar sliceEq = _dereq_('../common').sliceEq;\nvar readUInt16LE = _dereq_('../common').readUInt16LE;\n\n\nvar SIG_GIF87a = str2arr('GIF87a');\nvar SIG_GIF89a = str2arr('GIF89a');\n\n\nmodule.exports = function (data) {\n if (data.length < 10) return;\n\n if (!sliceEq(data, 0, SIG_GIF87a) && !sliceEq(data, 0, SIG_GIF89a)) return;\n\n return {\n width: readUInt16LE(data, 6),\n height: readUInt16LE(data, 8),\n type: 'gif',\n mime: 'image/gif',\n wUnits: 'px',\n hUnits: 'px'\n };\n};\n\n},{\"../common\":262}],268:[function(_dereq_,module,exports){\n'use strict';\n\n/* eslint-disable consistent-return */\n\nvar readUInt16LE = _dereq_('../common').readUInt16LE;\n\nvar HEADER = 0;\nvar TYPE_ICO = 1;\nvar INDEX_SIZE = 16;\n\n// Format specification:\n// https://en.wikipedia.org/wiki/ICO_(file_format)#Icon_resource_structure\nmodule.exports = function (data) {\n var header = readUInt16LE(data, 0);\n var type = readUInt16LE(data, 2);\n var numImages = readUInt16LE(data, 4);\n\n if (header !== HEADER || type !== TYPE_ICO || !numImages) {\n return;\n }\n\n var variants = [];\n var maxSize = { width: 0, height: 0 };\n\n for (var i = 0; i < numImages; i++) {\n var width = data[6 + INDEX_SIZE * i] || 256;\n var height = data[6 + INDEX_SIZE * i + 1] || 256;\n var size = { width: width, height: height };\n variants.push(size);\n\n if (width > maxSize.width || height > maxSize.height) {\n maxSize = size;\n }\n }\n\n return {\n width: maxSize.width,\n height: maxSize.height,\n variants: variants,\n type: 'ico',\n mime: 'image/x-icon',\n wUnits: 'px',\n hUnits: 'px'\n };\n};\n\n},{\"../common\":262}],269:[function(_dereq_,module,exports){\n'use strict';\n\n/* eslint-disable consistent-return */\n\nvar readUInt16BE = _dereq_('../common').readUInt16BE;\nvar str2arr = _dereq_('../common').str2arr;\nvar sliceEq = _dereq_('../common').sliceEq;\nvar exif = _dereq_('../exif_utils');\n\n\nvar SIG_EXIF = str2arr('Exif\\0\\0');\n\n\nmodule.exports = function (data) {\n if (data.length < 2) return;\n\n // first marker of the file MUST be 0xFFD8\n if (data[0] !== 0xFF || data[1] !== 0xD8) return;\n\n var offset = 2;\n\n for (;;) {\n if (data.length - offset < 2) return;\n // not a JPEG marker\n if (data[offset++] !== 0xFF) return;\n\n var code = data[offset++];\n var length;\n\n // skip padding bytes\n while (code === 0xFF) code = data[offset++];\n\n // standalone markers, according to JPEG 1992,\n // http://www.w3.org/Graphics/JPEG/itu-t81.pdf, see Table B.1\n if ((0xD0 <= code && code <= 0xD9) || code === 0x01) {\n length = 0;\n } else if (0xC0 <= code && code <= 0xFE) {\n // the rest of the unreserved markers\n if (data.length - offset < 2) return;\n\n length = readUInt16BE(data, offset) - 2;\n offset += 2;\n } else {\n // unknown markers\n return;\n }\n\n if (code === 0xD9 /* EOI */ || code === 0xDA /* SOS */) {\n // end of the datastream\n return;\n }\n\n var orientation;\n\n // try to get orientation from Exif segment\n if (code === 0xE1 && length >= 10 && sliceEq(data, offset, SIG_EXIF)) {\n orientation = exif.get_orientation(data.slice(offset + 6, offset + length));\n }\n\n if (length >= 5 &&\n (0xC0 <= code && code <= 0xCF) &&\n code !== 0xC4 && code !== 0xC8 && code !== 0xCC) {\n\n if (data.length - offset < length) return;\n\n var result = {\n width: readUInt16BE(data, offset + 3),\n height: readUInt16BE(data, offset + 1),\n type: 'jpg',\n mime: 'image/jpeg',\n wUnits: 'px',\n hUnits: 'px'\n };\n\n if (orientation > 0) {\n result.orientation = orientation;\n }\n\n return result;\n }\n\n offset += length;\n }\n};\n\n},{\"../common\":262,\"../exif_utils\":263}],270:[function(_dereq_,module,exports){\n'use strict';\n\n/* eslint-disable consistent-return */\n\nvar str2arr = _dereq_('../common').str2arr;\nvar sliceEq = _dereq_('../common').sliceEq;\nvar readUInt32BE = _dereq_('../common').readUInt32BE;\n\n\nvar SIG_PNG = str2arr('\\x89PNG\\r\\n\\x1a\\n');\nvar SIG_IHDR = str2arr('IHDR');\n\n\nmodule.exports = function (data) {\n if (data.length < 24) return;\n\n // check PNG signature\n if (!sliceEq(data, 0, SIG_PNG)) return;\n\n // check that first chunk is IHDR\n if (!sliceEq(data, 12, SIG_IHDR)) return;\n\n return {\n width: readUInt32BE(data, 16),\n height: readUInt32BE(data, 20),\n type: 'png',\n mime: 'image/png',\n wUnits: 'px',\n hUnits: 'px'\n };\n};\n\n},{\"../common\":262}],271:[function(_dereq_,module,exports){\n'use strict';\n\n/* eslint-disable consistent-return */\n\nvar str2arr = _dereq_('../common').str2arr;\nvar sliceEq = _dereq_('../common').sliceEq;\nvar readUInt32BE = _dereq_('../common').readUInt32BE;\n\n\nvar SIG_8BPS = str2arr('8BPS\\x00\\x01');\n\n\nmodule.exports = function (data) {\n if (data.length < 6 + 16) return;\n\n // signature + version\n if (!sliceEq(data, 0, SIG_8BPS)) return;\n\n return {\n width: readUInt32BE(data, 6 + 12),\n height: readUInt32BE(data, 6 + 8),\n type: 'psd',\n mime: 'image/vnd.adobe.photoshop',\n wUnits: 'px',\n hUnits: 'px'\n };\n};\n\n},{\"../common\":262}],272:[function(_dereq_,module,exports){\n'use strict';\n\n/* eslint-disable consistent-return */\n\nfunction isWhiteSpace(chr) {\n return chr === 0x20 || chr === 0x09 || chr === 0x0D || chr === 0x0A;\n}\n\n// Filter NaN, Infinity, < 0\nfunction isFinitePositive(val) {\n return typeof val === 'number' && isFinite(val) && val > 0;\n}\n\nfunction canBeSvg(buf) {\n var i = 0, max = buf.length;\n\n // byte order mark, https://github.com/nodeca/probe-image-size/issues/57\n if (buf[0] === 0xEF && buf[1] === 0xBB && buf[2] === 0xBF) i = 3;\n\n while (i < max && isWhiteSpace(buf[i])) i++;\n\n if (i === max) return false;\n return buf[i] === 0x3c; /* < */\n}\n\n\n// skip `` or ``\nvar SVG_HEADER_RE = /<[-_.:a-zA-Z0-9][^>]*>/;\n\n// test if the top level element is svg + optional namespace,\n// used to skip svg embedded in html\nvar SVG_TAG_RE = /^<([-_.:a-zA-Z0-9]+:)?svg\\s/;\n\nvar SVG_WIDTH_RE = /[^-]\\bwidth=\"([^%]+?)\"|[^-]\\bwidth='([^%]+?)'/;\nvar SVG_HEIGHT_RE = /\\bheight=\"([^%]+?)\"|\\bheight='([^%]+?)'/;\nvar SVG_VIEWBOX_RE = /\\bview[bB]ox=\"(.+?)\"|\\bview[bB]ox='(.+?)'/;\nvar SVG_UNITS_RE = /in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;\n\nfunction svgAttrs(str) {\n var width = str.match(SVG_WIDTH_RE);\n var height = str.match(SVG_HEIGHT_RE);\n var viewbox = str.match(SVG_VIEWBOX_RE);\n\n return {\n width: width && (width[1] || width[2]),\n height: height && (height[1] || height[2]),\n viewbox: viewbox && (viewbox[1] || viewbox[2])\n };\n}\n\n\nfunction units(str) {\n if (!SVG_UNITS_RE.test(str)) return 'px';\n\n return str.match(SVG_UNITS_RE)[0];\n}\n\n\nmodule.exports = function (data) {\n if (!canBeSvg(data)) return;\n\n var str = '';\n\n for (var i = 0; i < data.length; i++) {\n // 1. We can't rely on buffer features\n // 2. Don't care about UTF16 because ascii is enougth for our goals\n str += String.fromCharCode(data[i]);\n }\n\n // get top level element\n var svgTag = (str.match(SVG_HEADER_RE) || [ '' ])[0];\n\n // test if top level element is \n if (!SVG_TAG_RE.test(svgTag)) return;\n\n var attrs = svgAttrs(svgTag);\n var width = parseFloat(attrs.width);\n var height = parseFloat(attrs.height);\n\n // Extract from direct values\n\n if (attrs.width && attrs.height) {\n if (!isFinitePositive(width) || !isFinitePositive(height)) return;\n\n return {\n width: width,\n height: height,\n type: 'svg',\n mime: 'image/svg+xml',\n wUnits: units(attrs.width),\n hUnits: units(attrs.height)\n };\n }\n\n // Extract from viewbox\n\n var parts = (attrs.viewbox || '').split(' ');\n var viewbox = {\n width: parts[2],\n height: parts[3]\n };\n var vbWidth = parseFloat(viewbox.width);\n var vbHeight = parseFloat(viewbox.height);\n\n if (!isFinitePositive(vbWidth) || !isFinitePositive(vbHeight)) return;\n if (units(viewbox.width) !== units(viewbox.height)) return;\n\n var ratio = vbWidth / vbHeight;\n\n if (attrs.width) {\n if (!isFinitePositive(width)) return;\n\n return {\n width: width,\n height: width / ratio,\n type: 'svg',\n mime: 'image/svg+xml',\n wUnits: units(attrs.width),\n hUnits: units(attrs.width)\n };\n }\n\n if (attrs.height) {\n if (!isFinitePositive(height)) return;\n\n return {\n width: height * ratio,\n height: height,\n type: 'svg',\n mime: 'image/svg+xml',\n wUnits: units(attrs.height),\n hUnits: units(attrs.height)\n };\n }\n\n return {\n width: vbWidth,\n height: vbHeight,\n type: 'svg',\n mime: 'image/svg+xml',\n wUnits: units(viewbox.width),\n hUnits: units(viewbox.height)\n };\n};\n\n},{}],273:[function(_dereq_,module,exports){\n'use strict';\n\n/* eslint-disable consistent-return */\n\nvar str2arr = _dereq_('../common').str2arr;\nvar sliceEq = _dereq_('../common').sliceEq;\nvar readUInt16LE = _dereq_('../common').readUInt16LE;\nvar readUInt16BE = _dereq_('../common').readUInt16BE;\nvar readUInt32LE = _dereq_('../common').readUInt32LE;\nvar readUInt32BE = _dereq_('../common').readUInt32BE;\n\n\nvar SIG_1 = str2arr('II\\x2A\\0');\nvar SIG_2 = str2arr('MM\\0\\x2A');\n\n\nfunction readUInt16(buffer, offset, is_big_endian) {\n return is_big_endian ? readUInt16BE(buffer, offset) : readUInt16LE(buffer, offset);\n}\n\nfunction readUInt32(buffer, offset, is_big_endian) {\n return is_big_endian ? readUInt32BE(buffer, offset) : readUInt32LE(buffer, offset);\n}\n\nfunction readIFDValue(data, data_offset, is_big_endian) {\n var type = readUInt16(data, data_offset + 2, is_big_endian);\n var values = readUInt32(data, data_offset + 4, is_big_endian);\n\n if (values !== 1 || (type !== 3 && type !== 4)) return null;\n\n if (type === 3) {\n return readUInt16(data, data_offset + 8, is_big_endian);\n }\n\n return readUInt32(data, data_offset + 8, is_big_endian);\n}\n\nmodule.exports = function (data) {\n if (data.length < 8) return;\n\n // check TIFF signature\n if (!sliceEq(data, 0, SIG_1) && !sliceEq(data, 0, SIG_2)) return;\n\n var is_big_endian = (data[0] === 77 /* 'MM' */);\n var count = readUInt32(data, 4, is_big_endian) - 8;\n\n if (count < 0) return;\n\n // skip until IFD\n var offset = count + 8;\n\n if (data.length - offset < 2) return;\n\n // read number of IFD entries\n var ifd_size = readUInt16(data, offset + 0, is_big_endian) * 12;\n\n if (ifd_size <= 0) return;\n\n offset += 2;\n\n // read all IFD entries\n if (data.length - offset < ifd_size) return;\n\n var i, width, height, tag;\n\n for (i = 0; i < ifd_size; i += 12) {\n tag = readUInt16(data, offset + i, is_big_endian);\n\n if (tag === 256) {\n width = readIFDValue(data, offset + i, is_big_endian);\n } else if (tag === 257) {\n height = readIFDValue(data, offset + i, is_big_endian);\n }\n }\n\n if (width && height) {\n return {\n width: width,\n height: height,\n type: 'tiff',\n mime: 'image/tiff',\n wUnits: 'px',\n hUnits: 'px'\n };\n }\n};\n\n},{\"../common\":262}],274:[function(_dereq_,module,exports){\n'use strict';\n\n/* eslint-disable no-bitwise */\n/* eslint-disable consistent-return */\n\nvar str2arr = _dereq_('../common').str2arr;\nvar sliceEq = _dereq_('../common').sliceEq;\nvar readUInt16LE = _dereq_('../common').readUInt16LE;\nvar readUInt32LE = _dereq_('../common').readUInt32LE;\nvar exif = _dereq_('../exif_utils');\n\n\nvar SIG_RIFF = str2arr('RIFF');\nvar SIG_WEBP = str2arr('WEBP');\n\n\nfunction parseVP8(data, offset) {\n if (data[offset + 3] !== 0x9D || data[offset + 4] !== 0x01 || data[offset + 5] !== 0x2A) {\n // bad code block signature\n return;\n }\n\n return {\n width: readUInt16LE(data, offset + 6) & 0x3FFF,\n height: readUInt16LE(data, offset + 8) & 0x3FFF,\n type: 'webp',\n mime: 'image/webp',\n wUnits: 'px',\n hUnits: 'px'\n };\n}\n\n\nfunction parseVP8L(data, offset) {\n if (data[offset] !== 0x2F) return;\n\n var bits = readUInt32LE(data, offset + 1);\n\n return {\n width: (bits & 0x3FFF) + 1,\n height: ((bits >> 14) & 0x3FFF) + 1,\n type: 'webp',\n mime: 'image/webp',\n wUnits: 'px',\n hUnits: 'px'\n };\n}\n\n\nfunction parseVP8X(data, offset) {\n return {\n // TODO: replace with `data.readUIntLE(8, 3) + 1`\n // when 0.10 support is dropped\n width: ((data[offset + 6] << 16) | (data[offset + 5] << 8) | data[offset + 4]) + 1,\n height: ((data[offset + 9] << offset) | (data[offset + 8] << 8) | data[offset + 7]) + 1,\n type: 'webp',\n mime: 'image/webp',\n wUnits: 'px',\n hUnits: 'px'\n };\n}\n\n\nmodule.exports = function (data) {\n if (data.length < 16) return;\n\n // check /^RIFF....WEBPVP8([ LX])$/ signature\n if (!sliceEq(data, 0, SIG_RIFF) && !sliceEq(data, 8, SIG_WEBP)) return;\n\n var offset = 12;\n var result = null;\n var exif_orientation = 0;\n var fileLength = readUInt32LE(data, 4) + 8;\n\n if (fileLength > data.length) return;\n\n while (offset + 8 < fileLength) {\n if (data[offset] === 0) {\n // after each chunk of odd size there should be 0 byte of padding, skip those\n offset++;\n continue;\n }\n\n var header = String.fromCharCode.apply(null, data.slice(offset, offset + 4));\n var length = readUInt32LE(data, offset + 4);\n\n if (header === 'VP8 ' && length >= 10) {\n result = result || parseVP8(data, offset + 8);\n } else if (header === 'VP8L' && length >= 9) {\n result = result || parseVP8L(data, offset + 8);\n } else if (header === 'VP8X' && length >= 10) {\n result = result || parseVP8X(data, offset + 8);\n } else if (header === 'EXIF') {\n exif_orientation = exif.get_orientation(data.slice(offset + 8, offset + 8 + length));\n\n // exif is the last chunk we care about, stop after it\n offset = Infinity;\n }\n\n offset += 8 + length;\n }\n\n if (!result) return;\n\n if (exif_orientation > 0) {\n result.orientation = exif_orientation;\n }\n\n return result;\n};\n\n},{\"../common\":262,\"../exif_utils\":263}],275:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = {\n avif: _dereq_('./parse_sync/avif'),\n bmp: _dereq_('./parse_sync/bmp'),\n gif: _dereq_('./parse_sync/gif'),\n ico: _dereq_('./parse_sync/ico'),\n jpeg: _dereq_('./parse_sync/jpeg'),\n png: _dereq_('./parse_sync/png'),\n psd: _dereq_('./parse_sync/psd'),\n svg: _dereq_('./parse_sync/svg'),\n tiff: _dereq_('./parse_sync/tiff'),\n webp: _dereq_('./parse_sync/webp')\n};\n\n},{\"./parse_sync/avif\":265,\"./parse_sync/bmp\":266,\"./parse_sync/gif\":267,\"./parse_sync/ico\":268,\"./parse_sync/jpeg\":269,\"./parse_sync/png\":270,\"./parse_sync/psd\":271,\"./parse_sync/svg\":272,\"./parse_sync/tiff\":273,\"./parse_sync/webp\":274}],276:[function(_dereq_,module,exports){\n'use strict';\n\n\nvar parsers = _dereq_('./lib/parsers_sync');\n\n\nfunction probeBuffer(buffer) {\n var parser_names = Object.keys(parsers);\n\n for (var i = 0; i < parser_names.length; i++) {\n var result = parsers[parser_names[i]](buffer);\n\n if (result) return result;\n }\n\n return null;\n}\n\n\n///////////////////////////////////////////////////////////////////////\n// Exports\n//\n\nmodule.exports = function get_image_size(src) {\n return probeBuffer(src);\n};\n\nmodule.exports.parsers = parsers;\n\n},{\"./lib/parsers_sync\":275}],277:[function(_dereq_,module,exports){\n// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\n},{}],278:[function(_dereq_,module,exports){\n(function (global){(function (){\nvar now = _dereq_('performance-now')\n , root = typeof window === 'undefined' ? global : window\n , vendors = ['moz', 'webkit']\n , suffix = 'AnimationFrame'\n , raf = root['request' + suffix]\n , caf = root['cancel' + suffix] || root['cancelRequest' + suffix]\n\nfor(var i = 0; !raf && i < vendors.length; i++) {\n raf = root[vendors[i] + 'Request' + suffix]\n caf = root[vendors[i] + 'Cancel' + suffix]\n || root[vendors[i] + 'CancelRequest' + suffix]\n}\n\n// Some versions of FF have rAF but not cAF\nif(!raf || !caf) {\n var last = 0\n , id = 0\n , queue = []\n , frameDuration = 1000 / 60\n\n raf = function(callback) {\n if(queue.length === 0) {\n var _now = now()\n , next = Math.max(0, frameDuration - (_now - last))\n last = next + _now\n setTimeout(function() {\n var cp = queue.slice(0)\n // Clear queue here to prevent\n // callbacks from appending listeners\n // to the current frame's queue\n queue.length = 0\n for(var i = 0; i < cp.length; i++) {\n if(!cp[i].cancelled) {\n try{\n cp[i].callback(last)\n } catch(e) {\n setTimeout(function() { throw e }, 0)\n }\n }\n }\n }, Math.round(next))\n }\n queue.push({\n handle: ++id,\n callback: callback,\n cancelled: false\n })\n return id\n }\n\n caf = function(handle) {\n for(var i = 0; i < queue.length; i++) {\n if(queue[i].handle === handle) {\n queue[i].cancelled = true\n }\n }\n }\n}\n\nmodule.exports = function(fn) {\n // Wrap in a new function to prevent\n // `cancel` potentially being assigned\n // to the native rAF function\n return raf.call(root, fn)\n}\nmodule.exports.cancel = function() {\n caf.apply(root, arguments)\n}\nmodule.exports.polyfill = function(object) {\n if (!object) {\n object = root;\n }\n object.requestAnimationFrame = raf\n object.cancelAnimationFrame = caf\n}\n\n}).call(this)}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{\"performance-now\":252}],279:[function(_dereq_,module,exports){\n'use strict'\n\nvar getBounds = _dereq_('array-bounds')\nvar rgba = _dereq_('color-normalize')\nvar updateDiff = _dereq_('update-diff')\nvar pick = _dereq_('pick-by-alias')\nvar extend = _dereq_('object-assign')\nvar flatten = _dereq_('flatten-vertex-data')\nvar ref = _dereq_('to-float32');\nvar float32 = ref.float32;\nvar fract32 = ref.fract32;\n\nmodule.exports = Error2D\n\nvar WEIGHTS = [\n\t//direction, lineWidth shift, capSize shift\n\n\t// x-error bar\n\t[1, 0, 0, 1, 0, 0],\n\t[1, 0, 0, -1, 0, 0],\n\t[-1, 0, 0, -1, 0, 0],\n\n\t[-1, 0, 0, -1, 0, 0],\n\t[-1, 0, 0, 1, 0, 0],\n\t[1, 0, 0, 1, 0, 0],\n\n\t// x-error right cap\n\t[1, 0, -1, 0, 0, 1],\n\t[1, 0, -1, 0, 0, -1],\n\t[1, 0, 1, 0, 0, -1],\n\n\t[1, 0, 1, 0, 0, -1],\n\t[1, 0, 1, 0, 0, 1],\n\t[1, 0, -1, 0, 0, 1],\n\n\t// x-error left cap\n\t[-1, 0, -1, 0, 0, 1],\n\t[-1, 0, -1, 0, 0, -1],\n\t[-1, 0, 1, 0, 0, -1],\n\n\t[-1, 0, 1, 0, 0, -1],\n\t[-1, 0, 1, 0, 0, 1],\n\t[-1, 0, -1, 0, 0, 1],\n\n\t// y-error bar\n\t[0, 1, 1, 0, 0, 0],\n\t[0, 1, -1, 0, 0, 0],\n\t[0, -1, -1, 0, 0, 0],\n\n\t[0, -1, -1, 0, 0, 0],\n\t[0, 1, 1, 0, 0, 0],\n\t[0, -1, 1, 0, 0, 0],\n\n\t// y-error top cap\n\t[0, 1, 0, -1, 1, 0],\n\t[0, 1, 0, -1, -1, 0],\n\t[0, 1, 0, 1, -1, 0],\n\n\t[0, 1, 0, 1, 1, 0],\n\t[0, 1, 0, -1, 1, 0],\n\t[0, 1, 0, 1, -1, 0],\n\n\t// y-error bottom cap\n\t[0, -1, 0, -1, 1, 0],\n\t[0, -1, 0, -1, -1, 0],\n\t[0, -1, 0, 1, -1, 0],\n\n\t[0, -1, 0, 1, 1, 0],\n\t[0, -1, 0, -1, 1, 0],\n\t[0, -1, 0, 1, -1, 0]\n]\n\n\nfunction Error2D (regl, options) {\n\tif (typeof regl === 'function') {\n\t\tif (!options) { options = {} }\n\t\toptions.regl = regl\n\t}\n\telse {\n\t\toptions = regl\n\t}\n\tif (options.length) { options.positions = options }\n\tregl = options.regl\n\n\tif (!regl.hasExtension('ANGLE_instanced_arrays')) {\n\t\tthrow Error('regl-error2d: `ANGLE_instanced_arrays` extension should be enabled');\n\t}\n\n\t// persistent variables\n\tvar gl = regl._gl, drawErrors, positionBuffer, positionFractBuffer, colorBuffer, errorBuffer, meshBuffer,\n\t\t\tdefaults = {\n\t\t\t\tcolor: 'black',\n\t\t\t\tcapSize: 5,\n\t\t\t\tlineWidth: 1,\n\t\t\t\topacity: 1,\n\t\t\t\tviewport: null,\n\t\t\t\trange: null,\n\t\t\t\toffset: 0,\n\t\t\t\tcount: 0,\n\t\t\t\tbounds: null,\n\t\t\t\tpositions: [],\n\t\t\t\terrors: []\n\t\t\t}, groups = []\n\n\t//color per-point\n\tcolorBuffer = regl.buffer({\n\t\tusage: 'dynamic',\n\t\ttype: 'uint8',\n\t\tdata: new Uint8Array(0)\n\t})\n\t//xy-position per-point\n\tpositionBuffer = regl.buffer({\n\t\tusage: 'dynamic',\n\t\ttype: 'float',\n\t\tdata: new Uint8Array(0)\n\t})\n\t//xy-position float32-fraction\n\tpositionFractBuffer = regl.buffer({\n\t\tusage: 'dynamic',\n\t\ttype: 'float',\n\t\tdata: new Uint8Array(0)\n\t})\n\t//4 errors per-point\n\terrorBuffer = regl.buffer({\n\t\tusage: 'dynamic',\n\t\ttype: 'float',\n\t\tdata: new Uint8Array(0)\n\t})\n\t//error bar mesh\n\tmeshBuffer = regl.buffer({\n\t\tusage: 'static',\n\t\ttype: 'float',\n\t\tdata: WEIGHTS\n\t})\n\n\tupdate(options)\n\n\t//drawing method\n\tdrawErrors = regl({\n\t\tvert: \"\\n\\t\\tprecision highp float;\\n\\n\\t\\tattribute vec2 position, positionFract;\\n\\t\\tattribute vec4 error;\\n\\t\\tattribute vec4 color;\\n\\n\\t\\tattribute vec2 direction, lineOffset, capOffset;\\n\\n\\t\\tuniform vec4 viewport;\\n\\t\\tuniform float lineWidth, capSize;\\n\\t\\tuniform vec2 scale, scaleFract, translate, translateFract;\\n\\n\\t\\tvarying vec4 fragColor;\\n\\n\\t\\tvoid main() {\\n\\t\\t\\tfragColor = color / 255.;\\n\\n\\t\\t\\tvec2 pixelOffset = lineWidth * lineOffset + (capSize + lineWidth) * capOffset;\\n\\n\\t\\t\\tvec2 dxy = -step(.5, direction.xy) * error.xz + step(direction.xy, vec2(-.5)) * error.yw;\\n\\n\\t\\t\\tvec2 position = position + dxy;\\n\\n\\t\\t\\tvec2 pos = (position + translate) * scale\\n\\t\\t\\t\\t+ (positionFract + translateFract) * scale\\n\\t\\t\\t\\t+ (position + translate) * scaleFract\\n\\t\\t\\t\\t+ (positionFract + translateFract) * scaleFract;\\n\\n\\t\\t\\tpos += pixelOffset / viewport.zw;\\n\\n\\t\\t\\tgl_Position = vec4(pos * 2. - 1., 0, 1);\\n\\t\\t}\\n\\t\\t\",\n\n\t\tfrag: \"\\n\\t\\tprecision highp float;\\n\\n\\t\\tvarying vec4 fragColor;\\n\\n\\t\\tuniform float opacity;\\n\\n\\t\\tvoid main() {\\n\\t\\t\\tgl_FragColor = fragColor;\\n\\t\\t\\tgl_FragColor.a *= opacity;\\n\\t\\t}\\n\\t\\t\",\n\n\t\tuniforms: {\n\t\t\trange: regl.prop('range'),\n\t\t\tlineWidth: regl.prop('lineWidth'),\n\t\t\tcapSize: regl.prop('capSize'),\n\t\t\topacity: regl.prop('opacity'),\n\t\t\tscale: regl.prop('scale'),\n\t\t\ttranslate: regl.prop('translate'),\n\t\t\tscaleFract: regl.prop('scaleFract'),\n\t\t\ttranslateFract: regl.prop('translateFract'),\n\t\t\tviewport: function (ctx, prop) { return [prop.viewport.x, prop.viewport.y, ctx.viewportWidth, ctx.viewportHeight]; }\n\t\t},\n\n\t\tattributes: {\n\t\t\t//dynamic attributes\n\t\t\tcolor: {\n\t\t\t\tbuffer: colorBuffer,\n\t\t\t\toffset: function (ctx, prop) { return prop.offset * 4; },\n\t\t\t\tdivisor: 1,\n\t\t\t},\n\t\t\tposition: {\n\t\t\t\tbuffer: positionBuffer,\n\t\t\t\toffset: function (ctx, prop) { return prop.offset * 8; },\n\t\t\t\tdivisor: 1\n\t\t\t},\n\t\t\tpositionFract: {\n\t\t\t\tbuffer: positionFractBuffer,\n\t\t\t\toffset: function (ctx, prop) { return prop.offset * 8; },\n\t\t\t\tdivisor: 1\n\t\t\t},\n\t\t\terror: {\n\t\t\t\tbuffer: errorBuffer,\n\t\t\t\toffset: function (ctx, prop) { return prop.offset * 16; },\n\t\t\t\tdivisor: 1\n\t\t\t},\n\n\t\t\t//static attributes\n\t\t\tdirection: {\n\t\t\t\tbuffer: meshBuffer,\n\t\t\t\tstride: 24,\n\t\t\t\toffset: 0\n\t\t\t},\n\t\t\tlineOffset: {\n\t\t\t\tbuffer: meshBuffer,\n\t\t\t\tstride: 24,\n\t\t\t\toffset: 8\n\t\t\t},\n\t\t\tcapOffset: {\n\t\t\t\tbuffer: meshBuffer,\n\t\t\t\tstride: 24,\n\t\t\t\toffset: 16\n\t\t\t}\n\t\t},\n\n\t\tprimitive: 'triangles',\n\n\t\tblend: {\n\t\t\tenable: true,\n\t\t\tcolor: [0,0,0,0],\n\t\t\tequation: {\n\t\t\t\trgb: 'add',\n\t\t\t\talpha: 'add'\n\t\t\t},\n\t\t\tfunc: {\n\t\t\t\tsrcRGB: 'src alpha',\n\t\t\t\tdstRGB: 'one minus src alpha',\n\t\t\t\tsrcAlpha: 'one minus dst alpha',\n\t\t\t\tdstAlpha: 'one'\n\t\t\t}\n\t\t},\n\n\t\tdepth: {\n\t\t\tenable: false\n\t\t},\n\n\t\tscissor: {\n\t\t\tenable: true,\n\t\t\tbox: regl.prop('viewport')\n\t\t},\n\t\tviewport: regl.prop('viewport'),\n\t\tstencil: false,\n\n\t\tinstances: regl.prop('count'),\n\t\tcount: WEIGHTS.length\n\t})\n\n\t//expose API\n\textend(error2d, {\n\t\tupdate: update,\n\t\tdraw: draw,\n\t\tdestroy: destroy,\n\t\tregl: regl,\n\t\tgl: gl,\n\t\tcanvas: gl.canvas,\n\t\tgroups: groups\n\t})\n\n\treturn error2d\n\n\tfunction error2d (opts) {\n\t\t//update\n\t\tif (opts) {\n\t\t\tupdate(opts)\n\t\t}\n\n\t\t//destroy\n\t\telse if (opts === null) {\n\t\t\tdestroy()\n\t\t}\n\n\t\tdraw()\n\t}\n\n\n\t//main draw method\n\tfunction draw (options) {\n\t\tif (typeof options === 'number') { return drawGroup(options) }\n\n\t\t//make options a batch\n\t\tif (options && !Array.isArray(options)) { options = [options] }\n\n\n\t\tregl._refresh()\n\n\t\t//render multiple polylines via regl batch\n\t\tgroups.forEach(function (s, i) {\n\t\t\tif (!s) { return }\n\n\t\t\tif (options) {\n\t\t\t\tif (!options[i]) { s.draw = false }\n\t\t\t\telse { s.draw = true }\n\t\t\t}\n\n\t\t\t//ignore draw flag for one pass\n\t\t\tif (!s.draw) {\n\t\t\t\ts.draw = true;\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tdrawGroup(i)\n\t\t})\n\t}\n\n\t//draw single error group by id\n\tfunction drawGroup (s) {\n\t\tif (typeof s === 'number') { s = groups[s] }\n\t\tif (s == null) { return }\n\n\t\tif (!(s && s.count && s.color && s.opacity && s.positions && s.positions.length > 1)) { return }\n\n\t\ts.scaleRatio = [\n\t\t\ts.scale[0] * s.viewport.width,\n\t\t\ts.scale[1] * s.viewport.height\n\t\t]\n\n\t\tdrawErrors(s)\n\n\t\tif (s.after) { s.after(s) }\n\t}\n\n\tfunction update (options) {\n\t\tif (!options) { return }\n\n\t\t//direct points argument\n\t\tif (options.length != null) {\n\t\t\tif (typeof options[0] === 'number') { options = [{positions: options}] }\n\t\t}\n\n\t\t//make options a batch\n\t\telse if (!Array.isArray(options)) { options = [options] }\n\n\t\t//global count of points\n\t\tvar pointCount = 0, errorCount = 0\n\n\t\terror2d.groups = groups = options.map(function (options, i) {\n\t\t\tvar group = groups[i]\n\n\t\t\tif (!options) { return group }\n\t\t\telse if (typeof options === 'function') { options = {after: options} }\n\t\t\telse if (typeof options[0] === 'number') { options = {positions: options} }\n\n\t\t\t//copy options to avoid mutation & handle aliases\n\t\t\toptions = pick(options, {\n\t\t\t\tcolor: 'color colors fill',\n\t\t\t\tcapSize: 'capSize cap capsize cap-size',\n\t\t\t\tlineWidth: 'lineWidth line-width width line thickness',\n\t\t\t\topacity: 'opacity alpha',\n\t\t\t\trange: 'range dataBox',\n\t\t\t\tviewport: 'viewport viewBox',\n\t\t\t\terrors: 'errors error',\n\t\t\t\tpositions: 'positions position data points'\n\t\t\t})\n\n\t\t\tif (!group) {\n\t\t\t\tgroups[i] = group = {\n\t\t\t\t\tid: i,\n\t\t\t\t\tscale: null,\n\t\t\t\t\ttranslate: null,\n\t\t\t\t\tscaleFract: null,\n\t\t\t\t\ttranslateFract: null,\n\t\t\t\t\tdraw: true\n\t\t\t\t}\n\t\t\t\toptions = extend({}, defaults, options)\n\t\t\t}\n\n\t\t\tupdateDiff(group, options, [{\n\t\t\t\tlineWidth: function (v) { return +v * .5; },\n\t\t\t\tcapSize: function (v) { return +v * .5; },\n\t\t\t\topacity: parseFloat,\n\t\t\t\terrors: function (errors) {\n\t\t\t\t\terrors = flatten(errors)\n\n\t\t\t\t\terrorCount += errors.length\n\t\t\t\t\treturn errors\n\t\t\t\t},\n\t\t\t\tpositions: function (positions, state) {\n\t\t\t\t\tpositions = flatten(positions, 'float64')\n\t\t\t\t\tstate.count = Math.floor(positions.length / 2)\n\t\t\t\t\tstate.bounds = getBounds(positions, 2)\n\t\t\t\t\tstate.offset = pointCount\n\n\t\t\t\t\tpointCount += state.count\n\n\t\t\t\t\treturn positions\n\t\t\t\t}\n\t\t\t}, {\n\t\t\t\tcolor: function (colors, state) {\n\t\t\t\t\tvar count = state.count\n\n\t\t\t\t\tif (!colors) { colors = 'transparent' }\n\n\t\t\t\t\t// 'black' or [0,0,0,0] case\n\t\t\t\t\tif (!Array.isArray(colors) || typeof colors[0] === 'number') {\n\t\t\t\t\t\tvar color = colors\n\t\t\t\t\t\tcolors = Array(count)\n\t\t\t\t\t\tfor (var i = 0; i < count; i++) {\n\t\t\t\t\t\t\tcolors[i] = color\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (colors.length < count) { throw Error('Not enough colors') }\n\n\t\t\t\t\tvar colorData = new Uint8Array(count * 4)\n\n\t\t\t\t\t//convert colors to float arrays\n\t\t\t\t\tfor (var i$1 = 0; i$1 < count; i$1++) {\n\t\t\t\t\t\tvar c = rgba(colors[i$1], 'uint8')\n\t\t\t\t\t\tcolorData.set(c, i$1 * 4)\n\t\t\t\t\t}\n\n\t\t\t\t\treturn colorData\n\t\t\t\t},\n\n\t\t\t\trange: function (range, state, options) {\n\t\t\t\t\tvar bounds = state.bounds\n\t\t\t\t\tif (!range) { range = bounds }\n\n\t\t\t\t\tstate.scale = [1 / (range[2] - range[0]), 1 / (range[3] - range[1])]\n\t\t\t\t\tstate.translate = [-range[0], -range[1]]\n\n\t\t\t\t\tstate.scaleFract = fract32(state.scale)\n\t\t\t\t\tstate.translateFract = fract32(state.translate)\n\n\t\t\t\t\treturn range\n\t\t\t\t},\n\n\t\t\t\tviewport: function (vp) {\n\t\t\t\t\tvar viewport\n\n\t\t\t\t\tif (Array.isArray(vp)) {\n\t\t\t\t\t\tviewport = {\n\t\t\t\t\t\t\tx: vp[0],\n\t\t\t\t\t\t\ty: vp[1],\n\t\t\t\t\t\t\twidth: vp[2] - vp[0],\n\t\t\t\t\t\t\theight: vp[3] - vp[1]\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (vp) {\n\t\t\t\t\t\tviewport = {\n\t\t\t\t\t\t\tx: vp.x || vp.left || 0,\n\t\t\t\t\t\t\ty: vp.y || vp.top || 0\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (vp.right) { viewport.width = vp.right - viewport.x }\n\t\t\t\t\t\telse { viewport.width = vp.w || vp.width || 0 }\n\n\t\t\t\t\t\tif (vp.bottom) { viewport.height = vp.bottom - viewport.y }\n\t\t\t\t\t\telse { viewport.height = vp.h || vp.height || 0 }\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tviewport = {\n\t\t\t\t\t\t\tx: 0, y: 0,\n\t\t\t\t\t\t\twidth: gl.drawingBufferWidth,\n\t\t\t\t\t\t\theight: gl.drawingBufferHeight\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\treturn viewport\n\t\t\t\t}\n\t\t\t}])\n\n\t\t\treturn group\n\t\t})\n\n\t\tif (pointCount || errorCount) {\n\t\t\tvar len = groups.reduce(function (acc, group, i) {\n\t\t\t\treturn acc + (group ? group.count : 0)\n\t\t\t}, 0)\n\n\t\t\tvar positionData = new Float64Array(len * 2)\n\t\t\tvar colorData = new Uint8Array(len * 4)\n\t\t\tvar errorData = new Float32Array(len * 4)\n\n\t\t\tgroups.forEach(function (group, i) {\n\t\t\t\tif (!group) { return }\n\t\t\t\tvar positions = group.positions;\n\t\t\t\tvar count = group.count;\n\t\t\t\tvar offset = group.offset;\n\t\t\t\tvar color = group.color;\n\t\t\t\tvar errors = group.errors;\n\t\t\t\tif (!count) { return }\n\n\t\t\t\tcolorData.set(color, offset * 4)\n\t\t\t\terrorData.set(errors, offset * 4)\n\t\t\t\tpositionData.set(positions, offset * 2)\n\t\t\t})\n\n\t\t\tvar float_data = float32(positionData)\n\t\t\tpositionBuffer(float_data)\n\t\t\tvar frac_data = fract32(positionData, float_data)\n\t\t\tpositionFractBuffer(frac_data)\n\t\t\tcolorBuffer(colorData)\n\t\t\terrorBuffer(errorData)\n\t\t}\n\n\t}\n\n\tfunction destroy () {\n\t\tpositionBuffer.destroy()\n\t\tpositionFractBuffer.destroy()\n\t\tcolorBuffer.destroy()\n\t\terrorBuffer.destroy()\n\t\tmeshBuffer.destroy()\n\t}\n}\n\n},{\"array-bounds\":71,\"color-normalize\":89,\"flatten-vertex-data\":191,\"object-assign\":247,\"pick-by-alias\":253,\"to-float32\":313,\"update-diff\":329}],280:[function(_dereq_,module,exports){\n'use strict'\n\n\nvar rgba = _dereq_('color-normalize')\nvar getBounds = _dereq_('array-bounds')\nvar extend = _dereq_('object-assign')\nvar glslify = _dereq_('glslify')\nvar pick = _dereq_('pick-by-alias')\nvar flatten = _dereq_('flatten-vertex-data')\nvar triangulate = _dereq_('earcut')\nvar normalize = _dereq_('array-normalize')\nvar ref = _dereq_('to-float32');\nvar float32 = ref.float32;\nvar fract32 = ref.fract32;\nvar WeakMap = _dereq_('es6-weak-map')\nvar parseRect = _dereq_('parse-rect')\nvar findIndex = _dereq_('array-find-index');\n\n\nmodule.exports = Line2D\n\n\n/** @constructor */\nfunction Line2D (regl, options) {\n\tif (!(this instanceof Line2D)) { return new Line2D(regl, options) }\n\n\tif (typeof regl === 'function') {\n\t\tif (!options) { options = {} }\n\t\toptions.regl = regl\n\t}\n\telse {\n\t\toptions = regl\n\t}\n\tif (options.length) { options.positions = options }\n\tregl = options.regl\n\n\tif (!regl.hasExtension('ANGLE_instanced_arrays')) {\n\t\tthrow Error('regl-error2d: `ANGLE_instanced_arrays` extension should be enabled');\n\t}\n\n\t// persistent variables\n\tthis.gl = regl._gl\n\tthis.regl = regl\n\n\t// list of options for lines\n\tthis.passes = []\n\n\t// cached shaders instance\n\tthis.shaders = Line2D.shaders.has(regl) ? Line2D.shaders.get(regl) : Line2D.shaders.set(regl, Line2D.createShaders(regl)).get(regl)\n\n\n\t// init defaults\n\tthis.update(options)\n}\n\n\nLine2D.dashMult = 2\nLine2D.maxPatternLength = 256\nLine2D.precisionThreshold = 3e6\nLine2D.maxPoints = 1e4\nLine2D.maxLines = 2048\n\n\n// cache of created draw calls per-regl instance\nLine2D.shaders = new WeakMap()\n\n\n// create static shaders once\nLine2D.createShaders = function (regl) {\n\tvar offsetBuffer = regl.buffer({\n\t\tusage: 'static',\n\t\ttype: 'float',\n\t\tdata: [0,1, 0,0, 1,1, 1,0]\n\t})\n\n\tvar shaderOptions = {\n\t\tprimitive: 'triangle strip',\n\t\tinstances: regl.prop('count'),\n\t\tcount: 4,\n\t\toffset: 0,\n\n\t\tuniforms: {\n\t\t\tmiterMode: function (ctx, prop) { return prop.join === 'round' ? 2 : 1; },\n\t\t\tmiterLimit: regl.prop('miterLimit'),\n\t\t\tscale: regl.prop('scale'),\n\t\t\tscaleFract: regl.prop('scaleFract'),\n\t\t\ttranslateFract: regl.prop('translateFract'),\n\t\t\ttranslate: regl.prop('translate'),\n\t\t\tthickness: regl.prop('thickness'),\n\t\t\tdashTexture: regl.prop('dashTexture'),\n\t\t\topacity: regl.prop('opacity'),\n\t\t\tpixelRatio: regl.context('pixelRatio'),\n\t\t\tid: regl.prop('id'),\n\t\t\tdashLength: regl.prop('dashLength'),\n\t\t\tviewport: function (c, p) { return [p.viewport.x, p.viewport.y, c.viewportWidth, c.viewportHeight]; },\n\t\t\tdepth: regl.prop('depth')\n\t\t},\n\n\t\tblend: {\n\t\t\tenable: true,\n\t\t\tcolor: [0,0,0,0],\n\t\t\tequation: {\n\t\t\t\trgb: 'add',\n\t\t\t\talpha: 'add'\n\t\t\t},\n\t\t\tfunc: {\n\t\t\t\tsrcRGB: 'src alpha',\n\t\t\t\tdstRGB: 'one minus src alpha',\n\t\t\t\tsrcAlpha: 'one minus dst alpha',\n\t\t\t\tdstAlpha: 'one'\n\t\t\t}\n\t\t},\n\t\tdepth: {\n\t\t\tenable: function (c, p) {\n\t\t\t\treturn !p.overlay\n\t\t\t}\n\t\t},\n\t\tstencil: {enable: false},\n\t\tscissor: {\n\t\t\tenable: true,\n\t\t\tbox: regl.prop('viewport')\n\t\t},\n\t\tviewport: regl.prop('viewport')\n\t}\n\n\n\t// simplified rectangular line shader\n\tvar drawRectLine = regl(extend({\n\t\tvert: glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec2 aCoord, bCoord, aCoordFract, bCoordFract;\\nattribute vec4 color;\\nattribute float lineEnd, lineTop;\\n\\nuniform vec2 scale, scaleFract, translate, translateFract;\\nuniform float thickness, pixelRatio, id, depth;\\nuniform vec4 viewport;\\n\\nvarying vec4 fragColor;\\nvarying vec2 tangent;\\n\\nvec2 project(vec2 position, vec2 positionFract, vec2 scale, vec2 scaleFract, vec2 translate, vec2 translateFract) {\\n\\t// the order is important\\n\\treturn position * scale + translate\\n + positionFract * scale + translateFract\\n + position * scaleFract\\n + positionFract * scaleFract;\\n}\\n\\nvoid main() {\\n\\tfloat lineStart = 1. - lineEnd;\\n\\tfloat lineOffset = lineTop * 2. - 1.;\\n\\n\\tvec2 diff = (bCoord + bCoordFract - aCoord - aCoordFract);\\n\\ttangent = normalize(diff * scale * viewport.zw);\\n\\tvec2 normal = vec2(-tangent.y, tangent.x);\\n\\n\\tvec2 position = project(aCoord, aCoordFract, scale, scaleFract, translate, translateFract) * lineStart\\n\\t\\t+ project(bCoord, bCoordFract, scale, scaleFract, translate, translateFract) * lineEnd\\n\\n\\t\\t+ thickness * normal * .5 * lineOffset / viewport.zw;\\n\\n\\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\\n\\n\\tfragColor = color / 255.;\\n}\\n\"]),\n\t\tfrag: glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nuniform float dashLength, pixelRatio, thickness, opacity, id;\\nuniform sampler2D dashTexture;\\n\\nvarying vec4 fragColor;\\nvarying vec2 tangent;\\n\\nvoid main() {\\n\\tfloat alpha = 1.;\\n\\n\\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashLength) * .5 + .25;\\n\\tfloat dash = texture2D(dashTexture, vec2(t, .5)).r;\\n\\n\\tgl_FragColor = fragColor;\\n\\tgl_FragColor.a *= alpha * opacity * dash;\\n}\\n\"]),\n\n\t\tattributes: {\n\t\t\t// if point is at the end of segment\n\t\t\tlineEnd: {\n\t\t\t\tbuffer: offsetBuffer,\n\t\t\t\tdivisor: 0,\n\t\t\t\tstride: 8,\n\t\t\t\toffset: 0\n\t\t\t},\n\t\t\t// if point is at the top of segment\n\t\t\tlineTop: {\n\t\t\t\tbuffer: offsetBuffer,\n\t\t\t\tdivisor: 0,\n\t\t\t\tstride: 8,\n\t\t\t\toffset: 4\n\t\t\t},\n\t\t\t// beginning of line coordinate\n\t\t\taCoord: {\n\t\t\t\tbuffer: regl.prop('positionBuffer'),\n\t\t\t\tstride: 8,\n\t\t\t\toffset: 8,\n\t\t\t\tdivisor: 1\n\t\t\t},\n\t\t\t// end of line coordinate\n\t\t\tbCoord: {\n\t\t\t\tbuffer: regl.prop('positionBuffer'),\n\t\t\t\tstride: 8,\n\t\t\t\toffset: 16,\n\t\t\t\tdivisor: 1\n\t\t\t},\n\t\t\taCoordFract: {\n\t\t\t\tbuffer: regl.prop('positionFractBuffer'),\n\t\t\t\tstride: 8,\n\t\t\t\toffset: 8,\n\t\t\t\tdivisor: 1\n\t\t\t},\n\t\t\tbCoordFract: {\n\t\t\t\tbuffer: regl.prop('positionFractBuffer'),\n\t\t\t\tstride: 8,\n\t\t\t\toffset: 16,\n\t\t\t\tdivisor: 1\n\t\t\t},\n\t\t\tcolor: {\n\t\t\t\tbuffer: regl.prop('colorBuffer'),\n\t\t\t\tstride: 4,\n\t\t\t\toffset: 0,\n\t\t\t\tdivisor: 1\n\t\t\t}\n\t\t}\n\t}, shaderOptions))\n\n\t// create regl draw\n\tvar drawMiterLine\n\n\ttry {\n\t\tdrawMiterLine = regl(extend({\n\t\t\t// culling removes polygon creasing\n\t\t\tcull: {\n\t\t\t\tenable: true,\n\t\t\t\tface: 'back'\n\t\t\t},\n\n\t\t\tvert: glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec2 aCoord, bCoord, nextCoord, prevCoord;\\nattribute vec4 aColor, bColor;\\nattribute float lineEnd, lineTop;\\n\\nuniform vec2 scale, translate;\\nuniform float thickness, pixelRatio, id, depth;\\nuniform vec4 viewport;\\nuniform float miterLimit, miterMode;\\n\\nvarying vec4 fragColor;\\nvarying vec4 startCutoff, endCutoff;\\nvarying vec2 tangent;\\nvarying vec2 startCoord, endCoord;\\nvarying float enableStartMiter, enableEndMiter;\\n\\nconst float REVERSE_THRESHOLD = -.875;\\nconst float MIN_DIFF = 1e-6;\\n\\n// TODO: possible optimizations: avoid overcalculating all for vertices and calc just one instead\\n// TODO: precalculate dot products, normalize things beforehead etc.\\n// TODO: refactor to rectangular algorithm\\n\\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\\n\\tvec2 diff = b - a;\\n\\tvec2 perp = normalize(vec2(-diff.y, diff.x));\\n\\treturn dot(p - a, perp);\\n}\\n\\nbool isNaN( float val ){\\n return ( val < 0.0 || 0.0 < val || val == 0.0 ) ? false : true;\\n}\\n\\nvoid main() {\\n\\tvec2 aCoord = aCoord, bCoord = bCoord, prevCoord = prevCoord, nextCoord = nextCoord;\\n\\n vec2 adjustedScale;\\n adjustedScale.x = (abs(scale.x) < MIN_DIFF) ? MIN_DIFF : scale.x;\\n adjustedScale.y = (abs(scale.y) < MIN_DIFF) ? MIN_DIFF : scale.y;\\n\\n vec2 scaleRatio = adjustedScale * viewport.zw;\\n\\tvec2 normalWidth = thickness / scaleRatio;\\n\\n\\tfloat lineStart = 1. - lineEnd;\\n\\tfloat lineBot = 1. - lineTop;\\n\\n\\tfragColor = (lineStart * aColor + lineEnd * bColor) / 255.;\\n\\n\\tif (isNaN(aCoord.x) || isNaN(aCoord.y) || isNaN(bCoord.x) || isNaN(bCoord.y)) return;\\n\\n\\tif (aCoord == prevCoord) prevCoord = aCoord + normalize(bCoord - aCoord);\\n\\tif (bCoord == nextCoord) nextCoord = bCoord - normalize(bCoord - aCoord);\\n\\n\\tvec2 prevDiff = aCoord - prevCoord;\\n\\tvec2 currDiff = bCoord - aCoord;\\n\\tvec2 nextDiff = nextCoord - bCoord;\\n\\n\\tvec2 prevTangent = normalize(prevDiff * scaleRatio);\\n\\tvec2 currTangent = normalize(currDiff * scaleRatio);\\n\\tvec2 nextTangent = normalize(nextDiff * scaleRatio);\\n\\n\\tvec2 prevNormal = vec2(-prevTangent.y, prevTangent.x);\\n\\tvec2 currNormal = vec2(-currTangent.y, currTangent.x);\\n\\tvec2 nextNormal = vec2(-nextTangent.y, nextTangent.x);\\n\\n\\tvec2 startJoinDirection = normalize(prevTangent - currTangent);\\n\\tvec2 endJoinDirection = normalize(currTangent - nextTangent);\\n\\n\\t// collapsed/unidirectional segment cases\\n\\t// FIXME: there should be more elegant solution\\n\\tvec2 prevTanDiff = abs(prevTangent - currTangent);\\n\\tvec2 nextTanDiff = abs(nextTangent - currTangent);\\n\\tif (max(prevTanDiff.x, prevTanDiff.y) < MIN_DIFF) {\\n\\t\\tstartJoinDirection = currNormal;\\n\\t}\\n\\tif (max(nextTanDiff.x, nextTanDiff.y) < MIN_DIFF) {\\n\\t\\tendJoinDirection = currNormal;\\n\\t}\\n\\tif (aCoord == bCoord) {\\n\\t\\tendJoinDirection = startJoinDirection;\\n\\t\\tcurrNormal = prevNormal;\\n\\t\\tcurrTangent = prevTangent;\\n\\t}\\n\\n\\ttangent = currTangent;\\n\\n\\t//calculate join shifts relative to normals\\n\\tfloat startJoinShift = dot(currNormal, startJoinDirection);\\n\\tfloat endJoinShift = dot(currNormal, endJoinDirection);\\n\\n\\tfloat startMiterRatio = abs(1. / startJoinShift);\\n\\tfloat endMiterRatio = abs(1. / endJoinShift);\\n\\n\\tvec2 startJoin = startJoinDirection * startMiterRatio;\\n\\tvec2 endJoin = endJoinDirection * endMiterRatio;\\n\\n\\tvec2 startTopJoin, startBotJoin, endTopJoin, endBotJoin;\\n\\tstartTopJoin = sign(startJoinShift) * startJoin * .5;\\n\\tstartBotJoin = -startTopJoin;\\n\\n\\tendTopJoin = sign(endJoinShift) * endJoin * .5;\\n\\tendBotJoin = -endTopJoin;\\n\\n\\tvec2 aTopCoord = aCoord + normalWidth * startTopJoin;\\n\\tvec2 bTopCoord = bCoord + normalWidth * endTopJoin;\\n\\tvec2 aBotCoord = aCoord + normalWidth * startBotJoin;\\n\\tvec2 bBotCoord = bCoord + normalWidth * endBotJoin;\\n\\n\\t//miter anti-clipping\\n\\tfloat baClipping = distToLine(bCoord, aCoord, aBotCoord) / dot(normalize(normalWidth * endBotJoin), normalize(normalWidth.yx * vec2(-startBotJoin.y, startBotJoin.x)));\\n\\tfloat abClipping = distToLine(aCoord, bCoord, bTopCoord) / dot(normalize(normalWidth * startBotJoin), normalize(normalWidth.yx * vec2(-endBotJoin.y, endBotJoin.x)));\\n\\n\\t//prevent close to reverse direction switch\\n\\tbool prevReverse = dot(currTangent, prevTangent) <= REVERSE_THRESHOLD && abs(dot(currTangent, prevNormal)) * min(length(prevDiff), length(currDiff)) < length(normalWidth * currNormal);\\n\\tbool nextReverse = dot(currTangent, nextTangent) <= REVERSE_THRESHOLD && abs(dot(currTangent, nextNormal)) * min(length(nextDiff), length(currDiff)) < length(normalWidth * currNormal);\\n\\n\\tif (prevReverse) {\\n\\t\\t//make join rectangular\\n\\t\\tvec2 miterShift = normalWidth * startJoinDirection * miterLimit * .5;\\n\\t\\tfloat normalAdjust = 1. - min(miterLimit / startMiterRatio, 1.);\\n\\t\\taBotCoord = aCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\\n\\t\\taTopCoord = aCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\\n\\t}\\n\\telse if (!nextReverse && baClipping > 0. && baClipping < length(normalWidth * endBotJoin)) {\\n\\t\\t//handle miter clipping\\n\\t\\tbTopCoord -= normalWidth * endTopJoin;\\n\\t\\tbTopCoord += normalize(endTopJoin * normalWidth) * baClipping;\\n\\t}\\n\\n\\tif (nextReverse) {\\n\\t\\t//make join rectangular\\n\\t\\tvec2 miterShift = normalWidth * endJoinDirection * miterLimit * .5;\\n\\t\\tfloat normalAdjust = 1. - min(miterLimit / endMiterRatio, 1.);\\n\\t\\tbBotCoord = bCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\\n\\t\\tbTopCoord = bCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\\n\\t}\\n\\telse if (!prevReverse && abClipping > 0. && abClipping < length(normalWidth * startBotJoin)) {\\n\\t\\t//handle miter clipping\\n\\t\\taBotCoord -= normalWidth * startBotJoin;\\n\\t\\taBotCoord += normalize(startBotJoin * normalWidth) * abClipping;\\n\\t}\\n\\n\\tvec2 aTopPosition = (aTopCoord) * adjustedScale + translate;\\n\\tvec2 aBotPosition = (aBotCoord) * adjustedScale + translate;\\n\\n\\tvec2 bTopPosition = (bTopCoord) * adjustedScale + translate;\\n\\tvec2 bBotPosition = (bBotCoord) * adjustedScale + translate;\\n\\n\\t//position is normalized 0..1 coord on the screen\\n\\tvec2 position = (aTopPosition * lineTop + aBotPosition * lineBot) * lineStart + (bTopPosition * lineTop + bBotPosition * lineBot) * lineEnd;\\n\\n\\tstartCoord = aCoord * scaleRatio + translate * viewport.zw + viewport.xy;\\n\\tendCoord = bCoord * scaleRatio + translate * viewport.zw + viewport.xy;\\n\\n\\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\\n\\n\\tenableStartMiter = step(dot(currTangent, prevTangent), .5);\\n\\tenableEndMiter = step(dot(currTangent, nextTangent), .5);\\n\\n\\t//bevel miter cutoffs\\n\\tif (miterMode == 1.) {\\n\\t\\tif (enableStartMiter == 1.) {\\n\\t\\t\\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * miterLimit * .5;\\n\\t\\t\\tstartCutoff = vec4(aCoord, aCoord);\\n\\t\\t\\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\\n\\t\\t\\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\\n\\t\\t\\tstartCutoff += viewport.xyxy;\\n\\t\\t\\tstartCutoff += startMiterWidth.xyxy;\\n\\t\\t}\\n\\n\\t\\tif (enableEndMiter == 1.) {\\n\\t\\t\\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * miterLimit * .5;\\n\\t\\t\\tendCutoff = vec4(bCoord, bCoord);\\n\\t\\t\\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x) / scaleRatio;\\n\\t\\t\\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\\n\\t\\t\\tendCutoff += viewport.xyxy;\\n\\t\\t\\tendCutoff += endMiterWidth.xyxy;\\n\\t\\t}\\n\\t}\\n\\n\\t//round miter cutoffs\\n\\telse if (miterMode == 2.) {\\n\\t\\tif (enableStartMiter == 1.) {\\n\\t\\t\\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * abs(dot(startJoinDirection, currNormal)) * .5;\\n\\t\\t\\tstartCutoff = vec4(aCoord, aCoord);\\n\\t\\t\\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\\n\\t\\t\\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\\n\\t\\t\\tstartCutoff += viewport.xyxy;\\n\\t\\t\\tstartCutoff += startMiterWidth.xyxy;\\n\\t\\t}\\n\\n\\t\\tif (enableEndMiter == 1.) {\\n\\t\\t\\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * abs(dot(endJoinDirection, currNormal)) * .5;\\n\\t\\t\\tendCutoff = vec4(bCoord, bCoord);\\n\\t\\t\\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x) / scaleRatio;\\n\\t\\t\\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\\n\\t\\t\\tendCutoff += viewport.xyxy;\\n\\t\\t\\tendCutoff += endMiterWidth.xyxy;\\n\\t\\t}\\n\\t}\\n}\\n\"]),\n\t\t\tfrag: glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nuniform float dashLength, pixelRatio, thickness, opacity, id, miterMode;\\nuniform sampler2D dashTexture;\\n\\nvarying vec4 fragColor;\\nvarying vec2 tangent;\\nvarying vec4 startCutoff, endCutoff;\\nvarying vec2 startCoord, endCoord;\\nvarying float enableStartMiter, enableEndMiter;\\n\\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\\n\\tvec2 diff = b - a;\\n\\tvec2 perp = normalize(vec2(-diff.y, diff.x));\\n\\treturn dot(p - a, perp);\\n}\\n\\nvoid main() {\\n\\tfloat alpha = 1., distToStart, distToEnd;\\n\\tfloat cutoff = thickness * .5;\\n\\n\\t//bevel miter\\n\\tif (miterMode == 1.) {\\n\\t\\tif (enableStartMiter == 1.) {\\n\\t\\t\\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\\n\\t\\t\\tif (distToStart < -1.) {\\n\\t\\t\\t\\tdiscard;\\n\\t\\t\\t\\treturn;\\n\\t\\t\\t}\\n\\t\\t\\talpha *= min(max(distToStart + 1., 0.), 1.);\\n\\t\\t}\\n\\n\\t\\tif (enableEndMiter == 1.) {\\n\\t\\t\\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\\n\\t\\t\\tif (distToEnd < -1.) {\\n\\t\\t\\t\\tdiscard;\\n\\t\\t\\t\\treturn;\\n\\t\\t\\t}\\n\\t\\t\\talpha *= min(max(distToEnd + 1., 0.), 1.);\\n\\t\\t}\\n\\t}\\n\\n\\t// round miter\\n\\telse if (miterMode == 2.) {\\n\\t\\tif (enableStartMiter == 1.) {\\n\\t\\t\\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\\n\\t\\t\\tif (distToStart < 0.) {\\n\\t\\t\\t\\tfloat radius = length(gl_FragCoord.xy - startCoord);\\n\\n\\t\\t\\t\\tif(radius > cutoff + .5) {\\n\\t\\t\\t\\t\\tdiscard;\\n\\t\\t\\t\\t\\treturn;\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\tif (enableEndMiter == 1.) {\\n\\t\\t\\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\\n\\t\\t\\tif (distToEnd < 0.) {\\n\\t\\t\\t\\tfloat radius = length(gl_FragCoord.xy - endCoord);\\n\\n\\t\\t\\t\\tif(radius > cutoff + .5) {\\n\\t\\t\\t\\t\\tdiscard;\\n\\t\\t\\t\\t\\treturn;\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n\\n\\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashLength) * .5 + .25;\\n\\tfloat dash = texture2D(dashTexture, vec2(t, .5)).r;\\n\\n\\tgl_FragColor = fragColor;\\n\\tgl_FragColor.a *= alpha * opacity * dash;\\n}\\n\"]),\n\n\t\t\tattributes: {\n\t\t\t\t// is line end\n\t\t\t\tlineEnd: {\n\t\t\t\t\tbuffer: offsetBuffer,\n\t\t\t\t\tdivisor: 0,\n\t\t\t\t\tstride: 8,\n\t\t\t\t\toffset: 0\n\t\t\t\t},\n\t\t\t\t// is line top\n\t\t\t\tlineTop: {\n\t\t\t\t\tbuffer: offsetBuffer,\n\t\t\t\t\tdivisor: 0,\n\t\t\t\t\tstride: 8,\n\t\t\t\t\toffset: 4\n\t\t\t\t},\n\t\t\t\t// left color\n\t\t\t\taColor: {\n\t\t\t\t\tbuffer: regl.prop('colorBuffer'),\n\t\t\t\t\tstride: 4,\n\t\t\t\t\toffset: 0,\n\t\t\t\t\tdivisor: 1\n\t\t\t\t},\n\t\t\t\t// right color\n\t\t\t\tbColor: {\n\t\t\t\t\tbuffer: regl.prop('colorBuffer'),\n\t\t\t\t\tstride: 4,\n\t\t\t\t\toffset: 4,\n\t\t\t\t\tdivisor: 1\n\t\t\t\t},\n\t\t\t\tprevCoord: {\n\t\t\t\t\tbuffer: regl.prop('positionBuffer'),\n\t\t\t\t\tstride: 8,\n\t\t\t\t\toffset: 0,\n\t\t\t\t\tdivisor: 1\n\t\t\t\t},\n\t\t\t\taCoord: {\n\t\t\t\t\tbuffer: regl.prop('positionBuffer'),\n\t\t\t\t\tstride: 8,\n\t\t\t\t\toffset: 8,\n\t\t\t\t\tdivisor: 1\n\t\t\t\t},\n\t\t\t\tbCoord: {\n\t\t\t\t\tbuffer: regl.prop('positionBuffer'),\n\t\t\t\t\tstride: 8,\n\t\t\t\t\toffset: 16,\n\t\t\t\t\tdivisor: 1\n\t\t\t\t},\n\t\t\t\tnextCoord: {\n\t\t\t\t\tbuffer: regl.prop('positionBuffer'),\n\t\t\t\t\tstride: 8,\n\t\t\t\t\toffset: 24,\n\t\t\t\t\tdivisor: 1\n\t\t\t\t}\n\t\t\t}\n\t\t}, shaderOptions))\n\t} catch (e) {\n\t\t// IE/bad Webkit fallback\n\t\tdrawMiterLine = drawRectLine\n\t}\n\n\t// fill shader\n\tvar drawFill = regl({\n\t\tprimitive: 'triangle',\n\t\telements: function (ctx, prop) { return prop.triangles; },\n\t\toffset: 0,\n\n\t\tvert: glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec2 position, positionFract;\\n\\nuniform vec4 color;\\nuniform vec2 scale, scaleFract, translate, translateFract;\\nuniform float pixelRatio, id;\\nuniform vec4 viewport;\\nuniform float opacity;\\n\\nvarying vec4 fragColor;\\n\\nconst float MAX_LINES = 256.;\\n\\nvoid main() {\\n\\tfloat depth = (MAX_LINES - 4. - id) / (MAX_LINES);\\n\\n\\tvec2 position = position * scale + translate\\n + positionFract * scale + translateFract\\n + position * scaleFract\\n + positionFract * scaleFract;\\n\\n\\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\\n\\n\\tfragColor = color / 255.;\\n\\tfragColor.a *= opacity;\\n}\\n\"]),\n\t\tfrag: glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n\\tgl_FragColor = fragColor;\\n}\\n\"]),\n\n\t\tuniforms: {\n\t\t\tscale: regl.prop('scale'),\n\t\t\tcolor: regl.prop('fill'),\n\t\t\tscaleFract: regl.prop('scaleFract'),\n\t\t\ttranslateFract: regl.prop('translateFract'),\n\t\t\ttranslate: regl.prop('translate'),\n\t\t\topacity: regl.prop('opacity'),\n\t\t\tpixelRatio: regl.context('pixelRatio'),\n\t\t\tid: regl.prop('id'),\n\t\t\tviewport: function (ctx, prop) { return [prop.viewport.x, prop.viewport.y, ctx.viewportWidth, ctx.viewportHeight]; }\n\t\t},\n\n\t\tattributes: {\n\t\t\tposition: {\n\t\t\t\tbuffer: regl.prop('positionBuffer'),\n\t\t\t\tstride: 8,\n\t\t\t\toffset: 8\n\t\t\t},\n\t\t\tpositionFract: {\n\t\t\t\tbuffer: regl.prop('positionFractBuffer'),\n\t\t\t\tstride: 8,\n\t\t\t\toffset: 8\n\t\t\t}\n\t\t},\n\n\t\tblend: shaderOptions.blend,\n\n\t\tdepth: { enable: false },\n\t\tscissor: shaderOptions.scissor,\n\t\tstencil: shaderOptions.stencil,\n\t\tviewport: shaderOptions.viewport\n\t})\n\n\treturn {\n\t\tfill: drawFill, rect: drawRectLine, miter: drawMiterLine\n\t}\n}\n\n\n// used to for new lines instances\nLine2D.defaults = {\n\tdashes: null,\n\tjoin: 'miter',\n\tmiterLimit: 1,\n\tthickness: 10,\n\tcap: 'square',\n\tcolor: 'black',\n\topacity: 1,\n\toverlay: false,\n\tviewport: null,\n\trange: null,\n\tclose: false,\n\tfill: null\n}\n\n\nLine2D.prototype.render = function () {\n\tvar ref;\n\n\tvar args = [], len = arguments.length;\n\twhile ( len-- ) args[ len ] = arguments[ len ];\n\tif (args.length) {\n\t\t(ref = this).update.apply(ref, args)\n\t}\n\n\tthis.draw()\n}\n\n\nLine2D.prototype.draw = function () {\n\tvar this$1 = this;\n\tvar args = [], len = arguments.length;\n\twhile ( len-- ) args[ len ] = arguments[ len ];\n\n\t// render multiple polylines via regl batch\n\t(args.length ? args : this.passes).forEach(function (s, i) {\n\t\tvar ref;\n\n\t\t// render array pass as a list of passes\n\t\tif (s && Array.isArray(s)) { return (ref = this$1).draw.apply(ref, s) }\n\n\t\tif (typeof s === 'number') { s = this$1.passes[s] }\n\n\t\tif (!(s && s.count > 1 && s.opacity)) { return }\n\n\t\tthis$1.regl._refresh()\n\n\t\tif (s.fill && s.triangles && s.triangles.length > 2) {\n\t\t\tthis$1.shaders.fill(s)\n\t\t}\n\n\t\tif (!s.thickness) { return }\n\n\t\t// high scale is only available for rect mode with precision\n\t\tif (s.scale[0] * s.viewport.width > Line2D.precisionThreshold || s.scale[1] * s.viewport.height > Line2D.precisionThreshold) {\n\t\t\tthis$1.shaders.rect(s)\n\t\t}\n\n\t\t// thin this.passes or too many points are rendered as simplified rect shader\n\t\telse if (s.join === 'rect' || (!s.join && (s.thickness <= 2 || s.count >= Line2D.maxPoints))) {\n\t\t\tthis$1.shaders.rect(s)\n\t\t}\n\t\telse {\n\t\t\tthis$1.shaders.miter(s)\n\t\t}\n\t})\n\n\treturn this\n}\n\nLine2D.prototype.update = function (options) {\n\tvar this$1 = this;\n\n\tif (!options) { return }\n\n\tif (options.length != null) {\n\t\tif (typeof options[0] === 'number') { options = [{positions: options}] }\n\t}\n\n\t// make options a batch\n\telse if (!Array.isArray(options)) { options = [options] }\n\n\tvar ref = this;\n\tvar regl = ref.regl;\n\tvar gl = ref.gl;\n\n\t// process per-line settings\n\toptions.forEach(function (o, i) {\n\t\tvar state = this$1.passes[i]\n\n\t\tif (o === undefined) { return }\n\n\t\t// null-argument removes pass\n\t\tif (o === null) {\n\t\t\tthis$1.passes[i] = null\n\t\t\treturn\n\t\t}\n\n\t\tif (typeof o[0] === 'number') { o = {positions: o} }\n\n\t\t// handle aliases\n\t\to = pick(o, {\n\t\t\tpositions: 'positions points data coords',\n\t\t\tthickness: 'thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth',\n\t\t\tjoin: 'lineJoin linejoin join type mode',\n\t\t\tmiterLimit: 'miterlimit miterLimit',\n\t\t\tdashes: 'dash dashes dasharray dash-array dashArray',\n\t\t\tcolor: 'color colour stroke colors colours stroke-color strokeColor',\n\t\t\tfill: 'fill fill-color fillColor',\n\t\t\topacity: 'alpha opacity',\n\t\t\toverlay: 'overlay crease overlap intersect',\n\t\t\tclose: 'closed close closed-path closePath',\n\t\t\trange: 'range dataBox',\n\t\t\tviewport: 'viewport viewBox',\n\t\t\thole: 'holes hole hollow',\n\t\t\tsplitNull: 'splitNull'\n\t\t})\n\n\t\t// init state\n\t\tif (!state) {\n\t\t\tthis$1.passes[i] = state = {\n\t\t\t\tid: i,\n\t\t\t\tscale: null,\n\t\t\t\tscaleFract: null,\n\t\t\t\ttranslate: null,\n\t\t\t\ttranslateFract: null,\n\t\t\t\tcount: 0,\n\t\t\t\thole: [],\n\t\t\t\tdepth: 0,\n\n\t\t\t\tdashLength: 1,\n\t\t\t\tdashTexture: regl.texture({\n\t\t\t\t\tchannels: 1,\n\t\t\t\t\tdata: new Uint8Array([255]),\n\t\t\t\t\twidth: 1,\n\t\t\t\t\theight: 1,\n\t\t\t\t\tmag: 'linear',\n\t\t\t\t\tmin: 'linear'\n\t\t\t\t}),\n\n\t\t\t\tcolorBuffer: regl.buffer({\n\t\t\t\t\tusage: 'dynamic',\n\t\t\t\t\ttype: 'uint8',\n\t\t\t\t\tdata: new Uint8Array()\n\t\t\t\t}),\n\t\t\t\tpositionBuffer: regl.buffer({\n\t\t\t\t\tusage: 'dynamic',\n\t\t\t\t\ttype: 'float',\n\t\t\t\t\tdata: new Uint8Array()\n\t\t\t\t}),\n\t\t\t\tpositionFractBuffer: regl.buffer({\n\t\t\t\t\tusage: 'dynamic',\n\t\t\t\t\ttype: 'float',\n\t\t\t\t\tdata: new Uint8Array()\n\t\t\t\t})\n\t\t\t}\n\n\t\t\to = extend({}, Line2D.defaults, o)\n\t\t}\n\t\tif (o.thickness != null) { state.thickness = parseFloat(o.thickness) }\n\t\tif (o.opacity != null) { state.opacity = parseFloat(o.opacity) }\n\t\tif (o.miterLimit != null) { state.miterLimit = parseFloat(o.miterLimit) }\n\t\tif (o.overlay != null) {\n\t\t\tstate.overlay = !!o.overlay\n\t\t\tif (i < Line2D.maxLines) {\n\t\t\t\tstate.depth = 2 * (Line2D.maxLines - 1 - i % Line2D.maxLines) / Line2D.maxLines - 1.;\n\t\t\t}\n\t\t}\n\t\tif (o.join != null) { state.join = o.join }\n\t\tif (o.hole != null) { state.hole = o.hole }\n\t\tif (o.fill != null) { state.fill = !o.fill ? null : rgba(o.fill, 'uint8') }\n\t\tif (o.viewport != null) { state.viewport = parseRect(o.viewport) }\n\n\t\tif (!state.viewport) {\n\t\t\tstate.viewport = parseRect([\n\t\t\t\tgl.drawingBufferWidth,\n\t\t\t\tgl.drawingBufferHeight\n\t\t\t])\n\t\t}\n\n\t\tif (o.close != null) { state.close = o.close }\n\n\t\t// reset positions\n\t\tif (o.positions === null) { o.positions = [] }\n\t\tif (o.positions) {\n\t\t\tvar positions, count\n\n\t\t\t// if positions are an object with x/y\n\t\t\tif (o.positions.x && o.positions.y) {\n\t\t\t\tvar xPos = o.positions.x\n\t\t\t\tvar yPos = o.positions.y\n\t\t\t\tcount = state.count = Math.max(\n\t\t\t\t\txPos.length,\n\t\t\t\t\tyPos.length\n\t\t\t\t)\n\t\t\t\tpositions = new Float64Array(count * 2)\n\t\t\t\tfor (var i$1 = 0; i$1 < count; i$1++) {\n\t\t\t\t\tpositions[i$1 * 2] = xPos[i$1]\n\t\t\t\t\tpositions[i$1 * 2 + 1] = yPos[i$1]\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpositions = flatten(o.positions, 'float64')\n\t\t\t\tcount = state.count = Math.floor(positions.length / 2)\n\t\t\t}\n\n\t\t\tvar bounds = state.bounds = getBounds(positions, 2)\n\n\t\t\t// create fill positions\n\t\t\t// FIXME: fill positions can be set only along with positions\n\t\t\tif (state.fill) {\n\t\t\t\tvar pos = []\n\n\t\t\t\t// filter bad vertices and remap triangles to ensure shape\n\t\t\t\tvar ids = {}\n\t\t\t\tvar lastId = 0\n\n\t\t\t\tfor (var i$2 = 0, ptr = 0, l = state.count; i$2 < l; i$2++) {\n\t\t\t\t\tvar x = positions[i$2*2]\n\t\t\t\t\tvar y = positions[i$2*2 + 1]\n\t\t\t\t\tif (isNaN(x) || isNaN(y) || x == null || y == null) {\n\t\t\t\t\t\tx = positions[lastId*2]\n\t\t\t\t\t\ty = positions[lastId*2 + 1]\n\t\t\t\t\t\tids[i$2] = lastId\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tlastId = i$2\n\t\t\t\t\t}\n\t\t\t\t\tpos[ptr++] = x\n\t\t\t\t\tpos[ptr++] = y\n\t\t\t\t}\n\n\t\t\t\t// split the input into multiple polygon at Null/NaN\n\t\t\t\tif(o.splitNull){\n\t\t\t\t\t// use \"ids\" to track the boundary of segment\n\t\t\t\t\t// the keys in \"ids\" is the end boundary of a segment, or split point\n\n\t\t\t\t\t// make sure there is at least one segment\n\t\t\t\t\tif(!(state.count-1 in ids)) { ids[state.count] = state.count-1 }\n\n\t\t\t\t\tvar splits = Object.keys(ids).map(Number).sort(function (a, b) { return a - b; })\n\n\t\t\t\t\tvar split_triangles = []\n\t\t\t\t\tvar base = 0\n\n\t\t\t\t\t// do not split holes\n\t\t\t\t\tvar hole_base = state.hole != null ? state.hole[0] : null\n\t\t\t\t\tif(hole_base != null){\n\t\t\t\t\t\tvar last_id = findIndex(splits, function (e){ return e>=hole_base; })\n\t\t\t\t\t\tsplits = splits.slice(0,last_id)\n\t\t\t\t\t\tsplits.push(hole_base)\n\t\t\t\t\t}\n\n\t\t\t\t\tvar loop = function ( i ) {\n\t\t\t\t\t\t// create temporary pos array with only one segment and all the holes\n\t\t\t\t\t\tvar seg_pos = pos.slice(base*2, splits[i]*2).concat(\n\t\t\t\t\t\t\thole_base ? pos.slice(hole_base*2) : []\n\t\t\t\t\t\t)\n\t\t\t\t\t\tvar hole = (state.hole || []).map(function (e) { return e-hole_base+(splits[i]-base); } )\n\t\t\t\t\t\tvar triangles = triangulate(seg_pos, hole)\n\t\t\t\t\t\t// map triangle index back to the original pos buffer\n\t\t\t\t\t\ttriangles = triangles.map(\n\t\t\t\t\t\t\tfunction (e){ return e + base + ((e + base < splits[i]) ? 0 : hole_base - splits[i]); }\n\t\t\t\t\t\t)\n\t\t\t\t\t\tsplit_triangles.push.apply(split_triangles, triangles)\n\n\t\t\t\t\t\t// skip split point\n\t\t\t\t\t\tbase = splits[i] + 1\n\t\t\t\t\t};\n\n\t\t\t\t\tfor (var i$3 = 0; i$3 < splits.length; i$3++)\n\t\t\t\t\tloop( i$3 );\n\t\t\t\t\tfor (var i$4 = 0, l$1 = split_triangles.length; i$4 < l$1; i$4++) {\n\t\t\t\t\t\tif (ids[split_triangles[i$4]] != null) { split_triangles[i$4] = ids[split_triangles[i$4]] }\n\t\t\t\t\t}\n\n\t\t\t\t\tstate.triangles = split_triangles\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// treat the wholw input as a single polygon\n\t\t\t\t\tvar triangles$1 = triangulate(pos, state.hole || [])\n\n\t\t\t\t\tfor (var i$5 = 0, l$2 = triangles$1.length; i$5 < l$2; i$5++) {\n\t\t\t\t\t\tif (ids[triangles$1[i$5]] != null) { triangles$1[i$5] = ids[triangles$1[i$5]] }\n\t\t\t\t\t}\n\n\t\t\t\t\tstate.triangles = triangles$1\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// update position buffers\n\t\t\tvar npos = new Float64Array(positions)\n\t\t\tnormalize(npos, 2, bounds)\n\n\t\t\tvar positionData = new Float64Array(count * 2 + 6)\n\n\t\t\t// rotate first segment join\n\t\t\tif (state.close) {\n\t\t\t\tif (positions[0] === positions[count*2 - 2] &&\n\t\t\t\t\tpositions[1] === positions[count*2 - 1]) {\n\t\t\t\t\tpositionData[0] = npos[count*2 - 4]\n\t\t\t\t\tpositionData[1] = npos[count*2 - 3]\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpositionData[0] = npos[count*2 - 2]\n\t\t\t\t\tpositionData[1] = npos[count*2 - 1]\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpositionData[0] = npos[0]\n\t\t\t\tpositionData[1] = npos[1]\n\t\t\t}\n\n\t\t\tpositionData.set(npos, 2)\n\n\t\t\t// add last segment\n\t\t\tif (state.close) {\n\t\t\t\t// ignore coinciding start/end\n\t\t\t\tif (positions[0] === positions[count*2 - 2] &&\n\t\t\t\t\tpositions[1] === positions[count*2 - 1]) {\n\t\t\t\t\tpositionData[count*2 + 2] = npos[2]\n\t\t\t\t\tpositionData[count*2 + 3] = npos[3]\n\t\t\t\t\tstate.count -= 1\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpositionData[count*2 + 2] = npos[0]\n\t\t\t\t\tpositionData[count*2 + 3] = npos[1]\n\t\t\t\t\tpositionData[count*2 + 4] = npos[2]\n\t\t\t\t\tpositionData[count*2 + 5] = npos[3]\n\t\t\t\t}\n\t\t\t}\n\t\t\t// add stub\n\t\t\telse {\n\t\t\t\tpositionData[count*2 + 2] = npos[count*2 - 2]\n\t\t\t\tpositionData[count*2 + 3] = npos[count*2 - 1]\n\t\t\t\tpositionData[count*2 + 4] = npos[count*2 - 2]\n\t\t\t\tpositionData[count*2 + 5] = npos[count*2 - 1]\n\t\t\t}\n\n\t\t\tvar float_data = float32(positionData)\n\t\t\tstate.positionBuffer(float_data)\n\t\t\tvar frac_data = fract32(positionData, float_data)\n\t\t\tstate.positionFractBuffer(frac_data)\n\t\t}\n\n\t\tif (o.range) {\n\t\t\tstate.range = o.range\n\t\t} else if (!state.range) {\n\t\t\tstate.range = state.bounds\n\t\t}\n\n\t\tif ((o.range || o.positions) && state.count) {\n\t\t\tvar bounds$1 = state.bounds\n\n\t\t\tvar boundsW = bounds$1[2] - bounds$1[0],\n\t\t\t\tboundsH = bounds$1[3] - bounds$1[1]\n\n\t\t\tvar rangeW = state.range[2] - state.range[0],\n\t\t\t\trangeH = state.range[3] - state.range[1]\n\n\t\t\tstate.scale = [\n\t\t\t\tboundsW / rangeW,\n\t\t\t\tboundsH / rangeH\n\t\t\t]\n\t\t\tstate.translate = [\n\t\t\t\t-state.range[0] / rangeW + bounds$1[0] / rangeW || 0,\n\t\t\t\t-state.range[1] / rangeH + bounds$1[1] / rangeH || 0\n\t\t\t]\n\n\t\t\tstate.scaleFract = fract32(state.scale)\n\t\t\tstate.translateFract = fract32(state.translate)\n\t\t}\n\n\t\tif (o.dashes) {\n\t\t\tvar dashLength = 0., dashData\n\n\t\t\tif (!o.dashes || o.dashes.length < 2) {\n\t\t\t\tdashLength = 1.\n\t\t\t\tdashData = new Uint8Array([255, 255, 255, 255, 255, 255, 255, 255])\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\tdashLength = 0.;\n\t\t\t\tfor(var i$6 = 0; i$6 < o.dashes.length; ++i$6) {\n\t\t\t\t\tdashLength += o.dashes[i$6]\n\t\t\t\t}\n\t\t\t\tdashData = new Uint8Array(dashLength * Line2D.dashMult)\n\t\t\t\tvar ptr$1 = 0\n\t\t\t\tvar fillColor = 255\n\n\t\t\t\t// repeat texture two times to provide smooth 0-step\n\t\t\t\tfor (var k = 0; k < 2; k++) {\n\t\t\t\t\tfor(var i$7 = 0; i$7 < o.dashes.length; ++i$7) {\n\t\t\t\t\t\tfor(var j = 0, l$3 = o.dashes[i$7] * Line2D.dashMult * .5; j < l$3; ++j) {\n\t\t\t\t\t\t\tdashData[ptr$1++] = fillColor\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfillColor ^= 255\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tstate.dashLength = dashLength\n\t\t\tstate.dashTexture({\n\t\t\t\tchannels: 1,\n\t\t\t\tdata: dashData,\n\t\t\t\twidth: dashData.length,\n\t\t\t\theight: 1,\n\t\t\t\tmag: 'linear',\n\t\t\t\tmin: 'linear'\n\t\t\t}, 0, 0)\n\t\t}\n\n\t\tif (o.color) {\n\t\t\tvar count$1 = state.count\n\t\t\tvar colors = o.color\n\n\t\t\tif (!colors) { colors = 'transparent' }\n\n\t\t\tvar colorData = new Uint8Array(count$1 * 4 + 4)\n\n\t\t\t// convert colors to typed arrays\n\t\t\tif (!Array.isArray(colors) || typeof colors[0] === 'number') {\n\t\t\t\tvar c = rgba(colors, 'uint8')\n\n\t\t\t\tfor (var i$8 = 0; i$8 < count$1 + 1; i$8++) {\n\t\t\t\t\tcolorData.set(c, i$8 * 4)\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor (var i$9 = 0; i$9 < count$1; i$9++) {\n\t\t\t\t\tvar c$1 = rgba(colors[i$9], 'uint8')\n\t\t\t\t\tcolorData.set(c$1, i$9 * 4)\n\t\t\t\t}\n\t\t\t\tcolorData.set(rgba(colors[0], 'uint8'), count$1 * 4)\n\t\t\t}\n\n\t\t\tstate.colorBuffer({\n\t\t\t\tusage: 'dynamic',\n\t\t\t\ttype: 'uint8',\n\t\t\t\tdata: colorData\n\t\t\t})\n\t\t}\n\t})\n\n\t// remove unmentioned passes\n\tif (options.length < this.passes.length) {\n\t\tfor (var i = options.length; i < this.passes.length; i++) {\n\t\t\tvar pass = this.passes[i]\n\t\t\tif (!pass) { continue }\n\t\t\tpass.colorBuffer.destroy()\n\t\t\tpass.positionBuffer.destroy()\n\t\t\tpass.dashTexture.destroy()\n\t\t}\n\t\tthis.passes.length = options.length\n\t}\n\n\t// remove null items\n\tvar passes = []\n\tfor (var i$1 = 0; i$1 < this.passes.length; i$1++) {\n\t\tif (this.passes[i$1] !== null) { passes.push(this.passes[i$1]) }\n\t}\n\tthis.passes = passes\n\n\treturn this\n}\n\nLine2D.prototype.destroy = function () {\n\tthis.passes.forEach(function (pass) {\n\t\tpass.colorBuffer.destroy()\n\t\tpass.positionBuffer.destroy()\n\t\tpass.dashTexture.destroy()\n\t})\n\n\tthis.passes.length = 0\n\n\treturn this\n}\n\n},{\"array-bounds\":71,\"array-find-index\":72,\"array-normalize\":73,\"color-normalize\":89,\"earcut\":129,\"es6-weak-map\":183,\"flatten-vertex-data\":191,\"glslify\":227,\"object-assign\":247,\"parse-rect\":249,\"pick-by-alias\":253,\"to-float32\":313}],281:[function(_dereq_,module,exports){\n'use strict';\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n\n var _s, _e;\n\n try {\n for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nvar rgba = _dereq_('color-normalize');\n\nvar getBounds = _dereq_('array-bounds');\n\nvar colorId = _dereq_('color-id');\n\nvar cluster = _dereq_('@plotly/point-cluster');\n\nvar extend = _dereq_('object-assign');\n\nvar glslify = _dereq_('glslify');\n\nvar pick = _dereq_('pick-by-alias');\n\nvar updateDiff = _dereq_('update-diff');\n\nvar flatten = _dereq_('flatten-vertex-data');\n\nvar ie = _dereq_('is-iexplorer');\n\nvar f32 = _dereq_('to-float32');\n\nvar parseRect = _dereq_('parse-rect');\n\nvar scatter = Scatter;\n\nfunction Scatter(regl, options) {\n var _this = this;\n\n if (!(this instanceof Scatter)) return new Scatter(regl, options);\n\n if (typeof regl === 'function') {\n if (!options) options = {};\n options.regl = regl;\n } else {\n options = regl;\n regl = null;\n }\n\n if (options && options.length) options.positions = options;\n regl = options.regl; // persistent variables\n\n var gl = regl._gl,\n paletteTexture,\n palette = [],\n paletteIds = {},\n // state\n groups = [],\n // textures for marker keys\n markerTextures = [null],\n markerCache = [null];\n var maxColors = 255,\n maxSize = 100; // direct color buffer mode\n // IE does not support palette anyways\n\n this.tooManyColors = ie; // texture with color palette\n\n paletteTexture = regl.texture({\n data: new Uint8Array(maxColors * 4),\n width: maxColors,\n height: 1,\n type: 'uint8',\n format: 'rgba',\n wrapS: 'clamp',\n wrapT: 'clamp',\n mag: 'nearest',\n min: 'nearest'\n });\n extend(this, {\n regl: regl,\n gl: gl,\n groups: groups,\n markerCache: markerCache,\n markerTextures: markerTextures,\n palette: palette,\n paletteIds: paletteIds,\n paletteTexture: paletteTexture,\n maxColors: maxColors,\n maxSize: maxSize,\n canvas: gl.canvas\n });\n this.update(options); // common shader options\n\n var shaderOptions = {\n uniforms: {\n constPointSize: !!options.constPointSize,\n opacity: regl.prop('opacity'),\n paletteSize: function paletteSize(ctx, prop) {\n return [_this.tooManyColors ? 0 : maxColors, paletteTexture.height];\n },\n pixelRatio: regl.context('pixelRatio'),\n scale: regl.prop('scale'),\n scaleFract: regl.prop('scaleFract'),\n translate: regl.prop('translate'),\n translateFract: regl.prop('translateFract'),\n markerTexture: regl.prop('markerTexture'),\n paletteTexture: paletteTexture\n },\n attributes: {\n // FIXME: optimize these parts\n x: function x(ctx, prop) {\n return prop.xAttr || {\n buffer: prop.positionBuffer,\n stride: 8,\n offset: 0\n };\n },\n y: function y(ctx, prop) {\n return prop.yAttr || {\n buffer: prop.positionBuffer,\n stride: 8,\n offset: 4\n };\n },\n xFract: function xFract(ctx, prop) {\n return prop.xAttr ? {\n constant: [0, 0]\n } : {\n buffer: prop.positionFractBuffer,\n stride: 8,\n offset: 0\n };\n },\n yFract: function yFract(ctx, prop) {\n return prop.yAttr ? {\n constant: [0, 0]\n } : {\n buffer: prop.positionFractBuffer,\n stride: 8,\n offset: 4\n };\n },\n size: function size(ctx, prop) {\n return prop.size.length ? {\n buffer: prop.sizeBuffer,\n stride: 2,\n offset: 0\n } : {\n constant: [Math.round(prop.size * 255 / _this.maxSize)]\n };\n },\n borderSize: function borderSize(ctx, prop) {\n return prop.borderSize.length ? {\n buffer: prop.sizeBuffer,\n stride: 2,\n offset: 1\n } : {\n constant: [Math.round(prop.borderSize * 255 / _this.maxSize)]\n };\n },\n colorId: function colorId(ctx, prop) {\n return prop.color.length ? {\n buffer: prop.colorBuffer,\n stride: _this.tooManyColors ? 8 : 4,\n offset: 0\n } : {\n constant: _this.tooManyColors ? palette.slice(prop.color * 4, prop.color * 4 + 4) : [prop.color]\n };\n },\n borderColorId: function borderColorId(ctx, prop) {\n return prop.borderColor.length ? {\n buffer: prop.colorBuffer,\n stride: _this.tooManyColors ? 8 : 4,\n offset: _this.tooManyColors ? 4 : 2\n } : {\n constant: _this.tooManyColors ? palette.slice(prop.borderColor * 4, prop.borderColor * 4 + 4) : [prop.borderColor]\n };\n },\n isActive: function isActive(ctx, prop) {\n return prop.activation === true ? {\n constant: [1]\n } : prop.activation ? prop.activation : {\n constant: [0]\n };\n }\n },\n blend: {\n enable: true,\n color: [0, 0, 0, 1],\n // photoshop blending\n func: {\n srcRGB: 'src alpha',\n dstRGB: 'one minus src alpha',\n srcAlpha: 'one minus dst alpha',\n dstAlpha: 'one'\n }\n },\n scissor: {\n enable: true,\n box: regl.prop('viewport')\n },\n viewport: regl.prop('viewport'),\n stencil: {\n enable: false\n },\n depth: {\n enable: false\n },\n elements: regl.prop('elements'),\n count: regl.prop('count'),\n offset: regl.prop('offset'),\n primitive: 'points'\n }; // draw sdf-marker\n\n var markerOptions = extend({}, shaderOptions);\n markerOptions.frag = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nuniform float opacity;\\nuniform sampler2D markerTexture;\\n\\nvarying vec4 fragColor, fragBorderColor;\\nvarying float fragWidth, fragBorderColorLevel, fragColorLevel;\\n\\nfloat smoothStep(float x, float y) {\\n return 1.0 / (1.0 + exp(50.0*(x - y)));\\n}\\n\\nvoid main() {\\n float dist = texture2D(markerTexture, gl_PointCoord).r, delta = fragWidth;\\n\\n // max-distance alpha\\n if (dist < 0.003) discard;\\n\\n // null-border case\\n if (fragBorderColorLevel == fragColorLevel || fragBorderColor.a == 0.) {\\n float colorAmt = smoothstep(.5 - delta, .5 + delta, dist);\\n gl_FragColor = vec4(fragColor.rgb, colorAmt * fragColor.a * opacity);\\n }\\n else {\\n float borderColorAmt = smoothstep(fragBorderColorLevel - delta, fragBorderColorLevel + delta, dist);\\n float colorAmt = smoothstep(fragColorLevel - delta, fragColorLevel + delta, dist);\\n\\n vec4 color = fragBorderColor;\\n color.a *= borderColorAmt;\\n color = mix(color, fragColor, colorAmt);\\n color.a *= opacity;\\n\\n gl_FragColor = color;\\n }\\n\\n}\\n\"]);\n markerOptions.vert = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute float x, y, xFract, yFract;\\nattribute float size, borderSize;\\nattribute vec4 colorId, borderColorId;\\nattribute float isActive;\\n\\nuniform bool constPointSize;\\nuniform float pixelRatio;\\nuniform vec2 scale, scaleFract, translate, translateFract, paletteSize;\\nuniform sampler2D paletteTexture;\\n\\nconst float maxSize = 100.;\\nconst float borderLevel = .5;\\n\\nvarying vec4 fragColor, fragBorderColor;\\nvarying float fragPointSize, fragBorderRadius, fragWidth, fragBorderColorLevel, fragColorLevel;\\n\\nfloat pointSizeScale = (constPointSize) ? 2. : pixelRatio;\\n\\nbool isDirect = (paletteSize.x < 1.);\\n\\nvec4 getColor(vec4 id) {\\n return isDirect ? id / 255. : texture2D(paletteTexture,\\n vec2(\\n (id.x + .5) / paletteSize.x,\\n (id.y + .5) / paletteSize.y\\n )\\n );\\n}\\n\\nvoid main() {\\n // ignore inactive points\\n if (isActive == 0.) return;\\n\\n vec2 position = vec2(x, y);\\n vec2 positionFract = vec2(xFract, yFract);\\n\\n vec4 color = getColor(colorId);\\n vec4 borderColor = getColor(borderColorId);\\n\\n float size = size * maxSize / 255.;\\n float borderSize = borderSize * maxSize / 255.;\\n\\n gl_PointSize = 2. * size * pointSizeScale;\\n fragPointSize = size * pixelRatio;\\n\\n vec2 pos = (position + translate) * scale\\n + (positionFract + translateFract) * scale\\n + (position + translate) * scaleFract\\n + (positionFract + translateFract) * scaleFract;\\n\\n gl_Position = vec4(pos * 2. - 1., 0., 1.);\\n\\n fragColor = color;\\n fragBorderColor = borderColor;\\n fragWidth = 1. / gl_PointSize;\\n\\n fragBorderColorLevel = clamp(borderLevel - borderLevel * borderSize / size, 0., 1.);\\n fragColorLevel = clamp(borderLevel + (1. - borderLevel) * borderSize / size, 0., 1.);\\n}\"]);\n this.drawMarker = regl(markerOptions); // draw circle\n\n var circleOptions = extend({}, shaderOptions);\n circleOptions.frag = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nvarying vec4 fragColor, fragBorderColor;\\nvarying float fragBorderRadius, fragWidth;\\n\\nuniform float opacity;\\n\\nfloat smoothStep(float edge0, float edge1, float x) {\\n\\tfloat t;\\n\\tt = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);\\n\\treturn t * t * (3.0 - 2.0 * t);\\n}\\n\\nvoid main() {\\n\\tfloat radius, alpha = 1.0, delta = fragWidth;\\n\\n\\tradius = length(2.0 * gl_PointCoord.xy - 1.0);\\n\\n\\tif (radius > 1.0 + delta) {\\n\\t\\tdiscard;\\n\\t}\\n\\n\\talpha -= smoothstep(1.0 - delta, 1.0 + delta, radius);\\n\\n\\tfloat borderRadius = fragBorderRadius;\\n\\tfloat ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius);\\n\\tvec4 color = mix(fragColor, fragBorderColor, ratio);\\n\\tcolor.a *= alpha * opacity;\\n\\tgl_FragColor = color;\\n}\\n\"]);\n circleOptions.vert = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute float x, y, xFract, yFract;\\nattribute float size, borderSize;\\nattribute vec4 colorId, borderColorId;\\nattribute float isActive;\\n\\nuniform bool constPointSize;\\nuniform float pixelRatio;\\nuniform vec2 paletteSize, scale, scaleFract, translate, translateFract;\\nuniform sampler2D paletteTexture;\\n\\nconst float maxSize = 100.;\\n\\nvarying vec4 fragColor, fragBorderColor;\\nvarying float fragBorderRadius, fragWidth;\\n\\nfloat pointSizeScale = (constPointSize) ? 2. : pixelRatio;\\n\\nbool isDirect = (paletteSize.x < 1.);\\n\\nvec4 getColor(vec4 id) {\\n return isDirect ? id / 255. : texture2D(paletteTexture,\\n vec2(\\n (id.x + .5) / paletteSize.x,\\n (id.y + .5) / paletteSize.y\\n )\\n );\\n}\\n\\nvoid main() {\\n // ignore inactive points\\n if (isActive == 0.) return;\\n\\n vec2 position = vec2(x, y);\\n vec2 positionFract = vec2(xFract, yFract);\\n\\n vec4 color = getColor(colorId);\\n vec4 borderColor = getColor(borderColorId);\\n\\n float size = size * maxSize / 255.;\\n float borderSize = borderSize * maxSize / 255.;\\n\\n gl_PointSize = (size + borderSize) * pointSizeScale;\\n\\n vec2 pos = (position + translate) * scale\\n + (positionFract + translateFract) * scale\\n + (position + translate) * scaleFract\\n + (positionFract + translateFract) * scaleFract;\\n\\n gl_Position = vec4(pos * 2. - 1., 0., 1.);\\n\\n fragBorderRadius = 1. - 2. * borderSize / (size + borderSize);\\n fragColor = color;\\n fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;\\n fragWidth = 1. / gl_PointSize;\\n}\\n\"]); // polyfill IE\n\n if (ie) {\n circleOptions.frag = circleOptions.frag.replace('smoothstep', 'smoothStep');\n markerOptions.frag = markerOptions.frag.replace('smoothstep', 'smoothStep');\n }\n\n this.drawCircle = regl(circleOptions);\n} // single pass defaults\n\n\nScatter.defaults = {\n color: 'black',\n borderColor: 'transparent',\n borderSize: 0,\n size: 12,\n opacity: 1,\n marker: undefined,\n viewport: null,\n range: null,\n pixelSize: null,\n count: 0,\n offset: 0,\n bounds: null,\n positions: [],\n snap: 1e4\n}; // update & redraw\n\nScatter.prototype.render = function () {\n if (arguments.length) {\n this.update.apply(this, arguments);\n }\n\n this.draw();\n return this;\n}; // draw all groups or only indicated ones\n\n\nScatter.prototype.draw = function () {\n var _this2 = this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var groups = this.groups; // if directly array passed - treat as passes\n\n if (args.length === 1 && Array.isArray(args[0]) && (args[0][0] === null || Array.isArray(args[0][0]))) {\n args = args[0];\n } // FIXME: remove once https://github.com/regl-project/regl/issues/474 resolved\n\n\n this.regl._refresh();\n\n if (args.length) {\n for (var i = 0; i < args.length; i++) {\n this.drawItem(i, args[i]);\n }\n } // draw all passes\n else {\n groups.forEach(function (group, i) {\n _this2.drawItem(i);\n });\n }\n\n return this;\n}; // draw specific scatter group\n\n\nScatter.prototype.drawItem = function (id, els) {\n var groups = this.groups;\n var group = groups[id]; // debug viewport\n // let { viewport } = group\n // gl.enable(gl.SCISSOR_TEST);\n // gl.scissor(viewport.x, viewport.y, viewport.width, viewport.height);\n // gl.clearColor(0, 0, 0, .5);\n // gl.clear(gl.COLOR_BUFFER_BIT);\n\n if (typeof els === 'number') {\n id = els;\n group = groups[els];\n els = null;\n }\n\n if (!(group && group.count && group.opacity)) return; // draw circles\n\n if (group.activation[0]) {\n // TODO: optimize this performance by making groups and regl.this props\n this.drawCircle(this.getMarkerDrawOptions(0, group, els));\n } // draw all other available markers\n\n\n var batch = [];\n\n for (var i = 1; i < group.activation.length; i++) {\n if (!group.activation[i] || group.activation[i] !== true && !group.activation[i].data.length) continue;\n batch.push.apply(batch, _toConsumableArray(this.getMarkerDrawOptions(i, group, els)));\n }\n\n if (batch.length) {\n this.drawMarker(batch);\n }\n}; // get options for the marker ids\n\n\nScatter.prototype.getMarkerDrawOptions = function (markerId, group, elements) {\n var range = group.range,\n tree = group.tree,\n viewport = group.viewport,\n activation = group.activation,\n selectionBuffer = group.selectionBuffer,\n count = group.count;\n var regl = this.regl; // direct points\n\n if (!tree) {\n // if elements array - draw unclustered points\n if (elements) {\n return [extend({}, group, {\n markerTexture: this.markerTextures[markerId],\n activation: activation[markerId],\n count: elements.length,\n elements: elements,\n offset: 0\n })];\n }\n\n return [extend({}, group, {\n markerTexture: this.markerTextures[markerId],\n activation: activation[markerId],\n offset: 0\n })];\n } // clustered points\n\n\n var batch = [];\n var lod = tree.range(range, {\n lod: true,\n px: [(range[2] - range[0]) / viewport.width, (range[3] - range[1]) / viewport.height]\n }); // enable elements by using selection buffer\n\n if (elements) {\n var markerActivation = activation[markerId];\n var mask = markerActivation.data;\n var data = new Uint8Array(count);\n\n for (var i = 0; i < elements.length; i++) {\n var id = elements[i];\n data[id] = mask ? mask[id] : 1;\n }\n\n selectionBuffer.subdata(data);\n }\n\n for (var l = lod.length; l--;) {\n var _lod$l = _slicedToArray(lod[l], 2),\n from = _lod$l[0],\n to = _lod$l[1];\n\n batch.push(extend({}, group, {\n markerTexture: this.markerTextures[markerId],\n activation: elements ? selectionBuffer : activation[markerId],\n offset: from,\n count: to - from\n }));\n }\n\n return batch;\n}; // update groups options\n\n\nScatter.prototype.update = function () {\n var _this3 = this;\n\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n if (!args.length) return; // passes are as single array\n\n if (args.length === 1 && Array.isArray(args[0])) args = args[0];\n var groups = this.groups,\n gl = this.gl,\n regl = this.regl,\n maxSize = this.maxSize,\n maxColors = this.maxColors,\n palette = this.palette;\n this.groups = groups = args.map(function (options, i) {\n var group = groups[i];\n if (options === undefined) return group;\n if (options === null) options = {\n positions: null\n };else if (typeof options === 'function') options = {\n ondraw: options\n };else if (typeof options[0] === 'number') options = {\n positions: options\n }; // copy options to avoid mutation & handle aliases\n\n options = pick(options, {\n positions: 'positions data points',\n snap: 'snap cluster lod tree',\n size: 'sizes size radius',\n borderSize: 'borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline',\n color: 'colors color fill fill-color fillColor',\n borderColor: 'borderColors borderColor stroke stroke-color strokeColor',\n marker: 'markers marker shape',\n range: 'range dataBox databox',\n viewport: 'viewport viewPort viewBox viewbox',\n opacity: 'opacity alpha transparency',\n bounds: 'bound bounds boundaries limits',\n tooManyColors: 'tooManyColors palette paletteMode optimizePalette enablePalette'\n });\n if (options.positions === null) options.positions = [];\n if (options.tooManyColors != null) _this3.tooManyColors = options.tooManyColors;\n\n if (!group) {\n groups[i] = group = {\n id: i,\n scale: null,\n translate: null,\n scaleFract: null,\n translateFract: null,\n // buffers for active markers\n activation: [],\n // buffer for filtered markers\n selectionBuffer: regl.buffer({\n data: new Uint8Array(0),\n usage: 'stream',\n type: 'uint8'\n }),\n // buffers with data: it is faster to switch them per-pass\n // than provide one congregate buffer\n sizeBuffer: regl.buffer({\n data: new Uint8Array(0),\n usage: 'dynamic',\n type: 'uint8'\n }),\n colorBuffer: regl.buffer({\n data: new Uint8Array(0),\n usage: 'dynamic',\n type: 'uint8'\n }),\n positionBuffer: regl.buffer({\n data: new Uint8Array(0),\n usage: 'dynamic',\n type: 'float'\n }),\n positionFractBuffer: regl.buffer({\n data: new Uint8Array(0),\n usage: 'dynamic',\n type: 'float'\n })\n };\n options = extend({}, Scatter.defaults, options);\n } // force update triggers\n\n\n if (options.positions && !('marker' in options)) {\n options.marker = group.marker;\n delete group.marker;\n } // updating markers cause recalculating snapping\n\n\n if (options.marker && !('positions' in options)) {\n options.positions = group.positions;\n delete group.positions;\n } // global count of points\n\n\n var hasSize = 0,\n hasColor = 0;\n updateDiff(group, options, [{\n snap: true,\n size: function size(s, group) {\n if (s == null) s = Scatter.defaults.size;\n hasSize += s && s.length ? 1 : 0;\n return s;\n },\n borderSize: function borderSize(s, group) {\n if (s == null) s = Scatter.defaults.borderSize;\n hasSize += s && s.length ? 1 : 0;\n return s;\n },\n opacity: parseFloat,\n // add colors to palette, save references\n color: function color(c, group) {\n if (c == null) c = Scatter.defaults.color;\n c = _this3.updateColor(c);\n hasColor++;\n return c;\n },\n borderColor: function borderColor(c, group) {\n if (c == null) c = Scatter.defaults.borderColor;\n c = _this3.updateColor(c);\n hasColor++;\n return c;\n },\n bounds: function bounds(_bounds, group, options) {\n if (!('range' in options)) options.range = null;\n return _bounds;\n },\n positions: function positions(_positions, group, options) {\n var snap = group.snap;\n var positionBuffer = group.positionBuffer,\n positionFractBuffer = group.positionFractBuffer,\n selectionBuffer = group.selectionBuffer; // separate buffers for x/y coordinates\n\n if (_positions.x || _positions.y) {\n if (_positions.x.length) {\n group.xAttr = {\n buffer: regl.buffer(_positions.x),\n offset: 0,\n stride: 4,\n count: _positions.x.length\n };\n } else {\n group.xAttr = {\n buffer: _positions.x.buffer,\n offset: _positions.x.offset * 4 || 0,\n stride: (_positions.x.stride || 1) * 4,\n count: _positions.x.count\n };\n }\n\n if (_positions.y.length) {\n group.yAttr = {\n buffer: regl.buffer(_positions.y),\n offset: 0,\n stride: 4,\n count: _positions.y.length\n };\n } else {\n group.yAttr = {\n buffer: _positions.y.buffer,\n offset: _positions.y.offset * 4 || 0,\n stride: (_positions.y.stride || 1) * 4,\n count: _positions.y.count\n };\n }\n\n group.count = Math.max(group.xAttr.count, group.yAttr.count);\n return _positions;\n }\n\n _positions = flatten(_positions, 'float64');\n var count = group.count = Math.floor(_positions.length / 2);\n var bounds = group.bounds = count ? getBounds(_positions, 2) : null; // if range is not provided updated - recalc it\n\n if (!options.range && !group.range) {\n delete group.range;\n options.range = bounds;\n } // reset marker\n\n\n if (!options.marker && !group.marker) {\n delete group.marker;\n options.marker = null;\n } // build cluster tree if required\n\n\n if (snap && (snap === true || count > snap)) {\n group.tree = cluster(_positions, {\n bounds: bounds\n });\n } // existing tree instance\n else if (snap && snap.length) {\n group.tree = snap;\n }\n\n if (group.tree) {\n var opts = {\n primitive: 'points',\n usage: 'static',\n data: group.tree,\n type: 'uint32'\n };\n if (group.elements) group.elements(opts);else group.elements = regl.elements(opts);\n } // update position buffers\n\n\n var float_data = f32.float32(_positions);\n positionBuffer({\n data: float_data,\n usage: 'dynamic'\n });\n var frac_data = f32.fract32(_positions, float_data);\n positionFractBuffer({\n data: frac_data,\n usage: 'dynamic'\n }); // expand selectionBuffer\n\n selectionBuffer({\n data: new Uint8Array(count),\n type: 'uint8',\n usage: 'stream'\n });\n return _positions;\n }\n }, {\n // create marker ids corresponding to known marker textures\n marker: function marker(markers, group, options) {\n var activation = group.activation; // reset marker elements\n\n activation.forEach(function (buffer) {\n return buffer && buffer.destroy && buffer.destroy();\n });\n activation.length = 0; // single sdf marker\n\n if (!markers || typeof markers[0] === 'number') {\n var id = _this3.addMarker(markers);\n\n activation[id] = true;\n } // per-point markers use mask buffers to enable markers in vert shader\n else {\n var markerMasks = [];\n\n for (var _i = 0, l = Math.min(markers.length, group.count); _i < l; _i++) {\n var _id = _this3.addMarker(markers[_i]);\n\n if (!markerMasks[_id]) markerMasks[_id] = new Uint8Array(group.count); // enable marker by default\n\n markerMasks[_id][_i] = 1;\n }\n\n for (var _id2 = 0; _id2 < markerMasks.length; _id2++) {\n if (!markerMasks[_id2]) continue;\n var opts = {\n data: markerMasks[_id2],\n type: 'uint8',\n usage: 'static'\n };\n\n if (!activation[_id2]) {\n activation[_id2] = regl.buffer(opts);\n } else {\n activation[_id2](opts);\n }\n\n activation[_id2].data = markerMasks[_id2];\n }\n }\n\n return markers;\n },\n range: function range(_range, group, options) {\n var bounds = group.bounds; // FIXME: why do we need this?\n\n if (!bounds) return;\n if (!_range) _range = bounds;\n group.scale = [1 / (_range[2] - _range[0]), 1 / (_range[3] - _range[1])];\n group.translate = [-_range[0], -_range[1]];\n group.scaleFract = f32.fract(group.scale);\n group.translateFract = f32.fract(group.translate);\n return _range;\n },\n viewport: function viewport(vp) {\n var rect = parseRect(vp || [gl.drawingBufferWidth, gl.drawingBufferHeight]); // normalize viewport to the canvas coordinates\n // rect.y = gl.drawingBufferHeight - rect.height - rect.y\n\n return rect;\n }\n }]); // update size buffer, if needed\n\n if (hasSize) {\n var _group = group,\n count = _group.count,\n size = _group.size,\n borderSize = _group.borderSize,\n sizeBuffer = _group.sizeBuffer;\n var sizes = new Uint8Array(count * 2);\n\n if (size.length || borderSize.length) {\n for (var _i2 = 0; _i2 < count; _i2++) {\n // we downscale size to allow for fractions\n sizes[_i2 * 2] = Math.round((size[_i2] == null ? size : size[_i2]) * 255 / maxSize);\n sizes[_i2 * 2 + 1] = Math.round((borderSize[_i2] == null ? borderSize : borderSize[_i2]) * 255 / maxSize);\n }\n }\n\n sizeBuffer({\n data: sizes,\n usage: 'dynamic'\n });\n } // update color buffer if needed\n\n\n if (hasColor) {\n var _group2 = group,\n _count = _group2.count,\n color = _group2.color,\n borderColor = _group2.borderColor,\n colorBuffer = _group2.colorBuffer;\n var colors; // if too many colors - put colors to buffer directly\n\n if (_this3.tooManyColors) {\n if (color.length || borderColor.length) {\n colors = new Uint8Array(_count * 8);\n\n for (var _i3 = 0; _i3 < _count; _i3++) {\n var _colorId = color[_i3];\n colors[_i3 * 8] = palette[_colorId * 4];\n colors[_i3 * 8 + 1] = palette[_colorId * 4 + 1];\n colors[_i3 * 8 + 2] = palette[_colorId * 4 + 2];\n colors[_i3 * 8 + 3] = palette[_colorId * 4 + 3];\n var borderColorId = borderColor[_i3];\n colors[_i3 * 8 + 4] = palette[borderColorId * 4];\n colors[_i3 * 8 + 5] = palette[borderColorId * 4 + 1];\n colors[_i3 * 8 + 6] = palette[borderColorId * 4 + 2];\n colors[_i3 * 8 + 7] = palette[borderColorId * 4 + 3];\n }\n }\n } // if limited amount of colors - keep palette color picking\n // that saves significant memory\n else {\n if (color.length || borderColor.length) {\n // we need slight data increase by 2 due to vec4 borderId in shader\n colors = new Uint8Array(_count * 4 + 2);\n\n for (var _i4 = 0; _i4 < _count; _i4++) {\n // put color coords in palette texture\n if (color[_i4] != null) {\n colors[_i4 * 4] = color[_i4] % maxColors;\n colors[_i4 * 4 + 1] = Math.floor(color[_i4] / maxColors);\n }\n\n if (borderColor[_i4] != null) {\n colors[_i4 * 4 + 2] = borderColor[_i4] % maxColors;\n colors[_i4 * 4 + 3] = Math.floor(borderColor[_i4] / maxColors);\n }\n }\n }\n }\n\n colorBuffer({\n data: colors || new Uint8Array(0),\n type: 'uint8',\n usage: 'dynamic'\n });\n }\n\n return group;\n });\n}; // get (and create) marker texture id\n\n\nScatter.prototype.addMarker = function (sdf) {\n var markerTextures = this.markerTextures,\n regl = this.regl,\n markerCache = this.markerCache;\n var pos = sdf == null ? 0 : markerCache.indexOf(sdf);\n if (pos >= 0) return pos; // convert sdf to 0..255 range\n\n var distArr;\n\n if (sdf instanceof Uint8Array || sdf instanceof Uint8ClampedArray) {\n distArr = sdf;\n } else {\n distArr = new Uint8Array(sdf.length);\n\n for (var i = 0, l = sdf.length; i < l; i++) {\n distArr[i] = sdf[i] * 255;\n }\n }\n\n var radius = Math.floor(Math.sqrt(distArr.length));\n pos = markerTextures.length;\n markerCache.push(sdf);\n markerTextures.push(regl.texture({\n channels: 1,\n data: distArr,\n radius: radius,\n mag: 'linear',\n min: 'linear'\n }));\n return pos;\n}; // register color to palette, return it's index or list of indexes\n\n\nScatter.prototype.updateColor = function (colors) {\n var paletteIds = this.paletteIds,\n palette = this.palette,\n maxColors = this.maxColors;\n\n if (!Array.isArray(colors)) {\n colors = [colors];\n }\n\n var idx = []; // if color groups - flatten them\n\n if (typeof colors[0] === 'number') {\n var grouped = [];\n\n if (Array.isArray(colors)) {\n for (var i = 0; i < colors.length; i += 4) {\n grouped.push(colors.slice(i, i + 4));\n }\n } else {\n for (var _i5 = 0; _i5 < colors.length; _i5 += 4) {\n grouped.push(colors.subarray(_i5, _i5 + 4));\n }\n }\n\n colors = grouped;\n }\n\n for (var _i6 = 0; _i6 < colors.length; _i6++) {\n var color = colors[_i6];\n color = rgba(color, 'uint8');\n var id = colorId(color, false); // if new color - save it\n\n if (paletteIds[id] == null) {\n var pos = palette.length;\n paletteIds[id] = Math.floor(pos / 4);\n palette[pos] = color[0];\n palette[pos + 1] = color[1];\n palette[pos + 2] = color[2];\n palette[pos + 3] = color[3];\n }\n\n idx[_i6] = paletteIds[id];\n } // detect if too many colors in palette\n\n\n if (!this.tooManyColors && palette.length > maxColors * 4) this.tooManyColors = true; // limit max color\n\n this.updatePalette(palette); // keep static index for single-color property\n\n return idx.length === 1 ? idx[0] : idx;\n};\n\nScatter.prototype.updatePalette = function (palette) {\n if (this.tooManyColors) return;\n var maxColors = this.maxColors,\n paletteTexture = this.paletteTexture;\n var requiredHeight = Math.ceil(palette.length * .25 / maxColors); // pad data\n\n if (requiredHeight > 1) {\n palette = palette.slice();\n\n for (var i = palette.length * .25 % maxColors; i < requiredHeight * maxColors; i++) {\n palette.push(0, 0, 0, 0);\n }\n } // ensure height\n\n\n if (paletteTexture.height < requiredHeight) {\n paletteTexture.resize(maxColors, requiredHeight);\n } // update full data\n\n\n paletteTexture.subimage({\n width: Math.min(palette.length * .25, maxColors),\n height: requiredHeight,\n data: palette\n }, 0, 0);\n}; // remove unused stuff\n\n\nScatter.prototype.destroy = function () {\n this.groups.forEach(function (group) {\n group.sizeBuffer.destroy();\n group.positionBuffer.destroy();\n group.positionFractBuffer.destroy();\n group.colorBuffer.destroy();\n group.activation.forEach(function (b) {\n return b && b.destroy && b.destroy();\n });\n group.selectionBuffer.destroy();\n if (group.elements) group.elements.destroy();\n });\n this.groups.length = 0;\n this.paletteTexture.destroy();\n this.markerTextures.forEach(function (txt) {\n return txt && txt.destroy && txt.destroy();\n });\n return this;\n};\n\nvar extend$1 = _dereq_('object-assign');\n\nvar reglScatter2d = function reglScatter2d(regl, options) {\n var scatter$1 = new scatter(regl, options);\n var render = scatter$1.render.bind(scatter$1); // expose API\n\n extend$1(render, {\n render: render,\n update: scatter$1.update.bind(scatter$1),\n draw: scatter$1.draw.bind(scatter$1),\n destroy: scatter$1.destroy.bind(scatter$1),\n regl: scatter$1.regl,\n gl: scatter$1.gl,\n canvas: scatter$1.gl.canvas,\n groups: scatter$1.groups,\n markers: scatter$1.markerCache,\n palette: scatter$1.palette\n });\n return render;\n};\n\nmodule.exports = reglScatter2d;\n\n},{\"@plotly/point-cluster\":59,\"array-bounds\":71,\"color-id\":87,\"color-normalize\":89,\"flatten-vertex-data\":191,\"glslify\":227,\"is-iexplorer\":233,\"object-assign\":247,\"parse-rect\":249,\"pick-by-alias\":253,\"to-float32\":313,\"update-diff\":329}],282:[function(_dereq_,module,exports){\n'use strict'\n\n\nvar createScatter = _dereq_('regl-scatter2d')\nvar pick = _dereq_('pick-by-alias')\nvar getBounds = _dereq_('array-bounds')\nvar raf = _dereq_('raf')\nvar arrRange = _dereq_('array-range')\nvar rect = _dereq_('parse-rect')\nvar flatten = _dereq_('flatten-vertex-data')\n\n\nmodule.exports = SPLOM\n\n\n// @constructor\nfunction SPLOM (regl, options) {\n\tif (!(this instanceof SPLOM)) { return new SPLOM(regl, options) }\n\n\t// render passes\n\tthis.traces = []\n\n\t// passes for scatter, combined across traces\n\tthis.passes = {}\n\n\tthis.regl = regl\n\n\t// main scatter drawing instance\n\tthis.scatter = createScatter(regl)\n\n\tthis.canvas = this.scatter.canvas\n}\n\n\n// update & draw passes once per frame\nSPLOM.prototype.render = function () {\n\tvar this$1 = this;\n\tvar ref;\n\n\tvar args = [], len = arguments.length;\n\twhile ( len-- ) args[ len ] = arguments[ len ];\n\tif (args.length) {\n\t\t(ref = this).update.apply(ref, args)\n\t}\n\n\tif (this.regl.attributes.preserveDrawingBuffer) { return this.draw() }\n\n\t// make sure draw is not called more often than once a frame\n\tif (this.dirty) {\n\t\tif (this.planned == null) {\n\t\t\tthis.planned = raf(function () {\n\t\t\t\tthis$1.draw()\n\t\t\t\tthis$1.dirty = true\n\t\t\t\tthis$1.planned = null\n\t\t\t})\n\t\t}\n\t}\n\telse {\n\t\tthis.draw()\n\t\tthis.dirty = true\n\t\traf(function () {\n\t\t\tthis$1.dirty = false\n\t\t})\n\t}\n\n\treturn this\n}\n\n\n// update passes\nSPLOM.prototype.update = function () {\n\tvar ref;\n\n\tvar args = [], len = arguments.length;\n\twhile ( len-- ) args[ len ] = arguments[ len ];\n\tif (!args.length) { return }\n\n\tfor (var i = 0; i < args.length; i++) {\n\t\tthis.updateItem(i, args[i])\n\t}\n\n\t// remove nulled passes\n\tthis.traces = this.traces.filter(Boolean)\n\n\t// FIXME: update passes independently\n\tvar passes = []\n\tvar offset = 0\n\tfor (var i$1 = 0; i$1 < this.traces.length; i$1++) {\n\t\tvar trace = this.traces[i$1]\n\t\tvar tracePasses = this.traces[i$1].passes\n\t\tfor (var j = 0; j < tracePasses.length; j++) {\n\t\t\tpasses.push(this.passes[tracePasses[j]])\n\t\t}\n\t\t// save offset of passes\n\t\ttrace.passOffset = offset\n\t\toffset += trace.passes.length\n\t}\n\n\t(ref = this.scatter).update.apply(ref, passes)\n\n\treturn this\n}\n\n\n// update trace by index, not supposed to be called directly\nSPLOM.prototype.updateItem = function (i, options) {\n\tvar ref = this;\n\tvar regl = ref.regl;\n\n\t// remove pass if null\n\tif (options === null) {\n\t\tthis.traces[i] = null\n\t\treturn this\n\t}\n\n\tif (!options) { return this }\n\n\tvar o = pick(options, {\n\t\tdata: 'data items columns rows values dimensions samples x',\n\t\tsnap: 'snap cluster',\n\t\tsize: 'sizes size radius',\n\t\tcolor: 'colors color fill fill-color fillColor',\n\t\topacity: 'opacity alpha transparency opaque',\n\t\tborderSize: 'borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline',\n\t\tborderColor: 'borderColors borderColor bordercolor stroke stroke-color strokeColor',\n\t\tmarker: 'markers marker shape',\n\t\trange: 'range ranges databox dataBox',\n\t\tviewport: 'viewport viewBox viewbox',\n\t\tdomain: 'domain domains area areas',\n\t\tpadding: 'pad padding paddings pads margin margins',\n\t\ttranspose: 'transpose transposed',\n\t\tdiagonal: 'diagonal diag showDiagonal',\n\t\tupper: 'upper up top upperhalf upperHalf showupperhalf showUpper showUpperHalf',\n\t\tlower: 'lower low bottom lowerhalf lowerHalf showlowerhalf showLowerHalf showLower'\n\t})\n\n\t// we provide regl buffer per-trace, since trace data can be changed\n\tvar trace = (this.traces[i] || (this.traces[i] = {\n\t\tid: i,\n\t\tbuffer: regl.buffer({\n\t\t\tusage: 'dynamic',\n\t\t\ttype: 'float',\n\t\t\tdata: new Uint8Array()\n\t\t}),\n\t\tcolor: 'black',\n\t\tmarker: null,\n\t\tsize: 12,\n\t\tborderColor: 'transparent',\n\t\tborderSize: 1,\n\t\tviewport: rect([regl._gl.drawingBufferWidth, regl._gl.drawingBufferHeight]),\n\t\tpadding: [0, 0, 0, 0],\n\t\topacity: 1,\n\t\tdiagonal: true,\n\t\tupper: true,\n\t\tlower: true\n\t}))\n\n\n\t// save styles\n\tif (o.color != null) {\n\t\ttrace.color = o.color\n\t}\n\tif (o.size != null) {\n\t\ttrace.size = o.size\n\t}\n\tif (o.marker != null) {\n\t\ttrace.marker = o.marker\n\t}\n\tif (o.borderColor != null) {\n\t\ttrace.borderColor = o.borderColor\n\t}\n\tif (o.borderSize != null) {\n\t\ttrace.borderSize = o.borderSize\n\t}\n\tif (o.opacity != null) {\n\t\ttrace.opacity = o.opacity\n\t}\n\tif (o.viewport) {\n\t\ttrace.viewport = rect(o.viewport)\n\t}\n\tif (o.diagonal != null) { trace.diagonal = o.diagonal }\n\tif (o.upper != null) { trace.upper = o.upper }\n\tif (o.lower != null) { trace.lower = o.lower }\n\n\t// put flattened data into buffer\n\tif (o.data) {\n\t\ttrace.buffer(flatten(o.data))\n\t\ttrace.columns = o.data.length\n\t\ttrace.count = o.data[0].length\n\n\t\t// detect bounds per-column\n\t\ttrace.bounds = []\n\n\t\tfor (var i$1 = 0; i$1 < trace.columns; i$1++) {\n\t\t\ttrace.bounds[i$1] = getBounds(o.data[i$1], 1)\n\t\t}\n\t}\n\n\t// add proper range updating markers\n\tvar multirange\n\tif (o.range) {\n\t\ttrace.range = o.range\n\t\tmultirange = trace.range && typeof trace.range[0] !== 'number'\n\t}\n\n\tif (o.domain) {\n\t\ttrace.domain = o.domain\n\t}\n\tvar multipadding = false\n\tif (o.padding != null) {\n\t\t// multiple paddings\n\t\tif (Array.isArray(o.padding) && o.padding.length === trace.columns && typeof o.padding[o.padding.length - 1] === 'number') {\n\t\t\ttrace.padding = o.padding.map(getPad)\n\t\t\tmultipadding = true\n\t\t}\n\t\t// single padding\n\t\telse {\n\t\t\ttrace.padding = getPad(o.padding)\n\t\t}\n\t}\n\n\t// create passes\n\tvar m = trace.columns\n\tvar n = trace.count\n\n\tvar w = trace.viewport.width\n\tvar h = trace.viewport.height\n\tvar left = trace.viewport.x\n\tvar top = trace.viewport.y\n\tvar iw = w / m\n\tvar ih = h / m\n\n\ttrace.passes = []\n\n\tfor (var i$2 = 0; i$2 < m; i$2++) {\n\t\tfor (var j = 0; j < m; j++) {\n\t\t\tif (!trace.diagonal && j === i$2) { continue }\n\t\t\tif (!trace.upper && i$2 > j) { continue }\n\t\t\tif (!trace.lower && i$2 < j) { continue }\n\n\t\t\tvar key = passId(trace.id, i$2, j)\n\n\t\t\tvar pass = this.passes[key] || (this.passes[key] = {})\n\n\t\t\tif (o.data) {\n\t\t\t\tif (o.transpose) {\n\t\t\t\t\tpass.positions = {\n\t\t\t\t\t\tx: {buffer: trace.buffer, offset: j, count: n, stride: m},\n\t\t\t\t\t\ty: {buffer: trace.buffer, offset: i$2, count: n, stride: m}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpass.positions = {\n\t\t\t\t\t\tx: {buffer: trace.buffer, offset: j * n, count: n},\n\t\t\t\t\t\ty: {buffer: trace.buffer, offset: i$2 * n, count: n}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tpass.bounds = getBox(trace.bounds, i$2, j)\n\t\t\t}\n\n\t\t\tif (o.domain || o.viewport || o.data) {\n\t\t\t\tvar pad = multipadding ? getBox(trace.padding, i$2, j) : trace.padding\n\t\t\t\tif (trace.domain) {\n\t\t\t\t\tvar ref$1 = getBox(trace.domain, i$2, j);\n\t\t\t\t\tvar lox = ref$1[0];\n\t\t\t\t\tvar loy = ref$1[1];\n\t\t\t\t\tvar hix = ref$1[2];\n\t\t\t\t\tvar hiy = ref$1[3];\n\n\t\t\t\t\tpass.viewport = [\n\t\t\t\t\t\tleft + lox * w + pad[0],\n\t\t\t\t\t\ttop + loy * h + pad[1],\n\t\t\t\t\t\tleft + hix * w - pad[2],\n\t\t\t\t\t\ttop + hiy * h - pad[3]\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t\t// consider auto-domain equipartial\n\t\t\t\telse {\n\t\t\t\t\tpass.viewport = [\n\t\t\t\t\t\tleft + j * iw + iw * pad[0],\n\t\t\t\t\t\ttop + i$2 * ih + ih * pad[1],\n\t\t\t\t\t\tleft + (j + 1) * iw - iw * pad[2],\n\t\t\t\t\t\ttop + (i$2 + 1) * ih - ih * pad[3]\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (o.color) { pass.color = trace.color }\n\t\t\tif (o.size) { pass.size = trace.size }\n\t\t\tif (o.marker) { pass.marker = trace.marker }\n\t\t\tif (o.borderSize) { pass.borderSize = trace.borderSize }\n\t\t\tif (o.borderColor) { pass.borderColor = trace.borderColor }\n\t\t\tif (o.opacity) { pass.opacity = trace.opacity }\n\n\t\t\tif (o.range) {\n\t\t\t\tpass.range = multirange ? getBox(trace.range, i$2, j) : trace.range || pass.bounds\n\t\t\t}\n\n\t\t\ttrace.passes.push(key)\n\t\t}\n\t}\n\n\treturn this\n}\n\n\n// draw all or passed passes\nSPLOM.prototype.draw = function () {\n\tvar ref$2;\n\n\tvar args = [], len = arguments.length;\n\twhile ( len-- ) args[ len ] = arguments[ len ];\n\tif (!args.length) {\n\t\tthis.scatter.draw()\n\t}\n\telse {\n\t\tvar idx = []\n\t\tfor (var i = 0; i < args.length; i++) {\n\t\t\t// draw(0, 2, 5) - draw traces\n\t\t\tif (typeof args[i] === 'number' ) {\n\t\t\t\tvar ref = this.traces[args[i]];\n\t\t\t\tvar passes = ref.passes;\n\t\t\t\tvar passOffset = ref.passOffset;\n\t\t\t\tidx.push.apply(idx, arrRange(passOffset, passOffset + passes.length))\n\t\t\t}\n\t\t\t// draw([0, 1, 2 ...], [3, 4, 5]) - draw points\n\t\t\telse if (args[i].length) {\n\t\t\t\tvar els = args[i]\n\t\t\t\tvar ref$1 = this.traces[i];\n\t\t\t\tvar passes$1 = ref$1.passes;\n\t\t\t\tvar passOffset$1 = ref$1.passOffset;\n\t\t\t\tpasses$1 = passes$1.map(function (passId, i) {\n\t\t\t\t\tidx[passOffset$1 + i] = els\n\t\t\t\t})\n\t\t\t}\n\t\t}\n\t\t(ref$2 = this.scatter).draw.apply(ref$2, idx)\n\t}\n\n\treturn this\n}\n\n\n// dispose resources\nSPLOM.prototype.destroy = function () {\n\tthis.traces.forEach(function (trace) {\n\t\tif (trace.buffer && trace.buffer.destroy) { trace.buffer.destroy() }\n\t})\n\tthis.traces = null\n\tthis.passes = null\n\n\tthis.scatter.destroy()\n\n\treturn this\n}\n\n\n// return pass corresponding to trace i- j- square\nfunction passId (trace, i, j) {\n\tvar id = (trace.id != null ? trace.id : trace)\n\tvar n = i\n\tvar m = j\n\tvar key = id << 16 | (n & 0xff) << 8 | m & 0xff\n\n\treturn key\n}\n\n\n// return bounding box corresponding to a pass\nfunction getBox (items, i, j) {\n\tvar ilox, iloy, ihix, ihiy, jlox, jloy, jhix, jhiy\n\tvar iitem = items[i], jitem = items[j]\n\n\tif (iitem.length > 2) {\n\t\tilox = iitem[0]\n\t\tihix = iitem[2]\n\t\tiloy = iitem[1]\n\t\tihiy = iitem[3]\n\t}\n\telse if (iitem.length) {\n\t\tilox = iloy = iitem[0]\n\t\tihix = ihiy = iitem[1]\n\t}\n\telse {\n\t\tilox = iitem.x\n\t\tiloy = iitem.y\n\t\tihix = iitem.x + iitem.width\n\t\tihiy = iitem.y + iitem.height\n\t}\n\n\tif (jitem.length > 2) {\n\t\tjlox = jitem[0]\n\t\tjhix = jitem[2]\n\t\tjloy = jitem[1]\n\t\tjhiy = jitem[3]\n\t}\n\telse if (jitem.length) {\n\t\tjlox = jloy = jitem[0]\n\t\tjhix = jhiy = jitem[1]\n\t}\n\telse {\n\t\tjlox = jitem.x\n\t\tjloy = jitem.y\n\t\tjhix = jitem.x + jitem.width\n\t\tjhiy = jitem.y + jitem.height\n\t}\n\n\treturn [ jlox, iloy, jhix, ihiy ]\n}\n\n\nfunction getPad (arg) {\n\tif (typeof arg === 'number') { return [arg, arg, arg, arg] }\n\telse if (arg.length === 2) { return [arg[0], arg[1], arg[0], arg[1]] }\n\telse {\n\t\tvar box = rect(arg)\n\t\treturn [box.x, box.y, box.x + box.width, box.y + box.height]\n\t}\n}\n\n},{\"array-bounds\":71,\"array-range\":74,\"flatten-vertex-data\":191,\"parse-rect\":249,\"pick-by-alias\":253,\"raf\":278,\"regl-scatter2d\":281}],283:[function(_dereq_,module,exports){\n(function(Z,ka){\"object\"===typeof exports&&\"undefined\"!==typeof module?module.exports=ka():\"function\"===typeof define&&define.amd?define(ka):Z.createREGL=ka()})(this,function(){function Z(a,b){this.id=Db++;this.type=a;this.data=b}function ka(a){if(0===a.length)return[];var b=a.charAt(0),c=a.charAt(a.length-1);if(1>>=b;c=(255>>=c;b|=c;c=(15>>=c;b|=c;c=(3>>c>>1}function hb(){function a(a){a:{for(var b=16;268435456>=b;b*=16)if(a<=b){a=b;break a}a=0}b=c[gb(a)>>2];return 0>2].push(a)}var c=R(8,function(){return[]});return{alloc:a,free:b,allocType:function(b,c){var d=null;switch(b){case 5120:d=new Int8Array(a(c),0,c);break;case 5121:d=new Uint8Array(a(c),0,c);break;case 5122:d=new Int16Array(a(2*c),0,c);break;case 5123:d=new Uint16Array(a(2*c),0,c);break;case 5124:d=new Int32Array(a(4*c),0,c);break;case 5125:d=new Uint32Array(a(4*c),0,c);break;case 5126:d=new Float32Array(a(4*c),0,c);break;default:return null}return d.length!==\nc?d.subarray(0,c):d},freeType:function(a){b(a.buffer)}}}function la(a){return!!a&&\"object\"===typeof a&&Array.isArray(a.shape)&&Array.isArray(a.stride)&&\"number\"===typeof a.offset&&a.shape.length===a.stride.length&&(Array.isArray(a.data)||O(a.data))}function ib(a,b,c,e,f,d){for(var q=0;qe&&(e=d.buffer.byteLength,5123===k?e>>=1:5125===k&&(e>>=2));d.vertCount=e;e=g;0>g&&(e=4,g=d.buffer.dimension,1===g&&(e=0),2===g&&(e=1),3===g&&(e=4));d.primType=e}function q(a){e.elementsCount--;delete n[a.id];a.buffer.destroy();a.buffer=null}var n={},v=0,k={uint8:5121,uint16:5123};b.oes_element_index_uint&&(k.uint32=5125);f.prototype.bind=function(){this.buffer.bind()};var u=[];return{create:function(a,\nb){function l(a){if(a)if(\"number\"===typeof a)g(a),h.primType=4,h.vertCount=a|0,h.type=5121;else{var b=null,c=35044,e=-1,f=-1,m=0,n=0;if(Array.isArray(a)||O(a)||la(a))b=a;else if(\"data\"in a&&(b=a.data),\"usage\"in a&&(c=nb[a.usage]),\"primitive\"in a&&(e=Ka[a.primitive]),\"count\"in a&&(f=a.count|0),\"type\"in a&&(n=k[a.type]),\"length\"in a)m=a.length|0;else if(m=f,5123===n||5122===n)m*=2;else if(5125===n||5124===n)m*=4;d(h,b,c,e,f,m,n)}else g(),h.primType=4,h.vertCount=0,h.type=5121;return l}var g=c.create(null,\n34963,!0),h=new f(g._buffer);e.elementsCount++;l(a);l._reglType=\"elements\";l._elements=h;l.subdata=function(a,b){g.subdata(a,b);return l};l.destroy=function(){q(h)};return l},createStream:function(a){var b=u.pop();b||(b=new f(c.create(null,34963,!0,!1)._buffer));d(b,a,35040,-1,-1,0,0);return b},destroyStream:function(a){u.push(a)},getElements:function(a){return\"function\"===typeof a&&a._elements instanceof f?a._elements:null},clear:function(){I(n).forEach(q)}}}function ob(a){for(var b=G.allocType(5123,\na.length),c=0;c>>31<<15,d=(e<<1>>>24)-127,e=e>>13&1023;b[c]=-24>d?f:-14>d?f+(e+1024>>-14-d):15>=e,c.height>>=e,x(c,d[e]),a.mipmask|=1<b;++b)a.images[b]=null;return a}function ya(a){for(var b=a.images,c=0;cb){for(var c=0;c=--this.refCount&&F(this)}});q.profile&&(d.getTotalTextureSize=function(){var a=0;Object.keys(ea).forEach(function(b){a+=ea[b].stats.size});return a});return{create2D:function(b,c){function e(a,b){var c=f.texInfo;w.call(c);var d=ma();\"number\"===typeof a?\"number\"===typeof b?p(d,a|0,b|0):p(d,a|0,a|0):a?(H(c,a),P(d,a)):p(d,1,1);c.genMipmaps&&(d.mipmask=(d.width<<1)-1);f.mipmask=d.mipmask;v(f,\nd);f.internalformat=d.internalformat;e.width=d.width;e.height=d.height;T(f);t(d,3553);M(c,3553);wa();ya(d);q.profile&&(f.stats.size=La(f.internalformat,f.type,d.width,d.height,c.genMipmaps,!1));e.format=ca[f.internalformat];e.type=K[f.type];e.mag=Fa[c.magFilter];e.min=pa[c.minFilter];e.wrapS=qa[c.wrapS];e.wrapT=qa[c.wrapT];return e}var f=new y(3553);ea[f.id]=f;d.textureCount++;e(b,c);e.subimage=function(a,b,c,d){b|=0;c|=0;d|=0;var y=g();v(y,f);y.width=0;y.height=0;x(y,a);y.width=y.width||(f.width>>\nd)-b;y.height=y.height||(f.height>>d)-c;T(f);l(y,3553,b,c,d);wa();h(y);return e};e.resize=function(b,c){var d=b|0,g=c|0||d;if(d===f.width&&g===f.height)return e;e.width=f.width=d;e.height=f.height=g;T(f);for(var y=0;f.mipmask>>y;++y){var h=d>>y,z=g>>y;if(!h||!z)break;a.texImage2D(3553,y,f.format,h,z,0,f.format,f.type,null)}wa();q.profile&&(f.stats.size=La(f.internalformat,f.type,d,g,!1,!1));return e};e._reglType=\"texture2d\";e._texture=f;q.profile&&(e.stats=f.stats);e.destroy=function(){f.decRef()};\nreturn e},createCube:function(b,c,e,f,n,r){function m(a,b,c,d,e,f){var g,da=A.texInfo;w.call(da);for(g=0;6>g;++g)F[g]=ma();if(\"number\"===typeof a||!a)for(a=a|0||1,g=0;6>g;++g)p(F[g],a,a);else if(\"object\"===typeof a)if(b)P(F[0],a),P(F[1],b),P(F[2],c),P(F[3],d),P(F[4],e),P(F[5],f);else if(H(da,a),k(A,a),\"faces\"in a)for(a=a.faces,g=0;6>g;++g)v(F[g],A),P(F[g],a[g]);else for(g=0;6>g;++g)P(F[g],a);v(A,F[0]);A.mipmask=da.genMipmaps?(F[0].width<<1)-1:F[0].mipmask;A.internalformat=F[0].internalformat;m.width=\nF[0].width;m.height=F[0].height;T(A);for(g=0;6>g;++g)t(F[g],34069+g);M(da,34067);wa();q.profile&&(A.stats.size=La(A.internalformat,A.type,m.width,m.height,da.genMipmaps,!0));m.format=ca[A.internalformat];m.type=K[A.type];m.mag=Fa[da.magFilter];m.min=pa[da.minFilter];m.wrapS=qa[da.wrapS];m.wrapT=qa[da.wrapT];for(g=0;6>g;++g)ya(F[g]);return m}var A=new y(34067);ea[A.id]=A;d.cubeCount++;var F=Array(6);m(b,c,e,f,n,r);m.subimage=function(a,b,c,d,e){c|=0;d|=0;e|=0;var f=g();v(f,A);f.width=0;f.height=0;\nx(f,b);f.width=f.width||(A.width>>e)-c;f.height=f.height||(A.height>>e)-d;T(A);l(f,34069+a,c,d,e);wa();h(f);return m};m.resize=function(b){b|=0;if(b!==A.width){m.width=A.width=b;m.height=A.height=b;T(A);for(var c=0;6>c;++c)for(var d=0;A.mipmask>>d;++d)a.texImage2D(34069+c,d,A.format,b>>d,b>>d,0,A.format,A.type,null);wa();q.profile&&(A.stats.size=La(A.internalformat,A.type,m.width,m.height,!1,!0));return m}};m._reglType=\"textureCube\";m._texture=A;q.profile&&(m.stats=A.stats);m.destroy=function(){A.decRef()};\nreturn m},clear:function(){for(var b=0;bc;++c)if(0!==(b.mipmask&1<>c,b.height>>c,0,b.internalformat,\nb.type,null);else for(var d=0;6>d;++d)a.texImage2D(34069+d,c,b.internalformat,b.width>>c,b.height>>c,0,b.internalformat,b.type,null);M(b.texInfo,b.target)})},refresh:function(){for(var b=0;bd;++d){for(p=\n0;pa;++a)c[a].resize(d);b.width=b.height=d;return b},_reglType:\"framebufferCube\",destroy:function(){c.forEach(function(a){a.destroy()})}})},clear:function(){I(M).forEach(r)},\nrestore:function(){t.cur=null;t.next=null;t.dirty=!0;I(M).forEach(function(b){b.framebuffer=a.createFramebuffer();p(b)})}})}function $a(){this.w=this.z=this.y=this.x=this.state=0;this.buffer=null;this.size=0;this.normalized=!1;this.type=5126;this.divisor=this.stride=this.offset=0}function Sb(a,b,c,e,f,d,q){function n(a){if(a!==r.currentVAO){var c=b.oes_vertex_array_object;a?c.bindVertexArrayOES(a.vao):c.bindVertexArrayOES(null);r.currentVAO=a}}function v(c){if(c!==r.currentVAO){if(c)c.bindAttrs();\nelse{for(var d=b.angle_instanced_arrays,e=0;e=m.byteLength?l.subdata(m):\n(l.destroy(),c.buffers[h]=null));c.buffers[h]||(l=c.buffers[h]=f.create(p,34962,!1,!0));k.buffer=f.getBuffer(l);k.size=k.buffer.dimension|0;k.normalized=!1;k.type=k.buffer.dtype;k.offset=0;k.stride=0;k.divisor=0;k.state=1;a[h]=1}else f.getBuffer(p)?(k.buffer=f.getBuffer(p),k.size=k.buffer.dimension|0,k.normalized=!1,k.type=k.buffer.dtype,k.offset=0,k.stride=0,k.divisor=0,k.state=1):f.getBuffer(p.buffer)?(k.buffer=f.getBuffer(p.buffer),k.size=(+p.size||k.buffer.dimension)|0,k.normalized=!!p.normalized||\n!1,k.type=\"type\"in p?Ja[p.type]:k.buffer.dtype,k.offset=(p.offset||0)|0,k.stride=(p.stride||0)|0,k.divisor=(p.divisor||0)|0,k.state=1):\"x\"in p&&(k.x=+p.x||0,k.y=+p.y||0,k.z=+p.z||0,k.w=+p.w||0,k.state=2)}for(l=0;la&&(a=b.stats.uniformsCount)});return a},c.getMaxAttributesCount=function(){var a=0;x.forEach(function(b){b.stats.attributesCount>a&&(a=b.stats.attributesCount)});return a});return{clear:function(){var b=a.deleteShader.bind(a);I(k).forEach(b);k={};I(u).forEach(b);\nu={};x.forEach(function(b){a.deleteProgram(b.program)});x.length=0;m={};c.shaderCount=0},program:function(b,d,e,f){var l=m[d];l||(l=m[d]={});var q=l[b];if(q&&(q.refCount++,!f))return q;var w=new n(d,b);c.shaderCount++;v(w,e,f);q||(l[b]=w);x.push(w);return L(w,{destroy:function(){w.refCount--;if(0>=w.refCount){a.deleteProgram(w.program);var b=x.indexOf(w);x.splice(b,1);c.shaderCount--}0>=l[w.vertId].refCount&&(a.deleteShader(u[w.vertId]),delete u[w.vertId],delete m[w.fragId][w.vertId]);Object.keys(m[w.fragId]).length||\n(a.deleteShader(k[w.fragId]),delete k[w.fragId],delete m[w.fragId])}})},restore:function(){k={};u={};for(var a=0;a\"+b+\"?\"+e+\".constant[\"+b+\"]:0;\"}).join(\"\"),\"}}else{\",\"if(\",g,\"(\",e,\".buffer)){\",k,\"=\",f,\".createStream(\",34962,\",\",e,\".buffer);\",\"}else{\",k,\"=\",f,\".getBuffer(\",e,\".buffer);\",\"}\",m,'=\"type\" in ',e,\"?\",z.glTypes,\"[\",e,\".type]:\",k,\".dtype;\",B.normalized,\"=!!\",\ne,\".normalized;\");d(\"size\");d(\"offset\");d(\"stride\");d(\"divisor\");c(\"}}\");c.exit(\"if(\",B.isStream,\"){\",f,\".destroyStream(\",k,\");\",\"}\");return B})});return g}function F(a){var b=a[\"static\"],c=a.dynamic,d={};Object.keys(b).forEach(function(a){var c=b[a];d[a]=w(function(a,b){return\"number\"===typeof c||\"boolean\"===typeof c?\"\"+c:a.link(c)})});Object.keys(c).forEach(function(a){var b=c[a];d[a]=K(b,function(a,c){return a.invoke(c,b)})});return d}function A(a,b,d,e,f){function g(a){var b=p[a];b&&(ja[a]=b)}\nvar m=O(a,b),l=G(a,f),p=C(a,l,f),X=M(a,f),ja=y(a,f),q=H(a,f,m);g(\"viewport\");g(h(\"scissor.box\"));var n=0>1)\",u],\");\")}function b(){c(t,\".drawArraysInstancedANGLE(\",[n,q,r,u],\");\")}p&&\"null\"!==p?v?a():(c(\"if(\",p,\"){\"),a(),c(\"}else{\"),b(),c(\"}\")):b()}function g(){function a(){c(l+\".drawElements(\"+[n,r,x,q+\"<<((\"+x+\"-5121)>>1)\"]+\");\")}function b(){c(l+\".drawArrays(\"+[n,q,r]+\");\")}p&&\"null\"!==p?v?a():(c(\"if(\",p,\"){\"),a(),c(\"}else{\"),b(),c(\"}\")):b()}var h=a.shared,l=h.gl,k=h.draw,m=d.draw,\np=function(){var e=m.elements,f=b;if(e){if(e.contextDep&&d.contextDynamic||e.propDep)f=c;e=e.append(a,f);m.elementsActive&&f(\"if(\"+e+\")\"+l+\".bindBuffer(34963,\"+e+\".buffer.buffer);\")}else e=f.def(),f(e,\"=\",k,\".\",\"elements\",\";\",\"if(\",e,\"){\",l,\".bindBuffer(\",34963,\",\",e,\".buffer.buffer);}\",\"else if(\",h.vao,\".currentVAO){\",e,\"=\",a.shared.elements+\".getElements(\"+h.vao,\".currentVAO.elements);\",na?\"\":\"if(\"+e+\")\"+l+\".bindBuffer(34963,\"+e+\".buffer.buffer);\",\"}\");return e}(),n=e(\"primitive\"),q=e(\"offset\"),\nr=function(){var e=m.count,f=b;if(e){if(e.contextDep&&d.contextDynamic||e.propDep)f=c;e=e.append(a,f)}else e=f.def(k,\".\",\"count\");return e}();if(\"number\"===typeof r){if(0===r)return}else c(\"if(\",r,\"){\"),c.exit(\"}\");var u,t;W&&(u=e(\"instances\"),t=a.instancing);var x=p+\".type\",v=m.elements&&xa(m.elements)&&!m.vaoActive;W&&(\"number\"!==typeof u||0<=u)?\"string\"===typeof u?(c(\"if(\",u,\">0){\"),f(),c(\"}else if(\",u,\"<0){\"),g(),c(\"}\")):f():g()}function ca(a,b,c,d,e){b=P();e=b.proc(\"body\",e);W&&(b.instancing=\ne.def(b.shared.extensions,\".angle_instanced_arrays\"));a(b,e,c,d);return b.compile().body}function Z(a,b,c,d){N(a,b);c.useVAO?c.drawVAO?b(a.shared.vao,\".setVAO(\",c.drawVAO.append(a,b),\");\"):b(a.shared.vao,\".setVAO(\",a.shared.vao,\".targetVAO);\"):(b(a.shared.vao,\".setVAO(null);\"),ga(a,b,c,d.attributes,function(){return!0}));Q(a,b,c,d.uniforms,function(){return!0},!1);U(a,b,b,c)}function Fa(a,b){var c=a.proc(\"draw\",1);N(a,c);ia(a,c,b.context);S(a,c,b.framebuffer);Aa(a,c,b);I(a,c,b.state);E(a,c,b,!1,!0);\nvar d=b.shader.progVar.append(a,c);c(a.shared.gl,\".useProgram(\",d,\".program);\");if(b.shader.program)Z(a,c,b,b.shader.program);else{c(a.shared.vao,\".setVAO(null);\");var e=a.global.def(\"{}\"),f=c.def(d,\".id\"),g=c.def(e,\"[\",f,\"]\");c(a.cond(g).then(g,\".call(this,a0);\")[\"else\"](g,\"=\",e,\"[\",f,\"]=\",a.link(function(c){return ca(Z,a,b,c,1)}),\"(\",d,\");\",g,\".call(this,a0);\"))}0=--this.refCount&&q(this)};f.profile&&(e.getTotalRenderbufferSize=function(){var a=0;Object.keys(u).forEach(function(b){a+=u[b].stats.size});return a});return{create:function(b,\nc){function l(b,c){var d=0,e=0,k=32854;\"object\"===typeof b&&b?(\"shape\"in b?(e=b.shape,d=e[0]|0,e=e[1]|0):(\"radius\"in b&&(d=e=b.radius|0),\"width\"in b&&(d=b.width|0),\"height\"in b&&(e=b.height|0)),\"format\"in b&&(k=n[b.format])):\"number\"===typeof b?(d=b|0,e=\"number\"===typeof c?c|0:d):b||(d=e=1);if(d!==g.width||e!==g.height||k!==g.format)return l.width=g.width=d,l.height=g.height=e,g.format=k,a.bindRenderbuffer(36161,g.renderbuffer),a.renderbufferStorage(36161,k,d,e),f.profile&&(g.stats.size=Q[g.format]*\ng.width*g.height),l.format=v[g.format],l}var g=new d(a.createRenderbuffer());u[g.id]=g;e.renderbufferCount++;l(b,c);l.resize=function(b,c){var d=b|0,e=c|0||d;if(d===g.width&&e===g.height)return l;l.width=g.width=d;l.height=g.height=e;a.bindRenderbuffer(36161,g.renderbuffer);a.renderbufferStorage(36161,g.format,d,e);f.profile&&(g.stats.size=Q[g.format]*g.width*g.height);return l};l._reglType=\"renderbuffer\";l._renderbuffer=g;f.profile&&(l.stats=g.stats);l.destroy=function(){g.decRef()};return l},clear:function(){I(u).forEach(q)},\nrestore:function(){I(u).forEach(function(b){b.renderbuffer=a.createRenderbuffer();a.bindRenderbuffer(36161,b.renderbuffer);a.renderbufferStorage(36161,b.format,b.width,b.height)});a.bindRenderbuffer(36161,null)}}},Za=[];Za[6408]=4;Za[6407]=3;var Ra=[];Ra[5121]=1;Ra[5126]=4;Ra[36193]=2;var Da=[\"x\",\"y\",\"z\",\"w\"],Xb=\"blend.func blend.equation stencil.func stencil.opFront stencil.opBack sample.coverage viewport scissor.box polygonOffset.offset\".split(\" \"),Ga={0:0,1:1,zero:0,one:1,\"src color\":768,\"one minus src color\":769,\n\"src alpha\":770,\"one minus src alpha\":771,\"dst color\":774,\"one minus dst color\":775,\"dst alpha\":772,\"one minus dst alpha\":773,\"constant color\":32769,\"one minus constant color\":32770,\"constant alpha\":32771,\"one minus constant alpha\":32772,\"src alpha saturate\":776},ab={never:512,less:513,\"<\":513,equal:514,\"=\":514,\"==\":514,\"===\":514,lequal:515,\"<=\":515,greater:516,\">\":516,notequal:517,\"!=\":517,\"!==\":517,gequal:518,\">=\":518,always:519},Ta={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,\n\"increment wrap\":34055,\"decrement wrap\":34056,invert:5386},zb={cw:2304,ccw:2305},Ab=new J(!1,!1,!1,function(){}),$b=function(a,b){function c(){this.endQueryIndex=this.startQueryIndex=-1;this.sum=0;this.stats=null}function e(a,b,d){var e=q.pop()||new c;e.startQueryIndex=a;e.endQueryIndex=b;e.sum=0;e.stats=d;n.push(e)}if(!b.ext_disjoint_timer_query)return null;var f=[],d=[],q=[],n=[],v=[],k=[];return{beginQuery:function(a){var c=f.pop()||b.ext_disjoint_timer_query.createQueryEXT();b.ext_disjoint_timer_query.beginQueryEXT(35007,\nc);d.push(c);e(d.length-1,d.length,a)},endQuery:function(){b.ext_disjoint_timer_query.endQueryEXT(35007)},pushScopeStats:e,update:function(){var a,c;a=d.length;if(0!==a){k.length=Math.max(k.length,a+1);v.length=Math.max(v.length,a+1);v[0]=0;var e=k[0]=0;for(c=a=0;c=E.length&&e()}var c=Bb(E,a);E[c]=b}}}function k(){var a=Q.viewport,b=Q.scissor_box;a[0]=a[1]=b[0]=b[1]=0;H.viewportWidth=H.framebufferWidth=H.drawingBufferWidth=a[2]=b[2]=l.drawingBufferWidth;H.viewportHeight=H.framebufferHeight=H.drawingBufferHeight=a[3]=b[3]=l.drawingBufferHeight}function u(){H.tick+=1;H.time=x();k();I.procs.poll()}function m(){A.refresh();k();I.procs.refresh();t&&t.update()}function x(){return(Cb()-\nG)/1E3}a=Hb(a);if(!a)return null;var l=a.gl,g=l.getContextAttributes();l.isContextLost();var h=Ib(l,a);if(!h)return null;var r=Eb(),p={vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0},w=h.extensions,t=$b(l,w),G=Cb(),C=l.drawingBufferWidth,J=l.drawingBufferHeight,H={tick:0,time:0,viewportWidth:C,viewportHeight:J,framebufferWidth:C,framebufferHeight:J,drawingBufferWidth:C,drawingBufferHeight:J,pixelRatio:a.pixelRatio},\nC={elements:null,primitive:4,count:-1,offset:0,instances:-1},M=Yb(l,w),y=Jb(l,p,a,function(a){return K.destroyBuffer(a)}),T=Kb(l,w,y,p),K=Sb(l,w,M,p,y,T,C),F=Tb(l,r,p,a),A=Nb(l,w,M,function(){I.procs.poll()},H,p,a),O=Zb(l,w,M,p,a),S=Rb(l,w,M,A,O,p),I=Wb(l,r,w,M,y,T,A,S,{},K,F,C,H,t,a),r=Ub(l,S,I.procs.poll,H,g,w,M),Q=I.next,N=l.canvas,E=[],R=[],U=[],Z=[a.onDestroy],ca=null;N&&(N.addEventListener(\"webglcontextlost\",f,!1),N.addEventListener(\"webglcontextrestored\",d,!1));var aa=S.setFBO=q({framebuffer:Y.define.call(null,\n1,\"framebuffer\")});m();g=L(q,{clear:function(a){if(\"framebuffer\"in a)if(a.framebuffer&&\"framebufferCube\"===a.framebuffer_reglType)for(var b=0;6>b;++b)aa(L({framebuffer:a.framebuffer.faces[b]},a),n);else aa(a,n);else n(null,a)},prop:Y.define.bind(null,1),context:Y.define.bind(null,2),\"this\":Y.define.bind(null,3),draw:q({}),buffer:function(a){return y.create(a,34962,!1,!1)},elements:function(a){return T.create(a,!1)},texture:A.create2D,cube:A.createCube,renderbuffer:O.create,framebuffer:S.create,framebufferCube:S.createCube,\nvao:K.createVAO,attributes:g,frame:v,on:function(a,b){var c;switch(a){case \"frame\":return v(b);case \"lost\":c=R;break;case \"restore\":c=U;break;case \"destroy\":c=Z}c.push(b);return{cancel:function(){for(var a=0;a 2) {\n return \"one of \".concat(thing, \" \").concat(expected.slice(0, len - 1).join(', '), \", or \") + expected[len - 1];\n } else if (len === 2) {\n return \"one of \".concat(thing, \" \").concat(expected[0], \" or \").concat(expected[1]);\n } else {\n return \"of \".concat(thing, \" \").concat(expected[0]);\n }\n } else {\n return \"of \".concat(thing, \" \").concat(String(expected));\n }\n} // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith\n\n\nfunction startsWith(str, search, pos) {\n return str.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search;\n} // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith\n\n\nfunction endsWith(str, search, this_len) {\n if (this_len === undefined || this_len > str.length) {\n this_len = str.length;\n }\n\n return str.substring(this_len - search.length, this_len) === search;\n} // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes\n\n\nfunction includes(str, search, start) {\n if (typeof start !== 'number') {\n start = 0;\n }\n\n if (start + search.length > str.length) {\n return false;\n } else {\n return str.indexOf(search, start) !== -1;\n }\n}\n\ncreateErrorType('ERR_INVALID_OPT_VALUE', function (name, value) {\n return 'The value \"' + value + '\" is invalid for option \"' + name + '\"';\n}, TypeError);\ncreateErrorType('ERR_INVALID_ARG_TYPE', function (name, expected, actual) {\n // determiner: 'must be' or 'must not be'\n var determiner;\n\n if (typeof expected === 'string' && startsWith(expected, 'not ')) {\n determiner = 'must not be';\n expected = expected.replace(/^not /, '');\n } else {\n determiner = 'must be';\n }\n\n var msg;\n\n if (endsWith(name, ' argument')) {\n // For cases like 'first argument'\n msg = \"The \".concat(name, \" \").concat(determiner, \" \").concat(oneOf(expected, 'type'));\n } else {\n var type = includes(name, '.') ? 'property' : 'argument';\n msg = \"The \\\"\".concat(name, \"\\\" \").concat(type, \" \").concat(determiner, \" \").concat(oneOf(expected, 'type'));\n }\n\n msg += \". Received type \".concat(typeof actual);\n return msg;\n}, TypeError);\ncreateErrorType('ERR_STREAM_PUSH_AFTER_EOF', 'stream.push() after EOF');\ncreateErrorType('ERR_METHOD_NOT_IMPLEMENTED', function (name) {\n return 'The ' + name + ' method is not implemented';\n});\ncreateErrorType('ERR_STREAM_PREMATURE_CLOSE', 'Premature close');\ncreateErrorType('ERR_STREAM_DESTROYED', function (name) {\n return 'Cannot call ' + name + ' after a stream was destroyed';\n});\ncreateErrorType('ERR_MULTIPLE_CALLBACK', 'Callback called multiple times');\ncreateErrorType('ERR_STREAM_CANNOT_PIPE', 'Cannot pipe, not readable');\ncreateErrorType('ERR_STREAM_WRITE_AFTER_END', 'write after end');\ncreateErrorType('ERR_STREAM_NULL_VALUES', 'May not write null values to stream', TypeError);\ncreateErrorType('ERR_UNKNOWN_ENCODING', function (arg) {\n return 'Unknown encoding: ' + arg;\n}, TypeError);\ncreateErrorType('ERR_STREAM_UNSHIFT_AFTER_END_EVENT', 'stream.unshift() after end event');\nmodule.exports.codes = codes;\n\n},{}],287:[function(_dereq_,module,exports){\n(function (process){(function (){\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n// a duplex stream is just a stream that is both readable and writable.\n// Since JS doesn't have multiple prototypal inheritance, this class\n// prototypally inherits from Readable, and then parasitically from\n// Writable.\n'use strict';\n/**/\n\nvar objectKeys = Object.keys || function (obj) {\n var keys = [];\n\n for (var key in obj) {\n keys.push(key);\n }\n\n return keys;\n};\n/**/\n\n\nmodule.exports = Duplex;\n\nvar Readable = _dereq_('./_stream_readable');\n\nvar Writable = _dereq_('./_stream_writable');\n\n_dereq_('inherits')(Duplex, Readable);\n\n{\n // Allow the keys array to be GC'ed.\n var keys = objectKeys(Writable.prototype);\n\n for (var v = 0; v < keys.length; v++) {\n var method = keys[v];\n if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];\n }\n}\n\nfunction Duplex(options) {\n if (!(this instanceof Duplex)) return new Duplex(options);\n Readable.call(this, options);\n Writable.call(this, options);\n this.allowHalfOpen = true;\n\n if (options) {\n if (options.readable === false) this.readable = false;\n if (options.writable === false) this.writable = false;\n\n if (options.allowHalfOpen === false) {\n this.allowHalfOpen = false;\n this.once('end', onend);\n }\n }\n}\n\nObject.defineProperty(Duplex.prototype, 'writableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState.highWaterMark;\n }\n});\nObject.defineProperty(Duplex.prototype, 'writableBuffer', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState && this._writableState.getBuffer();\n }\n});\nObject.defineProperty(Duplex.prototype, 'writableLength', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState.length;\n }\n}); // the no-half-open enforcer\n\nfunction onend() {\n // If the writable side ended, then we're ok.\n if (this._writableState.ended) return; // no more data can be written.\n // But allow more writes to happen in this tick.\n\n process.nextTick(onEndNT, this);\n}\n\nfunction onEndNT(self) {\n self.end();\n}\n\nObject.defineProperty(Duplex.prototype, 'destroyed', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n if (this._readableState === undefined || this._writableState === undefined) {\n return false;\n }\n\n return this._readableState.destroyed && this._writableState.destroyed;\n },\n set: function set(value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (this._readableState === undefined || this._writableState === undefined) {\n return;\n } // backward compatibility, the user is explicitly\n // managing destroyed\n\n\n this._readableState.destroyed = value;\n this._writableState.destroyed = value;\n }\n});\n}).call(this)}).call(this,_dereq_('_process'))\n},{\"./_stream_readable\":289,\"./_stream_writable\":291,\"_process\":277,\"inherits\":231}],288:[function(_dereq_,module,exports){\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n// a passthrough stream.\n// basically just the most minimal sort of Transform stream.\n// Every written chunk gets output as-is.\n'use strict';\n\nmodule.exports = PassThrough;\n\nvar Transform = _dereq_('./_stream_transform');\n\n_dereq_('inherits')(PassThrough, Transform);\n\nfunction PassThrough(options) {\n if (!(this instanceof PassThrough)) return new PassThrough(options);\n Transform.call(this, options);\n}\n\nPassThrough.prototype._transform = function (chunk, encoding, cb) {\n cb(null, chunk);\n};\n},{\"./_stream_transform\":290,\"inherits\":231}],289:[function(_dereq_,module,exports){\n(function (process,global){(function (){\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n'use strict';\n\nmodule.exports = Readable;\n/**/\n\nvar Duplex;\n/**/\n\nReadable.ReadableState = ReadableState;\n/**/\n\nvar EE = _dereq_('events').EventEmitter;\n\nvar EElistenerCount = function EElistenerCount(emitter, type) {\n return emitter.listeners(type).length;\n};\n/**/\n\n/**/\n\n\nvar Stream = _dereq_('./internal/streams/stream');\n/**/\n\n\nvar Buffer = _dereq_('buffer').Buffer;\n\nvar OurUint8Array = global.Uint8Array || function () {};\n\nfunction _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk);\n}\n\nfunction _isUint8Array(obj) {\n return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\n}\n/**/\n\n\nvar debugUtil = _dereq_('util');\n\nvar debug;\n\nif (debugUtil && debugUtil.debuglog) {\n debug = debugUtil.debuglog('stream');\n} else {\n debug = function debug() {};\n}\n/**/\n\n\nvar BufferList = _dereq_('./internal/streams/buffer_list');\n\nvar destroyImpl = _dereq_('./internal/streams/destroy');\n\nvar _require = _dereq_('./internal/streams/state'),\n getHighWaterMark = _require.getHighWaterMark;\n\nvar _require$codes = _dereq_('../errors').codes,\n ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE,\n ERR_STREAM_PUSH_AFTER_EOF = _require$codes.ERR_STREAM_PUSH_AFTER_EOF,\n ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,\n ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT; // Lazy loaded to improve the startup performance.\n\n\nvar StringDecoder;\nvar createReadableStreamAsyncIterator;\nvar from;\n\n_dereq_('inherits')(Readable, Stream);\n\nvar errorOrDestroy = destroyImpl.errorOrDestroy;\nvar kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume'];\n\nfunction prependListener(emitter, event, fn) {\n // Sadly this is not cacheable as some libraries bundle their own\n // event emitter implementation with them.\n if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn); // This is a hack to make sure that our error handler is attached before any\n // userland ones. NEVER DO THIS. This is here only because this code needs\n // to continue to work with older versions of Node.js that do not include\n // the prependListener() method. The goal is to eventually remove this hack.\n\n if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (Array.isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]];\n}\n\nfunction ReadableState(options, stream, isDuplex) {\n Duplex = Duplex || _dereq_('./_stream_duplex');\n options = options || {}; // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream.\n // These options can be provided separately as readableXXX and writableXXX.\n\n if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex; // object stream flag. Used to make read(n) ignore n and to\n // make all the buffer merging and length checks go away\n\n this.objectMode = !!options.objectMode;\n if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode; // the point at which it stops calling _read() to fill the buffer\n // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\n\n this.highWaterMark = getHighWaterMark(this, options, 'readableHighWaterMark', isDuplex); // A linked list is used to store data chunks instead of an array because the\n // linked list can remove elements from the beginning faster than\n // array.shift()\n\n this.buffer = new BufferList();\n this.length = 0;\n this.pipes = null;\n this.pipesCount = 0;\n this.flowing = null;\n this.ended = false;\n this.endEmitted = false;\n this.reading = false; // a flag to be able to tell if the event 'readable'/'data' is emitted\n // immediately, or on a later tick. We set this to true at first, because\n // any actions that shouldn't happen until \"later\" should generally also\n // not happen before the first read call.\n\n this.sync = true; // whenever we return null, then we set a flag to say\n // that we're awaiting a 'readable' event emission.\n\n this.needReadable = false;\n this.emittedReadable = false;\n this.readableListening = false;\n this.resumeScheduled = false;\n this.paused = true; // Should close be emitted on destroy. Defaults to true.\n\n this.emitClose = options.emitClose !== false; // Should .destroy() be called after 'end' (and potentially 'finish')\n\n this.autoDestroy = !!options.autoDestroy; // has it been destroyed\n\n this.destroyed = false; // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n\n this.defaultEncoding = options.defaultEncoding || 'utf8'; // the number of writers that are awaiting a drain event in .pipe()s\n\n this.awaitDrain = 0; // if true, a maybeReadMore has been scheduled\n\n this.readingMore = false;\n this.decoder = null;\n this.encoding = null;\n\n if (options.encoding) {\n if (!StringDecoder) StringDecoder = _dereq_('string_decoder/').StringDecoder;\n this.decoder = new StringDecoder(options.encoding);\n this.encoding = options.encoding;\n }\n}\n\nfunction Readable(options) {\n Duplex = Duplex || _dereq_('./_stream_duplex');\n if (!(this instanceof Readable)) return new Readable(options); // Checking for a Stream.Duplex instance is faster here instead of inside\n // the ReadableState constructor, at least with V8 6.5\n\n var isDuplex = this instanceof Duplex;\n this._readableState = new ReadableState(options, this, isDuplex); // legacy\n\n this.readable = true;\n\n if (options) {\n if (typeof options.read === 'function') this._read = options.read;\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\n }\n\n Stream.call(this);\n}\n\nObject.defineProperty(Readable.prototype, 'destroyed', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n if (this._readableState === undefined) {\n return false;\n }\n\n return this._readableState.destroyed;\n },\n set: function set(value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (!this._readableState) {\n return;\n } // backward compatibility, the user is explicitly\n // managing destroyed\n\n\n this._readableState.destroyed = value;\n }\n});\nReadable.prototype.destroy = destroyImpl.destroy;\nReadable.prototype._undestroy = destroyImpl.undestroy;\n\nReadable.prototype._destroy = function (err, cb) {\n cb(err);\n}; // Manually shove something into the read() buffer.\n// This returns true if the highWaterMark has not been hit yet,\n// similar to how Writable.write() returns true if you should\n// write() some more.\n\n\nReadable.prototype.push = function (chunk, encoding) {\n var state = this._readableState;\n var skipChunkCheck;\n\n if (!state.objectMode) {\n if (typeof chunk === 'string') {\n encoding = encoding || state.defaultEncoding;\n\n if (encoding !== state.encoding) {\n chunk = Buffer.from(chunk, encoding);\n encoding = '';\n }\n\n skipChunkCheck = true;\n }\n } else {\n skipChunkCheck = true;\n }\n\n return readableAddChunk(this, chunk, encoding, false, skipChunkCheck);\n}; // Unshift should *always* be something directly out of read()\n\n\nReadable.prototype.unshift = function (chunk) {\n return readableAddChunk(this, chunk, null, true, false);\n};\n\nfunction readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) {\n debug('readableAddChunk', chunk);\n var state = stream._readableState;\n\n if (chunk === null) {\n state.reading = false;\n onEofChunk(stream, state);\n } else {\n var er;\n if (!skipChunkCheck) er = chunkInvalid(state, chunk);\n\n if (er) {\n errorOrDestroy(stream, er);\n } else if (state.objectMode || chunk && chunk.length > 0) {\n if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) {\n chunk = _uint8ArrayToBuffer(chunk);\n }\n\n if (addToFront) {\n if (state.endEmitted) errorOrDestroy(stream, new ERR_STREAM_UNSHIFT_AFTER_END_EVENT());else addChunk(stream, state, chunk, true);\n } else if (state.ended) {\n errorOrDestroy(stream, new ERR_STREAM_PUSH_AFTER_EOF());\n } else if (state.destroyed) {\n return false;\n } else {\n state.reading = false;\n\n if (state.decoder && !encoding) {\n chunk = state.decoder.write(chunk);\n if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state);\n } else {\n addChunk(stream, state, chunk, false);\n }\n }\n } else if (!addToFront) {\n state.reading = false;\n maybeReadMore(stream, state);\n }\n } // We can push more data if we are below the highWaterMark.\n // Also, if we have no data yet, we can stand some more bytes.\n // This is to work around cases where hwm=0, such as the repl.\n\n\n return !state.ended && (state.length < state.highWaterMark || state.length === 0);\n}\n\nfunction addChunk(stream, state, chunk, addToFront) {\n if (state.flowing && state.length === 0 && !state.sync) {\n state.awaitDrain = 0;\n stream.emit('data', chunk);\n } else {\n // update the buffer info.\n state.length += state.objectMode ? 1 : chunk.length;\n if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk);\n if (state.needReadable) emitReadable(stream);\n }\n\n maybeReadMore(stream, state);\n}\n\nfunction chunkInvalid(state, chunk) {\n var er;\n\n if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {\n er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer', 'Uint8Array'], chunk);\n }\n\n return er;\n}\n\nReadable.prototype.isPaused = function () {\n return this._readableState.flowing === false;\n}; // backwards compatibility.\n\n\nReadable.prototype.setEncoding = function (enc) {\n if (!StringDecoder) StringDecoder = _dereq_('string_decoder/').StringDecoder;\n var decoder = new StringDecoder(enc);\n this._readableState.decoder = decoder; // If setEncoding(null), decoder.encoding equals utf8\n\n this._readableState.encoding = this._readableState.decoder.encoding; // Iterate over current buffer to convert already stored Buffers:\n\n var p = this._readableState.buffer.head;\n var content = '';\n\n while (p !== null) {\n content += decoder.write(p.data);\n p = p.next;\n }\n\n this._readableState.buffer.clear();\n\n if (content !== '') this._readableState.buffer.push(content);\n this._readableState.length = content.length;\n return this;\n}; // Don't raise the hwm > 1GB\n\n\nvar MAX_HWM = 0x40000000;\n\nfunction computeNewHighWaterMark(n) {\n if (n >= MAX_HWM) {\n // TODO(ronag): Throw ERR_VALUE_OUT_OF_RANGE.\n n = MAX_HWM;\n } else {\n // Get the next highest power of 2 to prevent increasing hwm excessively in\n // tiny amounts\n n--;\n n |= n >>> 1;\n n |= n >>> 2;\n n |= n >>> 4;\n n |= n >>> 8;\n n |= n >>> 16;\n n++;\n }\n\n return n;\n} // This function is designed to be inlinable, so please take care when making\n// changes to the function body.\n\n\nfunction howMuchToRead(n, state) {\n if (n <= 0 || state.length === 0 && state.ended) return 0;\n if (state.objectMode) return 1;\n\n if (n !== n) {\n // Only flow one buffer at a time\n if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length;\n } // If we're asking for more than the current hwm, then raise the hwm.\n\n\n if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);\n if (n <= state.length) return n; // Don't have enough\n\n if (!state.ended) {\n state.needReadable = true;\n return 0;\n }\n\n return state.length;\n} // you can override either this method, or the async _read(n) below.\n\n\nReadable.prototype.read = function (n) {\n debug('read', n);\n n = parseInt(n, 10);\n var state = this._readableState;\n var nOrig = n;\n if (n !== 0) state.emittedReadable = false; // if we're doing read(0) to trigger a readable event, but we\n // already have a bunch of data in the buffer, then just trigger\n // the 'readable' event and move on.\n\n if (n === 0 && state.needReadable && ((state.highWaterMark !== 0 ? state.length >= state.highWaterMark : state.length > 0) || state.ended)) {\n debug('read: emitReadable', state.length, state.ended);\n if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this);\n return null;\n }\n\n n = howMuchToRead(n, state); // if we've ended, and we're now clear, then finish it up.\n\n if (n === 0 && state.ended) {\n if (state.length === 0) endReadable(this);\n return null;\n } // All the actual chunk generation logic needs to be\n // *below* the call to _read. The reason is that in certain\n // synthetic stream cases, such as passthrough streams, _read\n // may be a completely synchronous operation which may change\n // the state of the read buffer, providing enough data when\n // before there was *not* enough.\n //\n // So, the steps are:\n // 1. Figure out what the state of things will be after we do\n // a read from the buffer.\n //\n // 2. If that resulting state will trigger a _read, then call _read.\n // Note that this may be asynchronous, or synchronous. Yes, it is\n // deeply ugly to write APIs this way, but that still doesn't mean\n // that the Readable class should behave improperly, as streams are\n // designed to be sync/async agnostic.\n // Take note if the _read call is sync or async (ie, if the read call\n // has returned yet), so that we know whether or not it's safe to emit\n // 'readable' etc.\n //\n // 3. Actually pull the requested chunks out of the buffer and return.\n // if we need a readable event, then we need to do some reading.\n\n\n var doRead = state.needReadable;\n debug('need readable', doRead); // if we currently have less than the highWaterMark, then also read some\n\n if (state.length === 0 || state.length - n < state.highWaterMark) {\n doRead = true;\n debug('length less than watermark', doRead);\n } // however, if we've ended, then there's no point, and if we're already\n // reading, then it's unnecessary.\n\n\n if (state.ended || state.reading) {\n doRead = false;\n debug('reading or ended', doRead);\n } else if (doRead) {\n debug('do read');\n state.reading = true;\n state.sync = true; // if the length is currently zero, then we *need* a readable event.\n\n if (state.length === 0) state.needReadable = true; // call internal read method\n\n this._read(state.highWaterMark);\n\n state.sync = false; // If _read pushed data synchronously, then `reading` will be false,\n // and we need to re-evaluate how much data we can return to the user.\n\n if (!state.reading) n = howMuchToRead(nOrig, state);\n }\n\n var ret;\n if (n > 0) ret = fromList(n, state);else ret = null;\n\n if (ret === null) {\n state.needReadable = state.length <= state.highWaterMark;\n n = 0;\n } else {\n state.length -= n;\n state.awaitDrain = 0;\n }\n\n if (state.length === 0) {\n // If we have nothing in the buffer, then we want to know\n // as soon as we *do* get something into the buffer.\n if (!state.ended) state.needReadable = true; // If we tried to read() past the EOF, then emit end on the next tick.\n\n if (nOrig !== n && state.ended) endReadable(this);\n }\n\n if (ret !== null) this.emit('data', ret);\n return ret;\n};\n\nfunction onEofChunk(stream, state) {\n debug('onEofChunk');\n if (state.ended) return;\n\n if (state.decoder) {\n var chunk = state.decoder.end();\n\n if (chunk && chunk.length) {\n state.buffer.push(chunk);\n state.length += state.objectMode ? 1 : chunk.length;\n }\n }\n\n state.ended = true;\n\n if (state.sync) {\n // if we are sync, wait until next tick to emit the data.\n // Otherwise we risk emitting data in the flow()\n // the readable code triggers during a read() call\n emitReadable(stream);\n } else {\n // emit 'readable' now to make sure it gets picked up.\n state.needReadable = false;\n\n if (!state.emittedReadable) {\n state.emittedReadable = true;\n emitReadable_(stream);\n }\n }\n} // Don't emit readable right away in sync mode, because this can trigger\n// another read() call => stack overflow. This way, it might trigger\n// a nextTick recursion warning, but that's not so bad.\n\n\nfunction emitReadable(stream) {\n var state = stream._readableState;\n debug('emitReadable', state.needReadable, state.emittedReadable);\n state.needReadable = false;\n\n if (!state.emittedReadable) {\n debug('emitReadable', state.flowing);\n state.emittedReadable = true;\n process.nextTick(emitReadable_, stream);\n }\n}\n\nfunction emitReadable_(stream) {\n var state = stream._readableState;\n debug('emitReadable_', state.destroyed, state.length, state.ended);\n\n if (!state.destroyed && (state.length || state.ended)) {\n stream.emit('readable');\n state.emittedReadable = false;\n } // The stream needs another readable event if\n // 1. It is not flowing, as the flow mechanism will take\n // care of it.\n // 2. It is not ended.\n // 3. It is below the highWaterMark, so we can schedule\n // another readable later.\n\n\n state.needReadable = !state.flowing && !state.ended && state.length <= state.highWaterMark;\n flow(stream);\n} // at this point, the user has presumably seen the 'readable' event,\n// and called read() to consume some data. that may have triggered\n// in turn another _read(n) call, in which case reading = true if\n// it's in progress.\n// However, if we're not ended, or reading, and the length < hwm,\n// then go ahead and try to read some more preemptively.\n\n\nfunction maybeReadMore(stream, state) {\n if (!state.readingMore) {\n state.readingMore = true;\n process.nextTick(maybeReadMore_, stream, state);\n }\n}\n\nfunction maybeReadMore_(stream, state) {\n // Attempt to read more data if we should.\n //\n // The conditions for reading more data are (one of):\n // - Not enough data buffered (state.length < state.highWaterMark). The loop\n // is responsible for filling the buffer with enough data if such data\n // is available. If highWaterMark is 0 and we are not in the flowing mode\n // we should _not_ attempt to buffer any extra data. We'll get more data\n // when the stream consumer calls read() instead.\n // - No data in the buffer, and the stream is in flowing mode. In this mode\n // the loop below is responsible for ensuring read() is called. Failing to\n // call read here would abort the flow and there's no other mechanism for\n // continuing the flow if the stream consumer has just subscribed to the\n // 'data' event.\n //\n // In addition to the above conditions to keep reading data, the following\n // conditions prevent the data from being read:\n // - The stream has ended (state.ended).\n // - There is already a pending 'read' operation (state.reading). This is a\n // case where the the stream has called the implementation defined _read()\n // method, but they are processing the call asynchronously and have _not_\n // called push() with new data. In this case we skip performing more\n // read()s. The execution ends in this method again after the _read() ends\n // up calling push() with more data.\n while (!state.reading && !state.ended && (state.length < state.highWaterMark || state.flowing && state.length === 0)) {\n var len = state.length;\n debug('maybeReadMore read 0');\n stream.read(0);\n if (len === state.length) // didn't get any data, stop spinning.\n break;\n }\n\n state.readingMore = false;\n} // abstract method. to be overridden in specific implementation classes.\n// call cb(er, data) where data is <= n in length.\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\n// arbitrary, and perhaps not very meaningful.\n\n\nReadable.prototype._read = function (n) {\n errorOrDestroy(this, new ERR_METHOD_NOT_IMPLEMENTED('_read()'));\n};\n\nReadable.prototype.pipe = function (dest, pipeOpts) {\n var src = this;\n var state = this._readableState;\n\n switch (state.pipesCount) {\n case 0:\n state.pipes = dest;\n break;\n\n case 1:\n state.pipes = [state.pipes, dest];\n break;\n\n default:\n state.pipes.push(dest);\n break;\n }\n\n state.pipesCount += 1;\n debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);\n var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;\n var endFn = doEnd ? onend : unpipe;\n if (state.endEmitted) process.nextTick(endFn);else src.once('end', endFn);\n dest.on('unpipe', onunpipe);\n\n function onunpipe(readable, unpipeInfo) {\n debug('onunpipe');\n\n if (readable === src) {\n if (unpipeInfo && unpipeInfo.hasUnpiped === false) {\n unpipeInfo.hasUnpiped = true;\n cleanup();\n }\n }\n }\n\n function onend() {\n debug('onend');\n dest.end();\n } // when the dest drains, it reduces the awaitDrain counter\n // on the source. This would be more elegant with a .once()\n // handler in flow(), but adding and removing repeatedly is\n // too slow.\n\n\n var ondrain = pipeOnDrain(src);\n dest.on('drain', ondrain);\n var cleanedUp = false;\n\n function cleanup() {\n debug('cleanup'); // cleanup event handlers once the pipe is broken\n\n dest.removeListener('close', onclose);\n dest.removeListener('finish', onfinish);\n dest.removeListener('drain', ondrain);\n dest.removeListener('error', onerror);\n dest.removeListener('unpipe', onunpipe);\n src.removeListener('end', onend);\n src.removeListener('end', unpipe);\n src.removeListener('data', ondata);\n cleanedUp = true; // if the reader is waiting for a drain event from this\n // specific writer, then it would cause it to never start\n // flowing again.\n // So, if this is awaiting a drain, then we just call it now.\n // If we don't know, then assume that we are waiting for one.\n\n if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain();\n }\n\n src.on('data', ondata);\n\n function ondata(chunk) {\n debug('ondata');\n var ret = dest.write(chunk);\n debug('dest.write', ret);\n\n if (ret === false) {\n // If the user unpiped during `dest.write()`, it is possible\n // to get stuck in a permanently paused state if that write\n // also returned false.\n // => Check whether `dest` is still a piping destination.\n if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {\n debug('false write response, pause', state.awaitDrain);\n state.awaitDrain++;\n }\n\n src.pause();\n }\n } // if the dest has an error, then stop piping into it.\n // however, don't suppress the throwing behavior for this.\n\n\n function onerror(er) {\n debug('onerror', er);\n unpipe();\n dest.removeListener('error', onerror);\n if (EElistenerCount(dest, 'error') === 0) errorOrDestroy(dest, er);\n } // Make sure our error handler is attached before userland ones.\n\n\n prependListener(dest, 'error', onerror); // Both close and finish should trigger unpipe, but only once.\n\n function onclose() {\n dest.removeListener('finish', onfinish);\n unpipe();\n }\n\n dest.once('close', onclose);\n\n function onfinish() {\n debug('onfinish');\n dest.removeListener('close', onclose);\n unpipe();\n }\n\n dest.once('finish', onfinish);\n\n function unpipe() {\n debug('unpipe');\n src.unpipe(dest);\n } // tell the dest that it's being piped to\n\n\n dest.emit('pipe', src); // start the flow if it hasn't been started already.\n\n if (!state.flowing) {\n debug('pipe resume');\n src.resume();\n }\n\n return dest;\n};\n\nfunction pipeOnDrain(src) {\n return function pipeOnDrainFunctionResult() {\n var state = src._readableState;\n debug('pipeOnDrain', state.awaitDrain);\n if (state.awaitDrain) state.awaitDrain--;\n\n if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {\n state.flowing = true;\n flow(src);\n }\n };\n}\n\nReadable.prototype.unpipe = function (dest) {\n var state = this._readableState;\n var unpipeInfo = {\n hasUnpiped: false\n }; // if we're not piping anywhere, then do nothing.\n\n if (state.pipesCount === 0) return this; // just one destination. most common case.\n\n if (state.pipesCount === 1) {\n // passed in one, but it's not the right one.\n if (dest && dest !== state.pipes) return this;\n if (!dest) dest = state.pipes; // got a match.\n\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n if (dest) dest.emit('unpipe', this, unpipeInfo);\n return this;\n } // slow case. multiple pipe destinations.\n\n\n if (!dest) {\n // remove all.\n var dests = state.pipes;\n var len = state.pipesCount;\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n\n for (var i = 0; i < len; i++) {\n dests[i].emit('unpipe', this, {\n hasUnpiped: false\n });\n }\n\n return this;\n } // try to find the right one.\n\n\n var index = indexOf(state.pipes, dest);\n if (index === -1) return this;\n state.pipes.splice(index, 1);\n state.pipesCount -= 1;\n if (state.pipesCount === 1) state.pipes = state.pipes[0];\n dest.emit('unpipe', this, unpipeInfo);\n return this;\n}; // set up data events if they are asked for\n// Ensure readable listeners eventually get something\n\n\nReadable.prototype.on = function (ev, fn) {\n var res = Stream.prototype.on.call(this, ev, fn);\n var state = this._readableState;\n\n if (ev === 'data') {\n // update readableListening so that resume() may be a no-op\n // a few lines down. This is needed to support once('readable').\n state.readableListening = this.listenerCount('readable') > 0; // Try start flowing on next tick if stream isn't explicitly paused\n\n if (state.flowing !== false) this.resume();\n } else if (ev === 'readable') {\n if (!state.endEmitted && !state.readableListening) {\n state.readableListening = state.needReadable = true;\n state.flowing = false;\n state.emittedReadable = false;\n debug('on readable', state.length, state.reading);\n\n if (state.length) {\n emitReadable(this);\n } else if (!state.reading) {\n process.nextTick(nReadingNextTick, this);\n }\n }\n }\n\n return res;\n};\n\nReadable.prototype.addListener = Readable.prototype.on;\n\nReadable.prototype.removeListener = function (ev, fn) {\n var res = Stream.prototype.removeListener.call(this, ev, fn);\n\n if (ev === 'readable') {\n // We need to check if there is someone still listening to\n // readable and reset the state. However this needs to happen\n // after readable has been emitted but before I/O (nextTick) to\n // support once('readable', fn) cycles. This means that calling\n // resume within the same tick will have no\n // effect.\n process.nextTick(updateReadableListening, this);\n }\n\n return res;\n};\n\nReadable.prototype.removeAllListeners = function (ev) {\n var res = Stream.prototype.removeAllListeners.apply(this, arguments);\n\n if (ev === 'readable' || ev === undefined) {\n // We need to check if there is someone still listening to\n // readable and reset the state. However this needs to happen\n // after readable has been emitted but before I/O (nextTick) to\n // support once('readable', fn) cycles. This means that calling\n // resume within the same tick will have no\n // effect.\n process.nextTick(updateReadableListening, this);\n }\n\n return res;\n};\n\nfunction updateReadableListening(self) {\n var state = self._readableState;\n state.readableListening = self.listenerCount('readable') > 0;\n\n if (state.resumeScheduled && !state.paused) {\n // flowing needs to be set to true now, otherwise\n // the upcoming resume will not flow.\n state.flowing = true; // crude way to check if we should resume\n } else if (self.listenerCount('data') > 0) {\n self.resume();\n }\n}\n\nfunction nReadingNextTick(self) {\n debug('readable nexttick read 0');\n self.read(0);\n} // pause() and resume() are remnants of the legacy readable stream API\n// If the user uses them, then switch into old mode.\n\n\nReadable.prototype.resume = function () {\n var state = this._readableState;\n\n if (!state.flowing) {\n debug('resume'); // we flow only if there is no one listening\n // for readable, but we still have to call\n // resume()\n\n state.flowing = !state.readableListening;\n resume(this, state);\n }\n\n state.paused = false;\n return this;\n};\n\nfunction resume(stream, state) {\n if (!state.resumeScheduled) {\n state.resumeScheduled = true;\n process.nextTick(resume_, stream, state);\n }\n}\n\nfunction resume_(stream, state) {\n debug('resume', state.reading);\n\n if (!state.reading) {\n stream.read(0);\n }\n\n state.resumeScheduled = false;\n stream.emit('resume');\n flow(stream);\n if (state.flowing && !state.reading) stream.read(0);\n}\n\nReadable.prototype.pause = function () {\n debug('call pause flowing=%j', this._readableState.flowing);\n\n if (this._readableState.flowing !== false) {\n debug('pause');\n this._readableState.flowing = false;\n this.emit('pause');\n }\n\n this._readableState.paused = true;\n return this;\n};\n\nfunction flow(stream) {\n var state = stream._readableState;\n debug('flow', state.flowing);\n\n while (state.flowing && stream.read() !== null) {\n ;\n }\n} // wrap an old-style stream as the async data source.\n// This is *not* part of the readable stream interface.\n// It is an ugly unfortunate mess of history.\n\n\nReadable.prototype.wrap = function (stream) {\n var _this = this;\n\n var state = this._readableState;\n var paused = false;\n stream.on('end', function () {\n debug('wrapped end');\n\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) _this.push(chunk);\n }\n\n _this.push(null);\n });\n stream.on('data', function (chunk) {\n debug('wrapped data');\n if (state.decoder) chunk = state.decoder.write(chunk); // don't skip over falsy values in objectMode\n\n if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return;\n\n var ret = _this.push(chunk);\n\n if (!ret) {\n paused = true;\n stream.pause();\n }\n }); // proxy all the other methods.\n // important when wrapping filters and duplexes.\n\n for (var i in stream) {\n if (this[i] === undefined && typeof stream[i] === 'function') {\n this[i] = function methodWrap(method) {\n return function methodWrapReturnFunction() {\n return stream[method].apply(stream, arguments);\n };\n }(i);\n }\n } // proxy certain important events.\n\n\n for (var n = 0; n < kProxyEvents.length; n++) {\n stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n]));\n } // when we try to consume some more bytes, simply unpause the\n // underlying stream.\n\n\n this._read = function (n) {\n debug('wrapped _read', n);\n\n if (paused) {\n paused = false;\n stream.resume();\n }\n };\n\n return this;\n};\n\nif (typeof Symbol === 'function') {\n Readable.prototype[Symbol.asyncIterator] = function () {\n if (createReadableStreamAsyncIterator === undefined) {\n createReadableStreamAsyncIterator = _dereq_('./internal/streams/async_iterator');\n }\n\n return createReadableStreamAsyncIterator(this);\n };\n}\n\nObject.defineProperty(Readable.prototype, 'readableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._readableState.highWaterMark;\n }\n});\nObject.defineProperty(Readable.prototype, 'readableBuffer', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._readableState && this._readableState.buffer;\n }\n});\nObject.defineProperty(Readable.prototype, 'readableFlowing', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._readableState.flowing;\n },\n set: function set(state) {\n if (this._readableState) {\n this._readableState.flowing = state;\n }\n }\n}); // exposed for testing purposes only.\n\nReadable._fromList = fromList;\nObject.defineProperty(Readable.prototype, 'readableLength', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._readableState.length;\n }\n}); // Pluck off n bytes from an array of buffers.\n// Length is the combined lengths of all the buffers in the list.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\n\nfunction fromList(n, state) {\n // nothing buffered\n if (state.length === 0) return null;\n var ret;\n if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) {\n // read it all, truncate the list\n if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.first();else ret = state.buffer.concat(state.length);\n state.buffer.clear();\n } else {\n // read part of list\n ret = state.buffer.consume(n, state.decoder);\n }\n return ret;\n}\n\nfunction endReadable(stream) {\n var state = stream._readableState;\n debug('endReadable', state.endEmitted);\n\n if (!state.endEmitted) {\n state.ended = true;\n process.nextTick(endReadableNT, state, stream);\n }\n}\n\nfunction endReadableNT(state, stream) {\n debug('endReadableNT', state.endEmitted, state.length); // Check that we didn't get one last unshift.\n\n if (!state.endEmitted && state.length === 0) {\n state.endEmitted = true;\n stream.readable = false;\n stream.emit('end');\n\n if (state.autoDestroy) {\n // In case of duplex streams we need a way to detect\n // if the writable side is ready for autoDestroy as well\n var wState = stream._writableState;\n\n if (!wState || wState.autoDestroy && wState.finished) {\n stream.destroy();\n }\n }\n }\n}\n\nif (typeof Symbol === 'function') {\n Readable.from = function (iterable, opts) {\n if (from === undefined) {\n from = _dereq_('./internal/streams/from');\n }\n\n return from(Readable, iterable, opts);\n };\n}\n\nfunction indexOf(xs, x) {\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) return i;\n }\n\n return -1;\n}\n}).call(this)}).call(this,_dereq_('_process'),typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{\"../errors\":286,\"./_stream_duplex\":287,\"./internal/streams/async_iterator\":292,\"./internal/streams/buffer_list\":293,\"./internal/streams/destroy\":294,\"./internal/streams/from\":296,\"./internal/streams/state\":298,\"./internal/streams/stream\":299,\"_process\":277,\"buffer\":85,\"events\":84,\"inherits\":231,\"string_decoder/\":300,\"util\":83}],290:[function(_dereq_,module,exports){\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n// a transform stream is a readable/writable stream where you do\n// something with the data. Sometimes it's called a \"filter\",\n// but that's not a great name for it, since that implies a thing where\n// some bits pass through, and others are simply ignored. (That would\n// be a valid example of a transform, of course.)\n//\n// While the output is causally related to the input, it's not a\n// necessarily symmetric or synchronous transformation. For example,\n// a zlib stream might take multiple plain-text writes(), and then\n// emit a single compressed chunk some time in the future.\n//\n// Here's how this works:\n//\n// The Transform stream has all the aspects of the readable and writable\n// stream classes. When you write(chunk), that calls _write(chunk,cb)\n// internally, and returns false if there's a lot of pending writes\n// buffered up. When you call read(), that calls _read(n) until\n// there's enough pending readable data buffered up.\n//\n// In a transform stream, the written data is placed in a buffer. When\n// _read(n) is called, it transforms the queued up data, calling the\n// buffered _write cb's as it consumes chunks. If consuming a single\n// written chunk would result in multiple output chunks, then the first\n// outputted bit calls the readcb, and subsequent chunks just go into\n// the read buffer, and will cause it to emit 'readable' if necessary.\n//\n// This way, back-pressure is actually determined by the reading side,\n// since _read has to be called to start processing a new chunk. However,\n// a pathological inflate type of transform can cause excessive buffering\n// here. For example, imagine a stream where every byte of input is\n// interpreted as an integer from 0-255, and then results in that many\n// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in\n// 1kb of data being output. In this case, you could write a very small\n// amount of input, and end up with a very large amount of output. In\n// such a pathological inflating mechanism, there'd be no way to tell\n// the system to stop doing the transform. A single 4MB write could\n// cause the system to run out of memory.\n//\n// However, even in such a pathological case, only a single written chunk\n// would be consumed, and then the rest would wait (un-transformed) until\n// the results of the previous transformed chunk were consumed.\n'use strict';\n\nmodule.exports = Transform;\n\nvar _require$codes = _dereq_('../errors').codes,\n ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,\n ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK,\n ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING,\n ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0;\n\nvar Duplex = _dereq_('./_stream_duplex');\n\n_dereq_('inherits')(Transform, Duplex);\n\nfunction afterTransform(er, data) {\n var ts = this._transformState;\n ts.transforming = false;\n var cb = ts.writecb;\n\n if (cb === null) {\n return this.emit('error', new ERR_MULTIPLE_CALLBACK());\n }\n\n ts.writechunk = null;\n ts.writecb = null;\n if (data != null) // single equals check for both `null` and `undefined`\n this.push(data);\n cb(er);\n var rs = this._readableState;\n rs.reading = false;\n\n if (rs.needReadable || rs.length < rs.highWaterMark) {\n this._read(rs.highWaterMark);\n }\n}\n\nfunction Transform(options) {\n if (!(this instanceof Transform)) return new Transform(options);\n Duplex.call(this, options);\n this._transformState = {\n afterTransform: afterTransform.bind(this),\n needTransform: false,\n transforming: false,\n writecb: null,\n writechunk: null,\n writeencoding: null\n }; // start out asking for a readable event once data is transformed.\n\n this._readableState.needReadable = true; // we have implemented the _read method, and done the other things\n // that Readable wants before the first _read call, so unset the\n // sync guard flag.\n\n this._readableState.sync = false;\n\n if (options) {\n if (typeof options.transform === 'function') this._transform = options.transform;\n if (typeof options.flush === 'function') this._flush = options.flush;\n } // When the writable side finishes, then flush out anything remaining.\n\n\n this.on('prefinish', prefinish);\n}\n\nfunction prefinish() {\n var _this = this;\n\n if (typeof this._flush === 'function' && !this._readableState.destroyed) {\n this._flush(function (er, data) {\n done(_this, er, data);\n });\n } else {\n done(this, null, null);\n }\n}\n\nTransform.prototype.push = function (chunk, encoding) {\n this._transformState.needTransform = false;\n return Duplex.prototype.push.call(this, chunk, encoding);\n}; // This is the part where you do stuff!\n// override this function in implementation classes.\n// 'chunk' is an input chunk.\n//\n// Call `push(newChunk)` to pass along transformed output\n// to the readable side. You may call 'push' zero or more times.\n//\n// Call `cb(err)` when you are done with this chunk. If you pass\n// an error, then that'll put the hurt on the whole operation. If you\n// never call cb(), then you'll never get another chunk.\n\n\nTransform.prototype._transform = function (chunk, encoding, cb) {\n cb(new ERR_METHOD_NOT_IMPLEMENTED('_transform()'));\n};\n\nTransform.prototype._write = function (chunk, encoding, cb) {\n var ts = this._transformState;\n ts.writecb = cb;\n ts.writechunk = chunk;\n ts.writeencoding = encoding;\n\n if (!ts.transforming) {\n var rs = this._readableState;\n if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);\n }\n}; // Doesn't matter what the args are here.\n// _transform does all the work.\n// That we got here means that the readable side wants more data.\n\n\nTransform.prototype._read = function (n) {\n var ts = this._transformState;\n\n if (ts.writechunk !== null && !ts.transforming) {\n ts.transforming = true;\n\n this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\n } else {\n // mark that we need a transform, so that any data that comes in\n // will get processed, now that we've asked for it.\n ts.needTransform = true;\n }\n};\n\nTransform.prototype._destroy = function (err, cb) {\n Duplex.prototype._destroy.call(this, err, function (err2) {\n cb(err2);\n });\n};\n\nfunction done(stream, er, data) {\n if (er) return stream.emit('error', er);\n if (data != null) // single equals check for both `null` and `undefined`\n stream.push(data); // TODO(BridgeAR): Write a test for these two error cases\n // if there's nothing in the write buffer, then that means\n // that nothing more will ever be provided\n\n if (stream._writableState.length) throw new ERR_TRANSFORM_WITH_LENGTH_0();\n if (stream._transformState.transforming) throw new ERR_TRANSFORM_ALREADY_TRANSFORMING();\n return stream.push(null);\n}\n},{\"../errors\":286,\"./_stream_duplex\":287,\"inherits\":231}],291:[function(_dereq_,module,exports){\n(function (process,global){(function (){\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n// A bit simpler than readable streams.\n// Implement an async ._write(chunk, encoding, cb), and it'll handle all\n// the drain event emission and buffering.\n'use strict';\n\nmodule.exports = Writable;\n/* */\n\nfunction WriteReq(chunk, encoding, cb) {\n this.chunk = chunk;\n this.encoding = encoding;\n this.callback = cb;\n this.next = null;\n} // It seems a linked list but it is not\n// there will be only 2 of these for each stream\n\n\nfunction CorkedRequest(state) {\n var _this = this;\n\n this.next = null;\n this.entry = null;\n\n this.finish = function () {\n onCorkedFinish(_this, state);\n };\n}\n/* */\n\n/**/\n\n\nvar Duplex;\n/**/\n\nWritable.WritableState = WritableState;\n/**/\n\nvar internalUtil = {\n deprecate: _dereq_('util-deprecate')\n};\n/**/\n\n/**/\n\nvar Stream = _dereq_('./internal/streams/stream');\n/**/\n\n\nvar Buffer = _dereq_('buffer').Buffer;\n\nvar OurUint8Array = global.Uint8Array || function () {};\n\nfunction _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk);\n}\n\nfunction _isUint8Array(obj) {\n return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\n}\n\nvar destroyImpl = _dereq_('./internal/streams/destroy');\n\nvar _require = _dereq_('./internal/streams/state'),\n getHighWaterMark = _require.getHighWaterMark;\n\nvar _require$codes = _dereq_('../errors').codes,\n ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE,\n ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,\n ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK,\n ERR_STREAM_CANNOT_PIPE = _require$codes.ERR_STREAM_CANNOT_PIPE,\n ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED,\n ERR_STREAM_NULL_VALUES = _require$codes.ERR_STREAM_NULL_VALUES,\n ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END,\n ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING;\n\nvar errorOrDestroy = destroyImpl.errorOrDestroy;\n\n_dereq_('inherits')(Writable, Stream);\n\nfunction nop() {}\n\nfunction WritableState(options, stream, isDuplex) {\n Duplex = Duplex || _dereq_('./_stream_duplex');\n options = options || {}; // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream,\n // e.g. options.readableObjectMode vs. options.writableObjectMode, etc.\n\n if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex; // object stream flag to indicate whether or not this stream\n // contains buffers or objects.\n\n this.objectMode = !!options.objectMode;\n if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode; // the point at which write() starts returning false\n // Note: 0 is a valid value, means that we always return false if\n // the entire buffer is not flushed immediately on write()\n\n this.highWaterMark = getHighWaterMark(this, options, 'writableHighWaterMark', isDuplex); // if _final has been called\n\n this.finalCalled = false; // drain event flag.\n\n this.needDrain = false; // at the start of calling end()\n\n this.ending = false; // when end() has been called, and returned\n\n this.ended = false; // when 'finish' is emitted\n\n this.finished = false; // has it been destroyed\n\n this.destroyed = false; // should we decode strings into buffers before passing to _write?\n // this is here so that some node-core streams can optimize string\n // handling at a lower level.\n\n var noDecode = options.decodeStrings === false;\n this.decodeStrings = !noDecode; // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n\n this.defaultEncoding = options.defaultEncoding || 'utf8'; // not an actual buffer we keep track of, but a measurement\n // of how much we're waiting to get pushed to some underlying\n // socket or file.\n\n this.length = 0; // a flag to see when we're in the middle of a write.\n\n this.writing = false; // when true all writes will be buffered until .uncork() call\n\n this.corked = 0; // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n\n this.sync = true; // a flag to know if we're processing previously buffered items, which\n // may call the _write() callback in the same tick, so that we don't\n // end up in an overlapped onwrite situation.\n\n this.bufferProcessing = false; // the callback that's passed to _write(chunk,cb)\n\n this.onwrite = function (er) {\n onwrite(stream, er);\n }; // the callback that the user supplies to write(chunk,encoding,cb)\n\n\n this.writecb = null; // the amount that is being written when _write is called.\n\n this.writelen = 0;\n this.bufferedRequest = null;\n this.lastBufferedRequest = null; // number of pending user-supplied write callbacks\n // this must be 0 before 'finish' can be emitted\n\n this.pendingcb = 0; // emit prefinish if the only thing we're waiting for is _write cbs\n // This is relevant for synchronous Transform streams\n\n this.prefinished = false; // True if the error was already emitted and should not be thrown again\n\n this.errorEmitted = false; // Should close be emitted on destroy. Defaults to true.\n\n this.emitClose = options.emitClose !== false; // Should .destroy() be called after 'finish' (and potentially 'end')\n\n this.autoDestroy = !!options.autoDestroy; // count buffered requests\n\n this.bufferedRequestCount = 0; // allocate the first CorkedRequest, there is always\n // one allocated and free to use, and we maintain at most two\n\n this.corkedRequestsFree = new CorkedRequest(this);\n}\n\nWritableState.prototype.getBuffer = function getBuffer() {\n var current = this.bufferedRequest;\n var out = [];\n\n while (current) {\n out.push(current);\n current = current.next;\n }\n\n return out;\n};\n\n(function () {\n try {\n Object.defineProperty(WritableState.prototype, 'buffer', {\n get: internalUtil.deprecate(function writableStateBufferGetter() {\n return this.getBuffer();\n }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003')\n });\n } catch (_) {}\n})(); // Test _writableState for inheritance to account for Duplex streams,\n// whose prototype chain only points to Readable.\n\n\nvar realHasInstance;\n\nif (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') {\n realHasInstance = Function.prototype[Symbol.hasInstance];\n Object.defineProperty(Writable, Symbol.hasInstance, {\n value: function value(object) {\n if (realHasInstance.call(this, object)) return true;\n if (this !== Writable) return false;\n return object && object._writableState instanceof WritableState;\n }\n });\n} else {\n realHasInstance = function realHasInstance(object) {\n return object instanceof this;\n };\n}\n\nfunction Writable(options) {\n Duplex = Duplex || _dereq_('./_stream_duplex'); // Writable ctor is applied to Duplexes, too.\n // `realHasInstance` is necessary because using plain `instanceof`\n // would return false, as no `_writableState` property is attached.\n // Trying to use the custom `instanceof` for Writable here will also break the\n // Node.js LazyTransform implementation, which has a non-trivial getter for\n // `_writableState` that would lead to infinite recursion.\n // Checking for a Stream.Duplex instance is faster here instead of inside\n // the WritableState constructor, at least with V8 6.5\n\n var isDuplex = this instanceof Duplex;\n if (!isDuplex && !realHasInstance.call(Writable, this)) return new Writable(options);\n this._writableState = new WritableState(options, this, isDuplex); // legacy.\n\n this.writable = true;\n\n if (options) {\n if (typeof options.write === 'function') this._write = options.write;\n if (typeof options.writev === 'function') this._writev = options.writev;\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\n if (typeof options.final === 'function') this._final = options.final;\n }\n\n Stream.call(this);\n} // Otherwise people can pipe Writable streams, which is just wrong.\n\n\nWritable.prototype.pipe = function () {\n errorOrDestroy(this, new ERR_STREAM_CANNOT_PIPE());\n};\n\nfunction writeAfterEnd(stream, cb) {\n var er = new ERR_STREAM_WRITE_AFTER_END(); // TODO: defer error events consistently everywhere, not just the cb\n\n errorOrDestroy(stream, er);\n process.nextTick(cb, er);\n} // Checks that a user-supplied chunk is valid, especially for the particular\n// mode the stream is in. Currently this means that `null` is never accepted\n// and undefined/non-string values are only allowed in object mode.\n\n\nfunction validChunk(stream, state, chunk, cb) {\n var er;\n\n if (chunk === null) {\n er = new ERR_STREAM_NULL_VALUES();\n } else if (typeof chunk !== 'string' && !state.objectMode) {\n er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer'], chunk);\n }\n\n if (er) {\n errorOrDestroy(stream, er);\n process.nextTick(cb, er);\n return false;\n }\n\n return true;\n}\n\nWritable.prototype.write = function (chunk, encoding, cb) {\n var state = this._writableState;\n var ret = false;\n\n var isBuf = !state.objectMode && _isUint8Array(chunk);\n\n if (isBuf && !Buffer.isBuffer(chunk)) {\n chunk = _uint8ArrayToBuffer(chunk);\n }\n\n if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding;\n if (typeof cb !== 'function') cb = nop;\n if (state.ending) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) {\n state.pendingcb++;\n ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb);\n }\n return ret;\n};\n\nWritable.prototype.cork = function () {\n this._writableState.corked++;\n};\n\nWritable.prototype.uncork = function () {\n var state = this._writableState;\n\n if (state.corked) {\n state.corked--;\n if (!state.writing && !state.corked && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state);\n }\n};\n\nWritable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {\n // node::ParseEncoding() requires lower case.\n if (typeof encoding === 'string') encoding = encoding.toLowerCase();\n if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new ERR_UNKNOWN_ENCODING(encoding);\n this._writableState.defaultEncoding = encoding;\n return this;\n};\n\nObject.defineProperty(Writable.prototype, 'writableBuffer', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState && this._writableState.getBuffer();\n }\n});\n\nfunction decodeChunk(state, chunk, encoding) {\n if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') {\n chunk = Buffer.from(chunk, encoding);\n }\n\n return chunk;\n}\n\nObject.defineProperty(Writable.prototype, 'writableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState.highWaterMark;\n }\n}); // if we're already writing something, then just put this\n// in the queue, and wait our turn. Otherwise, call _write\n// If we return false, then we need a drain event, so set that flag.\n\nfunction writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) {\n if (!isBuf) {\n var newChunk = decodeChunk(state, chunk, encoding);\n\n if (chunk !== newChunk) {\n isBuf = true;\n encoding = 'buffer';\n chunk = newChunk;\n }\n }\n\n var len = state.objectMode ? 1 : chunk.length;\n state.length += len;\n var ret = state.length < state.highWaterMark; // we must ensure that previous needDrain will not be reset to false.\n\n if (!ret) state.needDrain = true;\n\n if (state.writing || state.corked) {\n var last = state.lastBufferedRequest;\n state.lastBufferedRequest = {\n chunk: chunk,\n encoding: encoding,\n isBuf: isBuf,\n callback: cb,\n next: null\n };\n\n if (last) {\n last.next = state.lastBufferedRequest;\n } else {\n state.bufferedRequest = state.lastBufferedRequest;\n }\n\n state.bufferedRequestCount += 1;\n } else {\n doWrite(stream, state, false, len, chunk, encoding, cb);\n }\n\n return ret;\n}\n\nfunction doWrite(stream, state, writev, len, chunk, encoding, cb) {\n state.writelen = len;\n state.writecb = cb;\n state.writing = true;\n state.sync = true;\n if (state.destroyed) state.onwrite(new ERR_STREAM_DESTROYED('write'));else if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite);\n state.sync = false;\n}\n\nfunction onwriteError(stream, state, sync, er, cb) {\n --state.pendingcb;\n\n if (sync) {\n // defer the callback if we are being called synchronously\n // to avoid piling up things on the stack\n process.nextTick(cb, er); // this can emit finish, and it will always happen\n // after error\n\n process.nextTick(finishMaybe, stream, state);\n stream._writableState.errorEmitted = true;\n errorOrDestroy(stream, er);\n } else {\n // the caller expect this to happen before if\n // it is async\n cb(er);\n stream._writableState.errorEmitted = true;\n errorOrDestroy(stream, er); // this can emit finish, but finish must\n // always follow error\n\n finishMaybe(stream, state);\n }\n}\n\nfunction onwriteStateUpdate(state) {\n state.writing = false;\n state.writecb = null;\n state.length -= state.writelen;\n state.writelen = 0;\n}\n\nfunction onwrite(stream, er) {\n var state = stream._writableState;\n var sync = state.sync;\n var cb = state.writecb;\n if (typeof cb !== 'function') throw new ERR_MULTIPLE_CALLBACK();\n onwriteStateUpdate(state);\n if (er) onwriteError(stream, state, sync, er, cb);else {\n // Check if we're actually ready to finish, but don't emit yet\n var finished = needFinish(state) || stream.destroyed;\n\n if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) {\n clearBuffer(stream, state);\n }\n\n if (sync) {\n process.nextTick(afterWrite, stream, state, finished, cb);\n } else {\n afterWrite(stream, state, finished, cb);\n }\n }\n}\n\nfunction afterWrite(stream, state, finished, cb) {\n if (!finished) onwriteDrain(stream, state);\n state.pendingcb--;\n cb();\n finishMaybe(stream, state);\n} // Must force callback to be called on nextTick, so that we don't\n// emit 'drain' before the write() consumer gets the 'false' return\n// value, and has a chance to attach a 'drain' listener.\n\n\nfunction onwriteDrain(stream, state) {\n if (state.length === 0 && state.needDrain) {\n state.needDrain = false;\n stream.emit('drain');\n }\n} // if there's something in the buffer waiting, then process it\n\n\nfunction clearBuffer(stream, state) {\n state.bufferProcessing = true;\n var entry = state.bufferedRequest;\n\n if (stream._writev && entry && entry.next) {\n // Fast case, write everything using _writev()\n var l = state.bufferedRequestCount;\n var buffer = new Array(l);\n var holder = state.corkedRequestsFree;\n holder.entry = entry;\n var count = 0;\n var allBuffers = true;\n\n while (entry) {\n buffer[count] = entry;\n if (!entry.isBuf) allBuffers = false;\n entry = entry.next;\n count += 1;\n }\n\n buffer.allBuffers = allBuffers;\n doWrite(stream, state, true, state.length, buffer, '', holder.finish); // doWrite is almost always async, defer these to save a bit of time\n // as the hot path ends with doWrite\n\n state.pendingcb++;\n state.lastBufferedRequest = null;\n\n if (holder.next) {\n state.corkedRequestsFree = holder.next;\n holder.next = null;\n } else {\n state.corkedRequestsFree = new CorkedRequest(state);\n }\n\n state.bufferedRequestCount = 0;\n } else {\n // Slow case, write chunks one-by-one\n while (entry) {\n var chunk = entry.chunk;\n var encoding = entry.encoding;\n var cb = entry.callback;\n var len = state.objectMode ? 1 : chunk.length;\n doWrite(stream, state, false, len, chunk, encoding, cb);\n entry = entry.next;\n state.bufferedRequestCount--; // if we didn't call the onwrite immediately, then\n // it means that we need to wait until it does.\n // also, that means that the chunk and cb are currently\n // being processed, so move the buffer counter past them.\n\n if (state.writing) {\n break;\n }\n }\n\n if (entry === null) state.lastBufferedRequest = null;\n }\n\n state.bufferedRequest = entry;\n state.bufferProcessing = false;\n}\n\nWritable.prototype._write = function (chunk, encoding, cb) {\n cb(new ERR_METHOD_NOT_IMPLEMENTED('_write()'));\n};\n\nWritable.prototype._writev = null;\n\nWritable.prototype.end = function (chunk, encoding, cb) {\n var state = this._writableState;\n\n if (typeof chunk === 'function') {\n cb = chunk;\n chunk = null;\n encoding = null;\n } else if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (chunk !== null && chunk !== undefined) this.write(chunk, encoding); // .end() fully uncorks\n\n if (state.corked) {\n state.corked = 1;\n this.uncork();\n } // ignore unnecessary end() calls.\n\n\n if (!state.ending) endWritable(this, state, cb);\n return this;\n};\n\nObject.defineProperty(Writable.prototype, 'writableLength', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState.length;\n }\n});\n\nfunction needFinish(state) {\n return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;\n}\n\nfunction callFinal(stream, state) {\n stream._final(function (err) {\n state.pendingcb--;\n\n if (err) {\n errorOrDestroy(stream, err);\n }\n\n state.prefinished = true;\n stream.emit('prefinish');\n finishMaybe(stream, state);\n });\n}\n\nfunction prefinish(stream, state) {\n if (!state.prefinished && !state.finalCalled) {\n if (typeof stream._final === 'function' && !state.destroyed) {\n state.pendingcb++;\n state.finalCalled = true;\n process.nextTick(callFinal, stream, state);\n } else {\n state.prefinished = true;\n stream.emit('prefinish');\n }\n }\n}\n\nfunction finishMaybe(stream, state) {\n var need = needFinish(state);\n\n if (need) {\n prefinish(stream, state);\n\n if (state.pendingcb === 0) {\n state.finished = true;\n stream.emit('finish');\n\n if (state.autoDestroy) {\n // In case of duplex streams we need a way to detect\n // if the readable side is ready for autoDestroy as well\n var rState = stream._readableState;\n\n if (!rState || rState.autoDestroy && rState.endEmitted) {\n stream.destroy();\n }\n }\n }\n }\n\n return need;\n}\n\nfunction endWritable(stream, state, cb) {\n state.ending = true;\n finishMaybe(stream, state);\n\n if (cb) {\n if (state.finished) process.nextTick(cb);else stream.once('finish', cb);\n }\n\n state.ended = true;\n stream.writable = false;\n}\n\nfunction onCorkedFinish(corkReq, state, err) {\n var entry = corkReq.entry;\n corkReq.entry = null;\n\n while (entry) {\n var cb = entry.callback;\n state.pendingcb--;\n cb(err);\n entry = entry.next;\n } // reuse the free corkReq.\n\n\n state.corkedRequestsFree.next = corkReq;\n}\n\nObject.defineProperty(Writable.prototype, 'destroyed', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n if (this._writableState === undefined) {\n return false;\n }\n\n return this._writableState.destroyed;\n },\n set: function set(value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (!this._writableState) {\n return;\n } // backward compatibility, the user is explicitly\n // managing destroyed\n\n\n this._writableState.destroyed = value;\n }\n});\nWritable.prototype.destroy = destroyImpl.destroy;\nWritable.prototype._undestroy = destroyImpl.undestroy;\n\nWritable.prototype._destroy = function (err, cb) {\n cb(err);\n};\n}).call(this)}).call(this,_dereq_('_process'),typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{\"../errors\":286,\"./_stream_duplex\":287,\"./internal/streams/destroy\":294,\"./internal/streams/state\":298,\"./internal/streams/stream\":299,\"_process\":277,\"buffer\":85,\"inherits\":231,\"util-deprecate\":330}],292:[function(_dereq_,module,exports){\n(function (process){(function (){\n'use strict';\n\nvar _Object$setPrototypeO;\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar finished = _dereq_('./end-of-stream');\n\nvar kLastResolve = Symbol('lastResolve');\nvar kLastReject = Symbol('lastReject');\nvar kError = Symbol('error');\nvar kEnded = Symbol('ended');\nvar kLastPromise = Symbol('lastPromise');\nvar kHandlePromise = Symbol('handlePromise');\nvar kStream = Symbol('stream');\n\nfunction createIterResult(value, done) {\n return {\n value: value,\n done: done\n };\n}\n\nfunction readAndResolve(iter) {\n var resolve = iter[kLastResolve];\n\n if (resolve !== null) {\n var data = iter[kStream].read(); // we defer if data is null\n // we can be expecting either 'end' or\n // 'error'\n\n if (data !== null) {\n iter[kLastPromise] = null;\n iter[kLastResolve] = null;\n iter[kLastReject] = null;\n resolve(createIterResult(data, false));\n }\n }\n}\n\nfunction onReadable(iter) {\n // we wait for the next tick, because it might\n // emit an error with process.nextTick\n process.nextTick(readAndResolve, iter);\n}\n\nfunction wrapForNext(lastPromise, iter) {\n return function (resolve, reject) {\n lastPromise.then(function () {\n if (iter[kEnded]) {\n resolve(createIterResult(undefined, true));\n return;\n }\n\n iter[kHandlePromise](resolve, reject);\n }, reject);\n };\n}\n\nvar AsyncIteratorPrototype = Object.getPrototypeOf(function () {});\nvar ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf((_Object$setPrototypeO = {\n get stream() {\n return this[kStream];\n },\n\n next: function next() {\n var _this = this;\n\n // if we have detected an error in the meanwhile\n // reject straight away\n var error = this[kError];\n\n if (error !== null) {\n return Promise.reject(error);\n }\n\n if (this[kEnded]) {\n return Promise.resolve(createIterResult(undefined, true));\n }\n\n if (this[kStream].destroyed) {\n // We need to defer via nextTick because if .destroy(err) is\n // called, the error will be emitted via nextTick, and\n // we cannot guarantee that there is no error lingering around\n // waiting to be emitted.\n return new Promise(function (resolve, reject) {\n process.nextTick(function () {\n if (_this[kError]) {\n reject(_this[kError]);\n } else {\n resolve(createIterResult(undefined, true));\n }\n });\n });\n } // if we have multiple next() calls\n // we will wait for the previous Promise to finish\n // this logic is optimized to support for await loops,\n // where next() is only called once at a time\n\n\n var lastPromise = this[kLastPromise];\n var promise;\n\n if (lastPromise) {\n promise = new Promise(wrapForNext(lastPromise, this));\n } else {\n // fast path needed to support multiple this.push()\n // without triggering the next() queue\n var data = this[kStream].read();\n\n if (data !== null) {\n return Promise.resolve(createIterResult(data, false));\n }\n\n promise = new Promise(this[kHandlePromise]);\n }\n\n this[kLastPromise] = promise;\n return promise;\n }\n}, _defineProperty(_Object$setPrototypeO, Symbol.asyncIterator, function () {\n return this;\n}), _defineProperty(_Object$setPrototypeO, \"return\", function _return() {\n var _this2 = this;\n\n // destroy(err, cb) is a private API\n // we can guarantee we have that here, because we control the\n // Readable class this is attached to\n return new Promise(function (resolve, reject) {\n _this2[kStream].destroy(null, function (err) {\n if (err) {\n reject(err);\n return;\n }\n\n resolve(createIterResult(undefined, true));\n });\n });\n}), _Object$setPrototypeO), AsyncIteratorPrototype);\n\nvar createReadableStreamAsyncIterator = function createReadableStreamAsyncIterator(stream) {\n var _Object$create;\n\n var iterator = Object.create(ReadableStreamAsyncIteratorPrototype, (_Object$create = {}, _defineProperty(_Object$create, kStream, {\n value: stream,\n writable: true\n }), _defineProperty(_Object$create, kLastResolve, {\n value: null,\n writable: true\n }), _defineProperty(_Object$create, kLastReject, {\n value: null,\n writable: true\n }), _defineProperty(_Object$create, kError, {\n value: null,\n writable: true\n }), _defineProperty(_Object$create, kEnded, {\n value: stream._readableState.endEmitted,\n writable: true\n }), _defineProperty(_Object$create, kHandlePromise, {\n value: function value(resolve, reject) {\n var data = iterator[kStream].read();\n\n if (data) {\n iterator[kLastPromise] = null;\n iterator[kLastResolve] = null;\n iterator[kLastReject] = null;\n resolve(createIterResult(data, false));\n } else {\n iterator[kLastResolve] = resolve;\n iterator[kLastReject] = reject;\n }\n },\n writable: true\n }), _Object$create));\n iterator[kLastPromise] = null;\n finished(stream, function (err) {\n if (err && err.code !== 'ERR_STREAM_PREMATURE_CLOSE') {\n var reject = iterator[kLastReject]; // reject if we are waiting for data in the Promise\n // returned by next() and store the error\n\n if (reject !== null) {\n iterator[kLastPromise] = null;\n iterator[kLastResolve] = null;\n iterator[kLastReject] = null;\n reject(err);\n }\n\n iterator[kError] = err;\n return;\n }\n\n var resolve = iterator[kLastResolve];\n\n if (resolve !== null) {\n iterator[kLastPromise] = null;\n iterator[kLastResolve] = null;\n iterator[kLastReject] = null;\n resolve(createIterResult(undefined, true));\n }\n\n iterator[kEnded] = true;\n });\n stream.on('readable', onReadable.bind(null, iterator));\n return iterator;\n};\n\nmodule.exports = createReadableStreamAsyncIterator;\n}).call(this)}).call(this,_dereq_('_process'))\n},{\"./end-of-stream\":295,\"_process\":277}],293:[function(_dereq_,module,exports){\n'use strict';\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nvar _require = _dereq_('buffer'),\n Buffer = _require.Buffer;\n\nvar _require2 = _dereq_('util'),\n inspect = _require2.inspect;\n\nvar custom = inspect && inspect.custom || 'inspect';\n\nfunction copyBuffer(src, target, offset) {\n Buffer.prototype.copy.call(src, target, offset);\n}\n\nmodule.exports =\n/*#__PURE__*/\nfunction () {\n function BufferList() {\n _classCallCheck(this, BufferList);\n\n this.head = null;\n this.tail = null;\n this.length = 0;\n }\n\n _createClass(BufferList, [{\n key: \"push\",\n value: function push(v) {\n var entry = {\n data: v,\n next: null\n };\n if (this.length > 0) this.tail.next = entry;else this.head = entry;\n this.tail = entry;\n ++this.length;\n }\n }, {\n key: \"unshift\",\n value: function unshift(v) {\n var entry = {\n data: v,\n next: this.head\n };\n if (this.length === 0) this.tail = entry;\n this.head = entry;\n ++this.length;\n }\n }, {\n key: \"shift\",\n value: function shift() {\n if (this.length === 0) return;\n var ret = this.head.data;\n if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next;\n --this.length;\n return ret;\n }\n }, {\n key: \"clear\",\n value: function clear() {\n this.head = this.tail = null;\n this.length = 0;\n }\n }, {\n key: \"join\",\n value: function join(s) {\n if (this.length === 0) return '';\n var p = this.head;\n var ret = '' + p.data;\n\n while (p = p.next) {\n ret += s + p.data;\n }\n\n return ret;\n }\n }, {\n key: \"concat\",\n value: function concat(n) {\n if (this.length === 0) return Buffer.alloc(0);\n var ret = Buffer.allocUnsafe(n >>> 0);\n var p = this.head;\n var i = 0;\n\n while (p) {\n copyBuffer(p.data, ret, i);\n i += p.data.length;\n p = p.next;\n }\n\n return ret;\n } // Consumes a specified amount of bytes or characters from the buffered data.\n\n }, {\n key: \"consume\",\n value: function consume(n, hasStrings) {\n var ret;\n\n if (n < this.head.data.length) {\n // `slice` is the same for buffers and strings.\n ret = this.head.data.slice(0, n);\n this.head.data = this.head.data.slice(n);\n } else if (n === this.head.data.length) {\n // First chunk is a perfect match.\n ret = this.shift();\n } else {\n // Result spans more than one buffer.\n ret = hasStrings ? this._getString(n) : this._getBuffer(n);\n }\n\n return ret;\n }\n }, {\n key: \"first\",\n value: function first() {\n return this.head.data;\n } // Consumes a specified amount of characters from the buffered data.\n\n }, {\n key: \"_getString\",\n value: function _getString(n) {\n var p = this.head;\n var c = 1;\n var ret = p.data;\n n -= ret.length;\n\n while (p = p.next) {\n var str = p.data;\n var nb = n > str.length ? str.length : n;\n if (nb === str.length) ret += str;else ret += str.slice(0, n);\n n -= nb;\n\n if (n === 0) {\n if (nb === str.length) {\n ++c;\n if (p.next) this.head = p.next;else this.head = this.tail = null;\n } else {\n this.head = p;\n p.data = str.slice(nb);\n }\n\n break;\n }\n\n ++c;\n }\n\n this.length -= c;\n return ret;\n } // Consumes a specified amount of bytes from the buffered data.\n\n }, {\n key: \"_getBuffer\",\n value: function _getBuffer(n) {\n var ret = Buffer.allocUnsafe(n);\n var p = this.head;\n var c = 1;\n p.data.copy(ret);\n n -= p.data.length;\n\n while (p = p.next) {\n var buf = p.data;\n var nb = n > buf.length ? buf.length : n;\n buf.copy(ret, ret.length - n, 0, nb);\n n -= nb;\n\n if (n === 0) {\n if (nb === buf.length) {\n ++c;\n if (p.next) this.head = p.next;else this.head = this.tail = null;\n } else {\n this.head = p;\n p.data = buf.slice(nb);\n }\n\n break;\n }\n\n ++c;\n }\n\n this.length -= c;\n return ret;\n } // Make sure the linked list only shows the minimal necessary information.\n\n }, {\n key: custom,\n value: function value(_, options) {\n return inspect(this, _objectSpread({}, options, {\n // Only inspect one level.\n depth: 0,\n // It should not recurse.\n customInspect: false\n }));\n }\n }]);\n\n return BufferList;\n}();\n},{\"buffer\":85,\"util\":83}],294:[function(_dereq_,module,exports){\n(function (process){(function (){\n'use strict'; // undocumented cb() API, needed for core, not for public API\n\nfunction destroy(err, cb) {\n var _this = this;\n\n var readableDestroyed = this._readableState && this._readableState.destroyed;\n var writableDestroyed = this._writableState && this._writableState.destroyed;\n\n if (readableDestroyed || writableDestroyed) {\n if (cb) {\n cb(err);\n } else if (err) {\n if (!this._writableState) {\n process.nextTick(emitErrorNT, this, err);\n } else if (!this._writableState.errorEmitted) {\n this._writableState.errorEmitted = true;\n process.nextTick(emitErrorNT, this, err);\n }\n }\n\n return this;\n } // we set destroyed to true before firing error callbacks in order\n // to make it re-entrance safe in case destroy() is called within callbacks\n\n\n if (this._readableState) {\n this._readableState.destroyed = true;\n } // if this is a duplex stream mark the writable part as destroyed as well\n\n\n if (this._writableState) {\n this._writableState.destroyed = true;\n }\n\n this._destroy(err || null, function (err) {\n if (!cb && err) {\n if (!_this._writableState) {\n process.nextTick(emitErrorAndCloseNT, _this, err);\n } else if (!_this._writableState.errorEmitted) {\n _this._writableState.errorEmitted = true;\n process.nextTick(emitErrorAndCloseNT, _this, err);\n } else {\n process.nextTick(emitCloseNT, _this);\n }\n } else if (cb) {\n process.nextTick(emitCloseNT, _this);\n cb(err);\n } else {\n process.nextTick(emitCloseNT, _this);\n }\n });\n\n return this;\n}\n\nfunction emitErrorAndCloseNT(self, err) {\n emitErrorNT(self, err);\n emitCloseNT(self);\n}\n\nfunction emitCloseNT(self) {\n if (self._writableState && !self._writableState.emitClose) return;\n if (self._readableState && !self._readableState.emitClose) return;\n self.emit('close');\n}\n\nfunction undestroy() {\n if (this._readableState) {\n this._readableState.destroyed = false;\n this._readableState.reading = false;\n this._readableState.ended = false;\n this._readableState.endEmitted = false;\n }\n\n if (this._writableState) {\n this._writableState.destroyed = false;\n this._writableState.ended = false;\n this._writableState.ending = false;\n this._writableState.finalCalled = false;\n this._writableState.prefinished = false;\n this._writableState.finished = false;\n this._writableState.errorEmitted = false;\n }\n}\n\nfunction emitErrorNT(self, err) {\n self.emit('error', err);\n}\n\nfunction errorOrDestroy(stream, err) {\n // We have tests that rely on errors being emitted\n // in the same tick, so changing this is semver major.\n // For now when you opt-in to autoDestroy we allow\n // the error to be emitted nextTick. In a future\n // semver major update we should change the default to this.\n var rState = stream._readableState;\n var wState = stream._writableState;\n if (rState && rState.autoDestroy || wState && wState.autoDestroy) stream.destroy(err);else stream.emit('error', err);\n}\n\nmodule.exports = {\n destroy: destroy,\n undestroy: undestroy,\n errorOrDestroy: errorOrDestroy\n};\n}).call(this)}).call(this,_dereq_('_process'))\n},{\"_process\":277}],295:[function(_dereq_,module,exports){\n// Ported from https://github.com/mafintosh/end-of-stream with\n// permission from the author, Mathias Buus (@mafintosh).\n'use strict';\n\nvar ERR_STREAM_PREMATURE_CLOSE = _dereq_('../../../errors').codes.ERR_STREAM_PREMATURE_CLOSE;\n\nfunction once(callback) {\n var called = false;\n return function () {\n if (called) return;\n called = true;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n callback.apply(this, args);\n };\n}\n\nfunction noop() {}\n\nfunction isRequest(stream) {\n return stream.setHeader && typeof stream.abort === 'function';\n}\n\nfunction eos(stream, opts, callback) {\n if (typeof opts === 'function') return eos(stream, null, opts);\n if (!opts) opts = {};\n callback = once(callback || noop);\n var readable = opts.readable || opts.readable !== false && stream.readable;\n var writable = opts.writable || opts.writable !== false && stream.writable;\n\n var onlegacyfinish = function onlegacyfinish() {\n if (!stream.writable) onfinish();\n };\n\n var writableEnded = stream._writableState && stream._writableState.finished;\n\n var onfinish = function onfinish() {\n writable = false;\n writableEnded = true;\n if (!readable) callback.call(stream);\n };\n\n var readableEnded = stream._readableState && stream._readableState.endEmitted;\n\n var onend = function onend() {\n readable = false;\n readableEnded = true;\n if (!writable) callback.call(stream);\n };\n\n var onerror = function onerror(err) {\n callback.call(stream, err);\n };\n\n var onclose = function onclose() {\n var err;\n\n if (readable && !readableEnded) {\n if (!stream._readableState || !stream._readableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE();\n return callback.call(stream, err);\n }\n\n if (writable && !writableEnded) {\n if (!stream._writableState || !stream._writableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE();\n return callback.call(stream, err);\n }\n };\n\n var onrequest = function onrequest() {\n stream.req.on('finish', onfinish);\n };\n\n if (isRequest(stream)) {\n stream.on('complete', onfinish);\n stream.on('abort', onclose);\n if (stream.req) onrequest();else stream.on('request', onrequest);\n } else if (writable && !stream._writableState) {\n // legacy streams\n stream.on('end', onlegacyfinish);\n stream.on('close', onlegacyfinish);\n }\n\n stream.on('end', onend);\n stream.on('finish', onfinish);\n if (opts.error !== false) stream.on('error', onerror);\n stream.on('close', onclose);\n return function () {\n stream.removeListener('complete', onfinish);\n stream.removeListener('abort', onclose);\n stream.removeListener('request', onrequest);\n if (stream.req) stream.req.removeListener('finish', onfinish);\n stream.removeListener('end', onlegacyfinish);\n stream.removeListener('close', onlegacyfinish);\n stream.removeListener('finish', onfinish);\n stream.removeListener('end', onend);\n stream.removeListener('error', onerror);\n stream.removeListener('close', onclose);\n };\n}\n\nmodule.exports = eos;\n},{\"../../../errors\":286}],296:[function(_dereq_,module,exports){\nmodule.exports = function () {\n throw new Error('Readable.from is not available in the browser')\n};\n\n},{}],297:[function(_dereq_,module,exports){\n// Ported from https://github.com/mafintosh/pump with\n// permission from the author, Mathias Buus (@mafintosh).\n'use strict';\n\nvar eos;\n\nfunction once(callback) {\n var called = false;\n return function () {\n if (called) return;\n called = true;\n callback.apply(void 0, arguments);\n };\n}\n\nvar _require$codes = _dereq_('../../../errors').codes,\n ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS,\n ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED;\n\nfunction noop(err) {\n // Rethrow the error if it exists to avoid swallowing it\n if (err) throw err;\n}\n\nfunction isRequest(stream) {\n return stream.setHeader && typeof stream.abort === 'function';\n}\n\nfunction destroyer(stream, reading, writing, callback) {\n callback = once(callback);\n var closed = false;\n stream.on('close', function () {\n closed = true;\n });\n if (eos === undefined) eos = _dereq_('./end-of-stream');\n eos(stream, {\n readable: reading,\n writable: writing\n }, function (err) {\n if (err) return callback(err);\n closed = true;\n callback();\n });\n var destroyed = false;\n return function (err) {\n if (closed) return;\n if (destroyed) return;\n destroyed = true; // request.destroy just do .end - .abort is what we want\n\n if (isRequest(stream)) return stream.abort();\n if (typeof stream.destroy === 'function') return stream.destroy();\n callback(err || new ERR_STREAM_DESTROYED('pipe'));\n };\n}\n\nfunction call(fn) {\n fn();\n}\n\nfunction pipe(from, to) {\n return from.pipe(to);\n}\n\nfunction popCallback(streams) {\n if (!streams.length) return noop;\n if (typeof streams[streams.length - 1] !== 'function') return noop;\n return streams.pop();\n}\n\nfunction pipeline() {\n for (var _len = arguments.length, streams = new Array(_len), _key = 0; _key < _len; _key++) {\n streams[_key] = arguments[_key];\n }\n\n var callback = popCallback(streams);\n if (Array.isArray(streams[0])) streams = streams[0];\n\n if (streams.length < 2) {\n throw new ERR_MISSING_ARGS('streams');\n }\n\n var error;\n var destroys = streams.map(function (stream, i) {\n var reading = i < streams.length - 1;\n var writing = i > 0;\n return destroyer(stream, reading, writing, function (err) {\n if (!error) error = err;\n if (err) destroys.forEach(call);\n if (reading) return;\n destroys.forEach(call);\n callback(error);\n });\n });\n return streams.reduce(pipe);\n}\n\nmodule.exports = pipeline;\n},{\"../../../errors\":286,\"./end-of-stream\":295}],298:[function(_dereq_,module,exports){\n'use strict';\n\nvar ERR_INVALID_OPT_VALUE = _dereq_('../../../errors').codes.ERR_INVALID_OPT_VALUE;\n\nfunction highWaterMarkFrom(options, isDuplex, duplexKey) {\n return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null;\n}\n\nfunction getHighWaterMark(state, options, duplexKey, isDuplex) {\n var hwm = highWaterMarkFrom(options, isDuplex, duplexKey);\n\n if (hwm != null) {\n if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) {\n var name = isDuplex ? duplexKey : 'highWaterMark';\n throw new ERR_INVALID_OPT_VALUE(name, hwm);\n }\n\n return Math.floor(hwm);\n } // Default value\n\n\n return state.objectMode ? 16 : 16 * 1024;\n}\n\nmodule.exports = {\n getHighWaterMark: getHighWaterMark\n};\n},{\"../../../errors\":286}],299:[function(_dereq_,module,exports){\nmodule.exports = _dereq_('events').EventEmitter;\n\n},{\"events\":84}],300:[function(_dereq_,module,exports){\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\n/**/\n\nvar Buffer = _dereq_('safe-buffer').Buffer;\n/**/\n\nvar isEncoding = Buffer.isEncoding || function (encoding) {\n encoding = '' + encoding;\n switch (encoding && encoding.toLowerCase()) {\n case 'hex':case 'utf8':case 'utf-8':case 'ascii':case 'binary':case 'base64':case 'ucs2':case 'ucs-2':case 'utf16le':case 'utf-16le':case 'raw':\n return true;\n default:\n return false;\n }\n};\n\nfunction _normalizeEncoding(enc) {\n if (!enc) return 'utf8';\n var retried;\n while (true) {\n switch (enc) {\n case 'utf8':\n case 'utf-8':\n return 'utf8';\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return 'utf16le';\n case 'latin1':\n case 'binary':\n return 'latin1';\n case 'base64':\n case 'ascii':\n case 'hex':\n return enc;\n default:\n if (retried) return; // undefined\n enc = ('' + enc).toLowerCase();\n retried = true;\n }\n }\n};\n\n// Do not cache `Buffer.isEncoding` when checking encoding names as some\n// modules monkey-patch it to support additional encodings\nfunction normalizeEncoding(enc) {\n var nenc = _normalizeEncoding(enc);\n if (typeof nenc !== 'string' && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc);\n return nenc || enc;\n}\n\n// StringDecoder provides an interface for efficiently splitting a series of\n// buffers into a series of JS strings without breaking apart multi-byte\n// characters.\nexports.StringDecoder = StringDecoder;\nfunction StringDecoder(encoding) {\n this.encoding = normalizeEncoding(encoding);\n var nb;\n switch (this.encoding) {\n case 'utf16le':\n this.text = utf16Text;\n this.end = utf16End;\n nb = 4;\n break;\n case 'utf8':\n this.fillLast = utf8FillLast;\n nb = 4;\n break;\n case 'base64':\n this.text = base64Text;\n this.end = base64End;\n nb = 3;\n break;\n default:\n this.write = simpleWrite;\n this.end = simpleEnd;\n return;\n }\n this.lastNeed = 0;\n this.lastTotal = 0;\n this.lastChar = Buffer.allocUnsafe(nb);\n}\n\nStringDecoder.prototype.write = function (buf) {\n if (buf.length === 0) return '';\n var r;\n var i;\n if (this.lastNeed) {\n r = this.fillLast(buf);\n if (r === undefined) return '';\n i = this.lastNeed;\n this.lastNeed = 0;\n } else {\n i = 0;\n }\n if (i < buf.length) return r ? r + this.text(buf, i) : this.text(buf, i);\n return r || '';\n};\n\nStringDecoder.prototype.end = utf8End;\n\n// Returns only complete characters in a Buffer\nStringDecoder.prototype.text = utf8Text;\n\n// Attempts to complete a partial non-UTF-8 character using bytes from a Buffer\nStringDecoder.prototype.fillLast = function (buf) {\n if (this.lastNeed <= buf.length) {\n buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);\n return this.lastChar.toString(this.encoding, 0, this.lastTotal);\n }\n buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length);\n this.lastNeed -= buf.length;\n};\n\n// Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a\n// continuation byte. If an invalid byte is detected, -2 is returned.\nfunction utf8CheckByte(byte) {\n if (byte <= 0x7F) return 0;else if (byte >> 5 === 0x06) return 2;else if (byte >> 4 === 0x0E) return 3;else if (byte >> 3 === 0x1E) return 4;\n return byte >> 6 === 0x02 ? -1 : -2;\n}\n\n// Checks at most 3 bytes at the end of a Buffer in order to detect an\n// incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4)\n// needed to complete the UTF-8 character (if applicable) are returned.\nfunction utf8CheckIncomplete(self, buf, i) {\n var j = buf.length - 1;\n if (j < i) return 0;\n var nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) self.lastNeed = nb - 1;\n return nb;\n }\n if (--j < i || nb === -2) return 0;\n nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) self.lastNeed = nb - 2;\n return nb;\n }\n if (--j < i || nb === -2) return 0;\n nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) {\n if (nb === 2) nb = 0;else self.lastNeed = nb - 3;\n }\n return nb;\n }\n return 0;\n}\n\n// Validates as many continuation bytes for a multi-byte UTF-8 character as\n// needed or are available. If we see a non-continuation byte where we expect\n// one, we \"replace\" the validated continuation bytes we've seen so far with\n// a single UTF-8 replacement character ('\\ufffd'), to match v8's UTF-8 decoding\n// behavior. The continuation byte check is included three times in the case\n// where all of the continuation bytes for a character exist in the same buffer.\n// It is also done this way as a slight performance increase instead of using a\n// loop.\nfunction utf8CheckExtraBytes(self, buf, p) {\n if ((buf[0] & 0xC0) !== 0x80) {\n self.lastNeed = 0;\n return '\\ufffd';\n }\n if (self.lastNeed > 1 && buf.length > 1) {\n if ((buf[1] & 0xC0) !== 0x80) {\n self.lastNeed = 1;\n return '\\ufffd';\n }\n if (self.lastNeed > 2 && buf.length > 2) {\n if ((buf[2] & 0xC0) !== 0x80) {\n self.lastNeed = 2;\n return '\\ufffd';\n }\n }\n }\n}\n\n// Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer.\nfunction utf8FillLast(buf) {\n var p = this.lastTotal - this.lastNeed;\n var r = utf8CheckExtraBytes(this, buf, p);\n if (r !== undefined) return r;\n if (this.lastNeed <= buf.length) {\n buf.copy(this.lastChar, p, 0, this.lastNeed);\n return this.lastChar.toString(this.encoding, 0, this.lastTotal);\n }\n buf.copy(this.lastChar, p, 0, buf.length);\n this.lastNeed -= buf.length;\n}\n\n// Returns all complete UTF-8 characters in a Buffer. If the Buffer ended on a\n// partial character, the character's bytes are buffered until the required\n// number of bytes are available.\nfunction utf8Text(buf, i) {\n var total = utf8CheckIncomplete(this, buf, i);\n if (!this.lastNeed) return buf.toString('utf8', i);\n this.lastTotal = total;\n var end = buf.length - (total - this.lastNeed);\n buf.copy(this.lastChar, 0, end);\n return buf.toString('utf8', i, end);\n}\n\n// For UTF-8, a replacement character is added when ending on a partial\n// character.\nfunction utf8End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) return r + '\\ufffd';\n return r;\n}\n\n// UTF-16LE typically needs two bytes per character, but even if we have an even\n// number of bytes available, we need to check if we end on a leading/high\n// surrogate. In that case, we need to wait for the next two bytes in order to\n// decode the last character properly.\nfunction utf16Text(buf, i) {\n if ((buf.length - i) % 2 === 0) {\n var r = buf.toString('utf16le', i);\n if (r) {\n var c = r.charCodeAt(r.length - 1);\n if (c >= 0xD800 && c <= 0xDBFF) {\n this.lastNeed = 2;\n this.lastTotal = 4;\n this.lastChar[0] = buf[buf.length - 2];\n this.lastChar[1] = buf[buf.length - 1];\n return r.slice(0, -1);\n }\n }\n return r;\n }\n this.lastNeed = 1;\n this.lastTotal = 2;\n this.lastChar[0] = buf[buf.length - 1];\n return buf.toString('utf16le', i, buf.length - 1);\n}\n\n// For UTF-16LE we do not explicitly append special replacement characters if we\n// end on a partial character, we simply let v8 handle that.\nfunction utf16End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) {\n var end = this.lastTotal - this.lastNeed;\n return r + this.lastChar.toString('utf16le', 0, end);\n }\n return r;\n}\n\nfunction base64Text(buf, i) {\n var n = (buf.length - i) % 3;\n if (n === 0) return buf.toString('base64', i);\n this.lastNeed = 3 - n;\n this.lastTotal = 3;\n if (n === 1) {\n this.lastChar[0] = buf[buf.length - 1];\n } else {\n this.lastChar[0] = buf[buf.length - 2];\n this.lastChar[1] = buf[buf.length - 1];\n }\n return buf.toString('base64', i, buf.length - n);\n}\n\nfunction base64End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) return r + this.lastChar.toString('base64', 0, 3 - this.lastNeed);\n return r;\n}\n\n// Pass bytes on through for single-byte encodings (e.g. ascii, latin1, hex)\nfunction simpleWrite(buf) {\n return buf.toString(this.encoding);\n}\n\nfunction simpleEnd(buf) {\n return buf && buf.length ? this.write(buf) : '';\n}\n},{\"safe-buffer\":284}],301:[function(_dereq_,module,exports){\n(function (process,Buffer){(function (){\n\n/**\n * Module dependencies.\n */\n\nvar assert = _dereq_('assert');\nvar debug = _dereq_('debug')('stream-parser');\n\n/**\n * Module exports.\n */\n\nmodule.exports = Parser;\n\n/**\n * Parser states.\n */\n\nvar INIT = -1;\nvar BUFFERING = 0;\nvar SKIPPING = 1;\nvar PASSTHROUGH = 2;\n\n/**\n * The `Parser` stream mixin works with either `Writable` or `Transform` stream\n * instances/subclasses. Provides a convenient generic \"parsing\" API:\n *\n * _bytes(n, cb) - buffers \"n\" bytes and then calls \"cb\" with the \"chunk\"\n * _skipBytes(n, cb) - skips \"n\" bytes and then calls \"cb\" when done\n *\n * If you extend a `Transform` stream, then the `_passthrough()` function is also\n * added:\n *\n * _passthrough(n, cb) - passes through \"n\" bytes untouched and then calls \"cb\"\n *\n * @param {Stream} stream Transform or Writable stream instance to extend\n * @api public\n */\n\nfunction Parser (stream) {\n var isTransform = stream && 'function' == typeof stream._transform;\n var isWritable = stream && 'function' == typeof stream._write;\n\n if (!isTransform && !isWritable) throw new Error('must pass a Writable or Transform stream in');\n debug('extending Parser into stream');\n\n // Transform streams and Writable streams get `_bytes()` and `_skipBytes()`\n stream._bytes = _bytes;\n stream._skipBytes = _skipBytes;\n\n // only Transform streams get the `_passthrough()` function\n if (isTransform) stream._passthrough = _passthrough;\n\n // take control of the streams2 callback functions for this stream\n if (isTransform) {\n stream._transform = transform;\n } else {\n stream._write = write;\n }\n}\n\nfunction init (stream) {\n debug('initializing parser stream');\n\n // number of bytes left to parser for the next \"chunk\"\n stream._parserBytesLeft = 0;\n\n // array of Buffer instances that make up the next \"chunk\"\n stream._parserBuffers = [];\n\n // number of bytes parsed so far for the next \"chunk\"\n stream._parserBuffered = 0;\n\n // flag that keeps track of if what the parser should do with bytes received\n stream._parserState = INIT;\n\n // the callback for the next \"chunk\"\n stream._parserCallback = null;\n\n // XXX: backwards compat with the old Transform API... remove at some point..\n if ('function' == typeof stream.push) {\n stream._parserOutput = stream.push.bind(stream);\n }\n\n stream._parserInit = true;\n}\n\n/**\n * Buffers `n` bytes and then invokes `fn` once that amount has been collected.\n *\n * @param {Number} n the number of bytes to buffer\n * @param {Function} fn callback function to invoke when `n` bytes are buffered\n * @api public\n */\n\nfunction _bytes (n, fn) {\n assert(!this._parserCallback, 'there is already a \"callback\" set!');\n assert(isFinite(n) && n > 0, 'can only buffer a finite number of bytes > 0, got \"' + n + '\"');\n if (!this._parserInit) init(this);\n debug('buffering %o bytes', n);\n this._parserBytesLeft = n;\n this._parserCallback = fn;\n this._parserState = BUFFERING;\n}\n\n/**\n * Skips over the next `n` bytes, then invokes `fn` once that amount has\n * been discarded.\n *\n * @param {Number} n the number of bytes to discard\n * @param {Function} fn callback function to invoke when `n` bytes have been skipped\n * @api public\n */\n\nfunction _skipBytes (n, fn) {\n assert(!this._parserCallback, 'there is already a \"callback\" set!');\n assert(n > 0, 'can only skip > 0 bytes, got \"' + n + '\"');\n if (!this._parserInit) init(this);\n debug('skipping %o bytes', n);\n this._parserBytesLeft = n;\n this._parserCallback = fn;\n this._parserState = SKIPPING;\n}\n\n/**\n * Passes through `n` bytes to the readable side of this stream untouched,\n * then invokes `fn` once that amount has been passed through.\n *\n * @param {Number} n the number of bytes to pass through\n * @param {Function} fn callback function to invoke when `n` bytes have passed through\n * @api public\n */\n\nfunction _passthrough (n, fn) {\n assert(!this._parserCallback, 'There is already a \"callback\" set!');\n assert(n > 0, 'can only pass through > 0 bytes, got \"' + n + '\"');\n if (!this._parserInit) init(this);\n debug('passing through %o bytes', n);\n this._parserBytesLeft = n;\n this._parserCallback = fn;\n this._parserState = PASSTHROUGH;\n}\n\n/**\n * The `_write()` callback function implementation.\n *\n * @api private\n */\n\nfunction write (chunk, encoding, fn) {\n if (!this._parserInit) init(this);\n debug('write(%o bytes)', chunk.length);\n\n // XXX: old Writable stream API compat... remove at some point...\n if ('function' == typeof encoding) fn = encoding;\n\n data(this, chunk, null, fn);\n}\n\n/**\n * The `_transform()` callback function implementation.\n *\n * @api private\n */\n\n\nfunction transform (chunk, output, fn) {\n if (!this._parserInit) init(this);\n debug('transform(%o bytes)', chunk.length);\n\n // XXX: old Transform stream API compat... remove at some point...\n if ('function' != typeof output) {\n output = this._parserOutput;\n }\n\n data(this, chunk, output, fn);\n}\n\n/**\n * The internal buffering/passthrough logic...\n *\n * This `_data` function get's \"trampolined\" to prevent stack overflows for tight\n * loops. This technique requires us to return a \"thunk\" function for any\n * synchronous action. Async stuff breaks the trampoline, but that's ok since it's\n * working with a new stack at that point anyway.\n *\n * @api private\n */\n\nfunction _data (stream, chunk, output, fn) {\n if (stream._parserBytesLeft <= 0) {\n return fn(new Error('got data but not currently parsing anything'));\n }\n\n if (chunk.length <= stream._parserBytesLeft) {\n // small buffer fits within the \"_parserBytesLeft\" window\n return function () {\n return process(stream, chunk, output, fn);\n };\n } else {\n // large buffer needs to be sliced on \"_parserBytesLeft\" and processed\n return function () {\n var b = chunk.slice(0, stream._parserBytesLeft);\n return process(stream, b, output, function (err) {\n if (err) return fn(err);\n if (chunk.length > b.length) {\n return function () {\n return _data(stream, chunk.slice(b.length), output, fn);\n };\n }\n });\n };\n }\n}\n\n/**\n * The internal `process` function gets called by the `data` function when\n * something \"interesting\" happens. This function takes care of buffering the\n * bytes when buffering, passing through the bytes when doing that, and invoking\n * the user callback when the number of bytes has been reached.\n *\n * @api private\n */\n\nfunction process (stream, chunk, output, fn) {\n stream._parserBytesLeft -= chunk.length;\n debug('%o bytes left for stream piece', stream._parserBytesLeft);\n\n if (stream._parserState === BUFFERING) {\n // buffer\n stream._parserBuffers.push(chunk);\n stream._parserBuffered += chunk.length;\n } else if (stream._parserState === PASSTHROUGH) {\n // passthrough\n output(chunk);\n }\n // don't need to do anything for the SKIPPING case\n\n if (0 === stream._parserBytesLeft) {\n // done with stream \"piece\", invoke the callback\n var cb = stream._parserCallback;\n if (cb && stream._parserState === BUFFERING && stream._parserBuffers.length > 1) {\n chunk = Buffer.concat(stream._parserBuffers, stream._parserBuffered);\n }\n if (stream._parserState !== BUFFERING) {\n chunk = null;\n }\n stream._parserCallback = null;\n stream._parserBuffered = 0;\n stream._parserState = INIT;\n stream._parserBuffers.splice(0); // empty\n\n if (cb) {\n var args = [];\n if (chunk) {\n // buffered\n args.push(chunk);\n } else {\n // passthrough\n }\n if (output) {\n // on a Transform stream, has \"output\" function\n args.push(output);\n }\n var async = cb.length > args.length;\n if (async) {\n args.push(trampoline(fn));\n }\n // invoke cb\n var rtn = cb.apply(stream, args);\n if (!async || fn === rtn) return fn;\n }\n } else {\n // need more bytes\n return fn;\n }\n}\n\nvar data = trampoline(_data);\n\n/**\n * Generic thunk-based \"trampoline\" helper function.\n *\n * @param {Function} input function\n * @return {Function} \"trampolined\" function\n * @api private\n */\n\nfunction trampoline (fn) {\n return function () {\n var result = fn.apply(this, arguments);\n\n while ('function' == typeof result) {\n result = result();\n }\n\n return result;\n };\n}\n\n}).call(this)}).call(this,_dereq_('_process'),_dereq_(\"buffer\").Buffer)\n},{\"_process\":277,\"assert\":75,\"buffer\":85,\"debug\":302}],302:[function(_dereq_,module,exports){\n(function (process){(function (){\n/**\n * This is the web browser implementation of `debug()`.\n *\n * Expose `debug()` as the module.\n */\n\nexports = module.exports = _dereq_('./debug');\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = 'undefined' != typeof chrome\n && 'undefined' != typeof chrome.storage\n ? chrome.storage.local\n : localstorage();\n\n/**\n * Colors.\n */\n\nexports.colors = [\n 'lightseagreen',\n 'forestgreen',\n 'goldenrod',\n 'dodgerblue',\n 'darkorchid',\n 'crimson'\n];\n\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\nfunction useColors() {\n // NB: In an Electron preload script, document will be defined but not fully\n // initialized. Since we know we're in Chrome, we'll just detect this case\n // explicitly\n if (typeof window !== 'undefined' && window.process && window.process.type === 'renderer') {\n return true;\n }\n\n // is webkit? http://stackoverflow.com/a/16459606/376773\n // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\n // is firebug? http://stackoverflow.com/a/398120/376773\n (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\n // is firefox >= v31?\n // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||\n // double check webkit in userAgent just in case we are in a worker\n (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/));\n}\n\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nexports.formatters.j = function(v) {\n try {\n return JSON.stringify(v);\n } catch (err) {\n return '[UnexpectedJSONParseError]: ' + err.message;\n }\n};\n\n\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n var useColors = this.useColors;\n\n args[0] = (useColors ? '%c' : '')\n + this.namespace\n + (useColors ? ' %c' : ' ')\n + args[0]\n + (useColors ? '%c ' : ' ')\n + '+' + exports.humanize(this.diff);\n\n if (!useColors) return;\n\n var c = 'color: ' + this.color;\n args.splice(1, 0, c, 'color: inherit')\n\n // the final \"%c\" is somewhat tricky, because there could be other\n // arguments passed either before or after the %c, so we need to\n // figure out the correct index to insert the CSS into\n var index = 0;\n var lastC = 0;\n args[0].replace(/%[a-zA-Z%]/g, function(match) {\n if ('%%' === match) return;\n index++;\n if ('%c' === match) {\n // we only are interested in the *last* %c\n // (the user may have provided their own)\n lastC = index;\n }\n });\n\n args.splice(lastC, 0, c);\n}\n\n/**\n * Invokes `console.log()` when available.\n * No-op when `console.log` is not a \"function\".\n *\n * @api public\n */\n\nfunction log() {\n // this hackery is required for IE8/9, where\n // the `console.log` function doesn't have 'apply'\n return 'object' === typeof console\n && console.log\n && Function.prototype.apply.call(console.log, console, arguments);\n}\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\n\nfunction save(namespaces) {\n try {\n if (null == namespaces) {\n exports.storage.removeItem('debug');\n } else {\n exports.storage.debug = namespaces;\n }\n } catch(e) {}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\nfunction load() {\n var r;\n try {\n r = exports.storage.debug;\n } catch(e) {}\n\n // If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n if (!r && typeof process !== 'undefined' && 'env' in process) {\n r = process.env.DEBUG;\n }\n\n return r;\n}\n\n/**\n * Enable namespaces listed in `localStorage.debug` initially.\n */\n\nexports.enable(load());\n\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n try {\n return window.localStorage;\n } catch (e) {}\n}\n\n}).call(this)}).call(this,_dereq_('_process'))\n},{\"./debug\":303,\"_process\":277}],303:[function(_dereq_,module,exports){\n\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n *\n * Expose `debug()` as the module.\n */\n\nexports = module.exports = createDebug.debug = createDebug['default'] = createDebug;\nexports.coerce = coerce;\nexports.disable = disable;\nexports.enable = enable;\nexports.enabled = enabled;\nexports.humanize = _dereq_('ms');\n\n/**\n * The currently active debug mode names, and names to skip.\n */\n\nexports.names = [];\nexports.skips = [];\n\n/**\n * Map of special \"%n\" handling functions, for the debug \"format\" argument.\n *\n * Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n */\n\nexports.formatters = {};\n\n/**\n * Previous log timestamp.\n */\n\nvar prevTime;\n\n/**\n * Select a color.\n * @param {String} namespace\n * @return {Number}\n * @api private\n */\n\nfunction selectColor(namespace) {\n var hash = 0, i;\n\n for (i in namespace) {\n hash = ((hash << 5) - hash) + namespace.charCodeAt(i);\n hash |= 0; // Convert to 32bit integer\n }\n\n return exports.colors[Math.abs(hash) % exports.colors.length];\n}\n\n/**\n * Create a debugger with the given `namespace`.\n *\n * @param {String} namespace\n * @return {Function}\n * @api public\n */\n\nfunction createDebug(namespace) {\n\n function debug() {\n // disabled?\n if (!debug.enabled) return;\n\n var self = debug;\n\n // set `diff` timestamp\n var curr = +new Date();\n var ms = curr - (prevTime || curr);\n self.diff = ms;\n self.prev = prevTime;\n self.curr = curr;\n prevTime = curr;\n\n // turn the `arguments` into a proper Array\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n\n args[0] = exports.coerce(args[0]);\n\n if ('string' !== typeof args[0]) {\n // anything else let's inspect with %O\n args.unshift('%O');\n }\n\n // apply any `formatters` transformations\n var index = 0;\n args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match, format) {\n // if we encounter an escaped % then don't increase the array index\n if (match === '%%') return match;\n index++;\n var formatter = exports.formatters[format];\n if ('function' === typeof formatter) {\n var val = args[index];\n match = formatter.call(self, val);\n\n // now we need to remove `args[index]` since it's inlined in the `format`\n args.splice(index, 1);\n index--;\n }\n return match;\n });\n\n // apply env-specific formatting (colors, etc.)\n exports.formatArgs.call(self, args);\n\n var logFn = debug.log || exports.log || console.log.bind(console);\n logFn.apply(self, args);\n }\n\n debug.namespace = namespace;\n debug.enabled = exports.enabled(namespace);\n debug.useColors = exports.useColors();\n debug.color = selectColor(namespace);\n\n // env-specific initialization logic for debug instances\n if ('function' === typeof exports.init) {\n exports.init(debug);\n }\n\n return debug;\n}\n\n/**\n * Enables a debug mode by namespaces. This can include modes\n * separated by a colon and wildcards.\n *\n * @param {String} namespaces\n * @api public\n */\n\nfunction enable(namespaces) {\n exports.save(namespaces);\n\n exports.names = [];\n exports.skips = [];\n\n var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\\s,]+/);\n var len = split.length;\n\n for (var i = 0; i < len; i++) {\n if (!split[i]) continue; // ignore empty strings\n namespaces = split[i].replace(/\\*/g, '.*?');\n if (namespaces[0] === '-') {\n exports.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));\n } else {\n exports.names.push(new RegExp('^' + namespaces + '$'));\n }\n }\n}\n\n/**\n * Disable debug output.\n *\n * @api public\n */\n\nfunction disable() {\n exports.enable('');\n}\n\n/**\n * Returns true if the given mode name is enabled, false otherwise.\n *\n * @param {String} name\n * @return {Boolean}\n * @api public\n */\n\nfunction enabled(name) {\n var i, len;\n for (i = 0, len = exports.skips.length; i < len; i++) {\n if (exports.skips[i].test(name)) {\n return false;\n }\n }\n for (i = 0, len = exports.names.length; i < len; i++) {\n if (exports.names[i].test(name)) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Coerce `val`.\n *\n * @param {Mixed} val\n * @return {Mixed}\n * @api private\n */\n\nfunction coerce(val) {\n if (val instanceof Error) return val.stack || val.message;\n return val;\n}\n\n},{\"ms\":304}],304:[function(_dereq_,module,exports){\n/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function(val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isNaN(val) === false) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^((?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n if (ms >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (ms >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (ms >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (ms >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n return plural(ms, d, 'day') ||\n plural(ms, h, 'hour') ||\n plural(ms, m, 'minute') ||\n plural(ms, s, 'second') ||\n ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, n, name) {\n if (ms < n) {\n return;\n }\n if (ms < n * 1.5) {\n return Math.floor(ms / n) + ' ' + name;\n }\n return Math.ceil(ms / n) + ' ' + name + 's';\n}\n\n},{}],305:[function(_dereq_,module,exports){\n'use strict'\r\n\r\nvar paren = _dereq_('parenthesis')\r\n\r\nmodule.exports = function splitBy (string, separator, o) {\r\n\tif (string == null) throw Error('First argument should be a string')\r\n\tif (separator == null) throw Error('Separator should be a string or a RegExp')\r\n\r\n\tif (!o) o = {}\r\n\telse if (typeof o === 'string' || Array.isArray(o)) {\r\n\t\to = {ignore: o}\r\n\t}\r\n\r\n\tif (o.escape == null) o.escape = true\r\n\tif (o.ignore == null) o.ignore = ['[]', '()', '{}', '<>', '\"\"', \"''\", '``', '“”', '«»']\r\n\telse {\r\n\t\tif (typeof o.ignore === 'string') {o.ignore = [o.ignore]}\r\n\r\n\t\to.ignore = o.ignore.map(function (pair) {\r\n\t\t\t// '\"' → '\"\"'\r\n\t\t\tif (pair.length === 1) pair = pair + pair\r\n\t\t\treturn pair\r\n\t\t})\r\n\t}\r\n\r\n\tvar tokens = paren.parse(string, {flat: true, brackets: o.ignore})\r\n\tvar str = tokens[0]\r\n\r\n\tvar parts = str.split(separator)\r\n\r\n\t// join parts separated by escape\r\n\tif (o.escape) {\r\n\t\tvar cleanParts = []\r\n\t\tfor (var i = 0; i < parts.length; i++) {\r\n\t\t\tvar prev = parts[i]\r\n\t\t\tvar part = parts[i + 1]\r\n\r\n\t\t\tif (prev[prev.length - 1] === '\\\\' && prev[prev.length - 2] !== '\\\\') {\r\n\t\t\t\tcleanParts.push(prev + separator + part)\r\n\t\t\t\ti++\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tcleanParts.push(prev)\r\n\t\t\t}\r\n\t\t}\r\n\t\tparts = cleanParts\r\n\t}\r\n\r\n\t// open parens pack & apply unquotes, if any\r\n\tfor (var i = 0; i < parts.length; i++) {\r\n\t\ttokens[0] = parts[i]\r\n\t\tparts[i] = paren.stringify(tokens, {flat: true})\r\n\t}\r\n\r\n\treturn parts\r\n}\r\n\n},{\"parenthesis\":248}],306:[function(_dereq_,module,exports){\n\"use strict\"\n\nmodule.exports = stronglyConnectedComponents\n\nfunction stronglyConnectedComponents(adjList) {\n var numVertices = adjList.length;\n var index = new Array(numVertices)\n var lowValue = new Array(numVertices)\n var active = new Array(numVertices)\n var child = new Array(numVertices)\n var scc = new Array(numVertices)\n var sccLinks = new Array(numVertices)\n \n //Initialize tables\n for(var i=0; i 0) {\n v = T[T.length-1]\n var e = adjList[v]\n if (child[v] < e.length) { // If we're not done iterating over the children, first try finishing that.\n for(var i=child[v]; i= 0) {\n // Node v is not yet assigned an scc, but once it is that scc can apparently reach scc[u].\n sccLinks[v].push(scc[u])\n }\n }\n child[v] = i // Remember where we left off.\n } else { // If we're done iterating over the children, check whether we have an scc.\n if(lowValue[v] === index[v]) { // TODO: It /might/ be true that T is always a prefix of S (at this point!!!), and if so, this could be used here.\n var component = []\n var links = [], linkCount = 0\n for(var i=S.length-1; i>=0; --i) {\n var w = S[i]\n active[w] = false\n component.push(w)\n links.push(sccLinks[w])\n linkCount += sccLinks[w].length\n scc[w] = components.length\n if(w === v) {\n S.length = i\n break\n }\n }\n components.push(component)\n var allLinks = new Array(linkCount)\n for(var i=0; i 1) {\n dot = 1;\n }\n\n if (dot < -1) {\n dot = -1;\n }\n\n return sign * Math.acos(dot);\n};\n\nvar getArcCenter = function getArcCenter(px, py, cx, cy, rx, ry, largeArcFlag, sweepFlag, sinphi, cosphi, pxp, pyp) {\n var rxsq = Math.pow(rx, 2);\n var rysq = Math.pow(ry, 2);\n var pxpsq = Math.pow(pxp, 2);\n var pypsq = Math.pow(pyp, 2);\n\n var radicant = rxsq * rysq - rxsq * pypsq - rysq * pxpsq;\n\n if (radicant < 0) {\n radicant = 0;\n }\n\n radicant /= rxsq * pypsq + rysq * pxpsq;\n radicant = Math.sqrt(radicant) * (largeArcFlag === sweepFlag ? -1 : 1);\n\n var centerxp = radicant * rx / ry * pyp;\n var centeryp = radicant * -ry / rx * pxp;\n\n var centerx = cosphi * centerxp - sinphi * centeryp + (px + cx) / 2;\n var centery = sinphi * centerxp + cosphi * centeryp + (py + cy) / 2;\n\n var vx1 = (pxp - centerxp) / rx;\n var vy1 = (pyp - centeryp) / ry;\n var vx2 = (-pxp - centerxp) / rx;\n var vy2 = (-pyp - centeryp) / ry;\n\n var ang1 = vectorAngle(1, 0, vx1, vy1);\n var ang2 = vectorAngle(vx1, vy1, vx2, vy2);\n\n if (sweepFlag === 0 && ang2 > 0) {\n ang2 -= TAU;\n }\n\n if (sweepFlag === 1 && ang2 < 0) {\n ang2 += TAU;\n }\n\n return [centerx, centery, ang1, ang2];\n};\n\nvar arcToBezier = function arcToBezier(_ref2) {\n var px = _ref2.px,\n py = _ref2.py,\n cx = _ref2.cx,\n cy = _ref2.cy,\n rx = _ref2.rx,\n ry = _ref2.ry,\n _ref2$xAxisRotation = _ref2.xAxisRotation,\n xAxisRotation = _ref2$xAxisRotation === undefined ? 0 : _ref2$xAxisRotation,\n _ref2$largeArcFlag = _ref2.largeArcFlag,\n largeArcFlag = _ref2$largeArcFlag === undefined ? 0 : _ref2$largeArcFlag,\n _ref2$sweepFlag = _ref2.sweepFlag,\n sweepFlag = _ref2$sweepFlag === undefined ? 0 : _ref2$sweepFlag;\n\n var curves = [];\n\n if (rx === 0 || ry === 0) {\n return [];\n }\n\n var sinphi = Math.sin(xAxisRotation * TAU / 360);\n var cosphi = Math.cos(xAxisRotation * TAU / 360);\n\n var pxp = cosphi * (px - cx) / 2 + sinphi * (py - cy) / 2;\n var pyp = -sinphi * (px - cx) / 2 + cosphi * (py - cy) / 2;\n\n if (pxp === 0 && pyp === 0) {\n return [];\n }\n\n rx = Math.abs(rx);\n ry = Math.abs(ry);\n\n var lambda = Math.pow(pxp, 2) / Math.pow(rx, 2) + Math.pow(pyp, 2) / Math.pow(ry, 2);\n\n if (lambda > 1) {\n rx *= Math.sqrt(lambda);\n ry *= Math.sqrt(lambda);\n }\n\n var _getArcCenter = getArcCenter(px, py, cx, cy, rx, ry, largeArcFlag, sweepFlag, sinphi, cosphi, pxp, pyp),\n _getArcCenter2 = _slicedToArray(_getArcCenter, 4),\n centerx = _getArcCenter2[0],\n centery = _getArcCenter2[1],\n ang1 = _getArcCenter2[2],\n ang2 = _getArcCenter2[3];\n\n // If 'ang2' == 90.0000000001, then `ratio` will evaluate to\n // 1.0000000001. This causes `segments` to be greater than one, which is an\n // unecessary split, and adds extra points to the bezier curve. To alleviate\n // this issue, we round to 1.0 when the ratio is close to 1.0.\n\n\n var ratio = Math.abs(ang2) / (TAU / 4);\n if (Math.abs(1.0 - ratio) < 0.0000001) {\n ratio = 1.0;\n }\n\n var segments = Math.max(Math.ceil(ratio), 1);\n\n ang2 /= segments;\n\n for (var i = 0; i < segments; i++) {\n curves.push(approxUnitArc(ang1, ang2));\n ang1 += ang2;\n }\n\n return curves.map(function (curve) {\n var _mapToEllipse = mapToEllipse(curve[0], rx, ry, cosphi, sinphi, centerx, centery),\n x1 = _mapToEllipse.x,\n y1 = _mapToEllipse.y;\n\n var _mapToEllipse2 = mapToEllipse(curve[1], rx, ry, cosphi, sinphi, centerx, centery),\n x2 = _mapToEllipse2.x,\n y2 = _mapToEllipse2.y;\n\n var _mapToEllipse3 = mapToEllipse(curve[2], rx, ry, cosphi, sinphi, centerx, centery),\n x = _mapToEllipse3.x,\n y = _mapToEllipse3.y;\n\n return { x1: x1, y1: y1, x2: x2, y2: y2, x: x, y: y };\n });\n};\n\nexports.default = arcToBezier;\nmodule.exports = exports.default;\n},{}],308:[function(_dereq_,module,exports){\n'use strict'\r\n\r\nvar parse = _dereq_('parse-svg-path')\r\nvar abs = _dereq_('abs-svg-path')\r\nvar normalize = _dereq_('normalize-svg-path')\r\nvar isSvgPath = _dereq_('is-svg-path')\r\nvar assert = _dereq_('assert')\r\n\r\nmodule.exports = pathBounds\r\n\r\n\r\nfunction pathBounds(path) {\r\n // ES6 string tpl call\r\n if (Array.isArray(path) && path.length === 1 && typeof path[0] === 'string') path = path[0]\r\n\r\n // svg path string\r\n if (typeof path === 'string') {\r\n assert(isSvgPath(path), 'String is not an SVG path.')\r\n path = parse(path)\r\n }\r\n\r\n assert(Array.isArray(path), 'Argument should be a string or an array of path segments.')\r\n\r\n path = abs(path)\r\n path = normalize(path)\r\n\r\n if (!path.length) return [0, 0, 0, 0]\r\n\r\n var bounds = [Infinity, Infinity, -Infinity, -Infinity]\r\n\r\n for (var i = 0, l = path.length; i < l; i++) {\r\n var points = path[i].slice(1)\r\n\r\n for (var j = 0; j < points.length; j += 2) {\r\n if (points[j + 0] < bounds[0]) bounds[0] = points[j + 0]\r\n if (points[j + 1] < bounds[1]) bounds[1] = points[j + 1]\r\n if (points[j + 0] > bounds[2]) bounds[2] = points[j + 0]\r\n if (points[j + 1] > bounds[3]) bounds[3] = points[j + 1]\r\n }\r\n }\r\n\r\n return bounds\r\n}\r\n\n},{\"abs-svg-path\":70,\"assert\":75,\"is-svg-path\":238,\"normalize-svg-path\":309,\"parse-svg-path\":250}],309:[function(_dereq_,module,exports){\n'use strict'\r\n\r\nmodule.exports = normalize\r\n\r\nvar arcToCurve = _dereq_('svg-arc-to-cubic-bezier')\r\n\r\nfunction normalize(path){\r\n // init state\r\n var prev\r\n var result = []\r\n var bezierX = 0\r\n var bezierY = 0\r\n var startX = 0\r\n var startY = 0\r\n var quadX = null\r\n var quadY = null\r\n var x = 0\r\n var y = 0\r\n\r\n for (var i = 0, len = path.length; i < len; i++) {\r\n var seg = path[i]\r\n var command = seg[0]\r\n\r\n switch (command) {\r\n case 'M':\r\n startX = seg[1]\r\n startY = seg[2]\r\n break\r\n case 'A':\r\n var curves = arcToCurve({\r\n px: x,\r\n py: y,\r\n cx: seg[6],\r\n cy: seg[7],\r\n rx: seg[1],\r\n ry: seg[2],\r\n xAxisRotation: seg[3],\r\n largeArcFlag: seg[4],\r\n sweepFlag: seg[5]\r\n })\r\n\r\n // null-curves\r\n if (!curves.length) continue\r\n\r\n for (var j = 0, c; j < curves.length; j++) {\r\n c = curves[j]\r\n seg = ['C', c.x1, c.y1, c.x2, c.y2, c.x, c.y]\r\n if (j < curves.length - 1) result.push(seg)\r\n }\r\n\r\n break\r\n case 'S':\r\n // default control point\r\n var cx = x\r\n var cy = y\r\n if (prev == 'C' || prev == 'S') {\r\n cx += cx - bezierX // reflect the previous command's control\r\n cy += cy - bezierY // point relative to the current point\r\n }\r\n seg = ['C', cx, cy, seg[1], seg[2], seg[3], seg[4]]\r\n break\r\n case 'T':\r\n if (prev == 'Q' || prev == 'T') {\r\n quadX = x * 2 - quadX // as with 'S' reflect previous control point\r\n quadY = y * 2 - quadY\r\n } else {\r\n quadX = x\r\n quadY = y\r\n }\r\n seg = quadratic(x, y, quadX, quadY, seg[1], seg[2])\r\n break\r\n case 'Q':\r\n quadX = seg[1]\r\n quadY = seg[2]\r\n seg = quadratic(x, y, seg[1], seg[2], seg[3], seg[4])\r\n break\r\n case 'L':\r\n seg = line(x, y, seg[1], seg[2])\r\n break\r\n case 'H':\r\n seg = line(x, y, seg[1], y)\r\n break\r\n case 'V':\r\n seg = line(x, y, x, seg[1])\r\n break\r\n case 'Z':\r\n seg = line(x, y, startX, startY)\r\n break\r\n }\r\n\r\n // update state\r\n prev = command\r\n x = seg[seg.length - 2]\r\n y = seg[seg.length - 1]\r\n if (seg.length > 4) {\r\n bezierX = seg[seg.length - 4]\r\n bezierY = seg[seg.length - 3]\r\n } else {\r\n bezierX = x\r\n bezierY = y\r\n }\r\n result.push(seg)\r\n }\r\n\r\n return result\r\n}\r\n\r\nfunction line(x1, y1, x2, y2){\r\n return ['C', x1, y1, x2, y2, x2, y2]\r\n}\r\n\r\nfunction quadratic(x1, y1, cx, cy, x2, y2){\r\n return [\r\n 'C',\r\n x1/3 + (2/3) * cx,\r\n y1/3 + (2/3) * cy,\r\n x2/3 + (2/3) * cx,\r\n y2/3 + (2/3) * cy,\r\n x2,\r\n y2\r\n ]\r\n}\r\n\n},{\"svg-arc-to-cubic-bezier\":307}],310:[function(_dereq_,module,exports){\n'use strict'\r\n\r\nvar pathBounds = _dereq_('svg-path-bounds')\r\nvar parsePath = _dereq_('parse-svg-path')\r\nvar drawPath = _dereq_('draw-svg-path')\r\nvar isSvgPath = _dereq_('is-svg-path')\r\nvar bitmapSdf = _dereq_('bitmap-sdf')\r\n\r\nvar canvas = document.createElement('canvas')\r\nvar ctx = canvas.getContext('2d')\r\n\r\n\r\nmodule.exports = pathSdf\r\n\r\n\r\nfunction pathSdf (path, options) {\r\n\tif (!isSvgPath(path)) throw Error('Argument should be valid svg path string')\r\n\r\n\tif (!options) options = {}\r\n\r\n\tvar w, h\r\n\tif (options.shape) {\r\n\t\tw = options.shape[0]\r\n\t\th = options.shape[1]\r\n\t}\r\n\telse {\r\n\t\tw = canvas.width = options.w || options.width || 200\r\n\t\th = canvas.height = options.h || options.height || 200\r\n\t}\r\n\tvar size = Math.min(w, h)\r\n\r\n\tvar stroke = options.stroke || 0\r\n\r\n\tvar viewbox = options.viewbox || options.viewBox || pathBounds(path)\r\n\tvar scale = [w / (viewbox[2] - viewbox[0]), h / (viewbox[3] - viewbox[1])]\r\n\tvar maxScale = Math.min(scale[0] || 0, scale[1] || 0) / 2\r\n\r\n\t//clear ctx\r\n\tctx.fillStyle = 'black'\r\n\tctx.fillRect(0, 0, w, h)\r\n\r\n\tctx.fillStyle = 'white'\r\n\r\n\tif (stroke)\t{\r\n\t\tif (typeof stroke != 'number') stroke = 1\r\n\t\tif (stroke > 0) {\r\n\t\t\tctx.strokeStyle = 'white'\r\n\t\t}\r\n\t\telse {\r\n\t\t\tctx.strokeStyle = 'black'\r\n\t\t}\r\n\r\n\t\tctx.lineWidth = Math.abs(stroke)\r\n\t}\r\n\r\n\tctx.translate(w * .5, h * .5)\r\n\tctx.scale(maxScale, maxScale)\r\n\r\n\t//if canvas svg paths api is available\r\n\tif (isPath2DSupported()) {\r\n\t\tvar path2d = new Path2D(path)\r\n\t\tctx.fill(path2d)\r\n\t\tstroke && ctx.stroke(path2d)\r\n\t}\r\n\t//fallback to bezier-curves\r\n\telse {\r\n\t\tvar segments = parsePath(path)\r\n\t\tdrawPath(ctx, segments)\r\n\t\tctx.fill()\r\n\t\tstroke && ctx.stroke()\r\n\t}\r\n\r\n\tctx.setTransform(1, 0, 0, 1, 0, 0);\r\n\r\n\tvar data = bitmapSdf(ctx, {\r\n\t\tcutoff: options.cutoff != null ? options.cutoff : .5,\r\n\t\tradius: options.radius != null ? options.radius : size * .5\r\n\t})\r\n\r\n\treturn data\r\n}\r\n\r\nvar path2DSupported\r\n\r\nfunction isPath2DSupported () {\r\n\tif (path2DSupported != null) return path2DSupported\r\n\r\n\tvar ctx = document.createElement('canvas').getContext('2d')\r\n\tctx.canvas.width = ctx.canvas.height = 1\r\n\r\n\tif (!window.Path2D) return path2DSupported = false\r\n\r\n\tvar path = new Path2D('M0,0h1v1h-1v-1Z')\r\n\r\n\tctx.fillStyle = 'black'\r\n\tctx.fill(path)\r\n\r\n\tvar idata = ctx.getImageData(0,0,1,1)\r\n\r\n\treturn path2DSupported = idata && idata.data && idata.data[3] === 255\r\n}\r\n\n},{\"bitmap-sdf\":82,\"draw-svg-path\":126,\"is-svg-path\":238,\"parse-svg-path\":250,\"svg-path-bounds\":308}],311:[function(_dereq_,module,exports){\n(function (setImmediate,clearImmediate){(function (){\nvar nextTick = _dereq_('process/browser.js').nextTick;\nvar apply = Function.prototype.apply;\nvar slice = Array.prototype.slice;\nvar immediateIds = {};\nvar nextImmediateId = 0;\n\n// DOM APIs, for completeness\n\nexports.setTimeout = function() {\n return new Timeout(apply.call(setTimeout, window, arguments), clearTimeout);\n};\nexports.setInterval = function() {\n return new Timeout(apply.call(setInterval, window, arguments), clearInterval);\n};\nexports.clearTimeout =\nexports.clearInterval = function(timeout) { timeout.close(); };\n\nfunction Timeout(id, clearFn) {\n this._id = id;\n this._clearFn = clearFn;\n}\nTimeout.prototype.unref = Timeout.prototype.ref = function() {};\nTimeout.prototype.close = function() {\n this._clearFn.call(window, this._id);\n};\n\n// Does not start the time, just sets up the members needed.\nexports.enroll = function(item, msecs) {\n clearTimeout(item._idleTimeoutId);\n item._idleTimeout = msecs;\n};\n\nexports.unenroll = function(item) {\n clearTimeout(item._idleTimeoutId);\n item._idleTimeout = -1;\n};\n\nexports._unrefActive = exports.active = function(item) {\n clearTimeout(item._idleTimeoutId);\n\n var msecs = item._idleTimeout;\n if (msecs >= 0) {\n item._idleTimeoutId = setTimeout(function onTimeout() {\n if (item._onTimeout)\n item._onTimeout();\n }, msecs);\n }\n};\n\n// That's not how node.js implements it but the exposed api is the same.\nexports.setImmediate = typeof setImmediate === \"function\" ? setImmediate : function(fn) {\n var id = nextImmediateId++;\n var args = arguments.length < 2 ? false : slice.call(arguments, 1);\n\n immediateIds[id] = true;\n\n nextTick(function onNextTick() {\n if (immediateIds[id]) {\n // fn.call() is faster so we optimize for the common use-case\n // @see http://jsperf.com/call-apply-segu\n if (args) {\n fn.apply(null, args);\n } else {\n fn.call(null);\n }\n // Prevent ids from leaking\n exports.clearImmediate(id);\n }\n });\n\n return id;\n};\n\nexports.clearImmediate = typeof clearImmediate === \"function\" ? clearImmediate : function(id) {\n delete immediateIds[id];\n};\n}).call(this)}).call(this,_dereq_(\"timers\").setImmediate,_dereq_(\"timers\").clearImmediate)\n},{\"process/browser.js\":277,\"timers\":311}],312:[function(_dereq_,module,exports){\n// TinyColor v1.4.2\n// https://github.com/bgrins/TinyColor\n// Brian Grinstead, MIT License\n\n(function(Math) {\n\nvar trimLeft = /^\\s+/,\n trimRight = /\\s+$/,\n tinyCounter = 0,\n mathRound = Math.round,\n mathMin = Math.min,\n mathMax = Math.max,\n mathRandom = Math.random;\n\nfunction tinycolor (color, opts) {\n\n color = (color) ? color : '';\n opts = opts || { };\n\n // If input is already a tinycolor, return itself\n if (color instanceof tinycolor) {\n return color;\n }\n // If we are called as a function, call using new instead\n if (!(this instanceof tinycolor)) {\n return new tinycolor(color, opts);\n }\n\n var rgb = inputToRGB(color);\n this._originalInput = color,\n this._r = rgb.r,\n this._g = rgb.g,\n this._b = rgb.b,\n this._a = rgb.a,\n this._roundA = mathRound(100*this._a) / 100,\n this._format = opts.format || rgb.format;\n this._gradientType = opts.gradientType;\n\n // Don't let the range of [0,255] come back in [0,1].\n // Potentially lose a little bit of precision here, but will fix issues where\n // .5 gets interpreted as half of the total, instead of half of 1\n // If it was supposed to be 128, this was already taken care of by `inputToRgb`\n if (this._r < 1) { this._r = mathRound(this._r); }\n if (this._g < 1) { this._g = mathRound(this._g); }\n if (this._b < 1) { this._b = mathRound(this._b); }\n\n this._ok = rgb.ok;\n this._tc_id = tinyCounter++;\n}\n\ntinycolor.prototype = {\n isDark: function() {\n return this.getBrightness() < 128;\n },\n isLight: function() {\n return !this.isDark();\n },\n isValid: function() {\n return this._ok;\n },\n getOriginalInput: function() {\n return this._originalInput;\n },\n getFormat: function() {\n return this._format;\n },\n getAlpha: function() {\n return this._a;\n },\n getBrightness: function() {\n //http://www.w3.org/TR/AERT#color-contrast\n var rgb = this.toRgb();\n return (rgb.r * 299 + rgb.g * 587 + rgb.b * 114) / 1000;\n },\n getLuminance: function() {\n //http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef\n var rgb = this.toRgb();\n var RsRGB, GsRGB, BsRGB, R, G, B;\n RsRGB = rgb.r/255;\n GsRGB = rgb.g/255;\n BsRGB = rgb.b/255;\n\n if (RsRGB <= 0.03928) {R = RsRGB / 12.92;} else {R = Math.pow(((RsRGB + 0.055) / 1.055), 2.4);}\n if (GsRGB <= 0.03928) {G = GsRGB / 12.92;} else {G = Math.pow(((GsRGB + 0.055) / 1.055), 2.4);}\n if (BsRGB <= 0.03928) {B = BsRGB / 12.92;} else {B = Math.pow(((BsRGB + 0.055) / 1.055), 2.4);}\n return (0.2126 * R) + (0.7152 * G) + (0.0722 * B);\n },\n setAlpha: function(value) {\n this._a = boundAlpha(value);\n this._roundA = mathRound(100*this._a) / 100;\n return this;\n },\n toHsv: function() {\n var hsv = rgbToHsv(this._r, this._g, this._b);\n return { h: hsv.h * 360, s: hsv.s, v: hsv.v, a: this._a };\n },\n toHsvString: function() {\n var hsv = rgbToHsv(this._r, this._g, this._b);\n var h = mathRound(hsv.h * 360), s = mathRound(hsv.s * 100), v = mathRound(hsv.v * 100);\n return (this._a == 1) ?\n \"hsv(\" + h + \", \" + s + \"%, \" + v + \"%)\" :\n \"hsva(\" + h + \", \" + s + \"%, \" + v + \"%, \"+ this._roundA + \")\";\n },\n toHsl: function() {\n var hsl = rgbToHsl(this._r, this._g, this._b);\n return { h: hsl.h * 360, s: hsl.s, l: hsl.l, a: this._a };\n },\n toHslString: function() {\n var hsl = rgbToHsl(this._r, this._g, this._b);\n var h = mathRound(hsl.h * 360), s = mathRound(hsl.s * 100), l = mathRound(hsl.l * 100);\n return (this._a == 1) ?\n \"hsl(\" + h + \", \" + s + \"%, \" + l + \"%)\" :\n \"hsla(\" + h + \", \" + s + \"%, \" + l + \"%, \"+ this._roundA + \")\";\n },\n toHex: function(allow3Char) {\n return rgbToHex(this._r, this._g, this._b, allow3Char);\n },\n toHexString: function(allow3Char) {\n return '#' + this.toHex(allow3Char);\n },\n toHex8: function(allow4Char) {\n return rgbaToHex(this._r, this._g, this._b, this._a, allow4Char);\n },\n toHex8String: function(allow4Char) {\n return '#' + this.toHex8(allow4Char);\n },\n toRgb: function() {\n return { r: mathRound(this._r), g: mathRound(this._g), b: mathRound(this._b), a: this._a };\n },\n toRgbString: function() {\n return (this._a == 1) ?\n \"rgb(\" + mathRound(this._r) + \", \" + mathRound(this._g) + \", \" + mathRound(this._b) + \")\" :\n \"rgba(\" + mathRound(this._r) + \", \" + mathRound(this._g) + \", \" + mathRound(this._b) + \", \" + this._roundA + \")\";\n },\n toPercentageRgb: function() {\n return { r: mathRound(bound01(this._r, 255) * 100) + \"%\", g: mathRound(bound01(this._g, 255) * 100) + \"%\", b: mathRound(bound01(this._b, 255) * 100) + \"%\", a: this._a };\n },\n toPercentageRgbString: function() {\n return (this._a == 1) ?\n \"rgb(\" + mathRound(bound01(this._r, 255) * 100) + \"%, \" + mathRound(bound01(this._g, 255) * 100) + \"%, \" + mathRound(bound01(this._b, 255) * 100) + \"%)\" :\n \"rgba(\" + mathRound(bound01(this._r, 255) * 100) + \"%, \" + mathRound(bound01(this._g, 255) * 100) + \"%, \" + mathRound(bound01(this._b, 255) * 100) + \"%, \" + this._roundA + \")\";\n },\n toName: function() {\n if (this._a === 0) {\n return \"transparent\";\n }\n\n if (this._a < 1) {\n return false;\n }\n\n return hexNames[rgbToHex(this._r, this._g, this._b, true)] || false;\n },\n toFilter: function(secondColor) {\n var hex8String = '#' + rgbaToArgbHex(this._r, this._g, this._b, this._a);\n var secondHex8String = hex8String;\n var gradientType = this._gradientType ? \"GradientType = 1, \" : \"\";\n\n if (secondColor) {\n var s = tinycolor(secondColor);\n secondHex8String = '#' + rgbaToArgbHex(s._r, s._g, s._b, s._a);\n }\n\n return \"progid:DXImageTransform.Microsoft.gradient(\"+gradientType+\"startColorstr=\"+hex8String+\",endColorstr=\"+secondHex8String+\")\";\n },\n toString: function(format) {\n var formatSet = !!format;\n format = format || this._format;\n\n var formattedString = false;\n var hasAlpha = this._a < 1 && this._a >= 0;\n var needsAlphaFormat = !formatSet && hasAlpha && (format === \"hex\" || format === \"hex6\" || format === \"hex3\" || format === \"hex4\" || format === \"hex8\" || format === \"name\");\n\n if (needsAlphaFormat) {\n // Special case for \"transparent\", all other non-alpha formats\n // will return rgba when there is transparency.\n if (format === \"name\" && this._a === 0) {\n return this.toName();\n }\n return this.toRgbString();\n }\n if (format === \"rgb\") {\n formattedString = this.toRgbString();\n }\n if (format === \"prgb\") {\n formattedString = this.toPercentageRgbString();\n }\n if (format === \"hex\" || format === \"hex6\") {\n formattedString = this.toHexString();\n }\n if (format === \"hex3\") {\n formattedString = this.toHexString(true);\n }\n if (format === \"hex4\") {\n formattedString = this.toHex8String(true);\n }\n if (format === \"hex8\") {\n formattedString = this.toHex8String();\n }\n if (format === \"name\") {\n formattedString = this.toName();\n }\n if (format === \"hsl\") {\n formattedString = this.toHslString();\n }\n if (format === \"hsv\") {\n formattedString = this.toHsvString();\n }\n\n return formattedString || this.toHexString();\n },\n clone: function() {\n return tinycolor(this.toString());\n },\n\n _applyModification: function(fn, args) {\n var color = fn.apply(null, [this].concat([].slice.call(args)));\n this._r = color._r;\n this._g = color._g;\n this._b = color._b;\n this.setAlpha(color._a);\n return this;\n },\n lighten: function() {\n return this._applyModification(lighten, arguments);\n },\n brighten: function() {\n return this._applyModification(brighten, arguments);\n },\n darken: function() {\n return this._applyModification(darken, arguments);\n },\n desaturate: function() {\n return this._applyModification(desaturate, arguments);\n },\n saturate: function() {\n return this._applyModification(saturate, arguments);\n },\n greyscale: function() {\n return this._applyModification(greyscale, arguments);\n },\n spin: function() {\n return this._applyModification(spin, arguments);\n },\n\n _applyCombination: function(fn, args) {\n return fn.apply(null, [this].concat([].slice.call(args)));\n },\n analogous: function() {\n return this._applyCombination(analogous, arguments);\n },\n complement: function() {\n return this._applyCombination(complement, arguments);\n },\n monochromatic: function() {\n return this._applyCombination(monochromatic, arguments);\n },\n splitcomplement: function() {\n return this._applyCombination(splitcomplement, arguments);\n },\n triad: function() {\n return this._applyCombination(triad, arguments);\n },\n tetrad: function() {\n return this._applyCombination(tetrad, arguments);\n }\n};\n\n// If input is an object, force 1 into \"1.0\" to handle ratios properly\n// String input requires \"1.0\" as input, so 1 will be treated as 1\ntinycolor.fromRatio = function(color, opts) {\n if (typeof color == \"object\") {\n var newColor = {};\n for (var i in color) {\n if (color.hasOwnProperty(i)) {\n if (i === \"a\") {\n newColor[i] = color[i];\n }\n else {\n newColor[i] = convertToPercentage(color[i]);\n }\n }\n }\n color = newColor;\n }\n\n return tinycolor(color, opts);\n};\n\n// Given a string or object, convert that input to RGB\n// Possible string inputs:\n//\n// \"red\"\n// \"#f00\" or \"f00\"\n// \"#ff0000\" or \"ff0000\"\n// \"#ff000000\" or \"ff000000\"\n// \"rgb 255 0 0\" or \"rgb (255, 0, 0)\"\n// \"rgb 1.0 0 0\" or \"rgb (1, 0, 0)\"\n// \"rgba (255, 0, 0, 1)\" or \"rgba 255, 0, 0, 1\"\n// \"rgba (1.0, 0, 0, 1)\" or \"rgba 1.0, 0, 0, 1\"\n// \"hsl(0, 100%, 50%)\" or \"hsl 0 100% 50%\"\n// \"hsla(0, 100%, 50%, 1)\" or \"hsla 0 100% 50%, 1\"\n// \"hsv(0, 100%, 100%)\" or \"hsv 0 100% 100%\"\n//\nfunction inputToRGB(color) {\n\n var rgb = { r: 0, g: 0, b: 0 };\n var a = 1;\n var s = null;\n var v = null;\n var l = null;\n var ok = false;\n var format = false;\n\n if (typeof color == \"string\") {\n color = stringInputToObject(color);\n }\n\n if (typeof color == \"object\") {\n if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) {\n rgb = rgbToRgb(color.r, color.g, color.b);\n ok = true;\n format = String(color.r).substr(-1) === \"%\" ? \"prgb\" : \"rgb\";\n }\n else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v)) {\n s = convertToPercentage(color.s);\n v = convertToPercentage(color.v);\n rgb = hsvToRgb(color.h, s, v);\n ok = true;\n format = \"hsv\";\n }\n else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l)) {\n s = convertToPercentage(color.s);\n l = convertToPercentage(color.l);\n rgb = hslToRgb(color.h, s, l);\n ok = true;\n format = \"hsl\";\n }\n\n if (color.hasOwnProperty(\"a\")) {\n a = color.a;\n }\n }\n\n a = boundAlpha(a);\n\n return {\n ok: ok,\n format: color.format || format,\n r: mathMin(255, mathMax(rgb.r, 0)),\n g: mathMin(255, mathMax(rgb.g, 0)),\n b: mathMin(255, mathMax(rgb.b, 0)),\n a: a\n };\n}\n\n\n// Conversion Functions\n// --------------------\n\n// `rgbToHsl`, `rgbToHsv`, `hslToRgb`, `hsvToRgb` modified from:\n// \n\n// `rgbToRgb`\n// Handle bounds / percentage checking to conform to CSS color spec\n// \n// *Assumes:* r, g, b in [0, 255] or [0, 1]\n// *Returns:* { r, g, b } in [0, 255]\nfunction rgbToRgb(r, g, b){\n return {\n r: bound01(r, 255) * 255,\n g: bound01(g, 255) * 255,\n b: bound01(b, 255) * 255\n };\n}\n\n// `rgbToHsl`\n// Converts an RGB color value to HSL.\n// *Assumes:* r, g, and b are contained in [0, 255] or [0, 1]\n// *Returns:* { h, s, l } in [0,1]\nfunction rgbToHsl(r, g, b) {\n\n r = bound01(r, 255);\n g = bound01(g, 255);\n b = bound01(b, 255);\n\n var max = mathMax(r, g, b), min = mathMin(r, g, b);\n var h, s, l = (max + min) / 2;\n\n if(max == min) {\n h = s = 0; // achromatic\n }\n else {\n var d = max - min;\n s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n switch(max) {\n case r: h = (g - b) / d + (g < b ? 6 : 0); break;\n case g: h = (b - r) / d + 2; break;\n case b: h = (r - g) / d + 4; break;\n }\n\n h /= 6;\n }\n\n return { h: h, s: s, l: l };\n}\n\n// `hslToRgb`\n// Converts an HSL color value to RGB.\n// *Assumes:* h is contained in [0, 1] or [0, 360] and s and l are contained [0, 1] or [0, 100]\n// *Returns:* { r, g, b } in the set [0, 255]\nfunction hslToRgb(h, s, l) {\n var r, g, b;\n\n h = bound01(h, 360);\n s = bound01(s, 100);\n l = bound01(l, 100);\n\n function hue2rgb(p, q, t) {\n if(t < 0) t += 1;\n if(t > 1) t -= 1;\n if(t < 1/6) return p + (q - p) * 6 * t;\n if(t < 1/2) return q;\n if(t < 2/3) return p + (q - p) * (2/3 - t) * 6;\n return p;\n }\n\n if(s === 0) {\n r = g = b = l; // achromatic\n }\n else {\n var q = l < 0.5 ? l * (1 + s) : l + s - l * s;\n var p = 2 * l - q;\n r = hue2rgb(p, q, h + 1/3);\n g = hue2rgb(p, q, h);\n b = hue2rgb(p, q, h - 1/3);\n }\n\n return { r: r * 255, g: g * 255, b: b * 255 };\n}\n\n// `rgbToHsv`\n// Converts an RGB color value to HSV\n// *Assumes:* r, g, and b are contained in the set [0, 255] or [0, 1]\n// *Returns:* { h, s, v } in [0,1]\nfunction rgbToHsv(r, g, b) {\n\n r = bound01(r, 255);\n g = bound01(g, 255);\n b = bound01(b, 255);\n\n var max = mathMax(r, g, b), min = mathMin(r, g, b);\n var h, s, v = max;\n\n var d = max - min;\n s = max === 0 ? 0 : d / max;\n\n if(max == min) {\n h = 0; // achromatic\n }\n else {\n switch(max) {\n case r: h = (g - b) / d + (g < b ? 6 : 0); break;\n case g: h = (b - r) / d + 2; break;\n case b: h = (r - g) / d + 4; break;\n }\n h /= 6;\n }\n return { h: h, s: s, v: v };\n}\n\n// `hsvToRgb`\n// Converts an HSV color value to RGB.\n// *Assumes:* h is contained in [0, 1] or [0, 360] and s and v are contained in [0, 1] or [0, 100]\n// *Returns:* { r, g, b } in the set [0, 255]\n function hsvToRgb(h, s, v) {\n\n h = bound01(h, 360) * 6;\n s = bound01(s, 100);\n v = bound01(v, 100);\n\n var i = Math.floor(h),\n f = h - i,\n p = v * (1 - s),\n q = v * (1 - f * s),\n t = v * (1 - (1 - f) * s),\n mod = i % 6,\n r = [v, q, p, p, t, v][mod],\n g = [t, v, v, q, p, p][mod],\n b = [p, p, t, v, v, q][mod];\n\n return { r: r * 255, g: g * 255, b: b * 255 };\n}\n\n// `rgbToHex`\n// Converts an RGB color to hex\n// Assumes r, g, and b are contained in the set [0, 255]\n// Returns a 3 or 6 character hex\nfunction rgbToHex(r, g, b, allow3Char) {\n\n var hex = [\n pad2(mathRound(r).toString(16)),\n pad2(mathRound(g).toString(16)),\n pad2(mathRound(b).toString(16))\n ];\n\n // Return a 3 character hex if possible\n if (allow3Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1)) {\n return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0);\n }\n\n return hex.join(\"\");\n}\n\n// `rgbaToHex`\n// Converts an RGBA color plus alpha transparency to hex\n// Assumes r, g, b are contained in the set [0, 255] and\n// a in [0, 1]. Returns a 4 or 8 character rgba hex\nfunction rgbaToHex(r, g, b, a, allow4Char) {\n\n var hex = [\n pad2(mathRound(r).toString(16)),\n pad2(mathRound(g).toString(16)),\n pad2(mathRound(b).toString(16)),\n pad2(convertDecimalToHex(a))\n ];\n\n // Return a 4 character hex if possible\n if (allow4Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1) && hex[3].charAt(0) == hex[3].charAt(1)) {\n return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) + hex[3].charAt(0);\n }\n\n return hex.join(\"\");\n}\n\n// `rgbaToArgbHex`\n// Converts an RGBA color to an ARGB Hex8 string\n// Rarely used, but required for \"toFilter()\"\nfunction rgbaToArgbHex(r, g, b, a) {\n\n var hex = [\n pad2(convertDecimalToHex(a)),\n pad2(mathRound(r).toString(16)),\n pad2(mathRound(g).toString(16)),\n pad2(mathRound(b).toString(16))\n ];\n\n return hex.join(\"\");\n}\n\n// `equals`\n// Can be called with any tinycolor input\ntinycolor.equals = function (color1, color2) {\n if (!color1 || !color2) { return false; }\n return tinycolor(color1).toRgbString() == tinycolor(color2).toRgbString();\n};\n\ntinycolor.random = function() {\n return tinycolor.fromRatio({\n r: mathRandom(),\n g: mathRandom(),\n b: mathRandom()\n });\n};\n\n\n// Modification Functions\n// ----------------------\n// Thanks to less.js for some of the basics here\n// \n\nfunction desaturate(color, amount) {\n amount = (amount === 0) ? 0 : (amount || 10);\n var hsl = tinycolor(color).toHsl();\n hsl.s -= amount / 100;\n hsl.s = clamp01(hsl.s);\n return tinycolor(hsl);\n}\n\nfunction saturate(color, amount) {\n amount = (amount === 0) ? 0 : (amount || 10);\n var hsl = tinycolor(color).toHsl();\n hsl.s += amount / 100;\n hsl.s = clamp01(hsl.s);\n return tinycolor(hsl);\n}\n\nfunction greyscale(color) {\n return tinycolor(color).desaturate(100);\n}\n\nfunction lighten (color, amount) {\n amount = (amount === 0) ? 0 : (amount || 10);\n var hsl = tinycolor(color).toHsl();\n hsl.l += amount / 100;\n hsl.l = clamp01(hsl.l);\n return tinycolor(hsl);\n}\n\nfunction brighten(color, amount) {\n amount = (amount === 0) ? 0 : (amount || 10);\n var rgb = tinycolor(color).toRgb();\n rgb.r = mathMax(0, mathMin(255, rgb.r - mathRound(255 * - (amount / 100))));\n rgb.g = mathMax(0, mathMin(255, rgb.g - mathRound(255 * - (amount / 100))));\n rgb.b = mathMax(0, mathMin(255, rgb.b - mathRound(255 * - (amount / 100))));\n return tinycolor(rgb);\n}\n\nfunction darken (color, amount) {\n amount = (amount === 0) ? 0 : (amount || 10);\n var hsl = tinycolor(color).toHsl();\n hsl.l -= amount / 100;\n hsl.l = clamp01(hsl.l);\n return tinycolor(hsl);\n}\n\n// Spin takes a positive or negative amount within [-360, 360] indicating the change of hue.\n// Values outside of this range will be wrapped into this range.\nfunction spin(color, amount) {\n var hsl = tinycolor(color).toHsl();\n var hue = (hsl.h + amount) % 360;\n hsl.h = hue < 0 ? 360 + hue : hue;\n return tinycolor(hsl);\n}\n\n// Combination Functions\n// ---------------------\n// Thanks to jQuery xColor for some of the ideas behind these\n// \n\nfunction complement(color) {\n var hsl = tinycolor(color).toHsl();\n hsl.h = (hsl.h + 180) % 360;\n return tinycolor(hsl);\n}\n\nfunction triad(color) {\n var hsl = tinycolor(color).toHsl();\n var h = hsl.h;\n return [\n tinycolor(color),\n tinycolor({ h: (h + 120) % 360, s: hsl.s, l: hsl.l }),\n tinycolor({ h: (h + 240) % 360, s: hsl.s, l: hsl.l })\n ];\n}\n\nfunction tetrad(color) {\n var hsl = tinycolor(color).toHsl();\n var h = hsl.h;\n return [\n tinycolor(color),\n tinycolor({ h: (h + 90) % 360, s: hsl.s, l: hsl.l }),\n tinycolor({ h: (h + 180) % 360, s: hsl.s, l: hsl.l }),\n tinycolor({ h: (h + 270) % 360, s: hsl.s, l: hsl.l })\n ];\n}\n\nfunction splitcomplement(color) {\n var hsl = tinycolor(color).toHsl();\n var h = hsl.h;\n return [\n tinycolor(color),\n tinycolor({ h: (h + 72) % 360, s: hsl.s, l: hsl.l}),\n tinycolor({ h: (h + 216) % 360, s: hsl.s, l: hsl.l})\n ];\n}\n\nfunction analogous(color, results, slices) {\n results = results || 6;\n slices = slices || 30;\n\n var hsl = tinycolor(color).toHsl();\n var part = 360 / slices;\n var ret = [tinycolor(color)];\n\n for (hsl.h = ((hsl.h - (part * results >> 1)) + 720) % 360; --results; ) {\n hsl.h = (hsl.h + part) % 360;\n ret.push(tinycolor(hsl));\n }\n return ret;\n}\n\nfunction monochromatic(color, results) {\n results = results || 6;\n var hsv = tinycolor(color).toHsv();\n var h = hsv.h, s = hsv.s, v = hsv.v;\n var ret = [];\n var modification = 1 / results;\n\n while (results--) {\n ret.push(tinycolor({ h: h, s: s, v: v}));\n v = (v + modification) % 1;\n }\n\n return ret;\n}\n\n// Utility Functions\n// ---------------------\n\ntinycolor.mix = function(color1, color2, amount) {\n amount = (amount === 0) ? 0 : (amount || 50);\n\n var rgb1 = tinycolor(color1).toRgb();\n var rgb2 = tinycolor(color2).toRgb();\n\n var p = amount / 100;\n\n var rgba = {\n r: ((rgb2.r - rgb1.r) * p) + rgb1.r,\n g: ((rgb2.g - rgb1.g) * p) + rgb1.g,\n b: ((rgb2.b - rgb1.b) * p) + rgb1.b,\n a: ((rgb2.a - rgb1.a) * p) + rgb1.a\n };\n\n return tinycolor(rgba);\n};\n\n\n// Readability Functions\n// ---------------------\n// false\n// tinycolor.isReadable(\"#000\", \"#111\",{level:\"AA\",size:\"large\"}) => false\ntinycolor.isReadable = function(color1, color2, wcag2) {\n var readability = tinycolor.readability(color1, color2);\n var wcag2Parms, out;\n\n out = false;\n\n wcag2Parms = validateWCAG2Parms(wcag2);\n switch (wcag2Parms.level + wcag2Parms.size) {\n case \"AAsmall\":\n case \"AAAlarge\":\n out = readability >= 4.5;\n break;\n case \"AAlarge\":\n out = readability >= 3;\n break;\n case \"AAAsmall\":\n out = readability >= 7;\n break;\n }\n return out;\n\n};\n\n// `mostReadable`\n// Given a base color and a list of possible foreground or background\n// colors for that base, returns the most readable color.\n// Optionally returns Black or White if the most readable color is unreadable.\n// *Example*\n// tinycolor.mostReadable(tinycolor.mostReadable(\"#123\", [\"#124\", \"#125\"],{includeFallbackColors:false}).toHexString(); // \"#112255\"\n// tinycolor.mostReadable(tinycolor.mostReadable(\"#123\", [\"#124\", \"#125\"],{includeFallbackColors:true}).toHexString(); // \"#ffffff\"\n// tinycolor.mostReadable(\"#a8015a\", [\"#faf3f3\"],{includeFallbackColors:true,level:\"AAA\",size:\"large\"}).toHexString(); // \"#faf3f3\"\n// tinycolor.mostReadable(\"#a8015a\", [\"#faf3f3\"],{includeFallbackColors:true,level:\"AAA\",size:\"small\"}).toHexString(); // \"#ffffff\"\ntinycolor.mostReadable = function(baseColor, colorList, args) {\n var bestColor = null;\n var bestScore = 0;\n var readability;\n var includeFallbackColors, level, size ;\n args = args || {};\n includeFallbackColors = args.includeFallbackColors ;\n level = args.level;\n size = args.size;\n\n for (var i= 0; i < colorList.length ; i++) {\n readability = tinycolor.readability(baseColor, colorList[i]);\n if (readability > bestScore) {\n bestScore = readability;\n bestColor = tinycolor(colorList[i]);\n }\n }\n\n if (tinycolor.isReadable(baseColor, bestColor, {\"level\":level,\"size\":size}) || !includeFallbackColors) {\n return bestColor;\n }\n else {\n args.includeFallbackColors=false;\n return tinycolor.mostReadable(baseColor,[\"#fff\", \"#000\"],args);\n }\n};\n\n\n// Big List of Colors\n// ------------------\n// \nvar names = tinycolor.names = {\n aliceblue: \"f0f8ff\",\n antiquewhite: \"faebd7\",\n aqua: \"0ff\",\n aquamarine: \"7fffd4\",\n azure: \"f0ffff\",\n beige: \"f5f5dc\",\n bisque: \"ffe4c4\",\n black: \"000\",\n blanchedalmond: \"ffebcd\",\n blue: \"00f\",\n blueviolet: \"8a2be2\",\n brown: \"a52a2a\",\n burlywood: \"deb887\",\n burntsienna: \"ea7e5d\",\n cadetblue: \"5f9ea0\",\n chartreuse: \"7fff00\",\n chocolate: \"d2691e\",\n coral: \"ff7f50\",\n cornflowerblue: \"6495ed\",\n cornsilk: \"fff8dc\",\n crimson: \"dc143c\",\n cyan: \"0ff\",\n darkblue: \"00008b\",\n darkcyan: \"008b8b\",\n darkgoldenrod: \"b8860b\",\n darkgray: \"a9a9a9\",\n darkgreen: \"006400\",\n darkgrey: \"a9a9a9\",\n darkkhaki: \"bdb76b\",\n darkmagenta: \"8b008b\",\n darkolivegreen: \"556b2f\",\n darkorange: \"ff8c00\",\n darkorchid: \"9932cc\",\n darkred: \"8b0000\",\n darksalmon: \"e9967a\",\n darkseagreen: \"8fbc8f\",\n darkslateblue: \"483d8b\",\n darkslategray: \"2f4f4f\",\n darkslategrey: \"2f4f4f\",\n darkturquoise: \"00ced1\",\n darkviolet: \"9400d3\",\n deeppink: \"ff1493\",\n deepskyblue: \"00bfff\",\n dimgray: \"696969\",\n dimgrey: \"696969\",\n dodgerblue: \"1e90ff\",\n firebrick: \"b22222\",\n floralwhite: \"fffaf0\",\n forestgreen: \"228b22\",\n fuchsia: \"f0f\",\n gainsboro: \"dcdcdc\",\n ghostwhite: \"f8f8ff\",\n gold: \"ffd700\",\n goldenrod: \"daa520\",\n gray: \"808080\",\n green: \"008000\",\n greenyellow: \"adff2f\",\n grey: \"808080\",\n honeydew: \"f0fff0\",\n hotpink: \"ff69b4\",\n indianred: \"cd5c5c\",\n indigo: \"4b0082\",\n ivory: \"fffff0\",\n khaki: \"f0e68c\",\n lavender: \"e6e6fa\",\n lavenderblush: \"fff0f5\",\n lawngreen: \"7cfc00\",\n lemonchiffon: \"fffacd\",\n lightblue: \"add8e6\",\n lightcoral: \"f08080\",\n lightcyan: \"e0ffff\",\n lightgoldenrodyellow: \"fafad2\",\n lightgray: \"d3d3d3\",\n lightgreen: \"90ee90\",\n lightgrey: \"d3d3d3\",\n lightpink: \"ffb6c1\",\n lightsalmon: \"ffa07a\",\n lightseagreen: \"20b2aa\",\n lightskyblue: \"87cefa\",\n lightslategray: \"789\",\n lightslategrey: \"789\",\n lightsteelblue: \"b0c4de\",\n lightyellow: \"ffffe0\",\n lime: \"0f0\",\n limegreen: \"32cd32\",\n linen: \"faf0e6\",\n magenta: \"f0f\",\n maroon: \"800000\",\n mediumaquamarine: \"66cdaa\",\n mediumblue: \"0000cd\",\n mediumorchid: \"ba55d3\",\n mediumpurple: \"9370db\",\n mediumseagreen: \"3cb371\",\n mediumslateblue: \"7b68ee\",\n mediumspringgreen: \"00fa9a\",\n mediumturquoise: \"48d1cc\",\n mediumvioletred: \"c71585\",\n midnightblue: \"191970\",\n mintcream: \"f5fffa\",\n mistyrose: \"ffe4e1\",\n moccasin: \"ffe4b5\",\n navajowhite: \"ffdead\",\n navy: \"000080\",\n oldlace: \"fdf5e6\",\n olive: \"808000\",\n olivedrab: \"6b8e23\",\n orange: \"ffa500\",\n orangered: \"ff4500\",\n orchid: \"da70d6\",\n palegoldenrod: \"eee8aa\",\n palegreen: \"98fb98\",\n paleturquoise: \"afeeee\",\n palevioletred: \"db7093\",\n papayawhip: \"ffefd5\",\n peachpuff: \"ffdab9\",\n peru: \"cd853f\",\n pink: \"ffc0cb\",\n plum: \"dda0dd\",\n powderblue: \"b0e0e6\",\n purple: \"800080\",\n rebeccapurple: \"663399\",\n red: \"f00\",\n rosybrown: \"bc8f8f\",\n royalblue: \"4169e1\",\n saddlebrown: \"8b4513\",\n salmon: \"fa8072\",\n sandybrown: \"f4a460\",\n seagreen: \"2e8b57\",\n seashell: \"fff5ee\",\n sienna: \"a0522d\",\n silver: \"c0c0c0\",\n skyblue: \"87ceeb\",\n slateblue: \"6a5acd\",\n slategray: \"708090\",\n slategrey: \"708090\",\n snow: \"fffafa\",\n springgreen: \"00ff7f\",\n steelblue: \"4682b4\",\n tan: \"d2b48c\",\n teal: \"008080\",\n thistle: \"d8bfd8\",\n tomato: \"ff6347\",\n turquoise: \"40e0d0\",\n violet: \"ee82ee\",\n wheat: \"f5deb3\",\n white: \"fff\",\n whitesmoke: \"f5f5f5\",\n yellow: \"ff0\",\n yellowgreen: \"9acd32\"\n};\n\n// Make it easy to access colors via `hexNames[hex]`\nvar hexNames = tinycolor.hexNames = flip(names);\n\n\n// Utilities\n// ---------\n\n// `{ 'name1': 'val1' }` becomes `{ 'val1': 'name1' }`\nfunction flip(o) {\n var flipped = { };\n for (var i in o) {\n if (o.hasOwnProperty(i)) {\n flipped[o[i]] = i;\n }\n }\n return flipped;\n}\n\n// Return a valid alpha value [0,1] with all invalid values being set to 1\nfunction boundAlpha(a) {\n a = parseFloat(a);\n\n if (isNaN(a) || a < 0 || a > 1) {\n a = 1;\n }\n\n return a;\n}\n\n// Take input from [0, n] and return it as [0, 1]\nfunction bound01(n, max) {\n if (isOnePointZero(n)) { n = \"100%\"; }\n\n var processPercent = isPercentage(n);\n n = mathMin(max, mathMax(0, parseFloat(n)));\n\n // Automatically convert percentage into number\n if (processPercent) {\n n = parseInt(n * max, 10) / 100;\n }\n\n // Handle floating point rounding errors\n if ((Math.abs(n - max) < 0.000001)) {\n return 1;\n }\n\n // Convert into [0, 1] range if it isn't already\n return (n % max) / parseFloat(max);\n}\n\n// Force a number between 0 and 1\nfunction clamp01(val) {\n return mathMin(1, mathMax(0, val));\n}\n\n// Parse a base-16 hex value into a base-10 integer\nfunction parseIntFromHex(val) {\n return parseInt(val, 16);\n}\n\n// Need to handle 1.0 as 100%, since once it is a number, there is no difference between it and 1\n// \nfunction isOnePointZero(n) {\n return typeof n == \"string\" && n.indexOf('.') != -1 && parseFloat(n) === 1;\n}\n\n// Check to see if string passed in is a percentage\nfunction isPercentage(n) {\n return typeof n === \"string\" && n.indexOf('%') != -1;\n}\n\n// Force a hex value to have 2 characters\nfunction pad2(c) {\n return c.length == 1 ? '0' + c : '' + c;\n}\n\n// Replace a decimal with it's percentage value\nfunction convertToPercentage(n) {\n if (n <= 1) {\n n = (n * 100) + \"%\";\n }\n\n return n;\n}\n\n// Converts a decimal to a hex value\nfunction convertDecimalToHex(d) {\n return Math.round(parseFloat(d) * 255).toString(16);\n}\n// Converts a hex value to a decimal\nfunction convertHexToDecimal(h) {\n return (parseIntFromHex(h) / 255);\n}\n\nvar matchers = (function() {\n\n // \n var CSS_INTEGER = \"[-\\\\+]?\\\\d+%?\";\n\n // \n var CSS_NUMBER = \"[-\\\\+]?\\\\d*\\\\.\\\\d+%?\";\n\n // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.\n var CSS_UNIT = \"(?:\" + CSS_NUMBER + \")|(?:\" + CSS_INTEGER + \")\";\n\n // Actual matching.\n // Parentheses and commas are optional, but not required.\n // Whitespace can take the place of commas or opening paren\n var PERMISSIVE_MATCH3 = \"[\\\\s|\\\\(]+(\" + CSS_UNIT + \")[,|\\\\s]+(\" + CSS_UNIT + \")[,|\\\\s]+(\" + CSS_UNIT + \")\\\\s*\\\\)?\";\n var PERMISSIVE_MATCH4 = \"[\\\\s|\\\\(]+(\" + CSS_UNIT + \")[,|\\\\s]+(\" + CSS_UNIT + \")[,|\\\\s]+(\" + CSS_UNIT + \")[,|\\\\s]+(\" + CSS_UNIT + \")\\\\s*\\\\)?\";\n\n return {\n CSS_UNIT: new RegExp(CSS_UNIT),\n rgb: new RegExp(\"rgb\" + PERMISSIVE_MATCH3),\n rgba: new RegExp(\"rgba\" + PERMISSIVE_MATCH4),\n hsl: new RegExp(\"hsl\" + PERMISSIVE_MATCH3),\n hsla: new RegExp(\"hsla\" + PERMISSIVE_MATCH4),\n hsv: new RegExp(\"hsv\" + PERMISSIVE_MATCH3),\n hsva: new RegExp(\"hsva\" + PERMISSIVE_MATCH4),\n hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,\n hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,\n hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,\n hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/\n };\n})();\n\n// `isValidCSSUnit`\n// Take in a single string / number and check to see if it looks like a CSS unit\n// (see `matchers` above for definition).\nfunction isValidCSSUnit(color) {\n return !!matchers.CSS_UNIT.exec(color);\n}\n\n// `stringInputToObject`\n// Permissive string parsing. Take in a number of formats, and output an object\n// based on detected format. Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}`\nfunction stringInputToObject(color) {\n\n color = color.replace(trimLeft,'').replace(trimRight, '').toLowerCase();\n var named = false;\n if (names[color]) {\n color = names[color];\n named = true;\n }\n else if (color == 'transparent') {\n return { r: 0, g: 0, b: 0, a: 0, format: \"name\" };\n }\n\n // Try to match string input using regular expressions.\n // Keep most of the number bounding out of this function - don't worry about [0,1] or [0,100] or [0,360]\n // Just return an object and let the conversion functions handle that.\n // This way the result will be the same whether the tinycolor is initialized with string or object.\n var match;\n if ((match = matchers.rgb.exec(color))) {\n return { r: match[1], g: match[2], b: match[3] };\n }\n if ((match = matchers.rgba.exec(color))) {\n return { r: match[1], g: match[2], b: match[3], a: match[4] };\n }\n if ((match = matchers.hsl.exec(color))) {\n return { h: match[1], s: match[2], l: match[3] };\n }\n if ((match = matchers.hsla.exec(color))) {\n return { h: match[1], s: match[2], l: match[3], a: match[4] };\n }\n if ((match = matchers.hsv.exec(color))) {\n return { h: match[1], s: match[2], v: match[3] };\n }\n if ((match = matchers.hsva.exec(color))) {\n return { h: match[1], s: match[2], v: match[3], a: match[4] };\n }\n if ((match = matchers.hex8.exec(color))) {\n return {\n r: parseIntFromHex(match[1]),\n g: parseIntFromHex(match[2]),\n b: parseIntFromHex(match[3]),\n a: convertHexToDecimal(match[4]),\n format: named ? \"name\" : \"hex8\"\n };\n }\n if ((match = matchers.hex6.exec(color))) {\n return {\n r: parseIntFromHex(match[1]),\n g: parseIntFromHex(match[2]),\n b: parseIntFromHex(match[3]),\n format: named ? \"name\" : \"hex\"\n };\n }\n if ((match = matchers.hex4.exec(color))) {\n return {\n r: parseIntFromHex(match[1] + '' + match[1]),\n g: parseIntFromHex(match[2] + '' + match[2]),\n b: parseIntFromHex(match[3] + '' + match[3]),\n a: convertHexToDecimal(match[4] + '' + match[4]),\n format: named ? \"name\" : \"hex8\"\n };\n }\n if ((match = matchers.hex3.exec(color))) {\n return {\n r: parseIntFromHex(match[1] + '' + match[1]),\n g: parseIntFromHex(match[2] + '' + match[2]),\n b: parseIntFromHex(match[3] + '' + match[3]),\n format: named ? \"name\" : \"hex\"\n };\n }\n\n return false;\n}\n\nfunction validateWCAG2Parms(parms) {\n // return valid WCAG2 parms for isReadable.\n // If input parms are invalid, return {\"level\":\"AA\", \"size\":\"small\"}\n var level, size;\n parms = parms || {\"level\":\"AA\", \"size\":\"small\"};\n level = (parms.level || \"AA\").toUpperCase();\n size = (parms.size || \"small\").toLowerCase();\n if (level !== \"AA\" && level !== \"AAA\") {\n level = \"AA\";\n }\n if (size !== \"small\" && size !== \"large\") {\n size = \"small\";\n }\n return {\"level\":level, \"size\":size};\n}\n\n// Node: Export function\nif (typeof module !== \"undefined\" && module.exports) {\n module.exports = tinycolor;\n}\n// AMD/requirejs: Define the module\nelse if (typeof define === 'function' && define.amd) {\n define(function () {return tinycolor;});\n}\n// Browser: Expose to window\nelse {\n window.tinycolor = tinycolor;\n}\n\n})(Math);\n\n},{}],313:[function(_dereq_,module,exports){\n/* @module to-float32 */\r\n\r\n'use strict'\r\n\r\nmodule.exports = float32\r\nmodule.exports.float32 =\r\nmodule.exports.float = float32\r\nmodule.exports.fract32 =\r\nmodule.exports.fract = fract32\r\n\r\nvar narr = new Float32Array(1)\r\n\r\n// Returns fractional part of float32 array\r\nfunction fract32 (arr, fract) {\r\n\tif (arr.length) {\r\n\t\tif (arr instanceof Float32Array) return new Float32Array(arr.length);\r\n\t\tif (!(fract instanceof Float32Array)) fract = float32(arr)\r\n\t\tfor (var i = 0, l = fract.length; i < l; i++) {\r\n\t\t\tfract[i] = arr[i] - fract[i]\r\n\t\t}\r\n\t\treturn fract\r\n\t}\r\n\r\n\t// number\r\n\treturn float32(arr - float32(arr))\r\n}\r\n\r\n// Make sure data is float32 array\r\nfunction float32 (arr) {\r\n\tif (arr.length) {\r\n\t\tif (arr instanceof Float32Array) return arr\r\n\t\treturn new Float32Array(arr);\r\n\t}\r\n\r\n\t// number\r\n\tnarr[0] = arr\r\n\treturn narr[0]\r\n}\r\n\n},{}],314:[function(_dereq_,module,exports){\n'use strict'\n\nvar parseUnit = _dereq_('parse-unit')\n\nmodule.exports = toPX\n\nvar PIXELS_PER_INCH = 96\n\nfunction getPropertyInPX(element, prop) {\n var parts = parseUnit(getComputedStyle(element).getPropertyValue(prop))\n return parts[0] * toPX(parts[1], element)\n}\n\n//This brutal hack is needed\nfunction getSizeBrutal(unit, element) {\n var testDIV = document.createElement('div')\n testDIV.style['font-size'] = '128' + unit\n element.appendChild(testDIV)\n var size = getPropertyInPX(testDIV, 'font-size') / 128\n element.removeChild(testDIV)\n return size\n}\n\nfunction toPX(str, element) {\n element = element || document.body\n str = (str || 'px').trim().toLowerCase()\n if(element === window || element === document) {\n element = document.body \n }\n switch(str) {\n case '%': //Ambiguous, not sure if we should use width or height\n return element.clientHeight / 100.0\n case 'ch':\n case 'ex':\n return getSizeBrutal(str, element)\n case 'em':\n return getPropertyInPX(element, 'font-size')\n case 'rem':\n return getPropertyInPX(document.body, 'font-size')\n case 'vw':\n return window.innerWidth/100\n case 'vh':\n return window.innerHeight/100\n case 'vmin':\n return Math.min(window.innerWidth, window.innerHeight) / 100\n case 'vmax':\n return Math.max(window.innerWidth, window.innerHeight) / 100\n case 'in':\n return PIXELS_PER_INCH\n case 'cm':\n return PIXELS_PER_INCH / 2.54\n case 'mm':\n return PIXELS_PER_INCH / 25.4\n case 'pt':\n return PIXELS_PER_INCH / 72\n case 'pc':\n return PIXELS_PER_INCH / 6\n }\n return 1\n}\n},{\"parse-unit\":251}],315:[function(_dereq_,module,exports){\n// https://github.com/topojson/topojson-client v3.1.0 Copyright 2019 Mike Bostock\n(function (global, factory) {\ntypeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :\ntypeof define === 'function' && define.amd ? define(['exports'], factory) :\n(global = global || self, factory(global.topojson = global.topojson || {}));\n}(this, function (exports) { 'use strict';\n\nfunction identity(x) {\n return x;\n}\n\nfunction transform(transform) {\n if (transform == null) return identity;\n var x0,\n y0,\n kx = transform.scale[0],\n ky = transform.scale[1],\n dx = transform.translate[0],\n dy = transform.translate[1];\n return function(input, i) {\n if (!i) x0 = y0 = 0;\n var j = 2, n = input.length, output = new Array(n);\n output[0] = (x0 += input[0]) * kx + dx;\n output[1] = (y0 += input[1]) * ky + dy;\n while (j < n) output[j] = input[j], ++j;\n return output;\n };\n}\n\nfunction bbox(topology) {\n var t = transform(topology.transform), key,\n x0 = Infinity, y0 = x0, x1 = -x0, y1 = -x0;\n\n function bboxPoint(p) {\n p = t(p);\n if (p[0] < x0) x0 = p[0];\n if (p[0] > x1) x1 = p[0];\n if (p[1] < y0) y0 = p[1];\n if (p[1] > y1) y1 = p[1];\n }\n\n function bboxGeometry(o) {\n switch (o.type) {\n case \"GeometryCollection\": o.geometries.forEach(bboxGeometry); break;\n case \"Point\": bboxPoint(o.coordinates); break;\n case \"MultiPoint\": o.coordinates.forEach(bboxPoint); break;\n }\n }\n\n topology.arcs.forEach(function(arc) {\n var i = -1, n = arc.length, p;\n while (++i < n) {\n p = t(arc[i], i);\n if (p[0] < x0) x0 = p[0];\n if (p[0] > x1) x1 = p[0];\n if (p[1] < y0) y0 = p[1];\n if (p[1] > y1) y1 = p[1];\n }\n });\n\n for (key in topology.objects) {\n bboxGeometry(topology.objects[key]);\n }\n\n return [x0, y0, x1, y1];\n}\n\nfunction reverse(array, n) {\n var t, j = array.length, i = j - n;\n while (i < --j) t = array[i], array[i++] = array[j], array[j] = t;\n}\n\nfunction feature(topology, o) {\n if (typeof o === \"string\") o = topology.objects[o];\n return o.type === \"GeometryCollection\"\n ? {type: \"FeatureCollection\", features: o.geometries.map(function(o) { return feature$1(topology, o); })}\n : feature$1(topology, o);\n}\n\nfunction feature$1(topology, o) {\n var id = o.id,\n bbox = o.bbox,\n properties = o.properties == null ? {} : o.properties,\n geometry = object(topology, o);\n return id == null && bbox == null ? {type: \"Feature\", properties: properties, geometry: geometry}\n : bbox == null ? {type: \"Feature\", id: id, properties: properties, geometry: geometry}\n : {type: \"Feature\", id: id, bbox: bbox, properties: properties, geometry: geometry};\n}\n\nfunction object(topology, o) {\n var transformPoint = transform(topology.transform),\n arcs = topology.arcs;\n\n function arc(i, points) {\n if (points.length) points.pop();\n for (var a = arcs[i < 0 ? ~i : i], k = 0, n = a.length; k < n; ++k) {\n points.push(transformPoint(a[k], k));\n }\n if (i < 0) reverse(points, n);\n }\n\n function point(p) {\n return transformPoint(p);\n }\n\n function line(arcs) {\n var points = [];\n for (var i = 0, n = arcs.length; i < n; ++i) arc(arcs[i], points);\n if (points.length < 2) points.push(points[0]); // This should never happen per the specification.\n return points;\n }\n\n function ring(arcs) {\n var points = line(arcs);\n while (points.length < 4) points.push(points[0]); // This may happen if an arc has only two points.\n return points;\n }\n\n function polygon(arcs) {\n return arcs.map(ring);\n }\n\n function geometry(o) {\n var type = o.type, coordinates;\n switch (type) {\n case \"GeometryCollection\": return {type: type, geometries: o.geometries.map(geometry)};\n case \"Point\": coordinates = point(o.coordinates); break;\n case \"MultiPoint\": coordinates = o.coordinates.map(point); break;\n case \"LineString\": coordinates = line(o.arcs); break;\n case \"MultiLineString\": coordinates = o.arcs.map(line); break;\n case \"Polygon\": coordinates = polygon(o.arcs); break;\n case \"MultiPolygon\": coordinates = o.arcs.map(polygon); break;\n default: return null;\n }\n return {type: type, coordinates: coordinates};\n }\n\n return geometry(o);\n}\n\nfunction stitch(topology, arcs) {\n var stitchedArcs = {},\n fragmentByStart = {},\n fragmentByEnd = {},\n fragments = [],\n emptyIndex = -1;\n\n // Stitch empty arcs first, since they may be subsumed by other arcs.\n arcs.forEach(function(i, j) {\n var arc = topology.arcs[i < 0 ? ~i : i], t;\n if (arc.length < 3 && !arc[1][0] && !arc[1][1]) {\n t = arcs[++emptyIndex], arcs[emptyIndex] = i, arcs[j] = t;\n }\n });\n\n arcs.forEach(function(i) {\n var e = ends(i),\n start = e[0],\n end = e[1],\n f, g;\n\n if (f = fragmentByEnd[start]) {\n delete fragmentByEnd[f.end];\n f.push(i);\n f.end = end;\n if (g = fragmentByStart[end]) {\n delete fragmentByStart[g.start];\n var fg = g === f ? f : f.concat(g);\n fragmentByStart[fg.start = f.start] = fragmentByEnd[fg.end = g.end] = fg;\n } else {\n fragmentByStart[f.start] = fragmentByEnd[f.end] = f;\n }\n } else if (f = fragmentByStart[end]) {\n delete fragmentByStart[f.start];\n f.unshift(i);\n f.start = start;\n if (g = fragmentByEnd[start]) {\n delete fragmentByEnd[g.end];\n var gf = g === f ? f : g.concat(f);\n fragmentByStart[gf.start = g.start] = fragmentByEnd[gf.end = f.end] = gf;\n } else {\n fragmentByStart[f.start] = fragmentByEnd[f.end] = f;\n }\n } else {\n f = [i];\n fragmentByStart[f.start = start] = fragmentByEnd[f.end = end] = f;\n }\n });\n\n function ends(i) {\n var arc = topology.arcs[i < 0 ? ~i : i], p0 = arc[0], p1;\n if (topology.transform) p1 = [0, 0], arc.forEach(function(dp) { p1[0] += dp[0], p1[1] += dp[1]; });\n else p1 = arc[arc.length - 1];\n return i < 0 ? [p1, p0] : [p0, p1];\n }\n\n function flush(fragmentByEnd, fragmentByStart) {\n for (var k in fragmentByEnd) {\n var f = fragmentByEnd[k];\n delete fragmentByStart[f.start];\n delete f.start;\n delete f.end;\n f.forEach(function(i) { stitchedArcs[i < 0 ? ~i : i] = 1; });\n fragments.push(f);\n }\n }\n\n flush(fragmentByEnd, fragmentByStart);\n flush(fragmentByStart, fragmentByEnd);\n arcs.forEach(function(i) { if (!stitchedArcs[i < 0 ? ~i : i]) fragments.push([i]); });\n\n return fragments;\n}\n\nfunction mesh(topology) {\n return object(topology, meshArcs.apply(this, arguments));\n}\n\nfunction meshArcs(topology, object, filter) {\n var arcs, i, n;\n if (arguments.length > 1) arcs = extractArcs(topology, object, filter);\n else for (i = 0, arcs = new Array(n = topology.arcs.length); i < n; ++i) arcs[i] = i;\n return {type: \"MultiLineString\", arcs: stitch(topology, arcs)};\n}\n\nfunction extractArcs(topology, object, filter) {\n var arcs = [],\n geomsByArc = [],\n geom;\n\n function extract0(i) {\n var j = i < 0 ? ~i : i;\n (geomsByArc[j] || (geomsByArc[j] = [])).push({i: i, g: geom});\n }\n\n function extract1(arcs) {\n arcs.forEach(extract0);\n }\n\n function extract2(arcs) {\n arcs.forEach(extract1);\n }\n\n function extract3(arcs) {\n arcs.forEach(extract2);\n }\n\n function geometry(o) {\n switch (geom = o, o.type) {\n case \"GeometryCollection\": o.geometries.forEach(geometry); break;\n case \"LineString\": extract1(o.arcs); break;\n case \"MultiLineString\": case \"Polygon\": extract2(o.arcs); break;\n case \"MultiPolygon\": extract3(o.arcs); break;\n }\n }\n\n geometry(object);\n\n geomsByArc.forEach(filter == null\n ? function(geoms) { arcs.push(geoms[0].i); }\n : function(geoms) { if (filter(geoms[0].g, geoms[geoms.length - 1].g)) arcs.push(geoms[0].i); });\n\n return arcs;\n}\n\nfunction planarRingArea(ring) {\n var i = -1, n = ring.length, a, b = ring[n - 1], area = 0;\n while (++i < n) a = b, b = ring[i], area += a[0] * b[1] - a[1] * b[0];\n return Math.abs(area); // Note: doubled area!\n}\n\nfunction merge(topology) {\n return object(topology, mergeArcs.apply(this, arguments));\n}\n\nfunction mergeArcs(topology, objects) {\n var polygonsByArc = {},\n polygons = [],\n groups = [];\n\n objects.forEach(geometry);\n\n function geometry(o) {\n switch (o.type) {\n case \"GeometryCollection\": o.geometries.forEach(geometry); break;\n case \"Polygon\": extract(o.arcs); break;\n case \"MultiPolygon\": o.arcs.forEach(extract); break;\n }\n }\n\n function extract(polygon) {\n polygon.forEach(function(ring) {\n ring.forEach(function(arc) {\n (polygonsByArc[arc = arc < 0 ? ~arc : arc] || (polygonsByArc[arc] = [])).push(polygon);\n });\n });\n polygons.push(polygon);\n }\n\n function area(ring) {\n return planarRingArea(object(topology, {type: \"Polygon\", arcs: [ring]}).coordinates[0]);\n }\n\n polygons.forEach(function(polygon) {\n if (!polygon._) {\n var group = [],\n neighbors = [polygon];\n polygon._ = 1;\n groups.push(group);\n while (polygon = neighbors.pop()) {\n group.push(polygon);\n polygon.forEach(function(ring) {\n ring.forEach(function(arc) {\n polygonsByArc[arc < 0 ? ~arc : arc].forEach(function(polygon) {\n if (!polygon._) {\n polygon._ = 1;\n neighbors.push(polygon);\n }\n });\n });\n });\n }\n }\n });\n\n polygons.forEach(function(polygon) {\n delete polygon._;\n });\n\n return {\n type: \"MultiPolygon\",\n arcs: groups.map(function(polygons) {\n var arcs = [], n;\n\n // Extract the exterior (unique) arcs.\n polygons.forEach(function(polygon) {\n polygon.forEach(function(ring) {\n ring.forEach(function(arc) {\n if (polygonsByArc[arc < 0 ? ~arc : arc].length < 2) {\n arcs.push(arc);\n }\n });\n });\n });\n\n // Stitch the arcs into one or more rings.\n arcs = stitch(topology, arcs);\n\n // If more than one ring is returned,\n // at most one of these rings can be the exterior;\n // choose the one with the greatest absolute area.\n if ((n = arcs.length) > 1) {\n for (var i = 1, k = area(arcs[0]), ki, t; i < n; ++i) {\n if ((ki = area(arcs[i])) > k) {\n t = arcs[0], arcs[0] = arcs[i], arcs[i] = t, k = ki;\n }\n }\n }\n\n return arcs;\n }).filter(function(arcs) {\n return arcs.length > 0;\n })\n };\n}\n\nfunction bisect(a, x) {\n var lo = 0, hi = a.length;\n while (lo < hi) {\n var mid = lo + hi >>> 1;\n if (a[mid] < x) lo = mid + 1;\n else hi = mid;\n }\n return lo;\n}\n\nfunction neighbors(objects) {\n var indexesByArc = {}, // arc index -> array of object indexes\n neighbors = objects.map(function() { return []; });\n\n function line(arcs, i) {\n arcs.forEach(function(a) {\n if (a < 0) a = ~a;\n var o = indexesByArc[a];\n if (o) o.push(i);\n else indexesByArc[a] = [i];\n });\n }\n\n function polygon(arcs, i) {\n arcs.forEach(function(arc) { line(arc, i); });\n }\n\n function geometry(o, i) {\n if (o.type === \"GeometryCollection\") o.geometries.forEach(function(o) { geometry(o, i); });\n else if (o.type in geometryType) geometryType[o.type](o.arcs, i);\n }\n\n var geometryType = {\n LineString: line,\n MultiLineString: polygon,\n Polygon: polygon,\n MultiPolygon: function(arcs, i) { arcs.forEach(function(arc) { polygon(arc, i); }); }\n };\n\n objects.forEach(geometry);\n\n for (var i in indexesByArc) {\n for (var indexes = indexesByArc[i], m = indexes.length, j = 0; j < m; ++j) {\n for (var k = j + 1; k < m; ++k) {\n var ij = indexes[j], ik = indexes[k], n;\n if ((n = neighbors[ij])[i = bisect(n, ik)] !== ik) n.splice(i, 0, ik);\n if ((n = neighbors[ik])[i = bisect(n, ij)] !== ij) n.splice(i, 0, ij);\n }\n }\n }\n\n return neighbors;\n}\n\nfunction untransform(transform) {\n if (transform == null) return identity;\n var x0,\n y0,\n kx = transform.scale[0],\n ky = transform.scale[1],\n dx = transform.translate[0],\n dy = transform.translate[1];\n return function(input, i) {\n if (!i) x0 = y0 = 0;\n var j = 2,\n n = input.length,\n output = new Array(n),\n x1 = Math.round((input[0] - dx) / kx),\n y1 = Math.round((input[1] - dy) / ky);\n output[0] = x1 - x0, x0 = x1;\n output[1] = y1 - y0, y0 = y1;\n while (j < n) output[j] = input[j], ++j;\n return output;\n };\n}\n\nfunction quantize(topology, transform) {\n if (topology.transform) throw new Error(\"already quantized\");\n\n if (!transform || !transform.scale) {\n if (!((n = Math.floor(transform)) >= 2)) throw new Error(\"n must be ≥2\");\n box = topology.bbox || bbox(topology);\n var x0 = box[0], y0 = box[1], x1 = box[2], y1 = box[3], n;\n transform = {scale: [x1 - x0 ? (x1 - x0) / (n - 1) : 1, y1 - y0 ? (y1 - y0) / (n - 1) : 1], translate: [x0, y0]};\n } else {\n box = topology.bbox;\n }\n\n var t = untransform(transform), box, key, inputs = topology.objects, outputs = {};\n\n function quantizePoint(point) {\n return t(point);\n }\n\n function quantizeGeometry(input) {\n var output;\n switch (input.type) {\n case \"GeometryCollection\": output = {type: \"GeometryCollection\", geometries: input.geometries.map(quantizeGeometry)}; break;\n case \"Point\": output = {type: \"Point\", coordinates: quantizePoint(input.coordinates)}; break;\n case \"MultiPoint\": output = {type: \"MultiPoint\", coordinates: input.coordinates.map(quantizePoint)}; break;\n default: return input;\n }\n if (input.id != null) output.id = input.id;\n if (input.bbox != null) output.bbox = input.bbox;\n if (input.properties != null) output.properties = input.properties;\n return output;\n }\n\n function quantizeArc(input) {\n var i = 0, j = 1, n = input.length, p, output = new Array(n); // pessimistic\n output[0] = t(input[0], 0);\n while (++i < n) if ((p = t(input[i], i))[0] || p[1]) output[j++] = p; // non-coincident points\n if (j === 1) output[j++] = [0, 0]; // an arc must have at least two points\n output.length = j;\n return output;\n }\n\n for (key in inputs) outputs[key] = quantizeGeometry(inputs[key]);\n\n return {\n type: \"Topology\",\n bbox: box,\n transform: transform,\n objects: outputs,\n arcs: topology.arcs.map(quantizeArc)\n };\n}\n\nexports.bbox = bbox;\nexports.feature = feature;\nexports.merge = merge;\nexports.mergeArcs = mergeArcs;\nexports.mesh = mesh;\nexports.meshArcs = meshArcs;\nexports.neighbors = neighbors;\nexports.quantize = quantize;\nexports.transform = transform;\nexports.untransform = untransform;\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n}));\n\n},{}],316:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar isPrototype = _dereq_(\"../prototype/is\");\n\nmodule.exports = function (value) {\n\tif (typeof value !== \"function\") return false;\n\n\tif (!hasOwnProperty.call(value, \"length\")) return false;\n\n\ttry {\n\t\tif (typeof value.length !== \"number\") return false;\n\t\tif (typeof value.call !== \"function\") return false;\n\t\tif (typeof value.apply !== \"function\") return false;\n\t} catch (error) {\n\t\treturn false;\n\t}\n\n\treturn !isPrototype(value);\n};\n\n},{\"../prototype/is\":323}],317:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar isValue = _dereq_(\"../value/is\")\n , isObject = _dereq_(\"../object/is\")\n , stringCoerce = _dereq_(\"../string/coerce\")\n , toShortString = _dereq_(\"./to-short-string\");\n\nvar resolveMessage = function (message, value) {\n\treturn message.replace(\"%v\", toShortString(value));\n};\n\nmodule.exports = function (value, defaultMessage, inputOptions) {\n\tif (!isObject(inputOptions)) throw new TypeError(resolveMessage(defaultMessage, value));\n\tif (!isValue(value)) {\n\t\tif (\"default\" in inputOptions) return inputOptions[\"default\"];\n\t\tif (inputOptions.isOptional) return null;\n\t}\n\tvar errorMessage = stringCoerce(inputOptions.errorMessage);\n\tif (!isValue(errorMessage)) errorMessage = defaultMessage;\n\tthrow new TypeError(resolveMessage(errorMessage, value));\n};\n\n},{\"../object/is\":320,\"../string/coerce\":324,\"../value/is\":326,\"./to-short-string\":319}],318:[function(_dereq_,module,exports){\n\"use strict\";\n\nmodule.exports = function (value) {\n\ttry {\n\t\treturn value.toString();\n\t} catch (error) {\n\t\ttry { return String(value); }\n\t\tcatch (error2) { return null; }\n\t}\n};\n\n},{}],319:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar safeToString = _dereq_(\"./safe-to-string\");\n\nvar reNewLine = /[\\n\\r\\u2028\\u2029]/g;\n\nmodule.exports = function (value) {\n\tvar string = safeToString(value);\n\tif (string === null) return \"\";\n\t// Trim if too long\n\tif (string.length > 100) string = string.slice(0, 99) + \"…\";\n\t// Replace eventual new lines\n\tstring = string.replace(reNewLine, function (char) {\n\t\tswitch (char) {\n\t\t\tcase \"\\n\":\n\t\t\t\treturn \"\\\\n\";\n\t\t\tcase \"\\r\":\n\t\t\t\treturn \"\\\\r\";\n\t\t\tcase \"\\u2028\":\n\t\t\t\treturn \"\\\\u2028\";\n\t\t\tcase \"\\u2029\":\n\t\t\t\treturn \"\\\\u2029\";\n\t\t\t/* istanbul ignore next */\n\t\t\tdefault:\n\t\t\t\tthrow new Error(\"Unexpected character\");\n\t\t}\n\t});\n\treturn string;\n};\n\n},{\"./safe-to-string\":318}],320:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar isValue = _dereq_(\"../value/is\");\n\n// prettier-ignore\nvar possibleTypes = { \"object\": true, \"function\": true, \"undefined\": true /* document.all */ };\n\nmodule.exports = function (value) {\n\tif (!isValue(value)) return false;\n\treturn hasOwnProperty.call(possibleTypes, typeof value);\n};\n\n},{\"../value/is\":326}],321:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar resolveException = _dereq_(\"../lib/resolve-exception\")\n , is = _dereq_(\"./is\");\n\nmodule.exports = function (value/*, options*/) {\n\tif (is(value)) return value;\n\treturn resolveException(value, \"%v is not a plain function\", arguments[1]);\n};\n\n},{\"../lib/resolve-exception\":317,\"./is\":322}],322:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar isFunction = _dereq_(\"../function/is\");\n\nvar classRe = /^\\s*class[\\s{/}]/, functionToString = Function.prototype.toString;\n\nmodule.exports = function (value) {\n\tif (!isFunction(value)) return false;\n\tif (classRe.test(functionToString.call(value))) return false;\n\treturn true;\n};\n\n},{\"../function/is\":316}],323:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar isObject = _dereq_(\"../object/is\");\n\nmodule.exports = function (value) {\n\tif (!isObject(value)) return false;\n\ttry {\n\t\tif (!value.constructor) return false;\n\t\treturn value.constructor.prototype === value;\n\t} catch (error) {\n\t\treturn false;\n\t}\n};\n\n},{\"../object/is\":320}],324:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar isValue = _dereq_(\"../value/is\")\n , isObject = _dereq_(\"../object/is\");\n\nvar objectToString = Object.prototype.toString;\n\nmodule.exports = function (value) {\n\tif (!isValue(value)) return null;\n\tif (isObject(value)) {\n\t\t// Reject Object.prototype.toString coercion\n\t\tvar valueToString = value.toString;\n\t\tif (typeof valueToString !== \"function\") return null;\n\t\tif (valueToString === objectToString) return null;\n\t\t// Note: It can be object coming from other realm, still as there's no ES3 and CSP compliant\n\t\t// way to resolve its realm's Object.prototype.toString it's left as not addressed edge case\n\t}\n\ttry {\n\t\treturn \"\" + value; // Ensure implicit coercion\n\t} catch (error) {\n\t\treturn null;\n\t}\n};\n\n},{\"../object/is\":320,\"../value/is\":326}],325:[function(_dereq_,module,exports){\n\"use strict\";\n\nvar resolveException = _dereq_(\"../lib/resolve-exception\")\n , is = _dereq_(\"./is\");\n\nmodule.exports = function (value/*, options*/) {\n\tif (is(value)) return value;\n\treturn resolveException(value, \"Cannot use %v\", arguments[1]);\n};\n\n},{\"../lib/resolve-exception\":317,\"./is\":326}],326:[function(_dereq_,module,exports){\n\"use strict\";\n\n// ES3 safe\nvar _undefined = void 0;\n\nmodule.exports = function (value) { return value !== _undefined && value !== null; };\n\n},{}],327:[function(_dereq_,module,exports){\n(function (global){(function (){\n'use strict'\n\nvar bits = _dereq_('bit-twiddle')\nvar dup = _dereq_('dup')\nvar Buffer = _dereq_('buffer').Buffer\n\n//Legacy pool support\nif(!global.__TYPEDARRAY_POOL) {\n global.__TYPEDARRAY_POOL = {\n UINT8 : dup([32, 0])\n , UINT16 : dup([32, 0])\n , UINT32 : dup([32, 0])\n , BIGUINT64 : dup([32, 0])\n , INT8 : dup([32, 0])\n , INT16 : dup([32, 0])\n , INT32 : dup([32, 0])\n , BIGINT64 : dup([32, 0])\n , FLOAT : dup([32, 0])\n , DOUBLE : dup([32, 0])\n , DATA : dup([32, 0])\n , UINT8C : dup([32, 0])\n , BUFFER : dup([32, 0])\n }\n}\n\nvar hasUint8C = (typeof Uint8ClampedArray) !== 'undefined'\nvar hasBigUint64 = (typeof BigUint64Array) !== 'undefined'\nvar hasBigInt64 = (typeof BigInt64Array) !== 'undefined'\nvar POOL = global.__TYPEDARRAY_POOL\n\n//Upgrade pool\nif(!POOL.UINT8C) {\n POOL.UINT8C = dup([32, 0])\n}\nif(!POOL.BIGUINT64) {\n POOL.BIGUINT64 = dup([32, 0])\n}\nif(!POOL.BIGINT64) {\n POOL.BIGINT64 = dup([32, 0])\n}\nif(!POOL.BUFFER) {\n POOL.BUFFER = dup([32, 0])\n}\n\n//New technique: Only allocate from ArrayBufferView and Buffer\nvar DATA = POOL.DATA\n , BUFFER = POOL.BUFFER\n\nexports.free = function free(array) {\n if(Buffer.isBuffer(array)) {\n BUFFER[bits.log2(array.length)].push(array)\n } else {\n if(Object.prototype.toString.call(array) !== '[object ArrayBuffer]') {\n array = array.buffer\n }\n if(!array) {\n return\n }\n var n = array.length || array.byteLength\n var log_n = bits.log2(n)|0\n DATA[log_n].push(array)\n }\n}\n\nfunction freeArrayBuffer(buffer) {\n if(!buffer) {\n return\n }\n var n = buffer.length || buffer.byteLength\n var log_n = bits.log2(n)\n DATA[log_n].push(buffer)\n}\n\nfunction freeTypedArray(array) {\n freeArrayBuffer(array.buffer)\n}\n\nexports.freeUint8 =\nexports.freeUint16 =\nexports.freeUint32 =\nexports.freeBigUint64 =\nexports.freeInt8 =\nexports.freeInt16 =\nexports.freeInt32 =\nexports.freeBigInt64 =\nexports.freeFloat32 = \nexports.freeFloat =\nexports.freeFloat64 = \nexports.freeDouble = \nexports.freeUint8Clamped = \nexports.freeDataView = freeTypedArray\n\nexports.freeArrayBuffer = freeArrayBuffer\n\nexports.freeBuffer = function freeBuffer(array) {\n BUFFER[bits.log2(array.length)].push(array)\n}\n\nexports.malloc = function malloc(n, dtype) {\n if(dtype === undefined || dtype === 'arraybuffer') {\n return mallocArrayBuffer(n)\n } else {\n switch(dtype) {\n case 'uint8':\n return mallocUint8(n)\n case 'uint16':\n return mallocUint16(n)\n case 'uint32':\n return mallocUint32(n)\n case 'int8':\n return mallocInt8(n)\n case 'int16':\n return mallocInt16(n)\n case 'int32':\n return mallocInt32(n)\n case 'float':\n case 'float32':\n return mallocFloat(n)\n case 'double':\n case 'float64':\n return mallocDouble(n)\n case 'uint8_clamped':\n return mallocUint8Clamped(n)\n case 'bigint64':\n return mallocBigInt64(n)\n case 'biguint64':\n return mallocBigUint64(n)\n case 'buffer':\n return mallocBuffer(n)\n case 'data':\n case 'dataview':\n return mallocDataView(n)\n\n default:\n return null\n }\n }\n return null\n}\n\nfunction mallocArrayBuffer(n) {\n var n = bits.nextPow2(n)\n var log_n = bits.log2(n)\n var d = DATA[log_n]\n if(d.length > 0) {\n return d.pop()\n }\n return new ArrayBuffer(n)\n}\nexports.mallocArrayBuffer = mallocArrayBuffer\n\nfunction mallocUint8(n) {\n return new Uint8Array(mallocArrayBuffer(n), 0, n)\n}\nexports.mallocUint8 = mallocUint8\n\nfunction mallocUint16(n) {\n return new Uint16Array(mallocArrayBuffer(2*n), 0, n)\n}\nexports.mallocUint16 = mallocUint16\n\nfunction mallocUint32(n) {\n return new Uint32Array(mallocArrayBuffer(4*n), 0, n)\n}\nexports.mallocUint32 = mallocUint32\n\nfunction mallocInt8(n) {\n return new Int8Array(mallocArrayBuffer(n), 0, n)\n}\nexports.mallocInt8 = mallocInt8\n\nfunction mallocInt16(n) {\n return new Int16Array(mallocArrayBuffer(2*n), 0, n)\n}\nexports.mallocInt16 = mallocInt16\n\nfunction mallocInt32(n) {\n return new Int32Array(mallocArrayBuffer(4*n), 0, n)\n}\nexports.mallocInt32 = mallocInt32\n\nfunction mallocFloat(n) {\n return new Float32Array(mallocArrayBuffer(4*n), 0, n)\n}\nexports.mallocFloat32 = exports.mallocFloat = mallocFloat\n\nfunction mallocDouble(n) {\n return new Float64Array(mallocArrayBuffer(8*n), 0, n)\n}\nexports.mallocFloat64 = exports.mallocDouble = mallocDouble\n\nfunction mallocUint8Clamped(n) {\n if(hasUint8C) {\n return new Uint8ClampedArray(mallocArrayBuffer(n), 0, n)\n } else {\n return mallocUint8(n)\n }\n}\nexports.mallocUint8Clamped = mallocUint8Clamped\n\nfunction mallocBigUint64(n) {\n if(hasBigUint64) {\n return new BigUint64Array(mallocArrayBuffer(8*n), 0, n)\n } else {\n return null;\n }\n}\nexports.mallocBigUint64 = mallocBigUint64\n\nfunction mallocBigInt64(n) {\n if (hasBigInt64) {\n return new BigInt64Array(mallocArrayBuffer(8*n), 0, n)\n } else {\n return null;\n }\n}\nexports.mallocBigInt64 = mallocBigInt64\n\nfunction mallocDataView(n) {\n return new DataView(mallocArrayBuffer(n), 0, n)\n}\nexports.mallocDataView = mallocDataView\n\nfunction mallocBuffer(n) {\n n = bits.nextPow2(n)\n var log_n = bits.log2(n)\n var cache = BUFFER[log_n]\n if(cache.length > 0) {\n return cache.pop()\n }\n return new Buffer(n)\n}\nexports.mallocBuffer = mallocBuffer\n\nexports.clearCache = function clearCache() {\n for(var i=0; i<32; ++i) {\n POOL.UINT8[i].length = 0\n POOL.UINT16[i].length = 0\n POOL.UINT32[i].length = 0\n POOL.INT8[i].length = 0\n POOL.INT16[i].length = 0\n POOL.INT32[i].length = 0\n POOL.FLOAT[i].length = 0\n POOL.DOUBLE[i].length = 0\n POOL.BIGUINT64[i].length = 0\n POOL.BIGINT64[i].length = 0\n POOL.UINT8C[i].length = 0\n DATA[i].length = 0\n BUFFER[i].length = 0\n }\n}\n\n}).call(this)}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{\"bit-twiddle\":81,\"buffer\":85,\"dup\":128}],328:[function(_dereq_,module,exports){\nvar reg = /[\\'\\\"]/\n\nmodule.exports = function unquote(str) {\n if (!str) {\n return ''\n }\n if (reg.test(str.charAt(0))) {\n str = str.substr(1)\n }\n if (reg.test(str.charAt(str.length - 1))) {\n str = str.substr(0, str.length - 1)\n }\n return str\n}\n\n},{}],329:[function(_dereq_,module,exports){\n/**\r\n * @module update-diff\r\n */\r\n\r\n'use strict'\r\n\r\nmodule.exports = function updateDiff (obj, diff, mappers) {\r\n\tif (!Array.isArray(mappers)) mappers = [].slice.call(arguments, 2)\r\n\r\n\tfor (var i = 0, l = mappers.length; i < l; i++) {\r\n\t\tvar dict = mappers[i]\r\n\t\tfor (var prop in dict) {\r\n\t\t\tif (diff[prop] !== undefined && !Array.isArray(diff[prop]) && obj[prop] === diff[prop]) continue\r\n\r\n\t\t\tif (prop in diff) {\r\n\t\t\t\tvar result\r\n\r\n\t\t\t\tif (dict[prop] === true) result = diff[prop]\r\n\t\t\t\telse if (dict[prop] === false) continue\r\n\t\t\t\telse if (typeof dict[prop] === 'function') {\r\n\t\t\t\t\tresult = dict[prop](diff[prop], obj, diff)\r\n\t\t\t\t\tif (result === undefined) continue\r\n\t\t\t\t}\r\n\r\n\t\t\t\tobj[prop] = result\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\treturn obj\r\n}\r\n\n},{}],330:[function(_dereq_,module,exports){\n(function (global){(function (){\n\n/**\n * Module exports.\n */\n\nmodule.exports = deprecate;\n\n/**\n * Mark that a method should not be used.\n * Returns a modified function which warns once by default.\n *\n * If `localStorage.noDeprecation = true` is set, then it is a no-op.\n *\n * If `localStorage.throwDeprecation = true` is set, then deprecated functions\n * will throw an Error when invoked.\n *\n * If `localStorage.traceDeprecation = true` is set, then deprecated functions\n * will invoke `console.trace()` instead of `console.error()`.\n *\n * @param {Function} fn - the function to deprecate\n * @param {String} msg - the string to print to the console when `fn` is invoked\n * @returns {Function} a new \"deprecated\" version of `fn`\n * @api public\n */\n\nfunction deprecate (fn, msg) {\n if (config('noDeprecation')) {\n return fn;\n }\n\n var warned = false;\n function deprecated() {\n if (!warned) {\n if (config('throwDeprecation')) {\n throw new Error(msg);\n } else if (config('traceDeprecation')) {\n console.trace(msg);\n } else {\n console.warn(msg);\n }\n warned = true;\n }\n return fn.apply(this, arguments);\n }\n\n return deprecated;\n}\n\n/**\n * Checks `localStorage` for boolean values for the given `name`.\n *\n * @param {String} name\n * @returns {Boolean}\n * @api private\n */\n\nfunction config (name) {\n // accessing global.localStorage can trigger a DOMException in sandboxed iframes\n try {\n if (!global.localStorage) return false;\n } catch (_) {\n return false;\n }\n var val = global.localStorage[name];\n if (null == val) return false;\n return String(val).toLowerCase() === 'true';\n}\n\n}).call(this)}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{}],331:[function(_dereq_,module,exports){\nvar getContext = _dereq_('get-canvas-context')\n\nmodule.exports = function getWebGLContext (opt) {\n return getContext('webgl', opt)\n}\n\n},{\"get-canvas-context\":194}],332:[function(_dereq_,module,exports){\n/*\n * World Calendars\n * https://github.com/alexcjohnson/world-calendars\n *\n * Batch-converted from kbwood/calendars\n * Many thanks to Keith Wood and all of the contributors to the original project!\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* http://keith-wood.name/calendars.html\n Traditional Chinese calendar for jQuery v2.0.2.\n Written by Nicolas Riesco (enquiries@nicolasriesco.net) December 2016.\n Available under the MIT (http://keith-wood.name/licence.html) license. \n Please attribute the author if you use it. */\n\nvar main = _dereq_('../main');\nvar assign = _dereq_('object-assign');\n\n\nvar gregorianCalendar = main.instance();\n\n/** Implementation of the traditional Chinese calendar.\n Source of calendar tables https://github.com/isee15/Lunar-Solar-Calendar-Converter .\n @class ChineseCalendar\n @param [language=''] {string} The language code (default English) for localisation. */\nfunction ChineseCalendar(language) {\n this.local = this.regionalOptions[language || ''] || this.regionalOptions[''];\n}\n\nChineseCalendar.prototype = new main.baseCalendar;\n\nassign(ChineseCalendar.prototype, {\n /** The calendar name.\n @memberof ChineseCalendar */\n name: 'Chinese',\n /** Julian date of start of Gregorian epoch: 1 January 0001 CE.\n @memberof GregorianCalendar */\n jdEpoch: 1721425.5,\n /** true if has a year zero, false if not.\n @memberof ChineseCalendar */\n hasYearZero: false,\n /** The minimum month number.\n This calendar uses month indices to account for intercalary months. \n @memberof ChineseCalendar */\n minMonth: 0,\n /** The first month in the year.\n This calendar uses month indices to account for intercalary months. \n @memberof ChineseCalendar */\n firstMonth: 0,\n /** The minimum day number.\n @memberof ChineseCalendar */\n minDay: 1,\n\n /** Localisations for the plugin.\n Entries are objects indexed by the language code ('' being the default US/English).\n Each object has the following attributes.\n @memberof ChineseCalendar\n @property name {string} The calendar name.\n @property epochs {string[]} The epoch names.\n @property monthNames {string[]} The long names of the months of the year.\n @property monthNamesShort {string[]} The short names of the months of the year.\n @property dayNames {string[]} The long names of the days of the week.\n @property dayNamesShort {string[]} The short names of the days of the week.\n @property dayNamesMin {string[]} The minimal names of the days of the week.\n @property dateFormat {string} The date format for this calendar.\n See the options on formatDate for details.\n @property firstDay {number} The number of the first day of the week, starting at 0.\n @property isRTL {number} true if this localisation reads right-to-left. */\n regionalOptions: { // Localisations\n '': {\n name: 'Chinese',\n epochs: ['BEC', 'EC'],\n monthNumbers: function(date, padded) {\n if (typeof date === 'string') {\n var match = date.match(MONTH_NUMBER_REGEXP);\n return (match) ? match[0] : '';\n }\n\n var year = this._validateYear(date);\n var monthIndex = date.month();\n\n var month = '' + this.toChineseMonth(year, monthIndex);\n\n if (padded && month.length < 2) {\n month = \"0\" + month;\n }\n\n if (this.isIntercalaryMonth(year, monthIndex)) {\n month += 'i';\n }\n\n return month;\n },\n monthNames: function(date) {\n if (typeof date === 'string') {\n var match = date.match(MONTH_NAME_REGEXP);\n return (match) ? match[0] : '';\n }\n\n var year = this._validateYear(date);\n var monthIndex = date.month();\n\n var month = this.toChineseMonth(year, monthIndex);\n\n var monthName = ['一月','二月','三月','四月','五月','六月',\n '七月','八月','九月','十月','十一月','十二月'][month - 1];\n\n if (this.isIntercalaryMonth(year, monthIndex)) {\n monthName = '闰' + monthName;\n }\n\n return monthName;\n },\n monthNamesShort: function(date) {\n if (typeof date === 'string') {\n var match = date.match(MONTH_SHORT_NAME_REGEXP);\n return (match) ? match[0] : '';\n }\n\n var year = this._validateYear(date);\n var monthIndex = date.month();\n\n var month = this.toChineseMonth(year, monthIndex);\n\n var monthName = ['一','二','三','四','五','六',\n '七','八','九','十','十一','十二'][month - 1];\n\n if (this.isIntercalaryMonth(year, monthIndex)) {\n monthName = '闰' + monthName;\n }\n\n return monthName;\n },\n parseMonth: function(year, monthString) {\n year = this._validateYear(year);\n var month = parseInt(monthString);\n var isIntercalary;\n\n if (!isNaN(month)) {\n var i = monthString[monthString.length - 1];\n isIntercalary = (i === 'i' || i === 'I');\n } else {\n if (monthString[0] === '闰') {\n isIntercalary = true;\n monthString = monthString.substring(1);\n }\n if (monthString[monthString.length - 1] === '月') {\n monthString = monthString.substring(0, monthString.length - 1);\n }\n month = 1 +\n ['一','二','三','四','五','六',\n '七','八','九','十','十一','十二'].indexOf(monthString);\n }\n\n var monthIndex = this.toMonthIndex(year, month, isIntercalary);\n return monthIndex;\n },\n dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n dayNamesMin: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],\n digits: null,\n dateFormat: 'yyyy/mm/dd',\n firstDay: 1,\n isRTL: false\n }\n },\n\n /** Check that a candidate date is from the same calendar and is valid.\n @memberof BaseCalendar\n @private\n @param year {CDate|number} The date or the year to validate.\n @param error {string} Error message if invalid.\n @return {number} The year.\n @throws Error if year out of range. */\n _validateYear: function(year, error) {\n if (year.year) {\n year = year.year();\n }\n\n if (typeof year !== 'number' || year < 1888 || year > 2111) {\n throw error.replace(/\\{0\\}/, this.local.name);\n }\n\n return year;\n },\n\n /** Retrieve the month index (i.e. accounting for intercalary months).\n @memberof ChineseCalendar\n @param year {number} The year.\n @param month {number} The month (1 for first month).\n @param [isIntercalary=false] {boolean} If month is intercalary.\n @return {number} The month index (0 for first month).\n @throws Error if an invalid month/year or a different calendar used. */\n toMonthIndex: function(year, month, isIntercalary) {\n // compute intercalary month in the year (0 if none)\n var intercalaryMonth = this.intercalaryMonth(year);\n\n // validate month\n var invalidIntercalaryMonth = \n (isIntercalary && month !== intercalaryMonth);\n if (invalidIntercalaryMonth || month < 1 || month > 12) {\n throw main.local.invalidMonth\n .replace(/\\{0\\}/, this.local.name);\n }\n\n // compute month index\n var monthIndex;\n\n if (!intercalaryMonth) {\n monthIndex = month - 1;\n } else if(!isIntercalary && month <= intercalaryMonth) {\n monthIndex = month - 1;\n } else {\n monthIndex = month;\n }\n\n return monthIndex;\n },\n\n /** Retrieve the month (i.e. accounting for intercalary months).\n @memberof ChineseCalendar\n @param year {CDate|number} The date or the year to examine.\n @param monthIndex {number} The month index (0 for first month).\n @return {number} The month (1 for first month).\n @throws Error if an invalid month/year or a different calendar used. */\n toChineseMonth: function(year, monthIndex) {\n if (year.year) {\n year = year.year();\n monthIndex = year.month();\n }\n\n // compute intercalary month in the year (0 if none)\n var intercalaryMonth = this.intercalaryMonth(year);\n\n // validate month\n var maxMonthIndex = (intercalaryMonth) ? 12 : 11;\n if (monthIndex < 0 || monthIndex > maxMonthIndex) {\n throw main.local.invalidMonth\n .replace(/\\{0\\}/, this.local.name);\n }\n\n // compute Chinese month\n var month;\n\n if (!intercalaryMonth) {\n month = monthIndex + 1;\n } else if(monthIndex < intercalaryMonth) {\n month = monthIndex + 1;\n } else {\n month = monthIndex;\n }\n\n return month;\n },\n\n /** Determine the intercalary month of a year (if any).\n @memberof ChineseCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {number} The intercalary month number, or 0 if none.\n @throws Error if an invalid year or a different calendar used. */\n intercalaryMonth: function(year) {\n year = this._validateYear(year);\n\n var monthDaysTable = LUNAR_MONTH_DAYS[year - LUNAR_MONTH_DAYS[0]];\n var intercalaryMonth = monthDaysTable >> 13;\n\n return intercalaryMonth;\n },\n\n /** Determine whether this date is an intercalary month.\n @memberof ChineseCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [monthIndex] {number} The month index to examine.\n @return {boolean} true if this is an intercalary month, false if not.\n @throws Error if an invalid year or a different calendar used. */\n isIntercalaryMonth: function(year, monthIndex) {\n if (year.year) {\n year = year.year();\n monthIndex = year.month();\n }\n\n var intercalaryMonth = this.intercalaryMonth(year);\n\n return !!intercalaryMonth && intercalaryMonth === monthIndex;\n },\n\n /** Determine whether this date is in a leap year.\n @memberof ChineseCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {boolean} true if this is a leap year, false if not.\n @throws Error if an invalid year or a different calendar used. */\n leapYear: function(year) {\n return (this.intercalaryMonth(year) !== 0);\n },\n\n /** Determine the week of the year for a date - ISO 8601.\n @memberof ChineseCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [monthIndex] {number} The month index to examine.\n @param [day] {number} The day to examine.\n @return {number} The week of the year.\n @throws Error if an invalid date or a different calendar used. */\n weekOfYear: function(year, monthIndex, day) {\n // compute Chinese new year\n var validatedYear =\n this._validateYear(year, main.local.invalidyear);\n var packedDate =\n CHINESE_NEW_YEAR[validatedYear - CHINESE_NEW_YEAR[0]];\n\n var y = (packedDate >> 9) & 0xFFF;\n var m = (packedDate >> 5) & 0x0F;\n var d = packedDate & 0x1F;\n \n // find first Thrusday of the year\n var firstThursday;\n firstThursday = gregorianCalendar.newDate(y, m, d);\n firstThursday.add(4 - (firstThursday.dayOfWeek() || 7), 'd');\n\n // compute days from first Thursday\n var offset =\n this.toJD(year, monthIndex, day) - firstThursday.toJD();\n return 1 + Math.floor(offset / 7);\n },\n\n /** Retrieve the number of months in a year.\n @memberof ChineseCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {number} The number of months.\n @throws Error if an invalid year or a different calendar used. */\n monthsInYear: function(year) {\n return (this.leapYear(year)) ? 13 : 12;\n },\n\n /** Retrieve the number of days in a month.\n @memberof ChineseCalendar\n @param year {CDate|number} The date to examine or the year of the month.\n @param [monthIndex] {number} The month index.\n @return {number} The number of days in this month.\n @throws Error if an invalid month/year or a different calendar used. */\n daysInMonth: function(year, monthIndex) {\n if (year.year) {\n monthIndex = year.month();\n year = year.year();\n }\n\n year = this._validateYear(year);\n\n var monthDaysTable = LUNAR_MONTH_DAYS[year - LUNAR_MONTH_DAYS[0]];\n\n var intercalaryMonth = monthDaysTable >> 13;\n var maxMonthIndex = (intercalaryMonth) ? 12 : 11;\n if (monthIndex > maxMonthIndex) {\n throw main.local.invalidMonth\n .replace(/\\{0\\}/, this.local.name);\n }\n\n var daysInMonth = (monthDaysTable & (1 << (12 - monthIndex))) ?\n 30 : 29;\n\n return daysInMonth;\n },\n\n /** Determine whether this date is a week day.\n @memberof ChineseCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [monthIndex] {number} The month index to examine.\n @param [day] {number} The day to examine.\n @return {boolean} true if a week day, false if not.\n @throws Error if an invalid date or a different calendar used. */\n weekDay: function(year, monthIndex, day) {\n return (this.dayOfWeek(year, monthIndex, day) || 7) < 6;\n },\n\n /** Retrieve the Julian date equivalent for this date,\n i.e. days since January 1, 4713 BCE Greenwich noon.\n @memberof ChineseCalendar\n @param year {CDate|number} The date to convert or the year to convert.\n @param [monthIndex] {number} The month index to convert.\n @param [day] {number} The day to convert.\n @return {number} The equivalent Julian date.\n @throws Error if an invalid date or a different calendar used. */\n toJD: function(year, monthIndex, day) {\n var date = this._validate(year, month, day, main.local.invalidDate);\n year = this._validateYear(date.year());\n monthIndex = date.month();\n day = date.day();\n\n var isIntercalary = this.isIntercalaryMonth(year, monthIndex);\n var month = this.toChineseMonth(year, monthIndex);\n\n var solar = toSolar(year, month, day, isIntercalary);\n\n return gregorianCalendar.toJD(solar.year, solar.month, solar.day);\n },\n\n /** Create a new date from a Julian date.\n @memberof ChineseCalendar\n @param jd {number} The Julian date to convert.\n @return {CDate} The equivalent date. */\n fromJD: function(jd) {\n var date = gregorianCalendar.fromJD(jd);\n var lunar = toLunar(date.year(), date.month(), date.day());\n var monthIndex = this.toMonthIndex(\n lunar.year, lunar.month, lunar.isIntercalary);\n return this.newDate(lunar.year, monthIndex, lunar.day);\n },\n\n /** Create a new date from a string.\n @memberof ChineseCalendar\n @param dateString {string} String representing a Chinese date\n @return {CDate} The new date.\n @throws Error if an invalid date. */\n fromString: function(dateString) {\n var match = dateString.match(DATE_REGEXP);\n\n var year = this._validateYear(+match[1]);\n\n var month = +match[2];\n var isIntercalary = !!match[3];\n var monthIndex = this.toMonthIndex(year, month, isIntercalary);\n\n var day = +match[4];\n\n return this.newDate(year, monthIndex, day);\n },\n\n /** Add period(s) to a date.\n Cater for no year zero.\n @memberof ChineseCalendar\n @param date {CDate} The starting date.\n @param offset {number} The number of periods to adjust by.\n @param period {string} One of 'y' for year, 'm' for month, 'w' for week, 'd' for day.\n @return {CDate} The updated date.\n @throws Error if a different calendar used. */\n add: function(date, offset, period) {\n var year = date.year();\n var monthIndex = date.month();\n var isIntercalary = this.isIntercalaryMonth(year, monthIndex);\n var month = this.toChineseMonth(year, monthIndex);\n\n var cdate = Object.getPrototypeOf(ChineseCalendar.prototype)\n .add.call(this, date, offset, period);\n\n if (period === 'y') {\n // Resync month\n var resultYear = cdate.year();\n var resultMonthIndex = cdate.month();\n\n // Using the fact the month index of an intercalary month\n // equals its month number:\n var resultCanBeIntercalaryMonth =\n this.isIntercalaryMonth(resultYear, month);\n\n var correctedMonthIndex =\n (isIntercalary && resultCanBeIntercalaryMonth) ?\n this.toMonthIndex(resultYear, month, true) :\n this.toMonthIndex(resultYear, month, false);\n\n if (correctedMonthIndex !== resultMonthIndex) {\n cdate.month(correctedMonthIndex);\n }\n }\n\n return cdate;\n },\n});\n\n// Used by ChineseCalendar.prototype.fromString\nvar DATE_REGEXP = /^\\s*(-?\\d\\d\\d\\d|\\d\\d)[-/](\\d?\\d)([iI]?)[-/](\\d?\\d)/m;\nvar MONTH_NUMBER_REGEXP = /^\\d?\\d[iI]?/m;\nvar MONTH_NAME_REGEXP = /^闰?十?[一二三四五六七八九]?月/m;\nvar MONTH_SHORT_NAME_REGEXP = /^闰?十?[一二三四五六七八九]?/m;\n\n// Chinese calendar implementation\nmain.calendars.chinese = ChineseCalendar;\n\n// Chinese calendar tables from year 1888 to 2111\n//\n// Source:\n// https://github.com/isee15/Lunar-Solar-Calendar-Converter.git\n\n// Table of intercalary months and days per month from year 1888 to 2111\n//\n// bit (12 - i): days in the i^th month\n// (= 0 if i^th lunar month has 29 days)\n// (= 1 if i^th lunar month has 30 days)\n// (first month in lunar year is i = 0)\n// bits (13,14,15,16): intercalary month\n// (= 0 if lunar year has no intercalary month)\nvar LUNAR_MONTH_DAYS = [1887, 0x1694, 0x16aa, 0x4ad5,\n 0xab6, 0xc4b7, 0x4ae, 0xa56, 0xb52a, 0x1d2a, 0xd54, 0x75aa, 0x156a,\n 0x1096d, 0x95c, 0x14ae, 0xaa4d, 0x1a4c, 0x1b2a, 0x8d55, 0xad4,\n 0x135a, 0x495d, 0x95c, 0xd49b, 0x149a, 0x1a4a, 0xbaa5, 0x16a8,\n 0x1ad4, 0x52da, 0x12b6, 0xe937, 0x92e, 0x1496, 0xb64b, 0xd4a,\n 0xda8, 0x95b5, 0x56c, 0x12ae, 0x492f, 0x92e, 0xcc96, 0x1a94,\n 0x1d4a, 0xada9, 0xb5a, 0x56c, 0x726e, 0x125c, 0xf92d, 0x192a,\n 0x1a94, 0xdb4a, 0x16aa, 0xad4, 0x955b, 0x4ba, 0x125a, 0x592b,\n 0x152a, 0xf695, 0xd94, 0x16aa, 0xaab5, 0x9b4, 0x14b6, 0x6a57,\n 0xa56, 0x1152a, 0x1d2a, 0xd54, 0xd5aa, 0x156a, 0x96c, 0x94ae,\n 0x14ae, 0xa4c, 0x7d26, 0x1b2a, 0xeb55, 0xad4, 0x12da, 0xa95d,\n 0x95a, 0x149a, 0x9a4d, 0x1a4a, 0x11aa5, 0x16a8, 0x16d4, 0xd2da,\n 0x12b6, 0x936, 0x9497, 0x1496, 0x1564b, 0xd4a, 0xda8, 0xd5b4,\n 0x156c, 0x12ae, 0xa92f, 0x92e, 0xc96, 0x6d4a, 0x1d4a, 0x10d65,\n 0xb58, 0x156c, 0xb26d, 0x125c, 0x192c, 0x9a95, 0x1a94, 0x1b4a,\n 0x4b55, 0xad4, 0xf55b, 0x4ba, 0x125a, 0xb92b, 0x152a, 0x1694,\n 0x96aa, 0x15aa, 0x12ab5, 0x974, 0x14b6, 0xca57, 0xa56, 0x1526,\n 0x8e95, 0xd54, 0x15aa, 0x49b5, 0x96c, 0xd4ae, 0x149c, 0x1a4c,\n 0xbd26, 0x1aa6, 0xb54, 0x6d6a, 0x12da, 0x1695d, 0x95a, 0x149a,\n 0xda4b, 0x1a4a, 0x1aa4, 0xbb54, 0x16b4, 0xada, 0x495b, 0x936,\n 0xf497, 0x1496, 0x154a, 0xb6a5, 0xda4, 0x15b4, 0x6ab6, 0x126e,\n 0x1092f, 0x92e, 0xc96, 0xcd4a, 0x1d4a, 0xd64, 0x956c, 0x155c,\n 0x125c, 0x792e, 0x192c, 0xfa95, 0x1a94, 0x1b4a, 0xab55, 0xad4,\n 0x14da, 0x8a5d, 0xa5a, 0x1152b, 0x152a, 0x1694, 0xd6aa, 0x15aa,\n 0xab4, 0x94ba, 0x14b6, 0xa56, 0x7527, 0xd26, 0xee53, 0xd54, 0x15aa,\n 0xa9b5, 0x96c, 0x14ae, 0x8a4e, 0x1a4c, 0x11d26, 0x1aa4, 0x1b54,\n 0xcd6a, 0xada, 0x95c, 0x949d, 0x149a, 0x1a2a, 0x5b25, 0x1aa4,\n 0xfb52, 0x16b4, 0xaba, 0xa95b, 0x936, 0x1496, 0x9a4b, 0x154a,\n 0x136a5, 0xda4, 0x15ac];\n\n// Table of Chinese New Years from year 1888 to 2111\n// \n// bits (0 to 4): solar day\n// bits (5 to 8): solar month\n// bits (9 to 20): solar year\nvar CHINESE_NEW_YEAR = [1887, 0xec04c, 0xec23f, 0xec435, 0xec649,\n 0xec83e, 0xeca51, 0xecc46, 0xece3a, 0xed04d, 0xed242, 0xed436,\n 0xed64a, 0xed83f, 0xeda53, 0xedc48, 0xede3d, 0xee050, 0xee244,\n 0xee439, 0xee64d, 0xee842, 0xeea36, 0xeec4a, 0xeee3e, 0xef052,\n 0xef246, 0xef43a, 0xef64e, 0xef843, 0xefa37, 0xefc4b, 0xefe41,\n 0xf0054, 0xf0248, 0xf043c, 0xf0650, 0xf0845, 0xf0a38, 0xf0c4d,\n 0xf0e42, 0xf1037, 0xf124a, 0xf143e, 0xf1651, 0xf1846, 0xf1a3a,\n 0xf1c4e, 0xf1e44, 0xf2038, 0xf224b, 0xf243f, 0xf2653, 0xf2848,\n 0xf2a3b, 0xf2c4f, 0xf2e45, 0xf3039, 0xf324d, 0xf3442, 0xf3636,\n 0xf384a, 0xf3a3d, 0xf3c51, 0xf3e46, 0xf403b, 0xf424e, 0xf4443,\n 0xf4638, 0xf484c, 0xf4a3f, 0xf4c52, 0xf4e48, 0xf503c, 0xf524f,\n 0xf5445, 0xf5639, 0xf584d, 0xf5a42, 0xf5c35, 0xf5e49, 0xf603e,\n 0xf6251, 0xf6446, 0xf663b, 0xf684f, 0xf6a43, 0xf6c37, 0xf6e4b,\n 0xf703f, 0xf7252, 0xf7447, 0xf763c, 0xf7850, 0xf7a45, 0xf7c39,\n 0xf7e4d, 0xf8042, 0xf8254, 0xf8449, 0xf863d, 0xf8851, 0xf8a46,\n 0xf8c3b, 0xf8e4f, 0xf9044, 0xf9237, 0xf944a, 0xf963f, 0xf9853,\n 0xf9a47, 0xf9c3c, 0xf9e50, 0xfa045, 0xfa238, 0xfa44c, 0xfa641,\n 0xfa836, 0xfaa49, 0xfac3d, 0xfae52, 0xfb047, 0xfb23a, 0xfb44e,\n 0xfb643, 0xfb837, 0xfba4a, 0xfbc3f, 0xfbe53, 0xfc048, 0xfc23c,\n 0xfc450, 0xfc645, 0xfc839, 0xfca4c, 0xfcc41, 0xfce36, 0xfd04a,\n 0xfd23d, 0xfd451, 0xfd646, 0xfd83a, 0xfda4d, 0xfdc43, 0xfde37,\n 0xfe04b, 0xfe23f, 0xfe453, 0xfe648, 0xfe83c, 0xfea4f, 0xfec44,\n 0xfee38, 0xff04c, 0xff241, 0xff436, 0xff64a, 0xff83e, 0xffa51,\n 0xffc46, 0xffe3a, 0x10004e, 0x100242, 0x100437, 0x10064b, 0x100841,\n 0x100a53, 0x100c48, 0x100e3c, 0x10104f, 0x101244, 0x101438,\n 0x10164c, 0x101842, 0x101a35, 0x101c49, 0x101e3d, 0x102051,\n 0x102245, 0x10243a, 0x10264e, 0x102843, 0x102a37, 0x102c4b,\n 0x102e3f, 0x103053, 0x103247, 0x10343b, 0x10364f, 0x103845,\n 0x103a38, 0x103c4c, 0x103e42, 0x104036, 0x104249, 0x10443d,\n 0x104651, 0x104846, 0x104a3a, 0x104c4e, 0x104e43, 0x105038,\n 0x10524a, 0x10543e, 0x105652, 0x105847, 0x105a3b, 0x105c4f,\n 0x105e45, 0x106039, 0x10624c, 0x106441, 0x106635, 0x106849,\n 0x106a3d, 0x106c51, 0x106e47, 0x10703c, 0x10724f, 0x107444,\n 0x107638, 0x10784c, 0x107a3f, 0x107c53, 0x107e48];\n\nfunction toLunar(yearOrDate, monthOrResult, day, result) {\n var solarDate;\n var lunarDate;\n\n if(typeof yearOrDate === 'object') {\n solarDate = yearOrDate;\n lunarDate = monthOrResult || {};\n\n } else {\n var isValidYear = (typeof yearOrDate === 'number') &&\n (yearOrDate >= 1888) && (yearOrDate <= 2111);\n if(!isValidYear)\n throw new Error(\"Solar year outside range 1888-2111\");\n\n var isValidMonth = (typeof monthOrResult === 'number') &&\n (monthOrResult >= 1) && (monthOrResult <= 12);\n if(!isValidMonth)\n throw new Error(\"Solar month outside range 1 - 12\");\n\n var isValidDay = (typeof day === 'number') && (day >= 1) && (day <= 31);\n if(!isValidDay)\n throw new Error(\"Solar day outside range 1 - 31\");\n\n solarDate = {\n year: yearOrDate,\n month: monthOrResult,\n day: day,\n };\n lunarDate = result || {};\n }\n\n // Compute Chinese new year and lunar year\n var chineseNewYearPackedDate =\n CHINESE_NEW_YEAR[solarDate.year - CHINESE_NEW_YEAR[0]];\n\n var packedDate = (solarDate.year << 9) | (solarDate.month << 5)\n | solarDate.day;\n\n lunarDate.year = (packedDate >= chineseNewYearPackedDate) ?\n solarDate.year :\n solarDate.year - 1;\n\n chineseNewYearPackedDate =\n CHINESE_NEW_YEAR[lunarDate.year - CHINESE_NEW_YEAR[0]];\n\n var y = (chineseNewYearPackedDate >> 9) & 0xFFF;\n var m = (chineseNewYearPackedDate >> 5) & 0x0F;\n var d = chineseNewYearPackedDate & 0x1F;\n\n // Compute days from new year\n var daysFromNewYear;\n\n var chineseNewYearJSDate = new Date(y, m -1, d);\n var jsDate = new Date(solarDate.year, solarDate.month - 1, solarDate.day);\n\n daysFromNewYear = Math.round(\n (jsDate - chineseNewYearJSDate) / (24 * 3600 * 1000));\n\n // Compute lunar month and day\n var monthDaysTable = LUNAR_MONTH_DAYS[lunarDate.year - LUNAR_MONTH_DAYS[0]];\n\n var i;\n for(i = 0; i < 13; i++) {\n var daysInMonth = (monthDaysTable & (1 << (12 - i))) ? 30 : 29;\n\n if (daysFromNewYear < daysInMonth) {\n break;\n }\n\n daysFromNewYear -= daysInMonth;\n }\n\n var intercalaryMonth = monthDaysTable >> 13;\n if (!intercalaryMonth || i < intercalaryMonth) {\n lunarDate.isIntercalary = false;\n lunarDate.month = 1 + i;\n } else if (i === intercalaryMonth) {\n lunarDate.isIntercalary = true;\n lunarDate.month = i;\n } else {\n lunarDate.isIntercalary = false;\n lunarDate.month = i;\n }\n\n lunarDate.day = 1 + daysFromNewYear;\n\n return lunarDate;\n}\n\nfunction toSolar(yearOrDate, monthOrResult, day, isIntercalaryOrResult, result) {\n var solarDate;\n var lunarDate;\n\n if(typeof yearOrDate === 'object') {\n lunarDate = yearOrDate;\n solarDate = monthOrResult || {};\n\n } else {\n var isValidYear = (typeof yearOrDate === 'number') &&\n (yearOrDate >= 1888) && (yearOrDate <= 2111);\n if(!isValidYear)\n throw new Error(\"Lunar year outside range 1888-2111\");\n\n var isValidMonth = (typeof monthOrResult === 'number') &&\n (monthOrResult >= 1) && (monthOrResult <= 12);\n if(!isValidMonth)\n throw new Error(\"Lunar month outside range 1 - 12\");\n\n var isValidDay = (typeof day === 'number') && (day >= 1) && (day <= 30);\n if(!isValidDay)\n throw new Error(\"Lunar day outside range 1 - 30\");\n\n var isIntercalary;\n if(typeof isIntercalaryOrResult === 'object') {\n isIntercalary = false;\n solarDate = isIntercalaryOrResult;\n } else {\n isIntercalary = !!isIntercalaryOrResult;\n solarDate = result || {};\n }\n\n lunarDate = {\n year: yearOrDate,\n month: monthOrResult,\n day: day,\n isIntercalary: isIntercalary,\n };\n }\n\n // Compute days from new year\n var daysFromNewYear;\n\n daysFromNewYear = lunarDate.day - 1;\n\n var monthDaysTable = LUNAR_MONTH_DAYS[lunarDate.year - LUNAR_MONTH_DAYS[0]];\n var intercalaryMonth = monthDaysTable >> 13;\n\n var monthsFromNewYear;\n if (!intercalaryMonth) {\n monthsFromNewYear = lunarDate.month - 1;\n } else if (lunarDate.month > intercalaryMonth) {\n monthsFromNewYear = lunarDate.month;\n } else if (lunarDate.isIntercalary) {\n monthsFromNewYear = lunarDate.month;\n } else {\n monthsFromNewYear = lunarDate.month - 1;\n }\n\n for(var i = 0; i < monthsFromNewYear; i++) {\n var daysInMonth = (monthDaysTable & (1 << (12 - i))) ? 30 : 29;\n daysFromNewYear += daysInMonth;\n }\n\n // Compute Chinese new year\n var packedDate = CHINESE_NEW_YEAR[lunarDate.year - CHINESE_NEW_YEAR[0]];\n\n var y = (packedDate >> 9) & 0xFFF;\n var m = (packedDate >> 5) & 0x0F;\n var d = packedDate & 0x1F;\n\n // Compute solar date\n var jsDate = new Date(y, m - 1, d + daysFromNewYear);\n\n solarDate.year = jsDate.getFullYear();\n solarDate.month = 1 + jsDate.getMonth();\n solarDate.day = jsDate.getDate();\n\n return solarDate;\n}\n\n\n},{\"../main\":346,\"object-assign\":247}],333:[function(_dereq_,module,exports){\n/*\n * World Calendars\n * https://github.com/alexcjohnson/world-calendars\n *\n * Batch-converted from kbwood/calendars\n * Many thanks to Keith Wood and all of the contributors to the original project!\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* http://keith-wood.name/calendars.html\n Coptic calendar for jQuery v2.0.2.\n Written by Keith Wood (wood.keith{at}optusnet.com.au) February 2010.\n Available under the MIT (http://keith-wood.name/licence.html) license. \n Please attribute the author if you use it. */\n\nvar main = _dereq_('../main');\nvar assign = _dereq_('object-assign');\n\n\n/** Implementation of the Coptic calendar.\n See http://en.wikipedia.org/wiki/Coptic_calendar.\n See also Calendrical Calculations: The Millennium Edition\n (http://emr.cs.iit.edu/home/reingold/calendar-book/index.shtml).\n @class CopticCalendar\n @param [language=''] {string} The language code (default English) for localisation. */\nfunction CopticCalendar(language) {\n this.local = this.regionalOptions[language || ''] || this.regionalOptions[''];\n}\n\nCopticCalendar.prototype = new main.baseCalendar;\n\nassign(CopticCalendar.prototype, {\n /** The calendar name.\n @memberof CopticCalendar */\n name: 'Coptic',\n /** Julian date of start of Coptic epoch: 29 August 284 CE (Gregorian).\n @memberof CopticCalendar */\n jdEpoch: 1825029.5,\n /** Days per month in a common year.\n @memberof CopticCalendar */\n daysPerMonth: [30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 5],\n /** true if has a year zero, false if not.\n @memberof CopticCalendar */\n hasYearZero: false,\n /** The minimum month number.\n @memberof CopticCalendar */\n minMonth: 1,\n /** The first month in the year.\n @memberof CopticCalendar */\n firstMonth: 1,\n /** The minimum day number.\n @memberof CopticCalendar */\n minDay: 1,\n\n /** Localisations for the plugin.\n Entries are objects indexed by the language code ('' being the default US/English).\n Each object has the following attributes.\n @memberof CopticCalendar\n @property name {string} The calendar name.\n @property epochs {string[]} The epoch names.\n @property monthNames {string[]} The long names of the months of the year.\n @property monthNamesShort {string[]} The short names of the months of the year.\n @property dayNames {string[]} The long names of the days of the week.\n @property dayNamesShort {string[]} The short names of the days of the week.\n @property dayNamesMin {string[]} The minimal names of the days of the week.\n @property dateFormat {string} The date format for this calendar.\n See the options on formatDate for details.\n @property firstDay {number} The number of the first day of the week, starting at 0.\n @property isRTL {number} true if this localisation reads right-to-left. */\n regionalOptions: { // Localisations\n '': {\n name: 'Coptic',\n epochs: ['BAM', 'AM'],\n monthNames: ['Thout', 'Paopi', 'Hathor', 'Koiak', 'Tobi', 'Meshir',\n 'Paremhat', 'Paremoude', 'Pashons', 'Paoni', 'Epip', 'Mesori', 'Pi Kogi Enavot'],\n monthNamesShort: ['Tho', 'Pao', 'Hath', 'Koi', 'Tob', 'Mesh',\n 'Pat', 'Pad', 'Pash', 'Pao', 'Epi', 'Meso', 'PiK'],\n dayNames: ['Tkyriaka', 'Pesnau', 'Pshoment', 'Peftoou', 'Ptiou', 'Psoou', 'Psabbaton'],\n dayNamesShort: ['Tky', 'Pes', 'Psh', 'Pef', 'Pti', 'Pso', 'Psa'],\n dayNamesMin: ['Tk', 'Pes', 'Psh', 'Pef', 'Pt', 'Pso', 'Psa'],\n digits: null,\n dateFormat: 'dd/mm/yyyy',\n firstDay: 0,\n isRTL: false\n }\n },\n\n /** Determine whether this date is in a leap year.\n @memberof CopticCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {boolean} true if this is a leap year, false if not.\n @throws Error if an invalid year or a different calendar used. */\n leapYear: function(year) {\n var date = this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n var year = date.year() + (date.year() < 0 ? 1 : 0); // No year zero\n return year % 4 === 3 || year % 4 === -1;\n },\n\n /** Retrieve the number of months in a year.\n @memberof CopticCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {number} The number of months.\n @throws Error if an invalid year or a different calendar used. */\n monthsInYear: function(year) {\n this._validate(year, this.minMonth, this.minDay,\n main.local.invalidYear || main.regionalOptions[''].invalidYear);\n return 13;\n },\n\n /** Determine the week of the year for a date.\n @memberof CopticCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number) the month to examine.\n @param [day] {number} The day to examine.\n @return {number} The week of the year.\n @throws Error if an invalid date or a different calendar used. */\n weekOfYear: function(year, month, day) {\n // Find Sunday of this week starting on Sunday\n var checkDate = this.newDate(year, month, day);\n checkDate.add(-checkDate.dayOfWeek(), 'd');\n return Math.floor((checkDate.dayOfYear() - 1) / 7) + 1;\n },\n\n /** Retrieve the number of days in a month.\n @memberof CopticCalendar\n @param year {CDate|number} The date to examine or the year of the month.\n @param [month] {number} The month.\n @return {number} The number of days in this month.\n @throws Error if an invalid month/year or a different calendar used. */\n daysInMonth: function(year, month) {\n var date = this._validate(year, month, this.minDay, main.local.invalidMonth);\n return this.daysPerMonth[date.month() - 1] +\n (date.month() === 13 && this.leapYear(date.year()) ? 1 : 0);\n },\n\n /** Determine whether this date is a week day.\n @memberof CopticCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param month {number} The month to examine.\n @param day {number} The day to examine.\n @return {boolean} true if a week day, false if not.\n @throws Error if an invalid date or a different calendar used. */\n weekDay: function(year, month, day) {\n return (this.dayOfWeek(year, month, day) || 7) < 6;\n },\n\n /** Retrieve the Julian date equivalent for this date,\n i.e. days since January 1, 4713 BCE Greenwich noon.\n @memberof CopticCalendar\n @param year {CDate|number} The date to convert or the year to convert.\n @param [month] {number) the month to convert.\n @param [day] {number} The day to convert.\n @return {number} The equivalent Julian date.\n @throws Error if an invalid date or a different calendar used. */\n toJD: function(year, month, day) {\n var date = this._validate(year, month, day, main.local.invalidDate);\n year = date.year();\n if (year < 0) { year++; } // No year zero\n return date.day() + (date.month() - 1) * 30 +\n (year - 1) * 365 + Math.floor(year / 4) + this.jdEpoch - 1;\n },\n\n /** Create a new date from a Julian date.\n @memberof CopticCalendar\n @param jd {number} The Julian date to convert.\n @return {CDate} The equivalent date. */\n fromJD: function(jd) {\n var c = Math.floor(jd) + 0.5 - this.jdEpoch;\n var year = Math.floor((c - Math.floor((c + 366) / 1461)) / 365) + 1;\n if (year <= 0) { year--; } // No year zero\n c = Math.floor(jd) + 0.5 - this.newDate(year, 1, 1).toJD();\n var month = Math.floor(c / 30) + 1;\n var day = c - (month - 1) * 30 + 1;\n return this.newDate(year, month, day);\n }\n});\n\n// Coptic calendar implementation\nmain.calendars.coptic = CopticCalendar;\n\n\n},{\"../main\":346,\"object-assign\":247}],334:[function(_dereq_,module,exports){\n/*\n * World Calendars\n * https://github.com/alexcjohnson/world-calendars\n *\n * Batch-converted from kbwood/calendars\n * Many thanks to Keith Wood and all of the contributors to the original project!\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* http://keith-wood.name/calendars.html\n Discworld calendar for jQuery v2.0.2.\n Written by Keith Wood (wood.keith{at}optusnet.com.au) January 2016.\n Available under the MIT (http://keith-wood.name/licence.html) license. \n Please attribute the author if you use it. */\n\nvar main = _dereq_('../main');\nvar assign = _dereq_('object-assign');\n\n\n/** Implementation of the Discworld calendar - Unseen University version.\n See also http://wiki.lspace.org/mediawiki/Discworld_calendar\n and http://discworld.wikia.com/wiki/Discworld_calendar.\n @class DiscworldCalendar\n @param [language=''] {string} The language code (default English) for localisation. */\nfunction DiscworldCalendar(language) {\n this.local = this.regionalOptions[language || ''] || this.regionalOptions[''];\n}\n\nDiscworldCalendar.prototype = new main.baseCalendar;\n\nassign(DiscworldCalendar.prototype, {\n /** The calendar name.\n @memberof DiscworldCalendar */\n name: 'Discworld',\n /** Julian date of start of Discworld epoch: 1 January 0001 CE.\n @memberof DiscworldCalendar */\n jdEpoch: 1721425.5,\n /** Days per month in a common year.\n @memberof DiscworldCalendar */\n daysPerMonth: [16, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32],\n /** true if has a year zero, false if not.\n @memberof DiscworldCalendar */\n hasYearZero: false,\n /** The minimum month number.\n @memberof DiscworldCalendar */\n minMonth: 1,\n /** The first month in the year.\n @memberof DiscworldCalendar */\n firstMonth: 1,\n /** The minimum day number.\n @memberof DiscworldCalendar */\n minDay: 1,\n\n /** Localisations for the plugin.\n Entries are objects indexed by the language code ('' being the default US/English).\n Each object has the following attributes.\n @memberof DiscworldCalendar\n @property name {string} The calendar name.\n @property epochs {string[]} The epoch names.\n @property monthNames {string[]} The long names of the months of the year.\n @property monthNamesShort {string[]} The short names of the months of the year.\n @property dayNames {string[]} The long names of the days of the week.\n @property dayNamesShort {string[]} The short names of the days of the week.\n @property dayNamesMin {string[]} The minimal names of the days of the week.\n @property dateFormat {string} The date format for this calendar.\n See the options on formatDate for details.\n @property firstDay {number} The number of the first day of the week, starting at 0.\n @property isRTL {number} true if this localisation reads right-to-left. */\n regionalOptions: { // Localisations\n '': {\n name: 'Discworld',\n epochs: ['BUC', 'UC'],\n monthNames: ['Ick', 'Offle', 'February', 'March', 'April', 'May', 'June',\n 'Grune', 'August', 'Spune', 'Sektober', 'Ember', 'December'],\n monthNamesShort: ['Ick', 'Off', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Gru', 'Aug', 'Spu', 'Sek', 'Emb', 'Dec'],\n dayNames: ['Sunday', 'Octeday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n dayNamesShort: ['Sun', 'Oct', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n dayNamesMin: ['Su', 'Oc', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],\n digits: null,\n dateFormat: 'yyyy/mm/dd',\n firstDay: 2,\n isRTL: false\n }\n },\n\n /** Determine whether this date is in a leap year.\n @memberof DiscworldCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {boolean} true if this is a leap year, false if not.\n @throws Error if an invalid year or a different calendar used. */\n leapYear: function(year) {\n this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n return false;\n },\n\n /** Retrieve the number of months in a year.\n @memberof DiscworldCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {number} The number of months.\n @throws Error if an invalid year or a different calendar used. */\n monthsInYear: function(year) {\n this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n return 13;\n },\n\n /** Retrieve the number of days in a year.\n @memberof DiscworldCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {number} The number of days.\n @throws Error if an invalid year or a different calendar used. */\n daysInYear: function(year) {\n this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n return 400;\n },\n\n /** Determine the week of the year for a date.\n @memberof DiscworldCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {number} The week of the year.\n @throws Error if an invalid date or a different calendar used. */\n weekOfYear: function(year, month, day) {\n // Find Sunday of this week starting on Sunday\n var checkDate = this.newDate(year, month, day);\n checkDate.add(-checkDate.dayOfWeek(), 'd');\n return Math.floor((checkDate.dayOfYear() - 1) / 8) + 1;\n },\n\n /** Retrieve the number of days in a month.\n @memberof DiscworldCalendar\n @param year {CDate|number} The date to examine or the year of the month.\n @param [month] {number} The month.\n @return {number} The number of days in this month.\n @throws Error if an invalid month/year or a different calendar used. */\n daysInMonth: function(year, month) {\n var date = this._validate(year, month, this.minDay, main.local.invalidMonth);\n return this.daysPerMonth[date.month() - 1];\n },\n\n /** Retrieve the number of days in a week.\n @memberof DiscworldCalendar\n @return {number} The number of days. */\n daysInWeek: function() {\n return 8;\n },\n\n /** Retrieve the day of the week for a date.\n @memberof DiscworldCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {number} The day of the week: 0 to number of days - 1.\n @throws Error if an invalid date or a different calendar used. */\n dayOfWeek: function(year, month, day) {\n var date = this._validate(year, month, day, main.local.invalidDate);\n return (date.day() + 1) % 8;\n },\n\n /** Determine whether this date is a week day.\n @memberof DiscworldCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {boolean} true if a week day, false if not.\n @throws Error if an invalid date or a different calendar used. */\n weekDay: function(year, month, day) {\n var dow = this.dayOfWeek(year, month, day);\n return (dow >= 2 && dow <= 6);\n },\n\n /** Retrieve additional information about a date.\n @memberof DiscworldCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {object} Additional information - contents depends on calendar.\n @throws Error if an invalid date or a different calendar used. */\n extraInfo: function(year, month, day) {\n var date = this._validate(year, month, day, main.local.invalidDate);\n return {century: centuries[Math.floor((date.year() - 1) / 100) + 1] || ''};\n },\n\n /** Retrieve the Julian date equivalent for this date,\n i.e. days since January 1, 4713 BCE Greenwich noon.\n @memberof DiscworldCalendar\n @param year {CDate|number} The date to convert or the year to convert.\n @param [month] {number} The month to convert.\n @param [day] {number} The day to convert.\n @return {number} The equivalent Julian date.\n @throws Error if an invalid date or a different calendar used. */\n toJD: function(year, month, day) {\n var date = this._validate(year, month, day, main.local.invalidDate);\n year = date.year() + (date.year() < 0 ? 1 : 0);\n month = date.month();\n day = date.day();\n return day + (month > 1 ? 16 : 0) + (month > 2 ? (month - 2) * 32 : 0) +\n (year - 1) * 400 + this.jdEpoch - 1;\n },\n\n /** Create a new date from a Julian date.\n @memberof DiscworldCalendar\n @param jd {number} The Julian date to convert.\n @return {CDate} The equivalent date. */\n fromJD: function(jd) {\n jd = Math.floor(jd + 0.5) - Math.floor(this.jdEpoch) - 1;\n var year = Math.floor(jd / 400) + 1;\n jd -= (year - 1) * 400;\n jd += (jd > 15 ? 16 : 0);\n var month = Math.floor(jd / 32) + 1;\n var day = jd - (month - 1) * 32 + 1;\n return this.newDate(year <= 0 ? year - 1 : year, month, day);\n }\n});\n\n// Names of the centuries\nvar centuries = {\n 20: 'Fruitbat',\n 21: 'Anchovy'\n};\n\n// Discworld calendar implementation\nmain.calendars.discworld = DiscworldCalendar;\n\n\n},{\"../main\":346,\"object-assign\":247}],335:[function(_dereq_,module,exports){\n/*\n * World Calendars\n * https://github.com/alexcjohnson/world-calendars\n *\n * Batch-converted from kbwood/calendars\n * Many thanks to Keith Wood and all of the contributors to the original project!\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* http://keith-wood.name/calendars.html\n Ethiopian calendar for jQuery v2.0.2.\n Written by Keith Wood (wood.keith{at}optusnet.com.au) February 2010.\n Available under the MIT (http://keith-wood.name/licence.html) license. \n Please attribute the author if you use it. */\n\nvar main = _dereq_('../main');\nvar assign = _dereq_('object-assign');\n\n\n/** Implementation of the Ethiopian calendar.\n See http://en.wikipedia.org/wiki/Ethiopian_calendar.\n See also Calendrical Calculations: The Millennium Edition\n (http://emr.cs.iit.edu/home/reingold/calendar-book/index.shtml).\n @class EthiopianCalendar\n @param [language=''] {string} The language code (default English) for localisation. */\nfunction EthiopianCalendar(language) {\n this.local = this.regionalOptions[language || ''] || this.regionalOptions[''];\n}\n\nEthiopianCalendar.prototype = new main.baseCalendar;\n\nassign(EthiopianCalendar.prototype, {\n /** The calendar name.\n @memberof EthiopianCalendar */\n name: 'Ethiopian',\n /** Julian date of start of Ethiopian epoch: 27 August 8 CE (Gregorian).\n @memberof EthiopianCalendar */\n jdEpoch: 1724220.5,\n /** Days per month in a common year.\n @memberof EthiopianCalendar */\n daysPerMonth: [30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 5],\n /** true if has a year zero, false if not.\n @memberof EthiopianCalendar */\n hasYearZero: false,\n /** The minimum month number.\n @memberof EthiopianCalendar */\n minMonth: 1,\n /** The first month in the year.\n @memberof EthiopianCalendar */\n firstMonth: 1,\n /** The minimum day number.\n @memberof EthiopianCalendar */\n minDay: 1,\n\n /** Localisations for the plugin.\n Entries are objects indexed by the language code ('' being the default US/English).\n Each object has the following attributes.\n @memberof EthiopianCalendar\n @property name {string} The calendar name.\n @property epochs {string[]} The epoch names.\n @property monthNames {string[]} The long names of the months of the year.\n @property monthNamesShort {string[]} The short names of the months of the year.\n @property dayNames {string[]} The long names of the days of the week.\n @property dayNamesShort {string[]} The short names of the days of the week.\n @property dayNamesMin {string[]} The minimal names of the days of the week.\n @property dateFormat {string} The date format for this calendar.\n See the options on formatDate for details.\n @property firstDay {number} The number of the first day of the week, starting at 0.\n @property isRTL {number} true if this localisation reads right-to-left. */\n regionalOptions: { // Localisations\n '': {\n name: 'Ethiopian',\n epochs: ['BEE', 'EE'],\n monthNames: ['Meskerem', 'Tikemet', 'Hidar', 'Tahesas', 'Tir', 'Yekatit',\n 'Megabit', 'Miazia', 'Genbot', 'Sene', 'Hamle', 'Nehase', 'Pagume'],\n monthNamesShort: ['Mes', 'Tik', 'Hid', 'Tah', 'Tir', 'Yek',\n 'Meg', 'Mia', 'Gen', 'Sen', 'Ham', 'Neh', 'Pag'],\n dayNames: ['Ehud', 'Segno', 'Maksegno', 'Irob', 'Hamus', 'Arb', 'Kidame'],\n dayNamesShort: ['Ehu', 'Seg', 'Mak', 'Iro', 'Ham', 'Arb', 'Kid'],\n dayNamesMin: ['Eh', 'Se', 'Ma', 'Ir', 'Ha', 'Ar', 'Ki'],\n digits: null,\n dateFormat: 'dd/mm/yyyy',\n firstDay: 0,\n isRTL: false\n }\n },\n\n /** Determine whether this date is in a leap year.\n @memberof EthiopianCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {boolean} true if this is a leap year, false if not.\n @throws Error if an invalid year or a different calendar used. */\n leapYear: function(year) {\n var date = this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n var year = date.year() + (date.year() < 0 ? 1 : 0); // No year zero\n return year % 4 === 3 || year % 4 === -1;\n },\n\n /** Retrieve the number of months in a year.\n @memberof EthiopianCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {number} The number of months.\n @throws Error if an invalid year or a different calendar used. */\n monthsInYear: function(year) {\n this._validate(year, this.minMonth, this.minDay,\n main.local.invalidYear || main.regionalOptions[''].invalidYear);\n return 13;\n },\n\n /** Determine the week of the year for a date.\n @memberof EthiopianCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {number} The week of the year.\n @throws Error if an invalid date or a different calendar used. */\n weekOfYear: function(year, month, day) {\n // Find Sunday of this week starting on Sunday\n var checkDate = this.newDate(year, month, day);\n checkDate.add(-checkDate.dayOfWeek(), 'd');\n return Math.floor((checkDate.dayOfYear() - 1) / 7) + 1;\n },\n\n /** Retrieve the number of days in a month.\n @memberof EthiopianCalendar\n @param year {CDate|number} The date to examine or the year of the month.\n @param [month] {number} The month.\n @return {number} The number of days in this month.\n @throws Error if an invalid month/year or a different calendar used. */\n daysInMonth: function(year, month) {\n var date = this._validate(year, month, this.minDay, main.local.invalidMonth);\n return this.daysPerMonth[date.month() - 1] +\n (date.month() === 13 && this.leapYear(date.year()) ? 1 : 0);\n },\n\n /** Determine whether this date is a week day.\n @memberof EthiopianCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {boolean} true if a week day, false if not.\n @throws Error if an invalid date or a different calendar used. */\n weekDay: function(year, month, day) {\n return (this.dayOfWeek(year, month, day) || 7) < 6;\n },\n\n /** Retrieve the Julian date equivalent for this date,\n i.e. days since January 1, 4713 BCE Greenwich noon.\n @memberof EthiopianCalendar\n @param year {CDate|number} The date to convert or the year to convert.\n @param [month] {number} The month to convert.\n @param [day] {number} The day to convert.\n @return {number} The equivalent Julian date.\n @throws Error if an invalid date or a different calendar used. */\n toJD: function(year, month, day) {\n var date = this._validate(year, month, day, main.local.invalidDate);\n year = date.year();\n if (year < 0) { year++; } // No year zero\n return date.day() + (date.month() - 1) * 30 +\n (year - 1) * 365 + Math.floor(year / 4) + this.jdEpoch - 1;\n },\n\n /** Create a new date from a Julian date.\n @memberof EthiopianCalendar\n @param jd {number} the Julian date to convert.\n @return {CDate} the equivalent date. */\n fromJD: function(jd) {\n var c = Math.floor(jd) + 0.5 - this.jdEpoch;\n var year = Math.floor((c - Math.floor((c + 366) / 1461)) / 365) + 1;\n if (year <= 0) { year--; } // No year zero\n c = Math.floor(jd) + 0.5 - this.newDate(year, 1, 1).toJD();\n var month = Math.floor(c / 30) + 1;\n var day = c - (month - 1) * 30 + 1;\n return this.newDate(year, month, day);\n }\n});\n\n// Ethiopian calendar implementation\nmain.calendars.ethiopian = EthiopianCalendar;\n\n\n},{\"../main\":346,\"object-assign\":247}],336:[function(_dereq_,module,exports){\n/*\n * World Calendars\n * https://github.com/alexcjohnson/world-calendars\n *\n * Batch-converted from kbwood/calendars\n * Many thanks to Keith Wood and all of the contributors to the original project!\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* http://keith-wood.name/calendars.html\n Hebrew calendar for jQuery v2.0.2.\n Written by Keith Wood (wood.keith{at}optusnet.com.au) August 2009.\n Available under the MIT (http://keith-wood.name/licence.html) license. \n Please attribute the author if you use it. */\n\nvar main = _dereq_('../main');\nvar assign = _dereq_('object-assign');\n\n\n/** Implementation of the Hebrew civil calendar.\n Based on code from http://www.fourmilab.ch/documents/calendar/.\n See also http://en.wikipedia.org/wiki/Hebrew_calendar.\n @class HebrewCalendar\n @param [language=''] {string} The language code (default English) for localisation. */\nfunction HebrewCalendar(language) {\n this.local = this.regionalOptions[language || ''] || this.regionalOptions[''];\n}\n\nHebrewCalendar.prototype = new main.baseCalendar;\n\nassign(HebrewCalendar.prototype, {\n /** The calendar name.\n @memberof HebrewCalendar */\n name: 'Hebrew',\n /** Julian date of start of Hebrew epoch: 7 October 3761 BCE.\n @memberof HebrewCalendar */\n jdEpoch: 347995.5,\n /** Days per month in a common year.\n @memberof HebrewCalendar */\n daysPerMonth: [30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 29],\n /** true if has a year zero, false if not.\n @memberof HebrewCalendar */\n hasYearZero: false,\n /** The minimum month number.\n @memberof HebrewCalendar */\n minMonth: 1,\n /** The first month in the year.\n @memberof HebrewCalendar */\n firstMonth: 7,\n /** The minimum day number.\n @memberof HebrewCalendar */\n minDay: 1,\n\n /** Localisations for the plugin.\n Entries are objects indexed by the language code ('' being the default US/English).\n Each object has the following attributes.\n @memberof HebrewCalendar\n @property name {string} The calendar name.\n @property epochs {string[]} The epoch names.\n @property monthNames {string[]} The long names of the months of the year.\n @property monthNamesShort {string[]} The short names of the months of the year.\n @property dayNames {string[]} The long names of the days of the week.\n @property dayNamesShort {string[]} The short names of the days of the week.\n @property dayNamesMin {string[]} The minimal names of the days of the week.\n @property dateFormat {string} The date format for this calendar.\n See the options on formatDate for details.\n @property firstDay {number} The number of the first day of the week, starting at 0.\n @property isRTL {number} true if this localisation reads right-to-left. */\n regionalOptions: { // Localisations\n '': {\n name: 'Hebrew',\n epochs: ['BAM', 'AM'],\n monthNames: ['Nisan', 'Iyar', 'Sivan', 'Tammuz', 'Av', 'Elul',\n 'Tishrei', 'Cheshvan', 'Kislev', 'Tevet', 'Shevat', 'Adar', 'Adar II'],\n monthNamesShort: ['Nis', 'Iya', 'Siv', 'Tam', 'Av', 'Elu', 'Tis', 'Che', 'Kis', 'Tev', 'She', 'Ada', 'Ad2'],\n dayNames: ['Yom Rishon', 'Yom Sheni', 'Yom Shlishi', 'Yom Revi\\'i', 'Yom Chamishi', 'Yom Shishi', 'Yom Shabbat'],\n dayNamesShort: ['Ris', 'She', 'Shl', 'Rev', 'Cha', 'Shi', 'Sha'],\n dayNamesMin: ['Ri','She','Shl','Re','Ch','Shi','Sha'],\n digits: null,\n dateFormat: 'dd/mm/yyyy',\n firstDay: 0,\n isRTL: false\n }\n },\n\n /** Determine whether this date is in a leap year.\n @memberof HebrewCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {boolean} true if this is a leap year, false if not.\n @throws Error if an invalid year or a different calendar used. */\n leapYear: function(year) {\n var date = this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n return this._leapYear(date.year());\n },\n\n /** Determine whether this date is in a leap year.\n @memberof HebrewCalendar\n @private\n @param year {number} The year to examine.\n @return {boolean} true if this is a leap year, false if not.\n @throws Error if an invalid year or a different calendar used. */\n _leapYear: function(year) {\n year = (year < 0 ? year + 1 : year);\n return mod(year * 7 + 1, 19) < 7;\n },\n\n /** Retrieve the number of months in a year.\n @memberof HebrewCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {number} The number of months.\n @throws Error if an invalid year or a different calendar used. */\n monthsInYear: function(year) {\n this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n return this._leapYear(year.year ? year.year() : year) ? 13 : 12;\n },\n\n /** Determine the week of the year for a date.\n @memberof HebrewCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {number} The week of the year.\n @throws Error if an invalid date or a different calendar used. */\n weekOfYear: function(year, month, day) {\n // Find Sunday of this week starting on Sunday\n var checkDate = this.newDate(year, month, day);\n checkDate.add(-checkDate.dayOfWeek(), 'd');\n return Math.floor((checkDate.dayOfYear() - 1) / 7) + 1;\n },\n\n /** Retrieve the number of days in a year.\n @memberof HebrewCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {number} The number of days.\n @throws Error if an invalid year or a different calendar used. */\n daysInYear: function(year) {\n var date = this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n year = date.year();\n return this.toJD((year === -1 ? +1 : year + 1), 7, 1) - this.toJD(year, 7, 1);\n },\n\n /** Retrieve the number of days in a month.\n @memberof HebrewCalendar\n @param year {CDate|number} The date to examine or the year of the month.\n @param [month] {number} The month.\n @return {number} The number of days in this month.\n @throws Error if an invalid month/year or a different calendar used. */\n daysInMonth: function(year, month) {\n if (year.year) {\n month = year.month();\n year = year.year();\n }\n this._validate(year, month, this.minDay, main.local.invalidMonth);\n return (month === 12 && this.leapYear(year) ? 30 : // Adar I\n (month === 8 && mod(this.daysInYear(year), 10) === 5 ? 30 : // Cheshvan in shlemah year\n (month === 9 && mod(this.daysInYear(year), 10) === 3 ? 29 : // Kislev in chaserah year\n this.daysPerMonth[month - 1])));\n },\n\n /** Determine whether this date is a week day.\n @memberof HebrewCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {boolean} true if a week day, false if not.\n @throws Error if an invalid date or a different calendar used. */\n weekDay: function(year, month, day) {\n return this.dayOfWeek(year, month, day) !== 6;\n },\n\n /** Retrieve additional information about a date - year type.\n @memberof HebrewCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {object} Additional information - contents depends on calendar.\n @throws Error if an invalid date or a different calendar used. */\n extraInfo: function(year, month, day) {\n var date = this._validate(year, month, day, main.local.invalidDate);\n return {yearType: (this.leapYear(date) ? 'embolismic' : 'common') + ' ' +\n ['deficient', 'regular', 'complete'][this.daysInYear(date) % 10 - 3]};\n },\n\n /** Retrieve the Julian date equivalent for this date,\n i.e. days since January 1, 4713 BCE Greenwich noon.\n @memberof HebrewCalendar\n @param year {CDate)|number} The date to convert or the year to convert.\n @param [month] {number} The month to convert.\n @param [day] {number} The day to convert.\n @return {number} The equivalent Julian date.\n @throws Error if an invalid date or a different calendar used. */\n toJD: function(year, month, day) {\n var date = this._validate(year, month, day, main.local.invalidDate);\n year = date.year();\n month = date.month();\n day = date.day();\n var adjYear = (year <= 0 ? year + 1 : year);\n var jd = this.jdEpoch + this._delay1(adjYear) +\n this._delay2(adjYear) + day + 1;\n if (month < 7) {\n for (var m = 7; m <= this.monthsInYear(year); m++) {\n jd += this.daysInMonth(year, m);\n }\n for (var m = 1; m < month; m++) {\n jd += this.daysInMonth(year, m);\n }\n }\n else {\n for (var m = 7; m < month; m++) {\n jd += this.daysInMonth(year, m);\n }\n }\n return jd;\n },\n\n /** Test for delay of start of new year and to avoid\n Sunday, Wednesday, or Friday as start of the new year.\n @memberof HebrewCalendar\n @private\n @param year {number} The year to examine.\n @return {number} The days to offset by. */\n _delay1: function(year) {\n var months = Math.floor((235 * year - 234) / 19);\n var parts = 12084 + 13753 * months;\n var day = months * 29 + Math.floor(parts / 25920);\n if (mod(3 * (day + 1), 7) < 3) {\n day++;\n }\n return day;\n },\n\n /** Check for delay in start of new year due to length of adjacent years.\n @memberof HebrewCalendar\n @private\n @param year {number} The year to examine.\n @return {number} The days to offset by. */\n _delay2: function(year) {\n var last = this._delay1(year - 1);\n var present = this._delay1(year);\n var next = this._delay1(year + 1);\n return ((next - present) === 356 ? 2 : ((present - last) === 382 ? 1 : 0));\n },\n\n /** Create a new date from a Julian date.\n @memberof HebrewCalendar\n @param jd {number} The Julian date to convert.\n @return {CDate} The equivalent date. */\n fromJD: function(jd) {\n jd = Math.floor(jd) + 0.5;\n var year = Math.floor(((jd - this.jdEpoch) * 98496.0) / 35975351.0) - 1;\n while (jd >= this.toJD((year === -1 ? +1 : year + 1), 7, 1)) {\n year++;\n }\n var month = (jd < this.toJD(year, 1, 1)) ? 7 : 1;\n while (jd > this.toJD(year, month, this.daysInMonth(year, month))) {\n month++;\n }\n var day = jd - this.toJD(year, month, 1) + 1;\n return this.newDate(year, month, day);\n }\n});\n\n// Modulus function which works for non-integers.\nfunction mod(a, b) {\n return a - (b * Math.floor(a / b));\n}\n\n// Hebrew calendar implementation\nmain.calendars.hebrew = HebrewCalendar;\n\n\n},{\"../main\":346,\"object-assign\":247}],337:[function(_dereq_,module,exports){\n/*\n * World Calendars\n * https://github.com/alexcjohnson/world-calendars\n *\n * Batch-converted from kbwood/calendars\n * Many thanks to Keith Wood and all of the contributors to the original project!\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* http://keith-wood.name/calendars.html\n Islamic calendar for jQuery v2.0.2.\n Written by Keith Wood (wood.keith{at}optusnet.com.au) August 2009.\n Available under the MIT (http://keith-wood.name/licence.html) license. \n Please attribute the author if you use it. */\n\nvar main = _dereq_('../main');\nvar assign = _dereq_('object-assign');\n\n\n/** Implementation of the Islamic or '16 civil' calendar.\n Based on code from http://www.iranchamber.com/calendar/converter/iranian_calendar_converter.php.\n See also http://en.wikipedia.org/wiki/Islamic_calendar.\n @class IslamicCalendar\n @param [language=''] {string} The language code (default English) for localisation. */\nfunction IslamicCalendar(language) {\n this.local = this.regionalOptions[language || ''] || this.regionalOptions[''];\n}\n\nIslamicCalendar.prototype = new main.baseCalendar;\n\nassign(IslamicCalendar.prototype, {\n /** The calendar name.\n @memberof IslamicCalendar */\n name: 'Islamic',\n /** Julian date of start of Islamic epoch: 16 July 622 CE.\n @memberof IslamicCalendar */\n jdEpoch: 1948439.5,\n /** Days per month in a common year.\n @memberof IslamicCalendar */\n daysPerMonth: [30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29],\n /** true if has a year zero, false if not.\n @memberof IslamicCalendar */\n hasYearZero: false,\n /** The minimum month number.\n @memberof IslamicCalendar */\n minMonth: 1,\n /** The first month in the year.\n @memberof IslamicCalendar */\n firstMonth: 1,\n /** The minimum day number.\n @memberof IslamicCalendar */\n minDay: 1,\n\n /** Localisations for the plugin.\n Entries are objects indexed by the language code ('' being the default US/English).\n Each object has the following attributes.\n @memberof IslamicCalendar\n @property name {string} The calendar name.\n @property epochs {string[]} The epoch names.\n @property monthNames {string[]} The long names of the months of the year.\n @property monthNamesShort {string[]} The short names of the months of the year.\n @property dayNames {string[]} The long names of the days of the week.\n @property dayNamesShort {string[]} The short names of the days of the week.\n @property dayNamesMin {string[]} The minimal names of the days of the week.\n @property dateFormat {string} The date format for this calendar.\n See the options on formatDate for details.\n @property firstDay {number} The number of the first day of the week, starting at 0.\n @property isRTL {number} true if this localisation reads right-to-left. */\n regionalOptions: { // Localisations\n '': {\n name: 'Islamic',\n epochs: ['BH', 'AH'],\n monthNames: ['Muharram', 'Safar', 'Rabi\\' al-awwal', 'Rabi\\' al-thani', 'Jumada al-awwal', 'Jumada al-thani',\n 'Rajab', 'Sha\\'aban', 'Ramadan', 'Shawwal', 'Dhu al-Qi\\'dah', 'Dhu al-Hijjah'],\n monthNamesShort: ['Muh', 'Saf', 'Rab1', 'Rab2', 'Jum1', 'Jum2', 'Raj', 'Sha\\'', 'Ram', 'Shaw', 'DhuQ', 'DhuH'],\n dayNames: ['Yawm al-ahad', 'Yawm al-ithnayn', 'Yawm ath-thulaathaa\\'',\n 'Yawm al-arbi\\'aa\\'', 'Yawm al-khamīs', 'Yawm al-jum\\'a', 'Yawm as-sabt'],\n dayNamesShort: ['Aha', 'Ith', 'Thu', 'Arb', 'Kha', 'Jum', 'Sab'],\n dayNamesMin: ['Ah','It','Th','Ar','Kh','Ju','Sa'],\n digits: null,\n dateFormat: 'yyyy/mm/dd',\n firstDay: 6,\n isRTL: false\n }\n },\n\n /** Determine whether this date is in a leap year.\n @memberof IslamicCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {boolean} true if this is a leap year, false if not.\n @throws Error if an invalid year or a different calendar used. */\n leapYear: function(year) {\n var date = this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n return (date.year() * 11 + 14) % 30 < 11;\n },\n\n /** Determine the week of the year for a date.\n @memberof IslamicCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {number} The week of the year.\n @throws Error if an invalid date or a different calendar used. */\n weekOfYear: function(year, month, day) {\n // Find Sunday of this week starting on Sunday\n var checkDate = this.newDate(year, month, day);\n checkDate.add(-checkDate.dayOfWeek(), 'd');\n return Math.floor((checkDate.dayOfYear() - 1) / 7) + 1;\n },\n\n /** Retrieve the number of days in a year.\n @memberof IslamicCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {number} The number of days.\n @throws Error if an invalid year or a different calendar used. */\n daysInYear: function(year) {\n return (this.leapYear(year) ? 355 : 354);\n },\n\n /** Retrieve the number of days in a month.\n @memberof IslamicCalendar\n @param year {CDate|number} The date to examine or the year of the month.\n @param [month] {number} The month.\n @return {number} The number of days in this month.\n @throws Error if an invalid month/year or a different calendar used. */\n daysInMonth: function(year, month) {\n var date = this._validate(year, month, this.minDay, main.local.invalidMonth);\n return this.daysPerMonth[date.month() - 1] +\n (date.month() === 12 && this.leapYear(date.year()) ? 1 : 0);\n },\n\n /** Determine whether this date is a week day.\n @memberof IslamicCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {boolean} true if a week day, false if not.\n @throws Error if an invalid date or a different calendar used. */\n weekDay: function(year, month, day) {\n return this.dayOfWeek(year, month, day) !== 5;\n },\n\n /** Retrieve the Julian date equivalent for this date,\n i.e. days since January 1, 4713 BCE Greenwich noon.\n @memberof IslamicCalendar\n @param year {CDate|number} The date to convert or the year to convert.\n @param [month] {number} The month to convert.\n @param [day] {number} The day to convert.\n @return {number} The equivalent Julian date.\n @throws Error if an invalid date or a different calendar used. */\n toJD: function(year, month, day) {\n var date = this._validate(year, month, day, main.local.invalidDate);\n year = date.year();\n month = date.month();\n day = date.day();\n year = (year <= 0 ? year + 1 : year);\n return day + Math.ceil(29.5 * (month - 1)) + (year - 1) * 354 +\n Math.floor((3 + (11 * year)) / 30) + this.jdEpoch - 1;\n },\n\n /** Create a new date from a Julian date.\n @memberof IslamicCalendar\n @param jd {number} The Julian date to convert.\n @return {CDate} The equivalent date. */\n fromJD: function(jd) {\n jd = Math.floor(jd) + 0.5;\n var year = Math.floor((30 * (jd - this.jdEpoch) + 10646) / 10631);\n year = (year <= 0 ? year - 1 : year);\n var month = Math.min(12, Math.ceil((jd - 29 - this.toJD(year, 1, 1)) / 29.5) + 1);\n var day = jd - this.toJD(year, month, 1) + 1;\n return this.newDate(year, month, day);\n }\n});\n\n// Islamic (16 civil) calendar implementation\nmain.calendars.islamic = IslamicCalendar;\n\n\n},{\"../main\":346,\"object-assign\":247}],338:[function(_dereq_,module,exports){\n/*\n * World Calendars\n * https://github.com/alexcjohnson/world-calendars\n *\n * Batch-converted from kbwood/calendars\n * Many thanks to Keith Wood and all of the contributors to the original project!\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* http://keith-wood.name/calendars.html\n Julian calendar for jQuery v2.0.2.\n Written by Keith Wood (wood.keith{at}optusnet.com.au) August 2009.\n Available under the MIT (http://keith-wood.name/licence.html) license. \n Please attribute the author if you use it. */\n\nvar main = _dereq_('../main');\nvar assign = _dereq_('object-assign');\n\n\n/** Implementation of the Julian calendar.\n Based on code from http://www.fourmilab.ch/documents/calendar/.\n See also http://en.wikipedia.org/wiki/Julian_calendar.\n @class JulianCalendar\n @augments BaseCalendar\n @param [language=''] {string} The language code (default English) for localisation. */\nfunction JulianCalendar(language) {\n this.local = this.regionalOptions[language || ''] || this.regionalOptions[''];\n}\n\nJulianCalendar.prototype = new main.baseCalendar;\n\nassign(JulianCalendar.prototype, {\n /** The calendar name.\n @memberof JulianCalendar */\n name: 'Julian',\n /** Julian date of start of Julian epoch: 1 January 0001 AD = 30 December 0001 BCE.\n @memberof JulianCalendar */\n jdEpoch: 1721423.5,\n /** Days per month in a common year.\n @memberof JulianCalendar */\n daysPerMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],\n /** true if has a year zero, false if not.\n @memberof JulianCalendar */\n hasYearZero: false,\n /** The minimum month number.\n @memberof JulianCalendar */\n minMonth: 1,\n /** The first month in the year.\n @memberof JulianCalendar */\n firstMonth: 1,\n /** The minimum day number.\n @memberof JulianCalendar */\n minDay: 1,\n\n /** Localisations for the plugin.\n Entries are objects indexed by the language code ('' being the default US/English).\n Each object has the following attributes.\n @memberof JulianCalendar\n @property name {string} The calendar name.\n @property epochs {string[]} The epoch names.\n @property monthNames {string[]} The long names of the months of the year.\n @property monthNamesShort {string[]} The short names of the months of the year.\n @property dayNames {string[]} The long names of the days of the week.\n @property dayNamesShort {string[]} The short names of the days of the week.\n @property dayNamesMin {string[]} The minimal names of the days of the week.\n @property dateFormat {string} The date format for this calendar.\n See the options on formatDate for details.\n @property firstDay {number} The number of the first day of the week, starting at 0.\n @property isRTL {number} true if this localisation reads right-to-left. */\n regionalOptions: { // Localisations\n '': {\n name: 'Julian',\n epochs: ['BC', 'AD'],\n monthNames: ['January', 'February', 'March', 'April', 'May', 'June',\n 'July', 'August', 'September', 'October', 'November', 'December'],\n monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\n dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n dayNamesMin: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],\n digits: null,\n dateFormat: 'mm/dd/yyyy',\n firstDay: 0,\n isRTL: false\n }\n },\n\n /** Determine whether this date is in a leap year.\n @memberof JulianCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {boolean} true if this is a leap year, false if not.\n @throws Error if an invalid year or a different calendar used. */\n leapYear: function(year) {\n var date = this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n var year = (date.year() < 0 ? date.year() + 1 : date.year()); // No year zero\n return (year % 4) === 0;\n },\n\n /** Determine the week of the year for a date - ISO 8601.\n @memberof JulianCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {number} The week of the year.\n @throws Error if an invalid date or a different calendar used. */\n weekOfYear: function(year, month, day) {\n // Find Thursday of this week starting on Monday\n var checkDate = this.newDate(year, month, day);\n checkDate.add(4 - (checkDate.dayOfWeek() || 7), 'd');\n return Math.floor((checkDate.dayOfYear() - 1) / 7) + 1;\n },\n\n /** Retrieve the number of days in a month.\n @memberof JulianCalendar\n @param year {CDate|number} The date to examine or the year of the month.\n @param [month] {number} The month.\n @return {number} The number of days in this month.\n @throws Error if an invalid month/year or a different calendar used. */\n daysInMonth: function(year, month) {\n var date = this._validate(year, month, this.minDay, main.local.invalidMonth);\n return this.daysPerMonth[date.month() - 1] +\n (date.month() === 2 && this.leapYear(date.year()) ? 1 : 0);\n },\n\n /** Determine whether this date is a week day.\n @memberof JulianCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {boolean} True if a week day, false if not.\n @throws Error if an invalid date or a different calendar used. */\n weekDay: function(year, month, day) {\n return (this.dayOfWeek(year, month, day) || 7) < 6;\n },\n\n /** Retrieve the Julian date equivalent for this date,\n i.e. days since January 1, 4713 BCE Greenwich noon.\n @memberof JulianCalendar\n @param year {CDate|number} The date to convert or the year to convert.\n @param [month] {number} The month to convert.\n @param [day] {number} The day to convert.\n @return {number} The equivalent Julian date.\n @throws Error if an invalid date or a different calendar used. */\n toJD: function(year, month, day) {\n var date = this._validate(year, month, day, main.local.invalidDate);\n year = date.year();\n month = date.month();\n day = date.day();\n if (year < 0) { year++; } // No year zero\n // Jean Meeus algorithm, \"Astronomical Algorithms\", 1991\n if (month <= 2) {\n year--;\n month += 12;\n }\n return Math.floor(365.25 * (year + 4716)) +\n Math.floor(30.6001 * (month + 1)) + day - 1524.5;\n },\n\n /** Create a new date from a Julian date.\n @memberof JulianCalendar\n @param jd {number} The Julian date to convert.\n @return {CDate} The equivalent date. */\n fromJD: function(jd) {\n // Jean Meeus algorithm, \"Astronomical Algorithms\", 1991\n var a = Math.floor(jd + 0.5);\n var b = a + 1524;\n var c = Math.floor((b - 122.1) / 365.25);\n var d = Math.floor(365.25 * c);\n var e = Math.floor((b - d) / 30.6001);\n var month = e - Math.floor(e < 14 ? 1 : 13);\n var year = c - Math.floor(month > 2 ? 4716 : 4715);\n var day = b - d - Math.floor(30.6001 * e);\n if (year <= 0) { year--; } // No year zero\n return this.newDate(year, month, day);\n }\n});\n\n// Julian calendar implementation\nmain.calendars.julian = JulianCalendar;\n\n\n},{\"../main\":346,\"object-assign\":247}],339:[function(_dereq_,module,exports){\n/*\n * World Calendars\n * https://github.com/alexcjohnson/world-calendars\n *\n * Batch-converted from kbwood/calendars\n * Many thanks to Keith Wood and all of the contributors to the original project!\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* http://keith-wood.name/calendars.html\n Mayan calendar for jQuery v2.0.2.\n Written by Keith Wood (wood.keith{at}optusnet.com.au) August 2009.\n Available under the MIT (http://keith-wood.name/licence.html) license. \n Please attribute the author if you use it. */\n\nvar main = _dereq_('../main');\nvar assign = _dereq_('object-assign');\n\n\n/** Implementation of the Mayan Long Count calendar.\n See also http://en.wikipedia.org/wiki/Mayan_calendar.\n @class MayanCalendar\n @param [language=''] {string} The language code (default English) for localisation. */\nfunction MayanCalendar(language) {\n this.local = this.regionalOptions[language || ''] || this.regionalOptions[''];\n}\n\nMayanCalendar.prototype = new main.baseCalendar;\n\nassign(MayanCalendar.prototype, {\n /** The calendar name.\n @memberof MayanCalendar */\n name: 'Mayan',\n /** Julian date of start of Mayan epoch: 11 August 3114 BCE.\n @memberof MayanCalendar */\n jdEpoch: 584282.5,\n /** true if has a year zero, false if not.\n @memberof MayanCalendar */\n hasYearZero: true,\n /** The minimum month number.\n @memberof MayanCalendar */\n minMonth: 0,\n /** The first month in the year.\n @memberof MayanCalendar */\n firstMonth: 0,\n /** The minimum day number.\n @memberof MayanCalendar */\n minDay: 0,\n\n /** Localisations for the plugin.\n Entries are objects indexed by the language code ('' being the default US/English).\n Each object has the following attributes.\n @memberof MayanCalendar\n @property name {string} The calendar name.\n @property epochs {string[]} The epoch names.\n @property monthNames {string[]} The long names of the months of the year.\n @property monthNamesShort {string[]} The short names of the months of the year.\n @property dayNames {string[]} The long names of the days of the week.\n @property dayNamesShort {string[]} The short names of the days of the week.\n @property dayNamesMin {string[]} The minimal names of the days of the week.\n @property dateFormat {string} The date format for this calendar.\n See the options on formatDate for details.\n @property firstDay {number} The number of the first day of the week, starting at 0.\n @property isRTL {number} true if this localisation reads right-to-left.\n @property haabMonths {string[]} The names of the Haab months.\n @property tzolkinMonths {string[]} The names of the Tzolkin months. */\n regionalOptions: { // Localisations\n '': {\n name: 'Mayan',\n epochs: ['', ''],\n monthNames: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9',\n '10', '11', '12', '13', '14', '15', '16', '17'],\n monthNamesShort: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9',\n '10', '11', '12', '13', '14', '15', '16', '17'],\n dayNames: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9',\n '10', '11', '12', '13', '14', '15', '16', '17', '18', '19'],\n dayNamesShort: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9',\n '10', '11', '12', '13', '14', '15', '16', '17', '18', '19'],\n dayNamesMin: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9',\n '10', '11', '12', '13', '14', '15', '16', '17', '18', '19'],\n digits: null,\n dateFormat: 'YYYY.m.d',\n firstDay: 0,\n isRTL: false,\n haabMonths: ['Pop', 'Uo', 'Zip', 'Zotz', 'Tzec', 'Xul', 'Yaxkin', 'Mol', 'Chen', 'Yax',\n 'Zac', 'Ceh', 'Mac', 'Kankin', 'Muan', 'Pax', 'Kayab', 'Cumku', 'Uayeb'],\n tzolkinMonths: ['Imix', 'Ik', 'Akbal', 'Kan', 'Chicchan', 'Cimi', 'Manik', 'Lamat', 'Muluc', 'Oc',\n 'Chuen', 'Eb', 'Ben', 'Ix', 'Men', 'Cib', 'Caban', 'Etznab', 'Cauac', 'Ahau']\n }\n },\n\n /** Determine whether this date is in a leap year.\n @memberof MayanCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {boolean} true if this is a leap year, false if not.\n @throws Error if an invalid year or a different calendar used. */\n leapYear: function(year) {\n this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n return false;\n },\n\n /** Format the year, if not a simple sequential number.\n @memberof MayanCalendar\n @param year {CDate|number} The date to format or the year to format.\n @return {string} The formatted year.\n @throws Error if an invalid year or a different calendar used. */\n formatYear: function(year) {\n var date = this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n year = date.year();\n var baktun = Math.floor(year / 400);\n year = year % 400;\n year += (year < 0 ? 400 : 0);\n var katun = Math.floor(year / 20);\n return baktun + '.' + katun + '.' + (year % 20);\n },\n\n /** Convert from the formatted year back to a single number.\n @memberof MayanCalendar\n @param years {string} The year as n.n.n.\n @return {number} The sequential year.\n @throws Error if an invalid value is supplied. */\n forYear: function(years) {\n years = years.split('.');\n if (years.length < 3) {\n throw 'Invalid Mayan year';\n }\n var year = 0;\n for (var i = 0; i < years.length; i++) {\n var y = parseInt(years[i], 10);\n if (Math.abs(y) > 19 || (i > 0 && y < 0)) {\n throw 'Invalid Mayan year';\n }\n year = year * 20 + y;\n }\n return year;\n },\n\n /** Retrieve the number of months in a year.\n @memberof MayanCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {number} The number of months.\n @throws Error if an invalid year or a different calendar used. */\n monthsInYear: function(year) {\n this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n return 18;\n },\n\n /** Determine the week of the year for a date.\n @memberof MayanCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {number} The week of the year.\n @throws Error if an invalid date or a different calendar used. */\n weekOfYear: function(year, month, day) {\n this._validate(year, month, day, main.local.invalidDate);\n return 0;\n },\n\n /** Retrieve the number of days in a year.\n @memberof MayanCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {number} The number of days.\n @throws Error if an invalid year or a different calendar used. */\n daysInYear: function(year) {\n this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n return 360;\n },\n\n /** Retrieve the number of days in a month.\n @memberof MayanCalendar\n @param year {CDate|number} The date to examine or the year of the month.\n @param [month] {number} The month.\n @return {number} The number of days in this month.\n @throws Error if an invalid month/year or a different calendar used. */\n daysInMonth: function(year, month) {\n this._validate(year, month, this.minDay, main.local.invalidMonth);\n return 20;\n },\n\n /** Retrieve the number of days in a week.\n @memberof MayanCalendar\n @return {number} The number of days. */\n daysInWeek: function() {\n return 5; // Just for formatting\n },\n\n /** Retrieve the day of the week for a date.\n @memberof MayanCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {number} The day of the week: 0 to number of days - 1.\n @throws Error if an invalid date or a different calendar used. */\n dayOfWeek: function(year, month, day) {\n var date = this._validate(year, month, day, main.local.invalidDate);\n return date.day();\n },\n\n /** Determine whether this date is a week day.\n @memberof MayanCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {boolean} true if a week day, false if not.\n @throws Error if an invalid date or a different calendar used. */\n weekDay: function(year, month, day) {\n this._validate(year, month, day, main.local.invalidDate);\n return true;\n },\n\n /** Retrieve additional information about a date - Haab and Tzolkin equivalents.\n @memberof MayanCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {object} Additional information - contents depends on calendar.\n @throws Error if an invalid date or a different calendar used. */\n extraInfo: function(year, month, day) {\n var date = this._validate(year, month, day, main.local.invalidDate);\n var jd = date.toJD();\n var haab = this._toHaab(jd);\n var tzolkin = this._toTzolkin(jd);\n return {haabMonthName: this.local.haabMonths[haab[0] - 1],\n haabMonth: haab[0], haabDay: haab[1],\n tzolkinDayName: this.local.tzolkinMonths[tzolkin[0] - 1],\n tzolkinDay: tzolkin[0], tzolkinTrecena: tzolkin[1]};\n },\n\n /** Retrieve Haab date from a Julian date.\n @memberof MayanCalendar\n @private\n @param jd {number} The Julian date.\n @return {number[]} Corresponding Haab month and day. */\n _toHaab: function(jd) {\n jd -= this.jdEpoch;\n var day = mod(jd + 8 + ((18 - 1) * 20), 365);\n return [Math.floor(day / 20) + 1, mod(day, 20)];\n },\n\n /** Retrieve Tzolkin date from a Julian date.\n @memberof MayanCalendar\n @private\n @param jd {number} The Julian date.\n @return {number[]} Corresponding Tzolkin day and trecena. */\n _toTzolkin: function(jd) {\n jd -= this.jdEpoch;\n return [amod(jd + 20, 20), amod(jd + 4, 13)];\n },\n\n /** Retrieve the Julian date equivalent for this date,\n i.e. days since January 1, 4713 BCE Greenwich noon.\n @memberof MayanCalendar\n @param year {CDate|number} The date to convert or the year to convert.\n @param [month] {number} The month to convert.\n @param [day] {number} The day to convert.\n @return {number} The equivalent Julian date.\n @throws Error if an invalid date or a different calendar used. */\n toJD: function(year, month, day) {\n var date = this._validate(year, month, day, main.local.invalidDate);\n return date.day() + (date.month() * 20) + (date.year() * 360) + this.jdEpoch;\n },\n\n /** Create a new date from a Julian date.\n @memberof MayanCalendar\n @param jd {number} The Julian date to convert.\n @return {CDate} The equivalent date. */\n fromJD: function(jd) {\n jd = Math.floor(jd) + 0.5 - this.jdEpoch;\n var year = Math.floor(jd / 360);\n jd = jd % 360;\n jd += (jd < 0 ? 360 : 0);\n var month = Math.floor(jd / 20);\n var day = jd % 20;\n return this.newDate(year, month, day);\n }\n});\n\n// Modulus function which works for non-integers.\nfunction mod(a, b) {\n return a - (b * Math.floor(a / b));\n}\n\n// Modulus function which returns numerator if modulus is zero.\nfunction amod(a, b) {\n return mod(a - 1, b) + 1;\n}\n\n// Mayan calendar implementation\nmain.calendars.mayan = MayanCalendar;\n\n\n},{\"../main\":346,\"object-assign\":247}],340:[function(_dereq_,module,exports){\n/*\n * World Calendars\n * https://github.com/alexcjohnson/world-calendars\n *\n * Batch-converted from kbwood/calendars\n * Many thanks to Keith Wood and all of the contributors to the original project!\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* http://keith-wood.name/calendars.html\n Nanakshahi calendar for jQuery v2.0.2.\n Written by Keith Wood (wood.keith{at}optusnet.com.au) January 2016.\n Available under the MIT (http://keith-wood.name/licence.html) license. \n Please attribute the author if you use it. */\n\nvar main = _dereq_('../main');\nvar assign = _dereq_('object-assign');\n\n\n/** Implementation of the Nanakshahi calendar.\n See also https://en.wikipedia.org/wiki/Nanakshahi_calendar.\n @class NanakshahiCalendar\n @param [language=''] {string} The language code (default English) for localisation. */\nfunction NanakshahiCalendar(language) {\n this.local = this.regionalOptions[language || ''] || this.regionalOptions[''];\n}\n\nNanakshahiCalendar.prototype = new main.baseCalendar;\n\nvar gregorian = main.instance('gregorian');\n\nassign(NanakshahiCalendar.prototype, {\n /** The calendar name.\n @memberof NanakshahiCalendar */\n name: 'Nanakshahi',\n /** Julian date of start of Nanakshahi epoch: 14 March 1469 CE.\n @memberof NanakshahiCalendar */\n jdEpoch: 2257673.5,\n /** Days per month in a common year.\n @memberof NanakshahiCalendar */\n daysPerMonth: [31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 30, 30],\n /** true if has a year zero, false if not.\n @memberof NanakshahiCalendar */\n hasYearZero: false,\n /** The minimum month number.\n @memberof NanakshahiCalendar */\n minMonth: 1,\n /** The first month in the year.\n @memberof NanakshahiCalendar */\n firstMonth: 1,\n /** The minimum day number.\n @memberof NanakshahiCalendar */\n minDay: 1,\n\n /** Localisations for the plugin.\n Entries are objects indexed by the language code ('' being the default US/English).\n Each object has the following attributes.\n @memberof NanakshahiCalendar\n @property name {string} The calendar name.\n @property epochs {string[]} The epoch names.\n @property monthNames {string[]} The long names of the months of the year.\n @property monthNamesShort {string[]} The short names of the months of the year.\n @property dayNames {string[]} The long names of the days of the week.\n @property dayNamesShort {string[]} The short names of the days of the week.\n @property dayNamesMin {string[]} The minimal names of the days of the week.\n @property dateFormat {string} The date format for this calendar.\n See the options on formatDate for details.\n @property firstDay {number} The number of the first day of the week, starting at 0.\n @property isRTL {number} true if this localisation reads right-to-left. */\n regionalOptions: { // Localisations\n '': {\n name: 'Nanakshahi',\n epochs: ['BN', 'AN'],\n monthNames: ['Chet', 'Vaisakh', 'Jeth', 'Harh', 'Sawan', 'Bhadon',\n 'Assu', 'Katak', 'Maghar', 'Poh', 'Magh', 'Phagun'],\n monthNamesShort: ['Che', 'Vai', 'Jet', 'Har', 'Saw', 'Bha', 'Ass', 'Kat', 'Mgr', 'Poh', 'Mgh', 'Pha'],\n dayNames: ['Somvaar', 'Mangalvar', 'Budhvaar', 'Veervaar', 'Shukarvaar', 'Sanicharvaar', 'Etvaar'],\n dayNamesShort: ['Som', 'Mangal', 'Budh', 'Veer', 'Shukar', 'Sanichar', 'Et'],\n dayNamesMin: ['So', 'Ma', 'Bu', 'Ve', 'Sh', 'Sa', 'Et'],\n digits: null,\n dateFormat: 'dd-mm-yyyy',\n firstDay: 0,\n isRTL: false\n }\n },\n\n /** Determine whether this date is in a leap year.\n @memberof NanakshahiCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {boolean} true if this is a leap year, false if not.\n @throws Error if an invalid year or a different calendar used. */\n leapYear: function(year) {\n var date = this._validate(year, this.minMonth, this.minDay,\n main.local.invalidYear || main.regionalOptions[''].invalidYear);\n return gregorian.leapYear(date.year() + (date.year() < 1 ? 1 : 0) + 1469);\n },\n\n /** Determine the week of the year for a date.\n @memberof NanakshahiCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {number} The week of the year.\n @throws Error if an invalid date or a different calendar used. */\n weekOfYear: function(year, month, day) {\n // Find Monday of this week starting on Monday\n var checkDate = this.newDate(year, month, day);\n checkDate.add(1 - (checkDate.dayOfWeek() || 7), 'd');\n return Math.floor((checkDate.dayOfYear() - 1) / 7) + 1;\n },\n\n /** Retrieve the number of days in a month.\n @memberof NanakshahiCalendar\n @param year {CDate|number} The date to examine or the year of the month.\n @param [month] {number} The month.\n @return {number} The number of days in this month.\n @throws Error if an invalid month/year or a different calendar used. */\n daysInMonth: function(year, month) {\n var date = this._validate(year, month, this.minDay, main.local.invalidMonth);\n return this.daysPerMonth[date.month() - 1] +\n (date.month() === 12 && this.leapYear(date.year()) ? 1 : 0);\n },\n\n /** Determine whether this date is a week day.\n @memberof NanakshahiCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {boolean} true if a week day, false if not.\n @throws Error if an invalid date or a different calendar used. */\n weekDay: function(year, month, day) {\n return (this.dayOfWeek(year, month, day) || 7) < 6;\n },\n\n /** Retrieve the Julian date equivalent for this date,\n i.e. days since January 1, 4713 BCE Greenwich noon.\n @memberof NanakshahiCalendar\n @param year {CDate|number} The date to convert or the year to convert.\n @param [month] {number} The month to convert.\n @param [day] {number} The day to convert.\n @return {number} The equivalent Julian date.\n @throws Error if an invalid date or a different calendar used. */\n toJD: function(year, month, day) {\n var date = this._validate(year, month, day, main.local.invalidMonth);\n var year = date.year();\n if (year < 0) { year++; } // No year zero\n var doy = date.day();\n for (var m = 1; m < date.month(); m++) {\n doy += this.daysPerMonth[m - 1];\n }\n return doy + gregorian.toJD(year + 1468, 3, 13);\n },\n\n /** Create a new date from a Julian date.\n @memberof NanakshahiCalendar\n @param jd {number} The Julian date to convert.\n @return {CDate} The equivalent date. */\n fromJD: function(jd) {\n jd = Math.floor(jd + 0.5);\n var year = Math.floor((jd - (this.jdEpoch - 1)) / 366);\n while (jd >= this.toJD(year + 1, 1, 1)) {\n year++;\n }\n var day = jd - Math.floor(this.toJD(year, 1, 1) + 0.5) + 1;\n var month = 1;\n while (day > this.daysInMonth(year, month)) {\n day -= this.daysInMonth(year, month);\n month++;\n }\n return this.newDate(year, month, day);\n }\n});\n\n// Nanakshahi calendar implementation\nmain.calendars.nanakshahi = NanakshahiCalendar;\n\n\n},{\"../main\":346,\"object-assign\":247}],341:[function(_dereq_,module,exports){\n/*\n * World Calendars\n * https://github.com/alexcjohnson/world-calendars\n *\n * Batch-converted from kbwood/calendars\n * Many thanks to Keith Wood and all of the contributors to the original project!\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* http://keith-wood.name/calendars.html\n Nepali calendar for jQuery v2.0.2.\n Written by Artur Neumann (ict.projects{at}nepal.inf.org) April 2013.\n Available under the MIT (http://keith-wood.name/licence.html) license. \n Please attribute the author if you use it. */\n\nvar main = _dereq_('../main');\nvar assign = _dereq_('object-assign');\n\n\n/** Implementation of the Nepali civil calendar.\n Based on the ideas from \n http://codeissue.com/articles/a04e050dea7468f/algorithm-to-convert-english-date-to-nepali-date-using-c-net\n and http://birenj2ee.blogspot.com/2011/04/nepali-calendar-in-java.html\n See also http://en.wikipedia.org/wiki/Nepali_calendar\n and https://en.wikipedia.org/wiki/Bikram_Samwat.\n @class NepaliCalendar\n @param [language=''] {string} The language code (default English) for localisation. */\nfunction NepaliCalendar(language) {\n this.local = this.regionalOptions[language || ''] || this.regionalOptions[''];\n}\n\nNepaliCalendar.prototype = new main.baseCalendar;\n\nassign(NepaliCalendar.prototype, {\n /** The calendar name.\n @memberof NepaliCalendar */\n name: 'Nepali',\n /** Julian date of start of Nepali epoch: 14 April 57 BCE.\n @memberof NepaliCalendar */\n jdEpoch: 1700709.5,\n /** Days per month in a common year.\n @memberof NepaliCalendar */\n daysPerMonth: [31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n /** true if has a year zero, false if not.\n @memberof NepaliCalendar */\n hasYearZero: false,\n /** The minimum month number.\n @memberof NepaliCalendar */\n minMonth: 1,\n /** The first month in the year.\n @memberof NepaliCalendar */\n firstMonth: 1,\n /** The minimum day number.\n @memberof NepaliCalendar */\n minDay: 1, \n /** The number of days in the year.\n @memberof NepaliCalendar */\n daysPerYear: 365,\n\n /** Localisations for the plugin.\n Entries are objects indexed by the language code ('' being the default US/English).\n Each object has the following attributes.\n @memberof NepaliCalendar\n @property name {string} The calendar name.\n @property epochs {string[]} The epoch names.\n @property monthNames {string[]} The long names of the months of the year.\n @property monthNamesShort {string[]} The short names of the months of the year.\n @property dayNames {string[]} The long names of the days of the week.\n @property dayNamesShort {string[]} The short names of the days of the week.\n @property dayNamesMin {string[]} The minimal names of the days of the week.\n @property dateFormat {string} The date format for this calendar.\n See the options on formatDate for details.\n @property firstDay {number} The number of the first day of the week, starting at 0.\n @property isRTL {number} true if this localisation reads right-to-left. */\n regionalOptions: { // Localisations\n '': {\n name: 'Nepali',\n epochs: ['BBS', 'ABS'],\n monthNames: ['Baisakh', 'Jestha', 'Ashadh', 'Shrawan', 'Bhadra', 'Ashwin',\n 'Kartik', 'Mangsir', 'Paush', 'Mangh', 'Falgun', 'Chaitra'],\n monthNamesShort: ['Bai', 'Je', 'As', 'Shra', 'Bha', 'Ash', 'Kar', 'Mang', 'Pau', 'Ma', 'Fal', 'Chai'],\n dayNames: ['Aaitabaar', 'Sombaar', 'Manglbaar', 'Budhabaar', 'Bihibaar', 'Shukrabaar', 'Shanibaar'],\n dayNamesShort: ['Aaita', 'Som', 'Mangl', 'Budha', 'Bihi', 'Shukra', 'Shani'],\n dayNamesMin: ['Aai', 'So', 'Man', 'Bu', 'Bi', 'Shu', 'Sha'],\n digits: null,\n dateFormat: 'dd/mm/yyyy',\n firstDay: 1,\n isRTL: false\n }\n },\n\n /** Determine whether this date is in a leap year.\n @memberof NepaliCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {boolean} true if this is a leap year, false if not.\n @throws Error if an invalid year or a different calendar used. */\n leapYear: function(year) {\n return this.daysInYear(year) !== this.daysPerYear;\n },\n\n /** Determine the week of the year for a date.\n @memberof NepaliCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {number} The week of the year.\n @throws Error if an invalid date or a different calendar used. */\n weekOfYear: function(year, month, day) {\n // Find Sunday of this week starting on Sunday\n var checkDate = this.newDate(year, month, day);\n checkDate.add(-checkDate.dayOfWeek(), 'd');\n return Math.floor((checkDate.dayOfYear() - 1) / 7) + 1;\n },\n\n /** Retrieve the number of days in a year.\n @memberof NepaliCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {number} The number of days.\n @throws Error if an invalid year or a different calendar used. */\n daysInYear: function(year) {\n var date = this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n year = date.year();\n if (typeof this.NEPALI_CALENDAR_DATA[year] === 'undefined') {\n return this.daysPerYear;\n }\n var daysPerYear = 0;\n for (var month_number = this.minMonth; month_number <= 12; month_number++) {\n daysPerYear += this.NEPALI_CALENDAR_DATA[year][month_number];\n }\n return daysPerYear;\n },\n\n /** Retrieve the number of days in a month.\n @memberof NepaliCalendar\n @param year {CDate|number| The date to examine or the year of the month.\n @param [month] {number} The month.\n @return {number} The number of days in this month.\n @throws Error if an invalid month/year or a different calendar used. */\n daysInMonth: function(year, month) {\n if (year.year) {\n month = year.month();\n year = year.year();\n }\n this._validate(year, month, this.minDay, main.local.invalidMonth);\n return (typeof this.NEPALI_CALENDAR_DATA[year] === 'undefined' ?\n this.daysPerMonth[month - 1] : this.NEPALI_CALENDAR_DATA[year][month]);\n },\n\n /** Determine whether this date is a week day.\n @memberof NepaliCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {boolean} true if a week day, false if not.\n @throws Error if an invalid date or a different calendar used. */\n weekDay: function(year, month, day) {\n return this.dayOfWeek(year, month, day) !== 6;\n },\n\n /** Retrieve the Julian date equivalent for this date,\n i.e. days since January 1, 4713 BCE Greenwich noon.\n @memberof NepaliCalendar\n @param year {CDate|number} The date to convert or the year to convert.\n @param [month] {number} The month to convert.\n @param [day] {number} The day to convert.\n @return {number} The equivalent Julian date.\n @throws Error if an invalid date or a different calendar used. */\n toJD: function(nepaliYear, nepaliMonth, nepaliDay) {\n var date = this._validate(nepaliYear, nepaliMonth, nepaliDay, main.local.invalidDate);\n nepaliYear = date.year();\n nepaliMonth = date.month();\n nepaliDay = date.day();\n var gregorianCalendar = main.instance();\n var gregorianDayOfYear = 0; // We will add all the days that went by since\n // the 1st. January and then we can get the Gregorian Date\n var nepaliMonthToCheck = nepaliMonth;\n var nepaliYearToCheck = nepaliYear;\n this._createMissingCalendarData(nepaliYear);\n // Get the correct year\n var gregorianYear = nepaliYear - (nepaliMonthToCheck > 9 || (nepaliMonthToCheck === 9 &&\n nepaliDay >= this.NEPALI_CALENDAR_DATA[nepaliYearToCheck][0]) ? 56 : 57);\n // First we add the amount of days in the actual Nepali month as the day of year in the\n // Gregorian one because at least this days are gone since the 1st. Jan. \n if (nepaliMonth !== 9) {\n gregorianDayOfYear = nepaliDay;\n nepaliMonthToCheck--;\n }\n // Now we loop throw all Nepali month and add the amount of days to gregorianDayOfYear \n // we do this till we reach Paush (9th month). 1st. January always falls in this month \n while (nepaliMonthToCheck !== 9) {\n if (nepaliMonthToCheck <= 0) {\n nepaliMonthToCheck = 12;\n nepaliYearToCheck--;\n } \n gregorianDayOfYear += this.NEPALI_CALENDAR_DATA[nepaliYearToCheck][nepaliMonthToCheck];\n nepaliMonthToCheck--;\n } \n // If the date that has to be converted is in Paush (month no. 9) we have to do some other calculation\n if (nepaliMonth === 9) {\n // Add the days that are passed since the first day of Paush and substract the\n // amount of days that lie between 1st. Jan and 1st Paush\n gregorianDayOfYear += nepaliDay - this.NEPALI_CALENDAR_DATA[nepaliYearToCheck][0];\n // For the first days of Paush we are now in negative values,\n // because in the end of the gregorian year we substract\n // 365 / 366 days (P.S. remember math in school + - gives -)\n if (gregorianDayOfYear < 0) {\n gregorianDayOfYear += gregorianCalendar.daysInYear(gregorianYear);\n }\n }\n else {\n gregorianDayOfYear += this.NEPALI_CALENDAR_DATA[nepaliYearToCheck][9] -\n this.NEPALI_CALENDAR_DATA[nepaliYearToCheck][0];\n } \n return gregorianCalendar.newDate(gregorianYear, 1 ,1).add(gregorianDayOfYear, 'd').toJD();\n },\n \n /** Create a new date from a Julian date.\n @memberof NepaliCalendar\n @param jd {number} The Julian date to convert.\n @return {CDate} The equivalent date. */\n fromJD: function(jd) {\n var gregorianCalendar = main.instance();\n var gregorianDate = gregorianCalendar.fromJD(jd);\n var gregorianYear = gregorianDate.year();\n var gregorianDayOfYear = gregorianDate.dayOfYear();\n var nepaliYear = gregorianYear + 56; //this is not final, it could be also +57 but +56 is always true for 1st Jan.\n this._createMissingCalendarData(nepaliYear);\n var nepaliMonth = 9; // Jan 1 always fall in Nepali month Paush which is the 9th month of Nepali calendar.\n // Get the Nepali day in Paush (month 9) of 1st January \n var dayOfFirstJanInPaush = this.NEPALI_CALENDAR_DATA[nepaliYear][0];\n // Check how many days are left of Paush .\n // Days calculated from 1st Jan till the end of the actual Nepali month, \n // we use this value to check if the gregorian Date is in the actual Nepali month.\n var daysSinceJanFirstToEndOfNepaliMonth =\n this.NEPALI_CALENDAR_DATA[nepaliYear][nepaliMonth] - dayOfFirstJanInPaush + 1;\n // If the gregorian day-of-year is smaller o equal than the sum of days between the 1st January and \n // the end of the actual nepali month we found the correct nepali month.\n // Example: \n // The 4th February 2011 is the gregorianDayOfYear 35 (31 days of January + 4)\n // 1st January 2011 is in the nepali year 2067, where 1st. January is in the 17th day of Paush (9th month)\n // In 2067 Paush has 30days, This means (30-17+1=14) there are 14days between 1st January and end of Paush \n // (including 17th January)\n // The gregorianDayOfYear (35) is bigger than 14, so we check the next month\n // The next nepali month (Mangh) has 29 days \n // 29+14=43, this is bigger than gregorianDayOfYear(35) so, we found the correct nepali month\n while (gregorianDayOfYear > daysSinceJanFirstToEndOfNepaliMonth) {\n nepaliMonth++;\n if (nepaliMonth > 12) {\n nepaliMonth = 1;\n nepaliYear++;\n } \n daysSinceJanFirstToEndOfNepaliMonth += this.NEPALI_CALENDAR_DATA[nepaliYear][nepaliMonth];\n }\n // The last step is to calculate the nepali day-of-month\n // to continue our example from before:\n // we calculated there are 43 days from 1st. January (17 Paush) till end of Mangh (29 days)\n // when we subtract from this 43 days the day-of-year of the the Gregorian date (35),\n // we know how far the searched day is away from the end of the Nepali month.\n // So we simply subtract this number from the amount of days in this month (30) \n var nepaliDayOfMonth = this.NEPALI_CALENDAR_DATA[nepaliYear][nepaliMonth] -\n (daysSinceJanFirstToEndOfNepaliMonth - gregorianDayOfYear); \n return this.newDate(nepaliYear, nepaliMonth, nepaliDayOfMonth);\n },\n \n /** Creates missing data in the NEPALI_CALENDAR_DATA table.\n This data will not be correct but just give an estimated result. Mostly -/+ 1 day\n @private\n @param nepaliYear {number} The missing year number. */\n _createMissingCalendarData: function(nepaliYear) {\n var tmp_calendar_data = this.daysPerMonth.slice(0);\n tmp_calendar_data.unshift(17);\n for (var nepaliYearToCreate = (nepaliYear - 1); nepaliYearToCreate < (nepaliYear + 2); nepaliYearToCreate++) {\n if (typeof this.NEPALI_CALENDAR_DATA[nepaliYearToCreate] === 'undefined') {\n this.NEPALI_CALENDAR_DATA[nepaliYearToCreate] = tmp_calendar_data;\n }\n }\n },\n \n NEPALI_CALENDAR_DATA: {\n // These data are from http://www.ashesh.com.np\n 1970: [18, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 1971: [18, 31, 31, 32, 31, 32, 30, 30, 29, 30, 29, 30, 30],\n 1972: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30],\n 1973: [19, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31],\n 1974: [19, 31, 31, 32, 30, 31, 31, 30, 29, 30, 29, 30, 30],\n 1975: [18, 31, 31, 32, 32, 30, 31, 30, 29, 30, 29, 30, 30],\n 1976: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 1977: [18, 31, 32, 31, 32, 31, 31, 29, 30, 29, 30, 29, 31],\n 1978: [18, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 1979: [18, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n 1980: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 1981: [18, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30],\n 1982: [18, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 1983: [18, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n 1984: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 1985: [18, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30],\n 1986: [18, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 1987: [18, 31, 32, 31, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n 1988: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 1989: [18, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30],\n 1990: [18, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 1991: [18, 31, 32, 31, 32, 31, 30, 30, 29, 30, 29, 30, 30], \n // These data are from http://nepalicalendar.rat32.com/index.php\n 1992: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31],\n 1993: [18, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30],\n 1994: [18, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 1995: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30],\n 1996: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31],\n 1997: [18, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 1998: [18, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 1999: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 2000: [17, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31],\n 2001: [18, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2002: [18, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n 2003: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 2004: [17, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31],\n 2005: [18, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2006: [18, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n 2007: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 2008: [17, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 29, 31],\n 2009: [18, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2010: [18, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n 2011: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 2012: [17, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30],\n 2013: [18, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2014: [18, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n 2015: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 2016: [17, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30],\n 2017: [18, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2018: [18, 31, 32, 31, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n 2019: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31],\n 2020: [17, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30],\n 2021: [18, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2022: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30],\n 2023: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31],\n 2024: [17, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30],\n 2025: [18, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2026: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 2027: [17, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31],\n 2028: [17, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2029: [18, 31, 31, 32, 31, 32, 30, 30, 29, 30, 29, 30, 30],\n 2030: [17, 31, 32, 31, 32, 31, 30, 30, 30, 30, 30, 30, 31],\n 2031: [17, 31, 32, 31, 32, 31, 31, 31, 31, 31, 31, 31, 31],\n 2032: [17, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32],\n 2033: [18, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n 2034: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 2035: [17, 30, 32, 31, 32, 31, 31, 29, 30, 30, 29, 29, 31],\n 2036: [17, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2037: [18, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n 2038: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 2039: [17, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30],\n 2040: [17, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2041: [18, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n 2042: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 2043: [17, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30],\n 2044: [17, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2045: [18, 31, 32, 31, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n 2046: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 2047: [17, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30],\n 2048: [17, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2049: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30],\n 2050: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31],\n 2051: [17, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30],\n 2052: [17, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2053: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30],\n 2054: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31],\n 2055: [17, 31, 31, 32, 31, 31, 31, 30, 29, 30, 30, 29, 30],\n 2056: [17, 31, 31, 32, 31, 32, 30, 30, 29, 30, 29, 30, 30],\n 2057: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 2058: [17, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31],\n 2059: [17, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2060: [17, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n 2061: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 2062: [17, 30, 32, 31, 32, 31, 31, 29, 30, 29, 30, 29, 31],\n 2063: [17, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2064: [17, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n 2065: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 2066: [17, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 29, 31],\n 2067: [17, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2068: [17, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n 2069: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 2070: [17, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30],\n 2071: [17, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2072: [17, 31, 32, 31, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n 2073: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 2074: [17, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30],\n 2075: [17, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2076: [16, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30],\n 2077: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31],\n 2078: [17, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30],\n 2079: [17, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2080: [16, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30],\n // These data are from http://www.ashesh.com.np/nepali-calendar/\n 2081: [17, 31, 31, 32, 32, 31, 30, 30, 30, 29, 30, 30, 30],\n 2082: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30],\n 2083: [17, 31, 31, 32, 31, 31, 30, 30, 30, 29, 30, 30, 30],\n 2084: [17, 31, 31, 32, 31, 31, 30, 30, 30, 29, 30, 30, 30],\n 2085: [17, 31, 32, 31, 32, 31, 31, 30, 30, 29, 30, 30, 30],\n 2086: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30],\n 2087: [16, 31, 31, 32, 31, 31, 31, 30, 30, 29, 30, 30, 30],\n 2088: [16, 30, 31, 32, 32, 30, 31, 30, 30, 29, 30, 30, 30],\n 2089: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30],\n 2090: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30],\n 2091: [16, 31, 31, 32, 31, 31, 31, 30, 30, 29, 30, 30, 30],\n 2092: [16, 31, 31, 32, 32, 31, 30, 30, 30, 29, 30, 30, 30],\n 2093: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30],\n 2094: [17, 31, 31, 32, 31, 31, 30, 30, 30, 29, 30, 30, 30],\n 2095: [17, 31, 31, 32, 31, 31, 31, 30, 29, 30, 30, 30, 30],\n 2096: [17, 30, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n 2097: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30],\n 2098: [17, 31, 31, 32, 31, 31, 31, 29, 30, 29, 30, 30, 31],\n 2099: [17, 31, 31, 32, 31, 31, 31, 30, 29, 29, 30, 30, 30],\n 2100: [17, 31, 32, 31, 32, 30, 31, 30, 29, 30, 29, 30, 30] \n }\n}); \n\n// Nepali calendar implementation\nmain.calendars.nepali = NepaliCalendar;\n\n\n},{\"../main\":346,\"object-assign\":247}],342:[function(_dereq_,module,exports){\n/*\n * World Calendars\n * https://github.com/alexcjohnson/world-calendars\n *\n * Batch-converted from kbwood/calendars\n * Many thanks to Keith Wood and all of the contributors to the original project!\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* http://keith-wood.name/calendars.html\n Persian calendar for jQuery v2.0.2.\n Written by Keith Wood (wood.keith{at}optusnet.com.au) August 2009.\n Available under the MIT (http://keith-wood.name/licence.html) license. \n Please attribute the author if you use it. */\n\nvar main = _dereq_('../main');\nvar assign = _dereq_('object-assign');\n\n\n/** Implementation of the Persian or Jalali calendar.\n Based on code from http://www.iranchamber.com/calendar/converter/iranian_calendar_converter.php.\n See also http://en.wikipedia.org/wiki/Iranian_calendar.\n @class PersianCalendar\n @param [language=''] {string} The language code (default English) for localisation. */\nfunction PersianCalendar(language) {\n this.local = this.regionalOptions[language || ''] || this.regionalOptions[''];\n}\n\nPersianCalendar.prototype = new main.baseCalendar;\n\nassign(PersianCalendar.prototype, {\n /** The calendar name.\n @memberof PersianCalendar */\n name: 'Persian',\n /** Julian date of start of Persian epoch: 19 March 622 CE.\n @memberof PersianCalendar */\n jdEpoch: 1948320.5,\n /** Days per month in a common year.\n @memberof PersianCalendar */\n daysPerMonth: [31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 29],\n /** true if has a year zero, false if not.\n @memberof PersianCalendar */\n hasYearZero: false,\n /** The minimum month number.\n @memberof PersianCalendar */\n minMonth: 1,\n /** The first month in the year.\n @memberof PersianCalendar */\n firstMonth: 1,\n /** The minimum day number.\n @memberof PersianCalendar */\n minDay: 1,\n\n /** Localisations for the plugin.\n Entries are objects indexed by the language code ('' being the default US/English).\n Each object has the following attributes.\n @memberof PersianCalendar\n @property name {string} The calendar name.\n @property epochs {string[]} The epoch names.\n @property monthNames {string[]} The long names of the months of the year.\n @property monthNamesShort {string[]} The short names of the months of the year.\n @property dayNames {string[]} The long names of the days of the week.\n @property dayNamesShort {string[]} The short names of the days of the week.\n @property dayNamesMin {string[]} The minimal names of the days of the week.\n @property dateFormat {string} The date format for this calendar.\n See the options on formatDate for details.\n @property firstDay {number} The number of the first day of the week, starting at 0.\n @property isRTL {number} true if this localisation reads right-to-left. */\n regionalOptions: { // Localisations\n '': {\n name: 'Persian',\n epochs: ['BP', 'AP'],\n monthNames: ['Farvardin', 'Ordibehesht', 'Khordad', 'Tir', 'Mordad', 'Shahrivar',\n 'Mehr', 'Aban', 'Azar', 'Day', 'Bahman', 'Esfand'],\n monthNamesShort: ['Far', 'Ord', 'Kho', 'Tir', 'Mor', 'Sha', 'Meh', 'Aba', 'Aza', 'Day', 'Bah', 'Esf'],\n dayNames: ['Yekshambe', 'Doshambe', 'Seshambe', 'Chæharshambe', 'Panjshambe', 'Jom\\'e', 'Shambe'],\n dayNamesShort: ['Yek', 'Do', 'Se', 'Chæ', 'Panj', 'Jom', 'Sha'],\n dayNamesMin: ['Ye','Do','Se','Ch','Pa','Jo','Sh'],\n digits: null,\n dateFormat: 'yyyy/mm/dd',\n firstDay: 6,\n isRTL: false\n }\n },\n\n /** Determine whether this date is in a leap year.\n @memberof PersianCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {boolean} true if this is a leap year, false if not.\n @throws Error if an invalid year or a different calendar used. */\n leapYear: function(year) {\n var date = this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n return (((((date.year() - (date.year() > 0 ? 474 : 473)) % 2820) +\n 474 + 38) * 682) % 2816) < 682;\n },\n\n /** Determine the week of the year for a date.\n @memberof PersianCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {number} The week of the year.\n @throws Error if an invalid date or a different calendar used. */\n weekOfYear: function(year, month, day) {\n // Find Saturday of this week starting on Saturday\n var checkDate = this.newDate(year, month, day);\n checkDate.add(-((checkDate.dayOfWeek() + 1) % 7), 'd');\n return Math.floor((checkDate.dayOfYear() - 1) / 7) + 1;\n },\n\n /** Retrieve the number of days in a month.\n @memberof PersianCalendar\n @param year {CDate|number} The date to examine or the year of the month.\n @param [month] {number} The month.\n @return {number} The number of days in this month.\n @throws Error if an invalid month/year or a different calendar used. */\n daysInMonth: function(year, month) {\n var date = this._validate(year, month, this.minDay, main.local.invalidMonth);\n return this.daysPerMonth[date.month() - 1] +\n (date.month() === 12 && this.leapYear(date.year()) ? 1 : 0);\n },\n\n /** Determine whether this date is a week day.\n @memberof PersianCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {boolean} true if a week day, false if not.\n @throws Error if an invalid date or a different calendar used. */\n weekDay: function(year, month, day) {\n return this.dayOfWeek(year, month, day) !== 5;\n },\n\n /** Retrieve the Julian date equivalent for this date,\n i.e. days since January 1, 4713 BCE Greenwich noon.\n @memberof PersianCalendar\n @param year {CDate|number} The date to convert or the year to convert.\n @param [month] {number} The month to convert.\n @param [day] {number} The day to convert.\n @return {number} The equivalent Julian date.\n @throws Error if an invalid date or a different calendar used. */\n toJD: function(year, month, day) {\n var date = this._validate(year, month, day, main.local.invalidDate);\n year = date.year();\n month = date.month();\n day = date.day();\n var epBase = year - (year >= 0 ? 474 : 473);\n var epYear = 474 + mod(epBase, 2820);\n return day + (month <= 7 ? (month - 1) * 31 : (month - 1) * 30 + 6) +\n Math.floor((epYear * 682 - 110) / 2816) + (epYear - 1) * 365 +\n Math.floor(epBase / 2820) * 1029983 + this.jdEpoch - 1;\n },\n\n /** Create a new date from a Julian date.\n @memberof PersianCalendar\n @param jd {number} The Julian date to convert.\n @return {CDate} The equivalent date. */\n fromJD: function(jd) {\n jd = Math.floor(jd) + 0.5;\n var depoch = jd - this.toJD(475, 1, 1);\n var cycle = Math.floor(depoch / 1029983);\n var cyear = mod(depoch, 1029983);\n var ycycle = 2820;\n if (cyear !== 1029982) {\n var aux1 = Math.floor(cyear / 366);\n var aux2 = mod(cyear, 366);\n ycycle = Math.floor(((2134 * aux1) + (2816 * aux2) + 2815) / 1028522) + aux1 + 1;\n }\n var year = ycycle + (2820 * cycle) + 474;\n year = (year <= 0 ? year - 1 : year);\n var yday = jd - this.toJD(year, 1, 1) + 1;\n var month = (yday <= 186 ? Math.ceil(yday / 31) : Math.ceil((yday - 6) / 30));\n var day = jd - this.toJD(year, month, 1) + 1;\n return this.newDate(year, month, day);\n }\n});\n\n// Modulus function which works for non-integers.\nfunction mod(a, b) {\n return a - (b * Math.floor(a / b));\n}\n\n// Persian (Jalali) calendar implementation\nmain.calendars.persian = PersianCalendar;\nmain.calendars.jalali = PersianCalendar;\n\n\n},{\"../main\":346,\"object-assign\":247}],343:[function(_dereq_,module,exports){\n/*\n * World Calendars\n * https://github.com/alexcjohnson/world-calendars\n *\n * Batch-converted from kbwood/calendars\n * Many thanks to Keith Wood and all of the contributors to the original project!\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* http://keith-wood.name/calendars.html\n Taiwanese (Minguo) calendar for jQuery v2.0.2.\n Written by Keith Wood (wood.keith{at}optusnet.com.au) February 2010.\n Available under the MIT (http://keith-wood.name/licence.html) license. \n Please attribute the author if you use it. */\n\nvar main = _dereq_('../main');\nvar assign = _dereq_('object-assign');\n\n\nvar gregorianCalendar = main.instance();\n\n/** Implementation of the Taiwanese calendar.\n See http://en.wikipedia.org/wiki/Minguo_calendar.\n @class TaiwanCalendar\n @param [language=''] {string} The language code (default English) for localisation. */\nfunction TaiwanCalendar(language) {\n this.local = this.regionalOptions[language || ''] || this.regionalOptions[''];\n}\n\nTaiwanCalendar.prototype = new main.baseCalendar;\n\nassign(TaiwanCalendar.prototype, {\n /** The calendar name.\n @memberof TaiwanCalendar */\n name: 'Taiwan',\n /** Julian date of start of Taiwan epoch: 1 January 1912 CE (Gregorian).\n @memberof TaiwanCalendar */\n jdEpoch: 2419402.5,\n /** Difference in years between Taiwan and Gregorian calendars.\n @memberof TaiwanCalendar */\n yearsOffset: 1911,\n /** Days per month in a common year.\n @memberof TaiwanCalendar */\n daysPerMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],\n /** true if has a year zero, false if not.\n @memberof TaiwanCalendar */\n hasYearZero: false,\n /** The minimum month number.\n @memberof TaiwanCalendar */\n minMonth: 1,\n /** The first month in the year.\n @memberof TaiwanCalendar */\n firstMonth: 1,\n /** The minimum day number.\n @memberof TaiwanCalendar */\n minDay: 1,\n\n /** Localisations for the plugin.\n Entries are objects indexed by the language code ('' being the default US/English).\n Each object has the following attributes.\n @memberof TaiwanCalendar\n @property name {string} The calendar name.\n @property epochs {string[]} The epoch names.\n @property monthNames {string[]} The long names of the months of the year.\n @property monthNamesShort {string[]} The short names of the months of the year.\n @property dayNames {string[]} The long names of the days of the week.\n @property dayNamesShort {string[]} The short names of the days of the week.\n @property dayNamesMin {string[]} The minimal names of the days of the week.\n @property dateFormat {string} The date format for this calendar.\n See the options on formatDate for details.\n @property firstDay {number} The number of the first day of the week, starting at 0.\n @property isRTL {number} true if this localisation reads right-to-left. */\n regionalOptions: { // Localisations\n '': {\n name: 'Taiwan',\n epochs: ['BROC', 'ROC'],\n monthNames: ['January', 'February', 'March', 'April', 'May', 'June',\n 'July', 'August', 'September', 'October', 'November', 'December'],\n monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\n dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n dayNamesMin: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],\n digits: null,\n dateFormat: 'yyyy/mm/dd',\n firstDay: 1,\n isRTL: false\n }\n },\n\n /** Determine whether this date is in a leap year.\n @memberof TaiwanCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {boolean} true if this is a leap year, false if not.\n @throws Error if an invalid year or a different calendar used. */\n leapYear: function(year) {\n var date = this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n var year = this._t2gYear(date.year());\n return gregorianCalendar.leapYear(year);\n },\n\n /** Determine the week of the year for a date - ISO 8601.\n @memberof TaiwanCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {number} The week of the year.\n @throws Error if an invalid date or a different calendar used. */\n weekOfYear: function(year, month, day) {\n var date = this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n var year = this._t2gYear(date.year());\n return gregorianCalendar.weekOfYear(year, date.month(), date.day());\n },\n\n /** Retrieve the number of days in a month.\n @memberof TaiwanCalendar\n @param year {CDate|number} The date to examine or the year of the month.\n @param [month] {number} The month.\n @return {number} The number of days in this month.\n @throws Error if an invalid month/year or a different calendar used. */\n daysInMonth: function(year, month) {\n var date = this._validate(year, month, this.minDay, main.local.invalidMonth);\n return this.daysPerMonth[date.month() - 1] +\n (date.month() === 2 && this.leapYear(date.year()) ? 1 : 0);\n },\n\n /** Determine whether this date is a week day.\n @memberof TaiwanCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {boolean} true if a week day, false if not.\n @throws Error if an invalid date or a different calendar used. */\n weekDay: function(year, month, day) {\n return (this.dayOfWeek(year, month, day) || 7) < 6;\n },\n\n /** Retrieve the Julian date equivalent for this date,\n i.e. days since January 1, 4713 BCE Greenwich noon.\n @memberof TaiwanCalendar\n @param year {CDate|number} The date to convert or the year to convert.\n @param [month] {number} The month to convert.\n @param [day] {number} The day to convert.\n @return {number} The equivalent Julian date.\n @throws Error if an invalid date or a different calendar used. */\n toJD: function(year, month, day) {\n var date = this._validate(year, month, day, main.local.invalidDate);\n var year = this._t2gYear(date.year());\n return gregorianCalendar.toJD(year, date.month(), date.day());\n },\n\n /** Create a new date from a Julian date.\n @memberof TaiwanCalendar\n @param jd {number} The Julian date to convert.\n @return {CDate} The equivalent date. */\n fromJD: function(jd) {\n var date = gregorianCalendar.fromJD(jd);\n var year = this._g2tYear(date.year());\n return this.newDate(year, date.month(), date.day());\n },\n\n /** Convert Taiwanese to Gregorian year.\n @memberof TaiwanCalendar\n @private\n @param year {number} The Taiwanese year.\n @return {number} The corresponding Gregorian year. */\n _t2gYear: function(year) {\n return year + this.yearsOffset + (year >= -this.yearsOffset && year <= -1 ? 1 : 0);\n },\n\n /** Convert Gregorian to Taiwanese year.\n @memberof TaiwanCalendar\n @private\n @param year {number} The Gregorian year.\n @return {number} The corresponding Taiwanese year. */\n _g2tYear: function(year) {\n return year - this.yearsOffset - (year >= 1 && year <= this.yearsOffset ? 1 : 0);\n }\n});\n\n// Taiwan calendar implementation\nmain.calendars.taiwan = TaiwanCalendar;\n\n\n},{\"../main\":346,\"object-assign\":247}],344:[function(_dereq_,module,exports){\n/*\n * World Calendars\n * https://github.com/alexcjohnson/world-calendars\n *\n * Batch-converted from kbwood/calendars\n * Many thanks to Keith Wood and all of the contributors to the original project!\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* http://keith-wood.name/calendars.html\n Thai calendar for jQuery v2.0.2.\n Written by Keith Wood (wood.keith{at}optusnet.com.au) February 2010.\n Available under the MIT (http://keith-wood.name/licence.html) license. \n Please attribute the author if you use it. */\n\nvar main = _dereq_('../main');\nvar assign = _dereq_('object-assign');\n\n\nvar gregorianCalendar = main.instance();\n\n/** Implementation of the Thai calendar.\n See http://en.wikipedia.org/wiki/Thai_calendar.\n @class ThaiCalendar\n @param [language=''] {string} The language code (default English) for localisation. */\nfunction ThaiCalendar(language) {\n this.local = this.regionalOptions[language || ''] || this.regionalOptions[''];\n}\n\nThaiCalendar.prototype = new main.baseCalendar;\n\nassign(ThaiCalendar.prototype, {\n /** The calendar name.\n @memberof ThaiCalendar */\n name: 'Thai',\n /** Julian date of start of Thai epoch: 1 January 543 BCE (Gregorian).\n @memberof ThaiCalendar */\n jdEpoch: 1523098.5,\n /** Difference in years between Thai and Gregorian calendars.\n @memberof ThaiCalendar */\n yearsOffset: 543, \n /** Days per month in a common year.\n @memberof ThaiCalendar */\n daysPerMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],\n /** true if has a year zero, false if not.\n @memberof ThaiCalendar */\n hasYearZero: false,\n /** The minimum month number.\n @memberof ThaiCalendar */\n minMonth: 1,\n /** The first month in the year.\n @memberof ThaiCalendar */\n firstMonth: 1,\n /** The minimum day number.\n @memberof ThaiCalendar */\n minDay: 1,\n\n /** Localisations for the plugin.\n Entries are objects indexed by the language code ('' being the default US/English).\n Each object has the following attributes.\n @memberof ThaiCalendar\n @property name {string} The calendar name.\n @property epochs {string[]} The epoch names.\n @property monthNames {string[]} The long names of the months of the year.\n @property monthNamesShort {string[]} The short names of the months of the year.\n @property dayNames {string[]} The long names of the days of the week.\n @property dayNamesShort {string[]} The short names of the days of the week.\n @property dayNamesMin {string[]} The minimal names of the days of the week.\n @property dateFormat {string} The date format for this calendar.\n See the options on formatDate for details.\n @property firstDay {number} The number of the first day of the week, starting at 0.\n @property isRTL {number} true if this localisation reads right-to-left. */\n regionalOptions: { // Localisations\n '': {\n name: 'Thai',\n epochs: ['BBE', 'BE'],\n monthNames: ['January', 'February', 'March', 'April', 'May', 'June',\n 'July', 'August', 'September', 'October', 'November', 'December'],\n monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\n dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n dayNamesMin: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],\n digits: null,\n dateFormat: 'dd/mm/yyyy',\n firstDay: 0,\n isRTL: false\n }\n },\n\n /** Determine whether this date is in a leap year.\n @memberof ThaiCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {boolean} true if this is a leap year, false if not.\n @throws Error if an invalid year or a different calendar used. */\n leapYear: function(year) {\n var date = this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n var year = this._t2gYear(date.year());\n return gregorianCalendar.leapYear(year);\n },\n\n /** Determine the week of the year for a date - ISO 8601.\n @memberof ThaiCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {number} The week of the year.\n @throws Error if an invalid date or a different calendar used. */\n weekOfYear: function(year, month, day) {\n var date = this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n var year = this._t2gYear(date.year());\n return gregorianCalendar.weekOfYear(year, date.month(), date.day());\n },\n\n /** Retrieve the number of days in a month.\n @memberof ThaiCalendar\n @param year {CDate|number} The date to examine or the year of the month.\n @param [month] {number} The month.\n @return {number} The number of days in this month.\n @throws Error if an invalid month/year or a different calendar used. */\n daysInMonth: function(year, month) {\n var date = this._validate(year, month, this.minDay, main.local.invalidMonth);\n return this.daysPerMonth[date.month() - 1] +\n (date.month() === 2 && this.leapYear(date.year()) ? 1 : 0);\n },\n\n /** Determine whether this date is a week day.\n @memberof ThaiCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {boolean} true if a week day, false if not.\n @throws Error if an invalid date or a different calendar used. */\n weekDay: function(year, month, day) {\n return (this.dayOfWeek(year, month, day) || 7) < 6;\n },\n\n /** Retrieve the Julian date equivalent for this date,\n i.e. days since January 1, 4713 BCE Greenwich noon.\n @memberof ThaiCalendar\n @param year {CDate|number} The date to convert or the year to convert.\n @param [month] {number} The month to convert.\n @param [day] {number} The day to convert.\n @return {number} The equivalent Julian date.\n @throws Error if an invalid date or a different calendar used. */\n toJD: function(year, month, day) {\n var date = this._validate(year, month, day, main.local.invalidDate);\n var year = this._t2gYear(date.year());\n return gregorianCalendar.toJD(year, date.month(), date.day());\n },\n\n /** Create a new date from a Julian date.\n @memberof ThaiCalendar\n @param jd {number} The Julian date to convert.\n @return {CDate} The equivalent date. */\n fromJD: function(jd) {\n var date = gregorianCalendar.fromJD(jd);\n var year = this._g2tYear(date.year());\n return this.newDate(year, date.month(), date.day());\n },\n\n /** Convert Thai to Gregorian year.\n @memberof ThaiCalendar\n @private\n @param year {number} The Thai year.\n @return {number} The corresponding Gregorian year. */\n _t2gYear: function(year) {\n return year - this.yearsOffset - (year >= 1 && year <= this.yearsOffset ? 1 : 0);\n },\n\n /** Convert Gregorian to Thai year.\n @memberof ThaiCalendar\n @private\n @param year {number} The Gregorian year.\n @return {number} The corresponding Thai year. */\n _g2tYear: function(year) {\n return year + this.yearsOffset + (year >= -this.yearsOffset && year <= -1 ? 1 : 0);\n }\n});\n\n// Thai calendar implementation\nmain.calendars.thai = ThaiCalendar;\n\n\n},{\"../main\":346,\"object-assign\":247}],345:[function(_dereq_,module,exports){\n/*\n * World Calendars\n * https://github.com/alexcjohnson/world-calendars\n *\n * Batch-converted from kbwood/calendars\n * Many thanks to Keith Wood and all of the contributors to the original project!\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* http://keith-wood.name/calendars.html\n UmmAlQura calendar for jQuery v2.0.2.\n Written by Amro Osama March 2013.\n Modified by Binnooh.com & www.elm.sa - 2014 - Added dates back to 1276 Hijri year.\n Available under the MIT (http://keith-wood.name/licence.html) license. \n Please attribute the author if you use it. */\n\nvar main = _dereq_('../main');\nvar assign = _dereq_('object-assign');\n\n\n/** Implementation of the UmmAlQura or 'saudi' calendar.\n See also http://en.wikipedia.org/wiki/Islamic_calendar#Saudi_Arabia.27s_Umm_al-Qura_calendar.\n http://www.ummulqura.org.sa/About.aspx\n http://www.staff.science.uu.nl/~gent0113/islam/ummalqura.htm\n @class UmmAlQuraCalendar\n @param [language=''] {string} The language code (default English) for localisation. */\nfunction UmmAlQuraCalendar(language) {\n this.local = this.regionalOptions[language || ''] || this.regionalOptions[''];\n}\n\nUmmAlQuraCalendar.prototype = new main.baseCalendar;\n\nassign(UmmAlQuraCalendar.prototype, {\n /** The calendar name.\n @memberof UmmAlQuraCalendar */\n name: 'UmmAlQura',\n //jdEpoch: 1948440, // Julian date of start of UmmAlQura epoch: 14 March 1937 CE\n //daysPerMonth: // Days per month in a common year, replaced by a method.\n /** true if has a year zero, false if not.\n @memberof UmmAlQuraCalendar */\n hasYearZero: false,\n /** The minimum month number.\n @memberof UmmAlQuraCalendar */\n minMonth: 1,\n /** The first month in the year.\n @memberof UmmAlQuraCalendar */\n firstMonth: 1,\n /** The minimum day number.\n @memberof UmmAlQuraCalendar */\n minDay: 1,\n\n /** Localisations for the plugin.\n Entries are objects indexed by the language code ('' being the default US/English).\n Each object has the following attributes.\n @memberof UmmAlQuraCalendar\n @property name {string} The calendar name.\n @property epochs {string[]} The epoch names.\n @property monthNames {string[]} The long names of the months of the year.\n @property monthNamesShort {string[]} The short names of the months of the year.\n @property dayNames {string[]} The long names of the days of the week.\n @property dayNamesShort {string[]} The short names of the days of the week.\n @property dayNamesMin {string[]} The minimal names of the days of the week.\n @property dateFormat {string} The date format for this calendar.\n See the options on formatDate for details.\n @property firstDay {number} The number of the first day of the week, starting at 0.\n @property isRTL {number} true if this localisation reads right-to-left. */\n regionalOptions: { // Localisations\n '': {\n name: 'Umm al-Qura',\n epochs: ['BH', 'AH'],\n monthNames: ['Al-Muharram', 'Safar', 'Rabi\\' al-awwal', 'Rabi\\' Al-Thani', 'Jumada Al-Awwal', 'Jumada Al-Thani',\n 'Rajab', 'Sha\\'aban', 'Ramadan', 'Shawwal', 'Dhu al-Qi\\'dah', 'Dhu al-Hijjah'],\n monthNamesShort: ['Muh', 'Saf', 'Rab1', 'Rab2', 'Jum1', 'Jum2', 'Raj', 'Sha\\'', 'Ram', 'Shaw', 'DhuQ', 'DhuH'],\n dayNames: ['Yawm al-Ahad', 'Yawm al-Ithnain', 'Yawm al-Thalāthā’', 'Yawm al-Arba‘ā’', 'Yawm al-Khamīs', 'Yawm al-Jum‘a', 'Yawm al-Sabt'],\n dayNamesMin: ['Ah', 'Ith', 'Th', 'Ar', 'Kh', 'Ju', 'Sa'],\n digits: null,\n dateFormat: 'yyyy/mm/dd',\n firstDay: 6,\n isRTL: true\n }\n },\n\n /** Determine whether this date is in a leap year.\n @memberof UmmAlQuraCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {boolean} true if this is a leap year, false if not.\n @throws Error if an invalid year or a different calendar used. */\n leapYear: function (year) {\n var date = this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n return (this.daysInYear(date.year()) === 355);\n },\n\n /** Determine the week of the year for a date.\n @memberof UmmAlQuraCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {number} The week of the year.\n @throws Error if an invalid date or a different calendar used. */\n weekOfYear: function (year, month, day) {\n // Find Sunday of this week starting on Sunday\n var checkDate = this.newDate(year, month, day);\n checkDate.add(-checkDate.dayOfWeek(), 'd');\n return Math.floor((checkDate.dayOfYear() - 1) / 7) + 1;\n },\n\n /** Retrieve the number of days in a year.\n @memberof UmmAlQuraCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {number} The number of days.\n @throws Error if an invalid year or a different calendar used. */\n daysInYear: function (year) {\n var daysCount = 0;\n for (var i = 1; i <= 12; i++) {\n daysCount += this.daysInMonth(year, i);\n }\n return daysCount;\n },\n\n /** Retrieve the number of days in a month.\n @memberof UmmAlQuraCalendar\n @param year {CDate|number} The date to examine or the year of the month.\n @param [month] {number} The month.\n @return {number} The number of days in this month.\n @throws Error if an invalid month/year or a different calendar used. */\n daysInMonth: function (year, month) {\n var date = this._validate(year, month, this.minDay, main.local.invalidMonth);\n var mcjdn = date.toJD() - 2400000 + 0.5; // Modified Chronological Julian Day Number (MCJDN)\n // the MCJDN's of the start of the lunations in the Umm al-Qura calendar are stored in the 'ummalqura_dat' array\n var index = 0;\n for (var i = 0; i < ummalqura_dat.length; i++) {\n if (ummalqura_dat[i] > mcjdn) {\n return (ummalqura_dat[index] - ummalqura_dat[index - 1]);\n }\n index++;\n }\n return 30; // Unknown outside\n },\n\n /** Determine whether this date is a week day.\n @memberof UmmAlQuraCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {boolean} true if a week day, false if not.\n @throws Error if an invalid date or a different calendar used. */\n weekDay: function (year, month, day) {\n return this.dayOfWeek(year, month, day) !== 5;\n },\n\n /** Retrieve the Julian date equivalent for this date,\n i.e. days since January 1, 4713 BCE Greenwich noon.\n @memberof UmmAlQuraCalendar\n @param year {CDate|number} The date to convert or the year to convert.\n @param [month] {number} The month to convert.\n @param [day] {number} The day to convert.\n @return {number} The equivalent Julian date.\n @throws Error if an invalid date or a different calendar used. */\n toJD: function (year, month, day) {\n var date = this._validate(year, month, day, main.local.invalidDate);\n var index = (12 * (date.year() - 1)) + date.month() - 15292;\n var mcjdn = date.day() + ummalqura_dat[index - 1] - 1;\n return mcjdn + 2400000 - 0.5; // Modified Chronological Julian Day Number (MCJDN)\n },\n\n /** Create a new date from a Julian date.\n @memberof UmmAlQuraCalendar\n @param jd {number} The Julian date to convert.\n @return {CDate} The equivalent date. */\n fromJD: function (jd) {\n var mcjdn = jd - 2400000 + 0.5; // Modified Chronological Julian Day Number (MCJDN)\n // the MCJDN's of the start of the lunations in the Umm al-Qura calendar \n // are stored in the 'ummalqura_dat' array\n var index = 0;\n for (var i = 0; i < ummalqura_dat.length; i++) {\n if (ummalqura_dat[i] > mcjdn) break;\n index++;\n }\n var lunation = index + 15292; //UmmAlQura Lunation Number\n var ii = Math.floor((lunation - 1) / 12);\n var year = ii + 1;\n var month = lunation - 12 * ii;\n var day = mcjdn - ummalqura_dat[index - 1] + 1;\n return this.newDate(year, month, day);\n },\n\n /** Determine whether a date is valid for this calendar.\n @memberof UmmAlQuraCalendar\n @param year {number} The year to examine.\n @param month {number} The month to examine.\n @param day {number} The day to examine.\n @return {boolean} true if a valid date, false if not. */\n isValid: function(year, month, day) {\n var valid = main.baseCalendar.prototype.isValid.apply(this, arguments);\n if (valid) {\n year = (year.year != null ? year.year : year);\n valid = (year >= 1276 && year <= 1500);\n }\n return valid;\n },\n\n /** Check that a candidate date is from the same calendar and is valid.\n @memberof UmmAlQuraCalendar\n @private\n @param year {CDate|number} The date to validate or the year to validate.\n @param month {number} The month to validate.\n @param day {number} The day to validate.\n @param error {string} Error message if invalid.\n @throws Error if different calendars used or invalid date. */\n _validate: function(year, month, day, error) {\n var date = main.baseCalendar.prototype._validate.apply(this, arguments);\n if (date.year < 1276 || date.year > 1500) {\n throw error.replace(/\\{0\\}/, this.local.name);\n }\n return date;\n }\n});\n\n// UmmAlQura calendar implementation\nmain.calendars.ummalqura = UmmAlQuraCalendar;\n\nvar ummalqura_dat = [\n 20, 50, 79, 109, 138, 168, 197, 227, 256, 286, 315, 345, 374, 404, 433, 463, 492, 522, 551, 581, \n 611, 641, 670, 700, 729, 759, 788, 818, 847, 877, 906, 936, 965, 995, 1024, 1054, 1083, 1113, 1142, 1172,\n 1201, 1231, 1260, 1290, 1320, 1350, 1379, 1409, 1438, 1468, 1497, 1527, 1556, 1586, 1615, 1645, 1674, 1704, 1733, 1763,\n 1792, 1822, 1851, 1881, 1910, 1940, 1969, 1999, 2028, 2058, 2087, 2117, 2146, 2176, 2205, 2235, 2264, 2294, 2323, 2353,\n 2383, 2413, 2442, 2472, 2501, 2531, 2560, 2590, 2619, 2649, 2678, 2708, 2737, 2767, 2796, 2826, 2855, 2885, 2914, 2944,\n 2973, 3003, 3032, 3062, 3091, 3121, 3150, 3180, 3209, 3239, 3268, 3298, 3327, 3357, 3386, 3416, 3446, 3476, 3505, 3535,\n 3564, 3594, 3623, 3653, 3682, 3712, 3741, 3771, 3800, 3830, 3859, 3889, 3918, 3948, 3977, 4007, 4036, 4066, 4095, 4125,\n 4155, 4185, 4214, 4244, 4273, 4303, 4332, 4362, 4391, 4421, 4450, 4480, 4509, 4539, 4568, 4598, 4627, 4657, 4686, 4716,\n 4745, 4775, 4804, 4834, 4863, 4893, 4922, 4952, 4981, 5011, 5040, 5070, 5099, 5129, 5158, 5188, 5218, 5248, 5277, 5307,\n 5336, 5366, 5395, 5425, 5454, 5484, 5513, 5543, 5572, 5602, 5631, 5661, 5690, 5720, 5749, 5779, 5808, 5838, 5867, 5897,\n 5926, 5956, 5985, 6015, 6044, 6074, 6103, 6133, 6162, 6192, 6221, 6251, 6281, 6311, 6340, 6370, 6399, 6429, 6458, 6488,\n 6517, 6547, 6576, 6606, 6635, 6665, 6694, 6724, 6753, 6783, 6812, 6842, 6871, 6901, 6930, 6960, 6989, 7019, 7048, 7078,\n 7107, 7137, 7166, 7196, 7225, 7255, 7284, 7314, 7344, 7374, 7403, 7433, 7462, 7492, 7521, 7551, 7580, 7610, 7639, 7669,\n 7698, 7728, 7757, 7787, 7816, 7846, 7875, 7905, 7934, 7964, 7993, 8023, 8053, 8083, 8112, 8142, 8171, 8201, 8230, 8260,\n 8289, 8319, 8348, 8378, 8407, 8437, 8466, 8496, 8525, 8555, 8584, 8614, 8643, 8673, 8702, 8732, 8761, 8791, 8821, 8850,\n 8880, 8909, 8938, 8968, 8997, 9027, 9056, 9086, 9115, 9145, 9175, 9205, 9234, 9264, 9293, 9322, 9352, 9381, 9410, 9440,\n 9470, 9499, 9529, 9559, 9589, 9618, 9648, 9677, 9706, 9736, 9765, 9794, 9824, 9853, 9883, 9913, 9943, 9972, 10002, 10032,\n 10061, 10090, 10120, 10149, 10178, 10208, 10237, 10267, 10297, 10326, 10356, 10386, 10415, 10445, 10474, 10504, 10533, 10562, 10592, 10621,\n 10651, 10680, 10710, 10740, 10770, 10799, 10829, 10858, 10888, 10917, 10947, 10976, 11005, 11035, 11064, 11094, 11124, 11153, 11183, 11213,\n 11242, 11272, 11301, 11331, 11360, 11389, 11419, 11448, 11478, 11507, 11537, 11567, 11596, 11626, 11655, 11685, 11715, 11744, 11774, 11803,\n 11832, 11862, 11891, 11921, 11950, 11980, 12010, 12039, 12069, 12099, 12128, 12158, 12187, 12216, 12246, 12275, 12304, 12334, 12364, 12393,\n 12423, 12453, 12483, 12512, 12542, 12571, 12600, 12630, 12659, 12688, 12718, 12747, 12777, 12807, 12837, 12866, 12896, 12926, 12955, 12984,\n 13014, 13043, 13072, 13102, 13131, 13161, 13191, 13220, 13250, 13280, 13310, 13339, 13368, 13398, 13427, 13456, 13486, 13515, 13545, 13574,\n 13604, 13634, 13664, 13693, 13723, 13752, 13782, 13811, 13840, 13870, 13899, 13929, 13958, 13988, 14018, 14047, 14077, 14107, 14136, 14166,\n 14195, 14224, 14254, 14283, 14313, 14342, 14372, 14401, 14431, 14461, 14490, 14520, 14550, 14579, 14609, 14638, 14667, 14697, 14726, 14756,\n 14785, 14815, 14844, 14874, 14904, 14933, 14963, 14993, 15021, 15051, 15081, 15110, 15140, 15169, 15199, 15228, 15258, 15287, 15317, 15347,\n 15377, 15406, 15436, 15465, 15494, 15524, 15553, 15582, 15612, 15641, 15671, 15701, 15731, 15760, 15790, 15820, 15849, 15878, 15908, 15937,\n 15966, 15996, 16025, 16055, 16085, 16114, 16144, 16174, 16204, 16233, 16262, 16292, 16321, 16350, 16380, 16409, 16439, 16468, 16498, 16528,\n 16558, 16587, 16617, 16646, 16676, 16705, 16734, 16764, 16793, 16823, 16852, 16882, 16912, 16941, 16971, 17001, 17030, 17060, 17089, 17118,\n 17148, 17177, 17207, 17236, 17266, 17295, 17325, 17355, 17384, 17414, 17444, 17473, 17502, 17532, 17561, 17591, 17620, 17650, 17679, 17709,\n 17738, 17768, 17798, 17827, 17857, 17886, 17916, 17945, 17975, 18004, 18034, 18063, 18093, 18122, 18152, 18181, 18211, 18241, 18270, 18300,\n 18330, 18359, 18388, 18418, 18447, 18476, 18506, 18535, 18565, 18595, 18625, 18654, 18684, 18714, 18743, 18772, 18802, 18831, 18860, 18890,\n 18919, 18949, 18979, 19008, 19038, 19068, 19098, 19127, 19156, 19186, 19215, 19244, 19274, 19303, 19333, 19362, 19392, 19422, 19452, 19481,\n 19511, 19540, 19570, 19599, 19628, 19658, 19687, 19717, 19746, 19776, 19806, 19836, 19865, 19895, 19924, 19954, 19983, 20012, 20042, 20071,\n 20101, 20130, 20160, 20190, 20219, 20249, 20279, 20308, 20338, 20367, 20396, 20426, 20455, 20485, 20514, 20544, 20573, 20603, 20633, 20662,\n 20692, 20721, 20751, 20780, 20810, 20839, 20869, 20898, 20928, 20957, 20987, 21016, 21046, 21076, 21105, 21135, 21164, 21194, 21223, 21253,\n 21282, 21312, 21341, 21371, 21400, 21430, 21459, 21489, 21519, 21548, 21578, 21607, 21637, 21666, 21696, 21725, 21754, 21784, 21813, 21843,\n 21873, 21902, 21932, 21962, 21991, 22021, 22050, 22080, 22109, 22138, 22168, 22197, 22227, 22256, 22286, 22316, 22346, 22375, 22405, 22434,\n 22464, 22493, 22522, 22552, 22581, 22611, 22640, 22670, 22700, 22730, 22759, 22789, 22818, 22848, 22877, 22906, 22936, 22965, 22994, 23024,\n 23054, 23083, 23113, 23143, 23173, 23202, 23232, 23261, 23290, 23320, 23349, 23379, 23408, 23438, 23467, 23497, 23527, 23556, 23586, 23616,\n 23645, 23674, 23704, 23733, 23763, 23792, 23822, 23851, 23881, 23910, 23940, 23970, 23999, 24029, 24058, 24088, 24117, 24147, 24176, 24206,\n 24235, 24265, 24294, 24324, 24353, 24383, 24413, 24442, 24472, 24501, 24531, 24560, 24590, 24619, 24648, 24678, 24707, 24737, 24767, 24796,\n 24826, 24856, 24885, 24915, 24944, 24974, 25003, 25032, 25062, 25091, 25121, 25150, 25180, 25210, 25240, 25269, 25299, 25328, 25358, 25387,\n 25416, 25446, 25475, 25505, 25534, 25564, 25594, 25624, 25653, 25683, 25712, 25742, 25771, 25800, 25830, 25859, 25888, 25918, 25948, 25977,\n 26007, 26037, 26067, 26096, 26126, 26155, 26184, 26214, 26243, 26272, 26302, 26332, 26361, 26391, 26421, 26451, 26480, 26510, 26539, 26568,\n 26598, 26627, 26656, 26686, 26715, 26745, 26775, 26805, 26834, 26864, 26893, 26923, 26952, 26982, 27011, 27041, 27070, 27099, 27129, 27159,\n 27188, 27218, 27248, 27277, 27307, 27336, 27366, 27395, 27425, 27454, 27484, 27513, 27542, 27572, 27602, 27631, 27661, 27691, 27720, 27750,\n 27779, 27809, 27838, 27868, 27897, 27926, 27956, 27985, 28015, 28045, 28074, 28104, 28134, 28163, 28193, 28222, 28252, 28281, 28310, 28340,\n 28369, 28399, 28428, 28458, 28488, 28517, 28547, 28577,\n // From 1356\n 28607, 28636, 28665, 28695, 28724, 28754, 28783, 28813, 28843, 28872, 28901, 28931, 28960, 28990, 29019, 29049, 29078, 29108, 29137, 29167,\n 29196, 29226, 29255, 29285, 29315, 29345, 29375, 29404, 29434, 29463, 29492, 29522, 29551, 29580, 29610, 29640, 29669, 29699, 29729, 29759,\n 29788, 29818, 29847, 29876, 29906, 29935, 29964, 29994, 30023, 30053, 30082, 30112, 30141, 30171, 30200, 30230, 30259, 30289, 30318, 30348,\n 30378, 30408, 30437, 30467, 30496, 30526, 30555, 30585, 30614, 30644, 30673, 30703, 30732, 30762, 30791, 30821, 30850, 30880, 30909, 30939,\n 30968, 30998, 31027, 31057, 31086, 31116, 31145, 31175, 31204, 31234, 31263, 31293, 31322, 31352, 31381, 31411, 31441, 31471, 31500, 31530,\n 31559, 31589, 31618, 31648, 31676, 31706, 31736, 31766, 31795, 31825, 31854, 31884, 31913, 31943, 31972, 32002, 32031, 32061, 32090, 32120,\n 32150, 32180, 32209, 32239, 32268, 32298, 32327, 32357, 32386, 32416, 32445, 32475, 32504, 32534, 32563, 32593, 32622, 32652, 32681, 32711,\n 32740, 32770, 32799, 32829, 32858, 32888, 32917, 32947, 32976, 33006, 33035, 33065, 33094, 33124, 33153, 33183, 33213, 33243, 33272, 33302,\n 33331, 33361, 33390, 33420, 33450, 33479, 33509, 33539, 33568, 33598, 33627, 33657, 33686, 33716, 33745, 33775, 33804, 33834, 33863, 33893,\n 33922, 33952, 33981, 34011, 34040, 34069, 34099, 34128, 34158, 34187, 34217, 34247, 34277, 34306, 34336, 34365, 34395, 34424, 34454, 34483,\n 34512, 34542, 34571, 34601, 34631, 34660, 34690, 34719, 34749, 34778, 34808, 34837, 34867, 34896, 34926, 34955, 34985, 35015, 35044, 35074,\n 35103, 35133, 35162, 35192, 35222, 35251, 35280, 35310, 35340, 35370, 35399, 35429, 35458, 35488, 35517, 35547, 35576, 35605, 35635, 35665,\n 35694, 35723, 35753, 35782, 35811, 35841, 35871, 35901, 35930, 35960, 35989, 36019, 36048, 36078, 36107, 36136, 36166, 36195, 36225, 36254,\n 36284, 36314, 36343, 36373, 36403, 36433, 36462, 36492, 36521, 36551, 36580, 36610, 36639, 36669, 36698, 36728, 36757, 36786, 36816, 36845,\n 36875, 36904, 36934, 36963, 36993, 37022, 37052, 37081, 37111, 37141, 37170, 37200, 37229, 37259, 37288, 37318, 37347, 37377, 37406, 37436,\n 37465, 37495, 37524, 37554, 37584, 37613, 37643, 37672, 37701, 37731, 37760, 37790, 37819, 37849, 37878, 37908, 37938, 37967, 37997, 38027,\n 38056, 38085, 38115, 38144, 38174, 38203, 38233, 38262, 38292, 38322, 38351, 38381, 38410, 38440, 38469, 38499, 38528, 38558, 38587, 38617,\n 38646, 38676, 38705, 38735, 38764, 38794, 38823, 38853, 38882, 38912, 38941, 38971, 39001, 39030, 39059, 39089, 39118, 39148, 39178, 39208,\n 39237, 39267, 39297, 39326, 39355, 39385, 39414, 39444, 39473, 39503, 39532, 39562, 39592, 39621, 39650, 39680, 39709, 39739, 39768, 39798,\n 39827, 39857, 39886, 39916, 39946, 39975, 40005, 40035, 40064, 40094, 40123, 40153, 40182, 40212, 40241, 40271, 40300, 40330, 40359, 40389,\n 40418, 40448, 40477, 40507, 40536, 40566, 40595, 40625, 40655, 40685, 40714, 40744, 40773, 40803, 40832, 40862, 40892, 40921, 40951, 40980,\n 41009, 41039, 41068, 41098, 41127, 41157, 41186, 41216, 41245, 41275, 41304, 41334, 41364, 41393, 41422, 41452, 41481, 41511, 41540, 41570,\n 41599, 41629, 41658, 41688, 41718, 41748, 41777, 41807, 41836, 41865, 41894, 41924, 41953, 41983, 42012, 42042, 42072, 42102, 42131, 42161,\n 42190, 42220, 42249, 42279, 42308, 42337, 42367, 42397, 42426, 42456, 42485, 42515, 42545, 42574, 42604, 42633, 42662, 42692, 42721, 42751,\n 42780, 42810, 42839, 42869, 42899, 42929, 42958, 42988, 43017, 43046, 43076, 43105, 43135, 43164, 43194, 43223, 43253, 43283, 43312, 43342,\n 43371, 43401, 43430, 43460, 43489, 43519, 43548, 43578, 43607, 43637, 43666, 43696, 43726, 43755, 43785, 43814, 43844, 43873, 43903, 43932,\n 43962, 43991, 44021, 44050, 44080, 44109, 44139, 44169, 44198, 44228, 44258, 44287, 44317, 44346, 44375, 44405, 44434, 44464, 44493, 44523,\n 44553, 44582, 44612, 44641, 44671, 44700, 44730, 44759, 44788, 44818, 44847, 44877, 44906, 44936, 44966, 44996, 45025, 45055, 45084, 45114,\n 45143, 45172, 45202, 45231, 45261, 45290, 45320, 45350, 45380, 45409, 45439, 45468, 45498, 45527, 45556, 45586, 45615, 45644, 45674, 45704,\n 45733, 45763, 45793, 45823, 45852, 45882, 45911, 45940, 45970, 45999, 46028, 46058, 46088, 46117, 46147, 46177, 46206, 46236, 46265, 46295,\n 46324, 46354, 46383, 46413, 46442, 46472, 46501, 46531, 46560, 46590, 46620, 46649, 46679, 46708, 46738, 46767, 46797, 46826, 46856, 46885,\n 46915, 46944, 46974, 47003, 47033, 47063, 47092, 47122, 47151, 47181, 47210, 47240, 47269, 47298, 47328, 47357, 47387, 47417, 47446, 47476,\n 47506, 47535, 47565, 47594, 47624, 47653, 47682, 47712, 47741, 47771, 47800, 47830, 47860, 47890, 47919, 47949, 47978, 48008, 48037, 48066,\n 48096, 48125, 48155, 48184, 48214, 48244, 48273, 48303, 48333, 48362, 48392, 48421, 48450, 48480, 48509, 48538, 48568, 48598, 48627, 48657,\n 48687, 48717, 48746, 48776, 48805, 48834, 48864, 48893, 48922, 48952, 48982, 49011, 49041, 49071, 49100, 49130, 49160, 49189, 49218, 49248,\n 49277, 49306, 49336, 49365, 49395, 49425, 49455, 49484, 49514, 49543, 49573, 49602, 49632, 49661, 49690, 49720, 49749, 49779, 49809, 49838,\n 49868, 49898, 49927, 49957, 49986, 50016, 50045, 50075, 50104, 50133, 50163, 50192, 50222, 50252, 50281, 50311, 50340, 50370, 50400, 50429,\n 50459, 50488, 50518, 50547, 50576, 50606, 50635, 50665, 50694, 50724, 50754, 50784, 50813, 50843, 50872, 50902, 50931, 50960, 50990, 51019,\n 51049, 51078, 51108, 51138, 51167, 51197, 51227, 51256, 51286, 51315, 51345, 51374, 51403, 51433, 51462, 51492, 51522, 51552, 51582, 51611,\n 51641, 51670, 51699, 51729, 51758, 51787, 51816, 51846, 51876, 51906, 51936, 51965, 51995, 52025, 52054, 52083, 52113, 52142, 52171, 52200,\n 52230, 52260, 52290, 52319, 52349, 52379, 52408, 52438, 52467, 52497, 52526, 52555, 52585, 52614, 52644, 52673, 52703, 52733, 52762, 52792,\n 52822, 52851, 52881, 52910, 52939, 52969, 52998, 53028, 53057, 53087, 53116, 53146, 53176, 53205, 53235, 53264, 53294, 53324, 53353, 53383,\n 53412, 53441, 53471, 53500, 53530, 53559, 53589, 53619, 53648, 53678, 53708, 53737, 53767, 53796, 53825, 53855, 53884, 53913, 53943, 53973,\n 54003, 54032, 54062, 54092, 54121, 54151, 54180, 54209, 54239, 54268, 54297, 54327, 54357, 54387, 54416, 54446, 54476, 54505, 54535, 54564,\n 54593, 54623, 54652, 54681, 54711, 54741, 54770, 54800, 54830, 54859, 54889, 54919, 54948, 54977, 55007, 55036, 55066, 55095, 55125, 55154,\n 55184, 55213, 55243, 55273, 55302, 55332, 55361, 55391, 55420, 55450, 55479, 55508, 55538, 55567, 55597, 55627, 55657, 55686, 55716, 55745,\n 55775, 55804, 55834, 55863, 55892, 55922, 55951, 55981, 56011, 56040, 56070, 56100, 56129, 56159, 56188, 56218, 56247, 56276, 56306, 56335,\n 56365, 56394, 56424, 56454, 56483, 56513, 56543, 56572, 56601, 56631, 56660, 56690, 56719, 56749, 56778, 56808, 56837, 56867, 56897, 56926,\n 56956, 56985, 57015, 57044, 57074, 57103, 57133, 57162, 57192, 57221, 57251, 57280, 57310, 57340, 57369, 57399, 57429, 57458, 57487, 57517,\n 57546, 57576, 57605, 57634, 57664, 57694, 57723, 57753, 57783, 57813, 57842, 57871, 57901, 57930, 57959, 57989, 58018, 58048, 58077, 58107,\n 58137, 58167, 58196, 58226, 58255, 58285, 58314, 58343, 58373, 58402, 58432, 58461, 58491, 58521, 58551, 58580, 58610, 58639, 58669, 58698,\n 58727, 58757, 58786, 58816, 58845, 58875, 58905, 58934, 58964, 58994, 59023, 59053, 59082, 59111, 59141, 59170, 59200, 59229, 59259, 59288,\n 59318, 59348, 59377, 59407, 59436, 59466, 59495, 59525, 59554, 59584, 59613, 59643, 59672, 59702, 59731, 59761, 59791, 59820, 59850, 59879,\n 59909, 59939, 59968, 59997, 60027, 60056, 60086, 60115, 60145, 60174, 60204, 60234, 60264, 60293, 60323, 60352, 60381, 60411, 60440, 60469,\n 60499, 60528, 60558, 60588, 60618, 60648, 60677, 60707, 60736, 60765, 60795, 60824, 60853, 60883, 60912, 60942, 60972, 61002, 61031, 61061,\n 61090, 61120, 61149, 61179, 61208, 61237, 61267, 61296, 61326, 61356, 61385, 61415, 61445, 61474, 61504, 61533, 61563, 61592, 61621, 61651,\n 61680, 61710, 61739, 61769, 61799, 61828, 61858, 61888, 61917, 61947, 61976, 62006, 62035, 62064, 62094, 62123, 62153, 62182, 62212, 62242,\n 62271, 62301, 62331, 62360, 62390, 62419, 62448, 62478, 62507, 62537, 62566, 62596, 62625, 62655, 62685, 62715, 62744, 62774, 62803, 62832,\n 62862, 62891, 62921, 62950, 62980, 63009, 63039, 63069, 63099, 63128, 63157, 63187, 63216, 63246, 63275, 63305, 63334, 63363, 63393, 63423,\n 63453, 63482, 63512, 63541, 63571, 63600, 63630, 63659, 63689, 63718, 63747, 63777, 63807, 63836, 63866, 63895, 63925, 63955, 63984, 64014,\n 64043, 64073, 64102, 64131, 64161, 64190, 64220, 64249, 64279, 64309, 64339, 64368, 64398, 64427, 64457, 64486, 64515, 64545, 64574, 64603,\n 64633, 64663, 64692, 64722, 64752, 64782, 64811, 64841, 64870, 64899, 64929, 64958, 64987, 65017, 65047, 65076, 65106, 65136, 65166, 65195,\n 65225, 65254, 65283, 65313, 65342, 65371, 65401, 65431, 65460, 65490, 65520, 65549, 65579, 65608, 65638, 65667, 65697, 65726, 65755, 65785,\n 65815, 65844, 65874, 65903, 65933, 65963, 65992, 66022, 66051, 66081, 66110, 66140, 66169, 66199, 66228, 66258, 66287, 66317, 66346, 66376,\n 66405, 66435, 66465, 66494, 66524, 66553, 66583, 66612, 66641, 66671, 66700, 66730, 66760, 66789, 66819, 66849, 66878, 66908, 66937, 66967,\n 66996, 67025, 67055, 67084, 67114, 67143, 67173, 67203, 67233, 67262, 67292, 67321, 67351, 67380, 67409, 67439, 67468, 67497, 67527, 67557,\n 67587, 67617, 67646, 67676, 67705, 67735, 67764, 67793, 67823, 67852, 67882, 67911, 67941, 67971, 68000, 68030, 68060, 68089, 68119, 68148,\n 68177, 68207, 68236, 68266, 68295, 68325, 68354, 68384, 68414, 68443, 68473, 68502, 68532, 68561, 68591, 68620, 68650, 68679, 68708, 68738,\n 68768, 68797, 68827, 68857, 68886, 68916, 68946, 68975, 69004, 69034, 69063, 69092, 69122, 69152, 69181, 69211, 69240, 69270, 69300, 69330,\n 69359, 69388, 69418, 69447, 69476, 69506, 69535, 69565, 69595, 69624, 69654, 69684, 69713, 69743, 69772, 69802, 69831, 69861, 69890, 69919,\n 69949, 69978, 70008, 70038, 70067, 70097, 70126, 70156, 70186, 70215, 70245, 70274, 70303, 70333, 70362, 70392, 70421, 70451, 70481, 70510,\n 70540, 70570, 70599, 70629, 70658, 70687, 70717, 70746, 70776, 70805, 70835, 70864, 70894, 70924, 70954, 70983, 71013, 71042, 71071, 71101,\n 71130, 71159, 71189, 71218, 71248, 71278, 71308, 71337, 71367, 71397, 71426, 71455, 71485, 71514, 71543, 71573, 71602, 71632, 71662, 71691,\n 71721, 71751, 71781, 71810, 71839, 71869, 71898, 71927, 71957, 71986, 72016, 72046, 72075, 72105, 72135, 72164, 72194, 72223, 72253, 72282,\n 72311, 72341, 72370, 72400, 72429, 72459, 72489, 72518, 72548, 72577, 72607, 72637, 72666, 72695, 72725, 72754, 72784, 72813, 72843, 72872,\n 72902, 72931, 72961, 72991, 73020, 73050, 73080, 73109, 73139, 73168, 73197, 73227, 73256, 73286, 73315, 73345, 73375, 73404, 73434, 73464,\n 73493, 73523, 73552, 73581, 73611, 73640, 73669, 73699, 73729, 73758, 73788, 73818, 73848, 73877, 73907, 73936, 73965, 73995, 74024, 74053,\n 74083, 74113, 74142, 74172, 74202, 74231, 74261, 74291, 74320, 74349, 74379, 74408, 74437, 74467, 74497, 74526, 74556, 74586, 74615, 74645,\n 74675, 74704, 74733, 74763, 74792, 74822, 74851, 74881, 74910, 74940, 74969, 74999, 75029, 75058, 75088, 75117, 75147, 75176, 75206, 75235,\n 75264, 75294, 75323, 75353, 75383, 75412, 75442, 75472, 75501, 75531, 75560, 75590, 75619, 75648, 75678, 75707, 75737, 75766, 75796, 75826,\n 75856, 75885, 75915, 75944, 75974, 76003, 76032, 76062, 76091, 76121, 76150, 76180, 76210, 76239, 76269, 76299, 76328, 76358, 76387, 76416,\n 76446, 76475, 76505, 76534, 76564, 76593, 76623, 76653, 76682, 76712, 76741, 76771, 76801, 76830, 76859, 76889, 76918, 76948, 76977, 77007,\n 77036, 77066, 77096, 77125, 77155, 77185, 77214, 77243, 77273, 77302, 77332, 77361, 77390, 77420, 77450, 77479, 77509, 77539, 77569, 77598,\n 77627, 77657, 77686, 77715, 77745, 77774, 77804, 77833, 77863, 77893, 77923, 77952, 77982, 78011, 78041, 78070, 78099, 78129, 78158, 78188,\n 78217, 78247, 78277, 78307, 78336, 78366, 78395, 78425, 78454, 78483, 78513, 78542, 78572, 78601, 78631, 78661, 78690, 78720, 78750, 78779,\n 78808, 78838, 78867, 78897, 78926, 78956, 78985, 79015, 79044, 79074, 79104, 79133, 79163, 79192, 79222, 79251, 79281, 79310, 79340, 79369,\n 79399, 79428, 79458, 79487, 79517, 79546, 79576, 79606, 79635, 79665, 79695, 79724, 79753, 79783, 79812, 79841, 79871, 79900, 79930, 79960,\n 79990];\n\n\n},{\"../main\":346,\"object-assign\":247}],346:[function(_dereq_,module,exports){\n/*\n * World Calendars\n * https://github.com/alexcjohnson/world-calendars\n *\n * Batch-converted from kbwood/calendars\n * Many thanks to Keith Wood and all of the contributors to the original project!\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* http://keith-wood.name/calendars.html\n Calendars for jQuery v2.0.2.\n Written by Keith Wood (wood.keith{at}optusnet.com.au) August 2009.\n Available under the MIT (http://keith-wood.name/licence.html) license. \n Please attribute the author if you use it. */\n\nvar assign = _dereq_('object-assign');\n\n\nfunction Calendars() {\n this.regionalOptions = [];\n this.regionalOptions[''] = {\n invalidCalendar: 'Calendar {0} not found',\n invalidDate: 'Invalid {0} date',\n invalidMonth: 'Invalid {0} month',\n invalidYear: 'Invalid {0} year',\n differentCalendars: 'Cannot mix {0} and {1} dates'\n };\n this.local = this.regionalOptions[''];\n this.calendars = {};\n this._localCals = {};\n}\n\n/** Create the calendars plugin.\n

Provides support for various world calendars in a consistent manner.

\n @class Calendars\n @example _exports.instance('julian').newDate(2014, 12, 25) */\nassign(Calendars.prototype, {\n\n /** Obtain a calendar implementation and localisation.\n @memberof Calendars\n @param [name='gregorian'] {string} The name of the calendar, e.g. 'gregorian', 'persian', 'islamic'.\n @param [language=''] {string} The language code to use for localisation (default is English).\n @return {Calendar} The calendar and localisation.\n @throws Error if calendar not found. */\n instance: function(name, language) {\n name = (name || 'gregorian').toLowerCase();\n language = language || '';\n var cal = this._localCals[name + '-' + language];\n if (!cal && this.calendars[name]) {\n cal = new this.calendars[name](language);\n this._localCals[name + '-' + language] = cal;\n }\n if (!cal) {\n throw (this.local.invalidCalendar || this.regionalOptions[''].invalidCalendar).\n replace(/\\{0\\}/, name);\n }\n return cal;\n },\n\n /** Create a new date - for today if no other parameters given.\n @memberof Calendars\n @param year {CDate|number} The date to copy or the year for the date.\n @param [month] {number} The month for the date.\n @param [day] {number} The day for the date.\n @param [calendar='gregorian'] {BaseCalendar|string} The underlying calendar or the name of the calendar.\n @param [language=''] {string} The language to use for localisation (default English).\n @return {CDate} The new date.\n @throws Error if an invalid date. */\n newDate: function(year, month, day, calendar, language) {\n calendar = (year != null && year.year ? year.calendar() : (typeof calendar === 'string' ?\n this.instance(calendar, language) : calendar)) || this.instance();\n return calendar.newDate(year, month, day);\n },\n \n /** A simple digit substitution function for localising numbers via the Calendar digits option.\n @member Calendars\n @param digits {string[]} The substitute digits, for 0 through 9.\n @return {function} The substitution function. */\n substituteDigits: function(digits) {\n return function(value) {\n return (value + '').replace(/[0-9]/g, function(digit) {\n return digits[digit];\n });\n }\n },\n \n /** Digit substitution function for localising Chinese style numbers via the Calendar digits option.\n @member Calendars\n @param digits {string[]} The substitute digits, for 0 through 9.\n @param powers {string[]} The characters denoting powers of 10, i.e. 1, 10, 100, 1000.\n @return {function} The substitution function. */\n substituteChineseDigits: function(digits, powers) {\n return function(value) {\n var localNumber = '';\n var power = 0;\n while (value > 0) {\n var units = value % 10;\n localNumber = (units === 0 ? '' : digits[units] + powers[power]) + localNumber;\n power++;\n value = Math.floor(value / 10);\n }\n if (localNumber.indexOf(digits[1] + powers[1]) === 0) {\n localNumber = localNumber.substr(1);\n }\n return localNumber || digits[0];\n }\n }\n});\n\n/** Generic date, based on a particular calendar.\n @class CDate\n @param calendar {BaseCalendar} The underlying calendar implementation.\n @param year {number} The year for this date.\n @param month {number} The month for this date.\n @param day {number} The day for this date.\n @return {CDate} The date object.\n @throws Error if an invalid date. */\nfunction CDate(calendar, year, month, day) {\n this._calendar = calendar;\n this._year = year;\n this._month = month;\n this._day = day;\n if (this._calendar._validateLevel === 0 &&\n !this._calendar.isValid(this._year, this._month, this._day)) {\n throw (_exports.local.invalidDate || _exports.regionalOptions[''].invalidDate).\n replace(/\\{0\\}/, this._calendar.local.name);\n }\n}\n\n/** Pad a numeric value with leading zeroes.\n @private\n @param value {number} The number to format.\n @param length {number} The minimum length.\n @return {string} The formatted number. */\nfunction pad(value, length) {\n value = '' + value;\n return '000000'.substring(0, length - value.length) + value;\n}\n\nassign(CDate.prototype, {\n\n /** Create a new date.\n @memberof CDate\n @param [year] {CDate|number} The date to copy or the year for the date (default this date).\n @param [month] {number} The month for the date.\n @param [day] {number} The day for the date.\n @return {CDate} The new date.\n @throws Error if an invalid date. */\n newDate: function(year, month, day) {\n return this._calendar.newDate((year == null ? this : year), month, day);\n },\n\n /** Set or retrieve the year for this date.\n @memberof CDate\n @param [year] {number} The year for the date.\n @return {number|CDate} The date's year (if no parameter) or the updated date.\n @throws Error if an invalid date. */\n year: function(year) {\n return (arguments.length === 0 ? this._year : this.set(year, 'y'));\n },\n\n /** Set or retrieve the month for this date.\n @memberof CDate\n @param [month] {number} The month for the date.\n @return {number|CDate} The date's month (if no parameter) or the updated date.\n @throws Error if an invalid date. */\n month: function(month) {\n return (arguments.length === 0 ? this._month : this.set(month, 'm'));\n },\n\n /** Set or retrieve the day for this date.\n @memberof CDate\n @param [day] {number} The day for the date.\n @return {number|CData} The date's day (if no parameter) or the updated date.\n @throws Error if an invalid date. */\n day: function(day) {\n return (arguments.length === 0 ? this._day : this.set(day, 'd'));\n },\n\n /** Set new values for this date.\n @memberof CDate\n @param year {number} The year for the date.\n @param month {number} The month for the date.\n @param day {number} The day for the date.\n @return {CDate} The updated date.\n @throws Error if an invalid date. */\n date: function(year, month, day) {\n if (!this._calendar.isValid(year, month, day)) {\n throw (_exports.local.invalidDate || _exports.regionalOptions[''].invalidDate).\n replace(/\\{0\\}/, this._calendar.local.name);\n }\n this._year = year;\n this._month = month;\n this._day = day;\n return this;\n },\n\n /** Determine whether this date is in a leap year.\n @memberof CDate\n @return {boolean} true if this is a leap year, false if not. */\n leapYear: function() {\n return this._calendar.leapYear(this);\n },\n\n /** Retrieve the epoch designator for this date, e.g. BCE or CE.\n @memberof CDate\n @return {string} The current epoch. */\n epoch: function() {\n return this._calendar.epoch(this);\n },\n\n /** Format the year, if not a simple sequential number.\n @memberof CDate\n @return {string} The formatted year. */\n formatYear: function() {\n return this._calendar.formatYear(this);\n },\n\n /** Retrieve the month of the year for this date,\n i.e. the month's position within a numbered year.\n @memberof CDate\n @return {number} The month of the year: minMonth to months per year. */\n monthOfYear: function() {\n return this._calendar.monthOfYear(this);\n },\n\n /** Retrieve the week of the year for this date.\n @memberof CDate\n @return {number} The week of the year: 1 to weeks per year. */\n weekOfYear: function() {\n return this._calendar.weekOfYear(this);\n },\n\n /** Retrieve the number of days in the year for this date.\n @memberof CDate\n @return {number} The number of days in this year. */\n daysInYear: function() {\n return this._calendar.daysInYear(this);\n },\n\n /** Retrieve the day of the year for this date.\n @memberof CDate\n @return {number} The day of the year: 1 to days per year. */\n dayOfYear: function() {\n return this._calendar.dayOfYear(this);\n },\n\n /** Retrieve the number of days in the month for this date.\n @memberof CDate\n @return {number} The number of days. */\n daysInMonth: function() {\n return this._calendar.daysInMonth(this);\n },\n\n /** Retrieve the day of the week for this date.\n @memberof CDate\n @return {number} The day of the week: 0 to number of days - 1. */\n dayOfWeek: function() {\n return this._calendar.dayOfWeek(this);\n },\n\n /** Determine whether this date is a week day.\n @memberof CDate\n @return {boolean} true if a week day, false if not. */\n weekDay: function() {\n return this._calendar.weekDay(this);\n },\n\n /** Retrieve additional information about this date.\n @memberof CDate\n @return {object} Additional information - contents depends on calendar. */\n extraInfo: function() {\n return this._calendar.extraInfo(this);\n },\n\n /** Add period(s) to a date.\n @memberof CDate\n @param offset {number} The number of periods to adjust by.\n @param period {string} One of 'y' for year, 'm' for month, 'w' for week, 'd' for day.\n @return {CDate} The updated date. */\n add: function(offset, period) {\n return this._calendar.add(this, offset, period);\n },\n\n /** Set a portion of the date.\n @memberof CDate\n @param value {number} The new value for the period.\n @param period {string} One of 'y' for year, 'm' for month, 'd' for day.\n @return {CDate} The updated date.\n @throws Error if not a valid date. */\n set: function(value, period) {\n return this._calendar.set(this, value, period);\n },\n\n /** Compare this date to another date.\n @memberof CDate\n @param date {CDate} The other date.\n @return {number} -1 if this date is before the other date,\n 0 if they are equal, or +1 if this date is after the other date. */\n compareTo: function(date) {\n if (this._calendar.name !== date._calendar.name) {\n throw (_exports.local.differentCalendars || _exports.regionalOptions[''].differentCalendars).\n replace(/\\{0\\}/, this._calendar.local.name).replace(/\\{1\\}/, date._calendar.local.name);\n }\n var c = (this._year !== date._year ? this._year - date._year :\n this._month !== date._month ? this.monthOfYear() - date.monthOfYear() :\n this._day - date._day);\n return (c === 0 ? 0 : (c < 0 ? -1 : +1));\n },\n\n /** Retrieve the calendar backing this date.\n @memberof CDate\n @return {BaseCalendar} The calendar implementation. */\n calendar: function() {\n return this._calendar;\n },\n\n /** Retrieve the Julian date equivalent for this date,\n i.e. days since January 1, 4713 BCE Greenwich noon.\n @memberof CDate\n @return {number} The equivalent Julian date. */\n toJD: function() {\n return this._calendar.toJD(this);\n },\n\n /** Create a new date from a Julian date.\n @memberof CDate\n @param jd {number} The Julian date to convert.\n @return {CDate} The equivalent date. */\n fromJD: function(jd) {\n return this._calendar.fromJD(jd);\n },\n\n /** Convert this date to a standard (Gregorian) JavaScript Date.\n @memberof CDate\n @return {Date} The equivalent JavaScript date. */\n toJSDate: function() {\n return this._calendar.toJSDate(this);\n },\n\n /** Create a new date from a standard (Gregorian) JavaScript Date.\n @memberof CDate\n @param jsd {Date} The JavaScript date to convert.\n @return {CDate} The equivalent date. */\n fromJSDate: function(jsd) {\n return this._calendar.fromJSDate(jsd);\n },\n\n /** Convert to a string for display.\n @memberof CDate\n @return {string} This date as a string. */\n toString: function() {\n return (this.year() < 0 ? '-' : '') + pad(Math.abs(this.year()), 4) +\n '-' + pad(this.month(), 2) + '-' + pad(this.day(), 2);\n }\n});\n\n/** Basic functionality for all calendars.\n Other calendars should extend this:\n
OtherCalendar.prototype = new BaseCalendar;
\n @class BaseCalendar */\nfunction BaseCalendar() {\n this.shortYearCutoff = '+10';\n}\n\nassign(BaseCalendar.prototype, {\n _validateLevel: 0, // \"Stack\" to turn validation on/off\n\n /** Create a new date within this calendar - today if no parameters given.\n @memberof BaseCalendar\n @param year {CDate|number} The date to duplicate or the year for the date.\n @param [month] {number} The month for the date.\n @param [day] {number} The day for the date.\n @return {CDate} The new date.\n @throws Error if not a valid date or a different calendar used. */\n newDate: function(year, month, day) {\n if (year == null) {\n return this.today();\n }\n if (year.year) {\n this._validate(year, month, day,\n _exports.local.invalidDate || _exports.regionalOptions[''].invalidDate);\n day = year.day();\n month = year.month();\n year = year.year();\n }\n return new CDate(this, year, month, day);\n },\n\n /** Create a new date for today.\n @memberof BaseCalendar\n @return {CDate} Today's date. */\n today: function() {\n return this.fromJSDate(new Date());\n },\n\n /** Retrieve the epoch designator for this date.\n @memberof BaseCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {string} The current epoch.\n @throws Error if an invalid year or a different calendar used. */\n epoch: function(year) {\n var date = this._validate(year, this.minMonth, this.minDay,\n _exports.local.invalidYear || _exports.regionalOptions[''].invalidYear);\n return (date.year() < 0 ? this.local.epochs[0] : this.local.epochs[1]);\n },\n\n /** Format the year, if not a simple sequential number\n @memberof BaseCalendar\n @param year {CDate|number} The date to format or the year to format.\n @return {string} The formatted year.\n @throws Error if an invalid year or a different calendar used. */\n formatYear: function(year) {\n var date = this._validate(year, this.minMonth, this.minDay,\n _exports.local.invalidYear || _exports.regionalOptions[''].invalidYear);\n return (date.year() < 0 ? '-' : '') + pad(Math.abs(date.year()), 4)\n },\n\n /** Retrieve the number of months in a year.\n @memberof BaseCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {number} The number of months.\n @throws Error if an invalid year or a different calendar used. */\n monthsInYear: function(year) {\n this._validate(year, this.minMonth, this.minDay,\n _exports.local.invalidYear || _exports.regionalOptions[''].invalidYear);\n return 12;\n },\n\n /** Calculate the month's ordinal position within the year -\n for those calendars that don't start at month 1!\n @memberof BaseCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param month {number} The month to examine.\n @return {number} The ordinal position, starting from minMonth.\n @throws Error if an invalid year/month or a different calendar used. */\n monthOfYear: function(year, month) {\n var date = this._validate(year, month, this.minDay,\n _exports.local.invalidMonth || _exports.regionalOptions[''].invalidMonth);\n return (date.month() + this.monthsInYear(date) - this.firstMonth) %\n this.monthsInYear(date) + this.minMonth;\n },\n\n /** Calculate actual month from ordinal position, starting from minMonth.\n @memberof BaseCalendar\n @param year {number} The year to examine.\n @param ord {number} The month's ordinal position.\n @return {number} The month's number.\n @throws Error if an invalid year/month. */\n fromMonthOfYear: function(year, ord) {\n var m = (ord + this.firstMonth - 2 * this.minMonth) %\n this.monthsInYear(year) + this.minMonth;\n this._validate(year, m, this.minDay,\n _exports.local.invalidMonth || _exports.regionalOptions[''].invalidMonth);\n return m;\n },\n\n /** Retrieve the number of days in a year.\n @memberof BaseCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {number} The number of days.\n @throws Error if an invalid year or a different calendar used. */\n daysInYear: function(year) {\n var date = this._validate(year, this.minMonth, this.minDay,\n _exports.local.invalidYear || _exports.regionalOptions[''].invalidYear);\n return (this.leapYear(date) ? 366 : 365);\n },\n\n /** Retrieve the day of the year for a date.\n @memberof BaseCalendar\n @param year {CDate|number} The date to convert or the year to convert.\n @param [month] {number} The month to convert.\n @param [day] {number} The day to convert.\n @return {number} The day of the year.\n @throws Error if an invalid date or a different calendar used. */\n dayOfYear: function(year, month, day) {\n var date = this._validate(year, month, day,\n _exports.local.invalidDate || _exports.regionalOptions[''].invalidDate);\n return date.toJD() - this.newDate(date.year(),\n this.fromMonthOfYear(date.year(), this.minMonth), this.minDay).toJD() + 1;\n },\n\n /** Retrieve the number of days in a week.\n @memberof BaseCalendar\n @return {number} The number of days. */\n daysInWeek: function() {\n return 7;\n },\n\n /** Retrieve the day of the week for a date.\n @memberof BaseCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {number} The day of the week: 0 to number of days - 1.\n @throws Error if an invalid date or a different calendar used. */\n dayOfWeek: function(year, month, day) {\n var date = this._validate(year, month, day,\n _exports.local.invalidDate || _exports.regionalOptions[''].invalidDate);\n return (Math.floor(this.toJD(date)) + 2) % this.daysInWeek();\n },\n\n /** Retrieve additional information about a date.\n @memberof BaseCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {object} Additional information - contents depends on calendar.\n @throws Error if an invalid date or a different calendar used. */\n extraInfo: function(year, month, day) {\n this._validate(year, month, day,\n _exports.local.invalidDate || _exports.regionalOptions[''].invalidDate);\n return {};\n },\n\n /** Add period(s) to a date.\n Cater for no year zero.\n @memberof BaseCalendar\n @param date {CDate} The starting date.\n @param offset {number} The number of periods to adjust by.\n @param period {string} One of 'y' for year, 'm' for month, 'w' for week, 'd' for day.\n @return {CDate} The updated date.\n @throws Error if a different calendar used. */\n add: function(date, offset, period) {\n this._validate(date, this.minMonth, this.minDay,\n _exports.local.invalidDate || _exports.regionalOptions[''].invalidDate);\n return this._correctAdd(date, this._add(date, offset, period), offset, period);\n },\n\n /** Add period(s) to a date.\n @memberof BaseCalendar\n @private\n @param date {CDate} The starting date.\n @param offset {number} The number of periods to adjust by.\n @param period {string} One of 'y' for year, 'm' for month, 'w' for week, 'd' for day.\n @return {CDate} The updated date. */\n _add: function(date, offset, period) {\n this._validateLevel++;\n if (period === 'd' || period === 'w') {\n var jd = date.toJD() + offset * (period === 'w' ? this.daysInWeek() : 1);\n var d = date.calendar().fromJD(jd);\n this._validateLevel--;\n return [d.year(), d.month(), d.day()];\n }\n try {\n var y = date.year() + (period === 'y' ? offset : 0);\n var m = date.monthOfYear() + (period === 'm' ? offset : 0);\n var d = date.day();// + (period === 'd' ? offset : 0) +\n //(period === 'w' ? offset * this.daysInWeek() : 0);\n var resyncYearMonth = function(calendar) {\n while (m < calendar.minMonth) {\n y--;\n m += calendar.monthsInYear(y);\n }\n var yearMonths = calendar.monthsInYear(y);\n while (m > yearMonths - 1 + calendar.minMonth) {\n y++;\n m -= yearMonths;\n yearMonths = calendar.monthsInYear(y);\n }\n };\n if (period === 'y') {\n if (date.month() !== this.fromMonthOfYear(y, m)) { // Hebrew\n m = this.newDate(y, date.month(), this.minDay).monthOfYear();\n }\n m = Math.min(m, this.monthsInYear(y));\n d = Math.min(d, this.daysInMonth(y, this.fromMonthOfYear(y, m)));\n }\n else if (period === 'm') {\n resyncYearMonth(this);\n d = Math.min(d, this.daysInMonth(y, this.fromMonthOfYear(y, m)));\n }\n var ymd = [y, this.fromMonthOfYear(y, m), d];\n this._validateLevel--;\n return ymd;\n }\n catch (e) {\n this._validateLevel--;\n throw e;\n }\n },\n\n /** Correct a candidate date after adding period(s) to a date.\n Handle no year zero if necessary.\n @memberof BaseCalendar\n @private\n @param date {CDate} The starting date.\n @param ymd {number[]} The added date.\n @param offset {number} The number of periods to adjust by.\n @param period {string} One of 'y' for year, 'm' for month, 'w' for week, 'd' for day.\n @return {CDate} The updated date. */\n _correctAdd: function(date, ymd, offset, period) {\n if (!this.hasYearZero && (period === 'y' || period === 'm')) {\n if (ymd[0] === 0 || // In year zero\n (date.year() > 0) !== (ymd[0] > 0)) { // Crossed year zero\n var adj = {y: [1, 1, 'y'], m: [1, this.monthsInYear(-1), 'm'],\n w: [this.daysInWeek(), this.daysInYear(-1), 'd'],\n d: [1, this.daysInYear(-1), 'd']}[period];\n var dir = (offset < 0 ? -1 : +1);\n ymd = this._add(date, offset * adj[0] + dir * adj[1], adj[2]);\n }\n }\n return date.date(ymd[0], ymd[1], ymd[2]);\n },\n\n /** Set a portion of the date.\n @memberof BaseCalendar\n @param date {CDate} The starting date.\n @param value {number} The new value for the period.\n @param period {string} One of 'y' for year, 'm' for month, 'd' for day.\n @return {CDate} The updated date.\n @throws Error if an invalid date or a different calendar used. */\n set: function(date, value, period) {\n this._validate(date, this.minMonth, this.minDay,\n _exports.local.invalidDate || _exports.regionalOptions[''].invalidDate);\n var y = (period === 'y' ? value : date.year());\n var m = (period === 'm' ? value : date.month());\n var d = (period === 'd' ? value : date.day());\n if (period === 'y' || period === 'm') {\n d = Math.min(d, this.daysInMonth(y, m));\n }\n return date.date(y, m, d);\n },\n\n /** Determine whether a date is valid for this calendar.\n @memberof BaseCalendar\n @param year {number} The year to examine.\n @param month {number} The month to examine.\n @param day {number} The day to examine.\n @return {boolean} true if a valid date, false if not. */\n isValid: function(year, month, day) {\n this._validateLevel++;\n var valid = (this.hasYearZero || year !== 0);\n if (valid) {\n var date = this.newDate(year, month, this.minDay);\n valid = (month >= this.minMonth && month - this.minMonth < this.monthsInYear(date)) &&\n (day >= this.minDay && day - this.minDay < this.daysInMonth(date));\n }\n this._validateLevel--;\n return valid;\n },\n\n /** Convert the date to a standard (Gregorian) JavaScript Date.\n @memberof BaseCalendar\n @param year {CDate|number} The date to convert or the year to convert.\n @param [month] {number} The month to convert.\n @param [day] {number} The day to convert.\n @return {Date} The equivalent JavaScript date.\n @throws Error if an invalid date or a different calendar used. */\n toJSDate: function(year, month, day) {\n var date = this._validate(year, month, day,\n _exports.local.invalidDate || _exports.regionalOptions[''].invalidDate);\n return _exports.instance().fromJD(this.toJD(date)).toJSDate();\n },\n\n /** Convert the date from a standard (Gregorian) JavaScript Date.\n @memberof BaseCalendar\n @param jsd {Date} The JavaScript date.\n @return {CDate} The equivalent calendar date. */\n fromJSDate: function(jsd) {\n return this.fromJD(_exports.instance().fromJSDate(jsd).toJD());\n },\n\n /** Check that a candidate date is from the same calendar and is valid.\n @memberof BaseCalendar\n @private\n @param year {CDate|number} The date to validate or the year to validate.\n @param [month] {number} The month to validate.\n @param [day] {number} The day to validate.\n @param error {string} Rrror message if invalid.\n @throws Error if different calendars used or invalid date. */\n _validate: function(year, month, day, error) {\n if (year.year) {\n if (this._validateLevel === 0 && this.name !== year.calendar().name) {\n throw (_exports.local.differentCalendars || _exports.regionalOptions[''].differentCalendars).\n replace(/\\{0\\}/, this.local.name).replace(/\\{1\\}/, year.calendar().local.name);\n }\n return year;\n }\n try {\n this._validateLevel++;\n if (this._validateLevel === 1 && !this.isValid(year, month, day)) {\n throw error.replace(/\\{0\\}/, this.local.name);\n }\n var date = this.newDate(year, month, day);\n this._validateLevel--;\n return date;\n }\n catch (e) {\n this._validateLevel--;\n throw e;\n }\n }\n});\n\n/** Implementation of the Proleptic Gregorian Calendar.\n See http://en.wikipedia.org/wiki/Gregorian_calendar\n and http://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar.\n @class GregorianCalendar\n @augments BaseCalendar\n @param [language=''] {string} The language code (default English) for localisation. */\nfunction GregorianCalendar(language) {\n this.local = this.regionalOptions[language] || this.regionalOptions[''];\n}\n\nGregorianCalendar.prototype = new BaseCalendar;\n\nassign(GregorianCalendar.prototype, {\n /** The calendar name.\n @memberof GregorianCalendar */\n name: 'Gregorian',\n /** Julian date of start of Gregorian epoch: 1 January 0001 CE.\n @memberof GregorianCalendar */\n jdEpoch: 1721425.5,\n /** Days per month in a common year.\n @memberof GregorianCalendar */\n daysPerMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],\n /** true if has a year zero, false if not.\n @memberof GregorianCalendar */\n hasYearZero: false,\n /** The minimum month number.\n @memberof GregorianCalendar */\n minMonth: 1,\n /** The first month in the year.\n @memberof GregorianCalendar */\n firstMonth: 1,\n /** The minimum day number.\n @memberof GregorianCalendar */\n minDay: 1,\n\n /** Localisations for the plugin.\n Entries are objects indexed by the language code ('' being the default US/English).\n Each object has the following attributes.\n @memberof GregorianCalendar\n @property name {string} The calendar name.\n @property epochs {string[]} The epoch names.\n @property monthNames {string[]} The long names of the months of the year.\n @property monthNamesShort {string[]} The short names of the months of the year.\n @property dayNames {string[]} The long names of the days of the week.\n @property dayNamesShort {string[]} The short names of the days of the week.\n @property dayNamesMin {string[]} The minimal names of the days of the week.\n @property dateFormat {string} The date format for this calendar.\n See the options on formatDate for details.\n @property firstDay {number} The number of the first day of the week, starting at 0.\n @property isRTL {number} true if this localisation reads right-to-left. */\n regionalOptions: { // Localisations\n '': {\n name: 'Gregorian',\n epochs: ['BCE', 'CE'],\n monthNames: ['January', 'February', 'March', 'April', 'May', 'June',\n 'July', 'August', 'September', 'October', 'November', 'December'],\n monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\n dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n dayNamesMin: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],\n digits: null,\n dateFormat: 'mm/dd/yyyy',\n firstDay: 0,\n isRTL: false\n }\n },\n \n /** Determine whether this date is in a leap year.\n @memberof GregorianCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {boolean} true if this is a leap year, false if not.\n @throws Error if an invalid year or a different calendar used. */\n leapYear: function(year) {\n var date = this._validate(year, this.minMonth, this.minDay,\n _exports.local.invalidYear || _exports.regionalOptions[''].invalidYear);\n var year = date.year() + (date.year() < 0 ? 1 : 0); // No year zero\n return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);\n },\n\n /** Determine the week of the year for a date - ISO 8601.\n @memberof GregorianCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {number} The week of the year, starting from 1.\n @throws Error if an invalid date or a different calendar used. */\n weekOfYear: function(year, month, day) {\n // Find Thursday of this week starting on Monday\n var checkDate = this.newDate(year, month, day);\n checkDate.add(4 - (checkDate.dayOfWeek() || 7), 'd');\n return Math.floor((checkDate.dayOfYear() - 1) / 7) + 1;\n },\n\n /** Retrieve the number of days in a month.\n @memberof GregorianCalendar\n @param year {CDate|number} The date to examine or the year of the month.\n @param [month] {number} The month.\n @return {number} The number of days in this month.\n @throws Error if an invalid month/year or a different calendar used. */\n daysInMonth: function(year, month) {\n var date = this._validate(year, month, this.minDay,\n _exports.local.invalidMonth || _exports.regionalOptions[''].invalidMonth);\n return this.daysPerMonth[date.month() - 1] +\n (date.month() === 2 && this.leapYear(date.year()) ? 1 : 0);\n },\n\n /** Determine whether this date is a week day.\n @memberof GregorianCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {boolean} true if a week day, false if not.\n @throws Error if an invalid date or a different calendar used. */\n weekDay: function(year, month, day) {\n return (this.dayOfWeek(year, month, day) || 7) < 6;\n },\n\n /** Retrieve the Julian date equivalent for this date,\n i.e. days since January 1, 4713 BCE Greenwich noon.\n @memberof GregorianCalendar\n @param year {CDate|number} The date to convert or the year to convert.\n @param [month] {number} The month to convert.\n @param [day] {number} The day to convert.\n @return {number} The equivalent Julian date.\n @throws Error if an invalid date or a different calendar used. */\n toJD: function(year, month, day) {\n var date = this._validate(year, month, day,\n _exports.local.invalidDate || _exports.regionalOptions[''].invalidDate);\n year = date.year();\n month = date.month();\n day = date.day();\n if (year < 0) { year++; } // No year zero\n // Jean Meeus algorithm, \"Astronomical Algorithms\", 1991\n if (month < 3) {\n month += 12;\n year--;\n }\n var a = Math.floor(year / 100);\n var b = 2 - a + Math.floor(a / 4);\n return Math.floor(365.25 * (year + 4716)) +\n Math.floor(30.6001 * (month + 1)) + day + b - 1524.5;\n },\n\n /** Create a new date from a Julian date.\n @memberof GregorianCalendar\n @param jd {number} The Julian date to convert.\n @return {CDate} The equivalent date. */\n fromJD: function(jd) {\n // Jean Meeus algorithm, \"Astronomical Algorithms\", 1991\n var z = Math.floor(jd + 0.5);\n var a = Math.floor((z - 1867216.25) / 36524.25);\n a = z + 1 + a - Math.floor(a / 4);\n var b = a + 1524;\n var c = Math.floor((b - 122.1) / 365.25);\n var d = Math.floor(365.25 * c);\n var e = Math.floor((b - d) / 30.6001);\n var day = b - d - Math.floor(e * 30.6001);\n var month = e - (e > 13.5 ? 13 : 1);\n var year = c - (month > 2.5 ? 4716 : 4715);\n if (year <= 0) { year--; } // No year zero\n return this.newDate(year, month, day);\n },\n\n /** Convert this date to a standard (Gregorian) JavaScript Date.\n @memberof GregorianCalendar\n @param year {CDate|number} The date to convert or the year to convert.\n @param [month] {number} The month to convert.\n @param [day] {number} The day to convert.\n @return {Date} The equivalent JavaScript date.\n @throws Error if an invalid date or a different calendar used. */\n toJSDate: function(year, month, day) {\n var date = this._validate(year, month, day,\n _exports.local.invalidDate || _exports.regionalOptions[''].invalidDate);\n var jsd = new Date(date.year(), date.month() - 1, date.day());\n jsd.setHours(0);\n jsd.setMinutes(0);\n jsd.setSeconds(0);\n jsd.setMilliseconds(0);\n // Hours may be non-zero on daylight saving cut-over:\n // > 12 when midnight changeover, but then cannot generate\n // midnight datetime, so jump to 1AM, otherwise reset.\n jsd.setHours(jsd.getHours() > 12 ? jsd.getHours() + 2 : 0);\n return jsd;\n },\n\n /** Create a new date from a standard (Gregorian) JavaScript Date.\n @memberof GregorianCalendar\n @param jsd {Date} The JavaScript date to convert.\n @return {CDate} The equivalent date. */\n fromJSDate: function(jsd) {\n return this.newDate(jsd.getFullYear(), jsd.getMonth() + 1, jsd.getDate());\n }\n});\n\n// Singleton manager\nvar _exports = module.exports = new Calendars();\n\n// Date template\n_exports.cdate = CDate;\n\n// Base calendar template\n_exports.baseCalendar = BaseCalendar;\n\n// Gregorian calendar implementation\n_exports.calendars.gregorian = GregorianCalendar;\n\n\n},{\"object-assign\":247}],347:[function(_dereq_,module,exports){\n/*\n * World Calendars\n * https://github.com/alexcjohnson/world-calendars\n *\n * Batch-converted from kbwood/calendars\n * Many thanks to Keith Wood and all of the contributors to the original project!\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* http://keith-wood.name/calendars.html\n Calendars extras for jQuery v2.0.2.\n Written by Keith Wood (wood.keith{at}optusnet.com.au) August 2009.\n Available under the MIT (http://keith-wood.name/licence.html) license. \n Please attribute the author if you use it. */\n\nvar assign = _dereq_('object-assign');\nvar main = _dereq_('./main');\n\n\nassign(main.regionalOptions[''], {\n invalidArguments: 'Invalid arguments',\n invalidFormat: 'Cannot format a date from another calendar',\n missingNumberAt: 'Missing number at position {0}',\n unknownNameAt: 'Unknown name at position {0}',\n unexpectedLiteralAt: 'Unexpected literal at position {0}',\n unexpectedText: 'Additional text found at end'\n});\nmain.local = main.regionalOptions[''];\n\nassign(main.cdate.prototype, {\n\n /** Format this date.\n Found in the jquery.calendars.plus.js module.\n @memberof CDate\n @param [format] {string} The date format to use (see formatDate).\n @param [settings] {object} Options for the formatDate function.\n @return {string} The formatted date. */\n formatDate: function(format, settings) {\n if (typeof format !== 'string') {\n settings = format;\n format = '';\n }\n return this._calendar.formatDate(format || '', this, settings);\n }\n});\n\nassign(main.baseCalendar.prototype, {\n\n UNIX_EPOCH: main.instance().newDate(1970, 1, 1).toJD(),\n SECS_PER_DAY: 24 * 60 * 60,\n TICKS_EPOCH: main.instance().jdEpoch, // 1 January 0001 CE\n TICKS_PER_DAY: 24 * 60 * 60 * 10000000,\n\n /** Date form for ATOM (RFC 3339/ISO 8601).\n Found in the jquery.calendars.plus.js module.\n @memberof BaseCalendar */\n ATOM: 'yyyy-mm-dd',\n /** Date form for cookies.\n Found in the jquery.calendars.plus.js module.\n @memberof BaseCalendar */\n COOKIE: 'D, dd M yyyy',\n /** Date form for full date.\n Found in the jquery.calendars.plus.js module.\n @memberof BaseCalendar */\n FULL: 'DD, MM d, yyyy',\n /** Date form for ISO 8601.\n Found in the jquery.calendars.plus.js module.\n @memberof BaseCalendar */\n ISO_8601: 'yyyy-mm-dd',\n /** Date form for Julian date.\n Found in the jquery.calendars.plus.js module.\n @memberof BaseCalendar */\n JULIAN: 'J',\n /** Date form for RFC 822.\n Found in the jquery.calendars.plus.js module.\n @memberof BaseCalendar */\n RFC_822: 'D, d M yy',\n /** Date form for RFC 850.\n Found in the jquery.calendars.plus.js module.\n @memberof BaseCalendar */\n RFC_850: 'DD, dd-M-yy',\n /** Date form for RFC 1036.\n Found in the jquery.calendars.plus.js module.\n @memberof BaseCalendar */\n RFC_1036: 'D, d M yy',\n /** Date form for RFC 1123.\n Found in the jquery.calendars.plus.js module.\n @memberof BaseCalendar */\n RFC_1123: 'D, d M yyyy',\n /** Date form for RFC 2822.\n Found in the jquery.calendars.plus.js module.\n @memberof BaseCalendar */\n RFC_2822: 'D, d M yyyy',\n /** Date form for RSS (RFC 822).\n Found in the jquery.calendars.plus.js module.\n @memberof BaseCalendar */\n RSS: 'D, d M yy',\n /** Date form for Windows ticks.\n Found in the jquery.calendars.plus.js module.\n @memberof BaseCalendar */\n TICKS: '!',\n /** Date form for Unix timestamp.\n Found in the jquery.calendars.plus.js module.\n @memberof BaseCalendar */\n TIMESTAMP: '@',\n /** Date form for W3c (ISO 8601).\n Found in the jquery.calendars.plus.js module.\n @memberof BaseCalendar */\n W3C: 'yyyy-mm-dd',\n\n /** Format a date object into a string value.\n The format can be combinations of the following:\n
    \n
  • d - day of month (no leading zero)
  • \n
  • dd - day of month (two digit)
  • \n
  • o - day of year (no leading zeros)
  • \n
  • oo - day of year (three digit)
  • \n
  • D - day name short
  • \n
  • DD - day name long
  • \n
  • w - week of year (no leading zero)
  • \n
  • ww - week of year (two digit)
  • \n
  • m - month of year (no leading zero)
  • \n
  • mm - month of year (two digit)
  • \n
  • M - month name short
  • \n
  • MM - month name long
  • \n
  • yy - year (two digit)
  • \n
  • yyyy - year (four digit)
  • \n
  • YYYY - formatted year
  • \n
  • J - Julian date (days since January 1, 4713 BCE Greenwich noon)
  • \n
  • @ - Unix timestamp (s since 01/01/1970)
  • \n
  • ! - Windows ticks (100ns since 01/01/0001)
  • \n
  • '...' - literal text
  • \n
  • '' - single quote
  • \n
\n Found in the jquery.calendars.plus.js module.\n @memberof BaseCalendar\n @param [format] {string} The desired format of the date (defaults to calendar format).\n @param date {CDate} The date value to format.\n @param [settings] {object} Addition options, whose attributes include:\n @property [dayNamesShort] {string[]} Abbreviated names of the days from Sunday.\n @property [dayNames] {string[]} Names of the days from Sunday.\n @property [monthNamesShort] {string[]} Abbreviated names of the months.\n @property [monthNames] {string[]} Names of the months.\n @property [calculateWeek] {CalendarsPickerCalculateWeek} Function that determines week of the year.\n @property [localNumbers=false] {boolean} true to localise numbers (if available),\n false to use normal Arabic numerals.\n @return {string} The date in the above format.\n @throws Errors if the date is from a different calendar. */\n formatDate: function(format, date, settings) {\n if (typeof format !== 'string') {\n settings = date;\n date = format;\n format = '';\n }\n if (!date) {\n return '';\n }\n if (date.calendar() !== this) {\n throw main.local.invalidFormat || main.regionalOptions[''].invalidFormat;\n }\n format = format || this.local.dateFormat;\n settings = settings || {};\n var dayNamesShort = settings.dayNamesShort || this.local.dayNamesShort;\n var dayNames = settings.dayNames || this.local.dayNames;\n var monthNumbers = settings.monthNumbers || this.local.monthNumbers;\n var monthNamesShort = settings.monthNamesShort || this.local.monthNamesShort;\n var monthNames = settings.monthNames || this.local.monthNames;\n var calculateWeek = settings.calculateWeek || this.local.calculateWeek;\n // Check whether a format character is doubled\n var doubled = function(match, step) {\n var matches = 1;\n while (iFormat + matches < format.length && format.charAt(iFormat + matches) === match) {\n matches++;\n }\n iFormat += matches - 1;\n return Math.floor(matches / (step || 1)) > 1;\n };\n // Format a number, with leading zeroes if necessary\n var formatNumber = function(match, value, len, step) {\n var num = '' + value;\n if (doubled(match, step)) {\n while (num.length < len) {\n num = '0' + num;\n }\n }\n return num;\n };\n // Format a name, short or long as requested\n var formatName = function(match, value, shortNames, longNames) {\n return (doubled(match) ? longNames[value] : shortNames[value]);\n };\n // Format month number\n // (e.g. Chinese calendar needs to account for intercalary months)\n var calendar = this;\n var formatMonth = function(date) {\n return (typeof monthNumbers === 'function') ?\n monthNumbers.call(calendar, date, doubled('m')) :\n localiseNumbers(formatNumber('m', date.month(), 2));\n };\n // Format a month name, short or long as requested\n var formatMonthName = function(date, useLongName) {\n if (useLongName) {\n return (typeof monthNames === 'function') ?\n monthNames.call(calendar, date) :\n monthNames[date.month() - calendar.minMonth];\n } else {\n return (typeof monthNamesShort === 'function') ?\n monthNamesShort.call(calendar, date) :\n monthNamesShort[date.month() - calendar.minMonth];\n }\n };\n // Localise numbers if requested and available\n var digits = this.local.digits;\n var localiseNumbers = function(value) {\n return (settings.localNumbers && digits ? digits(value) : value);\n };\n var output = '';\n var literal = false;\n for (var iFormat = 0; iFormat < format.length; iFormat++) {\n if (literal) {\n if (format.charAt(iFormat) === \"'\" && !doubled(\"'\")) {\n literal = false;\n }\n else {\n output += format.charAt(iFormat);\n }\n }\n else {\n switch (format.charAt(iFormat)) {\n case 'd': output += localiseNumbers(formatNumber('d', date.day(), 2)); break;\n case 'D': output += formatName('D', date.dayOfWeek(),\n dayNamesShort, dayNames); break;\n case 'o': output += formatNumber('o', date.dayOfYear(), 3); break;\n case 'w': output += formatNumber('w', date.weekOfYear(), 2); break;\n case 'm': output += formatMonth(date); break;\n case 'M': output += formatMonthName(date, doubled('M')); break;\n case 'y':\n output += (doubled('y', 2) ? date.year() :\n (date.year() % 100 < 10 ? '0' : '') + date.year() % 100);\n break;\n case 'Y':\n doubled('Y', 2);\n output += date.formatYear();\n break;\n case 'J': output += date.toJD(); break;\n case '@': output += (date.toJD() - this.UNIX_EPOCH) * this.SECS_PER_DAY; break;\n case '!': output += (date.toJD() - this.TICKS_EPOCH) * this.TICKS_PER_DAY; break;\n case \"'\":\n if (doubled(\"'\")) {\n output += \"'\";\n }\n else {\n literal = true;\n }\n break;\n default:\n output += format.charAt(iFormat);\n }\n }\n }\n return output;\n },\n\n /** Parse a string value into a date object.\n See formatDate for the possible formats, plus:\n
    \n
  • * - ignore rest of string
  • \n
\n Found in the jquery.calendars.plus.js module.\n @memberof BaseCalendar\n @param format {string} The expected format of the date ('' for default calendar format).\n @param value {string} The date in the above format.\n @param [settings] {object} Additional options whose attributes include:\n @property [shortYearCutoff] {number} The cutoff year for determining the century.\n @property [dayNamesShort] {string[]} Abbreviated names of the days from Sunday.\n @property [dayNames] {string[]} Names of the days from Sunday.\n @property [monthNamesShort] {string[]} Abbreviated names of the months.\n @property [monthNames] {string[]} Names of the months.\n @return {CDate} The extracted date value or null if value is blank.\n @throws Errors if the format and/or value are missing,\n if the value doesn't match the format, or if the date is invalid. */\n parseDate: function(format, value, settings) {\n if (value == null) {\n throw main.local.invalidArguments || main.regionalOptions[''].invalidArguments;\n }\n value = (typeof value === 'object' ? value.toString() : value + '');\n if (value === '') {\n return null;\n }\n format = format || this.local.dateFormat;\n settings = settings || {};\n var shortYearCutoff = settings.shortYearCutoff || this.shortYearCutoff;\n shortYearCutoff = (typeof shortYearCutoff !== 'string' ? shortYearCutoff :\n this.today().year() % 100 + parseInt(shortYearCutoff, 10));\n var dayNamesShort = settings.dayNamesShort || this.local.dayNamesShort;\n var dayNames = settings.dayNames || this.local.dayNames;\n var parseMonth = settings.parseMonth || this.local.parseMonth;\n var monthNumbers = settings.monthNumbers || this.local.monthNumbers;\n var monthNamesShort = settings.monthNamesShort || this.local.monthNamesShort;\n var monthNames = settings.monthNames || this.local.monthNames;\n var jd = -1;\n var year = -1;\n var month = -1;\n var day = -1;\n var doy = -1;\n var shortYear = false;\n var literal = false;\n // Check whether a format character is doubled\n var doubled = function(match, step) {\n var matches = 1;\n while (iFormat + matches < format.length && format.charAt(iFormat + matches) === match) {\n matches++;\n }\n iFormat += matches - 1;\n return Math.floor(matches / (step || 1)) > 1;\n };\n // Extract a number from the string value\n var getNumber = function(match, step) {\n var isDoubled = doubled(match, step);\n var size = [2, 3, isDoubled ? 4 : 2, isDoubled ? 4 : 2, 10, 11, 20]['oyYJ@!'.indexOf(match) + 1];\n var digits = new RegExp('^-?\\\\d{1,' + size + '}');\n var num = value.substring(iValue).match(digits);\n if (!num) {\n throw (main.local.missingNumberAt || main.regionalOptions[''].missingNumberAt).\n replace(/\\{0\\}/, iValue);\n }\n iValue += num[0].length;\n return parseInt(num[0], 10);\n };\n // Extract a month number from the string value\n var calendar = this;\n var getMonthNumber = function() {\n if (typeof monthNumbers === 'function') {\n doubled('m'); // update iFormat\n var month = monthNumbers.call(calendar, value.substring(iValue));\n iValue += month.length;\n return month;\n }\n\n return getNumber('m');\n };\n // Extract a name from the string value and convert to an index\n var getName = function(match, shortNames, longNames, step) {\n var names = (doubled(match, step) ? longNames : shortNames);\n for (var i = 0; i < names.length; i++) {\n if (value.substr(iValue, names[i].length).toLowerCase() === names[i].toLowerCase()) {\n iValue += names[i].length;\n return i + calendar.minMonth;\n }\n }\n throw (main.local.unknownNameAt || main.regionalOptions[''].unknownNameAt).\n replace(/\\{0\\}/, iValue);\n };\n // Extract a month number from the string value\n var getMonthName = function() {\n if (typeof monthNames === 'function') {\n var month = doubled('M') ?\n monthNames.call(calendar, value.substring(iValue)) :\n monthNamesShort.call(calendar, value.substring(iValue));\n iValue += month.length;\n return month;\n }\n\n return getName('M', monthNamesShort, monthNames);\n };\n // Confirm that a literal character matches the string value\n var checkLiteral = function() {\n if (value.charAt(iValue) !== format.charAt(iFormat)) {\n throw (main.local.unexpectedLiteralAt ||\n main.regionalOptions[''].unexpectedLiteralAt).replace(/\\{0\\}/, iValue);\n }\n iValue++;\n };\n var iValue = 0;\n for (var iFormat = 0; iFormat < format.length; iFormat++) {\n if (literal) {\n if (format.charAt(iFormat) === \"'\" && !doubled(\"'\")) {\n literal = false;\n }\n else {\n checkLiteral();\n }\n }\n else {\n switch (format.charAt(iFormat)) {\n case 'd': day = getNumber('d'); break;\n case 'D': getName('D', dayNamesShort, dayNames); break;\n case 'o': doy = getNumber('o'); break;\n case 'w': getNumber('w'); break;\n case 'm': month = getMonthNumber(); break;\n case 'M': month = getMonthName(); break;\n case 'y':\n var iSave = iFormat;\n shortYear = !doubled('y', 2);\n iFormat = iSave;\n year = getNumber('y', 2);\n break;\n case 'Y': year = getNumber('Y', 2); break;\n case 'J':\n jd = getNumber('J') + 0.5;\n if (value.charAt(iValue) === '.') {\n iValue++;\n getNumber('J');\n }\n break;\n case '@': jd = getNumber('@') / this.SECS_PER_DAY + this.UNIX_EPOCH; break;\n case '!': jd = getNumber('!') / this.TICKS_PER_DAY + this.TICKS_EPOCH; break;\n case '*': iValue = value.length; break;\n case \"'\":\n if (doubled(\"'\")) {\n checkLiteral();\n }\n else {\n literal = true;\n }\n break;\n default: checkLiteral();\n }\n }\n }\n if (iValue < value.length) {\n throw main.local.unexpectedText || main.regionalOptions[''].unexpectedText;\n }\n if (year === -1) {\n year = this.today().year();\n }\n else if (year < 100 && shortYear) {\n year += (shortYearCutoff === -1 ? 1900 : this.today().year() -\n this.today().year() % 100 - (year <= shortYearCutoff ? 0 : 100));\n }\n if (typeof month === 'string') {\n month = parseMonth.call(this, year, month);\n }\n if (doy > -1) {\n month = 1;\n day = doy;\n for (var dim = this.daysInMonth(year, month); day > dim; dim = this.daysInMonth(year, month)) {\n month++;\n day -= dim;\n }\n }\n return (jd > -1 ? this.fromJD(jd) : this.newDate(year, month, day));\n },\n\n /** A date may be specified as an exact value or a relative one.\n Found in the jquery.calendars.plus.js module.\n @memberof BaseCalendar\n @param dateSpec {CDate|number|string} The date as an object or string in the given format or\n an offset - numeric days from today, or string amounts and periods, e.g. '+1m +2w'.\n @param defaultDate {CDate} The date to use if no other supplied, may be null.\n @param currentDate {CDate} The current date as a possible basis for relative dates,\n if null today is used (optional)\n @param [dateFormat] {string} The expected date format - see formatDate.\n @param [settings] {object} Additional options whose attributes include:\n @property [shortYearCutoff] {number} The cutoff year for determining the century.\n @property [dayNamesShort] {string[]} Abbreviated names of the days from Sunday.\n @property [dayNames] {string[]} Names of the days from Sunday.\n @property [monthNamesShort] {string[]} Abbreviated names of the months.\n @property [monthNames] {string[]} Names of the months.\n @return {CDate} The decoded date. */\n determineDate: function(dateSpec, defaultDate, currentDate, dateFormat, settings) {\n if (currentDate && typeof currentDate !== 'object') {\n settings = dateFormat;\n dateFormat = currentDate;\n currentDate = null;\n }\n if (typeof dateFormat !== 'string') {\n settings = dateFormat;\n dateFormat = '';\n }\n var calendar = this;\n var offsetString = function(offset) {\n try {\n return calendar.parseDate(dateFormat, offset, settings);\n }\n catch (e) {\n // Ignore\n }\n offset = offset.toLowerCase();\n var date = (offset.match(/^c/) && currentDate ?\n currentDate.newDate() : null) || calendar.today();\n var pattern = /([+-]?[0-9]+)\\s*(d|w|m|y)?/g;\n var matches = pattern.exec(offset);\n while (matches) {\n date.add(parseInt(matches[1], 10), matches[2] || 'd');\n matches = pattern.exec(offset);\n }\n return date;\n };\n defaultDate = (defaultDate ? defaultDate.newDate() : null);\n dateSpec = (dateSpec == null ? defaultDate :\n (typeof dateSpec === 'string' ? offsetString(dateSpec) : (typeof dateSpec === 'number' ?\n (isNaN(dateSpec) || dateSpec === Infinity || dateSpec === -Infinity ? defaultDate :\n calendar.today().add(dateSpec, 'd')) : calendar.newDate(dateSpec))));\n return dateSpec;\n }\n});\n\n\n},{\"./main\":346,\"object-assign\":247}],348:[function(_dereq_,module,exports){\n'use strict';\n\n/**\n * All paths are tuned for maximum scalability of the arrowhead,\n * ie throughout arrowwidth=0.3..3 the head is joined smoothly\n * to the line, with the line coming from the left and ending at (0, 0).\n *\n * `backoff` is the distance to move the arrowhead and the end of the line,\n * in order that the arrowhead points to the desired place, either at\n * the tip of the arrow or (in the case of circle or square)\n * the center of the symbol.\n *\n * `noRotate`, if truthy, says that this arrowhead should not rotate with the\n * arrow. That's the case for squares, which should always be straight, and\n * circles, for which it's irrelevant.\n */\n\nmodule.exports = [\n // no arrow\n {\n path: '',\n backoff: 0\n },\n // wide with flat back\n {\n path: 'M-2.4,-3V3L0.6,0Z',\n backoff: 0.6\n },\n // narrower with flat back\n {\n path: 'M-3.7,-2.5V2.5L1.3,0Z',\n backoff: 1.3\n },\n // barbed\n {\n path: 'M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z',\n backoff: 1.55\n },\n // wide line-drawn\n {\n path: 'M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z',\n backoff: 1.6\n },\n // narrower line-drawn\n {\n path: 'M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z',\n backoff: 2\n },\n // circle\n {\n path: 'M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z',\n backoff: 0,\n noRotate: true\n },\n // square\n {\n path: 'M2,2V-2H-2V2Z',\n backoff: 0,\n noRotate: true\n }\n];\n\n},{}],349:[function(_dereq_,module,exports){\n'use strict';\n\nvar ARROWPATHS = _dereq_('./arrow_paths');\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar cartesianConstants = _dereq_('../../plots/cartesian/constants');\nvar templatedArray = _dereq_('../../plot_api/plot_template').templatedArray;\nvar axisPlaceableObjs = _dereq_('../../constants/axis_placeable_objects');\n\nfunction arrowAxisRefDescription(axis) {\n return [\n 'In order for absolute positioning of the arrow to work, *a' + axis +\n 'ref* must be exactly the same as *' + axis + 'ref*, otherwise *a' + axis +\n 'ref* will revert to *pixel* (explained next).',\n 'For relative positioning, *a' + axis + 'ref* can be set to *pixel*,',\n 'in which case the *a' + axis + '* value is specified in pixels',\n 'relative to *' + axis + '*.',\n 'Absolute positioning is useful',\n 'for trendline annotations which should continue to indicate',\n 'the correct trend when zoomed. Relative positioning is useful',\n 'for specifying the text offset for an annotated point.'\n ].join(' ');\n}\n\nfunction arrowCoordinateDescription(axis, lower, upper) {\n return [\n 'Sets the', axis, 'component of the arrow tail about the arrow head.',\n 'If `a' + axis + 'ref` is `pixel`, a positive (negative)',\n 'component corresponds to an arrow pointing',\n 'from', upper, 'to', lower, '(' + lower, 'to', upper + ').',\n 'If `a' + axis + 'ref` is not `pixel` and is exactly the same as `' + axis + 'ref`,',\n 'this is an absolute value on that axis,',\n 'like `' + axis + '`, specified in the same coordinates as `' + axis + 'ref`.'\n ].join(' ');\n}\n\nmodule.exports = templatedArray('annotation', {\n visible: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc+arraydraw',\n },\n\n text: {\n valType: 'string',\n editType: 'calc+arraydraw',\n },\n textangle: {\n valType: 'angle',\n dflt: 0,\n editType: 'calc+arraydraw',\n },\n font: fontAttrs({\n editType: 'calc+arraydraw',\n colorEditType: 'arraydraw',\n }),\n width: {\n valType: 'number',\n min: 1,\n dflt: null,\n editType: 'calc+arraydraw',\n },\n height: {\n valType: 'number',\n min: 1,\n dflt: null,\n editType: 'calc+arraydraw',\n },\n opacity: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 1,\n editType: 'arraydraw',\n },\n align: {\n valType: 'enumerated',\n values: ['left', 'center', 'right'],\n dflt: 'center',\n editType: 'arraydraw',\n },\n valign: {\n valType: 'enumerated',\n values: ['top', 'middle', 'bottom'],\n dflt: 'middle',\n editType: 'arraydraw',\n },\n bgcolor: {\n valType: 'color',\n dflt: 'rgba(0,0,0,0)',\n editType: 'arraydraw',\n },\n bordercolor: {\n valType: 'color',\n dflt: 'rgba(0,0,0,0)',\n editType: 'arraydraw',\n },\n borderpad: {\n valType: 'number',\n min: 0,\n dflt: 1,\n editType: 'calc+arraydraw',\n },\n borderwidth: {\n valType: 'number',\n min: 0,\n dflt: 1,\n editType: 'calc+arraydraw',\n },\n // arrow\n showarrow: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc+arraydraw',\n },\n arrowcolor: {\n valType: 'color',\n editType: 'arraydraw',\n },\n arrowhead: {\n valType: 'integer',\n min: 0,\n max: ARROWPATHS.length,\n dflt: 1,\n editType: 'arraydraw',\n },\n startarrowhead: {\n valType: 'integer',\n min: 0,\n max: ARROWPATHS.length,\n dflt: 1,\n editType: 'arraydraw',\n },\n arrowside: {\n valType: 'flaglist',\n flags: ['end', 'start'],\n extras: ['none'],\n dflt: 'end',\n editType: 'arraydraw',\n },\n arrowsize: {\n valType: 'number',\n min: 0.3,\n dflt: 1,\n editType: 'calc+arraydraw',\n },\n startarrowsize: {\n valType: 'number',\n min: 0.3,\n dflt: 1,\n editType: 'calc+arraydraw',\n },\n arrowwidth: {\n valType: 'number',\n min: 0.1,\n editType: 'calc+arraydraw',\n },\n standoff: {\n valType: 'number',\n min: 0,\n dflt: 0,\n editType: 'calc+arraydraw',\n },\n startstandoff: {\n valType: 'number',\n min: 0,\n dflt: 0,\n editType: 'calc+arraydraw',\n },\n ax: {\n valType: 'any',\n editType: 'calc+arraydraw',\n },\n ay: {\n valType: 'any',\n editType: 'calc+arraydraw',\n },\n axref: {\n valType: 'enumerated',\n dflt: 'pixel',\n values: [\n 'pixel',\n cartesianConstants.idRegex.x.toString()\n ],\n editType: 'calc',\n },\n ayref: {\n valType: 'enumerated',\n dflt: 'pixel',\n values: [\n 'pixel',\n cartesianConstants.idRegex.y.toString()\n ],\n editType: 'calc',\n },\n // positioning\n xref: {\n valType: 'enumerated',\n values: [\n 'paper',\n cartesianConstants.idRegex.x.toString()\n ],\n editType: 'calc',\n },\n x: {\n valType: 'any',\n editType: 'calc+arraydraw',\n },\n xanchor: {\n valType: 'enumerated',\n values: ['auto', 'left', 'center', 'right'],\n dflt: 'auto',\n editType: 'calc+arraydraw',\n },\n xshift: {\n valType: 'number',\n dflt: 0,\n editType: 'calc+arraydraw',\n },\n yref: {\n valType: 'enumerated',\n values: [\n 'paper',\n cartesianConstants.idRegex.y.toString()\n ],\n editType: 'calc',\n },\n y: {\n valType: 'any',\n editType: 'calc+arraydraw',\n },\n yanchor: {\n valType: 'enumerated',\n values: ['auto', 'top', 'middle', 'bottom'],\n dflt: 'auto',\n editType: 'calc+arraydraw',\n },\n yshift: {\n valType: 'number',\n dflt: 0,\n editType: 'calc+arraydraw',\n },\n clicktoshow: {\n valType: 'enumerated',\n values: [false, 'onoff', 'onout'],\n dflt: false,\n editType: 'arraydraw',\n },\n xclick: {\n valType: 'any',\n editType: 'arraydraw',\n },\n yclick: {\n valType: 'any',\n editType: 'arraydraw',\n },\n hovertext: {\n valType: 'string',\n editType: 'arraydraw',\n },\n hoverlabel: {\n bgcolor: {\n valType: 'color',\n editType: 'arraydraw',\n },\n bordercolor: {\n valType: 'color',\n editType: 'arraydraw',\n },\n font: fontAttrs({\n editType: 'arraydraw',\n }),\n editType: 'arraydraw'\n },\n captureevents: {\n valType: 'boolean',\n editType: 'arraydraw',\n },\n editType: 'calc',\n\n _deprecated: {\n ref: {\n valType: 'string',\n editType: 'calc',\n }\n }\n});\n\n},{\"../../constants/axis_placeable_objects\":472,\"../../plot_api/plot_template\":543,\"../../plots/cartesian/constants\":561,\"../../plots/font_attributes\":585,\"./arrow_paths\":348}],350:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Axes = _dereq_('../../plots/cartesian/axes');\n\nvar draw = _dereq_('./draw').draw;\n\n\nmodule.exports = function calcAutorange(gd) {\n var fullLayout = gd._fullLayout;\n var annotationList = Lib.filterVisible(fullLayout.annotations);\n\n if(annotationList.length && gd._fullData.length) {\n return Lib.syncOrAsync([draw, annAutorange], gd);\n }\n};\n\nfunction annAutorange(gd) {\n var fullLayout = gd._fullLayout;\n\n // find the bounding boxes for each of these annotations'\n // relative to their anchor points\n // use the arrow and the text bg rectangle,\n // as the whole anno may include hidden text in its bbox\n Lib.filterVisible(fullLayout.annotations).forEach(function(ann) {\n var xa = Axes.getFromId(gd, ann.xref);\n var ya = Axes.getFromId(gd, ann.yref);\n var xRefType = Axes.getRefType(ann.xref);\n var yRefType = Axes.getRefType(ann.yref);\n\n ann._extremes = {};\n if(xRefType === 'range') calcAxisExpansion(ann, xa);\n if(yRefType === 'range') calcAxisExpansion(ann, ya);\n });\n}\n\nfunction calcAxisExpansion(ann, ax) {\n var axId = ax._id;\n var letter = axId.charAt(0);\n var pos = ann[letter];\n var apos = ann['a' + letter];\n var ref = ann[letter + 'ref'];\n var aref = ann['a' + letter + 'ref'];\n var padplus = ann['_' + letter + 'padplus'];\n var padminus = ann['_' + letter + 'padminus'];\n var shift = {x: 1, y: -1}[letter] * ann[letter + 'shift'];\n var headSize = 3 * ann.arrowsize * ann.arrowwidth || 0;\n var headPlus = headSize + shift;\n var headMinus = headSize - shift;\n var startHeadSize = 3 * ann.startarrowsize * ann.arrowwidth || 0;\n var startHeadPlus = startHeadSize + shift;\n var startHeadMinus = startHeadSize - shift;\n var extremes;\n\n if(aref === ref) {\n // expand for the arrowhead (padded by arrowhead)\n var extremeArrowHead = Axes.findExtremes(ax, [ax.r2c(pos)], {\n ppadplus: headPlus,\n ppadminus: headMinus\n });\n // again for the textbox (padded by textbox)\n var extremeText = Axes.findExtremes(ax, [ax.r2c(apos)], {\n ppadplus: Math.max(padplus, startHeadPlus),\n ppadminus: Math.max(padminus, startHeadMinus)\n });\n extremes = {\n min: [extremeArrowHead.min[0], extremeText.min[0]],\n max: [extremeArrowHead.max[0], extremeText.max[0]]\n };\n } else {\n startHeadPlus = apos ? startHeadPlus + apos : startHeadPlus;\n startHeadMinus = apos ? startHeadMinus - apos : startHeadMinus;\n extremes = Axes.findExtremes(ax, [ax.r2c(pos)], {\n ppadplus: Math.max(padplus, headPlus, startHeadPlus),\n ppadminus: Math.max(padminus, headMinus, startHeadMinus)\n });\n }\n\n ann._extremes[axId] = extremes;\n}\n\n},{\"../../lib\":503,\"../../plots/cartesian/axes\":554,\"./draw\":355}],351:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Registry = _dereq_('../../registry');\nvar arrayEditor = _dereq_('../../plot_api/plot_template').arrayEditor;\n\nmodule.exports = {\n hasClickToShow: hasClickToShow,\n onClick: onClick\n};\n\n/*\n * hasClickToShow: does the given hoverData have ANY annotations which will\n * turn ON if we click here? (used by hover events to set cursor)\n *\n * gd: graphDiv\n * hoverData: a hoverData array, as included with the *plotly_hover* or\n * *plotly_click* events in the `points` attribute\n *\n * returns: boolean\n */\nfunction hasClickToShow(gd, hoverData) {\n var sets = getToggleSets(gd, hoverData);\n return sets.on.length > 0 || sets.explicitOff.length > 0;\n}\n\n/*\n * onClick: perform the toggling (via Plotly.update) implied by clicking\n * at this hoverData\n *\n * gd: graphDiv\n * hoverData: a hoverData array, as included with the *plotly_hover* or\n * *plotly_click* events in the `points` attribute\n *\n * returns: Promise that the update is complete\n */\nfunction onClick(gd, hoverData) {\n var toggleSets = getToggleSets(gd, hoverData);\n var onSet = toggleSets.on;\n var offSet = toggleSets.off.concat(toggleSets.explicitOff);\n var update = {};\n var annotationsOut = gd._fullLayout.annotations;\n var i, editHelpers;\n\n if(!(onSet.length || offSet.length)) return;\n\n for(i = 0; i < onSet.length; i++) {\n editHelpers = arrayEditor(gd.layout, 'annotations', annotationsOut[onSet[i]]);\n editHelpers.modifyItem('visible', true);\n Lib.extendFlat(update, editHelpers.getUpdateObj());\n }\n\n for(i = 0; i < offSet.length; i++) {\n editHelpers = arrayEditor(gd.layout, 'annotations', annotationsOut[offSet[i]]);\n editHelpers.modifyItem('visible', false);\n Lib.extendFlat(update, editHelpers.getUpdateObj());\n }\n\n return Registry.call('update', gd, {}, update);\n}\n\n/*\n * getToggleSets: find the annotations which will turn on or off at this\n * hoverData\n *\n * gd: graphDiv\n * hoverData: a hoverData array, as included with the *plotly_hover* or\n * *plotly_click* events in the `points` attribute\n *\n * returns: {\n * on: Array (indices of annotations to turn on),\n * off: Array (indices to turn off because you're not hovering on them),\n * explicitOff: Array (indices to turn off because you *are* hovering on them)\n * }\n */\nfunction getToggleSets(gd, hoverData) {\n var annotations = gd._fullLayout.annotations;\n var onSet = [];\n var offSet = [];\n var explicitOffSet = [];\n var hoverLen = (hoverData || []).length;\n\n var i, j, anni, showMode, pointj, xa, ya, toggleType;\n\n for(i = 0; i < annotations.length; i++) {\n anni = annotations[i];\n showMode = anni.clicktoshow;\n\n if(showMode) {\n for(j = 0; j < hoverLen; j++) {\n pointj = hoverData[j];\n xa = pointj.xaxis;\n ya = pointj.yaxis;\n\n if(xa._id === anni.xref &&\n ya._id === anni.yref &&\n xa.d2r(pointj.x) === clickData2r(anni._xclick, xa) &&\n ya.d2r(pointj.y) === clickData2r(anni._yclick, ya)\n ) {\n // match! toggle this annotation\n // regardless of its clicktoshow mode\n // but if it's onout mode, off is implicit\n if(anni.visible) {\n if(showMode === 'onout') toggleType = offSet;\n else toggleType = explicitOffSet;\n } else {\n toggleType = onSet;\n }\n toggleType.push(i);\n break;\n }\n }\n\n if(j === hoverLen) {\n // no match - only turn this annotation OFF, and only if\n // showmode is 'onout'\n if(anni.visible && showMode === 'onout') offSet.push(i);\n }\n }\n }\n\n return {on: onSet, off: offSet, explicitOff: explicitOffSet};\n}\n\n// to handle log axes until v3\nfunction clickData2r(d, ax) {\n return ax.type === 'log' ? ax.l2r(d) : ax.d2r(d);\n}\n\n},{\"../../lib\":503,\"../../plot_api/plot_template\":543,\"../../registry\":638}],352:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Color = _dereq_('../color');\n\n// defaults common to 'annotations' and 'annotations3d'\nmodule.exports = function handleAnnotationCommonDefaults(annIn, annOut, fullLayout, coerce) {\n coerce('opacity');\n var bgColor = coerce('bgcolor');\n\n var borderColor = coerce('bordercolor');\n var borderOpacity = Color.opacity(borderColor);\n\n coerce('borderpad');\n\n var borderWidth = coerce('borderwidth');\n var showArrow = coerce('showarrow');\n\n coerce('text', showArrow ? ' ' : fullLayout._dfltTitle.annotation);\n coerce('textangle');\n Lib.coerceFont(coerce, 'font', fullLayout.font);\n\n coerce('width');\n coerce('align');\n\n var h = coerce('height');\n if(h) coerce('valign');\n\n if(showArrow) {\n var arrowside = coerce('arrowside');\n var arrowhead;\n var arrowsize;\n\n if(arrowside.indexOf('end') !== -1) {\n arrowhead = coerce('arrowhead');\n arrowsize = coerce('arrowsize');\n }\n\n if(arrowside.indexOf('start') !== -1) {\n coerce('startarrowhead', arrowhead);\n coerce('startarrowsize', arrowsize);\n }\n coerce('arrowcolor', borderOpacity ? annOut.bordercolor : Color.defaultLine);\n coerce('arrowwidth', ((borderOpacity && borderWidth) || 1) * 2);\n coerce('standoff');\n coerce('startstandoff');\n }\n\n var hoverText = coerce('hovertext');\n var globalHoverLabel = fullLayout.hoverlabel || {};\n\n if(hoverText) {\n var hoverBG = coerce('hoverlabel.bgcolor', globalHoverLabel.bgcolor ||\n (Color.opacity(bgColor) ? Color.rgb(bgColor) : Color.defaultLine)\n );\n\n var hoverBorder = coerce('hoverlabel.bordercolor', globalHoverLabel.bordercolor ||\n Color.contrast(hoverBG)\n );\n\n Lib.coerceFont(coerce, 'hoverlabel.font', {\n family: globalHoverLabel.font.family,\n size: globalHoverLabel.font.size,\n color: globalHoverLabel.font.color || hoverBorder\n });\n }\n\n coerce('captureevents', !!hoverText);\n};\n\n},{\"../../lib\":503,\"../color\":366}],353:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar toLogRange = _dereq_('../../lib/to_log_range');\n\n/*\n * convertCoords: when converting an axis between log and linear\n * you need to alter any annotations on that axis to keep them\n * pointing at the same data point.\n * In v3.0 this will become obsolete\n *\n * gd: the plot div\n * ax: the axis being changed\n * newType: the type it's getting\n * doExtra: function(attr, val) from inside relayout that sets the attribute.\n * Use this to make the changes as it's aware if any other changes in the\n * same relayout call should override this conversion.\n */\nmodule.exports = function convertCoords(gd, ax, newType, doExtra) {\n ax = ax || {};\n\n var toLog = (newType === 'log') && (ax.type === 'linear');\n var fromLog = (newType === 'linear') && (ax.type === 'log');\n\n if(!(toLog || fromLog)) return;\n\n var annotations = gd._fullLayout.annotations;\n var axLetter = ax._id.charAt(0);\n var ann;\n var attrPrefix;\n\n function convert(attr) {\n var currentVal = ann[attr];\n var newVal = null;\n\n if(toLog) newVal = toLogRange(currentVal, ax.range);\n else newVal = Math.pow(10, currentVal);\n\n // if conversion failed, delete the value so it gets a default value\n if(!isNumeric(newVal)) newVal = null;\n\n doExtra(attrPrefix + attr, newVal);\n }\n\n for(var i = 0; i < annotations.length; i++) {\n ann = annotations[i];\n attrPrefix = 'annotations[' + i + '].';\n\n if(ann[axLetter + 'ref'] === ax._id) convert(axLetter);\n if(ann['a' + axLetter + 'ref'] === ax._id) convert('a' + axLetter);\n }\n};\n\n},{\"../../lib/to_log_range\":531,\"fast-isnumeric\":190}],354:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar handleArrayContainerDefaults = _dereq_('../../plots/array_container_defaults');\n\nvar handleAnnotationCommonDefaults = _dereq_('./common_defaults');\nvar attributes = _dereq_('./attributes');\n\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {\n handleArrayContainerDefaults(layoutIn, layoutOut, {\n name: 'annotations',\n handleItemDefaults: handleAnnotationDefaults\n });\n};\n\nfunction handleAnnotationDefaults(annIn, annOut, fullLayout) {\n function coerce(attr, dflt) {\n return Lib.coerce(annIn, annOut, attributes, attr, dflt);\n }\n\n var visible = coerce('visible');\n var clickToShow = coerce('clicktoshow');\n\n if(!(visible || clickToShow)) return;\n\n handleAnnotationCommonDefaults(annIn, annOut, fullLayout, coerce);\n\n var showArrow = annOut.showarrow;\n\n // positioning\n var axLetters = ['x', 'y'];\n var arrowPosDflt = [-10, -30];\n var gdMock = {_fullLayout: fullLayout};\n\n for(var i = 0; i < 2; i++) {\n var axLetter = axLetters[i];\n\n // xref, yref\n var axRef = Axes.coerceRef(annIn, annOut, gdMock, axLetter, '', 'paper');\n\n if(axRef !== 'paper') {\n var ax = Axes.getFromId(gdMock, axRef);\n ax._annIndices.push(annOut._index);\n }\n\n // x, y\n Axes.coercePosition(annOut, gdMock, coerce, axRef, axLetter, 0.5);\n\n if(showArrow) {\n var arrowPosAttr = 'a' + axLetter;\n // axref, ayref\n var aaxRef = Axes.coerceRef(annIn, annOut, gdMock, arrowPosAttr, 'pixel',\n ['pixel', 'paper']);\n\n // for now the arrow can only be on the same axis or specified as pixels\n // TODO: sometime it might be interesting to allow it to be on *any* axis\n // but that would require updates to drawing & autorange code and maybe more\n if(aaxRef !== 'pixel' && aaxRef !== axRef) {\n aaxRef = annOut[arrowPosAttr] = 'pixel';\n }\n\n // ax, ay\n var aDflt = (aaxRef === 'pixel') ? arrowPosDflt[i] : 0.4;\n Axes.coercePosition(annOut, gdMock, coerce, aaxRef, arrowPosAttr, aDflt);\n }\n\n // xanchor, yanchor\n coerce(axLetter + 'anchor');\n\n // xshift, yshift\n coerce(axLetter + 'shift');\n }\n\n // if you have one coordinate you should have both\n Lib.noneOrAll(annIn, annOut, ['x', 'y']);\n\n // if you have one part of arrow length you should have both\n if(showArrow) {\n Lib.noneOrAll(annIn, annOut, ['ax', 'ay']);\n }\n\n if(clickToShow) {\n var xClick = coerce('xclick');\n var yClick = coerce('yclick');\n\n // put the actual click data to bind to into private attributes\n // so we don't have to do this little bit of logic on every hover event\n annOut._xclick = (xClick === undefined) ?\n annOut.x :\n Axes.cleanPosition(xClick, gdMock, annOut.xref);\n annOut._yclick = (yClick === undefined) ?\n annOut.y :\n Axes.cleanPosition(yClick, gdMock, annOut.yref);\n }\n}\n\n},{\"../../lib\":503,\"../../plots/array_container_defaults\":549,\"../../plots/cartesian/axes\":554,\"./attributes\":349,\"./common_defaults\":352}],355:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Registry = _dereq_('../../registry');\nvar Plots = _dereq_('../../plots/plots');\nvar Lib = _dereq_('../../lib');\nvar strTranslate = Lib.strTranslate;\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar Color = _dereq_('../color');\nvar Drawing = _dereq_('../drawing');\nvar Fx = _dereq_('../fx');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\nvar setCursor = _dereq_('../../lib/setcursor');\nvar dragElement = _dereq_('../dragelement');\nvar arrayEditor = _dereq_('../../plot_api/plot_template').arrayEditor;\n\nvar drawArrowHead = _dereq_('./draw_arrow_head');\n\n// Annotations are stored in gd.layout.annotations, an array of objects\n// index can point to one item in this array,\n// or non-numeric to simply add a new one\n// or -1 to modify all existing\n// opt can be the full options object, or one key (to be set to value)\n// or undefined to simply redraw\n// if opt is blank, val can be 'add' or a full options object to add a new\n// annotation at that point in the array, or 'remove' to delete this one\n\nmodule.exports = {\n draw: draw,\n drawOne: drawOne,\n drawRaw: drawRaw\n};\n\n/*\n * draw: draw all annotations without any new modifications\n */\nfunction draw(gd) {\n var fullLayout = gd._fullLayout;\n\n fullLayout._infolayer.selectAll('.annotation').remove();\n\n for(var i = 0; i < fullLayout.annotations.length; i++) {\n if(fullLayout.annotations[i].visible) {\n drawOne(gd, i);\n }\n }\n\n return Plots.previousPromises(gd);\n}\n\n/*\n * drawOne: draw a single cartesian or paper-ref annotation, potentially with modifications\n *\n * index (int): the annotation to draw\n */\nfunction drawOne(gd, index) {\n var fullLayout = gd._fullLayout;\n var options = fullLayout.annotations[index] || {};\n var xa = Axes.getFromId(gd, options.xref);\n var ya = Axes.getFromId(gd, options.yref);\n\n if(xa) xa.setScale();\n if(ya) ya.setScale();\n\n drawRaw(gd, options, index, false, xa, ya);\n}\n\n// Convert pixels to the coordinates relevant for the axis referred to. For\n// example, for paper it would convert to a value normalized by the dimension of\n// the plot.\n// axDomainRef: if true and axa defined, draws relative to axis domain,\n// otherwise draws relative to data (if axa defined) or paper (if not).\nfunction shiftPosition(axa, dAx, axLetter, gs, options) {\n var optAx = options[axLetter];\n var axRef = options[axLetter + 'ref'];\n var vertical = axLetter.indexOf('y') !== -1;\n var axDomainRef = Axes.getRefType(axRef) === 'domain';\n var gsDim = vertical ? gs.h : gs.w;\n if(axa) {\n if(axDomainRef) {\n // here optAx normalized to length of axis (e.g., normally in range\n // 0 to 1). But dAx is in pixels. So we normalize dAx to length of\n // axis before doing the math.\n return optAx + (vertical ? -dAx : dAx) / axa._length;\n } else {\n return axa.p2r(axa.r2p(optAx) + dAx);\n }\n } else {\n return optAx + (vertical ? -dAx : dAx) / gsDim;\n }\n}\n\n/**\n * drawRaw: draw a single annotation, potentially with modifications\n *\n * @param {DOM element} gd\n * @param {object} options : this annotation's fullLayout options\n * @param {integer} index : index in 'annotations' container of the annotation to draw\n * @param {string} subplotId : id of the annotation's subplot\n * - use false for 2d (i.e. cartesian or paper-ref) annotations\n * @param {object | undefined} xa : full x-axis object to compute subplot pos-to-px\n * @param {object | undefined} ya : ... y-axis\n */\nfunction drawRaw(gd, options, index, subplotId, xa, ya) {\n var fullLayout = gd._fullLayout;\n var gs = gd._fullLayout._size;\n var edits = gd._context.edits;\n\n var className, containerStr;\n\n if(subplotId) {\n className = 'annotation-' + subplotId;\n containerStr = subplotId + '.annotations';\n } else {\n className = 'annotation';\n containerStr = 'annotations';\n }\n\n var editHelpers = arrayEditor(gd.layout, containerStr, options);\n var modifyBase = editHelpers.modifyBase;\n var modifyItem = editHelpers.modifyItem;\n var getUpdateObj = editHelpers.getUpdateObj;\n\n // remove the existing annotation if there is one\n fullLayout._infolayer\n .selectAll('.' + className + '[data-index=\"' + index + '\"]')\n .remove();\n\n var annClipID = 'clip' + fullLayout._uid + '_ann' + index;\n\n // this annotation is gone - quit now after deleting it\n // TODO: use d3 idioms instead of deleting and redrawing every time\n if(!options._input || options.visible === false) {\n d3.selectAll('#' + annClipID).remove();\n return;\n }\n\n // calculated pixel positions\n // x & y each will get text, head, and tail as appropriate\n var annPosPx = {x: {}, y: {}};\n var textangle = +options.textangle || 0;\n\n // create the components\n // made a single group to contain all, so opacity can work right\n // with border/arrow together this could handle a whole bunch of\n // cleanup at this point, but works for now\n var annGroup = fullLayout._infolayer.append('g')\n .classed(className, true)\n .attr('data-index', String(index))\n .style('opacity', options.opacity);\n\n // another group for text+background so that they can rotate together\n var annTextGroup = annGroup.append('g')\n .classed('annotation-text-g', true);\n\n var editTextPosition = edits[options.showarrow ? 'annotationTail' : 'annotationPosition'];\n var textEvents = options.captureevents || edits.annotationText || editTextPosition;\n\n function makeEventData(initialEvent) {\n var eventData = {\n index: index,\n annotation: options._input,\n fullAnnotation: options,\n event: initialEvent\n };\n if(subplotId) {\n eventData.subplotId = subplotId;\n }\n return eventData;\n }\n\n var annTextGroupInner = annTextGroup.append('g')\n .style('pointer-events', textEvents ? 'all' : null)\n .call(setCursor, 'pointer')\n .on('click', function() {\n gd._dragging = false;\n gd.emit('plotly_clickannotation', makeEventData(d3.event));\n });\n\n if(options.hovertext) {\n annTextGroupInner\n .on('mouseover', function() {\n var hoverOptions = options.hoverlabel;\n var hoverFont = hoverOptions.font;\n var bBox = this.getBoundingClientRect();\n var bBoxRef = gd.getBoundingClientRect();\n\n Fx.loneHover({\n x0: bBox.left - bBoxRef.left,\n x1: bBox.right - bBoxRef.left,\n y: (bBox.top + bBox.bottom) / 2 - bBoxRef.top,\n text: options.hovertext,\n color: hoverOptions.bgcolor,\n borderColor: hoverOptions.bordercolor,\n fontFamily: hoverFont.family,\n fontSize: hoverFont.size,\n fontColor: hoverFont.color\n }, {\n container: fullLayout._hoverlayer.node(),\n outerContainer: fullLayout._paper.node(),\n gd: gd\n });\n })\n .on('mouseout', function() {\n Fx.loneUnhover(fullLayout._hoverlayer.node());\n });\n }\n\n var borderwidth = options.borderwidth;\n var borderpad = options.borderpad;\n var borderfull = borderwidth + borderpad;\n\n var annTextBG = annTextGroupInner.append('rect')\n .attr('class', 'bg')\n .style('stroke-width', borderwidth + 'px')\n .call(Color.stroke, options.bordercolor)\n .call(Color.fill, options.bgcolor);\n\n var isSizeConstrained = options.width || options.height;\n\n var annTextClip = fullLayout._topclips\n .selectAll('#' + annClipID)\n .data(isSizeConstrained ? [0] : []);\n\n annTextClip.enter().append('clipPath')\n .classed('annclip', true)\n .attr('id', annClipID)\n .append('rect');\n annTextClip.exit().remove();\n\n var font = options.font;\n\n var text = fullLayout._meta ?\n Lib.templateString(options.text, fullLayout._meta) :\n options.text;\n\n var annText = annTextGroupInner.append('text')\n .classed('annotation-text', true)\n .text(text);\n\n function textLayout(s) {\n s.call(Drawing.font, font)\n .attr({\n 'text-anchor': {\n left: 'start',\n right: 'end'\n }[options.align] || 'middle'\n });\n\n svgTextUtils.convertToTspans(s, gd, drawGraphicalElements);\n return s;\n }\n\n function drawGraphicalElements() {\n // if the text has *only* a link, make the whole box into a link\n var anchor3 = annText.selectAll('a');\n if(anchor3.size() === 1 && anchor3.text() === annText.text()) {\n var wholeLink = annTextGroupInner.insert('a', ':first-child').attr({\n 'xlink:xlink:href': anchor3.attr('xlink:href'),\n 'xlink:xlink:show': anchor3.attr('xlink:show')\n })\n .style({cursor: 'pointer'});\n\n wholeLink.node().appendChild(annTextBG.node());\n }\n\n var mathjaxGroup = annTextGroupInner.select('.annotation-text-math-group');\n var hasMathjax = !mathjaxGroup.empty();\n var anntextBB = Drawing.bBox(\n (hasMathjax ? mathjaxGroup : annText).node());\n var textWidth = anntextBB.width;\n var textHeight = anntextBB.height;\n var annWidth = options.width || textWidth;\n var annHeight = options.height || textHeight;\n var outerWidth = Math.round(annWidth + 2 * borderfull);\n var outerHeight = Math.round(annHeight + 2 * borderfull);\n\n function shiftFraction(v, anchor) {\n if(anchor === 'auto') {\n if(v < 1 / 3) anchor = 'left';\n else if(v > 2 / 3) anchor = 'right';\n else anchor = 'center';\n }\n return {\n center: 0,\n middle: 0,\n left: 0.5,\n bottom: -0.5,\n right: -0.5,\n top: 0.5\n }[anchor];\n }\n\n var annotationIsOffscreen = false;\n var letters = ['x', 'y'];\n\n for(var i = 0; i < letters.length; i++) {\n var axLetter = letters[i];\n var axRef = options[axLetter + 'ref'] || axLetter;\n var tailRef = options['a' + axLetter + 'ref'];\n var ax = {x: xa, y: ya}[axLetter];\n var dimAngle = (textangle + (axLetter === 'x' ? 0 : -90)) * Math.PI / 180;\n // note that these two can be either positive or negative\n var annSizeFromWidth = outerWidth * Math.cos(dimAngle);\n var annSizeFromHeight = outerHeight * Math.sin(dimAngle);\n // but this one is the positive total size\n var annSize = Math.abs(annSizeFromWidth) + Math.abs(annSizeFromHeight);\n var anchor = options[axLetter + 'anchor'];\n var overallShift = options[axLetter + 'shift'] * (axLetter === 'x' ? 1 : -1);\n var posPx = annPosPx[axLetter];\n var basePx;\n var textPadShift;\n var alignPosition;\n var autoAlignFraction;\n var textShift;\n var axRefType = Axes.getRefType(axRef);\n\n /*\n * calculate the *primary* pixel position\n * which is the arrowhead if there is one,\n * otherwise the text anchor point\n */\n if(ax && (axRefType !== 'domain')) {\n // check if annotation is off screen, to bypass DOM manipulations\n var posFraction = ax.r2fraction(options[axLetter]);\n if(posFraction < 0 || posFraction > 1) {\n if(tailRef === axRef) {\n posFraction = ax.r2fraction(options['a' + axLetter]);\n if(posFraction < 0 || posFraction > 1) {\n annotationIsOffscreen = true;\n }\n } else {\n annotationIsOffscreen = true;\n }\n }\n basePx = ax._offset + ax.r2p(options[axLetter]);\n autoAlignFraction = 0.5;\n } else {\n var axRefTypeEqDomain = axRefType === 'domain';\n if(axLetter === 'x') {\n alignPosition = options[axLetter];\n basePx = axRefTypeEqDomain ?\n ax._offset + ax._length * alignPosition :\n basePx = gs.l + gs.w * alignPosition;\n } else {\n alignPosition = 1 - options[axLetter];\n basePx = axRefTypeEqDomain ?\n ax._offset + ax._length * alignPosition :\n basePx = gs.t + gs.h * alignPosition;\n }\n autoAlignFraction = options.showarrow ? 0.5 : alignPosition;\n }\n\n // now translate this into pixel positions of head, tail, and text\n // as well as paddings for autorange\n if(options.showarrow) {\n posPx.head = basePx;\n\n var arrowLength = options['a' + axLetter];\n\n // with an arrow, the text rotates around the anchor point\n textShift = annSizeFromWidth * shiftFraction(0.5, options.xanchor) -\n annSizeFromHeight * shiftFraction(0.5, options.yanchor);\n\n if(tailRef === axRef) {\n // In the case tailRefType is 'domain' or 'paper', the arrow's\n // position is set absolutely, which is consistent with how\n // it behaves when its position is set in data ('range')\n // coordinates.\n var tailRefType = Axes.getRefType(tailRef);\n if(tailRefType === 'domain') {\n if(axLetter === 'y') {\n arrowLength = 1 - arrowLength;\n }\n posPx.tail = ax._offset + ax._length * arrowLength;\n } else if(tailRefType === 'paper') {\n if(axLetter === 'y') {\n arrowLength = 1 - arrowLength;\n posPx.tail = gs.t + gs.h * arrowLength;\n } else {\n posPx.tail = gs.l + gs.w * arrowLength;\n }\n } else {\n // assumed tailRef is range or paper referenced\n posPx.tail = ax._offset + ax.r2p(arrowLength);\n }\n // tail is range- or domain-referenced: autorange pads the\n // text in px from the tail\n textPadShift = textShift;\n } else {\n posPx.tail = basePx + arrowLength;\n // tail is specified in px from head, so autorange also pads vs head\n textPadShift = textShift + arrowLength;\n }\n\n posPx.text = posPx.tail + textShift;\n\n // constrain pixel/paper referenced so the draggers are at least\n // partially visible\n var maxPx = fullLayout[(axLetter === 'x') ? 'width' : 'height'];\n if(axRef === 'paper') {\n posPx.head = Lib.constrain(posPx.head, 1, maxPx - 1);\n }\n if(tailRef === 'pixel') {\n var shiftPlus = -Math.max(posPx.tail - 3, posPx.text);\n var shiftMinus = Math.min(posPx.tail + 3, posPx.text) - maxPx;\n if(shiftPlus > 0) {\n posPx.tail += shiftPlus;\n posPx.text += shiftPlus;\n } else if(shiftMinus > 0) {\n posPx.tail -= shiftMinus;\n posPx.text -= shiftMinus;\n }\n }\n\n posPx.tail += overallShift;\n posPx.head += overallShift;\n } else {\n // with no arrow, the text rotates and *then* we put the anchor\n // relative to the new bounding box\n textShift = annSize * shiftFraction(autoAlignFraction, anchor);\n textPadShift = textShift;\n posPx.text = basePx + textShift;\n }\n\n posPx.text += overallShift;\n textShift += overallShift;\n textPadShift += overallShift;\n\n // padplus/minus are used by autorange\n options['_' + axLetter + 'padplus'] = (annSize / 2) + textPadShift;\n options['_' + axLetter + 'padminus'] = (annSize / 2) - textPadShift;\n\n // size/shift are used during dragging\n options['_' + axLetter + 'size'] = annSize;\n options['_' + axLetter + 'shift'] = textShift;\n }\n\n if(annotationIsOffscreen) {\n annTextGroupInner.remove();\n return;\n }\n\n var xShift = 0;\n var yShift = 0;\n\n if(options.align !== 'left') {\n xShift = (annWidth - textWidth) * (options.align === 'center' ? 0.5 : 1);\n }\n if(options.valign !== 'top') {\n yShift = (annHeight - textHeight) * (options.valign === 'middle' ? 0.5 : 1);\n }\n\n if(hasMathjax) {\n mathjaxGroup.select('svg').attr({\n x: borderfull + xShift - 1,\n y: borderfull + yShift\n })\n .call(Drawing.setClipUrl, isSizeConstrained ? annClipID : null, gd);\n } else {\n var texty = borderfull + yShift - anntextBB.top;\n var textx = borderfull + xShift - anntextBB.left;\n\n annText.call(svgTextUtils.positionText, textx, texty)\n .call(Drawing.setClipUrl, isSizeConstrained ? annClipID : null, gd);\n }\n\n annTextClip.select('rect').call(Drawing.setRect, borderfull, borderfull,\n annWidth, annHeight);\n\n annTextBG.call(Drawing.setRect, borderwidth / 2, borderwidth / 2,\n outerWidth - borderwidth, outerHeight - borderwidth);\n\n annTextGroupInner.call(Drawing.setTranslate,\n Math.round(annPosPx.x.text - outerWidth / 2),\n Math.round(annPosPx.y.text - outerHeight / 2));\n\n /*\n * rotate text and background\n * we already calculated the text center position *as rotated*\n * because we needed that for autoranging anyway, so now whether\n * we have an arrow or not, we rotate about the text center.\n */\n annTextGroup.attr({transform: 'rotate(' + textangle + ',' +\n annPosPx.x.text + ',' + annPosPx.y.text + ')'});\n\n /*\n * add the arrow\n * uses options[arrowwidth,arrowcolor,arrowhead] for styling\n * dx and dy are normally zero, but when you are dragging the textbox\n * while the head stays put, dx and dy are the pixel offsets\n */\n var drawArrow = function(dx, dy) {\n annGroup\n .selectAll('.annotation-arrow-g')\n .remove();\n\n var headX = annPosPx.x.head;\n var headY = annPosPx.y.head;\n var tailX = annPosPx.x.tail + dx;\n var tailY = annPosPx.y.tail + dy;\n var textX = annPosPx.x.text + dx;\n var textY = annPosPx.y.text + dy;\n\n // find the edge of the text box, where we'll start the arrow:\n // create transform matrix to rotate the text box corners\n var transform = Lib.rotationXYMatrix(textangle, textX, textY);\n var applyTransform = Lib.apply2DTransform(transform);\n var applyTransform2 = Lib.apply2DTransform2(transform);\n\n // calculate and transform bounding box\n var width = +annTextBG.attr('width');\n var height = +annTextBG.attr('height');\n var xLeft = textX - 0.5 * width;\n var xRight = xLeft + width;\n var yTop = textY - 0.5 * height;\n var yBottom = yTop + height;\n var edges = [\n [xLeft, yTop, xLeft, yBottom],\n [xLeft, yBottom, xRight, yBottom],\n [xRight, yBottom, xRight, yTop],\n [xRight, yTop, xLeft, yTop]\n ].map(applyTransform2);\n\n // Remove the line if it ends inside the box. Use ray\n // casting for rotated boxes: see which edges intersect a\n // line from the arrowhead to far away and reduce with xor\n // to get the parity of the number of intersections.\n if(edges.reduce(function(a, x) {\n return a ^\n !!Lib.segmentsIntersect(headX, headY, headX + 1e6, headY + 1e6,\n x[0], x[1], x[2], x[3]);\n }, false)) {\n // no line or arrow - so quit drawArrow now\n return;\n }\n\n edges.forEach(function(x) {\n var p = Lib.segmentsIntersect(tailX, tailY, headX, headY,\n x[0], x[1], x[2], x[3]);\n if(p) {\n tailX = p.x;\n tailY = p.y;\n }\n });\n\n var strokewidth = options.arrowwidth;\n var arrowColor = options.arrowcolor;\n var arrowSide = options.arrowside;\n\n var arrowGroup = annGroup.append('g')\n .style({opacity: Color.opacity(arrowColor)})\n .classed('annotation-arrow-g', true);\n\n var arrow = arrowGroup.append('path')\n .attr('d', 'M' + tailX + ',' + tailY + 'L' + headX + ',' + headY)\n .style('stroke-width', strokewidth + 'px')\n .call(Color.stroke, Color.rgb(arrowColor));\n\n drawArrowHead(arrow, arrowSide, options);\n\n // the arrow dragger is a small square right at the head, then a line to the tail,\n // all expanded by a stroke width of 6px plus the arrow line width\n if(edits.annotationPosition && arrow.node().parentNode && !subplotId) {\n var arrowDragHeadX = headX;\n var arrowDragHeadY = headY;\n if(options.standoff) {\n var arrowLength = Math.sqrt(Math.pow(headX - tailX, 2) + Math.pow(headY - tailY, 2));\n arrowDragHeadX += options.standoff * (tailX - headX) / arrowLength;\n arrowDragHeadY += options.standoff * (tailY - headY) / arrowLength;\n }\n var arrowDrag = arrowGroup.append('path')\n .classed('annotation-arrow', true)\n .classed('anndrag', true)\n .classed('cursor-move', true)\n .attr({\n d: 'M3,3H-3V-3H3ZM0,0L' + (tailX - arrowDragHeadX) + ',' + (tailY - arrowDragHeadY),\n transform: strTranslate(arrowDragHeadX, arrowDragHeadY)\n })\n .style('stroke-width', (strokewidth + 6) + 'px')\n .call(Color.stroke, 'rgba(0,0,0,0)')\n .call(Color.fill, 'rgba(0,0,0,0)');\n\n var annx0, anny0;\n\n // dragger for the arrow & head: translates the whole thing\n // (head/tail/text) all together\n dragElement.init({\n element: arrowDrag.node(),\n gd: gd,\n prepFn: function() {\n var pos = Drawing.getTranslate(annTextGroupInner);\n\n annx0 = pos.x;\n anny0 = pos.y;\n if(xa && xa.autorange) {\n modifyBase(xa._name + '.autorange', true);\n }\n if(ya && ya.autorange) {\n modifyBase(ya._name + '.autorange', true);\n }\n },\n moveFn: function(dx, dy) {\n var annxy0 = applyTransform(annx0, anny0);\n var xcenter = annxy0[0] + dx;\n var ycenter = annxy0[1] + dy;\n annTextGroupInner.call(Drawing.setTranslate, xcenter, ycenter);\n\n modifyItem('x',\n shiftPosition(xa, dx, 'x', gs, options));\n modifyItem('y',\n shiftPosition(ya, dy, 'y', gs, options));\n\n // for these 2 calls to shiftPosition, it is assumed xa, ya are\n // defined, so gsDim will not be used, but we put it in\n // anyways for consistency\n if(options.axref === options.xref) {\n modifyItem('ax', shiftPosition(xa, dx, 'ax', gs, options));\n }\n\n if(options.ayref === options.yref) {\n modifyItem('ay', shiftPosition(ya, dy, 'ay', gs, options));\n }\n\n arrowGroup.attr('transform', strTranslate(dx, dy));\n annTextGroup.attr({\n transform: 'rotate(' + textangle + ',' +\n xcenter + ',' + ycenter + ')'\n });\n },\n doneFn: function() {\n Registry.call('_guiRelayout', gd, getUpdateObj());\n var notesBox = document.querySelector('.js-notes-box-panel');\n if(notesBox) notesBox.redraw(notesBox.selectedObj);\n }\n });\n }\n };\n\n if(options.showarrow) drawArrow(0, 0);\n\n // user dragging the annotation (text, not arrow)\n if(editTextPosition) {\n var baseTextTransform;\n\n // dragger for the textbox: if there's an arrow, just drag the\n // textbox and tail, leave the head untouched\n dragElement.init({\n element: annTextGroupInner.node(),\n gd: gd,\n prepFn: function() {\n baseTextTransform = annTextGroup.attr('transform');\n },\n moveFn: function(dx, dy) {\n var csr = 'pointer';\n if(options.showarrow) {\n // for these 2 calls to shiftPosition, it is assumed xa, ya are\n // defined, so gsDim will not be used, but we put it in\n // anyways for consistency\n if(options.axref === options.xref) {\n modifyItem('ax', shiftPosition(xa, dx, 'ax', gs, options));\n } else {\n modifyItem('ax', options.ax + dx);\n }\n\n if(options.ayref === options.yref) {\n modifyItem('ay', shiftPosition(ya, dy, 'ay', gs.w, options));\n } else {\n modifyItem('ay', options.ay + dy);\n }\n\n drawArrow(dx, dy);\n } else if(!subplotId) {\n var xUpdate, yUpdate;\n if(xa) {\n // shiftPosition will not execute code where xa was\n // undefined, so we use to calculate xUpdate too\n xUpdate = shiftPosition(xa, dx, 'x', gs, options);\n } else {\n var widthFraction = options._xsize / gs.w;\n var xLeft = options.x + (options._xshift - options.xshift) / gs.w - widthFraction / 2;\n\n xUpdate = dragElement.align(xLeft + dx / gs.w,\n widthFraction, 0, 1, options.xanchor);\n }\n\n if(ya) {\n // shiftPosition will not execute code where ya was\n // undefined, so we use to calculate yUpdate too\n yUpdate = shiftPosition(ya, dy, 'y', gs, options);\n } else {\n var heightFraction = options._ysize / gs.h;\n var yBottom = options.y - (options._yshift + options.yshift) / gs.h - heightFraction / 2;\n\n yUpdate = dragElement.align(yBottom - dy / gs.h,\n heightFraction, 0, 1, options.yanchor);\n }\n modifyItem('x', xUpdate);\n modifyItem('y', yUpdate);\n if(!xa || !ya) {\n csr = dragElement.getCursor(\n xa ? 0.5 : xUpdate,\n ya ? 0.5 : yUpdate,\n options.xanchor, options.yanchor\n );\n }\n } else return;\n\n annTextGroup.attr({\n transform: strTranslate(dx, dy) + baseTextTransform\n });\n\n setCursor(annTextGroupInner, csr);\n },\n clickFn: function(_, initialEvent) {\n if(options.captureevents) {\n gd.emit('plotly_clickannotation', makeEventData(initialEvent));\n }\n },\n doneFn: function() {\n setCursor(annTextGroupInner);\n Registry.call('_guiRelayout', gd, getUpdateObj());\n var notesBox = document.querySelector('.js-notes-box-panel');\n if(notesBox) notesBox.redraw(notesBox.selectedObj);\n }\n });\n }\n }\n\n if(edits.annotationText) {\n annText.call(svgTextUtils.makeEditable, {delegate: annTextGroupInner, gd: gd})\n .call(textLayout)\n .on('edit', function(_text) {\n options.text = _text;\n\n this.call(textLayout);\n\n modifyItem('text', _text);\n\n if(xa && xa.autorange) {\n modifyBase(xa._name + '.autorange', true);\n }\n if(ya && ya.autorange) {\n modifyBase(ya._name + '.autorange', true);\n }\n\n Registry.call('_guiRelayout', gd, getUpdateObj());\n });\n } else annText.call(textLayout);\n}\n\n},{\"../../lib\":503,\"../../lib/setcursor\":524,\"../../lib/svg_text_utils\":529,\"../../plot_api/plot_template\":543,\"../../plots/cartesian/axes\":554,\"../../plots/plots\":619,\"../../registry\":638,\"../color\":366,\"../dragelement\":385,\"../drawing\":388,\"../fx\":406,\"./draw_arrow_head\":356,\"@plotly/d3\":58}],356:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Color = _dereq_('../color');\n\nvar ARROWPATHS = _dereq_('./arrow_paths');\n\nvar Lib = _dereq_('../../lib');\nvar strScale = Lib.strScale;\nvar strRotate = Lib.strRotate;\nvar strTranslate = Lib.strTranslate;\n\n/**\n * Add arrowhead(s) to a path or line element\n *\n * @param {d3.selection} el3: a d3-selected line or path element\n *\n * @param {string} ends: 'none', 'start', 'end', or 'start+end' for which ends get arrowheads\n *\n * @param {object} options: style information. Must have all the following:\n * @param {number} options.arrowhead: end head style - see ./arrow_paths\n * @param {number} options.startarrowhead: start head style - see ./arrow_paths\n * @param {number} options.arrowsize: relative size of the end head vs line width\n * @param {number} options.startarrowsize: relative size of the start head vs line width\n * @param {number} options.standoff: distance in px to move the end arrow point from its target\n * @param {number} options.startstandoff: distance in px to move the start arrow point from its target\n * @param {number} options.arrowwidth: width of the arrow line\n * @param {string} options.arrowcolor: color of the arrow line, for the head to match\n * Note that the opacity of this color is ignored, as it's assumed the container\n * of both the line and head has opacity applied to it so there isn't greater opacity\n * where they overlap.\n */\nmodule.exports = function drawArrowHead(el3, ends, options) {\n var el = el3.node();\n var headStyle = ARROWPATHS[options.arrowhead || 0];\n var startHeadStyle = ARROWPATHS[options.startarrowhead || 0];\n var scale = (options.arrowwidth || 1) * (options.arrowsize || 1);\n var startScale = (options.arrowwidth || 1) * (options.startarrowsize || 1);\n var doStart = ends.indexOf('start') >= 0;\n var doEnd = ends.indexOf('end') >= 0;\n var backOff = headStyle.backoff * scale + options.standoff;\n var startBackOff = startHeadStyle.backoff * startScale + options.startstandoff;\n\n var start, end, startRot, endRot;\n\n if(el.nodeName === 'line') {\n start = {x: +el3.attr('x1'), y: +el3.attr('y1')};\n end = {x: +el3.attr('x2'), y: +el3.attr('y2')};\n\n var dx = start.x - end.x;\n var dy = start.y - end.y;\n\n startRot = Math.atan2(dy, dx);\n endRot = startRot + Math.PI;\n if(backOff && startBackOff) {\n if(backOff + startBackOff > Math.sqrt(dx * dx + dy * dy)) {\n hideLine();\n return;\n }\n }\n\n if(backOff) {\n if(backOff * backOff > dx * dx + dy * dy) {\n hideLine();\n return;\n }\n var backOffX = backOff * Math.cos(startRot);\n var backOffY = backOff * Math.sin(startRot);\n\n end.x += backOffX;\n end.y += backOffY;\n el3.attr({x2: end.x, y2: end.y});\n }\n\n if(startBackOff) {\n if(startBackOff * startBackOff > dx * dx + dy * dy) {\n hideLine();\n return;\n }\n var startBackOffX = startBackOff * Math.cos(startRot);\n var startbackOffY = startBackOff * Math.sin(startRot);\n\n start.x -= startBackOffX;\n start.y -= startbackOffY;\n el3.attr({x1: start.x, y1: start.y});\n }\n } else if(el.nodeName === 'path') {\n var pathlen = el.getTotalLength();\n // using dash to hide the backOff region of the path.\n // if we ever allow dash for the arrow we'll have to\n // do better than this hack... maybe just manually\n // combine the two\n var dashArray = '';\n\n if(pathlen < backOff + startBackOff) {\n hideLine();\n return;\n }\n\n\n var start0 = el.getPointAtLength(0);\n var dstart = el.getPointAtLength(0.1);\n\n startRot = Math.atan2(start0.y - dstart.y, start0.x - dstart.x);\n start = el.getPointAtLength(Math.min(startBackOff, pathlen));\n\n dashArray = '0px,' + startBackOff + 'px,';\n\n var end0 = el.getPointAtLength(pathlen);\n var dend = el.getPointAtLength(pathlen - 0.1);\n\n endRot = Math.atan2(end0.y - dend.y, end0.x - dend.x);\n end = el.getPointAtLength(Math.max(0, pathlen - backOff));\n\n var shortening = dashArray ? startBackOff + backOff : backOff;\n dashArray += (pathlen - shortening) + 'px,' + pathlen + 'px';\n\n el3.style('stroke-dasharray', dashArray);\n }\n\n function hideLine() { el3.style('stroke-dasharray', '0px,100px'); }\n\n function drawhead(arrowHeadStyle, p, rot, arrowScale) {\n if(!arrowHeadStyle.path) return;\n if(arrowHeadStyle.noRotate) rot = 0;\n\n d3.select(el.parentNode).append('path')\n .attr({\n 'class': el3.attr('class'),\n d: arrowHeadStyle.path,\n transform:\n strTranslate(p.x, p.y) +\n strRotate(rot * 180 / Math.PI) +\n strScale(arrowScale)\n })\n .style({\n fill: Color.rgb(options.arrowcolor),\n 'stroke-width': 0\n });\n }\n\n if(doStart) drawhead(startHeadStyle, start, startRot, startScale);\n if(doEnd) drawhead(headStyle, end, endRot, scale);\n};\n\n},{\"../../lib\":503,\"../color\":366,\"./arrow_paths\":348,\"@plotly/d3\":58}],357:[function(_dereq_,module,exports){\n'use strict';\n\nvar drawModule = _dereq_('./draw');\nvar clickModule = _dereq_('./click');\n\nmodule.exports = {\n moduleType: 'component',\n name: 'annotations',\n\n layoutAttributes: _dereq_('./attributes'),\n supplyLayoutDefaults: _dereq_('./defaults'),\n includeBasePlot: _dereq_('../../plots/cartesian/include_components')('annotations'),\n\n calcAutorange: _dereq_('./calc_autorange'),\n draw: drawModule.draw,\n drawOne: drawModule.drawOne,\n drawRaw: drawModule.drawRaw,\n\n hasClickToShow: clickModule.hasClickToShow,\n onClick: clickModule.onClick,\n\n convertCoords: _dereq_('./convert_coords')\n};\n\n},{\"../../plots/cartesian/include_components\":567,\"./attributes\":349,\"./calc_autorange\":350,\"./click\":351,\"./convert_coords\":353,\"./defaults\":354,\"./draw\":355}],358:[function(_dereq_,module,exports){\n'use strict';\n\nvar annAttrs = _dereq_('../annotations/attributes');\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\nvar templatedArray = _dereq_('../../plot_api/plot_template').templatedArray;\n\nmodule.exports = overrideAll(templatedArray('annotation', {\n visible: annAttrs.visible,\n x: {\n valType: 'any',\n },\n y: {\n valType: 'any',\n },\n z: {\n valType: 'any',\n },\n ax: {\n valType: 'number',\n },\n ay: {\n valType: 'number',\n },\n\n xanchor: annAttrs.xanchor,\n xshift: annAttrs.xshift,\n yanchor: annAttrs.yanchor,\n yshift: annAttrs.yshift,\n\n text: annAttrs.text,\n textangle: annAttrs.textangle,\n font: annAttrs.font,\n width: annAttrs.width,\n height: annAttrs.height,\n opacity: annAttrs.opacity,\n align: annAttrs.align,\n valign: annAttrs.valign,\n bgcolor: annAttrs.bgcolor,\n bordercolor: annAttrs.bordercolor,\n borderpad: annAttrs.borderpad,\n borderwidth: annAttrs.borderwidth,\n showarrow: annAttrs.showarrow,\n arrowcolor: annAttrs.arrowcolor,\n arrowhead: annAttrs.arrowhead,\n startarrowhead: annAttrs.startarrowhead,\n arrowside: annAttrs.arrowside,\n arrowsize: annAttrs.arrowsize,\n startarrowsize: annAttrs.startarrowsize,\n arrowwidth: annAttrs.arrowwidth,\n standoff: annAttrs.standoff,\n startstandoff: annAttrs.startstandoff,\n hovertext: annAttrs.hovertext,\n hoverlabel: annAttrs.hoverlabel,\n captureevents: annAttrs.captureevents,\n\n // maybes later?\n // clicktoshow: annAttrs.clicktoshow,\n // xclick: annAttrs.xclick,\n // yclick: annAttrs.yclick,\n\n // not needed!\n // axref: 'pixel'\n // ayref: 'pixel'\n // xref: 'x'\n // yref: 'y\n // zref: 'z'\n}), 'calc', 'from-root');\n\n},{\"../../plot_api/edit_types\":536,\"../../plot_api/plot_template\":543,\"../annotations/attributes\":349}],359:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Axes = _dereq_('../../plots/cartesian/axes');\n\nmodule.exports = function convert(scene) {\n var fullSceneLayout = scene.fullSceneLayout;\n var anns = fullSceneLayout.annotations;\n\n for(var i = 0; i < anns.length; i++) {\n mockAnnAxes(anns[i], scene);\n }\n\n scene.fullLayout._infolayer\n .selectAll('.annotation-' + scene.id)\n .remove();\n};\n\nfunction mockAnnAxes(ann, scene) {\n var fullSceneLayout = scene.fullSceneLayout;\n var domain = fullSceneLayout.domain;\n var size = scene.fullLayout._size;\n\n var base = {\n // this gets fill in on render\n pdata: null,\n\n // to get setConvert to not execute cleanly\n type: 'linear',\n\n // don't try to update them on `editable: true`\n autorange: false,\n\n // set infinite range so that annotation draw routine\n // does not try to remove 'outside-range' annotations,\n // this case is handled in the render loop\n range: [-Infinity, Infinity]\n };\n\n ann._xa = {};\n Lib.extendFlat(ann._xa, base);\n Axes.setConvert(ann._xa);\n ann._xa._offset = size.l + domain.x[0] * size.w;\n ann._xa.l2p = function() {\n return 0.5 * (1 + ann._pdata[0] / ann._pdata[3]) * size.w * (domain.x[1] - domain.x[0]);\n };\n\n ann._ya = {};\n Lib.extendFlat(ann._ya, base);\n Axes.setConvert(ann._ya);\n ann._ya._offset = size.t + (1 - domain.y[1]) * size.h;\n ann._ya.l2p = function() {\n return 0.5 * (1 - ann._pdata[1] / ann._pdata[3]) * size.h * (domain.y[1] - domain.y[0]);\n };\n}\n\n},{\"../../lib\":503,\"../../plots/cartesian/axes\":554}],360:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar handleArrayContainerDefaults = _dereq_('../../plots/array_container_defaults');\nvar handleAnnotationCommonDefaults = _dereq_('../annotations/common_defaults');\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function handleDefaults(sceneLayoutIn, sceneLayoutOut, opts) {\n handleArrayContainerDefaults(sceneLayoutIn, sceneLayoutOut, {\n name: 'annotations',\n handleItemDefaults: handleAnnotationDefaults,\n fullLayout: opts.fullLayout\n });\n};\n\nfunction handleAnnotationDefaults(annIn, annOut, sceneLayout, opts) {\n function coerce(attr, dflt) {\n return Lib.coerce(annIn, annOut, attributes, attr, dflt);\n }\n\n function coercePosition(axLetter) {\n var axName = axLetter + 'axis';\n\n // mock in such way that getFromId grabs correct 3D axis\n var gdMock = { _fullLayout: {} };\n gdMock._fullLayout[axName] = sceneLayout[axName];\n\n return Axes.coercePosition(annOut, gdMock, coerce, axLetter, axLetter, 0.5);\n }\n\n\n var visible = coerce('visible');\n if(!visible) return;\n\n handleAnnotationCommonDefaults(annIn, annOut, opts.fullLayout, coerce);\n\n coercePosition('x');\n coercePosition('y');\n coercePosition('z');\n\n // if you have one coordinate you should all three\n Lib.noneOrAll(annIn, annOut, ['x', 'y', 'z']);\n\n // hard-set here for completeness\n annOut.xref = 'x';\n annOut.yref = 'y';\n annOut.zref = 'z';\n\n coerce('xanchor');\n coerce('yanchor');\n coerce('xshift');\n coerce('yshift');\n\n if(annOut.showarrow) {\n annOut.axref = 'pixel';\n annOut.ayref = 'pixel';\n\n // TODO maybe default values should be bigger than the 2D case?\n coerce('ax', -10);\n coerce('ay', -30);\n\n // if you have one part of arrow length you should have both\n Lib.noneOrAll(annIn, annOut, ['ax', 'ay']);\n }\n}\n\n},{\"../../lib\":503,\"../../plots/array_container_defaults\":549,\"../../plots/cartesian/axes\":554,\"../annotations/common_defaults\":352,\"./attributes\":358}],361:[function(_dereq_,module,exports){\n'use strict';\n\nvar drawRaw = _dereq_('../annotations/draw').drawRaw;\nvar project = _dereq_('../../plots/gl3d/project');\nvar axLetters = ['x', 'y', 'z'];\n\nmodule.exports = function draw(scene) {\n var fullSceneLayout = scene.fullSceneLayout;\n var dataScale = scene.dataScale;\n var anns = fullSceneLayout.annotations;\n\n for(var i = 0; i < anns.length; i++) {\n var ann = anns[i];\n var annotationIsOffscreen = false;\n\n for(var j = 0; j < 3; j++) {\n var axLetter = axLetters[j];\n var pos = ann[axLetter];\n var ax = fullSceneLayout[axLetter + 'axis'];\n var posFraction = ax.r2fraction(pos);\n\n if(posFraction < 0 || posFraction > 1) {\n annotationIsOffscreen = true;\n break;\n }\n }\n\n if(annotationIsOffscreen) {\n scene.fullLayout._infolayer\n .select('.annotation-' + scene.id + '[data-index=\"' + i + '\"]')\n .remove();\n } else {\n ann._pdata = project(scene.glplot.cameraParams, [\n fullSceneLayout.xaxis.r2l(ann.x) * dataScale[0],\n fullSceneLayout.yaxis.r2l(ann.y) * dataScale[1],\n fullSceneLayout.zaxis.r2l(ann.z) * dataScale[2]\n ]);\n\n drawRaw(scene.graphDiv, ann, i, scene.id, ann._xa, ann._ya);\n }\n }\n};\n\n},{\"../../plots/gl3d/project\":607,\"../annotations/draw\":355}],362:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\n\nmodule.exports = {\n moduleType: 'component',\n name: 'annotations3d',\n\n schema: {\n subplots: {\n scene: {annotations: _dereq_('./attributes')}\n }\n },\n\n layoutAttributes: _dereq_('./attributes'),\n handleDefaults: _dereq_('./defaults'),\n includeBasePlot: includeGL3D,\n\n convert: _dereq_('./convert'),\n draw: _dereq_('./draw')\n};\n\nfunction includeGL3D(layoutIn, layoutOut) {\n var GL3D = Registry.subplotsRegistry.gl3d;\n if(!GL3D) return;\n\n var attrRegex = GL3D.attrRegex;\n\n var keys = Object.keys(layoutIn);\n for(var i = 0; i < keys.length; i++) {\n var k = keys[i];\n if(attrRegex.test(k) && (layoutIn[k].annotations || []).length) {\n Lib.pushUnique(layoutOut._basePlotModules, GL3D);\n Lib.pushUnique(layoutOut._subplots.gl3d, k);\n }\n }\n}\n\n},{\"../../lib\":503,\"../../registry\":638,\"./attributes\":358,\"./convert\":359,\"./defaults\":360,\"./draw\":361}],363:[function(_dereq_,module,exports){\n'use strict';\n\n// a trimmed down version of:\n// https://github.com/alexcjohnson/world-calendars/blob/master/dist/index.js\n\nmodule.exports = _dereq_('world-calendars/dist/main');\n\n_dereq_('world-calendars/dist/plus');\n\n_dereq_('world-calendars/dist/calendars/chinese');\n_dereq_('world-calendars/dist/calendars/coptic');\n_dereq_('world-calendars/dist/calendars/discworld');\n_dereq_('world-calendars/dist/calendars/ethiopian');\n_dereq_('world-calendars/dist/calendars/hebrew');\n_dereq_('world-calendars/dist/calendars/islamic');\n_dereq_('world-calendars/dist/calendars/julian');\n_dereq_('world-calendars/dist/calendars/mayan');\n_dereq_('world-calendars/dist/calendars/nanakshahi');\n_dereq_('world-calendars/dist/calendars/nepali');\n_dereq_('world-calendars/dist/calendars/persian');\n_dereq_('world-calendars/dist/calendars/taiwan');\n_dereq_('world-calendars/dist/calendars/thai');\n_dereq_('world-calendars/dist/calendars/ummalqura');\n\n},{\"world-calendars/dist/calendars/chinese\":332,\"world-calendars/dist/calendars/coptic\":333,\"world-calendars/dist/calendars/discworld\":334,\"world-calendars/dist/calendars/ethiopian\":335,\"world-calendars/dist/calendars/hebrew\":336,\"world-calendars/dist/calendars/islamic\":337,\"world-calendars/dist/calendars/julian\":338,\"world-calendars/dist/calendars/mayan\":339,\"world-calendars/dist/calendars/nanakshahi\":340,\"world-calendars/dist/calendars/nepali\":341,\"world-calendars/dist/calendars/persian\":342,\"world-calendars/dist/calendars/taiwan\":343,\"world-calendars/dist/calendars/thai\":344,\"world-calendars/dist/calendars/ummalqura\":345,\"world-calendars/dist/main\":346,\"world-calendars/dist/plus\":347}],364:[function(_dereq_,module,exports){\n'use strict';\n\nvar calendars = _dereq_('./calendars');\n\nvar Lib = _dereq_('../../lib');\nvar constants = _dereq_('../../constants/numerical');\n\nvar EPOCHJD = constants.EPOCHJD;\nvar ONEDAY = constants.ONEDAY;\n\nvar attributes = {\n valType: 'enumerated',\n values: Lib.sortObjectKeys(calendars.calendars),\n editType: 'calc',\n dflt: 'gregorian'\n};\n\nvar handleDefaults = function(contIn, contOut, attr, dflt) {\n var attrs = {};\n attrs[attr] = attributes;\n\n return Lib.coerce(contIn, contOut, attrs, attr, dflt);\n};\n\nvar handleTraceDefaults = function(traceIn, traceOut, coords, layout) {\n for(var i = 0; i < coords.length; i++) {\n handleDefaults(traceIn, traceOut, coords[i] + 'calendar', layout.calendar);\n }\n};\n\n// each calendar needs its own default canonical tick. I would love to use\n// 2000-01-01 (or even 0000-01-01) for them all but they don't necessarily\n// all support either of those dates. Instead I'll use the most significant\n// number they *do* support, biased toward the present day.\nvar CANONICAL_TICK = {\n chinese: '2000-01-01',\n coptic: '2000-01-01',\n discworld: '2000-01-01',\n ethiopian: '2000-01-01',\n hebrew: '5000-01-01',\n islamic: '1000-01-01',\n julian: '2000-01-01',\n mayan: '5000-01-01',\n nanakshahi: '1000-01-01',\n nepali: '2000-01-01',\n persian: '1000-01-01',\n jalali: '1000-01-01',\n taiwan: '1000-01-01',\n thai: '2000-01-01',\n ummalqura: '1400-01-01'\n};\n\n// Start on a Sunday - for week ticks\n// Discworld and Mayan calendars don't have 7-day weeks but we're going to give them\n// 7-day week ticks so start on our Sundays.\n// If anyone really cares we can customize the auto tick spacings for these calendars.\nvar CANONICAL_SUNDAY = {\n chinese: '2000-01-02',\n coptic: '2000-01-03',\n discworld: '2000-01-03',\n ethiopian: '2000-01-05',\n hebrew: '5000-01-01',\n islamic: '1000-01-02',\n julian: '2000-01-03',\n mayan: '5000-01-01',\n nanakshahi: '1000-01-05',\n nepali: '2000-01-05',\n persian: '1000-01-01',\n jalali: '1000-01-01',\n taiwan: '1000-01-04',\n thai: '2000-01-04',\n ummalqura: '1400-01-06'\n};\n\nvar DFLTRANGE = {\n chinese: ['2000-01-01', '2001-01-01'],\n coptic: ['1700-01-01', '1701-01-01'],\n discworld: ['1800-01-01', '1801-01-01'],\n ethiopian: ['2000-01-01', '2001-01-01'],\n hebrew: ['5700-01-01', '5701-01-01'],\n islamic: ['1400-01-01', '1401-01-01'],\n julian: ['2000-01-01', '2001-01-01'],\n mayan: ['5200-01-01', '5201-01-01'],\n nanakshahi: ['0500-01-01', '0501-01-01'],\n nepali: ['2000-01-01', '2001-01-01'],\n persian: ['1400-01-01', '1401-01-01'],\n jalali: ['1400-01-01', '1401-01-01'],\n taiwan: ['0100-01-01', '0101-01-01'],\n thai: ['2500-01-01', '2501-01-01'],\n ummalqura: ['1400-01-01', '1401-01-01']\n};\n\n/*\n * convert d3 templates to world-calendars templates, so our users only need\n * to know d3's specifiers. Map space padding to no padding, and unknown fields\n * to an ugly placeholder\n */\nvar UNKNOWN = '##';\nvar d3ToWorldCalendars = {\n 'd': {'0': 'dd', '-': 'd'}, // 2-digit or unpadded day of month\n 'e': {'0': 'd', '-': 'd'}, // alternate, always unpadded day of month\n 'a': {'0': 'D', '-': 'D'}, // short weekday name\n 'A': {'0': 'DD', '-': 'DD'}, // full weekday name\n 'j': {'0': 'oo', '-': 'o'}, // 3-digit or unpadded day of the year\n 'W': {'0': 'ww', '-': 'w'}, // 2-digit or unpadded week of the year (Monday first)\n 'm': {'0': 'mm', '-': 'm'}, // 2-digit or unpadded month number\n 'b': {'0': 'M', '-': 'M'}, // short month name\n 'B': {'0': 'MM', '-': 'MM'}, // full month name\n 'y': {'0': 'yy', '-': 'yy'}, // 2-digit year (map unpadded to zero-padded)\n 'Y': {'0': 'yyyy', '-': 'yyyy'}, // 4-digit year (map unpadded to zero-padded)\n 'U': UNKNOWN, // Sunday-first week of the year\n 'w': UNKNOWN, // day of the week [0(sunday),6]\n // combined format, we replace the date part with the world-calendar version\n // and the %X stays there for d3 to handle with time parts\n 'c': {'0': 'D M d %X yyyy', '-': 'D M d %X yyyy'},\n 'x': {'0': 'mm/dd/yyyy', '-': 'mm/dd/yyyy'}\n};\n\nfunction worldCalFmt(fmt, x, calendar) {\n var dateJD = Math.floor((x + 0.05) / ONEDAY) + EPOCHJD;\n var cDate = getCal(calendar).fromJD(dateJD);\n var i = 0;\n var modifier, directive, directiveLen, directiveObj, replacementPart;\n\n while((i = fmt.indexOf('%', i)) !== -1) {\n modifier = fmt.charAt(i + 1);\n if(modifier === '0' || modifier === '-' || modifier === '_') {\n directiveLen = 3;\n directive = fmt.charAt(i + 2);\n if(modifier === '_') modifier = '-';\n } else {\n directive = modifier;\n modifier = '0';\n directiveLen = 2;\n }\n directiveObj = d3ToWorldCalendars[directive];\n if(!directiveObj) {\n i += directiveLen;\n } else {\n // code is recognized as a date part but world-calendars doesn't support it\n if(directiveObj === UNKNOWN) replacementPart = UNKNOWN;\n\n // format the cDate according to the translated directive\n else replacementPart = cDate.formatDate(directiveObj[modifier]);\n\n fmt = fmt.substr(0, i) + replacementPart + fmt.substr(i + directiveLen);\n i += replacementPart.length;\n }\n }\n return fmt;\n}\n\n// cache world calendars, so we don't have to reinstantiate\n// during each date-time conversion\nvar allCals = {};\nfunction getCal(calendar) {\n var calendarObj = allCals[calendar];\n if(calendarObj) return calendarObj;\n\n calendarObj = allCals[calendar] = calendars.instance(calendar);\n return calendarObj;\n}\n\nfunction makeAttrs(description) {\n return Lib.extendFlat({}, attributes, { description: description });\n}\n\nfunction makeTraceAttrsDescription(coord) {\n return 'Sets the calendar system to use with `' + coord + '` date data.';\n}\n\nvar xAttrs = {\n xcalendar: makeAttrs(makeTraceAttrsDescription('x'))\n};\n\nvar xyAttrs = Lib.extendFlat({}, xAttrs, {\n ycalendar: makeAttrs(makeTraceAttrsDescription('y'))\n});\n\nvar xyzAttrs = Lib.extendFlat({}, xyAttrs, {\n zcalendar: makeAttrs(makeTraceAttrsDescription('z'))\n});\n\nvar axisAttrs = makeAttrs([\n 'Sets the calendar system to use for `range` and `tick0`',\n 'if this is a date axis. This does not set the calendar for',\n 'interpreting data on this axis, that\\'s specified in the trace',\n 'or via the global `layout.calendar`'\n].join(' '));\n\nmodule.exports = {\n moduleType: 'component',\n name: 'calendars',\n\n schema: {\n traces: {\n scatter: xyAttrs,\n bar: xyAttrs,\n box: xyAttrs,\n heatmap: xyAttrs,\n contour: xyAttrs,\n histogram: xyAttrs,\n histogram2d: xyAttrs,\n histogram2dcontour: xyAttrs,\n scatter3d: xyzAttrs,\n surface: xyzAttrs,\n mesh3d: xyzAttrs,\n scattergl: xyAttrs,\n ohlc: xAttrs,\n candlestick: xAttrs\n },\n layout: {\n calendar: makeAttrs([\n 'Sets the default calendar system to use for interpreting and',\n 'displaying dates throughout the plot.'\n ].join(' '))\n },\n subplots: {\n xaxis: {calendar: axisAttrs},\n yaxis: {calendar: axisAttrs},\n scene: {\n xaxis: {calendar: axisAttrs},\n // TODO: it's actually redundant to include yaxis and zaxis here\n // because in the scene attributes these are the same object so merging\n // into one merges into them all. However, I left them in for parity with\n // cartesian, where yaxis is unused until we Plotschema.get() when we\n // use its presence or absence to determine whether to delete attributes\n // from yaxis if they only apply to x (rangeselector/rangeslider)\n yaxis: {calendar: axisAttrs},\n zaxis: {calendar: axisAttrs}\n },\n polar: {\n radialaxis: {calendar: axisAttrs}\n }\n },\n transforms: {\n filter: {\n valuecalendar: makeAttrs([\n 'WARNING: All transforms are deprecated and may be removed from the API in next major version.',\n 'Sets the calendar system to use for `value`, if it is a date.'\n ].join(' ')),\n targetcalendar: makeAttrs([\n 'WARNING: All transforms are deprecated and may be removed from the API in next major version.',\n 'Sets the calendar system to use for `target`, if it is an',\n 'array of dates. If `target` is a string (eg *x*) we use the',\n 'corresponding trace attribute (eg `xcalendar`) if it exists,',\n 'even if `targetcalendar` is provided.'\n ].join(' '))\n }\n }\n },\n\n layoutAttributes: attributes,\n\n handleDefaults: handleDefaults,\n handleTraceDefaults: handleTraceDefaults,\n\n CANONICAL_SUNDAY: CANONICAL_SUNDAY,\n CANONICAL_TICK: CANONICAL_TICK,\n DFLTRANGE: DFLTRANGE,\n\n getCal: getCal,\n worldCalFmt: worldCalFmt\n};\n\n},{\"../../constants/numerical\":479,\"../../lib\":503,\"./calendars\":363}],365:[function(_dereq_,module,exports){\n'use strict';\n\n\n// IMPORTANT - default colors should be in hex for compatibility\nexports.defaults = [\n '#1f77b4', // muted blue\n '#ff7f0e', // safety orange\n '#2ca02c', // cooked asparagus green\n '#d62728', // brick red\n '#9467bd', // muted purple\n '#8c564b', // chestnut brown\n '#e377c2', // raspberry yogurt pink\n '#7f7f7f', // middle gray\n '#bcbd22', // curry yellow-green\n '#17becf' // blue-teal\n];\n\nexports.defaultLine = '#444';\n\nexports.lightLine = '#eee';\n\nexports.background = '#fff';\n\nexports.borderLine = '#BEC8D9';\n\n// with axis.color and Color.interp we aren't using lightLine\n// itself anymore, instead interpolating between axis.color\n// and the background color using tinycolor.mix. lightFraction\n// gives back exactly lightLine if the other colors are defaults.\nexports.lightFraction = 100 * (0xe - 0x4) / (0xf - 0x4);\n\n},{}],366:[function(_dereq_,module,exports){\n'use strict';\n\nvar tinycolor = _dereq_('tinycolor2');\nvar isNumeric = _dereq_('fast-isnumeric');\nvar isTypedArray = _dereq_('../../lib/array').isTypedArray;\n\nvar color = module.exports = {};\n\nvar colorAttrs = _dereq_('./attributes');\ncolor.defaults = colorAttrs.defaults;\nvar defaultLine = color.defaultLine = colorAttrs.defaultLine;\ncolor.lightLine = colorAttrs.lightLine;\nvar background = color.background = colorAttrs.background;\n\n/*\n * tinyRGB: turn a tinycolor into an rgb string, but\n * unlike the built-in tinycolor.toRgbString this never includes alpha\n */\ncolor.tinyRGB = function(tc) {\n var c = tc.toRgb();\n return 'rgb(' + Math.round(c.r) + ', ' +\n Math.round(c.g) + ', ' + Math.round(c.b) + ')';\n};\n\ncolor.rgb = function(cstr) { return color.tinyRGB(tinycolor(cstr)); };\n\ncolor.opacity = function(cstr) { return cstr ? tinycolor(cstr).getAlpha() : 0; };\n\ncolor.addOpacity = function(cstr, op) {\n var c = tinycolor(cstr).toRgb();\n return 'rgba(' + Math.round(c.r) + ', ' +\n Math.round(c.g) + ', ' + Math.round(c.b) + ', ' + op + ')';\n};\n\n// combine two colors into one apparent color\n// if back has transparency or is missing,\n// color.background is assumed behind it\ncolor.combine = function(front, back) {\n var fc = tinycolor(front).toRgb();\n if(fc.a === 1) return tinycolor(front).toRgbString();\n\n var bc = tinycolor(back || background).toRgb();\n var bcflat = bc.a === 1 ? bc : {\n r: 255 * (1 - bc.a) + bc.r * bc.a,\n g: 255 * (1 - bc.a) + bc.g * bc.a,\n b: 255 * (1 - bc.a) + bc.b * bc.a\n };\n var fcflat = {\n r: bcflat.r * (1 - fc.a) + fc.r * fc.a,\n g: bcflat.g * (1 - fc.a) + fc.g * fc.a,\n b: bcflat.b * (1 - fc.a) + fc.b * fc.a\n };\n return tinycolor(fcflat).toRgbString();\n};\n\n/*\n * Create a color that contrasts with cstr.\n *\n * If cstr is a dark color, we lighten it; if it's light, we darken.\n *\n * If lightAmount / darkAmount are used, we adjust by these percentages,\n * otherwise we go all the way to white or black.\n */\ncolor.contrast = function(cstr, lightAmount, darkAmount) {\n var tc = tinycolor(cstr);\n\n if(tc.getAlpha() !== 1) tc = tinycolor(color.combine(cstr, background));\n\n var newColor = tc.isDark() ?\n (lightAmount ? tc.lighten(lightAmount) : background) :\n (darkAmount ? tc.darken(darkAmount) : defaultLine);\n\n return newColor.toString();\n};\n\ncolor.stroke = function(s, c) {\n var tc = tinycolor(c);\n s.style({'stroke': color.tinyRGB(tc), 'stroke-opacity': tc.getAlpha()});\n};\n\ncolor.fill = function(s, c) {\n var tc = tinycolor(c);\n s.style({\n 'fill': color.tinyRGB(tc),\n 'fill-opacity': tc.getAlpha()\n });\n};\n\n// search container for colors with the deprecated rgb(fractions) format\n// and convert them to rgb(0-255 values)\ncolor.clean = function(container) {\n if(!container || typeof container !== 'object') return;\n\n var keys = Object.keys(container);\n var i, j, key, val;\n\n for(i = 0; i < keys.length; i++) {\n key = keys[i];\n val = container[key];\n\n if(key.substr(key.length - 5) === 'color') {\n // only sanitize keys that end in \"color\" or \"colorscale\"\n\n if(Array.isArray(val)) {\n for(j = 0; j < val.length; j++) val[j] = cleanOne(val[j]);\n } else container[key] = cleanOne(val);\n } else if(key.substr(key.length - 10) === 'colorscale' && Array.isArray(val)) {\n // colorscales have the format [[0, color1], [frac, color2], ... [1, colorN]]\n\n for(j = 0; j < val.length; j++) {\n if(Array.isArray(val[j])) val[j][1] = cleanOne(val[j][1]);\n }\n } else if(Array.isArray(val)) {\n // recurse into arrays of objects, and plain objects\n\n var el0 = val[0];\n if(!Array.isArray(el0) && el0 && typeof el0 === 'object') {\n for(j = 0; j < val.length; j++) color.clean(val[j]);\n }\n } else if(val && typeof val === 'object' && !isTypedArray(val)) color.clean(val);\n }\n};\n\nfunction cleanOne(val) {\n if(isNumeric(val) || typeof val !== 'string') return val;\n\n var valTrim = val.trim();\n if(valTrim.substr(0, 3) !== 'rgb') return val;\n\n var match = valTrim.match(/^rgba?\\s*\\(([^()]*)\\)$/);\n if(!match) return val;\n\n var parts = match[1].trim().split(/\\s*[\\s,]\\s*/);\n var rgba = valTrim.charAt(3) === 'a' && parts.length === 4;\n if(!rgba && parts.length !== 3) return val;\n\n for(var i = 0; i < parts.length; i++) {\n if(!parts[i].length) return val;\n parts[i] = Number(parts[i]);\n\n if(!(parts[i] >= 0)) {\n // all parts must be non-negative numbers\n\n return val;\n }\n\n if(i === 3) {\n // alpha>1 gets clipped to 1\n\n if(parts[i] > 1) parts[i] = 1;\n } else if(parts[i] >= 1) {\n // r, g, b must be < 1 (ie 1 itself is not allowed)\n\n return val;\n }\n }\n\n var rgbStr = Math.round(parts[0] * 255) + ', ' +\n Math.round(parts[1] * 255) + ', ' +\n Math.round(parts[2] * 255);\n\n if(rgba) return 'rgba(' + rgbStr + ', ' + parts[3] + ')';\n return 'rgb(' + rgbStr + ')';\n}\n\n},{\"../../lib/array\":485,\"./attributes\":365,\"fast-isnumeric\":190,\"tinycolor2\":312}],367:[function(_dereq_,module,exports){\n'use strict';\n\nvar axesAttrs = _dereq_('../../plots/cartesian/layout_attributes');\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\n\n\nmodule.exports = overrideAll({\n// TODO: only right is supported currently\n// orient: {\n// valType: 'enumerated',\n// values: ['left', 'right', 'top', 'bottom'],\n// dflt: 'right',\n//\n// },\n thicknessmode: {\n valType: 'enumerated',\n values: ['fraction', 'pixels'],\n dflt: 'pixels',\n },\n thickness: {\n valType: 'number',\n min: 0,\n dflt: 30,\n },\n lenmode: {\n valType: 'enumerated',\n values: ['fraction', 'pixels'],\n dflt: 'fraction',\n },\n len: {\n valType: 'number',\n min: 0,\n dflt: 1,\n },\n x: {\n valType: 'number',\n dflt: 1.02,\n min: -2,\n max: 3,\n },\n xanchor: {\n valType: 'enumerated',\n values: ['left', 'center', 'right'],\n dflt: 'left',\n },\n xpad: {\n valType: 'number',\n min: 0,\n dflt: 10,\n },\n y: {\n valType: 'number',\n dflt: 0.5,\n min: -2,\n max: 3,\n },\n yanchor: {\n valType: 'enumerated',\n values: ['top', 'middle', 'bottom'],\n dflt: 'middle',\n },\n ypad: {\n valType: 'number',\n min: 0,\n dflt: 10,\n },\n // a possible line around the bar itself\n outlinecolor: axesAttrs.linecolor,\n outlinewidth: axesAttrs.linewidth,\n // Should outlinewidth have {dflt: 0} ?\n // another possible line outside the padding and tick labels\n bordercolor: axesAttrs.linecolor,\n borderwidth: {\n valType: 'number',\n min: 0,\n dflt: 0,\n },\n bgcolor: {\n valType: 'color',\n dflt: 'rgba(0,0,0,0)',\n },\n // tick and title properties named and function exactly as in axes\n tickmode: axesAttrs.tickmode,\n nticks: axesAttrs.nticks,\n tick0: axesAttrs.tick0,\n dtick: axesAttrs.dtick,\n tickvals: axesAttrs.tickvals,\n ticktext: axesAttrs.ticktext,\n ticks: extendFlat({}, axesAttrs.ticks, {dflt: ''}),\n ticklabeloverflow: extendFlat({}, axesAttrs.ticklabeloverflow, {\n }),\n ticklabelposition: {\n valType: 'enumerated',\n values: [\n 'outside', 'inside',\n 'outside top', 'inside top',\n 'outside bottom', 'inside bottom'\n ],\n dflt: 'outside',\n },\n ticklen: axesAttrs.ticklen,\n tickwidth: axesAttrs.tickwidth,\n tickcolor: axesAttrs.tickcolor,\n showticklabels: axesAttrs.showticklabels,\n tickfont: fontAttrs({\n }),\n tickangle: axesAttrs.tickangle,\n tickformat: axesAttrs.tickformat,\n tickformatstops: axesAttrs.tickformatstops,\n tickprefix: axesAttrs.tickprefix,\n showtickprefix: axesAttrs.showtickprefix,\n ticksuffix: axesAttrs.ticksuffix,\n showticksuffix: axesAttrs.showticksuffix,\n separatethousands: axesAttrs.separatethousands,\n exponentformat: axesAttrs.exponentformat,\n minexponent: axesAttrs.minexponent,\n showexponent: axesAttrs.showexponent,\n title: {\n text: {\n valType: 'string',\n },\n font: fontAttrs({\n }),\n side: {\n valType: 'enumerated',\n values: ['right', 'top', 'bottom'],\n dflt: 'top',\n }\n },\n\n _deprecated: {\n title: {\n valType: 'string',\n },\n titlefont: fontAttrs({\n }),\n titleside: {\n valType: 'enumerated',\n values: ['right', 'top', 'bottom'],\n dflt: 'top',\n }\n }\n}, 'colorbars', 'from-root');\n\n},{\"../../lib/extend\":493,\"../../plot_api/edit_types\":536,\"../../plots/cartesian/layout_attributes\":569,\"../../plots/font_attributes\":585}],368:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n cn: {\n colorbar: 'colorbar',\n cbbg: 'cbbg',\n cbfill: 'cbfill',\n cbfills: 'cbfills',\n cbline: 'cbline',\n cblines: 'cblines',\n cbaxis: 'cbaxis',\n cbtitleunshift: 'cbtitleunshift',\n cbtitle: 'cbtitle',\n cboutline: 'cboutline',\n crisp: 'crisp',\n jsPlaceholder: 'js-placeholder'\n }\n};\n\n},{}],369:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Template = _dereq_('../../plot_api/plot_template');\n\nvar handleTickValueDefaults = _dereq_('../../plots/cartesian/tick_value_defaults');\nvar handleTickMarkDefaults = _dereq_('../../plots/cartesian/tick_mark_defaults');\nvar handleTickLabelDefaults = _dereq_('../../plots/cartesian/tick_label_defaults');\nvar handlePrefixSuffixDefaults = _dereq_('../../plots/cartesian/prefix_suffix_defaults');\n\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function colorbarDefaults(containerIn, containerOut, layout) {\n var colorbarOut = Template.newContainer(containerOut, 'colorbar');\n var colorbarIn = containerIn.colorbar || {};\n\n function coerce(attr, dflt) {\n return Lib.coerce(colorbarIn, colorbarOut, attributes, attr, dflt);\n }\n\n var thicknessmode = coerce('thicknessmode');\n coerce('thickness', (thicknessmode === 'fraction') ?\n 30 / (layout.width - layout.margin.l - layout.margin.r) :\n 30\n );\n\n var lenmode = coerce('lenmode');\n coerce('len', (lenmode === 'fraction') ?\n 1 :\n layout.height - layout.margin.t - layout.margin.b\n );\n\n coerce('x');\n coerce('xanchor');\n coerce('xpad');\n coerce('y');\n coerce('yanchor');\n coerce('ypad');\n Lib.noneOrAll(colorbarIn, colorbarOut, ['x', 'y']);\n\n coerce('outlinecolor');\n coerce('outlinewidth');\n coerce('bordercolor');\n coerce('borderwidth');\n coerce('bgcolor');\n\n var ticklabelposition = coerce('ticklabelposition');\n coerce('ticklabeloverflow', ticklabelposition.indexOf('inside') !== -1 ? 'hide past domain' : 'hide past div');\n\n handleTickValueDefaults(colorbarIn, colorbarOut, coerce, 'linear');\n\n var font = layout.font;\n var opts = {outerTicks: false, font: font};\n if(ticklabelposition.indexOf('inside') !== -1) {\n opts.bgColor = 'black'; // could we instead use the average of colors in the scale?\n }\n handlePrefixSuffixDefaults(colorbarIn, colorbarOut, coerce, 'linear', opts);\n handleTickLabelDefaults(colorbarIn, colorbarOut, coerce, 'linear', opts);\n handleTickMarkDefaults(colorbarIn, colorbarOut, coerce, 'linear', opts);\n\n coerce('title.text', layout._dfltTitle.colorbar);\n\n var tickFont = colorbarOut.tickfont;\n var dfltTitleFont = Lib.extendFlat({}, tickFont, {\n color: font.color,\n size: Lib.bigFont(tickFont.size)\n });\n Lib.coerceFont(coerce, 'title.font', dfltTitleFont);\n coerce('title.side');\n};\n\n},{\"../../lib\":503,\"../../plot_api/plot_template\":543,\"../../plots/cartesian/prefix_suffix_defaults\":573,\"../../plots/cartesian/tick_label_defaults\":578,\"../../plots/cartesian/tick_mark_defaults\":579,\"../../plots/cartesian/tick_value_defaults\":580,\"./attributes\":367}],370:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar tinycolor = _dereq_('tinycolor2');\n\nvar Plots = _dereq_('../../plots/plots');\nvar Registry = _dereq_('../../registry');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar dragElement = _dereq_('../dragelement');\nvar Lib = _dereq_('../../lib');\nvar strTranslate = Lib.strTranslate;\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar setCursor = _dereq_('../../lib/setcursor');\nvar Drawing = _dereq_('../drawing');\nvar Color = _dereq_('../color');\nvar Titles = _dereq_('../titles');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\nvar flipScale = _dereq_('../colorscale/helpers').flipScale;\n\nvar handleAxisDefaults = _dereq_('../../plots/cartesian/axis_defaults');\nvar handleAxisPositionDefaults = _dereq_('../../plots/cartesian/position_defaults');\nvar axisLayoutAttrs = _dereq_('../../plots/cartesian/layout_attributes');\n\nvar alignmentConstants = _dereq_('../../constants/alignment');\nvar LINE_SPACING = alignmentConstants.LINE_SPACING;\nvar FROM_TL = alignmentConstants.FROM_TL;\nvar FROM_BR = alignmentConstants.FROM_BR;\n\nvar cn = _dereq_('./constants').cn;\n\nfunction draw(gd) {\n var fullLayout = gd._fullLayout;\n\n var colorBars = fullLayout._infolayer\n .selectAll('g.' + cn.colorbar)\n .data(makeColorBarData(gd), function(opts) { return opts._id; });\n\n colorBars.enter().append('g')\n .attr('class', function(opts) { return opts._id; })\n .classed(cn.colorbar, true);\n\n colorBars.each(function(opts) {\n var g = d3.select(this);\n\n Lib.ensureSingle(g, 'rect', cn.cbbg);\n Lib.ensureSingle(g, 'g', cn.cbfills);\n Lib.ensureSingle(g, 'g', cn.cblines);\n Lib.ensureSingle(g, 'g', cn.cbaxis, function(s) { s.classed(cn.crisp, true); });\n Lib.ensureSingle(g, 'g', cn.cbtitleunshift, function(s) { s.append('g').classed(cn.cbtitle, true); });\n Lib.ensureSingle(g, 'rect', cn.cboutline);\n\n var done = drawColorBar(g, opts, gd);\n if(done && done.then) (gd._promises || []).push(done);\n\n if(gd._context.edits.colorbarPosition) {\n makeEditable(g, opts, gd);\n }\n });\n\n colorBars.exit()\n .each(function(opts) { Plots.autoMargin(gd, opts._id); })\n .remove();\n\n colorBars.order();\n}\n\nfunction makeColorBarData(gd) {\n var fullLayout = gd._fullLayout;\n var calcdata = gd.calcdata;\n var out = [];\n\n // single out item\n var opts;\n // colorbar attr parent container\n var cont;\n // trace attr container\n var trace;\n // colorbar options\n var cbOpt;\n\n function initOpts(opts) {\n return extendFlat(opts, {\n // fillcolor can be a d3 scale, domain is z values, range is colors\n // or leave it out for no fill,\n // or set to a string constant for single-color fill\n _fillcolor: null,\n // line.color has the same options as fillcolor\n _line: {color: null, width: null, dash: null},\n // levels of lines to draw.\n // note that this DOES NOT determine the extent of the bar\n // that's given by the domain of fillcolor\n // (or line.color if no fillcolor domain)\n _levels: {start: null, end: null, size: null},\n // separate fill levels (for example, heatmap coloring of a\n // contour map) if this is omitted, fillcolors will be\n // evaluated halfway between levels\n _filllevels: null,\n // for continuous colorscales: fill with a gradient instead of explicit levels\n // value should be the colorscale [[0, c0], [v1, c1], ..., [1, cEnd]]\n _fillgradient: null,\n // when using a gradient, we need the data range specified separately\n _zrange: null\n });\n }\n\n function calcOpts() {\n if(typeof cbOpt.calc === 'function') {\n cbOpt.calc(gd, trace, opts);\n } else {\n opts._fillgradient = cont.reversescale ?\n flipScale(cont.colorscale) :\n cont.colorscale;\n opts._zrange = [cont[cbOpt.min], cont[cbOpt.max]];\n }\n }\n\n for(var i = 0; i < calcdata.length; i++) {\n var cd = calcdata[i];\n trace = cd[0].trace;\n var moduleOpts = trace._module.colorbar;\n\n if(trace.visible === true && moduleOpts) {\n var allowsMultiplotCbs = Array.isArray(moduleOpts);\n var cbOpts = allowsMultiplotCbs ? moduleOpts : [moduleOpts];\n\n for(var j = 0; j < cbOpts.length; j++) {\n cbOpt = cbOpts[j];\n var contName = cbOpt.container;\n cont = contName ? trace[contName] : trace;\n\n if(cont && cont.showscale) {\n opts = initOpts(cont.colorbar);\n opts._id = 'cb' + trace.uid + (allowsMultiplotCbs && contName ? '-' + contName : '');\n opts._traceIndex = trace.index;\n opts._propPrefix = (contName ? contName + '.' : '') + 'colorbar.';\n opts._meta = trace._meta;\n calcOpts();\n out.push(opts);\n }\n }\n }\n }\n\n for(var k in fullLayout._colorAxes) {\n cont = fullLayout[k];\n\n if(cont.showscale) {\n var colorAxOpts = fullLayout._colorAxes[k];\n\n opts = initOpts(cont.colorbar);\n opts._id = 'cb' + k;\n opts._propPrefix = k + '.colorbar.';\n opts._meta = fullLayout._meta;\n\n cbOpt = {min: 'cmin', max: 'cmax'};\n if(colorAxOpts[0] !== 'heatmap') {\n trace = colorAxOpts[1];\n cbOpt.calc = trace._module.colorbar.calc;\n }\n\n calcOpts();\n out.push(opts);\n }\n }\n\n return out;\n}\n\nfunction drawColorBar(g, opts, gd) {\n var fullLayout = gd._fullLayout;\n var gs = fullLayout._size;\n\n var fillColor = opts._fillcolor;\n var line = opts._line;\n var title = opts.title;\n var titleSide = title.side;\n\n var zrange = opts._zrange ||\n d3.extent((typeof fillColor === 'function' ? fillColor : line.color).domain());\n\n var lineColormap = typeof line.color === 'function' ?\n line.color :\n function() { return line.color; };\n var fillColormap = typeof fillColor === 'function' ?\n fillColor :\n function() { return fillColor; };\n\n var levelsIn = opts._levels;\n var levelsOut = calcLevels(gd, opts, zrange);\n var fillLevels = levelsOut.fill;\n var lineLevels = levelsOut.line;\n\n // we calculate pixel sizes based on the specified graph size,\n // not the actual (in case something pushed the margins around)\n // which is a little odd but avoids an odd iterative effect\n // when the colorbar itself is pushing the margins.\n // but then the fractional size is calculated based on the\n // actual graph size, so that the axes will size correctly.\n var thickPx = Math.round(opts.thickness * (opts.thicknessmode === 'fraction' ? gs.w : 1));\n var thickFrac = thickPx / gs.w;\n var lenPx = Math.round(opts.len * (opts.lenmode === 'fraction' ? gs.h : 1));\n var lenFrac = lenPx / gs.h;\n var xpadFrac = opts.xpad / gs.w;\n var yExtraPx = (opts.borderwidth + opts.outlinewidth) / 2;\n var ypadFrac = opts.ypad / gs.h;\n\n // x positioning: do it initially just for left anchor,\n // then fix at the end (since we don't know the width yet)\n var xLeft = Math.round(opts.x * gs.w + opts.xpad);\n // for dragging... this is getting a little muddled...\n var xLeftFrac = opts.x - thickFrac * ({center: 0.5, right: 1}[opts.xanchor] || 0);\n\n // y positioning we can do correctly from the start\n var yBottomFrac = opts.y + lenFrac * (({top: -0.5, bottom: 0.5}[opts.yanchor] || 0) - 0.5);\n var yBottomPx = Math.round(gs.h * (1 - yBottomFrac));\n var yTopPx = yBottomPx - lenPx;\n\n // stash a few things for makeEditable\n opts._lenFrac = lenFrac;\n opts._thickFrac = thickFrac;\n opts._xLeftFrac = xLeftFrac;\n opts._yBottomFrac = yBottomFrac;\n\n // stash mocked axis for contour label formatting\n var ax = opts._axis = mockColorBarAxis(gd, opts, zrange);\n\n // position can't go in through supplyDefaults\n // because that restricts it to [0,1]\n ax.position = opts.x + xpadFrac + thickFrac;\n\n if(['top', 'bottom'].indexOf(titleSide) !== -1) {\n ax.title.side = titleSide;\n ax.titlex = opts.x + xpadFrac;\n ax.titley = yBottomFrac + (title.side === 'top' ? lenFrac - ypadFrac : ypadFrac);\n }\n\n if(line.color && opts.tickmode === 'auto') {\n ax.tickmode = 'linear';\n ax.tick0 = levelsIn.start;\n var dtick = levelsIn.size;\n // expand if too many contours, so we don't get too many ticks\n var autoNtick = Lib.constrain((yBottomPx - yTopPx) / 50, 4, 15) + 1;\n var dtFactor = (zrange[1] - zrange[0]) / ((opts.nticks || autoNtick) * dtick);\n if(dtFactor > 1) {\n var dtexp = Math.pow(10, Math.floor(Math.log(dtFactor) / Math.LN10));\n dtick *= dtexp * Lib.roundUp(dtFactor / dtexp, [2, 5, 10]);\n // if the contours are at round multiples, reset tick0\n // so they're still at round multiples. Otherwise,\n // keep the first label on the first contour level\n if((Math.abs(levelsIn.start) / levelsIn.size + 1e-6) % 1 < 2e-6) {\n ax.tick0 = 0;\n }\n }\n ax.dtick = dtick;\n }\n\n // set domain after init, because we may want to\n // allow it outside [0,1]\n ax.domain = [\n yBottomFrac + ypadFrac,\n yBottomFrac + lenFrac - ypadFrac\n ];\n\n ax.setScale();\n\n g.attr('transform', strTranslate(Math.round(gs.l), Math.round(gs.t)));\n\n var titleCont = g.select('.' + cn.cbtitleunshift)\n .attr('transform', strTranslate(-Math.round(gs.l), -Math.round(gs.t)));\n\n var axLayer = g.select('.' + cn.cbaxis);\n var titleEl;\n var titleHeight = 0;\n\n function drawTitle(titleClass, titleOpts) {\n var dfltTitleOpts = {\n propContainer: ax,\n propName: opts._propPrefix + 'title',\n traceIndex: opts._traceIndex,\n _meta: opts._meta,\n placeholder: fullLayout._dfltTitle.colorbar,\n containerGroup: g.select('.' + cn.cbtitle)\n };\n\n // this class-to-rotate thing with convertToTspans is\n // getting hackier and hackier... delete groups with the\n // wrong class (in case earlier the colorbar was drawn on\n // a different side, I think?)\n var otherClass = titleClass.charAt(0) === 'h' ?\n titleClass.substr(1) :\n 'h' + titleClass;\n g.selectAll('.' + otherClass + ',.' + otherClass + '-math-group').remove();\n\n Titles.draw(gd, titleClass, extendFlat(dfltTitleOpts, titleOpts || {}));\n }\n\n function drawDummyTitle() {\n if(['top', 'bottom'].indexOf(titleSide) !== -1) {\n // draw the title so we know how much room it needs\n // when we squish the axis. This one only applies to\n // top or bottom titles, not right side.\n var x = gs.l + (opts.x + xpadFrac) * gs.w;\n var fontSize = ax.title.font.size;\n var y;\n\n if(titleSide === 'top') {\n y = (1 - (yBottomFrac + lenFrac - ypadFrac)) * gs.h +\n gs.t + 3 + fontSize * 0.75;\n } else {\n y = (1 - (yBottomFrac + ypadFrac)) * gs.h +\n gs.t - 3 - fontSize * 0.25;\n }\n drawTitle(ax._id + 'title', {\n attributes: {x: x, y: y, 'text-anchor': 'start'}\n });\n }\n }\n\n function drawCbTitle() {\n if(['top', 'bottom'].indexOf(titleSide) === -1) {\n var fontSize = ax.title.font.size;\n var y = ax._offset + ax._length / 2;\n var x = gs.l + (ax.position || 0) * gs.w + ((ax.side === 'right') ?\n 10 + fontSize * ((ax.showticklabels ? 1 : 0.5)) :\n -10 - fontSize * ((ax.showticklabels ? 0.5 : 0)));\n\n // the 'h' + is a hack to get around the fact that\n // convertToTspans rotates any 'y...' class by 90 degrees.\n // TODO: find a better way to control this.\n drawTitle('h' + ax._id + 'title', {\n avoid: {\n selection: d3.select(gd).selectAll('g.' + ax._id + 'tick'),\n side: titleSide,\n offsetLeft: gs.l,\n offsetTop: 0,\n maxShift: fullLayout.width\n },\n attributes: {x: x, y: y, 'text-anchor': 'middle'},\n transform: {rotate: '-90', offset: 0}\n });\n }\n }\n\n function drawAxis() {\n if(['top', 'bottom'].indexOf(titleSide) !== -1) {\n // squish the axis top to make room for the title\n var titleGroup = g.select('.' + cn.cbtitle);\n var titleText = titleGroup.select('text');\n var titleTrans = [-opts.outlinewidth / 2, opts.outlinewidth / 2];\n var mathJaxNode = titleGroup\n .select('.h' + ax._id + 'title-math-group')\n .node();\n var lineSize = 15.6;\n if(titleText.node()) {\n lineSize = parseInt(titleText.node().style.fontSize, 10) * LINE_SPACING;\n }\n if(mathJaxNode) {\n titleHeight = Drawing.bBox(mathJaxNode).height;\n if(titleHeight > lineSize) {\n // not entirely sure how mathjax is doing\n // vertical alignment, but this seems to work.\n titleTrans[1] -= (titleHeight - lineSize) / 2;\n }\n } else if(titleText.node() && !titleText.classed(cn.jsPlaceholder)) {\n titleHeight = Drawing.bBox(titleText.node()).height;\n }\n if(titleHeight) {\n // buffer btwn colorbar and title\n // TODO: configurable\n titleHeight += 5;\n\n if(titleSide === 'top') {\n ax.domain[1] -= titleHeight / gs.h;\n titleTrans[1] *= -1;\n } else {\n ax.domain[0] += titleHeight / gs.h;\n var nlines = svgTextUtils.lineCount(titleText);\n titleTrans[1] += (1 - nlines) * lineSize;\n }\n\n titleGroup.attr('transform', strTranslate(titleTrans[0], titleTrans[1]));\n ax.setScale();\n }\n }\n\n g.selectAll('.' + cn.cbfills + ',.' + cn.cblines)\n .attr('transform', strTranslate(0, Math.round(gs.h * (1 - ax.domain[1]))));\n\n axLayer.attr('transform', strTranslate(0, Math.round(-gs.t)));\n\n var fills = g.select('.' + cn.cbfills)\n .selectAll('rect.' + cn.cbfill)\n .attr('style', '')\n .data(fillLevels);\n fills.enter().append('rect')\n .classed(cn.cbfill, true)\n .style('stroke', 'none');\n fills.exit().remove();\n\n var zBounds = zrange\n .map(ax.c2p)\n .map(Math.round)\n .sort(function(a, b) { return a - b; });\n\n fills.each(function(d, i) {\n var z = [\n (i === 0) ? zrange[0] : (fillLevels[i] + fillLevels[i - 1]) / 2,\n (i === fillLevels.length - 1) ? zrange[1] : (fillLevels[i] + fillLevels[i + 1]) / 2\n ]\n .map(ax.c2p)\n .map(Math.round);\n\n // offset the side adjoining the next rectangle so they\n // overlap, to prevent antialiasing gaps\n z[1] = Lib.constrain(z[1] + (z[1] > z[0]) ? 1 : -1, zBounds[0], zBounds[1]);\n\n\n // Colorbar cannot currently support opacities so we\n // use an opaque fill even when alpha channels present\n var fillEl = d3.select(this).attr({\n x: xLeft,\n width: Math.max(thickPx, 2),\n y: d3.min(z),\n height: Math.max(d3.max(z) - d3.min(z), 2),\n });\n\n if(opts._fillgradient) {\n Drawing.gradient(fillEl, gd, opts._id, 'vertical', opts._fillgradient, 'fill');\n } else {\n // tinycolor can't handle exponents and\n // at this scale, removing it makes no difference.\n var colorString = fillColormap(d).replace('e-', '');\n fillEl.attr('fill', tinycolor(colorString).toHexString());\n }\n });\n\n var lines = g.select('.' + cn.cblines)\n .selectAll('path.' + cn.cbline)\n .data(line.color && line.width ? lineLevels : []);\n lines.enter().append('path')\n .classed(cn.cbline, true);\n lines.exit().remove();\n lines.each(function(d) {\n d3.select(this)\n .attr('d', 'M' + xLeft + ',' +\n (Math.round(ax.c2p(d)) + (line.width / 2) % 1) + 'h' + thickPx)\n .call(Drawing.lineGroupStyle, line.width, lineColormap(d), line.dash);\n });\n\n // force full redraw of labels and ticks\n axLayer.selectAll('g.' + ax._id + 'tick,path').remove();\n\n var shift = xLeft + thickPx +\n (opts.outlinewidth || 0) / 2 - (opts.ticks === 'outside' ? 1 : 0);\n\n var vals = Axes.calcTicks(ax);\n var tickSign = Axes.getTickSigns(ax)[2];\n\n Axes.drawTicks(gd, ax, {\n vals: ax.ticks === 'inside' ? Axes.clipEnds(ax, vals) : vals,\n layer: axLayer,\n path: Axes.makeTickPath(ax, shift, tickSign),\n transFn: Axes.makeTransTickFn(ax)\n });\n\n return Axes.drawLabels(gd, ax, {\n vals: vals,\n layer: axLayer,\n transFn: Axes.makeTransTickLabelFn(ax),\n labelFns: Axes.makeLabelFns(ax, shift)\n });\n }\n\n // wait for the axis & title to finish rendering before\n // continuing positioning\n // TODO: why are we redrawing multiple times now with this?\n // I guess autoMargin doesn't like being post-promise?\n function positionCB() {\n var innerWidth = thickPx + opts.outlinewidth / 2;\n if(ax.ticklabelposition.indexOf('inside') === -1) {\n innerWidth += Drawing.bBox(axLayer.node()).width;\n }\n\n titleEl = titleCont.select('text');\n\n if(titleEl.node() && !titleEl.classed(cn.jsPlaceholder)) {\n var mathJaxNode = titleCont.select('.h' + ax._id + 'title-math-group').node();\n var titleWidth;\n if(mathJaxNode && ['top', 'bottom'].indexOf(titleSide) !== -1) {\n titleWidth = Drawing.bBox(mathJaxNode).width;\n } else {\n // note: the formula below works for all title sides,\n // (except for top/bottom mathjax, above)\n // but the weird gs.l is because the titleunshift\n // transform gets removed by Drawing.bBox\n titleWidth = Drawing.bBox(titleCont.node()).right - xLeft - gs.l;\n }\n innerWidth = Math.max(innerWidth, titleWidth);\n }\n\n var outerwidth = 2 * opts.xpad + innerWidth + opts.borderwidth + opts.outlinewidth / 2;\n var outerheight = yBottomPx - yTopPx;\n\n g.select('.' + cn.cbbg).attr({\n x: xLeft - opts.xpad - (opts.borderwidth + opts.outlinewidth) / 2,\n y: yTopPx - yExtraPx,\n width: Math.max(outerwidth, 2),\n height: Math.max(outerheight + 2 * yExtraPx, 2)\n })\n .call(Color.fill, opts.bgcolor)\n .call(Color.stroke, opts.bordercolor)\n .style('stroke-width', opts.borderwidth);\n\n g.selectAll('.' + cn.cboutline).attr({\n x: xLeft,\n y: yTopPx + opts.ypad + (titleSide === 'top' ? titleHeight : 0),\n width: Math.max(thickPx, 2),\n height: Math.max(outerheight - 2 * opts.ypad - titleHeight, 2)\n })\n .call(Color.stroke, opts.outlinecolor)\n .style({\n fill: 'none',\n 'stroke-width': opts.outlinewidth\n });\n\n // fix positioning for xanchor!='left'\n var xoffset = ({center: 0.5, right: 1}[opts.xanchor] || 0) * outerwidth;\n g.attr('transform', strTranslate(gs.l - xoffset, gs.t));\n\n // auto margin adjustment\n var marginOpts = {};\n var tFrac = FROM_TL[opts.yanchor];\n var bFrac = FROM_BR[opts.yanchor];\n if(opts.lenmode === 'pixels') {\n marginOpts.y = opts.y;\n marginOpts.t = outerheight * tFrac;\n marginOpts.b = outerheight * bFrac;\n } else {\n marginOpts.t = marginOpts.b = 0;\n marginOpts.yt = opts.y + opts.len * tFrac;\n marginOpts.yb = opts.y - opts.len * bFrac;\n }\n\n var lFrac = FROM_TL[opts.xanchor];\n var rFrac = FROM_BR[opts.xanchor];\n if(opts.thicknessmode === 'pixels') {\n marginOpts.x = opts.x;\n marginOpts.l = outerwidth * lFrac;\n marginOpts.r = outerwidth * rFrac;\n } else {\n var extraThickness = outerwidth - thickPx;\n marginOpts.l = extraThickness * lFrac;\n marginOpts.r = extraThickness * rFrac;\n marginOpts.xl = opts.x - opts.thickness * lFrac;\n marginOpts.xr = opts.x + opts.thickness * rFrac;\n }\n\n Plots.autoMargin(gd, opts._id, marginOpts);\n }\n\n return Lib.syncOrAsync([\n Plots.previousPromises,\n drawDummyTitle,\n drawAxis,\n drawCbTitle,\n Plots.previousPromises,\n positionCB\n ], gd);\n}\n\nfunction makeEditable(g, opts, gd) {\n var fullLayout = gd._fullLayout;\n var gs = fullLayout._size;\n var t0, xf, yf;\n\n dragElement.init({\n element: g.node(),\n gd: gd,\n prepFn: function() {\n t0 = g.attr('transform');\n setCursor(g);\n },\n moveFn: function(dx, dy) {\n g.attr('transform', t0 + strTranslate(dx, dy));\n\n xf = dragElement.align(opts._xLeftFrac + (dx / gs.w), opts._thickFrac,\n 0, 1, opts.xanchor);\n yf = dragElement.align(opts._yBottomFrac - (dy / gs.h), opts._lenFrac,\n 0, 1, opts.yanchor);\n\n var csr = dragElement.getCursor(xf, yf, opts.xanchor, opts.yanchor);\n setCursor(g, csr);\n },\n doneFn: function() {\n setCursor(g);\n\n if(xf !== undefined && yf !== undefined) {\n var update = {};\n update[opts._propPrefix + 'x'] = xf;\n update[opts._propPrefix + 'y'] = yf;\n if(opts._traceIndex !== undefined) {\n Registry.call('_guiRestyle', gd, update, opts._traceIndex);\n } else {\n Registry.call('_guiRelayout', gd, update);\n }\n }\n }\n });\n}\n\nfunction calcLevels(gd, opts, zrange) {\n var levelsIn = opts._levels;\n var lineLevels = [];\n var fillLevels = [];\n var l;\n var i;\n\n var l0 = levelsIn.end + levelsIn.size / 100;\n var ls = levelsIn.size;\n var zr0 = (1.001 * zrange[0] - 0.001 * zrange[1]);\n var zr1 = (1.001 * zrange[1] - 0.001 * zrange[0]);\n\n for(i = 0; i < 1e5; i++) {\n l = levelsIn.start + i * ls;\n if(ls > 0 ? (l >= l0) : (l <= l0)) break;\n if(l > zr0 && l < zr1) lineLevels.push(l);\n }\n\n if(opts._fillgradient) {\n fillLevels = [0];\n } else if(typeof opts._fillcolor === 'function') {\n var fillLevelsIn = opts._filllevels;\n\n if(fillLevelsIn) {\n l0 = fillLevelsIn.end + fillLevelsIn.size / 100;\n ls = fillLevelsIn.size;\n for(i = 0; i < 1e5; i++) {\n l = fillLevelsIn.start + i * ls;\n if(ls > 0 ? (l >= l0) : (l <= l0)) break;\n if(l > zrange[0] && l < zrange[1]) fillLevels.push(l);\n }\n } else {\n fillLevels = lineLevels.map(function(v) {\n return v - levelsIn.size / 2;\n });\n fillLevels.push(fillLevels[fillLevels.length - 1] + levelsIn.size);\n }\n } else if(opts._fillcolor && typeof opts._fillcolor === 'string') {\n // doesn't matter what this value is, with a single value\n // we'll make a single fill rect covering the whole bar\n fillLevels = [0];\n }\n\n if(levelsIn.size < 0) {\n lineLevels.reverse();\n fillLevels.reverse();\n }\n\n return {line: lineLevels, fill: fillLevels};\n}\n\nfunction mockColorBarAxis(gd, opts, zrange) {\n var fullLayout = gd._fullLayout;\n\n var cbAxisIn = {\n type: 'linear',\n range: zrange,\n tickmode: opts.tickmode,\n nticks: opts.nticks,\n tick0: opts.tick0,\n dtick: opts.dtick,\n tickvals: opts.tickvals,\n ticktext: opts.ticktext,\n ticks: opts.ticks,\n ticklen: opts.ticklen,\n tickwidth: opts.tickwidth,\n tickcolor: opts.tickcolor,\n showticklabels: opts.showticklabels,\n ticklabelposition: opts.ticklabelposition,\n ticklabeloverflow: opts.ticklabeloverflow,\n tickfont: opts.tickfont,\n tickangle: opts.tickangle,\n tickformat: opts.tickformat,\n exponentformat: opts.exponentformat,\n minexponent: opts.minexponent,\n separatethousands: opts.separatethousands,\n showexponent: opts.showexponent,\n showtickprefix: opts.showtickprefix,\n tickprefix: opts.tickprefix,\n showticksuffix: opts.showticksuffix,\n ticksuffix: opts.ticksuffix,\n title: opts.title,\n showline: true,\n anchor: 'free',\n side: 'right',\n position: 1\n };\n\n var cbAxisOut = {\n type: 'linear',\n _id: 'y' + opts._id\n };\n\n var axisOptions = {\n letter: 'y',\n font: fullLayout.font,\n noHover: true,\n noTickson: true,\n noTicklabelmode: true,\n calendar: fullLayout.calendar // not really necessary (yet?)\n };\n\n function coerce(attr, dflt) {\n return Lib.coerce(cbAxisIn, cbAxisOut, axisLayoutAttrs, attr, dflt);\n }\n\n handleAxisDefaults(cbAxisIn, cbAxisOut, coerce, axisOptions, fullLayout);\n handleAxisPositionDefaults(cbAxisIn, cbAxisOut, coerce, axisOptions);\n\n return cbAxisOut;\n}\n\nmodule.exports = {\n draw: draw\n};\n\n},{\"../../constants/alignment\":471,\"../../lib\":503,\"../../lib/extend\":493,\"../../lib/setcursor\":524,\"../../lib/svg_text_utils\":529,\"../../plots/cartesian/axes\":554,\"../../plots/cartesian/axis_defaults\":556,\"../../plots/cartesian/layout_attributes\":569,\"../../plots/cartesian/position_defaults\":572,\"../../plots/plots\":619,\"../../registry\":638,\"../color\":366,\"../colorscale/helpers\":377,\"../dragelement\":385,\"../drawing\":388,\"../titles\":464,\"./constants\":368,\"@plotly/d3\":58,\"tinycolor2\":312}],371:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\n\nmodule.exports = function hasColorbar(container) {\n return Lib.isPlainObject(container.colorbar);\n};\n\n},{\"../../lib\":503}],372:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'component',\n name: 'colorbar',\n\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n\n draw: _dereq_('./draw').draw,\n hasColorbar: _dereq_('./has_colorbar')\n};\n\n},{\"./attributes\":367,\"./defaults\":369,\"./draw\":370,\"./has_colorbar\":371}],373:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorbarAttrs = _dereq_('../colorbar/attributes');\nvar counterRegex = _dereq_('../../lib/regex').counter;\nvar sortObjectKeys = _dereq_('../../lib/sort_object_keys');\n\nvar palettes = _dereq_('./scales.js').scales;\nvar paletteStr = sortObjectKeys(palettes);\n\nfunction code(s) {\n return '`' + s + '`';\n}\n\n/**\n * Make colorscale attribute declarations for\n *\n * - colorscale,\n * - (c|z)auto, (c|z)min, (c|z)max,\n * - autocolorscale, reversescale,\n * - showscale (optionally)\n * - color (optionally)\n *\n * @param {string} context (dflt: '', i.e. from trace root):\n * the container this is in ('', *marker*, *marker.line* etc)\n *\n * @param {object} opts:\n * - cLetter {string} (dflt: 'c'):\n * leading letter for 'min', 'max and 'auto' attribute (either 'z' or 'c')\n *\n * - colorAttr {string} (dflt: 'z' if `cLetter: 'z'`, 'color' if `cLetter: 'c'`):\n * (for descriptions) sets the name of the color attribute that maps to the colorscale.\n *\n * N.B. if `colorAttr: 'color'`, we include the `color` declaration here.\n *\n * - onlyIfNumerical {string} (dflt: false' if `cLetter: 'z'`, true if `cLetter: 'c'`):\n * (for descriptions) set to true if colorscale attribute only\n *\n * - colorscaleDflt {string}:\n * overrides the colorscale dflt\n *\n * - autoColorDflt {boolean} (dflt true):\n * normally autocolorscale.dflt is `true`, but pass `false` to override\n *\n * - noScale {boolean} (dflt: true if `context: 'marker.line'`, false otherwise):\n * set to `false` to not include showscale attribute (e.g. for 'marker.line')\n *\n * - showScaleDflt {boolean} (dflt: true if `cLetter: 'z'`, false otherwise)\n *\n * - editTypeOverride {boolean} (dflt: ''):\n * most of these attributes already require a recalc, but the ones that do not\n * have editType *style* or *plot* unless you override (presumably with *calc*)\n *\n * - anim {boolean) (dflt: undefined): is 'color' animatable?\n *\n * @return {object}\n */\nmodule.exports = function colorScaleAttrs(context, opts) {\n context = context || '';\n opts = opts || {};\n\n var cLetter = opts.cLetter || 'c';\n var onlyIfNumerical = ('onlyIfNumerical' in opts) ? opts.onlyIfNumerical : Boolean(context);\n var noScale = ('noScale' in opts) ? opts.noScale : context === 'marker.line';\n var showScaleDflt = ('showScaleDflt' in opts) ? opts.showScaleDflt : cLetter === 'z';\n var colorscaleDflt = typeof opts.colorscaleDflt === 'string' ? palettes[opts.colorscaleDflt] : null;\n var editTypeOverride = opts.editTypeOverride || '';\n var contextHead = context ? (context + '.') : '';\n\n var colorAttr, colorAttrFull;\n\n if('colorAttr' in opts) {\n colorAttr = opts.colorAttr;\n colorAttrFull = opts.colorAttr;\n } else {\n colorAttr = {z: 'z', c: 'color'}[cLetter];\n colorAttrFull = 'in ' + code(contextHead + colorAttr);\n }\n\n var effectDesc = onlyIfNumerical ?\n ' Has an effect only if ' + colorAttrFull + 'is set to a numerical array.' :\n '';\n\n var auto = cLetter + 'auto';\n var min = cLetter + 'min';\n var max = cLetter + 'max';\n var mid = cLetter + 'mid';\n var autoFull = code(contextHead + auto);\n var minFull = code(contextHead + min);\n var maxFull = code(contextHead + max);\n var minmaxFull = minFull + ' and ' + maxFull;\n var autoImpliedEdits = {};\n autoImpliedEdits[min] = autoImpliedEdits[max] = undefined;\n var minmaxImpliedEdits = {};\n minmaxImpliedEdits[auto] = false;\n\n var attrs = {};\n\n if(colorAttr === 'color') {\n attrs.color = {\n valType: 'color',\n arrayOk: true,\n editType: editTypeOverride || 'style',\n };\n\n if(opts.anim) {\n attrs.color.anim = true;\n }\n }\n\n attrs[auto] = {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n impliedEdits: autoImpliedEdits,\n };\n\n attrs[min] = {\n valType: 'number',\n dflt: null,\n editType: editTypeOverride || 'plot',\n impliedEdits: minmaxImpliedEdits,\n };\n\n attrs[max] = {\n valType: 'number',\n dflt: null,\n editType: editTypeOverride || 'plot',\n impliedEdits: minmaxImpliedEdits,\n };\n\n attrs[mid] = {\n valType: 'number',\n dflt: null,\n editType: 'calc',\n impliedEdits: autoImpliedEdits,\n };\n\n attrs.colorscale = {\n valType: 'colorscale',\n editType: 'calc',\n dflt: colorscaleDflt,\n impliedEdits: {autocolorscale: false},\n };\n\n attrs.autocolorscale = {\n valType: 'boolean',\n // gets overrode in 'heatmap' & 'surface' for backwards comp.\n dflt: opts.autoColorDflt === false ? false : true,\n editType: 'calc',\n impliedEdits: {colorscale: undefined},\n };\n\n attrs.reversescale = {\n valType: 'boolean',\n dflt: false,\n editType: 'plot',\n };\n\n if(!noScale) {\n attrs.showscale = {\n valType: 'boolean',\n dflt: showScaleDflt,\n editType: 'calc',\n };\n\n attrs.colorbar = colorbarAttrs;\n }\n\n if(!opts.noColorAxis) {\n attrs.coloraxis = {\n valType: 'subplotid',\n regex: counterRegex('coloraxis'),\n dflt: null,\n editType: 'calc',\n };\n }\n\n return attrs;\n};\n\n},{\"../../lib/regex\":520,\"../../lib/sort_object_keys\":526,\"../colorbar/attributes\":367,\"./scales.js\":381}],374:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Lib = _dereq_('../../lib');\nvar extractOpts = _dereq_('./helpers').extractOpts;\n\nmodule.exports = function calc(gd, trace, opts) {\n var fullLayout = gd._fullLayout;\n var vals = opts.vals;\n var containerStr = opts.containerStr;\n\n var container = containerStr ?\n Lib.nestedProperty(trace, containerStr).get() :\n trace;\n\n var cOpts = extractOpts(container);\n var auto = cOpts.auto !== false;\n var min = cOpts.min;\n var max = cOpts.max;\n var mid = cOpts.mid;\n\n var minVal = function() { return Lib.aggNums(Math.min, null, vals); };\n var maxVal = function() { return Lib.aggNums(Math.max, null, vals); };\n\n if(min === undefined) {\n min = minVal();\n } else if(auto) {\n if(container._colorAx && isNumeric(min)) {\n min = Math.min(min, minVal());\n } else {\n min = minVal();\n }\n }\n\n if(max === undefined) {\n max = maxVal();\n } else if(auto) {\n if(container._colorAx && isNumeric(max)) {\n max = Math.max(max, maxVal());\n } else {\n max = maxVal();\n }\n }\n\n if(auto && mid !== undefined) {\n if(max - mid > mid - min) {\n min = mid - (max - mid);\n } else if(max - mid < mid - min) {\n max = mid + (mid - min);\n }\n }\n\n if(min === max) {\n min -= 0.5;\n max += 0.5;\n }\n\n cOpts._sync('min', min);\n cOpts._sync('max', max);\n\n if(cOpts.autocolorscale) {\n var scl;\n if(min * max < 0) scl = fullLayout.colorscale.diverging;\n else if(min >= 0) scl = fullLayout.colorscale.sequential;\n else scl = fullLayout.colorscale.sequentialminus;\n cOpts._sync('colorscale', scl);\n }\n};\n\n},{\"../../lib\":503,\"./helpers\":377,\"fast-isnumeric\":190}],375:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar hasColorscale = _dereq_('./helpers').hasColorscale;\nvar extractOpts = _dereq_('./helpers').extractOpts;\n\nmodule.exports = function crossTraceDefaults(fullData, fullLayout) {\n function replace(cont, k) {\n var val = cont['_' + k];\n if(val !== undefined) {\n cont[k] = val;\n }\n }\n\n function relinkColorAttrs(outerCont, cbOpt) {\n var cont = cbOpt.container ?\n Lib.nestedProperty(outerCont, cbOpt.container).get() :\n outerCont;\n\n if(cont) {\n if(cont.coloraxis) {\n // stash ref to color axis\n cont._colorAx = fullLayout[cont.coloraxis];\n } else {\n var cOpts = extractOpts(cont);\n var isAuto = cOpts.auto;\n\n if(isAuto || cOpts.min === undefined) {\n replace(cont, cbOpt.min);\n }\n if(isAuto || cOpts.max === undefined) {\n replace(cont, cbOpt.max);\n }\n if(cOpts.autocolorscale) {\n replace(cont, 'colorscale');\n }\n }\n }\n }\n\n for(var i = 0; i < fullData.length; i++) {\n var trace = fullData[i];\n var cbOpts = trace._module.colorbar;\n\n if(cbOpts) {\n if(Array.isArray(cbOpts)) {\n for(var j = 0; j < cbOpts.length; j++) {\n relinkColorAttrs(trace, cbOpts[j]);\n }\n } else {\n relinkColorAttrs(trace, cbOpts);\n }\n }\n\n if(hasColorscale(trace, 'marker.line')) {\n relinkColorAttrs(trace, {\n container: 'marker.line',\n min: 'cmin',\n max: 'cmax'\n });\n }\n }\n\n for(var k in fullLayout._colorAxes) {\n relinkColorAttrs(fullLayout[k], {min: 'cmin', max: 'cmax'});\n }\n};\n\n},{\"../../lib\":503,\"./helpers\":377}],376:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Lib = _dereq_('../../lib');\nvar hasColorbar = _dereq_('../colorbar/has_colorbar');\nvar colorbarDefaults = _dereq_('../colorbar/defaults');\n\nvar isValidScale = _dereq_('./scales').isValid;\nvar traceIs = _dereq_('../../registry').traceIs;\n\nfunction npMaybe(parentCont, prefix) {\n var containerStr = prefix.slice(0, prefix.length - 1);\n return prefix ?\n Lib.nestedProperty(parentCont, containerStr).get() || {} :\n parentCont;\n}\n\n/**\n * Colorscale / colorbar default handler\n *\n * @param {object} parentContIn : user (input) parent container (e.g. trace or layout coloraxis object)\n * @param {object} parentContOut : full parent container\n * @param {object} layout : (full) layout object\n * @param {fn} coerce : Lib.coerce wrapper\n * @param {object} opts :\n * - prefix {string} : attr string prefix to colorscale container from parent root\n * - cLetter {string} : 'c or 'z' color letter\n */\nmodule.exports = function colorScaleDefaults(parentContIn, parentContOut, layout, coerce, opts) {\n var prefix = opts.prefix;\n var cLetter = opts.cLetter;\n var inTrace = '_module' in parentContOut;\n var containerIn = npMaybe(parentContIn, prefix);\n var containerOut = npMaybe(parentContOut, prefix);\n var template = npMaybe(parentContOut._template || {}, prefix) || {};\n\n // colorScaleDefaults wrapper called if-ever we need to reset the colorscale\n // attributes for containers that were linked to invalid color axes\n var thisFn = function() {\n delete parentContIn.coloraxis;\n delete parentContOut.coloraxis;\n return colorScaleDefaults(parentContIn, parentContOut, layout, coerce, opts);\n };\n\n if(inTrace) {\n var colorAxes = layout._colorAxes || {};\n var colorAx = coerce(prefix + 'coloraxis');\n\n if(colorAx) {\n var colorbarVisuals = (\n traceIs(parentContOut, 'contour') &&\n Lib.nestedProperty(parentContOut, 'contours.coloring').get()\n ) || 'heatmap';\n\n var stash = colorAxes[colorAx];\n\n if(stash) {\n stash[2].push(thisFn);\n\n if(stash[0] !== colorbarVisuals) {\n stash[0] = false;\n Lib.warn([\n 'Ignoring coloraxis:', colorAx, 'setting',\n 'as it is linked to incompatible colorscales.'\n ].join(' '));\n }\n } else {\n // stash:\n // - colorbar visual 'type'\n // - colorbar options to help in Colorbar.draw\n // - list of colorScaleDefaults wrapper functions\n colorAxes[colorAx] = [colorbarVisuals, parentContOut, [thisFn]];\n }\n return;\n }\n }\n\n var minIn = containerIn[cLetter + 'min'];\n var maxIn = containerIn[cLetter + 'max'];\n var validMinMax = isNumeric(minIn) && isNumeric(maxIn) && (minIn < maxIn);\n var auto = coerce(prefix + cLetter + 'auto', !validMinMax);\n\n if(auto) {\n coerce(prefix + cLetter + 'mid');\n } else {\n coerce(prefix + cLetter + 'min');\n coerce(prefix + cLetter + 'max');\n }\n\n // handles both the trace case (autocolorscale is false by default) and\n // the marker and marker.line case (autocolorscale is true by default)\n var sclIn = containerIn.colorscale;\n var sclTemplate = template.colorscale;\n var autoColorscaleDflt;\n if(sclIn !== undefined) autoColorscaleDflt = !isValidScale(sclIn);\n if(sclTemplate !== undefined) autoColorscaleDflt = !isValidScale(sclTemplate);\n coerce(prefix + 'autocolorscale', autoColorscaleDflt);\n\n coerce(prefix + 'colorscale');\n coerce(prefix + 'reversescale');\n\n if(prefix !== 'marker.line.') {\n // handles both the trace case where the dflt is listed in attributes and\n // the marker case where the dflt is determined by hasColorbar\n var showScaleDflt;\n if(prefix && inTrace) showScaleDflt = hasColorbar(containerIn);\n\n var showScale = coerce(prefix + 'showscale', showScaleDflt);\n if(showScale) {\n if(prefix && template) containerOut._template = template;\n colorbarDefaults(containerIn, containerOut, layout);\n }\n }\n};\n\n},{\"../../lib\":503,\"../../registry\":638,\"../colorbar/defaults\":369,\"../colorbar/has_colorbar\":371,\"./scales\":381,\"fast-isnumeric\":190}],377:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar tinycolor = _dereq_('tinycolor2');\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Lib = _dereq_('../../lib');\nvar Color = _dereq_('../color');\n\nvar isValidScale = _dereq_('./scales').isValid;\n\nfunction hasColorscale(trace, containerStr, colorKey) {\n var container = containerStr ?\n Lib.nestedProperty(trace, containerStr).get() || {} :\n trace;\n var color = container[colorKey || 'color'];\n\n var isArrayWithOneNumber = false;\n if(Lib.isArrayOrTypedArray(color)) {\n for(var i = 0; i < color.length; i++) {\n if(isNumeric(color[i])) {\n isArrayWithOneNumber = true;\n break;\n }\n }\n }\n\n return (\n Lib.isPlainObject(container) && (\n isArrayWithOneNumber ||\n container.showscale === true ||\n (isNumeric(container.cmin) && isNumeric(container.cmax)) ||\n isValidScale(container.colorscale) ||\n Lib.isPlainObject(container.colorbar)\n )\n );\n}\n\nvar constantAttrs = ['showscale', 'autocolorscale', 'colorscale', 'reversescale', 'colorbar'];\nvar letterAttrs = ['min', 'max', 'mid', 'auto'];\n\n/**\n * Extract 'c' / 'z', trace / color axis colorscale options\n *\n * Note that it would be nice to replace all z* with c* equivalents in v3\n *\n * @param {object} cont : attribute container\n * @return {object}:\n * - min: cmin or zmin\n * - max: cmax or zmax\n * - mid: cmid or zmid\n * - auto: cauto or zauto\n * - *scale: *scale attrs\n * - colorbar: colorbar\n * - _sync: function syncing attr and underscore dual (useful when calc'ing min/max)\n */\nfunction extractOpts(cont) {\n var colorAx = cont._colorAx;\n var cont2 = colorAx ? colorAx : cont;\n var out = {};\n var cLetter;\n var i, k;\n\n for(i = 0; i < constantAttrs.length; i++) {\n k = constantAttrs[i];\n out[k] = cont2[k];\n }\n\n if(colorAx) {\n cLetter = 'c';\n for(i = 0; i < letterAttrs.length; i++) {\n k = letterAttrs[i];\n out[k] = cont2['c' + k];\n }\n } else {\n var k2;\n for(i = 0; i < letterAttrs.length; i++) {\n k = letterAttrs[i];\n k2 = 'c' + k;\n if(k2 in cont2) {\n out[k] = cont2[k2];\n continue;\n }\n k2 = 'z' + k;\n if(k2 in cont2) {\n out[k] = cont2[k2];\n }\n }\n cLetter = k2.charAt(0);\n }\n\n out._sync = function(k, v) {\n var k2 = letterAttrs.indexOf(k) !== -1 ? cLetter + k : k;\n cont2[k2] = cont2['_' + k2] = v;\n };\n\n return out;\n}\n\n/**\n * Extract colorscale into numeric domain and color range.\n *\n * @param {object} cont colorscale container (e.g. trace, marker)\n * - colorscale {array of arrays}\n * - cmin/zmin {number}\n * - cmax/zmax {number}\n * - reversescale {boolean}\n *\n * @return {object}\n * - domain {array}\n * - range {array}\n */\nfunction extractScale(cont) {\n var cOpts = extractOpts(cont);\n var cmin = cOpts.min;\n var cmax = cOpts.max;\n\n var scl = cOpts.reversescale ?\n flipScale(cOpts.colorscale) :\n cOpts.colorscale;\n\n var N = scl.length;\n var domain = new Array(N);\n var range = new Array(N);\n\n for(var i = 0; i < N; i++) {\n var si = scl[i];\n domain[i] = cmin + si[0] * (cmax - cmin);\n range[i] = si[1];\n }\n\n return {domain: domain, range: range};\n}\n\nfunction flipScale(scl) {\n var N = scl.length;\n var sclNew = new Array(N);\n\n for(var i = N - 1, j = 0; i >= 0; i--, j++) {\n var si = scl[i];\n sclNew[j] = [1 - si[0], si[1]];\n }\n return sclNew;\n}\n\n/**\n * General colorscale function generator.\n *\n * @param {object} specs output of Colorscale.extractScale or precomputed domain, range.\n * - domain {array}\n * - range {array}\n *\n * @param {object} opts\n * - noNumericCheck {boolean} if true, scale func bypasses numeric checks\n * - returnArray {boolean} if true, scale func return 4-item array instead of color strings\n *\n * @return {function}\n */\nfunction makeColorScaleFunc(specs, opts) {\n opts = opts || {};\n\n var domain = specs.domain;\n var range = specs.range;\n var N = range.length;\n var _range = new Array(N);\n\n for(var i = 0; i < N; i++) {\n var rgba = tinycolor(range[i]).toRgb();\n _range[i] = [rgba.r, rgba.g, rgba.b, rgba.a];\n }\n\n var _sclFunc = d3.scale.linear()\n .domain(domain)\n .range(_range)\n .clamp(true);\n\n var noNumericCheck = opts.noNumericCheck;\n var returnArray = opts.returnArray;\n var sclFunc;\n\n if(noNumericCheck && returnArray) {\n sclFunc = _sclFunc;\n } else if(noNumericCheck) {\n sclFunc = function(v) {\n return colorArray2rbga(_sclFunc(v));\n };\n } else if(returnArray) {\n sclFunc = function(v) {\n if(isNumeric(v)) return _sclFunc(v);\n else if(tinycolor(v).isValid()) return v;\n else return Color.defaultLine;\n };\n } else {\n sclFunc = function(v) {\n if(isNumeric(v)) return colorArray2rbga(_sclFunc(v));\n else if(tinycolor(v).isValid()) return v;\n else return Color.defaultLine;\n };\n }\n\n // colorbar draw looks into the d3 scale closure for domain and range\n sclFunc.domain = _sclFunc.domain;\n sclFunc.range = function() { return range; };\n\n return sclFunc;\n}\n\nfunction makeColorScaleFuncFromTrace(trace, opts) {\n return makeColorScaleFunc(extractScale(trace), opts);\n}\n\nfunction colorArray2rbga(colorArray) {\n var colorObj = {\n r: colorArray[0],\n g: colorArray[1],\n b: colorArray[2],\n a: colorArray[3]\n };\n\n return tinycolor(colorObj).toRgbString();\n}\n\nmodule.exports = {\n hasColorscale: hasColorscale,\n extractOpts: extractOpts,\n extractScale: extractScale,\n flipScale: flipScale,\n makeColorScaleFunc: makeColorScaleFunc,\n makeColorScaleFuncFromTrace: makeColorScaleFuncFromTrace\n};\n\n},{\"../../lib\":503,\"../color\":366,\"./scales\":381,\"@plotly/d3\":58,\"fast-isnumeric\":190,\"tinycolor2\":312}],378:[function(_dereq_,module,exports){\n'use strict';\n\nvar scales = _dereq_('./scales');\nvar helpers = _dereq_('./helpers');\n\nmodule.exports = {\n moduleType: 'component',\n name: 'colorscale',\n\n attributes: _dereq_('./attributes'),\n layoutAttributes: _dereq_('./layout_attributes'),\n\n supplyLayoutDefaults: _dereq_('./layout_defaults'),\n handleDefaults: _dereq_('./defaults'),\n crossTraceDefaults: _dereq_('./cross_trace_defaults'),\n\n calc: _dereq_('./calc'),\n\n // ./scales.js is required in lib/coerce.js ;\n // it needs to be a separate module to avoid circular a dependency\n scales: scales.scales,\n defaultScale: scales.defaultScale,\n getScale: scales.get,\n isValidScale: scales.isValid,\n\n hasColorscale: helpers.hasColorscale,\n extractOpts: helpers.extractOpts,\n extractScale: helpers.extractScale,\n flipScale: helpers.flipScale,\n makeColorScaleFunc: helpers.makeColorScaleFunc,\n makeColorScaleFuncFromTrace: helpers.makeColorScaleFuncFromTrace\n};\n\n},{\"./attributes\":373,\"./calc\":374,\"./cross_trace_defaults\":375,\"./defaults\":376,\"./helpers\":377,\"./layout_attributes\":379,\"./layout_defaults\":380,\"./scales\":381}],379:[function(_dereq_,module,exports){\n'use strict';\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nvar colorScaleAttrs = _dereq_('./attributes');\nvar scales = _dereq_('./scales').scales;\n\nvar msg = 'Note that `autocolorscale` must be true for this attribute to work.';\n\nmodule.exports = {\n editType: 'calc',\n\n colorscale: {\n editType: 'calc',\n\n sequential: {\n valType: 'colorscale',\n dflt: scales.Reds,\n editType: 'calc',\n },\n sequentialminus: {\n valType: 'colorscale',\n dflt: scales.Blues,\n editType: 'calc',\n },\n diverging: {\n valType: 'colorscale',\n dflt: scales.RdBu,\n editType: 'calc',\n }\n },\n\n coloraxis: extendFlat({\n // not really a 'subplot' attribute container,\n // but this is the flag we use to denote attributes that\n // support yaxis, yaxis2, yaxis3, ... counters\n _isSubplotObj: true,\n editType: 'calc',\n }, colorScaleAttrs('', {\n colorAttr: 'corresponding trace color array(s)',\n noColorAxis: true,\n showScaleDflt: true\n }))\n};\n\n},{\"../../lib/extend\":493,\"./attributes\":373,\"./scales\":381}],380:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Template = _dereq_('../../plot_api/plot_template');\n\nvar colorScaleAttrs = _dereq_('./layout_attributes');\nvar colorScaleDefaults = _dereq_('./defaults');\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(layoutIn, layoutOut, colorScaleAttrs, attr, dflt);\n }\n\n coerce('colorscale.sequential');\n coerce('colorscale.sequentialminus');\n coerce('colorscale.diverging');\n\n var colorAxes = layoutOut._colorAxes;\n var colorAxIn, colorAxOut;\n\n function coerceAx(attr, dflt) {\n return Lib.coerce(colorAxIn, colorAxOut, colorScaleAttrs.coloraxis, attr, dflt);\n }\n\n for(var k in colorAxes) {\n var stash = colorAxes[k];\n\n if(stash[0]) {\n colorAxIn = layoutIn[k] || {};\n colorAxOut = Template.newContainer(layoutOut, k, 'coloraxis');\n colorAxOut._name = k;\n colorScaleDefaults(colorAxIn, colorAxOut, layoutOut, coerceAx, {prefix: '', cLetter: 'c'});\n } else {\n // re-coerce colorscale attributes w/o coloraxis\n for(var i = 0; i < stash[2].length; i++) {\n stash[2][i]();\n }\n delete layoutOut._colorAxes[k];\n }\n }\n};\n\n},{\"../../lib\":503,\"../../plot_api/plot_template\":543,\"./defaults\":376,\"./layout_attributes\":379}],381:[function(_dereq_,module,exports){\n'use strict';\n\nvar tinycolor = _dereq_('tinycolor2');\n\nvar scales = {\n 'Greys': [\n [0, 'rgb(0,0,0)'], [1, 'rgb(255,255,255)']\n ],\n\n 'YlGnBu': [\n [0, 'rgb(8,29,88)'], [0.125, 'rgb(37,52,148)'],\n [0.25, 'rgb(34,94,168)'], [0.375, 'rgb(29,145,192)'],\n [0.5, 'rgb(65,182,196)'], [0.625, 'rgb(127,205,187)'],\n [0.75, 'rgb(199,233,180)'], [0.875, 'rgb(237,248,217)'],\n [1, 'rgb(255,255,217)']\n ],\n\n 'Greens': [\n [0, 'rgb(0,68,27)'], [0.125, 'rgb(0,109,44)'],\n [0.25, 'rgb(35,139,69)'], [0.375, 'rgb(65,171,93)'],\n [0.5, 'rgb(116,196,118)'], [0.625, 'rgb(161,217,155)'],\n [0.75, 'rgb(199,233,192)'], [0.875, 'rgb(229,245,224)'],\n [1, 'rgb(247,252,245)']\n ],\n\n 'YlOrRd': [\n [0, 'rgb(128,0,38)'], [0.125, 'rgb(189,0,38)'],\n [0.25, 'rgb(227,26,28)'], [0.375, 'rgb(252,78,42)'],\n [0.5, 'rgb(253,141,60)'], [0.625, 'rgb(254,178,76)'],\n [0.75, 'rgb(254,217,118)'], [0.875, 'rgb(255,237,160)'],\n [1, 'rgb(255,255,204)']\n ],\n\n 'Bluered': [\n [0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']\n ],\n\n // modified RdBu based on\n // http://www.kennethmoreland.com/color-maps/\n 'RdBu': [\n [0, 'rgb(5,10,172)'], [0.35, 'rgb(106,137,247)'],\n [0.5, 'rgb(190,190,190)'], [0.6, 'rgb(220,170,132)'],\n [0.7, 'rgb(230,145,90)'], [1, 'rgb(178,10,28)']\n ],\n\n // Scale for non-negative numeric values\n 'Reds': [\n [0, 'rgb(220,220,220)'], [0.2, 'rgb(245,195,157)'],\n [0.4, 'rgb(245,160,105)'], [1, 'rgb(178,10,28)']\n ],\n\n // Scale for non-positive numeric values\n 'Blues': [\n [0, 'rgb(5,10,172)'], [0.35, 'rgb(40,60,190)'],\n [0.5, 'rgb(70,100,245)'], [0.6, 'rgb(90,120,245)'],\n [0.7, 'rgb(106,137,247)'], [1, 'rgb(220,220,220)']\n ],\n\n 'Picnic': [\n [0, 'rgb(0,0,255)'], [0.1, 'rgb(51,153,255)'],\n [0.2, 'rgb(102,204,255)'], [0.3, 'rgb(153,204,255)'],\n [0.4, 'rgb(204,204,255)'], [0.5, 'rgb(255,255,255)'],\n [0.6, 'rgb(255,204,255)'], [0.7, 'rgb(255,153,255)'],\n [0.8, 'rgb(255,102,204)'], [0.9, 'rgb(255,102,102)'],\n [1, 'rgb(255,0,0)']\n ],\n\n 'Rainbow': [\n [0, 'rgb(150,0,90)'], [0.125, 'rgb(0,0,200)'],\n [0.25, 'rgb(0,25,255)'], [0.375, 'rgb(0,152,255)'],\n [0.5, 'rgb(44,255,150)'], [0.625, 'rgb(151,255,0)'],\n [0.75, 'rgb(255,234,0)'], [0.875, 'rgb(255,111,0)'],\n [1, 'rgb(255,0,0)']\n ],\n\n 'Portland': [\n [0, 'rgb(12,51,131)'], [0.25, 'rgb(10,136,186)'],\n [0.5, 'rgb(242,211,56)'], [0.75, 'rgb(242,143,56)'],\n [1, 'rgb(217,30,30)']\n ],\n\n 'Jet': [\n [0, 'rgb(0,0,131)'], [0.125, 'rgb(0,60,170)'],\n [0.375, 'rgb(5,255,255)'], [0.625, 'rgb(255,255,0)'],\n [0.875, 'rgb(250,0,0)'], [1, 'rgb(128,0,0)']\n ],\n\n 'Hot': [\n [0, 'rgb(0,0,0)'], [0.3, 'rgb(230,0,0)'],\n [0.6, 'rgb(255,210,0)'], [1, 'rgb(255,255,255)']\n ],\n\n 'Blackbody': [\n [0, 'rgb(0,0,0)'], [0.2, 'rgb(230,0,0)'],\n [0.4, 'rgb(230,210,0)'], [0.7, 'rgb(255,255,255)'],\n [1, 'rgb(160,200,255)']\n ],\n\n 'Earth': [\n [0, 'rgb(0,0,130)'], [0.1, 'rgb(0,180,180)'],\n [0.2, 'rgb(40,210,40)'], [0.4, 'rgb(230,230,50)'],\n [0.6, 'rgb(120,70,20)'], [1, 'rgb(255,255,255)']\n ],\n\n 'Electric': [\n [0, 'rgb(0,0,0)'], [0.15, 'rgb(30,0,100)'],\n [0.4, 'rgb(120,0,100)'], [0.6, 'rgb(160,90,0)'],\n [0.8, 'rgb(230,200,0)'], [1, 'rgb(255,250,220)']\n ],\n\n 'Viridis': [\n [0, '#440154'], [0.06274509803921569, '#48186a'],\n [0.12549019607843137, '#472d7b'], [0.18823529411764706, '#424086'],\n [0.25098039215686274, '#3b528b'], [0.3137254901960784, '#33638d'],\n [0.3764705882352941, '#2c728e'], [0.4392156862745098, '#26828e'],\n [0.5019607843137255, '#21918c'], [0.5647058823529412, '#1fa088'],\n [0.6274509803921569, '#28ae80'], [0.6901960784313725, '#3fbc73'],\n [0.7529411764705882, '#5ec962'], [0.8156862745098039, '#84d44b'],\n [0.8784313725490196, '#addc30'], [0.9411764705882353, '#d8e219'],\n [1, '#fde725']\n ],\n\n 'Cividis': [\n [0.000000, 'rgb(0,32,76)'], [0.058824, 'rgb(0,42,102)'],\n [0.117647, 'rgb(0,52,110)'], [0.176471, 'rgb(39,63,108)'],\n [0.235294, 'rgb(60,74,107)'], [0.294118, 'rgb(76,85,107)'],\n [0.352941, 'rgb(91,95,109)'], [0.411765, 'rgb(104,106,112)'],\n [0.470588, 'rgb(117,117,117)'], [0.529412, 'rgb(131,129,120)'],\n [0.588235, 'rgb(146,140,120)'], [0.647059, 'rgb(161,152,118)'],\n [0.705882, 'rgb(176,165,114)'], [0.764706, 'rgb(192,177,109)'],\n [0.823529, 'rgb(209,191,102)'], [0.882353, 'rgb(225,204,92)'],\n [0.941176, 'rgb(243,219,79)'], [1.000000, 'rgb(255,233,69)']\n ]\n};\n\nvar defaultScale = scales.RdBu;\n\nfunction getScale(scl, dflt) {\n if(!dflt) dflt = defaultScale;\n if(!scl) return dflt;\n\n function parseScale() {\n try {\n scl = scales[scl] || JSON.parse(scl);\n } catch(e) {\n scl = dflt;\n }\n }\n\n if(typeof scl === 'string') {\n parseScale();\n // occasionally scl is double-JSON encoded...\n if(typeof scl === 'string') parseScale();\n }\n\n if(!isValidScaleArray(scl)) return dflt;\n return scl;\n}\n\n\nfunction isValidScaleArray(scl) {\n var highestVal = 0;\n\n if(!Array.isArray(scl) || scl.length < 2) return false;\n\n if(!scl[0] || !scl[scl.length - 1]) return false;\n\n if(+scl[0][0] !== 0 || +scl[scl.length - 1][0] !== 1) return false;\n\n for(var i = 0; i < scl.length; i++) {\n var si = scl[i];\n\n if(si.length !== 2 || +si[0] < highestVal || !tinycolor(si[1]).isValid()) {\n return false;\n }\n\n highestVal = +si[0];\n }\n\n return true;\n}\n\nfunction isValidScale(scl) {\n if(scales[scl] !== undefined) return true;\n else return isValidScaleArray(scl);\n}\n\nmodule.exports = {\n scales: scales,\n defaultScale: defaultScale,\n\n get: getScale,\n isValid: isValidScale\n};\n\n},{\"tinycolor2\":312}],382:[function(_dereq_,module,exports){\n'use strict';\n\n\n// for automatic alignment on dragging, <1/3 means left align,\n// >2/3 means right, and between is center. Pick the right fraction\n// based on where you are, and return the fraction corresponding to\n// that position on the object\nmodule.exports = function align(v, dv, v0, v1, anchor) {\n var vmin = (v - v0) / (v1 - v0);\n var vmax = vmin + dv / (v1 - v0);\n var vc = (vmin + vmax) / 2;\n\n // explicitly specified anchor\n if(anchor === 'left' || anchor === 'bottom') return vmin;\n if(anchor === 'center' || anchor === 'middle') return vc;\n if(anchor === 'right' || anchor === 'top') return vmax;\n\n // automatic based on position\n if(vmin < (2 / 3) - vc) return vmin;\n if(vmax > (4 / 3) - vc) return vmax;\n return vc;\n};\n\n},{}],383:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\n\n// set cursors pointing toward the closest corner/side,\n// to indicate alignment\n// x and y are 0-1, fractions of the plot area\nvar cursorset = [\n ['sw-resize', 's-resize', 'se-resize'],\n ['w-resize', 'move', 'e-resize'],\n ['nw-resize', 'n-resize', 'ne-resize']\n];\n\nmodule.exports = function getCursor(x, y, xanchor, yanchor) {\n if(xanchor === 'left') x = 0;\n else if(xanchor === 'center') x = 1;\n else if(xanchor === 'right') x = 2;\n else x = Lib.constrain(Math.floor(x * 3), 0, 2);\n\n if(yanchor === 'bottom') y = 0;\n else if(yanchor === 'middle') y = 1;\n else if(yanchor === 'top') y = 2;\n else y = Lib.constrain(Math.floor(y * 3), 0, 2);\n\n return cursorset[y][x];\n};\n\n},{\"../../lib\":503}],384:[function(_dereq_,module,exports){\n'use strict';\n\nexports.selectMode = function(dragmode) {\n return (\n dragmode === 'lasso' ||\n dragmode === 'select'\n );\n};\n\nexports.drawMode = function(dragmode) {\n return (\n dragmode === 'drawclosedpath' ||\n dragmode === 'drawopenpath' ||\n dragmode === 'drawline' ||\n dragmode === 'drawrect' ||\n dragmode === 'drawcircle'\n );\n};\n\nexports.openMode = function(dragmode) {\n return (\n dragmode === 'drawline' ||\n dragmode === 'drawopenpath'\n );\n};\n\nexports.rectMode = function(dragmode) {\n return (\n dragmode === 'select' ||\n dragmode === 'drawline' ||\n dragmode === 'drawrect' ||\n dragmode === 'drawcircle'\n );\n};\n\nexports.freeMode = function(dragmode) {\n return (\n dragmode === 'lasso' ||\n dragmode === 'drawclosedpath' ||\n dragmode === 'drawopenpath'\n );\n};\n\nexports.selectingOrDrawing = function(dragmode) {\n return (\n exports.freeMode(dragmode) ||\n exports.rectMode(dragmode)\n );\n};\n\n},{}],385:[function(_dereq_,module,exports){\n'use strict';\n\nvar mouseOffset = _dereq_('mouse-event-offset');\nvar hasHover = _dereq_('has-hover');\nvar supportsPassive = _dereq_('has-passive-events');\n\nvar removeElement = _dereq_('../../lib').removeElement;\nvar constants = _dereq_('../../plots/cartesian/constants');\n\nvar dragElement = module.exports = {};\n\ndragElement.align = _dereq_('./align');\ndragElement.getCursor = _dereq_('./cursor');\n\nvar unhover = _dereq_('./unhover');\ndragElement.unhover = unhover.wrapped;\ndragElement.unhoverRaw = unhover.raw;\n\n/**\n * Abstracts click & drag interactions\n *\n * During the interaction, a \"coverSlip\" element - a transparent\n * div covering the whole page - is created, which has two key effects:\n * - Lets you drag beyond the boundaries of the plot itself without\n * dropping (but if you drag all the way out of the browser window the\n * interaction will end)\n * - Freezes the cursor: whatever mouse cursor the drag element had when the\n * interaction started gets copied to the coverSlip for use until mouseup\n *\n * If the user executes a drag bigger than MINDRAG, callbacks will fire as:\n * prepFn, moveFn (1 or more times), doneFn\n * If the user does not drag enough, prepFn and clickFn will fire.\n *\n * Note: If you cancel contextmenu, clickFn will fire even with a right click\n * (unlike native events) so you'll get a `plotly_click` event. Cancel context eg:\n * gd.addEventListener('contextmenu', function(e) { e.preventDefault(); });\n * TODO: we should probably turn this into a `config` parameter, so we can fix it\n * such that if you *don't* cancel contextmenu, we can prevent partial drags, which\n * put you in a weird state.\n *\n * If the user clicks multiple times quickly, clickFn will fire each time\n * but numClicks will increase to help you recognize doubleclicks.\n *\n * @param {object} options with keys:\n * element (required) the DOM element to drag\n * prepFn (optional) function(event, startX, startY)\n * executed on mousedown\n * startX and startY are the clientX and clientY pixel position\n * of the mousedown event\n * moveFn (optional) function(dx, dy)\n * executed on move, ONLY after we've exceeded MINDRAG\n * (we keep executing moveFn if you move back to where you started)\n * dx and dy are the net pixel offset of the drag,\n * dragged is true/false, has the mouse moved enough to\n * constitute a drag\n * doneFn (optional) function(e)\n * executed on mouseup, ONLY if we exceeded MINDRAG (so you can be\n * sure that moveFn has been called at least once)\n * numClicks is how many clicks we've registered within\n * a doubleclick time\n * e is the original mouseup event\n * clickFn (optional) function(numClicks, e)\n * executed on mouseup if we have NOT exceeded MINDRAG (ie moveFn\n * has not been called at all)\n * numClicks is how many clicks we've registered within\n * a doubleclick time\n * e is the original mousedown event\n * clampFn (optional, function(dx, dy) return [dx2, dy2])\n * Provide custom clamping function for small displacements.\n * By default, clamping is done using `minDrag` to x and y displacements\n * independently.\n */\ndragElement.init = function init(options) {\n var gd = options.gd;\n var numClicks = 1;\n var doubleClickDelay = gd._context.doubleClickDelay;\n var element = options.element;\n\n var startX,\n startY,\n newMouseDownTime,\n cursor,\n dragCover,\n initialEvent,\n initialTarget,\n rightClick;\n\n if(!gd._mouseDownTime) gd._mouseDownTime = 0;\n\n element.style.pointerEvents = 'all';\n\n element.onmousedown = onStart;\n\n if(!supportsPassive) {\n element.ontouchstart = onStart;\n } else {\n if(element._ontouchstart) {\n element.removeEventListener('touchstart', element._ontouchstart);\n }\n element._ontouchstart = onStart;\n element.addEventListener('touchstart', onStart, {passive: false});\n }\n\n function _clampFn(dx, dy, minDrag) {\n if(Math.abs(dx) < minDrag) dx = 0;\n if(Math.abs(dy) < minDrag) dy = 0;\n return [dx, dy];\n }\n\n var clampFn = options.clampFn || _clampFn;\n\n function onStart(e) {\n // make dragging and dragged into properties of gd\n // so that others can look at and modify them\n gd._dragged = false;\n gd._dragging = true;\n var offset = pointerOffset(e);\n startX = offset[0];\n startY = offset[1];\n initialTarget = e.target;\n initialEvent = e;\n rightClick = e.buttons === 2 || e.ctrlKey;\n\n // fix Fx.hover for touch events\n if(typeof e.clientX === 'undefined' && typeof e.clientY === 'undefined') {\n e.clientX = startX;\n e.clientY = startY;\n }\n\n newMouseDownTime = (new Date()).getTime();\n if(newMouseDownTime - gd._mouseDownTime < doubleClickDelay) {\n // in a click train\n numClicks += 1;\n } else {\n // new click train\n numClicks = 1;\n gd._mouseDownTime = newMouseDownTime;\n }\n\n if(options.prepFn) options.prepFn(e, startX, startY);\n\n if(hasHover && !rightClick) {\n dragCover = coverSlip();\n dragCover.style.cursor = window.getComputedStyle(element).cursor;\n } else if(!hasHover) {\n // document acts as a dragcover for mobile, bc we can't create dragcover dynamically\n dragCover = document;\n cursor = window.getComputedStyle(document.documentElement).cursor;\n document.documentElement.style.cursor = window.getComputedStyle(element).cursor;\n }\n\n document.addEventListener('mouseup', onDone);\n document.addEventListener('touchend', onDone);\n\n if(options.dragmode !== false) {\n e.preventDefault();\n document.addEventListener('mousemove', onMove);\n document.addEventListener('touchmove', onMove, {passive: false});\n }\n\n return;\n }\n\n function onMove(e) {\n e.preventDefault();\n\n var offset = pointerOffset(e);\n var minDrag = options.minDrag || constants.MINDRAG;\n var dxdy = clampFn(offset[0] - startX, offset[1] - startY, minDrag);\n var dx = dxdy[0];\n var dy = dxdy[1];\n\n if(dx || dy) {\n gd._dragged = true;\n dragElement.unhover(gd, e);\n }\n\n if(gd._dragged && options.moveFn && !rightClick) {\n gd._dragdata = {\n element: element,\n dx: dx,\n dy: dy\n };\n options.moveFn(dx, dy);\n }\n\n return;\n }\n\n function onDone(e) {\n delete gd._dragdata;\n\n if(options.dragmode !== false) {\n e.preventDefault();\n document.removeEventListener('mousemove', onMove);\n document.removeEventListener('touchmove', onMove);\n }\n\n document.removeEventListener('mouseup', onDone);\n document.removeEventListener('touchend', onDone);\n\n if(hasHover) {\n removeElement(dragCover);\n } else if(cursor) {\n dragCover.documentElement.style.cursor = cursor;\n cursor = null;\n }\n\n if(!gd._dragging) {\n gd._dragged = false;\n return;\n }\n gd._dragging = false;\n\n // don't count as a dblClick unless the mouseUp is also within\n // the dblclick delay\n if((new Date()).getTime() - gd._mouseDownTime > doubleClickDelay) {\n numClicks = Math.max(numClicks - 1, 1);\n }\n\n if(gd._dragged) {\n if(options.doneFn) options.doneFn();\n } else {\n if(options.clickFn) options.clickFn(numClicks, initialEvent);\n\n // If we haven't dragged, this should be a click. But because of the\n // coverSlip changing the element, the natural system might not generate one,\n // so we need to make our own. But right clicks don't normally generate\n // click events, only contextmenu events, which happen on mousedown.\n if(!rightClick) {\n var e2;\n\n try {\n e2 = new MouseEvent('click', e);\n } catch(err) {\n var offset = pointerOffset(e);\n e2 = document.createEvent('MouseEvents');\n e2.initMouseEvent('click',\n e.bubbles, e.cancelable,\n e.view, e.detail,\n e.screenX, e.screenY,\n offset[0], offset[1],\n e.ctrlKey, e.altKey, e.shiftKey, e.metaKey,\n e.button, e.relatedTarget);\n }\n\n initialTarget.dispatchEvent(e2);\n }\n }\n\n gd._dragging = false;\n gd._dragged = false;\n return;\n }\n};\n\nfunction coverSlip() {\n var cover = document.createElement('div');\n\n cover.className = 'dragcover';\n var cStyle = cover.style;\n cStyle.position = 'fixed';\n cStyle.left = 0;\n cStyle.right = 0;\n cStyle.top = 0;\n cStyle.bottom = 0;\n cStyle.zIndex = 999999999;\n cStyle.background = 'none';\n\n document.body.appendChild(cover);\n\n return cover;\n}\n\ndragElement.coverSlip = coverSlip;\n\nfunction pointerOffset(e) {\n return mouseOffset(\n e.changedTouches ? e.changedTouches[0] : e,\n document.body\n );\n}\n\n},{\"../../lib\":503,\"../../plots/cartesian/constants\":561,\"./align\":382,\"./cursor\":383,\"./unhover\":386,\"has-hover\":228,\"has-passive-events\":229,\"mouse-event-offset\":242}],386:[function(_dereq_,module,exports){\n'use strict';\n\nvar Events = _dereq_('../../lib/events');\nvar throttle = _dereq_('../../lib/throttle');\nvar getGraphDiv = _dereq_('../../lib/dom').getGraphDiv;\n\nvar hoverConstants = _dereq_('../fx/constants');\n\nvar unhover = module.exports = {};\n\nunhover.wrapped = function(gd, evt, subplot) {\n gd = getGraphDiv(gd);\n\n // Important, clear any queued hovers\n if(gd._fullLayout) {\n throttle.clear(gd._fullLayout._uid + hoverConstants.HOVERID);\n }\n\n unhover.raw(gd, evt, subplot);\n};\n\n\n// remove hover effects on mouse out, and emit unhover event\nunhover.raw = function raw(gd, evt) {\n var fullLayout = gd._fullLayout;\n var oldhoverdata = gd._hoverdata;\n\n if(!evt) evt = {};\n if(evt.target && !gd._dragged &&\n Events.triggerHandler(gd, 'plotly_beforehover', evt) === false) {\n return;\n }\n\n fullLayout._hoverlayer.selectAll('g').remove();\n fullLayout._hoverlayer.selectAll('line').remove();\n fullLayout._hoverlayer.selectAll('circle').remove();\n gd._hoverdata = undefined;\n\n if(evt.target && oldhoverdata) {\n gd.emit('plotly_unhover', {\n event: evt,\n points: oldhoverdata\n });\n }\n};\n\n},{\"../../lib/dom\":491,\"../../lib/events\":492,\"../../lib/throttle\":530,\"../fx/constants\":400}],387:[function(_dereq_,module,exports){\n'use strict';\n\nexports.dash = {\n valType: 'string',\n // string type usually doesn't take values... this one should really be\n // a special type or at least a special coercion function, from the GUI\n // you only get these values but elsewhere the user can supply a list of\n // dash lengths in px, and it will be honored\n values: ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'],\n dflt: 'solid',\n editType: 'style',\n};\n\nexports.pattern = {\n shape: {\n valType: 'enumerated',\n values: ['', '/', '\\\\', 'x', '-', '|', '+', '.'],\n dflt: '',\n arrayOk: true,\n editType: 'style',\n },\n fillmode: {\n valType: 'enumerated',\n values: ['replace', 'overlay'],\n dflt: 'replace',\n editType: 'style',\n },\n bgcolor: {\n valType: 'color',\n arrayOk: true,\n editType: 'style',\n },\n fgcolor: {\n valType: 'color',\n arrayOk: true,\n editType: 'style',\n },\n fgopacity: {\n valType: 'number',\n editType: 'style',\n min: 0,\n max: 1,\n },\n size: {\n valType: 'number',\n min: 0,\n dflt: 8,\n arrayOk: true,\n editType: 'style',\n },\n solidity: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0.3,\n arrayOk: true,\n editType: 'style',\n },\n editType: 'style',\n};\n\n},{}],388:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Lib = _dereq_('../../lib');\nvar numberFormat = Lib.numberFormat;\nvar isNumeric = _dereq_('fast-isnumeric');\nvar tinycolor = _dereq_('tinycolor2');\n\nvar Registry = _dereq_('../../registry');\nvar Color = _dereq_('../color');\nvar Colorscale = _dereq_('../colorscale');\nvar strTranslate = Lib.strTranslate;\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\n\nvar xmlnsNamespaces = _dereq_('../../constants/xmlns_namespaces');\nvar alignment = _dereq_('../../constants/alignment');\nvar LINE_SPACING = alignment.LINE_SPACING;\nvar DESELECTDIM = _dereq_('../../constants/interactions').DESELECTDIM;\n\nvar subTypes = _dereq_('../../traces/scatter/subtypes');\nvar makeBubbleSizeFn = _dereq_('../../traces/scatter/make_bubble_size_func');\nvar appendArrayPointValue = _dereq_('../../components/fx/helpers').appendArrayPointValue;\n\nvar drawing = module.exports = {};\n\n// -----------------------------------------------------\n// styling functions for plot elements\n// -----------------------------------------------------\n\ndrawing.font = function(s, family, size, color) {\n // also allow the form font(s, {family, size, color})\n if(Lib.isPlainObject(family)) {\n color = family.color;\n size = family.size;\n family = family.family;\n }\n if(family) s.style('font-family', family);\n if(size + 1) s.style('font-size', size + 'px');\n if(color) s.call(Color.fill, color);\n};\n\n/*\n * Positioning helpers\n * Note: do not use `setPosition` with nodes modified by\n * `svgTextUtils.convertToTspans`. Use `svgTextUtils.positionText`\n * instead, so that elements get updated to match.\n */\ndrawing.setPosition = function(s, x, y) { s.attr('x', x).attr('y', y); };\ndrawing.setSize = function(s, w, h) { s.attr('width', w).attr('height', h); };\ndrawing.setRect = function(s, x, y, w, h) {\n s.call(drawing.setPosition, x, y).call(drawing.setSize, w, h);\n};\n\n/** Translate node\n *\n * @param {object} d : calcdata point item\n * @param {sel} sel : d3 selction of node to translate\n * @param {object} xa : corresponding full xaxis object\n * @param {object} ya : corresponding full yaxis object\n *\n * @return {boolean} :\n * true if selection got translated\n * false if selection could not get translated\n */\ndrawing.translatePoint = function(d, sel, xa, ya) {\n var x = xa.c2p(d.x);\n var y = ya.c2p(d.y);\n\n if(isNumeric(x) && isNumeric(y) && sel.node()) {\n // for multiline text this works better\n if(sel.node().nodeName === 'text') {\n sel.attr('x', x).attr('y', y);\n } else {\n sel.attr('transform', strTranslate(x, y));\n }\n } else {\n return false;\n }\n\n return true;\n};\n\ndrawing.translatePoints = function(s, xa, ya) {\n s.each(function(d) {\n var sel = d3.select(this);\n drawing.translatePoint(d, sel, xa, ya);\n });\n};\n\ndrawing.hideOutsideRangePoint = function(d, sel, xa, ya, xcalendar, ycalendar) {\n sel.attr(\n 'display',\n (xa.isPtWithinRange(d, xcalendar) && ya.isPtWithinRange(d, ycalendar)) ? null : 'none'\n );\n};\n\ndrawing.hideOutsideRangePoints = function(traceGroups, subplot) {\n if(!subplot._hasClipOnAxisFalse) return;\n\n var xa = subplot.xaxis;\n var ya = subplot.yaxis;\n\n traceGroups.each(function(d) {\n var trace = d[0].trace;\n var xcalendar = trace.xcalendar;\n var ycalendar = trace.ycalendar;\n var selector = Registry.traceIs(trace, 'bar-like') ? '.bartext' : '.point,.textpoint';\n\n traceGroups.selectAll(selector).each(function(d) {\n drawing.hideOutsideRangePoint(d, d3.select(this), xa, ya, xcalendar, ycalendar);\n });\n });\n};\n\ndrawing.crispRound = function(gd, lineWidth, dflt) {\n // for lines that disable antialiasing we want to\n // make sure the width is an integer, and at least 1 if it's nonzero\n\n if(!lineWidth || !isNumeric(lineWidth)) return dflt || 0;\n\n // but not for static plots - these don't get antialiased anyway.\n if(gd._context.staticPlot) return lineWidth;\n\n if(lineWidth < 1) return 1;\n return Math.round(lineWidth);\n};\n\ndrawing.singleLineStyle = function(d, s, lw, lc, ld) {\n s.style('fill', 'none');\n var line = (((d || [])[0] || {}).trace || {}).line || {};\n var lw1 = lw || line.width || 0;\n var dash = ld || line.dash || '';\n\n Color.stroke(s, lc || line.color);\n drawing.dashLine(s, dash, lw1);\n};\n\ndrawing.lineGroupStyle = function(s, lw, lc, ld) {\n s.style('fill', 'none')\n .each(function(d) {\n var line = (((d || [])[0] || {}).trace || {}).line || {};\n var lw1 = lw || line.width || 0;\n var dash = ld || line.dash || '';\n\n d3.select(this)\n .call(Color.stroke, lc || line.color)\n .call(drawing.dashLine, dash, lw1);\n });\n};\n\ndrawing.dashLine = function(s, dash, lineWidth) {\n lineWidth = +lineWidth || 0;\n\n dash = drawing.dashStyle(dash, lineWidth);\n\n s.style({\n 'stroke-dasharray': dash,\n 'stroke-width': lineWidth + 'px'\n });\n};\n\ndrawing.dashStyle = function(dash, lineWidth) {\n lineWidth = +lineWidth || 1;\n var dlw = Math.max(lineWidth, 3);\n\n if(dash === 'solid') dash = '';\n else if(dash === 'dot') dash = dlw + 'px,' + dlw + 'px';\n else if(dash === 'dash') dash = (3 * dlw) + 'px,' + (3 * dlw) + 'px';\n else if(dash === 'longdash') dash = (5 * dlw) + 'px,' + (5 * dlw) + 'px';\n else if(dash === 'dashdot') {\n dash = (3 * dlw) + 'px,' + dlw + 'px,' + dlw + 'px,' + dlw + 'px';\n } else if(dash === 'longdashdot') {\n dash = (5 * dlw) + 'px,' + (2 * dlw) + 'px,' + dlw + 'px,' + (2 * dlw) + 'px';\n }\n // otherwise user wrote the dasharray themselves - leave it be\n\n return dash;\n};\n\n// Same as fillGroupStyle, except in this case the selection may be a transition\ndrawing.singleFillStyle = function(sel) {\n var node = d3.select(sel.node());\n var data = node.data();\n var fillcolor = (((data[0] || [])[0] || {}).trace || {}).fillcolor;\n if(fillcolor) {\n sel.call(Color.fill, fillcolor);\n }\n};\n\ndrawing.fillGroupStyle = function(s) {\n s.style('stroke-width', 0)\n .each(function(d) {\n var shape = d3.select(this);\n // N.B. 'd' won't be a calcdata item when\n // fill !== 'none' on a segment-less and marker-less trace\n if(d[0].trace) {\n shape.call(Color.fill, d[0].trace.fillcolor);\n }\n });\n};\n\nvar SYMBOLDEFS = _dereq_('./symbol_defs');\n\ndrawing.symbolNames = [];\ndrawing.symbolFuncs = [];\ndrawing.symbolNeedLines = {};\ndrawing.symbolNoDot = {};\ndrawing.symbolNoFill = {};\ndrawing.symbolList = [];\n\nObject.keys(SYMBOLDEFS).forEach(function(k) {\n var symDef = SYMBOLDEFS[k];\n var n = symDef.n;\n drawing.symbolList.push(\n n,\n String(n),\n k,\n\n n + 100,\n String(n + 100),\n k + '-open'\n );\n drawing.symbolNames[n] = k;\n drawing.symbolFuncs[n] = symDef.f;\n\n if(symDef.needLine) {\n drawing.symbolNeedLines[n] = true;\n }\n if(symDef.noDot) {\n drawing.symbolNoDot[n] = true;\n } else {\n drawing.symbolList.push(\n n + 200,\n String(n + 200),\n k + '-dot',\n\n n + 300,\n String(n + 300),\n k + '-open-dot'\n );\n }\n if(symDef.noFill) {\n drawing.symbolNoFill[n] = true;\n }\n});\n\nvar MAXSYMBOL = drawing.symbolNames.length;\n// add a dot in the middle of the symbol\nvar DOTPATH = 'M0,0.5L0.5,0L0,-0.5L-0.5,0Z';\n\ndrawing.symbolNumber = function(v) {\n if(isNumeric(v)) {\n v = +v;\n } else if(typeof v === 'string') {\n var vbase = 0;\n if(v.indexOf('-open') > 0) {\n vbase = 100;\n v = v.replace('-open', '');\n }\n if(v.indexOf('-dot') > 0) {\n vbase += 200;\n v = v.replace('-dot', '');\n }\n v = drawing.symbolNames.indexOf(v);\n if(v >= 0) { v += vbase; }\n }\n\n return (v % 100 >= MAXSYMBOL || v >= 400) ?\n 0 : Math.floor(Math.max(v, 0));\n};\n\nfunction makePointPath(symbolNumber, r) {\n var base = symbolNumber % 100;\n return drawing.symbolFuncs[base](r) + (symbolNumber >= 200 ? DOTPATH : '');\n}\n\nvar HORZGRADIENT = {x1: 1, x2: 0, y1: 0, y2: 0};\nvar VERTGRADIENT = {x1: 0, x2: 0, y1: 1, y2: 0};\nvar stopFormatter = numberFormat('~f');\nvar gradientInfo = {\n radial: {node: 'radialGradient'},\n radialreversed: {node: 'radialGradient', reversed: true},\n horizontal: {node: 'linearGradient', attrs: HORZGRADIENT},\n horizontalreversed: {node: 'linearGradient', attrs: HORZGRADIENT, reversed: true},\n vertical: {node: 'linearGradient', attrs: VERTGRADIENT},\n verticalreversed: {node: 'linearGradient', attrs: VERTGRADIENT, reversed: true}\n};\n\n/**\n * gradient: create and apply a gradient fill\n *\n * @param {object} sel: d3 selection to apply this gradient to\n * You can use `selection.call(Drawing.gradient, ...)`\n * @param {DOM element} gd: the graph div `sel` is part of\n * @param {string} gradientID: a unique (within this plot) identifier\n * for this gradient, so that we don't create unnecessary definitions\n * @param {string} type: 'radial', 'horizontal', or 'vertical', optionally with\n * 'reversed' at the end. Normally radial goes center to edge,\n * horizontal goes right to left, and vertical goes bottom to top\n * @param {array} colorscale: as in attribute values, [[fraction, color], ...]\n * @param {string} prop: the property to apply to, 'fill' or 'stroke'\n */\ndrawing.gradient = function(sel, gd, gradientID, type, colorscale, prop) {\n var len = colorscale.length;\n var info = gradientInfo[type];\n var colorStops = new Array(len);\n for(var i = 0; i < len; i++) {\n if(info.reversed) {\n colorStops[len - 1 - i] = [stopFormatter((1 - colorscale[i][0]) * 100), colorscale[i][1]];\n } else {\n colorStops[i] = [stopFormatter(colorscale[i][0] * 100), colorscale[i][1]];\n }\n }\n\n var fullLayout = gd._fullLayout;\n var fullID = 'g' + fullLayout._uid + '-' + gradientID;\n\n var gradient = fullLayout._defs.select('.gradients')\n .selectAll('#' + fullID)\n .data([type + colorStops.join(';')], Lib.identity);\n\n gradient.exit().remove();\n\n gradient.enter()\n .append(info.node)\n .each(function() {\n var el = d3.select(this);\n if(info.attrs) el.attr(info.attrs);\n\n el.attr('id', fullID);\n\n var stops = el.selectAll('stop')\n .data(colorStops);\n stops.exit().remove();\n stops.enter().append('stop');\n\n stops.each(function(d) {\n var tc = tinycolor(d[1]);\n d3.select(this).attr({\n offset: d[0] + '%',\n 'stop-color': Color.tinyRGB(tc),\n 'stop-opacity': tc.getAlpha()\n });\n });\n });\n\n sel.style(prop, getFullUrl(fullID, gd))\n .style(prop + '-opacity', null);\n\n var className2query = function(s) {\n return '.' + s.attr('class').replace(/\\s/g, '.');\n };\n var k = className2query(d3.select(sel.node().parentNode)) +\n '>' + className2query(sel);\n fullLayout._gradientUrlQueryParts[k] = 1;\n};\n\n/**\n * pattern: create and apply a pattern fill\n *\n * @param {object} sel: d3 selection to apply this pattern to\n * You can use `selection.call(Drawing.pattern, ...)`\n * @param {string} calledBy: option to know the caller component\n * @param {DOM element} gd: the graph div `sel` is part of\n * @param {string} patternID: a unique (within this plot) identifier\n * for this pattern, so that we don't create unnecessary definitions\n * @param {number} size: size of unit squares for repetition of this pattern\n * @param {number} solidity: how solid lines of this pattern are\n * @param {string} mcc: color when painted with colorscale\n * @param {string} fillmode: fillmode for this pattern\n * @param {string} bgcolor: background color for this pattern\n * @param {string} fgcolor: foreground color for this pattern\n * @param {number} fgopacity: foreground opacity for this pattern\n */\ndrawing.pattern = function(sel, calledBy, gd, patternID, shape, size, solidity, mcc, fillmode, bgcolor, fgcolor, fgopacity) {\n var isLegend = calledBy === 'legend';\n\n if(mcc) {\n if(fillmode === 'overlay') {\n bgcolor = mcc;\n fgcolor = Color.contrast(bgcolor);\n } else {\n bgcolor = undefined;\n fgcolor = mcc;\n }\n }\n\n var fullLayout = gd._fullLayout;\n var fullID = 'p' + fullLayout._uid + '-' + patternID;\n var width, height;\n\n // linear interpolation\n var linearFn = function(x, x0, x1, y0, y1) {\n return y0 + (y1 - y0) * (x - x0) / (x1 - x0);\n };\n\n var path, linewidth, radius;\n var patternTag;\n var patternAttrs = {};\n switch(shape) {\n case '/':\n width = size * Math.sqrt(2);\n height = size * Math.sqrt(2);\n path = 'M-' + (width / 4) + ',' + (height / 4) + 'l' + (width / 2) + ',-' + (height / 2) +\n 'M0,' + height + 'L' + width + ',0' +\n 'M' + (width / 4 * 3) + ',' + (height / 4 * 5) + 'l' + (width / 2) + ',-' + (height / 2);\n linewidth = solidity * size;\n patternTag = 'path';\n patternAttrs = {\n 'd': path,\n 'opacity': fgopacity,\n 'stroke': fgcolor,\n 'stroke-width': linewidth + 'px'\n };\n break;\n case '\\\\':\n width = size * Math.sqrt(2);\n height = size * Math.sqrt(2);\n path = 'M' + (width / 4 * 3) + ',-' + (height / 4) + 'l' + (width / 2) + ',' + (height / 2) +\n 'M0,0L' + width + ',' + height +\n 'M-' + (width / 4) + ',' + (height / 4 * 3) + 'l' + (width / 2) + ',' + (height / 2);\n linewidth = solidity * size;\n patternTag = 'path';\n patternAttrs = {\n 'd': path,\n 'opacity': fgopacity,\n 'stroke': fgcolor,\n 'stroke-width': linewidth + 'px'\n };\n break;\n case 'x':\n width = size * Math.sqrt(2);\n height = size * Math.sqrt(2);\n path = 'M-' + (width / 4) + ',' + (height / 4) + 'l' + (width / 2) + ',-' + (height / 2) +\n 'M0,' + height + 'L' + width + ',0' +\n 'M' + (width / 4 * 3) + ',' + (height / 4 * 5) + 'l' + (width / 2) + ',-' + (height / 2) +\n 'M' + (width / 4 * 3) + ',-' + (height / 4) + 'l' + (width / 2) + ',' + (height / 2) +\n 'M0,0L' + width + ',' + height +\n 'M-' + (width / 4) + ',' + (height / 4 * 3) + 'l' + (width / 2) + ',' + (height / 2);\n linewidth = size - size * Math.sqrt(1.0 - solidity);\n patternTag = 'path';\n patternAttrs = {\n 'd': path,\n 'opacity': fgopacity,\n 'stroke': fgcolor,\n 'stroke-width': linewidth + 'px'\n };\n break;\n case '|':\n width = size;\n height = size;\n patternTag = 'path';\n path = 'M' + (width / 2) + ',0L' + (width / 2) + ',' + height;\n linewidth = solidity * size;\n patternTag = 'path';\n patternAttrs = {\n 'd': path,\n 'opacity': fgopacity,\n 'stroke': fgcolor,\n 'stroke-width': linewidth + 'px'\n };\n break;\n case '-':\n width = size;\n height = size;\n patternTag = 'path';\n path = 'M0,' + (height / 2) + 'L' + width + ',' + (height / 2);\n linewidth = solidity * size;\n patternTag = 'path';\n patternAttrs = {\n 'd': path,\n 'opacity': fgopacity,\n 'stroke': fgcolor,\n 'stroke-width': linewidth + 'px'\n };\n break;\n case '+':\n width = size;\n height = size;\n patternTag = 'path';\n path = 'M' + (width / 2) + ',0L' + (width / 2) + ',' + height +\n 'M0,' + (height / 2) + 'L' + width + ',' + (height / 2);\n linewidth = size - size * Math.sqrt(1.0 - solidity);\n patternTag = 'path';\n patternAttrs = {\n 'd': path,\n 'opacity': fgopacity,\n 'stroke': fgcolor,\n 'stroke-width': linewidth + 'px'\n };\n break;\n case '.':\n width = size;\n height = size;\n if(solidity < Math.PI / 4) {\n radius = Math.sqrt(solidity * size * size / Math.PI);\n } else {\n radius = linearFn(solidity, Math.PI / 4, 1.0, size / 2, size / Math.sqrt(2));\n }\n patternTag = 'circle';\n patternAttrs = {\n 'cx': width / 2,\n 'cy': height / 2,\n 'r': radius,\n 'opacity': fgopacity,\n 'fill': fgcolor\n };\n break;\n }\n\n var str = [\n shape || 'noSh',\n bgcolor || 'noBg',\n fgcolor || 'noFg',\n size,\n solidity\n ].join(';');\n\n var pattern = fullLayout._defs.select('.patterns')\n .selectAll('#' + fullID)\n .data([str], Lib.identity);\n\n pattern.exit().remove();\n\n pattern.enter()\n .append('pattern')\n .each(function() {\n var el = d3.select(this);\n\n el.attr({\n 'id': fullID,\n 'width': width + 'px',\n 'height': height + 'px',\n 'patternUnits': 'userSpaceOnUse',\n // for legends scale down patterns just a bit so that default size (i.e 8) nicely fit in small icons\n 'patternTransform': isLegend ? 'scale(0.8)' : ''\n });\n\n if(bgcolor) {\n var rects = el.selectAll('rect').data([0]);\n rects.exit().remove();\n rects.enter()\n .append('rect')\n .attr({\n 'width': width + 'px',\n 'height': height + 'px',\n 'fill': bgcolor\n });\n }\n\n var patterns = el.selectAll(patternTag).data([0]);\n patterns.exit().remove();\n patterns.enter()\n .append(patternTag)\n .attr(patternAttrs);\n });\n\n sel.style('fill', getFullUrl(fullID, gd))\n .style('fill-opacity', null);\n\n sel.classed('pattern_filled', true);\n var className2query = function(s) {\n return '.' + s.attr('class').replace(/\\s/g, '.');\n };\n var k = className2query(d3.select(sel.node().parentNode)) + '>.pattern_filled';\n fullLayout._patternUrlQueryParts[k] = 1;\n};\n\n/*\n * Make the gradients container and clear out any previous gradients.\n * We never collect all the gradients we need in one place,\n * so we can't ever remove gradients that have stopped being useful,\n * except all at once before a full redraw.\n * The upside of this is arbitrary points can share gradient defs\n */\ndrawing.initGradients = function(gd) {\n var fullLayout = gd._fullLayout;\n\n var gradientsGroup = Lib.ensureSingle(fullLayout._defs, 'g', 'gradients');\n gradientsGroup.selectAll('linearGradient,radialGradient').remove();\n\n // initialize stash of query parts filled in Drawing.gradient,\n // used to fix URL strings during image exports\n fullLayout._gradientUrlQueryParts = {};\n};\n\ndrawing.initPatterns = function(gd) {\n var fullLayout = gd._fullLayout;\n\n var patternsGroup = Lib.ensureSingle(fullLayout._defs, 'g', 'patterns');\n patternsGroup.selectAll('pattern').remove();\n\n // initialize stash of query parts filled in Drawing.pattern,\n // used to fix URL strings during image exports\n fullLayout._patternUrlQueryParts = {};\n};\n\ndrawing.getPatternAttr = function(mp, i, dflt) {\n if(mp && Lib.isArrayOrTypedArray(mp)) {\n return i < mp.length ? mp[i] : dflt;\n }\n return mp;\n};\n\ndrawing.pointStyle = function(s, trace, gd) {\n if(!s.size()) return;\n\n var fns = drawing.makePointStyleFns(trace);\n\n s.each(function(d) {\n drawing.singlePointStyle(d, d3.select(this), trace, fns, gd);\n });\n};\n\ndrawing.singlePointStyle = function(d, sel, trace, fns, gd) {\n var marker = trace.marker;\n var markerLine = marker.line;\n\n sel.style('opacity',\n fns.selectedOpacityFn ? fns.selectedOpacityFn(d) :\n (d.mo === undefined ? marker.opacity : d.mo)\n );\n\n if(fns.ms2mrc) {\n var r;\n\n // handle multi-trace graph edit case\n if(d.ms === 'various' || marker.size === 'various') {\n r = 3;\n } else {\n r = fns.ms2mrc(d.ms);\n }\n\n // store the calculated size so hover can use it\n d.mrc = r;\n\n if(fns.selectedSizeFn) {\n r = d.mrc = fns.selectedSizeFn(d);\n }\n\n // turn the symbol into a sanitized number\n var x = drawing.symbolNumber(d.mx || marker.symbol) || 0;\n\n // save if this marker is open\n // because that impacts how to handle colors\n d.om = x % 200 >= 100;\n\n sel.attr('d', makePointPath(x, r));\n }\n\n var perPointGradient = false;\n var fillColor, lineColor, lineWidth;\n\n // 'so' is suspected outliers, for box plots\n if(d.so) {\n lineWidth = markerLine.outlierwidth;\n lineColor = markerLine.outliercolor;\n fillColor = marker.outliercolor;\n } else {\n var markerLineWidth = (markerLine || {}).width;\n\n lineWidth = (\n d.mlw + 1 ||\n markerLineWidth + 1 ||\n // TODO: we need the latter for legends... can we get rid of it?\n (d.trace ? (d.trace.marker.line || {}).width : 0) + 1\n ) - 1 || 0;\n\n if('mlc' in d) lineColor = d.mlcc = fns.lineScale(d.mlc);\n // weird case: array wasn't long enough to apply to every point\n else if(Lib.isArrayOrTypedArray(markerLine.color)) lineColor = Color.defaultLine;\n else lineColor = markerLine.color;\n\n if(Lib.isArrayOrTypedArray(marker.color)) {\n fillColor = Color.defaultLine;\n perPointGradient = true;\n }\n\n if('mc' in d) {\n fillColor = d.mcc = fns.markerScale(d.mc);\n } else {\n fillColor = marker.color || 'rgba(0,0,0,0)';\n }\n\n if(fns.selectedColorFn) {\n fillColor = fns.selectedColorFn(d);\n }\n }\n\n if(d.om) {\n // open markers can't have zero linewidth, default to 1px,\n // and use fill color as stroke color\n sel.call(Color.stroke, fillColor)\n .style({\n 'stroke-width': (lineWidth || 1) + 'px',\n fill: 'none'\n });\n } else {\n sel.style('stroke-width', (d.isBlank ? 0 : lineWidth) + 'px');\n\n var markerGradient = marker.gradient;\n\n var gradientType = d.mgt;\n if(gradientType) perPointGradient = true;\n else gradientType = markerGradient && markerGradient.type;\n\n // for legend - arrays will propagate through here, but we don't need\n // to treat it as per-point.\n if(Lib.isArrayOrTypedArray(gradientType)) {\n gradientType = gradientType[0];\n if(!gradientInfo[gradientType]) gradientType = 0;\n }\n\n var markerPattern = marker.pattern;\n var patternShape = markerPattern && drawing.getPatternAttr(markerPattern.shape, d.i, '');\n\n if(gradientType && gradientType !== 'none') {\n var gradientColor = d.mgc;\n if(gradientColor) perPointGradient = true;\n else gradientColor = markerGradient.color;\n\n var gradientID = trace.uid;\n if(perPointGradient) gradientID += '-' + d.i;\n\n drawing.gradient(sel, gd, gradientID, gradientType,\n [[0, gradientColor], [1, fillColor]], 'fill');\n } else if(patternShape) {\n var patternBGColor = drawing.getPatternAttr(markerPattern.bgcolor, d.i, null);\n var patternFGColor = drawing.getPatternAttr(markerPattern.fgcolor, d.i, null);\n var patternFGOpacity = markerPattern.fgopacity;\n var patternSize = drawing.getPatternAttr(markerPattern.size, d.i, 8);\n var patternSolidity = drawing.getPatternAttr(markerPattern.solidity, d.i, 0.3);\n var perPointPattern = d.mcc ||\n Lib.isArrayOrTypedArray(markerPattern.shape) ||\n Lib.isArrayOrTypedArray(markerPattern.bgcolor) ||\n Lib.isArrayOrTypedArray(markerPattern.size) ||\n Lib.isArrayOrTypedArray(markerPattern.solidity);\n\n var patternID = trace.uid;\n if(perPointPattern) patternID += '-' + d.i;\n\n drawing.pattern(\n sel, 'point', gd, patternID,\n patternShape, patternSize, patternSolidity,\n d.mcc, markerPattern.fillmode,\n patternBGColor, patternFGColor, patternFGOpacity\n );\n } else {\n Color.fill(sel, fillColor);\n }\n\n if(lineWidth) {\n Color.stroke(sel, lineColor);\n }\n }\n};\n\ndrawing.makePointStyleFns = function(trace) {\n var out = {};\n var marker = trace.marker;\n\n // allow array marker and marker line colors to be\n // scaled by given max and min to colorscales\n out.markerScale = drawing.tryColorscale(marker, '');\n out.lineScale = drawing.tryColorscale(marker, 'line');\n\n if(Registry.traceIs(trace, 'symbols')) {\n out.ms2mrc = subTypes.isBubble(trace) ?\n makeBubbleSizeFn(trace) :\n function() { return (marker.size || 6) / 2; };\n }\n\n if(trace.selectedpoints) {\n Lib.extendFlat(out, drawing.makeSelectedPointStyleFns(trace));\n }\n\n return out;\n};\n\ndrawing.makeSelectedPointStyleFns = function(trace) {\n var out = {};\n\n var selectedAttrs = trace.selected || {};\n var unselectedAttrs = trace.unselected || {};\n\n var marker = trace.marker || {};\n var selectedMarker = selectedAttrs.marker || {};\n var unselectedMarker = unselectedAttrs.marker || {};\n\n var mo = marker.opacity;\n var smo = selectedMarker.opacity;\n var usmo = unselectedMarker.opacity;\n var smoIsDefined = smo !== undefined;\n var usmoIsDefined = usmo !== undefined;\n\n if(Lib.isArrayOrTypedArray(mo) || smoIsDefined || usmoIsDefined) {\n out.selectedOpacityFn = function(d) {\n var base = d.mo === undefined ? marker.opacity : d.mo;\n\n if(d.selected) {\n return smoIsDefined ? smo : base;\n } else {\n return usmoIsDefined ? usmo : DESELECTDIM * base;\n }\n };\n }\n\n var mc = marker.color;\n var smc = selectedMarker.color;\n var usmc = unselectedMarker.color;\n\n if(smc || usmc) {\n out.selectedColorFn = function(d) {\n var base = d.mcc || mc;\n\n if(d.selected) {\n return smc || base;\n } else {\n return usmc || base;\n }\n };\n }\n\n var ms = marker.size;\n var sms = selectedMarker.size;\n var usms = unselectedMarker.size;\n var smsIsDefined = sms !== undefined;\n var usmsIsDefined = usms !== undefined;\n\n if(Registry.traceIs(trace, 'symbols') && (smsIsDefined || usmsIsDefined)) {\n out.selectedSizeFn = function(d) {\n var base = d.mrc || ms / 2;\n\n if(d.selected) {\n return smsIsDefined ? sms / 2 : base;\n } else {\n return usmsIsDefined ? usms / 2 : base;\n }\n };\n }\n\n return out;\n};\n\ndrawing.makeSelectedTextStyleFns = function(trace) {\n var out = {};\n\n var selectedAttrs = trace.selected || {};\n var unselectedAttrs = trace.unselected || {};\n\n var textFont = trace.textfont || {};\n var selectedTextFont = selectedAttrs.textfont || {};\n var unselectedTextFont = unselectedAttrs.textfont || {};\n\n var tc = textFont.color;\n var stc = selectedTextFont.color;\n var utc = unselectedTextFont.color;\n\n out.selectedTextColorFn = function(d) {\n var base = d.tc || tc;\n\n if(d.selected) {\n return stc || base;\n } else {\n if(utc) return utc;\n else return stc ? base : Color.addOpacity(base, DESELECTDIM);\n }\n };\n\n return out;\n};\n\ndrawing.selectedPointStyle = function(s, trace) {\n if(!s.size() || !trace.selectedpoints) return;\n\n var fns = drawing.makeSelectedPointStyleFns(trace);\n var marker = trace.marker || {};\n var seq = [];\n\n if(fns.selectedOpacityFn) {\n seq.push(function(pt, d) {\n pt.style('opacity', fns.selectedOpacityFn(d));\n });\n }\n\n if(fns.selectedColorFn) {\n seq.push(function(pt, d) {\n Color.fill(pt, fns.selectedColorFn(d));\n });\n }\n\n if(fns.selectedSizeFn) {\n seq.push(function(pt, d) {\n var mx = d.mx || marker.symbol || 0;\n var mrc2 = fns.selectedSizeFn(d);\n\n pt.attr('d', makePointPath(drawing.symbolNumber(mx), mrc2));\n\n // save for Drawing.selectedTextStyle\n d.mrc2 = mrc2;\n });\n }\n\n if(seq.length) {\n s.each(function(d) {\n var pt = d3.select(this);\n for(var i = 0; i < seq.length; i++) {\n seq[i](pt, d);\n }\n });\n }\n};\n\ndrawing.tryColorscale = function(marker, prefix) {\n var cont = prefix ? Lib.nestedProperty(marker, prefix).get() : marker;\n\n if(cont) {\n var colorArray = cont.color;\n if((cont.colorscale || cont._colorAx) && Lib.isArrayOrTypedArray(colorArray)) {\n return Colorscale.makeColorScaleFuncFromTrace(cont);\n }\n }\n return Lib.identity;\n};\n\nvar TEXTOFFSETSIGN = {\n start: 1, end: -1, middle: 0, bottom: 1, top: -1\n};\n\nfunction textPointPosition(s, textPosition, fontSize, markerRadius) {\n var group = d3.select(s.node().parentNode);\n\n var v = textPosition.indexOf('top') !== -1 ?\n 'top' :\n textPosition.indexOf('bottom') !== -1 ? 'bottom' : 'middle';\n var h = textPosition.indexOf('left') !== -1 ?\n 'end' :\n textPosition.indexOf('right') !== -1 ? 'start' : 'middle';\n\n // if markers are shown, offset a little more than\n // the nominal marker size\n // ie 2/1.6 * nominal, bcs some markers are a bit bigger\n var r = markerRadius ? markerRadius / 0.8 + 1 : 0;\n\n var numLines = (svgTextUtils.lineCount(s) - 1) * LINE_SPACING + 1;\n var dx = TEXTOFFSETSIGN[h] * r;\n var dy = fontSize * 0.75 + TEXTOFFSETSIGN[v] * r +\n (TEXTOFFSETSIGN[v] - 1) * numLines * fontSize / 2;\n\n // fix the overall text group position\n s.attr('text-anchor', h);\n group.attr('transform', strTranslate(dx, dy));\n}\n\nfunction extracTextFontSize(d, trace) {\n var fontSize = d.ts || trace.textfont.size;\n return (isNumeric(fontSize) && fontSize > 0) ? fontSize : 0;\n}\n\n// draw text at points\ndrawing.textPointStyle = function(s, trace, gd) {\n if(!s.size()) return;\n\n var selectedTextColorFn;\n if(trace.selectedpoints) {\n var fns = drawing.makeSelectedTextStyleFns(trace);\n selectedTextColorFn = fns.selectedTextColorFn;\n }\n\n var texttemplate = trace.texttemplate;\n var fullLayout = gd._fullLayout;\n\n s.each(function(d) {\n var p = d3.select(this);\n\n var text = texttemplate ?\n Lib.extractOption(d, trace, 'txt', 'texttemplate') :\n Lib.extractOption(d, trace, 'tx', 'text');\n\n if(!text && text !== 0) {\n p.remove();\n return;\n }\n\n if(texttemplate) {\n var fn = trace._module.formatLabels;\n var labels = fn ? fn(d, trace, fullLayout) : {};\n var pointValues = {};\n appendArrayPointValue(pointValues, trace, d.i);\n var meta = trace._meta || {};\n text = Lib.texttemplateString(text, labels, fullLayout._d3locale, pointValues, d, meta);\n }\n\n var pos = d.tp || trace.textposition;\n var fontSize = extracTextFontSize(d, trace);\n var fontColor = selectedTextColorFn ?\n selectedTextColorFn(d) :\n (d.tc || trace.textfont.color);\n\n p.call(drawing.font,\n d.tf || trace.textfont.family,\n fontSize,\n fontColor)\n .text(text)\n .call(svgTextUtils.convertToTspans, gd)\n .call(textPointPosition, pos, fontSize, d.mrc);\n });\n};\n\ndrawing.selectedTextStyle = function(s, trace) {\n if(!s.size() || !trace.selectedpoints) return;\n\n var fns = drawing.makeSelectedTextStyleFns(trace);\n\n s.each(function(d) {\n var tx = d3.select(this);\n var tc = fns.selectedTextColorFn(d);\n var tp = d.tp || trace.textposition;\n var fontSize = extracTextFontSize(d, trace);\n\n Color.fill(tx, tc);\n textPointPosition(tx, tp, fontSize, d.mrc2 || d.mrc);\n });\n};\n\n// generalized Catmull-Rom splines, per\n// http://www.cemyuksel.com/research/catmullrom_param/catmullrom.pdf\nvar CatmullRomExp = 0.5;\ndrawing.smoothopen = function(pts, smoothness) {\n if(pts.length < 3) { return 'M' + pts.join('L');}\n var path = 'M' + pts[0];\n var tangents = [];\n var i;\n for(i = 1; i < pts.length - 1; i++) {\n tangents.push(makeTangent(pts[i - 1], pts[i], pts[i + 1], smoothness));\n }\n path += 'Q' + tangents[0][0] + ' ' + pts[1];\n for(i = 2; i < pts.length - 1; i++) {\n path += 'C' + tangents[i - 2][1] + ' ' + tangents[i - 1][0] + ' ' + pts[i];\n }\n path += 'Q' + tangents[pts.length - 3][1] + ' ' + pts[pts.length - 1];\n return path;\n};\n\ndrawing.smoothclosed = function(pts, smoothness) {\n if(pts.length < 3) { return 'M' + pts.join('L') + 'Z'; }\n var path = 'M' + pts[0];\n var pLast = pts.length - 1;\n var tangents = [makeTangent(pts[pLast], pts[0], pts[1], smoothness)];\n var i;\n for(i = 1; i < pLast; i++) {\n tangents.push(makeTangent(pts[i - 1], pts[i], pts[i + 1], smoothness));\n }\n tangents.push(\n makeTangent(pts[pLast - 1], pts[pLast], pts[0], smoothness)\n );\n\n for(i = 1; i <= pLast; i++) {\n path += 'C' + tangents[i - 1][1] + ' ' + tangents[i][0] + ' ' + pts[i];\n }\n path += 'C' + tangents[pLast][1] + ' ' + tangents[0][0] + ' ' + pts[0] + 'Z';\n return path;\n};\n\nfunction makeTangent(prevpt, thispt, nextpt, smoothness) {\n var d1x = prevpt[0] - thispt[0];\n var d1y = prevpt[1] - thispt[1];\n var d2x = nextpt[0] - thispt[0];\n var d2y = nextpt[1] - thispt[1];\n var d1a = Math.pow(d1x * d1x + d1y * d1y, CatmullRomExp / 2);\n var d2a = Math.pow(d2x * d2x + d2y * d2y, CatmullRomExp / 2);\n var numx = (d2a * d2a * d1x - d1a * d1a * d2x) * smoothness;\n var numy = (d2a * d2a * d1y - d1a * d1a * d2y) * smoothness;\n var denom1 = 3 * d2a * (d1a + d2a);\n var denom2 = 3 * d1a * (d1a + d2a);\n return [\n [\n d3.round(thispt[0] + (denom1 && numx / denom1), 2),\n d3.round(thispt[1] + (denom1 && numy / denom1), 2)\n ], [\n d3.round(thispt[0] - (denom2 && numx / denom2), 2),\n d3.round(thispt[1] - (denom2 && numy / denom2), 2)\n ]\n ];\n}\n\n// step paths - returns a generator function for paths\n// with the given step shape\nvar STEPPATH = {\n hv: function(p0, p1) {\n return 'H' + d3.round(p1[0], 2) + 'V' + d3.round(p1[1], 2);\n },\n vh: function(p0, p1) {\n return 'V' + d3.round(p1[1], 2) + 'H' + d3.round(p1[0], 2);\n },\n hvh: function(p0, p1) {\n return 'H' + d3.round((p0[0] + p1[0]) / 2, 2) + 'V' +\n d3.round(p1[1], 2) + 'H' + d3.round(p1[0], 2);\n },\n vhv: function(p0, p1) {\n return 'V' + d3.round((p0[1] + p1[1]) / 2, 2) + 'H' +\n d3.round(p1[0], 2) + 'V' + d3.round(p1[1], 2);\n }\n};\nvar STEPLINEAR = function(p0, p1) {\n return 'L' + d3.round(p1[0], 2) + ',' + d3.round(p1[1], 2);\n};\ndrawing.steps = function(shape) {\n var onestep = STEPPATH[shape] || STEPLINEAR;\n return function(pts) {\n var path = 'M' + d3.round(pts[0][0], 2) + ',' + d3.round(pts[0][1], 2);\n for(var i = 1; i < pts.length; i++) {\n path += onestep(pts[i - 1], pts[i]);\n }\n return path;\n };\n};\n\n// off-screen svg render testing element, shared by the whole page\n// uses the id 'js-plotly-tester' and stores it in drawing.tester\ndrawing.makeTester = function() {\n var tester = Lib.ensureSingleById(d3.select('body'), 'svg', 'js-plotly-tester', function(s) {\n s.attr(xmlnsNamespaces.svgAttrs)\n .style({\n position: 'absolute',\n left: '-10000px',\n top: '-10000px',\n width: '9000px',\n height: '9000px',\n 'z-index': '1'\n });\n });\n\n // browsers differ on how they describe the bounding rect of\n // the svg if its contents spill over... so make a 1x1px\n // reference point we can measure off of.\n var testref = Lib.ensureSingle(tester, 'path', 'js-reference-point', function(s) {\n s.attr('d', 'M0,0H1V1H0Z')\n .style({\n 'stroke-width': 0,\n fill: 'black'\n });\n });\n\n drawing.tester = tester;\n drawing.testref = testref;\n};\n\n/*\n * use our offscreen tester to get a clientRect for an element,\n * in a reference frame where it isn't translated (or transformed) and\n * its anchor point is at (0,0)\n * always returns a copy of the bbox, so the caller can modify it safely\n *\n * @param {SVGElement} node: the element to measure. If possible this should be\n * a or MathJax element that's already passed through\n * `convertToTspans` because in that case we can cache the results, but it's\n * possible to pass in any svg element.\n *\n * @param {boolean} inTester: is this element already in `drawing.tester`?\n * If you are measuring a dummy element, rather than one you really intend\n * to use on the plot, making it in `drawing.tester` in the first place\n * allows us to test faster because it cuts out cloning and appending it.\n *\n * @param {string} hash: for internal use only, if we already know the cache key\n * for this element beforehand.\n *\n * @return {object}: a plain object containing the width, height, left, right,\n * top, and bottom of `node`\n */\ndrawing.savedBBoxes = {};\nvar savedBBoxesCount = 0;\nvar maxSavedBBoxes = 10000;\n\ndrawing.bBox = function(node, inTester, hash) {\n /*\n * Cache elements we've already measured so we don't have to\n * remeasure the same thing many times\n * We have a few bBox callers though who pass a node larger than\n * a or a MathJax , such as an axis group containing many labels.\n * These will not generate a hash (unless we figure out an appropriate\n * hash key for them) and thus we will not hash them.\n */\n if(!hash) hash = nodeHash(node);\n var out;\n if(hash) {\n out = drawing.savedBBoxes[hash];\n if(out) return Lib.extendFlat({}, out);\n } else if(node.childNodes.length === 1) {\n /*\n * If we have only one child element, which is itself hashable, make\n * a new hash from this element plus its x,y,transform\n * These bounding boxes *include* x,y,transform - mostly for use by\n * callers trying to avoid overlaps (ie titles)\n */\n var innerNode = node.childNodes[0];\n\n hash = nodeHash(innerNode);\n if(hash) {\n var x = +innerNode.getAttribute('x') || 0;\n var y = +innerNode.getAttribute('y') || 0;\n var transform = innerNode.getAttribute('transform');\n\n if(!transform) {\n // in this case, just varying x and y, don't bother caching\n // the final bBox because the alteration is quick.\n var innerBB = drawing.bBox(innerNode, false, hash);\n if(x) {\n innerBB.left += x;\n innerBB.right += x;\n }\n if(y) {\n innerBB.top += y;\n innerBB.bottom += y;\n }\n return innerBB;\n }\n /*\n * else we have a transform - rather than make a complicated\n * (and error-prone and probably slow) transform parser/calculator,\n * just continue on calculating the boundingClientRect of the group\n * and use the new composite hash to cache it.\n * That said, `innerNode.transform.baseVal` is an array of\n * `SVGTransform` objects, that *do* seem to have a nice matrix\n * multiplication interface that we could use to avoid making\n * another getBoundingClientRect call...\n */\n hash += '~' + x + '~' + y + '~' + transform;\n\n out = drawing.savedBBoxes[hash];\n if(out) return Lib.extendFlat({}, out);\n }\n }\n var testNode, tester;\n if(inTester) {\n testNode = node;\n } else {\n tester = drawing.tester.node();\n\n // copy the node to test into the tester\n testNode = node.cloneNode(true);\n tester.appendChild(testNode);\n }\n\n // standardize its position (and newline tspans if any)\n d3.select(testNode)\n .attr('transform', null)\n .call(svgTextUtils.positionText, 0, 0);\n\n var testRect = testNode.getBoundingClientRect();\n var refRect = drawing.testref\n .node()\n .getBoundingClientRect();\n\n if(!inTester) tester.removeChild(testNode);\n\n var bb = {\n height: testRect.height,\n width: testRect.width,\n left: testRect.left - refRect.left,\n top: testRect.top - refRect.top,\n right: testRect.right - refRect.left,\n bottom: testRect.bottom - refRect.top\n };\n\n // make sure we don't have too many saved boxes,\n // or a long session could overload on memory\n // by saving boxes for long-gone elements\n if(savedBBoxesCount >= maxSavedBBoxes) {\n drawing.savedBBoxes = {};\n savedBBoxesCount = 0;\n }\n\n // cache this bbox\n if(hash) drawing.savedBBoxes[hash] = bb;\n savedBBoxesCount++;\n\n return Lib.extendFlat({}, bb);\n};\n\n// capture everything about a node (at least in our usage) that\n// impacts its bounding box, given that bBox clears x, y, and transform\nfunction nodeHash(node) {\n var inputText = node.getAttribute('data-unformatted');\n if(inputText === null) return;\n return inputText +\n node.getAttribute('data-math') +\n node.getAttribute('text-anchor') +\n node.getAttribute('style');\n}\n\n/**\n * Set clipPath URL in a way that work for all situations.\n *\n * In details, graphs on pages with HTML tags need to prepend\n * the clip path ids with the page's base url EXCEPT during toImage exports.\n *\n * @param {d3 selection} s : node to add clip-path attribute\n * @param {string} localId : local clip-path (w/o base url) id\n * @param {DOM element || object} gd\n * - context._baseUrl {string}\n * - context._exportedPlot {boolean}\n */\ndrawing.setClipUrl = function(s, localId, gd) {\n s.attr('clip-path', getFullUrl(localId, gd));\n};\n\nfunction getFullUrl(localId, gd) {\n if(!localId) return null;\n\n var context = gd._context;\n var baseUrl = context._exportedPlot ? '' : (context._baseUrl || '');\n return baseUrl ?\n 'url(\\'' + baseUrl + '#' + localId + '\\')' :\n 'url(#' + localId + ')';\n}\n\ndrawing.getTranslate = function(element) {\n // Note the separator [^\\d] between x and y in this regex\n // We generally use ',' but IE will convert it to ' '\n var re = /.*\\btranslate\\((-?\\d*\\.?\\d*)[^-\\d]*(-?\\d*\\.?\\d*)[^\\d].*/;\n var getter = element.attr ? 'attr' : 'getAttribute';\n var transform = element[getter]('transform') || '';\n\n var translate = transform.replace(re, function(match, p1, p2) {\n return [p1, p2].join(' ');\n })\n .split(' ');\n\n return {\n x: +translate[0] || 0,\n y: +translate[1] || 0\n };\n};\n\ndrawing.setTranslate = function(element, x, y) {\n var re = /(\\btranslate\\(.*?\\);?)/;\n var getter = element.attr ? 'attr' : 'getAttribute';\n var setter = element.attr ? 'attr' : 'setAttribute';\n var transform = element[getter]('transform') || '';\n\n x = x || 0;\n y = y || 0;\n\n transform = transform.replace(re, '').trim();\n transform += strTranslate(x, y);\n transform = transform.trim();\n\n element[setter]('transform', transform);\n\n return transform;\n};\n\ndrawing.getScale = function(element) {\n var re = /.*\\bscale\\((\\d*\\.?\\d*)[^\\d]*(\\d*\\.?\\d*)[^\\d].*/;\n var getter = element.attr ? 'attr' : 'getAttribute';\n var transform = element[getter]('transform') || '';\n\n var translate = transform.replace(re, function(match, p1, p2) {\n return [p1, p2].join(' ');\n })\n .split(' ');\n\n return {\n x: +translate[0] || 1,\n y: +translate[1] || 1\n };\n};\n\ndrawing.setScale = function(element, x, y) {\n var re = /(\\bscale\\(.*?\\);?)/;\n var getter = element.attr ? 'attr' : 'getAttribute';\n var setter = element.attr ? 'attr' : 'setAttribute';\n var transform = element[getter]('transform') || '';\n\n x = x || 1;\n y = y || 1;\n\n transform = transform.replace(re, '').trim();\n transform += 'scale(' + x + ',' + y + ')';\n transform = transform.trim();\n\n element[setter]('transform', transform);\n\n return transform;\n};\n\nvar SCALE_RE = /\\s*sc.*/;\n\ndrawing.setPointGroupScale = function(selection, xScale, yScale) {\n xScale = xScale || 1;\n yScale = yScale || 1;\n\n if(!selection) return;\n\n // The same scale transform for every point:\n var scale = (xScale === 1 && yScale === 1) ?\n '' :\n 'scale(' + xScale + ',' + yScale + ')';\n\n selection.each(function() {\n var t = (this.getAttribute('transform') || '').replace(SCALE_RE, '');\n t += scale;\n t = t.trim();\n this.setAttribute('transform', t);\n });\n};\n\nvar TEXT_POINT_LAST_TRANSLATION_RE = /translate\\([^)]*\\)\\s*$/;\n\ndrawing.setTextPointsScale = function(selection, xScale, yScale) {\n if(!selection) return;\n\n selection.each(function() {\n var transforms;\n var el = d3.select(this);\n var text = el.select('text');\n\n if(!text.node()) return;\n\n var x = parseFloat(text.attr('x') || 0);\n var y = parseFloat(text.attr('y') || 0);\n\n var existingTransform = (el.attr('transform') || '').match(TEXT_POINT_LAST_TRANSLATION_RE);\n\n if(xScale === 1 && yScale === 1) {\n transforms = [];\n } else {\n transforms = [\n strTranslate(x, y),\n 'scale(' + xScale + ',' + yScale + ')',\n strTranslate(-x, -y),\n ];\n }\n\n if(existingTransform) {\n transforms.push(existingTransform);\n }\n\n el.attr('transform', transforms.join(''));\n });\n};\n\n},{\"../../components/fx/helpers\":402,\"../../constants/alignment\":471,\"../../constants/interactions\":478,\"../../constants/xmlns_namespaces\":480,\"../../lib\":503,\"../../lib/svg_text_utils\":529,\"../../registry\":638,\"../../traces/scatter/make_bubble_size_func\":942,\"../../traces/scatter/subtypes\":950,\"../color\":366,\"../colorscale\":378,\"./symbol_defs\":389,\"@plotly/d3\":58,\"fast-isnumeric\":190,\"tinycolor2\":312}],389:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\n/** Marker symbol definitions\n * users can specify markers either by number or name\n * add 100 (or '-open') and you get an open marker\n * open markers have no fill and use line color as the stroke color\n * add 200 (or '-dot') and you get a dot in the middle\n * add both and you get both\n */\n\nmodule.exports = {\n circle: {\n n: 0,\n f: function(r) {\n var rs = d3.round(r, 2);\n return 'M' + rs + ',0A' + rs + ',' + rs + ' 0 1,1 0,-' + rs +\n 'A' + rs + ',' + rs + ' 0 0,1 ' + rs + ',0Z';\n }\n },\n square: {\n n: 1,\n f: function(r) {\n var rs = d3.round(r, 2);\n return 'M' + rs + ',' + rs + 'H-' + rs + 'V-' + rs + 'H' + rs + 'Z';\n }\n },\n diamond: {\n n: 2,\n f: function(r) {\n var rd = d3.round(r * 1.3, 2);\n return 'M' + rd + ',0L0,' + rd + 'L-' + rd + ',0L0,-' + rd + 'Z';\n }\n },\n cross: {\n n: 3,\n f: function(r) {\n var rc = d3.round(r * 0.4, 2);\n var rc2 = d3.round(r * 1.2, 2);\n return 'M' + rc2 + ',' + rc + 'H' + rc + 'V' + rc2 + 'H-' + rc +\n 'V' + rc + 'H-' + rc2 + 'V-' + rc + 'H-' + rc + 'V-' + rc2 +\n 'H' + rc + 'V-' + rc + 'H' + rc2 + 'Z';\n }\n },\n x: {\n n: 4,\n f: function(r) {\n var rx = d3.round(r * 0.8 / Math.sqrt(2), 2);\n var ne = 'l' + rx + ',' + rx;\n var se = 'l' + rx + ',-' + rx;\n var sw = 'l-' + rx + ',-' + rx;\n var nw = 'l-' + rx + ',' + rx;\n return 'M0,' + rx + ne + se + sw + se + sw + nw + sw + nw + ne + nw + ne + 'Z';\n }\n },\n 'triangle-up': {\n n: 5,\n f: function(r) {\n var rt = d3.round(r * 2 / Math.sqrt(3), 2);\n var r2 = d3.round(r / 2, 2);\n var rs = d3.round(r, 2);\n return 'M-' + rt + ',' + r2 + 'H' + rt + 'L0,-' + rs + 'Z';\n }\n },\n 'triangle-down': {\n n: 6,\n f: function(r) {\n var rt = d3.round(r * 2 / Math.sqrt(3), 2);\n var r2 = d3.round(r / 2, 2);\n var rs = d3.round(r, 2);\n return 'M-' + rt + ',-' + r2 + 'H' + rt + 'L0,' + rs + 'Z';\n }\n },\n 'triangle-left': {\n n: 7,\n f: function(r) {\n var rt = d3.round(r * 2 / Math.sqrt(3), 2);\n var r2 = d3.round(r / 2, 2);\n var rs = d3.round(r, 2);\n return 'M' + r2 + ',-' + rt + 'V' + rt + 'L-' + rs + ',0Z';\n }\n },\n 'triangle-right': {\n n: 8,\n f: function(r) {\n var rt = d3.round(r * 2 / Math.sqrt(3), 2);\n var r2 = d3.round(r / 2, 2);\n var rs = d3.round(r, 2);\n return 'M-' + r2 + ',-' + rt + 'V' + rt + 'L' + rs + ',0Z';\n }\n },\n 'triangle-ne': {\n n: 9,\n f: function(r) {\n var r1 = d3.round(r * 0.6, 2);\n var r2 = d3.round(r * 1.2, 2);\n return 'M-' + r2 + ',-' + r1 + 'H' + r1 + 'V' + r2 + 'Z';\n }\n },\n 'triangle-se': {\n n: 10,\n f: function(r) {\n var r1 = d3.round(r * 0.6, 2);\n var r2 = d3.round(r * 1.2, 2);\n return 'M' + r1 + ',-' + r2 + 'V' + r1 + 'H-' + r2 + 'Z';\n }\n },\n 'triangle-sw': {\n n: 11,\n f: function(r) {\n var r1 = d3.round(r * 0.6, 2);\n var r2 = d3.round(r * 1.2, 2);\n return 'M' + r2 + ',' + r1 + 'H-' + r1 + 'V-' + r2 + 'Z';\n }\n },\n 'triangle-nw': {\n n: 12,\n f: function(r) {\n var r1 = d3.round(r * 0.6, 2);\n var r2 = d3.round(r * 1.2, 2);\n return 'M-' + r1 + ',' + r2 + 'V-' + r1 + 'H' + r2 + 'Z';\n }\n },\n pentagon: {\n n: 13,\n f: function(r) {\n var x1 = d3.round(r * 0.951, 2);\n var x2 = d3.round(r * 0.588, 2);\n var y0 = d3.round(-r, 2);\n var y1 = d3.round(r * -0.309, 2);\n var y2 = d3.round(r * 0.809, 2);\n return 'M' + x1 + ',' + y1 + 'L' + x2 + ',' + y2 + 'H-' + x2 +\n 'L-' + x1 + ',' + y1 + 'L0,' + y0 + 'Z';\n }\n },\n hexagon: {\n n: 14,\n f: function(r) {\n var y0 = d3.round(r, 2);\n var y1 = d3.round(r / 2, 2);\n var x = d3.round(r * Math.sqrt(3) / 2, 2);\n return 'M' + x + ',-' + y1 + 'V' + y1 + 'L0,' + y0 +\n 'L-' + x + ',' + y1 + 'V-' + y1 + 'L0,-' + y0 + 'Z';\n }\n },\n hexagon2: {\n n: 15,\n f: function(r) {\n var x0 = d3.round(r, 2);\n var x1 = d3.round(r / 2, 2);\n var y = d3.round(r * Math.sqrt(3) / 2, 2);\n return 'M-' + x1 + ',' + y + 'H' + x1 + 'L' + x0 +\n ',0L' + x1 + ',-' + y + 'H-' + x1 + 'L-' + x0 + ',0Z';\n }\n },\n octagon: {\n n: 16,\n f: function(r) {\n var a = d3.round(r * 0.924, 2);\n var b = d3.round(r * 0.383, 2);\n return 'M-' + b + ',-' + a + 'H' + b + 'L' + a + ',-' + b + 'V' + b +\n 'L' + b + ',' + a + 'H-' + b + 'L-' + a + ',' + b + 'V-' + b + 'Z';\n }\n },\n star: {\n n: 17,\n f: function(r) {\n var rs = r * 1.4;\n var x1 = d3.round(rs * 0.225, 2);\n var x2 = d3.round(rs * 0.951, 2);\n var x3 = d3.round(rs * 0.363, 2);\n var x4 = d3.round(rs * 0.588, 2);\n var y0 = d3.round(-rs, 2);\n var y1 = d3.round(rs * -0.309, 2);\n var y3 = d3.round(rs * 0.118, 2);\n var y4 = d3.round(rs * 0.809, 2);\n var y5 = d3.round(rs * 0.382, 2);\n return 'M' + x1 + ',' + y1 + 'H' + x2 + 'L' + x3 + ',' + y3 +\n 'L' + x4 + ',' + y4 + 'L0,' + y5 + 'L-' + x4 + ',' + y4 +\n 'L-' + x3 + ',' + y3 + 'L-' + x2 + ',' + y1 + 'H-' + x1 +\n 'L0,' + y0 + 'Z';\n }\n },\n hexagram: {\n n: 18,\n f: function(r) {\n var y = d3.round(r * 0.66, 2);\n var x1 = d3.round(r * 0.38, 2);\n var x2 = d3.round(r * 0.76, 2);\n return 'M-' + x2 + ',0l-' + x1 + ',-' + y + 'h' + x2 +\n 'l' + x1 + ',-' + y + 'l' + x1 + ',' + y + 'h' + x2 +\n 'l-' + x1 + ',' + y + 'l' + x1 + ',' + y + 'h-' + x2 +\n 'l-' + x1 + ',' + y + 'l-' + x1 + ',-' + y + 'h-' + x2 + 'Z';\n }\n },\n 'star-triangle-up': {\n n: 19,\n f: function(r) {\n var x = d3.round(r * Math.sqrt(3) * 0.8, 2);\n var y1 = d3.round(r * 0.8, 2);\n var y2 = d3.round(r * 1.6, 2);\n var rc = d3.round(r * 4, 2);\n var aPart = 'A ' + rc + ',' + rc + ' 0 0 1 ';\n return 'M-' + x + ',' + y1 + aPart + x + ',' + y1 +\n aPart + '0,-' + y2 + aPart + '-' + x + ',' + y1 + 'Z';\n }\n },\n 'star-triangle-down': {\n n: 20,\n f: function(r) {\n var x = d3.round(r * Math.sqrt(3) * 0.8, 2);\n var y1 = d3.round(r * 0.8, 2);\n var y2 = d3.round(r * 1.6, 2);\n var rc = d3.round(r * 4, 2);\n var aPart = 'A ' + rc + ',' + rc + ' 0 0 1 ';\n return 'M' + x + ',-' + y1 + aPart + '-' + x + ',-' + y1 +\n aPart + '0,' + y2 + aPart + x + ',-' + y1 + 'Z';\n }\n },\n 'star-square': {\n n: 21,\n f: function(r) {\n var rp = d3.round(r * 1.1, 2);\n var rc = d3.round(r * 2, 2);\n var aPart = 'A ' + rc + ',' + rc + ' 0 0 1 ';\n return 'M-' + rp + ',-' + rp + aPart + '-' + rp + ',' + rp +\n aPart + rp + ',' + rp + aPart + rp + ',-' + rp +\n aPart + '-' + rp + ',-' + rp + 'Z';\n }\n },\n 'star-diamond': {\n n: 22,\n f: function(r) {\n var rp = d3.round(r * 1.4, 2);\n var rc = d3.round(r * 1.9, 2);\n var aPart = 'A ' + rc + ',' + rc + ' 0 0 1 ';\n return 'M-' + rp + ',0' + aPart + '0,' + rp +\n aPart + rp + ',0' + aPart + '0,-' + rp +\n aPart + '-' + rp + ',0' + 'Z';\n }\n },\n 'diamond-tall': {\n n: 23,\n f: function(r) {\n var x = d3.round(r * 0.7, 2);\n var y = d3.round(r * 1.4, 2);\n return 'M0,' + y + 'L' + x + ',0L0,-' + y + 'L-' + x + ',0Z';\n }\n },\n 'diamond-wide': {\n n: 24,\n f: function(r) {\n var x = d3.round(r * 1.4, 2);\n var y = d3.round(r * 0.7, 2);\n return 'M0,' + y + 'L' + x + ',0L0,-' + y + 'L-' + x + ',0Z';\n }\n },\n hourglass: {\n n: 25,\n f: function(r) {\n var rs = d3.round(r, 2);\n return 'M' + rs + ',' + rs + 'H-' + rs + 'L' + rs + ',-' + rs + 'H-' + rs + 'Z';\n },\n noDot: true\n },\n bowtie: {\n n: 26,\n f: function(r) {\n var rs = d3.round(r, 2);\n return 'M' + rs + ',' + rs + 'V-' + rs + 'L-' + rs + ',' + rs + 'V-' + rs + 'Z';\n },\n noDot: true\n },\n 'circle-cross': {\n n: 27,\n f: function(r) {\n var rs = d3.round(r, 2);\n return 'M0,' + rs + 'V-' + rs + 'M' + rs + ',0H-' + rs +\n 'M' + rs + ',0A' + rs + ',' + rs + ' 0 1,1 0,-' + rs +\n 'A' + rs + ',' + rs + ' 0 0,1 ' + rs + ',0Z';\n },\n needLine: true,\n noDot: true\n },\n 'circle-x': {\n n: 28,\n f: function(r) {\n var rs = d3.round(r, 2);\n var rc = d3.round(r / Math.sqrt(2), 2);\n return 'M' + rc + ',' + rc + 'L-' + rc + ',-' + rc +\n 'M' + rc + ',-' + rc + 'L-' + rc + ',' + rc +\n 'M' + rs + ',0A' + rs + ',' + rs + ' 0 1,1 0,-' + rs +\n 'A' + rs + ',' + rs + ' 0 0,1 ' + rs + ',0Z';\n },\n needLine: true,\n noDot: true\n },\n 'square-cross': {\n n: 29,\n f: function(r) {\n var rs = d3.round(r, 2);\n return 'M0,' + rs + 'V-' + rs + 'M' + rs + ',0H-' + rs +\n 'M' + rs + ',' + rs + 'H-' + rs + 'V-' + rs + 'H' + rs + 'Z';\n },\n needLine: true,\n noDot: true\n },\n 'square-x': {\n n: 30,\n f: function(r) {\n var rs = d3.round(r, 2);\n return 'M' + rs + ',' + rs + 'L-' + rs + ',-' + rs +\n 'M' + rs + ',-' + rs + 'L-' + rs + ',' + rs +\n 'M' + rs + ',' + rs + 'H-' + rs + 'V-' + rs + 'H' + rs + 'Z';\n },\n needLine: true,\n noDot: true\n },\n 'diamond-cross': {\n n: 31,\n f: function(r) {\n var rd = d3.round(r * 1.3, 2);\n return 'M' + rd + ',0L0,' + rd + 'L-' + rd + ',0L0,-' + rd + 'Z' +\n 'M0,-' + rd + 'V' + rd + 'M-' + rd + ',0H' + rd;\n },\n needLine: true,\n noDot: true\n },\n 'diamond-x': {\n n: 32,\n f: function(r) {\n var rd = d3.round(r * 1.3, 2);\n var r2 = d3.round(r * 0.65, 2);\n return 'M' + rd + ',0L0,' + rd + 'L-' + rd + ',0L0,-' + rd + 'Z' +\n 'M-' + r2 + ',-' + r2 + 'L' + r2 + ',' + r2 +\n 'M-' + r2 + ',' + r2 + 'L' + r2 + ',-' + r2;\n },\n needLine: true,\n noDot: true\n },\n 'cross-thin': {\n n: 33,\n f: function(r) {\n var rc = d3.round(r * 1.4, 2);\n return 'M0,' + rc + 'V-' + rc + 'M' + rc + ',0H-' + rc;\n },\n needLine: true,\n noDot: true,\n noFill: true\n },\n 'x-thin': {\n n: 34,\n f: function(r) {\n var rx = d3.round(r, 2);\n return 'M' + rx + ',' + rx + 'L-' + rx + ',-' + rx +\n 'M' + rx + ',-' + rx + 'L-' + rx + ',' + rx;\n },\n needLine: true,\n noDot: true,\n noFill: true\n },\n asterisk: {\n n: 35,\n f: function(r) {\n var rc = d3.round(r * 1.2, 2);\n var rs = d3.round(r * 0.85, 2);\n return 'M0,' + rc + 'V-' + rc + 'M' + rc + ',0H-' + rc +\n 'M' + rs + ',' + rs + 'L-' + rs + ',-' + rs +\n 'M' + rs + ',-' + rs + 'L-' + rs + ',' + rs;\n },\n needLine: true,\n noDot: true,\n noFill: true\n },\n hash: {\n n: 36,\n f: function(r) {\n var r1 = d3.round(r / 2, 2);\n var r2 = d3.round(r, 2);\n return 'M' + r1 + ',' + r2 + 'V-' + r2 +\n 'm-' + r2 + ',0V' + r2 +\n 'M' + r2 + ',' + r1 + 'H-' + r2 +\n 'm0,-' + r2 + 'H' + r2;\n },\n needLine: true,\n noFill: true\n },\n 'y-up': {\n n: 37,\n f: function(r) {\n var x = d3.round(r * 1.2, 2);\n var y0 = d3.round(r * 1.6, 2);\n var y1 = d3.round(r * 0.8, 2);\n return 'M-' + x + ',' + y1 + 'L0,0M' + x + ',' + y1 + 'L0,0M0,-' + y0 + 'L0,0';\n },\n needLine: true,\n noDot: true,\n noFill: true\n },\n 'y-down': {\n n: 38,\n f: function(r) {\n var x = d3.round(r * 1.2, 2);\n var y0 = d3.round(r * 1.6, 2);\n var y1 = d3.round(r * 0.8, 2);\n return 'M-' + x + ',-' + y1 + 'L0,0M' + x + ',-' + y1 + 'L0,0M0,' + y0 + 'L0,0';\n },\n needLine: true,\n noDot: true,\n noFill: true\n },\n 'y-left': {\n n: 39,\n f: function(r) {\n var y = d3.round(r * 1.2, 2);\n var x0 = d3.round(r * 1.6, 2);\n var x1 = d3.round(r * 0.8, 2);\n return 'M' + x1 + ',' + y + 'L0,0M' + x1 + ',-' + y + 'L0,0M-' + x0 + ',0L0,0';\n },\n needLine: true,\n noDot: true,\n noFill: true\n },\n 'y-right': {\n n: 40,\n f: function(r) {\n var y = d3.round(r * 1.2, 2);\n var x0 = d3.round(r * 1.6, 2);\n var x1 = d3.round(r * 0.8, 2);\n return 'M-' + x1 + ',' + y + 'L0,0M-' + x1 + ',-' + y + 'L0,0M' + x0 + ',0L0,0';\n },\n needLine: true,\n noDot: true,\n noFill: true\n },\n 'line-ew': {\n n: 41,\n f: function(r) {\n var rc = d3.round(r * 1.4, 2);\n return 'M' + rc + ',0H-' + rc;\n },\n needLine: true,\n noDot: true,\n noFill: true\n },\n 'line-ns': {\n n: 42,\n f: function(r) {\n var rc = d3.round(r * 1.4, 2);\n return 'M0,' + rc + 'V-' + rc;\n },\n needLine: true,\n noDot: true,\n noFill: true\n },\n 'line-ne': {\n n: 43,\n f: function(r) {\n var rx = d3.round(r, 2);\n return 'M' + rx + ',-' + rx + 'L-' + rx + ',' + rx;\n },\n needLine: true,\n noDot: true,\n noFill: true\n },\n 'line-nw': {\n n: 44,\n f: function(r) {\n var rx = d3.round(r, 2);\n return 'M' + rx + ',' + rx + 'L-' + rx + ',-' + rx;\n },\n needLine: true,\n noDot: true,\n noFill: true\n },\n 'arrow-up': {\n n: 45,\n f: function(r) {\n var rx = d3.round(r, 2);\n var ry = d3.round(r * 2, 2);\n return 'M0,0L-' + rx + ',' + ry + 'H' + rx + 'Z';\n },\n noDot: true\n },\n 'arrow-down': {\n n: 46,\n f: function(r) {\n var rx = d3.round(r, 2);\n var ry = d3.round(r * 2, 2);\n return 'M0,0L-' + rx + ',-' + ry + 'H' + rx + 'Z';\n },\n noDot: true\n },\n 'arrow-left': {\n n: 47,\n f: function(r) {\n var rx = d3.round(r * 2, 2);\n var ry = d3.round(r, 2);\n return 'M0,0L' + rx + ',-' + ry + 'V' + ry + 'Z';\n },\n noDot: true\n },\n 'arrow-right': {\n n: 48,\n f: function(r) {\n var rx = d3.round(r * 2, 2);\n var ry = d3.round(r, 2);\n return 'M0,0L-' + rx + ',-' + ry + 'V' + ry + 'Z';\n },\n noDot: true\n },\n 'arrow-bar-up': {\n n: 49,\n f: function(r) {\n var rx = d3.round(r, 2);\n var ry = d3.round(r * 2, 2);\n return 'M-' + rx + ',0H' + rx + 'M0,0L-' + rx + ',' + ry + 'H' + rx + 'Z';\n },\n needLine: true,\n noDot: true\n },\n 'arrow-bar-down': {\n n: 50,\n f: function(r) {\n var rx = d3.round(r, 2);\n var ry = d3.round(r * 2, 2);\n return 'M-' + rx + ',0H' + rx + 'M0,0L-' + rx + ',-' + ry + 'H' + rx + 'Z';\n },\n needLine: true,\n noDot: true\n },\n 'arrow-bar-left': {\n n: 51,\n f: function(r) {\n var rx = d3.round(r * 2, 2);\n var ry = d3.round(r, 2);\n return 'M0,-' + ry + 'V' + ry + 'M0,0L' + rx + ',-' + ry + 'V' + ry + 'Z';\n },\n needLine: true,\n noDot: true\n },\n 'arrow-bar-right': {\n n: 52,\n f: function(r) {\n var rx = d3.round(r * 2, 2);\n var ry = d3.round(r, 2);\n return 'M0,-' + ry + 'V' + ry + 'M0,0L-' + rx + ',-' + ry + 'V' + ry + 'Z';\n },\n needLine: true,\n noDot: true\n }\n};\n\n},{\"@plotly/d3\":58}],390:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = {\n visible: {\n valType: 'boolean',\n editType: 'calc',\n },\n type: {\n valType: 'enumerated',\n values: ['percent', 'constant', 'sqrt', 'data'],\n editType: 'calc',\n },\n symmetric: {\n valType: 'boolean',\n editType: 'calc',\n },\n array: {\n valType: 'data_array',\n editType: 'calc',\n },\n arrayminus: {\n valType: 'data_array',\n editType: 'calc',\n },\n value: {\n valType: 'number',\n min: 0,\n dflt: 10,\n editType: 'calc',\n },\n valueminus: {\n valType: 'number',\n min: 0,\n dflt: 10,\n editType: 'calc',\n },\n traceref: {\n valType: 'integer',\n min: 0,\n dflt: 0,\n editType: 'style'\n },\n tracerefminus: {\n valType: 'integer',\n min: 0,\n dflt: 0,\n editType: 'style'\n },\n copy_ystyle: {\n valType: 'boolean',\n editType: 'plot'\n },\n copy_zstyle: {\n valType: 'boolean',\n editType: 'style'\n },\n color: {\n valType: 'color',\n editType: 'style',\n },\n thickness: {\n valType: 'number',\n min: 0,\n dflt: 2,\n editType: 'style',\n },\n width: {\n valType: 'number',\n min: 0,\n editType: 'plot',\n },\n editType: 'calc',\n\n _deprecated: {\n opacity: {\n valType: 'number',\n editType: 'style',\n }\n }\n};\n\n},{}],391:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Registry = _dereq_('../../registry');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar Lib = _dereq_('../../lib');\n\nvar makeComputeError = _dereq_('./compute_error');\n\nmodule.exports = function calc(gd) {\n var calcdata = gd.calcdata;\n\n for(var i = 0; i < calcdata.length; i++) {\n var calcTrace = calcdata[i];\n var trace = calcTrace[0].trace;\n\n if(trace.visible === true && Registry.traceIs(trace, 'errorBarsOK')) {\n var xa = Axes.getFromId(gd, trace.xaxis);\n var ya = Axes.getFromId(gd, trace.yaxis);\n calcOneAxis(calcTrace, trace, xa, 'x');\n calcOneAxis(calcTrace, trace, ya, 'y');\n }\n }\n};\n\nfunction calcOneAxis(calcTrace, trace, axis, coord) {\n var opts = trace['error_' + coord] || {};\n var isVisible = (opts.visible && ['linear', 'log'].indexOf(axis.type) !== -1);\n var vals = [];\n\n if(!isVisible) return;\n\n var computeError = makeComputeError(opts);\n\n for(var i = 0; i < calcTrace.length; i++) {\n var calcPt = calcTrace[i];\n\n var iIn = calcPt.i;\n\n // for types that don't include `i` in each calcdata point\n if(iIn === undefined) iIn = i;\n\n // for stacked area inserted points\n // TODO: errorbars have been tested cursorily with stacked area,\n // but not thoroughly. It's not even really clear what you want to do:\n // Should it just be calculated based on that trace's size data?\n // Should you add errors from below in quadrature?\n // And what about normalization, where in principle the errors shrink\n // again when you get up to the top end?\n // One option would be to forbid errorbars with stacking until we\n // decide how to handle these questions.\n else if(iIn === null) continue;\n\n var calcCoord = calcPt[coord];\n\n if(!isNumeric(axis.c2l(calcCoord))) continue;\n\n var errors = computeError(calcCoord, iIn);\n if(isNumeric(errors[0]) && isNumeric(errors[1])) {\n var shoe = calcPt[coord + 's'] = calcCoord - errors[0];\n var hat = calcPt[coord + 'h'] = calcCoord + errors[1];\n vals.push(shoe, hat);\n }\n }\n\n var axId = axis._id;\n var baseExtremes = trace._extremes[axId];\n var extremes = Axes.findExtremes(\n axis,\n vals,\n Lib.extendFlat({tozero: baseExtremes.opts.tozero}, {padded: true})\n );\n baseExtremes.min = baseExtremes.min.concat(extremes.min);\n baseExtremes.max = baseExtremes.max.concat(extremes.max);\n}\n\n},{\"../../lib\":503,\"../../plots/cartesian/axes\":554,\"../../registry\":638,\"./compute_error\":392,\"fast-isnumeric\":190}],392:[function(_dereq_,module,exports){\n'use strict';\n\n\n/**\n * Error bar computing function generator\n *\n * N.B. The generated function does not clean the dataPt entries. Non-numeric\n * entries result in undefined error magnitudes.\n *\n * @param {object} opts error bar attributes\n *\n * @return {function} :\n * @param {numeric} dataPt data point from where to compute the error magnitude\n * @param {number} index index of dataPt in its corresponding data array\n * @return {array}\n * - error[0] : error magnitude in the negative direction\n * - error[1] : \" \" \" \" positive \"\n */\nmodule.exports = function makeComputeError(opts) {\n var type = opts.type;\n var symmetric = opts.symmetric;\n\n if(type === 'data') {\n var array = opts.array || [];\n\n if(symmetric) {\n return function computeError(dataPt, index) {\n var val = +(array[index]);\n return [val, val];\n };\n } else {\n var arrayminus = opts.arrayminus || [];\n return function computeError(dataPt, index) {\n var val = +array[index];\n var valMinus = +arrayminus[index];\n // in case one is present and the other is missing, fill in 0\n // so we still see the present one. Mostly useful during manual\n // data entry.\n if(!isNaN(val) || !isNaN(valMinus)) {\n return [valMinus || 0, val || 0];\n }\n return [NaN, NaN];\n };\n }\n } else {\n var computeErrorValue = makeComputeErrorValue(type, opts.value);\n var computeErrorValueMinus = makeComputeErrorValue(type, opts.valueminus);\n\n if(symmetric || opts.valueminus === undefined) {\n return function computeError(dataPt) {\n var val = computeErrorValue(dataPt);\n return [val, val];\n };\n } else {\n return function computeError(dataPt) {\n return [\n computeErrorValueMinus(dataPt),\n computeErrorValue(dataPt)\n ];\n };\n }\n }\n};\n\n/**\n * Compute error bar magnitude (for all types except data)\n *\n * @param {string} type error bar type\n * @param {numeric} value error bar value\n *\n * @return {function} :\n * @param {numeric} dataPt\n */\nfunction makeComputeErrorValue(type, value) {\n if(type === 'percent') {\n return function(dataPt) {\n return Math.abs(dataPt * value / 100);\n };\n }\n if(type === 'constant') {\n return function() {\n return Math.abs(value);\n };\n }\n if(type === 'sqrt') {\n return function(dataPt) {\n return Math.sqrt(Math.abs(dataPt));\n };\n }\n}\n\n},{}],393:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar Template = _dereq_('../../plot_api/plot_template');\n\nvar attributes = _dereq_('./attributes');\n\n\nmodule.exports = function(traceIn, traceOut, defaultColor, opts) {\n var objName = 'error_' + opts.axis;\n var containerOut = Template.newContainer(traceOut, objName);\n var containerIn = traceIn[objName] || {};\n\n function coerce(attr, dflt) {\n return Lib.coerce(containerIn, containerOut, attributes, attr, dflt);\n }\n\n var hasErrorBars = (\n containerIn.array !== undefined ||\n containerIn.value !== undefined ||\n containerIn.type === 'sqrt'\n );\n\n var visible = coerce('visible', hasErrorBars);\n\n if(visible === false) return;\n\n var type = coerce('type', 'array' in containerIn ? 'data' : 'percent');\n var symmetric = true;\n\n if(type !== 'sqrt') {\n symmetric = coerce('symmetric',\n !((type === 'data' ? 'arrayminus' : 'valueminus') in containerIn));\n }\n\n if(type === 'data') {\n coerce('array');\n coerce('traceref');\n if(!symmetric) {\n coerce('arrayminus');\n coerce('tracerefminus');\n }\n } else if(type === 'percent' || type === 'constant') {\n coerce('value');\n if(!symmetric) coerce('valueminus');\n }\n\n var copyAttr = 'copy_' + opts.inherit + 'style';\n if(opts.inherit) {\n var inheritObj = traceOut['error_' + opts.inherit];\n if((inheritObj || {}).visible) {\n coerce(copyAttr, !(containerIn.color ||\n isNumeric(containerIn.thickness) ||\n isNumeric(containerIn.width)));\n }\n }\n if(!opts.inherit || !containerOut[copyAttr]) {\n coerce('color', defaultColor);\n coerce('thickness');\n coerce('width', Registry.traceIs(traceOut, 'gl3d') ? 0 : 4);\n }\n};\n\n},{\"../../lib\":503,\"../../plot_api/plot_template\":543,\"../../registry\":638,\"./attributes\":390,\"fast-isnumeric\":190}],394:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\n\nvar attributes = _dereq_('./attributes');\n\nvar xyAttrs = {\n error_x: Lib.extendFlat({}, attributes),\n error_y: Lib.extendFlat({}, attributes)\n};\ndelete xyAttrs.error_x.copy_zstyle;\ndelete xyAttrs.error_y.copy_zstyle;\ndelete xyAttrs.error_y.copy_ystyle;\n\nvar xyzAttrs = {\n error_x: Lib.extendFlat({}, attributes),\n error_y: Lib.extendFlat({}, attributes),\n error_z: Lib.extendFlat({}, attributes)\n};\ndelete xyzAttrs.error_x.copy_ystyle;\ndelete xyzAttrs.error_y.copy_ystyle;\ndelete xyzAttrs.error_z.copy_ystyle;\ndelete xyzAttrs.error_z.copy_zstyle;\n\nmodule.exports = {\n moduleType: 'component',\n name: 'errorbars',\n\n schema: {\n traces: {\n scatter: xyAttrs,\n bar: xyAttrs,\n histogram: xyAttrs,\n scatter3d: overrideAll(xyzAttrs, 'calc', 'nested'),\n scattergl: overrideAll(xyAttrs, 'calc', 'nested')\n }\n },\n\n supplyDefaults: _dereq_('./defaults'),\n\n calc: _dereq_('./calc'),\n makeComputeError: _dereq_('./compute_error'),\n\n plot: _dereq_('./plot'),\n style: _dereq_('./style'),\n hoverInfo: hoverInfo\n};\n\nfunction hoverInfo(calcPoint, trace, hoverPoint) {\n if((trace.error_y || {}).visible) {\n hoverPoint.yerr = calcPoint.yh - calcPoint.y;\n if(!trace.error_y.symmetric) hoverPoint.yerrneg = calcPoint.y - calcPoint.ys;\n }\n if((trace.error_x || {}).visible) {\n hoverPoint.xerr = calcPoint.xh - calcPoint.x;\n if(!trace.error_x.symmetric) hoverPoint.xerrneg = calcPoint.x - calcPoint.xs;\n }\n}\n\n},{\"../../lib\":503,\"../../plot_api/edit_types\":536,\"./attributes\":390,\"./calc\":391,\"./compute_error\":392,\"./defaults\":393,\"./plot\":395,\"./style\":396}],395:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Drawing = _dereq_('../drawing');\nvar subTypes = _dereq_('../../traces/scatter/subtypes');\n\nmodule.exports = function plot(gd, traces, plotinfo, transitionOpts) {\n var isNew;\n\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n\n var hasAnimation = transitionOpts && transitionOpts.duration > 0;\n\n traces.each(function(d) {\n var trace = d[0].trace;\n // || {} is in case the trace (specifically scatterternary)\n // doesn't support error bars at all, but does go through\n // the scatter.plot mechanics, which calls ErrorBars.plot\n // internally\n var xObj = trace.error_x || {};\n var yObj = trace.error_y || {};\n\n var keyFunc;\n\n if(trace.ids) {\n keyFunc = function(d) {return d.id;};\n }\n\n var sparse = (\n subTypes.hasMarkers(trace) &&\n trace.marker.maxdisplayed > 0\n );\n\n if(!yObj.visible && !xObj.visible) d = [];\n\n var errorbars = d3.select(this).selectAll('g.errorbar')\n .data(d, keyFunc);\n\n errorbars.exit().remove();\n\n if(!d.length) return;\n\n if(!xObj.visible) errorbars.selectAll('path.xerror').remove();\n if(!yObj.visible) errorbars.selectAll('path.yerror').remove();\n\n errorbars.style('opacity', 1);\n\n var enter = errorbars.enter().append('g')\n .classed('errorbar', true);\n\n if(hasAnimation) {\n enter.style('opacity', 0).transition()\n .duration(transitionOpts.duration)\n .style('opacity', 1);\n }\n\n Drawing.setClipUrl(errorbars, plotinfo.layerClipId, gd);\n\n errorbars.each(function(d) {\n var errorbar = d3.select(this);\n var coords = errorCoords(d, xa, ya);\n\n if(sparse && !d.vis) return;\n\n var path;\n\n var yerror = errorbar.select('path.yerror');\n if(yObj.visible && isNumeric(coords.x) &&\n isNumeric(coords.yh) &&\n isNumeric(coords.ys)) {\n var yw = yObj.width;\n\n path = 'M' + (coords.x - yw) + ',' +\n coords.yh + 'h' + (2 * yw) + // hat\n 'm-' + yw + ',0V' + coords.ys; // bar\n\n\n if(!coords.noYS) path += 'm-' + yw + ',0h' + (2 * yw); // shoe\n\n isNew = !yerror.size();\n\n if(isNew) {\n yerror = errorbar.append('path')\n .style('vector-effect', 'non-scaling-stroke')\n .classed('yerror', true);\n } else if(hasAnimation) {\n yerror = yerror\n .transition()\n .duration(transitionOpts.duration)\n .ease(transitionOpts.easing);\n }\n\n yerror.attr('d', path);\n } else yerror.remove();\n\n var xerror = errorbar.select('path.xerror');\n if(xObj.visible && isNumeric(coords.y) &&\n isNumeric(coords.xh) &&\n isNumeric(coords.xs)) {\n var xw = (xObj.copy_ystyle ? yObj : xObj).width;\n\n path = 'M' + coords.xh + ',' +\n (coords.y - xw) + 'v' + (2 * xw) + // hat\n 'm0,-' + xw + 'H' + coords.xs; // bar\n\n if(!coords.noXS) path += 'm0,-' + xw + 'v' + (2 * xw); // shoe\n\n isNew = !xerror.size();\n\n if(isNew) {\n xerror = errorbar.append('path')\n .style('vector-effect', 'non-scaling-stroke')\n .classed('xerror', true);\n } else if(hasAnimation) {\n xerror = xerror\n .transition()\n .duration(transitionOpts.duration)\n .ease(transitionOpts.easing);\n }\n\n xerror.attr('d', path);\n } else xerror.remove();\n });\n });\n};\n\n// compute the coordinates of the error-bar objects\nfunction errorCoords(d, xa, ya) {\n var out = {\n x: xa.c2p(d.x),\n y: ya.c2p(d.y)\n };\n\n // calculate the error bar size and hat and shoe locations\n if(d.yh !== undefined) {\n out.yh = ya.c2p(d.yh);\n out.ys = ya.c2p(d.ys);\n\n // if the shoes go off-scale (ie log scale, error bars past zero)\n // clip the bar and hide the shoes\n if(!isNumeric(out.ys)) {\n out.noYS = true;\n out.ys = ya.c2p(d.ys, true);\n }\n }\n\n if(d.xh !== undefined) {\n out.xh = xa.c2p(d.xh);\n out.xs = xa.c2p(d.xs);\n\n if(!isNumeric(out.xs)) {\n out.noXS = true;\n out.xs = xa.c2p(d.xs, true);\n }\n }\n\n return out;\n}\n\n},{\"../../traces/scatter/subtypes\":950,\"../drawing\":388,\"@plotly/d3\":58,\"fast-isnumeric\":190}],396:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Color = _dereq_('../color');\n\n\nmodule.exports = function style(traces) {\n traces.each(function(d) {\n var trace = d[0].trace;\n var yObj = trace.error_y || {};\n var xObj = trace.error_x || {};\n\n var s = d3.select(this);\n\n s.selectAll('path.yerror')\n .style('stroke-width', yObj.thickness + 'px')\n .call(Color.stroke, yObj.color);\n\n if(xObj.copy_ystyle) xObj = yObj;\n\n s.selectAll('path.xerror')\n .style('stroke-width', xObj.thickness + 'px')\n .call(Color.stroke, xObj.color);\n });\n};\n\n},{\"../color\":366,\"@plotly/d3\":58}],397:[function(_dereq_,module,exports){\n'use strict';\n\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar hoverLabelAttrs = _dereq_('./layout_attributes').hoverlabel;\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nmodule.exports = {\n hoverlabel: {\n bgcolor: extendFlat({}, hoverLabelAttrs.bgcolor, {\n arrayOk: true,\n }),\n bordercolor: extendFlat({}, hoverLabelAttrs.bordercolor, {\n arrayOk: true,\n }),\n font: fontAttrs({\n arrayOk: true,\n editType: 'none',\n }),\n align: extendFlat({}, hoverLabelAttrs.align, {arrayOk: true}),\n namelength: extendFlat({}, hoverLabelAttrs.namelength, {arrayOk: true}),\n editType: 'none'\n }\n};\n\n},{\"../../lib/extend\":493,\"../../plots/font_attributes\":585,\"./layout_attributes\":407}],398:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Registry = _dereq_('../../registry');\n\nmodule.exports = function calc(gd) {\n var calcdata = gd.calcdata;\n var fullLayout = gd._fullLayout;\n\n function makeCoerceHoverInfo(trace) {\n return function(val) {\n return Lib.coerceHoverinfo({hoverinfo: val}, {_module: trace._module}, fullLayout);\n };\n }\n\n for(var i = 0; i < calcdata.length; i++) {\n var cd = calcdata[i];\n var trace = cd[0].trace;\n\n // don't include hover calc fields for pie traces\n // as calcdata items might be sorted by value and\n // won't match the data array order.\n if(Registry.traceIs(trace, 'pie-like')) continue;\n\n var fillFn = Registry.traceIs(trace, '2dMap') ? paste : Lib.fillArray;\n\n fillFn(trace.hoverinfo, cd, 'hi', makeCoerceHoverInfo(trace));\n\n if(trace.hovertemplate) fillFn(trace.hovertemplate, cd, 'ht');\n\n if(!trace.hoverlabel) continue;\n\n fillFn(trace.hoverlabel.bgcolor, cd, 'hbg');\n fillFn(trace.hoverlabel.bordercolor, cd, 'hbc');\n fillFn(trace.hoverlabel.font.size, cd, 'hts');\n fillFn(trace.hoverlabel.font.color, cd, 'htc');\n fillFn(trace.hoverlabel.font.family, cd, 'htf');\n fillFn(trace.hoverlabel.namelength, cd, 'hnl');\n fillFn(trace.hoverlabel.align, cd, 'hta');\n }\n};\n\nfunction paste(traceAttr, cd, cdAttr, fn) {\n fn = fn || Lib.identity;\n\n if(Array.isArray(traceAttr)) {\n cd[0][cdAttr] = fn(traceAttr);\n }\n}\n\n},{\"../../lib\":503,\"../../registry\":638}],399:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar hover = _dereq_('./hover').hover;\n\nmodule.exports = function click(gd, evt, subplot) {\n var annotationsDone = Registry.getComponentMethod('annotations', 'onClick')(gd, gd._hoverdata);\n\n // fallback to fail-safe in case the plot type's hover method doesn't pass the subplot.\n // Ternary, for example, didn't, but it was caught because tested.\n if(subplot !== undefined) {\n // The true flag at the end causes it to re-run the hover computation to figure out *which*\n // point is being clicked. Without this, clicking is somewhat unreliable.\n hover(gd, evt, subplot, true);\n }\n\n function emitClick() { gd.emit('plotly_click', {points: gd._hoverdata, event: evt}); }\n\n if(gd._hoverdata && evt && evt.target) {\n if(annotationsDone && annotationsDone.then) {\n annotationsDone.then(emitClick);\n } else emitClick();\n\n // why do we get a double event without this???\n if(evt.stopImmediatePropagation) evt.stopImmediatePropagation();\n }\n};\n\n},{\"../../registry\":638,\"./hover\":403}],400:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n // hover labels for multiple horizontal bars get tilted by this angle\n YANGLE: 60,\n\n // size and display constants for hover text\n\n // pixel size of hover arrows\n HOVERARROWSIZE: 6,\n // pixels padding around text\n HOVERTEXTPAD: 3,\n // hover font\n HOVERFONTSIZE: 13,\n HOVERFONT: 'Arial, sans-serif',\n\n // minimum time (msec) between hover calls\n HOVERMINTIME: 50,\n\n // ID suffix (with fullLayout._uid) for hover events in the throttle cache\n HOVERID: '-hover'\n};\n\n},{}],401:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar attributes = _dereq_('./attributes');\nvar handleHoverLabelDefaults = _dereq_('./hoverlabel_defaults');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var opts = Lib.extendFlat({}, layout.hoverlabel);\n if(traceOut.hovertemplate) opts.namelength = -1;\n\n handleHoverLabelDefaults(traceIn, traceOut, coerce, opts);\n};\n\n},{\"../../lib\":503,\"./attributes\":397,\"./hoverlabel_defaults\":404}],402:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\n// look for either subplot or xaxis and yaxis attributes\n// does not handle splom case\nexports.getSubplot = function(trace) {\n return trace.subplot || (trace.xaxis + trace.yaxis) || trace.geo;\n};\n\n// is trace in given list of subplots?\n// does handle splom case\nexports.isTraceInSubplots = function(trace, subplots) {\n if(trace.type === 'splom') {\n var xaxes = trace.xaxes || [];\n var yaxes = trace.yaxes || [];\n for(var i = 0; i < xaxes.length; i++) {\n for(var j = 0; j < yaxes.length; j++) {\n if(subplots.indexOf(xaxes[i] + yaxes[j]) !== -1) {\n return true;\n }\n }\n }\n return false;\n }\n\n return subplots.indexOf(exports.getSubplot(trace)) !== -1;\n};\n\n// convenience functions for mapping all relevant axes\nexports.flat = function(subplots, v) {\n var out = new Array(subplots.length);\n for(var i = 0; i < subplots.length; i++) {\n out[i] = v;\n }\n return out;\n};\n\nexports.p2c = function(axArray, v) {\n var out = new Array(axArray.length);\n for(var i = 0; i < axArray.length; i++) {\n out[i] = axArray[i].p2c(v);\n }\n return out;\n};\n\nexports.getDistanceFunction = function(mode, dx, dy, dxy) {\n if(mode === 'closest') return dxy || exports.quadrature(dx, dy);\n return mode.charAt(0) === 'x' ? dx : dy;\n};\n\nexports.getClosest = function(cd, distfn, pointData) {\n // do we already have a point number? (array mode only)\n if(pointData.index !== false) {\n if(pointData.index >= 0 && pointData.index < cd.length) {\n pointData.distance = 0;\n } else pointData.index = false;\n } else {\n // apply the distance function to each data point\n // this is the longest loop... if this bogs down, we may need\n // to create pre-sorted data (by x or y), not sure how to\n // do this for 'closest'\n for(var i = 0; i < cd.length; i++) {\n var newDistance = distfn(cd[i]);\n if(newDistance <= pointData.distance) {\n pointData.index = i;\n pointData.distance = newDistance;\n }\n }\n }\n return pointData;\n};\n\n/*\n * pseudo-distance function for hover effects on areas: inside the region\n * distance is finite (`passVal`), outside it's Infinity.\n *\n * @param {number} v0: signed difference between the current position and the left edge\n * @param {number} v1: signed difference between the current position and the right edge\n * @param {number} passVal: the value to return on success\n */\nexports.inbox = function(v0, v1, passVal) {\n return (v0 * v1 < 0 || v0 === 0) ? passVal : Infinity;\n};\n\nexports.quadrature = function(dx, dy) {\n return function(di) {\n var x = dx(di);\n var y = dy(di);\n return Math.sqrt(x * x + y * y);\n };\n};\n\n/** Fill event data point object for hover and selection.\n * Invokes _module.eventData if present.\n *\n * N.B. note that point 'index' corresponds to input data array index\n * whereas 'number' is its post-transform version.\n *\n * If the hovered/selected pt corresponds to an multiple input points\n * (e.g. for histogram and transformed traces), 'pointNumbers` and 'pointIndices'\n * are include in the event data.\n *\n * @param {object} pt\n * @param {object} trace\n * @param {object} cd\n * @return {object}\n */\nexports.makeEventData = function(pt, trace, cd) {\n // hover uses 'index', select uses 'pointNumber'\n var pointNumber = 'index' in pt ? pt.index : pt.pointNumber;\n\n var out = {\n data: trace._input,\n fullData: trace,\n curveNumber: trace.index,\n pointNumber: pointNumber\n };\n\n if(trace._indexToPoints) {\n var pointIndices = trace._indexToPoints[pointNumber];\n\n if(pointIndices.length === 1) {\n out.pointIndex = pointIndices[0];\n } else {\n out.pointIndices = pointIndices;\n }\n } else {\n out.pointIndex = pointNumber;\n }\n\n if(trace._module.eventData) {\n out = trace._module.eventData(out, pt, trace, cd, pointNumber);\n } else {\n if('xVal' in pt) out.x = pt.xVal;\n else if('x' in pt) out.x = pt.x;\n\n if('yVal' in pt) out.y = pt.yVal;\n else if('y' in pt) out.y = pt.y;\n\n if(pt.xa) out.xaxis = pt.xa;\n if(pt.ya) out.yaxis = pt.ya;\n if(pt.zLabelVal !== undefined) out.z = pt.zLabelVal;\n }\n\n exports.appendArrayPointValue(out, trace, pointNumber);\n\n return out;\n};\n\n/** Appends values inside array attributes corresponding to given point number\n *\n * @param {object} pointData : point data object (gets mutated here)\n * @param {object} trace : full trace object\n * @param {number|Array(number)} pointNumber : point number. May be a length-2 array\n * [row, col] to dig into 2D arrays\n */\nexports.appendArrayPointValue = function(pointData, trace, pointNumber) {\n var arrayAttrs = trace._arrayAttrs;\n\n if(!arrayAttrs) {\n return;\n }\n\n for(var i = 0; i < arrayAttrs.length; i++) {\n var astr = arrayAttrs[i];\n var key = getPointKey(astr);\n\n if(pointData[key] === undefined) {\n var val = Lib.nestedProperty(trace, astr).get();\n var pointVal = getPointData(val, pointNumber);\n\n if(pointVal !== undefined) pointData[key] = pointVal;\n }\n }\n};\n\n/**\n * Appends values inside array attributes corresponding to given point number array\n * For use when pointData references a plot entity that arose (or potentially arose)\n * from multiple points in the input data\n *\n * @param {object} pointData : point data object (gets mutated here)\n * @param {object} trace : full trace object\n * @param {Array(number)|Array(Array(number))} pointNumbers : Array of point numbers.\n * Each entry in the array may itself be a length-2 array [row, col] to dig into 2D arrays\n */\nexports.appendArrayMultiPointValues = function(pointData, trace, pointNumbers) {\n var arrayAttrs = trace._arrayAttrs;\n\n if(!arrayAttrs) {\n return;\n }\n\n for(var i = 0; i < arrayAttrs.length; i++) {\n var astr = arrayAttrs[i];\n var key = getPointKey(astr);\n\n if(pointData[key] === undefined) {\n var val = Lib.nestedProperty(trace, astr).get();\n var keyVal = new Array(pointNumbers.length);\n\n for(var j = 0; j < pointNumbers.length; j++) {\n keyVal[j] = getPointData(val, pointNumbers[j]);\n }\n pointData[key] = keyVal;\n }\n }\n};\n\nvar pointKeyMap = {\n ids: 'id',\n locations: 'location',\n labels: 'label',\n values: 'value',\n 'marker.colors': 'color',\n parents: 'parent'\n};\n\nfunction getPointKey(astr) {\n return pointKeyMap[astr] || astr;\n}\n\nfunction getPointData(val, pointNumber) {\n if(Array.isArray(pointNumber)) {\n if(Array.isArray(val) && Array.isArray(val[pointNumber[0]])) {\n return val[pointNumber[0]][pointNumber[1]];\n }\n } else {\n return val[pointNumber];\n }\n}\n\nvar xyHoverMode = {\n x: true,\n y: true\n};\n\nvar unifiedHoverMode = {\n 'x unified': true,\n 'y unified': true\n};\n\nexports.isUnifiedHover = function(hovermode) {\n if(typeof hovermode !== 'string') return false;\n return !!unifiedHoverMode[hovermode];\n};\n\nexports.isXYhover = function(hovermode) {\n if(typeof hovermode !== 'string') return false;\n return !!xyHoverMode[hovermode];\n};\n\n},{\"../../lib\":503}],403:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar isNumeric = _dereq_('fast-isnumeric');\nvar tinycolor = _dereq_('tinycolor2');\n\nvar Lib = _dereq_('../../lib');\nvar strTranslate = Lib.strTranslate;\nvar strRotate = Lib.strRotate;\nvar Events = _dereq_('../../lib/events');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\nvar overrideCursor = _dereq_('../../lib/override_cursor');\nvar Drawing = _dereq_('../drawing');\nvar Color = _dereq_('../color');\nvar dragElement = _dereq_('../dragelement');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar Registry = _dereq_('../../registry');\n\nvar helpers = _dereq_('./helpers');\nvar constants = _dereq_('./constants');\n\nvar legendSupplyDefaults = _dereq_('../legend/defaults');\nvar legendDraw = _dereq_('../legend/draw');\n\n// hover labels for multiple horizontal bars get tilted by some angle,\n// then need to be offset differently if they overlap\nvar YANGLE = constants.YANGLE;\nvar YA_RADIANS = Math.PI * YANGLE / 180;\n\n// expansion of projected height\nvar YFACTOR = 1 / Math.sin(YA_RADIANS);\n\n// to make the appropriate post-rotation x offset,\n// you need both x and y offsets\nvar YSHIFTX = Math.cos(YA_RADIANS);\nvar YSHIFTY = Math.sin(YA_RADIANS);\n\n// size and display constants for hover text\nvar HOVERARROWSIZE = constants.HOVERARROWSIZE;\nvar HOVERTEXTPAD = constants.HOVERTEXTPAD;\n\nvar multipleHoverPoints = {\n box: true,\n ohlc: true,\n violin: true,\n candlestick: true\n};\n\nvar cartesianScatterPoints = {\n scatter: true,\n scattergl: true,\n splom: true\n};\n\n// fx.hover: highlight data on hover\n// evt can be a mousemove event, or an object with data about what points\n// to hover on\n// {xpx,ypx[,hovermode]} - pixel locations from top left\n// (with optional overriding hovermode)\n// {xval,yval[,hovermode]} - data values\n// [{curveNumber,(pointNumber|xval and/or yval)}] -\n// array of specific points to highlight\n// pointNumber is a single integer if gd.data[curveNumber] is 1D,\n// or a two-element array if it's 2D\n// xval and yval are data values,\n// 1D data may specify either or both,\n// 2D data must specify both\n// subplot is an id string (default \"xy\")\n// makes use of gl.hovermode, which can be:\n// x (find the points with the closest x values, ie a column),\n// closest (find the single closest point)\n// internally there are two more that occasionally get used:\n// y (pick out a row - only used for multiple horizontal bar charts)\n// array (used when the user specifies an explicit\n// array of points to hover on)\n//\n// We wrap the hovers in a timer, to limit their frequency.\n// The actual rendering is done by private function _hover.\nexports.hover = function hover(gd, evt, subplot, noHoverEvent) {\n gd = Lib.getGraphDiv(gd);\n\n Lib.throttle(\n gd._fullLayout._uid + constants.HOVERID,\n constants.HOVERMINTIME,\n function() { _hover(gd, evt, subplot, noHoverEvent); }\n );\n};\n\n/*\n * Draw a single hover item or an array of hover item in a pre-existing svg container somewhere\n * hoverItem should have keys:\n * - x and y (or x0, x1, y0, and y1):\n * the pixel position to mark, relative to opts.container\n * - xLabel, yLabel, zLabel, text, and name:\n * info to go in the label\n * - color:\n * the background color for the label.\n * - idealAlign (optional):\n * 'left' or 'right' for which side of the x/y box to try to put this on first\n * - borderColor (optional):\n * color for the border, defaults to strongest contrast with color\n * - fontFamily (optional):\n * string, the font for this label, defaults to constants.HOVERFONT\n * - fontSize (optional):\n * the label font size, defaults to constants.HOVERFONTSIZE\n * - fontColor (optional):\n * defaults to borderColor\n * opts should have keys:\n * - bgColor:\n * the background color this is against, used if the trace is\n * non-opaque, and for the name, which goes outside the box\n * - container:\n * a or element to add the hover label to\n * - outerContainer:\n * normally a parent of `container`, sets the bounding box to use to\n * constrain the hover label and determine whether to show it on the left or right\n * opts can have optional keys:\n * - anchorIndex:\n the index of the hover item used as an anchor for positioning.\n The other hover items will be pushed up or down to prevent overlap.\n */\nexports.loneHover = function loneHover(hoverItems, opts) {\n var multiHover = true;\n if(!Array.isArray(hoverItems)) {\n multiHover = false;\n hoverItems = [hoverItems];\n }\n\n var gd = opts.gd;\n var gTop = getTopOffset(gd);\n var gLeft = getLeftOffset(gd);\n\n var pointsData = hoverItems.map(function(hoverItem) {\n var _x0 = hoverItem._x0 || hoverItem.x0 || hoverItem.x || 0;\n var _x1 = hoverItem._x1 || hoverItem.x1 || hoverItem.x || 0;\n var _y0 = hoverItem._y0 || hoverItem.y0 || hoverItem.y || 0;\n var _y1 = hoverItem._y1 || hoverItem.y1 || hoverItem.y || 0;\n\n var eventData = hoverItem.eventData;\n if(eventData) {\n var x0 = Math.min(_x0, _x1);\n var x1 = Math.max(_x0, _x1);\n var y0 = Math.min(_y0, _y1);\n var y1 = Math.max(_y0, _y1);\n\n var trace = hoverItem.trace;\n if(Registry.traceIs(trace, 'gl3d')) {\n var container = gd._fullLayout[trace.scene]._scene.container;\n var dx = container.offsetLeft;\n var dy = container.offsetTop;\n x0 += dx;\n x1 += dx;\n y0 += dy;\n y1 += dy;\n } // TODO: handle heatmapgl\n\n eventData.bbox = {\n x0: x0 + gLeft,\n x1: x1 + gLeft,\n y0: y0 + gTop,\n y1: y1 + gTop\n };\n\n if(opts.inOut_bbox) {\n opts.inOut_bbox.push(eventData.bbox);\n }\n } else {\n eventData = false;\n }\n\n return {\n color: hoverItem.color || Color.defaultLine,\n x0: hoverItem.x0 || hoverItem.x || 0,\n x1: hoverItem.x1 || hoverItem.x || 0,\n y0: hoverItem.y0 || hoverItem.y || 0,\n y1: hoverItem.y1 || hoverItem.y || 0,\n xLabel: hoverItem.xLabel,\n yLabel: hoverItem.yLabel,\n zLabel: hoverItem.zLabel,\n text: hoverItem.text,\n name: hoverItem.name,\n idealAlign: hoverItem.idealAlign,\n\n // optional extra bits of styling\n borderColor: hoverItem.borderColor,\n fontFamily: hoverItem.fontFamily,\n fontSize: hoverItem.fontSize,\n fontColor: hoverItem.fontColor,\n nameLength: hoverItem.nameLength,\n textAlign: hoverItem.textAlign,\n\n // filler to make createHoverText happy\n trace: hoverItem.trace || {\n index: 0,\n hoverinfo: ''\n },\n xa: {_offset: 0},\n ya: {_offset: 0},\n index: 0,\n\n hovertemplate: hoverItem.hovertemplate || false,\n hovertemplateLabels: hoverItem.hovertemplateLabels || false,\n\n eventData: eventData\n };\n });\n\n var rotateLabels = false;\n\n var hoverLabel = createHoverText(pointsData, {\n gd: gd,\n hovermode: 'closest',\n rotateLabels: rotateLabels,\n bgColor: opts.bgColor || Color.background,\n container: d3.select(opts.container),\n outerContainer: opts.outerContainer || opts.container\n });\n\n // Fix vertical overlap\n var tooltipSpacing = 5;\n var lastBottomY = 0;\n var anchor = 0;\n hoverLabel\n .sort(function(a, b) {return a.y0 - b.y0;})\n .each(function(d, i) {\n var topY = d.y0 - d.by / 2;\n\n if((topY - tooltipSpacing) < lastBottomY) {\n d.offset = (lastBottomY - topY) + tooltipSpacing;\n } else {\n d.offset = 0;\n }\n\n lastBottomY = topY + d.by + d.offset;\n\n if(i === opts.anchorIndex || 0) anchor = d.offset;\n })\n .each(function(d) {\n d.offset -= anchor;\n });\n\n var scaleX = gd._fullLayout._invScaleX;\n var scaleY = gd._fullLayout._invScaleY;\n alignHoverText(hoverLabel, rotateLabels, scaleX, scaleY);\n\n return multiHover ? hoverLabel : hoverLabel.node();\n};\n\n// The actual implementation is here:\nfunction _hover(gd, evt, subplot, noHoverEvent) {\n if(!subplot) subplot = 'xy';\n\n // if the user passed in an array of subplots,\n // use those instead of finding overlayed plots\n var subplots = Array.isArray(subplot) ? subplot : [subplot];\n\n var fullLayout = gd._fullLayout;\n var plots = fullLayout._plots || [];\n var plotinfo = plots[subplot];\n var hasCartesian = fullLayout._has('cartesian');\n\n // list of all overlaid subplots to look at\n if(plotinfo) {\n var overlayedSubplots = plotinfo.overlays.map(function(pi) {\n return pi.id;\n });\n\n subplots = subplots.concat(overlayedSubplots);\n }\n\n var len = subplots.length;\n var xaArray = new Array(len);\n var yaArray = new Array(len);\n var supportsCompare = false;\n\n for(var i = 0; i < len; i++) {\n var spId = subplots[i];\n\n if(plots[spId]) {\n // 'cartesian' case\n supportsCompare = true;\n xaArray[i] = plots[spId].xaxis;\n yaArray[i] = plots[spId].yaxis;\n } else if(fullLayout[spId] && fullLayout[spId]._subplot) {\n // other subplot types\n var _subplot = fullLayout[spId]._subplot;\n xaArray[i] = _subplot.xaxis;\n yaArray[i] = _subplot.yaxis;\n } else {\n Lib.warn('Unrecognized subplot: ' + spId);\n return;\n }\n }\n\n var hovermode = evt.hovermode || fullLayout.hovermode;\n\n if(hovermode && !supportsCompare) hovermode = 'closest';\n\n if(['x', 'y', 'closest', 'x unified', 'y unified'].indexOf(hovermode) === -1 || !gd.calcdata ||\n gd.querySelector('.zoombox') || gd._dragging) {\n return dragElement.unhoverRaw(gd, evt);\n }\n\n var hoverdistance = fullLayout.hoverdistance;\n if(hoverdistance === -1) hoverdistance = Infinity;\n\n var spikedistance = fullLayout.spikedistance;\n if(spikedistance === -1) spikedistance = Infinity;\n\n // hoverData: the set of candidate points we've found to highlight\n var hoverData = [];\n\n // searchData: the data to search in. Mostly this is just a copy of\n // gd.calcdata, filtered to the subplot and overlays we're on\n // but if a point array is supplied it will be a mapping\n // of indicated curves\n var searchData = [];\n\n // [x|y]valArray: the axis values of the hover event\n // mapped onto each of the currently selected overlaid subplots\n var xvalArray, yvalArray;\n\n var itemnum, curvenum, cd, trace, subplotId, subploti, _mode,\n xval, yval, pointData, closedataPreviousLength;\n\n // spikePoints: the set of candidate points we've found to draw spikes to\n var spikePoints = {\n hLinePoint: null,\n vLinePoint: null\n };\n\n // does subplot have one (or more) horizontal traces?\n // This is used to determine whether we rotate the labels or not\n var hasOneHorizontalTrace = false;\n\n // Figure out what we're hovering on:\n // mouse location or user-supplied data\n\n if(Array.isArray(evt)) {\n // user specified an array of points to highlight\n hovermode = 'array';\n for(itemnum = 0; itemnum < evt.length; itemnum++) {\n cd = gd.calcdata[evt[itemnum].curveNumber || 0];\n if(cd) {\n trace = cd[0].trace;\n if(cd[0].trace.hoverinfo !== 'skip') {\n searchData.push(cd);\n if(trace.orientation === 'h') {\n hasOneHorizontalTrace = true;\n }\n }\n }\n }\n } else {\n for(curvenum = 0; curvenum < gd.calcdata.length; curvenum++) {\n cd = gd.calcdata[curvenum];\n trace = cd[0].trace;\n if(trace.hoverinfo !== 'skip' && helpers.isTraceInSubplots(trace, subplots)) {\n searchData.push(cd);\n if(trace.orientation === 'h') {\n hasOneHorizontalTrace = true;\n }\n }\n }\n\n // [x|y]px: the pixels (from top left) of the mouse location\n // on the currently selected plot area\n // add pointerX|Y property for drawing the spikes in spikesnap 'cursor' situation\n var hasUserCalledHover = !evt.target;\n var xpx, ypx;\n\n if(hasUserCalledHover) {\n if('xpx' in evt) xpx = evt.xpx;\n else xpx = xaArray[0]._length / 2;\n\n if('ypx' in evt) ypx = evt.ypx;\n else ypx = yaArray[0]._length / 2;\n } else {\n // fire the beforehover event and quit if it returns false\n // note that we're only calling this on real mouse events, so\n // manual calls to fx.hover will always run.\n if(Events.triggerHandler(gd, 'plotly_beforehover', evt) === false) {\n return;\n }\n\n // Discover event target, traversing open shadow roots.\n var target = evt.composedPath && evt.composedPath()[0];\n if(!target) {\n // Fallback for browsers not supporting composedPath\n target = evt.target;\n }\n var dbb = target.getBoundingClientRect();\n\n xpx = evt.clientX - dbb.left;\n ypx = evt.clientY - dbb.top;\n\n fullLayout._calcInverseTransform(gd);\n var transformedCoords = Lib.apply3DTransform(fullLayout._invTransform)(xpx, ypx);\n\n xpx = transformedCoords[0];\n ypx = transformedCoords[1];\n\n // in case hover was called from mouseout into hovertext,\n // it's possible you're not actually over the plot anymore\n if(xpx < 0 || xpx > xaArray[0]._length || ypx < 0 || ypx > yaArray[0]._length) {\n return dragElement.unhoverRaw(gd, evt);\n }\n }\n\n evt.pointerX = xpx + xaArray[0]._offset;\n evt.pointerY = ypx + yaArray[0]._offset;\n\n if('xval' in evt) xvalArray = helpers.flat(subplots, evt.xval);\n else xvalArray = helpers.p2c(xaArray, xpx);\n\n if('yval' in evt) yvalArray = helpers.flat(subplots, evt.yval);\n else yvalArray = helpers.p2c(yaArray, ypx);\n\n if(!isNumeric(xvalArray[0]) || !isNumeric(yvalArray[0])) {\n Lib.warn('Fx.hover failed', evt, gd);\n return dragElement.unhoverRaw(gd, evt);\n }\n }\n\n // the pixel distance to beat as a matching point\n // in 'x' or 'y' mode this resets for each trace\n var distance = Infinity;\n\n // find the closest point in each trace\n // this is minimum dx and/or dy, depending on mode\n // and the pixel position for the label (labelXpx, labelYpx)\n function findHoverPoints(customXVal, customYVal) {\n for(curvenum = 0; curvenum < searchData.length; curvenum++) {\n cd = searchData[curvenum];\n\n // filter out invisible or broken data\n if(!cd || !cd[0] || !cd[0].trace) continue;\n\n trace = cd[0].trace;\n\n if(trace.visible !== true || trace._length === 0) continue;\n\n // Explicitly bail out for these two. I don't know how to otherwise prevent\n // the rest of this function from running and failing\n if(['carpet', 'contourcarpet'].indexOf(trace._module.name) !== -1) continue;\n\n if(trace.type === 'splom') {\n // splom traces do not generate overlay subplots,\n // it is safe to assume here splom traces correspond to the 0th subplot\n subploti = 0;\n subplotId = subplots[subploti];\n } else {\n subplotId = helpers.getSubplot(trace);\n subploti = subplots.indexOf(subplotId);\n }\n\n // within one trace mode can sometimes be overridden\n _mode = hovermode;\n if(helpers.isUnifiedHover(_mode)) {\n _mode = _mode.charAt(0);\n }\n\n // container for new point, also used to pass info into module.hoverPoints\n pointData = {\n // trace properties\n cd: cd,\n trace: trace,\n xa: xaArray[subploti],\n ya: yaArray[subploti],\n\n // max distances for hover and spikes - for points that want to show but do not\n // want to override other points, set distance/spikeDistance equal to max*Distance\n // and it will not get filtered out but it will be guaranteed to have a greater\n // distance than any point that calculated a real distance.\n maxHoverDistance: hoverdistance,\n maxSpikeDistance: spikedistance,\n\n // point properties - override all of these\n index: false, // point index in trace - only used by plotly.js hoverdata consumers\n distance: Math.min(distance, hoverdistance), // pixel distance or pseudo-distance\n\n // distance/pseudo-distance for spikes. This distance should always be calculated\n // as if in \"closest\" mode, and should only be set if this point should\n // generate a spike.\n spikeDistance: Infinity,\n\n // in some cases the spikes have different positioning from the hover label\n // they don't need x0/x1, just one position\n xSpike: undefined,\n ySpike: undefined,\n\n // where and how to display the hover label\n color: Color.defaultLine, // trace color\n name: trace.name,\n x0: undefined,\n x1: undefined,\n y0: undefined,\n y1: undefined,\n xLabelVal: undefined,\n yLabelVal: undefined,\n zLabelVal: undefined,\n text: undefined\n };\n\n // add ref to subplot object (non-cartesian case)\n if(fullLayout[subplotId]) {\n pointData.subplot = fullLayout[subplotId]._subplot;\n }\n // add ref to splom scene\n if(fullLayout._splomScenes && fullLayout._splomScenes[trace.uid]) {\n pointData.scene = fullLayout._splomScenes[trace.uid];\n }\n\n closedataPreviousLength = hoverData.length;\n\n // for a highlighting array, figure out what\n // we're searching for with this element\n if(_mode === 'array') {\n var selection = evt[curvenum];\n if('pointNumber' in selection) {\n pointData.index = selection.pointNumber;\n _mode = 'closest';\n } else {\n _mode = '';\n if('xval' in selection) {\n xval = selection.xval;\n _mode = 'x';\n }\n if('yval' in selection) {\n yval = selection.yval;\n _mode = _mode ? 'closest' : 'y';\n }\n }\n } else if(customXVal !== undefined && customYVal !== undefined) {\n xval = customXVal;\n yval = customYVal;\n } else {\n xval = xvalArray[subploti];\n yval = yvalArray[subploti];\n }\n\n // Now if there is range to look in, find the points to hover.\n if(hoverdistance !== 0) {\n if(trace._module && trace._module.hoverPoints) {\n var newPoints = trace._module.hoverPoints(pointData, xval, yval, _mode, {\n finiteRange: true,\n hoverLayer: fullLayout._hoverlayer\n });\n\n if(newPoints) {\n var newPoint;\n for(var newPointNum = 0; newPointNum < newPoints.length; newPointNum++) {\n newPoint = newPoints[newPointNum];\n if(isNumeric(newPoint.x0) && isNumeric(newPoint.y0)) {\n hoverData.push(cleanPoint(newPoint, hovermode));\n }\n }\n }\n } else {\n Lib.log('Unrecognized trace type in hover:', trace);\n }\n }\n\n // in closest mode, remove any existing (farther) points\n // and don't look any farther than this latest point (or points, some\n // traces like box & violin make multiple hover labels at once)\n if(hovermode === 'closest' && hoverData.length > closedataPreviousLength) {\n hoverData.splice(0, closedataPreviousLength);\n distance = hoverData[0].distance;\n }\n\n // Now if there is range to look in, find the points to draw the spikelines\n // Do it only if there is no hoverData\n if(hasCartesian && (spikedistance !== 0)) {\n if(hoverData.length === 0) {\n pointData.distance = spikedistance;\n pointData.index = false;\n var closestPoints = trace._module.hoverPoints(pointData, xval, yval, 'closest', {\n hoverLayer: fullLayout._hoverlayer\n });\n if(closestPoints) {\n closestPoints = closestPoints.filter(function(point) {\n // some hover points, like scatter fills, do not allow spikes,\n // so will generate a hover point but without a valid spikeDistance\n return point.spikeDistance <= spikedistance;\n });\n }\n if(closestPoints && closestPoints.length) {\n var tmpPoint;\n var closestVPoints = closestPoints.filter(function(point) {\n return point.xa.showspikes && point.xa.spikesnap !== 'hovered data';\n });\n if(closestVPoints.length) {\n var closestVPt = closestVPoints[0];\n if(isNumeric(closestVPt.x0) && isNumeric(closestVPt.y0)) {\n tmpPoint = fillSpikePoint(closestVPt);\n if(!spikePoints.vLinePoint || (spikePoints.vLinePoint.spikeDistance > tmpPoint.spikeDistance)) {\n spikePoints.vLinePoint = tmpPoint;\n }\n }\n }\n\n var closestHPoints = closestPoints.filter(function(point) {\n return point.ya.showspikes && point.ya.spikesnap !== 'hovered data';\n });\n if(closestHPoints.length) {\n var closestHPt = closestHPoints[0];\n if(isNumeric(closestHPt.x0) && isNumeric(closestHPt.y0)) {\n tmpPoint = fillSpikePoint(closestHPt);\n if(!spikePoints.hLinePoint || (spikePoints.hLinePoint.spikeDistance > tmpPoint.spikeDistance)) {\n spikePoints.hLinePoint = tmpPoint;\n }\n }\n }\n }\n }\n }\n }\n }\n\n findHoverPoints();\n\n function selectClosestPoint(pointsData, spikedistance, spikeOnWinning) {\n var resultPoint = null;\n var minDistance = Infinity;\n var thisSpikeDistance;\n\n for(var i = 0; i < pointsData.length; i++) {\n thisSpikeDistance = pointsData[i].spikeDistance;\n if(spikeOnWinning && i === 0) thisSpikeDistance = -Infinity;\n\n if(thisSpikeDistance <= minDistance && thisSpikeDistance <= spikedistance) {\n resultPoint = pointsData[i];\n minDistance = thisSpikeDistance;\n }\n }\n return resultPoint;\n }\n\n function fillSpikePoint(point) {\n if(!point) return null;\n return {\n xa: point.xa,\n ya: point.ya,\n x: point.xSpike !== undefined ? point.xSpike : (point.x0 + point.x1) / 2,\n y: point.ySpike !== undefined ? point.ySpike : (point.y0 + point.y1) / 2,\n distance: point.distance,\n spikeDistance: point.spikeDistance,\n curveNumber: point.trace.index,\n color: point.color,\n pointNumber: point.index\n };\n }\n\n var spikelineOpts = {\n fullLayout: fullLayout,\n container: fullLayout._hoverlayer,\n event: evt\n };\n var oldspikepoints = gd._spikepoints;\n var newspikepoints = {\n vLinePoint: spikePoints.vLinePoint,\n hLinePoint: spikePoints.hLinePoint\n };\n gd._spikepoints = newspikepoints;\n\n var sortHoverData = function() {\n hoverData.sort(function(d1, d2) { return d1.distance - d2.distance; });\n\n // move period positioned points and box/bar-like traces to the end of the list\n hoverData = orderRangePoints(hoverData, hovermode);\n };\n sortHoverData();\n\n var axLetter = hovermode.charAt(0);\n var spikeOnWinning = (axLetter === 'x' || axLetter === 'y') && hoverData[0] && cartesianScatterPoints[hoverData[0].trace.type];\n\n // Now if it is not restricted by spikedistance option, set the points to draw the spikelines\n if(hasCartesian && (spikedistance !== 0)) {\n if(hoverData.length !== 0) {\n var tmpHPointData = hoverData.filter(function(point) {\n return point.ya.showspikes;\n });\n var tmpHPoint = selectClosestPoint(tmpHPointData, spikedistance, spikeOnWinning);\n spikePoints.hLinePoint = fillSpikePoint(tmpHPoint);\n\n var tmpVPointData = hoverData.filter(function(point) {\n return point.xa.showspikes;\n });\n var tmpVPoint = selectClosestPoint(tmpVPointData, spikedistance, spikeOnWinning);\n spikePoints.vLinePoint = fillSpikePoint(tmpVPoint);\n }\n }\n\n // if hoverData is empty check for the spikes to draw and quit if there are none\n if(hoverData.length === 0) {\n var result = dragElement.unhoverRaw(gd, evt);\n if(hasCartesian && ((spikePoints.hLinePoint !== null) || (spikePoints.vLinePoint !== null))) {\n if(spikesChanged(oldspikepoints)) {\n createSpikelines(gd, spikePoints, spikelineOpts);\n }\n }\n return result;\n }\n\n if(hasCartesian) {\n if(spikesChanged(oldspikepoints)) {\n createSpikelines(gd, spikePoints, spikelineOpts);\n }\n }\n\n if(\n helpers.isXYhover(_mode) &&\n hoverData[0].length !== 0 &&\n hoverData[0].trace.type !== 'splom' // TODO: add support for splom\n ) {\n // pick winning point\n var winningPoint = hoverData[0];\n // discard other points\n if(multipleHoverPoints[winningPoint.trace.type]) {\n hoverData = hoverData.filter(function(d) {\n return d.trace.index === winningPoint.trace.index;\n });\n } else {\n hoverData = [winningPoint];\n }\n var initLen = hoverData.length;\n\n var winX = getCoord('x', winningPoint, fullLayout);\n var winY = getCoord('y', winningPoint, fullLayout);\n\n // in compare mode, select every point at position\n findHoverPoints(winX, winY);\n\n var finalPoints = [];\n var seen = {};\n var id = 0;\n var insert = function(newHd) {\n var key = multipleHoverPoints[newHd.trace.type] ? hoverDataKey(newHd) : newHd.trace.index;\n if(!seen[key]) {\n id++;\n seen[key] = id;\n finalPoints.push(newHd);\n } else {\n var oldId = seen[key] - 1;\n var oldHd = finalPoints[oldId];\n if(oldId > 0 &&\n Math.abs(newHd.distance) <\n Math.abs(oldHd.distance)\n ) {\n // replace with closest\n finalPoints[oldId] = newHd;\n }\n }\n };\n\n var k;\n // insert the winnig point(s) first\n for(k = 0; k < initLen; k++) {\n insert(hoverData[k]);\n }\n // override from the end\n for(k = hoverData.length - 1; k > initLen - 1; k--) {\n insert(hoverData[k]);\n }\n hoverData = finalPoints;\n sortHoverData();\n }\n\n // lastly, emit custom hover/unhover events\n var oldhoverdata = gd._hoverdata;\n var newhoverdata = [];\n\n var gTop = getTopOffset(gd);\n var gLeft = getLeftOffset(gd);\n\n // pull out just the data that's useful to\n // other people and send it to the event\n for(itemnum = 0; itemnum < hoverData.length; itemnum++) {\n var pt = hoverData[itemnum];\n var eventData = helpers.makeEventData(pt, pt.trace, pt.cd);\n\n if(pt.hovertemplate !== false) {\n var ht = false;\n if(pt.cd[pt.index] && pt.cd[pt.index].ht) {\n ht = pt.cd[pt.index].ht;\n }\n pt.hovertemplate = ht || pt.trace.hovertemplate || false;\n }\n\n if(pt.xa && pt.ya) {\n var _x0 = pt.x0 + pt.xa._offset;\n var _x1 = pt.x1 + pt.xa._offset;\n var _y0 = pt.y0 + pt.ya._offset;\n var _y1 = pt.y1 + pt.ya._offset;\n\n var x0 = Math.min(_x0, _x1);\n var x1 = Math.max(_x0, _x1);\n var y0 = Math.min(_y0, _y1);\n var y1 = Math.max(_y0, _y1);\n\n eventData.bbox = {\n x0: x0 + gLeft,\n x1: x1 + gLeft,\n y0: y0 + gTop,\n y1: y1 + gTop\n };\n }\n\n pt.eventData = [eventData];\n newhoverdata.push(eventData);\n }\n\n gd._hoverdata = newhoverdata;\n\n var rotateLabels = (\n (hovermode === 'y' && (searchData.length > 1 || hoverData.length > 1)) ||\n (hovermode === 'closest' && hasOneHorizontalTrace && hoverData.length > 1)\n );\n\n var bgColor = Color.combine(\n fullLayout.plot_bgcolor || Color.background,\n fullLayout.paper_bgcolor\n );\n\n var hoverLabels = createHoverText(hoverData, {\n gd: gd,\n hovermode: hovermode,\n rotateLabels: rotateLabels,\n bgColor: bgColor,\n container: fullLayout._hoverlayer,\n outerContainer: fullLayout._paper.node(),\n commonLabelOpts: fullLayout.hoverlabel,\n hoverdistance: fullLayout.hoverdistance\n });\n\n if(!helpers.isUnifiedHover(hovermode)) {\n hoverAvoidOverlaps(hoverLabels, rotateLabels ? 'xa' : 'ya', fullLayout);\n alignHoverText(hoverLabels, rotateLabels, fullLayout._invScaleX, fullLayout._invScaleY);\n } // TODO: tagName hack is needed to appease geo.js's hack of using evt.target=true\n // we should improve the \"fx\" API so other plots can use it without these hack.\n if(evt.target && evt.target.tagName) {\n var hasClickToShow = Registry.getComponentMethod('annotations', 'hasClickToShow')(gd, newhoverdata);\n overrideCursor(d3.select(evt.target), hasClickToShow ? 'pointer' : '');\n }\n\n // don't emit events if called manually\n if(!evt.target || noHoverEvent || !hoverChanged(gd, evt, oldhoverdata)) return;\n\n if(oldhoverdata) {\n gd.emit('plotly_unhover', {\n event: evt,\n points: oldhoverdata\n });\n }\n\n gd.emit('plotly_hover', {\n event: evt,\n points: gd._hoverdata,\n xaxes: xaArray,\n yaxes: yaArray,\n xvals: xvalArray,\n yvals: yvalArray\n });\n}\n\nfunction hoverDataKey(d) {\n return [d.trace.index, d.index, d.x0, d.y0, d.name, d.attr, d.xa ? d.xa._id : '', d.ya ? d.ya._id : ''].join(',');\n}\n\nvar EXTRA_STRING_REGEX = /([\\s\\S]*)<\\/extra>/;\n\nfunction createHoverText(hoverData, opts) {\n var gd = opts.gd;\n var fullLayout = gd._fullLayout;\n var hovermode = opts.hovermode;\n var rotateLabels = opts.rotateLabels;\n var bgColor = opts.bgColor;\n var container = opts.container;\n var outerContainer = opts.outerContainer;\n var commonLabelOpts = opts.commonLabelOpts || {};\n // Early exit if no labels are drawn\n if(hoverData.length === 0) return [[]];\n\n // opts.fontFamily/Size are used for the common label\n // and as defaults for each hover label, though the individual labels\n // can override this.\n var fontFamily = opts.fontFamily || constants.HOVERFONT;\n var fontSize = opts.fontSize || constants.HOVERFONTSIZE;\n\n var c0 = hoverData[0];\n var xa = c0.xa;\n var ya = c0.ya;\n var axLetter = hovermode.charAt(0);\n var t0 = c0[axLetter + 'Label'];\n var outerContainerBB = getBoundingClientRect(gd, outerContainer);\n var outerTop = outerContainerBB.top;\n var outerWidth = outerContainerBB.width;\n var outerHeight = outerContainerBB.height;\n\n // show the common label, if any, on the axis\n // never show a common label in array mode,\n // even if sometimes there could be one\n var showCommonLabel = (\n (t0 !== undefined) &&\n (c0.distance <= opts.hoverdistance) &&\n (hovermode === 'x' || hovermode === 'y')\n );\n\n // all hover traces hoverinfo must contain the hovermode\n // to have common labels\n if(showCommonLabel) {\n var allHaveZ = true;\n var i, traceHoverinfo;\n for(i = 0; i < hoverData.length; i++) {\n if(allHaveZ && hoverData[i].zLabel === undefined) allHaveZ = false;\n\n traceHoverinfo = hoverData[i].hoverinfo || hoverData[i].trace.hoverinfo;\n if(traceHoverinfo) {\n var parts = Array.isArray(traceHoverinfo) ? traceHoverinfo : traceHoverinfo.split('+');\n if(parts.indexOf('all') === -1 &&\n parts.indexOf(hovermode) === -1) {\n showCommonLabel = false;\n break;\n }\n }\n }\n\n // xyz labels put all info in their main label, so have no need of a common label\n if(allHaveZ) showCommonLabel = false;\n }\n\n var commonLabel = container.selectAll('g.axistext')\n .data(showCommonLabel ? [0] : []);\n commonLabel.enter().append('g')\n .classed('axistext', true);\n commonLabel.exit().remove();\n\n commonLabel.each(function() {\n var label = d3.select(this);\n var lpath = Lib.ensureSingle(label, 'path', '', function(s) {\n s.style({'stroke-width': '1px'});\n });\n var ltext = Lib.ensureSingle(label, 'text', '', function(s) {\n // prohibit tex interpretation until we can handle\n // tex and regular text together\n s.attr('data-notex', 1);\n });\n\n var commonBgColor = commonLabelOpts.bgcolor || Color.defaultLine;\n var commonStroke = commonLabelOpts.bordercolor || Color.contrast(commonBgColor);\n var contrastColor = Color.contrast(commonBgColor);\n var commonLabelFont = {\n family: commonLabelOpts.font.family || fontFamily,\n size: commonLabelOpts.font.size || fontSize,\n color: commonLabelOpts.font.color || contrastColor\n };\n\n lpath.style({\n fill: commonBgColor,\n stroke: commonStroke\n });\n\n ltext.text(t0)\n .call(Drawing.font, commonLabelFont)\n .call(svgTextUtils.positionText, 0, 0)\n .call(svgTextUtils.convertToTspans, gd);\n\n label.attr('transform', '');\n\n var tbb = getBoundingClientRect(gd, ltext.node());\n var lx, ly;\n\n if(hovermode === 'x') {\n var topsign = xa.side === 'top' ? '-' : '';\n\n ltext.attr('text-anchor', 'middle')\n .call(svgTextUtils.positionText, 0, (xa.side === 'top' ?\n (outerTop - tbb.bottom - HOVERARROWSIZE - HOVERTEXTPAD) :\n (outerTop - tbb.top + HOVERARROWSIZE + HOVERTEXTPAD)));\n\n lx = xa._offset + (c0.x0 + c0.x1) / 2;\n ly = ya._offset + (xa.side === 'top' ? 0 : ya._length);\n\n var halfWidth = tbb.width / 2 + HOVERTEXTPAD;\n\n if(lx < halfWidth) {\n lx = halfWidth;\n\n lpath.attr('d', 'M-' + (halfWidth - HOVERARROWSIZE) + ',0' +\n 'L-' + (halfWidth - HOVERARROWSIZE * 2) + ',' + topsign + HOVERARROWSIZE +\n 'H' + (HOVERTEXTPAD + tbb.width / 2) +\n 'v' + topsign + (HOVERTEXTPAD * 2 + tbb.height) +\n 'H-' + halfWidth +\n 'V' + topsign + HOVERARROWSIZE +\n 'Z');\n } else if(lx > (fullLayout.width - halfWidth)) {\n lx = fullLayout.width - halfWidth;\n\n lpath.attr('d', 'M' + (halfWidth - HOVERARROWSIZE) + ',0' +\n 'L' + halfWidth + ',' + topsign + HOVERARROWSIZE +\n 'v' + topsign + (HOVERTEXTPAD * 2 + tbb.height) +\n 'H-' + halfWidth +\n 'V' + topsign + HOVERARROWSIZE +\n 'H' + (halfWidth - HOVERARROWSIZE * 2) + 'Z');\n } else {\n lpath.attr('d', 'M0,0' +\n 'L' + HOVERARROWSIZE + ',' + topsign + HOVERARROWSIZE +\n 'H' + (HOVERTEXTPAD + tbb.width / 2) +\n 'v' + topsign + (HOVERTEXTPAD * 2 + tbb.height) +\n 'H-' + (HOVERTEXTPAD + tbb.width / 2) +\n 'V' + topsign + HOVERARROWSIZE +\n 'H-' + HOVERARROWSIZE + 'Z');\n }\n } else {\n var anchor;\n var sgn;\n var leftsign;\n if(ya.side === 'right') {\n anchor = 'start';\n sgn = 1;\n leftsign = '';\n lx = xa._offset + xa._length;\n } else {\n anchor = 'end';\n sgn = -1;\n leftsign = '-';\n lx = xa._offset;\n }\n\n ly = ya._offset + (c0.y0 + c0.y1) / 2;\n\n ltext.attr('text-anchor', anchor);\n\n lpath.attr('d', 'M0,0' +\n 'L' + leftsign + HOVERARROWSIZE + ',' + HOVERARROWSIZE +\n 'V' + (HOVERTEXTPAD + tbb.height / 2) +\n 'h' + leftsign + (HOVERTEXTPAD * 2 + tbb.width) +\n 'V-' + (HOVERTEXTPAD + tbb.height / 2) +\n 'H' + leftsign + HOVERARROWSIZE + 'V-' + HOVERARROWSIZE + 'Z');\n\n var halfHeight = tbb.height / 2;\n var lty = outerTop - tbb.top - halfHeight;\n var clipId = 'clip' + fullLayout._uid + 'commonlabel' + ya._id;\n var clipPath;\n\n if(lx < (tbb.width + 2 * HOVERTEXTPAD + HOVERARROWSIZE)) {\n clipPath = 'M-' + (HOVERARROWSIZE + HOVERTEXTPAD) + '-' + halfHeight +\n 'h-' + (tbb.width - HOVERTEXTPAD) +\n 'V' + halfHeight +\n 'h' + (tbb.width - HOVERTEXTPAD) + 'Z';\n\n var ltx = tbb.width - lx + HOVERTEXTPAD;\n svgTextUtils.positionText(ltext, ltx, lty);\n\n // shift each line (except the longest) so that start-of-line\n // is always visible\n if(anchor === 'end') {\n ltext.selectAll('tspan').each(function() {\n var s = d3.select(this);\n var dummy = Drawing.tester.append('text')\n .text(s.text())\n .call(Drawing.font, commonLabelFont);\n var dummyBB = getBoundingClientRect(gd, dummy.node());\n if(Math.round(dummyBB.width) < Math.round(tbb.width)) {\n s.attr('x', ltx - dummyBB.width);\n }\n dummy.remove();\n });\n }\n } else {\n svgTextUtils.positionText(ltext, sgn * (HOVERTEXTPAD + HOVERARROWSIZE), lty);\n clipPath = null;\n }\n\n var textClip = fullLayout._topclips.selectAll('#' + clipId).data(clipPath ? [0] : []);\n textClip.enter().append('clipPath').attr('id', clipId).append('path');\n textClip.exit().remove();\n textClip.select('path').attr('d', clipPath);\n Drawing.setClipUrl(ltext, clipPath ? clipId : null, gd);\n }\n\n label.attr('transform', strTranslate(lx, ly));\n });\n\n // Show a single hover label\n if(helpers.isUnifiedHover(hovermode)) {\n // Delete leftover hover labels from other hovermodes\n container.selectAll('g.hovertext').remove();\n var groupedHoverData = hoverData.filter(function(data) {return data.hoverinfo !== 'none';});\n // Return early if nothing is hovered on\n if(groupedHoverData.length === 0) return;\n\n // mock legend\n var hoverlabel = fullLayout.hoverlabel;\n var font = hoverlabel.font;\n var mockLayoutIn = {\n showlegend: true,\n legend: {\n title: {text: t0, font: font},\n font: font,\n bgcolor: hoverlabel.bgcolor,\n bordercolor: hoverlabel.bordercolor,\n borderwidth: 1,\n tracegroupgap: 7,\n traceorder: fullLayout.legend ? fullLayout.legend.traceorder : undefined,\n orientation: 'v'\n }\n };\n var mockLayoutOut = {};\n legendSupplyDefaults(mockLayoutIn, mockLayoutOut, gd._fullData);\n var mockLegend = mockLayoutOut.legend;\n\n // prepare items for the legend\n mockLegend.entries = [];\n for(var j = 0; j < groupedHoverData.length; j++) {\n var pt = groupedHoverData[j];\n if(pt.hoverinfo === 'none') continue;\n\n var texts = getHoverLabelText(pt, true, hovermode, fullLayout, t0);\n var text = texts[0];\n var name = texts[1];\n\n pt.name = name;\n if(name !== '') {\n pt.text = name + ' : ' + text;\n } else {\n pt.text = text;\n }\n\n // pass through marker's calcdata to style legend items\n var cd = pt.cd[pt.index];\n if(cd) {\n if(cd.mc) pt.mc = cd.mc;\n if(cd.mcc) pt.mc = cd.mcc;\n if(cd.mlc) pt.mlc = cd.mlc;\n if(cd.mlcc) pt.mlc = cd.mlcc;\n if(cd.mlw) pt.mlw = cd.mlw;\n if(cd.mrc) pt.mrc = cd.mrc;\n if(cd.dir) pt.dir = cd.dir;\n }\n pt._distinct = true;\n\n mockLegend.entries.push([pt]);\n }\n mockLegend.entries.sort(function(a, b) { return a[0].trace.index - b[0].trace.index;});\n mockLegend.layer = container;\n\n // Draw unified hover label\n mockLegend._inHover = true;\n mockLegend._groupTitleFont = font;\n legendDraw(gd, mockLegend);\n\n // Position the hover\n var legendContainer = container.select('g.legend');\n var tbb = getBoundingClientRect(gd, legendContainer.node());\n var tWidth = tbb.width + 2 * HOVERTEXTPAD;\n var tHeight = tbb.height + 2 * HOVERTEXTPAD;\n var winningPoint = groupedHoverData[0];\n var avgX = (winningPoint.x0 + winningPoint.x1) / 2;\n var avgY = (winningPoint.y0 + winningPoint.y1) / 2;\n // When a scatter (or e.g. heatmap) point wins, it's OK for the hovelabel to occlude the bar and other points.\n var pointWon = !(\n Registry.traceIs(winningPoint.trace, 'bar-like') ||\n Registry.traceIs(winningPoint.trace, 'box-violin')\n );\n\n var lyBottom, lyTop;\n if(axLetter === 'y') {\n if(pointWon) {\n lyTop = avgY - HOVERTEXTPAD;\n lyBottom = avgY + HOVERTEXTPAD;\n } else {\n lyTop = Math.min.apply(null, groupedHoverData.map(function(c) { return Math.min(c.y0, c.y1); }));\n lyBottom = Math.max.apply(null, groupedHoverData.map(function(c) { return Math.max(c.y0, c.y1); }));\n }\n } else {\n lyTop = lyBottom = Lib.mean(groupedHoverData.map(function(c) { return (c.y0 + c.y1) / 2; })) - tHeight / 2;\n }\n\n var lxRight, lxLeft;\n if(axLetter === 'x') {\n if(pointWon) {\n lxRight = avgX + HOVERTEXTPAD;\n lxLeft = avgX - HOVERTEXTPAD;\n } else {\n lxRight = Math.max.apply(null, groupedHoverData.map(function(c) { return Math.max(c.x0, c.x1); }));\n lxLeft = Math.min.apply(null, groupedHoverData.map(function(c) { return Math.min(c.x0, c.x1); }));\n }\n } else {\n lxRight = lxLeft = Lib.mean(groupedHoverData.map(function(c) { return (c.x0 + c.x1) / 2; })) - tWidth / 2;\n }\n\n var xOffset = xa._offset;\n var yOffset = ya._offset;\n lyBottom += yOffset;\n lxRight += xOffset;\n lxLeft += xOffset - tWidth;\n lyTop += yOffset - tHeight;\n\n var lx, ly; // top and left positions of the hover box\n\n // horizontal alignment to end up on screen\n if(lxRight + tWidth < outerWidth && lxRight >= 0) {\n lx = lxRight;\n } else if(lxLeft + tWidth < outerWidth && lxLeft >= 0) {\n lx = lxLeft;\n } else if(xOffset + tWidth < outerWidth) {\n lx = xOffset; // subplot left corner\n } else {\n // closest left or right side of the paper\n if(lxRight - avgX < avgX - lxLeft + tWidth) {\n lx = outerWidth - tWidth;\n } else {\n lx = 0;\n }\n }\n lx += HOVERTEXTPAD;\n\n // vertical alignement to end up on screen\n if(lyBottom + tHeight < outerHeight && lyBottom >= 0) {\n ly = lyBottom;\n } else if(lyTop + tHeight < outerHeight && lyTop >= 0) {\n ly = lyTop;\n } else if(yOffset + tHeight < outerHeight) {\n ly = yOffset; // subplot top corner\n } else {\n // closest top or bottom side of the paper\n if(lyBottom - avgY < avgY - lyTop + tHeight) {\n ly = outerHeight - tHeight;\n } else {\n ly = 0;\n }\n }\n ly += HOVERTEXTPAD;\n\n legendContainer.attr('transform', strTranslate(lx - 1, ly - 1));\n return legendContainer;\n }\n\n // show all the individual labels\n\n // first create the objects\n var hoverLabels = container.selectAll('g.hovertext')\n .data(hoverData, function(d) {\n // N.B. when multiple items have the same result key-function value,\n // only the first of those items in hoverData gets rendered\n return hoverDataKey(d);\n });\n hoverLabels.enter().append('g')\n .classed('hovertext', true)\n .each(function() {\n var g = d3.select(this);\n // trace name label (rect and text.name)\n g.append('rect')\n .call(Color.fill, Color.addOpacity(bgColor, 0.8));\n g.append('text').classed('name', true);\n // trace data label (path and text.nums)\n g.append('path')\n .style('stroke-width', '1px');\n g.append('text').classed('nums', true)\n .call(Drawing.font, fontFamily, fontSize);\n });\n hoverLabels.exit().remove();\n\n // then put the text in, position the pointer to the data,\n // and figure out sizes\n hoverLabels.each(function(d) {\n var g = d3.select(this).attr('transform', '');\n\n var dColor = d.color;\n if(Array.isArray(dColor)) {\n dColor = dColor[d.eventData[0].pointNumber];\n }\n\n // combine possible non-opaque trace color with bgColor\n var color0 = d.bgcolor || dColor;\n // color for 'nums' part of the label\n var numsColor = Color.combine(\n Color.opacity(color0) ? color0 : Color.defaultLine,\n bgColor\n );\n // color for 'name' part of the label\n var nameColor = Color.combine(\n Color.opacity(dColor) ? dColor : Color.defaultLine,\n bgColor\n );\n // find a contrasting color for border and text\n var contrastColor = d.borderColor || Color.contrast(numsColor);\n\n var texts = getHoverLabelText(d, showCommonLabel, hovermode, fullLayout, t0, g);\n var text = texts[0];\n var name = texts[1];\n\n // main label\n var tx = g.select('text.nums')\n .call(Drawing.font,\n d.fontFamily || fontFamily,\n d.fontSize || fontSize,\n d.fontColor || contrastColor)\n .text(text)\n .attr('data-notex', 1)\n .call(svgTextUtils.positionText, 0, 0)\n .call(svgTextUtils.convertToTspans, gd);\n\n var tx2 = g.select('text.name');\n var tx2width = 0;\n var tx2height = 0;\n\n // secondary label for non-empty 'name'\n if(name && name !== text) {\n tx2.call(Drawing.font,\n d.fontFamily || fontFamily,\n d.fontSize || fontSize,\n nameColor)\n .text(name)\n .attr('data-notex', 1)\n .call(svgTextUtils.positionText, 0, 0)\n .call(svgTextUtils.convertToTspans, gd);\n\n var t2bb = getBoundingClientRect(gd, tx2.node());\n tx2width = t2bb.width + 2 * HOVERTEXTPAD;\n tx2height = t2bb.height + 2 * HOVERTEXTPAD;\n } else {\n tx2.remove();\n g.select('rect').remove();\n }\n\n g.select('path').style({\n fill: numsColor,\n stroke: contrastColor\n });\n\n var htx = d.xa._offset + (d.x0 + d.x1) / 2;\n var hty = d.ya._offset + (d.y0 + d.y1) / 2;\n var dx = Math.abs(d.x1 - d.x0);\n var dy = Math.abs(d.y1 - d.y0);\n\n var tbb = getBoundingClientRect(gd, tx.node());\n var tbbWidth = tbb.width / fullLayout._invScaleX;\n var tbbHeight = tbb.height / fullLayout._invScaleY;\n\n d.ty0 = (outerTop - tbb.top) / fullLayout._invScaleY;\n d.bx = tbbWidth + 2 * HOVERTEXTPAD;\n d.by = Math.max(tbbHeight + 2 * HOVERTEXTPAD, tx2height);\n d.anchor = 'start';\n d.txwidth = tbbWidth;\n d.tx2width = tx2width;\n d.offset = 0;\n\n var txTotalWidth = (tbbWidth + HOVERARROWSIZE + HOVERTEXTPAD + tx2width) * fullLayout._invScaleX;\n var anchorStartOK, anchorEndOK;\n\n if(rotateLabels) {\n d.pos = htx;\n anchorStartOK = hty + dy / 2 + txTotalWidth <= outerHeight;\n anchorEndOK = hty - dy / 2 - txTotalWidth >= 0;\n if((d.idealAlign === 'top' || !anchorStartOK) && anchorEndOK) {\n hty -= dy / 2;\n d.anchor = 'end';\n } else if(anchorStartOK) {\n hty += dy / 2;\n d.anchor = 'start';\n } else d.anchor = 'middle';\n } else {\n d.pos = hty;\n anchorStartOK = htx + dx / 2 + txTotalWidth <= outerWidth;\n anchorEndOK = htx - dx / 2 - txTotalWidth >= 0;\n\n if((d.idealAlign === 'left' || !anchorStartOK) && anchorEndOK) {\n htx -= dx / 2;\n d.anchor = 'end';\n } else if(anchorStartOK) {\n htx += dx / 2;\n d.anchor = 'start';\n } else {\n d.anchor = 'middle';\n\n var txHalfWidth = txTotalWidth / 2;\n var overflowR = htx + txHalfWidth - outerWidth;\n var overflowL = htx - txHalfWidth;\n if(overflowR > 0) htx -= overflowR;\n if(overflowL < 0) htx += -overflowL;\n }\n }\n\n tx.attr('text-anchor', d.anchor);\n if(tx2width) tx2.attr('text-anchor', d.anchor);\n g.attr('transform', strTranslate(htx, hty) +\n (rotateLabels ? strRotate(YANGLE) : ''));\n });\n\n return hoverLabels;\n}\n\nfunction getHoverLabelText(d, showCommonLabel, hovermode, fullLayout, t0, g) {\n var name = '';\n var text = '';\n // to get custom 'name' labels pass cleanPoint\n if(d.nameOverride !== undefined) d.name = d.nameOverride;\n\n if(d.name) {\n if(d.trace._meta) {\n d.name = Lib.templateString(d.name, d.trace._meta);\n }\n name = plainText(d.name, d.nameLength);\n }\n\n var h0 = hovermode.charAt(0);\n var h1 = h0 === 'x' ? 'y' : 'x';\n\n if(d.zLabel !== undefined) {\n if(d.xLabel !== undefined) text += 'x: ' + d.xLabel + '
';\n if(d.yLabel !== undefined) text += 'y: ' + d.yLabel + '
';\n if(d.trace.type !== 'choropleth' && d.trace.type !== 'choroplethmapbox') {\n text += (text ? 'z: ' : '') + d.zLabel;\n }\n } else if(showCommonLabel && d[h0 + 'Label'] === t0) {\n text = d[h1 + 'Label'] || '';\n } else if(d.xLabel === undefined) {\n if(d.yLabel !== undefined && d.trace.type !== 'scattercarpet') {\n text = d.yLabel;\n }\n } else if(d.yLabel === undefined) text = d.xLabel;\n else text = '(' + d.xLabel + ', ' + d.yLabel + ')';\n\n if((d.text || d.text === 0) && !Array.isArray(d.text)) {\n text += (text ? '
' : '') + d.text;\n }\n\n // used by other modules (initially just ternary) that\n // manage their own hoverinfo independent of cleanPoint\n // the rest of this will still apply, so such modules\n // can still put things in (x|y|z)Label, text, and name\n // and hoverinfo will still determine their visibility\n if(d.extraText !== undefined) text += (text ? '
' : '') + d.extraText;\n\n // if 'text' is empty at this point,\n // and hovertemplate is not defined,\n // put 'name' in main label and don't show secondary label\n if(g && text === '' && !d.hovertemplate) {\n // if 'name' is also empty, remove entire label\n if(name === '') g.remove();\n text = name;\n }\n\n // hovertemplate\n var hovertemplate = d.hovertemplate || false;\n if(hovertemplate) {\n var labels = d.hovertemplateLabels || d;\n\n if(d[h0 + 'Label'] !== t0) {\n labels[h0 + 'other'] = labels[h0 + 'Val'];\n labels[h0 + 'otherLabel'] = labels[h0 + 'Label'];\n }\n\n text = Lib.hovertemplateString(\n hovertemplate,\n labels,\n fullLayout._d3locale,\n d.eventData[0] || {},\n d.trace._meta\n );\n\n text = text.replace(EXTRA_STRING_REGEX, function(match, extra) {\n // assign name for secondary text label\n name = plainText(extra, d.nameLength);\n // remove from main text label\n return '';\n });\n }\n return [text, name];\n}\n\n// Make groups of touching points, and within each group\n// move each point so that no labels overlap, but the average\n// label position is the same as it was before moving. Incidentally,\n// this is equivalent to saying all the labels are on equal linear\n// springs about their initial position. Initially, each point is\n// its own group, but as we find overlaps we will clump the points.\n//\n// Also, there are hard constraints at the edges of the graphs,\n// that push all groups to the middle so they are visible. I don't\n// know what happens if the group spans all the way from one edge to\n// the other, though it hardly matters - there's just too much\n// information then.\nfunction hoverAvoidOverlaps(hoverLabels, axKey, fullLayout) {\n var nummoves = 0;\n var axSign = 1;\n var nLabels = hoverLabels.size();\n\n // make groups of touching points\n var pointgroups = new Array(nLabels);\n var k = 0;\n\n hoverLabels.each(function(d) {\n var ax = d[axKey];\n var axIsX = ax._id.charAt(0) === 'x';\n var rng = ax.range;\n\n if(k === 0 && rng && ((rng[0] > rng[1]) !== axIsX)) {\n axSign = -1;\n }\n pointgroups[k++] = [{\n datum: d,\n traceIndex: d.trace.index,\n dp: 0,\n pos: d.pos,\n posref: d.posref,\n size: d.by * (axIsX ? YFACTOR : 1) / 2,\n pmin: 0,\n pmax: (axIsX ? fullLayout.width : fullLayout.height)\n }];\n });\n\n pointgroups.sort(function(a, b) {\n return (a[0].posref - b[0].posref) ||\n // for equal positions, sort trace indices increasing or decreasing\n // depending on whether the axis is reversed or not... so stacked\n // traces will generally keep their order even if one trace adds\n // nothing to the stack.\n (axSign * (b[0].traceIndex - a[0].traceIndex));\n });\n\n var donepositioning, topOverlap, bottomOverlap, i, j, pti, sumdp;\n\n function constrainGroup(grp) {\n var minPt = grp[0];\n var maxPt = grp[grp.length - 1];\n\n // overlap with the top - positive vals are overlaps\n topOverlap = minPt.pmin - minPt.pos - minPt.dp + minPt.size;\n\n // overlap with the bottom - positive vals are overlaps\n bottomOverlap = maxPt.pos + maxPt.dp + maxPt.size - minPt.pmax;\n\n // check for min overlap first, so that we always\n // see the largest labels\n // allow for .01px overlap, so we don't get an\n // infinite loop from rounding errors\n if(topOverlap > 0.01) {\n for(j = grp.length - 1; j >= 0; j--) grp[j].dp += topOverlap;\n donepositioning = false;\n }\n if(bottomOverlap < 0.01) return;\n if(topOverlap < -0.01) {\n // make sure we're not pushing back and forth\n for(j = grp.length - 1; j >= 0; j--) grp[j].dp -= bottomOverlap;\n donepositioning = false;\n }\n if(!donepositioning) return;\n\n // no room to fix positioning, delete off-screen points\n\n // first see how many points we need to delete\n var deleteCount = 0;\n for(i = 0; i < grp.length; i++) {\n pti = grp[i];\n if(pti.pos + pti.dp + pti.size > minPt.pmax) deleteCount++;\n }\n\n // start by deleting points whose data is off screen\n for(i = grp.length - 1; i >= 0; i--) {\n if(deleteCount <= 0) break;\n pti = grp[i];\n\n // pos has already been constrained to [pmin,pmax]\n // so look for points close to that to delete\n if(pti.pos > minPt.pmax - 1) {\n pti.del = true;\n deleteCount--;\n }\n }\n for(i = 0; i < grp.length; i++) {\n if(deleteCount <= 0) break;\n pti = grp[i];\n\n // pos has already been constrained to [pmin,pmax]\n // so look for points close to that to delete\n if(pti.pos < minPt.pmin + 1) {\n pti.del = true;\n deleteCount--;\n\n // shift the whole group minus into this new space\n bottomOverlap = pti.size * 2;\n for(j = grp.length - 1; j >= 0; j--) grp[j].dp -= bottomOverlap;\n }\n }\n // then delete points that go off the bottom\n for(i = grp.length - 1; i >= 0; i--) {\n if(deleteCount <= 0) break;\n pti = grp[i];\n if(pti.pos + pti.dp + pti.size > minPt.pmax) {\n pti.del = true;\n deleteCount--;\n }\n }\n }\n\n // loop through groups, combining them if they overlap,\n // until nothing moves\n while(!donepositioning && nummoves <= nLabels) {\n // to avoid infinite loops, don't move more times\n // than there are traces\n nummoves++;\n\n // assume nothing will move in this iteration,\n // reverse this if it does\n donepositioning = true;\n i = 0;\n while(i < pointgroups.length - 1) {\n // the higher (g0) and lower (g1) point group\n var g0 = pointgroups[i];\n var g1 = pointgroups[i + 1];\n\n // the lowest point in the higher group (p0)\n // the highest point in the lower group (p1)\n var p0 = g0[g0.length - 1];\n var p1 = g1[0];\n topOverlap = p0.pos + p0.dp + p0.size - p1.pos - p1.dp + p1.size;\n\n // Only group points that lie on the same axes\n if(topOverlap > 0.01 && (p0.pmin === p1.pmin) && (p0.pmax === p1.pmax)) {\n // push the new point(s) added to this group out of the way\n for(j = g1.length - 1; j >= 0; j--) g1[j].dp += topOverlap;\n\n // add them to the group\n g0.push.apply(g0, g1);\n pointgroups.splice(i + 1, 1);\n\n // adjust for minimum average movement\n sumdp = 0;\n for(j = g0.length - 1; j >= 0; j--) sumdp += g0[j].dp;\n bottomOverlap = sumdp / g0.length;\n for(j = g0.length - 1; j >= 0; j--) g0[j].dp -= bottomOverlap;\n donepositioning = false;\n } else i++;\n }\n\n // check if we're going off the plot on either side and fix\n pointgroups.forEach(constrainGroup);\n }\n\n // now put these offsets into hoverData\n for(i = pointgroups.length - 1; i >= 0; i--) {\n var grp = pointgroups[i];\n for(j = grp.length - 1; j >= 0; j--) {\n var pt = grp[j];\n var hoverPt = pt.datum;\n hoverPt.offset = pt.dp;\n hoverPt.del = pt.del;\n }\n }\n}\n\nfunction alignHoverText(hoverLabels, rotateLabels, scaleX, scaleY) {\n var pX = function(x) { return x * scaleX; };\n var pY = function(y) { return y * scaleY; };\n\n // finally set the text positioning relative to the data and draw the\n // box around it\n hoverLabels.each(function(d) {\n var g = d3.select(this);\n if(d.del) return g.remove();\n\n var tx = g.select('text.nums');\n var anchor = d.anchor;\n var horzSign = anchor === 'end' ? -1 : 1;\n var alignShift = {start: 1, end: -1, middle: 0}[anchor];\n var txx = alignShift * (HOVERARROWSIZE + HOVERTEXTPAD);\n var tx2x = txx + alignShift * (d.txwidth + HOVERTEXTPAD);\n var offsetX = 0;\n var offsetY = d.offset;\n\n var isMiddle = anchor === 'middle';\n if(isMiddle) {\n txx -= d.tx2width / 2;\n tx2x += d.txwidth / 2 + HOVERTEXTPAD;\n }\n if(rotateLabels) {\n offsetY *= -YSHIFTY;\n offsetX = d.offset * YSHIFTX;\n }\n\n g.select('path')\n .attr('d', isMiddle ?\n // middle aligned: rect centered on data\n ('M-' + pX(d.bx / 2 + d.tx2width / 2) + ',' + pY(offsetY - d.by / 2) +\n 'h' + pX(d.bx) + 'v' + pY(d.by) + 'h-' + pX(d.bx) + 'Z') :\n // left or right aligned: side rect with arrow to data\n ('M0,0L' + pX(horzSign * HOVERARROWSIZE + offsetX) + ',' + pY(HOVERARROWSIZE + offsetY) +\n 'v' + pY(d.by / 2 - HOVERARROWSIZE) +\n 'h' + pX(horzSign * d.bx) +\n 'v-' + pY(d.by) +\n 'H' + pX(horzSign * HOVERARROWSIZE + offsetX) +\n 'V' + pY(offsetY - HOVERARROWSIZE) +\n 'Z'));\n\n var posX = offsetX + txx;\n var posY = offsetY + d.ty0 - d.by / 2 + HOVERTEXTPAD;\n var textAlign = d.textAlign || 'auto';\n\n if(textAlign !== 'auto') {\n if(textAlign === 'left' && anchor !== 'start') {\n tx.attr('text-anchor', 'start');\n posX = isMiddle ?\n -d.bx / 2 - d.tx2width / 2 + HOVERTEXTPAD :\n -d.bx - HOVERTEXTPAD;\n } else if(textAlign === 'right' && anchor !== 'end') {\n tx.attr('text-anchor', 'end');\n posX = isMiddle ?\n d.bx / 2 - d.tx2width / 2 - HOVERTEXTPAD :\n d.bx + HOVERTEXTPAD;\n }\n }\n\n tx.call(svgTextUtils.positionText, pX(posX), pY(posY));\n\n if(d.tx2width) {\n g.select('text.name')\n .call(svgTextUtils.positionText,\n pX(tx2x + alignShift * HOVERTEXTPAD + offsetX),\n pY(offsetY + d.ty0 - d.by / 2 + HOVERTEXTPAD));\n g.select('rect')\n .call(Drawing.setRect,\n pX(tx2x + (alignShift - 1) * d.tx2width / 2 + offsetX),\n pY(offsetY - d.by / 2 - 1),\n pX(d.tx2width), pY(d.by + 2));\n }\n });\n}\n\nfunction cleanPoint(d, hovermode) {\n var index = d.index;\n var trace = d.trace || {};\n var cd0 = d.cd[0];\n var cd = d.cd[index] || {};\n\n function pass(v) {\n return v || (isNumeric(v) && v === 0);\n }\n\n var getVal = Array.isArray(index) ?\n function(calcKey, traceKey) {\n var v = Lib.castOption(cd0, index, calcKey);\n return pass(v) ? v : Lib.extractOption({}, trace, '', traceKey);\n } :\n function(calcKey, traceKey) {\n return Lib.extractOption(cd, trace, calcKey, traceKey);\n };\n\n function fill(key, calcKey, traceKey) {\n var val = getVal(calcKey, traceKey);\n if(pass(val)) d[key] = val;\n }\n\n fill('hoverinfo', 'hi', 'hoverinfo');\n fill('bgcolor', 'hbg', 'hoverlabel.bgcolor');\n fill('borderColor', 'hbc', 'hoverlabel.bordercolor');\n fill('fontFamily', 'htf', 'hoverlabel.font.family');\n fill('fontSize', 'hts', 'hoverlabel.font.size');\n fill('fontColor', 'htc', 'hoverlabel.font.color');\n fill('nameLength', 'hnl', 'hoverlabel.namelength');\n fill('textAlign', 'hta', 'hoverlabel.align');\n\n d.posref = (hovermode === 'y' || (hovermode === 'closest' && trace.orientation === 'h')) ?\n (d.xa._offset + (d.x0 + d.x1) / 2) :\n (d.ya._offset + (d.y0 + d.y1) / 2);\n\n // then constrain all the positions to be on the plot\n d.x0 = Lib.constrain(d.x0, 0, d.xa._length);\n d.x1 = Lib.constrain(d.x1, 0, d.xa._length);\n d.y0 = Lib.constrain(d.y0, 0, d.ya._length);\n d.y1 = Lib.constrain(d.y1, 0, d.ya._length);\n\n // and convert the x and y label values into formatted text\n if(d.xLabelVal !== undefined) {\n d.xLabel = ('xLabel' in d) ? d.xLabel : Axes.hoverLabelText(d.xa, d.xLabelVal, trace.xhoverformat);\n d.xVal = d.xa.c2d(d.xLabelVal);\n }\n if(d.yLabelVal !== undefined) {\n d.yLabel = ('yLabel' in d) ? d.yLabel : Axes.hoverLabelText(d.ya, d.yLabelVal, trace.yhoverformat);\n d.yVal = d.ya.c2d(d.yLabelVal);\n }\n\n // Traces like heatmaps generate the zLabel in their hoverPoints function\n if(d.zLabelVal !== undefined && d.zLabel === undefined) {\n d.zLabel = String(d.zLabelVal);\n }\n\n // for box means and error bars, add the range to the label\n if(!isNaN(d.xerr) && !(d.xa.type === 'log' && d.xerr <= 0)) {\n var xeText = Axes.tickText(d.xa, d.xa.c2l(d.xerr), 'hover').text;\n if(d.xerrneg !== undefined) {\n d.xLabel += ' +' + xeText + ' / -' +\n Axes.tickText(d.xa, d.xa.c2l(d.xerrneg), 'hover').text;\n } else d.xLabel += ' ± ' + xeText;\n\n // small distance penalty for error bars, so that if there are\n // traces with errors and some without, the error bar label will\n // hoist up to the point\n if(hovermode === 'x') d.distance += 1;\n }\n if(!isNaN(d.yerr) && !(d.ya.type === 'log' && d.yerr <= 0)) {\n var yeText = Axes.tickText(d.ya, d.ya.c2l(d.yerr), 'hover').text;\n if(d.yerrneg !== undefined) {\n d.yLabel += ' +' + yeText + ' / -' +\n Axes.tickText(d.ya, d.ya.c2l(d.yerrneg), 'hover').text;\n } else d.yLabel += ' ± ' + yeText;\n\n if(hovermode === 'y') d.distance += 1;\n }\n\n var infomode = d.hoverinfo || d.trace.hoverinfo;\n\n if(infomode && infomode !== 'all') {\n infomode = Array.isArray(infomode) ? infomode : infomode.split('+');\n if(infomode.indexOf('x') === -1) d.xLabel = undefined;\n if(infomode.indexOf('y') === -1) d.yLabel = undefined;\n if(infomode.indexOf('z') === -1) d.zLabel = undefined;\n if(infomode.indexOf('text') === -1) d.text = undefined;\n if(infomode.indexOf('name') === -1) d.name = undefined;\n }\n\n return d;\n}\n\nfunction createSpikelines(gd, closestPoints, opts) {\n var container = opts.container;\n var fullLayout = opts.fullLayout;\n var gs = fullLayout._size;\n var evt = opts.event;\n var showY = !!closestPoints.hLinePoint;\n var showX = !!closestPoints.vLinePoint;\n\n var xa, ya;\n\n // Remove old spikeline items\n container.selectAll('.spikeline').remove();\n\n if(!(showX || showY)) return;\n\n var contrastColor = Color.combine(fullLayout.plot_bgcolor, fullLayout.paper_bgcolor);\n\n // Horizontal line (to y-axis)\n if(showY) {\n var hLinePoint = closestPoints.hLinePoint;\n var hLinePointX, hLinePointY;\n\n xa = hLinePoint && hLinePoint.xa;\n ya = hLinePoint && hLinePoint.ya;\n var ySnap = ya.spikesnap;\n\n if(ySnap === 'cursor') {\n hLinePointX = evt.pointerX;\n hLinePointY = evt.pointerY;\n } else {\n hLinePointX = xa._offset + hLinePoint.x;\n hLinePointY = ya._offset + hLinePoint.y;\n }\n var dfltHLineColor = tinycolor.readability(hLinePoint.color, contrastColor) < 1.5 ?\n Color.contrast(contrastColor) : hLinePoint.color;\n var yMode = ya.spikemode;\n var yThickness = ya.spikethickness;\n var yColor = ya.spikecolor || dfltHLineColor;\n var xEdge = Axes.getPxPosition(gd, ya);\n var xBase, xEndSpike;\n\n if(yMode.indexOf('toaxis') !== -1 || yMode.indexOf('across') !== -1) {\n if(yMode.indexOf('toaxis') !== -1) {\n xBase = xEdge;\n xEndSpike = hLinePointX;\n }\n if(yMode.indexOf('across') !== -1) {\n var xAcross0 = ya._counterDomainMin;\n var xAcross1 = ya._counterDomainMax;\n if(ya.anchor === 'free') {\n xAcross0 = Math.min(xAcross0, ya.position);\n xAcross1 = Math.max(xAcross1, ya.position);\n }\n xBase = gs.l + xAcross0 * gs.w;\n xEndSpike = gs.l + xAcross1 * gs.w;\n }\n\n // Foreground horizontal line (to y-axis)\n container.insert('line', ':first-child')\n .attr({\n x1: xBase,\n x2: xEndSpike,\n y1: hLinePointY,\n y2: hLinePointY,\n 'stroke-width': yThickness,\n stroke: yColor,\n 'stroke-dasharray': Drawing.dashStyle(ya.spikedash, yThickness)\n })\n .classed('spikeline', true)\n .classed('crisp', true);\n\n // Background horizontal Line (to y-axis)\n container.insert('line', ':first-child')\n .attr({\n x1: xBase,\n x2: xEndSpike,\n y1: hLinePointY,\n y2: hLinePointY,\n 'stroke-width': yThickness + 2,\n stroke: contrastColor\n })\n .classed('spikeline', true)\n .classed('crisp', true);\n }\n // Y axis marker\n if(yMode.indexOf('marker') !== -1) {\n container.insert('circle', ':first-child')\n .attr({\n cx: xEdge + (ya.side !== 'right' ? yThickness : -yThickness),\n cy: hLinePointY,\n r: yThickness,\n fill: yColor\n })\n .classed('spikeline', true);\n }\n }\n\n if(showX) {\n var vLinePoint = closestPoints.vLinePoint;\n var vLinePointX, vLinePointY;\n\n xa = vLinePoint && vLinePoint.xa;\n ya = vLinePoint && vLinePoint.ya;\n var xSnap = xa.spikesnap;\n\n if(xSnap === 'cursor') {\n vLinePointX = evt.pointerX;\n vLinePointY = evt.pointerY;\n } else {\n vLinePointX = xa._offset + vLinePoint.x;\n vLinePointY = ya._offset + vLinePoint.y;\n }\n var dfltVLineColor = tinycolor.readability(vLinePoint.color, contrastColor) < 1.5 ?\n Color.contrast(contrastColor) : vLinePoint.color;\n var xMode = xa.spikemode;\n var xThickness = xa.spikethickness;\n var xColor = xa.spikecolor || dfltVLineColor;\n var yEdge = Axes.getPxPosition(gd, xa);\n var yBase, yEndSpike;\n\n if(xMode.indexOf('toaxis') !== -1 || xMode.indexOf('across') !== -1) {\n if(xMode.indexOf('toaxis') !== -1) {\n yBase = yEdge;\n yEndSpike = vLinePointY;\n }\n if(xMode.indexOf('across') !== -1) {\n var yAcross0 = xa._counterDomainMin;\n var yAcross1 = xa._counterDomainMax;\n if(xa.anchor === 'free') {\n yAcross0 = Math.min(yAcross0, xa.position);\n yAcross1 = Math.max(yAcross1, xa.position);\n }\n yBase = gs.t + (1 - yAcross1) * gs.h;\n yEndSpike = gs.t + (1 - yAcross0) * gs.h;\n }\n\n // Foreground vertical line (to x-axis)\n container.insert('line', ':first-child')\n .attr({\n x1: vLinePointX,\n x2: vLinePointX,\n y1: yBase,\n y2: yEndSpike,\n 'stroke-width': xThickness,\n stroke: xColor,\n 'stroke-dasharray': Drawing.dashStyle(xa.spikedash, xThickness)\n })\n .classed('spikeline', true)\n .classed('crisp', true);\n\n // Background vertical line (to x-axis)\n container.insert('line', ':first-child')\n .attr({\n x1: vLinePointX,\n x2: vLinePointX,\n y1: yBase,\n y2: yEndSpike,\n 'stroke-width': xThickness + 2,\n stroke: contrastColor\n })\n .classed('spikeline', true)\n .classed('crisp', true);\n }\n\n // X axis marker\n if(xMode.indexOf('marker') !== -1) {\n container.insert('circle', ':first-child')\n .attr({\n cx: vLinePointX,\n cy: yEdge - (xa.side !== 'top' ? xThickness : -xThickness),\n r: xThickness,\n fill: xColor\n })\n .classed('spikeline', true);\n }\n }\n}\n\nfunction hoverChanged(gd, evt, oldhoverdata) {\n // don't emit any events if nothing changed\n if(!oldhoverdata || oldhoverdata.length !== gd._hoverdata.length) return true;\n\n for(var i = oldhoverdata.length - 1; i >= 0; i--) {\n var oldPt = oldhoverdata[i];\n var newPt = gd._hoverdata[i];\n\n if(oldPt.curveNumber !== newPt.curveNumber ||\n String(oldPt.pointNumber) !== String(newPt.pointNumber) ||\n String(oldPt.pointNumbers) !== String(newPt.pointNumbers)\n ) {\n return true;\n }\n }\n return false;\n}\n\nfunction spikesChanged(gd, oldspikepoints) {\n // don't relayout the plot because of new spikelines if spikelines points didn't change\n if(!oldspikepoints) return true;\n if(oldspikepoints.vLinePoint !== gd._spikepoints.vLinePoint ||\n oldspikepoints.hLinePoint !== gd._spikepoints.hLinePoint\n ) return true;\n return false;\n}\n\nfunction plainText(s, len) {\n return svgTextUtils.plainText(s || '', {\n len: len,\n allowedTags: ['br', 'sub', 'sup', 'b', 'i', 'em']\n });\n}\n\nfunction orderRangePoints(hoverData, hovermode) {\n var axLetter = hovermode.charAt(0);\n\n var first = [];\n var second = [];\n var last = [];\n\n for(var i = 0; i < hoverData.length; i++) {\n var d = hoverData[i];\n\n if(\n Registry.traceIs(d.trace, 'bar-like') ||\n Registry.traceIs(d.trace, 'box-violin')\n ) {\n last.push(d);\n } else if(d.trace[axLetter + 'period']) {\n second.push(d);\n } else {\n first.push(d);\n }\n }\n\n return first.concat(second).concat(last);\n}\n\nfunction getCoord(axLetter, winningPoint, fullLayout) {\n var ax = winningPoint[axLetter + 'a'];\n var val = winningPoint[axLetter + 'Val'];\n\n var cd0 = winningPoint.cd[0];\n\n if(ax.type === 'category') val = ax._categoriesMap[val];\n else if(ax.type === 'date') {\n var periodalignment = winningPoint.trace[axLetter + 'periodalignment'];\n if(periodalignment) {\n var d = winningPoint.cd[winningPoint.index];\n\n var start = d[axLetter + 'Start'];\n if(start === undefined) start = d[axLetter];\n\n var end = d[axLetter + 'End'];\n if(end === undefined) end = d[axLetter];\n\n var diff = end - start;\n\n if(periodalignment === 'end') {\n val += diff;\n } else if(periodalignment === 'middle') {\n val += diff / 2;\n }\n }\n\n val = ax.d2c(val);\n }\n\n if(cd0 && cd0.t && cd0.t.posLetter === ax._id) {\n if(\n fullLayout.boxmode === 'group' ||\n fullLayout.violinmode === 'group'\n ) {\n val += cd0.t.dPos;\n }\n }\n\n return val;\n}\n\n// Top/left hover offsets relative to graph div. As long as hover content is\n// a sibling of the graph div, it will be positioned correctly relative to\n// the offset parent, whatever that may be.\nfunction getTopOffset(gd) { return gd.offsetTop + gd.clientTop; }\nfunction getLeftOffset(gd) { return gd.offsetLeft + gd.clientLeft; }\n\nfunction getBoundingClientRect(gd, node) {\n var fullLayout = gd._fullLayout;\n\n var rect = node.getBoundingClientRect();\n\n var x0 = rect.x;\n var y0 = rect.y;\n var x1 = x0 + rect.width;\n var y1 = y0 + rect.height;\n\n var A = Lib.apply3DTransform(fullLayout._invTransform)(x0, y0);\n var B = Lib.apply3DTransform(fullLayout._invTransform)(x1, y1);\n\n var Ax = A[0];\n var Ay = A[1];\n var Bx = B[0];\n var By = B[1];\n\n return {\n x: Ax,\n y: Ay,\n width: Bx - Ax,\n height: By - Ay,\n top: Math.min(Ay, By),\n left: Math.min(Ax, Bx),\n right: Math.max(Ax, Bx),\n bottom: Math.max(Ay, By),\n };\n}\n\n},{\"../../lib\":503,\"../../lib/events\":492,\"../../lib/override_cursor\":514,\"../../lib/svg_text_utils\":529,\"../../plots/cartesian/axes\":554,\"../../registry\":638,\"../color\":366,\"../dragelement\":385,\"../drawing\":388,\"../legend/defaults\":418,\"../legend/draw\":419,\"./constants\":400,\"./helpers\":402,\"@plotly/d3\":58,\"fast-isnumeric\":190,\"tinycolor2\":312}],404:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Color = _dereq_('../color');\nvar isUnifiedHover = _dereq_('./helpers').isUnifiedHover;\n\nmodule.exports = function handleHoverLabelDefaults(contIn, contOut, coerce, opts) {\n opts = opts || {};\n\n function inheritFontAttr(attr) {\n if(!opts.font[attr]) {\n opts.font[attr] = contOut.legend ? contOut.legend.font[attr] : contOut.font[attr];\n }\n }\n\n // In unified hover, inherit from layout.legend if available or layout\n if(contOut && isUnifiedHover(contOut.hovermode)) {\n if(!opts.font) opts.font = {};\n inheritFontAttr('size');\n inheritFontAttr('family');\n inheritFontAttr('color');\n\n if(contOut.legend) {\n if(!opts.bgcolor) opts.bgcolor = Color.combine(contOut.legend.bgcolor, contOut.paper_bgcolor);\n if(!opts.bordercolor) opts.bordercolor = contOut.legend.bordercolor;\n } else {\n if(!opts.bgcolor) opts.bgcolor = contOut.paper_bgcolor;\n }\n }\n\n coerce('hoverlabel.bgcolor', opts.bgcolor);\n coerce('hoverlabel.bordercolor', opts.bordercolor);\n coerce('hoverlabel.namelength', opts.namelength);\n Lib.coerceFont(coerce, 'hoverlabel.font', opts.font);\n coerce('hoverlabel.align', opts.align);\n};\n\n},{\"../../lib\":503,\"../color\":366,\"./helpers\":402}],405:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar layoutAttributes = _dereq_('./layout_attributes');\n\nmodule.exports = function handleHoverModeDefaults(layoutIn, layoutOut) {\n function coerce(attr, dflt) {\n // don't coerce if it is already coerced in other place e.g. in cartesian defaults\n if(layoutOut[attr] !== undefined) return layoutOut[attr];\n\n return Lib.coerce(layoutIn, layoutOut, layoutAttributes, attr, dflt);\n }\n\n coerce('clickmode');\n return coerce('hovermode');\n};\n\n},{\"../../lib\":503,\"./layout_attributes\":407}],406:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Lib = _dereq_('../../lib');\nvar dragElement = _dereq_('../dragelement');\nvar helpers = _dereq_('./helpers');\nvar layoutAttributes = _dereq_('./layout_attributes');\nvar hoverModule = _dereq_('./hover');\n\nmodule.exports = {\n moduleType: 'component',\n name: 'fx',\n\n constants: _dereq_('./constants'),\n schema: {\n layout: layoutAttributes\n },\n\n attributes: _dereq_('./attributes'),\n layoutAttributes: layoutAttributes,\n\n supplyLayoutGlobalDefaults: _dereq_('./layout_global_defaults'),\n supplyDefaults: _dereq_('./defaults'),\n supplyLayoutDefaults: _dereq_('./layout_defaults'),\n\n calc: _dereq_('./calc'),\n\n getDistanceFunction: helpers.getDistanceFunction,\n getClosest: helpers.getClosest,\n inbox: helpers.inbox,\n quadrature: helpers.quadrature,\n appendArrayPointValue: helpers.appendArrayPointValue,\n\n castHoverOption: castHoverOption,\n castHoverinfo: castHoverinfo,\n\n hover: hoverModule.hover,\n unhover: dragElement.unhover,\n\n loneHover: hoverModule.loneHover,\n loneUnhover: loneUnhover,\n\n click: _dereq_('./click')\n};\n\nfunction loneUnhover(containerOrSelection) {\n // duck type whether the arg is a d3 selection because ie9 doesn't\n // handle instanceof like modern browsers do.\n var selection = Lib.isD3Selection(containerOrSelection) ?\n containerOrSelection :\n d3.select(containerOrSelection);\n\n selection.selectAll('g.hovertext').remove();\n selection.selectAll('.spikeline').remove();\n}\n\n// helpers for traces that use Fx.loneHover\n\nfunction castHoverOption(trace, ptNumber, attr) {\n return Lib.castOption(trace, ptNumber, 'hoverlabel.' + attr);\n}\n\nfunction castHoverinfo(trace, fullLayout, ptNumber) {\n function _coerce(val) {\n return Lib.coerceHoverinfo({hoverinfo: val}, {_module: trace._module}, fullLayout);\n }\n\n return Lib.castOption(trace, ptNumber, 'hoverinfo', _coerce);\n}\n\n},{\"../../lib\":503,\"../dragelement\":385,\"./attributes\":397,\"./calc\":398,\"./click\":399,\"./constants\":400,\"./defaults\":401,\"./helpers\":402,\"./hover\":403,\"./layout_attributes\":407,\"./layout_defaults\":408,\"./layout_global_defaults\":409,\"@plotly/d3\":58}],407:[function(_dereq_,module,exports){\n'use strict';\n\nvar constants = _dereq_('./constants');\n\nvar fontAttrs = _dereq_('../../plots/font_attributes')({\n editType: 'none',\n});\nfontAttrs.family.dflt = constants.HOVERFONT;\nfontAttrs.size.dflt = constants.HOVERFONTSIZE;\n\nmodule.exports = {\n clickmode: {\n valType: 'flaglist',\n flags: ['event', 'select'],\n dflt: 'event',\n editType: 'plot',\n extras: ['none'],\n },\n dragmode: {\n valType: 'enumerated',\n values: [\n 'zoom',\n 'pan',\n 'select',\n 'lasso',\n 'drawclosedpath',\n 'drawopenpath',\n 'drawline',\n 'drawrect',\n 'drawcircle',\n 'orbit',\n 'turntable',\n false\n ],\n dflt: 'zoom',\n editType: 'modebar',\n },\n hovermode: {\n valType: 'enumerated',\n values: ['x', 'y', 'closest', false, 'x unified', 'y unified'],\n dflt: 'closest',\n editType: 'modebar',\n },\n hoverdistance: {\n valType: 'integer',\n min: -1,\n dflt: 20,\n editType: 'none',\n },\n spikedistance: {\n valType: 'integer',\n min: -1,\n dflt: -1,\n editType: 'none',\n },\n hoverlabel: {\n bgcolor: {\n valType: 'color',\n editType: 'none',\n },\n bordercolor: {\n valType: 'color',\n editType: 'none',\n },\n font: fontAttrs,\n align: {\n valType: 'enumerated',\n values: ['left', 'right', 'auto'],\n dflt: 'auto',\n editType: 'none',\n },\n namelength: {\n valType: 'integer',\n min: -1,\n dflt: 15,\n editType: 'none',\n },\n editType: 'none'\n },\n selectdirection: {\n valType: 'enumerated',\n values: ['h', 'v', 'd', 'any'],\n dflt: 'any',\n editType: 'none'\n }\n};\n\n},{\"../../plots/font_attributes\":585,\"./constants\":400}],408:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar layoutAttributes = _dereq_('./layout_attributes');\nvar handleHoverModeDefaults = _dereq_('./hovermode_defaults');\nvar handleHoverLabelDefaults = _dereq_('./hoverlabel_defaults');\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(layoutIn, layoutOut, layoutAttributes, attr, dflt);\n }\n\n var hoverMode = handleHoverModeDefaults(layoutIn, layoutOut);\n if(hoverMode) {\n coerce('hoverdistance');\n coerce('spikedistance');\n }\n\n var dragMode = coerce('dragmode');\n if(dragMode === 'select') coerce('selectdirection');\n\n // if only mapbox or geo subplots is present on graph,\n // reset 'zoom' dragmode to 'pan' until 'zoom' is implemented,\n // so that the correct modebar button is active\n var hasMapbox = layoutOut._has('mapbox');\n var hasGeo = layoutOut._has('geo');\n var len = layoutOut._basePlotModules.length;\n\n if(layoutOut.dragmode === 'zoom' && (\n ((hasMapbox || hasGeo) && len === 1) ||\n (hasMapbox && hasGeo && len === 2)\n )) {\n layoutOut.dragmode = 'pan';\n }\n\n handleHoverLabelDefaults(layoutIn, layoutOut, coerce);\n};\n\n},{\"../../lib\":503,\"./hoverlabel_defaults\":404,\"./hovermode_defaults\":405,\"./layout_attributes\":407}],409:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar handleHoverLabelDefaults = _dereq_('./hoverlabel_defaults');\nvar layoutAttributes = _dereq_('./layout_attributes');\n\nmodule.exports = function supplyLayoutGlobalDefaults(layoutIn, layoutOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(layoutIn, layoutOut, layoutAttributes, attr, dflt);\n }\n\n handleHoverLabelDefaults(layoutIn, layoutOut, coerce);\n};\n\n},{\"../../lib\":503,\"./hoverlabel_defaults\":404,\"./layout_attributes\":407}],410:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar counterRegex = _dereq_('../../lib/regex').counter;\nvar domainAttrs = _dereq_('../../plots/domain').attributes;\nvar cartesianIdRegex = _dereq_('../../plots/cartesian/constants').idRegex;\nvar Template = _dereq_('../../plot_api/plot_template');\n\nvar gridAttrs = {\n rows: {\n valType: 'integer',\n min: 1,\n editType: 'plot',\n },\n roworder: {\n valType: 'enumerated',\n values: ['top to bottom', 'bottom to top'],\n dflt: 'top to bottom',\n editType: 'plot',\n },\n columns: {\n valType: 'integer',\n min: 1,\n editType: 'plot',\n },\n subplots: {\n valType: 'info_array',\n freeLength: true,\n dimensions: 2,\n items: {valType: 'enumerated', values: [counterRegex('xy').toString(), ''], editType: 'plot'},\n editType: 'plot',\n },\n xaxes: {\n valType: 'info_array',\n freeLength: true,\n items: {valType: 'enumerated', values: [cartesianIdRegex.x.toString(), ''], editType: 'plot'},\n editType: 'plot',\n },\n yaxes: {\n valType: 'info_array',\n freeLength: true,\n items: {valType: 'enumerated', values: [cartesianIdRegex.y.toString(), ''], editType: 'plot'},\n editType: 'plot',\n },\n pattern: {\n valType: 'enumerated',\n values: ['independent', 'coupled'],\n dflt: 'coupled',\n editType: 'plot',\n },\n xgap: {\n valType: 'number',\n min: 0,\n max: 1,\n editType: 'plot',\n },\n ygap: {\n valType: 'number',\n min: 0,\n max: 1,\n editType: 'plot',\n },\n domain: domainAttrs({name: 'grid', editType: 'plot', noGridCell: true}, {\n }),\n xside: {\n valType: 'enumerated',\n values: ['bottom', 'bottom plot', 'top plot', 'top'],\n dflt: 'bottom plot',\n editType: 'plot',\n },\n yside: {\n valType: 'enumerated',\n values: ['left', 'left plot', 'right plot', 'right'],\n dflt: 'left plot',\n editType: 'plot',\n },\n editType: 'plot'\n};\n\nfunction getAxes(layout, grid, axLetter) {\n var gridVal = grid[axLetter + 'axes'];\n var splomVal = Object.keys((layout._splomAxes || {})[axLetter] || {});\n\n if(Array.isArray(gridVal)) return gridVal;\n if(splomVal.length) return splomVal;\n}\n\n// the shape of the grid - this needs to be done BEFORE supplyDataDefaults\n// so that non-subplot traces can place themselves in the grid\nfunction sizeDefaults(layoutIn, layoutOut) {\n var gridIn = layoutIn.grid || {};\n var xAxes = getAxes(layoutOut, gridIn, 'x');\n var yAxes = getAxes(layoutOut, gridIn, 'y');\n\n if(!layoutIn.grid && !xAxes && !yAxes) return;\n\n var hasSubplotGrid = Array.isArray(gridIn.subplots) && Array.isArray(gridIn.subplots[0]);\n var hasXaxes = Array.isArray(xAxes);\n var hasYaxes = Array.isArray(yAxes);\n var isSplomGenerated = (\n hasXaxes && xAxes !== gridIn.xaxes &&\n hasYaxes && yAxes !== gridIn.yaxes\n );\n\n var dfltRows, dfltColumns;\n\n if(hasSubplotGrid) {\n dfltRows = gridIn.subplots.length;\n dfltColumns = gridIn.subplots[0].length;\n } else {\n if(hasYaxes) dfltRows = yAxes.length;\n if(hasXaxes) dfltColumns = xAxes.length;\n }\n\n var gridOut = Template.newContainer(layoutOut, 'grid');\n\n function coerce(attr, dflt) {\n return Lib.coerce(gridIn, gridOut, gridAttrs, attr, dflt);\n }\n\n var rows = coerce('rows', dfltRows);\n var columns = coerce('columns', dfltColumns);\n\n if(!(rows * columns > 1)) {\n delete layoutOut.grid;\n return;\n }\n\n if(!hasSubplotGrid && !hasXaxes && !hasYaxes) {\n var useDefaultSubplots = coerce('pattern') === 'independent';\n if(useDefaultSubplots) hasSubplotGrid = true;\n }\n gridOut._hasSubplotGrid = hasSubplotGrid;\n\n var rowOrder = coerce('roworder');\n var reversed = rowOrder === 'top to bottom';\n\n var dfltGapX = hasSubplotGrid ? 0.2 : 0.1;\n var dfltGapY = hasSubplotGrid ? 0.3 : 0.1;\n\n var dfltSideX, dfltSideY;\n if(isSplomGenerated && layoutOut._splomGridDflt) {\n dfltSideX = layoutOut._splomGridDflt.xside;\n dfltSideY = layoutOut._splomGridDflt.yside;\n }\n\n gridOut._domains = {\n x: fillGridPositions('x', coerce, dfltGapX, dfltSideX, columns),\n y: fillGridPositions('y', coerce, dfltGapY, dfltSideY, rows, reversed)\n };\n}\n\n// coerce x or y sizing attributes and return an array of domains for this direction\nfunction fillGridPositions(axLetter, coerce, dfltGap, dfltSide, len, reversed) {\n var dirGap = coerce(axLetter + 'gap', dfltGap);\n var domain = coerce('domain.' + axLetter);\n coerce(axLetter + 'side', dfltSide);\n\n var out = new Array(len);\n var start = domain[0];\n var step = (domain[1] - start) / (len - dirGap);\n var cellDomain = step * (1 - dirGap);\n for(var i = 0; i < len; i++) {\n var cellStart = start + step * i;\n out[reversed ? (len - 1 - i) : i] = [cellStart, cellStart + cellDomain];\n }\n return out;\n}\n\n// the (cartesian) contents of the grid - this needs to happen AFTER supplyDataDefaults\n// so that we know what cartesian subplots are available\nfunction contentDefaults(layoutIn, layoutOut) {\n var gridOut = layoutOut.grid;\n // make sure we got to the end of handleGridSizing\n if(!gridOut || !gridOut._domains) return;\n\n var gridIn = layoutIn.grid || {};\n var subplots = layoutOut._subplots;\n var hasSubplotGrid = gridOut._hasSubplotGrid;\n var rows = gridOut.rows;\n var columns = gridOut.columns;\n var useDefaultSubplots = gridOut.pattern === 'independent';\n\n var i, j, xId, yId, subplotId, subplotsOut, yPos;\n\n var axisMap = gridOut._axisMap = {};\n\n if(hasSubplotGrid) {\n var subplotsIn = gridIn.subplots || [];\n subplotsOut = gridOut.subplots = new Array(rows);\n var index = 1;\n\n for(i = 0; i < rows; i++) {\n var rowOut = subplotsOut[i] = new Array(columns);\n var rowIn = subplotsIn[i] || [];\n for(j = 0; j < columns; j++) {\n if(useDefaultSubplots) {\n subplotId = (index === 1) ? 'xy' : ('x' + index + 'y' + index);\n index++;\n } else subplotId = rowIn[j];\n\n rowOut[j] = '';\n\n if(subplots.cartesian.indexOf(subplotId) !== -1) {\n yPos = subplotId.indexOf('y');\n xId = subplotId.slice(0, yPos);\n yId = subplotId.slice(yPos);\n if((axisMap[xId] !== undefined && axisMap[xId] !== j) ||\n (axisMap[yId] !== undefined && axisMap[yId] !== i)\n ) {\n continue;\n }\n\n rowOut[j] = subplotId;\n axisMap[xId] = j;\n axisMap[yId] = i;\n }\n }\n }\n } else {\n var xAxes = getAxes(layoutOut, gridIn, 'x');\n var yAxes = getAxes(layoutOut, gridIn, 'y');\n gridOut.xaxes = fillGridAxes(xAxes, subplots.xaxis, columns, axisMap, 'x');\n gridOut.yaxes = fillGridAxes(yAxes, subplots.yaxis, rows, axisMap, 'y');\n }\n\n var anchors = gridOut._anchors = {};\n var reversed = gridOut.roworder === 'top to bottom';\n\n for(var axisId in axisMap) {\n var axLetter = axisId.charAt(0);\n var side = gridOut[axLetter + 'side'];\n\n var i0, inc, iFinal;\n\n if(side.length < 8) {\n // grid edge - ie not \"* plot\" - make these as free axes\n // since we're not guaranteed to have a subplot there at all\n anchors[axisId] = 'free';\n } else if(axLetter === 'x') {\n if((side.charAt(0) === 't') === reversed) {\n i0 = 0;\n inc = 1;\n iFinal = rows;\n } else {\n i0 = rows - 1;\n inc = -1;\n iFinal = -1;\n }\n if(hasSubplotGrid) {\n var column = axisMap[axisId];\n for(i = i0; i !== iFinal; i += inc) {\n subplotId = subplotsOut[i][column];\n if(!subplotId) continue;\n yPos = subplotId.indexOf('y');\n if(subplotId.slice(0, yPos) === axisId) {\n anchors[axisId] = subplotId.slice(yPos);\n break;\n }\n }\n } else {\n for(i = i0; i !== iFinal; i += inc) {\n yId = gridOut.yaxes[i];\n if(subplots.cartesian.indexOf(axisId + yId) !== -1) {\n anchors[axisId] = yId;\n break;\n }\n }\n }\n } else {\n if((side.charAt(0) === 'l')) {\n i0 = 0;\n inc = 1;\n iFinal = columns;\n } else {\n i0 = columns - 1;\n inc = -1;\n iFinal = -1;\n }\n if(hasSubplotGrid) {\n var row = axisMap[axisId];\n for(i = i0; i !== iFinal; i += inc) {\n subplotId = subplotsOut[row][i];\n if(!subplotId) continue;\n yPos = subplotId.indexOf('y');\n if(subplotId.slice(yPos) === axisId) {\n anchors[axisId] = subplotId.slice(0, yPos);\n break;\n }\n }\n } else {\n for(i = i0; i !== iFinal; i += inc) {\n xId = gridOut.xaxes[i];\n if(subplots.cartesian.indexOf(xId + axisId) !== -1) {\n anchors[axisId] = xId;\n break;\n }\n }\n }\n }\n }\n}\n\nfunction fillGridAxes(axesIn, axesAllowed, len, axisMap, axLetter) {\n var out = new Array(len);\n var i;\n\n function fillOneAxis(i, axisId) {\n if(axesAllowed.indexOf(axisId) !== -1 && axisMap[axisId] === undefined) {\n out[i] = axisId;\n axisMap[axisId] = i;\n } else out[i] = '';\n }\n\n if(Array.isArray(axesIn)) {\n for(i = 0; i < len; i++) {\n fillOneAxis(i, axesIn[i]);\n }\n } else {\n // default axis list is the first `len` axis ids\n fillOneAxis(0, axLetter);\n for(i = 1; i < len; i++) {\n fillOneAxis(i, axLetter + (i + 1));\n }\n }\n\n return out;\n}\n\nmodule.exports = {\n moduleType: 'component',\n name: 'grid',\n\n schema: {\n layout: {grid: gridAttrs}\n },\n\n layoutAttributes: gridAttrs,\n sizeDefaults: sizeDefaults,\n contentDefaults: contentDefaults\n};\n\n},{\"../../lib\":503,\"../../lib/regex\":520,\"../../plot_api/plot_template\":543,\"../../plots/cartesian/constants\":561,\"../../plots/domain\":584}],411:[function(_dereq_,module,exports){\n'use strict';\n\nvar cartesianConstants = _dereq_('../../plots/cartesian/constants');\nvar templatedArray = _dereq_('../../plot_api/plot_template').templatedArray;\nvar axisPlaceableObjs = _dereq_('../../constants/axis_placeable_objects');\n\n\nmodule.exports = templatedArray('image', {\n visible: {\n valType: 'boolean',\n dflt: true,\n editType: 'arraydraw',\n },\n\n source: {\n valType: 'string',\n editType: 'arraydraw',\n },\n\n layer: {\n valType: 'enumerated',\n values: ['below', 'above'],\n dflt: 'above',\n editType: 'arraydraw',\n },\n\n sizex: {\n valType: 'number',\n dflt: 0,\n editType: 'arraydraw',\n },\n\n sizey: {\n valType: 'number',\n dflt: 0,\n editType: 'arraydraw',\n },\n\n sizing: {\n valType: 'enumerated',\n values: ['fill', 'contain', 'stretch'],\n dflt: 'contain',\n editType: 'arraydraw',\n },\n\n opacity: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 1,\n editType: 'arraydraw',\n },\n\n x: {\n valType: 'any',\n dflt: 0,\n editType: 'arraydraw',\n },\n\n y: {\n valType: 'any',\n dflt: 0,\n editType: 'arraydraw',\n },\n\n xanchor: {\n valType: 'enumerated',\n values: ['left', 'center', 'right'],\n dflt: 'left',\n editType: 'arraydraw',\n },\n\n yanchor: {\n valType: 'enumerated',\n values: ['top', 'middle', 'bottom'],\n dflt: 'top',\n editType: 'arraydraw',\n },\n\n xref: {\n valType: 'enumerated',\n values: [\n 'paper',\n cartesianConstants.idRegex.x.toString()\n ],\n dflt: 'paper',\n editType: 'arraydraw',\n },\n\n yref: {\n valType: 'enumerated',\n values: [\n 'paper',\n cartesianConstants.idRegex.y.toString()\n ],\n dflt: 'paper',\n editType: 'arraydraw',\n },\n editType: 'arraydraw'\n});\n\n},{\"../../constants/axis_placeable_objects\":472,\"../../plot_api/plot_template\":543,\"../../plots/cartesian/constants\":561}],412:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar toLogRange = _dereq_('../../lib/to_log_range');\n\n/*\n * convertCoords: when converting an axis between log and linear\n * you need to alter any images on that axis to keep them\n * pointing at the same data point.\n * In v3.0 this will become obsolete (or perhaps size will still need conversion?)\n * we convert size by declaring that the maximum extent *in data units* should be\n * the same, assuming the image is anchored by its center (could remove that restriction\n * if we think it's important) even though the actual left and right values will not be\n * quite the same since the scale becomes nonlinear (and central anchor means the pixel\n * center of the image, not the data units center)\n *\n * gd: the plot div\n * ax: the axis being changed\n * newType: the type it's getting\n * doExtra: function(attr, val) from inside relayout that sets the attribute.\n * Use this to make the changes as it's aware if any other changes in the\n * same relayout call should override this conversion.\n */\nmodule.exports = function convertCoords(gd, ax, newType, doExtra) {\n ax = ax || {};\n\n var toLog = (newType === 'log') && (ax.type === 'linear');\n var fromLog = (newType === 'linear') && (ax.type === 'log');\n\n if(!(toLog || fromLog)) return;\n\n var images = gd._fullLayout.images;\n var axLetter = ax._id.charAt(0);\n var image;\n var attrPrefix;\n\n for(var i = 0; i < images.length; i++) {\n image = images[i];\n attrPrefix = 'images[' + i + '].';\n\n if(image[axLetter + 'ref'] === ax._id) {\n var currentPos = image[axLetter];\n var currentSize = image['size' + axLetter];\n var newPos = null;\n var newSize = null;\n\n if(toLog) {\n newPos = toLogRange(currentPos, ax.range);\n\n // this is the inverse of the conversion we do in fromLog below\n // so that the conversion is reversible (notice the fromLog conversion\n // is like sinh, and this one looks like arcsinh)\n var dx = currentSize / Math.pow(10, newPos) / 2;\n newSize = 2 * Math.log(dx + Math.sqrt(1 + dx * dx)) / Math.LN10;\n } else {\n newPos = Math.pow(10, currentPos);\n newSize = newPos * (Math.pow(10, currentSize / 2) - Math.pow(10, -currentSize / 2));\n }\n\n // if conversion failed, delete the value so it can get a default later on\n if(!isNumeric(newPos)) {\n newPos = null;\n newSize = null;\n } else if(!isNumeric(newSize)) newSize = null;\n\n doExtra(attrPrefix + axLetter, newPos);\n doExtra(attrPrefix + 'size' + axLetter, newSize);\n }\n }\n};\n\n},{\"../../lib/to_log_range\":531,\"fast-isnumeric\":190}],413:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar handleArrayContainerDefaults = _dereq_('../../plots/array_container_defaults');\n\nvar attributes = _dereq_('./attributes');\nvar name = 'images';\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {\n var opts = {\n name: name,\n handleItemDefaults: imageDefaults\n };\n\n handleArrayContainerDefaults(layoutIn, layoutOut, opts);\n};\n\n\nfunction imageDefaults(imageIn, imageOut, fullLayout) {\n function coerce(attr, dflt) {\n return Lib.coerce(imageIn, imageOut, attributes, attr, dflt);\n }\n\n var source = coerce('source');\n var visible = coerce('visible', !!source);\n\n if(!visible) return imageOut;\n\n coerce('layer');\n coerce('xanchor');\n coerce('yanchor');\n coerce('sizex');\n coerce('sizey');\n coerce('sizing');\n coerce('opacity');\n\n var gdMock = { _fullLayout: fullLayout };\n var axLetters = ['x', 'y'];\n\n for(var i = 0; i < 2; i++) {\n // 'paper' is the fallback axref\n var axLetter = axLetters[i];\n var axRef = Axes.coerceRef(imageIn, imageOut, gdMock, axLetter, 'paper', undefined);\n\n if(axRef !== 'paper') {\n var ax = Axes.getFromId(gdMock, axRef);\n ax._imgIndices.push(imageOut._index);\n }\n\n Axes.coercePosition(imageOut, gdMock, coerce, axRef, axLetter, 0);\n }\n\n return imageOut;\n}\n\n},{\"../../lib\":503,\"../../plots/array_container_defaults\":549,\"../../plots/cartesian/axes\":554,\"./attributes\":411}],414:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Drawing = _dereq_('../drawing');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar axisIds = _dereq_('../../plots/cartesian/axis_ids');\nvar xmlnsNamespaces = _dereq_('../../constants/xmlns_namespaces');\n\nmodule.exports = function draw(gd) {\n var fullLayout = gd._fullLayout;\n var imageDataAbove = [];\n var imageDataSubplot = {};\n var imageDataBelow = [];\n var subplot;\n var i;\n\n // Sort into top, subplot, and bottom layers\n for(i = 0; i < fullLayout.images.length; i++) {\n var img = fullLayout.images[i];\n\n if(img.visible) {\n if(img.layer === 'below' && img.xref !== 'paper' && img.yref !== 'paper') {\n subplot = axisIds.ref2id(img.xref) + axisIds.ref2id(img.yref);\n\n var plotinfo = fullLayout._plots[subplot];\n\n if(!plotinfo) {\n // Fall back to _imageLowerLayer in case the requested subplot doesn't exist.\n // This can happen if you reference the image to an x / y axis combination\n // that doesn't have any data on it (and layer is below)\n imageDataBelow.push(img);\n continue;\n }\n\n if(plotinfo.mainplot) {\n subplot = plotinfo.mainplot.id;\n }\n\n if(!imageDataSubplot[subplot]) {\n imageDataSubplot[subplot] = [];\n }\n imageDataSubplot[subplot].push(img);\n } else if(img.layer === 'above') {\n imageDataAbove.push(img);\n } else {\n imageDataBelow.push(img);\n }\n }\n }\n\n\n var anchors = {\n x: {\n left: { sizing: 'xMin', offset: 0 },\n center: { sizing: 'xMid', offset: -1 / 2 },\n right: { sizing: 'xMax', offset: -1 }\n },\n y: {\n top: { sizing: 'YMin', offset: 0 },\n middle: { sizing: 'YMid', offset: -1 / 2 },\n bottom: { sizing: 'YMax', offset: -1 }\n }\n };\n\n\n // Images must be converted to dataURL's for exporting.\n function setImage(d) {\n var thisImage = d3.select(this);\n\n if(this._imgSrc === d.source) {\n return;\n }\n\n thisImage.attr('xmlns', xmlnsNamespaces.svg);\n\n if(d.source && d.source.slice(0, 5) === 'data:') {\n thisImage.attr('xlink:href', d.source);\n this._imgSrc = d.source;\n } else {\n var imagePromise = new Promise(function(resolve) {\n var img = new Image();\n this.img = img;\n\n // If not set, a `tainted canvas` error is thrown\n img.setAttribute('crossOrigin', 'anonymous');\n img.onerror = errorHandler;\n img.onload = function() {\n var canvas = document.createElement('canvas');\n canvas.width = this.width;\n canvas.height = this.height;\n\n var ctx = canvas.getContext('2d');\n ctx.drawImage(this, 0, 0);\n\n var dataURL = canvas.toDataURL('image/png');\n\n thisImage.attr('xlink:href', dataURL);\n\n // resolve promise in onload handler instead of on 'load' to support IE11\n // see https://github.com/plotly/plotly.js/issues/1685\n // for more details\n resolve();\n };\n\n thisImage.on('error', errorHandler);\n\n img.src = d.source;\n this._imgSrc = d.source;\n\n function errorHandler() {\n thisImage.remove();\n resolve();\n }\n }.bind(this));\n\n gd._promises.push(imagePromise);\n }\n }\n\n function applyAttributes(d) {\n var thisImage = d3.select(this);\n\n // Axes if specified\n var xa = Axes.getFromId(gd, d.xref);\n var ya = Axes.getFromId(gd, d.yref);\n var xIsDomain = Axes.getRefType(d.xref) === 'domain';\n var yIsDomain = Axes.getRefType(d.yref) === 'domain';\n\n var size = fullLayout._size;\n var width, height;\n if(xa !== undefined) {\n width = ((typeof(d.xref) === 'string') && xIsDomain) ?\n xa._length * d.sizex :\n Math.abs(xa.l2p(d.sizex) - xa.l2p(0));\n } else {\n width = d.sizex * size.w;\n }\n if(ya !== undefined) {\n height = ((typeof(d.yref) === 'string') && yIsDomain) ?\n ya._length * d.sizey :\n Math.abs(ya.l2p(d.sizey) - ya.l2p(0));\n } else {\n height = d.sizey * size.h;\n }\n\n // Offsets for anchor positioning\n var xOffset = width * anchors.x[d.xanchor].offset;\n var yOffset = height * anchors.y[d.yanchor].offset;\n\n var sizing = anchors.x[d.xanchor].sizing + anchors.y[d.yanchor].sizing;\n\n // Final positions\n var xPos, yPos;\n if(xa !== undefined) {\n xPos = ((typeof(d.xref) === 'string') && xIsDomain) ?\n xa._length * d.x + xa._offset :\n xa.r2p(d.x) + xa._offset;\n } else {\n xPos = d.x * size.w + size.l;\n }\n xPos += xOffset;\n if(ya !== undefined) {\n yPos = ((typeof(d.yref) === 'string') && yIsDomain) ?\n // consistent with \"paper\" yref value, where positive values\n // move up the page\n ya._length * (1 - d.y) + ya._offset :\n ya.r2p(d.y) + ya._offset;\n } else {\n yPos = size.h - d.y * size.h + size.t;\n }\n yPos += yOffset;\n\n // Construct the proper aspectRatio attribute\n switch(d.sizing) {\n case 'fill':\n sizing += ' slice';\n break;\n\n case 'stretch':\n sizing = 'none';\n break;\n }\n\n thisImage.attr({\n x: xPos,\n y: yPos,\n width: width,\n height: height,\n preserveAspectRatio: sizing,\n opacity: d.opacity\n });\n\n\n // Set proper clipping on images\n var xId = xa && (Axes.getRefType(d.xref) !== 'domain') ? xa._id : '';\n var yId = ya && (Axes.getRefType(d.yref) !== 'domain') ? ya._id : '';\n var clipAxes = xId + yId;\n\n Drawing.setClipUrl(\n thisImage,\n clipAxes ? ('clip' + fullLayout._uid + clipAxes) : null,\n gd\n );\n }\n\n var imagesBelow = fullLayout._imageLowerLayer.selectAll('image')\n .data(imageDataBelow);\n var imagesAbove = fullLayout._imageUpperLayer.selectAll('image')\n .data(imageDataAbove);\n\n imagesBelow.enter().append('image');\n imagesAbove.enter().append('image');\n\n imagesBelow.exit().remove();\n imagesAbove.exit().remove();\n\n imagesBelow.each(function(d) {\n setImage.bind(this)(d);\n applyAttributes.bind(this)(d);\n });\n imagesAbove.each(function(d) {\n setImage.bind(this)(d);\n applyAttributes.bind(this)(d);\n });\n\n var allSubplots = Object.keys(fullLayout._plots);\n for(i = 0; i < allSubplots.length; i++) {\n subplot = allSubplots[i];\n var subplotObj = fullLayout._plots[subplot];\n\n // filter out overlaid plots (which have their images on the main plot)\n // and gl2d plots (which don't support below images, at least not yet)\n if(!subplotObj.imagelayer) continue;\n\n var imagesOnSubplot = subplotObj.imagelayer.selectAll('image')\n // even if there are no images on this subplot, we need to run\n // enter and exit in case there were previously\n .data(imageDataSubplot[subplot] || []);\n\n imagesOnSubplot.enter().append('image');\n imagesOnSubplot.exit().remove();\n\n imagesOnSubplot.each(function(d) {\n setImage.bind(this)(d);\n applyAttributes.bind(this)(d);\n });\n }\n};\n\n},{\"../../constants/xmlns_namespaces\":480,\"../../plots/cartesian/axes\":554,\"../../plots/cartesian/axis_ids\":558,\"../drawing\":388,\"@plotly/d3\":58}],415:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'component',\n name: 'images',\n\n layoutAttributes: _dereq_('./attributes'),\n supplyLayoutDefaults: _dereq_('./defaults'),\n includeBasePlot: _dereq_('../../plots/cartesian/include_components')('images'),\n\n draw: _dereq_('./draw'),\n\n convertCoords: _dereq_('./convert_coords')\n};\n\n},{\"../../plots/cartesian/include_components\":567,\"./attributes\":411,\"./convert_coords\":412,\"./defaults\":413,\"./draw\":414}],416:[function(_dereq_,module,exports){\n'use strict';\n\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar colorAttrs = _dereq_('../color/attributes');\n\n\nmodule.exports = {\n bgcolor: {\n valType: 'color',\n editType: 'legend',\n },\n bordercolor: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n editType: 'legend',\n },\n borderwidth: {\n valType: 'number',\n min: 0,\n dflt: 0,\n editType: 'legend',\n },\n font: fontAttrs({\n editType: 'legend',\n }),\n orientation: {\n valType: 'enumerated',\n values: ['v', 'h'],\n dflt: 'v',\n editType: 'legend',\n },\n traceorder: {\n valType: 'flaglist',\n flags: ['reversed', 'grouped'],\n extras: ['normal'],\n editType: 'legend',\n },\n tracegroupgap: {\n valType: 'number',\n min: 0,\n dflt: 10,\n editType: 'legend',\n },\n itemsizing: {\n valType: 'enumerated',\n values: ['trace', 'constant'],\n dflt: 'trace',\n editType: 'legend',\n },\n itemwidth: {\n valType: 'number',\n min: 30,\n dflt: 30,\n editType: 'legend',\n },\n itemclick: {\n valType: 'enumerated',\n values: ['toggle', 'toggleothers', false],\n dflt: 'toggle',\n editType: 'legend',\n },\n itemdoubleclick: {\n valType: 'enumerated',\n values: ['toggle', 'toggleothers', false],\n dflt: 'toggleothers',\n editType: 'legend',\n },\n groupclick: {\n valType: 'enumerated',\n values: ['toggleitem', 'togglegroup'],\n dflt: 'togglegroup',\n editType: 'legend',\n },\n x: {\n valType: 'number',\n min: -2,\n max: 3,\n editType: 'legend',\n },\n xanchor: {\n valType: 'enumerated',\n values: ['auto', 'left', 'center', 'right'],\n dflt: 'left',\n editType: 'legend',\n },\n y: {\n valType: 'number',\n min: -2,\n max: 3,\n editType: 'legend',\n },\n yanchor: {\n valType: 'enumerated',\n values: ['auto', 'top', 'middle', 'bottom'],\n editType: 'legend',\n },\n uirevision: {\n valType: 'any',\n editType: 'none',\n },\n valign: {\n valType: 'enumerated',\n values: ['top', 'middle', 'bottom'],\n dflt: 'middle',\n editType: 'legend',\n },\n title: {\n text: {\n valType: 'string',\n dflt: '',\n editType: 'legend',\n },\n font: fontAttrs({\n editType: 'legend',\n }),\n side: {\n valType: 'enumerated',\n values: ['top', 'left', 'top left'],\n editType: 'legend',\n },\n editType: 'legend',\n },\n editType: 'legend'\n};\n\n},{\"../../plots/font_attributes\":585,\"../color/attributes\":365}],417:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n scrollBarWidth: 6,\n scrollBarMinHeight: 20,\n scrollBarColor: '#808BA4',\n scrollBarMargin: 4,\n scrollBarEnterAttrs: {rx: 20, ry: 3, width: 0, height: 0},\n\n // number of px between legend title and (left) side of legend (always in x direction and from inner border)\n titlePad: 2,\n // number of px between each legend item (x and/or y direction)\n itemGap: 5\n};\n\n},{}],418:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar Template = _dereq_('../../plot_api/plot_template');\n\nvar attributes = _dereq_('./attributes');\nvar basePlotLayoutAttributes = _dereq_('../../plots/layout_attributes');\nvar helpers = _dereq_('./helpers');\n\n\nmodule.exports = function legendDefaults(layoutIn, layoutOut, fullData) {\n var containerIn = layoutIn.legend || {};\n\n var legendTraceCount = 0;\n var legendReallyHasATrace = false;\n var defaultOrder = 'normal';\n\n for(var i = 0; i < fullData.length; i++) {\n var trace = fullData[i];\n\n if(!trace.visible) continue;\n\n // Note that we explicitly count any trace that is either shown or\n // *would* be shown by default, toward the two traces you need to\n // ensure the legend is shown by default, because this can still help\n // disambiguate.\n if(trace.showlegend || (\n trace._dfltShowLegend && !(\n trace._module &&\n trace._module.attributes &&\n trace._module.attributes.showlegend &&\n trace._module.attributes.showlegend.dflt === false\n )\n )) {\n legendTraceCount++;\n if(trace.showlegend) {\n legendReallyHasATrace = true;\n // Always show the legend by default if there's a pie,\n // or if there's only one trace but it's explicitly shown\n if(Registry.traceIs(trace, 'pie-like') ||\n trace._input.showlegend === true\n ) {\n legendTraceCount++;\n }\n }\n }\n\n if((Registry.traceIs(trace, 'bar') && layoutOut.barmode === 'stack') ||\n ['tonextx', 'tonexty'].indexOf(trace.fill) !== -1) {\n defaultOrder = helpers.isGrouped({traceorder: defaultOrder}) ?\n 'grouped+reversed' : 'reversed';\n }\n\n if(trace.legendgroup !== undefined && trace.legendgroup !== '') {\n defaultOrder = helpers.isReversed({traceorder: defaultOrder}) ?\n 'reversed+grouped' : 'grouped';\n }\n }\n\n var showLegend = Lib.coerce(layoutIn, layoutOut,\n basePlotLayoutAttributes, 'showlegend',\n legendReallyHasATrace && legendTraceCount > 1);\n\n if(showLegend === false && !containerIn.uirevision) return;\n\n var containerOut = Template.newContainer(layoutOut, 'legend');\n\n function coerce(attr, dflt) {\n return Lib.coerce(containerIn, containerOut, attributes, attr, dflt);\n }\n\n coerce('uirevision', layoutOut.uirevision);\n\n if(showLegend === false) return;\n\n coerce('bgcolor', layoutOut.paper_bgcolor);\n coerce('bordercolor');\n coerce('borderwidth');\n var itemFont = Lib.coerceFont(coerce, 'font', layoutOut.font);\n\n var orientation = coerce('orientation');\n var isHorizontal = orientation === 'h';\n var defaultX, defaultY, defaultYAnchor;\n\n if(isHorizontal) {\n defaultX = 0;\n\n if(Registry.getComponentMethod('rangeslider', 'isVisible')(layoutIn.xaxis)) {\n defaultY = 1.1;\n defaultYAnchor = 'bottom';\n } else {\n // maybe use y=1.1 / yanchor=bottom as above\n // to avoid https://github.com/plotly/plotly.js/issues/1199\n // in v3\n defaultY = -0.1;\n defaultYAnchor = 'top';\n }\n } else {\n defaultX = 1.02;\n defaultY = 1;\n defaultYAnchor = 'auto';\n }\n\n coerce('traceorder', defaultOrder);\n if(helpers.isGrouped(layoutOut.legend)) coerce('tracegroupgap');\n\n coerce('itemsizing');\n coerce('itemwidth');\n\n coerce('itemclick');\n coerce('itemdoubleclick');\n coerce('groupclick');\n\n coerce('x', defaultX);\n coerce('xanchor');\n coerce('y', defaultY);\n coerce('yanchor', defaultYAnchor);\n coerce('valign');\n Lib.noneOrAll(containerIn, containerOut, ['x', 'y']);\n\n var titleText = coerce('title.text');\n if(titleText) {\n coerce('title.side', isHorizontal ? 'left' : 'top');\n var dfltTitleFont = Lib.extendFlat({}, itemFont, {\n size: Lib.bigFont(itemFont.size)\n });\n\n Lib.coerceFont(coerce, 'title.font', dfltTitleFont);\n }\n};\n\n},{\"../../lib\":503,\"../../plot_api/plot_template\":543,\"../../plots/layout_attributes\":610,\"../../registry\":638,\"./attributes\":416,\"./helpers\":422}],419:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Lib = _dereq_('../../lib');\nvar Plots = _dereq_('../../plots/plots');\nvar Registry = _dereq_('../../registry');\nvar Events = _dereq_('../../lib/events');\nvar dragElement = _dereq_('../dragelement');\nvar Drawing = _dereq_('../drawing');\nvar Color = _dereq_('../color');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\nvar handleClick = _dereq_('./handle_click');\n\nvar constants = _dereq_('./constants');\nvar alignmentConstants = _dereq_('../../constants/alignment');\nvar LINE_SPACING = alignmentConstants.LINE_SPACING;\nvar FROM_TL = alignmentConstants.FROM_TL;\nvar FROM_BR = alignmentConstants.FROM_BR;\n\nvar getLegendData = _dereq_('./get_legend_data');\nvar style = _dereq_('./style');\nvar helpers = _dereq_('./helpers');\n\nvar MAIN_TITLE = 1;\n\nmodule.exports = function draw(gd, opts) {\n if(!opts) opts = gd._fullLayout.legend || {};\n return _draw(gd, opts);\n};\n\nfunction _draw(gd, legendObj) {\n var fullLayout = gd._fullLayout;\n var clipId = 'legend' + fullLayout._uid;\n var layer;\n\n var inHover = legendObj._inHover;\n if(inHover) {\n layer = legendObj.layer;\n clipId += '-hover';\n } else {\n layer = fullLayout._infolayer;\n }\n\n if(!layer) return;\n\n if(!gd._legendMouseDownTime) gd._legendMouseDownTime = 0;\n\n var legendData;\n if(!inHover) {\n if(!gd.calcdata) return;\n legendData = fullLayout.showlegend && getLegendData(gd.calcdata, legendObj);\n } else {\n if(!legendObj.entries) return;\n legendData = getLegendData(legendObj.entries, legendObj);\n }\n\n var hiddenSlices = fullLayout.hiddenlabels || [];\n\n if(!inHover && (!fullLayout.showlegend || !legendData.length)) {\n layer.selectAll('.legend').remove();\n fullLayout._topdefs.select('#' + clipId).remove();\n return Plots.autoMargin(gd, 'legend');\n }\n\n var legend = Lib.ensureSingle(layer, 'g', 'legend', function(s) {\n if(!inHover) s.attr('pointer-events', 'all');\n });\n\n var clipPath = Lib.ensureSingleById(fullLayout._topdefs, 'clipPath', clipId, function(s) {\n s.append('rect');\n });\n\n var bg = Lib.ensureSingle(legend, 'rect', 'bg', function(s) {\n s.attr('shape-rendering', 'crispEdges');\n });\n bg.call(Color.stroke, legendObj.bordercolor)\n .call(Color.fill, legendObj.bgcolor)\n .style('stroke-width', legendObj.borderwidth + 'px');\n\n var scrollBox = Lib.ensureSingle(legend, 'g', 'scrollbox');\n\n var title = legendObj.title;\n legendObj._titleWidth = 0;\n legendObj._titleHeight = 0;\n if(title.text) {\n var titleEl = Lib.ensureSingle(scrollBox, 'text', 'legendtitletext');\n titleEl.attr('text-anchor', 'start')\n .call(Drawing.font, title.font)\n .text(title.text);\n\n textLayout(titleEl, scrollBox, gd, legendObj, MAIN_TITLE); // handle mathjax or multi-line text and compute title height\n } else {\n scrollBox.selectAll('.legendtitletext').remove();\n }\n\n var scrollBar = Lib.ensureSingle(legend, 'rect', 'scrollbar', function(s) {\n s.attr(constants.scrollBarEnterAttrs)\n .call(Color.fill, constants.scrollBarColor);\n });\n\n var groups = scrollBox.selectAll('g.groups').data(legendData);\n groups.enter().append('g').attr('class', 'groups');\n groups.exit().remove();\n\n var traces = groups.selectAll('g.traces').data(Lib.identity);\n traces.enter().append('g').attr('class', 'traces');\n traces.exit().remove();\n\n traces.style('opacity', function(d) {\n var trace = d[0].trace;\n if(Registry.traceIs(trace, 'pie-like')) {\n return hiddenSlices.indexOf(d[0].label) !== -1 ? 0.5 : 1;\n } else {\n return trace.visible === 'legendonly' ? 0.5 : 1;\n }\n })\n .each(function() { d3.select(this).call(drawTexts, gd, legendObj); })\n .call(style, gd, legendObj)\n .each(function() { if(!inHover) d3.select(this).call(setupTraceToggle, gd); });\n\n Lib.syncOrAsync([\n Plots.previousPromises,\n function() { return computeLegendDimensions(gd, groups, traces, legendObj); },\n function() {\n var gs = fullLayout._size;\n var bw = legendObj.borderwidth;\n\n if(!inHover) {\n var expMargin = expandMargin(gd);\n\n // IF expandMargin return a Promise (which is truthy),\n // we're under a doAutoMargin redraw, so we don't have to\n // draw the remaining pieces below\n if(expMargin) return;\n\n var lx = gs.l + gs.w * legendObj.x - FROM_TL[getXanchor(legendObj)] * legendObj._width;\n var ly = gs.t + gs.h * (1 - legendObj.y) - FROM_TL[getYanchor(legendObj)] * legendObj._effHeight;\n\n if(fullLayout.margin.autoexpand) {\n var lx0 = lx;\n var ly0 = ly;\n\n lx = Lib.constrain(lx, 0, fullLayout.width - legendObj._width);\n ly = Lib.constrain(ly, 0, fullLayout.height - legendObj._effHeight);\n\n if(lx !== lx0) {\n Lib.log('Constrain legend.x to make legend fit inside graph');\n }\n if(ly !== ly0) {\n Lib.log('Constrain legend.y to make legend fit inside graph');\n }\n }\n\n // Set size and position of all the elements that make up a legend:\n // legend, background and border, scroll box and scroll bar as well as title\n Drawing.setTranslate(legend, lx, ly);\n }\n\n // to be safe, remove previous listeners\n scrollBar.on('.drag', null);\n legend.on('wheel', null);\n\n if(inHover || legendObj._height <= legendObj._maxHeight || gd._context.staticPlot) {\n // if scrollbar should not be shown.\n var height = legendObj._effHeight;\n\n // if unified hover, let it be its full size\n if(inHover) height = legendObj._height;\n\n bg.attr({\n width: legendObj._width - bw,\n height: height - bw,\n x: bw / 2,\n y: bw / 2\n });\n\n Drawing.setTranslate(scrollBox, 0, 0);\n\n clipPath.select('rect').attr({\n width: legendObj._width - 2 * bw,\n height: height - 2 * bw,\n x: bw,\n y: bw\n });\n\n Drawing.setClipUrl(scrollBox, clipId, gd);\n\n Drawing.setRect(scrollBar, 0, 0, 0, 0);\n delete legendObj._scrollY;\n } else {\n var scrollBarHeight = Math.max(constants.scrollBarMinHeight,\n legendObj._effHeight * legendObj._effHeight / legendObj._height);\n var scrollBarYMax = legendObj._effHeight -\n scrollBarHeight -\n 2 * constants.scrollBarMargin;\n var scrollBoxYMax = legendObj._height - legendObj._effHeight;\n var scrollRatio = scrollBarYMax / scrollBoxYMax;\n\n var scrollBoxY = Math.min(legendObj._scrollY || 0, scrollBoxYMax);\n\n // increase the background and clip-path width\n // by the scrollbar width and margin\n bg.attr({\n width: legendObj._width -\n 2 * bw +\n constants.scrollBarWidth +\n constants.scrollBarMargin,\n height: legendObj._effHeight - bw,\n x: bw / 2,\n y: bw / 2\n });\n\n clipPath.select('rect').attr({\n width: legendObj._width -\n 2 * bw +\n constants.scrollBarWidth +\n constants.scrollBarMargin,\n height: legendObj._effHeight - 2 * bw,\n x: bw,\n y: bw + scrollBoxY\n });\n\n Drawing.setClipUrl(scrollBox, clipId, gd);\n\n scrollHandler(scrollBoxY, scrollBarHeight, scrollRatio);\n\n // scroll legend by mousewheel or touchpad swipe up/down\n legend.on('wheel', function() {\n scrollBoxY = Lib.constrain(\n legendObj._scrollY +\n ((d3.event.deltaY / scrollBarYMax) * scrollBoxYMax),\n 0, scrollBoxYMax);\n scrollHandler(scrollBoxY, scrollBarHeight, scrollRatio);\n if(scrollBoxY !== 0 && scrollBoxY !== scrollBoxYMax) {\n d3.event.preventDefault();\n }\n });\n\n var eventY0, eventY1, scrollBoxY0;\n\n var getScrollBarDragY = function(scrollBoxY0, eventY0, eventY1) {\n var y = ((eventY1 - eventY0) / scrollRatio) + scrollBoxY0;\n return Lib.constrain(y, 0, scrollBoxYMax);\n };\n\n var getNaturalDragY = function(scrollBoxY0, eventY0, eventY1) {\n var y = ((eventY0 - eventY1) / scrollRatio) + scrollBoxY0;\n return Lib.constrain(y, 0, scrollBoxYMax);\n };\n\n // scroll legend by dragging scrollBAR\n var scrollBarDrag = d3.behavior.drag()\n .on('dragstart', function() {\n var e = d3.event.sourceEvent;\n if(e.type === 'touchstart') {\n eventY0 = e.changedTouches[0].clientY;\n } else {\n eventY0 = e.clientY;\n }\n scrollBoxY0 = scrollBoxY;\n })\n .on('drag', function() {\n var e = d3.event.sourceEvent;\n if(e.buttons === 2 || e.ctrlKey) return;\n if(e.type === 'touchmove') {\n eventY1 = e.changedTouches[0].clientY;\n } else {\n eventY1 = e.clientY;\n }\n scrollBoxY = getScrollBarDragY(scrollBoxY0, eventY0, eventY1);\n scrollHandler(scrollBoxY, scrollBarHeight, scrollRatio);\n });\n scrollBar.call(scrollBarDrag);\n\n // scroll legend by touch-dragging scrollBOX\n var scrollBoxTouchDrag = d3.behavior.drag()\n .on('dragstart', function() {\n var e = d3.event.sourceEvent;\n if(e.type === 'touchstart') {\n eventY0 = e.changedTouches[0].clientY;\n scrollBoxY0 = scrollBoxY;\n }\n })\n .on('drag', function() {\n var e = d3.event.sourceEvent;\n if(e.type === 'touchmove') {\n eventY1 = e.changedTouches[0].clientY;\n scrollBoxY = getNaturalDragY(scrollBoxY0, eventY0, eventY1);\n scrollHandler(scrollBoxY, scrollBarHeight, scrollRatio);\n }\n });\n scrollBox.call(scrollBoxTouchDrag);\n }\n\n function scrollHandler(scrollBoxY, scrollBarHeight, scrollRatio) {\n legendObj._scrollY = gd._fullLayout.legend._scrollY = scrollBoxY;\n Drawing.setTranslate(scrollBox, 0, -scrollBoxY);\n\n Drawing.setRect(\n scrollBar,\n legendObj._width,\n constants.scrollBarMargin + scrollBoxY * scrollRatio,\n constants.scrollBarWidth,\n scrollBarHeight\n );\n clipPath.select('rect').attr('y', bw + scrollBoxY);\n }\n\n if(gd._context.edits.legendPosition) {\n var xf, yf, x0, y0;\n\n legend.classed('cursor-move', true);\n\n dragElement.init({\n element: legend.node(),\n gd: gd,\n prepFn: function() {\n var transform = Drawing.getTranslate(legend);\n x0 = transform.x;\n y0 = transform.y;\n },\n moveFn: function(dx, dy) {\n var newX = x0 + dx;\n var newY = y0 + dy;\n\n Drawing.setTranslate(legend, newX, newY);\n\n xf = dragElement.align(newX, 0, gs.l, gs.l + gs.w, legendObj.xanchor);\n yf = dragElement.align(newY, 0, gs.t + gs.h, gs.t, legendObj.yanchor);\n },\n doneFn: function() {\n if(xf !== undefined && yf !== undefined) {\n Registry.call('_guiRelayout', gd, {'legend.x': xf, 'legend.y': yf});\n }\n },\n clickFn: function(numClicks, e) {\n var clickedTrace = layer.selectAll('g.traces').filter(function() {\n var bbox = this.getBoundingClientRect();\n return (\n e.clientX >= bbox.left && e.clientX <= bbox.right &&\n e.clientY >= bbox.top && e.clientY <= bbox.bottom\n );\n });\n if(clickedTrace.size() > 0) {\n clickOrDoubleClick(gd, legend, clickedTrace, numClicks, e);\n }\n }\n });\n }\n }], gd);\n}\n\nfunction clickOrDoubleClick(gd, legend, legendItem, numClicks, evt) {\n var trace = legendItem.data()[0][0].trace;\n var evtData = {\n event: evt,\n node: legendItem.node(),\n curveNumber: trace.index,\n expandedIndex: trace._expandedIndex,\n data: gd.data,\n layout: gd.layout,\n frames: gd._transitionData._frames,\n config: gd._context,\n fullData: gd._fullData,\n fullLayout: gd._fullLayout\n };\n\n if(trace._group) {\n evtData.group = trace._group;\n }\n if(Registry.traceIs(trace, 'pie-like')) {\n evtData.label = legendItem.datum()[0].label;\n }\n\n var clickVal = Events.triggerHandler(gd, 'plotly_legendclick', evtData);\n if(clickVal === false) return;\n\n if(numClicks === 1) {\n legend._clickTimeout = setTimeout(function() {\n if(!gd._fullLayout) return;\n handleClick(legendItem, gd, numClicks);\n }, gd._context.doubleClickDelay);\n } else if(numClicks === 2) {\n if(legend._clickTimeout) clearTimeout(legend._clickTimeout);\n gd._legendMouseDownTime = 0;\n\n var dblClickVal = Events.triggerHandler(gd, 'plotly_legenddoubleclick', evtData);\n if(dblClickVal !== false) handleClick(legendItem, gd, numClicks);\n }\n}\n\nfunction drawTexts(g, gd, legendObj) {\n var legendItem = g.data()[0][0];\n var trace = legendItem.trace;\n var isPieLike = Registry.traceIs(trace, 'pie-like');\n var isEditable = !legendObj._inHover && gd._context.edits.legendText && !isPieLike;\n var maxNameLength = legendObj._maxNameLength;\n\n var name, font;\n if(legendItem.groupTitle) {\n name = legendItem.groupTitle.text;\n font = legendItem.groupTitle.font;\n } else {\n font = legendObj.font;\n if(!legendObj.entries) {\n name = isPieLike ? legendItem.label : trace.name;\n if(trace._meta) {\n name = Lib.templateString(name, trace._meta);\n }\n } else {\n name = legendItem.text;\n }\n }\n\n var textEl = Lib.ensureSingle(g, 'text', 'legendtext');\n\n textEl.attr('text-anchor', 'start')\n .call(Drawing.font, font)\n .text(isEditable ? ensureLength(name, maxNameLength) : name);\n\n var textGap = legendObj.itemwidth + constants.itemGap * 2;\n svgTextUtils.positionText(textEl, textGap, 0);\n\n if(isEditable) {\n textEl.call(svgTextUtils.makeEditable, {gd: gd, text: name})\n .call(textLayout, g, gd, legendObj)\n .on('edit', function(newName) {\n this.text(ensureLength(newName, maxNameLength))\n .call(textLayout, g, gd, legendObj);\n\n var fullInput = legendItem.trace._fullInput || {};\n var update = {};\n\n if(Registry.hasTransform(fullInput, 'groupby')) {\n var groupbyIndices = Registry.getTransformIndices(fullInput, 'groupby');\n var index = groupbyIndices[groupbyIndices.length - 1];\n\n var kcont = Lib.keyedContainer(fullInput, 'transforms[' + index + '].styles', 'target', 'value.name');\n\n kcont.set(legendItem.trace._group, newName);\n\n update = kcont.constructUpdate();\n } else {\n update.name = newName;\n }\n\n return Registry.call('_guiRestyle', gd, update, trace.index);\n });\n } else {\n textLayout(textEl, g, gd, legendObj);\n }\n}\n\n/*\n * Make sure we have a reasonably clickable region.\n * If this string is missing or very short, pad it with spaces out to at least\n * 4 characters, up to the max length of other labels, on the assumption that\n * most characters are wider than spaces so a string of spaces will usually be\n * no wider than the real labels.\n */\nfunction ensureLength(str, maxLength) {\n var targetLength = Math.max(4, maxLength);\n if(str && str.trim().length >= targetLength / 2) return str;\n str = str || '';\n for(var i = targetLength - str.length; i > 0; i--) str += ' ';\n return str;\n}\n\nfunction setupTraceToggle(g, gd) {\n var doubleClickDelay = gd._context.doubleClickDelay;\n var newMouseDownTime;\n var numClicks = 1;\n\n var traceToggle = Lib.ensureSingle(g, 'rect', 'legendtoggle', function(s) {\n if(!gd._context.staticPlot) {\n s.style('cursor', 'pointer').attr('pointer-events', 'all');\n }\n s.call(Color.fill, 'rgba(0,0,0,0)');\n });\n\n if(gd._context.staticPlot) return;\n\n traceToggle.on('mousedown', function() {\n newMouseDownTime = (new Date()).getTime();\n if(newMouseDownTime - gd._legendMouseDownTime < doubleClickDelay) {\n // in a click train\n numClicks += 1;\n } else {\n // new click train\n numClicks = 1;\n gd._legendMouseDownTime = newMouseDownTime;\n }\n });\n traceToggle.on('mouseup', function() {\n if(gd._dragged || gd._editing) return;\n var legend = gd._fullLayout.legend;\n\n if((new Date()).getTime() - gd._legendMouseDownTime > doubleClickDelay) {\n numClicks = Math.max(numClicks - 1, 1);\n }\n\n clickOrDoubleClick(gd, legend, g, numClicks, d3.event);\n });\n}\n\nfunction textLayout(s, g, gd, legendObj, aTitle) {\n if(legendObj._inHover) s.attr('data-notex', true); // do not process MathJax for unified hover\n svgTextUtils.convertToTspans(s, gd, function() {\n computeTextDimensions(g, gd, legendObj, aTitle);\n });\n}\n\nfunction computeTextDimensions(g, gd, legendObj, aTitle) {\n var legendItem = g.data()[0][0];\n if(!legendObj._inHover && legendItem && !legendItem.trace.showlegend) {\n g.remove();\n return;\n }\n\n var mathjaxGroup = g.select('g[class*=math-group]');\n var mathjaxNode = mathjaxGroup.node();\n if(!legendObj) legendObj = gd._fullLayout.legend;\n var bw = legendObj.borderwidth;\n var font;\n if(aTitle === MAIN_TITLE) {\n font = legendObj.title.font;\n } else if(legendItem.groupTitle) {\n font = legendItem.groupTitle.font;\n } else {\n font = legendObj.font;\n }\n var lineHeight = font.size * LINE_SPACING;\n var height, width;\n\n if(mathjaxNode) {\n var mathjaxBB = Drawing.bBox(mathjaxNode);\n\n height = mathjaxBB.height;\n width = mathjaxBB.width;\n\n if(aTitle === MAIN_TITLE) {\n Drawing.setTranslate(mathjaxGroup, bw, bw + height * 0.75);\n } else { // legend item\n Drawing.setTranslate(mathjaxGroup, 0, height * 0.25);\n }\n } else {\n var textEl = g.select(aTitle === MAIN_TITLE ?\n '.legendtitletext' : '.legendtext'\n );\n var textLines = svgTextUtils.lineCount(textEl);\n var textNode = textEl.node();\n\n height = lineHeight * textLines;\n width = textNode ? Drawing.bBox(textNode).width : 0;\n\n // approximation to height offset to center the font\n // to avoid getBoundingClientRect\n if(aTitle === MAIN_TITLE) {\n if(legendObj.title.side === 'left') {\n // add extra space between legend title and itmes\n width += constants.itemGap * 2;\n }\n\n svgTextUtils.positionText(textEl,\n bw + constants.titlePad,\n bw + lineHeight\n );\n } else { // legend item\n var x = constants.itemGap * 2 + legendObj.itemwidth;\n if(legendItem.groupTitle) {\n x = constants.itemGap;\n width -= legendObj.itemwidth;\n }\n\n svgTextUtils.positionText(textEl,\n x,\n -lineHeight * ((textLines - 1) / 2 - 0.3)\n );\n }\n }\n\n if(aTitle === MAIN_TITLE) {\n legendObj._titleWidth = width;\n legendObj._titleHeight = height;\n } else { // legend item\n legendItem.lineHeight = lineHeight;\n legendItem.height = Math.max(height, 16) + 3;\n legendItem.width = width;\n }\n}\n\nfunction getTitleSize(legendObj) {\n var w = 0;\n var h = 0;\n\n var side = legendObj.title.side;\n if(side) {\n if(side.indexOf('left') !== -1) {\n w = legendObj._titleWidth;\n }\n if(side.indexOf('top') !== -1) {\n h = legendObj._titleHeight;\n }\n }\n\n return [w, h];\n}\n\n/*\n * Computes in fullLayout.legend:\n *\n * - _height: legend height including items past scrollbox height\n * - _maxHeight: maximum legend height before scrollbox is required\n * - _effHeight: legend height w/ or w/o scrollbox\n *\n * - _width: legend width\n * - _maxWidth (for orientation:h only): maximum width before starting new row\n */\nfunction computeLegendDimensions(gd, groups, traces, legendObj) {\n var fullLayout = gd._fullLayout;\n if(!legendObj) legendObj = fullLayout.legend;\n var gs = fullLayout._size;\n\n var isVertical = helpers.isVertical(legendObj);\n var isGrouped = helpers.isGrouped(legendObj);\n\n var bw = legendObj.borderwidth;\n var bw2 = 2 * bw;\n var itemGap = constants.itemGap;\n var textGap = legendObj.itemwidth + itemGap * 2;\n var endPad = 2 * (bw + itemGap);\n\n var yanchor = getYanchor(legendObj);\n var isBelowPlotArea = legendObj.y < 0 || (legendObj.y === 0 && yanchor === 'top');\n var isAbovePlotArea = legendObj.y > 1 || (legendObj.y === 1 && yanchor === 'bottom');\n\n var traceGroupGap = legendObj.tracegroupgap;\n\n // - if below/above plot area, give it the maximum potential margin-push value\n // - otherwise, extend the height of the plot area\n legendObj._maxHeight = Math.max(\n (isBelowPlotArea || isAbovePlotArea) ? fullLayout.height / 2 : gs.h,\n 30\n );\n\n var toggleRectWidth = 0;\n legendObj._width = 0;\n legendObj._height = 0;\n var titleSize = getTitleSize(legendObj);\n\n if(isVertical) {\n traces.each(function(d) {\n var h = d[0].height;\n Drawing.setTranslate(this,\n bw + titleSize[0],\n bw + titleSize[1] + legendObj._height + h / 2 + itemGap\n );\n legendObj._height += h;\n legendObj._width = Math.max(legendObj._width, d[0].width);\n });\n\n toggleRectWidth = textGap + legendObj._width;\n legendObj._width += itemGap + textGap + bw2;\n legendObj._height += endPad;\n\n if(isGrouped) {\n groups.each(function(d, i) {\n Drawing.setTranslate(this, 0, i * legendObj.tracegroupgap);\n });\n legendObj._height += (legendObj._lgroupsLength - 1) * legendObj.tracegroupgap;\n }\n } else {\n var xanchor = getXanchor(legendObj);\n var isLeftOfPlotArea = legendObj.x < 0 || (legendObj.x === 0 && xanchor === 'right');\n var isRightOfPlotArea = legendObj.x > 1 || (legendObj.x === 1 && xanchor === 'left');\n var isBeyondPlotAreaY = isAbovePlotArea || isBelowPlotArea;\n var hw = fullLayout.width / 2;\n\n // - if placed within x-margins, extend the width of the plot area\n // - else if below/above plot area and anchored in the margin, extend to opposite margin,\n // - otherwise give it the maximum potential margin-push value\n legendObj._maxWidth = Math.max(\n isLeftOfPlotArea ? ((isBeyondPlotAreaY && xanchor === 'left') ? gs.l + gs.w : hw) :\n isRightOfPlotArea ? ((isBeyondPlotAreaY && xanchor === 'right') ? gs.r + gs.w : hw) :\n gs.w,\n 2 * textGap);\n var maxItemWidth = 0;\n var combinedItemWidth = 0;\n traces.each(function(d) {\n var w = d[0].width + textGap;\n maxItemWidth = Math.max(maxItemWidth, w);\n combinedItemWidth += w;\n });\n\n toggleRectWidth = null;\n var maxRowWidth = 0;\n\n if(isGrouped) {\n var maxGroupHeightInRow = 0;\n var groupOffsetX = 0;\n var groupOffsetY = 0;\n groups.each(function() {\n var maxWidthInGroup = 0;\n var offsetY = 0;\n d3.select(this).selectAll('g.traces').each(function(d) {\n var w = d[0].width;\n var h = d[0].height;\n\n Drawing.setTranslate(this,\n titleSize[0],\n titleSize[1] + bw + itemGap + h / 2 + offsetY\n );\n offsetY += h;\n maxWidthInGroup = Math.max(maxWidthInGroup, textGap + w);\n });\n maxGroupHeightInRow = Math.max(maxGroupHeightInRow, offsetY);\n\n var next = maxWidthInGroup + itemGap;\n\n // horizontal_wrapping\n if(\n // not on the first column already\n groupOffsetX > 0 &&\n\n // goes beyound limit\n next + bw + groupOffsetX > legendObj._maxWidth\n ) {\n maxRowWidth = Math.max(maxRowWidth, groupOffsetX);\n groupOffsetX = 0;\n groupOffsetY += maxGroupHeightInRow + traceGroupGap;\n maxGroupHeightInRow = offsetY;\n }\n\n Drawing.setTranslate(this, groupOffsetX, groupOffsetY);\n\n groupOffsetX += next;\n });\n\n legendObj._width = Math.max(maxRowWidth, groupOffsetX) + bw;\n legendObj._height = groupOffsetY + maxGroupHeightInRow + endPad;\n } else {\n var nTraces = traces.size();\n var oneRowLegend = (combinedItemWidth + bw2 + (nTraces - 1) * itemGap) < legendObj._maxWidth;\n\n var maxItemHeightInRow = 0;\n var offsetX = 0;\n var offsetY = 0;\n var rowWidth = 0;\n traces.each(function(d) {\n var h = d[0].height;\n var w = textGap + d[0].width;\n var next = (oneRowLegend ? w : maxItemWidth) + itemGap;\n\n if((next + bw + offsetX - itemGap) >= legendObj._maxWidth) {\n maxRowWidth = Math.max(maxRowWidth, rowWidth);\n offsetX = 0;\n offsetY += maxItemHeightInRow;\n legendObj._height += maxItemHeightInRow;\n maxItemHeightInRow = 0;\n }\n\n Drawing.setTranslate(this,\n titleSize[0] + bw + offsetX,\n titleSize[1] + bw + offsetY + h / 2 + itemGap\n );\n\n rowWidth = offsetX + w + itemGap;\n offsetX += next;\n maxItemHeightInRow = Math.max(maxItemHeightInRow, h);\n });\n\n if(oneRowLegend) {\n legendObj._width = offsetX + bw2;\n legendObj._height = maxItemHeightInRow + endPad;\n } else {\n legendObj._width = Math.max(maxRowWidth, rowWidth) + bw2;\n legendObj._height += maxItemHeightInRow + endPad;\n }\n }\n }\n\n legendObj._width = Math.ceil(\n Math.max(\n legendObj._width + titleSize[0],\n legendObj._titleWidth + 2 * (bw + constants.titlePad)\n )\n );\n\n legendObj._height = Math.ceil(\n Math.max(\n legendObj._height + titleSize[1],\n legendObj._titleHeight + 2 * (bw + constants.itemGap)\n )\n );\n\n legendObj._effHeight = Math.min(legendObj._height, legendObj._maxHeight);\n\n var edits = gd._context.edits;\n var isEditable = edits.legendText || edits.legendPosition;\n traces.each(function(d) {\n var traceToggle = d3.select(this).select('.legendtoggle');\n var h = d[0].height;\n var w = isEditable ? textGap : (toggleRectWidth || (textGap + d[0].width));\n if(!isVertical) w += itemGap / 2;\n Drawing.setRect(traceToggle, 0, -h / 2, w, h);\n });\n}\n\nfunction expandMargin(gd) {\n var fullLayout = gd._fullLayout;\n var legendObj = fullLayout.legend;\n var xanchor = getXanchor(legendObj);\n var yanchor = getYanchor(legendObj);\n\n return Plots.autoMargin(gd, 'legend', {\n x: legendObj.x,\n y: legendObj.y,\n l: legendObj._width * (FROM_TL[xanchor]),\n r: legendObj._width * (FROM_BR[xanchor]),\n b: legendObj._effHeight * (FROM_BR[yanchor]),\n t: legendObj._effHeight * (FROM_TL[yanchor])\n });\n}\n\nfunction getXanchor(legendObj) {\n return Lib.isRightAnchor(legendObj) ? 'right' :\n Lib.isCenterAnchor(legendObj) ? 'center' :\n 'left';\n}\n\nfunction getYanchor(legendObj) {\n return Lib.isBottomAnchor(legendObj) ? 'bottom' :\n Lib.isMiddleAnchor(legendObj) ? 'middle' :\n 'top';\n}\n\n},{\"../../constants/alignment\":471,\"../../lib\":503,\"../../lib/events\":492,\"../../lib/svg_text_utils\":529,\"../../plots/plots\":619,\"../../registry\":638,\"../color\":366,\"../dragelement\":385,\"../drawing\":388,\"./constants\":417,\"./get_legend_data\":420,\"./handle_click\":421,\"./helpers\":422,\"./style\":424,\"@plotly/d3\":58}],420:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar helpers = _dereq_('./helpers');\n\nmodule.exports = function getLegendData(calcdata, opts) {\n var inHover = opts._inHover;\n var grouped = helpers.isGrouped(opts);\n var reversed = helpers.isReversed(opts);\n\n var lgroupToTraces = {};\n var lgroups = [];\n var hasOneNonBlankGroup = false;\n var slicesShown = {};\n var lgroupi = 0;\n var maxNameLength = 0;\n var i, j;\n\n function addOneItem(legendGroup, legendItem) {\n // each '' legend group is treated as a separate group\n if(legendGroup === '' || !helpers.isGrouped(opts)) {\n // TODO: check this against fullData legendgroups?\n var uniqueGroup = '~~i' + lgroupi;\n lgroups.push(uniqueGroup);\n lgroupToTraces[uniqueGroup] = [legendItem];\n lgroupi++;\n } else if(lgroups.indexOf(legendGroup) === -1) {\n lgroups.push(legendGroup);\n hasOneNonBlankGroup = true;\n lgroupToTraces[legendGroup] = [legendItem];\n } else {\n lgroupToTraces[legendGroup].push(legendItem);\n }\n }\n\n // build an { legendgroup: [cd0, cd0], ... } object\n for(i = 0; i < calcdata.length; i++) {\n var cd = calcdata[i];\n var cd0 = cd[0];\n var trace = cd0.trace;\n var lgroup = trace.legendgroup;\n\n if(!inHover && (!trace.visible || !trace.showlegend)) continue;\n\n if(Registry.traceIs(trace, 'pie-like')) {\n if(!slicesShown[lgroup]) slicesShown[lgroup] = {};\n\n for(j = 0; j < cd.length; j++) {\n var labelj = cd[j].label;\n\n if(!slicesShown[lgroup][labelj]) {\n addOneItem(lgroup, {\n label: labelj,\n color: cd[j].color,\n i: cd[j].i,\n trace: trace,\n pts: cd[j].pts\n });\n\n slicesShown[lgroup][labelj] = true;\n maxNameLength = Math.max(maxNameLength, (labelj || '').length);\n }\n }\n } else {\n addOneItem(lgroup, cd0);\n maxNameLength = Math.max(maxNameLength, (trace.name || '').length);\n }\n }\n\n // won't draw a legend in this case\n if(!lgroups.length) return [];\n\n // collapse all groups into one if all groups are blank\n var shouldCollapse = !hasOneNonBlankGroup || !grouped;\n\n var legendData = [];\n for(i = 0; i < lgroups.length; i++) {\n var t = lgroupToTraces[lgroups[i]];\n if(shouldCollapse) {\n legendData.push(t[0]);\n } else {\n legendData.push(t);\n }\n }\n if(shouldCollapse) legendData = [legendData];\n\n for(i = 0; i < legendData.length; i++) {\n // find minimum rank within group\n var groupMinRank = Infinity;\n for(j = 0; j < legendData[i].length; j++) {\n var rank = legendData[i][j].trace.legendrank;\n if(groupMinRank > rank) groupMinRank = rank;\n }\n\n // record on first group element\n legendData[i][0]._groupMinRank = groupMinRank;\n legendData[i][0]._preGroupSort = i;\n }\n\n var orderFn1 = function(a, b) {\n return (\n (a[0]._groupMinRank - b[0]._groupMinRank) ||\n (a[0]._preGroupSort - b[0]._preGroupSort) // fallback for old Chrome < 70 https://bugs.chromium.org/p/v8/issues/detail?id=90\n );\n };\n\n var orderFn2 = function(a, b) {\n return (\n (a.trace.legendrank - b.trace.legendrank) ||\n (a._preSort - b._preSort) // fallback for old Chrome < 70 https://bugs.chromium.org/p/v8/issues/detail?id=90\n );\n };\n\n // sort considering minimum group legendrank\n legendData.forEach(function(a, k) { a[0]._preGroupSort = k; });\n legendData.sort(orderFn1);\n for(i = 0; i < legendData.length; i++) {\n // sort considering trace.legendrank and legend.traceorder\n legendData[i].forEach(function(a, k) { a._preSort = k; });\n legendData[i].sort(orderFn2);\n\n var firstItemTrace = legendData[i][0].trace;\n\n var groupTitle = null;\n // get group title text\n for(j = 0; j < legendData[i].length; j++) {\n var gt = legendData[i][j].trace.legendgrouptitle;\n if(gt && gt.text) {\n groupTitle = gt;\n if(inHover) gt.font = opts._groupTitleFont;\n break;\n }\n }\n\n // reverse order\n if(reversed) legendData[i].reverse();\n\n if(groupTitle) {\n var hasPieLike = false;\n for(j = 0; j < legendData[i].length; j++) {\n if(Registry.traceIs(legendData[i][j].trace, 'pie-like')) {\n hasPieLike = true;\n break;\n }\n }\n\n // set group title text\n legendData[i].unshift({\n i: -1,\n groupTitle: groupTitle,\n noClick: hasPieLike,\n trace: {\n showlegend: firstItemTrace.showlegend,\n legendgroup: firstItemTrace.legendgroup,\n visible: opts.groupclick === 'toggleitem' ? true : firstItemTrace.visible\n }\n });\n }\n\n // rearrange lgroupToTraces into a d3-friendly array of arrays\n for(j = 0; j < legendData[i].length; j++) {\n legendData[i][j] = [\n legendData[i][j]\n ];\n }\n }\n\n // number of legend groups - needed in legend/draw.js\n opts._lgroupsLength = legendData.length;\n // maximum name/label length - needed in legend/draw.js\n opts._maxNameLength = maxNameLength;\n\n return legendData;\n};\n\n},{\"../../registry\":638,\"./helpers\":422}],421:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Registry = _dereq_('../../registry');\n\nvar SHOWISOLATETIP = true;\n\nmodule.exports = function handleClick(g, gd, numClicks) {\n var fullLayout = gd._fullLayout;\n\n if(gd._dragged || gd._editing) return;\n\n var itemClick = fullLayout.legend.itemclick;\n var itemDoubleClick = fullLayout.legend.itemdoubleclick;\n var groupClick = fullLayout.legend.groupclick;\n\n if(numClicks === 1 && itemClick === 'toggle' && itemDoubleClick === 'toggleothers' &&\n SHOWISOLATETIP && gd.data && gd._context.showTips\n ) {\n Lib.notifier(Lib._(gd, 'Double-click on legend to isolate one trace'), 'long');\n SHOWISOLATETIP = false;\n } else {\n SHOWISOLATETIP = false;\n }\n\n var mode;\n if(numClicks === 1) mode = itemClick;\n else if(numClicks === 2) mode = itemDoubleClick;\n if(!mode) return;\n\n var toggleGroup = groupClick === 'togglegroup';\n\n var hiddenSlices = fullLayout.hiddenlabels ?\n fullLayout.hiddenlabels.slice() :\n [];\n\n var legendItem = g.data()[0][0];\n if(legendItem.groupTitle && legendItem.noClick) return;\n\n var fullData = gd._fullData;\n var fullTrace = legendItem.trace;\n var legendgroup = fullTrace.legendgroup;\n\n var i, j, kcont, key, keys, val;\n var attrUpdate = {};\n var attrIndices = [];\n var carrs = [];\n var carrIdx = [];\n\n function insertUpdate(traceIndex, key, value) {\n var attrIndex = attrIndices.indexOf(traceIndex);\n var valueArray = attrUpdate[key];\n if(!valueArray) {\n valueArray = attrUpdate[key] = [];\n }\n\n if(attrIndices.indexOf(traceIndex) === -1) {\n attrIndices.push(traceIndex);\n attrIndex = attrIndices.length - 1;\n }\n\n valueArray[attrIndex] = value;\n\n return attrIndex;\n }\n\n function setVisibility(fullTrace, visibility) {\n if(legendItem.groupTitle && !toggleGroup) return;\n\n var fullInput = fullTrace._fullInput;\n if(Registry.hasTransform(fullInput, 'groupby')) {\n var kcont = carrs[fullInput.index];\n if(!kcont) {\n var groupbyIndices = Registry.getTransformIndices(fullInput, 'groupby');\n var lastGroupbyIndex = groupbyIndices[groupbyIndices.length - 1];\n kcont = Lib.keyedContainer(fullInput, 'transforms[' + lastGroupbyIndex + '].styles', 'target', 'value.visible');\n carrs[fullInput.index] = kcont;\n }\n\n var curState = kcont.get(fullTrace._group);\n\n // If not specified, assume visible. This happens if there are other style\n // properties set for a group but not the visibility. There are many similar\n // ways to do this (e.g. why not just `curState = fullTrace.visible`??? The\n // answer is: because it breaks other things like groupby trace names in\n // subtle ways.)\n if(curState === undefined) {\n curState = true;\n }\n\n if(curState !== false) {\n // true -> legendonly. All others toggle to true:\n kcont.set(fullTrace._group, visibility);\n }\n carrIdx[fullInput.index] = insertUpdate(fullInput.index, 'visible', fullInput.visible === false ? false : true);\n } else {\n // false -> false (not possible since will not be visible in legend)\n // true -> legendonly\n // legendonly -> true\n var nextVisibility = fullInput.visible === false ? false : visibility;\n\n insertUpdate(fullInput.index, 'visible', nextVisibility);\n }\n }\n\n if(Registry.traceIs(fullTrace, 'pie-like')) {\n var thisLabel = legendItem.label;\n var thisLabelIndex = hiddenSlices.indexOf(thisLabel);\n\n if(mode === 'toggle') {\n if(thisLabelIndex === -1) hiddenSlices.push(thisLabel);\n else hiddenSlices.splice(thisLabelIndex, 1);\n } else if(mode === 'toggleothers') {\n hiddenSlices = [];\n gd.calcdata[0].forEach(function(d) {\n if(thisLabel !== d.label) {\n hiddenSlices.push(d.label);\n }\n });\n if(gd._fullLayout.hiddenlabels && gd._fullLayout.hiddenlabels.length === hiddenSlices.length && thisLabelIndex === -1) {\n hiddenSlices = [];\n }\n }\n\n Registry.call('_guiRelayout', gd, 'hiddenlabels', hiddenSlices);\n } else {\n var hasLegendgroup = legendgroup && legendgroup.length;\n var traceIndicesInGroup = [];\n var tracei;\n if(hasLegendgroup) {\n for(i = 0; i < fullData.length; i++) {\n tracei = fullData[i];\n if(!tracei.visible) continue;\n if(tracei.legendgroup === legendgroup) {\n traceIndicesInGroup.push(i);\n }\n }\n }\n\n if(mode === 'toggle') {\n var nextVisibility;\n\n switch(fullTrace.visible) {\n case true:\n nextVisibility = 'legendonly';\n break;\n case false:\n nextVisibility = false;\n break;\n case 'legendonly':\n nextVisibility = true;\n break;\n }\n\n if(hasLegendgroup) {\n if(toggleGroup) {\n for(i = 0; i < fullData.length; i++) {\n if(fullData[i].visible !== false && fullData[i].legendgroup === legendgroup) {\n setVisibility(fullData[i], nextVisibility);\n }\n }\n } else {\n setVisibility(fullTrace, nextVisibility);\n }\n } else {\n setVisibility(fullTrace, nextVisibility);\n }\n } else if(mode === 'toggleothers') {\n // Compute the clicked index. expandedIndex does what we want for expanded traces\n // but also culls hidden traces. That means we have some work to do.\n var isClicked, isInGroup, notInLegend, otherState;\n var isIsolated = true;\n for(i = 0; i < fullData.length; i++) {\n isClicked = fullData[i] === fullTrace;\n notInLegend = fullData[i].showlegend !== true;\n if(isClicked || notInLegend) continue;\n\n isInGroup = (hasLegendgroup && fullData[i].legendgroup === legendgroup);\n\n if(!isInGroup && fullData[i].visible === true && !Registry.traceIs(fullData[i], 'notLegendIsolatable')) {\n isIsolated = false;\n break;\n }\n }\n\n for(i = 0; i < fullData.length; i++) {\n // False is sticky; we don't change it.\n if(fullData[i].visible === false) continue;\n\n if(Registry.traceIs(fullData[i], 'notLegendIsolatable')) {\n continue;\n }\n\n switch(fullTrace.visible) {\n case 'legendonly':\n setVisibility(fullData[i], true);\n break;\n case true:\n otherState = isIsolated ? true : 'legendonly';\n isClicked = fullData[i] === fullTrace;\n // N.B. consider traces that have a set legendgroup as toggleable\n notInLegend = (fullData[i].showlegend !== true && !fullData[i].legendgroup);\n isInGroup = isClicked || (hasLegendgroup && fullData[i].legendgroup === legendgroup);\n setVisibility(fullData[i], (isInGroup || notInLegend) ? true : otherState);\n break;\n }\n }\n }\n\n for(i = 0; i < carrs.length; i++) {\n kcont = carrs[i];\n if(!kcont) continue;\n var update = kcont.constructUpdate();\n\n var updateKeys = Object.keys(update);\n for(j = 0; j < updateKeys.length; j++) {\n key = updateKeys[j];\n val = attrUpdate[key] = attrUpdate[key] || [];\n val[carrIdx[i]] = update[key];\n }\n }\n\n // The length of the value arrays should be equal and any unspecified\n // values should be explicitly undefined for them to get properly culled\n // as updates and not accidentally reset to the default value. This fills\n // out sparse arrays with the required number of undefined values:\n keys = Object.keys(attrUpdate);\n for(i = 0; i < keys.length; i++) {\n key = keys[i];\n for(j = 0; j < attrIndices.length; j++) {\n // Use hasOwnProperty to protect against falsy values:\n if(!attrUpdate[key].hasOwnProperty(j)) {\n attrUpdate[key][j] = undefined;\n }\n }\n }\n\n Registry.call('_guiRestyle', gd, attrUpdate, attrIndices);\n }\n};\n\n},{\"../../lib\":503,\"../../registry\":638}],422:[function(_dereq_,module,exports){\n'use strict';\n\nexports.isGrouped = function isGrouped(legendLayout) {\n return (legendLayout.traceorder || '').indexOf('grouped') !== -1;\n};\n\nexports.isVertical = function isVertical(legendLayout) {\n return legendLayout.orientation !== 'h';\n};\n\nexports.isReversed = function isReversed(legendLayout) {\n return (legendLayout.traceorder || '').indexOf('reversed') !== -1;\n};\n\n},{}],423:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = {\n moduleType: 'component',\n name: 'legend',\n\n layoutAttributes: _dereq_('./attributes'),\n supplyLayoutDefaults: _dereq_('./defaults'),\n\n draw: _dereq_('./draw'),\n style: _dereq_('./style')\n};\n\n},{\"./attributes\":416,\"./defaults\":418,\"./draw\":419,\"./style\":424}],424:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar strTranslate = Lib.strTranslate;\nvar Drawing = _dereq_('../drawing');\nvar Color = _dereq_('../color');\nvar extractOpts = _dereq_('../colorscale/helpers').extractOpts;\n\nvar subTypes = _dereq_('../../traces/scatter/subtypes');\nvar stylePie = _dereq_('../../traces/pie/style_one');\nvar pieCastOption = _dereq_('../../traces/pie/helpers').castOption;\n\nvar constants = _dereq_('./constants');\n\nvar CST_MARKER_SIZE = 12;\nvar CST_LINE_WIDTH = 5;\nvar CST_MARKER_LINE_WIDTH = 2;\nvar MAX_LINE_WIDTH = 10;\nvar MAX_MARKER_LINE_WIDTH = 5;\n\nmodule.exports = function style(s, gd, legend) {\n var fullLayout = gd._fullLayout;\n if(!legend) legend = fullLayout.legend;\n var constantItemSizing = legend.itemsizing === 'constant';\n var itemWidth = legend.itemwidth;\n var centerPos = (itemWidth + constants.itemGap * 2) / 2;\n var centerTransform = strTranslate(centerPos, 0);\n\n var boundLineWidth = function(mlw, cont, max, cst) {\n var v;\n if(mlw + 1) {\n v = mlw;\n } else if(cont && cont.width > 0) {\n v = cont.width;\n } else {\n return 0;\n }\n return constantItemSizing ? cst : Math.min(v, max);\n };\n\n s.each(function(d) {\n var traceGroup = d3.select(this);\n\n var layers = Lib.ensureSingle(traceGroup, 'g', 'layers');\n layers.style('opacity', d[0].trace.opacity);\n\n var valign = legend.valign;\n var lineHeight = d[0].lineHeight;\n var height = d[0].height;\n\n if(valign === 'middle' || !lineHeight || !height) {\n layers.attr('transform', null);\n } else {\n var factor = {top: 1, bottom: -1}[valign];\n var markerOffsetY = factor * (0.5 * (lineHeight - height + 3));\n layers.attr('transform', strTranslate(0, markerOffsetY));\n }\n\n var fill = layers\n .selectAll('g.legendfill')\n .data([d]);\n fill.enter().append('g')\n .classed('legendfill', true);\n\n var line = layers\n .selectAll('g.legendlines')\n .data([d]);\n line.enter().append('g')\n .classed('legendlines', true);\n\n var symbol = layers\n .selectAll('g.legendsymbols')\n .data([d]);\n symbol.enter().append('g')\n .classed('legendsymbols', true);\n\n symbol.selectAll('g.legendpoints')\n .data([d])\n .enter().append('g')\n .classed('legendpoints', true);\n })\n .each(styleSpatial)\n .each(styleWaterfalls)\n .each(styleFunnels)\n .each(styleBars)\n .each(styleBoxes)\n .each(styleFunnelareas)\n .each(stylePies)\n .each(styleLines)\n .each(stylePoints)\n .each(styleCandles)\n .each(styleOHLC);\n\n function styleLines(d) {\n var styleGuide = getStyleGuide(d);\n var showFill = styleGuide.showFill;\n var showLine = styleGuide.showLine;\n var showGradientLine = styleGuide.showGradientLine;\n var showGradientFill = styleGuide.showGradientFill;\n var anyFill = styleGuide.anyFill;\n var anyLine = styleGuide.anyLine;\n\n var d0 = d[0];\n var trace = d0.trace;\n var dMod, tMod;\n\n var cOpts = extractOpts(trace);\n var colorscale = cOpts.colorscale;\n var reversescale = cOpts.reversescale;\n\n var fillGradient = function(s) {\n if(s.size()) {\n var gradientID = 'legendfill-' + trace.uid;\n Drawing.gradient(s, gd, gradientID,\n getGradientDirection(reversescale),\n colorscale, 'fill');\n }\n };\n\n var lineGradient = function(s) {\n if(s.size()) {\n var gradientID = 'legendline-' + trace.uid;\n Drawing.lineGroupStyle(s);\n Drawing.gradient(s, gd, gradientID,\n getGradientDirection(reversescale),\n colorscale, 'stroke');\n }\n };\n\n // with fill and no markers or text, move the line and fill up a bit\n // so it's more centered\n\n var pathStart = (subTypes.hasMarkers(trace) || !anyFill) ? 'M5,0' :\n // with a line leave it slightly below center, to leave room for the\n // line thickness and because the line is usually more prominent\n anyLine ? 'M5,-2' : 'M5,-3';\n\n var this3 = d3.select(this);\n\n var fill = this3.select('.legendfill').selectAll('path')\n .data(showFill || showGradientFill ? [d] : []);\n fill.enter().append('path').classed('js-fill', true);\n fill.exit().remove();\n fill.attr('d', pathStart + 'h' + itemWidth + 'v6h-' + itemWidth + 'z')\n .call(showFill ? Drawing.fillGroupStyle : fillGradient);\n\n if(showLine || showGradientLine) {\n var lw = boundLineWidth(undefined, trace.line, MAX_LINE_WIDTH, CST_LINE_WIDTH);\n tMod = Lib.minExtend(trace, {line: {width: lw}});\n dMod = [Lib.minExtend(d0, {trace: tMod})];\n }\n\n var line = this3.select('.legendlines').selectAll('path')\n .data(showLine || showGradientLine ? [dMod] : []);\n line.enter().append('path').classed('js-line', true);\n line.exit().remove();\n\n // this is ugly... but you can't apply a gradient to a perfectly\n // horizontal or vertical line. Presumably because then\n // the system doesn't know how to scale vertical variation, even\n // though there *is* no vertical variation in this case.\n // so add an invisibly small angle to the line\n // This issue (and workaround) exist across (Mac) Chrome, FF, and Safari\n line.attr('d', pathStart + (showGradientLine ? 'l' + itemWidth + ',0.0001' : 'h' + itemWidth))\n .call(showLine ? Drawing.lineGroupStyle : lineGradient);\n }\n\n function stylePoints(d) {\n var styleGuide = getStyleGuide(d);\n var anyFill = styleGuide.anyFill;\n var anyLine = styleGuide.anyLine;\n var showLine = styleGuide.showLine;\n var showMarker = styleGuide.showMarker;\n\n var d0 = d[0];\n var trace = d0.trace;\n var showText = !showMarker && !anyLine && !anyFill && subTypes.hasText(trace);\n var dMod, tMod;\n\n // 'scatter3d' don't use gd.calcdata,\n // use d0.trace to infer arrayOk attributes\n\n function boundVal(attrIn, arrayToValFn, bounds, cst) {\n var valIn = Lib.nestedProperty(trace, attrIn).get();\n var valToBound = (Lib.isArrayOrTypedArray(valIn) && arrayToValFn) ?\n arrayToValFn(valIn) :\n valIn;\n\n if(constantItemSizing && valToBound && cst !== undefined) {\n valToBound = cst;\n }\n\n if(bounds) {\n if(valToBound < bounds[0]) return bounds[0];\n else if(valToBound > bounds[1]) return bounds[1];\n }\n return valToBound;\n }\n\n function pickFirst(array) {\n if(d0._distinct && d0.index && array[d0.index]) return array[d0.index];\n return array[0];\n }\n\n // constrain text, markers, etc so they'll fit on the legend\n if(showMarker || showText || showLine) {\n var dEdit = {};\n var tEdit = {};\n\n if(showMarker) {\n dEdit.mc = boundVal('marker.color', pickFirst);\n dEdit.mx = boundVal('marker.symbol', pickFirst);\n dEdit.mo = boundVal('marker.opacity', Lib.mean, [0.2, 1]);\n dEdit.mlc = boundVal('marker.line.color', pickFirst);\n dEdit.mlw = boundVal('marker.line.width', Lib.mean, [0, 5], CST_MARKER_LINE_WIDTH);\n tEdit.marker = {\n sizeref: 1,\n sizemin: 1,\n sizemode: 'diameter'\n };\n\n var ms = boundVal('marker.size', Lib.mean, [2, 16], CST_MARKER_SIZE);\n dEdit.ms = ms;\n tEdit.marker.size = ms;\n }\n\n if(showLine) {\n tEdit.line = {\n width: boundVal('line.width', pickFirst, [0, 10], CST_LINE_WIDTH)\n };\n }\n\n if(showText) {\n dEdit.tx = 'Aa';\n dEdit.tp = boundVal('textposition', pickFirst);\n dEdit.ts = 10;\n dEdit.tc = boundVal('textfont.color', pickFirst);\n dEdit.tf = boundVal('textfont.family', pickFirst);\n }\n\n dMod = [Lib.minExtend(d0, dEdit)];\n tMod = Lib.minExtend(trace, tEdit);\n\n // always show legend items in base state\n tMod.selectedpoints = null;\n\n // never show texttemplate\n tMod.texttemplate = null;\n }\n\n var ptgroup = d3.select(this).select('g.legendpoints');\n\n var pts = ptgroup.selectAll('path.scatterpts')\n .data(showMarker ? dMod : []);\n // make sure marker is on the bottom, in case it enters after text\n pts.enter().insert('path', ':first-child')\n .classed('scatterpts', true)\n .attr('transform', centerTransform);\n pts.exit().remove();\n pts.call(Drawing.pointStyle, tMod, gd);\n\n // 'mrc' is set in pointStyle and used in textPointStyle:\n // constrain it here\n if(showMarker) dMod[0].mrc = 3;\n\n var txt = ptgroup.selectAll('g.pointtext')\n .data(showText ? dMod : []);\n txt.enter()\n .append('g').classed('pointtext', true)\n .append('text').attr('transform', centerTransform);\n txt.exit().remove();\n txt.selectAll('text').call(Drawing.textPointStyle, tMod, gd);\n }\n\n function styleWaterfalls(d) {\n var trace = d[0].trace;\n var isWaterfall = trace.type === 'waterfall';\n\n if(d[0]._distinct && isWaterfall) {\n var cont = d[0].trace[d[0].dir].marker;\n d[0].mc = cont.color;\n d[0].mlw = cont.line.width;\n d[0].mlc = cont.line.color;\n return styleBarLike(d, this, 'waterfall');\n }\n\n var ptsData = [];\n if(trace.visible && isWaterfall) {\n ptsData = d[0].hasTotals ?\n [['increasing', 'M-6,-6V6H0Z'], ['totals', 'M6,6H0L-6,-6H-0Z'], ['decreasing', 'M6,6V-6H0Z']] :\n [['increasing', 'M-6,-6V6H6Z'], ['decreasing', 'M6,6V-6H-6Z']];\n }\n\n var pts = d3.select(this).select('g.legendpoints')\n .selectAll('path.legendwaterfall')\n .data(ptsData);\n pts.enter().append('path').classed('legendwaterfall', true)\n .attr('transform', centerTransform)\n .style('stroke-miterlimit', 1);\n pts.exit().remove();\n\n pts.each(function(dd) {\n var pt = d3.select(this);\n var cont = trace[dd[0]].marker;\n var lw = boundLineWidth(undefined, cont.line, MAX_MARKER_LINE_WIDTH, CST_MARKER_LINE_WIDTH);\n\n pt.attr('d', dd[1])\n .style('stroke-width', lw + 'px')\n .call(Color.fill, cont.color);\n\n if(lw) {\n pt.call(Color.stroke, cont.line.color);\n }\n });\n }\n\n function styleBars(d) {\n styleBarLike(d, this);\n }\n\n function styleFunnels(d) {\n styleBarLike(d, this, 'funnel');\n }\n\n function styleBarLike(d, lThis, desiredType) {\n var trace = d[0].trace;\n var marker = trace.marker || {};\n var markerLine = marker.line || {};\n\n var isVisible = (!desiredType) ? Registry.traceIs(trace, 'bar') :\n (trace.visible && trace.type === desiredType);\n\n var barpath = d3.select(lThis).select('g.legendpoints')\n .selectAll('path.legend' + desiredType)\n .data(isVisible ? [d] : []);\n barpath.enter().append('path').classed('legend' + desiredType, true)\n .attr('d', 'M6,6H-6V-6H6Z')\n .attr('transform', centerTransform);\n barpath.exit().remove();\n\n barpath.each(function(d) {\n var p = d3.select(this);\n var d0 = d[0];\n var w = boundLineWidth(d0.mlw, marker.line, MAX_MARKER_LINE_WIDTH, CST_MARKER_LINE_WIDTH);\n\n p.style('stroke-width', w + 'px');\n\n var mcc = d0.mcc;\n if(!legend._inHover && 'mc' in d0) {\n // not in unified hover but\n // for legend use the color in the middle of scale\n var cOpts = extractOpts(marker);\n var mid = cOpts.mid;\n if(mid === undefined) mid = (cOpts.max + cOpts.min) / 2;\n mcc = Drawing.tryColorscale(marker, '')(mid);\n }\n var fillColor = mcc || d0.mc || marker.color;\n\n var markerPattern = marker.pattern;\n var patternShape = markerPattern && Drawing.getPatternAttr(markerPattern.shape, 0, '');\n\n if(patternShape) {\n var patternBGColor = Drawing.getPatternAttr(markerPattern.bgcolor, 0, null);\n var patternFGColor = Drawing.getPatternAttr(markerPattern.fgcolor, 0, null);\n var patternFGOpacity = markerPattern.fgopacity;\n var patternSize = dimAttr(markerPattern.size, 8, 10);\n var patternSolidity = dimAttr(markerPattern.solidity, 0.5, 1);\n var patternID = 'legend-' + trace.uid;\n p.call(\n Drawing.pattern, 'legend', gd, patternID,\n patternShape, patternSize, patternSolidity,\n mcc, markerPattern.fillmode,\n patternBGColor, patternFGColor, patternFGOpacity\n );\n } else {\n p.call(Color.fill, fillColor);\n }\n\n if(w) Color.stroke(p, d0.mlc || markerLine.color);\n });\n }\n\n function styleBoxes(d) {\n var trace = d[0].trace;\n\n var pts = d3.select(this).select('g.legendpoints')\n .selectAll('path.legendbox')\n .data(trace.visible && Registry.traceIs(trace, 'box-violin') ? [d] : []);\n pts.enter().append('path').classed('legendbox', true)\n // if we want the median bar, prepend M6,0H-6\n .attr('d', 'M6,6H-6V-6H6Z')\n .attr('transform', centerTransform);\n pts.exit().remove();\n\n pts.each(function() {\n var p = d3.select(this);\n\n if((trace.boxpoints === 'all' || trace.points === 'all') &&\n Color.opacity(trace.fillcolor) === 0 && Color.opacity((trace.line || {}).color) === 0\n ) {\n var tMod = Lib.minExtend(trace, {\n marker: {\n size: constantItemSizing ? CST_MARKER_SIZE : Lib.constrain(trace.marker.size, 2, 16),\n sizeref: 1,\n sizemin: 1,\n sizemode: 'diameter'\n }\n });\n pts.call(Drawing.pointStyle, tMod, gd);\n } else {\n var w = boundLineWidth(undefined, trace.line, MAX_MARKER_LINE_WIDTH, CST_MARKER_LINE_WIDTH);\n\n p.style('stroke-width', w + 'px')\n .call(Color.fill, trace.fillcolor);\n\n if(w) Color.stroke(p, trace.line.color);\n }\n });\n }\n\n function styleCandles(d) {\n var trace = d[0].trace;\n\n var pts = d3.select(this).select('g.legendpoints')\n .selectAll('path.legendcandle')\n .data(trace.visible && trace.type === 'candlestick' ? [d, d] : []);\n pts.enter().append('path').classed('legendcandle', true)\n .attr('d', function(_, i) {\n if(i) return 'M-15,0H-8M-8,6V-6H8Z'; // increasing\n return 'M15,0H8M8,-6V6H-8Z'; // decreasing\n })\n .attr('transform', centerTransform)\n .style('stroke-miterlimit', 1);\n pts.exit().remove();\n\n pts.each(function(_, i) {\n var p = d3.select(this);\n var cont = trace[i ? 'increasing' : 'decreasing'];\n var w = boundLineWidth(undefined, cont.line, MAX_MARKER_LINE_WIDTH, CST_MARKER_LINE_WIDTH);\n\n p.style('stroke-width', w + 'px')\n .call(Color.fill, cont.fillcolor);\n\n if(w) Color.stroke(p, cont.line.color);\n });\n }\n\n function styleOHLC(d) {\n var trace = d[0].trace;\n\n var pts = d3.select(this).select('g.legendpoints')\n .selectAll('path.legendohlc')\n .data(trace.visible && trace.type === 'ohlc' ? [d, d] : []);\n pts.enter().append('path').classed('legendohlc', true)\n .attr('d', function(_, i) {\n if(i) return 'M-15,0H0M-8,-6V0'; // increasing\n return 'M15,0H0M8,6V0'; // decreasing\n })\n .attr('transform', centerTransform)\n .style('stroke-miterlimit', 1);\n pts.exit().remove();\n\n pts.each(function(_, i) {\n var p = d3.select(this);\n var cont = trace[i ? 'increasing' : 'decreasing'];\n var w = boundLineWidth(undefined, cont.line, MAX_MARKER_LINE_WIDTH, CST_MARKER_LINE_WIDTH);\n\n p.style('fill', 'none')\n .call(Drawing.dashLine, cont.line.dash, w);\n\n if(w) Color.stroke(p, cont.line.color);\n });\n }\n\n function stylePies(d) {\n stylePieLike(d, this, 'pie');\n }\n\n function styleFunnelareas(d) {\n stylePieLike(d, this, 'funnelarea');\n }\n\n function stylePieLike(d, lThis, desiredType) {\n var d0 = d[0];\n var trace = d0.trace;\n\n var isVisible = (!desiredType) ? Registry.traceIs(trace, desiredType) :\n (trace.visible && trace.type === desiredType);\n\n var pts = d3.select(lThis).select('g.legendpoints')\n .selectAll('path.legend' + desiredType)\n .data(isVisible ? [d] : []);\n pts.enter().append('path').classed('legend' + desiredType, true)\n .attr('d', 'M6,6H-6V-6H6Z')\n .attr('transform', centerTransform);\n pts.exit().remove();\n\n if(pts.size()) {\n var cont = (trace.marker || {}).line;\n var lw = boundLineWidth(pieCastOption(cont.width, d0.pts), cont, MAX_MARKER_LINE_WIDTH, CST_MARKER_LINE_WIDTH);\n\n var tMod = Lib.minExtend(trace, {marker: {line: {width: lw}}});\n // since minExtend do not slice more than 3 items we need to patch line.color here\n tMod.marker.line.color = cont.color;\n\n var d0Mod = Lib.minExtend(d0, {trace: tMod});\n\n stylePie(pts, d0Mod, tMod);\n }\n }\n\n function styleSpatial(d) { // i.e. maninly traces having z and colorscale\n var trace = d[0].trace;\n\n var useGradient;\n var ptsData = [];\n if(trace.visible) {\n switch(trace.type) {\n case 'histogram2d' :\n case 'heatmap' :\n ptsData = [\n ['M-15,-2V4H15V-2Z'] // similar to contour\n ];\n useGradient = true;\n break;\n case 'choropleth' :\n case 'choroplethmapbox' :\n ptsData = [\n ['M-6,-6V6H6V-6Z']\n ];\n useGradient = true;\n break;\n case 'densitymapbox' :\n ptsData = [\n ['M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0']\n ];\n useGradient = 'radial';\n break;\n case 'cone' :\n ptsData = [\n ['M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z'],\n ['M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z'],\n ['M-6,-2 A2,2 0 0,0 -6,2 L6,0Z']\n ];\n useGradient = false;\n break;\n case 'streamtube' :\n ptsData = [\n ['M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z'],\n ['M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z'],\n ['M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z']\n ];\n useGradient = false;\n break;\n case 'surface' :\n ptsData = [\n ['M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z'],\n ['M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z']\n ];\n useGradient = true;\n break;\n case 'mesh3d' :\n ptsData = [\n ['M-6,6H0L-6,-6Z'],\n ['M6,6H0L6,-6Z'],\n ['M-6,-6H6L0,6Z']\n ];\n useGradient = false;\n break;\n case 'volume' :\n ptsData = [\n ['M-6,6H0L-6,-6Z'],\n ['M6,6H0L6,-6Z'],\n ['M-6,-6H6L0,6Z']\n ];\n useGradient = true;\n break;\n case 'isosurface':\n ptsData = [\n ['M-6,6H0L-6,-6Z'],\n ['M6,6H0L6,-6Z'],\n ['M-6,-6 A12,24 0 0,0 6,-6 L0,6Z']\n ];\n useGradient = false;\n break;\n }\n }\n\n var pts = d3.select(this).select('g.legendpoints')\n .selectAll('path.legend3dandfriends')\n .data(ptsData);\n pts.enter().append('path').classed('legend3dandfriends', true)\n .attr('transform', centerTransform)\n .style('stroke-miterlimit', 1);\n pts.exit().remove();\n\n pts.each(function(dd, i) {\n var pt = d3.select(this);\n\n var cOpts = extractOpts(trace);\n var colorscale = cOpts.colorscale;\n var reversescale = cOpts.reversescale;\n var fillGradient = function(s) {\n if(s.size()) {\n var gradientID = 'legendfill-' + trace.uid;\n Drawing.gradient(s, gd, gradientID,\n getGradientDirection(reversescale, useGradient === 'radial'),\n colorscale, 'fill');\n }\n };\n\n var fillColor;\n if(!colorscale) {\n var color = trace.vertexcolor || trace.facecolor || trace.color;\n fillColor = Lib.isArrayOrTypedArray(color) ? (color[i] || color[0]) : color;\n } else {\n if(!useGradient) {\n var len = colorscale.length;\n fillColor =\n i === 0 ? colorscale[reversescale ? len - 1 : 0][1] : // minimum\n i === 1 ? colorscale[reversescale ? 0 : len - 1][1] : // maximum\n colorscale[Math.floor((len - 1) / 2)][1]; // middle\n }\n }\n\n pt.attr('d', dd[0]);\n if(fillColor) {\n pt.call(Color.fill, fillColor);\n } else {\n pt.call(fillGradient);\n }\n });\n }\n};\n\nfunction getGradientDirection(reversescale, isRadial) {\n var str = isRadial ? 'radial' : 'horizontal';\n return str + (reversescale ? '' : 'reversed');\n}\n\nfunction getStyleGuide(d) {\n var trace = d[0].trace;\n var contours = trace.contours;\n var showLine = subTypes.hasLines(trace);\n var showMarker = subTypes.hasMarkers(trace);\n\n var showFill = trace.visible && trace.fill && trace.fill !== 'none';\n var showGradientLine = false;\n var showGradientFill = false;\n\n if(contours) {\n var coloring = contours.coloring;\n\n if(coloring === 'lines') {\n showGradientLine = true;\n } else {\n showLine = coloring === 'none' || coloring === 'heatmap' || contours.showlines;\n }\n\n if(contours.type === 'constraint') {\n showFill = contours._operation !== '=';\n } else if(coloring === 'fill' || coloring === 'heatmap') {\n showGradientFill = true;\n }\n }\n\n return {\n showMarker: showMarker,\n showLine: showLine,\n showFill: showFill,\n showGradientLine: showGradientLine,\n showGradientFill: showGradientFill,\n anyLine: showLine || showGradientLine,\n anyFill: showFill || showGradientFill,\n };\n}\n\nfunction dimAttr(v, dflt, max) {\n if(v && Lib.isArrayOrTypedArray(v)) return dflt;\n if(v > max) return max;\n return v;\n}\n\n},{\"../../lib\":503,\"../../registry\":638,\"../../traces/pie/helpers\":904,\"../../traces/pie/style_one\":910,\"../../traces/scatter/subtypes\":950,\"../color\":366,\"../colorscale/helpers\":377,\"../drawing\":388,\"./constants\":417,\"@plotly/d3\":58}],425:[function(_dereq_,module,exports){\n'use strict';\n\nvar constants = _dereq_('./constants');\n\nmodule.exports = {\n editType: 'modebar',\n\n orientation: {\n valType: 'enumerated',\n values: ['v', 'h'],\n dflt: 'h',\n editType: 'modebar',\n },\n bgcolor: {\n valType: 'color',\n editType: 'modebar',\n },\n color: {\n valType: 'color',\n editType: 'modebar',\n },\n activecolor: {\n valType: 'color',\n editType: 'modebar',\n },\n uirevision: {\n valType: 'any',\n editType: 'none',\n },\n add: {\n valType: 'string',\n arrayOk: true,\n dflt: '',\n editType: 'modebar',\n },\n remove: {\n valType: 'string',\n arrayOk: true,\n dflt: '',\n editType: 'modebar',\n }\n};\n\n},{\"./constants\":427}],426:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar Plots = _dereq_('../../plots/plots');\nvar axisIds = _dereq_('../../plots/cartesian/axis_ids');\nvar Icons = _dereq_('../../fonts/ploticon');\nvar eraseActiveShape = _dereq_('../shapes/draw').eraseActiveShape;\nvar Lib = _dereq_('../../lib');\nvar _ = Lib._;\n\nvar modeBarButtons = module.exports = {};\n\n/**\n * ModeBar buttons configuration\n *\n * @param {string} name\n * name / id of the buttons (for tracking)\n * @param {string} title\n * text that appears while hovering over the button,\n * enter null, false or '' for no hover text\n * @param {string} icon\n * svg icon object associated with the button\n * can be linked to Plotly.Icons to use the default plotly icons\n * @param {string} [gravity]\n * icon positioning\n * @param {function} click\n * click handler associated with the button, a function of\n * 'gd' (the main graph object) and\n * 'ev' (the event object)\n * @param {string} [attr]\n * attribute associated with button,\n * use this with 'val' to keep track of the state\n * @param {*} [val]\n * initial 'attr' value, can be a function of gd\n * @param {boolean} [toggle]\n * is the button a toggle button?\n */\nmodeBarButtons.toImage = {\n name: 'toImage',\n title: function(gd) {\n var opts = gd._context.toImageButtonOptions || {};\n var format = opts.format || 'png';\n return format === 'png' ?\n _(gd, 'Download plot as a png') : // legacy text\n _(gd, 'Download plot'); // generic non-PNG text\n },\n icon: Icons.camera,\n click: function(gd) {\n var toImageButtonOptions = gd._context.toImageButtonOptions;\n var opts = {format: toImageButtonOptions.format || 'png'};\n\n Lib.notifier(_(gd, 'Taking snapshot - this may take a few seconds'), 'long');\n\n if(opts.format !== 'svg' && Lib.isIE()) {\n Lib.notifier(_(gd, 'IE only supports svg. Changing format to svg.'), 'long');\n opts.format = 'svg';\n }\n\n ['filename', 'width', 'height', 'scale'].forEach(function(key) {\n if(key in toImageButtonOptions) {\n opts[key] = toImageButtonOptions[key];\n }\n });\n\n Registry.call('downloadImage', gd, opts)\n .then(function(filename) {\n Lib.notifier(_(gd, 'Snapshot succeeded') + ' - ' + filename, 'long');\n })\n .catch(function() {\n Lib.notifier(_(gd, 'Sorry, there was a problem downloading your snapshot!'), 'long');\n });\n }\n};\n\nmodeBarButtons.sendDataToCloud = {\n name: 'sendDataToCloud',\n title: function(gd) { return _(gd, 'Edit in Chart Studio'); },\n icon: Icons.disk,\n click: function(gd) {\n Plots.sendDataToCloud(gd);\n }\n};\n\nmodeBarButtons.editInChartStudio = {\n name: 'editInChartStudio',\n title: function(gd) { return _(gd, 'Edit in Chart Studio'); },\n icon: Icons.pencil,\n click: function(gd) {\n Plots.sendDataToCloud(gd);\n }\n};\n\nmodeBarButtons.zoom2d = {\n name: 'zoom2d',\n _cat: 'zoom',\n title: function(gd) { return _(gd, 'Zoom'); },\n attr: 'dragmode',\n val: 'zoom',\n icon: Icons.zoombox,\n click: handleCartesian\n};\n\nmodeBarButtons.pan2d = {\n name: 'pan2d',\n _cat: 'pan',\n title: function(gd) { return _(gd, 'Pan'); },\n attr: 'dragmode',\n val: 'pan',\n icon: Icons.pan,\n click: handleCartesian\n};\n\nmodeBarButtons.select2d = {\n name: 'select2d',\n _cat: 'select',\n title: function(gd) { return _(gd, 'Box Select'); },\n attr: 'dragmode',\n val: 'select',\n icon: Icons.selectbox,\n click: handleCartesian\n};\n\nmodeBarButtons.lasso2d = {\n name: 'lasso2d',\n _cat: 'lasso',\n title: function(gd) { return _(gd, 'Lasso Select'); },\n attr: 'dragmode',\n val: 'lasso',\n icon: Icons.lasso,\n click: handleCartesian\n};\n\nmodeBarButtons.drawclosedpath = {\n name: 'drawclosedpath',\n title: function(gd) { return _(gd, 'Draw closed freeform'); },\n attr: 'dragmode',\n val: 'drawclosedpath',\n icon: Icons.drawclosedpath,\n click: handleCartesian\n};\n\nmodeBarButtons.drawopenpath = {\n name: 'drawopenpath',\n title: function(gd) { return _(gd, 'Draw open freeform'); },\n attr: 'dragmode',\n val: 'drawopenpath',\n icon: Icons.drawopenpath,\n click: handleCartesian\n};\n\nmodeBarButtons.drawline = {\n name: 'drawline',\n title: function(gd) { return _(gd, 'Draw line'); },\n attr: 'dragmode',\n val: 'drawline',\n icon: Icons.drawline,\n click: handleCartesian\n};\n\nmodeBarButtons.drawrect = {\n name: 'drawrect',\n title: function(gd) { return _(gd, 'Draw rectangle'); },\n attr: 'dragmode',\n val: 'drawrect',\n icon: Icons.drawrect,\n click: handleCartesian\n};\n\nmodeBarButtons.drawcircle = {\n name: 'drawcircle',\n title: function(gd) { return _(gd, 'Draw circle'); },\n attr: 'dragmode',\n val: 'drawcircle',\n icon: Icons.drawcircle,\n click: handleCartesian\n};\n\nmodeBarButtons.eraseshape = {\n name: 'eraseshape',\n title: function(gd) { return _(gd, 'Erase active shape'); },\n icon: Icons.eraseshape,\n click: eraseActiveShape\n};\n\nmodeBarButtons.zoomIn2d = {\n name: 'zoomIn2d',\n _cat: 'zoomin',\n title: function(gd) { return _(gd, 'Zoom in'); },\n attr: 'zoom',\n val: 'in',\n icon: Icons.zoom_plus,\n click: handleCartesian\n};\n\nmodeBarButtons.zoomOut2d = {\n name: 'zoomOut2d',\n _cat: 'zoomout',\n title: function(gd) { return _(gd, 'Zoom out'); },\n attr: 'zoom',\n val: 'out',\n icon: Icons.zoom_minus,\n click: handleCartesian\n};\n\nmodeBarButtons.autoScale2d = {\n name: 'autoScale2d',\n _cat: 'autoscale',\n title: function(gd) { return _(gd, 'Autoscale'); },\n attr: 'zoom',\n val: 'auto',\n icon: Icons.autoscale,\n click: handleCartesian\n};\n\nmodeBarButtons.resetScale2d = {\n name: 'resetScale2d',\n _cat: 'resetscale',\n title: function(gd) { return _(gd, 'Reset axes'); },\n attr: 'zoom',\n val: 'reset',\n icon: Icons.home,\n click: handleCartesian\n};\n\nmodeBarButtons.hoverClosestCartesian = {\n name: 'hoverClosestCartesian',\n _cat: 'hoverclosest',\n title: function(gd) { return _(gd, 'Show closest data on hover'); },\n attr: 'hovermode',\n val: 'closest',\n icon: Icons.tooltip_basic,\n gravity: 'ne',\n click: handleCartesian\n};\n\nmodeBarButtons.hoverCompareCartesian = {\n name: 'hoverCompareCartesian',\n _cat: 'hoverCompare',\n title: function(gd) { return _(gd, 'Compare data on hover'); },\n attr: 'hovermode',\n val: function(gd) {\n return gd._fullLayout._isHoriz ? 'y' : 'x';\n },\n icon: Icons.tooltip_compare,\n gravity: 'ne',\n click: handleCartesian\n};\n\nfunction handleCartesian(gd, ev) {\n var button = ev.currentTarget;\n var astr = button.getAttribute('data-attr');\n var val = button.getAttribute('data-val') || true;\n var fullLayout = gd._fullLayout;\n var aobj = {};\n var axList = axisIds.list(gd, null, true);\n var allSpikesEnabled = fullLayout._cartesianSpikesEnabled;\n\n var ax, i;\n\n if(astr === 'zoom') {\n var mag = (val === 'in') ? 0.5 : 2;\n var r0 = (1 + mag) / 2;\n var r1 = (1 - mag) / 2;\n var axName;\n\n for(i = 0; i < axList.length; i++) {\n ax = axList[i];\n\n if(!ax.fixedrange) {\n axName = ax._name;\n if(val === 'auto') {\n aobj[axName + '.autorange'] = true;\n } else if(val === 'reset') {\n if(ax._rangeInitial === undefined) {\n aobj[axName + '.autorange'] = true;\n } else {\n var rangeInitial = ax._rangeInitial.slice();\n aobj[axName + '.range[0]'] = rangeInitial[0];\n aobj[axName + '.range[1]'] = rangeInitial[1];\n }\n\n // N.B. \"reset\" also resets showspikes\n if(ax._showSpikeInitial !== undefined) {\n aobj[axName + '.showspikes'] = ax._showSpikeInitial;\n if(allSpikesEnabled === 'on' && !ax._showSpikeInitial) {\n allSpikesEnabled = 'off';\n }\n }\n } else {\n var rangeNow = [\n ax.r2l(ax.range[0]),\n ax.r2l(ax.range[1]),\n ];\n\n var rangeNew = [\n r0 * rangeNow[0] + r1 * rangeNow[1],\n r0 * rangeNow[1] + r1 * rangeNow[0]\n ];\n\n aobj[axName + '.range[0]'] = ax.l2r(rangeNew[0]);\n aobj[axName + '.range[1]'] = ax.l2r(rangeNew[1]);\n }\n }\n }\n } else {\n // if ALL traces have orientation 'h', 'hovermode': 'x' otherwise: 'y'\n if(astr === 'hovermode' && (val === 'x' || val === 'y')) {\n val = fullLayout._isHoriz ? 'y' : 'x';\n button.setAttribute('data-val', val);\n }\n\n aobj[astr] = val;\n }\n\n fullLayout._cartesianSpikesEnabled = allSpikesEnabled;\n\n Registry.call('_guiRelayout', gd, aobj);\n}\n\nmodeBarButtons.zoom3d = {\n name: 'zoom3d',\n _cat: 'zoom',\n title: function(gd) { return _(gd, 'Zoom'); },\n attr: 'scene.dragmode',\n val: 'zoom',\n icon: Icons.zoombox,\n click: handleDrag3d\n};\n\nmodeBarButtons.pan3d = {\n name: 'pan3d',\n _cat: 'pan',\n title: function(gd) { return _(gd, 'Pan'); },\n attr: 'scene.dragmode',\n val: 'pan',\n icon: Icons.pan,\n click: handleDrag3d\n};\n\nmodeBarButtons.orbitRotation = {\n name: 'orbitRotation',\n title: function(gd) { return _(gd, 'Orbital rotation'); },\n attr: 'scene.dragmode',\n val: 'orbit',\n icon: Icons['3d_rotate'],\n click: handleDrag3d\n};\n\nmodeBarButtons.tableRotation = {\n name: 'tableRotation',\n title: function(gd) { return _(gd, 'Turntable rotation'); },\n attr: 'scene.dragmode',\n val: 'turntable',\n icon: Icons['z-axis'],\n click: handleDrag3d\n};\n\nfunction handleDrag3d(gd, ev) {\n var button = ev.currentTarget;\n var attr = button.getAttribute('data-attr');\n var val = button.getAttribute('data-val') || true;\n var sceneIds = gd._fullLayout._subplots.gl3d || [];\n var layoutUpdate = {};\n\n var parts = attr.split('.');\n\n for(var i = 0; i < sceneIds.length; i++) {\n layoutUpdate[sceneIds[i] + '.' + parts[1]] = val;\n }\n\n // for multi-type subplots\n var val2d = (val === 'pan') ? val : 'zoom';\n layoutUpdate.dragmode = val2d;\n\n Registry.call('_guiRelayout', gd, layoutUpdate);\n}\n\nmodeBarButtons.resetCameraDefault3d = {\n name: 'resetCameraDefault3d',\n _cat: 'resetCameraDefault',\n title: function(gd) { return _(gd, 'Reset camera to default'); },\n attr: 'resetDefault',\n icon: Icons.home,\n click: handleCamera3d\n};\n\nmodeBarButtons.resetCameraLastSave3d = {\n name: 'resetCameraLastSave3d',\n _cat: 'resetCameraLastSave',\n title: function(gd) { return _(gd, 'Reset camera to last save'); },\n attr: 'resetLastSave',\n icon: Icons.movie,\n click: handleCamera3d\n};\n\nfunction handleCamera3d(gd, ev) {\n var button = ev.currentTarget;\n var attr = button.getAttribute('data-attr');\n var resetLastSave = attr === 'resetLastSave';\n var resetDefault = attr === 'resetDefault';\n\n var fullLayout = gd._fullLayout;\n var sceneIds = fullLayout._subplots.gl3d || [];\n var aobj = {};\n\n for(var i = 0; i < sceneIds.length; i++) {\n var sceneId = sceneIds[i];\n var camera = sceneId + '.camera';\n var aspectratio = sceneId + '.aspectratio';\n var aspectmode = sceneId + '.aspectmode';\n var scene = fullLayout[sceneId]._scene;\n var didUpdate;\n\n if(resetLastSave) {\n aobj[camera + '.up'] = scene.viewInitial.up;\n aobj[camera + '.eye'] = scene.viewInitial.eye;\n aobj[camera + '.center'] = scene.viewInitial.center;\n didUpdate = true;\n } else if(resetDefault) {\n aobj[camera + '.up'] = null;\n aobj[camera + '.eye'] = null;\n aobj[camera + '.center'] = null;\n didUpdate = true;\n }\n\n if(didUpdate) {\n aobj[aspectratio + '.x'] = scene.viewInitial.aspectratio.x;\n aobj[aspectratio + '.y'] = scene.viewInitial.aspectratio.y;\n aobj[aspectratio + '.z'] = scene.viewInitial.aspectratio.z;\n aobj[aspectmode] = scene.viewInitial.aspectmode;\n }\n }\n\n Registry.call('_guiRelayout', gd, aobj);\n}\n\nmodeBarButtons.hoverClosest3d = {\n name: 'hoverClosest3d',\n _cat: 'hoverclosest',\n title: function(gd) { return _(gd, 'Toggle show closest data on hover'); },\n attr: 'hovermode',\n val: null,\n toggle: true,\n icon: Icons.tooltip_basic,\n gravity: 'ne',\n click: handleHover3d\n};\n\nfunction getNextHover3d(gd, ev) {\n var button = ev.currentTarget;\n var val = button._previousVal;\n var fullLayout = gd._fullLayout;\n var sceneIds = fullLayout._subplots.gl3d || [];\n\n var axes = ['xaxis', 'yaxis', 'zaxis'];\n\n // initialize 'current spike' object to be stored in the DOM\n var currentSpikes = {};\n var layoutUpdate = {};\n\n if(val) {\n layoutUpdate = val;\n button._previousVal = null;\n } else {\n for(var i = 0; i < sceneIds.length; i++) {\n var sceneId = sceneIds[i];\n var sceneLayout = fullLayout[sceneId];\n\n var hovermodeAStr = sceneId + '.hovermode';\n currentSpikes[hovermodeAStr] = sceneLayout.hovermode;\n layoutUpdate[hovermodeAStr] = false;\n\n // copy all the current spike attrs\n for(var j = 0; j < 3; j++) {\n var axis = axes[j];\n var spikeAStr = sceneId + '.' + axis + '.showspikes';\n layoutUpdate[spikeAStr] = false;\n currentSpikes[spikeAStr] = sceneLayout[axis].showspikes;\n }\n }\n\n button._previousVal = currentSpikes;\n }\n return layoutUpdate;\n}\n\nfunction handleHover3d(gd, ev) {\n var layoutUpdate = getNextHover3d(gd, ev);\n Registry.call('_guiRelayout', gd, layoutUpdate);\n}\n\nmodeBarButtons.zoomInGeo = {\n name: 'zoomInGeo',\n _cat: 'zoomin',\n title: function(gd) { return _(gd, 'Zoom in'); },\n attr: 'zoom',\n val: 'in',\n icon: Icons.zoom_plus,\n click: handleGeo\n};\n\nmodeBarButtons.zoomOutGeo = {\n name: 'zoomOutGeo',\n _cat: 'zoomout',\n title: function(gd) { return _(gd, 'Zoom out'); },\n attr: 'zoom',\n val: 'out',\n icon: Icons.zoom_minus,\n click: handleGeo\n};\n\nmodeBarButtons.resetGeo = {\n name: 'resetGeo',\n _cat: 'reset',\n title: function(gd) { return _(gd, 'Reset'); },\n attr: 'reset',\n val: null,\n icon: Icons.autoscale,\n click: handleGeo\n};\n\nmodeBarButtons.hoverClosestGeo = {\n name: 'hoverClosestGeo',\n _cat: 'hoverclosest',\n title: function(gd) { return _(gd, 'Toggle show closest data on hover'); },\n attr: 'hovermode',\n val: null,\n toggle: true,\n icon: Icons.tooltip_basic,\n gravity: 'ne',\n click: toggleHover\n};\n\nfunction handleGeo(gd, ev) {\n var button = ev.currentTarget;\n var attr = button.getAttribute('data-attr');\n var val = button.getAttribute('data-val') || true;\n var fullLayout = gd._fullLayout;\n var geoIds = fullLayout._subplots.geo || [];\n\n for(var i = 0; i < geoIds.length; i++) {\n var id = geoIds[i];\n var geoLayout = fullLayout[id];\n\n if(attr === 'zoom') {\n var scale = geoLayout.projection.scale;\n var newScale = (val === 'in') ? 2 * scale : 0.5 * scale;\n\n Registry.call('_guiRelayout', gd, id + '.projection.scale', newScale);\n }\n }\n\n if(attr === 'reset') {\n resetView(gd, 'geo');\n }\n}\n\nmodeBarButtons.hoverClosestGl2d = {\n name: 'hoverClosestGl2d',\n _cat: 'hoverclosest',\n title: function(gd) { return _(gd, 'Toggle show closest data on hover'); },\n attr: 'hovermode',\n val: null,\n toggle: true,\n icon: Icons.tooltip_basic,\n gravity: 'ne',\n click: toggleHover\n};\n\nmodeBarButtons.hoverClosestPie = {\n name: 'hoverClosestPie',\n _cat: 'hoverclosest',\n title: function(gd) { return _(gd, 'Toggle show closest data on hover'); },\n attr: 'hovermode',\n val: 'closest',\n icon: Icons.tooltip_basic,\n gravity: 'ne',\n click: toggleHover\n};\n\nfunction getNextHover(gd) {\n var fullLayout = gd._fullLayout;\n\n if(fullLayout.hovermode) return false;\n\n if(fullLayout._has('cartesian')) {\n return fullLayout._isHoriz ? 'y' : 'x';\n }\n return 'closest';\n}\n\nfunction toggleHover(gd) {\n var newHover = getNextHover(gd);\n Registry.call('_guiRelayout', gd, 'hovermode', newHover);\n}\n\nmodeBarButtons.resetViewSankey = {\n name: 'resetSankeyGroup',\n title: function(gd) { return _(gd, 'Reset view'); },\n icon: Icons.home,\n click: function(gd) {\n var aObj = {\n 'node.groups': [],\n 'node.x': [],\n 'node.y': []\n };\n for(var i = 0; i < gd._fullData.length; i++) {\n var viewInitial = gd._fullData[i]._viewInitial;\n aObj['node.groups'].push(viewInitial.node.groups.slice());\n aObj['node.x'].push(viewInitial.node.x.slice());\n aObj['node.y'].push(viewInitial.node.y.slice());\n }\n Registry.call('restyle', gd, aObj);\n }\n};\n\n// buttons when more then one plot types are present\n\nmodeBarButtons.toggleHover = {\n name: 'toggleHover',\n title: function(gd) { return _(gd, 'Toggle show closest data on hover'); },\n attr: 'hovermode',\n val: null,\n toggle: true,\n icon: Icons.tooltip_basic,\n gravity: 'ne',\n click: function(gd, ev) {\n var layoutUpdate = getNextHover3d(gd, ev);\n layoutUpdate.hovermode = getNextHover(gd);\n\n Registry.call('_guiRelayout', gd, layoutUpdate);\n }\n};\n\nmodeBarButtons.resetViews = {\n name: 'resetViews',\n title: function(gd) { return _(gd, 'Reset views'); },\n icon: Icons.home,\n click: function(gd, ev) {\n var button = ev.currentTarget;\n\n button.setAttribute('data-attr', 'zoom');\n button.setAttribute('data-val', 'reset');\n handleCartesian(gd, ev);\n\n button.setAttribute('data-attr', 'resetLastSave');\n handleCamera3d(gd, ev);\n\n resetView(gd, 'geo');\n resetView(gd, 'mapbox');\n }\n};\n\nmodeBarButtons.toggleSpikelines = {\n name: 'toggleSpikelines',\n title: function(gd) { return _(gd, 'Toggle Spike Lines'); },\n icon: Icons.spikeline,\n attr: '_cartesianSpikesEnabled',\n val: 'on',\n click: function(gd) {\n var fullLayout = gd._fullLayout;\n var allSpikesEnabled = fullLayout._cartesianSpikesEnabled;\n\n fullLayout._cartesianSpikesEnabled = allSpikesEnabled === 'on' ? 'off' : 'on';\n Registry.call('_guiRelayout', gd, setSpikelineVisibility(gd));\n }\n};\n\nfunction setSpikelineVisibility(gd) {\n var fullLayout = gd._fullLayout;\n var areSpikesOn = fullLayout._cartesianSpikesEnabled === 'on';\n var axList = axisIds.list(gd, null, true);\n var aobj = {};\n\n for(var i = 0; i < axList.length; i++) {\n var ax = axList[i];\n aobj[ax._name + '.showspikes'] = areSpikesOn ? true : ax._showSpikeInitial;\n }\n\n return aobj;\n}\n\nmodeBarButtons.resetViewMapbox = {\n name: 'resetViewMapbox',\n _cat: 'resetView',\n title: function(gd) { return _(gd, 'Reset view'); },\n attr: 'reset',\n icon: Icons.home,\n click: function(gd) {\n resetView(gd, 'mapbox');\n }\n};\n\nmodeBarButtons.zoomInMapbox = {\n name: 'zoomInMapbox',\n _cat: 'zoomin',\n title: function(gd) { return _(gd, 'Zoom in'); },\n attr: 'zoom',\n val: 'in',\n icon: Icons.zoom_plus,\n click: handleMapboxZoom\n};\n\nmodeBarButtons.zoomOutMapbox = {\n name: 'zoomOutMapbox',\n _cat: 'zoomout',\n title: function(gd) { return _(gd, 'Zoom out'); },\n attr: 'zoom',\n val: 'out',\n icon: Icons.zoom_minus,\n click: handleMapboxZoom\n};\n\nfunction handleMapboxZoom(gd, ev) {\n var button = ev.currentTarget;\n var val = button.getAttribute('data-val');\n var fullLayout = gd._fullLayout;\n var subplotIds = fullLayout._subplots.mapbox || [];\n var scalar = 1.05;\n var aObj = {};\n\n for(var i = 0; i < subplotIds.length; i++) {\n var id = subplotIds[i];\n var current = fullLayout[id].zoom;\n var next = (val === 'in') ? scalar * current : current / scalar;\n aObj[id + '.zoom'] = next;\n }\n\n Registry.call('_guiRelayout', gd, aObj);\n}\n\nfunction resetView(gd, subplotType) {\n var fullLayout = gd._fullLayout;\n var subplotIds = fullLayout._subplots[subplotType] || [];\n var aObj = {};\n\n for(var i = 0; i < subplotIds.length; i++) {\n var id = subplotIds[i];\n var subplotObj = fullLayout[id]._subplot;\n var viewInitial = subplotObj.viewInitial;\n var viewKeys = Object.keys(viewInitial);\n\n for(var j = 0; j < viewKeys.length; j++) {\n var key = viewKeys[j];\n aObj[id + '.' + key] = viewInitial[key];\n }\n }\n\n Registry.call('_guiRelayout', gd, aObj);\n}\n\n},{\"../../fonts/ploticon\":482,\"../../lib\":503,\"../../plots/cartesian/axis_ids\":558,\"../../plots/plots\":619,\"../../registry\":638,\"../shapes/draw\":450}],427:[function(_dereq_,module,exports){\n'use strict';\n\nvar modeBarButtons = _dereq_('./buttons');\nvar buttonList = Object.keys(modeBarButtons);\n\nvar DRAW_MODES = [\n 'drawline',\n 'drawopenpath',\n 'drawclosedpath',\n 'drawcircle',\n 'drawrect',\n 'eraseshape'\n];\n\nvar backButtons = [\n 'v1hovermode',\n 'hoverclosest',\n 'hovercompare',\n 'togglehover',\n 'togglespikelines'\n].concat(DRAW_MODES);\n\nvar foreButtons = [];\nvar addToForeButtons = function(b) {\n if(backButtons.indexOf(b._cat || b.name) !== -1) return;\n // for convenience add lowercase shotname e.g. zoomin as well fullname zoomInGeo\n var name = b.name;\n var _cat = (b._cat || b.name).toLowerCase();\n if(foreButtons.indexOf(name) === -1) foreButtons.push(name);\n if(foreButtons.indexOf(_cat) === -1) foreButtons.push(_cat);\n};\nbuttonList.forEach(function(k) {\n addToForeButtons(modeBarButtons[k]);\n});\nforeButtons.sort();\n\nmodule.exports = {\n DRAW_MODES: DRAW_MODES,\n backButtons: backButtons,\n foreButtons: foreButtons\n};\n\n},{\"./buttons\":426}],428:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Color = _dereq_('../color');\nvar Template = _dereq_('../../plot_api/plot_template');\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {\n var containerIn = layoutIn.modebar || {};\n var containerOut = Template.newContainer(layoutOut, 'modebar');\n\n function coerce(attr, dflt) {\n return Lib.coerce(containerIn, containerOut, attributes, attr, dflt);\n }\n\n coerce('orientation');\n coerce('bgcolor', Color.addOpacity(layoutOut.paper_bgcolor, 0.5));\n var defaultColor = Color.contrast(Color.rgb(layoutOut.modebar.bgcolor));\n coerce('color', Color.addOpacity(defaultColor, 0.3));\n coerce('activecolor', Color.addOpacity(defaultColor, 0.7));\n coerce('uirevision', layoutOut.uirevision);\n coerce('add');\n coerce('remove');\n};\n\n},{\"../../lib\":503,\"../../plot_api/plot_template\":543,\"../color\":366,\"./attributes\":425}],429:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'component',\n name: 'modebar',\n\n layoutAttributes: _dereq_('./attributes'),\n supplyLayoutDefaults: _dereq_('./defaults'),\n\n manage: _dereq_('./manage')\n};\n\n},{\"./attributes\":425,\"./defaults\":428,\"./manage\":430}],430:[function(_dereq_,module,exports){\n'use strict';\n\nvar axisIds = _dereq_('../../plots/cartesian/axis_ids');\nvar scatterSubTypes = _dereq_('../../traces/scatter/subtypes');\nvar Registry = _dereq_('../../registry');\nvar isUnifiedHover = _dereq_('../fx/helpers').isUnifiedHover;\n\nvar createModeBar = _dereq_('./modebar');\nvar modeBarButtons = _dereq_('./buttons');\nvar DRAW_MODES = _dereq_('./constants').DRAW_MODES;\n\n/**\n * ModeBar wrapper around 'create' and 'update',\n * chooses buttons to pass to ModeBar constructor based on\n * plot type and plot config.\n *\n * @param {object} gd main plot object\n *\n */\nmodule.exports = function manageModeBar(gd) {\n var fullLayout = gd._fullLayout;\n var context = gd._context;\n var modeBar = fullLayout._modeBar;\n\n if(!context.displayModeBar && !context.watermark) {\n if(modeBar) {\n modeBar.destroy();\n delete fullLayout._modeBar;\n }\n return;\n }\n\n if(!Array.isArray(context.modeBarButtonsToRemove)) {\n throw new Error([\n '*modeBarButtonsToRemove* configuration options',\n 'must be an array.'\n ].join(' '));\n }\n\n if(!Array.isArray(context.modeBarButtonsToAdd)) {\n throw new Error([\n '*modeBarButtonsToAdd* configuration options',\n 'must be an array.'\n ].join(' '));\n }\n\n var customButtons = context.modeBarButtons;\n var buttonGroups;\n\n if(Array.isArray(customButtons) && customButtons.length) {\n buttonGroups = fillCustomButton(customButtons);\n } else if(!context.displayModeBar && context.watermark) {\n buttonGroups = [];\n } else {\n buttonGroups = getButtonGroups(gd);\n }\n\n if(modeBar) modeBar.update(gd, buttonGroups);\n else fullLayout._modeBar = createModeBar(gd, buttonGroups);\n};\n\n// logic behind which buttons are displayed by default\nfunction getButtonGroups(gd) {\n var fullLayout = gd._fullLayout;\n var fullData = gd._fullData;\n var context = gd._context;\n\n function match(name, B) {\n if(typeof B === 'string') {\n if(B.toLowerCase() === name.toLowerCase()) return true;\n } else {\n var v0 = B.name;\n var v1 = (B._cat || B.name);\n\n if(v0 === name || v1 === name.toLowerCase()) return true;\n }\n return false;\n }\n\n var layoutAdd = fullLayout.modebar.add;\n if(typeof layoutAdd === 'string') layoutAdd = [layoutAdd];\n\n var layoutRemove = fullLayout.modebar.remove;\n if(typeof layoutRemove === 'string') layoutRemove = [layoutRemove];\n\n var buttonsToAdd = context.modeBarButtonsToAdd.concat(\n layoutAdd.filter(function(e) {\n for(var i = 0; i < context.modeBarButtonsToRemove.length; i++) {\n if(match(e, context.modeBarButtonsToRemove[i])) return false;\n }\n return true;\n })\n );\n\n var buttonsToRemove = context.modeBarButtonsToRemove.concat(\n layoutRemove.filter(function(e) {\n for(var i = 0; i < context.modeBarButtonsToAdd.length; i++) {\n if(match(e, context.modeBarButtonsToAdd[i])) return false;\n }\n return true;\n })\n );\n\n var hasCartesian = fullLayout._has('cartesian');\n var hasGL3D = fullLayout._has('gl3d');\n var hasGeo = fullLayout._has('geo');\n var hasPie = fullLayout._has('pie');\n var hasFunnelarea = fullLayout._has('funnelarea');\n var hasGL2D = fullLayout._has('gl2d');\n var hasTernary = fullLayout._has('ternary');\n var hasMapbox = fullLayout._has('mapbox');\n var hasPolar = fullLayout._has('polar');\n var hasSmith = fullLayout._has('smith');\n var hasSankey = fullLayout._has('sankey');\n var allAxesFixed = areAllAxesFixed(fullLayout);\n var hasUnifiedHoverLabel = isUnifiedHover(fullLayout.hovermode);\n\n var groups = [];\n\n function addGroup(newGroup) {\n if(!newGroup.length) return;\n\n var out = [];\n\n for(var i = 0; i < newGroup.length; i++) {\n var name = newGroup[i];\n var B = modeBarButtons[name];\n var v0 = B.name.toLowerCase();\n var v1 = (B._cat || B.name).toLowerCase();\n var found = false;\n for(var q = 0; q < buttonsToRemove.length; q++) {\n var t = buttonsToRemove[q].toLowerCase();\n if(t === v0 || t === v1) {\n found = true;\n break;\n }\n }\n if(found) continue;\n out.push(modeBarButtons[name]);\n }\n\n groups.push(out);\n }\n\n // buttons common to all plot types\n var commonGroup = ['toImage'];\n if(context.showEditInChartStudio) commonGroup.push('editInChartStudio');\n else if(context.showSendToCloud) commonGroup.push('sendDataToCloud');\n addGroup(commonGroup);\n\n var zoomGroup = [];\n var hoverGroup = [];\n var resetGroup = [];\n var dragModeGroup = [];\n\n if((hasCartesian || hasGL2D || hasPie || hasFunnelarea || hasTernary) + hasGeo + hasGL3D + hasMapbox + hasPolar + hasSmith > 1) {\n // graphs with more than one plot types get 'union buttons'\n // which reset the view or toggle hover labels across all subplots.\n hoverGroup = ['toggleHover'];\n resetGroup = ['resetViews'];\n } else if(hasGeo) {\n zoomGroup = ['zoomInGeo', 'zoomOutGeo'];\n hoverGroup = ['hoverClosestGeo'];\n resetGroup = ['resetGeo'];\n } else if(hasGL3D) {\n hoverGroup = ['hoverClosest3d'];\n resetGroup = ['resetCameraDefault3d', 'resetCameraLastSave3d'];\n } else if(hasMapbox) {\n zoomGroup = ['zoomInMapbox', 'zoomOutMapbox'];\n hoverGroup = ['toggleHover'];\n resetGroup = ['resetViewMapbox'];\n } else if(hasGL2D) {\n hoverGroup = ['hoverClosestGl2d'];\n } else if(hasPie) {\n hoverGroup = ['hoverClosestPie'];\n } else if(hasSankey) {\n hoverGroup = ['hoverClosestCartesian', 'hoverCompareCartesian'];\n resetGroup = ['resetViewSankey'];\n } else { // hasPolar, hasSmith, hasTernary\n // always show at least one hover icon.\n hoverGroup = ['toggleHover'];\n }\n // if we have cartesian, allow switching between closest and compare\n // regardless of what other types are on the plot, since they'll all\n // just treat any truthy hovermode as 'closest'\n if(hasCartesian) {\n hoverGroup = ['toggleSpikelines', 'hoverClosestCartesian', 'hoverCompareCartesian'];\n }\n if(hasNoHover(fullData) || hasUnifiedHoverLabel) {\n hoverGroup = [];\n }\n\n if((hasCartesian || hasGL2D) && !allAxesFixed) {\n zoomGroup = ['zoomIn2d', 'zoomOut2d', 'autoScale2d'];\n if(resetGroup[0] !== 'resetViews') resetGroup = ['resetScale2d'];\n }\n\n if(hasGL3D) {\n dragModeGroup = ['zoom3d', 'pan3d', 'orbitRotation', 'tableRotation'];\n } else if(((hasCartesian || hasGL2D) && !allAxesFixed) || hasTernary) {\n dragModeGroup = ['zoom2d', 'pan2d'];\n } else if(hasMapbox || hasGeo) {\n dragModeGroup = ['pan2d'];\n } else if(hasPolar) {\n dragModeGroup = ['zoom2d'];\n }\n if(isSelectable(fullData)) {\n dragModeGroup.push('select2d', 'lasso2d');\n }\n\n var enabledHoverGroup = [];\n var enableHover = function(a) {\n // return if already added\n if(enabledHoverGroup.indexOf(a) !== -1) return;\n // should be in hoverGroup\n if(hoverGroup.indexOf(a) !== -1) {\n enabledHoverGroup.push(a);\n }\n };\n if(Array.isArray(buttonsToAdd)) {\n var newList = [];\n for(var i = 0; i < buttonsToAdd.length; i++) {\n var b = buttonsToAdd[i];\n if(typeof b === 'string') {\n b = b.toLowerCase();\n\n if(DRAW_MODES.indexOf(b) !== -1) {\n // accept pre-defined drag modes i.e. shape drawing features as string\n if(\n fullLayout._has('mapbox') || // draw shapes in paper coordinate (could be improved in future to support data coordinate, when there is no pitch)\n fullLayout._has('cartesian') // draw shapes in data coordinate\n ) {\n dragModeGroup.push(b);\n }\n } else if(b === 'togglespikelines') {\n enableHover('toggleSpikelines');\n } else if(b === 'togglehover') {\n enableHover('toggleHover');\n } else if(b === 'hovercompare') {\n enableHover('hoverCompareCartesian');\n } else if(b === 'hoverclosest') {\n enableHover('hoverClosestCartesian');\n enableHover('hoverClosestGeo');\n enableHover('hoverClosest3d');\n enableHover('hoverClosestGl2d');\n enableHover('hoverClosestPie');\n } else if(b === 'v1hovermode') {\n enableHover('toggleHover');\n enableHover('hoverClosestCartesian');\n enableHover('hoverCompareCartesian');\n enableHover('hoverClosestGeo');\n enableHover('hoverClosest3d');\n enableHover('hoverClosestGl2d');\n enableHover('hoverClosestPie');\n }\n } else newList.push(b);\n }\n buttonsToAdd = newList;\n }\n\n addGroup(dragModeGroup);\n addGroup(zoomGroup.concat(resetGroup));\n addGroup(enabledHoverGroup);\n\n return appendButtonsToGroups(groups, buttonsToAdd);\n}\n\nfunction areAllAxesFixed(fullLayout) {\n var axList = axisIds.list({_fullLayout: fullLayout}, null, true);\n\n for(var i = 0; i < axList.length; i++) {\n if(!axList[i].fixedrange) {\n return false;\n }\n }\n\n return true;\n}\n\n// look for traces that support selection\n// to be updated as we add more selectPoints handlers\nfunction isSelectable(fullData) {\n var selectable = false;\n\n for(var i = 0; i < fullData.length; i++) {\n if(selectable) break;\n\n var trace = fullData[i];\n\n if(!trace._module || !trace._module.selectPoints) continue;\n\n if(Registry.traceIs(trace, 'scatter-like')) {\n if(scatterSubTypes.hasMarkers(trace) || scatterSubTypes.hasText(trace)) {\n selectable = true;\n }\n } else if(Registry.traceIs(trace, 'box-violin')) {\n if(trace.boxpoints === 'all' || trace.points === 'all') {\n selectable = true;\n }\n } else {\n // assume that in general if the trace module has selectPoints,\n // then it's selectable. Scatter is an exception to this because it must\n // have markers or text, not just be a scatter type.\n\n selectable = true;\n }\n }\n\n return selectable;\n}\n\n// check whether all trace are 'noHover'\nfunction hasNoHover(fullData) {\n for(var i = 0; i < fullData.length; i++) {\n if(!Registry.traceIs(fullData[i], 'noHover')) return false;\n }\n return true;\n}\n\nfunction appendButtonsToGroups(groups, buttons) {\n if(buttons.length) {\n if(Array.isArray(buttons[0])) {\n for(var i = 0; i < buttons.length; i++) {\n groups.push(buttons[i]);\n }\n } else groups.push(buttons);\n }\n\n return groups;\n}\n\n// fill in custom buttons referring to default mode bar buttons\nfunction fillCustomButton(customButtons) {\n for(var i = 0; i < customButtons.length; i++) {\n var buttonGroup = customButtons[i];\n\n for(var j = 0; j < buttonGroup.length; j++) {\n var button = buttonGroup[j];\n\n if(typeof button === 'string') {\n if(modeBarButtons[button] !== undefined) {\n customButtons[i][j] = modeBarButtons[button];\n } else {\n throw new Error([\n '*modeBarButtons* configuration options',\n 'invalid button name'\n ].join(' '));\n }\n }\n }\n }\n\n return customButtons;\n}\n\n},{\"../../plots/cartesian/axis_ids\":558,\"../../registry\":638,\"../../traces/scatter/subtypes\":950,\"../fx/helpers\":402,\"./buttons\":426,\"./constants\":427,\"./modebar\":431}],431:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Lib = _dereq_('../../lib');\nvar Icons = _dereq_('../../fonts/ploticon');\nvar Parser = new DOMParser();\n\n/**\n * UI controller for interactive plots\n * @Class\n * @Param {object} opts\n * @Param {object} opts.buttons nested arrays of grouped buttons config objects\n * @Param {object} opts.container container div to append modeBar\n * @Param {object} opts.graphInfo primary plot object containing data and layout\n */\nfunction ModeBar(opts) {\n this.container = opts.container;\n this.element = document.createElement('div');\n\n this.update(opts.graphInfo, opts.buttons);\n\n this.container.appendChild(this.element);\n}\n\nvar proto = ModeBar.prototype;\n\n/**\n * Update modeBar (buttons and logo)\n *\n * @param {object} graphInfo primary plot object containing data and layout\n * @param {array of arrays} buttons nested arrays of grouped buttons to initialize\n *\n */\nproto.update = function(graphInfo, buttons) {\n this.graphInfo = graphInfo;\n\n var context = this.graphInfo._context;\n var fullLayout = this.graphInfo._fullLayout;\n var modeBarId = 'modebar-' + fullLayout._uid;\n\n this.element.setAttribute('id', modeBarId);\n this._uid = modeBarId;\n\n this.element.className = 'modebar';\n if(context.displayModeBar === 'hover') this.element.className += ' modebar--hover ease-bg';\n\n if(fullLayout.modebar.orientation === 'v') {\n this.element.className += ' vertical';\n buttons = buttons.reverse();\n }\n\n var style = fullLayout.modebar;\n var bgSelector = context.displayModeBar === 'hover' ? '.js-plotly-plot .plotly:hover ' : '';\n\n Lib.deleteRelatedStyleRule(modeBarId);\n Lib.addRelatedStyleRule(modeBarId, bgSelector + '#' + modeBarId + ' .modebar-group', 'background-color: ' + style.bgcolor);\n Lib.addRelatedStyleRule(modeBarId, '#' + modeBarId + ' .modebar-btn .icon path', 'fill: ' + style.color);\n Lib.addRelatedStyleRule(modeBarId, '#' + modeBarId + ' .modebar-btn:hover .icon path', 'fill: ' + style.activecolor);\n Lib.addRelatedStyleRule(modeBarId, '#' + modeBarId + ' .modebar-btn.active .icon path', 'fill: ' + style.activecolor);\n\n // if buttons or logo have changed, redraw modebar interior\n var needsNewButtons = !this.hasButtons(buttons);\n var needsNewLogo = (this.hasLogo !== context.displaylogo);\n var needsNewLocale = (this.locale !== context.locale);\n\n this.locale = context.locale;\n\n if(needsNewButtons || needsNewLogo || needsNewLocale) {\n this.removeAllButtons();\n\n this.updateButtons(buttons);\n\n if(context.watermark || context.displaylogo) {\n var logoGroup = this.getLogo();\n if(context.watermark) {\n logoGroup.className = logoGroup.className + ' watermark';\n }\n\n if(fullLayout.modebar.orientation === 'v') {\n this.element.insertBefore(logoGroup, this.element.childNodes[0]);\n } else {\n this.element.appendChild(logoGroup);\n }\n\n this.hasLogo = true;\n }\n }\n\n this.updateActiveButton();\n};\n\nproto.updateButtons = function(buttons) {\n var _this = this;\n\n this.buttons = buttons;\n this.buttonElements = [];\n this.buttonsNames = [];\n\n this.buttons.forEach(function(buttonGroup) {\n var group = _this.createGroup();\n\n buttonGroup.forEach(function(buttonConfig) {\n var buttonName = buttonConfig.name;\n if(!buttonName) {\n throw new Error('must provide button \\'name\\' in button config');\n }\n if(_this.buttonsNames.indexOf(buttonName) !== -1) {\n throw new Error('button name \\'' + buttonName + '\\' is taken');\n }\n _this.buttonsNames.push(buttonName);\n\n var button = _this.createButton(buttonConfig);\n _this.buttonElements.push(button);\n group.appendChild(button);\n });\n\n _this.element.appendChild(group);\n });\n};\n\n/**\n * Empty div for containing a group of buttons\n * @Return {HTMLelement}\n */\nproto.createGroup = function() {\n var group = document.createElement('div');\n group.className = 'modebar-group';\n return group;\n};\n\n/**\n * Create a new button div and set constant and configurable attributes\n * @Param {object} config (see ./buttons.js for more info)\n * @Return {HTMLelement}\n */\nproto.createButton = function(config) {\n var _this = this;\n var button = document.createElement('a');\n\n button.setAttribute('rel', 'tooltip');\n button.className = 'modebar-btn';\n\n var title = config.title;\n if(title === undefined) title = config.name;\n // for localization: allow title to be a callable that takes gd as arg\n else if(typeof title === 'function') title = title(this.graphInfo);\n\n if(title || title === 0) button.setAttribute('data-title', title);\n\n if(config.attr !== undefined) button.setAttribute('data-attr', config.attr);\n\n var val = config.val;\n if(val !== undefined) {\n if(typeof val === 'function') val = val(this.graphInfo);\n button.setAttribute('data-val', val);\n }\n\n var click = config.click;\n if(typeof click !== 'function') {\n throw new Error('must provide button \\'click\\' function in button config');\n } else {\n button.addEventListener('click', function(ev) {\n config.click(_this.graphInfo, ev);\n\n // only needed for 'hoverClosestGeo' which does not call relayout\n _this.updateActiveButton(ev.currentTarget);\n });\n }\n\n button.setAttribute('data-toggle', config.toggle || false);\n if(config.toggle) d3.select(button).classed('active', true);\n\n var icon = config.icon;\n if(typeof icon === 'function') {\n button.appendChild(icon());\n } else {\n button.appendChild(this.createIcon(icon || Icons.question));\n }\n button.setAttribute('data-gravity', config.gravity || 'n');\n\n return button;\n};\n\n/**\n * Add an icon to a button\n * @Param {object} thisIcon\n * @Param {number} thisIcon.width\n * @Param {string} thisIcon.path\n * @Param {string} thisIcon.color\n * @Return {HTMLelement}\n */\nproto.createIcon = function(thisIcon) {\n var iconHeight = isNumeric(thisIcon.height) ?\n Number(thisIcon.height) :\n thisIcon.ascent - thisIcon.descent;\n var svgNS = 'http://www.w3.org/2000/svg';\n var icon;\n\n if(thisIcon.path) {\n icon = document.createElementNS(svgNS, 'svg');\n icon.setAttribute('viewBox', [0, 0, thisIcon.width, iconHeight].join(' '));\n icon.setAttribute('class', 'icon');\n\n var path = document.createElementNS(svgNS, 'path');\n path.setAttribute('d', thisIcon.path);\n\n if(thisIcon.transform) {\n path.setAttribute('transform', thisIcon.transform);\n } else if(thisIcon.ascent !== undefined) {\n // Legacy icon transform calculation\n path.setAttribute('transform', 'matrix(1 0 0 -1 0 ' + thisIcon.ascent + ')');\n }\n\n icon.appendChild(path);\n }\n\n if(thisIcon.svg) {\n var svgDoc = Parser.parseFromString(thisIcon.svg, 'application/xml');\n icon = svgDoc.childNodes[0];\n }\n\n icon.setAttribute('height', '1em');\n icon.setAttribute('width', '1em');\n\n return icon;\n};\n\n/**\n * Updates active button with attribute specified in layout\n * @Param {object} graphInfo plot object containing data and layout\n * @Return {HTMLelement}\n */\nproto.updateActiveButton = function(buttonClicked) {\n var fullLayout = this.graphInfo._fullLayout;\n var dataAttrClicked = (buttonClicked !== undefined) ?\n buttonClicked.getAttribute('data-attr') :\n null;\n\n this.buttonElements.forEach(function(button) {\n var thisval = button.getAttribute('data-val') || true;\n var dataAttr = button.getAttribute('data-attr');\n var isToggleButton = (button.getAttribute('data-toggle') === 'true');\n var button3 = d3.select(button);\n\n // Use 'data-toggle' and 'buttonClicked' to toggle buttons\n // that have no one-to-one equivalent in fullLayout\n if(isToggleButton) {\n if(dataAttr === dataAttrClicked) {\n button3.classed('active', !button3.classed('active'));\n }\n } else {\n var val = (dataAttr === null) ?\n dataAttr :\n Lib.nestedProperty(fullLayout, dataAttr).get();\n\n button3.classed('active', val === thisval);\n }\n });\n};\n\n/**\n * Check if modeBar is configured as button configuration argument\n *\n * @Param {object} buttons 2d array of grouped button config objects\n * @Return {boolean}\n */\nproto.hasButtons = function(buttons) {\n var currentButtons = this.buttons;\n\n if(!currentButtons) return false;\n\n if(buttons.length !== currentButtons.length) return false;\n\n for(var i = 0; i < buttons.length; ++i) {\n if(buttons[i].length !== currentButtons[i].length) return false;\n for(var j = 0; j < buttons[i].length; j++) {\n if(buttons[i][j].name !== currentButtons[i][j].name) return false;\n }\n }\n\n return true;\n};\n\n/**\n * @return {HTMLDivElement} The logo image wrapped in a group\n */\nproto.getLogo = function() {\n var group = this.createGroup();\n var a = document.createElement('a');\n\n a.href = 'https://plotly.com/';\n a.target = '_blank';\n a.setAttribute('data-title', Lib._(this.graphInfo, 'Produced with Plotly'));\n a.className = 'modebar-btn plotlyjsicon modebar-btn--logo';\n\n a.appendChild(this.createIcon(Icons.newplotlylogo));\n\n group.appendChild(a);\n return group;\n};\n\nproto.removeAllButtons = function() {\n while(this.element.firstChild) {\n this.element.removeChild(this.element.firstChild);\n }\n\n this.hasLogo = false;\n};\n\nproto.destroy = function() {\n Lib.removeElement(this.container.querySelector('.modebar'));\n Lib.deleteRelatedStyleRule(this._uid);\n};\n\nfunction createModeBar(gd, buttons) {\n var fullLayout = gd._fullLayout;\n\n var modeBar = new ModeBar({\n graphInfo: gd,\n container: fullLayout._modebardiv.node(),\n buttons: buttons\n });\n\n if(fullLayout._privateplot) {\n d3.select(modeBar.element).append('span')\n .classed('badge-private float--left', true)\n .text('PRIVATE');\n }\n\n return modeBar;\n}\n\nmodule.exports = createModeBar;\n\n},{\"../../fonts/ploticon\":482,\"../../lib\":503,\"@plotly/d3\":58,\"fast-isnumeric\":190}],432:[function(_dereq_,module,exports){\n'use strict';\n\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar colorAttrs = _dereq_('../color/attributes');\nvar templatedArray = _dereq_('../../plot_api/plot_template').templatedArray;\n\nvar buttonAttrs = templatedArray('button', {\n visible: {\n valType: 'boolean',\n dflt: true,\n editType: 'plot',\n },\n step: {\n valType: 'enumerated',\n values: ['month', 'year', 'day', 'hour', 'minute', 'second', 'all'],\n dflt: 'month',\n editType: 'plot',\n },\n stepmode: {\n valType: 'enumerated',\n values: ['backward', 'todate'],\n dflt: 'backward',\n editType: 'plot',\n },\n count: {\n valType: 'number',\n min: 0,\n dflt: 1,\n editType: 'plot',\n },\n label: {\n valType: 'string',\n editType: 'plot',\n },\n editType: 'plot',\n});\n\nmodule.exports = {\n visible: {\n valType: 'boolean',\n editType: 'plot',\n },\n\n buttons: buttonAttrs,\n\n x: {\n valType: 'number',\n min: -2,\n max: 3,\n editType: 'plot',\n },\n xanchor: {\n valType: 'enumerated',\n values: ['auto', 'left', 'center', 'right'],\n dflt: 'left',\n editType: 'plot',\n },\n y: {\n valType: 'number',\n min: -2,\n max: 3,\n editType: 'plot',\n },\n yanchor: {\n valType: 'enumerated',\n values: ['auto', 'top', 'middle', 'bottom'],\n dflt: 'bottom',\n editType: 'plot',\n },\n\n font: fontAttrs({\n editType: 'plot',\n }),\n\n bgcolor: {\n valType: 'color',\n dflt: colorAttrs.lightLine,\n editType: 'plot',\n },\n activecolor: {\n valType: 'color',\n editType: 'plot',\n },\n bordercolor: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n editType: 'plot',\n },\n borderwidth: {\n valType: 'number',\n min: 0,\n dflt: 0,\n editType: 'plot',\n },\n editType: 'plot'\n};\n\n},{\"../../plot_api/plot_template\":543,\"../../plots/font_attributes\":585,\"../color/attributes\":365}],433:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = {\n\n // 'y' position pad above counter axis domain\n yPad: 0.02,\n\n // minimum button width (regardless of text size)\n minButtonWidth: 30,\n\n // buttons rect radii\n rx: 3,\n ry: 3,\n\n // light fraction used to compute the 'activecolor' default\n lightAmount: 25,\n darkAmount: 10\n};\n\n},{}],434:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Color = _dereq_('../color');\nvar Template = _dereq_('../../plot_api/plot_template');\nvar handleArrayContainerDefaults = _dereq_('../../plots/array_container_defaults');\n\nvar attributes = _dereq_('./attributes');\nvar constants = _dereq_('./constants');\n\n\nmodule.exports = function handleDefaults(containerIn, containerOut, layout, counterAxes, calendar) {\n var selectorIn = containerIn.rangeselector || {};\n var selectorOut = Template.newContainer(containerOut, 'rangeselector');\n\n function coerce(attr, dflt) {\n return Lib.coerce(selectorIn, selectorOut, attributes, attr, dflt);\n }\n\n var buttons = handleArrayContainerDefaults(selectorIn, selectorOut, {\n name: 'buttons',\n handleItemDefaults: buttonDefaults,\n calendar: calendar\n });\n\n var visible = coerce('visible', buttons.length > 0);\n if(visible) {\n var posDflt = getPosDflt(containerOut, layout, counterAxes);\n coerce('x', posDflt[0]);\n coerce('y', posDflt[1]);\n Lib.noneOrAll(containerIn, containerOut, ['x', 'y']);\n\n coerce('xanchor');\n coerce('yanchor');\n\n Lib.coerceFont(coerce, 'font', layout.font);\n\n var bgColor = coerce('bgcolor');\n coerce('activecolor', Color.contrast(bgColor, constants.lightAmount, constants.darkAmount));\n coerce('bordercolor');\n coerce('borderwidth');\n }\n};\n\nfunction buttonDefaults(buttonIn, buttonOut, selectorOut, opts) {\n var calendar = opts.calendar;\n\n function coerce(attr, dflt) {\n return Lib.coerce(buttonIn, buttonOut, attributes.buttons, attr, dflt);\n }\n\n var visible = coerce('visible');\n\n if(visible) {\n var step = coerce('step');\n if(step !== 'all') {\n if(calendar && calendar !== 'gregorian' && (step === 'month' || step === 'year')) {\n buttonOut.stepmode = 'backward';\n } else {\n coerce('stepmode');\n }\n\n coerce('count');\n }\n\n coerce('label');\n }\n}\n\nfunction getPosDflt(containerOut, layout, counterAxes) {\n var anchoredList = counterAxes.filter(function(ax) {\n return layout[ax].anchor === containerOut._id;\n });\n\n var posY = 0;\n for(var i = 0; i < anchoredList.length; i++) {\n var domain = layout[anchoredList[i]].domain;\n if(domain) posY = Math.max(domain[1], posY);\n }\n\n return [containerOut.domain[0], posY + constants.yPad];\n}\n\n},{\"../../lib\":503,\"../../plot_api/plot_template\":543,\"../../plots/array_container_defaults\":549,\"../color\":366,\"./attributes\":432,\"./constants\":433}],435:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Registry = _dereq_('../../registry');\nvar Plots = _dereq_('../../plots/plots');\nvar Color = _dereq_('../color');\nvar Drawing = _dereq_('../drawing');\nvar Lib = _dereq_('../../lib');\nvar strTranslate = Lib.strTranslate;\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\nvar axisIds = _dereq_('../../plots/cartesian/axis_ids');\n\nvar alignmentConstants = _dereq_('../../constants/alignment');\nvar LINE_SPACING = alignmentConstants.LINE_SPACING;\nvar FROM_TL = alignmentConstants.FROM_TL;\nvar FROM_BR = alignmentConstants.FROM_BR;\n\nvar constants = _dereq_('./constants');\nvar getUpdateObject = _dereq_('./get_update_object');\n\nmodule.exports = function draw(gd) {\n var fullLayout = gd._fullLayout;\n\n var selectors = fullLayout._infolayer.selectAll('.rangeselector')\n .data(makeSelectorData(gd), selectorKeyFunc);\n\n selectors.enter().append('g')\n .classed('rangeselector', true);\n\n selectors.exit().remove();\n\n selectors.style({\n cursor: 'pointer',\n 'pointer-events': 'all'\n });\n\n selectors.each(function(d) {\n var selector = d3.select(this);\n var axisLayout = d;\n var selectorLayout = axisLayout.rangeselector;\n\n var buttons = selector.selectAll('g.button')\n .data(Lib.filterVisible(selectorLayout.buttons));\n\n buttons.enter().append('g')\n .classed('button', true);\n\n buttons.exit().remove();\n\n buttons.each(function(d) {\n var button = d3.select(this);\n var update = getUpdateObject(axisLayout, d);\n\n d._isActive = isActive(axisLayout, d, update);\n\n button.call(drawButtonRect, selectorLayout, d);\n button.call(drawButtonText, selectorLayout, d, gd);\n\n button.on('click', function() {\n if(gd._dragged) return;\n\n Registry.call('_guiRelayout', gd, update);\n });\n\n button.on('mouseover', function() {\n d._isHovered = true;\n button.call(drawButtonRect, selectorLayout, d);\n });\n\n button.on('mouseout', function() {\n d._isHovered = false;\n button.call(drawButtonRect, selectorLayout, d);\n });\n });\n\n reposition(gd, buttons, selectorLayout, axisLayout._name, selector);\n });\n};\n\nfunction makeSelectorData(gd) {\n var axes = axisIds.list(gd, 'x', true);\n var data = [];\n\n for(var i = 0; i < axes.length; i++) {\n var axis = axes[i];\n\n if(axis.rangeselector && axis.rangeselector.visible) {\n data.push(axis);\n }\n }\n\n return data;\n}\n\nfunction selectorKeyFunc(d) {\n return d._id;\n}\n\nfunction isActive(axisLayout, opts, update) {\n if(opts.step === 'all') {\n return axisLayout.autorange === true;\n } else {\n var keys = Object.keys(update);\n\n return (\n axisLayout.range[0] === update[keys[0]] &&\n axisLayout.range[1] === update[keys[1]]\n );\n }\n}\n\nfunction drawButtonRect(button, selectorLayout, d) {\n var rect = Lib.ensureSingle(button, 'rect', 'selector-rect', function(s) {\n s.attr('shape-rendering', 'crispEdges');\n });\n\n rect.attr({\n 'rx': constants.rx,\n 'ry': constants.ry\n });\n\n rect.call(Color.stroke, selectorLayout.bordercolor)\n .call(Color.fill, getFillColor(selectorLayout, d))\n .style('stroke-width', selectorLayout.borderwidth + 'px');\n}\n\nfunction getFillColor(selectorLayout, d) {\n return (d._isActive || d._isHovered) ?\n selectorLayout.activecolor :\n selectorLayout.bgcolor;\n}\n\nfunction drawButtonText(button, selectorLayout, d, gd) {\n function textLayout(s) {\n svgTextUtils.convertToTspans(s, gd);\n }\n\n var text = Lib.ensureSingle(button, 'text', 'selector-text', function(s) {\n s.attr('text-anchor', 'middle');\n });\n\n text.call(Drawing.font, selectorLayout.font)\n .text(getLabel(d, gd._fullLayout._meta))\n .call(textLayout);\n}\n\nfunction getLabel(opts, _meta) {\n if(opts.label) {\n return _meta ?\n Lib.templateString(opts.label, _meta) :\n opts.label;\n }\n\n if(opts.step === 'all') return 'all';\n\n return opts.count + opts.step.charAt(0);\n}\n\nfunction reposition(gd, buttons, opts, axName, selector) {\n var width = 0;\n var height = 0;\n\n var borderWidth = opts.borderwidth;\n\n buttons.each(function() {\n var button = d3.select(this);\n var text = button.select('.selector-text');\n\n var tHeight = opts.font.size * LINE_SPACING;\n var hEff = Math.max(tHeight * svgTextUtils.lineCount(text), 16) + 3;\n\n height = Math.max(height, hEff);\n });\n\n buttons.each(function() {\n var button = d3.select(this);\n var rect = button.select('.selector-rect');\n var text = button.select('.selector-text');\n\n var tWidth = text.node() && Drawing.bBox(text.node()).width;\n var tHeight = opts.font.size * LINE_SPACING;\n var tLines = svgTextUtils.lineCount(text);\n\n var wEff = Math.max(tWidth + 10, constants.minButtonWidth);\n\n // TODO add MathJax support\n\n // TODO add buttongap attribute\n\n button.attr('transform', strTranslate(borderWidth + width, borderWidth));\n\n rect.attr({\n x: 0,\n y: 0,\n width: wEff,\n height: height\n });\n\n svgTextUtils.positionText(text, wEff / 2,\n height / 2 - ((tLines - 1) * tHeight / 2) + 3);\n\n width += wEff + 5;\n });\n\n var graphSize = gd._fullLayout._size;\n var lx = graphSize.l + graphSize.w * opts.x;\n var ly = graphSize.t + graphSize.h * (1 - opts.y);\n\n var xanchor = 'left';\n if(Lib.isRightAnchor(opts)) {\n lx -= width;\n xanchor = 'right';\n }\n if(Lib.isCenterAnchor(opts)) {\n lx -= width / 2;\n xanchor = 'center';\n }\n\n var yanchor = 'top';\n if(Lib.isBottomAnchor(opts)) {\n ly -= height;\n yanchor = 'bottom';\n }\n if(Lib.isMiddleAnchor(opts)) {\n ly -= height / 2;\n yanchor = 'middle';\n }\n\n width = Math.ceil(width);\n height = Math.ceil(height);\n lx = Math.round(lx);\n ly = Math.round(ly);\n\n Plots.autoMargin(gd, axName + '-range-selector', {\n x: opts.x,\n y: opts.y,\n l: width * FROM_TL[xanchor],\n r: width * FROM_BR[xanchor],\n b: height * FROM_BR[yanchor],\n t: height * FROM_TL[yanchor]\n });\n\n selector.attr('transform', strTranslate(lx, ly));\n}\n\n},{\"../../constants/alignment\":471,\"../../lib\":503,\"../../lib/svg_text_utils\":529,\"../../plots/cartesian/axis_ids\":558,\"../../plots/plots\":619,\"../../registry\":638,\"../color\":366,\"../drawing\":388,\"./constants\":433,\"./get_update_object\":436,\"@plotly/d3\":58}],436:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3Time = _dereq_('d3-time');\nvar titleCase = _dereq_('../../lib').titleCase;\n\nmodule.exports = function getUpdateObject(axisLayout, buttonLayout) {\n var axName = axisLayout._name;\n var update = {};\n\n if(buttonLayout.step === 'all') {\n update[axName + '.autorange'] = true;\n } else {\n var xrange = getXRange(axisLayout, buttonLayout);\n\n update[axName + '.range[0]'] = xrange[0];\n update[axName + '.range[1]'] = xrange[1];\n }\n\n return update;\n};\n\nfunction getXRange(axisLayout, buttonLayout) {\n var currentRange = axisLayout.range;\n var base = new Date(axisLayout.r2l(currentRange[1]));\n var step = buttonLayout.step;\n\n var utcStep = d3Time['utc' + titleCase(step)];\n\n var count = buttonLayout.count;\n var range0;\n\n switch(buttonLayout.stepmode) {\n case 'backward':\n range0 = axisLayout.l2r(+utcStep.offset(base, -count));\n break;\n\n case 'todate':\n var base2 = utcStep.offset(base, -count);\n\n range0 = axisLayout.l2r(+utcStep.ceil(base2));\n break;\n }\n\n var range1 = currentRange[1];\n\n return [range0, range1];\n}\n\n},{\"../../lib\":503,\"d3-time\":122}],437:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'component',\n name: 'rangeselector',\n\n schema: {\n subplots: {\n xaxis: {rangeselector: _dereq_('./attributes')}\n }\n },\n\n layoutAttributes: _dereq_('./attributes'),\n handleDefaults: _dereq_('./defaults'),\n\n draw: _dereq_('./draw')\n};\n\n},{\"./attributes\":432,\"./defaults\":434,\"./draw\":435}],438:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorAttributes = _dereq_('../color/attributes');\n\nmodule.exports = {\n bgcolor: {\n valType: 'color',\n dflt: colorAttributes.background,\n editType: 'plot',\n },\n bordercolor: {\n valType: 'color',\n dflt: colorAttributes.defaultLine,\n editType: 'plot',\n },\n borderwidth: {\n valType: 'integer',\n dflt: 0,\n min: 0,\n editType: 'plot',\n },\n autorange: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n impliedEdits: {'range[0]': undefined, 'range[1]': undefined},\n },\n range: {\n valType: 'info_array',\n items: [\n {valType: 'any', editType: 'calc', impliedEdits: {'^autorange': false}},\n {valType: 'any', editType: 'calc', impliedEdits: {'^autorange': false}}\n ],\n editType: 'calc',\n impliedEdits: {'autorange': false},\n },\n thickness: {\n valType: 'number',\n dflt: 0.15,\n min: 0,\n max: 1,\n editType: 'plot',\n },\n visible: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n },\n editType: 'calc'\n};\n\n},{\"../color/attributes\":365}],439:[function(_dereq_,module,exports){\n'use strict';\n\nvar listAxes = _dereq_('../../plots/cartesian/axis_ids').list;\nvar getAutoRange = _dereq_('../../plots/cartesian/autorange').getAutoRange;\nvar constants = _dereq_('./constants');\n\nmodule.exports = function calcAutorange(gd) {\n var axes = listAxes(gd, 'x', true);\n\n // Compute new slider range using axis autorange if necessary.\n //\n // Copy back range to input range slider container to skip\n // this step in subsequent draw calls.\n\n for(var i = 0; i < axes.length; i++) {\n var ax = axes[i];\n var opts = ax[constants.name];\n\n if(opts && opts.visible && opts.autorange) {\n opts._input.autorange = true;\n opts._input.range = opts.range = getAutoRange(gd, ax);\n }\n }\n};\n\n},{\"../../plots/cartesian/autorange\":553,\"../../plots/cartesian/axis_ids\":558,\"./constants\":440}],440:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n\n // attribute container name\n name: 'rangeslider',\n\n // class names\n\n containerClassName: 'rangeslider-container',\n bgClassName: 'rangeslider-bg',\n rangePlotClassName: 'rangeslider-rangeplot',\n\n maskMinClassName: 'rangeslider-mask-min',\n maskMaxClassName: 'rangeslider-mask-max',\n slideBoxClassName: 'rangeslider-slidebox',\n\n grabberMinClassName: 'rangeslider-grabber-min',\n grabAreaMinClassName: 'rangeslider-grabarea-min',\n handleMinClassName: 'rangeslider-handle-min',\n\n grabberMaxClassName: 'rangeslider-grabber-max',\n grabAreaMaxClassName: 'rangeslider-grabarea-max',\n handleMaxClassName: 'rangeslider-handle-max',\n\n maskMinOppAxisClassName: 'rangeslider-mask-min-opp-axis',\n maskMaxOppAxisClassName: 'rangeslider-mask-max-opp-axis',\n\n // style constants\n\n maskColor: 'rgba(0,0,0,0.4)',\n maskOppAxisColor: 'rgba(0,0,0,0.2)',\n\n slideBoxFill: 'transparent',\n slideBoxCursor: 'ew-resize',\n\n grabAreaFill: 'transparent',\n grabAreaCursor: 'col-resize',\n grabAreaWidth: 10,\n\n handleWidth: 4,\n handleRadius: 1,\n handleStrokeWidth: 1,\n\n extraPad: 15\n};\n\n},{}],441:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Template = _dereq_('../../plot_api/plot_template');\nvar axisIds = _dereq_('../../plots/cartesian/axis_ids');\n\nvar attributes = _dereq_('./attributes');\nvar oppAxisAttrs = _dereq_('./oppaxis_attributes');\n\nmodule.exports = function handleDefaults(layoutIn, layoutOut, axName) {\n var axIn = layoutIn[axName];\n var axOut = layoutOut[axName];\n\n if(!(axIn.rangeslider || layoutOut._requestRangeslider[axOut._id])) return;\n\n // not super proud of this (maybe store _ in axis object instead\n if(!Lib.isPlainObject(axIn.rangeslider)) {\n axIn.rangeslider = {};\n }\n\n var containerIn = axIn.rangeslider;\n var containerOut = Template.newContainer(axOut, 'rangeslider');\n\n function coerce(attr, dflt) {\n return Lib.coerce(containerIn, containerOut, attributes, attr, dflt);\n }\n\n var rangeContainerIn, rangeContainerOut;\n function coerceRange(attr, dflt) {\n return Lib.coerce(rangeContainerIn, rangeContainerOut, oppAxisAttrs, attr, dflt);\n }\n\n var visible = coerce('visible');\n if(!visible) return;\n\n coerce('bgcolor', layoutOut.plot_bgcolor);\n coerce('bordercolor');\n coerce('borderwidth');\n coerce('thickness');\n\n coerce('autorange', !axOut.isValidRange(containerIn.range));\n coerce('range');\n\n var subplots = layoutOut._subplots;\n if(subplots) {\n var yIds = subplots.cartesian\n .filter(function(subplotId) {\n return subplotId.substr(0, subplotId.indexOf('y')) === axisIds.name2id(axName);\n })\n .map(function(subplotId) {\n return subplotId.substr(subplotId.indexOf('y'), subplotId.length);\n });\n var yNames = Lib.simpleMap(yIds, axisIds.id2name);\n for(var i = 0; i < yNames.length; i++) {\n var yName = yNames[i];\n\n rangeContainerIn = containerIn[yName] || {};\n rangeContainerOut = Template.newContainer(containerOut, yName, 'yaxis');\n\n var yAxOut = layoutOut[yName];\n\n var rangemodeDflt;\n if(rangeContainerIn.range && yAxOut.isValidRange(rangeContainerIn.range)) {\n rangemodeDflt = 'fixed';\n }\n\n var rangeMode = coerceRange('rangemode', rangemodeDflt);\n if(rangeMode !== 'match') {\n coerceRange('range', yAxOut.range.slice());\n }\n }\n }\n\n // to map back range slider (auto) range\n containerOut._input = containerIn;\n};\n\n},{\"../../lib\":503,\"../../plot_api/plot_template\":543,\"../../plots/cartesian/axis_ids\":558,\"./attributes\":438,\"./oppaxis_attributes\":445}],442:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Registry = _dereq_('../../registry');\nvar Plots = _dereq_('../../plots/plots');\n\nvar Lib = _dereq_('../../lib');\nvar strTranslate = Lib.strTranslate;\nvar Drawing = _dereq_('../drawing');\nvar Color = _dereq_('../color');\nvar Titles = _dereq_('../titles');\n\nvar Cartesian = _dereq_('../../plots/cartesian');\nvar axisIDs = _dereq_('../../plots/cartesian/axis_ids');\n\nvar dragElement = _dereq_('../dragelement');\nvar setCursor = _dereq_('../../lib/setcursor');\n\nvar constants = _dereq_('./constants');\n\nmodule.exports = function(gd) {\n var fullLayout = gd._fullLayout;\n var rangeSliderData = fullLayout._rangeSliderData;\n for(var i = 0; i < rangeSliderData.length; i++) {\n var opts = rangeSliderData[i][constants.name];\n // fullLayout._uid may not exist when we call makeData\n opts._clipId = opts._id + '-' + fullLayout._uid;\n }\n\n /*\n * \n * \n * < .... range plot />\n * \n * \n * \n * \n * \n * \n * \n * \n * \n *\n * ...\n */\n\n function keyFunction(axisOpts) {\n return axisOpts._name;\n }\n\n var rangeSliders = fullLayout._infolayer\n .selectAll('g.' + constants.containerClassName)\n .data(rangeSliderData, keyFunction);\n\n // remove exiting sliders and their corresponding clip paths\n rangeSliders.exit().each(function(axisOpts) {\n var opts = axisOpts[constants.name];\n fullLayout._topdefs.select('#' + opts._clipId).remove();\n }).remove();\n\n // return early if no range slider is visible\n if(rangeSliderData.length === 0) return;\n\n rangeSliders.enter().append('g')\n .classed(constants.containerClassName, true)\n .attr('pointer-events', 'all');\n\n // for all present range sliders\n rangeSliders.each(function(axisOpts) {\n var rangeSlider = d3.select(this);\n var opts = axisOpts[constants.name];\n var oppAxisOpts = fullLayout[axisIDs.id2name(axisOpts.anchor)];\n var oppAxisRangeOpts = opts[axisIDs.id2name(axisOpts.anchor)];\n\n // update range\n // Expand slider range to the axis range\n if(opts.range) {\n var rng = Lib.simpleMap(opts.range, axisOpts.r2l);\n var axRng = Lib.simpleMap(axisOpts.range, axisOpts.r2l);\n var newRng;\n\n if(axRng[0] < axRng[1]) {\n newRng = [\n Math.min(rng[0], axRng[0]),\n Math.max(rng[1], axRng[1])\n ];\n } else {\n newRng = [\n Math.max(rng[0], axRng[0]),\n Math.min(rng[1], axRng[1])\n ];\n }\n\n opts.range = opts._input.range = Lib.simpleMap(newRng, axisOpts.l2r);\n }\n\n axisOpts.cleanRange('rangeslider.range');\n\n // update range slider dimensions\n\n var gs = fullLayout._size;\n var domain = axisOpts.domain;\n\n opts._width = gs.w * (domain[1] - domain[0]);\n\n var x = Math.round(gs.l + (gs.w * domain[0]));\n\n var y = Math.round(\n gs.t + gs.h * (1 - axisOpts._counterDomainMin) +\n (axisOpts.side === 'bottom' ? axisOpts._depth : 0) +\n opts._offsetShift + constants.extraPad\n );\n\n rangeSlider.attr('transform', strTranslate(x, y));\n\n // update data <--> pixel coordinate conversion methods\n\n opts._rl = Lib.simpleMap(opts.range, axisOpts.r2l);\n var rl0 = opts._rl[0];\n var rl1 = opts._rl[1];\n var drl = rl1 - rl0;\n\n opts.p2d = function(v) {\n return (v / opts._width) * drl + rl0;\n };\n\n opts.d2p = function(v) {\n return (v - rl0) / drl * opts._width;\n };\n\n if(axisOpts.rangebreaks) {\n var rsBreaks = axisOpts.locateBreaks(rl0, rl1);\n\n if(rsBreaks.length) {\n var j, brk;\n\n var lBreaks = 0;\n for(j = 0; j < rsBreaks.length; j++) {\n brk = rsBreaks[j];\n lBreaks += (brk.max - brk.min);\n }\n\n // TODO fix for reversed-range axes !!!\n\n // compute slope and piecewise offsets\n var m2 = opts._width / (rl1 - rl0 - lBreaks);\n var _B = [-m2 * rl0];\n for(j = 0; j < rsBreaks.length; j++) {\n brk = rsBreaks[j];\n _B.push(_B[_B.length - 1] - m2 * (brk.max - brk.min));\n }\n\n opts.d2p = function(v) {\n var b = _B[0];\n for(var j = 0; j < rsBreaks.length; j++) {\n var brk = rsBreaks[j];\n if(v >= brk.max) b = _B[j + 1];\n else if(v < brk.min) break;\n }\n return b + m2 * v;\n };\n\n // fill pixel (i.e. 'p') min/max here,\n // to not have to loop through the _rangebreaks twice during `p2d`\n for(j = 0; j < rsBreaks.length; j++) {\n brk = rsBreaks[j];\n brk.pmin = opts.d2p(brk.min);\n brk.pmax = opts.d2p(brk.max);\n }\n\n opts.p2d = function(v) {\n var b = _B[0];\n for(var j = 0; j < rsBreaks.length; j++) {\n var brk = rsBreaks[j];\n if(v >= brk.pmax) b = _B[j + 1];\n else if(v < brk.pmin) break;\n }\n return (v - b) / m2;\n };\n }\n }\n\n if(oppAxisRangeOpts.rangemode !== 'match') {\n var range0OppAxis = oppAxisOpts.r2l(oppAxisRangeOpts.range[0]);\n var range1OppAxis = oppAxisOpts.r2l(oppAxisRangeOpts.range[1]);\n var distOppAxis = range1OppAxis - range0OppAxis;\n\n opts.d2pOppAxis = function(v) {\n return (v - range0OppAxis) / distOppAxis * opts._height;\n };\n }\n\n // update inner nodes\n\n rangeSlider\n .call(drawBg, gd, axisOpts, opts)\n .call(addClipPath, gd, axisOpts, opts)\n .call(drawRangePlot, gd, axisOpts, opts)\n .call(drawMasks, gd, axisOpts, opts, oppAxisRangeOpts)\n .call(drawSlideBox, gd, axisOpts, opts)\n .call(drawGrabbers, gd, axisOpts, opts);\n\n // setup drag element\n setupDragElement(rangeSlider, gd, axisOpts, opts);\n\n // update current range\n setPixelRange(rangeSlider, gd, axisOpts, opts, oppAxisOpts, oppAxisRangeOpts);\n\n // title goes next to range slider instead of tick labels, so\n // just take it over and draw it from here\n if(axisOpts.side === 'bottom') {\n Titles.draw(gd, axisOpts._id + 'title', {\n propContainer: axisOpts,\n propName: axisOpts._name + '.title',\n placeholder: fullLayout._dfltTitle.x,\n attributes: {\n x: axisOpts._offset + axisOpts._length / 2,\n y: y + opts._height + opts._offsetShift + 10 + 1.5 * axisOpts.title.font.size,\n 'text-anchor': 'middle'\n }\n });\n }\n });\n};\n\nfunction setupDragElement(rangeSlider, gd, axisOpts, opts) {\n if(gd._context.staticPlot) return;\n\n var slideBox = rangeSlider.select('rect.' + constants.slideBoxClassName).node();\n var grabAreaMin = rangeSlider.select('rect.' + constants.grabAreaMinClassName).node();\n var grabAreaMax = rangeSlider.select('rect.' + constants.grabAreaMaxClassName).node();\n\n function mouseDownHandler() {\n var event = d3.event;\n var target = event.target;\n var startX = event.clientX || event.touches[0].clientX;\n var offsetX = startX - rangeSlider.node().getBoundingClientRect().left;\n var minVal = opts.d2p(axisOpts._rl[0]);\n var maxVal = opts.d2p(axisOpts._rl[1]);\n\n var dragCover = dragElement.coverSlip();\n\n this.addEventListener('touchmove', mouseMove);\n this.addEventListener('touchend', mouseUp);\n dragCover.addEventListener('mousemove', mouseMove);\n dragCover.addEventListener('mouseup', mouseUp);\n\n function mouseMove(e) {\n var clientX = e.clientX || e.touches[0].clientX;\n var delta = +clientX - startX;\n var pixelMin, pixelMax, cursor;\n\n switch(target) {\n case slideBox:\n cursor = 'ew-resize';\n pixelMin = minVal + delta;\n pixelMax = maxVal + delta;\n break;\n\n case grabAreaMin:\n cursor = 'col-resize';\n pixelMin = minVal + delta;\n pixelMax = maxVal;\n break;\n\n case grabAreaMax:\n cursor = 'col-resize';\n pixelMin = minVal;\n pixelMax = maxVal + delta;\n break;\n\n default:\n cursor = 'ew-resize';\n pixelMin = offsetX;\n pixelMax = offsetX + delta;\n break;\n }\n\n if(pixelMax < pixelMin) {\n var tmp = pixelMax;\n pixelMax = pixelMin;\n pixelMin = tmp;\n }\n\n opts._pixelMin = pixelMin;\n opts._pixelMax = pixelMax;\n\n setCursor(d3.select(dragCover), cursor);\n setDataRange(rangeSlider, gd, axisOpts, opts);\n }\n\n function mouseUp() {\n dragCover.removeEventListener('mousemove', mouseMove);\n dragCover.removeEventListener('mouseup', mouseUp);\n this.removeEventListener('touchmove', mouseMove);\n this.removeEventListener('touchend', mouseUp);\n Lib.removeElement(dragCover);\n }\n }\n\n rangeSlider.on('mousedown', mouseDownHandler);\n rangeSlider.on('touchstart', mouseDownHandler);\n}\n\nfunction setDataRange(rangeSlider, gd, axisOpts, opts) {\n function clamp(v) {\n return axisOpts.l2r(Lib.constrain(v, opts._rl[0], opts._rl[1]));\n }\n\n var dataMin = clamp(opts.p2d(opts._pixelMin));\n var dataMax = clamp(opts.p2d(opts._pixelMax));\n\n window.requestAnimationFrame(function() {\n Registry.call('_guiRelayout', gd, axisOpts._name + '.range', [dataMin, dataMax]);\n });\n}\n\nfunction setPixelRange(rangeSlider, gd, axisOpts, opts, oppAxisOpts, oppAxisRangeOpts) {\n var hw2 = constants.handleWidth / 2;\n\n function clamp(v) {\n return Lib.constrain(v, 0, opts._width);\n }\n\n function clampOppAxis(v) {\n return Lib.constrain(v, 0, opts._height);\n }\n\n function clampHandle(v) {\n return Lib.constrain(v, -hw2, opts._width + hw2);\n }\n\n var pixelMin = clamp(opts.d2p(axisOpts._rl[0]));\n var pixelMax = clamp(opts.d2p(axisOpts._rl[1]));\n\n rangeSlider.select('rect.' + constants.slideBoxClassName)\n .attr('x', pixelMin)\n .attr('width', pixelMax - pixelMin);\n\n rangeSlider.select('rect.' + constants.maskMinClassName)\n .attr('width', pixelMin);\n\n rangeSlider.select('rect.' + constants.maskMaxClassName)\n .attr('x', pixelMax)\n .attr('width', opts._width - pixelMax);\n\n if(oppAxisRangeOpts.rangemode !== 'match') {\n var pixelMinOppAxis = opts._height - clampOppAxis(opts.d2pOppAxis(oppAxisOpts._rl[1]));\n var pixelMaxOppAxis = opts._height - clampOppAxis(opts.d2pOppAxis(oppAxisOpts._rl[0]));\n\n rangeSlider.select('rect.' + constants.maskMinOppAxisClassName)\n .attr('x', pixelMin)\n .attr('height', pixelMinOppAxis)\n .attr('width', pixelMax - pixelMin);\n\n rangeSlider.select('rect.' + constants.maskMaxOppAxisClassName)\n .attr('x', pixelMin)\n .attr('y', pixelMaxOppAxis)\n .attr('height', opts._height - pixelMaxOppAxis)\n .attr('width', pixelMax - pixelMin);\n\n rangeSlider.select('rect.' + constants.slideBoxClassName)\n .attr('y', pixelMinOppAxis)\n .attr('height', pixelMaxOppAxis - pixelMinOppAxis);\n }\n\n // add offset for crispier corners\n // https://github.com/plotly/plotly.js/pull/1409\n var offset = 0.5;\n\n var xMin = Math.round(clampHandle(pixelMin - hw2)) - offset;\n var xMax = Math.round(clampHandle(pixelMax - hw2)) + offset;\n\n rangeSlider.select('g.' + constants.grabberMinClassName)\n .attr('transform', strTranslate(xMin, offset));\n\n rangeSlider.select('g.' + constants.grabberMaxClassName)\n .attr('transform', strTranslate(xMax, offset));\n}\n\nfunction drawBg(rangeSlider, gd, axisOpts, opts) {\n var bg = Lib.ensureSingle(rangeSlider, 'rect', constants.bgClassName, function(s) {\n s.attr({\n x: 0,\n y: 0,\n 'shape-rendering': 'crispEdges'\n });\n });\n\n var borderCorrect = (opts.borderwidth % 2) === 0 ?\n opts.borderwidth :\n opts.borderwidth - 1;\n\n var offsetShift = -opts._offsetShift;\n var lw = Drawing.crispRound(gd, opts.borderwidth);\n\n bg.attr({\n width: opts._width + borderCorrect,\n height: opts._height + borderCorrect,\n transform: strTranslate(offsetShift, offsetShift),\n fill: opts.bgcolor,\n stroke: opts.bordercolor,\n 'stroke-width': lw\n });\n}\n\nfunction addClipPath(rangeSlider, gd, axisOpts, opts) {\n var fullLayout = gd._fullLayout;\n\n var clipPath = Lib.ensureSingleById(fullLayout._topdefs, 'clipPath', opts._clipId, function(s) {\n s.append('rect').attr({ x: 0, y: 0 });\n });\n\n clipPath.select('rect').attr({\n width: opts._width,\n height: opts._height\n });\n}\n\nfunction drawRangePlot(rangeSlider, gd, axisOpts, opts) {\n var calcData = gd.calcdata;\n\n var rangePlots = rangeSlider.selectAll('g.' + constants.rangePlotClassName)\n .data(axisOpts._subplotsWith, Lib.identity);\n\n rangePlots.enter().append('g')\n .attr('class', function(id) { return constants.rangePlotClassName + ' ' + id; })\n .call(Drawing.setClipUrl, opts._clipId, gd);\n\n rangePlots.order();\n\n rangePlots.exit().remove();\n\n var mainplotinfo;\n\n rangePlots.each(function(id, i) {\n var plotgroup = d3.select(this);\n var isMainPlot = (i === 0);\n\n var oppAxisOpts = axisIDs.getFromId(gd, id, 'y');\n var oppAxisName = oppAxisOpts._name;\n var oppAxisRangeOpts = opts[oppAxisName];\n\n var mockFigure = {\n data: [],\n layout: {\n xaxis: {\n type: axisOpts.type,\n domain: [0, 1],\n range: opts.range.slice(),\n calendar: axisOpts.calendar\n },\n width: opts._width,\n height: opts._height,\n margin: { t: 0, b: 0, l: 0, r: 0 }\n },\n _context: gd._context\n };\n\n if(axisOpts.rangebreaks) {\n mockFigure.layout.xaxis.rangebreaks = axisOpts.rangebreaks;\n }\n\n mockFigure.layout[oppAxisName] = {\n type: oppAxisOpts.type,\n domain: [0, 1],\n range: oppAxisRangeOpts.rangemode !== 'match' ? oppAxisRangeOpts.range.slice() : oppAxisOpts.range.slice(),\n calendar: oppAxisOpts.calendar\n };\n\n if(oppAxisOpts.rangebreaks) {\n mockFigure.layout[oppAxisName].rangebreaks = oppAxisOpts.rangebreaks;\n }\n\n Plots.supplyDefaults(mockFigure);\n\n var xa = mockFigure._fullLayout.xaxis;\n var ya = mockFigure._fullLayout[oppAxisName];\n\n xa.clearCalc();\n xa.setScale();\n ya.clearCalc();\n ya.setScale();\n\n var plotinfo = {\n id: id,\n plotgroup: plotgroup,\n xaxis: xa,\n yaxis: ya,\n isRangePlot: true\n };\n\n if(isMainPlot) mainplotinfo = plotinfo;\n else {\n plotinfo.mainplot = 'xy';\n plotinfo.mainplotinfo = mainplotinfo;\n }\n\n Cartesian.rangePlot(gd, plotinfo, filterRangePlotCalcData(calcData, id));\n });\n}\n\nfunction filterRangePlotCalcData(calcData, subplotId) {\n var out = [];\n\n for(var i = 0; i < calcData.length; i++) {\n var calcTrace = calcData[i];\n var trace = calcTrace[0].trace;\n\n if(trace.xaxis + trace.yaxis === subplotId) {\n out.push(calcTrace);\n }\n }\n\n return out;\n}\n\nfunction drawMasks(rangeSlider, gd, axisOpts, opts, oppAxisRangeOpts) {\n var maskMin = Lib.ensureSingle(rangeSlider, 'rect', constants.maskMinClassName, function(s) {\n s.attr({\n x: 0,\n y: 0,\n 'shape-rendering': 'crispEdges'\n });\n });\n\n maskMin\n .attr('height', opts._height)\n .call(Color.fill, constants.maskColor);\n\n var maskMax = Lib.ensureSingle(rangeSlider, 'rect', constants.maskMaxClassName, function(s) {\n s.attr({\n y: 0,\n 'shape-rendering': 'crispEdges'\n });\n });\n\n maskMax\n .attr('height', opts._height)\n .call(Color.fill, constants.maskColor);\n\n // masks used for oppAxis zoom\n if(oppAxisRangeOpts.rangemode !== 'match') {\n var maskMinOppAxis = Lib.ensureSingle(rangeSlider, 'rect', constants.maskMinOppAxisClassName, function(s) {\n s.attr({\n y: 0,\n 'shape-rendering': 'crispEdges'\n });\n });\n\n maskMinOppAxis\n .attr('width', opts._width)\n .call(Color.fill, constants.maskOppAxisColor);\n\n var maskMaxOppAxis = Lib.ensureSingle(rangeSlider, 'rect', constants.maskMaxOppAxisClassName, function(s) {\n s.attr({\n y: 0,\n 'shape-rendering': 'crispEdges'\n });\n });\n\n maskMaxOppAxis\n .attr('width', opts._width)\n .style('border-top', constants.maskOppBorder)\n .call(Color.fill, constants.maskOppAxisColor);\n }\n}\n\nfunction drawSlideBox(rangeSlider, gd, axisOpts, opts) {\n if(gd._context.staticPlot) return;\n\n var slideBox = Lib.ensureSingle(rangeSlider, 'rect', constants.slideBoxClassName, function(s) {\n s.attr({\n y: 0,\n cursor: constants.slideBoxCursor,\n 'shape-rendering': 'crispEdges'\n });\n });\n\n slideBox.attr({\n height: opts._height,\n fill: constants.slideBoxFill\n });\n}\n\nfunction drawGrabbers(rangeSlider, gd, axisOpts, opts) {\n // \n var grabberMin = Lib.ensureSingle(rangeSlider, 'g', constants.grabberMinClassName);\n var grabberMax = Lib.ensureSingle(rangeSlider, 'g', constants.grabberMaxClassName);\n\n // \n var handleFixAttrs = {\n x: 0,\n width: constants.handleWidth,\n rx: constants.handleRadius,\n fill: Color.background,\n stroke: Color.defaultLine,\n 'stroke-width': constants.handleStrokeWidth,\n 'shape-rendering': 'crispEdges'\n };\n var handleDynamicAttrs = {\n y: Math.round(opts._height / 4),\n height: Math.round(opts._height / 2),\n };\n var handleMin = Lib.ensureSingle(grabberMin, 'rect', constants.handleMinClassName, function(s) {\n s.attr(handleFixAttrs);\n });\n handleMin.attr(handleDynamicAttrs);\n\n var handleMax = Lib.ensureSingle(grabberMax, 'rect', constants.handleMaxClassName, function(s) {\n s.attr(handleFixAttrs);\n });\n handleMax.attr(handleDynamicAttrs);\n\n // \n var grabAreaFixAttrs = {\n width: constants.grabAreaWidth,\n x: 0,\n y: 0,\n fill: constants.grabAreaFill,\n cursor: !gd._context.staticPlot ? constants.grabAreaCursor : undefined,\n };\n\n var grabAreaMin = Lib.ensureSingle(grabberMin, 'rect', constants.grabAreaMinClassName, function(s) {\n s.attr(grabAreaFixAttrs);\n });\n grabAreaMin.attr('height', opts._height);\n\n var grabAreaMax = Lib.ensureSingle(grabberMax, 'rect', constants.grabAreaMaxClassName, function(s) {\n s.attr(grabAreaFixAttrs);\n });\n grabAreaMax.attr('height', opts._height);\n}\n\n},{\"../../lib\":503,\"../../lib/setcursor\":524,\"../../plots/cartesian\":568,\"../../plots/cartesian/axis_ids\":558,\"../../plots/plots\":619,\"../../registry\":638,\"../color\":366,\"../dragelement\":385,\"../drawing\":388,\"../titles\":464,\"./constants\":440,\"@plotly/d3\":58}],443:[function(_dereq_,module,exports){\n'use strict';\n\nvar axisIDs = _dereq_('../../plots/cartesian/axis_ids');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\nvar constants = _dereq_('./constants');\nvar LINE_SPACING = _dereq_('../../constants/alignment').LINE_SPACING;\nvar name = constants.name;\n\nfunction isVisible(ax) {\n var rangeSlider = ax && ax[name];\n return rangeSlider && rangeSlider.visible;\n}\nexports.isVisible = isVisible;\n\nexports.makeData = function(fullLayout) {\n var axes = axisIDs.list({ _fullLayout: fullLayout }, 'x', true);\n var margin = fullLayout.margin;\n var rangeSliderData = [];\n\n if(!fullLayout._has('gl2d')) {\n for(var i = 0; i < axes.length; i++) {\n var ax = axes[i];\n\n if(isVisible(ax)) {\n rangeSliderData.push(ax);\n\n var opts = ax[name];\n opts._id = name + ax._id;\n opts._height = (fullLayout.height - margin.b - margin.t) * opts.thickness;\n opts._offsetShift = Math.floor(opts.borderwidth / 2);\n }\n }\n }\n\n fullLayout._rangeSliderData = rangeSliderData;\n};\n\nexports.autoMarginOpts = function(gd, ax) {\n var fullLayout = gd._fullLayout;\n var opts = ax[name];\n var axLetter = ax._id.charAt(0);\n\n var bottomDepth = 0;\n var titleHeight = 0;\n if(ax.side === 'bottom') {\n bottomDepth = ax._depth;\n if(ax.title.text !== fullLayout._dfltTitle[axLetter]) {\n // as in rangeslider/draw.js\n titleHeight = 1.5 * ax.title.font.size + 10 + opts._offsetShift;\n // multi-line extra bump\n var extraLines = (ax.title.text.match(svgTextUtils.BR_TAG_ALL) || []).length;\n titleHeight += extraLines * ax.title.font.size * LINE_SPACING;\n }\n }\n\n return {\n x: 0,\n y: ax._counterDomainMin,\n l: 0,\n r: 0,\n t: 0,\n b: opts._height + bottomDepth + Math.max(fullLayout.margin.b, titleHeight),\n pad: constants.extraPad + opts._offsetShift * 2\n };\n};\n\n},{\"../../constants/alignment\":471,\"../../lib/svg_text_utils\":529,\"../../plots/cartesian/axis_ids\":558,\"./constants\":440}],444:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar attrs = _dereq_('./attributes');\nvar oppAxisAttrs = _dereq_('./oppaxis_attributes');\nvar helpers = _dereq_('./helpers');\n\nmodule.exports = {\n moduleType: 'component',\n name: 'rangeslider',\n\n schema: {\n subplots: {\n xaxis: {\n rangeslider: Lib.extendFlat({}, attrs, {\n yaxis: oppAxisAttrs\n })\n }\n }\n },\n\n layoutAttributes: _dereq_('./attributes'),\n handleDefaults: _dereq_('./defaults'),\n calcAutorange: _dereq_('./calc_autorange'),\n draw: _dereq_('./draw'),\n isVisible: helpers.isVisible,\n makeData: helpers.makeData,\n autoMarginOpts: helpers.autoMarginOpts\n};\n\n},{\"../../lib\":503,\"./attributes\":438,\"./calc_autorange\":439,\"./defaults\":441,\"./draw\":442,\"./helpers\":443,\"./oppaxis_attributes\":445}],445:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n // not really a 'subplot' attribute container,\n // but this is the flag we use to denote attributes that\n // support yaxis, yaxis2, yaxis3, ... counters\n _isSubplotObj: true,\n\n rangemode: {\n valType: 'enumerated',\n values: ['auto', 'fixed', 'match'],\n dflt: 'match',\n editType: 'calc',\n },\n range: {\n valType: 'info_array',\n items: [\n {valType: 'any', editType: 'plot'},\n {valType: 'any', editType: 'plot'}\n ],\n editType: 'plot',\n },\n editType: 'calc'\n};\n\n},{}],446:[function(_dereq_,module,exports){\n'use strict';\n\nvar annAttrs = _dereq_('../annotations/attributes');\nvar scatterLineAttrs = _dereq_('../../traces/scatter/attributes').line;\nvar dash = _dereq_('../drawing/attributes').dash;\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar templatedArray = _dereq_('../../plot_api/plot_template').templatedArray;\nvar axisPlaceableObjs = _dereq_('../../constants/axis_placeable_objects');\n\nmodule.exports = templatedArray('shape', {\n visible: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc+arraydraw',\n },\n\n type: {\n valType: 'enumerated',\n values: ['circle', 'rect', 'path', 'line'],\n editType: 'calc+arraydraw',\n },\n\n layer: {\n valType: 'enumerated',\n values: ['below', 'above'],\n dflt: 'above',\n editType: 'arraydraw',\n },\n\n xref: extendFlat({}, annAttrs.xref, {\n }),\n xsizemode: {\n valType: 'enumerated',\n values: ['scaled', 'pixel'],\n dflt: 'scaled',\n editType: 'calc+arraydraw',\n },\n xanchor: {\n valType: 'any',\n editType: 'calc+arraydraw',\n },\n x0: {\n valType: 'any',\n editType: 'calc+arraydraw',\n },\n x1: {\n valType: 'any',\n editType: 'calc+arraydraw',\n },\n\n yref: extendFlat({}, annAttrs.yref, {\n }),\n ysizemode: {\n valType: 'enumerated',\n values: ['scaled', 'pixel'],\n dflt: 'scaled',\n editType: 'calc+arraydraw',\n },\n yanchor: {\n valType: 'any',\n editType: 'calc+arraydraw',\n },\n y0: {\n valType: 'any',\n editType: 'calc+arraydraw',\n },\n y1: {\n valType: 'any',\n editType: 'calc+arraydraw',\n },\n\n path: {\n valType: 'string',\n editType: 'calc+arraydraw',\n },\n\n opacity: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 1,\n editType: 'arraydraw',\n },\n line: {\n color: extendFlat({}, scatterLineAttrs.color, {editType: 'arraydraw'}),\n width: extendFlat({}, scatterLineAttrs.width, {editType: 'calc+arraydraw'}),\n dash: extendFlat({}, dash, {editType: 'arraydraw'}),\n editType: 'calc+arraydraw'\n },\n fillcolor: {\n valType: 'color',\n dflt: 'rgba(0,0,0,0)',\n editType: 'arraydraw',\n },\n fillrule: {\n valType: 'enumerated',\n values: ['evenodd', 'nonzero'],\n dflt: 'evenodd',\n editType: 'arraydraw',\n },\n editable: {\n valType: 'boolean',\n dflt: false,\n editType: 'calc+arraydraw',\n },\n\n editType: 'arraydraw'\n});\n\n},{\"../../constants/axis_placeable_objects\":472,\"../../lib/extend\":493,\"../../plot_api/plot_template\":543,\"../../traces/scatter/attributes\":925,\"../annotations/attributes\":349,\"../drawing/attributes\":387}],447:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Axes = _dereq_('../../plots/cartesian/axes');\n\nvar constants = _dereq_('./constants');\nvar helpers = _dereq_('./helpers');\n\n\nmodule.exports = function calcAutorange(gd) {\n var fullLayout = gd._fullLayout;\n var shapeList = Lib.filterVisible(fullLayout.shapes);\n\n if(!shapeList.length || !gd._fullData.length) return;\n\n for(var i = 0; i < shapeList.length; i++) {\n var shape = shapeList[i];\n shape._extremes = {};\n\n var ax; var bounds;\n var xRefType = Axes.getRefType(shape.xref);\n var yRefType = Axes.getRefType(shape.yref);\n\n // paper and axis domain referenced shapes don't affect autorange\n if(shape.xref !== 'paper' && xRefType !== 'domain') {\n var vx0 = shape.xsizemode === 'pixel' ? shape.xanchor : shape.x0;\n var vx1 = shape.xsizemode === 'pixel' ? shape.xanchor : shape.x1;\n ax = Axes.getFromId(gd, shape.xref);\n\n bounds = shapeBounds(ax, vx0, vx1, shape.path, constants.paramIsX);\n if(bounds) {\n shape._extremes[ax._id] = Axes.findExtremes(ax, bounds, calcXPaddingOptions(shape));\n }\n }\n\n if(shape.yref !== 'paper' && yRefType !== 'domain') {\n var vy0 = shape.ysizemode === 'pixel' ? shape.yanchor : shape.y0;\n var vy1 = shape.ysizemode === 'pixel' ? shape.yanchor : shape.y1;\n ax = Axes.getFromId(gd, shape.yref);\n\n bounds = shapeBounds(ax, vy0, vy1, shape.path, constants.paramIsY);\n if(bounds) {\n shape._extremes[ax._id] = Axes.findExtremes(ax, bounds, calcYPaddingOptions(shape));\n }\n }\n }\n};\n\nfunction calcXPaddingOptions(shape) {\n return calcPaddingOptions(shape.line.width, shape.xsizemode, shape.x0, shape.x1, shape.path, false);\n}\n\nfunction calcYPaddingOptions(shape) {\n return calcPaddingOptions(shape.line.width, shape.ysizemode, shape.y0, shape.y1, shape.path, true);\n}\n\nfunction calcPaddingOptions(lineWidth, sizeMode, v0, v1, path, isYAxis) {\n var ppad = lineWidth / 2;\n var axisDirectionReverted = isYAxis;\n\n if(sizeMode === 'pixel') {\n var coords = path ?\n helpers.extractPathCoords(path, isYAxis ? constants.paramIsY : constants.paramIsX) :\n [v0, v1];\n var maxValue = Lib.aggNums(Math.max, null, coords);\n var minValue = Lib.aggNums(Math.min, null, coords);\n var beforePad = minValue < 0 ? Math.abs(minValue) + ppad : ppad;\n var afterPad = maxValue > 0 ? maxValue + ppad : ppad;\n\n return {\n ppad: ppad,\n ppadplus: axisDirectionReverted ? beforePad : afterPad,\n ppadminus: axisDirectionReverted ? afterPad : beforePad\n };\n } else {\n return {ppad: ppad};\n }\n}\n\nfunction shapeBounds(ax, v0, v1, path, paramsToUse) {\n var convertVal = (ax.type === 'category' || ax.type === 'multicategory') ? ax.r2c : ax.d2c;\n\n if(v0 !== undefined) return [convertVal(v0), convertVal(v1)];\n if(!path) return;\n\n var min = Infinity;\n var max = -Infinity;\n var segments = path.match(constants.segmentRE);\n var i;\n var segment;\n var drawnParam;\n var params;\n var val;\n\n if(ax.type === 'date') convertVal = helpers.decodeDate(convertVal);\n\n for(i = 0; i < segments.length; i++) {\n segment = segments[i];\n drawnParam = paramsToUse[segment.charAt(0)].drawn;\n if(drawnParam === undefined) continue;\n\n params = segments[i].substr(1).match(constants.paramRE);\n if(!params || params.length < drawnParam) continue;\n\n val = convertVal(params[drawnParam]);\n if(val < min) min = val;\n if(val > max) max = val;\n }\n if(max >= min) return [min, max];\n}\n\n},{\"../../lib\":503,\"../../plots/cartesian/axes\":554,\"./constants\":448,\"./helpers\":457}],448:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = {\n segmentRE: /[MLHVQCTSZ][^MLHVQCTSZ]*/g,\n paramRE: /[^\\s,]+/g,\n\n // which numbers in each path segment are x (or y) values\n // drawn is which param is a drawn point, as opposed to a\n // control point (which doesn't count toward autorange.\n // TODO: this means curved paths could extend beyond the\n // autorange bounds. This is a bit tricky to get right\n // unless we revert to bounding boxes, but perhaps there's\n // a calculation we could do...)\n paramIsX: {\n M: {0: true, drawn: 0},\n L: {0: true, drawn: 0},\n H: {0: true, drawn: 0},\n V: {},\n Q: {0: true, 2: true, drawn: 2},\n C: {0: true, 2: true, 4: true, drawn: 4},\n T: {0: true, drawn: 0},\n S: {0: true, 2: true, drawn: 2},\n // A: {0: true, 5: true},\n Z: {}\n },\n\n paramIsY: {\n M: {1: true, drawn: 1},\n L: {1: true, drawn: 1},\n H: {},\n V: {0: true, drawn: 0},\n Q: {1: true, 3: true, drawn: 3},\n C: {1: true, 3: true, 5: true, drawn: 5},\n T: {1: true, drawn: 1},\n S: {1: true, 3: true, drawn: 5},\n // A: {1: true, 6: true},\n Z: {}\n },\n\n numParams: {\n M: 2,\n L: 2,\n H: 1,\n V: 1,\n Q: 4,\n C: 6,\n T: 2,\n S: 4,\n // A: 7,\n Z: 0\n }\n};\n\n},{}],449:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar handleArrayContainerDefaults = _dereq_('../../plots/array_container_defaults');\n\nvar attributes = _dereq_('./attributes');\nvar helpers = _dereq_('./helpers');\n\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {\n handleArrayContainerDefaults(layoutIn, layoutOut, {\n name: 'shapes',\n handleItemDefaults: handleShapeDefaults\n });\n};\n\nfunction handleShapeDefaults(shapeIn, shapeOut, fullLayout) {\n function coerce(attr, dflt) {\n return Lib.coerce(shapeIn, shapeOut, attributes, attr, dflt);\n }\n\n var visible = coerce('visible');\n if(!visible) return;\n\n var path = coerce('path');\n var dfltType = path ? 'path' : 'rect';\n var shapeType = coerce('type', dfltType);\n if(shapeOut.type !== 'path') delete shapeOut.path;\n\n coerce('editable');\n coerce('layer');\n coerce('opacity');\n coerce('fillcolor');\n coerce('fillrule');\n var lineWidth = coerce('line.width');\n if(lineWidth) {\n coerce('line.color');\n coerce('line.dash');\n }\n\n var xSizeMode = coerce('xsizemode');\n var ySizeMode = coerce('ysizemode');\n\n // positioning\n var axLetters = ['x', 'y'];\n for(var i = 0; i < 2; i++) {\n var axLetter = axLetters[i];\n var attrAnchor = axLetter + 'anchor';\n var sizeMode = axLetter === 'x' ? xSizeMode : ySizeMode;\n var gdMock = {_fullLayout: fullLayout};\n var ax;\n var pos2r;\n var r2pos;\n\n // xref, yref\n var axRef = Axes.coerceRef(shapeIn, shapeOut, gdMock, axLetter, undefined,\n 'paper');\n var axRefType = Axes.getRefType(axRef);\n\n if(axRefType === 'range') {\n ax = Axes.getFromId(gdMock, axRef);\n ax._shapeIndices.push(shapeOut._index);\n r2pos = helpers.rangeToShapePosition(ax);\n pos2r = helpers.shapePositionToRange(ax);\n } else {\n pos2r = r2pos = Lib.identity;\n }\n\n // Coerce x0, x1, y0, y1\n if(shapeType !== 'path') {\n var dflt0 = 0.25;\n var dflt1 = 0.75;\n\n // hack until V3.0 when log has regular range behavior - make it look like other\n // ranges to send to coerce, then put it back after\n // this is all to give reasonable default position behavior on log axes, which is\n // a pretty unimportant edge case so we could just ignore this.\n var attr0 = axLetter + '0';\n var attr1 = axLetter + '1';\n var in0 = shapeIn[attr0];\n var in1 = shapeIn[attr1];\n shapeIn[attr0] = pos2r(shapeIn[attr0], true);\n shapeIn[attr1] = pos2r(shapeIn[attr1], true);\n\n if(sizeMode === 'pixel') {\n coerce(attr0, 0);\n coerce(attr1, 10);\n } else {\n Axes.coercePosition(shapeOut, gdMock, coerce, axRef, attr0, dflt0);\n Axes.coercePosition(shapeOut, gdMock, coerce, axRef, attr1, dflt1);\n }\n\n // hack part 2\n shapeOut[attr0] = r2pos(shapeOut[attr0]);\n shapeOut[attr1] = r2pos(shapeOut[attr1]);\n shapeIn[attr0] = in0;\n shapeIn[attr1] = in1;\n }\n\n // Coerce xanchor and yanchor\n if(sizeMode === 'pixel') {\n // Hack for log axis described above\n var inAnchor = shapeIn[attrAnchor];\n shapeIn[attrAnchor] = pos2r(shapeIn[attrAnchor], true);\n\n Axes.coercePosition(shapeOut, gdMock, coerce, axRef, attrAnchor, 0.25);\n\n // Hack part 2\n shapeOut[attrAnchor] = r2pos(shapeOut[attrAnchor]);\n shapeIn[attrAnchor] = inAnchor;\n }\n }\n\n if(shapeType === 'path') {\n coerce('path');\n } else {\n Lib.noneOrAll(shapeIn, shapeOut, ['x0', 'x1', 'y0', 'y1']);\n }\n}\n\n},{\"../../lib\":503,\"../../plots/array_container_defaults\":549,\"../../plots/cartesian/axes\":554,\"./attributes\":446,\"./helpers\":457}],450:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar Axes = _dereq_('../../plots/cartesian/axes');\n\nvar readPaths = _dereq_('./draw_newshape/helpers').readPaths;\nvar displayOutlines = _dereq_('./draw_newshape/display_outlines');\n\nvar clearOutlineControllers = _dereq_('../../plots/cartesian/handle_outline').clearOutlineControllers;\n\nvar Color = _dereq_('../color');\nvar Drawing = _dereq_('../drawing');\nvar arrayEditor = _dereq_('../../plot_api/plot_template').arrayEditor;\n\nvar dragElement = _dereq_('../dragelement');\nvar setCursor = _dereq_('../../lib/setcursor');\n\nvar constants = _dereq_('./constants');\nvar helpers = _dereq_('./helpers');\n\n\n// Shapes are stored in gd.layout.shapes, an array of objects\n// index can point to one item in this array,\n// or non-numeric to simply add a new one\n// or -1 to modify all existing\n// opt can be the full options object, or one key (to be set to value)\n// or undefined to simply redraw\n// if opt is blank, val can be 'add' or a full options object to add a new\n// annotation at that point in the array, or 'remove' to delete this one\n\nmodule.exports = {\n draw: draw,\n drawOne: drawOne,\n eraseActiveShape: eraseActiveShape\n};\n\nfunction draw(gd) {\n var fullLayout = gd._fullLayout;\n\n // Remove previous shapes before drawing new in shapes in fullLayout.shapes\n fullLayout._shapeUpperLayer.selectAll('path').remove();\n fullLayout._shapeLowerLayer.selectAll('path').remove();\n\n for(var k in fullLayout._plots) {\n var shapelayer = fullLayout._plots[k].shapelayer;\n if(shapelayer) shapelayer.selectAll('path').remove();\n }\n\n for(var i = 0; i < fullLayout.shapes.length; i++) {\n if(fullLayout.shapes[i].visible) {\n drawOne(gd, i);\n }\n }\n\n // may need to resurrect this if we put text (LaTeX) in shapes\n // return Plots.previousPromises(gd);\n}\n\nfunction shouldSkipEdits(gd) {\n return !!gd._fullLayout._drawing;\n}\n\nfunction couldHaveActiveShape(gd) {\n // for now keep config.editable: true as it was before shape-drawing PR\n return !gd._context.edits.shapePosition;\n}\n\nfunction drawOne(gd, index) {\n // remove the existing shape if there is one.\n // because indices can change, we need to look in all shape layers\n gd._fullLayout._paperdiv\n .selectAll('.shapelayer [data-index=\"' + index + '\"]')\n .remove();\n\n var o = helpers.makeOptionsAndPlotinfo(gd, index);\n var options = o.options;\n var plotinfo = o.plotinfo;\n\n // this shape is gone - quit now after deleting it\n // TODO: use d3 idioms instead of deleting and redrawing every time\n if(!options._input || options.visible === false) return;\n\n if(options.layer !== 'below') {\n drawShape(gd._fullLayout._shapeUpperLayer);\n } else if(options.xref === 'paper' || options.yref === 'paper') {\n drawShape(gd._fullLayout._shapeLowerLayer);\n } else {\n if(plotinfo._hadPlotinfo) {\n var mainPlot = plotinfo.mainplotinfo || plotinfo;\n drawShape(mainPlot.shapelayer);\n } else {\n // Fall back to _shapeLowerLayer in case the requested subplot doesn't exist.\n // This can happen if you reference the shape to an x / y axis combination\n // that doesn't have any data on it (and layer is below)\n drawShape(gd._fullLayout._shapeLowerLayer);\n }\n }\n\n function drawShape(shapeLayer) {\n var d = getPathString(gd, options);\n var attrs = {\n 'data-index': index,\n 'fill-rule': options.fillrule,\n d: d\n };\n\n var opacity = options.opacity;\n var fillColor = options.fillcolor;\n var lineColor = options.line.width ? options.line.color : 'rgba(0,0,0,0)';\n var lineWidth = options.line.width;\n var lineDash = options.line.dash;\n if(!lineWidth && options.editable === true) {\n // ensure invisible border to activate the shape\n lineWidth = 5;\n lineDash = 'solid';\n }\n\n var isOpen = d[d.length - 1] !== 'Z';\n\n var isActiveShape = couldHaveActiveShape(gd) &&\n options.editable && gd._fullLayout._activeShapeIndex === index;\n\n if(isActiveShape) {\n fillColor = isOpen ? 'rgba(0,0,0,0)' :\n gd._fullLayout.activeshape.fillcolor;\n\n opacity = gd._fullLayout.activeshape.opacity;\n }\n\n var path = shapeLayer.append('path')\n .attr(attrs)\n .style('opacity', opacity)\n .call(Color.stroke, lineColor)\n .call(Color.fill, fillColor)\n .call(Drawing.dashLine, lineDash, lineWidth);\n\n setClipPath(path, gd, options);\n\n var editHelpers;\n if(isActiveShape || gd._context.edits.shapePosition) editHelpers = arrayEditor(gd.layout, 'shapes', options);\n\n if(isActiveShape) {\n path.style({\n 'cursor': 'move',\n });\n\n var dragOptions = {\n element: path.node(),\n plotinfo: plotinfo,\n gd: gd,\n editHelpers: editHelpers,\n isActiveShape: true // i.e. to enable controllers\n };\n\n var polygons = readPaths(d, gd);\n // display polygons on the screen\n displayOutlines(polygons, path, dragOptions);\n } else {\n if(gd._context.edits.shapePosition) {\n setupDragElement(gd, path, options, index, shapeLayer, editHelpers);\n } else if(options.editable === true) {\n path.style('pointer-events',\n (isOpen || Color.opacity(fillColor) * opacity <= 0.5) ? 'stroke' : 'all'\n );\n }\n }\n\n path.node().addEventListener('click', function() { return activateShape(gd, path); });\n }\n}\n\nfunction setClipPath(shapePath, gd, shapeOptions) {\n // note that for layer=\"below\" the clipAxes can be different from the\n // subplot we're drawing this in. This could cause problems if the shape\n // spans two subplots. See https://github.com/plotly/plotly.js/issues/1452\n //\n // if axis is 'paper' or an axis with \" domain\" appended, then there is no\n // clip axis\n var clipAxes = (shapeOptions.xref + shapeOptions.yref).replace(/paper/g, '').replace(/[xyz][1-9]* *domain/g, '');\n\n Drawing.setClipUrl(\n shapePath,\n clipAxes ? 'clip' + gd._fullLayout._uid + clipAxes : null,\n gd\n );\n}\n\nfunction setupDragElement(gd, shapePath, shapeOptions, index, shapeLayer, editHelpers) {\n var MINWIDTH = 10;\n var MINHEIGHT = 10;\n\n var xPixelSized = shapeOptions.xsizemode === 'pixel';\n var yPixelSized = shapeOptions.ysizemode === 'pixel';\n var isLine = shapeOptions.type === 'line';\n var isPath = shapeOptions.type === 'path';\n\n var modifyItem = editHelpers.modifyItem;\n\n var x0, y0, x1, y1, xAnchor, yAnchor;\n var n0, s0, w0, e0, optN, optS, optW, optE;\n var pathIn;\n\n // setup conversion functions\n var xa = Axes.getFromId(gd, shapeOptions.xref);\n var xRefType = Axes.getRefType(shapeOptions.xref);\n var ya = Axes.getFromId(gd, shapeOptions.yref);\n var yRefType = Axes.getRefType(shapeOptions.yref);\n var x2p = helpers.getDataToPixel(gd, xa, false, xRefType);\n var y2p = helpers.getDataToPixel(gd, ya, true, yRefType);\n var p2x = helpers.getPixelToData(gd, xa, false, xRefType);\n var p2y = helpers.getPixelToData(gd, ya, true, yRefType);\n\n var sensoryElement = obtainSensoryElement();\n var dragOptions = {\n element: sensoryElement.node(),\n gd: gd,\n prepFn: startDrag,\n doneFn: endDrag,\n clickFn: abortDrag\n };\n var dragMode;\n\n dragElement.init(dragOptions);\n\n sensoryElement.node().onmousemove = updateDragMode;\n\n function obtainSensoryElement() {\n return isLine ? createLineDragHandles() : shapePath;\n }\n\n function createLineDragHandles() {\n var minSensoryWidth = 10;\n var sensoryWidth = Math.max(shapeOptions.line.width, minSensoryWidth);\n\n // Helper shapes group\n // Note that by setting the `data-index` attr, it is ensured that\n // the helper group is purged in this modules `draw` function\n var g = shapeLayer.append('g')\n .attr('data-index', index);\n\n // Helper path for moving\n g.append('path')\n .attr('d', shapePath.attr('d'))\n .style({\n 'cursor': 'move',\n 'stroke-width': sensoryWidth,\n 'stroke-opacity': '0' // ensure not visible\n });\n\n // Helper circles for resizing\n var circleStyle = {\n 'fill-opacity': '0' // ensure not visible\n };\n var circleRadius = Math.max(sensoryWidth / 2, minSensoryWidth);\n\n g.append('circle')\n .attr({\n 'data-line-point': 'start-point',\n 'cx': xPixelSized ? x2p(shapeOptions.xanchor) + shapeOptions.x0 : x2p(shapeOptions.x0),\n 'cy': yPixelSized ? y2p(shapeOptions.yanchor) - shapeOptions.y0 : y2p(shapeOptions.y0),\n 'r': circleRadius\n })\n .style(circleStyle)\n .classed('cursor-grab', true);\n\n g.append('circle')\n .attr({\n 'data-line-point': 'end-point',\n 'cx': xPixelSized ? x2p(shapeOptions.xanchor) + shapeOptions.x1 : x2p(shapeOptions.x1),\n 'cy': yPixelSized ? y2p(shapeOptions.yanchor) - shapeOptions.y1 : y2p(shapeOptions.y1),\n 'r': circleRadius\n })\n .style(circleStyle)\n .classed('cursor-grab', true);\n\n return g;\n }\n\n function updateDragMode(evt) {\n if(shouldSkipEdits(gd)) {\n dragMode = null;\n return;\n }\n\n if(isLine) {\n if(evt.target.tagName === 'path') {\n dragMode = 'move';\n } else {\n dragMode = evt.target.attributes['data-line-point'].value === 'start-point' ?\n 'resize-over-start-point' : 'resize-over-end-point';\n }\n } else {\n // element might not be on screen at time of setup,\n // so obtain bounding box here\n var dragBBox = dragOptions.element.getBoundingClientRect();\n\n // choose 'move' or 'resize'\n // based on initial position of cursor within the drag element\n var w = dragBBox.right - dragBBox.left;\n var h = dragBBox.bottom - dragBBox.top;\n var x = evt.clientX - dragBBox.left;\n var y = evt.clientY - dragBBox.top;\n var cursor = (!isPath && w > MINWIDTH && h > MINHEIGHT && !evt.shiftKey) ?\n dragElement.getCursor(x / w, 1 - y / h) :\n 'move';\n\n setCursor(shapePath, cursor);\n\n // possible values 'move', 'sw', 'w', 'se', 'e', 'ne', 'n', 'nw' and 'w'\n dragMode = cursor.split('-')[0];\n }\n }\n\n function startDrag(evt) {\n if(shouldSkipEdits(gd)) return;\n\n // setup update strings and initial values\n if(xPixelSized) {\n xAnchor = x2p(shapeOptions.xanchor);\n }\n if(yPixelSized) {\n yAnchor = y2p(shapeOptions.yanchor);\n }\n\n if(shapeOptions.type === 'path') {\n pathIn = shapeOptions.path;\n } else {\n x0 = xPixelSized ? shapeOptions.x0 : x2p(shapeOptions.x0);\n y0 = yPixelSized ? shapeOptions.y0 : y2p(shapeOptions.y0);\n x1 = xPixelSized ? shapeOptions.x1 : x2p(shapeOptions.x1);\n y1 = yPixelSized ? shapeOptions.y1 : y2p(shapeOptions.y1);\n }\n\n if(x0 < x1) {\n w0 = x0;\n optW = 'x0';\n e0 = x1;\n optE = 'x1';\n } else {\n w0 = x1;\n optW = 'x1';\n e0 = x0;\n optE = 'x0';\n }\n\n // For fixed size shapes take opposing direction of y-axis into account.\n // Hint: For data sized shapes this is done by the y2p function.\n if((!yPixelSized && y0 < y1) || (yPixelSized && y0 > y1)) {\n n0 = y0;\n optN = 'y0';\n s0 = y1;\n optS = 'y1';\n } else {\n n0 = y1;\n optN = 'y1';\n s0 = y0;\n optS = 'y0';\n }\n\n // setup dragMode and the corresponding handler\n updateDragMode(evt);\n renderVisualCues(shapeLayer, shapeOptions);\n deactivateClipPathTemporarily(shapePath, shapeOptions, gd);\n dragOptions.moveFn = (dragMode === 'move') ? moveShape : resizeShape;\n dragOptions.altKey = evt.altKey;\n }\n\n function endDrag() {\n if(shouldSkipEdits(gd)) return;\n\n setCursor(shapePath);\n removeVisualCues(shapeLayer);\n\n // Don't rely on clipPath being activated during re-layout\n setClipPath(shapePath, gd, shapeOptions);\n Registry.call('_guiRelayout', gd, editHelpers.getUpdateObj());\n }\n\n function abortDrag() {\n if(shouldSkipEdits(gd)) return;\n\n removeVisualCues(shapeLayer);\n }\n\n function moveShape(dx, dy) {\n if(shapeOptions.type === 'path') {\n var noOp = function(coord) { return coord; };\n var moveX = noOp;\n var moveY = noOp;\n\n if(xPixelSized) {\n modifyItem('xanchor', shapeOptions.xanchor = p2x(xAnchor + dx));\n } else {\n moveX = function moveX(x) { return p2x(x2p(x) + dx); };\n if(xa && xa.type === 'date') moveX = helpers.encodeDate(moveX);\n }\n\n if(yPixelSized) {\n modifyItem('yanchor', shapeOptions.yanchor = p2y(yAnchor + dy));\n } else {\n moveY = function moveY(y) { return p2y(y2p(y) + dy); };\n if(ya && ya.type === 'date') moveY = helpers.encodeDate(moveY);\n }\n\n modifyItem('path', shapeOptions.path = movePath(pathIn, moveX, moveY));\n } else {\n if(xPixelSized) {\n modifyItem('xanchor', shapeOptions.xanchor = p2x(xAnchor + dx));\n } else {\n modifyItem('x0', shapeOptions.x0 = p2x(x0 + dx));\n modifyItem('x1', shapeOptions.x1 = p2x(x1 + dx));\n }\n\n if(yPixelSized) {\n modifyItem('yanchor', shapeOptions.yanchor = p2y(yAnchor + dy));\n } else {\n modifyItem('y0', shapeOptions.y0 = p2y(y0 + dy));\n modifyItem('y1', shapeOptions.y1 = p2y(y1 + dy));\n }\n }\n\n shapePath.attr('d', getPathString(gd, shapeOptions));\n renderVisualCues(shapeLayer, shapeOptions);\n }\n\n function resizeShape(dx, dy) {\n if(isPath) {\n // TODO: implement path resize, don't forget to update dragMode code\n var noOp = function(coord) { return coord; };\n var moveX = noOp;\n var moveY = noOp;\n\n if(xPixelSized) {\n modifyItem('xanchor', shapeOptions.xanchor = p2x(xAnchor + dx));\n } else {\n moveX = function moveX(x) { return p2x(x2p(x) + dx); };\n if(xa && xa.type === 'date') moveX = helpers.encodeDate(moveX);\n }\n\n if(yPixelSized) {\n modifyItem('yanchor', shapeOptions.yanchor = p2y(yAnchor + dy));\n } else {\n moveY = function moveY(y) { return p2y(y2p(y) + dy); };\n if(ya && ya.type === 'date') moveY = helpers.encodeDate(moveY);\n }\n\n modifyItem('path', shapeOptions.path = movePath(pathIn, moveX, moveY));\n } else if(isLine) {\n if(dragMode === 'resize-over-start-point') {\n var newX0 = x0 + dx;\n var newY0 = yPixelSized ? y0 - dy : y0 + dy;\n modifyItem('x0', shapeOptions.x0 = xPixelSized ? newX0 : p2x(newX0));\n modifyItem('y0', shapeOptions.y0 = yPixelSized ? newY0 : p2y(newY0));\n } else if(dragMode === 'resize-over-end-point') {\n var newX1 = x1 + dx;\n var newY1 = yPixelSized ? y1 - dy : y1 + dy;\n modifyItem('x1', shapeOptions.x1 = xPixelSized ? newX1 : p2x(newX1));\n modifyItem('y1', shapeOptions.y1 = yPixelSized ? newY1 : p2y(newY1));\n }\n } else {\n var has = function(str) { return dragMode.indexOf(str) !== -1; };\n var hasN = has('n');\n var hasS = has('s');\n var hasW = has('w');\n var hasE = has('e');\n\n var newN = hasN ? n0 + dy : n0;\n var newS = hasS ? s0 + dy : s0;\n var newW = hasW ? w0 + dx : w0;\n var newE = hasE ? e0 + dx : e0;\n\n if(yPixelSized) {\n // Do things in opposing direction for y-axis.\n // Hint: for data-sized shapes the reversal of axis direction is done in p2y.\n if(hasN) newN = n0 - dy;\n if(hasS) newS = s0 - dy;\n }\n\n // Update shape eventually. Again, be aware of the\n // opposing direction of the y-axis of fixed size shapes.\n if(\n (!yPixelSized && newS - newN > MINHEIGHT) ||\n (yPixelSized && newN - newS > MINHEIGHT)\n ) {\n modifyItem(optN, shapeOptions[optN] = yPixelSized ? newN : p2y(newN));\n modifyItem(optS, shapeOptions[optS] = yPixelSized ? newS : p2y(newS));\n }\n if(newE - newW > MINWIDTH) {\n modifyItem(optW, shapeOptions[optW] = xPixelSized ? newW : p2x(newW));\n modifyItem(optE, shapeOptions[optE] = xPixelSized ? newE : p2x(newE));\n }\n }\n\n shapePath.attr('d', getPathString(gd, shapeOptions));\n renderVisualCues(shapeLayer, shapeOptions);\n }\n\n function renderVisualCues(shapeLayer, shapeOptions) {\n if(xPixelSized || yPixelSized) {\n renderAnchor();\n }\n\n function renderAnchor() {\n var isNotPath = shapeOptions.type !== 'path';\n\n // d3 join with dummy data to satisfy d3 data-binding\n var visualCues = shapeLayer.selectAll('.visual-cue').data([0]);\n\n // Enter\n var strokeWidth = 1;\n visualCues.enter()\n .append('path')\n .attr({\n 'fill': '#fff',\n 'fill-rule': 'evenodd',\n 'stroke': '#000',\n 'stroke-width': strokeWidth\n })\n .classed('visual-cue', true);\n\n // Update\n var posX = x2p(\n xPixelSized ?\n shapeOptions.xanchor :\n Lib.midRange(\n isNotPath ?\n [shapeOptions.x0, shapeOptions.x1] :\n helpers.extractPathCoords(shapeOptions.path, constants.paramIsX))\n );\n var posY = y2p(\n yPixelSized ?\n shapeOptions.yanchor :\n Lib.midRange(\n isNotPath ?\n [shapeOptions.y0, shapeOptions.y1] :\n helpers.extractPathCoords(shapeOptions.path, constants.paramIsY))\n );\n\n posX = helpers.roundPositionForSharpStrokeRendering(posX, strokeWidth);\n posY = helpers.roundPositionForSharpStrokeRendering(posY, strokeWidth);\n\n if(xPixelSized && yPixelSized) {\n var crossPath = 'M' + (posX - 1 - strokeWidth) + ',' + (posY - 1 - strokeWidth) +\n 'h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z';\n visualCues.attr('d', crossPath);\n } else if(xPixelSized) {\n var vBarPath = 'M' + (posX - 1 - strokeWidth) + ',' + (posY - 9 - strokeWidth) +\n 'v18 h2 v-18 Z';\n visualCues.attr('d', vBarPath);\n } else {\n var hBarPath = 'M' + (posX - 9 - strokeWidth) + ',' + (posY - 1 - strokeWidth) +\n 'h18 v2 h-18 Z';\n visualCues.attr('d', hBarPath);\n }\n }\n }\n\n function removeVisualCues(shapeLayer) {\n shapeLayer.selectAll('.visual-cue').remove();\n }\n\n function deactivateClipPathTemporarily(shapePath, shapeOptions, gd) {\n var xref = shapeOptions.xref;\n var yref = shapeOptions.yref;\n var xa = Axes.getFromId(gd, xref);\n var ya = Axes.getFromId(gd, yref);\n\n var clipAxes = '';\n if(xref !== 'paper' && !xa.autorange) clipAxes += xref;\n if(yref !== 'paper' && !ya.autorange) clipAxes += yref;\n\n Drawing.setClipUrl(\n shapePath,\n clipAxes ? 'clip' + gd._fullLayout._uid + clipAxes : null,\n gd\n );\n }\n}\n\nfunction getPathString(gd, options) {\n var type = options.type;\n var xRefType = Axes.getRefType(options.xref);\n var yRefType = Axes.getRefType(options.yref);\n var xa = Axes.getFromId(gd, options.xref);\n var ya = Axes.getFromId(gd, options.yref);\n var gs = gd._fullLayout._size;\n var x2r, x2p, y2r, y2p;\n var x0, x1, y0, y1;\n\n if(xa) {\n if(xRefType === 'domain') {\n x2p = function(v) { return xa._offset + xa._length * v; };\n } else {\n x2r = helpers.shapePositionToRange(xa);\n x2p = function(v) { return xa._offset + xa.r2p(x2r(v, true)); };\n }\n } else {\n x2p = function(v) { return gs.l + gs.w * v; };\n }\n\n if(ya) {\n if(yRefType === 'domain') {\n y2p = function(v) { return ya._offset + ya._length * (1 - v); };\n } else {\n y2r = helpers.shapePositionToRange(ya);\n y2p = function(v) { return ya._offset + ya.r2p(y2r(v, true)); };\n }\n } else {\n y2p = function(v) { return gs.t + gs.h * (1 - v); };\n }\n\n if(type === 'path') {\n if(xa && xa.type === 'date') x2p = helpers.decodeDate(x2p);\n if(ya && ya.type === 'date') y2p = helpers.decodeDate(y2p);\n return convertPath(options, x2p, y2p);\n }\n\n if(options.xsizemode === 'pixel') {\n var xAnchorPos = x2p(options.xanchor);\n x0 = xAnchorPos + options.x0;\n x1 = xAnchorPos + options.x1;\n } else {\n x0 = x2p(options.x0);\n x1 = x2p(options.x1);\n }\n\n if(options.ysizemode === 'pixel') {\n var yAnchorPos = y2p(options.yanchor);\n y0 = yAnchorPos - options.y0;\n y1 = yAnchorPos - options.y1;\n } else {\n y0 = y2p(options.y0);\n y1 = y2p(options.y1);\n }\n\n if(type === 'line') return 'M' + x0 + ',' + y0 + 'L' + x1 + ',' + y1;\n if(type === 'rect') return 'M' + x0 + ',' + y0 + 'H' + x1 + 'V' + y1 + 'H' + x0 + 'Z';\n\n // circle\n var cx = (x0 + x1) / 2;\n var cy = (y0 + y1) / 2;\n var rx = Math.abs(cx - x0);\n var ry = Math.abs(cy - y0);\n var rArc = 'A' + rx + ',' + ry;\n var rightPt = (cx + rx) + ',' + cy;\n var topPt = cx + ',' + (cy - ry);\n return 'M' + rightPt + rArc + ' 0 1,1 ' + topPt +\n rArc + ' 0 0,1 ' + rightPt + 'Z';\n}\n\n\nfunction convertPath(options, x2p, y2p) {\n var pathIn = options.path;\n var xSizemode = options.xsizemode;\n var ySizemode = options.ysizemode;\n var xAnchor = options.xanchor;\n var yAnchor = options.yanchor;\n\n return pathIn.replace(constants.segmentRE, function(segment) {\n var paramNumber = 0;\n var segmentType = segment.charAt(0);\n var xParams = constants.paramIsX[segmentType];\n var yParams = constants.paramIsY[segmentType];\n var nParams = constants.numParams[segmentType];\n\n var paramString = segment.substr(1).replace(constants.paramRE, function(param) {\n if(xParams[paramNumber]) {\n if(xSizemode === 'pixel') param = x2p(xAnchor) + Number(param);\n else param = x2p(param);\n } else if(yParams[paramNumber]) {\n if(ySizemode === 'pixel') param = y2p(yAnchor) - Number(param);\n else param = y2p(param);\n }\n paramNumber++;\n\n if(paramNumber > nParams) param = 'X';\n return param;\n });\n\n if(paramNumber > nParams) {\n paramString = paramString.replace(/[\\s,]*X.*/, '');\n Lib.log('Ignoring extra params in segment ' + segment);\n }\n\n return segmentType + paramString;\n });\n}\n\nfunction movePath(pathIn, moveX, moveY) {\n return pathIn.replace(constants.segmentRE, function(segment) {\n var paramNumber = 0;\n var segmentType = segment.charAt(0);\n var xParams = constants.paramIsX[segmentType];\n var yParams = constants.paramIsY[segmentType];\n var nParams = constants.numParams[segmentType];\n\n var paramString = segment.substr(1).replace(constants.paramRE, function(param) {\n if(paramNumber >= nParams) return param;\n\n if(xParams[paramNumber]) param = moveX(param);\n else if(yParams[paramNumber]) param = moveY(param);\n\n paramNumber++;\n\n return param;\n });\n\n return segmentType + paramString;\n });\n}\n\nfunction activateShape(gd, path) {\n if(!couldHaveActiveShape(gd)) return;\n\n var element = path.node();\n var id = +element.getAttribute('data-index');\n if(id >= 0) {\n // deactivate if already active\n if(id === gd._fullLayout._activeShapeIndex) {\n deactivateShape(gd);\n return;\n }\n\n gd._fullLayout._activeShapeIndex = id;\n gd._fullLayout._deactivateShape = deactivateShape;\n draw(gd);\n }\n}\n\nfunction deactivateShape(gd) {\n if(!couldHaveActiveShape(gd)) return;\n\n var id = gd._fullLayout._activeShapeIndex;\n if(id >= 0) {\n clearOutlineControllers(gd);\n delete gd._fullLayout._activeShapeIndex;\n draw(gd);\n }\n}\n\nfunction eraseActiveShape(gd) {\n if(!couldHaveActiveShape(gd)) return;\n\n clearOutlineControllers(gd);\n\n var id = gd._fullLayout._activeShapeIndex;\n var shapes = (gd.layout || {}).shapes || [];\n if(id < shapes.length) {\n var newShapes = [];\n for(var q = 0; q < shapes.length; q++) {\n if(q !== id) {\n newShapes.push(shapes[q]);\n }\n }\n\n delete gd._fullLayout._activeShapeIndex;\n\n Registry.call('_guiRelayout', gd, {\n shapes: newShapes\n });\n }\n}\n\n},{\"../../lib\":503,\"../../lib/setcursor\":524,\"../../plot_api/plot_template\":543,\"../../plots/cartesian/axes\":554,\"../../plots/cartesian/handle_outline\":565,\"../../registry\":638,\"../color\":366,\"../dragelement\":385,\"../drawing\":388,\"./constants\":448,\"./draw_newshape/display_outlines\":454,\"./draw_newshape/helpers\":455,\"./helpers\":457}],451:[function(_dereq_,module,exports){\n'use strict';\n\nvar dash = _dereq_('../../drawing/attributes').dash;\nvar extendFlat = _dereq_('../../../lib/extend').extendFlat;\n\nmodule.exports = {\n newshape: {\n line: {\n color: {\n valType: 'color',\n editType: 'none',\n },\n width: {\n valType: 'number',\n min: 0,\n dflt: 4,\n editType: 'none',\n },\n dash: extendFlat({}, dash, {\n dflt: 'solid',\n editType: 'none'\n }),\n editType: 'none'\n },\n fillcolor: {\n valType: 'color',\n dflt: 'rgba(0,0,0,0)',\n editType: 'none',\n },\n fillrule: {\n valType: 'enumerated',\n values: ['evenodd', 'nonzero'],\n dflt: 'evenodd',\n editType: 'none',\n },\n opacity: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 1,\n editType: 'none',\n },\n layer: {\n valType: 'enumerated',\n values: ['below', 'above'],\n dflt: 'above',\n editType: 'none',\n },\n drawdirection: {\n valType: 'enumerated',\n values: ['ortho', 'horizontal', 'vertical', 'diagonal'],\n dflt: 'diagonal',\n editType: 'none',\n },\n\n editType: 'none'\n },\n\n activeshape: {\n fillcolor: {\n valType: 'color',\n dflt: 'rgb(255,0,255)',\n editType: 'none',\n },\n opacity: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0.5,\n editType: 'none',\n },\n editType: 'none'\n }\n};\n\n},{\"../../../lib/extend\":493,\"../../drawing/attributes\":387}],452:[function(_dereq_,module,exports){\n'use strict';\n\nvar CIRCLE_SIDES = 32; // should be divisible by 4\n\nmodule.exports = {\n CIRCLE_SIDES: CIRCLE_SIDES,\n i000: 0,\n i090: CIRCLE_SIDES / 4,\n i180: CIRCLE_SIDES / 2,\n i270: CIRCLE_SIDES / 4 * 3,\n cos45: Math.cos(Math.PI / 4),\n sin45: Math.sin(Math.PI / 4),\n SQRT2: Math.sqrt(2)\n};\n\n},{}],453:[function(_dereq_,module,exports){\n'use strict';\n\nvar Color = _dereq_('../../color');\n\n\nmodule.exports = function supplyDrawNewShapeDefaults(layoutIn, layoutOut, coerce) {\n coerce('newshape.drawdirection');\n coerce('newshape.layer');\n coerce('newshape.fillcolor');\n coerce('newshape.fillrule');\n coerce('newshape.opacity');\n var newshapeLineWidth = coerce('newshape.line.width');\n if(newshapeLineWidth) {\n var bgcolor = (layoutIn || {}).plot_bgcolor || '#FFF';\n coerce('newshape.line.color', Color.contrast(bgcolor));\n coerce('newshape.line.dash');\n }\n\n coerce('activeshape.fillcolor');\n coerce('activeshape.opacity');\n};\n\n},{\"../../color\":366}],454:[function(_dereq_,module,exports){\n'use strict';\n\nvar dragElement = _dereq_('../../dragelement');\nvar dragHelpers = _dereq_('../../dragelement/helpers');\nvar drawMode = dragHelpers.drawMode;\n\nvar Registry = _dereq_('../../../registry');\n\nvar constants = _dereq_('./constants');\nvar i000 = constants.i000;\nvar i090 = constants.i090;\nvar i180 = constants.i180;\nvar i270 = constants.i270;\n\nvar handleOutline = _dereq_('../../../plots/cartesian/handle_outline');\nvar clearOutlineControllers = handleOutline.clearOutlineControllers;\n\nvar helpers = _dereq_('./helpers');\nvar pointsShapeRectangle = helpers.pointsShapeRectangle;\nvar pointsShapeEllipse = helpers.pointsShapeEllipse;\nvar writePaths = helpers.writePaths;\nvar newShapes = _dereq_('./newshapes');\n\nmodule.exports = function displayOutlines(polygons, outlines, dragOptions, nCalls) {\n if(!nCalls) nCalls = 0;\n\n var gd = dragOptions.gd;\n\n function redraw() {\n // recursive call\n displayOutlines(polygons, outlines, dragOptions, nCalls++);\n\n if(pointsShapeEllipse(polygons[0])) {\n update({redrawing: true});\n }\n }\n\n function update(opts) {\n dragOptions.isActiveShape = false; // i.e. to disable controllers\n\n var updateObject = newShapes(outlines, dragOptions);\n if(Object.keys(updateObject).length) {\n Registry.call((opts || {}).redrawing ? 'relayout' : '_guiRelayout', gd, updateObject);\n }\n }\n\n\n var isActiveShape = dragOptions.isActiveShape;\n var fullLayout = gd._fullLayout;\n var zoomLayer = fullLayout._zoomlayer;\n\n var dragmode = dragOptions.dragmode;\n var isDrawMode = drawMode(dragmode);\n\n if(isDrawMode) gd._fullLayout._drawing = true;\n else if(gd._fullLayout._activeShapeIndex >= 0) clearOutlineControllers(gd);\n\n // make outline\n outlines.attr('d', writePaths(polygons));\n\n // add controllers\n var vertexDragOptions;\n var shapeDragOptions;\n var indexI; // cell index\n var indexJ; // vertex or cell-controller index\n var copyPolygons;\n\n if(isActiveShape && !nCalls) {\n copyPolygons = recordPositions([], polygons);\n\n var g = zoomLayer.append('g').attr('class', 'outline-controllers');\n addVertexControllers(g);\n addShapeControllers();\n }\n\n function startDragVertex(evt) {\n indexI = +evt.srcElement.getAttribute('data-i');\n indexJ = +evt.srcElement.getAttribute('data-j');\n\n vertexDragOptions[indexI][indexJ].moveFn = moveVertexController;\n }\n\n function moveVertexController(dx, dy) {\n if(!polygons.length) return;\n\n var x0 = copyPolygons[indexI][indexJ][1];\n var y0 = copyPolygons[indexI][indexJ][2];\n\n var cell = polygons[indexI];\n var len = cell.length;\n if(pointsShapeRectangle(cell)) {\n for(var q = 0; q < len; q++) {\n if(q === indexJ) continue;\n\n // move other corners of rectangle\n var pos = cell[q];\n\n if(pos[1] === cell[indexJ][1]) {\n pos[1] = x0 + dx;\n }\n\n if(pos[2] === cell[indexJ][2]) {\n pos[2] = y0 + dy;\n }\n }\n // move the corner\n cell[indexJ][1] = x0 + dx;\n cell[indexJ][2] = y0 + dy;\n\n if(!pointsShapeRectangle(cell)) {\n // reject result to rectangles with ensure areas\n for(var j = 0; j < len; j++) {\n for(var k = 0; k < cell[j].length; k++) {\n cell[j][k] = copyPolygons[indexI][j][k];\n }\n }\n }\n } else { // other polylines\n cell[indexJ][1] = x0 + dx;\n cell[indexJ][2] = y0 + dy;\n }\n\n redraw();\n }\n\n function endDragVertexController() {\n update();\n }\n\n function removeVertex() {\n if(!polygons.length) return;\n if(!polygons[indexI]) return;\n if(!polygons[indexI].length) return;\n\n var newPolygon = [];\n for(var j = 0; j < polygons[indexI].length; j++) {\n if(j !== indexJ) {\n newPolygon.push(\n polygons[indexI][j]\n );\n }\n }\n\n if(newPolygon.length > 1 && !(\n newPolygon.length === 2 && newPolygon[1][0] === 'Z')\n ) {\n if(indexJ === 0) {\n newPolygon[0][0] = 'M';\n }\n\n polygons[indexI] = newPolygon;\n\n redraw();\n update();\n }\n }\n\n function clickVertexController(numClicks, evt) {\n if(numClicks === 2) {\n indexI = +evt.srcElement.getAttribute('data-i');\n indexJ = +evt.srcElement.getAttribute('data-j');\n\n var cell = polygons[indexI];\n if(\n !pointsShapeRectangle(cell) &&\n !pointsShapeEllipse(cell)\n ) {\n removeVertex();\n }\n }\n }\n\n function addVertexControllers(g) {\n vertexDragOptions = [];\n\n for(var i = 0; i < polygons.length; i++) {\n var cell = polygons[i];\n\n var onRect = pointsShapeRectangle(cell);\n var onEllipse = !onRect && pointsShapeEllipse(cell);\n\n vertexDragOptions[i] = [];\n for(var j = 0; j < cell.length; j++) {\n if(cell[j][0] === 'Z') continue;\n\n if(onEllipse &&\n j !== i000 &&\n j !== i090 &&\n j !== i180 &&\n j !== i270\n ) {\n continue;\n }\n\n var x = cell[j][1];\n var y = cell[j][2];\n\n var vertex = g.append('circle')\n .classed('cursor-grab', true)\n .attr('data-i', i)\n .attr('data-j', j)\n .attr('cx', x)\n .attr('cy', y)\n .attr('r', 4)\n .style({\n 'mix-blend-mode': 'luminosity',\n fill: 'black',\n stroke: 'white',\n 'stroke-width': 1\n });\n\n vertexDragOptions[i][j] = {\n element: vertex.node(),\n gd: gd,\n prepFn: startDragVertex,\n doneFn: endDragVertexController,\n clickFn: clickVertexController\n };\n\n dragElement.init(vertexDragOptions[i][j]);\n }\n }\n }\n\n function moveShape(dx, dy) {\n if(!polygons.length) return;\n\n for(var i = 0; i < polygons.length; i++) {\n for(var j = 0; j < polygons[i].length; j++) {\n for(var k = 0; k + 2 < polygons[i][j].length; k += 2) {\n polygons[i][j][k + 1] = copyPolygons[i][j][k + 1] + dx;\n polygons[i][j][k + 2] = copyPolygons[i][j][k + 2] + dy;\n }\n }\n }\n }\n\n function moveShapeController(dx, dy) {\n moveShape(dx, dy);\n\n redraw();\n }\n\n function startDragShapeController(evt) {\n indexI = +evt.srcElement.getAttribute('data-i');\n if(!indexI) indexI = 0; // ensure non-existing move button get zero index\n\n shapeDragOptions[indexI].moveFn = moveShapeController;\n }\n\n function endDragShapeController() {\n update();\n }\n\n function addShapeControllers() {\n shapeDragOptions = [];\n\n if(!polygons.length) return;\n\n var i = 0;\n shapeDragOptions[i] = {\n element: outlines[0][0],\n gd: gd,\n prepFn: startDragShapeController,\n doneFn: endDragShapeController\n };\n\n dragElement.init(shapeDragOptions[i]);\n }\n};\n\nfunction recordPositions(polygonsOut, polygonsIn) {\n for(var i = 0; i < polygonsIn.length; i++) {\n var cell = polygonsIn[i];\n polygonsOut[i] = [];\n for(var j = 0; j < cell.length; j++) {\n polygonsOut[i][j] = [];\n for(var k = 0; k < cell[j].length; k++) {\n polygonsOut[i][j][k] = cell[j][k];\n }\n }\n }\n return polygonsOut;\n}\n\n},{\"../../../plots/cartesian/handle_outline\":565,\"../../../registry\":638,\"../../dragelement\":385,\"../../dragelement/helpers\":384,\"./constants\":452,\"./helpers\":455,\"./newshapes\":456}],455:[function(_dereq_,module,exports){\n'use strict';\n\nvar parseSvgPath = _dereq_('parse-svg-path');\n\nvar constants = _dereq_('./constants');\nvar CIRCLE_SIDES = constants.CIRCLE_SIDES;\nvar SQRT2 = constants.SQRT2;\n\nvar cartesianHelpers = _dereq_('../../../plots/cartesian/helpers');\nvar p2r = cartesianHelpers.p2r;\nvar r2p = cartesianHelpers.r2p;\n\nvar iC = [0, 3, 4, 5, 6, 1, 2];\nvar iQS = [0, 3, 4, 1, 2];\n\nexports.writePaths = function(polygons) {\n var nI = polygons.length;\n if(!nI) return 'M0,0Z';\n\n var str = '';\n for(var i = 0; i < nI; i++) {\n var nJ = polygons[i].length;\n for(var j = 0; j < nJ; j++) {\n var w = polygons[i][j][0];\n if(w === 'Z') {\n str += 'Z';\n } else {\n var nK = polygons[i][j].length;\n for(var k = 0; k < nK; k++) {\n var realK = k;\n if(w === 'Q' || w === 'S') {\n realK = iQS[k];\n } else if(w === 'C') {\n realK = iC[k];\n }\n\n str += polygons[i][j][realK];\n if(k > 0 && k < nK - 1) {\n str += ',';\n }\n }\n }\n }\n }\n\n return str;\n};\n\nexports.readPaths = function(str, gd, plotinfo, isActiveShape) {\n var cmd = parseSvgPath(str);\n\n var polys = [];\n var n = -1;\n var newPoly = function() {\n n++;\n polys[n] = [];\n };\n\n var k;\n var x = 0;\n var y = 0;\n var initX;\n var initY;\n var recStart = function() {\n initX = x;\n initY = y;\n };\n\n recStart();\n for(var i = 0; i < cmd.length; i++) {\n var newPos = [];\n\n var x1, x2, y1, y2; // i.e. extra params for curves\n\n var c = cmd[i][0];\n var w = c;\n switch(c) {\n case 'M':\n newPoly();\n x = +cmd[i][1];\n y = +cmd[i][2];\n newPos.push([w, x, y]);\n\n recStart();\n break;\n\n case 'Q':\n case 'S':\n x1 = +cmd[i][1];\n y1 = +cmd[i][2];\n x = +cmd[i][3];\n y = +cmd[i][4];\n newPos.push([w, x, y, x1, y1]); // -> iQS order\n break;\n\n case 'C':\n x1 = +cmd[i][1];\n y1 = +cmd[i][2];\n x2 = +cmd[i][3];\n y2 = +cmd[i][4];\n x = +cmd[i][5];\n y = +cmd[i][6];\n newPos.push([w, x, y, x1, y1, x2, y2]); // -> iC order\n break;\n\n case 'T':\n case 'L':\n x = +cmd[i][1];\n y = +cmd[i][2];\n newPos.push([w, x, y]);\n break;\n\n case 'H':\n w = 'L'; // convert to line (for now)\n x = +cmd[i][1];\n newPos.push([w, x, y]);\n break;\n\n case 'V':\n w = 'L'; // convert to line (for now)\n y = +cmd[i][1];\n newPos.push([w, x, y]);\n break;\n\n case 'A':\n w = 'L'; // convert to line to handle circle\n var rx = +cmd[i][1];\n var ry = +cmd[i][2];\n if(!+cmd[i][4]) {\n rx = -rx;\n ry = -ry;\n }\n\n var cenX = x - rx;\n var cenY = y;\n for(k = 1; k <= CIRCLE_SIDES / 2; k++) {\n var t = 2 * Math.PI * k / CIRCLE_SIDES;\n newPos.push([\n w,\n cenX + rx * Math.cos(t),\n cenY + ry * Math.sin(t)\n ]);\n }\n break;\n\n case 'Z':\n if(x !== initX || y !== initY) {\n x = initX;\n y = initY;\n newPos.push([w, x, y]);\n }\n break;\n }\n\n var domain = (plotinfo || {}).domain;\n var size = gd._fullLayout._size;\n var xPixelSized = plotinfo && plotinfo.xsizemode === 'pixel';\n var yPixelSized = plotinfo && plotinfo.ysizemode === 'pixel';\n var noOffset = isActiveShape === false;\n\n for(var j = 0; j < newPos.length; j++) {\n for(k = 0; k + 2 < 7; k += 2) {\n var _x = newPos[j][k + 1];\n var _y = newPos[j][k + 2];\n\n if(_x === undefined || _y === undefined) continue;\n // keep track of end point for Z\n x = _x;\n y = _y;\n\n if(plotinfo) {\n if(plotinfo.xaxis && plotinfo.xaxis.p2r) {\n if(noOffset) _x -= plotinfo.xaxis._offset;\n if(xPixelSized) {\n _x = r2p(plotinfo.xaxis, plotinfo.xanchor) + _x;\n } else {\n _x = p2r(plotinfo.xaxis, _x);\n }\n } else {\n if(noOffset) _x -= size.l;\n if(domain) _x = domain.x[0] + _x / size.w;\n else _x = _x / size.w;\n }\n\n if(plotinfo.yaxis && plotinfo.yaxis.p2r) {\n if(noOffset) _y -= plotinfo.yaxis._offset;\n if(yPixelSized) {\n _y = r2p(plotinfo.yaxis, plotinfo.yanchor) - _y;\n } else {\n _y = p2r(plotinfo.yaxis, _y);\n }\n } else {\n if(noOffset) _y -= size.t;\n if(domain) _y = domain.y[1] - _y / size.h;\n else _y = 1 - _y / size.h;\n }\n }\n\n newPos[j][k + 1] = _x;\n newPos[j][k + 2] = _y;\n }\n polys[n].push(\n newPos[j].slice()\n );\n }\n }\n\n return polys;\n};\n\nfunction almostEq(a, b) {\n return Math.abs(a - b) <= 1e-6;\n}\n\nfunction dist(a, b) {\n var dx = b[1] - a[1];\n var dy = b[2] - a[2];\n return Math.sqrt(\n dx * dx +\n dy * dy\n );\n}\n\nexports.pointsShapeRectangle = function(cell) {\n var len = cell.length;\n if(len !== 5) return false;\n\n for(var j = 1; j < 3; j++) {\n var e01 = cell[0][j] - cell[1][j];\n var e32 = cell[3][j] - cell[2][j];\n\n if(!almostEq(e01, e32)) return false;\n\n var e03 = cell[0][j] - cell[3][j];\n var e12 = cell[1][j] - cell[2][j];\n if(!almostEq(e03, e12)) return false;\n }\n\n // N.B. rotated rectangles are not valid rects since rotation is not supported in shapes for now.\n if(\n !almostEq(cell[0][1], cell[1][1]) &&\n !almostEq(cell[0][1], cell[3][1])\n ) return false;\n\n // reject cases with zero area\n return !!(\n dist(cell[0], cell[1]) *\n dist(cell[0], cell[3])\n );\n};\n\nexports.pointsShapeEllipse = function(cell) {\n var len = cell.length;\n if(len !== CIRCLE_SIDES + 1) return false;\n\n // opposite diagonals should be the same\n len = CIRCLE_SIDES;\n for(var i = 0; i < len; i++) {\n var k = (len * 2 - i) % len;\n\n var k2 = (len / 2 + k) % len;\n var i2 = (len / 2 + i) % len;\n\n if(!almostEq(\n dist(cell[i], cell[i2]),\n dist(cell[k], cell[k2])\n )) return false;\n }\n return true;\n};\n\nexports.handleEllipse = function(isEllipse, start, end) {\n if(!isEllipse) return [start, end]; // i.e. case of line\n\n var pos = exports.ellipseOver({\n x0: start[0],\n y0: start[1],\n x1: end[0],\n y1: end[1]\n });\n\n var cx = (pos.x1 + pos.x0) / 2;\n var cy = (pos.y1 + pos.y0) / 2;\n var rx = (pos.x1 - pos.x0) / 2;\n var ry = (pos.y1 - pos.y0) / 2;\n\n // make a circle when one dimension is zero\n if(!rx) rx = ry = ry / SQRT2;\n if(!ry) ry = rx = rx / SQRT2;\n\n var cell = [];\n for(var i = 0; i < CIRCLE_SIDES; i++) {\n var t = i * 2 * Math.PI / CIRCLE_SIDES;\n cell.push([\n cx + rx * Math.cos(t),\n cy + ry * Math.sin(t),\n ]);\n }\n return cell;\n};\n\nexports.ellipseOver = function(pos) {\n var x0 = pos.x0;\n var y0 = pos.y0;\n var x1 = pos.x1;\n var y1 = pos.y1;\n\n var dx = x1 - x0;\n var dy = y1 - y0;\n\n x0 -= dx;\n y0 -= dy;\n\n var cx = (x0 + x1) / 2;\n var cy = (y0 + y1) / 2;\n\n var scale = SQRT2;\n dx *= scale;\n dy *= scale;\n\n return {\n x0: cx - dx,\n y0: cy - dy,\n x1: cx + dx,\n y1: cy + dy\n };\n};\n\n},{\"../../../plots/cartesian/helpers\":566,\"./constants\":452,\"parse-svg-path\":250}],456:[function(_dereq_,module,exports){\n'use strict';\n\nvar dragHelpers = _dereq_('../../dragelement/helpers');\nvar drawMode = dragHelpers.drawMode;\nvar openMode = dragHelpers.openMode;\n\nvar constants = _dereq_('./constants');\nvar i000 = constants.i000;\nvar i090 = constants.i090;\nvar i180 = constants.i180;\nvar i270 = constants.i270;\nvar cos45 = constants.cos45;\nvar sin45 = constants.sin45;\n\nvar cartesianHelpers = _dereq_('../../../plots/cartesian/helpers');\nvar p2r = cartesianHelpers.p2r;\nvar r2p = cartesianHelpers.r2p;\n\nvar handleOutline = _dereq_('../../../plots/cartesian/handle_outline');\nvar clearSelect = handleOutline.clearSelect;\n\nvar helpers = _dereq_('./helpers');\nvar readPaths = helpers.readPaths;\nvar writePaths = helpers.writePaths;\nvar ellipseOver = helpers.ellipseOver;\n\n\nmodule.exports = function newShapes(outlines, dragOptions) {\n if(!outlines.length) return;\n var e = outlines[0][0]; // pick first\n if(!e) return;\n var d = e.getAttribute('d');\n\n var gd = dragOptions.gd;\n var drwStyle = gd._fullLayout.newshape;\n\n var plotinfo = dragOptions.plotinfo;\n var xaxis = plotinfo.xaxis;\n var yaxis = plotinfo.yaxis;\n var xPaper = !!plotinfo.domain || !plotinfo.xaxis;\n var yPaper = !!plotinfo.domain || !plotinfo.yaxis;\n\n var isActiveShape = dragOptions.isActiveShape;\n var dragmode = dragOptions.dragmode;\n\n var shapes = (gd.layout || {}).shapes || [];\n\n if(!drawMode(dragmode) && isActiveShape !== undefined) {\n var id = gd._fullLayout._activeShapeIndex;\n if(id < shapes.length) {\n switch(gd._fullLayout.shapes[id].type) {\n case 'rect':\n dragmode = 'drawrect';\n break;\n case 'circle':\n dragmode = 'drawcircle';\n break;\n case 'line':\n dragmode = 'drawline';\n break;\n case 'path':\n var path = shapes[id].path || '';\n if(path[path.length - 1] === 'Z') {\n dragmode = 'drawclosedpath';\n } else {\n dragmode = 'drawopenpath';\n }\n break;\n }\n }\n }\n\n var isOpenMode = openMode(dragmode);\n\n var polygons = readPaths(d, gd, plotinfo, isActiveShape);\n\n var newShape = {\n editable: true,\n\n xref: xPaper ? 'paper' : xaxis._id,\n yref: yPaper ? 'paper' : yaxis._id,\n\n layer: drwStyle.layer,\n opacity: drwStyle.opacity,\n line: {\n color: drwStyle.line.color,\n width: drwStyle.line.width,\n dash: drwStyle.line.dash\n }\n };\n\n if(!isOpenMode) {\n newShape.fillcolor = drwStyle.fillcolor;\n newShape.fillrule = drwStyle.fillrule;\n }\n\n var cell;\n // line, rect and circle can be in one cell\n // only define cell if there is single cell\n if(polygons.length === 1) cell = polygons[0];\n\n if(\n cell &&\n dragmode === 'drawrect'\n ) {\n newShape.type = 'rect';\n newShape.x0 = cell[0][1];\n newShape.y0 = cell[0][2];\n newShape.x1 = cell[2][1];\n newShape.y1 = cell[2][2];\n } else if(\n cell &&\n dragmode === 'drawline'\n ) {\n newShape.type = 'line';\n newShape.x0 = cell[0][1];\n newShape.y0 = cell[0][2];\n newShape.x1 = cell[1][1];\n newShape.y1 = cell[1][2];\n } else if(\n cell &&\n dragmode === 'drawcircle'\n ) {\n newShape.type = 'circle'; // an ellipse!\n\n var xA = cell[i000][1];\n var xB = cell[i090][1];\n var xC = cell[i180][1];\n var xD = cell[i270][1];\n\n var yA = cell[i000][2];\n var yB = cell[i090][2];\n var yC = cell[i180][2];\n var yD = cell[i270][2];\n\n var xDateOrLog = plotinfo.xaxis && (\n plotinfo.xaxis.type === 'date' ||\n plotinfo.xaxis.type === 'log'\n );\n\n var yDateOrLog = plotinfo.yaxis && (\n plotinfo.yaxis.type === 'date' ||\n plotinfo.yaxis.type === 'log'\n );\n\n if(xDateOrLog) {\n xA = r2p(plotinfo.xaxis, xA);\n xB = r2p(plotinfo.xaxis, xB);\n xC = r2p(plotinfo.xaxis, xC);\n xD = r2p(plotinfo.xaxis, xD);\n }\n\n if(yDateOrLog) {\n yA = r2p(plotinfo.yaxis, yA);\n yB = r2p(plotinfo.yaxis, yB);\n yC = r2p(plotinfo.yaxis, yC);\n yD = r2p(plotinfo.yaxis, yD);\n }\n\n var x0 = (xB + xD) / 2;\n var y0 = (yA + yC) / 2;\n var rx = (xD - xB + xC - xA) / 2;\n var ry = (yD - yB + yC - yA) / 2;\n var pos = ellipseOver({\n x0: x0,\n y0: y0,\n x1: x0 + rx * cos45,\n y1: y0 + ry * sin45\n });\n\n if(xDateOrLog) {\n pos.x0 = p2r(plotinfo.xaxis, pos.x0);\n pos.x1 = p2r(plotinfo.xaxis, pos.x1);\n }\n\n if(yDateOrLog) {\n pos.y0 = p2r(plotinfo.yaxis, pos.y0);\n pos.y1 = p2r(plotinfo.yaxis, pos.y1);\n }\n\n newShape.x0 = pos.x0;\n newShape.y0 = pos.y0;\n newShape.x1 = pos.x1;\n newShape.y1 = pos.y1;\n } else {\n newShape.type = 'path';\n if(xaxis && yaxis) fixDatesForPaths(polygons, xaxis, yaxis);\n newShape.path = writePaths(polygons);\n cell = null;\n }\n\n clearSelect(gd);\n\n var editHelpers = dragOptions.editHelpers;\n var modifyItem = (editHelpers || {}).modifyItem;\n\n var allShapes = [];\n for(var q = 0; q < shapes.length; q++) {\n var beforeEdit = gd._fullLayout.shapes[q];\n allShapes[q] = beforeEdit._input;\n\n if(\n isActiveShape !== undefined &&\n q === gd._fullLayout._activeShapeIndex\n ) {\n var afterEdit = newShape;\n\n switch(beforeEdit.type) {\n case 'line':\n case 'rect':\n case 'circle':\n modifyItem('x0', afterEdit.x0);\n modifyItem('x1', afterEdit.x1);\n modifyItem('y0', afterEdit.y0);\n modifyItem('y1', afterEdit.y1);\n break;\n\n case 'path':\n modifyItem('path', afterEdit.path);\n break;\n }\n }\n }\n\n if(isActiveShape === undefined) {\n allShapes.push(newShape); // add new shape\n return allShapes;\n }\n\n return editHelpers ? editHelpers.getUpdateObj() : {};\n};\n\nfunction fixDatesForPaths(polygons, xaxis, yaxis) {\n var xIsDate = xaxis.type === 'date';\n var yIsDate = yaxis.type === 'date';\n if(!xIsDate && !yIsDate) return polygons;\n\n for(var i = 0; i < polygons.length; i++) {\n for(var j = 0; j < polygons[i].length; j++) {\n for(var k = 0; k + 2 < polygons[i][j].length; k += 2) {\n if(xIsDate) polygons[i][j][k + 1] = polygons[i][j][k + 1].replace(' ', '_');\n if(yIsDate) polygons[i][j][k + 2] = polygons[i][j][k + 2].replace(' ', '_');\n }\n }\n }\n\n return polygons;\n}\n\n},{\"../../../plots/cartesian/handle_outline\":565,\"../../../plots/cartesian/helpers\":566,\"../../dragelement/helpers\":384,\"./constants\":452,\"./helpers\":455}],457:[function(_dereq_,module,exports){\n'use strict';\n\nvar constants = _dereq_('./constants');\n\nvar Lib = _dereq_('../../lib');\n\n// special position conversion functions... category axis positions can't be\n// specified by their data values, because they don't make a continuous mapping.\n// so these have to be specified in terms of the category serial numbers,\n// but can take fractional values. Other axis types we specify position based on\n// the actual data values.\n// TODO: in V3.0 (when log axis ranges are in data units) range and shape position\n// will be identical, so rangeToShapePosition and shapePositionToRange can be\n// removed entirely.\n\nexports.rangeToShapePosition = function(ax) {\n return (ax.type === 'log') ? ax.r2d : function(v) { return v; };\n};\n\nexports.shapePositionToRange = function(ax) {\n return (ax.type === 'log') ? ax.d2r : function(v) { return v; };\n};\n\nexports.decodeDate = function(convertToPx) {\n return function(v) {\n if(v.replace) v = v.replace('_', ' ');\n return convertToPx(v);\n };\n};\n\nexports.encodeDate = function(convertToDate) {\n return function(v) { return convertToDate(v).replace(' ', '_'); };\n};\n\nexports.extractPathCoords = function(path, paramsToUse) {\n var extractedCoordinates = [];\n\n var segments = path.match(constants.segmentRE);\n segments.forEach(function(segment) {\n var relevantParamIdx = paramsToUse[segment.charAt(0)].drawn;\n if(relevantParamIdx === undefined) return;\n\n var params = segment.substr(1).match(constants.paramRE);\n if(!params || params.length < relevantParamIdx) return;\n\n extractedCoordinates.push(Lib.cleanNumber(params[relevantParamIdx]));\n });\n\n return extractedCoordinates;\n};\n\nexports.getDataToPixel = function(gd, axis, isVertical, refType) {\n var gs = gd._fullLayout._size;\n var dataToPixel;\n\n if(axis) {\n if(refType === 'domain') {\n dataToPixel = function(v) {\n return axis._length * (isVertical ? (1 - v) : v) + axis._offset;\n };\n } else {\n var d2r = exports.shapePositionToRange(axis);\n\n dataToPixel = function(v) {\n return axis._offset + axis.r2p(d2r(v, true));\n };\n\n if(axis.type === 'date') dataToPixel = exports.decodeDate(dataToPixel);\n }\n } else if(isVertical) {\n dataToPixel = function(v) { return gs.t + gs.h * (1 - v); };\n } else {\n dataToPixel = function(v) { return gs.l + gs.w * v; };\n }\n\n return dataToPixel;\n};\n\nexports.getPixelToData = function(gd, axis, isVertical, opt) {\n var gs = gd._fullLayout._size;\n var pixelToData;\n\n if(axis) {\n if(opt === 'domain') {\n pixelToData = function(p) {\n var q = (p - axis._offset) / axis._length;\n return isVertical ? 1 - q : q;\n };\n } else {\n var r2d = exports.rangeToShapePosition(axis);\n pixelToData = function(p) { return r2d(axis.p2r(p - axis._offset)); };\n }\n } else if(isVertical) {\n pixelToData = function(p) { return 1 - (p - gs.t) / gs.h; };\n } else {\n pixelToData = function(p) { return (p - gs.l) / gs.w; };\n }\n\n return pixelToData;\n};\n\n/**\n * Based on the given stroke width, rounds the passed\n * position value to represent either a full or half pixel.\n *\n * In case of an odd stroke width (e.g. 1), this measure ensures\n * that a stroke positioned at the returned position isn't rendered\n * blurry due to anti-aliasing.\n *\n * In case of an even stroke width (e.g. 2), this measure ensures\n * that the position value is transformed to a full pixel value\n * so that anti-aliasing doesn't take effect either.\n *\n * @param {number} pos The raw position value to be transformed\n * @param {number} strokeWidth The stroke width\n * @returns {number} either an integer or a .5 decimal number\n */\nexports.roundPositionForSharpStrokeRendering = function(pos, strokeWidth) {\n var strokeWidthIsOdd = Math.round(strokeWidth % 2) === 1;\n var posValAsInt = Math.round(pos);\n\n return strokeWidthIsOdd ? posValAsInt + 0.5 : posValAsInt;\n};\n\nexports.makeOptionsAndPlotinfo = function(gd, index) {\n var options = gd._fullLayout.shapes[index] || {};\n\n var plotinfo = gd._fullLayout._plots[options.xref + options.yref];\n var hasPlotinfo = !!plotinfo;\n if(hasPlotinfo) {\n plotinfo._hadPlotinfo = true;\n } else {\n plotinfo = {};\n if(options.xref && options.xref !== 'paper') plotinfo.xaxis = gd._fullLayout[options.xref + 'axis'];\n if(options.yref && options.yref !== 'paper') plotinfo.yaxis = gd._fullLayout[options.yref + 'axis'];\n }\n\n plotinfo.xsizemode = options.xsizemode;\n plotinfo.ysizemode = options.ysizemode;\n plotinfo.xanchor = options.xanchor;\n plotinfo.yanchor = options.yanchor;\n\n return {\n options: options,\n plotinfo: plotinfo\n };\n};\n\n},{\"../../lib\":503,\"./constants\":448}],458:[function(_dereq_,module,exports){\n'use strict';\n\nvar drawModule = _dereq_('./draw');\n\nmodule.exports = {\n moduleType: 'component',\n name: 'shapes',\n\n layoutAttributes: _dereq_('./attributes'),\n supplyLayoutDefaults: _dereq_('./defaults'),\n supplyDrawNewShapeDefaults: _dereq_('./draw_newshape/defaults'),\n includeBasePlot: _dereq_('../../plots/cartesian/include_components')('shapes'),\n\n calcAutorange: _dereq_('./calc_autorange'),\n draw: drawModule.draw,\n drawOne: drawModule.drawOne\n};\n\n},{\"../../plots/cartesian/include_components\":567,\"./attributes\":446,\"./calc_autorange\":447,\"./defaults\":449,\"./draw\":450,\"./draw_newshape/defaults\":453}],459:[function(_dereq_,module,exports){\n'use strict';\n\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar padAttrs = _dereq_('../../plots/pad_attributes');\nvar extendDeepAll = _dereq_('../../lib/extend').extendDeepAll;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\nvar animationAttrs = _dereq_('../../plots/animation_attributes');\nvar templatedArray = _dereq_('../../plot_api/plot_template').templatedArray;\nvar constants = _dereq_('./constants');\n\nvar stepsAttrs = templatedArray('step', {\n visible: {\n valType: 'boolean',\n dflt: true,\n },\n method: {\n valType: 'enumerated',\n values: ['restyle', 'relayout', 'animate', 'update', 'skip'],\n dflt: 'restyle',\n },\n args: {\n valType: 'info_array',\n freeLength: true,\n items: [\n { valType: 'any' },\n { valType: 'any' },\n { valType: 'any' }\n ],\n },\n label: {\n valType: 'string',\n },\n value: {\n valType: 'string',\n },\n execute: {\n valType: 'boolean',\n dflt: true,\n }\n});\n\nmodule.exports = overrideAll(templatedArray('slider', {\n visible: {\n valType: 'boolean',\n dflt: true,\n },\n\n active: {\n valType: 'number',\n min: 0,\n dflt: 0,\n },\n\n steps: stepsAttrs,\n\n lenmode: {\n valType: 'enumerated',\n values: ['fraction', 'pixels'],\n dflt: 'fraction',\n },\n len: {\n valType: 'number',\n min: 0,\n dflt: 1,\n },\n x: {\n valType: 'number',\n min: -2,\n max: 3,\n dflt: 0,\n },\n pad: extendDeepAll(padAttrs({editType: 'arraydraw'}), {\n }, {t: {dflt: 20}}),\n xanchor: {\n valType: 'enumerated',\n values: ['auto', 'left', 'center', 'right'],\n dflt: 'left',\n },\n y: {\n valType: 'number',\n min: -2,\n max: 3,\n dflt: 0,\n },\n yanchor: {\n valType: 'enumerated',\n values: ['auto', 'top', 'middle', 'bottom'],\n dflt: 'top',\n },\n\n transition: {\n duration: {\n valType: 'number',\n min: 0,\n dflt: 150,\n },\n easing: {\n valType: 'enumerated',\n values: animationAttrs.transition.easing.values,\n dflt: 'cubic-in-out',\n }\n },\n\n currentvalue: {\n visible: {\n valType: 'boolean',\n dflt: true,\n },\n\n xanchor: {\n valType: 'enumerated',\n values: ['left', 'center', 'right'],\n dflt: 'left',\n },\n\n offset: {\n valType: 'number',\n dflt: 10,\n },\n\n prefix: {\n valType: 'string',\n },\n\n suffix: {\n valType: 'string',\n },\n\n font: fontAttrs({\n })\n },\n\n font: fontAttrs({\n }),\n\n activebgcolor: {\n valType: 'color',\n dflt: constants.gripBgActiveColor,\n },\n bgcolor: {\n valType: 'color',\n dflt: constants.railBgColor,\n },\n bordercolor: {\n valType: 'color',\n dflt: constants.railBorderColor,\n },\n borderwidth: {\n valType: 'number',\n min: 0,\n dflt: constants.railBorderWidth,\n },\n ticklen: {\n valType: 'number',\n min: 0,\n dflt: constants.tickLength,\n },\n tickcolor: {\n valType: 'color',\n dflt: constants.tickColor,\n },\n tickwidth: {\n valType: 'number',\n min: 0,\n dflt: 1,\n },\n minorticklen: {\n valType: 'number',\n min: 0,\n dflt: constants.minorTickLength,\n }\n}), 'arraydraw', 'from-root');\n\n},{\"../../lib/extend\":493,\"../../plot_api/edit_types\":536,\"../../plot_api/plot_template\":543,\"../../plots/animation_attributes\":548,\"../../plots/font_attributes\":585,\"../../plots/pad_attributes\":618,\"./constants\":460}],460:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = {\n\n // layout attribute name\n name: 'sliders',\n\n // class names\n containerClassName: 'slider-container',\n groupClassName: 'slider-group',\n inputAreaClass: 'slider-input-area',\n railRectClass: 'slider-rail-rect',\n railTouchRectClass: 'slider-rail-touch-rect',\n gripRectClass: 'slider-grip-rect',\n tickRectClass: 'slider-tick-rect',\n inputProxyClass: 'slider-input-proxy',\n labelsClass: 'slider-labels',\n labelGroupClass: 'slider-label-group',\n labelClass: 'slider-label',\n currentValueClass: 'slider-current-value',\n\n railHeight: 5,\n\n // DOM attribute name in button group keeping track\n // of active update menu\n menuIndexAttrName: 'slider-active-index',\n\n // id root pass to Plots.autoMargin\n autoMarginIdRoot: 'slider-',\n\n // min item width / height\n minWidth: 30,\n minHeight: 30,\n\n // padding around item text\n textPadX: 40,\n\n // arrow offset off right edge\n arrowOffsetX: 4,\n\n railRadius: 2,\n railWidth: 5,\n railBorder: 4,\n railBorderWidth: 1,\n railBorderColor: '#bec8d9',\n railBgColor: '#f8fafc',\n\n // The distance of the rail from the edge of the touchable area\n // Slightly less than the step inset because of the curved edges\n // of the rail\n railInset: 8,\n\n // The distance from the extremal tick marks to the edge of the\n // touchable area. This is basically the same as the grip radius,\n // but for other styles it wouldn't really need to be.\n stepInset: 10,\n\n gripRadius: 10,\n gripWidth: 20,\n gripHeight: 20,\n gripBorder: 20,\n gripBorderWidth: 1,\n gripBorderColor: '#bec8d9',\n gripBgColor: '#f6f8fa',\n gripBgActiveColor: '#dbdde0',\n\n labelPadding: 8,\n labelOffset: 0,\n\n tickWidth: 1,\n tickColor: '#333',\n tickOffset: 25,\n tickLength: 7,\n\n minorTickOffset: 25,\n minorTickColor: '#333',\n minorTickLength: 4,\n\n // Extra space below the current value label:\n currentValuePadding: 8,\n currentValueInset: 0,\n};\n\n},{}],461:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar handleArrayContainerDefaults = _dereq_('../../plots/array_container_defaults');\n\nvar attributes = _dereq_('./attributes');\nvar constants = _dereq_('./constants');\n\nvar name = constants.name;\nvar stepAttrs = attributes.steps;\n\n\nmodule.exports = function slidersDefaults(layoutIn, layoutOut) {\n handleArrayContainerDefaults(layoutIn, layoutOut, {\n name: name,\n handleItemDefaults: sliderDefaults\n });\n};\n\nfunction sliderDefaults(sliderIn, sliderOut, layoutOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(sliderIn, sliderOut, attributes, attr, dflt);\n }\n\n var steps = handleArrayContainerDefaults(sliderIn, sliderOut, {\n name: 'steps',\n handleItemDefaults: stepDefaults\n });\n\n var stepCount = 0;\n for(var i = 0; i < steps.length; i++) {\n if(steps[i].visible) stepCount++;\n }\n\n var visible;\n // If it has fewer than two options, it's not really a slider\n if(stepCount < 2) visible = sliderOut.visible = false;\n else visible = coerce('visible');\n if(!visible) return;\n\n sliderOut._stepCount = stepCount;\n var visSteps = sliderOut._visibleSteps = Lib.filterVisible(steps);\n\n var active = coerce('active');\n if(!(steps[active] || {}).visible) sliderOut.active = visSteps[0]._index;\n\n coerce('x');\n coerce('y');\n Lib.noneOrAll(sliderIn, sliderOut, ['x', 'y']);\n\n coerce('xanchor');\n coerce('yanchor');\n\n coerce('len');\n coerce('lenmode');\n\n coerce('pad.t');\n coerce('pad.r');\n coerce('pad.b');\n coerce('pad.l');\n\n Lib.coerceFont(coerce, 'font', layoutOut.font);\n\n var currentValueIsVisible = coerce('currentvalue.visible');\n\n if(currentValueIsVisible) {\n coerce('currentvalue.xanchor');\n coerce('currentvalue.prefix');\n coerce('currentvalue.suffix');\n coerce('currentvalue.offset');\n\n Lib.coerceFont(coerce, 'currentvalue.font', sliderOut.font);\n }\n\n coerce('transition.duration');\n coerce('transition.easing');\n\n coerce('bgcolor');\n coerce('activebgcolor');\n coerce('bordercolor');\n coerce('borderwidth');\n coerce('ticklen');\n coerce('tickwidth');\n coerce('tickcolor');\n coerce('minorticklen');\n}\n\nfunction stepDefaults(valueIn, valueOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(valueIn, valueOut, stepAttrs, attr, dflt);\n }\n\n var visible;\n if(valueIn.method !== 'skip' && !Array.isArray(valueIn.args)) {\n visible = valueOut.visible = false;\n } else visible = coerce('visible');\n\n if(visible) {\n coerce('method');\n coerce('args');\n var label = coerce('label', 'step-' + valueOut._index);\n coerce('value', label);\n coerce('execute');\n }\n}\n\n},{\"../../lib\":503,\"../../plots/array_container_defaults\":549,\"./attributes\":459,\"./constants\":460}],462:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Plots = _dereq_('../../plots/plots');\nvar Color = _dereq_('../color');\nvar Drawing = _dereq_('../drawing');\nvar Lib = _dereq_('../../lib');\nvar strTranslate = Lib.strTranslate;\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\nvar arrayEditor = _dereq_('../../plot_api/plot_template').arrayEditor;\n\nvar constants = _dereq_('./constants');\nvar alignmentConstants = _dereq_('../../constants/alignment');\nvar LINE_SPACING = alignmentConstants.LINE_SPACING;\nvar FROM_TL = alignmentConstants.FROM_TL;\nvar FROM_BR = alignmentConstants.FROM_BR;\n\nmodule.exports = function draw(gd) {\n var fullLayout = gd._fullLayout;\n var sliderData = makeSliderData(fullLayout, gd);\n\n // draw a container for *all* sliders:\n var sliders = fullLayout._infolayer\n .selectAll('g.' + constants.containerClassName)\n .data(sliderData.length > 0 ? [0] : []);\n\n sliders.enter().append('g')\n .classed(constants.containerClassName, true)\n .style('cursor', 'ew-resize');\n\n function clearSlider(sliderOpts) {\n if(sliderOpts._commandObserver) {\n sliderOpts._commandObserver.remove();\n delete sliderOpts._commandObserver;\n }\n\n // Most components don't need to explicitly remove autoMargin, because\n // marginPushers does this - but slider updates don't go through\n // a full replot so we need to explicitly remove it.\n Plots.autoMargin(gd, autoMarginId(sliderOpts));\n }\n\n sliders.exit().each(function() {\n d3.select(this).selectAll('g.' + constants.groupClassName)\n .each(clearSlider);\n })\n .remove();\n\n // Return early if no menus visible:\n if(sliderData.length === 0) return;\n\n var sliderGroups = sliders.selectAll('g.' + constants.groupClassName)\n .data(sliderData, keyFunction);\n\n sliderGroups.enter().append('g')\n .classed(constants.groupClassName, true);\n\n sliderGroups.exit()\n .each(clearSlider)\n .remove();\n\n // Find the dimensions of the sliders:\n for(var i = 0; i < sliderData.length; i++) {\n var sliderOpts = sliderData[i];\n findDimensions(gd, sliderOpts);\n }\n\n sliderGroups.each(function(sliderOpts) {\n var gSlider = d3.select(this);\n\n computeLabelSteps(sliderOpts);\n\n Plots.manageCommandObserver(gd, sliderOpts, sliderOpts._visibleSteps, function(data) {\n // NB: Same as below. This is *not* always the same as sliderOpts since\n // if a new set of steps comes in, the reference in this callback would\n // be invalid. We need to refetch it from the slider group, which is\n // the join data that creates this slider. So if this slider still exists,\n // the group should be valid, *to the best of my knowledge.* If not,\n // we'd have to look it up by d3 data join index/key.\n var opts = gSlider.data()[0];\n\n if(opts.active === data.index) return;\n if(opts._dragging) return;\n\n setActive(gd, gSlider, opts, data.index, false, true);\n });\n\n drawSlider(gd, d3.select(this), sliderOpts);\n });\n};\n\nfunction autoMarginId(sliderOpts) {\n return constants.autoMarginIdRoot + sliderOpts._index;\n}\n\n// This really only just filters by visibility:\nfunction makeSliderData(fullLayout, gd) {\n var contOpts = fullLayout[constants.name];\n var sliderData = [];\n\n for(var i = 0; i < contOpts.length; i++) {\n var item = contOpts[i];\n if(!item.visible) continue;\n item._gd = gd;\n sliderData.push(item);\n }\n\n return sliderData;\n}\n\n// This is set in the defaults step:\nfunction keyFunction(opts) {\n return opts._index;\n}\n\n// Compute the dimensions (mutates sliderOpts):\nfunction findDimensions(gd, sliderOpts) {\n var sliderLabels = Drawing.tester.selectAll('g.' + constants.labelGroupClass)\n .data(sliderOpts._visibleSteps);\n\n sliderLabels.enter().append('g')\n .classed(constants.labelGroupClass, true);\n\n // loop over fake buttons to find width / height\n var maxLabelWidth = 0;\n var labelHeight = 0;\n sliderLabels.each(function(stepOpts) {\n var labelGroup = d3.select(this);\n\n var text = drawLabel(labelGroup, {step: stepOpts}, sliderOpts);\n\n var textNode = text.node();\n if(textNode) {\n var bBox = Drawing.bBox(textNode);\n labelHeight = Math.max(labelHeight, bBox.height);\n maxLabelWidth = Math.max(maxLabelWidth, bBox.width);\n }\n });\n\n sliderLabels.remove();\n\n var dims = sliderOpts._dims = {};\n\n dims.inputAreaWidth = Math.max(\n constants.railWidth,\n constants.gripHeight\n );\n\n // calculate some overall dimensions - some of these are needed for\n // calculating the currentValue dimensions\n var graphSize = gd._fullLayout._size;\n dims.lx = graphSize.l + graphSize.w * sliderOpts.x;\n dims.ly = graphSize.t + graphSize.h * (1 - sliderOpts.y);\n\n if(sliderOpts.lenmode === 'fraction') {\n // fraction:\n dims.outerLength = Math.round(graphSize.w * sliderOpts.len);\n } else {\n // pixels:\n dims.outerLength = sliderOpts.len;\n }\n\n // The length of the rail, *excluding* padding on either end:\n dims.inputAreaStart = 0;\n dims.inputAreaLength = Math.round(dims.outerLength - sliderOpts.pad.l - sliderOpts.pad.r);\n\n var textableInputLength = dims.inputAreaLength - 2 * constants.stepInset;\n var availableSpacePerLabel = textableInputLength / (sliderOpts._stepCount - 1);\n var computedSpacePerLabel = maxLabelWidth + constants.labelPadding;\n dims.labelStride = Math.max(1, Math.ceil(computedSpacePerLabel / availableSpacePerLabel));\n dims.labelHeight = labelHeight;\n\n // loop over all possible values for currentValue to find the\n // area we need for it\n dims.currentValueMaxWidth = 0;\n dims.currentValueHeight = 0;\n dims.currentValueTotalHeight = 0;\n dims.currentValueMaxLines = 1;\n\n if(sliderOpts.currentvalue.visible) {\n // Get the dimensions of the current value label:\n var dummyGroup = Drawing.tester.append('g');\n\n sliderLabels.each(function(stepOpts) {\n var curValPrefix = drawCurrentValue(dummyGroup, sliderOpts, stepOpts.label);\n var curValSize = (curValPrefix.node() && Drawing.bBox(curValPrefix.node())) || {width: 0, height: 0};\n var lines = svgTextUtils.lineCount(curValPrefix);\n dims.currentValueMaxWidth = Math.max(dims.currentValueMaxWidth, Math.ceil(curValSize.width));\n dims.currentValueHeight = Math.max(dims.currentValueHeight, Math.ceil(curValSize.height));\n dims.currentValueMaxLines = Math.max(dims.currentValueMaxLines, lines);\n });\n\n dims.currentValueTotalHeight = dims.currentValueHeight + sliderOpts.currentvalue.offset;\n\n dummyGroup.remove();\n }\n\n dims.height = dims.currentValueTotalHeight + constants.tickOffset + sliderOpts.ticklen + constants.labelOffset + dims.labelHeight + sliderOpts.pad.t + sliderOpts.pad.b;\n\n var xanchor = 'left';\n if(Lib.isRightAnchor(sliderOpts)) {\n dims.lx -= dims.outerLength;\n xanchor = 'right';\n }\n if(Lib.isCenterAnchor(sliderOpts)) {\n dims.lx -= dims.outerLength / 2;\n xanchor = 'center';\n }\n\n var yanchor = 'top';\n if(Lib.isBottomAnchor(sliderOpts)) {\n dims.ly -= dims.height;\n yanchor = 'bottom';\n }\n if(Lib.isMiddleAnchor(sliderOpts)) {\n dims.ly -= dims.height / 2;\n yanchor = 'middle';\n }\n\n dims.outerLength = Math.ceil(dims.outerLength);\n dims.height = Math.ceil(dims.height);\n dims.lx = Math.round(dims.lx);\n dims.ly = Math.round(dims.ly);\n\n var marginOpts = {\n y: sliderOpts.y,\n b: dims.height * FROM_BR[yanchor],\n t: dims.height * FROM_TL[yanchor]\n };\n\n if(sliderOpts.lenmode === 'fraction') {\n marginOpts.l = 0;\n marginOpts.xl = sliderOpts.x - sliderOpts.len * FROM_TL[xanchor];\n marginOpts.r = 0;\n marginOpts.xr = sliderOpts.x + sliderOpts.len * FROM_BR[xanchor];\n } else {\n marginOpts.x = sliderOpts.x;\n marginOpts.l = dims.outerLength * FROM_TL[xanchor];\n marginOpts.r = dims.outerLength * FROM_BR[xanchor];\n }\n\n Plots.autoMargin(gd, autoMarginId(sliderOpts), marginOpts);\n}\n\nfunction drawSlider(gd, sliderGroup, sliderOpts) {\n // This is related to the other long notes in this file regarding what happens\n // when slider steps disappear. This particular fix handles what happens when\n // the *current* slider step is removed. The drawing functions will error out\n // when they fail to find it, so the fix for now is that it will just draw the\n // slider in the first position but will not execute the command.\n if(!((sliderOpts.steps[sliderOpts.active] || {}).visible)) {\n sliderOpts.active = sliderOpts._visibleSteps[0]._index;\n }\n\n // These are carefully ordered for proper z-ordering:\n sliderGroup\n .call(drawCurrentValue, sliderOpts)\n .call(drawRail, sliderOpts)\n .call(drawLabelGroup, sliderOpts)\n .call(drawTicks, sliderOpts)\n .call(drawTouchRect, gd, sliderOpts)\n .call(drawGrip, gd, sliderOpts);\n\n var dims = sliderOpts._dims;\n\n // Position the rectangle:\n Drawing.setTranslate(sliderGroup, dims.lx + sliderOpts.pad.l, dims.ly + sliderOpts.pad.t);\n\n sliderGroup.call(setGripPosition, sliderOpts, false);\n sliderGroup.call(drawCurrentValue, sliderOpts);\n}\n\nfunction drawCurrentValue(sliderGroup, sliderOpts, valueOverride) {\n if(!sliderOpts.currentvalue.visible) return;\n\n var dims = sliderOpts._dims;\n var x0, textAnchor;\n\n switch(sliderOpts.currentvalue.xanchor) {\n case 'right':\n // This is anchored left and adjusted by the width of the longest label\n // so that the prefix doesn't move. The goal of this is to emphasize\n // what's actually changing and make the update less distracting.\n x0 = dims.inputAreaLength - constants.currentValueInset - dims.currentValueMaxWidth;\n textAnchor = 'left';\n break;\n case 'center':\n x0 = dims.inputAreaLength * 0.5;\n textAnchor = 'middle';\n break;\n default:\n x0 = constants.currentValueInset;\n textAnchor = 'left';\n }\n\n var text = Lib.ensureSingle(sliderGroup, 'text', constants.labelClass, function(s) {\n s.attr({\n 'text-anchor': textAnchor,\n 'data-notex': 1\n });\n });\n\n var str = sliderOpts.currentvalue.prefix ? sliderOpts.currentvalue.prefix : '';\n\n if(typeof valueOverride === 'string') {\n str += valueOverride;\n } else {\n var curVal = sliderOpts.steps[sliderOpts.active].label;\n var _meta = sliderOpts._gd._fullLayout._meta;\n if(_meta) curVal = Lib.templateString(curVal, _meta);\n str += curVal;\n }\n\n if(sliderOpts.currentvalue.suffix) {\n str += sliderOpts.currentvalue.suffix;\n }\n\n text.call(Drawing.font, sliderOpts.currentvalue.font)\n .text(str)\n .call(svgTextUtils.convertToTspans, sliderOpts._gd);\n\n var lines = svgTextUtils.lineCount(text);\n\n var y0 = (dims.currentValueMaxLines + 1 - lines) *\n sliderOpts.currentvalue.font.size * LINE_SPACING;\n\n svgTextUtils.positionText(text, x0, y0);\n\n return text;\n}\n\nfunction drawGrip(sliderGroup, gd, sliderOpts) {\n var grip = Lib.ensureSingle(sliderGroup, 'rect', constants.gripRectClass, function(s) {\n s.call(attachGripEvents, gd, sliderGroup, sliderOpts)\n .style('pointer-events', 'all');\n });\n\n grip.attr({\n width: constants.gripWidth,\n height: constants.gripHeight,\n rx: constants.gripRadius,\n ry: constants.gripRadius,\n })\n .call(Color.stroke, sliderOpts.bordercolor)\n .call(Color.fill, sliderOpts.bgcolor)\n .style('stroke-width', sliderOpts.borderwidth + 'px');\n}\n\nfunction drawLabel(item, data, sliderOpts) {\n var text = Lib.ensureSingle(item, 'text', constants.labelClass, function(s) {\n s.attr({\n 'text-anchor': 'middle',\n 'data-notex': 1\n });\n });\n\n var tx = data.step.label;\n var _meta = sliderOpts._gd._fullLayout._meta;\n if(_meta) tx = Lib.templateString(tx, _meta);\n\n text.call(Drawing.font, sliderOpts.font)\n .text(tx)\n .call(svgTextUtils.convertToTspans, sliderOpts._gd);\n\n return text;\n}\n\nfunction drawLabelGroup(sliderGroup, sliderOpts) {\n var labels = Lib.ensureSingle(sliderGroup, 'g', constants.labelsClass);\n var dims = sliderOpts._dims;\n\n var labelItems = labels.selectAll('g.' + constants.labelGroupClass)\n .data(dims.labelSteps);\n\n labelItems.enter().append('g')\n .classed(constants.labelGroupClass, true);\n\n labelItems.exit().remove();\n\n labelItems.each(function(d) {\n var item = d3.select(this);\n\n item.call(drawLabel, d, sliderOpts);\n\n Drawing.setTranslate(item,\n normalizedValueToPosition(sliderOpts, d.fraction),\n constants.tickOffset +\n sliderOpts.ticklen +\n // position is the baseline of the top line of text only, even\n // if the label spans multiple lines\n sliderOpts.font.size * LINE_SPACING +\n constants.labelOffset +\n dims.currentValueTotalHeight\n );\n });\n}\n\nfunction handleInput(gd, sliderGroup, sliderOpts, normalizedPosition, doTransition) {\n var quantizedPosition = Math.round(normalizedPosition * (sliderOpts._stepCount - 1));\n var quantizedIndex = sliderOpts._visibleSteps[quantizedPosition]._index;\n\n if(quantizedIndex !== sliderOpts.active) {\n setActive(gd, sliderGroup, sliderOpts, quantizedIndex, true, doTransition);\n }\n}\n\nfunction setActive(gd, sliderGroup, sliderOpts, index, doCallback, doTransition) {\n var previousActive = sliderOpts.active;\n sliderOpts.active = index;\n\n // due to templating, it's possible this slider doesn't even exist yet\n arrayEditor(gd.layout, constants.name, sliderOpts)\n .applyUpdate('active', index);\n\n var step = sliderOpts.steps[sliderOpts.active];\n\n sliderGroup.call(setGripPosition, sliderOpts, doTransition);\n sliderGroup.call(drawCurrentValue, sliderOpts);\n\n gd.emit('plotly_sliderchange', {\n slider: sliderOpts,\n step: sliderOpts.steps[sliderOpts.active],\n interaction: doCallback,\n previousActive: previousActive\n });\n\n if(step && step.method && doCallback) {\n if(sliderGroup._nextMethod) {\n // If we've already queued up an update, just overwrite it with the most recent:\n sliderGroup._nextMethod.step = step;\n sliderGroup._nextMethod.doCallback = doCallback;\n sliderGroup._nextMethod.doTransition = doTransition;\n } else {\n sliderGroup._nextMethod = {step: step, doCallback: doCallback, doTransition: doTransition};\n sliderGroup._nextMethodRaf = window.requestAnimationFrame(function() {\n var _step = sliderGroup._nextMethod.step;\n if(!_step.method) return;\n\n if(_step.execute) {\n Plots.executeAPICommand(gd, _step.method, _step.args);\n }\n\n sliderGroup._nextMethod = null;\n sliderGroup._nextMethodRaf = null;\n });\n }\n }\n}\n\nfunction attachGripEvents(item, gd, sliderGroup) {\n var node = sliderGroup.node();\n var $gd = d3.select(gd);\n\n // NB: This is *not* the same as sliderOpts itself! These callbacks\n // are in a closure so this array won't actually be correct if the\n // steps have changed since this was initialized. The sliderGroup,\n // however, has not changed since that *is* the slider, so it must\n // be present to receive mouse events.\n function getSliderOpts() {\n return sliderGroup.data()[0];\n }\n\n function mouseDownHandler() {\n var sliderOpts = getSliderOpts();\n gd.emit('plotly_sliderstart', {slider: sliderOpts});\n\n var grip = sliderGroup.select('.' + constants.gripRectClass);\n\n d3.event.stopPropagation();\n d3.event.preventDefault();\n grip.call(Color.fill, sliderOpts.activebgcolor);\n\n var normalizedPosition = positionToNormalizedValue(sliderOpts, d3.mouse(node)[0]);\n handleInput(gd, sliderGroup, sliderOpts, normalizedPosition, true);\n sliderOpts._dragging = true;\n\n function mouseMoveHandler() {\n var sliderOpts = getSliderOpts();\n var normalizedPosition = positionToNormalizedValue(sliderOpts, d3.mouse(node)[0]);\n handleInput(gd, sliderGroup, sliderOpts, normalizedPosition, false);\n }\n\n $gd.on('mousemove', mouseMoveHandler);\n $gd.on('touchmove', mouseMoveHandler);\n\n function mouseUpHandler() {\n var sliderOpts = getSliderOpts();\n sliderOpts._dragging = false;\n grip.call(Color.fill, sliderOpts.bgcolor);\n $gd.on('mouseup', null);\n $gd.on('mousemove', null);\n $gd.on('touchend', null);\n $gd.on('touchmove', null);\n\n gd.emit('plotly_sliderend', {\n slider: sliderOpts,\n step: sliderOpts.steps[sliderOpts.active]\n });\n }\n\n $gd.on('mouseup', mouseUpHandler);\n $gd.on('touchend', mouseUpHandler);\n }\n\n item.on('mousedown', mouseDownHandler);\n item.on('touchstart', mouseDownHandler);\n}\n\nfunction drawTicks(sliderGroup, sliderOpts) {\n var tick = sliderGroup.selectAll('rect.' + constants.tickRectClass)\n .data(sliderOpts._visibleSteps);\n var dims = sliderOpts._dims;\n\n tick.enter().append('rect')\n .classed(constants.tickRectClass, true);\n\n tick.exit().remove();\n\n tick.attr({\n width: sliderOpts.tickwidth + 'px',\n 'shape-rendering': 'crispEdges'\n });\n\n tick.each(function(d, i) {\n var isMajor = i % dims.labelStride === 0;\n var item = d3.select(this);\n\n item\n .attr({height: isMajor ? sliderOpts.ticklen : sliderOpts.minorticklen})\n .call(Color.fill, isMajor ? sliderOpts.tickcolor : sliderOpts.tickcolor);\n\n Drawing.setTranslate(item,\n normalizedValueToPosition(sliderOpts, i / (sliderOpts._stepCount - 1)) - 0.5 * sliderOpts.tickwidth,\n (isMajor ? constants.tickOffset : constants.minorTickOffset) + dims.currentValueTotalHeight\n );\n });\n}\n\nfunction computeLabelSteps(sliderOpts) {\n var dims = sliderOpts._dims;\n dims.labelSteps = [];\n var nsteps = sliderOpts._stepCount;\n\n for(var i = 0; i < nsteps; i += dims.labelStride) {\n dims.labelSteps.push({\n fraction: i / (nsteps - 1),\n step: sliderOpts._visibleSteps[i]\n });\n }\n}\n\nfunction setGripPosition(sliderGroup, sliderOpts, doTransition) {\n var grip = sliderGroup.select('rect.' + constants.gripRectClass);\n\n var quantizedIndex = 0;\n for(var i = 0; i < sliderOpts._stepCount; i++) {\n if(sliderOpts._visibleSteps[i]._index === sliderOpts.active) {\n quantizedIndex = i;\n break;\n }\n }\n\n var x = normalizedValueToPosition(sliderOpts, quantizedIndex / (sliderOpts._stepCount - 1));\n\n // If this is true, then *this component* is already invoking its own command\n // and has triggered its own animation.\n if(sliderOpts._invokingCommand) return;\n\n var el = grip;\n if(doTransition && sliderOpts.transition.duration > 0) {\n el = el.transition()\n .duration(sliderOpts.transition.duration)\n .ease(sliderOpts.transition.easing);\n }\n\n // Drawing.setTranslate doesn't work here because of the transition duck-typing.\n // It's also not necessary because there are no other transitions to preserve.\n el.attr('transform', strTranslate(x - constants.gripWidth * 0.5, sliderOpts._dims.currentValueTotalHeight));\n}\n\n// Convert a number from [0-1] to a pixel position relative to the slider group container:\nfunction normalizedValueToPosition(sliderOpts, normalizedPosition) {\n var dims = sliderOpts._dims;\n return dims.inputAreaStart + constants.stepInset +\n (dims.inputAreaLength - 2 * constants.stepInset) * Math.min(1, Math.max(0, normalizedPosition));\n}\n\n// Convert a position relative to the slider group to a nubmer in [0, 1]\nfunction positionToNormalizedValue(sliderOpts, position) {\n var dims = sliderOpts._dims;\n return Math.min(1, Math.max(0, (position - constants.stepInset - dims.inputAreaStart) / (dims.inputAreaLength - 2 * constants.stepInset - 2 * dims.inputAreaStart)));\n}\n\nfunction drawTouchRect(sliderGroup, gd, sliderOpts) {\n var dims = sliderOpts._dims;\n var rect = Lib.ensureSingle(sliderGroup, 'rect', constants.railTouchRectClass, function(s) {\n s.call(attachGripEvents, gd, sliderGroup, sliderOpts)\n .style('pointer-events', 'all');\n });\n\n rect.attr({\n width: dims.inputAreaLength,\n height: Math.max(dims.inputAreaWidth, constants.tickOffset + sliderOpts.ticklen + dims.labelHeight)\n })\n .call(Color.fill, sliderOpts.bgcolor)\n .attr('opacity', 0);\n\n Drawing.setTranslate(rect, 0, dims.currentValueTotalHeight);\n}\n\nfunction drawRail(sliderGroup, sliderOpts) {\n var dims = sliderOpts._dims;\n var computedLength = dims.inputAreaLength - constants.railInset * 2;\n var rect = Lib.ensureSingle(sliderGroup, 'rect', constants.railRectClass);\n\n rect.attr({\n width: computedLength,\n height: constants.railWidth,\n rx: constants.railRadius,\n ry: constants.railRadius,\n 'shape-rendering': 'crispEdges'\n })\n .call(Color.stroke, sliderOpts.bordercolor)\n .call(Color.fill, sliderOpts.bgcolor)\n .style('stroke-width', sliderOpts.borderwidth + 'px');\n\n Drawing.setTranslate(rect,\n constants.railInset,\n (dims.inputAreaWidth - constants.railWidth) * 0.5 + dims.currentValueTotalHeight\n );\n}\n\n},{\"../../constants/alignment\":471,\"../../lib\":503,\"../../lib/svg_text_utils\":529,\"../../plot_api/plot_template\":543,\"../../plots/plots\":619,\"../color\":366,\"../drawing\":388,\"./constants\":460,\"@plotly/d3\":58}],463:[function(_dereq_,module,exports){\n'use strict';\n\nvar constants = _dereq_('./constants');\n\nmodule.exports = {\n moduleType: 'component',\n name: constants.name,\n\n layoutAttributes: _dereq_('./attributes'),\n supplyLayoutDefaults: _dereq_('./defaults'),\n\n draw: _dereq_('./draw')\n};\n\n},{\"./attributes\":459,\"./constants\":460,\"./defaults\":461,\"./draw\":462}],464:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Plots = _dereq_('../../plots/plots');\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar strTranslate = Lib.strTranslate;\nvar Drawing = _dereq_('../drawing');\nvar Color = _dereq_('../color');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\nvar interactConstants = _dereq_('../../constants/interactions');\n\nvar OPPOSITE_SIDE = _dereq_('../../constants/alignment').OPPOSITE_SIDE;\nvar numStripRE = / [XY][0-9]* /;\n\n/**\n * Titles - (re)draw titles on the axes and plot:\n * @param {DOM element} gd - the graphDiv\n * @param {string} titleClass - the css class of this title\n * @param {object} options - how and what to draw\n * propContainer - the layout object containing `title` and `titlefont`\n * attributes that apply to this title\n * propName - the full name of the title property (for Plotly.relayout)\n * [traceIndex] - include only if this property applies to one trace\n * (such as a colorbar title) - then editing pipes to Plotly.restyle\n * instead of Plotly.relayout\n * placeholder - placeholder text for an empty editable title\n * [avoid] {object} - include if this title should move to avoid other elements\n * selection - d3 selection of elements to avoid\n * side - which direction to move if there is a conflict\n * [offsetLeft] - if these elements are subject to a translation\n * wrt the title element\n * [offsetTop]\n * attributes {object} - position and alignment attributes\n * x - pixels\n * y - pixels\n * text-anchor - start|middle|end\n * transform {object} - how to transform the title after positioning\n * rotate - degrees\n * offset - shift up/down in the rotated frame (unused?)\n * containerGroup - if an svg element already exists to hold this\n * title, include here. Otherwise it will go in fullLayout._infolayer\n * _meta {object (optional} - meta key-value to for title with\n * Lib.templateString, default to fullLayout._meta, if not provided\n *\n * @return {selection} d3 selection of title container group\n */\nfunction draw(gd, titleClass, options) {\n var cont = options.propContainer;\n var prop = options.propName;\n var placeholder = options.placeholder;\n var traceIndex = options.traceIndex;\n var avoid = options.avoid || {};\n var attributes = options.attributes;\n var transform = options.transform;\n var group = options.containerGroup;\n\n var fullLayout = gd._fullLayout;\n\n var opacity = 1;\n var isplaceholder = false;\n var title = cont.title;\n var txt = (title && title.text ? title.text : '').trim();\n\n var font = title && title.font ? title.font : {};\n var fontFamily = font.family;\n var fontSize = font.size;\n var fontColor = font.color;\n\n // only make this title editable if we positively identify its property\n // as one that has editing enabled.\n var editAttr;\n if(prop === 'title.text') editAttr = 'titleText';\n else if(prop.indexOf('axis') !== -1) editAttr = 'axisTitleText';\n else if(prop.indexOf('colorbar' !== -1)) editAttr = 'colorbarTitleText';\n var editable = gd._context.edits[editAttr];\n\n if(txt === '') opacity = 0;\n // look for placeholder text while stripping out numbers from eg X2, Y3\n // this is just for backward compatibility with the old version that had\n // \"Click to enter X2 title\" and may have gotten saved in some old plots,\n // we don't want this to show up when these are displayed.\n else if(txt.replace(numStripRE, ' % ') === placeholder.replace(numStripRE, ' % ')) {\n opacity = 0.2;\n isplaceholder = true;\n if(!editable) txt = '';\n }\n\n if(options._meta) {\n txt = Lib.templateString(txt, options._meta);\n } else if(fullLayout._meta) {\n txt = Lib.templateString(txt, fullLayout._meta);\n }\n\n var elShouldExist = txt || editable;\n\n if(!group) {\n group = Lib.ensureSingle(fullLayout._infolayer, 'g', 'g-' + titleClass);\n }\n\n var el = group.selectAll('text')\n .data(elShouldExist ? [0] : []);\n el.enter().append('text');\n el.text(txt)\n // this is hacky, but convertToTspans uses the class\n // to determine whether to rotate mathJax...\n // so we need to clear out any old class and put the\n // correct one (only relevant for colorbars, at least\n // for now) - ie don't use .classed\n .attr('class', titleClass);\n el.exit().remove();\n\n if(!elShouldExist) return group;\n\n function titleLayout(titleEl) {\n Lib.syncOrAsync([drawTitle, scootTitle], titleEl);\n }\n\n function drawTitle(titleEl) {\n var transformVal;\n\n if(transform) {\n transformVal = '';\n if(transform.rotate) {\n transformVal += 'rotate(' + [transform.rotate, attributes.x, attributes.y] + ')';\n }\n if(transform.offset) {\n transformVal += strTranslate(0, transform.offset);\n }\n } else {\n transformVal = null;\n }\n\n titleEl.attr('transform', transformVal);\n\n titleEl.style({\n 'font-family': fontFamily,\n 'font-size': d3.round(fontSize, 2) + 'px',\n fill: Color.rgb(fontColor),\n opacity: opacity * Color.opacity(fontColor),\n 'font-weight': Plots.fontWeight\n })\n .attr(attributes)\n .call(svgTextUtils.convertToTspans, gd);\n\n return Plots.previousPromises(gd);\n }\n\n function scootTitle(titleElIn) {\n var titleGroup = d3.select(titleElIn.node().parentNode);\n\n if(avoid && avoid.selection && avoid.side && txt) {\n titleGroup.attr('transform', null);\n\n // move toward avoid.side (= left, right, top, bottom) if needed\n // can include pad (pixels, default 2)\n var backside = OPPOSITE_SIDE[avoid.side];\n var shiftSign = (avoid.side === 'left' || avoid.side === 'top') ? -1 : 1;\n var pad = isNumeric(avoid.pad) ? avoid.pad : 2;\n\n var titlebb = Drawing.bBox(titleGroup.node());\n var paperbb = {\n left: 0,\n top: 0,\n right: fullLayout.width,\n bottom: fullLayout.height\n };\n\n var maxshift = avoid.maxShift ||\n shiftSign * (paperbb[avoid.side] - titlebb[avoid.side]);\n var shift = 0;\n\n // Prevent the title going off the paper\n if(maxshift < 0) {\n shift = maxshift;\n } else {\n // so we don't have to offset each avoided element,\n // give the title the opposite offset\n var offsetLeft = avoid.offsetLeft || 0;\n var offsetTop = avoid.offsetTop || 0;\n titlebb.left -= offsetLeft;\n titlebb.right -= offsetLeft;\n titlebb.top -= offsetTop;\n titlebb.bottom -= offsetTop;\n\n // iterate over a set of elements (avoid.selection)\n // to avoid collisions with\n avoid.selection.each(function() {\n var avoidbb = Drawing.bBox(this);\n\n if(Lib.bBoxIntersect(titlebb, avoidbb, pad)) {\n shift = Math.max(shift, shiftSign * (\n avoidbb[avoid.side] - titlebb[backside]) + pad);\n }\n });\n shift = Math.min(maxshift, shift);\n }\n\n if(shift > 0 || maxshift < 0) {\n var shiftTemplate = {\n left: [-shift, 0],\n right: [shift, 0],\n top: [0, -shift],\n bottom: [0, shift]\n }[avoid.side];\n titleGroup.attr('transform', strTranslate(shiftTemplate[0], shiftTemplate[1]));\n }\n }\n }\n\n el.call(titleLayout);\n\n function setPlaceholder() {\n opacity = 0;\n isplaceholder = true;\n el.text(placeholder)\n .on('mouseover.opacity', function() {\n d3.select(this).transition()\n .duration(interactConstants.SHOW_PLACEHOLDER).style('opacity', 1);\n })\n .on('mouseout.opacity', function() {\n d3.select(this).transition()\n .duration(interactConstants.HIDE_PLACEHOLDER).style('opacity', 0);\n });\n }\n\n if(editable) {\n if(!txt) setPlaceholder();\n else el.on('.opacity', null);\n\n el.call(svgTextUtils.makeEditable, {gd: gd})\n .on('edit', function(text) {\n if(traceIndex !== undefined) {\n Registry.call('_guiRestyle', gd, prop, text, traceIndex);\n } else {\n Registry.call('_guiRelayout', gd, prop, text);\n }\n })\n .on('cancel', function() {\n this.text(this.attr('data-unformatted'))\n .call(titleLayout);\n })\n .on('input', function(d) {\n this.text(d || ' ')\n .call(svgTextUtils.positionText, attributes.x, attributes.y);\n });\n }\n el.classed('js-placeholder', isplaceholder);\n\n return group;\n}\n\nmodule.exports = {\n draw: draw\n};\n\n},{\"../../constants/alignment\":471,\"../../constants/interactions\":478,\"../../lib\":503,\"../../lib/svg_text_utils\":529,\"../../plots/plots\":619,\"../../registry\":638,\"../color\":366,\"../drawing\":388,\"@plotly/d3\":58,\"fast-isnumeric\":190}],465:[function(_dereq_,module,exports){\n'use strict';\n\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar colorAttrs = _dereq_('../color/attributes');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\nvar padAttrs = _dereq_('../../plots/pad_attributes');\nvar templatedArray = _dereq_('../../plot_api/plot_template').templatedArray;\n\nvar buttonsAttrs = templatedArray('button', {\n visible: {\n valType: 'boolean',\n },\n method: {\n valType: 'enumerated',\n values: ['restyle', 'relayout', 'animate', 'update', 'skip'],\n dflt: 'restyle',\n },\n args: {\n valType: 'info_array',\n freeLength: true,\n items: [\n {valType: 'any'},\n {valType: 'any'},\n {valType: 'any'}\n ],\n },\n args2: {\n valType: 'info_array',\n freeLength: true,\n items: [\n {valType: 'any'},\n {valType: 'any'},\n {valType: 'any'}\n ],\n },\n label: {\n valType: 'string',\n dflt: '',\n },\n execute: {\n valType: 'boolean',\n dflt: true,\n }\n});\n\nmodule.exports = overrideAll(templatedArray('updatemenu', {\n _arrayAttrRegexps: [/^updatemenus\\[(0|[1-9][0-9]+)\\]\\.buttons/],\n\n visible: {\n valType: 'boolean',\n },\n\n type: {\n valType: 'enumerated',\n values: ['dropdown', 'buttons'],\n dflt: 'dropdown',\n },\n\n direction: {\n valType: 'enumerated',\n values: ['left', 'right', 'up', 'down'],\n dflt: 'down',\n },\n\n active: {\n valType: 'integer',\n min: -1,\n dflt: 0,\n },\n\n showactive: {\n valType: 'boolean',\n dflt: true,\n },\n\n buttons: buttonsAttrs,\n\n x: {\n valType: 'number',\n min: -2,\n max: 3,\n dflt: -0.05,\n },\n xanchor: {\n valType: 'enumerated',\n values: ['auto', 'left', 'center', 'right'],\n dflt: 'right',\n },\n y: {\n valType: 'number',\n min: -2,\n max: 3,\n dflt: 1,\n },\n yanchor: {\n valType: 'enumerated',\n values: ['auto', 'top', 'middle', 'bottom'],\n dflt: 'top',\n },\n\n pad: extendFlat(padAttrs({editType: 'arraydraw'}), {\n }),\n\n font: fontAttrs({\n }),\n\n bgcolor: {\n valType: 'color',\n },\n bordercolor: {\n valType: 'color',\n dflt: colorAttrs.borderLine,\n },\n borderwidth: {\n valType: 'number',\n min: 0,\n dflt: 1,\n editType: 'arraydraw',\n }\n}), 'arraydraw', 'from-root');\n\n},{\"../../lib/extend\":493,\"../../plot_api/edit_types\":536,\"../../plot_api/plot_template\":543,\"../../plots/font_attributes\":585,\"../../plots/pad_attributes\":618,\"../color/attributes\":365}],466:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = {\n\n // layout attribute name\n name: 'updatemenus',\n\n // class names\n containerClassName: 'updatemenu-container',\n headerGroupClassName: 'updatemenu-header-group',\n headerClassName: 'updatemenu-header',\n headerArrowClassName: 'updatemenu-header-arrow',\n dropdownButtonGroupClassName: 'updatemenu-dropdown-button-group',\n dropdownButtonClassName: 'updatemenu-dropdown-button',\n buttonClassName: 'updatemenu-button',\n itemRectClassName: 'updatemenu-item-rect',\n itemTextClassName: 'updatemenu-item-text',\n\n // DOM attribute name in button group keeping track\n // of active update menu\n menuIndexAttrName: 'updatemenu-active-index',\n\n // id root pass to Plots.autoMargin\n autoMarginIdRoot: 'updatemenu-',\n\n // options when 'active: -1'\n blankHeaderOpts: { label: ' ' },\n\n // min item width / height\n minWidth: 30,\n minHeight: 30,\n\n // padding around item text\n textPadX: 24,\n arrowPadX: 16,\n\n // item rect radii\n rx: 2,\n ry: 2,\n\n // item text x offset off left edge\n textOffsetX: 12,\n\n // item text y offset (w.r.t. middle)\n textOffsetY: 3,\n\n // arrow offset off right edge\n arrowOffsetX: 4,\n\n // gap between header and buttons\n gapButtonHeader: 5,\n\n // gap between between buttons\n gapButton: 2,\n\n // color given to active buttons\n activeColor: '#F4FAFF',\n\n // color given to hovered buttons\n hoverColor: '#F4FAFF',\n\n // symbol for menu open arrow\n arrowSymbol: {\n left: '◄',\n right: '►',\n up: '▲',\n down: '▼'\n }\n};\n\n},{}],467:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar handleArrayContainerDefaults = _dereq_('../../plots/array_container_defaults');\n\nvar attributes = _dereq_('./attributes');\nvar constants = _dereq_('./constants');\n\nvar name = constants.name;\nvar buttonAttrs = attributes.buttons;\n\n\nmodule.exports = function updateMenusDefaults(layoutIn, layoutOut) {\n var opts = {\n name: name,\n handleItemDefaults: menuDefaults\n };\n\n handleArrayContainerDefaults(layoutIn, layoutOut, opts);\n};\n\nfunction menuDefaults(menuIn, menuOut, layoutOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(menuIn, menuOut, attributes, attr, dflt);\n }\n\n var buttons = handleArrayContainerDefaults(menuIn, menuOut, {\n name: 'buttons',\n handleItemDefaults: buttonDefaults\n });\n\n var visible = coerce('visible', buttons.length > 0);\n if(!visible) return;\n\n coerce('active');\n coerce('direction');\n coerce('type');\n coerce('showactive');\n\n coerce('x');\n coerce('y');\n Lib.noneOrAll(menuIn, menuOut, ['x', 'y']);\n\n coerce('xanchor');\n coerce('yanchor');\n\n coerce('pad.t');\n coerce('pad.r');\n coerce('pad.b');\n coerce('pad.l');\n\n Lib.coerceFont(coerce, 'font', layoutOut.font);\n\n coerce('bgcolor', layoutOut.paper_bgcolor);\n coerce('bordercolor');\n coerce('borderwidth');\n}\n\nfunction buttonDefaults(buttonIn, buttonOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(buttonIn, buttonOut, buttonAttrs, attr, dflt);\n }\n\n var visible = coerce('visible',\n (buttonIn.method === 'skip' || Array.isArray(buttonIn.args)));\n if(visible) {\n coerce('method');\n coerce('args');\n coerce('args2');\n coerce('label');\n coerce('execute');\n }\n}\n\n},{\"../../lib\":503,\"../../plots/array_container_defaults\":549,\"./attributes\":465,\"./constants\":466}],468:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Plots = _dereq_('../../plots/plots');\nvar Color = _dereq_('../color');\nvar Drawing = _dereq_('../drawing');\nvar Lib = _dereq_('../../lib');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\nvar arrayEditor = _dereq_('../../plot_api/plot_template').arrayEditor;\n\nvar LINE_SPACING = _dereq_('../../constants/alignment').LINE_SPACING;\n\nvar constants = _dereq_('./constants');\nvar ScrollBox = _dereq_('./scrollbox');\n\nmodule.exports = function draw(gd) {\n var fullLayout = gd._fullLayout;\n var menuData = Lib.filterVisible(fullLayout[constants.name]);\n\n /* Update menu data is bound to the header-group.\n * The items in the header group are always present.\n *\n * Upon clicking on a header its corresponding button\n * data is bound to the button-group.\n *\n * We draw all headers in one group before all buttons\n * so that the buttons *always* appear above the headers.\n *\n * Note that only one set of buttons are visible at once.\n *\n * \n *\n * \n * \n * \n * \n * \n * \n * ...\n *\n * \n * \n * \n * ...\n */\n\n function clearAutoMargin(menuOpts) {\n Plots.autoMargin(gd, autoMarginId(menuOpts));\n }\n\n // draw update menu container\n var menus = fullLayout._menulayer\n .selectAll('g.' + constants.containerClassName)\n .data(menuData.length > 0 ? [0] : []);\n\n menus.enter().append('g')\n .classed(constants.containerClassName, true)\n .style('cursor', 'pointer');\n\n menus.exit().each(function() {\n // Most components don't need to explicitly remove autoMargin, because\n // marginPushers does this - but updatemenu updates don't go through\n // a full replot so we need to explicitly remove it.\n // This is for removing *all* updatemenus, removing individuals is\n // handled below, in headerGroups.exit\n d3.select(this).selectAll('g.' + constants.headerGroupClassName)\n .each(clearAutoMargin);\n }).remove();\n\n // return early if no update menus are visible\n if(menuData.length === 0) return;\n\n // join header group\n var headerGroups = menus.selectAll('g.' + constants.headerGroupClassName)\n .data(menuData, keyFunction);\n\n headerGroups.enter().append('g')\n .classed(constants.headerGroupClassName, true);\n\n // draw dropdown button container\n var gButton = Lib.ensureSingle(menus, 'g', constants.dropdownButtonGroupClassName, function(s) {\n s.style('pointer-events', 'all');\n });\n\n // find dimensions before plotting anything (this mutates menuOpts)\n for(var i = 0; i < menuData.length; i++) {\n var menuOpts = menuData[i];\n findDimensions(gd, menuOpts);\n }\n\n // setup scrollbox\n var scrollBoxId = 'updatemenus' + fullLayout._uid;\n var scrollBox = new ScrollBox(gd, gButton, scrollBoxId);\n\n // remove exiting header, remove dropped buttons and reset margins\n if(headerGroups.enter().size()) {\n // make sure gButton is on top of all headers\n gButton.node().parentNode.appendChild(gButton.node());\n gButton.call(removeAllButtons);\n }\n\n headerGroups.exit().each(function(menuOpts) {\n gButton.call(removeAllButtons);\n clearAutoMargin(menuOpts);\n }).remove();\n\n // draw headers!\n headerGroups.each(function(menuOpts) {\n var gHeader = d3.select(this);\n\n var _gButton = menuOpts.type === 'dropdown' ? gButton : null;\n\n Plots.manageCommandObserver(gd, menuOpts, menuOpts.buttons, function(data) {\n setActive(gd, menuOpts, menuOpts.buttons[data.index], gHeader, _gButton, scrollBox, data.index, true);\n });\n\n if(menuOpts.type === 'dropdown') {\n drawHeader(gd, gHeader, gButton, scrollBox, menuOpts);\n\n // if this menu is active, update the dropdown container\n if(isActive(gButton, menuOpts)) {\n drawButtons(gd, gHeader, gButton, scrollBox, menuOpts);\n }\n } else {\n drawButtons(gd, gHeader, null, null, menuOpts);\n }\n });\n};\n\n// Note that '_index' is set at the default step,\n// it corresponds to the menu index in the user layout update menu container.\n// Because a menu can be set invisible,\n// this is a more 'consistent' field than the index in the menuData.\nfunction keyFunction(menuOpts) {\n return menuOpts._index;\n}\n\nfunction isFolded(gButton) {\n return +gButton.attr(constants.menuIndexAttrName) === -1;\n}\n\nfunction isActive(gButton, menuOpts) {\n return +gButton.attr(constants.menuIndexAttrName) === menuOpts._index;\n}\n\nfunction setActive(gd, menuOpts, buttonOpts, gHeader, gButton, scrollBox, buttonIndex, isSilentUpdate) {\n // update 'active' attribute in menuOpts\n menuOpts.active = buttonIndex;\n\n // due to templating, it's possible this slider doesn't even exist yet\n arrayEditor(gd.layout, constants.name, menuOpts)\n .applyUpdate('active', buttonIndex);\n\n if(menuOpts.type === 'buttons') {\n drawButtons(gd, gHeader, null, null, menuOpts);\n } else if(menuOpts.type === 'dropdown') {\n // fold up buttons and redraw header\n gButton.attr(constants.menuIndexAttrName, '-1');\n\n drawHeader(gd, gHeader, gButton, scrollBox, menuOpts);\n\n if(!isSilentUpdate) {\n drawButtons(gd, gHeader, gButton, scrollBox, menuOpts);\n }\n }\n}\n\nfunction drawHeader(gd, gHeader, gButton, scrollBox, menuOpts) {\n var header = Lib.ensureSingle(gHeader, 'g', constants.headerClassName, function(s) {\n s.style('pointer-events', 'all');\n });\n\n var dims = menuOpts._dims;\n var active = menuOpts.active;\n var headerOpts = menuOpts.buttons[active] || constants.blankHeaderOpts;\n var posOpts = { y: menuOpts.pad.t, yPad: 0, x: menuOpts.pad.l, xPad: 0, index: 0 };\n var positionOverrides = {\n width: dims.headerWidth,\n height: dims.headerHeight\n };\n\n header\n .call(drawItem, menuOpts, headerOpts, gd)\n .call(setItemPosition, menuOpts, posOpts, positionOverrides);\n\n // draw drop arrow at the right edge\n var arrow = Lib.ensureSingle(gHeader, 'text', constants.headerArrowClassName, function(s) {\n s.attr('text-anchor', 'end')\n .call(Drawing.font, menuOpts.font)\n .text(constants.arrowSymbol[menuOpts.direction]);\n });\n\n arrow.attr({\n x: dims.headerWidth - constants.arrowOffsetX + menuOpts.pad.l,\n y: dims.headerHeight / 2 + constants.textOffsetY + menuOpts.pad.t\n });\n\n header.on('click', function() {\n gButton.call(removeAllButtons,\n String(isActive(gButton, menuOpts) ? -1 : menuOpts._index)\n );\n\n drawButtons(gd, gHeader, gButton, scrollBox, menuOpts);\n });\n\n header.on('mouseover', function() {\n header.call(styleOnMouseOver);\n });\n\n header.on('mouseout', function() {\n header.call(styleOnMouseOut, menuOpts);\n });\n\n // translate header group\n Drawing.setTranslate(gHeader, dims.lx, dims.ly);\n}\n\nfunction drawButtons(gd, gHeader, gButton, scrollBox, menuOpts) {\n // If this is a set of buttons, set pointer events = all since we play\n // some minor games with which container is which in order to simplify\n // the drawing of *either* buttons or menus\n if(!gButton) {\n gButton = gHeader;\n gButton.attr('pointer-events', 'all');\n }\n\n var buttonData = (!isFolded(gButton) || menuOpts.type === 'buttons') ?\n menuOpts.buttons :\n [];\n\n var klass = menuOpts.type === 'dropdown' ? constants.dropdownButtonClassName : constants.buttonClassName;\n\n var buttons = gButton.selectAll('g.' + klass)\n .data(Lib.filterVisible(buttonData));\n\n var enter = buttons.enter().append('g')\n .classed(klass, true);\n\n var exit = buttons.exit();\n\n if(menuOpts.type === 'dropdown') {\n enter.attr('opacity', '0')\n .transition()\n .attr('opacity', '1');\n\n exit.transition()\n .attr('opacity', '0')\n .remove();\n } else {\n exit.remove();\n }\n\n var x0 = 0;\n var y0 = 0;\n var dims = menuOpts._dims;\n\n var isVertical = ['up', 'down'].indexOf(menuOpts.direction) !== -1;\n\n if(menuOpts.type === 'dropdown') {\n if(isVertical) {\n y0 = dims.headerHeight + constants.gapButtonHeader;\n } else {\n x0 = dims.headerWidth + constants.gapButtonHeader;\n }\n }\n\n if(menuOpts.type === 'dropdown' && menuOpts.direction === 'up') {\n y0 = -constants.gapButtonHeader + constants.gapButton - dims.openHeight;\n }\n\n if(menuOpts.type === 'dropdown' && menuOpts.direction === 'left') {\n x0 = -constants.gapButtonHeader + constants.gapButton - dims.openWidth;\n }\n\n var posOpts = {\n x: dims.lx + x0 + menuOpts.pad.l,\n y: dims.ly + y0 + menuOpts.pad.t,\n yPad: constants.gapButton,\n xPad: constants.gapButton,\n index: 0,\n };\n\n var scrollBoxPosition = {\n l: posOpts.x + menuOpts.borderwidth,\n t: posOpts.y + menuOpts.borderwidth\n };\n\n buttons.each(function(buttonOpts, buttonIndex) {\n var button = d3.select(this);\n\n button\n .call(drawItem, menuOpts, buttonOpts, gd)\n .call(setItemPosition, menuOpts, posOpts);\n\n button.on('click', function() {\n // skip `dragend` events\n if(d3.event.defaultPrevented) return;\n\n if(buttonOpts.execute) {\n if(buttonOpts.args2 && menuOpts.active === buttonIndex) {\n setActive(gd, menuOpts, buttonOpts, gHeader, gButton, scrollBox, -1);\n Plots.executeAPICommand(gd, buttonOpts.method, buttonOpts.args2);\n } else {\n setActive(gd, menuOpts, buttonOpts, gHeader, gButton, scrollBox, buttonIndex);\n Plots.executeAPICommand(gd, buttonOpts.method, buttonOpts.args);\n }\n }\n\n gd.emit('plotly_buttonclicked', {menu: menuOpts, button: buttonOpts, active: menuOpts.active});\n });\n\n button.on('mouseover', function() {\n button.call(styleOnMouseOver);\n });\n\n button.on('mouseout', function() {\n button.call(styleOnMouseOut, menuOpts);\n buttons.call(styleButtons, menuOpts);\n });\n });\n\n buttons.call(styleButtons, menuOpts);\n\n if(isVertical) {\n scrollBoxPosition.w = Math.max(dims.openWidth, dims.headerWidth);\n scrollBoxPosition.h = posOpts.y - scrollBoxPosition.t;\n } else {\n scrollBoxPosition.w = posOpts.x - scrollBoxPosition.l;\n scrollBoxPosition.h = Math.max(dims.openHeight, dims.headerHeight);\n }\n\n scrollBoxPosition.direction = menuOpts.direction;\n\n if(scrollBox) {\n if(buttons.size()) {\n drawScrollBox(gd, gHeader, gButton, scrollBox, menuOpts, scrollBoxPosition);\n } else {\n hideScrollBox(scrollBox);\n }\n }\n}\n\nfunction drawScrollBox(gd, gHeader, gButton, scrollBox, menuOpts, position) {\n // enable the scrollbox\n var direction = menuOpts.direction;\n var isVertical = (direction === 'up' || direction === 'down');\n var dims = menuOpts._dims;\n\n var active = menuOpts.active;\n var translateX, translateY;\n var i;\n if(isVertical) {\n translateY = 0;\n for(i = 0; i < active; i++) {\n translateY += dims.heights[i] + constants.gapButton;\n }\n } else {\n translateX = 0;\n for(i = 0; i < active; i++) {\n translateX += dims.widths[i] + constants.gapButton;\n }\n }\n\n scrollBox.enable(position, translateX, translateY);\n\n if(scrollBox.hbar) {\n scrollBox.hbar\n .attr('opacity', '0')\n .transition()\n .attr('opacity', '1');\n }\n\n if(scrollBox.vbar) {\n scrollBox.vbar\n .attr('opacity', '0')\n .transition()\n .attr('opacity', '1');\n }\n}\n\nfunction hideScrollBox(scrollBox) {\n var hasHBar = !!scrollBox.hbar;\n var hasVBar = !!scrollBox.vbar;\n\n if(hasHBar) {\n scrollBox.hbar\n .transition()\n .attr('opacity', '0')\n .each('end', function() {\n hasHBar = false;\n if(!hasVBar) scrollBox.disable();\n });\n }\n\n if(hasVBar) {\n scrollBox.vbar\n .transition()\n .attr('opacity', '0')\n .each('end', function() {\n hasVBar = false;\n if(!hasHBar) scrollBox.disable();\n });\n }\n}\n\nfunction drawItem(item, menuOpts, itemOpts, gd) {\n item.call(drawItemRect, menuOpts)\n .call(drawItemText, menuOpts, itemOpts, gd);\n}\n\nfunction drawItemRect(item, menuOpts) {\n var rect = Lib.ensureSingle(item, 'rect', constants.itemRectClassName, function(s) {\n s.attr({\n rx: constants.rx,\n ry: constants.ry,\n 'shape-rendering': 'crispEdges'\n });\n });\n\n rect.call(Color.stroke, menuOpts.bordercolor)\n .call(Color.fill, menuOpts.bgcolor)\n .style('stroke-width', menuOpts.borderwidth + 'px');\n}\n\nfunction drawItemText(item, menuOpts, itemOpts, gd) {\n var text = Lib.ensureSingle(item, 'text', constants.itemTextClassName, function(s) {\n s.attr({\n 'text-anchor': 'start',\n 'data-notex': 1\n });\n });\n\n var tx = itemOpts.label;\n var _meta = gd._fullLayout._meta;\n if(_meta) tx = Lib.templateString(tx, _meta);\n\n text.call(Drawing.font, menuOpts.font)\n .text(tx)\n .call(svgTextUtils.convertToTspans, gd);\n}\n\nfunction styleButtons(buttons, menuOpts) {\n var active = menuOpts.active;\n\n buttons.each(function(buttonOpts, i) {\n var button = d3.select(this);\n\n if(i === active && menuOpts.showactive) {\n button.select('rect.' + constants.itemRectClassName)\n .call(Color.fill, constants.activeColor);\n }\n });\n}\n\nfunction styleOnMouseOver(item) {\n item.select('rect.' + constants.itemRectClassName)\n .call(Color.fill, constants.hoverColor);\n}\n\nfunction styleOnMouseOut(item, menuOpts) {\n item.select('rect.' + constants.itemRectClassName)\n .call(Color.fill, menuOpts.bgcolor);\n}\n\n// find item dimensions (this mutates menuOpts)\nfunction findDimensions(gd, menuOpts) {\n var dims = menuOpts._dims = {\n width1: 0,\n height1: 0,\n heights: [],\n widths: [],\n totalWidth: 0,\n totalHeight: 0,\n openWidth: 0,\n openHeight: 0,\n lx: 0,\n ly: 0\n };\n\n var fakeButtons = Drawing.tester.selectAll('g.' + constants.dropdownButtonClassName)\n .data(Lib.filterVisible(menuOpts.buttons));\n\n fakeButtons.enter().append('g')\n .classed(constants.dropdownButtonClassName, true);\n\n var isVertical = ['up', 'down'].indexOf(menuOpts.direction) !== -1;\n\n // loop over fake buttons to find width / height\n fakeButtons.each(function(buttonOpts, i) {\n var button = d3.select(this);\n\n button.call(drawItem, menuOpts, buttonOpts, gd);\n\n var text = button.select('.' + constants.itemTextClassName);\n\n // width is given by max width of all buttons\n var tWidth = text.node() && Drawing.bBox(text.node()).width;\n var wEff = Math.max(tWidth + constants.textPadX, constants.minWidth);\n\n // height is determined by item text\n var tHeight = menuOpts.font.size * LINE_SPACING;\n var tLines = svgTextUtils.lineCount(text);\n var hEff = Math.max(tHeight * tLines, constants.minHeight) + constants.textOffsetY;\n\n hEff = Math.ceil(hEff);\n wEff = Math.ceil(wEff);\n\n // Store per-item sizes since a row of horizontal buttons, for example,\n // don't all need to be the same width:\n dims.widths[i] = wEff;\n dims.heights[i] = hEff;\n\n // Height and width of individual element:\n dims.height1 = Math.max(dims.height1, hEff);\n dims.width1 = Math.max(dims.width1, wEff);\n\n if(isVertical) {\n dims.totalWidth = Math.max(dims.totalWidth, wEff);\n dims.openWidth = dims.totalWidth;\n dims.totalHeight += hEff + constants.gapButton;\n dims.openHeight += hEff + constants.gapButton;\n } else {\n dims.totalWidth += wEff + constants.gapButton;\n dims.openWidth += wEff + constants.gapButton;\n dims.totalHeight = Math.max(dims.totalHeight, hEff);\n dims.openHeight = dims.totalHeight;\n }\n });\n\n if(isVertical) {\n dims.totalHeight -= constants.gapButton;\n } else {\n dims.totalWidth -= constants.gapButton;\n }\n\n\n dims.headerWidth = dims.width1 + constants.arrowPadX;\n dims.headerHeight = dims.height1;\n\n if(menuOpts.type === 'dropdown') {\n if(isVertical) {\n dims.width1 += constants.arrowPadX;\n dims.totalHeight = dims.height1;\n } else {\n dims.totalWidth = dims.width1;\n }\n dims.totalWidth += constants.arrowPadX;\n }\n\n fakeButtons.remove();\n\n var paddedWidth = dims.totalWidth + menuOpts.pad.l + menuOpts.pad.r;\n var paddedHeight = dims.totalHeight + menuOpts.pad.t + menuOpts.pad.b;\n\n var graphSize = gd._fullLayout._size;\n dims.lx = graphSize.l + graphSize.w * menuOpts.x;\n dims.ly = graphSize.t + graphSize.h * (1 - menuOpts.y);\n\n var xanchor = 'left';\n if(Lib.isRightAnchor(menuOpts)) {\n dims.lx -= paddedWidth;\n xanchor = 'right';\n }\n if(Lib.isCenterAnchor(menuOpts)) {\n dims.lx -= paddedWidth / 2;\n xanchor = 'center';\n }\n\n var yanchor = 'top';\n if(Lib.isBottomAnchor(menuOpts)) {\n dims.ly -= paddedHeight;\n yanchor = 'bottom';\n }\n if(Lib.isMiddleAnchor(menuOpts)) {\n dims.ly -= paddedHeight / 2;\n yanchor = 'middle';\n }\n\n dims.totalWidth = Math.ceil(dims.totalWidth);\n dims.totalHeight = Math.ceil(dims.totalHeight);\n dims.lx = Math.round(dims.lx);\n dims.ly = Math.round(dims.ly);\n\n Plots.autoMargin(gd, autoMarginId(menuOpts), {\n x: menuOpts.x,\n y: menuOpts.y,\n l: paddedWidth * ({right: 1, center: 0.5}[xanchor] || 0),\n r: paddedWidth * ({left: 1, center: 0.5}[xanchor] || 0),\n b: paddedHeight * ({top: 1, middle: 0.5}[yanchor] || 0),\n t: paddedHeight * ({bottom: 1, middle: 0.5}[yanchor] || 0)\n });\n}\n\nfunction autoMarginId(menuOpts) {\n return constants.autoMarginIdRoot + menuOpts._index;\n}\n\n// set item positions (mutates posOpts)\nfunction setItemPosition(item, menuOpts, posOpts, overrideOpts) {\n overrideOpts = overrideOpts || {};\n var rect = item.select('.' + constants.itemRectClassName);\n var text = item.select('.' + constants.itemTextClassName);\n var borderWidth = menuOpts.borderwidth;\n var index = posOpts.index;\n var dims = menuOpts._dims;\n\n Drawing.setTranslate(item, borderWidth + posOpts.x, borderWidth + posOpts.y);\n\n var isVertical = ['up', 'down'].indexOf(menuOpts.direction) !== -1;\n var finalHeight = overrideOpts.height || (isVertical ? dims.heights[index] : dims.height1);\n\n rect.attr({\n x: 0,\n y: 0,\n width: overrideOpts.width || (isVertical ? dims.width1 : dims.widths[index]),\n height: finalHeight\n });\n\n var tHeight = menuOpts.font.size * LINE_SPACING;\n var tLines = svgTextUtils.lineCount(text);\n var spanOffset = ((tLines - 1) * tHeight / 2);\n\n svgTextUtils.positionText(text, constants.textOffsetX,\n finalHeight / 2 - spanOffset + constants.textOffsetY);\n\n if(isVertical) {\n posOpts.y += dims.heights[index] + posOpts.yPad;\n } else {\n posOpts.x += dims.widths[index] + posOpts.xPad;\n }\n\n posOpts.index++;\n}\n\nfunction removeAllButtons(gButton, newMenuIndexAttr) {\n gButton\n .attr(constants.menuIndexAttrName, newMenuIndexAttr || '-1')\n .selectAll('g.' + constants.dropdownButtonClassName).remove();\n}\n\n},{\"../../constants/alignment\":471,\"../../lib\":503,\"../../lib/svg_text_utils\":529,\"../../plot_api/plot_template\":543,\"../../plots/plots\":619,\"../color\":366,\"../drawing\":388,\"./constants\":466,\"./scrollbox\":470,\"@plotly/d3\":58}],469:[function(_dereq_,module,exports){\narguments[4][463][0].apply(exports,arguments)\n},{\"./attributes\":465,\"./constants\":466,\"./defaults\":467,\"./draw\":468,\"dup\":463}],470:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = ScrollBox;\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Color = _dereq_('../color');\nvar Drawing = _dereq_('../drawing');\n\nvar Lib = _dereq_('../../lib');\n\n/**\n * Helper class to setup a scroll box\n *\n * @class\n * @param gd Plotly's graph div\n * @param container Container to be scroll-boxed (as a D3 selection)\n * @param {string} id Id for the clip path to implement the scroll box\n */\nfunction ScrollBox(gd, container, id) {\n this.gd = gd;\n this.container = container;\n this.id = id;\n\n // See ScrollBox.prototype.enable for further definition\n this.position = null; // scrollbox position\n this.translateX = null; // scrollbox horizontal translation\n this.translateY = null; // scrollbox vertical translation\n this.hbar = null; // horizontal scrollbar D3 selection\n this.vbar = null; // vertical scrollbar D3 selection\n\n // element to capture pointer events\n this.bg = this.container.selectAll('rect.scrollbox-bg').data([0]);\n\n this.bg.exit()\n .on('.drag', null)\n .on('wheel', null)\n .remove();\n\n this.bg.enter().append('rect')\n .classed('scrollbox-bg', true)\n .style('pointer-events', 'all')\n .attr({\n opacity: 0,\n x: 0,\n y: 0,\n width: 0,\n height: 0\n });\n}\n\n// scroll bar dimensions\nScrollBox.barWidth = 2;\nScrollBox.barLength = 20;\nScrollBox.barRadius = 2;\nScrollBox.barPad = 1;\nScrollBox.barColor = '#808BA4';\n\n/**\n * If needed, setup a clip path and scrollbars\n *\n * @method\n * @param {Object} position\n * @param {number} position.l Left side position (in pixels)\n * @param {number} position.t Top side (in pixels)\n * @param {number} position.w Width (in pixels)\n * @param {number} position.h Height (in pixels)\n * @param {string} [position.direction='down']\n * Either 'down', 'left', 'right' or 'up'\n * @param {number} [translateX=0] Horizontal offset (in pixels)\n * @param {number} [translateY=0] Vertical offset (in pixels)\n */\nScrollBox.prototype.enable = function enable(position, translateX, translateY) {\n var fullLayout = this.gd._fullLayout;\n var fullWidth = fullLayout.width;\n var fullHeight = fullLayout.height;\n\n // compute position of scrollbox\n this.position = position;\n\n var l = this.position.l;\n var w = this.position.w;\n var t = this.position.t;\n var h = this.position.h;\n var direction = this.position.direction;\n var isDown = (direction === 'down');\n var isLeft = (direction === 'left');\n var isRight = (direction === 'right');\n var isUp = (direction === 'up');\n var boxW = w;\n var boxH = h;\n var boxL, boxR;\n var boxT, boxB;\n\n if(!isDown && !isLeft && !isRight && !isUp) {\n this.position.direction = 'down';\n isDown = true;\n }\n\n var isVertical = isDown || isUp;\n if(isVertical) {\n boxL = l;\n boxR = boxL + boxW;\n\n if(isDown) {\n // anchor to top side\n boxT = t;\n boxB = Math.min(boxT + boxH, fullHeight);\n boxH = boxB - boxT;\n } else {\n // anchor to bottom side\n boxB = t + boxH;\n boxT = Math.max(boxB - boxH, 0);\n boxH = boxB - boxT;\n }\n } else {\n boxT = t;\n boxB = boxT + boxH;\n\n if(isLeft) {\n // anchor to right side\n boxR = l + boxW;\n boxL = Math.max(boxR - boxW, 0);\n boxW = boxR - boxL;\n } else {\n // anchor to left side\n boxL = l;\n boxR = Math.min(boxL + boxW, fullWidth);\n boxW = boxR - boxL;\n }\n }\n\n this._box = {\n l: boxL,\n t: boxT,\n w: boxW,\n h: boxH\n };\n\n // compute position of horizontal scroll bar\n var needsHorizontalScrollBar = (w > boxW);\n var hbarW = ScrollBox.barLength + 2 * ScrollBox.barPad;\n var hbarH = ScrollBox.barWidth + 2 * ScrollBox.barPad;\n // draw horizontal scrollbar on the bottom side\n var hbarL = l;\n var hbarT = t + h;\n\n if(hbarT + hbarH > fullHeight) hbarT = fullHeight - hbarH;\n\n var hbar = this.container.selectAll('rect.scrollbar-horizontal').data(\n (needsHorizontalScrollBar) ? [0] : []);\n\n hbar.exit()\n .on('.drag', null)\n .remove();\n\n hbar.enter().append('rect')\n .classed('scrollbar-horizontal', true)\n .call(Color.fill, ScrollBox.barColor);\n\n if(needsHorizontalScrollBar) {\n this.hbar = hbar.attr({\n 'rx': ScrollBox.barRadius,\n 'ry': ScrollBox.barRadius,\n 'x': hbarL,\n 'y': hbarT,\n 'width': hbarW,\n 'height': hbarH\n });\n\n // hbar center moves between hbarXMin and hbarXMin + hbarTranslateMax\n this._hbarXMin = hbarL + hbarW / 2;\n this._hbarTranslateMax = boxW - hbarW;\n } else {\n delete this.hbar;\n delete this._hbarXMin;\n delete this._hbarTranslateMax;\n }\n\n // compute position of vertical scroll bar\n var needsVerticalScrollBar = (h > boxH);\n var vbarW = ScrollBox.barWidth + 2 * ScrollBox.barPad;\n var vbarH = ScrollBox.barLength + 2 * ScrollBox.barPad;\n // draw vertical scrollbar on the right side\n var vbarL = l + w;\n var vbarT = t;\n\n if(vbarL + vbarW > fullWidth) vbarL = fullWidth - vbarW;\n\n var vbar = this.container.selectAll('rect.scrollbar-vertical').data(\n (needsVerticalScrollBar) ? [0] : []);\n\n vbar.exit()\n .on('.drag', null)\n .remove();\n\n vbar.enter().append('rect')\n .classed('scrollbar-vertical', true)\n .call(Color.fill, ScrollBox.barColor);\n\n if(needsVerticalScrollBar) {\n this.vbar = vbar.attr({\n 'rx': ScrollBox.barRadius,\n 'ry': ScrollBox.barRadius,\n 'x': vbarL,\n 'y': vbarT,\n 'width': vbarW,\n 'height': vbarH\n });\n\n // vbar center moves between vbarYMin and vbarYMin + vbarTranslateMax\n this._vbarYMin = vbarT + vbarH / 2;\n this._vbarTranslateMax = boxH - vbarH;\n } else {\n delete this.vbar;\n delete this._vbarYMin;\n delete this._vbarTranslateMax;\n }\n\n // setup a clip path (if scroll bars are needed)\n var clipId = this.id;\n var clipL = boxL - 0.5;\n var clipR = (needsVerticalScrollBar) ? boxR + vbarW + 0.5 : boxR + 0.5;\n var clipT = boxT - 0.5;\n var clipB = (needsHorizontalScrollBar) ? boxB + hbarH + 0.5 : boxB + 0.5;\n\n var clipPath = fullLayout._topdefs.selectAll('#' + clipId)\n .data((needsHorizontalScrollBar || needsVerticalScrollBar) ? [0] : []);\n\n clipPath.exit().remove();\n\n clipPath.enter()\n .append('clipPath').attr('id', clipId)\n .append('rect');\n\n if(needsHorizontalScrollBar || needsVerticalScrollBar) {\n this._clipRect = clipPath.select('rect').attr({\n x: Math.floor(clipL),\n y: Math.floor(clipT),\n width: Math.ceil(clipR) - Math.floor(clipL),\n height: Math.ceil(clipB) - Math.floor(clipT)\n });\n\n this.container.call(Drawing.setClipUrl, clipId, this.gd);\n\n this.bg.attr({\n x: l,\n y: t,\n width: w,\n height: h\n });\n } else {\n this.bg.attr({\n width: 0,\n height: 0\n });\n this.container\n .on('wheel', null)\n .on('.drag', null)\n .call(Drawing.setClipUrl, null);\n delete this._clipRect;\n }\n\n // set up drag listeners (if scroll bars are needed)\n if(needsHorizontalScrollBar || needsVerticalScrollBar) {\n var onBoxDrag = d3.behavior.drag()\n .on('dragstart', function() {\n d3.event.sourceEvent.preventDefault();\n })\n .on('drag', this._onBoxDrag.bind(this));\n\n this.container\n .on('wheel', null)\n .on('wheel', this._onBoxWheel.bind(this))\n .on('.drag', null)\n .call(onBoxDrag);\n\n var onBarDrag = d3.behavior.drag()\n .on('dragstart', function() {\n d3.event.sourceEvent.preventDefault();\n d3.event.sourceEvent.stopPropagation();\n })\n .on('drag', this._onBarDrag.bind(this));\n\n if(needsHorizontalScrollBar) {\n this.hbar\n .on('.drag', null)\n .call(onBarDrag);\n }\n\n if(needsVerticalScrollBar) {\n this.vbar\n .on('.drag', null)\n .call(onBarDrag);\n }\n }\n\n // set scrollbox translation\n this.setTranslate(translateX, translateY);\n};\n\n/**\n * If present, remove clip-path and scrollbars\n *\n * @method\n */\nScrollBox.prototype.disable = function disable() {\n if(this.hbar || this.vbar) {\n this.bg.attr({\n width: 0,\n height: 0\n });\n this.container\n .on('wheel', null)\n .on('.drag', null)\n .call(Drawing.setClipUrl, null);\n delete this._clipRect;\n }\n\n if(this.hbar) {\n this.hbar.on('.drag', null);\n this.hbar.remove();\n delete this.hbar;\n delete this._hbarXMin;\n delete this._hbarTranslateMax;\n }\n\n if(this.vbar) {\n this.vbar.on('.drag', null);\n this.vbar.remove();\n delete this.vbar;\n delete this._vbarYMin;\n delete this._vbarTranslateMax;\n }\n};\n\n/**\n * Handles scroll box drag events\n *\n * @method\n */\nScrollBox.prototype._onBoxDrag = function _onBoxDrag() {\n var translateX = this.translateX;\n var translateY = this.translateY;\n\n if(this.hbar) {\n translateX -= d3.event.dx;\n }\n\n if(this.vbar) {\n translateY -= d3.event.dy;\n }\n\n this.setTranslate(translateX, translateY);\n};\n\n/**\n * Handles scroll box wheel events\n *\n * @method\n */\nScrollBox.prototype._onBoxWheel = function _onBoxWheel() {\n var translateX = this.translateX;\n var translateY = this.translateY;\n\n if(this.hbar) {\n translateX += d3.event.deltaY;\n }\n\n if(this.vbar) {\n translateY += d3.event.deltaY;\n }\n\n this.setTranslate(translateX, translateY);\n};\n\n/**\n * Handles scroll bar drag events\n *\n * @method\n */\nScrollBox.prototype._onBarDrag = function _onBarDrag() {\n var translateX = this.translateX;\n var translateY = this.translateY;\n\n if(this.hbar) {\n var xMin = translateX + this._hbarXMin;\n var xMax = xMin + this._hbarTranslateMax;\n var x = Lib.constrain(d3.event.x, xMin, xMax);\n var xf = (x - xMin) / (xMax - xMin);\n\n var translateXMax = this.position.w - this._box.w;\n\n translateX = xf * translateXMax;\n }\n\n if(this.vbar) {\n var yMin = translateY + this._vbarYMin;\n var yMax = yMin + this._vbarTranslateMax;\n var y = Lib.constrain(d3.event.y, yMin, yMax);\n var yf = (y - yMin) / (yMax - yMin);\n\n var translateYMax = this.position.h - this._box.h;\n\n translateY = yf * translateYMax;\n }\n\n this.setTranslate(translateX, translateY);\n};\n\n/**\n * Set clip path and scroll bar translate transform\n *\n * @method\n * @param {number} [translateX=0] Horizontal offset (in pixels)\n * @param {number} [translateY=0] Vertical offset (in pixels)\n */\nScrollBox.prototype.setTranslate = function setTranslate(translateX, translateY) {\n // store translateX and translateY (needed by mouse event handlers)\n var translateXMax = this.position.w - this._box.w;\n var translateYMax = this.position.h - this._box.h;\n\n translateX = Lib.constrain(translateX || 0, 0, translateXMax);\n translateY = Lib.constrain(translateY || 0, 0, translateYMax);\n\n this.translateX = translateX;\n this.translateY = translateY;\n\n this.container.call(Drawing.setTranslate,\n this._box.l - this.position.l - translateX,\n this._box.t - this.position.t - translateY);\n\n if(this._clipRect) {\n this._clipRect.attr({\n x: Math.floor(this.position.l + translateX - 0.5),\n y: Math.floor(this.position.t + translateY - 0.5)\n });\n }\n\n if(this.hbar) {\n var xf = translateX / translateXMax;\n\n this.hbar.call(Drawing.setTranslate,\n translateX + xf * this._hbarTranslateMax,\n translateY);\n }\n\n if(this.vbar) {\n var yf = translateY / translateYMax;\n\n this.vbar.call(Drawing.setTranslate,\n translateX,\n translateY + yf * this._vbarTranslateMax);\n }\n};\n\n},{\"../../lib\":503,\"../color\":366,\"../drawing\":388,\"@plotly/d3\":58}],471:[function(_dereq_,module,exports){\n'use strict';\n\n// fraction of some size to get to a named position\nmodule.exports = {\n // from bottom left: this is the origin of our paper-reference\n // positioning system\n FROM_BL: {\n left: 0,\n center: 0.5,\n right: 1,\n bottom: 0,\n middle: 0.5,\n top: 1\n },\n // from top left: this is the screen pixel positioning origin\n FROM_TL: {\n left: 0,\n center: 0.5,\n right: 1,\n bottom: 1,\n middle: 0.5,\n top: 0\n },\n // from bottom right: sometimes you just need the opposite of ^^\n FROM_BR: {\n left: 1,\n center: 0.5,\n right: 0,\n bottom: 0,\n middle: 0.5,\n top: 1\n },\n // multiple of fontSize to get the vertical offset between lines\n LINE_SPACING: 1.3,\n\n // multiple of fontSize to shift from the baseline\n // to the cap (captical letter) line\n // (to use when we don't calculate this shift from Drawing.bBox)\n // This is an approximation since in reality cap height can differ\n // from font to font. However, according to Wikipedia\n // an \"average\" font might have a cap height of 70% of the em\n // https://en.wikipedia.org/wiki/Em_(typography)#History\n CAP_SHIFT: 0.70,\n\n // half the cap height (distance between baseline and cap line)\n // of an \"average\" font (for more info see above).\n MID_SHIFT: 0.35,\n\n OPPOSITE_SIDE: {\n left: 'right',\n right: 'left',\n top: 'bottom',\n bottom: 'top'\n }\n};\n\n},{}],472:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n axisRefDescription: function(axisname, lower, upper) {\n return [\n 'If set to a', axisname, 'axis id (e.g. *' + axisname + '* or',\n '*' + axisname + '2*), the `' + axisname + '` position refers to a',\n axisname, 'coordinate. If set to *paper*, the `' + axisname + '`',\n 'position refers to the distance from the', lower, 'of the plotting',\n 'area in normalized coordinates where *0* (*1*) corresponds to the',\n lower, '(' + upper + '). If set to a', axisname, 'axis ID followed by',\n '*domain* (separated by a space), the position behaves like for',\n '*paper*, but refers to the distance in fractions of the domain',\n 'length from the', lower, 'of the domain of that axis: e.g.,',\n '*' + axisname + '2 domain* refers to the domain of the second',\n axisname, ' axis and a', axisname, 'position of 0.5 refers to the',\n 'point between the', lower, 'and the', upper, 'of the domain of the',\n 'second', axisname, 'axis.',\n ].join(' ');\n }\n};\n\n},{}],473:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n INCREASING: {\n COLOR: '#3D9970',\n SYMBOL: '▲'\n },\n DECREASING: {\n COLOR: '#FF4136',\n SYMBOL: '▼'\n }\n};\n\n},{}],474:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n FORMAT_LINK: 'https://github.com/d3/d3-format/tree/v1.4.5#d3-format',\n DATE_FORMAT_LINK: 'https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format'\n};\n\n},{}],475:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n COMPARISON_OPS: ['=', '!=', '<', '>=', '>', '<='],\n COMPARISON_OPS2: ['=', '<', '>=', '>', '<='],\n INTERVAL_OPS: ['[]', '()', '[)', '(]', '][', ')(', '](', ')['],\n SET_OPS: ['{}', '}{'],\n CONSTRAINT_REDUCTION: {\n // for contour constraints, open/closed endpoints are equivalent\n '=': '=',\n\n '<': '<',\n '<=': '<',\n\n '>': '>',\n '>=': '>',\n\n '[]': '[]',\n '()': '[]',\n '[)': '[]',\n '(]': '[]',\n\n '][': '][',\n ')(': '][',\n '](': '][',\n ')[': ']['\n }\n};\n\n},{}],476:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n solid: [[], 0],\n dot: [[0.5, 1], 200],\n dash: [[0.5, 1], 50],\n longdash: [[0.5, 1], 10],\n dashdot: [[0.5, 0.625, 0.875, 1], 50],\n longdashdot: [[0.5, 0.7, 0.8, 1], 10]\n};\n\n},{}],477:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n circle: '●',\n 'circle-open': '○',\n square: '■',\n 'square-open': '□',\n diamond: '◆',\n 'diamond-open': '◇',\n cross: '+',\n x: '❌'\n};\n\n},{}],478:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = {\n /**\n * Timing information for interactive elements\n */\n SHOW_PLACEHOLDER: 100,\n HIDE_PLACEHOLDER: 1000,\n\n // opacity dimming fraction for points that are not in selection\n DESELECTDIM: 0.2\n};\n\n},{}],479:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = {\n /**\n * Standardize all missing data in calcdata to use undefined\n * never null or NaN.\n * That way we can use !==undefined, or !== BADNUM,\n * to test for real data\n */\n BADNUM: undefined,\n\n /*\n * Limit certain operations to well below floating point max value\n * to avoid glitches: Make sure that even when you multiply it by the\n * number of pixels on a giant screen it still works\n */\n FP_SAFE: Number.MAX_VALUE * 1e-4,\n\n /*\n * conversion of date units to milliseconds\n * year and month constants are marked \"AVG\"\n * to remind us that not all years and months\n * have the same length\n */\n ONEMAXYEAR: 31622400000, // 366 * ONEDAY\n ONEAVGYEAR: 31557600000, // 365.25 days\n ONEMINYEAR: 31536000000, // 365 * ONEDAY\n ONEMAXQUARTER: 7948800000, // 92 * ONEDAY\n ONEAVGQUARTER: 7889400000, // 1/4 of ONEAVGYEAR\n ONEMINQUARTER: 7689600000, // 89 * ONEDAY\n ONEMAXMONTH: 2678400000, // 31 * ONEDAY\n ONEAVGMONTH: 2629800000, // 1/12 of ONEAVGYEAR\n ONEMINMONTH: 2419200000, // 28 * ONEDAY\n ONEWEEK: 604800000, // 7 * ONEDAY\n ONEDAY: 86400000, // 24 * ONEHOUR\n ONEHOUR: 3600000,\n ONEMIN: 60000,\n ONESEC: 1000,\n\n /*\n * For fast conversion btwn world calendars and epoch ms, the Julian Day Number\n * of the unix epoch. From calendars.instance().newDate(1970, 1, 1).toJD()\n */\n EPOCHJD: 2440587.5,\n\n /*\n * Are two values nearly equal? Compare to 1PPM\n */\n ALMOST_EQUAL: 1 - 1e-6,\n\n /*\n * If we're asked to clip a non-positive log value, how far off-screen\n * do we put it?\n */\n LOG_CLIP: 10,\n\n /*\n * not a number, but for displaying numbers: the \"minus sign\" symbol is\n * wider than the regular ascii dash \"-\"\n */\n MINUS_SIGN: '\\u2212'\n};\n\n},{}],480:[function(_dereq_,module,exports){\n'use strict';\n\n\nexports.xmlns = 'http://www.w3.org/2000/xmlns/';\nexports.svg = 'http://www.w3.org/2000/svg';\nexports.xlink = 'http://www.w3.org/1999/xlink';\n\n// the 'old' d3 quirk got fix in v3.5.7\n// https://github.com/mbostock/d3/commit/a6f66e9dd37f764403fc7c1f26be09ab4af24fed\nexports.svgAttrs = {\n xmlns: exports.svg,\n 'xmlns:xlink': exports.xlink\n};\n\n},{}],481:[function(_dereq_,module,exports){\n'use strict';\n\nexports.version = _dereq_('./version').version;\n\n// inject promise polyfill\n_dereq_('native-promise-only');\n\n// inject plot css\n_dereq_('../build/plotcss');\n\n// include registry module and expose register method\nvar Registry = _dereq_('./registry');\nvar register = exports.register = Registry.register;\n\n// expose plot api methods\nvar plotApi = _dereq_('./plot_api');\nvar methodNames = Object.keys(plotApi);\nfor(var i = 0; i < methodNames.length; i++) {\n var name = methodNames[i];\n // _ -> private API methods, but still registered for internal use\n if(name.charAt(0) !== '_') exports[name] = plotApi[name];\n register({\n moduleType: 'apiMethod',\n name: name,\n fn: plotApi[name]\n });\n}\n\n// scatter is the only trace included by default\nregister(_dereq_('./traces/scatter'));\n\n// register all registrable components modules\nregister([\n _dereq_('./components/legend'),\n _dereq_('./components/fx'), // fx needs to come after legend\n _dereq_('./components/annotations'),\n _dereq_('./components/annotations3d'),\n _dereq_('./components/shapes'),\n _dereq_('./components/images'),\n _dereq_('./components/updatemenus'),\n _dereq_('./components/sliders'),\n _dereq_('./components/rangeslider'),\n _dereq_('./components/rangeselector'),\n _dereq_('./components/grid'),\n _dereq_('./components/errorbars'),\n _dereq_('./components/colorscale'),\n _dereq_('./components/colorbar'),\n _dereq_('./components/modebar')\n]);\n\n// locales en and en-US are required for default behavior\nregister([\n _dereq_('./locale-en'),\n _dereq_('./locale-en-us')\n]);\n\n// locales that are present in the window should be loaded\nif(window.PlotlyLocales && Array.isArray(window.PlotlyLocales)) {\n register(window.PlotlyLocales);\n delete window.PlotlyLocales;\n}\n\n// plot icons\nexports.Icons = _dereq_('./fonts/ploticon');\n\n// unofficial 'beta' plot methods, use at your own risk\nvar Fx = _dereq_('./components/fx');\nvar Plots = _dereq_('./plots/plots');\n\nexports.Plots = {\n resize: Plots.resize,\n graphJson: Plots.graphJson,\n sendDataToCloud: Plots.sendDataToCloud\n};\nexports.Fx = {\n hover: Fx.hover,\n unhover: Fx.unhover,\n loneHover: Fx.loneHover,\n loneUnhover: Fx.loneUnhover\n};\nexports.Snapshot = _dereq_('./snapshot');\nexports.PlotSchema = _dereq_('./plot_api/plot_schema');\n\n},{\"../build/plotcss\":1,\"./components/annotations\":357,\"./components/annotations3d\":362,\"./components/colorbar\":372,\"./components/colorscale\":378,\"./components/errorbars\":394,\"./components/fx\":406,\"./components/grid\":410,\"./components/images\":415,\"./components/legend\":423,\"./components/modebar\":429,\"./components/rangeselector\":437,\"./components/rangeslider\":444,\"./components/shapes\":458,\"./components/sliders\":463,\"./components/updatemenus\":469,\"./fonts/ploticon\":482,\"./locale-en\":534,\"./locale-en-us\":533,\"./plot_api\":538,\"./plot_api/plot_schema\":542,\"./plots/plots\":619,\"./registry\":638,\"./snapshot\":643,\"./traces/scatter\":937,\"./version\":1118,\"native-promise-only\":245}],482:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n 'undo': {\n 'width': 857.1,\n 'height': 1000,\n 'path': 'm857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'home': {\n 'width': 928.6,\n 'height': 1000,\n 'path': 'm786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'camera-retro': {\n 'width': 1000,\n 'height': 1000,\n 'path': 'm518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'zoombox': {\n 'width': 1000,\n 'height': 1000,\n 'path': 'm1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'pan': {\n 'width': 1000,\n 'height': 1000,\n 'path': 'm1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'zoom_plus': {\n 'width': 875,\n 'height': 1000,\n 'path': 'm1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'zoom_minus': {\n 'width': 875,\n 'height': 1000,\n 'path': 'm0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'autoscale': {\n 'width': 1000,\n 'height': 1000,\n 'path': 'm250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'tooltip_basic': {\n 'width': 1500,\n 'height': 1000,\n 'path': 'm375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'tooltip_compare': {\n 'width': 1125,\n 'height': 1000,\n 'path': 'm187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'plotlylogo': {\n 'width': 1542,\n 'height': 1000,\n 'path': 'm0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'z-axis': {\n 'width': 1000,\n 'height': 1000,\n 'path': 'm833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n '3d_rotate': {\n 'width': 1000,\n 'height': 1000,\n 'path': 'm922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'camera': {\n 'width': 1000,\n 'height': 1000,\n 'path': 'm500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'movie': {\n 'width': 1000,\n 'height': 1000,\n 'path': 'm938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'question': {\n 'width': 857.1,\n 'height': 1000,\n 'path': 'm500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'disk': {\n 'width': 857.1,\n 'height': 1000,\n 'path': 'm214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'drawopenpath': {\n 'width': 70,\n 'height': 70,\n 'path': 'M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z',\n 'transform': 'matrix(1 0 0 1 -15 -15)'\n },\n 'drawclosedpath': {\n 'width': 90,\n 'height': 90,\n 'path': 'M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z',\n 'transform': 'matrix(1 0 0 1 -5 -5)'\n },\n 'lasso': {\n 'width': 1031,\n 'height': 1000,\n 'path': 'm1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'selectbox': {\n 'width': 1000,\n 'height': 1000,\n 'path': 'm0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'drawline': {\n 'width': 70,\n 'height': 70,\n 'path': 'M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z',\n 'transform': 'matrix(1 0 0 1 -15 -15)'\n },\n 'drawrect': {\n 'width': 80,\n 'height': 80,\n 'path': 'M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z',\n 'transform': 'matrix(1 0 0 1 -10 -10)'\n },\n 'drawcircle': {\n 'width': 80,\n 'height': 80,\n 'path': 'M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z',\n 'transform': 'matrix(1 0 0 1 -10 -10)'\n },\n 'eraseshape': {\n 'width': 80,\n 'height': 80,\n 'path': 'M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z',\n 'transform': 'matrix(1 0 0 1 -10 -10)'\n },\n 'spikeline': {\n 'width': 1000,\n 'height': 1000,\n 'path': 'M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z',\n 'transform': 'matrix(1.5 0 0 -1.5 0 850)'\n },\n 'pencil': {\n 'width': 1792,\n 'height': 1792,\n 'path': 'M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z',\n 'transform': 'matrix(1 0 0 1 0 1)'\n },\n 'newplotlylogo': {\n 'name': 'newplotlylogo',\n 'svg': 'plotly-logomark'\n }\n};\n\n},{}],483:[function(_dereq_,module,exports){\n'use strict';\n\n\n/**\n * Determine the position anchor property of x/y xanchor/yanchor components.\n *\n * - values < 1/3 align the low side at that fraction,\n * - values [1/3, 2/3] align the center at that fraction,\n * - values > 2/3 align the right at that fraction.\n */\n\n\nexports.isLeftAnchor = function isLeftAnchor(opts) {\n return (\n opts.xanchor === 'left' ||\n (opts.xanchor === 'auto' && opts.x <= 1 / 3)\n );\n};\n\nexports.isCenterAnchor = function isCenterAnchor(opts) {\n return (\n opts.xanchor === 'center' ||\n (opts.xanchor === 'auto' && opts.x > 1 / 3 && opts.x < 2 / 3)\n );\n};\n\nexports.isRightAnchor = function isRightAnchor(opts) {\n return (\n opts.xanchor === 'right' ||\n (opts.xanchor === 'auto' && opts.x >= 2 / 3)\n );\n};\n\nexports.isTopAnchor = function isTopAnchor(opts) {\n return (\n opts.yanchor === 'top' ||\n (opts.yanchor === 'auto' && opts.y >= 2 / 3)\n );\n};\n\nexports.isMiddleAnchor = function isMiddleAnchor(opts) {\n return (\n opts.yanchor === 'middle' ||\n (opts.yanchor === 'auto' && opts.y > 1 / 3 && opts.y < 2 / 3)\n );\n};\n\nexports.isBottomAnchor = function isBottomAnchor(opts) {\n return (\n opts.yanchor === 'bottom' ||\n (opts.yanchor === 'auto' && opts.y <= 1 / 3)\n );\n};\n\n},{}],484:[function(_dereq_,module,exports){\n'use strict';\n\nvar modModule = _dereq_('./mod');\nvar mod = modModule.mod;\nvar modHalf = modModule.modHalf;\n\nvar PI = Math.PI;\nvar twoPI = 2 * PI;\n\nfunction deg2rad(deg) { return deg / 180 * PI; }\n\nfunction rad2deg(rad) { return rad / PI * 180; }\n\n/**\n * is sector a full circle?\n * ... this comes up a lot in SVG path-drawing routines\n *\n * N.B. we consider all sectors that span more that 2pi 'full' circles\n *\n * @param {2-item array} aBnds : angular bounds in *radians*\n * @return {boolean}\n */\nfunction isFullCircle(aBnds) {\n return Math.abs(aBnds[1] - aBnds[0]) > twoPI - 1e-14;\n}\n\n/**\n * angular delta between angle 'a' and 'b'\n * solution taken from: https://stackoverflow.com/a/2007279\n *\n * @param {number} a : first angle in *radians*\n * @param {number} b : second angle in *radians*\n * @return {number} angular delta in *radians*\n */\nfunction angleDelta(a, b) {\n return modHalf(b - a, twoPI);\n}\n\n/**\n * angular distance between angle 'a' and 'b'\n *\n * @param {number} a : first angle in *radians*\n * @param {number} b : second angle in *radians*\n * @return {number} angular distance in *radians*\n */\nfunction angleDist(a, b) {\n return Math.abs(angleDelta(a, b));\n}\n\n/**\n * is angle inside sector?\n *\n * @param {number} a : angle to test in *radians*\n * @param {2-item array} aBnds : sector's angular bounds in *radians*\n * @param {boolean}\n */\nfunction isAngleInsideSector(a, aBnds) {\n if(isFullCircle(aBnds)) return true;\n\n var s0, s1;\n\n if(aBnds[0] < aBnds[1]) {\n s0 = aBnds[0];\n s1 = aBnds[1];\n } else {\n s0 = aBnds[1];\n s1 = aBnds[0];\n }\n\n s0 = mod(s0, twoPI);\n s1 = mod(s1, twoPI);\n if(s0 > s1) s1 += twoPI;\n\n var a0 = mod(a, twoPI);\n var a1 = a0 + twoPI;\n\n return (a0 >= s0 && a0 <= s1) || (a1 >= s0 && a1 <= s1);\n}\n\n/**\n * is pt (r,a) inside sector?\n *\n * @param {number} r : pt's radial coordinate\n * @param {number} a : pt's angular coordinate in *radians*\n * @param {2-item array} rBnds : sector's radial bounds\n * @param {2-item array} aBnds : sector's angular bounds in *radians*\n * @return {boolean}\n */\nfunction isPtInsideSector(r, a, rBnds, aBnds) {\n if(!isAngleInsideSector(a, aBnds)) return false;\n\n var r0, r1;\n\n if(rBnds[0] < rBnds[1]) {\n r0 = rBnds[0];\n r1 = rBnds[1];\n } else {\n r0 = rBnds[1];\n r1 = rBnds[0];\n }\n\n return r >= r0 && r <= r1;\n}\n\n// common to pathArc, pathSector and pathAnnulus\nfunction _path(r0, r1, a0, a1, cx, cy, isClosed) {\n cx = cx || 0;\n cy = cy || 0;\n\n var isCircle = isFullCircle([a0, a1]);\n var aStart, aMid, aEnd;\n var rStart, rEnd;\n\n if(isCircle) {\n aStart = 0;\n aMid = PI;\n aEnd = twoPI;\n } else {\n if(a0 < a1) {\n aStart = a0;\n aEnd = a1;\n } else {\n aStart = a1;\n aEnd = a0;\n }\n }\n\n if(r0 < r1) {\n rStart = r0;\n rEnd = r1;\n } else {\n rStart = r1;\n rEnd = r0;\n }\n\n // N.B. svg coordinates here, where y increases downward\n function pt(r, a) {\n return [r * Math.cos(a) + cx, cy - r * Math.sin(a)];\n }\n\n var largeArc = Math.abs(aEnd - aStart) <= PI ? 0 : 1;\n function arc(r, a, cw) {\n return 'A' + [r, r] + ' ' + [0, largeArc, cw] + ' ' + pt(r, a);\n }\n\n var p;\n\n if(isCircle) {\n if(rStart === null) {\n p = 'M' + pt(rEnd, aStart) +\n arc(rEnd, aMid, 0) +\n arc(rEnd, aEnd, 0) + 'Z';\n } else {\n p = 'M' + pt(rStart, aStart) +\n arc(rStart, aMid, 0) +\n arc(rStart, aEnd, 0) + 'Z' +\n 'M' + pt(rEnd, aStart) +\n arc(rEnd, aMid, 1) +\n arc(rEnd, aEnd, 1) + 'Z';\n }\n } else {\n if(rStart === null) {\n p = 'M' + pt(rEnd, aStart) + arc(rEnd, aEnd, 0);\n if(isClosed) p += 'L0,0Z';\n } else {\n p = 'M' + pt(rStart, aStart) +\n 'L' + pt(rEnd, aStart) +\n arc(rEnd, aEnd, 0) +\n 'L' + pt(rStart, aEnd) +\n arc(rStart, aStart, 1) + 'Z';\n }\n }\n\n return p;\n}\n\n/**\n * path an arc\n *\n * @param {number} r : radius\n * @param {number} a0 : first angular coordinate in *radians*\n * @param {number} a1 : second angular coordinate in *radians*\n * @param {number (optional)} cx : x coordinate of center\n * @param {number (optional)} cy : y coordinate of center\n * @return {string} svg path\n */\nfunction pathArc(r, a0, a1, cx, cy) {\n return _path(null, r, a0, a1, cx, cy, 0);\n}\n\n/**\n * path a sector\n *\n * @param {number} r : radius\n * @param {number} a0 : first angular coordinate in *radians*\n * @param {number} a1 : second angular coordinate in *radians*\n * @param {number (optional)} cx : x coordinate of center\n * @param {number (optional)} cy : y coordinate of center\n * @return {string} svg path\n */\nfunction pathSector(r, a0, a1, cx, cy) {\n return _path(null, r, a0, a1, cx, cy, 1);\n}\n\n/**\n * path an annulus\n *\n * @param {number} r0 : first radial coordinate\n * @param {number} r1 : second radial coordinate\n * @param {number} a0 : first angular coordinate in *radians*\n * @param {number} a1 : second angular coordinate in *radians*\n * @param {number (optional)} cx : x coordinate of center\n * @param {number (optional)} cy : y coordinate of center\n * @return {string} svg path\n */\nfunction pathAnnulus(r0, r1, a0, a1, cx, cy) {\n return _path(r0, r1, a0, a1, cx, cy, 1);\n}\n\nmodule.exports = {\n deg2rad: deg2rad,\n rad2deg: rad2deg,\n angleDelta: angleDelta,\n angleDist: angleDist,\n isFullCircle: isFullCircle,\n isAngleInsideSector: isAngleInsideSector,\n isPtInsideSector: isPtInsideSector,\n pathArc: pathArc,\n pathSector: pathSector,\n pathAnnulus: pathAnnulus\n};\n\n},{\"./mod\":510}],485:[function(_dereq_,module,exports){\n'use strict';\n\nvar isArray = Array.isArray;\n\nvar ab = ArrayBuffer;\nvar dv = DataView;\n\nfunction isTypedArray(a) {\n return ab.isView(a) && !(a instanceof dv);\n}\nexports.isTypedArray = isTypedArray;\n\nfunction isArrayOrTypedArray(a) {\n return isArray(a) || isTypedArray(a);\n}\nexports.isArrayOrTypedArray = isArrayOrTypedArray;\n\n/*\n * Test whether an input object is 1D.\n *\n * Assumes we already know the object is an array.\n *\n * Looks only at the first element, if the dimensionality is\n * not consistent we won't figure that out here.\n */\nfunction isArray1D(a) {\n return !isArrayOrTypedArray(a[0]);\n}\nexports.isArray1D = isArray1D;\n\n/*\n * Ensures an array has the right amount of storage space. If it doesn't\n * exist, it creates an array. If it does exist, it returns it if too\n * short or truncates it in-place.\n *\n * The goal is to just reuse memory to avoid a bit of excessive garbage\n * collection.\n */\nexports.ensureArray = function(out, n) {\n // TODO: typed array support here? This is only used in\n // traces/carpet/compute_control_points\n if(!isArray(out)) out = [];\n\n // If too long, truncate. (If too short, it will grow\n // automatically so we don't care about that case)\n out.length = n;\n\n return out;\n};\n\n/*\n * TypedArray-compatible concatenation of n arrays\n * if all arrays are the same type it will preserve that type,\n * otherwise it falls back on Array.\n * Also tries to avoid copying, in case one array has zero length\n * But never mutates an existing array\n */\nexports.concat = function() {\n var args = [];\n var allArray = true;\n var totalLen = 0;\n\n var _constructor, arg0, i, argi, posi, leni, out, j;\n\n for(i = 0; i < arguments.length; i++) {\n argi = arguments[i];\n leni = argi.length;\n if(leni) {\n if(arg0) args.push(argi);\n else {\n arg0 = argi;\n posi = leni;\n }\n\n if(isArray(argi)) {\n _constructor = false;\n } else {\n allArray = false;\n if(!totalLen) {\n _constructor = argi.constructor;\n } else if(_constructor !== argi.constructor) {\n // TODO: in principle we could upgrade here,\n // ie keep typed array but convert all to Float64Array?\n _constructor = false;\n }\n }\n\n totalLen += leni;\n }\n }\n\n if(!totalLen) return [];\n if(!args.length) return arg0;\n\n if(allArray) return arg0.concat.apply(arg0, args);\n if(_constructor) {\n // matching typed arrays\n out = new _constructor(totalLen);\n out.set(arg0);\n for(i = 0; i < args.length; i++) {\n argi = args[i];\n out.set(argi, posi);\n posi += argi.length;\n }\n return out;\n }\n\n // mismatched types or Array + typed\n out = new Array(totalLen);\n for(j = 0; j < arg0.length; j++) out[j] = arg0[j];\n for(i = 0; i < args.length; i++) {\n argi = args[i];\n for(j = 0; j < argi.length; j++) out[posi + j] = argi[j];\n posi += j;\n }\n return out;\n};\n\nexports.maxRowLength = function(z) {\n return _rowLength(z, Math.max, 0);\n};\n\nexports.minRowLength = function(z) {\n return _rowLength(z, Math.min, Infinity);\n};\n\nfunction _rowLength(z, fn, len0) {\n if(isArrayOrTypedArray(z)) {\n if(isArrayOrTypedArray(z[0])) {\n var len = len0;\n for(var i = 0; i < z.length; i++) {\n len = fn(len, z[i].length);\n }\n return len;\n } else {\n return z.length;\n }\n }\n return 0;\n}\n\n},{}],486:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar BADNUM = _dereq_('../constants/numerical').BADNUM;\n\n// precompile for speed\nvar JUNK = /^['\"%,$#\\s']+|[, ]|['\"%,$#\\s']+$/g;\n\n/**\n * cleanNumber: remove common leading and trailing cruft\n * Always returns either a number or BADNUM.\n */\nmodule.exports = function cleanNumber(v) {\n if(typeof v === 'string') {\n v = v.replace(JUNK, '');\n }\n\n if(isNumeric(v)) return Number(v);\n\n return BADNUM;\n};\n\n},{\"../constants/numerical\":479,\"fast-isnumeric\":190}],487:[function(_dereq_,module,exports){\n'use strict';\n\n/**\n * Clear gl frame (if any). This is a common pattern as\n * we usually set `preserveDrawingBuffer: true` during\n * gl context creation (e.g. via `reglUtils.prepare`).\n *\n * @param {DOM node or object} gd : graph div object\n */\nmodule.exports = function clearGlCanvases(gd) {\n var fullLayout = gd._fullLayout;\n\n if(fullLayout._glcanvas && fullLayout._glcanvas.size()) {\n fullLayout._glcanvas.each(function(d) {\n if(d.regl) d.regl.clear({color: true, depth: true});\n });\n }\n};\n\n},{}],488:[function(_dereq_,module,exports){\n'use strict';\n\n/**\n * Clear responsive handlers (if any).\n *\n * @param {DOM node or object} gd : graph div object\n */\nmodule.exports = function clearResponsive(gd) {\n if(gd._responsiveChartHandler) {\n window.removeEventListener('resize', gd._responsiveChartHandler);\n delete gd._responsiveChartHandler;\n }\n};\n\n},{}],489:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar tinycolor = _dereq_('tinycolor2');\n\nvar baseTraceAttrs = _dereq_('../plots/attributes');\nvar colorscales = _dereq_('../components/colorscale/scales');\nvar Color = _dereq_('../components/color');\nvar DESELECTDIM = _dereq_('../constants/interactions').DESELECTDIM;\n\nvar nestedProperty = _dereq_('./nested_property');\nvar counterRegex = _dereq_('./regex').counter;\nvar modHalf = _dereq_('./mod').modHalf;\nvar isArrayOrTypedArray = _dereq_('./array').isArrayOrTypedArray;\n\nexports.valObjectMeta = {\n data_array: {\n // You can use *dflt=[] to force said array to exist though.\n coerceFunction: function(v, propOut, dflt) {\n // TODO maybe `v: {type: 'float32', vals: [/* ... */]}` also\n if(isArrayOrTypedArray(v)) propOut.set(v);\n else if(dflt !== undefined) propOut.set(dflt);\n }\n },\n enumerated: {\n coerceFunction: function(v, propOut, dflt, opts) {\n if(opts.coerceNumber) v = +v;\n if(opts.values.indexOf(v) === -1) propOut.set(dflt);\n else propOut.set(v);\n },\n validateFunction: function(v, opts) {\n if(opts.coerceNumber) v = +v;\n\n var values = opts.values;\n for(var i = 0; i < values.length; i++) {\n var k = String(values[i]);\n\n if((k.charAt(0) === '/' && k.charAt(k.length - 1) === '/')) {\n var regex = new RegExp(k.substr(1, k.length - 2));\n if(regex.test(v)) return true;\n } else if(v === values[i]) return true;\n }\n return false;\n }\n },\n 'boolean': {\n coerceFunction: function(v, propOut, dflt) {\n if(v === true || v === false) propOut.set(v);\n else propOut.set(dflt);\n }\n },\n number: {\n coerceFunction: function(v, propOut, dflt, opts) {\n if(!isNumeric(v) ||\n (opts.min !== undefined && v < opts.min) ||\n (opts.max !== undefined && v > opts.max)) {\n propOut.set(dflt);\n } else propOut.set(+v);\n }\n },\n integer: {\n coerceFunction: function(v, propOut, dflt, opts) {\n if(v % 1 || !isNumeric(v) ||\n (opts.min !== undefined && v < opts.min) ||\n (opts.max !== undefined && v > opts.max)) {\n propOut.set(dflt);\n } else propOut.set(+v);\n }\n },\n string: {\n // TODO 'values shouldn't be in there (edge case: 'dash' in Scatter)\n coerceFunction: function(v, propOut, dflt, opts) {\n if(typeof v !== 'string') {\n var okToCoerce = (typeof v === 'number');\n\n if(opts.strict === true || !okToCoerce) propOut.set(dflt);\n else propOut.set(String(v));\n } else if(opts.noBlank && !v) propOut.set(dflt);\n else propOut.set(v);\n }\n },\n color: {\n coerceFunction: function(v, propOut, dflt) {\n if(tinycolor(v).isValid()) propOut.set(v);\n else propOut.set(dflt);\n }\n },\n colorlist: {\n coerceFunction: function(v, propOut, dflt) {\n function isColor(color) {\n return tinycolor(color).isValid();\n }\n if(!Array.isArray(v) || !v.length) propOut.set(dflt);\n else if(v.every(isColor)) propOut.set(v);\n else propOut.set(dflt);\n }\n },\n colorscale: {\n coerceFunction: function(v, propOut, dflt) {\n propOut.set(colorscales.get(v, dflt));\n }\n },\n angle: {\n coerceFunction: function(v, propOut, dflt) {\n if(v === 'auto') propOut.set('auto');\n else if(!isNumeric(v)) propOut.set(dflt);\n else propOut.set(modHalf(+v, 360));\n }\n },\n subplotid: {\n coerceFunction: function(v, propOut, dflt, opts) {\n var regex = opts.regex || counterRegex(dflt);\n if(typeof v === 'string' && regex.test(v)) {\n propOut.set(v);\n return;\n }\n propOut.set(dflt);\n },\n validateFunction: function(v, opts) {\n var dflt = opts.dflt;\n\n if(v === dflt) return true;\n if(typeof v !== 'string') return false;\n if(counterRegex(dflt).test(v)) return true;\n\n return false;\n }\n },\n flaglist: {\n coerceFunction: function(v, propOut, dflt, opts) {\n if(typeof v !== 'string') {\n propOut.set(dflt);\n return;\n }\n if((opts.extras || []).indexOf(v) !== -1) {\n propOut.set(v);\n return;\n }\n var vParts = v.split('+');\n var i = 0;\n while(i < vParts.length) {\n var vi = vParts[i];\n if(opts.flags.indexOf(vi) === -1 || vParts.indexOf(vi) < i) {\n vParts.splice(i, 1);\n } else i++;\n }\n if(!vParts.length) propOut.set(dflt);\n else propOut.set(vParts.join('+'));\n }\n },\n any: {\n coerceFunction: function(v, propOut, dflt) {\n if(v === undefined) propOut.set(dflt);\n else propOut.set(v);\n }\n },\n info_array: {\n // set `dimensions=2` for a 2D array or '1-2' for either\n // `items` may be a single object instead of an array, in which case\n // `freeLength` must be true.\n // if `dimensions='1-2'` and items is a 1D array, then the value can\n // either be a matching 1D array or an array of such matching 1D arrays\n coerceFunction: function(v, propOut, dflt, opts) {\n // simplified coerce function just for array items\n function coercePart(v, opts, dflt) {\n var out;\n var propPart = {set: function(v) { out = v; }};\n\n if(dflt === undefined) dflt = opts.dflt;\n\n exports.valObjectMeta[opts.valType].coerceFunction(v, propPart, dflt, opts);\n\n return out;\n }\n\n var twoD = opts.dimensions === 2 || (opts.dimensions === '1-2' && Array.isArray(v) && Array.isArray(v[0]));\n\n if(!Array.isArray(v)) {\n propOut.set(dflt);\n return;\n }\n\n var items = opts.items;\n var vOut = [];\n var arrayItems = Array.isArray(items);\n var arrayItems2D = arrayItems && twoD && Array.isArray(items[0]);\n var innerItemsOnly = twoD && arrayItems && !arrayItems2D;\n var len = (arrayItems && !innerItemsOnly) ? items.length : v.length;\n\n var i, j, row, item, len2, vNew;\n\n dflt = Array.isArray(dflt) ? dflt : [];\n\n if(twoD) {\n for(i = 0; i < len; i++) {\n vOut[i] = [];\n row = Array.isArray(v[i]) ? v[i] : [];\n if(innerItemsOnly) len2 = items.length;\n else if(arrayItems) len2 = items[i].length;\n else len2 = row.length;\n\n for(j = 0; j < len2; j++) {\n if(innerItemsOnly) item = items[j];\n else if(arrayItems) item = items[i][j];\n else item = items;\n\n vNew = coercePart(row[j], item, (dflt[i] || [])[j]);\n if(vNew !== undefined) vOut[i][j] = vNew;\n }\n }\n } else {\n for(i = 0; i < len; i++) {\n vNew = coercePart(v[i], arrayItems ? items[i] : items, dflt[i]);\n if(vNew !== undefined) vOut[i] = vNew;\n }\n }\n\n propOut.set(vOut);\n },\n validateFunction: function(v, opts) {\n if(!Array.isArray(v)) return false;\n\n var items = opts.items;\n var arrayItems = Array.isArray(items);\n var twoD = opts.dimensions === 2;\n\n // when free length is off, input and declared lengths must match\n if(!opts.freeLength && v.length !== items.length) return false;\n\n // valid when all input items are valid\n for(var i = 0; i < v.length; i++) {\n if(twoD) {\n if(!Array.isArray(v[i]) || (!opts.freeLength && v[i].length !== items[i].length)) {\n return false;\n }\n for(var j = 0; j < v[i].length; j++) {\n if(!validate(v[i][j], arrayItems ? items[i][j] : items)) {\n return false;\n }\n }\n } else if(!validate(v[i], arrayItems ? items[i] : items)) return false;\n }\n\n return true;\n }\n }\n};\n\n/**\n * Ensures that container[attribute] has a valid value.\n *\n * attributes[attribute] is an object with possible keys:\n * - valType: data_array, enumerated, boolean, ... as in valObjectMeta\n * - values: (enumerated only) array of allowed vals\n * - min, max: (number, integer only) inclusive bounds on allowed vals\n * either or both may be omitted\n * - dflt: if attribute is invalid or missing, use this default\n * if dflt is provided as an argument to lib.coerce it takes precedence\n * as a convenience, returns the value it finally set\n */\nexports.coerce = function(containerIn, containerOut, attributes, attribute, dflt) {\n var opts = nestedProperty(attributes, attribute).get();\n var propIn = nestedProperty(containerIn, attribute);\n var propOut = nestedProperty(containerOut, attribute);\n var v = propIn.get();\n\n var template = containerOut._template;\n if(v === undefined && template) {\n v = nestedProperty(template, attribute).get();\n // already used the template value, so short-circuit the second check\n template = 0;\n }\n\n if(dflt === undefined) dflt = opts.dflt;\n\n /**\n * arrayOk: value MAY be an array, then we do no value checking\n * at this point, because it can be more complicated than the\n * individual form (eg. some array vals can be numbers, even if the\n * single values must be color strings)\n */\n if(opts.arrayOk && isArrayOrTypedArray(v)) {\n propOut.set(v);\n return v;\n }\n\n var coerceFunction = exports.valObjectMeta[opts.valType].coerceFunction;\n coerceFunction(v, propOut, dflt, opts);\n\n var out = propOut.get();\n // in case v was provided but invalid, try the template again so it still\n // overrides the regular default\n if(template && out === dflt && !validate(v, opts)) {\n v = nestedProperty(template, attribute).get();\n coerceFunction(v, propOut, dflt, opts);\n out = propOut.get();\n }\n return out;\n};\n\n/**\n * Variation on coerce\n *\n * Uses coerce to get attribute value if user input is valid,\n * returns attribute default if user input it not valid or\n * returns false if there is no user input.\n */\nexports.coerce2 = function(containerIn, containerOut, attributes, attribute, dflt) {\n var propIn = nestedProperty(containerIn, attribute);\n var propOut = exports.coerce(containerIn, containerOut, attributes, attribute, dflt);\n var valIn = propIn.get();\n\n return (valIn !== undefined && valIn !== null) ? propOut : false;\n};\n\n/*\n * Shortcut to coerce the three font attributes\n *\n * 'coerce' is a lib.coerce wrapper with implied first three arguments\n */\nexports.coerceFont = function(coerce, attr, dfltObj) {\n var out = {};\n\n dfltObj = dfltObj || {};\n\n out.family = coerce(attr + '.family', dfltObj.family);\n out.size = coerce(attr + '.size', dfltObj.size);\n out.color = coerce(attr + '.color', dfltObj.color);\n\n return out;\n};\n\n/*\n * Shortcut to coerce the pattern attributes\n */\nexports.coercePattern = function(coerce, attr, markerColor, hasMarkerColorscale) {\n var shape = coerce(attr + '.shape');\n if(shape) {\n coerce(attr + '.solidity');\n coerce(attr + '.size');\n var fillmode = coerce(attr + '.fillmode');\n var isOverlay = fillmode === 'overlay';\n\n if(!hasMarkerColorscale) {\n var bgcolor = coerce(attr + '.bgcolor', isOverlay ?\n markerColor :\n undefined\n );\n\n coerce(attr + '.fgcolor', isOverlay ?\n Color.contrast(bgcolor) :\n markerColor\n );\n }\n\n coerce(attr + '.fgopacity', isOverlay ?\n 0.5 :\n 1\n );\n }\n};\n\n/** Coerce shortcut for 'hoverinfo'\n * handling 1-vs-multi-trace dflt logic\n *\n * @param {object} traceIn : user trace object\n * @param {object} traceOut : full trace object (requires _module ref)\n * @param {object} layoutOut : full layout object (require _dataLength ref)\n * @return {any} : the coerced value\n */\nexports.coerceHoverinfo = function(traceIn, traceOut, layoutOut) {\n var moduleAttrs = traceOut._module.attributes;\n var attrs = moduleAttrs.hoverinfo ? moduleAttrs : baseTraceAttrs;\n\n var valObj = attrs.hoverinfo;\n var dflt;\n\n if(layoutOut._dataLength === 1) {\n var flags = valObj.dflt === 'all' ?\n valObj.flags.slice() :\n valObj.dflt.split('+');\n\n flags.splice(flags.indexOf('name'), 1);\n dflt = flags.join('+');\n }\n\n return exports.coerce(traceIn, traceOut, attrs, 'hoverinfo', dflt);\n};\n\n/** Coerce shortcut for [un]selected.marker.opacity,\n * which has special default logic, to ensure that it corresponds to the\n * default selection behavior while allowing to be overtaken by any other\n * [un]selected attribute.\n *\n * N.B. This must be called *after* coercing all the other [un]selected attrs,\n * to give the intended result.\n *\n * @param {object} traceOut : fullData item\n * @param {function} coerce : lib.coerce wrapper with implied first three arguments\n */\nexports.coerceSelectionMarkerOpacity = function(traceOut, coerce) {\n if(!traceOut.marker) return;\n\n var mo = traceOut.marker.opacity;\n // you can still have a `marker` container with no markers if there's text\n if(mo === undefined) return;\n\n var smoDflt;\n var usmoDflt;\n\n // Don't give [un]selected.marker.opacity a default value if\n // marker.opacity is an array: handle this during style step.\n //\n // Only give [un]selected.marker.opacity a default value if you don't\n // set any other [un]selected attributes.\n if(!isArrayOrTypedArray(mo) && !traceOut.selected && !traceOut.unselected) {\n smoDflt = mo;\n usmoDflt = DESELECTDIM * mo;\n }\n\n coerce('selected.marker.opacity', smoDflt);\n coerce('unselected.marker.opacity', usmoDflt);\n};\n\nfunction validate(value, opts) {\n var valObjectDef = exports.valObjectMeta[opts.valType];\n\n if(opts.arrayOk && isArrayOrTypedArray(value)) return true;\n\n if(valObjectDef.validateFunction) {\n return valObjectDef.validateFunction(value, opts);\n }\n\n var failed = {};\n var out = failed;\n var propMock = { set: function(v) { out = v; } };\n\n // 'failed' just something mutable that won't be === anything else\n\n valObjectDef.coerceFunction(value, propMock, failed, opts);\n return out !== failed;\n}\nexports.validate = validate;\n\n},{\"../components/color\":366,\"../components/colorscale/scales\":381,\"../constants/interactions\":478,\"../plots/attributes\":550,\"./array\":485,\"./mod\":510,\"./nested_property\":511,\"./regex\":520,\"fast-isnumeric\":190,\"tinycolor2\":312}],490:[function(_dereq_,module,exports){\n'use strict';\n\nvar timeFormat = _dereq_('d3-time-format').timeFormat;\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Loggers = _dereq_('./loggers');\nvar mod = _dereq_('./mod').mod;\n\nvar constants = _dereq_('../constants/numerical');\nvar BADNUM = constants.BADNUM;\nvar ONEDAY = constants.ONEDAY;\nvar ONEHOUR = constants.ONEHOUR;\nvar ONEMIN = constants.ONEMIN;\nvar ONESEC = constants.ONESEC;\nvar EPOCHJD = constants.EPOCHJD;\n\nvar Registry = _dereq_('../registry');\n\nvar utcFormat = _dereq_('d3-time-format').utcFormat;\n\nvar DATETIME_REGEXP = /^\\s*(-?\\d\\d\\d\\d|\\d\\d)(-(\\d?\\d)(-(\\d?\\d)([ Tt]([01]?\\d|2[0-3])(:([0-5]\\d)(:([0-5]\\d(\\.\\d+)?))?(Z|z|[+\\-]\\d\\d(:?\\d\\d)?)?)?)?)?)?\\s*$/m;\n// special regex for chinese calendars to support yyyy-mmi-dd etc for intercalary months\nvar DATETIME_REGEXP_CN = /^\\s*(-?\\d\\d\\d\\d|\\d\\d)(-(\\d?\\di?)(-(\\d?\\d)([ Tt]([01]?\\d|2[0-3])(:([0-5]\\d)(:([0-5]\\d(\\.\\d+)?))?(Z|z|[+\\-]\\d\\d(:?\\d\\d)?)?)?)?)?)?\\s*$/m;\n\n// for 2-digit years, the first year we map them onto\nvar YFIRST = new Date().getFullYear() - 70;\n\nfunction isWorldCalendar(calendar) {\n return (\n calendar &&\n Registry.componentsRegistry.calendars &&\n typeof calendar === 'string' && calendar !== 'gregorian'\n );\n}\n\n/*\n * dateTick0: get the canonical tick for this calendar\n *\n * integer weekdays : Saturday: 0, Sunday: 1, Monday: 2, etc.\n */\nexports.dateTick0 = function(calendar, dayOfWeek) {\n var tick0 = _dateTick0(calendar, !!dayOfWeek);\n if(dayOfWeek < 2) return tick0;\n\n var v = exports.dateTime2ms(tick0, calendar);\n v += ONEDAY * (dayOfWeek - 1); // shift Sunday to Monday, etc.\n return exports.ms2DateTime(v, 0, calendar);\n};\n\n/*\n * _dateTick0: get the canonical tick for this calendar\n *\n * bool sunday is for week ticks, shift it to a Sunday.\n */\nfunction _dateTick0(calendar, sunday) {\n if(isWorldCalendar(calendar)) {\n return sunday ?\n Registry.getComponentMethod('calendars', 'CANONICAL_SUNDAY')[calendar] :\n Registry.getComponentMethod('calendars', 'CANONICAL_TICK')[calendar];\n } else {\n return sunday ? '2000-01-02' : '2000-01-01';\n }\n}\n\n/*\n * dfltRange: for each calendar, give a valid default range\n */\nexports.dfltRange = function(calendar) {\n if(isWorldCalendar(calendar)) {\n return Registry.getComponentMethod('calendars', 'DFLTRANGE')[calendar];\n } else {\n return ['2000-01-01', '2001-01-01'];\n }\n};\n\n// is an object a javascript date?\nexports.isJSDate = function(v) {\n return typeof v === 'object' && v !== null && typeof v.getTime === 'function';\n};\n\n// The absolute limits of our date-time system\n// This is a little weird: we use MIN_MS and MAX_MS in dateTime2ms\n// but we use dateTime2ms to calculate them (after defining it!)\nvar MIN_MS, MAX_MS;\n\n/**\n * dateTime2ms - turn a date object or string s into milliseconds\n * (relative to 1970-01-01, per javascript standard)\n * optional calendar (string) to use a non-gregorian calendar\n *\n * Returns BADNUM if it doesn't find a date\n *\n * strings should have the form:\n *\n * -?YYYY-mm-ddHH:MM:SS.sss?\n *\n * : space (our normal standard) or T or t (ISO-8601)\n * : Z, z, [+\\-]HH:?MM or [+\\-]HH and we THROW IT AWAY\n * this format comes from https://tools.ietf.org/html/rfc3339#section-5.6\n * and 4.2.5.1 Difference between local time and UTC of day (ISO-8601)\n * but we allow it even with a space as the separator\n *\n * May truncate after any full field, and sss can be any length\n * even >3 digits, though javascript dates truncate to milliseconds,\n * we keep as much as javascript numeric precision can hold, but we only\n * report back up to 100 microsecond precision, because most dates support\n * this precision (close to 1970 support more, very far away support less)\n *\n * Expanded to support negative years to -9999 but you must always\n * give 4 digits, except for 2-digit positive years which we assume are\n * near the present time.\n * Note that we follow ISO 8601:2004: there *is* a year 0, which\n * is 1BC/BCE, and -1===2BC etc.\n *\n * World calendars: not all of these *have* agreed extensions to this full range,\n * if you have another calendar system but want a date range outside its validity,\n * you can use a gregorian date string prefixed with 'G' or 'g'.\n *\n * Where to cut off 2-digit years between 1900s and 2000s?\n * from https://docs.microsoft.com/en-us/office/troubleshoot/excel/two-digit-year-numbers#the-2029-rule:\n * 1930-2029 (the most retro of all...)\n * but in my mac chrome from eg. d=new Date(Date.parse('8/19/50')):\n * 1950-2049\n * by Java, from http://stackoverflow.com/questions/2024273/:\n * now-80 - now+19\n * or FileMaker Pro, from\n * https://fmhelp.filemaker.com/help/18/fmp/en/index.html#page/FMP_Help/dates-with-two-digit-years.html:\n * now-70 - now+29\n * but python strptime etc, via\n * http://docs.python.org/py3k/library/time.html:\n * 1969-2068 (super forward-looking, but static, not sliding!)\n *\n * lets go with now-70 to now+29, and if anyone runs into this problem\n * they can learn the hard way not to use 2-digit years, as no choice we\n * make now will cover all possibilities. mostly this will all be taken\n * care of in initial parsing, should only be an issue for hand-entered data\n * currently (2016) this range is:\n * 1946-2045\n */\nexports.dateTime2ms = function(s, calendar) {\n // first check if s is a date object\n if(exports.isJSDate(s)) {\n // Convert to the UTC milliseconds that give the same\n // hours as this date has in the local timezone\n var tzOffset = s.getTimezoneOffset() * ONEMIN;\n var offsetTweak = (s.getUTCMinutes() - s.getMinutes()) * ONEMIN +\n (s.getUTCSeconds() - s.getSeconds()) * ONESEC +\n (s.getUTCMilliseconds() - s.getMilliseconds());\n\n if(offsetTweak) {\n var comb = 3 * ONEMIN;\n tzOffset = tzOffset - comb / 2 + mod(offsetTweak - tzOffset + comb / 2, comb);\n }\n s = Number(s) - tzOffset;\n if(s >= MIN_MS && s <= MAX_MS) return s;\n return BADNUM;\n }\n // otherwise only accept strings and numbers\n if(typeof s !== 'string' && typeof s !== 'number') return BADNUM;\n\n s = String(s);\n\n var isWorld = isWorldCalendar(calendar);\n\n // to handle out-of-range dates in international calendars, accept\n // 'G' as a prefix to force the built-in gregorian calendar.\n var s0 = s.charAt(0);\n if(isWorld && (s0 === 'G' || s0 === 'g')) {\n s = s.substr(1);\n calendar = '';\n }\n\n var isChinese = isWorld && calendar.substr(0, 7) === 'chinese';\n\n var match = s.match(isChinese ? DATETIME_REGEXP_CN : DATETIME_REGEXP);\n if(!match) return BADNUM;\n var y = match[1];\n var m = match[3] || '1';\n var d = Number(match[5] || 1);\n var H = Number(match[7] || 0);\n var M = Number(match[9] || 0);\n var S = Number(match[11] || 0);\n\n if(isWorld) {\n // disallow 2-digit years for world calendars\n if(y.length === 2) return BADNUM;\n y = Number(y);\n\n var cDate;\n try {\n var calInstance = Registry.getComponentMethod('calendars', 'getCal')(calendar);\n if(isChinese) {\n var isIntercalary = m.charAt(m.length - 1) === 'i';\n m = parseInt(m, 10);\n cDate = calInstance.newDate(y, calInstance.toMonthIndex(y, m, isIntercalary), d);\n } else {\n cDate = calInstance.newDate(y, Number(m), d);\n }\n } catch(e) { return BADNUM; } // Invalid ... date\n\n if(!cDate) return BADNUM;\n\n return ((cDate.toJD() - EPOCHJD) * ONEDAY) +\n (H * ONEHOUR) + (M * ONEMIN) + (S * ONESEC);\n }\n\n if(y.length === 2) {\n y = (Number(y) + 2000 - YFIRST) % 100 + YFIRST;\n } else y = Number(y);\n\n // new Date uses months from 0; subtract 1 here just so we\n // don't have to do it again during the validity test below\n m -= 1;\n\n // javascript takes new Date(0..99,m,d) to mean 1900-1999, so\n // to support years 0-99 we need to use setFullYear explicitly\n // Note that 2000 is a leap year.\n var date = new Date(Date.UTC(2000, m, d, H, M));\n date.setUTCFullYear(y);\n\n if(date.getUTCMonth() !== m) return BADNUM;\n if(date.getUTCDate() !== d) return BADNUM;\n\n return date.getTime() + S * ONESEC;\n};\n\nMIN_MS = exports.MIN_MS = exports.dateTime2ms('-9999');\nMAX_MS = exports.MAX_MS = exports.dateTime2ms('9999-12-31 23:59:59.9999');\n\n// is string s a date? (see above)\nexports.isDateTime = function(s, calendar) {\n return (exports.dateTime2ms(s, calendar) !== BADNUM);\n};\n\n// pad a number with zeroes, to given # of digits before the decimal point\nfunction lpad(val, digits) {\n return String(val + Math.pow(10, digits)).substr(1);\n}\n\n/**\n * Turn ms into string of the form YYYY-mm-dd HH:MM:SS.ssss\n * Crop any trailing zeros in time, except never stop right after hours\n * (we could choose to crop '-01' from date too but for now we always\n * show the whole date)\n * Optional range r is the data range that applies, also in ms.\n * If rng is big, the later parts of time will be omitted\n */\nvar NINETYDAYS = 90 * ONEDAY;\nvar THREEHOURS = 3 * ONEHOUR;\nvar FIVEMIN = 5 * ONEMIN;\nexports.ms2DateTime = function(ms, r, calendar) {\n if(typeof ms !== 'number' || !(ms >= MIN_MS && ms <= MAX_MS)) return BADNUM;\n\n if(!r) r = 0;\n\n var msecTenths = Math.floor(mod(ms + 0.05, 1) * 10);\n var msRounded = Math.round(ms - msecTenths / 10);\n var dateStr, h, m, s, msec10, d;\n\n if(isWorldCalendar(calendar)) {\n var dateJD = Math.floor(msRounded / ONEDAY) + EPOCHJD;\n var timeMs = Math.floor(mod(ms, ONEDAY));\n try {\n dateStr = Registry.getComponentMethod('calendars', 'getCal')(calendar)\n .fromJD(dateJD).formatDate('yyyy-mm-dd');\n } catch(e) {\n // invalid date in this calendar - fall back to Gyyyy-mm-dd\n dateStr = utcFormat('G%Y-%m-%d')(new Date(msRounded));\n }\n\n // yyyy does NOT guarantee 4-digit years. YYYY mostly does, but does\n // other things for a few calendars, so we can't trust it. Just pad\n // it manually (after the '-' if there is one)\n if(dateStr.charAt(0) === '-') {\n while(dateStr.length < 11) dateStr = '-0' + dateStr.substr(1);\n } else {\n while(dateStr.length < 10) dateStr = '0' + dateStr;\n }\n\n // TODO: if this is faster, we could use this block for extracting\n // the time components of regular gregorian too\n h = (r < NINETYDAYS) ? Math.floor(timeMs / ONEHOUR) : 0;\n m = (r < NINETYDAYS) ? Math.floor((timeMs % ONEHOUR) / ONEMIN) : 0;\n s = (r < THREEHOURS) ? Math.floor((timeMs % ONEMIN) / ONESEC) : 0;\n msec10 = (r < FIVEMIN) ? (timeMs % ONESEC) * 10 + msecTenths : 0;\n } else {\n d = new Date(msRounded);\n\n dateStr = utcFormat('%Y-%m-%d')(d);\n\n // <90 days: add hours and minutes - never *only* add hours\n h = (r < NINETYDAYS) ? d.getUTCHours() : 0;\n m = (r < NINETYDAYS) ? d.getUTCMinutes() : 0;\n // <3 hours: add seconds\n s = (r < THREEHOURS) ? d.getUTCSeconds() : 0;\n // <5 minutes: add ms (plus one extra digit, this is msec*10)\n msec10 = (r < FIVEMIN) ? d.getUTCMilliseconds() * 10 + msecTenths : 0;\n }\n\n return includeTime(dateStr, h, m, s, msec10);\n};\n\n// For converting old-style milliseconds to date strings,\n// we use the local timezone rather than UTC like we use\n// everywhere else, both for backward compatibility and\n// because that's how people mostly use javasript date objects.\n// Clip one extra day off our date range though so we can't get\n// thrown beyond the range by the timezone shift.\nexports.ms2DateTimeLocal = function(ms) {\n if(!(ms >= MIN_MS + ONEDAY && ms <= MAX_MS - ONEDAY)) return BADNUM;\n\n var msecTenths = Math.floor(mod(ms + 0.05, 1) * 10);\n var d = new Date(Math.round(ms - msecTenths / 10));\n var dateStr = timeFormat('%Y-%m-%d')(d);\n var h = d.getHours();\n var m = d.getMinutes();\n var s = d.getSeconds();\n var msec10 = d.getUTCMilliseconds() * 10 + msecTenths;\n\n return includeTime(dateStr, h, m, s, msec10);\n};\n\nfunction includeTime(dateStr, h, m, s, msec10) {\n // include each part that has nonzero data in or after it\n if(h || m || s || msec10) {\n dateStr += ' ' + lpad(h, 2) + ':' + lpad(m, 2);\n if(s || msec10) {\n dateStr += ':' + lpad(s, 2);\n if(msec10) {\n var digits = 4;\n while(msec10 % 10 === 0) {\n digits -= 1;\n msec10 /= 10;\n }\n dateStr += '.' + lpad(msec10, digits);\n }\n }\n }\n return dateStr;\n}\n\n// normalize date format to date string, in case it starts as\n// a Date object or milliseconds\n// optional dflt is the return value if cleaning fails\nexports.cleanDate = function(v, dflt, calendar) {\n // let us use cleanDate to provide a missing default without an error\n if(v === BADNUM) return dflt;\n if(exports.isJSDate(v) || (typeof v === 'number' && isFinite(v))) {\n // do not allow milliseconds (old) or jsdate objects (inherently\n // described as gregorian dates) with world calendars\n if(isWorldCalendar(calendar)) {\n Loggers.error('JS Dates and milliseconds are incompatible with world calendars', v);\n return dflt;\n }\n\n // NOTE: if someone puts in a year as a number rather than a string,\n // this will mistakenly convert it thinking it's milliseconds from 1970\n // that is: '2012' -> Jan. 1, 2012, but 2012 -> 2012 epoch milliseconds\n v = exports.ms2DateTimeLocal(+v);\n if(!v && dflt !== undefined) return dflt;\n } else if(!exports.isDateTime(v, calendar)) {\n Loggers.error('unrecognized date', v);\n return dflt;\n }\n return v;\n};\n\n/*\n * Date formatting for ticks and hovertext\n */\n\n/*\n * modDateFormat: Support world calendars, and add two items to\n * d3's vocabulary:\n * %{n}f where n is the max number of digits of fractional seconds\n * %h formats: half of the year as a decimal number [1,2]\n */\nvar fracMatch = /%\\d?f/g;\nvar halfYearMatch = /%h/g;\nvar quarterToHalfYear = {\n '1': '1',\n '2': '1',\n '3': '2',\n '4': '2',\n};\nfunction modDateFormat(fmt, x, formatter, calendar) {\n fmt = fmt.replace(fracMatch, function(match) {\n var digits = Math.min(+(match.charAt(1)) || 6, 6);\n var fracSecs = ((x / 1000 % 1) + 2)\n .toFixed(digits)\n .substr(2).replace(/0+$/, '') || '0';\n return fracSecs;\n });\n\n var d = new Date(Math.floor(x + 0.05));\n\n fmt = fmt.replace(halfYearMatch, function() {\n return quarterToHalfYear[formatter('%q')(d)];\n });\n\n if(isWorldCalendar(calendar)) {\n try {\n fmt = Registry.getComponentMethod('calendars', 'worldCalFmt')(fmt, x, calendar);\n } catch(e) {\n return 'Invalid';\n }\n }\n return formatter(fmt)(d);\n}\n\n/*\n * formatTime: create a time string from:\n * x: milliseconds\n * tr: tickround ('M', 'S', or # digits)\n * only supports UTC times (where every day is 24 hours and 0 is at midnight)\n */\nvar MAXSECONDS = [59, 59.9, 59.99, 59.999, 59.9999];\nfunction formatTime(x, tr) {\n var timePart = mod(x + 0.05, ONEDAY);\n\n var timeStr = lpad(Math.floor(timePart / ONEHOUR), 2) + ':' +\n lpad(mod(Math.floor(timePart / ONEMIN), 60), 2);\n\n if(tr !== 'M') {\n if(!isNumeric(tr)) tr = 0; // should only be 'S'\n\n /*\n * this is a weird one - and shouldn't come up unless people\n * monkey with tick0 in weird ways, but we need to do something!\n * IN PARTICULAR we had better not display garbage (see below)\n * for numbers we always round to the nearest increment of the\n * precision we're showing, and this seems like the right way to\n * handle seconds and milliseconds, as they have a decimal point\n * and people will interpret that to mean rounding like numbers.\n * but for larger increments we floor the value: it's always\n * 2013 until the ball drops on the new year. We could argue about\n * which field it is where we start rounding (should 12:08:59\n * round to 12:09 if we're stopping at minutes?) but for now I'll\n * say we round seconds but floor everything else. BUT that means\n * we need to never round up to 60 seconds, ie 23:59:60\n */\n var sec = Math.min(mod(x / ONESEC, 60), MAXSECONDS[tr]);\n\n var secStr = (100 + sec).toFixed(tr).substr(1);\n if(tr > 0) {\n secStr = secStr.replace(/0+$/, '').replace(/[\\.]$/, '');\n }\n\n timeStr += ':' + secStr;\n }\n return timeStr;\n}\n\n/*\n * formatDate: turn a date into tick or hover label text.\n *\n * x: milliseconds, the value to convert\n * fmt: optional, an explicit format string (d3 format, even for world calendars)\n * tr: tickround ('y', 'm', 'd', 'M', 'S', or # digits)\n * used if no explicit fmt is provided\n * formatter: locale-aware d3 date formatter for standard gregorian calendars\n * should be the result of exports.getD3DateFormat(gd)\n * calendar: optional string, the world calendar system to use\n *\n * returns the date/time as a string, potentially with the leading portion\n * on a separate line (after '\\n')\n * Note that this means if you provide an explicit format which includes '\\n'\n * the axis may choose to strip things after it when they don't change from\n * one tick to the next (as it does with automatic formatting)\n */\nexports.formatDate = function(x, fmt, tr, formatter, calendar, extraFormat) {\n calendar = isWorldCalendar(calendar) && calendar;\n\n if(!fmt) {\n if(tr === 'y') fmt = extraFormat.year;\n else if(tr === 'm') fmt = extraFormat.month;\n else if(tr === 'd') {\n fmt = extraFormat.dayMonth + '\\n' + extraFormat.year;\n } else {\n return formatTime(x, tr) + '\\n' + modDateFormat(extraFormat.dayMonthYear, x, formatter, calendar);\n }\n }\n\n return modDateFormat(fmt, x, formatter, calendar);\n};\n\n/*\n * incrementMonth: make a new milliseconds value from the given one,\n * having changed the month\n *\n * special case for world calendars: multiples of 12 are treated as years,\n * even for calendar systems that don't have (always or ever) 12 months/year\n * TODO: perhaps we need a different code for year increments to support this?\n *\n * ms (number): the initial millisecond value\n * dMonth (int): the (signed) number of months to shift\n * calendar (string): the calendar system to use\n *\n * changing month does not (and CANNOT) always preserve day, since\n * months have different lengths. The worst example of this is:\n * d = new Date(1970,0,31); d.setMonth(1) -> Feb 31 turns into Mar 3\n *\n * But we want to be able to iterate over the last day of each month,\n * regardless of what its number is.\n * So shift 3 days forward, THEN set the new month, then unshift:\n * 1/31 -> 2/28 (or 29) -> 3/31 -> 4/30 -> ...\n *\n * Note that odd behavior still exists if you start from the 26th-28th:\n * 1/28 -> 2/28 -> 3/31\n * but at least you can't shift any dates into the wrong month,\n * and ticks on these days incrementing by month would be very unusual\n */\nvar THREEDAYS = 3 * ONEDAY;\nexports.incrementMonth = function(ms, dMonth, calendar) {\n calendar = isWorldCalendar(calendar) && calendar;\n\n // pull time out and operate on pure dates, then add time back at the end\n // this gives maximum precision - not that we *normally* care if we're\n // incrementing by month, but better to be safe!\n var timeMs = mod(ms, ONEDAY);\n ms = Math.round(ms - timeMs);\n\n if(calendar) {\n try {\n var dateJD = Math.round(ms / ONEDAY) + EPOCHJD;\n var calInstance = Registry.getComponentMethod('calendars', 'getCal')(calendar);\n var cDate = calInstance.fromJD(dateJD);\n\n if(dMonth % 12) calInstance.add(cDate, dMonth, 'm');\n else calInstance.add(cDate, dMonth / 12, 'y');\n\n return (cDate.toJD() - EPOCHJD) * ONEDAY + timeMs;\n } catch(e) {\n Loggers.error('invalid ms ' + ms + ' in calendar ' + calendar);\n // then keep going in gregorian even though the result will be 'Invalid'\n }\n }\n\n var y = new Date(ms + THREEDAYS);\n return y.setUTCMonth(y.getUTCMonth() + dMonth) + timeMs - THREEDAYS;\n};\n\n/*\n * findExactDates: what fraction of data is exact days, months, or years?\n *\n * data: array of millisecond values\n * calendar (string) the calendar to test against\n */\nexports.findExactDates = function(data, calendar) {\n var exactYears = 0;\n var exactMonths = 0;\n var exactDays = 0;\n var blankCount = 0;\n var d;\n var di;\n\n var calInstance = (\n isWorldCalendar(calendar) &&\n Registry.getComponentMethod('calendars', 'getCal')(calendar)\n );\n\n for(var i = 0; i < data.length; i++) {\n di = data[i];\n\n // not date data at all\n if(!isNumeric(di)) {\n blankCount ++;\n continue;\n }\n\n // not an exact date\n if(di % ONEDAY) continue;\n\n if(calInstance) {\n try {\n d = calInstance.fromJD(di / ONEDAY + EPOCHJD);\n if(d.day() === 1) {\n if(d.month() === 1) exactYears++;\n else exactMonths++;\n } else exactDays++;\n } catch(e) {\n // invalid date in this calendar - ignore it here.\n }\n } else {\n d = new Date(di);\n if(d.getUTCDate() === 1) {\n if(d.getUTCMonth() === 0) exactYears++;\n else exactMonths++;\n } else exactDays++;\n }\n }\n exactMonths += exactYears;\n exactDays += exactMonths;\n\n var dataCount = data.length - blankCount;\n\n return {\n exactYears: exactYears / dataCount,\n exactMonths: exactMonths / dataCount,\n exactDays: exactDays / dataCount\n };\n};\n\n},{\"../constants/numerical\":479,\"../registry\":638,\"./loggers\":507,\"./mod\":510,\"d3-time-format\":120,\"fast-isnumeric\":190}],491:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar loggers = _dereq_('./loggers');\nvar matrix = _dereq_('./matrix');\nvar mat4X4 = _dereq_('gl-mat4');\n\n/**\n * Allow referencing a graph DOM element either directly\n * or by its id string\n *\n * @param {HTMLDivElement|string} gd: a graph element or its id\n *\n * @returns {HTMLDivElement} the DOM element of the graph\n */\nfunction getGraphDiv(gd) {\n var gdElement;\n\n if(typeof gd === 'string') {\n gdElement = document.getElementById(gd);\n\n if(gdElement === null) {\n throw new Error('No DOM element with id \\'' + gd + '\\' exists on the page.');\n }\n\n return gdElement;\n } else if(gd === null || gd === undefined) {\n throw new Error('DOM element provided is null or undefined');\n }\n\n // otherwise assume that gd is a DOM element\n return gd;\n}\n\nfunction isPlotDiv(el) {\n var el3 = d3.select(el);\n return el3.node() instanceof HTMLElement &&\n el3.size() &&\n el3.classed('js-plotly-plot');\n}\n\nfunction removeElement(el) {\n var elParent = el && el.parentNode;\n if(elParent) elParent.removeChild(el);\n}\n\n/**\n * for dynamically adding style rules\n * makes one stylesheet that contains all rules added\n * by all calls to this function\n */\nfunction addStyleRule(selector, styleString) {\n addRelatedStyleRule('global', selector, styleString);\n}\n\n/**\n * for dynamically adding style rules\n * to a stylesheet uniquely identified by a uid\n */\nfunction addRelatedStyleRule(uid, selector, styleString) {\n var id = 'plotly.js-style-' + uid;\n var style = document.getElementById(id);\n if(!style) {\n style = document.createElement('style');\n style.setAttribute('id', id);\n // WebKit hack :(\n style.appendChild(document.createTextNode(''));\n document.head.appendChild(style);\n }\n var styleSheet = style.sheet;\n\n if(styleSheet.insertRule) {\n styleSheet.insertRule(selector + '{' + styleString + '}', 0);\n } else if(styleSheet.addRule) {\n styleSheet.addRule(selector, styleString, 0);\n } else loggers.warn('addStyleRule failed');\n}\n\n/**\n * to remove from the page a stylesheet identified by a given uid\n */\nfunction deleteRelatedStyleRule(uid) {\n var id = 'plotly.js-style-' + uid;\n var style = document.getElementById(id);\n if(style) removeElement(style);\n}\n\nfunction getFullTransformMatrix(element) {\n var allElements = getElementAndAncestors(element);\n // the identity matrix\n var out = [\n 1, 0, 0, 0,\n 0, 1, 0, 0,\n 0, 0, 1, 0,\n 0, 0, 0, 1\n ];\n allElements.forEach(function(e) {\n var t = getElementTransformMatrix(e);\n if(t) {\n var m = matrix.convertCssMatrix(t);\n out = mat4X4.multiply(out, out, m);\n }\n });\n return out;\n}\n\n/**\n * extracts and parses the 2d css style transform matrix from some element\n */\nfunction getElementTransformMatrix(element) {\n var style = window.getComputedStyle(element, null);\n var transform = (\n style.getPropertyValue('-webkit-transform') ||\n style.getPropertyValue('-moz-transform') ||\n style.getPropertyValue('-ms-transform') ||\n style.getPropertyValue('-o-transform') ||\n style.getPropertyValue('transform')\n );\n\n if(transform === 'none') return null;\n // the transform is a string in the form of matrix(a, b, ...) or matrix3d(...)\n return transform\n .replace('matrix', '')\n .replace('3d', '')\n .slice(1, -1)\n .split(',')\n .map(function(n) { return +n; });\n}\n/**\n * retrieve all DOM elements that are ancestors of the specified one (including itself)\n */\nfunction getElementAndAncestors(element) {\n var allElements = [];\n while(isTransformableElement(element)) {\n allElements.push(element);\n element = element.parentNode;\n }\n return allElements;\n}\n\nfunction isTransformableElement(element) {\n return element && (element instanceof Element || element instanceof HTMLElement);\n}\n\nfunction equalDomRects(a, b) {\n return (\n a && b &&\n a.x === b.x &&\n a.y === b.y &&\n a.top === b.top &&\n a.left === b.left &&\n a.right === b.right &&\n a.bottom === b.bottom\n );\n}\n\nmodule.exports = {\n getGraphDiv: getGraphDiv,\n isPlotDiv: isPlotDiv,\n removeElement: removeElement,\n addStyleRule: addStyleRule,\n addRelatedStyleRule: addRelatedStyleRule,\n deleteRelatedStyleRule: deleteRelatedStyleRule,\n getFullTransformMatrix: getFullTransformMatrix,\n getElementTransformMatrix: getElementTransformMatrix,\n getElementAndAncestors: getElementAndAncestors,\n equalDomRects: equalDomRects\n};\n\n},{\"./loggers\":507,\"./matrix\":509,\"@plotly/d3\":58,\"gl-mat4\":210}],492:[function(_dereq_,module,exports){\n'use strict';\n\n/* global jQuery:false */\n\nvar EventEmitter = _dereq_('events').EventEmitter;\n\nvar Events = {\n\n init: function(plotObj) {\n /*\n * If we have already instantiated an emitter for this plot\n * return early.\n */\n if(plotObj._ev instanceof EventEmitter) return plotObj;\n\n var ev = new EventEmitter();\n var internalEv = new EventEmitter();\n\n /*\n * Assign to plot._ev while we still live in a land\n * where plot is a DOM element with stuff attached to it.\n * In the future we can make plot the event emitter itself.\n */\n plotObj._ev = ev;\n\n /*\n * Create a second event handler that will manage events *internally*.\n * This allows parts of plotly to respond to thing like relayout without\n * having to use the user-facing event handler. They cannot peacefully\n * coexist on the same handler because a user invoking\n * plotObj.removeAllListeners() would detach internal events, breaking\n * plotly.\n */\n plotObj._internalEv = internalEv;\n\n /*\n * Assign bound methods from the ev to the plot object. These methods\n * will reference the 'this' of plot._ev even though they are methods\n * of plot. This will keep the event machinery away from the plot object\n * which currently is often a DOM element but presents an API that will\n * continue to function when plot becomes an emitter. Not all EventEmitter\n * methods have been bound to `plot` as some do not currently add value to\n * the Plotly event API.\n */\n plotObj.on = ev.on.bind(ev);\n plotObj.once = ev.once.bind(ev);\n plotObj.removeListener = ev.removeListener.bind(ev);\n plotObj.removeAllListeners = ev.removeAllListeners.bind(ev);\n\n /*\n * Create functions for managing internal events. These are *only* triggered\n * by the mirroring of external events via the emit function.\n */\n plotObj._internalOn = internalEv.on.bind(internalEv);\n plotObj._internalOnce = internalEv.once.bind(internalEv);\n plotObj._removeInternalListener = internalEv.removeListener.bind(internalEv);\n plotObj._removeAllInternalListeners = internalEv.removeAllListeners.bind(internalEv);\n\n /*\n * We must wrap emit to continue to support JQuery events. The idea\n * is to check to see if the user is using JQuery events, if they are\n * we emit JQuery events to trigger user handlers as well as the EventEmitter\n * events.\n */\n plotObj.emit = function(event, data) {\n if(typeof jQuery !== 'undefined') {\n jQuery(plotObj).trigger(event, data);\n }\n\n ev.emit(event, data);\n internalEv.emit(event, data);\n };\n\n return plotObj;\n },\n\n /*\n * This function behaves like jQuery's triggerHandler. It calls\n * all handlers for a particular event and returns the return value\n * of the LAST handler. This function also triggers jQuery's\n * triggerHandler for backwards compatibility.\n */\n triggerHandler: function(plotObj, event, data) {\n var jQueryHandlerValue;\n var nodeEventHandlerValue;\n\n /*\n * If jQuery exists run all its handlers for this event and\n * collect the return value of the LAST handler function\n */\n if(typeof jQuery !== 'undefined') {\n jQueryHandlerValue = jQuery(plotObj).triggerHandler(event, data);\n }\n\n /*\n * Now run all the node style event handlers\n */\n var ev = plotObj._ev;\n if(!ev) return jQueryHandlerValue;\n\n var handlers = ev._events[event];\n if(!handlers) return jQueryHandlerValue;\n\n // making sure 'this' is the EventEmitter instance\n function apply(handler) {\n // The 'once' case, we can't just call handler() as we need\n // the return value here. So,\n // - remove handler\n // - call listener and grab return value!\n // - stash 'fired' key to not call handler twice\n if(handler.listener) {\n ev.removeListener(event, handler.listener);\n if(!handler.fired) {\n handler.fired = true;\n return handler.listener.apply(ev, [data]);\n }\n } else {\n return handler.apply(ev, [data]);\n }\n }\n\n // handlers can be function or an array of functions\n handlers = Array.isArray(handlers) ? handlers : [handlers];\n\n var i;\n for(i = 0; i < handlers.length - 1; i++) {\n apply(handlers[i]);\n }\n // now call the final handler and collect its value\n nodeEventHandlerValue = apply(handlers[i]);\n\n /*\n * Return either the jQuery handler value if it exists or the\n * nodeEventHandler value. jQuery event value supersedes nodejs\n * events for backwards compatibility reasons.\n */\n return jQueryHandlerValue !== undefined ?\n jQueryHandlerValue :\n nodeEventHandlerValue;\n },\n\n purge: function(plotObj) {\n delete plotObj._ev;\n delete plotObj.on;\n delete plotObj.once;\n delete plotObj.removeListener;\n delete plotObj.removeAllListeners;\n delete plotObj.emit;\n\n delete plotObj._ev;\n delete plotObj._internalEv;\n delete plotObj._internalOn;\n delete plotObj._internalOnce;\n delete plotObj._removeInternalListener;\n delete plotObj._removeAllInternalListeners;\n\n return plotObj;\n }\n\n};\n\nmodule.exports = Events;\n\n},{\"events\":84}],493:[function(_dereq_,module,exports){\n'use strict';\n\nvar isPlainObject = _dereq_('./is_plain_object.js');\nvar isArray = Array.isArray;\n\nfunction primitivesLoopSplice(source, target) {\n var i, value;\n for(i = 0; i < source.length; i++) {\n value = source[i];\n if(value !== null && typeof(value) === 'object') {\n return false;\n }\n if(value !== void(0)) {\n target[i] = value;\n }\n }\n return true;\n}\n\nexports.extendFlat = function() {\n return _extend(arguments, false, false, false);\n};\n\nexports.extendDeep = function() {\n return _extend(arguments, true, false, false);\n};\n\nexports.extendDeepAll = function() {\n return _extend(arguments, true, true, false);\n};\n\nexports.extendDeepNoArrays = function() {\n return _extend(arguments, true, false, true);\n};\n\n/*\n * Inspired by https://github.com/justmoon/node-extend/blob/master/index.js\n * All credit to the jQuery authors for perfecting this amazing utility.\n *\n * API difference with jQuery version:\n * - No optional boolean (true -> deep extend) first argument,\n * use `extendFlat` for first-level only extend and\n * use `extendDeep` for a deep extend.\n *\n * Other differences with jQuery version:\n * - Uses a modern (and faster) isPlainObject routine.\n * - Expected to work with object {} and array [] arguments only.\n * - Does not check for circular structure.\n * FYI: jQuery only does a check across one level.\n * Warning: this might result in infinite loops.\n *\n */\nfunction _extend(inputs, isDeep, keepAllKeys, noArrayCopies) {\n var target = inputs[0];\n var length = inputs.length;\n\n var input, key, src, copy, copyIsArray, clone, allPrimitives;\n\n // TODO does this do the right thing for typed arrays?\n\n if(length === 2 && isArray(target) && isArray(inputs[1]) && target.length === 0) {\n allPrimitives = primitivesLoopSplice(inputs[1], target);\n\n if(allPrimitives) {\n return target;\n } else {\n target.splice(0, target.length); // reset target and continue to next block\n }\n }\n\n for(var i = 1; i < length; i++) {\n input = inputs[i];\n\n for(key in input) {\n src = target[key];\n copy = input[key];\n\n if(noArrayCopies && isArray(copy)) {\n // Stop early and just transfer the array if array copies are disallowed:\n\n target[key] = copy;\n } else if(isDeep && copy && (isPlainObject(copy) || (copyIsArray = isArray(copy)))) {\n // recurse if we're merging plain objects or arrays\n\n if(copyIsArray) {\n copyIsArray = false;\n clone = src && isArray(src) ? src : [];\n } else {\n clone = src && isPlainObject(src) ? src : {};\n }\n\n // never move original objects, clone them\n target[key] = _extend([clone, copy], isDeep, keepAllKeys, noArrayCopies);\n } else if(typeof copy !== 'undefined' || keepAllKeys) {\n // don't bring in undefined values, except for extendDeepAll\n\n target[key] = copy;\n }\n }\n }\n\n return target;\n}\n\n},{\"./is_plain_object.js\":504}],494:[function(_dereq_,module,exports){\n'use strict';\n\n\n/**\n * Return news array containing only the unique items\n * found in input array.\n *\n * IMPORTANT: Note that items are considered unique\n * if `String({})` is unique. For example;\n *\n * Lib.filterUnique([ { a: 1 }, { b: 2 } ])\n *\n * returns [{ a: 1 }]\n *\n * and\n *\n * Lib.filterUnique([ '1', 1 ])\n *\n * returns ['1']\n *\n *\n * @param {array} array base array\n * @return {array} new filtered array\n */\nmodule.exports = function filterUnique(array) {\n var seen = {};\n var out = [];\n var j = 0;\n\n for(var i = 0; i < array.length; i++) {\n var item = array[i];\n\n if(seen[item] !== 1) {\n seen[item] = 1;\n out[j++] = item;\n }\n }\n\n return out;\n};\n\n},{}],495:[function(_dereq_,module,exports){\n'use strict';\n\n/** Filter out object items with visible !== true\n * insider array container.\n *\n * @param {array of objects} container\n * @return {array of objects} of length <= container\n *\n */\nmodule.exports = function filterVisible(container) {\n var filterFn = isCalcData(container) ? calcDataFilter : baseFilter;\n var out = [];\n\n for(var i = 0; i < container.length; i++) {\n var item = container[i];\n if(filterFn(item)) out.push(item);\n }\n\n return out;\n};\n\nfunction baseFilter(item) {\n return item.visible === true;\n}\n\nfunction calcDataFilter(item) {\n var trace = item[0].trace;\n return trace.visible === true && trace._length !== 0;\n}\n\nfunction isCalcData(cont) {\n return (\n Array.isArray(cont) &&\n Array.isArray(cont[0]) &&\n cont[0][0] &&\n cont[0][0].trace\n );\n}\n\n},{}],496:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar countryRegex = _dereq_('country-regex');\nvar turfArea = _dereq_('@turf/area');\nvar turfCentroid = _dereq_('@turf/centroid');\nvar turfBbox = _dereq_('@turf/bbox');\n\nvar identity = _dereq_('./identity');\nvar loggers = _dereq_('./loggers');\nvar isPlainObject = _dereq_('./is_plain_object');\nvar nestedProperty = _dereq_('./nested_property');\nvar polygon = _dereq_('./polygon');\n\n// make list of all country iso3 ids from at runtime\nvar countryIds = Object.keys(countryRegex);\n\nvar locationmodeToIdFinder = {\n 'ISO-3': identity,\n 'USA-states': identity,\n 'country names': countryNameToISO3\n};\n\nfunction countryNameToISO3(countryName) {\n for(var i = 0; i < countryIds.length; i++) {\n var iso3 = countryIds[i];\n var regex = new RegExp(countryRegex[iso3]);\n\n if(regex.test(countryName.trim().toLowerCase())) return iso3;\n }\n\n loggers.log('Unrecognized country name: ' + countryName + '.');\n\n return false;\n}\n\nfunction locationToFeature(locationmode, location, features) {\n if(!location || typeof location !== 'string') return false;\n\n var locationId = locationmodeToIdFinder[locationmode](location);\n var filteredFeatures;\n var f, i;\n\n if(locationId) {\n if(locationmode === 'USA-states') {\n // Filter out features out in USA\n //\n // This is important as the Natural Earth files\n // include state/provinces from USA, Canada, Australia and Brazil\n // which have some overlay in their two-letter ids. For example,\n // 'WA' is used for both Washington state and Western Australia.\n filteredFeatures = [];\n for(i = 0; i < features.length; i++) {\n f = features[i];\n if(f.properties && f.properties.gu && f.properties.gu === 'USA') {\n filteredFeatures.push(f);\n }\n }\n } else {\n filteredFeatures = features;\n }\n\n for(i = 0; i < filteredFeatures.length; i++) {\n f = filteredFeatures[i];\n if(f.id === locationId) return f;\n }\n\n loggers.log([\n 'Location with id', locationId,\n 'does not have a matching topojson feature at this resolution.'\n ].join(' '));\n }\n\n return false;\n}\n\nfunction feature2polygons(feature) {\n var geometry = feature.geometry;\n var coords = geometry.coordinates;\n var loc = feature.id;\n\n var polygons = [];\n var appendPolygon, j, k, m;\n\n function doesCrossAntiMerdian(pts) {\n for(var l = 0; l < pts.length - 1; l++) {\n if(pts[l][0] > 0 && pts[l + 1][0] < 0) return l;\n }\n return null;\n }\n\n if(loc === 'RUS' || loc === 'FJI') {\n // Russia and Fiji have landmasses that cross the antimeridian,\n // we need to add +360 to their longitude coordinates, so that\n // polygon 'contains' doesn't get confused when crossing the antimeridian.\n //\n // Note that other countries have polygons on either side of the antimeridian\n // (e.g. some Aleutian island for the USA), but those don't confuse\n // the 'contains' method; these are skipped here.\n appendPolygon = function(_pts) {\n var pts;\n\n if(doesCrossAntiMerdian(_pts) === null) {\n pts = _pts;\n } else {\n pts = new Array(_pts.length);\n for(m = 0; m < _pts.length; m++) {\n // do not mutate calcdata[i][j].geojson !!\n pts[m] = [\n _pts[m][0] < 0 ? _pts[m][0] + 360 : _pts[m][0],\n _pts[m][1]\n ];\n }\n }\n\n polygons.push(polygon.tester(pts));\n };\n } else if(loc === 'ATA') {\n // Antarctica has a landmass that wraps around every longitudes which\n // confuses the 'contains' methods.\n appendPolygon = function(pts) {\n var crossAntiMeridianIndex = doesCrossAntiMerdian(pts);\n\n // polygon that do not cross anti-meridian need no special handling\n if(crossAntiMeridianIndex === null) {\n return polygons.push(polygon.tester(pts));\n }\n\n // stitch polygon by adding pt over South Pole,\n // so that it covers the projected region covers all latitudes\n //\n // Note that the algorithm below only works for polygons that\n // start and end on longitude -180 (like the ones built by\n // https://github.com/etpinard/sane-topojson).\n var stitch = new Array(pts.length + 1);\n var si = 0;\n\n for(m = 0; m < pts.length; m++) {\n if(m > crossAntiMeridianIndex) {\n stitch[si++] = [pts[m][0] + 360, pts[m][1]];\n } else if(m === crossAntiMeridianIndex) {\n stitch[si++] = pts[m];\n stitch[si++] = [pts[m][0], -90];\n } else {\n stitch[si++] = pts[m];\n }\n }\n\n // polygon.tester by default appends pt[0] to the points list,\n // we must remove it here, to avoid a jump in longitude from 180 to -180,\n // that would confuse the 'contains' method\n var tester = polygon.tester(stitch);\n tester.pts.pop();\n polygons.push(tester);\n };\n } else {\n // otherwise using same array ref is fine\n appendPolygon = function(pts) {\n polygons.push(polygon.tester(pts));\n };\n }\n\n switch(geometry.type) {\n case 'MultiPolygon':\n for(j = 0; j < coords.length; j++) {\n for(k = 0; k < coords[j].length; k++) {\n appendPolygon(coords[j][k]);\n }\n }\n break;\n case 'Polygon':\n for(j = 0; j < coords.length; j++) {\n appendPolygon(coords[j]);\n }\n break;\n }\n\n return polygons;\n}\n\nfunction getTraceGeojson(trace) {\n var g = trace.geojson;\n var PlotlyGeoAssets = window.PlotlyGeoAssets || {};\n var geojsonIn = typeof g === 'string' ? PlotlyGeoAssets[g] : g;\n\n // This should not happen, but just in case something goes\n // really wrong when fetching the GeoJSON\n if(!isPlainObject(geojsonIn)) {\n loggers.error('Oops ... something went wrong when fetching ' + g);\n return false;\n }\n\n return geojsonIn;\n}\n\nfunction extractTraceFeature(calcTrace) {\n var trace = calcTrace[0].trace;\n\n var geojsonIn = getTraceGeojson(trace);\n if(!geojsonIn) return false;\n\n var lookup = {};\n var featuresOut = [];\n var i;\n\n for(i = 0; i < trace._length; i++) {\n var cdi = calcTrace[i];\n if(cdi.loc || cdi.loc === 0) {\n lookup[cdi.loc] = cdi;\n }\n }\n\n function appendFeature(fIn) {\n var id = nestedProperty(fIn, trace.featureidkey || 'id').get();\n var cdi = lookup[id];\n\n if(cdi) {\n var geometry = fIn.geometry;\n\n if(geometry.type === 'Polygon' || geometry.type === 'MultiPolygon') {\n var fOut = {\n type: 'Feature',\n id: id,\n geometry: geometry,\n properties: {}\n };\n\n // Compute centroid, add it to the properties\n fOut.properties.ct = findCentroid(fOut);\n\n // Mutate in in/out features into calcdata\n cdi.fIn = fIn;\n cdi.fOut = fOut;\n\n featuresOut.push(fOut);\n } else {\n loggers.log([\n 'Location', cdi.loc, 'does not have a valid GeoJSON geometry.',\n 'Traces with locationmode *geojson-id* only support',\n '*Polygon* and *MultiPolygon* geometries.'\n ].join(' '));\n }\n }\n\n // remove key from lookup, so that we can track (if any)\n // the locations that did not have a corresponding GeoJSON feature\n delete lookup[id];\n }\n\n switch(geojsonIn.type) {\n case 'FeatureCollection':\n var featuresIn = geojsonIn.features;\n for(i = 0; i < featuresIn.length; i++) {\n appendFeature(featuresIn[i]);\n }\n break;\n case 'Feature':\n appendFeature(geojsonIn);\n break;\n default:\n loggers.warn([\n 'Invalid GeoJSON type', (geojsonIn.type || 'none') + '.',\n 'Traces with locationmode *geojson-id* only support',\n '*FeatureCollection* and *Feature* types.'\n ].join(' '));\n return false;\n }\n\n for(var loc in lookup) {\n loggers.log([\n 'Location *' + loc + '*',\n 'does not have a matching feature with id-key',\n '*' + trace.featureidkey + '*.'\n ].join(' '));\n }\n\n return featuresOut;\n}\n\n// TODO this find the centroid of the polygon of maxArea\n// (just like we currently do for geo choropleth polygons),\n// maybe instead it would make more sense to compute the centroid\n// of each polygon and consider those on hover/select\nfunction findCentroid(feature) {\n var geometry = feature.geometry;\n var poly;\n\n if(geometry.type === 'MultiPolygon') {\n var coords = geometry.coordinates;\n var maxArea = 0;\n\n for(var i = 0; i < coords.length; i++) {\n var polyi = {type: 'Polygon', coordinates: coords[i]};\n var area = turfArea.default(polyi);\n if(area > maxArea) {\n maxArea = area;\n poly = polyi;\n }\n }\n } else {\n poly = geometry;\n }\n\n return turfCentroid.default(poly).geometry.coordinates;\n}\n\nfunction fetchTraceGeoData(calcData) {\n var PlotlyGeoAssets = window.PlotlyGeoAssets || {};\n var promises = [];\n\n function fetch(url) {\n return new Promise(function(resolve, reject) {\n d3.json(url, function(err, d) {\n if(err) {\n delete PlotlyGeoAssets[url];\n var msg = err.status === 404 ?\n ('GeoJSON at URL \"' + url + '\" does not exist.') :\n ('Unexpected error while fetching from ' + url);\n return reject(new Error(msg));\n }\n\n PlotlyGeoAssets[url] = d;\n return resolve(d);\n });\n });\n }\n\n function wait(url) {\n return new Promise(function(resolve, reject) {\n var cnt = 0;\n var interval = setInterval(function() {\n if(PlotlyGeoAssets[url] && PlotlyGeoAssets[url] !== 'pending') {\n clearInterval(interval);\n return resolve(PlotlyGeoAssets[url]);\n }\n if(cnt > 100) {\n clearInterval(interval);\n return reject('Unexpected error while fetching from ' + url);\n }\n cnt++;\n }, 50);\n });\n }\n\n for(var i = 0; i < calcData.length; i++) {\n var trace = calcData[i][0].trace;\n var url = trace.geojson;\n\n if(typeof url === 'string') {\n if(!PlotlyGeoAssets[url]) {\n PlotlyGeoAssets[url] = 'pending';\n promises.push(fetch(url));\n } else if(PlotlyGeoAssets[url] === 'pending') {\n promises.push(wait(url));\n }\n }\n }\n\n return promises;\n}\n\n// TODO `turf/bbox` gives wrong result when the input feature/geometry\n// crosses the anti-meridian. We should try to implement our own bbox logic.\nfunction computeBbox(d) {\n return turfBbox.default(d);\n}\n\nmodule.exports = {\n locationToFeature: locationToFeature,\n feature2polygons: feature2polygons,\n getTraceGeojson: getTraceGeojson,\n extractTraceFeature: extractTraceFeature,\n fetchTraceGeoData: fetchTraceGeoData,\n computeBbox: computeBbox\n};\n\n},{\"./identity\":501,\"./is_plain_object\":504,\"./loggers\":507,\"./nested_property\":511,\"./polygon\":515,\"@plotly/d3\":58,\"@turf/area\":61,\"@turf/bbox\":64,\"@turf/centroid\":67,\"country-regex\":94}],497:[function(_dereq_,module,exports){\n'use strict';\n\nvar BADNUM = _dereq_('../constants/numerical').BADNUM;\n\n/**\n * Convert calcTrace to GeoJSON 'MultiLineString' coordinate arrays\n *\n * @param {object} calcTrace\n * gd.calcdata item.\n * Note that calcTrace[i].lonlat is assumed to be defined\n *\n * @return {array}\n * return line coords array (or array of arrays)\n *\n */\nexports.calcTraceToLineCoords = function(calcTrace) {\n var trace = calcTrace[0].trace;\n var connectgaps = trace.connectgaps;\n\n var coords = [];\n var lineString = [];\n\n for(var i = 0; i < calcTrace.length; i++) {\n var calcPt = calcTrace[i];\n var lonlat = calcPt.lonlat;\n\n if(lonlat[0] !== BADNUM) {\n lineString.push(lonlat);\n } else if(!connectgaps && lineString.length > 0) {\n coords.push(lineString);\n lineString = [];\n }\n }\n\n if(lineString.length > 0) {\n coords.push(lineString);\n }\n\n return coords;\n};\n\n\n/**\n * Make line ('LineString' or 'MultiLineString') GeoJSON\n *\n * @param {array} coords\n * results form calcTraceToLineCoords\n * @return {object} out\n * GeoJSON object\n *\n */\nexports.makeLine = function(coords) {\n if(coords.length === 1) {\n return {\n type: 'LineString',\n coordinates: coords[0]\n };\n } else {\n return {\n type: 'MultiLineString',\n coordinates: coords\n };\n }\n};\n\n/**\n * Make polygon ('Polygon' or 'MultiPolygon') GeoJSON\n *\n * @param {array} coords\n * results form calcTraceToLineCoords\n * @return {object} out\n * GeoJSON object\n */\nexports.makePolygon = function(coords) {\n if(coords.length === 1) {\n return {\n type: 'Polygon',\n coordinates: coords\n };\n } else {\n var _coords = new Array(coords.length);\n\n for(var i = 0; i < coords.length; i++) {\n _coords[i] = [coords[i]];\n }\n\n return {\n type: 'MultiPolygon',\n coordinates: _coords\n };\n }\n};\n\n/**\n * Make blank GeoJSON\n *\n * @return {object}\n * Blank GeoJSON object\n *\n */\nexports.makeBlank = function() {\n return {\n type: 'Point',\n coordinates: []\n };\n};\n\n},{\"../constants/numerical\":479}],498:[function(_dereq_,module,exports){\n'use strict';\n\nvar mod = _dereq_('./mod').mod;\n\n/*\n * look for intersection of two line segments\n * (1->2 and 3->4) - returns array [x,y] if they do, null if not\n */\nexports.segmentsIntersect = segmentsIntersect;\nfunction segmentsIntersect(x1, y1, x2, y2, x3, y3, x4, y4) {\n var a = x2 - x1;\n var b = x3 - x1;\n var c = x4 - x3;\n var d = y2 - y1;\n var e = y3 - y1;\n var f = y4 - y3;\n var det = a * f - c * d;\n // parallel lines? intersection is undefined\n // ignore the case where they are colinear\n if(det === 0) return null;\n var t = (b * f - c * e) / det;\n var u = (b * d - a * e) / det;\n // segments do not intersect?\n if(u < 0 || u > 1 || t < 0 || t > 1) return null;\n\n return {x: x1 + a * t, y: y1 + d * t};\n}\n\n/*\n * find the minimum distance between two line segments (1->2 and 3->4)\n */\nexports.segmentDistance = function segmentDistance(x1, y1, x2, y2, x3, y3, x4, y4) {\n if(segmentsIntersect(x1, y1, x2, y2, x3, y3, x4, y4)) return 0;\n\n // the two segments and their lengths squared\n var x12 = x2 - x1;\n var y12 = y2 - y1;\n var x34 = x4 - x3;\n var y34 = y4 - y3;\n var ll12 = x12 * x12 + y12 * y12;\n var ll34 = x34 * x34 + y34 * y34;\n\n // calculate distance squared, then take the sqrt at the very end\n var dist2 = Math.min(\n perpDistance2(x12, y12, ll12, x3 - x1, y3 - y1),\n perpDistance2(x12, y12, ll12, x4 - x1, y4 - y1),\n perpDistance2(x34, y34, ll34, x1 - x3, y1 - y3),\n perpDistance2(x34, y34, ll34, x2 - x3, y2 - y3)\n );\n\n return Math.sqrt(dist2);\n};\n\n/*\n * distance squared from segment ab to point c\n * [xab, yab] is the vector b-a\n * [xac, yac] is the vector c-a\n * llab is the length squared of (b-a), just to simplify calculation\n */\nfunction perpDistance2(xab, yab, llab, xac, yac) {\n var fcAB = (xac * xab + yac * yab);\n if(fcAB < 0) {\n // point c is closer to point a\n return xac * xac + yac * yac;\n } else if(fcAB > llab) {\n // point c is closer to point b\n var xbc = xac - xab;\n var ybc = yac - yab;\n return xbc * xbc + ybc * ybc;\n } else {\n // perpendicular distance is the shortest\n var crossProduct = xac * yab - yac * xab;\n return crossProduct * crossProduct / llab;\n }\n}\n\n// a very short-term cache for getTextLocation, just because\n// we're often looping over the same locations multiple times\n// invalidated as soon as we look at a different path\nvar locationCache, workingPath, workingTextWidth;\n\n// turn a path and position along it into x, y, and angle for the given text\nexports.getTextLocation = function getTextLocation(path, totalPathLen, positionOnPath, textWidth) {\n if(path !== workingPath || textWidth !== workingTextWidth) {\n locationCache = {};\n workingPath = path;\n workingTextWidth = textWidth;\n }\n if(locationCache[positionOnPath]) {\n return locationCache[positionOnPath];\n }\n\n // for the angle, use points on the path separated by the text width\n // even though due to curvature, the text will cover a bit more than that\n var p0 = path.getPointAtLength(mod(positionOnPath - textWidth / 2, totalPathLen));\n var p1 = path.getPointAtLength(mod(positionOnPath + textWidth / 2, totalPathLen));\n // note: atan handles 1/0 nicely\n var theta = Math.atan((p1.y - p0.y) / (p1.x - p0.x));\n // center the text at 2/3 of the center position plus 1/3 the p0/p1 midpoint\n // that's the average position of this segment, assuming it's roughly quadratic\n var pCenter = path.getPointAtLength(mod(positionOnPath, totalPathLen));\n var x = (pCenter.x * 4 + p0.x + p1.x) / 6;\n var y = (pCenter.y * 4 + p0.y + p1.y) / 6;\n\n var out = {x: x, y: y, theta: theta};\n locationCache[positionOnPath] = out;\n return out;\n};\n\nexports.clearLocationCache = function() {\n workingPath = null;\n};\n\n/*\n * Find the segment of `path` that's within the visible area\n * given by `bounds` {left, right, top, bottom}, to within a\n * precision of `buffer` px\n *\n * returns: undefined if nothing is visible, else object:\n * {\n * min: position where the path first enters bounds, or 0 if it\n * starts within bounds\n * max: position where the path last exits bounds, or the path length\n * if it finishes within bounds\n * len: max - min, ie the length of visible path\n * total: the total path length - just included so the caller doesn't\n * need to call path.getTotalLength() again\n * isClosed: true iff the start and end points of the path are both visible\n * and are at the same point\n * }\n *\n * Works by starting from either end and repeatedly finding the distance from\n * that point to the plot area, and if it's outside the plot, moving along the\n * path by that distance (because the plot must be at least that far away on\n * the path). Note that if a path enters, exits, and re-enters the plot, we\n * will not capture this behavior.\n */\nexports.getVisibleSegment = function getVisibleSegment(path, bounds, buffer) {\n var left = bounds.left;\n var right = bounds.right;\n var top = bounds.top;\n var bottom = bounds.bottom;\n\n var pMin = 0;\n var pTotal = path.getTotalLength();\n var pMax = pTotal;\n\n var pt0, ptTotal;\n\n function getDistToPlot(len) {\n var pt = path.getPointAtLength(len);\n\n // hold on to the start and end points for `closed`\n if(len === 0) pt0 = pt;\n else if(len === pTotal) ptTotal = pt;\n\n var dx = (pt.x < left) ? left - pt.x : (pt.x > right ? pt.x - right : 0);\n var dy = (pt.y < top) ? top - pt.y : (pt.y > bottom ? pt.y - bottom : 0);\n return Math.sqrt(dx * dx + dy * dy);\n }\n\n var distToPlot = getDistToPlot(pMin);\n while(distToPlot) {\n pMin += distToPlot + buffer;\n if(pMin > pMax) return;\n distToPlot = getDistToPlot(pMin);\n }\n\n distToPlot = getDistToPlot(pMax);\n while(distToPlot) {\n pMax -= distToPlot + buffer;\n if(pMin > pMax) return;\n distToPlot = getDistToPlot(pMax);\n }\n\n return {\n min: pMin,\n max: pMax,\n len: pMax - pMin,\n total: pTotal,\n isClosed: pMin === 0 && pMax === pTotal &&\n Math.abs(pt0.x - ptTotal.x) < 0.1 &&\n Math.abs(pt0.y - ptTotal.y) < 0.1\n };\n};\n\n/**\n * Find point on SVG path corresponding to a given constraint coordinate\n *\n * @param {SVGPathElement} path\n * @param {Number} val : constraint coordinate value\n * @param {String} coord : 'x' or 'y' the constraint coordinate\n * @param {Object} opts :\n * - {Number} pathLength : supply total path length before hand\n * - {Number} tolerance\n * - {Number} iterationLimit\n * @return {SVGPoint}\n */\nexports.findPointOnPath = function findPointOnPath(path, val, coord, opts) {\n opts = opts || {};\n\n var pathLength = opts.pathLength || path.getTotalLength();\n var tolerance = opts.tolerance || 1e-3;\n var iterationLimit = opts.iterationLimit || 30;\n\n // if path starts at a val greater than the path tail (like on vertical violins),\n // we must flip the sign of the computed diff.\n var mul = path.getPointAtLength(0)[coord] > path.getPointAtLength(pathLength)[coord] ? -1 : 1;\n\n var i = 0;\n var b0 = 0;\n var b1 = pathLength;\n var mid;\n var pt;\n var diff;\n\n while(i < iterationLimit) {\n mid = (b0 + b1) / 2;\n pt = path.getPointAtLength(mid);\n diff = pt[coord] - val;\n\n if(Math.abs(diff) < tolerance) {\n return pt;\n } else {\n if(mul * diff > 0) {\n b1 = mid;\n } else {\n b0 = mid;\n }\n i++;\n }\n }\n return pt;\n};\n\n},{\"./mod\":510}],499:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar tinycolor = _dereq_('tinycolor2');\nvar rgba = _dereq_('color-normalize');\n\nvar Colorscale = _dereq_('../components/colorscale');\nvar colorDflt = _dereq_('../components/color/attributes').defaultLine;\nvar isArrayOrTypedArray = _dereq_('./array').isArrayOrTypedArray;\n\nvar colorDfltRgba = rgba(colorDflt);\nvar opacityDflt = 1;\n\nfunction calculateColor(colorIn, opacityIn) {\n var colorOut = colorIn;\n colorOut[3] *= opacityIn;\n return colorOut;\n}\n\nfunction validateColor(colorIn) {\n if(isNumeric(colorIn)) return colorDfltRgba;\n\n var colorOut = rgba(colorIn);\n\n return colorOut.length ? colorOut : colorDfltRgba;\n}\n\nfunction validateOpacity(opacityIn) {\n return isNumeric(opacityIn) ? opacityIn : opacityDflt;\n}\n\nfunction formatColor(containerIn, opacityIn, len) {\n var colorIn = containerIn.color;\n var isArrayColorIn = isArrayOrTypedArray(colorIn);\n var isArrayOpacityIn = isArrayOrTypedArray(opacityIn);\n var cOpts = Colorscale.extractOpts(containerIn);\n var colorOut = [];\n\n var sclFunc, getColor, getOpacity, colori, opacityi;\n\n if(cOpts.colorscale !== undefined) {\n sclFunc = Colorscale.makeColorScaleFuncFromTrace(containerIn);\n } else {\n sclFunc = validateColor;\n }\n\n if(isArrayColorIn) {\n getColor = function(c, i) {\n // FIXME: there is double work, considering that sclFunc does the opposite\n return c[i] === undefined ? colorDfltRgba : rgba(sclFunc(c[i]));\n };\n } else getColor = validateColor;\n\n if(isArrayOpacityIn) {\n getOpacity = function(o, i) {\n return o[i] === undefined ? opacityDflt : validateOpacity(o[i]);\n };\n } else getOpacity = validateOpacity;\n\n if(isArrayColorIn || isArrayOpacityIn) {\n for(var i = 0; i < len; i++) {\n colori = getColor(colorIn, i);\n opacityi = getOpacity(opacityIn, i);\n colorOut[i] = calculateColor(colori, opacityi);\n }\n } else colorOut = calculateColor(rgba(colorIn), opacityIn);\n\n return colorOut;\n}\n\nfunction parseColorScale(cont) {\n var cOpts = Colorscale.extractOpts(cont);\n\n var colorscale = cOpts.colorscale;\n if(cOpts.reversescale) colorscale = Colorscale.flipScale(cOpts.colorscale);\n\n return colorscale.map(function(elem) {\n var index = elem[0];\n var color = tinycolor(elem[1]);\n var rgb = color.toRgb();\n return {\n index: index,\n rgb: [rgb.r, rgb.g, rgb.b, rgb.a]\n };\n });\n}\n\nmodule.exports = {\n formatColor: formatColor,\n parseColorScale: parseColorScale\n};\n\n},{\"../components/color/attributes\":365,\"../components/colorscale\":378,\"./array\":485,\"color-normalize\":89,\"fast-isnumeric\":190,\"tinycolor2\":312}],500:[function(_dereq_,module,exports){\n'use strict';\n\nvar identity = _dereq_('./identity');\n\nfunction wrap(d) {return [d];}\n\nmodule.exports = {\n\n // The D3 data binding concept and the General Update Pattern promotes the idea of\n // traversing into the scenegraph by using the `.data(fun, keyFun)` call.\n // The `fun` is most often a `repeat`, ie. the elements beneath a `` element need\n // access to the same data, or a `descend`, which fans a scenegraph node into a bunch of\n // of elements, e.g. points, lines, rows, requiring an array as input.\n // The role of the `keyFun` is to identify what elements are being entered/exited/updated,\n // otherwise D3 reverts to using a plain index which would screw up `transition`s.\n keyFun: function(d) {return d.key;},\n repeat: wrap,\n descend: identity,\n\n // Plotly.js uses a convention of storing the actual contents of the `calcData` as the\n // element zero of a container array. These helpers are just used for clarity as a\n // newcomer to the codebase may not know what the `[0]` is, and whether there can be further\n // elements (not atm).\n wrap: wrap,\n unwrap: function(d) {return d[0];}\n};\n\n},{\"./identity\":501}],501:[function(_dereq_,module,exports){\n'use strict';\n\n// Simple helper functions\n// none of these need any external deps\n\nmodule.exports = function identity(d) { return d; };\n\n},{}],502:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function incrementNumeric(x, delta) {\n if(!delta) return x;\n\n // Note 1:\n // 0.3 != 0.1 + 0.2 == 0.30000000000000004\n // but 0.3 == (10 * 0.1 + 10 * 0.2) / 10\n // Attempt to use integer steps to increment\n var scale = 1 / Math.abs(delta);\n var newX = (scale > 1) ? (\n scale * x +\n scale * delta\n ) / scale : x + delta;\n\n // Note 2:\n // now we may also consider rounding to cover few more edge cases\n // e.g. 0.3 * 3 = 0.8999999999999999\n var lenX1 = String(newX).length;\n if(lenX1 > 16) {\n var lenDt = String(delta).length;\n var lenX0 = String(x).length;\n\n if(lenX1 >= lenX0 + lenDt) { // likely a rounding error!\n var s = parseFloat(newX).toPrecision(12);\n if(s.indexOf('e+') === -1) newX = +s;\n }\n }\n\n return newX;\n};\n\n},{}],503:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar utcFormat = _dereq_('d3-time-format').utcFormat;\nvar d3Format = _dereq_('d3-format').format;\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar numConstants = _dereq_('../constants/numerical');\nvar MAX_SAFE = numConstants.FP_SAFE;\nvar MIN_SAFE = -MAX_SAFE;\nvar BADNUM = numConstants.BADNUM;\n\nvar lib = module.exports = {};\n\nlib.adjustFormat = function adjustFormat(formatStr) {\n if(\n !formatStr ||\n /^\\d[.]\\df/.test(formatStr) ||\n /[.]\\d%/.test(formatStr)\n ) return formatStr;\n\n if(formatStr === '0.f') return '~f';\n if(/^\\d%/.test(formatStr)) return '~%';\n if(/^\\ds/.test(formatStr)) return '~s';\n\n // try adding tilde to the start of format in order to trim\n if(!(/^[~,.0$]/.test(formatStr)) && /[&fps]/.test(formatStr)) return '~' + formatStr;\n\n return formatStr;\n};\n\nvar seenBadFormats = {};\nlib.warnBadFormat = function(f) {\n var key = String(f);\n if(!seenBadFormats[key]) {\n seenBadFormats[key] = 1;\n lib.warn('encountered bad format: \"' + key + '\"');\n }\n};\n\nlib.noFormat = function(value) {\n return String(value);\n};\n\nlib.numberFormat = function(formatStr) {\n var fn;\n try {\n fn = d3Format(lib.adjustFormat(formatStr));\n } catch(e) {\n lib.warnBadFormat(formatStr);\n return lib.noFormat;\n }\n\n return fn;\n};\n\nlib.nestedProperty = _dereq_('./nested_property');\nlib.keyedContainer = _dereq_('./keyed_container');\nlib.relativeAttr = _dereq_('./relative_attr');\nlib.isPlainObject = _dereq_('./is_plain_object');\nlib.toLogRange = _dereq_('./to_log_range');\nlib.relinkPrivateKeys = _dereq_('./relink_private');\n\nvar arrayModule = _dereq_('./array');\nlib.isTypedArray = arrayModule.isTypedArray;\nlib.isArrayOrTypedArray = arrayModule.isArrayOrTypedArray;\nlib.isArray1D = arrayModule.isArray1D;\nlib.ensureArray = arrayModule.ensureArray;\nlib.concat = arrayModule.concat;\nlib.maxRowLength = arrayModule.maxRowLength;\nlib.minRowLength = arrayModule.minRowLength;\n\nvar modModule = _dereq_('./mod');\nlib.mod = modModule.mod;\nlib.modHalf = modModule.modHalf;\n\nvar coerceModule = _dereq_('./coerce');\nlib.valObjectMeta = coerceModule.valObjectMeta;\nlib.coerce = coerceModule.coerce;\nlib.coerce2 = coerceModule.coerce2;\nlib.coerceFont = coerceModule.coerceFont;\nlib.coercePattern = coerceModule.coercePattern;\nlib.coerceHoverinfo = coerceModule.coerceHoverinfo;\nlib.coerceSelectionMarkerOpacity = coerceModule.coerceSelectionMarkerOpacity;\nlib.validate = coerceModule.validate;\n\nvar datesModule = _dereq_('./dates');\nlib.dateTime2ms = datesModule.dateTime2ms;\nlib.isDateTime = datesModule.isDateTime;\nlib.ms2DateTime = datesModule.ms2DateTime;\nlib.ms2DateTimeLocal = datesModule.ms2DateTimeLocal;\nlib.cleanDate = datesModule.cleanDate;\nlib.isJSDate = datesModule.isJSDate;\nlib.formatDate = datesModule.formatDate;\nlib.incrementMonth = datesModule.incrementMonth;\nlib.dateTick0 = datesModule.dateTick0;\nlib.dfltRange = datesModule.dfltRange;\nlib.findExactDates = datesModule.findExactDates;\nlib.MIN_MS = datesModule.MIN_MS;\nlib.MAX_MS = datesModule.MAX_MS;\n\nvar searchModule = _dereq_('./search');\nlib.findBin = searchModule.findBin;\nlib.sorterAsc = searchModule.sorterAsc;\nlib.sorterDes = searchModule.sorterDes;\nlib.distinctVals = searchModule.distinctVals;\nlib.roundUp = searchModule.roundUp;\nlib.sort = searchModule.sort;\nlib.findIndexOfMin = searchModule.findIndexOfMin;\n\nlib.sortObjectKeys = _dereq_('./sort_object_keys');\n\nvar statsModule = _dereq_('./stats');\nlib.aggNums = statsModule.aggNums;\nlib.len = statsModule.len;\nlib.mean = statsModule.mean;\nlib.median = statsModule.median;\nlib.midRange = statsModule.midRange;\nlib.variance = statsModule.variance;\nlib.stdev = statsModule.stdev;\nlib.interp = statsModule.interp;\n\nvar matrixModule = _dereq_('./matrix');\nlib.init2dArray = matrixModule.init2dArray;\nlib.transposeRagged = matrixModule.transposeRagged;\nlib.dot = matrixModule.dot;\nlib.translationMatrix = matrixModule.translationMatrix;\nlib.rotationMatrix = matrixModule.rotationMatrix;\nlib.rotationXYMatrix = matrixModule.rotationXYMatrix;\nlib.apply3DTransform = matrixModule.apply3DTransform;\nlib.apply2DTransform = matrixModule.apply2DTransform;\nlib.apply2DTransform2 = matrixModule.apply2DTransform2;\nlib.convertCssMatrix = matrixModule.convertCssMatrix;\nlib.inverseTransformMatrix = matrixModule.inverseTransformMatrix;\n\nvar anglesModule = _dereq_('./angles');\nlib.deg2rad = anglesModule.deg2rad;\nlib.rad2deg = anglesModule.rad2deg;\nlib.angleDelta = anglesModule.angleDelta;\nlib.angleDist = anglesModule.angleDist;\nlib.isFullCircle = anglesModule.isFullCircle;\nlib.isAngleInsideSector = anglesModule.isAngleInsideSector;\nlib.isPtInsideSector = anglesModule.isPtInsideSector;\nlib.pathArc = anglesModule.pathArc;\nlib.pathSector = anglesModule.pathSector;\nlib.pathAnnulus = anglesModule.pathAnnulus;\n\nvar anchorUtils = _dereq_('./anchor_utils');\nlib.isLeftAnchor = anchorUtils.isLeftAnchor;\nlib.isCenterAnchor = anchorUtils.isCenterAnchor;\nlib.isRightAnchor = anchorUtils.isRightAnchor;\nlib.isTopAnchor = anchorUtils.isTopAnchor;\nlib.isMiddleAnchor = anchorUtils.isMiddleAnchor;\nlib.isBottomAnchor = anchorUtils.isBottomAnchor;\n\nvar geom2dModule = _dereq_('./geometry2d');\nlib.segmentsIntersect = geom2dModule.segmentsIntersect;\nlib.segmentDistance = geom2dModule.segmentDistance;\nlib.getTextLocation = geom2dModule.getTextLocation;\nlib.clearLocationCache = geom2dModule.clearLocationCache;\nlib.getVisibleSegment = geom2dModule.getVisibleSegment;\nlib.findPointOnPath = geom2dModule.findPointOnPath;\n\nvar extendModule = _dereq_('./extend');\nlib.extendFlat = extendModule.extendFlat;\nlib.extendDeep = extendModule.extendDeep;\nlib.extendDeepAll = extendModule.extendDeepAll;\nlib.extendDeepNoArrays = extendModule.extendDeepNoArrays;\n\nvar loggersModule = _dereq_('./loggers');\nlib.log = loggersModule.log;\nlib.warn = loggersModule.warn;\nlib.error = loggersModule.error;\n\nvar regexModule = _dereq_('./regex');\nlib.counterRegex = regexModule.counter;\n\nvar throttleModule = _dereq_('./throttle');\nlib.throttle = throttleModule.throttle;\nlib.throttleDone = throttleModule.done;\nlib.clearThrottle = throttleModule.clear;\n\nvar domModule = _dereq_('./dom');\nlib.getGraphDiv = domModule.getGraphDiv;\nlib.isPlotDiv = domModule.isPlotDiv;\nlib.removeElement = domModule.removeElement;\nlib.addStyleRule = domModule.addStyleRule;\nlib.addRelatedStyleRule = domModule.addRelatedStyleRule;\nlib.deleteRelatedStyleRule = domModule.deleteRelatedStyleRule;\nlib.getFullTransformMatrix = domModule.getFullTransformMatrix;\nlib.getElementTransformMatrix = domModule.getElementTransformMatrix;\nlib.getElementAndAncestors = domModule.getElementAndAncestors;\nlib.equalDomRects = domModule.equalDomRects;\n\nlib.clearResponsive = _dereq_('./clear_responsive');\nlib.preserveDrawingBuffer = _dereq_('./preserve_drawing_buffer');\n\nlib.makeTraceGroups = _dereq_('./make_trace_groups');\n\nlib._ = _dereq_('./localize');\n\nlib.notifier = _dereq_('./notifier');\n\nlib.filterUnique = _dereq_('./filter_unique');\nlib.filterVisible = _dereq_('./filter_visible');\nlib.pushUnique = _dereq_('./push_unique');\n\nlib.increment = _dereq_('./increment');\n\nlib.cleanNumber = _dereq_('./clean_number');\n\nlib.ensureNumber = function ensureNumber(v) {\n if(!isNumeric(v)) return BADNUM;\n v = Number(v);\n return (v > MAX_SAFE || v < MIN_SAFE) ? BADNUM : v;\n};\n\n/**\n * Is v a valid array index? Accepts numeric strings as well as numbers.\n *\n * @param {any} v: the value to test\n * @param {Optional[integer]} len: the array length we are indexing\n *\n * @return {bool}: v is a valid array index\n */\nlib.isIndex = function(v, len) {\n if(len !== undefined && v >= len) return false;\n return isNumeric(v) && (v >= 0) && (v % 1 === 0);\n};\n\nlib.noop = _dereq_('./noop');\nlib.identity = _dereq_('./identity');\n\n/**\n * create an array of length 'cnt' filled with 'v' at all indices\n *\n * @param {any} v\n * @param {number} cnt\n * @return {array}\n */\nlib.repeat = function(v, cnt) {\n var out = new Array(cnt);\n for(var i = 0; i < cnt; i++) {\n out[i] = v;\n }\n return out;\n};\n\n/**\n * swap x and y of the same attribute in container cont\n * specify attr with a ? in place of x/y\n * you can also swap other things than x/y by providing part1 and part2\n */\nlib.swapAttrs = function(cont, attrList, part1, part2) {\n if(!part1) part1 = 'x';\n if(!part2) part2 = 'y';\n for(var i = 0; i < attrList.length; i++) {\n var attr = attrList[i];\n var xp = lib.nestedProperty(cont, attr.replace('?', part1));\n var yp = lib.nestedProperty(cont, attr.replace('?', part2));\n var temp = xp.get();\n xp.set(yp.get());\n yp.set(temp);\n }\n};\n\n/**\n * SVG painter's algo worked around with reinsertion\n */\nlib.raiseToTop = function raiseToTop(elem) {\n elem.parentNode.appendChild(elem);\n};\n\n/**\n * cancel a possibly pending transition; returned selection may be used by caller\n */\nlib.cancelTransition = function(selection) {\n return selection.transition().duration(0);\n};\n\n// constrain - restrict a number v to be between v0 and v1\nlib.constrain = function(v, v0, v1) {\n if(v0 > v1) return Math.max(v1, Math.min(v0, v));\n return Math.max(v0, Math.min(v1, v));\n};\n\n/**\n * do two bounding boxes from getBoundingClientRect,\n * ie {left,right,top,bottom,width,height}, overlap?\n * takes optional padding pixels\n */\nlib.bBoxIntersect = function(a, b, pad) {\n pad = pad || 0;\n return (a.left <= b.right + pad &&\n b.left <= a.right + pad &&\n a.top <= b.bottom + pad &&\n b.top <= a.bottom + pad);\n};\n\n/*\n * simpleMap: alternative to Array.map that only\n * passes on the element and up to 2 extra args you\n * provide (but not the array index or the whole array)\n *\n * array: the array to map it to\n * func: the function to apply\n * x1, x2: optional extra args\n */\nlib.simpleMap = function(array, func, x1, x2, opts) {\n var len = array.length;\n var out = new Array(len);\n for(var i = 0; i < len; i++) out[i] = func(array[i], x1, x2, opts);\n return out;\n};\n\n/**\n * Random string generator\n *\n * @param {object} existing\n * pass in strings to avoid as keys with truthy values\n * @param {int} bits\n * bits of information in the output string, default 24\n * @param {int} base\n * base of string representation, default 16. Should be a power of 2.\n */\nlib.randstr = function randstr(existing, bits, base, _recursion) {\n if(!base) base = 16;\n if(bits === undefined) bits = 24;\n if(bits <= 0) return '0';\n\n var digits = Math.log(Math.pow(2, bits)) / Math.log(base);\n var res = '';\n var i, b, x;\n\n for(i = 2; digits === Infinity; i *= 2) {\n digits = Math.log(Math.pow(2, bits / i)) / Math.log(base) * i;\n }\n\n var rem = digits - Math.floor(digits);\n\n for(i = 0; i < Math.floor(digits); i++) {\n x = Math.floor(Math.random() * base).toString(base);\n res = x + res;\n }\n\n if(rem) {\n b = Math.pow(base, rem);\n x = Math.floor(Math.random() * b).toString(base);\n res = x + res;\n }\n\n var parsed = parseInt(res, base);\n if((existing && existing[res]) ||\n (parsed !== Infinity && parsed >= Math.pow(2, bits))) {\n if(_recursion > 10) {\n lib.warn('randstr failed uniqueness');\n return res;\n }\n return randstr(existing, bits, base, (_recursion || 0) + 1);\n } else return res;\n};\n\nlib.OptionControl = function(opt, optname) {\n /*\n * An environment to contain all option setters and\n * getters that collectively modify opts.\n *\n * You can call up opts from any function in new object\n * as this.optname || this.opt\n *\n * See FitOpts for example of usage\n */\n if(!opt) opt = {};\n if(!optname) optname = 'opt';\n\n var self = {};\n self.optionList = [];\n\n self._newoption = function(optObj) {\n optObj[optname] = opt;\n self[optObj.name] = optObj;\n self.optionList.push(optObj);\n };\n\n self['_' + optname] = opt;\n return self;\n};\n\n/**\n * lib.smooth: smooth arrayIn by convolving with\n * a hann window with given full width at half max\n * bounce the ends in, so the output has the same length as the input\n */\nlib.smooth = function(arrayIn, FWHM) {\n FWHM = Math.round(FWHM) || 0; // only makes sense for integers\n if(FWHM < 2) return arrayIn;\n\n var alen = arrayIn.length;\n var alen2 = 2 * alen;\n var wlen = 2 * FWHM - 1;\n var w = new Array(wlen);\n var arrayOut = new Array(alen);\n var i;\n var j;\n var k;\n var v;\n\n // first make the window array\n for(i = 0; i < wlen; i++) {\n w[i] = (1 - Math.cos(Math.PI * (i + 1) / FWHM)) / (2 * FWHM);\n }\n\n // now do the convolution\n for(i = 0; i < alen; i++) {\n v = 0;\n for(j = 0; j < wlen; j++) {\n k = i + j + 1 - FWHM;\n\n // multibounce\n if(k < -alen) k -= alen2 * Math.round(k / alen2);\n else if(k >= alen2) k -= alen2 * Math.floor(k / alen2);\n\n // single bounce\n if(k < 0) k = - 1 - k;\n else if(k >= alen) k = alen2 - 1 - k;\n\n v += arrayIn[k] * w[j];\n }\n arrayOut[i] = v;\n }\n\n return arrayOut;\n};\n\n/**\n * syncOrAsync: run a sequence of functions synchronously\n * as long as its returns are not promises (ie have no .then)\n * includes one argument arg to send to all functions...\n * this is mainly just to prevent us having to make wrapper functions\n * when the only purpose of the wrapper is to reference gd\n * and a final step to be executed at the end\n * TODO: if there's an error and everything is sync,\n * this doesn't happen yet because we want to make sure\n * that it gets reported\n */\nlib.syncOrAsync = function(sequence, arg, finalStep) {\n var ret, fni;\n\n function continueAsync() {\n return lib.syncOrAsync(sequence, arg, finalStep);\n }\n\n while(sequence.length) {\n fni = sequence.splice(0, 1)[0];\n ret = fni(arg);\n\n if(ret && ret.then) {\n return ret.then(continueAsync);\n }\n }\n\n return finalStep && finalStep(arg);\n};\n\n\n/**\n * Helper to strip trailing slash, from\n * http://stackoverflow.com/questions/6680825/return-string-without-trailing-slash\n */\nlib.stripTrailingSlash = function(str) {\n if(str.substr(-1) === '/') return str.substr(0, str.length - 1);\n return str;\n};\n\nlib.noneOrAll = function(containerIn, containerOut, attrList) {\n /**\n * some attributes come together, so if you have one of them\n * in the input, you should copy the default values of the others\n * to the input as well.\n */\n if(!containerIn) return;\n\n var hasAny = false;\n var hasAll = true;\n var i;\n var val;\n\n for(i = 0; i < attrList.length; i++) {\n val = containerIn[attrList[i]];\n if(val !== undefined && val !== null) hasAny = true;\n else hasAll = false;\n }\n\n if(hasAny && !hasAll) {\n for(i = 0; i < attrList.length; i++) {\n containerIn[attrList[i]] = containerOut[attrList[i]];\n }\n }\n};\n\n/** merges calcdata field (given by cdAttr) with traceAttr values\n *\n * N.B. Loop over minimum of cd.length and traceAttr.length\n * i.e. it does not try to fill in beyond traceAttr.length-1\n *\n * @param {array} traceAttr : trace attribute\n * @param {object} cd : calcdata trace\n * @param {string} cdAttr : calcdata key\n */\nlib.mergeArray = function(traceAttr, cd, cdAttr, fn) {\n var hasFn = typeof fn === 'function';\n if(lib.isArrayOrTypedArray(traceAttr)) {\n var imax = Math.min(traceAttr.length, cd.length);\n for(var i = 0; i < imax; i++) {\n var v = traceAttr[i];\n cd[i][cdAttr] = hasFn ? fn(v) : v;\n }\n }\n};\n\n// cast numbers to positive numbers, returns 0 if not greater than 0\nlib.mergeArrayCastPositive = function(traceAttr, cd, cdAttr) {\n return lib.mergeArray(traceAttr, cd, cdAttr, function(v) {\n var w = +v;\n return !isFinite(w) ? 0 : w > 0 ? w : 0;\n });\n};\n\n/** fills calcdata field (given by cdAttr) with traceAttr values\n * or function of traceAttr values (e.g. some fallback)\n *\n * N.B. Loops over all cd items.\n *\n * @param {array} traceAttr : trace attribute\n * @param {object} cd : calcdata trace\n * @param {string} cdAttr : calcdata key\n * @param {function} [fn] : optional function to apply to each array item\n */\nlib.fillArray = function(traceAttr, cd, cdAttr, fn) {\n fn = fn || lib.identity;\n\n if(lib.isArrayOrTypedArray(traceAttr)) {\n for(var i = 0; i < cd.length; i++) {\n cd[i][cdAttr] = fn(traceAttr[i]);\n }\n }\n};\n\n/** Handler for trace-wide vs per-point options\n *\n * @param {object} trace : (full) trace object\n * @param {number} ptNumber : index of the point in question\n * @param {string} astr : attribute string\n * @param {function} [fn] : optional function to apply to each array item\n *\n * @return {any}\n */\nlib.castOption = function(trace, ptNumber, astr, fn) {\n fn = fn || lib.identity;\n\n var val = lib.nestedProperty(trace, astr).get();\n\n if(lib.isArrayOrTypedArray(val)) {\n if(Array.isArray(ptNumber) && lib.isArrayOrTypedArray(val[ptNumber[0]])) {\n return fn(val[ptNumber[0]][ptNumber[1]]);\n } else {\n return fn(val[ptNumber]);\n }\n } else {\n return val;\n }\n};\n\n/** Extract option from calcdata item, correctly falling back to\n * trace value if not found.\n *\n * @param {object} calcPt : calcdata[i][j] item\n * @param {object} trace : (full) trace object\n * @param {string} calcKey : calcdata key\n * @param {string} traceKey : aka trace attribute string\n * @return {any}\n */\nlib.extractOption = function(calcPt, trace, calcKey, traceKey) {\n if(calcKey in calcPt) return calcPt[calcKey];\n\n // fallback to trace value,\n // must check if value isn't itself an array\n // which means the trace attribute has a corresponding\n // calcdata key, but its value is falsy\n var traceVal = lib.nestedProperty(trace, traceKey).get();\n if(!Array.isArray(traceVal)) return traceVal;\n};\n\nfunction makePtIndex2PtNumber(indexToPoints) {\n var ptIndex2ptNumber = {};\n for(var k in indexToPoints) {\n var pts = indexToPoints[k];\n for(var j = 0; j < pts.length; j++) {\n ptIndex2ptNumber[pts[j]] = +k;\n }\n }\n return ptIndex2ptNumber;\n}\n\n/** Tag selected calcdata items\n *\n * N.B. note that point 'index' corresponds to input data array index\n * whereas 'number' is its post-transform version.\n *\n * @param {array} calcTrace\n * @param {object} trace\n * - selectedpoints {array}\n * - _indexToPoints {object}\n * @param {ptNumber2cdIndex} ptNumber2cdIndex (optional)\n * optional map object for trace types that do not have 1-to-1 point number to\n * calcdata item index correspondence (e.g. histogram)\n */\nlib.tagSelected = function(calcTrace, trace, ptNumber2cdIndex) {\n var selectedpoints = trace.selectedpoints;\n var indexToPoints = trace._indexToPoints;\n var ptIndex2ptNumber;\n\n // make pt index-to-number map object, which takes care of transformed traces\n if(indexToPoints) {\n ptIndex2ptNumber = makePtIndex2PtNumber(indexToPoints);\n }\n\n function isCdIndexValid(v) {\n return v !== undefined && v < calcTrace.length;\n }\n\n for(var i = 0; i < selectedpoints.length; i++) {\n var ptIndex = selectedpoints[i];\n\n if(lib.isIndex(ptIndex) ||\n (lib.isArrayOrTypedArray(ptIndex) && lib.isIndex(ptIndex[0]) && lib.isIndex(ptIndex[1]))\n ) {\n var ptNumber = ptIndex2ptNumber ? ptIndex2ptNumber[ptIndex] : ptIndex;\n var cdIndex = ptNumber2cdIndex ? ptNumber2cdIndex[ptNumber] : ptNumber;\n\n if(isCdIndexValid(cdIndex)) {\n calcTrace[cdIndex].selected = 1;\n }\n }\n }\n};\n\nlib.selIndices2selPoints = function(trace) {\n var selectedpoints = trace.selectedpoints;\n var indexToPoints = trace._indexToPoints;\n\n if(indexToPoints) {\n var ptIndex2ptNumber = makePtIndex2PtNumber(indexToPoints);\n var out = [];\n\n for(var i = 0; i < selectedpoints.length; i++) {\n var ptIndex = selectedpoints[i];\n if(lib.isIndex(ptIndex)) {\n var ptNumber = ptIndex2ptNumber[ptIndex];\n if(lib.isIndex(ptNumber)) {\n out.push(ptNumber);\n }\n }\n }\n\n return out;\n } else {\n return selectedpoints;\n }\n};\n\n/** Returns target as set by 'target' transform attribute\n *\n * @param {object} trace : full trace object\n * @param {object} transformOpts : transform option object\n * - target (string} :\n * either an attribute string referencing an array in the trace object, or\n * a set array.\n *\n * @return {array or false} : the target array (NOT a copy!!) or false if invalid\n */\nlib.getTargetArray = function(trace, transformOpts) {\n var target = transformOpts.target;\n\n if(typeof target === 'string' && target) {\n var array = lib.nestedProperty(trace, target).get();\n return Array.isArray(array) ? array : false;\n } else if(Array.isArray(target)) {\n return target;\n }\n\n return false;\n};\n\n/**\n * modified version of jQuery's extend to strip out private objs and functions,\n * and cut arrays down to first or 1 elements\n * because extend-like algorithms are hella slow\n * obj2 is assumed to already be clean of these things (including no arrays)\n */\nlib.minExtend = function(obj1, obj2) {\n var objOut = {};\n if(typeof obj2 !== 'object') obj2 = {};\n var arrayLen = 3;\n var keys = Object.keys(obj1);\n var i, k, v;\n\n for(i = 0; i < keys.length; i++) {\n k = keys[i];\n v = obj1[k];\n if(k.charAt(0) === '_' || typeof v === 'function') continue;\n else if(k === 'module') objOut[k] = v;\n else if(Array.isArray(v)) {\n if(k === 'colorscale') {\n objOut[k] = v.slice();\n } else {\n objOut[k] = v.slice(0, arrayLen);\n }\n } else if(lib.isTypedArray(v)) {\n objOut[k] = v.subarray(0, arrayLen);\n } else if(v && (typeof v === 'object')) objOut[k] = lib.minExtend(obj1[k], obj2[k]);\n else objOut[k] = v;\n }\n\n keys = Object.keys(obj2);\n for(i = 0; i < keys.length; i++) {\n k = keys[i];\n v = obj2[k];\n if(typeof v !== 'object' || !(k in objOut) || typeof objOut[k] !== 'object') {\n objOut[k] = v;\n }\n }\n\n return objOut;\n};\n\nlib.titleCase = function(s) {\n return s.charAt(0).toUpperCase() + s.substr(1);\n};\n\nlib.containsAny = function(s, fragments) {\n for(var i = 0; i < fragments.length; i++) {\n if(s.indexOf(fragments[i]) !== -1) return true;\n }\n return false;\n};\n\nlib.isIE = function() {\n return typeof window.navigator.msSaveBlob !== 'undefined';\n};\n\nvar IS_SAFARI_REGEX = /Version\\/[\\d\\.]+.*Safari/;\nlib.isSafari = function() {\n return IS_SAFARI_REGEX.test(window.navigator.userAgent);\n};\n\nvar IS_IOS_REGEX = /iPad|iPhone|iPod/;\nlib.isIOS = function() {\n return IS_IOS_REGEX.test(window.navigator.userAgent);\n};\n\nvar FIREFOX_VERSION_REGEX = /Firefox\\/(\\d+)\\.\\d+/;\nlib.getFirefoxVersion = function() {\n var match = FIREFOX_VERSION_REGEX.exec(window.navigator.userAgent);\n if(match && match.length === 2) {\n var versionInt = parseInt(match[1]);\n if(!isNaN(versionInt)) {\n return versionInt;\n }\n }\n return null;\n};\n\nlib.isD3Selection = function(obj) {\n return obj instanceof d3.selection;\n};\n\n/**\n * Append element to DOM only if not present.\n *\n * @param {d3 selection} parent : parent selection of the element in question\n * @param {string} nodeType : node type of element to append\n * @param {string} className (optional) : class name of element in question\n * @param {fn} enterFn (optional) : optional fn applied to entering elements only\n * @return {d3 selection} selection of new layer\n *\n * Previously, we were using the following pattern:\n *\n * ```\n * var sel = parent.selectAll('.' + className)\n * .data([0]);\n *\n * sel.enter().append(nodeType)\n * .classed(className, true);\n *\n * return sel;\n * ```\n *\n * in numerous places in our codebase to achieve the same behavior.\n *\n * The logic below performs much better, mostly as we are using\n * `.select` instead `.selectAll` that is `querySelector` instead of\n * `querySelectorAll`.\n *\n */\nlib.ensureSingle = function(parent, nodeType, className, enterFn) {\n var sel = parent.select(nodeType + (className ? '.' + className : ''));\n if(sel.size()) return sel;\n\n var layer = parent.append(nodeType);\n if(className) layer.classed(className, true);\n if(enterFn) layer.call(enterFn);\n\n return layer;\n};\n\n/**\n * Same as Lib.ensureSingle, but using id as selector.\n * This version is mostly used for clipPath nodes.\n *\n * @param {d3 selection} parent : parent selection of the element in question\n * @param {string} nodeType : node type of element to append\n * @param {string} id : id of element in question\n * @param {fn} enterFn (optional) : optional fn applied to entering elements only\n * @return {d3 selection} selection of new layer\n */\nlib.ensureSingleById = function(parent, nodeType, id, enterFn) {\n var sel = parent.select(nodeType + '#' + id);\n if(sel.size()) return sel;\n\n var layer = parent.append(nodeType).attr('id', id);\n if(enterFn) layer.call(enterFn);\n\n return layer;\n};\n\n/**\n * Converts a string path to an object.\n *\n * When given a string containing an array element, it will create a `null`\n * filled array of the given size.\n *\n * @example\n * lib.objectFromPath('nested.test[2].path', 'value');\n * // returns { nested: { test: [null, null, { path: 'value' }]}\n *\n * @param {string} path to nested value\n * @param {*} any value to be set\n *\n * @return {Object} the constructed object with a full nested path\n */\nlib.objectFromPath = function(path, value) {\n var keys = path.split('.');\n var tmpObj;\n var obj = tmpObj = {};\n\n for(var i = 0; i < keys.length; i++) {\n var key = keys[i];\n var el = null;\n\n var parts = keys[i].match(/(.*)\\[([0-9]+)\\]/);\n\n if(parts) {\n key = parts[1];\n el = parts[2];\n\n tmpObj = tmpObj[key] = [];\n\n if(i === keys.length - 1) {\n tmpObj[el] = value;\n } else {\n tmpObj[el] = {};\n }\n\n tmpObj = tmpObj[el];\n } else {\n if(i === keys.length - 1) {\n tmpObj[key] = value;\n } else {\n tmpObj[key] = {};\n }\n\n tmpObj = tmpObj[key];\n }\n }\n\n return obj;\n};\n\n/**\n * Iterate through an object in-place, converting dotted properties to objects.\n *\n * Examples:\n *\n * lib.expandObjectPaths({'nested.test.path': 'value'});\n * => { nested: { test: {path: 'value'}}}\n *\n * It also handles array notation, e.g.:\n *\n * lib.expandObjectPaths({'foo[1].bar': 'value'});\n * => { foo: [null, {bar: value}] }\n *\n * It handles merges the results when two properties are specified in parallel:\n *\n * lib.expandObjectPaths({'foo[1].bar': 10, 'foo[0].bar': 20});\n * => { foo: [{bar: 10}, {bar: 20}] }\n *\n * It does NOT, however, merge multiple multiply-nested arrays::\n *\n * lib.expandObjectPaths({'marker[1].range[1]': 5, 'marker[1].range[0]': 4})\n * => { marker: [null, {range: 4}] }\n */\n\n// Store this to avoid recompiling regex on *every* prop since this may happen many\n// many times for animations. Could maybe be inside the function. Not sure about\n// scoping vs. recompilation tradeoff, but at least it's not just inlining it into\n// the inner loop.\nvar dottedPropertyRegex = /^([^\\[\\.]+)\\.(.+)?/;\nvar indexedPropertyRegex = /^([^\\.]+)\\[([0-9]+)\\](\\.)?(.+)?/;\n\nlib.expandObjectPaths = function(data) {\n var match, key, prop, datum, idx, dest, trailingPath;\n if(typeof data === 'object' && !Array.isArray(data)) {\n for(key in data) {\n if(data.hasOwnProperty(key)) {\n if((match = key.match(dottedPropertyRegex))) {\n datum = data[key];\n prop = match[1];\n\n delete data[key];\n\n data[prop] = lib.extendDeepNoArrays(data[prop] || {}, lib.objectFromPath(key, lib.expandObjectPaths(datum))[prop]);\n } else if((match = key.match(indexedPropertyRegex))) {\n datum = data[key];\n\n prop = match[1];\n idx = parseInt(match[2]);\n\n delete data[key];\n\n data[prop] = data[prop] || [];\n\n if(match[3] === '.') {\n // This is the case where theere are subsequent properties into which\n // we must recurse, e.g. transforms[0].value\n trailingPath = match[4];\n dest = data[prop][idx] = data[prop][idx] || {};\n\n // NB: Extend deep no arrays prevents this from working on multiple\n // nested properties in the same object, e.g.\n //\n // {\n // foo[0].bar[1].range\n // foo[0].bar[0].range\n // }\n //\n // In this case, the extendDeepNoArrays will overwrite one array with\n // the other, so that both properties *will not* be present in the\n // result. Fixing this would require a more intelligent tracking\n // of changes and merging than extendDeepNoArrays currently accomplishes.\n lib.extendDeepNoArrays(dest, lib.objectFromPath(trailingPath, lib.expandObjectPaths(datum)));\n } else {\n // This is the case where this property is the end of the line,\n // e.g. xaxis.range[0]\n data[prop][idx] = lib.expandObjectPaths(datum);\n }\n } else {\n data[key] = lib.expandObjectPaths(data[key]);\n }\n }\n }\n }\n\n return data;\n};\n\n/**\n * Converts value to string separated by the provided separators.\n *\n * @example\n * lib.numSeparate(2016, '.,');\n * // returns '2016'\n *\n * @example\n * lib.numSeparate(3000, '.,', true);\n * // returns '3,000'\n *\n * @example\n * lib.numSeparate(1234.56, '|,')\n * // returns '1,234|56'\n *\n * @param {string|number} value the value to be converted\n * @param {string} separators string of decimal, then thousands separators\n * @param {boolean} separatethousands boolean, 4-digit integers are separated if true\n *\n * @return {string} the value that has been separated\n */\nlib.numSeparate = function(value, separators, separatethousands) {\n if(!separatethousands) separatethousands = false;\n\n if(typeof separators !== 'string' || separators.length === 0) {\n throw new Error('Separator string required for formatting!');\n }\n\n if(typeof value === 'number') {\n value = String(value);\n }\n\n var thousandsRe = /(\\d+)(\\d{3})/;\n var decimalSep = separators.charAt(0);\n var thouSep = separators.charAt(1);\n\n var x = value.split('.');\n var x1 = x[0];\n var x2 = x.length > 1 ? decimalSep + x[1] : '';\n\n // Years are ignored for thousands separators\n if(thouSep && (x.length > 1 || x1.length > 4 || separatethousands)) {\n while(thousandsRe.test(x1)) {\n x1 = x1.replace(thousandsRe, '$1' + thouSep + '$2');\n }\n }\n\n return x1 + x2;\n};\n\nlib.TEMPLATE_STRING_REGEX = /%{([^\\s%{}:]*)([:|\\|][^}]*)?}/g;\nvar SIMPLE_PROPERTY_REGEX = /^\\w*$/;\n\n/**\n * Substitute values from an object into a string\n *\n * Examples:\n * Lib.templateString('name: %{trace}', {trace: 'asdf'}) --> 'name: asdf'\n * Lib.templateString('name: %{trace[0].name}', {trace: [{name: 'asdf'}]}) --> 'name: asdf'\n *\n * @param {string} input string containing %{...} template strings\n * @param {obj} data object containing substitution values\n *\n * @return {string} templated string\n */\nlib.templateString = function(string, obj) {\n // Not all that useful, but cache nestedProperty instantiation\n // just in case it speeds things up *slightly*:\n var getterCache = {};\n\n return string.replace(lib.TEMPLATE_STRING_REGEX, function(dummy, key) {\n var v;\n if(SIMPLE_PROPERTY_REGEX.test(key)) {\n v = obj[key];\n } else {\n getterCache[key] = getterCache[key] || lib.nestedProperty(obj, key).get;\n v = getterCache[key]();\n }\n return lib.isValidTextValue(v) ? v : '';\n });\n};\n\nvar hovertemplateWarnings = {\n max: 10,\n count: 0,\n name: 'hovertemplate'\n};\nlib.hovertemplateString = function() {\n return templateFormatString.apply(hovertemplateWarnings, arguments);\n};\n\nvar texttemplateWarnings = {\n max: 10,\n count: 0,\n name: 'texttemplate'\n};\nlib.texttemplateString = function() {\n return templateFormatString.apply(texttemplateWarnings, arguments);\n};\n\nvar TEMPLATE_STRING_FORMAT_SEPARATOR = /^[:|\\|]/;\n/**\n * Substitute values from an object into a string and optionally formats them using d3-format,\n * or fallback to associated labels.\n *\n * Examples:\n * Lib.hovertemplateString('name: %{trace}', {trace: 'asdf'}) --> 'name: asdf'\n * Lib.hovertemplateString('name: %{trace[0].name}', {trace: [{name: 'asdf'}]}) --> 'name: asdf'\n * Lib.hovertemplateString('price: %{y:$.2f}', {y: 1}) --> 'price: $1.00'\n *\n * @param {string} input string containing %{...:...} template strings\n * @param {obj} data object containing fallback text when no formatting is specified, ex.: {yLabel: 'formattedYValue'}\n * @param {obj} d3 locale\n * @param {obj} data objects containing substitution values\n *\n * @return {string} templated string\n */\nfunction templateFormatString(string, labels, d3locale) {\n var opts = this;\n var args = arguments;\n if(!labels) labels = {};\n // Not all that useful, but cache nestedProperty instantiation\n // just in case it speeds things up *slightly*:\n var getterCache = {};\n\n return string.replace(lib.TEMPLATE_STRING_REGEX, function(match, rawKey, format) {\n var isOther =\n rawKey === 'xother' ||\n rawKey === 'yother';\n\n var isSpaceOther =\n rawKey === '_xother' ||\n rawKey === '_yother';\n\n var isSpaceOtherSpace =\n rawKey === '_xother_' ||\n rawKey === '_yother_';\n\n var isOtherSpace =\n rawKey === 'xother_' ||\n rawKey === 'yother_';\n\n var hasOther = isOther || isSpaceOther || isOtherSpace || isSpaceOtherSpace;\n\n var key = rawKey;\n if(isSpaceOther || isSpaceOtherSpace) key = key.substring(1);\n if(isOtherSpace || isSpaceOtherSpace) key = key.substring(0, key.length - 1);\n\n var value;\n if(hasOther) {\n value = labels[key];\n if(value === undefined) return '';\n } else {\n var obj, i;\n for(i = 3; i < args.length; i++) {\n obj = args[i];\n if(!obj) continue;\n if(obj.hasOwnProperty(key)) {\n value = obj[key];\n break;\n }\n\n if(!SIMPLE_PROPERTY_REGEX.test(key)) {\n value = lib.nestedProperty(obj, key).get();\n value = getterCache[key] || lib.nestedProperty(obj, key).get();\n if(value) getterCache[key] = value;\n }\n if(value !== undefined) break;\n }\n }\n\n if(value === undefined && opts) {\n if(opts.count < opts.max) {\n lib.warn('Variable \\'' + key + '\\' in ' + opts.name + ' could not be found!');\n value = match;\n }\n\n if(opts.count === opts.max) {\n lib.warn('Too many ' + opts.name + ' warnings - additional warnings will be suppressed');\n }\n opts.count++;\n\n return match;\n }\n\n if(format) {\n var fmt;\n if(format[0] === ':') {\n fmt = d3locale ? d3locale.numberFormat : lib.numberFormat;\n value = fmt(format.replace(TEMPLATE_STRING_FORMAT_SEPARATOR, ''))(value);\n }\n\n if(format[0] === '|') {\n fmt = d3locale ? d3locale.timeFormat : utcFormat;\n var ms = lib.dateTime2ms(value);\n value = lib.formatDate(ms, format.replace(TEMPLATE_STRING_FORMAT_SEPARATOR, ''), false, fmt);\n }\n } else {\n var keyLabel = key + 'Label';\n if(labels.hasOwnProperty(keyLabel)) value = labels[keyLabel];\n }\n\n if(hasOther) {\n value = '(' + value + ')';\n if(isSpaceOther || isSpaceOtherSpace) value = ' ' + value;\n if(isOtherSpace || isSpaceOtherSpace) value = value + ' ';\n }\n\n return value;\n });\n}\n\n/*\n * alphanumeric string sort, tailored for subplot IDs like scene2, scene10, x10y13 etc\n */\nvar char0 = 48;\nvar char9 = 57;\nlib.subplotSort = function(a, b) {\n var l = Math.min(a.length, b.length) + 1;\n var numA = 0;\n var numB = 0;\n for(var i = 0; i < l; i++) {\n var charA = a.charCodeAt(i) || 0;\n var charB = b.charCodeAt(i) || 0;\n var isNumA = charA >= char0 && charA <= char9;\n var isNumB = charB >= char0 && charB <= char9;\n\n if(isNumA) numA = 10 * numA + charA - char0;\n if(isNumB) numB = 10 * numB + charB - char0;\n\n if(!isNumA || !isNumB) {\n if(numA !== numB) return numA - numB;\n if(charA !== charB) return charA - charB;\n }\n }\n return numB - numA;\n};\n\n// repeatable pseudorandom generator\nvar randSeed = 2000000000;\n\nlib.seedPseudoRandom = function() {\n randSeed = 2000000000;\n};\n\nlib.pseudoRandom = function() {\n var lastVal = randSeed;\n randSeed = (69069 * randSeed + 1) % 4294967296;\n // don't let consecutive vals be too close together\n // gets away from really trying to be random, in favor of better local uniformity\n if(Math.abs(randSeed - lastVal) < 429496729) return lib.pseudoRandom();\n return randSeed / 4294967296;\n};\n\n\n/** Fill hover 'pointData' container with 'correct' hover text value\n *\n * - If trace hoverinfo contains a 'text' flag and hovertext is not set,\n * the text elements will be seen in the hover labels.\n *\n * - If trace hoverinfo contains a 'text' flag and hovertext is set,\n * hovertext takes precedence over text\n * i.e. the hoverinfo elements will be seen in the hover labels\n *\n * @param {object} calcPt\n * @param {object} trace\n * @param {object || array} contOut (mutated here)\n */\nlib.fillText = function(calcPt, trace, contOut) {\n var fill = Array.isArray(contOut) ?\n function(v) { contOut.push(v); } :\n function(v) { contOut.text = v; };\n\n var htx = lib.extractOption(calcPt, trace, 'htx', 'hovertext');\n if(lib.isValidTextValue(htx)) return fill(htx);\n\n var tx = lib.extractOption(calcPt, trace, 'tx', 'text');\n if(lib.isValidTextValue(tx)) return fill(tx);\n};\n\n// accept all truthy values and 0 (which gets cast to '0' in the hover labels)\nlib.isValidTextValue = function(v) {\n return v || v === 0;\n};\n\n/**\n * @param {number} ratio\n * @param {number} n (number of decimal places)\n */\nlib.formatPercent = function(ratio, n) {\n n = n || 0;\n var str = (Math.round(100 * ratio * Math.pow(10, n)) * Math.pow(0.1, n)).toFixed(n) + '%';\n for(var i = 0; i < n; i++) {\n if(str.indexOf('.') !== -1) {\n str = str.replace('0%', '%');\n str = str.replace('.%', '%');\n }\n }\n return str;\n};\n\nlib.isHidden = function(gd) {\n var display = window.getComputedStyle(gd).display;\n return !display || display === 'none';\n};\n\nlib.strTranslate = function(x, y) {\n return (x || y) ? 'translate(' + x + ',' + y + ')' : '';\n};\n\nlib.strRotate = function(a) {\n return a ? 'rotate(' + a + ')' : '';\n};\n\nlib.strScale = function(s) {\n return s !== 1 ? 'scale(' + s + ')' : '';\n};\n\n/** Return transform text for bar bar-like rectangles and pie-like slices\n * @param {object} transform\n * - targetX: desired position on the x-axis\n * - targetY: desired position on the y-axis\n * - textX: text middle position on the x-axis\n * - textY: text middle position on the y-axis\n * - anchorX: (optional) text anchor position on the x-axis (computed from textX), zero for middle anchor\n * - anchorY: (optional) text anchor position on the y-axis (computed from textY), zero for middle anchor\n * - scale: (optional) scale applied after translate\n * - rotate: (optional) rotation applied after scale\n * - noCenter: when defined no extra arguments needed in rotation\n */\nlib.getTextTransform = function(transform) {\n var noCenter = transform.noCenter;\n var textX = transform.textX;\n var textY = transform.textY;\n var targetX = transform.targetX;\n var targetY = transform.targetY;\n var anchorX = transform.anchorX || 0;\n var anchorY = transform.anchorY || 0;\n var rotate = transform.rotate;\n var scale = transform.scale;\n if(!scale) scale = 0;\n else if(scale > 1) scale = 1;\n\n return (\n lib.strTranslate(\n targetX - scale * (textX + anchorX),\n targetY - scale * (textY + anchorY)\n ) +\n lib.strScale(scale) +\n (rotate ?\n 'rotate(' + rotate +\n (noCenter ? '' : ' ' + textX + ' ' + textY) +\n ')' : ''\n )\n );\n};\n\nlib.ensureUniformFontSize = function(gd, baseFont) {\n var out = lib.extendFlat({}, baseFont);\n out.size = Math.max(\n baseFont.size,\n gd._fullLayout.uniformtext.minsize || 0\n );\n return out;\n};\n\n/**\n * provide a human-readable list e.g. \"A, B, C and D\" with an ending separator\n *\n * @param {array} arr : the array to join\n * @param {string} mainSeparator : main separator\n * @param {string} lastSeparator : last separator\n *\n * @return {string} : joined list\n */\nlib.join2 = function(arr, mainSeparator, lastSeparator) {\n var len = arr.length;\n if(len > 1) {\n return arr.slice(0, -1).join(mainSeparator) + lastSeparator + arr[len - 1];\n }\n return arr.join(mainSeparator);\n};\n\nlib.bigFont = function(size) {\n return Math.round(1.2 * size);\n};\n\nvar firefoxVersion = lib.getFirefoxVersion();\n// see https://bugzilla.mozilla.org/show_bug.cgi?id=1684973\nvar isProblematicFirefox = firefoxVersion !== null && firefoxVersion < 86;\n\n/**\n * Return the mouse position from the last event registered by D3.\n * @returns An array with two numbers, representing the x and y coordinates of the mouse pointer\n * at the event relative to the targeted node.\n */\nlib.getPositionFromD3Event = function() {\n if(isProblematicFirefox) {\n // layerX and layerY are non-standard, so we only fallback to them when we have to:\n return [\n d3.event.layerX,\n d3.event.layerY\n ];\n } else {\n return [\n d3.event.offsetX,\n d3.event.offsetY\n ];\n }\n};\n\n},{\"../constants/numerical\":479,\"./anchor_utils\":483,\"./angles\":484,\"./array\":485,\"./clean_number\":486,\"./clear_responsive\":488,\"./coerce\":489,\"./dates\":490,\"./dom\":491,\"./extend\":493,\"./filter_unique\":494,\"./filter_visible\":495,\"./geometry2d\":498,\"./identity\":501,\"./increment\":502,\"./is_plain_object\":504,\"./keyed_container\":505,\"./localize\":506,\"./loggers\":507,\"./make_trace_groups\":508,\"./matrix\":509,\"./mod\":510,\"./nested_property\":511,\"./noop\":512,\"./notifier\":513,\"./preserve_drawing_buffer\":517,\"./push_unique\":518,\"./regex\":520,\"./relative_attr\":521,\"./relink_private\":522,\"./search\":523,\"./sort_object_keys\":526,\"./stats\":527,\"./throttle\":530,\"./to_log_range\":531,\"@plotly/d3\":58,\"d3-format\":112,\"d3-time-format\":120,\"fast-isnumeric\":190}],504:[function(_dereq_,module,exports){\n'use strict';\n\n// more info: http://stackoverflow.com/questions/18531624/isplainobject-thing\nmodule.exports = function isPlainObject(obj) {\n // We need to be a little less strict in the `imagetest` container because\n // of how async image requests are handled.\n //\n // N.B. isPlainObject(new Constructor()) will return true in `imagetest`\n if(window && window.process && window.process.versions) {\n return Object.prototype.toString.call(obj) === '[object Object]';\n }\n\n return (\n Object.prototype.toString.call(obj) === '[object Object]' &&\n Object.getPrototypeOf(obj).hasOwnProperty('hasOwnProperty')\n );\n};\n\n},{}],505:[function(_dereq_,module,exports){\n'use strict';\n\nvar nestedProperty = _dereq_('./nested_property');\n\nvar SIMPLE_PROPERTY_REGEX = /^\\w*$/;\n\n// bitmask for deciding what's updated. Sometimes the name needs to be updated,\n// sometimes the value needs to be updated, and sometimes both do. This is just\n// a simple way to track what's updated such that it's a simple OR operation to\n// assimilate new updates.\n//\n// The only exception is the UNSET bit that tracks when we need to explicitly\n// unset and remove the property. This concrn arises because of the special\n// way in which nestedProperty handles null/undefined. When you specify `null`,\n// it prunes any unused items in the tree. I ran into some issues with it getting\n// null vs undefined confused, so UNSET is just a bit that forces the property\n// update to send `null`, removing the property explicitly rather than setting\n// it to undefined.\nvar NONE = 0;\nvar NAME = 1;\nvar VALUE = 2;\nvar BOTH = 3;\nvar UNSET = 4;\n\nmodule.exports = function keyedContainer(baseObj, path, keyName, valueName) {\n keyName = keyName || 'name';\n valueName = valueName || 'value';\n var i, arr, baseProp;\n var changeTypes = {};\n\n if(path && path.length) {\n baseProp = nestedProperty(baseObj, path);\n arr = baseProp.get();\n } else {\n arr = baseObj;\n }\n\n path = path || '';\n\n // Construct an index:\n var indexLookup = {};\n if(arr) {\n for(i = 0; i < arr.length; i++) {\n indexLookup[arr[i][keyName]] = i;\n }\n }\n\n var isSimpleValueProp = SIMPLE_PROPERTY_REGEX.test(valueName);\n\n var obj = {\n set: function(name, value) {\n var changeType = value === null ? UNSET : NONE;\n\n // create the base array if necessary\n if(!arr) {\n if(!baseProp || changeType === UNSET) return;\n\n arr = [];\n baseProp.set(arr);\n }\n\n var idx = indexLookup[name];\n if(idx === undefined) {\n if(changeType === UNSET) return;\n\n changeType = changeType | BOTH;\n idx = arr.length;\n indexLookup[name] = idx;\n } else if(value !== (isSimpleValueProp ? arr[idx][valueName] : nestedProperty(arr[idx], valueName).get())) {\n changeType = changeType | VALUE;\n }\n\n var newValue = arr[idx] = arr[idx] || {};\n newValue[keyName] = name;\n\n if(isSimpleValueProp) {\n newValue[valueName] = value;\n } else {\n nestedProperty(newValue, valueName).set(value);\n }\n\n // If it's not an unset, force that bit to be unset. This is all related to the fact\n // that undefined and null are a bit specially implemented in nestedProperties.\n if(value !== null) {\n changeType = changeType & ~UNSET;\n }\n\n changeTypes[idx] = changeTypes[idx] | changeType;\n\n return obj;\n },\n get: function(name) {\n if(!arr) return;\n\n var idx = indexLookup[name];\n\n if(idx === undefined) {\n return undefined;\n } else if(isSimpleValueProp) {\n return arr[idx][valueName];\n } else {\n return nestedProperty(arr[idx], valueName).get();\n }\n },\n rename: function(name, newName) {\n var idx = indexLookup[name];\n\n if(idx === undefined) return obj;\n changeTypes[idx] = changeTypes[idx] | NAME;\n\n indexLookup[newName] = idx;\n delete indexLookup[name];\n\n arr[idx][keyName] = newName;\n\n return obj;\n },\n remove: function(name) {\n var idx = indexLookup[name];\n\n if(idx === undefined) return obj;\n\n var object = arr[idx];\n if(Object.keys(object).length > 2) {\n // This object contains more than just the key/value, so unset\n // the value without modifying the entry otherwise:\n changeTypes[idx] = changeTypes[idx] | VALUE;\n return obj.set(name, null);\n }\n\n if(isSimpleValueProp) {\n for(i = idx; i < arr.length; i++) {\n changeTypes[i] = changeTypes[i] | BOTH;\n }\n for(i = idx; i < arr.length; i++) {\n indexLookup[arr[i][keyName]]--;\n }\n arr.splice(idx, 1);\n delete(indexLookup[name]);\n } else {\n // Perform this update *strictly* so we can check whether the result's\n // been pruned. If so, it's a removal. If not, it's a value unset only.\n nestedProperty(object, valueName).set(null);\n\n // Now check if the top level nested property has any keys left. If so,\n // the object still has values so we only want to unset the key. If not,\n // the entire object can be removed since there's no other data.\n // var topLevelKeys = Object.keys(object[valueName.split('.')[0]] || []);\n\n changeTypes[idx] = changeTypes[idx] | VALUE | UNSET;\n }\n\n return obj;\n },\n constructUpdate: function() {\n var astr, idx;\n var update = {};\n var changed = Object.keys(changeTypes);\n for(var i = 0; i < changed.length; i++) {\n idx = changed[i];\n astr = path + '[' + idx + ']';\n if(arr[idx]) {\n if(changeTypes[idx] & NAME) {\n update[astr + '.' + keyName] = arr[idx][keyName];\n }\n if(changeTypes[idx] & VALUE) {\n if(isSimpleValueProp) {\n update[astr + '.' + valueName] = (changeTypes[idx] & UNSET) ? null : arr[idx][valueName];\n } else {\n update[astr + '.' + valueName] = (changeTypes[idx] & UNSET) ? null : nestedProperty(arr[idx], valueName).get();\n }\n }\n } else {\n update[astr] = null;\n }\n }\n\n return update;\n }\n };\n\n return obj;\n};\n\n},{\"./nested_property\":511}],506:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../registry');\n\n/**\n * localize: translate a string for the current locale\n *\n * @param {object} gd: the graphDiv for context\n * gd._context.locale determines the language (& optional region/country)\n * the dictionary for each locale may either be supplied in\n * gd._context.locales or globally via Plotly.register\n * @param {string} s: the string to translate\n */\nmodule.exports = function localize(gd, s) {\n var locale = gd._context.locale;\n\n /*\n * Priority of lookup:\n * contextDicts[locale],\n * registeredDicts[locale],\n * contextDicts[baseLocale], (if baseLocale is distinct)\n * registeredDicts[baseLocale]\n * Return the first translation we find.\n * This way if you have a regionalization you are allowed to specify\n * only what's different from the base locale, everything else will\n * fall back on the base.\n */\n for(var i = 0; i < 2; i++) {\n var locales = gd._context.locales;\n for(var j = 0; j < 2; j++) {\n var dict = (locales[locale] || {}).dictionary;\n if(dict) {\n var out = dict[s];\n if(out) return out;\n }\n locales = Registry.localeRegistry;\n }\n\n var baseLocale = locale.split('-')[0];\n if(baseLocale === locale) break;\n locale = baseLocale;\n }\n\n return s;\n};\n\n},{\"../registry\":638}],507:[function(_dereq_,module,exports){\n'use strict';\n\n/* eslint-disable no-console */\n\nvar dfltConfig = _dereq_('../plot_api/plot_config').dfltConfig;\n\nvar notifier = _dereq_('./notifier');\n\nvar loggers = module.exports = {};\n\n/**\n * ------------------------------------------\n * debugging tools\n * ------------------------------------------\n */\n\nloggers.log = function() {\n var i;\n\n if(dfltConfig.logging > 1) {\n var messages = ['LOG:'];\n for(i = 0; i < arguments.length; i++) {\n messages.push(arguments[i]);\n }\n console.trace.apply(console, messages);\n }\n\n if(dfltConfig.notifyOnLogging > 1) {\n var lines = [];\n for(i = 0; i < arguments.length; i++) {\n lines.push(arguments[i]);\n }\n notifier(lines.join('
'), 'long');\n }\n};\n\nloggers.warn = function() {\n var i;\n\n if(dfltConfig.logging > 0) {\n var messages = ['WARN:'];\n for(i = 0; i < arguments.length; i++) {\n messages.push(arguments[i]);\n }\n console.trace.apply(console, messages);\n }\n\n if(dfltConfig.notifyOnLogging > 0) {\n var lines = [];\n for(i = 0; i < arguments.length; i++) {\n lines.push(arguments[i]);\n }\n notifier(lines.join('
'), 'stick');\n }\n};\n\nloggers.error = function() {\n var i;\n\n if(dfltConfig.logging > 0) {\n var messages = ['ERROR:'];\n for(i = 0; i < arguments.length; i++) {\n messages.push(arguments[i]);\n }\n console.error.apply(console, messages);\n }\n\n if(dfltConfig.notifyOnLogging > 0) {\n var lines = [];\n for(i = 0; i < arguments.length; i++) {\n lines.push(arguments[i]);\n }\n notifier(lines.join('
'), 'stick');\n }\n};\n\n},{\"../plot_api/plot_config\":541,\"./notifier\":513}],508:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\n/**\n * General helper to manage trace groups based on calcdata\n *\n * @param {d3.selection} traceLayer: a selection containing a single group\n * to draw these traces into\n * @param {array} cdModule: array of calcdata items for this\n * module and subplot combination. Assumes the calcdata item for each\n * trace is an array with the fullData trace attached to the first item.\n * @param {string} cls: the class attribute to give each trace group\n * so you can give multiple classes separated by spaces\n */\nmodule.exports = function makeTraceGroups(traceLayer, cdModule, cls) {\n var traces = traceLayer.selectAll('g.' + cls.replace(/\\s/g, '.'))\n .data(cdModule, function(cd) { return cd[0].trace.uid; });\n\n traces.exit().remove();\n\n traces.enter().append('g')\n .attr('class', cls);\n\n traces.order();\n\n // stash ref node to trace group in calcdata,\n // useful for (fast) styleOnSelect\n var k = traceLayer.classed('rangeplot') ? 'nodeRangePlot3' : 'node3';\n traces.each(function(cd) { cd[0][k] = d3.select(this); });\n\n return traces;\n};\n\n},{\"@plotly/d3\":58}],509:[function(_dereq_,module,exports){\n'use strict';\n\nvar mat4X4 = _dereq_('gl-mat4');\n\nexports.init2dArray = function(rowLength, colLength) {\n var array = new Array(rowLength);\n for(var i = 0; i < rowLength; i++) array[i] = new Array(colLength);\n return array;\n};\n\n/**\n * transpose a (possibly ragged) 2d array z. inspired by\n * http://stackoverflow.com/questions/17428587/\n * transposing-a-2d-array-in-javascript\n */\nexports.transposeRagged = function(z) {\n var maxlen = 0;\n var zlen = z.length;\n var i, j;\n // Maximum row length:\n for(i = 0; i < zlen; i++) maxlen = Math.max(maxlen, z[i].length);\n\n var t = new Array(maxlen);\n for(i = 0; i < maxlen; i++) {\n t[i] = new Array(zlen);\n for(j = 0; j < zlen; j++) t[i][j] = z[j][i];\n }\n\n return t;\n};\n\n// our own dot function so that we don't need to include numeric\nexports.dot = function(x, y) {\n if(!(x.length && y.length) || x.length !== y.length) return null;\n\n var len = x.length;\n var out;\n var i;\n\n if(x[0].length) {\n // mat-vec or mat-mat\n out = new Array(len);\n for(i = 0; i < len; i++) out[i] = exports.dot(x[i], y);\n } else if(y[0].length) {\n // vec-mat\n var yTranspose = exports.transposeRagged(y);\n out = new Array(yTranspose.length);\n for(i = 0; i < yTranspose.length; i++) out[i] = exports.dot(x, yTranspose[i]);\n } else {\n // vec-vec\n out = 0;\n for(i = 0; i < len; i++) out += x[i] * y[i];\n }\n\n return out;\n};\n\n// translate by (x,y)\nexports.translationMatrix = function(x, y) {\n return [[1, 0, x], [0, 1, y], [0, 0, 1]];\n};\n\n// rotate by alpha around (0,0)\nexports.rotationMatrix = function(alpha) {\n var a = alpha * Math.PI / 180;\n return [[Math.cos(a), -Math.sin(a), 0],\n [Math.sin(a), Math.cos(a), 0],\n [0, 0, 1]];\n};\n\n// rotate by alpha around (x,y)\nexports.rotationXYMatrix = function(a, x, y) {\n return exports.dot(\n exports.dot(exports.translationMatrix(x, y),\n exports.rotationMatrix(a)),\n exports.translationMatrix(-x, -y));\n};\n\n// applies a 3D transformation matrix to either x, y and z params\n// Note: z is optional\nexports.apply3DTransform = function(transform) {\n return function() {\n var args = arguments;\n var xyz = arguments.length === 1 ? args[0] : [args[0], args[1], args[2] || 0];\n return exports.dot(transform, [xyz[0], xyz[1], xyz[2], 1]).slice(0, 3);\n };\n};\n\n// applies a 2D transformation matrix to either x and y params or an [x,y] array\nexports.apply2DTransform = function(transform) {\n return function() {\n var args = arguments;\n if(args.length === 3) {\n args = args[0];\n } // from map\n var xy = arguments.length === 1 ? args[0] : [args[0], args[1]];\n return exports.dot(transform, [xy[0], xy[1], 1]).slice(0, 2);\n };\n};\n\n// applies a 2D transformation matrix to an [x1,y1,x2,y2] array (to transform a segment)\nexports.apply2DTransform2 = function(transform) {\n var at = exports.apply2DTransform(transform);\n return function(xys) {\n return at(xys.slice(0, 2)).concat(at(xys.slice(2, 4)));\n };\n};\n\nexports.convertCssMatrix = function(m) {\n if(m) {\n var len = m.length;\n if(len === 16) return m;\n if(len === 6) {\n // converts a 2x3 css transform matrix to a 4x4 matrix see https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/matrix\n return [\n m[0], m[1], 0, 0,\n m[2], m[3], 0, 0,\n 0, 0, 1, 0,\n m[4], m[5], 0, 1\n ];\n }\n }\n return [\n 1, 0, 0, 0,\n 0, 1, 0, 0,\n 0, 0, 1, 0,\n 0, 0, 0, 1\n ];\n};\n\n// find the inverse for a 4x4 affine transform matrix\nexports.inverseTransformMatrix = function(m) {\n var out = [];\n mat4X4.invert(out, m);\n return [\n [out[0], out[1], out[2], out[3]],\n [out[4], out[5], out[6], out[7]],\n [out[8], out[9], out[10], out[11]],\n [out[12], out[13], out[14], out[15]]\n ];\n};\n\n},{\"gl-mat4\":210}],510:[function(_dereq_,module,exports){\n'use strict';\n\n/**\n * sanitized modulus function that always returns in the range [0, d)\n * rather than (-d, 0] if v is negative\n */\nfunction mod(v, d) {\n var out = v % d;\n return out < 0 ? out + d : out;\n}\n\n/**\n * sanitized modulus function that always returns in the range [-d/2, d/2]\n * rather than (-d, 0] if v is negative\n */\nfunction modHalf(v, d) {\n return Math.abs(v) > (d / 2) ?\n v - Math.round(v / d) * d :\n v;\n}\n\nmodule.exports = {\n mod: mod,\n modHalf: modHalf\n};\n\n},{}],511:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar isArrayOrTypedArray = _dereq_('./array').isArrayOrTypedArray;\n\n/**\n * convert a string s (such as 'xaxis.range[0]')\n * representing a property of nested object into set and get methods\n * also return the string and object so we don't have to keep track of them\n * allows [-1] for an array index, to set a property inside all elements\n * of an array\n * eg if obj = {arr: [{a: 1}, {a: 2}]}\n * you can do p = nestedProperty(obj, 'arr[-1].a')\n * but you cannot set the array itself this way, to do that\n * just set the whole array.\n * eg if obj = {arr: [1, 2, 3]}\n * you can't do nestedProperty(obj, 'arr[-1]').set(5)\n * but you can do nestedProperty(obj, 'arr').set([5, 5, 5])\n */\nmodule.exports = function nestedProperty(container, propStr) {\n if(isNumeric(propStr)) propStr = String(propStr);\n else if(typeof propStr !== 'string' ||\n propStr.substr(propStr.length - 4) === '[-1]') {\n throw 'bad property string';\n }\n\n var j = 0;\n var propParts = propStr.split('.');\n var indexed;\n var indices;\n var i;\n\n // check for parts of the nesting hierarchy that are numbers (ie array elements)\n while(j < propParts.length) {\n // look for non-bracket chars, then any number of [##] blocks\n indexed = String(propParts[j]).match(/^([^\\[\\]]*)((\\[\\-?[0-9]*\\])+)$/);\n if(indexed) {\n if(indexed[1]) propParts[j] = indexed[1];\n // allow propStr to start with bracketed array indices\n else if(j === 0) propParts.splice(0, 1);\n else throw 'bad property string';\n\n indices = indexed[2]\n .substr(1, indexed[2].length - 2)\n .split('][');\n\n for(i = 0; i < indices.length; i++) {\n j++;\n propParts.splice(j, 0, Number(indices[i]));\n }\n }\n j++;\n }\n\n if(typeof container !== 'object') {\n return badContainer(container, propStr, propParts);\n }\n\n return {\n set: npSet(container, propParts, propStr),\n get: npGet(container, propParts),\n astr: propStr,\n parts: propParts,\n obj: container\n };\n};\n\nfunction npGet(cont, parts) {\n return function() {\n var curCont = cont;\n var curPart;\n var allSame;\n var out;\n var i;\n var j;\n\n for(i = 0; i < parts.length - 1; i++) {\n curPart = parts[i];\n if(curPart === -1) {\n allSame = true;\n out = [];\n for(j = 0; j < curCont.length; j++) {\n out[j] = npGet(curCont[j], parts.slice(i + 1))();\n if(out[j] !== out[0]) allSame = false;\n }\n return allSame ? out[0] : out;\n }\n if(typeof curPart === 'number' && !isArrayOrTypedArray(curCont)) {\n return undefined;\n }\n curCont = curCont[curPart];\n if(typeof curCont !== 'object' || curCont === null) {\n return undefined;\n }\n }\n\n // only hit this if parts.length === 1\n if(typeof curCont !== 'object' || curCont === null) return undefined;\n\n out = curCont[parts[i]];\n if(out === null) return undefined;\n return out;\n };\n}\n\n/*\n * Can this value be deleted? We can delete `undefined`, and `null` except INSIDE an\n * *args* array.\n *\n * Previously we also deleted some `{}` and `[]`, in order to try and make set/unset\n * a net noop; but this causes far more complication than it's worth, and still had\n * lots of exceptions. See https://github.com/plotly/plotly.js/issues/1410\n *\n * *args* arrays get passed directly to API methods and we should respect null if\n * the user put it there, but otherwise null is deleted as we use it as code\n * in restyle/relayout/update for \"delete this value\" whereas undefined means\n * \"ignore this edit\"\n */\nvar ARGS_PATTERN = /(^|\\.)args\\[/;\nfunction isDeletable(val, propStr) {\n return (val === undefined) || (val === null && !propStr.match(ARGS_PATTERN));\n}\n\nfunction npSet(cont, parts, propStr) {\n return function(val) {\n var curCont = cont;\n var propPart = '';\n var containerLevels = [[cont, propPart]];\n var toDelete = isDeletable(val, propStr);\n var curPart;\n var i;\n\n for(i = 0; i < parts.length - 1; i++) {\n curPart = parts[i];\n\n if(typeof curPart === 'number' && !isArrayOrTypedArray(curCont)) {\n throw 'array index but container is not an array';\n }\n\n // handle special -1 array index\n if(curPart === -1) {\n toDelete = !setArrayAll(curCont, parts.slice(i + 1), val, propStr);\n if(toDelete) break;\n else return;\n }\n\n if(!checkNewContainer(curCont, curPart, parts[i + 1], toDelete)) {\n break;\n }\n\n curCont = curCont[curPart];\n\n if(typeof curCont !== 'object' || curCont === null) {\n throw 'container is not an object';\n }\n\n propPart = joinPropStr(propPart, curPart);\n\n containerLevels.push([curCont, propPart]);\n }\n\n if(toDelete) {\n if(i === parts.length - 1) {\n delete curCont[parts[i]];\n\n // The one bit of pruning we still do: drop `undefined` from the end of arrays.\n // In case someone has already unset previous items, continue until we hit a\n // non-undefined value.\n if(Array.isArray(curCont) && +parts[i] === curCont.length - 1) {\n while(curCont.length && curCont[curCont.length - 1] === undefined) {\n curCont.pop();\n }\n }\n }\n } else curCont[parts[i]] = val;\n };\n}\n\nfunction joinPropStr(propStr, newPart) {\n var toAdd = newPart;\n if(isNumeric(newPart)) toAdd = '[' + newPart + ']';\n else if(propStr) toAdd = '.' + newPart;\n\n return propStr + toAdd;\n}\n\n// handle special -1 array index\nfunction setArrayAll(containerArray, innerParts, val, propStr) {\n var arrayVal = isArrayOrTypedArray(val);\n var allSet = true;\n var thisVal = val;\n var thisPropStr = propStr.replace('-1', 0);\n var deleteThis = arrayVal ? false : isDeletable(val, thisPropStr);\n var firstPart = innerParts[0];\n var i;\n\n for(i = 0; i < containerArray.length; i++) {\n thisPropStr = propStr.replace('-1', i);\n if(arrayVal) {\n thisVal = val[i % val.length];\n deleteThis = isDeletable(thisVal, thisPropStr);\n }\n if(deleteThis) allSet = false;\n if(!checkNewContainer(containerArray, i, firstPart, deleteThis)) {\n continue;\n }\n npSet(containerArray[i], innerParts, propStr.replace('-1', i))(thisVal);\n }\n return allSet;\n}\n\n/**\n * make new sub-container as needed.\n * returns false if there's no container and none is needed\n * because we're only deleting an attribute\n */\nfunction checkNewContainer(container, part, nextPart, toDelete) {\n if(container[part] === undefined) {\n if(toDelete) return false;\n\n if(typeof nextPart === 'number') container[part] = [];\n else container[part] = {};\n }\n return true;\n}\n\nfunction badContainer(container, propStr, propParts) {\n return {\n set: function() { throw 'bad container'; },\n get: function() {},\n astr: propStr,\n parts: propParts,\n obj: container\n };\n}\n\n},{\"./array\":485,\"fast-isnumeric\":190}],512:[function(_dereq_,module,exports){\n'use strict';\n\n// Simple helper functions\n// none of these need any external deps\n\nmodule.exports = function noop() {};\n\n},{}],513:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar NOTEDATA = [];\n\n/**\n * notifier\n * @param {String} text The person's user name\n * @param {Number} [delay=1000] The delay time in milliseconds\n * or 'long' which provides 2000 ms delay time.\n * @return {undefined} this function does not return a value\n */\nmodule.exports = function(text, displayLength) {\n if(NOTEDATA.indexOf(text) !== -1) return;\n\n NOTEDATA.push(text);\n\n var ts = 1000;\n if(isNumeric(displayLength)) ts = displayLength;\n else if(displayLength === 'long') ts = 3000;\n\n var notifierContainer = d3.select('body')\n .selectAll('.plotly-notifier')\n .data([0]);\n notifierContainer.enter()\n .append('div')\n .classed('plotly-notifier', true);\n\n var notes = notifierContainer.selectAll('.notifier-note').data(NOTEDATA);\n\n function killNote(transition) {\n transition\n .duration(700)\n .style('opacity', 0)\n .each('end', function(thisText) {\n var thisIndex = NOTEDATA.indexOf(thisText);\n if(thisIndex !== -1) NOTEDATA.splice(thisIndex, 1);\n d3.select(this).remove();\n });\n }\n\n notes.enter().append('div')\n .classed('notifier-note', true)\n .style('opacity', 0)\n .each(function(thisText) {\n var note = d3.select(this);\n\n note.append('button')\n .classed('notifier-close', true)\n .html('×')\n .on('click', function() {\n note.transition().call(killNote);\n });\n\n var p = note.append('p');\n var lines = thisText.split(//g);\n for(var i = 0; i < lines.length; i++) {\n if(i) p.append('br');\n p.append('span').text(lines[i]);\n }\n\n if(displayLength === 'stick') {\n note.transition()\n .duration(350)\n .style('opacity', 1);\n } else {\n note.transition()\n .duration(700)\n .style('opacity', 1)\n .transition()\n .delay(ts)\n .call(killNote);\n }\n });\n};\n\n},{\"@plotly/d3\":58,\"fast-isnumeric\":190}],514:[function(_dereq_,module,exports){\n'use strict';\n\nvar setCursor = _dereq_('./setcursor');\n\nvar STASHATTR = 'data-savedcursor';\nvar NO_CURSOR = '!!';\n\n/*\n * works with our CSS cursor classes (see css/_cursor.scss)\n * to override a previous cursor set on d3 single-element selections,\n * by moving the name of the original cursor to the data-savedcursor attr.\n * omit cursor to revert to the previously set value.\n */\nmodule.exports = function overrideCursor(el3, csr) {\n var savedCursor = el3.attr(STASHATTR);\n if(csr) {\n if(!savedCursor) {\n var classes = (el3.attr('class') || '').split(' ');\n for(var i = 0; i < classes.length; i++) {\n var cls = classes[i];\n if(cls.indexOf('cursor-') === 0) {\n el3.attr(STASHATTR, cls.substr(7))\n .classed(cls, false);\n }\n }\n if(!el3.attr(STASHATTR)) {\n el3.attr(STASHATTR, NO_CURSOR);\n }\n }\n setCursor(el3, csr);\n } else if(savedCursor) {\n el3.attr(STASHATTR, null);\n\n if(savedCursor === NO_CURSOR) setCursor(el3);\n else setCursor(el3, savedCursor);\n }\n};\n\n},{\"./setcursor\":524}],515:[function(_dereq_,module,exports){\n'use strict';\n\nvar dot = _dereq_('./matrix').dot;\nvar BADNUM = _dereq_('../constants/numerical').BADNUM;\n\nvar polygon = module.exports = {};\n\n/**\n * Turn an array of [x, y] pairs into a polygon object\n * that can test if points are inside it\n *\n * @param ptsIn Array of [x, y] pairs\n *\n * @returns polygon Object {xmin, xmax, ymin, ymax, pts, contains}\n * (x|y)(min|max) are the bounding rect of the polygon\n * pts is the original array, with the first pair repeated at the end\n * contains is a function: (pt, omitFirstEdge)\n * pt is the [x, y] pair to test\n * omitFirstEdge truthy means points exactly on the first edge don't\n * count. This is for use adding one polygon to another so we\n * don't double-count the edge where they meet.\n * returns boolean: is pt inside the polygon (including on its edges)\n */\npolygon.tester = function tester(ptsIn) {\n var pts = ptsIn.slice();\n var xmin = pts[0][0];\n var xmax = xmin;\n var ymin = pts[0][1];\n var ymax = ymin;\n var i;\n\n pts.push(pts[0]);\n for(i = 1; i < pts.length; i++) {\n xmin = Math.min(xmin, pts[i][0]);\n xmax = Math.max(xmax, pts[i][0]);\n ymin = Math.min(ymin, pts[i][1]);\n ymax = Math.max(ymax, pts[i][1]);\n }\n\n // do we have a rectangle? Handle this here, so we can use the same\n // tester for the rectangular case without sacrificing speed\n\n var isRect = false;\n var rectFirstEdgeTest;\n\n if(pts.length === 5) {\n if(pts[0][0] === pts[1][0]) { // vert, horz, vert, horz\n if(pts[2][0] === pts[3][0] &&\n pts[0][1] === pts[3][1] &&\n pts[1][1] === pts[2][1]) {\n isRect = true;\n rectFirstEdgeTest = function(pt) { return pt[0] === pts[0][0]; };\n }\n } else if(pts[0][1] === pts[1][1]) { // horz, vert, horz, vert\n if(pts[2][1] === pts[3][1] &&\n pts[0][0] === pts[3][0] &&\n pts[1][0] === pts[2][0]) {\n isRect = true;\n rectFirstEdgeTest = function(pt) { return pt[1] === pts[0][1]; };\n }\n }\n }\n\n function rectContains(pt, omitFirstEdge) {\n var x = pt[0];\n var y = pt[1];\n\n if(x === BADNUM || x < xmin || x > xmax || y === BADNUM || y < ymin || y > ymax) {\n // pt is outside the bounding box of polygon\n return false;\n }\n if(omitFirstEdge && rectFirstEdgeTest(pt)) return false;\n\n return true;\n }\n\n function contains(pt, omitFirstEdge) {\n var x = pt[0];\n var y = pt[1];\n\n if(x === BADNUM || x < xmin || x > xmax || y === BADNUM || y < ymin || y > ymax) {\n // pt is outside the bounding box of polygon\n return false;\n }\n\n var imax = pts.length;\n var x1 = pts[0][0];\n var y1 = pts[0][1];\n var crossings = 0;\n var i;\n var x0;\n var y0;\n var xmini;\n var ycross;\n\n for(i = 1; i < imax; i++) {\n // find all crossings of a vertical line upward from pt with\n // polygon segments\n // crossings exactly at xmax don't count, unless the point is\n // exactly on the segment, then it counts as inside.\n x0 = x1;\n y0 = y1;\n x1 = pts[i][0];\n y1 = pts[i][1];\n xmini = Math.min(x0, x1);\n\n if(x < xmini || x > Math.max(x0, x1) || y > Math.max(y0, y1)) {\n // outside the bounding box of this segment, it's only a crossing\n // if it's below the box.\n\n continue;\n } else if(y < Math.min(y0, y1)) {\n // don't count the left-most point of the segment as a crossing\n // because we don't want to double-count adjacent crossings\n // UNLESS the polygon turns past vertical at exactly this x\n // Note that this is repeated below, but we can't factor it out\n // because\n if(x !== xmini) crossings++;\n } else {\n // inside the bounding box, check the actual line intercept\n\n // vertical segment - we know already that the point is exactly\n // on the segment, so mark the crossing as exactly at the point.\n if(x1 === x0) ycross = y;\n // any other angle\n else ycross = y0 + (x - x0) * (y1 - y0) / (x1 - x0);\n\n // exactly on the edge: counts as inside the polygon, unless it's the\n // first edge and we're omitting it.\n if(y === ycross) {\n if(i === 1 && omitFirstEdge) return false;\n return true;\n }\n\n if(y <= ycross && x !== xmini) crossings++;\n }\n }\n\n // if we've gotten this far, odd crossings means inside, even is outside\n return crossings % 2 === 1;\n }\n\n // detect if poly is degenerate\n var degenerate = true;\n var lastPt = pts[0];\n for(i = 1; i < pts.length; i++) {\n if(lastPt[0] !== pts[i][0] || lastPt[1] !== pts[i][1]) {\n degenerate = false;\n break;\n }\n }\n\n return {\n xmin: xmin,\n xmax: xmax,\n ymin: ymin,\n ymax: ymax,\n pts: pts,\n contains: isRect ? rectContains : contains,\n isRect: isRect,\n degenerate: degenerate\n };\n};\n\n/**\n * Test if a segment of a points array is bent or straight\n *\n * @param pts Array of [x, y] pairs\n * @param start the index of the proposed start of the straight section\n * @param end the index of the proposed end point\n * @param tolerance the max distance off the line connecting start and end\n * before the line counts as bent\n * @returns boolean: true means this segment is bent, false means straight\n */\npolygon.isSegmentBent = function isSegmentBent(pts, start, end, tolerance) {\n var startPt = pts[start];\n var segment = [pts[end][0] - startPt[0], pts[end][1] - startPt[1]];\n var segmentSquared = dot(segment, segment);\n var segmentLen = Math.sqrt(segmentSquared);\n var unitPerp = [-segment[1] / segmentLen, segment[0] / segmentLen];\n var i;\n var part;\n var partParallel;\n\n for(i = start + 1; i < end; i++) {\n part = [pts[i][0] - startPt[0], pts[i][1] - startPt[1]];\n partParallel = dot(part, segment);\n\n if(partParallel < 0 || partParallel > segmentSquared ||\n Math.abs(dot(part, unitPerp)) > tolerance) return true;\n }\n return false;\n};\n\n/**\n * Make a filtering polygon, to minimize the number of segments\n *\n * @param pts Array of [x, y] pairs (must start with at least 1 pair)\n * @param tolerance the maximum deviation from straight allowed for\n * removing points to simplify the polygon\n *\n * @returns Object {addPt, raw, filtered}\n * addPt is a function(pt: [x, y] pair) to add a raw point and\n * continue filtering\n * raw is all the input points\n * filtered is the resulting filtered Array of [x, y] pairs\n */\npolygon.filter = function filter(pts, tolerance) {\n var ptsFiltered = [pts[0]];\n var doneRawIndex = 0;\n var doneFilteredIndex = 0;\n\n function addPt(pt) {\n pts.push(pt);\n var prevFilterLen = ptsFiltered.length;\n var iLast = doneRawIndex;\n ptsFiltered.splice(doneFilteredIndex + 1);\n\n for(var i = iLast + 1; i < pts.length; i++) {\n if(i === pts.length - 1 || polygon.isSegmentBent(pts, iLast, i + 1, tolerance)) {\n ptsFiltered.push(pts[i]);\n if(ptsFiltered.length < prevFilterLen - 2) {\n doneRawIndex = i;\n doneFilteredIndex = ptsFiltered.length - 1;\n }\n iLast = i;\n }\n }\n }\n\n if(pts.length > 1) {\n var lastPt = pts.pop();\n addPt(lastPt);\n }\n\n return {\n addPt: addPt,\n raw: pts,\n filtered: ptsFiltered\n };\n};\n\n},{\"../constants/numerical\":479,\"./matrix\":509}],516:[function(_dereq_,module,exports){\n(function (global){(function (){\n'use strict';\n\nvar showNoWebGlMsg = _dereq_('./show_no_webgl_msg');\n\n// Note that this module should be ONLY required into\n// files corresponding to regl trace modules\n// so that bundles with non-regl only don't include\n// regl and all its bytes.\nvar createRegl = _dereq_('regl');\n\n/**\n * Idempotent version of createRegl. Create regl instances\n * in the correct canvases with the correct attributes and\n * options\n *\n * @param {DOM node or object} gd : graph div object\n * @param {array} extensions : list of extension to pass to createRegl\n *\n * @return {boolean} true if all createRegl calls succeeded, false otherwise\n */\nmodule.exports = function prepareRegl(gd, extensions) {\n var fullLayout = gd._fullLayout;\n var success = true;\n\n fullLayout._glcanvas.each(function(d) {\n if(d.regl) return;\n // only parcoords needs pick layer\n if(d.pick && !fullLayout._has('parcoords')) return;\n\n try {\n d.regl = createRegl({\n canvas: this,\n attributes: {\n antialias: !d.pick,\n preserveDrawingBuffer: true\n },\n pixelRatio: gd._context.plotGlPixelRatio || global.devicePixelRatio,\n extensions: extensions || []\n });\n } catch(e) {\n success = false;\n }\n\n if(!d.regl) success = false;\n\n if(success) {\n this.addEventListener('webglcontextlost', function(event) {\n if(gd && gd.emit) {\n gd.emit('plotly_webglcontextlost', {\n event: event,\n layer: d.key\n });\n }\n }, false);\n }\n });\n\n if(!success) {\n showNoWebGlMsg({container: fullLayout._glcontainer.node()});\n }\n return success;\n};\n\n}).call(this)}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{\"./show_no_webgl_msg\":525,\"regl\":283}],517:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar isMobileOrTablet = _dereq_('is-mobile');\n\nmodule.exports = function preserveDrawingBuffer(opts) {\n var ua;\n\n if(opts && opts.hasOwnProperty('userAgent')) {\n ua = opts.userAgent;\n } else {\n ua = getUserAgent();\n }\n\n if(typeof ua !== 'string') return true;\n\n var enable = isMobileOrTablet({\n ua: { headers: {'user-agent': ua }},\n tablet: true,\n featureDetect: false\n });\n\n if(!enable) {\n var allParts = ua.split(' ');\n for(var i = 1; i < allParts.length; i++) {\n var part = allParts[i];\n if(part.indexOf('Safari') !== -1) {\n // find Safari version\n for(var k = i - 1; k > -1; k--) {\n var prevPart = allParts[k];\n if(prevPart.substr(0, 8) === 'Version/') {\n var v = prevPart.substr(8).split('.')[0];\n if(isNumeric(v)) v = +v;\n if(v >= 13) return true;\n }\n }\n }\n }\n }\n\n return enable;\n};\n\nfunction getUserAgent() {\n // similar to https://github.com/juliangruber/is-mobile/blob/91ca39ccdd4cfc5edfb5391e2515b923a730fbea/index.js#L14-L17\n var ua;\n if(typeof navigator !== 'undefined') {\n ua = navigator.userAgent;\n }\n\n if(\n ua &&\n ua.headers &&\n typeof ua.headers['user-agent'] === 'string'\n ) {\n ua = ua.headers['user-agent'];\n }\n\n return ua;\n}\n\n},{\"fast-isnumeric\":190,\"is-mobile\":234}],518:[function(_dereq_,module,exports){\n'use strict';\n\n/**\n * Push array with unique items\n *\n * Ignores falsy items, except 0 so we can use it to construct arrays of indices.\n *\n * @param {array} array\n * array to be filled\n * @param {any} item\n * item to be or not to be inserted\n * @return {array}\n * ref to array (now possibly containing one more item)\n *\n */\nmodule.exports = function pushUnique(array, item) {\n if(item instanceof RegExp) {\n var itemStr = item.toString();\n for(var i = 0; i < array.length; i++) {\n if(array[i] instanceof RegExp && array[i].toString() === itemStr) {\n return array;\n }\n }\n array.push(item);\n } else if((item || item === 0) && array.indexOf(item) === -1) array.push(item);\n\n return array;\n};\n\n},{}],519:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../lib');\nvar dfltConfig = _dereq_('../plot_api/plot_config').dfltConfig;\n\n/**\n * Copy arg array *without* removing `undefined` values from objects.\n *\n * @param gd\n * @param args\n * @returns {Array}\n */\nfunction copyArgArray(gd, args) {\n var copy = [];\n var arg;\n\n for(var i = 0; i < args.length; i++) {\n arg = args[i];\n\n if(arg === gd) copy[i] = arg;\n else if(typeof arg === 'object') {\n copy[i] = Array.isArray(arg) ?\n Lib.extendDeep([], arg) :\n Lib.extendDeepAll({}, arg);\n } else copy[i] = arg;\n }\n\n return copy;\n}\n\n\n// -----------------------------------------------------\n// Undo/Redo queue for plots\n// -----------------------------------------------------\n\n\nvar queue = {};\n\n// TODO: disable/enable undo and redo buttons appropriately\n\n/**\n * Add an item to the undoQueue for a graphDiv\n *\n * @param gd\n * @param undoFunc Function undo this operation\n * @param undoArgs Args to supply undoFunc with\n * @param redoFunc Function to redo this operation\n * @param redoArgs Args to supply redoFunc with\n */\nqueue.add = function(gd, undoFunc, undoArgs, redoFunc, redoArgs) {\n var queueObj,\n queueIndex;\n\n // make sure we have the queue and our position in it\n gd.undoQueue = gd.undoQueue || {index: 0, queue: [], sequence: false};\n queueIndex = gd.undoQueue.index;\n\n // if we're already playing an undo or redo, or if this is an auto operation\n // (like pane resize... any others?) then we don't save this to the undo queue\n if(gd.autoplay) {\n if(!gd.undoQueue.inSequence) gd.autoplay = false;\n return;\n }\n\n // if we're not in a sequence or are just starting, we need a new queue item\n if(!gd.undoQueue.sequence || gd.undoQueue.beginSequence) {\n queueObj = {undo: {calls: [], args: []}, redo: {calls: [], args: []}};\n gd.undoQueue.queue.splice(queueIndex, gd.undoQueue.queue.length - queueIndex, queueObj);\n gd.undoQueue.index += 1;\n } else {\n queueObj = gd.undoQueue.queue[queueIndex - 1];\n }\n gd.undoQueue.beginSequence = false;\n\n // we unshift to handle calls for undo in a forward for loop later\n if(queueObj) {\n queueObj.undo.calls.unshift(undoFunc);\n queueObj.undo.args.unshift(undoArgs);\n queueObj.redo.calls.push(redoFunc);\n queueObj.redo.args.push(redoArgs);\n }\n\n if(gd.undoQueue.queue.length > dfltConfig.queueLength) {\n gd.undoQueue.queue.shift();\n gd.undoQueue.index--;\n }\n};\n\n/**\n * Begin a sequence of undoQueue changes\n *\n * @param gd\n */\nqueue.startSequence = function(gd) {\n gd.undoQueue = gd.undoQueue || {index: 0, queue: [], sequence: false};\n gd.undoQueue.sequence = true;\n gd.undoQueue.beginSequence = true;\n};\n\n/**\n * Stop a sequence of undoQueue changes\n *\n * Call this *after* you're sure your undo chain has ended\n *\n * @param gd\n */\nqueue.stopSequence = function(gd) {\n gd.undoQueue = gd.undoQueue || {index: 0, queue: [], sequence: false};\n gd.undoQueue.sequence = false;\n gd.undoQueue.beginSequence = false;\n};\n\n/**\n * Move one step back in the undo queue, and undo the object there.\n *\n * @param gd\n */\nqueue.undo = function undo(gd) {\n var queueObj, i;\n\n if(gd.undoQueue === undefined ||\n isNaN(gd.undoQueue.index) ||\n gd.undoQueue.index <= 0) {\n return;\n }\n\n // index is pointing to next *forward* queueObj, point to the one we're undoing\n gd.undoQueue.index--;\n\n // get the queueObj for instructions on how to undo\n queueObj = gd.undoQueue.queue[gd.undoQueue.index];\n\n // this sequence keeps things from adding to the queue during undo/redo\n gd.undoQueue.inSequence = true;\n for(i = 0; i < queueObj.undo.calls.length; i++) {\n queue.plotDo(gd, queueObj.undo.calls[i], queueObj.undo.args[i]);\n }\n gd.undoQueue.inSequence = false;\n gd.autoplay = false;\n};\n\n/**\n * Redo the current object in the undo, then move forward in the queue.\n *\n * @param gd\n */\nqueue.redo = function redo(gd) {\n var queueObj, i;\n\n if(gd.undoQueue === undefined ||\n isNaN(gd.undoQueue.index) ||\n gd.undoQueue.index >= gd.undoQueue.queue.length) {\n return;\n }\n\n // get the queueObj for instructions on how to undo\n queueObj = gd.undoQueue.queue[gd.undoQueue.index];\n\n // this sequence keeps things from adding to the queue during undo/redo\n gd.undoQueue.inSequence = true;\n for(i = 0; i < queueObj.redo.calls.length; i++) {\n queue.plotDo(gd, queueObj.redo.calls[i], queueObj.redo.args[i]);\n }\n gd.undoQueue.inSequence = false;\n gd.autoplay = false;\n\n // index is pointing to the thing we just redid, move it\n gd.undoQueue.index++;\n};\n\n/**\n * Called by undo/redo to make the actual changes.\n *\n * Not meant to be called publically, but included for mocking out in tests.\n *\n * @param gd\n * @param func\n * @param args\n */\nqueue.plotDo = function(gd, func, args) {\n gd.autoplay = true;\n\n // this *won't* copy gd and it preserves `undefined` properties!\n args = copyArgArray(gd, args);\n\n // call the supplied function\n func.apply(null, args);\n};\n\nmodule.exports = queue;\n\n},{\"../lib\":503,\"../plot_api/plot_config\":541}],520:[function(_dereq_,module,exports){\n'use strict';\n\n/*\n * make a regex for matching counter ids/names ie xaxis, xaxis2, xaxis10...\n *\n * @param {string} head: the head of the pattern, eg 'x' matches 'x', 'x2', 'x10' etc.\n * 'xy' is a special case for cartesian subplots: it matches 'x2y3' etc\n * @param {Optional(string)} tail: a fixed piece after the id\n * eg counterRegex('scene', '.annotations') for scene2.annotations etc.\n * @param {boolean} openEnded: if true, the string may continue past the match.\n * @param {boolean} matchBeginning: if false, the string may start before the match.\n */\nexports.counter = function(head, tail, openEnded, matchBeginning) {\n var fullTail = (tail || '') + (openEnded ? '' : '$');\n var startWithPrefix = matchBeginning === false ? '' : '^';\n if(head === 'xy') {\n return new RegExp(startWithPrefix + 'x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?' + fullTail);\n }\n return new RegExp(startWithPrefix + head + '([2-9]|[1-9][0-9]+)?' + fullTail);\n};\n\n},{}],521:[function(_dereq_,module,exports){\n'use strict';\n\n// ASCEND: chop off the last nesting level - either [] or . - to ascend\n// the attribute tree. the remaining attrString is in match[1]\nvar ASCEND = /^(.*)(\\.[^\\.\\[\\]]+|\\[\\d\\])$/;\n\n// SIMPLEATTR: is this an un-nested attribute? (no dots or brackets)\nvar SIMPLEATTR = /^[^\\.\\[\\]]+$/;\n\n/*\n * calculate a relative attribute string, similar to a relative path\n *\n * @param {string} baseAttr:\n * an attribute string, such as 'annotations[3].x'. The \"current location\"\n * is the attribute string minus the last component ('annotations[3]')\n * @param {string} relativeAttr:\n * a route to the desired attribute string, using '^' to ascend\n *\n * @return {string} attrString:\n * for example:\n * relativeAttr('annotations[3].x', 'y') = 'annotations[3].y'\n * relativeAttr('annotations[3].x', '^[2].z') = 'annotations[2].z'\n * relativeAttr('annotations[3].x', '^^margin') = 'margin'\n * relativeAttr('annotations[3].x', '^^margin.r') = 'margin.r'\n */\nmodule.exports = function(baseAttr, relativeAttr) {\n while(relativeAttr) {\n var match = baseAttr.match(ASCEND);\n\n if(match) baseAttr = match[1];\n else if(baseAttr.match(SIMPLEATTR)) baseAttr = '';\n else throw new Error('bad relativeAttr call:' + [baseAttr, relativeAttr]);\n\n if(relativeAttr.charAt(0) === '^') relativeAttr = relativeAttr.slice(1);\n else break;\n }\n\n if(baseAttr && relativeAttr.charAt(0) !== '[') {\n return baseAttr + '.' + relativeAttr;\n }\n return baseAttr + relativeAttr;\n};\n\n},{}],522:[function(_dereq_,module,exports){\n'use strict';\n\nvar isArrayOrTypedArray = _dereq_('./array').isArrayOrTypedArray;\nvar isPlainObject = _dereq_('./is_plain_object');\n\n/**\n * Relink private _keys and keys with a function value from one container\n * to the new container.\n * Relink means copying if object is pass-by-value and adding a reference\n * if object is pass-by-ref.\n * This prevents deepCopying massive structures like a webgl context.\n */\nmodule.exports = function relinkPrivateKeys(toContainer, fromContainer) {\n for(var k in fromContainer) {\n var fromVal = fromContainer[k];\n var toVal = toContainer[k];\n\n if(toVal === fromVal) continue;\n\n if(k.charAt(0) === '_' || typeof fromVal === 'function') {\n // if it already exists at this point, it's something\n // that we recreate each time around, so ignore it\n if(k in toContainer) continue;\n\n toContainer[k] = fromVal;\n } else if(isArrayOrTypedArray(fromVal) && isArrayOrTypedArray(toVal) && isPlainObject(fromVal[0])) {\n // filter out data_array items that can contain user objects\n // most of the time the toVal === fromVal check will catch these early\n // but if the user makes new ones we also don't want to recurse in.\n if(k === 'customdata' || k === 'ids') continue;\n\n // recurse into arrays containers\n var minLen = Math.min(fromVal.length, toVal.length);\n for(var j = 0; j < minLen; j++) {\n if((toVal[j] !== fromVal[j]) && isPlainObject(fromVal[j]) && isPlainObject(toVal[j])) {\n relinkPrivateKeys(toVal[j], fromVal[j]);\n }\n }\n } else if(isPlainObject(fromVal) && isPlainObject(toVal)) {\n // recurse into objects, but only if they still exist\n relinkPrivateKeys(toVal, fromVal);\n\n if(!Object.keys(toVal).length) delete toContainer[k];\n }\n }\n};\n\n},{\"./array\":485,\"./is_plain_object\":504}],523:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar loggers = _dereq_('./loggers');\nvar identity = _dereq_('./identity');\nvar BADNUM = _dereq_('../constants/numerical').BADNUM;\n\n// don't trust floating point equality - fraction of bin size to call\n// \"on the line\" and ensure that they go the right way specified by\n// linelow\nvar roundingError = 1e-9;\n\n\n/**\n * findBin - find the bin for val - note that it can return outside the\n * bin range any pos. or neg. integer for linear bins, or -1 or\n * bins.length-1 for explicit.\n * bins is either an object {start,size,end} or an array length #bins+1\n * bins can be either increasing or decreasing but must be monotonic\n * for linear bins, we can just calculate. For listed bins, run a binary\n * search linelow (truthy) says the bin boundary should be attributed to\n * the lower bin rather than the default upper bin\n */\nexports.findBin = function(val, bins, linelow) {\n if(isNumeric(bins.start)) {\n return linelow ?\n Math.ceil((val - bins.start) / bins.size - roundingError) - 1 :\n Math.floor((val - bins.start) / bins.size + roundingError);\n } else {\n var n1 = 0;\n var n2 = bins.length;\n var c = 0;\n var binSize = (n2 > 1) ? (bins[n2 - 1] - bins[0]) / (n2 - 1) : 1;\n var n, test;\n if(binSize >= 0) {\n test = linelow ? lessThan : lessOrEqual;\n } else {\n test = linelow ? greaterOrEqual : greaterThan;\n }\n val += binSize * roundingError * (linelow ? -1 : 1) * (binSize >= 0 ? 1 : -1);\n // c is just to avoid infinite loops if there's an error\n while(n1 < n2 && c++ < 100) {\n n = Math.floor((n1 + n2) / 2);\n if(test(bins[n], val)) n1 = n + 1;\n else n2 = n;\n }\n if(c > 90) loggers.log('Long binary search...');\n return n1 - 1;\n }\n};\n\nfunction lessThan(a, b) { return a < b; }\nfunction lessOrEqual(a, b) { return a <= b; }\nfunction greaterThan(a, b) { return a > b; }\nfunction greaterOrEqual(a, b) { return a >= b; }\n\nexports.sorterAsc = function(a, b) { return a - b; };\nexports.sorterDes = function(a, b) { return b - a; };\n\n/**\n * find distinct values in an array, lumping together ones that appear to\n * just be off by a rounding error\n * return the distinct values and the minimum difference between any two\n */\nexports.distinctVals = function(valsIn) {\n var vals = valsIn.slice(); // otherwise we sort the original array...\n vals.sort(exports.sorterAsc); // undefined listed in the end - also works on IE11\n\n var last;\n for(last = vals.length - 1; last > -1; last--) {\n if(vals[last] !== BADNUM) break;\n }\n\n var minDiff = (vals[last] - vals[0]) || 1;\n var errDiff = minDiff / (last || 1) / 10000;\n var newVals = [];\n var preV;\n for(var i = 0; i <= last; i++) {\n var v = vals[i];\n\n // make sure values aren't just off by a rounding error\n var diff = v - preV;\n\n if(preV === undefined) {\n newVals.push(v);\n preV = v;\n } else if(diff > errDiff) {\n minDiff = Math.min(minDiff, diff);\n\n newVals.push(v);\n preV = v;\n }\n }\n\n return {vals: newVals, minDiff: minDiff};\n};\n\n/**\n * return the smallest element from (sorted) array arrayIn that's bigger than val,\n * or (reverse) the largest element smaller than val\n * used to find the best tick given the minimum (non-rounded) tick\n * particularly useful for date/time where things are not powers of 10\n * binary search is probably overkill here...\n */\nexports.roundUp = function(val, arrayIn, reverse) {\n var low = 0;\n var high = arrayIn.length - 1;\n var mid;\n var c = 0;\n var dlow = reverse ? 0 : 1;\n var dhigh = reverse ? 1 : 0;\n var rounded = reverse ? Math.ceil : Math.floor;\n // c is just to avoid infinite loops if there's an error\n while(low < high && c++ < 100) {\n mid = rounded((low + high) / 2);\n if(arrayIn[mid] <= val) low = mid + dlow;\n else high = mid - dhigh;\n }\n return arrayIn[low];\n};\n\n/**\n * Tweak to Array.sort(sortFn) that improves performance for pre-sorted arrays\n *\n * Note that newer browsers (such as Chrome v70+) are starting to pick up\n * on pre-sorted arrays which may render the following optimization unnecessary\n * in the future.\n *\n * Motivation: sometimes we need to sort arrays but the input is likely to\n * already be sorted. Browsers don't seem to pick up on pre-sorted arrays,\n * and in fact Chrome is actually *slower* sorting pre-sorted arrays than purely\n * random arrays. FF is at least faster if the array is pre-sorted, but still\n * not as fast as it could be.\n * Here's how this plays out sorting a length-1e6 array:\n *\n * Calls to Sort FN | Chrome bare | FF bare | Chrome tweak | FF tweak\n * | v68.0 Mac | v61.0 Mac| |\n * ------------------+---------------+-----------+----------------+------------\n * ordered | 30.4e6 | 10.1e6 | 1e6 | 1e6\n * reversed | 29.4e6 | 9.9e6 | 1e6 + reverse | 1e6 + reverse\n * random | ~21e6 | ~18.7e6 | ~21e6 | ~18.7e6\n *\n * So this is a substantial win for pre-sorted (ordered or exactly reversed)\n * arrays. Including this wrapper on an unsorted array adds a penalty that will\n * in general be only a few calls to the sort function. The only case this\n * penalty will be significant is if the array is mostly sorted but there are\n * a few unsorted items near the end, but the penalty is still at most N calls\n * out of (for N=1e6) ~20N total calls\n *\n * @param {Array} array: the array, to be sorted in place\n * @param {function} sortFn: As in Array.sort, function(a, b) that puts\n * item a before item b if the return is negative, a after b if positive,\n * and no change if zero.\n * @return {Array}: the original array, sorted in place.\n */\nexports.sort = function(array, sortFn) {\n var notOrdered = 0;\n var notReversed = 0;\n for(var i = 1; i < array.length; i++) {\n var pairOrder = sortFn(array[i], array[i - 1]);\n if(pairOrder < 0) notOrdered = 1;\n else if(pairOrder > 0) notReversed = 1;\n if(notOrdered && notReversed) return array.sort(sortFn);\n }\n return notReversed ? array : array.reverse();\n};\n\n/**\n * find index in array 'arr' that minimizes 'fn'\n *\n * @param {array} arr : array where to search\n * @param {fn (optional)} fn : function to minimize,\n * if not given, fn is the identity function\n * @return {integer}\n */\nexports.findIndexOfMin = function(arr, fn) {\n fn = fn || identity;\n\n var min = Infinity;\n var ind;\n\n for(var i = 0; i < arr.length; i++) {\n var v = fn(arr[i]);\n if(v < min) {\n min = v;\n ind = i;\n }\n }\n return ind;\n};\n\n},{\"../constants/numerical\":479,\"./identity\":501,\"./loggers\":507,\"fast-isnumeric\":190}],524:[function(_dereq_,module,exports){\n'use strict';\n\n// works with our CSS cursor classes (see css/_cursor.scss)\n// to apply cursors to d3 single-element selections.\n// omit cursor to revert to the default.\nmodule.exports = function setCursor(el3, csr) {\n (el3.attr('class') || '').split(' ').forEach(function(cls) {\n if(cls.indexOf('cursor-') === 0) el3.classed(cls, false);\n });\n\n if(csr) el3.classed('cursor-' + csr, true);\n};\n\n},{}],525:[function(_dereq_,module,exports){\n'use strict';\n\nvar Color = _dereq_('../components/color');\n\nvar noop = function() {};\n\n\n/**\n * Prints a no webgl error message into the scene container\n * @param {scene instance} scene\n *\n * Expects 'scene' to have property 'container'\n *\n */\nmodule.exports = function showNoWebGlMsg(scene) {\n for(var prop in scene) {\n if(typeof scene[prop] === 'function') scene[prop] = noop;\n }\n\n scene.destroy = function() {\n scene.container.parentNode.removeChild(scene.container);\n };\n\n var div = document.createElement('div');\n div.className = 'no-webgl';\n div.style.cursor = 'pointer';\n div.style.fontSize = '24px';\n div.style.color = Color.defaults[0];\n div.style.position = 'absolute';\n div.style.left = div.style.top = '0px';\n div.style.width = div.style.height = '100%';\n div.style['background-color'] = Color.lightLine;\n div.style['z-index'] = 30;\n\n var p = document.createElement('p');\n p.textContent = 'WebGL is not supported by your browser - visit https://get.webgl.org for more info';\n p.style.position = 'relative';\n p.style.top = '50%';\n p.style.left = '50%';\n p.style.height = '30%';\n p.style.width = '50%';\n p.style.margin = '-15% 0 0 -25%';\n\n div.appendChild(p);\n scene.container.appendChild(div);\n scene.container.style.background = '#FFFFFF';\n scene.container.onclick = function() {\n window.open('https://get.webgl.org');\n };\n\n // return before setting up camera and onrender methods\n return false;\n};\n\n},{\"../components/color\":366}],526:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function sortObjectKeys(obj) {\n return Object.keys(obj).sort();\n};\n\n},{}],527:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar isArrayOrTypedArray = _dereq_('./array').isArrayOrTypedArray;\n\n/**\n * aggNums() returns the result of an aggregate function applied to an array of\n * values, where non-numerical values have been tossed out.\n *\n * @param {function} f - aggregation function (e.g., Math.min)\n * @param {Number} v - initial value (continuing from previous calls)\n * if there's no continuing value, use null for selector-type\n * functions (max,min), or 0 for summations\n * @param {Array} a - array to aggregate (may be nested, we will recurse,\n * but all elements must have the same dimension)\n * @param {Number} len - maximum length of a to aggregate\n * @return {Number} - result of f applied to a starting from v\n */\nexports.aggNums = function(f, v, a, len) {\n var i,\n b;\n if(!len || len > a.length) len = a.length;\n if(!isNumeric(v)) v = false;\n if(isArrayOrTypedArray(a[0])) {\n b = new Array(len);\n for(i = 0; i < len; i++) b[i] = exports.aggNums(f, v, a[i]);\n a = b;\n }\n\n for(i = 0; i < len; i++) {\n if(!isNumeric(v)) v = a[i];\n else if(isNumeric(a[i])) v = f(+v, +a[i]);\n }\n return v;\n};\n\n/**\n * mean & std dev functions using aggNums, so it handles non-numerics nicely\n * even need to use aggNums instead of .length, to toss out non-numerics\n */\nexports.len = function(data) {\n return exports.aggNums(function(a) { return a + 1; }, 0, data);\n};\n\nexports.mean = function(data, len) {\n if(!len) len = exports.len(data);\n return exports.aggNums(function(a, b) { return a + b; }, 0, data) / len;\n};\n\nexports.midRange = function(numArr) {\n if(numArr === undefined || numArr.length === 0) return undefined;\n return (exports.aggNums(Math.max, null, numArr) + exports.aggNums(Math.min, null, numArr)) / 2;\n};\n\nexports.variance = function(data, len, mean) {\n if(!len) len = exports.len(data);\n if(!isNumeric(mean)) mean = exports.mean(data, len);\n\n return exports.aggNums(function(a, b) {\n return a + Math.pow(b - mean, 2);\n }, 0, data) / len;\n};\n\nexports.stdev = function(data, len, mean) {\n return Math.sqrt(exports.variance(data, len, mean));\n};\n\n/**\n * median of a finite set of numbers\n * reference page: https://en.wikipedia.org/wiki/Median#Finite_set_of_numbers\n**/\nexports.median = function(data) {\n var b = data.slice().sort();\n return exports.interp(b, 0.5);\n};\n\n/**\n * interp() computes a percentile (quantile) for a given distribution.\n * We interpolate the distribution (to compute quantiles, we follow method #10 here:\n * http://www.amstat.org/publications/jse/v14n3/langford.html).\n * Typically the index or rank (n * arr.length) may be non-integer.\n * For reference: ends are clipped to the extreme values in the array;\n * For box plots: index you get is half a point too high (see\n * http://en.wikipedia.org/wiki/Percentile#Nearest_rank) but note that this definition\n * indexes from 1 rather than 0, so we subtract 1/2 (instead of add).\n *\n * @param {Array} arr - This array contains the values that make up the distribution.\n * @param {Number} n - Between 0 and 1, n = p/100 is such that we compute the p^th percentile.\n * For example, the 50th percentile (or median) corresponds to n = 0.5\n * @return {Number} - percentile\n */\nexports.interp = function(arr, n) {\n if(!isNumeric(n)) throw 'n should be a finite number';\n n = n * arr.length - 0.5;\n if(n < 0) return arr[0];\n if(n > arr.length - 1) return arr[arr.length - 1];\n var frac = n % 1;\n return frac * arr[Math.ceil(n)] + (1 - frac) * arr[Math.floor(n)];\n};\n\n},{\"./array\":485,\"fast-isnumeric\":190}],528:[function(_dereq_,module,exports){\n'use strict';\n\nvar rgba = _dereq_('color-normalize');\n\nfunction str2RgbaArray(color) {\n if(!color) return [0, 0, 0, 1];\n return rgba(color);\n}\n\nmodule.exports = str2RgbaArray;\n\n},{\"color-normalize\":89}],529:[function(_dereq_,module,exports){\n'use strict';\n\n/* global MathJax:false */\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Lib = _dereq_('../lib');\nvar strTranslate = Lib.strTranslate;\nvar xmlnsNamespaces = _dereq_('../constants/xmlns_namespaces');\nvar LINE_SPACING = _dereq_('../constants/alignment').LINE_SPACING;\n\n// text converter\n\nvar FIND_TEX = /([^$]*)([$]+[^$]*[$]+)([^$]*)/;\n\nexports.convertToTspans = function(_context, gd, _callback) {\n var str = _context.text();\n\n // Until we get tex integrated more fully (so it can be used along with non-tex)\n // allow some elements to prohibit it by attaching 'data-notex' to the original\n var tex = (!_context.attr('data-notex')) &&\n (typeof MathJax !== 'undefined') &&\n str.match(FIND_TEX);\n\n var parent = d3.select(_context.node().parentNode);\n if(parent.empty()) return;\n var svgClass = (_context.attr('class')) ? _context.attr('class').split(' ')[0] : 'text';\n svgClass += '-math';\n parent.selectAll('svg.' + svgClass).remove();\n parent.selectAll('g.' + svgClass + '-group').remove();\n _context.style('display', null)\n .attr({\n // some callers use data-unformatted *from the element* in 'cancel'\n // so we need it here even if we're going to turn it into math\n // these two (plus style and text-anchor attributes) form the key we're\n // going to use for Drawing.bBox\n 'data-unformatted': str,\n 'data-math': 'N'\n });\n\n function showText() {\n if(!parent.empty()) {\n svgClass = _context.attr('class') + '-math';\n parent.select('svg.' + svgClass).remove();\n }\n _context.text('')\n .style('white-space', 'pre');\n\n var hasLink = buildSVGText(_context.node(), str);\n\n if(hasLink) {\n // at least in Chrome, pointer-events does not seem\n // to be honored in children of elements\n // so if we have an anchor, we have to make the\n // whole element respond\n _context.style('pointer-events', 'all');\n }\n\n exports.positionText(_context);\n\n if(_callback) _callback.call(_context);\n }\n\n if(tex) {\n ((gd && gd._promises) || []).push(new Promise(function(resolve) {\n _context.style('display', 'none');\n var fontSize = parseInt(_context.node().style.fontSize, 10);\n var config = {fontSize: fontSize};\n\n texToSVG(tex[2], config, function(_svgEl, _glyphDefs, _svgBBox) {\n parent.selectAll('svg.' + svgClass).remove();\n parent.selectAll('g.' + svgClass + '-group').remove();\n\n var newSvg = _svgEl && _svgEl.select('svg');\n if(!newSvg || !newSvg.node()) {\n showText();\n resolve();\n return;\n }\n\n var mathjaxGroup = parent.append('g')\n .classed(svgClass + '-group', true)\n .attr({\n 'pointer-events': 'none',\n 'data-unformatted': str,\n 'data-math': 'Y'\n });\n\n mathjaxGroup.node().appendChild(newSvg.node());\n\n // stitch the glyph defs\n if(_glyphDefs && _glyphDefs.node()) {\n newSvg.node().insertBefore(_glyphDefs.node().cloneNode(true),\n newSvg.node().firstChild);\n }\n\n var w0 = _svgBBox.width;\n var h0 = _svgBBox.height;\n\n newSvg.attr({\n 'class': svgClass,\n height: h0,\n preserveAspectRatio: 'xMinYMin meet'\n })\n .style({overflow: 'visible', 'pointer-events': 'none'});\n\n var fill = _context.node().style.fill || 'black';\n var g = newSvg.select('g');\n g.attr({fill: fill, stroke: fill});\n\n var bb = g.node().getBoundingClientRect();\n var w = bb.width;\n var h = bb.height;\n\n if(w > w0 || h > h0) {\n // this happen in firefox v82+ | see https://bugzilla.mozilla.org/show_bug.cgi?id=1709251 addressed\n // temporary fix:\n newSvg.style('overflow', 'hidden');\n bb = newSvg.node().getBoundingClientRect();\n w = bb.width;\n h = bb.height;\n }\n\n var x = +_context.attr('x');\n var y = +_context.attr('y');\n\n // font baseline is about 1/4 fontSize below centerline\n var textHeight = fontSize || _context.node().getBoundingClientRect().height;\n var dy = -textHeight / 4;\n\n if(svgClass[0] === 'y') {\n mathjaxGroup.attr({\n transform: 'rotate(' + [-90, x, y] +\n ')' + strTranslate(-w / 2, dy - h / 2)\n });\n } else if(svgClass[0] === 'l') {\n y = dy - h / 2;\n } else if(svgClass[0] === 'a' && svgClass.indexOf('atitle') !== 0) {\n x = 0;\n y = dy;\n } else {\n var anchor = _context.attr('text-anchor');\n\n x = x - w * (\n anchor === 'middle' ? 0.5 :\n anchor === 'end' ? 1 : 0\n );\n y = y + dy - h / 2;\n }\n\n newSvg.attr({\n x: x,\n y: y\n });\n\n if(_callback) _callback.call(_context, mathjaxGroup);\n resolve(mathjaxGroup);\n });\n }));\n } else showText();\n\n return _context;\n};\n\n\n// MathJax\n\nvar LT_MATCH = /(<|<|<)/g;\nvar GT_MATCH = /(>|>|>)/g;\n\nfunction cleanEscapesForTex(s) {\n return s.replace(LT_MATCH, '\\\\lt ')\n .replace(GT_MATCH, '\\\\gt ');\n}\n\nfunction texToSVG(_texString, _config, _callback) {\n var originalRenderer,\n originalConfig,\n originalProcessSectionDelay,\n tmpDiv;\n\n MathJax.Hub.Queue(\n function() {\n originalConfig = Lib.extendDeepAll({}, MathJax.Hub.config);\n\n originalProcessSectionDelay = MathJax.Hub.processSectionDelay;\n if(MathJax.Hub.processSectionDelay !== undefined) {\n // MathJax 2.5+\n MathJax.Hub.processSectionDelay = 0;\n }\n\n return MathJax.Hub.Config({\n messageStyle: 'none',\n tex2jax: {\n inlineMath: [['$', '$'], ['\\\\(', '\\\\)']]\n },\n displayAlign: 'left',\n });\n },\n function() {\n // Get original renderer\n originalRenderer = MathJax.Hub.config.menuSettings.renderer;\n if(originalRenderer !== 'SVG') {\n return MathJax.Hub.setRenderer('SVG');\n }\n },\n function() {\n var randomID = 'math-output-' + Lib.randstr({}, 64);\n tmpDiv = d3.select('body').append('div')\n .attr({id: randomID})\n .style({visibility: 'hidden', position: 'absolute'})\n .style({'font-size': _config.fontSize + 'px'})\n .text(cleanEscapesForTex(_texString));\n\n return MathJax.Hub.Typeset(tmpDiv.node());\n },\n function() {\n var glyphDefs = d3.select('body').select('#MathJax_SVG_glyphs');\n\n if(tmpDiv.select('.MathJax_SVG').empty() || !tmpDiv.select('svg').node()) {\n Lib.log('There was an error in the tex syntax.', _texString);\n _callback();\n } else {\n var svgBBox = tmpDiv.select('svg').node().getBoundingClientRect();\n _callback(tmpDiv.select('.MathJax_SVG'), glyphDefs, svgBBox);\n }\n\n tmpDiv.remove();\n\n if(originalRenderer !== 'SVG') {\n return MathJax.Hub.setRenderer(originalRenderer);\n }\n },\n function() {\n if(originalProcessSectionDelay !== undefined) {\n MathJax.Hub.processSectionDelay = originalProcessSectionDelay;\n }\n return MathJax.Hub.Config(originalConfig);\n });\n}\n\nvar TAG_STYLES = {\n // would like to use baseline-shift for sub/sup but FF doesn't support it\n // so we need to use dy along with the uber hacky shift-back-to\n // baseline below\n sup: 'font-size:70%',\n sub: 'font-size:70%',\n b: 'font-weight:bold',\n i: 'font-style:italic',\n a: 'cursor:pointer',\n span: '',\n em: 'font-style:italic;font-weight:bold'\n};\n\n// baseline shifts for sub and sup\nvar SHIFT_DY = {\n sub: '0.3em',\n sup: '-0.6em'\n};\n// reset baseline by adding a tspan (empty except for a zero-width space)\n// with dy of -70% * SHIFT_DY (because font-size=70%)\nvar RESET_DY = {\n sub: '-0.21em',\n sup: '0.42em'\n};\nvar ZERO_WIDTH_SPACE = '\\u200b';\n\n/*\n * Whitelist of protocols in user-supplied urls. Mostly we want to avoid javascript\n * and related attack vectors. The empty items are there for IE, that in various\n * versions treats relative paths as having different flavors of no protocol, while\n * other browsers have these explicitly inherit the protocol of the page they're in.\n */\nvar PROTOCOLS = ['http:', 'https:', 'mailto:', '', undefined, ':'];\n\nvar NEWLINES = exports.NEWLINES = /(\\r\\n?|\\n)/g;\n\nvar SPLIT_TAGS = /(<[^<>]*>)/;\n\nvar ONE_TAG = /<(\\/?)([^ >]*)(\\s+(.*))?>/i;\n\nvar BR_TAG = //i;\nexports.BR_TAG_ALL = //gi;\n\n/*\n * style and href: pull them out of either single or double quotes. Also\n * - target: (_blank|_self|_parent|_top|framename)\n * note that you can't use target to get a popup but if you use popup,\n * a `framename` will be passed along as the name of the popup window.\n * per the spec, cannot contain whitespace.\n * for backward compatibility we default to '_blank'\n * - popup: a custom one for us to enable popup (new window) links. String\n * for window.open -> strWindowFeatures, like 'menubar=yes,width=500,height=550'\n * note that at least in Chrome, you need to give at least one property\n * in this string or the page will open in a new tab anyway. We follow this\n * convention and will not make a popup if this string is empty.\n * per the spec, cannot contain whitespace.\n *\n * Because we hack in other attributes with style (sub & sup), drop any trailing\n * semicolon in user-supplied styles so we can consistently append the tag-dependent style\n *\n * These are for tag attributes; Chrome anyway will convert entities in\n * attribute values, but not in attribute names\n * you can test this by for example:\n * > p = document.createElement('p')\n * > p.innerHTML = 'Hi'\n * > p.innerHTML\n * <- 'Hi'\n */\nvar STYLEMATCH = /(^|[\\s\"'])style\\s*=\\s*(\"([^\"]*);?\"|'([^']*);?')/i;\nvar HREFMATCH = /(^|[\\s\"'])href\\s*=\\s*(\"([^\"]*)\"|'([^']*)')/i;\nvar TARGETMATCH = /(^|[\\s\"'])target\\s*=\\s*(\"([^\"\\s]*)\"|'([^'\\s]*)')/i;\nvar POPUPMATCH = /(^|[\\s\"'])popup\\s*=\\s*(\"([\\w=,]*)\"|'([\\w=,]*)')/i;\n\n// dedicated matcher for these quoted regexes, that can return their results\n// in two different places\nfunction getQuotedMatch(_str, re) {\n if(!_str) return null;\n var match = _str.match(re);\n var result = match && (match[3] || match[4]);\n return result && convertEntities(result);\n}\n\nvar COLORMATCH = /(^|;)\\s*color:/;\n\n/**\n * Strip string of tags\n *\n * @param {string} _str : input string\n * @param {object} opts :\n * - len {number} max length of output string\n * - allowedTags {array} list of pseudo-html tags to NOT strip\n * @return {string}\n */\nexports.plainText = function(_str, opts) {\n opts = opts || {};\n\n var len = (opts.len !== undefined && opts.len !== -1) ? opts.len : Infinity;\n var allowedTags = opts.allowedTags !== undefined ? opts.allowedTags : ['br'];\n\n var ellipsis = '...';\n var eLen = ellipsis.length;\n\n var oldParts = _str.split(SPLIT_TAGS);\n var newParts = [];\n var prevTag = '';\n var l = 0;\n\n for(var i = 0; i < oldParts.length; i++) {\n var p = oldParts[i];\n var match = p.match(ONE_TAG);\n var tagType = match && match[2].toLowerCase();\n\n if(tagType) {\n // N.B. tags do not count towards string length\n if(allowedTags.indexOf(tagType) !== -1) {\n newParts.push(p);\n prevTag = tagType;\n }\n } else {\n var pLen = p.length;\n\n if((l + pLen) < len) {\n newParts.push(p);\n l += pLen;\n } else if(l < len) {\n var pLen2 = len - l;\n\n if(prevTag && (prevTag !== 'br' || pLen2 <= eLen || pLen <= eLen)) {\n newParts.pop();\n }\n\n if(len > eLen) {\n newParts.push(p.substr(0, pLen2 - eLen) + ellipsis);\n } else {\n newParts.push(p.substr(0, pLen2));\n }\n break;\n }\n\n prevTag = '';\n }\n }\n\n return newParts.join('');\n};\n\n/*\n * N.B. HTML entities are listed without the leading '&' and trailing ';'\n * https://www.freeformatter.com/html-entities.html\n *\n * FWIW if we wanted to support the full set, it has 2261 entries:\n * https://www.w3.org/TR/html5/entities.json\n * though I notice that some of these are duplicates and/or are missing \";\"\n * eg: \"&\", \"&\", \"&\", and \"&\" all map to \"&\"\n * We no longer need to include numeric entities here, these are now handled\n * by String.fromCodePoint/fromCharCode\n *\n * Anyway the only ones that are really important to allow are the HTML special\n * chars <, >, and &, because these ones can trigger special processing if not\n * replaced by the corresponding entity.\n */\nvar entityToUnicode = {\n mu: 'μ',\n amp: '&',\n lt: '<',\n gt: '>',\n nbsp: ' ',\n times: '×',\n plusmn: '±',\n deg: '°'\n};\n\n// NOTE: in general entities can contain uppercase too (so [a-zA-Z]) but all the\n// ones we support use only lowercase. If we ever change that, update the regex.\nvar ENTITY_MATCH = /&(#\\d+|#x[\\da-fA-F]+|[a-z]+);/g;\nfunction convertEntities(_str) {\n return _str.replace(ENTITY_MATCH, function(fullMatch, innerMatch) {\n var outChar;\n if(innerMatch.charAt(0) === '#') {\n // cannot use String.fromCodePoint in IE\n outChar = fromCodePoint(\n innerMatch.charAt(1) === 'x' ?\n parseInt(innerMatch.substr(2), 16) :\n parseInt(innerMatch.substr(1), 10)\n );\n } else outChar = entityToUnicode[innerMatch];\n\n // as in regular HTML, if we didn't decode the entity just\n // leave the raw text in place.\n return outChar || fullMatch;\n });\n}\nexports.convertEntities = convertEntities;\n\nfunction fromCodePoint(code) {\n // Don't allow overflow. In Chrome this turns into � but I feel like it's\n // more useful to just not convert it at all.\n if(code > 0x10FFFF) return;\n var stringFromCodePoint = String.fromCodePoint;\n if(stringFromCodePoint) return stringFromCodePoint(code);\n\n // IE doesn't have String.fromCodePoint\n // see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCodePoint\n var stringFromCharCode = String.fromCharCode;\n if(code <= 0xFFFF) return stringFromCharCode(code);\n return stringFromCharCode(\n (code >> 10) + 0xD7C0,\n (code % 0x400) + 0xDC00\n );\n}\n\n/*\n * buildSVGText: convert our pseudo-html into SVG tspan elements, and attach these\n * to containerNode\n *\n * @param {svg text element} containerNode: the node to insert this text into\n * @param {string} str: the pseudo-html string to convert to svg\n *\n * @returns {bool}: does the result contain any links? We need to handle the text element\n * somewhat differently if it does, so just keep track of this when it happens.\n */\nfunction buildSVGText(containerNode, str) {\n /*\n * Normalize behavior between IE and others wrt newlines and whitespace:pre\n * this combination makes IE barf https://github.com/plotly/plotly.js/issues/746\n * Chrome and FF display \\n, \\r, or \\r\\n as a space in this mode.\n * I feel like at some point we turned these into
but currently we don't so\n * I'm just going to cement what we do now in Chrome and FF\n */\n str = str.replace(NEWLINES, ' ');\n\n var hasLink = false;\n\n // as we're building the text, keep track of what elements we're nested inside\n // nodeStack will be an array of {node, type, style, href, target, popup}\n // where only type: 'a' gets the last 3 and node is only added when it's created\n var nodeStack = [];\n var currentNode;\n var currentLine = -1;\n\n function newLine() {\n currentLine++;\n\n var lineNode = document.createElementNS(xmlnsNamespaces.svg, 'tspan');\n d3.select(lineNode).attr({\n class: 'line',\n dy: (currentLine * LINE_SPACING) + 'em'\n });\n containerNode.appendChild(lineNode);\n\n currentNode = lineNode;\n\n var oldNodeStack = nodeStack;\n nodeStack = [{node: lineNode}];\n\n if(oldNodeStack.length > 1) {\n for(var i = 1; i < oldNodeStack.length; i++) {\n enterNode(oldNodeStack[i]);\n }\n }\n }\n\n function enterNode(nodeSpec) {\n var type = nodeSpec.type;\n var nodeAttrs = {};\n var nodeType;\n\n if(type === 'a') {\n nodeType = 'a';\n var target = nodeSpec.target;\n var href = nodeSpec.href;\n var popup = nodeSpec.popup;\n if(href) {\n nodeAttrs = {\n 'xlink:xlink:show': (target === '_blank' || target.charAt(0) !== '_') ? 'new' : 'replace',\n target: target,\n 'xlink:xlink:href': href\n };\n if(popup) {\n // security: href and target are not inserted as code but\n // as attributes. popup is, but limited to /[A-Za-z0-9_=,]/\n nodeAttrs.onclick = 'window.open(this.href.baseVal,this.target.baseVal,\"' +\n popup + '\");return false;';\n }\n }\n } else nodeType = 'tspan';\n\n if(nodeSpec.style) nodeAttrs.style = nodeSpec.style;\n\n var newNode = document.createElementNS(xmlnsNamespaces.svg, nodeType);\n\n if(type === 'sup' || type === 'sub') {\n addTextNode(currentNode, ZERO_WIDTH_SPACE);\n currentNode.appendChild(newNode);\n\n var resetter = document.createElementNS(xmlnsNamespaces.svg, 'tspan');\n addTextNode(resetter, ZERO_WIDTH_SPACE);\n d3.select(resetter).attr('dy', RESET_DY[type]);\n nodeAttrs.dy = SHIFT_DY[type];\n\n currentNode.appendChild(newNode);\n currentNode.appendChild(resetter);\n } else {\n currentNode.appendChild(newNode);\n }\n\n d3.select(newNode).attr(nodeAttrs);\n\n currentNode = nodeSpec.node = newNode;\n nodeStack.push(nodeSpec);\n }\n\n function addTextNode(node, text) {\n node.appendChild(document.createTextNode(text));\n }\n\n function exitNode(type) {\n // A bare closing tag can't close the root node. If we encounter this it\n // means there's an extra closing tag that can just be ignored:\n if(nodeStack.length === 1) {\n Lib.log('Ignoring unexpected end tag .', str);\n return;\n }\n\n var innerNode = nodeStack.pop();\n\n if(type !== innerNode.type) {\n Lib.log('Start tag <' + innerNode.type + '> doesnt match end tag <' +\n type + '>. Pretending it did match.', str);\n }\n currentNode = nodeStack[nodeStack.length - 1].node;\n }\n\n var hasLines = BR_TAG.test(str);\n\n if(hasLines) newLine();\n else {\n currentNode = containerNode;\n nodeStack = [{node: containerNode}];\n }\n\n var parts = str.split(SPLIT_TAGS);\n for(var i = 0; i < parts.length; i++) {\n var parti = parts[i];\n var match = parti.match(ONE_TAG);\n var tagType = match && match[2].toLowerCase();\n var tagStyle = TAG_STYLES[tagType];\n\n if(tagType === 'br') {\n newLine();\n } else if(tagStyle === undefined) {\n addTextNode(currentNode, convertEntities(parti));\n } else {\n // tag - open or close\n if(match[1]) {\n exitNode(tagType);\n } else {\n var extra = match[4];\n\n var nodeSpec = {type: tagType};\n\n // now add style, from both the tag name and any extra css\n // Most of the svg css that users will care about is just like html,\n // but font color is different (uses fill). Let our users ignore this.\n var css = getQuotedMatch(extra, STYLEMATCH);\n if(css) {\n css = css.replace(COLORMATCH, '$1 fill:');\n if(tagStyle) css += ';' + tagStyle;\n } else if(tagStyle) css = tagStyle;\n\n if(css) nodeSpec.style = css;\n\n if(tagType === 'a') {\n hasLink = true;\n\n var href = getQuotedMatch(extra, HREFMATCH);\n\n if(href) {\n var safeHref = sanitizeHref(href);\n if(safeHref) {\n nodeSpec.href = safeHref;\n nodeSpec.target = getQuotedMatch(extra, TARGETMATCH) || '_blank';\n nodeSpec.popup = getQuotedMatch(extra, POPUPMATCH);\n }\n }\n }\n\n enterNode(nodeSpec);\n }\n }\n }\n\n return hasLink;\n}\n\nfunction sanitizeHref(href) {\n var decodedHref = encodeURI(decodeURI(href));\n var dummyAnchor1 = document.createElement('a');\n var dummyAnchor2 = document.createElement('a');\n dummyAnchor1.href = href;\n dummyAnchor2.href = decodedHref;\n\n var p1 = dummyAnchor1.protocol;\n var p2 = dummyAnchor2.protocol;\n\n // check safe protocols\n if(\n PROTOCOLS.indexOf(p1) !== -1 &&\n PROTOCOLS.indexOf(p2) !== -1\n ) {\n return decodedHref;\n } else {\n return '';\n }\n}\n\n/*\n * sanitizeHTML: port of buildSVGText aimed at providing a clean subset of HTML\n * @param {string} str: the html string to clean\n * @returns {string}: a cleaned and normalized version of the input,\n * supporting only a small subset of html\n */\nexports.sanitizeHTML = function sanitizeHTML(str) {\n str = str.replace(NEWLINES, ' ');\n\n var rootNode = document.createElement('p');\n var currentNode = rootNode;\n var nodeStack = [];\n\n var parts = str.split(SPLIT_TAGS);\n for(var i = 0; i < parts.length; i++) {\n var parti = parts[i];\n var match = parti.match(ONE_TAG);\n var tagType = match && match[2].toLowerCase();\n\n if(tagType in TAG_STYLES) {\n if(match[1]) {\n if(nodeStack.length) {\n currentNode = nodeStack.pop();\n }\n } else {\n var extra = match[4];\n\n var css = getQuotedMatch(extra, STYLEMATCH);\n var nodeAttrs = css ? {style: css} : {};\n\n if(tagType === 'a') {\n var href = getQuotedMatch(extra, HREFMATCH);\n\n if(href) {\n var safeHref = sanitizeHref(href);\n if(safeHref) {\n nodeAttrs.href = safeHref;\n var target = getQuotedMatch(extra, TARGETMATCH);\n if(target) {\n nodeAttrs.target = target;\n }\n }\n }\n }\n\n var newNode = document.createElement(tagType);\n currentNode.appendChild(newNode);\n d3.select(newNode).attr(nodeAttrs);\n\n currentNode = newNode;\n nodeStack.push(newNode);\n }\n } else {\n currentNode.appendChild(\n document.createTextNode(convertEntities(parti))\n );\n }\n }\n var key = 'innerHTML'; // i.e. to avoid pass test-syntax\n return rootNode[key];\n};\n\nexports.lineCount = function lineCount(s) {\n return s.selectAll('tspan.line').size() || 1;\n};\n\nexports.positionText = function positionText(s, x, y) {\n return s.each(function() {\n var text = d3.select(this);\n\n function setOrGet(attr, val) {\n if(val === undefined) {\n val = text.attr(attr);\n if(val === null) {\n text.attr(attr, 0);\n val = 0;\n }\n } else text.attr(attr, val);\n return val;\n }\n\n var thisX = setOrGet('x', x);\n var thisY = setOrGet('y', y);\n\n if(this.nodeName === 'text') {\n text.selectAll('tspan.line').attr({x: thisX, y: thisY});\n }\n });\n};\n\nfunction alignHTMLWith(_base, container, options) {\n var alignH = options.horizontalAlign;\n var alignV = options.verticalAlign || 'top';\n var bRect = _base.node().getBoundingClientRect();\n var cRect = container.node().getBoundingClientRect();\n var thisRect;\n var getTop;\n var getLeft;\n\n if(alignV === 'bottom') {\n getTop = function() { return bRect.bottom - thisRect.height; };\n } else if(alignV === 'middle') {\n getTop = function() { return bRect.top + (bRect.height - thisRect.height) / 2; };\n } else { // default: top\n getTop = function() { return bRect.top; };\n }\n\n if(alignH === 'right') {\n getLeft = function() { return bRect.right - thisRect.width; };\n } else if(alignH === 'center') {\n getLeft = function() { return bRect.left + (bRect.width - thisRect.width) / 2; };\n } else { // default: left\n getLeft = function() { return bRect.left; };\n }\n\n return function() {\n thisRect = this.node().getBoundingClientRect();\n\n var x0 = getLeft() - cRect.left;\n var y0 = getTop() - cRect.top;\n var gd = options.gd || {};\n if(options.gd) {\n gd._fullLayout._calcInverseTransform(gd);\n var transformedCoords = Lib.apply3DTransform(gd._fullLayout._invTransform)(x0, y0);\n x0 = transformedCoords[0];\n y0 = transformedCoords[1];\n }\n\n this.style({\n top: y0 + 'px',\n left: x0 + 'px',\n 'z-index': 1000\n });\n return this;\n };\n}\n\nvar onePx = '1px ';\n\nexports.makeTextShadow = function(color) {\n var x = onePx;\n var y = onePx;\n var b = onePx;\n return x + y + b + color + ', ' +\n '-' + x + '-' + y + b + color + ', ' +\n x + '-' + y + b + color + ', ' +\n '-' + x + y + b + color;\n};\n\n/*\n * Editable title\n * @param {d3.selection} context: the element being edited. Normally text,\n * but if it isn't, you should provide the styling options\n * @param {object} options:\n * @param {div} options.gd: graphDiv\n * @param {d3.selection} options.delegate: item to bind events to if not this\n * @param {boolean} options.immediate: start editing now (true) or on click (false, default)\n * @param {string} options.fill: font color if not as shown\n * @param {string} options.background: background color if not as shown\n * @param {string} options.text: initial text, if not as shown\n * @param {string} options.horizontalAlign: alignment of the edit box wrt. the bound element\n * @param {string} options.verticalAlign: alignment of the edit box wrt. the bound element\n */\n\nexports.makeEditable = function(context, options) {\n var gd = options.gd;\n var _delegate = options.delegate;\n var dispatch = d3.dispatch('edit', 'input', 'cancel');\n var handlerElement = _delegate || context;\n\n context.style({'pointer-events': _delegate ? 'none' : 'all'});\n\n if(context.size() !== 1) throw new Error('boo');\n\n function handleClick() {\n appendEditable();\n context.style({opacity: 0});\n // also hide any mathjax svg\n var svgClass = handlerElement.attr('class');\n var mathjaxClass;\n if(svgClass) mathjaxClass = '.' + svgClass.split(' ')[0] + '-math-group';\n else mathjaxClass = '[class*=-math-group]';\n if(mathjaxClass) {\n d3.select(context.node().parentNode).select(mathjaxClass).style({opacity: 0});\n }\n }\n\n function selectElementContents(_el) {\n var el = _el.node();\n var range = document.createRange();\n range.selectNodeContents(el);\n var sel = window.getSelection();\n sel.removeAllRanges();\n sel.addRange(range);\n el.focus();\n }\n\n function appendEditable() {\n var plotDiv = d3.select(gd);\n var container = plotDiv.select('.svg-container');\n var div = container.append('div');\n var cStyle = context.node().style;\n var fontSize = parseFloat(cStyle.fontSize || 12);\n\n var initialText = options.text;\n if(initialText === undefined) initialText = context.attr('data-unformatted');\n\n div.classed('plugin-editable editable', true)\n .style({\n position: 'absolute',\n 'font-family': cStyle.fontFamily || 'Arial',\n 'font-size': fontSize,\n color: options.fill || cStyle.fill || 'black',\n opacity: 1,\n 'background-color': options.background || 'transparent',\n outline: '#ffffff33 1px solid',\n margin: [-fontSize / 8 + 1, 0, 0, -1].join('px ') + 'px',\n padding: '0',\n 'box-sizing': 'border-box'\n })\n .attr({contenteditable: true})\n .text(initialText)\n .call(alignHTMLWith(context, container, options))\n .on('blur', function() {\n gd._editing = false;\n context.text(this.textContent)\n .style({opacity: 1});\n var svgClass = d3.select(this).attr('class');\n var mathjaxClass;\n if(svgClass) mathjaxClass = '.' + svgClass.split(' ')[0] + '-math-group';\n else mathjaxClass = '[class*=-math-group]';\n if(mathjaxClass) {\n d3.select(context.node().parentNode).select(mathjaxClass).style({opacity: 0});\n }\n var text = this.textContent;\n d3.select(this).transition().duration(0).remove();\n d3.select(document).on('mouseup', null);\n dispatch.edit.call(context, text);\n })\n .on('focus', function() {\n var editDiv = this;\n gd._editing = true;\n d3.select(document).on('mouseup', function() {\n if(d3.event.target === editDiv) return false;\n if(document.activeElement === div.node()) div.node().blur();\n });\n })\n .on('keyup', function() {\n if(d3.event.which === 27) {\n gd._editing = false;\n context.style({opacity: 1});\n d3.select(this)\n .style({opacity: 0})\n .on('blur', function() { return false; })\n .transition().remove();\n dispatch.cancel.call(context, this.textContent);\n } else {\n dispatch.input.call(context, this.textContent);\n d3.select(this).call(alignHTMLWith(context, container, options));\n }\n })\n .on('keydown', function() {\n if(d3.event.which === 13) this.blur();\n })\n .call(selectElementContents);\n }\n\n if(options.immediate) handleClick();\n else handlerElement.on('click', handleClick);\n\n return d3.rebind(context, dispatch, 'on');\n};\n\n},{\"../constants/alignment\":471,\"../constants/xmlns_namespaces\":480,\"../lib\":503,\"@plotly/d3\":58}],530:[function(_dereq_,module,exports){\n'use strict';\n\nvar timerCache = {};\n\n/**\n * Throttle a callback. `callback` executes synchronously only if\n * more than `minInterval` milliseconds have already elapsed since the latest\n * call (if any). Otherwise we wait until `minInterval` is over and execute the\n * last callback received while waiting.\n * So the first and last events in a train are always executed (eventually)\n * but some of the events in the middle can be dropped.\n *\n * @param {string} id: an identifier to mark events to throttle together\n * @param {number} minInterval: minimum time, in milliseconds, between\n * invocations of `callback`\n * @param {function} callback: the function to throttle. `callback` itself\n * should be a purely synchronous function.\n */\nexports.throttle = function throttle(id, minInterval, callback) {\n var cache = timerCache[id];\n var now = Date.now();\n\n if(!cache) {\n /*\n * Throw out old items before making a new one, to prevent the cache\n * getting overgrown, for example from old plots that have been replaced.\n * 1 minute age is arbitrary.\n */\n for(var idi in timerCache) {\n if(timerCache[idi].ts < now - 60000) {\n delete timerCache[idi];\n }\n }\n cache = timerCache[id] = {ts: 0, timer: null};\n }\n\n _clearTimeout(cache);\n\n function exec() {\n callback();\n cache.ts = Date.now();\n if(cache.onDone) {\n cache.onDone();\n cache.onDone = null;\n }\n }\n\n if(now > cache.ts + minInterval) {\n exec();\n return;\n }\n\n cache.timer = setTimeout(function() {\n exec();\n cache.timer = null;\n }, minInterval);\n};\n\nexports.done = function(id) {\n var cache = timerCache[id];\n if(!cache || !cache.timer) return Promise.resolve();\n\n return new Promise(function(resolve) {\n var previousOnDone = cache.onDone;\n cache.onDone = function onDone() {\n if(previousOnDone) previousOnDone();\n resolve();\n cache.onDone = null;\n };\n });\n};\n\n/**\n * Clear the throttle cache for one or all timers\n * @param {optional string} id:\n * if provided, clear just this timer\n * if omitted, clear all timers (mainly useful for testing)\n */\nexports.clear = function(id) {\n if(id) {\n _clearTimeout(timerCache[id]);\n delete timerCache[id];\n } else {\n for(var idi in timerCache) exports.clear(idi);\n }\n};\n\nfunction _clearTimeout(cache) {\n if(cache && cache.timer !== null) {\n clearTimeout(cache.timer);\n cache.timer = null;\n }\n}\n\n},{}],531:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\n/**\n * convert a linear value into a logged value, folding negative numbers into\n * the given range\n */\nmodule.exports = function toLogRange(val, range) {\n if(val > 0) return Math.log(val) / Math.LN10;\n\n // move a negative value reference to a log axis - just put the\n // result at the lowest range value on the plot (or if the range also went negative,\n // one millionth of the top of the range)\n var newVal = Math.log(Math.min(range[0], range[1])) / Math.LN10;\n if(!isNumeric(newVal)) newVal = Math.log(Math.max(range[0], range[1])) / Math.LN10 - 6;\n return newVal;\n};\n\n},{\"fast-isnumeric\":190}],532:[function(_dereq_,module,exports){\n'use strict';\n\nvar topojsonUtils = module.exports = {};\n\nvar locationmodeToLayer = _dereq_('../plots/geo/constants').locationmodeToLayer;\nvar topojsonFeature = _dereq_('topojson-client').feature;\n\ntopojsonUtils.getTopojsonName = function(geoLayout) {\n return [\n geoLayout.scope.replace(/ /g, '-'), '_',\n geoLayout.resolution.toString(), 'm'\n ].join('');\n};\n\ntopojsonUtils.getTopojsonPath = function(topojsonURL, topojsonName) {\n return topojsonURL + topojsonName + '.json';\n};\n\ntopojsonUtils.getTopojsonFeatures = function(trace, topojson) {\n var layer = locationmodeToLayer[trace.locationmode];\n var obj = topojson.objects[layer];\n\n return topojsonFeature(topojson, obj).features;\n};\n\n},{\"../plots/geo/constants\":587,\"topojson-client\":315}],533:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'locale',\n name: 'en-US',\n dictionary: {\n 'Click to enter Colorscale title': 'Click to enter Colorscale title'\n },\n format: {\n date: '%m/%d/%Y'\n }\n};\n\n},{}],534:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'locale',\n name: 'en',\n dictionary: {\n 'Click to enter Colorscale title': 'Click to enter Colourscale title'\n },\n format: {\n days: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n shortDays: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n months: [\n 'January', 'February', 'March', 'April', 'May', 'June',\n 'July', 'August', 'September', 'October', 'November', 'December'\n ],\n shortMonths: [\n 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',\n 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'\n ],\n periods: ['AM', 'PM'],\n dateTime: '%a %b %e %X %Y',\n date: '%d/%m/%Y',\n time: '%H:%M:%S',\n decimal: '.',\n thousands: ',',\n grouping: [3],\n currency: ['$', ''],\n year: '%Y',\n month: '%b %Y',\n dayMonth: '%b %-d',\n dayMonthYear: '%b %-d, %Y'\n }\n};\n\n},{}],535:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../registry');\n\n/*\n * containerArrayMatch: does this attribute string point into a\n * layout container array?\n *\n * @param {String} astr: an attribute string, like *annotations[2].text*\n *\n * @returns {Object | false} Returns false if `astr` doesn't match a container\n * array. If it does, returns:\n * {array: {String}, index: {Number}, property: {String}}\n * ie the attribute string for the array, the index within the array (or ''\n * if the whole array) and the property within that (or '' if the whole array\n * or the whole object)\n */\nmodule.exports = function containerArrayMatch(astr) {\n var rootContainers = Registry.layoutArrayContainers;\n var regexpContainers = Registry.layoutArrayRegexes;\n var rootPart = astr.split('[')[0];\n var arrayStr;\n var match;\n\n // look for regexp matches first, because they may be nested inside root matches\n // eg updatemenus[i].buttons is nested inside updatemenus\n for(var i = 0; i < regexpContainers.length; i++) {\n match = astr.match(regexpContainers[i]);\n if(match && match.index === 0) {\n arrayStr = match[0];\n break;\n }\n }\n\n // now look for root matches\n if(!arrayStr) arrayStr = rootContainers[rootContainers.indexOf(rootPart)];\n\n if(!arrayStr) return false;\n\n var tail = astr.substr(arrayStr.length);\n if(!tail) return {array: arrayStr, index: '', property: ''};\n\n match = tail.match(/^\\[(0|[1-9][0-9]*)\\](\\.(.+))?$/);\n if(!match) return false;\n\n return {array: arrayStr, index: Number(match[1]), property: match[3] || ''};\n};\n\n},{\"../registry\":638}],536:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../lib');\nvar extendFlat = Lib.extendFlat;\nvar isPlainObject = Lib.isPlainObject;\n\nvar traceOpts = {\n valType: 'flaglist',\n extras: ['none'],\n flags: ['calc', 'clearAxisTypes', 'plot', 'style', 'markerSize', 'colorbars'],\n};\n\nvar layoutOpts = {\n valType: 'flaglist',\n extras: ['none'],\n flags: [\n 'calc', 'plot', 'legend', 'ticks', 'axrange',\n 'layoutstyle', 'modebar', 'camera', 'arraydraw', 'colorbars'\n ],\n};\n\n// flags for inside restyle/relayout include a few extras\n// that shouldn't be used in attributes, to deal with certain\n// combinations and conditionals efficiently\nvar traceEditTypeFlags = traceOpts.flags.slice()\n .concat(['fullReplot']);\n\nvar layoutEditTypeFlags = layoutOpts.flags.slice()\n .concat('layoutReplot');\n\nmodule.exports = {\n traces: traceOpts,\n layout: layoutOpts,\n /*\n * default (all false) edit flags for restyle (traces)\n * creates a new object each call, so the caller can mutate freely\n */\n traceFlags: function() { return falseObj(traceEditTypeFlags); },\n\n /*\n * default (all false) edit flags for relayout\n * creates a new object each call, so the caller can mutate freely\n */\n layoutFlags: function() { return falseObj(layoutEditTypeFlags); },\n\n /*\n * update `flags` with the `editType` values found in `attr`\n */\n update: function(flags, attr) {\n var editType = attr.editType;\n if(editType && editType !== 'none') {\n var editTypeParts = editType.split('+');\n for(var i = 0; i < editTypeParts.length; i++) {\n flags[editTypeParts[i]] = true;\n }\n }\n },\n\n overrideAll: overrideAll\n};\n\nfunction falseObj(keys) {\n var out = {};\n for(var i = 0; i < keys.length; i++) out[keys[i]] = false;\n return out;\n}\n\n/**\n * For attributes that are largely copied from elsewhere into a plot type that doesn't\n * support partial redraws - overrides the editType field of all attributes in the object\n *\n * @param {object} attrs: the attributes to override. Will not be mutated.\n * @param {string} editTypeOverride: the new editType to use\n * @param {'nested'|'from-root'} overrideContainers:\n * - 'nested' will override editType for nested containers but not the root.\n * - 'from-root' will also override editType of the root container.\n * Containers below the absolute top level (trace or layout root) DO need an\n * editType even if they are not `valObject`s themselves (eg `scatter.marker`)\n * to handle the case where you edit the whole container.\n *\n * @return {object} a new attributes object with `editType` modified as directed\n */\nfunction overrideAll(attrs, editTypeOverride, overrideContainers) {\n var out = extendFlat({}, attrs);\n for(var key in out) {\n var attr = out[key];\n if(isPlainObject(attr)) {\n out[key] = overrideOne(attr, editTypeOverride, overrideContainers, key);\n }\n }\n if(overrideContainers === 'from-root') out.editType = editTypeOverride;\n\n return out;\n}\n\nfunction overrideOne(attr, editTypeOverride, overrideContainers, key) {\n if(attr.valType) {\n var out = extendFlat({}, attr);\n out.editType = editTypeOverride;\n\n if(Array.isArray(attr.items)) {\n out.items = new Array(attr.items.length);\n for(var i = 0; i < attr.items.length; i++) {\n out.items[i] = overrideOne(attr.items[i], editTypeOverride, 'from-root');\n }\n }\n return out;\n } else {\n // don't provide an editType for the _deprecated container\n return overrideAll(attr, editTypeOverride,\n (key.charAt(0) === '_') ? 'nested' : 'from-root');\n }\n}\n\n},{\"../lib\":503}],537:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar m4FromQuat = _dereq_('gl-mat4/fromQuat');\n\nvar Registry = _dereq_('../registry');\nvar Lib = _dereq_('../lib');\nvar Plots = _dereq_('../plots/plots');\nvar AxisIds = _dereq_('../plots/cartesian/axis_ids');\nvar Color = _dereq_('../components/color');\n\nvar cleanId = AxisIds.cleanId;\nvar getFromTrace = AxisIds.getFromTrace;\nvar traceIs = Registry.traceIs;\n\n// clear the promise queue if one of them got rejected\nexports.clearPromiseQueue = function(gd) {\n if(Array.isArray(gd._promises) && gd._promises.length > 0) {\n Lib.log('Clearing previous rejected promises from queue.');\n }\n\n gd._promises = [];\n};\n\n// make a few changes to the layout right away\n// before it gets used for anything\n// backward compatibility and cleanup of nonstandard options\nexports.cleanLayout = function(layout) {\n var i, j;\n\n if(!layout) layout = {};\n\n // cannot have (x|y)axis1, numbering goes axis, axis2, axis3...\n if(layout.xaxis1) {\n if(!layout.xaxis) layout.xaxis = layout.xaxis1;\n delete layout.xaxis1;\n }\n if(layout.yaxis1) {\n if(!layout.yaxis) layout.yaxis = layout.yaxis1;\n delete layout.yaxis1;\n }\n if(layout.scene1) {\n if(!layout.scene) layout.scene = layout.scene1;\n delete layout.scene1;\n }\n\n var axisAttrRegex = (Plots.subplotsRegistry.cartesian || {}).attrRegex;\n var polarAttrRegex = (Plots.subplotsRegistry.polar || {}).attrRegex;\n var ternaryAttrRegex = (Plots.subplotsRegistry.ternary || {}).attrRegex;\n var sceneAttrRegex = (Plots.subplotsRegistry.gl3d || {}).attrRegex;\n\n var keys = Object.keys(layout);\n for(i = 0; i < keys.length; i++) {\n var key = keys[i];\n\n if(axisAttrRegex && axisAttrRegex.test(key)) {\n // modifications to cartesian axes\n\n var ax = layout[key];\n if(ax.anchor && ax.anchor !== 'free') {\n ax.anchor = cleanId(ax.anchor);\n }\n if(ax.overlaying) ax.overlaying = cleanId(ax.overlaying);\n\n // old method of axis type - isdate and islog (before category existed)\n if(!ax.type) {\n if(ax.isdate) ax.type = 'date';\n else if(ax.islog) ax.type = 'log';\n else if(ax.isdate === false && ax.islog === false) ax.type = 'linear';\n }\n if(ax.autorange === 'withzero' || ax.autorange === 'tozero') {\n ax.autorange = true;\n ax.rangemode = 'tozero';\n }\n delete ax.islog;\n delete ax.isdate;\n delete ax.categories; // replaced by _categories\n\n // prune empty domain arrays made before the new nestedProperty\n if(emptyContainer(ax, 'domain')) delete ax.domain;\n\n // autotick -> tickmode\n if(ax.autotick !== undefined) {\n if(ax.tickmode === undefined) {\n ax.tickmode = ax.autotick ? 'auto' : 'linear';\n }\n delete ax.autotick;\n }\n\n cleanTitle(ax);\n } else if(polarAttrRegex && polarAttrRegex.test(key)) {\n // modifications for polar\n\n var polar = layout[key];\n cleanTitle(polar.radialaxis);\n } else if(ternaryAttrRegex && ternaryAttrRegex.test(key)) {\n // modifications for ternary\n\n var ternary = layout[key];\n cleanTitle(ternary.aaxis);\n cleanTitle(ternary.baxis);\n cleanTitle(ternary.caxis);\n } else if(sceneAttrRegex && sceneAttrRegex.test(key)) {\n // modifications for 3D scenes\n\n var scene = layout[key];\n\n // clean old Camera coords\n var cameraposition = scene.cameraposition;\n\n if(Array.isArray(cameraposition) && cameraposition[0].length === 4) {\n var rotation = cameraposition[0];\n var center = cameraposition[1];\n var radius = cameraposition[2];\n var mat = m4FromQuat([], rotation);\n var eye = [];\n\n for(j = 0; j < 3; ++j) {\n eye[j] = center[j] + radius * mat[2 + 4 * j];\n }\n\n scene.camera = {\n eye: {x: eye[0], y: eye[1], z: eye[2]},\n center: {x: center[0], y: center[1], z: center[2]},\n up: {x: 0, y: 0, z: 1} // we just ignore calculating camera z up in this case\n };\n\n delete scene.cameraposition;\n }\n\n // clean axis titles\n cleanTitle(scene.xaxis);\n cleanTitle(scene.yaxis);\n cleanTitle(scene.zaxis);\n }\n }\n\n var annotationsLen = Array.isArray(layout.annotations) ? layout.annotations.length : 0;\n for(i = 0; i < annotationsLen; i++) {\n var ann = layout.annotations[i];\n\n if(!Lib.isPlainObject(ann)) continue;\n\n if(ann.ref) {\n if(ann.ref === 'paper') {\n ann.xref = 'paper';\n ann.yref = 'paper';\n } else if(ann.ref === 'data') {\n ann.xref = 'x';\n ann.yref = 'y';\n }\n delete ann.ref;\n }\n\n cleanAxRef(ann, 'xref');\n cleanAxRef(ann, 'yref');\n }\n\n var shapesLen = Array.isArray(layout.shapes) ? layout.shapes.length : 0;\n for(i = 0; i < shapesLen; i++) {\n var shape = layout.shapes[i];\n\n if(!Lib.isPlainObject(shape)) continue;\n\n cleanAxRef(shape, 'xref');\n cleanAxRef(shape, 'yref');\n }\n\n var imagesLen = Array.isArray(layout.images) ? layout.images.length : 0;\n for(i = 0; i < imagesLen; i++) {\n var image = layout.images[i];\n\n if(!Lib.isPlainObject(image)) continue;\n\n cleanAxRef(image, 'xref');\n cleanAxRef(image, 'yref');\n }\n\n var legend = layout.legend;\n if(legend) {\n // check for old-style legend positioning (x or y is +/- 100)\n if(legend.x > 3) {\n legend.x = 1.02;\n legend.xanchor = 'left';\n } else if(legend.x < -2) {\n legend.x = -0.02;\n legend.xanchor = 'right';\n }\n\n if(legend.y > 3) {\n legend.y = 1.02;\n legend.yanchor = 'bottom';\n } else if(legend.y < -2) {\n legend.y = -0.02;\n legend.yanchor = 'top';\n }\n }\n\n // clean plot title\n cleanTitle(layout);\n\n /*\n * Moved from rotate -> orbit for dragmode\n */\n if(layout.dragmode === 'rotate') layout.dragmode = 'orbit';\n\n // sanitize rgb(fractions) and rgba(fractions) that old tinycolor\n // supported, but new tinycolor does not because they're not valid css\n Color.clean(layout);\n\n // clean the layout container in layout.template\n if(layout.template && layout.template.layout) {\n exports.cleanLayout(layout.template.layout);\n }\n\n return layout;\n};\n\nfunction cleanAxRef(container, attr) {\n var valIn = container[attr];\n var axLetter = attr.charAt(0);\n if(valIn && valIn !== 'paper') {\n container[attr] = cleanId(valIn, axLetter, true);\n }\n}\n\n/**\n * Cleans up old title attribute structure (flat) in favor of the new one (nested).\n *\n * @param {Object} titleContainer - an object potentially including deprecated title attributes\n */\nfunction cleanTitle(titleContainer) {\n if(titleContainer) {\n // title -> title.text\n // (although title used to be a string attribute,\n // numbers are accepted as well)\n if(typeof titleContainer.title === 'string' || typeof titleContainer.title === 'number') {\n titleContainer.title = {\n text: titleContainer.title\n };\n }\n\n rewireAttr('titlefont', 'font');\n rewireAttr('titleposition', 'position');\n rewireAttr('titleside', 'side');\n rewireAttr('titleoffset', 'offset');\n }\n\n function rewireAttr(oldAttrName, newAttrName) {\n var oldAttrSet = titleContainer[oldAttrName];\n var newAttrSet = titleContainer.title && titleContainer.title[newAttrName];\n\n if(oldAttrSet && !newAttrSet) {\n // Ensure title object exists\n if(!titleContainer.title) {\n titleContainer.title = {};\n }\n\n titleContainer.title[newAttrName] = titleContainer[oldAttrName];\n delete titleContainer[oldAttrName];\n }\n }\n}\n\n/*\n * cleanData: Make a few changes to the data for backward compatibility\n * before it gets used for anything. Modifies the data traces users provide.\n *\n * Important: if you're going to add something here that modifies a data array,\n * update it in place so the new array === the old one.\n */\nexports.cleanData = function(data) {\n for(var tracei = 0; tracei < data.length; tracei++) {\n var trace = data[tracei];\n var i;\n\n // use xbins to bin data in x, and ybins to bin data in y\n if(trace.type === 'histogramy' && 'xbins' in trace && !('ybins' in trace)) {\n trace.ybins = trace.xbins;\n delete trace.xbins;\n }\n\n // error_y.opacity is obsolete - merge into color\n if(trace.error_y && 'opacity' in trace.error_y) {\n var dc = Color.defaults;\n var yeColor = trace.error_y.color || (traceIs(trace, 'bar') ?\n Color.defaultLine :\n dc[tracei % dc.length]);\n trace.error_y.color = Color.addOpacity(\n Color.rgb(yeColor),\n Color.opacity(yeColor) * trace.error_y.opacity);\n delete trace.error_y.opacity;\n }\n\n // convert bardir to orientation, and put the data into\n // the axes it's eventually going to be used with\n if('bardir' in trace) {\n if(trace.bardir === 'h' && (traceIs(trace, 'bar') ||\n trace.type.substr(0, 9) === 'histogram')) {\n trace.orientation = 'h';\n exports.swapXYData(trace);\n }\n delete trace.bardir;\n }\n\n // now we have only one 1D histogram type, and whether\n // it uses x or y data depends on trace.orientation\n if(trace.type === 'histogramy') exports.swapXYData(trace);\n if(trace.type === 'histogramx' || trace.type === 'histogramy') {\n trace.type = 'histogram';\n }\n\n // scl->scale, reversescl->reversescale\n if('scl' in trace && !('colorscale' in trace)) {\n trace.colorscale = trace.scl;\n delete trace.scl;\n }\n if('reversescl' in trace && !('reversescale' in trace)) {\n trace.reversescale = trace.reversescl;\n delete trace.reversescl;\n }\n\n // axis ids x1 -> x, y1-> y\n if(trace.xaxis) trace.xaxis = cleanId(trace.xaxis, 'x');\n if(trace.yaxis) trace.yaxis = cleanId(trace.yaxis, 'y');\n\n // scene ids scene1 -> scene\n if(traceIs(trace, 'gl3d') && trace.scene) {\n trace.scene = Plots.subplotsRegistry.gl3d.cleanId(trace.scene);\n }\n\n if(!traceIs(trace, 'pie-like') && !traceIs(trace, 'bar-like')) {\n if(Array.isArray(trace.textposition)) {\n for(i = 0; i < trace.textposition.length; i++) {\n trace.textposition[i] = cleanTextPosition(trace.textposition[i]);\n }\n } else if(trace.textposition) {\n trace.textposition = cleanTextPosition(trace.textposition);\n }\n }\n\n // fix typo in colorscale definition\n var _module = Registry.getModule(trace);\n if(_module && _module.colorbar) {\n var containerName = _module.colorbar.container;\n var container = containerName ? trace[containerName] : trace;\n if(container && container.colorscale) {\n if(container.colorscale === 'YIGnBu') container.colorscale = 'YlGnBu';\n if(container.colorscale === 'YIOrRd') container.colorscale = 'YlOrRd';\n }\n }\n\n // fix typo in surface 'highlight*' definitions\n if(trace.type === 'surface' && Lib.isPlainObject(trace.contours)) {\n var dims = ['x', 'y', 'z'];\n\n for(i = 0; i < dims.length; i++) {\n var opts = trace.contours[dims[i]];\n\n if(!Lib.isPlainObject(opts)) continue;\n\n if(opts.highlightColor) {\n opts.highlightcolor = opts.highlightColor;\n delete opts.highlightColor;\n }\n\n if(opts.highlightWidth) {\n opts.highlightwidth = opts.highlightWidth;\n delete opts.highlightWidth;\n }\n }\n }\n\n // fixes from converting finance from transforms to real trace types\n if(trace.type === 'candlestick' || trace.type === 'ohlc') {\n var increasingShowlegend = (trace.increasing || {}).showlegend !== false;\n var decreasingShowlegend = (trace.decreasing || {}).showlegend !== false;\n var increasingName = cleanFinanceDir(trace.increasing);\n var decreasingName = cleanFinanceDir(trace.decreasing);\n\n // now figure out something smart to do with the separate direction\n // names we removed\n if((increasingName !== false) && (decreasingName !== false)) {\n // both sub-names existed: base name previously had no effect\n // so ignore it and try to find a shared part of the sub-names\n\n var newName = commonPrefix(\n increasingName, decreasingName,\n increasingShowlegend, decreasingShowlegend\n );\n // if no common part, leave whatever name was (or wasn't) there\n if(newName) trace.name = newName;\n } else if((increasingName || decreasingName) && !trace.name) {\n // one sub-name existed but not the base name - just use the sub-name\n trace.name = increasingName || decreasingName;\n }\n }\n\n // transforms backward compatibility fixes\n if(Array.isArray(trace.transforms)) {\n var transforms = trace.transforms;\n\n for(i = 0; i < transforms.length; i++) {\n var transform = transforms[i];\n\n if(!Lib.isPlainObject(transform)) continue;\n\n switch(transform.type) {\n case 'filter':\n if(transform.filtersrc) {\n transform.target = transform.filtersrc;\n delete transform.filtersrc;\n }\n\n if(transform.calendar) {\n if(!transform.valuecalendar) {\n transform.valuecalendar = transform.calendar;\n }\n delete transform.calendar;\n }\n break;\n\n case 'groupby':\n // Name has changed from `style` to `styles`, so use `style` but prefer `styles`:\n transform.styles = transform.styles || transform.style;\n\n if(transform.styles && !Array.isArray(transform.styles)) {\n var prevStyles = transform.styles;\n var styleKeys = Object.keys(prevStyles);\n\n transform.styles = [];\n for(var j = 0; j < styleKeys.length; j++) {\n transform.styles.push({\n target: styleKeys[j],\n value: prevStyles[styleKeys[j]]\n });\n }\n }\n break;\n }\n }\n }\n\n // prune empty containers made before the new nestedProperty\n if(emptyContainer(trace, 'line')) delete trace.line;\n if('marker' in trace) {\n if(emptyContainer(trace.marker, 'line')) delete trace.marker.line;\n if(emptyContainer(trace, 'marker')) delete trace.marker;\n }\n\n // sanitize rgb(fractions) and rgba(fractions) that old tinycolor\n // supported, but new tinycolor does not because they're not valid css\n Color.clean(trace);\n\n // remove obsolete autobin(x|y) attributes, but only if true\n // if false, this needs to happen in Histogram.calc because it\n // can be a one-time autobin so we need to know the results before\n // we can push them back into the trace.\n if(trace.autobinx) {\n delete trace.autobinx;\n delete trace.xbins;\n }\n if(trace.autobiny) {\n delete trace.autobiny;\n delete trace.ybins;\n }\n\n cleanTitle(trace);\n if(trace.colorbar) cleanTitle(trace.colorbar);\n if(trace.marker && trace.marker.colorbar) cleanTitle(trace.marker.colorbar);\n if(trace.line && trace.line.colorbar) cleanTitle(trace.line.colorbar);\n if(trace.aaxis) cleanTitle(trace.aaxis);\n if(trace.baxis) cleanTitle(trace.baxis);\n }\n};\n\nfunction cleanFinanceDir(dirContainer) {\n if(!Lib.isPlainObject(dirContainer)) return false;\n\n var dirName = dirContainer.name;\n\n delete dirContainer.name;\n delete dirContainer.showlegend;\n\n return (typeof dirName === 'string' || typeof dirName === 'number') && String(dirName);\n}\n\nfunction commonPrefix(name1, name2, show1, show2) {\n // if only one is shown in the legend, use that\n if(show1 && !show2) return name1;\n if(show2 && !show1) return name2;\n\n // if both or neither are in the legend, check if one is blank (or whitespace)\n // and use the other one\n // note that hover labels can still use the name even if the legend doesn't\n if(!name1.trim()) return name2;\n if(!name2.trim()) return name1;\n\n var minLen = Math.min(name1.length, name2.length);\n var i;\n for(i = 0; i < minLen; i++) {\n if(name1.charAt(i) !== name2.charAt(i)) break;\n }\n\n var out = name1.substr(0, i);\n return out.trim();\n}\n\n// textposition - support partial attributes (ie just 'top')\n// and incorrect use of middle / center etc.\nfunction cleanTextPosition(textposition) {\n var posY = 'middle';\n var posX = 'center';\n\n if(typeof textposition === 'string') {\n if(textposition.indexOf('top') !== -1) posY = 'top';\n else if(textposition.indexOf('bottom') !== -1) posY = 'bottom';\n\n if(textposition.indexOf('left') !== -1) posX = 'left';\n else if(textposition.indexOf('right') !== -1) posX = 'right';\n }\n\n return posY + ' ' + posX;\n}\n\nfunction emptyContainer(outer, innerStr) {\n return (innerStr in outer) &&\n (typeof outer[innerStr] === 'object') &&\n (Object.keys(outer[innerStr]).length === 0);\n}\n\n\n// swap all the data and data attributes associated with x and y\nexports.swapXYData = function(trace) {\n var i;\n Lib.swapAttrs(trace, ['?', '?0', 'd?', '?bins', 'nbins?', 'autobin?', '?src', 'error_?']);\n if(Array.isArray(trace.z) && Array.isArray(trace.z[0])) {\n if(trace.transpose) delete trace.transpose;\n else trace.transpose = true;\n }\n if(trace.error_x && trace.error_y) {\n var errorY = trace.error_y;\n var copyYstyle = ('copy_ystyle' in errorY) ?\n errorY.copy_ystyle :\n !(errorY.color || errorY.thickness || errorY.width);\n Lib.swapAttrs(trace, ['error_?.copy_ystyle']);\n if(copyYstyle) {\n Lib.swapAttrs(trace, ['error_?.color', 'error_?.thickness', 'error_?.width']);\n }\n }\n if(typeof trace.hoverinfo === 'string') {\n var hoverInfoParts = trace.hoverinfo.split('+');\n for(i = 0; i < hoverInfoParts.length; i++) {\n if(hoverInfoParts[i] === 'x') hoverInfoParts[i] = 'y';\n else if(hoverInfoParts[i] === 'y') hoverInfoParts[i] = 'x';\n }\n trace.hoverinfo = hoverInfoParts.join('+');\n }\n};\n\n// coerce traceIndices input to array of trace indices\nexports.coerceTraceIndices = function(gd, traceIndices) {\n if(isNumeric(traceIndices)) {\n return [traceIndices];\n } else if(!Array.isArray(traceIndices) || !traceIndices.length) {\n return gd.data.map(function(_, i) { return i; });\n } else if(Array.isArray(traceIndices)) {\n var traceIndicesOut = [];\n for(var i = 0; i < traceIndices.length; i++) {\n if(Lib.isIndex(traceIndices[i], gd.data.length)) {\n traceIndicesOut.push(traceIndices[i]);\n } else {\n Lib.warn('trace index (', traceIndices[i], ') is not a number or is out of bounds');\n }\n }\n return traceIndicesOut;\n }\n\n return traceIndices;\n};\n\n/**\n * Manages logic around array container item creation / deletion / update\n * that nested property alone can't handle.\n *\n * @param {Object} np\n * nested property of update attribute string about trace or layout object\n * @param {*} newVal\n * update value passed to restyle / relayout / update\n * @param {Object} undoit\n * undo hash (N.B. undoit may be mutated here).\n *\n */\nexports.manageArrayContainers = function(np, newVal, undoit) {\n var obj = np.obj;\n var parts = np.parts;\n var pLength = parts.length;\n var pLast = parts[pLength - 1];\n\n var pLastIsNumber = isNumeric(pLast);\n\n if(pLastIsNumber && newVal === null) {\n // delete item\n\n // Clear item in array container when new value is null\n var contPath = parts.slice(0, pLength - 1).join('.');\n var cont = Lib.nestedProperty(obj, contPath).get();\n cont.splice(pLast, 1);\n\n // Note that nested property clears null / undefined at end of\n // array container, but not within them.\n } else if(pLastIsNumber && np.get() === undefined) {\n // create item\n\n // When adding a new item, make sure undo command will remove it\n if(np.get() === undefined) undoit[np.astr] = null;\n\n np.set(newVal);\n } else {\n // update item\n\n // If the last part of attribute string isn't a number,\n // np.set is all we need.\n np.set(newVal);\n }\n};\n\n/*\n * Match the part to strip off to turn an attribute into its parent\n * really it should be either '.some_characters' or '[number]'\n * but we're a little more permissive here and match either\n * '.not_brackets_or_dot' or '[not_brackets_or_dot]'\n */\nvar ATTR_TAIL_RE = /(\\.[^\\[\\]\\.]+|\\[[^\\[\\]\\.]+\\])$/;\n\nfunction getParent(attr) {\n var tail = attr.search(ATTR_TAIL_RE);\n if(tail > 0) return attr.substr(0, tail);\n}\n\n/*\n * hasParent: does an attribute object contain a parent of the given attribute?\n * for example, given 'images[2].x' do we also have 'images' or 'images[2]'?\n *\n * @param {Object} aobj\n * update object, whose keys are attribute strings and values are their new settings\n * @param {string} attr\n * the attribute string to test against\n * @returns {Boolean}\n * is a parent of attr present in aobj?\n */\nexports.hasParent = function(aobj, attr) {\n var attrParent = getParent(attr);\n while(attrParent) {\n if(attrParent in aobj) return true;\n attrParent = getParent(attrParent);\n }\n return false;\n};\n\n/**\n * Empty out types for all axes containing these traces so we auto-set them again\n *\n * @param {object} gd\n * @param {[integer]} traces: trace indices to search for axes to clear the types of\n * @param {object} layoutUpdate: any update being done concurrently to the layout,\n * which may supercede clearing the axis types\n */\nvar axLetters = ['x', 'y', 'z'];\nexports.clearAxisTypes = function(gd, traces, layoutUpdate) {\n for(var i = 0; i < traces.length; i++) {\n var trace = gd._fullData[i];\n for(var j = 0; j < 3; j++) {\n var ax = getFromTrace(gd, trace, axLetters[j]);\n\n // do not clear log type - that's never an auto result so must have been intentional\n if(ax && ax.type !== 'log') {\n var axAttr = ax._name;\n var sceneName = ax._id.substr(1);\n if(sceneName.substr(0, 5) === 'scene') {\n if(layoutUpdate[sceneName] !== undefined) continue;\n axAttr = sceneName + '.' + axAttr;\n }\n var typeAttr = axAttr + '.type';\n\n if(layoutUpdate[axAttr] === undefined && layoutUpdate[typeAttr] === undefined) {\n Lib.nestedProperty(gd.layout, typeAttr).set(null);\n }\n }\n }\n }\n};\n\n},{\"../components/color\":366,\"../lib\":503,\"../plots/cartesian/axis_ids\":558,\"../plots/plots\":619,\"../registry\":638,\"fast-isnumeric\":190,\"gl-mat4/fromQuat\":200}],538:[function(_dereq_,module,exports){\n'use strict';\n\nvar main = _dereq_('./plot_api');\n\nexports._doPlot = main._doPlot;\nexports.newPlot = main.newPlot;\nexports.restyle = main.restyle;\nexports.relayout = main.relayout;\nexports.redraw = main.redraw;\nexports.update = main.update;\nexports._guiRestyle = main._guiRestyle;\nexports._guiRelayout = main._guiRelayout;\nexports._guiUpdate = main._guiUpdate;\nexports._storeDirectGUIEdit = main._storeDirectGUIEdit;\nexports.react = main.react;\nexports.extendTraces = main.extendTraces;\nexports.prependTraces = main.prependTraces;\nexports.addTraces = main.addTraces;\nexports.deleteTraces = main.deleteTraces;\nexports.moveTraces = main.moveTraces;\nexports.purge = main.purge;\nexports.addFrames = main.addFrames;\nexports.deleteFrames = main.deleteFrames;\nexports.animate = main.animate;\nexports.setPlotConfig = main.setPlotConfig;\n\nexports.toImage = _dereq_('./to_image');\nexports.validate = _dereq_('./validate');\nexports.downloadImage = _dereq_('../snapshot/download');\n\nvar templateApi = _dereq_('./template_api');\nexports.makeTemplate = templateApi.makeTemplate;\nexports.validateTemplate = templateApi.validateTemplate;\n\n},{\"../snapshot/download\":640,\"./plot_api\":540,\"./template_api\":545,\"./to_image\":546,\"./validate\":547}],539:[function(_dereq_,module,exports){\n'use strict';\n\nvar isPlainObject = _dereq_('../lib/is_plain_object');\nvar noop = _dereq_('../lib/noop');\nvar Loggers = _dereq_('../lib/loggers');\nvar sorterAsc = _dereq_('../lib/search').sorterAsc;\nvar Registry = _dereq_('../registry');\n\n\nexports.containerArrayMatch = _dereq_('./container_array_match');\n\nvar isAddVal = exports.isAddVal = function isAddVal(val) {\n return val === 'add' || isPlainObject(val);\n};\n\nvar isRemoveVal = exports.isRemoveVal = function isRemoveVal(val) {\n return val === null || val === 'remove';\n};\n\n/*\n * applyContainerArrayChanges: for managing arrays of layout components in relayout\n * handles them all with a consistent interface.\n *\n * Here are the supported actions -> relayout calls -> edits we get here\n * (as prepared in _relayout):\n *\n * add an empty obj -> {'annotations[2]': 'add'} -> {2: {'': 'add'}}\n * add a specific obj -> {'annotations[2]': {attrs}} -> {2: {'': {attrs}}}\n * delete an obj -> {'annotations[2]': 'remove'} -> {2: {'': 'remove'}}\n * -> {'annotations[2]': null} -> {2: {'': null}}\n * delete the whole array -> {'annotations': 'remove'} -> {'': {'': 'remove'}}\n * -> {'annotations': null} -> {'': {'': null}}\n * edit an object -> {'annotations[2].text': 'boo'} -> {2: {'text': 'boo'}}\n *\n * You can combine many edits to different objects. Objects are added and edited\n * in ascending order, then removed in descending order.\n * For example, starting with [a, b, c], if you want to:\n * - replace b with d:\n * {'annotations[1]': d, 'annotations[2]': null} (b is item 2 after adding d)\n * - add a new item d between a and b, and edit b:\n * {'annotations[1]': d, 'annotations[2].x': newX} (b is item 2 after adding d)\n * - delete b and edit c:\n * {'annotations[1]': null, 'annotations[2].x': newX} (c is edited before b is removed)\n *\n * You CANNOT combine adding/deleting an item at index `i` with edits to the same index `i`\n * You CANNOT combine replacing/deleting the whole array with anything else (for the same array).\n *\n * @param {HTMLDivElement} gd\n * the DOM element of the graph container div\n * @param {Lib.nestedProperty} componentType: the array we are editing\n * @param {Object} edits\n * the changes to make; keys are indices to edit, values are themselves objects:\n * {attr: newValue} of changes to make to that index (with add/remove behavior\n * in special values of the empty attr)\n * @param {Object} flags\n * the flags for which actions we're going to perform to display these (and\n * any other) changes. If we're already `recalc`ing, we don't need to redraw\n * individual items\n * @param {function} _nestedProperty\n * a (possibly modified for gui edits) nestedProperty constructor\n * The modified version takes a 3rd argument, for a prefix to the attribute\n * string necessary for storing GUI edits\n *\n * @returns {bool} `true` if it managed to complete drawing of the changes\n * `false` would mean the parent should replot.\n */\nexports.applyContainerArrayChanges = function applyContainerArrayChanges(gd, np, edits, flags, _nestedProperty) {\n var componentType = np.astr;\n var supplyComponentDefaults = Registry.getComponentMethod(componentType, 'supplyLayoutDefaults');\n var draw = Registry.getComponentMethod(componentType, 'draw');\n var drawOne = Registry.getComponentMethod(componentType, 'drawOne');\n var replotLater = flags.replot || flags.recalc || (supplyComponentDefaults === noop) || (draw === noop);\n var layout = gd.layout;\n var fullLayout = gd._fullLayout;\n\n if(edits['']) {\n if(Object.keys(edits).length > 1) {\n Loggers.warn('Full array edits are incompatible with other edits',\n componentType);\n }\n\n var fullVal = edits[''][''];\n\n if(isRemoveVal(fullVal)) np.set(null);\n else if(Array.isArray(fullVal)) np.set(fullVal);\n else {\n Loggers.warn('Unrecognized full array edit value', componentType, fullVal);\n return true;\n }\n\n if(replotLater) return false;\n\n supplyComponentDefaults(layout, fullLayout);\n draw(gd);\n return true;\n }\n\n var componentNums = Object.keys(edits).map(Number).sort(sorterAsc);\n var componentArrayIn = np.get();\n var componentArray = componentArrayIn || [];\n // componentArrayFull is used just to keep splices in line between\n // full and input arrays, so private keys can be copied over after\n // redoing supplyDefaults\n // TODO: this assumes componentArray is in gd.layout - which will not be\n // true after we extend this to restyle\n var componentArrayFull = _nestedProperty(fullLayout, componentType).get();\n\n var deletes = [];\n var firstIndexChange = -1;\n var maxIndex = componentArray.length;\n var i;\n var j;\n var componentNum;\n var objEdits;\n var objKeys;\n var objVal;\n var adding, prefix;\n\n // first make the add and edit changes\n for(i = 0; i < componentNums.length; i++) {\n componentNum = componentNums[i];\n objEdits = edits[componentNum];\n objKeys = Object.keys(objEdits);\n objVal = objEdits[''],\n adding = isAddVal(objVal);\n\n if(componentNum < 0 || componentNum > componentArray.length - (adding ? 0 : 1)) {\n Loggers.warn('index out of range', componentType, componentNum);\n continue;\n }\n\n if(objVal !== undefined) {\n if(objKeys.length > 1) {\n Loggers.warn(\n 'Insertion & removal are incompatible with edits to the same index.',\n componentType, componentNum);\n }\n\n if(isRemoveVal(objVal)) {\n deletes.push(componentNum);\n } else if(adding) {\n if(objVal === 'add') objVal = {};\n componentArray.splice(componentNum, 0, objVal);\n if(componentArrayFull) componentArrayFull.splice(componentNum, 0, {});\n } else {\n Loggers.warn('Unrecognized full object edit value',\n componentType, componentNum, objVal);\n }\n\n if(firstIndexChange === -1) firstIndexChange = componentNum;\n } else {\n for(j = 0; j < objKeys.length; j++) {\n prefix = componentType + '[' + componentNum + '].';\n _nestedProperty(componentArray[componentNum], objKeys[j], prefix)\n .set(objEdits[objKeys[j]]);\n }\n }\n }\n\n // now do deletes\n for(i = deletes.length - 1; i >= 0; i--) {\n componentArray.splice(deletes[i], 1);\n // TODO: this drops private keys that had been stored in componentArrayFull\n // does this have any ill effects?\n if(componentArrayFull) componentArrayFull.splice(deletes[i], 1);\n }\n\n if(!componentArray.length) np.set(null);\n else if(!componentArrayIn) np.set(componentArray);\n\n if(replotLater) return false;\n\n supplyComponentDefaults(layout, fullLayout);\n\n // finally draw all the components we need to\n // if we added or removed any, redraw all after it\n if(drawOne !== noop) {\n var indicesToDraw;\n if(firstIndexChange === -1) {\n // there's no re-indexing to do, so only redraw components that changed\n indicesToDraw = componentNums;\n } else {\n // in case the component array was shortened, we still need do call\n // drawOne on the latter items so they get properly removed\n maxIndex = Math.max(componentArray.length, maxIndex);\n indicesToDraw = [];\n for(i = 0; i < componentNums.length; i++) {\n componentNum = componentNums[i];\n if(componentNum >= firstIndexChange) break;\n indicesToDraw.push(componentNum);\n }\n for(i = firstIndexChange; i < maxIndex; i++) {\n indicesToDraw.push(i);\n }\n }\n for(i = 0; i < indicesToDraw.length; i++) {\n drawOne(gd, indicesToDraw[i]);\n }\n } else draw(gd);\n\n return true;\n};\n\n},{\"../lib/is_plain_object\":504,\"../lib/loggers\":507,\"../lib/noop\":512,\"../lib/search\":523,\"../registry\":638,\"./container_array_match\":535}],540:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar isNumeric = _dereq_('fast-isnumeric');\nvar hasHover = _dereq_('has-hover');\n\nvar Lib = _dereq_('../lib');\nvar nestedProperty = Lib.nestedProperty;\n\nvar Events = _dereq_('../lib/events');\nvar Queue = _dereq_('../lib/queue');\n\nvar Registry = _dereq_('../registry');\nvar PlotSchema = _dereq_('./plot_schema');\nvar Plots = _dereq_('../plots/plots');\n\nvar Axes = _dereq_('../plots/cartesian/axes');\nvar Drawing = _dereq_('../components/drawing');\nvar Color = _dereq_('../components/color');\nvar initInteractions = _dereq_('../plots/cartesian/graph_interact').initInteractions;\nvar xmlnsNamespaces = _dereq_('../constants/xmlns_namespaces');\nvar clearSelect = _dereq_('../plots/cartesian/select').clearSelect;\n\nvar dfltConfig = _dereq_('./plot_config').dfltConfig;\nvar manageArrays = _dereq_('./manage_arrays');\nvar helpers = _dereq_('./helpers');\nvar subroutines = _dereq_('./subroutines');\nvar editTypes = _dereq_('./edit_types');\n\nvar AX_NAME_PATTERN = _dereq_('../plots/cartesian/constants').AX_NAME_PATTERN;\n\nvar numericNameWarningCount = 0;\nvar numericNameWarningCountLimit = 5;\n\n/**\n * Internal plot-creation function\n *\n * @param {string id or DOM element} gd\n * the id or DOM element of the graph container div\n * @param {array of objects} data\n * array of traces, containing the data and display information for each trace\n * @param {object} layout\n * object describing the overall display of the plot,\n * all the stuff that doesn't pertain to any individual trace\n * @param {object} config\n * configuration options (see ./plot_config.js for more info)\n *\n * OR\n *\n * @param {string id or DOM element} gd\n * the id or DOM element of the graph container div\n * @param {object} figure\n * object containing `data`, `layout`, `config`, and `frames` members\n *\n */\nfunction _doPlot(gd, data, layout, config) {\n var frames;\n\n gd = Lib.getGraphDiv(gd);\n\n // Events.init is idempotent and bails early if gd has already been init'd\n Events.init(gd);\n\n if(Lib.isPlainObject(data)) {\n var obj = data;\n data = obj.data;\n layout = obj.layout;\n config = obj.config;\n frames = obj.frames;\n }\n\n var okToPlot = Events.triggerHandler(gd, 'plotly_beforeplot', [data, layout, config]);\n if(okToPlot === false) return Promise.reject();\n\n // if there's no data or layout, and this isn't yet a plotly plot\n // container, log a warning to help plotly.js users debug\n if(!data && !layout && !Lib.isPlotDiv(gd)) {\n Lib.warn('Calling _doPlot as if redrawing ' +\n 'but this container doesn\\'t yet have a plot.', gd);\n }\n\n function addFrames() {\n if(frames) {\n return exports.addFrames(gd, frames);\n }\n }\n\n // transfer configuration options to gd until we move over to\n // a more OO like model\n setPlotContext(gd, config);\n\n if(!layout) layout = {};\n\n // hook class for plots main container (in case of plotly.js\n // this won't be #embedded-graph or .js-tab-contents)\n d3.select(gd).classed('js-plotly-plot', true);\n\n // off-screen getBoundingClientRect testing space,\n // in #js-plotly-tester (and stored as Drawing.tester)\n // so we can share cached text across tabs\n Drawing.makeTester();\n\n // collect promises for any async actions during plotting\n // any part of the plotting code can push to gd._promises, then\n // before we move to the next step, we check that they're all\n // complete, and empty out the promise list again.\n if(!Array.isArray(gd._promises)) gd._promises = [];\n\n var graphWasEmpty = ((gd.data || []).length === 0 && Array.isArray(data));\n\n // if there is already data on the graph, append the new data\n // if you only want to redraw, pass a non-array for data\n if(Array.isArray(data)) {\n helpers.cleanData(data);\n\n if(graphWasEmpty) gd.data = data;\n else gd.data.push.apply(gd.data, data);\n\n // for routines outside graph_obj that want a clean tab\n // (rather than appending to an existing one) gd.empty\n // is used to determine whether to make a new tab\n gd.empty = false;\n }\n\n if(!gd.layout || graphWasEmpty) {\n gd.layout = helpers.cleanLayout(layout);\n }\n\n Plots.supplyDefaults(gd);\n\n var fullLayout = gd._fullLayout;\n var hasCartesian = fullLayout._has('cartesian');\n\n // so we don't try to re-call _doPlot from inside\n // legend and colorbar, if margins changed\n fullLayout._replotting = true;\n\n // make or remake the framework if we need to\n if(graphWasEmpty || fullLayout._shouldCreateBgLayer) {\n makePlotFramework(gd);\n\n if(fullLayout._shouldCreateBgLayer) {\n delete fullLayout._shouldCreateBgLayer;\n }\n }\n\n // clear gradient and pattern defs on each .plot call, because we know we'll loop through all traces\n Drawing.initGradients(gd);\n Drawing.initPatterns(gd);\n\n // save initial show spikes once per graph\n if(graphWasEmpty) Axes.saveShowSpikeInitial(gd);\n\n // prepare the data and find the autorange\n\n // generate calcdata, if we need to\n // to force redoing calcdata, just delete it before calling _doPlot\n var recalc = !gd.calcdata || gd.calcdata.length !== (gd._fullData || []).length;\n if(recalc) Plots.doCalcdata(gd);\n\n // in case it has changed, attach fullData traces to calcdata\n for(var i = 0; i < gd.calcdata.length; i++) {\n gd.calcdata[i][0].trace = gd._fullData[i];\n }\n\n // make the figure responsive\n if(gd._context.responsive) {\n if(!gd._responsiveChartHandler) {\n // Keep a reference to the resize handler to purge it down the road\n gd._responsiveChartHandler = function() { if(!Lib.isHidden(gd)) Plots.resize(gd); };\n\n // Listen to window resize\n window.addEventListener('resize', gd._responsiveChartHandler);\n }\n } else {\n Lib.clearResponsive(gd);\n }\n\n /*\n * start async-friendly code - now we're actually drawing things\n */\n\n var oldMargins = Lib.extendFlat({}, fullLayout._size);\n\n // draw framework first so that margin-pushing\n // components can position themselves correctly\n var drawFrameworkCalls = 0;\n function drawFramework() {\n var basePlotModules = fullLayout._basePlotModules;\n\n for(var i = 0; i < basePlotModules.length; i++) {\n if(basePlotModules[i].drawFramework) {\n basePlotModules[i].drawFramework(gd);\n }\n }\n\n if(!fullLayout._glcanvas && fullLayout._has('gl')) {\n fullLayout._glcanvas = fullLayout._glcontainer.selectAll('.gl-canvas').data([{\n key: 'contextLayer',\n context: true,\n pick: false\n }, {\n key: 'focusLayer',\n context: false,\n pick: false\n }, {\n key: 'pickLayer',\n context: false,\n pick: true\n }], function(d) { return d.key; });\n\n fullLayout._glcanvas.enter().append('canvas')\n .attr('class', function(d) {\n return 'gl-canvas gl-canvas-' + d.key.replace('Layer', '');\n })\n .style({\n position: 'absolute',\n top: 0,\n left: 0,\n overflow: 'visible',\n 'pointer-events': 'none'\n });\n }\n\n var plotGlPixelRatio = gd._context.plotGlPixelRatio;\n if(fullLayout._glcanvas) {\n fullLayout._glcanvas\n .attr('width', fullLayout.width * plotGlPixelRatio)\n .attr('height', fullLayout.height * plotGlPixelRatio)\n .style('width', fullLayout.width + 'px')\n .style('height', fullLayout.height + 'px');\n\n var regl = fullLayout._glcanvas.data()[0].regl;\n if(regl) {\n // Unfortunately, this can happen when relayouting to large\n // width/height on some browsers.\n if(Math.floor(fullLayout.width * plotGlPixelRatio) !== regl._gl.drawingBufferWidth ||\n Math.floor(fullLayout.height * plotGlPixelRatio) !== regl._gl.drawingBufferHeight\n ) {\n var msg = 'WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.';\n if(drawFrameworkCalls) {\n Lib.error(msg);\n } else {\n Lib.log(msg + ' Clearing graph and plotting again.');\n Plots.cleanPlot([], {}, gd._fullData, fullLayout);\n Plots.supplyDefaults(gd);\n fullLayout = gd._fullLayout;\n Plots.doCalcdata(gd);\n drawFrameworkCalls++;\n return drawFramework();\n }\n }\n }\n }\n\n if(fullLayout.modebar.orientation === 'h') {\n fullLayout._modebardiv\n .style('height', null)\n .style('width', '100%');\n } else {\n fullLayout._modebardiv\n .style('width', null)\n .style('height', fullLayout.height + 'px');\n }\n\n return Plots.previousPromises(gd);\n }\n\n // draw anything that can affect margins.\n function marginPushers() {\n // First reset the list of things that are allowed to change the margins\n // So any deleted traces or components will be wiped out of the\n // automargin calculation.\n // This means *every* margin pusher must be listed here, even if it\n // doesn't actually try to push the margins until later.\n Plots.clearAutoMarginIds(gd);\n\n subroutines.drawMarginPushers(gd);\n Axes.allowAutoMargin(gd);\n\n // TODO can this be moved elsewhere?\n if(fullLayout._has('pie')) {\n var fullData = gd._fullData;\n for(var i = 0; i < fullData.length; i++) {\n var trace = fullData[i];\n if(trace.type === 'pie' && trace.automargin) {\n Plots.allowAutoMargin(gd, 'pie.' + trace.uid + '.automargin');\n }\n }\n }\n\n Plots.doAutoMargin(gd);\n return Plots.previousPromises(gd);\n }\n\n // in case the margins changed, draw margin pushers again\n function marginPushersAgain() {\n if(!Plots.didMarginChange(oldMargins, fullLayout._size)) return;\n\n return Lib.syncOrAsync([\n marginPushers,\n subroutines.layoutStyles\n ], gd);\n }\n\n function positionAndAutorange() {\n if(!recalc) {\n doAutoRangeAndConstraints();\n return;\n }\n\n // TODO: autosize extra for text markers and images\n // see https://github.com/plotly/plotly.js/issues/1111\n return Lib.syncOrAsync([\n Registry.getComponentMethod('shapes', 'calcAutorange'),\n Registry.getComponentMethod('annotations', 'calcAutorange'),\n doAutoRangeAndConstraints\n ], gd);\n }\n\n function doAutoRangeAndConstraints() {\n if(gd._transitioning) return;\n\n subroutines.doAutoRangeAndConstraints(gd);\n\n // store initial ranges *after* enforcing constraints, otherwise\n // we will never look like we're at the initial ranges\n if(graphWasEmpty) Axes.saveRangeInitial(gd);\n\n // this one is different from shapes/annotations calcAutorange\n // the others incorporate those components into ax._extremes,\n // this one actually sets the ranges in rangesliders.\n Registry.getComponentMethod('rangeslider', 'calcAutorange')(gd);\n }\n\n // draw ticks, titles, and calculate axis scaling (._b, ._m)\n function drawAxes() {\n return Axes.draw(gd, graphWasEmpty ? '' : 'redraw');\n }\n\n var seq = [\n Plots.previousPromises,\n addFrames,\n drawFramework,\n marginPushers,\n marginPushersAgain\n ];\n\n if(hasCartesian) seq.push(positionAndAutorange);\n\n seq.push(subroutines.layoutStyles);\n if(hasCartesian) {\n seq.push(\n drawAxes,\n function insideTickLabelsAutorange(gd) {\n if(gd._fullLayout._insideTickLabelsAutorange) {\n relayout(gd, gd._fullLayout._insideTickLabelsAutorange).then(function() {\n gd._fullLayout._insideTickLabelsAutorange = undefined;\n });\n }\n }\n );\n }\n\n seq.push(\n subroutines.drawData,\n subroutines.finalDraw,\n initInteractions,\n Plots.addLinks,\n Plots.rehover,\n Plots.redrag,\n // TODO: doAutoMargin is only needed here for axis automargin, which\n // happens outside of marginPushers where all the other automargins are\n // calculated. Would be much better to separate margin calculations from\n // component drawing - see https://github.com/plotly/plotly.js/issues/2704\n Plots.doAutoMargin,\n saveRangeInitialForInsideTickLabels,\n Plots.previousPromises\n );\n\n function saveRangeInitialForInsideTickLabels(gd) {\n if(gd._fullLayout._insideTickLabelsAutorange) {\n if(graphWasEmpty) Axes.saveRangeInitial(gd, true);\n }\n }\n\n // even if everything we did was synchronous, return a promise\n // so that the caller doesn't care which route we took\n var plotDone = Lib.syncOrAsync(seq, gd);\n if(!plotDone || !plotDone.then) plotDone = Promise.resolve();\n\n return plotDone.then(function() {\n emitAfterPlot(gd);\n return gd;\n });\n}\n\nfunction emitAfterPlot(gd) {\n var fullLayout = gd._fullLayout;\n\n if(fullLayout._redrawFromAutoMarginCount) {\n fullLayout._redrawFromAutoMarginCount--;\n } else {\n gd.emit('plotly_afterplot');\n }\n}\n\nfunction setPlotConfig(obj) {\n return Lib.extendFlat(dfltConfig, obj);\n}\n\nfunction setBackground(gd, bgColor) {\n try {\n gd._fullLayout._paper.style('background', bgColor);\n } catch(e) {\n Lib.error(e);\n }\n}\n\nfunction opaqueSetBackground(gd, bgColor) {\n var blend = Color.combine(bgColor, 'white');\n setBackground(gd, blend);\n}\n\nfunction setPlotContext(gd, config) {\n if(!gd._context) {\n gd._context = Lib.extendDeep({}, dfltConfig);\n\n // stash href, used to make robust clipPath URLs\n var base = d3.select('base');\n gd._context._baseUrl = base.size() && base.attr('href') ?\n window.location.href.split('#')[0] :\n '';\n }\n\n var context = gd._context;\n\n var i, keys, key;\n\n if(config) {\n keys = Object.keys(config);\n for(i = 0; i < keys.length; i++) {\n key = keys[i];\n if(key === 'editable' || key === 'edits') continue;\n if(key in context) {\n if(key === 'setBackground' && config[key] === 'opaque') {\n context[key] = opaqueSetBackground;\n } else {\n context[key] = config[key];\n }\n }\n }\n\n // map plot3dPixelRatio to plotGlPixelRatio for backward compatibility\n if(config.plot3dPixelRatio && !context.plotGlPixelRatio) {\n context.plotGlPixelRatio = context.plot3dPixelRatio;\n }\n\n // now deal with editable and edits - first editable overrides\n // everything, then edits refines\n var editable = config.editable;\n if(editable !== undefined) {\n // we're not going to *use* context.editable, we're only going to\n // use context.edits... but keep it for the record\n context.editable = editable;\n\n keys = Object.keys(context.edits);\n for(i = 0; i < keys.length; i++) {\n context.edits[keys[i]] = editable;\n }\n }\n if(config.edits) {\n keys = Object.keys(config.edits);\n for(i = 0; i < keys.length; i++) {\n key = keys[i];\n if(key in context.edits) {\n context.edits[key] = config.edits[key];\n }\n }\n }\n\n // not part of the user-facing config options\n context._exportedPlot = config._exportedPlot;\n }\n\n // staticPlot forces a bunch of others:\n if(context.staticPlot) {\n context.editable = false;\n context.edits = {};\n context.autosizable = false;\n context.scrollZoom = false;\n context.doubleClick = false;\n context.showTips = false;\n context.showLink = false;\n context.displayModeBar = false;\n }\n\n // make sure hover-only devices have mode bar visible\n if(context.displayModeBar === 'hover' && !hasHover) {\n context.displayModeBar = true;\n }\n\n // default and fallback for setBackground\n if(context.setBackground === 'transparent' || typeof context.setBackground !== 'function') {\n context.setBackground = setBackground;\n }\n\n // Check if gd has a specified widht/height to begin with\n context._hasZeroHeight = context._hasZeroHeight || gd.clientHeight === 0;\n context._hasZeroWidth = context._hasZeroWidth || gd.clientWidth === 0;\n\n // fill context._scrollZoom helper to help manage scrollZoom flaglist\n var szIn = context.scrollZoom;\n var szOut = context._scrollZoom = {};\n if(szIn === true) {\n szOut.cartesian = 1;\n szOut.gl3d = 1;\n szOut.geo = 1;\n szOut.mapbox = 1;\n } else if(typeof szIn === 'string') {\n var parts = szIn.split('+');\n for(i = 0; i < parts.length; i++) {\n szOut[parts[i]] = 1;\n }\n } else if(szIn !== false) {\n szOut.gl3d = 1;\n szOut.geo = 1;\n szOut.mapbox = 1;\n }\n}\n\n\n// convenience function to force a full redraw, mostly for use by plotly.js\nfunction redraw(gd) {\n gd = Lib.getGraphDiv(gd);\n\n if(!Lib.isPlotDiv(gd)) {\n throw new Error('This element is not a Plotly plot: ' + gd);\n }\n\n helpers.cleanData(gd.data);\n helpers.cleanLayout(gd.layout);\n\n gd.calcdata = undefined;\n return exports._doPlot(gd).then(function() {\n gd.emit('plotly_redraw');\n return gd;\n });\n}\n\n/**\n * Convenience function to make idempotent plot option obvious to users.\n *\n * @param gd\n * @param {Object[]} data\n * @param {Object} layout\n * @param {Object} config\n */\nfunction newPlot(gd, data, layout, config) {\n gd = Lib.getGraphDiv(gd);\n\n // remove gl contexts\n Plots.cleanPlot([], {}, gd._fullData || [], gd._fullLayout || {});\n\n Plots.purge(gd);\n return exports._doPlot(gd, data, layout, config);\n}\n\n/**\n * Wrap negative indicies to their positive counterparts.\n *\n * @param {Number[]} indices An array of indices\n * @param {Number} maxIndex The maximum index allowable (arr.length - 1)\n */\nfunction positivifyIndices(indices, maxIndex) {\n var parentLength = maxIndex + 1;\n var positiveIndices = [];\n var i;\n var index;\n\n for(i = 0; i < indices.length; i++) {\n index = indices[i];\n if(index < 0) {\n positiveIndices.push(parentLength + index);\n } else {\n positiveIndices.push(index);\n }\n }\n return positiveIndices;\n}\n\n/**\n * Ensures that an index array for manipulating gd.data is valid.\n *\n * Intended for use with addTraces, deleteTraces, and moveTraces.\n *\n * @param gd\n * @param indices\n * @param arrayName\n */\nfunction assertIndexArray(gd, indices, arrayName) {\n var i,\n index;\n\n for(i = 0; i < indices.length; i++) {\n index = indices[i];\n\n // validate that indices are indeed integers\n if(index !== parseInt(index, 10)) {\n throw new Error('all values in ' + arrayName + ' must be integers');\n }\n\n // check that all indices are in bounds for given gd.data array length\n if(index >= gd.data.length || index < -gd.data.length) {\n throw new Error(arrayName + ' must be valid indices for gd.data.');\n }\n\n // check that indices aren't repeated\n if(indices.indexOf(index, i + 1) > -1 ||\n index >= 0 && indices.indexOf(-gd.data.length + index) > -1 ||\n index < 0 && indices.indexOf(gd.data.length + index) > -1) {\n throw new Error('each index in ' + arrayName + ' must be unique.');\n }\n }\n}\n\n/**\n * Private function used by Plotly.moveTraces to check input args\n *\n * @param gd\n * @param currentIndices\n * @param newIndices\n */\nfunction checkMoveTracesArgs(gd, currentIndices, newIndices) {\n // check that gd has attribute 'data' and 'data' is array\n if(!Array.isArray(gd.data)) {\n throw new Error('gd.data must be an array.');\n }\n\n // validate currentIndices array\n if(typeof currentIndices === 'undefined') {\n throw new Error('currentIndices is a required argument.');\n } else if(!Array.isArray(currentIndices)) {\n currentIndices = [currentIndices];\n }\n assertIndexArray(gd, currentIndices, 'currentIndices');\n\n // validate newIndices array if it exists\n if(typeof newIndices !== 'undefined' && !Array.isArray(newIndices)) {\n newIndices = [newIndices];\n }\n if(typeof newIndices !== 'undefined') {\n assertIndexArray(gd, newIndices, 'newIndices');\n }\n\n // check currentIndices and newIndices are the same length if newIdices exists\n if(typeof newIndices !== 'undefined' && currentIndices.length !== newIndices.length) {\n throw new Error('current and new indices must be of equal length.');\n }\n}\n/**\n * A private function to reduce the type checking clutter in addTraces.\n *\n * @param gd\n * @param traces\n * @param newIndices\n */\nfunction checkAddTracesArgs(gd, traces, newIndices) {\n var i, value;\n\n // check that gd has attribute 'data' and 'data' is array\n if(!Array.isArray(gd.data)) {\n throw new Error('gd.data must be an array.');\n }\n\n // make sure traces exists\n if(typeof traces === 'undefined') {\n throw new Error('traces must be defined.');\n }\n\n // make sure traces is an array\n if(!Array.isArray(traces)) {\n traces = [traces];\n }\n\n // make sure each value in traces is an object\n for(i = 0; i < traces.length; i++) {\n value = traces[i];\n if(typeof value !== 'object' || (Array.isArray(value) || value === null)) {\n throw new Error('all values in traces array must be non-array objects');\n }\n }\n\n // make sure we have an index for each trace\n if(typeof newIndices !== 'undefined' && !Array.isArray(newIndices)) {\n newIndices = [newIndices];\n }\n if(typeof newIndices !== 'undefined' && newIndices.length !== traces.length) {\n throw new Error(\n 'if indices is specified, traces.length must equal indices.length'\n );\n }\n}\n\n/**\n * A private function to reduce the type checking clutter in spliceTraces.\n * Get all update Properties from gd.data. Validate inputs and outputs.\n * Used by prependTrace and extendTraces\n *\n * @param gd\n * @param update\n * @param indices\n * @param maxPoints\n */\nfunction assertExtendTracesArgs(gd, update, indices, maxPoints) {\n var maxPointsIsObject = Lib.isPlainObject(maxPoints);\n\n if(!Array.isArray(gd.data)) {\n throw new Error('gd.data must be an array');\n }\n if(!Lib.isPlainObject(update)) {\n throw new Error('update must be a key:value object');\n }\n\n if(typeof indices === 'undefined') {\n throw new Error('indices must be an integer or array of integers');\n }\n\n assertIndexArray(gd, indices, 'indices');\n\n for(var key in update) {\n /*\n * Verify that the attribute to be updated contains as many trace updates\n * as indices. Failure must result in throw and no-op\n */\n if(!Array.isArray(update[key]) || update[key].length !== indices.length) {\n throw new Error('attribute ' + key + ' must be an array of length equal to indices array length');\n }\n\n /*\n * if maxPoints is an object it must match keys and array lengths of 'update' 1:1\n */\n if(maxPointsIsObject &&\n (!(key in maxPoints) || !Array.isArray(maxPoints[key]) ||\n maxPoints[key].length !== update[key].length)) {\n throw new Error('when maxPoints is set as a key:value object it must contain a 1:1 ' +\n 'corrispondence with the keys and number of traces in the update object');\n }\n }\n}\n\n/**\n * A private function to reduce the type checking clutter in spliceTraces.\n *\n * @param {Object|HTMLDivElement} gd\n * @param {Object} update\n * @param {Number[]} indices\n * @param {Number||Object} maxPoints\n * @return {Object[]}\n */\nfunction getExtendProperties(gd, update, indices, maxPoints) {\n var maxPointsIsObject = Lib.isPlainObject(maxPoints);\n var updateProps = [];\n var trace, target, prop, insert, maxp;\n\n // allow scalar index to represent a single trace position\n if(!Array.isArray(indices)) indices = [indices];\n\n // negative indices are wrapped around to their positive value. Equivalent to python indexing.\n indices = positivifyIndices(indices, gd.data.length - 1);\n\n // loop through all update keys and traces and harvest validated data.\n for(var key in update) {\n for(var j = 0; j < indices.length; j++) {\n /*\n * Choose the trace indexed by the indices map argument and get the prop setter-getter\n * instance that references the key and value for this particular trace.\n */\n trace = gd.data[indices[j]];\n prop = nestedProperty(trace, key);\n\n /*\n * Target is the existing gd.data.trace.dataArray value like \"x\" or \"marker.size\"\n * Target must exist as an Array to allow the extend operation to be performed.\n */\n target = prop.get();\n insert = update[key][j];\n\n if(!Lib.isArrayOrTypedArray(insert)) {\n throw new Error('attribute: ' + key + ' index: ' + j + ' must be an array');\n }\n if(!Lib.isArrayOrTypedArray(target)) {\n throw new Error('cannot extend missing or non-array attribute: ' + key);\n }\n if(target.constructor !== insert.constructor) {\n throw new Error('cannot extend array with an array of a different type: ' + key);\n }\n\n /*\n * maxPoints may be an object map or a scalar. If object select the key:value, else\n * Use the scalar maxPoints for all key and trace combinations.\n */\n maxp = maxPointsIsObject ? maxPoints[key][j] : maxPoints;\n\n // could have chosen null here, -1 just tells us to not take a window\n if(!isNumeric(maxp)) maxp = -1;\n\n /*\n * Wrap the nestedProperty in an object containing required data\n * for lengthening and windowing this particular trace - key combination.\n * Flooring maxp mirrors the behaviour of floats in the Array.slice JSnative function.\n */\n updateProps.push({\n prop: prop,\n target: target,\n insert: insert,\n maxp: Math.floor(maxp)\n });\n }\n }\n\n // all target and insertion data now validated\n return updateProps;\n}\n\n/**\n * A private function to key Extend and Prepend traces DRY\n *\n * @param {Object|HTMLDivElement} gd\n * @param {Object} update\n * @param {Number[]} indices\n * @param {Number||Object} maxPoints\n * @param {Function} updateArray\n * @return {Object}\n */\nfunction spliceTraces(gd, update, indices, maxPoints, updateArray) {\n assertExtendTracesArgs(gd, update, indices, maxPoints);\n\n var updateProps = getExtendProperties(gd, update, indices, maxPoints);\n var undoUpdate = {};\n var undoPoints = {};\n\n for(var i = 0; i < updateProps.length; i++) {\n var prop = updateProps[i].prop;\n var maxp = updateProps[i].maxp;\n\n // return new array and remainder\n var out = updateArray(updateProps[i].target, updateProps[i].insert, maxp);\n prop.set(out[0]);\n\n // build the inverse update object for the undo operation\n if(!Array.isArray(undoUpdate[prop.astr])) undoUpdate[prop.astr] = [];\n undoUpdate[prop.astr].push(out[1]);\n\n // build the matching maxPoints undo object containing original trace lengths\n if(!Array.isArray(undoPoints[prop.astr])) undoPoints[prop.astr] = [];\n undoPoints[prop.astr].push(updateProps[i].target.length);\n }\n\n return {update: undoUpdate, maxPoints: undoPoints};\n}\n\nfunction concatTypedArray(arr0, arr1) {\n var arr2 = new arr0.constructor(arr0.length + arr1.length);\n arr2.set(arr0);\n arr2.set(arr1, arr0.length);\n return arr2;\n}\n\n/**\n * extend && prepend traces at indices with update arrays, window trace lengths to maxPoints\n *\n * Extend and Prepend have identical APIs. Prepend inserts an array at the head while Extend\n * inserts an array off the tail. Prepend truncates the tail of the array - counting maxPoints\n * from the head, whereas Extend truncates the head of the array, counting backward maxPoints\n * from the tail.\n *\n * If maxPoints is undefined, nonNumeric, negative or greater than extended trace length no\n * truncation / windowing will be performed. If its zero, well the whole trace is truncated.\n *\n * @param {Object|HTMLDivElement} gd The graph div\n * @param {Object} update The key:array map of target attributes to extend\n * @param {Number|Number[]} indices The locations of traces to be extended\n * @param {Number|Object} [maxPoints] Number of points for trace window after lengthening.\n *\n */\nfunction extendTraces(gd, update, indices, maxPoints) {\n gd = Lib.getGraphDiv(gd);\n\n function updateArray(target, insert, maxp) {\n var newArray, remainder;\n\n if(Lib.isTypedArray(target)) {\n if(maxp < 0) {\n var none = new target.constructor(0);\n var both = concatTypedArray(target, insert);\n\n if(maxp < 0) {\n newArray = both;\n remainder = none;\n } else {\n newArray = none;\n remainder = both;\n }\n } else {\n newArray = new target.constructor(maxp);\n remainder = new target.constructor(target.length + insert.length - maxp);\n\n if(maxp === insert.length) {\n newArray.set(insert);\n remainder.set(target);\n } else if(maxp < insert.length) {\n var numberOfItemsFromInsert = insert.length - maxp;\n\n newArray.set(insert.subarray(numberOfItemsFromInsert));\n remainder.set(target);\n remainder.set(insert.subarray(0, numberOfItemsFromInsert), target.length);\n } else {\n var numberOfItemsFromTarget = maxp - insert.length;\n var targetBegin = target.length - numberOfItemsFromTarget;\n\n newArray.set(target.subarray(targetBegin));\n newArray.set(insert, numberOfItemsFromTarget);\n remainder.set(target.subarray(0, targetBegin));\n }\n }\n } else {\n newArray = target.concat(insert);\n remainder = (maxp >= 0 && maxp < newArray.length) ?\n newArray.splice(0, newArray.length - maxp) :\n [];\n }\n\n return [newArray, remainder];\n }\n\n var undo = spliceTraces(gd, update, indices, maxPoints, updateArray);\n var promise = exports.redraw(gd);\n var undoArgs = [gd, undo.update, indices, undo.maxPoints];\n Queue.add(gd, exports.prependTraces, undoArgs, extendTraces, arguments);\n\n return promise;\n}\n\nfunction prependTraces(gd, update, indices, maxPoints) {\n gd = Lib.getGraphDiv(gd);\n\n function updateArray(target, insert, maxp) {\n var newArray, remainder;\n\n if(Lib.isTypedArray(target)) {\n if(maxp <= 0) {\n var none = new target.constructor(0);\n var both = concatTypedArray(insert, target);\n\n if(maxp < 0) {\n newArray = both;\n remainder = none;\n } else {\n newArray = none;\n remainder = both;\n }\n } else {\n newArray = new target.constructor(maxp);\n remainder = new target.constructor(target.length + insert.length - maxp);\n\n if(maxp === insert.length) {\n newArray.set(insert);\n remainder.set(target);\n } else if(maxp < insert.length) {\n var numberOfItemsFromInsert = insert.length - maxp;\n\n newArray.set(insert.subarray(0, numberOfItemsFromInsert));\n remainder.set(insert.subarray(numberOfItemsFromInsert));\n remainder.set(target, numberOfItemsFromInsert);\n } else {\n var numberOfItemsFromTarget = maxp - insert.length;\n\n newArray.set(insert);\n newArray.set(target.subarray(0, numberOfItemsFromTarget), insert.length);\n remainder.set(target.subarray(numberOfItemsFromTarget));\n }\n }\n } else {\n newArray = insert.concat(target);\n remainder = (maxp >= 0 && maxp < newArray.length) ?\n newArray.splice(maxp, newArray.length) :\n [];\n }\n\n return [newArray, remainder];\n }\n\n var undo = spliceTraces(gd, update, indices, maxPoints, updateArray);\n var promise = exports.redraw(gd);\n var undoArgs = [gd, undo.update, indices, undo.maxPoints];\n Queue.add(gd, exports.extendTraces, undoArgs, prependTraces, arguments);\n\n return promise;\n}\n\n/**\n * Add data traces to an existing graph div.\n *\n * @param {Object|HTMLDivElement} gd The graph div\n * @param {Object[]} gd.data The array of traces we're adding to\n * @param {Object[]|Object} traces The object or array of objects to add\n * @param {Number[]|Number} [newIndices=[gd.data.length]] Locations to add traces\n *\n */\nfunction addTraces(gd, traces, newIndices) {\n gd = Lib.getGraphDiv(gd);\n\n var currentIndices = [];\n var undoFunc = exports.deleteTraces;\n var redoFunc = addTraces;\n var undoArgs = [gd, currentIndices];\n var redoArgs = [gd, traces]; // no newIndices here\n var i;\n var promise;\n\n // all validation is done elsewhere to remove clutter here\n checkAddTracesArgs(gd, traces, newIndices);\n\n // make sure traces is an array\n if(!Array.isArray(traces)) {\n traces = [traces];\n }\n\n // make sure traces do not repeat existing ones\n traces = traces.map(function(trace) {\n return Lib.extendFlat({}, trace);\n });\n\n helpers.cleanData(traces);\n\n // add the traces to gd.data (no redrawing yet!)\n for(i = 0; i < traces.length; i++) {\n gd.data.push(traces[i]);\n }\n\n // to continue, we need to call moveTraces which requires currentIndices\n for(i = 0; i < traces.length; i++) {\n currentIndices.push(-traces.length + i);\n }\n\n // if the user didn't define newIndices, they just want the traces appended\n // i.e., we can simply redraw and be done\n if(typeof newIndices === 'undefined') {\n promise = exports.redraw(gd);\n Queue.add(gd, undoFunc, undoArgs, redoFunc, redoArgs);\n return promise;\n }\n\n // make sure indices is property defined\n if(!Array.isArray(newIndices)) {\n newIndices = [newIndices];\n }\n\n try {\n // this is redundant, but necessary to not catch later possible errors!\n checkMoveTracesArgs(gd, currentIndices, newIndices);\n } catch(error) {\n // something went wrong, reset gd to be safe and rethrow error\n gd.data.splice(gd.data.length - traces.length, traces.length);\n throw error;\n }\n\n // if we're here, the user has defined specific places to place the new traces\n // this requires some extra work that moveTraces will do\n Queue.startSequence(gd);\n Queue.add(gd, undoFunc, undoArgs, redoFunc, redoArgs);\n promise = exports.moveTraces(gd, currentIndices, newIndices);\n Queue.stopSequence(gd);\n return promise;\n}\n\n/**\n * Delete traces at `indices` from gd.data array.\n *\n * @param {Object|HTMLDivElement} gd The graph div\n * @param {Object[]} gd.data The array of traces we're removing from\n * @param {Number|Number[]} indices The indices\n */\nfunction deleteTraces(gd, indices) {\n gd = Lib.getGraphDiv(gd);\n\n var traces = [];\n var undoFunc = exports.addTraces;\n var redoFunc = deleteTraces;\n var undoArgs = [gd, traces, indices];\n var redoArgs = [gd, indices];\n var i;\n var deletedTrace;\n\n // make sure indices are defined\n if(typeof indices === 'undefined') {\n throw new Error('indices must be an integer or array of integers.');\n } else if(!Array.isArray(indices)) {\n indices = [indices];\n }\n assertIndexArray(gd, indices, 'indices');\n\n // convert negative indices to positive indices\n indices = positivifyIndices(indices, gd.data.length - 1);\n\n // we want descending here so that splicing later doesn't affect indexing\n indices.sort(Lib.sorterDes);\n for(i = 0; i < indices.length; i += 1) {\n deletedTrace = gd.data.splice(indices[i], 1)[0];\n traces.push(deletedTrace);\n }\n\n var promise = exports.redraw(gd);\n Queue.add(gd, undoFunc, undoArgs, redoFunc, redoArgs);\n\n return promise;\n}\n\n/**\n * Move traces at currentIndices array to locations in newIndices array.\n *\n * If newIndices is omitted, currentIndices will be moved to the end. E.g.,\n * these are equivalent:\n *\n * Plotly.moveTraces(gd, [1, 2, 3], [-3, -2, -1])\n * Plotly.moveTraces(gd, [1, 2, 3])\n *\n * @param {Object|HTMLDivElement} gd The graph div\n * @param {Object[]} gd.data The array of traces we're removing from\n * @param {Number|Number[]} currentIndices The locations of traces to be moved\n * @param {Number|Number[]} [newIndices] The locations to move traces to\n *\n * Example calls:\n *\n * // move trace i to location x\n * Plotly.moveTraces(gd, i, x)\n *\n * // move trace i to end of array\n * Plotly.moveTraces(gd, i)\n *\n * // move traces i, j, k to end of array (i != j != k)\n * Plotly.moveTraces(gd, [i, j, k])\n *\n * // move traces [i, j, k] to [x, y, z] (i != j != k) (x != y != z)\n * Plotly.moveTraces(gd, [i, j, k], [x, y, z])\n *\n * // reorder all traces (assume there are 5--a, b, c, d, e)\n * Plotly.moveTraces(gd, [b, d, e, a, c]) // same as 'move to end'\n */\nfunction moveTraces(gd, currentIndices, newIndices) {\n gd = Lib.getGraphDiv(gd);\n\n var newData = [];\n var movingTraceMap = [];\n var undoFunc = moveTraces;\n var redoFunc = moveTraces;\n var undoArgs = [gd, newIndices, currentIndices];\n var redoArgs = [gd, currentIndices, newIndices];\n var i;\n\n // to reduce complexity here, check args elsewhere\n // this throws errors where appropriate\n checkMoveTracesArgs(gd, currentIndices, newIndices);\n\n // make sure currentIndices is an array\n currentIndices = Array.isArray(currentIndices) ? currentIndices : [currentIndices];\n\n // if undefined, define newIndices to point to the end of gd.data array\n if(typeof newIndices === 'undefined') {\n newIndices = [];\n for(i = 0; i < currentIndices.length; i++) {\n newIndices.push(-currentIndices.length + i);\n }\n }\n\n // make sure newIndices is an array if it's user-defined\n newIndices = Array.isArray(newIndices) ? newIndices : [newIndices];\n\n // convert negative indices to positive indices (they're the same length)\n currentIndices = positivifyIndices(currentIndices, gd.data.length - 1);\n newIndices = positivifyIndices(newIndices, gd.data.length - 1);\n\n // at this point, we've coerced the index arrays into predictable forms\n\n // get the traces that aren't being moved around\n for(i = 0; i < gd.data.length; i++) {\n // if index isn't in currentIndices, include it in ignored!\n if(currentIndices.indexOf(i) === -1) {\n newData.push(gd.data[i]);\n }\n }\n\n // get a mapping of indices to moving traces\n for(i = 0; i < currentIndices.length; i++) {\n movingTraceMap.push({newIndex: newIndices[i], trace: gd.data[currentIndices[i]]});\n }\n\n // reorder this mapping by newIndex, ascending\n movingTraceMap.sort(function(a, b) {\n return a.newIndex - b.newIndex;\n });\n\n // now, add the moving traces back in, in order!\n for(i = 0; i < movingTraceMap.length; i += 1) {\n newData.splice(movingTraceMap[i].newIndex, 0, movingTraceMap[i].trace);\n }\n\n gd.data = newData;\n\n var promise = exports.redraw(gd);\n Queue.add(gd, undoFunc, undoArgs, redoFunc, redoArgs);\n\n return promise;\n}\n\n/**\n * restyle: update trace attributes of an existing plot\n *\n * Can be called two ways.\n *\n * Signature 1:\n * @param {String | HTMLDivElement} gd\n * the id or DOM element of the graph container div\n * @param {String} astr\n * attribute string (like `'marker.symbol'`) to update\n * @param {*} val\n * value to give this attribute\n * @param {Number[] | Number} [traces]\n * integer or array of integers for the traces to alter (all if omitted)\n *\n * Signature 2:\n * @param {String | HTMLDivElement} gd\n * (as in signature 1)\n * @param {Object} aobj\n * attribute object `{astr1: val1, astr2: val2 ...}`\n * allows setting multiple attributes simultaneously\n * @param {Number[] | Number} [traces]\n * (as in signature 1)\n *\n * `val` (or `val1`, `val2` ... in the object form) can be an array,\n * to apply different values to each trace.\n *\n * If the array is too short, it will wrap around (useful for\n * style files that want to specify cyclical default values).\n */\nfunction restyle(gd, astr, val, _traces) {\n gd = Lib.getGraphDiv(gd);\n helpers.clearPromiseQueue(gd);\n\n var aobj = {};\n if(typeof astr === 'string') aobj[astr] = val;\n else if(Lib.isPlainObject(astr)) {\n // the 3-arg form\n aobj = Lib.extendFlat({}, astr);\n if(_traces === undefined) _traces = val;\n } else {\n Lib.warn('Restyle fail.', astr, val, _traces);\n return Promise.reject();\n }\n\n if(Object.keys(aobj).length) gd.changed = true;\n\n var traces = helpers.coerceTraceIndices(gd, _traces);\n\n var specs = _restyle(gd, aobj, traces);\n var flags = specs.flags;\n\n // clear calcdata and/or axis types if required so they get regenerated\n if(flags.calc) gd.calcdata = undefined;\n if(flags.clearAxisTypes) helpers.clearAxisTypes(gd, traces, {});\n\n // fill in redraw sequence\n var seq = [];\n\n if(flags.fullReplot) {\n seq.push(exports._doPlot);\n } else {\n seq.push(Plots.previousPromises);\n\n // maybe only call Plots.supplyDataDefaults in the splom case,\n // to skip over long and slow axes defaults\n Plots.supplyDefaults(gd);\n\n if(flags.markerSize) {\n Plots.doCalcdata(gd);\n addAxRangeSequence(seq);\n\n // TODO\n // if all axes have autorange:false, then\n // proceed to subroutines.doTraceStyle(),\n // otherwise we must go through addAxRangeSequence,\n // which in general must redraws 'all' axes\n }\n\n if(flags.style) seq.push(subroutines.doTraceStyle);\n if(flags.colorbars) seq.push(subroutines.doColorBars);\n\n seq.push(emitAfterPlot);\n }\n\n seq.push(Plots.rehover, Plots.redrag);\n\n Queue.add(gd,\n restyle, [gd, specs.undoit, specs.traces],\n restyle, [gd, specs.redoit, specs.traces]\n );\n\n var plotDone = Lib.syncOrAsync(seq, gd);\n if(!plotDone || !plotDone.then) plotDone = Promise.resolve();\n\n return plotDone.then(function() {\n gd.emit('plotly_restyle', specs.eventData);\n return gd;\n });\n}\n\n// for undo: undefined initial vals must be turned into nulls\n// so that we unset rather than ignore them\nfunction undefinedToNull(val) {\n if(val === undefined) return null;\n return val;\n}\n\n/**\n * Factory function to wrap nestedProperty with GUI edits if necessary\n * with GUI edits we add an optional prefix to the nestedProperty constructor\n * to prepend to the attribute string in the preGUI store.\n */\nfunction makeNP(preGUI, guiEditFlag) {\n if(!guiEditFlag) return nestedProperty;\n\n return function(container, attr, prefix) {\n var np = nestedProperty(container, attr);\n var npSet = np.set;\n np.set = function(val) {\n var fullAttr = (prefix || '') + attr;\n storeCurrent(fullAttr, np.get(), val, preGUI);\n npSet(val);\n };\n return np;\n };\n}\n\nfunction storeCurrent(attr, val, newVal, preGUI) {\n if(Array.isArray(val) || Array.isArray(newVal)) {\n var arrayVal = Array.isArray(val) ? val : [];\n var arrayNew = Array.isArray(newVal) ? newVal : [];\n var maxLen = Math.max(arrayVal.length, arrayNew.length);\n for(var i = 0; i < maxLen; i++) {\n storeCurrent(attr + '[' + i + ']', arrayVal[i], arrayNew[i], preGUI);\n }\n } else if(Lib.isPlainObject(val) || Lib.isPlainObject(newVal)) {\n var objVal = Lib.isPlainObject(val) ? val : {};\n var objNew = Lib.isPlainObject(newVal) ? newVal : {};\n var objBoth = Lib.extendFlat({}, objVal, objNew);\n for(var key in objBoth) {\n storeCurrent(attr + '.' + key, objVal[key], objNew[key], preGUI);\n }\n } else if(preGUI[attr] === undefined) {\n preGUI[attr] = undefinedToNull(val);\n }\n}\n\n/**\n * storeDirectGUIEdit: for routines that skip restyle/relayout and mock it\n * by emitting a plotly_restyle or plotly_relayout event, this routine\n * keeps track of the initial state in _preGUI for use by uirevision\n * Does *not* apply these changes to data/layout - that's the responsibility\n * of the calling routine.\n *\n * @param {object} container: the input attributes container (eg `layout` or a `trace`)\n * @param {object} preGUI: where original values should be stored, either\n * `layout._preGUI` or `layout._tracePreGUI[uid]`\n * @param {object} edits: the {attr: val} object as normally passed to `relayout` etc\n */\nfunction _storeDirectGUIEdit(container, preGUI, edits) {\n for(var attr in edits) {\n var np = nestedProperty(container, attr);\n storeCurrent(attr, np.get(), edits[attr], preGUI);\n }\n}\n\nfunction _restyle(gd, aobj, traces) {\n var fullLayout = gd._fullLayout;\n var fullData = gd._fullData;\n var data = gd.data;\n var guiEditFlag = fullLayout._guiEditing;\n var layoutNP = makeNP(fullLayout._preGUI, guiEditFlag);\n var eventData = Lib.extendDeepAll({}, aobj);\n var i;\n\n cleanDeprecatedAttributeKeys(aobj);\n\n // initialize flags\n var flags = editTypes.traceFlags();\n\n // copies of the change (and previous values of anything affected)\n // for the undo / redo queue\n var redoit = {};\n var undoit = {};\n var axlist;\n\n // make a new empty vals array for undoit\n function a0() { return traces.map(function() { return undefined; }); }\n\n // for autoranging multiple axes\n function addToAxlist(axid) {\n var axName = Axes.id2name(axid);\n if(axlist.indexOf(axName) === -1) axlist.push(axName);\n }\n\n function autorangeAttr(axName) { return 'LAYOUT' + axName + '.autorange'; }\n\n function rangeAttr(axName) { return 'LAYOUT' + axName + '.range'; }\n\n function getFullTrace(traceIndex) {\n // usually fullData maps 1:1 onto data, but with groupby transforms\n // the fullData index can be greater. Take the *first* matching trace.\n for(var j = traceIndex; j < fullData.length; j++) {\n if(fullData[j]._input === data[traceIndex]) return fullData[j];\n }\n // should never get here - and if we *do* it should cause an error\n // later on undefined fullTrace is passed to nestedProperty.\n }\n\n // for attrs that interact (like scales & autoscales), save the\n // old vals before making the change\n // val=undefined will not set a value, just record what the value was.\n // val=null will delete the attribute\n // attr can be an array to set several at once (all to the same val)\n function doextra(attr, val, i) {\n if(Array.isArray(attr)) {\n attr.forEach(function(a) { doextra(a, val, i); });\n return;\n }\n // quit if explicitly setting this elsewhere\n if(attr in aobj || helpers.hasParent(aobj, attr)) return;\n\n var extraparam;\n if(attr.substr(0, 6) === 'LAYOUT') {\n extraparam = layoutNP(gd.layout, attr.replace('LAYOUT', ''));\n } else {\n var tracei = traces[i];\n var preGUI = fullLayout._tracePreGUI[getFullTrace(tracei)._fullInput.uid];\n extraparam = makeNP(preGUI, guiEditFlag)(data[tracei], attr);\n }\n\n if(!(attr in undoit)) {\n undoit[attr] = a0();\n }\n if(undoit[attr][i] === undefined) {\n undoit[attr][i] = undefinedToNull(extraparam.get());\n }\n if(val !== undefined) {\n extraparam.set(val);\n }\n }\n\n function allBins(binAttr) {\n return function(j) {\n return fullData[j][binAttr];\n };\n }\n\n function arrayBins(binAttr) {\n return function(vij, j) {\n return vij === false ? fullData[traces[j]][binAttr] : null;\n };\n }\n\n // now make the changes to gd.data (and occasionally gd.layout)\n // and figure out what kind of graphics update we need to do\n for(var ai in aobj) {\n if(helpers.hasParent(aobj, ai)) {\n throw new Error('cannot set ' + ai + ' and a parent attribute simultaneously');\n }\n\n var vi = aobj[ai];\n var cont;\n var contFull;\n var param;\n var oldVal;\n var newVal;\n var valObject;\n\n // Backward compatibility shim for turning histogram autobin on,\n // or freezing previous autobinned values.\n // Replace obsolete `autobin(x|y): true` with `(x|y)bins: null`\n // and `autobin(x|y): false` with the `(x|y)bins` in `fullData`\n if(ai === 'autobinx' || ai === 'autobiny') {\n ai = ai.charAt(ai.length - 1) + 'bins';\n if(Array.isArray(vi)) vi = vi.map(arrayBins(ai));\n else if(vi === false) vi = traces.map(allBins(ai));\n else vi = null;\n }\n\n redoit[ai] = vi;\n\n if(ai.substr(0, 6) === 'LAYOUT') {\n param = layoutNP(gd.layout, ai.replace('LAYOUT', ''));\n undoit[ai] = [undefinedToNull(param.get())];\n // since we're allowing val to be an array, allow it here too,\n // even though that's meaningless\n param.set(Array.isArray(vi) ? vi[0] : vi);\n // ironically, the layout attrs in restyle only require replot,\n // not relayout\n flags.calc = true;\n continue;\n }\n\n // set attribute in gd.data\n undoit[ai] = a0();\n for(i = 0; i < traces.length; i++) {\n cont = data[traces[i]];\n contFull = getFullTrace(traces[i]);\n var preGUI = fullLayout._tracePreGUI[contFull._fullInput.uid];\n param = makeNP(preGUI, guiEditFlag)(cont, ai);\n oldVal = param.get();\n newVal = Array.isArray(vi) ? vi[i % vi.length] : vi;\n\n if(newVal === undefined) continue;\n\n var finalPart = param.parts[param.parts.length - 1];\n var prefix = ai.substr(0, ai.length - finalPart.length - 1);\n var prefixDot = prefix ? prefix + '.' : '';\n var innerContFull = prefix ?\n nestedProperty(contFull, prefix).get() : contFull;\n\n valObject = PlotSchema.getTraceValObject(contFull, param.parts);\n\n if(valObject && valObject.impliedEdits && newVal !== null) {\n for(var impliedKey in valObject.impliedEdits) {\n doextra(Lib.relativeAttr(ai, impliedKey), valObject.impliedEdits[impliedKey], i);\n }\n } else if((finalPart === 'thicknessmode' || finalPart === 'lenmode') &&\n oldVal !== newVal &&\n (newVal === 'fraction' || newVal === 'pixels') &&\n innerContFull\n ) {\n // changing colorbar size modes,\n // make the resulting size not change\n // note that colorbar fractional sizing is based on the\n // original plot size, before anything (like a colorbar)\n // increases the margins\n\n var gs = fullLayout._size;\n var orient = innerContFull.orient;\n var topOrBottom = (orient === 'top') || (orient === 'bottom');\n if(finalPart === 'thicknessmode') {\n var thicknorm = topOrBottom ? gs.h : gs.w;\n doextra(prefixDot + 'thickness', innerContFull.thickness *\n (newVal === 'fraction' ? 1 / thicknorm : thicknorm), i);\n } else {\n var lennorm = topOrBottom ? gs.w : gs.h;\n doextra(prefixDot + 'len', innerContFull.len *\n (newVal === 'fraction' ? 1 / lennorm : lennorm), i);\n }\n } else if(ai === 'type' && (\n (newVal === 'pie') !== (oldVal === 'pie') ||\n (newVal === 'funnelarea') !== (oldVal === 'funnelarea')\n )) {\n var labelsTo = 'x';\n var valuesTo = 'y';\n if((newVal === 'bar' || oldVal === 'bar') && cont.orientation === 'h') {\n labelsTo = 'y';\n valuesTo = 'x';\n }\n Lib.swapAttrs(cont, ['?', '?src'], 'labels', labelsTo);\n Lib.swapAttrs(cont, ['d?', '?0'], 'label', labelsTo);\n Lib.swapAttrs(cont, ['?', '?src'], 'values', valuesTo);\n\n if(oldVal === 'pie' || oldVal === 'funnelarea') {\n nestedProperty(cont, 'marker.color')\n .set(nestedProperty(cont, 'marker.colors').get());\n\n // super kludgy - but if all pies are gone we won't remove them otherwise\n fullLayout._pielayer.selectAll('g.trace').remove();\n } else if(Registry.traceIs(cont, 'cartesian')) {\n nestedProperty(cont, 'marker.colors')\n .set(nestedProperty(cont, 'marker.color').get());\n }\n }\n\n undoit[ai][i] = undefinedToNull(oldVal);\n // set the new value - if val is an array, it's one el per trace\n // first check for attributes that get more complex alterations\n var swapAttrs = [\n 'swapxy', 'swapxyaxes', 'orientation', 'orientationaxes'\n ];\n if(swapAttrs.indexOf(ai) !== -1) {\n // setting an orientation: make sure it's changing\n // before we swap everything else\n if(ai === 'orientation') {\n param.set(newVal);\n // obnoxious that we need this level of coupling... but in order to\n // properly handle setting orientation to `null` we need to mimic\n // the logic inside Bars.supplyDefaults for default orientation\n var defaultOrientation = (cont.x && !cont.y) ? 'h' : 'v';\n if((param.get() || defaultOrientation) === contFull.orientation) {\n continue;\n }\n } else if(ai === 'orientationaxes') {\n // orientationaxes has no value,\n // it flips everything and the axes\n\n cont.orientation =\n {v: 'h', h: 'v'}[contFull.orientation];\n }\n helpers.swapXYData(cont);\n flags.calc = flags.clearAxisTypes = true;\n } else if(Plots.dataArrayContainers.indexOf(param.parts[0]) !== -1) {\n // TODO: use manageArrays.applyContainerArrayChanges here too\n helpers.manageArrayContainers(param, newVal, undoit);\n flags.calc = true;\n } else {\n if(valObject) {\n // must redo calcdata when restyling array values of arrayOk attributes\n // ... but no need to this for regl-based traces\n if(valObject.arrayOk &&\n !Registry.traceIs(contFull, 'regl') &&\n (Lib.isArrayOrTypedArray(newVal) || Lib.isArrayOrTypedArray(oldVal))\n ) {\n flags.calc = true;\n } else editTypes.update(flags, valObject);\n } else {\n /*\n * if we couldn't find valObject, assume a full recalc.\n * This can happen if you're changing type and making\n * some other edits too, so the modules we're\n * looking at don't have these attributes in them.\n */\n flags.calc = true;\n }\n\n // all the other ones, just modify that one attribute\n param.set(newVal);\n }\n }\n\n // swap the data attributes of the relevant x and y axes?\n if(['swapxyaxes', 'orientationaxes'].indexOf(ai) !== -1) {\n Axes.swap(gd, traces);\n }\n\n // swap hovermode if set to \"compare x/y data\"\n if(ai === 'orientationaxes') {\n var hovermode = nestedProperty(gd.layout, 'hovermode');\n var h = hovermode.get();\n if(h === 'x') {\n hovermode.set('y');\n } else if(h === 'y') {\n hovermode.set('x');\n } else if(h === 'x unified') {\n hovermode.set('y unified');\n } else if(h === 'y unified') {\n hovermode.set('x unified');\n }\n }\n\n // Major enough changes deserve autoscale and\n // non-reversed axes so people don't get confused\n //\n // Note: autobin (or its new analog bin clearing) is not included here\n // since we're not pushing bins back to gd.data, so if we have bin\n // info it was explicitly provided by the user.\n if(['orientation', 'type'].indexOf(ai) !== -1) {\n axlist = [];\n for(i = 0; i < traces.length; i++) {\n var trace = data[traces[i]];\n\n if(Registry.traceIs(trace, 'cartesian')) {\n addToAxlist(trace.xaxis || 'x');\n addToAxlist(trace.yaxis || 'y');\n }\n }\n\n doextra(axlist.map(autorangeAttr), true, 0);\n doextra(axlist.map(rangeAttr), [0, 1], 0);\n }\n }\n\n if(flags.calc || flags.plot) {\n flags.fullReplot = true;\n }\n\n return {\n flags: flags,\n undoit: undoit,\n redoit: redoit,\n traces: traces,\n eventData: Lib.extendDeepNoArrays([], [eventData, traces])\n };\n}\n\n/**\n * Converts deprecated attribute keys to\n * the current API to ensure backwards compatibility.\n *\n * This is needed for the update mechanism to determine which\n * subroutines to run based on the actual attribute\n * definitions (that don't include the deprecated ones).\n *\n * E.g. Maps {'xaxis.title': 'A chart'} to {'xaxis.title.text': 'A chart'}\n * and {titlefont: {...}} to {'title.font': {...}}.\n *\n * @param aobj\n */\nfunction cleanDeprecatedAttributeKeys(aobj) {\n var oldAxisTitleRegex = Lib.counterRegex('axis', '\\.title', false, false);\n var colorbarRegex = /colorbar\\.title$/;\n var keys = Object.keys(aobj);\n var i, key, value;\n\n for(i = 0; i < keys.length; i++) {\n key = keys[i];\n value = aobj[key];\n\n if((key === 'title' || oldAxisTitleRegex.test(key) || colorbarRegex.test(key)) &&\n (typeof value === 'string' || typeof value === 'number')) {\n replace(key, key.replace('title', 'title.text'));\n } else if(key.indexOf('titlefont') > -1) {\n replace(key, key.replace('titlefont', 'title.font'));\n } else if(key.indexOf('titleposition') > -1) {\n replace(key, key.replace('titleposition', 'title.position'));\n } else if(key.indexOf('titleside') > -1) {\n replace(key, key.replace('titleside', 'title.side'));\n } else if(key.indexOf('titleoffset') > -1) {\n replace(key, key.replace('titleoffset', 'title.offset'));\n }\n }\n\n function replace(oldAttrStr, newAttrStr) {\n aobj[newAttrStr] = aobj[oldAttrStr];\n delete aobj[oldAttrStr];\n }\n}\n\n/**\n * relayout: update layout attributes of an existing plot\n *\n * Can be called two ways:\n *\n * Signature 1:\n * @param {String | HTMLDivElement} gd\n * the id or dom element of the graph container div\n * @param {String} astr\n * attribute string (like `'xaxis.range[0]'`) to update\n * @param {*} val\n * value to give this attribute\n *\n * Signature 2:\n * @param {String | HTMLDivElement} gd\n * (as in signature 1)\n * @param {Object} aobj\n * attribute object `{astr1: val1, astr2: val2 ...}`\n * allows setting multiple attributes simultaneously\n */\nfunction relayout(gd, astr, val) {\n gd = Lib.getGraphDiv(gd);\n helpers.clearPromiseQueue(gd);\n\n var aobj = {};\n if(typeof astr === 'string') {\n aobj[astr] = val;\n } else if(Lib.isPlainObject(astr)) {\n aobj = Lib.extendFlat({}, astr);\n } else {\n Lib.warn('Relayout fail.', astr, val);\n return Promise.reject();\n }\n\n if(Object.keys(aobj).length) gd.changed = true;\n\n var specs = _relayout(gd, aobj);\n var flags = specs.flags;\n\n // clear calcdata if required\n if(flags.calc) gd.calcdata = undefined;\n\n // fill in redraw sequence\n\n // even if we don't have anything left in aobj,\n // something may have happened within relayout that we\n // need to wait for\n var seq = [Plots.previousPromises];\n\n if(flags.layoutReplot) {\n seq.push(subroutines.layoutReplot);\n } else if(Object.keys(aobj).length) {\n axRangeSupplyDefaultsByPass(gd, flags, specs) || Plots.supplyDefaults(gd);\n\n if(flags.legend) seq.push(subroutines.doLegend);\n if(flags.layoutstyle) seq.push(subroutines.layoutStyles);\n if(flags.axrange) addAxRangeSequence(seq, specs.rangesAltered);\n if(flags.ticks) seq.push(subroutines.doTicksRelayout);\n if(flags.modebar) seq.push(subroutines.doModeBar);\n if(flags.camera) seq.push(subroutines.doCamera);\n if(flags.colorbars) seq.push(subroutines.doColorBars);\n\n seq.push(emitAfterPlot);\n }\n\n seq.push(Plots.rehover, Plots.redrag);\n\n Queue.add(gd,\n relayout, [gd, specs.undoit],\n relayout, [gd, specs.redoit]\n );\n\n var plotDone = Lib.syncOrAsync(seq, gd);\n if(!plotDone || !plotDone.then) plotDone = Promise.resolve(gd);\n\n return plotDone.then(function() {\n gd.emit('plotly_relayout', specs.eventData);\n return gd;\n });\n}\n\n// Optimization mostly for large splom traces where\n// Plots.supplyDefaults can take > 100ms\nfunction axRangeSupplyDefaultsByPass(gd, flags, specs) {\n var fullLayout = gd._fullLayout;\n\n if(!flags.axrange) return false;\n\n for(var k in flags) {\n if(k !== 'axrange' && flags[k]) return false;\n }\n\n for(var axId in specs.rangesAltered) {\n var axName = Axes.id2name(axId);\n var axIn = gd.layout[axName];\n var axOut = fullLayout[axName];\n axOut.autorange = axIn.autorange;\n if(axIn.range) {\n axOut.range = axIn.range.slice();\n }\n axOut.cleanRange();\n\n if(axOut._matchGroup) {\n for(var axId2 in axOut._matchGroup) {\n if(axId2 !== axId) {\n var ax2 = fullLayout[Axes.id2name(axId2)];\n ax2.autorange = axOut.autorange;\n ax2.range = axOut.range.slice();\n ax2._input.range = axOut.range.slice();\n }\n }\n }\n }\n\n return true;\n}\n\nfunction addAxRangeSequence(seq, rangesAltered) {\n // N.B. leave as sequence of subroutines (for now) instead of\n // subroutine of its own so that finalDraw always gets\n // executed after drawData\n var drawAxes = rangesAltered ?\n function(gd) {\n var axIds = [];\n var skipTitle = true;\n\n for(var id in rangesAltered) {\n var ax = Axes.getFromId(gd, id);\n axIds.push(id);\n\n if((ax.ticklabelposition || '').indexOf('inside') !== -1) {\n if(ax._anchorAxis) {\n axIds.push(ax._anchorAxis._id);\n }\n }\n\n if(ax._matchGroup) {\n for(var id2 in ax._matchGroup) {\n if(!rangesAltered[id2]) {\n axIds.push(id2);\n }\n }\n }\n\n if(ax.automargin) skipTitle = false;\n }\n\n return Axes.draw(gd, axIds, {skipTitle: skipTitle});\n } :\n function(gd) {\n return Axes.draw(gd, 'redraw');\n };\n\n seq.push(\n clearSelect,\n subroutines.doAutoRangeAndConstraints,\n drawAxes,\n subroutines.drawData,\n subroutines.finalDraw\n );\n}\n\nvar AX_RANGE_RE = /^[xyz]axis[0-9]*\\.range(\\[[0|1]\\])?$/;\nvar AX_AUTORANGE_RE = /^[xyz]axis[0-9]*\\.autorange$/;\nvar AX_DOMAIN_RE = /^[xyz]axis[0-9]*\\.domain(\\[[0|1]\\])?$/;\n\nfunction _relayout(gd, aobj) {\n var layout = gd.layout;\n var fullLayout = gd._fullLayout;\n var guiEditFlag = fullLayout._guiEditing;\n var layoutNP = makeNP(fullLayout._preGUI, guiEditFlag);\n var keys = Object.keys(aobj);\n var axes = Axes.list(gd);\n var eventData = Lib.extendDeepAll({}, aobj);\n var arrayEdits = {};\n\n var arrayStr, i, j;\n\n cleanDeprecatedAttributeKeys(aobj);\n keys = Object.keys(aobj);\n\n // look for 'allaxes', split out into all axes\n // in case of 3D the axis are nested within a scene which is held in _id\n for(i = 0; i < keys.length; i++) {\n if(keys[i].indexOf('allaxes') === 0) {\n for(j = 0; j < axes.length; j++) {\n var scene = axes[j]._id.substr(1);\n var axisAttr = (scene.indexOf('scene') !== -1) ? (scene + '.') : '';\n var newkey = keys[i].replace('allaxes', axisAttr + axes[j]._name);\n\n if(!aobj[newkey]) aobj[newkey] = aobj[keys[i]];\n }\n\n delete aobj[keys[i]];\n }\n }\n\n // initialize flags\n var flags = editTypes.layoutFlags();\n\n // copies of the change (and previous values of anything affected)\n // for the undo / redo queue\n var redoit = {};\n var undoit = {};\n\n // for attrs that interact (like scales & autoscales), save the\n // old vals before making the change\n // val=undefined will not set a value, just record what the value was.\n // attr can be an array to set several at once (all to the same val)\n function doextra(attr, val) {\n if(Array.isArray(attr)) {\n attr.forEach(function(a) { doextra(a, val); });\n return;\n }\n\n // if we have another value for this attribute (explicitly or\n // via a parent) do not override with this auto-generated extra\n if(attr in aobj || helpers.hasParent(aobj, attr)) return;\n\n var p = layoutNP(layout, attr);\n if(!(attr in undoit)) {\n undoit[attr] = undefinedToNull(p.get());\n }\n if(val !== undefined) p.set(val);\n }\n\n // for constraint enforcement: keep track of all axes (as {id: name})\n // we're editing the (auto)range of, so we can tell the others constrained\n // to scale with them that it's OK for them to shrink\n var rangesAltered = {};\n var ax;\n\n function recordAlteredAxis(pleafPlus) {\n var axId = Axes.name2id(pleafPlus.split('.')[0]);\n rangesAltered[axId] = 1;\n return axId;\n }\n\n // alter gd.layout\n for(var ai in aobj) {\n if(helpers.hasParent(aobj, ai)) {\n throw new Error('cannot set ' + ai + ' and a parent attribute simultaneously');\n }\n\n var p = layoutNP(layout, ai);\n var vi = aobj[ai];\n var plen = p.parts.length;\n // p.parts may end with an index integer if the property is an array\n var pend = plen - 1;\n while(pend > 0 && typeof p.parts[pend] !== 'string') pend--;\n // last property in chain (leaf node)\n var pleaf = p.parts[pend];\n // leaf plus immediate parent\n var pleafPlus = p.parts[pend - 1] + '.' + pleaf;\n // trunk nodes (everything except the leaf)\n var ptrunk = p.parts.slice(0, pend).join('.');\n var parentIn = nestedProperty(gd.layout, ptrunk).get();\n var parentFull = nestedProperty(fullLayout, ptrunk).get();\n var vOld = p.get();\n\n if(vi === undefined) continue;\n\n redoit[ai] = vi;\n\n // axis reverse is special - it is its own inverse\n // op and has no flag.\n undoit[ai] = (pleaf === 'reverse') ? vi : undefinedToNull(vOld);\n\n var valObject = PlotSchema.getLayoutValObject(fullLayout, p.parts);\n\n if(valObject && valObject.impliedEdits && vi !== null) {\n for(var impliedKey in valObject.impliedEdits) {\n doextra(Lib.relativeAttr(ai, impliedKey), valObject.impliedEdits[impliedKey]);\n }\n }\n\n // Setting width or height to null must reset the graph's width / height\n // back to its initial value as computed during the first pass in Plots.plotAutoSize.\n //\n // To do so, we must manually set them back here using the _initialAutoSize cache.\n // can't use impliedEdits for this because behavior depends on vi\n if(['width', 'height'].indexOf(ai) !== -1) {\n if(vi) {\n doextra('autosize', null);\n // currently we don't support autosize one dim only - so\n // explicitly set the other one. Note that doextra will\n // ignore this if the same relayout call also provides oppositeAttr\n var oppositeAttr = ai === 'height' ? 'width' : 'height';\n doextra(oppositeAttr, fullLayout[oppositeAttr]);\n } else {\n fullLayout[ai] = gd._initialAutoSize[ai];\n }\n } else if(ai === 'autosize') {\n // depends on vi here too, so again can't use impliedEdits\n doextra('width', vi ? null : fullLayout.width);\n doextra('height', vi ? null : fullLayout.height);\n } else if(pleafPlus.match(AX_RANGE_RE)) {\n // check autorange vs range\n\n recordAlteredAxis(pleafPlus);\n nestedProperty(fullLayout, ptrunk + '._inputRange').set(null);\n } else if(pleafPlus.match(AX_AUTORANGE_RE)) {\n recordAlteredAxis(pleafPlus);\n nestedProperty(fullLayout, ptrunk + '._inputRange').set(null);\n var axFull = nestedProperty(fullLayout, ptrunk).get();\n if(axFull._inputDomain) {\n // if we're autoranging and this axis has a constrained domain,\n // reset it so we don't get locked into a shrunken size\n axFull._input.domain = axFull._inputDomain.slice();\n }\n } else if(pleafPlus.match(AX_DOMAIN_RE)) {\n nestedProperty(fullLayout, ptrunk + '._inputDomain').set(null);\n }\n\n // toggling axis type between log and linear: we need to convert\n // positions for components that are still using linearized values,\n // not data values like newer components.\n // previously we did this for log <-> not-log, but now only do it\n // for log <-> linear\n if(pleaf === 'type') {\n ax = parentIn;\n var toLog = parentFull.type === 'linear' && vi === 'log';\n var fromLog = parentFull.type === 'log' && vi === 'linear';\n\n if(toLog || fromLog) {\n if(!ax || !ax.range) {\n // 2D never gets here, but 3D does\n // I don't think this is needed, but left here in case there\n // are edge cases I'm not thinking of.\n doextra(ptrunk + '.autorange', true);\n } else if(!parentFull.autorange) {\n // toggling log without autorange: need to also recalculate ranges\n // because log axes use linearized values for range endpoints\n var r0 = ax.range[0];\n var r1 = ax.range[1];\n if(toLog) {\n // if both limits are negative, autorange\n if(r0 <= 0 && r1 <= 0) {\n doextra(ptrunk + '.autorange', true);\n }\n // if one is negative, set it 6 orders below the other.\n if(r0 <= 0) r0 = r1 / 1e6;\n else if(r1 <= 0) r1 = r0 / 1e6;\n // now set the range values as appropriate\n doextra(ptrunk + '.range[0]', Math.log(r0) / Math.LN10);\n doextra(ptrunk + '.range[1]', Math.log(r1) / Math.LN10);\n } else {\n doextra(ptrunk + '.range[0]', Math.pow(10, r0));\n doextra(ptrunk + '.range[1]', Math.pow(10, r1));\n }\n } else if(toLog) {\n // just make sure the range is positive and in the right\n // order, it'll get recalculated later\n ax.range = (ax.range[1] > ax.range[0]) ? [1, 2] : [2, 1];\n }\n\n // clear polar view initial stash for radial range so that\n // value get recomputed in correct units\n if(Array.isArray(fullLayout._subplots.polar) &&\n fullLayout._subplots.polar.length &&\n fullLayout[p.parts[0]] &&\n p.parts[1] === 'radialaxis'\n ) {\n delete fullLayout[p.parts[0]]._subplot.viewInitial['radialaxis.range'];\n }\n\n // Annotations and images also need to convert to/from linearized coords\n // Shapes do not need this :)\n Registry.getComponentMethod('annotations', 'convertCoords')(gd, parentFull, vi, doextra);\n Registry.getComponentMethod('images', 'convertCoords')(gd, parentFull, vi, doextra);\n } else {\n // any other type changes: the range from the previous type\n // will not make sense, so autorange it.\n doextra(ptrunk + '.autorange', true);\n doextra(ptrunk + '.range', null);\n }\n nestedProperty(fullLayout, ptrunk + '._inputRange').set(null);\n } else if(pleaf.match(AX_NAME_PATTERN)) {\n var fullProp = nestedProperty(fullLayout, ai).get();\n var newType = (vi || {}).type;\n\n // This can potentially cause strange behavior if the autotype is not\n // numeric (linear, because we don't auto-log) but the previous type\n // was log. That's a very strange edge case though\n if(!newType || newType === '-') newType = 'linear';\n Registry.getComponentMethod('annotations', 'convertCoords')(gd, fullProp, newType, doextra);\n Registry.getComponentMethod('images', 'convertCoords')(gd, fullProp, newType, doextra);\n }\n\n // alter gd.layout\n\n // collect array component edits for execution all together\n // so we can ensure consistent behavior adding/removing items\n // and order-independence for add/remove/edit all together in\n // one relayout call\n var containerArrayMatch = manageArrays.containerArrayMatch(ai);\n if(containerArrayMatch) {\n arrayStr = containerArrayMatch.array;\n i = containerArrayMatch.index;\n var propStr = containerArrayMatch.property;\n var updateValObject = valObject || {editType: 'calc'};\n\n if(i !== '' && propStr === '') {\n // special handling of undoit if we're adding or removing an element\n // ie 'annotations[2]' which can be {...} (add) or null,\n // does not work when replacing the entire array\n if(manageArrays.isAddVal(vi)) {\n undoit[ai] = null;\n } else if(manageArrays.isRemoveVal(vi)) {\n undoit[ai] = (nestedProperty(layout, arrayStr).get() || [])[i];\n } else {\n Lib.warn('unrecognized full object value', aobj);\n }\n }\n editTypes.update(flags, updateValObject);\n\n // prepare the edits object we'll send to applyContainerArrayChanges\n if(!arrayEdits[arrayStr]) arrayEdits[arrayStr] = {};\n var objEdits = arrayEdits[arrayStr][i];\n if(!objEdits) objEdits = arrayEdits[arrayStr][i] = {};\n objEdits[propStr] = vi;\n\n delete aobj[ai];\n } else if(pleaf === 'reverse') {\n // handle axis reversal explicitly, as there's no 'reverse' attribute\n\n if(parentIn.range) parentIn.range.reverse();\n else {\n doextra(ptrunk + '.autorange', true);\n parentIn.range = [1, 0];\n }\n\n if(parentFull.autorange) flags.calc = true;\n else flags.plot = true;\n } else {\n if((fullLayout._has('scatter-like') && fullLayout._has('regl')) &&\n (ai === 'dragmode' &&\n (vi === 'lasso' || vi === 'select') &&\n !(vOld === 'lasso' || vOld === 'select'))\n ) {\n flags.plot = true;\n } else if(fullLayout._has('gl2d')) {\n flags.plot = true;\n } else if(valObject) editTypes.update(flags, valObject);\n else flags.calc = true;\n\n p.set(vi);\n }\n }\n\n // now we've collected component edits - execute them all together\n for(arrayStr in arrayEdits) {\n var finished = manageArrays.applyContainerArrayChanges(gd,\n layoutNP(layout, arrayStr), arrayEdits[arrayStr], flags, layoutNP);\n if(!finished) flags.plot = true;\n }\n\n // figure out if we need to recalculate axis constraints\n for(var axId in rangesAltered) {\n ax = Axes.getFromId(gd, axId);\n var group = ax && ax._constraintGroup;\n if(group) {\n // Always recalc if we're changing constrained ranges.\n // Otherwise it's possible to violate the constraints by\n // specifying arbitrary ranges for all axes in the group.\n // this way some ranges may expand beyond what's specified,\n // as they do at first draw, to satisfy the constraints.\n flags.calc = true;\n for(var groupAxId in group) {\n if(!rangesAltered[groupAxId]) {\n Axes.getFromId(gd, groupAxId)._constraintShrinkable = true;\n }\n }\n }\n }\n\n // If the autosize changed or height or width was explicitly specified,\n // this triggers a redraw\n // TODO: do we really need special aobj.height/width handling here?\n // couldn't editType do this?\n if(updateAutosize(gd) || aobj.height || aobj.width) flags.plot = true;\n\n if(flags.plot || flags.calc) {\n flags.layoutReplot = true;\n }\n\n // now all attribute mods are done, as are\n // redo and undo so we can save them\n\n return {\n flags: flags,\n rangesAltered: rangesAltered,\n undoit: undoit,\n redoit: redoit,\n eventData: eventData\n };\n}\n\n/*\n * updateAutosize: we made a change, does it change the autosize result?\n * puts the new size into fullLayout\n * returns true if either height or width changed\n */\nfunction updateAutosize(gd) {\n var fullLayout = gd._fullLayout;\n var oldWidth = fullLayout.width;\n var oldHeight = fullLayout.height;\n\n // calculate autosizing\n if(gd.layout.autosize) Plots.plotAutoSize(gd, gd.layout, fullLayout);\n\n return (fullLayout.width !== oldWidth) || (fullLayout.height !== oldHeight);\n}\n\n/**\n * update: update trace and layout attributes of an existing plot\n *\n * @param {String | HTMLDivElement} gd\n * the id or DOM element of the graph container div\n * @param {Object} traceUpdate\n * attribute object `{astr1: val1, astr2: val2 ...}`\n * corresponding to updates in the plot's traces\n * @param {Object} layoutUpdate\n * attribute object `{astr1: val1, astr2: val2 ...}`\n * corresponding to updates in the plot's layout\n * @param {Number[] | Number} [traces]\n * integer or array of integers for the traces to alter (all if omitted)\n *\n */\nfunction update(gd, traceUpdate, layoutUpdate, _traces) {\n gd = Lib.getGraphDiv(gd);\n helpers.clearPromiseQueue(gd);\n\n if(!Lib.isPlainObject(traceUpdate)) traceUpdate = {};\n if(!Lib.isPlainObject(layoutUpdate)) layoutUpdate = {};\n\n if(Object.keys(traceUpdate).length) gd.changed = true;\n if(Object.keys(layoutUpdate).length) gd.changed = true;\n\n var traces = helpers.coerceTraceIndices(gd, _traces);\n\n var restyleSpecs = _restyle(gd, Lib.extendFlat({}, traceUpdate), traces);\n var restyleFlags = restyleSpecs.flags;\n\n var relayoutSpecs = _relayout(gd, Lib.extendFlat({}, layoutUpdate));\n var relayoutFlags = relayoutSpecs.flags;\n\n // clear calcdata and/or axis types if required\n if(restyleFlags.calc || relayoutFlags.calc) gd.calcdata = undefined;\n if(restyleFlags.clearAxisTypes) helpers.clearAxisTypes(gd, traces, layoutUpdate);\n\n // fill in redraw sequence\n var seq = [];\n\n if(relayoutFlags.layoutReplot) {\n // N.B. works fine when both\n // relayoutFlags.layoutReplot and restyleFlags.fullReplot are true\n seq.push(subroutines.layoutReplot);\n } else if(restyleFlags.fullReplot) {\n seq.push(exports._doPlot);\n } else {\n seq.push(Plots.previousPromises);\n axRangeSupplyDefaultsByPass(gd, relayoutFlags, relayoutSpecs) || Plots.supplyDefaults(gd);\n\n if(restyleFlags.style) seq.push(subroutines.doTraceStyle);\n if(restyleFlags.colorbars || relayoutFlags.colorbars) seq.push(subroutines.doColorBars);\n if(relayoutFlags.legend) seq.push(subroutines.doLegend);\n if(relayoutFlags.layoutstyle) seq.push(subroutines.layoutStyles);\n if(relayoutFlags.axrange) addAxRangeSequence(seq, relayoutSpecs.rangesAltered);\n if(relayoutFlags.ticks) seq.push(subroutines.doTicksRelayout);\n if(relayoutFlags.modebar) seq.push(subroutines.doModeBar);\n if(relayoutFlags.camera) seq.push(subroutines.doCamera);\n\n seq.push(emitAfterPlot);\n }\n\n seq.push(Plots.rehover, Plots.redrag);\n\n Queue.add(gd,\n update, [gd, restyleSpecs.undoit, relayoutSpecs.undoit, restyleSpecs.traces],\n update, [gd, restyleSpecs.redoit, relayoutSpecs.redoit, restyleSpecs.traces]\n );\n\n var plotDone = Lib.syncOrAsync(seq, gd);\n if(!plotDone || !plotDone.then) plotDone = Promise.resolve(gd);\n\n return plotDone.then(function() {\n gd.emit('plotly_update', {\n data: restyleSpecs.eventData,\n layout: relayoutSpecs.eventData\n });\n\n return gd;\n });\n}\n\n/*\n * internal-use-only restyle/relayout/update variants that record the initial\n * values in (fullLayout|fullTrace)._preGUI so changes can be persisted across\n * Plotly.react data updates, dependent on uirevision attributes\n */\nfunction guiEdit(func) {\n return function wrappedEdit(gd) {\n gd._fullLayout._guiEditing = true;\n var p = func.apply(null, arguments);\n gd._fullLayout._guiEditing = false;\n return p;\n };\n}\n\n// For connecting edited layout attributes to uirevision attrs\n// If no `attr` we use `match[1] + '.uirevision'`\n// Ordered by most common edits first, to minimize our search time\nvar layoutUIControlPatterns = [\n {pattern: /^hiddenlabels/, attr: 'legend.uirevision'},\n {pattern: /^((x|y)axis\\d*)\\.((auto)?range|title\\.text)/},\n\n // showspikes and modes include those nested inside scenes\n {pattern: /axis\\d*\\.showspikes$/, attr: 'modebar.uirevision'},\n {pattern: /(hover|drag)mode$/, attr: 'modebar.uirevision'},\n\n {pattern: /^(scene\\d*)\\.camera/},\n {pattern: /^(geo\\d*)\\.(projection|center|fitbounds)/},\n {pattern: /^(ternary\\d*\\.[abc]axis)\\.(min|title\\.text)$/},\n {pattern: /^(polar\\d*\\.radialaxis)\\.((auto)?range|angle|title\\.text)/},\n {pattern: /^(polar\\d*\\.angularaxis)\\.rotation/},\n {pattern: /^(mapbox\\d*)\\.(center|zoom|bearing|pitch)/},\n\n {pattern: /^legend\\.(x|y)$/, attr: 'editrevision'},\n {pattern: /^(shapes|annotations)/, attr: 'editrevision'},\n {pattern: /^title\\.text$/, attr: 'editrevision'}\n];\n\n// same for trace attributes: if `attr` is given it's in layout,\n// or with no `attr` we use `trace.uirevision`\nvar traceUIControlPatterns = [\n {pattern: /^selectedpoints$/, attr: 'selectionrevision'},\n // \"visible\" includes trace.transforms[i].styles[j].value.visible\n {pattern: /(^|value\\.)visible$/, attr: 'legend.uirevision'},\n {pattern: /^dimensions\\[\\d+\\]\\.constraintrange/},\n {pattern: /^node\\.(x|y|groups)/}, // for Sankey nodes\n {pattern: /^level$/}, // for Sunburst, Treemap and Icicle traces\n\n // below this you must be in editable: true mode\n // TODO: I still put name and title with `trace.uirevision`\n // reasonable or should these be `editrevision`?\n // Also applies to axis titles up in the layout section\n\n // \"name\" also includes transform.styles\n {pattern: /(^|value\\.)name$/},\n // including nested colorbar attributes (ie marker.colorbar)\n {pattern: /colorbar\\.title\\.text$/},\n {pattern: /colorbar\\.(x|y)$/, attr: 'editrevision'}\n];\n\nfunction findUIPattern(key, patternSpecs) {\n for(var i = 0; i < patternSpecs.length; i++) {\n var spec = patternSpecs[i];\n var match = key.match(spec.pattern);\n if(match) {\n return {head: match[1], attr: spec.attr};\n }\n }\n}\n\n// We're finding the new uirevision before supplyDefaults, so do the\n// inheritance manually. Note that only `undefined` inherits - other\n// falsy values are returned.\nfunction getNewRev(revAttr, container) {\n var newRev = nestedProperty(container, revAttr).get();\n if(newRev !== undefined) return newRev;\n\n var parts = revAttr.split('.');\n parts.pop();\n while(parts.length > 1) {\n parts.pop();\n newRev = nestedProperty(container, parts.join('.') + '.uirevision').get();\n if(newRev !== undefined) return newRev;\n }\n\n return container.uirevision;\n}\n\nfunction getFullTraceIndexFromUid(uid, fullData) {\n for(var i = 0; i < fullData.length; i++) {\n if(fullData[i]._fullInput.uid === uid) return i;\n }\n return -1;\n}\n\nfunction getTraceIndexFromUid(uid, data, tracei) {\n for(var i = 0; i < data.length; i++) {\n if(data[i].uid === uid) return i;\n }\n // fall back on trace order, but only if user didn't provide a uid for that trace\n return (!data[tracei] || data[tracei].uid) ? -1 : tracei;\n}\n\nfunction valsMatch(v1, v2) {\n var v1IsObj = Lib.isPlainObject(v1);\n var v1IsArray = Array.isArray(v1);\n if(v1IsObj || v1IsArray) {\n return (\n (v1IsObj && Lib.isPlainObject(v2)) ||\n (v1IsArray && Array.isArray(v2))\n ) && JSON.stringify(v1) === JSON.stringify(v2);\n }\n return v1 === v2;\n}\n\nfunction applyUIRevisions(data, layout, oldFullData, oldFullLayout) {\n var layoutPreGUI = oldFullLayout._preGUI;\n var key, revAttr, oldRev, newRev, match, preGUIVal, newNP, newVal;\n var bothInheritAutorange = [];\n var newRangeAccepted = {};\n for(key in layoutPreGUI) {\n match = findUIPattern(key, layoutUIControlPatterns);\n if(match) {\n revAttr = match.attr || (match.head + '.uirevision');\n oldRev = nestedProperty(oldFullLayout, revAttr).get();\n newRev = oldRev && getNewRev(revAttr, layout);\n if(newRev && (newRev === oldRev)) {\n preGUIVal = layoutPreGUI[key];\n if(preGUIVal === null) preGUIVal = undefined;\n newNP = nestedProperty(layout, key);\n newVal = newNP.get();\n if(valsMatch(newVal, preGUIVal)) {\n if(newVal === undefined && key.substr(key.length - 9) === 'autorange') {\n bothInheritAutorange.push(key.substr(0, key.length - 10));\n }\n newNP.set(undefinedToNull(nestedProperty(oldFullLayout, key).get()));\n continue;\n }\n }\n } else {\n Lib.warn('unrecognized GUI edit: ' + key);\n }\n // if we got this far, the new value was accepted as the new starting\n // point (either because it changed or revision changed)\n // so remove it from _preGUI for next time.\n delete layoutPreGUI[key];\n\n if(key.substr(key.length - 8, 6) === 'range[') {\n newRangeAccepted[key.substr(0, key.length - 9)] = 1;\n }\n }\n\n // Special logic for `autorange`, since it interacts with `range`:\n // If the new figure's matching `range` was kept, and `autorange`\n // wasn't supplied explicitly in either the original or the new figure,\n // we shouldn't alter that - but we may just have done that, so fix it.\n for(var i = 0; i < bothInheritAutorange.length; i++) {\n var axAttr = bothInheritAutorange[i];\n if(newRangeAccepted[axAttr]) {\n var newAx = nestedProperty(layout, axAttr).get();\n if(newAx) delete newAx.autorange;\n }\n }\n\n // Now traces - try to match them up by uid (in case we added/deleted in\n // the middle), then fall back on index.\n var allTracePreGUI = oldFullLayout._tracePreGUI;\n for(var uid in allTracePreGUI) {\n var tracePreGUI = allTracePreGUI[uid];\n var newTrace = null;\n var fullInput;\n for(key in tracePreGUI) {\n // wait until we know we have preGUI values to look for traces\n // but if we don't find both, stop looking at this uid\n if(!newTrace) {\n var fulli = getFullTraceIndexFromUid(uid, oldFullData);\n if(fulli < 0) {\n // Somehow we didn't even have this trace in oldFullData...\n // I guess this could happen with `deleteTraces` or something\n delete allTracePreGUI[uid];\n break;\n }\n var fullTrace = oldFullData[fulli];\n fullInput = fullTrace._fullInput;\n\n var newTracei = getTraceIndexFromUid(uid, data, fullInput.index);\n if(newTracei < 0) {\n // No match in new data\n delete allTracePreGUI[uid];\n break;\n }\n newTrace = data[newTracei];\n }\n\n match = findUIPattern(key, traceUIControlPatterns);\n if(match) {\n if(match.attr) {\n oldRev = nestedProperty(oldFullLayout, match.attr).get();\n newRev = oldRev && getNewRev(match.attr, layout);\n } else {\n oldRev = fullInput.uirevision;\n // inheritance for trace.uirevision is simple, just layout.uirevision\n newRev = newTrace.uirevision;\n if(newRev === undefined) newRev = layout.uirevision;\n }\n\n if(newRev && newRev === oldRev) {\n preGUIVal = tracePreGUI[key];\n if(preGUIVal === null) preGUIVal = undefined;\n newNP = nestedProperty(newTrace, key);\n newVal = newNP.get();\n if(valsMatch(newVal, preGUIVal)) {\n newNP.set(undefinedToNull(nestedProperty(fullInput, key).get()));\n continue;\n }\n }\n } else {\n Lib.warn('unrecognized GUI edit: ' + key + ' in trace uid ' + uid);\n }\n delete tracePreGUI[key];\n }\n }\n}\n\n/**\n * Plotly.react:\n * A plot/update method that takes the full plot state (same API as plot/newPlot)\n * and diffs to determine the minimal update pathway\n *\n * @param {string id or DOM element} gd\n * the id or DOM element of the graph container div\n * @param {array of objects} data\n * array of traces, containing the data and display information for each trace\n * @param {object} layout\n * object describing the overall display of the plot,\n * all the stuff that doesn't pertain to any individual trace\n * @param {object} config\n * configuration options (see ./plot_config.js for more info)\n *\n * OR\n *\n * @param {string id or DOM element} gd\n * the id or DOM element of the graph container div\n * @param {object} figure\n * object containing `data`, `layout`, `config`, and `frames` members\n *\n */\nfunction react(gd, data, layout, config) {\n var frames, plotDone;\n\n function addFrames() { return exports.addFrames(gd, frames); }\n\n gd = Lib.getGraphDiv(gd);\n helpers.clearPromiseQueue(gd);\n\n var oldFullData = gd._fullData;\n var oldFullLayout = gd._fullLayout;\n\n // you can use this as the initial draw as well as to update\n if(!Lib.isPlotDiv(gd) || !oldFullData || !oldFullLayout) {\n plotDone = exports.newPlot(gd, data, layout, config);\n } else {\n if(Lib.isPlainObject(data)) {\n var obj = data;\n data = obj.data;\n layout = obj.layout;\n config = obj.config;\n frames = obj.frames;\n }\n\n var configChanged = false;\n // assume that if there's a config at all, we're reacting to it too,\n // and completely replace the previous config\n if(config) {\n var oldConfig = Lib.extendDeep({}, gd._context);\n gd._context = undefined;\n setPlotContext(gd, config);\n configChanged = diffConfig(oldConfig, gd._context);\n }\n\n gd.data = data || [];\n helpers.cleanData(gd.data);\n gd.layout = layout || {};\n helpers.cleanLayout(gd.layout);\n\n applyUIRevisions(gd.data, gd.layout, oldFullData, oldFullLayout);\n\n // \"true\" skips updating calcdata and remapping arrays from calcTransforms,\n // which supplyDefaults usually does at the end, but we may need to NOT do\n // if the diff (which we haven't determined yet) says we'll recalc\n Plots.supplyDefaults(gd, {skipUpdateCalc: true});\n\n var newFullData = gd._fullData;\n var newFullLayout = gd._fullLayout;\n var immutable = newFullLayout.datarevision === undefined;\n var transition = newFullLayout.transition;\n\n var relayoutFlags = diffLayout(gd, oldFullLayout, newFullLayout, immutable, transition);\n var newDataRevision = relayoutFlags.newDataRevision;\n var restyleFlags = diffData(gd, oldFullData, newFullData, immutable, transition, newDataRevision);\n\n // TODO: how to translate this part of relayout to Plotly.react?\n // // Setting width or height to null must reset the graph's width / height\n // // back to its initial value as computed during the first pass in Plots.plotAutoSize.\n // //\n // // To do so, we must manually set them back here using the _initialAutoSize cache.\n // if(['width', 'height'].indexOf(ai) !== -1 && vi === null) {\n // fullLayout[ai] = gd._initialAutoSize[ai];\n // }\n\n if(updateAutosize(gd)) relayoutFlags.layoutReplot = true;\n\n // clear calcdata and empty categories if required\n if(restyleFlags.calc || relayoutFlags.calc) {\n gd.calcdata = undefined;\n var allNames = Object.getOwnPropertyNames(newFullLayout);\n for(var q = 0; q < allNames.length; q++) {\n var name = allNames[q];\n var start = name.substring(0, 5);\n if(start === 'xaxis' || start === 'yaxis') {\n var emptyCategories = newFullLayout[name]._emptyCategories;\n if(emptyCategories) emptyCategories();\n }\n }\n // otherwise do the calcdata updates and calcTransform array remaps that we skipped earlier\n } else {\n Plots.supplyDefaultsUpdateCalc(gd.calcdata, newFullData);\n }\n\n // Note: what restyle/relayout use impliedEdits and clearAxisTypes for\n // must be handled by the user when using Plotly.react.\n\n // fill in redraw sequence\n var seq = [];\n\n if(frames) {\n gd._transitionData = {};\n Plots.createTransitionData(gd);\n seq.push(addFrames);\n }\n\n // Transition pathway,\n // only used when 'transition' is set by user and\n // when at least one animatable attribute has changed,\n // N.B. config changed aren't animatable\n if(newFullLayout.transition && !configChanged && (restyleFlags.anim || relayoutFlags.anim)) {\n if(relayoutFlags.ticks) seq.push(subroutines.doTicksRelayout);\n\n Plots.doCalcdata(gd);\n subroutines.doAutoRangeAndConstraints(gd);\n\n seq.push(function() {\n return Plots.transitionFromReact(gd, restyleFlags, relayoutFlags, oldFullLayout);\n });\n } else if(restyleFlags.fullReplot || relayoutFlags.layoutReplot || configChanged) {\n gd._fullLayout._skipDefaults = true;\n seq.push(exports._doPlot);\n } else {\n for(var componentType in relayoutFlags.arrays) {\n var indices = relayoutFlags.arrays[componentType];\n if(indices.length) {\n var drawOne = Registry.getComponentMethod(componentType, 'drawOne');\n if(drawOne !== Lib.noop) {\n for(var i = 0; i < indices.length; i++) {\n drawOne(gd, indices[i]);\n }\n } else {\n var draw = Registry.getComponentMethod(componentType, 'draw');\n if(draw === Lib.noop) {\n throw new Error('cannot draw components: ' + componentType);\n }\n draw(gd);\n }\n }\n }\n\n seq.push(Plots.previousPromises);\n if(restyleFlags.style) seq.push(subroutines.doTraceStyle);\n if(restyleFlags.colorbars || relayoutFlags.colorbars) seq.push(subroutines.doColorBars);\n if(relayoutFlags.legend) seq.push(subroutines.doLegend);\n if(relayoutFlags.layoutstyle) seq.push(subroutines.layoutStyles);\n if(relayoutFlags.axrange) addAxRangeSequence(seq);\n if(relayoutFlags.ticks) seq.push(subroutines.doTicksRelayout);\n if(relayoutFlags.modebar) seq.push(subroutines.doModeBar);\n if(relayoutFlags.camera) seq.push(subroutines.doCamera);\n seq.push(emitAfterPlot);\n }\n\n seq.push(Plots.rehover, Plots.redrag);\n\n plotDone = Lib.syncOrAsync(seq, gd);\n if(!plotDone || !plotDone.then) plotDone = Promise.resolve(gd);\n }\n\n return plotDone.then(function() {\n gd.emit('plotly_react', {\n data: data,\n layout: layout\n });\n\n return gd;\n });\n}\n\nfunction diffData(gd, oldFullData, newFullData, immutable, transition, newDataRevision) {\n var sameTraceLength = oldFullData.length === newFullData.length;\n\n if(!transition && !sameTraceLength) {\n return {\n fullReplot: true,\n calc: true\n };\n }\n\n var flags = editTypes.traceFlags();\n flags.arrays = {};\n flags.nChanges = 0;\n flags.nChangesAnim = 0;\n\n var i, trace;\n\n function getTraceValObject(parts) {\n var out = PlotSchema.getTraceValObject(trace, parts);\n if(!trace._module.animatable && out.anim) {\n out.anim = false;\n }\n return out;\n }\n\n var diffOpts = {\n getValObject: getTraceValObject,\n flags: flags,\n immutable: immutable,\n transition: transition,\n newDataRevision: newDataRevision,\n gd: gd\n };\n\n var seenUIDs = {};\n\n for(i = 0; i < oldFullData.length; i++) {\n if(newFullData[i]) {\n trace = newFullData[i]._fullInput;\n if(Plots.hasMakesDataTransform(trace)) trace = newFullData[i];\n if(seenUIDs[trace.uid]) continue;\n seenUIDs[trace.uid] = 1;\n\n getDiffFlags(oldFullData[i]._fullInput, trace, [], diffOpts);\n }\n }\n\n if(flags.calc || flags.plot) {\n flags.fullReplot = true;\n }\n\n if(transition && flags.nChanges && flags.nChangesAnim) {\n flags.anim = (flags.nChanges === flags.nChangesAnim) && sameTraceLength ? 'all' : 'some';\n }\n\n return flags;\n}\n\nfunction diffLayout(gd, oldFullLayout, newFullLayout, immutable, transition) {\n var flags = editTypes.layoutFlags();\n flags.arrays = {};\n flags.rangesAltered = {};\n flags.nChanges = 0;\n flags.nChangesAnim = 0;\n\n function getLayoutValObject(parts) {\n return PlotSchema.getLayoutValObject(newFullLayout, parts);\n }\n\n var diffOpts = {\n getValObject: getLayoutValObject,\n flags: flags,\n immutable: immutable,\n transition: transition,\n gd: gd\n };\n\n getDiffFlags(oldFullLayout, newFullLayout, [], diffOpts);\n\n if(flags.plot || flags.calc) {\n flags.layoutReplot = true;\n }\n\n if(transition && flags.nChanges && flags.nChangesAnim) {\n flags.anim = flags.nChanges === flags.nChangesAnim ? 'all' : 'some';\n }\n\n return flags;\n}\n\nfunction getDiffFlags(oldContainer, newContainer, outerparts, opts) {\n var valObject, key, astr;\n\n var getValObject = opts.getValObject;\n var flags = opts.flags;\n var immutable = opts.immutable;\n var inArray = opts.inArray;\n var arrayIndex = opts.arrayIndex;\n\n function changed() {\n var editType = valObject.editType;\n if(inArray && editType.indexOf('arraydraw') !== -1) {\n Lib.pushUnique(flags.arrays[inArray], arrayIndex);\n return;\n }\n editTypes.update(flags, valObject);\n\n if(editType !== 'none') {\n flags.nChanges++;\n }\n\n // track animatable changes\n if(opts.transition && valObject.anim) {\n flags.nChangesAnim++;\n }\n\n // track cartesian axes with altered ranges\n if(AX_RANGE_RE.test(astr) || AX_AUTORANGE_RE.test(astr)) {\n flags.rangesAltered[outerparts[0]] = 1;\n }\n\n // clear _inputDomain on cartesian axes with altered domains\n if(AX_DOMAIN_RE.test(astr)) {\n nestedProperty(newContainer, '_inputDomain').set(null);\n }\n\n // track datarevision changes\n if(key === 'datarevision') {\n flags.newDataRevision = 1;\n }\n }\n\n function valObjectCanBeDataArray(valObject) {\n return valObject.valType === 'data_array' || valObject.arrayOk;\n }\n\n for(key in oldContainer) {\n // short-circuit based on previous calls or previous keys that already maximized the pathway\n if(flags.calc && !opts.transition) return;\n\n var oldVal = oldContainer[key];\n var newVal = newContainer[key];\n var parts = outerparts.concat(key);\n astr = parts.join('.');\n\n if(key.charAt(0) === '_' || typeof oldVal === 'function' || oldVal === newVal) continue;\n\n // FIXME: ax.tick0 and dtick get filled in during plotting (except for geo subplots),\n // and unlike other auto values they don't make it back into the input,\n // so newContainer won't have them.\n if((key === 'tick0' || key === 'dtick') && outerparts[0] !== 'geo') {\n var tickMode = newContainer.tickmode;\n if(tickMode === 'auto' || tickMode === 'array' || !tickMode) continue;\n }\n // FIXME: Similarly for axis ranges for 3D\n // contourcarpet doesn't HAVE zmin/zmax, they're just auto-added. It needs them.\n if(key === 'range' && newContainer.autorange) continue;\n if((key === 'zmin' || key === 'zmax') && newContainer.type === 'contourcarpet') continue;\n\n valObject = getValObject(parts);\n\n // in case type changed, we may not even *have* a valObject.\n if(!valObject) continue;\n\n if(valObject._compareAsJSON && JSON.stringify(oldVal) === JSON.stringify(newVal)) continue;\n\n var valType = valObject.valType;\n var i;\n\n var canBeDataArray = valObjectCanBeDataArray(valObject);\n var wasArray = Array.isArray(oldVal);\n var nowArray = Array.isArray(newVal);\n\n // hack for traces that modify the data in supplyDefaults, like\n // converting 1D to 2D arrays, which will always create new objects\n if(wasArray && nowArray) {\n var inputKey = '_input_' + key;\n var oldValIn = oldContainer[inputKey];\n var newValIn = newContainer[inputKey];\n if(Array.isArray(oldValIn) && oldValIn === newValIn) continue;\n }\n\n if(newVal === undefined) {\n if(canBeDataArray && wasArray) flags.calc = true;\n else changed();\n } else if(valObject._isLinkedToArray) {\n var arrayEditIndices = [];\n var extraIndices = false;\n if(!inArray) flags.arrays[key] = arrayEditIndices;\n\n var minLen = Math.min(oldVal.length, newVal.length);\n var maxLen = Math.max(oldVal.length, newVal.length);\n if(minLen !== maxLen) {\n if(valObject.editType === 'arraydraw') {\n extraIndices = true;\n } else {\n changed();\n continue;\n }\n }\n\n for(i = 0; i < minLen; i++) {\n getDiffFlags(oldVal[i], newVal[i], parts.concat(i),\n // add array indices, but not if we're already in an array\n Lib.extendFlat({inArray: key, arrayIndex: i}, opts));\n }\n\n // put this at the end so that we know our collected array indices are sorted\n // but the check for length changes happens up front so we can short-circuit\n // diffing if appropriate\n if(extraIndices) {\n for(i = minLen; i < maxLen; i++) {\n arrayEditIndices.push(i);\n }\n }\n } else if(!valType && Lib.isPlainObject(oldVal)) {\n getDiffFlags(oldVal, newVal, parts, opts);\n } else if(canBeDataArray) {\n if(wasArray && nowArray) {\n // don't try to diff two data arrays. If immutable we know the data changed,\n // if not, assume it didn't and let `layout.datarevision` tell us if it did\n if(immutable) {\n flags.calc = true;\n }\n\n // look for animatable attributes when the data changed\n if(immutable || opts.newDataRevision) {\n changed();\n }\n } else if(wasArray !== nowArray) {\n flags.calc = true;\n } else changed();\n } else if(wasArray && nowArray) {\n // info array, colorscale, 'any' - these are short, just stringify.\n // I don't *think* that covers up any real differences post-validation, does it?\n // otherwise we need to dive in 1 (info_array) or 2 (colorscale) levels and compare\n // all elements.\n if(oldVal.length !== newVal.length || String(oldVal) !== String(newVal)) {\n changed();\n }\n } else {\n changed();\n }\n }\n\n for(key in newContainer) {\n if(!(key in oldContainer || key.charAt(0) === '_' || typeof newContainer[key] === 'function')) {\n valObject = getValObject(outerparts.concat(key));\n\n if(valObjectCanBeDataArray(valObject) && Array.isArray(newContainer[key])) {\n flags.calc = true;\n return;\n } else changed();\n }\n }\n}\n\n/*\n * simple diff for config - for now, just treat all changes as equivalent\n */\nfunction diffConfig(oldConfig, newConfig) {\n var key;\n\n for(key in oldConfig) {\n if(key.charAt(0) === '_') continue;\n var oldVal = oldConfig[key];\n var newVal = newConfig[key];\n if(oldVal !== newVal) {\n if(Lib.isPlainObject(oldVal) && Lib.isPlainObject(newVal)) {\n if(diffConfig(oldVal, newVal)) {\n return true;\n }\n } else if(Array.isArray(oldVal) && Array.isArray(newVal)) {\n if(oldVal.length !== newVal.length) {\n return true;\n }\n for(var i = 0; i < oldVal.length; i++) {\n if(oldVal[i] !== newVal[i]) {\n if(Lib.isPlainObject(oldVal[i]) && Lib.isPlainObject(newVal[i])) {\n if(diffConfig(oldVal[i], newVal[i])) {\n return true;\n }\n } else {\n return true;\n }\n }\n }\n } else {\n return true;\n }\n }\n }\n}\n\n/**\n * Animate to a frame, sequence of frame, frame group, or frame definition\n *\n * @param {string id or DOM element} gd\n * the id or DOM element of the graph container div\n *\n * @param {string or object or array of strings or array of objects} frameOrGroupNameOrFrameList\n * a single frame, array of frames, or group to which to animate. The intent is\n * inferred by the type of the input. Valid inputs are:\n *\n * - string, e.g. 'groupname': animate all frames of a given `group` in the order\n * in which they are defined via `Plotly.addFrames`.\n *\n * - array of strings, e.g. ['frame1', frame2']: a list of frames by name to which\n * to animate in sequence\n *\n * - object: {data: ...}: a frame definition to which to animate. The frame is not\n * and does not need to be added via `Plotly.addFrames`. It may contain any of\n * the properties of a frame, including `data`, `layout`, and `traces`. The\n * frame is used as provided and does not use the `baseframe` property.\n *\n * - array of objects, e.g. [{data: ...}, {data: ...}]: a list of frame objects,\n * each following the same rules as a single `object`.\n *\n * @param {object} animationOpts\n * configuration for the animation\n */\nfunction animate(gd, frameOrGroupNameOrFrameList, animationOpts) {\n gd = Lib.getGraphDiv(gd);\n\n if(!Lib.isPlotDiv(gd)) {\n throw new Error(\n 'This element is not a Plotly plot: ' + gd + '. It\\'s likely that you\\'ve failed ' +\n 'to create a plot before animating it. For more details, see ' +\n 'https://plotly.com/javascript/animations/'\n );\n }\n\n var trans = gd._transitionData;\n\n // This is the queue of frames that will be animated as soon as possible. They\n // are popped immediately upon the *start* of a transition:\n if(!trans._frameQueue) {\n trans._frameQueue = [];\n }\n\n animationOpts = Plots.supplyAnimationDefaults(animationOpts);\n var transitionOpts = animationOpts.transition;\n var frameOpts = animationOpts.frame;\n\n // Since frames are popped immediately, an empty queue only means all frames have\n // *started* to transition, not that the animation is complete. To solve that,\n // track a separate counter that increments at the same time as frames are added\n // to the queue, but decrements only when the transition is complete.\n if(trans._frameWaitingCnt === undefined) {\n trans._frameWaitingCnt = 0;\n }\n\n function getTransitionOpts(i) {\n if(Array.isArray(transitionOpts)) {\n if(i >= transitionOpts.length) {\n return transitionOpts[0];\n } else {\n return transitionOpts[i];\n }\n } else {\n return transitionOpts;\n }\n }\n\n function getFrameOpts(i) {\n if(Array.isArray(frameOpts)) {\n if(i >= frameOpts.length) {\n return frameOpts[0];\n } else {\n return frameOpts[i];\n }\n } else {\n return frameOpts;\n }\n }\n\n // Execute a callback after the wrapper function has been called n times.\n // This is used to defer the resolution until a transition has resolved *and*\n // the frame has completed. If it's not done this way, then we get a race\n // condition in which the animation might resolve before a transition is complete\n // or vice versa.\n function callbackOnNthTime(cb, n) {\n var cnt = 0;\n return function() {\n if(cb && ++cnt === n) {\n return cb();\n }\n };\n }\n\n return new Promise(function(resolve, reject) {\n function discardExistingFrames() {\n if(trans._frameQueue.length === 0) {\n return;\n }\n\n while(trans._frameQueue.length) {\n var next = trans._frameQueue.pop();\n if(next.onInterrupt) {\n next.onInterrupt();\n }\n }\n\n gd.emit('plotly_animationinterrupted', []);\n }\n\n function queueFrames(frameList) {\n if(frameList.length === 0) return;\n\n for(var i = 0; i < frameList.length; i++) {\n var computedFrame;\n\n if(frameList[i].type === 'byname') {\n // If it's a named frame, compute it:\n computedFrame = Plots.computeFrame(gd, frameList[i].name);\n } else {\n // Otherwise we must have been given a simple object, so treat\n // the input itself as the computed frame.\n computedFrame = frameList[i].data;\n }\n\n var frameOpts = getFrameOpts(i);\n var transitionOpts = getTransitionOpts(i);\n\n // It doesn't make much sense for the transition duration to be greater than\n // the frame duration, so limit it:\n transitionOpts.duration = Math.min(transitionOpts.duration, frameOpts.duration);\n\n var nextFrame = {\n frame: computedFrame,\n name: frameList[i].name,\n frameOpts: frameOpts,\n transitionOpts: transitionOpts,\n };\n if(i === frameList.length - 1) {\n // The last frame in this .animate call stores the promise resolve\n // and reject callbacks. This is how we ensure that the animation\n // loop (which may exist as a result of a *different* .animate call)\n // still resolves or rejecdts this .animate call's promise. once it's\n // complete.\n nextFrame.onComplete = callbackOnNthTime(resolve, 2);\n nextFrame.onInterrupt = reject;\n }\n\n trans._frameQueue.push(nextFrame);\n }\n\n // Set it as never having transitioned to a frame. This will cause the animation\n // loop to immediately transition to the next frame (which, for immediate mode,\n // is the first frame in the list since all others would have been discarded\n // below)\n if(animationOpts.mode === 'immediate') {\n trans._lastFrameAt = -Infinity;\n }\n\n // Only it's not already running, start a RAF loop. This could be avoided in the\n // case that there's only one frame, but it significantly complicated the logic\n // and only sped things up by about 5% or so for a lorenz attractor simulation.\n // It would be a fine thing to implement, but the benefit of that optimization\n // doesn't seem worth the extra complexity.\n if(!trans._animationRaf) {\n beginAnimationLoop();\n }\n }\n\n function stopAnimationLoop() {\n gd.emit('plotly_animated');\n\n // Be sure to unset also since it's how we know whether a loop is already running:\n window.cancelAnimationFrame(trans._animationRaf);\n trans._animationRaf = null;\n }\n\n function nextFrame() {\n if(trans._currentFrame && trans._currentFrame.onComplete) {\n // Execute the callback and unset it to ensure it doesn't\n // accidentally get called twice\n trans._currentFrame.onComplete();\n }\n\n var newFrame = trans._currentFrame = trans._frameQueue.shift();\n\n if(newFrame) {\n // Since it's sometimes necessary to do deep digging into frame data,\n // we'll consider it not 100% impossible for nulls or numbers to sneak through,\n // so check when casting the name, just to be absolutely certain:\n var stringName = newFrame.name ? newFrame.name.toString() : null;\n gd._fullLayout._currentFrame = stringName;\n\n trans._lastFrameAt = Date.now();\n trans._timeToNext = newFrame.frameOpts.duration;\n\n // This is simply called and it's left to .transition to decide how to manage\n // interrupting current transitions. That means we don't need to worry about\n // how it resolves or what happens after this:\n Plots.transition(gd,\n newFrame.frame.data,\n newFrame.frame.layout,\n helpers.coerceTraceIndices(gd, newFrame.frame.traces),\n newFrame.frameOpts,\n newFrame.transitionOpts\n ).then(function() {\n if(newFrame.onComplete) {\n newFrame.onComplete();\n }\n });\n\n gd.emit('plotly_animatingframe', {\n name: stringName,\n frame: newFrame.frame,\n animation: {\n frame: newFrame.frameOpts,\n transition: newFrame.transitionOpts,\n }\n });\n } else {\n // If there are no more frames, then stop the RAF loop:\n stopAnimationLoop();\n }\n }\n\n function beginAnimationLoop() {\n gd.emit('plotly_animating');\n\n // If no timer is running, then set last frame = long ago so that the next\n // frame is immediately transitioned:\n trans._lastFrameAt = -Infinity;\n trans._timeToNext = 0;\n trans._runningTransitions = 0;\n trans._currentFrame = null;\n\n var doFrame = function() {\n // This *must* be requested before nextFrame since nextFrame may decide\n // to cancel it if there's nothing more to animated:\n trans._animationRaf = window.requestAnimationFrame(doFrame);\n\n // Check if we're ready for a new frame:\n if(Date.now() - trans._lastFrameAt > trans._timeToNext) {\n nextFrame();\n }\n };\n\n doFrame();\n }\n\n // This is an animate-local counter that helps match up option input list\n // items with the particular frame.\n var configCounter = 0;\n function setTransitionConfig(frame) {\n if(Array.isArray(transitionOpts)) {\n if(configCounter >= transitionOpts.length) {\n frame.transitionOpts = transitionOpts[configCounter];\n } else {\n frame.transitionOpts = transitionOpts[0];\n }\n } else {\n frame.transitionOpts = transitionOpts;\n }\n configCounter++;\n return frame;\n }\n\n // Disambiguate what's sort of frames have been received\n var i, frame;\n var frameList = [];\n var allFrames = frameOrGroupNameOrFrameList === undefined || frameOrGroupNameOrFrameList === null;\n var isFrameArray = Array.isArray(frameOrGroupNameOrFrameList);\n var isSingleFrame = !allFrames && !isFrameArray && Lib.isPlainObject(frameOrGroupNameOrFrameList);\n\n if(isSingleFrame) {\n // In this case, a simple object has been passed to animate.\n frameList.push({\n type: 'object',\n data: setTransitionConfig(Lib.extendFlat({}, frameOrGroupNameOrFrameList))\n });\n } else if(allFrames || ['string', 'number'].indexOf(typeof frameOrGroupNameOrFrameList) !== -1) {\n // In this case, null or undefined has been passed so that we want to\n // animate *all* currently defined frames\n for(i = 0; i < trans._frames.length; i++) {\n frame = trans._frames[i];\n\n if(!frame) continue;\n\n if(allFrames || String(frame.group) === String(frameOrGroupNameOrFrameList)) {\n frameList.push({\n type: 'byname',\n name: String(frame.name),\n data: setTransitionConfig({name: frame.name})\n });\n }\n }\n } else if(isFrameArray) {\n for(i = 0; i < frameOrGroupNameOrFrameList.length; i++) {\n var frameOrName = frameOrGroupNameOrFrameList[i];\n if(['number', 'string'].indexOf(typeof frameOrName) !== -1) {\n frameOrName = String(frameOrName);\n // In this case, there's an array and this frame is a string name:\n frameList.push({\n type: 'byname',\n name: frameOrName,\n data: setTransitionConfig({name: frameOrName})\n });\n } else if(Lib.isPlainObject(frameOrName)) {\n frameList.push({\n type: 'object',\n data: setTransitionConfig(Lib.extendFlat({}, frameOrName))\n });\n }\n }\n }\n\n // Verify that all of these frames actually exist; return and reject if not:\n for(i = 0; i < frameList.length; i++) {\n frame = frameList[i];\n if(frame.type === 'byname' && !trans._frameHash[frame.data.name]) {\n Lib.warn('animate failure: frame not found: \"' + frame.data.name + '\"');\n reject();\n return;\n }\n }\n\n // If the mode is either next or immediate, then all currently queued frames must\n // be dumped and the corresponding .animate promises rejected.\n if(['next', 'immediate'].indexOf(animationOpts.mode) !== -1) {\n discardExistingFrames();\n }\n\n if(animationOpts.direction === 'reverse') {\n frameList.reverse();\n }\n\n var currentFrame = gd._fullLayout._currentFrame;\n if(currentFrame && animationOpts.fromcurrent) {\n var idx = -1;\n for(i = 0; i < frameList.length; i++) {\n frame = frameList[i];\n if(frame.type === 'byname' && frame.name === currentFrame) {\n idx = i;\n break;\n }\n }\n\n if(idx > 0 && idx < frameList.length - 1) {\n var filteredFrameList = [];\n for(i = 0; i < frameList.length; i++) {\n frame = frameList[i];\n if(frameList[i].type !== 'byname' || i > idx) {\n filteredFrameList.push(frame);\n }\n }\n frameList = filteredFrameList;\n }\n }\n\n if(frameList.length > 0) {\n queueFrames(frameList);\n } else {\n // This is the case where there were simply no frames. It's a little strange\n // since there's not much to do:\n gd.emit('plotly_animated');\n resolve();\n }\n });\n}\n\n/**\n * Register new frames\n *\n * @param {string id or DOM element} gd\n * the id or DOM element of the graph container div\n *\n * @param {array of objects} frameList\n * list of frame definitions, in which each object includes any of:\n * - name: {string} name of frame to add\n * - data: {array of objects} trace data\n * - layout {object} layout definition\n * - traces {array} trace indices\n * - baseframe {string} name of frame from which this frame gets defaults\n *\n * @param {array of integers} indices\n * an array of integer indices matching the respective frames in `frameList`. If not\n * provided, an index will be provided in serial order. If already used, the frame\n * will be overwritten.\n */\nfunction addFrames(gd, frameList, indices) {\n gd = Lib.getGraphDiv(gd);\n\n if(frameList === null || frameList === undefined) {\n return Promise.resolve();\n }\n\n if(!Lib.isPlotDiv(gd)) {\n throw new Error(\n 'This element is not a Plotly plot: ' + gd + '. It\\'s likely that you\\'ve failed ' +\n 'to create a plot before adding frames. For more details, see ' +\n 'https://plotly.com/javascript/animations/'\n );\n }\n\n var i, frame, j, idx;\n var _frames = gd._transitionData._frames;\n var _frameHash = gd._transitionData._frameHash;\n\n\n if(!Array.isArray(frameList)) {\n throw new Error('addFrames failure: frameList must be an Array of frame definitions' + frameList);\n }\n\n // Create a sorted list of insertions since we run into lots of problems if these\n // aren't in ascending order of index:\n //\n // Strictly for sorting. Make sure this is guaranteed to never collide with any\n // already-exisisting indices:\n var bigIndex = _frames.length + frameList.length * 2;\n\n var insertions = [];\n var _frameHashLocal = {};\n for(i = frameList.length - 1; i >= 0; i--) {\n if(!Lib.isPlainObject(frameList[i])) continue;\n\n // The entire logic for checking for this type of name collision can be removed once we migrate to ES6 and\n // use a Map instead of an Object instance, as Map keys aren't converted to strings.\n var lookupName = frameList[i].name;\n var name = (_frameHash[lookupName] || _frameHashLocal[lookupName] || {}).name;\n var newName = frameList[i].name;\n var collisionPresent = _frameHash[name] || _frameHashLocal[name];\n\n if(name && newName && typeof newName === 'number' && collisionPresent && numericNameWarningCount < numericNameWarningCountLimit) {\n numericNameWarningCount++;\n\n Lib.warn('addFrames: overwriting frame \"' + (_frameHash[name] || _frameHashLocal[name]).name +\n '\" with a frame whose name of type \"number\" also equates to \"' +\n name + '\". This is valid but may potentially lead to unexpected ' +\n 'behavior since all plotly.js frame names are stored internally ' +\n 'as strings.');\n\n if(numericNameWarningCount === numericNameWarningCountLimit) {\n Lib.warn('addFrames: This API call has yielded too many of these warnings. ' +\n 'For the rest of this call, further warnings about numeric frame ' +\n 'names will be suppressed.');\n }\n }\n\n _frameHashLocal[lookupName] = {name: lookupName};\n\n insertions.push({\n frame: Plots.supplyFrameDefaults(frameList[i]),\n index: (indices && indices[i] !== undefined && indices[i] !== null) ? indices[i] : bigIndex + i\n });\n }\n\n // Sort this, taking note that undefined insertions end up at the end:\n insertions.sort(function(a, b) {\n if(a.index > b.index) return -1;\n if(a.index < b.index) return 1;\n return 0;\n });\n\n var ops = [];\n var revops = [];\n var frameCount = _frames.length;\n\n for(i = insertions.length - 1; i >= 0; i--) {\n frame = insertions[i].frame;\n\n if(typeof frame.name === 'number') {\n Lib.warn('Warning: addFrames accepts frames with numeric names, but the numbers are' +\n 'implicitly cast to strings');\n }\n\n if(!frame.name) {\n // Repeatedly assign a default name, incrementing the counter each time until\n // we get a name that's not in the hashed lookup table:\n while(_frameHash[(frame.name = 'frame ' + gd._transitionData._counter++)]);\n }\n\n if(_frameHash[frame.name]) {\n // If frame is present, overwrite its definition:\n for(j = 0; j < _frames.length; j++) {\n if((_frames[j] || {}).name === frame.name) break;\n }\n ops.push({type: 'replace', index: j, value: frame});\n revops.unshift({type: 'replace', index: j, value: _frames[j]});\n } else {\n // Otherwise insert it at the end of the list:\n idx = Math.max(0, Math.min(insertions[i].index, frameCount));\n\n ops.push({type: 'insert', index: idx, value: frame});\n revops.unshift({type: 'delete', index: idx});\n frameCount++;\n }\n }\n\n var undoFunc = Plots.modifyFrames;\n var redoFunc = Plots.modifyFrames;\n var undoArgs = [gd, revops];\n var redoArgs = [gd, ops];\n\n if(Queue) Queue.add(gd, undoFunc, undoArgs, redoFunc, redoArgs);\n\n return Plots.modifyFrames(gd, ops);\n}\n\n/**\n * Delete frame\n *\n * @param {string id or DOM element} gd\n * the id or DOM element of the graph container div\n *\n * @param {array of integers} frameList\n * list of integer indices of frames to be deleted\n */\nfunction deleteFrames(gd, frameList) {\n gd = Lib.getGraphDiv(gd);\n\n if(!Lib.isPlotDiv(gd)) {\n throw new Error('This element is not a Plotly plot: ' + gd);\n }\n\n var i, idx;\n var _frames = gd._transitionData._frames;\n var ops = [];\n var revops = [];\n\n if(!frameList) {\n frameList = [];\n for(i = 0; i < _frames.length; i++) {\n frameList.push(i);\n }\n }\n\n frameList = frameList.slice();\n frameList.sort();\n\n for(i = frameList.length - 1; i >= 0; i--) {\n idx = frameList[i];\n ops.push({type: 'delete', index: idx});\n revops.unshift({type: 'insert', index: idx, value: _frames[idx]});\n }\n\n var undoFunc = Plots.modifyFrames;\n var redoFunc = Plots.modifyFrames;\n var undoArgs = [gd, revops];\n var redoArgs = [gd, ops];\n\n if(Queue) Queue.add(gd, undoFunc, undoArgs, redoFunc, redoArgs);\n\n return Plots.modifyFrames(gd, ops);\n}\n\n/**\n * Purge a graph container div back to its initial pre-_doPlot state\n *\n * @param {string id or DOM element} gd\n * the id or DOM element of the graph container div\n */\nfunction purge(gd) {\n gd = Lib.getGraphDiv(gd);\n\n var fullLayout = gd._fullLayout || {};\n var fullData = gd._fullData || [];\n\n // remove gl contexts\n Plots.cleanPlot([], {}, fullData, fullLayout);\n\n // purge properties\n Plots.purge(gd);\n\n // purge event emitter methods\n Events.purge(gd);\n\n // remove plot container\n if(fullLayout._container) fullLayout._container.remove();\n\n // in contrast to _doPlots.purge which does NOT clear _context!\n delete gd._context;\n\n return gd;\n}\n\n// determines if the graph div requires a recalculation of its inverse matrix transforms by comparing old + new bounding boxes.\nfunction calcInverseTransform(gd) {\n var fullLayout = gd._fullLayout;\n\n var newBBox = gd.getBoundingClientRect();\n if(Lib.equalDomRects(newBBox, fullLayout._lastBBox)) return;\n\n var m = fullLayout._invTransform = Lib.inverseTransformMatrix(Lib.getFullTransformMatrix(gd));\n fullLayout._invScaleX = Math.sqrt(m[0][0] * m[0][0] + m[0][1] * m[0][1] + m[0][2] * m[0][2]);\n fullLayout._invScaleY = Math.sqrt(m[1][0] * m[1][0] + m[1][1] * m[1][1] + m[1][2] * m[1][2]);\n fullLayout._lastBBox = newBBox;\n}\n\n// -------------------------------------------------------\n// makePlotFramework: Create the plot container and axes\n// -------------------------------------------------------\nfunction makePlotFramework(gd) {\n var gd3 = d3.select(gd);\n var fullLayout = gd._fullLayout;\n\n fullLayout._calcInverseTransform = calcInverseTransform;\n fullLayout._calcInverseTransform(gd);\n\n // Plot container\n fullLayout._container = gd3.selectAll('.plot-container').data([0]);\n fullLayout._container.enter()\n .insert('div', ':first-child')\n .classed('plot-container', true)\n .classed('plotly', true);\n\n // Make the svg container\n fullLayout._paperdiv = fullLayout._container.selectAll('.svg-container').data([0]);\n fullLayout._paperdiv.enter().append('div')\n .classed('user-select-none', true)\n .classed('svg-container', true)\n .style('position', 'relative');\n\n // Make the graph containers\n // start fresh each time we get here, so we know the order comes out\n // right, rather than enter/exit which can muck up the order\n // TODO: sort out all the ordering so we don't have to\n // explicitly delete anything\n // FIXME: parcoords reuses this object, not the best pattern\n fullLayout._glcontainer = fullLayout._paperdiv.selectAll('.gl-container')\n .data([{}]);\n\n fullLayout._glcontainer.enter().append('div')\n .classed('gl-container', true);\n\n fullLayout._paperdiv.selectAll('.main-svg').remove();\n fullLayout._paperdiv.select('.modebar-container').remove();\n\n fullLayout._paper = fullLayout._paperdiv.insert('svg', ':first-child')\n .classed('main-svg', true);\n\n fullLayout._toppaper = fullLayout._paperdiv.append('svg')\n .classed('main-svg', true);\n\n fullLayout._modebardiv = fullLayout._paperdiv.append('div');\n delete fullLayout._modeBar;\n\n fullLayout._hoverpaper = fullLayout._paperdiv.append('svg')\n .classed('main-svg', true);\n\n if(!fullLayout._uid) {\n var otherUids = {};\n d3.selectAll('defs').each(function() {\n if(this.id) otherUids[this.id.split('-')[1]] = 1;\n });\n fullLayout._uid = Lib.randstr(otherUids);\n }\n\n fullLayout._paperdiv.selectAll('.main-svg')\n .attr(xmlnsNamespaces.svgAttrs);\n\n fullLayout._defs = fullLayout._paper.append('defs')\n .attr('id', 'defs-' + fullLayout._uid);\n\n fullLayout._clips = fullLayout._defs.append('g')\n .classed('clips', true);\n\n fullLayout._topdefs = fullLayout._toppaper.append('defs')\n .attr('id', 'topdefs-' + fullLayout._uid);\n\n fullLayout._topclips = fullLayout._topdefs.append('g')\n .classed('clips', true);\n\n fullLayout._bgLayer = fullLayout._paper.append('g')\n .classed('bglayer', true);\n\n fullLayout._draggers = fullLayout._paper.append('g')\n .classed('draglayer', true);\n\n // lower shape/image layer - note that this is behind\n // all subplots data/grids but above the backgrounds\n // except inset subplots, whose backgrounds are drawn\n // inside their own group so that they appear above\n // the data for the main subplot\n // lower shapes and images which are fully referenced to\n // a subplot still get drawn within the subplot's group\n // so they will work correctly on insets\n var layerBelow = fullLayout._paper.append('g')\n .classed('layer-below', true);\n fullLayout._imageLowerLayer = layerBelow.append('g')\n .classed('imagelayer', true);\n fullLayout._shapeLowerLayer = layerBelow.append('g')\n .classed('shapelayer', true);\n\n // single cartesian layer for the whole plot\n fullLayout._cartesianlayer = fullLayout._paper.append('g').classed('cartesianlayer', true);\n\n // single polar layer for the whole plot\n fullLayout._polarlayer = fullLayout._paper.append('g').classed('polarlayer', true);\n\n // single smith layer for the whole plot\n fullLayout._smithlayer = fullLayout._paper.append('g').classed('smithlayer', true);\n\n // single ternary layer for the whole plot\n fullLayout._ternarylayer = fullLayout._paper.append('g').classed('ternarylayer', true);\n\n // single geo layer for the whole plot\n fullLayout._geolayer = fullLayout._paper.append('g').classed('geolayer', true);\n\n // single funnelarea layer for the whole plot\n fullLayout._funnelarealayer = fullLayout._paper.append('g').classed('funnelarealayer', true);\n\n // single pie layer for the whole plot\n fullLayout._pielayer = fullLayout._paper.append('g').classed('pielayer', true);\n\n // single treemap layer for the whole plot\n fullLayout._iciclelayer = fullLayout._paper.append('g').classed('iciclelayer', true);\n\n // single treemap layer for the whole plot\n fullLayout._treemaplayer = fullLayout._paper.append('g').classed('treemaplayer', true);\n\n // single sunburst layer for the whole plot\n fullLayout._sunburstlayer = fullLayout._paper.append('g').classed('sunburstlayer', true);\n\n // single indicator layer for the whole plot\n fullLayout._indicatorlayer = fullLayout._toppaper.append('g').classed('indicatorlayer', true);\n\n // fill in image server scrape-svg\n fullLayout._glimages = fullLayout._paper.append('g').classed('glimages', true);\n\n // lastly upper shapes, info (legend, annotations) and hover layers go on top\n // these are in a different svg element normally, but get collapsed into a single\n // svg when exporting (after inserting 3D)\n // upper shapes/images are only those drawn above the whole plot, including subplots\n var layerAbove = fullLayout._toppaper.append('g')\n .classed('layer-above', true);\n fullLayout._imageUpperLayer = layerAbove.append('g')\n .classed('imagelayer', true);\n fullLayout._shapeUpperLayer = layerAbove.append('g')\n .classed('shapelayer', true);\n\n fullLayout._infolayer = fullLayout._toppaper.append('g').classed('infolayer', true);\n fullLayout._menulayer = fullLayout._toppaper.append('g').classed('menulayer', true);\n fullLayout._zoomlayer = fullLayout._toppaper.append('g').classed('zoomlayer', true);\n fullLayout._hoverlayer = fullLayout._hoverpaper.append('g').classed('hoverlayer', true);\n\n // Make the modebar container\n fullLayout._modebardiv\n .classed('modebar-container', true)\n .style('position', 'absolute')\n .style('top', '0px')\n .style('right', '0px');\n\n gd.emit('plotly_framework');\n}\n\nexports.animate = animate;\nexports.addFrames = addFrames;\nexports.deleteFrames = deleteFrames;\n\nexports.addTraces = addTraces;\nexports.deleteTraces = deleteTraces;\nexports.extendTraces = extendTraces;\nexports.moveTraces = moveTraces;\nexports.prependTraces = prependTraces;\n\nexports.newPlot = newPlot;\nexports._doPlot = _doPlot;\nexports.purge = purge;\n\nexports.react = react;\nexports.redraw = redraw;\nexports.relayout = relayout;\nexports.restyle = restyle;\n\nexports.setPlotConfig = setPlotConfig;\n\nexports.update = update;\n\nexports._guiRelayout = guiEdit(relayout);\nexports._guiRestyle = guiEdit(restyle);\nexports._guiUpdate = guiEdit(update);\n\nexports._storeDirectGUIEdit = _storeDirectGUIEdit;\n\n},{\"../components/color\":366,\"../components/drawing\":388,\"../constants/xmlns_namespaces\":480,\"../lib\":503,\"../lib/events\":492,\"../lib/queue\":519,\"../plots/cartesian/axes\":554,\"../plots/cartesian/constants\":561,\"../plots/cartesian/graph_interact\":564,\"../plots/cartesian/select\":575,\"../plots/plots\":619,\"../registry\":638,\"./edit_types\":536,\"./helpers\":537,\"./manage_arrays\":539,\"./plot_config\":541,\"./plot_schema\":542,\"./subroutines\":544,\"@plotly/d3\":58,\"fast-isnumeric\":190,\"has-hover\":228}],541:[function(_dereq_,module,exports){\n'use strict';\n\n/**\n * This will be transferred over to gd and overridden by\n * config args to Plotly.newPlot.\n *\n * The defaults are the appropriate settings for plotly.js,\n * so we get the right experience without any config argument.\n *\n * N.B. the config options are not coerced using Lib.coerce so keys\n * like `valType` and `values` are only set for documentation purposes\n * at the moment.\n */\n\nvar configAttributes = {\n staticPlot: {\n valType: 'boolean',\n dflt: false,\n },\n\n plotlyServerURL: {\n valType: 'string',\n dflt: '',\n },\n\n editable: {\n valType: 'boolean',\n dflt: false,\n },\n edits: {\n annotationPosition: {\n valType: 'boolean',\n dflt: false,\n },\n annotationTail: {\n valType: 'boolean',\n dflt: false,\n },\n annotationText: {\n valType: 'boolean',\n dflt: false,\n },\n axisTitleText: {\n valType: 'boolean',\n dflt: false,\n },\n colorbarPosition: {\n valType: 'boolean',\n dflt: false,\n },\n colorbarTitleText: {\n valType: 'boolean',\n dflt: false,\n },\n legendPosition: {\n valType: 'boolean',\n dflt: false,\n },\n legendText: {\n valType: 'boolean',\n dflt: false,\n },\n shapePosition: {\n valType: 'boolean',\n dflt: false,\n },\n titleText: {\n valType: 'boolean',\n dflt: false,\n }\n },\n\n autosizable: {\n valType: 'boolean',\n dflt: false,\n },\n responsive: {\n valType: 'boolean',\n dflt: false,\n },\n fillFrame: {\n valType: 'boolean',\n dflt: false,\n },\n frameMargins: {\n valType: 'number',\n dflt: 0,\n min: 0,\n max: 0.5,\n },\n\n scrollZoom: {\n valType: 'flaglist',\n flags: ['cartesian', 'gl3d', 'geo', 'mapbox'],\n extras: [true, false],\n dflt: 'gl3d+geo+mapbox',\n },\n doubleClick: {\n valType: 'enumerated',\n values: [false, 'reset', 'autosize', 'reset+autosize'],\n dflt: 'reset+autosize',\n },\n doubleClickDelay: {\n valType: 'number',\n dflt: 300,\n min: 0,\n },\n\n showAxisDragHandles: {\n valType: 'boolean',\n dflt: true,\n },\n showAxisRangeEntryBoxes: {\n valType: 'boolean',\n dflt: true,\n },\n\n showTips: {\n valType: 'boolean',\n dflt: true,\n },\n\n showLink: {\n valType: 'boolean',\n dflt: false,\n },\n linkText: {\n valType: 'string',\n dflt: 'Edit chart',\n noBlank: true,\n },\n sendData: {\n valType: 'boolean',\n dflt: true,\n },\n showSources: {\n valType: 'any',\n dflt: false,\n },\n\n displayModeBar: {\n valType: 'enumerated',\n values: ['hover', true, false],\n dflt: 'hover',\n },\n showSendToCloud: {\n valType: 'boolean',\n dflt: false,\n },\n showEditInChartStudio: {\n valType: 'boolean',\n dflt: false,\n },\n modeBarButtonsToRemove: {\n valType: 'any',\n dflt: [],\n },\n modeBarButtonsToAdd: {\n valType: 'any',\n dflt: [],\n },\n modeBarButtons: {\n valType: 'any',\n dflt: false,\n },\n toImageButtonOptions: {\n valType: 'any',\n dflt: {},\n },\n displaylogo: {\n valType: 'boolean',\n dflt: true,\n },\n watermark: {\n valType: 'boolean',\n dflt: false,\n },\n\n plotGlPixelRatio: {\n valType: 'number',\n dflt: 2,\n min: 1,\n max: 4,\n },\n\n setBackground: {\n valType: 'any',\n dflt: 'transparent',\n },\n\n topojsonURL: {\n valType: 'string',\n noBlank: true,\n dflt: 'https://cdn.plot.ly/',\n },\n\n mapboxAccessToken: {\n valType: 'string',\n dflt: null,\n },\n\n logging: {\n valType: 'integer',\n min: 0,\n max: 2,\n dflt: 1,\n },\n\n notifyOnLogging: {\n valType: 'integer',\n min: 0,\n max: 2,\n dflt: 0,\n },\n\n queueLength: {\n valType: 'integer',\n min: 0,\n dflt: 0,\n },\n\n globalTransforms: {\n valType: 'any',\n dflt: [],\n },\n\n locale: {\n valType: 'string',\n dflt: 'en-US',\n },\n\n locales: {\n valType: 'any',\n dflt: {},\n }\n};\n\nvar dfltConfig = {};\n\nfunction crawl(src, target) {\n for(var k in src) {\n var obj = src[k];\n if(obj.valType) {\n target[k] = obj.dflt;\n } else {\n if(!target[k]) {\n target[k] = {};\n }\n crawl(obj, target[k]);\n }\n }\n}\n\ncrawl(configAttributes, dfltConfig);\n\nmodule.exports = {\n configAttributes: configAttributes,\n dfltConfig: dfltConfig\n};\n\n},{}],542:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../registry');\nvar Lib = _dereq_('../lib');\n\nvar baseAttributes = _dereq_('../plots/attributes');\nvar baseLayoutAttributes = _dereq_('../plots/layout_attributes');\nvar frameAttributes = _dereq_('../plots/frame_attributes');\nvar animationAttributes = _dereq_('../plots/animation_attributes');\nvar configAttributes = _dereq_('./plot_config').configAttributes;\n\nvar editTypes = _dereq_('./edit_types');\n\nvar extendDeepAll = Lib.extendDeepAll;\nvar isPlainObject = Lib.isPlainObject;\nvar isArrayOrTypedArray = Lib.isArrayOrTypedArray;\nvar nestedProperty = Lib.nestedProperty;\nvar valObjectMeta = Lib.valObjectMeta;\n\nvar IS_SUBPLOT_OBJ = '_isSubplotObj';\nvar IS_LINKED_TO_ARRAY = '_isLinkedToArray';\nvar ARRAY_ATTR_REGEXPS = '_arrayAttrRegexps';\nvar DEPRECATED = '_deprecated';\nvar UNDERSCORE_ATTRS = [IS_SUBPLOT_OBJ, IS_LINKED_TO_ARRAY, ARRAY_ATTR_REGEXPS, DEPRECATED];\n\nexports.IS_SUBPLOT_OBJ = IS_SUBPLOT_OBJ;\nexports.IS_LINKED_TO_ARRAY = IS_LINKED_TO_ARRAY;\nexports.DEPRECATED = DEPRECATED;\nexports.UNDERSCORE_ATTRS = UNDERSCORE_ATTRS;\n\n/** Outputs the full plotly.js plot schema\n *\n * @return {object}\n * - defs\n * - traces\n * - layout\n * - transforms\n * - frames\n * - animations\n * - config\n */\nexports.get = function() {\n var traces = {};\n\n Registry.allTypes.forEach(function(type) {\n traces[type] = getTraceAttributes(type);\n });\n\n var transforms = {};\n\n Object.keys(Registry.transformsRegistry).forEach(function(type) {\n transforms[type] = getTransformAttributes(type);\n });\n\n return {\n defs: {\n valObjects: valObjectMeta,\n metaKeys: UNDERSCORE_ATTRS.concat(['description', 'role', 'editType', 'impliedEdits']),\n editType: {\n traces: editTypes.traces,\n layout: editTypes.layout\n },\n impliedEdits: {\n }\n },\n\n traces: traces,\n layout: getLayoutAttributes(),\n\n transforms: transforms,\n\n frames: getFramesAttributes(),\n animation: formatAttributes(animationAttributes),\n\n config: formatAttributes(configAttributes)\n };\n};\n\n/**\n * Crawl the attribute tree, recursively calling a callback function\n *\n * @param {object} attrs\n * The node of the attribute tree (e.g. the root) from which recursion originates\n * @param {Function} callback\n * A callback function with the signature:\n * @callback callback\n * @param {object} attr an attribute\n * @param {String} attrName name string\n * @param {object[]} attrs all the attributes\n * @param {Number} level the recursion level, 0 at the root\n * @param {String} fullAttrString full attribute name (ie 'marker.line')\n * @param {Number} [specifiedLevel]\n * The level in the tree, in order to let the callback function detect descend or backtrack,\n * typically unsupplied (implied 0), just used by the self-recursive call.\n * The necessity arises because the tree traversal is not controlled by callback return values.\n * The decision to not use callback return values for controlling tree pruning arose from\n * the goal of keeping the crawler backwards compatible. Observe that one of the pruning conditions\n * precedes the callback call.\n * @param {string} [attrString]\n * the path to the current attribute, as an attribute string (ie 'marker.line')\n * typically unsupplied, but you may supply it if you want to disambiguate which attrs tree you\n * are starting from\n *\n * @return {object} transformOut\n * copy of transformIn that contains attribute defaults\n */\nexports.crawl = function(attrs, callback, specifiedLevel, attrString) {\n var level = specifiedLevel || 0;\n attrString = attrString || '';\n\n Object.keys(attrs).forEach(function(attrName) {\n var attr = attrs[attrName];\n\n if(UNDERSCORE_ATTRS.indexOf(attrName) !== -1) return;\n\n var fullAttrString = (attrString ? attrString + '.' : '') + attrName;\n callback(attr, attrName, attrs, level, fullAttrString);\n\n if(exports.isValObject(attr)) return;\n\n if(isPlainObject(attr) && attrName !== 'impliedEdits') {\n exports.crawl(attr, callback, level + 1, fullAttrString);\n }\n });\n};\n\n/** Is object a value object (or a container object)?\n *\n * @param {object} obj\n * @return {boolean}\n * returns true for a valid value object and\n * false for tree nodes in the attribute hierarchy\n */\nexports.isValObject = function(obj) {\n return obj && obj.valType !== undefined;\n};\n\n/**\n * Find all data array attributes in a given trace object - including\n * `arrayOk` attributes.\n *\n * @param {object} trace\n * full trace object that contains a reference to `_module.attributes`\n *\n * @return {array} arrayAttributes\n * list of array attributes for the given trace\n */\nexports.findArrayAttributes = function(trace) {\n var arrayAttributes = [];\n var stack = [];\n var isArrayStack = [];\n var baseContainer, baseAttrName;\n\n function callback(attr, attrName, attrs, level) {\n stack = stack.slice(0, level).concat([attrName]);\n isArrayStack = isArrayStack.slice(0, level).concat([attr && attr._isLinkedToArray]);\n\n var splittableAttr = (\n attr &&\n (attr.valType === 'data_array' || attr.arrayOk === true) &&\n !(stack[level - 1] === 'colorbar' && (attrName === 'ticktext' || attrName === 'tickvals'))\n );\n\n // Manually exclude 'colorbar.tickvals' and 'colorbar.ticktext' for now\n // which are declared as `valType: 'data_array'` but scale independently of\n // the coordinate arrays.\n //\n // Down the road, we might want to add a schema field (e.g `uncorrelatedArray: true`)\n // to distinguish attributes of the likes.\n\n if(!splittableAttr) return;\n\n crawlIntoTrace(baseContainer, 0, '');\n }\n\n function crawlIntoTrace(container, i, astrPartial) {\n var item = container[stack[i]];\n var newAstrPartial = astrPartial + stack[i];\n if(i === stack.length - 1) {\n if(isArrayOrTypedArray(item)) {\n arrayAttributes.push(baseAttrName + newAstrPartial);\n }\n } else {\n if(isArrayStack[i]) {\n if(Array.isArray(item)) {\n for(var j = 0; j < item.length; j++) {\n if(isPlainObject(item[j])) {\n crawlIntoTrace(item[j], i + 1, newAstrPartial + '[' + j + '].');\n }\n }\n }\n } else if(isPlainObject(item)) {\n crawlIntoTrace(item, i + 1, newAstrPartial + '.');\n }\n }\n }\n\n baseContainer = trace;\n baseAttrName = '';\n exports.crawl(baseAttributes, callback);\n if(trace._module && trace._module.attributes) {\n exports.crawl(trace._module.attributes, callback);\n }\n\n var transforms = trace.transforms;\n if(transforms) {\n for(var i = 0; i < transforms.length; i++) {\n var transform = transforms[i];\n var module = transform._module;\n\n if(module) {\n baseAttrName = 'transforms[' + i + '].';\n baseContainer = transform;\n\n exports.crawl(module.attributes, callback);\n }\n }\n }\n\n return arrayAttributes;\n};\n\n/*\n * Find the valObject for one attribute in an existing trace\n *\n * @param {object} trace\n * full trace object that contains a reference to `_module.attributes`\n * @param {object} parts\n * an array of parts, like ['transforms', 1, 'value']\n * typically from nestedProperty(...).parts\n *\n * @return {object|false}\n * the valObject for this attribute, or the last found parent\n * in some cases the innermost valObject will not exist, for example\n * `valType: 'any'` attributes where we might set a part of the attribute.\n * In that case, stop at the deepest valObject we *do* find.\n */\nexports.getTraceValObject = function(trace, parts) {\n var head = parts[0];\n var i = 1; // index to start recursing from\n var moduleAttrs, valObject;\n\n if(head === 'transforms') {\n if(parts.length === 1) {\n return baseAttributes.transforms;\n }\n var transforms = trace.transforms;\n if(!Array.isArray(transforms) || !transforms.length) return false;\n var tNum = parts[1];\n if(!isIndex(tNum) || tNum >= transforms.length) {\n return false;\n }\n moduleAttrs = (Registry.transformsRegistry[transforms[tNum].type] || {}).attributes;\n valObject = moduleAttrs && moduleAttrs[parts[2]];\n i = 3; // start recursing only inside the transform\n } else {\n // first look in the module for this trace\n // components have already merged their trace attributes in here\n var _module = trace._module;\n if(!_module) _module = (Registry.modules[trace.type || baseAttributes.type.dflt] || {})._module;\n if(!_module) return false;\n\n moduleAttrs = _module.attributes;\n valObject = moduleAttrs && moduleAttrs[head];\n\n // then look in the subplot attributes\n if(!valObject) {\n var subplotModule = _module.basePlotModule;\n if(subplotModule && subplotModule.attributes) {\n valObject = subplotModule.attributes[head];\n }\n }\n\n // finally look in the global attributes\n if(!valObject) valObject = baseAttributes[head];\n }\n\n return recurseIntoValObject(valObject, parts, i);\n};\n\n/*\n * Find the valObject for one layout attribute\n *\n * @param {array} parts\n * an array of parts, like ['annotations', 1, 'x']\n * typically from nestedProperty(...).parts\n *\n * @return {object|false}\n * the valObject for this attribute, or the last found parent\n * in some cases the innermost valObject will not exist, for example\n * `valType: 'any'` attributes where we might set a part of the attribute.\n * In that case, stop at the deepest valObject we *do* find.\n */\nexports.getLayoutValObject = function(fullLayout, parts) {\n var valObject = layoutHeadAttr(fullLayout, parts[0]);\n\n return recurseIntoValObject(valObject, parts, 1);\n};\n\nfunction layoutHeadAttr(fullLayout, head) {\n var i, key, _module, attributes;\n\n // look for attributes of the subplot types used on the plot\n var basePlotModules = fullLayout._basePlotModules;\n if(basePlotModules) {\n var out;\n for(i = 0; i < basePlotModules.length; i++) {\n _module = basePlotModules[i];\n if(_module.attrRegex && _module.attrRegex.test(head)) {\n // if a module defines overrides, these take precedence\n // initially this is to allow gl2d different editTypes from svg cartesian\n if(_module.layoutAttrOverrides) return _module.layoutAttrOverrides;\n\n // otherwise take the first attributes we find\n if(!out && _module.layoutAttributes) out = _module.layoutAttributes;\n }\n\n // a module can also override the behavior of base (and component) module layout attrs\n // again see gl2d for initial use case\n var baseOverrides = _module.baseLayoutAttrOverrides;\n if(baseOverrides && head in baseOverrides) return baseOverrides[head];\n }\n if(out) return out;\n }\n\n // look for layout attributes contributed by traces on the plot\n var modules = fullLayout._modules;\n if(modules) {\n for(i = 0; i < modules.length; i++) {\n attributes = modules[i].layoutAttributes;\n if(attributes && head in attributes) {\n return attributes[head];\n }\n }\n }\n\n /*\n * Next look in components.\n * Components that define a schema have already merged this into\n * base and subplot attribute defs, so ignore these.\n * Others (older style) all put all their attributes\n * inside a container matching the module `name`\n * eg `attributes` (array) or `legend` (object)\n */\n for(key in Registry.componentsRegistry) {\n _module = Registry.componentsRegistry[key];\n if(_module.name === 'colorscale' && head.indexOf('coloraxis') === 0) {\n return _module.layoutAttributes[head];\n } else if(!_module.schema && (head === _module.name)) {\n return _module.layoutAttributes;\n }\n }\n\n if(head in baseLayoutAttributes) return baseLayoutAttributes[head];\n\n return false;\n}\n\nfunction recurseIntoValObject(valObject, parts, i) {\n if(!valObject) return false;\n\n if(valObject._isLinkedToArray) {\n // skip array index, abort if we try to dive into an array without an index\n if(isIndex(parts[i])) i++;\n else if(i < parts.length) return false;\n }\n\n // now recurse as far as we can. Occasionally we have an attribute\n // setting an internal part below what's in the schema; just return\n // the innermost schema item we find.\n for(; i < parts.length; i++) {\n var newValObject = valObject[parts[i]];\n if(isPlainObject(newValObject)) valObject = newValObject;\n else break;\n\n if(i === parts.length - 1) break;\n\n if(valObject._isLinkedToArray) {\n i++;\n if(!isIndex(parts[i])) return false;\n } else if(valObject.valType === 'info_array') {\n i++;\n var index = parts[i];\n if(!isIndex(index)) return false;\n\n var items = valObject.items;\n if(Array.isArray(items)) {\n if(index >= items.length) return false;\n if(valObject.dimensions === 2) {\n i++;\n if(parts.length === i) return valObject;\n var index2 = parts[i];\n if(!isIndex(index2)) return false;\n valObject = items[index][index2];\n } else valObject = items[index];\n } else {\n valObject = items;\n }\n }\n }\n\n return valObject;\n}\n\n// note: this is different from Lib.isIndex, this one doesn't accept numeric\n// strings, only actual numbers.\nfunction isIndex(val) {\n return val === Math.round(val) && val >= 0;\n}\n\nfunction getTraceAttributes(type) {\n var _module, basePlotModule;\n\n _module = Registry.modules[type]._module,\n basePlotModule = _module.basePlotModule;\n\n var attributes = {};\n\n // make 'type' the first attribute in the object\n attributes.type = null;\n\n var copyBaseAttributes = extendDeepAll({}, baseAttributes);\n var copyModuleAttributes = extendDeepAll({}, _module.attributes);\n\n // prune global-level trace attributes that are already defined in a trace\n exports.crawl(copyModuleAttributes, function(attr, attrName, attrs, level, fullAttrString) {\n nestedProperty(copyBaseAttributes, fullAttrString).set(undefined);\n // Prune undefined attributes\n if(attr === undefined) nestedProperty(copyModuleAttributes, fullAttrString).set(undefined);\n });\n\n // base attributes (same for all trace types)\n extendDeepAll(attributes, copyBaseAttributes);\n\n // prune-out base attributes based on trace module categories\n if(Registry.traceIs(type, 'noOpacity')) {\n delete attributes.opacity;\n }\n if(!Registry.traceIs(type, 'showLegend')) {\n delete attributes.showlegend;\n delete attributes.legendgroup;\n }\n if(Registry.traceIs(type, 'noHover')) {\n delete attributes.hoverinfo;\n delete attributes.hoverlabel;\n }\n if(!_module.selectPoints) {\n delete attributes.selectedpoints;\n }\n\n // module attributes\n extendDeepAll(attributes, copyModuleAttributes);\n\n // subplot attributes\n if(basePlotModule.attributes) {\n extendDeepAll(attributes, basePlotModule.attributes);\n }\n\n // 'type' gets overwritten by baseAttributes; reset it here\n attributes.type = type;\n\n var out = {\n meta: _module.meta || {},\n categories: _module.categories || {},\n animatable: Boolean(_module.animatable),\n type: type,\n attributes: formatAttributes(attributes),\n };\n\n // trace-specific layout attributes\n if(_module.layoutAttributes) {\n var layoutAttributes = {};\n\n extendDeepAll(layoutAttributes, _module.layoutAttributes);\n out.layoutAttributes = formatAttributes(layoutAttributes);\n }\n\n // drop anim:true in non-animatable modules\n if(!_module.animatable) {\n exports.crawl(out, function(attr) {\n if(exports.isValObject(attr) && 'anim' in attr) {\n delete attr.anim;\n }\n });\n }\n\n return out;\n}\n\nfunction getLayoutAttributes() {\n var layoutAttributes = {};\n var key, _module;\n\n // global layout attributes\n extendDeepAll(layoutAttributes, baseLayoutAttributes);\n\n // add base plot module layout attributes\n for(key in Registry.subplotsRegistry) {\n _module = Registry.subplotsRegistry[key];\n\n if(!_module.layoutAttributes) continue;\n\n if(Array.isArray(_module.attr)) {\n for(var i = 0; i < _module.attr.length; i++) {\n handleBasePlotModule(layoutAttributes, _module, _module.attr[i]);\n }\n } else {\n var astr = _module.attr === 'subplot' ? _module.name : _module.attr;\n handleBasePlotModule(layoutAttributes, _module, astr);\n }\n }\n\n // add registered components layout attributes\n for(key in Registry.componentsRegistry) {\n _module = Registry.componentsRegistry[key];\n var schema = _module.schema;\n\n if(schema && (schema.subplots || schema.layout)) {\n /*\n * Components with defined schema have already been merged in at register time\n * but a few components define attributes that apply only to xaxis\n * not yaxis (rangeselector, rangeslider) - delete from y schema.\n * Note that the input attributes for xaxis/yaxis are the same object\n * so it's not possible to only add them to xaxis from the start.\n * If we ever have such asymmetry the other way, or anywhere else,\n * we will need to extend both this code and mergeComponentAttrsToSubplot\n * (which will not find yaxis only for example)\n */\n var subplots = schema.subplots;\n if(subplots && subplots.xaxis && !subplots.yaxis) {\n for(var xkey in subplots.xaxis) {\n delete layoutAttributes.yaxis[xkey];\n }\n }\n } else if(_module.name === 'colorscale') {\n extendDeepAll(layoutAttributes, _module.layoutAttributes);\n } else if(_module.layoutAttributes) {\n // older style without schema need to be explicitly merged in now\n insertAttrs(layoutAttributes, _module.layoutAttributes, _module.name);\n }\n }\n\n return {\n layoutAttributes: formatAttributes(layoutAttributes)\n };\n}\n\nfunction getTransformAttributes(type) {\n var _module = Registry.transformsRegistry[type];\n var attributes = extendDeepAll({}, _module.attributes);\n\n // add registered components transform attributes\n Object.keys(Registry.componentsRegistry).forEach(function(k) {\n var _module = Registry.componentsRegistry[k];\n\n if(_module.schema && _module.schema.transforms && _module.schema.transforms[type]) {\n Object.keys(_module.schema.transforms[type]).forEach(function(v) {\n insertAttrs(attributes, _module.schema.transforms[type][v], v);\n });\n }\n });\n\n return {\n attributes: formatAttributes(attributes)\n };\n}\n\nfunction getFramesAttributes() {\n var attrs = {\n frames: extendDeepAll({}, frameAttributes)\n };\n\n formatAttributes(attrs);\n\n return attrs.frames;\n}\n\nfunction formatAttributes(attrs) {\n mergeValTypeAndRole(attrs);\n formatArrayContainers(attrs);\n stringify(attrs);\n\n return attrs;\n}\n\nfunction mergeValTypeAndRole(attrs) {\n function makeSrcAttr(attrName) {\n return {\n valType: 'string',\n editType: 'none'\n };\n }\n\n function callback(attr, attrName, attrs) {\n if(exports.isValObject(attr)) {\n if(attr.arrayOk === true || attr.valType === 'data_array') {\n // all 'arrayOk' and 'data_array' attrs have a corresponding 'src' attr\n attrs[attrName + 'src'] = makeSrcAttr(attrName);\n }\n } else if(isPlainObject(attr)) {\n // all attrs container objects get role 'object'\n attr.role = 'object';\n }\n }\n\n exports.crawl(attrs, callback);\n}\n\nfunction formatArrayContainers(attrs) {\n function callback(attr, attrName, attrs) {\n if(!attr) return;\n\n var itemName = attr[IS_LINKED_TO_ARRAY];\n\n if(!itemName) return;\n\n delete attr[IS_LINKED_TO_ARRAY];\n\n attrs[attrName] = { items: {} };\n attrs[attrName].items[itemName] = attr;\n attrs[attrName].role = 'object';\n }\n\n exports.crawl(attrs, callback);\n}\n\n// this can take around 10ms and should only be run from PlotSchema.get(),\n// to ensure JSON.stringify(PlotSchema.get()) gives the intended result.\nfunction stringify(attrs) {\n function walk(attr) {\n for(var k in attr) {\n if(isPlainObject(attr[k])) {\n walk(attr[k]);\n } else if(Array.isArray(attr[k])) {\n for(var i = 0; i < attr[k].length; i++) {\n walk(attr[k][i]);\n }\n } else {\n // as JSON.stringify(/test/) // => {}\n if(attr[k] instanceof RegExp) {\n attr[k] = attr[k].toString();\n }\n }\n }\n }\n\n walk(attrs);\n}\n\n\nfunction handleBasePlotModule(layoutAttributes, _module, astr) {\n var np = nestedProperty(layoutAttributes, astr);\n var attrs = extendDeepAll({}, _module.layoutAttributes);\n\n attrs[IS_SUBPLOT_OBJ] = true;\n np.set(attrs);\n}\n\nfunction insertAttrs(baseAttrs, newAttrs, astr) {\n var np = nestedProperty(baseAttrs, astr);\n\n np.set(extendDeepAll(np.get() || {}, newAttrs));\n}\n\n},{\"../lib\":503,\"../plots/animation_attributes\":548,\"../plots/attributes\":550,\"../plots/frame_attributes\":586,\"../plots/layout_attributes\":610,\"../registry\":638,\"./edit_types\":536,\"./plot_config\":541}],543:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../lib');\nvar plotAttributes = _dereq_('../plots/attributes');\n\nvar TEMPLATEITEMNAME = 'templateitemname';\n\nvar templateAttrs = {\n name: {\n valType: 'string',\n editType: 'none',\n }\n};\ntemplateAttrs[TEMPLATEITEMNAME] = {\n valType: 'string',\n editType: 'calc',\n};\n\n/**\n * templatedArray: decorate an attributes object with templating (and array)\n * properties.\n *\n * @param {string} name: the singular form of the array name. Sets\n * `_isLinkedToArray` to this, so the schema knows to treat this as an array.\n * @param {object} attrs: the item attributes. Since all callers are expected\n * to be constructing this object on the spot, we mutate it here for\n * performance, rather than extending a new object with it.\n *\n * @returns {object}: the decorated `attrs` object\n */\nexports.templatedArray = function(name, attrs) {\n attrs._isLinkedToArray = name;\n attrs.name = templateAttrs.name;\n attrs[TEMPLATEITEMNAME] = templateAttrs[TEMPLATEITEMNAME];\n return attrs;\n};\n\n/**\n * traceTemplater: logic for matching traces to trace templates\n *\n * @param {object} dataTemplate: collection of {traceType: [{template}, ...]}\n * ie each type the template applies to contains a list of template objects,\n * to be provided cyclically to data traces of that type.\n *\n * @returns {object}: {newTrace}, a function:\n * newTrace(traceIn): that takes the input traceIn, coerces its type, then\n * uses that type to find the next template to apply. returns the output\n * traceOut with template attached, ready to continue supplyDefaults.\n */\nexports.traceTemplater = function(dataTemplate) {\n var traceCounts = {};\n var traceType, typeTemplates;\n\n for(traceType in dataTemplate) {\n typeTemplates = dataTemplate[traceType];\n if(Array.isArray(typeTemplates) && typeTemplates.length) {\n traceCounts[traceType] = 0;\n }\n }\n\n function newTrace(traceIn) {\n traceType = Lib.coerce(traceIn, {}, plotAttributes, 'type');\n var traceOut = {type: traceType, _template: null};\n if(traceType in traceCounts) {\n typeTemplates = dataTemplate[traceType];\n // cycle through traces in the template set for this type\n var typei = traceCounts[traceType] % typeTemplates.length;\n traceCounts[traceType]++;\n traceOut._template = typeTemplates[typei];\n } else {\n // TODO: anything we should do for types missing from the template?\n // try to apply some other type? Or just bail as we do here?\n // Actually I think yes, we should apply other types; would be nice\n // if all scatter* could inherit from each other, and if histogram\n // could inherit from bar, etc... but how to specify this? And do we\n // compose them, or if a type is present require it to be complete?\n // Actually this could apply to layout too - 3D annotations\n // inheriting from 2D, axes of different types inheriting from each\n // other...\n }\n return traceOut;\n }\n\n return {\n newTrace: newTrace\n // TODO: function to figure out what's left & what didn't work\n };\n};\n\n/**\n * newContainer: Create a new sub-container inside `container` and propagate any\n * applicable template to it. If there's no template, still propagates\n * `undefined` so relinkPrivate will not retain an old template!\n *\n * @param {object} container: the outer container, should already have _template\n * if there *is* a template for this plot\n * @param {string} name: the key of the new container to make\n * @param {string} baseName: if applicable, a base attribute to take the\n * template from, ie for xaxis3 the base would be xaxis\n *\n * @returns {object}: an object for inclusion _full*, empty except for the\n * appropriate template piece\n */\nexports.newContainer = function(container, name, baseName) {\n var template = container._template;\n var part = template && (template[name] || (baseName && template[baseName]));\n if(!Lib.isPlainObject(part)) part = null;\n\n var out = container[name] = {_template: part};\n return out;\n};\n\n/**\n * arrayTemplater: special logic for templating both defaults and specific items\n * in a container array (annotations etc)\n *\n * @param {object} container: the outer container, should already have _template\n * if there *is* a template for this plot\n * @param {string} name: the name of the array to template (ie 'annotations')\n * will be used to find default ('annotationdefaults' object) and specific\n * ('annotations' array) template specs.\n * @param {string} inclusionAttr: the attribute determining this item's\n * inclusion in the output, usually 'visible' or 'enabled'\n *\n * @returns {object}: {newItem, defaultItems}, both functions:\n * newItem(itemIn): create an output item, bare except for the correct\n * template and name(s), as the base for supplyDefaults\n * defaultItems(): to be called after all newItem calls, return any\n * specific template items that have not already beeen included,\n * also as bare output items ready for supplyDefaults.\n */\nexports.arrayTemplater = function(container, name, inclusionAttr) {\n var template = container._template;\n var defaultsTemplate = template && template[arrayDefaultKey(name)];\n var templateItems = template && template[name];\n if(!Array.isArray(templateItems) || !templateItems.length) {\n templateItems = [];\n }\n\n var usedNames = {};\n\n function newItem(itemIn) {\n // include name and templateitemname in the output object for ALL\n // container array items. Note: you could potentially use different\n // name and templateitemname, if you're using one template to make\n // another template. templateitemname would be the name in the original\n // template, and name is the new \"subclassed\" item name.\n var out = {name: itemIn.name, _input: itemIn};\n var templateItemName = out[TEMPLATEITEMNAME] = itemIn[TEMPLATEITEMNAME];\n\n // no itemname: use the default template\n if(!validItemName(templateItemName)) {\n out._template = defaultsTemplate;\n return out;\n }\n\n // look for an item matching this itemname\n // note these do not inherit from the default template, only the item.\n for(var i = 0; i < templateItems.length; i++) {\n var templateItem = templateItems[i];\n if(templateItem.name === templateItemName) {\n // Note: it's OK to use a template item more than once\n // but using it at least once will stop it from generating\n // a default item at the end.\n usedNames[templateItemName] = 1;\n out._template = templateItem;\n return out;\n }\n }\n\n // Didn't find a matching template item, so since this item is intended\n // to only be modifications it's most likely broken. Hide it unless\n // it's explicitly marked visible - in which case it gets NO template,\n // not even the default.\n out[inclusionAttr] = itemIn[inclusionAttr] || false;\n // special falsy value we can look for in validateTemplate\n out._template = false;\n return out;\n }\n\n function defaultItems() {\n var out = [];\n for(var i = 0; i < templateItems.length; i++) {\n var templateItem = templateItems[i];\n var name = templateItem.name;\n // only allow named items to be added as defaults,\n // and only allow each name once\n if(validItemName(name) && !usedNames[name]) {\n var outi = {\n _template: templateItem,\n name: name,\n _input: {_templateitemname: name}\n };\n outi[TEMPLATEITEMNAME] = templateItem[TEMPLATEITEMNAME];\n out.push(outi);\n usedNames[name] = 1;\n }\n }\n return out;\n }\n\n return {\n newItem: newItem,\n defaultItems: defaultItems\n };\n};\n\nfunction validItemName(name) {\n return name && typeof name === 'string';\n}\n\nfunction arrayDefaultKey(name) {\n var lastChar = name.length - 1;\n if(name.charAt(lastChar) !== 's') {\n Lib.warn('bad argument to arrayDefaultKey: ' + name);\n }\n return name.substr(0, name.length - 1) + 'defaults';\n}\nexports.arrayDefaultKey = arrayDefaultKey;\n\n/**\n * arrayEditor: helper for editing array items that may have come from\n * template defaults (in which case they will not exist in the input yet)\n *\n * @param {object} parentIn: the input container (eg gd.layout)\n * @param {string} containerStr: the attribute string for the container inside\n * `parentIn`.\n * @param {object} itemOut: the _full* item (eg gd._fullLayout.annotations[0])\n * that we'll be editing. Assumed to have been created by `arrayTemplater`.\n *\n * @returns {object}: {modifyBase, modifyItem, getUpdateObj, applyUpdate}, all functions:\n * modifyBase(attr, value): Add an update that's *not* related to the item.\n * `attr` is the full attribute string.\n * modifyItem(attr, value): Add an update to the item. `attr` is just the\n * portion of the attribute string inside the item.\n * getUpdateObj(): Get the final constructed update object, to use in\n * `restyle` or `relayout`. Also resets the update object in case this\n * update was canceled.\n * applyUpdate(attr, value): optionally add an update `attr: value`,\n * then apply it to `parent` which should be the parent of `containerIn`,\n * ie the object to which `containerStr` is the attribute string.\n */\nexports.arrayEditor = function(parentIn, containerStr, itemOut) {\n var lengthIn = (Lib.nestedProperty(parentIn, containerStr).get() || []).length;\n var index = itemOut._index;\n // Check that we are indeed off the end of this container.\n // Otherwise a devious user could put a key `_templateitemname` in their\n // own input and break lots of things.\n var templateItemName = (index >= lengthIn) && (itemOut._input || {})._templateitemname;\n if(templateItemName) index = lengthIn;\n var itemStr = containerStr + '[' + index + ']';\n\n var update;\n function resetUpdate() {\n update = {};\n if(templateItemName) {\n update[itemStr] = {};\n update[itemStr][TEMPLATEITEMNAME] = templateItemName;\n }\n }\n resetUpdate();\n\n function modifyBase(attr, value) {\n update[attr] = value;\n }\n\n function modifyItem(attr, value) {\n if(templateItemName) {\n // we're making a new object: edit that object\n Lib.nestedProperty(update[itemStr], attr).set(value);\n } else {\n // we're editing an existing object: include *just* the edit\n update[itemStr + '.' + attr] = value;\n }\n }\n\n function getUpdateObj() {\n var updateOut = update;\n resetUpdate();\n return updateOut;\n }\n\n function applyUpdate(attr, value) {\n if(attr) modifyItem(attr, value);\n var updateToApply = getUpdateObj();\n for(var key in updateToApply) {\n Lib.nestedProperty(parentIn, key).set(updateToApply[key]);\n }\n }\n\n return {\n modifyBase: modifyBase,\n modifyItem: modifyItem,\n getUpdateObj: getUpdateObj,\n applyUpdate: applyUpdate\n };\n};\n\n},{\"../lib\":503,\"../plots/attributes\":550}],544:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Registry = _dereq_('../registry');\nvar Plots = _dereq_('../plots/plots');\n\nvar Lib = _dereq_('../lib');\nvar clearGlCanvases = _dereq_('../lib/clear_gl_canvases');\n\nvar Color = _dereq_('../components/color');\nvar Drawing = _dereq_('../components/drawing');\nvar Titles = _dereq_('../components/titles');\nvar ModeBar = _dereq_('../components/modebar');\n\nvar Axes = _dereq_('../plots/cartesian/axes');\nvar alignmentConstants = _dereq_('../constants/alignment');\nvar axisConstraints = _dereq_('../plots/cartesian/constraints');\nvar enforceAxisConstraints = axisConstraints.enforce;\nvar cleanAxisConstraints = axisConstraints.clean;\nvar doAutoRange = _dereq_('../plots/cartesian/autorange').doAutoRange;\n\nvar SVG_TEXT_ANCHOR_START = 'start';\nvar SVG_TEXT_ANCHOR_MIDDLE = 'middle';\nvar SVG_TEXT_ANCHOR_END = 'end';\n\nexports.layoutStyles = function(gd) {\n return Lib.syncOrAsync([Plots.doAutoMargin, lsInner], gd);\n};\n\nfunction overlappingDomain(xDomain, yDomain, domains) {\n for(var i = 0; i < domains.length; i++) {\n var existingX = domains[i][0];\n var existingY = domains[i][1];\n\n if(existingX[0] >= xDomain[1] || existingX[1] <= xDomain[0]) {\n continue;\n }\n if(existingY[0] < yDomain[1] && existingY[1] > yDomain[0]) {\n return true;\n }\n }\n return false;\n}\n\nfunction lsInner(gd) {\n var fullLayout = gd._fullLayout;\n var gs = fullLayout._size;\n var pad = gs.p;\n var axList = Axes.list(gd, '', true);\n var i, subplot, plotinfo, ax, xa, ya;\n\n fullLayout._paperdiv.style({\n width: (gd._context.responsive && fullLayout.autosize && !gd._context._hasZeroWidth && !gd.layout.width) ? '100%' : fullLayout.width + 'px',\n height: (gd._context.responsive && fullLayout.autosize && !gd._context._hasZeroHeight && !gd.layout.height) ? '100%' : fullLayout.height + 'px'\n })\n .selectAll('.main-svg')\n .call(Drawing.setSize, fullLayout.width, fullLayout.height);\n gd._context.setBackground(gd, fullLayout.paper_bgcolor);\n\n exports.drawMainTitle(gd);\n ModeBar.manage(gd);\n\n // _has('cartesian') means SVG specifically, not GL2D - but GL2D\n // can still get here because it makes some of the SVG structure\n // for shared features like selections.\n if(!fullLayout._has('cartesian')) {\n return Plots.previousPromises(gd);\n }\n\n function getLinePosition(ax, counterAx, side) {\n var lwHalf = ax._lw / 2;\n\n if(ax._id.charAt(0) === 'x') {\n if(!counterAx) return gs.t + gs.h * (1 - (ax.position || 0)) + (lwHalf % 1);\n else if(side === 'top') return counterAx._offset - pad - lwHalf;\n return counterAx._offset + counterAx._length + pad + lwHalf;\n }\n\n if(!counterAx) return gs.l + gs.w * (ax.position || 0) + (lwHalf % 1);\n else if(side === 'right') return counterAx._offset + counterAx._length + pad + lwHalf;\n return counterAx._offset - pad - lwHalf;\n }\n\n // some preparation of axis position info\n for(i = 0; i < axList.length; i++) {\n ax = axList[i];\n\n var counterAx = ax._anchorAxis;\n\n // clear axis line positions, to be set in the subplot loop below\n ax._linepositions = {};\n\n // stash crispRounded linewidth so we don't need to pass gd all over the place\n ax._lw = Drawing.crispRound(gd, ax.linewidth, 1);\n\n // figure out the main axis line and main mirror line position.\n // it's easier to follow the logic if we handle these separately from\n // ax._linepositions, which are only used by mirror=allticks\n // for non-main-subplot ticks, and mirror=all(ticks)? for zero line\n // hiding logic\n ax._mainLinePosition = getLinePosition(ax, counterAx, ax.side);\n ax._mainMirrorPosition = (ax.mirror && counterAx) ?\n getLinePosition(ax, counterAx,\n alignmentConstants.OPPOSITE_SIDE[ax.side]) : null;\n }\n\n // figure out which backgrounds we need to draw,\n // and in which layers to put them\n var lowerBackgroundIDs = [];\n var backgroundIds = [];\n var lowerDomains = [];\n // no need to draw background when paper and plot color are the same color,\n // activate mode just for large splom (which benefit the most from this\n // optimization), but this could apply to all cartesian subplots.\n var noNeedForBg = (\n Color.opacity(fullLayout.paper_bgcolor) === 1 &&\n Color.opacity(fullLayout.plot_bgcolor) === 1 &&\n fullLayout.paper_bgcolor === fullLayout.plot_bgcolor\n );\n\n for(subplot in fullLayout._plots) {\n plotinfo = fullLayout._plots[subplot];\n\n if(plotinfo.mainplot) {\n // mainplot is a reference to the main plot this one is overlaid on\n // so if it exists, this is an overlaid plot and we don't need to\n // give it its own background\n if(plotinfo.bg) {\n plotinfo.bg.remove();\n }\n plotinfo.bg = undefined;\n } else {\n var xDomain = plotinfo.xaxis.domain;\n var yDomain = plotinfo.yaxis.domain;\n var plotgroup = plotinfo.plotgroup;\n\n if(overlappingDomain(xDomain, yDomain, lowerDomains)) {\n var pgNode = plotgroup.node();\n var plotgroupBg = plotinfo.bg = Lib.ensureSingle(plotgroup, 'rect', 'bg');\n pgNode.insertBefore(plotgroupBg.node(), pgNode.childNodes[0]);\n backgroundIds.push(subplot);\n } else {\n plotgroup.select('rect.bg').remove();\n lowerDomains.push([xDomain, yDomain]);\n if(!noNeedForBg) {\n lowerBackgroundIDs.push(subplot);\n backgroundIds.push(subplot);\n }\n }\n }\n }\n\n // now create all the lower-layer backgrounds at once now that\n // we have the list of subplots that need them\n var lowerBackgrounds = fullLayout._bgLayer.selectAll('.bg')\n .data(lowerBackgroundIDs);\n\n lowerBackgrounds.enter().append('rect')\n .classed('bg', true);\n\n lowerBackgrounds.exit().remove();\n\n lowerBackgrounds.each(function(subplot) {\n fullLayout._plots[subplot].bg = d3.select(this);\n });\n\n // style all backgrounds\n for(i = 0; i < backgroundIds.length; i++) {\n plotinfo = fullLayout._plots[backgroundIds[i]];\n xa = plotinfo.xaxis;\n ya = plotinfo.yaxis;\n\n if(plotinfo.bg && xa._offset !== undefined && ya._offset !== undefined) {\n plotinfo.bg\n .call(Drawing.setRect,\n xa._offset - pad, ya._offset - pad,\n xa._length + 2 * pad, ya._length + 2 * pad)\n .call(Color.fill, fullLayout.plot_bgcolor)\n .style('stroke-width', 0);\n }\n }\n\n if(!fullLayout._hasOnlyLargeSploms) {\n for(subplot in fullLayout._plots) {\n plotinfo = fullLayout._plots[subplot];\n xa = plotinfo.xaxis;\n ya = plotinfo.yaxis;\n\n // Clip so that data only shows up on the plot area.\n var clipId = plotinfo.clipId = 'clip' + fullLayout._uid + subplot + 'plot';\n\n var plotClip = Lib.ensureSingleById(fullLayout._clips, 'clipPath', clipId, function(s) {\n s.classed('plotclip', true)\n .append('rect');\n });\n\n plotinfo.clipRect = plotClip.select('rect').attr({\n width: xa._length,\n height: ya._length\n });\n\n Drawing.setTranslate(plotinfo.plot, xa._offset, ya._offset);\n\n var plotClipId;\n var layerClipId;\n\n if(plotinfo._hasClipOnAxisFalse) {\n plotClipId = null;\n layerClipId = clipId;\n } else {\n plotClipId = clipId;\n layerClipId = null;\n }\n\n Drawing.setClipUrl(plotinfo.plot, plotClipId, gd);\n\n // stash layer clipId value (null or same as clipId)\n // to DRY up Drawing.setClipUrl calls on trace-module and trace layers\n // downstream\n plotinfo.layerClipId = layerClipId;\n }\n }\n\n var xLinesXLeft, xLinesXRight, xLinesYBottom, xLinesYTop,\n leftYLineWidth, rightYLineWidth;\n var yLinesYBottom, yLinesYTop, yLinesXLeft, yLinesXRight,\n connectYBottom, connectYTop;\n var extraSubplot;\n\n function xLinePath(y) {\n return 'M' + xLinesXLeft + ',' + y + 'H' + xLinesXRight;\n }\n\n function xLinePathFree(y) {\n return 'M' + xa._offset + ',' + y + 'h' + xa._length;\n }\n\n function yLinePath(x) {\n return 'M' + x + ',' + yLinesYTop + 'V' + yLinesYBottom;\n }\n\n function yLinePathFree(x) {\n return 'M' + x + ',' + ya._offset + 'v' + ya._length;\n }\n\n function mainPath(ax, pathFn, pathFnFree) {\n if(!ax.showline || subplot !== ax._mainSubplot) return '';\n if(!ax._anchorAxis) return pathFnFree(ax._mainLinePosition);\n var out = pathFn(ax._mainLinePosition);\n if(ax.mirror) out += pathFn(ax._mainMirrorPosition);\n return out;\n }\n\n for(subplot in fullLayout._plots) {\n plotinfo = fullLayout._plots[subplot];\n xa = plotinfo.xaxis;\n ya = plotinfo.yaxis;\n\n /*\n * x lines get longer where they meet y lines, to make a crisp corner.\n * The x lines get the padding (margin.pad) plus the y line width to\n * fill up the corner nicely. Free x lines are excluded - they always\n * span exactly the data area of the plot\n *\n * | XXXXX\n * | XXXXX\n * |\n * +------\n * x1\n * -----\n * x2\n */\n var xPath = 'M0,0';\n if(shouldShowLinesOrTicks(xa, subplot)) {\n leftYLineWidth = findCounterAxisLineWidth(xa, 'left', ya, axList);\n xLinesXLeft = xa._offset - (leftYLineWidth ? (pad + leftYLineWidth) : 0);\n rightYLineWidth = findCounterAxisLineWidth(xa, 'right', ya, axList);\n xLinesXRight = xa._offset + xa._length + (rightYLineWidth ? (pad + rightYLineWidth) : 0);\n xLinesYBottom = getLinePosition(xa, ya, 'bottom');\n xLinesYTop = getLinePosition(xa, ya, 'top');\n\n // save axis line positions for extra ticks to reference\n // each subplot that gets ticks from \"allticks\" gets an entry:\n // [left or bottom, right or top]\n extraSubplot = (!xa._anchorAxis || subplot !== xa._mainSubplot);\n if(extraSubplot && (xa.mirror === 'allticks' || xa.mirror === 'all')) {\n xa._linepositions[subplot] = [xLinesYBottom, xLinesYTop];\n }\n\n xPath = mainPath(xa, xLinePath, xLinePathFree);\n if(extraSubplot && xa.showline && (xa.mirror === 'all' || xa.mirror === 'allticks')) {\n xPath += xLinePath(xLinesYBottom) + xLinePath(xLinesYTop);\n }\n\n plotinfo.xlines\n .style('stroke-width', xa._lw + 'px')\n .call(Color.stroke, xa.showline ?\n xa.linecolor : 'rgba(0,0,0,0)');\n }\n plotinfo.xlines.attr('d', xPath);\n\n /*\n * y lines that meet x axes get longer only by margin.pad, because\n * the x axes fill in the corner space. Free y axes, like free x axes,\n * always span exactly the data area of the plot\n *\n * | | XXXX\n * y2| y1| XXXX\n * | | XXXX\n * |\n * +-----\n */\n var yPath = 'M0,0';\n if(shouldShowLinesOrTicks(ya, subplot)) {\n connectYBottom = findCounterAxisLineWidth(ya, 'bottom', xa, axList);\n yLinesYBottom = ya._offset + ya._length + (connectYBottom ? pad : 0);\n connectYTop = findCounterAxisLineWidth(ya, 'top', xa, axList);\n yLinesYTop = ya._offset - (connectYTop ? pad : 0);\n yLinesXLeft = getLinePosition(ya, xa, 'left');\n yLinesXRight = getLinePosition(ya, xa, 'right');\n\n extraSubplot = (!ya._anchorAxis || subplot !== ya._mainSubplot);\n if(extraSubplot && (ya.mirror === 'allticks' || ya.mirror === 'all')) {\n ya._linepositions[subplot] = [yLinesXLeft, yLinesXRight];\n }\n\n yPath = mainPath(ya, yLinePath, yLinePathFree);\n if(extraSubplot && ya.showline && (ya.mirror === 'all' || ya.mirror === 'allticks')) {\n yPath += yLinePath(yLinesXLeft) + yLinePath(yLinesXRight);\n }\n\n plotinfo.ylines\n .style('stroke-width', ya._lw + 'px')\n .call(Color.stroke, ya.showline ?\n ya.linecolor : 'rgba(0,0,0,0)');\n }\n plotinfo.ylines.attr('d', yPath);\n }\n\n Axes.makeClipPaths(gd);\n\n return Plots.previousPromises(gd);\n}\n\nfunction shouldShowLinesOrTicks(ax, subplot) {\n return (ax.ticks || ax.showline) &&\n (subplot === ax._mainSubplot || ax.mirror === 'all' || ax.mirror === 'allticks');\n}\n\n/*\n * should we draw a line on counterAx at this side of ax?\n * It's assumed that counterAx is known to overlay the subplot we're working on\n * but it may not be its main axis.\n */\nfunction shouldShowLineThisSide(ax, side, counterAx) {\n // does counterAx get a line at all?\n if(!counterAx.showline || !counterAx._lw) return false;\n\n // are we drawing *all* lines for counterAx?\n if(counterAx.mirror === 'all' || counterAx.mirror === 'allticks') return true;\n\n var anchorAx = counterAx._anchorAxis;\n\n // is this a free axis? free axes can only have a subplot side-line with all(ticks)? mirroring\n if(!anchorAx) return false;\n\n // in order to handle cases where the user forgot to anchor this axis correctly\n // (because its default anchor has the same domain on the relevant end)\n // check whether the relevant position is the same.\n var sideIndex = alignmentConstants.FROM_BL[side];\n if(counterAx.side === side) {\n return anchorAx.domain[sideIndex] === ax.domain[sideIndex];\n }\n return counterAx.mirror && anchorAx.domain[1 - sideIndex] === ax.domain[1 - sideIndex];\n}\n\n/*\n * Is there another axis intersecting `side` end of `ax`?\n * First look at `counterAx` (the axis for this subplot),\n * then at all other potential counteraxes on or overlaying this subplot.\n * Take the line width from the first one that has a line.\n */\nfunction findCounterAxisLineWidth(ax, side, counterAx, axList) {\n if(shouldShowLineThisSide(ax, side, counterAx)) {\n return counterAx._lw;\n }\n for(var i = 0; i < axList.length; i++) {\n var axi = axList[i];\n if(axi._mainAxis === counterAx._mainAxis && shouldShowLineThisSide(ax, side, axi)) {\n return axi._lw;\n }\n }\n return 0;\n}\n\nexports.drawMainTitle = function(gd) {\n var fullLayout = gd._fullLayout;\n\n var textAnchor = getMainTitleTextAnchor(fullLayout);\n var dy = getMainTitleDy(fullLayout);\n\n Titles.draw(gd, 'gtitle', {\n propContainer: fullLayout,\n propName: 'title.text',\n placeholder: fullLayout._dfltTitle.plot,\n attributes: {\n x: getMainTitleX(fullLayout, textAnchor),\n y: getMainTitleY(fullLayout, dy),\n 'text-anchor': textAnchor,\n dy: dy\n }\n });\n};\n\nfunction getMainTitleX(fullLayout, textAnchor) {\n var title = fullLayout.title;\n var gs = fullLayout._size;\n var hPadShift = 0;\n\n if(textAnchor === SVG_TEXT_ANCHOR_START) {\n hPadShift = title.pad.l;\n } else if(textAnchor === SVG_TEXT_ANCHOR_END) {\n hPadShift = -title.pad.r;\n }\n\n switch(title.xref) {\n case 'paper':\n return gs.l + gs.w * title.x + hPadShift;\n case 'container':\n default:\n return fullLayout.width * title.x + hPadShift;\n }\n}\n\nfunction getMainTitleY(fullLayout, dy) {\n var title = fullLayout.title;\n var gs = fullLayout._size;\n var vPadShift = 0;\n\n if(dy === '0em' || !dy) {\n vPadShift = -title.pad.b;\n } else if(dy === alignmentConstants.CAP_SHIFT + 'em') {\n vPadShift = title.pad.t;\n }\n\n if(title.y === 'auto') {\n return gs.t / 2;\n } else {\n switch(title.yref) {\n case 'paper':\n return gs.t + gs.h - gs.h * title.y + vPadShift;\n case 'container':\n default:\n return fullLayout.height - fullLayout.height * title.y + vPadShift;\n }\n }\n}\n\nfunction getMainTitleTextAnchor(fullLayout) {\n var title = fullLayout.title;\n\n var textAnchor = SVG_TEXT_ANCHOR_MIDDLE;\n if(Lib.isRightAnchor(title)) {\n textAnchor = SVG_TEXT_ANCHOR_END;\n } else if(Lib.isLeftAnchor(title)) {\n textAnchor = SVG_TEXT_ANCHOR_START;\n }\n\n return textAnchor;\n}\n\nfunction getMainTitleDy(fullLayout) {\n var title = fullLayout.title;\n\n var dy = '0em';\n if(Lib.isTopAnchor(title)) {\n dy = alignmentConstants.CAP_SHIFT + 'em';\n } else if(Lib.isMiddleAnchor(title)) {\n dy = alignmentConstants.MID_SHIFT + 'em';\n }\n\n return dy;\n}\n\nexports.doTraceStyle = function(gd) {\n var calcdata = gd.calcdata;\n var editStyleCalls = [];\n var i;\n\n for(i = 0; i < calcdata.length; i++) {\n var cd = calcdata[i];\n var cd0 = cd[0] || {};\n var trace = cd0.trace || {};\n var _module = trace._module || {};\n\n // See if we need to do arraysToCalcdata\n // call it regardless of what change we made, in case\n // supplyDefaults brought in an array that was already\n // in gd.data but not in gd._fullData previously\n var arraysToCalcdata = _module.arraysToCalcdata;\n if(arraysToCalcdata) arraysToCalcdata(cd, trace);\n\n var editStyle = _module.editStyle;\n if(editStyle) editStyleCalls.push({fn: editStyle, cd0: cd0});\n }\n\n if(editStyleCalls.length) {\n for(i = 0; i < editStyleCalls.length; i++) {\n var edit = editStyleCalls[i];\n edit.fn(gd, edit.cd0);\n }\n clearGlCanvases(gd);\n exports.redrawReglTraces(gd);\n }\n\n Plots.style(gd);\n Registry.getComponentMethod('legend', 'draw')(gd);\n\n return Plots.previousPromises(gd);\n};\n\nexports.doColorBars = function(gd) {\n Registry.getComponentMethod('colorbar', 'draw')(gd);\n return Plots.previousPromises(gd);\n};\n\n// force plot() to redo the layout and replot with the modified layout\nexports.layoutReplot = function(gd) {\n var layout = gd.layout;\n gd.layout = undefined;\n return Registry.call('_doPlot', gd, '', layout);\n};\n\nexports.doLegend = function(gd) {\n Registry.getComponentMethod('legend', 'draw')(gd);\n return Plots.previousPromises(gd);\n};\n\nexports.doTicksRelayout = function(gd) {\n Axes.draw(gd, 'redraw');\n\n if(gd._fullLayout._hasOnlyLargeSploms) {\n Registry.subplotsRegistry.splom.updateGrid(gd);\n clearGlCanvases(gd);\n exports.redrawReglTraces(gd);\n }\n\n exports.drawMainTitle(gd);\n return Plots.previousPromises(gd);\n};\n\nexports.doModeBar = function(gd) {\n var fullLayout = gd._fullLayout;\n\n ModeBar.manage(gd);\n\n for(var i = 0; i < fullLayout._basePlotModules.length; i++) {\n var updateFx = fullLayout._basePlotModules[i].updateFx;\n if(updateFx) updateFx(gd);\n }\n\n return Plots.previousPromises(gd);\n};\n\nexports.doCamera = function(gd) {\n var fullLayout = gd._fullLayout;\n var sceneIds = fullLayout._subplots.gl3d;\n\n for(var i = 0; i < sceneIds.length; i++) {\n var sceneLayout = fullLayout[sceneIds[i]];\n var scene = sceneLayout._scene;\n\n scene.setViewport(sceneLayout);\n }\n};\n\nexports.drawData = function(gd) {\n var fullLayout = gd._fullLayout;\n\n clearGlCanvases(gd);\n\n // loop over the base plot modules present on graph\n var basePlotModules = fullLayout._basePlotModules;\n for(var i = 0; i < basePlotModules.length; i++) {\n basePlotModules[i].plot(gd);\n }\n\n exports.redrawReglTraces(gd);\n\n // styling separate from drawing\n Plots.style(gd);\n\n // draw components that can be drawn on axes,\n // and that do not push the margins\n Registry.getComponentMethod('shapes', 'draw')(gd);\n Registry.getComponentMethod('annotations', 'draw')(gd);\n Registry.getComponentMethod('images', 'draw')(gd);\n\n // Mark the first render as complete\n fullLayout._replotting = false;\n\n return Plots.previousPromises(gd);\n};\n\n// Draw (or redraw) all regl-based traces in one go,\n// useful during drag and selection where buffers of targeted traces are updated,\n// but all traces need to be redrawn following clearGlCanvases.\n//\n// Note that _module.plot for regl trace does NOT draw things\n// on the canvas, they only update the buffers.\n// Drawing is perform here.\n//\n// TODO try adding per-subplot option using gl.SCISSOR_TEST for\n// non-overlaying, disjoint subplots.\n//\n// TODO try to include parcoords in here.\n// https://github.com/plotly/plotly.js/issues/3069\nexports.redrawReglTraces = function(gd) {\n var fullLayout = gd._fullLayout;\n\n if(fullLayout._has('regl')) {\n var fullData = gd._fullData;\n var cartesianIds = [];\n var polarIds = [];\n var i, sp;\n\n if(fullLayout._hasOnlyLargeSploms) {\n fullLayout._splomGrid.draw();\n }\n\n // N.B.\n // - Loop over fullData (not _splomScenes) to preserve splom trace-to-trace ordering\n // - Fill list if subplot ids (instead of fullLayout._subplots) to handle cases where all traces\n // of a given module are `visible !== true`\n for(i = 0; i < fullData.length; i++) {\n var trace = fullData[i];\n\n if(trace.visible === true && trace._length !== 0) {\n if(trace.type === 'splom') {\n fullLayout._splomScenes[trace.uid].draw();\n } else if(trace.type === 'scattergl') {\n Lib.pushUnique(cartesianIds, trace.xaxis + trace.yaxis);\n } else if(trace.type === 'scatterpolargl') {\n Lib.pushUnique(polarIds, trace.subplot);\n }\n }\n }\n\n for(i = 0; i < cartesianIds.length; i++) {\n sp = fullLayout._plots[cartesianIds[i]];\n if(sp._scene) sp._scene.draw();\n }\n\n for(i = 0; i < polarIds.length; i++) {\n sp = fullLayout[polarIds[i]]._subplot;\n if(sp._scene) sp._scene.draw();\n }\n }\n};\n\nexports.doAutoRangeAndConstraints = function(gd) {\n var axList = Axes.list(gd, '', true);\n var ax;\n\n var autoRangeDone = {};\n\n for(var i = 0; i < axList.length; i++) {\n ax = axList[i];\n\n if(!autoRangeDone[ax._id]) {\n autoRangeDone[ax._id] = 1;\n cleanAxisConstraints(gd, ax);\n doAutoRange(gd, ax);\n\n // For matching axes, just propagate this autorange to the group.\n // The extra arg to doAutoRange avoids recalculating the range,\n // since doAutoRange by itself accounts for all matching axes. but\n // there are other side-effects of doAutoRange that we still want.\n var matchGroup = ax._matchGroup;\n if(matchGroup) {\n for(var id2 in matchGroup) {\n var ax2 = Axes.getFromId(gd, id2);\n doAutoRange(gd, ax2, ax.range);\n autoRangeDone[id2] = 1;\n }\n }\n }\n }\n\n enforceAxisConstraints(gd);\n};\n\n// An initial paint must be completed before these components can be\n// correctly sized and the whole plot re-margined. fullLayout._replotting must\n// be set to false before these will work properly.\nexports.finalDraw = function(gd) {\n // TODO: rangesliders really belong in marginPushers but they need to be\n // drawn after data - can we at least get the margin pushing part separated\n // out and done earlier?\n Registry.getComponentMethod('rangeslider', 'draw')(gd);\n // TODO: rangeselector only needs to be here (in addition to drawMarginPushers)\n // because the margins need to be fully determined before we can call\n // autorange and update axis ranges (which rangeselector needs to know which\n // button is active). Can we break out its automargin step from its draw step?\n Registry.getComponentMethod('rangeselector', 'draw')(gd);\n};\n\nexports.drawMarginPushers = function(gd) {\n Registry.getComponentMethod('legend', 'draw')(gd);\n Registry.getComponentMethod('rangeselector', 'draw')(gd);\n Registry.getComponentMethod('sliders', 'draw')(gd);\n Registry.getComponentMethod('updatemenus', 'draw')(gd);\n Registry.getComponentMethod('colorbar', 'draw')(gd);\n};\n\n},{\"../components/color\":366,\"../components/drawing\":388,\"../components/modebar\":429,\"../components/titles\":464,\"../constants/alignment\":471,\"../lib\":503,\"../lib/clear_gl_canvases\":487,\"../plots/cartesian/autorange\":553,\"../plots/cartesian/axes\":554,\"../plots/cartesian/constraints\":562,\"../plots/plots\":619,\"../registry\":638,\"@plotly/d3\":58}],545:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../lib');\nvar isPlainObject = Lib.isPlainObject;\nvar PlotSchema = _dereq_('./plot_schema');\nvar Plots = _dereq_('../plots/plots');\nvar plotAttributes = _dereq_('../plots/attributes');\nvar Template = _dereq_('./plot_template');\nvar dfltConfig = _dereq_('./plot_config').dfltConfig;\n\n/**\n * Plotly.makeTemplate: create a template off an existing figure to reuse\n * style attributes on other figures.\n *\n * Note: separated from the rest of templates because otherwise we get circular\n * references due to PlotSchema.\n *\n * @param {object|DOM element|string} figure: The figure to base the template on\n * should contain a trace array `figure.data`\n * and a layout object `figure.layout`\n * @returns {object} template: the extracted template - can then be used as\n * `layout.template` in another figure.\n */\nexports.makeTemplate = function(figure) {\n figure = Lib.isPlainObject(figure) ? figure : Lib.getGraphDiv(figure);\n figure = Lib.extendDeep({_context: dfltConfig}, {data: figure.data, layout: figure.layout});\n Plots.supplyDefaults(figure);\n var data = figure.data || [];\n var layout = figure.layout || {};\n // copy over a few items to help follow the schema\n layout._basePlotModules = figure._fullLayout._basePlotModules;\n layout._modules = figure._fullLayout._modules;\n\n var template = {\n data: {},\n layout: {}\n };\n\n /*\n * Note: we do NOT validate template values, we just take what's in the\n * user inputs data and layout, not the validated values in fullData and\n * fullLayout. Even if we were to validate here, there's no guarantee that\n * these values would still be valid when applied to a new figure, which\n * may contain different trace modes, different axes, etc. So it's\n * important that when applying a template we still validate the template\n * values, rather than just using them as defaults.\n */\n\n data.forEach(function(trace) {\n // TODO: What if no style info is extracted for this trace. We may\n // not want an empty object as the null value.\n // TODO: allow transforms to contribute to templates?\n // as it stands they are ignored, which may be for the best...\n\n var traceTemplate = {};\n walkStyleKeys(trace, traceTemplate, getTraceInfo.bind(null, trace));\n\n var traceType = Lib.coerce(trace, {}, plotAttributes, 'type');\n var typeTemplates = template.data[traceType];\n if(!typeTemplates) typeTemplates = template.data[traceType] = [];\n typeTemplates.push(traceTemplate);\n });\n\n walkStyleKeys(layout, template.layout, getLayoutInfo.bind(null, layout));\n\n /*\n * Compose the new template with an existing one to the same effect\n *\n * NOTE: there's a possibility of slightly different behavior: if the plot\n * has an invalid value and the old template has a valid value for the same\n * attribute, the plot will use the old template value but this routine\n * will pull the invalid value (resulting in the original default).\n * In the general case it's not possible to solve this with a single value,\n * since valid options can be context-dependent. It could be solved with\n * a *list* of values, but that would be huge complexity for little gain.\n */\n delete template.layout.template;\n var oldTemplate = layout.template;\n if(isPlainObject(oldTemplate)) {\n var oldLayoutTemplate = oldTemplate.layout;\n\n var i, traceType, oldTypeTemplates, oldTypeLen, typeTemplates, typeLen;\n\n if(isPlainObject(oldLayoutTemplate)) {\n mergeTemplates(oldLayoutTemplate, template.layout);\n }\n var oldDataTemplate = oldTemplate.data;\n if(isPlainObject(oldDataTemplate)) {\n for(traceType in template.data) {\n oldTypeTemplates = oldDataTemplate[traceType];\n if(Array.isArray(oldTypeTemplates)) {\n typeTemplates = template.data[traceType];\n typeLen = typeTemplates.length;\n oldTypeLen = oldTypeTemplates.length;\n for(i = 0; i < typeLen; i++) {\n mergeTemplates(oldTypeTemplates[i % oldTypeLen], typeTemplates[i]);\n }\n for(i = typeLen; i < oldTypeLen; i++) {\n typeTemplates.push(Lib.extendDeep({}, oldTypeTemplates[i]));\n }\n }\n }\n for(traceType in oldDataTemplate) {\n if(!(traceType in template.data)) {\n template.data[traceType] = Lib.extendDeep([], oldDataTemplate[traceType]);\n }\n }\n }\n }\n\n return template;\n};\n\nfunction mergeTemplates(oldTemplate, newTemplate) {\n // we don't care about speed here, just make sure we have a totally\n // distinct object from the previous template\n oldTemplate = Lib.extendDeep({}, oldTemplate);\n\n // sort keys so we always get annotationdefaults before annotations etc\n // so arrayTemplater will work right\n var oldKeys = Object.keys(oldTemplate).sort();\n var i, j;\n\n function mergeOne(oldVal, newVal, key) {\n if(isPlainObject(newVal) && isPlainObject(oldVal)) {\n mergeTemplates(oldVal, newVal);\n } else if(Array.isArray(newVal) && Array.isArray(oldVal)) {\n // Note: omitted `inclusionAttr` from arrayTemplater here,\n // it's irrelevant as we only want the resulting `_template`.\n var templater = Template.arrayTemplater({_template: oldTemplate}, key);\n for(j = 0; j < newVal.length; j++) {\n var item = newVal[j];\n var oldItem = templater.newItem(item)._template;\n if(oldItem) mergeTemplates(oldItem, item);\n }\n var defaultItems = templater.defaultItems();\n for(j = 0; j < defaultItems.length; j++) newVal.push(defaultItems[j]._template);\n\n // templateitemname only applies to receiving plots\n for(j = 0; j < newVal.length; j++) delete newVal[j].templateitemname;\n }\n }\n\n for(i = 0; i < oldKeys.length; i++) {\n var key = oldKeys[i];\n var oldVal = oldTemplate[key];\n if(key in newTemplate) {\n mergeOne(oldVal, newTemplate[key], key);\n } else newTemplate[key] = oldVal;\n\n // if this is a base key from the old template (eg xaxis), look for\n // extended keys (eg xaxis2) in the new template to merge into\n if(getBaseKey(key) === key) {\n for(var key2 in newTemplate) {\n var baseKey2 = getBaseKey(key2);\n if(key2 !== baseKey2 && baseKey2 === key && !(key2 in oldTemplate)) {\n mergeOne(oldVal, newTemplate[key2], key);\n }\n }\n }\n }\n}\n\nfunction getBaseKey(key) {\n return key.replace(/[0-9]+$/, '');\n}\n\nfunction walkStyleKeys(parent, templateOut, getAttributeInfo, path, basePath) {\n var pathAttr = basePath && getAttributeInfo(basePath);\n for(var key in parent) {\n var child = parent[key];\n var nextPath = getNextPath(parent, key, path);\n var nextBasePath = getNextPath(parent, key, basePath);\n var attr = getAttributeInfo(nextBasePath);\n if(!attr) {\n var baseKey = getBaseKey(key);\n if(baseKey !== key) {\n nextBasePath = getNextPath(parent, baseKey, basePath);\n attr = getAttributeInfo(nextBasePath);\n }\n }\n\n // we'll get an attr if path starts with a valid part, then has an\n // invalid ending. Make sure we got all the way to the end.\n if(pathAttr && (pathAttr === attr)) continue;\n\n if(!attr || attr._noTemplating ||\n attr.valType === 'data_array' ||\n (attr.arrayOk && Array.isArray(child))\n ) {\n continue;\n }\n\n if(!attr.valType && isPlainObject(child)) {\n walkStyleKeys(child, templateOut, getAttributeInfo, nextPath, nextBasePath);\n } else if(attr._isLinkedToArray && Array.isArray(child)) {\n var dfltDone = false;\n var namedIndex = 0;\n var usedNames = {};\n for(var i = 0; i < child.length; i++) {\n var item = child[i];\n if(isPlainObject(item)) {\n var name = item.name;\n if(name) {\n if(!usedNames[name]) {\n // named array items: allow all attributes except data arrays\n walkStyleKeys(item, templateOut, getAttributeInfo,\n getNextPath(child, namedIndex, nextPath),\n getNextPath(child, namedIndex, nextBasePath));\n namedIndex++;\n usedNames[name] = 1;\n }\n } else if(!dfltDone) {\n var dfltKey = Template.arrayDefaultKey(key);\n var dfltPath = getNextPath(parent, dfltKey, path);\n\n // getAttributeInfo will fail if we try to use dfltKey directly.\n // Instead put this item into the next array element, then\n // pull it out and move it to dfltKey.\n var pathInArray = getNextPath(child, namedIndex, nextPath);\n walkStyleKeys(item, templateOut, getAttributeInfo, pathInArray,\n getNextPath(child, namedIndex, nextBasePath));\n var itemPropInArray = Lib.nestedProperty(templateOut, pathInArray);\n var dfltProp = Lib.nestedProperty(templateOut, dfltPath);\n dfltProp.set(itemPropInArray.get());\n itemPropInArray.set(null);\n\n dfltDone = true;\n }\n }\n }\n } else {\n var templateProp = Lib.nestedProperty(templateOut, nextPath);\n templateProp.set(child);\n }\n }\n}\n\nfunction getLayoutInfo(layout, path) {\n return PlotSchema.getLayoutValObject(\n layout, Lib.nestedProperty({}, path).parts\n );\n}\n\nfunction getTraceInfo(trace, path) {\n return PlotSchema.getTraceValObject(\n trace, Lib.nestedProperty({}, path).parts\n );\n}\n\nfunction getNextPath(parent, key, path) {\n var nextPath;\n if(!path) nextPath = key;\n else if(Array.isArray(parent)) nextPath = path + '[' + key + ']';\n else nextPath = path + '.' + key;\n\n return nextPath;\n}\n\n/**\n * validateTemplate: Test for consistency between the given figure and\n * a template, either already included in the figure or given separately.\n * Note that not every issue we identify here is necessarily a problem,\n * it depends on what you're using the template for.\n *\n * @param {object|DOM element} figure: the plot, with {data, layout} members,\n * to test the template against\n * @param {Optional(object)} template: the template, with its own {data, layout},\n * to test. If omitted, we will look for a template already attached as the\n * plot's `layout.template` attribute.\n *\n * @returns {array} array of error objects each containing:\n * - {string} code\n * error code ('missing', 'unused', 'reused', 'noLayout', 'noData')\n * - {string} msg\n * a full readable description of the issue.\n */\nexports.validateTemplate = function(figureIn, template) {\n var figure = Lib.extendDeep({}, {\n _context: dfltConfig,\n data: figureIn.data,\n layout: figureIn.layout\n });\n var layout = figure.layout || {};\n if(!isPlainObject(template)) template = layout.template || {};\n var layoutTemplate = template.layout;\n var dataTemplate = template.data;\n var errorList = [];\n\n figure.layout = layout;\n figure.layout.template = template;\n Plots.supplyDefaults(figure);\n\n var fullLayout = figure._fullLayout;\n var fullData = figure._fullData;\n\n var layoutPaths = {};\n function crawlLayoutForContainers(obj, paths) {\n for(var key in obj) {\n if(key.charAt(0) !== '_' && isPlainObject(obj[key])) {\n var baseKey = getBaseKey(key);\n var nextPaths = [];\n var i;\n for(i = 0; i < paths.length; i++) {\n nextPaths.push(getNextPath(obj, key, paths[i]));\n if(baseKey !== key) nextPaths.push(getNextPath(obj, baseKey, paths[i]));\n }\n for(i = 0; i < nextPaths.length; i++) {\n layoutPaths[nextPaths[i]] = 1;\n }\n crawlLayoutForContainers(obj[key], nextPaths);\n }\n }\n }\n\n function crawlLayoutTemplateForContainers(obj, path) {\n for(var key in obj) {\n if(key.indexOf('defaults') === -1 && isPlainObject(obj[key])) {\n var nextPath = getNextPath(obj, key, path);\n if(layoutPaths[nextPath]) {\n crawlLayoutTemplateForContainers(obj[key], nextPath);\n } else {\n errorList.push({code: 'unused', path: nextPath});\n }\n }\n }\n }\n\n if(!isPlainObject(layoutTemplate)) {\n errorList.push({code: 'layout'});\n } else {\n crawlLayoutForContainers(fullLayout, ['layout']);\n crawlLayoutTemplateForContainers(layoutTemplate, 'layout');\n }\n\n if(!isPlainObject(dataTemplate)) {\n errorList.push({code: 'data'});\n } else {\n var typeCount = {};\n var traceType;\n for(var i = 0; i < fullData.length; i++) {\n var fullTrace = fullData[i];\n traceType = fullTrace.type;\n typeCount[traceType] = (typeCount[traceType] || 0) + 1;\n if(!fullTrace._fullInput._template) {\n // this takes care of the case of traceType in the data but not\n // the template\n errorList.push({\n code: 'missing',\n index: fullTrace._fullInput.index,\n traceType: traceType\n });\n }\n }\n for(traceType in dataTemplate) {\n var templateCount = dataTemplate[traceType].length;\n var dataCount = typeCount[traceType] || 0;\n if(templateCount > dataCount) {\n errorList.push({\n code: 'unused',\n traceType: traceType,\n templateCount: templateCount,\n dataCount: dataCount\n });\n } else if(dataCount > templateCount) {\n errorList.push({\n code: 'reused',\n traceType: traceType,\n templateCount: templateCount,\n dataCount: dataCount\n });\n }\n }\n }\n\n // _template: false is when someone tried to modify an array item\n // but there was no template with matching name\n function crawlForMissingTemplates(obj, path) {\n for(var key in obj) {\n if(key.charAt(0) === '_') continue;\n var val = obj[key];\n var nextPath = getNextPath(obj, key, path);\n if(isPlainObject(val)) {\n if(Array.isArray(obj) && val._template === false && val.templateitemname) {\n errorList.push({\n code: 'missing',\n path: nextPath,\n templateitemname: val.templateitemname\n });\n }\n crawlForMissingTemplates(val, nextPath);\n } else if(Array.isArray(val) && hasPlainObject(val)) {\n crawlForMissingTemplates(val, nextPath);\n }\n }\n }\n crawlForMissingTemplates({data: fullData, layout: fullLayout}, '');\n\n if(errorList.length) return errorList.map(format);\n};\n\nfunction hasPlainObject(arr) {\n for(var i = 0; i < arr.length; i++) {\n if(isPlainObject(arr[i])) return true;\n }\n}\n\nfunction format(opts) {\n var msg;\n switch(opts.code) {\n case 'data':\n msg = 'The template has no key data.';\n break;\n case 'layout':\n msg = 'The template has no key layout.';\n break;\n case 'missing':\n if(opts.path) {\n msg = 'There are no templates for item ' + opts.path +\n ' with name ' + opts.templateitemname;\n } else {\n msg = 'There are no templates for trace ' + opts.index +\n ', of type ' + opts.traceType + '.';\n }\n break;\n case 'unused':\n if(opts.path) {\n msg = 'The template item at ' + opts.path +\n ' was not used in constructing the plot.';\n } else if(opts.dataCount) {\n msg = 'Some of the templates of type ' + opts.traceType +\n ' were not used. The template has ' + opts.templateCount +\n ' traces, the data only has ' + opts.dataCount +\n ' of this type.';\n } else {\n msg = 'The template has ' + opts.templateCount +\n ' traces of type ' + opts.traceType +\n ' but there are none in the data.';\n }\n break;\n case 'reused':\n msg = 'Some of the templates of type ' + opts.traceType +\n ' were used more than once. The template has ' +\n opts.templateCount + ' traces, the data has ' +\n opts.dataCount + ' of this type.';\n break;\n }\n opts.msg = msg;\n\n return opts;\n}\n\n},{\"../lib\":503,\"../plots/attributes\":550,\"../plots/plots\":619,\"./plot_config\":541,\"./plot_schema\":542,\"./plot_template\":543}],546:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar plotApi = _dereq_('./plot_api');\nvar plots = _dereq_('../plots/plots');\nvar Lib = _dereq_('../lib');\n\nvar helpers = _dereq_('../snapshot/helpers');\nvar toSVG = _dereq_('../snapshot/tosvg');\nvar svgToImg = _dereq_('../snapshot/svgtoimg');\nvar version = _dereq_('../version').version;\n\nvar attrs = {\n format: {\n valType: 'enumerated',\n values: ['png', 'jpeg', 'webp', 'svg', 'full-json'],\n dflt: 'png',\n },\n width: {\n valType: 'number',\n min: 1,\n },\n height: {\n valType: 'number',\n min: 1,\n },\n scale: {\n valType: 'number',\n min: 0,\n dflt: 1,\n },\n setBackground: {\n valType: 'any',\n dflt: false,\n },\n imageDataOnly: {\n valType: 'boolean',\n dflt: false,\n }\n};\n\n/** Plotly.toImage\n *\n * @param {object | string | HTML div} gd\n * can either be a data/layout/config object\n * or an existing graph
\n * or an id to an existing graph
\n * @param {object} opts (see above)\n * @return {promise}\n */\nfunction toImage(gd, opts) {\n opts = opts || {};\n\n var data;\n var layout;\n var config;\n var fullLayout;\n\n if(Lib.isPlainObject(gd)) {\n data = gd.data || [];\n layout = gd.layout || {};\n config = gd.config || {};\n fullLayout = {};\n } else {\n gd = Lib.getGraphDiv(gd);\n data = Lib.extendDeep([], gd.data);\n layout = Lib.extendDeep({}, gd.layout);\n config = gd._context;\n fullLayout = gd._fullLayout || {};\n }\n\n function isImpliedOrValid(attr) {\n return !(attr in opts) || Lib.validate(opts[attr], attrs[attr]);\n }\n\n if((!isImpliedOrValid('width') && opts.width !== null) ||\n (!isImpliedOrValid('height') && opts.height !== null)) {\n throw new Error('Height and width should be pixel values.');\n }\n\n if(!isImpliedOrValid('format')) {\n throw new Error('Export format is not ' + Lib.join2(attrs.format.values, ', ', ' or ') + '.');\n }\n\n var fullOpts = {};\n\n function coerce(attr, dflt) {\n return Lib.coerce(opts, fullOpts, attrs, attr, dflt);\n }\n\n var format = coerce('format');\n var width = coerce('width');\n var height = coerce('height');\n var scale = coerce('scale');\n var setBackground = coerce('setBackground');\n var imageDataOnly = coerce('imageDataOnly');\n\n // put the cloned div somewhere off screen before attaching to DOM\n var clonedGd = document.createElement('div');\n clonedGd.style.position = 'absolute';\n clonedGd.style.left = '-5000px';\n document.body.appendChild(clonedGd);\n\n // extend layout with image options\n var layoutImage = Lib.extendFlat({}, layout);\n if(width) {\n layoutImage.width = width;\n } else if(opts.width === null && isNumeric(fullLayout.width)) {\n layoutImage.width = fullLayout.width;\n }\n if(height) {\n layoutImage.height = height;\n } else if(opts.height === null && isNumeric(fullLayout.height)) {\n layoutImage.height = fullLayout.height;\n }\n\n // extend config for static plot\n var configImage = Lib.extendFlat({}, config, {\n _exportedPlot: true,\n staticPlot: true,\n setBackground: setBackground\n });\n\n var redrawFunc = helpers.getRedrawFunc(clonedGd);\n\n function wait() {\n return new Promise(function(resolve) {\n setTimeout(resolve, helpers.getDelay(clonedGd._fullLayout));\n });\n }\n\n function convert() {\n return new Promise(function(resolve, reject) {\n var svg = toSVG(clonedGd, format, scale);\n var width = clonedGd._fullLayout.width;\n var height = clonedGd._fullLayout.height;\n\n function cleanup() {\n plotApi.purge(clonedGd);\n document.body.removeChild(clonedGd);\n }\n\n if(format === 'full-json') {\n var json = plots.graphJson(clonedGd, false, 'keepdata', 'object', true, true);\n json.version = version;\n json = JSON.stringify(json);\n cleanup();\n if(imageDataOnly) {\n return resolve(json);\n } else {\n return resolve(helpers.encodeJSON(json));\n }\n }\n\n cleanup();\n\n if(format === 'svg') {\n if(imageDataOnly) {\n return resolve(svg);\n } else {\n return resolve(helpers.encodeSVG(svg));\n }\n }\n\n var canvas = document.createElement('canvas');\n canvas.id = Lib.randstr();\n\n svgToImg({\n format: format,\n width: width,\n height: height,\n scale: scale,\n canvas: canvas,\n svg: svg,\n // ask svgToImg to return a Promise\n // rather than EventEmitter\n // leave EventEmitter for backward\n // compatibility\n promise: true\n })\n .then(resolve)\n .catch(reject);\n });\n }\n\n function urlToImageData(url) {\n if(imageDataOnly) {\n return url.replace(helpers.IMAGE_URL_PREFIX, '');\n } else {\n return url;\n }\n }\n\n return new Promise(function(resolve, reject) {\n plotApi.newPlot(clonedGd, data, layoutImage, configImage)\n .then(redrawFunc)\n .then(wait)\n .then(convert)\n .then(function(url) { resolve(urlToImageData(url)); })\n .catch(function(err) { reject(err); });\n });\n}\n\nmodule.exports = toImage;\n\n},{\"../lib\":503,\"../plots/plots\":619,\"../snapshot/helpers\":642,\"../snapshot/svgtoimg\":644,\"../snapshot/tosvg\":646,\"../version\":1118,\"./plot_api\":540,\"fast-isnumeric\":190}],547:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../lib');\nvar Plots = _dereq_('../plots/plots');\nvar PlotSchema = _dereq_('./plot_schema');\nvar dfltConfig = _dereq_('./plot_config').dfltConfig;\n\nvar isPlainObject = Lib.isPlainObject;\nvar isArray = Array.isArray;\nvar isArrayOrTypedArray = Lib.isArrayOrTypedArray;\n\n/**\n * Validate a data array and layout object.\n *\n * @param {array} data\n * @param {object} layout\n *\n * @return {array} array of error objects each containing:\n * - {string} code\n * error code ('object', 'array', 'schema', 'unused', 'invisible' or 'value')\n * - {string} container\n * container where the error occurs ('data' or 'layout')\n * - {number} trace\n * trace index of the 'data' container where the error occurs\n * - {array} path\n * nested path to the key that causes the error\n * - {string} astr\n * attribute string variant of 'path' compatible with Plotly.restyle and\n * Plotly.relayout.\n * - {string} msg\n * error message (shown in console in logger config argument is enable)\n */\nmodule.exports = function validate(data, layout) {\n if(data === undefined) data = [];\n if(layout === undefined) layout = {};\n\n var schema = PlotSchema.get();\n var errorList = [];\n var gd = {_context: Lib.extendFlat({}, dfltConfig)};\n\n var dataIn, layoutIn;\n\n if(isArray(data)) {\n gd.data = Lib.extendDeep([], data);\n dataIn = data;\n } else {\n gd.data = [];\n dataIn = [];\n errorList.push(format('array', 'data'));\n }\n\n if(isPlainObject(layout)) {\n gd.layout = Lib.extendDeep({}, layout);\n layoutIn = layout;\n } else {\n gd.layout = {};\n layoutIn = {};\n if(arguments.length > 1) {\n errorList.push(format('object', 'layout'));\n }\n }\n\n // N.B. dataIn and layoutIn are in general not the same as\n // gd.data and gd.layout after supplyDefaults as some attributes\n // in gd.data and gd.layout (still) get mutated during this step.\n\n Plots.supplyDefaults(gd);\n\n var dataOut = gd._fullData;\n var len = dataIn.length;\n\n for(var i = 0; i < len; i++) {\n var traceIn = dataIn[i];\n var base = ['data', i];\n\n if(!isPlainObject(traceIn)) {\n errorList.push(format('object', base));\n continue;\n }\n\n var traceOut = dataOut[i];\n var traceType = traceOut.type;\n var traceSchema = schema.traces[traceType].attributes;\n\n // PlotSchema does something fancy with trace 'type', reset it here\n // to make the trace schema compatible with Lib.validate.\n traceSchema.type = {\n valType: 'enumerated',\n values: [traceType]\n };\n\n if(traceOut.visible === false && traceIn.visible !== false) {\n errorList.push(format('invisible', base));\n }\n\n crawl(traceIn, traceOut, traceSchema, errorList, base);\n\n var transformsIn = traceIn.transforms;\n var transformsOut = traceOut.transforms;\n\n if(transformsIn) {\n if(!isArray(transformsIn)) {\n errorList.push(format('array', base, ['transforms']));\n }\n\n base.push('transforms');\n\n for(var j = 0; j < transformsIn.length; j++) {\n var path = ['transforms', j];\n var transformType = transformsIn[j].type;\n\n if(!isPlainObject(transformsIn[j])) {\n errorList.push(format('object', base, path));\n continue;\n }\n\n var transformSchema = schema.transforms[transformType] ?\n schema.transforms[transformType].attributes :\n {};\n\n // add 'type' to transform schema to validate the transform type\n transformSchema.type = {\n valType: 'enumerated',\n values: Object.keys(schema.transforms)\n };\n\n crawl(transformsIn[j], transformsOut[j], transformSchema, errorList, base, path);\n }\n }\n }\n\n var layoutOut = gd._fullLayout;\n var layoutSchema = fillLayoutSchema(schema, dataOut);\n\n crawl(layoutIn, layoutOut, layoutSchema, errorList, 'layout');\n\n // return undefined if no validation errors were found\n return (errorList.length === 0) ? void(0) : errorList;\n};\n\nfunction crawl(objIn, objOut, schema, list, base, path) {\n path = path || [];\n\n var keys = Object.keys(objIn);\n\n for(var i = 0; i < keys.length; i++) {\n var k = keys[i];\n\n // transforms are handled separately\n if(k === 'transforms') continue;\n\n var p = path.slice();\n p.push(k);\n\n var valIn = objIn[k];\n var valOut = objOut[k];\n\n var nestedSchema = getNestedSchema(schema, k);\n var nestedValType = (nestedSchema || {}).valType;\n var isInfoArray = nestedValType === 'info_array';\n var isColorscale = nestedValType === 'colorscale';\n var items = (nestedSchema || {}).items;\n\n if(!isInSchema(schema, k)) {\n list.push(format('schema', base, p));\n } else if(isPlainObject(valIn) && isPlainObject(valOut) && nestedValType !== 'any') {\n crawl(valIn, valOut, nestedSchema, list, base, p);\n } else if(isInfoArray && isArray(valIn)) {\n if(valIn.length > valOut.length) {\n list.push(format('unused', base, p.concat(valOut.length)));\n }\n var len = valOut.length;\n var arrayItems = Array.isArray(items);\n if(arrayItems) len = Math.min(len, items.length);\n var m, n, item, valInPart, valOutPart;\n if(nestedSchema.dimensions === 2) {\n for(n = 0; n < len; n++) {\n if(isArray(valIn[n])) {\n if(valIn[n].length > valOut[n].length) {\n list.push(format('unused', base, p.concat(n, valOut[n].length)));\n }\n var len2 = valOut[n].length;\n for(m = 0; m < (arrayItems ? Math.min(len2, items[n].length) : len2); m++) {\n item = arrayItems ? items[n][m] : items;\n valInPart = valIn[n][m];\n valOutPart = valOut[n][m];\n if(!Lib.validate(valInPart, item)) {\n list.push(format('value', base, p.concat(n, m), valInPart));\n } else if(valOutPart !== valInPart && valOutPart !== +valInPart) {\n list.push(format('dynamic', base, p.concat(n, m), valInPart, valOutPart));\n }\n }\n } else {\n list.push(format('array', base, p.concat(n), valIn[n]));\n }\n }\n } else {\n for(n = 0; n < len; n++) {\n item = arrayItems ? items[n] : items;\n valInPart = valIn[n];\n valOutPart = valOut[n];\n if(!Lib.validate(valInPart, item)) {\n list.push(format('value', base, p.concat(n), valInPart));\n } else if(valOutPart !== valInPart && valOutPart !== +valInPart) {\n list.push(format('dynamic', base, p.concat(n), valInPart, valOutPart));\n }\n }\n }\n } else if(nestedSchema.items && !isInfoArray && isArray(valIn)) {\n var _nestedSchema = items[Object.keys(items)[0]];\n var indexList = [];\n\n var j, _p;\n\n // loop over valOut items while keeping track of their\n // corresponding input container index (given by _index)\n for(j = 0; j < valOut.length; j++) {\n var _index = valOut[j]._index || j;\n\n _p = p.slice();\n _p.push(_index);\n\n if(isPlainObject(valIn[_index]) && isPlainObject(valOut[j])) {\n indexList.push(_index);\n var valInj = valIn[_index];\n var valOutj = valOut[j];\n if(isPlainObject(valInj) && valInj.visible !== false && valOutj.visible === false) {\n list.push(format('invisible', base, _p));\n } else crawl(valInj, valOutj, _nestedSchema, list, base, _p);\n }\n }\n\n // loop over valIn to determine where it went wrong for some items\n for(j = 0; j < valIn.length; j++) {\n _p = p.slice();\n _p.push(j);\n\n if(!isPlainObject(valIn[j])) {\n list.push(format('object', base, _p, valIn[j]));\n } else if(indexList.indexOf(j) === -1) {\n list.push(format('unused', base, _p));\n }\n }\n } else if(!isPlainObject(valIn) && isPlainObject(valOut)) {\n list.push(format('object', base, p, valIn));\n } else if(!isArrayOrTypedArray(valIn) && isArrayOrTypedArray(valOut) && !isInfoArray && !isColorscale) {\n list.push(format('array', base, p, valIn));\n } else if(!(k in objOut)) {\n list.push(format('unused', base, p, valIn));\n } else if(!Lib.validate(valIn, nestedSchema)) {\n list.push(format('value', base, p, valIn));\n } else if(nestedSchema.valType === 'enumerated' &&\n ((nestedSchema.coerceNumber && valIn !== +valOut) || valIn !== valOut)\n ) {\n list.push(format('dynamic', base, p, valIn, valOut));\n }\n }\n\n return list;\n}\n\n// the 'full' layout schema depends on the traces types presents\nfunction fillLayoutSchema(schema, dataOut) {\n var layoutSchema = schema.layout.layoutAttributes;\n\n for(var i = 0; i < dataOut.length; i++) {\n var traceOut = dataOut[i];\n var traceSchema = schema.traces[traceOut.type];\n var traceLayoutAttr = traceSchema.layoutAttributes;\n\n if(traceLayoutAttr) {\n if(traceOut.subplot) {\n Lib.extendFlat(layoutSchema[traceSchema.attributes.subplot.dflt], traceLayoutAttr);\n } else {\n Lib.extendFlat(layoutSchema, traceLayoutAttr);\n }\n }\n }\n\n return layoutSchema;\n}\n\n// validation error codes\nvar code2msgFunc = {\n object: function(base, astr) {\n var prefix;\n\n if(base === 'layout' && astr === '') prefix = 'The layout argument';\n else if(base[0] === 'data' && astr === '') {\n prefix = 'Trace ' + base[1] + ' in the data argument';\n } else prefix = inBase(base) + 'key ' + astr;\n\n return prefix + ' must be linked to an object container';\n },\n array: function(base, astr) {\n var prefix;\n\n if(base === 'data') prefix = 'The data argument';\n else prefix = inBase(base) + 'key ' + astr;\n\n return prefix + ' must be linked to an array container';\n },\n schema: function(base, astr) {\n return inBase(base) + 'key ' + astr + ' is not part of the schema';\n },\n unused: function(base, astr, valIn) {\n var target = isPlainObject(valIn) ? 'container' : 'key';\n\n return inBase(base) + target + ' ' + astr + ' did not get coerced';\n },\n dynamic: function(base, astr, valIn, valOut) {\n return [\n inBase(base) + 'key',\n astr,\n '(set to \\'' + valIn + '\\')',\n 'got reset to',\n '\\'' + valOut + '\\'',\n 'during defaults.'\n ].join(' ');\n },\n invisible: function(base, astr) {\n return (\n astr ? (inBase(base) + 'item ' + astr) : ('Trace ' + base[1])\n ) + ' got defaulted to be not visible';\n },\n value: function(base, astr, valIn) {\n return [\n inBase(base) + 'key ' + astr,\n 'is set to an invalid value (' + valIn + ')'\n ].join(' ');\n }\n};\n\nfunction inBase(base) {\n if(isArray(base)) return 'In data trace ' + base[1] + ', ';\n\n return 'In ' + base + ', ';\n}\n\nfunction format(code, base, path, valIn, valOut) {\n path = path || '';\n\n var container, trace;\n\n // container is either 'data' or 'layout\n // trace is the trace index if 'data', null otherwise\n\n if(isArray(base)) {\n container = base[0];\n trace = base[1];\n } else {\n container = base;\n trace = null;\n }\n\n var astr = convertPathToAttributeString(path);\n var msg = code2msgFunc[code](base, astr, valIn, valOut);\n\n // log to console if logger config option is enabled\n Lib.log(msg);\n\n return {\n code: code,\n container: container,\n trace: trace,\n path: path,\n astr: astr,\n msg: msg\n };\n}\n\nfunction isInSchema(schema, key) {\n var parts = splitKey(key);\n var keyMinusId = parts.keyMinusId;\n var id = parts.id;\n\n if((keyMinusId in schema) && schema[keyMinusId]._isSubplotObj && id) {\n return true;\n }\n\n return (key in schema);\n}\n\nfunction getNestedSchema(schema, key) {\n if(key in schema) return schema[key];\n\n var parts = splitKey(key);\n\n return schema[parts.keyMinusId];\n}\n\nvar idRegex = Lib.counterRegex('([a-z]+)');\n\nfunction splitKey(key) {\n var idMatch = key.match(idRegex);\n\n return {\n keyMinusId: idMatch && idMatch[1],\n id: idMatch && idMatch[2]\n };\n}\n\nfunction convertPathToAttributeString(path) {\n if(!isArray(path)) return String(path);\n\n var astr = '';\n\n for(var i = 0; i < path.length; i++) {\n var p = path[i];\n\n if(typeof p === 'number') {\n astr = astr.substr(0, astr.length - 1) + '[' + p + ']';\n } else {\n astr += p;\n }\n\n if(i < path.length - 1) astr += '.';\n }\n\n return astr;\n}\n\n},{\"../lib\":503,\"../plots/plots\":619,\"./plot_config\":541,\"./plot_schema\":542}],548:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n mode: {\n valType: 'enumerated',\n dflt: 'afterall',\n values: ['immediate', 'next', 'afterall'],\n },\n direction: {\n valType: 'enumerated',\n values: ['forward', 'reverse'],\n dflt: 'forward',\n },\n fromcurrent: {\n valType: 'boolean',\n dflt: false,\n },\n frame: {\n duration: {\n valType: 'number',\n min: 0,\n dflt: 500,\n },\n redraw: {\n valType: 'boolean',\n dflt: true,\n },\n },\n transition: {\n duration: {\n valType: 'number',\n min: 0,\n dflt: 500,\n editType: 'none',\n },\n easing: {\n valType: 'enumerated',\n dflt: 'cubic-in-out',\n values: [\n 'linear',\n 'quad',\n 'cubic',\n 'sin',\n 'exp',\n 'circle',\n 'elastic',\n 'back',\n 'bounce',\n 'linear-in',\n 'quad-in',\n 'cubic-in',\n 'sin-in',\n 'exp-in',\n 'circle-in',\n 'elastic-in',\n 'back-in',\n 'bounce-in',\n 'linear-out',\n 'quad-out',\n 'cubic-out',\n 'sin-out',\n 'exp-out',\n 'circle-out',\n 'elastic-out',\n 'back-out',\n 'bounce-out',\n 'linear-in-out',\n 'quad-in-out',\n 'cubic-in-out',\n 'sin-in-out',\n 'exp-in-out',\n 'circle-in-out',\n 'elastic-in-out',\n 'back-in-out',\n 'bounce-in-out'\n ],\n editType: 'none',\n },\n ordering: {\n valType: 'enumerated',\n values: ['layout first', 'traces first'],\n dflt: 'layout first',\n editType: 'none',\n }\n }\n};\n\n},{}],549:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../lib');\nvar Template = _dereq_('../plot_api/plot_template');\n\n/** Convenience wrapper for making array container logic DRY and consistent\n *\n * @param {object} parentObjIn\n * user input object where the container in question is linked\n * (i.e. either a user trace object or the user layout object)\n *\n * @param {object} parentObjOut\n * full object where the coerced container will be linked\n * (i.e. either a full trace object or the full layout object)\n *\n * @param {object} opts\n * options object:\n * - name {string}\n * name of the key linking the container in question\n * - inclusionAttr {string}\n * name of the item attribute for inclusion/exclusion. Default is 'visible'.\n * Since inclusion is true, use eg 'enabled' instead of 'disabled'.\n * - handleItemDefaults {function}\n * defaults method to be called on each item in the array container in question\n *\n * Its arguments are:\n * - itemIn {object} item in user layout\n * - itemOut {object} item in full layout\n * - parentObj {object} (as in closure)\n * - opts {object} (as in closure)\n * N.B.\n *\n * - opts is passed to handleItemDefaults so it can also store\n * links to supplementary data (e.g. fullData for layout components)\n *\n */\nmodule.exports = function handleArrayContainerDefaults(parentObjIn, parentObjOut, opts) {\n var name = opts.name;\n var inclusionAttr = opts.inclusionAttr || 'visible';\n\n var previousContOut = parentObjOut[name];\n\n var contIn = Lib.isArrayOrTypedArray(parentObjIn[name]) ? parentObjIn[name] : [];\n var contOut = parentObjOut[name] = [];\n var templater = Template.arrayTemplater(parentObjOut, name, inclusionAttr);\n var i, itemOut;\n\n for(i = 0; i < contIn.length; i++) {\n var itemIn = contIn[i];\n\n if(!Lib.isPlainObject(itemIn)) {\n itemOut = templater.newItem({});\n itemOut[inclusionAttr] = false;\n } else {\n itemOut = templater.newItem(itemIn);\n }\n\n itemOut._index = i;\n\n if(itemOut[inclusionAttr] !== false) {\n opts.handleItemDefaults(itemIn, itemOut, parentObjOut, opts);\n }\n\n contOut.push(itemOut);\n }\n\n var defaultItems = templater.defaultItems();\n for(i = 0; i < defaultItems.length; i++) {\n itemOut = defaultItems[i];\n itemOut._index = contOut.length;\n opts.handleItemDefaults({}, itemOut, parentObjOut, opts, {});\n contOut.push(itemOut);\n }\n\n // in case this array gets its defaults rebuilt independent of the whole layout,\n // relink the private keys just for this array.\n if(Lib.isArrayOrTypedArray(previousContOut)) {\n var len = Math.min(previousContOut.length, contOut.length);\n for(i = 0; i < len; i++) {\n Lib.relinkPrivateKeys(contOut[i], previousContOut[i]);\n }\n }\n\n return contOut;\n};\n\n},{\"../lib\":503,\"../plot_api/plot_template\":543}],550:[function(_dereq_,module,exports){\n'use strict';\n\nvar fontAttrs = _dereq_('./font_attributes');\nvar fxAttrs = _dereq_('../components/fx/attributes');\n\nmodule.exports = {\n type: {\n valType: 'enumerated',\n values: [], // listed dynamically\n dflt: 'scatter',\n editType: 'calc+clearAxisTypes',\n _noTemplating: true // we handle this at a higher level\n },\n visible: {\n valType: 'enumerated',\n values: [true, false, 'legendonly'],\n dflt: true,\n editType: 'calc',\n },\n showlegend: {\n valType: 'boolean',\n dflt: true,\n editType: 'style',\n },\n legendgroup: {\n valType: 'string',\n dflt: '',\n editType: 'style',\n },\n legendgrouptitle: {\n text: {\n valType: 'string',\n dflt: '',\n editType: 'style',\n },\n font: fontAttrs({\n editType: 'style',\n }),\n editType: 'style',\n },\n legendrank: {\n valType: 'number',\n dflt: 1000,\n editType: 'style',\n },\n opacity: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 1,\n editType: 'style',\n },\n name: {\n valType: 'string',\n editType: 'style',\n },\n uid: {\n valType: 'string',\n editType: 'plot',\n anim: true,\n },\n ids: {\n valType: 'data_array',\n editType: 'calc',\n anim: true,\n },\n customdata: {\n valType: 'data_array',\n editType: 'calc',\n },\n meta: {\n valType: 'any',\n arrayOk: true,\n editType: 'plot',\n },\n\n // N.B. these cannot be 'data_array' as they do not have the same length as\n // other data arrays and arrayOk attributes in general\n //\n // Maybe add another valType:\n // https://github.com/plotly/plotly.js/issues/1894\n selectedpoints: {\n valType: 'any',\n editType: 'calc',\n },\n\n hoverinfo: {\n valType: 'flaglist',\n flags: ['x', 'y', 'z', 'text', 'name'],\n extras: ['all', 'none', 'skip'],\n arrayOk: true,\n dflt: 'all',\n editType: 'none',\n },\n hoverlabel: fxAttrs.hoverlabel,\n stream: {\n token: {\n valType: 'string',\n noBlank: true,\n strict: true,\n editType: 'calc',\n },\n maxpoints: {\n valType: 'number',\n min: 0,\n max: 10000,\n dflt: 500,\n editType: 'calc',\n },\n editType: 'calc'\n },\n transforms: {\n _isLinkedToArray: 'transform',\n editType: 'calc',\n },\n uirevision: {\n valType: 'any',\n editType: 'none',\n }\n};\n\n},{\"../components/fx/attributes\":397,\"./font_attributes\":585}],551:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar Lib = _dereq_('../../lib');\nvar dateTime2ms = Lib.dateTime2ms;\nvar incrementMonth = Lib.incrementMonth;\nvar constants = _dereq_('../../constants/numerical');\nvar ONEAVGMONTH = constants.ONEAVGMONTH;\n\nmodule.exports = function alignPeriod(trace, ax, axLetter, vals) {\n if(ax.type !== 'date') return {vals: vals};\n\n var alignment = trace[axLetter + 'periodalignment'];\n if(!alignment) return {vals: vals};\n\n var period = trace[axLetter + 'period'];\n var mPeriod;\n if(isNumeric(period)) {\n period = +period;\n if(period <= 0) return {vals: vals};\n } else if(typeof period === 'string' && period.charAt(0) === 'M') {\n var n = +(period.substring(1));\n if(n > 0 && Math.round(n) === n) {\n mPeriod = n;\n } else return {vals: vals};\n }\n\n var calendar = ax.calendar;\n\n var isStart = 'start' === alignment;\n // var isMiddle = 'middle' === alignment;\n var isEnd = 'end' === alignment;\n\n var period0 = trace[axLetter + 'period0'];\n var base = dateTime2ms(period0, calendar) || 0;\n\n var newVals = [];\n var starts = [];\n var ends = [];\n\n var len = vals.length;\n for(var i = 0; i < len; i++) {\n var v = vals[i];\n\n var nEstimated, startTime, endTime;\n if(mPeriod) {\n // guess at how many periods away from base we are\n nEstimated = Math.round((v - base) / (mPeriod * ONEAVGMONTH));\n endTime = incrementMonth(base, mPeriod * nEstimated, calendar);\n\n // iterate to get the exact bounds before and after v\n // there may be ways to make this faster, but most of the time\n // we'll only execute each loop zero or one time.\n while(endTime > v) {\n endTime = incrementMonth(endTime, -mPeriod, calendar);\n }\n while(endTime <= v) {\n endTime = incrementMonth(endTime, mPeriod, calendar);\n }\n\n // now we know endTime is the boundary immediately after v\n // so startTime is obtained by incrementing backward one period.\n startTime = incrementMonth(endTime, -mPeriod, calendar);\n } else { // case of ms\n nEstimated = Math.round((v - base) / period);\n endTime = base + nEstimated * period;\n\n while(endTime > v) {\n endTime -= period;\n }\n while(endTime <= v) {\n endTime += period;\n }\n\n startTime = endTime - period;\n }\n\n newVals[i] = (\n isStart ? startTime :\n isEnd ? endTime :\n (startTime + endTime) / 2\n );\n\n starts[i] = startTime;\n ends[i] = endTime;\n }\n\n return {\n vals: newVals,\n starts: starts,\n ends: ends\n };\n};\n\n},{\"../../constants/numerical\":479,\"../../lib\":503,\"fast-isnumeric\":190}],552:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = {\n xaxis: {\n valType: 'subplotid',\n dflt: 'x',\n editType: 'calc+clearAxisTypes',\n },\n yaxis: {\n valType: 'subplotid',\n dflt: 'y',\n editType: 'calc+clearAxisTypes',\n }\n};\n\n},{}],553:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Lib = _dereq_('../../lib');\nvar FP_SAFE = _dereq_('../../constants/numerical').FP_SAFE;\nvar Registry = _dereq_('../../registry');\nvar Drawing = _dereq_('../../components/drawing');\n\nvar axIds = _dereq_('./axis_ids');\nvar getFromId = axIds.getFromId;\nvar isLinked = axIds.isLinked;\n\nmodule.exports = {\n getAutoRange: getAutoRange,\n makePadFn: makePadFn,\n doAutoRange: doAutoRange,\n findExtremes: findExtremes,\n concatExtremes: concatExtremes\n};\n\n/**\n * getAutoRange\n *\n * Collects all _extremes values corresponding to a given axis\n * and computes its auto range.\n *\n * Note that getAutoRange uses return values from findExtremes.\n *\n * @param {object} gd:\n * graph div object with filled-in fullData and fullLayout, in particular\n * with filled-in '_extremes' containers:\n * {\n * val: calcdata value,\n * pad: extra pixels beyond this value,\n * extrapad: bool, does this point want 5% extra padding\n * }\n * @param {object} ax:\n * full axis object, in particular with filled-in '_traceIndices'\n * and '_annIndices' / '_shapeIndices' if applicable\n * @return {array}\n * an array of [min, max]. These are calcdata for log and category axes\n * and data for linear and date axes.\n *\n * TODO: we want to change log to data as well, but it's hard to do this\n * maintaining backward compatibility. category will always have to use calcdata\n * though, because otherwise values between categories (or outside all categories)\n * would be impossible.\n */\nfunction getAutoRange(gd, ax) {\n var i, j;\n var newRange = [];\n\n var fullLayout = gd._fullLayout;\n var getPadMin = makePadFn(fullLayout, ax, 0);\n var getPadMax = makePadFn(fullLayout, ax, 1);\n var extremes = concatExtremes(gd, ax);\n var minArray = extremes.min;\n var maxArray = extremes.max;\n\n if(minArray.length === 0 || maxArray.length === 0) {\n return Lib.simpleMap(ax.range, ax.r2l);\n }\n\n var minmin = minArray[0].val;\n var maxmax = maxArray[0].val;\n\n for(i = 1; i < minArray.length; i++) {\n if(minmin !== maxmax) break;\n minmin = Math.min(minmin, minArray[i].val);\n }\n for(i = 1; i < maxArray.length; i++) {\n if(minmin !== maxmax) break;\n maxmax = Math.max(maxmax, maxArray[i].val);\n }\n\n var axReverse = false;\n\n if(ax.range) {\n var rng = Lib.simpleMap(ax.range, ax.r2l);\n axReverse = rng[1] < rng[0];\n }\n // one-time setting to easily reverse the axis\n // when plotting from code\n if(ax.autorange === 'reversed') {\n axReverse = true;\n ax.autorange = true;\n }\n\n var rangeMode = ax.rangemode;\n var toZero = rangeMode === 'tozero';\n var nonNegative = rangeMode === 'nonnegative';\n var axLen = ax._length;\n // don't allow padding to reduce the data to < 10% of the length\n var minSpan = axLen / 10;\n\n var mbest = 0;\n var minpt, maxpt, minbest, maxbest, dp, dv;\n\n for(i = 0; i < minArray.length; i++) {\n minpt = minArray[i];\n for(j = 0; j < maxArray.length; j++) {\n maxpt = maxArray[j];\n dv = maxpt.val - minpt.val - calcBreaksLength(ax, minpt.val, maxpt.val);\n if(dv > 0) {\n dp = axLen - getPadMin(minpt) - getPadMax(maxpt);\n if(dp > minSpan) {\n if(dv / dp > mbest) {\n minbest = minpt;\n maxbest = maxpt;\n mbest = dv / dp;\n }\n } else if(dv / axLen > mbest) {\n // in case of padding longer than the axis\n // at least include the unpadded data values.\n minbest = {val: minpt.val, nopad: 1};\n maxbest = {val: maxpt.val, nopad: 1};\n mbest = dv / axLen;\n }\n }\n }\n }\n\n function maximumPad(prev, pt) {\n return Math.max(prev, getPadMax(pt));\n }\n\n if(minmin === maxmax) {\n var lower = minmin - 1;\n var upper = minmin + 1;\n if(toZero) {\n if(minmin === 0) {\n // The only value we have on this axis is 0, and we want to\n // autorange so zero is one end.\n // In principle this could be [0, 1] or [-1, 0] but usually\n // 'tozero' pins 0 to the low end, so follow that.\n newRange = [0, 1];\n } else {\n var maxPad = (minmin > 0 ? maxArray : minArray).reduce(maximumPad, 0);\n // we're pushing a single value away from the edge due to its\n // padding, with the other end clamped at zero\n // 0.5 means don't push it farther than the center.\n var rangeEnd = minmin / (1 - Math.min(0.5, maxPad / axLen));\n newRange = minmin > 0 ? [0, rangeEnd] : [rangeEnd, 0];\n }\n } else if(nonNegative) {\n newRange = [Math.max(0, lower), Math.max(1, upper)];\n } else {\n newRange = [lower, upper];\n }\n } else {\n if(toZero) {\n if(minbest.val >= 0) {\n minbest = {val: 0, nopad: 1};\n }\n if(maxbest.val <= 0) {\n maxbest = {val: 0, nopad: 1};\n }\n } else if(nonNegative) {\n if(minbest.val - mbest * getPadMin(minbest) < 0) {\n minbest = {val: 0, nopad: 1};\n }\n if(maxbest.val <= 0) {\n maxbest = {val: 1, nopad: 1};\n }\n }\n\n // in case it changed again...\n mbest = (maxbest.val - minbest.val - calcBreaksLength(ax, minpt.val, maxpt.val)) /\n (axLen - getPadMin(minbest) - getPadMax(maxbest));\n\n newRange = [\n minbest.val - mbest * getPadMin(minbest),\n maxbest.val + mbest * getPadMax(maxbest)\n ];\n }\n\n // maintain reversal\n if(axReverse) newRange.reverse();\n\n return Lib.simpleMap(newRange, ax.l2r || Number);\n}\n\n// find axis rangebreaks in [v0,v1] and compute its length in value space\nfunction calcBreaksLength(ax, v0, v1) {\n var lBreaks = 0;\n if(ax.rangebreaks) {\n var rangebreaksOut = ax.locateBreaks(v0, v1);\n for(var i = 0; i < rangebreaksOut.length; i++) {\n var brk = rangebreaksOut[i];\n lBreaks += brk.max - brk.min;\n }\n }\n return lBreaks;\n}\n\n/*\n * calculate the pixel padding for ax._min and ax._max entries with\n * optional extrapad as 5% of the total axis length\n */\nfunction makePadFn(fullLayout, ax, max) {\n // 5% padding for points that specify extrapad: true\n var extrappad = 0.05 * ax._length;\n\n var anchorAxis = ax._anchorAxis || {};\n\n if(\n (ax.ticklabelposition || '').indexOf('inside') !== -1 ||\n (anchorAxis.ticklabelposition || '').indexOf('inside') !== -1\n ) {\n var axReverse = ax.autorange === 'reversed';\n if(!axReverse) {\n var rng = Lib.simpleMap(ax.range, ax.r2l);\n axReverse = rng[1] < rng[0];\n }\n if(axReverse) max = !max;\n }\n\n var zero = 0;\n if(!isLinked(fullLayout, ax._id)) {\n zero = padInsideLabelsOnAnchorAxis(fullLayout, ax, max);\n }\n extrappad = Math.max(zero, extrappad);\n\n // domain-constrained axes: base extrappad on the unconstrained\n // domain so it's consistent as the domain changes\n if((ax.constrain === 'domain') && ax._inputDomain) {\n extrappad *= (ax._inputDomain[1] - ax._inputDomain[0]) /\n (ax.domain[1] - ax.domain[0]);\n }\n\n return function getPad(pt) {\n if(pt.nopad) return 0;\n return pt.pad + (pt.extrapad ? extrappad : zero);\n };\n}\n\nvar TEXTPAD = 3;\n\nfunction padInsideLabelsOnAnchorAxis(fullLayout, ax, max) {\n var pad = 0;\n\n var isX = ax._id.charAt(0) === 'x';\n\n for(var subplot in fullLayout._plots) {\n var plotinfo = fullLayout._plots[subplot];\n\n if(ax._id !== plotinfo.xaxis._id && ax._id !== plotinfo.yaxis._id) continue;\n\n var anchorAxis = (isX ? plotinfo.yaxis : plotinfo.xaxis) || {};\n\n if((anchorAxis.ticklabelposition || '').indexOf('inside') !== -1) {\n // increase padding to make more room for inside tick labels of the counter axis\n if((\n !max && (\n anchorAxis.side === 'left' ||\n anchorAxis.side === 'bottom'\n )\n ) || (\n max && (\n anchorAxis.side === 'top' ||\n anchorAxis.side === 'right'\n )\n )) {\n if(anchorAxis._vals) {\n var rad = Lib.deg2rad(anchorAxis._tickAngles[anchorAxis._id + 'tick'] || 0);\n var cosA = Math.abs(Math.cos(rad));\n var sinA = Math.abs(Math.sin(rad));\n\n // no stashed bounding boxes - stash bounding boxes\n if(!anchorAxis._vals[0].bb) {\n var cls = anchorAxis._id + 'tick';\n var tickLabels = anchorAxis._selections[cls];\n tickLabels.each(function(d) {\n var thisLabel = d3.select(this);\n var mathjaxGroup = thisLabel.select('.text-math-group');\n if(mathjaxGroup.empty()) {\n d.bb = Drawing.bBox(thisLabel.node());\n }\n });\n }\n\n // use bounding boxes\n for(var i = 0; i < anchorAxis._vals.length; i++) {\n var t = anchorAxis._vals[i];\n var bb = t.bb;\n\n if(bb) {\n var w = 2 * TEXTPAD + bb.width;\n var h = 2 * TEXTPAD + bb.height;\n\n pad = Math.max(pad, isX ?\n Math.max(w * cosA, h * sinA) :\n Math.max(h * cosA, w * sinA)\n );\n }\n }\n }\n\n if(anchorAxis.ticks === 'inside' && anchorAxis.ticklabelposition === 'inside') {\n pad += anchorAxis.ticklen || 0;\n }\n }\n }\n }\n\n return pad;\n}\n\nfunction concatExtremes(gd, ax, noMatch) {\n var axId = ax._id;\n var fullData = gd._fullData;\n var fullLayout = gd._fullLayout;\n var minArray = [];\n var maxArray = [];\n var i, j, d;\n\n function _concat(cont, indices) {\n for(i = 0; i < indices.length; i++) {\n var item = cont[indices[i]];\n var extremes = (item._extremes || {})[axId];\n if(item.visible === true && extremes) {\n for(j = 0; j < extremes.min.length; j++) {\n d = extremes.min[j];\n collapseMinArray(minArray, d.val, d.pad, {extrapad: d.extrapad});\n }\n for(j = 0; j < extremes.max.length; j++) {\n d = extremes.max[j];\n collapseMaxArray(maxArray, d.val, d.pad, {extrapad: d.extrapad});\n }\n }\n }\n }\n\n _concat(fullData, ax._traceIndices);\n _concat(fullLayout.annotations || [], ax._annIndices || []);\n _concat(fullLayout.shapes || [], ax._shapeIndices || []);\n\n // Include the extremes from other matched axes with this one\n if(ax._matchGroup && !noMatch) {\n for(var axId2 in ax._matchGroup) {\n if(axId2 !== ax._id) {\n var ax2 = getFromId(gd, axId2);\n var extremes2 = concatExtremes(gd, ax2, true);\n // convert padding on the second axis to the first with lenRatio\n var lenRatio = ax._length / ax2._length;\n for(j = 0; j < extremes2.min.length; j++) {\n d = extremes2.min[j];\n collapseMinArray(minArray, d.val, d.pad * lenRatio, {extrapad: d.extrapad});\n }\n for(j = 0; j < extremes2.max.length; j++) {\n d = extremes2.max[j];\n collapseMaxArray(maxArray, d.val, d.pad * lenRatio, {extrapad: d.extrapad});\n }\n }\n }\n }\n\n return {min: minArray, max: maxArray};\n}\n\nfunction doAutoRange(gd, ax, presetRange) {\n ax.setScale();\n\n if(ax.autorange) {\n ax.range = presetRange ? presetRange.slice() : getAutoRange(gd, ax);\n\n ax._r = ax.range.slice();\n ax._rl = Lib.simpleMap(ax._r, ax.r2l);\n\n // doAutoRange will get called on fullLayout,\n // but we want to report its results back to layout\n\n var axIn = ax._input;\n\n // before we edit _input, store preGUI values\n var edits = {};\n edits[ax._attr + '.range'] = ax.range;\n edits[ax._attr + '.autorange'] = ax.autorange;\n Registry.call('_storeDirectGUIEdit', gd.layout, gd._fullLayout._preGUI, edits);\n\n axIn.range = ax.range.slice();\n axIn.autorange = ax.autorange;\n }\n\n var anchorAx = ax._anchorAxis;\n\n if(anchorAx && anchorAx.rangeslider) {\n var axeRangeOpts = anchorAx.rangeslider[ax._name];\n if(axeRangeOpts) {\n if(axeRangeOpts.rangemode === 'auto') {\n axeRangeOpts.range = getAutoRange(gd, ax);\n }\n }\n anchorAx._input.rangeslider[ax._name] = Lib.extendFlat({}, axeRangeOpts);\n }\n}\n\n/**\n * findExtremes\n *\n * Find min/max extremes of an array of coordinates on a given axis.\n *\n * Note that findExtremes is called during `calc`, when we don't yet know the axis\n * length; all the inputs should be based solely on the trace data, nothing\n * about the axis layout.\n *\n * Note that `ppad` and `vpad` as well as their asymmetric variants refer to\n * the before and after padding of the passed `data` array, not to the whole axis.\n *\n * @param {object} ax: full axis object\n * relies on\n * - ax.type\n * - ax._m (just its sign)\n * - ax.d2l\n * @param {array} data:\n * array of numbers (i.e. already run though ax.d2c)\n * @param {object} opts:\n * available keys are:\n * vpad: (number or number array) pad values (data value +-vpad)\n * ppad: (number or number array) pad pixels (pixel location +-ppad)\n * ppadplus, ppadminus, vpadplus, vpadminus:\n * separate padding for each side, overrides symmetric\n * padded: (boolean) add 5% padding to both ends\n * (unless one end is overridden by tozero)\n * tozero: (boolean) make sure to include zero if axis is linear,\n * and make it a tight bound if possible\n * vpadLinearized: (boolean) whether or not vpad (or vpadplus/vpadminus)\n * is linearized (for log scale axes)\n *\n * @return {object}\n * - min {array of objects}\n * - max {array of objects}\n * each object item has fields:\n * - val {number}\n * - pad {number}\n * - extrappad {number}\n * - opts {object}: a ref to the passed \"options\" object\n */\nfunction findExtremes(ax, data, opts) {\n if(!opts) opts = {};\n if(!ax._m) ax.setScale();\n\n var minArray = [];\n var maxArray = [];\n\n var len = data.length;\n var extrapad = opts.padded || false;\n var tozero = opts.tozero && (ax.type === 'linear' || ax.type === '-');\n var isLog = ax.type === 'log';\n var hasArrayOption = false;\n var vpadLinearized = opts.vpadLinearized || false;\n var i, v, di, dmin, dmax, ppadiplus, ppadiminus, vmin, vmax;\n\n function makePadAccessor(item) {\n if(Array.isArray(item)) {\n hasArrayOption = true;\n return function(i) { return Math.max(Number(item[i]||0), 0); };\n } else {\n var v = Math.max(Number(item||0), 0);\n return function() { return v; };\n }\n }\n\n var ppadplus = makePadAccessor((ax._m > 0 ?\n opts.ppadplus : opts.ppadminus) || opts.ppad || 0);\n var ppadminus = makePadAccessor((ax._m > 0 ?\n opts.ppadminus : opts.ppadplus) || opts.ppad || 0);\n var vpadplus = makePadAccessor(opts.vpadplus || opts.vpad);\n var vpadminus = makePadAccessor(opts.vpadminus || opts.vpad);\n\n if(!hasArrayOption) {\n // with no arrays other than `data` we don't need to consider\n // every point, only the extreme data points\n vmin = Infinity;\n vmax = -Infinity;\n\n if(isLog) {\n for(i = 0; i < len; i++) {\n v = data[i];\n // data is not linearized yet so we still have to filter out negative logs\n if(v < vmin && v > 0) vmin = v;\n if(v > vmax && v < FP_SAFE) vmax = v;\n }\n } else {\n for(i = 0; i < len; i++) {\n v = data[i];\n if(v < vmin && v > -FP_SAFE) vmin = v;\n if(v > vmax && v < FP_SAFE) vmax = v;\n }\n }\n\n data = [vmin, vmax];\n len = 2;\n }\n\n var collapseOpts = {tozero: tozero, extrapad: extrapad};\n\n function addItem(i) {\n di = data[i];\n if(!isNumeric(di)) return;\n ppadiplus = ppadplus(i);\n ppadiminus = ppadminus(i);\n\n if(vpadLinearized) {\n dmin = ax.c2l(di) - vpadminus(i);\n dmax = ax.c2l(di) + vpadplus(i);\n } else {\n vmin = di - vpadminus(i);\n vmax = di + vpadplus(i);\n // special case for log axes: if vpad makes this object span\n // more than an order of mag, clip it to one order. This is so\n // we don't have non-positive errors or absurdly large lower\n // range due to rounding errors\n if(isLog && vmin < vmax / 10) vmin = vmax / 10;\n\n dmin = ax.c2l(vmin);\n dmax = ax.c2l(vmax);\n }\n\n if(tozero) {\n dmin = Math.min(0, dmin);\n dmax = Math.max(0, dmax);\n }\n if(goodNumber(dmin)) {\n collapseMinArray(minArray, dmin, ppadiminus, collapseOpts);\n }\n if(goodNumber(dmax)) {\n collapseMaxArray(maxArray, dmax, ppadiplus, collapseOpts);\n }\n }\n\n // For efficiency covering monotonic or near-monotonic data,\n // check a few points at both ends first and then sweep\n // through the middle\n var iMax = Math.min(6, len);\n for(i = 0; i < iMax; i++) addItem(i);\n for(i = len - 1; i >= iMax; i--) addItem(i);\n\n return {\n min: minArray,\n max: maxArray,\n opts: opts\n };\n}\n\nfunction collapseMinArray(array, newVal, newPad, opts) {\n collapseArray(array, newVal, newPad, opts, lessOrEqual);\n}\n\nfunction collapseMaxArray(array, newVal, newPad, opts) {\n collapseArray(array, newVal, newPad, opts, greaterOrEqual);\n}\n\n/**\n * collapseArray\n *\n * Takes items from 'array' and compares them to 'newVal', 'newPad'.\n *\n * @param {array} array:\n * current set of min or max extremes\n * @param {number} newVal:\n * new value to compare against\n * @param {number} newPad:\n * pad value associated with 'newVal'\n * @param {object} opts:\n * - tozero {boolean}\n * - extrapad {number}\n * @param {function} atLeastAsExtreme:\n * comparison function, use\n * - lessOrEqual for min 'array' and\n * - greaterOrEqual for max 'array'\n *\n * In practice, 'array' is either\n * - 'extremes[ax._id].min' or\n * - 'extremes[ax._id].max\n * found in traces and layout items that affect autorange.\n *\n * Since we don't yet know the relationship between pixels and values\n * (that's what we're trying to figure out!) AND we don't yet know how\n * many pixels `extrapad` represents (it's going to be 5% of the length,\n * but we don't want to have to redo calc just because length changed)\n * two point must satisfy three criteria simultaneously for one to supersede the other:\n * - at least as extreme a `val`\n * - at least as big a `pad`\n * - an unpadded point cannot supersede a padded point, but any other combination can\n *\n * Then:\n * - If the item supersedes the new point, set includeThis false\n * - If the new pt supersedes the item, delete it from 'array'\n */\nfunction collapseArray(array, newVal, newPad, opts, atLeastAsExtreme) {\n var tozero = opts.tozero;\n var extrapad = opts.extrapad;\n var includeThis = true;\n\n for(var j = 0; j < array.length && includeThis; j++) {\n var v = array[j];\n if(atLeastAsExtreme(v.val, newVal) && v.pad >= newPad && (v.extrapad || !extrapad)) {\n includeThis = false;\n break;\n } else if(atLeastAsExtreme(newVal, v.val) && v.pad <= newPad && (extrapad || !v.extrapad)) {\n array.splice(j, 1);\n j--;\n }\n }\n if(includeThis) {\n var clipAtZero = (tozero && newVal === 0);\n array.push({\n val: newVal,\n pad: clipAtZero ? 0 : newPad,\n extrapad: clipAtZero ? false : extrapad\n });\n }\n}\n\n// In order to stop overflow errors, don't consider points\n// too close to the limits of js floating point\nfunction goodNumber(v) {\n return isNumeric(v) && Math.abs(v) < FP_SAFE;\n}\n\nfunction lessOrEqual(v0, v1) { return v0 <= v1; }\nfunction greaterOrEqual(v0, v1) { return v0 >= v1; }\n\n},{\"../../components/drawing\":388,\"../../constants/numerical\":479,\"../../lib\":503,\"../../registry\":638,\"./axis_ids\":558,\"@plotly/d3\":58,\"fast-isnumeric\":190}],554:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar isNumeric = _dereq_('fast-isnumeric');\nvar Plots = _dereq_('../../plots/plots');\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar strTranslate = Lib.strTranslate;\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\nvar Titles = _dereq_('../../components/titles');\nvar Color = _dereq_('../../components/color');\nvar Drawing = _dereq_('../../components/drawing');\n\nvar axAttrs = _dereq_('./layout_attributes');\nvar cleanTicks = _dereq_('./clean_ticks');\n\nvar constants = _dereq_('../../constants/numerical');\nvar ONEMAXYEAR = constants.ONEMAXYEAR;\nvar ONEAVGYEAR = constants.ONEAVGYEAR;\nvar ONEMINYEAR = constants.ONEMINYEAR;\nvar ONEMAXQUARTER = constants.ONEMAXQUARTER;\nvar ONEAVGQUARTER = constants.ONEAVGQUARTER;\nvar ONEMINQUARTER = constants.ONEMINQUARTER;\nvar ONEMAXMONTH = constants.ONEMAXMONTH;\nvar ONEAVGMONTH = constants.ONEAVGMONTH;\nvar ONEMINMONTH = constants.ONEMINMONTH;\nvar ONEWEEK = constants.ONEWEEK;\nvar ONEDAY = constants.ONEDAY;\nvar HALFDAY = ONEDAY / 2;\nvar ONEHOUR = constants.ONEHOUR;\nvar ONEMIN = constants.ONEMIN;\nvar ONESEC = constants.ONESEC;\nvar MINUS_SIGN = constants.MINUS_SIGN;\nvar BADNUM = constants.BADNUM;\n\nvar ZERO_PATH = { K: 'zeroline' };\nvar GRID_PATH = { K: 'gridline', L: 'path' };\nvar TICK_PATH = { K: 'tick', L: 'path' };\nvar TICK_TEXT = { K: 'tick', L: 'text' };\n\nvar alignmentConstants = _dereq_('../../constants/alignment');\nvar MID_SHIFT = alignmentConstants.MID_SHIFT;\nvar CAP_SHIFT = alignmentConstants.CAP_SHIFT;\nvar LINE_SPACING = alignmentConstants.LINE_SPACING;\nvar OPPOSITE_SIDE = alignmentConstants.OPPOSITE_SIDE;\n\nvar TEXTPAD = 3;\n\nvar axes = module.exports = {};\n\naxes.setConvert = _dereq_('./set_convert');\nvar autoType = _dereq_('./axis_autotype');\n\nvar axisIds = _dereq_('./axis_ids');\nvar idSort = axisIds.idSort;\nvar isLinked = axisIds.isLinked;\n\n// tight coupling to chart studio\naxes.id2name = axisIds.id2name;\naxes.name2id = axisIds.name2id;\naxes.cleanId = axisIds.cleanId;\naxes.list = axisIds.list;\naxes.listIds = axisIds.listIds;\naxes.getFromId = axisIds.getFromId;\naxes.getFromTrace = axisIds.getFromTrace;\n\nvar autorange = _dereq_('./autorange');\naxes.getAutoRange = autorange.getAutoRange;\naxes.findExtremes = autorange.findExtremes;\n\nvar epsilon = 0.0001;\nfunction expandRange(range) {\n var delta = (range[1] - range[0]) * epsilon;\n return [\n range[0] - delta,\n range[1] + delta\n ];\n}\n\n/*\n * find the list of possible axes to reference with an xref or yref attribute\n * and coerce it to that list\n *\n * attr: the attribute we're generating a reference for. Should end in 'x' or 'y'\n * but can be prefixed, like 'ax' for annotation's arrow x\n * dflt: the default to coerce to, or blank to use the first axis (falling back on\n * extraOption if there is no axis)\n * extraOption: aside from existing axes with this letter, what non-axis value is allowed?\n * Only required if it's different from `dflt`\n */\naxes.coerceRef = function(containerIn, containerOut, gd, attr, dflt, extraOption) {\n var axLetter = attr.charAt(attr.length - 1);\n var axlist = gd._fullLayout._subplots[axLetter + 'axis'];\n var refAttr = attr + 'ref';\n var attrDef = {};\n\n if(!dflt) dflt = axlist[0] || (typeof extraOption === 'string' ? extraOption : extraOption[0]);\n if(!extraOption) extraOption = dflt;\n axlist = axlist.concat(axlist.map(function(x) { return x + ' domain'; }));\n\n // data-ref annotations are not supported in gl2d yet\n\n attrDef[refAttr] = {\n valType: 'enumerated',\n values: axlist.concat(extraOption ?\n (typeof extraOption === 'string' ? [extraOption] : extraOption) :\n []),\n dflt: dflt\n };\n\n // xref, yref\n return Lib.coerce(containerIn, containerOut, attrDef, refAttr);\n};\n\n/*\n * Get the type of an axis reference. This can be 'range', 'domain', or 'paper'.\n * This assumes ar is a valid axis reference and returns 'range' if it doesn't\n * match the patterns for 'paper' or 'domain'.\n *\n * ar: the axis reference string\n *\n */\naxes.getRefType = function(ar) {\n if(ar === undefined) { return ar; }\n if(ar === 'paper') { return 'paper'; }\n if(ar === 'pixel') { return 'pixel'; }\n if(/( domain)$/.test(ar)) { return 'domain'; } else { return 'range'; }\n};\n\n/*\n * coerce position attributes (range-type) that can be either on axes or absolute\n * (paper or pixel) referenced. The biggest complication here is that we don't know\n * before looking at the axis whether the value must be a number or not (it may be\n * a date string), so we can't use the regular valType='number' machinery\n *\n * axRef (string): the axis this position is referenced to, or:\n * paper: fraction of the plot area\n * pixel: pixels relative to some starting position\n * attr (string): the attribute in containerOut we are coercing\n * dflt (number): the default position, as a fraction or pixels. If the attribute\n * is to be axis-referenced, this will be converted to an axis data value\n *\n * Also cleans the values, since the attribute definition itself has to say\n * valType: 'any' to handle date axes. This allows us to accept:\n * - for category axes: category names, and convert them here into serial numbers.\n * Note that this will NOT work for axis range endpoints, because we don't know\n * the category list yet (it's set by ax.makeCalcdata during calc)\n * but it works for component (note, shape, images) positions.\n * - for date axes: JS Dates or milliseconds, and convert to date strings\n * - for other types: coerce them to numbers\n */\naxes.coercePosition = function(containerOut, gd, coerce, axRef, attr, dflt) {\n var cleanPos, pos;\n var axRefType = axes.getRefType(axRef);\n if(axRefType !== 'range') {\n cleanPos = Lib.ensureNumber;\n pos = coerce(attr, dflt);\n } else {\n var ax = axes.getFromId(gd, axRef);\n dflt = ax.fraction2r(dflt);\n pos = coerce(attr, dflt);\n cleanPos = ax.cleanPos;\n }\n containerOut[attr] = cleanPos(pos);\n};\n\naxes.cleanPosition = function(pos, gd, axRef) {\n var cleanPos = (axRef === 'paper' || axRef === 'pixel') ?\n Lib.ensureNumber :\n axes.getFromId(gd, axRef).cleanPos;\n\n return cleanPos(pos);\n};\n\naxes.redrawComponents = function(gd, axIds) {\n axIds = axIds ? axIds : axes.listIds(gd);\n\n var fullLayout = gd._fullLayout;\n\n function _redrawOneComp(moduleName, methodName, stashName, shortCircuit) {\n var method = Registry.getComponentMethod(moduleName, methodName);\n var stash = {};\n\n for(var i = 0; i < axIds.length; i++) {\n var ax = fullLayout[axes.id2name(axIds[i])];\n var indices = ax[stashName];\n\n for(var j = 0; j < indices.length; j++) {\n var ind = indices[j];\n\n if(!stash[ind]) {\n method(gd, ind);\n stash[ind] = 1;\n // once is enough for images (which doesn't use the `i` arg anyway)\n if(shortCircuit) return;\n }\n }\n }\n }\n\n // annotations and shapes 'draw' method is slow,\n // use the finer-grained 'drawOne' method instead\n _redrawOneComp('annotations', 'drawOne', '_annIndices');\n _redrawOneComp('shapes', 'drawOne', '_shapeIndices');\n _redrawOneComp('images', 'draw', '_imgIndices', true);\n};\n\nvar getDataConversions = axes.getDataConversions = function(gd, trace, target, targetArray) {\n var ax;\n\n // If target points to an axis, use the type we already have for that\n // axis to find the data type. Otherwise use the values to autotype.\n var d2cTarget = (target === 'x' || target === 'y' || target === 'z') ?\n target :\n targetArray;\n\n // In the case of an array target, make a mock data array\n // and call supplyDefaults to the data type and\n // setup the data-to-calc method.\n if(Array.isArray(d2cTarget)) {\n ax = {\n type: autoType(targetArray, undefined, {\n autotypenumbers: gd._fullLayout.autotypenumbers\n }),\n _categories: []\n };\n axes.setConvert(ax);\n\n // build up ax._categories (usually done during ax.makeCalcdata()\n if(ax.type === 'category') {\n for(var i = 0; i < targetArray.length; i++) {\n ax.d2c(targetArray[i]);\n }\n }\n // TODO what to do for transforms?\n } else {\n ax = axes.getFromTrace(gd, trace, d2cTarget);\n }\n\n // if 'target' has corresponding axis\n // -> use setConvert method\n if(ax) return {d2c: ax.d2c, c2d: ax.c2d};\n\n // special case for 'ids'\n // -> cast to String\n if(d2cTarget === 'ids') return {d2c: toString, c2d: toString};\n\n // otherwise (e.g. numeric-array of 'marker.color' or 'marker.size')\n // -> cast to Number\n\n return {d2c: toNum, c2d: toNum};\n};\n\nfunction toNum(v) { return +v; }\nfunction toString(v) { return String(v); }\n\naxes.getDataToCoordFunc = function(gd, trace, target, targetArray) {\n return getDataConversions(gd, trace, target, targetArray).d2c;\n};\n\n// get counteraxis letter for this axis (name or id)\n// this can also be used as the id for default counter axis\naxes.counterLetter = function(id) {\n var axLetter = id.charAt(0);\n if(axLetter === 'x') return 'y';\n if(axLetter === 'y') return 'x';\n};\n\n// incorporate a new minimum difference and first tick into\n// forced\n// note that _forceTick0 is linearized, so needs to be turned into\n// a range value for setting tick0\naxes.minDtick = function(ax, newDiff, newFirst, allow) {\n // doesn't make sense to do forced min dTick on log or category axes,\n // and the plot itself may decide to cancel (ie non-grouped bars)\n if(['log', 'category', 'multicategory'].indexOf(ax.type) !== -1 || !allow) {\n ax._minDtick = 0;\n } else if(ax._minDtick === undefined) {\n // undefined means there's nothing there yet\n\n ax._minDtick = newDiff;\n ax._forceTick0 = newFirst;\n } else if(ax._minDtick) {\n if((ax._minDtick / newDiff + 1e-6) % 1 < 2e-6 &&\n // existing minDtick is an integer multiple of newDiff\n // (within rounding err)\n // and forceTick0 can be shifted to newFirst\n\n (((newFirst - ax._forceTick0) / newDiff % 1) +\n 1.000001) % 1 < 2e-6) {\n ax._minDtick = newDiff;\n ax._forceTick0 = newFirst;\n } else if((newDiff / ax._minDtick + 1e-6) % 1 > 2e-6 ||\n // if the converse is true (newDiff is a multiple of minDtick and\n // newFirst can be shifted to forceTick0) then do nothing - same\n // forcing stands. Otherwise, cancel forced minimum\n\n (((newFirst - ax._forceTick0) / ax._minDtick % 1) +\n 1.000001) % 1 > 2e-6) {\n ax._minDtick = 0;\n }\n }\n};\n\n// save a copy of the initial axis ranges in fullLayout\n// use them in mode bar and dblclick events\naxes.saveRangeInitial = function(gd, overwrite) {\n var axList = axes.list(gd, '', true);\n var hasOneAxisChanged = false;\n\n for(var i = 0; i < axList.length; i++) {\n var ax = axList[i];\n var isNew = (ax._rangeInitial === undefined);\n var hasChanged = isNew || !(\n ax.range[0] === ax._rangeInitial[0] &&\n ax.range[1] === ax._rangeInitial[1]\n );\n\n if((isNew && ax.autorange === false) || (overwrite && hasChanged)) {\n ax._rangeInitial = ax.range.slice();\n hasOneAxisChanged = true;\n }\n }\n\n return hasOneAxisChanged;\n};\n\n// save a copy of the initial spike visibility\naxes.saveShowSpikeInitial = function(gd, overwrite) {\n var axList = axes.list(gd, '', true);\n var hasOneAxisChanged = false;\n var allSpikesEnabled = 'on';\n\n for(var i = 0; i < axList.length; i++) {\n var ax = axList[i];\n var isNew = (ax._showSpikeInitial === undefined);\n var hasChanged = isNew || !(ax.showspikes === ax._showspikes);\n\n if(isNew || (overwrite && hasChanged)) {\n ax._showSpikeInitial = ax.showspikes;\n hasOneAxisChanged = true;\n }\n\n if(allSpikesEnabled === 'on' && !ax.showspikes) {\n allSpikesEnabled = 'off';\n }\n }\n gd._fullLayout._cartesianSpikesEnabled = allSpikesEnabled;\n return hasOneAxisChanged;\n};\n\naxes.autoBin = function(data, ax, nbins, is2d, calendar, size) {\n var dataMin = Lib.aggNums(Math.min, null, data);\n var dataMax = Lib.aggNums(Math.max, null, data);\n\n if(ax.type === 'category' || ax.type === 'multicategory') {\n return {\n start: dataMin - 0.5,\n end: dataMax + 0.5,\n size: Math.max(1, Math.round(size) || 1),\n _dataSpan: dataMax - dataMin,\n };\n }\n\n if(!calendar) calendar = ax.calendar;\n\n // piggyback off tick code to make \"nice\" bin sizes and edges\n var dummyAx;\n if(ax.type === 'log') {\n dummyAx = {\n type: 'linear',\n range: [dataMin, dataMax]\n };\n } else {\n dummyAx = {\n type: ax.type,\n range: Lib.simpleMap([dataMin, dataMax], ax.c2r, 0, calendar),\n calendar: calendar\n };\n }\n axes.setConvert(dummyAx);\n\n size = size && cleanTicks.dtick(size, dummyAx.type);\n\n if(size) {\n dummyAx.dtick = size;\n dummyAx.tick0 = cleanTicks.tick0(undefined, dummyAx.type, calendar);\n } else {\n var size0;\n if(nbins) size0 = ((dataMax - dataMin) / nbins);\n else {\n // totally auto: scale off std deviation so the highest bin is\n // somewhat taller than the total number of bins, but don't let\n // the size get smaller than the 'nice' rounded down minimum\n // difference between values\n var distinctData = Lib.distinctVals(data);\n var msexp = Math.pow(10, Math.floor(\n Math.log(distinctData.minDiff) / Math.LN10));\n var minSize = msexp * Lib.roundUp(\n distinctData.minDiff / msexp, [0.9, 1.9, 4.9, 9.9], true);\n size0 = Math.max(minSize, 2 * Lib.stdev(data) /\n Math.pow(data.length, is2d ? 0.25 : 0.4));\n\n // fallback if ax.d2c output BADNUMs\n // e.g. when user try to plot categorical bins\n // on a layout.xaxis.type: 'linear'\n if(!isNumeric(size0)) size0 = 1;\n }\n\n axes.autoTicks(dummyAx, size0);\n }\n\n var finalSize = dummyAx.dtick;\n var binStart = axes.tickIncrement(\n axes.tickFirst(dummyAx), finalSize, 'reverse', calendar);\n var binEnd, bincount;\n\n // check for too many data points right at the edges of bins\n // (>50% within 1% of bin edges) or all data points integral\n // and offset the bins accordingly\n if(typeof finalSize === 'number') {\n binStart = autoShiftNumericBins(binStart, data, dummyAx, dataMin, dataMax);\n\n bincount = 1 + Math.floor((dataMax - binStart) / finalSize);\n binEnd = binStart + bincount * finalSize;\n } else {\n // month ticks - should be the only nonlinear kind we have at this point.\n // dtick (as supplied by axes.autoTick) only has nonlinear values on\n // date and log axes, but even if you display a histogram on a log axis\n // we bin it on a linear axis (which one could argue against, but that's\n // a separate issue)\n if(dummyAx.dtick.charAt(0) === 'M') {\n binStart = autoShiftMonthBins(binStart, data, finalSize, dataMin, calendar);\n }\n\n // calculate the endpoint for nonlinear ticks - you have to\n // just increment until you're done\n binEnd = binStart;\n bincount = 0;\n while(binEnd <= dataMax) {\n binEnd = axes.tickIncrement(binEnd, finalSize, false, calendar);\n bincount++;\n }\n }\n\n return {\n start: ax.c2r(binStart, 0, calendar),\n end: ax.c2r(binEnd, 0, calendar),\n size: finalSize,\n _dataSpan: dataMax - dataMin\n };\n};\n\n\nfunction autoShiftNumericBins(binStart, data, ax, dataMin, dataMax) {\n var edgecount = 0;\n var midcount = 0;\n var intcount = 0;\n var blankCount = 0;\n\n function nearEdge(v) {\n // is a value within 1% of a bin edge?\n return (1 + (v - binStart) * 100 / ax.dtick) % 100 < 2;\n }\n\n for(var i = 0; i < data.length; i++) {\n if(data[i] % 1 === 0) intcount++;\n else if(!isNumeric(data[i])) blankCount++;\n\n if(nearEdge(data[i])) edgecount++;\n if(nearEdge(data[i] + ax.dtick / 2)) midcount++;\n }\n var dataCount = data.length - blankCount;\n\n if(intcount === dataCount && ax.type !== 'date') {\n if(ax.dtick < 1) {\n // all integers: if bin size is <1, it's because\n // that was specifically requested (large nbins)\n // so respect that... but center the bins containing\n // integers on those integers\n\n binStart = dataMin - 0.5 * ax.dtick;\n } else {\n // otherwise start half an integer down regardless of\n // the bin size, just enough to clear up endpoint\n // ambiguity about which integers are in which bins.\n\n binStart -= 0.5;\n if(binStart + ax.dtick < dataMin) binStart += ax.dtick;\n }\n } else if(midcount < dataCount * 0.1) {\n if(edgecount > dataCount * 0.3 ||\n nearEdge(dataMin) || nearEdge(dataMax)) {\n // lots of points at the edge, not many in the middle\n // shift half a bin\n var binshift = ax.dtick / 2;\n binStart += (binStart + binshift < dataMin) ? binshift : -binshift;\n }\n }\n return binStart;\n}\n\n\nfunction autoShiftMonthBins(binStart, data, dtick, dataMin, calendar) {\n var stats = Lib.findExactDates(data, calendar);\n // number of data points that needs to be an exact value\n // to shift that increment to (near) the bin center\n var threshold = 0.8;\n\n if(stats.exactDays > threshold) {\n var numMonths = Number(dtick.substr(1));\n\n if((stats.exactYears > threshold) && (numMonths % 12 === 0)) {\n // The exact middle of a non-leap-year is 1.5 days into July\n // so if we start the bins here, all but leap years will\n // get hover-labeled as exact years.\n binStart = axes.tickIncrement(binStart, 'M6', 'reverse') + ONEDAY * 1.5;\n } else if(stats.exactMonths > threshold) {\n // Months are not as clean, but if we shift half the *longest*\n // month (31/2 days) then 31-day months will get labeled exactly\n // and shorter months will get labeled with the correct month\n // but shifted 12-36 hours into it.\n binStart = axes.tickIncrement(binStart, 'M1', 'reverse') + ONEDAY * 15.5;\n } else {\n // Shifting half a day is exact, but since these are month bins it\n // will always give a somewhat odd-looking label, until we do something\n // smarter like showing the bin boundaries (or the bounds of the actual\n // data in each bin)\n binStart -= HALFDAY;\n }\n var nextBinStart = axes.tickIncrement(binStart, dtick);\n\n if(nextBinStart <= dataMin) return nextBinStart;\n }\n return binStart;\n}\n\n// ----------------------------------------------------\n// Ticks and grids\n// ----------------------------------------------------\n\n// ensure we have tick0, dtick, and tick rounding calculated\naxes.prepTicks = function(ax, opts) {\n var rng = Lib.simpleMap(ax.range, ax.r2l, undefined, undefined, opts);\n\n ax._dtickInit = ax.dtick;\n ax._tick0Init = ax.tick0;\n\n // calculate max number of (auto) ticks to display based on plot size\n if(ax.tickmode === 'auto' || !ax.dtick) {\n var nt = ax.nticks;\n var minPx;\n\n if(!nt) {\n if(ax.type === 'category' || ax.type === 'multicategory') {\n minPx = ax.tickfont ? Lib.bigFont(ax.tickfont.size || 12) : 15;\n nt = ax._length / minPx;\n } else {\n minPx = ax._id.charAt(0) === 'y' ? 40 : 80;\n nt = Lib.constrain(ax._length / minPx, 4, 9) + 1;\n }\n\n // radial axes span half their domain,\n // multiply nticks value by two to get correct number of auto ticks.\n if(ax._name === 'radialaxis') nt *= 2;\n }\n\n // add a couple of extra digits for filling in ticks when we\n // have explicit tickvals without tick text\n if(ax.tickmode === 'array') nt *= 100;\n\n\n ax._roughDTick = Math.abs(rng[1] - rng[0]) / nt;\n axes.autoTicks(ax, ax._roughDTick);\n\n // check for a forced minimum dtick\n if(ax._minDtick > 0 && ax.dtick < ax._minDtick * 2) {\n ax.dtick = ax._minDtick;\n ax.tick0 = ax.l2r(ax._forceTick0);\n }\n }\n\n if(ax.ticklabelmode === 'period') {\n adjustPeriodDelta(ax);\n }\n\n // check for missing tick0\n if(!ax.tick0) {\n ax.tick0 = (ax.type === 'date') ? '2000-01-01' : 0;\n }\n\n // ensure we don't try to make ticks below our minimum precision\n // see https://github.com/plotly/plotly.js/issues/2892\n if(ax.type === 'date' && ax.dtick < 0.1) ax.dtick = 0.1;\n\n // now figure out rounding of tick values\n autoTickRound(ax);\n};\n\nfunction nMonths(dtick) {\n return +(dtick.substring(1));\n}\n\nfunction adjustPeriodDelta(ax) { // adjusts ax.dtick and sets ax._definedDelta\n var definedDelta;\n\n function mDate() {\n return !(\n isNumeric(ax.dtick) ||\n ax.dtick.charAt(0) !== 'M'\n );\n }\n var isMDate = mDate();\n var tickformat = axes.getTickFormat(ax);\n if(tickformat) {\n var noDtick = ax._dtickInit !== ax.dtick;\n if(\n !(/%[fLQsSMX]/.test(tickformat))\n // %f: microseconds as a decimal number [000000, 999999]\n // %L: milliseconds as a decimal number [000, 999]\n // %Q: milliseconds since UNIX epoch\n // %s: seconds since UNIX epoch\n // %S: second as a decimal number [00,61]\n // %M: minute as a decimal number [00,59]\n // %X: the locale’s time, such as %-I:%M:%S %p\n ) {\n if(\n /%[HI]/.test(tickformat)\n // %H: hour (24-hour clock) as a decimal number [00,23]\n // %I: hour (12-hour clock) as a decimal number [01,12]\n ) {\n definedDelta = ONEHOUR;\n if(noDtick && !isMDate && ax.dtick < ONEHOUR) ax.dtick = ONEHOUR;\n } else if(\n /%p/.test(tickformat) // %p: either AM or PM\n ) {\n definedDelta = HALFDAY;\n if(noDtick && !isMDate && ax.dtick < HALFDAY) ax.dtick = HALFDAY;\n } else if(\n /%[Aadejuwx]/.test(tickformat)\n // %A: full weekday name\n // %a: abbreviated weekday name\n // %d: zero-padded day of the month as a decimal number [01,31]\n // %e: space-padded day of the month as a decimal number [ 1,31]\n // %j: day of the year as a decimal number [001,366]\n // %u: Monday-based (ISO 8601) weekday as a decimal number [1,7]\n // %w: Sunday-based weekday as a decimal number [0,6]\n // %x: the locale’s date, such as %-m/%-d/%Y\n ) {\n definedDelta = ONEDAY;\n if(noDtick && !isMDate && ax.dtick < ONEDAY) ax.dtick = ONEDAY;\n } else if(\n /%[UVW]/.test(tickformat)\n // %U: Sunday-based week of the year as a decimal number [00,53]\n // %V: ISO 8601 week of the year as a decimal number [01, 53]\n // %W: Monday-based week of the year as a decimal number [00,53]\n ) {\n definedDelta = ONEWEEK;\n if(noDtick && !isMDate && ax.dtick < ONEWEEK) ax.dtick = ONEWEEK;\n } else if(\n /%[Bbm]/.test(tickformat)\n // %B: full month name\n // %b: abbreviated month name\n // %m: month as a decimal number [01,12]\n ) {\n definedDelta = ONEAVGMONTH;\n if(noDtick && (\n isMDate ? nMonths(ax.dtick) < 1 : ax.dtick < ONEMINMONTH)\n ) ax.dtick = 'M1';\n } else if(\n /%[q]/.test(tickformat)\n // %q: quarter of the year as a decimal number [1,4]\n ) {\n definedDelta = ONEAVGQUARTER;\n if(noDtick && (\n isMDate ? nMonths(ax.dtick) < 3 : ax.dtick < ONEMINQUARTER)\n ) ax.dtick = 'M3';\n } else if(\n /%[Yy]/.test(tickformat)\n // %Y: year with century as a decimal number, such as 1999\n // %y: year without century as a decimal number [00,99]\n ) {\n definedDelta = ONEAVGYEAR;\n if(noDtick && (\n isMDate ? nMonths(ax.dtick) < 12 : ax.dtick < ONEMINYEAR)\n ) ax.dtick = 'M12';\n }\n }\n }\n\n isMDate = mDate();\n if(isMDate && ax.tick0 === ax._dowTick0) {\n // discard Sunday/Monday tweaks\n ax.tick0 = ax._rawTick0;\n }\n\n ax._definedDelta = definedDelta;\n}\n\nfunction positionPeriodTicks(tickVals, ax, definedDelta) {\n for(var i = 0; i < tickVals.length; i++) {\n var v = tickVals[i].value;\n\n var a = i;\n var b = i + 1;\n if(i < tickVals.length - 1) {\n a = i;\n b = i + 1;\n } else if(i > 0) {\n a = i - 1;\n b = i;\n } else {\n a = i;\n b = i;\n }\n\n var A = tickVals[a].value;\n var B = tickVals[b].value;\n var actualDelta = Math.abs(B - A);\n var delta = definedDelta || actualDelta;\n var periodLength = 0;\n\n if(delta >= ONEMINYEAR) {\n if(actualDelta >= ONEMINYEAR && actualDelta <= ONEMAXYEAR) {\n periodLength = actualDelta;\n } else {\n periodLength = ONEAVGYEAR;\n }\n } else if(definedDelta === ONEAVGQUARTER && delta >= ONEMINQUARTER) {\n if(actualDelta >= ONEMINQUARTER && actualDelta <= ONEMAXQUARTER) {\n periodLength = actualDelta;\n } else {\n periodLength = ONEAVGQUARTER;\n }\n } else if(delta >= ONEMINMONTH) {\n if(actualDelta >= ONEMINMONTH && actualDelta <= ONEMAXMONTH) {\n periodLength = actualDelta;\n } else {\n periodLength = ONEAVGMONTH;\n }\n } else if(definedDelta === ONEWEEK && delta >= ONEWEEK) {\n periodLength = ONEWEEK;\n } else if(delta >= ONEDAY) {\n periodLength = ONEDAY;\n } else if(definedDelta === HALFDAY && delta >= HALFDAY) {\n periodLength = HALFDAY;\n } else if(definedDelta === ONEHOUR && delta >= ONEHOUR) {\n periodLength = ONEHOUR;\n }\n\n var inBetween;\n if(periodLength >= actualDelta) {\n // ensure new label positions remain between ticks\n periodLength = actualDelta;\n inBetween = true;\n }\n\n var endPeriod = v + periodLength;\n if(ax.rangebreaks && periodLength > 0) {\n var nAll = 84; // highly divisible 7 * 12\n var n = 0;\n for(var c = 0; c < nAll; c++) {\n var r = (c + 0.5) / nAll;\n if(ax.maskBreaks(v * (1 - r) + r * endPeriod) !== BADNUM) n++;\n }\n periodLength *= n / nAll;\n\n if(!periodLength) {\n tickVals[i].drop = true;\n }\n\n if(inBetween && actualDelta > ONEWEEK) periodLength = actualDelta; // center monthly & longer periods\n }\n\n if(\n periodLength > 0 || // not instant\n i === 0 // taking care first tick added\n ) {\n tickVals[i].periodX = v + periodLength / 2;\n }\n }\n}\n\n// calculate the ticks: text, values, positioning\n// if ticks are set to automatic, determine the right values (tick0,dtick)\n// in any case, set tickround to # of digits to round tick labels to,\n// or codes to this effect for log and date scales\naxes.calcTicks = function calcTicks(ax, opts) {\n axes.prepTicks(ax, opts);\n var rng = Lib.simpleMap(ax.range, ax.r2l, undefined, undefined, opts);\n\n // now that we've figured out the auto values for formatting\n // in case we're missing some ticktext, we can break out for array ticks\n if(ax.tickmode === 'array') return arrayTicks(ax);\n\n // add a tiny bit so we get ticks which may have rounded out\n var exRng = expandRange(rng);\n var startTick = exRng[0];\n var endTick = exRng[1];\n // check for reversed axis\n var axrev = (rng[1] < rng[0]);\n var minRange = Math.min(rng[0], rng[1]);\n var maxRange = Math.max(rng[0], rng[1]);\n\n var isDLog = (ax.type === 'log') && !(isNumeric(ax.dtick) || ax.dtick.charAt(0) === 'L');\n var isPeriod = ax.ticklabelmode === 'period';\n\n // find the first tick\n ax._tmin = axes.tickFirst(ax, opts);\n\n // No visible ticks? Quit.\n // I've only seen this on category axes with all categories off the edge.\n if((ax._tmin < startTick) !== axrev) return [];\n\n // return the full set of tick vals\n if(ax.type === 'category' || ax.type === 'multicategory') {\n endTick = (axrev) ? Math.max(-0.5, endTick) :\n Math.min(ax._categories.length - 0.5, endTick);\n }\n\n var x = ax._tmin;\n\n if(ax.rangebreaks && ax._tick0Init !== ax.tick0) {\n // adjust tick0\n x = moveOutsideBreak(x, ax);\n if(!axrev) {\n x = axes.tickIncrement(x, ax.dtick, !axrev, ax.calendar);\n }\n }\n\n if(isPeriod) {\n // add one item to label period before tick0\n x = axes.tickIncrement(x, ax.dtick, !axrev, ax.calendar);\n }\n\n var maxTicks = Math.max(1000, ax._length || 0);\n var tickVals = [];\n var xPrevious = null;\n for(;\n (axrev) ? (x >= endTick) : (x <= endTick);\n x = axes.tickIncrement(x, ax.dtick, axrev, ax.calendar)\n ) {\n if(ax.rangebreaks) {\n if(!axrev) {\n if(x < startTick) continue;\n if(ax.maskBreaks(x) === BADNUM && moveOutsideBreak(x, ax) >= maxRange) break;\n }\n }\n\n // prevent infinite loops - no more than one tick per pixel,\n // and make sure each value is different from the previous\n if(tickVals.length > maxTicks || x === xPrevious) break;\n xPrevious = x;\n\n var minor = false;\n if(isDLog && (x !== (x | 0))) {\n minor = true;\n }\n\n tickVals.push({\n minor: minor,\n value: x\n });\n }\n\n if(isPeriod) positionPeriodTicks(tickVals, ax, ax._definedDelta);\n\n var i;\n if(ax.rangebreaks) {\n var flip = ax._id.charAt(0) === 'y';\n\n var fontSize = 1; // one pixel minimum\n if(ax.tickmode === 'auto') {\n fontSize = ax.tickfont ? ax.tickfont.size : 12;\n }\n\n var prevL = NaN;\n for(i = tickVals.length - 1; i > -1; i--) {\n if(tickVals[i].drop) {\n tickVals.splice(i, 1);\n continue;\n }\n\n tickVals[i].value = moveOutsideBreak(tickVals[i].value, ax);\n\n // avoid overlaps\n var l = ax.c2p(tickVals[i].value);\n if(flip ?\n (prevL > l - fontSize) :\n (prevL < l + fontSize)\n ) { // ensure one pixel minimum\n tickVals.splice(axrev ? i + 1 : i, 1);\n } else {\n prevL = l;\n }\n }\n }\n\n // If same angle over a full circle, the last tick vals is a duplicate.\n // TODO must do something similar for angular date axes.\n if(isAngular(ax) && Math.abs(rng[1] - rng[0]) === 360) {\n tickVals.pop();\n }\n\n // save the last tick as well as first, so we can\n // show the exponent only on the last one\n ax._tmax = (tickVals[tickVals.length - 1] || {}).value;\n\n // for showing the rest of a date when the main tick label is only the\n // latter part: ax._prevDateHead holds what we showed most recently.\n // Start with it cleared and mark that we're in calcTicks (ie calculating a\n // whole string of these so we should care what the previous date head was!)\n ax._prevDateHead = '';\n ax._inCalcTicks = true;\n\n var ticksOut = [];\n var t, p;\n for(i = 0; i < tickVals.length; i++) {\n var _minor = tickVals[i].minor;\n var _value = tickVals[i].value;\n\n t = axes.tickText(\n ax,\n _value,\n false, // hover\n _minor // noSuffixPrefix\n );\n\n p = tickVals[i].periodX;\n if(p !== undefined) {\n t.periodX = p;\n if(p > maxRange || p < minRange) { // hide label if outside the range\n if(p > maxRange) t.periodX = maxRange;\n if(p < minRange) t.periodX = minRange;\n\n t.text = ' '; // don't use an empty string here which can confuse automargin (issue 5132)\n ax._prevDateHead = '';\n }\n }\n\n ticksOut.push(t);\n }\n\n ax._inCalcTicks = false;\n\n return ticksOut;\n};\n\nfunction arrayTicks(ax) {\n var vals = ax.tickvals;\n var text = ax.ticktext;\n var ticksOut = new Array(vals.length);\n var rng = Lib.simpleMap(ax.range, ax.r2l);\n var exRng = expandRange(rng);\n var tickMin = Math.min(exRng[0], exRng[1]);\n var tickMax = Math.max(exRng[0], exRng[1]);\n var j = 0;\n\n // without a text array, just format the given values as any other ticks\n // except with more precision to the numbers\n if(!Array.isArray(text)) text = [];\n\n // make sure showing ticks doesn't accidentally add new categories\n // TODO multicategory, if we allow ticktext / tickvals\n var tickVal2l = ax.type === 'category' ? ax.d2l_noadd : ax.d2l;\n\n // array ticks on log axes always show the full number\n // (if no explicit ticktext overrides it)\n if(ax.type === 'log' && String(ax.dtick).charAt(0) !== 'L') {\n ax.dtick = 'L' + Math.pow(10, Math.floor(Math.min(ax.range[0], ax.range[1])) - 1);\n }\n\n for(var i = 0; i < vals.length; i++) {\n var vali = tickVal2l(vals[i]);\n if(vali > tickMin && vali < tickMax) {\n if(text[i] === undefined) ticksOut[j] = axes.tickText(ax, vali);\n else ticksOut[j] = tickTextObj(ax, vali, String(text[i]));\n j++;\n }\n }\n\n if(j < vals.length) ticksOut.splice(j, vals.length - j);\n\n if(ax.rangebreaks) {\n // remove ticks falling inside rangebreaks\n ticksOut = ticksOut.filter(function(d) {\n return ax.maskBreaks(d.x) !== BADNUM;\n });\n }\n\n return ticksOut;\n}\n\nvar roundBase10 = [2, 5, 10];\nvar roundBase24 = [1, 2, 3, 6, 12];\nvar roundBase60 = [1, 2, 5, 10, 15, 30];\n// 2&3 day ticks are weird, but need something btwn 1&7\nvar roundDays = [1, 2, 3, 7, 14];\n// approx. tick positions for log axes, showing all (1) and just 1, 2, 5 (2)\n// these don't have to be exact, just close enough to round to the right value\nvar roundLog1 = [-0.046, 0, 0.301, 0.477, 0.602, 0.699, 0.778, 0.845, 0.903, 0.954, 1];\nvar roundLog2 = [-0.301, 0, 0.301, 0.699, 1];\n// N.B. `thetaunit; 'radians' angular axes must be converted to degrees\nvar roundAngles = [15, 30, 45, 90, 180];\n\nfunction roundDTick(roughDTick, base, roundingSet) {\n return base * Lib.roundUp(roughDTick / base, roundingSet);\n}\n\n// autoTicks: calculate best guess at pleasant ticks for this axis\n// inputs:\n// ax - an axis object\n// roughDTick - rough tick spacing (to be turned into a nice round number)\n// outputs (into ax):\n// tick0: starting point for ticks (not necessarily on the graph)\n// usually 0 for numeric (=10^0=1 for log) or jan 1, 2000 for dates\n// dtick: the actual, nice round tick spacing, usually a little larger than roughDTick\n// if the ticks are spaced linearly (linear scale, categories,\n// log with only full powers, date ticks < month),\n// this will just be a number\n// months: M#\n// years: M# where # is 12*number of years\n// log with linear ticks: L# where # is the linear tick spacing\n// log showing powers plus some intermediates:\n// D1 shows all digits, D2 shows 2 and 5\naxes.autoTicks = function(ax, roughDTick) {\n var base;\n\n function getBase(v) {\n return Math.pow(v, Math.floor(Math.log(roughDTick) / Math.LN10));\n }\n\n if(ax.type === 'date') {\n ax.tick0 = Lib.dateTick0(ax.calendar, 0);\n\n // the criteria below are all based on the rough spacing we calculate\n // being > half of the final unit - so precalculate twice the rough val\n var roughX2 = 2 * roughDTick;\n\n if(roughX2 > ONEAVGYEAR) {\n roughDTick /= ONEAVGYEAR;\n base = getBase(10);\n ax.dtick = 'M' + (12 * roundDTick(roughDTick, base, roundBase10));\n } else if(roughX2 > ONEAVGMONTH) {\n roughDTick /= ONEAVGMONTH;\n ax.dtick = 'M' + roundDTick(roughDTick, 1, roundBase24);\n } else if(roughX2 > ONEDAY) {\n ax.dtick = roundDTick(roughDTick, ONEDAY, ax._hasDayOfWeekBreaks ? [1, 2, 7, 14] : roundDays);\n // get week ticks on sunday\n // this will also move the base tick off 2000-01-01 if dtick is\n // 2 or 3 days... but that's a weird enough case that we'll ignore it.\n var tickformat = axes.getTickFormat(ax);\n var isPeriod = ax.ticklabelmode === 'period';\n if(isPeriod) ax._rawTick0 = ax.tick0;\n\n if(/%[uVW]/.test(tickformat)) {\n ax.tick0 = Lib.dateTick0(ax.calendar, 2); // Monday\n } else {\n ax.tick0 = Lib.dateTick0(ax.calendar, 1); // Sunday\n }\n\n if(isPeriod) ax._dowTick0 = ax.tick0;\n } else if(roughX2 > ONEHOUR) {\n ax.dtick = roundDTick(roughDTick, ONEHOUR, roundBase24);\n } else if(roughX2 > ONEMIN) {\n ax.dtick = roundDTick(roughDTick, ONEMIN, roundBase60);\n } else if(roughX2 > ONESEC) {\n ax.dtick = roundDTick(roughDTick, ONESEC, roundBase60);\n } else {\n // milliseconds\n base = getBase(10);\n ax.dtick = roundDTick(roughDTick, base, roundBase10);\n }\n } else if(ax.type === 'log') {\n ax.tick0 = 0;\n var rng = Lib.simpleMap(ax.range, ax.r2l);\n\n if(roughDTick > 0.7) {\n // only show powers of 10\n ax.dtick = Math.ceil(roughDTick);\n } else if(Math.abs(rng[1] - rng[0]) < 1) {\n // span is less than one power of 10\n var nt = 1.5 * Math.abs((rng[1] - rng[0]) / roughDTick);\n\n // ticks on a linear scale, labeled fully\n roughDTick = Math.abs(Math.pow(10, rng[1]) -\n Math.pow(10, rng[0])) / nt;\n base = getBase(10);\n ax.dtick = 'L' + roundDTick(roughDTick, base, roundBase10);\n } else {\n // include intermediates between powers of 10,\n // labeled with small digits\n // ax.dtick = \"D2\" (show 2 and 5) or \"D1\" (show all digits)\n ax.dtick = (roughDTick > 0.3) ? 'D2' : 'D1';\n }\n } else if(ax.type === 'category' || ax.type === 'multicategory') {\n ax.tick0 = 0;\n ax.dtick = Math.ceil(Math.max(roughDTick, 1));\n } else if(isAngular(ax)) {\n ax.tick0 = 0;\n base = 1;\n ax.dtick = roundDTick(roughDTick, base, roundAngles);\n } else {\n // auto ticks always start at 0\n ax.tick0 = 0;\n base = getBase(10);\n ax.dtick = roundDTick(roughDTick, base, roundBase10);\n }\n\n // prevent infinite loops\n if(ax.dtick === 0) ax.dtick = 1;\n\n // TODO: this is from log axis histograms with autorange off\n if(!isNumeric(ax.dtick) && typeof ax.dtick !== 'string') {\n var olddtick = ax.dtick;\n ax.dtick = 1;\n throw 'ax.dtick error: ' + String(olddtick);\n }\n};\n\n// after dtick is already known, find tickround = precision\n// to display in tick labels\n// for numeric ticks, integer # digits after . to round to\n// for date ticks, the last date part to show (y,m,d,H,M,S)\n// or an integer # digits past seconds\nfunction autoTickRound(ax) {\n var dtick = ax.dtick;\n\n ax._tickexponent = 0;\n if(!isNumeric(dtick) && typeof dtick !== 'string') {\n dtick = 1;\n }\n\n if(ax.type === 'category' || ax.type === 'multicategory') {\n ax._tickround = null;\n }\n if(ax.type === 'date') {\n // If tick0 is unusual, give tickround a bit more information\n // not necessarily *all* the information in tick0 though, if it's really odd\n // minimal string length for tick0: 'd' is 10, 'M' is 16, 'S' is 19\n // take off a leading minus (year < 0) and i (intercalary month) so length is consistent\n var tick0ms = ax.r2l(ax.tick0);\n var tick0str = ax.l2r(tick0ms).replace(/(^-|i)/g, '');\n var tick0len = tick0str.length;\n\n if(String(dtick).charAt(0) === 'M') {\n // any tick0 more specific than a year: alway show the full date\n if(tick0len > 10 || tick0str.substr(5) !== '01-01') ax._tickround = 'd';\n // show the month unless ticks are full multiples of a year\n else ax._tickround = (+(dtick.substr(1)) % 12 === 0) ? 'y' : 'm';\n } else if((dtick >= ONEDAY && tick0len <= 10) || (dtick >= ONEDAY * 15)) ax._tickround = 'd';\n else if((dtick >= ONEMIN && tick0len <= 16) || (dtick >= ONEHOUR)) ax._tickround = 'M';\n else if((dtick >= ONESEC && tick0len <= 19) || (dtick >= ONEMIN)) ax._tickround = 'S';\n else {\n // tickround is a number of digits of fractional seconds\n // of any two adjacent ticks, at least one will have the maximum fractional digits\n // of all possible ticks - so take the max. length of tick0 and the next one\n var tick1len = ax.l2r(tick0ms + dtick).replace(/^-/, '').length;\n ax._tickround = Math.max(tick0len, tick1len) - 20;\n\n // We shouldn't get here... but in case there's a situation I'm\n // not thinking of where tick0str and tick1str are identical or\n // something, fall back on maximum precision\n if(ax._tickround < 0) ax._tickround = 4;\n }\n } else if(isNumeric(dtick) || dtick.charAt(0) === 'L') {\n // linear or log (except D1, D2)\n var rng = ax.range.map(ax.r2d || Number);\n if(!isNumeric(dtick)) dtick = Number(dtick.substr(1));\n // 2 digits past largest digit of dtick\n ax._tickround = 2 - Math.floor(Math.log(dtick) / Math.LN10 + 0.01);\n\n var maxend = Math.max(Math.abs(rng[0]), Math.abs(rng[1]));\n var rangeexp = Math.floor(Math.log(maxend) / Math.LN10 + 0.01);\n var minexponent = ax.minexponent === undefined ? 3 : ax.minexponent;\n if(Math.abs(rangeexp) > minexponent) {\n if(isSIFormat(ax.exponentformat) && !beyondSI(rangeexp)) {\n ax._tickexponent = 3 * Math.round((rangeexp - 1) / 3);\n } else ax._tickexponent = rangeexp;\n }\n } else {\n // D1 or D2 (log)\n ax._tickround = null;\n }\n}\n\n// months and years don't have constant millisecond values\n// (but a year is always 12 months so we only need months)\n// log-scale ticks are also not consistently spaced, except\n// for pure powers of 10\n// numeric ticks always have constant differences, other datetime ticks\n// can all be calculated as constant number of milliseconds\naxes.tickIncrement = function(x, dtick, axrev, calendar) {\n var axSign = axrev ? -1 : 1;\n\n // includes linear, all dates smaller than month, and pure 10^n in log\n if(isNumeric(dtick)) return Lib.increment(x, axSign * dtick);\n\n // everything else is a string, one character plus a number\n var tType = dtick.charAt(0);\n var dtSigned = axSign * Number(dtick.substr(1));\n\n // Dates: months (or years - see Lib.incrementMonth)\n if(tType === 'M') return Lib.incrementMonth(x, dtSigned, calendar);\n\n // Log scales: Linear, Digits\n if(tType === 'L') return Math.log(Math.pow(10, x) + dtSigned) / Math.LN10;\n\n // log10 of 2,5,10, or all digits (logs just have to be\n // close enough to round)\n if(tType === 'D') {\n var tickset = (dtick === 'D2') ? roundLog2 : roundLog1;\n var x2 = x + axSign * 0.01;\n var frac = Lib.roundUp(Lib.mod(x2, 1), tickset, axrev);\n\n return Math.floor(x2) +\n Math.log(d3.round(Math.pow(10, frac), 1)) / Math.LN10;\n }\n\n throw 'unrecognized dtick ' + String(dtick);\n};\n\n// calculate the first tick on an axis\naxes.tickFirst = function(ax, opts) {\n var r2l = ax.r2l || Number;\n var rng = Lib.simpleMap(ax.range, r2l, undefined, undefined, opts);\n var axrev = rng[1] < rng[0];\n var sRound = axrev ? Math.floor : Math.ceil;\n // add a tiny extra bit to make sure we get ticks\n // that may have been rounded out\n var r0 = expandRange(rng)[0];\n var dtick = ax.dtick;\n var tick0 = r2l(ax.tick0);\n\n if(isNumeric(dtick)) {\n var tmin = sRound((r0 - tick0) / dtick) * dtick + tick0;\n\n // make sure no ticks outside the category list\n if(ax.type === 'category' || ax.type === 'multicategory') {\n tmin = Lib.constrain(tmin, 0, ax._categories.length - 1);\n }\n return tmin;\n }\n\n var tType = dtick.charAt(0);\n var dtNum = Number(dtick.substr(1));\n\n // Dates: months (or years)\n if(tType === 'M') {\n var cnt = 0;\n var t0 = tick0;\n var t1, mult, newDTick;\n\n // This algorithm should work for *any* nonlinear (but close to linear!)\n // tick spacing. Limit to 10 iterations, for gregorian months it's normally <=3.\n while(cnt < 10) {\n t1 = axes.tickIncrement(t0, dtick, axrev, ax.calendar);\n if((t1 - r0) * (t0 - r0) <= 0) {\n // t1 and t0 are on opposite sides of r0! we've succeeded!\n if(axrev) return Math.min(t0, t1);\n return Math.max(t0, t1);\n }\n mult = (r0 - ((t0 + t1) / 2)) / (t1 - t0);\n newDTick = tType + ((Math.abs(Math.round(mult)) || 1) * dtNum);\n t0 = axes.tickIncrement(t0, newDTick, mult < 0 ? !axrev : axrev, ax.calendar);\n cnt++;\n }\n Lib.error('tickFirst did not converge', ax);\n return t0;\n } else if(tType === 'L') {\n // Log scales: Linear, Digits\n\n return Math.log(sRound(\n (Math.pow(10, r0) - tick0) / dtNum) * dtNum + tick0) / Math.LN10;\n } else if(tType === 'D') {\n var tickset = (dtick === 'D2') ? roundLog2 : roundLog1;\n var frac = Lib.roundUp(Lib.mod(r0, 1), tickset, axrev);\n\n return Math.floor(r0) +\n Math.log(d3.round(Math.pow(10, frac), 1)) / Math.LN10;\n } else throw 'unrecognized dtick ' + String(dtick);\n};\n\n// draw the text for one tick.\n// px,py are the location on gd.paper\n// prefix is there so the x axis ticks can be dropped a line\n// ax is the axis layout, x is the tick value\n// hover is a (truthy) flag for whether to show numbers with a bit\n// more precision for hovertext\naxes.tickText = function(ax, x, hover, noSuffixPrefix) {\n var out = tickTextObj(ax, x);\n var arrayMode = ax.tickmode === 'array';\n var extraPrecision = hover || arrayMode;\n var axType = ax.type;\n // TODO multicategory, if we allow ticktext / tickvals\n var tickVal2l = axType === 'category' ? ax.d2l_noadd : ax.d2l;\n var i;\n\n if(arrayMode && Array.isArray(ax.ticktext)) {\n var rng = Lib.simpleMap(ax.range, ax.r2l);\n var minDiff = (Math.abs(rng[1] - rng[0]) - (ax._lBreaks || 0)) / 10000;\n\n for(i = 0; i < ax.ticktext.length; i++) {\n if(Math.abs(x - tickVal2l(ax.tickvals[i])) < minDiff) break;\n }\n if(i < ax.ticktext.length) {\n out.text = String(ax.ticktext[i]);\n return out;\n }\n }\n\n function isHidden(showAttr) {\n if(showAttr === undefined) return true;\n if(hover) return showAttr === 'none';\n\n var firstOrLast = {\n first: ax._tmin,\n last: ax._tmax\n }[showAttr];\n\n return showAttr !== 'all' && x !== firstOrLast;\n }\n\n var hideexp = hover ?\n 'never' :\n ax.exponentformat !== 'none' && isHidden(ax.showexponent) ? 'hide' : '';\n\n if(axType === 'date') formatDate(ax, out, hover, extraPrecision);\n else if(axType === 'log') formatLog(ax, out, hover, extraPrecision, hideexp);\n else if(axType === 'category') formatCategory(ax, out);\n else if(axType === 'multicategory') formatMultiCategory(ax, out, hover);\n else if(isAngular(ax)) formatAngle(ax, out, hover, extraPrecision, hideexp);\n else formatLinear(ax, out, hover, extraPrecision, hideexp);\n\n // add prefix and suffix\n if(!noSuffixPrefix) {\n if(ax.tickprefix && !isHidden(ax.showtickprefix)) out.text = ax.tickprefix + out.text;\n if(ax.ticksuffix && !isHidden(ax.showticksuffix)) out.text += ax.ticksuffix;\n }\n\n // Setup ticks and grid lines boundaries\n // at 1/2 a 'category' to the left/bottom\n if(ax.tickson === 'boundaries' || ax.showdividers) {\n var inbounds = function(v) {\n var p = ax.l2p(v);\n return p >= 0 && p <= ax._length ? v : null;\n };\n\n out.xbnd = [\n inbounds(out.x - 0.5),\n inbounds(out.x + ax.dtick - 0.5)\n ];\n }\n\n return out;\n};\n\n/**\n * create text for a hover label on this axis, with special handling of\n * log axes (where negative values can't be displayed but can appear in hover text)\n *\n * @param {object} ax: the axis to format text for\n * @param {number or array of numbers} values: calcdata value(s) to format\n * @param {Optional(string)} hoverformat: trace (x|y)hoverformat to override axis.hoverformat\n *\n * @returns {string} `val` formatted as a string appropriate to this axis, or\n * first value and second value as a range (ie ' - ') if the second value is provided and\n * it's different from the first value.\n */\naxes.hoverLabelText = function(ax, values, hoverformat) {\n if(hoverformat) ax = Lib.extendFlat({}, ax, {hoverformat: hoverformat});\n\n var val = Array.isArray(values) ? values[0] : values;\n var val2 = Array.isArray(values) ? values[1] : undefined;\n if(val2 !== undefined && val2 !== val) {\n return (\n axes.hoverLabelText(ax, val, hoverformat) + ' - ' +\n axes.hoverLabelText(ax, val2, hoverformat)\n );\n }\n\n var logOffScale = (ax.type === 'log' && val <= 0);\n var tx = axes.tickText(ax, ax.c2l(logOffScale ? -val : val), 'hover').text;\n\n if(logOffScale) {\n return val === 0 ? '0' : MINUS_SIGN + tx;\n }\n\n // TODO: should we do something special if the axis calendar and\n // the data calendar are different? Somehow display both dates with\n // their system names? Right now it will just display in the axis calendar\n // but users could add the other one as text.\n return tx;\n};\n\nfunction tickTextObj(ax, x, text) {\n var tf = ax.tickfont || {};\n\n return {\n x: x,\n dx: 0,\n dy: 0,\n text: text || '',\n fontSize: tf.size,\n font: tf.family,\n fontColor: tf.color\n };\n}\n\nfunction formatDate(ax, out, hover, extraPrecision) {\n var tr = ax._tickround;\n var fmt = (hover && ax.hoverformat) || axes.getTickFormat(ax);\n\n if(extraPrecision) {\n // second or sub-second precision: extra always shows max digits.\n // for other fields, extra precision just adds one field.\n if(isNumeric(tr)) tr = 4;\n else tr = {y: 'm', m: 'd', d: 'M', M: 'S', S: 4}[tr];\n }\n\n var dateStr = Lib.formatDate(out.x, fmt, tr, ax._dateFormat, ax.calendar, ax._extraFormat);\n var headStr;\n\n var splitIndex = dateStr.indexOf('\\n');\n if(splitIndex !== -1) {\n headStr = dateStr.substr(splitIndex + 1);\n dateStr = dateStr.substr(0, splitIndex);\n }\n\n if(extraPrecision) {\n // if extraPrecision led to trailing zeros, strip them off\n // actually, this can lead to removing even more zeros than\n // in the original rounding, but that's fine because in these\n // contexts uniformity is not so important (if there's even\n // anything to be uniform with!)\n\n // can we remove the whole time part?\n if(dateStr === '00:00:00' || dateStr === '00:00') {\n dateStr = headStr;\n headStr = '';\n } else if(dateStr.length === 8) {\n // strip off seconds if they're zero (zero fractional seconds\n // are already omitted)\n // but we never remove minutes and leave just hours\n dateStr = dateStr.replace(/:00$/, '');\n }\n }\n\n if(headStr) {\n if(hover) {\n // hover puts it all on one line, so headPart works best up front\n // except for year headPart: turn this into \"Jan 1, 2000\" etc.\n if(tr === 'd') dateStr += ', ' + headStr;\n else dateStr = headStr + (dateStr ? ', ' + dateStr : '');\n } else {\n if(\n !ax._inCalcTicks ||\n ax._prevDateHead !== headStr\n ) {\n ax._prevDateHead = headStr;\n dateStr += '
' + headStr;\n } else {\n var isInside = insideTicklabelposition(ax);\n var side = ax._trueSide || ax.side; // polar mocks the side of the radial axis\n if(\n (!isInside && side === 'top') ||\n (isInside && side === 'bottom')\n ) {\n dateStr += '
';\n }\n }\n }\n }\n\n out.text = dateStr;\n}\n\nfunction formatLog(ax, out, hover, extraPrecision, hideexp) {\n var dtick = ax.dtick;\n var x = out.x;\n var tickformat = ax.tickformat;\n var dtChar0 = typeof dtick === 'string' && dtick.charAt(0);\n\n if(hideexp === 'never') {\n // If this is a hover label, then we must *never* hide the exponent\n // for the sake of display, which could give the wrong value by\n // potentially many orders of magnitude. If hideexp was 'never', then\n // it's now succeeded by preventing the other condition from automating\n // this choice. Thus we can unset it so that the axis formatting takes\n // precedence.\n hideexp = '';\n }\n\n if(extraPrecision && (dtChar0 !== 'L')) {\n dtick = 'L3';\n dtChar0 = 'L';\n }\n\n if(tickformat || (dtChar0 === 'L')) {\n out.text = numFormat(Math.pow(10, x), ax, hideexp, extraPrecision);\n } else if(isNumeric(dtick) || ((dtChar0 === 'D') && (Lib.mod(x + 0.01, 1) < 0.1))) {\n var p = Math.round(x);\n var absP = Math.abs(p);\n var exponentFormat = ax.exponentformat;\n if(exponentFormat === 'power' || (isSIFormat(exponentFormat) && beyondSI(p))) {\n if(p === 0) out.text = 1;\n else if(p === 1) out.text = '10';\n else out.text = '10' + (p > 1 ? '' : MINUS_SIGN) + absP + '';\n\n out.fontSize *= 1.25;\n } else if((exponentFormat === 'e' || exponentFormat === 'E') && absP > 2) {\n out.text = '1' + exponentFormat + (p > 0 ? '+' : MINUS_SIGN) + absP;\n } else {\n out.text = numFormat(Math.pow(10, x), ax, '', 'fakehover');\n if(dtick === 'D1' && ax._id.charAt(0) === 'y') {\n out.dy -= out.fontSize / 6;\n }\n }\n } else if(dtChar0 === 'D') {\n out.text = String(Math.round(Math.pow(10, Lib.mod(x, 1))));\n out.fontSize *= 0.75;\n } else throw 'unrecognized dtick ' + String(dtick);\n\n // if 9's are printed on log scale, move the 10's away a bit\n if(ax.dtick === 'D1') {\n var firstChar = String(out.text).charAt(0);\n if(firstChar === '0' || firstChar === '1') {\n if(ax._id.charAt(0) === 'y') {\n out.dx -= out.fontSize / 4;\n } else {\n out.dy += out.fontSize / 2;\n out.dx += (ax.range[1] > ax.range[0] ? 1 : -1) *\n out.fontSize * (x < 0 ? 0.5 : 0.25);\n }\n }\n }\n}\n\nfunction formatCategory(ax, out) {\n var tt = ax._categories[Math.round(out.x)];\n if(tt === undefined) tt = '';\n out.text = String(tt);\n}\n\nfunction formatMultiCategory(ax, out, hover) {\n var v = Math.round(out.x);\n var cats = ax._categories[v] || [];\n var tt = cats[1] === undefined ? '' : String(cats[1]);\n var tt2 = cats[0] === undefined ? '' : String(cats[0]);\n\n if(hover) {\n // TODO is this what we want?\n out.text = tt2 + ' - ' + tt;\n } else {\n // setup for secondary labels\n out.text = tt;\n out.text2 = tt2;\n }\n}\n\nfunction formatLinear(ax, out, hover, extraPrecision, hideexp) {\n if(hideexp === 'never') {\n // If this is a hover label, then we must *never* hide the exponent\n // for the sake of display, which could give the wrong value by\n // potentially many orders of magnitude. If hideexp was 'never', then\n // it's now succeeded by preventing the other condition from automating\n // this choice. Thus we can unset it so that the axis formatting takes\n // precedence.\n hideexp = '';\n } else if(ax.showexponent === 'all' && Math.abs(out.x / ax.dtick) < 1e-6) {\n // don't add an exponent to zero if we're showing all exponents\n // so the only reason you'd show an exponent on zero is if it's the\n // ONLY tick to get an exponent (first or last)\n hideexp = 'hide';\n }\n out.text = numFormat(out.x, ax, hideexp, extraPrecision);\n}\n\nfunction formatAngle(ax, out, hover, extraPrecision, hideexp) {\n if(ax.thetaunit === 'radians' && !hover) {\n var num = out.x / 180;\n\n if(num === 0) {\n out.text = '0';\n } else {\n var frac = num2frac(num);\n\n if(frac[1] >= 100) {\n out.text = numFormat(Lib.deg2rad(out.x), ax, hideexp, extraPrecision);\n } else {\n var isNeg = out.x < 0;\n\n if(frac[1] === 1) {\n if(frac[0] === 1) out.text = 'π';\n else out.text = frac[0] + 'π';\n } else {\n out.text = [\n '', frac[0], '',\n '⁄',\n '', frac[1], '',\n 'π'\n ].join('');\n }\n\n if(isNeg) out.text = MINUS_SIGN + out.text;\n }\n }\n } else {\n out.text = numFormat(out.x, ax, hideexp, extraPrecision);\n }\n}\n\n// inspired by\n// https://github.com/yisibl/num2fraction/blob/master/index.js\nfunction num2frac(num) {\n function almostEq(a, b) {\n return Math.abs(a - b) <= 1e-6;\n }\n\n function findGCD(a, b) {\n return almostEq(b, 0) ? a : findGCD(b, a % b);\n }\n\n function findPrecision(n) {\n var e = 1;\n while(!almostEq(Math.round(n * e) / e, n)) {\n e *= 10;\n }\n return e;\n }\n\n var precision = findPrecision(num);\n var number = num * precision;\n var gcd = Math.abs(findGCD(number, precision));\n\n return [\n // numerator\n Math.round(number / gcd),\n // denominator\n Math.round(precision / gcd)\n ];\n}\n\n// format a number (tick value) according to the axis settings\n// new, more reliable procedure than d3.round or similar:\n// add half the rounding increment, then stringify and truncate\n// also automatically switch to sci. notation\nvar SIPREFIXES = ['f', 'p', 'n', 'μ', 'm', '', 'k', 'M', 'G', 'T'];\n\nfunction isSIFormat(exponentFormat) {\n return exponentFormat === 'SI' || exponentFormat === 'B';\n}\n\n// are we beyond the range of common SI prefixes?\n// 10^-16 -> 1x10^-16\n// 10^-15 -> 1f\n// ...\n// 10^14 -> 100T\n// 10^15 -> 1x10^15\n// 10^16 -> 1x10^16\nfunction beyondSI(exponent) {\n return exponent > 14 || exponent < -15;\n}\n\nfunction numFormat(v, ax, fmtoverride, hover) {\n var isNeg = v < 0;\n // max number of digits past decimal point to show\n var tickRound = ax._tickround;\n var exponentFormat = fmtoverride || ax.exponentformat || 'B';\n var exponent = ax._tickexponent;\n var tickformat = axes.getTickFormat(ax);\n var separatethousands = ax.separatethousands;\n\n // special case for hover: set exponent just for this value, and\n // add a couple more digits of precision over tick labels\n if(hover) {\n // make a dummy axis obj to get the auto rounding and exponent\n var ah = {\n exponentformat: exponentFormat,\n minexponent: ax.minexponent,\n dtick: ax.showexponent === 'none' ? ax.dtick :\n (isNumeric(v) ? Math.abs(v) || 1 : 1),\n // if not showing any exponents, don't change the exponent\n // from what we calculate\n range: ax.showexponent === 'none' ? ax.range.map(ax.r2d) : [0, v || 1]\n };\n autoTickRound(ah);\n tickRound = (Number(ah._tickround) || 0) + 4;\n exponent = ah._tickexponent;\n if(ax.hoverformat) tickformat = ax.hoverformat;\n }\n\n if(tickformat) return ax._numFormat(tickformat)(v).replace(/-/g, MINUS_SIGN);\n\n // 'epsilon' - rounding increment\n var e = Math.pow(10, -tickRound) / 2;\n\n // exponentFormat codes:\n // 'e' (1.2e+6, default)\n // 'E' (1.2E+6)\n // 'SI' (1.2M)\n // 'B' (same as SI except 10^9=B not G)\n // 'none' (1200000)\n // 'power' (1.2x10^6)\n // 'hide' (1.2, use 3rd argument=='hide' to eg\n // only show exponent on last tick)\n if(exponentFormat === 'none') exponent = 0;\n\n // take the sign out, put it back manually at the end\n // - makes cases easier\n v = Math.abs(v);\n if(v < e) {\n // 0 is just 0, but may get exponent if it's the last tick\n v = '0';\n isNeg = false;\n } else {\n v += e;\n // take out a common exponent, if any\n if(exponent) {\n v *= Math.pow(10, -exponent);\n tickRound += exponent;\n }\n // round the mantissa\n if(tickRound === 0) v = String(Math.floor(v));\n else if(tickRound < 0) {\n v = String(Math.round(v));\n v = v.substr(0, v.length + tickRound);\n for(var i = tickRound; i < 0; i++) v += '0';\n } else {\n v = String(v);\n var dp = v.indexOf('.') + 1;\n if(dp) v = v.substr(0, dp + tickRound).replace(/\\.?0+$/, '');\n }\n // insert appropriate decimal point and thousands separator\n v = Lib.numSeparate(v, ax._separators, separatethousands);\n }\n\n // add exponent\n if(exponent && exponentFormat !== 'hide') {\n if(isSIFormat(exponentFormat) && beyondSI(exponent)) exponentFormat = 'power';\n\n var signedExponent;\n if(exponent < 0) signedExponent = MINUS_SIGN + -exponent;\n else if(exponentFormat !== 'power') signedExponent = '+' + exponent;\n else signedExponent = String(exponent);\n\n if(exponentFormat === 'e' || exponentFormat === 'E') {\n v += exponentFormat + signedExponent;\n } else if(exponentFormat === 'power') {\n v += '×10' + signedExponent + '';\n } else if(exponentFormat === 'B' && exponent === 9) {\n v += 'B';\n } else if(isSIFormat(exponentFormat)) {\n v += SIPREFIXES[exponent / 3 + 5];\n }\n }\n\n // put sign back in and return\n // replace standard minus character (which is technically a hyphen)\n // with a true minus sign\n if(isNeg) return MINUS_SIGN + v;\n return v;\n}\n\naxes.getTickFormat = function(ax) {\n var i;\n\n function convertToMs(dtick) {\n return typeof dtick !== 'string' ? dtick : Number(dtick.replace('M', '')) * ONEAVGMONTH;\n }\n\n function compareLogTicks(left, right) {\n var priority = ['L', 'D'];\n if(typeof left === typeof right) {\n if(typeof left === 'number') {\n return left - right;\n } else {\n var leftPriority = priority.indexOf(left.charAt(0));\n var rightPriority = priority.indexOf(right.charAt(0));\n if(leftPriority === rightPriority) {\n return Number(left.replace(/(L|D)/g, '')) - Number(right.replace(/(L|D)/g, ''));\n } else {\n return leftPriority - rightPriority;\n }\n }\n } else {\n return typeof left === 'number' ? 1 : -1;\n }\n }\n\n function isProperStop(dtick, range, convert) {\n var convertFn = convert || function(x) { return x;};\n var leftDtick = range[0];\n var rightDtick = range[1];\n return ((!leftDtick && typeof leftDtick !== 'number') || convertFn(leftDtick) <= convertFn(dtick)) &&\n ((!rightDtick && typeof rightDtick !== 'number') || convertFn(rightDtick) >= convertFn(dtick));\n }\n\n function isProperLogStop(dtick, range) {\n var isLeftDtickNull = range[0] === null;\n var isRightDtickNull = range[1] === null;\n var isDtickInRangeLeft = compareLogTicks(dtick, range[0]) >= 0;\n var isDtickInRangeRight = compareLogTicks(dtick, range[1]) <= 0;\n return (isLeftDtickNull || isDtickInRangeLeft) && (isRightDtickNull || isDtickInRangeRight);\n }\n\n var tickstop, stopi;\n if(ax.tickformatstops && ax.tickformatstops.length > 0) {\n switch(ax.type) {\n case 'date':\n case 'linear': {\n for(i = 0; i < ax.tickformatstops.length; i++) {\n stopi = ax.tickformatstops[i];\n if(stopi.enabled && isProperStop(ax.dtick, stopi.dtickrange, convertToMs)) {\n tickstop = stopi;\n break;\n }\n }\n break;\n }\n case 'log': {\n for(i = 0; i < ax.tickformatstops.length; i++) {\n stopi = ax.tickformatstops[i];\n if(stopi.enabled && isProperLogStop(ax.dtick, stopi.dtickrange)) {\n tickstop = stopi;\n break;\n }\n }\n break;\n }\n default:\n }\n }\n return tickstop ? tickstop.value : ax.tickformat;\n};\n\n// getSubplots - extract all subplot IDs we need\n// as an array of items like 'xy', 'x2y', 'x2y2'...\n// sorted by x (x,x2,x3...) then y\n// optionally restrict to only subplots containing axis object ax\n//\n// NOTE: this is currently only used OUTSIDE plotly.js (toolpanel, webapp)\n// ideally we get rid of it there (or just copy this there) and remove it here\naxes.getSubplots = function(gd, ax) {\n var subplotObj = gd._fullLayout._subplots;\n var allSubplots = subplotObj.cartesian.concat(subplotObj.gl2d || []);\n\n var out = ax ? axes.findSubplotsWithAxis(allSubplots, ax) : allSubplots;\n\n out.sort(function(a, b) {\n var aParts = a.substr(1).split('y');\n var bParts = b.substr(1).split('y');\n\n if(aParts[0] === bParts[0]) return +aParts[1] - +bParts[1];\n return +aParts[0] - +bParts[0];\n });\n\n return out;\n};\n\n// find all subplots with axis 'ax'\n// NOTE: this is only used in axes.getSubplots (only used outside plotly.js) and\n// gl2d/convert (where it restricts axis subplots to only those with gl2d)\naxes.findSubplotsWithAxis = function(subplots, ax) {\n var axMatch = new RegExp(\n (ax._id.charAt(0) === 'x') ? ('^' + ax._id + 'y') : (ax._id + '$')\n );\n var subplotsWithAx = [];\n\n for(var i = 0; i < subplots.length; i++) {\n var sp = subplots[i];\n if(axMatch.test(sp)) subplotsWithAx.push(sp);\n }\n\n return subplotsWithAx;\n};\n\n// makeClipPaths: prepare clipPaths for all single axes and all possible xy pairings\naxes.makeClipPaths = function(gd) {\n var fullLayout = gd._fullLayout;\n\n // for more info: https://github.com/plotly/plotly.js/issues/2595\n if(fullLayout._hasOnlyLargeSploms) return;\n\n var fullWidth = {_offset: 0, _length: fullLayout.width, _id: ''};\n var fullHeight = {_offset: 0, _length: fullLayout.height, _id: ''};\n var xaList = axes.list(gd, 'x', true);\n var yaList = axes.list(gd, 'y', true);\n var clipList = [];\n var i, j;\n\n for(i = 0; i < xaList.length; i++) {\n clipList.push({x: xaList[i], y: fullHeight});\n for(j = 0; j < yaList.length; j++) {\n if(i === 0) clipList.push({x: fullWidth, y: yaList[j]});\n clipList.push({x: xaList[i], y: yaList[j]});\n }\n }\n\n // selectors don't work right with camelCase tags,\n // have to use class instead\n // https://groups.google.com/forum/#!topic/d3-js/6EpAzQ2gU9I\n var axClips = fullLayout._clips.selectAll('.axesclip')\n .data(clipList, function(d) { return d.x._id + d.y._id; });\n\n axClips.enter().append('clipPath')\n .classed('axesclip', true)\n .attr('id', function(d) { return 'clip' + fullLayout._uid + d.x._id + d.y._id; })\n .append('rect');\n\n axClips.exit().remove();\n\n axClips.each(function(d) {\n d3.select(this).select('rect').attr({\n x: d.x._offset || 0,\n y: d.y._offset || 0,\n width: d.x._length || 1,\n height: d.y._length || 1\n });\n });\n};\n\n/**\n * Main multi-axis drawing routine!\n *\n * @param {DOM element} gd : graph div\n * @param {string or array of strings} arg : polymorphic argument\n * @param {object} opts:\n * - @param {boolean} skipTitle : optional flag to skip axis title draw/update\n *\n * Signature 1: Axes.draw(gd, 'redraw')\n * use this to clear and redraw all axes on graph\n *\n * Signature 2: Axes.draw(gd, '')\n * use this to draw all axes on graph w/o the selectAll().remove()\n * of the 'redraw' signature\n *\n * Signature 3: Axes.draw(gd, [axId, axId2, ...])\n * where the items are axis id string,\n * use this to update multiple axes in one call\n *\n * N.B draw updates:\n * - ax._r (stored range for use by zoom/pan)\n * - ax._rl (stored linearized range for use by zoom/pan)\n */\naxes.draw = function(gd, arg, opts) {\n var fullLayout = gd._fullLayout;\n\n if(arg === 'redraw') {\n fullLayout._paper.selectAll('g.subplot').each(function(d) {\n var id = d[0];\n var plotinfo = fullLayout._plots[id];\n if(plotinfo) {\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n\n plotinfo.xaxislayer.selectAll('.' + xa._id + 'tick').remove();\n plotinfo.yaxislayer.selectAll('.' + ya._id + 'tick').remove();\n plotinfo.xaxislayer.selectAll('.' + xa._id + 'tick2').remove();\n plotinfo.yaxislayer.selectAll('.' + ya._id + 'tick2').remove();\n plotinfo.xaxislayer.selectAll('.' + xa._id + 'divider').remove();\n plotinfo.yaxislayer.selectAll('.' + ya._id + 'divider').remove();\n\n if(plotinfo.gridlayer) plotinfo.gridlayer.selectAll('path').remove();\n if(plotinfo.zerolinelayer) plotinfo.zerolinelayer.selectAll('path').remove();\n\n fullLayout._infolayer.select('.g-' + xa._id + 'title').remove();\n fullLayout._infolayer.select('.g-' + ya._id + 'title').remove();\n }\n });\n }\n\n var axList = (!arg || arg === 'redraw') ? axes.listIds(gd) : arg;\n\n return Lib.syncOrAsync(axList.map(function(axId) {\n return function() {\n if(!axId) return;\n\n var ax = axes.getFromId(gd, axId);\n var axDone = axes.drawOne(gd, ax, opts);\n\n ax._r = ax.range.slice();\n ax._rl = Lib.simpleMap(ax._r, ax.r2l);\n\n return axDone;\n };\n }));\n};\n\n/**\n * Draw one cartesian axis\n *\n * @param {DOM element} gd\n * @param {object} ax (full) axis object\n * @param {object} opts\n * - @param {boolean} skipTitle (set to true to skip axis title draw call)\n *\n * Depends on:\n * - ax._mainSubplot (from linkSubplots)\n * - ax._mainAxis\n * - ax._anchorAxis\n * - ax._subplotsWith\n * - ax._counterDomainMin, ax._counterDomainMax (optionally, from linkSubplots)\n * - ax._tickAngles (on redraw only, old value relinked during supplyDefaults)\n * - ax._mainLinePosition (from lsInner)\n * - ax._mainMirrorPosition\n * - ax._linepositions\n *\n * Fills in:\n * - ax._vals:\n * - ax._gridVals:\n * - ax._selections:\n * - ax._tickAngles:\n * - ax._depth (when required only):\n * - and calls ax.setScale\n */\naxes.drawOne = function(gd, ax, opts) {\n opts = opts || {};\n\n var i, sp, plotinfo;\n\n ax.setScale();\n\n var fullLayout = gd._fullLayout;\n var axId = ax._id;\n var axLetter = axId.charAt(0);\n var counterLetter = axes.counterLetter(axId);\n var mainPlotinfo = fullLayout._plots[ax._mainSubplot];\n\n // this happens when updating matched group with 'missing' axes\n if(!mainPlotinfo) return;\n\n var mainAxLayer = mainPlotinfo[axLetter + 'axislayer'];\n var mainLinePosition = ax._mainLinePosition;\n var mainMirrorPosition = ax._mainMirrorPosition;\n\n var vals = ax._vals = axes.calcTicks(ax);\n\n // Add a couple of axis properties that should cause us to recreate\n // elements. Used in d3 data function.\n var axInfo = [ax.mirror, mainLinePosition, mainMirrorPosition].join('_');\n for(i = 0; i < vals.length; i++) {\n vals[i].axInfo = axInfo;\n }\n\n // stash selections to avoid DOM queries e.g.\n // - stash tickLabels selection, so that drawTitle can use it to scoot title\n ax._selections = {};\n // stash tick angle (including the computed 'auto' values) per tick-label class\n // linkup 'previous' tick angles on redraws\n if(ax._tickAngles) ax._prevTickAngles = ax._tickAngles;\n ax._tickAngles = {};\n // measure [in px] between axis position and outward-most part of bounding box\n // (touching either the tick label or ticks)\n // depth can be expansive to compute, so we only do so when required\n ax._depth = null;\n\n // calcLabelLevelBbox can be expensive,\n // so make sure to not call it twice during the same Axes.drawOne call\n // by stashing label-level bounding boxes per tick-label class\n var llbboxes = {};\n function getLabelLevelBbox(suffix) {\n var cls = axId + (suffix || 'tick');\n if(!llbboxes[cls]) llbboxes[cls] = calcLabelLevelBbox(ax, cls);\n return llbboxes[cls];\n }\n\n if(!ax.visible) return;\n\n var transTickFn = axes.makeTransTickFn(ax);\n var transTickLabelFn = axes.makeTransTickLabelFn(ax);\n\n var tickVals;\n // We remove zero lines, grid lines, and inside ticks if they're within 1px of the end\n // The key case here is removing zero lines when the axis bound is zero\n var valsClipped;\n\n var insideTicks = ax.ticks === 'inside';\n var outsideTicks = ax.ticks === 'outside';\n\n if(ax.tickson === 'boundaries') {\n var boundaryVals = getBoundaryVals(ax, vals);\n valsClipped = axes.clipEnds(ax, boundaryVals);\n tickVals = insideTicks ? valsClipped : boundaryVals;\n } else {\n valsClipped = axes.clipEnds(ax, vals);\n tickVals = (insideTicks && ax.ticklabelmode !== 'period') ? valsClipped : vals;\n }\n\n var gridVals = ax._gridVals = valsClipped;\n var dividerVals = getDividerVals(ax, vals);\n\n if(!fullLayout._hasOnlyLargeSploms) {\n var subplotsWithAx = ax._subplotsWith;\n\n // keep track of which subplots (by main counter axis) we've already\n // drawn grids for, so we don't overdraw overlaying subplots\n var finishedGrids = {};\n\n for(i = 0; i < subplotsWithAx.length; i++) {\n sp = subplotsWithAx[i];\n plotinfo = fullLayout._plots[sp];\n\n var counterAxis = plotinfo[counterLetter + 'axis'];\n var mainCounterID = counterAxis._mainAxis._id;\n if(finishedGrids[mainCounterID]) continue;\n finishedGrids[mainCounterID] = 1;\n\n var gridPath = axLetter === 'x' ?\n 'M0,' + counterAxis._offset + 'v' + counterAxis._length :\n 'M' + counterAxis._offset + ',0h' + counterAxis._length;\n\n axes.drawGrid(gd, ax, {\n vals: gridVals,\n counterAxis: counterAxis,\n layer: plotinfo.gridlayer.select('.' + axId),\n path: gridPath,\n transFn: transTickFn\n });\n axes.drawZeroLine(gd, ax, {\n counterAxis: counterAxis,\n layer: plotinfo.zerolinelayer,\n path: gridPath,\n transFn: transTickFn\n });\n }\n }\n\n var tickSigns = axes.getTickSigns(ax);\n var tickSubplots = [];\n\n if(ax.ticks) {\n var mainTickPath = axes.makeTickPath(ax, mainLinePosition, tickSigns[2]);\n var mirrorTickPath;\n var fullTickPath;\n if(ax._anchorAxis && ax.mirror && ax.mirror !== true) {\n mirrorTickPath = axes.makeTickPath(ax, mainMirrorPosition, tickSigns[3]);\n fullTickPath = mainTickPath + mirrorTickPath;\n } else {\n mirrorTickPath = '';\n fullTickPath = mainTickPath;\n }\n\n var tickPath;\n if(ax.showdividers && outsideTicks && ax.tickson === 'boundaries') {\n var dividerLookup = {};\n for(i = 0; i < dividerVals.length; i++) {\n dividerLookup[dividerVals[i].x] = 1;\n }\n tickPath = function(d) {\n return dividerLookup[d.x] ? mirrorTickPath : fullTickPath;\n };\n } else {\n tickPath = fullTickPath;\n }\n\n axes.drawTicks(gd, ax, {\n vals: tickVals,\n layer: mainAxLayer,\n path: tickPath,\n transFn: transTickFn\n });\n\n if(ax.mirror === 'allticks') {\n tickSubplots = Object.keys(ax._linepositions || {});\n }\n }\n\n for(i = 0; i < tickSubplots.length; i++) {\n sp = tickSubplots[i];\n plotinfo = fullLayout._plots[sp];\n // [bottom or left, top or right], free and main are handled above\n var linepositions = ax._linepositions[sp] || [];\n var spTickPath = axes.makeTickPath(ax, linepositions[0], tickSigns[0]) +\n axes.makeTickPath(ax, linepositions[1], tickSigns[1]);\n\n axes.drawTicks(gd, ax, {\n vals: tickVals,\n layer: plotinfo[axLetter + 'axislayer'],\n path: spTickPath,\n transFn: transTickFn\n });\n }\n\n var seq = [];\n\n // tick labels - for now just the main labels.\n // TODO: mirror labels, esp for subplots\n\n seq.push(function() {\n return axes.drawLabels(gd, ax, {\n vals: vals,\n layer: mainAxLayer,\n plotinfo: plotinfo,\n transFn: transTickLabelFn,\n labelFns: axes.makeLabelFns(ax, mainLinePosition)\n });\n });\n\n if(ax.type === 'multicategory') {\n var pad = {x: 2, y: 10}[axLetter];\n\n seq.push(function() {\n var bboxKey = {x: 'height', y: 'width'}[axLetter];\n var standoff = getLabelLevelBbox()[bboxKey] + pad +\n (ax._tickAngles[axId + 'tick'] ? ax.tickfont.size * LINE_SPACING : 0);\n\n return axes.drawLabels(gd, ax, {\n vals: getSecondaryLabelVals(ax, vals),\n layer: mainAxLayer,\n cls: axId + 'tick2',\n repositionOnUpdate: true,\n secondary: true,\n transFn: transTickFn,\n labelFns: axes.makeLabelFns(ax, mainLinePosition + standoff * tickSigns[4])\n });\n });\n\n seq.push(function() {\n ax._depth = tickSigns[4] * (getLabelLevelBbox('tick2')[ax.side] - mainLinePosition);\n\n return drawDividers(gd, ax, {\n vals: dividerVals,\n layer: mainAxLayer,\n path: axes.makeTickPath(ax, mainLinePosition, tickSigns[4], ax._depth),\n transFn: transTickFn\n });\n });\n } else if(ax.title.hasOwnProperty('standoff')) {\n seq.push(function() {\n ax._depth = tickSigns[4] * (getLabelLevelBbox()[ax.side] - mainLinePosition);\n });\n }\n\n var hasRangeSlider = Registry.getComponentMethod('rangeslider', 'isVisible')(ax);\n\n seq.push(function() {\n var s = ax.side.charAt(0);\n var sMirror = OPPOSITE_SIDE[ax.side].charAt(0);\n var pos = axes.getPxPosition(gd, ax);\n var outsideTickLen = outsideTicks ? ax.ticklen : 0;\n var llbbox;\n\n var push;\n var mirrorPush;\n var rangeSliderPush;\n\n if(ax.automargin || hasRangeSlider) {\n if(ax.type === 'multicategory') {\n llbbox = getLabelLevelBbox('tick2');\n } else {\n llbbox = getLabelLevelBbox();\n if(axLetter === 'x' && s === 'b') {\n ax._depth = Math.max(llbbox.width > 0 ? llbbox.bottom - pos : 0, outsideTickLen);\n }\n }\n }\n\n if(ax.automargin) {\n push = {x: 0, y: 0, r: 0, l: 0, t: 0, b: 0};\n var domainIndices = [0, 1];\n\n if(axLetter === 'x') {\n if(s === 'b') {\n push[s] = ax._depth;\n } else {\n push[s] = ax._depth = Math.max(llbbox.width > 0 ? pos - llbbox.top : 0, outsideTickLen);\n domainIndices.reverse();\n }\n\n if(llbbox.width > 0) {\n var rExtra = llbbox.right - (ax._offset + ax._length);\n if(rExtra > 0) {\n push.xr = 1;\n push.r = rExtra;\n }\n var lExtra = ax._offset - llbbox.left;\n if(lExtra > 0) {\n push.xl = 0;\n push.l = lExtra;\n }\n }\n } else {\n if(s === 'l') {\n push[s] = ax._depth = Math.max(llbbox.height > 0 ? pos - llbbox.left : 0, outsideTickLen);\n } else {\n push[s] = ax._depth = Math.max(llbbox.height > 0 ? llbbox.right - pos : 0, outsideTickLen);\n domainIndices.reverse();\n }\n\n if(llbbox.height > 0) {\n var bExtra = llbbox.bottom - (ax._offset + ax._length);\n if(bExtra > 0) {\n push.yb = 0;\n push.b = bExtra;\n }\n var tExtra = ax._offset - llbbox.top;\n if(tExtra > 0) {\n push.yt = 1;\n push.t = tExtra;\n }\n }\n }\n\n push[counterLetter] = ax.anchor === 'free' ?\n ax.position :\n ax._anchorAxis.domain[domainIndices[0]];\n\n if(ax.title.text !== fullLayout._dfltTitle[axLetter]) {\n push[s] += approxTitleDepth(ax) + (ax.title.standoff || 0);\n }\n\n if(ax.mirror && ax.anchor !== 'free') {\n mirrorPush = {x: 0, y: 0, r: 0, l: 0, t: 0, b: 0};\n\n mirrorPush[sMirror] = ax.linewidth;\n if(ax.mirror && ax.mirror !== true) mirrorPush[sMirror] += outsideTickLen;\n\n if(ax.mirror === true || ax.mirror === 'ticks') {\n mirrorPush[counterLetter] = ax._anchorAxis.domain[domainIndices[1]];\n } else if(ax.mirror === 'all' || ax.mirror === 'allticks') {\n mirrorPush[counterLetter] = [ax._counterDomainMin, ax._counterDomainMax][domainIndices[1]];\n }\n }\n }\n\n if(hasRangeSlider) {\n rangeSliderPush = Registry.getComponentMethod('rangeslider', 'autoMarginOpts')(gd, ax);\n }\n\n Plots.autoMargin(gd, axAutoMarginID(ax), push);\n Plots.autoMargin(gd, axMirrorAutoMarginID(ax), mirrorPush);\n Plots.autoMargin(gd, rangeSliderAutoMarginID(ax), rangeSliderPush);\n });\n\n if(!opts.skipTitle &&\n !(hasRangeSlider && ax.side === 'bottom')\n ) {\n seq.push(function() { return drawTitle(gd, ax); });\n }\n\n return Lib.syncOrAsync(seq);\n};\n\nfunction getBoundaryVals(ax, vals) {\n var out = [];\n var i;\n\n // boundaryVals are never used for labels;\n // no need to worry about the other tickTextObj keys\n var _push = function(d, bndIndex) {\n var xb = d.xbnd[bndIndex];\n if(xb !== null) {\n out.push(Lib.extendFlat({}, d, {x: xb}));\n }\n };\n\n if(vals.length) {\n for(i = 0; i < vals.length; i++) {\n _push(vals[i], 0);\n }\n _push(vals[i - 1], 1);\n }\n\n return out;\n}\n\nfunction getSecondaryLabelVals(ax, vals) {\n var out = [];\n var lookup = {};\n\n for(var i = 0; i < vals.length; i++) {\n var d = vals[i];\n if(lookup[d.text2]) {\n lookup[d.text2].push(d.x);\n } else {\n lookup[d.text2] = [d.x];\n }\n }\n\n for(var k in lookup) {\n out.push(tickTextObj(ax, Lib.interp(lookup[k], 0.5), k));\n }\n\n return out;\n}\n\nfunction getDividerVals(ax, vals) {\n var out = [];\n var i, current;\n\n var reversed = (vals.length && vals[vals.length - 1].x < vals[0].x);\n\n // never used for labels;\n // no need to worry about the other tickTextObj keys\n var _push = function(d, bndIndex) {\n var xb = d.xbnd[bndIndex];\n if(xb !== null) {\n out.push(Lib.extendFlat({}, d, {x: xb}));\n }\n };\n\n if(ax.showdividers && vals.length) {\n for(i = 0; i < vals.length; i++) {\n var d = vals[i];\n if(d.text2 !== current) {\n _push(d, reversed ? 1 : 0);\n }\n current = d.text2;\n }\n _push(vals[i - 1], reversed ? 0 : 1);\n }\n\n return out;\n}\n\nfunction calcLabelLevelBbox(ax, cls) {\n var top, bottom;\n var left, right;\n\n if(ax._selections[cls].size()) {\n top = Infinity;\n bottom = -Infinity;\n left = Infinity;\n right = -Infinity;\n ax._selections[cls].each(function() {\n var thisLabel = selectTickLabel(this);\n // Use parent node , to make Drawing.bBox\n // retrieve a bbox computed with transform info\n //\n // To improve perf, it would be nice to use `thisLabel.node()`\n // (like in fixLabelOverlaps) instead and use Axes.getPxPosition\n // together with the makeLabelFns outputs and `tickangle`\n // to compute one bbox per (tick value x tick style)\n var bb = Drawing.bBox(thisLabel.node().parentNode);\n top = Math.min(top, bb.top);\n bottom = Math.max(bottom, bb.bottom);\n left = Math.min(left, bb.left);\n right = Math.max(right, bb.right);\n });\n } else {\n top = 0;\n bottom = 0;\n left = 0;\n right = 0;\n }\n\n return {\n top: top,\n bottom: bottom,\n left: left,\n right: right,\n height: bottom - top,\n width: right - left\n };\n}\n\n/**\n * Which direction do the 'ax.side' values, and free ticks go?\n *\n * @param {object} ax (full) axis object\n * - {string} _id (starting with 'x' or 'y')\n * - {string} side\n * - {string} ticks\n * @return {array} all entries are either -1 or 1\n * - [0]: sign for top/right ticks (i.e. negative SVG direction)\n * - [1]: sign for bottom/left ticks (i.e. positive SVG direction)\n * - [2]: sign for ticks corresponding to 'ax.side'\n * - [3]: sign for ticks mirroring 'ax.side'\n * - [4]: sign of arrow starting at axis pointing towards margin\n */\naxes.getTickSigns = function(ax) {\n var axLetter = ax._id.charAt(0);\n var sideOpposite = {x: 'top', y: 'right'}[axLetter];\n var main = ax.side === sideOpposite ? 1 : -1;\n var out = [-1, 1, main, -main];\n // then we flip if outside XOR y axis\n if((ax.ticks !== 'inside') === (axLetter === 'x')) {\n out = out.map(function(v) { return -v; });\n }\n // independent of `ticks`; do not flip this one\n if(ax.side) {\n out.push({l: -1, t: -1, r: 1, b: 1}[ax.side.charAt(0)]);\n }\n return out;\n};\n\n/**\n * Make axis translate transform function\n *\n * @param {object} ax (full) axis object\n * - {string} _id\n * - {number} _offset\n * - {fn} l2p\n * @return {fn} function of calcTicks items\n */\naxes.makeTransTickFn = function(ax) {\n return ax._id.charAt(0) === 'x' ?\n function(d) { return strTranslate(ax._offset + ax.l2p(d.x), 0); } :\n function(d) { return strTranslate(0, ax._offset + ax.l2p(d.x)); };\n};\n\naxes.makeTransTickLabelFn = function(ax) {\n var uv = getTickLabelUV(ax);\n var u = uv[0];\n var v = uv[1];\n\n return ax._id.charAt(0) === 'x' ?\n function(d) {\n return strTranslate(\n u + ax._offset + ax.l2p(getPosX(d)),\n v\n );\n } :\n function(d) {\n return strTranslate(\n v,\n u + ax._offset + ax.l2p(getPosX(d))\n );\n };\n};\n\nfunction getPosX(d) {\n return d.periodX !== undefined ? d.periodX : d.x;\n}\n\n// u is a shift along the axis,\n// v is a shift perpendicular to the axis\nfunction getTickLabelUV(ax) {\n var ticklabelposition = ax.ticklabelposition || '';\n var has = function(str) {\n return ticklabelposition.indexOf(str) !== -1;\n };\n\n var isTop = has('top');\n var isLeft = has('left');\n var isRight = has('right');\n var isBottom = has('bottom');\n var isInside = has('inside');\n\n var isAligned = isBottom || isLeft || isTop || isRight;\n\n // early return\n if(!isAligned && !isInside) return [0, 0];\n\n var side = ax.side;\n\n var u = isAligned ? (ax.tickwidth || 0) / 2 : 0;\n var v = TEXTPAD;\n\n var fontSize = ax.tickfont ? ax.tickfont.size : 12;\n if(isBottom || isTop) {\n u += fontSize * CAP_SHIFT;\n v += (ax.linewidth || 0) / 2;\n }\n if(isLeft || isRight) {\n u += (ax.linewidth || 0) / 2;\n v += TEXTPAD;\n }\n if(isInside && side === 'top') {\n v -= fontSize * (1 - CAP_SHIFT);\n }\n\n if(isLeft || isTop) u = -u;\n if(side === 'bottom' || side === 'right') v = -v;\n\n return [\n isAligned ? u : 0,\n isInside ? v : 0\n ];\n}\n\n/**\n * Make axis tick path string\n *\n * @param {object} ax (full) axis object\n * - {string} _id\n * - {number} ticklen\n * - {number} linewidth\n * @param {number} shift along direction of ticklen\n * @param {1 or -1} sgn tick sign\n * @param {number (optional)} len tick length\n * @return {string}\n */\naxes.makeTickPath = function(ax, shift, sgn, len) {\n len = len !== undefined ? len : ax.ticklen;\n\n var axLetter = ax._id.charAt(0);\n var pad = (ax.linewidth || 1) / 2;\n\n return axLetter === 'x' ?\n 'M0,' + (shift + pad * sgn) + 'v' + (len * sgn) :\n 'M' + (shift + pad * sgn) + ',0h' + (len * sgn);\n};\n\n/**\n * Make axis tick label x, y and anchor functions\n *\n * @param {object} ax (full) axis object\n * - {string} _id\n * - {string} ticks\n * - {number} ticklen\n * - {string} side\n * - {number} linewidth\n * - {number} tickfont.size\n * - {boolean} showline\n * @param {number} shift\n * @param {number} angle [in degrees] ...\n * @return {object}\n * - {fn} xFn\n * - {fn} yFn\n * - {fn} anchorFn\n * - {fn} heightFn\n * - {number} labelStandoff (gap parallel to ticks)\n * - {number} labelShift (gap perpendicular to ticks)\n */\naxes.makeLabelFns = function(ax, shift, angle) {\n var ticklabelposition = ax.ticklabelposition || '';\n var has = function(str) {\n return ticklabelposition.indexOf(str) !== -1;\n };\n\n var isTop = has('top');\n var isLeft = has('left');\n var isRight = has('right');\n var isBottom = has('bottom');\n var isAligned = isBottom || isLeft || isTop || isRight;\n\n var insideTickLabels = has('inside');\n var labelsOverTicks =\n (ticklabelposition === 'inside' && ax.ticks === 'inside') ||\n (!insideTickLabels && ax.ticks === 'outside' && ax.tickson !== 'boundaries');\n\n var labelStandoff = 0;\n var labelShift = 0;\n\n var tickLen = labelsOverTicks ? ax.ticklen : 0;\n if(insideTickLabels) {\n tickLen *= -1;\n } else if(isAligned) {\n tickLen = 0;\n }\n\n if(labelsOverTicks) {\n labelStandoff += tickLen;\n if(angle) {\n var rad = Lib.deg2rad(angle);\n labelStandoff = tickLen * Math.cos(rad) + 1;\n labelShift = tickLen * Math.sin(rad);\n }\n }\n\n if(ax.showticklabels && (labelsOverTicks || ax.showline)) {\n labelStandoff += 0.2 * ax.tickfont.size;\n }\n labelStandoff += (ax.linewidth || 1) / 2 * (insideTickLabels ? -1 : 1);\n\n var out = {\n labelStandoff: labelStandoff,\n labelShift: labelShift\n };\n\n var x0, y0, ff, flipIt;\n var xQ = 0;\n\n var side = ax.side;\n var axLetter = ax._id.charAt(0);\n var tickangle = ax.tickangle;\n var endSide;\n if(axLetter === 'x') {\n endSide =\n (!insideTickLabels && side === 'bottom') ||\n (insideTickLabels && side === 'top');\n\n flipIt = endSide ? 1 : -1;\n if(insideTickLabels) flipIt *= -1;\n\n x0 = labelShift * flipIt;\n y0 = shift + labelStandoff * flipIt;\n ff = endSide ? 1 : -0.2;\n if(Math.abs(tickangle) === 90) {\n if(insideTickLabels) {\n ff += MID_SHIFT;\n } else {\n if(tickangle === -90 && side === 'bottom') {\n ff = CAP_SHIFT;\n } else if(tickangle === 90 && side === 'top') {\n ff = MID_SHIFT;\n } else {\n ff = 0.5;\n }\n }\n\n xQ = (MID_SHIFT / 2) * (tickangle / 90);\n }\n\n out.xFn = function(d) { return d.dx + x0 + xQ * d.fontSize; };\n out.yFn = function(d) { return d.dy + y0 + d.fontSize * ff; };\n out.anchorFn = function(d, a) {\n if(isAligned) {\n if(isLeft) return 'end';\n if(isRight) return 'start';\n }\n\n if(!isNumeric(a) || a === 0 || a === 180) {\n return 'middle';\n }\n\n return ((a * flipIt < 0) !== insideTickLabels) ? 'end' : 'start';\n };\n out.heightFn = function(d, a, h) {\n return (a < -60 || a > 60) ? -0.5 * h :\n ((ax.side === 'top') !== insideTickLabels) ? -h :\n 0;\n };\n } else if(axLetter === 'y') {\n endSide =\n (!insideTickLabels && side === 'left') ||\n (insideTickLabels && side === 'right');\n\n flipIt = endSide ? 1 : -1;\n if(insideTickLabels) flipIt *= -1;\n\n x0 = labelStandoff;\n y0 = labelShift * flipIt;\n ff = 0;\n if(!insideTickLabels && Math.abs(tickangle) === 90) {\n if(\n (tickangle === -90 && side === 'left') ||\n (tickangle === 90 && side === 'right')\n ) {\n ff = CAP_SHIFT;\n } else {\n ff = 0.5;\n }\n }\n\n if(insideTickLabels) {\n var ang = isNumeric(tickangle) ? +tickangle : 0;\n if(ang !== 0) {\n var rA = Lib.deg2rad(ang);\n xQ = Math.abs(Math.sin(rA)) * CAP_SHIFT * flipIt;\n ff = 0;\n }\n }\n\n out.xFn = function(d) { return d.dx + shift - (x0 + d.fontSize * ff) * flipIt + xQ * d.fontSize; };\n out.yFn = function(d) { return d.dy + y0 + d.fontSize * MID_SHIFT; };\n out.anchorFn = function(d, a) {\n if(isNumeric(a) && Math.abs(a) === 90) {\n return 'middle';\n }\n\n return endSide ? 'end' : 'start';\n };\n out.heightFn = function(d, a, h) {\n if(ax.side === 'right') a *= -1;\n\n return a < -30 ? -h :\n a < 30 ? -0.5 * h :\n 0;\n };\n }\n\n return out;\n};\n\nfunction tickDataFn(d) {\n return [d.text, d.x, d.axInfo, d.font, d.fontSize, d.fontColor].join('_');\n}\n\n/**\n * Draw axis ticks\n *\n * @param {DOM element} gd\n * @param {object} ax (full) axis object\n * - {string} _id\n * - {string} ticks\n * - {number} linewidth\n * - {string} tickcolor\n * @param {object} opts\n * - {array of object} vals (calcTicks output-like)\n * - {d3 selection} layer\n * - {string or fn} path\n * - {fn} transFn\n * - {boolean} crisp (set to false to unset crisp-edge SVG rendering)\n */\naxes.drawTicks = function(gd, ax, opts) {\n opts = opts || {};\n\n var cls = ax._id + 'tick';\n\n var vals = opts.vals;\n if(\n ax.ticklabelmode === 'period'\n ) {\n // drop very first tick that we added to handle period\n vals = vals.slice();\n vals.shift();\n }\n\n var ticks = opts.layer.selectAll('path.' + cls)\n .data(ax.ticks ? vals : [], tickDataFn);\n\n ticks.exit().remove();\n\n ticks.enter().append('path')\n .classed(cls, 1)\n .classed('ticks', 1)\n .classed('crisp', opts.crisp !== false)\n .call(Color.stroke, ax.tickcolor)\n .style('stroke-width', Drawing.crispRound(gd, ax.tickwidth, 1) + 'px')\n .attr('d', opts.path)\n .style('display', null); // visible\n\n hideCounterAxisInsideTickLabels(ax, [TICK_PATH]);\n\n ticks.attr('transform', opts.transFn);\n};\n\n/**\n * Draw axis grid\n *\n * @param {DOM element} gd\n * @param {object} ax (full) axis object\n * - {string} _id\n * - {boolean} showgrid\n * - {string} gridcolor\n * - {string} gridwidth\n * - {boolean} zeroline\n * - {string} type\n * - {string} dtick\n * @param {object} opts\n * - {array of object} vals (calcTicks output-like)\n * - {d3 selection} layer\n * - {object} counterAxis (full axis object corresponding to counter axis)\n * optional - only required if this axis supports zero lines\n * - {string or fn} path\n * - {fn} transFn\n * - {boolean} crisp (set to false to unset crisp-edge SVG rendering)\n */\naxes.drawGrid = function(gd, ax, opts) {\n opts = opts || {};\n\n var cls = ax._id + 'grid';\n var vals = opts.vals;\n var counterAx = opts.counterAxis;\n if(ax.showgrid === false) {\n vals = [];\n } else if(counterAx && axes.shouldShowZeroLine(gd, ax, counterAx)) {\n var isArrayMode = ax.tickmode === 'array';\n for(var i = 0; i < vals.length; i++) {\n var xi = vals[i].x;\n if(isArrayMode ? !xi : (Math.abs(xi) < ax.dtick / 100)) {\n vals = vals.slice(0, i).concat(vals.slice(i + 1));\n // In array mode you can in principle have multiple\n // ticks at 0, so test them all. Otherwise once we found\n // one we can stop.\n if(isArrayMode) i--;\n else break;\n }\n }\n }\n\n var grid = opts.layer.selectAll('path.' + cls)\n .data(vals, tickDataFn);\n\n grid.exit().remove();\n\n grid.enter().append('path')\n .classed(cls, 1)\n .classed('crisp', opts.crisp !== false);\n\n ax._gw = Drawing.crispRound(gd, ax.gridwidth, 1);\n\n grid.attr('transform', opts.transFn)\n .attr('d', opts.path)\n .call(Color.stroke, ax.gridcolor || '#ddd')\n .style('stroke-width', ax._gw + 'px')\n .style('display', null); // visible\n\n hideCounterAxisInsideTickLabels(ax, [GRID_PATH]);\n\n if(typeof opts.path === 'function') grid.attr('d', opts.path);\n};\n\n/**\n * Draw axis zero-line\n *\n * @param {DOM element} gd\n * @param {object} ax (full) axis object\n * - {string} _id\n * - {boolean} zeroline\n * - {number} zerolinewidth\n * - {string} zerolinecolor\n * - {number (optional)} _gridWidthCrispRound\n * @param {object} opts\n * - {d3 selection} layer\n * - {object} counterAxis (full axis object corresponding to counter axis)\n * - {string or fn} path\n * - {fn} transFn\n * - {boolean} crisp (set to false to unset crisp-edge SVG rendering)\n */\naxes.drawZeroLine = function(gd, ax, opts) {\n opts = opts || opts;\n\n var cls = ax._id + 'zl';\n var show = axes.shouldShowZeroLine(gd, ax, opts.counterAxis);\n\n var zl = opts.layer.selectAll('path.' + cls)\n .data(show ? [{x: 0, id: ax._id}] : []);\n\n zl.exit().remove();\n\n zl.enter().append('path')\n .classed(cls, 1)\n .classed('zl', 1)\n .classed('crisp', opts.crisp !== false)\n .each(function() {\n // use the fact that only one element can enter to trigger a sort.\n // If several zerolines enter at the same time we will sort once per,\n // but generally this should be a minimal overhead.\n opts.layer.selectAll('path').sort(function(da, db) {\n return idSort(da.id, db.id);\n });\n });\n\n zl.attr('transform', opts.transFn)\n .attr('d', opts.path)\n .call(Color.stroke, ax.zerolinecolor || Color.defaultLine)\n .style('stroke-width', Drawing.crispRound(gd, ax.zerolinewidth, ax._gw || 1) + 'px')\n .style('display', null); // visible\n\n hideCounterAxisInsideTickLabels(ax, [ZERO_PATH]);\n};\n\n/**\n * Draw axis tick labels\n *\n * @param {DOM element} gd\n * @param {object} ax (full) axis object\n * - {string} _id\n * - {boolean} showticklabels\n * - {number} tickangle\n * - {object (optional)} _selections\n * - {object} (optional)} _tickAngles\n * - {object} (optional)} _prevTickAngles\n * @param {object} opts\n * - {array of object} vals (calcTicks output-like)\n * - {d3 selection} layer\n * - {string (optional)} cls (node className)\n * - {boolean} repositionOnUpdate (set to true to reposition update selection)\n * - {boolean} secondary\n * - {fn} transFn\n * - {object} labelFns\n * + {fn} xFn\n * + {fn} yFn\n * + {fn} anchorFn\n * + {fn} heightFn\n */\naxes.drawLabels = function(gd, ax, opts) {\n opts = opts || {};\n\n var fullLayout = gd._fullLayout;\n var axId = ax._id;\n var axLetter = axId.charAt(0);\n var cls = opts.cls || axId + 'tick';\n var vals = opts.vals;\n\n var labelFns = opts.labelFns;\n var tickAngle = opts.secondary ? 0 : ax.tickangle;\n var prevAngle = (ax._prevTickAngles || {})[cls];\n\n var tickLabels = opts.layer.selectAll('g.' + cls)\n .data(ax.showticklabels ? vals : [], tickDataFn);\n\n var labelsReady = [];\n\n tickLabels.enter().append('g')\n .classed(cls, 1)\n .append('text')\n // only so tex has predictable alignment that we can\n // alter later\n .attr('text-anchor', 'middle')\n .each(function(d) {\n var thisLabel = d3.select(this);\n var newPromise = gd._promises.length;\n\n thisLabel\n .call(svgTextUtils.positionText, labelFns.xFn(d), labelFns.yFn(d))\n .call(Drawing.font, d.font, d.fontSize, d.fontColor)\n .text(d.text)\n .call(svgTextUtils.convertToTspans, gd);\n\n if(gd._promises[newPromise]) {\n // if we have an async label, we'll deal with that\n // all here so take it out of gd._promises and\n // instead position the label and promise this in\n // labelsReady\n labelsReady.push(gd._promises.pop().then(function() {\n positionLabels(thisLabel, tickAngle);\n }));\n } else {\n // sync label: just position it now.\n positionLabels(thisLabel, tickAngle);\n }\n });\n\n hideCounterAxisInsideTickLabels(ax, [TICK_TEXT]);\n\n tickLabels.exit().remove();\n\n if(opts.repositionOnUpdate) {\n tickLabels.each(function(d) {\n d3.select(this).select('text')\n .call(svgTextUtils.positionText, labelFns.xFn(d), labelFns.yFn(d));\n });\n }\n\n function positionLabels(s, angle) {\n s.each(function(d) {\n var thisLabel = d3.select(this);\n var mathjaxGroup = thisLabel.select('.text-math-group');\n var anchor = labelFns.anchorFn(d, angle);\n\n var transform = opts.transFn.call(thisLabel.node(), d) +\n ((isNumeric(angle) && +angle !== 0) ?\n (' rotate(' + angle + ',' + labelFns.xFn(d) + ',' +\n (labelFns.yFn(d) - d.fontSize / 2) + ')') :\n '');\n\n // how much to shift a multi-line label to center it vertically.\n var nLines = svgTextUtils.lineCount(thisLabel);\n var lineHeight = LINE_SPACING * d.fontSize;\n var anchorHeight = labelFns.heightFn(d, isNumeric(angle) ? +angle : 0, (nLines - 1) * lineHeight);\n\n if(anchorHeight) {\n transform += strTranslate(0, anchorHeight);\n }\n\n if(mathjaxGroup.empty()) {\n var thisText = thisLabel.select('text');\n thisText.attr({\n transform: transform,\n 'text-anchor': anchor\n });\n\n thisText.style('opacity', 1); // visible\n\n if(ax._adjustTickLabelsOverflow) {\n ax._adjustTickLabelsOverflow();\n }\n } else {\n var mjWidth = Drawing.bBox(mathjaxGroup.node()).width;\n var mjShift = mjWidth * {end: -0.5, start: 0.5}[anchor];\n mathjaxGroup.attr('transform', transform + strTranslate(mjShift, 0));\n }\n });\n }\n\n ax._adjustTickLabelsOverflow = function() {\n var ticklabeloverflow = ax.ticklabeloverflow;\n if(!ticklabeloverflow || ticklabeloverflow === 'allow') return;\n\n var hideOverflow = ticklabeloverflow.indexOf('hide') !== -1;\n\n var isX = ax._id.charAt(0) === 'x';\n // div positions\n var p0 = 0;\n var p1 = isX ?\n gd._fullLayout.width :\n gd._fullLayout.height;\n\n if(ticklabeloverflow.indexOf('domain') !== -1) {\n // domain positions\n var rl = Lib.simpleMap(ax.range, ax.r2l);\n p0 = ax.l2p(rl[0]) + ax._offset;\n p1 = ax.l2p(rl[1]) + ax._offset;\n }\n\n var min = Math.min(p0, p1);\n var max = Math.max(p0, p1);\n\n var side = ax.side;\n\n var visibleLabelMin = Infinity;\n var visibleLabelMax = -Infinity;\n\n tickLabels.each(function(d) {\n var thisLabel = d3.select(this);\n var mathjaxGroup = thisLabel.select('.text-math-group');\n\n if(mathjaxGroup.empty()) {\n var bb = Drawing.bBox(thisLabel.node());\n var adjust = 0;\n if(isX) {\n if(bb.right > max) adjust = 1;\n else if(bb.left < min) adjust = 1;\n } else {\n if(bb.bottom > max) adjust = 1;\n else if(bb.top + (ax.tickangle ? 0 : d.fontSize / 4) < min) adjust = 1;\n }\n\n var t = thisLabel.select('text');\n if(adjust) {\n if(hideOverflow) t.style('opacity', 0); // hidden\n } else {\n t.style('opacity', 1); // visible\n\n if(side === 'bottom' || side === 'right') {\n visibleLabelMin = Math.min(visibleLabelMin, isX ? bb.top : bb.left);\n } else {\n visibleLabelMin = -Infinity;\n }\n\n if(side === 'top' || side === 'left') {\n visibleLabelMax = Math.max(visibleLabelMax, isX ? bb.bottom : bb.right);\n } else {\n visibleLabelMax = Infinity;\n }\n }\n } // TODO: hide mathjax?\n });\n\n for(var subplot in fullLayout._plots) {\n var plotinfo = fullLayout._plots[subplot];\n if(ax._id !== plotinfo.xaxis._id && ax._id !== plotinfo.yaxis._id) continue;\n var anchorAx = isX ? plotinfo.yaxis : plotinfo.xaxis;\n if(anchorAx) {\n anchorAx['_visibleLabelMin_' + ax._id] = visibleLabelMin;\n anchorAx['_visibleLabelMax_' + ax._id] = visibleLabelMax;\n }\n }\n };\n\n ax._hideCounterAxisInsideTickLabels = function(partialOpts) {\n var isX = ax._id.charAt(0) === 'x';\n\n var anchoredAxes = [];\n for(var subplot in fullLayout._plots) {\n var plotinfo = fullLayout._plots[subplot];\n if(ax._id !== plotinfo.xaxis._id && ax._id !== plotinfo.yaxis._id) continue;\n anchoredAxes.push(isX ? plotinfo.yaxis : plotinfo.xaxis);\n }\n\n anchoredAxes.forEach(function(anchorAx, idx) {\n if(anchorAx && insideTicklabelposition(anchorAx)) {\n (partialOpts || [\n ZERO_PATH,\n GRID_PATH,\n TICK_PATH,\n TICK_TEXT\n ]).forEach(function(e) {\n var isPeriodLabel =\n e.K === 'tick' &&\n e.L === 'text' &&\n ax.ticklabelmode === 'period';\n\n var mainPlotinfo = fullLayout._plots[ax._mainSubplot];\n\n var sel;\n if(e.K === ZERO_PATH.K) sel = mainPlotinfo.zerolinelayer.selectAll('.' + ax._id + 'zl');\n else if(e.K === GRID_PATH.K) sel = mainPlotinfo.gridlayer.selectAll('.' + ax._id);\n else sel = mainPlotinfo[ax._id.charAt(0) + 'axislayer'];\n\n sel.each(function() {\n var w = d3.select(this);\n if(e.L) w = w.selectAll(e.L);\n\n w.each(function(d) {\n var q = ax.l2p(\n isPeriodLabel ? getPosX(d) : d.x\n ) + ax._offset;\n\n var t = d3.select(this);\n if(\n q < ax['_visibleLabelMax_' + anchorAx._id] &&\n q > ax['_visibleLabelMin_' + anchorAx._id]\n ) {\n t.style('display', 'none'); // hidden\n } else if(e.K === 'tick' && !idx) {\n t.style('display', null); // visible\n }\n });\n });\n });\n }\n });\n };\n\n // make sure all labels are correctly positioned at their base angle\n // the positionLabels call above is only for newly drawn labels.\n // do this without waiting, using the last calculated angle to\n // minimize flicker, then do it again when we know all labels are\n // there, putting back the prescribed angle to check for overlaps.\n positionLabels(tickLabels, (prevAngle + 1) ? prevAngle : tickAngle);\n\n function allLabelsReady() {\n return labelsReady.length && Promise.all(labelsReady);\n }\n\n var autoangle = null;\n\n function fixLabelOverlaps() {\n positionLabels(tickLabels, tickAngle);\n\n // check for auto-angling if x labels overlap\n // don't auto-angle at all for log axes with\n // base and digit format\n if(vals.length && axLetter === 'x' && !isNumeric(tickAngle) &&\n (ax.type !== 'log' || String(ax.dtick).charAt(0) !== 'D')\n ) {\n autoangle = 0;\n\n var maxFontSize = 0;\n var lbbArray = [];\n var i;\n\n tickLabels.each(function(d) {\n maxFontSize = Math.max(maxFontSize, d.fontSize);\n\n var x = ax.l2p(d.x);\n var thisLabel = selectTickLabel(this);\n var bb = Drawing.bBox(thisLabel.node());\n\n lbbArray.push({\n // ignore about y, just deal with x overlaps\n top: 0,\n bottom: 10,\n height: 10,\n left: x - bb.width / 2,\n // impose a 2px gap\n right: x + bb.width / 2 + 2,\n width: bb.width + 2\n });\n });\n\n if((ax.tickson === 'boundaries' || ax.showdividers) && !opts.secondary) {\n var gap = 2;\n if(ax.ticks) gap += ax.tickwidth / 2;\n\n // TODO should secondary labels also fall into this fix-overlap regime?\n\n for(i = 0; i < lbbArray.length; i++) {\n var xbnd = vals[i].xbnd;\n var lbb = lbbArray[i];\n if(\n (xbnd[0] !== null && (lbb.left - ax.l2p(xbnd[0])) < gap) ||\n (xbnd[1] !== null && (ax.l2p(xbnd[1]) - lbb.right) < gap)\n ) {\n autoangle = 90;\n break;\n }\n }\n } else {\n var vLen = vals.length;\n var tickSpacing = Math.abs((vals[vLen - 1].x - vals[0].x) * ax._m) / (vLen - 1);\n\n var ticklabelposition = ax.ticklabelposition || '';\n var has = function(str) {\n return ticklabelposition.indexOf(str) !== -1;\n };\n var isTop = has('top');\n var isLeft = has('left');\n var isRight = has('right');\n var isBottom = has('bottom');\n var isAligned = isBottom || isLeft || isTop || isRight;\n var pad = !isAligned ? 0 :\n (ax.tickwidth || 0) + 2 * TEXTPAD;\n\n var rotate90 = (tickSpacing < maxFontSize * 2.5) || ax.type === 'multicategory' || ax._name === 'realaxis';\n\n // any overlap at all - set 30 degrees or 90 degrees\n for(i = 0; i < lbbArray.length - 1; i++) {\n if(Lib.bBoxIntersect(lbbArray[i], lbbArray[i + 1], pad)) {\n autoangle = rotate90 ? 90 : 30;\n break;\n }\n }\n }\n\n if(autoangle) {\n positionLabels(tickLabels, autoangle);\n }\n }\n }\n\n if(ax._selections) {\n ax._selections[cls] = tickLabels;\n }\n\n var seq = [allLabelsReady];\n\n // N.B. during auto-margin redraws, if the axis fixed its label overlaps\n // by rotating 90 degrees, do not attempt to re-fix its label overlaps\n // as this can lead to infinite redraw loops!\n if(ax.automargin && fullLayout._redrawFromAutoMarginCount && prevAngle === 90) {\n autoangle = 90;\n seq.push(function() {\n positionLabels(tickLabels, prevAngle);\n });\n } else {\n seq.push(fixLabelOverlaps);\n }\n\n // save current tick angle for future redraws\n if(ax._tickAngles) {\n seq.push(function() {\n ax._tickAngles[cls] = autoangle === null ?\n (isNumeric(tickAngle) ? tickAngle : 0) :\n autoangle;\n });\n }\n\n var anchorAx = ax._anchorAxis;\n if(\n anchorAx && anchorAx.autorange &&\n insideTicklabelposition(ax) &&\n !isLinked(fullLayout, ax._id)\n ) {\n if(!fullLayout._insideTickLabelsAutorange) {\n fullLayout._insideTickLabelsAutorange = {};\n }\n fullLayout._insideTickLabelsAutorange[anchorAx._name + '.autorange'] = anchorAx.autorange;\n\n seq.push(\n function computeFinalTickLabelBoundingBoxes() {\n tickLabels.each(function(d, i) {\n var thisLabel = selectTickLabel(this);\n var mathjaxGroup = thisLabel.select('.text-math-group');\n if(mathjaxGroup.empty()) {\n ax._vals[i].bb = Drawing.bBox(thisLabel.node());\n }\n });\n }\n );\n }\n\n var done = Lib.syncOrAsync(seq);\n if(done && done.then) gd._promises.push(done);\n return done;\n};\n\n/**\n * Draw axis dividers\n *\n * @param {DOM element} gd\n * @param {object} ax (full) axis object\n * - {string} _id\n * - {string} showdividers\n * - {number} dividerwidth\n * - {string} dividercolor\n * @param {object} opts\n * - {array of object} vals (calcTicks output-like)\n * - {d3 selection} layer\n * - {fn} path\n * - {fn} transFn\n */\nfunction drawDividers(gd, ax, opts) {\n var cls = ax._id + 'divider';\n var vals = opts.vals;\n\n var dividers = opts.layer.selectAll('path.' + cls)\n .data(vals, tickDataFn);\n\n dividers.exit().remove();\n\n dividers.enter().insert('path', ':first-child')\n .classed(cls, 1)\n .classed('crisp', 1)\n .call(Color.stroke, ax.dividercolor)\n .style('stroke-width', Drawing.crispRound(gd, ax.dividerwidth, 1) + 'px');\n\n dividers\n .attr('transform', opts.transFn)\n .attr('d', opts.path);\n}\n\n/**\n * Get axis position in px, that is the distance for the graph's\n * top (left) edge for x (y) axes.\n *\n * @param {DOM element} gd\n * @param {object} ax (full) axis object\n * - {string} _id\n * - {string} side\n * if anchored:\n * - {object} _anchorAxis\n * Otherwise:\n * - {number} position\n * @return {number}\n */\naxes.getPxPosition = function(gd, ax) {\n var gs = gd._fullLayout._size;\n var axLetter = ax._id.charAt(0);\n var side = ax.side;\n var anchorAxis;\n\n if(ax.anchor !== 'free') {\n anchorAxis = ax._anchorAxis;\n } else if(axLetter === 'x') {\n anchorAxis = {\n _offset: gs.t + (1 - (ax.position || 0)) * gs.h,\n _length: 0\n };\n } else if(axLetter === 'y') {\n anchorAxis = {\n _offset: gs.l + (ax.position || 0) * gs.w,\n _length: 0\n };\n }\n\n if(side === 'top' || side === 'left') {\n return anchorAxis._offset;\n } else if(side === 'bottom' || side === 'right') {\n return anchorAxis._offset + anchorAxis._length;\n }\n};\n\n/**\n * Approximate axis title depth (w/o computing its bounding box)\n *\n * @param {object} ax (full) axis object\n * - {string} title.text\n * - {number} title.font.size\n * - {number} title.standoff\n * @return {number} (in px)\n */\nfunction approxTitleDepth(ax) {\n var fontSize = ax.title.font.size;\n var extraLines = (ax.title.text.match(svgTextUtils.BR_TAG_ALL) || []).length;\n if(ax.title.hasOwnProperty('standoff')) {\n return extraLines ?\n fontSize * (CAP_SHIFT + (extraLines * LINE_SPACING)) :\n fontSize * CAP_SHIFT;\n } else {\n return extraLines ?\n fontSize * (extraLines + 1) * LINE_SPACING :\n fontSize;\n }\n}\n\n/**\n * Draw axis title, compute default standoff if necessary\n *\n * @param {DOM element} gd\n * @param {object} ax (full) axis object\n * - {string} _id\n * - {string} _name\n * - {string} side\n * - {number} title.font.size\n * - {object} _selections\n *\n * - {number} _depth\n * - {number} title.standoff\n * OR\n * - {number} linewidth\n * - {boolean} showticklabels\n */\nfunction drawTitle(gd, ax) {\n var fullLayout = gd._fullLayout;\n var axId = ax._id;\n var axLetter = axId.charAt(0);\n var fontSize = ax.title.font.size;\n var titleStandoff;\n\n if(ax.title.hasOwnProperty('standoff')) {\n titleStandoff = ax._depth + ax.title.standoff + approxTitleDepth(ax);\n } else {\n var isInside = insideTicklabelposition(ax);\n\n if(ax.type === 'multicategory') {\n titleStandoff = ax._depth;\n } else {\n var offsetBase = 1.5 * fontSize;\n if(isInside) {\n offsetBase = 0.5 * fontSize;\n if(ax.ticks === 'outside') {\n offsetBase += ax.ticklen;\n }\n }\n titleStandoff = 10 + offsetBase + (ax.linewidth ? ax.linewidth - 1 : 0);\n }\n\n if(!isInside) {\n if(axLetter === 'x') {\n titleStandoff += ax.side === 'top' ?\n fontSize * (ax.showticklabels ? 1 : 0) :\n fontSize * (ax.showticklabels ? 1.5 : 0.5);\n } else {\n titleStandoff += ax.side === 'right' ?\n fontSize * (ax.showticklabels ? 1 : 0.5) :\n fontSize * (ax.showticklabels ? 0.5 : 0);\n }\n }\n }\n\n var pos = axes.getPxPosition(gd, ax);\n var transform, x, y;\n\n if(axLetter === 'x') {\n x = ax._offset + ax._length / 2;\n y = (ax.side === 'top') ? pos - titleStandoff : pos + titleStandoff;\n } else {\n y = ax._offset + ax._length / 2;\n x = (ax.side === 'right') ? pos + titleStandoff : pos - titleStandoff;\n transform = {rotate: '-90', offset: 0};\n }\n\n var avoid;\n\n if(ax.type !== 'multicategory') {\n var tickLabels = ax._selections[ax._id + 'tick'];\n\n avoid = {\n selection: tickLabels,\n side: ax.side\n };\n\n if(tickLabels && tickLabels.node() && tickLabels.node().parentNode) {\n var translation = Drawing.getTranslate(tickLabels.node().parentNode);\n avoid.offsetLeft = translation.x;\n avoid.offsetTop = translation.y;\n }\n\n if(ax.title.hasOwnProperty('standoff')) {\n avoid.pad = 0;\n }\n }\n\n return Titles.draw(gd, axId + 'title', {\n propContainer: ax,\n propName: ax._name + '.title.text',\n placeholder: fullLayout._dfltTitle[axLetter],\n avoid: avoid,\n transform: transform,\n attributes: {x: x, y: y, 'text-anchor': 'middle'}\n });\n}\n\naxes.shouldShowZeroLine = function(gd, ax, counterAxis) {\n var rng = Lib.simpleMap(ax.range, ax.r2l);\n return (\n (rng[0] * rng[1] <= 0) &&\n ax.zeroline &&\n (ax.type === 'linear' || ax.type === '-') &&\n !(ax.rangebreaks && ax.maskBreaks(0) === BADNUM) &&\n (\n clipEnds(ax, 0) ||\n !anyCounterAxLineAtZero(gd, ax, counterAxis, rng) ||\n hasBarsOrFill(gd, ax)\n )\n );\n};\n\naxes.clipEnds = function(ax, vals) {\n return vals.filter(function(d) { return clipEnds(ax, d.x); });\n};\n\nfunction clipEnds(ax, l) {\n var p = ax.l2p(l);\n return (p > 1 && p < ax._length - 1);\n}\n\nfunction anyCounterAxLineAtZero(gd, ax, counterAxis, rng) {\n var mainCounterAxis = counterAxis._mainAxis;\n if(!mainCounterAxis) return;\n\n var fullLayout = gd._fullLayout;\n var axLetter = ax._id.charAt(0);\n var counterLetter = axes.counterLetter(ax._id);\n\n var zeroPosition = ax._offset + (\n ((Math.abs(rng[0]) < Math.abs(rng[1])) === (axLetter === 'x')) ?\n 0 : ax._length\n );\n\n function lineNearZero(ax2) {\n if(!ax2.showline || !ax2.linewidth) return false;\n var tolerance = Math.max((ax2.linewidth + ax.zerolinewidth) / 2, 1);\n\n function closeEnough(pos2) {\n return typeof pos2 === 'number' && Math.abs(pos2 - zeroPosition) < tolerance;\n }\n\n if(closeEnough(ax2._mainLinePosition) || closeEnough(ax2._mainMirrorPosition)) {\n return true;\n }\n var linePositions = ax2._linepositions || {};\n for(var k in linePositions) {\n if(closeEnough(linePositions[k][0]) || closeEnough(linePositions[k][1])) {\n return true;\n }\n }\n }\n\n var plotinfo = fullLayout._plots[counterAxis._mainSubplot];\n if(!(plotinfo.mainplotinfo || plotinfo).overlays.length) {\n return lineNearZero(counterAxis, zeroPosition);\n }\n\n var counterLetterAxes = axes.list(gd, counterLetter);\n for(var i = 0; i < counterLetterAxes.length; i++) {\n var counterAxis2 = counterLetterAxes[i];\n if(\n counterAxis2._mainAxis === mainCounterAxis &&\n lineNearZero(counterAxis2, zeroPosition)\n ) {\n return true;\n }\n }\n}\n\nfunction hasBarsOrFill(gd, ax) {\n var fullData = gd._fullData;\n var subplot = ax._mainSubplot;\n var axLetter = ax._id.charAt(0);\n\n for(var i = 0; i < fullData.length; i++) {\n var trace = fullData[i];\n\n if(trace.visible === true && (trace.xaxis + trace.yaxis) === subplot) {\n if(\n Registry.traceIs(trace, 'bar-like') &&\n trace.orientation === {x: 'h', y: 'v'}[axLetter]\n ) return true;\n\n if(\n trace.fill &&\n trace.fill.charAt(trace.fill.length - 1) === axLetter\n ) return true;\n }\n }\n return false;\n}\n\nfunction selectTickLabel(gTick) {\n var s = d3.select(gTick);\n var mj = s.select('.text-math-group');\n return mj.empty() ? s.select('text') : mj;\n}\n\n/**\n * Find all margin pushers for 2D axes and reserve them for later use\n * Both label and rangeslider automargin calculations happen later so\n * we need to explicitly allow their ids in order to not delete them.\n *\n * TODO: can we pull the actual automargin calls forward to avoid this hack?\n * We're probably also doing multiple redraws in this case, would be faster\n * if we can just do the whole calculation ahead of time and draw once.\n */\naxes.allowAutoMargin = function(gd) {\n var axList = axes.list(gd, '', true);\n for(var i = 0; i < axList.length; i++) {\n var ax = axList[i];\n if(ax.automargin) {\n Plots.allowAutoMargin(gd, axAutoMarginID(ax));\n if(ax.mirror) {\n Plots.allowAutoMargin(gd, axMirrorAutoMarginID(ax));\n }\n }\n if(Registry.getComponentMethod('rangeslider', 'isVisible')(ax)) {\n Plots.allowAutoMargin(gd, rangeSliderAutoMarginID(ax));\n }\n }\n};\n\nfunction axAutoMarginID(ax) { return ax._id + '.automargin'; }\nfunction axMirrorAutoMarginID(ax) { return axAutoMarginID(ax) + '.mirror'; }\nfunction rangeSliderAutoMarginID(ax) { return ax._id + '.rangeslider'; }\n\n// swap all the presentation attributes of the axes showing these traces\naxes.swap = function(gd, traces) {\n var axGroups = makeAxisGroups(gd, traces);\n\n for(var i = 0; i < axGroups.length; i++) {\n swapAxisGroup(gd, axGroups[i].x, axGroups[i].y);\n }\n};\n\nfunction makeAxisGroups(gd, traces) {\n var groups = [];\n var i, j;\n\n for(i = 0; i < traces.length; i++) {\n var groupsi = [];\n var xi = gd._fullData[traces[i]].xaxis;\n var yi = gd._fullData[traces[i]].yaxis;\n if(!xi || !yi) continue; // not a 2D cartesian trace?\n\n for(j = 0; j < groups.length; j++) {\n if(groups[j].x.indexOf(xi) !== -1 || groups[j].y.indexOf(yi) !== -1) {\n groupsi.push(j);\n }\n }\n\n if(!groupsi.length) {\n groups.push({x: [xi], y: [yi]});\n continue;\n }\n\n var group0 = groups[groupsi[0]];\n var groupj;\n\n if(groupsi.length > 1) {\n for(j = 1; j < groupsi.length; j++) {\n groupj = groups[groupsi[j]];\n mergeAxisGroups(group0.x, groupj.x);\n mergeAxisGroups(group0.y, groupj.y);\n }\n }\n mergeAxisGroups(group0.x, [xi]);\n mergeAxisGroups(group0.y, [yi]);\n }\n\n return groups;\n}\n\nfunction mergeAxisGroups(intoSet, fromSet) {\n for(var i = 0; i < fromSet.length; i++) {\n if(intoSet.indexOf(fromSet[i]) === -1) intoSet.push(fromSet[i]);\n }\n}\n\nfunction swapAxisGroup(gd, xIds, yIds) {\n var xFullAxes = [];\n var yFullAxes = [];\n var layout = gd.layout;\n var i, j;\n\n for(i = 0; i < xIds.length; i++) xFullAxes.push(axes.getFromId(gd, xIds[i]));\n for(i = 0; i < yIds.length; i++) yFullAxes.push(axes.getFromId(gd, yIds[i]));\n\n var allAxKeys = Object.keys(axAttrs);\n\n var noSwapAttrs = [\n 'anchor', 'domain', 'overlaying', 'position', 'side', 'tickangle', 'editType'\n ];\n var numericTypes = ['linear', 'log'];\n\n for(i = 0; i < allAxKeys.length; i++) {\n var keyi = allAxKeys[i];\n var xVal = xFullAxes[0][keyi];\n var yVal = yFullAxes[0][keyi];\n var allEqual = true;\n var coerceLinearX = false;\n var coerceLinearY = false;\n if(keyi.charAt(0) === '_' || typeof xVal === 'function' ||\n noSwapAttrs.indexOf(keyi) !== -1) {\n continue;\n }\n for(j = 1; j < xFullAxes.length && allEqual; j++) {\n var xVali = xFullAxes[j][keyi];\n if(keyi === 'type' && numericTypes.indexOf(xVal) !== -1 &&\n numericTypes.indexOf(xVali) !== -1 && xVal !== xVali) {\n // type is special - if we find a mixture of linear and log,\n // coerce them all to linear on flipping\n coerceLinearX = true;\n } else if(xVali !== xVal) allEqual = false;\n }\n for(j = 1; j < yFullAxes.length && allEqual; j++) {\n var yVali = yFullAxes[j][keyi];\n if(keyi === 'type' && numericTypes.indexOf(yVal) !== -1 &&\n numericTypes.indexOf(yVali) !== -1 && yVal !== yVali) {\n // type is special - if we find a mixture of linear and log,\n // coerce them all to linear on flipping\n coerceLinearY = true;\n } else if(yFullAxes[j][keyi] !== yVal) allEqual = false;\n }\n if(allEqual) {\n if(coerceLinearX) layout[xFullAxes[0]._name].type = 'linear';\n if(coerceLinearY) layout[yFullAxes[0]._name].type = 'linear';\n swapAxisAttrs(layout, keyi, xFullAxes, yFullAxes, gd._fullLayout._dfltTitle);\n }\n }\n\n // now swap x&y for any annotations anchored to these x & y\n for(i = 0; i < gd._fullLayout.annotations.length; i++) {\n var ann = gd._fullLayout.annotations[i];\n if(xIds.indexOf(ann.xref) !== -1 &&\n yIds.indexOf(ann.yref) !== -1) {\n Lib.swapAttrs(layout.annotations[i], ['?']);\n }\n }\n}\n\nfunction swapAxisAttrs(layout, key, xFullAxes, yFullAxes, dfltTitle) {\n // in case the value is the default for either axis,\n // look at the first axis in each list and see if\n // this key's value is undefined\n var np = Lib.nestedProperty;\n var xVal = np(layout[xFullAxes[0]._name], key).get();\n var yVal = np(layout[yFullAxes[0]._name], key).get();\n var i;\n\n if(key === 'title') {\n // special handling of placeholder titles\n if(xVal && xVal.text === dfltTitle.x) {\n xVal.text = dfltTitle.y;\n }\n if(yVal && yVal.text === dfltTitle.y) {\n yVal.text = dfltTitle.x;\n }\n }\n\n for(i = 0; i < xFullAxes.length; i++) {\n np(layout, xFullAxes[i]._name + '.' + key).set(yVal);\n }\n for(i = 0; i < yFullAxes.length; i++) {\n np(layout, yFullAxes[i]._name + '.' + key).set(xVal);\n }\n}\n\nfunction isAngular(ax) {\n return ax._id === 'angularaxis';\n}\n\nfunction moveOutsideBreak(v, ax) {\n var len = ax._rangebreaks.length;\n for(var k = 0; k < len; k++) {\n var brk = ax._rangebreaks[k];\n if(v >= brk.min && v < brk.max) {\n return brk.max;\n }\n }\n return v;\n}\n\nfunction insideTicklabelposition(ax) {\n return ((ax.ticklabelposition || '').indexOf('inside') !== -1);\n}\n\nfunction hideCounterAxisInsideTickLabels(ax, opts) {\n if(insideTicklabelposition(ax._anchorAxis || {})) {\n if(ax._hideCounterAxisInsideTickLabels) {\n ax._hideCounterAxisInsideTickLabels(opts);\n }\n }\n}\n\n},{\"../../components/color\":366,\"../../components/drawing\":388,\"../../components/titles\":464,\"../../constants/alignment\":471,\"../../constants/numerical\":479,\"../../lib\":503,\"../../lib/svg_text_utils\":529,\"../../plots/plots\":619,\"../../registry\":638,\"./autorange\":553,\"./axis_autotype\":555,\"./axis_ids\":558,\"./clean_ticks\":560,\"./layout_attributes\":569,\"./set_convert\":576,\"@plotly/d3\":58,\"fast-isnumeric\":190}],555:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Lib = _dereq_('../../lib');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nvar isArrayOrTypedArray = Lib.isArrayOrTypedArray;\nvar isDateTime = Lib.isDateTime;\nvar cleanNumber = Lib.cleanNumber;\nvar round = Math.round;\n\nmodule.exports = function autoType(array, calendar, opts) {\n var a = array;\n\n var noMultiCategory = opts.noMultiCategory;\n if(isArrayOrTypedArray(a) && !a.length) return '-';\n if(!noMultiCategory && multiCategory(a)) return 'multicategory';\n if(noMultiCategory && Array.isArray(a[0])) { // no need to flat typed arrays here\n var b = [];\n for(var i = 0; i < a.length; i++) {\n if(isArrayOrTypedArray(a[i])) {\n for(var j = 0; j < a[i].length; j++) {\n b.push(a[i][j]);\n }\n }\n }\n a = b;\n }\n\n if(moreDates(a, calendar)) return 'date';\n\n var convertNumeric = opts.autotypenumbers !== 'strict'; // compare against strict, just in case autotypenumbers was not provided in opts\n if(category(a, convertNumeric)) return 'category';\n if(linearOK(a, convertNumeric)) return 'linear';\n\n return '-';\n};\n\nfunction hasTypeNumber(v, convertNumeric) {\n return convertNumeric ? isNumeric(v) : typeof v === 'number';\n}\n\n// is there at least one number in array? If not, we should leave\n// ax.type empty so it can be autoset later\nfunction linearOK(a, convertNumeric) {\n var len = a.length;\n\n for(var i = 0; i < len; i++) {\n if(hasTypeNumber(a[i], convertNumeric)) return true;\n }\n\n return false;\n}\n\n// does the array a have mostly dates rather than numbers?\n// note: some values can be neither (such as blanks, text)\n// 2- or 4-digit integers can be both, so require twice as many\n// dates as non-dates, to exclude cases with mostly 2 & 4 digit\n// numbers and a few dates\n// as with categories, consider DISTINCT values only.\nfunction moreDates(a, calendar) {\n var len = a.length;\n\n var inc = getIncrement(len);\n var dats = 0;\n var nums = 0;\n var seen = {};\n\n for(var f = 0; f < len; f += inc) {\n var i = round(f);\n var ai = a[i];\n var stri = String(ai);\n if(seen[stri]) continue;\n seen[stri] = 1;\n\n if(isDateTime(ai, calendar)) dats++;\n if(isNumeric(ai)) nums++;\n }\n\n return dats > nums * 2;\n}\n\n// return increment to test at most 1000 points, evenly spaced\nfunction getIncrement(len) {\n return Math.max(1, (len - 1) / 1000);\n}\n\n// are the (x,y)-values in gd.data mostly text?\n// require twice as many DISTINCT categories as distinct numbers\nfunction category(a, convertNumeric) {\n var len = a.length;\n\n var inc = getIncrement(len);\n var nums = 0;\n var cats = 0;\n var seen = {};\n\n for(var f = 0; f < len; f += inc) {\n var i = round(f);\n var ai = a[i];\n var stri = String(ai);\n if(seen[stri]) continue;\n seen[stri] = 1;\n\n var t = typeof ai;\n if(t === 'boolean') cats++;\n else if(convertNumeric ? cleanNumber(ai) !== BADNUM : t === 'number') nums++;\n else if(t === 'string') cats++;\n }\n\n return cats > nums * 2;\n}\n\n// very-loose requirements for multicategory,\n// trace modules that should never auto-type to multicategory\n// should be declared with 'noMultiCategory'\nfunction multiCategory(a) {\n return isArrayOrTypedArray(a[0]) && isArrayOrTypedArray(a[1]);\n}\n\n},{\"../../constants/numerical\":479,\"../../lib\":503,\"fast-isnumeric\":190}],556:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\n\nvar handleArrayContainerDefaults = _dereq_('../array_container_defaults');\n\nvar layoutAttributes = _dereq_('./layout_attributes');\nvar handleTickValueDefaults = _dereq_('./tick_value_defaults');\nvar handleTickMarkDefaults = _dereq_('./tick_mark_defaults');\nvar handleTickLabelDefaults = _dereq_('./tick_label_defaults');\nvar handlePrefixSuffixDefaults = _dereq_('./prefix_suffix_defaults');\nvar handleCategoryOrderDefaults = _dereq_('./category_order_defaults');\nvar handleLineGridDefaults = _dereq_('./line_grid_defaults');\nvar setConvert = _dereq_('./set_convert');\n\nvar DAY_OF_WEEK = _dereq_('./constants').WEEKDAY_PATTERN;\nvar HOUR = _dereq_('./constants').HOUR_PATTERN;\n\n/**\n * options: object containing:\n *\n * letter: 'x' or 'y'\n * title: name of the axis (ie 'Colorbar') to go in default title\n * font: the default font to inherit\n * outerTicks: boolean, should ticks default to outside?\n * showGrid: boolean, should gridlines be shown by default?\n * noHover: boolean, this axis doesn't support hover effects?\n * noTickson: boolean, this axis doesn't support 'tickson'\n * data: the plot data, used to manage categories\n * bgColor: the plot background color, to calculate default gridline colors\n * calendar:\n * splomStash:\n * visibleDflt: boolean\n * reverseDflt: boolean\n * automargin: boolean\n */\nmodule.exports = function handleAxisDefaults(containerIn, containerOut, coerce, options, layoutOut) {\n var letter = options.letter;\n var font = options.font || {};\n var splomStash = options.splomStash || {};\n\n var visible = coerce('visible', !options.visibleDflt);\n\n var axTemplate = containerOut._template || {};\n var axType = containerOut.type || axTemplate.type || '-';\n\n var ticklabelmode;\n if(axType === 'date') {\n var handleCalendarDefaults = Registry.getComponentMethod('calendars', 'handleDefaults');\n handleCalendarDefaults(containerIn, containerOut, 'calendar', options.calendar);\n\n if(!options.noTicklabelmode) {\n ticklabelmode = coerce('ticklabelmode');\n }\n }\n\n var ticklabelposition = '';\n if(!options.noTicklabelposition || axType === 'multicategory') {\n ticklabelposition = Lib.coerce(containerIn, containerOut, {\n ticklabelposition: {\n valType: 'enumerated',\n dflt: 'outside',\n values: ticklabelmode === 'period' ? ['outside', 'inside'] :\n letter === 'x' ? [\n 'outside', 'inside',\n 'outside left', 'inside left',\n 'outside right', 'inside right'\n ] : [\n 'outside', 'inside',\n 'outside top', 'inside top',\n 'outside bottom', 'inside bottom'\n ]\n }\n }, 'ticklabelposition');\n }\n\n if(!options.noTicklabeloverflow) {\n coerce('ticklabeloverflow',\n ticklabelposition.indexOf('inside') !== -1 ?\n 'hide past domain' :\n axType === 'category' ||\n axType === 'multicategory' ?\n 'allow' :\n 'hide past div'\n );\n }\n\n setConvert(containerOut, layoutOut);\n\n var autorangeDflt = !containerOut.isValidRange(containerIn.range);\n if(autorangeDflt && options.reverseDflt) autorangeDflt = 'reversed';\n var autoRange = coerce('autorange', autorangeDflt);\n if(autoRange && (axType === 'linear' || axType === '-')) coerce('rangemode');\n\n coerce('range');\n containerOut.cleanRange();\n\n handleCategoryOrderDefaults(containerIn, containerOut, coerce, options);\n\n if(axType !== 'category' && !options.noHover) coerce('hoverformat');\n\n var dfltColor = coerce('color');\n // if axis.color was provided, use it for fonts too; otherwise,\n // inherit from global font color in case that was provided.\n // Compare to dflt rather than to containerIn, so we can provide color via\n // template too.\n var dfltFontColor = (dfltColor !== layoutAttributes.color.dflt) ? dfltColor : font.color;\n // try to get default title from splom trace, fallback to graph-wide value\n var dfltTitle = splomStash.label || layoutOut._dfltTitle[letter];\n\n handlePrefixSuffixDefaults(containerIn, containerOut, coerce, axType, options);\n if(!visible) return containerOut;\n\n coerce('title.text', dfltTitle);\n Lib.coerceFont(coerce, 'title.font', {\n family: font.family,\n size: Lib.bigFont(font.size),\n color: dfltFontColor\n });\n\n handleTickValueDefaults(containerIn, containerOut, coerce, axType);\n handleTickLabelDefaults(containerIn, containerOut, coerce, axType, options);\n handleTickMarkDefaults(containerIn, containerOut, coerce, options);\n handleLineGridDefaults(containerIn, containerOut, coerce, {\n dfltColor: dfltColor,\n bgColor: options.bgColor,\n showGrid: options.showGrid,\n attributes: layoutAttributes\n });\n\n if(containerOut.showline || containerOut.ticks) coerce('mirror');\n\n if(options.automargin) coerce('automargin');\n\n var isMultiCategory = axType === 'multicategory';\n\n if(!options.noTickson &&\n (axType === 'category' || isMultiCategory) &&\n (containerOut.ticks || containerOut.showgrid)\n ) {\n var ticksonDflt;\n if(isMultiCategory) ticksonDflt = 'boundaries';\n var tickson = coerce('tickson', ticksonDflt);\n if(tickson === 'boundaries') {\n delete containerOut.ticklabelposition;\n }\n }\n\n if(isMultiCategory) {\n var showDividers = coerce('showdividers');\n if(showDividers) {\n coerce('dividercolor');\n coerce('dividerwidth');\n }\n }\n\n if(axType === 'date') {\n handleArrayContainerDefaults(containerIn, containerOut, {\n name: 'rangebreaks',\n inclusionAttr: 'enabled',\n handleItemDefaults: rangebreaksDefaults\n });\n\n if(!containerOut.rangebreaks.length) {\n delete containerOut.rangebreaks;\n } else {\n for(var k = 0; k < containerOut.rangebreaks.length; k++) {\n if(containerOut.rangebreaks[k].pattern === DAY_OF_WEEK) {\n containerOut._hasDayOfWeekBreaks = true;\n break;\n }\n }\n\n setConvert(containerOut, layoutOut);\n\n if(layoutOut._has('scattergl') || layoutOut._has('splom')) {\n for(var i = 0; i < options.data.length; i++) {\n var trace = options.data[i];\n if(trace.type === 'scattergl' || trace.type === 'splom') {\n trace.visible = false;\n Lib.warn(trace.type +\n ' traces do not work on axes with rangebreaks.' +\n ' Setting trace ' + trace.index + ' to `visible: false`.');\n }\n }\n }\n }\n }\n\n return containerOut;\n};\n\nfunction rangebreaksDefaults(itemIn, itemOut, containerOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(itemIn, itemOut, layoutAttributes.rangebreaks, attr, dflt);\n }\n\n var enabled = coerce('enabled');\n\n if(enabled) {\n var bnds = coerce('bounds');\n if(bnds && bnds.length >= 2) {\n var dfltPattern = '';\n var i, q;\n if(bnds.length === 2) {\n for(i = 0; i < 2; i++) {\n q = indexOfDay(bnds[i]);\n if(q) {\n dfltPattern = DAY_OF_WEEK;\n break;\n }\n }\n }\n var pattern = coerce('pattern', dfltPattern);\n if(pattern === DAY_OF_WEEK) {\n for(i = 0; i < 2; i++) {\n q = indexOfDay(bnds[i]);\n if(q) {\n // convert to integers i.e 'Sunday' --> 0\n itemOut.bounds[i] = bnds[i] = q - 1;\n }\n }\n }\n if(pattern) {\n // ensure types and ranges\n for(i = 0; i < 2; i++) {\n q = bnds[i];\n switch(pattern) {\n case DAY_OF_WEEK :\n if(!isNumeric(q)) {\n itemOut.enabled = false;\n return;\n }\n q = +q;\n\n if(\n q !== Math.floor(q) || // don't accept fractional days for mow\n q < 0 || q >= 7\n ) {\n itemOut.enabled = false;\n return;\n }\n // use number\n itemOut.bounds[i] = bnds[i] = q;\n break;\n\n case HOUR :\n if(!isNumeric(q)) {\n itemOut.enabled = false;\n return;\n }\n q = +q;\n\n if(q < 0 || q > 24) { // accept 24\n itemOut.enabled = false;\n return;\n }\n // use number\n itemOut.bounds[i] = bnds[i] = q;\n break;\n }\n }\n }\n\n if(containerOut.autorange === false) {\n var rng = containerOut.range;\n\n // if bounds are bigger than the (set) range, disable break\n if(rng[0] < rng[1]) {\n if(bnds[0] < rng[0] && bnds[1] > rng[1]) {\n itemOut.enabled = false;\n return;\n }\n } else if(bnds[0] > rng[0] && bnds[1] < rng[1]) {\n itemOut.enabled = false;\n return;\n }\n }\n } else {\n var values = coerce('values');\n\n if(values && values.length) {\n coerce('dvalue');\n } else {\n itemOut.enabled = false;\n return;\n }\n }\n }\n}\n\n// these numbers are one more than what bounds would be mapped to\nvar dayStrToNum = {\n sun: 1,\n mon: 2,\n tue: 3,\n wed: 4,\n thu: 5,\n fri: 6,\n sat: 7\n};\n\nfunction indexOfDay(v) {\n if(typeof v !== 'string') return;\n return dayStrToNum[\n v.substr(0, 3).toLowerCase()\n ];\n}\n\n},{\"../../lib\":503,\"../../registry\":638,\"../array_container_defaults\":549,\"./category_order_defaults\":559,\"./constants\":561,\"./layout_attributes\":569,\"./line_grid_defaults\":571,\"./prefix_suffix_defaults\":573,\"./set_convert\":576,\"./tick_label_defaults\":578,\"./tick_mark_defaults\":579,\"./tick_value_defaults\":580,\"fast-isnumeric\":190}],557:[function(_dereq_,module,exports){\n'use strict';\n\nvar docs = _dereq_('../../constants/docs');\nvar FORMAT_LINK = docs.FORMAT_LINK;\nvar DATE_FORMAT_LINK = docs.DATE_FORMAT_LINK;\n\nfunction axisHoverFormat(x, noDates) {\n return {\n valType: 'string',\n dflt: '',\n editType: 'none',\n description: (\n noDates ? descriptionOnlyNumbers : descriptionWithDates\n )('hover text', x) + [\n 'By default the values are formatted using ' + (\n noDates ?\n 'generic number format' :\n ('`' + x + 'axis.hoverformat`')\n ) + '.',\n ].join(' ')\n };\n}\n\nfunction descriptionOnlyNumbers(label, x) {\n return [\n 'Sets the ' + label + ' formatting rule' + (x ? 'for `' + x + '` ' : ''),\n 'using d3 formatting mini-languages',\n 'which are very similar to those in Python. For numbers, see: ' + FORMAT_LINK + '.'\n ].join(' ');\n}\n\nfunction descriptionWithDates(label, x) {\n return descriptionOnlyNumbers(label, x) + [\n ' And for dates see: ' + DATE_FORMAT_LINK + '.',\n 'We add two items to d3\\'s date formatter:',\n '*%h* for half of the year as a decimal number as well as',\n '*%{n}f* for fractional seconds',\n 'with n digits. For example, *2016-10-13 09:15:23.456* with tickformat',\n '*%H~%M~%S.%2f* would display *09~15~23.46*'\n ].join(' ');\n}\n\nmodule.exports = {\n axisHoverFormat: axisHoverFormat,\n descriptionOnlyNumbers: descriptionOnlyNumbers,\n descriptionWithDates: descriptionWithDates\n};\n\n},{\"../../constants/docs\":474}],558:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\n\nvar constants = _dereq_('./constants');\n\n\n// convert between axis names (xaxis, xaxis2, etc, elements of gd.layout)\n// and axis id's (x, x2, etc). Would probably have ditched 'xaxis'\n// completely in favor of just 'x' if it weren't ingrained in the API etc.\nexports.id2name = function id2name(id) {\n if(typeof id !== 'string' || !id.match(constants.AX_ID_PATTERN)) return;\n var axNum = id.split(' ')[0].substr(1);\n if(axNum === '1') axNum = '';\n return id.charAt(0) + 'axis' + axNum;\n};\n\nexports.name2id = function name2id(name) {\n if(!name.match(constants.AX_NAME_PATTERN)) return;\n var axNum = name.substr(5);\n if(axNum === '1') axNum = '';\n return name.charAt(0) + axNum;\n};\n\n/*\n * Cleans up the number of an axis, e.g., 'x002'->'x2', 'x0'->'x', 'x1' -> 'x',\n * etc.\n * If domainId is true, then id could be a domain reference and if it is, the\n * ' domain' part is kept at the end of the axis ID string.\n */\nexports.cleanId = function cleanId(id, axLetter, domainId) {\n var domainTest = /( domain)$/.test(id);\n if(typeof id !== 'string' || !id.match(constants.AX_ID_PATTERN)) return;\n if(axLetter && id.charAt(0) !== axLetter) return;\n if(domainTest && (!domainId)) return;\n var axNum = id.split(' ')[0].substr(1).replace(/^0+/, '');\n if(axNum === '1') axNum = '';\n return id.charAt(0) + axNum + (domainTest && domainId ? ' domain' : '');\n};\n\n// get all axis objects, as restricted in listNames\nexports.list = function(gd, axLetter, only2d) {\n var fullLayout = gd._fullLayout;\n if(!fullLayout) return [];\n\n var idList = exports.listIds(gd, axLetter);\n var out = new Array(idList.length);\n var i;\n\n for(i = 0; i < idList.length; i++) {\n var idi = idList[i];\n out[i] = fullLayout[idi.charAt(0) + 'axis' + idi.substr(1)];\n }\n\n if(!only2d) {\n var sceneIds3D = fullLayout._subplots.gl3d || [];\n\n for(i = 0; i < sceneIds3D.length; i++) {\n var scene = fullLayout[sceneIds3D[i]];\n\n if(axLetter) out.push(scene[axLetter + 'axis']);\n else out.push(scene.xaxis, scene.yaxis, scene.zaxis);\n }\n }\n\n return out;\n};\n\n// get all axis ids, optionally restricted by letter\n// this only makes sense for 2d axes\nexports.listIds = function(gd, axLetter) {\n var fullLayout = gd._fullLayout;\n if(!fullLayout) return [];\n\n var subplotLists = fullLayout._subplots;\n if(axLetter) return subplotLists[axLetter + 'axis'];\n return subplotLists.xaxis.concat(subplotLists.yaxis);\n};\n\n// get an axis object from its id 'x','x2' etc\n// optionally, id can be a subplot (ie 'x2y3') and type gets x or y from it\nexports.getFromId = function(gd, id, type) {\n var fullLayout = gd._fullLayout;\n // remove \"domain\" suffix\n id = ((id === undefined) || (typeof(id) !== 'string')) ? id : id.replace(' domain', '');\n\n if(type === 'x') id = id.replace(/y[0-9]*/, '');\n else if(type === 'y') id = id.replace(/x[0-9]*/, '');\n\n return fullLayout[exports.id2name(id)];\n};\n\n// get an axis object of specified type from the containing trace\nexports.getFromTrace = function(gd, fullTrace, type) {\n var fullLayout = gd._fullLayout;\n var ax = null;\n\n if(Registry.traceIs(fullTrace, 'gl3d')) {\n var scene = fullTrace.scene;\n if(scene.substr(0, 5) === 'scene') {\n ax = fullLayout[scene][type + 'axis'];\n }\n } else {\n ax = exports.getFromId(gd, fullTrace[type + 'axis'] || type);\n }\n\n return ax;\n};\n\n// sort x, x2, x10, y, y2, y10...\nexports.idSort = function(id1, id2) {\n var letter1 = id1.charAt(0);\n var letter2 = id2.charAt(0);\n if(letter1 !== letter2) return letter1 > letter2 ? 1 : -1;\n return +(id1.substr(1) || 1) - +(id2.substr(1) || 1);\n};\n\n/*\n * An axis reference (e.g., the contents at the 'xref' key of an object) might\n * have extra information appended. Extract the axis ID only.\n *\n * ar: the axis reference string\n *\n */\nexports.ref2id = function(ar) {\n // This assumes ar has been coerced via coerceRef, and uses the shortcut of\n // checking if the first letter matches [xyz] to determine if it should\n // return the axis ID. Otherwise it returns false.\n return (/^[xyz]/.test(ar)) ? ar.split(' ')[0] : false;\n};\n\nfunction isFound(axId, list) {\n if(list && list.length) {\n for(var i = 0; i < list.length; i++) {\n if(list[i][axId]) return true;\n }\n }\n return false;\n}\n\nexports.isLinked = function(fullLayout, axId) {\n return (\n isFound(axId, fullLayout._axisMatchGroups) ||\n isFound(axId, fullLayout._axisConstraintGroups)\n );\n};\n\n},{\"../../registry\":638,\"./constants\":561}],559:[function(_dereq_,module,exports){\n'use strict';\n\nfunction findCategories(ax, opts) {\n var dataAttr = opts.dataAttr || ax._id.charAt(0);\n var lookup = {};\n var axData;\n var i, j;\n\n if(opts.axData) {\n // non-x/y case\n axData = opts.axData;\n } else {\n // x/y case\n axData = [];\n for(i = 0; i < opts.data.length; i++) {\n var trace = opts.data[i];\n if(trace[dataAttr + 'axis'] === ax._id) {\n axData.push(trace);\n }\n }\n }\n\n for(i = 0; i < axData.length; i++) {\n var vals = axData[i][dataAttr];\n for(j = 0; j < vals.length; j++) {\n var v = vals[j];\n if(v !== null && v !== undefined) {\n lookup[v] = 1;\n }\n }\n }\n\n return Object.keys(lookup);\n}\n\n/**\n * Fills in category* default and initial categories.\n *\n * @param {object} containerIn : input axis object\n * @param {object} containerOut : full axis object\n * @param {function} coerce : Lib.coerce fn wrapper\n * @param {object} opts :\n * - data {array} : (full) data trace\n * OR\n * - axData {array} : (full) data associated with axis being coerced here\n * - dataAttr {string} : attribute name corresponding to coordinate array\n */\nmodule.exports = function handleCategoryOrderDefaults(containerIn, containerOut, coerce, opts) {\n if(containerOut.type !== 'category') return;\n\n var arrayIn = containerIn.categoryarray;\n var isValidArray = (Array.isArray(arrayIn) && arrayIn.length > 0);\n\n // override default 'categoryorder' value when non-empty array is supplied\n var orderDefault;\n if(isValidArray) orderDefault = 'array';\n\n var order = coerce('categoryorder', orderDefault);\n var array;\n\n // coerce 'categoryarray' only in array order case\n if(order === 'array') {\n array = coerce('categoryarray');\n }\n\n // cannot set 'categoryorder' to 'array' with an invalid 'categoryarray'\n if(!isValidArray && order === 'array') {\n order = containerOut.categoryorder = 'trace';\n }\n\n // set up things for makeCalcdata\n if(order === 'trace') {\n containerOut._initialCategories = [];\n } else if(order === 'array') {\n containerOut._initialCategories = array.slice();\n } else {\n array = findCategories(containerOut, opts).sort();\n if(order === 'category ascending') {\n containerOut._initialCategories = array;\n } else if(order === 'category descending') {\n containerOut._initialCategories = array.reverse();\n }\n }\n};\n\n},{}],560:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar Lib = _dereq_('../../lib');\nvar constants = _dereq_('../../constants/numerical');\nvar ONEDAY = constants.ONEDAY;\nvar ONEWEEK = constants.ONEWEEK;\n\n/**\n * Return a validated dtick value for this axis\n *\n * @param {any} dtick: the candidate dtick. valid values are numbers and strings,\n * and further constrained depending on the axis type.\n * @param {string} axType: the axis type\n */\nexports.dtick = function(dtick, axType) {\n var isLog = axType === 'log';\n var isDate = axType === 'date';\n var isCat = axType === 'category';\n var dtickDflt = isDate ? ONEDAY : 1;\n\n if(!dtick) return dtickDflt;\n\n if(isNumeric(dtick)) {\n dtick = Number(dtick);\n if(dtick <= 0) return dtickDflt;\n if(isCat) {\n // category dtick must be positive integers\n return Math.max(1, Math.round(dtick));\n }\n if(isDate) {\n // date dtick must be at least 0.1ms (our current precision)\n return Math.max(0.1, dtick);\n }\n return dtick;\n }\n\n if(typeof dtick !== 'string' || !(isDate || isLog)) {\n return dtickDflt;\n }\n\n var prefix = dtick.charAt(0);\n var dtickNum = dtick.substr(1);\n dtickNum = isNumeric(dtickNum) ? Number(dtickNum) : 0;\n\n if((dtickNum <= 0) || !(\n // \"M\" gives ticks every (integer) n months\n (isDate && prefix === 'M' && dtickNum === Math.round(dtickNum)) ||\n // \"L\" gives ticks linearly spaced in data (not in position) every (float) f\n (isLog && prefix === 'L') ||\n // \"D1\" gives powers of 10 with all small digits between, \"D2\" gives only 2 and 5\n (isLog && prefix === 'D' && (dtickNum === 1 || dtickNum === 2))\n )) {\n return dtickDflt;\n }\n\n return dtick;\n};\n\n/**\n * Return a validated tick0 for this axis\n *\n * @param {any} tick0: the candidate tick0. Valid values are numbers and strings,\n * further constrained depending on the axis type\n * @param {string} axType: the axis type\n * @param {string} calendar: for date axes, the calendar to validate/convert with\n * @param {any} dtick: an already valid dtick. Only used for D1 and D2 log dticks,\n * which do not support tick0 at all.\n */\nexports.tick0 = function(tick0, axType, calendar, dtick) {\n if(axType === 'date') {\n return Lib.cleanDate(tick0,\n Lib.dateTick0(calendar, (dtick % ONEWEEK === 0) ? 1 : 0)\n );\n }\n if(dtick === 'D1' || dtick === 'D2') {\n // D1 and D2 modes ignore tick0 entirely\n return undefined;\n }\n // Aside from date axes, tick0 must be numeric\n return isNumeric(tick0) ? Number(tick0) : 0;\n};\n\n},{\"../../constants/numerical\":479,\"../../lib\":503,\"fast-isnumeric\":190}],561:[function(_dereq_,module,exports){\n'use strict';\n\nvar counterRegex = _dereq_('../../lib/regex').counter;\n\nmodule.exports = {\n idRegex: {\n x: counterRegex('x', '( domain)?'),\n y: counterRegex('y', '( domain)?')\n },\n\n attrRegex: counterRegex('[xy]axis'),\n\n // axis match regular expression\n xAxisMatch: counterRegex('xaxis'),\n yAxisMatch: counterRegex('yaxis'),\n\n // pattern matching axis ids and names\n // note that this is more permissive than counterRegex, as\n // id2name, name2id, and cleanId accept \"x1\" etc\n AX_ID_PATTERN: /^[xyz][0-9]*( domain)?$/,\n AX_NAME_PATTERN: /^[xyz]axis[0-9]*$/,\n\n // and for 2D subplots\n SUBPLOT_PATTERN: /^x([0-9]*)y([0-9]*)$/,\n\n HOUR_PATTERN: 'hour',\n WEEKDAY_PATTERN: 'day of week',\n\n // pixels to move mouse before you stop clamping to starting point\n MINDRAG: 8,\n\n // smallest dimension allowed for a select box\n MINSELECT: 12,\n\n // smallest dimension allowed for a zoombox\n MINZOOM: 20,\n\n // width of axis drag regions\n DRAGGERSIZE: 20,\n\n // max pixels off straight before a lasso select line counts as bent\n BENDPX: 1.5,\n\n // delay before a redraw (relayout) after smooth panning and zooming\n REDRAWDELAY: 50,\n\n // throttling limit (ms) for selectPoints calls\n SELECTDELAY: 100,\n\n // cache ID suffix for throttle\n SELECTID: '-select',\n\n // last resort axis ranges for x and y axes if we have no data\n DFLTRANGEX: [-1, 6],\n DFLTRANGEY: [-1, 4],\n\n // Layers to keep trace types in the right order\n // N.B. each 'unique' plot method must have its own layer\n traceLayerClasses: [\n 'imagelayer',\n 'heatmaplayer',\n 'contourcarpetlayer', 'contourlayer',\n 'funnellayer', 'waterfalllayer', 'barlayer',\n 'carpetlayer',\n 'violinlayer',\n 'boxlayer',\n 'ohlclayer',\n 'scattercarpetlayer', 'scatterlayer'\n ],\n\n clipOnAxisFalseQuery: [\n '.scatterlayer',\n '.barlayer',\n '.funnellayer',\n '.waterfalllayer'\n ],\n\n layerValue2layerClass: {\n 'above traces': 'above',\n 'below traces': 'below'\n }\n};\n\n},{\"../../lib/regex\":520}],562:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar autorange = _dereq_('./autorange');\nvar id2name = _dereq_('./axis_ids').id2name;\nvar layoutAttributes = _dereq_('./layout_attributes');\nvar scaleZoom = _dereq_('./scale_zoom');\nvar setConvert = _dereq_('./set_convert');\n\nvar ALMOST_EQUAL = _dereq_('../../constants/numerical').ALMOST_EQUAL;\nvar FROM_BL = _dereq_('../../constants/alignment').FROM_BL;\n\nexports.handleDefaults = function(layoutIn, layoutOut, opts) {\n var axIds = opts.axIds;\n var axHasImage = opts.axHasImage;\n\n // sets of axes linked by `scaleanchor` OR `matches` along with the\n // scaleratios compounded together, populated in handleConstraintDefaults\n var constraintGroups = layoutOut._axisConstraintGroups = [];\n // similar to _axisConstraintGroups, but only matching axes\n var matchGroups = layoutOut._axisMatchGroups = [];\n\n var i, group, axId, axName, axIn, axOut, attr, val;\n\n for(i = 0; i < axIds.length; i++) {\n axName = id2name(axIds[i]);\n axIn = layoutIn[axName];\n axOut = layoutOut[axName];\n\n handleOneAxDefaults(axIn, axOut, {\n axIds: axIds,\n layoutOut: layoutOut,\n hasImage: axHasImage[axName]\n });\n }\n\n // save matchGroup on each matching axis\n function stash(groups, stashAttr) {\n for(i = 0; i < groups.length; i++) {\n group = groups[i];\n for(axId in group) {\n layoutOut[id2name(axId)][stashAttr] = group;\n }\n }\n }\n stash(matchGroups, '_matchGroup');\n\n // If any axis in a constraint group is fixedrange, they all get fixed\n // This covers matches axes, as they're now in the constraintgroup too\n // and have not yet been removed (if the group is *only* matching)\n for(i = 0; i < constraintGroups.length; i++) {\n group = constraintGroups[i];\n for(axId in group) {\n axOut = layoutOut[id2name(axId)];\n if(axOut.fixedrange) {\n for(var axId2 in group) {\n var axName2 = id2name(axId2);\n if((layoutIn[axName2] || {}).fixedrange === false) {\n Lib.warn(\n 'fixedrange was specified as false for axis ' +\n axName2 + ' but was overridden because another ' +\n 'axis in its constraint group has fixedrange true'\n );\n }\n layoutOut[axName2].fixedrange = true;\n }\n break;\n }\n }\n }\n\n // remove constraint groups that simply duplicate match groups\n i = 0;\n while(i < constraintGroups.length) {\n group = constraintGroups[i];\n for(axId in group) {\n axOut = layoutOut[id2name(axId)];\n if(axOut._matchGroup && Object.keys(axOut._matchGroup).length === Object.keys(group).length) {\n constraintGroups.splice(i, 1);\n i--;\n }\n break;\n }\n i++;\n }\n\n // save constraintGroup on each constrained axis\n stash(constraintGroups, '_constraintGroup');\n\n // make sure `matching` axes share values of necessary attributes\n // Precedence (base axis is the one that doesn't list a `matches`, ie others\n // all point to it):\n // (1) explicitly defined value in the base axis\n // (2) explicitly defined in another axis (arbitrary order)\n // (3) default in the base axis\n var matchAttrs = [\n 'constrain',\n 'range',\n 'autorange',\n 'rangemode',\n 'rangebreaks',\n 'categoryorder',\n 'categoryarray'\n ];\n var hasRange = false;\n var hasDayOfWeekBreaks = false;\n\n function setAttrVal() {\n val = axOut[attr];\n if(attr === 'rangebreaks') {\n hasDayOfWeekBreaks = axOut._hasDayOfWeekBreaks;\n }\n }\n\n for(i = 0; i < matchGroups.length; i++) {\n group = matchGroups[i];\n\n // find 'matching' range attrs\n for(var j = 0; j < matchAttrs.length; j++) {\n attr = matchAttrs[j];\n val = null;\n var baseAx;\n for(axId in group) {\n axName = id2name(axId);\n axIn = layoutIn[axName];\n axOut = layoutOut[axName];\n if(!(attr in axOut)) {\n continue;\n }\n if(!axOut.matches) {\n baseAx = axOut;\n // top priority: explicit value in base axis\n if(attr in axIn) {\n setAttrVal();\n break;\n }\n }\n if(val === null && attr in axIn) {\n // second priority: first explicit value in another axis\n setAttrVal();\n }\n }\n\n // special logic for coupling of range and autorange\n // if nobody explicitly specifies autorange, but someone does\n // explicitly specify range, autorange must be disabled.\n if(attr === 'range' && val) {\n hasRange = true;\n }\n if(attr === 'autorange' && val === null && hasRange) {\n val = false;\n }\n\n if(val === null && attr in baseAx) {\n // fallback: default value in base axis\n val = baseAx[attr];\n }\n // but we still might not have a value, which is fine.\n if(val !== null) {\n for(axId in group) {\n axOut = layoutOut[id2name(axId)];\n axOut[attr] = attr === 'range' ? val.slice() : val;\n\n if(attr === 'rangebreaks') {\n axOut._hasDayOfWeekBreaks = hasDayOfWeekBreaks;\n setConvert(axOut, layoutOut);\n }\n }\n }\n }\n }\n};\n\nfunction handleOneAxDefaults(axIn, axOut, opts) {\n var axIds = opts.axIds;\n var layoutOut = opts.layoutOut;\n var hasImage = opts.hasImage;\n var constraintGroups = layoutOut._axisConstraintGroups;\n var matchGroups = layoutOut._axisMatchGroups;\n var axId = axOut._id;\n var axLetter = axId.charAt(0);\n var splomStash = ((layoutOut._splomAxes || {})[axLetter] || {})[axId] || {};\n var thisID = axOut._id;\n var isX = thisID.charAt(0) === 'x';\n\n // Clear _matchGroup & _constraintGroup so relinkPrivateKeys doesn't keep\n // an old one around. If this axis is in a group we'll set this again later\n axOut._matchGroup = null;\n axOut._constraintGroup = null;\n\n function coerce(attr, dflt) {\n return Lib.coerce(axIn, axOut, layoutAttributes, attr, dflt);\n }\n\n // coerce the constraint mechanics even if this axis has no scaleanchor\n // because it may be the anchor of another axis.\n coerce('constrain', hasImage ? 'domain' : 'range');\n Lib.coerce(axIn, axOut, {\n constraintoward: {\n valType: 'enumerated',\n values: isX ? ['left', 'center', 'right'] : ['bottom', 'middle', 'top'],\n dflt: isX ? 'center' : 'middle'\n }\n }, 'constraintoward');\n\n // If this axis is already part of a constraint group, we can't\n // scaleanchor any other axis in that group, or we'd make a loop.\n // Filter axIds to enforce this, also matching axis types.\n var thisType = axOut.type;\n var i, idi;\n\n var linkableAxes = [];\n for(i = 0; i < axIds.length; i++) {\n idi = axIds[i];\n if(idi === thisID) continue;\n\n var axi = layoutOut[id2name(idi)];\n if(axi.type === thisType) {\n linkableAxes.push(idi);\n }\n }\n\n var thisGroup = getConstraintGroup(constraintGroups, thisID);\n if(thisGroup) {\n var linkableAxesNoLoops = [];\n for(i = 0; i < linkableAxes.length; i++) {\n idi = linkableAxes[i];\n if(!thisGroup[idi]) linkableAxesNoLoops.push(idi);\n }\n linkableAxes = linkableAxesNoLoops;\n }\n\n var canLink = linkableAxes.length;\n\n var matches, scaleanchor;\n\n if(canLink && (axIn.matches || splomStash.matches)) {\n matches = Lib.coerce(axIn, axOut, {\n matches: {\n valType: 'enumerated',\n values: linkableAxes,\n dflt: linkableAxes.indexOf(splomStash.matches) !== -1 ? splomStash.matches : undefined\n }\n }, 'matches');\n }\n\n // 'matches' wins over 'scaleanchor' - each axis can only specify one\n // constraint, but you can chain matches and scaleanchor constraints by\n // specifying them in separate axes.\n var scaleanchorDflt = hasImage && !isX ? axOut.anchor : undefined;\n if(canLink && !matches && (axIn.scaleanchor || scaleanchorDflt)) {\n scaleanchor = Lib.coerce(axIn, axOut, {\n scaleanchor: {\n valType: 'enumerated',\n values: linkableAxes\n }\n }, 'scaleanchor', scaleanchorDflt);\n }\n\n if(matches) {\n axOut._matchGroup = updateConstraintGroups(matchGroups, thisID, matches, 1);\n\n // Also include match constraints in the scale groups\n var matchedAx = layoutOut[id2name(matches)];\n var matchRatio = extent(layoutOut, axOut) / extent(layoutOut, matchedAx);\n if(isX !== (matches.charAt(0) === 'x')) {\n // We don't yet know the actual scale ratio of x/y matches constraints,\n // due to possible automargins, so just leave a placeholder for this:\n // 'x' means \"x size over y size\", 'y' means the inverse.\n // in principle in the constraint group you could get multiple of these.\n matchRatio = (isX ? 'x' : 'y') + matchRatio;\n }\n updateConstraintGroups(constraintGroups, thisID, matches, matchRatio);\n } else if(axIn.matches && axIds.indexOf(axIn.matches) !== -1) {\n Lib.warn('ignored ' + axOut._name + '.matches: \"' +\n axIn.matches + '\" to avoid an infinite loop');\n }\n\n if(scaleanchor) {\n var scaleratio = coerce('scaleratio');\n\n // TODO: I suppose I could do attribute.min: Number.MIN_VALUE to avoid zero,\n // but that seems hacky. Better way to say \"must be a positive number\"?\n // Of course if you use several super-tiny values you could eventually\n // force a product of these to zero and all hell would break loose...\n // Likewise with super-huge values.\n if(!scaleratio) scaleratio = axOut.scaleratio = 1;\n\n updateConstraintGroups(constraintGroups, thisID, scaleanchor, scaleratio);\n } else if(axIn.scaleanchor && axIds.indexOf(axIn.scaleanchor) !== -1) {\n Lib.warn('ignored ' + axOut._name + '.scaleanchor: \"' +\n axIn.scaleanchor + '\" to avoid either an infinite loop ' +\n 'and possibly inconsistent scaleratios, or because this axis ' +\n 'declares a *matches* constraint.');\n }\n}\n\nfunction extent(layoutOut, ax) {\n var domain = ax.domain;\n if(!domain) {\n // at this point overlaying axes haven't yet inherited their main domains\n // TODO: constrain: domain with overlaying axes is likely a bug.\n domain = layoutOut[id2name(ax.overlaying)].domain;\n }\n return domain[1] - domain[0];\n}\n\nfunction getConstraintGroup(groups, thisID) {\n for(var i = 0; i < groups.length; i++) {\n if(groups[i][thisID]) {\n return groups[i];\n }\n }\n return null;\n}\n\n/*\n * Add this axis to the axis constraint groups, which is the collection\n * of axes that are all constrained together on scale (or matching).\n *\n * constraintGroups: a list of objects. each object is\n * {axis_id: scale_within_group}, where scale_within_group is\n * only important relative to the rest of the group, and defines\n * the relative scales between all axes in the group\n *\n * thisGroup: the group the current axis is already in\n * thisID: the id if the current axis\n * thatID: the id of the axis to scale it with\n * scaleratio: the ratio of this axis to the thatID axis\n */\nfunction updateConstraintGroups(constraintGroups, thisID, thatID, scaleratio) {\n var i, j, groupi, keyj, thisGroupIndex;\n\n var thisGroup = getConstraintGroup(constraintGroups, thisID);\n\n if(thisGroup === null) {\n thisGroup = {};\n thisGroup[thisID] = 1;\n thisGroupIndex = constraintGroups.length;\n constraintGroups.push(thisGroup);\n } else {\n thisGroupIndex = constraintGroups.indexOf(thisGroup);\n }\n\n var thisGroupKeys = Object.keys(thisGroup);\n\n // we know that this axis isn't in any other groups, but we don't know\n // about the thatID axis. If it is, we need to merge the groups.\n for(i = 0; i < constraintGroups.length; i++) {\n groupi = constraintGroups[i];\n if(i !== thisGroupIndex && groupi[thatID]) {\n var baseScale = groupi[thatID];\n for(j = 0; j < thisGroupKeys.length; j++) {\n keyj = thisGroupKeys[j];\n groupi[keyj] = multiplyScales(baseScale, multiplyScales(scaleratio, thisGroup[keyj]));\n }\n constraintGroups.splice(thisGroupIndex, 1);\n return;\n }\n }\n\n // otherwise, we insert the new thatID axis as the base scale (1)\n // in its group, and scale the rest of the group to it\n if(scaleratio !== 1) {\n for(j = 0; j < thisGroupKeys.length; j++) {\n var key = thisGroupKeys[j];\n thisGroup[key] = multiplyScales(scaleratio, thisGroup[key]);\n }\n }\n thisGroup[thatID] = 1;\n}\n\n// scales may be numbers or 'x1.3', 'yy4.5' etc to multiply by as-yet-unknown\n// ratios between x and y plot sizes n times\nfunction multiplyScales(a, b) {\n var aPrefix = '';\n var bPrefix = '';\n var aLen, bLen;\n\n if(typeof a === 'string') {\n aPrefix = a.match(/^[xy]*/)[0];\n aLen = aPrefix.length;\n a = +a.substr(aLen);\n }\n\n if(typeof b === 'string') {\n bPrefix = b.match(/^[xy]*/)[0];\n bLen = bPrefix.length;\n b = +b.substr(bLen);\n }\n\n var c = a * b;\n\n // just two numbers\n if(!aLen && !bLen) {\n return c;\n }\n\n // one or more prefixes of the same type\n if(!aLen || !bLen || aPrefix.charAt(0) === bPrefix.charAt(0)) {\n return aPrefix + bPrefix + (a * b);\n }\n\n // x and y cancel each other out exactly - back to a number\n if(aLen === bLen) {\n return c;\n }\n\n // partial cancelation of prefixes\n return (aLen > bLen ? aPrefix.substr(bLen) : bPrefix.substr(aLen)) + c;\n}\n\nfunction finalRatios(group, fullLayout) {\n var size = fullLayout._size;\n var yRatio = size.h / size.w;\n var out = {};\n var keys = Object.keys(group);\n for(var i = 0; i < keys.length; i++) {\n var key = keys[i];\n var val = group[key];\n\n if(typeof val === 'string') {\n var prefix = val.match(/^[xy]*/)[0];\n var pLen = prefix.length;\n val = +val.substr(pLen);\n var mult = prefix.charAt(0) === 'y' ? yRatio : (1 / yRatio);\n for(var j = 0; j < pLen; j++) {\n val *= mult;\n }\n }\n\n out[key] = val;\n }\n return out;\n}\n\nexports.enforce = function enforce(gd) {\n var fullLayout = gd._fullLayout;\n var constraintGroups = fullLayout._axisConstraintGroups || [];\n\n var i, j, group, axisID, ax, normScale, mode, factor;\n\n // matching constraints are handled in the autorange code when autoranged,\n // or in the supplyDefaults code when explicitly ranged.\n // now we just need to handle scaleanchor constraints\n // matches constraints that chain with scaleanchor constraints are included\n // here too, but because matches has already been satisfied,\n // any changes here should preserve that.\n for(i = 0; i < constraintGroups.length; i++) {\n group = finalRatios(constraintGroups[i], fullLayout);\n var axisIDs = Object.keys(group);\n\n var minScale = Infinity;\n var maxScale = 0;\n // mostly matchScale will be the same as minScale\n // ie we expand axis ranges to encompass *everything*\n // that's currently in any of their ranges, but during\n // autorange of a subset of axes we will ignore other\n // axes for this purpose.\n var matchScale = Infinity;\n var normScales = {};\n var axes = {};\n var hasAnyDomainConstraint = false;\n\n // find the (normalized) scale of each axis in the group\n for(j = 0; j < axisIDs.length; j++) {\n axisID = axisIDs[j];\n axes[axisID] = ax = fullLayout[id2name(axisID)];\n\n if(ax._inputDomain) ax.domain = ax._inputDomain.slice();\n else ax._inputDomain = ax.domain.slice();\n\n if(!ax._inputRange) ax._inputRange = ax.range.slice();\n\n // set axis scale here so we can use _m rather than\n // having to calculate it from length and range\n ax.setScale();\n\n // abs: inverted scales still satisfy the constraint\n normScales[axisID] = normScale = Math.abs(ax._m) / group[axisID];\n minScale = Math.min(minScale, normScale);\n if(ax.constrain === 'domain' || !ax._constraintShrinkable) {\n matchScale = Math.min(matchScale, normScale);\n }\n\n // this has served its purpose, so remove it\n delete ax._constraintShrinkable;\n maxScale = Math.max(maxScale, normScale);\n\n if(ax.constrain === 'domain') hasAnyDomainConstraint = true;\n }\n\n // Do we have a constraint mismatch? Give a small buffer for rounding errors\n if(minScale > ALMOST_EQUAL * maxScale && !hasAnyDomainConstraint) continue;\n\n // now increase any ranges we need to until all normalized scales are equal\n for(j = 0; j < axisIDs.length; j++) {\n axisID = axisIDs[j];\n normScale = normScales[axisID];\n ax = axes[axisID];\n mode = ax.constrain;\n\n // even if the scale didn't change, if we're shrinking domain\n // we need to recalculate in case `constraintoward` changed\n if(normScale !== matchScale || mode === 'domain') {\n factor = normScale / matchScale;\n\n if(mode === 'range') {\n scaleZoom(ax, factor);\n } else {\n // mode === 'domain'\n\n var inputDomain = ax._inputDomain;\n var domainShrunk = (ax.domain[1] - ax.domain[0]) /\n (inputDomain[1] - inputDomain[0]);\n var rangeShrunk = (ax.r2l(ax.range[1]) - ax.r2l(ax.range[0])) /\n (ax.r2l(ax._inputRange[1]) - ax.r2l(ax._inputRange[0]));\n\n factor /= domainShrunk;\n\n if(factor * rangeShrunk < 1) {\n // we've asked to magnify the axis more than we can just by\n // enlarging the domain - so we need to constrict range\n ax.domain = ax._input.domain = inputDomain.slice();\n scaleZoom(ax, factor);\n continue;\n }\n\n if(rangeShrunk < 1) {\n // the range has previously been constricted by ^^, but we've\n // switched to the domain-constricted regime, so reset range\n ax.range = ax._input.range = ax._inputRange.slice();\n factor *= rangeShrunk;\n }\n\n if(ax.autorange) {\n /*\n * range & factor may need to change because range was\n * calculated for the larger scaling, so some pixel\n * paddings may get cut off when we reduce the domain.\n *\n * This is easier than the regular autorange calculation\n * because we already know the scaling `m`, but we still\n * need to cut out impossible constraints (like\n * annotations with super-long arrows). That's what\n * outerMin/Max are for - if the expansion was going to\n * go beyond the original domain, it must be impossible\n */\n var rl0 = ax.r2l(ax.range[0]);\n var rl1 = ax.r2l(ax.range[1]);\n var rangeCenter = (rl0 + rl1) / 2;\n var rangeMin = rangeCenter;\n var rangeMax = rangeCenter;\n var halfRange = Math.abs(rl1 - rangeCenter);\n // extra tiny bit for rounding errors, in case we actually\n // *are* expanding to the full domain\n var outerMin = rangeCenter - halfRange * factor * 1.0001;\n var outerMax = rangeCenter + halfRange * factor * 1.0001;\n var getPadMin = autorange.makePadFn(fullLayout, ax, 0);\n var getPadMax = autorange.makePadFn(fullLayout, ax, 1);\n\n updateDomain(ax, factor);\n var m = Math.abs(ax._m);\n var extremes = autorange.concatExtremes(gd, ax);\n var minArray = extremes.min;\n var maxArray = extremes.max;\n var newVal;\n var k;\n\n for(k = 0; k < minArray.length; k++) {\n newVal = minArray[k].val - getPadMin(minArray[k]) / m;\n if(newVal > outerMin && newVal < rangeMin) {\n rangeMin = newVal;\n }\n }\n\n for(k = 0; k < maxArray.length; k++) {\n newVal = maxArray[k].val + getPadMax(maxArray[k]) / m;\n if(newVal < outerMax && newVal > rangeMax) {\n rangeMax = newVal;\n }\n }\n\n var domainExpand = (rangeMax - rangeMin) / (2 * halfRange);\n factor /= domainExpand;\n\n rangeMin = ax.l2r(rangeMin);\n rangeMax = ax.l2r(rangeMax);\n ax.range = ax._input.range = (rl0 < rl1) ?\n [rangeMin, rangeMax] : [rangeMax, rangeMin];\n }\n\n updateDomain(ax, factor);\n }\n }\n }\n }\n};\n\nexports.getAxisGroup = function getAxisGroup(fullLayout, axId) {\n var matchGroups = fullLayout._axisMatchGroups;\n\n for(var i = 0; i < matchGroups.length; i++) {\n var group = matchGroups[i];\n if(group[axId]) return 'g' + i;\n }\n return axId;\n};\n\n// For use before autoranging, check if this axis was previously constrained\n// by domain but no longer is\nexports.clean = function clean(gd, ax) {\n if(ax._inputDomain) {\n var isConstrained = false;\n var axId = ax._id;\n var constraintGroups = gd._fullLayout._axisConstraintGroups;\n for(var j = 0; j < constraintGroups.length; j++) {\n if(constraintGroups[j][axId]) {\n isConstrained = true;\n break;\n }\n }\n if(!isConstrained || ax.constrain !== 'domain') {\n ax._input.domain = ax.domain = ax._inputDomain;\n delete ax._inputDomain;\n }\n }\n};\n\nfunction updateDomain(ax, factor) {\n var inputDomain = ax._inputDomain;\n var centerFraction = FROM_BL[ax.constraintoward];\n var center = inputDomain[0] + (inputDomain[1] - inputDomain[0]) * centerFraction;\n\n ax.domain = ax._input.domain = [\n center + (inputDomain[0] - center) / factor,\n center + (inputDomain[1] - center) / factor\n ];\n ax.setScale();\n}\n\n},{\"../../constants/alignment\":471,\"../../constants/numerical\":479,\"../../lib\":503,\"./autorange\":553,\"./axis_ids\":558,\"./layout_attributes\":569,\"./scale_zoom\":574,\"./set_convert\":576}],563:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Lib = _dereq_('../../lib');\nvar numberFormat = Lib.numberFormat;\nvar tinycolor = _dereq_('tinycolor2');\nvar supportsPassive = _dereq_('has-passive-events');\n\nvar Registry = _dereq_('../../registry');\nvar strTranslate = Lib.strTranslate;\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\nvar Color = _dereq_('../../components/color');\nvar Drawing = _dereq_('../../components/drawing');\nvar Fx = _dereq_('../../components/fx');\nvar Axes = _dereq_('./axes');\nvar setCursor = _dereq_('../../lib/setcursor');\nvar dragElement = _dereq_('../../components/dragelement');\nvar helpers = _dereq_('../../components/dragelement/helpers');\nvar selectingOrDrawing = helpers.selectingOrDrawing;\nvar freeMode = helpers.freeMode;\n\nvar FROM_TL = _dereq_('../../constants/alignment').FROM_TL;\nvar clearGlCanvases = _dereq_('../../lib/clear_gl_canvases');\nvar redrawReglTraces = _dereq_('../../plot_api/subroutines').redrawReglTraces;\n\nvar Plots = _dereq_('../plots');\n\nvar getFromId = _dereq_('./axis_ids').getFromId;\nvar prepSelect = _dereq_('./select').prepSelect;\nvar clearSelect = _dereq_('./select').clearSelect;\nvar selectOnClick = _dereq_('./select').selectOnClick;\nvar scaleZoom = _dereq_('./scale_zoom');\n\nvar constants = _dereq_('./constants');\nvar MINDRAG = constants.MINDRAG;\nvar MINZOOM = constants.MINZOOM;\n\n// flag for showing \"doubleclick to zoom out\" only at the beginning\nvar SHOWZOOMOUTTIP = true;\n\n// dragBox: create an element to drag one or more axis ends\n// inputs:\n// plotinfo - which subplot are we making dragboxes on?\n// x,y,w,h - left, top, width, height of the box\n// ns - how does this drag the vertical axis?\n// 'n' - top only\n// 's' - bottom only\n// 'ns' - top and bottom together, difference unchanged\n// ew - same for horizontal axis\nfunction makeDragBox(gd, plotinfo, x, y, w, h, ns, ew) {\n // mouseDown stores ms of first mousedown event in the last\n // `gd._context.doubleClickDelay` ms on the drag bars\n // numClicks stores how many mousedowns have been seen\n // within `gd._context.doubleClickDelay` so we can check for click or doubleclick events\n // dragged stores whether a drag has occurred, so we don't have to\n // redraw unnecessarily, ie if no move bigger than MINDRAG or MINZOOM px\n var zoomlayer = gd._fullLayout._zoomlayer;\n var isMainDrag = (ns + ew === 'nsew');\n var singleEnd = (ns + ew).length === 1;\n\n // main subplot x and y (i.e. found in plotinfo - the main ones)\n var xa0, ya0;\n // {ax._id: ax} hash objects\n var xaHash, yaHash;\n // xaHash/yaHash values (arrays)\n var xaxes, yaxes;\n // main axis offsets\n var xs, ys;\n // main axis lengths\n var pw, ph;\n // contains keys 'xaHash', 'yaHash', 'xaxes', and 'yaxes'\n // which are the x/y {ax._id: ax} hash objects and their values\n // for linked axis relative to this subplot\n var links;\n // similar to `links` but for matching axes\n var matches;\n // set to ew/ns val when active, set to '' when inactive\n var xActive, yActive;\n // are all axes in this subplot are fixed?\n var allFixedRanges;\n // do we need to edit x/y ranges?\n var editX, editY;\n // graph-wide optimization flags\n var hasScatterGl, hasSplom, hasSVG;\n // collected changes to be made to the plot by relayout at the end\n var updates;\n // scaling factors from css transform\n var scaleX;\n var scaleY;\n\n function recomputeAxisLists() {\n xa0 = plotinfo.xaxis;\n ya0 = plotinfo.yaxis;\n pw = xa0._length;\n ph = ya0._length;\n xs = xa0._offset;\n ys = ya0._offset;\n\n xaHash = {};\n xaHash[xa0._id] = xa0;\n yaHash = {};\n yaHash[ya0._id] = ya0;\n\n // if we're dragging two axes at once, also drag overlays\n if(ns && ew) {\n var overlays = plotinfo.overlays;\n for(var i = 0; i < overlays.length; i++) {\n var xa = overlays[i].xaxis;\n xaHash[xa._id] = xa;\n var ya = overlays[i].yaxis;\n yaHash[ya._id] = ya;\n }\n }\n\n xaxes = hashValues(xaHash);\n yaxes = hashValues(yaHash);\n xActive = isDirectionActive(xaxes, ew);\n yActive = isDirectionActive(yaxes, ns);\n allFixedRanges = !yActive && !xActive;\n\n matches = calcLinks(gd, gd._fullLayout._axisMatchGroups, xaHash, yaHash);\n links = calcLinks(gd, gd._fullLayout._axisConstraintGroups, xaHash, yaHash, matches);\n var spConstrained = links.isSubplotConstrained || matches.isSubplotConstrained;\n editX = ew || spConstrained;\n editY = ns || spConstrained;\n\n var fullLayout = gd._fullLayout;\n hasScatterGl = fullLayout._has('scattergl');\n hasSplom = fullLayout._has('splom');\n hasSVG = fullLayout._has('svg');\n }\n\n recomputeAxisLists();\n\n var cursor = getDragCursor(yActive + xActive, gd._fullLayout.dragmode, isMainDrag);\n var dragger = makeRectDragger(plotinfo, ns + ew + 'drag', cursor, x, y, w, h);\n\n // still need to make the element if the axes are disabled\n // but nuke its events (except for maindrag which needs them for hover)\n // and stop there\n if(allFixedRanges && !isMainDrag) {\n dragger.onmousedown = null;\n dragger.style.pointerEvents = 'none';\n return dragger;\n }\n\n var dragOptions = {\n element: dragger,\n gd: gd,\n plotinfo: plotinfo\n };\n\n dragOptions.prepFn = function(e, startX, startY) {\n var dragModePrev = dragOptions.dragmode;\n var dragModeNow = gd._fullLayout.dragmode;\n if(dragModeNow !== dragModePrev) {\n dragOptions.dragmode = dragModeNow;\n }\n\n recomputeAxisLists();\n\n scaleX = gd._fullLayout._invScaleX;\n scaleY = gd._fullLayout._invScaleY;\n\n if(!allFixedRanges) {\n if(isMainDrag) {\n // main dragger handles all drag modes, and changes\n // to pan (or to zoom if it already is pan) on shift\n if(e.shiftKey) {\n if(dragModeNow === 'pan') dragModeNow = 'zoom';\n else if(!selectingOrDrawing(dragModeNow)) dragModeNow = 'pan';\n } else if(e.ctrlKey) {\n dragModeNow = 'pan';\n }\n } else {\n // all other draggers just pan\n dragModeNow = 'pan';\n }\n }\n\n if(freeMode(dragModeNow)) dragOptions.minDrag = 1;\n else dragOptions.minDrag = undefined;\n\n if(selectingOrDrawing(dragModeNow)) {\n dragOptions.xaxes = xaxes;\n dragOptions.yaxes = yaxes;\n // this attaches moveFn, clickFn, doneFn on dragOptions\n prepSelect(e, startX, startY, dragOptions, dragModeNow);\n } else {\n dragOptions.clickFn = clickFn;\n if(selectingOrDrawing(dragModePrev)) {\n // TODO Fix potential bug\n // Note: clearing / resetting selection state only happens, when user\n // triggers at least one interaction in pan/zoom mode. Otherwise, the\n // select/lasso outlines are deleted (in plots.js.cleanPlot) but the selection\n // cache isn't cleared. So when the user switches back to select/lasso and\n // 'adds to a selection' with Shift, the \"old\", seemingly removed outlines\n // are redrawn again because the selection cache still holds their coordinates.\n // However, this isn't easily solved, since plots.js would need\n // to have a reference to the dragOptions object (which holds the\n // selection cache).\n clearAndResetSelect();\n }\n\n if(!allFixedRanges) {\n if(dragModeNow === 'zoom') {\n dragOptions.moveFn = zoomMove;\n dragOptions.doneFn = zoomDone;\n\n // zoomMove takes care of the threshold, but we need to\n // minimize this so that constrained zoom boxes will flip\n // orientation at the right place\n dragOptions.minDrag = 1;\n\n zoomPrep(e, startX, startY);\n } else if(dragModeNow === 'pan') {\n dragOptions.moveFn = plotDrag;\n dragOptions.doneFn = dragTail;\n }\n }\n }\n\n gd._fullLayout._redrag = function() {\n var dragDataNow = gd._dragdata;\n\n if(dragDataNow && dragDataNow.element === dragger) {\n var dragModeNow = gd._fullLayout.dragmode;\n\n if(!selectingOrDrawing(dragModeNow)) {\n recomputeAxisLists();\n updateSubplots([0, 0, pw, ph]);\n dragOptions.moveFn(dragDataNow.dx, dragDataNow.dy);\n }\n\n // TODO should we try to \"re-select\" under select/lasso modes?\n // probably best to wait for https://github.com/plotly/plotly.js/issues/1851\n }\n };\n };\n\n function clearAndResetSelect() {\n // clear selection polygon cache (if any)\n dragOptions.plotinfo.selection = false;\n // clear selection outlines\n clearSelect(gd);\n }\n\n function clickFn(numClicks, evt) {\n var gd = dragOptions.gd;\n if(gd._fullLayout._activeShapeIndex >= 0) {\n gd._fullLayout._deactivateShape(gd);\n return;\n }\n\n var clickmode = gd._fullLayout.clickmode;\n\n removeZoombox(gd);\n\n if(numClicks === 2 && !singleEnd) doubleClick();\n\n if(isMainDrag) {\n if(clickmode.indexOf('select') > -1) {\n selectOnClick(evt, gd, xaxes, yaxes, plotinfo.id, dragOptions);\n }\n\n if(clickmode.indexOf('event') > -1) {\n Fx.click(gd, evt, plotinfo.id);\n }\n } else if(numClicks === 1 && singleEnd) {\n var ax = ns ? ya0 : xa0;\n var end = (ns === 's' || ew === 'w') ? 0 : 1;\n var attrStr = ax._name + '.range[' + end + ']';\n var initialText = getEndText(ax, end);\n var hAlign = 'left';\n var vAlign = 'middle';\n\n if(ax.fixedrange) return;\n\n if(ns) {\n vAlign = (ns === 'n') ? 'top' : 'bottom';\n if(ax.side === 'right') hAlign = 'right';\n } else if(ew === 'e') hAlign = 'right';\n\n if(gd._context.showAxisRangeEntryBoxes) {\n d3.select(dragger)\n .call(svgTextUtils.makeEditable, {\n gd: gd,\n immediate: true,\n background: gd._fullLayout.paper_bgcolor,\n text: String(initialText),\n fill: ax.tickfont ? ax.tickfont.color : '#444',\n horizontalAlign: hAlign,\n verticalAlign: vAlign\n })\n .on('edit', function(text) {\n var v = ax.d2r(text);\n if(v !== undefined) {\n Registry.call('_guiRelayout', gd, attrStr, v);\n }\n });\n }\n }\n }\n\n dragElement.init(dragOptions);\n\n // x/y px position at start of drag\n var x0, y0;\n // bbox object of the zoombox\n var box;\n // luminance of bg behind zoombox\n var lum;\n // zoombox path outline\n var path0;\n // is zoombox dimmed (during drag)\n var dimmed;\n // 'x'-only, 'y' or 'xy' zooming\n var zoomMode;\n // zoombox d3 selection\n var zb;\n // zoombox corner d3 selection\n var corners;\n // zoom takes over minDrag, so it also has to take over gd._dragged\n var zoomDragged;\n\n function zoomPrep(e, startX, startY) {\n var dragBBox = dragger.getBoundingClientRect();\n x0 = startX - dragBBox.left;\n y0 = startY - dragBBox.top;\n\n gd._fullLayout._calcInverseTransform(gd);\n var transformedCoords = Lib.apply3DTransform(gd._fullLayout._invTransform)(x0, y0);\n x0 = transformedCoords[0];\n y0 = transformedCoords[1];\n\n box = {l: x0, r: x0, w: 0, t: y0, b: y0, h: 0};\n lum = gd._hmpixcount ?\n (gd._hmlumcount / gd._hmpixcount) :\n tinycolor(gd._fullLayout.plot_bgcolor).getLuminance();\n path0 = 'M0,0H' + pw + 'V' + ph + 'H0V0';\n dimmed = false;\n zoomMode = 'xy';\n zoomDragged = false;\n zb = makeZoombox(zoomlayer, lum, xs, ys, path0);\n corners = makeCorners(zoomlayer, xs, ys);\n }\n\n function zoomMove(dx0, dy0) {\n if(gd._transitioningWithDuration) {\n return false;\n }\n\n var x1 = Math.max(0, Math.min(pw, scaleX * dx0 + x0));\n var y1 = Math.max(0, Math.min(ph, scaleY * dy0 + y0));\n var dx = Math.abs(x1 - x0);\n var dy = Math.abs(y1 - y0);\n\n box.l = Math.min(x0, x1);\n box.r = Math.max(x0, x1);\n box.t = Math.min(y0, y1);\n box.b = Math.max(y0, y1);\n\n function noZoom() {\n zoomMode = '';\n box.r = box.l;\n box.t = box.b;\n corners.attr('d', 'M0,0Z');\n }\n\n if(links.isSubplotConstrained) {\n if(dx > MINZOOM || dy > MINZOOM) {\n zoomMode = 'xy';\n if(dx / pw > dy / ph) {\n dy = dx * ph / pw;\n if(y0 > y1) box.t = y0 - dy;\n else box.b = y0 + dy;\n } else {\n dx = dy * pw / ph;\n if(x0 > x1) box.l = x0 - dx;\n else box.r = x0 + dx;\n }\n corners.attr('d', xyCorners(box));\n } else {\n noZoom();\n }\n } else if(matches.isSubplotConstrained) {\n if(dx > MINZOOM || dy > MINZOOM) {\n zoomMode = 'xy';\n\n var r0 = Math.min(box.l / pw, (ph - box.b) / ph);\n var r1 = Math.max(box.r / pw, (ph - box.t) / ph);\n\n box.l = r0 * pw;\n box.r = r1 * pw;\n box.b = (1 - r0) * ph;\n box.t = (1 - r1) * ph;\n corners.attr('d', xyCorners(box));\n } else {\n noZoom();\n }\n } else if(!yActive || dy < Math.min(Math.max(dx * 0.6, MINDRAG), MINZOOM)) {\n // look for small drags in one direction or the other,\n // and only drag the other axis\n\n if(dx < MINDRAG || !xActive) {\n noZoom();\n } else {\n box.t = 0;\n box.b = ph;\n zoomMode = 'x';\n corners.attr('d', xCorners(box, y0));\n }\n } else if(!xActive || dx < Math.min(dy * 0.6, MINZOOM)) {\n box.l = 0;\n box.r = pw;\n zoomMode = 'y';\n corners.attr('d', yCorners(box, x0));\n } else {\n zoomMode = 'xy';\n corners.attr('d', xyCorners(box));\n }\n box.w = box.r - box.l;\n box.h = box.b - box.t;\n\n if(zoomMode) zoomDragged = true;\n gd._dragged = zoomDragged;\n\n updateZoombox(zb, corners, box, path0, dimmed, lum);\n computeZoomUpdates();\n gd.emit('plotly_relayouting', updates);\n dimmed = true;\n }\n\n function computeZoomUpdates() {\n updates = {};\n\n // TODO: edit linked axes in zoomAxRanges and in dragTail\n if(zoomMode === 'xy' || zoomMode === 'x') {\n zoomAxRanges(xaxes, box.l / pw, box.r / pw, updates, links.xaxes);\n updateMatchedAxRange('x', updates);\n }\n if(zoomMode === 'xy' || zoomMode === 'y') {\n zoomAxRanges(yaxes, (ph - box.b) / ph, (ph - box.t) / ph, updates, links.yaxes);\n updateMatchedAxRange('y', updates);\n }\n }\n\n function zoomDone() {\n computeZoomUpdates();\n removeZoombox(gd);\n dragTail();\n showDoubleClickNotifier(gd);\n }\n\n // scroll zoom, on all draggers except corners\n var scrollViewBox = [0, 0, pw, ph];\n // wait a little after scrolling before redrawing\n var redrawTimer = null;\n var REDRAWDELAY = constants.REDRAWDELAY;\n var mainplot = plotinfo.mainplot ? gd._fullLayout._plots[plotinfo.mainplot] : plotinfo;\n\n function zoomWheel(e) {\n // deactivate mousewheel scrolling on embedded graphs\n // devs can override this with layout._enablescrollzoom,\n // but _ ensures this setting won't leave their page\n if(!gd._context._scrollZoom.cartesian && !gd._fullLayout._enablescrollzoom) {\n return;\n }\n\n clearAndResetSelect();\n\n // If a transition is in progress, then disable any behavior:\n if(gd._transitioningWithDuration) {\n e.preventDefault();\n e.stopPropagation();\n return;\n }\n\n recomputeAxisLists();\n\n clearTimeout(redrawTimer);\n\n var wheelDelta = -e.deltaY;\n if(!isFinite(wheelDelta)) wheelDelta = e.wheelDelta / 10;\n if(!isFinite(wheelDelta)) {\n Lib.log('Did not find wheel motion attributes: ', e);\n return;\n }\n\n var zoom = Math.exp(-Math.min(Math.max(wheelDelta, -20), 20) / 200);\n var gbb = mainplot.draglayer.select('.nsewdrag').node().getBoundingClientRect();\n var xfrac = (e.clientX - gbb.left) / gbb.width;\n var yfrac = (gbb.bottom - e.clientY) / gbb.height;\n var i;\n\n function zoomWheelOneAxis(ax, centerFraction, zoom) {\n if(ax.fixedrange) return;\n\n var axRange = Lib.simpleMap(ax.range, ax.r2l);\n var v0 = axRange[0] + (axRange[1] - axRange[0]) * centerFraction;\n function doZoom(v) { return ax.l2r(v0 + (v - v0) * zoom); }\n ax.range = axRange.map(doZoom);\n }\n\n if(editX) {\n // if we're only zooming this axis because of constraints,\n // zoom it about the center\n if(!ew) xfrac = 0.5;\n\n for(i = 0; i < xaxes.length; i++) {\n zoomWheelOneAxis(xaxes[i], xfrac, zoom);\n }\n updateMatchedAxRange('x');\n\n scrollViewBox[2] *= zoom;\n scrollViewBox[0] += scrollViewBox[2] * xfrac * (1 / zoom - 1);\n }\n if(editY) {\n if(!ns) yfrac = 0.5;\n\n for(i = 0; i < yaxes.length; i++) {\n zoomWheelOneAxis(yaxes[i], yfrac, zoom);\n }\n updateMatchedAxRange('y');\n\n scrollViewBox[3] *= zoom;\n scrollViewBox[1] += scrollViewBox[3] * (1 - yfrac) * (1 / zoom - 1);\n }\n\n // viewbox redraw at first\n updateSubplots(scrollViewBox);\n ticksAndAnnotations();\n\n gd.emit('plotly_relayouting', updates);\n\n // then replot after a delay to make sure\n // no more scrolling is coming\n redrawTimer = setTimeout(function() {\n if(!gd._fullLayout) return;\n scrollViewBox = [0, 0, pw, ph];\n dragTail();\n }, REDRAWDELAY);\n\n e.preventDefault();\n return;\n }\n\n // everything but the corners gets wheel zoom\n if(ns.length * ew.length !== 1) {\n attachWheelEventHandler(dragger, zoomWheel);\n }\n\n // plotDrag: move the plot in response to a drag\n function plotDrag(dx, dy) {\n dx = dx * scaleX;\n dy = dy * scaleY;\n // If a transition is in progress, then disable any behavior:\n if(gd._transitioningWithDuration) {\n return;\n }\n\n // prevent axis drawing from monkeying with margins until we're done\n gd._fullLayout._replotting = true;\n\n if(xActive === 'ew' || yActive === 'ns') {\n var spDx = xActive ? -dx : 0;\n var spDy = yActive ? -dy : 0;\n if(matches.isSubplotConstrained) {\n if(xActive && yActive) {\n var frac = (dx / pw - dy / ph) / 2;\n dx = frac * pw;\n dy = -frac * ph;\n spDx = -dx;\n spDy = -dy;\n }\n if(yActive) {\n spDx = -spDy * pw / ph;\n } else {\n spDy = -spDx * ph / pw;\n }\n }\n if(xActive) {\n dragAxList(xaxes, dx);\n updateMatchedAxRange('x');\n }\n if(yActive) {\n dragAxList(yaxes, dy);\n updateMatchedAxRange('y');\n }\n updateSubplots([spDx, spDy, pw, ph]);\n ticksAndAnnotations();\n gd.emit('plotly_relayouting', updates);\n return;\n }\n\n // dz: set a new value for one end (0 or 1) of an axis array axArray,\n // and return a pixel shift for that end for the viewbox\n // based on pixel drag distance d\n // TODO: this makes (generally non-fatal) errors when you get\n // near floating point limits\n function dz(axArray, end, d) {\n var otherEnd = 1 - end;\n var movedAx;\n var newLinearizedEnd;\n for(var i = 0; i < axArray.length; i++) {\n var axi = axArray[i];\n if(axi.fixedrange) continue;\n movedAx = axi;\n newLinearizedEnd = axi._rl[otherEnd] +\n (axi._rl[end] - axi._rl[otherEnd]) / dZoom(d / axi._length);\n var newEnd = axi.l2r(newLinearizedEnd);\n\n // if l2r comes back false or undefined, it means we've dragged off\n // the end of valid ranges - so stop.\n if(newEnd !== false && newEnd !== undefined) axi.range[end] = newEnd;\n }\n return movedAx._length * (movedAx._rl[end] - newLinearizedEnd) /\n (movedAx._rl[end] - movedAx._rl[otherEnd]);\n }\n\n var dxySign = ((xActive === 'w') === (yActive === 'n')) ? 1 : -1;\n if(xActive && yActive && (links.isSubplotConstrained || matches.isSubplotConstrained)) {\n // dragging a corner of a constrained subplot:\n // respect the fixed corner, but harmonize dx and dy\n var dxyFraction = (dx / pw + dxySign * dy / ph) / 2;\n dx = dxyFraction * pw;\n dy = dxySign * dxyFraction * ph;\n }\n\n var xStart, yStart;\n\n if(xActive === 'w') dx = dz(xaxes, 0, dx);\n else if(xActive === 'e') dx = dz(xaxes, 1, -dx);\n else if(!xActive) dx = 0;\n\n if(yActive === 'n') dy = dz(yaxes, 1, dy);\n else if(yActive === 's') dy = dz(yaxes, 0, -dy);\n else if(!yActive) dy = 0;\n\n xStart = (xActive === 'w') ? dx : 0;\n yStart = (yActive === 'n') ? dy : 0;\n\n if(\n (links.isSubplotConstrained && !matches.isSubplotConstrained) ||\n // NW or SE on matching axes - create a symmetric zoom\n (matches.isSubplotConstrained && xActive && yActive && dxySign > 0)\n ) {\n var i;\n if(matches.isSubplotConstrained || (!xActive && yActive.length === 1)) {\n // dragging one end of the y axis of a constrained subplot\n // scale the other axis the same about its middle\n for(i = 0; i < xaxes.length; i++) {\n xaxes[i].range = xaxes[i]._r.slice();\n scaleZoom(xaxes[i], 1 - dy / ph);\n }\n dx = dy * pw / ph;\n xStart = dx / 2;\n }\n if(matches.isSubplotConstrained || (!yActive && xActive.length === 1)) {\n for(i = 0; i < yaxes.length; i++) {\n yaxes[i].range = yaxes[i]._r.slice();\n scaleZoom(yaxes[i], 1 - dx / pw);\n }\n dy = dx * ph / pw;\n yStart = dy / 2;\n }\n }\n\n if(!matches.isSubplotConstrained || !yActive) {\n updateMatchedAxRange('x');\n }\n if(!matches.isSubplotConstrained || !xActive) {\n updateMatchedAxRange('y');\n }\n var xSize = pw - dx;\n var ySize = ph - dy;\n if(matches.isSubplotConstrained && !(xActive && yActive)) {\n if(xActive) {\n yStart = xStart ? 0 : (dx * ph / pw);\n ySize = xSize * ph / pw;\n } else {\n xStart = yStart ? 0 : (dy * pw / ph);\n xSize = ySize * pw / ph;\n }\n }\n updateSubplots([xStart, yStart, xSize, ySize]);\n ticksAndAnnotations();\n gd.emit('plotly_relayouting', updates);\n }\n\n function updateMatchedAxRange(axLetter, out) {\n var matchedAxes = matches.isSubplotConstrained ?\n {x: yaxes, y: xaxes}[axLetter] :\n matches[axLetter + 'axes'];\n\n var constrainedAxes = matches.isSubplotConstrained ?\n {x: xaxes, y: yaxes}[axLetter] :\n [];\n\n for(var i = 0; i < matchedAxes.length; i++) {\n var ax = matchedAxes[i];\n var axId = ax._id;\n var axId2 = matches.xLinks[axId] || matches.yLinks[axId];\n var ax2 = constrainedAxes[0] || xaHash[axId2] || yaHash[axId2];\n\n if(ax2) {\n if(out) {\n // zoombox case - don't mutate 'range', just add keys in 'updates'\n out[ax._name + '.range[0]'] = out[ax2._name + '.range[0]'];\n out[ax._name + '.range[1]'] = out[ax2._name + '.range[1]'];\n } else {\n ax.range = ax2.range.slice();\n }\n }\n }\n }\n\n // Draw ticks and annotations (and other components) when ranges change.\n // Also records the ranges that have changed for use by update at the end.\n function ticksAndAnnotations() {\n var activeAxIds = [];\n var i;\n\n function pushActiveAxIds(axList) {\n for(i = 0; i < axList.length; i++) {\n if(!axList[i].fixedrange) activeAxIds.push(axList[i]._id);\n }\n }\n\n if(editX) {\n pushActiveAxIds(xaxes);\n pushActiveAxIds(links.xaxes);\n pushActiveAxIds(matches.xaxes);\n }\n if(editY) {\n pushActiveAxIds(yaxes);\n pushActiveAxIds(links.yaxes);\n pushActiveAxIds(matches.yaxes);\n }\n\n updates = {};\n for(i = 0; i < activeAxIds.length; i++) {\n var axId = activeAxIds[i];\n var ax = getFromId(gd, axId);\n Axes.drawOne(gd, ax, {skipTitle: true});\n updates[ax._name + '.range[0]'] = ax.range[0];\n updates[ax._name + '.range[1]'] = ax.range[1];\n }\n\n Axes.redrawComponents(gd, activeAxIds);\n }\n\n function doubleClick() {\n if(gd._transitioningWithDuration) return;\n\n var doubleClickConfig = gd._context.doubleClick;\n\n var axList = [];\n if(xActive) axList = axList.concat(xaxes);\n if(yActive) axList = axList.concat(yaxes);\n if(matches.xaxes) axList = axList.concat(matches.xaxes);\n if(matches.yaxes) axList = axList.concat(matches.yaxes);\n\n var attrs = {};\n var ax, i, rangeInitial;\n\n // For reset+autosize mode:\n // If *any* of the main axes is not at its initial range\n // (or autoranged, if we have no initial range, to match the logic in\n // doubleClickConfig === 'reset' below), we reset.\n // If they are *all* at their initial ranges, then we autosize.\n if(doubleClickConfig === 'reset+autosize') {\n doubleClickConfig = 'autosize';\n\n for(i = 0; i < axList.length; i++) {\n ax = axList[i];\n if((ax._rangeInitial && (\n ax.range[0] !== ax._rangeInitial[0] ||\n ax.range[1] !== ax._rangeInitial[1]\n )) ||\n (!ax._rangeInitial && !ax.autorange)\n ) {\n doubleClickConfig = 'reset';\n break;\n }\n }\n }\n\n if(doubleClickConfig === 'autosize') {\n // don't set the linked axes here, so relayout marks them as shrinkable\n // and we autosize just to the requested axis/axes\n for(i = 0; i < axList.length; i++) {\n ax = axList[i];\n if(!ax.fixedrange) attrs[ax._name + '.autorange'] = true;\n }\n } else if(doubleClickConfig === 'reset') {\n // when we're resetting, reset all linked axes too, so we get back\n // to the fully-auto-with-constraints situation\n if(xActive || links.isSubplotConstrained) axList = axList.concat(links.xaxes);\n if(yActive && !links.isSubplotConstrained) axList = axList.concat(links.yaxes);\n\n if(links.isSubplotConstrained) {\n if(!xActive) axList = axList.concat(xaxes);\n else if(!yActive) axList = axList.concat(yaxes);\n }\n\n for(i = 0; i < axList.length; i++) {\n ax = axList[i];\n\n if(!ax.fixedrange) {\n if(!ax._rangeInitial) {\n attrs[ax._name + '.autorange'] = true;\n } else {\n rangeInitial = ax._rangeInitial;\n attrs[ax._name + '.range[0]'] = rangeInitial[0];\n attrs[ax._name + '.range[1]'] = rangeInitial[1];\n }\n }\n }\n }\n\n gd.emit('plotly_doubleclick', null);\n Registry.call('_guiRelayout', gd, attrs);\n }\n\n // dragTail - finish a drag event with a redraw\n function dragTail() {\n // put the subplot viewboxes back to default (Because we're going to)\n // be repositioning the data in the relayout. But DON'T call\n // ticksAndAnnotations again - it's unnecessary and would overwrite `updates`\n updateSubplots([0, 0, pw, ph]);\n\n // since we may have been redrawing some things during the drag, we may have\n // accumulated MathJax promises - wait for them before we relayout.\n Lib.syncOrAsync([\n Plots.previousPromises,\n function() {\n gd._fullLayout._replotting = false;\n Registry.call('_guiRelayout', gd, updates);\n }\n ], gd);\n }\n\n // updateSubplots - find all plot viewboxes that should be\n // affected by this drag, and update them. look for all plots\n // sharing an affected axis (including the one being dragged),\n // includes also scattergl and splom logic.\n function updateSubplots(viewBox) {\n var fullLayout = gd._fullLayout;\n var plotinfos = fullLayout._plots;\n var subplots = fullLayout._subplots.cartesian;\n var i, sp, xa, ya;\n\n if(hasSplom) {\n Registry.subplotsRegistry.splom.drag(gd);\n }\n\n if(hasScatterGl) {\n for(i = 0; i < subplots.length; i++) {\n sp = plotinfos[subplots[i]];\n xa = sp.xaxis;\n ya = sp.yaxis;\n\n if(sp._scene) {\n var xrng = Lib.simpleMap(xa.range, xa.r2l);\n var yrng = Lib.simpleMap(ya.range, ya.r2l);\n sp._scene.update({range: [xrng[0], yrng[0], xrng[1], yrng[1]]});\n }\n }\n }\n\n if(hasSplom || hasScatterGl) {\n clearGlCanvases(gd);\n redrawReglTraces(gd);\n }\n\n if(hasSVG) {\n var xScaleFactor = viewBox[2] / xa0._length;\n var yScaleFactor = viewBox[3] / ya0._length;\n\n for(i = 0; i < subplots.length; i++) {\n sp = plotinfos[subplots[i]];\n xa = sp.xaxis;\n ya = sp.yaxis;\n\n var editX2 = (editX || matches.isSubplotConstrained) && !xa.fixedrange && xaHash[xa._id];\n var editY2 = (editY || matches.isSubplotConstrained) && !ya.fixedrange && yaHash[ya._id];\n\n var xScaleFactor2, yScaleFactor2;\n var clipDx, clipDy;\n\n if(editX2) {\n xScaleFactor2 = xScaleFactor;\n clipDx = ew || matches.isSubplotConstrained ? viewBox[0] : getShift(xa, xScaleFactor2);\n } else if(matches.xaHash[xa._id]) {\n xScaleFactor2 = xScaleFactor;\n clipDx = viewBox[0] * xa._length / xa0._length;\n } else if(matches.yaHash[xa._id]) {\n xScaleFactor2 = yScaleFactor;\n clipDx = yActive === 'ns' ?\n -viewBox[1] * xa._length / ya0._length :\n getShift(xa, xScaleFactor2, {n: 'top', s: 'bottom'}[yActive]);\n } else {\n xScaleFactor2 = getLinkedScaleFactor(xa, xScaleFactor, yScaleFactor);\n clipDx = scaleAndGetShift(xa, xScaleFactor2);\n }\n\n if(editY2) {\n yScaleFactor2 = yScaleFactor;\n clipDy = ns || matches.isSubplotConstrained ? viewBox[1] : getShift(ya, yScaleFactor2);\n } else if(matches.yaHash[ya._id]) {\n yScaleFactor2 = yScaleFactor;\n clipDy = viewBox[1] * ya._length / ya0._length;\n } else if(matches.xaHash[ya._id]) {\n yScaleFactor2 = xScaleFactor;\n clipDy = xActive === 'ew' ?\n -viewBox[0] * ya._length / xa0._length :\n getShift(ya, yScaleFactor2, {e: 'right', w: 'left'}[xActive]);\n } else {\n yScaleFactor2 = getLinkedScaleFactor(ya, xScaleFactor, yScaleFactor);\n clipDy = scaleAndGetShift(ya, yScaleFactor2);\n }\n\n // don't scale at all if neither axis is scalable here\n if(!xScaleFactor2 && !yScaleFactor2) {\n continue;\n }\n\n // but if only one is, reset the other axis scaling\n if(!xScaleFactor2) xScaleFactor2 = 1;\n if(!yScaleFactor2) yScaleFactor2 = 1;\n\n var plotDx = xa._offset - clipDx / xScaleFactor2;\n var plotDy = ya._offset - clipDy / yScaleFactor2;\n\n // TODO could be more efficient here:\n // setTranslate and setScale do a lot of extra work\n // when working independently, should perhaps combine\n // them into a single routine.\n sp.clipRect\n .call(Drawing.setTranslate, clipDx, clipDy)\n .call(Drawing.setScale, xScaleFactor2, yScaleFactor2);\n\n sp.plot\n .call(Drawing.setTranslate, plotDx, plotDy)\n .call(Drawing.setScale, 1 / xScaleFactor2, 1 / yScaleFactor2);\n\n // apply an inverse scale to individual points to counteract\n // the scale of the trace group.\n // apply only when scale changes, as adjusting the scale of\n // all the points can be expansive.\n if(xScaleFactor2 !== sp.xScaleFactor || yScaleFactor2 !== sp.yScaleFactor) {\n Drawing.setPointGroupScale(sp.zoomScalePts, xScaleFactor2, yScaleFactor2);\n Drawing.setTextPointsScale(sp.zoomScaleTxt, xScaleFactor2, yScaleFactor2);\n }\n\n Drawing.hideOutsideRangePoints(sp.clipOnAxisFalseTraces, sp);\n\n // update x/y scaleFactor stash\n sp.xScaleFactor = xScaleFactor2;\n sp.yScaleFactor = yScaleFactor2;\n }\n }\n }\n\n // Find the appropriate scaling for this axis, if it's linked to the\n // dragged axes by constraints. 0 is special, it means this axis shouldn't\n // ever be scaled (will be converted to 1 if the other axis is scaled)\n function getLinkedScaleFactor(ax, xScaleFactor, yScaleFactor) {\n if(ax.fixedrange) return 0;\n\n if(editX && links.xaHash[ax._id]) {\n return xScaleFactor;\n }\n if(editY && (links.isSubplotConstrained ? links.xaHash : links.yaHash)[ax._id]) {\n return yScaleFactor;\n }\n return 0;\n }\n\n function scaleAndGetShift(ax, scaleFactor) {\n if(scaleFactor) {\n ax.range = ax._r.slice();\n scaleZoom(ax, scaleFactor);\n return getShift(ax, scaleFactor);\n }\n return 0;\n }\n\n function getShift(ax, scaleFactor, from) {\n return ax._length * (1 - scaleFactor) * FROM_TL[from || ax.constraintoward || 'middle'];\n }\n\n return dragger;\n}\n\nfunction makeDragger(plotinfo, nodeName, dragClass, cursor) {\n var dragger3 = Lib.ensureSingle(plotinfo.draglayer, nodeName, dragClass, function(s) {\n s.classed('drag', true)\n .style({fill: 'transparent', 'stroke-width': 0})\n .attr('data-subplot', plotinfo.id);\n });\n\n dragger3.call(setCursor, cursor);\n\n return dragger3.node();\n}\n\nfunction makeRectDragger(plotinfo, dragClass, cursor, x, y, w, h) {\n var dragger = makeDragger(plotinfo, 'rect', dragClass, cursor);\n d3.select(dragger).call(Drawing.setRect, x, y, w, h);\n return dragger;\n}\n\nfunction isDirectionActive(axList, activeVal) {\n for(var i = 0; i < axList.length; i++) {\n if(!axList[i].fixedrange) return activeVal;\n }\n return '';\n}\n\nfunction getEndText(ax, end) {\n var initialVal = ax.range[end];\n var diff = Math.abs(initialVal - ax.range[1 - end]);\n var dig;\n\n // TODO: this should basically be ax.r2d but we're doing extra\n // rounding here... can we clean up at all?\n if(ax.type === 'date') {\n return initialVal;\n } else if(ax.type === 'log') {\n dig = Math.ceil(Math.max(0, -Math.log(diff) / Math.LN10)) + 3;\n return numberFormat('.' + dig + 'g')(Math.pow(10, initialVal));\n } else { // linear numeric (or category... but just show numbers here)\n dig = Math.floor(Math.log(Math.abs(initialVal)) / Math.LN10) -\n Math.floor(Math.log(diff) / Math.LN10) + 4;\n return numberFormat('.' + String(dig) + 'g')(initialVal);\n }\n}\n\nfunction zoomAxRanges(axList, r0Fraction, r1Fraction, updates, linkedAxes) {\n for(var i = 0; i < axList.length; i++) {\n var axi = axList[i];\n if(axi.fixedrange) continue;\n\n if(axi.rangebreaks) {\n var isY = axi._id.charAt(0) === 'y';\n var r0F = isY ? (1 - r0Fraction) : r0Fraction;\n var r1F = isY ? (1 - r1Fraction) : r1Fraction;\n\n updates[axi._name + '.range[0]'] = axi.l2r(axi.p2l(r0F * axi._length));\n updates[axi._name + '.range[1]'] = axi.l2r(axi.p2l(r1F * axi._length));\n } else {\n var axRangeLinear0 = axi._rl[0];\n var axRangeLinearSpan = axi._rl[1] - axRangeLinear0;\n updates[axi._name + '.range[0]'] = axi.l2r(axRangeLinear0 + axRangeLinearSpan * r0Fraction);\n updates[axi._name + '.range[1]'] = axi.l2r(axRangeLinear0 + axRangeLinearSpan * r1Fraction);\n }\n }\n\n // zoom linked axes about their centers\n if(linkedAxes && linkedAxes.length) {\n var linkedR0Fraction = (r0Fraction + (1 - r1Fraction)) / 2;\n zoomAxRanges(linkedAxes, linkedR0Fraction, 1 - linkedR0Fraction, updates, []);\n }\n}\n\nfunction dragAxList(axList, pix) {\n for(var i = 0; i < axList.length; i++) {\n var axi = axList[i];\n if(!axi.fixedrange) {\n if(axi.rangebreaks) {\n var p0 = 0;\n var p1 = axi._length;\n var d0 = axi.p2l(p0 + pix) - axi.p2l(p0);\n var d1 = axi.p2l(p1 + pix) - axi.p2l(p1);\n var delta = (d0 + d1) / 2;\n\n axi.range = [\n axi.l2r(axi._rl[0] - delta),\n axi.l2r(axi._rl[1] - delta)\n ];\n } else {\n axi.range = [\n axi.l2r(axi._rl[0] - pix / axi._m),\n axi.l2r(axi._rl[1] - pix / axi._m)\n ];\n }\n }\n }\n}\n\n// common transform for dragging one end of an axis\n// d>0 is compressing scale (cursor is over the plot,\n// the axis end should move with the cursor)\n// d<0 is expanding (cursor is off the plot, axis end moves\n// nonlinearly so you can expand far)\nfunction dZoom(d) {\n return 1 - ((d >= 0) ? Math.min(d, 0.9) :\n 1 / (1 / Math.max(d, -0.3) + 3.222));\n}\n\nfunction getDragCursor(nsew, dragmode, isMainDrag) {\n if(!nsew) return 'pointer';\n if(nsew === 'nsew') {\n // in this case here, clear cursor and\n // use the cursor style set on \n if(isMainDrag) return '';\n if(dragmode === 'pan') return 'move';\n return 'crosshair';\n }\n return nsew.toLowerCase() + '-resize';\n}\n\nfunction makeZoombox(zoomlayer, lum, xs, ys, path0) {\n return zoomlayer.append('path')\n .attr('class', 'zoombox')\n .style({\n 'fill': lum > 0.2 ? 'rgba(0,0,0,0)' : 'rgba(255,255,255,0)',\n 'stroke-width': 0\n })\n .attr('transform', strTranslate(xs, ys))\n .attr('d', path0 + 'Z');\n}\n\nfunction makeCorners(zoomlayer, xs, ys) {\n return zoomlayer.append('path')\n .attr('class', 'zoombox-corners')\n .style({\n fill: Color.background,\n stroke: Color.defaultLine,\n 'stroke-width': 1,\n opacity: 0\n })\n .attr('transform', strTranslate(xs, ys))\n .attr('d', 'M0,0Z');\n}\n\nfunction updateZoombox(zb, corners, box, path0, dimmed, lum) {\n zb.attr('d',\n path0 + 'M' + (box.l) + ',' + (box.t) + 'v' + (box.h) +\n 'h' + (box.w) + 'v-' + (box.h) + 'h-' + (box.w) + 'Z');\n transitionZoombox(zb, corners, dimmed, lum);\n}\n\nfunction transitionZoombox(zb, corners, dimmed, lum) {\n if(!dimmed) {\n zb.transition()\n .style('fill', lum > 0.2 ? 'rgba(0,0,0,0.4)' :\n 'rgba(255,255,255,0.3)')\n .duration(200);\n corners.transition()\n .style('opacity', 1)\n .duration(200);\n }\n}\n\nfunction removeZoombox(gd) {\n d3.select(gd)\n .selectAll('.zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners')\n .remove();\n}\n\nfunction showDoubleClickNotifier(gd) {\n if(SHOWZOOMOUTTIP && gd.data && gd._context.showTips) {\n Lib.notifier(Lib._(gd, 'Double-click to zoom back out'), 'long');\n SHOWZOOMOUTTIP = false;\n }\n}\n\nfunction xCorners(box, y0) {\n return 'M' +\n (box.l - 0.5) + ',' + (y0 - MINZOOM - 0.5) +\n 'h-3v' + (2 * MINZOOM + 1) + 'h3ZM' +\n (box.r + 0.5) + ',' + (y0 - MINZOOM - 0.5) +\n 'h3v' + (2 * MINZOOM + 1) + 'h-3Z';\n}\n\nfunction yCorners(box, x0) {\n return 'M' +\n (x0 - MINZOOM - 0.5) + ',' + (box.t - 0.5) +\n 'v-3h' + (2 * MINZOOM + 1) + 'v3ZM' +\n (x0 - MINZOOM - 0.5) + ',' + (box.b + 0.5) +\n 'v3h' + (2 * MINZOOM + 1) + 'v-3Z';\n}\n\nfunction xyCorners(box) {\n var clen = Math.floor(Math.min(box.b - box.t, box.r - box.l, MINZOOM) / 2);\n return 'M' +\n (box.l - 3.5) + ',' + (box.t - 0.5 + clen) + 'h3v' + (-clen) +\n 'h' + clen + 'v-3h-' + (clen + 3) + 'ZM' +\n (box.r + 3.5) + ',' + (box.t - 0.5 + clen) + 'h-3v' + (-clen) +\n 'h' + (-clen) + 'v-3h' + (clen + 3) + 'ZM' +\n (box.r + 3.5) + ',' + (box.b + 0.5 - clen) + 'h-3v' + clen +\n 'h' + (-clen) + 'v3h' + (clen + 3) + 'ZM' +\n (box.l - 3.5) + ',' + (box.b + 0.5 - clen) + 'h3v' + clen +\n 'h' + clen + 'v3h-' + (clen + 3) + 'Z';\n}\n\nfunction calcLinks(gd, groups, xaHash, yaHash, exclude) {\n var isSubplotConstrained = false;\n var xLinks = {};\n var yLinks = {};\n var xID, yID, xLinkID, yLinkID;\n var xExclude = (exclude || {}).xaHash;\n var yExclude = (exclude || {}).yaHash;\n\n for(var i = 0; i < groups.length; i++) {\n var group = groups[i];\n // check if any of the x axes we're dragging is in this constraint group\n for(xID in xaHash) {\n if(group[xID]) {\n // put the rest of these axes into xLinks, if we're not already\n // dragging them, so we know to scale these axes automatically too\n // to match the changes in the dragged x axes\n for(xLinkID in group) {\n if(\n !(exclude && (xExclude[xLinkID] || yExclude[xLinkID])) &&\n !(xLinkID.charAt(0) === 'x' ? xaHash : yaHash)[xLinkID]\n ) {\n xLinks[xLinkID] = xID;\n }\n }\n\n // check if the x and y axes of THIS drag are linked\n for(yID in yaHash) {\n if(\n !(exclude && (xExclude[yID] || yExclude[yID])) &&\n group[yID]\n ) {\n isSubplotConstrained = true;\n }\n }\n }\n }\n\n // now check if any of the y axes we're dragging is in this constraint group\n // only look for outside links, as we've already checked for links within the dragger\n for(yID in yaHash) {\n if(group[yID]) {\n for(yLinkID in group) {\n if(\n !(exclude && (xExclude[yLinkID] || yExclude[yLinkID])) &&\n !(yLinkID.charAt(0) === 'x' ? xaHash : yaHash)[yLinkID]\n ) {\n yLinks[yLinkID] = yID;\n }\n }\n }\n }\n }\n\n if(isSubplotConstrained) {\n // merge xLinks and yLinks if the subplot is constrained,\n // since we'll always apply both anyway and the two will contain\n // duplicates\n Lib.extendFlat(xLinks, yLinks);\n yLinks = {};\n }\n\n var xaHashLinked = {};\n var xaxesLinked = [];\n for(xLinkID in xLinks) {\n var xa = getFromId(gd, xLinkID);\n xaxesLinked.push(xa);\n xaHashLinked[xa._id] = xa;\n }\n\n var yaHashLinked = {};\n var yaxesLinked = [];\n for(yLinkID in yLinks) {\n var ya = getFromId(gd, yLinkID);\n yaxesLinked.push(ya);\n yaHashLinked[ya._id] = ya;\n }\n\n return {\n xaHash: xaHashLinked,\n yaHash: yaHashLinked,\n xaxes: xaxesLinked,\n yaxes: yaxesLinked,\n xLinks: xLinks,\n yLinks: yLinks,\n isSubplotConstrained: isSubplotConstrained\n };\n}\n\n// still seems to be some confusion about onwheel vs onmousewheel...\nfunction attachWheelEventHandler(element, handler) {\n if(!supportsPassive) {\n if(element.onwheel !== undefined) element.onwheel = handler;\n else if(element.onmousewheel !== undefined) element.onmousewheel = handler;\n else if(!element.isAddedWheelEvent) {\n element.isAddedWheelEvent = true;\n element.addEventListener('wheel', handler, {passive: false});\n }\n } else {\n var wheelEventName = element.onwheel !== undefined ? 'wheel' : 'mousewheel';\n\n if(element._onwheel) {\n element.removeEventListener(wheelEventName, element._onwheel);\n }\n element._onwheel = handler;\n\n element.addEventListener(wheelEventName, handler, {passive: false});\n }\n}\n\nfunction hashValues(hash) {\n var out = [];\n for(var k in hash) out.push(hash[k]);\n return out;\n}\n\nmodule.exports = {\n makeDragBox: makeDragBox,\n\n makeDragger: makeDragger,\n makeRectDragger: makeRectDragger,\n makeZoombox: makeZoombox,\n makeCorners: makeCorners,\n\n updateZoombox: updateZoombox,\n xyCorners: xyCorners,\n transitionZoombox: transitionZoombox,\n removeZoombox: removeZoombox,\n showDoubleClickNotifier: showDoubleClickNotifier,\n\n attachWheelEventHandler: attachWheelEventHandler\n};\n\n},{\"../../components/color\":366,\"../../components/dragelement\":385,\"../../components/dragelement/helpers\":384,\"../../components/drawing\":388,\"../../components/fx\":406,\"../../constants/alignment\":471,\"../../lib\":503,\"../../lib/clear_gl_canvases\":487,\"../../lib/setcursor\":524,\"../../lib/svg_text_utils\":529,\"../../plot_api/subroutines\":544,\"../../registry\":638,\"../plots\":619,\"./axes\":554,\"./axis_ids\":558,\"./constants\":561,\"./scale_zoom\":574,\"./select\":575,\"@plotly/d3\":58,\"has-passive-events\":229,\"tinycolor2\":312}],564:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Fx = _dereq_('../../components/fx');\nvar dragElement = _dereq_('../../components/dragelement');\nvar setCursor = _dereq_('../../lib/setcursor');\n\nvar makeDragBox = _dereq_('./dragbox').makeDragBox;\nvar DRAGGERSIZE = _dereq_('./constants').DRAGGERSIZE;\n\nexports.initInteractions = function initInteractions(gd) {\n var fullLayout = gd._fullLayout;\n\n if(gd._context.staticPlot) {\n // this sweeps up more than just cartesian drag elements...\n d3.select(gd).selectAll('.drag').remove();\n return;\n }\n\n if(!fullLayout._has('cartesian') && !fullLayout._has('splom')) return;\n\n var subplots = Object.keys(fullLayout._plots || {}).sort(function(a, b) {\n // sort overlays last, then by x axis number, then y axis number\n if((fullLayout._plots[a].mainplot && true) ===\n (fullLayout._plots[b].mainplot && true)) {\n var aParts = a.split('y');\n var bParts = b.split('y');\n return (aParts[0] === bParts[0]) ?\n (Number(aParts[1] || 1) - Number(bParts[1] || 1)) :\n (Number(aParts[0] || 1) - Number(bParts[0] || 1));\n }\n return fullLayout._plots[a].mainplot ? 1 : -1;\n });\n\n subplots.forEach(function(subplot) {\n var plotinfo = fullLayout._plots[subplot];\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n\n // main and corner draggers need not be repeated for\n // overlaid subplots - these draggers drag them all\n if(!plotinfo.mainplot) {\n // main dragger goes over the grids and data, so we use its\n // mousemove events for all data hover effects\n var maindrag = makeDragBox(gd, plotinfo, xa._offset, ya._offset,\n xa._length, ya._length, 'ns', 'ew');\n\n maindrag.onmousemove = function(evt) {\n // This is on `gd._fullLayout`, *not* fullLayout because the reference\n // changes by the time this is called again.\n gd._fullLayout._rehover = function() {\n if((gd._fullLayout._hoversubplot === subplot) && gd._fullLayout._plots[subplot]) {\n Fx.hover(gd, evt, subplot);\n }\n };\n\n Fx.hover(gd, evt, subplot);\n\n // Note that we have *not* used the cached fullLayout variable here\n // since that may be outdated when this is called as a callback later on\n gd._fullLayout._lasthover = maindrag;\n gd._fullLayout._hoversubplot = subplot;\n };\n\n /*\n * IMPORTANT:\n * We must check for the presence of the drag cover here.\n * If we don't, a 'mouseout' event is triggered on the\n * maindrag before each 'click' event, which has the effect\n * of clearing the hoverdata; thus, cancelling the click event.\n */\n maindrag.onmouseout = function(evt) {\n if(gd._dragging) return;\n\n // When the mouse leaves this maindrag, unset the hovered subplot.\n // This may cause problems if it leaves the subplot directly *onto*\n // another subplot, but that's a tiny corner case at the moment.\n gd._fullLayout._hoversubplot = null;\n\n dragElement.unhover(gd, evt);\n };\n\n // corner draggers\n if(gd._context.showAxisDragHandles) {\n makeDragBox(gd, plotinfo, xa._offset - DRAGGERSIZE, ya._offset - DRAGGERSIZE,\n DRAGGERSIZE, DRAGGERSIZE, 'n', 'w');\n makeDragBox(gd, plotinfo, xa._offset + xa._length, ya._offset - DRAGGERSIZE,\n DRAGGERSIZE, DRAGGERSIZE, 'n', 'e');\n makeDragBox(gd, plotinfo, xa._offset - DRAGGERSIZE, ya._offset + ya._length,\n DRAGGERSIZE, DRAGGERSIZE, 's', 'w');\n makeDragBox(gd, plotinfo, xa._offset + xa._length, ya._offset + ya._length,\n DRAGGERSIZE, DRAGGERSIZE, 's', 'e');\n }\n }\n if(gd._context.showAxisDragHandles) {\n // x axis draggers - if you have overlaid plots,\n // these drag each axis separately\n if(subplot === xa._mainSubplot) {\n // the y position of the main x axis line\n var y0 = xa._mainLinePosition;\n if(xa.side === 'top') y0 -= DRAGGERSIZE;\n makeDragBox(gd, plotinfo, xa._offset + xa._length * 0.1, y0,\n xa._length * 0.8, DRAGGERSIZE, '', 'ew');\n makeDragBox(gd, plotinfo, xa._offset, y0,\n xa._length * 0.1, DRAGGERSIZE, '', 'w');\n makeDragBox(gd, plotinfo, xa._offset + xa._length * 0.9, y0,\n xa._length * 0.1, DRAGGERSIZE, '', 'e');\n }\n // y axis draggers\n if(subplot === ya._mainSubplot) {\n // the x position of the main y axis line\n var x0 = ya._mainLinePosition;\n if(ya.side !== 'right') x0 -= DRAGGERSIZE;\n makeDragBox(gd, plotinfo, x0, ya._offset + ya._length * 0.1,\n DRAGGERSIZE, ya._length * 0.8, 'ns', '');\n makeDragBox(gd, plotinfo, x0, ya._offset + ya._length * 0.9,\n DRAGGERSIZE, ya._length * 0.1, 's', '');\n makeDragBox(gd, plotinfo, x0, ya._offset,\n DRAGGERSIZE, ya._length * 0.1, 'n', '');\n }\n }\n });\n\n // In case you mousemove over some hovertext, send it to Fx.hover too\n // we do this so that we can put the hover text in front of everything,\n // but still be able to interact with everything as if it isn't there\n var hoverLayer = fullLayout._hoverlayer.node();\n\n hoverLayer.onmousemove = function(evt) {\n evt.target = gd._fullLayout._lasthover;\n Fx.hover(gd, evt, fullLayout._hoversubplot);\n };\n\n hoverLayer.onclick = function(evt) {\n evt.target = gd._fullLayout._lasthover;\n Fx.click(gd, evt);\n };\n\n // also delegate mousedowns... TODO: does this actually work?\n hoverLayer.onmousedown = function(evt) {\n gd._fullLayout._lasthover.onmousedown(evt);\n };\n\n exports.updateFx(gd);\n};\n\n// Minimal set of update needed on 'modebar' edits.\n// We only need to update the cursor style.\n//\n// Note that changing the axis configuration and/or the fixedrange attribute\n// should trigger a full initInteractions.\nexports.updateFx = function(gd) {\n var fullLayout = gd._fullLayout;\n var cursor = fullLayout.dragmode === 'pan' ? 'move' : 'crosshair';\n setCursor(fullLayout._draggers, cursor);\n};\n\n},{\"../../components/dragelement\":385,\"../../components/fx\":406,\"../../lib/setcursor\":524,\"./constants\":561,\"./dragbox\":563,\"@plotly/d3\":58}],565:[function(_dereq_,module,exports){\n'use strict';\n\nfunction clearOutlineControllers(gd) {\n var zoomLayer = gd._fullLayout._zoomlayer;\n if(zoomLayer) {\n zoomLayer.selectAll('.outline-controllers').remove();\n }\n}\n\nfunction clearSelect(gd) {\n var zoomLayer = gd._fullLayout._zoomlayer;\n if(zoomLayer) {\n // until we get around to persistent selections, remove the outline\n // here. The selection itself will be removed when the plot redraws\n // at the end.\n zoomLayer.selectAll('.select-outline').remove();\n }\n\n gd._fullLayout._drawing = false;\n}\n\nmodule.exports = {\n clearOutlineControllers: clearOutlineControllers,\n clearSelect: clearSelect\n};\n\n},{}],566:[function(_dereq_,module,exports){\n'use strict';\n\nvar strTranslate = _dereq_('../../lib').strTranslate;\n\n// in v3 (once log ranges are fixed),\n// we'll be able to p2r here for all axis types\nfunction p2r(ax, v) {\n switch(ax.type) {\n case 'log':\n return ax.p2d(v);\n case 'date':\n return ax.p2r(v, 0, ax.calendar);\n default:\n return ax.p2r(v);\n }\n}\n\nfunction r2p(ax, v) {\n switch(ax.type) {\n case 'log':\n return ax.d2p(v);\n case 'date':\n return ax.r2p(v, 0, ax.calendar);\n default:\n return ax.r2p(v);\n }\n}\n\nfunction axValue(ax) {\n var index = (ax._id.charAt(0) === 'y') ? 1 : 0;\n return function(v) { return p2r(ax, v[index]); };\n}\n\nfunction getTransform(plotinfo) {\n return strTranslate(\n plotinfo.xaxis._offset,\n plotinfo.yaxis._offset\n );\n}\n\nmodule.exports = {\n p2r: p2r,\n r2p: r2p,\n axValue: axValue,\n getTransform: getTransform\n};\n\n},{\"../../lib\":503}],567:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar axisIds = _dereq_('./axis_ids');\n\n/**\n * Factory function for checking component arrays for subplot references.\n *\n * @param {string} containerArrayName: the top-level array in gd.layout to check\n * If an item in this container is found that references a cartesian x and/or y axis,\n * ensure cartesian is marked as a base plot module and record the axes (and subplot\n * if both refs are axes) in gd._fullLayout\n *\n * @return {function}: with args layoutIn (gd.layout) and layoutOut (gd._fullLayout)\n * as expected of a component includeBasePlot method\n */\nmodule.exports = function makeIncludeComponents(containerArrayName) {\n return function includeComponents(layoutIn, layoutOut) {\n var array = layoutIn[containerArrayName];\n if(!Array.isArray(array)) return;\n\n var Cartesian = Registry.subplotsRegistry.cartesian;\n var idRegex = Cartesian.idRegex;\n var subplots = layoutOut._subplots;\n var xaList = subplots.xaxis;\n var yaList = subplots.yaxis;\n var cartesianList = subplots.cartesian;\n var hasCartesianOrGL2D = layoutOut._has('cartesian') || layoutOut._has('gl2d');\n\n for(var i = 0; i < array.length; i++) {\n var itemi = array[i];\n if(!Lib.isPlainObject(itemi)) continue;\n\n // call cleanId because if xref, or yref has something appended\n // (e.g., ' domain') this will get removed.\n var xref = axisIds.cleanId(itemi.xref, 'x', false);\n var yref = axisIds.cleanId(itemi.yref, 'y', false);\n\n var hasXref = idRegex.x.test(xref);\n var hasYref = idRegex.y.test(yref);\n if(hasXref || hasYref) {\n if(!hasCartesianOrGL2D) Lib.pushUnique(layoutOut._basePlotModules, Cartesian);\n\n var newAxis = false;\n if(hasXref && xaList.indexOf(xref) === -1) {\n xaList.push(xref);\n newAxis = true;\n }\n if(hasYref && yaList.indexOf(yref) === -1) {\n yaList.push(yref);\n newAxis = true;\n }\n\n /*\n * Notice the logic here: only add a subplot for a component if\n * it's referencing both x and y axes AND it's creating a new axis\n * so for example if your plot already has xy and x2y2, an annotation\n * on x2y or xy2 will not create a new subplot.\n */\n if(newAxis && hasXref && hasYref) {\n cartesianList.push(xref + yref);\n }\n }\n }\n };\n};\n\n},{\"../../lib\":503,\"../../registry\":638,\"./axis_ids\":558}],568:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar Plots = _dereq_('../plots');\nvar Drawing = _dereq_('../../components/drawing');\n\nvar getModuleCalcData = _dereq_('../get_data').getModuleCalcData;\nvar axisIds = _dereq_('./axis_ids');\nvar constants = _dereq_('./constants');\nvar xmlnsNamespaces = _dereq_('../../constants/xmlns_namespaces');\n\nvar ensureSingle = Lib.ensureSingle;\n\nfunction ensureSingleAndAddDatum(parent, nodeType, className) {\n return Lib.ensureSingle(parent, nodeType, className, function(s) {\n s.datum(className);\n });\n}\n\nexports.name = 'cartesian';\n\nexports.attr = ['xaxis', 'yaxis'];\n\nexports.idRoot = ['x', 'y'];\n\nexports.idRegex = constants.idRegex;\n\nexports.attrRegex = constants.attrRegex;\n\nexports.attributes = _dereq_('./attributes');\n\nexports.layoutAttributes = _dereq_('./layout_attributes');\n\nexports.supplyLayoutDefaults = _dereq_('./layout_defaults');\n\nexports.transitionAxes = _dereq_('./transition_axes');\n\nexports.finalizeSubplots = function(layoutIn, layoutOut) {\n var subplots = layoutOut._subplots;\n var xList = subplots.xaxis;\n var yList = subplots.yaxis;\n var spSVG = subplots.cartesian;\n var spAll = spSVG.concat(subplots.gl2d || []);\n var allX = {};\n var allY = {};\n var i, xi, yi;\n\n for(i = 0; i < spAll.length; i++) {\n var parts = spAll[i].split('y');\n allX[parts[0]] = 1;\n allY['y' + parts[1]] = 1;\n }\n\n // check for x axes with no subplot, and make one from the anchor of that x axis\n for(i = 0; i < xList.length; i++) {\n xi = xList[i];\n if(!allX[xi]) {\n yi = (layoutIn[axisIds.id2name(xi)] || {}).anchor;\n if(!constants.idRegex.y.test(yi)) yi = 'y';\n spSVG.push(xi + yi);\n spAll.push(xi + yi);\n\n if(!allY[yi]) {\n allY[yi] = 1;\n Lib.pushUnique(yList, yi);\n }\n }\n }\n\n // same for y axes with no subplot\n for(i = 0; i < yList.length; i++) {\n yi = yList[i];\n if(!allY[yi]) {\n xi = (layoutIn[axisIds.id2name(yi)] || {}).anchor;\n if(!constants.idRegex.x.test(xi)) xi = 'x';\n spSVG.push(xi + yi);\n spAll.push(xi + yi);\n\n if(!allX[xi]) {\n allX[xi] = 1;\n Lib.pushUnique(xList, xi);\n }\n }\n }\n\n // finally, if we've gotten here we're supposed to show cartesian...\n // so if there are NO subplots at all, make one from the first\n // x & y axes in the input layout\n if(!spAll.length) {\n xi = '';\n yi = '';\n for(var ki in layoutIn) {\n if(constants.attrRegex.test(ki)) {\n var axLetter = ki.charAt(0);\n if(axLetter === 'x') {\n if(!xi || (+ki.substr(5) < +xi.substr(5))) {\n xi = ki;\n }\n } else if(!yi || (+ki.substr(5) < +yi.substr(5))) {\n yi = ki;\n }\n }\n }\n xi = xi ? axisIds.name2id(xi) : 'x';\n yi = yi ? axisIds.name2id(yi) : 'y';\n xList.push(xi);\n yList.push(yi);\n spSVG.push(xi + yi);\n }\n};\n\n/**\n * Cartesian.plot\n *\n * @param {DOM div | object} gd\n * @param {array (optional)} traces\n * array of traces indices to plot\n * if undefined, plots all cartesian traces,\n * @param {object} (optional) transitionOpts\n * transition option object\n * @param {function} (optional) makeOnCompleteCallback\n * transition make callback function from Plots.transition\n */\nexports.plot = function(gd, traces, transitionOpts, makeOnCompleteCallback) {\n var fullLayout = gd._fullLayout;\n var subplots = fullLayout._subplots.cartesian;\n var calcdata = gd.calcdata;\n var i;\n\n if(!Array.isArray(traces)) {\n // If traces is not provided, then it's a complete replot and missing\n // traces are removed\n traces = [];\n for(i = 0; i < calcdata.length; i++) traces.push(i);\n }\n\n for(i = 0; i < subplots.length; i++) {\n var subplot = subplots[i];\n var subplotInfo = fullLayout._plots[subplot];\n\n // Get all calcdata for this subplot:\n var cdSubplot = [];\n var pcd;\n\n for(var j = 0; j < calcdata.length; j++) {\n var cd = calcdata[j];\n var trace = cd[0].trace;\n\n // Skip trace if whitelist provided and it's not whitelisted:\n // if (Array.isArray(traces) && traces.indexOf(i) === -1) continue;\n if(trace.xaxis + trace.yaxis === subplot) {\n // XXX: Should trace carpet dependencies. Only replot all carpet plots if the carpet\n // axis has actually changed:\n //\n // If this trace is specifically requested, add it to the list:\n if(traces.indexOf(trace.index) !== -1 || trace.carpet) {\n // Okay, so example: traces 0, 1, and 2 have fill = tonext. You animate\n // traces 0 and 2. Trace 1 also needs to be updated, otherwise its fill\n // is outdated. So this retroactively adds the previous trace if the\n // traces are interdependent.\n if(\n pcd &&\n pcd[0].trace.xaxis + pcd[0].trace.yaxis === subplot &&\n ['tonextx', 'tonexty', 'tonext'].indexOf(trace.fill) !== -1 &&\n cdSubplot.indexOf(pcd) === -1\n ) {\n cdSubplot.push(pcd);\n }\n\n cdSubplot.push(cd);\n }\n\n // Track the previous trace on this subplot for the retroactive-add step\n // above:\n pcd = cd;\n }\n }\n\n plotOne(gd, subplotInfo, cdSubplot, transitionOpts, makeOnCompleteCallback);\n }\n};\n\nfunction plotOne(gd, plotinfo, cdSubplot, transitionOpts, makeOnCompleteCallback) {\n var traceLayerClasses = constants.traceLayerClasses;\n var fullLayout = gd._fullLayout;\n var modules = fullLayout._modules;\n var _module, cdModuleAndOthers, cdModule;\n\n var layerData = [];\n var zoomScaleQueryParts = [];\n\n for(var i = 0; i < modules.length; i++) {\n _module = modules[i];\n var name = _module.name;\n var categories = Registry.modules[name].categories;\n\n if(categories.svg) {\n var className = (_module.layerName || name + 'layer');\n var plotMethod = _module.plot;\n\n // plot all visible traces of this type on this subplot at once\n cdModuleAndOthers = getModuleCalcData(cdSubplot, plotMethod);\n cdModule = cdModuleAndOthers[0];\n // don't need to search the found traces again - in fact we need to NOT\n // so that if two modules share the same plotter we don't double-plot\n cdSubplot = cdModuleAndOthers[1];\n\n if(cdModule.length) {\n layerData.push({\n i: traceLayerClasses.indexOf(className),\n className: className,\n plotMethod: plotMethod,\n cdModule: cdModule\n });\n }\n\n if(categories.zoomScale) {\n zoomScaleQueryParts.push('.' + className);\n }\n }\n }\n\n layerData.sort(function(a, b) { return a.i - b.i; });\n\n var layers = plotinfo.plot.selectAll('g.mlayer')\n .data(layerData, function(d) { return d.className; });\n\n layers.enter().append('g')\n .attr('class', function(d) { return d.className; })\n .classed('mlayer', true)\n .classed('rangeplot', plotinfo.isRangePlot);\n\n layers.exit().remove();\n\n layers.order();\n\n layers.each(function(d) {\n var sel = d3.select(this);\n var className = d.className;\n\n d.plotMethod(\n gd, plotinfo, d.cdModule, sel,\n transitionOpts, makeOnCompleteCallback\n );\n\n // layers that allow `cliponaxis: false`\n if(constants.clipOnAxisFalseQuery.indexOf('.' + className) === -1) {\n Drawing.setClipUrl(sel, plotinfo.layerClipId, gd);\n }\n });\n\n // call Scattergl.plot separately\n if(fullLayout._has('scattergl')) {\n _module = Registry.getModule('scattergl');\n cdModule = getModuleCalcData(cdSubplot, _module)[0];\n _module.plot(gd, plotinfo, cdModule);\n }\n\n // stash \"hot\" selections for faster interaction on drag and scroll\n if(!gd._context.staticPlot) {\n if(plotinfo._hasClipOnAxisFalse) {\n plotinfo.clipOnAxisFalseTraces = plotinfo.plot\n .selectAll(constants.clipOnAxisFalseQuery.join(','))\n .selectAll('.trace');\n }\n\n if(zoomScaleQueryParts.length) {\n var traces = plotinfo.plot\n .selectAll(zoomScaleQueryParts.join(','))\n .selectAll('.trace');\n\n plotinfo.zoomScalePts = traces.selectAll('path.point');\n plotinfo.zoomScaleTxt = traces.selectAll('.textpoint');\n }\n }\n}\n\nexports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n var oldPlots = oldFullLayout._plots || {};\n var newPlots = newFullLayout._plots || {};\n var oldSubplotList = oldFullLayout._subplots || {};\n var plotinfo;\n var i, k;\n\n // when going from a large splom graph to something else,\n // we need to clear so that the new cartesian subplot\n // can have the correct layer ordering\n if(oldFullLayout._hasOnlyLargeSploms && !newFullLayout._hasOnlyLargeSploms) {\n for(k in oldPlots) {\n plotinfo = oldPlots[k];\n if(plotinfo.plotgroup) plotinfo.plotgroup.remove();\n }\n }\n\n var hadGl = (oldFullLayout._has && oldFullLayout._has('gl'));\n var hasGl = (newFullLayout._has && newFullLayout._has('gl'));\n\n if(hadGl && !hasGl) {\n for(k in oldPlots) {\n plotinfo = oldPlots[k];\n if(plotinfo._scene) plotinfo._scene.destroy();\n }\n }\n\n // delete any titles we don't need anymore\n // check if axis list has changed, and if so clear old titles\n if(oldSubplotList.xaxis && oldSubplotList.yaxis) {\n var oldAxIDs = axisIds.listIds({_fullLayout: oldFullLayout});\n for(i = 0; i < oldAxIDs.length; i++) {\n var oldAxId = oldAxIDs[i];\n if(!newFullLayout[axisIds.id2name(oldAxId)]) {\n oldFullLayout._infolayer.selectAll('.g-' + oldAxId + 'title').remove();\n }\n }\n }\n\n var hadCartesian = (oldFullLayout._has && oldFullLayout._has('cartesian'));\n var hasCartesian = (newFullLayout._has && newFullLayout._has('cartesian'));\n\n if(hadCartesian && !hasCartesian) {\n // if we've gotten rid of all cartesian traces, remove all the subplot svg items\n\n purgeSubplotLayers(oldFullLayout._cartesianlayer.selectAll('.subplot'), oldFullLayout);\n oldFullLayout._defs.selectAll('.axesclip').remove();\n delete oldFullLayout._axisConstraintGroups;\n delete oldFullLayout._axisMatchGroups;\n } else if(oldSubplotList.cartesian) {\n // otherwise look for subplots we need to remove\n\n for(i = 0; i < oldSubplotList.cartesian.length; i++) {\n var oldSubplotId = oldSubplotList.cartesian[i];\n if(!newPlots[oldSubplotId]) {\n var selector = '.' + oldSubplotId + ',.' + oldSubplotId + '-x,.' + oldSubplotId + '-y';\n oldFullLayout._cartesianlayer.selectAll(selector).remove();\n removeSubplotExtras(oldSubplotId, oldFullLayout);\n }\n }\n }\n};\n\nexports.drawFramework = function(gd) {\n var fullLayout = gd._fullLayout;\n var subplotData = makeSubplotData(gd);\n\n var subplotLayers = fullLayout._cartesianlayer.selectAll('.subplot')\n .data(subplotData, String);\n\n subplotLayers.enter().append('g')\n .attr('class', function(d) { return 'subplot ' + d[0]; });\n\n subplotLayers.order();\n\n subplotLayers.exit()\n .call(purgeSubplotLayers, fullLayout);\n\n subplotLayers.each(function(d) {\n var id = d[0];\n var plotinfo = fullLayout._plots[id];\n\n plotinfo.plotgroup = d3.select(this);\n makeSubplotLayer(gd, plotinfo);\n\n // make separate drag layers for each subplot,\n // but append them to paper rather than the plot groups,\n // so they end up on top of the rest\n plotinfo.draglayer = ensureSingle(fullLayout._draggers, 'g', id);\n });\n};\n\nexports.rangePlot = function(gd, plotinfo, cdSubplot) {\n makeSubplotLayer(gd, plotinfo);\n plotOne(gd, plotinfo, cdSubplot);\n Plots.style(gd);\n};\n\nfunction makeSubplotData(gd) {\n var fullLayout = gd._fullLayout;\n var ids = fullLayout._subplots.cartesian;\n var len = ids.length;\n var i, j, id, plotinfo, xa, ya;\n\n // split 'regular' and 'overlaying' subplots\n var regulars = [];\n var overlays = [];\n\n for(i = 0; i < len; i++) {\n id = ids[i];\n plotinfo = fullLayout._plots[id];\n xa = plotinfo.xaxis;\n ya = plotinfo.yaxis;\n\n var xa2 = xa._mainAxis;\n var ya2 = ya._mainAxis;\n var mainplot = xa2._id + ya2._id;\n var mainplotinfo = fullLayout._plots[mainplot];\n plotinfo.overlays = [];\n\n if(mainplot !== id && mainplotinfo) {\n plotinfo.mainplot = mainplot;\n plotinfo.mainplotinfo = mainplotinfo;\n overlays.push(id);\n } else {\n plotinfo.mainplot = undefined;\n plotinfo.mainplotinfo = undefined;\n regulars.push(id);\n }\n }\n\n // fill in list of overlaying subplots in 'main plot'\n for(i = 0; i < overlays.length; i++) {\n id = overlays[i];\n plotinfo = fullLayout._plots[id];\n plotinfo.mainplotinfo.overlays.push(plotinfo);\n }\n\n // put 'regular' subplot data before 'overlaying'\n var subplotIds = regulars.concat(overlays);\n var subplotData = new Array(len);\n\n for(i = 0; i < len; i++) {\n id = subplotIds[i];\n plotinfo = fullLayout._plots[id];\n xa = plotinfo.xaxis;\n ya = plotinfo.yaxis;\n\n // use info about axis layer and overlaying pattern\n // to clean what need to be cleaned up in exit selection\n var d = [id, xa.layer, ya.layer, xa.overlaying || '', ya.overlaying || ''];\n for(j = 0; j < plotinfo.overlays.length; j++) {\n d.push(plotinfo.overlays[j].id);\n }\n subplotData[i] = d;\n }\n\n return subplotData;\n}\n\nfunction makeSubplotLayer(gd, plotinfo) {\n var plotgroup = plotinfo.plotgroup;\n var id = plotinfo.id;\n var xLayer = constants.layerValue2layerClass[plotinfo.xaxis.layer];\n var yLayer = constants.layerValue2layerClass[plotinfo.yaxis.layer];\n var hasOnlyLargeSploms = gd._fullLayout._hasOnlyLargeSploms;\n\n if(!plotinfo.mainplot) {\n if(hasOnlyLargeSploms) {\n // TODO could do even better\n // - we don't need plot (but we would have to mock it in lsInner\n // and other places\n // - we don't (x|y)lines and (x|y)axislayer for most subplots\n // usually just the bottom x and left y axes.\n plotinfo.xlines = ensureSingle(plotgroup, 'path', 'xlines-above');\n plotinfo.ylines = ensureSingle(plotgroup, 'path', 'ylines-above');\n plotinfo.xaxislayer = ensureSingle(plotgroup, 'g', 'xaxislayer-above');\n plotinfo.yaxislayer = ensureSingle(plotgroup, 'g', 'yaxislayer-above');\n } else {\n var backLayer = ensureSingle(plotgroup, 'g', 'layer-subplot');\n plotinfo.shapelayer = ensureSingle(backLayer, 'g', 'shapelayer');\n plotinfo.imagelayer = ensureSingle(backLayer, 'g', 'imagelayer');\n\n plotinfo.gridlayer = ensureSingle(plotgroup, 'g', 'gridlayer');\n plotinfo.zerolinelayer = ensureSingle(plotgroup, 'g', 'zerolinelayer');\n\n ensureSingle(plotgroup, 'path', 'xlines-below');\n ensureSingle(plotgroup, 'path', 'ylines-below');\n plotinfo.overlinesBelow = ensureSingle(plotgroup, 'g', 'overlines-below');\n\n ensureSingle(plotgroup, 'g', 'xaxislayer-below');\n ensureSingle(plotgroup, 'g', 'yaxislayer-below');\n plotinfo.overaxesBelow = ensureSingle(plotgroup, 'g', 'overaxes-below');\n\n plotinfo.plot = ensureSingle(plotgroup, 'g', 'plot');\n plotinfo.overplot = ensureSingle(plotgroup, 'g', 'overplot');\n\n plotinfo.xlines = ensureSingle(plotgroup, 'path', 'xlines-above');\n plotinfo.ylines = ensureSingle(plotgroup, 'path', 'ylines-above');\n plotinfo.overlinesAbove = ensureSingle(plotgroup, 'g', 'overlines-above');\n\n ensureSingle(plotgroup, 'g', 'xaxislayer-above');\n ensureSingle(plotgroup, 'g', 'yaxislayer-above');\n plotinfo.overaxesAbove = ensureSingle(plotgroup, 'g', 'overaxes-above');\n\n // set refs to correct layers as determined by 'axis.layer'\n plotinfo.xlines = plotgroup.select('.xlines-' + xLayer);\n plotinfo.ylines = plotgroup.select('.ylines-' + yLayer);\n plotinfo.xaxislayer = plotgroup.select('.xaxislayer-' + xLayer);\n plotinfo.yaxislayer = plotgroup.select('.yaxislayer-' + yLayer);\n }\n } else {\n var mainplotinfo = plotinfo.mainplotinfo;\n var mainplotgroup = mainplotinfo.plotgroup;\n var xId = id + '-x';\n var yId = id + '-y';\n\n // now make the components of overlaid subplots\n // overlays don't have backgrounds, and append all\n // their other components to the corresponding\n // extra groups of their main plots.\n\n plotinfo.gridlayer = mainplotinfo.gridlayer;\n plotinfo.zerolinelayer = mainplotinfo.zerolinelayer;\n\n ensureSingle(mainplotinfo.overlinesBelow, 'path', xId);\n ensureSingle(mainplotinfo.overlinesBelow, 'path', yId);\n ensureSingle(mainplotinfo.overaxesBelow, 'g', xId);\n ensureSingle(mainplotinfo.overaxesBelow, 'g', yId);\n\n plotinfo.plot = ensureSingle(mainplotinfo.overplot, 'g', id);\n\n ensureSingle(mainplotinfo.overlinesAbove, 'path', xId);\n ensureSingle(mainplotinfo.overlinesAbove, 'path', yId);\n ensureSingle(mainplotinfo.overaxesAbove, 'g', xId);\n ensureSingle(mainplotinfo.overaxesAbove, 'g', yId);\n\n // set refs to correct layers as determined by 'abovetraces'\n plotinfo.xlines = mainplotgroup.select('.overlines-' + xLayer).select('.' + xId);\n plotinfo.ylines = mainplotgroup.select('.overlines-' + yLayer).select('.' + yId);\n plotinfo.xaxislayer = mainplotgroup.select('.overaxes-' + xLayer).select('.' + xId);\n plotinfo.yaxislayer = mainplotgroup.select('.overaxes-' + yLayer).select('.' + yId);\n }\n\n // common attributes for all subplots, overlays or not\n\n if(!hasOnlyLargeSploms) {\n ensureSingleAndAddDatum(plotinfo.gridlayer, 'g', plotinfo.xaxis._id);\n ensureSingleAndAddDatum(plotinfo.gridlayer, 'g', plotinfo.yaxis._id);\n plotinfo.gridlayer.selectAll('g')\n .map(function(d) { return d[0]; })\n .sort(axisIds.idSort);\n }\n\n plotinfo.xlines\n .style('fill', 'none')\n .classed('crisp', true);\n\n plotinfo.ylines\n .style('fill', 'none')\n .classed('crisp', true);\n}\n\nfunction purgeSubplotLayers(layers, fullLayout) {\n if(!layers) return;\n\n var overlayIdsToRemove = {};\n\n layers.each(function(d) {\n var id = d[0];\n var plotgroup = d3.select(this);\n\n plotgroup.remove();\n removeSubplotExtras(id, fullLayout);\n overlayIdsToRemove[id] = true;\n\n // do not remove individual axis s here\n // as other subplots may need them\n });\n\n // must remove overlaid subplot trace layers 'manually'\n\n for(var k in fullLayout._plots) {\n var subplotInfo = fullLayout._plots[k];\n var overlays = subplotInfo.overlays || [];\n\n for(var j = 0; j < overlays.length; j++) {\n var overlayInfo = overlays[j];\n\n if(overlayIdsToRemove[overlayInfo.id]) {\n overlayInfo.plot.selectAll('.trace').remove();\n }\n }\n }\n}\n\nfunction removeSubplotExtras(subplotId, fullLayout) {\n fullLayout._draggers.selectAll('g.' + subplotId).remove();\n fullLayout._defs.select('#clip' + fullLayout._uid + subplotId + 'plot').remove();\n}\n\nexports.toSVG = function(gd) {\n var imageRoot = gd._fullLayout._glimages;\n var root = d3.select(gd).selectAll('.svg-container');\n var canvases = root.filter(function(d, i) {return i === root.size() - 1;})\n .selectAll('.gl-canvas-context, .gl-canvas-focus');\n\n function canvasToImage() {\n var canvas = this;\n var imageData = canvas.toDataURL('image/png');\n var image = imageRoot.append('svg:image');\n\n image.attr({\n xmlns: xmlnsNamespaces.svg,\n 'xlink:href': imageData,\n preserveAspectRatio: 'none',\n x: 0,\n y: 0,\n width: canvas.style.width,\n height: canvas.style.height\n });\n }\n\n canvases.each(canvasToImage);\n};\n\nexports.updateFx = _dereq_('./graph_interact').updateFx;\n\n},{\"../../components/drawing\":388,\"../../constants/xmlns_namespaces\":480,\"../../lib\":503,\"../../registry\":638,\"../get_data\":593,\"../plots\":619,\"./attributes\":552,\"./axis_ids\":558,\"./constants\":561,\"./graph_interact\":564,\"./layout_attributes\":569,\"./layout_defaults\":570,\"./transition_axes\":581,\"@plotly/d3\":58}],569:[function(_dereq_,module,exports){\n'use strict';\n\nvar fontAttrs = _dereq_('../font_attributes');\nvar colorAttrs = _dereq_('../../components/color/attributes');\nvar dash = _dereq_('../../components/drawing/attributes').dash;\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar templatedArray = _dereq_('../../plot_api/plot_template').templatedArray;\nvar descriptionWithDates = _dereq_('../../plots/cartesian/axis_format_attributes').descriptionWithDates;\n\nvar ONEDAY = _dereq_('../../constants/numerical').ONEDAY;\nvar constants = _dereq_('./constants');\nvar HOUR = constants.HOUR_PATTERN;\nvar DAY_OF_WEEK = constants.WEEKDAY_PATTERN;\n\nmodule.exports = {\n visible: {\n valType: 'boolean',\n editType: 'plot',\n },\n color: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n editType: 'ticks',\n },\n title: {\n text: {\n valType: 'string',\n editType: 'ticks',\n },\n font: fontAttrs({\n editType: 'ticks',\n }),\n standoff: {\n valType: 'number',\n min: 0,\n editType: 'ticks',\n },\n editType: 'ticks'\n },\n type: {\n valType: 'enumerated',\n // '-' means we haven't yet run autotype or couldn't find any data\n // it gets turned into linear in gd._fullLayout but not copied back\n // to gd.data like the others are.\n values: ['-', 'linear', 'log', 'date', 'category', 'multicategory'],\n dflt: '-',\n editType: 'calc',\n // we forget when an axis has been autotyped, just writing the auto\n // value back to the input - so it doesn't make sense to template this.\n // Note: we do NOT prohibit this in `coerce`, so if someone enters a\n // type in the template explicitly it will be honored as the default.\n _noTemplating: true,\n },\n autotypenumbers: {\n valType: 'enumerated',\n values: ['convert types', 'strict'],\n dflt: 'convert types',\n editType: 'calc',\n },\n autorange: {\n valType: 'enumerated',\n values: [true, false, 'reversed'],\n dflt: true,\n editType: 'axrange',\n impliedEdits: {'range[0]': undefined, 'range[1]': undefined},\n },\n rangemode: {\n valType: 'enumerated',\n values: ['normal', 'tozero', 'nonnegative'],\n dflt: 'normal',\n editType: 'plot',\n },\n range: {\n valType: 'info_array',\n items: [\n {valType: 'any', editType: 'axrange', impliedEdits: {'^autorange': false}, anim: true},\n {valType: 'any', editType: 'axrange', impliedEdits: {'^autorange': false}, anim: true}\n ],\n editType: 'axrange',\n impliedEdits: {'autorange': false},\n anim: true,\n },\n fixedrange: {\n valType: 'boolean',\n dflt: false,\n editType: 'calc',\n },\n // scaleanchor: not used directly, just put here for reference\n // values are any opposite-letter axis id\n scaleanchor: {\n valType: 'enumerated',\n values: [\n constants.idRegex.x.toString(),\n constants.idRegex.y.toString()\n ],\n editType: 'plot',\n },\n scaleratio: {\n valType: 'number',\n min: 0,\n dflt: 1,\n editType: 'plot',\n },\n constrain: {\n valType: 'enumerated',\n values: ['range', 'domain'],\n editType: 'plot',\n },\n // constraintoward: not used directly, just put here for reference\n constraintoward: {\n valType: 'enumerated',\n values: ['left', 'center', 'right', 'top', 'middle', 'bottom'],\n editType: 'plot',\n },\n matches: {\n valType: 'enumerated',\n values: [\n constants.idRegex.x.toString(),\n constants.idRegex.y.toString()\n ],\n editType: 'calc',\n },\n\n rangebreaks: templatedArray('rangebreak', {\n enabled: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n },\n\n bounds: {\n valType: 'info_array',\n items: [\n {valType: 'any', editType: 'calc'},\n {valType: 'any', editType: 'calc'}\n ],\n editType: 'calc',\n },\n\n pattern: {\n valType: 'enumerated',\n values: [DAY_OF_WEEK, HOUR, ''],\n editType: 'calc',\n },\n\n values: {\n valType: 'info_array',\n freeLength: true,\n editType: 'calc',\n items: {\n valType: 'any',\n editType: 'calc'\n },\n },\n dvalue: {\n // TODO could become 'any' to add support for 'months', 'years'\n valType: 'number',\n editType: 'calc',\n min: 0,\n dflt: ONEDAY,\n },\n\n /*\n gap: {\n valType: 'number',\n min: 0,\n dflt: 0, // for *date* axes, maybe something else for *linear*\n editType: 'calc',\n },\n gapmode: {\n valType: 'enumerated',\n values: ['pixels', 'fraction'],\n dflt: 'pixels',\n editType: 'calc',\n },\n */\n\n // To complete https://github.com/plotly/plotly.js/issues/4210\n // we additionally need `gap` and make this work on *linear*, and\n // possibly all other cartesian axis types. We possibly would also need\n // some style attributes controlling the zig-zag on the corresponding\n // axis.\n\n editType: 'calc'\n }),\n\n // ticks\n tickmode: {\n valType: 'enumerated',\n values: ['auto', 'linear', 'array'],\n editType: 'ticks',\n impliedEdits: {tick0: undefined, dtick: undefined},\n },\n nticks: {\n valType: 'integer',\n min: 0,\n dflt: 0,\n editType: 'ticks',\n },\n tick0: {\n valType: 'any',\n editType: 'ticks',\n impliedEdits: {tickmode: 'linear'},\n },\n dtick: {\n valType: 'any',\n editType: 'ticks',\n impliedEdits: {tickmode: 'linear'},\n },\n tickvals: {\n valType: 'data_array',\n editType: 'ticks',\n },\n ticktext: {\n valType: 'data_array',\n editType: 'ticks',\n },\n ticks: {\n valType: 'enumerated',\n values: ['outside', 'inside', ''],\n editType: 'ticks',\n },\n tickson: {\n valType: 'enumerated',\n values: ['labels', 'boundaries'],\n dflt: 'labels',\n editType: 'ticks',\n },\n ticklabelmode: {\n valType: 'enumerated',\n values: ['instant', 'period'],\n dflt: 'instant',\n editType: 'ticks',\n },\n // ticklabelposition: not used directly, as values depend on direction (similar to side)\n // left/right options are for x axes, and top/bottom options are for y axes\n ticklabelposition: {\n valType: 'enumerated',\n values: [\n 'outside', 'inside',\n 'outside top', 'inside top',\n 'outside left', 'inside left',\n 'outside right', 'inside right',\n 'outside bottom', 'inside bottom'\n ],\n dflt: 'outside',\n editType: 'calc',\n },\n ticklabeloverflow: {\n valType: 'enumerated',\n values: [\n 'allow',\n 'hide past div',\n 'hide past domain'\n ],\n editType: 'calc',\n },\n mirror: {\n valType: 'enumerated',\n values: [true, 'ticks', false, 'all', 'allticks'],\n dflt: false,\n editType: 'ticks+layoutstyle',\n },\n ticklen: {\n valType: 'number',\n min: 0,\n dflt: 5,\n editType: 'ticks',\n },\n tickwidth: {\n valType: 'number',\n min: 0,\n dflt: 1,\n editType: 'ticks',\n },\n tickcolor: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n editType: 'ticks',\n },\n showticklabels: {\n valType: 'boolean',\n dflt: true,\n editType: 'ticks',\n },\n automargin: {\n valType: 'boolean',\n dflt: false,\n editType: 'ticks',\n },\n showspikes: {\n valType: 'boolean',\n dflt: false,\n editType: 'modebar',\n },\n spikecolor: {\n valType: 'color',\n dflt: null,\n editType: 'none',\n },\n spikethickness: {\n valType: 'number',\n dflt: 3,\n editType: 'none',\n },\n spikedash: extendFlat({}, dash, {dflt: 'dash', editType: 'none'}),\n spikemode: {\n valType: 'flaglist',\n flags: ['toaxis', 'across', 'marker'],\n dflt: 'toaxis',\n editType: 'none',\n },\n spikesnap: {\n valType: 'enumerated',\n values: ['data', 'cursor', 'hovered data'],\n dflt: 'hovered data',\n editType: 'none',\n },\n tickfont: fontAttrs({\n editType: 'ticks',\n }),\n tickangle: {\n valType: 'angle',\n dflt: 'auto',\n editType: 'ticks',\n },\n tickprefix: {\n valType: 'string',\n dflt: '',\n editType: 'ticks',\n },\n showtickprefix: {\n valType: 'enumerated',\n values: ['all', 'first', 'last', 'none'],\n dflt: 'all',\n editType: 'ticks',\n },\n ticksuffix: {\n valType: 'string',\n dflt: '',\n editType: 'ticks',\n },\n showticksuffix: {\n valType: 'enumerated',\n values: ['all', 'first', 'last', 'none'],\n dflt: 'all',\n editType: 'ticks',\n },\n showexponent: {\n valType: 'enumerated',\n values: ['all', 'first', 'last', 'none'],\n dflt: 'all',\n editType: 'ticks',\n },\n exponentformat: {\n valType: 'enumerated',\n values: ['none', 'e', 'E', 'power', 'SI', 'B'],\n dflt: 'B',\n editType: 'ticks',\n },\n minexponent: {\n valType: 'number',\n dflt: 3,\n min: 0,\n editType: 'ticks',\n },\n separatethousands: {\n valType: 'boolean',\n dflt: false,\n editType: 'ticks',\n },\n tickformat: {\n valType: 'string',\n dflt: '',\n editType: 'ticks',\n description: descriptionWithDates('tick label')\n },\n tickformatstops: templatedArray('tickformatstop', {\n enabled: {\n valType: 'boolean',\n dflt: true,\n editType: 'ticks',\n },\n dtickrange: {\n valType: 'info_array',\n items: [\n {valType: 'any', editType: 'ticks'},\n {valType: 'any', editType: 'ticks'}\n ],\n editType: 'ticks',\n },\n value: {\n valType: 'string',\n dflt: '',\n editType: 'ticks',\n },\n editType: 'ticks'\n }),\n hoverformat: {\n valType: 'string',\n dflt: '',\n editType: 'none',\n description: descriptionWithDates('hover text')\n },\n // lines and grids\n showline: {\n valType: 'boolean',\n dflt: false,\n editType: 'ticks+layoutstyle',\n },\n linecolor: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n editType: 'layoutstyle',\n },\n linewidth: {\n valType: 'number',\n min: 0,\n dflt: 1,\n editType: 'ticks+layoutstyle',\n },\n showgrid: {\n valType: 'boolean',\n editType: 'ticks',\n },\n gridcolor: {\n valType: 'color',\n dflt: colorAttrs.lightLine,\n editType: 'ticks',\n },\n gridwidth: {\n valType: 'number',\n min: 0,\n dflt: 1,\n editType: 'ticks',\n },\n zeroline: {\n valType: 'boolean',\n editType: 'ticks',\n },\n zerolinecolor: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n editType: 'ticks',\n },\n zerolinewidth: {\n valType: 'number',\n dflt: 1,\n editType: 'ticks',\n },\n\n showdividers: {\n valType: 'boolean',\n dflt: true,\n editType: 'ticks',\n },\n dividercolor: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n editType: 'ticks',\n },\n dividerwidth: {\n valType: 'number',\n dflt: 1,\n editType: 'ticks',\n },\n // TODO dividerlen: that would override \"to label base\" length?\n\n // positioning attributes\n // anchor: not used directly, just put here for reference\n // values are any opposite-letter axis id\n anchor: {\n valType: 'enumerated',\n values: [\n 'free',\n constants.idRegex.x.toString(),\n constants.idRegex.y.toString()\n ],\n editType: 'plot',\n },\n // side: not used directly, as values depend on direction\n // values are top, bottom for x axes, and left, right for y\n side: {\n valType: 'enumerated',\n values: ['top', 'bottom', 'left', 'right'],\n editType: 'plot',\n },\n // overlaying: not used directly, just put here for reference\n // values are false and any other same-letter axis id that's not\n // itself overlaying anything\n overlaying: {\n valType: 'enumerated',\n values: [\n 'free',\n constants.idRegex.x.toString(),\n constants.idRegex.y.toString()\n ],\n editType: 'plot',\n },\n layer: {\n valType: 'enumerated',\n values: ['above traces', 'below traces'],\n dflt: 'above traces',\n editType: 'plot',\n },\n domain: {\n valType: 'info_array',\n items: [\n {valType: 'number', min: 0, max: 1, editType: 'plot'},\n {valType: 'number', min: 0, max: 1, editType: 'plot'}\n ],\n dflt: [0, 1],\n editType: 'plot',\n },\n position: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0,\n editType: 'plot',\n },\n categoryorder: {\n valType: 'enumerated',\n values: [\n 'trace', 'category ascending', 'category descending', 'array',\n 'total ascending', 'total descending',\n 'min ascending', 'min descending',\n 'max ascending', 'max descending',\n 'sum ascending', 'sum descending',\n 'mean ascending', 'mean descending',\n 'median ascending', 'median descending'\n ],\n dflt: 'trace',\n editType: 'calc',\n },\n categoryarray: {\n valType: 'data_array',\n editType: 'calc',\n },\n uirevision: {\n valType: 'any',\n editType: 'none',\n },\n editType: 'calc',\n\n _deprecated: {\n autotick: {\n valType: 'boolean',\n editType: 'ticks',\n },\n title: {\n valType: 'string',\n editType: 'ticks',\n },\n titlefont: fontAttrs({\n editType: 'ticks',\n })\n }\n};\n\n},{\"../../components/color/attributes\":365,\"../../components/drawing/attributes\":387,\"../../constants/numerical\":479,\"../../lib/extend\":493,\"../../plot_api/plot_template\":543,\"../../plots/cartesian/axis_format_attributes\":557,\"../font_attributes\":585,\"./constants\":561}],570:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Color = _dereq_('../../components/color');\nvar isUnifiedHover = _dereq_('../../components/fx/helpers').isUnifiedHover;\nvar handleHoverModeDefaults = _dereq_('../../components/fx/hovermode_defaults');\nvar Template = _dereq_('../../plot_api/plot_template');\nvar basePlotLayoutAttributes = _dereq_('../layout_attributes');\n\nvar layoutAttributes = _dereq_('./layout_attributes');\nvar handleTypeDefaults = _dereq_('./type_defaults');\nvar handleAxisDefaults = _dereq_('./axis_defaults');\nvar constraints = _dereq_('./constraints');\nvar handlePositionDefaults = _dereq_('./position_defaults');\n\nvar axisIds = _dereq_('./axis_ids');\nvar id2name = axisIds.id2name;\nvar name2id = axisIds.name2id;\n\nvar AX_ID_PATTERN = _dereq_('./constants').AX_ID_PATTERN;\n\nvar Registry = _dereq_('../../registry');\nvar traceIs = Registry.traceIs;\nvar getComponentMethod = Registry.getComponentMethod;\n\nfunction appendList(cont, k, item) {\n if(Array.isArray(cont[k])) cont[k].push(item);\n else cont[k] = [item];\n}\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut, fullData) {\n var autotypenumbersDflt = layoutOut.autotypenumbers;\n\n var ax2traces = {};\n var xaMayHide = {};\n var yaMayHide = {};\n var xaMustDisplay = {};\n var yaMustDisplay = {};\n var yaMustNotReverse = {};\n var yaMayReverse = {};\n var axHasImage = {};\n var outerTicks = {};\n var noGrids = {};\n var i, j;\n\n // look for axes in the data\n for(i = 0; i < fullData.length; i++) {\n var trace = fullData[i];\n if(!traceIs(trace, 'cartesian') && !traceIs(trace, 'gl2d')) continue;\n\n var xaName;\n if(trace.xaxis) {\n xaName = id2name(trace.xaxis);\n appendList(ax2traces, xaName, trace);\n } else if(trace.xaxes) {\n for(j = 0; j < trace.xaxes.length; j++) {\n appendList(ax2traces, id2name(trace.xaxes[j]), trace);\n }\n }\n\n var yaName;\n if(trace.yaxis) {\n yaName = id2name(trace.yaxis);\n appendList(ax2traces, yaName, trace);\n } else if(trace.yaxes) {\n for(j = 0; j < trace.yaxes.length; j++) {\n appendList(ax2traces, id2name(trace.yaxes[j]), trace);\n }\n }\n\n // logic for funnels\n if(trace.type === 'funnel') {\n if(trace.orientation === 'h') {\n if(xaName) xaMayHide[xaName] = true;\n if(yaName) yaMayReverse[yaName] = true;\n } else {\n if(yaName) yaMayHide[yaName] = true;\n }\n } else if(trace.type === 'image') {\n if(yaName) axHasImage[yaName] = true;\n if(xaName) axHasImage[xaName] = true;\n } else {\n if(yaName) {\n yaMustDisplay[yaName] = true;\n yaMustNotReverse[yaName] = true;\n }\n\n if(!traceIs(trace, 'carpet') || (trace.type === 'carpet' && !trace._cheater)) {\n if(xaName) xaMustDisplay[xaName] = true;\n }\n }\n\n // Two things trigger axis visibility:\n // 1. is not carpet\n // 2. carpet that's not cheater\n\n // The above check for definitely-not-cheater is not adequate. This\n // second list tracks which axes *could* be a cheater so that the\n // full condition triggering hiding is:\n // *could* be a cheater and *is not definitely visible*\n if(trace.type === 'carpet' && trace._cheater) {\n if(xaName) xaMayHide[xaName] = true;\n }\n\n // check for default formatting tweaks\n if(traceIs(trace, '2dMap')) {\n outerTicks[xaName] = true;\n outerTicks[yaName] = true;\n }\n\n if(traceIs(trace, 'oriented')) {\n var positionAxis = trace.orientation === 'h' ? yaName : xaName;\n noGrids[positionAxis] = true;\n }\n }\n\n var subplots = layoutOut._subplots;\n var xIds = subplots.xaxis;\n var yIds = subplots.yaxis;\n var xNames = Lib.simpleMap(xIds, id2name);\n var yNames = Lib.simpleMap(yIds, id2name);\n var axNames = xNames.concat(yNames);\n\n // plot_bgcolor only makes sense if there's a (2D) plot!\n // TODO: bgcolor for each subplot, to inherit from the main one\n var plotBgColor = Color.background;\n if(xIds.length && yIds.length) {\n plotBgColor = Lib.coerce(layoutIn, layoutOut, basePlotLayoutAttributes, 'plot_bgcolor');\n }\n\n var bgColor = Color.combine(plotBgColor, layoutOut.paper_bgcolor);\n\n // name of single axis (e.g. 'xaxis', 'yaxis2')\n var axName;\n // id of single axis (e.g. 'y', 'x5')\n var axId;\n // 'x' or 'y'\n var axLetter;\n // input layout axis container\n var axLayoutIn;\n // full layout axis container\n var axLayoutOut;\n\n function newAxLayoutOut() {\n var traces = ax2traces[axName] || [];\n axLayoutOut._traceIndices = traces.map(function(t) { return t._expandedIndex; });\n axLayoutOut._annIndices = [];\n axLayoutOut._shapeIndices = [];\n axLayoutOut._imgIndices = [];\n axLayoutOut._subplotsWith = [];\n axLayoutOut._counterAxes = [];\n axLayoutOut._name = axLayoutOut._attr = axName;\n axLayoutOut._id = axId;\n }\n\n function coerce(attr, dflt) {\n return Lib.coerce(axLayoutIn, axLayoutOut, layoutAttributes, attr, dflt);\n }\n\n function coerce2(attr, dflt) {\n return Lib.coerce2(axLayoutIn, axLayoutOut, layoutAttributes, attr, dflt);\n }\n\n function getCounterAxes(axLetter) {\n return (axLetter === 'x') ? yIds : xIds;\n }\n\n function getOverlayableAxes(axLetter, axName) {\n var list = (axLetter === 'x') ? xNames : yNames;\n var out = [];\n\n for(var j = 0; j < list.length; j++) {\n var axName2 = list[j];\n\n if(axName2 !== axName && !(layoutIn[axName2] || {}).overlaying) {\n out.push(name2id(axName2));\n }\n }\n\n return out;\n }\n\n // list of available counter axis names\n var counterAxes = {x: getCounterAxes('x'), y: getCounterAxes('y')};\n // list of all x AND y axis ids\n var allAxisIds = counterAxes.x.concat(counterAxes.y);\n // lookup and list of axis ids that axes in axNames have a reference to,\n // even though they are missing from allAxisIds\n var missingMatchedAxisIdsLookup = {};\n var missingMatchedAxisIds = [];\n\n // fill in 'missing' axis lookup when an axis is set to match an axis\n // not part of the allAxisIds list, save axis type so that we can propagate\n // it to the missing axes\n function addMissingMatchedAxis() {\n var matchesIn = axLayoutIn.matches;\n if(AX_ID_PATTERN.test(matchesIn) && allAxisIds.indexOf(matchesIn) === -1) {\n missingMatchedAxisIdsLookup[matchesIn] = axLayoutIn.type;\n missingMatchedAxisIds = Object.keys(missingMatchedAxisIdsLookup);\n }\n }\n\n var hovermode = handleHoverModeDefaults(layoutIn, layoutOut);\n var unifiedHover = isUnifiedHover(hovermode);\n\n // first pass creates the containers, determines types, and handles most of the settings\n for(i = 0; i < axNames.length; i++) {\n axName = axNames[i];\n axId = name2id(axName);\n axLetter = axName.charAt(0);\n\n if(!Lib.isPlainObject(layoutIn[axName])) {\n layoutIn[axName] = {};\n }\n\n axLayoutIn = layoutIn[axName];\n axLayoutOut = Template.newContainer(layoutOut, axName, axLetter + 'axis');\n newAxLayoutOut();\n\n var visibleDflt =\n (axLetter === 'x' && !xaMustDisplay[axName] && xaMayHide[axName]) ||\n (axLetter === 'y' && !yaMustDisplay[axName] && yaMayHide[axName]);\n\n var reverseDflt =\n (axLetter === 'y' &&\n (\n (!yaMustNotReverse[axName] && yaMayReverse[axName]) ||\n axHasImage[axName]\n ));\n\n var defaultOptions = {\n letter: axLetter,\n font: layoutOut.font,\n outerTicks: outerTicks[axName],\n showGrid: !noGrids[axName],\n data: ax2traces[axName] || [],\n bgColor: bgColor,\n calendar: layoutOut.calendar,\n automargin: true,\n visibleDflt: visibleDflt,\n reverseDflt: reverseDflt,\n autotypenumbersDflt: autotypenumbersDflt,\n splomStash: ((layoutOut._splomAxes || {})[axLetter] || {})[axId]\n };\n\n coerce('uirevision', layoutOut.uirevision);\n\n handleTypeDefaults(axLayoutIn, axLayoutOut, coerce, defaultOptions);\n handleAxisDefaults(axLayoutIn, axLayoutOut, coerce, defaultOptions, layoutOut);\n\n var unifiedSpike = unifiedHover && axLetter === hovermode.charAt(0);\n var spikecolor = coerce2('spikecolor', unifiedHover ? axLayoutOut.color : undefined);\n var spikethickness = coerce2('spikethickness', unifiedHover ? 1.5 : undefined);\n var spikedash = coerce2('spikedash', unifiedHover ? 'dot' : undefined);\n var spikemode = coerce2('spikemode', unifiedHover ? 'across' : undefined);\n var spikesnap = coerce2('spikesnap');\n var showSpikes = coerce('showspikes', !!unifiedSpike || !!spikecolor || !!spikethickness || !!spikedash || !!spikemode || !!spikesnap);\n\n if(!showSpikes) {\n delete axLayoutOut.spikecolor;\n delete axLayoutOut.spikethickness;\n delete axLayoutOut.spikedash;\n delete axLayoutOut.spikemode;\n delete axLayoutOut.spikesnap;\n }\n\n handlePositionDefaults(axLayoutIn, axLayoutOut, coerce, {\n letter: axLetter,\n counterAxes: counterAxes[axLetter],\n overlayableAxes: getOverlayableAxes(axLetter, axName),\n grid: layoutOut.grid\n });\n\n coerce('title.standoff');\n\n addMissingMatchedAxis();\n\n axLayoutOut._input = axLayoutIn;\n }\n\n // coerce the 'missing' axes\n i = 0;\n while(i < missingMatchedAxisIds.length) {\n axId = missingMatchedAxisIds[i++];\n axName = id2name(axId);\n axLetter = axName.charAt(0);\n\n if(!Lib.isPlainObject(layoutIn[axName])) {\n layoutIn[axName] = {};\n }\n\n axLayoutIn = layoutIn[axName];\n axLayoutOut = Template.newContainer(layoutOut, axName, axLetter + 'axis');\n newAxLayoutOut();\n\n var defaultOptions2 = {\n letter: axLetter,\n font: layoutOut.font,\n outerTicks: outerTicks[axName],\n showGrid: !noGrids[axName],\n data: [],\n bgColor: bgColor,\n calendar: layoutOut.calendar,\n automargin: true,\n visibleDflt: false,\n reverseDflt: false,\n autotypenumbersDflt: autotypenumbersDflt,\n splomStash: ((layoutOut._splomAxes || {})[axLetter] || {})[axId]\n };\n\n coerce('uirevision', layoutOut.uirevision);\n\n axLayoutOut.type = missingMatchedAxisIdsLookup[axId] || 'linear';\n\n handleAxisDefaults(axLayoutIn, axLayoutOut, coerce, defaultOptions2, layoutOut);\n\n handlePositionDefaults(axLayoutIn, axLayoutOut, coerce, {\n letter: axLetter,\n counterAxes: counterAxes[axLetter],\n overlayableAxes: getOverlayableAxes(axLetter, axName),\n grid: layoutOut.grid\n });\n\n coerce('fixedrange');\n\n addMissingMatchedAxis();\n\n axLayoutOut._input = axLayoutIn;\n }\n\n // quick second pass for range slider and selector defaults\n var rangeSliderDefaults = getComponentMethod('rangeslider', 'handleDefaults');\n var rangeSelectorDefaults = getComponentMethod('rangeselector', 'handleDefaults');\n\n for(i = 0; i < xNames.length; i++) {\n axName = xNames[i];\n axLayoutIn = layoutIn[axName];\n axLayoutOut = layoutOut[axName];\n\n rangeSliderDefaults(layoutIn, layoutOut, axName);\n\n if(axLayoutOut.type === 'date') {\n rangeSelectorDefaults(\n axLayoutIn,\n axLayoutOut,\n layoutOut,\n yNames,\n axLayoutOut.calendar\n );\n }\n\n coerce('fixedrange');\n }\n\n for(i = 0; i < yNames.length; i++) {\n axName = yNames[i];\n axLayoutIn = layoutIn[axName];\n axLayoutOut = layoutOut[axName];\n\n var anchoredAxis = layoutOut[id2name(axLayoutOut.anchor)];\n\n var fixedRangeDflt = getComponentMethod('rangeslider', 'isVisible')(anchoredAxis);\n\n coerce('fixedrange', fixedRangeDflt);\n }\n\n // Finally, handle scale constraints and matching axes.\n //\n // We need to do this after all axes have coerced both `type`\n // (so we link only axes of the same type) and\n // `fixedrange` (so we can avoid linking from OR TO a fixed axis).\n constraints.handleDefaults(layoutIn, layoutOut, {\n axIds: allAxisIds.concat(missingMatchedAxisIds).sort(axisIds.idSort),\n axHasImage: axHasImage\n });\n};\n\n},{\"../../components/color\":366,\"../../components/fx/helpers\":402,\"../../components/fx/hovermode_defaults\":405,\"../../lib\":503,\"../../plot_api/plot_template\":543,\"../../registry\":638,\"../layout_attributes\":610,\"./axis_defaults\":556,\"./axis_ids\":558,\"./constants\":561,\"./constraints\":562,\"./layout_attributes\":569,\"./position_defaults\":572,\"./type_defaults\":582}],571:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorMix = _dereq_('tinycolor2').mix;\nvar lightFraction = _dereq_('../../components/color/attributes').lightFraction;\nvar Lib = _dereq_('../../lib');\n\n/**\n * @param {object} opts :\n * - dfltColor {string} : default axis color\n * - bgColor {string} : combined subplot bg color\n * - blend {number, optional} : blend percentage (to compute dflt grid color)\n * - showLine {boolean} : show line by default\n * - showGrid {boolean} : show grid by default\n * - noZeroLine {boolean} : don't coerce zeroline* attributes\n * - attributes {object} : attribute object associated with input containers\n */\nmodule.exports = function handleLineGridDefaults(containerIn, containerOut, coerce, opts) {\n opts = opts || {};\n\n var dfltColor = opts.dfltColor;\n\n function coerce2(attr, dflt) {\n return Lib.coerce2(containerIn, containerOut, opts.attributes, attr, dflt);\n }\n\n var lineColor = coerce2('linecolor', dfltColor);\n var lineWidth = coerce2('linewidth');\n var showLine = coerce('showline', opts.showLine || !!lineColor || !!lineWidth);\n\n if(!showLine) {\n delete containerOut.linecolor;\n delete containerOut.linewidth;\n }\n\n var gridColorDflt = colorMix(dfltColor, opts.bgColor, opts.blend || lightFraction).toRgbString();\n var gridColor = coerce2('gridcolor', gridColorDflt);\n var gridWidth = coerce2('gridwidth');\n var showGridLines = coerce('showgrid', opts.showGrid || !!gridColor || !!gridWidth);\n\n if(!showGridLines) {\n delete containerOut.gridcolor;\n delete containerOut.gridwidth;\n }\n\n if(!opts.noZeroLine) {\n var zeroLineColor = coerce2('zerolinecolor', dfltColor);\n var zeroLineWidth = coerce2('zerolinewidth');\n var showZeroLine = coerce('zeroline', opts.showGrid || !!zeroLineColor || !!zeroLineWidth);\n\n if(!showZeroLine) {\n delete containerOut.zerolinecolor;\n delete containerOut.zerolinewidth;\n }\n }\n};\n\n},{\"../../components/color/attributes\":365,\"../../lib\":503,\"tinycolor2\":312}],572:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Lib = _dereq_('../../lib');\n\n\nmodule.exports = function handlePositionDefaults(containerIn, containerOut, coerce, options) {\n var counterAxes = options.counterAxes || [];\n var overlayableAxes = options.overlayableAxes || [];\n var letter = options.letter;\n var grid = options.grid;\n\n var dfltAnchor, dfltDomain, dfltSide, dfltPosition;\n\n if(grid) {\n dfltDomain = grid._domains[letter][grid._axisMap[containerOut._id]];\n dfltAnchor = grid._anchors[containerOut._id];\n if(dfltDomain) {\n dfltSide = grid[letter + 'side'].split(' ')[0];\n dfltPosition = grid.domain[letter][dfltSide === 'right' || dfltSide === 'top' ? 1 : 0];\n }\n }\n\n // Even if there's a grid, this axis may not be in it - fall back on non-grid defaults\n dfltDomain = dfltDomain || [0, 1];\n dfltAnchor = dfltAnchor || (isNumeric(containerIn.position) ? 'free' : (counterAxes[0] || 'free'));\n dfltSide = dfltSide || (letter === 'x' ? 'bottom' : 'left');\n dfltPosition = dfltPosition || 0;\n\n var anchor = Lib.coerce(containerIn, containerOut, {\n anchor: {\n valType: 'enumerated',\n values: ['free'].concat(counterAxes),\n dflt: dfltAnchor\n }\n }, 'anchor');\n\n if(anchor === 'free') coerce('position', dfltPosition);\n\n Lib.coerce(containerIn, containerOut, {\n side: {\n valType: 'enumerated',\n values: letter === 'x' ? ['bottom', 'top'] : ['left', 'right'],\n dflt: dfltSide\n }\n }, 'side');\n\n var overlaying = false;\n if(overlayableAxes.length) {\n overlaying = Lib.coerce(containerIn, containerOut, {\n overlaying: {\n valType: 'enumerated',\n values: [false].concat(overlayableAxes),\n dflt: false\n }\n }, 'overlaying');\n }\n\n if(!overlaying) {\n // TODO: right now I'm copying this domain over to overlaying axes\n // in ax.setscale()... but this means we still need (imperfect) logic\n // in the axes popover to hide domain for the overlaying axis.\n // perhaps I should make a private version _domain that all axes get???\n var domain = coerce('domain', dfltDomain);\n\n // according to https://www.npmjs.com/package/canvas-size\n // the minimum value of max canvas width across browsers and devices is 4096\n // which applied in the calculation below:\n if(domain[0] > domain[1] - 1 / 4096) containerOut.domain = dfltDomain;\n Lib.noneOrAll(containerIn.domain, containerOut.domain, dfltDomain);\n }\n\n coerce('layer');\n\n return containerOut;\n};\n\n},{\"../../lib\":503,\"fast-isnumeric\":190}],573:[function(_dereq_,module,exports){\n'use strict';\n\nvar getShowAttrDflt = _dereq_('./show_dflt');\n\nmodule.exports = function handlePrefixSuffixDefaults(containerIn, containerOut, coerce, axType, options) {\n if(!options) options = {};\n var tickSuffixDflt = options.tickSuffixDflt;\n\n var showAttrDflt = getShowAttrDflt(containerIn);\n\n var tickPrefix = coerce('tickprefix');\n if(tickPrefix) coerce('showtickprefix', showAttrDflt);\n\n var tickSuffix = coerce('ticksuffix', tickSuffixDflt);\n if(tickSuffix) coerce('showticksuffix', showAttrDflt);\n};\n\n},{\"./show_dflt\":577}],574:[function(_dereq_,module,exports){\n'use strict';\n\nvar FROM_BL = _dereq_('../../constants/alignment').FROM_BL;\n\nmodule.exports = function scaleZoom(ax, factor, centerFraction) {\n if(centerFraction === undefined) {\n centerFraction = FROM_BL[ax.constraintoward || 'center'];\n }\n\n var rangeLinear = [ax.r2l(ax.range[0]), ax.r2l(ax.range[1])];\n var center = rangeLinear[0] + (rangeLinear[1] - rangeLinear[0]) * centerFraction;\n\n ax.range = ax._input.range = [\n ax.l2r(center + (rangeLinear[0] - center) * factor),\n ax.l2r(center + (rangeLinear[1] - center) * factor)\n ];\n ax.setScale();\n};\n\n},{\"../../constants/alignment\":471}],575:[function(_dereq_,module,exports){\n'use strict';\n\nvar polybool = _dereq_('polybooljs');\n\nvar Registry = _dereq_('../../registry');\nvar dashStyle = _dereq_('../../components/drawing').dashStyle;\nvar Color = _dereq_('../../components/color');\nvar Fx = _dereq_('../../components/fx');\nvar makeEventData = _dereq_('../../components/fx/helpers').makeEventData;\nvar dragHelpers = _dereq_('../../components/dragelement/helpers');\nvar freeMode = dragHelpers.freeMode;\nvar rectMode = dragHelpers.rectMode;\nvar drawMode = dragHelpers.drawMode;\nvar openMode = dragHelpers.openMode;\nvar selectMode = dragHelpers.selectMode;\n\nvar displayOutlines = _dereq_('../../components/shapes/draw_newshape/display_outlines');\nvar handleEllipse = _dereq_('../../components/shapes/draw_newshape/helpers').handleEllipse;\nvar newShapes = _dereq_('../../components/shapes/draw_newshape/newshapes');\n\nvar Lib = _dereq_('../../lib');\nvar polygon = _dereq_('../../lib/polygon');\nvar throttle = _dereq_('../../lib/throttle');\nvar getFromId = _dereq_('./axis_ids').getFromId;\nvar clearGlCanvases = _dereq_('../../lib/clear_gl_canvases');\n\nvar redrawReglTraces = _dereq_('../../plot_api/subroutines').redrawReglTraces;\n\nvar constants = _dereq_('./constants');\nvar MINSELECT = constants.MINSELECT;\n\nvar filteredPolygon = polygon.filter;\nvar polygonTester = polygon.tester;\n\nvar clearSelect = _dereq_('./handle_outline').clearSelect;\n\nvar helpers = _dereq_('./helpers');\nvar p2r = helpers.p2r;\nvar axValue = helpers.axValue;\nvar getTransform = helpers.getTransform;\n\nfunction prepSelect(e, startX, startY, dragOptions, mode) {\n var isFreeMode = freeMode(mode);\n var isRectMode = rectMode(mode);\n var isOpenMode = openMode(mode);\n var isDrawMode = drawMode(mode);\n var isSelectMode = selectMode(mode);\n\n var isLine = mode === 'drawline';\n var isEllipse = mode === 'drawcircle';\n var isLineOrEllipse = isLine || isEllipse; // cases with two start & end positions\n\n var gd = dragOptions.gd;\n var fullLayout = gd._fullLayout;\n var zoomLayer = fullLayout._zoomlayer;\n var dragBBox = dragOptions.element.getBoundingClientRect();\n var plotinfo = dragOptions.plotinfo;\n var transform = getTransform(plotinfo);\n var x0 = startX - dragBBox.left;\n var y0 = startY - dragBBox.top;\n\n fullLayout._calcInverseTransform(gd);\n var transformedCoords = Lib.apply3DTransform(fullLayout._invTransform)(x0, y0);\n x0 = transformedCoords[0];\n y0 = transformedCoords[1];\n var scaleX = fullLayout._invScaleX;\n var scaleY = fullLayout._invScaleY;\n\n var x1 = x0;\n var y1 = y0;\n var path0 = 'M' + x0 + ',' + y0;\n var pw = dragOptions.xaxes[0]._length;\n var ph = dragOptions.yaxes[0]._length;\n var allAxes = dragOptions.xaxes.concat(dragOptions.yaxes);\n var subtract = e.altKey &&\n !(drawMode(mode) && isOpenMode);\n\n var filterPoly, selectionTester, mergedPolygons, currentPolygon;\n var i, searchInfo, eventData;\n\n coerceSelectionsCache(e, gd, dragOptions);\n\n if(isFreeMode) {\n filterPoly = filteredPolygon([[x0, y0]], constants.BENDPX);\n }\n\n var outlines = zoomLayer.selectAll('path.select-outline-' + plotinfo.id).data(isDrawMode ? [0] : [1, 2]);\n var drwStyle = fullLayout.newshape;\n\n outlines.enter()\n .append('path')\n .attr('class', function(d) { return 'select-outline select-outline-' + d + ' select-outline-' + plotinfo.id; })\n .style(isDrawMode ? {\n opacity: drwStyle.opacity / 2,\n fill: isOpenMode ? undefined : drwStyle.fillcolor,\n stroke: drwStyle.line.color,\n 'stroke-dasharray': dashStyle(drwStyle.line.dash, drwStyle.line.width),\n 'stroke-width': drwStyle.line.width + 'px'\n } : {})\n .attr('fill-rule', drwStyle.fillrule)\n .classed('cursor-move', isDrawMode ? true : false)\n .attr('transform', transform)\n .attr('d', path0 + 'Z');\n\n var corners = zoomLayer.append('path')\n .attr('class', 'zoombox-corners')\n .style({\n fill: Color.background,\n stroke: Color.defaultLine,\n 'stroke-width': 1\n })\n .attr('transform', transform)\n .attr('d', 'M0,0Z');\n\n\n var throttleID = fullLayout._uid + constants.SELECTID;\n var selection = [];\n\n // find the traces to search for selection points\n var searchTraces = determineSearchTraces(gd, dragOptions.xaxes,\n dragOptions.yaxes, dragOptions.subplot);\n\n function ascending(a, b) { return a - b; }\n\n // allow subplots to override fillRangeItems routine\n var fillRangeItems;\n\n if(plotinfo.fillRangeItems) {\n fillRangeItems = plotinfo.fillRangeItems;\n } else {\n if(isRectMode) {\n fillRangeItems = function(eventData, poly) {\n var ranges = eventData.range = {};\n\n for(i = 0; i < allAxes.length; i++) {\n var ax = allAxes[i];\n var axLetter = ax._id.charAt(0);\n\n ranges[ax._id] = [\n p2r(ax, poly[axLetter + 'min']),\n p2r(ax, poly[axLetter + 'max'])\n ].sort(ascending);\n }\n };\n } else { // case of isFreeMode\n fillRangeItems = function(eventData, poly, filterPoly) {\n var dataPts = eventData.lassoPoints = {};\n\n for(i = 0; i < allAxes.length; i++) {\n var ax = allAxes[i];\n dataPts[ax._id] = filterPoly.filtered.map(axValue(ax));\n }\n };\n }\n }\n\n dragOptions.moveFn = function(dx0, dy0) {\n x1 = Math.max(0, Math.min(pw, scaleX * dx0 + x0));\n y1 = Math.max(0, Math.min(ph, scaleY * dy0 + y0));\n\n var dx = Math.abs(x1 - x0);\n var dy = Math.abs(y1 - y0);\n\n if(isRectMode) {\n var direction;\n var start, end;\n\n if(isSelectMode) {\n var q = fullLayout.selectdirection;\n\n if(q === 'any') {\n if(dy < Math.min(dx * 0.6, MINSELECT)) {\n direction = 'h';\n } else if(dx < Math.min(dy * 0.6, MINSELECT)) {\n direction = 'v';\n } else {\n direction = 'd';\n }\n } else {\n direction = q;\n }\n\n switch(direction) {\n case 'h':\n start = isEllipse ? ph / 2 : 0;\n end = ph;\n break;\n case 'v':\n start = isEllipse ? pw / 2 : 0;\n end = pw;\n break;\n }\n }\n\n if(isDrawMode) {\n switch(fullLayout.newshape.drawdirection) {\n case 'vertical':\n direction = 'h';\n start = isEllipse ? ph / 2 : 0;\n end = ph;\n break;\n case 'horizontal':\n direction = 'v';\n start = isEllipse ? pw / 2 : 0;\n end = pw;\n break;\n case 'ortho':\n if(dx < dy) {\n direction = 'h';\n start = y0;\n end = y1;\n } else {\n direction = 'v';\n start = x0;\n end = x1;\n }\n break;\n default: // i.e. case of 'diagonal'\n direction = 'd';\n }\n }\n\n if(direction === 'h') {\n // horizontal motion\n currentPolygon = isLineOrEllipse ?\n handleEllipse(isEllipse, [x1, start], [x1, end]) : // using x1 instead of x0 allows adjusting the line while drawing\n [[x0, start], [x0, end], [x1, end], [x1, start]]; // make a vertical box\n\n currentPolygon.xmin = isLineOrEllipse ? x1 : Math.min(x0, x1);\n currentPolygon.xmax = isLineOrEllipse ? x1 : Math.max(x0, x1);\n currentPolygon.ymin = Math.min(start, end);\n currentPolygon.ymax = Math.max(start, end);\n // extras to guide users in keeping a straight selection\n corners.attr('d', 'M' + currentPolygon.xmin + ',' + (y0 - MINSELECT) +\n 'h-4v' + (2 * MINSELECT) + 'h4Z' +\n 'M' + (currentPolygon.xmax - 1) + ',' + (y0 - MINSELECT) +\n 'h4v' + (2 * MINSELECT) + 'h-4Z');\n } else if(direction === 'v') {\n // vertical motion\n currentPolygon = isLineOrEllipse ?\n handleEllipse(isEllipse, [start, y1], [end, y1]) : // using y1 instead of y0 allows adjusting the line while drawing\n [[start, y0], [start, y1], [end, y1], [end, y0]]; // make a horizontal box\n\n currentPolygon.xmin = Math.min(start, end);\n currentPolygon.xmax = Math.max(start, end);\n currentPolygon.ymin = isLineOrEllipse ? y1 : Math.min(y0, y1);\n currentPolygon.ymax = isLineOrEllipse ? y1 : Math.max(y0, y1);\n corners.attr('d', 'M' + (x0 - MINSELECT) + ',' + currentPolygon.ymin +\n 'v-4h' + (2 * MINSELECT) + 'v4Z' +\n 'M' + (x0 - MINSELECT) + ',' + (currentPolygon.ymax - 1) +\n 'v4h' + (2 * MINSELECT) + 'v-4Z');\n } else if(direction === 'd') {\n // diagonal motion\n currentPolygon = isLineOrEllipse ?\n handleEllipse(isEllipse, [x0, y0], [x1, y1]) :\n [[x0, y0], [x0, y1], [x1, y1], [x1, y0]];\n\n currentPolygon.xmin = Math.min(x0, x1);\n currentPolygon.xmax = Math.max(x0, x1);\n currentPolygon.ymin = Math.min(y0, y1);\n currentPolygon.ymax = Math.max(y0, y1);\n corners.attr('d', 'M0,0Z');\n }\n } else if(isFreeMode) {\n filterPoly.addPt([x1, y1]);\n currentPolygon = filterPoly.filtered;\n }\n\n // create outline & tester\n if(dragOptions.selectionDefs && dragOptions.selectionDefs.length) {\n mergedPolygons = mergePolygons(dragOptions.mergedPolygons, currentPolygon, subtract);\n currentPolygon.subtract = subtract;\n selectionTester = multiTester(dragOptions.selectionDefs.concat([currentPolygon]));\n } else {\n mergedPolygons = [currentPolygon];\n selectionTester = polygonTester(currentPolygon);\n }\n\n // display polygons on the screen\n displayOutlines(convertPoly(mergedPolygons, isOpenMode), outlines, dragOptions);\n\n if(isSelectMode) {\n throttle.throttle(\n throttleID,\n constants.SELECTDELAY,\n function() {\n selection = [];\n\n var thisSelection;\n var traceSelections = [];\n var traceSelection;\n for(i = 0; i < searchTraces.length; i++) {\n searchInfo = searchTraces[i];\n\n traceSelection = searchInfo._module.selectPoints(searchInfo, selectionTester);\n traceSelections.push(traceSelection);\n\n thisSelection = fillSelectionItem(traceSelection, searchInfo);\n\n if(selection.length) {\n for(var j = 0; j < thisSelection.length; j++) {\n selection.push(thisSelection[j]);\n }\n } else selection = thisSelection;\n }\n\n eventData = {points: selection};\n updateSelectedState(gd, searchTraces, eventData);\n fillRangeItems(eventData, currentPolygon, filterPoly);\n dragOptions.gd.emit('plotly_selecting', eventData);\n }\n );\n }\n };\n\n dragOptions.clickFn = function(numClicks, evt) {\n corners.remove();\n\n if(gd._fullLayout._activeShapeIndex >= 0) {\n gd._fullLayout._deactivateShape(gd);\n return;\n }\n if(isDrawMode) return;\n\n var clickmode = fullLayout.clickmode;\n\n throttle.done(throttleID).then(function() {\n throttle.clear(throttleID);\n if(numClicks === 2) {\n // clear selection on doubleclick\n outlines.remove();\n for(i = 0; i < searchTraces.length; i++) {\n searchInfo = searchTraces[i];\n searchInfo._module.selectPoints(searchInfo, false);\n }\n\n updateSelectedState(gd, searchTraces);\n\n clearSelectionsCache(dragOptions);\n\n gd.emit('plotly_deselect', null);\n } else {\n if(clickmode.indexOf('select') > -1) {\n selectOnClick(evt, gd, dragOptions.xaxes, dragOptions.yaxes,\n dragOptions.subplot, dragOptions, outlines);\n }\n\n if(clickmode === 'event') {\n // TODO: remove in v3 - this was probably never intended to work as it does,\n // but in case anyone depends on it we don't want to break it now.\n // Note that click-to-select introduced pre v3 also emitts proper\n // event data when clickmode is having 'select' in its flag list.\n gd.emit('plotly_selected', undefined);\n }\n }\n\n Fx.click(gd, evt);\n }).catch(Lib.error);\n };\n\n dragOptions.doneFn = function() {\n corners.remove();\n\n throttle.done(throttleID).then(function() {\n throttle.clear(throttleID);\n dragOptions.gd.emit('plotly_selected', eventData);\n\n if(currentPolygon && dragOptions.selectionDefs) {\n // save last polygons\n currentPolygon.subtract = subtract;\n dragOptions.selectionDefs.push(currentPolygon);\n\n // we have to keep reference to arrays container\n dragOptions.mergedPolygons.length = 0;\n [].push.apply(dragOptions.mergedPolygons, mergedPolygons);\n }\n\n if(dragOptions.doneFnCompleted) {\n dragOptions.doneFnCompleted(selection);\n }\n }).catch(Lib.error);\n\n if(isDrawMode) {\n clearSelectionsCache(dragOptions);\n }\n };\n}\n\nfunction selectOnClick(evt, gd, xAxes, yAxes, subplot, dragOptions, polygonOutlines) {\n var hoverData = gd._hoverdata;\n var fullLayout = gd._fullLayout;\n var clickmode = fullLayout.clickmode;\n var sendEvents = clickmode.indexOf('event') > -1;\n var selection = [];\n var searchTraces, searchInfo, currentSelectionDef, selectionTester, traceSelection;\n var thisTracesSelection, pointOrBinSelected, subtract, eventData, i;\n\n if(isHoverDataSet(hoverData)) {\n coerceSelectionsCache(evt, gd, dragOptions);\n searchTraces = determineSearchTraces(gd, xAxes, yAxes, subplot);\n var clickedPtInfo = extractClickedPtInfo(hoverData, searchTraces);\n var isBinnedTrace = clickedPtInfo.pointNumbers.length > 0;\n\n\n // Note: potentially costly operation isPointOrBinSelected is\n // called as late as possible through the use of an assignment\n // in an if condition.\n if(isBinnedTrace ?\n isOnlyThisBinSelected(searchTraces, clickedPtInfo) :\n isOnlyOnePointSelected(searchTraces) &&\n (pointOrBinSelected = isPointOrBinSelected(clickedPtInfo))) {\n if(polygonOutlines) polygonOutlines.remove();\n for(i = 0; i < searchTraces.length; i++) {\n searchInfo = searchTraces[i];\n searchInfo._module.selectPoints(searchInfo, false);\n }\n\n updateSelectedState(gd, searchTraces);\n\n clearSelectionsCache(dragOptions);\n\n if(sendEvents) {\n gd.emit('plotly_deselect', null);\n }\n } else {\n subtract = evt.shiftKey &&\n (pointOrBinSelected !== undefined ?\n pointOrBinSelected :\n isPointOrBinSelected(clickedPtInfo));\n currentSelectionDef = newPointSelectionDef(clickedPtInfo.pointNumber, clickedPtInfo.searchInfo, subtract);\n\n var allSelectionDefs = dragOptions.selectionDefs.concat([currentSelectionDef]);\n selectionTester = multiTester(allSelectionDefs);\n\n for(i = 0; i < searchTraces.length; i++) {\n traceSelection = searchTraces[i]._module.selectPoints(searchTraces[i], selectionTester);\n thisTracesSelection = fillSelectionItem(traceSelection, searchTraces[i]);\n\n if(selection.length) {\n for(var j = 0; j < thisTracesSelection.length; j++) {\n selection.push(thisTracesSelection[j]);\n }\n } else selection = thisTracesSelection;\n }\n\n eventData = {points: selection};\n updateSelectedState(gd, searchTraces, eventData);\n\n if(currentSelectionDef && dragOptions) {\n dragOptions.selectionDefs.push(currentSelectionDef);\n }\n\n if(polygonOutlines) {\n var polygons = dragOptions.mergedPolygons;\n var isOpenMode = openMode(dragOptions.dragmode);\n\n // display polygons on the screen\n displayOutlines(convertPoly(polygons, isOpenMode), polygonOutlines, dragOptions);\n }\n\n if(sendEvents) {\n gd.emit('plotly_selected', eventData);\n }\n }\n }\n}\n\n/**\n * Constructs a new point selection definition object.\n */\nfunction newPointSelectionDef(pointNumber, searchInfo, subtract) {\n return {\n pointNumber: pointNumber,\n searchInfo: searchInfo,\n subtract: subtract\n };\n}\n\nfunction isPointSelectionDef(o) {\n return 'pointNumber' in o && 'searchInfo' in o;\n}\n\n/*\n * Constructs a new point number tester.\n */\nfunction newPointNumTester(pointSelectionDef) {\n return {\n xmin: 0,\n xmax: 0,\n ymin: 0,\n ymax: 0,\n pts: [],\n contains: function(pt, omitFirstEdge, pointNumber, searchInfo) {\n var idxWantedTrace = pointSelectionDef.searchInfo.cd[0].trace._expandedIndex;\n var idxActualTrace = searchInfo.cd[0].trace._expandedIndex;\n return idxActualTrace === idxWantedTrace &&\n pointNumber === pointSelectionDef.pointNumber;\n },\n isRect: false,\n degenerate: false,\n subtract: pointSelectionDef.subtract\n };\n}\n\n/**\n * Wraps multiple selection testers.\n *\n * @param {Array} list - An array of selection testers.\n *\n * @return a selection tester object with a contains function\n * that can be called to evaluate a point against all wrapped\n * selection testers that were passed in list.\n */\nfunction multiTester(list) {\n var testers = [];\n var xmin = isPointSelectionDef(list[0]) ? 0 : list[0][0][0];\n var xmax = xmin;\n var ymin = isPointSelectionDef(list[0]) ? 0 : list[0][0][1];\n var ymax = ymin;\n\n for(var i = 0; i < list.length; i++) {\n if(isPointSelectionDef(list[i])) {\n testers.push(newPointNumTester(list[i]));\n } else {\n var tester = polygon.tester(list[i]);\n tester.subtract = list[i].subtract;\n testers.push(tester);\n xmin = Math.min(xmin, tester.xmin);\n xmax = Math.max(xmax, tester.xmax);\n ymin = Math.min(ymin, tester.ymin);\n ymax = Math.max(ymax, tester.ymax);\n }\n }\n\n /**\n * Tests if the given point is within this tester.\n *\n * @param {Array} pt - [0] is the x coordinate, [1] is the y coordinate of the point.\n * @param {*} arg - An optional parameter to pass down to wrapped testers.\n * @param {number} pointNumber - The point number of the point within the underlying data array.\n * @param {number} searchInfo - An object identifying the trace the point is contained in.\n *\n * @return {boolean} true if point is considered to be selected, false otherwise.\n */\n function contains(pt, arg, pointNumber, searchInfo) {\n var contained = false;\n for(var i = 0; i < testers.length; i++) {\n if(testers[i].contains(pt, arg, pointNumber, searchInfo)) {\n // if contained by subtract tester - exclude the point\n contained = testers[i].subtract === false;\n }\n }\n\n return contained;\n }\n\n return {\n xmin: xmin,\n xmax: xmax,\n ymin: ymin,\n ymax: ymax,\n pts: [],\n contains: contains,\n isRect: false,\n degenerate: false\n };\n}\n\nfunction coerceSelectionsCache(evt, gd, dragOptions) {\n gd._fullLayout._drawing = false;\n\n var fullLayout = gd._fullLayout;\n var plotinfo = dragOptions.plotinfo;\n var dragmode = dragOptions.dragmode;\n\n var selectingOnSameSubplot = (\n fullLayout._lastSelectedSubplot &&\n fullLayout._lastSelectedSubplot === plotinfo.id\n );\n\n var hasModifierKey = (evt.shiftKey || evt.altKey) &&\n !(drawMode(dragmode) && openMode(dragmode));\n\n if(selectingOnSameSubplot && hasModifierKey &&\n (plotinfo.selection && plotinfo.selection.selectionDefs) && !dragOptions.selectionDefs) {\n // take over selection definitions from prev mode, if any\n dragOptions.selectionDefs = plotinfo.selection.selectionDefs;\n dragOptions.mergedPolygons = plotinfo.selection.mergedPolygons;\n } else if(!hasModifierKey || !plotinfo.selection) {\n clearSelectionsCache(dragOptions);\n }\n\n // clear selection outline when selecting a different subplot\n if(!selectingOnSameSubplot) {\n clearSelect(gd);\n fullLayout._lastSelectedSubplot = plotinfo.id;\n }\n}\n\nfunction clearSelectionsCache(dragOptions) {\n var dragmode = dragOptions.dragmode;\n var plotinfo = dragOptions.plotinfo;\n\n var gd = dragOptions.gd;\n if(gd._fullLayout._activeShapeIndex >= 0) {\n gd._fullLayout._deactivateShape(gd);\n }\n\n if(drawMode(dragmode)) {\n var fullLayout = gd._fullLayout;\n var zoomLayer = fullLayout._zoomlayer;\n\n var outlines = zoomLayer.selectAll('.select-outline-' + plotinfo.id);\n if(outlines && gd._fullLayout._drawing) {\n // add shape\n var shapes = newShapes(outlines, dragOptions);\n if(shapes) {\n Registry.call('_guiRelayout', gd, {\n shapes: shapes\n });\n }\n\n gd._fullLayout._drawing = false;\n }\n }\n\n plotinfo.selection = {};\n plotinfo.selection.selectionDefs = dragOptions.selectionDefs = [];\n plotinfo.selection.mergedPolygons = dragOptions.mergedPolygons = [];\n}\n\nfunction determineSearchTraces(gd, xAxes, yAxes, subplot) {\n var searchTraces = [];\n var xAxisIds = xAxes.map(function(ax) { return ax._id; });\n var yAxisIds = yAxes.map(function(ax) { return ax._id; });\n var cd, trace, i;\n\n for(i = 0; i < gd.calcdata.length; i++) {\n cd = gd.calcdata[i];\n trace = cd[0].trace;\n\n if(trace.visible !== true || !trace._module || !trace._module.selectPoints) continue;\n\n if(subplot && (trace.subplot === subplot || trace.geo === subplot)) {\n searchTraces.push(createSearchInfo(trace._module, cd, xAxes[0], yAxes[0]));\n } else if(\n trace.type === 'splom' &&\n // FIXME: make sure we don't have more than single axis for splom\n trace._xaxes[xAxisIds[0]] && trace._yaxes[yAxisIds[0]]\n ) {\n var info = createSearchInfo(trace._module, cd, xAxes[0], yAxes[0]);\n info.scene = gd._fullLayout._splomScenes[trace.uid];\n searchTraces.push(info);\n } else if(\n trace.type === 'sankey'\n ) {\n var sankeyInfo = createSearchInfo(trace._module, cd, xAxes[0], yAxes[0]);\n searchTraces.push(sankeyInfo);\n } else {\n if(xAxisIds.indexOf(trace.xaxis) === -1) continue;\n if(yAxisIds.indexOf(trace.yaxis) === -1) continue;\n\n searchTraces.push(createSearchInfo(trace._module, cd,\n getFromId(gd, trace.xaxis), getFromId(gd, trace.yaxis)));\n }\n }\n\n return searchTraces;\n\n function createSearchInfo(module, calcData, xaxis, yaxis) {\n return {\n _module: module,\n cd: calcData,\n xaxis: xaxis,\n yaxis: yaxis\n };\n }\n}\n\nfunction isHoverDataSet(hoverData) {\n return hoverData &&\n Array.isArray(hoverData) &&\n hoverData[0].hoverOnBox !== true;\n}\n\nfunction extractClickedPtInfo(hoverData, searchTraces) {\n var hoverDatum = hoverData[0];\n var pointNumber = -1;\n var pointNumbers = [];\n var searchInfo, i;\n\n for(i = 0; i < searchTraces.length; i++) {\n searchInfo = searchTraces[i];\n if(hoverDatum.fullData._expandedIndex === searchInfo.cd[0].trace._expandedIndex) {\n // Special case for box (and violin)\n if(hoverDatum.hoverOnBox === true) {\n break;\n }\n\n // Hint: in some traces like histogram, one graphical element\n // doesn't correspond to one particular data point, but to\n // bins of data points. Thus, hoverDatum can have a binNumber\n // property instead of pointNumber.\n if(hoverDatum.pointNumber !== undefined) {\n pointNumber = hoverDatum.pointNumber;\n } else if(hoverDatum.binNumber !== undefined) {\n pointNumber = hoverDatum.binNumber;\n pointNumbers = hoverDatum.pointNumbers;\n }\n\n break;\n }\n }\n\n return {\n pointNumber: pointNumber,\n pointNumbers: pointNumbers,\n searchInfo: searchInfo\n };\n}\n\nfunction isPointOrBinSelected(clickedPtInfo) {\n var trace = clickedPtInfo.searchInfo.cd[0].trace;\n var ptNum = clickedPtInfo.pointNumber;\n var ptNums = clickedPtInfo.pointNumbers;\n var ptNumsSet = ptNums.length > 0;\n\n // When pointsNumbers is set (e.g. histogram's binning),\n // it is assumed that when the first point of\n // a bin is selected, all others are as well\n var ptNumToTest = ptNumsSet ? ptNums[0] : ptNum;\n\n // TODO potential performance improvement\n // Primarily we need this function to determine if a click adds\n // or subtracts from a selection.\n // In cases `trace.selectedpoints` is a huge array, indexOf\n // might be slow. One remedy would be to introduce a hash somewhere.\n return trace.selectedpoints ? trace.selectedpoints.indexOf(ptNumToTest) > -1 : false;\n}\n\nfunction isOnlyThisBinSelected(searchTraces, clickedPtInfo) {\n var tracesWithSelectedPts = [];\n var searchInfo, trace, isSameTrace, i;\n\n for(i = 0; i < searchTraces.length; i++) {\n searchInfo = searchTraces[i];\n if(searchInfo.cd[0].trace.selectedpoints && searchInfo.cd[0].trace.selectedpoints.length > 0) {\n tracesWithSelectedPts.push(searchInfo);\n }\n }\n\n if(tracesWithSelectedPts.length === 1) {\n isSameTrace = tracesWithSelectedPts[0] === clickedPtInfo.searchInfo;\n if(isSameTrace) {\n trace = clickedPtInfo.searchInfo.cd[0].trace;\n if(trace.selectedpoints.length === clickedPtInfo.pointNumbers.length) {\n for(i = 0; i < clickedPtInfo.pointNumbers.length; i++) {\n if(trace.selectedpoints.indexOf(clickedPtInfo.pointNumbers[i]) < 0) {\n return false;\n }\n }\n return true;\n }\n }\n }\n\n return false;\n}\n\nfunction isOnlyOnePointSelected(searchTraces) {\n var len = 0;\n var searchInfo, trace, i;\n\n for(i = 0; i < searchTraces.length; i++) {\n searchInfo = searchTraces[i];\n trace = searchInfo.cd[0].trace;\n if(trace.selectedpoints) {\n if(trace.selectedpoints.length > 1) return false;\n\n len += trace.selectedpoints.length;\n if(len > 1) return false;\n }\n }\n\n return len === 1;\n}\n\nfunction updateSelectedState(gd, searchTraces, eventData) {\n var i, searchInfo, cd, trace;\n\n // before anything else, update preGUI if necessary\n for(i = 0; i < searchTraces.length; i++) {\n var fullInputTrace = searchTraces[i].cd[0].trace._fullInput;\n var tracePreGUI = gd._fullLayout._tracePreGUI[fullInputTrace.uid] || {};\n if(tracePreGUI.selectedpoints === undefined) {\n tracePreGUI.selectedpoints = fullInputTrace._input.selectedpoints || null;\n }\n }\n\n if(eventData) {\n var pts = eventData.points || [];\n\n for(i = 0; i < searchTraces.length; i++) {\n trace = searchTraces[i].cd[0].trace;\n trace._input.selectedpoints = trace._fullInput.selectedpoints = [];\n if(trace._fullInput !== trace) trace.selectedpoints = [];\n }\n\n for(i = 0; i < pts.length; i++) {\n var pt = pts[i];\n var data = pt.data;\n var fullData = pt.fullData;\n\n if(pt.pointIndices) {\n [].push.apply(data.selectedpoints, pt.pointIndices);\n if(trace._fullInput !== trace) {\n [].push.apply(fullData.selectedpoints, pt.pointIndices);\n }\n } else {\n data.selectedpoints.push(pt.pointIndex);\n if(trace._fullInput !== trace) {\n fullData.selectedpoints.push(pt.pointIndex);\n }\n }\n }\n } else {\n for(i = 0; i < searchTraces.length; i++) {\n trace = searchTraces[i].cd[0].trace;\n delete trace.selectedpoints;\n delete trace._input.selectedpoints;\n if(trace._fullInput !== trace) {\n delete trace._fullInput.selectedpoints;\n }\n }\n }\n\n var hasRegl = false;\n\n for(i = 0; i < searchTraces.length; i++) {\n searchInfo = searchTraces[i];\n cd = searchInfo.cd;\n trace = cd[0].trace;\n\n if(Registry.traceIs(trace, 'regl')) {\n hasRegl = true;\n }\n\n var _module = searchInfo._module;\n var fn = _module.styleOnSelect || _module.style;\n if(fn) {\n fn(gd, cd, cd[0].node3);\n if(cd[0].nodeRangePlot3) fn(gd, cd, cd[0].nodeRangePlot3);\n }\n }\n\n if(hasRegl) {\n clearGlCanvases(gd);\n redrawReglTraces(gd);\n }\n}\n\nfunction mergePolygons(list, poly, subtract) {\n var res;\n\n if(subtract) {\n res = polybool.difference({\n regions: list,\n inverted: false\n }, {\n regions: [poly],\n inverted: false\n });\n\n return res.regions;\n }\n\n res = polybool.union({\n regions: list,\n inverted: false\n }, {\n regions: [poly],\n inverted: false\n });\n\n return res.regions;\n}\n\nfunction fillSelectionItem(selection, searchInfo) {\n if(Array.isArray(selection)) {\n var cd = searchInfo.cd;\n var trace = searchInfo.cd[0].trace;\n\n for(var i = 0; i < selection.length; i++) {\n selection[i] = makeEventData(selection[i], trace, cd);\n }\n }\n\n return selection;\n}\n\nfunction convertPoly(polygonsIn, isOpenMode) { // add M and L command to draft positions\n var polygonsOut = [];\n for(var i = 0; i < polygonsIn.length; i++) {\n polygonsOut[i] = [];\n for(var j = 0; j < polygonsIn[i].length; j++) {\n polygonsOut[i][j] = [];\n polygonsOut[i][j][0] = j ? 'L' : 'M';\n for(var k = 0; k < polygonsIn[i][j].length; k++) {\n polygonsOut[i][j].push(\n polygonsIn[i][j][k]\n );\n }\n }\n\n if(!isOpenMode) {\n polygonsOut[i].push([\n 'Z',\n polygonsOut[i][0][1], // initial x\n polygonsOut[i][0][2] // initial y\n ]);\n }\n }\n\n return polygonsOut;\n}\n\nmodule.exports = {\n prepSelect: prepSelect,\n clearSelect: clearSelect,\n clearSelectionsCache: clearSelectionsCache,\n selectOnClick: selectOnClick\n};\n\n},{\"../../components/color\":366,\"../../components/dragelement/helpers\":384,\"../../components/drawing\":388,\"../../components/fx\":406,\"../../components/fx/helpers\":402,\"../../components/shapes/draw_newshape/display_outlines\":454,\"../../components/shapes/draw_newshape/helpers\":455,\"../../components/shapes/draw_newshape/newshapes\":456,\"../../lib\":503,\"../../lib/clear_gl_canvases\":487,\"../../lib/polygon\":515,\"../../lib/throttle\":530,\"../../plot_api/subroutines\":544,\"../../registry\":638,\"./axis_ids\":558,\"./constants\":561,\"./handle_outline\":565,\"./helpers\":566,\"polybooljs\":254}],576:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar utcFormat = _dereq_('d3-time-format').utcFormat;\nvar Lib = _dereq_('../../lib');\nvar numberFormat = Lib.numberFormat;\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar cleanNumber = Lib.cleanNumber;\nvar ms2DateTime = Lib.ms2DateTime;\nvar dateTime2ms = Lib.dateTime2ms;\nvar ensureNumber = Lib.ensureNumber;\nvar isArrayOrTypedArray = Lib.isArrayOrTypedArray;\n\nvar numConstants = _dereq_('../../constants/numerical');\nvar FP_SAFE = numConstants.FP_SAFE;\nvar BADNUM = numConstants.BADNUM;\nvar LOG_CLIP = numConstants.LOG_CLIP;\nvar ONEWEEK = numConstants.ONEWEEK;\nvar ONEDAY = numConstants.ONEDAY;\nvar ONEHOUR = numConstants.ONEHOUR;\nvar ONEMIN = numConstants.ONEMIN;\nvar ONESEC = numConstants.ONESEC;\n\nvar axisIds = _dereq_('./axis_ids');\nvar constants = _dereq_('./constants');\nvar HOUR_PATTERN = constants.HOUR_PATTERN;\nvar WEEKDAY_PATTERN = constants.WEEKDAY_PATTERN;\n\nfunction fromLog(v) {\n return Math.pow(10, v);\n}\n\nfunction isValidCategory(v) {\n return v !== null && v !== undefined;\n}\n\n/**\n * Define the conversion functions for an axis data is used in 5 ways:\n *\n * d: data, in whatever form it's provided\n * c: calcdata: turned into numbers, but not linearized\n * l: linearized - same as c except for log axes (and other nonlinear\n * mappings later?) this is used when we need to know if it's\n * *possible* to show some data on this axis, without caring about\n * the current range\n * p: pixel value - mapped to the screen with current size and zoom\n * r: ranges, tick0, and annotation positions match one of the above\n * but are handled differently for different types:\n * - linear and date: data format (d)\n * - category: calcdata format (c), and will stay that way because\n * the data format has no continuous mapping\n * - log: linearized (l) format\n * TODO: in v3.0 we plan to change it to data format. At that point\n * shapes will work the same way as ranges, tick0, and annotations\n * so they can use this conversion too.\n *\n * Creates/updates these conversion functions, and a few more utilities\n * like cleanRange, and makeCalcdata\n *\n * also clears the autotick constraints ._minDtick, ._forceTick0\n */\nmodule.exports = function setConvert(ax, fullLayout) {\n fullLayout = fullLayout || {};\n\n var axId = (ax._id || 'x');\n var axLetter = axId.charAt(0);\n\n function toLog(v, clip) {\n if(v > 0) return Math.log(v) / Math.LN10;\n\n else if(v <= 0 && clip && ax.range && ax.range.length === 2) {\n // clip NaN (ie past negative infinity) to LOG_CLIP axis\n // length past the negative edge\n var r0 = ax.range[0];\n var r1 = ax.range[1];\n return 0.5 * (r0 + r1 - 2 * LOG_CLIP * Math.abs(r0 - r1));\n } else return BADNUM;\n }\n\n /*\n * wrapped dateTime2ms that:\n * - accepts ms numbers for backward compatibility\n * - inserts a dummy arg so calendar is the 3rd arg (see notes below).\n * - defaults to ax.calendar\n */\n function dt2ms(v, _, calendar, opts) {\n if((opts || {}).msUTC && isNumeric(v)) {\n // For now it is only used\n // to fix bar length in milliseconds & gl3d ticks\n // It could be applied in other places in v3\n return +v;\n }\n\n // NOTE: Changed this behavior: previously we took any numeric value\n // to be a ms, even if it was a string that could be a bare year.\n // Now we convert it as a date if at all possible, and only try\n // as (local) ms if that fails.\n var ms = dateTime2ms(v, calendar || ax.calendar);\n if(ms === BADNUM) {\n if(isNumeric(v)) {\n v = +v;\n // keep track of tenths of ms, that `new Date` will drop\n // same logic as in Lib.ms2DateTime\n var msecTenths = Math.floor(Lib.mod(v + 0.05, 1) * 10);\n var msRounded = Math.round(v - msecTenths / 10);\n ms = dateTime2ms(new Date(msRounded)) + msecTenths / 10;\n } else return BADNUM;\n }\n return ms;\n }\n\n // wrapped ms2DateTime to insert default ax.calendar\n function ms2dt(v, r, calendar) {\n return ms2DateTime(v, r, calendar || ax.calendar);\n }\n\n function getCategoryName(v) {\n return ax._categories[Math.round(v)];\n }\n\n /*\n * setCategoryIndex: return the index of category v,\n * inserting it in the list if it's not already there\n *\n * this will enter the categories in the order it\n * encounters them, ie all the categories from the\n * first data set, then all the ones from the second\n * that aren't in the first etc.\n *\n * it is assumed that this function is being invoked in the\n * already sorted category order; otherwise there would be\n * a disconnect between the array and the index returned\n */\n function setCategoryIndex(v) {\n if(isValidCategory(v)) {\n if(ax._categoriesMap === undefined) {\n ax._categoriesMap = {};\n }\n\n if(ax._categoriesMap[v] !== undefined) {\n return ax._categoriesMap[v];\n } else {\n ax._categories.push(typeof v === 'number' ? String(v) : v);\n\n var curLength = ax._categories.length - 1;\n ax._categoriesMap[v] = curLength;\n\n return curLength;\n }\n }\n return BADNUM;\n }\n\n function setMultiCategoryIndex(arrayIn, len) {\n var arrayOut = new Array(len);\n\n for(var i = 0; i < len; i++) {\n var v0 = (arrayIn[0] || [])[i];\n var v1 = (arrayIn[1] || [])[i];\n arrayOut[i] = getCategoryIndex([v0, v1]);\n }\n\n return arrayOut;\n }\n\n function getCategoryIndex(v) {\n if(ax._categoriesMap) {\n return ax._categoriesMap[v];\n }\n }\n\n function getCategoryPosition(v) {\n // d2l/d2c variant that that won't add categories but will also\n // allow numbers to be mapped to the linearized axis positions\n var index = getCategoryIndex(v);\n if(index !== undefined) return index;\n if(isNumeric(v)) return +v;\n }\n\n function getRangePosition(v) {\n return isNumeric(v) ? +v : getCategoryIndex(v);\n }\n\n // include 2 fractional digits on pixel, for PDF zooming etc\n function _l2p(v, m, b) { return d3.round(b + m * v, 2); }\n\n function _p2l(px, m, b) { return (px - b) / m; }\n\n var l2p = function l2p(v) {\n if(!isNumeric(v)) return BADNUM;\n return _l2p(v, ax._m, ax._b);\n };\n\n var p2l = function(px) {\n return _p2l(px, ax._m, ax._b);\n };\n\n if(ax.rangebreaks) {\n var isY = axLetter === 'y';\n\n l2p = function(v) {\n if(!isNumeric(v)) return BADNUM;\n var len = ax._rangebreaks.length;\n if(!len) return _l2p(v, ax._m, ax._b);\n\n var flip = isY;\n if(ax.range[0] > ax.range[1]) flip = !flip;\n var signAx = flip ? -1 : 1;\n var pos = signAx * v;\n\n var q = 0;\n for(var i = 0; i < len; i++) {\n var min = signAx * ax._rangebreaks[i].min;\n var max = signAx * ax._rangebreaks[i].max;\n\n if(pos < min) break;\n if(pos > max) q = i + 1;\n else {\n // when falls into break, pick 'closest' offset\n q = pos < (min + max) / 2 ? i : i + 1;\n break;\n }\n }\n var b2 = ax._B[q] || 0;\n if(!isFinite(b2)) return 0; // avoid NaN translate e.g. in positionLabels if one keep zooming exactly into a break\n return _l2p(v, ax._m2, b2);\n };\n\n p2l = function(px) {\n var len = ax._rangebreaks.length;\n if(!len) return _p2l(px, ax._m, ax._b);\n\n var q = 0;\n for(var i = 0; i < len; i++) {\n if(px < ax._rangebreaks[i].pmin) break;\n if(px > ax._rangebreaks[i].pmax) q = i + 1;\n }\n return _p2l(px, ax._m2, ax._B[q]);\n };\n }\n\n // conversions among c/l/p are fairly simple - do them together for all axis types\n ax.c2l = (ax.type === 'log') ? toLog : ensureNumber;\n ax.l2c = (ax.type === 'log') ? fromLog : ensureNumber;\n\n ax.l2p = l2p;\n ax.p2l = p2l;\n\n ax.c2p = (ax.type === 'log') ? function(v, clip) { return l2p(toLog(v, clip)); } : l2p;\n ax.p2c = (ax.type === 'log') ? function(px) { return fromLog(p2l(px)); } : p2l;\n\n /*\n * now type-specific conversions for **ALL** other combinations\n * they're all written out, instead of being combinations of each other, for\n * both clarity and speed.\n */\n if(['linear', '-'].indexOf(ax.type) !== -1) {\n // all are data vals, but d and r need cleaning\n ax.d2r = ax.r2d = ax.d2c = ax.r2c = ax.d2l = ax.r2l = cleanNumber;\n ax.c2d = ax.c2r = ax.l2d = ax.l2r = ensureNumber;\n\n ax.d2p = ax.r2p = function(v) { return ax.l2p(cleanNumber(v)); };\n ax.p2d = ax.p2r = p2l;\n\n ax.cleanPos = ensureNumber;\n } else if(ax.type === 'log') {\n // d and c are data vals, r and l are logged (but d and r need cleaning)\n ax.d2r = ax.d2l = function(v, clip) { return toLog(cleanNumber(v), clip); };\n ax.r2d = ax.r2c = function(v) { return fromLog(cleanNumber(v)); };\n\n ax.d2c = ax.r2l = cleanNumber;\n ax.c2d = ax.l2r = ensureNumber;\n\n ax.c2r = toLog;\n ax.l2d = fromLog;\n\n ax.d2p = function(v, clip) { return ax.l2p(ax.d2r(v, clip)); };\n ax.p2d = function(px) { return fromLog(p2l(px)); };\n\n ax.r2p = function(v) { return ax.l2p(cleanNumber(v)); };\n ax.p2r = p2l;\n\n ax.cleanPos = ensureNumber;\n } else if(ax.type === 'date') {\n // r and d are date strings, l and c are ms\n\n /*\n * Any of these functions with r and d on either side, calendar is the\n * **3rd** argument. log has reserved the second argument.\n *\n * Unless you need the special behavior of the second arg (ms2DateTime\n * uses this to limit precision, toLog uses true to clip negatives\n * to offscreen low rather than undefined), it's safe to pass 0.\n */\n ax.d2r = ax.r2d = Lib.identity;\n\n ax.d2c = ax.r2c = ax.d2l = ax.r2l = dt2ms;\n ax.c2d = ax.c2r = ax.l2d = ax.l2r = ms2dt;\n\n ax.d2p = ax.r2p = function(v, _, calendar) { return ax.l2p(dt2ms(v, 0, calendar)); };\n ax.p2d = ax.p2r = function(px, r, calendar) { return ms2dt(p2l(px), r, calendar); };\n\n ax.cleanPos = function(v) { return Lib.cleanDate(v, BADNUM, ax.calendar); };\n } else if(ax.type === 'category') {\n // d is categories (string)\n // c and l are indices (numbers)\n // r is categories or numbers\n\n ax.d2c = ax.d2l = setCategoryIndex;\n ax.r2d = ax.c2d = ax.l2d = getCategoryName;\n\n ax.d2r = ax.d2l_noadd = getCategoryPosition;\n\n ax.r2c = function(v) {\n var index = getRangePosition(v);\n return index !== undefined ? index : ax.fraction2r(0.5);\n };\n\n ax.l2r = ax.c2r = ensureNumber;\n ax.r2l = getRangePosition;\n\n ax.d2p = function(v) { return ax.l2p(ax.r2c(v)); };\n ax.p2d = function(px) { return getCategoryName(p2l(px)); };\n ax.r2p = ax.d2p;\n ax.p2r = p2l;\n\n ax.cleanPos = function(v) {\n if(typeof v === 'string' && v !== '') return v;\n return ensureNumber(v);\n };\n } else if(ax.type === 'multicategory') {\n // N.B. multicategory axes don't define d2c and d2l,\n // as 'data-to-calcdata' conversion needs to take into\n // account all data array items as in ax.makeCalcdata.\n\n ax.r2d = ax.c2d = ax.l2d = getCategoryName;\n ax.d2r = ax.d2l_noadd = getCategoryPosition;\n\n ax.r2c = function(v) {\n var index = getCategoryPosition(v);\n return index !== undefined ? index : ax.fraction2r(0.5);\n };\n\n ax.r2c_just_indices = getCategoryIndex;\n\n ax.l2r = ax.c2r = ensureNumber;\n ax.r2l = getCategoryPosition;\n\n ax.d2p = function(v) { return ax.l2p(ax.r2c(v)); };\n ax.p2d = function(px) { return getCategoryName(p2l(px)); };\n ax.r2p = ax.d2p;\n ax.p2r = p2l;\n\n ax.cleanPos = function(v) {\n if(Array.isArray(v) || (typeof v === 'string' && v !== '')) return v;\n return ensureNumber(v);\n };\n\n ax.setupMultiCategory = function(fullData) {\n var traceIndices = ax._traceIndices;\n var i, j;\n\n var group = ax._matchGroup;\n if(group && ax._categories.length === 0) {\n for(var axId2 in group) {\n if(axId2 !== axId) {\n var ax2 = fullLayout[axisIds.id2name(axId2)];\n traceIndices = traceIndices.concat(ax2._traceIndices);\n }\n }\n }\n\n // [ [cnt, {$cat: index}], for 1,2 ]\n var seen = [[0, {}], [0, {}]];\n // [ [arrayIn[0][i], arrayIn[1][i]], for i .. N ]\n var list = [];\n\n for(i = 0; i < traceIndices.length; i++) {\n var trace = fullData[traceIndices[i]];\n\n if(axLetter in trace) {\n var arrayIn = trace[axLetter];\n var len = trace._length || Lib.minRowLength(arrayIn);\n\n if(isArrayOrTypedArray(arrayIn[0]) && isArrayOrTypedArray(arrayIn[1])) {\n for(j = 0; j < len; j++) {\n var v0 = arrayIn[0][j];\n var v1 = arrayIn[1][j];\n\n if(isValidCategory(v0) && isValidCategory(v1)) {\n list.push([v0, v1]);\n\n if(!(v0 in seen[0][1])) {\n seen[0][1][v0] = seen[0][0]++;\n }\n if(!(v1 in seen[1][1])) {\n seen[1][1][v1] = seen[1][0]++;\n }\n }\n }\n }\n }\n }\n\n list.sort(function(a, b) {\n var ind0 = seen[0][1];\n var d = ind0[a[0]] - ind0[b[0]];\n if(d) return d;\n\n var ind1 = seen[1][1];\n return ind1[a[1]] - ind1[b[1]];\n });\n\n for(i = 0; i < list.length; i++) {\n setCategoryIndex(list[i]);\n }\n };\n }\n\n // find the range value at the specified (linear) fraction of the axis\n ax.fraction2r = function(v) {\n var rl0 = ax.r2l(ax.range[0]);\n var rl1 = ax.r2l(ax.range[1]);\n return ax.l2r(rl0 + v * (rl1 - rl0));\n };\n\n // find the fraction of the range at the specified range value\n ax.r2fraction = function(v) {\n var rl0 = ax.r2l(ax.range[0]);\n var rl1 = ax.r2l(ax.range[1]);\n return (ax.r2l(v) - rl0) / (rl1 - rl0);\n };\n\n /*\n * cleanRange: make sure range is a couplet of valid & distinct values\n * keep numbers away from the limits of floating point numbers,\n * and dates away from the ends of our date system (+/- 9999 years)\n *\n * optional param rangeAttr: operate on a different attribute, like\n * ax._r, rather than ax.range\n */\n ax.cleanRange = function(rangeAttr, opts) {\n if(!opts) opts = {};\n if(!rangeAttr) rangeAttr = 'range';\n\n var range = Lib.nestedProperty(ax, rangeAttr).get();\n var i, dflt;\n\n if(ax.type === 'date') dflt = Lib.dfltRange(ax.calendar);\n else if(axLetter === 'y') dflt = constants.DFLTRANGEY;\n else if(ax._name === 'realaxis') dflt = [0, 1];\n else dflt = opts.dfltRange || constants.DFLTRANGEX;\n\n // make sure we don't later mutate the defaults\n dflt = dflt.slice();\n\n if(ax.rangemode === 'tozero' || ax.rangemode === 'nonnegative') {\n dflt[0] = 0;\n }\n\n if(!range || range.length !== 2) {\n Lib.nestedProperty(ax, rangeAttr).set(dflt);\n return;\n }\n\n if(ax.type === 'date' && !ax.autorange) {\n // check if milliseconds or js date objects are provided for range\n // and convert to date strings\n range[0] = Lib.cleanDate(range[0], BADNUM, ax.calendar);\n range[1] = Lib.cleanDate(range[1], BADNUM, ax.calendar);\n }\n\n for(i = 0; i < 2; i++) {\n if(ax.type === 'date') {\n if(!Lib.isDateTime(range[i], ax.calendar)) {\n ax[rangeAttr] = dflt;\n break;\n }\n\n if(ax.r2l(range[0]) === ax.r2l(range[1])) {\n // split by +/- 1 second\n var linCenter = Lib.constrain(ax.r2l(range[0]),\n Lib.MIN_MS + 1000, Lib.MAX_MS - 1000);\n range[0] = ax.l2r(linCenter - 1000);\n range[1] = ax.l2r(linCenter + 1000);\n break;\n }\n } else {\n if(!isNumeric(range[i])) {\n if(isNumeric(range[1 - i])) {\n range[i] = range[1 - i] * (i ? 10 : 0.1);\n } else {\n ax[rangeAttr] = dflt;\n break;\n }\n }\n\n if(range[i] < -FP_SAFE) range[i] = -FP_SAFE;\n else if(range[i] > FP_SAFE) range[i] = FP_SAFE;\n\n if(range[0] === range[1]) {\n // somewhat arbitrary: split by 1 or 1ppm, whichever is bigger\n var inc = Math.max(1, Math.abs(range[0] * 1e-6));\n range[0] -= inc;\n range[1] += inc;\n }\n }\n }\n };\n\n // set scaling to pixels\n ax.setScale = function(usePrivateRange) {\n var gs = fullLayout._size;\n\n // make sure we have a domain (pull it in from the axis\n // this one is overlaying if necessary)\n if(ax.overlaying) {\n var ax2 = axisIds.getFromId({ _fullLayout: fullLayout }, ax.overlaying);\n ax.domain = ax2.domain;\n }\n\n // While transitions are occurring, we get a double-transform\n // issue if we transform the drawn layer *and* use the new axis range to\n // draw the data. This allows us to construct setConvert using the pre-\n // interaction values of the range:\n var rangeAttr = (usePrivateRange && ax._r) ? '_r' : 'range';\n var calendar = ax.calendar;\n ax.cleanRange(rangeAttr);\n\n var rl0 = ax.r2l(ax[rangeAttr][0], calendar);\n var rl1 = ax.r2l(ax[rangeAttr][1], calendar);\n\n var isY = axLetter === 'y';\n if(isY) {\n ax._offset = gs.t + (1 - ax.domain[1]) * gs.h;\n ax._length = gs.h * (ax.domain[1] - ax.domain[0]);\n ax._m = ax._length / (rl0 - rl1);\n ax._b = -ax._m * rl1;\n } else {\n ax._offset = gs.l + ax.domain[0] * gs.w;\n ax._length = gs.w * (ax.domain[1] - ax.domain[0]);\n ax._m = ax._length / (rl1 - rl0);\n ax._b = -ax._m * rl0;\n }\n\n // set of \"N\" disjoint rangebreaks inside the range\n ax._rangebreaks = [];\n // length of these rangebreaks in value space - negative on reversed axes\n ax._lBreaks = 0;\n // l2p slope (same for all intervals)\n ax._m2 = 0;\n // set of l2p offsets (one for each of the (N+1) piecewise intervals)\n ax._B = [];\n\n if(ax.rangebreaks) {\n var i, brk;\n\n ax._rangebreaks = ax.locateBreaks(\n Math.min(rl0, rl1),\n Math.max(rl0, rl1)\n );\n\n if(ax._rangebreaks.length) {\n for(i = 0; i < ax._rangebreaks.length; i++) {\n brk = ax._rangebreaks[i];\n ax._lBreaks += Math.abs(brk.max - brk.min);\n }\n\n var flip = isY;\n if(rl0 > rl1) flip = !flip;\n if(flip) ax._rangebreaks.reverse();\n var sign = flip ? -1 : 1;\n\n ax._m2 = sign * ax._length / (Math.abs(rl1 - rl0) - ax._lBreaks);\n ax._B.push(-ax._m2 * (isY ? rl1 : rl0));\n for(i = 0; i < ax._rangebreaks.length; i++) {\n brk = ax._rangebreaks[i];\n ax._B.push(\n ax._B[ax._B.length - 1] -\n sign * ax._m2 * (brk.max - brk.min)\n );\n }\n\n // fill pixel (i.e. 'p') min/max here,\n // to not have to loop through the _rangebreaks twice during `p2l`\n for(i = 0; i < ax._rangebreaks.length; i++) {\n brk = ax._rangebreaks[i];\n brk.pmin = l2p(brk.min);\n brk.pmax = l2p(brk.max);\n }\n }\n }\n\n if(!isFinite(ax._m) || !isFinite(ax._b) || ax._length < 0) {\n fullLayout._replotting = false;\n throw new Error('Something went wrong with axis scaling');\n }\n };\n\n ax.maskBreaks = function(v) {\n var rangebreaksIn = ax.rangebreaks || [];\n var bnds, b0, b1, vb, vDate;\n\n\n if(!rangebreaksIn._cachedPatterns) {\n rangebreaksIn._cachedPatterns = rangebreaksIn.map(function(brk) {\n return brk.enabled && brk.bounds ? Lib.simpleMap(brk.bounds, brk.pattern ?\n cleanNumber :\n ax.d2c // case of pattern: ''\n ) : null;\n });\n }\n if(!rangebreaksIn._cachedValues) {\n rangebreaksIn._cachedValues = rangebreaksIn.map(function(brk) {\n return brk.enabled && brk.values ? Lib.simpleMap(brk.values, ax.d2c).sort(Lib.sorterAsc) : null;\n });\n }\n\n\n for(var i = 0; i < rangebreaksIn.length; i++) {\n var brk = rangebreaksIn[i];\n\n if(brk.enabled) {\n if(brk.bounds) {\n var pattern = brk.pattern;\n bnds = rangebreaksIn._cachedPatterns[i];\n b0 = bnds[0];\n b1 = bnds[1];\n\n switch(pattern) {\n case WEEKDAY_PATTERN:\n vDate = new Date(v);\n vb = vDate.getUTCDay();\n\n if(b0 > b1) {\n b1 += 7;\n if(vb < b0) vb += 7;\n }\n\n break;\n case HOUR_PATTERN:\n vDate = new Date(v);\n var hours = vDate.getUTCHours();\n var minutes = vDate.getUTCMinutes();\n var seconds = vDate.getUTCSeconds();\n var milliseconds = vDate.getUTCMilliseconds();\n\n vb = hours + (\n minutes / 60 +\n seconds / 3600 +\n milliseconds / 3600000\n );\n\n if(b0 > b1) {\n b1 += 24;\n if(vb < b0) vb += 24;\n }\n\n break;\n case '':\n // N.B. should work on date axes as well!\n // e.g. { bounds: ['2020-01-04', '2020-01-05 23:59'] }\n // TODO should work with reversed-range axes\n vb = v;\n break;\n }\n\n if(vb >= b0 && vb < b1) return BADNUM;\n } else {\n var vals = rangebreaksIn._cachedValues[i];\n for(var j = 0; j < vals.length; j++) {\n b0 = vals[j];\n b1 = b0 + brk.dvalue;\n if(v >= b0 && v < b1) return BADNUM;\n }\n }\n }\n }\n return v;\n };\n\n ax.locateBreaks = function(r0, r1) {\n var i, bnds, b0, b1;\n\n var rangebreaksOut = [];\n if(!ax.rangebreaks) return rangebreaksOut;\n\n var rangebreaksIn = ax.rangebreaks.slice().sort(function(a, b) {\n if(a.pattern === WEEKDAY_PATTERN && b.pattern === HOUR_PATTERN) return -1;\n if(b.pattern === WEEKDAY_PATTERN && a.pattern === HOUR_PATTERN) return 1;\n return 0;\n });\n\n var addBreak = function(min, max) {\n min = Lib.constrain(min, r0, r1);\n max = Lib.constrain(max, r0, r1);\n if(min === max) return;\n\n var isNewBreak = true;\n for(var j = 0; j < rangebreaksOut.length; j++) {\n var brkj = rangebreaksOut[j];\n if(min < brkj.max && max >= brkj.min) {\n if(min < brkj.min) {\n brkj.min = min;\n }\n if(max > brkj.max) {\n brkj.max = max;\n }\n isNewBreak = false;\n }\n }\n if(isNewBreak) {\n rangebreaksOut.push({min: min, max: max});\n }\n };\n\n for(i = 0; i < rangebreaksIn.length; i++) {\n var brk = rangebreaksIn[i];\n\n if(brk.enabled) {\n if(brk.bounds) {\n var t0 = r0;\n var t1 = r1;\n if(brk.pattern) {\n // to remove decimal (most often found in auto ranges)\n t0 = Math.floor(t0);\n }\n\n bnds = Lib.simpleMap(brk.bounds, brk.pattern ? cleanNumber : ax.r2l);\n b0 = bnds[0];\n b1 = bnds[1];\n\n // r0 value as date\n var t0Date = new Date(t0);\n // r0 value for break pattern\n var bndDelta;\n // step in ms between rangebreaks\n var step;\n\n switch(brk.pattern) {\n case WEEKDAY_PATTERN:\n step = ONEWEEK;\n\n bndDelta = (\n (b1 < b0 ? 7 : 0) +\n (b1 - b0)\n ) * ONEDAY;\n\n t0 += b0 * ONEDAY - (\n t0Date.getUTCDay() * ONEDAY +\n t0Date.getUTCHours() * ONEHOUR +\n t0Date.getUTCMinutes() * ONEMIN +\n t0Date.getUTCSeconds() * ONESEC +\n t0Date.getUTCMilliseconds()\n );\n break;\n case HOUR_PATTERN:\n step = ONEDAY;\n\n bndDelta = (\n (b1 < b0 ? 24 : 0) +\n (b1 - b0)\n ) * ONEHOUR;\n\n t0 += b0 * ONEHOUR - (\n t0Date.getUTCHours() * ONEHOUR +\n t0Date.getUTCMinutes() * ONEMIN +\n t0Date.getUTCSeconds() * ONESEC +\n t0Date.getUTCMilliseconds()\n );\n break;\n default:\n t0 = Math.min(bnds[0], bnds[1]);\n t1 = Math.max(bnds[0], bnds[1]);\n step = t1 - t0;\n bndDelta = step;\n }\n\n for(var t = t0; t < t1; t += step) {\n addBreak(t, t + bndDelta);\n }\n } else {\n var vals = Lib.simpleMap(brk.values, ax.d2c);\n for(var j = 0; j < vals.length; j++) {\n b0 = vals[j];\n b1 = b0 + brk.dvalue;\n addBreak(b0, b1);\n }\n }\n }\n }\n\n rangebreaksOut.sort(function(a, b) { return a.min - b.min; });\n\n return rangebreaksOut;\n };\n\n // makeCalcdata: takes an x or y array and converts it\n // to a position on the axis object \"ax\"\n // inputs:\n // trace - a data object from gd.data\n // axLetter - a string, either 'x' or 'y', for which item\n // to convert (TODO: is this now always the same as\n // the first letter of ax._id?)\n // in case the expected data isn't there, make a list of\n // integers based on the opposite data\n ax.makeCalcdata = function(trace, axLetter, opts) {\n var arrayIn, arrayOut, i, len;\n\n var axType = ax.type;\n var cal = axType === 'date' && trace[axLetter + 'calendar'];\n\n if(axLetter in trace) {\n arrayIn = trace[axLetter];\n len = trace._length || Lib.minRowLength(arrayIn);\n\n if(Lib.isTypedArray(arrayIn) && (axType === 'linear' || axType === 'log')) {\n if(len === arrayIn.length) {\n return arrayIn;\n } else if(arrayIn.subarray) {\n return arrayIn.subarray(0, len);\n }\n }\n\n if(axType === 'multicategory') {\n return setMultiCategoryIndex(arrayIn, len);\n }\n\n arrayOut = new Array(len);\n for(i = 0; i < len; i++) {\n arrayOut[i] = ax.d2c(arrayIn[i], 0, cal, opts);\n }\n } else {\n var v0 = ((axLetter + '0') in trace) ? ax.d2c(trace[axLetter + '0'], 0, cal) : 0;\n var dv = (trace['d' + axLetter]) ? Number(trace['d' + axLetter]) : 1;\n\n // the opposing data, for size if we have x and dx etc\n arrayIn = trace[{x: 'y', y: 'x'}[axLetter]];\n len = trace._length || arrayIn.length;\n arrayOut = new Array(len);\n\n for(i = 0; i < len; i++) {\n arrayOut[i] = v0 + i * dv;\n }\n }\n\n // mask (i.e. set to BADNUM) coords that fall inside rangebreaks\n if(ax.rangebreaks) {\n for(i = 0; i < len; i++) {\n arrayOut[i] = ax.maskBreaks(arrayOut[i]);\n }\n }\n\n return arrayOut;\n };\n\n ax.isValidRange = function(range) {\n return (\n Array.isArray(range) &&\n range.length === 2 &&\n isNumeric(ax.r2l(range[0])) &&\n isNumeric(ax.r2l(range[1]))\n );\n };\n\n ax.isPtWithinRange = function(d, calendar) {\n var coord = ax.c2l(d[axLetter], null, calendar);\n var r0 = ax.r2l(ax.range[0]);\n var r1 = ax.r2l(ax.range[1]);\n\n if(r0 < r1) {\n return r0 <= coord && coord <= r1;\n } else {\n // Reversed axis case.\n return r1 <= coord && coord <= r0;\n }\n };\n\n ax._emptyCategories = function() {\n ax._categories = [];\n ax._categoriesMap = {};\n };\n\n // should skip if not category nor multicategory\n ax.clearCalc = function() {\n var group = ax._matchGroup;\n if(group) {\n var categories = null;\n var categoriesMap = null;\n\n for(var axId2 in group) {\n var ax2 = fullLayout[axisIds.id2name(axId2)];\n if(ax2._categories) {\n categories = ax2._categories;\n categoriesMap = ax2._categoriesMap;\n break;\n }\n }\n\n if(categories && categoriesMap) {\n ax._categories = categories;\n ax._categoriesMap = categoriesMap;\n } else {\n ax._emptyCategories();\n }\n } else {\n ax._emptyCategories();\n }\n\n if(ax._initialCategories) {\n for(var j = 0; j < ax._initialCategories.length; j++) {\n setCategoryIndex(ax._initialCategories[j]);\n }\n }\n };\n\n // sort the axis (and all the matching ones) by _initialCategories\n // returns the indices of the traces affected by the reordering\n ax.sortByInitialCategories = function() {\n var affectedTraces = [];\n\n ax._emptyCategories();\n\n if(ax._initialCategories) {\n for(var j = 0; j < ax._initialCategories.length; j++) {\n setCategoryIndex(ax._initialCategories[j]);\n }\n }\n\n affectedTraces = affectedTraces.concat(ax._traceIndices);\n\n // Propagate to matching axes\n var group = ax._matchGroup;\n for(var axId2 in group) {\n if(axId === axId2) continue;\n var ax2 = fullLayout[axisIds.id2name(axId2)];\n ax2._categories = ax._categories;\n ax2._categoriesMap = ax._categoriesMap;\n affectedTraces = affectedTraces.concat(ax2._traceIndices);\n }\n return affectedTraces;\n };\n\n // Propagate localization into the axis so that\n // methods in Axes can use it w/o having to pass fullLayout\n // Default (non-d3) number formatting uses separators directly\n // dates and d3-formatted numbers use the d3 locale\n // Fall back on default format for dummy axes that don't care about formatting\n var locale = fullLayout._d3locale;\n if(ax.type === 'date') {\n ax._dateFormat = locale ? locale.timeFormat : utcFormat;\n ax._extraFormat = fullLayout._extraFormat;\n }\n // occasionally we need _numFormat to pass through\n // even though it won't be needed by this axis\n ax._separators = fullLayout.separators;\n ax._numFormat = locale ? locale.numberFormat : numberFormat;\n\n // and for bar charts and box plots: reset forced minimum tick spacing\n delete ax._minDtick;\n delete ax._forceTick0;\n};\n\n},{\"../../constants/numerical\":479,\"../../lib\":503,\"./axis_ids\":558,\"./constants\":561,\"@plotly/d3\":58,\"d3-time-format\":120,\"fast-isnumeric\":190}],577:[function(_dereq_,module,exports){\n'use strict';\n\n/*\n * Attributes 'showexponent', 'showtickprefix' and 'showticksuffix'\n * share values.\n *\n * If only 1 attribute is set,\n * the remaining attributes inherit that value.\n *\n * If 2 attributes are set to the same value,\n * the remaining attribute inherits that value.\n *\n * If 2 attributes are set to different values,\n * the remaining is set to its dflt value.\n *\n */\nmodule.exports = function getShowAttrDflt(containerIn) {\n var showAttrsAll = ['showexponent', 'showtickprefix', 'showticksuffix'];\n var showAttrs = showAttrsAll.filter(function(a) {\n return containerIn[a] !== undefined;\n });\n var sameVal = function(a) {\n return containerIn[a] === containerIn[showAttrs[0]];\n };\n\n if(showAttrs.every(sameVal) || showAttrs.length === 1) {\n return containerIn[showAttrs[0]];\n }\n};\n\n},{}],578:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar contrast = _dereq_('../../components/color').contrast;\nvar layoutAttributes = _dereq_('./layout_attributes');\nvar getShowAttrDflt = _dereq_('./show_dflt');\nvar handleArrayContainerDefaults = _dereq_('../array_container_defaults');\n\nmodule.exports = function handleTickLabelDefaults(containerIn, containerOut, coerce, axType, options) {\n if(!options) options = {};\n var showAttrDflt = getShowAttrDflt(containerIn);\n\n var showTickLabels = coerce('showticklabels');\n if(showTickLabels) {\n var font = options.font || {};\n var contColor = containerOut.color;\n var position = containerOut.ticklabelposition || '';\n var dfltFontColor = position.indexOf('inside') !== -1 ?\n contrast(options.bgColor) :\n // as with titlefont.color, inherit axis.color only if one was\n // explicitly provided\n (contColor && contColor !== layoutAttributes.color.dflt) ?\n contColor : font.color;\n\n Lib.coerceFont(coerce, 'tickfont', {\n family: font.family,\n size: font.size,\n color: dfltFontColor\n });\n\n if(!options.noAng) coerce('tickangle');\n\n if(axType !== 'category') {\n var tickFormat = coerce('tickformat');\n\n handleArrayContainerDefaults(containerIn, containerOut, {\n name: 'tickformatstops',\n inclusionAttr: 'enabled',\n handleItemDefaults: tickformatstopDefaults\n });\n if(!containerOut.tickformatstops.length) {\n delete containerOut.tickformatstops;\n }\n\n if(!options.noExp && !tickFormat && axType !== 'date') {\n coerce('showexponent', showAttrDflt);\n coerce('exponentformat');\n coerce('minexponent');\n coerce('separatethousands');\n }\n }\n }\n};\n\nfunction tickformatstopDefaults(valueIn, valueOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(valueIn, valueOut, layoutAttributes.tickformatstops, attr, dflt);\n }\n\n var enabled = coerce('enabled');\n if(enabled) {\n coerce('dtickrange');\n coerce('value');\n }\n}\n\n},{\"../../components/color\":366,\"../../lib\":503,\"../array_container_defaults\":549,\"./layout_attributes\":569,\"./show_dflt\":577}],579:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar layoutAttributes = _dereq_('./layout_attributes');\n\n\n/**\n * options: inherits outerTicks from axes.handleAxisDefaults\n */\nmodule.exports = function handleTickMarkDefaults(containerIn, containerOut, coerce, options) {\n var tickLen = Lib.coerce2(containerIn, containerOut, layoutAttributes, 'ticklen');\n var tickWidth = Lib.coerce2(containerIn, containerOut, layoutAttributes, 'tickwidth');\n var tickColor = Lib.coerce2(containerIn, containerOut, layoutAttributes, 'tickcolor', containerOut.color);\n var showTicks = coerce('ticks', (options.outerTicks || tickLen || tickWidth || tickColor) ? 'outside' : '');\n\n if(!showTicks) {\n delete containerOut.ticklen;\n delete containerOut.tickwidth;\n delete containerOut.tickcolor;\n }\n};\n\n},{\"../../lib\":503,\"./layout_attributes\":569}],580:[function(_dereq_,module,exports){\n'use strict';\n\nvar cleanTicks = _dereq_('./clean_ticks');\nvar isArrayOrTypedArray = _dereq_('../../lib').isArrayOrTypedArray;\n\nmodule.exports = function handleTickValueDefaults(containerIn, containerOut, coerce, axType) {\n function readInput(attr) {\n var v = containerIn[attr];\n return (\n v !== undefined\n ) ? v : (containerOut._template || {})[attr];\n }\n\n var _tick0 = readInput('tick0');\n var _dtick = readInput('dtick');\n var _tickvals = readInput('tickvals');\n\n var tickmodeDefault = isArrayOrTypedArray(_tickvals) ? 'array' :\n _dtick ? 'linear' :\n 'auto';\n var tickmode = coerce('tickmode', tickmodeDefault);\n\n if(tickmode === 'auto') coerce('nticks');\n else if(tickmode === 'linear') {\n // dtick is usually a positive number, but there are some\n // special strings available for log or date axes\n // tick0 also has special logic\n var dtick = containerOut.dtick = cleanTicks.dtick(\n _dtick, axType);\n containerOut.tick0 = cleanTicks.tick0(\n _tick0, axType, containerOut.calendar, dtick);\n } else if(axType !== 'multicategory') {\n var tickvals = coerce('tickvals');\n if(tickvals === undefined) containerOut.tickmode = 'auto';\n else coerce('ticktext');\n }\n};\n\n},{\"../../lib\":503,\"./clean_ticks\":560}],581:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar Drawing = _dereq_('../../components/drawing');\nvar Axes = _dereq_('./axes');\n\n/**\n * transitionAxes\n *\n * transition axes from one set of ranges to another, using a svg\n * transformations, similar to during panning.\n *\n * @param {DOM element | object} gd\n * @param {array} edits : array of 'edits', each item with\n * - plotinfo {object} subplot object\n * - xr0 {array} initial x-range\n * - xr1 {array} end x-range\n * - yr0 {array} initial y-range\n * - yr1 {array} end y-range\n * @param {object} transitionOpts\n * @param {function} makeOnCompleteCallback\n */\nmodule.exports = function transitionAxes(gd, edits, transitionOpts, makeOnCompleteCallback) {\n var fullLayout = gd._fullLayout;\n\n // special case for redraw:false Plotly.animate that relies on this\n // to update axis-referenced layout components\n if(edits.length === 0) {\n Axes.redrawComponents(gd);\n return;\n }\n\n function unsetSubplotTransform(subplot) {\n var xa = subplot.xaxis;\n var ya = subplot.yaxis;\n\n fullLayout._defs.select('#' + subplot.clipId + '> rect')\n .call(Drawing.setTranslate, 0, 0)\n .call(Drawing.setScale, 1, 1);\n\n subplot.plot\n .call(Drawing.setTranslate, xa._offset, ya._offset)\n .call(Drawing.setScale, 1, 1);\n\n var traceGroups = subplot.plot.selectAll('.scatterlayer .trace');\n\n // This is specifically directed at scatter traces, applying an inverse\n // scale to individual points to counteract the scale of the trace\n // as a whole:\n traceGroups.selectAll('.point')\n .call(Drawing.setPointGroupScale, 1, 1);\n traceGroups.selectAll('.textpoint')\n .call(Drawing.setTextPointsScale, 1, 1);\n traceGroups\n .call(Drawing.hideOutsideRangePoints, subplot);\n }\n\n function updateSubplot(edit, progress) {\n var plotinfo = edit.plotinfo;\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n var xlen = xa._length;\n var ylen = ya._length;\n var editX = !!edit.xr1;\n var editY = !!edit.yr1;\n var viewBox = [];\n\n if(editX) {\n var xr0 = Lib.simpleMap(edit.xr0, xa.r2l);\n var xr1 = Lib.simpleMap(edit.xr1, xa.r2l);\n var dx0 = xr0[1] - xr0[0];\n var dx1 = xr1[1] - xr1[0];\n viewBox[0] = (xr0[0] * (1 - progress) + progress * xr1[0] - xr0[0]) / (xr0[1] - xr0[0]) * xlen;\n viewBox[2] = xlen * ((1 - progress) + progress * dx1 / dx0);\n xa.range[0] = xa.l2r(xr0[0] * (1 - progress) + progress * xr1[0]);\n xa.range[1] = xa.l2r(xr0[1] * (1 - progress) + progress * xr1[1]);\n } else {\n viewBox[0] = 0;\n viewBox[2] = xlen;\n }\n\n if(editY) {\n var yr0 = Lib.simpleMap(edit.yr0, ya.r2l);\n var yr1 = Lib.simpleMap(edit.yr1, ya.r2l);\n var dy0 = yr0[1] - yr0[0];\n var dy1 = yr1[1] - yr1[0];\n viewBox[1] = (yr0[1] * (1 - progress) + progress * yr1[1] - yr0[1]) / (yr0[0] - yr0[1]) * ylen;\n viewBox[3] = ylen * ((1 - progress) + progress * dy1 / dy0);\n ya.range[0] = xa.l2r(yr0[0] * (1 - progress) + progress * yr1[0]);\n ya.range[1] = ya.l2r(yr0[1] * (1 - progress) + progress * yr1[1]);\n } else {\n viewBox[1] = 0;\n viewBox[3] = ylen;\n }\n\n Axes.drawOne(gd, xa, {skipTitle: true});\n Axes.drawOne(gd, ya, {skipTitle: true});\n Axes.redrawComponents(gd, [xa._id, ya._id]);\n\n var xScaleFactor = editX ? xlen / viewBox[2] : 1;\n var yScaleFactor = editY ? ylen / viewBox[3] : 1;\n var clipDx = editX ? viewBox[0] : 0;\n var clipDy = editY ? viewBox[1] : 0;\n var fracDx = editX ? (viewBox[0] / viewBox[2] * xlen) : 0;\n var fracDy = editY ? (viewBox[1] / viewBox[3] * ylen) : 0;\n var plotDx = xa._offset - fracDx;\n var plotDy = ya._offset - fracDy;\n\n plotinfo.clipRect\n .call(Drawing.setTranslate, clipDx, clipDy)\n .call(Drawing.setScale, 1 / xScaleFactor, 1 / yScaleFactor);\n\n plotinfo.plot\n .call(Drawing.setTranslate, plotDx, plotDy)\n .call(Drawing.setScale, xScaleFactor, yScaleFactor);\n\n // apply an inverse scale to individual points to counteract\n // the scale of the trace group.\n Drawing.setPointGroupScale(plotinfo.zoomScalePts, 1 / xScaleFactor, 1 / yScaleFactor);\n Drawing.setTextPointsScale(plotinfo.zoomScaleTxt, 1 / xScaleFactor, 1 / yScaleFactor);\n }\n\n var onComplete;\n if(makeOnCompleteCallback) {\n // This module makes the choice whether or not it notifies Plotly.transition\n // about completion:\n onComplete = makeOnCompleteCallback();\n }\n\n function transitionComplete() {\n var aobj = {};\n\n for(var i = 0; i < edits.length; i++) {\n var edit = edits[i];\n var xa = edit.plotinfo.xaxis;\n var ya = edit.plotinfo.yaxis;\n if(edit.xr1) aobj[xa._name + '.range'] = edit.xr1.slice();\n if(edit.yr1) aobj[ya._name + '.range'] = edit.yr1.slice();\n }\n\n // Signal that this transition has completed:\n onComplete && onComplete();\n\n return Registry.call('relayout', gd, aobj).then(function() {\n for(var i = 0; i < edits.length; i++) {\n unsetSubplotTransform(edits[i].plotinfo);\n }\n });\n }\n\n function transitionInterrupt() {\n var aobj = {};\n\n for(var i = 0; i < edits.length; i++) {\n var edit = edits[i];\n var xa = edit.plotinfo.xaxis;\n var ya = edit.plotinfo.yaxis;\n if(edit.xr0) aobj[xa._name + '.range'] = edit.xr0.slice();\n if(edit.yr0) aobj[ya._name + '.range'] = edit.yr0.slice();\n }\n\n return Registry.call('relayout', gd, aobj).then(function() {\n for(var i = 0; i < edits.length; i++) {\n unsetSubplotTransform(edits[i].plotinfo);\n }\n });\n }\n\n var t1, t2, raf;\n var easeFn = d3.ease(transitionOpts.easing);\n\n gd._transitionData._interruptCallbacks.push(function() {\n window.cancelAnimationFrame(raf);\n raf = null;\n return transitionInterrupt();\n });\n\n function doFrame() {\n t2 = Date.now();\n\n var tInterp = Math.min(1, (t2 - t1) / transitionOpts.duration);\n var progress = easeFn(tInterp);\n\n for(var i = 0; i < edits.length; i++) {\n updateSubplot(edits[i], progress);\n }\n\n if(t2 - t1 > transitionOpts.duration) {\n transitionComplete();\n raf = window.cancelAnimationFrame(doFrame);\n } else {\n raf = window.requestAnimationFrame(doFrame);\n }\n }\n\n t1 = Date.now();\n raf = window.requestAnimationFrame(doFrame);\n\n return Promise.resolve();\n};\n\n},{\"../../components/drawing\":388,\"../../lib\":503,\"../../registry\":638,\"./axes\":554,\"@plotly/d3\":58}],582:[function(_dereq_,module,exports){\n'use strict';\n\nvar traceIs = _dereq_('../../registry').traceIs;\nvar autoType = _dereq_('./axis_autotype');\n\n/*\n * data: the plot data to use in choosing auto type\n * name: axis object name (ie 'xaxis') if one should be stored\n */\nmodule.exports = function handleTypeDefaults(containerIn, containerOut, coerce, options) {\n coerce('autotypenumbers', options.autotypenumbersDflt);\n var axType = coerce('type', (options.splomStash || {}).type);\n\n if(axType === '-') {\n setAutoType(containerOut, options.data);\n\n if(containerOut.type === '-') {\n containerOut.type = 'linear';\n } else {\n // copy autoType back to input axis\n // note that if this object didn't exist\n // in the input layout, we have to put it in\n // this happens in the main supplyDefaults function\n containerIn.type = containerOut.type;\n }\n }\n};\n\nfunction setAutoType(ax, data) {\n // new logic: let people specify any type they want,\n // only autotype if type is '-'\n if(ax.type !== '-') return;\n\n var id = ax._id;\n var axLetter = id.charAt(0);\n var i;\n\n // support 3d\n if(id.indexOf('scene') !== -1) id = axLetter;\n\n var d0 = getFirstNonEmptyTrace(data, id, axLetter);\n if(!d0) return;\n\n // first check for histograms, as the count direction\n // should always default to a linear axis\n if(d0.type === 'histogram' &&\n axLetter === {v: 'y', h: 'x'}[d0.orientation || 'v']\n ) {\n ax.type = 'linear';\n return;\n }\n\n var calAttr = axLetter + 'calendar';\n var calendar = d0[calAttr];\n var opts = {noMultiCategory: !traceIs(d0, 'cartesian') || traceIs(d0, 'noMultiCategory')};\n\n // To not confuse 2D x/y used for per-box sample points for multicategory coordinates\n if(d0.type === 'box' && d0._hasPreCompStats &&\n axLetter === {h: 'x', v: 'y'}[d0.orientation || 'v']\n ) {\n opts.noMultiCategory = true;\n }\n\n opts.autotypenumbers = ax.autotypenumbers;\n\n // check all boxes on this x axis to see\n // if they're dates, numbers, or categories\n if(isBoxWithoutPositionCoords(d0, axLetter)) {\n var posLetter = getBoxPosLetter(d0);\n var boxPositions = [];\n\n for(i = 0; i < data.length; i++) {\n var trace = data[i];\n if(!traceIs(trace, 'box-violin') || (trace[axLetter + 'axis'] || axLetter) !== id) continue;\n\n if(trace[posLetter] !== undefined) boxPositions.push(trace[posLetter][0]);\n else if(trace.name !== undefined) boxPositions.push(trace.name);\n else boxPositions.push('text');\n\n if(trace[calAttr] !== calendar) calendar = undefined;\n }\n\n ax.type = autoType(boxPositions, calendar, opts);\n } else if(d0.type === 'splom') {\n var dimensions = d0.dimensions;\n var dim = dimensions[d0._axesDim[id]];\n if(dim.visible) ax.type = autoType(dim.values, calendar, opts);\n } else {\n ax.type = autoType(d0[axLetter] || [d0[axLetter + '0']], calendar, opts);\n }\n}\n\nfunction getFirstNonEmptyTrace(data, id, axLetter) {\n for(var i = 0; i < data.length; i++) {\n var trace = data[i];\n\n if(trace.type === 'splom' &&\n trace._length > 0 &&\n (trace['_' + axLetter + 'axes'] || {})[id]\n ) {\n return trace;\n }\n\n if((trace[axLetter + 'axis'] || axLetter) === id) {\n if(isBoxWithoutPositionCoords(trace, axLetter)) {\n return trace;\n } else if((trace[axLetter] || []).length || trace[axLetter + '0']) {\n return trace;\n }\n }\n }\n}\n\nfunction getBoxPosLetter(trace) {\n return {v: 'x', h: 'y'}[trace.orientation || 'v'];\n}\n\nfunction isBoxWithoutPositionCoords(trace, axLetter) {\n var posLetter = getBoxPosLetter(trace);\n var isBox = traceIs(trace, 'box-violin');\n var isCandlestick = traceIs(trace._fullInput || {}, 'candlestick');\n\n return (\n isBox &&\n !isCandlestick &&\n axLetter === posLetter &&\n trace[posLetter] === undefined &&\n trace[posLetter + '0'] === undefined\n );\n}\n\n},{\"../../registry\":638,\"./axis_autotype\":555}],583:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../registry');\nvar Lib = _dereq_('../lib');\n\n/*\n * Create or update an observer. This function is designed to be\n * idempotent so that it can be called over and over as the component\n * updates, and will attach and detach listeners as needed.\n *\n * @param {optional object} container\n * An object on which the observer is stored. This is the mechanism\n * by which it is idempotent. If it already exists, another won't be\n * added. Each time it's called, the value lookup table is updated.\n * @param {array} commandList\n * An array of commands, following either `buttons` of `updatemenus`\n * or `steps` of `sliders`.\n * @param {function} onchange\n * A listener called when the value is changed. Receives data object\n * with information about the new state.\n */\nexports.manageCommandObserver = function(gd, container, commandList, onchange) {\n var ret = {};\n var enabled = true;\n\n if(container && container._commandObserver) {\n ret = container._commandObserver;\n }\n\n if(!ret.cache) {\n ret.cache = {};\n }\n\n // Either create or just recompute this:\n ret.lookupTable = {};\n\n var binding = exports.hasSimpleAPICommandBindings(gd, commandList, ret.lookupTable);\n\n if(container && container._commandObserver) {\n if(!binding) {\n // If container exists and there are no longer any bindings,\n // remove existing:\n if(container._commandObserver.remove) {\n container._commandObserver.remove();\n container._commandObserver = null;\n return ret;\n }\n } else {\n // If container exists and there *are* bindings, then the lookup\n // table should have been updated and check is already attached,\n // so there's nothing to be done:\n return ret;\n }\n }\n\n // Determine whether there's anything to do for this binding:\n\n if(binding) {\n // Build the cache:\n bindingValueHasChanged(gd, binding, ret.cache);\n\n ret.check = function check() {\n if(!enabled) return;\n\n var update = bindingValueHasChanged(gd, binding, ret.cache);\n\n if(update.changed && onchange) {\n // Disable checks for the duration of this command in order to avoid\n // infinite loops:\n if(ret.lookupTable[update.value] !== undefined) {\n ret.disable();\n Promise.resolve(onchange({\n value: update.value,\n type: binding.type,\n prop: binding.prop,\n traces: binding.traces,\n index: ret.lookupTable[update.value]\n })).then(ret.enable, ret.enable);\n }\n }\n\n return update.changed;\n };\n\n var checkEvents = [\n 'plotly_relayout',\n 'plotly_redraw',\n 'plotly_restyle',\n 'plotly_update',\n 'plotly_animatingframe',\n 'plotly_afterplot'\n ];\n\n for(var i = 0; i < checkEvents.length; i++) {\n gd._internalOn(checkEvents[i], ret.check);\n }\n\n ret.remove = function() {\n for(var i = 0; i < checkEvents.length; i++) {\n gd._removeInternalListener(checkEvents[i], ret.check);\n }\n };\n } else {\n // TODO: It'd be really neat to actually give a *reason* for this, but at least a warning\n // is a start\n Lib.log('Unable to automatically bind plot updates to API command');\n\n ret.lookupTable = {};\n ret.remove = function() {};\n }\n\n ret.disable = function disable() {\n enabled = false;\n };\n\n ret.enable = function enable() {\n enabled = true;\n };\n\n if(container) {\n container._commandObserver = ret;\n }\n\n return ret;\n};\n\n/*\n * This function checks to see if an array of objects containing\n * method and args properties is compatible with automatic two-way\n * binding. The criteria right now are that\n *\n * 1. multiple traces may be affected\n * 2. only one property may be affected\n * 3. the same property must be affected by all commands\n */\nexports.hasSimpleAPICommandBindings = function(gd, commandList, bindingsByValue) {\n var i;\n var n = commandList.length;\n\n var refBinding;\n\n for(i = 0; i < n; i++) {\n var binding;\n var command = commandList[i];\n var method = command.method;\n var args = command.args;\n\n if(!Array.isArray(args)) args = [];\n\n // If any command has no method, refuse to bind:\n if(!method) {\n return false;\n }\n var bindings = exports.computeAPICommandBindings(gd, method, args);\n\n // Right now, handle one and *only* one property being set:\n if(bindings.length !== 1) {\n return false;\n }\n\n if(!refBinding) {\n refBinding = bindings[0];\n if(Array.isArray(refBinding.traces)) {\n refBinding.traces.sort();\n }\n } else {\n binding = bindings[0];\n if(binding.type !== refBinding.type) {\n return false;\n }\n if(binding.prop !== refBinding.prop) {\n return false;\n }\n if(Array.isArray(refBinding.traces)) {\n if(Array.isArray(binding.traces)) {\n binding.traces.sort();\n for(var j = 0; j < refBinding.traces.length; j++) {\n if(refBinding.traces[j] !== binding.traces[j]) {\n return false;\n }\n }\n } else {\n return false;\n }\n } else {\n if(binding.prop !== refBinding.prop) {\n return false;\n }\n }\n }\n\n binding = bindings[0];\n var value = binding.value;\n if(Array.isArray(value)) {\n if(value.length === 1) {\n value = value[0];\n } else {\n return false;\n }\n }\n if(bindingsByValue) {\n bindingsByValue[value] = i;\n }\n }\n\n return refBinding;\n};\n\nfunction bindingValueHasChanged(gd, binding, cache) {\n var container, value, obj;\n var changed = false;\n\n if(binding.type === 'data') {\n // If it's data, we need to get a trace. Based on the limited scope\n // of what we cover, we can just take the first trace from the list,\n // or otherwise just the first trace:\n container = gd._fullData[binding.traces !== null ? binding.traces[0] : 0];\n } else if(binding.type === 'layout') {\n container = gd._fullLayout;\n } else {\n return false;\n }\n\n value = Lib.nestedProperty(container, binding.prop).get();\n\n obj = cache[binding.type] = cache[binding.type] || {};\n\n if(obj.hasOwnProperty(binding.prop)) {\n if(obj[binding.prop] !== value) {\n changed = true;\n }\n }\n\n obj[binding.prop] = value;\n\n return {\n changed: changed,\n value: value\n };\n}\n\n/*\n * Execute an API command. There's really not much to this; it just provides\n * a common hook so that implementations don't need to be synchronized across\n * multiple components with the ability to invoke API commands.\n *\n * @param {string} method\n * The name of the plotly command to execute. Must be one of 'animate',\n * 'restyle', 'relayout', 'update'.\n * @param {array} args\n * A list of arguments passed to the API command\n */\nexports.executeAPICommand = function(gd, method, args) {\n if(method === 'skip') return Promise.resolve();\n\n var _method = Registry.apiMethodRegistry[method];\n var allArgs = [gd];\n if(!Array.isArray(args)) args = [];\n\n for(var i = 0; i < args.length; i++) {\n allArgs.push(args[i]);\n }\n\n return _method.apply(null, allArgs).catch(function(err) {\n Lib.warn('API call to Plotly.' + method + ' rejected.', err);\n return Promise.reject(err);\n });\n};\n\nexports.computeAPICommandBindings = function(gd, method, args) {\n var bindings;\n\n if(!Array.isArray(args)) args = [];\n\n switch(method) {\n case 'restyle':\n bindings = computeDataBindings(gd, args);\n break;\n case 'relayout':\n bindings = computeLayoutBindings(gd, args);\n break;\n case 'update':\n bindings = computeDataBindings(gd, [args[0], args[2]])\n .concat(computeLayoutBindings(gd, [args[1]]));\n break;\n case 'animate':\n bindings = computeAnimateBindings(gd, args);\n break;\n default:\n // This is the case where intelligent logic about what affects\n // this command is not implemented. It causes no ill effects.\n // For example, addFrames simply won't bind to a control component.\n bindings = [];\n }\n return bindings;\n};\n\nfunction computeAnimateBindings(gd, args) {\n // We'll assume that the only relevant modification an animation\n // makes that's meaningfully tracked is the frame:\n if(Array.isArray(args[0]) && args[0].length === 1 && ['string', 'number'].indexOf(typeof args[0][0]) !== -1) {\n return [{type: 'layout', prop: '_currentFrame', value: args[0][0].toString()}];\n } else {\n return [];\n }\n}\n\nfunction computeLayoutBindings(gd, args) {\n var bindings = [];\n\n var astr = args[0];\n var aobj = {};\n if(typeof astr === 'string') {\n aobj[astr] = args[1];\n } else if(Lib.isPlainObject(astr)) {\n aobj = astr;\n } else {\n return bindings;\n }\n\n crawl(aobj, function(path, attrName, attr) {\n bindings.push({type: 'layout', prop: path, value: attr});\n }, '', 0);\n\n return bindings;\n}\n\nfunction computeDataBindings(gd, args) {\n var traces, astr, val, aobj;\n var bindings = [];\n\n // Logic copied from Plotly.restyle:\n astr = args[0];\n val = args[1];\n traces = args[2];\n aobj = {};\n if(typeof astr === 'string') {\n aobj[astr] = val;\n } else if(Lib.isPlainObject(astr)) {\n // the 3-arg form\n aobj = astr;\n\n if(traces === undefined) {\n traces = val;\n }\n } else {\n return bindings;\n }\n\n if(traces === undefined) {\n // Explicitly assign this to null instead of undefined:\n traces = null;\n }\n\n crawl(aobj, function(path, attrName, _attr) {\n var thisTraces;\n var attr;\n\n if(Array.isArray(_attr)) {\n attr = _attr.slice();\n\n var nAttr = Math.min(attr.length, gd.data.length);\n if(traces) {\n nAttr = Math.min(nAttr, traces.length);\n }\n thisTraces = [];\n for(var j = 0; j < nAttr; j++) {\n thisTraces[j] = traces ? traces[j] : j;\n }\n } else {\n attr = _attr;\n thisTraces = traces ? traces.slice() : null;\n }\n\n // Convert [7] to just 7 when traces is null:\n if(thisTraces === null) {\n if(Array.isArray(attr)) {\n attr = attr[0];\n }\n } else if(Array.isArray(thisTraces)) {\n if(!Array.isArray(attr)) {\n var tmp = attr;\n attr = [];\n for(var i = 0; i < thisTraces.length; i++) {\n attr[i] = tmp;\n }\n }\n attr.length = Math.min(thisTraces.length, attr.length);\n }\n\n bindings.push({\n type: 'data',\n prop: path,\n traces: thisTraces,\n value: attr\n });\n }, '', 0);\n\n return bindings;\n}\n\nfunction crawl(attrs, callback, path, depth) {\n Object.keys(attrs).forEach(function(attrName) {\n var attr = attrs[attrName];\n\n if(attrName[0] === '_') return;\n\n var thisPath = path + (depth > 0 ? '.' : '') + attrName;\n\n if(Lib.isPlainObject(attr)) {\n crawl(attr, callback, thisPath, depth + 1);\n } else {\n // Only execute the callback on leaf nodes:\n callback(thisPath, attrName, attr);\n }\n });\n}\n\n},{\"../lib\":503,\"../registry\":638}],584:[function(_dereq_,module,exports){\n'use strict';\n\nvar extendFlat = _dereq_('../lib/extend').extendFlat;\n\n/**\n * Make a xy domain attribute group\n *\n * @param {object} opts\n * @param {string}\n * opts.name: name to be inserted in the default description\n * @param {boolean}\n * opts.trace: set to true for trace containers\n * @param {string}\n * opts.editType: editType for all pieces\n * @param {boolean}\n * opts.noGridCell: set to true to omit `row` and `column`\n *\n * @param {object} extra\n * @param {string}\n * extra.description: extra description. N.B we use\n * a separate extra container to make it compatible with\n * the compress_attributes transform.\n *\n * @return {object} attributes object containing {x,y} as specified\n */\nexports.attributes = function(opts, extra) {\n opts = opts || {};\n extra = extra || {};\n\n var base = {\n valType: 'info_array',\n editType: opts.editType,\n items: [\n {valType: 'number', min: 0, max: 1, editType: opts.editType},\n {valType: 'number', min: 0, max: 1, editType: opts.editType}\n ],\n dflt: [0, 1]\n };\n\n var namePart = opts.name ? opts.name + ' ' : '';\n var contPart = opts.trace ? 'trace ' : 'subplot ';\n var descPart = extra.description ? ' ' + extra.description : '';\n\n var out = {\n x: extendFlat({}, base, {\n }),\n y: extendFlat({}, base, {\n }),\n editType: opts.editType\n };\n\n if(!opts.noGridCell) {\n out.row = {\n valType: 'integer',\n min: 0,\n dflt: 0,\n editType: opts.editType,\n };\n out.column = {\n valType: 'integer',\n min: 0,\n dflt: 0,\n editType: opts.editType,\n };\n }\n\n return out;\n};\n\nexports.defaults = function(containerOut, layout, coerce, dfltDomains) {\n var dfltX = (dfltDomains && dfltDomains.x) || [0, 1];\n var dfltY = (dfltDomains && dfltDomains.y) || [0, 1];\n\n var grid = layout.grid;\n if(grid) {\n var column = coerce('domain.column');\n if(column !== undefined) {\n if(column < grid.columns) dfltX = grid._domains.x[column];\n else delete containerOut.domain.column;\n }\n\n var row = coerce('domain.row');\n if(row !== undefined) {\n if(row < grid.rows) dfltY = grid._domains.y[row];\n else delete containerOut.domain.row;\n }\n }\n\n var x = coerce('domain.x', dfltX);\n var y = coerce('domain.y', dfltY);\n\n // don't accept bad input data\n if(!(x[0] < x[1])) containerOut.domain.x = dfltX.slice();\n if(!(y[0] < y[1])) containerOut.domain.y = dfltY.slice();\n};\n\n},{\"../lib/extend\":493}],585:[function(_dereq_,module,exports){\n'use strict';\n\n/*\n * make a font attribute group\n *\n * @param {object} opts\n * @param {string}\n * opts.description: where & how this font is used\n * @param {optional bool} arrayOk:\n * should each part (family, size, color) be arrayOk? default false.\n * @param {string} editType:\n * the editType for all pieces of this font\n * @param {optional string} colorEditType:\n * a separate editType just for color\n *\n * @return {object} attributes object containing {family, size, color} as specified\n */\nmodule.exports = function(opts) {\n var editType = opts.editType;\n var colorEditType = opts.colorEditType;\n if(colorEditType === undefined) colorEditType = editType;\n var attrs = {\n family: {\n valType: 'string',\n noBlank: true,\n strict: true,\n editType: editType,\n },\n size: {\n valType: 'number',\n min: 1,\n editType: editType\n },\n color: {\n valType: 'color',\n editType: colorEditType\n },\n editType: editType,\n // blank strings so compress_attributes can remove\n // TODO - that's uber hacky... better solution?\n };\n\n if(opts.arrayOk) {\n attrs.family.arrayOk = true;\n attrs.size.arrayOk = true;\n attrs.color.arrayOk = true;\n }\n\n return attrs;\n};\n\n},{}],586:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n _isLinkedToArray: 'frames_entry',\n\n group: {\n valType: 'string',\n },\n name: {\n valType: 'string',\n },\n traces: {\n valType: 'any',\n },\n baseframe: {\n valType: 'string',\n },\n data: {\n valType: 'any',\n },\n layout: {\n valType: 'any',\n }\n};\n\n},{}],587:[function(_dereq_,module,exports){\n'use strict';\n\n// projection names to d3 function name\nexports.projNames = {\n 'airy': 'airy',\n 'aitoff': 'aitoff',\n 'albers usa': 'albersUsa',\n 'albers': 'albers',\n // 'armadillo': 'armadillo',\n 'august': 'august',\n 'azimuthal equal area': 'azimuthalEqualArea',\n 'azimuthal equidistant': 'azimuthalEquidistant',\n 'baker': 'baker',\n // 'berghaus': 'berghaus',\n 'bertin1953': 'bertin1953',\n 'boggs': 'boggs',\n 'bonne': 'bonne',\n 'bottomley': 'bottomley',\n 'bromley': 'bromley',\n // 'chamberlin africa': 'chamberlinAfrica',\n // 'chamberlin': 'chamberlin',\n 'collignon': 'collignon',\n 'conic conformal': 'conicConformal',\n 'conic equal area': 'conicEqualArea',\n 'conic equidistant': 'conicEquidistant',\n 'craig': 'craig',\n 'craster': 'craster',\n 'cylindrical equal area': 'cylindricalEqualArea',\n 'cylindrical stereographic': 'cylindricalStereographic',\n 'eckert1': 'eckert1',\n 'eckert2': 'eckert2',\n 'eckert3': 'eckert3',\n 'eckert4': 'eckert4',\n 'eckert5': 'eckert5',\n 'eckert6': 'eckert6',\n 'eisenlohr': 'eisenlohr',\n 'equirectangular': 'equirectangular',\n 'fahey': 'fahey',\n 'foucaut sinusoidal': 'foucautSinusoidal',\n 'foucaut': 'foucaut',\n // 'gilbert': 'gilbert',\n // 'gingery': 'gingery',\n 'ginzburg4': 'ginzburg4',\n 'ginzburg5': 'ginzburg5',\n 'ginzburg6': 'ginzburg6',\n 'ginzburg8': 'ginzburg8',\n 'ginzburg9': 'ginzburg9',\n 'gnomonic': 'gnomonic',\n 'gringorten quincuncial': 'gringortenQuincuncial',\n 'gringorten': 'gringorten',\n 'guyou': 'guyou',\n // 'hammer retroazimuthal': 'hammerRetroazimuthal',\n 'hammer': 'hammer',\n // 'healpix': 'healpix',\n 'hill': 'hill',\n 'homolosine': 'homolosine',\n 'hufnagel': 'hufnagel',\n 'hyperelliptical': 'hyperelliptical',\n // 'interrupted boggs': 'interruptedBoggs',\n // 'interrupted homolosine': 'interruptedHomolosine',\n // 'interrupted mollweide hemispheres': 'interruptedMollweideHemispheres',\n // 'interrupted mollweide': 'interruptedMollweide',\n // 'interrupted quartic authalic': 'interruptedQuarticAuthalic',\n // 'interrupted sinu mollweide': 'interruptedSinuMollweide',\n // 'interrupted sinusoidal': 'interruptedSinusoidal',\n 'kavrayskiy7': 'kavrayskiy7',\n 'lagrange': 'lagrange',\n 'larrivee': 'larrivee',\n 'laskowski': 'laskowski',\n // 'littrow': 'littrow',\n 'loximuthal': 'loximuthal',\n 'mercator': 'mercator',\n 'miller': 'miller',\n // 'modified stereographic alaska': 'modifiedStereographicAlaska',\n // 'modified stereographic gs48': 'modifiedStereographicGs48',\n // 'modified stereographic gs50': 'modifiedStereographicGs50',\n // 'modified stereographic lee': 'modifiedStereographicLee',\n // 'modified stereographic miller': 'modifiedStereographicMiller',\n // 'modified stereographic': 'modifiedStereographic',\n 'mollweide': 'mollweide',\n 'mt flat polar parabolic': 'mtFlatPolarParabolic',\n 'mt flat polar quartic': 'mtFlatPolarQuartic',\n 'mt flat polar sinusoidal': 'mtFlatPolarSinusoidal',\n 'natural earth': 'naturalEarth',\n 'natural earth1': 'naturalEarth1',\n 'natural earth2': 'naturalEarth2',\n 'nell hammer': 'nellHammer',\n 'nicolosi': 'nicolosi',\n 'orthographic': 'orthographic',\n 'patterson': 'patterson',\n 'peirce quincuncial': 'peirceQuincuncial',\n 'polyconic': 'polyconic',\n // 'polyhedral butterfly': 'polyhedralButterfly',\n // 'polyhedral collignon': 'polyhedralCollignon',\n // 'polyhedral waterman': 'polyhedralWaterman',\n 'rectangular polyconic': 'rectangularPolyconic',\n 'robinson': 'robinson',\n 'satellite': 'satellite',\n 'sinu mollweide': 'sinuMollweide',\n 'sinusoidal': 'sinusoidal',\n 'stereographic': 'stereographic',\n 'times': 'times',\n 'transverse mercator': 'transverseMercator',\n // 'two point azimuthalUsa': 'twoPointAzimuthalUsa',\n // 'two point azimuthal': 'twoPointAzimuthal',\n // 'two point equidistantUsa': 'twoPointEquidistantUsa',\n // 'two point equidistant': 'twoPointEquidistant',\n 'van der grinten': 'vanDerGrinten',\n 'van der grinten2': 'vanDerGrinten2',\n 'van der grinten3': 'vanDerGrinten3',\n 'van der grinten4': 'vanDerGrinten4',\n 'wagner4': 'wagner4',\n 'wagner6': 'wagner6',\n // 'wagner7': 'wagner7',\n // 'wagner': 'wagner',\n 'wiechel': 'wiechel',\n 'winkel tripel': 'winkel3',\n 'winkel3': 'winkel3',\n};\n\n// name of the axes\nexports.axesNames = ['lonaxis', 'lataxis'];\n\n// max longitudinal angular span (EXPERIMENTAL)\nexports.lonaxisSpan = {\n 'orthographic': 180,\n 'azimuthal equal area': 360,\n 'azimuthal equidistant': 360,\n 'conic conformal': 180,\n 'gnomonic': 160,\n 'stereographic': 180,\n 'transverse mercator': 180,\n '*': 360\n};\n\n// max latitudinal angular span (EXPERIMENTAL)\nexports.lataxisSpan = {\n 'conic conformal': 150,\n 'stereographic': 179.5,\n '*': 180\n};\n\n// defaults for each scope\nexports.scopeDefaults = {\n world: {\n lonaxisRange: [-180, 180],\n lataxisRange: [-90, 90],\n projType: 'equirectangular',\n projRotate: [0, 0, 0]\n },\n usa: {\n lonaxisRange: [-180, -50],\n lataxisRange: [15, 80],\n projType: 'albers usa'\n },\n europe: {\n lonaxisRange: [-30, 60],\n lataxisRange: [30, 85],\n projType: 'conic conformal',\n projRotate: [15, 0, 0],\n projParallels: [0, 60]\n },\n asia: {\n lonaxisRange: [22, 160],\n lataxisRange: [-15, 55],\n projType: 'mercator',\n projRotate: [0, 0, 0]\n },\n africa: {\n lonaxisRange: [-30, 60],\n lataxisRange: [-40, 40],\n projType: 'mercator',\n projRotate: [0, 0, 0]\n },\n 'north america': {\n lonaxisRange: [-180, -45],\n lataxisRange: [5, 85],\n projType: 'conic conformal',\n projRotate: [-100, 0, 0],\n projParallels: [29.5, 45.5]\n },\n 'south america': {\n lonaxisRange: [-100, -30],\n lataxisRange: [-60, 15],\n projType: 'mercator',\n projRotate: [0, 0, 0]\n }\n};\n\n// angular pad to avoid rounding error around clip angles\nexports.clipPad = 1e-3;\n\n// map projection precision\nexports.precision = 0.1;\n\n// default land and water fill colors\nexports.landColor = '#F0DC82';\nexports.waterColor = '#3399FF';\n\n// locationmode to layer name\nexports.locationmodeToLayer = {\n 'ISO-3': 'countries',\n 'USA-states': 'subunits',\n 'country names': 'countries'\n};\n\n// SVG element for a sphere (use to frame maps)\nexports.sphereSVG = {type: 'Sphere'};\n\n// N.B. base layer names must be the same as in the topojson files\n\n// base layer with a fill color\nexports.fillLayers = {\n ocean: 1,\n land: 1,\n lakes: 1\n};\n\n// base layer with a only a line color\nexports.lineLayers = {\n subunits: 1,\n countries: 1,\n coastlines: 1,\n rivers: 1,\n frame: 1\n};\n\nexports.layers = [\n 'bg',\n 'ocean', 'land', 'lakes',\n 'subunits', 'countries', 'coastlines', 'rivers',\n 'lataxis', 'lonaxis', 'frame',\n 'backplot',\n 'frontplot'\n];\n\nexports.layersForChoropleth = [\n 'bg',\n 'ocean', 'land',\n 'subunits', 'countries', 'coastlines',\n 'lataxis', 'lonaxis', 'frame',\n 'backplot',\n 'rivers', 'lakes',\n 'frontplot'\n];\n\nexports.layerNameToAdjective = {\n ocean: 'ocean',\n land: 'land',\n lakes: 'lake',\n subunits: 'subunit',\n countries: 'country',\n coastlines: 'coastline',\n rivers: 'river',\n frame: 'frame'\n};\n\n},{}],588:[function(_dereq_,module,exports){\n'use strict';\n\n/* global PlotlyGeoAssets:false */\n\nvar d3 = _dereq_('@plotly/d3');\nvar geo = _dereq_('d3-geo');\nvar geoPath = geo.geoPath;\nvar geoDistance = geo.geoDistance;\nvar geoProjection = _dereq_('d3-geo-projection');\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar strTranslate = Lib.strTranslate;\nvar Color = _dereq_('../../components/color');\nvar Drawing = _dereq_('../../components/drawing');\nvar Fx = _dereq_('../../components/fx');\nvar Plots = _dereq_('../plots');\nvar Axes = _dereq_('../cartesian/axes');\nvar getAutoRange = _dereq_('../cartesian/autorange').getAutoRange;\nvar dragElement = _dereq_('../../components/dragelement');\nvar prepSelect = _dereq_('../cartesian/select').prepSelect;\nvar clearSelect = _dereq_('../cartesian/select').clearSelect;\nvar selectOnClick = _dereq_('../cartesian/select').selectOnClick;\n\nvar createGeoZoom = _dereq_('./zoom');\nvar constants = _dereq_('./constants');\n\nvar geoUtils = _dereq_('../../lib/geo_location_utils');\nvar topojsonUtils = _dereq_('../../lib/topojson_utils');\nvar topojsonFeature = _dereq_('topojson-client').feature;\n\nfunction Geo(opts) {\n this.id = opts.id;\n this.graphDiv = opts.graphDiv;\n this.container = opts.container;\n this.topojsonURL = opts.topojsonURL;\n this.isStatic = opts.staticPlot;\n\n this.topojsonName = null;\n this.topojson = null;\n\n this.projection = null;\n this.scope = null;\n this.viewInitial = null;\n this.fitScale = null;\n this.bounds = null;\n this.midPt = null;\n\n this.hasChoropleth = false;\n this.traceHash = {};\n\n this.layers = {};\n this.basePaths = {};\n this.dataPaths = {};\n this.dataPoints = {};\n\n this.clipDef = null;\n this.clipRect = null;\n this.bgRect = null;\n\n this.makeFramework();\n}\n\nvar proto = Geo.prototype;\n\nmodule.exports = function createGeo(opts) {\n return new Geo(opts);\n};\n\nproto.plot = function(geoCalcData, fullLayout, promises) {\n var _this = this;\n var geoLayout = fullLayout[this.id];\n var geoPromises = [];\n\n var needsTopojson = false;\n for(var k in constants.layerNameToAdjective) {\n if(k !== 'frame' && geoLayout['show' + k]) {\n needsTopojson = true;\n break;\n }\n }\n for(var i = 0; i < geoCalcData.length; i++) {\n if(geoCalcData[0][0].trace.locationmode) {\n needsTopojson = true;\n break;\n }\n }\n\n if(needsTopojson) {\n var topojsonNameNew = topojsonUtils.getTopojsonName(geoLayout);\n if(_this.topojson === null || topojsonNameNew !== _this.topojsonName) {\n _this.topojsonName = topojsonNameNew;\n\n if(PlotlyGeoAssets.topojson[_this.topojsonName] === undefined) {\n geoPromises.push(_this.fetchTopojson());\n }\n }\n }\n\n geoPromises = geoPromises.concat(geoUtils.fetchTraceGeoData(geoCalcData));\n\n promises.push(new Promise(function(resolve, reject) {\n Promise.all(geoPromises).then(function() {\n _this.topojson = PlotlyGeoAssets.topojson[_this.topojsonName];\n _this.update(geoCalcData, fullLayout);\n resolve();\n })\n .catch(reject);\n }));\n};\n\nproto.fetchTopojson = function() {\n var _this = this;\n var topojsonPath = topojsonUtils.getTopojsonPath(_this.topojsonURL, _this.topojsonName);\n\n return new Promise(function(resolve, reject) {\n d3.json(topojsonPath, function(err, topojson) {\n if(err) {\n if(err.status === 404) {\n return reject(new Error([\n 'plotly.js could not find topojson file at',\n topojsonPath, '.',\n 'Make sure the *topojsonURL* plot config option',\n 'is set properly.'\n ].join(' ')));\n } else {\n return reject(new Error([\n 'unexpected error while fetching topojson file at',\n topojsonPath\n ].join(' ')));\n }\n }\n\n PlotlyGeoAssets.topojson[_this.topojsonName] = topojson;\n resolve();\n });\n });\n};\n\nproto.update = function(geoCalcData, fullLayout) {\n var geoLayout = fullLayout[this.id];\n\n // important: maps with choropleth traces have a different layer order\n this.hasChoropleth = false;\n\n for(var i = 0; i < geoCalcData.length; i++) {\n var calcTrace = geoCalcData[i];\n var trace = calcTrace[0].trace;\n\n if(trace.type === 'choropleth') {\n this.hasChoropleth = true;\n }\n if(trace.visible === true && trace._length > 0) {\n trace._module.calcGeoJSON(calcTrace, fullLayout);\n }\n }\n\n var hasInvalidBounds = this.updateProjection(geoCalcData, fullLayout);\n if(hasInvalidBounds) return;\n\n if(!this.viewInitial || this.scope !== geoLayout.scope) {\n this.saveViewInitial(geoLayout);\n }\n this.scope = geoLayout.scope;\n\n this.updateBaseLayers(fullLayout, geoLayout);\n this.updateDims(fullLayout, geoLayout);\n this.updateFx(fullLayout, geoLayout);\n\n Plots.generalUpdatePerTraceModule(this.graphDiv, this, geoCalcData, geoLayout);\n\n var scatterLayer = this.layers.frontplot.select('.scatterlayer');\n this.dataPoints.point = scatterLayer.selectAll('.point');\n this.dataPoints.text = scatterLayer.selectAll('text');\n this.dataPaths.line = scatterLayer.selectAll('.js-line');\n\n var choroplethLayer = this.layers.backplot.select('.choroplethlayer');\n this.dataPaths.choropleth = choroplethLayer.selectAll('path');\n\n this.render();\n};\n\nproto.updateProjection = function(geoCalcData, fullLayout) {\n var gd = this.graphDiv;\n var geoLayout = fullLayout[this.id];\n var gs = fullLayout._size;\n var domain = geoLayout.domain;\n var projLayout = geoLayout.projection;\n\n var lonaxis = geoLayout.lonaxis;\n var lataxis = geoLayout.lataxis;\n var axLon = lonaxis._ax;\n var axLat = lataxis._ax;\n\n var projection = this.projection = getProjection(geoLayout);\n\n // setup subplot extent [[x0,y0], [x1,y1]]\n var extent = [[\n gs.l + gs.w * domain.x[0],\n gs.t + gs.h * (1 - domain.y[1])\n ], [\n gs.l + gs.w * domain.x[1],\n gs.t + gs.h * (1 - domain.y[0])\n ]];\n\n var center = geoLayout.center || {};\n var rotation = projLayout.rotation || {};\n var lonaxisRange = lonaxis.range || [];\n var lataxisRange = lataxis.range || [];\n\n if(geoLayout.fitbounds) {\n axLon._length = extent[1][0] - extent[0][0];\n axLat._length = extent[1][1] - extent[0][1];\n axLon.range = getAutoRange(gd, axLon);\n axLat.range = getAutoRange(gd, axLat);\n\n var midLon = (axLon.range[0] + axLon.range[1]) / 2;\n var midLat = (axLat.range[0] + axLat.range[1]) / 2;\n\n if(geoLayout._isScoped) {\n center = {lon: midLon, lat: midLat};\n } else if(geoLayout._isClipped) {\n center = {lon: midLon, lat: midLat};\n rotation = {lon: midLon, lat: midLat, roll: rotation.roll};\n\n var projType = projLayout.type;\n var lonHalfSpan = (constants.lonaxisSpan[projType] / 2) || 180;\n var latHalfSpan = (constants.lataxisSpan[projType] / 2) || 90;\n\n lonaxisRange = [midLon - lonHalfSpan, midLon + lonHalfSpan];\n lataxisRange = [midLat - latHalfSpan, midLat + latHalfSpan];\n } else {\n center = {lon: midLon, lat: midLat};\n rotation = {lon: midLon, lat: rotation.lat, roll: rotation.roll};\n }\n }\n\n // set 'pre-fit' projection\n projection\n .center([center.lon - rotation.lon, center.lat - rotation.lat])\n .rotate([-rotation.lon, -rotation.lat, rotation.roll])\n .parallels(projLayout.parallels);\n\n // fit projection 'scale' and 'translate' to set lon/lat ranges\n var rangeBox = makeRangeBox(lonaxisRange, lataxisRange);\n projection.fitExtent(extent, rangeBox);\n\n var b = this.bounds = projection.getBounds(rangeBox);\n var s = this.fitScale = projection.scale();\n var t = projection.translate();\n\n if(geoLayout.fitbounds) {\n var b2 = projection.getBounds(makeRangeBox(axLon.range, axLat.range));\n var k2 = Math.min(\n (b[1][0] - b[0][0]) / (b2[1][0] - b2[0][0]),\n (b[1][1] - b[0][1]) / (b2[1][1] - b2[0][1])\n );\n\n if(isFinite(k2)) {\n projection.scale(k2 * s);\n } else {\n Lib.warn('Something went wrong during' + this.id + 'fitbounds computations.');\n }\n } else {\n // adjust projection to user setting\n projection.scale(projLayout.scale * s);\n }\n\n // px coordinates of view mid-point,\n // useful to update `geo.center` after interactions\n var midPt = this.midPt = [\n (b[0][0] + b[1][0]) / 2,\n (b[0][1] + b[1][1]) / 2\n ];\n\n projection\n .translate([t[0] + (midPt[0] - t[0]), t[1] + (midPt[1] - t[1])])\n .clipExtent(b);\n\n // the 'albers usa' projection does not expose a 'center' method\n // so here's this hack to make it respond to 'geoLayout.center'\n if(geoLayout._isAlbersUsa) {\n var centerPx = projection([center.lon, center.lat]);\n var tt = projection.translate();\n\n projection.translate([\n tt[0] - (centerPx[0] - tt[0]),\n tt[1] - (centerPx[1] - tt[1])\n ]);\n }\n};\n\nproto.updateBaseLayers = function(fullLayout, geoLayout) {\n var _this = this;\n var topojson = _this.topojson;\n var layers = _this.layers;\n var basePaths = _this.basePaths;\n\n function isAxisLayer(d) {\n return (d === 'lonaxis' || d === 'lataxis');\n }\n\n function isLineLayer(d) {\n return Boolean(constants.lineLayers[d]);\n }\n\n function isFillLayer(d) {\n return Boolean(constants.fillLayers[d]);\n }\n\n var allLayers = this.hasChoropleth ?\n constants.layersForChoropleth :\n constants.layers;\n\n var layerData = allLayers.filter(function(d) {\n return (isLineLayer(d) || isFillLayer(d)) ? geoLayout['show' + d] :\n isAxisLayer(d) ? geoLayout[d].showgrid :\n true;\n });\n\n var join = _this.framework.selectAll('.layer')\n .data(layerData, String);\n\n join.exit().each(function(d) {\n delete layers[d];\n delete basePaths[d];\n d3.select(this).remove();\n });\n\n join.enter().append('g')\n .attr('class', function(d) { return 'layer ' + d; })\n .each(function(d) {\n var layer = layers[d] = d3.select(this);\n\n if(d === 'bg') {\n _this.bgRect = layer.append('rect')\n .style('pointer-events', 'all');\n } else if(isAxisLayer(d)) {\n basePaths[d] = layer.append('path')\n .style('fill', 'none');\n } else if(d === 'backplot') {\n layer.append('g')\n .classed('choroplethlayer', true);\n } else if(d === 'frontplot') {\n layer.append('g')\n .classed('scatterlayer', true);\n } else if(isLineLayer(d)) {\n basePaths[d] = layer.append('path')\n .style('fill', 'none')\n .style('stroke-miterlimit', 2);\n } else if(isFillLayer(d)) {\n basePaths[d] = layer.append('path')\n .style('stroke', 'none');\n }\n });\n\n join.order();\n\n join.each(function(d) {\n var path = basePaths[d];\n var adj = constants.layerNameToAdjective[d];\n\n if(d === 'frame') {\n path.datum(constants.sphereSVG);\n } else if(isLineLayer(d) || isFillLayer(d)) {\n path.datum(topojsonFeature(topojson, topojson.objects[d]));\n } else if(isAxisLayer(d)) {\n path.datum(makeGraticule(d, geoLayout, fullLayout))\n .call(Color.stroke, geoLayout[d].gridcolor)\n .call(Drawing.dashLine, '', geoLayout[d].gridwidth);\n }\n\n if(isLineLayer(d)) {\n path.call(Color.stroke, geoLayout[adj + 'color'])\n .call(Drawing.dashLine, '', geoLayout[adj + 'width']);\n } else if(isFillLayer(d)) {\n path.call(Color.fill, geoLayout[adj + 'color']);\n }\n });\n};\n\nproto.updateDims = function(fullLayout, geoLayout) {\n var b = this.bounds;\n var hFrameWidth = (geoLayout.framewidth || 0) / 2;\n\n var l = b[0][0] - hFrameWidth;\n var t = b[0][1] - hFrameWidth;\n var w = b[1][0] - l + hFrameWidth;\n var h = b[1][1] - t + hFrameWidth;\n\n Drawing.setRect(this.clipRect, l, t, w, h);\n\n this.bgRect\n .call(Drawing.setRect, l, t, w, h)\n .call(Color.fill, geoLayout.bgcolor);\n\n this.xaxis._offset = l;\n this.xaxis._length = w;\n\n this.yaxis._offset = t;\n this.yaxis._length = h;\n};\n\nproto.updateFx = function(fullLayout, geoLayout) {\n var _this = this;\n var gd = _this.graphDiv;\n var bgRect = _this.bgRect;\n var dragMode = fullLayout.dragmode;\n var clickMode = fullLayout.clickmode;\n\n if(_this.isStatic) return;\n\n function zoomReset() {\n var viewInitial = _this.viewInitial;\n var updateObj = {};\n\n for(var k in viewInitial) {\n updateObj[_this.id + '.' + k] = viewInitial[k];\n }\n\n Registry.call('_guiRelayout', gd, updateObj);\n gd.emit('plotly_doubleclick', null);\n }\n\n function invert(lonlat) {\n return _this.projection.invert([\n lonlat[0] + _this.xaxis._offset,\n lonlat[1] + _this.yaxis._offset\n ]);\n }\n\n var fillRangeItems;\n\n if(dragMode === 'select') {\n fillRangeItems = function(eventData, poly) {\n var ranges = eventData.range = {};\n ranges[_this.id] = [\n invert([poly.xmin, poly.ymin]),\n invert([poly.xmax, poly.ymax])\n ];\n };\n } else if(dragMode === 'lasso') {\n fillRangeItems = function(eventData, poly, pts) {\n var dataPts = eventData.lassoPoints = {};\n dataPts[_this.id] = pts.filtered.map(invert);\n };\n }\n\n // Note: dragOptions is needed to be declared for all dragmodes because\n // it's the object that holds persistent selection state.\n var dragOptions = {\n element: _this.bgRect.node(),\n gd: gd,\n plotinfo: {\n id: _this.id,\n xaxis: _this.xaxis,\n yaxis: _this.yaxis,\n fillRangeItems: fillRangeItems\n },\n xaxes: [_this.xaxis],\n yaxes: [_this.yaxis],\n subplot: _this.id,\n clickFn: function(numClicks) {\n if(numClicks === 2) {\n clearSelect(gd);\n }\n }\n };\n\n if(dragMode === 'pan') {\n bgRect.node().onmousedown = null;\n bgRect.call(createGeoZoom(_this, geoLayout));\n bgRect.on('dblclick.zoom', zoomReset);\n if(!gd._context._scrollZoom.geo) {\n bgRect.on('wheel.zoom', null);\n }\n } else if(dragMode === 'select' || dragMode === 'lasso') {\n bgRect.on('.zoom', null);\n\n dragOptions.prepFn = function(e, startX, startY) {\n prepSelect(e, startX, startY, dragOptions, dragMode);\n };\n\n dragElement.init(dragOptions);\n }\n\n bgRect.on('mousemove', function() {\n var lonlat = _this.projection.invert(Lib.getPositionFromD3Event());\n\n if(!lonlat) {\n return dragElement.unhover(gd, d3.event);\n }\n\n _this.xaxis.p2c = function() { return lonlat[0]; };\n _this.yaxis.p2c = function() { return lonlat[1]; };\n\n Fx.hover(gd, d3.event, _this.id);\n });\n\n bgRect.on('mouseout', function() {\n if(gd._dragging) return;\n dragElement.unhover(gd, d3.event);\n });\n\n bgRect.on('click', function() {\n // For select and lasso the dragElement is handling clicks\n if(dragMode !== 'select' && dragMode !== 'lasso') {\n if(clickMode.indexOf('select') > -1) {\n selectOnClick(d3.event, gd, [_this.xaxis], [_this.yaxis],\n _this.id, dragOptions);\n }\n\n if(clickMode.indexOf('event') > -1) {\n // TODO: like pie and mapbox, this doesn't support right-click\n // actually this one is worse, as right-click starts a pan, or leaves\n // select in a weird state.\n // Also, only tangentially related, we should cancel hover during pan\n Fx.click(gd, d3.event);\n }\n }\n });\n};\n\nproto.makeFramework = function() {\n var _this = this;\n var gd = _this.graphDiv;\n var fullLayout = gd._fullLayout;\n var clipId = 'clip' + fullLayout._uid + _this.id;\n\n _this.clipDef = fullLayout._clips.append('clipPath')\n .attr('id', clipId);\n\n _this.clipRect = _this.clipDef.append('rect');\n\n _this.framework = d3.select(_this.container).append('g')\n .attr('class', 'geo ' + _this.id)\n .call(Drawing.setClipUrl, clipId, gd);\n\n // sane lonlat to px\n _this.project = function(v) {\n var px = _this.projection(v);\n return px ?\n [px[0] - _this.xaxis._offset, px[1] - _this.yaxis._offset] :\n [null, null];\n };\n\n _this.xaxis = {\n _id: 'x',\n c2p: function(v) { return _this.project(v)[0]; }\n };\n\n _this.yaxis = {\n _id: 'y',\n c2p: function(v) { return _this.project(v)[1]; }\n };\n\n // mock axis for hover formatting\n _this.mockAxis = {\n type: 'linear',\n showexponent: 'all',\n exponentformat: 'B'\n };\n Axes.setConvert(_this.mockAxis, fullLayout);\n};\n\nproto.saveViewInitial = function(geoLayout) {\n var center = geoLayout.center || {};\n var projLayout = geoLayout.projection;\n var rotation = projLayout.rotation || {};\n\n this.viewInitial = {\n 'fitbounds': geoLayout.fitbounds,\n 'projection.scale': projLayout.scale\n };\n\n var extra;\n if(geoLayout._isScoped) {\n extra = {\n 'center.lon': center.lon,\n 'center.lat': center.lat,\n };\n } else if(geoLayout._isClipped) {\n extra = {\n 'projection.rotation.lon': rotation.lon,\n 'projection.rotation.lat': rotation.lat\n };\n } else {\n extra = {\n 'center.lon': center.lon,\n 'center.lat': center.lat,\n 'projection.rotation.lon': rotation.lon\n };\n }\n\n Lib.extendFlat(this.viewInitial, extra);\n};\n\n// [hot code path] (re)draw all paths which depend on the projection\nproto.render = function() {\n var projection = this.projection;\n var pathFn = projection.getPath();\n var k;\n\n function translatePoints(d) {\n var lonlatPx = projection(d.lonlat);\n return lonlatPx ?\n strTranslate(lonlatPx[0], lonlatPx[1]) :\n null;\n }\n\n function hideShowPoints(d) {\n return projection.isLonLatOverEdges(d.lonlat) ? 'none' : null;\n }\n\n for(k in this.basePaths) {\n this.basePaths[k].attr('d', pathFn);\n }\n\n for(k in this.dataPaths) {\n this.dataPaths[k].attr('d', function(d) { return pathFn(d.geojson); });\n }\n\n for(k in this.dataPoints) {\n this.dataPoints[k]\n .attr('display', hideShowPoints)\n .attr('transform', translatePoints);\n }\n};\n\n// Helper that wraps d3[geo + /* Projection name /*]() which:\n//\n// - adds 'getPath', 'getBounds' convenience methods\n// - scopes logic related to 'clipAngle'\n// - adds 'isLonLatOverEdges' method\n// - sets projection precision\n// - sets methods that aren't always defined depending\n// on the projection type to a dummy 'd3-esque' function,\n//\n// This wrapper alleviates subsequent code of (many) annoying if-statements.\nfunction getProjection(geoLayout) {\n var projLayout = geoLayout.projection;\n var projType = projLayout.type;\n\n var projName = constants.projNames[projType];\n // uppercase the first letter and add geo to the start of method name\n projName = 'geo' + Lib.titleCase(projName);\n var projFn = geo[projName] || geoProjection[projName];\n var projection = projFn();\n\n var clipAngle =\n geoLayout._isSatellite ? Math.acos(1 / projLayout.distance) * 180 / Math.PI :\n geoLayout._isClipped ? constants.lonaxisSpan[projType] / 2 : null;\n\n var methods = ['center', 'rotate', 'parallels', 'clipExtent'];\n var dummyFn = function(_) { return _ ? projection : []; };\n\n for(var i = 0; i < methods.length; i++) {\n var m = methods[i];\n if(typeof projection[m] !== 'function') {\n projection[m] = dummyFn;\n }\n }\n\n projection.isLonLatOverEdges = function(lonlat) {\n if(projection(lonlat) === null) {\n return true;\n }\n\n if(clipAngle) {\n var r = projection.rotate();\n var angle = geoDistance(lonlat, [-r[0], -r[1]]);\n var maxAngle = clipAngle * Math.PI / 180;\n return angle > maxAngle;\n } else {\n return false;\n }\n };\n\n projection.getPath = function() {\n return geoPath().projection(projection);\n };\n\n projection.getBounds = function(object) {\n return projection.getPath().bounds(object);\n };\n\n projection.precision(constants.precision);\n\n if(geoLayout._isSatellite) {\n projection.tilt(projLayout.tilt).distance(projLayout.distance);\n }\n\n if(clipAngle) {\n projection.clipAngle(clipAngle - constants.clipPad);\n }\n\n return projection;\n}\n\nfunction makeGraticule(axisName, geoLayout, fullLayout) {\n // equivalent to the d3 \"ε\"\n var epsilon = 1e-6;\n // same as the geoGraticule default\n var precision = 2.5;\n\n var axLayout = geoLayout[axisName];\n var scopeDefaults = constants.scopeDefaults[geoLayout.scope];\n var rng;\n var oppRng;\n var coordFn;\n\n if(axisName === 'lonaxis') {\n rng = scopeDefaults.lonaxisRange;\n oppRng = scopeDefaults.lataxisRange;\n coordFn = function(v, l) { return [v, l]; };\n } else if(axisName === 'lataxis') {\n rng = scopeDefaults.lataxisRange;\n oppRng = scopeDefaults.lonaxisRange;\n coordFn = function(v, l) { return [l, v]; };\n }\n\n var dummyAx = {\n type: 'linear',\n range: [rng[0], rng[1] - epsilon],\n tick0: axLayout.tick0,\n dtick: axLayout.dtick\n };\n\n Axes.setConvert(dummyAx, fullLayout);\n var vals = Axes.calcTicks(dummyAx);\n\n // remove duplicate on antimeridian\n if(!geoLayout.isScoped && axisName === 'lonaxis') {\n vals.pop();\n }\n\n var len = vals.length;\n var coords = new Array(len);\n\n for(var i = 0; i < len; i++) {\n var v = vals[i].x;\n var line = coords[i] = [];\n for(var l = oppRng[0]; l < oppRng[1] + precision; l += precision) {\n line.push(coordFn(v, l));\n }\n }\n\n return {\n type: 'MultiLineString',\n coordinates: coords\n };\n}\n\n// Returns polygon GeoJSON corresponding to lon/lat range box\n// with well-defined direction\n//\n// Note that clipPad padding is added around range to avoid aliasing.\nfunction makeRangeBox(lon, lat) {\n var clipPad = constants.clipPad;\n var lon0 = lon[0] + clipPad;\n var lon1 = lon[1] - clipPad;\n var lat0 = lat[0] + clipPad;\n var lat1 = lat[1] - clipPad;\n\n // to cross antimeridian w/o ambiguity\n if(lon0 > 0 && lon1 < 0) lon1 += 360;\n\n var dlon4 = (lon1 - lon0) / 4;\n\n return {\n type: 'Polygon',\n coordinates: [[\n [lon0, lat0],\n [lon0, lat1],\n [lon0 + dlon4, lat1],\n [lon0 + 2 * dlon4, lat1],\n [lon0 + 3 * dlon4, lat1],\n [lon1, lat1],\n [lon1, lat0],\n [lon1 - dlon4, lat0],\n [lon1 - 2 * dlon4, lat0],\n [lon1 - 3 * dlon4, lat0],\n [lon0, lat0]\n ]]\n };\n}\n\n},{\"../../components/color\":366,\"../../components/dragelement\":385,\"../../components/drawing\":388,\"../../components/fx\":406,\"../../lib\":503,\"../../lib/geo_location_utils\":496,\"../../lib/topojson_utils\":532,\"../../registry\":638,\"../cartesian/autorange\":553,\"../cartesian/axes\":554,\"../cartesian/select\":575,\"../plots\":619,\"./constants\":587,\"./zoom\":592,\"@plotly/d3\":58,\"d3-geo\":114,\"d3-geo-projection\":113,\"topojson-client\":315}],589:[function(_dereq_,module,exports){\n'use strict';\n\nvar getSubplotCalcData = _dereq_('../../plots/get_data').getSubplotCalcData;\nvar counterRegex = _dereq_('../../lib').counterRegex;\n\nvar createGeo = _dereq_('./geo');\n\nvar GEO = 'geo';\nvar counter = counterRegex(GEO);\n\nvar attributes = {};\nattributes[GEO] = {\n valType: 'subplotid',\n dflt: GEO,\n editType: 'calc',\n};\n\nfunction plotGeo(gd) {\n var fullLayout = gd._fullLayout;\n var calcData = gd.calcdata;\n var geoIds = fullLayout._subplots[GEO];\n\n for(var i = 0; i < geoIds.length; i++) {\n var geoId = geoIds[i];\n var geoCalcData = getSubplotCalcData(calcData, GEO, geoId);\n var geoLayout = fullLayout[geoId];\n var geo = geoLayout._subplot;\n\n if(!geo) {\n geo = createGeo({\n id: geoId,\n graphDiv: gd,\n container: fullLayout._geolayer.node(),\n topojsonURL: gd._context.topojsonURL,\n staticPlot: gd._context.staticPlot\n });\n\n fullLayout[geoId]._subplot = geo;\n }\n\n geo.plot(geoCalcData, fullLayout, gd._promises);\n }\n}\n\nfunction clean(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n var oldGeoKeys = oldFullLayout._subplots[GEO] || [];\n\n for(var i = 0; i < oldGeoKeys.length; i++) {\n var oldGeoKey = oldGeoKeys[i];\n var oldGeo = oldFullLayout[oldGeoKey]._subplot;\n\n if(!newFullLayout[oldGeoKey] && !!oldGeo) {\n oldGeo.framework.remove();\n oldGeo.clipDef.remove();\n }\n }\n}\n\nfunction updateFx(gd) {\n var fullLayout = gd._fullLayout;\n var subplotIds = fullLayout._subplots[GEO];\n\n for(var i = 0; i < subplotIds.length; i++) {\n var subplotLayout = fullLayout[subplotIds[i]];\n var subplotObj = subplotLayout._subplot;\n subplotObj.updateFx(fullLayout, subplotLayout);\n }\n}\n\nmodule.exports = {\n attr: GEO,\n name: GEO,\n idRoot: GEO,\n idRegex: counter,\n attrRegex: counter,\n attributes: attributes,\n layoutAttributes: _dereq_('./layout_attributes'),\n supplyLayoutDefaults: _dereq_('./layout_defaults'),\n plot: plotGeo,\n updateFx: updateFx,\n clean: clean\n};\n\n},{\"../../lib\":503,\"../../plots/get_data\":593,\"./geo\":588,\"./layout_attributes\":590,\"./layout_defaults\":591}],590:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorAttrs = _dereq_('../../components/color/attributes');\nvar domainAttrs = _dereq_('../domain').attributes;\nvar constants = _dereq_('./constants');\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\nvar sortObjectKeys = _dereq_('../../lib/sort_object_keys');\n\nvar geoAxesAttrs = {\n range: {\n valType: 'info_array',\n items: [\n {valType: 'number'},\n {valType: 'number'}\n ],\n },\n showgrid: {\n valType: 'boolean',\n dflt: false,\n },\n tick0: {\n valType: 'number',\n dflt: 0,\n },\n dtick: {\n valType: 'number',\n },\n gridcolor: {\n valType: 'color',\n dflt: colorAttrs.lightLine,\n },\n gridwidth: {\n valType: 'number',\n min: 0,\n dflt: 1,\n }\n};\n\nvar attrs = module.exports = overrideAll({\n domain: domainAttrs({name: 'geo'}, {\n }),\n\n fitbounds: {\n valType: 'enumerated',\n values: [false, 'locations', 'geojson'],\n dflt: false,\n editType: 'plot',\n },\n\n resolution: {\n valType: 'enumerated',\n values: [110, 50],\n dflt: 110,\n coerceNumber: true,\n },\n scope: {\n valType: 'enumerated',\n values: sortObjectKeys(constants.scopeDefaults),\n dflt: 'world',\n },\n projection: {\n type: {\n valType: 'enumerated',\n values: sortObjectKeys(constants.projNames),\n },\n rotation: {\n lon: {\n valType: 'number',\n },\n lat: {\n valType: 'number',\n },\n roll: {\n valType: 'number',\n }\n },\n tilt: {\n valType: 'number',\n dflt: 0,\n },\n distance: {\n valType: 'number',\n min: 1.001,\n dflt: 2,\n },\n parallels: {\n valType: 'info_array',\n items: [\n {valType: 'number'},\n {valType: 'number'}\n ],\n },\n scale: {\n valType: 'number',\n min: 0,\n dflt: 1,\n },\n },\n center: {\n lon: {\n valType: 'number',\n },\n lat: {\n valType: 'number',\n }\n },\n visible: {\n valType: 'boolean',\n dflt: true,\n },\n showcoastlines: {\n valType: 'boolean',\n },\n coastlinecolor: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n },\n coastlinewidth: {\n valType: 'number',\n min: 0,\n dflt: 1,\n },\n showland: {\n valType: 'boolean',\n dflt: false,\n },\n landcolor: {\n valType: 'color',\n dflt: constants.landColor,\n },\n showocean: {\n valType: 'boolean',\n dflt: false,\n },\n oceancolor: {\n valType: 'color',\n dflt: constants.waterColor,\n },\n showlakes: {\n valType: 'boolean',\n dflt: false,\n },\n lakecolor: {\n valType: 'color',\n dflt: constants.waterColor,\n },\n showrivers: {\n valType: 'boolean',\n dflt: false,\n },\n rivercolor: {\n valType: 'color',\n dflt: constants.waterColor,\n },\n riverwidth: {\n valType: 'number',\n min: 0,\n dflt: 1,\n },\n showcountries: {\n valType: 'boolean',\n },\n countrycolor: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n },\n countrywidth: {\n valType: 'number',\n min: 0,\n dflt: 1,\n },\n showsubunits: {\n valType: 'boolean',\n },\n subunitcolor: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n },\n subunitwidth: {\n valType: 'number',\n min: 0,\n dflt: 1,\n },\n showframe: {\n valType: 'boolean',\n },\n framecolor: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n },\n framewidth: {\n valType: 'number',\n min: 0,\n dflt: 1,\n },\n bgcolor: {\n valType: 'color',\n dflt: colorAttrs.background,\n },\n lonaxis: geoAxesAttrs,\n lataxis: geoAxesAttrs\n}, 'plot', 'from-root');\n\n// set uirevision outside of overrideAll so it can be `editType: 'none'`\nattrs.uirevision = {\n valType: 'any',\n editType: 'none',\n};\n\n},{\"../../components/color/attributes\":365,\"../../lib/sort_object_keys\":526,\"../../plot_api/edit_types\":536,\"../domain\":584,\"./constants\":587}],591:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar handleSubplotDefaults = _dereq_('../subplot_defaults');\nvar getSubplotData = _dereq_('../get_data').getSubplotData;\n\nvar constants = _dereq_('./constants');\nvar layoutAttributes = _dereq_('./layout_attributes');\n\nvar axesNames = constants.axesNames;\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut, fullData) {\n handleSubplotDefaults(layoutIn, layoutOut, fullData, {\n type: 'geo',\n attributes: layoutAttributes,\n handleDefaults: handleGeoDefaults,\n fullData: fullData,\n partition: 'y'\n });\n};\n\nfunction handleGeoDefaults(geoLayoutIn, geoLayoutOut, coerce, opts) {\n var subplotData = getSubplotData(opts.fullData, 'geo', opts.id);\n var traceIndices = subplotData.map(function(t) { return t._expandedIndex; });\n\n var resolution = coerce('resolution');\n var scope = coerce('scope');\n var scopeParams = constants.scopeDefaults[scope];\n\n var projType = coerce('projection.type', scopeParams.projType);\n var isAlbersUsa = geoLayoutOut._isAlbersUsa = projType === 'albers usa';\n\n // no other scopes are allowed for 'albers usa' projection\n if(isAlbersUsa) scope = geoLayoutOut.scope = 'usa';\n\n var isScoped = geoLayoutOut._isScoped = (scope !== 'world');\n var isSatellite = geoLayoutOut._isSatellite = projType === 'satellite';\n var isConic = geoLayoutOut._isConic = projType.indexOf('conic') !== -1 || projType === 'albers';\n var isClipped = geoLayoutOut._isClipped = !!constants.lonaxisSpan[projType];\n\n if(geoLayoutIn.visible === false) {\n // should override template.layout.geo.show* - see issue 4482\n\n // make a copy\n var newTemplate = Lib.extendDeep({}, geoLayoutOut._template);\n\n // override show*\n newTemplate.showcoastlines = false;\n newTemplate.showcountries = false;\n newTemplate.showframe = false;\n newTemplate.showlakes = false;\n newTemplate.showland = false;\n newTemplate.showocean = false;\n newTemplate.showrivers = false;\n newTemplate.showsubunits = false;\n if(newTemplate.lonaxis) newTemplate.lonaxis.showgrid = false;\n if(newTemplate.lataxis) newTemplate.lataxis.showgrid = false;\n\n // set ref to copy\n geoLayoutOut._template = newTemplate;\n }\n var visible = coerce('visible');\n\n var show;\n for(var i = 0; i < axesNames.length; i++) {\n var axisName = axesNames[i];\n var dtickDflt = [30, 10][i];\n var rangeDflt;\n\n if(isScoped) {\n rangeDflt = scopeParams[axisName + 'Range'];\n } else {\n var dfltSpans = constants[axisName + 'Span'];\n var hSpan = (dfltSpans[projType] || dfltSpans['*']) / 2;\n var rot = coerce(\n 'projection.rotation.' + axisName.substr(0, 3),\n scopeParams.projRotate[i]\n );\n rangeDflt = [rot - hSpan, rot + hSpan];\n }\n\n var range = coerce(axisName + '.range', rangeDflt);\n coerce(axisName + '.tick0');\n coerce(axisName + '.dtick', dtickDflt);\n\n show = coerce(axisName + '.showgrid', !visible ? false : undefined);\n if(show) {\n coerce(axisName + '.gridcolor');\n coerce(axisName + '.gridwidth');\n }\n\n // mock axis for autorange computations\n geoLayoutOut[axisName]._ax = {\n type: 'linear',\n _id: axisName.slice(0, 3),\n _traceIndices: traceIndices,\n setScale: Lib.identity,\n c2l: Lib.identity,\n r2l: Lib.identity,\n autorange: true,\n range: range.slice(),\n _m: 1,\n _input: {}\n };\n }\n\n var lonRange = geoLayoutOut.lonaxis.range;\n var latRange = geoLayoutOut.lataxis.range;\n\n // to cross antimeridian w/o ambiguity\n var lon0 = lonRange[0];\n var lon1 = lonRange[1];\n if(lon0 > 0 && lon1 < 0) lon1 += 360;\n\n var centerLon = (lon0 + lon1) / 2;\n var projLon;\n\n if(!isAlbersUsa) {\n var dfltProjRotate = isScoped ? scopeParams.projRotate : [centerLon, 0, 0];\n\n projLon = coerce('projection.rotation.lon', dfltProjRotate[0]);\n coerce('projection.rotation.lat', dfltProjRotate[1]);\n coerce('projection.rotation.roll', dfltProjRotate[2]);\n\n show = coerce('showcoastlines', !isScoped && visible);\n if(show) {\n coerce('coastlinecolor');\n coerce('coastlinewidth');\n }\n\n show = coerce('showocean', !visible ? false : undefined);\n if(show) coerce('oceancolor');\n }\n\n var centerLonDflt;\n var centerLatDflt;\n\n if(isAlbersUsa) {\n // 'albers usa' does not have a 'center',\n // these values were found using via:\n // projection.invert([geoLayout.center.lon, geoLayoutIn.center.lat])\n centerLonDflt = -96.6;\n centerLatDflt = 38.7;\n } else {\n centerLonDflt = isScoped ? centerLon : projLon;\n centerLatDflt = (latRange[0] + latRange[1]) / 2;\n }\n\n coerce('center.lon', centerLonDflt);\n coerce('center.lat', centerLatDflt);\n\n if(isSatellite) {\n coerce('projection.tilt');\n coerce('projection.distance');\n }\n\n if(isConic) {\n var dfltProjParallels = scopeParams.projParallels || [0, 60];\n coerce('projection.parallels', dfltProjParallels);\n }\n\n coerce('projection.scale');\n\n show = coerce('showland', !visible ? false : undefined);\n if(show) coerce('landcolor');\n\n show = coerce('showlakes', !visible ? false : undefined);\n if(show) coerce('lakecolor');\n\n show = coerce('showrivers', !visible ? false : undefined);\n if(show) {\n coerce('rivercolor');\n coerce('riverwidth');\n }\n\n show = coerce('showcountries', isScoped && scope !== 'usa' && visible);\n if(show) {\n coerce('countrycolor');\n coerce('countrywidth');\n }\n\n if(scope === 'usa' || (scope === 'north america' && resolution === 50)) {\n // Only works for:\n // USA states at 110m\n // USA states + Canada provinces at 50m\n coerce('showsubunits', visible);\n coerce('subunitcolor');\n coerce('subunitwidth');\n }\n\n if(!isScoped) {\n // Does not work in non-world scopes\n show = coerce('showframe', visible);\n if(show) {\n coerce('framecolor');\n coerce('framewidth');\n }\n }\n\n coerce('bgcolor');\n\n var fitBounds = coerce('fitbounds');\n\n // clear attributes that will get auto-filled later\n if(fitBounds) {\n delete geoLayoutOut.projection.scale;\n\n if(isScoped) {\n delete geoLayoutOut.center.lon;\n delete geoLayoutOut.center.lat;\n } else if(isClipped) {\n delete geoLayoutOut.center.lon;\n delete geoLayoutOut.center.lat;\n delete geoLayoutOut.projection.rotation.lon;\n delete geoLayoutOut.projection.rotation.lat;\n delete geoLayoutOut.lonaxis.range;\n delete geoLayoutOut.lataxis.range;\n } else {\n delete geoLayoutOut.center.lon;\n delete geoLayoutOut.center.lat;\n delete geoLayoutOut.projection.rotation.lon;\n }\n }\n}\n\n},{\"../../lib\":503,\"../get_data\":593,\"../subplot_defaults\":632,\"./constants\":587,\"./layout_attributes\":590}],592:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Lib = _dereq_('../../lib');\nvar Registry = _dereq_('../../registry');\n\nvar radians = Math.PI / 180;\nvar degrees = 180 / Math.PI;\nvar zoomstartStyle = {cursor: 'pointer'};\nvar zoomendStyle = {cursor: 'auto'};\n\nfunction createGeoZoom(geo, geoLayout) {\n var projection = geo.projection;\n var zoomConstructor;\n\n if(geoLayout._isScoped) {\n zoomConstructor = zoomScoped;\n } else if(geoLayout._isClipped) {\n zoomConstructor = zoomClipped;\n } else {\n zoomConstructor = zoomNonClipped;\n }\n\n // TODO add a conic-specific zoom\n\n return zoomConstructor(geo, projection);\n}\n\nmodule.exports = createGeoZoom;\n\n// common to all zoom types\nfunction initZoom(geo, projection) {\n return d3.behavior.zoom()\n .translate(projection.translate())\n .scale(projection.scale());\n}\n\n// sync zoom updates with user & full layout\nfunction sync(geo, projection, cb) {\n var id = geo.id;\n var gd = geo.graphDiv;\n var layout = gd.layout;\n var userOpts = layout[id];\n var fullLayout = gd._fullLayout;\n var fullOpts = fullLayout[id];\n\n var preGUI = {};\n var eventData = {};\n\n function set(propStr, val) {\n preGUI[id + '.' + propStr] = Lib.nestedProperty(userOpts, propStr).get();\n Registry.call('_storeDirectGUIEdit', layout, fullLayout._preGUI, preGUI);\n\n var fullNp = Lib.nestedProperty(fullOpts, propStr);\n if(fullNp.get() !== val) {\n fullNp.set(val);\n Lib.nestedProperty(userOpts, propStr).set(val);\n eventData[id + '.' + propStr] = val;\n }\n }\n\n cb(set);\n set('projection.scale', projection.scale() / geo.fitScale);\n set('fitbounds', false);\n gd.emit('plotly_relayout', eventData);\n}\n\n// zoom for scoped projections\nfunction zoomScoped(geo, projection) {\n var zoom = initZoom(geo, projection);\n\n function handleZoomstart() {\n d3.select(this).style(zoomstartStyle);\n }\n\n function handleZoom() {\n projection\n .scale(d3.event.scale)\n .translate(d3.event.translate);\n geo.render();\n\n var center = projection.invert(geo.midPt);\n geo.graphDiv.emit('plotly_relayouting', {\n 'geo.projection.scale': projection.scale() / geo.fitScale,\n 'geo.center.lon': center[0],\n 'geo.center.lat': center[1]\n });\n }\n\n function syncCb(set) {\n var center = projection.invert(geo.midPt);\n\n set('center.lon', center[0]);\n set('center.lat', center[1]);\n }\n\n function handleZoomend() {\n d3.select(this).style(zoomendStyle);\n sync(geo, projection, syncCb);\n }\n\n zoom\n .on('zoomstart', handleZoomstart)\n .on('zoom', handleZoom)\n .on('zoomend', handleZoomend);\n\n return zoom;\n}\n\n// zoom for non-clipped projections\nfunction zoomNonClipped(geo, projection) {\n var zoom = initZoom(geo, projection);\n\n var INSIDETOLORANCEPXS = 2;\n\n var mouse0, rotate0, translate0, lastRotate, zoomPoint,\n mouse1, rotate1, point1, didZoom;\n\n function position(x) { return projection.invert(x); }\n\n function outside(x) {\n var pos = position(x);\n if(!pos) return true;\n\n var pt = projection(pos);\n return (\n Math.abs(pt[0] - x[0]) > INSIDETOLORANCEPXS ||\n Math.abs(pt[1] - x[1]) > INSIDETOLORANCEPXS\n );\n }\n\n function handleZoomstart() {\n d3.select(this).style(zoomstartStyle);\n\n mouse0 = d3.mouse(this);\n rotate0 = projection.rotate();\n translate0 = projection.translate();\n lastRotate = rotate0;\n zoomPoint = position(mouse0);\n }\n\n function handleZoom() {\n mouse1 = d3.mouse(this);\n\n if(outside(mouse0)) {\n zoom.scale(projection.scale());\n zoom.translate(projection.translate());\n return;\n }\n\n projection.scale(d3.event.scale);\n projection.translate([translate0[0], d3.event.translate[1]]);\n\n if(!zoomPoint) {\n mouse0 = mouse1;\n zoomPoint = position(mouse0);\n } else if(position(mouse1)) {\n point1 = position(mouse1);\n rotate1 = [lastRotate[0] + (point1[0] - zoomPoint[0]), rotate0[1], rotate0[2]];\n projection.rotate(rotate1);\n lastRotate = rotate1;\n }\n\n didZoom = true;\n geo.render();\n\n var rotate = projection.rotate();\n var center = projection.invert(geo.midPt);\n geo.graphDiv.emit('plotly_relayouting', {\n 'geo.projection.scale': projection.scale() / geo.fitScale,\n 'geo.center.lon': center[0],\n 'geo.center.lat': center[1],\n 'geo.projection.rotation.lon': -rotate[0]\n });\n }\n\n function handleZoomend() {\n d3.select(this).style(zoomendStyle);\n if(didZoom) sync(geo, projection, syncCb);\n }\n\n function syncCb(set) {\n var rotate = projection.rotate();\n var center = projection.invert(geo.midPt);\n\n set('projection.rotation.lon', -rotate[0]);\n set('center.lon', center[0]);\n set('center.lat', center[1]);\n }\n\n zoom\n .on('zoomstart', handleZoomstart)\n .on('zoom', handleZoom)\n .on('zoomend', handleZoomend);\n\n return zoom;\n}\n\n// zoom for clipped projections\n// inspired by https://www.jasondavies.com/maps/d3.geo.zoom.js\nfunction zoomClipped(geo, projection) {\n var view = {r: projection.rotate(), k: projection.scale()};\n var zoom = initZoom(geo, projection);\n var event = d3eventDispatch(zoom, 'zoomstart', 'zoom', 'zoomend');\n var zooming = 0;\n var zoomOn = zoom.on;\n\n var zoomPoint;\n\n zoom.on('zoomstart', function() {\n d3.select(this).style(zoomstartStyle);\n\n var mouse0 = d3.mouse(this);\n var rotate0 = projection.rotate();\n var lastRotate = rotate0;\n var translate0 = projection.translate();\n var q = quaternionFromEuler(rotate0);\n\n zoomPoint = position(projection, mouse0);\n\n zoomOn.call(zoom, 'zoom', function() {\n var mouse1 = d3.mouse(this);\n\n projection.scale(view.k = d3.event.scale);\n\n if(!zoomPoint) {\n // if no zoomPoint, the mouse wasn't over the actual geography yet\n // maybe this point is the start... we'll find out next time!\n mouse0 = mouse1;\n zoomPoint = position(projection, mouse0);\n } else if(position(projection, mouse1)) {\n // check if the point is on the map\n // if not, don't do anything new but scale\n // if it is, then we can assume between will exist below\n // so we don't need the 'bank' function, whatever that is.\n\n // go back to original projection temporarily\n // except for scale... that's kind of independent?\n projection\n .rotate(rotate0)\n .translate(translate0);\n\n // calculate the new params\n var point1 = position(projection, mouse1);\n var between = rotateBetween(zoomPoint, point1);\n var newEuler = eulerFromQuaternion(multiply(q, between));\n var rotateAngles = view.r = unRoll(newEuler, zoomPoint, lastRotate);\n\n if(!isFinite(rotateAngles[0]) || !isFinite(rotateAngles[1]) ||\n !isFinite(rotateAngles[2])) {\n rotateAngles = lastRotate;\n }\n\n // update the projection\n projection.rotate(rotateAngles);\n lastRotate = rotateAngles;\n }\n\n zoomed(event.of(this, arguments));\n });\n\n zoomstarted(event.of(this, arguments));\n })\n .on('zoomend', function() {\n d3.select(this).style(zoomendStyle);\n zoomOn.call(zoom, 'zoom', null);\n zoomended(event.of(this, arguments));\n sync(geo, projection, syncCb);\n })\n .on('zoom.redraw', function() {\n geo.render();\n\n var _rotate = projection.rotate();\n geo.graphDiv.emit('plotly_relayouting', {\n 'geo.projection.scale': projection.scale() / geo.fitScale,\n 'geo.projection.rotation.lon': -_rotate[0],\n 'geo.projection.rotation.lat': -_rotate[1]\n });\n });\n\n function zoomstarted(dispatch) {\n if(!zooming++) dispatch({type: 'zoomstart'});\n }\n\n function zoomed(dispatch) {\n dispatch({type: 'zoom'});\n }\n\n function zoomended(dispatch) {\n if(!--zooming) dispatch({type: 'zoomend'});\n }\n\n function syncCb(set) {\n var _rotate = projection.rotate();\n set('projection.rotation.lon', -_rotate[0]);\n set('projection.rotation.lat', -_rotate[1]);\n }\n\n return d3.rebind(zoom, event, 'on');\n}\n\n// -- helper functions for zoomClipped\n\nfunction position(projection, point) {\n var spherical = projection.invert(point);\n return spherical && isFinite(spherical[0]) && isFinite(spherical[1]) && cartesian(spherical);\n}\n\nfunction quaternionFromEuler(euler) {\n var lambda = 0.5 * euler[0] * radians;\n var phi = 0.5 * euler[1] * radians;\n var gamma = 0.5 * euler[2] * radians;\n var sinLambda = Math.sin(lambda);\n var cosLambda = Math.cos(lambda);\n var sinPhi = Math.sin(phi);\n var cosPhi = Math.cos(phi);\n var sinGamma = Math.sin(gamma);\n var cosGamma = Math.cos(gamma);\n return [\n cosLambda * cosPhi * cosGamma + sinLambda * sinPhi * sinGamma,\n sinLambda * cosPhi * cosGamma - cosLambda * sinPhi * sinGamma,\n cosLambda * sinPhi * cosGamma + sinLambda * cosPhi * sinGamma,\n cosLambda * cosPhi * sinGamma - sinLambda * sinPhi * cosGamma\n ];\n}\n\nfunction multiply(a, b) {\n var a0 = a[0];\n var a1 = a[1];\n var a2 = a[2];\n var a3 = a[3];\n var b0 = b[0];\n var b1 = b[1];\n var b2 = b[2];\n var b3 = b[3];\n return [\n a0 * b0 - a1 * b1 - a2 * b2 - a3 * b3,\n a0 * b1 + a1 * b0 + a2 * b3 - a3 * b2,\n a0 * b2 - a1 * b3 + a2 * b0 + a3 * b1,\n a0 * b3 + a1 * b2 - a2 * b1 + a3 * b0\n ];\n}\n\nfunction rotateBetween(a, b) {\n if(!a || !b) return;\n var axis = cross(a, b);\n var norm = Math.sqrt(dot(axis, axis));\n var halfgamma = 0.5 * Math.acos(Math.max(-1, Math.min(1, dot(a, b))));\n var k = Math.sin(halfgamma) / norm;\n return norm && [Math.cos(halfgamma), axis[2] * k, -axis[1] * k, axis[0] * k];\n}\n\n// input:\n// rotateAngles: a calculated set of Euler angles\n// pt: a point (cartesian in 3-space) to keep fixed\n// roll0: an initial roll, to be preserved\n// output:\n// a set of Euler angles that preserve the projection of pt\n// but set roll (output[2]) equal to roll0\n// note that this doesn't depend on the particular projection,\n// just on the rotation angles\nfunction unRoll(rotateAngles, pt, lastRotate) {\n // calculate the fixed point transformed by these Euler angles\n // but with the desired roll undone\n var ptRotated = rotateCartesian(pt, 2, rotateAngles[0]);\n ptRotated = rotateCartesian(ptRotated, 1, rotateAngles[1]);\n ptRotated = rotateCartesian(ptRotated, 0, rotateAngles[2] - lastRotate[2]);\n\n var x = pt[0];\n var y = pt[1];\n var z = pt[2];\n var f = ptRotated[0];\n var g = ptRotated[1];\n var h = ptRotated[2];\n\n // the following essentially solves:\n // ptRotated = rotateCartesian(rotateCartesian(pt, 2, newYaw), 1, newPitch)\n // for newYaw and newPitch, as best it can\n var theta = Math.atan2(y, x) * degrees;\n var a = Math.sqrt(x * x + y * y);\n var b;\n var newYaw1;\n\n if(Math.abs(g) > a) {\n newYaw1 = (g > 0 ? 90 : -90) - theta;\n b = 0;\n } else {\n newYaw1 = Math.asin(g / a) * degrees - theta;\n b = Math.sqrt(a * a - g * g);\n }\n\n var newYaw2 = 180 - newYaw1 - 2 * theta;\n var newPitch1 = (Math.atan2(h, f) - Math.atan2(z, b)) * degrees;\n var newPitch2 = (Math.atan2(h, f) - Math.atan2(z, -b)) * degrees;\n\n // which is closest to lastRotate[0,1]: newYaw/Pitch or newYaw2/Pitch2?\n var dist1 = angleDistance(lastRotate[0], lastRotate[1], newYaw1, newPitch1);\n var dist2 = angleDistance(lastRotate[0], lastRotate[1], newYaw2, newPitch2);\n\n if(dist1 <= dist2) return [newYaw1, newPitch1, lastRotate[2]];\n else return [newYaw2, newPitch2, lastRotate[2]];\n}\n\nfunction angleDistance(yaw0, pitch0, yaw1, pitch1) {\n var dYaw = angleMod(yaw1 - yaw0);\n var dPitch = angleMod(pitch1 - pitch0);\n return Math.sqrt(dYaw * dYaw + dPitch * dPitch);\n}\n\n// reduce an angle in degrees to [-180,180]\nfunction angleMod(angle) {\n return (angle % 360 + 540) % 360 - 180;\n}\n\n// rotate a cartesian vector\n// axis is 0 (x), 1 (y), or 2 (z)\n// angle is in degrees\nfunction rotateCartesian(vector, axis, angle) {\n var angleRads = angle * radians;\n var vectorOut = vector.slice();\n var ax1 = (axis === 0) ? 1 : 0;\n var ax2 = (axis === 2) ? 1 : 2;\n var cosa = Math.cos(angleRads);\n var sina = Math.sin(angleRads);\n\n vectorOut[ax1] = vector[ax1] * cosa - vector[ax2] * sina;\n vectorOut[ax2] = vector[ax2] * cosa + vector[ax1] * sina;\n\n return vectorOut;\n}\nfunction eulerFromQuaternion(q) {\n return [\n Math.atan2(2 * (q[0] * q[1] + q[2] * q[3]), 1 - 2 * (q[1] * q[1] + q[2] * q[2])) * degrees,\n Math.asin(Math.max(-1, Math.min(1, 2 * (q[0] * q[2] - q[3] * q[1])))) * degrees,\n Math.atan2(2 * (q[0] * q[3] + q[1] * q[2]), 1 - 2 * (q[2] * q[2] + q[3] * q[3])) * degrees\n ];\n}\n\nfunction cartesian(spherical) {\n var lambda = spherical[0] * radians;\n var phi = spherical[1] * radians;\n var cosPhi = Math.cos(phi);\n return [\n cosPhi * Math.cos(lambda),\n cosPhi * Math.sin(lambda),\n Math.sin(phi)\n ];\n}\n\nfunction dot(a, b) {\n var s = 0;\n for(var i = 0, n = a.length; i < n; ++i) s += a[i] * b[i];\n return s;\n}\n\nfunction cross(a, b) {\n return [\n a[1] * b[2] - a[2] * b[1],\n a[2] * b[0] - a[0] * b[2],\n a[0] * b[1] - a[1] * b[0]\n ];\n}\n\n// Like d3.dispatch, but for custom events abstracting native UI events. These\n// events have a target component (such as a brush), a target element (such as\n// the svg:g element containing the brush) and the standard arguments `d` (the\n// target element's data) and `i` (the selection index of the target element).\nfunction d3eventDispatch(target) {\n var i = 0;\n var n = arguments.length;\n var argumentz = [];\n\n while(++i < n) argumentz.push(arguments[i]);\n\n var dispatch = d3.dispatch.apply(null, argumentz);\n\n // Creates a dispatch context for the specified `thiz` (typically, the target\n // DOM element that received the source event) and `argumentz` (typically, the\n // data `d` and index `i` of the target element). The returned function can be\n // used to dispatch an event to any registered listeners; the function takes a\n // single argument as input, being the event to dispatch. The event must have\n // a \"type\" attribute which corresponds to a type registered in the\n // constructor. This context will automatically populate the \"sourceEvent\" and\n // \"target\" attributes of the event, as well as setting the `d3.event` global\n // for the duration of the notification.\n dispatch.of = function(thiz, argumentz) {\n return function(e1) {\n var e0;\n try {\n e0 = e1.sourceEvent = d3.event;\n e1.target = target;\n d3.event = e1;\n dispatch[e1.type].apply(thiz, argumentz);\n } finally {\n d3.event = e0;\n }\n };\n };\n\n return dispatch;\n}\n\n},{\"../../lib\":503,\"../../registry\":638,\"@plotly/d3\":58}],593:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../registry');\nvar SUBPLOT_PATTERN = _dereq_('./cartesian/constants').SUBPLOT_PATTERN;\n\n/**\n * Get calcdata trace(s) associated with a given subplot\n *\n * @param {array} calcData: as in gd.calcdata\n * @param {string} type: subplot type\n * @param {string} subplotId: subplot id to look for\n *\n * @return {array} array of calcdata traces\n */\nexports.getSubplotCalcData = function(calcData, type, subplotId) {\n var basePlotModule = Registry.subplotsRegistry[type];\n if(!basePlotModule) return [];\n\n var attr = basePlotModule.attr;\n var subplotCalcData = [];\n\n for(var i = 0; i < calcData.length; i++) {\n var calcTrace = calcData[i];\n var trace = calcTrace[0].trace;\n\n if(trace[attr] === subplotId) subplotCalcData.push(calcTrace);\n }\n\n return subplotCalcData;\n};\n/**\n * Get calcdata trace(s) that can be plotted with a given module\n * NOTE: this isn't necessarily just exactly matching trace type,\n * if multiple trace types use the same plotting routine, they will be\n * collected here.\n * In order to not plot the same thing multiple times, we return two arrays,\n * the calcdata we *will* plot with this module, and the ones we *won't*\n *\n * @param {array} calcdata: as in gd.calcdata\n * @param {object|string|fn} arg1:\n * the plotting module, or its name, or its plot method\n *\n * @return {array[array]} [foundCalcdata, remainingCalcdata]\n */\nexports.getModuleCalcData = function(calcdata, arg1) {\n var moduleCalcData = [];\n var remainingCalcData = [];\n\n var plotMethod;\n if(typeof arg1 === 'string') {\n plotMethod = Registry.getModule(arg1).plot;\n } else if(typeof arg1 === 'function') {\n plotMethod = arg1;\n } else {\n plotMethod = arg1.plot;\n }\n if(!plotMethod) {\n return [moduleCalcData, calcdata];\n }\n\n for(var i = 0; i < calcdata.length; i++) {\n var cd = calcdata[i];\n var trace = cd[0].trace;\n // N.B.\n // - 'legendonly' traces do not make it past here\n // - skip over 'visible' traces that got trimmed completely during calc transforms\n if(trace.visible !== true || trace._length === 0) continue;\n\n // group calcdata trace not by 'module' (as the name of this function\n // would suggest), but by 'module plot method' so that if some traces\n // share the same module plot method (e.g. bar and histogram), we\n // only call it one!\n if(trace._module.plot === plotMethod) {\n moduleCalcData.push(cd);\n } else {\n remainingCalcData.push(cd);\n }\n }\n\n return [moduleCalcData, remainingCalcData];\n};\n\n/**\n * Get the data trace(s) associated with a given subplot.\n *\n * @param {array} data plotly full data array.\n * @param {string} type subplot type to look for.\n * @param {string} subplotId subplot id to look for.\n *\n * @return {array} list of trace objects.\n *\n */\nexports.getSubplotData = function getSubplotData(data, type, subplotId) {\n if(!Registry.subplotsRegistry[type]) return [];\n\n var attr = Registry.subplotsRegistry[type].attr;\n var subplotData = [];\n var trace, subplotX, subplotY;\n\n if(type === 'gl2d') {\n var spmatch = subplotId.match(SUBPLOT_PATTERN);\n subplotX = 'x' + spmatch[1];\n subplotY = 'y' + spmatch[2];\n }\n\n for(var i = 0; i < data.length; i++) {\n trace = data[i];\n\n if(type === 'gl2d' && Registry.traceIs(trace, 'gl2d')) {\n if(trace[attr[0]] === subplotX && trace[attr[1]] === subplotY) {\n subplotData.push(trace);\n }\n } else {\n if(trace[attr] === subplotId) subplotData.push(trace);\n }\n }\n\n return subplotData;\n};\n\n},{\"../registry\":638,\"./cartesian/constants\":561}],594:[function(_dereq_,module,exports){\n'use strict';\n\nvar mouseChange = _dereq_('mouse-change');\nvar mouseWheel = _dereq_('mouse-wheel');\nvar mouseOffset = _dereq_('mouse-event-offset');\nvar cartesianConstants = _dereq_('../cartesian/constants');\nvar hasPassive = _dereq_('has-passive-events');\n\nmodule.exports = createCamera;\n\nfunction Camera2D(element, plot) {\n this.element = element;\n this.plot = plot;\n this.mouseListener = null;\n this.wheelListener = null;\n this.lastInputTime = Date.now();\n this.lastPos = [0, 0];\n this.boxEnabled = false;\n this.boxInited = false;\n this.boxStart = [0, 0];\n this.boxEnd = [0, 0];\n this.dragStart = [0, 0];\n}\n\n\nfunction createCamera(scene) {\n var element = scene.mouseContainer;\n var plot = scene.glplot;\n var result = new Camera2D(element, plot);\n\n function unSetAutoRange() {\n scene.xaxis.autorange = false;\n scene.yaxis.autorange = false;\n }\n\n function getSubplotConstraint() {\n // note: this assumes we only have one x and one y axis on this subplot\n // when this constraint is lifted this block won't make sense\n var constraints = scene.graphDiv._fullLayout._axisConstraintGroups;\n var xaId = scene.xaxis._id;\n var yaId = scene.yaxis._id;\n for(var i = 0; i < constraints.length; i++) {\n if(constraints[i][xaId] !== -1) {\n if(constraints[i][yaId] !== -1) return true;\n break;\n }\n }\n return false;\n }\n\n result.mouseListener = mouseChange(element, handleInteraction);\n\n // enable simple touch interactions\n element.addEventListener('touchstart', function(ev) {\n var xy = mouseOffset(ev.changedTouches[0], element);\n handleInteraction(0, xy[0], xy[1]);\n handleInteraction(1, xy[0], xy[1]);\n\n ev.preventDefault();\n }, hasPassive ? {passive: false} : false);\n element.addEventListener('touchmove', function(ev) {\n ev.preventDefault();\n var xy = mouseOffset(ev.changedTouches[0], element);\n handleInteraction(1, xy[0], xy[1]);\n\n ev.preventDefault();\n }, hasPassive ? {passive: false} : false);\n element.addEventListener('touchend', function(ev) {\n handleInteraction(0, result.lastPos[0], result.lastPos[1]);\n\n ev.preventDefault();\n }, hasPassive ? {passive: false} : false);\n\n function handleInteraction(buttons, x, y) {\n var dataBox = scene.calcDataBox();\n var viewBox = plot.viewBox;\n\n var lastX = result.lastPos[0];\n var lastY = result.lastPos[1];\n\n var MINDRAG = cartesianConstants.MINDRAG * plot.pixelRatio;\n var MINZOOM = cartesianConstants.MINZOOM * plot.pixelRatio;\n\n var dx, dy;\n\n x *= plot.pixelRatio;\n y *= plot.pixelRatio;\n\n // mouseChange gives y about top; convert to about bottom\n y = (viewBox[3] - viewBox[1]) - y;\n\n function updateRange(i0, start, end) {\n var range0 = Math.min(start, end);\n var range1 = Math.max(start, end);\n\n if(range0 !== range1) {\n dataBox[i0] = range0;\n dataBox[i0 + 2] = range1;\n result.dataBox = dataBox;\n scene.setRanges(dataBox);\n } else {\n scene.selectBox.selectBox = [0, 0, 1, 1];\n scene.glplot.setDirty();\n }\n }\n\n switch(scene.fullLayout.dragmode) {\n case 'zoom':\n if(buttons) {\n var dataX = x /\n (viewBox[2] - viewBox[0]) * (dataBox[2] - dataBox[0]) +\n dataBox[0];\n var dataY = y /\n (viewBox[3] - viewBox[1]) * (dataBox[3] - dataBox[1]) +\n dataBox[1];\n\n if(!result.boxInited) {\n result.boxStart[0] = dataX;\n result.boxStart[1] = dataY;\n result.dragStart[0] = x;\n result.dragStart[1] = y;\n }\n\n result.boxEnd[0] = dataX;\n result.boxEnd[1] = dataY;\n\n // we need to mark the box as initialized right away\n // so that we can tell the start and end points apart\n result.boxInited = true;\n\n // but don't actually enable the box until the cursor moves\n if(!result.boxEnabled && (\n result.boxStart[0] !== result.boxEnd[0] ||\n result.boxStart[1] !== result.boxEnd[1])\n ) {\n result.boxEnabled = true;\n }\n\n // constrain aspect ratio if the axes require it\n var smallDx = Math.abs(result.dragStart[0] - x) < MINZOOM;\n var smallDy = Math.abs(result.dragStart[1] - y) < MINZOOM;\n if(getSubplotConstraint() && !(smallDx && smallDy)) {\n dx = result.boxEnd[0] - result.boxStart[0];\n dy = result.boxEnd[1] - result.boxStart[1];\n var dydx = (dataBox[3] - dataBox[1]) / (dataBox[2] - dataBox[0]);\n\n if(Math.abs(dx * dydx) > Math.abs(dy)) {\n result.boxEnd[1] = result.boxStart[1] +\n Math.abs(dx) * dydx * (dy >= 0 ? 1 : -1);\n\n // gl-select-box clips to the plot area bounds,\n // which breaks the axis constraint, so don't allow\n // this box to go out of bounds\n if(result.boxEnd[1] < dataBox[1]) {\n result.boxEnd[1] = dataBox[1];\n result.boxEnd[0] = result.boxStart[0] +\n (dataBox[1] - result.boxStart[1]) / Math.abs(dydx);\n } else if(result.boxEnd[1] > dataBox[3]) {\n result.boxEnd[1] = dataBox[3];\n result.boxEnd[0] = result.boxStart[0] +\n (dataBox[3] - result.boxStart[1]) / Math.abs(dydx);\n }\n } else {\n result.boxEnd[0] = result.boxStart[0] +\n Math.abs(dy) / dydx * (dx >= 0 ? 1 : -1);\n\n if(result.boxEnd[0] < dataBox[0]) {\n result.boxEnd[0] = dataBox[0];\n result.boxEnd[1] = result.boxStart[1] +\n (dataBox[0] - result.boxStart[0]) * Math.abs(dydx);\n } else if(result.boxEnd[0] > dataBox[2]) {\n result.boxEnd[0] = dataBox[2];\n result.boxEnd[1] = result.boxStart[1] +\n (dataBox[2] - result.boxStart[0]) * Math.abs(dydx);\n }\n }\n } else {\n // otherwise clamp small changes to the origin so we get 1D zoom\n\n if(smallDx) result.boxEnd[0] = result.boxStart[0];\n if(smallDy) result.boxEnd[1] = result.boxStart[1];\n }\n } else if(result.boxEnabled) {\n dx = result.boxStart[0] !== result.boxEnd[0];\n dy = result.boxStart[1] !== result.boxEnd[1];\n if(dx || dy) {\n if(dx) {\n updateRange(0, result.boxStart[0], result.boxEnd[0]);\n scene.xaxis.autorange = false;\n }\n if(dy) {\n updateRange(1, result.boxStart[1], result.boxEnd[1]);\n scene.yaxis.autorange = false;\n }\n scene.relayoutCallback();\n } else {\n scene.glplot.setDirty();\n }\n result.boxEnabled = false;\n result.boxInited = false;\n } else if(result.boxInited) {\n // if box was inited but button released then - reset the box\n\n result.boxInited = false;\n }\n break;\n\n case 'pan':\n result.boxEnabled = false;\n result.boxInited = false;\n\n if(buttons) {\n if(!result.panning) {\n result.dragStart[0] = x;\n result.dragStart[1] = y;\n }\n\n if(Math.abs(result.dragStart[0] - x) < MINDRAG) x = result.dragStart[0];\n if(Math.abs(result.dragStart[1] - y) < MINDRAG) y = result.dragStart[1];\n\n dx = (lastX - x) * (dataBox[2] - dataBox[0]) /\n (plot.viewBox[2] - plot.viewBox[0]);\n dy = (lastY - y) * (dataBox[3] - dataBox[1]) /\n (plot.viewBox[3] - plot.viewBox[1]);\n\n dataBox[0] += dx;\n dataBox[2] += dx;\n dataBox[1] += dy;\n dataBox[3] += dy;\n\n scene.setRanges(dataBox);\n\n result.panning = true;\n result.lastInputTime = Date.now();\n unSetAutoRange();\n scene.cameraChanged();\n scene.handleAnnotations();\n } else if(result.panning) {\n result.panning = false;\n scene.relayoutCallback();\n }\n break;\n }\n\n result.lastPos[0] = x;\n result.lastPos[1] = y;\n }\n\n result.wheelListener = mouseWheel(element, function(dx, dy) {\n if(!scene.scrollZoom) return false;\n\n var dataBox = scene.calcDataBox();\n var viewBox = plot.viewBox;\n\n var lastX = result.lastPos[0];\n var lastY = result.lastPos[1];\n\n var scale = Math.exp(5.0 * dy / (viewBox[3] - viewBox[1]));\n\n var cx = lastX /\n (viewBox[2] - viewBox[0]) * (dataBox[2] - dataBox[0]) +\n dataBox[0];\n var cy = lastY /\n (viewBox[3] - viewBox[1]) * (dataBox[3] - dataBox[1]) +\n dataBox[1];\n\n dataBox[0] = (dataBox[0] - cx) * scale + cx;\n dataBox[2] = (dataBox[2] - cx) * scale + cx;\n dataBox[1] = (dataBox[1] - cy) * scale + cy;\n dataBox[3] = (dataBox[3] - cy) * scale + cy;\n\n scene.setRanges(dataBox);\n\n result.lastInputTime = Date.now();\n unSetAutoRange();\n scene.cameraChanged();\n scene.handleAnnotations();\n scene.relayoutCallback();\n\n return true;\n }, true);\n\n return result;\n}\n\n},{\"../cartesian/constants\":561,\"has-passive-events\":229,\"mouse-change\":241,\"mouse-event-offset\":242,\"mouse-wheel\":244}],595:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../cartesian/axes');\n\nvar str2RGBArray = _dereq_('../../lib/str2rgbarray');\n\nfunction Axes2DOptions(scene) {\n this.scene = scene;\n this.gl = scene.gl;\n this.pixelRatio = scene.pixelRatio;\n\n this.screenBox = [0, 0, 1, 1];\n this.viewBox = [0, 0, 1, 1];\n this.dataBox = [-1, -1, 1, 1];\n\n this.borderLineEnable = [false, false, false, false];\n this.borderLineWidth = [1, 1, 1, 1];\n this.borderLineColor = [\n [0, 0, 0, 1],\n [0, 0, 0, 1],\n [0, 0, 0, 1],\n [0, 0, 0, 1]\n ];\n\n this.ticks = [[], []];\n this.tickEnable = [true, true, false, false];\n this.tickPad = [15, 15, 15, 15];\n this.tickAngle = [0, 0, 0, 0];\n this.tickColor = [\n [0, 0, 0, 1],\n [0, 0, 0, 1],\n [0, 0, 0, 1],\n [0, 0, 0, 1]\n ];\n this.tickMarkLength = [0, 0, 0, 0];\n this.tickMarkWidth = [0, 0, 0, 0];\n this.tickMarkColor = [\n [0, 0, 0, 1],\n [0, 0, 0, 1],\n [0, 0, 0, 1],\n [0, 0, 0, 1]\n ];\n\n this.labels = ['x', 'y'];\n this.labelEnable = [true, true, false, false];\n this.labelAngle = [0, Math.PI / 2, 0, 3.0 * Math.PI / 2];\n this.labelPad = [15, 15, 15, 15];\n this.labelSize = [12, 12];\n this.labelFont = ['sans-serif', 'sans-serif'];\n this.labelColor = [\n [0, 0, 0, 1],\n [0, 0, 0, 1],\n [0, 0, 0, 1],\n [0, 0, 0, 1]\n ];\n\n this.title = '';\n this.titleEnable = true;\n this.titleCenter = [0, 0, 0, 0];\n this.titleAngle = 0;\n this.titleColor = [0, 0, 0, 1];\n this.titleFont = 'sans-serif';\n this.titleSize = 18;\n\n this.gridLineEnable = [true, true];\n this.gridLineColor = [\n [0, 0, 0, 0.5],\n [0, 0, 0, 0.5]\n ];\n this.gridLineWidth = [1, 1];\n\n this.zeroLineEnable = [true, true];\n this.zeroLineWidth = [1, 1];\n this.zeroLineColor = [\n [0, 0, 0, 1],\n [0, 0, 0, 1]\n ];\n\n this.borderColor = [0, 0, 0, 0];\n this.backgroundColor = [0, 0, 0, 0];\n\n this.static = this.scene.staticPlot;\n}\n\nvar proto = Axes2DOptions.prototype;\n\nvar AXES = ['xaxis', 'yaxis'];\n\nproto.merge = function(options) {\n // titles are rendered in SVG\n this.titleEnable = false;\n this.backgroundColor = str2RGBArray(options.plot_bgcolor);\n\n var axisName, ax, axTitle, axMirror;\n var hasAxisInDfltPos, hasAxisInAltrPos, hasSharedAxis, mirrorLines, mirrorTicks;\n var i, j;\n\n for(i = 0; i < 2; ++i) {\n axisName = AXES[i];\n var axisLetter = axisName.charAt(0);\n\n // get options relevant to this subplot,\n // '_name' is e.g. xaxis, xaxis2, yaxis, yaxis4 ...\n ax = options[this.scene[axisName]._name];\n\n axTitle = ax.title.text === this.scene.fullLayout._dfltTitle[axisLetter] ? '' : ax.title.text;\n\n for(j = 0; j <= 2; j += 2) {\n this.labelEnable[i + j] = false;\n this.labels[i + j] = axTitle;\n this.labelColor[i + j] = str2RGBArray(ax.title.font.color);\n this.labelFont[i + j] = ax.title.font.family;\n this.labelSize[i + j] = ax.title.font.size;\n this.labelPad[i + j] = this.getLabelPad(axisName, ax);\n\n this.tickEnable[i + j] = false;\n this.tickColor[i + j] = str2RGBArray((ax.tickfont || {}).color);\n this.tickAngle[i + j] = (ax.tickangle === 'auto') ?\n 0 :\n Math.PI * -ax.tickangle / 180;\n this.tickPad[i + j] = this.getTickPad(ax);\n\n this.tickMarkLength[i + j] = 0;\n this.tickMarkWidth[i + j] = ax.tickwidth || 0;\n this.tickMarkColor[i + j] = str2RGBArray(ax.tickcolor);\n\n this.borderLineEnable[i + j] = false;\n this.borderLineColor[i + j] = str2RGBArray(ax.linecolor);\n this.borderLineWidth[i + j] = ax.linewidth || 0;\n }\n\n hasSharedAxis = this.hasSharedAxis(ax);\n hasAxisInDfltPos = this.hasAxisInDfltPos(axisName, ax) && !hasSharedAxis;\n hasAxisInAltrPos = this.hasAxisInAltrPos(axisName, ax) && !hasSharedAxis;\n\n axMirror = ax.mirror || false;\n mirrorLines = hasSharedAxis ?\n (String(axMirror).indexOf('all') !== -1) : // 'all' or 'allticks'\n !!axMirror; // all but false\n mirrorTicks = hasSharedAxis ?\n (axMirror === 'allticks') :\n (String(axMirror).indexOf('ticks') !== -1); // 'ticks' or 'allticks'\n\n // Axis titles and tick labels can only appear of one side of the scene\n // and are never show on subplots that share existing axes.\n\n if(hasAxisInDfltPos) this.labelEnable[i] = true;\n else if(hasAxisInAltrPos) this.labelEnable[i + 2] = true;\n\n if(hasAxisInDfltPos) this.tickEnable[i] = ax.showticklabels;\n else if(hasAxisInAltrPos) this.tickEnable[i + 2] = ax.showticklabels;\n\n // Grid lines and ticks can appear on both sides of the scene\n // and can appear on subplot that share existing axes via `ax.mirror`.\n\n if(hasAxisInDfltPos || mirrorLines) this.borderLineEnable[i] = ax.showline;\n if(hasAxisInAltrPos || mirrorLines) this.borderLineEnable[i + 2] = ax.showline;\n\n if(hasAxisInDfltPos || mirrorTicks) this.tickMarkLength[i] = this.getTickMarkLength(ax);\n if(hasAxisInAltrPos || mirrorTicks) this.tickMarkLength[i + 2] = this.getTickMarkLength(ax);\n\n this.gridLineEnable[i] = ax.showgrid;\n this.gridLineColor[i] = str2RGBArray(ax.gridcolor);\n this.gridLineWidth[i] = ax.gridwidth;\n\n this.zeroLineEnable[i] = ax.zeroline;\n this.zeroLineColor[i] = str2RGBArray(ax.zerolinecolor);\n this.zeroLineWidth[i] = ax.zerolinewidth;\n }\n};\n\n// is an axis shared with an already-drawn subplot ?\nproto.hasSharedAxis = function(ax) {\n var scene = this.scene;\n var subplotIds = scene.fullLayout._subplots.gl2d;\n var list = Axes.findSubplotsWithAxis(subplotIds, ax);\n\n // if index === 0, then the subplot is already drawn as subplots\n // are drawn in order.\n return (list.indexOf(scene.id) !== 0);\n};\n\n// has an axis in default position (i.e. bottom/left) ?\nproto.hasAxisInDfltPos = function(axisName, ax) {\n var axSide = ax.side;\n\n if(axisName === 'xaxis') return (axSide === 'bottom');\n else if(axisName === 'yaxis') return (axSide === 'left');\n};\n\n// has an axis in alternate position (i.e. top/right) ?\nproto.hasAxisInAltrPos = function(axisName, ax) {\n var axSide = ax.side;\n\n if(axisName === 'xaxis') return (axSide === 'top');\n else if(axisName === 'yaxis') return (axSide === 'right');\n};\n\nproto.getLabelPad = function(axisName, ax) {\n var offsetBase = 1.5;\n var fontSize = ax.title.font.size;\n var showticklabels = ax.showticklabels;\n\n if(axisName === 'xaxis') {\n return (ax.side === 'top') ?\n -10 + fontSize * (offsetBase + (showticklabels ? 1 : 0)) :\n -10 + fontSize * (offsetBase + (showticklabels ? 0.5 : 0));\n } else if(axisName === 'yaxis') {\n return (ax.side === 'right') ?\n 10 + fontSize * (offsetBase + (showticklabels ? 1 : 0.5)) :\n 10 + fontSize * (offsetBase + (showticklabels ? 0.5 : 0));\n }\n};\n\nproto.getTickPad = function(ax) {\n return (ax.ticks === 'outside') ? 10 + ax.ticklen : 15;\n};\n\nproto.getTickMarkLength = function(ax) {\n if(!ax.ticks) return 0;\n\n var ticklen = ax.ticklen;\n\n return (ax.ticks === 'inside') ? -ticklen : ticklen;\n};\n\n\nfunction createAxes2D(scene) {\n return new Axes2DOptions(scene);\n}\n\nmodule.exports = createAxes2D;\n\n},{\"../../lib/str2rgbarray\":528,\"../cartesian/axes\":554}],596:[function(_dereq_,module,exports){\n'use strict';\n\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\n\nvar Scene2D = _dereq_('./scene2d');\nvar layoutGlobalAttrs = _dereq_('../layout_attributes');\nvar xmlnsNamespaces = _dereq_('../../constants/xmlns_namespaces');\nvar constants = _dereq_('../cartesian/constants');\nvar Cartesian = _dereq_('../cartesian');\nvar fxAttrs = _dereq_('../../components/fx/layout_attributes');\nvar getSubplotData = _dereq_('../get_data').getSubplotData;\n\nexports.name = 'gl2d';\n\nexports.attr = ['xaxis', 'yaxis'];\n\nexports.idRoot = ['x', 'y'];\n\nexports.idRegex = constants.idRegex;\n\nexports.attrRegex = constants.attrRegex;\n\nexports.attributes = _dereq_('../cartesian/attributes');\n\nexports.supplyLayoutDefaults = function(layoutIn, layoutOut, fullData) {\n if(!layoutOut._has('cartesian')) {\n Cartesian.supplyLayoutDefaults(layoutIn, layoutOut, fullData);\n }\n};\n\n// gl2d uses svg axis attributes verbatim, but overrides editType\n// this could potentially be just `layoutAttributes` but it would\n// still need special handling somewhere to give it precedence over\n// the svg version when both are in use on one plot\nexports.layoutAttrOverrides = overrideAll(Cartesian.layoutAttributes, 'plot', 'from-root');\n\n// similar overrides for base plot attributes (and those added by components)\nexports.baseLayoutAttrOverrides = overrideAll({\n plot_bgcolor: layoutGlobalAttrs.plot_bgcolor,\n hoverlabel: fxAttrs.hoverlabel\n // dragmode needs calc but only when transitioning TO lasso or select\n // so for now it's left inside _relayout\n // dragmode: fxAttrs.dragmode\n}, 'plot', 'nested');\n\nexports.plot = function plot(gd) {\n var fullLayout = gd._fullLayout;\n var fullData = gd._fullData;\n var subplotIds = fullLayout._subplots.gl2d;\n\n for(var i = 0; i < subplotIds.length; i++) {\n var subplotId = subplotIds[i];\n var subplotObj = fullLayout._plots[subplotId];\n var fullSubplotData = getSubplotData(fullData, 'gl2d', subplotId);\n\n // ref. to corresp. Scene instance\n var scene = subplotObj._scene2d;\n\n // If Scene is not instantiated, create one!\n if(scene === undefined) {\n scene = new Scene2D({\n id: subplotId,\n graphDiv: gd,\n container: gd.querySelector('.gl-container'),\n staticPlot: gd._context.staticPlot,\n plotGlPixelRatio: gd._context.plotGlPixelRatio\n },\n fullLayout\n );\n\n // set ref to Scene instance\n subplotObj._scene2d = scene;\n }\n\n scene.plot(fullSubplotData, gd.calcdata, fullLayout, gd.layout);\n }\n};\n\nexports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n var oldSceneKeys = oldFullLayout._subplots.gl2d || [];\n\n for(var i = 0; i < oldSceneKeys.length; i++) {\n var id = oldSceneKeys[i];\n var oldSubplot = oldFullLayout._plots[id];\n\n // old subplot wasn't gl2d; nothing to do\n if(!oldSubplot._scene2d) continue;\n\n // if no traces are present, delete gl2d subplot\n var subplotData = getSubplotData(newFullData, 'gl2d', id);\n if(subplotData.length === 0) {\n oldSubplot._scene2d.destroy();\n delete oldFullLayout._plots[id];\n }\n }\n\n // since we use cartesian interactions, do cartesian clean\n Cartesian.clean.apply(this, arguments);\n};\n\nexports.drawFramework = function(gd) {\n if(!gd._context.staticPlot) {\n Cartesian.drawFramework(gd);\n }\n};\n\nexports.toSVG = function(gd) {\n var fullLayout = gd._fullLayout;\n var subplotIds = fullLayout._subplots.gl2d;\n\n for(var i = 0; i < subplotIds.length; i++) {\n var subplot = fullLayout._plots[subplotIds[i]];\n var scene = subplot._scene2d;\n\n var imageData = scene.toImage('png');\n var image = fullLayout._glimages.append('svg:image');\n\n image.attr({\n xmlns: xmlnsNamespaces.svg,\n 'xlink:href': imageData,\n x: 0,\n y: 0,\n width: '100%',\n height: '100%',\n preserveAspectRatio: 'none'\n });\n\n scene.destroy();\n }\n};\n\nexports.updateFx = function(gd) {\n var fullLayout = gd._fullLayout;\n var subplotIds = fullLayout._subplots.gl2d;\n\n for(var i = 0; i < subplotIds.length; i++) {\n var subplotObj = fullLayout._plots[subplotIds[i]]._scene2d;\n subplotObj.updateFx(fullLayout.dragmode);\n }\n};\n\n},{\"../../components/fx/layout_attributes\":407,\"../../constants/xmlns_namespaces\":480,\"../../plot_api/edit_types\":536,\"../cartesian\":568,\"../cartesian/attributes\":552,\"../cartesian/constants\":561,\"../get_data\":593,\"../layout_attributes\":610,\"./scene2d\":597}],597:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar Fx = _dereq_('../../components/fx');\n\nvar createPlot2D = _dereq_('../../../stackgl_modules').gl_plot2d;\nvar createSpikes = _dereq_('../../../stackgl_modules').gl_spikes2d;\nvar createSelectBox = _dereq_('../../../stackgl_modules').gl_select_box;\nvar getContext = _dereq_('webgl-context');\n\nvar createOptions = _dereq_('./convert');\nvar createCamera = _dereq_('./camera');\nvar showNoWebGlMsg = _dereq_('../../lib/show_no_webgl_msg');\nvar axisConstraints = _dereq_('../cartesian/constraints');\nvar enforceAxisConstraints = axisConstraints.enforce;\nvar cleanAxisConstraints = axisConstraints.clean;\nvar doAutoRange = _dereq_('../cartesian/autorange').doAutoRange;\n\nvar dragHelpers = _dereq_('../../components/dragelement/helpers');\nvar drawMode = dragHelpers.drawMode;\nvar selectMode = dragHelpers.selectMode;\n\nvar AXES = ['xaxis', 'yaxis'];\nvar STATIC_CANVAS, STATIC_CONTEXT;\n\nvar SUBPLOT_PATTERN = _dereq_('../cartesian/constants').SUBPLOT_PATTERN;\n\n\nfunction Scene2D(options, fullLayout) {\n this.container = options.container;\n this.graphDiv = options.graphDiv;\n this.pixelRatio = options.plotGlPixelRatio || window.devicePixelRatio;\n this.id = options.id;\n this.staticPlot = !!options.staticPlot;\n this.scrollZoom = this.graphDiv._context._scrollZoom.cartesian;\n\n this.fullData = null;\n this.updateRefs(fullLayout);\n\n this.makeFramework();\n if(this.stopped) return;\n\n // update options\n this.glplotOptions = createOptions(this);\n this.glplotOptions.merge(fullLayout);\n\n // create the plot\n this.glplot = createPlot2D(this.glplotOptions);\n\n // create camera\n this.camera = createCamera(this);\n\n // trace set\n this.traces = {};\n\n // create axes spikes\n this.spikes = createSpikes(this.glplot);\n\n this.selectBox = createSelectBox(this.glplot, {\n innerFill: false,\n outerFill: true\n });\n\n // last button state\n this.lastButtonState = 0;\n\n // last pick result\n this.pickResult = null;\n\n // is the mouse over the plot?\n // it's OK if this says true when it's not, so long as\n // when we get a mouseout we set it to false before handling\n this.isMouseOver = true;\n\n // flag to stop render loop\n this.stopped = false;\n\n // redraw the plot\n this.redraw = this.draw.bind(this);\n this.redraw();\n}\n\nmodule.exports = Scene2D;\n\nvar proto = Scene2D.prototype;\n\nproto.makeFramework = function() {\n // create canvas and gl context\n if(this.staticPlot) {\n if(!STATIC_CONTEXT) {\n STATIC_CANVAS = document.createElement('canvas');\n\n STATIC_CONTEXT = getContext({\n canvas: STATIC_CANVAS,\n preserveDrawingBuffer: false,\n premultipliedAlpha: true,\n antialias: true\n });\n\n if(!STATIC_CONTEXT) {\n throw new Error('Error creating static canvas/context for image server');\n }\n }\n\n this.canvas = STATIC_CANVAS;\n this.gl = STATIC_CONTEXT;\n } else {\n var liveCanvas = this.container.querySelector('.gl-canvas-focus');\n\n var gl = getContext({\n canvas: liveCanvas,\n preserveDrawingBuffer: true,\n premultipliedAlpha: true\n });\n\n if(!gl) {\n showNoWebGlMsg(this);\n this.stopped = true;\n return;\n }\n\n this.canvas = liveCanvas;\n this.gl = gl;\n }\n\n // position the canvas\n var canvas = this.canvas;\n\n canvas.style.width = '100%';\n canvas.style.height = '100%';\n canvas.style.position = 'absolute';\n canvas.style.top = '0px';\n canvas.style.left = '0px';\n canvas.style['pointer-events'] = 'none';\n\n this.updateSize(canvas);\n\n // create SVG container for hover text\n var svgContainer = this.svgContainer = document.createElementNS(\n 'http://www.w3.org/2000/svg',\n 'svg');\n svgContainer.style.position = 'absolute';\n svgContainer.style.top = svgContainer.style.left = '0px';\n svgContainer.style.width = svgContainer.style.height = '100%';\n svgContainer.style['z-index'] = 20;\n svgContainer.style['pointer-events'] = 'none';\n\n // create div to catch the mouse event\n var mouseContainer = this.mouseContainer = document.createElement('div');\n mouseContainer.style.position = 'absolute';\n mouseContainer.style['pointer-events'] = 'auto';\n\n this.pickCanvas = this.container.querySelector('.gl-canvas-pick');\n\n\n // append canvas, hover svg and mouse div to container\n var container = this.container;\n container.appendChild(svgContainer);\n container.appendChild(mouseContainer);\n\n var self = this;\n mouseContainer.addEventListener('mouseout', function() {\n self.isMouseOver = false;\n self.unhover();\n });\n mouseContainer.addEventListener('mouseover', function() {\n self.isMouseOver = true;\n });\n};\n\nproto.toImage = function(format) {\n if(!format) format = 'png';\n\n this.stopped = true;\n\n if(this.staticPlot) this.container.appendChild(STATIC_CANVAS);\n\n // update canvas size\n this.updateSize(this.canvas);\n\n\n // grab context and yank out pixels\n var gl = this.glplot.gl;\n var w = gl.drawingBufferWidth;\n var h = gl.drawingBufferHeight;\n\n // force redraw\n gl.clearColor(1, 1, 1, 0);\n gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT);\n this.glplot.setDirty();\n this.glplot.draw();\n\n gl.bindFramebuffer(gl.FRAMEBUFFER, null);\n\n var pixels = new Uint8Array(w * h * 4);\n gl.readPixels(0, 0, w, h, gl.RGBA, gl.UNSIGNED_BYTE, pixels);\n\n // flip pixels\n for(var j = 0, k = h - 1; j < k; ++j, --k) {\n for(var i = 0; i < w; ++i) {\n for(var l = 0; l < 4; ++l) {\n var tmp = pixels[4 * (w * j + i) + l];\n pixels[4 * (w * j + i) + l] = pixels[4 * (w * k + i) + l];\n pixels[4 * (w * k + i) + l] = tmp;\n }\n }\n }\n\n var canvas = document.createElement('canvas');\n canvas.width = w;\n canvas.height = h;\n\n var context = canvas.getContext('2d');\n var imageData = context.createImageData(w, h);\n imageData.data.set(pixels);\n context.putImageData(imageData, 0, 0);\n\n var dataURL;\n\n switch(format) {\n case 'jpeg':\n dataURL = canvas.toDataURL('image/jpeg');\n break;\n case 'webp':\n dataURL = canvas.toDataURL('image/webp');\n break;\n default:\n dataURL = canvas.toDataURL('image/png');\n }\n\n if(this.staticPlot) this.container.removeChild(STATIC_CANVAS);\n\n return dataURL;\n};\n\nproto.updateSize = function(canvas) {\n if(!canvas) canvas = this.canvas;\n\n var pixelRatio = this.pixelRatio;\n var fullLayout = this.fullLayout;\n\n var width = fullLayout.width;\n var height = fullLayout.height;\n var pixelWidth = Math.ceil(pixelRatio * width) |0;\n var pixelHeight = Math.ceil(pixelRatio * height) |0;\n\n // check for resize\n if(canvas.width !== pixelWidth || canvas.height !== pixelHeight) {\n canvas.width = pixelWidth;\n canvas.height = pixelHeight;\n }\n\n return canvas;\n};\n\nproto.computeTickMarks = function() {\n this.xaxis.setScale();\n this.yaxis.setScale();\n\n var nextTicks = [\n Axes.calcTicks(this.xaxis),\n Axes.calcTicks(this.yaxis)\n ];\n\n for(var j = 0; j < 2; ++j) {\n for(var i = 0; i < nextTicks[j].length; ++i) {\n // coercing tick value (may not be a string) to a string\n nextTicks[j][i].text = nextTicks[j][i].text + '';\n }\n }\n\n return nextTicks;\n};\n\nfunction compareTicks(a, b) {\n for(var i = 0; i < 2; ++i) {\n var aticks = a[i];\n var bticks = b[i];\n\n if(aticks.length !== bticks.length) return true;\n\n for(var j = 0; j < aticks.length; ++j) {\n if(aticks[j].x !== bticks[j].x) return true;\n }\n }\n\n return false;\n}\n\nproto.updateRefs = function(newFullLayout) {\n this.fullLayout = newFullLayout;\n\n var spmatch = this.id.match(SUBPLOT_PATTERN);\n var xaxisName = 'xaxis' + spmatch[1];\n var yaxisName = 'yaxis' + spmatch[2];\n\n this.xaxis = this.fullLayout[xaxisName];\n this.yaxis = this.fullLayout[yaxisName];\n};\n\nproto.relayoutCallback = function() {\n var graphDiv = this.graphDiv;\n var xaxis = this.xaxis;\n var yaxis = this.yaxis;\n var layout = graphDiv.layout;\n\n // make a meaningful value to be passed on to possible 'plotly_relayout' subscriber(s)\n var update = {};\n var xrange = update[xaxis._name + '.range'] = xaxis.range.slice();\n var yrange = update[yaxis._name + '.range'] = yaxis.range.slice();\n update[xaxis._name + '.autorange'] = xaxis.autorange;\n update[yaxis._name + '.autorange'] = yaxis.autorange;\n\n Registry.call('_storeDirectGUIEdit', graphDiv.layout, graphDiv._fullLayout._preGUI, update);\n\n // update the input layout\n var xaIn = layout[xaxis._name];\n xaIn.range = xrange;\n xaIn.autorange = xaxis.autorange;\n\n var yaIn = layout[yaxis._name];\n yaIn.range = yrange;\n yaIn.autorange = yaxis.autorange;\n\n // lastInputTime helps determine which one is the latest input (if async)\n update.lastInputTime = this.camera.lastInputTime;\n graphDiv.emit('plotly_relayout', update);\n};\n\nproto.cameraChanged = function() {\n var camera = this.camera;\n\n this.glplot.setDataBox(this.calcDataBox());\n\n var nextTicks = this.computeTickMarks();\n var curTicks = this.glplotOptions.ticks;\n\n if(compareTicks(nextTicks, curTicks)) {\n this.glplotOptions.ticks = nextTicks;\n this.glplotOptions.dataBox = camera.dataBox;\n this.glplot.update(this.glplotOptions);\n this.handleAnnotations();\n }\n};\n\nproto.handleAnnotations = function() {\n var gd = this.graphDiv;\n var annotations = this.fullLayout.annotations;\n\n for(var i = 0; i < annotations.length; i++) {\n var ann = annotations[i];\n\n if(ann.xref === this.xaxis._id && ann.yref === this.yaxis._id) {\n Registry.getComponentMethod('annotations', 'drawOne')(gd, i);\n }\n }\n};\n\nproto.destroy = function() {\n if(!this.glplot) return;\n\n var traces = this.traces;\n\n if(traces) {\n Object.keys(traces).map(function(key) {\n traces[key].dispose();\n delete traces[key];\n });\n }\n\n this.glplot.dispose();\n\n this.container.removeChild(this.svgContainer);\n this.container.removeChild(this.mouseContainer);\n\n this.fullData = null;\n this.glplot = null;\n this.stopped = true;\n this.camera.mouseListener.enabled = false;\n this.mouseContainer.removeEventListener('wheel', this.camera.wheelListener);\n this.camera = null;\n};\n\nproto.plot = function(fullData, calcData, fullLayout) {\n var glplot = this.glplot;\n\n this.updateRefs(fullLayout);\n this.xaxis.clearCalc();\n this.yaxis.clearCalc();\n this.updateTraces(fullData, calcData);\n this.updateFx(fullLayout.dragmode);\n\n var width = fullLayout.width;\n var height = fullLayout.height;\n\n this.updateSize(this.canvas);\n\n var options = this.glplotOptions;\n options.merge(fullLayout);\n options.screenBox = [0, 0, width, height];\n\n var mockGraphDiv = {_fullLayout: {\n _axisConstraintGroups: fullLayout._axisConstraintGroups,\n xaxis: this.xaxis,\n yaxis: this.yaxis,\n _size: fullLayout._size\n }};\n\n cleanAxisConstraints(mockGraphDiv, this.xaxis);\n cleanAxisConstraints(mockGraphDiv, this.yaxis);\n\n var size = fullLayout._size;\n var domainX = this.xaxis.domain;\n var domainY = this.yaxis.domain;\n\n options.viewBox = [\n size.l + domainX[0] * size.w,\n size.b + domainY[0] * size.h,\n (width - size.r) - (1 - domainX[1]) * size.w,\n (height - size.t) - (1 - domainY[1]) * size.h\n ];\n\n this.mouseContainer.style.width = size.w * (domainX[1] - domainX[0]) + 'px';\n this.mouseContainer.style.height = size.h * (domainY[1] - domainY[0]) + 'px';\n this.mouseContainer.height = size.h * (domainY[1] - domainY[0]);\n this.mouseContainer.style.left = size.l + domainX[0] * size.w + 'px';\n this.mouseContainer.style.top = size.t + (1 - domainY[1]) * size.h + 'px';\n\n var ax, i;\n\n for(i = 0; i < 2; ++i) {\n ax = this[AXES[i]];\n ax._length = options.viewBox[i + 2] - options.viewBox[i];\n\n doAutoRange(this.graphDiv, ax);\n ax.setScale();\n }\n\n enforceAxisConstraints(mockGraphDiv);\n\n options.ticks = this.computeTickMarks();\n\n options.dataBox = this.calcDataBox();\n\n options.merge(fullLayout);\n glplot.update(options);\n\n // force redraw so that promise is returned when rendering is completed\n this.glplot.draw();\n};\n\nproto.calcDataBox = function() {\n var xaxis = this.xaxis;\n var yaxis = this.yaxis;\n var xrange = xaxis.range;\n var yrange = yaxis.range;\n var xr2l = xaxis.r2l;\n var yr2l = yaxis.r2l;\n\n return [xr2l(xrange[0]), yr2l(yrange[0]), xr2l(xrange[1]), yr2l(yrange[1])];\n};\n\nproto.setRanges = function(dataBox) {\n var xaxis = this.xaxis;\n var yaxis = this.yaxis;\n var xl2r = xaxis.l2r;\n var yl2r = yaxis.l2r;\n\n xaxis.range = [xl2r(dataBox[0]), xl2r(dataBox[2])];\n yaxis.range = [yl2r(dataBox[1]), yl2r(dataBox[3])];\n};\n\nproto.updateTraces = function(fullData, calcData) {\n var traceIds = Object.keys(this.traces);\n var i, j, fullTrace;\n\n this.fullData = fullData;\n\n // remove empty traces\n traceIdLoop:\n for(i = 0; i < traceIds.length; i++) {\n var oldUid = traceIds[i];\n var oldTrace = this.traces[oldUid];\n\n for(j = 0; j < fullData.length; j++) {\n fullTrace = fullData[j];\n\n if(fullTrace.uid === oldUid && fullTrace.type === oldTrace.type) {\n continue traceIdLoop;\n }\n }\n\n oldTrace.dispose();\n delete this.traces[oldUid];\n }\n\n // update / create trace objects\n for(i = 0; i < fullData.length; i++) {\n fullTrace = fullData[i];\n var calcTrace = calcData[i];\n var traceObj = this.traces[fullTrace.uid];\n\n if(traceObj) traceObj.update(fullTrace, calcTrace);\n else {\n traceObj = fullTrace._module.plot(this, fullTrace, calcTrace);\n this.traces[fullTrace.uid] = traceObj;\n }\n }\n\n // order object per traces\n this.glplot.objects.sort(function(a, b) {\n return a._trace.index - b._trace.index;\n });\n};\n\nproto.updateFx = function(dragmode) {\n // switch to svg interactions in lasso/select mode & shape drawing\n if(selectMode(dragmode) || drawMode(dragmode)) {\n this.pickCanvas.style['pointer-events'] = 'none';\n this.mouseContainer.style['pointer-events'] = 'none';\n } else {\n this.pickCanvas.style['pointer-events'] = 'auto';\n this.mouseContainer.style['pointer-events'] = 'auto';\n }\n\n // set proper cursor\n if(dragmode === 'pan') {\n this.mouseContainer.style.cursor = 'move';\n } else if(dragmode === 'zoom') {\n this.mouseContainer.style.cursor = 'crosshair';\n } else {\n this.mouseContainer.style.cursor = null;\n }\n};\n\nproto.emitPointAction = function(nextSelection, eventType) {\n var uid = nextSelection.trace.uid;\n var ptNumber = nextSelection.pointIndex;\n var trace;\n\n for(var i = 0; i < this.fullData.length; i++) {\n if(this.fullData[i].uid === uid) {\n trace = this.fullData[i];\n }\n }\n\n var pointData = {\n x: nextSelection.traceCoord[0],\n y: nextSelection.traceCoord[1],\n curveNumber: trace.index,\n pointNumber: ptNumber,\n data: trace._input,\n fullData: this.fullData,\n xaxis: this.xaxis,\n yaxis: this.yaxis\n };\n\n Fx.appendArrayPointValue(pointData, trace, ptNumber);\n\n this.graphDiv.emit(eventType, {points: [pointData]});\n};\n\nproto.draw = function() {\n if(this.stopped) return;\n\n requestAnimationFrame(this.redraw);\n\n var glplot = this.glplot;\n var camera = this.camera;\n var mouseListener = camera.mouseListener;\n var mouseUp = this.lastButtonState === 1 && mouseListener.buttons === 0;\n var fullLayout = this.fullLayout;\n\n this.lastButtonState = mouseListener.buttons;\n\n this.cameraChanged();\n\n var x = mouseListener.x * glplot.pixelRatio;\n var y = this.canvas.height - glplot.pixelRatio * mouseListener.y;\n\n var result;\n\n if(camera.boxEnabled && fullLayout.dragmode === 'zoom') {\n this.selectBox.enabled = true;\n\n var selectBox = this.selectBox.selectBox = [\n Math.min(camera.boxStart[0], camera.boxEnd[0]),\n Math.min(camera.boxStart[1], camera.boxEnd[1]),\n Math.max(camera.boxStart[0], camera.boxEnd[0]),\n Math.max(camera.boxStart[1], camera.boxEnd[1])\n ];\n\n // 1D zoom\n for(var i = 0; i < 2; i++) {\n if(camera.boxStart[i] === camera.boxEnd[i]) {\n selectBox[i] = glplot.dataBox[i];\n selectBox[i + 2] = glplot.dataBox[i + 2];\n }\n }\n\n glplot.setDirty();\n } else if(!camera.panning && this.isMouseOver) {\n this.selectBox.enabled = false;\n\n var size = fullLayout._size;\n var domainX = this.xaxis.domain;\n var domainY = this.yaxis.domain;\n\n result = glplot.pick(\n (x / glplot.pixelRatio) + size.l + domainX[0] * size.w,\n (y / glplot.pixelRatio) - (size.t + (1 - domainY[1]) * size.h)\n );\n\n var nextSelection = result && result.object._trace.handlePick(result);\n\n if(nextSelection && mouseUp) {\n this.emitPointAction(nextSelection, 'plotly_click');\n }\n\n if(result && result.object._trace.hoverinfo !== 'skip' && fullLayout.hovermode) {\n if(nextSelection && (\n !this.lastPickResult ||\n this.lastPickResult.traceUid !== nextSelection.trace.uid ||\n this.lastPickResult.dataCoord[0] !== nextSelection.dataCoord[0] ||\n this.lastPickResult.dataCoord[1] !== nextSelection.dataCoord[1])\n ) {\n var selection = nextSelection;\n\n this.lastPickResult = {\n traceUid: nextSelection.trace ? nextSelection.trace.uid : null,\n dataCoord: nextSelection.dataCoord.slice()\n };\n this.spikes.update({ center: result.dataCoord });\n\n selection.screenCoord = [\n ((glplot.viewBox[2] - glplot.viewBox[0]) *\n (result.dataCoord[0] - glplot.dataBox[0]) /\n (glplot.dataBox[2] - glplot.dataBox[0]) + glplot.viewBox[0]) /\n glplot.pixelRatio,\n (this.canvas.height - (glplot.viewBox[3] - glplot.viewBox[1]) *\n (result.dataCoord[1] - glplot.dataBox[1]) /\n (glplot.dataBox[3] - glplot.dataBox[1]) - glplot.viewBox[1]) /\n glplot.pixelRatio\n ];\n\n // this needs to happen before the next block that deletes traceCoord data\n // also it's important to copy, otherwise data is lost by the time event data is read\n this.emitPointAction(nextSelection, 'plotly_hover');\n\n var trace = this.fullData[selection.trace.index] || {};\n var ptNumber = selection.pointIndex;\n var hoverinfo = Fx.castHoverinfo(trace, fullLayout, ptNumber);\n\n if(hoverinfo && hoverinfo !== 'all') {\n var parts = hoverinfo.split('+');\n if(parts.indexOf('x') === -1) selection.traceCoord[0] = undefined;\n if(parts.indexOf('y') === -1) selection.traceCoord[1] = undefined;\n if(parts.indexOf('z') === -1) selection.traceCoord[2] = undefined;\n if(parts.indexOf('text') === -1) selection.textLabel = undefined;\n if(parts.indexOf('name') === -1) selection.name = undefined;\n }\n\n Fx.loneHover({\n x: selection.screenCoord[0],\n y: selection.screenCoord[1],\n xLabel: this.hoverFormatter('xaxis', selection.traceCoord[0]),\n yLabel: this.hoverFormatter('yaxis', selection.traceCoord[1]),\n zLabel: selection.traceCoord[2],\n text: selection.textLabel,\n name: selection.name,\n color: Fx.castHoverOption(trace, ptNumber, 'bgcolor') || selection.color,\n borderColor: Fx.castHoverOption(trace, ptNumber, 'bordercolor'),\n fontFamily: Fx.castHoverOption(trace, ptNumber, 'font.family'),\n fontSize: Fx.castHoverOption(trace, ptNumber, 'font.size'),\n fontColor: Fx.castHoverOption(trace, ptNumber, 'font.color'),\n nameLength: Fx.castHoverOption(trace, ptNumber, 'namelength'),\n textAlign: Fx.castHoverOption(trace, ptNumber, 'align')\n }, {\n container: this.svgContainer,\n gd: this.graphDiv\n });\n }\n }\n }\n\n // Remove hover effects if we're not over a point OR\n // if we're zooming or panning (in which case result is not set)\n if(!result) {\n this.unhover();\n }\n\n glplot.draw();\n};\n\nproto.unhover = function() {\n if(this.lastPickResult) {\n this.spikes.update({});\n this.lastPickResult = null;\n this.graphDiv.emit('plotly_unhover');\n Fx.loneUnhover(this.svgContainer);\n }\n};\n\nproto.hoverFormatter = function(axisName, val) {\n if(val === undefined) return undefined;\n\n var axis = this[axisName];\n return Axes.tickText(axis, axis.c2l(val), 'hover').text;\n};\n\n},{\"../../../stackgl_modules\":1119,\"../../components/dragelement/helpers\":384,\"../../components/fx\":406,\"../../lib/show_no_webgl_msg\":525,\"../../plots/cartesian/axes\":554,\"../../registry\":638,\"../cartesian/autorange\":553,\"../cartesian/constants\":561,\"../cartesian/constraints\":562,\"./camera\":594,\"./convert\":595,\"webgl-context\":331}],598:[function(_dereq_,module,exports){\n'use strict';\n\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\nvar fxAttrs = _dereq_('../../components/fx/layout_attributes');\n\nvar Scene = _dereq_('./scene');\nvar getSubplotData = _dereq_('../get_data').getSubplotData;\nvar Lib = _dereq_('../../lib');\nvar xmlnsNamespaces = _dereq_('../../constants/xmlns_namespaces');\n\nvar GL3D = 'gl3d';\nvar SCENE = 'scene';\n\n\nexports.name = GL3D;\n\nexports.attr = SCENE;\n\nexports.idRoot = SCENE;\n\nexports.idRegex = exports.attrRegex = Lib.counterRegex('scene');\n\nexports.attributes = _dereq_('./layout/attributes');\n\nexports.layoutAttributes = _dereq_('./layout/layout_attributes');\n\nexports.baseLayoutAttrOverrides = overrideAll({\n hoverlabel: fxAttrs.hoverlabel\n}, 'plot', 'nested');\n\nexports.supplyLayoutDefaults = _dereq_('./layout/defaults');\n\nexports.plot = function plot(gd) {\n var fullLayout = gd._fullLayout;\n var fullData = gd._fullData;\n var sceneIds = fullLayout._subplots[GL3D];\n\n for(var i = 0; i < sceneIds.length; i++) {\n var sceneId = sceneIds[i];\n var fullSceneData = getSubplotData(fullData, GL3D, sceneId);\n var sceneLayout = fullLayout[sceneId];\n var camera = sceneLayout.camera;\n var scene = sceneLayout._scene;\n\n if(!scene) {\n scene = new Scene({\n id: sceneId,\n graphDiv: gd,\n container: gd.querySelector('.gl-container'),\n staticPlot: gd._context.staticPlot,\n plotGlPixelRatio: gd._context.plotGlPixelRatio,\n camera: camera\n },\n fullLayout\n );\n\n // set ref to Scene instance\n sceneLayout._scene = scene;\n }\n\n // save 'initial' camera view settings for modebar button\n if(!scene.viewInitial) {\n scene.viewInitial = {\n up: {\n x: camera.up.x,\n y: camera.up.y,\n z: camera.up.z\n },\n eye: {\n x: camera.eye.x,\n y: camera.eye.y,\n z: camera.eye.z\n },\n center: {\n x: camera.center.x,\n y: camera.center.y,\n z: camera.center.z\n }\n };\n }\n\n scene.plot(fullSceneData, fullLayout, gd.layout);\n }\n};\n\nexports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n var oldSceneKeys = oldFullLayout._subplots[GL3D] || [];\n\n for(var i = 0; i < oldSceneKeys.length; i++) {\n var oldSceneKey = oldSceneKeys[i];\n\n if(!newFullLayout[oldSceneKey] && !!oldFullLayout[oldSceneKey]._scene) {\n oldFullLayout[oldSceneKey]._scene.destroy();\n\n if(oldFullLayout._infolayer) {\n oldFullLayout._infolayer\n .selectAll('.annotation-' + oldSceneKey)\n .remove();\n }\n }\n }\n};\n\nexports.toSVG = function(gd) {\n var fullLayout = gd._fullLayout;\n var sceneIds = fullLayout._subplots[GL3D];\n var size = fullLayout._size;\n\n for(var i = 0; i < sceneIds.length; i++) {\n var sceneLayout = fullLayout[sceneIds[i]];\n var domain = sceneLayout.domain;\n var scene = sceneLayout._scene;\n\n var imageData = scene.toImage('png');\n var image = fullLayout._glimages.append('svg:image');\n\n image.attr({\n xmlns: xmlnsNamespaces.svg,\n 'xlink:href': imageData,\n x: size.l + size.w * domain.x[0],\n y: size.t + size.h * (1 - domain.y[1]),\n width: size.w * (domain.x[1] - domain.x[0]),\n height: size.h * (domain.y[1] - domain.y[0]),\n preserveAspectRatio: 'none'\n });\n\n scene.destroy();\n }\n};\n\n// clean scene ids, 'scene1' -> 'scene'\nexports.cleanId = function cleanId(id) {\n if(!id.match(/^scene[0-9]*$/)) return;\n\n var sceneNum = id.substr(5);\n if(sceneNum === '1') sceneNum = '';\n\n return SCENE + sceneNum;\n};\n\nexports.updateFx = function(gd) {\n var fullLayout = gd._fullLayout;\n var subplotIds = fullLayout._subplots[GL3D];\n\n for(var i = 0; i < subplotIds.length; i++) {\n var subplotObj = fullLayout[subplotIds[i]]._scene;\n subplotObj.updateFx(fullLayout.dragmode, fullLayout.hovermode);\n }\n};\n\n},{\"../../components/fx/layout_attributes\":407,\"../../constants/xmlns_namespaces\":480,\"../../lib\":503,\"../../plot_api/edit_types\":536,\"../get_data\":593,\"./layout/attributes\":599,\"./layout/defaults\":603,\"./layout/layout_attributes\":604,\"./scene\":608}],599:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = {\n scene: {\n valType: 'subplotid',\n dflt: 'scene',\n editType: 'calc+clearAxisTypes',\n }\n};\n\n},{}],600:[function(_dereq_,module,exports){\n'use strict';\n\nvar Color = _dereq_('../../../components/color');\nvar axesAttrs = _dereq_('../../cartesian/layout_attributes');\nvar extendFlat = _dereq_('../../../lib/extend').extendFlat;\nvar overrideAll = _dereq_('../../../plot_api/edit_types').overrideAll;\n\nmodule.exports = overrideAll({\n visible: axesAttrs.visible,\n showspikes: {\n valType: 'boolean',\n dflt: true,\n },\n spikesides: {\n valType: 'boolean',\n dflt: true,\n },\n spikethickness: {\n valType: 'number',\n min: 0,\n dflt: 2,\n },\n spikecolor: {\n valType: 'color',\n dflt: Color.defaultLine,\n },\n showbackground: {\n valType: 'boolean',\n dflt: false,\n },\n backgroundcolor: {\n valType: 'color',\n dflt: 'rgba(204, 204, 204, 0.5)',\n },\n showaxeslabels: {\n valType: 'boolean',\n dflt: true,\n },\n color: axesAttrs.color,\n categoryorder: axesAttrs.categoryorder,\n categoryarray: axesAttrs.categoryarray,\n title: {\n text: axesAttrs.title.text,\n font: axesAttrs.title.font\n },\n type: extendFlat({}, axesAttrs.type, {\n values: ['-', 'linear', 'log', 'date', 'category']\n }),\n autotypenumbers: axesAttrs.autotypenumbers,\n autorange: axesAttrs.autorange,\n rangemode: axesAttrs.rangemode,\n range: extendFlat({}, axesAttrs.range, {\n items: [\n {valType: 'any', editType: 'plot', impliedEdits: {'^autorange': false}},\n {valType: 'any', editType: 'plot', impliedEdits: {'^autorange': false}}\n ],\n anim: false\n }),\n // ticks\n tickmode: axesAttrs.tickmode,\n nticks: axesAttrs.nticks,\n tick0: axesAttrs.tick0,\n dtick: axesAttrs.dtick,\n tickvals: axesAttrs.tickvals,\n ticktext: axesAttrs.ticktext,\n ticks: axesAttrs.ticks,\n mirror: axesAttrs.mirror,\n ticklen: axesAttrs.ticklen,\n tickwidth: axesAttrs.tickwidth,\n tickcolor: axesAttrs.tickcolor,\n showticklabels: axesAttrs.showticklabels,\n tickfont: axesAttrs.tickfont,\n tickangle: axesAttrs.tickangle,\n tickprefix: axesAttrs.tickprefix,\n showtickprefix: axesAttrs.showtickprefix,\n ticksuffix: axesAttrs.ticksuffix,\n showticksuffix: axesAttrs.showticksuffix,\n showexponent: axesAttrs.showexponent,\n exponentformat: axesAttrs.exponentformat,\n minexponent: axesAttrs.minexponent,\n separatethousands: axesAttrs.separatethousands,\n tickformat: axesAttrs.tickformat,\n tickformatstops: axesAttrs.tickformatstops,\n hoverformat: axesAttrs.hoverformat,\n // lines and grids\n showline: axesAttrs.showline,\n linecolor: axesAttrs.linecolor,\n linewidth: axesAttrs.linewidth,\n showgrid: axesAttrs.showgrid,\n gridcolor: extendFlat({}, axesAttrs.gridcolor, // shouldn't this be on-par with 2D?\n {dflt: 'rgb(204, 204, 204)'}),\n gridwidth: axesAttrs.gridwidth,\n zeroline: axesAttrs.zeroline,\n zerolinecolor: axesAttrs.zerolinecolor,\n zerolinewidth: axesAttrs.zerolinewidth,\n _deprecated: {\n title: axesAttrs._deprecated.title,\n titlefont: axesAttrs._deprecated.titlefont\n }\n}, 'plot', 'from-root');\n\n},{\"../../../components/color\":366,\"../../../lib/extend\":493,\"../../../plot_api/edit_types\":536,\"../../cartesian/layout_attributes\":569}],601:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorMix = _dereq_('tinycolor2').mix;\n\nvar Lib = _dereq_('../../../lib');\nvar Template = _dereq_('../../../plot_api/plot_template');\n\nvar layoutAttributes = _dereq_('./axis_attributes');\nvar handleTypeDefaults = _dereq_('../../cartesian/type_defaults');\nvar handleAxisDefaults = _dereq_('../../cartesian/axis_defaults');\n\nvar axesNames = ['xaxis', 'yaxis', 'zaxis'];\n\n// TODO: hard-coded lightness fraction based on gridline default colors\n// that differ from other subplot types.\nvar gridLightness = 100 * (204 - 0x44) / (255 - 0x44);\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut, options) {\n var containerIn, containerOut;\n\n function coerce(attr, dflt) {\n return Lib.coerce(containerIn, containerOut, layoutAttributes, attr, dflt);\n }\n\n for(var j = 0; j < axesNames.length; j++) {\n var axName = axesNames[j];\n containerIn = layoutIn[axName] || {};\n\n containerOut = Template.newContainer(layoutOut, axName);\n containerOut._id = axName[0] + options.scene;\n containerOut._name = axName;\n\n handleTypeDefaults(containerIn, containerOut, coerce, options);\n\n handleAxisDefaults(\n containerIn,\n containerOut,\n coerce,\n {\n font: options.font,\n letter: axName[0],\n data: options.data,\n showGrid: true,\n noTickson: true,\n noTicklabelmode: true,\n noTicklabelposition: true,\n noTicklabeloverflow: true,\n bgColor: options.bgColor,\n calendar: options.calendar\n },\n options.fullLayout);\n\n coerce('gridcolor', colorMix(containerOut.color, options.bgColor, gridLightness).toRgbString());\n coerce('title.text', axName[0]); // shouldn't this be on-par with 2D?\n\n containerOut.setScale = Lib.noop;\n\n if(coerce('showspikes')) {\n coerce('spikesides');\n coerce('spikethickness');\n coerce('spikecolor', containerOut.color);\n }\n\n coerce('showaxeslabels');\n if(coerce('showbackground')) coerce('backgroundcolor');\n }\n};\n\n},{\"../../../lib\":503,\"../../../plot_api/plot_template\":543,\"../../cartesian/axis_defaults\":556,\"../../cartesian/type_defaults\":582,\"./axis_attributes\":600,\"tinycolor2\":312}],602:[function(_dereq_,module,exports){\n'use strict';\n\nvar str2RgbaArray = _dereq_('../../../lib/str2rgbarray');\nvar Lib = _dereq_('../../../lib');\n\nvar AXES_NAMES = ['xaxis', 'yaxis', 'zaxis'];\n\nfunction AxesOptions() {\n this.bounds = [\n [-10, -10, -10],\n [10, 10, 10]\n ];\n\n this.ticks = [ [], [], [] ];\n this.tickEnable = [ true, true, true ];\n this.tickFont = [ 'sans-serif', 'sans-serif', 'sans-serif' ];\n this.tickSize = [ 12, 12, 12 ];\n this.tickAngle = [ 0, 0, 0 ];\n this.tickColor = [ [0, 0, 0, 1], [0, 0, 0, 1], [0, 0, 0, 1] ];\n this.tickPad = [ 18, 18, 18 ];\n\n this.labels = [ 'x', 'y', 'z' ];\n this.labelEnable = [ true, true, true ];\n this.labelFont = ['Open Sans', 'Open Sans', 'Open Sans'];\n this.labelSize = [ 20, 20, 20 ];\n this.labelColor = [ [0, 0, 0, 1], [0, 0, 0, 1], [0, 0, 0, 1] ];\n this.labelPad = [ 30, 30, 30 ];\n\n this.lineEnable = [ true, true, true ];\n this.lineMirror = [ false, false, false ];\n this.lineWidth = [ 1, 1, 1 ];\n this.lineColor = [ [0, 0, 0, 1], [0, 0, 0, 1], [0, 0, 0, 1] ];\n\n this.lineTickEnable = [ true, true, true ];\n this.lineTickMirror = [ false, false, false ];\n this.lineTickLength = [ 10, 10, 10 ];\n this.lineTickWidth = [ 1, 1, 1 ];\n this.lineTickColor = [ [0, 0, 0, 1], [0, 0, 0, 1], [0, 0, 0, 1] ];\n\n this.gridEnable = [ true, true, true ];\n this.gridWidth = [ 1, 1, 1 ];\n this.gridColor = [ [0, 0, 0, 1], [0, 0, 0, 1], [0, 0, 0, 1] ];\n\n this.zeroEnable = [ true, true, true ];\n this.zeroLineColor = [ [0, 0, 0, 1], [0, 0, 0, 1], [0, 0, 0, 1] ];\n this.zeroLineWidth = [ 2, 2, 2 ];\n\n this.backgroundEnable = [ true, true, true ];\n this.backgroundColor = [ [0.8, 0.8, 0.8, 0.5],\n [0.8, 0.8, 0.8, 0.5],\n [0.8, 0.8, 0.8, 0.5] ];\n\n // some default values are stored for applying model transforms\n this._defaultTickPad = this.tickPad.slice();\n this._defaultLabelPad = this.labelPad.slice();\n this._defaultLineTickLength = this.lineTickLength.slice();\n}\n\nvar proto = AxesOptions.prototype;\n\nproto.merge = function(fullLayout, sceneLayout) {\n var opts = this;\n for(var i = 0; i < 3; ++i) {\n var axes = sceneLayout[AXES_NAMES[i]];\n\n if(!axes.visible) {\n opts.tickEnable[i] = false;\n opts.labelEnable[i] = false;\n opts.lineEnable[i] = false;\n opts.lineTickEnable[i] = false;\n opts.gridEnable[i] = false;\n opts.zeroEnable[i] = false;\n opts.backgroundEnable[i] = false;\n continue;\n }\n\n // Axes labels\n opts.labels[i] = fullLayout._meta ?\n Lib.templateString(axes.title.text, fullLayout._meta) :\n axes.title.text;\n\n if('font' in axes.title) {\n if(axes.title.font.color) opts.labelColor[i] = str2RgbaArray(axes.title.font.color);\n if(axes.title.font.family) opts.labelFont[i] = axes.title.font.family;\n if(axes.title.font.size) opts.labelSize[i] = axes.title.font.size;\n }\n\n // Lines\n if('showline' in axes) opts.lineEnable[i] = axes.showline;\n if('linecolor' in axes) opts.lineColor[i] = str2RgbaArray(axes.linecolor);\n if('linewidth' in axes) opts.lineWidth[i] = axes.linewidth;\n\n if('showgrid' in axes) opts.gridEnable[i] = axes.showgrid;\n if('gridcolor' in axes) opts.gridColor[i] = str2RgbaArray(axes.gridcolor);\n if('gridwidth' in axes) opts.gridWidth[i] = axes.gridwidth;\n\n // Remove zeroline if axis type is log\n // otherwise the zeroline is incorrectly drawn at 1 on log axes\n if(axes.type === 'log') opts.zeroEnable[i] = false;\n else if('zeroline' in axes) opts.zeroEnable[i] = axes.zeroline;\n if('zerolinecolor' in axes) opts.zeroLineColor[i] = str2RgbaArray(axes.zerolinecolor);\n if('zerolinewidth' in axes) opts.zeroLineWidth[i] = axes.zerolinewidth;\n\n // tick lines\n if('ticks' in axes && !!axes.ticks) opts.lineTickEnable[i] = true;\n else opts.lineTickEnable[i] = false;\n\n if('ticklen' in axes) {\n opts.lineTickLength[i] = opts._defaultLineTickLength[i] = axes.ticklen;\n }\n if('tickcolor' in axes) opts.lineTickColor[i] = str2RgbaArray(axes.tickcolor);\n if('tickwidth' in axes) opts.lineTickWidth[i] = axes.tickwidth;\n if('tickangle' in axes) {\n opts.tickAngle[i] = (axes.tickangle === 'auto') ?\n -3600 : // i.e. special number to set auto option\n Math.PI * -axes.tickangle / 180;\n }\n\n // tick labels\n if('showticklabels' in axes) opts.tickEnable[i] = axes.showticklabels;\n if('tickfont' in axes) {\n if(axes.tickfont.color) opts.tickColor[i] = str2RgbaArray(axes.tickfont.color);\n if(axes.tickfont.family) opts.tickFont[i] = axes.tickfont.family;\n if(axes.tickfont.size) opts.tickSize[i] = axes.tickfont.size;\n }\n\n if('mirror' in axes) {\n if(['ticks', 'all', 'allticks'].indexOf(axes.mirror) !== -1) {\n opts.lineTickMirror[i] = true;\n opts.lineMirror[i] = true;\n } else if(axes.mirror === true) {\n opts.lineTickMirror[i] = false;\n opts.lineMirror[i] = true;\n } else {\n opts.lineTickMirror[i] = false;\n opts.lineMirror[i] = false;\n }\n } else opts.lineMirror[i] = false;\n\n // grid background\n if('showbackground' in axes && axes.showbackground !== false) {\n opts.backgroundEnable[i] = true;\n opts.backgroundColor[i] = str2RgbaArray(axes.backgroundcolor);\n } else opts.backgroundEnable[i] = false;\n }\n};\n\n\nfunction createAxesOptions(fullLayout, sceneLayout) {\n var result = new AxesOptions();\n result.merge(fullLayout, sceneLayout);\n return result;\n}\n\nmodule.exports = createAxesOptions;\n\n},{\"../../../lib\":503,\"../../../lib/str2rgbarray\":528}],603:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../../lib');\nvar Color = _dereq_('../../../components/color');\nvar Registry = _dereq_('../../../registry');\n\nvar handleSubplotDefaults = _dereq_('../../subplot_defaults');\nvar supplyGl3dAxisLayoutDefaults = _dereq_('./axis_defaults');\nvar layoutAttributes = _dereq_('./layout_attributes');\nvar getSubplotData = _dereq_('../../get_data').getSubplotData;\n\nvar GL3D = 'gl3d';\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut, fullData) {\n var hasNon3D = layoutOut._basePlotModules.length > 1;\n\n // some layout-wide attribute are used in all scenes\n // if 3D is the only visible plot type\n function getDfltFromLayout(attr) {\n if(hasNon3D) return;\n\n var isValid = Lib.validate(layoutIn[attr], layoutAttributes[attr]);\n if(isValid) return layoutIn[attr];\n }\n\n handleSubplotDefaults(layoutIn, layoutOut, fullData, {\n type: GL3D,\n attributes: layoutAttributes,\n handleDefaults: handleGl3dDefaults,\n fullLayout: layoutOut,\n font: layoutOut.font,\n fullData: fullData,\n getDfltFromLayout: getDfltFromLayout,\n autotypenumbersDflt: layoutOut.autotypenumbers,\n paper_bgcolor: layoutOut.paper_bgcolor,\n calendar: layoutOut.calendar\n });\n};\n\nfunction handleGl3dDefaults(sceneLayoutIn, sceneLayoutOut, coerce, opts) {\n /*\n * Scene numbering proceeds as follows\n * scene\n * scene2\n * scene3\n *\n * and d.scene will be undefined or some number or number string\n *\n * Also write back a blank scene object to user layout so that some\n * attributes like aspectratio can be written back dynamically.\n */\n\n var bgcolor = coerce('bgcolor');\n var bgColorCombined = Color.combine(bgcolor, opts.paper_bgcolor);\n\n var cameraKeys = ['up', 'center', 'eye'];\n\n for(var j = 0; j < cameraKeys.length; j++) {\n coerce('camera.' + cameraKeys[j] + '.x');\n coerce('camera.' + cameraKeys[j] + '.y');\n coerce('camera.' + cameraKeys[j] + '.z');\n }\n\n coerce('camera.projection.type');\n\n /*\n * coerce to positive number (min 0) but also do not accept 0 (>0 not >=0)\n * note that 0's go false with the !! call\n */\n var hasAspect = !!coerce('aspectratio.x') &&\n !!coerce('aspectratio.y') &&\n !!coerce('aspectratio.z');\n\n var defaultAspectMode = hasAspect ? 'manual' : 'auto';\n var aspectMode = coerce('aspectmode', defaultAspectMode);\n\n /*\n * We need aspectratio object in all the Layouts as it is dynamically set\n * in the calculation steps, ie, we cant set the correct data now, it happens later.\n * We must also account for the case the user sends bad ratio data with 'manual' set\n * for the mode. In this case we must force change it here as the default coerce\n * misses it above.\n */\n if(!hasAspect) {\n sceneLayoutIn.aspectratio = sceneLayoutOut.aspectratio = {x: 1, y: 1, z: 1};\n\n if(aspectMode === 'manual') sceneLayoutOut.aspectmode = 'auto';\n\n /*\n * kind of like autorange - we need the calculated aspectmode back in\n * the input layout or relayout can cause problems later\n */\n sceneLayoutIn.aspectmode = sceneLayoutOut.aspectmode;\n }\n\n var fullGl3dData = getSubplotData(opts.fullData, GL3D, opts.id);\n\n supplyGl3dAxisLayoutDefaults(sceneLayoutIn, sceneLayoutOut, {\n font: opts.font,\n scene: opts.id,\n data: fullGl3dData,\n bgColor: bgColorCombined,\n calendar: opts.calendar,\n autotypenumbersDflt: opts.autotypenumbersDflt,\n fullLayout: opts.fullLayout\n });\n\n Registry.getComponentMethod('annotations3d', 'handleDefaults')(\n sceneLayoutIn, sceneLayoutOut, opts\n );\n\n var dragmode = opts.getDfltFromLayout('dragmode');\n\n if(dragmode !== false) {\n if(!dragmode) {\n dragmode = 'orbit';\n\n if(sceneLayoutIn.camera &&\n sceneLayoutIn.camera.up) {\n var x = sceneLayoutIn.camera.up.x;\n var y = sceneLayoutIn.camera.up.y;\n var z = sceneLayoutIn.camera.up.z;\n\n if(z !== 0) {\n if(!x || !y || !z) {\n dragmode = 'turntable';\n } else if(z / Math.sqrt(x * x + y * y + z * z) > 0.999) {\n dragmode = 'turntable';\n }\n }\n } else {\n dragmode = 'turntable';\n }\n }\n }\n\n coerce('dragmode', dragmode);\n coerce('hovermode', opts.getDfltFromLayout('hovermode'));\n}\n\n},{\"../../../components/color\":366,\"../../../lib\":503,\"../../../registry\":638,\"../../get_data\":593,\"../../subplot_defaults\":632,\"./axis_defaults\":601,\"./layout_attributes\":604}],604:[function(_dereq_,module,exports){\n'use strict';\n\nvar gl3dAxisAttrs = _dereq_('./axis_attributes');\nvar domainAttrs = _dereq_('../../domain').attributes;\nvar extendFlat = _dereq_('../../../lib/extend').extendFlat;\nvar counterRegex = _dereq_('../../../lib').counterRegex;\n\nfunction makeCameraVector(x, y, z) {\n return {\n x: {\n valType: 'number',\n dflt: x,\n editType: 'camera'\n },\n y: {\n valType: 'number',\n dflt: y,\n editType: 'camera'\n },\n z: {\n valType: 'number',\n dflt: z,\n editType: 'camera'\n },\n editType: 'camera'\n };\n}\n\nmodule.exports = {\n _arrayAttrRegexps: [counterRegex('scene', '.annotations', true)],\n\n bgcolor: {\n valType: 'color',\n dflt: 'rgba(0,0,0,0)',\n editType: 'plot'\n },\n camera: {\n up: extendFlat(makeCameraVector(0, 0, 1), {\n }),\n center: extendFlat(makeCameraVector(0, 0, 0), {\n }),\n eye: extendFlat(makeCameraVector(1.25, 1.25, 1.25), {\n }),\n projection: {\n type: {\n valType: 'enumerated',\n values: ['perspective', 'orthographic'],\n dflt: 'perspective',\n editType: 'calc',\n },\n editType: 'calc'\n },\n editType: 'camera'\n },\n domain: domainAttrs({name: 'scene', editType: 'plot'}),\n aspectmode: {\n valType: 'enumerated',\n values: ['auto', 'cube', 'data', 'manual'],\n dflt: 'auto',\n editType: 'plot',\n impliedEdits: {\n 'aspectratio.x': undefined,\n 'aspectratio.y': undefined,\n 'aspectratio.z': undefined\n },\n },\n aspectratio: { // must be positive (0's are coerced to 1)\n x: {\n valType: 'number',\n min: 0,\n editType: 'plot',\n impliedEdits: {'^aspectmode': 'manual'}\n },\n y: {\n valType: 'number',\n min: 0,\n editType: 'plot',\n impliedEdits: {'^aspectmode': 'manual'}\n },\n z: {\n valType: 'number',\n min: 0,\n editType: 'plot',\n impliedEdits: {'^aspectmode': 'manual'}\n },\n editType: 'plot',\n impliedEdits: {aspectmode: 'manual'},\n },\n\n xaxis: gl3dAxisAttrs,\n yaxis: gl3dAxisAttrs,\n zaxis: gl3dAxisAttrs,\n\n dragmode: {\n valType: 'enumerated',\n values: ['orbit', 'turntable', 'zoom', 'pan', false],\n editType: 'plot',\n },\n hovermode: {\n valType: 'enumerated',\n values: ['closest', false],\n dflt: 'closest',\n editType: 'modebar',\n },\n uirevision: {\n valType: 'any',\n editType: 'none',\n },\n editType: 'plot',\n\n _deprecated: {\n cameraposition: {\n valType: 'info_array',\n editType: 'camera',\n }\n }\n};\n\n},{\"../../../lib\":503,\"../../../lib/extend\":493,\"../../domain\":584,\"./axis_attributes\":600}],605:[function(_dereq_,module,exports){\n'use strict';\n\nvar str2RGBArray = _dereq_('../../../lib/str2rgbarray');\n\nvar AXES_NAMES = ['xaxis', 'yaxis', 'zaxis'];\n\nfunction SpikeOptions() {\n this.enabled = [true, true, true];\n this.colors = [[0, 0, 0, 1],\n [0, 0, 0, 1],\n [0, 0, 0, 1]];\n this.drawSides = [true, true, true];\n this.lineWidth = [1, 1, 1];\n}\n\nvar proto = SpikeOptions.prototype;\n\nproto.merge = function(sceneLayout) {\n for(var i = 0; i < 3; ++i) {\n var axes = sceneLayout[AXES_NAMES[i]];\n\n if(!axes.visible) {\n this.enabled[i] = false;\n this.drawSides[i] = false;\n continue;\n }\n\n this.enabled[i] = axes.showspikes;\n this.colors[i] = str2RGBArray(axes.spikecolor);\n this.drawSides[i] = axes.spikesides;\n this.lineWidth[i] = axes.spikethickness;\n }\n};\n\nfunction createSpikeOptions(layout) {\n var result = new SpikeOptions();\n result.merge(layout);\n return result;\n}\n\nmodule.exports = createSpikeOptions;\n\n},{\"../../../lib/str2rgbarray\":528}],606:[function(_dereq_,module,exports){\n/* eslint block-scoped-var: 0*/\n/* eslint no-redeclare: 0*/\n\n'use strict';\n\nmodule.exports = computeTickMarks;\n\nvar Axes = _dereq_('../../cartesian/axes');\nvar Lib = _dereq_('../../../lib');\n\nvar AXES_NAMES = ['xaxis', 'yaxis', 'zaxis'];\n\nvar centerPoint = [0, 0, 0];\n\nfunction contourLevelsFromTicks(ticks) {\n var result = new Array(3);\n for(var i = 0; i < 3; ++i) {\n var tlevel = ticks[i];\n var clevel = new Array(tlevel.length);\n for(var j = 0; j < tlevel.length; ++j) {\n clevel[j] = tlevel[j].x;\n }\n result[i] = clevel;\n }\n return result;\n}\n\nfunction computeTickMarks(scene) {\n var axesOptions = scene.axesOptions;\n var glRange = scene.glplot.axesPixels;\n var sceneLayout = scene.fullSceneLayout;\n\n var ticks = [[], [], []];\n\n for(var i = 0; i < 3; ++i) {\n var axes = sceneLayout[AXES_NAMES[i]];\n\n axes._length = (glRange[i].hi - glRange[i].lo) *\n glRange[i].pixelsPerDataUnit / scene.dataScale[i];\n\n if(Math.abs(axes._length) === Infinity ||\n isNaN(axes._length)) {\n ticks[i] = [];\n } else {\n axes._input_range = axes.range.slice();\n axes.range[0] = (glRange[i].lo) / scene.dataScale[i];\n axes.range[1] = (glRange[i].hi) / scene.dataScale[i];\n axes._m = 1.0 / (scene.dataScale[i] * glRange[i].pixelsPerDataUnit);\n\n if(axes.range[0] === axes.range[1]) {\n axes.range[0] -= 1;\n axes.range[1] += 1;\n }\n // this is necessary to short-circuit the 'y' handling\n // in autotick part of calcTicks... Treating all axes as 'y' in this case\n // running the autoticks here, then setting\n // autoticks to false to get around the 2D handling in calcTicks.\n var tickModeCached = axes.tickmode;\n if(axes.tickmode === 'auto') {\n axes.tickmode = 'linear';\n var nticks = axes.nticks || Lib.constrain((axes._length / 40), 4, 9);\n Axes.autoTicks(axes, Math.abs(axes.range[1] - axes.range[0]) / nticks);\n }\n var dataTicks = Axes.calcTicks(axes, { msUTC: true });\n for(var j = 0; j < dataTicks.length; ++j) {\n dataTicks[j].x = dataTicks[j].x * scene.dataScale[i];\n\n if(axes.type === 'date') {\n dataTicks[j].text =\n dataTicks[j].text.replace(/\\/g, ' ');\n }\n }\n ticks[i] = dataTicks;\n\n\n axes.tickmode = tickModeCached;\n }\n }\n\n axesOptions.ticks = ticks;\n\n // Calculate tick lengths dynamically\n for(var i = 0; i < 3; ++i) {\n centerPoint[i] = 0.5 * (scene.glplot.bounds[0][i] + scene.glplot.bounds[1][i]);\n for(var j = 0; j < 2; ++j) {\n axesOptions.bounds[j][i] = scene.glplot.bounds[j][i];\n }\n }\n\n scene.contourLevels = contourLevelsFromTicks(ticks);\n}\n\n},{\"../../../lib\":503,\"../../cartesian/axes\":554}],607:[function(_dereq_,module,exports){\n'use strict';\n\nfunction xformMatrix(m, v) {\n var out = [0, 0, 0, 0];\n var i, j;\n\n for(i = 0; i < 4; ++i) {\n for(j = 0; j < 4; ++j) {\n out[j] += m[4 * i + j] * v[i];\n }\n }\n\n return out;\n}\n\nfunction project(camera, v) {\n var p = xformMatrix(camera.projection,\n xformMatrix(camera.view,\n xformMatrix(camera.model, [v[0], v[1], v[2], 1])));\n return p;\n}\n\nmodule.exports = project;\n\n},{}],608:[function(_dereq_,module,exports){\n'use strict';\n\nvar glPlot3d = _dereq_('../../../stackgl_modules').gl_plot3d;\nvar createCamera = glPlot3d.createCamera;\nvar createPlot = glPlot3d.createScene;\n\nvar getContext = _dereq_('webgl-context');\nvar passiveSupported = _dereq_('has-passive-events');\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar preserveDrawingBuffer = Lib.preserveDrawingBuffer();\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar Fx = _dereq_('../../components/fx');\n\nvar str2RGBAarray = _dereq_('../../lib/str2rgbarray');\nvar showNoWebGlMsg = _dereq_('../../lib/show_no_webgl_msg');\n\nvar project = _dereq_('./project');\nvar createAxesOptions = _dereq_('./layout/convert');\nvar createSpikeOptions = _dereq_('./layout/spikes');\nvar computeTickMarks = _dereq_('./layout/tick_marks');\n\nvar STATIC_CANVAS, STATIC_CONTEXT;\n\nfunction Scene(options, fullLayout) {\n // create sub container for plot\n var sceneContainer = document.createElement('div');\n var plotContainer = options.container;\n\n // keep a ref to the graph div to fire hover+click events\n this.graphDiv = options.graphDiv;\n\n // create SVG container for hover text\n var svgContainer = document.createElementNS(\n 'http://www.w3.org/2000/svg',\n 'svg');\n svgContainer.style.position = 'absolute';\n svgContainer.style.top = svgContainer.style.left = '0px';\n svgContainer.style.width = svgContainer.style.height = '100%';\n svgContainer.style['z-index'] = 20;\n svgContainer.style['pointer-events'] = 'none';\n sceneContainer.appendChild(svgContainer);\n this.svgContainer = svgContainer;\n\n // Tag the container with the sceneID\n sceneContainer.id = options.id;\n sceneContainer.style.position = 'absolute';\n sceneContainer.style.top = sceneContainer.style.left = '0px';\n sceneContainer.style.width = sceneContainer.style.height = '100%';\n plotContainer.appendChild(sceneContainer);\n\n this.fullLayout = fullLayout;\n this.id = options.id || 'scene';\n this.fullSceneLayout = fullLayout[this.id];\n\n // Saved from last call to plot()\n this.plotArgs = [ [], {}, {} ];\n\n /*\n * Move this to calc step? Why does it work here?\n */\n this.axesOptions = createAxesOptions(fullLayout, fullLayout[this.id]);\n this.spikeOptions = createSpikeOptions(fullLayout[this.id]);\n this.container = sceneContainer;\n this.staticMode = !!options.staticPlot;\n this.pixelRatio = this.pixelRatio || options.plotGlPixelRatio || 2;\n\n // Coordinate rescaling\n this.dataScale = [1, 1, 1];\n\n this.contourLevels = [ [], [], [] ];\n\n this.convertAnnotations = Registry.getComponentMethod('annotations3d', 'convert');\n this.drawAnnotations = Registry.getComponentMethod('annotations3d', 'draw');\n\n this.initializeGLPlot();\n}\n\nvar proto = Scene.prototype;\n\nproto.prepareOptions = function() {\n var scene = this;\n\n var opts = {\n canvas: scene.canvas,\n gl: scene.gl,\n glOptions: {\n preserveDrawingBuffer: preserveDrawingBuffer,\n premultipliedAlpha: true,\n antialias: true\n },\n container: scene.container,\n axes: scene.axesOptions,\n spikes: scene.spikeOptions,\n pickRadius: 10,\n snapToData: true,\n autoScale: true,\n autoBounds: false,\n cameraObject: scene.camera,\n pixelRatio: scene.pixelRatio\n };\n\n // for static plots, we reuse the WebGL context\n // as WebKit doesn't collect them reliably\n if(scene.staticMode) {\n if(!STATIC_CONTEXT) {\n STATIC_CANVAS = document.createElement('canvas');\n STATIC_CONTEXT = getContext({\n canvas: STATIC_CANVAS,\n preserveDrawingBuffer: true,\n premultipliedAlpha: true,\n antialias: true\n });\n if(!STATIC_CONTEXT) {\n throw new Error('error creating static canvas/context for image server');\n }\n }\n\n opts.gl = STATIC_CONTEXT;\n opts.canvas = STATIC_CANVAS;\n }\n\n return opts;\n};\n\nvar firstInit = true;\n\nproto.tryCreatePlot = function() {\n var scene = this;\n\n var opts = scene.prepareOptions();\n\n var success = true;\n\n try {\n scene.glplot = createPlot(opts);\n } catch(e) {\n if(scene.staticMode || !firstInit || preserveDrawingBuffer) {\n success = false;\n } else { // try second time\n // enable preserveDrawingBuffer setup\n // in case is-mobile not detecting the right device\n Lib.warn([\n 'webgl setup failed possibly due to',\n 'false preserveDrawingBuffer config.',\n 'The mobile/tablet device may not be detected by is-mobile module.',\n 'Enabling preserveDrawingBuffer in second attempt to create webgl scene...'\n ].join(' '));\n\n try {\n // invert preserveDrawingBuffer\n preserveDrawingBuffer = opts.glOptions.preserveDrawingBuffer = true;\n\n scene.glplot = createPlot(opts);\n } catch(e) {\n // revert changes to preserveDrawingBuffer\n preserveDrawingBuffer = opts.glOptions.preserveDrawingBuffer = false;\n\n success = false;\n }\n }\n }\n\n firstInit = false;\n\n return success;\n};\n\nproto.initializeGLCamera = function() {\n var scene = this;\n var cameraData = scene.fullSceneLayout.camera;\n var isOrtho = (cameraData.projection.type === 'orthographic');\n\n scene.camera = createCamera(scene.container, {\n center: [cameraData.center.x, cameraData.center.y, cameraData.center.z],\n eye: [cameraData.eye.x, cameraData.eye.y, cameraData.eye.z],\n up: [cameraData.up.x, cameraData.up.y, cameraData.up.z],\n _ortho: isOrtho,\n zoomMin: 0.01,\n zoomMax: 100,\n mode: 'orbit'\n });\n};\n\nproto.initializeGLPlot = function() {\n var scene = this;\n\n scene.initializeGLCamera();\n\n var success = scene.tryCreatePlot();\n /*\n * createPlot will throw when webgl is not enabled in the client.\n * Lets return an instance of the module with all functions noop'd.\n * The destroy method - which will remove the container from the DOM\n * is overridden with a function that removes the container only.\n */\n if(!success) return showNoWebGlMsg(scene);\n\n // List of scene objects\n scene.traces = {};\n\n scene.make4thDimension();\n\n var gd = scene.graphDiv;\n var layout = gd.layout;\n\n var makeUpdate = function() {\n var update = {};\n\n if(scene.isCameraChanged(layout)) {\n // camera updates\n update[scene.id + '.camera'] = scene.getCamera();\n }\n\n if(scene.isAspectChanged(layout)) {\n // scene updates\n update[scene.id + '.aspectratio'] = scene.glplot.getAspectratio();\n\n if(layout[scene.id].aspectmode !== 'manual') {\n scene.fullSceneLayout.aspectmode =\n layout[scene.id].aspectmode =\n update[scene.id + '.aspectmode'] = 'manual';\n }\n }\n\n return update;\n };\n\n var relayoutCallback = function(scene) {\n if(scene.fullSceneLayout.dragmode === false) return;\n\n var update = makeUpdate();\n scene.saveLayout(layout);\n scene.graphDiv.emit('plotly_relayout', update);\n };\n\n if(scene.glplot.canvas) {\n scene.glplot.canvas.addEventListener('mouseup', function() {\n relayoutCallback(scene);\n });\n\n scene.glplot.canvas.addEventListener('wheel', function(e) {\n if(gd._context._scrollZoom.gl3d) {\n if(scene.camera._ortho) {\n var s = (e.deltaX > e.deltaY) ? 1.1 : 1.0 / 1.1;\n var o = scene.glplot.getAspectratio();\n scene.glplot.setAspectratio({\n x: s * o.x,\n y: s * o.y,\n z: s * o.z\n });\n }\n\n relayoutCallback(scene);\n }\n }, passiveSupported ? {passive: false} : false);\n\n scene.glplot.canvas.addEventListener('mousemove', function() {\n if(scene.fullSceneLayout.dragmode === false) return;\n if(scene.camera.mouseListener.buttons === 0) return;\n\n var update = makeUpdate();\n scene.graphDiv.emit('plotly_relayouting', update);\n });\n\n if(!scene.staticMode) {\n scene.glplot.canvas.addEventListener('webglcontextlost', function(event) {\n if(gd && gd.emit) {\n gd.emit('plotly_webglcontextlost', {\n event: event,\n layer: scene.id\n });\n }\n }, false);\n }\n }\n\n scene.glplot.oncontextloss = function() {\n scene.recoverContext();\n };\n\n scene.glplot.onrender = function() {\n scene.render();\n };\n\n return true;\n};\n\nproto.render = function() {\n var scene = this;\n var gd = scene.graphDiv;\n var trace;\n\n // update size of svg container\n var svgContainer = scene.svgContainer;\n var clientRect = scene.container.getBoundingClientRect();\n\n gd._fullLayout._calcInverseTransform(gd);\n var scaleX = gd._fullLayout._invScaleX;\n var scaleY = gd._fullLayout._invScaleY;\n var width = clientRect.width * scaleX;\n var height = clientRect.height * scaleY;\n svgContainer.setAttributeNS(null, 'viewBox', '0 0 ' + width + ' ' + height);\n svgContainer.setAttributeNS(null, 'width', width);\n svgContainer.setAttributeNS(null, 'height', height);\n\n computeTickMarks(scene);\n scene.glplot.axes.update(scene.axesOptions);\n\n // check if pick has changed\n var keys = Object.keys(scene.traces);\n var lastPicked = null;\n var selection = scene.glplot.selection;\n for(var i = 0; i < keys.length; ++i) {\n trace = scene.traces[keys[i]];\n if(trace.data.hoverinfo !== 'skip' && trace.handlePick(selection)) {\n lastPicked = trace;\n }\n\n if(trace.setContourLevels) trace.setContourLevels();\n }\n\n function formatter(axLetter, val, hoverformat) {\n var ax = scene.fullSceneLayout[axLetter + 'axis'];\n\n if(ax.type !== 'log') {\n val = ax.d2l(val);\n }\n\n return Axes.hoverLabelText(ax, val, hoverformat);\n }\n\n if(lastPicked !== null) {\n var pdata = project(scene.glplot.cameraParams, selection.dataCoordinate);\n trace = lastPicked.data;\n var traceNow = gd._fullData[trace.index];\n var ptNumber = selection.index;\n\n var labels = {\n xLabel: formatter('x', selection.traceCoordinate[0], trace.xhoverformat),\n yLabel: formatter('y', selection.traceCoordinate[1], trace.yhoverformat),\n zLabel: formatter('z', selection.traceCoordinate[2], trace.zhoverformat)\n };\n\n var hoverinfo = Fx.castHoverinfo(traceNow, scene.fullLayout, ptNumber);\n var hoverinfoParts = (hoverinfo || '').split('+');\n var isHoverinfoAll = hoverinfo && hoverinfo === 'all';\n\n if(!traceNow.hovertemplate && !isHoverinfoAll) {\n if(hoverinfoParts.indexOf('x') === -1) labels.xLabel = undefined;\n if(hoverinfoParts.indexOf('y') === -1) labels.yLabel = undefined;\n if(hoverinfoParts.indexOf('z') === -1) labels.zLabel = undefined;\n if(hoverinfoParts.indexOf('text') === -1) selection.textLabel = undefined;\n if(hoverinfoParts.indexOf('name') === -1) lastPicked.name = undefined;\n }\n\n var tx;\n var vectorTx = [];\n\n if(trace.type === 'cone' || trace.type === 'streamtube') {\n labels.uLabel = formatter('x', selection.traceCoordinate[3], trace.uhoverformat);\n if(isHoverinfoAll || hoverinfoParts.indexOf('u') !== -1) {\n vectorTx.push('u: ' + labels.uLabel);\n }\n\n labels.vLabel = formatter('y', selection.traceCoordinate[4], trace.vhoverformat);\n if(isHoverinfoAll || hoverinfoParts.indexOf('v') !== -1) {\n vectorTx.push('v: ' + labels.vLabel);\n }\n\n labels.wLabel = formatter('z', selection.traceCoordinate[5], trace.whoverformat);\n if(isHoverinfoAll || hoverinfoParts.indexOf('w') !== -1) {\n vectorTx.push('w: ' + labels.wLabel);\n }\n\n labels.normLabel = selection.traceCoordinate[6].toPrecision(3);\n if(isHoverinfoAll || hoverinfoParts.indexOf('norm') !== -1) {\n vectorTx.push('norm: ' + labels.normLabel);\n }\n if(trace.type === 'streamtube') {\n labels.divergenceLabel = selection.traceCoordinate[7].toPrecision(3);\n if(isHoverinfoAll || hoverinfoParts.indexOf('divergence') !== -1) {\n vectorTx.push('divergence: ' + labels.divergenceLabel);\n }\n }\n if(selection.textLabel) {\n vectorTx.push(selection.textLabel);\n }\n tx = vectorTx.join('
');\n } else if(trace.type === 'isosurface' || trace.type === 'volume') {\n labels.valueLabel = Axes.hoverLabelText(scene._mockAxis, scene._mockAxis.d2l(selection.traceCoordinate[3]), trace.valuehoverformat);\n vectorTx.push('value: ' + labels.valueLabel);\n if(selection.textLabel) {\n vectorTx.push(selection.textLabel);\n }\n tx = vectorTx.join('
');\n } else {\n tx = selection.textLabel;\n }\n\n var pointData = {\n x: selection.traceCoordinate[0],\n y: selection.traceCoordinate[1],\n z: selection.traceCoordinate[2],\n data: traceNow._input,\n fullData: traceNow,\n curveNumber: traceNow.index,\n pointNumber: ptNumber\n };\n\n Fx.appendArrayPointValue(pointData, traceNow, ptNumber);\n\n if(trace._module.eventData) {\n pointData = traceNow._module.eventData(pointData, selection, traceNow, {}, ptNumber);\n }\n\n var eventData = {points: [pointData]};\n\n if(scene.fullSceneLayout.hovermode) {\n var bbox = [];\n Fx.loneHover({\n trace: traceNow,\n x: (0.5 + 0.5 * pdata[0] / pdata[3]) * width,\n y: (0.5 - 0.5 * pdata[1] / pdata[3]) * height,\n xLabel: labels.xLabel,\n yLabel: labels.yLabel,\n zLabel: labels.zLabel,\n text: tx,\n name: lastPicked.name,\n color: Fx.castHoverOption(traceNow, ptNumber, 'bgcolor') || lastPicked.color,\n borderColor: Fx.castHoverOption(traceNow, ptNumber, 'bordercolor'),\n fontFamily: Fx.castHoverOption(traceNow, ptNumber, 'font.family'),\n fontSize: Fx.castHoverOption(traceNow, ptNumber, 'font.size'),\n fontColor: Fx.castHoverOption(traceNow, ptNumber, 'font.color'),\n nameLength: Fx.castHoverOption(traceNow, ptNumber, 'namelength'),\n textAlign: Fx.castHoverOption(traceNow, ptNumber, 'align'),\n hovertemplate: Lib.castOption(traceNow, ptNumber, 'hovertemplate'),\n hovertemplateLabels: Lib.extendFlat({}, pointData, labels),\n eventData: [pointData]\n }, {\n container: svgContainer,\n gd: gd,\n inOut_bbox: bbox\n });\n\n pointData.bbox = bbox[0];\n }\n\n if(selection.buttons && selection.distance < 5) {\n gd.emit('plotly_click', eventData);\n } else {\n gd.emit('plotly_hover', eventData);\n }\n\n this.oldEventData = eventData;\n } else {\n Fx.loneUnhover(svgContainer);\n if(this.oldEventData) gd.emit('plotly_unhover', this.oldEventData);\n this.oldEventData = undefined;\n }\n\n scene.drawAnnotations(scene);\n};\n\nproto.recoverContext = function() {\n var scene = this;\n\n scene.glplot.dispose();\n\n var tryRecover = function() {\n if(scene.glplot.gl.isContextLost()) {\n requestAnimationFrame(tryRecover);\n return;\n }\n if(!scene.initializeGLPlot()) {\n Lib.error('Catastrophic and unrecoverable WebGL error. Context lost.');\n return;\n }\n scene.plot.apply(scene, scene.plotArgs);\n };\n\n requestAnimationFrame(tryRecover);\n};\n\nvar axisProperties = [ 'xaxis', 'yaxis', 'zaxis' ];\n\nfunction computeTraceBounds(scene, trace, bounds) {\n var fullSceneLayout = scene.fullSceneLayout;\n\n for(var d = 0; d < 3; d++) {\n var axisName = axisProperties[d];\n var axLetter = axisName.charAt(0);\n var ax = fullSceneLayout[axisName];\n var coords = trace[axLetter];\n var calendar = trace[axLetter + 'calendar'];\n var len = trace['_' + axLetter + 'length'];\n\n if(!Lib.isArrayOrTypedArray(coords)) {\n bounds[0][d] = Math.min(bounds[0][d], 0);\n bounds[1][d] = Math.max(bounds[1][d], len - 1);\n } else {\n var v;\n\n for(var i = 0; i < (len || coords.length); i++) {\n if(Lib.isArrayOrTypedArray(coords[i])) {\n for(var j = 0; j < coords[i].length; ++j) {\n v = ax.d2l(coords[i][j], 0, calendar);\n if(!isNaN(v) && isFinite(v)) {\n bounds[0][d] = Math.min(bounds[0][d], v);\n bounds[1][d] = Math.max(bounds[1][d], v);\n }\n }\n } else {\n v = ax.d2l(coords[i], 0, calendar);\n if(!isNaN(v) && isFinite(v)) {\n bounds[0][d] = Math.min(bounds[0][d], v);\n bounds[1][d] = Math.max(bounds[1][d], v);\n }\n }\n }\n }\n }\n}\n\nfunction computeAnnotationBounds(scene, bounds) {\n var fullSceneLayout = scene.fullSceneLayout;\n var annotations = fullSceneLayout.annotations || [];\n\n for(var d = 0; d < 3; d++) {\n var axisName = axisProperties[d];\n var axLetter = axisName.charAt(0);\n var ax = fullSceneLayout[axisName];\n\n for(var j = 0; j < annotations.length; j++) {\n var ann = annotations[j];\n\n if(ann.visible) {\n var pos = ax.r2l(ann[axLetter]);\n if(!isNaN(pos) && isFinite(pos)) {\n bounds[0][d] = Math.min(bounds[0][d], pos);\n bounds[1][d] = Math.max(bounds[1][d], pos);\n }\n }\n }\n }\n}\n\nproto.plot = function(sceneData, fullLayout, layout) {\n var scene = this;\n\n // Save parameters\n scene.plotArgs = [sceneData, fullLayout, layout];\n\n if(scene.glplot.contextLost) return;\n\n var data, trace;\n var i, j, axis, axisType;\n var fullSceneLayout = fullLayout[scene.id];\n var sceneLayout = layout[scene.id];\n\n // Update layout\n scene.fullLayout = fullLayout;\n scene.fullSceneLayout = fullSceneLayout;\n\n scene.axesOptions.merge(fullLayout, fullSceneLayout);\n scene.spikeOptions.merge(fullSceneLayout);\n\n // Update camera and camera mode\n scene.setViewport(fullSceneLayout);\n scene.updateFx(fullSceneLayout.dragmode, fullSceneLayout.hovermode);\n scene.camera.enableWheel = scene.graphDiv._context._scrollZoom.gl3d;\n\n // Update scene background\n scene.glplot.setClearColor(str2RGBAarray(fullSceneLayout.bgcolor));\n\n // Update axes functions BEFORE updating traces\n scene.setConvert(axis);\n\n // Convert scene data\n if(!sceneData) sceneData = [];\n else if(!Array.isArray(sceneData)) sceneData = [sceneData];\n\n // Compute trace bounding box\n var dataBounds = [\n [Infinity, Infinity, Infinity],\n [-Infinity, -Infinity, -Infinity]\n ];\n\n for(i = 0; i < sceneData.length; ++i) {\n data = sceneData[i];\n if(data.visible !== true || data._length === 0) continue;\n\n computeTraceBounds(this, data, dataBounds);\n }\n computeAnnotationBounds(this, dataBounds);\n\n var dataScale = [1, 1, 1];\n for(j = 0; j < 3; ++j) {\n if(dataBounds[1][j] === dataBounds[0][j]) {\n dataScale[j] = 1.0;\n } else {\n dataScale[j] = 1.0 / (dataBounds[1][j] - dataBounds[0][j]);\n }\n }\n\n // Save scale\n scene.dataScale = dataScale;\n\n // after computeTraceBounds where ax._categories are filled in\n scene.convertAnnotations(this);\n\n // Update traces\n for(i = 0; i < sceneData.length; ++i) {\n data = sceneData[i];\n if(data.visible !== true || data._length === 0) {\n continue;\n }\n trace = scene.traces[data.uid];\n if(trace) {\n if(trace.data.type === data.type) {\n trace.update(data);\n } else {\n trace.dispose();\n trace = data._module.plot(this, data);\n scene.traces[data.uid] = trace;\n }\n } else {\n trace = data._module.plot(this, data);\n scene.traces[data.uid] = trace;\n }\n trace.name = data.name;\n }\n\n // Remove empty traces\n var traceIds = Object.keys(scene.traces);\n\n traceIdLoop:\n for(i = 0; i < traceIds.length; ++i) {\n for(j = 0; j < sceneData.length; ++j) {\n if(sceneData[j].uid === traceIds[i] &&\n (sceneData[j].visible === true && sceneData[j]._length !== 0)) {\n continue traceIdLoop;\n }\n }\n trace = scene.traces[traceIds[i]];\n trace.dispose();\n delete scene.traces[traceIds[i]];\n }\n\n // order object per trace index\n scene.glplot.objects.sort(function(a, b) {\n return a._trace.data.index - b._trace.data.index;\n });\n\n // Update ranges (needs to be called *after* objects are added due to updates)\n var sceneBounds = [[0, 0, 0], [0, 0, 0]];\n var axisDataRange = [];\n var axisTypeRatios = {};\n\n for(i = 0; i < 3; ++i) {\n axis = fullSceneLayout[axisProperties[i]];\n axisType = axis.type;\n\n if(axisType in axisTypeRatios) {\n axisTypeRatios[axisType].acc *= dataScale[i];\n axisTypeRatios[axisType].count += 1;\n } else {\n axisTypeRatios[axisType] = {\n acc: dataScale[i],\n count: 1\n };\n }\n\n if(axis.autorange) {\n sceneBounds[0][i] = Infinity;\n sceneBounds[1][i] = -Infinity;\n\n var objects = scene.glplot.objects;\n var annotations = scene.fullSceneLayout.annotations || [];\n var axLetter = axis._name.charAt(0);\n\n for(j = 0; j < objects.length; j++) {\n var obj = objects[j];\n var objBounds = obj.bounds;\n var pad = obj._trace.data._pad || 0;\n\n if(obj.constructor.name === 'ErrorBars' && axis._lowerLogErrorBound) {\n sceneBounds[0][i] = Math.min(sceneBounds[0][i], axis._lowerLogErrorBound);\n } else {\n sceneBounds[0][i] = Math.min(sceneBounds[0][i], objBounds[0][i] / dataScale[i] - pad);\n }\n sceneBounds[1][i] = Math.max(sceneBounds[1][i], objBounds[1][i] / dataScale[i] + pad);\n }\n\n for(j = 0; j < annotations.length; j++) {\n var ann = annotations[j];\n\n // N.B. not taking into consideration the arrowhead\n if(ann.visible) {\n var pos = axis.r2l(ann[axLetter]);\n sceneBounds[0][i] = Math.min(sceneBounds[0][i], pos);\n sceneBounds[1][i] = Math.max(sceneBounds[1][i], pos);\n }\n }\n\n if('rangemode' in axis && axis.rangemode === 'tozero') {\n sceneBounds[0][i] = Math.min(sceneBounds[0][i], 0);\n sceneBounds[1][i] = Math.max(sceneBounds[1][i], 0);\n }\n if(sceneBounds[0][i] > sceneBounds[1][i]) {\n sceneBounds[0][i] = -1;\n sceneBounds[1][i] = 1;\n } else {\n var d = sceneBounds[1][i] - sceneBounds[0][i];\n sceneBounds[0][i] -= d / 32.0;\n sceneBounds[1][i] += d / 32.0;\n }\n\n if(axis.autorange === 'reversed') {\n // swap bounds:\n var tmp = sceneBounds[0][i];\n sceneBounds[0][i] = sceneBounds[1][i];\n sceneBounds[1][i] = tmp;\n }\n } else {\n var range = axis.range;\n sceneBounds[0][i] = axis.r2l(range[0]);\n sceneBounds[1][i] = axis.r2l(range[1]);\n }\n if(sceneBounds[0][i] === sceneBounds[1][i]) {\n sceneBounds[0][i] -= 1;\n sceneBounds[1][i] += 1;\n }\n axisDataRange[i] = sceneBounds[1][i] - sceneBounds[0][i];\n\n // Update plot bounds\n scene.glplot.setBounds(i, {\n min: sceneBounds[0][i] * dataScale[i],\n max: sceneBounds[1][i] * dataScale[i]\n });\n }\n\n /*\n * Dynamically set the aspect ratio depending on the users aspect settings\n */\n var aspectRatio;\n var aspectmode = fullSceneLayout.aspectmode;\n if(aspectmode === 'cube') {\n aspectRatio = [1, 1, 1];\n } else if(aspectmode === 'manual') {\n var userRatio = fullSceneLayout.aspectratio;\n aspectRatio = [userRatio.x, userRatio.y, userRatio.z];\n } else if(aspectmode === 'auto' || aspectmode === 'data') {\n var axesScaleRatio = [1, 1, 1];\n // Compute axis scale per category\n for(i = 0; i < 3; ++i) {\n axis = fullSceneLayout[axisProperties[i]];\n axisType = axis.type;\n var axisRatio = axisTypeRatios[axisType];\n axesScaleRatio[i] = Math.pow(axisRatio.acc, 1.0 / axisRatio.count) / dataScale[i];\n }\n\n if(aspectmode === 'data') {\n aspectRatio = axesScaleRatio;\n } else { // i.e. 'auto' option\n if(\n Math.max.apply(null, axesScaleRatio) /\n Math.min.apply(null, axesScaleRatio) <= 4\n ) {\n // USE DATA MODE WHEN AXIS RANGE DIMENSIONS ARE RELATIVELY EQUAL\n aspectRatio = axesScaleRatio;\n } else {\n // USE EQUAL MODE WHEN AXIS RANGE DIMENSIONS ARE HIGHLY UNEQUAL\n aspectRatio = [1, 1, 1];\n }\n }\n } else {\n throw new Error('scene.js aspectRatio was not one of the enumerated types');\n }\n\n /*\n * Write aspect Ratio back to user data and fullLayout so that it is modifies as user\n * manipulates the aspectmode settings and the fullLayout is up-to-date.\n */\n fullSceneLayout.aspectratio.x = sceneLayout.aspectratio.x = aspectRatio[0];\n fullSceneLayout.aspectratio.y = sceneLayout.aspectratio.y = aspectRatio[1];\n fullSceneLayout.aspectratio.z = sceneLayout.aspectratio.z = aspectRatio[2];\n\n /*\n * Finally assign the computed aspecratio to the glplot module. This will have an effect\n * on the next render cycle.\n */\n scene.glplot.setAspectratio(fullSceneLayout.aspectratio);\n\n // save 'initial' aspectratio & aspectmode view settings for modebar buttons\n if(!scene.viewInitial.aspectratio) {\n scene.viewInitial.aspectratio = {\n x: fullSceneLayout.aspectratio.x,\n y: fullSceneLayout.aspectratio.y,\n z: fullSceneLayout.aspectratio.z\n };\n }\n if(!scene.viewInitial.aspectmode) {\n scene.viewInitial.aspectmode = fullSceneLayout.aspectmode;\n }\n\n // Update frame position for multi plots\n var domain = fullSceneLayout.domain || null;\n var size = fullLayout._size || null;\n\n if(domain && size) {\n var containerStyle = scene.container.style;\n containerStyle.position = 'absolute';\n containerStyle.left = (size.l + domain.x[0] * size.w) + 'px';\n containerStyle.top = (size.t + (1 - domain.y[1]) * size.h) + 'px';\n containerStyle.width = (size.w * (domain.x[1] - domain.x[0])) + 'px';\n containerStyle.height = (size.h * (domain.y[1] - domain.y[0])) + 'px';\n }\n\n // force redraw so that promise is returned when rendering is completed\n scene.glplot.redraw();\n};\n\nproto.destroy = function() {\n var scene = this;\n\n if(!scene.glplot) return;\n scene.camera.mouseListener.enabled = false;\n scene.container.removeEventListener('wheel', scene.camera.wheelListener);\n scene.camera = null;\n scene.glplot.dispose();\n scene.container.parentNode.removeChild(scene.container);\n scene.glplot = null;\n};\n\n// getCameraArrays :: plotly_coords -> gl-plot3d_coords\n// inverse of getLayoutCamera\nfunction getCameraArrays(camera) {\n return [\n [camera.eye.x, camera.eye.y, camera.eye.z],\n [camera.center.x, camera.center.y, camera.center.z],\n [camera.up.x, camera.up.y, camera.up.z]\n ];\n}\n\n// getLayoutCamera :: gl-plot3d_coords -> plotly_coords\n// inverse of getCameraArrays\nfunction getLayoutCamera(camera) {\n return {\n up: {x: camera.up[0], y: camera.up[1], z: camera.up[2]},\n center: {x: camera.center[0], y: camera.center[1], z: camera.center[2]},\n eye: {x: camera.eye[0], y: camera.eye[1], z: camera.eye[2]},\n projection: {type: (camera._ortho === true) ? 'orthographic' : 'perspective'}\n };\n}\n\n// get camera position in plotly coords from 'gl-plot3d' coords\nproto.getCamera = function() {\n var scene = this;\n scene.camera.view.recalcMatrix(scene.camera.view.lastT());\n return getLayoutCamera(scene.camera);\n};\n\n// set gl-plot3d camera position and scene aspects with a set of plotly coords\nproto.setViewport = function(sceneLayout) {\n var scene = this;\n var cameraData = sceneLayout.camera;\n\n scene.camera.lookAt.apply(this, getCameraArrays(cameraData));\n scene.glplot.setAspectratio(sceneLayout.aspectratio);\n\n var newOrtho = (cameraData.projection.type === 'orthographic');\n var oldOrtho = scene.camera._ortho;\n\n if(newOrtho !== oldOrtho) {\n scene.glplot.redraw(); // TODO: figure out why we need to redraw here?\n scene.glplot.clearRGBA();\n scene.glplot.dispose();\n scene.initializeGLPlot();\n }\n};\n\nproto.isCameraChanged = function(layout) {\n var scene = this;\n var cameraData = scene.getCamera();\n var cameraNestedProp = Lib.nestedProperty(layout, scene.id + '.camera');\n var cameraDataLastSave = cameraNestedProp.get();\n\n function same(x, y, i, j) {\n var vectors = ['up', 'center', 'eye'];\n var components = ['x', 'y', 'z'];\n return y[vectors[i]] && (x[vectors[i]][components[j]] === y[vectors[i]][components[j]]);\n }\n\n var changed = false;\n if(cameraDataLastSave === undefined) {\n changed = true;\n } else {\n for(var i = 0; i < 3; i++) {\n for(var j = 0; j < 3; j++) {\n if(!same(cameraData, cameraDataLastSave, i, j)) {\n changed = true;\n break;\n }\n }\n }\n\n if(!cameraDataLastSave.projection || (\n cameraData.projection &&\n cameraData.projection.type !== cameraDataLastSave.projection.type)) {\n changed = true;\n }\n }\n\n return changed;\n};\n\nproto.isAspectChanged = function(layout) {\n var scene = this;\n var aspectData = scene.glplot.getAspectratio();\n var aspectNestedProp = Lib.nestedProperty(layout, scene.id + '.aspectratio');\n var aspectDataLastSave = aspectNestedProp.get();\n\n return (\n aspectDataLastSave === undefined || (\n aspectDataLastSave.x !== aspectData.x ||\n aspectDataLastSave.y !== aspectData.y ||\n aspectDataLastSave.z !== aspectData.z\n ));\n};\n\n// save camera to user layout (i.e. gd.layout)\nproto.saveLayout = function(layout) {\n var scene = this;\n var fullLayout = scene.fullLayout;\n\n var cameraData;\n var cameraNestedProp;\n var cameraDataLastSave;\n\n var aspectData;\n var aspectNestedProp;\n var aspectDataLastSave;\n\n var cameraChanged = scene.isCameraChanged(layout);\n var aspectChanged = scene.isAspectChanged(layout);\n\n var hasChanged = cameraChanged || aspectChanged;\n if(hasChanged) {\n var preGUI = {};\n if(cameraChanged) {\n cameraData = scene.getCamera();\n cameraNestedProp = Lib.nestedProperty(layout, scene.id + '.camera');\n cameraDataLastSave = cameraNestedProp.get();\n\n preGUI[scene.id + '.camera'] = cameraDataLastSave;\n }\n if(aspectChanged) {\n aspectData = scene.glplot.getAspectratio();\n aspectNestedProp = Lib.nestedProperty(layout, scene.id + '.aspectratio');\n aspectDataLastSave = aspectNestedProp.get();\n\n preGUI[scene.id + '.aspectratio'] = aspectDataLastSave;\n }\n Registry.call('_storeDirectGUIEdit', layout, fullLayout._preGUI, preGUI);\n\n if(cameraChanged) {\n cameraNestedProp.set(cameraData);\n\n var cameraFullNP = Lib.nestedProperty(fullLayout, scene.id + '.camera');\n cameraFullNP.set(cameraData);\n }\n\n if(aspectChanged) {\n aspectNestedProp.set(aspectData);\n\n var aspectFullNP = Lib.nestedProperty(fullLayout, scene.id + '.aspectratio');\n aspectFullNP.set(aspectData);\n\n scene.glplot.redraw();\n }\n }\n\n return hasChanged;\n};\n\nproto.updateFx = function(dragmode, hovermode) {\n var scene = this;\n var camera = scene.camera;\n if(camera) {\n // rotate and orbital are synonymous\n if(dragmode === 'orbit') {\n camera.mode = 'orbit';\n camera.keyBindingMode = 'rotate';\n } else if(dragmode === 'turntable') {\n camera.up = [0, 0, 1];\n camera.mode = 'turntable';\n camera.keyBindingMode = 'rotate';\n\n // The setter for camera.mode animates the transition to z-up,\n // but only if we *don't* explicitly set z-up earlier via the\n // relayout. So push `up` back to layout & fullLayout manually now.\n var gd = scene.graphDiv;\n var fullLayout = gd._fullLayout;\n var fullCamera = scene.fullSceneLayout.camera;\n var x = fullCamera.up.x;\n var y = fullCamera.up.y;\n var z = fullCamera.up.z;\n // only push `up` back to (full)layout if it's going to change\n if(z / Math.sqrt(x * x + y * y + z * z) < 0.999) {\n var attr = scene.id + '.camera.up';\n var zUp = {x: 0, y: 0, z: 1};\n var edits = {};\n edits[attr] = zUp;\n var layout = gd.layout;\n Registry.call('_storeDirectGUIEdit', layout, fullLayout._preGUI, edits);\n fullCamera.up = zUp;\n Lib.nestedProperty(layout, attr).set(zUp);\n }\n } else {\n // none rotation modes [pan or zoom]\n camera.keyBindingMode = dragmode;\n }\n }\n\n // to put dragmode and hovermode on the same grounds from relayout\n scene.fullSceneLayout.hovermode = hovermode;\n};\n\nfunction flipPixels(pixels, w, h) {\n for(var i = 0, q = h - 1; i < q; ++i, --q) {\n for(var j = 0; j < w; ++j) {\n for(var k = 0; k < 4; ++k) {\n var a = 4 * (w * i + j) + k;\n var b = 4 * (w * q + j) + k;\n var tmp = pixels[a];\n pixels[a] = pixels[b];\n pixels[b] = tmp;\n }\n }\n }\n}\n\nfunction correctRGB(pixels, w, h) {\n for(var i = 0; i < h; ++i) {\n for(var j = 0; j < w; ++j) {\n var k = 4 * (w * i + j);\n\n var a = pixels[k + 3]; // alpha\n if(a > 0) {\n var q = 255 / a;\n\n for(var l = 0; l < 3; ++l) { // RGB\n pixels[k + l] = Math.min(q * pixels[k + l], 255);\n }\n }\n }\n }\n}\n\nproto.toImage = function(format) {\n var scene = this;\n\n if(!format) format = 'png';\n if(scene.staticMode) scene.container.appendChild(STATIC_CANVAS);\n\n // Force redraw\n scene.glplot.redraw();\n\n // Grab context and yank out pixels\n var gl = scene.glplot.gl;\n var w = gl.drawingBufferWidth;\n var h = gl.drawingBufferHeight;\n\n gl.bindFramebuffer(gl.FRAMEBUFFER, null);\n\n var pixels = new Uint8Array(w * h * 4);\n gl.readPixels(0, 0, w, h, gl.RGBA, gl.UNSIGNED_BYTE, pixels);\n flipPixels(pixels, w, h);\n correctRGB(pixels, w, h);\n\n var canvas = document.createElement('canvas');\n canvas.width = w;\n canvas.height = h;\n var context = canvas.getContext('2d');\n var imageData = context.createImageData(w, h);\n imageData.data.set(pixels);\n context.putImageData(imageData, 0, 0);\n\n var dataURL;\n\n switch(format) {\n case 'jpeg':\n dataURL = canvas.toDataURL('image/jpeg');\n break;\n case 'webp':\n dataURL = canvas.toDataURL('image/webp');\n break;\n default:\n dataURL = canvas.toDataURL('image/png');\n }\n\n if(scene.staticMode) scene.container.removeChild(STATIC_CANVAS);\n\n return dataURL;\n};\n\nproto.setConvert = function() {\n var scene = this;\n for(var i = 0; i < 3; i++) {\n var ax = scene.fullSceneLayout[axisProperties[i]];\n Axes.setConvert(ax, scene.fullLayout);\n ax.setScale = Lib.noop;\n }\n};\n\nproto.make4thDimension = function() {\n var scene = this;\n var gd = scene.graphDiv;\n var fullLayout = gd._fullLayout;\n\n // mock axis for hover formatting\n scene._mockAxis = {\n type: 'linear',\n showexponent: 'all',\n exponentformat: 'B'\n };\n Axes.setConvert(scene._mockAxis, fullLayout);\n};\n\nmodule.exports = Scene;\n\n},{\"../../../stackgl_modules\":1119,\"../../components/fx\":406,\"../../lib\":503,\"../../lib/show_no_webgl_msg\":525,\"../../lib/str2rgbarray\":528,\"../../plots/cartesian/axes\":554,\"../../registry\":638,\"./layout/convert\":602,\"./layout/spikes\":605,\"./layout/tick_marks\":606,\"./project\":607,\"has-passive-events\":229,\"webgl-context\":331}],609:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function zip3(x, y, z, len) {\n len = len || x.length;\n\n var result = new Array(len);\n for(var i = 0; i < len; i++) {\n result[i] = [x[i], y[i], z[i]];\n }\n return result;\n};\n\n},{}],610:[function(_dereq_,module,exports){\n'use strict';\n\nvar fontAttrs = _dereq_('./font_attributes');\nvar animationAttrs = _dereq_('./animation_attributes');\nvar colorAttrs = _dereq_('../components/color/attributes');\nvar drawNewShapeAttrs = _dereq_('../components/shapes/draw_newshape/attributes');\nvar padAttrs = _dereq_('./pad_attributes');\nvar extendFlat = _dereq_('../lib/extend').extendFlat;\n\nvar globalFont = fontAttrs({\n editType: 'calc',\n});\nglobalFont.family.dflt = '\"Open Sans\", verdana, arial, sans-serif';\nglobalFont.size.dflt = 12;\nglobalFont.color.dflt = colorAttrs.defaultLine;\n\nmodule.exports = {\n font: globalFont,\n title: {\n text: {\n valType: 'string',\n editType: 'layoutstyle',\n },\n font: fontAttrs({\n editType: 'layoutstyle',\n }),\n xref: {\n valType: 'enumerated',\n dflt: 'container',\n values: ['container', 'paper'],\n editType: 'layoutstyle',\n },\n yref: {\n valType: 'enumerated',\n dflt: 'container',\n values: ['container', 'paper'],\n editType: 'layoutstyle',\n },\n x: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0.5,\n editType: 'layoutstyle',\n },\n y: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 'auto',\n editType: 'layoutstyle',\n },\n xanchor: {\n valType: 'enumerated',\n dflt: 'auto',\n values: ['auto', 'left', 'center', 'right'],\n editType: 'layoutstyle',\n },\n yanchor: {\n valType: 'enumerated',\n dflt: 'auto',\n values: ['auto', 'top', 'middle', 'bottom'],\n editType: 'layoutstyle',\n },\n pad: extendFlat(padAttrs({editType: 'layoutstyle'}), {\n }),\n editType: 'layoutstyle'\n },\n uniformtext: {\n mode: {\n valType: 'enumerated',\n values: [false, 'hide', 'show'],\n dflt: false,\n editType: 'plot',\n },\n minsize: {\n valType: 'number',\n min: 0,\n dflt: 0,\n editType: 'plot',\n },\n editType: 'plot'\n },\n autosize: {\n valType: 'boolean',\n dflt: false,\n // autosize, width, and height get special editType treatment in _relayout\n // so we can handle noop resizes more efficiently\n editType: 'none',\n },\n width: {\n valType: 'number',\n min: 10,\n dflt: 700,\n editType: 'plot',\n },\n height: {\n valType: 'number',\n min: 10,\n dflt: 450,\n editType: 'plot',\n },\n margin: {\n l: {\n valType: 'number',\n min: 0,\n dflt: 80,\n editType: 'plot',\n },\n r: {\n valType: 'number',\n min: 0,\n dflt: 80,\n editType: 'plot',\n },\n t: {\n valType: 'number',\n min: 0,\n dflt: 100,\n editType: 'plot',\n },\n b: {\n valType: 'number',\n min: 0,\n dflt: 80,\n editType: 'plot',\n },\n pad: {\n valType: 'number',\n min: 0,\n dflt: 0,\n editType: 'plot',\n },\n autoexpand: {\n valType: 'boolean',\n dflt: true,\n editType: 'plot',\n },\n editType: 'plot'\n },\n computed: {\n valType: 'any',\n editType: 'none',\n },\n paper_bgcolor: {\n valType: 'color',\n dflt: colorAttrs.background,\n editType: 'plot',\n },\n plot_bgcolor: {\n // defined here, but set in cartesian.supplyLayoutDefaults\n // because it needs to know if there are (2D) axes or not\n valType: 'color',\n dflt: colorAttrs.background,\n editType: 'layoutstyle',\n },\n autotypenumbers: {\n valType: 'enumerated',\n values: ['convert types', 'strict'],\n dflt: 'convert types',\n editType: 'calc',\n },\n separators: {\n valType: 'string',\n editType: 'plot',\n },\n hidesources: {\n valType: 'boolean',\n dflt: false,\n editType: 'plot',\n },\n showlegend: {\n // handled in legend.supplyLayoutDefaults\n // but included here because it's not in the legend object\n valType: 'boolean',\n editType: 'legend',\n },\n colorway: {\n valType: 'colorlist',\n dflt: colorAttrs.defaults,\n editType: 'calc',\n },\n datarevision: {\n valType: 'any',\n editType: 'calc',\n },\n uirevision: {\n valType: 'any',\n editType: 'none',\n },\n editrevision: {\n valType: 'any',\n editType: 'none',\n },\n selectionrevision: {\n valType: 'any',\n editType: 'none',\n },\n template: {\n valType: 'any',\n editType: 'calc',\n },\n\n newshape: drawNewShapeAttrs.newshape,\n activeshape: drawNewShapeAttrs.activeshape,\n\n meta: {\n valType: 'any',\n arrayOk: true,\n editType: 'plot',\n },\n\n transition: extendFlat({}, animationAttrs.transition, {\n editType: 'none'\n }),\n _deprecated: {\n title: {\n valType: 'string',\n editType: 'layoutstyle',\n },\n titlefont: fontAttrs({\n editType: 'layoutstyle',\n })\n }\n};\n\n},{\"../components/color/attributes\":365,\"../components/shapes/draw_newshape/attributes\":451,\"../lib/extend\":493,\"./animation_attributes\":548,\"./font_attributes\":585,\"./pad_attributes\":618}],611:[function(_dereq_,module,exports){\n'use strict';\n\nvar sortObjectKeys = _dereq_('../../lib/sort_object_keys');\n\nvar requiredVersion = '1.10.1';\n\nvar OSM = '© OpenStreetMap contributors';\nvar carto = [\n '© Carto',\n OSM\n].join(' ');\n\nvar stamenTerrainOrToner = [\n 'Map tiles by Stamen Design',\n 'under CC BY 3.0',\n '|',\n 'Data by OpenStreetMap contributors',\n 'under ODbL'\n].join(' ');\n\nvar stamenWaterColor = [\n 'Map tiles by Stamen Design',\n 'under CC BY 3.0',\n '|',\n 'Data by OpenStreetMap contributors',\n 'under CC BY SA'\n].join(' ');\n\nvar stylesNonMapbox = {\n 'open-street-map': {\n id: 'osm',\n version: 8,\n sources: {\n 'plotly-osm-tiles': {\n type: 'raster',\n attribution: OSM,\n tiles: [\n 'https://a.tile.openstreetmap.org/{z}/{x}/{y}.png',\n 'https://b.tile.openstreetmap.org/{z}/{x}/{y}.png'\n ],\n tileSize: 256\n }\n },\n layers: [{\n id: 'plotly-osm-tiles',\n type: 'raster',\n source: 'plotly-osm-tiles',\n minzoom: 0,\n maxzoom: 22\n }]\n },\n 'white-bg': {\n id: 'white-bg',\n version: 8,\n sources: {},\n layers: [{\n id: 'white-bg',\n type: 'background',\n paint: {'background-color': '#FFFFFF'},\n minzoom: 0,\n maxzoom: 22\n }]\n },\n 'carto-positron': {\n id: 'carto-positron',\n version: 8,\n sources: {\n 'plotly-carto-positron': {\n type: 'raster',\n attribution: carto,\n tiles: ['https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png'],\n tileSize: 256\n }\n },\n layers: [{\n id: 'plotly-carto-positron',\n type: 'raster',\n source: 'plotly-carto-positron',\n minzoom: 0,\n maxzoom: 22\n }]\n },\n 'carto-darkmatter': {\n id: 'carto-darkmatter',\n version: 8,\n sources: {\n 'plotly-carto-darkmatter': {\n type: 'raster',\n attribution: carto,\n tiles: ['https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png'],\n tileSize: 256\n }\n },\n layers: [{\n id: 'plotly-carto-darkmatter',\n type: 'raster',\n source: 'plotly-carto-darkmatter',\n minzoom: 0,\n maxzoom: 22\n }]\n },\n 'stamen-terrain': {\n id: 'stamen-terrain',\n version: 8,\n sources: {\n 'plotly-stamen-terrain': {\n type: 'raster',\n attribution: stamenTerrainOrToner,\n tiles: ['https://stamen-tiles.a.ssl.fastly.net/terrain/{z}/{x}/{y}.png'],\n tileSize: 256\n }\n },\n layers: [{\n id: 'plotly-stamen-terrain',\n type: 'raster',\n source: 'plotly-stamen-terrain',\n minzoom: 0,\n maxzoom: 22\n }]\n },\n 'stamen-toner': {\n id: 'stamen-toner',\n version: 8,\n sources: {\n 'plotly-stamen-toner': {\n type: 'raster',\n attribution: stamenTerrainOrToner,\n tiles: ['https://stamen-tiles.a.ssl.fastly.net/toner/{z}/{x}/{y}.png'],\n tileSize: 256\n }\n },\n layers: [{\n id: 'plotly-stamen-toner',\n type: 'raster',\n source: 'plotly-stamen-toner',\n minzoom: 0,\n maxzoom: 22\n }]\n },\n 'stamen-watercolor': {\n id: 'stamen-watercolor',\n version: 8,\n sources: {\n 'plotly-stamen-watercolor': {\n type: 'raster',\n attribution: stamenWaterColor,\n tiles: ['https://stamen-tiles.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.png'],\n tileSize: 256\n }\n },\n layers: [{\n id: 'plotly-stamen-watercolor',\n type: 'raster',\n source: 'plotly-stamen-watercolor',\n minzoom: 0,\n maxzoom: 22\n }]\n }\n};\n\nvar styleValuesNonMapbox = sortObjectKeys(stylesNonMapbox);\n\nmodule.exports = {\n requiredVersion: requiredVersion,\n\n styleUrlPrefix: 'mapbox://styles/mapbox/',\n styleUrlSuffix: 'v9',\n\n styleValuesMapbox: ['basic', 'streets', 'outdoors', 'light', 'dark', 'satellite', 'satellite-streets'],\n styleValueDflt: 'basic',\n stylesNonMapbox: stylesNonMapbox,\n styleValuesNonMapbox: styleValuesNonMapbox,\n\n traceLayerPrefix: 'plotly-trace-layer-',\n layoutLayerPrefix: 'plotly-layout-layer-',\n\n wrongVersionErrorMsg: [\n 'Your custom plotly.js bundle is not using the correct mapbox-gl version',\n 'Please install mapbox-gl@' + requiredVersion + '.'\n ].join('\\n'),\n\n noAccessTokenErrorMsg: [\n 'Missing Mapbox access token.',\n 'Mapbox trace type require a Mapbox access token to be registered.',\n 'For example:',\n ' Plotly.newPlot(gd, data, layout, { mapboxAccessToken: \\'my-access-token\\' });',\n 'More info here: https://www.mapbox.com/help/define-access-token/'\n ].join('\\n'),\n\n missingStyleErrorMsg: [\n 'No valid mapbox style found, please set `mapbox.style` to one of:',\n styleValuesNonMapbox.join(', '),\n 'or register a Mapbox access token to use a Mapbox-served style.'\n ].join('\\n'),\n\n multipleTokensErrorMsg: [\n 'Set multiple mapbox access token across different mapbox subplot,',\n 'using first token found as mapbox-gl does not allow multiple' +\n 'access tokens on the same page.'\n ].join('\\n'),\n\n mapOnErrorMsg: 'Mapbox error.',\n\n // Mapbox logo for static export\n mapboxLogo: {\n path0: 'm 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z',\n path1: 'M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z',\n path2: 'M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z',\n polygon: '11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34'\n },\n\n // a subset of node_modules/mapbox-gl/dist/mapbox-gl.css\n styleRules: {\n map: 'overflow:hidden;position:relative;',\n 'missing-css': 'display:none;',\n 'canary': 'background-color:salmon;',\n\n // Reusing CSS directives from: https://api.tiles.mapbox.com/mapbox-gl-js/v1.1.1/mapbox-gl.css\n 'ctrl-bottom-left': 'position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;',\n 'ctrl-bottom-right': 'position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;',\n 'ctrl': 'clear: both; pointer-events: auto; transform: translate(0, 0);',\n\n // Compact ctrl\n 'ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner': 'display: none;',\n 'ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner': 'display: block; margin-top:2px',\n 'ctrl-attrib.mapboxgl-compact:hover': 'padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;',\n 'ctrl-attrib.mapboxgl-compact::after': 'content: \"\"; cursor: pointer; position: absolute; background-image: url(\\'data:image/svg+xml;charset=utf-8,%3Csvg viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\"%3E %3Cpath fill=\"%23333333\" fill-rule=\"evenodd\" d=\"M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0\"/%3E %3C/svg%3E\\'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;',\n 'ctrl-attrib.mapboxgl-compact': 'min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;',\n 'ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after': 'bottom: 0; right: 0',\n 'ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after': 'bottom: 0; left: 0',\n\n 'ctrl-bottom-left .mapboxgl-ctrl': 'margin: 0 0 10px 10px; float: left;',\n 'ctrl-bottom-right .mapboxgl-ctrl': 'margin: 0 10px 10px 0; float: right;',\n\n 'ctrl-attrib': 'color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px',\n 'ctrl-attrib a': 'color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px',\n 'ctrl-attrib a:hover': 'color: inherit; text-decoration: underline;',\n\n 'ctrl-attrib .mapbox-improve-map': 'font-weight: bold; margin-left: 2px;',\n 'attrib-empty': 'display: none;',\n\n // Compact Mapbox logo without text\n 'ctrl-logo': 'display:block; width: 21px; height: 21px; background-image: url(\\'data:image/svg+xml;charset=utf-8,%3C?xml version=\"1.0\" encoding=\"utf-8\"?%3E %3Csvg version=\"1.1\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" viewBox=\"0 0 21 21\" style=\"enable-background:new 0 0 21 21;\" xml:space=\"preserve\"%3E%3Cg transform=\"translate(0,0.01)\"%3E%3Cpath d=\"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z\" style=\"opacity:0.9;fill:%23ffffff;enable-background:new\" class=\"st0\"/%3E%3Cpath d=\"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z\" style=\"opacity:0.35;enable-background:new\" class=\"st1\"/%3E%3Cpath d=\"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z\" style=\"opacity:0.35;enable-background:new\" class=\"st1\"/%3E%3Cpolygon points=\"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 \" style=\"opacity:0.9;fill:%23ffffff;enable-background:new\" class=\"st0\"/%3E%3C/g%3E%3C/svg%3E\\')'\n\n // Mapbox logo WITH text below (commented out for now)\n // 'ctrl-logo': 'width: 85px; height: 21px; margin: 0 0 -3px -3px; display: block; background-repeat: no-repeat; cursor: pointer; background-image: url(\\'data:image/svg+xml;charset=utf-8,%3C?xml version=\"1.0\" encoding=\"utf-8\"?%3E%3Csvg version=\"1.1\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" viewBox=\"0 0 84.49 21\" style=\"enable-background:new 0 0 84.49 21;\" xml:space=\"preserve\"%3E%3Cg%3E %3Cpath class=\"st0\" style=\"opacity:0.9; fill: %23FFFFFF; enable-background: new;\" d=\"M83.25,14.26c0,0.12-0.09,0.21-0.21,0.21h-1.61c-0.13,0-0.24-0.06-0.3-0.17l-1.44-2.39l-1.44,2.39 c-0.06,0.11-0.18,0.17-0.3,0.17h-1.61c-0.04,0-0.08-0.01-0.12-0.03c-0.09-0.06-0.13-0.19-0.06-0.28l0,0l2.43-3.68L76.2,6.84 c-0.02-0.03-0.03-0.07-0.03-0.12c0-0.12,0.09-0.21,0.21-0.21h1.61c0.13,0,0.24,0.06,0.3,0.17l1.41,2.36l1.4-2.35 c0.06-0.11,0.18-0.17,0.3-0.17H83c0.04,0,0.08,0.01,0.12,0.03c0.09,0.06,0.13,0.19,0.06,0.28l0,0l-2.37,3.63l2.43,3.67 C83.24,14.18,83.25,14.22,83.25,14.26z\"/%3E %3Cpath class=\"st0\" style=\"opacity:0.9; fill: %23FFFFFF; enable-background: new;\" d=\"M66.24,9.59c-0.39-1.88-1.96-3.28-3.84-3.28c-1.03,0-2.03,0.42-2.73,1.18V3.51c0-0.13-0.1-0.23-0.23-0.23h-1.4 c-0.13,0-0.23,0.11-0.23,0.23v10.72c0,0.13,0.1,0.23,0.23,0.23h1.4c0.13,0,0.23-0.11,0.23-0.23V13.5c0.71,0.75,1.7,1.18,2.73,1.18 c1.88,0,3.45-1.41,3.84-3.29C66.37,10.79,66.37,10.18,66.24,9.59L66.24,9.59z M62.08,13c-1.32,0-2.39-1.11-2.41-2.48v-0.06 c0.02-1.38,1.09-2.48,2.41-2.48s2.42,1.12,2.42,2.51S63.41,13,62.08,13z\"/%3E %3Cpath class=\"st0\" style=\"opacity:0.9; fill: %23FFFFFF; enable-background: new;\" d=\"M71.67,6.32c-1.98-0.01-3.72,1.35-4.16,3.29c-0.13,0.59-0.13,1.19,0,1.77c0.44,1.94,2.17,3.32,4.17,3.3 c2.35,0,4.26-1.87,4.26-4.19S74.04,6.32,71.67,6.32z M71.65,13.01c-1.33,0-2.42-1.12-2.42-2.51s1.08-2.52,2.42-2.52 c1.33,0,2.42,1.12,2.42,2.51S72.99,13,71.65,13.01L71.65,13.01z\"/%3E %3Cpath class=\"st1\" style=\"opacity:0.35; enable-background:new;\" d=\"M62.08,7.98c-1.32,0-2.39,1.11-2.41,2.48v0.06C59.68,11.9,60.75,13,62.08,13s2.42-1.12,2.42-2.51 S63.41,7.98,62.08,7.98z M62.08,11.76c-0.63,0-1.14-0.56-1.17-1.25v-0.04c0.01-0.69,0.54-1.25,1.17-1.25 c0.63,0,1.17,0.57,1.17,1.27C63.24,11.2,62.73,11.76,62.08,11.76z\"/%3E %3Cpath class=\"st1\" style=\"opacity:0.35; enable-background:new;\" d=\"M71.65,7.98c-1.33,0-2.42,1.12-2.42,2.51S70.32,13,71.65,13s2.42-1.12,2.42-2.51S72.99,7.98,71.65,7.98z M71.65,11.76c-0.64,0-1.17-0.57-1.17-1.27c0-0.7,0.53-1.26,1.17-1.26s1.17,0.57,1.17,1.27C72.82,11.21,72.29,11.76,71.65,11.76z\"/%3E %3Cpath class=\"st0\" style=\"opacity:0.9; fill: %23FFFFFF; enable-background: new;\" d=\"M45.74,6.53h-1.4c-0.13,0-0.23,0.11-0.23,0.23v0.73c-0.71-0.75-1.7-1.18-2.73-1.18 c-2.17,0-3.94,1.87-3.94,4.19s1.77,4.19,3.94,4.19c1.04,0,2.03-0.43,2.73-1.19v0.73c0,0.13,0.1,0.23,0.23,0.23h1.4 c0.13,0,0.23-0.11,0.23-0.23V6.74c0-0.12-0.09-0.22-0.22-0.22C45.75,6.53,45.75,6.53,45.74,6.53z M44.12,10.53 C44.11,11.9,43.03,13,41.71,13s-2.42-1.12-2.42-2.51s1.08-2.52,2.4-2.52c1.33,0,2.39,1.11,2.41,2.48L44.12,10.53z\"/%3E %3Cpath class=\"st1\" style=\"opacity:0.35; enable-background:new;\" d=\"M41.71,7.98c-1.33,0-2.42,1.12-2.42,2.51S40.37,13,41.71,13s2.39-1.11,2.41-2.48v-0.06 C44.1,9.09,43.03,7.98,41.71,7.98z M40.55,10.49c0-0.7,0.52-1.27,1.17-1.27c0.64,0,1.14,0.56,1.17,1.25v0.04 c-0.01,0.68-0.53,1.24-1.17,1.24C41.08,11.75,40.55,11.19,40.55,10.49z\"/%3E %3Cpath class=\"st0\" style=\"opacity:0.9; fill: %23FFFFFF; enable-background: new;\" d=\"M52.41,6.32c-1.03,0-2.03,0.42-2.73,1.18V6.75c0-0.13-0.1-0.23-0.23-0.23h-1.4c-0.13,0-0.23,0.11-0.23,0.23 v10.72c0,0.13,0.1,0.23,0.23,0.23h1.4c0.13,0,0.23-0.1,0.23-0.23V13.5c0.71,0.75,1.7,1.18,2.74,1.18c2.17,0,3.94-1.87,3.94-4.19 S54.58,6.32,52.41,6.32z M52.08,13.01c-1.32,0-2.39-1.11-2.42-2.48v-0.07c0.02-1.38,1.09-2.49,2.4-2.49c1.32,0,2.41,1.12,2.41,2.51 S53.4,13,52.08,13.01L52.08,13.01z\"/%3E %3Cpath class=\"st1\" style=\"opacity:0.35; enable-background:new;\" d=\"M52.08,7.98c-1.32,0-2.39,1.11-2.42,2.48v0.06c0.03,1.38,1.1,2.48,2.42,2.48s2.41-1.12,2.41-2.51 S53.4,7.98,52.08,7.98z M52.08,11.76c-0.63,0-1.14-0.56-1.17-1.25v-0.04c0.01-0.69,0.54-1.25,1.17-1.25c0.63,0,1.17,0.58,1.17,1.27 S52.72,11.76,52.08,11.76z\"/%3E %3Cpath class=\"st0\" style=\"opacity:0.9; fill: %23FFFFFF; enable-background: new;\" d=\"M36.08,14.24c0,0.13-0.1,0.23-0.23,0.23h-1.41c-0.13,0-0.23-0.11-0.23-0.23V9.68c0-0.98-0.74-1.71-1.62-1.71 c-0.8,0-1.46,0.7-1.59,1.62l0.01,4.66c0,0.13-0.11,0.23-0.23,0.23h-1.41c-0.13,0-0.23-0.11-0.23-0.23V9.68 c0-0.98-0.74-1.71-1.62-1.71c-0.85,0-1.54,0.79-1.6,1.8v4.48c0,0.13-0.1,0.23-0.23,0.23h-1.4c-0.13,0-0.23-0.11-0.23-0.23V6.74 c0.01-0.13,0.1-0.22,0.23-0.22h1.4c0.13,0,0.22,0.11,0.23,0.22V7.4c0.5-0.68,1.3-1.09,2.16-1.1h0.03c1.09,0,2.09,0.6,2.6,1.55 c0.45-0.95,1.4-1.55,2.44-1.56c1.62,0,2.93,1.25,2.9,2.78L36.08,14.24z\"/%3E %3Cpath class=\"st1\" style=\"opacity:0.35; enable-background:new;\" d=\"M84.34,13.59l-0.07-0.13l-1.96-2.99l1.94-2.95c0.44-0.67,0.26-1.56-0.41-2.02c-0.02,0-0.03,0-0.04-0.01 c-0.23-0.15-0.5-0.22-0.78-0.22h-1.61c-0.56,0-1.08,0.29-1.37,0.78L79.72,6.6l-0.34-0.56C79.09,5.56,78.57,5.27,78,5.27h-1.6 c-0.6,0-1.13,0.37-1.35,0.92c-2.19-1.66-5.28-1.47-7.26,0.45c-0.35,0.34-0.65,0.72-0.89,1.14c-0.9-1.62-2.58-2.72-4.5-2.72 c-0.5,0-1.01,0.07-1.48,0.23V3.51c0-0.82-0.66-1.48-1.47-1.48h-1.4c-0.81,0-1.47,0.66-1.47,1.47v3.75 c-0.95-1.36-2.5-2.18-4.17-2.19c-0.74,0-1.46,0.16-2.12,0.47c-0.24-0.17-0.54-0.26-0.84-0.26h-1.4c-0.45,0-0.87,0.21-1.15,0.56 c-0.02-0.03-0.04-0.05-0.07-0.08c-0.28-0.3-0.68-0.47-1.09-0.47h-1.39c-0.3,0-0.6,0.09-0.84,0.26c-0.67-0.3-1.39-0.46-2.12-0.46 c-1.83,0-3.43,1-4.37,2.5c-0.2-0.46-0.48-0.89-0.83-1.25c-0.8-0.81-1.89-1.25-3.02-1.25h-0.01c-0.89,0.01-1.75,0.33-2.46,0.88 c-0.74-0.57-1.64-0.88-2.57-0.88H28.1c-0.29,0-0.58,0.03-0.86,0.11c-0.28,0.06-0.56,0.16-0.82,0.28c-0.21-0.12-0.45-0.18-0.7-0.18 h-1.4c-0.82,0-1.47,0.66-1.47,1.47v7.5c0,0.82,0.66,1.47,1.47,1.47h1.4c0.82,0,1.48-0.66,1.48-1.48l0,0V9.79 c0.03-0.36,0.23-0.59,0.36-0.59c0.18,0,0.38,0.18,0.38,0.47v4.57c0,0.82,0.66,1.47,1.47,1.47h1.41c0.82,0,1.47-0.66,1.47-1.47 l-0.01-4.57c0.06-0.32,0.25-0.47,0.35-0.47c0.18,0,0.38,0.18,0.38,0.47v4.57c0,0.82,0.66,1.47,1.47,1.47h1.41 c0.82,0,1.47-0.66,1.47-1.47v-0.38c0.96,1.29,2.46,2.06,4.06,2.06c0.74,0,1.46-0.16,2.12-0.47c0.24,0.17,0.54,0.26,0.84,0.26h1.39 c0.3,0,0.6-0.09,0.84-0.26v2.01c0,0.82,0.66,1.47,1.47,1.47h1.4c0.82,0,1.47-0.66,1.47-1.47v-1.77c0.48,0.15,0.99,0.23,1.49,0.22 c1.7,0,3.22-0.87,4.17-2.2v0.52c0,0.82,0.66,1.47,1.47,1.47h1.4c0.3,0,0.6-0.09,0.84-0.26c0.66,0.31,1.39,0.47,2.12,0.47 c1.92,0,3.6-1.1,4.49-2.73c1.54,2.65,4.95,3.53,7.58,1.98c0.18-0.11,0.36-0.22,0.53-0.36c0.22,0.55,0.76,0.91,1.35,0.9H78 c0.56,0,1.08-0.29,1.37-0.78l0.37-0.61l0.37,0.61c0.29,0.48,0.81,0.78,1.38,0.78h1.6c0.81,0,1.46-0.66,1.45-1.46 C84.49,14.02,84.44,13.8,84.34,13.59L84.34,13.59z M35.86,14.47h-1.41c-0.13,0-0.23-0.11-0.23-0.23V9.68 c0-0.98-0.74-1.71-1.62-1.71c-0.8,0-1.46,0.7-1.59,1.62l0.01,4.66c0,0.13-0.1,0.23-0.23,0.23h-1.41c-0.13,0-0.23-0.11-0.23-0.23 V9.68c0-0.98-0.74-1.71-1.62-1.71c-0.85,0-1.54,0.79-1.6,1.8v4.48c0,0.13-0.1,0.23-0.23,0.23h-1.4c-0.13,0-0.23-0.11-0.23-0.23 V6.74c0.01-0.13,0.11-0.22,0.23-0.22h1.4c0.13,0,0.22,0.11,0.23,0.22V7.4c0.5-0.68,1.3-1.09,2.16-1.1h0.03 c1.09,0,2.09,0.6,2.6,1.55c0.45-0.95,1.4-1.55,2.44-1.56c1.62,0,2.93,1.25,2.9,2.78l0.01,5.16C36.09,14.36,35.98,14.46,35.86,14.47 L35.86,14.47z M45.97,14.24c0,0.13-0.1,0.23-0.23,0.23h-1.4c-0.13,0-0.23-0.11-0.23-0.23V13.5c-0.7,0.76-1.69,1.18-2.72,1.18 c-2.17,0-3.94-1.87-3.94-4.19s1.77-4.19,3.94-4.19c1.03,0,2.02,0.43,2.73,1.18V6.74c0-0.13,0.1-0.23,0.23-0.23h1.4 c0.12-0.01,0.22,0.08,0.23,0.21c0,0.01,0,0.01,0,0.02v7.51h-0.01V14.24z M52.41,14.67c-1.03,0-2.02-0.43-2.73-1.18v3.97 c0,0.13-0.1,0.23-0.23,0.23h-1.4c-0.13,0-0.23-0.1-0.23-0.23V6.75c0-0.13,0.1-0.22,0.23-0.22h1.4c0.13,0,0.23,0.11,0.23,0.23v0.73 c0.71-0.76,1.7-1.18,2.73-1.18c2.17,0,3.94,1.86,3.94,4.18S54.58,14.67,52.41,14.67z M66.24,11.39c-0.39,1.87-1.96,3.29-3.84,3.29 c-1.03,0-2.02-0.43-2.73-1.18v0.73c0,0.13-0.1,0.23-0.23,0.23h-1.4c-0.13,0-0.23-0.11-0.23-0.23V3.51c0-0.13,0.1-0.23,0.23-0.23 h1.4c0.13,0,0.23,0.11,0.23,0.23v3.97c0.71-0.75,1.7-1.18,2.73-1.17c1.88,0,3.45,1.4,3.84,3.28C66.37,10.19,66.37,10.8,66.24,11.39 L66.24,11.39L66.24,11.39z M71.67,14.68c-2,0.01-3.73-1.35-4.17-3.3c-0.13-0.59-0.13-1.19,0-1.77c0.44-1.94,2.17-3.31,4.17-3.3 c2.36,0,4.26,1.87,4.26,4.19S74.03,14.68,71.67,14.68L71.67,14.68z M83.04,14.47h-1.61c-0.13,0-0.24-0.06-0.3-0.17l-1.44-2.39 l-1.44,2.39c-0.06,0.11-0.18,0.17-0.3,0.17h-1.61c-0.04,0-0.08-0.01-0.12-0.03c-0.09-0.06-0.13-0.19-0.06-0.28l0,0l2.43-3.68 L76.2,6.84c-0.02-0.03-0.03-0.07-0.03-0.12c0-0.12,0.09-0.21,0.21-0.21h1.61c0.13,0,0.24,0.06,0.3,0.17l1.41,2.36l1.41-2.36 c0.06-0.11,0.18-0.17,0.3-0.17h1.61c0.04,0,0.08,0.01,0.12,0.03c0.09,0.06,0.13,0.19,0.06,0.28l0,0l-2.38,3.64l2.43,3.67 c0.02,0.03,0.03,0.07,0.03,0.12C83.25,14.38,83.16,14.47,83.04,14.47L83.04,14.47L83.04,14.47z\"/%3E %3Cpath class=\"st0\" style=\"opacity:0.9; fill: %23FFFFFF; enable-background: new;\" d=\"M10.5,1.24c-5.11,0-9.25,4.15-9.25,9.25s4.15,9.25,9.25,9.25s9.25-4.15,9.25-9.25 C19.75,5.38,15.61,1.24,10.5,1.24z M14.89,12.77c-1.93,1.93-4.78,2.31-6.7,2.31c-0.7,0-1.41-0.05-2.1-0.16c0,0-1.02-5.64,2.14-8.81 c0.83-0.83,1.95-1.28,3.13-1.28c1.27,0,2.49,0.51,3.39,1.42C16.59,8.09,16.64,11,14.89,12.77z\"/%3E %3Cpath class=\"st1\" style=\"opacity:0.35; enable-background:new;\" d=\"M10.5-0.01C4.7-0.01,0,4.7,0,10.49s4.7,10.5,10.5,10.5S21,16.29,21,10.49C20.99,4.7,16.3-0.01,10.5-0.01z M10.5,19.74c-5.11,0-9.25-4.15-9.25-9.25s4.14-9.26,9.25-9.26s9.25,4.15,9.25,9.25C19.75,15.61,15.61,19.74,10.5,19.74z\"/%3E %3Cpath class=\"st1\" style=\"opacity:0.35; enable-background:new;\" d=\"M14.74,6.25C12.9,4.41,9.98,4.35,8.23,6.1c-3.16,3.17-2.14,8.81-2.14,8.81s5.64,1.02,8.81-2.14 C16.64,11,16.59,8.09,14.74,6.25z M12.47,10.34l-0.91,1.87l-0.9-1.87L8.8,9.43l1.86-0.9l0.9-1.87l0.91,1.87l1.86,0.9L12.47,10.34z\"/%3E %3Cpolygon class=\"st0\" style=\"opacity:0.9; fill: %23FFFFFF; enable-background: new;\" points=\"14.33,9.43 12.47,10.34 11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 \"/%3E%3C/g%3E%3C/svg%3E\\');'\n }\n};\n\n},{\"../../lib/sort_object_keys\":526}],612:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\n/**\n * Convert plotly.js 'textposition' to mapbox-gl 'anchor' and 'offset'\n * (with the help of the icon size).\n *\n * @param {string} textpostion : plotly.js textposition value\n * @param {number} iconSize : plotly.js icon size (e.g. marker.size for traces)\n *\n * @return {object}\n * - anchor\n * - offset\n */\nmodule.exports = function convertTextOpts(textposition, iconSize) {\n var parts = textposition.split(' ');\n var vPos = parts[0];\n var hPos = parts[1];\n\n // ballpack values\n var factor = Lib.isArrayOrTypedArray(iconSize) ? Lib.mean(iconSize) : iconSize;\n var xInc = 0.5 + (factor / 100);\n var yInc = 1.5 + (factor / 100);\n\n var anchorVals = ['', ''];\n var offset = [0, 0];\n\n switch(vPos) {\n case 'top':\n anchorVals[0] = 'top';\n offset[1] = -yInc;\n break;\n case 'bottom':\n anchorVals[0] = 'bottom';\n offset[1] = yInc;\n break;\n }\n\n switch(hPos) {\n case 'left':\n anchorVals[1] = 'right';\n offset[0] = -xInc;\n break;\n case 'right':\n anchorVals[1] = 'left';\n offset[0] = xInc;\n break;\n }\n\n // Mapbox text-anchor must be one of:\n // center, left, right, top, bottom,\n // top-left, top-right, bottom-left, bottom-right\n\n var anchor;\n if(anchorVals[0] && anchorVals[1]) anchor = anchorVals.join('-');\n else if(anchorVals[0]) anchor = anchorVals[0];\n else if(anchorVals[1]) anchor = anchorVals[1];\n else anchor = 'center';\n\n return { anchor: anchor, offset: offset };\n};\n\n},{\"../../lib\":503}],613:[function(_dereq_,module,exports){\n'use strict';\n\nvar mapboxgl = _dereq_('mapbox-gl/dist/mapbox-gl-unminified');\n\nvar Lib = _dereq_('../../lib');\nvar strTranslate = Lib.strTranslate;\nvar strScale = Lib.strScale;\nvar getSubplotCalcData = _dereq_('../../plots/get_data').getSubplotCalcData;\nvar xmlnsNamespaces = _dereq_('../../constants/xmlns_namespaces');\nvar d3 = _dereq_('@plotly/d3');\nvar Drawing = _dereq_('../../components/drawing');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\n\nvar Mapbox = _dereq_('./mapbox');\n\nvar MAPBOX = 'mapbox';\n\nvar constants = exports.constants = _dereq_('./constants');\n\nexports.name = MAPBOX;\n\nexports.attr = 'subplot';\n\nexports.idRoot = MAPBOX;\n\nexports.idRegex = exports.attrRegex = Lib.counterRegex(MAPBOX);\n\nexports.attributes = {\n subplot: {\n valType: 'subplotid',\n dflt: 'mapbox',\n editType: 'calc',\n }\n};\n\nexports.layoutAttributes = _dereq_('./layout_attributes');\n\nexports.supplyLayoutDefaults = _dereq_('./layout_defaults');\n\nexports.plot = function plot(gd) {\n var fullLayout = gd._fullLayout;\n var calcData = gd.calcdata;\n var mapboxIds = fullLayout._subplots[MAPBOX];\n\n if(mapboxgl.version !== constants.requiredVersion) {\n throw new Error(constants.wrongVersionErrorMsg);\n }\n\n var accessToken = findAccessToken(gd, mapboxIds);\n mapboxgl.accessToken = accessToken;\n\n for(var i = 0; i < mapboxIds.length; i++) {\n var id = mapboxIds[i];\n var subplotCalcData = getSubplotCalcData(calcData, MAPBOX, id);\n var opts = fullLayout[id];\n var mapbox = opts._subplot;\n\n if(!mapbox) {\n mapbox = new Mapbox(gd, id);\n fullLayout[id]._subplot = mapbox;\n }\n\n if(!mapbox.viewInitial) {\n mapbox.viewInitial = {\n center: Lib.extendFlat({}, opts.center),\n zoom: opts.zoom,\n bearing: opts.bearing,\n pitch: opts.pitch\n };\n }\n\n mapbox.plot(subplotCalcData, fullLayout, gd._promises);\n }\n};\n\nexports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n var oldMapboxKeys = oldFullLayout._subplots[MAPBOX] || [];\n\n for(var i = 0; i < oldMapboxKeys.length; i++) {\n var oldMapboxKey = oldMapboxKeys[i];\n\n if(!newFullLayout[oldMapboxKey] && !!oldFullLayout[oldMapboxKey]._subplot) {\n oldFullLayout[oldMapboxKey]._subplot.destroy();\n }\n }\n};\n\nexports.toSVG = function(gd) {\n var fullLayout = gd._fullLayout;\n var subplotIds = fullLayout._subplots[MAPBOX];\n var size = fullLayout._size;\n\n for(var i = 0; i < subplotIds.length; i++) {\n var opts = fullLayout[subplotIds[i]];\n var domain = opts.domain;\n var mapbox = opts._subplot;\n\n var imageData = mapbox.toImage('png');\n var image = fullLayout._glimages.append('svg:image');\n\n image.attr({\n xmlns: xmlnsNamespaces.svg,\n 'xlink:href': imageData,\n x: size.l + size.w * domain.x[0],\n y: size.t + size.h * (1 - domain.y[1]),\n width: size.w * (domain.x[1] - domain.x[0]),\n height: size.h * (domain.y[1] - domain.y[0]),\n preserveAspectRatio: 'none'\n });\n\n var subplotDiv = d3.select(opts._subplot.div);\n\n // Append logo if visible\n var hidden = subplotDiv.select('.mapboxgl-ctrl-logo').node().offsetParent === null;\n if(!hidden) {\n var logo = fullLayout._glimages.append('g');\n logo.attr('transform', strTranslate(size.l + size.w * domain.x[0] + 10, size.t + size.h * (1 - domain.y[0]) - 31));\n logo.append('path')\n .attr('d', constants.mapboxLogo.path0)\n .style({\n opacity: 0.9,\n fill: '#ffffff',\n 'enable-background': 'new'\n });\n\n logo.append('path')\n .attr('d', constants.mapboxLogo.path1)\n .style('opacity', 0.35)\n .style('enable-background', 'new');\n\n logo.append('path')\n .attr('d', constants.mapboxLogo.path2)\n .style('opacity', 0.35)\n .style('enable-background', 'new');\n\n logo.append('polygon')\n .attr('points', constants.mapboxLogo.polygon)\n .style({\n opacity: 0.9,\n fill: '#ffffff',\n 'enable-background': 'new'\n });\n }\n\n // Add attributions\n var attributions = subplotDiv\n .select('.mapboxgl-ctrl-attrib').text()\n .replace('Improve this map', '');\n\n var attributionGroup = fullLayout._glimages.append('g');\n\n var attributionText = attributionGroup.append('text');\n attributionText\n .text(attributions)\n .classed('static-attribution', true)\n .attr({\n 'font-size': 12,\n 'font-family': 'Arial',\n 'color': 'rgba(0, 0, 0, 0.75)',\n 'text-anchor': 'end',\n 'data-unformatted': attributions\n });\n\n var bBox = Drawing.bBox(attributionText.node());\n\n // Break into multiple lines twice larger than domain\n var maxWidth = size.w * (domain.x[1] - domain.x[0]);\n if((bBox.width > maxWidth / 2)) {\n var multilineAttributions = attributions.split('|').join('
');\n attributionText\n .text(multilineAttributions)\n .attr('data-unformatted', multilineAttributions)\n .call(svgTextUtils.convertToTspans, gd);\n\n bBox = Drawing.bBox(attributionText.node());\n }\n attributionText.attr('transform', strTranslate(-3, -bBox.height + 8));\n\n // Draw white rectangle behind text\n attributionGroup\n .insert('rect', '.static-attribution')\n .attr({\n x: -bBox.width - 6,\n y: -bBox.height - 3,\n width: bBox.width + 6,\n height: bBox.height + 3,\n fill: 'rgba(255, 255, 255, 0.75)'\n });\n\n // Scale down if larger than domain\n var scaleRatio = 1;\n if((bBox.width + 6) > maxWidth) scaleRatio = maxWidth / (bBox.width + 6);\n\n var offset = [(size.l + size.w * domain.x[1]), (size.t + size.h * (1 - domain.y[0]))];\n attributionGroup.attr('transform', strTranslate(offset[0], offset[1]) + strScale(scaleRatio));\n }\n};\n\n// N.B. mapbox-gl only allows one accessToken to be set per page:\n// https://github.com/mapbox/mapbox-gl-js/issues/6331\nfunction findAccessToken(gd, mapboxIds) {\n var fullLayout = gd._fullLayout;\n var context = gd._context;\n\n // special case for Mapbox Atlas users\n if(context.mapboxAccessToken === '') return '';\n\n var tokensUseful = [];\n var tokensListed = [];\n var hasOneSetMapboxStyle = false;\n var wontWork = false;\n\n // Take the first token we find in a mapbox subplot.\n // These default to the context value but may be overridden.\n for(var i = 0; i < mapboxIds.length; i++) {\n var opts = fullLayout[mapboxIds[i]];\n var token = opts.accesstoken;\n\n if(isMapboxStyle(opts.style)) {\n if(token) {\n Lib.pushUnique(tokensUseful, token);\n } else {\n if(isMapboxStyle(opts._input.style)) {\n Lib.error('Uses Mapbox map style, but did not set an access token.');\n hasOneSetMapboxStyle = true;\n }\n wontWork = true;\n }\n }\n\n if(token) {\n Lib.pushUnique(tokensListed, token);\n }\n }\n\n if(wontWork) {\n var msg = hasOneSetMapboxStyle ?\n constants.noAccessTokenErrorMsg :\n constants.missingStyleErrorMsg;\n Lib.error(msg);\n throw new Error(msg);\n }\n\n if(tokensUseful.length) {\n if(tokensUseful.length > 1) {\n Lib.warn(constants.multipleTokensErrorMsg);\n }\n return tokensUseful[0];\n } else {\n if(tokensListed.length) {\n Lib.log([\n 'Listed mapbox access token(s)', tokensListed.join(','),\n 'but did not use a Mapbox map style, ignoring token(s).'\n ].join(' '));\n }\n return '';\n }\n}\n\nfunction isMapboxStyle(s) {\n return typeof s === 'string' && (\n constants.styleValuesMapbox.indexOf(s) !== -1 ||\n s.indexOf('mapbox://') === 0\n );\n}\n\nexports.updateFx = function(gd) {\n var fullLayout = gd._fullLayout;\n var subplotIds = fullLayout._subplots[MAPBOX];\n\n for(var i = 0; i < subplotIds.length; i++) {\n var subplotObj = fullLayout[subplotIds[i]]._subplot;\n subplotObj.updateFx(fullLayout);\n }\n};\n\n},{\"../../components/drawing\":388,\"../../constants/xmlns_namespaces\":480,\"../../lib\":503,\"../../lib/svg_text_utils\":529,\"../../plots/get_data\":593,\"./constants\":611,\"./layout_attributes\":615,\"./layout_defaults\":616,\"./mapbox\":617,\"@plotly/d3\":58,\"mapbox-gl/dist/mapbox-gl-unminified\":239}],614:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar sanitizeHTML = _dereq_('../../lib/svg_text_utils').sanitizeHTML;\nvar convertTextOpts = _dereq_('./convert_text_opts');\nvar constants = _dereq_('./constants');\n\nfunction MapboxLayer(subplot, index) {\n this.subplot = subplot;\n\n this.uid = subplot.uid + '-' + index;\n this.index = index;\n\n this.idSource = 'source-' + this.uid;\n this.idLayer = constants.layoutLayerPrefix + this.uid;\n\n // some state variable to check if a remove/add step is needed\n this.sourceType = null;\n this.source = null;\n this.layerType = null;\n this.below = null;\n\n // is layer currently visible\n this.visible = false;\n}\n\nvar proto = MapboxLayer.prototype;\n\nproto.update = function update(opts) {\n if(!this.visible) {\n // IMPORTANT: must create source before layer to not cause errors\n this.updateSource(opts);\n this.updateLayer(opts);\n } else if(this.needsNewImage(opts)) {\n this.updateImage(opts);\n } else if(this.needsNewSource(opts)) {\n // IMPORTANT: must delete layer before source to not cause errors\n this.removeLayer();\n this.updateSource(opts);\n this.updateLayer(opts);\n } else if(this.needsNewLayer(opts)) {\n this.updateLayer(opts);\n } else {\n this.updateStyle(opts);\n }\n\n this.visible = isVisible(opts);\n};\n\nproto.needsNewImage = function(opts) {\n var map = this.subplot.map;\n return (\n map.getSource(this.idSource) &&\n this.sourceType === 'image' &&\n opts.sourcetype === 'image' &&\n (this.source !== opts.source ||\n JSON.stringify(this.coordinates) !==\n JSON.stringify(opts.coordinates))\n );\n};\n\nproto.needsNewSource = function(opts) {\n // for some reason changing layer to 'fill' or 'symbol'\n // w/o changing the source throws an exception in mapbox-gl 0.18 ;\n // stay safe and make new source on type changes\n return (\n this.sourceType !== opts.sourcetype ||\n JSON.stringify(this.source) !== JSON.stringify(opts.source) ||\n this.layerType !== opts.type\n );\n};\n\nproto.needsNewLayer = function(opts) {\n return (\n this.layerType !== opts.type ||\n this.below !== this.subplot.belowLookup['layout-' + this.index]\n );\n};\n\nproto.lookupBelow = function() {\n return this.subplot.belowLookup['layout-' + this.index];\n};\n\nproto.updateImage = function(opts) {\n var map = this.subplot.map;\n map.getSource(this.idSource).updateImage({\n url: opts.source, coordinates: opts.coordinates\n });\n\n // Since the `updateImage` control flow doesn't call updateLayer,\n // We need to take care of moving the image layer to match the location\n // where updateLayer would have placed it.\n var _below = this.findFollowingMapboxLayerId(this.lookupBelow());\n if(_below !== null) {\n this.subplot.map.moveLayer(this.idLayer, _below);\n }\n};\n\nproto.updateSource = function(opts) {\n var map = this.subplot.map;\n\n if(map.getSource(this.idSource)) map.removeSource(this.idSource);\n\n this.sourceType = opts.sourcetype;\n this.source = opts.source;\n\n if(!isVisible(opts)) return;\n\n var sourceOpts = convertSourceOpts(opts);\n\n map.addSource(this.idSource, sourceOpts);\n};\n\nproto.findFollowingMapboxLayerId = function(below) {\n if(below === 'traces') {\n var mapLayers = this.subplot.getMapLayers();\n\n // find id of first plotly trace layer\n for(var i = 0; i < mapLayers.length; i++) {\n var layerId = mapLayers[i].id;\n if(typeof layerId === 'string' &&\n layerId.indexOf(constants.traceLayerPrefix) === 0\n ) {\n below = layerId;\n break;\n }\n }\n }\n return below;\n};\n\nproto.updateLayer = function(opts) {\n var subplot = this.subplot;\n var convertedOpts = convertOpts(opts);\n var below = this.lookupBelow();\n var _below = this.findFollowingMapboxLayerId(below);\n\n this.removeLayer();\n\n if(isVisible(opts)) {\n subplot.addLayer({\n id: this.idLayer,\n source: this.idSource,\n 'source-layer': opts.sourcelayer || '',\n type: opts.type,\n minzoom: opts.minzoom,\n maxzoom: opts.maxzoom,\n layout: convertedOpts.layout,\n paint: convertedOpts.paint\n }, _below);\n }\n\n this.layerType = opts.type;\n this.below = below;\n};\n\nproto.updateStyle = function(opts) {\n if(isVisible(opts)) {\n var convertedOpts = convertOpts(opts);\n this.subplot.setOptions(this.idLayer, 'setLayoutProperty', convertedOpts.layout);\n this.subplot.setOptions(this.idLayer, 'setPaintProperty', convertedOpts.paint);\n }\n};\n\nproto.removeLayer = function() {\n var map = this.subplot.map;\n if(map.getLayer(this.idLayer)) {\n map.removeLayer(this.idLayer);\n }\n};\n\nproto.dispose = function() {\n var map = this.subplot.map;\n if(map.getLayer(this.idLayer)) map.removeLayer(this.idLayer);\n if(map.getSource(this.idSource)) map.removeSource(this.idSource);\n};\n\nfunction isVisible(opts) {\n if(!opts.visible) return false;\n\n var source = opts.source;\n\n if(Array.isArray(source) && source.length > 0) {\n for(var i = 0; i < source.length; i++) {\n if(typeof source[i] !== 'string' || source[i].length === 0) {\n return false;\n }\n }\n return true;\n }\n\n return Lib.isPlainObject(source) ||\n (typeof source === 'string' && source.length > 0);\n}\n\nfunction convertOpts(opts) {\n var layout = {};\n var paint = {};\n\n switch(opts.type) {\n case 'circle':\n Lib.extendFlat(paint, {\n 'circle-radius': opts.circle.radius,\n 'circle-color': opts.color,\n 'circle-opacity': opts.opacity\n });\n break;\n\n case 'line':\n Lib.extendFlat(paint, {\n 'line-width': opts.line.width,\n 'line-color': opts.color,\n 'line-opacity': opts.opacity,\n 'line-dasharray': opts.line.dash\n });\n break;\n\n case 'fill':\n Lib.extendFlat(paint, {\n 'fill-color': opts.color,\n 'fill-outline-color': opts.fill.outlinecolor,\n 'fill-opacity': opts.opacity\n\n // no way to pass specify outline width at the moment\n });\n break;\n\n case 'symbol':\n var symbol = opts.symbol;\n var textOpts = convertTextOpts(symbol.textposition, symbol.iconsize);\n\n Lib.extendFlat(layout, {\n 'icon-image': symbol.icon + '-15',\n 'icon-size': symbol.iconsize / 10,\n\n 'text-field': symbol.text,\n 'text-size': symbol.textfont.size,\n 'text-anchor': textOpts.anchor,\n 'text-offset': textOpts.offset,\n 'symbol-placement': symbol.placement,\n\n // TODO font family\n // 'text-font': symbol.textfont.family.split(', '),\n });\n\n Lib.extendFlat(paint, {\n 'icon-color': opts.color,\n 'text-color': symbol.textfont.color,\n 'text-opacity': opts.opacity\n });\n break;\n case 'raster':\n Lib.extendFlat(paint, {\n 'raster-fade-duration': 0,\n 'raster-opacity': opts.opacity\n });\n break;\n }\n\n return {\n layout: layout,\n paint: paint\n };\n}\n\nfunction convertSourceOpts(opts) {\n var sourceType = opts.sourcetype;\n var source = opts.source;\n var sourceOpts = {type: sourceType};\n var field;\n\n if(sourceType === 'geojson') {\n field = 'data';\n } else if(sourceType === 'vector') {\n field = typeof source === 'string' ? 'url' : 'tiles';\n } else if(sourceType === 'raster') {\n field = 'tiles';\n sourceOpts.tileSize = 256;\n } else if(sourceType === 'image') {\n field = 'url';\n sourceOpts.coordinates = opts.coordinates;\n }\n\n sourceOpts[field] = source;\n\n if(opts.sourceattribution) {\n sourceOpts.attribution = sanitizeHTML(opts.sourceattribution);\n }\n\n return sourceOpts;\n}\n\nmodule.exports = function createMapboxLayer(subplot, index, opts) {\n var mapboxLayer = new MapboxLayer(subplot, index);\n\n mapboxLayer.update(opts);\n\n return mapboxLayer;\n};\n\n},{\"../../lib\":503,\"../../lib/svg_text_utils\":529,\"./constants\":611,\"./convert_text_opts\":612}],615:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar defaultLine = _dereq_('../../components/color').defaultLine;\nvar domainAttrs = _dereq_('../domain').attributes;\nvar fontAttrs = _dereq_('../font_attributes');\nvar textposition = _dereq_('../../traces/scatter/attributes').textposition;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\nvar templatedArray = _dereq_('../../plot_api/plot_template').templatedArray;\n\nvar constants = _dereq_('./constants');\n\nvar fontAttr = fontAttrs({\n});\nfontAttr.family.dflt = 'Open Sans Regular, Arial Unicode MS Regular';\n\nvar attrs = module.exports = overrideAll({\n _arrayAttrRegexps: [Lib.counterRegex('mapbox', '.layers', true)],\n\n domain: domainAttrs({name: 'mapbox'}),\n\n accesstoken: {\n valType: 'string',\n noBlank: true,\n strict: true,\n },\n style: {\n valType: 'any',\n values: constants.styleValuesMapbox.concat(constants.styleValuesNonMapbox),\n dflt: constants.styleValueDflt,\n },\n\n center: {\n lon: {\n valType: 'number',\n dflt: 0,\n },\n lat: {\n valType: 'number',\n dflt: 0,\n }\n },\n zoom: {\n valType: 'number',\n dflt: 1,\n },\n bearing: {\n valType: 'number',\n dflt: 0,\n },\n pitch: {\n valType: 'number',\n dflt: 0,\n },\n\n layers: templatedArray('layer', {\n visible: {\n valType: 'boolean',\n dflt: true,\n },\n sourcetype: {\n valType: 'enumerated',\n values: ['geojson', 'vector', 'raster', 'image'],\n dflt: 'geojson',\n },\n\n source: {\n valType: 'any',\n },\n\n sourcelayer: {\n valType: 'string',\n dflt: '',\n },\n\n sourceattribution: {\n valType: 'string',\n },\n\n type: {\n valType: 'enumerated',\n values: ['circle', 'line', 'fill', 'symbol', 'raster'],\n dflt: 'circle',\n },\n\n coordinates: {\n valType: 'any',\n },\n\n // attributes shared between all types\n below: {\n valType: 'string',\n },\n color: {\n valType: 'color',\n dflt: defaultLine,\n },\n opacity: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 1,\n },\n minzoom: {\n valType: 'number',\n min: 0,\n max: 24,\n dflt: 0,\n },\n maxzoom: {\n valType: 'number',\n min: 0,\n max: 24,\n dflt: 24,\n },\n\n // type-specific style attributes\n circle: {\n radius: {\n valType: 'number',\n dflt: 15,\n }\n },\n\n line: {\n width: {\n valType: 'number',\n dflt: 2,\n },\n dash: {\n valType: 'data_array',\n }\n },\n\n fill: {\n outlinecolor: {\n valType: 'color',\n dflt: defaultLine,\n }\n },\n\n symbol: {\n icon: {\n valType: 'string',\n dflt: 'marker',\n },\n iconsize: {\n valType: 'number',\n dflt: 10,\n },\n text: {\n valType: 'string',\n dflt: '',\n },\n placement: {\n valType: 'enumerated',\n values: ['point', 'line', 'line-center'],\n dflt: 'point',\n },\n textfont: fontAttr,\n textposition: Lib.extendFlat({}, textposition, { arrayOk: false })\n }\n })\n}, 'plot', 'from-root');\n\n// set uirevision outside of overrideAll so it can be `editType: 'none'`\nattrs.uirevision = {\n valType: 'any',\n editType: 'none',\n};\n\n},{\"../../components/color\":366,\"../../lib\":503,\"../../plot_api/edit_types\":536,\"../../plot_api/plot_template\":543,\"../../traces/scatter/attributes\":925,\"../domain\":584,\"../font_attributes\":585,\"./constants\":611}],616:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar handleSubplotDefaults = _dereq_('../subplot_defaults');\nvar handleArrayContainerDefaults = _dereq_('../array_container_defaults');\nvar layoutAttributes = _dereq_('./layout_attributes');\n\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut, fullData) {\n handleSubplotDefaults(layoutIn, layoutOut, fullData, {\n type: 'mapbox',\n attributes: layoutAttributes,\n handleDefaults: handleDefaults,\n partition: 'y',\n accessToken: layoutOut._mapboxAccessToken\n });\n};\n\nfunction handleDefaults(containerIn, containerOut, coerce, opts) {\n coerce('accesstoken', opts.accessToken);\n coerce('style');\n coerce('center.lon');\n coerce('center.lat');\n coerce('zoom');\n coerce('bearing');\n coerce('pitch');\n\n handleArrayContainerDefaults(containerIn, containerOut, {\n name: 'layers',\n handleItemDefaults: handleLayerDefaults\n });\n\n // copy ref to input container to update 'center' and 'zoom' on map move\n containerOut._input = containerIn;\n}\n\nfunction handleLayerDefaults(layerIn, layerOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(layerIn, layerOut, layoutAttributes.layers, attr, dflt);\n }\n\n var visible = coerce('visible');\n if(visible) {\n var sourceType = coerce('sourcetype');\n var mustBeRasterLayer = sourceType === 'raster' || sourceType === 'image';\n\n coerce('source');\n coerce('sourceattribution');\n\n if(sourceType === 'vector') {\n coerce('sourcelayer');\n }\n\n if(sourceType === 'image') {\n coerce('coordinates');\n }\n\n var typeDflt;\n if(mustBeRasterLayer) typeDflt = 'raster';\n\n var type = coerce('type', typeDflt);\n\n if(mustBeRasterLayer && type !== 'raster') {\n type = layerOut.type = 'raster';\n Lib.log('Source types *raster* and *image* must drawn *raster* layer type.');\n }\n\n coerce('below');\n coerce('color');\n coerce('opacity');\n coerce('minzoom');\n coerce('maxzoom');\n\n if(type === 'circle') {\n coerce('circle.radius');\n }\n\n if(type === 'line') {\n coerce('line.width');\n coerce('line.dash');\n }\n\n if(type === 'fill') {\n coerce('fill.outlinecolor');\n }\n\n if(type === 'symbol') {\n coerce('symbol.icon');\n coerce('symbol.iconsize');\n\n coerce('symbol.text');\n Lib.coerceFont(coerce, 'symbol.textfont');\n coerce('symbol.textposition');\n coerce('symbol.placement');\n }\n }\n}\n\n},{\"../../lib\":503,\"../array_container_defaults\":549,\"../subplot_defaults\":632,\"./layout_attributes\":615}],617:[function(_dereq_,module,exports){\n'use strict';\n\nvar mapboxgl = _dereq_('mapbox-gl/dist/mapbox-gl-unminified');\n\nvar Lib = _dereq_('../../lib');\nvar geoUtils = _dereq_('../../lib/geo_location_utils');\nvar Registry = _dereq_('../../registry');\nvar Axes = _dereq_('../cartesian/axes');\nvar dragElement = _dereq_('../../components/dragelement');\n\nvar Fx = _dereq_('../../components/fx');\nvar dragHelpers = _dereq_('../../components/dragelement/helpers');\nvar rectMode = dragHelpers.rectMode;\nvar drawMode = dragHelpers.drawMode;\nvar selectMode = dragHelpers.selectMode;\n\nvar prepSelect = _dereq_('../cartesian/select').prepSelect;\nvar clearSelect = _dereq_('../cartesian/select').clearSelect;\nvar clearSelectionsCache = _dereq_('../cartesian/select').clearSelectionsCache;\nvar selectOnClick = _dereq_('../cartesian/select').selectOnClick;\n\nvar constants = _dereq_('./constants');\nvar createMapboxLayer = _dereq_('./layers');\n\nfunction Mapbox(gd, id) {\n this.id = id;\n this.gd = gd;\n\n var fullLayout = gd._fullLayout;\n var context = gd._context;\n\n this.container = fullLayout._glcontainer.node();\n this.isStatic = context.staticPlot;\n\n // unique id for this Mapbox instance\n this.uid = fullLayout._uid + '-' + this.id;\n\n // create framework on instantiation for a smoother first plot call\n this.div = null;\n this.xaxis = null;\n this.yaxis = null;\n this.createFramework(fullLayout);\n\n // state variables used to infer how and what to update\n this.map = null;\n this.accessToken = null;\n this.styleObj = null;\n this.traceHash = {};\n this.layerList = [];\n this.belowLookup = {};\n this.dragging = false;\n this.wheeling = false;\n}\n\nvar proto = Mapbox.prototype;\n\nproto.plot = function(calcData, fullLayout, promises) {\n var self = this;\n var opts = fullLayout[self.id];\n\n // remove map and create a new map if access token has change\n if(self.map && (opts.accesstoken !== self.accessToken)) {\n self.map.remove();\n self.map = null;\n self.styleObj = null;\n self.traceHash = {};\n self.layerList = [];\n }\n\n var promise;\n\n if(!self.map) {\n promise = new Promise(function(resolve, reject) {\n self.createMap(calcData, fullLayout, resolve, reject);\n });\n } else {\n promise = new Promise(function(resolve, reject) {\n self.updateMap(calcData, fullLayout, resolve, reject);\n });\n }\n\n promises.push(promise);\n};\n\nproto.createMap = function(calcData, fullLayout, resolve, reject) {\n var self = this;\n var opts = fullLayout[self.id];\n\n // store style id and URL or object\n var styleObj = self.styleObj = getStyleObj(opts.style);\n\n // store access token associated with this map\n self.accessToken = opts.accesstoken;\n\n // create the map!\n var map = self.map = new mapboxgl.Map({\n container: self.div,\n\n style: styleObj.style,\n center: convertCenter(opts.center),\n zoom: opts.zoom,\n bearing: opts.bearing,\n pitch: opts.pitch,\n\n interactive: !self.isStatic,\n preserveDrawingBuffer: self.isStatic,\n\n doubleClickZoom: false,\n boxZoom: false,\n\n attributionControl: false\n })\n .addControl(new mapboxgl.AttributionControl({\n compact: true\n }));\n\n\n // make sure canvas does not inherit left and top css\n map._canvas.style.left = '0px';\n map._canvas.style.top = '0px';\n\n self.rejectOnError(reject);\n\n if(!self.isStatic) {\n self.initFx(calcData, fullLayout);\n }\n\n var promises = [];\n\n promises.push(new Promise(function(resolve) {\n map.once('load', resolve);\n }));\n\n promises = promises.concat(geoUtils.fetchTraceGeoData(calcData));\n\n Promise.all(promises).then(function() {\n self.fillBelowLookup(calcData, fullLayout);\n self.updateData(calcData);\n self.updateLayout(fullLayout);\n self.resolveOnRender(resolve);\n }).catch(reject);\n};\n\nproto.updateMap = function(calcData, fullLayout, resolve, reject) {\n var self = this;\n var map = self.map;\n var opts = fullLayout[this.id];\n\n self.rejectOnError(reject);\n\n var promises = [];\n var styleObj = getStyleObj(opts.style);\n\n if(JSON.stringify(self.styleObj) !== JSON.stringify(styleObj)) {\n self.styleObj = styleObj;\n map.setStyle(styleObj.style);\n\n // need to rebuild trace layers on reload\n // to avoid 'lost event' errors\n self.traceHash = {};\n\n promises.push(new Promise(function(resolve) {\n map.once('styledata', resolve);\n }));\n }\n\n promises = promises.concat(geoUtils.fetchTraceGeoData(calcData));\n\n Promise.all(promises).then(function() {\n self.fillBelowLookup(calcData, fullLayout);\n self.updateData(calcData);\n self.updateLayout(fullLayout);\n self.resolveOnRender(resolve);\n }).catch(reject);\n};\n\nproto.fillBelowLookup = function(calcData, fullLayout) {\n var opts = fullLayout[this.id];\n var layers = opts.layers;\n var i, val;\n\n var belowLookup = this.belowLookup = {};\n var hasTraceAtTop = false;\n\n for(i = 0; i < calcData.length; i++) {\n var trace = calcData[i][0].trace;\n var _module = trace._module;\n\n if(typeof trace.below === 'string') {\n val = trace.below;\n } else if(_module.getBelow) {\n // 'smart' default that depend the map's base layers\n val = _module.getBelow(trace, this);\n }\n\n if(val === '') {\n hasTraceAtTop = true;\n }\n\n belowLookup['trace-' + trace.uid] = val || '';\n }\n\n for(i = 0; i < layers.length; i++) {\n var item = layers[i];\n\n if(typeof item.below === 'string') {\n val = item.below;\n } else if(hasTraceAtTop) {\n // if one or more trace(s) set `below:''` and\n // layers[i].below is unset,\n // place layer below traces\n val = 'traces';\n } else {\n val = '';\n }\n\n belowLookup['layout-' + i] = val;\n }\n\n // N.B. If multiple layers have the 'below' value,\n // we must clear the stashed 'below' field in order\n // to make `traceHash[k].update()` and `layerList[i].update()`\n // remove/add the all those layers to have preserve\n // the correct layer ordering\n var val2list = {};\n var k, id;\n\n for(k in belowLookup) {\n val = belowLookup[k];\n if(val2list[val]) {\n val2list[val].push(k);\n } else {\n val2list[val] = [k];\n }\n }\n\n for(val in val2list) {\n var list = val2list[val];\n if(list.length > 1) {\n for(i = 0; i < list.length; i++) {\n k = list[i];\n if(k.indexOf('trace-') === 0) {\n id = k.split('trace-')[1];\n if(this.traceHash[id]) {\n this.traceHash[id].below = null;\n }\n } else if(k.indexOf('layout-') === 0) {\n id = k.split('layout-')[1];\n if(this.layerList[id]) {\n this.layerList[id].below = null;\n }\n }\n }\n }\n }\n};\n\nvar traceType2orderIndex = {\n choroplethmapbox: 0,\n densitymapbox: 1,\n scattermapbox: 2\n};\n\nproto.updateData = function(calcData) {\n var traceHash = this.traceHash;\n var traceObj, trace, i, j;\n\n // Need to sort here by trace type here,\n // in case traces with different `type` have the same\n // below value, but sorting we ensure that\n // e.g. choroplethmapbox traces will be below scattermapbox traces\n var calcDataSorted = calcData.slice().sort(function(a, b) {\n return (\n traceType2orderIndex[a[0].trace.type] -\n traceType2orderIndex[b[0].trace.type]\n );\n });\n\n // update or create trace objects\n for(i = 0; i < calcDataSorted.length; i++) {\n var calcTrace = calcDataSorted[i];\n\n trace = calcTrace[0].trace;\n traceObj = traceHash[trace.uid];\n\n var didUpdate = false;\n if(traceObj) {\n if(traceObj.type === trace.type) {\n traceObj.update(calcTrace);\n didUpdate = true;\n } else {\n traceObj.dispose();\n }\n }\n if(!didUpdate && trace._module) {\n traceHash[trace.uid] = trace._module.plot(this, calcTrace);\n }\n }\n\n // remove empty trace objects\n var ids = Object.keys(traceHash);\n idLoop:\n for(i = 0; i < ids.length; i++) {\n var id = ids[i];\n\n for(j = 0; j < calcData.length; j++) {\n trace = calcData[j][0].trace;\n if(id === trace.uid) continue idLoop;\n }\n\n traceObj = traceHash[id];\n traceObj.dispose();\n delete traceHash[id];\n }\n};\n\nproto.updateLayout = function(fullLayout) {\n var map = this.map;\n var opts = fullLayout[this.id];\n\n if(!this.dragging && !this.wheeling) {\n map.setCenter(convertCenter(opts.center));\n map.setZoom(opts.zoom);\n map.setBearing(opts.bearing);\n map.setPitch(opts.pitch);\n }\n\n this.updateLayers(fullLayout);\n this.updateFramework(fullLayout);\n this.updateFx(fullLayout);\n this.map.resize();\n\n if(this.gd._context._scrollZoom.mapbox) {\n map.scrollZoom.enable();\n } else {\n map.scrollZoom.disable();\n }\n};\n\nproto.resolveOnRender = function(resolve) {\n var map = this.map;\n\n map.on('render', function onRender() {\n if(map.loaded()) {\n map.off('render', onRender);\n // resolve at end of render loop\n //\n // Need a 10ms delay (0ms should suffice to skip a thread in the\n // render loop) to workaround mapbox-gl bug introduced in v1.3.0\n setTimeout(resolve, 10);\n }\n });\n};\n\nproto.rejectOnError = function(reject) {\n var map = this.map;\n\n function handler() {\n reject(new Error(constants.mapOnErrorMsg));\n }\n\n map.once('error', handler);\n map.once('style.error', handler);\n map.once('source.error', handler);\n map.once('tile.error', handler);\n map.once('layer.error', handler);\n};\n\nproto.createFramework = function(fullLayout) {\n var self = this;\n\n var div = self.div = document.createElement('div');\n div.id = self.uid;\n div.style.position = 'absolute';\n self.container.appendChild(div);\n\n // create mock x/y axes for hover routine\n self.xaxis = {\n _id: 'x',\n c2p: function(v) { return self.project(v).x; }\n };\n self.yaxis = {\n _id: 'y',\n c2p: function(v) { return self.project(v).y; }\n };\n\n self.updateFramework(fullLayout);\n\n // mock axis for hover formatting\n self.mockAxis = {\n type: 'linear',\n showexponent: 'all',\n exponentformat: 'B'\n };\n Axes.setConvert(self.mockAxis, fullLayout);\n};\n\nproto.initFx = function(calcData, fullLayout) {\n var self = this;\n var gd = self.gd;\n var map = self.map;\n\n // keep track of pan / zoom in user layout and emit relayout event\n map.on('moveend', function(evt) {\n if(!self.map) return;\n\n var fullLayoutNow = gd._fullLayout;\n\n // 'moveend' gets triggered by map.setCenter, map.setZoom,\n // map.setBearing and map.setPitch.\n //\n // Here, we make sure that state updates amd 'plotly_relayout'\n // are triggered only when the 'moveend' originates from a\n // mouse target (filtering out API calls) to not\n // duplicate 'plotly_relayout' events.\n\n if(evt.originalEvent || self.wheeling) {\n var optsNow = fullLayoutNow[self.id];\n Registry.call('_storeDirectGUIEdit', gd.layout, fullLayoutNow._preGUI, self.getViewEdits(optsNow));\n\n var viewNow = self.getView();\n optsNow._input.center = optsNow.center = viewNow.center;\n optsNow._input.zoom = optsNow.zoom = viewNow.zoom;\n optsNow._input.bearing = optsNow.bearing = viewNow.bearing;\n optsNow._input.pitch = optsNow.pitch = viewNow.pitch;\n gd.emit('plotly_relayout', self.getViewEditsWithDerived(viewNow));\n }\n if(evt.originalEvent && evt.originalEvent.type === 'mouseup') {\n self.dragging = false;\n } else if(self.wheeling) {\n self.wheeling = false;\n }\n\n if(fullLayoutNow._rehover) {\n fullLayoutNow._rehover();\n }\n });\n\n map.on('wheel', function() {\n self.wheeling = true;\n });\n\n map.on('mousemove', function(evt) {\n var bb = self.div.getBoundingClientRect();\n var xy = [\n evt.originalEvent.offsetX,\n evt.originalEvent.offsetY\n ];\n\n evt.target.getBoundingClientRect = function() { return bb; };\n\n self.xaxis.p2c = function() { return map.unproject(xy).lng; };\n self.yaxis.p2c = function() { return map.unproject(xy).lat; };\n\n gd._fullLayout._rehover = function() {\n if(gd._fullLayout._hoversubplot === self.id && gd._fullLayout[self.id]) {\n Fx.hover(gd, evt, self.id);\n }\n };\n\n Fx.hover(gd, evt, self.id);\n gd._fullLayout._hoversubplot = self.id;\n });\n\n function unhover() {\n Fx.loneUnhover(fullLayout._hoverlayer);\n }\n\n map.on('dragstart', function() {\n self.dragging = true;\n unhover();\n });\n map.on('zoomstart', unhover);\n\n map.on('mouseout', function() {\n gd._fullLayout._hoversubplot = null;\n });\n\n function emitUpdate() {\n var viewNow = self.getView();\n gd.emit('plotly_relayouting', self.getViewEditsWithDerived(viewNow));\n }\n\n map.on('drag', emitUpdate);\n map.on('zoom', emitUpdate);\n\n map.on('dblclick', function() {\n var optsNow = gd._fullLayout[self.id];\n Registry.call('_storeDirectGUIEdit', gd.layout, gd._fullLayout._preGUI, self.getViewEdits(optsNow));\n\n var viewInitial = self.viewInitial;\n map.setCenter(convertCenter(viewInitial.center));\n map.setZoom(viewInitial.zoom);\n map.setBearing(viewInitial.bearing);\n map.setPitch(viewInitial.pitch);\n\n var viewNow = self.getView();\n optsNow._input.center = optsNow.center = viewNow.center;\n optsNow._input.zoom = optsNow.zoom = viewNow.zoom;\n optsNow._input.bearing = optsNow.bearing = viewNow.bearing;\n optsNow._input.pitch = optsNow.pitch = viewNow.pitch;\n\n gd.emit('plotly_doubleclick', null);\n gd.emit('plotly_relayout', self.getViewEditsWithDerived(viewNow));\n });\n\n // define event handlers on map creation, to keep one ref per map,\n // so that map.on / map.off in updateFx works as expected\n self.clearSelect = function() {\n clearSelectionsCache(self.dragOptions);\n clearSelect(self.dragOptions.gd);\n };\n\n /**\n * Returns a click handler function that is supposed\n * to handle clicks in pan mode.\n */\n self.onClickInPanFn = function(dragOptions) {\n return function(evt) {\n var clickMode = gd._fullLayout.clickmode;\n\n if(clickMode.indexOf('select') > -1) {\n selectOnClick(evt.originalEvent, gd, [self.xaxis], [self.yaxis], self.id, dragOptions);\n }\n\n if(clickMode.indexOf('event') > -1) {\n // TODO: this does not support right-click. If we want to support it, we\n // would likely need to change mapbox to use dragElement instead of straight\n // mapbox event binding. Or perhaps better, make a simple wrapper with the\n // right mousedown, mousemove, and mouseup handlers just for a left/right click\n // pie would use this too.\n Fx.click(gd, evt.originalEvent);\n }\n };\n };\n};\n\nproto.updateFx = function(fullLayout) {\n var self = this;\n var map = self.map;\n var gd = self.gd;\n\n if(self.isStatic) return;\n\n function invert(pxpy) {\n var obj = self.map.unproject(pxpy);\n return [obj.lng, obj.lat];\n }\n\n var dragMode = fullLayout.dragmode;\n var fillRangeItems;\n\n if(rectMode(dragMode)) {\n fillRangeItems = function(eventData, poly) {\n var ranges = eventData.range = {};\n ranges[self.id] = [\n invert([poly.xmin, poly.ymin]),\n invert([poly.xmax, poly.ymax])\n ];\n };\n } else {\n fillRangeItems = function(eventData, poly, pts) {\n var dataPts = eventData.lassoPoints = {};\n dataPts[self.id] = pts.filtered.map(invert);\n };\n }\n\n // Note: dragOptions is needed to be declared for all dragmodes because\n // it's the object that holds persistent selection state.\n // Merge old dragOptions with new to keep possibly initialized\n // persistent selection state.\n var oldDragOptions = self.dragOptions;\n self.dragOptions = Lib.extendDeep(oldDragOptions || {}, {\n dragmode: fullLayout.dragmode,\n element: self.div,\n gd: gd,\n plotinfo: {\n id: self.id,\n domain: fullLayout[self.id].domain,\n xaxis: self.xaxis,\n yaxis: self.yaxis,\n fillRangeItems: fillRangeItems\n },\n xaxes: [self.xaxis],\n yaxes: [self.yaxis],\n subplot: self.id\n });\n\n // Unregister the old handler before potentially registering\n // a new one. Otherwise multiple click handlers might\n // be registered resulting in unwanted behavior.\n map.off('click', self.onClickInPanHandler);\n if(selectMode(dragMode) || drawMode(dragMode)) {\n map.dragPan.disable();\n map.on('zoomstart', self.clearSelect);\n\n self.dragOptions.prepFn = function(e, startX, startY) {\n prepSelect(e, startX, startY, self.dragOptions, dragMode);\n };\n\n dragElement.init(self.dragOptions);\n } else {\n map.dragPan.enable();\n map.off('zoomstart', self.clearSelect);\n self.div.onmousedown = null;\n\n // TODO: this does not support right-click. If we want to support it, we\n // would likely need to change mapbox to use dragElement instead of straight\n // mapbox event binding. Or perhaps better, make a simple wrapper with the\n // right mousedown, mousemove, and mouseup handlers just for a left/right click\n // pie would use this too.\n self.onClickInPanHandler = self.onClickInPanFn(self.dragOptions);\n map.on('click', self.onClickInPanHandler);\n }\n};\n\nproto.updateFramework = function(fullLayout) {\n var domain = fullLayout[this.id].domain;\n var size = fullLayout._size;\n\n var style = this.div.style;\n style.width = size.w * (domain.x[1] - domain.x[0]) + 'px';\n style.height = size.h * (domain.y[1] - domain.y[0]) + 'px';\n style.left = size.l + domain.x[0] * size.w + 'px';\n style.top = size.t + (1 - domain.y[1]) * size.h + 'px';\n\n this.xaxis._offset = size.l + domain.x[0] * size.w;\n this.xaxis._length = size.w * (domain.x[1] - domain.x[0]);\n\n this.yaxis._offset = size.t + (1 - domain.y[1]) * size.h;\n this.yaxis._length = size.h * (domain.y[1] - domain.y[0]);\n};\n\nproto.updateLayers = function(fullLayout) {\n var opts = fullLayout[this.id];\n var layers = opts.layers;\n var layerList = this.layerList;\n var i;\n\n // if the layer arrays don't match,\n // don't try to be smart,\n // delete them all, and start all over.\n\n if(layers.length !== layerList.length) {\n for(i = 0; i < layerList.length; i++) {\n layerList[i].dispose();\n }\n\n layerList = this.layerList = [];\n\n for(i = 0; i < layers.length; i++) {\n layerList.push(createMapboxLayer(this, i, layers[i]));\n }\n } else {\n for(i = 0; i < layers.length; i++) {\n layerList[i].update(layers[i]);\n }\n }\n};\n\nproto.destroy = function() {\n if(this.map) {\n this.map.remove();\n this.map = null;\n this.container.removeChild(this.div);\n }\n};\n\nproto.toImage = function() {\n this.map.stop();\n return this.map.getCanvas().toDataURL();\n};\n\n// convenience wrapper to create set multiple layer\n// 'layout' or 'paint options at once.\nproto.setOptions = function(id, methodName, opts) {\n for(var k in opts) {\n this.map[methodName](id, k, opts[k]);\n }\n};\n\nproto.getMapLayers = function() {\n return this.map.getStyle().layers;\n};\n\n// convenience wrapper that first check in 'below' references\n// a layer that exist and then add the layer to the map,\nproto.addLayer = function(opts, below) {\n var map = this.map;\n\n if(typeof below === 'string') {\n if(below === '') {\n map.addLayer(opts, below);\n return;\n }\n\n var mapLayers = this.getMapLayers();\n for(var i = 0; i < mapLayers.length; i++) {\n if(below === mapLayers[i].id) {\n map.addLayer(opts, below);\n return;\n }\n }\n\n Lib.warn([\n 'Trying to add layer with *below* value',\n below,\n 'referencing a layer that does not exist',\n 'or that does not yet exist.'\n ].join(' '));\n }\n\n map.addLayer(opts);\n};\n\n// convenience method to project a [lon, lat] array to pixel coords\nproto.project = function(v) {\n return this.map.project(new mapboxgl.LngLat(v[0], v[1]));\n};\n\n// get map's current view values in plotly.js notation\nproto.getView = function() {\n var map = this.map;\n var mapCenter = map.getCenter();\n var center = { lon: mapCenter.lng, lat: mapCenter.lat };\n\n var canvas = map.getCanvas();\n var w = canvas.width;\n var h = canvas.height;\n return {\n center: center,\n zoom: map.getZoom(),\n bearing: map.getBearing(),\n pitch: map.getPitch(),\n _derived: {\n coordinates: [\n map.unproject([0, 0]).toArray(),\n map.unproject([w, 0]).toArray(),\n map.unproject([w, h]).toArray(),\n map.unproject([0, h]).toArray()\n ]\n }\n };\n};\n\nproto.getViewEdits = function(cont) {\n var id = this.id;\n var keys = ['center', 'zoom', 'bearing', 'pitch'];\n var obj = {};\n\n for(var i = 0; i < keys.length; i++) {\n var k = keys[i];\n obj[id + '.' + k] = cont[k];\n }\n\n return obj;\n};\n\nproto.getViewEditsWithDerived = function(cont) {\n var id = this.id;\n var obj = this.getViewEdits(cont);\n obj[id + '._derived'] = cont._derived;\n return obj;\n};\n\nfunction getStyleObj(val) {\n var styleObj = {};\n\n if(Lib.isPlainObject(val)) {\n styleObj.id = val.id;\n styleObj.style = val;\n } else if(typeof val === 'string') {\n styleObj.id = val;\n\n if(constants.styleValuesMapbox.indexOf(val) !== -1) {\n styleObj.style = convertStyleVal(val);\n } else if(constants.stylesNonMapbox[val]) {\n styleObj.style = constants.stylesNonMapbox[val];\n } else {\n styleObj.style = val;\n }\n } else {\n styleObj.id = constants.styleValueDflt;\n styleObj.style = convertStyleVal(constants.styleValueDflt);\n }\n\n styleObj.transition = {duration: 0, delay: 0};\n\n return styleObj;\n}\n\n// if style is part of the 'official' mapbox values, add URL prefix and suffix\nfunction convertStyleVal(val) {\n return constants.styleUrlPrefix + val + '-' + constants.styleUrlSuffix;\n}\n\nfunction convertCenter(center) {\n return [center.lon, center.lat];\n}\n\nmodule.exports = Mapbox;\n\n},{\"../../components/dragelement\":385,\"../../components/dragelement/helpers\":384,\"../../components/fx\":406,\"../../lib\":503,\"../../lib/geo_location_utils\":496,\"../../registry\":638,\"../cartesian/axes\":554,\"../cartesian/select\":575,\"./constants\":611,\"./layers\":614,\"mapbox-gl/dist/mapbox-gl-unminified\":239}],618:[function(_dereq_,module,exports){\n'use strict';\n\n/**\n * Creates a set of padding attributes.\n *\n * @param {object} opts\n * @param {string} editType:\n * the editType for all pieces of this padding definition\n *\n * @return {object} attributes object containing {t, r, b, l} as specified\n */\nmodule.exports = function(opts) {\n var editType = opts.editType;\n return {\n t: {\n valType: 'number',\n dflt: 0,\n editType: editType,\n },\n r: {\n valType: 'number',\n dflt: 0,\n editType: editType,\n },\n b: {\n valType: 'number',\n dflt: 0,\n editType: editType,\n },\n l: {\n valType: 'number',\n dflt: 0,\n editType: editType,\n },\n editType: editType\n };\n};\n\n},{}],619:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar timeFormatLocale = _dereq_('d3-time-format').timeFormatLocale;\nvar formatLocale = _dereq_('d3-format').formatLocale;\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Registry = _dereq_('../registry');\nvar PlotSchema = _dereq_('../plot_api/plot_schema');\nvar Template = _dereq_('../plot_api/plot_template');\nvar Lib = _dereq_('../lib');\nvar Color = _dereq_('../components/color');\nvar BADNUM = _dereq_('../constants/numerical').BADNUM;\n\nvar axisIDs = _dereq_('./cartesian/axis_ids');\nvar clearSelect = _dereq_('./cartesian/handle_outline').clearSelect;\n\nvar animationAttrs = _dereq_('./animation_attributes');\nvar frameAttrs = _dereq_('./frame_attributes');\n\nvar getModuleCalcData = _dereq_('../plots/get_data').getModuleCalcData;\n\nvar relinkPrivateKeys = Lib.relinkPrivateKeys;\nvar _ = Lib._;\n\nvar plots = module.exports = {};\n\n// Expose registry methods on Plots for backward-compatibility\nLib.extendFlat(plots, Registry);\n\nplots.attributes = _dereq_('./attributes');\nplots.attributes.type.values = plots.allTypes;\nplots.fontAttrs = _dereq_('./font_attributes');\nplots.layoutAttributes = _dereq_('./layout_attributes');\n\n// TODO make this a plot attribute?\nplots.fontWeight = 'normal';\n\nvar transformsRegistry = plots.transformsRegistry;\n\nvar commandModule = _dereq_('./command');\nplots.executeAPICommand = commandModule.executeAPICommand;\nplots.computeAPICommandBindings = commandModule.computeAPICommandBindings;\nplots.manageCommandObserver = commandModule.manageCommandObserver;\nplots.hasSimpleAPICommandBindings = commandModule.hasSimpleAPICommandBindings;\n\n// in some cases the browser doesn't seem to know how big\n// the text is at first, so it needs to draw it,\n// then wait a little, then draw it again\nplots.redrawText = function(gd) {\n gd = Lib.getGraphDiv(gd);\n\n return new Promise(function(resolve) {\n setTimeout(function() {\n if(!gd._fullLayout) return;\n Registry.getComponentMethod('annotations', 'draw')(gd);\n Registry.getComponentMethod('legend', 'draw')(gd);\n Registry.getComponentMethod('colorbar', 'draw')(gd);\n resolve(plots.previousPromises(gd));\n }, 300);\n });\n};\n\n// resize plot about the container size\nplots.resize = function(gd) {\n gd = Lib.getGraphDiv(gd);\n\n var resolveLastResize;\n var p = new Promise(function(resolve, reject) {\n if(!gd || Lib.isHidden(gd)) {\n reject(new Error('Resize must be passed a displayed plot div element.'));\n }\n\n if(gd._redrawTimer) clearTimeout(gd._redrawTimer);\n if(gd._resolveResize) resolveLastResize = gd._resolveResize;\n gd._resolveResize = resolve;\n\n gd._redrawTimer = setTimeout(function() {\n // return if there is nothing to resize or is hidden\n if(!gd.layout || (gd.layout.width && gd.layout.height) || Lib.isHidden(gd)) {\n resolve(gd);\n return;\n }\n\n delete gd.layout.width;\n delete gd.layout.height;\n\n // autosizing doesn't count as a change that needs saving\n var oldchanged = gd.changed;\n\n // nor should it be included in the undo queue\n gd.autoplay = true;\n\n Registry.call('relayout', gd, {autosize: true}).then(function() {\n gd.changed = oldchanged;\n // Only resolve if a new call hasn't been made!\n if(gd._resolveResize === resolve) {\n delete gd._resolveResize;\n resolve(gd);\n }\n });\n }, 100);\n });\n\n if(resolveLastResize) resolveLastResize(p);\n return p;\n};\n\n\n// for use in Lib.syncOrAsync, check if there are any\n// pending promises in this plot and wait for them\nplots.previousPromises = function(gd) {\n if((gd._promises || []).length) {\n return Promise.all(gd._promises)\n .then(function() { gd._promises = []; });\n }\n};\n\n/**\n * Adds the 'Edit chart' link.\n * Note that now _doPlot calls this so it can regenerate whenever it replots\n *\n * Add source links to your graph inside the 'showSources' config argument.\n */\nplots.addLinks = function(gd) {\n // Do not do anything if showLink and showSources are not set to true in config\n if(!gd._context.showLink && !gd._context.showSources) return;\n\n var fullLayout = gd._fullLayout;\n\n var linkContainer = Lib.ensureSingle(fullLayout._paper, 'text', 'js-plot-link-container', function(s) {\n s.style({\n 'font-family': '\"Open Sans\", Arial, sans-serif',\n 'font-size': '12px',\n 'fill': Color.defaultLine,\n 'pointer-events': 'all'\n })\n .each(function() {\n var links = d3.select(this);\n links.append('tspan').classed('js-link-to-tool', true);\n links.append('tspan').classed('js-link-spacer', true);\n links.append('tspan').classed('js-sourcelinks', true);\n });\n });\n\n // The text node inside svg\n var text = linkContainer.node();\n var attrs = {y: fullLayout._paper.attr('height') - 9};\n\n // If text's width is bigger than the layout\n // Check that text is a child node or document.body\n // because otherwise IE/Edge might throw an exception\n // when calling getComputedTextLength().\n // Apparently offsetParent is null for invisibles.\n if(document.body.contains(text) && text.getComputedTextLength() >= (fullLayout.width - 20)) {\n // Align the text at the left\n attrs['text-anchor'] = 'start';\n attrs.x = 5;\n } else {\n // Align the text at the right\n attrs['text-anchor'] = 'end';\n attrs.x = fullLayout._paper.attr('width') - 7;\n }\n\n linkContainer.attr(attrs);\n\n var toolspan = linkContainer.select('.js-link-to-tool');\n var spacespan = linkContainer.select('.js-link-spacer');\n var sourcespan = linkContainer.select('.js-sourcelinks');\n\n if(gd._context.showSources) gd._context.showSources(gd);\n\n // 'view in plotly' link for embedded plots\n if(gd._context.showLink) positionPlayWithData(gd, toolspan);\n\n // separator if we have both sources and tool link\n spacespan.text((toolspan.text() && sourcespan.text()) ? ' - ' : '');\n};\n\n// note that now this function is only adding the brand in\n// iframes and 3rd-party apps\nfunction positionPlayWithData(gd, container) {\n container.text('');\n var link = container.append('a')\n .attr({\n 'xlink:xlink:href': '#',\n 'class': 'link--impt link--embedview',\n 'font-weight': 'bold'\n })\n .text(gd._context.linkText + ' ' + String.fromCharCode(187));\n\n if(gd._context.sendData) {\n link.on('click', function() {\n plots.sendDataToCloud(gd);\n });\n } else {\n var path = window.location.pathname.split('/');\n var query = window.location.search;\n link.attr({\n 'xlink:xlink:show': 'new',\n 'xlink:xlink:href': '/' + path[2].split('.')[0] + '/' + path[1] + query\n });\n }\n}\n\nplots.sendDataToCloud = function(gd) {\n var baseUrl = (window.PLOTLYENV || {}).BASE_URL || gd._context.plotlyServerURL;\n if(!baseUrl) return;\n\n gd.emit('plotly_beforeexport');\n\n var hiddenformDiv = d3.select(gd)\n .append('div')\n .attr('id', 'hiddenform')\n .style('display', 'none');\n\n var hiddenform = hiddenformDiv\n .append('form')\n .attr({\n action: baseUrl + '/external',\n method: 'post',\n target: '_blank'\n });\n\n var hiddenformInput = hiddenform\n .append('input')\n .attr({\n type: 'text',\n name: 'data'\n });\n\n hiddenformInput.node().value = plots.graphJson(gd, false, 'keepdata');\n hiddenform.node().submit();\n hiddenformDiv.remove();\n\n gd.emit('plotly_afterexport');\n return false;\n};\n\nvar d3FormatKeys = [\n 'days', 'shortDays', 'months', 'shortMonths', 'periods',\n 'dateTime', 'date', 'time',\n 'decimal', 'thousands', 'grouping', 'currency'\n];\n\nvar extraFormatKeys = [\n 'year', 'month', 'dayMonth', 'dayMonthYear'\n];\n\n/*\n * Fill in default values\n * @param {DOM element} gd\n * @param {object} opts\n * @param {boolean} opts.skipUpdateCalc: normally if the existing gd.calcdata looks\n * compatible with the new gd._fullData we finish by linking the new _fullData traces\n * to the old gd.calcdata, so it's correctly set if we're not going to recalc. But also,\n * if there are calcTransforms on the trace, we first remap data arrays from the old full\n * trace into the new one. Use skipUpdateCalc to defer this (needed by Plotly.react)\n *\n * gd.data, gd.layout:\n * are precisely what the user specified (except as modified by cleanData/cleanLayout),\n * these fields shouldn't be modified (except for filling in some auto values)\n * nor used directly after the supply defaults step.\n *\n * gd._fullData, gd._fullLayout:\n * are complete descriptions of how to draw the plot,\n * use these fields in all required computations.\n *\n * gd._fullLayout._modules\n * is a list of all the trace modules required to draw the plot.\n *\n * gd._fullLayout._visibleModules\n * subset of _modules, a list of modules corresponding to visible:true traces.\n *\n * gd._fullLayout._basePlotModules\n * is a list of all the plot modules required to draw the plot.\n *\n * gd._fullLayout._transformModules\n * is a list of all the transform modules invoked.\n *\n */\nplots.supplyDefaults = function(gd, opts) {\n var skipUpdateCalc = opts && opts.skipUpdateCalc;\n var oldFullLayout = gd._fullLayout || {};\n\n if(oldFullLayout._skipDefaults) {\n delete oldFullLayout._skipDefaults;\n return;\n }\n\n var newFullLayout = gd._fullLayout = {};\n var newLayout = gd.layout || {};\n\n var oldFullData = gd._fullData || [];\n var newFullData = gd._fullData = [];\n var newData = gd.data || [];\n\n var oldCalcdata = gd.calcdata || [];\n\n var context = gd._context || {};\n\n var i;\n\n // Create all the storage space for frames, but only if doesn't already exist\n if(!gd._transitionData) plots.createTransitionData(gd);\n\n // So we only need to do this once (and since we have gd here)\n // get the translated placeholder titles.\n // These ones get used as default values so need to be known at supplyDefaults\n // others keep their blank defaults but render the placeholder as desired later\n // TODO: make these work the same way, only inserting the placeholder text at draw time?\n // The challenge is that this has slightly different behavior right now in editable mode:\n // using the placeholder as default makes this text permanently (but lightly) visible,\n // but explicit '' for these titles gives you a placeholder that's hidden until you mouse\n // over it - so you're not distracted by it if you really don't want a title, but if you do\n // and you're new to plotly you may not be able to find it.\n // When editable=false the two behave the same, no title is drawn.\n newFullLayout._dfltTitle = {\n plot: _(gd, 'Click to enter Plot title'),\n x: _(gd, 'Click to enter X axis title'),\n y: _(gd, 'Click to enter Y axis title'),\n colorbar: _(gd, 'Click to enter Colorscale title'),\n annotation: _(gd, 'new text')\n };\n newFullLayout._traceWord = _(gd, 'trace');\n\n var formatObj = getFormatObj(gd, d3FormatKeys);\n\n // stash the token from context so mapbox subplots can use it as default\n newFullLayout._mapboxAccessToken = context.mapboxAccessToken;\n\n // first fill in what we can of layout without looking at data\n // because fullData needs a few things from layout\n if(oldFullLayout._initialAutoSizeIsDone) {\n // coerce the updated layout while preserving width and height\n var oldWidth = oldFullLayout.width;\n var oldHeight = oldFullLayout.height;\n\n plots.supplyLayoutGlobalDefaults(newLayout, newFullLayout, formatObj);\n\n if(!newLayout.width) newFullLayout.width = oldWidth;\n if(!newLayout.height) newFullLayout.height = oldHeight;\n plots.sanitizeMargins(newFullLayout);\n } else {\n // coerce the updated layout and autosize if needed\n plots.supplyLayoutGlobalDefaults(newLayout, newFullLayout, formatObj);\n\n var missingWidthOrHeight = (!newLayout.width || !newLayout.height);\n var autosize = newFullLayout.autosize;\n var autosizable = context.autosizable;\n var initialAutoSize = missingWidthOrHeight && (autosize || autosizable);\n\n if(initialAutoSize) plots.plotAutoSize(gd, newLayout, newFullLayout);\n else if(missingWidthOrHeight) plots.sanitizeMargins(newFullLayout);\n\n // for backwards-compatibility with Plotly v1.x.x\n if(!autosize && missingWidthOrHeight) {\n newLayout.width = newFullLayout.width;\n newLayout.height = newFullLayout.height;\n }\n }\n\n newFullLayout._d3locale = getFormatter(formatObj, newFullLayout.separators);\n newFullLayout._extraFormat = getFormatObj(gd, extraFormatKeys);\n\n newFullLayout._initialAutoSizeIsDone = true;\n\n // keep track of how many traces are inputted\n newFullLayout._dataLength = newData.length;\n\n // clear the lists of trace and baseplot modules, and subplots\n newFullLayout._modules = [];\n newFullLayout._visibleModules = [];\n newFullLayout._basePlotModules = [];\n var subplots = newFullLayout._subplots = emptySubplotLists();\n\n // initialize axis and subplot hash objects for splom-generated grids\n var splomAxes = newFullLayout._splomAxes = {x: {}, y: {}};\n var splomSubplots = newFullLayout._splomSubplots = {};\n // initialize splom grid defaults\n newFullLayout._splomGridDflt = {};\n\n // for stacked area traces to share config across traces\n newFullLayout._scatterStackOpts = {};\n // for the first scatter trace on each subplot (so it knows tonext->tozero)\n newFullLayout._firstScatter = {};\n // for grouped bar/box/violin trace to share config across traces\n newFullLayout._alignmentOpts = {};\n // track color axes referenced in the data\n newFullLayout._colorAxes = {};\n\n // for traces to request a default rangeslider on their x axes\n // eg set `_requestRangeslider.x2 = true` for xaxis2\n newFullLayout._requestRangeslider = {};\n\n // pull uids from old data to use as new defaults\n newFullLayout._traceUids = getTraceUids(oldFullData, newData);\n\n // then do the data\n newFullLayout._globalTransforms = (gd._context || {}).globalTransforms;\n plots.supplyDataDefaults(newData, newFullData, newLayout, newFullLayout);\n\n // redo grid size defaults with info about splom x/y axes,\n // and fill in generated cartesian axes and subplots\n var splomXa = Object.keys(splomAxes.x);\n var splomYa = Object.keys(splomAxes.y);\n if(splomXa.length > 1 && splomYa.length > 1) {\n Registry.getComponentMethod('grid', 'sizeDefaults')(newLayout, newFullLayout);\n\n for(i = 0; i < splomXa.length; i++) {\n Lib.pushUnique(subplots.xaxis, splomXa[i]);\n }\n for(i = 0; i < splomYa.length; i++) {\n Lib.pushUnique(subplots.yaxis, splomYa[i]);\n }\n for(var k in splomSubplots) {\n Lib.pushUnique(subplots.cartesian, k);\n }\n }\n\n // attach helper method to check whether a plot type is present on graph\n newFullLayout._has = plots._hasPlotType.bind(newFullLayout);\n\n if(oldFullData.length === newFullData.length) {\n for(i = 0; i < newFullData.length; i++) {\n relinkPrivateKeys(newFullData[i], oldFullData[i]);\n }\n }\n\n // finally, fill in the pieces of layout that may need to look at data\n plots.supplyLayoutModuleDefaults(newLayout, newFullLayout, newFullData, gd._transitionData);\n\n // Special cases that introduce interactions between traces.\n // This is after relinkPrivateKeys so we can use those in crossTraceDefaults\n // and after layout module defaults, so we can use eg barmode\n var _modules = newFullLayout._visibleModules;\n var crossTraceDefaultsFuncs = [];\n for(i = 0; i < _modules.length; i++) {\n var funci = _modules[i].crossTraceDefaults;\n // some trace types share crossTraceDefaults (ie histogram2d, histogram2dcontour)\n if(funci) Lib.pushUnique(crossTraceDefaultsFuncs, funci);\n }\n for(i = 0; i < crossTraceDefaultsFuncs.length; i++) {\n crossTraceDefaultsFuncs[i](newFullData, newFullLayout);\n }\n\n // turn on flag to optimize large splom-only graphs\n // mostly by omitting SVG layers during Cartesian.drawFramework\n newFullLayout._hasOnlyLargeSploms = (\n newFullLayout._basePlotModules.length === 1 &&\n newFullLayout._basePlotModules[0].name === 'splom' &&\n splomXa.length > 15 &&\n splomYa.length > 15 &&\n newFullLayout.shapes.length === 0 &&\n newFullLayout.images.length === 0\n );\n\n // relink / initialize subplot axis objects\n plots.linkSubplots(newFullData, newFullLayout, oldFullData, oldFullLayout);\n\n // clean subplots and other artifacts from previous plot calls\n plots.cleanPlot(newFullData, newFullLayout, oldFullData, oldFullLayout);\n\n var hadGL2D = !!(oldFullLayout._has && oldFullLayout._has('gl2d'));\n var hasGL2D = !!(newFullLayout._has && newFullLayout._has('gl2d'));\n var hadCartesian = !!(oldFullLayout._has && oldFullLayout._has('cartesian'));\n var hasCartesian = !!(newFullLayout._has && newFullLayout._has('cartesian'));\n var hadBgLayer = hadCartesian || hadGL2D;\n var hasBgLayer = hasCartesian || hasGL2D;\n if(hadBgLayer && !hasBgLayer) {\n // remove bgLayer\n oldFullLayout._bgLayer.remove();\n } else if(hasBgLayer && !hadBgLayer) {\n // create bgLayer\n newFullLayout._shouldCreateBgLayer = true;\n }\n\n // clear selection outline until we implement persistent selection,\n // don't clear them though when drag handlers (e.g. listening to\n // `plotly_selecting`) update the graph.\n // we should try to come up with a better solution when implementing\n // https://github.com/plotly/plotly.js/issues/1851\n if(oldFullLayout._zoomlayer && !gd._dragging) {\n clearSelect({ // mock old gd\n _fullLayout: oldFullLayout\n });\n }\n\n\n // fill in meta helpers\n fillMetaTextHelpers(newFullData, newFullLayout);\n\n // relink functions and _ attributes to promote consistency between plots\n relinkPrivateKeys(newFullLayout, oldFullLayout);\n\n // colorscale crossTraceDefaults needs newFullLayout with relinked keys\n Registry.getComponentMethod('colorscale', 'crossTraceDefaults')(newFullData, newFullLayout);\n\n // For persisting GUI-driven changes in layout\n // _preGUI and _tracePreGUI were already copied over in relinkPrivateKeys\n if(!newFullLayout._preGUI) newFullLayout._preGUI = {};\n // track trace GUI changes by uid rather than by trace index\n if(!newFullLayout._tracePreGUI) newFullLayout._tracePreGUI = {};\n var tracePreGUI = newFullLayout._tracePreGUI;\n var uids = {};\n var uid;\n for(uid in tracePreGUI) uids[uid] = 'old';\n for(i = 0; i < newFullData.length; i++) {\n uid = newFullData[i]._fullInput.uid;\n if(!uids[uid]) tracePreGUI[uid] = {};\n uids[uid] = 'new';\n }\n for(uid in uids) {\n if(uids[uid] === 'old') delete tracePreGUI[uid];\n }\n\n // set up containers for margin calculations\n initMargins(newFullLayout);\n\n // collect and do some initial calculations for rangesliders\n Registry.getComponentMethod('rangeslider', 'makeData')(newFullLayout);\n\n // update object references in calcdata\n if(!skipUpdateCalc && oldCalcdata.length === newFullData.length) {\n plots.supplyDefaultsUpdateCalc(oldCalcdata, newFullData);\n }\n};\n\nplots.supplyDefaultsUpdateCalc = function(oldCalcdata, newFullData) {\n for(var i = 0; i < newFullData.length; i++) {\n var newTrace = newFullData[i];\n var cd0 = (oldCalcdata[i] || [])[0];\n if(cd0 && cd0.trace) {\n var oldTrace = cd0.trace;\n if(oldTrace._hasCalcTransform) {\n var arrayAttrs = oldTrace._arrayAttrs;\n var j, astr, oldArrayVal;\n\n for(j = 0; j < arrayAttrs.length; j++) {\n astr = arrayAttrs[j];\n oldArrayVal = Lib.nestedProperty(oldTrace, astr).get().slice();\n Lib.nestedProperty(newTrace, astr).set(oldArrayVal);\n }\n }\n cd0.trace = newTrace;\n }\n }\n};\n\n/**\n * Create a list of uid strings satisfying (in this order of importance):\n * 1. all unique, all strings\n * 2. matches input uids if provided\n * 3. matches previous data uids\n */\nfunction getTraceUids(oldFullData, newData) {\n var len = newData.length;\n var oldFullInput = [];\n var i, prevFullInput;\n for(i = 0; i < oldFullData.length; i++) {\n var thisFullInput = oldFullData[i]._fullInput;\n if(thisFullInput !== prevFullInput) oldFullInput.push(thisFullInput);\n prevFullInput = thisFullInput;\n }\n var oldLen = oldFullInput.length;\n var out = new Array(len);\n var seenUids = {};\n\n function setUid(uid, i) {\n out[i] = uid;\n seenUids[uid] = 1;\n }\n\n function tryUid(uid, i) {\n if(uid && typeof uid === 'string' && !seenUids[uid]) {\n setUid(uid, i);\n return true;\n }\n }\n\n for(i = 0; i < len; i++) {\n var newUid = newData[i].uid;\n if(typeof newUid === 'number') newUid = String(newUid);\n\n if(tryUid(newUid, i)) continue;\n if(i < oldLen && tryUid(oldFullInput[i].uid, i)) continue;\n setUid(Lib.randstr(seenUids), i);\n }\n\n return out;\n}\n\n/**\n * Make a container for collecting subplots we need to display.\n *\n * Finds all subplot types we need to enumerate once and caches it,\n * but makes a new output object each time.\n * Single-trace subplots (which have no `id`) such as pie, table, etc\n * do not need to be collected because we just draw all visible traces.\n */\nfunction emptySubplotLists() {\n var collectableSubplotTypes = Registry.collectableSubplotTypes;\n var out = {};\n var i, j;\n\n if(!collectableSubplotTypes) {\n collectableSubplotTypes = [];\n\n var subplotsRegistry = Registry.subplotsRegistry;\n\n for(var subplotType in subplotsRegistry) {\n var subplotModule = subplotsRegistry[subplotType];\n var subplotAttr = subplotModule.attr;\n\n if(subplotAttr) {\n collectableSubplotTypes.push(subplotType);\n\n // special case, currently just for cartesian:\n // we need to enumerate axes, not just subplots\n if(Array.isArray(subplotAttr)) {\n for(j = 0; j < subplotAttr.length; j++) {\n Lib.pushUnique(collectableSubplotTypes, subplotAttr[j]);\n }\n }\n }\n }\n }\n\n for(i = 0; i < collectableSubplotTypes.length; i++) {\n out[collectableSubplotTypes[i]] = [];\n }\n return out;\n}\n\n/**\n * getFormatObj: use _context to get the format object from locale.\n * Used to get d3.locale argument object and extraFormat argument object\n *\n * Regarding d3.locale argument :\n * decimal and thousands can be overridden later by layout.separators\n * grouping and currency are not presently used by our automatic number\n * formatting system but can be used by custom formats.\n *\n * @returns {object} d3.locale format object\n */\nfunction getFormatObj(gd, formatKeys) {\n var locale = gd._context.locale;\n if(!locale) locale = 'en-US';\n\n var formatDone = false;\n var formatObj = {};\n\n function includeFormat(newFormat) {\n var formatFinished = true;\n for(var i = 0; i < formatKeys.length; i++) {\n var formatKey = formatKeys[i];\n if(!formatObj[formatKey]) {\n if(newFormat[formatKey]) {\n formatObj[formatKey] = newFormat[formatKey];\n } else formatFinished = false;\n }\n }\n if(formatFinished) formatDone = true;\n }\n\n // same as localize, look for format parts in each format spec in the chain\n for(var i = 0; i < 2; i++) {\n var locales = gd._context.locales;\n for(var j = 0; j < 2; j++) {\n var formatj = (locales[locale] || {}).format;\n if(formatj) {\n includeFormat(formatj);\n if(formatDone) break;\n }\n locales = Registry.localeRegistry;\n }\n\n var baseLocale = locale.split('-')[0];\n if(formatDone || baseLocale === locale) break;\n locale = baseLocale;\n }\n\n // lastly pick out defaults from english (non-US, as DMY is so much more common)\n if(!formatDone) includeFormat(Registry.localeRegistry.en.format);\n\n return formatObj;\n}\n\n/**\n * getFormatter: combine the final separators with the locale formatting object\n * we pulled earlier to generate number and time formatters\n * TODO: remove separators in v3, only use locale, so we don't need this step?\n *\n * @param {object} formatObj: d3.locale format object\n * @param {string} separators: length-2 string to override decimal and thousands\n * separators in number formatting\n *\n * @returns {object} {numberFormat, timeFormat} d3 formatter factory functions\n * for numbers and time\n */\nfunction getFormatter(formatObj, separators) {\n formatObj.decimal = separators.charAt(0);\n formatObj.thousands = separators.charAt(1);\n\n return {\n numberFormat: function(formatStr) {\n try {\n formatStr = formatLocale(formatObj).format(\n Lib.adjustFormat(formatStr)\n );\n } catch(e) {\n Lib.warnBadFormat(formatStr);\n return Lib.noFormat;\n }\n\n return formatStr;\n },\n timeFormat: timeFormatLocale(formatObj).utcFormat\n };\n}\n\nfunction fillMetaTextHelpers(newFullData, newFullLayout) {\n var _meta;\n var meta4data = [];\n\n if(newFullLayout.meta) {\n _meta = newFullLayout._meta = {\n meta: newFullLayout.meta,\n layout: {meta: newFullLayout.meta}\n };\n }\n\n for(var i = 0; i < newFullData.length; i++) {\n var trace = newFullData[i];\n\n if(trace.meta) {\n meta4data[trace.index] = trace._meta = {meta: trace.meta};\n } else if(newFullLayout.meta) {\n trace._meta = {meta: newFullLayout.meta};\n }\n if(newFullLayout.meta) {\n trace._meta.layout = {meta: newFullLayout.meta};\n }\n }\n\n if(meta4data.length) {\n if(!_meta) {\n _meta = newFullLayout._meta = {};\n }\n _meta.data = meta4data;\n }\n}\n\n// Create storage for all of the data related to frames and transitions:\nplots.createTransitionData = function(gd) {\n // Set up the default keyframe if it doesn't exist:\n if(!gd._transitionData) {\n gd._transitionData = {};\n }\n\n if(!gd._transitionData._frames) {\n gd._transitionData._frames = [];\n }\n\n if(!gd._transitionData._frameHash) {\n gd._transitionData._frameHash = {};\n }\n\n if(!gd._transitionData._counter) {\n gd._transitionData._counter = 0;\n }\n\n if(!gd._transitionData._interruptCallbacks) {\n gd._transitionData._interruptCallbacks = [];\n }\n};\n\n// helper function to be bound to fullLayout to check\n// whether a certain plot type is present on plot\n// or trace has a category\nplots._hasPlotType = function(category) {\n var i;\n\n // check base plot modules\n var basePlotModules = this._basePlotModules || [];\n for(i = 0; i < basePlotModules.length; i++) {\n if(basePlotModules[i].name === category) return true;\n }\n\n // check trace modules (including non-visible:true)\n var modules = this._modules || [];\n for(i = 0; i < modules.length; i++) {\n var name = modules[i].name;\n if(name === category) return true;\n // N.B. this is modules[i] along with 'categories' as a hash object\n var _module = Registry.modules[name];\n if(_module && _module.categories[category]) return true;\n }\n\n return false;\n};\n\nplots.cleanPlot = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n var i, j;\n\n var basePlotModules = oldFullLayout._basePlotModules || [];\n for(i = 0; i < basePlotModules.length; i++) {\n var _module = basePlotModules[i];\n\n if(_module.clean) {\n _module.clean(newFullData, newFullLayout, oldFullData, oldFullLayout);\n }\n }\n\n var hadGl = oldFullLayout._has && oldFullLayout._has('gl');\n var hasGl = newFullLayout._has && newFullLayout._has('gl');\n\n if(hadGl && !hasGl) {\n if(oldFullLayout._glcontainer !== undefined) {\n oldFullLayout._glcontainer.selectAll('.gl-canvas').remove();\n oldFullLayout._glcontainer.selectAll('.no-webgl').remove();\n oldFullLayout._glcanvas = null;\n }\n }\n\n var hasInfoLayer = !!oldFullLayout._infolayer;\n\n oldLoop:\n for(i = 0; i < oldFullData.length; i++) {\n var oldTrace = oldFullData[i];\n var oldUid = oldTrace.uid;\n\n for(j = 0; j < newFullData.length; j++) {\n var newTrace = newFullData[j];\n\n if(oldUid === newTrace.uid) continue oldLoop;\n }\n\n // clean old colorbars\n if(hasInfoLayer) {\n oldFullLayout._infolayer.select('.cb' + oldUid).remove();\n }\n }\n};\n\nplots.linkSubplots = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n var i, j;\n\n var oldSubplots = oldFullLayout._plots || {};\n var newSubplots = newFullLayout._plots = {};\n var newSubplotList = newFullLayout._subplots;\n\n var mockGd = {\n _fullData: newFullData,\n _fullLayout: newFullLayout\n };\n\n var ids = newSubplotList.cartesian.concat(newSubplotList.gl2d || []);\n\n for(i = 0; i < ids.length; i++) {\n var id = ids[i];\n var oldSubplot = oldSubplots[id];\n var xaxis = axisIDs.getFromId(mockGd, id, 'x');\n var yaxis = axisIDs.getFromId(mockGd, id, 'y');\n var plotinfo;\n\n // link or create subplot object\n if(oldSubplot) {\n plotinfo = newSubplots[id] = oldSubplot;\n } else {\n plotinfo = newSubplots[id] = {};\n plotinfo.id = id;\n }\n\n // add these axis ids to each others' subplot lists\n xaxis._counterAxes.push(yaxis._id);\n yaxis._counterAxes.push(xaxis._id);\n xaxis._subplotsWith.push(id);\n yaxis._subplotsWith.push(id);\n\n // update x and y axis layout object refs\n plotinfo.xaxis = xaxis;\n plotinfo.yaxis = yaxis;\n\n // By default, we clip at the subplot level,\n // but if one trace on a given subplot has *cliponaxis* set to false,\n // we need to clip at the trace module layer level;\n // find this out here, once of for all.\n plotinfo._hasClipOnAxisFalse = false;\n\n for(j = 0; j < newFullData.length; j++) {\n var trace = newFullData[j];\n\n if(\n trace.xaxis === plotinfo.xaxis._id &&\n trace.yaxis === plotinfo.yaxis._id &&\n trace.cliponaxis === false\n ) {\n plotinfo._hasClipOnAxisFalse = true;\n break;\n }\n }\n }\n\n // while we're at it, link overlaying axes to their main axes and\n // anchored axes to the axes they're anchored to\n var axList = axisIDs.list(mockGd, null, true);\n var ax;\n for(i = 0; i < axList.length; i++) {\n ax = axList[i];\n var mainAx = null;\n\n if(ax.overlaying) {\n mainAx = axisIDs.getFromId(mockGd, ax.overlaying);\n\n // you cannot overlay an axis that's already overlaying another\n if(mainAx && mainAx.overlaying) {\n ax.overlaying = false;\n mainAx = null;\n }\n }\n ax._mainAxis = mainAx || ax;\n\n /*\n * For now force overlays to overlay completely... so they\n * can drag together correctly and share backgrounds.\n * Later perhaps we make separate axis domain and\n * tick/line domain or something, so they can still share\n * the (possibly larger) dragger and background but don't\n * have to both be drawn over that whole domain\n */\n if(mainAx) ax.domain = mainAx.domain.slice();\n\n ax._anchorAxis = ax.anchor === 'free' ?\n null :\n axisIDs.getFromId(mockGd, ax.anchor);\n }\n\n // finally, we can find the main subplot for each axis\n // (on which the ticks & labels are drawn)\n for(i = 0; i < axList.length; i++) {\n ax = axList[i];\n ax._counterAxes.sort(axisIDs.idSort);\n ax._subplotsWith.sort(Lib.subplotSort);\n ax._mainSubplot = findMainSubplot(ax, newFullLayout);\n\n // find \"full\" domain span of counter axes,\n // this loop can be costly, so only compute it when required\n if(ax._counterAxes.length && (\n (ax.spikemode && ax.spikemode.indexOf('across') !== -1) ||\n (ax.automargin && ax.mirror && ax.anchor !== 'free') ||\n Registry.getComponentMethod('rangeslider', 'isVisible')(ax)\n )) {\n var min = 1;\n var max = 0;\n for(j = 0; j < ax._counterAxes.length; j++) {\n var ax2 = axisIDs.getFromId(mockGd, ax._counterAxes[j]);\n min = Math.min(min, ax2.domain[0]);\n max = Math.max(max, ax2.domain[1]);\n }\n if(min < max) {\n ax._counterDomainMin = min;\n ax._counterDomainMax = max;\n }\n }\n }\n};\n\nfunction findMainSubplot(ax, fullLayout) {\n var mockGd = {_fullLayout: fullLayout};\n\n var isX = ax._id.charAt(0) === 'x';\n var anchorAx = ax._mainAxis._anchorAxis;\n var mainSubplotID = '';\n var nextBestMainSubplotID = '';\n var anchorID = '';\n\n // First try the main ID with the anchor\n if(anchorAx) {\n anchorID = anchorAx._mainAxis._id;\n mainSubplotID = isX ? (ax._id + anchorID) : (anchorID + ax._id);\n }\n\n // Then look for a subplot with the counteraxis overlaying the anchor\n // If that fails just use the first subplot including this axis\n if(!mainSubplotID || !fullLayout._plots[mainSubplotID]) {\n mainSubplotID = '';\n\n var counterIDs = ax._counterAxes;\n for(var j = 0; j < counterIDs.length; j++) {\n var counterPart = counterIDs[j];\n var id = isX ? (ax._id + counterPart) : (counterPart + ax._id);\n if(!nextBestMainSubplotID) nextBestMainSubplotID = id;\n var counterAx = axisIDs.getFromId(mockGd, counterPart);\n if(anchorID && counterAx.overlaying === anchorID) {\n mainSubplotID = id;\n break;\n }\n }\n }\n\n return mainSubplotID || nextBestMainSubplotID;\n}\n\n// This function clears any trace attributes with valType: color and\n// no set dflt filed in the plot schema. This is needed because groupby (which\n// is the only transform for which this currently applies) supplies parent\n// trace defaults, then expanded trace defaults. The result is that `null`\n// colors are default-supplied and inherited as a color instead of a null.\n// The result is that expanded trace default colors have no effect, with\n// the final result that groups are indistinguishable. This function clears\n// those colors so that individual groupby groups get unique colors.\nplots.clearExpandedTraceDefaultColors = function(trace) {\n var colorAttrs, path, i;\n\n // This uses weird closure state in order to satisfy the linter rule\n // that we can't create functions in a loop.\n function locateColorAttrs(attr, attrName, attrs, level) {\n path[level] = attrName;\n path.length = level + 1;\n if(attr.valType === 'color' && attr.dflt === undefined) {\n colorAttrs.push(path.join('.'));\n }\n }\n\n path = [];\n\n // Get the cached colorAttrs:\n colorAttrs = trace._module._colorAttrs;\n\n // Or else compute and cache the colorAttrs on the module:\n if(!colorAttrs) {\n trace._module._colorAttrs = colorAttrs = [];\n PlotSchema.crawl(\n trace._module.attributes,\n locateColorAttrs\n );\n }\n\n for(i = 0; i < colorAttrs.length; i++) {\n var origprop = Lib.nestedProperty(trace, '_input.' + colorAttrs[i]);\n\n if(!origprop.get()) {\n Lib.nestedProperty(trace, colorAttrs[i]).set(null);\n }\n }\n};\n\n\nplots.supplyDataDefaults = function(dataIn, dataOut, layout, fullLayout) {\n var modules = fullLayout._modules;\n var visibleModules = fullLayout._visibleModules;\n var basePlotModules = fullLayout._basePlotModules;\n var cnt = 0;\n var colorCnt = 0;\n\n var i, fullTrace, trace;\n\n fullLayout._transformModules = [];\n\n function pushModule(fullTrace) {\n dataOut.push(fullTrace);\n\n var _module = fullTrace._module;\n if(!_module) return;\n\n Lib.pushUnique(modules, _module);\n if(fullTrace.visible === true) Lib.pushUnique(visibleModules, _module);\n Lib.pushUnique(basePlotModules, fullTrace._module.basePlotModule);\n cnt++;\n\n // TODO: do we really want color not to increment for explicitly invisible traces?\n // This logic is weird, but matches previous behavior: traces that you explicitly\n // set to visible:false do not increment the color, but traces WE determine to be\n // empty or invalid (and thus set to visible:false) DO increment color.\n // I kind of think we should just let all traces increment color, visible or not.\n // see mock: axes-autotype-empty vs. a test of restyling visible: false that\n // I can't find right now...\n if(fullTrace._input.visible !== false) colorCnt++;\n }\n\n var carpetIndex = {};\n var carpetDependents = [];\n var dataTemplate = (layout.template || {}).data || {};\n var templater = Template.traceTemplater(dataTemplate);\n\n for(i = 0; i < dataIn.length; i++) {\n trace = dataIn[i];\n\n // reuse uid we may have pulled out of oldFullData\n // Note: templater supplies trace type\n fullTrace = templater.newTrace(trace);\n fullTrace.uid = fullLayout._traceUids[i];\n plots.supplyTraceDefaults(trace, fullTrace, colorCnt, fullLayout, i);\n\n fullTrace.index = i;\n fullTrace._input = trace;\n fullTrace._expandedIndex = cnt;\n\n if(fullTrace.transforms && fullTrace.transforms.length) {\n var sdInvisible = trace.visible !== false && fullTrace.visible === false;\n\n var expandedTraces = applyTransforms(fullTrace, dataOut, layout, fullLayout);\n\n for(var j = 0; j < expandedTraces.length; j++) {\n var expandedTrace = expandedTraces[j];\n\n // No further templating during transforms.\n var fullExpandedTrace = {\n _template: fullTrace._template,\n type: fullTrace.type,\n // set uid using parent uid and expanded index\n // to promote consistency between update calls\n uid: fullTrace.uid + j\n };\n\n // If the first supplyDefaults created `visible: false`,\n // clear it before running supplyDefaults a second time,\n // because sometimes there are items we still want to coerce\n // inside trace modules before determining that the trace is\n // again `visible: false`, for example partial visibilities\n // in `splom` traces.\n if(sdInvisible && expandedTrace.visible === false) {\n delete expandedTrace.visible;\n }\n\n plots.supplyTraceDefaults(expandedTrace, fullExpandedTrace, cnt, fullLayout, i);\n\n // relink private (i.e. underscore) keys expanded trace to full expanded trace so\n // that transform supply-default methods can set _ keys for future use.\n relinkPrivateKeys(fullExpandedTrace, expandedTrace);\n\n // add info about parent data trace\n fullExpandedTrace.index = i;\n fullExpandedTrace._input = trace;\n fullExpandedTrace._fullInput = fullTrace;\n\n // add info about the expanded data\n fullExpandedTrace._expandedIndex = cnt;\n fullExpandedTrace._expandedInput = expandedTrace;\n\n pushModule(fullExpandedTrace);\n }\n } else {\n // add identify refs for consistency with transformed traces\n fullTrace._fullInput = fullTrace;\n fullTrace._expandedInput = fullTrace;\n\n pushModule(fullTrace);\n }\n\n if(Registry.traceIs(fullTrace, 'carpetAxis')) {\n carpetIndex[fullTrace.carpet] = fullTrace;\n }\n\n if(Registry.traceIs(fullTrace, 'carpetDependent')) {\n carpetDependents.push(i);\n }\n }\n\n for(i = 0; i < carpetDependents.length; i++) {\n fullTrace = dataOut[carpetDependents[i]];\n\n if(!fullTrace.visible) continue;\n\n var carpetAxis = carpetIndex[fullTrace.carpet];\n fullTrace._carpet = carpetAxis;\n\n if(!carpetAxis || !carpetAxis.visible) {\n fullTrace.visible = false;\n continue;\n }\n\n fullTrace.xaxis = carpetAxis.xaxis;\n fullTrace.yaxis = carpetAxis.yaxis;\n }\n};\n\nplots.supplyAnimationDefaults = function(opts) {\n opts = opts || {};\n var i;\n var optsOut = {};\n\n function coerce(attr, dflt) {\n return Lib.coerce(opts || {}, optsOut, animationAttrs, attr, dflt);\n }\n\n coerce('mode');\n coerce('direction');\n coerce('fromcurrent');\n\n if(Array.isArray(opts.frame)) {\n optsOut.frame = [];\n for(i = 0; i < opts.frame.length; i++) {\n optsOut.frame[i] = plots.supplyAnimationFrameDefaults(opts.frame[i] || {});\n }\n } else {\n optsOut.frame = plots.supplyAnimationFrameDefaults(opts.frame || {});\n }\n\n if(Array.isArray(opts.transition)) {\n optsOut.transition = [];\n for(i = 0; i < opts.transition.length; i++) {\n optsOut.transition[i] = plots.supplyAnimationTransitionDefaults(opts.transition[i] || {});\n }\n } else {\n optsOut.transition = plots.supplyAnimationTransitionDefaults(opts.transition || {});\n }\n\n return optsOut;\n};\n\nplots.supplyAnimationFrameDefaults = function(opts) {\n var optsOut = {};\n\n function coerce(attr, dflt) {\n return Lib.coerce(opts || {}, optsOut, animationAttrs.frame, attr, dflt);\n }\n\n coerce('duration');\n coerce('redraw');\n\n return optsOut;\n};\n\nplots.supplyAnimationTransitionDefaults = function(opts) {\n var optsOut = {};\n\n function coerce(attr, dflt) {\n return Lib.coerce(opts || {}, optsOut, animationAttrs.transition, attr, dflt);\n }\n\n coerce('duration');\n coerce('easing');\n\n return optsOut;\n};\n\nplots.supplyFrameDefaults = function(frameIn) {\n var frameOut = {};\n\n function coerce(attr, dflt) {\n return Lib.coerce(frameIn, frameOut, frameAttrs, attr, dflt);\n }\n\n coerce('group');\n coerce('name');\n coerce('traces');\n coerce('baseframe');\n coerce('data');\n coerce('layout');\n\n return frameOut;\n};\n\nplots.supplyTraceDefaults = function(traceIn, traceOut, colorIndex, layout, traceInIndex) {\n var colorway = layout.colorway || Color.defaults;\n var defaultColor = colorway[colorIndex % colorway.length];\n\n var i;\n\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, plots.attributes, attr, dflt);\n }\n\n var visible = coerce('visible');\n\n coerce('type');\n coerce('name', layout._traceWord + ' ' + traceInIndex);\n\n coerce('uirevision', layout.uirevision);\n\n // we want even invisible traces to make their would-be subplots visible\n // so coerce the subplot id(s) now no matter what\n var _module = plots.getModule(traceOut);\n\n traceOut._module = _module;\n if(_module) {\n var basePlotModule = _module.basePlotModule;\n var subplotAttr = basePlotModule.attr;\n var subplotAttrs = basePlotModule.attributes;\n if(subplotAttr && subplotAttrs) {\n var subplots = layout._subplots;\n var subplotId = '';\n\n if(\n visible ||\n basePlotModule.name !== 'gl2d' // for now just drop empty gl2d subplots\n // TODO - currently if we draw an empty gl2d subplot, it draws\n // nothing then gets stuck and you can't get it back without newPlot\n // sort this out in the regl refactor?\n ) {\n if(Array.isArray(subplotAttr)) {\n for(i = 0; i < subplotAttr.length; i++) {\n var attri = subplotAttr[i];\n var vali = Lib.coerce(traceIn, traceOut, subplotAttrs, attri);\n\n if(subplots[attri]) Lib.pushUnique(subplots[attri], vali);\n subplotId += vali;\n }\n } else {\n subplotId = Lib.coerce(traceIn, traceOut, subplotAttrs, subplotAttr);\n }\n\n if(subplots[basePlotModule.name]) {\n Lib.pushUnique(subplots[basePlotModule.name], subplotId);\n }\n }\n }\n }\n\n if(visible) {\n coerce('customdata');\n coerce('ids');\n coerce('meta');\n\n if(Registry.traceIs(traceOut, 'showLegend')) {\n Lib.coerce(traceIn, traceOut,\n _module.attributes.showlegend ? _module.attributes : plots.attributes,\n 'showlegend'\n );\n\n coerce('legendgroup');\n var titleText = coerce('legendgrouptitle.text');\n if(titleText) {\n Lib.coerceFont(coerce, 'legendgrouptitle.font', Lib.extendFlat({}, layout.font, {\n size: Math.round(layout.font.size * 1.1) // default to larger font size\n }));\n }\n\n coerce('legendrank');\n\n traceOut._dfltShowLegend = true;\n } else {\n traceOut._dfltShowLegend = false;\n }\n\n if(_module) {\n _module.supplyDefaults(traceIn, traceOut, defaultColor, layout);\n }\n\n if(!Registry.traceIs(traceOut, 'noOpacity')) {\n coerce('opacity');\n }\n\n if(Registry.traceIs(traceOut, 'notLegendIsolatable')) {\n // This clears out the legendonly state for traces like carpet that\n // cannot be isolated in the legend\n traceOut.visible = !!traceOut.visible;\n }\n\n if(!Registry.traceIs(traceOut, 'noHover')) {\n if(!traceOut.hovertemplate) Lib.coerceHoverinfo(traceIn, traceOut, layout);\n\n // parcats support hover, but not hoverlabel stylings (yet)\n if(traceOut.type !== 'parcats') {\n Registry.getComponentMethod('fx', 'supplyDefaults')(traceIn, traceOut, defaultColor, layout);\n }\n }\n\n if(_module && _module.selectPoints) {\n coerce('selectedpoints');\n }\n\n plots.supplyTransformDefaults(traceIn, traceOut, layout);\n }\n\n return traceOut;\n};\n\n/**\n * hasMakesDataTransform: does this trace have a transform that makes its own\n * data, either by grabbing it from somewhere else or by creating it from input\n * parameters? If so, we should still keep going with supplyDefaults\n * even if the trace is invisible, which may just be because it has no data yet.\n */\nfunction hasMakesDataTransform(trace) {\n var transforms = trace.transforms;\n if(Array.isArray(transforms) && transforms.length) {\n for(var i = 0; i < transforms.length; i++) {\n var ti = transforms[i];\n var _module = ti._module || transformsRegistry[ti.type];\n if(_module && _module.makesData) return true;\n }\n }\n return false;\n}\n\nplots.hasMakesDataTransform = hasMakesDataTransform;\n\nplots.supplyTransformDefaults = function(traceIn, traceOut, layout) {\n // For now we only allow transforms on 1D traces, ie those that specify a _length.\n // If we were to implement 2D transforms, we'd need to have each transform\n // describe its own applicability and disable itself when it doesn't apply.\n // Also allow transforms that make their own data, but not in globalTransforms\n if(!(traceOut._length || hasMakesDataTransform(traceIn))) return;\n\n var globalTransforms = layout._globalTransforms || [];\n var transformModules = layout._transformModules || [];\n\n if(!Array.isArray(traceIn.transforms) && globalTransforms.length === 0) return;\n\n var containerIn = traceIn.transforms || [];\n var transformList = globalTransforms.concat(containerIn);\n var containerOut = traceOut.transforms = [];\n\n for(var i = 0; i < transformList.length; i++) {\n var transformIn = transformList[i];\n var type = transformIn.type;\n var _module = transformsRegistry[type];\n var transformOut;\n\n /*\n * Supply defaults may run twice. First pass runs all supply defaults steps\n * and adds the _module to any output transforms.\n * If transforms exist another pass is run so that any generated traces also\n * go through supply defaults. This has the effect of rerunning\n * supplyTransformDefaults. If the transform does not have a `transform`\n * function it could not have generated any new traces and the second stage\n * is unnecessary. We detect this case with the following variables.\n */\n var isFirstStage = !(transformIn._module && transformIn._module === _module);\n var doLaterStages = _module && typeof _module.transform === 'function';\n\n if(!_module) Lib.warn('Unrecognized transform type ' + type + '.');\n\n if(_module && _module.supplyDefaults && (isFirstStage || doLaterStages)) {\n transformOut = _module.supplyDefaults(transformIn, traceOut, layout, traceIn);\n transformOut.type = type;\n transformOut._module = _module;\n\n Lib.pushUnique(transformModules, _module);\n } else {\n transformOut = Lib.extendFlat({}, transformIn);\n }\n\n containerOut.push(transformOut);\n }\n};\n\nfunction applyTransforms(fullTrace, fullData, layout, fullLayout) {\n var container = fullTrace.transforms;\n var dataOut = [fullTrace];\n\n for(var i = 0; i < container.length; i++) {\n var transform = container[i];\n var _module = transformsRegistry[transform.type];\n\n if(_module && _module.transform) {\n dataOut = _module.transform(dataOut, {\n transform: transform,\n fullTrace: fullTrace,\n fullData: fullData,\n layout: layout,\n fullLayout: fullLayout,\n transformIndex: i\n });\n }\n }\n\n return dataOut;\n}\n\nplots.supplyLayoutGlobalDefaults = function(layoutIn, layoutOut, formatObj) {\n function coerce(attr, dflt) {\n return Lib.coerce(layoutIn, layoutOut, plots.layoutAttributes, attr, dflt);\n }\n\n var template = layoutIn.template;\n if(Lib.isPlainObject(template)) {\n layoutOut.template = template;\n layoutOut._template = template.layout;\n layoutOut._dataTemplate = template.data;\n }\n\n coerce('autotypenumbers');\n\n var globalFont = Lib.coerceFont(coerce, 'font');\n\n coerce('title.text', layoutOut._dfltTitle.plot);\n\n Lib.coerceFont(coerce, 'title.font', {\n family: globalFont.family,\n size: Math.round(globalFont.size * 1.4),\n color: globalFont.color\n });\n\n coerce('title.xref');\n coerce('title.yref');\n coerce('title.x');\n coerce('title.y');\n coerce('title.xanchor');\n coerce('title.yanchor');\n coerce('title.pad.t');\n coerce('title.pad.r');\n coerce('title.pad.b');\n coerce('title.pad.l');\n\n var uniformtextMode = coerce('uniformtext.mode');\n if(uniformtextMode) {\n coerce('uniformtext.minsize');\n }\n\n // Make sure that autosize is defaulted to *true*\n // on layouts with no set width and height for backward compatibly,\n // in particular https://plotly.com/javascript/responsive-fluid-layout/\n //\n // Before https://github.com/plotly/plotly.js/pull/635 ,\n // layouts with no set width and height were set temporary set to 'initial'\n // to pass through the autosize routine\n //\n // This behavior is subject to change in v3.\n coerce('autosize', !(layoutIn.width && layoutIn.height));\n\n coerce('width');\n coerce('height');\n coerce('margin.l');\n coerce('margin.r');\n coerce('margin.t');\n coerce('margin.b');\n coerce('margin.pad');\n coerce('margin.autoexpand');\n\n if(layoutIn.width && layoutIn.height) plots.sanitizeMargins(layoutOut);\n\n Registry.getComponentMethod('grid', 'sizeDefaults')(layoutIn, layoutOut);\n\n coerce('paper_bgcolor');\n\n coerce('separators', formatObj.decimal + formatObj.thousands);\n coerce('hidesources');\n\n coerce('colorway');\n\n coerce('datarevision');\n var uirevision = coerce('uirevision');\n coerce('editrevision', uirevision);\n coerce('selectionrevision', uirevision);\n\n Registry.getComponentMethod(\n 'modebar',\n 'supplyLayoutDefaults'\n )(layoutIn, layoutOut);\n\n Registry.getComponentMethod(\n 'shapes',\n 'supplyDrawNewShapeDefaults'\n )(layoutIn, layoutOut, coerce);\n\n coerce('meta');\n\n // do not include defaults in fullLayout when users do not set transition\n if(Lib.isPlainObject(layoutIn.transition)) {\n coerce('transition.duration');\n coerce('transition.easing');\n coerce('transition.ordering');\n }\n\n Registry.getComponentMethod(\n 'calendars',\n 'handleDefaults'\n )(layoutIn, layoutOut, 'calendar');\n\n Registry.getComponentMethod(\n 'fx',\n 'supplyLayoutGlobalDefaults'\n )(layoutIn, layoutOut, coerce);\n};\n\nfunction getComputedSize(attr) {\n return (\n (typeof attr === 'string') &&\n (attr.substr(attr.length - 2) === 'px') &&\n parseFloat(attr)\n );\n}\n\n\nplots.plotAutoSize = function plotAutoSize(gd, layout, fullLayout) {\n var context = gd._context || {};\n var frameMargins = context.frameMargins;\n var newWidth;\n var newHeight;\n\n var isPlotDiv = Lib.isPlotDiv(gd);\n\n if(isPlotDiv) gd.emit('plotly_autosize');\n\n // embedded in an iframe - just take the full iframe size\n // if we get to this point, with no aspect ratio restrictions\n if(context.fillFrame) {\n newWidth = window.innerWidth;\n newHeight = window.innerHeight;\n\n // somehow we get a few extra px height sometimes...\n // just hide it\n document.body.style.overflow = 'hidden';\n } else {\n // plotly.js - let the developers do what they want, either\n // provide height and width for the container div,\n // specify size in layout, or take the defaults,\n // but don't enforce any ratio restrictions\n var computedStyle = isPlotDiv ? window.getComputedStyle(gd) : {};\n\n newWidth = getComputedSize(computedStyle.width) || getComputedSize(computedStyle.maxWidth) || fullLayout.width;\n newHeight = getComputedSize(computedStyle.height) || getComputedSize(computedStyle.maxHeight) || fullLayout.height;\n\n if(isNumeric(frameMargins) && frameMargins > 0) {\n var factor = 1 - 2 * frameMargins;\n newWidth = Math.round(factor * newWidth);\n newHeight = Math.round(factor * newHeight);\n }\n }\n\n var minWidth = plots.layoutAttributes.width.min;\n var minHeight = plots.layoutAttributes.height.min;\n if(newWidth < minWidth) newWidth = minWidth;\n if(newHeight < minHeight) newHeight = minHeight;\n\n var widthHasChanged = !layout.width &&\n (Math.abs(fullLayout.width - newWidth) > 1);\n var heightHasChanged = !layout.height &&\n (Math.abs(fullLayout.height - newHeight) > 1);\n\n if(heightHasChanged || widthHasChanged) {\n if(widthHasChanged) fullLayout.width = newWidth;\n if(heightHasChanged) fullLayout.height = newHeight;\n }\n\n // cache initial autosize value, used in relayout when\n // width or height values are set to null\n if(!gd._initialAutoSize) {\n gd._initialAutoSize = { width: newWidth, height: newHeight };\n }\n\n plots.sanitizeMargins(fullLayout);\n};\n\nplots.supplyLayoutModuleDefaults = function(layoutIn, layoutOut, fullData, transitionData) {\n var componentsRegistry = Registry.componentsRegistry;\n var basePlotModules = layoutOut._basePlotModules;\n var component, i, _module;\n\n var Cartesian = Registry.subplotsRegistry.cartesian;\n\n // check if any components need to add more base plot modules\n // that weren't captured by traces\n for(component in componentsRegistry) {\n _module = componentsRegistry[component];\n\n if(_module.includeBasePlot) {\n _module.includeBasePlot(layoutIn, layoutOut);\n }\n }\n\n // make sure we *at least* have some cartesian axes\n if(!basePlotModules.length) {\n basePlotModules.push(Cartesian);\n }\n\n // ensure all cartesian axes have at least one subplot\n if(layoutOut._has('cartesian')) {\n Registry.getComponentMethod('grid', 'contentDefaults')(layoutIn, layoutOut);\n Cartesian.finalizeSubplots(layoutIn, layoutOut);\n }\n\n // sort subplot lists\n for(var subplotType in layoutOut._subplots) {\n layoutOut._subplots[subplotType].sort(Lib.subplotSort);\n }\n\n // base plot module layout defaults\n for(i = 0; i < basePlotModules.length; i++) {\n _module = basePlotModules[i];\n\n // e.g. pie does not have a layout-defaults step\n if(_module.supplyLayoutDefaults) {\n _module.supplyLayoutDefaults(layoutIn, layoutOut, fullData);\n }\n }\n\n // trace module layout defaults\n // use _modules rather than _visibleModules so that even\n // legendonly traces can include settings - eg barmode, which affects\n // legend.traceorder default value.\n var modules = layoutOut._modules;\n for(i = 0; i < modules.length; i++) {\n _module = modules[i];\n\n if(_module.supplyLayoutDefaults) {\n _module.supplyLayoutDefaults(layoutIn, layoutOut, fullData);\n }\n }\n\n // transform module layout defaults\n var transformModules = layoutOut._transformModules;\n for(i = 0; i < transformModules.length; i++) {\n _module = transformModules[i];\n\n if(_module.supplyLayoutDefaults) {\n _module.supplyLayoutDefaults(layoutIn, layoutOut, fullData, transitionData);\n }\n }\n\n for(component in componentsRegistry) {\n _module = componentsRegistry[component];\n\n if(_module.supplyLayoutDefaults) {\n _module.supplyLayoutDefaults(layoutIn, layoutOut, fullData);\n }\n }\n};\n\n// Remove all plotly attributes from a div so it can be replotted fresh\n// TODO: these really need to be encapsulated into a much smaller set...\nplots.purge = function(gd) {\n // note: we DO NOT remove _context because it doesn't change when we insert\n // a new plot, and may have been set outside of our scope.\n\n var fullLayout = gd._fullLayout || {};\n if(fullLayout._glcontainer !== undefined) {\n fullLayout._glcontainer.selectAll('.gl-canvas').remove();\n fullLayout._glcontainer.remove();\n fullLayout._glcanvas = null;\n }\n\n // remove modebar\n if(fullLayout._modeBar) fullLayout._modeBar.destroy();\n\n if(gd._transitionData) {\n // Ensure any dangling callbacks are simply dropped if the plot is purged.\n // This is more or less only actually important for testing.\n if(gd._transitionData._interruptCallbacks) {\n gd._transitionData._interruptCallbacks.length = 0;\n }\n\n if(gd._transitionData._animationRaf) {\n window.cancelAnimationFrame(gd._transitionData._animationRaf);\n }\n }\n\n // remove any planned throttles\n Lib.clearThrottle();\n\n // remove responsive handler\n Lib.clearResponsive(gd);\n\n // data and layout\n delete gd.data;\n delete gd.layout;\n delete gd._fullData;\n delete gd._fullLayout;\n delete gd.calcdata;\n delete gd.empty;\n\n delete gd.fid;\n\n delete gd.undoqueue; // action queue\n delete gd.undonum;\n delete gd.autoplay; // are we doing an action that doesn't go in undo queue?\n delete gd.changed;\n\n // these get recreated on _doPlot anyway, but just to be safe\n // (and to have a record of them...)\n delete gd._promises;\n delete gd._redrawTimer;\n delete gd._hmlumcount;\n delete gd._hmpixcount;\n delete gd._transitionData;\n delete gd._transitioning;\n delete gd._initialAutoSize;\n delete gd._transitioningWithDuration;\n\n // created during certain events, that *should* clean them up\n // themselves, but may not if there was an error\n delete gd._dragging;\n delete gd._dragged;\n delete gd._dragdata;\n delete gd._hoverdata;\n delete gd._snapshotInProgress;\n delete gd._editing;\n delete gd._mouseDownTime;\n delete gd._legendMouseDownTime;\n\n // remove all event listeners\n if(gd.removeAllListeners) gd.removeAllListeners();\n};\n\nplots.style = function(gd) {\n var _modules = gd._fullLayout._visibleModules;\n var styleModules = [];\n var i;\n\n // some trace modules reuse the same style method,\n // make sure to not unnecessary call them multiple times.\n\n for(i = 0; i < _modules.length; i++) {\n var _module = _modules[i];\n if(_module.style) {\n Lib.pushUnique(styleModules, _module.style);\n }\n }\n\n for(i = 0; i < styleModules.length; i++) {\n styleModules[i](gd);\n }\n};\n\nplots.sanitizeMargins = function(fullLayout) {\n // polar doesn't do margins...\n if(!fullLayout || !fullLayout.margin) return;\n\n var width = fullLayout.width;\n var height = fullLayout.height;\n var margin = fullLayout.margin;\n var plotWidth = width - (margin.l + margin.r);\n var plotHeight = height - (margin.t + margin.b);\n var correction;\n\n // if margin.l + margin.r = 0 then plotWidth > 0\n // as width >= 10 by supplyDefaults\n // similarly for margin.t + margin.b\n\n if(plotWidth < 0) {\n correction = (width - 1) / (margin.l + margin.r);\n margin.l = Math.floor(correction * margin.l);\n margin.r = Math.floor(correction * margin.r);\n }\n\n if(plotHeight < 0) {\n correction = (height - 1) / (margin.t + margin.b);\n margin.t = Math.floor(correction * margin.t);\n margin.b = Math.floor(correction * margin.b);\n }\n};\n\nplots.clearAutoMarginIds = function(gd) {\n gd._fullLayout._pushmarginIds = {};\n};\n\nplots.allowAutoMargin = function(gd, id) {\n gd._fullLayout._pushmarginIds[id] = 1;\n};\n\nfunction initMargins(fullLayout) {\n var margin = fullLayout.margin;\n\n if(!fullLayout._size) {\n var gs = fullLayout._size = {\n l: Math.round(margin.l),\n r: Math.round(margin.r),\n t: Math.round(margin.t),\n b: Math.round(margin.b),\n p: Math.round(margin.pad)\n };\n gs.w = Math.round(fullLayout.width) - gs.l - gs.r;\n gs.h = Math.round(fullLayout.height) - gs.t - gs.b;\n }\n if(!fullLayout._pushmargin) fullLayout._pushmargin = {};\n if(!fullLayout._pushmarginIds) fullLayout._pushmarginIds = {};\n}\n\n// non-negotiable - this is the smallest height we will allow users to specify via explicit margins\nvar MIN_SPECIFIED_WIDTH = 2;\nvar MIN_SPECIFIED_HEIGHT = 2;\n\n// could be exposed as an option - the smallest we will allow automargin to shrink a larger plot\nvar MIN_REDUCED_WIDTH = 64;\nvar MIN_REDUCED_HEIGHT = 64;\n\n/**\n * autoMargin: called by components that may need to expand the margins to\n * be rendered on-plot.\n *\n * @param {DOM element} gd\n * @param {string} id - an identifier unique (within this plot) to this object,\n * so we can remove a previous margin expansion from the same object.\n * @param {object} o - the margin requirements of this object, or omit to delete\n * this entry (like if it's hidden). Keys are:\n * x, y: plot fraction of the anchor point.\n * xl, xr, yt, yb: if the object has an extent defined in plot fraction,\n * you can specify both edges as plot fractions in each dimension\n * l, r, t, b: the pixels to pad past the plot fraction x[l|r] and y[t|b]\n * pad: extra pixels to add in all directions, default 12 (why?)\n */\nplots.autoMargin = function(gd, id, o) {\n var fullLayout = gd._fullLayout;\n var width = fullLayout.width;\n var height = fullLayout.height;\n var margin = fullLayout.margin;\n\n var minFinalWidth = Lib.constrain(\n width - margin.l - margin.r,\n MIN_SPECIFIED_WIDTH,\n MIN_REDUCED_WIDTH\n );\n\n var minFinalHeight = Lib.constrain(\n height - margin.t - margin.b,\n MIN_SPECIFIED_HEIGHT,\n MIN_REDUCED_HEIGHT\n );\n\n var maxSpaceW = Math.max(0, width - minFinalWidth);\n var maxSpaceH = Math.max(0, height - minFinalHeight);\n\n var pushMargin = fullLayout._pushmargin;\n var pushMarginIds = fullLayout._pushmarginIds;\n\n if(margin.autoexpand !== false) {\n if(!o) {\n delete pushMargin[id];\n delete pushMarginIds[id];\n } else {\n var pad = o.pad;\n if(pad === undefined) {\n // if no explicit pad is given, use 12px unless there's a\n // specified margin that's smaller than that\n pad = Math.min(12, margin.l, margin.r, margin.t, margin.b);\n }\n\n // if the item is too big, just give it enough automargin to\n // make sure you can still grab it and bring it back\n if(maxSpaceW) {\n var rW = (o.l + o.r) / maxSpaceW;\n if(rW > 1) {\n o.l /= rW;\n o.r /= rW;\n }\n }\n if(maxSpaceH) {\n var rH = (o.t + o.b) / maxSpaceH;\n if(rH > 1) {\n o.t /= rH;\n o.b /= rH;\n }\n }\n\n var xl = o.xl !== undefined ? o.xl : o.x;\n var xr = o.xr !== undefined ? o.xr : o.x;\n var yt = o.yt !== undefined ? o.yt : o.y;\n var yb = o.yb !== undefined ? o.yb : o.y;\n\n pushMargin[id] = {\n l: {val: xl, size: o.l + pad},\n r: {val: xr, size: o.r + pad},\n b: {val: yb, size: o.b + pad},\n t: {val: yt, size: o.t + pad}\n };\n pushMarginIds[id] = 1;\n }\n\n if(!fullLayout._replotting) {\n return plots.doAutoMargin(gd);\n }\n }\n};\n\nplots.doAutoMargin = function(gd) {\n var fullLayout = gd._fullLayout;\n var width = fullLayout.width;\n var height = fullLayout.height;\n\n if(!fullLayout._size) fullLayout._size = {};\n initMargins(fullLayout);\n\n var gs = fullLayout._size;\n var margin = fullLayout.margin;\n var oldMargins = Lib.extendFlat({}, gs);\n\n // adjust margins for outside components\n // fullLayout.margin is the requested margin,\n // fullLayout._size has margins and plotsize after adjustment\n var ml = margin.l;\n var mr = margin.r;\n var mt = margin.t;\n var mb = margin.b;\n var pushMargin = fullLayout._pushmargin;\n var pushMarginIds = fullLayout._pushmarginIds;\n\n if(fullLayout.margin.autoexpand !== false) {\n for(var k in pushMargin) {\n if(!pushMarginIds[k]) delete pushMargin[k];\n }\n\n // fill in the requested margins\n pushMargin.base = {\n l: {val: 0, size: ml},\n r: {val: 1, size: mr},\n t: {val: 1, size: mt},\n b: {val: 0, size: mb}\n };\n\n // now cycle through all the combinations of l and r\n // (and t and b) to find the required margins\n\n for(var k1 in pushMargin) {\n var pushleft = pushMargin[k1].l || {};\n var pushbottom = pushMargin[k1].b || {};\n var fl = pushleft.val;\n var pl = pushleft.size;\n var fb = pushbottom.val;\n var pb = pushbottom.size;\n\n for(var k2 in pushMargin) {\n if(isNumeric(pl) && pushMargin[k2].r) {\n var fr = pushMargin[k2].r.val;\n var pr = pushMargin[k2].r.size;\n if(fr > fl) {\n var newL = (pl * fr + (pr - width) * fl) / (fr - fl);\n var newR = (pr * (1 - fl) + (pl - width) * (1 - fr)) / (fr - fl);\n if(newL + newR > ml + mr) {\n ml = newL;\n mr = newR;\n }\n }\n }\n\n if(isNumeric(pb) && pushMargin[k2].t) {\n var ft = pushMargin[k2].t.val;\n var pt = pushMargin[k2].t.size;\n if(ft > fb) {\n var newB = (pb * ft + (pt - height) * fb) / (ft - fb);\n var newT = (pt * (1 - fb) + (pb - height) * (1 - ft)) / (ft - fb);\n if(newB + newT > mb + mt) {\n mb = newB;\n mt = newT;\n }\n }\n }\n }\n }\n }\n\n var minFinalWidth = Lib.constrain(\n width - margin.l - margin.r,\n MIN_SPECIFIED_WIDTH,\n MIN_REDUCED_WIDTH\n );\n\n var minFinalHeight = Lib.constrain(\n height - margin.t - margin.b,\n MIN_SPECIFIED_HEIGHT,\n MIN_REDUCED_HEIGHT\n );\n\n var maxSpaceW = Math.max(0, width - minFinalWidth);\n var maxSpaceH = Math.max(0, height - minFinalHeight);\n\n if(maxSpaceW) {\n var rW = (ml + mr) / maxSpaceW;\n if(rW > 1) {\n ml /= rW;\n mr /= rW;\n }\n }\n\n if(maxSpaceH) {\n var rH = (mb + mt) / maxSpaceH;\n if(rH > 1) {\n mb /= rH;\n mt /= rH;\n }\n }\n\n gs.l = Math.round(ml);\n gs.r = Math.round(mr);\n gs.t = Math.round(mt);\n gs.b = Math.round(mb);\n gs.p = Math.round(margin.pad);\n gs.w = Math.round(width) - gs.l - gs.r;\n gs.h = Math.round(height) - gs.t - gs.b;\n\n // if things changed and we're not already redrawing, trigger a redraw\n if(!fullLayout._replotting && plots.didMarginChange(oldMargins, gs)) {\n if('_redrawFromAutoMarginCount' in fullLayout) {\n fullLayout._redrawFromAutoMarginCount++;\n } else {\n fullLayout._redrawFromAutoMarginCount = 1;\n }\n\n // Always allow at least one redraw and give each margin-push\n // call 3 loops to converge. Of course, for most cases this way too many,\n // but let's keep things on the safe side until we fix our\n // auto-margin pipeline problems:\n // https://github.com/plotly/plotly.js/issues/2704\n var maxNumberOfRedraws = 3 * (1 + Object.keys(pushMarginIds).length);\n\n if(fullLayout._redrawFromAutoMarginCount < maxNumberOfRedraws) {\n return Registry.call('_doPlot', gd);\n } else {\n fullLayout._size = oldMargins;\n Lib.warn('Too many auto-margin redraws.');\n }\n }\n\n refineTicks(gd);\n};\n\nfunction refineTicks(gd) {\n var axList = axisIDs.list(gd, '', true);\n\n [\n '_adjustTickLabelsOverflow',\n '_hideCounterAxisInsideTickLabels'\n ].forEach(function(k) {\n for(var i = 0; i < axList.length; i++) {\n var hideFn = axList[i][k];\n if(hideFn) hideFn();\n }\n });\n}\n\nvar marginKeys = ['l', 'r', 't', 'b', 'p', 'w', 'h'];\n\nplots.didMarginChange = function(margin0, margin1) {\n for(var i = 0; i < marginKeys.length; i++) {\n var k = marginKeys[i];\n var m0 = margin0[k];\n var m1 = margin1[k];\n // use 1px tolerance in case we old/new differ only\n // by rounding errors, which can lead to infinite loops\n if(!isNumeric(m0) || Math.abs(m1 - m0) > 1) {\n return true;\n }\n }\n return false;\n};\n\n/**\n * JSONify the graph data and layout\n *\n * This function needs to recurse because some src can be inside\n * sub-objects.\n *\n * It also strips out functions and private (starts with _) elements.\n * Therefore, we can add temporary things to data and layout that don't\n * get saved.\n *\n * @param gd The graphDiv\n * @param {Boolean} dataonly If true, don't return layout.\n * @param {'keepref'|'keepdata'|'keepall'} [mode='keepref'] Filter what's kept\n * keepref: remove data for which there's a src present\n * eg if there's xsrc present (and xsrc is well-formed,\n * ie has : and some chars before it), strip out x\n * keepdata: remove all src tags, don't remove the data itself\n * keepall: keep data and src\n * @param {String} output If you specify 'object', the result will not be stringified\n * @param {Boolean} useDefaults If truthy, use _fullLayout and _fullData\n * @param {Boolean} includeConfig If truthy, include _context\n * @returns {Object|String}\n */\nplots.graphJson = function(gd, dataonly, mode, output, useDefaults, includeConfig) {\n // if the defaults aren't supplied yet, we need to do that...\n if((useDefaults && dataonly && !gd._fullData) ||\n (useDefaults && !dataonly && !gd._fullLayout)) {\n plots.supplyDefaults(gd);\n }\n\n var data = (useDefaults) ? gd._fullData : gd.data;\n var layout = (useDefaults) ? gd._fullLayout : gd.layout;\n var frames = (gd._transitionData || {})._frames;\n\n function stripObj(d, keepFunction) {\n if(typeof d === 'function') {\n return keepFunction ? '_function_' : null;\n }\n if(Lib.isPlainObject(d)) {\n var o = {};\n var src;\n Object.keys(d).sort().forEach(function(v) {\n // remove private elements and functions\n // _ is for private, [ is a mistake ie [object Object]\n if(['_', '['].indexOf(v.charAt(0)) !== -1) return;\n\n // if a function, add if necessary then move on\n if(typeof d[v] === 'function') {\n if(keepFunction) o[v] = '_function';\n return;\n }\n\n // look for src/data matches and remove the appropriate one\n if(mode === 'keepdata') {\n // keepdata: remove all ...src tags\n if(v.substr(v.length - 3) === 'src') {\n return;\n }\n } else if(mode === 'keepstream') {\n // keep sourced data if it's being streamed.\n // similar to keepref, but if the 'stream' object exists\n // in a trace, we will keep the data array.\n src = d[v + 'src'];\n if(typeof src === 'string' && src.indexOf(':') > 0) {\n if(!Lib.isPlainObject(d.stream)) {\n return;\n }\n }\n } else if(mode !== 'keepall') {\n // keepref: remove sourced data but only\n // if the source tag is well-formed\n src = d[v + 'src'];\n if(typeof src === 'string' && src.indexOf(':') > 0) {\n return;\n }\n }\n\n // OK, we're including this... recurse into it\n o[v] = stripObj(d[v], keepFunction);\n });\n return o;\n }\n\n if(Array.isArray(d)) {\n return d.map(function(x) {return stripObj(x, keepFunction);});\n }\n\n if(Lib.isTypedArray(d)) {\n return Lib.simpleMap(d, Lib.identity);\n }\n\n // convert native dates to date strings...\n // mostly for external users exporting to plotly\n if(Lib.isJSDate(d)) return Lib.ms2DateTimeLocal(+d);\n\n return d;\n }\n\n var obj = {\n data: (data || []).map(function(v) {\n var d = stripObj(v);\n // fit has some little arrays in it that don't contain data,\n // just fit params and meta\n if(dataonly) { delete d.fit; }\n return d;\n })\n };\n if(!dataonly) {\n obj.layout = stripObj(layout);\n if(useDefaults) {\n var gs = layout._size;\n obj.layout.computed = {\n margin: {\n b: gs.b,\n l: gs.l,\n r: gs.r,\n t: gs.t\n }\n };\n }\n }\n\n if(frames) obj.frames = stripObj(frames);\n\n if(includeConfig) obj.config = stripObj(gd._context, true);\n\n return (output === 'object') ? obj : JSON.stringify(obj);\n};\n\n/**\n * Modify a keyframe using a list of operations:\n *\n * @param {array of objects} operations\n * Sequence of operations to be performed on the keyframes\n */\nplots.modifyFrames = function(gd, operations) {\n var i, op, frame;\n var _frames = gd._transitionData._frames;\n var _frameHash = gd._transitionData._frameHash;\n\n for(i = 0; i < operations.length; i++) {\n op = operations[i];\n\n switch(op.type) {\n // No reason this couldn't exist, but is currently unused/untested:\n /* case 'rename':\n frame = _frames[op.index];\n delete _frameHash[frame.name];\n _frameHash[op.name] = frame;\n frame.name = op.name;\n break;*/\n case 'replace':\n frame = op.value;\n var oldName = (_frames[op.index] || {}).name;\n var newName = frame.name;\n _frames[op.index] = _frameHash[newName] = frame;\n\n if(newName !== oldName) {\n // If name has changed in addition to replacement, then update\n // the lookup table:\n delete _frameHash[oldName];\n _frameHash[newName] = frame;\n }\n\n break;\n case 'insert':\n frame = op.value;\n _frameHash[frame.name] = frame;\n _frames.splice(op.index, 0, frame);\n break;\n case 'delete':\n frame = _frames[op.index];\n delete _frameHash[frame.name];\n _frames.splice(op.index, 1);\n break;\n }\n }\n\n return Promise.resolve();\n};\n\n/*\n * Compute a keyframe. Merge a keyframe into its base frame(s) and\n * expand properties.\n *\n * @param {object} frameLookup\n * An object containing frames keyed by name (i.e. gd._transitionData._frameHash)\n * @param {string} frame\n * The name of the keyframe to be computed\n *\n * Returns: a new object with the merged content\n */\nplots.computeFrame = function(gd, frameName) {\n var frameLookup = gd._transitionData._frameHash;\n var i, traceIndices, traceIndex, destIndex;\n\n // Null or undefined will fail on .toString(). We'll allow numbers since we\n // make it clear frames must be given string names, but we'll allow numbers\n // here since they're otherwise fine for looking up frames as long as they're\n // properly cast to strings. We really just want to ensure here that this\n // 1) doesn't fail, and\n // 2) doens't give an incorrect answer (which String(frameName) would)\n if(!frameName) {\n throw new Error('computeFrame must be given a string frame name');\n }\n\n var framePtr = frameLookup[frameName.toString()];\n\n // Return false if the name is invalid:\n if(!framePtr) {\n return false;\n }\n\n var frameStack = [framePtr];\n var frameNameStack = [framePtr.name];\n\n // Follow frame pointers:\n while(framePtr.baseframe && (framePtr = frameLookup[framePtr.baseframe.toString()])) {\n // Avoid infinite loops:\n if(frameNameStack.indexOf(framePtr.name) !== -1) break;\n\n frameStack.push(framePtr);\n frameNameStack.push(framePtr.name);\n }\n\n // A new object for the merged result:\n var result = {};\n\n // Merge, starting with the last and ending with the desired frame:\n while((framePtr = frameStack.pop())) {\n if(framePtr.layout) {\n result.layout = plots.extendLayout(result.layout, framePtr.layout);\n }\n\n if(framePtr.data) {\n if(!result.data) {\n result.data = [];\n }\n traceIndices = framePtr.traces;\n\n if(!traceIndices) {\n // If not defined, assume serial order starting at zero\n traceIndices = [];\n for(i = 0; i < framePtr.data.length; i++) {\n traceIndices[i] = i;\n }\n }\n\n if(!result.traces) {\n result.traces = [];\n }\n\n for(i = 0; i < framePtr.data.length; i++) {\n // Loop through this frames data, find out where it should go,\n // and merge it!\n traceIndex = traceIndices[i];\n if(traceIndex === undefined || traceIndex === null) {\n continue;\n }\n\n destIndex = result.traces.indexOf(traceIndex);\n if(destIndex === -1) {\n destIndex = result.data.length;\n result.traces[destIndex] = traceIndex;\n }\n\n result.data[destIndex] = plots.extendTrace(result.data[destIndex], framePtr.data[i]);\n }\n }\n }\n\n return result;\n};\n\n/*\n * Recompute the lookup table that maps frame name -> frame object. addFrames/\n * deleteFrames already manages this data one at a time, so the only time this\n * is necessary is if you poke around manually in `gd._transitionData._frames`\n * and create and haven't updated the lookup table.\n */\nplots.recomputeFrameHash = function(gd) {\n var hash = gd._transitionData._frameHash = {};\n var frames = gd._transitionData._frames;\n for(var i = 0; i < frames.length; i++) {\n var frame = frames[i];\n if(frame && frame.name) {\n hash[frame.name] = frame;\n }\n }\n};\n\n/**\n * Extend an object, treating container arrays very differently by extracting\n * their contents and merging them separately.\n *\n * This exists so that we can extendDeepNoArrays and avoid stepping into data\n * arrays without knowledge of the plot schema, but so that we may also manually\n * recurse into known container arrays, such as transforms.\n *\n * See extendTrace and extendLayout below for usage.\n */\nplots.extendObjectWithContainers = function(dest, src, containerPaths) {\n var containerProp, containerVal, i, j, srcProp, destProp, srcContainer, destContainer;\n var copy = Lib.extendDeepNoArrays({}, src || {});\n var expandedObj = Lib.expandObjectPaths(copy);\n var containerObj = {};\n\n // Step through and extract any container properties. Otherwise extendDeepNoArrays\n // will clobber any existing properties with an empty array and then supplyDefaults\n // will reset everything to defaults.\n if(containerPaths && containerPaths.length) {\n for(i = 0; i < containerPaths.length; i++) {\n containerProp = Lib.nestedProperty(expandedObj, containerPaths[i]);\n containerVal = containerProp.get();\n\n if(containerVal === undefined) {\n Lib.nestedProperty(containerObj, containerPaths[i]).set(null);\n } else {\n containerProp.set(null);\n Lib.nestedProperty(containerObj, containerPaths[i]).set(containerVal);\n }\n }\n }\n\n dest = Lib.extendDeepNoArrays(dest || {}, expandedObj);\n\n if(containerPaths && containerPaths.length) {\n for(i = 0; i < containerPaths.length; i++) {\n srcProp = Lib.nestedProperty(containerObj, containerPaths[i]);\n srcContainer = srcProp.get();\n\n if(!srcContainer) continue;\n\n destProp = Lib.nestedProperty(dest, containerPaths[i]);\n destContainer = destProp.get();\n\n if(!Array.isArray(destContainer)) {\n destContainer = [];\n destProp.set(destContainer);\n }\n\n for(j = 0; j < srcContainer.length; j++) {\n var srcObj = srcContainer[j];\n\n if(srcObj === null) destContainer[j] = null;\n else {\n destContainer[j] = plots.extendObjectWithContainers(destContainer[j], srcObj);\n }\n }\n\n destProp.set(destContainer);\n }\n }\n\n return dest;\n};\n\nplots.dataArrayContainers = ['transforms', 'dimensions'];\nplots.layoutArrayContainers = Registry.layoutArrayContainers;\n\n/*\n * Extend a trace definition. This method:\n *\n * 1. directly transfers any array references\n * 2. manually recurses into container arrays like transforms\n *\n * The result is the original object reference with the new contents merged in.\n */\nplots.extendTrace = function(destTrace, srcTrace) {\n return plots.extendObjectWithContainers(destTrace, srcTrace, plots.dataArrayContainers);\n};\n\n/*\n * Extend a layout definition. This method:\n *\n * 1. directly transfers any array references (not critically important for\n * layout since there aren't really data arrays)\n * 2. manually recurses into container arrays like annotations\n *\n * The result is the original object reference with the new contents merged in.\n */\nplots.extendLayout = function(destLayout, srcLayout) {\n return plots.extendObjectWithContainers(destLayout, srcLayout, plots.layoutArrayContainers);\n};\n\n/**\n * Transition to a set of new data and layout properties from Plotly.animate\n *\n * @param {DOM element} gd\n * @param {Object[]} data\n * an array of data objects following the normal Plotly data definition format\n * @param {Object} layout\n * a layout object, following normal Plotly layout format\n * @param {Number[]} traces\n * indices of the corresponding traces specified in `data`\n * @param {Object} frameOpts\n * options for the frame (i.e. whether to redraw post-transition)\n * @param {Object} transitionOpts\n * options for the transition\n */\nplots.transition = function(gd, data, layout, traces, frameOpts, transitionOpts) {\n var opts = {redraw: frameOpts.redraw};\n var transitionedTraces = {};\n var axEdits = [];\n\n opts.prepareFn = function() {\n var dataLength = Array.isArray(data) ? data.length : 0;\n var traceIndices = traces.slice(0, dataLength);\n\n for(var i = 0; i < traceIndices.length; i++) {\n var traceIdx = traceIndices[i];\n var trace = gd._fullData[traceIdx];\n var _module = trace._module;\n\n // There's nothing to do if this module is not defined:\n if(!_module) continue;\n\n // Don't register the trace as transitioned if it doesn't know what to do.\n // If it *is* registered, it will receive a callback that it's responsible\n // for calling in order to register the transition as having completed.\n if(_module.animatable) {\n var n = _module.basePlotModule.name;\n if(!transitionedTraces[n]) transitionedTraces[n] = [];\n transitionedTraces[n].push(traceIdx);\n }\n\n gd.data[traceIndices[i]] = plots.extendTrace(gd.data[traceIndices[i]], data[i]);\n }\n\n // Follow the same procedure. Clone it so we don't mangle the input, then\n // expand any object paths so we can merge deep into gd.layout:\n var layoutUpdate = Lib.expandObjectPaths(Lib.extendDeepNoArrays({}, layout));\n\n // Before merging though, we need to modify the incoming layout. We only\n // know how to *transition* layout ranges, so it's imperative that a new\n // range not be sent to the layout before the transition has started. So\n // we must remove the things we can transition:\n var axisAttrRe = /^[xy]axis[0-9]*$/;\n for(var attr in layoutUpdate) {\n if(!axisAttrRe.test(attr)) continue;\n delete layoutUpdate[attr].range;\n }\n\n plots.extendLayout(gd.layout, layoutUpdate);\n\n // Supply defaults after applying the incoming properties. Note that any attempt\n // to simplify this step and reduce the amount of work resulted in the reconstruction\n // of essentially the whole supplyDefaults step, so that it seems sensible to just use\n // supplyDefaults even though it's heavier than would otherwise be desired for\n // transitions:\n\n // first delete calcdata so supplyDefaults knows a calc step is coming\n delete gd.calcdata;\n\n plots.supplyDefaults(gd);\n plots.doCalcdata(gd);\n\n var newLayout = Lib.expandObjectPaths(layout);\n\n if(newLayout) {\n var subplots = gd._fullLayout._plots;\n\n for(var k in subplots) {\n var plotinfo = subplots[k];\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n var xr0 = xa.range.slice();\n var yr0 = ya.range.slice();\n\n var xr1 = null;\n var yr1 = null;\n var editX = null;\n var editY = null;\n\n if(Array.isArray(newLayout[xa._name + '.range'])) {\n xr1 = newLayout[xa._name + '.range'].slice();\n } else if(Array.isArray((newLayout[xa._name] || {}).range)) {\n xr1 = newLayout[xa._name].range.slice();\n }\n if(Array.isArray(newLayout[ya._name + '.range'])) {\n yr1 = newLayout[ya._name + '.range'].slice();\n } else if(Array.isArray((newLayout[ya._name] || {}).range)) {\n yr1 = newLayout[ya._name].range.slice();\n }\n\n if(xr0 && xr1 &&\n (xa.r2l(xr0[0]) !== xa.r2l(xr1[0]) || xa.r2l(xr0[1]) !== xa.r2l(xr1[1]))\n ) {\n editX = {xr0: xr0, xr1: xr1};\n }\n if(yr0 && yr1 &&\n (ya.r2l(yr0[0]) !== ya.r2l(yr1[0]) || ya.r2l(yr0[1]) !== ya.r2l(yr1[1]))\n ) {\n editY = {yr0: yr0, yr1: yr1};\n }\n\n if(editX || editY) {\n axEdits.push(Lib.extendFlat({plotinfo: plotinfo}, editX, editY));\n }\n }\n }\n\n return Promise.resolve();\n };\n\n opts.runFn = function(makeCallback) {\n var traceTransitionOpts;\n var basePlotModules = gd._fullLayout._basePlotModules;\n var hasAxisTransition = axEdits.length;\n var i;\n\n if(layout) {\n for(i = 0; i < basePlotModules.length; i++) {\n if(basePlotModules[i].transitionAxes) {\n basePlotModules[i].transitionAxes(gd, axEdits, transitionOpts, makeCallback);\n }\n }\n }\n\n // Here handle the exception that we refuse to animate scales and axes at the same\n // time. In other words, if there's an axis transition, then set the data transition\n // to instantaneous.\n if(hasAxisTransition) {\n traceTransitionOpts = Lib.extendFlat({}, transitionOpts);\n traceTransitionOpts.duration = 0;\n // This means do not transition cartesian traces,\n // this happens on layout-only (e.g. axis range) animations\n delete transitionedTraces.cartesian;\n } else {\n traceTransitionOpts = transitionOpts;\n }\n\n // Note that we pass a callback to *create* the callback that must be invoked on completion.\n // This is since not all traces know about transitions, so it greatly simplifies matters if\n // the trace is responsible for creating a callback, if needed, and then executing it when\n // the time is right.\n for(var n in transitionedTraces) {\n var traceIndices = transitionedTraces[n];\n var _module = gd._fullData[traceIndices[0]]._module;\n _module.basePlotModule.plot(gd, traceIndices, traceTransitionOpts, makeCallback);\n }\n };\n\n return _transition(gd, transitionOpts, opts);\n};\n\n/**\n * Transition to a set of new data and layout properties from Plotly.react\n *\n * @param {DOM element} gd\n * @param {object} restyleFlags\n * - anim {'all'|'some'}\n * @param {object} relayoutFlags\n * - anim {'all'|'some'}\n * @param {object} oldFullLayout : old (pre Plotly.react) fullLayout\n */\nplots.transitionFromReact = function(gd, restyleFlags, relayoutFlags, oldFullLayout) {\n var fullLayout = gd._fullLayout;\n var transitionOpts = fullLayout.transition;\n var opts = {};\n var axEdits = [];\n\n opts.prepareFn = function() {\n var subplots = fullLayout._plots;\n\n // no need to redraw at end of transition,\n // if all changes are animatable\n opts.redraw = false;\n if(restyleFlags.anim === 'some') opts.redraw = true;\n if(relayoutFlags.anim === 'some') opts.redraw = true;\n\n for(var k in subplots) {\n var plotinfo = subplots[k];\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n var xr0 = oldFullLayout[xa._name].range.slice();\n var yr0 = oldFullLayout[ya._name].range.slice();\n var xr1 = xa.range.slice();\n var yr1 = ya.range.slice();\n\n xa.setScale();\n ya.setScale();\n\n var editX = null;\n var editY = null;\n\n if(xa.r2l(xr0[0]) !== xa.r2l(xr1[0]) || xa.r2l(xr0[1]) !== xa.r2l(xr1[1])) {\n editX = {xr0: xr0, xr1: xr1};\n }\n if(ya.r2l(yr0[0]) !== ya.r2l(yr1[0]) || ya.r2l(yr0[1]) !== ya.r2l(yr1[1])) {\n editY = {yr0: yr0, yr1: yr1};\n }\n\n if(editX || editY) {\n axEdits.push(Lib.extendFlat({plotinfo: plotinfo}, editX, editY));\n }\n }\n\n return Promise.resolve();\n };\n\n opts.runFn = function(makeCallback) {\n var fullData = gd._fullData;\n var fullLayout = gd._fullLayout;\n var basePlotModules = fullLayout._basePlotModules;\n\n var axisTransitionOpts;\n var traceTransitionOpts;\n var transitionedTraces;\n\n var allTraceIndices = [];\n for(var i = 0; i < fullData.length; i++) {\n allTraceIndices.push(i);\n }\n\n function transitionAxes() {\n if(!gd._fullLayout) return;\n for(var j = 0; j < basePlotModules.length; j++) {\n if(basePlotModules[j].transitionAxes) {\n basePlotModules[j].transitionAxes(gd, axEdits, axisTransitionOpts, makeCallback);\n }\n }\n }\n\n function transitionTraces() {\n if(!gd._fullLayout) return;\n for(var j = 0; j < basePlotModules.length; j++) {\n basePlotModules[j].plot(gd, transitionedTraces, traceTransitionOpts, makeCallback);\n }\n }\n\n if(axEdits.length && restyleFlags.anim) {\n if(transitionOpts.ordering === 'traces first') {\n axisTransitionOpts = Lib.extendFlat({}, transitionOpts, {duration: 0});\n transitionedTraces = allTraceIndices;\n traceTransitionOpts = transitionOpts;\n setTimeout(transitionAxes, transitionOpts.duration);\n transitionTraces();\n } else {\n axisTransitionOpts = transitionOpts;\n transitionedTraces = null;\n traceTransitionOpts = Lib.extendFlat({}, transitionOpts, {duration: 0});\n setTimeout(transitionTraces, axisTransitionOpts.duration);\n transitionAxes();\n }\n } else if(axEdits.length) {\n axisTransitionOpts = transitionOpts;\n transitionAxes();\n } else if(restyleFlags.anim) {\n transitionedTraces = allTraceIndices;\n traceTransitionOpts = transitionOpts;\n transitionTraces();\n }\n };\n\n return _transition(gd, transitionOpts, opts);\n};\n\n/**\n * trace/layout transition wrapper that works\n * for transitions initiated by Plotly.animate and Plotly.react.\n *\n * @param {DOM element} gd\n * @param {object} transitionOpts\n * @param {object} opts\n * - redraw {boolean}\n * - prepareFn {function} *should return a Promise*\n * - runFn {function} ran inside executeTransitions\n */\nfunction _transition(gd, transitionOpts, opts) {\n var aborted = false;\n\n function executeCallbacks(list) {\n var p = Promise.resolve();\n if(!list) return p;\n while(list.length) {\n p = p.then((list.shift()));\n }\n return p;\n }\n\n function flushCallbacks(list) {\n if(!list) return;\n while(list.length) {\n list.shift();\n }\n }\n\n function executeTransitions() {\n gd.emit('plotly_transitioning', []);\n\n return new Promise(function(resolve) {\n // This flag is used to disabled things like autorange:\n gd._transitioning = true;\n\n // When instantaneous updates are coming through quickly, it's too much to simply disable\n // all interaction, so store this flag so we can disambiguate whether mouse interactions\n // should be fully disabled or not:\n if(transitionOpts.duration > 0) {\n gd._transitioningWithDuration = true;\n }\n\n // If another transition is triggered, this callback will be executed simply because it's\n // in the interruptCallbacks queue. If this transition completes, it will instead flush\n // that queue and forget about this callback.\n gd._transitionData._interruptCallbacks.push(function() {\n aborted = true;\n });\n\n if(opts.redraw) {\n gd._transitionData._interruptCallbacks.push(function() {\n return Registry.call('redraw', gd);\n });\n }\n\n // Emit this and make sure it happens last:\n gd._transitionData._interruptCallbacks.push(function() {\n gd.emit('plotly_transitioninterrupted', []);\n });\n\n // Construct callbacks that are executed on transition end. This ensures the d3 transitions\n // are *complete* before anything else is done.\n var numCallbacks = 0;\n var numCompleted = 0;\n function makeCallback() {\n numCallbacks++;\n return function() {\n numCompleted++;\n // When all are complete, perform a redraw:\n if(!aborted && numCompleted === numCallbacks) {\n completeTransition(resolve);\n }\n };\n }\n\n opts.runFn(makeCallback);\n\n // If nothing else creates a callback, then this will trigger the completion in the next tick:\n setTimeout(makeCallback());\n });\n }\n\n function completeTransition(callback) {\n // This a simple workaround for tests which purge the graph before animations\n // have completed. That's not a very common case, so this is the simplest\n // fix.\n if(!gd._transitionData) return;\n\n flushCallbacks(gd._transitionData._interruptCallbacks);\n\n return Promise.resolve().then(function() {\n if(opts.redraw) {\n return Registry.call('redraw', gd);\n }\n }).then(function() {\n // Set transitioning false again once the redraw has occurred. This is used, for example,\n // to prevent the trailing redraw from autoranging:\n gd._transitioning = false;\n gd._transitioningWithDuration = false;\n\n gd.emit('plotly_transitioned', []);\n }).then(callback);\n }\n\n function interruptPreviousTransitions() {\n // Fail-safe against purged plot:\n if(!gd._transitionData) return;\n\n // If a transition is interrupted, set this to false. At the moment, the only thing that would\n // interrupt a transition is another transition, so that it will momentarily be set to true\n // again, but this determines whether autorange or dragbox work, so it's for the sake of\n // cleanliness:\n gd._transitioning = false;\n\n return executeCallbacks(gd._transitionData._interruptCallbacks);\n }\n\n var seq = [\n plots.previousPromises,\n interruptPreviousTransitions,\n opts.prepareFn,\n plots.rehover,\n executeTransitions\n ];\n\n var transitionStarting = Lib.syncOrAsync(seq, gd);\n\n if(!transitionStarting || !transitionStarting.then) {\n transitionStarting = Promise.resolve();\n }\n\n return transitionStarting.then(function() { return gd; });\n}\n\nplots.doCalcdata = function(gd, traces) {\n var axList = axisIDs.list(gd);\n var fullData = gd._fullData;\n var fullLayout = gd._fullLayout;\n\n var trace, _module, i, j;\n\n // XXX: Is this correct? Needs a closer look so that *some* traces can be recomputed without\n // *all* needing doCalcdata:\n var calcdata = new Array(fullData.length);\n var oldCalcdata = (gd.calcdata || []).slice();\n gd.calcdata = calcdata;\n\n // extra helper variables\n\n // how many box/violins plots do we have (in case they're grouped)\n fullLayout._numBoxes = 0;\n fullLayout._numViolins = 0;\n\n // initialize violin per-scale-group stats container\n fullLayout._violinScaleGroupStats = {};\n\n // for calculating avg luminosity of heatmaps\n gd._hmpixcount = 0;\n gd._hmlumcount = 0;\n\n // for sharing colors across pies / sunbursts / treemap / icicle / funnelarea (and for legend)\n fullLayout._piecolormap = {};\n fullLayout._sunburstcolormap = {};\n fullLayout._treemapcolormap = {};\n fullLayout._iciclecolormap = {};\n fullLayout._funnelareacolormap = {};\n\n // If traces were specified and this trace was not included,\n // then transfer it over from the old calcdata:\n for(i = 0; i < fullData.length; i++) {\n if(Array.isArray(traces) && traces.indexOf(i) === -1) {\n calcdata[i] = oldCalcdata[i];\n continue;\n }\n }\n\n for(i = 0; i < fullData.length; i++) {\n trace = fullData[i];\n\n trace._arrayAttrs = PlotSchema.findArrayAttributes(trace);\n\n // keep track of trace extremes (for autorange) in here\n trace._extremes = {};\n }\n\n // add polar axes to axis list\n var polarIds = fullLayout._subplots.polar || [];\n for(i = 0; i < polarIds.length; i++) {\n axList.push(\n fullLayout[polarIds[i]].radialaxis,\n fullLayout[polarIds[i]].angularaxis\n );\n }\n\n // clear relinked cmin/cmax values in shared axes to start aggregation from scratch\n for(var k in fullLayout._colorAxes) {\n var cOpts = fullLayout[k];\n if(cOpts.cauto !== false) {\n delete cOpts.cmin;\n delete cOpts.cmax;\n }\n }\n\n var hasCalcTransform = false;\n\n function transformCalci(i) {\n trace = fullData[i];\n _module = trace._module;\n\n if(trace.visible === true && trace.transforms) {\n // we need one round of trace module calc before\n // the calc transform to 'fill in' the categories list\n // used for example in the data-to-coordinate method\n if(_module && _module.calc) {\n var cdi = _module.calc(gd, trace);\n\n // must clear scene 'batches', so that 2nd\n // _module.calc call starts from scratch\n if(cdi[0] && cdi[0].t && cdi[0].t._scene) {\n delete cdi[0].t._scene.dirty;\n }\n }\n\n for(j = 0; j < trace.transforms.length; j++) {\n var transform = trace.transforms[j];\n\n _module = transformsRegistry[transform.type];\n if(_module && _module.calcTransform) {\n trace._hasCalcTransform = true;\n hasCalcTransform = true;\n _module.calcTransform(gd, trace, transform);\n }\n }\n }\n }\n\n function calci(i, isContainer) {\n trace = fullData[i];\n _module = trace._module;\n\n if(!!_module.isContainer !== isContainer) return;\n\n var cd = [];\n\n if(trace.visible === true && trace._length !== 0) {\n // clear existing ref in case it got relinked\n delete trace._indexToPoints;\n // keep ref of index-to-points map object of the *last* enabled transform,\n // this index-to-points map object is required to determine the calcdata indices\n // that correspond to input indices (e.g. from 'selectedpoints')\n var transforms = trace.transforms || [];\n for(j = transforms.length - 1; j >= 0; j--) {\n if(transforms[j].enabled) {\n trace._indexToPoints = transforms[j]._indexToPoints;\n break;\n }\n }\n\n if(_module && _module.calc) {\n cd = _module.calc(gd, trace);\n }\n }\n\n // Make sure there is a first point.\n //\n // This ensures there is a calcdata item for every trace,\n // even if cartesian logic doesn't handle it (for things like legends).\n if(!Array.isArray(cd) || !cd[0]) {\n cd = [{x: BADNUM, y: BADNUM}];\n }\n\n // add the trace-wide properties to the first point,\n // per point properties to every point\n // t is the holder for trace-wide properties\n if(!cd[0].t) cd[0].t = {};\n cd[0].trace = trace;\n\n calcdata[i] = cd;\n }\n\n setupAxisCategories(axList, fullData, fullLayout);\n\n // 'transform' loop - must calc container traces first\n // so that if their dependent traces can get transform properly\n for(i = 0; i < fullData.length; i++) calci(i, true);\n for(i = 0; i < fullData.length; i++) transformCalci(i);\n\n // clear stuff that should recomputed in 'regular' loop\n if(hasCalcTransform) setupAxisCategories(axList, fullData, fullLayout);\n\n // 'regular' loop - make sure container traces (eg carpet) calc before\n // contained traces (eg contourcarpet)\n for(i = 0; i < fullData.length; i++) calci(i, true);\n for(i = 0; i < fullData.length; i++) calci(i, false);\n\n doCrossTraceCalc(gd);\n\n // Sort axis categories per value if specified\n var sorted = sortAxisCategoriesByValue(axList, gd);\n if(sorted.length) {\n // how many box/violins plots do we have (in case they're grouped)\n fullLayout._numBoxes = 0;\n fullLayout._numViolins = 0;\n // If a sort operation was performed, run calc() again\n for(i = 0; i < sorted.length; i++) calci(sorted[i], true);\n for(i = 0; i < sorted.length; i++) calci(sorted[i], false);\n doCrossTraceCalc(gd);\n }\n\n Registry.getComponentMethod('fx', 'calc')(gd);\n Registry.getComponentMethod('errorbars', 'calc')(gd);\n};\n\nvar sortAxisCategoriesByValueRegex = /(total|sum|min|max|mean|median) (ascending|descending)/;\n\nfunction sortAxisCategoriesByValue(axList, gd) {\n var affectedTraces = [];\n var i, j, k, l, o;\n\n function zMapCategory(type, ax, value) {\n var axLetter = ax._id.charAt(0);\n if(type === 'histogram2dcontour') {\n var counterAxLetter = ax._counterAxes[0];\n var counterAx = axisIDs.getFromId(gd, counterAxLetter);\n\n var xCategorical = axLetter === 'x' || (counterAxLetter === 'x' && counterAx.type === 'category');\n var yCategorical = axLetter === 'y' || (counterAxLetter === 'y' && counterAx.type === 'category');\n\n return function(o, l) {\n if(o === 0 || l === 0) return -1; // Skip first row and column\n if(xCategorical && o === value[l].length - 1) return -1;\n if(yCategorical && l === value.length - 1) return -1;\n\n return (axLetter === 'y' ? l : o) - 1;\n };\n } else {\n return function(o, l) {\n return axLetter === 'y' ? l : o;\n };\n }\n }\n\n var aggFn = {\n 'min': function(values) {return Lib.aggNums(Math.min, null, values);},\n 'max': function(values) {return Lib.aggNums(Math.max, null, values);},\n 'sum': function(values) {return Lib.aggNums(function(a, b) { return a + b;}, null, values);},\n 'total': function(values) {return Lib.aggNums(function(a, b) { return a + b;}, null, values);},\n 'mean': function(values) {return Lib.mean(values);},\n 'median': function(values) {return Lib.median(values);}\n };\n\n for(i = 0; i < axList.length; i++) {\n var ax = axList[i];\n if(ax.type !== 'category') continue;\n\n // Order by value\n var match = ax.categoryorder.match(sortAxisCategoriesByValueRegex);\n if(match) {\n var aggregator = match[1];\n var order = match[2];\n\n var axLetter = ax._id.charAt(0);\n var isX = axLetter === 'x';\n\n // Store values associated with each category\n var categoriesValue = [];\n for(j = 0; j < ax._categories.length; j++) {\n categoriesValue.push([ax._categories[j], []]);\n }\n\n // Collect values across traces\n for(j = 0; j < ax._traceIndices.length; j++) {\n var traceIndex = ax._traceIndices[j];\n var fullTrace = gd._fullData[traceIndex];\n\n // Skip over invisible traces\n if(fullTrace.visible !== true) continue;\n\n var type = fullTrace.type;\n if(Registry.traceIs(fullTrace, 'histogram')) {\n delete fullTrace._xautoBinFinished;\n delete fullTrace._yautoBinFinished;\n }\n var isSplom = type === 'splom';\n var isScattergl = type === 'scattergl';\n\n var cd = gd.calcdata[traceIndex];\n for(k = 0; k < cd.length; k++) {\n var cdi = cd[k];\n var catIndex, value;\n\n if(isSplom) {\n // If `splom`, collect values across dimensions\n // Find which dimension the current axis is representing\n var currentDimensionIndex = fullTrace._axesDim[ax._id];\n\n // Apply logic to associated x axis if it's defined\n if(!isX) {\n var associatedXAxisID = fullTrace._diag[currentDimensionIndex][0];\n if(associatedXAxisID) ax = gd._fullLayout[axisIDs.id2name(associatedXAxisID)];\n }\n\n var categories = cdi.trace.dimensions[currentDimensionIndex].values;\n for(l = 0; l < categories.length; l++) {\n catIndex = ax._categoriesMap[categories[l]];\n\n // Collect associated values at index `l` over all other dimensions\n for(o = 0; o < cdi.trace.dimensions.length; o++) {\n if(o === currentDimensionIndex) continue;\n var dimension = cdi.trace.dimensions[o];\n categoriesValue[catIndex][1].push(dimension.values[l]);\n }\n }\n } else if(isScattergl) {\n // If `scattergl`, collect all values stashed under cdi.t\n for(l = 0; l < cdi.t.x.length; l++) {\n if(isX) {\n catIndex = cdi.t.x[l];\n value = cdi.t.y[l];\n } else {\n catIndex = cdi.t.y[l];\n value = cdi.t.x[l];\n }\n categoriesValue[catIndex][1].push(value);\n }\n // must clear scene 'batches', so that 2nd\n // _module.calc call starts from scratch\n if(cdi.t && cdi.t._scene) {\n delete cdi.t._scene.dirty;\n }\n } else if(cdi.hasOwnProperty('z')) {\n // If 2dMap, collect values in `z`\n value = cdi.z;\n var mapping = zMapCategory(fullTrace.type, ax, value);\n\n for(l = 0; l < value.length; l++) {\n for(o = 0; o < value[l].length; o++) {\n catIndex = mapping(o, l);\n if(catIndex + 1) categoriesValue[catIndex][1].push(value[l][o]);\n }\n }\n } else {\n // For all other 2d cartesian traces\n catIndex = cdi.p;\n if(catIndex === undefined) catIndex = cdi[axLetter];\n\n value = cdi.s;\n if(value === undefined) value = cdi.v;\n if(value === undefined) value = isX ? cdi.y : cdi.x;\n\n if(!Array.isArray(value)) {\n if(value === undefined) value = [];\n else value = [value];\n }\n for(l = 0; l < value.length; l++) {\n categoriesValue[catIndex][1].push(value[l]);\n }\n }\n }\n }\n\n ax._categoriesValue = categoriesValue;\n\n var categoriesAggregatedValue = [];\n for(j = 0; j < categoriesValue.length; j++) {\n categoriesAggregatedValue.push([\n categoriesValue[j][0],\n aggFn[aggregator](categoriesValue[j][1])\n ]);\n }\n\n // Sort by aggregated value\n categoriesAggregatedValue.sort(function(a, b) {\n return a[1] - b[1];\n });\n\n ax._categoriesAggregatedValue = categoriesAggregatedValue;\n\n // Set new category order\n ax._initialCategories = categoriesAggregatedValue.map(function(c) {\n return c[0];\n });\n\n // Reverse if descending\n if(order === 'descending') {\n ax._initialCategories.reverse();\n }\n\n // Sort all matching axes\n affectedTraces = affectedTraces.concat(ax.sortByInitialCategories());\n }\n }\n return affectedTraces;\n}\n\nfunction setupAxisCategories(axList, fullData, fullLayout) {\n var axLookup = {};\n\n function setupOne(ax) {\n ax.clearCalc();\n if(ax.type === 'multicategory') {\n ax.setupMultiCategory(fullData);\n }\n\n axLookup[ax._id] = 1;\n }\n\n Lib.simpleMap(axList, setupOne);\n\n // look into match groups for 'missing' axes\n var matchGroups = fullLayout._axisMatchGroups || [];\n for(var i = 0; i < matchGroups.length; i++) {\n for(var axId in matchGroups[i]) {\n if(!axLookup[axId]) {\n setupOne(fullLayout[axisIDs.id2name(axId)]);\n }\n }\n }\n}\n\nfunction doCrossTraceCalc(gd) {\n var fullLayout = gd._fullLayout;\n var modules = fullLayout._visibleModules;\n var hash = {};\n var i, j, k;\n\n // position and range calculations for traces that\n // depend on each other ie bars (stacked or grouped)\n // and boxes (grouped) push each other out of the way\n\n for(j = 0; j < modules.length; j++) {\n var _module = modules[j];\n var fn = _module.crossTraceCalc;\n if(fn) {\n var spType = _module.basePlotModule.name;\n if(hash[spType]) {\n Lib.pushUnique(hash[spType], fn);\n } else {\n hash[spType] = [fn];\n }\n }\n }\n\n for(k in hash) {\n var methods = hash[k];\n var subplots = fullLayout._subplots[k];\n\n if(Array.isArray(subplots)) {\n for(i = 0; i < subplots.length; i++) {\n var sp = subplots[i];\n var spInfo = k === 'cartesian' ?\n fullLayout._plots[sp] :\n fullLayout[sp];\n\n for(j = 0; j < methods.length; j++) {\n methods[j](gd, spInfo, sp);\n }\n }\n } else {\n for(j = 0; j < methods.length; j++) {\n methods[j](gd);\n }\n }\n }\n}\n\nplots.rehover = function(gd) {\n if(gd._fullLayout._rehover) {\n gd._fullLayout._rehover();\n }\n};\n\nplots.redrag = function(gd) {\n if(gd._fullLayout._redrag) {\n gd._fullLayout._redrag();\n }\n};\n\nplots.generalUpdatePerTraceModule = function(gd, subplot, subplotCalcData, subplotLayout) {\n var traceHashOld = subplot.traceHash;\n var traceHash = {};\n var i;\n\n // build up moduleName -> calcData hash\n for(i = 0; i < subplotCalcData.length; i++) {\n var calcTraces = subplotCalcData[i];\n var trace = calcTraces[0].trace;\n\n // skip over visible === false traces\n // as they don't have `_module` ref\n if(trace.visible) {\n traceHash[trace.type] = traceHash[trace.type] || [];\n traceHash[trace.type].push(calcTraces);\n }\n }\n\n // when a trace gets deleted, make sure that its module's\n // plot method is called so that it is properly\n // removed from the DOM.\n for(var moduleNameOld in traceHashOld) {\n if(!traceHash[moduleNameOld]) {\n var fakeCalcTrace = traceHashOld[moduleNameOld][0];\n var fakeTrace = fakeCalcTrace[0].trace;\n\n fakeTrace.visible = false;\n traceHash[moduleNameOld] = [fakeCalcTrace];\n }\n }\n\n // call module plot method\n for(var moduleName in traceHash) {\n var moduleCalcData = traceHash[moduleName];\n var _module = moduleCalcData[0][0].trace._module;\n\n _module.plot(gd, subplot, Lib.filterVisible(moduleCalcData), subplotLayout);\n }\n\n // update moduleName -> calcData hash\n subplot.traceHash = traceHash;\n};\n\nplots.plotBasePlot = function(desiredType, gd, traces, transitionOpts, makeOnCompleteCallback) {\n var _module = Registry.getModule(desiredType);\n var cdmodule = getModuleCalcData(gd.calcdata, _module)[0];\n _module.plot(gd, cdmodule, transitionOpts, makeOnCompleteCallback);\n};\n\nplots.cleanBasePlot = function(desiredType, newFullData, newFullLayout, oldFullData, oldFullLayout) {\n var had = (oldFullLayout._has && oldFullLayout._has(desiredType));\n var has = (newFullLayout._has && newFullLayout._has(desiredType));\n\n if(had && !has) {\n oldFullLayout['_' + desiredType + 'layer'].selectAll('g.trace').remove();\n }\n};\n\n},{\"../components/color\":366,\"../constants/numerical\":479,\"../lib\":503,\"../plot_api/plot_schema\":542,\"../plot_api/plot_template\":543,\"../plots/get_data\":593,\"../registry\":638,\"./animation_attributes\":548,\"./attributes\":550,\"./cartesian/axis_ids\":558,\"./cartesian/handle_outline\":565,\"./command\":583,\"./font_attributes\":585,\"./frame_attributes\":586,\"./layout_attributes\":610,\"@plotly/d3\":58,\"d3-format\":112,\"d3-time-format\":120,\"fast-isnumeric\":190}],620:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attr: 'subplot',\n name: 'polar',\n\n axisNames: ['angularaxis', 'radialaxis'],\n axisName2dataArray: {angularaxis: 'theta', radialaxis: 'r'},\n\n layerNames: [\n 'draglayer',\n 'plotbg',\n 'backplot',\n 'angular-grid',\n 'radial-grid',\n 'frontplot',\n 'angular-line',\n 'radial-line',\n 'angular-axis',\n 'radial-axis'\n ],\n\n radialDragBoxSize: 50,\n angularDragBoxSize: 30,\n cornerLen: 25,\n cornerHalfWidth: 2,\n\n // pixels to move mouse before you stop clamping to starting point\n MINDRAG: 8,\n // smallest radial distance [px] allowed for a zoombox\n MINZOOM: 20,\n // distance [px] off (r=0) or (r=radius) where we transition\n // from single-sided to two-sided radial zoom\n OFFEDGE: 20\n};\n\n},{}],621:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar polygonTester = _dereq_('../../lib/polygon').tester;\n\nvar findIndexOfMin = Lib.findIndexOfMin;\nvar isAngleInsideSector = Lib.isAngleInsideSector;\nvar angleDelta = Lib.angleDelta;\nvar angleDist = Lib.angleDist;\n\n/**\n * is pt (r,a) inside polygon made up vertices at angles 'vangles'\n * inside a given polar sector\n *\n * @param {number} r : pt's radial coordinate\n * @param {number} a : pt's angular coordinate in *radians*\n * @param {2-item array} rBnds : sector's radial bounds\n * @param {2-item array} aBnds : sector's angular bounds *radians*\n * @param {array} vangles : angles of polygon vertices in *radians*\n * @return {boolean}\n */\nfunction isPtInsidePolygon(r, a, rBnds, aBnds, vangles) {\n if(!isAngleInsideSector(a, aBnds)) return false;\n\n var r0, r1;\n\n if(rBnds[0] < rBnds[1]) {\n r0 = rBnds[0];\n r1 = rBnds[1];\n } else {\n r0 = rBnds[1];\n r1 = rBnds[0];\n }\n\n var polygonIn = polygonTester(makePolygon(r0, aBnds[0], aBnds[1], vangles));\n var polygonOut = polygonTester(makePolygon(r1, aBnds[0], aBnds[1], vangles));\n var xy = [r * Math.cos(a), r * Math.sin(a)];\n return polygonOut.contains(xy) && !polygonIn.contains(xy);\n}\n\n// find intersection of 'v0' <-> 'v1' edge with a ray at angle 'a'\n// (i.e. a line that starts from the origin at angle 'a')\n// given an (xp,yp) pair on the 'v0' <-> 'v1' line\n// (N.B. 'v0' and 'v1' are angles in radians)\nfunction findIntersectionXY(v0, v1, a, xpyp) {\n var xstar, ystar;\n\n var xp = xpyp[0];\n var yp = xpyp[1];\n var dsin = clampTiny(Math.sin(v1) - Math.sin(v0));\n var dcos = clampTiny(Math.cos(v1) - Math.cos(v0));\n var tanA = Math.tan(a);\n var cotanA = clampTiny(1 / tanA);\n var m = dsin / dcos;\n var b = yp - m * xp;\n\n if(cotanA) {\n if(dsin && dcos) {\n // given\n // g(x) := v0 -> v1 line = m*x + b\n // h(x) := ray at angle 'a' = m*x = tanA*x\n // solve g(xstar) = h(xstar)\n xstar = b / (tanA - m);\n ystar = tanA * xstar;\n } else if(dcos) {\n // horizontal v0 -> v1\n xstar = yp * cotanA;\n ystar = yp;\n } else {\n // vertical v0 -> v1\n xstar = xp;\n ystar = xp * tanA;\n }\n } else {\n // vertical ray\n if(dsin && dcos) {\n xstar = 0;\n ystar = b;\n } else if(dcos) {\n xstar = 0;\n ystar = yp;\n } else {\n // does this case exists?\n xstar = ystar = NaN;\n }\n }\n\n return [xstar, ystar];\n}\n\n// solves l^2 = (f(x)^2 - yp)^2 + (x - xp)^2\n// rearranged into 0 = a*x^2 + b * x + c\n//\n// where f(x) = m*x + t + yp\n// and (x0, x1) = (-b +/- del) / (2*a)\nfunction findXYatLength(l, m, xp, yp) {\n var t = -m * xp;\n var a = m * m + 1;\n var b = 2 * (m * t - xp);\n var c = t * t + xp * xp - l * l;\n var del = Math.sqrt(b * b - 4 * a * c);\n var x0 = (-b + del) / (2 * a);\n var x1 = (-b - del) / (2 * a);\n return [\n [x0, m * x0 + t + yp],\n [x1, m * x1 + t + yp]\n ];\n}\n\nfunction makeRegularPolygon(r, vangles) {\n var len = vangles.length;\n var vertices = new Array(len + 1);\n var i;\n for(i = 0; i < len; i++) {\n var va = vangles[i];\n vertices[i] = [r * Math.cos(va), r * Math.sin(va)];\n }\n vertices[i] = vertices[0].slice();\n return vertices;\n}\n\nfunction makeClippedPolygon(r, a0, a1, vangles) {\n var len = vangles.length;\n var vertices = [];\n var i, j;\n\n function a2xy(a) {\n return [r * Math.cos(a), r * Math.sin(a)];\n }\n\n function findXY(va0, va1, s) {\n return findIntersectionXY(va0, va1, s, a2xy(va0));\n }\n\n function cycleIndex(ind) {\n return Lib.mod(ind, len);\n }\n\n function isInside(v) {\n return isAngleInsideSector(v, [a0, a1]);\n }\n\n // find index in sector closest to a0\n // use it to find intersection of v[i0] <-> v[i0-1] edge with sector radius\n var i0 = findIndexOfMin(vangles, function(v) {\n return isInside(v) ? angleDist(v, a0) : Infinity;\n });\n var xy0 = findXY(vangles[i0], vangles[cycleIndex(i0 - 1)], a0);\n vertices.push(xy0);\n\n // fill in in-sector vertices\n for(i = i0, j = 0; j < len; i++, j++) {\n var va = vangles[cycleIndex(i)];\n if(!isInside(va)) break;\n vertices.push(a2xy(va));\n }\n\n // find index in sector closest to a1,\n // use it to find intersection of v[iN] <-> v[iN+1] edge with sector radius\n var iN = findIndexOfMin(vangles, function(v) {\n return isInside(v) ? angleDist(v, a1) : Infinity;\n });\n var xyN = findXY(vangles[iN], vangles[cycleIndex(iN + 1)], a1);\n vertices.push(xyN);\n\n vertices.push([0, 0]);\n vertices.push(vertices[0].slice());\n\n return vertices;\n}\n\nfunction makePolygon(r, a0, a1, vangles) {\n return Lib.isFullCircle([a0, a1]) ?\n makeRegularPolygon(r, vangles) :\n makeClippedPolygon(r, a0, a1, vangles);\n}\n\nfunction findPolygonOffset(r, a0, a1, vangles) {\n var minX = Infinity;\n var minY = Infinity;\n var vertices = makePolygon(r, a0, a1, vangles);\n\n for(var i = 0; i < vertices.length; i++) {\n var v = vertices[i];\n minX = Math.min(minX, v[0]);\n minY = Math.min(minY, -v[1]);\n }\n return [minX, minY];\n}\n\n/**\n * find vertex angles (in 'vangles') the enclose angle 'a'\n *\n * @param {number} a : angle in *radians*\n * @param {array} vangles : angles of polygon vertices in *radians*\n * @return {2-item array}\n */\nfunction findEnclosingVertexAngles(a, vangles) {\n var minFn = function(v) {\n var adelta = angleDelta(v, a);\n return adelta > 0 ? adelta : Infinity;\n };\n var i0 = findIndexOfMin(vangles, minFn);\n var i1 = Lib.mod(i0 + 1, vangles.length);\n return [vangles[i0], vangles[i1]];\n}\n\n// to more easily catch 'almost zero' numbers in if-else blocks\nfunction clampTiny(v) {\n return Math.abs(v) > 1e-10 ? v : 0;\n}\n\nfunction transformForSVG(pts0, cx, cy) {\n cx = cx || 0;\n cy = cy || 0;\n\n var len = pts0.length;\n var pts1 = new Array(len);\n\n for(var i = 0; i < len; i++) {\n var pt = pts0[i];\n pts1[i] = [cx + pt[0], cy - pt[1]];\n }\n return pts1;\n}\n\n/**\n * path polygon\n *\n * @param {number} r : polygon 'radius'\n * @param {number} a0 : first angular coordinate in *radians*\n * @param {number} a1 : second angular coordinate in *radians*\n * @param {array} vangles : angles of polygon vertices in *radians*\n * @param {number (optional)} cx : x coordinate of center\n * @param {number (optional)} cy : y coordinate of center\n * @return {string} svg path\n *\n */\nfunction pathPolygon(r, a0, a1, vangles, cx, cy) {\n var poly = makePolygon(r, a0, a1, vangles);\n return 'M' + transformForSVG(poly, cx, cy).join('L');\n}\n\n/**\n * path a polygon 'annulus'\n * i.e. a polygon with a concentric hole\n *\n * N.B. this routine uses the evenodd SVG rule\n *\n * @param {number} r0 : first radial coordinate\n * @param {number} r1 : second radial coordinate\n * @param {number} a0 : first angular coordinate in *radians*\n * @param {number} a1 : second angular coordinate in *radians*\n * @param {array} vangles : angles of polygon vertices in *radians*\n * @param {number (optional)} cx : x coordinate of center\n * @param {number (optional)} cy : y coordinate of center\n * @return {string} svg path\n *\n */\nfunction pathPolygonAnnulus(r0, r1, a0, a1, vangles, cx, cy) {\n var rStart, rEnd;\n\n if(r0 < r1) {\n rStart = r0;\n rEnd = r1;\n } else {\n rStart = r1;\n rEnd = r0;\n }\n\n var inner = transformForSVG(makePolygon(rStart, a0, a1, vangles), cx, cy);\n var outer = transformForSVG(makePolygon(rEnd, a0, a1, vangles), cx, cy);\n return 'M' + outer.reverse().join('L') + 'M' + inner.join('L');\n}\n\nmodule.exports = {\n isPtInsidePolygon: isPtInsidePolygon,\n findPolygonOffset: findPolygonOffset,\n findEnclosingVertexAngles: findEnclosingVertexAngles,\n findIntersectionXY: findIntersectionXY,\n findXYatLength: findXYatLength,\n clampTiny: clampTiny,\n pathPolygon: pathPolygon,\n pathPolygonAnnulus: pathPolygonAnnulus\n};\n\n},{\"../../lib\":503,\"../../lib/polygon\":515}],622:[function(_dereq_,module,exports){\n'use strict';\n\nvar getSubplotCalcData = _dereq_('../get_data').getSubplotCalcData;\nvar counterRegex = _dereq_('../../lib').counterRegex;\n\nvar createPolar = _dereq_('./polar');\nvar constants = _dereq_('./constants');\n\nvar attr = constants.attr;\nvar name = constants.name;\nvar counter = counterRegex(name);\n\nvar attributes = {};\nattributes[attr] = {\n valType: 'subplotid',\n dflt: name,\n editType: 'calc',\n};\n\nfunction plot(gd) {\n var fullLayout = gd._fullLayout;\n var calcData = gd.calcdata;\n var subplotIds = fullLayout._subplots[name];\n\n for(var i = 0; i < subplotIds.length; i++) {\n var id = subplotIds[i];\n var subplotCalcData = getSubplotCalcData(calcData, name, id);\n var subplot = fullLayout[id]._subplot;\n\n if(!subplot) {\n subplot = createPolar(gd, id);\n fullLayout[id]._subplot = subplot;\n }\n\n subplot.plot(subplotCalcData, fullLayout, gd._promises);\n }\n}\n\nfunction clean(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n var oldIds = oldFullLayout._subplots[name] || [];\n var hadGl = (oldFullLayout._has && oldFullLayout._has('gl'));\n var hasGl = (newFullLayout._has && newFullLayout._has('gl'));\n var mustCleanScene = hadGl && !hasGl;\n\n for(var i = 0; i < oldIds.length; i++) {\n var id = oldIds[i];\n var oldSubplot = oldFullLayout[id]._subplot;\n\n if(!newFullLayout[id] && !!oldSubplot) {\n oldSubplot.framework.remove();\n oldSubplot.layers['radial-axis-title'].remove();\n\n for(var k in oldSubplot.clipPaths) {\n oldSubplot.clipPaths[k].remove();\n }\n }\n\n if(mustCleanScene && oldSubplot._scene) {\n oldSubplot._scene.destroy();\n oldSubplot._scene = null;\n }\n }\n}\n\nmodule.exports = {\n attr: attr,\n name: name,\n idRoot: name,\n idRegex: counter,\n attrRegex: counter,\n attributes: attributes,\n layoutAttributes: _dereq_('./layout_attributes'),\n supplyLayoutDefaults: _dereq_('./layout_defaults'),\n plot: plot,\n clean: clean,\n toSVG: _dereq_('../cartesian').toSVG\n};\n\n},{\"../../lib\":503,\"../cartesian\":568,\"../get_data\":593,\"./constants\":620,\"./layout_attributes\":623,\"./layout_defaults\":624,\"./polar\":625}],623:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorAttrs = _dereq_('../../components/color/attributes');\nvar axesAttrs = _dereq_('../cartesian/layout_attributes');\nvar domainAttrs = _dereq_('../domain').attributes;\nvar extendFlat = _dereq_('../../lib').extendFlat;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\n\nvar axisLineGridAttr = overrideAll({\n color: axesAttrs.color,\n showline: extendFlat({}, axesAttrs.showline, {dflt: true}),\n linecolor: axesAttrs.linecolor,\n linewidth: axesAttrs.linewidth,\n showgrid: extendFlat({}, axesAttrs.showgrid, {dflt: true}),\n gridcolor: axesAttrs.gridcolor,\n gridwidth: axesAttrs.gridwidth\n\n // TODO add spike* attributes down the road\n\n // should we add zeroline* attributes?\n\n}, 'plot', 'from-root');\n\nvar axisTickAttrs = overrideAll({\n tickmode: axesAttrs.tickmode,\n nticks: axesAttrs.nticks,\n tick0: axesAttrs.tick0,\n dtick: axesAttrs.dtick,\n tickvals: axesAttrs.tickvals,\n ticktext: axesAttrs.ticktext,\n ticks: axesAttrs.ticks,\n ticklen: axesAttrs.ticklen,\n tickwidth: axesAttrs.tickwidth,\n tickcolor: axesAttrs.tickcolor,\n showticklabels: axesAttrs.showticklabels,\n showtickprefix: axesAttrs.showtickprefix,\n tickprefix: axesAttrs.tickprefix,\n showticksuffix: axesAttrs.showticksuffix,\n ticksuffix: axesAttrs.ticksuffix,\n showexponent: axesAttrs.showexponent,\n exponentformat: axesAttrs.exponentformat,\n minexponent: axesAttrs.minexponent,\n separatethousands: axesAttrs.separatethousands,\n tickfont: axesAttrs.tickfont,\n tickangle: axesAttrs.tickangle,\n tickformat: axesAttrs.tickformat,\n tickformatstops: axesAttrs.tickformatstops,\n layer: axesAttrs.layer\n}, 'plot', 'from-root');\n\nvar radialAxisAttrs = {\n visible: extendFlat({}, axesAttrs.visible, {dflt: true}),\n type: extendFlat({}, axesAttrs.type, {\n values: ['-', 'linear', 'log', 'date', 'category']\n }),\n autotypenumbers: axesAttrs.autotypenumbers,\n\n autorange: extendFlat({}, axesAttrs.autorange, {editType: 'plot'}),\n rangemode: {\n valType: 'enumerated',\n values: ['tozero', 'nonnegative', 'normal'],\n dflt: 'tozero',\n editType: 'calc',\n },\n range: extendFlat({}, axesAttrs.range, {\n items: [\n {valType: 'any', editType: 'plot', impliedEdits: {'^autorange': false}},\n {valType: 'any', editType: 'plot', impliedEdits: {'^autorange': false}}\n ],\n editType: 'plot'\n }),\n\n categoryorder: axesAttrs.categoryorder,\n categoryarray: axesAttrs.categoryarray,\n\n angle: {\n valType: 'angle',\n editType: 'plot',\n },\n\n side: {\n valType: 'enumerated',\n // TODO add 'center' for `showline: false` radial axes\n values: ['clockwise', 'counterclockwise'],\n dflt: 'clockwise',\n editType: 'plot',\n },\n\n\n title: {\n // radial title is not gui-editable at the moment,\n // so it needs dflt: '', similar to carpet axes.\n text: extendFlat({}, axesAttrs.title.text, {editType: 'plot', dflt: ''}),\n font: extendFlat({}, axesAttrs.title.font, {editType: 'plot'}),\n\n // TODO\n // - might need a 'titleside' and even 'titledirection' down the road\n // - what about standoff ??\n\n editType: 'plot'\n },\n\n hoverformat: axesAttrs.hoverformat,\n\n uirevision: {\n valType: 'any',\n editType: 'none',\n },\n\n editType: 'calc',\n\n _deprecated: {\n title: axesAttrs._deprecated.title,\n titlefont: axesAttrs._deprecated.titlefont\n }\n};\n\nextendFlat(\n radialAxisAttrs,\n\n // N.B. radialaxis grid lines are circular,\n // but radialaxis lines are straight from circle center to outer bound\n axisLineGridAttr,\n axisTickAttrs\n);\n\nvar angularAxisAttrs = {\n visible: extendFlat({}, axesAttrs.visible, {dflt: true}),\n type: {\n valType: 'enumerated',\n // 'linear' should maybe be called 'angle' or 'angular' here\n // to make clear that axis here is periodic and more tightly match\n // `thetaunit`?\n //\n // skip 'date' for first push\n // no 'log' for now\n values: ['-', 'linear', 'category'],\n dflt: '-',\n editType: 'calc',\n _noTemplating: true,\n },\n autotypenumbers: axesAttrs.autotypenumbers,\n\n categoryorder: axesAttrs.categoryorder,\n categoryarray: axesAttrs.categoryarray,\n\n thetaunit: {\n valType: 'enumerated',\n values: ['radians', 'degrees'],\n dflt: 'degrees',\n editType: 'calc',\n },\n\n period: {\n valType: 'number',\n editType: 'calc',\n min: 0,\n // Examples for date axes:\n //\n // - period that equals the timeseries length\n // http://flowingdata.com/2017/01/24/one-dataset-visualized-25-ways/18-polar-coordinates/\n // - and 1-year periods (focusing on seasonal change0\n // http://otexts.org/fpp2/seasonal-plots.html\n // https://blogs.scientificamerican.com/sa-visual/why-are-so-many-babies-born-around-8-00-a-m/\n // http://www.seasonaladjustment.com/2012/09/05/clock-plot-visualising-seasonality-using-r-and-ggplot2-part-3/\n // https://i.pinimg.com/736x/49/b9/72/49b972ccb3206a1a6d6f870dac543280.jpg\n // https://www.climate-lab-book.ac.uk/spirals/\n },\n\n direction: {\n valType: 'enumerated',\n values: ['counterclockwise', 'clockwise'],\n dflt: 'counterclockwise',\n editType: 'calc',\n },\n\n rotation: {\n valType: 'angle',\n editType: 'calc',\n },\n\n hoverformat: axesAttrs.hoverformat,\n\n uirevision: {\n valType: 'any',\n editType: 'none',\n },\n\n editType: 'calc'\n};\n\nextendFlat(\n angularAxisAttrs,\n\n // N.B. angular grid lines are straight lines from circle center to outer bound\n // the angular line is circular bounding the polar plot area.\n axisLineGridAttr,\n\n // N.B. ticksuffix defaults to '°' for angular axes with `thetaunit: 'degrees'`\n axisTickAttrs\n);\n\nmodule.exports = {\n // TODO for x/y/zoom system for paper-based zooming:\n // x: {},\n // y: {},\n // zoom: {},\n\n domain: domainAttrs({name: 'polar', editType: 'plot'}),\n\n sector: {\n valType: 'info_array',\n items: [\n {valType: 'number', editType: 'plot'},\n {valType: 'number', editType: 'plot'}\n ],\n dflt: [0, 360],\n editType: 'plot',\n },\n hole: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0,\n editType: 'plot',\n },\n\n bgcolor: {\n valType: 'color',\n editType: 'plot',\n dflt: colorAttrs.background,\n },\n\n radialaxis: radialAxisAttrs,\n angularaxis: angularAxisAttrs,\n\n gridshape: {\n valType: 'enumerated',\n values: ['circular', 'linear'],\n dflt: 'circular',\n editType: 'plot',\n },\n\n // TODO maybe?\n // annotations:\n\n uirevision: {\n valType: 'any',\n editType: 'none',\n },\n\n editType: 'calc'\n};\n\n},{\"../../components/color/attributes\":365,\"../../lib\":503,\"../../plot_api/edit_types\":536,\"../cartesian/layout_attributes\":569,\"../domain\":584}],624:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Color = _dereq_('../../components/color');\nvar Template = _dereq_('../../plot_api/plot_template');\n\nvar handleSubplotDefaults = _dereq_('../subplot_defaults');\nvar getSubplotData = _dereq_('../get_data').getSubplotData;\n\nvar handleTickValueDefaults = _dereq_('../cartesian/tick_value_defaults');\nvar handleTickMarkDefaults = _dereq_('../cartesian/tick_mark_defaults');\nvar handleTickLabelDefaults = _dereq_('../cartesian/tick_label_defaults');\nvar handlePrefixSuffixDefaults = _dereq_('../cartesian/prefix_suffix_defaults');\nvar handleCategoryOrderDefaults = _dereq_('../cartesian/category_order_defaults');\nvar handleLineGridDefaults = _dereq_('../cartesian/line_grid_defaults');\nvar autoType = _dereq_('../cartesian/axis_autotype');\n\nvar layoutAttributes = _dereq_('./layout_attributes');\nvar setConvert = _dereq_('./set_convert');\nvar constants = _dereq_('./constants');\nvar axisNames = constants.axisNames;\n\nfunction handleDefaults(contIn, contOut, coerce, opts) {\n var bgColor = coerce('bgcolor');\n opts.bgColor = Color.combine(bgColor, opts.paper_bgcolor);\n\n var sector = coerce('sector');\n coerce('hole');\n\n // could optimize, subplotData is not always needed!\n var subplotData = getSubplotData(opts.fullData, constants.name, opts.id);\n var layoutOut = opts.layoutOut;\n var axName;\n\n function coerceAxis(attr, dflt) {\n return coerce(axName + '.' + attr, dflt);\n }\n\n for(var i = 0; i < axisNames.length; i++) {\n axName = axisNames[i];\n\n if(!Lib.isPlainObject(contIn[axName])) {\n contIn[axName] = {};\n }\n\n var axIn = contIn[axName];\n var axOut = Template.newContainer(contOut, axName);\n axOut._id = axOut._name = axName;\n axOut._attr = opts.id + '.' + axName;\n axOut._traceIndices = subplotData.map(function(t) { return t._expandedIndex; });\n\n var dataAttr = constants.axisName2dataArray[axName];\n var axType = handleAxisTypeDefaults(axIn, axOut, coerceAxis, subplotData, dataAttr, opts);\n\n handleCategoryOrderDefaults(axIn, axOut, coerceAxis, {\n axData: subplotData,\n dataAttr: dataAttr\n });\n\n var visible = coerceAxis('visible');\n setConvert(axOut, contOut, layoutOut);\n\n coerceAxis('uirevision', contOut.uirevision);\n\n // We don't want to make downstream code call ax.setScale,\n // as both radial and angular axes don't have a set domain.\n // Furthermore, angular axes don't have a set range.\n //\n // Mocked domains and ranges are set by the polar subplot instances,\n // but Axes.findExtremes uses the sign of _m to determine which padding value\n // to use.\n //\n // By setting, _m to 1 here, we make Axes.findExtremes think that\n // range[1] > range[0], and vice-versa for `autorange: 'reversed'` below.\n axOut._m = 1;\n\n switch(axName) {\n case 'radialaxis':\n var autoRange = coerceAxis('autorange', !axOut.isValidRange(axIn.range));\n axIn.autorange = autoRange;\n if(autoRange && (axType === 'linear' || axType === '-')) coerceAxis('rangemode');\n if(autoRange === 'reversed') axOut._m = -1;\n\n coerceAxis('range');\n axOut.cleanRange('range', {dfltRange: [0, 1]});\n break;\n\n case 'angularaxis':\n // We do not support 'true' date angular axes yet,\n // users can still plot dates on angular axes by setting\n // `angularaxis.type: 'category'`.\n //\n // Here, if a date angular axes is detected, we make\n // all its corresponding traces invisible, so that\n // when we do add support for data angular axes, the new\n // behavior won't conflict with existing behavior\n if(axType === 'date') {\n Lib.log('Polar plots do not support date angular axes yet.');\n\n for(var j = 0; j < subplotData.length; j++) {\n subplotData[j].visible = false;\n }\n\n // turn this into a 'dummy' linear axis so that\n // the subplot still renders ok\n axType = axIn.type = axOut.type = 'linear';\n }\n\n if(axType === 'linear') {\n coerceAxis('thetaunit');\n } else {\n coerceAxis('period');\n }\n\n var direction = coerceAxis('direction');\n coerceAxis('rotation', {counterclockwise: 0, clockwise: 90}[direction]);\n break;\n }\n\n handlePrefixSuffixDefaults(axIn, axOut, coerceAxis, axOut.type, {\n tickSuffixDflt: axOut.thetaunit === 'degrees' ? '°' : undefined\n });\n\n if(visible) {\n var dfltColor;\n var dfltFontColor;\n var dfltFontSize;\n var dfltFontFamily;\n var font = opts.font || {};\n\n dfltColor = coerceAxis('color');\n dfltFontColor = (dfltColor === axIn.color) ? dfltColor : font.color;\n dfltFontSize = font.size;\n dfltFontFamily = font.family;\n\n handleTickValueDefaults(axIn, axOut, coerceAxis, axOut.type);\n handleTickLabelDefaults(axIn, axOut, coerceAxis, axOut.type, {\n font: {\n color: dfltFontColor,\n size: dfltFontSize,\n family: dfltFontFamily\n }\n });\n\n handleTickMarkDefaults(axIn, axOut, coerceAxis, {outerTicks: true});\n\n handleLineGridDefaults(axIn, axOut, coerceAxis, {\n dfltColor: dfltColor,\n bgColor: opts.bgColor,\n // default grid color is darker here (60%, vs cartesian default ~91%)\n // because the grid is not square so the eye needs heavier cues to follow\n blend: 60,\n showLine: true,\n showGrid: true,\n noZeroLine: true,\n attributes: layoutAttributes[axName]\n });\n\n coerceAxis('layer');\n\n if(axName === 'radialaxis') {\n coerceAxis('side');\n coerceAxis('angle', sector[0]);\n\n coerceAxis('title.text');\n Lib.coerceFont(coerceAxis, 'title.font', {\n color: dfltFontColor,\n size: Lib.bigFont(dfltFontSize),\n family: dfltFontFamily\n });\n }\n }\n\n if(axType !== 'category') coerceAxis('hoverformat');\n\n axOut._input = axIn;\n }\n\n if(contOut.angularaxis.type === 'category') {\n coerce('gridshape');\n }\n}\n\nfunction handleAxisTypeDefaults(axIn, axOut, coerce, subplotData, dataAttr, options) {\n var autotypenumbers = coerce('autotypenumbers', options.autotypenumbersDflt);\n var axType = coerce('type');\n\n if(axType === '-') {\n var trace;\n\n for(var i = 0; i < subplotData.length; i++) {\n if(subplotData[i].visible) {\n trace = subplotData[i];\n break;\n }\n }\n\n if(trace && trace[dataAttr]) {\n axOut.type = autoType(trace[dataAttr], 'gregorian', {\n noMultiCategory: true,\n autotypenumbers: autotypenumbers\n });\n }\n\n if(axOut.type === '-') {\n axOut.type = 'linear';\n } else {\n // copy autoType back to input axis\n // note that if this object didn't exist\n // in the input layout, we have to put it in\n // this happens in the main supplyDefaults function\n axIn.type = axOut.type;\n }\n }\n\n return axOut.type;\n}\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut, fullData) {\n handleSubplotDefaults(layoutIn, layoutOut, fullData, {\n type: constants.name,\n attributes: layoutAttributes,\n handleDefaults: handleDefaults,\n font: layoutOut.font,\n autotypenumbersDflt: layoutOut.autotypenumbers,\n paper_bgcolor: layoutOut.paper_bgcolor,\n fullData: fullData,\n layoutOut: layoutOut\n });\n};\n\n},{\"../../components/color\":366,\"../../lib\":503,\"../../plot_api/plot_template\":543,\"../cartesian/axis_autotype\":555,\"../cartesian/category_order_defaults\":559,\"../cartesian/line_grid_defaults\":571,\"../cartesian/prefix_suffix_defaults\":573,\"../cartesian/tick_label_defaults\":578,\"../cartesian/tick_mark_defaults\":579,\"../cartesian/tick_value_defaults\":580,\"../get_data\":593,\"../subplot_defaults\":632,\"./constants\":620,\"./layout_attributes\":623,\"./set_convert\":626}],625:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar tinycolor = _dereq_('tinycolor2');\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar strRotate = Lib.strRotate;\nvar strTranslate = Lib.strTranslate;\nvar Color = _dereq_('../../components/color');\nvar Drawing = _dereq_('../../components/drawing');\nvar Plots = _dereq_('../plots');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar setConvertCartesian = _dereq_('../cartesian/set_convert');\nvar setConvertPolar = _dereq_('./set_convert');\nvar doAutoRange = _dereq_('../cartesian/autorange').doAutoRange;\nvar dragBox = _dereq_('../cartesian/dragbox');\nvar dragElement = _dereq_('../../components/dragelement');\nvar Fx = _dereq_('../../components/fx');\nvar Titles = _dereq_('../../components/titles');\nvar prepSelect = _dereq_('../cartesian/select').prepSelect;\nvar selectOnClick = _dereq_('../cartesian/select').selectOnClick;\nvar clearSelect = _dereq_('../cartesian/select').clearSelect;\nvar setCursor = _dereq_('../../lib/setcursor');\nvar clearGlCanvases = _dereq_('../../lib/clear_gl_canvases');\nvar redrawReglTraces = _dereq_('../../plot_api/subroutines').redrawReglTraces;\n\nvar MID_SHIFT = _dereq_('../../constants/alignment').MID_SHIFT;\nvar constants = _dereq_('./constants');\nvar helpers = _dereq_('./helpers');\n\nvar smithHelpers = _dereq_('../smith/helpers');\nvar smith = smithHelpers.smith;\nvar reactanceArc = smithHelpers.reactanceArc;\nvar resistanceArc = smithHelpers.resistanceArc;\nvar smithTransform = smithHelpers.smithTransform;\n\nvar _ = Lib._;\nvar mod = Lib.mod;\nvar deg2rad = Lib.deg2rad;\nvar rad2deg = Lib.rad2deg;\n\nfunction Polar(gd, id, isSmith) {\n this.isSmith = isSmith || false;\n this.id = id;\n this.gd = gd;\n\n this._hasClipOnAxisFalse = null;\n this.vangles = null;\n this.radialAxisAngle = null;\n this.traceHash = {};\n this.layers = {};\n this.clipPaths = {};\n this.clipIds = {};\n this.viewInitial = {};\n\n var fullLayout = gd._fullLayout;\n var clipIdBase = 'clip' + fullLayout._uid + id;\n\n this.clipIds.forTraces = clipIdBase + '-for-traces';\n this.clipPaths.forTraces = fullLayout._clips.append('clipPath')\n .attr('id', this.clipIds.forTraces);\n this.clipPaths.forTraces.append('path');\n\n this.framework = fullLayout['_' + (isSmith ? 'smith' : 'polar') + 'layer'].append('g')\n .attr('class', id);\n\n this.getHole = function(s) {\n return this.isSmith ? 0 : s.hole;\n };\n\n this.getSector = function(s) {\n return this.isSmith ? [0, 360] : s.sector;\n };\n\n this.getRadial = function(s) {\n return this.isSmith ? s.realaxis : s.radialaxis;\n };\n\n this.getAngular = function(s) {\n return this.isSmith ? s.imaginaryaxis : s.angularaxis;\n };\n\n if(!isSmith) {\n // unfortunately, we have to keep track of some axis tick settings\n // as polar subplots do not implement the 'ticks' editType\n this.radialTickLayout = null;\n this.angularTickLayout = null;\n }\n}\n\nvar proto = Polar.prototype;\n\nmodule.exports = function createPolar(gd, id, isSmith) {\n return new Polar(gd, id, isSmith);\n};\n\nproto.plot = function(polarCalcData, fullLayout) {\n var _this = this;\n var polarLayout = fullLayout[_this.id];\n\n var found = false;\n for(var i = 0; i < polarCalcData.length; i++) {\n var trace = polarCalcData[i][0].trace;\n if(trace.cliponaxis === false) {\n found = true;\n break;\n }\n }\n _this._hasClipOnAxisFalse = found;\n\n _this.updateLayers(fullLayout, polarLayout);\n _this.updateLayout(fullLayout, polarLayout);\n Plots.generalUpdatePerTraceModule(_this.gd, _this, polarCalcData, polarLayout);\n _this.updateFx(fullLayout, polarLayout);\n\n if(_this.isSmith) {\n delete polarLayout.realaxis.range;\n delete polarLayout.imaginaryaxis.range;\n }\n};\n\nproto.updateLayers = function(fullLayout, polarLayout) {\n var _this = this;\n var isSmith = _this.isSmith;\n var layers = _this.layers;\n var radialLayout = _this.getRadial(polarLayout);\n var angularLayout = _this.getAngular(polarLayout);\n var layerNames = constants.layerNames;\n\n var frontPlotIndex = layerNames.indexOf('frontplot');\n var layerData = layerNames.slice(0, frontPlotIndex);\n var isAngularAxisBelowTraces = angularLayout.layer === 'below traces';\n var isRadialAxisBelowTraces = radialLayout.layer === 'below traces';\n\n if(isAngularAxisBelowTraces) layerData.push('angular-line');\n if(isRadialAxisBelowTraces) layerData.push('radial-line');\n if(isAngularAxisBelowTraces) layerData.push('angular-axis');\n if(isRadialAxisBelowTraces) layerData.push('radial-axis');\n\n layerData.push('frontplot');\n\n if(!isAngularAxisBelowTraces) layerData.push('angular-line');\n if(!isRadialAxisBelowTraces) layerData.push('radial-line');\n if(!isAngularAxisBelowTraces) layerData.push('angular-axis');\n if(!isRadialAxisBelowTraces) layerData.push('radial-axis');\n\n var subLayer = (isSmith ? 'smith' : 'polar') + 'sublayer';\n\n var join = _this.framework.selectAll('.' + subLayer)\n .data(layerData, String);\n\n join.enter().append('g')\n .attr('class', function(d) { return subLayer + ' ' + d;})\n .each(function(d) {\n var sel = layers[d] = d3.select(this);\n\n switch(d) {\n case 'frontplot':\n // TODO add option to place in 'backplot' layer??\n if(!isSmith) {\n sel.append('g').classed('barlayer', true);\n }\n sel.append('g').classed('scatterlayer', true);\n break;\n case 'backplot':\n sel.append('g').classed('maplayer', true);\n break;\n case 'plotbg':\n layers.bg = sel.append('path');\n break;\n case 'radial-grid':\n sel.style('fill', 'none');\n break;\n case 'angular-grid':\n sel.style('fill', 'none');\n break;\n case 'radial-line':\n sel.append('line').style('fill', 'none');\n break;\n case 'angular-line':\n sel.append('path').style('fill', 'none');\n break;\n }\n });\n\n join.order();\n};\n\n/* Polar subplots juggle with 6 'axis objects' (!), these are:\n *\n * - getRadial(polarLayout) (aka radialLayout in this file):\n * - getAngular(polarLayout) (aka angularLayout in this file):\n * used for data -> calcdata conversions (aka d2c) during the calc step\n *\n * - this.radialAxis\n * extends getRadial(polarLayout), adds mocked 'domain' and\n * few other keys in order to reuse Cartesian doAutoRange and the Axes\n * drawing routines.\n * used for calcdata -> geometric conversions (aka c2g) during the plot step\n * + setGeometry setups ax.c2g for given ax.range\n * + setScale setups ax._m,ax._b for given ax.range\n *\n * - this.angularAxis\n * extends getAngular(polarLayout), adds mocked 'range' and 'domain' and\n * a few other keys in order to reuse the Axes drawing routines.\n * used for calcdata -> geometric conversions (aka c2g) during the plot step\n * + setGeometry setups ax.c2g given ax.rotation, ax.direction & ax._categories,\n * and mocks ax.range\n * + setScale setups ax._m,ax._b with that mocked ax.range\n *\n * - this.xaxis\n * - this.yaxis\n * setup so that polar traces can reuse plot methods of Cartesian traces\n * which mostly rely on 2pixel methods (e.g ax.c2p)\n */\nproto.updateLayout = function(fullLayout, polarLayout) {\n var _this = this;\n var layers = _this.layers;\n var gs = fullLayout._size;\n\n // axis attributes\n var radialLayout = _this.getRadial(polarLayout);\n var angularLayout = _this.getAngular(polarLayout);\n // layout domains\n var xDomain = polarLayout.domain.x;\n var yDomain = polarLayout.domain.y;\n // offsets from paper edge to layout domain box\n _this.xOffset = gs.l + gs.w * xDomain[0];\n _this.yOffset = gs.t + gs.h * (1 - yDomain[1]);\n // lengths of the layout domain box\n var xLength = _this.xLength = gs.w * (xDomain[1] - xDomain[0]);\n var yLength = _this.yLength = gs.h * (yDomain[1] - yDomain[0]);\n // sector to plot\n var sector = _this.getSector(polarLayout);\n _this.sectorInRad = sector.map(deg2rad);\n var sectorBBox = _this.sectorBBox = computeSectorBBox(sector);\n var dxSectorBBox = sectorBBox[2] - sectorBBox[0];\n var dySectorBBox = sectorBBox[3] - sectorBBox[1];\n // aspect ratios\n var arDomain = yLength / xLength;\n var arSector = Math.abs(dySectorBBox / dxSectorBBox);\n // actual lengths and domains of subplot box\n var xLength2, yLength2;\n var xDomain2, yDomain2;\n var gap;\n if(arDomain > arSector) {\n xLength2 = xLength;\n yLength2 = xLength * arSector;\n gap = (yLength - yLength2) / gs.h / 2;\n xDomain2 = [xDomain[0], xDomain[1]];\n yDomain2 = [yDomain[0] + gap, yDomain[1] - gap];\n } else {\n xLength2 = yLength / arSector;\n yLength2 = yLength;\n gap = (xLength - xLength2) / gs.w / 2;\n xDomain2 = [xDomain[0] + gap, xDomain[1] - gap];\n yDomain2 = [yDomain[0], yDomain[1]];\n }\n _this.xLength2 = xLength2;\n _this.yLength2 = yLength2;\n _this.xDomain2 = xDomain2;\n _this.yDomain2 = yDomain2;\n // actual offsets from paper edge to the subplot box top-left corner\n var xOffset2 = _this.xOffset2 = gs.l + gs.w * xDomain2[0];\n var yOffset2 = _this.yOffset2 = gs.t + gs.h * (1 - yDomain2[1]);\n // circle radius in px\n var radius = _this.radius = xLength2 / dxSectorBBox;\n // 'inner' radius in px (when polar.hole is set)\n var innerRadius = _this.innerRadius = _this.getHole(polarLayout) * radius;\n // circle center position in px\n var cx = _this.cx = xOffset2 - radius * sectorBBox[0];\n var cy = _this.cy = yOffset2 + radius * sectorBBox[3];\n // circle center in the coordinate system of plot area\n var cxx = _this.cxx = cx - xOffset2;\n var cyy = _this.cyy = cy - yOffset2;\n\n var side = radialLayout.side;\n var trueSide;\n if(side === 'counterclockwise') {\n trueSide = side;\n side = 'top';\n } else if(side === 'clockwise') {\n trueSide = side;\n side = 'bottom';\n }\n\n _this.radialAxis = _this.mockAxis(fullLayout, polarLayout, radialLayout, {\n // make this an 'x' axis to make positioning (especially rotation) easier\n _id: 'x',\n // convert to 'x' axis equivalent\n side: side,\n // keep track of real side\n _trueSide: trueSide,\n // spans length 1 radius\n domain: [innerRadius / gs.w, radius / gs.w]\n });\n\n _this.angularAxis = _this.mockAxis(fullLayout, polarLayout, angularLayout, {\n side: 'right',\n // to get auto nticks right\n domain: [0, Math.PI],\n // don't pass through autorange logic\n autorange: false\n });\n\n _this.doAutoRange(fullLayout, polarLayout);\n // N.B. this sets _this.vangles\n _this.updateAngularAxis(fullLayout, polarLayout);\n // N.B. this sets _this.radialAxisAngle\n _this.updateRadialAxis(fullLayout, polarLayout);\n _this.updateRadialAxisTitle(fullLayout, polarLayout);\n\n _this.xaxis = _this.mockCartesianAxis(fullLayout, polarLayout, {\n _id: 'x',\n domain: xDomain2\n });\n\n _this.yaxis = _this.mockCartesianAxis(fullLayout, polarLayout, {\n _id: 'y',\n domain: yDomain2\n });\n\n var dPath = _this.pathSubplot();\n\n _this.clipPaths.forTraces.select('path')\n .attr('d', dPath)\n .attr('transform', strTranslate(cxx, cyy));\n\n layers.frontplot\n .attr('transform', strTranslate(xOffset2, yOffset2))\n .call(Drawing.setClipUrl, _this._hasClipOnAxisFalse ? null : _this.clipIds.forTraces, _this.gd);\n\n layers.bg\n .attr('d', dPath)\n .attr('transform', strTranslate(cx, cy))\n .call(Color.fill, polarLayout.bgcolor);\n};\n\nproto.mockAxis = function(fullLayout, polarLayout, axLayout, opts) {\n var ax = Lib.extendFlat({}, axLayout, opts);\n setConvertPolar(ax, polarLayout, fullLayout);\n return ax;\n};\n\nproto.mockCartesianAxis = function(fullLayout, polarLayout, opts) {\n var _this = this;\n var isSmith = _this.isSmith;\n var axId = opts._id;\n\n var ax = Lib.extendFlat({type: 'linear'}, opts);\n setConvertCartesian(ax, fullLayout);\n\n var bboxIndices = {\n x: [0, 2],\n y: [1, 3]\n };\n\n ax.setRange = function() {\n var sectorBBox = _this.sectorBBox;\n var ind = bboxIndices[axId];\n var rl = _this.radialAxis._rl;\n var drl = (rl[1] - rl[0]) / (1 - _this.getHole(polarLayout));\n ax.range = [sectorBBox[ind[0]] * drl, sectorBBox[ind[1]] * drl];\n };\n\n ax.isPtWithinRange = axId === 'x' && !isSmith ?\n function(d) { return _this.isPtInside(d); } :\n function() { return true; };\n\n ax.setRange();\n ax.setScale();\n\n return ax;\n};\n\nproto.doAutoRange = function(fullLayout, polarLayout) {\n var _this = this;\n var gd = _this.gd;\n var radialAxis = _this.radialAxis;\n var radialLayout = _this.getRadial(polarLayout);\n\n doAutoRange(gd, radialAxis);\n\n var rng = radialAxis.range;\n radialLayout.range = rng.slice();\n radialLayout._input.range = rng.slice();\n\n radialAxis._rl = [\n radialAxis.r2l(rng[0], null, 'gregorian'),\n radialAxis.r2l(rng[1], null, 'gregorian')\n ];\n};\n\nproto.updateRadialAxis = function(fullLayout, polarLayout) {\n var _this = this;\n var gd = _this.gd;\n var layers = _this.layers;\n var radius = _this.radius;\n var innerRadius = _this.innerRadius;\n var cx = _this.cx;\n var cy = _this.cy;\n var radialLayout = _this.getRadial(polarLayout);\n var a0 = mod(_this.getSector(polarLayout)[0], 360);\n var ax = _this.radialAxis;\n var hasRoomForIt = innerRadius < radius;\n\n var isSmith = _this.isSmith;\n if(!isSmith) {\n _this.fillViewInitialKey('radialaxis.angle', radialLayout.angle);\n _this.fillViewInitialKey('radialaxis.range', ax.range.slice());\n\n ax.setGeometry();\n }\n\n // rotate auto tick labels by 180 if in quadrant II and III to make them\n // readable from left-to-right\n //\n // TODO try moving deeper in Axes.drawLabels for better results?\n if(ax.tickangle === 'auto' && (a0 > 90 && a0 <= 270)) {\n ax.tickangle = 180;\n }\n\n // easier to set rotate angle with custom translate function\n var transFn = isSmith ?\n function(d) {\n var t = smithTransform(_this, smith([d.x, 0]));\n return strTranslate(t[0] - cx, t[1] - cy);\n } :\n function(d) {\n return strTranslate(ax.l2p(d.x) + innerRadius, 0);\n };\n\n // set special grid path function\n var gridPathFn = isSmith ?\n function(d) {\n return resistanceArc(_this, d.x, -Infinity, Infinity);\n } :\n function(d) {\n return _this.pathArc(ax.r2p(d.x) + innerRadius);\n };\n\n var newTickLayout = strTickLayout(radialLayout);\n if(_this.radialTickLayout !== newTickLayout) {\n layers['radial-axis'].selectAll('.xtick').remove();\n _this.radialTickLayout = newTickLayout;\n }\n\n if(hasRoomForIt) {\n ax.setScale();\n\n var labelShift = 0;\n\n var vals = isSmith ?\n (ax.tickvals || []).filter(function(x) {\n // filter negative\n return x >= 0;\n }).map(function(x) {\n return Axes.tickText(ax, x, true, false);\n }) : Axes.calcTicks(ax);\n\n var valsClipped = isSmith ? vals : Axes.clipEnds(ax, vals);\n var tickSign = Axes.getTickSigns(ax)[2];\n if(isSmith) {\n if(\n (ax.ticks === 'top' && ax.side === 'bottom') ||\n (ax.ticks === 'bottom' && ax.side === 'top')\n ) {\n // invert sign\n tickSign = -tickSign;\n }\n\n if(ax.ticks === 'top' && ax.side === 'top') labelShift = -ax.ticklen;\n if(ax.ticks === 'bottom' && ax.side === 'bottom') labelShift = ax.ticklen;\n }\n\n Axes.drawTicks(gd, ax, {\n vals: vals,\n layer: layers['radial-axis'],\n path: Axes.makeTickPath(ax, 0, tickSign),\n transFn: transFn,\n crisp: false\n });\n\n Axes.drawGrid(gd, ax, {\n vals: valsClipped,\n layer: layers['radial-grid'],\n path: gridPathFn,\n transFn: Lib.noop,\n crisp: false\n });\n\n Axes.drawLabels(gd, ax, {\n vals: vals,\n layer: layers['radial-axis'],\n transFn: transFn,\n labelFns: Axes.makeLabelFns(ax, labelShift)\n });\n }\n\n // stash 'actual' radial axis angle for drag handlers (in degrees)\n var angle = _this.radialAxisAngle = _this.vangles ?\n rad2deg(snapToVertexAngle(deg2rad(radialLayout.angle), _this.vangles)) :\n radialLayout.angle;\n\n var tLayer = strTranslate(cx, cy);\n var tLayer2 = tLayer + strRotate(-angle);\n\n updateElement(\n layers['radial-axis'],\n hasRoomForIt && (radialLayout.showticklabels || radialLayout.ticks),\n {transform: tLayer2}\n );\n\n updateElement(\n layers['radial-grid'],\n hasRoomForIt && radialLayout.showgrid,\n {transform: isSmith ? '' : tLayer}\n );\n\n updateElement(\n layers['radial-line'].select('line'),\n hasRoomForIt && radialLayout.showline,\n {\n x1: isSmith ? -radius : innerRadius,\n y1: 0,\n x2: radius,\n y2: 0,\n transform: tLayer2\n }\n )\n .attr('stroke-width', radialLayout.linewidth)\n .call(Color.stroke, radialLayout.linecolor);\n};\n\nproto.updateRadialAxisTitle = function(fullLayout, polarLayout, _angle) {\n if(this.isSmith) return;\n\n var _this = this;\n var gd = _this.gd;\n var radius = _this.radius;\n var cx = _this.cx;\n var cy = _this.cy;\n var radialLayout = _this.getRadial(polarLayout);\n var titleClass = _this.id + 'title';\n\n var pad = 0;\n\n // Hint: no need to check if there is in fact a title.text set\n // because if plot is editable, pad needs to be calculated anyways\n // to properly show placeholder text when title is empty.\n if(radialLayout.title) {\n var h = Drawing.bBox(_this.layers['radial-axis'].node()).height;\n var ts = radialLayout.title.font.size;\n var side = radialLayout.side;\n pad =\n side === 'top' ? ts :\n side === 'counterclockwise' ?\n -(h + ts * 0.4) :\n h + ts * 0.8;\n }\n\n var angle = _angle !== undefined ? _angle : _this.radialAxisAngle;\n\n var angleRad = deg2rad(angle);\n var cosa = Math.cos(angleRad);\n var sina = Math.sin(angleRad);\n\n var x = cx + (radius / 2) * cosa + pad * sina;\n var y = cy - (radius / 2) * sina + pad * cosa;\n\n _this.layers['radial-axis-title'] = Titles.draw(gd, titleClass, {\n propContainer: radialLayout,\n propName: _this.id + '.radialaxis.title',\n placeholder: _(gd, 'Click to enter radial axis title'),\n attributes: {\n x: x,\n y: y,\n 'text-anchor': 'middle'\n },\n transform: {rotate: -angle}\n });\n};\n\nproto.updateAngularAxis = function(fullLayout, polarLayout) {\n var _this = this;\n var gd = _this.gd;\n var layers = _this.layers;\n var radius = _this.radius;\n var innerRadius = _this.innerRadius;\n var cx = _this.cx;\n var cy = _this.cy;\n var angularLayout = _this.getAngular(polarLayout);\n var ax = _this.angularAxis;\n\n var isSmith = _this.isSmith;\n if(!isSmith) {\n _this.fillViewInitialKey('angularaxis.rotation', angularLayout.rotation);\n\n ax.setGeometry();\n ax.setScale();\n }\n\n // 't'ick to 'g'eometric radians is used all over the place here\n var t2g = isSmith ?\n function(d) {\n var t = smithTransform(_this, smith([0, d.x]));\n return Math.atan2(t[0] - cx, t[1] - cy) - Math.PI / 2;\n } :\n function(d) { return ax.t2g(d.x); };\n\n // run rad2deg on tick0 and ditck for thetaunit: 'radians' axes\n if(ax.type === 'linear' && ax.thetaunit === 'radians') {\n ax.tick0 = rad2deg(ax.tick0);\n ax.dtick = rad2deg(ax.dtick);\n }\n\n var _transFn = function(rad) {\n return strTranslate(cx + radius * Math.cos(rad), cy - radius * Math.sin(rad));\n };\n\n var transFn = isSmith ?\n function(d) {\n var t = smithTransform(_this, smith([0, d.x]));\n return strTranslate(t[0], t[1]);\n } :\n function(d) {\n return _transFn(t2g(d));\n };\n\n var transFn2 = isSmith ?\n function(d) {\n var t = smithTransform(_this, smith([0, d.x]));\n var rad = Math.atan2(t[0] - cx, t[1] - cy) - Math.PI / 2;\n return strTranslate(t[0], t[1]) + strRotate(-rad2deg(rad));\n } :\n function(d) {\n var rad = t2g(d);\n return _transFn(rad) + strRotate(-rad2deg(rad));\n };\n\n var gridPathFn = isSmith ?\n function(d) {\n return reactanceArc(_this, d.x, 0, Infinity);\n } :\n function(d) {\n var rad = t2g(d);\n var cosRad = Math.cos(rad);\n var sinRad = Math.sin(rad);\n return 'M' + [cx + innerRadius * cosRad, cy - innerRadius * sinRad] +\n 'L' + [cx + radius * cosRad, cy - radius * sinRad];\n };\n\n var out = Axes.makeLabelFns(ax, 0);\n var labelStandoff = out.labelStandoff;\n var labelFns = {};\n\n labelFns.xFn = function(d) {\n var rad = t2g(d);\n return Math.cos(rad) * labelStandoff;\n };\n\n labelFns.yFn = function(d) {\n var rad = t2g(d);\n var ff = Math.sin(rad) > 0 ? 0.2 : 1;\n return -Math.sin(rad) * (labelStandoff + d.fontSize * ff) +\n Math.abs(Math.cos(rad)) * (d.fontSize * MID_SHIFT);\n };\n\n labelFns.anchorFn = function(d) {\n var rad = t2g(d);\n var cos = Math.cos(rad);\n return Math.abs(cos) < 0.1 ?\n 'middle' :\n (cos > 0 ? 'start' : 'end');\n };\n\n labelFns.heightFn = function(d, a, h) {\n var rad = t2g(d);\n return -0.5 * (1 + Math.sin(rad)) * h;\n };\n\n var newTickLayout = strTickLayout(angularLayout);\n if(_this.angularTickLayout !== newTickLayout) {\n layers['angular-axis'].selectAll('.' + ax._id + 'tick').remove();\n _this.angularTickLayout = newTickLayout;\n }\n\n var vals = isSmith ?\n [Infinity].concat(ax.tickvals || []).map(function(x) {\n return Axes.tickText(ax, x, true, false);\n }) : Axes.calcTicks(ax);\n\n if(isSmith) {\n vals[0].text = '∞';\n vals[0].fontSize *= 1.75;\n }\n\n // angle of polygon vertices in geometric radians (null means circles)\n // TODO what to do when ax.period > ax._categories ??\n var vangles;\n if(polarLayout.gridshape === 'linear') {\n vangles = vals.map(t2g);\n\n // ax._vals should be always ordered, make them\n // always turn counterclockwise for convenience here\n if(Lib.angleDelta(vangles[0], vangles[1]) < 0) {\n vangles = vangles.slice().reverse();\n }\n } else {\n vangles = null;\n }\n _this.vangles = vangles;\n\n // Use tickval filter for category axes instead of tweaking\n // the range w.r.t sector, so that sectors that cross 360 can\n // show all their ticks.\n if(ax.type === 'category') {\n vals = vals.filter(function(d) {\n return Lib.isAngleInsideSector(t2g(d), _this.sectorInRad);\n });\n }\n\n if(ax.visible) {\n var tickSign = ax.ticks === 'inside' ? -1 : 1;\n\n var pad = (ax.linewidth || 1) / 2;\n\n Axes.drawTicks(gd, ax, {\n vals: vals,\n layer: layers['angular-axis'],\n path: 'M' + (tickSign * pad) + ',0h' + (tickSign * ax.ticklen),\n transFn: transFn2,\n crisp: false\n });\n\n Axes.drawGrid(gd, ax, {\n vals: vals,\n layer: layers['angular-grid'],\n path: gridPathFn,\n transFn: Lib.noop,\n crisp: false\n });\n\n Axes.drawLabels(gd, ax, {\n vals: vals,\n layer: layers['angular-axis'],\n repositionOnUpdate: true,\n transFn: transFn,\n labelFns: labelFns\n });\n }\n\n // TODO maybe two arcs is better here?\n // maybe split style attributes between inner and outer angular axes?\n\n updateElement(layers['angular-line'].select('path'), angularLayout.showline, {\n d: _this.pathSubplot(),\n transform: strTranslate(cx, cy)\n })\n .attr('stroke-width', angularLayout.linewidth)\n .call(Color.stroke, angularLayout.linecolor);\n};\n\nproto.updateFx = function(fullLayout, polarLayout) {\n if(!this.gd._context.staticPlot) {\n var hasDrag = !this.isSmith;\n if(hasDrag) {\n this.updateAngularDrag(fullLayout);\n this.updateRadialDrag(fullLayout, polarLayout, 0);\n this.updateRadialDrag(fullLayout, polarLayout, 1);\n }\n this.updateHoverAndMainDrag(fullLayout);\n }\n};\n\nproto.updateHoverAndMainDrag = function(fullLayout) {\n var _this = this;\n var isSmith = _this.isSmith;\n var gd = _this.gd;\n var layers = _this.layers;\n var zoomlayer = fullLayout._zoomlayer;\n var MINZOOM = constants.MINZOOM;\n var OFFEDGE = constants.OFFEDGE;\n var radius = _this.radius;\n var innerRadius = _this.innerRadius;\n var cx = _this.cx;\n var cy = _this.cy;\n var cxx = _this.cxx;\n var cyy = _this.cyy;\n var sectorInRad = _this.sectorInRad;\n var vangles = _this.vangles;\n var radialAxis = _this.radialAxis;\n var clampTiny = helpers.clampTiny;\n var findXYatLength = helpers.findXYatLength;\n var findEnclosingVertexAngles = helpers.findEnclosingVertexAngles;\n var chw = constants.cornerHalfWidth;\n var chl = constants.cornerLen / 2;\n\n var scaleX;\n var scaleY;\n\n var mainDrag = dragBox.makeDragger(layers, 'path', 'maindrag', 'crosshair');\n\n d3.select(mainDrag)\n .attr('d', _this.pathSubplot())\n .attr('transform', strTranslate(cx, cy));\n\n mainDrag.onmousemove = function(evt) {\n Fx.hover(gd, evt, _this.id);\n gd._fullLayout._lasthover = mainDrag;\n gd._fullLayout._hoversubplot = _this.id;\n };\n\n mainDrag.onmouseout = function(evt) {\n if(gd._dragging) return;\n dragElement.unhover(gd, evt);\n };\n\n var dragOpts = {\n element: mainDrag,\n gd: gd,\n subplot: _this.id,\n plotinfo: {\n id: _this.id,\n xaxis: _this.xaxis,\n yaxis: _this.yaxis\n },\n xaxes: [_this.xaxis],\n yaxes: [_this.yaxis]\n };\n\n // mouse px position at drag start (0), move (1)\n var x0, y0;\n // radial distance from circle center at drag start (0), move (1)\n var r0, r1;\n // zoombox persistent quantities\n var path0, dimmed, lum;\n // zoombox, corners elements\n var zb, corners;\n\n function norm(x, y) {\n return Math.sqrt(x * x + y * y);\n }\n\n function xy2r(x, y) {\n return norm(x - cxx, y - cyy);\n }\n\n function xy2a(x, y) {\n return Math.atan2(cyy - y, x - cxx);\n }\n\n function ra2xy(r, a) {\n return [r * Math.cos(a), r * Math.sin(-a)];\n }\n\n function pathCorner(r, a) {\n if(r === 0) return _this.pathSector(2 * chw);\n\n var da = chl / r;\n var am = a - da;\n var ap = a + da;\n var rb = Math.max(0, Math.min(r, radius));\n var rm = rb - chw;\n var rp = rb + chw;\n\n return 'M' + ra2xy(rm, am) +\n 'A' + [rm, rm] + ' 0,0,0 ' + ra2xy(rm, ap) +\n 'L' + ra2xy(rp, ap) +\n 'A' + [rp, rp] + ' 0,0,1 ' + ra2xy(rp, am) +\n 'Z';\n }\n\n // (x,y) is the pt at middle of the va0 <-> va1 edge\n //\n // ... we could eventually add another mode for cursor\n // angles 'close to' enough to a particular vertex.\n function pathCornerForPolygons(r, va0, va1) {\n if(r === 0) return _this.pathSector(2 * chw);\n\n var xy0 = ra2xy(r, va0);\n var xy1 = ra2xy(r, va1);\n var x = clampTiny((xy0[0] + xy1[0]) / 2);\n var y = clampTiny((xy0[1] + xy1[1]) / 2);\n var innerPts, outerPts;\n\n if(x && y) {\n var m = y / x;\n var mperp = -1 / m;\n var midPts = findXYatLength(chw, m, x, y);\n innerPts = findXYatLength(chl, mperp, midPts[0][0], midPts[0][1]);\n outerPts = findXYatLength(chl, mperp, midPts[1][0], midPts[1][1]);\n } else {\n var dx, dy;\n if(y) {\n // horizontal handles\n dx = chl;\n dy = chw;\n } else {\n // vertical handles\n dx = chw;\n dy = chl;\n }\n innerPts = [[x - dx, y - dy], [x + dx, y - dy]];\n outerPts = [[x - dx, y + dy], [x + dx, y + dy]];\n }\n\n return 'M' + innerPts.join('L') +\n 'L' + outerPts.reverse().join('L') + 'Z';\n }\n\n function zoomPrep() {\n r0 = null;\n r1 = null;\n path0 = _this.pathSubplot();\n dimmed = false;\n\n var polarLayoutNow = gd._fullLayout[_this.id];\n lum = tinycolor(polarLayoutNow.bgcolor).getLuminance();\n\n zb = dragBox.makeZoombox(zoomlayer, lum, cx, cy, path0);\n zb.attr('fill-rule', 'evenodd');\n corners = dragBox.makeCorners(zoomlayer, cx, cy);\n clearSelect(gd);\n }\n\n // N.B. this sets scoped 'r0' and 'r1'\n // return true if 'valid' zoom distance, false otherwise\n function clampAndSetR0R1(rr0, rr1) {\n rr1 = Math.max(Math.min(rr1, radius), innerRadius);\n\n // starting or ending drag near center (outer edge),\n // clamps radial distance at origin (at r=radius)\n if(rr0 < OFFEDGE) rr0 = 0;\n else if((radius - rr0) < OFFEDGE) rr0 = radius;\n else if(rr1 < OFFEDGE) rr1 = 0;\n else if((radius - rr1) < OFFEDGE) rr1 = radius;\n\n // make sure r0 < r1,\n // to get correct fill pattern in path1 below\n if(Math.abs(rr1 - rr0) > MINZOOM) {\n if(rr0 < rr1) {\n r0 = rr0;\n r1 = rr1;\n } else {\n r0 = rr1;\n r1 = rr0;\n }\n return true;\n } else {\n r0 = null;\n r1 = null;\n return false;\n }\n }\n\n function applyZoomMove(path1, cpath) {\n path1 = path1 || path0;\n cpath = cpath || 'M0,0Z';\n\n zb.attr('d', path1);\n corners.attr('d', cpath);\n dragBox.transitionZoombox(zb, corners, dimmed, lum);\n dimmed = true;\n\n var updateObj = {};\n computeZoomUpdates(updateObj);\n gd.emit('plotly_relayouting', updateObj);\n }\n\n function zoomMove(dx, dy) {\n dx = dx * scaleX;\n dy = dy * scaleY;\n\n var x1 = x0 + dx;\n var y1 = y0 + dy;\n\n var rr0 = xy2r(x0, y0);\n var rr1 = Math.min(xy2r(x1, y1), radius);\n var a0 = xy2a(x0, y0);\n var path1;\n var cpath;\n\n if(clampAndSetR0R1(rr0, rr1)) {\n path1 = path0 + _this.pathSector(r1);\n if(r0) path1 += _this.pathSector(r0);\n // keep 'starting' angle\n cpath = pathCorner(r0, a0) + pathCorner(r1, a0);\n }\n applyZoomMove(path1, cpath);\n }\n\n function findPolygonRadius(x, y, va0, va1) {\n var xy = helpers.findIntersectionXY(va0, va1, va0, [x - cxx, cyy - y]);\n return norm(xy[0], xy[1]);\n }\n\n function zoomMoveForPolygons(dx, dy) {\n var x1 = x0 + dx;\n var y1 = y0 + dy;\n var a0 = xy2a(x0, y0);\n var a1 = xy2a(x1, y1);\n var vangles0 = findEnclosingVertexAngles(a0, vangles);\n var vangles1 = findEnclosingVertexAngles(a1, vangles);\n var rr0 = findPolygonRadius(x0, y0, vangles0[0], vangles0[1]);\n var rr1 = Math.min(findPolygonRadius(x1, y1, vangles1[0], vangles1[1]), radius);\n var path1;\n var cpath;\n\n if(clampAndSetR0R1(rr0, rr1)) {\n path1 = path0 + _this.pathSector(r1);\n if(r0) path1 += _this.pathSector(r0);\n // keep 'starting' angle here too\n cpath = [\n pathCornerForPolygons(r0, vangles0[0], vangles0[1]),\n pathCornerForPolygons(r1, vangles0[0], vangles0[1])\n ].join(' ');\n }\n applyZoomMove(path1, cpath);\n }\n\n function zoomDone() {\n dragBox.removeZoombox(gd);\n\n if(r0 === null || r1 === null) return;\n var updateObj = {};\n computeZoomUpdates(updateObj);\n\n dragBox.showDoubleClickNotifier(gd);\n\n Registry.call('_guiRelayout', gd, updateObj);\n }\n\n function computeZoomUpdates(update) {\n var rl = radialAxis._rl;\n var m = (rl[1] - rl[0]) / (1 - innerRadius / radius) / radius;\n var newRng = [\n rl[0] + (r0 - innerRadius) * m,\n rl[0] + (r1 - innerRadius) * m\n ];\n update[_this.id + '.radialaxis.range'] = newRng;\n }\n\n function zoomClick(numClicks, evt) {\n var clickMode = gd._fullLayout.clickmode;\n\n dragBox.removeZoombox(gd);\n\n // TODO double once vs twice logic (autorange vs fixed range)\n if(numClicks === 2) {\n var updateObj = {};\n for(var k in _this.viewInitial) {\n updateObj[_this.id + '.' + k] = _this.viewInitial[k];\n }\n\n gd.emit('plotly_doubleclick', null);\n Registry.call('_guiRelayout', gd, updateObj);\n }\n\n if(clickMode.indexOf('select') > -1 && numClicks === 1) {\n selectOnClick(evt, gd, [_this.xaxis], [_this.yaxis], _this.id, dragOpts);\n }\n\n if(clickMode.indexOf('event') > -1) {\n Fx.click(gd, evt, _this.id);\n }\n }\n\n dragOpts.prepFn = function(evt, startX, startY) {\n var dragModeNow = gd._fullLayout.dragmode;\n\n var bbox = mainDrag.getBoundingClientRect();\n gd._fullLayout._calcInverseTransform(gd);\n var inverse = gd._fullLayout._invTransform;\n scaleX = gd._fullLayout._invScaleX;\n scaleY = gd._fullLayout._invScaleY;\n var transformedCoords = Lib.apply3DTransform(inverse)(startX - bbox.left, startY - bbox.top);\n x0 = transformedCoords[0];\n y0 = transformedCoords[1];\n\n // need to offset x/y as bbox center does not\n // match origin for asymmetric polygons\n if(vangles) {\n var offset = helpers.findPolygonOffset(radius, sectorInRad[0], sectorInRad[1], vangles);\n x0 += cxx + offset[0];\n y0 += cyy + offset[1];\n }\n\n switch(dragModeNow) {\n case 'zoom':\n dragOpts.clickFn = zoomClick;\n\n if(!isSmith) {\n if(vangles) {\n dragOpts.moveFn = zoomMoveForPolygons;\n } else {\n dragOpts.moveFn = zoomMove;\n }\n\n dragOpts.doneFn = zoomDone;\n zoomPrep(evt, startX, startY);\n }\n break;\n case 'select':\n case 'lasso':\n prepSelect(evt, startX, startY, dragOpts, dragModeNow);\n break;\n }\n };\n\n dragElement.init(dragOpts);\n};\n\nproto.updateRadialDrag = function(fullLayout, polarLayout, rngIndex) {\n var _this = this;\n var gd = _this.gd;\n var layers = _this.layers;\n var radius = _this.radius;\n var innerRadius = _this.innerRadius;\n var cx = _this.cx;\n var cy = _this.cy;\n var radialAxis = _this.radialAxis;\n var bl = constants.radialDragBoxSize;\n var bl2 = bl / 2;\n\n if(!radialAxis.visible) return;\n\n var angle0 = deg2rad(_this.radialAxisAngle);\n var rl = radialAxis._rl;\n var rl0 = rl[0];\n var rl1 = rl[1];\n var rbase = rl[rngIndex];\n var m = 0.75 * (rl[1] - rl[0]) / (1 - _this.getHole(polarLayout)) / radius;\n\n var tx, ty, className;\n if(rngIndex) {\n tx = cx + (radius + bl2) * Math.cos(angle0);\n ty = cy - (radius + bl2) * Math.sin(angle0);\n className = 'radialdrag';\n } else {\n // the 'inner' box can get called:\n // - when polar.hole>0\n // - when polar.sector isn't a full circle\n // otherwise it is hidden behind the main drag.\n tx = cx + (innerRadius - bl2) * Math.cos(angle0);\n ty = cy - (innerRadius - bl2) * Math.sin(angle0);\n className = 'radialdrag-inner';\n }\n\n var radialDrag = dragBox.makeRectDragger(layers, className, 'crosshair', -bl2, -bl2, bl, bl);\n var dragOpts = {element: radialDrag, gd: gd};\n\n updateElement(d3.select(radialDrag), radialAxis.visible && innerRadius < radius, {\n transform: strTranslate(tx, ty)\n });\n\n // move function (either rotate or re-range flavor)\n var moveFn2;\n // rotate angle on done\n var angle1;\n // re-range range[1] (or range[0]) on done\n var rprime;\n\n function moveFn(dx, dy) {\n if(moveFn2) {\n moveFn2(dx, dy);\n } else {\n var dvec = [dx, -dy];\n var rvec = [Math.cos(angle0), Math.sin(angle0)];\n var comp = Math.abs(Lib.dot(dvec, rvec) / Math.sqrt(Lib.dot(dvec, dvec)));\n\n // mostly perpendicular motions rotate,\n // mostly parallel motions re-range\n if(!isNaN(comp)) {\n moveFn2 = comp < 0.5 ? rotateMove : rerangeMove;\n }\n }\n\n var update = {};\n computeRadialAxisUpdates(update);\n gd.emit('plotly_relayouting', update);\n }\n\n function computeRadialAxisUpdates(update) {\n if(angle1 !== null) {\n update[_this.id + '.radialaxis.angle'] = angle1;\n } else if(rprime !== null) {\n update[_this.id + '.radialaxis.range[' + rngIndex + ']'] = rprime;\n }\n }\n\n function doneFn() {\n if(angle1 !== null) {\n Registry.call('_guiRelayout', gd, _this.id + '.radialaxis.angle', angle1);\n } else if(rprime !== null) {\n Registry.call('_guiRelayout', gd, _this.id + '.radialaxis.range[' + rngIndex + ']', rprime);\n }\n }\n\n function rotateMove(dx, dy) {\n // disable for inner drag boxes\n if(rngIndex === 0) return;\n\n var x1 = tx + dx;\n var y1 = ty + dy;\n\n angle1 = Math.atan2(cy - y1, x1 - cx);\n if(_this.vangles) angle1 = snapToVertexAngle(angle1, _this.vangles);\n angle1 = rad2deg(angle1);\n\n var transform = strTranslate(cx, cy) + strRotate(-angle1);\n layers['radial-axis'].attr('transform', transform);\n layers['radial-line'].select('line').attr('transform', transform);\n\n var fullLayoutNow = _this.gd._fullLayout;\n var polarLayoutNow = fullLayoutNow[_this.id];\n _this.updateRadialAxisTitle(fullLayoutNow, polarLayoutNow, angle1);\n }\n\n function rerangeMove(dx, dy) {\n // project (dx, dy) unto unit radial axis vector\n var dr = Lib.dot([dx, -dy], [Math.cos(angle0), Math.sin(angle0)]);\n rprime = rbase - m * dr;\n\n // make sure rprime does not change the range[0] -> range[1] sign\n if((m > 0) !== (rngIndex ? rprime > rl0 : rprime < rl1)) {\n rprime = null;\n return;\n }\n\n var fullLayoutNow = gd._fullLayout;\n var polarLayoutNow = fullLayoutNow[_this.id];\n\n // update radial range -> update c2g -> update _m,_b\n radialAxis.range[rngIndex] = rprime;\n radialAxis._rl[rngIndex] = rprime;\n _this.updateRadialAxis(fullLayoutNow, polarLayoutNow);\n\n _this.xaxis.setRange();\n _this.xaxis.setScale();\n _this.yaxis.setRange();\n _this.yaxis.setScale();\n\n var hasRegl = false;\n\n for(var traceType in _this.traceHash) {\n var moduleCalcData = _this.traceHash[traceType];\n var moduleCalcDataVisible = Lib.filterVisible(moduleCalcData);\n var _module = moduleCalcData[0][0].trace._module;\n _module.plot(gd, _this, moduleCalcDataVisible, polarLayoutNow);\n if(Registry.traceIs(traceType, 'gl') && moduleCalcDataVisible.length) hasRegl = true;\n }\n\n if(hasRegl) {\n clearGlCanvases(gd);\n redrawReglTraces(gd);\n }\n }\n\n dragOpts.prepFn = function() {\n moveFn2 = null;\n angle1 = null;\n rprime = null;\n\n dragOpts.moveFn = moveFn;\n dragOpts.doneFn = doneFn;\n\n clearSelect(gd);\n };\n\n dragOpts.clampFn = function(dx, dy) {\n if(Math.sqrt(dx * dx + dy * dy) < constants.MINDRAG) {\n dx = 0;\n dy = 0;\n }\n return [dx, dy];\n };\n\n dragElement.init(dragOpts);\n};\n\nproto.updateAngularDrag = function(fullLayout) {\n var _this = this;\n var gd = _this.gd;\n var layers = _this.layers;\n var radius = _this.radius;\n var angularAxis = _this.angularAxis;\n var cx = _this.cx;\n var cy = _this.cy;\n var cxx = _this.cxx;\n var cyy = _this.cyy;\n var dbs = constants.angularDragBoxSize;\n\n var angularDrag = dragBox.makeDragger(layers, 'path', 'angulardrag', 'move');\n var dragOpts = {element: angularDrag, gd: gd};\n\n d3.select(angularDrag)\n .attr('d', _this.pathAnnulus(radius, radius + dbs))\n .attr('transform', strTranslate(cx, cy))\n .call(setCursor, 'move');\n\n function xy2a(x, y) {\n return Math.atan2(cyy + dbs - y, x - cxx - dbs);\n }\n\n // scatter trace, points and textpoints selections\n var scatterTraces = layers.frontplot.select('.scatterlayer').selectAll('.trace');\n var scatterPoints = scatterTraces.selectAll('.point');\n var scatterTextPoints = scatterTraces.selectAll('.textpoint');\n\n // mouse px position at drag start (0), move (1)\n var x0, y0;\n // angular axis angle rotation at drag start (0), move (1)\n var rot0, rot1;\n // induced radial axis rotation (only used on polygon grids)\n var rrot1;\n // angle about circle center at drag start\n var a0;\n\n function moveFn(dx, dy) {\n var fullLayoutNow = _this.gd._fullLayout;\n var polarLayoutNow = fullLayoutNow[_this.id];\n\n var x1 = x0 + dx * fullLayout._invScaleX;\n var y1 = y0 + dy * fullLayout._invScaleY;\n var a1 = xy2a(x1, y1);\n var da = rad2deg(a1 - a0);\n rot1 = rot0 + da;\n\n layers.frontplot.attr('transform',\n strTranslate(_this.xOffset2, _this.yOffset2) + strRotate([-da, cxx, cyy])\n );\n\n if(_this.vangles) {\n rrot1 = _this.radialAxisAngle + da;\n\n var trans = strTranslate(cx, cy) + strRotate(-da);\n var trans2 = strTranslate(cx, cy) + strRotate(-rrot1);\n\n layers.bg.attr('transform', trans);\n layers['radial-grid'].attr('transform', trans);\n layers['radial-axis'].attr('transform', trans2);\n layers['radial-line'].select('line').attr('transform', trans2);\n _this.updateRadialAxisTitle(fullLayoutNow, polarLayoutNow, rrot1);\n } else {\n _this.clipPaths.forTraces.select('path').attr('transform',\n strTranslate(cxx, cyy) + strRotate(da)\n );\n }\n\n // 'un-rotate' marker and text points\n scatterPoints.each(function() {\n var sel = d3.select(this);\n var xy = Drawing.getTranslate(sel);\n sel.attr('transform', strTranslate(xy.x, xy.y) + strRotate([da]));\n });\n scatterTextPoints.each(function() {\n var sel = d3.select(this);\n var tx = sel.select('text');\n var xy = Drawing.getTranslate(sel);\n // N.B rotate -> translate ordering matters\n sel.attr('transform', strRotate([da, tx.attr('x'), tx.attr('y')]) + strTranslate(xy.x, xy.y));\n });\n\n // update rotation -> range -> _m,_b\n angularAxis.rotation = Lib.modHalf(rot1, 360);\n _this.updateAngularAxis(fullLayoutNow, polarLayoutNow);\n\n if(_this._hasClipOnAxisFalse && !Lib.isFullCircle(_this.sectorInRad)) {\n scatterTraces.call(Drawing.hideOutsideRangePoints, _this);\n }\n\n var hasRegl = false;\n\n for(var traceType in _this.traceHash) {\n if(Registry.traceIs(traceType, 'gl')) {\n var moduleCalcData = _this.traceHash[traceType];\n var moduleCalcDataVisible = Lib.filterVisible(moduleCalcData);\n var _module = moduleCalcData[0][0].trace._module;\n _module.plot(gd, _this, moduleCalcDataVisible, polarLayoutNow);\n if(moduleCalcDataVisible.length) hasRegl = true;\n }\n }\n\n if(hasRegl) {\n clearGlCanvases(gd);\n redrawReglTraces(gd);\n }\n\n var update = {};\n computeRotationUpdates(update);\n gd.emit('plotly_relayouting', update);\n }\n\n function computeRotationUpdates(updateObj) {\n updateObj[_this.id + '.angularaxis.rotation'] = rot1;\n\n if(_this.vangles) {\n updateObj[_this.id + '.radialaxis.angle'] = rrot1;\n }\n }\n\n function doneFn() {\n scatterTextPoints.select('text').attr('transform', null);\n\n var updateObj = {};\n computeRotationUpdates(updateObj);\n Registry.call('_guiRelayout', gd, updateObj);\n }\n\n dragOpts.prepFn = function(evt, startX, startY) {\n var polarLayoutNow = fullLayout[_this.id];\n rot0 = polarLayoutNow.angularaxis.rotation;\n\n var bbox = angularDrag.getBoundingClientRect();\n x0 = startX - bbox.left;\n y0 = startY - bbox.top;\n\n gd._fullLayout._calcInverseTransform(gd);\n var transformedCoords = Lib.apply3DTransform(fullLayout._invTransform)(x0, y0);\n x0 = transformedCoords[0];\n y0 = transformedCoords[1];\n\n a0 = xy2a(x0, y0);\n\n dragOpts.moveFn = moveFn;\n dragOpts.doneFn = doneFn;\n\n clearSelect(gd);\n };\n\n // I don't what we should do in this case, skip we now\n if(_this.vangles && !Lib.isFullCircle(_this.sectorInRad)) {\n dragOpts.prepFn = Lib.noop;\n setCursor(d3.select(angularDrag), null);\n }\n\n dragElement.init(dragOpts);\n};\n\nproto.isPtInside = function(d) {\n if(this.isSmith) return true;\n\n var sectorInRad = this.sectorInRad;\n var vangles = this.vangles;\n var thetag = this.angularAxis.c2g(d.theta);\n var radialAxis = this.radialAxis;\n var r = radialAxis.c2l(d.r);\n var rl = radialAxis._rl;\n\n var fn = vangles ? helpers.isPtInsidePolygon : Lib.isPtInsideSector;\n return fn(r, thetag, rl, sectorInRad, vangles);\n};\n\nproto.pathArc = function(r) {\n var sectorInRad = this.sectorInRad;\n var vangles = this.vangles;\n var fn = vangles ? helpers.pathPolygon : Lib.pathArc;\n return fn(r, sectorInRad[0], sectorInRad[1], vangles);\n};\n\nproto.pathSector = function(r) {\n var sectorInRad = this.sectorInRad;\n var vangles = this.vangles;\n var fn = vangles ? helpers.pathPolygon : Lib.pathSector;\n return fn(r, sectorInRad[0], sectorInRad[1], vangles);\n};\n\nproto.pathAnnulus = function(r0, r1) {\n var sectorInRad = this.sectorInRad;\n var vangles = this.vangles;\n var fn = vangles ? helpers.pathPolygonAnnulus : Lib.pathAnnulus;\n return fn(r0, r1, sectorInRad[0], sectorInRad[1], vangles);\n};\n\nproto.pathSubplot = function() {\n var r0 = this.innerRadius;\n var r1 = this.radius;\n return r0 ? this.pathAnnulus(r0, r1) : this.pathSector(r1);\n};\n\nproto.fillViewInitialKey = function(key, val) {\n if(!(key in this.viewInitial)) {\n this.viewInitial[key] = val;\n }\n};\n\nfunction strTickLayout(axLayout) {\n var out = axLayout.ticks + String(axLayout.ticklen) + String(axLayout.showticklabels);\n if('side' in axLayout) out += axLayout.side;\n return out;\n}\n\n// Finds the bounding box of a given circle sector,\n// inspired by https://math.stackexchange.com/q/1852703\n//\n// assumes:\n// - sector[0] < sector[1]\n// - counterclockwise rotation\nfunction computeSectorBBox(sector) {\n var s0 = sector[0];\n var s1 = sector[1];\n var arc = s1 - s0;\n var a0 = mod(s0, 360);\n var a1 = a0 + arc;\n\n var ax0 = Math.cos(deg2rad(a0));\n var ay0 = Math.sin(deg2rad(a0));\n var ax1 = Math.cos(deg2rad(a1));\n var ay1 = Math.sin(deg2rad(a1));\n\n var x0, y0, x1, y1;\n\n if((a0 <= 90 && a1 >= 90) || (a0 > 90 && a1 >= 450)) {\n y1 = 1;\n } else if(ay0 <= 0 && ay1 <= 0) {\n y1 = 0;\n } else {\n y1 = Math.max(ay0, ay1);\n }\n\n if((a0 <= 180 && a1 >= 180) || (a0 > 180 && a1 >= 540)) {\n x0 = -1;\n } else if(ax0 >= 0 && ax1 >= 0) {\n x0 = 0;\n } else {\n x0 = Math.min(ax0, ax1);\n }\n\n if((a0 <= 270 && a1 >= 270) || (a0 > 270 && a1 >= 630)) {\n y0 = -1;\n } else if(ay0 >= 0 && ay1 >= 0) {\n y0 = 0;\n } else {\n y0 = Math.min(ay0, ay1);\n }\n\n if(a1 >= 360) {\n x1 = 1;\n } else if(ax0 <= 0 && ax1 <= 0) {\n x1 = 0;\n } else {\n x1 = Math.max(ax0, ax1);\n }\n\n return [x0, y0, x1, y1];\n}\n\nfunction snapToVertexAngle(a, vangles) {\n var fn = function(v) { return Lib.angleDist(a, v); };\n var ind = Lib.findIndexOfMin(vangles, fn);\n return vangles[ind];\n}\n\nfunction updateElement(sel, showAttr, attrs) {\n if(showAttr) {\n sel.attr('display', null);\n sel.attr(attrs);\n } else if(sel) {\n sel.attr('display', 'none');\n }\n return sel;\n}\n\n},{\"../../components/color\":366,\"../../components/dragelement\":385,\"../../components/drawing\":388,\"../../components/fx\":406,\"../../components/titles\":464,\"../../constants/alignment\":471,\"../../lib\":503,\"../../lib/clear_gl_canvases\":487,\"../../lib/setcursor\":524,\"../../plot_api/subroutines\":544,\"../../plots/cartesian/axes\":554,\"../../registry\":638,\"../cartesian/autorange\":553,\"../cartesian/dragbox\":563,\"../cartesian/select\":575,\"../cartesian/set_convert\":576,\"../plots\":619,\"../smith/helpers\":628,\"./constants\":620,\"./helpers\":621,\"./set_convert\":626,\"@plotly/d3\":58,\"tinycolor2\":312}],626:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar setConvertCartesian = _dereq_('../cartesian/set_convert');\n\nvar deg2rad = Lib.deg2rad;\nvar rad2deg = Lib.rad2deg;\n\n/**\n * setConvert for polar axes!\n *\n * @param {object} ax\n * axis in question (works for both radial and angular axes)\n * @param {object} polarLayout\n * full polar layout of the subplot associated with 'ax'\n * @param {object} fullLayout\n * full layout\n *\n * Here, reuse some of the Cartesian setConvert logic,\n * but we must extend some of it, as both radial and angular axes\n * don't have domains and angular axes don't have _true_ ranges.\n *\n * Moreover, we introduce two new coordinate systems:\n * - 'g' for geometric coordinates and\n * - 't' for angular ticks\n *\n * Radial axis coordinate systems:\n * - d, c and l: same as for cartesian axes\n * - g: like calcdata but translated about `radialaxis.range[0]` & `polar.hole`\n *\n * Angular axis coordinate systems:\n * - d: data, in whatever form it's provided\n * - c: calcdata, turned into radians (for linear axes)\n * or category indices (category axes)\n * - t: tick calcdata, just like 'c' but in degrees for linear axes\n * - g: geometric calcdata, radians coordinates that take into account\n * axis rotation and direction\n *\n * Then, 'g'eometric data is ready to be converted to (x,y).\n */\nmodule.exports = function setConvert(ax, polarLayout, fullLayout) {\n setConvertCartesian(ax, fullLayout);\n\n switch(ax._id) {\n case 'x':\n case 'radialaxis':\n setConvertRadial(ax, polarLayout);\n break;\n case 'angularaxis':\n setConvertAngular(ax, polarLayout);\n break;\n }\n};\n\nfunction setConvertRadial(ax, polarLayout) {\n var subplot = polarLayout._subplot;\n\n ax.setGeometry = function() {\n var rl0 = ax._rl[0];\n var rl1 = ax._rl[1];\n\n var b = subplot.innerRadius;\n var m = (subplot.radius - b) / (rl1 - rl0);\n var b2 = b / m;\n\n var rFilter = rl0 > rl1 ?\n function(v) { return v <= 0; } :\n function(v) { return v >= 0; };\n\n ax.c2g = function(v) {\n var r = ax.c2l(v) - rl0;\n return (rFilter(r) ? r : 0) + b2;\n };\n\n ax.g2c = function(v) {\n return ax.l2c(v + rl0 - b2);\n };\n\n ax.g2p = function(v) { return v * m; };\n ax.c2p = function(v) { return ax.g2p(ax.c2g(v)); };\n };\n}\n\nfunction toRadians(v, unit) {\n return unit === 'degrees' ? deg2rad(v) : v;\n}\n\nfunction fromRadians(v, unit) {\n return unit === 'degrees' ? rad2deg(v) : v;\n}\n\nfunction setConvertAngular(ax, polarLayout) {\n var axType = ax.type;\n\n if(axType === 'linear') {\n var _d2c = ax.d2c;\n var _c2d = ax.c2d;\n\n ax.d2c = function(v, unit) { return toRadians(_d2c(v), unit); };\n ax.c2d = function(v, unit) { return _c2d(fromRadians(v, unit)); };\n }\n\n // override makeCalcdata to handle thetaunit and special theta0/dtheta logic\n ax.makeCalcdata = function(trace, coord) {\n var arrayIn = trace[coord];\n var len = trace._length;\n var arrayOut, i;\n\n var _d2c = function(v) { return ax.d2c(v, trace.thetaunit); };\n\n if(arrayIn) {\n if(Lib.isTypedArray(arrayIn) && axType === 'linear') {\n if(len === arrayIn.length) {\n return arrayIn;\n } else if(arrayIn.subarray) {\n return arrayIn.subarray(0, len);\n }\n }\n\n arrayOut = new Array(len);\n for(i = 0; i < len; i++) {\n arrayOut[i] = _d2c(arrayIn[i]);\n }\n } else {\n var coord0 = coord + '0';\n var dcoord = 'd' + coord;\n var v0 = (coord0 in trace) ? _d2c(trace[coord0]) : 0;\n var dv = (trace[dcoord]) ? _d2c(trace[dcoord]) : (ax.period || 2 * Math.PI) / len;\n\n arrayOut = new Array(len);\n for(i = 0; i < len; i++) {\n arrayOut[i] = v0 + i * dv;\n }\n }\n\n return arrayOut;\n };\n\n // N.B. we mock the axis 'range' here\n ax.setGeometry = function() {\n var sector = polarLayout.sector;\n var sectorInRad = sector.map(deg2rad);\n var dir = {clockwise: -1, counterclockwise: 1}[ax.direction];\n var rot = deg2rad(ax.rotation);\n\n var rad2g = function(v) { return dir * v + rot; };\n var g2rad = function(v) { return (v - rot) / dir; };\n\n var rad2c, c2rad;\n var rad2t, t2rad;\n\n switch(axType) {\n case 'linear':\n c2rad = rad2c = Lib.identity;\n t2rad = deg2rad;\n rad2t = rad2deg;\n\n // Set the angular range in degrees to make auto-tick computation cleaner,\n // changing rotation/direction should not affect the angular tick value.\n ax.range = Lib.isFullCircle(sectorInRad) ?\n [sector[0], sector[0] + 360] :\n sectorInRad.map(g2rad).map(rad2deg);\n break;\n\n case 'category':\n var catLen = ax._categories.length;\n var _period = ax.period ? Math.max(ax.period, catLen) : catLen;\n\n // fallback in case all categories have been filtered out\n if(_period === 0) _period = 1;\n\n c2rad = t2rad = function(v) { return v * 2 * Math.PI / _period; };\n rad2c = rad2t = function(v) { return v * _period / Math.PI / 2; };\n\n ax.range = [0, _period];\n break;\n }\n\n ax.c2g = function(v) { return rad2g(c2rad(v)); };\n ax.g2c = function(v) { return rad2c(g2rad(v)); };\n\n ax.t2g = function(v) { return rad2g(t2rad(v)); };\n ax.g2t = function(v) { return rad2t(g2rad(v)); };\n };\n}\n\n},{\"../../lib\":503,\"../cartesian/set_convert\":576}],627:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attr: 'subplot',\n name: 'smith',\n\n axisNames: [\n 'realaxis',\n 'imaginaryaxis' // imaginary axis should be second here so that the `tickvals` defaults could be inherited from realaxis\n ],\n axisName2dataArray: {imaginaryaxis: 'imag', realaxis: 'real'},\n};\n\n},{}],628:[function(_dereq_,module,exports){\n'use strict';\n\nfunction sign(x) {\n return (\n x < 0 ? -1 :\n x > 0 ? 1 : 0\n );\n}\n\n// adapted from Mike Bostock's https://observablehq.com/@mbostock/smith-chart\nfunction smith(a) {\n var R = a[0];\n var X = a[1];\n\n if(!isFinite(R) || !isFinite(X)) return [1, 0];\n\n var D = (R + 1) * (R + 1) + X * X;\n return [(R * R + X * X - 1) / D, 2 * X / D];\n}\n\nfunction transform(subplot, a) {\n var x = a[0];\n var y = a[1];\n\n return [\n x * subplot.radius + subplot.cx,\n -y * subplot.radius + subplot.cy\n ];\n}\n\nfunction scale(subplot, r) {\n return r * subplot.radius;\n}\n\nfunction reactanceArc(subplot, X, R1, R2) {\n var t1 = transform(subplot, smith([R1, X]));\n var x1 = t1[0];\n var y1 = t1[1];\n\n var t2 = transform(subplot, smith([R2, X]));\n var x2 = t2[0];\n var y2 = t2[1];\n\n if(X === 0) {\n return [\n 'M' + x1 + ',' + y1,\n 'L' + x2 + ',' + y2\n ].join(' ');\n }\n\n var r = scale(subplot, 1 / Math.abs(X));\n\n return [\n 'M' + x1 + ',' + y1,\n 'A' + r + ',' + r + ' 0 0,' + (X < 0 ? 1 : 0) + ' ' + x2 + ',' + y2\n ].join(' ');\n}\n\nfunction resistanceArc(subplot, R, X1, X2) {\n var r = scale(subplot, 1 / (R + 1));\n\n var t1 = transform(subplot, smith([R, X1]));\n var x1 = t1[0];\n var y1 = t1[1];\n\n var t2 = transform(subplot, smith([R, X2]));\n var x2 = t2[0];\n var y2 = t2[1];\n\n if(sign(X1) !== sign(X2)) {\n var t0 = transform(subplot, smith([R, 0]));\n var x0 = t0[0];\n var y0 = t0[1];\n\n return [\n 'M' + x1 + ',' + y1,\n 'A' + r + ',' + r + ' 0 0,' + (0 < X1 ? 0 : 1) + ' ' + x0 + ',' + y0,\n 'A' + r + ',' + r + ' 0 0,' + (X2 < 0 ? 0 : 1) + x2 + ',' + y2,\n ].join(' ');\n }\n\n return [\n 'M' + x1 + ',' + y1,\n 'A' + r + ',' + r + ' 0 0,' + (X2 < X1 ? 0 : 1) + ' ' + x2 + ',' + y2\n ].join(' ');\n}\n\nmodule.exports = {\n smith: smith,\n reactanceArc: reactanceArc,\n resistanceArc: resistanceArc,\n smithTransform: transform\n};\n\n},{}],629:[function(_dereq_,module,exports){\n'use strict';\n\nvar getSubplotCalcData = _dereq_('../get_data').getSubplotCalcData;\nvar counterRegex = _dereq_('../../lib').counterRegex;\n\nvar createPolar = _dereq_('../polar/polar');\nvar constants = _dereq_('./constants');\n\nvar attr = constants.attr;\nvar name = constants.name;\nvar counter = counterRegex(name);\n\nvar attributes = {};\nattributes[attr] = {\n valType: 'subplotid',\n dflt: name,\n editType: 'calc',\n};\n\nfunction plot(gd) {\n var fullLayout = gd._fullLayout;\n var calcData = gd.calcdata;\n var subplotIds = fullLayout._subplots[name];\n\n for(var i = 0; i < subplotIds.length; i++) {\n var id = subplotIds[i];\n var subplotCalcData = getSubplotCalcData(calcData, name, id);\n var subplot = fullLayout[id]._subplot;\n\n if(!subplot) {\n subplot = createPolar(gd, id, true);\n fullLayout[id]._subplot = subplot;\n }\n\n subplot.plot(subplotCalcData, fullLayout, gd._promises);\n }\n}\n\nfunction clean(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n var oldIds = oldFullLayout._subplots[name] || [];\n for(var i = 0; i < oldIds.length; i++) {\n var id = oldIds[i];\n var oldSubplot = oldFullLayout[id]._subplot;\n\n if(!newFullLayout[id] && !!oldSubplot) {\n oldSubplot.framework.remove();\n\n for(var k in oldSubplot.clipPaths) {\n oldSubplot.clipPaths[k].remove();\n }\n }\n }\n}\n\nmodule.exports = {\n attr: attr,\n name: name,\n idRoot: name,\n idRegex: counter,\n attrRegex: counter,\n attributes: attributes,\n layoutAttributes: _dereq_('./layout_attributes'),\n supplyLayoutDefaults: _dereq_('./layout_defaults'),\n plot: plot,\n clean: clean,\n toSVG: _dereq_('../cartesian').toSVG\n};\n\n},{\"../../lib\":503,\"../cartesian\":568,\"../get_data\":593,\"../polar/polar\":625,\"./constants\":627,\"./layout_attributes\":630,\"./layout_defaults\":631}],630:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorAttrs = _dereq_('../../components/color/attributes');\nvar axesAttrs = _dereq_('../cartesian/layout_attributes');\nvar domainAttrs = _dereq_('../domain').attributes;\nvar extendFlat = _dereq_('../../lib').extendFlat;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\n\nvar axisLineGridAttr = overrideAll({\n color: axesAttrs.color,\n showline: extendFlat({}, axesAttrs.showline, {dflt: true}),\n linecolor: axesAttrs.linecolor,\n linewidth: axesAttrs.linewidth,\n showgrid: extendFlat({}, axesAttrs.showgrid, {dflt: true}),\n gridcolor: axesAttrs.gridcolor,\n gridwidth: axesAttrs.gridwidth\n}, 'plot', 'from-root');\n\nvar axisTickAttrs = overrideAll({\n ticklen: axesAttrs.ticklen,\n tickwidth: extendFlat({}, axesAttrs.tickwidth, {dflt: 2}),\n tickcolor: axesAttrs.tickcolor,\n showticklabels: axesAttrs.showticklabels,\n showtickprefix: axesAttrs.showtickprefix,\n tickprefix: axesAttrs.tickprefix,\n showticksuffix: axesAttrs.showticksuffix,\n ticksuffix: axesAttrs.ticksuffix,\n tickfont: axesAttrs.tickfont,\n tickformat: axesAttrs.tickformat,\n hoverformat: axesAttrs.hoverformat,\n layer: axesAttrs.layer\n}, 'plot', 'from-root');\n\nvar realAxisAttrs = extendFlat({\n visible: extendFlat({}, axesAttrs.visible, {dflt: true}),\n\n tickvals: {\n dflt: [0.2, 0.5, 1, 2, 5],\n valType: 'data_array',\n editType: 'plot',\n },\n\n tickangle: extendFlat({}, axesAttrs.tickangle, {dflt: 90}),\n\n ticks: {\n valType: 'enumerated',\n values: ['top', 'bottom', ''],\n editType: 'ticks',\n },\n\n side: {\n valType: 'enumerated',\n values: ['top', 'bottom'],\n dflt: 'top',\n editType: 'plot',\n },\n\n editType: 'calc',\n}, axisLineGridAttr, axisTickAttrs);\n\nvar imaginaryAxisAttrs = extendFlat({\n visible: extendFlat({}, axesAttrs.visible, {dflt: true}),\n\n tickvals: {\n valType: 'data_array',\n editType: 'plot',\n },\n\n ticks: axesAttrs.ticks,\n\n editType: 'calc'\n}, axisLineGridAttr, axisTickAttrs);\n\nmodule.exports = {\n domain: domainAttrs({name: 'smith', editType: 'plot'}),\n\n bgcolor: {\n valType: 'color',\n editType: 'plot',\n dflt: colorAttrs.background,\n },\n\n realaxis: realAxisAttrs,\n imaginaryaxis: imaginaryAxisAttrs,\n\n editType: 'calc'\n};\n\n},{\"../../components/color/attributes\":365,\"../../lib\":503,\"../../plot_api/edit_types\":536,\"../cartesian/layout_attributes\":569,\"../domain\":584}],631:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Color = _dereq_('../../components/color');\nvar Template = _dereq_('../../plot_api/plot_template');\n\nvar handleSubplotDefaults = _dereq_('../subplot_defaults');\nvar getSubplotData = _dereq_('../get_data').getSubplotData;\n\nvar handlePrefixSuffixDefaults = _dereq_('../cartesian/prefix_suffix_defaults');\nvar handleTickLabelDefaults = _dereq_('../cartesian/tick_label_defaults');\nvar handleLineGridDefaults = _dereq_('../cartesian/line_grid_defaults');\nvar setConvertCartesian = _dereq_('../cartesian/set_convert');\n\nvar layoutAttributes = _dereq_('./layout_attributes');\nvar constants = _dereq_('./constants');\nvar axisNames = constants.axisNames;\n\nvar makeImagDflt = memoize(function(realTickvals) {\n return realTickvals.slice().reverse().map(function(x) { return -x; })\n .concat([0])\n .concat(realTickvals);\n}, String);\n\nfunction handleDefaults(contIn, contOut, coerce, opts) {\n var bgColor = coerce('bgcolor');\n opts.bgColor = Color.combine(bgColor, opts.paper_bgcolor);\n\n var subplotData = getSubplotData(opts.fullData, constants.name, opts.id);\n var layoutOut = opts.layoutOut;\n var axName;\n\n function coerceAxis(attr, dflt) {\n return coerce(axName + '.' + attr, dflt);\n }\n\n for(var i = 0; i < axisNames.length; i++) {\n axName = axisNames[i];\n\n if(!Lib.isPlainObject(contIn[axName])) {\n contIn[axName] = {};\n }\n\n var axIn = contIn[axName];\n var axOut = Template.newContainer(contOut, axName);\n axOut._id = axOut._name = axName;\n axOut._attr = opts.id + '.' + axName;\n axOut._traceIndices = subplotData.map(function(t) { return t._expandedIndex; });\n\n var visible = coerceAxis('visible');\n\n axOut.type = 'linear';\n setConvertCartesian(axOut, layoutOut);\n\n handlePrefixSuffixDefaults(axIn, axOut, coerceAxis, axOut.type);\n\n if(visible) {\n var isRealAxis = axName === 'realaxis';\n if(isRealAxis) coerceAxis('side');\n\n if(isRealAxis) {\n coerceAxis('tickvals');\n } else {\n var imagTickvalsDflt = makeImagDflt(\n contOut.realaxis.tickvals ||\n layoutAttributes.realaxis.tickvals.dflt\n );\n\n coerceAxis('tickvals', imagTickvalsDflt);\n }\n\n var dfltColor;\n var dfltFontColor;\n var dfltFontSize;\n var dfltFontFamily;\n var font = opts.font || {};\n\n if(visible) {\n dfltColor = coerceAxis('color');\n dfltFontColor = (dfltColor === axIn.color) ? dfltColor : font.color;\n dfltFontSize = font.size;\n dfltFontFamily = font.family;\n }\n\n handleTickLabelDefaults(axIn, axOut, coerceAxis, axOut.type, {\n noAng: !isRealAxis,\n noExp: true,\n font: {\n color: dfltFontColor,\n size: dfltFontSize,\n family: dfltFontFamily\n }\n });\n\n Lib.coerce2(contIn, contOut, layoutAttributes, axName + '.ticklen');\n Lib.coerce2(contIn, contOut, layoutAttributes, axName + '.tickwidth');\n Lib.coerce2(contIn, contOut, layoutAttributes, axName + '.tickcolor', contOut.color);\n var showTicks = coerceAxis('ticks');\n if(!showTicks) {\n delete contOut[axName].ticklen;\n delete contOut[axName].tickwidth;\n delete contOut[axName].tickcolor;\n }\n\n handleLineGridDefaults(axIn, axOut, coerceAxis, {\n dfltColor: dfltColor,\n bgColor: opts.bgColor,\n // default grid color is darker here (60%, vs cartesian default ~91%)\n // because the grid is not square so the eye needs heavier cues to follow\n blend: 60,\n showLine: true,\n showGrid: true,\n noZeroLine: true,\n attributes: layoutAttributes[axName]\n });\n\n coerceAxis('layer');\n }\n\n coerceAxis('hoverformat');\n\n delete axOut.type;\n\n axOut._input = axIn;\n }\n}\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut, fullData) {\n handleSubplotDefaults(layoutIn, layoutOut, fullData, {\n noUirevision: true,\n type: constants.name,\n attributes: layoutAttributes,\n handleDefaults: handleDefaults,\n font: layoutOut.font,\n paper_bgcolor: layoutOut.paper_bgcolor,\n fullData: fullData,\n layoutOut: layoutOut\n });\n};\n\nfunction memoize(fn, keyFn) {\n var cache = {};\n return function(val) {\n var newKey = keyFn ? keyFn(val) : val;\n if(newKey in cache) { return cache[newKey]; }\n\n var out = fn(val);\n cache[newKey] = out;\n return out;\n };\n}\n\n},{\"../../components/color\":366,\"../../lib\":503,\"../../plot_api/plot_template\":543,\"../cartesian/line_grid_defaults\":571,\"../cartesian/prefix_suffix_defaults\":573,\"../cartesian/set_convert\":576,\"../cartesian/tick_label_defaults\":578,\"../get_data\":593,\"../subplot_defaults\":632,\"./constants\":627,\"./layout_attributes\":630}],632:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../lib');\nvar Template = _dereq_('../plot_api/plot_template');\nvar handleDomainDefaults = _dereq_('./domain').defaults;\n\n\n/**\n * Find and supply defaults to all subplots of a given type\n * This handles subplots that are contained within one container - so\n * gl3d, geo, ternary... but not 2d axes which have separate x and y axes\n * finds subplots, coerces their `domain` attributes, then calls the\n * given handleDefaults function to fill in everything else.\n *\n * layoutIn: the complete user-supplied input layout\n * layoutOut: the complete finished layout\n * fullData: the finished data array, used only to find subplots\n * opts: {\n * type: subplot type string\n * attributes: subplot attributes object\n * partition: 'x' or 'y', which direction to divide domain space by default\n * (default 'x', ie side-by-side subplots)\n * TODO: this option is only here because 3D and geo made opposite\n * choices in this regard previously and I didn't want to change it.\n * Instead we should do:\n * - something consistent\n * - something more square (4 cuts 2x2, 5/6 cuts 2x3, etc.)\n * - something that includes all subplot types in one arrangement,\n * now that we can have them together!\n * handleDefaults: function of (subplotLayoutIn, subplotLayoutOut, coerce, opts)\n * this opts object is passed through to handleDefaults, so attach any\n * additional items needed by this function here as well\n * }\n */\nmodule.exports = function handleSubplotDefaults(layoutIn, layoutOut, fullData, opts) {\n var subplotType = opts.type;\n var subplotAttributes = opts.attributes;\n var handleDefaults = opts.handleDefaults;\n var partition = opts.partition || 'x';\n\n var ids = layoutOut._subplots[subplotType];\n var idsLength = ids.length;\n\n var baseId = idsLength && ids[0].replace(/\\d+$/, '');\n\n var subplotLayoutIn, subplotLayoutOut;\n\n function coerce(attr, dflt) {\n return Lib.coerce(subplotLayoutIn, subplotLayoutOut, subplotAttributes, attr, dflt);\n }\n\n for(var i = 0; i < idsLength; i++) {\n var id = ids[i];\n\n // ternary traces get a layout ternary for free!\n if(layoutIn[id]) subplotLayoutIn = layoutIn[id];\n else subplotLayoutIn = layoutIn[id] = {};\n\n subplotLayoutOut = Template.newContainer(layoutOut, id, baseId);\n\n if(!opts.noUirevision) coerce('uirevision', layoutOut.uirevision);\n\n var dfltDomains = {};\n dfltDomains[partition] = [i / idsLength, (i + 1) / idsLength];\n handleDomainDefaults(subplotLayoutOut, layoutOut, coerce, dfltDomains);\n\n opts.id = id;\n handleDefaults(subplotLayoutIn, subplotLayoutOut, coerce, opts);\n }\n};\n\n},{\"../lib\":503,\"../plot_api/plot_template\":543,\"./domain\":584}],633:[function(_dereq_,module,exports){\n'use strict';\n\nvar docs = _dereq_('../constants/docs');\nvar FORMAT_LINK = docs.FORMAT_LINK;\nvar DATE_FORMAT_LINK = docs.DATE_FORMAT_LINK;\n\nfunction templateFormatStringDescription(opts) {\n var supportOther = opts && opts.supportOther;\n\n return [\n 'Variables are inserted using %{variable},',\n 'for example \"y: %{y}\"' + (\n supportOther ?\n ' as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.' :\n '.'\n ),\n 'Numbers are formatted using d3-format\\'s syntax %{variable:d3-format}, for example \"Price: %{y:$.2f}\".',\n FORMAT_LINK,\n 'for details on the formatting syntax.',\n 'Dates are formatted using d3-time-format\\'s syntax %{variable|d3-time-format}, for example \"Day: %{2019-01-01|%A}\".',\n DATE_FORMAT_LINK,\n 'for details on the date formatting syntax.'\n ].join(' ');\n}\n\nfunction describeVariables(extra) {\n var descPart = extra.description ? ' ' + extra.description : '';\n var keys = extra.keys || [];\n if(keys.length > 0) {\n var quotedKeys = [];\n for(var i = 0; i < keys.length; i++) {\n quotedKeys[i] = '`' + keys[i] + '`';\n }\n descPart = descPart + 'Finally, the template string has access to ';\n if(keys.length === 1) {\n descPart = 'variable ' + quotedKeys[0];\n } else {\n descPart = 'variables ' + quotedKeys.slice(0, -1).join(', ') + ' and ' + quotedKeys.slice(-1) + '.';\n }\n }\n return descPart;\n}\n\nexports.hovertemplateAttrs = function(opts, extra) {\n opts = opts || {};\n extra = extra || {};\n\n var descPart = describeVariables(extra);\n\n var hovertemplate = {\n valType: 'string',\n dflt: '',\n editType: opts.editType || 'none',\n };\n\n if(opts.arrayOk !== false) {\n hovertemplate.arrayOk = true;\n }\n\n return hovertemplate;\n};\n\nexports.texttemplateAttrs = function(opts, extra) {\n opts = opts || {};\n extra = extra || {};\n\n var descPart = describeVariables(extra);\n\n var texttemplate = {\n valType: 'string',\n dflt: '',\n editType: opts.editType || 'calc',\n };\n\n if(opts.arrayOk !== false) {\n texttemplate.arrayOk = true;\n }\n return texttemplate;\n};\n\n},{\"../constants/docs\":474}],634:[function(_dereq_,module,exports){\n'use strict';\n\nvar Ternary = _dereq_('./ternary');\n\nvar getSubplotCalcData = _dereq_('../../plots/get_data').getSubplotCalcData;\nvar counterRegex = _dereq_('../../lib').counterRegex;\nvar TERNARY = 'ternary';\n\nexports.name = TERNARY;\n\nvar attr = exports.attr = 'subplot';\n\nexports.idRoot = TERNARY;\n\nexports.idRegex = exports.attrRegex = counterRegex(TERNARY);\n\nvar attributes = exports.attributes = {};\nattributes[attr] = {\n valType: 'subplotid',\n dflt: 'ternary',\n editType: 'calc',\n};\n\nexports.layoutAttributes = _dereq_('./layout_attributes');\n\nexports.supplyLayoutDefaults = _dereq_('./layout_defaults');\n\nexports.plot = function plot(gd) {\n var fullLayout = gd._fullLayout;\n var calcData = gd.calcdata;\n var ternaryIds = fullLayout._subplots[TERNARY];\n\n for(var i = 0; i < ternaryIds.length; i++) {\n var ternaryId = ternaryIds[i];\n var ternaryCalcData = getSubplotCalcData(calcData, TERNARY, ternaryId);\n var ternary = fullLayout[ternaryId]._subplot;\n\n // If ternary is not instantiated, create one!\n if(!ternary) {\n ternary = new Ternary({\n id: ternaryId,\n graphDiv: gd,\n container: fullLayout._ternarylayer.node()\n },\n fullLayout\n );\n\n fullLayout[ternaryId]._subplot = ternary;\n }\n\n ternary.plot(ternaryCalcData, fullLayout, gd._promises);\n }\n};\n\nexports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n var oldTernaryKeys = oldFullLayout._subplots[TERNARY] || [];\n\n for(var i = 0; i < oldTernaryKeys.length; i++) {\n var oldTernaryKey = oldTernaryKeys[i];\n var oldTernary = oldFullLayout[oldTernaryKey]._subplot;\n\n if(!newFullLayout[oldTernaryKey] && !!oldTernary) {\n oldTernary.plotContainer.remove();\n oldTernary.clipDef.remove();\n oldTernary.clipDefRelative.remove();\n oldTernary.layers['a-title'].remove();\n oldTernary.layers['b-title'].remove();\n oldTernary.layers['c-title'].remove();\n }\n }\n};\n\n},{\"../../lib\":503,\"../../plots/get_data\":593,\"./layout_attributes\":635,\"./layout_defaults\":636,\"./ternary\":637}],635:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorAttrs = _dereq_('../../components/color/attributes');\nvar domainAttrs = _dereq_('../domain').attributes;\nvar axesAttrs = _dereq_('../cartesian/layout_attributes');\n\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nvar ternaryAxesAttrs = {\n title: {\n text: axesAttrs.title.text,\n font: axesAttrs.title.font\n // TODO does standoff here make sense?\n },\n color: axesAttrs.color,\n // ticks\n tickmode: axesAttrs.tickmode,\n nticks: extendFlat({}, axesAttrs.nticks, {dflt: 6, min: 1}),\n tick0: axesAttrs.tick0,\n dtick: axesAttrs.dtick,\n tickvals: axesAttrs.tickvals,\n ticktext: axesAttrs.ticktext,\n ticks: axesAttrs.ticks,\n ticklen: axesAttrs.ticklen,\n tickwidth: axesAttrs.tickwidth,\n tickcolor: axesAttrs.tickcolor,\n showticklabels: axesAttrs.showticklabels,\n showtickprefix: axesAttrs.showtickprefix,\n tickprefix: axesAttrs.tickprefix,\n showticksuffix: axesAttrs.showticksuffix,\n ticksuffix: axesAttrs.ticksuffix,\n showexponent: axesAttrs.showexponent,\n exponentformat: axesAttrs.exponentformat,\n minexponent: axesAttrs.minexponent,\n separatethousands: axesAttrs.separatethousands,\n tickfont: axesAttrs.tickfont,\n tickangle: axesAttrs.tickangle,\n tickformat: axesAttrs.tickformat,\n tickformatstops: axesAttrs.tickformatstops,\n hoverformat: axesAttrs.hoverformat,\n // lines and grids\n showline: extendFlat({}, axesAttrs.showline, {dflt: true}),\n linecolor: axesAttrs.linecolor,\n linewidth: axesAttrs.linewidth,\n showgrid: extendFlat({}, axesAttrs.showgrid, {dflt: true}),\n gridcolor: axesAttrs.gridcolor,\n gridwidth: axesAttrs.gridwidth,\n layer: axesAttrs.layer,\n // range\n min: {\n valType: 'number',\n dflt: 0,\n min: 0,\n },\n _deprecated: {\n title: axesAttrs._deprecated.title,\n titlefont: axesAttrs._deprecated.titlefont\n }\n};\n\nvar attrs = module.exports = overrideAll({\n domain: domainAttrs({name: 'ternary'}),\n\n bgcolor: {\n valType: 'color',\n dflt: colorAttrs.background,\n },\n sum: {\n valType: 'number',\n dflt: 1,\n min: 0,\n },\n aaxis: ternaryAxesAttrs,\n baxis: ternaryAxesAttrs,\n caxis: ternaryAxesAttrs\n}, 'plot', 'from-root');\n\n// set uirevisions outside of `overrideAll` so we can get `editType: none`\nattrs.uirevision = {\n valType: 'any',\n editType: 'none',\n};\n\nattrs.aaxis.uirevision = attrs.baxis.uirevision = attrs.caxis.uirevision = {\n valType: 'any',\n editType: 'none',\n};\n\n},{\"../../components/color/attributes\":365,\"../../lib/extend\":493,\"../../plot_api/edit_types\":536,\"../cartesian/layout_attributes\":569,\"../domain\":584}],636:[function(_dereq_,module,exports){\n'use strict';\n\nvar Color = _dereq_('../../components/color');\nvar Template = _dereq_('../../plot_api/plot_template');\nvar Lib = _dereq_('../../lib');\n\nvar handleSubplotDefaults = _dereq_('../subplot_defaults');\nvar handleTickLabelDefaults = _dereq_('../cartesian/tick_label_defaults');\nvar handlePrefixSuffixDefaults = _dereq_('../cartesian/prefix_suffix_defaults');\nvar handleTickMarkDefaults = _dereq_('../cartesian/tick_mark_defaults');\nvar handleTickValueDefaults = _dereq_('../cartesian/tick_value_defaults');\nvar handleLineGridDefaults = _dereq_('../cartesian/line_grid_defaults');\nvar layoutAttributes = _dereq_('./layout_attributes');\n\nvar axesNames = ['aaxis', 'baxis', 'caxis'];\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut, fullData) {\n handleSubplotDefaults(layoutIn, layoutOut, fullData, {\n type: 'ternary',\n attributes: layoutAttributes,\n handleDefaults: handleTernaryDefaults,\n font: layoutOut.font,\n paper_bgcolor: layoutOut.paper_bgcolor\n });\n};\n\nfunction handleTernaryDefaults(ternaryLayoutIn, ternaryLayoutOut, coerce, options) {\n var bgColor = coerce('bgcolor');\n var sum = coerce('sum');\n options.bgColor = Color.combine(bgColor, options.paper_bgcolor);\n var axName, containerIn, containerOut;\n\n // TODO: allow most (if not all) axis attributes to be set\n // in the outer container and used as defaults in the individual axes?\n\n for(var j = 0; j < axesNames.length; j++) {\n axName = axesNames[j];\n containerIn = ternaryLayoutIn[axName] || {};\n containerOut = Template.newContainer(ternaryLayoutOut, axName);\n containerOut._name = axName;\n\n handleAxisDefaults(containerIn, containerOut, options, ternaryLayoutOut);\n }\n\n // if the min values contradict each other, set them all to default (0)\n // and delete *all* the inputs so the user doesn't get confused later by\n // changing one and having them all change.\n var aaxis = ternaryLayoutOut.aaxis;\n var baxis = ternaryLayoutOut.baxis;\n var caxis = ternaryLayoutOut.caxis;\n if(aaxis.min + baxis.min + caxis.min >= sum) {\n aaxis.min = 0;\n baxis.min = 0;\n caxis.min = 0;\n if(ternaryLayoutIn.aaxis) delete ternaryLayoutIn.aaxis.min;\n if(ternaryLayoutIn.baxis) delete ternaryLayoutIn.baxis.min;\n if(ternaryLayoutIn.caxis) delete ternaryLayoutIn.caxis.min;\n }\n}\n\nfunction handleAxisDefaults(containerIn, containerOut, options, ternaryLayoutOut) {\n var axAttrs = layoutAttributes[containerOut._name];\n\n function coerce(attr, dflt) {\n return Lib.coerce(containerIn, containerOut, axAttrs, attr, dflt);\n }\n\n coerce('uirevision', ternaryLayoutOut.uirevision);\n\n containerOut.type = 'linear'; // no other types allowed for ternary\n\n var dfltColor = coerce('color');\n // if axis.color was provided, use it for fonts too; otherwise,\n // inherit from global font color in case that was provided.\n var dfltFontColor = (dfltColor !== axAttrs.color.dflt) ? dfltColor : options.font.color;\n\n var axName = containerOut._name;\n var letterUpper = axName.charAt(0).toUpperCase();\n var dfltTitle = 'Component ' + letterUpper;\n\n var title = coerce('title.text', dfltTitle);\n containerOut._hovertitle = title === dfltTitle ? title : letterUpper;\n\n Lib.coerceFont(coerce, 'title.font', {\n family: options.font.family,\n size: Lib.bigFont(options.font.size),\n color: dfltFontColor\n });\n\n // range is just set by 'min' - max is determined by the other axes mins\n coerce('min');\n\n handleTickValueDefaults(containerIn, containerOut, coerce, 'linear');\n handlePrefixSuffixDefaults(containerIn, containerOut, coerce, 'linear');\n handleTickLabelDefaults(containerIn, containerOut, coerce, 'linear');\n handleTickMarkDefaults(containerIn, containerOut, coerce,\n { outerTicks: true });\n\n var showTickLabels = coerce('showticklabels');\n if(showTickLabels) {\n Lib.coerceFont(coerce, 'tickfont', {\n family: options.font.family,\n size: options.font.size,\n color: dfltFontColor\n });\n coerce('tickangle');\n coerce('tickformat');\n }\n\n handleLineGridDefaults(containerIn, containerOut, coerce, {\n dfltColor: dfltColor,\n bgColor: options.bgColor,\n // default grid color is darker here (60%, vs cartesian default ~91%)\n // because the grid is not square so the eye needs heavier cues to follow\n blend: 60,\n showLine: true,\n showGrid: true,\n noZeroLine: true,\n attributes: axAttrs\n });\n\n coerce('hoverformat');\n coerce('layer');\n}\n\n},{\"../../components/color\":366,\"../../lib\":503,\"../../plot_api/plot_template\":543,\"../cartesian/line_grid_defaults\":571,\"../cartesian/prefix_suffix_defaults\":573,\"../cartesian/tick_label_defaults\":578,\"../cartesian/tick_mark_defaults\":579,\"../cartesian/tick_value_defaults\":580,\"../subplot_defaults\":632,\"./layout_attributes\":635}],637:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar tinycolor = _dereq_('tinycolor2');\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar strTranslate = Lib.strTranslate;\nvar _ = Lib._;\nvar Color = _dereq_('../../components/color');\nvar Drawing = _dereq_('../../components/drawing');\nvar setConvert = _dereq_('../cartesian/set_convert');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar Plots = _dereq_('../plots');\nvar Axes = _dereq_('../cartesian/axes');\nvar dragElement = _dereq_('../../components/dragelement');\nvar Fx = _dereq_('../../components/fx');\nvar dragHelpers = _dereq_('../../components/dragelement/helpers');\nvar freeMode = dragHelpers.freeMode;\nvar rectMode = dragHelpers.rectMode;\nvar Titles = _dereq_('../../components/titles');\nvar prepSelect = _dereq_('../cartesian/select').prepSelect;\nvar selectOnClick = _dereq_('../cartesian/select').selectOnClick;\nvar clearSelect = _dereq_('../cartesian/select').clearSelect;\nvar clearSelectionsCache = _dereq_('../cartesian/select').clearSelectionsCache;\nvar constants = _dereq_('../cartesian/constants');\n\nfunction Ternary(options, fullLayout) {\n this.id = options.id;\n this.graphDiv = options.graphDiv;\n this.init(fullLayout);\n this.makeFramework(fullLayout);\n\n // unfortunately, we have to keep track of some axis tick settings\n // as ternary subplots do not implement the 'ticks' editType\n this.aTickLayout = null;\n this.bTickLayout = null;\n this.cTickLayout = null;\n}\n\nmodule.exports = Ternary;\n\nvar proto = Ternary.prototype;\n\nproto.init = function(fullLayout) {\n this.container = fullLayout._ternarylayer;\n this.defs = fullLayout._defs;\n this.layoutId = fullLayout._uid;\n this.traceHash = {};\n this.layers = {};\n};\n\nproto.plot = function(ternaryCalcData, fullLayout) {\n var _this = this;\n var ternaryLayout = fullLayout[_this.id];\n var graphSize = fullLayout._size;\n\n _this._hasClipOnAxisFalse = false;\n for(var i = 0; i < ternaryCalcData.length; i++) {\n var trace = ternaryCalcData[i][0].trace;\n\n if(trace.cliponaxis === false) {\n _this._hasClipOnAxisFalse = true;\n break;\n }\n }\n\n _this.updateLayers(ternaryLayout);\n _this.adjustLayout(ternaryLayout, graphSize);\n Plots.generalUpdatePerTraceModule(_this.graphDiv, _this, ternaryCalcData, ternaryLayout);\n _this.layers.plotbg.select('path').call(Color.fill, ternaryLayout.bgcolor);\n};\n\nproto.makeFramework = function(fullLayout) {\n var _this = this;\n var gd = _this.graphDiv;\n var ternaryLayout = fullLayout[_this.id];\n\n var clipId = _this.clipId = 'clip' + _this.layoutId + _this.id;\n var clipIdRelative = _this.clipIdRelative = 'clip-relative' + _this.layoutId + _this.id;\n\n // clippath for this ternary subplot\n _this.clipDef = Lib.ensureSingleById(fullLayout._clips, 'clipPath', clipId, function(s) {\n s.append('path').attr('d', 'M0,0Z');\n });\n\n // 'relative' clippath (i.e. no translation) for this ternary subplot\n _this.clipDefRelative = Lib.ensureSingleById(fullLayout._clips, 'clipPath', clipIdRelative, function(s) {\n s.append('path').attr('d', 'M0,0Z');\n });\n\n // container for everything in this ternary subplot\n _this.plotContainer = Lib.ensureSingle(_this.container, 'g', _this.id);\n _this.updateLayers(ternaryLayout);\n\n Drawing.setClipUrl(_this.layers.backplot, clipId, gd);\n Drawing.setClipUrl(_this.layers.grids, clipId, gd);\n};\n\nproto.updateLayers = function(ternaryLayout) {\n var _this = this;\n var layers = _this.layers;\n\n // inside that container, we have one container for the data, and\n // one each for the three axes around it.\n\n var plotLayers = ['draglayer', 'plotbg', 'backplot', 'grids'];\n\n if(ternaryLayout.aaxis.layer === 'below traces') {\n plotLayers.push('aaxis', 'aline');\n }\n if(ternaryLayout.baxis.layer === 'below traces') {\n plotLayers.push('baxis', 'bline');\n }\n if(ternaryLayout.caxis.layer === 'below traces') {\n plotLayers.push('caxis', 'cline');\n }\n\n plotLayers.push('frontplot');\n\n if(ternaryLayout.aaxis.layer === 'above traces') {\n plotLayers.push('aaxis', 'aline');\n }\n if(ternaryLayout.baxis.layer === 'above traces') {\n plotLayers.push('baxis', 'bline');\n }\n if(ternaryLayout.caxis.layer === 'above traces') {\n plotLayers.push('caxis', 'cline');\n }\n\n var toplevel = _this.plotContainer.selectAll('g.toplevel')\n .data(plotLayers, String);\n\n var grids = ['agrid', 'bgrid', 'cgrid'];\n\n toplevel.enter().append('g')\n .attr('class', function(d) { return 'toplevel ' + d; })\n .each(function(d) {\n var s = d3.select(this);\n layers[d] = s;\n\n // containers for different trace types.\n // NOTE - this is different from cartesian, where all traces\n // are in front of grids. Here I'm putting maps behind the grids\n // so the grids will always be visible if they're requested.\n // Perhaps we want that for cartesian too?\n if(d === 'frontplot') {\n s.append('g').classed('scatterlayer', true);\n } else if(d === 'backplot') {\n s.append('g').classed('maplayer', true);\n } else if(d === 'plotbg') {\n s.append('path').attr('d', 'M0,0Z');\n } else if(d === 'aline' || d === 'bline' || d === 'cline') {\n s.append('path');\n } else if(d === 'grids') {\n grids.forEach(function(d) {\n layers[d] = s.append('g').classed('grid ' + d, true);\n });\n }\n });\n\n toplevel.order();\n};\n\nvar whRatio = Math.sqrt(4 / 3);\n\nproto.adjustLayout = function(ternaryLayout, graphSize) {\n var _this = this;\n var domain = ternaryLayout.domain;\n var xDomainCenter = (domain.x[0] + domain.x[1]) / 2;\n var yDomainCenter = (domain.y[0] + domain.y[1]) / 2;\n var xDomain = domain.x[1] - domain.x[0];\n var yDomain = domain.y[1] - domain.y[0];\n var wmax = xDomain * graphSize.w;\n var hmax = yDomain * graphSize.h;\n var sum = ternaryLayout.sum;\n var amin = ternaryLayout.aaxis.min;\n var bmin = ternaryLayout.baxis.min;\n var cmin = ternaryLayout.caxis.min;\n\n var x0, y0, w, h, xDomainFinal, yDomainFinal;\n\n if(wmax > whRatio * hmax) {\n h = hmax;\n w = h * whRatio;\n } else {\n w = wmax;\n h = w / whRatio;\n }\n\n xDomainFinal = xDomain * w / wmax;\n yDomainFinal = yDomain * h / hmax;\n\n x0 = graphSize.l + graphSize.w * xDomainCenter - w / 2;\n y0 = graphSize.t + graphSize.h * (1 - yDomainCenter) - h / 2;\n\n _this.x0 = x0;\n _this.y0 = y0;\n _this.w = w;\n _this.h = h;\n _this.sum = sum;\n\n // set up the x and y axis objects we'll use to lay out the points\n _this.xaxis = {\n type: 'linear',\n range: [amin + 2 * cmin - sum, sum - amin - 2 * bmin],\n domain: [\n xDomainCenter - xDomainFinal / 2,\n xDomainCenter + xDomainFinal / 2\n ],\n _id: 'x'\n };\n setConvert(_this.xaxis, _this.graphDiv._fullLayout);\n _this.xaxis.setScale();\n _this.xaxis.isPtWithinRange = function(d) {\n return (\n d.a >= _this.aaxis.range[0] &&\n d.a <= _this.aaxis.range[1] &&\n d.b >= _this.baxis.range[1] &&\n d.b <= _this.baxis.range[0] &&\n d.c >= _this.caxis.range[1] &&\n d.c <= _this.caxis.range[0]\n );\n };\n\n _this.yaxis = {\n type: 'linear',\n range: [amin, sum - bmin - cmin],\n domain: [\n yDomainCenter - yDomainFinal / 2,\n yDomainCenter + yDomainFinal / 2\n ],\n _id: 'y'\n };\n setConvert(_this.yaxis, _this.graphDiv._fullLayout);\n _this.yaxis.setScale();\n _this.yaxis.isPtWithinRange = function() { return true; };\n\n // set up the modified axes for tick drawing\n var yDomain0 = _this.yaxis.domain[0];\n\n // aaxis goes up the left side. Set it up as a y axis, but with\n // fictitious angles and domain, but then rotate and translate\n // it into place at the end\n var aaxis = _this.aaxis = extendFlat({}, ternaryLayout.aaxis, {\n range: [amin, sum - bmin - cmin],\n side: 'left',\n // tickangle = 'auto' means 0 anyway for a y axis, need to coerce to 0 here\n // so we can shift by 30.\n tickangle: (+ternaryLayout.aaxis.tickangle || 0) - 30,\n domain: [yDomain0, yDomain0 + yDomainFinal * whRatio],\n anchor: 'free',\n position: 0,\n _id: 'y',\n _length: w\n });\n setConvert(aaxis, _this.graphDiv._fullLayout);\n aaxis.setScale();\n\n // baxis goes across the bottom (backward). We can set it up as an x axis\n // without any enclosing transformation.\n var baxis = _this.baxis = extendFlat({}, ternaryLayout.baxis, {\n range: [sum - amin - cmin, bmin],\n side: 'bottom',\n domain: _this.xaxis.domain,\n anchor: 'free',\n position: 0,\n _id: 'x',\n _length: w\n });\n setConvert(baxis, _this.graphDiv._fullLayout);\n baxis.setScale();\n\n // caxis goes down the right side. Set it up as a y axis, with\n // post-transformation similar to aaxis\n var caxis = _this.caxis = extendFlat({}, ternaryLayout.caxis, {\n range: [sum - amin - bmin, cmin],\n side: 'right',\n tickangle: (+ternaryLayout.caxis.tickangle || 0) + 30,\n domain: [yDomain0, yDomain0 + yDomainFinal * whRatio],\n anchor: 'free',\n position: 0,\n _id: 'y',\n _length: w\n });\n setConvert(caxis, _this.graphDiv._fullLayout);\n caxis.setScale();\n\n var triangleClip = 'M' + x0 + ',' + (y0 + h) + 'h' + w + 'l-' + (w / 2) + ',-' + h + 'Z';\n _this.clipDef.select('path').attr('d', triangleClip);\n _this.layers.plotbg.select('path').attr('d', triangleClip);\n\n var triangleClipRelative = 'M0,' + h + 'h' + w + 'l-' + (w / 2) + ',-' + h + 'Z';\n _this.clipDefRelative.select('path').attr('d', triangleClipRelative);\n\n var plotTransform = strTranslate(x0, y0);\n _this.plotContainer.selectAll('.scatterlayer,.maplayer')\n .attr('transform', plotTransform);\n\n _this.clipDefRelative.select('path').attr('transform', null);\n\n // TODO: shift axes to accommodate linewidth*sin(30) tick mark angle\n\n // TODO: there's probably an easier way to handle these translations/offsets now...\n var bTransform = strTranslate(x0 - baxis._offset, y0 + h);\n\n _this.layers.baxis.attr('transform', bTransform);\n _this.layers.bgrid.attr('transform', bTransform);\n\n var aTransform = strTranslate(x0 + w / 2, y0) +\n 'rotate(30)' + strTranslate(0, -aaxis._offset);\n _this.layers.aaxis.attr('transform', aTransform);\n _this.layers.agrid.attr('transform', aTransform);\n\n var cTransform = strTranslate(x0 + w / 2, y0) +\n 'rotate(-30)' + strTranslate(0, -caxis._offset);\n _this.layers.caxis.attr('transform', cTransform);\n _this.layers.cgrid.attr('transform', cTransform);\n\n _this.drawAxes(true);\n\n _this.layers.aline.select('path')\n .attr('d', aaxis.showline ?\n 'M' + x0 + ',' + (y0 + h) + 'l' + (w / 2) + ',-' + h : 'M0,0')\n .call(Color.stroke, aaxis.linecolor || '#000')\n .style('stroke-width', (aaxis.linewidth || 0) + 'px');\n _this.layers.bline.select('path')\n .attr('d', baxis.showline ?\n 'M' + x0 + ',' + (y0 + h) + 'h' + w : 'M0,0')\n .call(Color.stroke, baxis.linecolor || '#000')\n .style('stroke-width', (baxis.linewidth || 0) + 'px');\n _this.layers.cline.select('path')\n .attr('d', caxis.showline ?\n 'M' + (x0 + w / 2) + ',' + y0 + 'l' + (w / 2) + ',' + h : 'M0,0')\n .call(Color.stroke, caxis.linecolor || '#000')\n .style('stroke-width', (caxis.linewidth || 0) + 'px');\n\n if(!_this.graphDiv._context.staticPlot) {\n _this.initInteractions();\n }\n\n Drawing.setClipUrl(\n _this.layers.frontplot,\n _this._hasClipOnAxisFalse ? null : _this.clipId,\n _this.graphDiv\n );\n};\n\nproto.drawAxes = function(doTitles) {\n var _this = this;\n var gd = _this.graphDiv;\n var titlesuffix = _this.id.substr(7) + 'title';\n var layers = _this.layers;\n var aaxis = _this.aaxis;\n var baxis = _this.baxis;\n var caxis = _this.caxis;\n\n _this.drawAx(aaxis);\n _this.drawAx(baxis);\n _this.drawAx(caxis);\n\n if(doTitles) {\n var apad = Math.max(aaxis.showticklabels ? aaxis.tickfont.size / 2 : 0,\n (caxis.showticklabels ? caxis.tickfont.size * 0.75 : 0) +\n (caxis.ticks === 'outside' ? caxis.ticklen * 0.87 : 0));\n var bpad = (baxis.showticklabels ? baxis.tickfont.size : 0) +\n (baxis.ticks === 'outside' ? baxis.ticklen : 0) + 3;\n\n layers['a-title'] = Titles.draw(gd, 'a' + titlesuffix, {\n propContainer: aaxis,\n propName: _this.id + '.aaxis.title',\n placeholder: _(gd, 'Click to enter Component A title'),\n attributes: {\n x: _this.x0 + _this.w / 2,\n y: _this.y0 - aaxis.title.font.size / 3 - apad,\n 'text-anchor': 'middle'\n }\n });\n layers['b-title'] = Titles.draw(gd, 'b' + titlesuffix, {\n propContainer: baxis,\n propName: _this.id + '.baxis.title',\n placeholder: _(gd, 'Click to enter Component B title'),\n attributes: {\n x: _this.x0 - bpad,\n y: _this.y0 + _this.h + baxis.title.font.size * 0.83 + bpad,\n 'text-anchor': 'middle'\n }\n });\n layers['c-title'] = Titles.draw(gd, 'c' + titlesuffix, {\n propContainer: caxis,\n propName: _this.id + '.caxis.title',\n placeholder: _(gd, 'Click to enter Component C title'),\n attributes: {\n x: _this.x0 + _this.w + bpad,\n y: _this.y0 + _this.h + caxis.title.font.size * 0.83 + bpad,\n 'text-anchor': 'middle'\n }\n });\n }\n};\n\nproto.drawAx = function(ax) {\n var _this = this;\n var gd = _this.graphDiv;\n var axName = ax._name;\n var axLetter = axName.charAt(0);\n var axId = ax._id;\n var axLayer = _this.layers[axName];\n var counterAngle = 30;\n\n var stashKey = axLetter + 'tickLayout';\n var newTickLayout = strTickLayout(ax);\n if(_this[stashKey] !== newTickLayout) {\n axLayer.selectAll('.' + axId + 'tick').remove();\n _this[stashKey] = newTickLayout;\n }\n\n ax.setScale();\n\n var vals = Axes.calcTicks(ax);\n var valsClipped = Axes.clipEnds(ax, vals);\n var transFn = Axes.makeTransTickFn(ax);\n var tickSign = Axes.getTickSigns(ax)[2];\n\n var caRad = Lib.deg2rad(counterAngle);\n var pad = tickSign * (ax.linewidth || 1) / 2;\n var len = tickSign * ax.ticklen;\n var w = _this.w;\n var h = _this.h;\n\n var tickPath = axLetter === 'b' ?\n 'M0,' + pad + 'l' + (Math.sin(caRad) * len) + ',' + (Math.cos(caRad) * len) :\n 'M' + pad + ',0l' + (Math.cos(caRad) * len) + ',' + (-Math.sin(caRad) * len);\n\n var gridPath = {\n a: 'M0,0l' + h + ',-' + (w / 2),\n b: 'M0,0l-' + (w / 2) + ',-' + h,\n c: 'M0,0l-' + h + ',' + (w / 2)\n }[axLetter];\n\n Axes.drawTicks(gd, ax, {\n vals: ax.ticks === 'inside' ? valsClipped : vals,\n layer: axLayer,\n path: tickPath,\n transFn: transFn,\n crisp: false\n });\n\n Axes.drawGrid(gd, ax, {\n vals: valsClipped,\n layer: _this.layers[axLetter + 'grid'],\n path: gridPath,\n transFn: transFn,\n crisp: false\n });\n\n Axes.drawLabels(gd, ax, {\n vals: vals,\n layer: axLayer,\n transFn: transFn,\n labelFns: Axes.makeLabelFns(ax, 0, counterAngle)\n });\n};\n\nfunction strTickLayout(axLayout) {\n return axLayout.ticks + String(axLayout.ticklen) + String(axLayout.showticklabels);\n}\n\n// hard coded paths for zoom corners\n// uses the same sizing as cartesian, length is MINZOOM/2, width is 3px\nvar CLEN = constants.MINZOOM / 2 + 0.87;\nvar BLPATH = 'm-0.87,.5h' + CLEN + 'v3h-' + (CLEN + 5.2) +\n 'l' + (CLEN / 2 + 2.6) + ',-' + (CLEN * 0.87 + 4.5) +\n 'l2.6,1.5l-' + (CLEN / 2) + ',' + (CLEN * 0.87) + 'Z';\nvar BRPATH = 'm0.87,.5h-' + CLEN + 'v3h' + (CLEN + 5.2) +\n 'l-' + (CLEN / 2 + 2.6) + ',-' + (CLEN * 0.87 + 4.5) +\n 'l-2.6,1.5l' + (CLEN / 2) + ',' + (CLEN * 0.87) + 'Z';\nvar TOPPATH = 'm0,1l' + (CLEN / 2) + ',' + (CLEN * 0.87) +\n 'l2.6,-1.5l-' + (CLEN / 2 + 2.6) + ',-' + (CLEN * 0.87 + 4.5) +\n 'l-' + (CLEN / 2 + 2.6) + ',' + (CLEN * 0.87 + 4.5) +\n 'l2.6,1.5l' + (CLEN / 2) + ',-' + (CLEN * 0.87) + 'Z';\nvar STARTMARKER = 'm0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z';\n\n// I guess this could be shared with cartesian... but for now it's separate.\nvar SHOWZOOMOUTTIP = true;\n\nproto.clearSelect = function() {\n clearSelectionsCache(this.dragOptions);\n clearSelect(this.dragOptions.gd);\n};\n\nproto.initInteractions = function() {\n var _this = this;\n var dragger = _this.layers.plotbg.select('path').node();\n var gd = _this.graphDiv;\n var zoomLayer = gd._fullLayout._zoomlayer;\n var scaleX;\n var scaleY;\n\n // use plotbg for the main interactions\n this.dragOptions = {\n element: dragger,\n gd: gd,\n plotinfo: {\n id: _this.id,\n domain: gd._fullLayout[_this.id].domain,\n xaxis: _this.xaxis,\n yaxis: _this.yaxis\n },\n subplot: _this.id,\n prepFn: function(e, startX, startY) {\n // these aren't available yet when initInteractions\n // is called\n _this.dragOptions.xaxes = [_this.xaxis];\n _this.dragOptions.yaxes = [_this.yaxis];\n\n scaleX = gd._fullLayout._invScaleX;\n scaleY = gd._fullLayout._invScaleY;\n\n var dragModeNow = _this.dragOptions.dragmode = gd._fullLayout.dragmode;\n\n if(freeMode(dragModeNow)) _this.dragOptions.minDrag = 1;\n else _this.dragOptions.minDrag = undefined;\n\n if(dragModeNow === 'zoom') {\n _this.dragOptions.moveFn = zoomMove;\n _this.dragOptions.clickFn = clickZoomPan;\n _this.dragOptions.doneFn = zoomDone;\n zoomPrep(e, startX, startY);\n } else if(dragModeNow === 'pan') {\n _this.dragOptions.moveFn = plotDrag;\n _this.dragOptions.clickFn = clickZoomPan;\n _this.dragOptions.doneFn = dragDone;\n panPrep();\n _this.clearSelect(gd);\n } else if(rectMode(dragModeNow) || freeMode(dragModeNow)) {\n prepSelect(e, startX, startY, _this.dragOptions, dragModeNow);\n }\n }\n };\n\n var x0, y0, mins0, span0, mins, lum, path0, dimmed, zb, corners;\n\n function makeUpdate(_mins) {\n var attrs = {};\n attrs[_this.id + '.aaxis.min'] = _mins.a;\n attrs[_this.id + '.baxis.min'] = _mins.b;\n attrs[_this.id + '.caxis.min'] = _mins.c;\n return attrs;\n }\n\n function clickZoomPan(numClicks, evt) {\n var clickMode = gd._fullLayout.clickmode;\n\n removeZoombox(gd);\n\n if(numClicks === 2) {\n gd.emit('plotly_doubleclick', null);\n Registry.call('_guiRelayout', gd, makeUpdate({a: 0, b: 0, c: 0}));\n }\n\n if(clickMode.indexOf('select') > -1 && numClicks === 1) {\n selectOnClick(evt, gd, [_this.xaxis], [_this.yaxis], _this.id, _this.dragOptions);\n }\n\n if(clickMode.indexOf('event') > -1) {\n Fx.click(gd, evt, _this.id);\n }\n }\n\n function zoomPrep(e, startX, startY) {\n var dragBBox = dragger.getBoundingClientRect();\n x0 = startX - dragBBox.left;\n y0 = startY - dragBBox.top;\n\n gd._fullLayout._calcInverseTransform(gd);\n var inverse = gd._fullLayout._invTransform;\n var transformedCoords = Lib.apply3DTransform(inverse)(x0, y0);\n x0 = transformedCoords[0];\n y0 = transformedCoords[1];\n\n mins0 = {\n a: _this.aaxis.range[0],\n b: _this.baxis.range[1],\n c: _this.caxis.range[1]\n };\n mins = mins0;\n span0 = _this.aaxis.range[1] - mins0.a;\n lum = tinycolor(_this.graphDiv._fullLayout[_this.id].bgcolor).getLuminance();\n path0 = 'M0,' + _this.h + 'L' + (_this.w / 2) + ', 0L' + _this.w + ',' + _this.h + 'Z';\n dimmed = false;\n\n zb = zoomLayer.append('path')\n .attr('class', 'zoombox')\n .attr('transform', strTranslate(_this.x0, _this.y0))\n .style({\n 'fill': lum > 0.2 ? 'rgba(0,0,0,0)' : 'rgba(255,255,255,0)',\n 'stroke-width': 0\n })\n .attr('d', path0);\n\n corners = zoomLayer.append('path')\n .attr('class', 'zoombox-corners')\n .attr('transform', strTranslate(_this.x0, _this.y0))\n .style({\n fill: Color.background,\n stroke: Color.defaultLine,\n 'stroke-width': 1,\n opacity: 0\n })\n .attr('d', 'M0,0Z');\n\n _this.clearSelect(gd);\n }\n\n function getAFrac(x, y) { return 1 - (y / _this.h); }\n function getBFrac(x, y) { return 1 - ((x + (_this.h - y) / Math.sqrt(3)) / _this.w); }\n function getCFrac(x, y) { return ((x - (_this.h - y) / Math.sqrt(3)) / _this.w); }\n\n function zoomMove(dx0, dy0) {\n var x1 = x0 + dx0 * scaleX;\n var y1 = y0 + dy0 * scaleY;\n var afrac = Math.max(0, Math.min(1, getAFrac(x0, y0), getAFrac(x1, y1)));\n var bfrac = Math.max(0, Math.min(1, getBFrac(x0, y0), getBFrac(x1, y1)));\n var cfrac = Math.max(0, Math.min(1, getCFrac(x0, y0), getCFrac(x1, y1)));\n var xLeft = ((afrac / 2) + cfrac) * _this.w;\n var xRight = (1 - (afrac / 2) - bfrac) * _this.w;\n var xCenter = (xLeft + xRight) / 2;\n var xSpan = xRight - xLeft;\n var yBottom = (1 - afrac) * _this.h;\n var yTop = yBottom - xSpan / whRatio;\n\n if(xSpan < constants.MINZOOM) {\n mins = mins0;\n zb.attr('d', path0);\n corners.attr('d', 'M0,0Z');\n } else {\n mins = {\n a: mins0.a + afrac * span0,\n b: mins0.b + bfrac * span0,\n c: mins0.c + cfrac * span0\n };\n zb.attr('d', path0 + 'M' + xLeft + ',' + yBottom +\n 'H' + xRight + 'L' + xCenter + ',' + yTop +\n 'L' + xLeft + ',' + yBottom + 'Z');\n corners.attr('d', 'M' + x0 + ',' + y0 + STARTMARKER +\n 'M' + xLeft + ',' + yBottom + BLPATH +\n 'M' + xRight + ',' + yBottom + BRPATH +\n 'M' + xCenter + ',' + yTop + TOPPATH);\n }\n\n if(!dimmed) {\n zb.transition()\n .style('fill', lum > 0.2 ? 'rgba(0,0,0,0.4)' :\n 'rgba(255,255,255,0.3)')\n .duration(200);\n corners.transition()\n .style('opacity', 1)\n .duration(200);\n dimmed = true;\n }\n\n gd.emit('plotly_relayouting', makeUpdate(mins));\n }\n\n function zoomDone() {\n removeZoombox(gd);\n\n if(mins === mins0) return;\n\n Registry.call('_guiRelayout', gd, makeUpdate(mins));\n\n if(SHOWZOOMOUTTIP && gd.data && gd._context.showTips) {\n Lib.notifier(_(gd, 'Double-click to zoom back out'), 'long');\n SHOWZOOMOUTTIP = false;\n }\n }\n\n function panPrep() {\n mins0 = {\n a: _this.aaxis.range[0],\n b: _this.baxis.range[1],\n c: _this.caxis.range[1]\n };\n mins = mins0;\n }\n\n function plotDrag(dx, dy) {\n var dxScaled = dx / _this.xaxis._m;\n var dyScaled = dy / _this.yaxis._m;\n mins = {\n a: mins0.a - dyScaled,\n b: mins0.b + (dxScaled + dyScaled) / 2,\n c: mins0.c - (dxScaled - dyScaled) / 2\n };\n var minsorted = [mins.a, mins.b, mins.c].sort(Lib.sorterAsc);\n var minindices = {\n a: minsorted.indexOf(mins.a),\n b: minsorted.indexOf(mins.b),\n c: minsorted.indexOf(mins.c)\n };\n if(minsorted[0] < 0) {\n if(minsorted[1] + minsorted[0] / 2 < 0) {\n minsorted[2] += minsorted[0] + minsorted[1];\n minsorted[0] = minsorted[1] = 0;\n } else {\n minsorted[2] += minsorted[0] / 2;\n minsorted[1] += minsorted[0] / 2;\n minsorted[0] = 0;\n }\n mins = {\n a: minsorted[minindices.a],\n b: minsorted[minindices.b],\n c: minsorted[minindices.c]\n };\n dy = (mins0.a - mins.a) * _this.yaxis._m;\n dx = (mins0.c - mins.c - mins0.b + mins.b) * _this.xaxis._m;\n }\n\n // move the data (translate, don't redraw)\n var plotTransform = strTranslate(_this.x0 + dx, _this.y0 + dy);\n _this.plotContainer.selectAll('.scatterlayer,.maplayer')\n .attr('transform', plotTransform);\n\n var plotTransform2 = strTranslate(-dx, -dy);\n _this.clipDefRelative.select('path').attr('transform', plotTransform2);\n\n // move the ticks\n _this.aaxis.range = [mins.a, _this.sum - mins.b - mins.c];\n _this.baxis.range = [_this.sum - mins.a - mins.c, mins.b];\n _this.caxis.range = [_this.sum - mins.a - mins.b, mins.c];\n\n _this.drawAxes(false);\n\n if(_this._hasClipOnAxisFalse) {\n _this.plotContainer\n .select('.scatterlayer').selectAll('.trace')\n .call(Drawing.hideOutsideRangePoints, _this);\n }\n\n gd.emit('plotly_relayouting', makeUpdate(mins));\n }\n\n function dragDone() {\n Registry.call('_guiRelayout', gd, makeUpdate(mins));\n }\n\n // finally, set up hover and click\n // these event handlers must already be set before dragElement.init\n // so it can stash them and override them.\n dragger.onmousemove = function(evt) {\n Fx.hover(gd, evt, _this.id);\n gd._fullLayout._lasthover = dragger;\n gd._fullLayout._hoversubplot = _this.id;\n };\n\n dragger.onmouseout = function(evt) {\n if(gd._dragging) return;\n\n dragElement.unhover(gd, evt);\n };\n\n dragElement.init(this.dragOptions);\n};\n\nfunction removeZoombox(gd) {\n d3.select(gd)\n .selectAll('.zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners')\n .remove();\n}\n\n},{\"../../components/color\":366,\"../../components/dragelement\":385,\"../../components/dragelement/helpers\":384,\"../../components/drawing\":388,\"../../components/fx\":406,\"../../components/titles\":464,\"../../lib\":503,\"../../lib/extend\":493,\"../../registry\":638,\"../cartesian/axes\":554,\"../cartesian/constants\":561,\"../cartesian/select\":575,\"../cartesian/set_convert\":576,\"../plots\":619,\"@plotly/d3\":58,\"tinycolor2\":312}],638:[function(_dereq_,module,exports){\n'use strict';\n\nvar Loggers = _dereq_('./lib/loggers');\nvar noop = _dereq_('./lib/noop');\nvar pushUnique = _dereq_('./lib/push_unique');\nvar isPlainObject = _dereq_('./lib/is_plain_object');\nvar addStyleRule = _dereq_('./lib/dom').addStyleRule;\nvar ExtendModule = _dereq_('./lib/extend');\n\nvar basePlotAttributes = _dereq_('./plots/attributes');\nvar baseLayoutAttributes = _dereq_('./plots/layout_attributes');\n\nvar extendFlat = ExtendModule.extendFlat;\nvar extendDeepAll = ExtendModule.extendDeepAll;\n\nexports.modules = {};\nexports.allCategories = {};\nexports.allTypes = [];\nexports.subplotsRegistry = {};\nexports.transformsRegistry = {};\nexports.componentsRegistry = {};\nexports.layoutArrayContainers = [];\nexports.layoutArrayRegexes = [];\nexports.traceLayoutAttributes = {};\nexports.localeRegistry = {};\nexports.apiMethodRegistry = {};\nexports.collectableSubplotTypes = null;\n\n/**\n * Top-level register routine, exported as Plotly.register\n *\n * @param {object array or array of objects} _modules :\n * module object or list of module object to register.\n *\n * A valid `moduleType: 'trace'` module has fields:\n * - name {string} : the trace type\n * - categories {array} : categories associated with this trace type,\n * tested with Register.traceIs()\n * - meta {object} : meta info (mostly for plot-schema)\n *\n * A valid `moduleType: 'locale'` module has fields:\n * - name {string} : the locale name. Should be a 2-digit language string ('en', 'de')\n * optionally with a country/region code ('en-GB', 'de-CH'). If a country\n * code is used but the base language locale has not yet been supplied,\n * we will use this locale for the base as well.\n * - dictionary {object} : the dictionary mapping input strings to localized strings\n * generally the keys should be the literal input strings, but\n * if default translations are provided you can use any string as a key.\n * - format {object} : a `d3.locale` format specifier for this locale\n * any omitted keys we'll fall back on en-US.\n *\n * A valid `moduleType: 'transform'` module has fields:\n * - name {string} : transform name\n * - transform {function} : default-level transform function\n * - calcTransform {function} : calc-level transform function\n * - attributes {object} : transform attributes declarations\n * - supplyDefaults {function} : attributes default-supply function\n *\n * A valid `moduleType: 'component'` module has fields:\n * - name {string} : the component name, used it with Register.getComponentMethod()\n * to employ component method.\n *\n * A valid `moduleType: 'apiMethod'` module has fields:\n * - name {string} : the api method name.\n * - fn {function} : the api method called with Register.call();\n *\n */\nexports.register = function register(_modules) {\n exports.collectableSubplotTypes = null;\n\n if(!_modules) {\n throw new Error('No argument passed to Plotly.register.');\n } else if(_modules && !Array.isArray(_modules)) {\n _modules = [_modules];\n }\n\n for(var i = 0; i < _modules.length; i++) {\n var newModule = _modules[i];\n\n if(!newModule) {\n throw new Error('Invalid module was attempted to be registered!');\n }\n\n switch(newModule.moduleType) {\n case 'trace':\n registerTraceModule(newModule);\n break;\n case 'transform':\n registerTransformModule(newModule);\n break;\n case 'component':\n registerComponentModule(newModule);\n break;\n case 'locale':\n registerLocale(newModule);\n break;\n case 'apiMethod':\n var name = newModule.name;\n exports.apiMethodRegistry[name] = newModule.fn;\n break;\n default:\n throw new Error('Invalid module was attempted to be registered!');\n }\n }\n};\n\n/**\n * Get registered module using trace object or trace type\n *\n * @param {object||string} trace\n * trace object with prop 'type' or trace type as a string\n * @return {object}\n * module object corresponding to trace type\n */\nexports.getModule = function(trace) {\n var _module = exports.modules[getTraceType(trace)];\n if(!_module) return false;\n return _module._module;\n};\n\n/**\n * Determine if this trace type is in a given category\n *\n * @param {object||string} traceType\n * a trace (object) or trace type (string)\n * @param {string} category\n * category in question\n * @return {boolean}\n */\nexports.traceIs = function(traceType, category) {\n traceType = getTraceType(traceType);\n\n // old Chart Studio Cloud workspace hack, nothing to see here\n if(traceType === 'various') return false;\n\n var _module = exports.modules[traceType];\n\n if(!_module) {\n if(traceType) {\n Loggers.log('Unrecognized trace type ' + traceType + '.');\n }\n\n _module = exports.modules[basePlotAttributes.type.dflt];\n }\n\n return !!_module.categories[category];\n};\n\n/**\n * Determine if this trace has a transform of the given type and return\n * array of matching indices.\n *\n * @param {object} data\n * a trace object (member of data or fullData)\n * @param {string} type\n * type of trace to test\n * @return {array}\n * array of matching indices. If none found, returns []\n */\nexports.getTransformIndices = function(data, type) {\n var indices = [];\n var transforms = data.transforms || [];\n for(var i = 0; i < transforms.length; i++) {\n if(transforms[i].type === type) {\n indices.push(i);\n }\n }\n return indices;\n};\n\n/**\n * Determine if this trace has a transform of the given type\n *\n * @param {object} data\n * a trace object (member of data or fullData)\n * @param {string} type\n * type of trace to test\n * @return {boolean}\n */\nexports.hasTransform = function(data, type) {\n var transforms = data.transforms || [];\n for(var i = 0; i < transforms.length; i++) {\n if(transforms[i].type === type) {\n return true;\n }\n }\n return false;\n};\n\n/**\n * Retrieve component module method. Falls back on noop if either the\n * module or the method is missing, so the result can always be safely called\n *\n * @param {string} name\n * name of component (as declared in component module)\n * @param {string} method\n * name of component module method\n * @return {function}\n */\nexports.getComponentMethod = function(name, method) {\n var _module = exports.componentsRegistry[name];\n\n if(!_module) return noop;\n return _module[method] || noop;\n};\n\n/**\n * Call registered api method.\n *\n * @param {string} name : api method name\n * @param {...array} args : arguments passed to api method\n * @return {any} : returns api method output\n */\nexports.call = function() {\n var name = arguments[0];\n var args = [].slice.call(arguments, 1);\n return exports.apiMethodRegistry[name].apply(null, args);\n};\n\nfunction registerTraceModule(_module) {\n var thisType = _module.name;\n var categoriesIn = _module.categories;\n var meta = _module.meta;\n\n if(exports.modules[thisType]) {\n Loggers.log('Type ' + thisType + ' already registered');\n return;\n }\n\n if(!exports.subplotsRegistry[_module.basePlotModule.name]) {\n registerSubplot(_module.basePlotModule);\n }\n\n var categoryObj = {};\n for(var i = 0; i < categoriesIn.length; i++) {\n categoryObj[categoriesIn[i]] = true;\n exports.allCategories[categoriesIn[i]] = true;\n }\n\n exports.modules[thisType] = {\n _module: _module,\n categories: categoryObj\n };\n\n if(meta && Object.keys(meta).length) {\n exports.modules[thisType].meta = meta;\n }\n\n exports.allTypes.push(thisType);\n\n for(var componentName in exports.componentsRegistry) {\n mergeComponentAttrsToTrace(componentName, thisType);\n }\n\n /*\n * Collect all trace layout attributes in one place for easier lookup later\n * but don't merge them into the base schema as it would confuse the docs\n * (at least after https://github.com/plotly/documentation/issues/202 gets done!)\n */\n if(_module.layoutAttributes) {\n extendFlat(exports.traceLayoutAttributes, _module.layoutAttributes);\n }\n\n var basePlotModule = _module.basePlotModule;\n var bpmName = basePlotModule.name;\n\n // add mapbox-gl CSS here to avoid console warning on instantiation\n if(bpmName === 'mapbox') {\n var styleRules = basePlotModule.constants.styleRules;\n for(var k in styleRules) {\n addStyleRule('.js-plotly-plot .plotly .mapboxgl-' + k, styleRules[k]);\n }\n }\n\n // if `plotly-geo-assets.js` is not included,\n // add `PlotlyGeoAssets` global to stash references to all fetched\n // topojson / geojson data\n if((bpmName === 'geo' || bpmName === 'mapbox') &&\n (typeof window !== undefined && window.PlotlyGeoAssets === undefined)\n ) {\n window.PlotlyGeoAssets = {topojson: {}};\n }\n}\n\nfunction registerSubplot(_module) {\n var plotType = _module.name;\n\n if(exports.subplotsRegistry[plotType]) {\n Loggers.log('Plot type ' + plotType + ' already registered.');\n return;\n }\n\n // relayout array handling will look for component module methods with this\n // name and won't find them because this is a subplot module... but that\n // should be fine, it will just fall back on redrawing the plot.\n findArrayRegexps(_module);\n\n // not sure what's best for the 'cartesian' type at this point\n exports.subplotsRegistry[plotType] = _module;\n\n for(var componentName in exports.componentsRegistry) {\n mergeComponentAttrsToSubplot(componentName, _module.name);\n }\n}\n\nfunction registerComponentModule(_module) {\n if(typeof _module.name !== 'string') {\n throw new Error('Component module *name* must be a string.');\n }\n\n var name = _module.name;\n exports.componentsRegistry[name] = _module;\n\n if(_module.layoutAttributes) {\n if(_module.layoutAttributes._isLinkedToArray) {\n pushUnique(exports.layoutArrayContainers, name);\n }\n findArrayRegexps(_module);\n }\n\n for(var traceType in exports.modules) {\n mergeComponentAttrsToTrace(name, traceType);\n }\n\n for(var subplotName in exports.subplotsRegistry) {\n mergeComponentAttrsToSubplot(name, subplotName);\n }\n\n for(var transformType in exports.transformsRegistry) {\n mergeComponentAttrsToTransform(name, transformType);\n }\n\n if(_module.schema && _module.schema.layout) {\n extendDeepAll(baseLayoutAttributes, _module.schema.layout);\n }\n}\n\nfunction registerTransformModule(_module) {\n if(typeof _module.name !== 'string') {\n throw new Error('Transform module *name* must be a string.');\n }\n\n var prefix = 'Transform module ' + _module.name;\n var hasTransform = typeof _module.transform === 'function';\n var hasCalcTransform = typeof _module.calcTransform === 'function';\n\n if(!hasTransform && !hasCalcTransform) {\n throw new Error(prefix + ' is missing a *transform* or *calcTransform* method.');\n }\n if(hasTransform && hasCalcTransform) {\n Loggers.log([\n prefix + ' has both a *transform* and *calcTransform* methods.',\n 'Please note that all *transform* methods are executed',\n 'before all *calcTransform* methods.'\n ].join(' '));\n }\n if(!isPlainObject(_module.attributes)) {\n Loggers.log(prefix + ' registered without an *attributes* object.');\n }\n if(typeof _module.supplyDefaults !== 'function') {\n Loggers.log(prefix + ' registered without a *supplyDefaults* method.');\n }\n\n exports.transformsRegistry[_module.name] = _module;\n\n for(var componentName in exports.componentsRegistry) {\n mergeComponentAttrsToTransform(componentName, _module.name);\n }\n}\n\nfunction registerLocale(_module) {\n var locale = _module.name;\n var baseLocale = locale.split('-')[0];\n\n var newDict = _module.dictionary;\n var newFormat = _module.format;\n var hasDict = newDict && Object.keys(newDict).length;\n var hasFormat = newFormat && Object.keys(newFormat).length;\n\n var locales = exports.localeRegistry;\n\n var localeObj = locales[locale];\n if(!localeObj) locales[locale] = localeObj = {};\n\n // Should we use this dict for the base locale?\n // In case we're overwriting a previous dict for this locale, check\n // whether the base matches the full locale dict now. If we're not\n // overwriting, locales[locale] is undefined so this just checks if\n // baseLocale already had a dict or not.\n // Same logic for dateFormats\n if(baseLocale !== locale) {\n var baseLocaleObj = locales[baseLocale];\n if(!baseLocaleObj) locales[baseLocale] = baseLocaleObj = {};\n\n if(hasDict && baseLocaleObj.dictionary === localeObj.dictionary) {\n baseLocaleObj.dictionary = newDict;\n }\n if(hasFormat && baseLocaleObj.format === localeObj.format) {\n baseLocaleObj.format = newFormat;\n }\n }\n\n if(hasDict) localeObj.dictionary = newDict;\n if(hasFormat) localeObj.format = newFormat;\n}\n\nfunction findArrayRegexps(_module) {\n if(_module.layoutAttributes) {\n var arrayAttrRegexps = _module.layoutAttributes._arrayAttrRegexps;\n if(arrayAttrRegexps) {\n for(var i = 0; i < arrayAttrRegexps.length; i++) {\n pushUnique(exports.layoutArrayRegexes, arrayAttrRegexps[i]);\n }\n }\n }\n}\n\nfunction mergeComponentAttrsToTrace(componentName, traceType) {\n var componentSchema = exports.componentsRegistry[componentName].schema;\n if(!componentSchema || !componentSchema.traces) return;\n\n var traceAttrs = componentSchema.traces[traceType];\n if(traceAttrs) {\n extendDeepAll(exports.modules[traceType]._module.attributes, traceAttrs);\n }\n}\n\nfunction mergeComponentAttrsToTransform(componentName, transformType) {\n var componentSchema = exports.componentsRegistry[componentName].schema;\n if(!componentSchema || !componentSchema.transforms) return;\n\n var transformAttrs = componentSchema.transforms[transformType];\n if(transformAttrs) {\n extendDeepAll(exports.transformsRegistry[transformType].attributes, transformAttrs);\n }\n}\n\nfunction mergeComponentAttrsToSubplot(componentName, subplotName) {\n var componentSchema = exports.componentsRegistry[componentName].schema;\n if(!componentSchema || !componentSchema.subplots) return;\n\n var subplotModule = exports.subplotsRegistry[subplotName];\n var subplotAttrs = subplotModule.layoutAttributes;\n var subplotAttr = subplotModule.attr === 'subplot' ? subplotModule.name : subplotModule.attr;\n if(Array.isArray(subplotAttr)) subplotAttr = subplotAttr[0];\n\n var componentLayoutAttrs = componentSchema.subplots[subplotAttr];\n if(subplotAttrs && componentLayoutAttrs) {\n extendDeepAll(subplotAttrs, componentLayoutAttrs);\n }\n}\n\nfunction getTraceType(traceType) {\n if(typeof traceType === 'object') traceType = traceType.type;\n return traceType;\n}\n\n},{\"./lib/dom\":491,\"./lib/extend\":493,\"./lib/is_plain_object\":504,\"./lib/loggers\":507,\"./lib/noop\":512,\"./lib/push_unique\":518,\"./plots/attributes\":550,\"./plots/layout_attributes\":610}],639:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../registry');\nvar Lib = _dereq_('../lib');\n\nvar extendFlat = Lib.extendFlat;\nvar extendDeep = Lib.extendDeep;\n\n// Put default plotTile layouts here\nfunction cloneLayoutOverride(tileClass) {\n var override;\n\n switch(tileClass) {\n case 'themes__thumb':\n override = {\n autosize: true,\n width: 150,\n height: 150,\n title: {text: ''},\n showlegend: false,\n margin: {l: 5, r: 5, t: 5, b: 5, pad: 0},\n annotations: []\n };\n break;\n\n case 'thumbnail':\n override = {\n title: {text: ''},\n hidesources: true,\n showlegend: false,\n borderwidth: 0,\n bordercolor: '',\n margin: {l: 1, r: 1, t: 1, b: 1, pad: 0},\n annotations: []\n };\n break;\n\n default:\n override = {};\n }\n\n\n return override;\n}\n\nfunction keyIsAxis(keyName) {\n var types = ['xaxis', 'yaxis', 'zaxis'];\n return (types.indexOf(keyName.slice(0, 5)) > -1);\n}\n\n\nmodule.exports = function clonePlot(graphObj, options) {\n var i;\n var oldData = graphObj.data;\n var oldLayout = graphObj.layout;\n var newData = extendDeep([], oldData);\n var newLayout = extendDeep({}, oldLayout, cloneLayoutOverride(options.tileClass));\n var context = graphObj._context || {};\n\n if(options.width) newLayout.width = options.width;\n if(options.height) newLayout.height = options.height;\n\n if(options.tileClass === 'thumbnail' || options.tileClass === 'themes__thumb') {\n // kill annotations\n newLayout.annotations = [];\n var keys = Object.keys(newLayout);\n\n for(i = 0; i < keys.length; i++) {\n if(keyIsAxis(keys[i])) {\n newLayout[keys[i]].title = {text: ''};\n }\n }\n\n // kill colorbar and pie labels\n for(i = 0; i < newData.length; i++) {\n var trace = newData[i];\n trace.showscale = false;\n if(trace.marker) trace.marker.showscale = false;\n if(Registry.traceIs(trace, 'pie-like')) trace.textposition = 'none';\n }\n }\n\n if(Array.isArray(options.annotations)) {\n for(i = 0; i < options.annotations.length; i++) {\n newLayout.annotations.push(options.annotations[i]);\n }\n }\n\n // TODO: does this scene modification really belong here?\n // If we still need it, can it move into the gl3d module?\n var sceneIds = Object.keys(newLayout).filter(function(key) {\n return key.match(/^scene\\d*$/);\n });\n if(sceneIds.length) {\n var axesImageOverride = {};\n if(options.tileClass === 'thumbnail') {\n axesImageOverride = {\n title: {text: ''},\n showaxeslabels: false,\n showticklabels: false,\n linetickenable: false\n };\n }\n for(i = 0; i < sceneIds.length; i++) {\n var scene = newLayout[sceneIds[i]];\n\n if(!scene.xaxis) {\n scene.xaxis = {};\n }\n\n if(!scene.yaxis) {\n scene.yaxis = {};\n }\n\n if(!scene.zaxis) {\n scene.zaxis = {};\n }\n\n extendFlat(scene.xaxis, axesImageOverride);\n extendFlat(scene.yaxis, axesImageOverride);\n extendFlat(scene.zaxis, axesImageOverride);\n\n // TODO what does this do?\n scene._scene = null;\n }\n }\n\n var gd = document.createElement('div');\n if(options.tileClass) gd.className = options.tileClass;\n\n var plotTile = {\n gd: gd,\n td: gd, // for external (image server) compatibility\n layout: newLayout,\n data: newData,\n config: {\n staticPlot: (options.staticPlot === undefined) ?\n true :\n options.staticPlot,\n plotGlPixelRatio: (options.plotGlPixelRatio === undefined) ?\n 2 :\n options.plotGlPixelRatio,\n displaylogo: options.displaylogo || false,\n showLink: options.showLink || false,\n showTips: options.showTips || false,\n mapboxAccessToken: context.mapboxAccessToken\n }\n };\n\n if(options.setBackground !== 'transparent') {\n plotTile.config.setBackground = options.setBackground || 'opaque';\n }\n\n // attaching the default Layout the gd, so you can grab it later\n plotTile.gd.defaultLayout = cloneLayoutOverride(options.tileClass);\n\n return plotTile;\n};\n\n},{\"../lib\":503,\"../registry\":638}],640:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../lib');\n\nvar toImage = _dereq_('../plot_api/to_image');\n\nvar fileSaver = _dereq_('./filesaver');\nvar helpers = _dereq_('./helpers');\n\n/**\n * Plotly.downloadImage\n *\n * @param {object | string | HTML div} gd\n * can either be a data/layout/config object\n * or an existing graph
\n * or an id to an existing graph
\n * @param {object} opts (see Plotly.toImage in ../plot_api/to_image)\n * @return {promise}\n */\nfunction downloadImage(gd, opts) {\n var _gd;\n if(!Lib.isPlainObject(gd)) _gd = Lib.getGraphDiv(gd);\n\n opts = opts || {};\n opts.format = opts.format || 'png';\n opts.width = opts.width || null;\n opts.height = opts.height || null;\n opts.imageDataOnly = true;\n\n return new Promise(function(resolve, reject) {\n if(_gd && _gd._snapshotInProgress) {\n reject(new Error('Snapshotting already in progress.'));\n }\n\n // see comments within svgtoimg for additional\n // discussion of problems with IE\n // can now draw to canvas, but CORS tainted canvas\n // does not allow toDataURL\n // svg format will work though\n if(Lib.isIE() && opts.format !== 'svg') {\n reject(new Error(helpers.MSG_IE_BAD_FORMAT));\n }\n\n if(_gd) _gd._snapshotInProgress = true;\n var promise = toImage(gd, opts);\n\n var filename = opts.filename || gd.fn || 'newplot';\n filename += '.' + opts.format.replace('-', '.');\n\n promise.then(function(result) {\n if(_gd) _gd._snapshotInProgress = false;\n return fileSaver(result, filename, opts.format);\n }).then(function(name) {\n resolve(name);\n }).catch(function(err) {\n if(_gd) _gd._snapshotInProgress = false;\n reject(err);\n });\n });\n}\n\nmodule.exports = downloadImage;\n\n},{\"../lib\":503,\"../plot_api/to_image\":546,\"./filesaver\":641,\"./helpers\":642}],641:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../lib');\nvar helpers = _dereq_('./helpers');\n\n/*\n* substantial portions of this code from FileSaver.js\n* https://github.com/eligrey/FileSaver.js\n* License: https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md\n* FileSaver.js\n* A saveAs() FileSaver implementation.\n* 1.1.20160328\n*\n* By Eli Grey, http://eligrey.com\n* License: MIT\n* See https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md\n*/\nfunction fileSaver(url, name, format) {\n var saveLink = document.createElement('a');\n var canUseSaveLink = 'download' in saveLink;\n\n var promise = new Promise(function(resolve, reject) {\n var blob;\n var objectUrl;\n\n // IE 10+ (native saveAs)\n if(Lib.isIE()) {\n // At this point we are only dealing with a decoded SVG as\n // a data URL (since IE only supports SVG)\n blob = helpers.createBlob(url, 'svg');\n window.navigator.msSaveBlob(blob, name);\n blob = null;\n return resolve(name);\n }\n\n if(canUseSaveLink) {\n blob = helpers.createBlob(url, format);\n objectUrl = helpers.createObjectURL(blob);\n\n saveLink.href = objectUrl;\n saveLink.download = name;\n document.body.appendChild(saveLink);\n saveLink.click();\n\n document.body.removeChild(saveLink);\n helpers.revokeObjectURL(objectUrl);\n blob = null;\n\n return resolve(name);\n }\n\n // Older versions of Safari did not allow downloading of blob urls\n if(Lib.isSafari()) {\n var prefix = format === 'svg' ? ',' : ';base64,';\n helpers.octetStream(prefix + encodeURIComponent(url));\n return resolve(name);\n }\n\n reject(new Error('download error'));\n });\n\n return promise;\n}\n\n\nmodule.exports = fileSaver;\n\n},{\"../lib\":503,\"./helpers\":642}],642:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../registry');\n\nexports.getDelay = function(fullLayout) {\n if(!fullLayout._has) return 0;\n\n return (\n fullLayout._has('gl3d') ||\n fullLayout._has('gl2d') ||\n fullLayout._has('mapbox')\n ) ? 500 : 0;\n};\n\nexports.getRedrawFunc = function(gd) {\n return function() {\n Registry.getComponentMethod('colorbar', 'draw')(gd);\n };\n};\n\nexports.encodeSVG = function(svg) {\n return 'data:image/svg+xml,' + encodeURIComponent(svg);\n};\n\nexports.encodeJSON = function(json) {\n return 'data:application/json,' + encodeURIComponent(json);\n};\n\nvar DOM_URL = window.URL || window.webkitURL;\n\nexports.createObjectURL = function(blob) {\n return DOM_URL.createObjectURL(blob);\n};\n\nexports.revokeObjectURL = function(url) {\n return DOM_URL.revokeObjectURL(url);\n};\n\nexports.createBlob = function(url, format) {\n if(format === 'svg') {\n return new window.Blob([url], {type: 'image/svg+xml;charset=utf-8'});\n } else if(format === 'full-json') {\n return new window.Blob([url], {type: 'application/json;charset=utf-8'});\n } else {\n var binary = fixBinary(window.atob(url));\n return new window.Blob([binary], {type: 'image/' + format});\n }\n};\n\nexports.octetStream = function(s) {\n document.location.href = 'data:application/octet-stream' + s;\n};\n\n// Taken from https://bl.ocks.org/nolanlawson/0eac306e4dac2114c752\nfunction fixBinary(b) {\n var len = b.length;\n var buf = new ArrayBuffer(len);\n var arr = new Uint8Array(buf);\n for(var i = 0; i < len; i++) {\n arr[i] = b.charCodeAt(i);\n }\n return buf;\n}\n\nexports.IMAGE_URL_PREFIX = /^data:image\\/\\w+;base64,/;\n\nexports.MSG_IE_BAD_FORMAT = 'Sorry IE does not support downloading from canvas. Try {format:\\'svg\\'} instead.';\n\n},{\"../registry\":638}],643:[function(_dereq_,module,exports){\n'use strict';\n\nvar helpers = _dereq_('./helpers');\n\nvar Snapshot = {\n getDelay: helpers.getDelay,\n getRedrawFunc: helpers.getRedrawFunc,\n clone: _dereq_('./cloneplot'),\n toSVG: _dereq_('./tosvg'),\n svgToImg: _dereq_('./svgtoimg'),\n toImage: _dereq_('./toimage'),\n downloadImage: _dereq_('./download')\n};\n\nmodule.exports = Snapshot;\n\n},{\"./cloneplot\":639,\"./download\":640,\"./helpers\":642,\"./svgtoimg\":644,\"./toimage\":645,\"./tosvg\":646}],644:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../lib');\nvar EventEmitter = _dereq_('events').EventEmitter;\n\nvar helpers = _dereq_('./helpers');\n\nfunction svgToImg(opts) {\n var ev = opts.emitter || new EventEmitter();\n\n var promise = new Promise(function(resolve, reject) {\n var Image = window.Image;\n var svg = opts.svg;\n var format = opts.format || 'png';\n\n // IE only support svg\n if(Lib.isIE() && format !== 'svg') {\n var ieSvgError = new Error(helpers.MSG_IE_BAD_FORMAT);\n reject(ieSvgError);\n // eventually remove the ev\n // in favor of promises\n if(!opts.promise) {\n return ev.emit('error', ieSvgError);\n } else {\n return promise;\n }\n }\n\n var canvas = opts.canvas;\n var scale = opts.scale || 1;\n var w0 = opts.width || 300;\n var h0 = opts.height || 150;\n var w1 = scale * w0;\n var h1 = scale * h0;\n\n var ctx = canvas.getContext('2d');\n var img = new Image();\n var svgBlob, url;\n\n if(format === 'svg' || Lib.isSafari()) {\n url = helpers.encodeSVG(svg);\n } else {\n svgBlob = helpers.createBlob(svg, 'svg');\n url = helpers.createObjectURL(svgBlob);\n }\n\n canvas.width = w1;\n canvas.height = h1;\n\n img.onload = function() {\n var imgData;\n\n svgBlob = null;\n helpers.revokeObjectURL(url);\n\n // don't need to draw to canvas if svg\n // save some time and also avoid failure on IE\n if(format !== 'svg') {\n ctx.drawImage(img, 0, 0, w1, h1);\n }\n\n switch(format) {\n case 'jpeg':\n imgData = canvas.toDataURL('image/jpeg');\n break;\n case 'png':\n imgData = canvas.toDataURL('image/png');\n break;\n case 'webp':\n imgData = canvas.toDataURL('image/webp');\n break;\n case 'svg':\n imgData = url;\n break;\n default:\n var errorMsg = 'Image format is not jpeg, png, svg or webp.';\n reject(new Error(errorMsg));\n // eventually remove the ev\n // in favor of promises\n if(!opts.promise) {\n return ev.emit('error', errorMsg);\n }\n }\n resolve(imgData);\n // eventually remove the ev\n // in favor of promises\n if(!opts.promise) {\n ev.emit('success', imgData);\n }\n };\n\n img.onerror = function(err) {\n svgBlob = null;\n helpers.revokeObjectURL(url);\n\n reject(err);\n // eventually remove the ev\n // in favor of promises\n if(!opts.promise) {\n return ev.emit('error', err);\n }\n };\n\n img.src = url;\n });\n\n // temporary for backward compatibility\n // move to only Promise in 2.0.0\n // and eliminate the EventEmitter\n if(opts.promise) {\n return promise;\n }\n\n return ev;\n}\n\nmodule.exports = svgToImg;\n\n},{\"../lib\":503,\"./helpers\":642,\"events\":84}],645:[function(_dereq_,module,exports){\n'use strict';\n\nvar EventEmitter = _dereq_('events').EventEmitter;\n\nvar Registry = _dereq_('../registry');\nvar Lib = _dereq_('../lib');\n\nvar helpers = _dereq_('./helpers');\nvar clonePlot = _dereq_('./cloneplot');\nvar toSVG = _dereq_('./tosvg');\nvar svgToImg = _dereq_('./svgtoimg');\n\n/**\n * @param {object} gd figure Object\n * @param {object} opts option object\n * @param opts.format 'jpeg' | 'png' | 'webp' | 'svg'\n */\nfunction toImage(gd, opts) {\n // first clone the GD so we can operate in a clean environment\n var ev = new EventEmitter();\n\n var clone = clonePlot(gd, {format: 'png'});\n var clonedGd = clone.gd;\n\n // put the cloned div somewhere off screen before attaching to DOM\n clonedGd.style.position = 'absolute';\n clonedGd.style.left = '-5000px';\n document.body.appendChild(clonedGd);\n\n function wait() {\n var delay = helpers.getDelay(clonedGd._fullLayout);\n\n setTimeout(function() {\n var svg = toSVG(clonedGd);\n\n var canvas = document.createElement('canvas');\n canvas.id = Lib.randstr();\n\n ev = svgToImg({\n format: opts.format,\n width: clonedGd._fullLayout.width,\n height: clonedGd._fullLayout.height,\n canvas: canvas,\n emitter: ev,\n svg: svg\n });\n\n ev.clean = function() {\n if(clonedGd) document.body.removeChild(clonedGd);\n };\n }, delay);\n }\n\n var redrawFunc = helpers.getRedrawFunc(clonedGd);\n\n Registry.call('_doPlot', clonedGd, clone.data, clone.layout, clone.config)\n .then(redrawFunc)\n .then(wait)\n .catch(function(err) {\n ev.emit('error', err);\n });\n\n\n return ev;\n}\n\nmodule.exports = toImage;\n\n},{\"../lib\":503,\"../registry\":638,\"./cloneplot\":639,\"./helpers\":642,\"./svgtoimg\":644,\"./tosvg\":646,\"events\":84}],646:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Lib = _dereq_('../lib');\nvar Drawing = _dereq_('../components/drawing');\nvar Color = _dereq_('../components/color');\n\nvar xmlnsNamespaces = _dereq_('../constants/xmlns_namespaces');\nvar DOUBLEQUOTE_REGEX = /\"/g;\nvar DUMMY_SUB = 'TOBESTRIPPED';\nvar DUMMY_REGEX = new RegExp('(\"' + DUMMY_SUB + ')|(' + DUMMY_SUB + '\")', 'g');\n\nfunction htmlEntityDecode(s) {\n var hiddenDiv = d3.select('body').append('div').style({display: 'none'}).html('');\n var replaced = s.replace(/(&[^;]*;)/gi, function(d) {\n if(d === '<') { return '<'; } // special handling for brackets\n if(d === '&rt;') { return '>'; }\n if(d.indexOf('<') !== -1 || d.indexOf('>') !== -1) { return ''; }\n return hiddenDiv.html(d).text(); // everything else, let the browser decode it to unicode\n });\n hiddenDiv.remove();\n return replaced;\n}\n\nfunction xmlEntityEncode(str) {\n return str.replace(/&(?!\\w+;|\\#[0-9]+;| \\#x[0-9A-F]+;)/g, '&');\n}\n\nmodule.exports = function toSVG(gd, format, scale) {\n var fullLayout = gd._fullLayout;\n var svg = fullLayout._paper;\n var toppaper = fullLayout._toppaper;\n var width = fullLayout.width;\n var height = fullLayout.height;\n var i, k;\n\n // make background color a rect in the svg, then revert after scraping\n // all other alterations have been dealt with by properly preparing the svg\n // in the first place... like setting cursors with css classes so we don't\n // have to remove them, and providing the right namespaces in the svg to\n // begin with\n svg.insert('rect', ':first-child')\n .call(Drawing.setRect, 0, 0, width, height)\n .call(Color.fill, fullLayout.paper_bgcolor);\n\n // subplot-specific to-SVG methods\n // which notably add the contents of the gl-container\n // into the main svg node\n var basePlotModules = fullLayout._basePlotModules || [];\n for(i = 0; i < basePlotModules.length; i++) {\n var _module = basePlotModules[i];\n\n if(_module.toSVG) _module.toSVG(gd);\n }\n\n // add top items above them assumes everything in toppaper is either\n // a group or a defs, and if it's empty (like hoverlayer) we can ignore it.\n if(toppaper) {\n var nodes = toppaper.node().childNodes;\n\n // make copy of nodes as childNodes prop gets mutated in loop below\n var topGroups = Array.prototype.slice.call(nodes);\n\n for(i = 0; i < topGroups.length; i++) {\n var topGroup = topGroups[i];\n\n if(topGroup.childNodes.length) svg.node().appendChild(topGroup);\n }\n }\n\n // remove draglayer for Adobe Illustrator compatibility\n if(fullLayout._draggers) {\n fullLayout._draggers.remove();\n }\n\n // in case the svg element had an explicit background color, remove this\n // we want the rect to get the color so it's the right size; svg bg will\n // fill whatever container it's displayed in regardless of plot size.\n svg.node().style.background = '';\n\n svg.selectAll('text')\n .attr({'data-unformatted': null, 'data-math': null})\n .each(function() {\n var txt = d3.select(this);\n\n // hidden text is pre-formatting mathjax, the browser ignores it\n // but in a static plot it's useless and it can confuse batik\n // we've tried to standardize on display:none but make sure we still\n // catch visibility:hidden if it ever arises\n if(this.style.visibility === 'hidden' || this.style.display === 'none') {\n txt.remove();\n return;\n } else {\n // clear other visibility/display values to default\n // to not potentially confuse non-browser SVG implementations\n txt.style({visibility: null, display: null});\n }\n\n // Font family styles break things because of quotation marks,\n // so we must remove them *after* the SVG DOM has been serialized\n // to a string (browsers convert singles back)\n var ff = this.style.fontFamily;\n if(ff && ff.indexOf('\"') !== -1) {\n txt.style('font-family', ff.replace(DOUBLEQUOTE_REGEX, DUMMY_SUB));\n }\n });\n\n var queryParts = [];\n if(fullLayout._gradientUrlQueryParts) {\n for(k in fullLayout._gradientUrlQueryParts) queryParts.push(k);\n }\n\n if(fullLayout._patternUrlQueryParts) {\n for(k in fullLayout._patternUrlQueryParts) queryParts.push(k);\n }\n\n if(queryParts.length) {\n svg.selectAll(queryParts.join(',')).each(function() {\n var pt = d3.select(this);\n\n // similar to font family styles above,\n // we must remove \" after the SVG DOM has been serialized\n var fill = this.style.fill;\n if(fill && fill.indexOf('url(') !== -1) {\n pt.style('fill', fill.replace(DOUBLEQUOTE_REGEX, DUMMY_SUB));\n }\n\n var stroke = this.style.stroke;\n if(stroke && stroke.indexOf('url(') !== -1) {\n pt.style('stroke', stroke.replace(DOUBLEQUOTE_REGEX, DUMMY_SUB));\n }\n });\n }\n\n if(format === 'pdf' || format === 'eps') {\n // these formats make the extra line MathJax adds around symbols look super thick in some cases\n // it looks better if this is removed entirely.\n svg.selectAll('#MathJax_SVG_glyphs path')\n .attr('stroke-width', 0);\n }\n\n // fix for IE namespacing quirk?\n // http://stackoverflow.com/questions/19610089/unwanted-namespaces-on-svg-markup-when-using-xmlserializer-in-javascript-with-ie\n svg.node().setAttributeNS(xmlnsNamespaces.xmlns, 'xmlns', xmlnsNamespaces.svg);\n svg.node().setAttributeNS(xmlnsNamespaces.xmlns, 'xmlns:xlink', xmlnsNamespaces.xlink);\n\n if(format === 'svg' && scale) {\n svg.attr('width', scale * width);\n svg.attr('height', scale * height);\n svg.attr('viewBox', '0 0 ' + width + ' ' + height);\n }\n\n var s = new window.XMLSerializer().serializeToString(svg.node());\n s = htmlEntityDecode(s);\n s = xmlEntityEncode(s);\n\n // Fix quotations around font strings and gradient URLs\n s = s.replace(DUMMY_REGEX, '\\'');\n\n // Do we need this process now that IE9 and IE10 are not supported?\n\n // IE is very strict, so we will need to clean\n // svg with the following regex\n // yes this is messy, but do not know a better way\n // Even with this IE will not work due to tainted canvas\n // see https://github.com/kangax/fabric.js/issues/1957\n // http://stackoverflow.com/questions/18112047/canvas-todataurl-working-in-all-browsers-except-ie10\n // Leave here just in case the CORS/tainted IE issue gets resolved\n if(Lib.isIE()) {\n // replace double quote with single quote\n s = s.replace(/\"/gi, '\\'');\n // url in svg are single quoted\n // since we changed double to single\n // we'll need to change these to double-quoted\n s = s.replace(/(\\('#)([^']*)('\\))/gi, '(\\\"#$2\\\")');\n // font names with spaces will be escaped single-quoted\n // we'll need to change these to double-quoted\n s = s.replace(/(\\\\')/gi, '\\\"');\n }\n\n return s;\n};\n\n},{\"../components/color\":366,\"../components/drawing\":388,\"../constants/xmlns_namespaces\":480,\"../lib\":503,\"@plotly/d3\":58}],647:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\n// arrayOk attributes, merge them into calcdata array\nmodule.exports = function arraysToCalcdata(cd, trace) {\n for(var i = 0; i < cd.length; i++) cd[i].i = i;\n\n Lib.mergeArray(trace.text, cd, 'tx');\n Lib.mergeArray(trace.hovertext, cd, 'htx');\n\n var marker = trace.marker;\n if(marker) {\n Lib.mergeArray(marker.opacity, cd, 'mo', true);\n Lib.mergeArray(marker.color, cd, 'mc');\n\n var markerLine = marker.line;\n if(markerLine) {\n Lib.mergeArray(markerLine.color, cd, 'mlc');\n Lib.mergeArrayCastPositive(markerLine.width, cd, 'mlw');\n }\n }\n};\n\n},{\"../../lib\":503}],648:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterAttrs = _dereq_('../scatter/attributes');\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar constants = _dereq_('./constants');\nvar pattern = _dereq_('../../components/drawing/attributes').pattern;\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nvar textFontAttrs = fontAttrs({\n editType: 'calc',\n arrayOk: true,\n colorEditType: 'style',\n});\n\nvar scatterMarkerAttrs = scatterAttrs.marker;\nvar scatterMarkerLineAttrs = scatterMarkerAttrs.line;\n\nvar markerLineWidth = extendFlat({},\n scatterMarkerLineAttrs.width, { dflt: 0 });\n\nvar markerLine = extendFlat({\n width: markerLineWidth,\n editType: 'calc'\n}, colorScaleAttrs('marker.line'));\n\nvar marker = extendFlat({\n line: markerLine,\n editType: 'calc'\n}, colorScaleAttrs('marker'), {\n opacity: {\n valType: 'number',\n arrayOk: true,\n dflt: 1,\n min: 0,\n max: 1,\n editType: 'style',\n },\n pattern: pattern\n});\n\nmodule.exports = {\n x: scatterAttrs.x,\n x0: scatterAttrs.x0,\n dx: scatterAttrs.dx,\n y: scatterAttrs.y,\n y0: scatterAttrs.y0,\n dy: scatterAttrs.dy,\n\n xperiod: scatterAttrs.xperiod,\n yperiod: scatterAttrs.yperiod,\n xperiod0: scatterAttrs.xperiod0,\n yperiod0: scatterAttrs.yperiod0,\n xperiodalignment: scatterAttrs.xperiodalignment,\n yperiodalignment: scatterAttrs.yperiodalignment,\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n\n text: scatterAttrs.text,\n texttemplate: texttemplateAttrs({editType: 'plot'}, {\n keys: constants.eventDataKeys\n }),\n hovertext: scatterAttrs.hovertext,\n hovertemplate: hovertemplateAttrs({}, {\n keys: constants.eventDataKeys\n }),\n\n textposition: {\n valType: 'enumerated',\n values: ['inside', 'outside', 'auto', 'none'],\n dflt: 'auto',\n arrayOk: true,\n editType: 'calc',\n },\n\n insidetextanchor: {\n valType: 'enumerated',\n values: ['end', 'middle', 'start'],\n dflt: 'end',\n editType: 'plot',\n },\n\n textangle: {\n valType: 'angle',\n dflt: 'auto',\n editType: 'plot',\n },\n\n textfont: extendFlat({}, textFontAttrs, {\n }),\n\n insidetextfont: extendFlat({}, textFontAttrs, {\n }),\n\n outsidetextfont: extendFlat({}, textFontAttrs, {\n }),\n\n constraintext: {\n valType: 'enumerated',\n values: ['inside', 'outside', 'both', 'none'],\n dflt: 'both',\n editType: 'calc',\n },\n\n cliponaxis: extendFlat({}, scatterAttrs.cliponaxis, {\n }),\n\n orientation: {\n valType: 'enumerated',\n values: ['v', 'h'],\n editType: 'calc+clearAxisTypes',\n },\n\n base: {\n valType: 'any',\n dflt: null,\n arrayOk: true,\n editType: 'calc',\n },\n\n offset: {\n valType: 'number',\n dflt: null,\n arrayOk: true,\n editType: 'calc',\n },\n\n width: {\n valType: 'number',\n dflt: null,\n min: 0,\n arrayOk: true,\n editType: 'calc',\n },\n\n marker: marker,\n\n offsetgroup: {\n valType: 'string',\n dflt: '',\n editType: 'calc',\n },\n alignmentgroup: {\n valType: 'string',\n dflt: '',\n editType: 'calc',\n },\n\n selected: {\n marker: {\n opacity: scatterAttrs.selected.marker.opacity,\n color: scatterAttrs.selected.marker.color,\n editType: 'style'\n },\n textfont: scatterAttrs.selected.textfont,\n editType: 'style'\n },\n unselected: {\n marker: {\n opacity: scatterAttrs.unselected.marker.opacity,\n color: scatterAttrs.unselected.marker.color,\n editType: 'style'\n },\n textfont: scatterAttrs.unselected.textfont,\n editType: 'style'\n },\n\n _deprecated: {\n bardir: {\n valType: 'enumerated',\n editType: 'calc',\n values: ['v', 'h'],\n }\n }\n};\n\n},{\"../../components/colorscale/attributes\":373,\"../../components/drawing/attributes\":387,\"../../lib/extend\":493,\"../../plots/cartesian/axis_format_attributes\":557,\"../../plots/font_attributes\":585,\"../../plots/template_attributes\":633,\"../scatter/attributes\":925,\"./constants\":650}],649:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar alignPeriod = _dereq_('../../plots/cartesian/align_period');\nvar hasColorscale = _dereq_('../../components/colorscale/helpers').hasColorscale;\nvar colorscaleCalc = _dereq_('../../components/colorscale/calc');\nvar arraysToCalcdata = _dereq_('./arrays_to_calcdata');\nvar calcSelection = _dereq_('../scatter/calc_selection');\n\nmodule.exports = function calc(gd, trace) {\n var xa = Axes.getFromId(gd, trace.xaxis || 'x');\n var ya = Axes.getFromId(gd, trace.yaxis || 'y');\n var size, pos, origPos, pObj, hasPeriod, pLetter;\n\n var sizeOpts = {\n msUTC: !!(trace.base || trace.base === 0)\n };\n\n if(trace.orientation === 'h') {\n size = xa.makeCalcdata(trace, 'x', sizeOpts);\n origPos = ya.makeCalcdata(trace, 'y');\n pObj = alignPeriod(trace, ya, 'y', origPos);\n hasPeriod = !!trace.yperiodalignment;\n pLetter = 'y';\n } else {\n size = ya.makeCalcdata(trace, 'y', sizeOpts);\n origPos = xa.makeCalcdata(trace, 'x');\n pObj = alignPeriod(trace, xa, 'x', origPos);\n hasPeriod = !!trace.xperiodalignment;\n pLetter = 'x';\n }\n pos = pObj.vals;\n\n // create the \"calculated data\" to plot\n var serieslen = Math.min(pos.length, size.length);\n var cd = new Array(serieslen);\n\n // set position and size\n for(var i = 0; i < serieslen; i++) {\n cd[i] = { p: pos[i], s: size[i] };\n\n if(hasPeriod) {\n cd[i].orig_p = origPos[i]; // used by hover\n cd[i][pLetter + 'End'] = pObj.ends[i];\n cd[i][pLetter + 'Start'] = pObj.starts[i];\n }\n\n if(trace.ids) {\n cd[i].id = String(trace.ids[i]);\n }\n }\n\n // auto-z and autocolorscale if applicable\n if(hasColorscale(trace, 'marker')) {\n colorscaleCalc(gd, trace, {\n vals: trace.marker.color,\n containerStr: 'marker',\n cLetter: 'c'\n });\n }\n if(hasColorscale(trace, 'marker.line')) {\n colorscaleCalc(gd, trace, {\n vals: trace.marker.line.color,\n containerStr: 'marker.line',\n cLetter: 'c'\n });\n }\n\n arraysToCalcdata(cd, trace);\n calcSelection(cd, trace);\n\n return cd;\n};\n\n},{\"../../components/colorscale/calc\":374,\"../../components/colorscale/helpers\":377,\"../../plots/cartesian/align_period\":551,\"../../plots/cartesian/axes\":554,\"../scatter/calc_selection\":927,\"./arrays_to_calcdata\":647}],650:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n // padding in pixels around text\n TEXTPAD: 3,\n // 'value' and 'label' are not really necessary for bar traces,\n // but they were made available to `texttemplate` (maybe by accident)\n // via tokens `%{value}` and `%{label}` starting in 1.50.0,\n // so let's include them in the event data also.\n eventDataKeys: ['value', 'label']\n};\n\n},{}],651:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar isArrayOrTypedArray = _dereq_('../../lib').isArrayOrTypedArray;\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nvar Registry = _dereq_('../../registry');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar getAxisGroup = _dereq_('../../plots/cartesian/constraints').getAxisGroup;\nvar Sieve = _dereq_('./sieve.js');\n\n/*\n * Bar chart stacking/grouping positioning and autoscaling calculations\n * for each direction separately calculate the ranges and positions\n * note that this handles histograms too\n * now doing this one subplot at a time\n */\n\nfunction crossTraceCalc(gd, plotinfo) {\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n\n var fullLayout = gd._fullLayout;\n var fullTraces = gd._fullData;\n var calcTraces = gd.calcdata;\n var calcTracesHorz = [];\n var calcTracesVert = [];\n\n for(var i = 0; i < fullTraces.length; i++) {\n var fullTrace = fullTraces[i];\n if(\n fullTrace.visible === true &&\n Registry.traceIs(fullTrace, 'bar') &&\n fullTrace.xaxis === xa._id &&\n fullTrace.yaxis === ya._id\n ) {\n if(fullTrace.orientation === 'h') {\n calcTracesHorz.push(calcTraces[i]);\n } else {\n calcTracesVert.push(calcTraces[i]);\n }\n\n if(fullTrace._computePh) {\n var cd = gd.calcdata[i];\n for(var j = 0; j < cd.length; j++) {\n if(typeof cd[j].ph0 === 'function') cd[j].ph0 = cd[j].ph0();\n if(typeof cd[j].ph1 === 'function') cd[j].ph1 = cd[j].ph1();\n }\n }\n }\n }\n\n var opts = {\n xCat: xa.type === 'category' || xa.type === 'multicategory',\n yCat: ya.type === 'category' || ya.type === 'multicategory',\n\n mode: fullLayout.barmode,\n norm: fullLayout.barnorm,\n gap: fullLayout.bargap,\n groupgap: fullLayout.bargroupgap\n };\n\n setGroupPositions(gd, xa, ya, calcTracesVert, opts);\n setGroupPositions(gd, ya, xa, calcTracesHorz, opts);\n}\n\nfunction setGroupPositions(gd, pa, sa, calcTraces, opts) {\n if(!calcTraces.length) return;\n\n var excluded;\n var included;\n var i, calcTrace, fullTrace;\n\n initBase(sa, calcTraces);\n\n switch(opts.mode) {\n case 'overlay':\n setGroupPositionsInOverlayMode(pa, sa, calcTraces, opts);\n break;\n\n case 'group':\n // exclude from the group those traces for which the user set an offset\n excluded = [];\n included = [];\n for(i = 0; i < calcTraces.length; i++) {\n calcTrace = calcTraces[i];\n fullTrace = calcTrace[0].trace;\n\n if(fullTrace.offset === undefined) included.push(calcTrace);\n else excluded.push(calcTrace);\n }\n\n if(included.length) {\n setGroupPositionsInGroupMode(gd, pa, sa, included, opts);\n }\n if(excluded.length) {\n setGroupPositionsInOverlayMode(pa, sa, excluded, opts);\n }\n break;\n\n case 'stack':\n case 'relative':\n // exclude from the stack those traces for which the user set a base\n excluded = [];\n included = [];\n for(i = 0; i < calcTraces.length; i++) {\n calcTrace = calcTraces[i];\n fullTrace = calcTrace[0].trace;\n\n if(fullTrace.base === undefined) included.push(calcTrace);\n else excluded.push(calcTrace);\n }\n\n if(included.length) {\n setGroupPositionsInStackOrRelativeMode(gd, pa, sa, included, opts);\n }\n if(excluded.length) {\n setGroupPositionsInOverlayMode(pa, sa, excluded, opts);\n }\n break;\n }\n\n collectExtents(calcTraces, pa);\n}\n\nfunction initBase(sa, calcTraces) {\n var i, j;\n\n for(i = 0; i < calcTraces.length; i++) {\n var cd = calcTraces[i];\n var trace = cd[0].trace;\n var base = (trace.type === 'funnel') ? trace._base : trace.base;\n var b;\n\n // not sure if it really makes sense to have dates for bar size data...\n // ideally if we want to make gantt charts or something we'd treat\n // the actual size (trace.x or y) as time delta but base as absolute\n // time. But included here for completeness.\n var scalendar = trace.orientation === 'h' ? trace.xcalendar : trace.ycalendar;\n\n // 'base' on categorical axes makes no sense\n var d2c = sa.type === 'category' || sa.type === 'multicategory' ?\n function() { return null; } :\n sa.d2c;\n\n if(isArrayOrTypedArray(base)) {\n for(j = 0; j < Math.min(base.length, cd.length); j++) {\n b = d2c(base[j], 0, scalendar);\n if(isNumeric(b)) {\n cd[j].b = +b;\n cd[j].hasB = 1;\n } else cd[j].b = 0;\n }\n for(; j < cd.length; j++) {\n cd[j].b = 0;\n }\n } else {\n b = d2c(base, 0, scalendar);\n var hasBase = isNumeric(b);\n b = hasBase ? b : 0;\n for(j = 0; j < cd.length; j++) {\n cd[j].b = b;\n if(hasBase) cd[j].hasB = 1;\n }\n }\n }\n}\n\nfunction setGroupPositionsInOverlayMode(pa, sa, calcTraces, opts) {\n // update position axis and set bar offsets and widths\n for(var i = 0; i < calcTraces.length; i++) {\n var calcTrace = calcTraces[i];\n\n var sieve = new Sieve([calcTrace], {\n posAxis: pa,\n sepNegVal: false,\n overlapNoMerge: !opts.norm\n });\n\n // set bar offsets and widths, and update position axis\n setOffsetAndWidth(pa, sieve, opts);\n\n // set bar bases and sizes, and update size axis\n //\n // (note that `setGroupPositionsInOverlayMode` handles the case barnorm\n // is defined, because this function is also invoked for traces that\n // can't be grouped or stacked)\n if(opts.norm) {\n sieveBars(sieve);\n normalizeBars(sa, sieve, opts);\n } else {\n setBaseAndTop(sa, sieve);\n }\n }\n}\n\nfunction setGroupPositionsInGroupMode(gd, pa, sa, calcTraces, opts) {\n var sieve = new Sieve(calcTraces, {\n posAxis: pa,\n sepNegVal: false,\n overlapNoMerge: !opts.norm\n });\n\n // set bar offsets and widths, and update position axis\n setOffsetAndWidthInGroupMode(gd, pa, sieve, opts);\n\n // relative-stack bars within the same trace that would otherwise\n // be hidden\n unhideBarsWithinTrace(sieve, pa);\n\n // set bar bases and sizes, and update size axis\n if(opts.norm) {\n sieveBars(sieve);\n normalizeBars(sa, sieve, opts);\n } else {\n setBaseAndTop(sa, sieve);\n }\n}\n\nfunction setGroupPositionsInStackOrRelativeMode(gd, pa, sa, calcTraces, opts) {\n var sieve = new Sieve(calcTraces, {\n posAxis: pa,\n sepNegVal: opts.mode === 'relative',\n overlapNoMerge: !(opts.norm || opts.mode === 'stack' || opts.mode === 'relative')\n });\n\n // set bar offsets and widths, and update position axis\n setOffsetAndWidth(pa, sieve, opts);\n\n // set bar bases and sizes, and update size axis\n stackBars(sa, sieve, opts);\n\n // flag the outmost bar (for text display purposes)\n for(var i = 0; i < calcTraces.length; i++) {\n var calcTrace = calcTraces[i];\n\n for(var j = 0; j < calcTrace.length; j++) {\n var bar = calcTrace[j];\n\n if(bar.s !== BADNUM) {\n var isOutmostBar = ((bar.b + bar.s) === sieve.get(bar.p, bar.s));\n if(isOutmostBar) bar._outmost = true;\n }\n }\n }\n\n // Note that marking the outmost bars has to be done\n // before `normalizeBars` changes `bar.b` and `bar.s`.\n if(opts.norm) normalizeBars(sa, sieve, opts);\n}\n\nfunction setOffsetAndWidth(pa, sieve, opts) {\n var minDiff = sieve.minDiff;\n var calcTraces = sieve.traces;\n\n // set bar offsets and widths\n var barGroupWidth = minDiff * (1 - opts.gap);\n var barWidthPlusGap = barGroupWidth;\n var barWidth = barWidthPlusGap * (1 - (opts.groupgap || 0));\n\n // computer bar group center and bar offset\n var offsetFromCenter = -barWidth / 2;\n\n for(var i = 0; i < calcTraces.length; i++) {\n var calcTrace = calcTraces[i];\n var t = calcTrace[0].t;\n\n // store bar width and offset for this trace\n t.barwidth = barWidth;\n t.poffset = offsetFromCenter;\n t.bargroupwidth = barGroupWidth;\n t.bardelta = minDiff;\n }\n\n // stack bars that only differ by rounding\n sieve.binWidth = calcTraces[0][0].t.barwidth / 100;\n\n // if defined, apply trace offset and width\n applyAttributes(sieve);\n\n // store the bar center in each calcdata item\n setBarCenterAndWidth(pa, sieve);\n\n // update position axes\n updatePositionAxis(pa, sieve);\n}\n\nfunction setOffsetAndWidthInGroupMode(gd, pa, sieve, opts) {\n var fullLayout = gd._fullLayout;\n var positions = sieve.positions;\n var distinctPositions = sieve.distinctPositions;\n var minDiff = sieve.minDiff;\n var calcTraces = sieve.traces;\n var nTraces = calcTraces.length;\n\n // if there aren't any overlapping positions,\n // let them have full width even if mode is group\n var overlap = (positions.length !== distinctPositions.length);\n var barGroupWidth = minDiff * (1 - opts.gap);\n\n var groupId = getAxisGroup(fullLayout, pa._id) + calcTraces[0][0].trace.orientation;\n var alignmentGroups = fullLayout._alignmentOpts[groupId] || {};\n\n for(var i = 0; i < nTraces; i++) {\n var calcTrace = calcTraces[i];\n var trace = calcTrace[0].trace;\n\n var alignmentGroupOpts = alignmentGroups[trace.alignmentgroup] || {};\n var nOffsetGroups = Object.keys(alignmentGroupOpts.offsetGroups || {}).length;\n\n var barWidthPlusGap;\n if(nOffsetGroups) {\n barWidthPlusGap = barGroupWidth / nOffsetGroups;\n } else {\n barWidthPlusGap = overlap ? barGroupWidth / nTraces : barGroupWidth;\n }\n\n var barWidth = barWidthPlusGap * (1 - (opts.groupgap || 0));\n\n var offsetFromCenter;\n if(nOffsetGroups) {\n offsetFromCenter = ((2 * trace._offsetIndex + 1 - nOffsetGroups) * barWidthPlusGap - barWidth) / 2;\n } else {\n offsetFromCenter = overlap ?\n ((2 * i + 1 - nTraces) * barWidthPlusGap - barWidth) / 2 :\n -barWidth / 2;\n }\n\n var t = calcTrace[0].t;\n t.barwidth = barWidth;\n t.poffset = offsetFromCenter;\n t.bargroupwidth = barGroupWidth;\n t.bardelta = minDiff;\n }\n\n // stack bars that only differ by rounding\n sieve.binWidth = calcTraces[0][0].t.barwidth / 100;\n\n // if defined, apply trace width\n applyAttributes(sieve);\n\n // store the bar center in each calcdata item\n setBarCenterAndWidth(pa, sieve);\n\n // update position axes\n updatePositionAxis(pa, sieve, overlap);\n}\n\nfunction applyAttributes(sieve) {\n var calcTraces = sieve.traces;\n var i, j;\n\n for(i = 0; i < calcTraces.length; i++) {\n var calcTrace = calcTraces[i];\n var calcTrace0 = calcTrace[0];\n var fullTrace = calcTrace0.trace;\n var t = calcTrace0.t;\n var offset = fullTrace._offset || fullTrace.offset;\n var initialPoffset = t.poffset;\n var newPoffset;\n\n if(isArrayOrTypedArray(offset)) {\n // if offset is an array, then clone it into t.poffset.\n newPoffset = Array.prototype.slice.call(offset, 0, calcTrace.length);\n\n // guard against non-numeric items\n for(j = 0; j < newPoffset.length; j++) {\n if(!isNumeric(newPoffset[j])) {\n newPoffset[j] = initialPoffset;\n }\n }\n\n // if the length of the array is too short,\n // then extend it with the initial value of t.poffset\n for(j = newPoffset.length; j < calcTrace.length; j++) {\n newPoffset.push(initialPoffset);\n }\n\n t.poffset = newPoffset;\n } else if(offset !== undefined) {\n t.poffset = offset;\n }\n\n var width = fullTrace._width || fullTrace.width;\n var initialBarwidth = t.barwidth;\n\n if(isArrayOrTypedArray(width)) {\n // if width is an array, then clone it into t.barwidth.\n var newBarwidth = Array.prototype.slice.call(width, 0, calcTrace.length);\n\n // guard against non-numeric items\n for(j = 0; j < newBarwidth.length; j++) {\n if(!isNumeric(newBarwidth[j])) newBarwidth[j] = initialBarwidth;\n }\n\n // if the length of the array is too short,\n // then extend it with the initial value of t.barwidth\n for(j = newBarwidth.length; j < calcTrace.length; j++) {\n newBarwidth.push(initialBarwidth);\n }\n\n t.barwidth = newBarwidth;\n\n // if user didn't set offset,\n // then correct t.poffset to ensure bars remain centered\n if(offset === undefined) {\n newPoffset = [];\n for(j = 0; j < calcTrace.length; j++) {\n newPoffset.push(\n initialPoffset + (initialBarwidth - newBarwidth[j]) / 2\n );\n }\n t.poffset = newPoffset;\n }\n } else if(width !== undefined) {\n t.barwidth = width;\n\n // if user didn't set offset,\n // then correct t.poffset to ensure bars remain centered\n if(offset === undefined) {\n t.poffset = initialPoffset + (initialBarwidth - width) / 2;\n }\n }\n }\n}\n\nfunction setBarCenterAndWidth(pa, sieve) {\n var calcTraces = sieve.traces;\n var pLetter = getAxisLetter(pa);\n\n for(var i = 0; i < calcTraces.length; i++) {\n var calcTrace = calcTraces[i];\n var t = calcTrace[0].t;\n var poffset = t.poffset;\n var poffsetIsArray = Array.isArray(poffset);\n var barwidth = t.barwidth;\n var barwidthIsArray = Array.isArray(barwidth);\n\n for(var j = 0; j < calcTrace.length; j++) {\n var calcBar = calcTrace[j];\n\n // store the actual bar width and position, for use by hover\n var width = calcBar.w = barwidthIsArray ? barwidth[j] : barwidth;\n calcBar[pLetter] = calcBar.p + (poffsetIsArray ? poffset[j] : poffset) + width / 2;\n }\n }\n}\n\nfunction updatePositionAxis(pa, sieve, allowMinDtick) {\n var calcTraces = sieve.traces;\n var minDiff = sieve.minDiff;\n var vpad = minDiff / 2;\n\n Axes.minDtick(pa, sieve.minDiff, sieve.distinctPositions[0], allowMinDtick);\n\n for(var i = 0; i < calcTraces.length; i++) {\n var calcTrace = calcTraces[i];\n var calcTrace0 = calcTrace[0];\n var fullTrace = calcTrace0.trace;\n var pts = [];\n var bar, l, r, j;\n\n for(j = 0; j < calcTrace.length; j++) {\n bar = calcTrace[j];\n l = bar.p - vpad;\n r = bar.p + vpad;\n pts.push(l, r);\n }\n\n if(fullTrace.width || fullTrace.offset) {\n var t = calcTrace0.t;\n var poffset = t.poffset;\n var barwidth = t.barwidth;\n var poffsetIsArray = Array.isArray(poffset);\n var barwidthIsArray = Array.isArray(barwidth);\n\n for(j = 0; j < calcTrace.length; j++) {\n bar = calcTrace[j];\n var calcBarOffset = poffsetIsArray ? poffset[j] : poffset;\n var calcBarWidth = barwidthIsArray ? barwidth[j] : barwidth;\n l = bar.p + calcBarOffset;\n r = l + calcBarWidth;\n pts.push(l, r);\n }\n }\n\n fullTrace._extremes[pa._id] = Axes.findExtremes(pa, pts, {padded: false});\n }\n}\n\n// store these bar bases and tops in calcdata\n// and make sure the size axis includes zero,\n// along with the bases and tops of each bar.\nfunction setBaseAndTop(sa, sieve) {\n var calcTraces = sieve.traces;\n var sLetter = getAxisLetter(sa);\n\n for(var i = 0; i < calcTraces.length; i++) {\n var calcTrace = calcTraces[i];\n var fullTrace = calcTrace[0].trace;\n var pts = [];\n var tozero = false;\n\n for(var j = 0; j < calcTrace.length; j++) {\n var bar = calcTrace[j];\n var base = bar.b;\n var top = base + bar.s;\n\n bar[sLetter] = top;\n pts.push(top);\n if(bar.hasB) pts.push(base);\n\n if(!bar.hasB || !bar.b) {\n tozero = true;\n }\n }\n\n fullTrace._extremes[sa._id] = Axes.findExtremes(sa, pts, {\n tozero: tozero,\n padded: true\n });\n }\n}\n\nfunction stackBars(sa, sieve, opts) {\n var sLetter = getAxisLetter(sa);\n var calcTraces = sieve.traces;\n var calcTrace;\n var fullTrace;\n var isFunnel;\n var i, j;\n var bar;\n\n for(i = 0; i < calcTraces.length; i++) {\n calcTrace = calcTraces[i];\n fullTrace = calcTrace[0].trace;\n\n if(fullTrace.type === 'funnel') {\n for(j = 0; j < calcTrace.length; j++) {\n bar = calcTrace[j];\n\n if(bar.s !== BADNUM) {\n // create base of funnels\n sieve.put(bar.p, -0.5 * bar.s);\n }\n }\n }\n }\n\n for(i = 0; i < calcTraces.length; i++) {\n calcTrace = calcTraces[i];\n fullTrace = calcTrace[0].trace;\n\n isFunnel = (fullTrace.type === 'funnel');\n\n var pts = [];\n\n for(j = 0; j < calcTrace.length; j++) {\n bar = calcTrace[j];\n\n if(bar.s !== BADNUM) {\n // stack current bar and get previous sum\n var value;\n if(isFunnel) {\n value = bar.s;\n } else {\n value = bar.s + bar.b;\n }\n\n var base = sieve.put(bar.p, value);\n\n var top = base + value;\n\n // store the bar base and top in each calcdata item\n bar.b = base;\n bar[sLetter] = top;\n\n if(!opts.norm) {\n pts.push(top);\n if(bar.hasB) {\n pts.push(base);\n }\n }\n }\n }\n\n // if barnorm is set, let normalizeBars update the axis range\n if(!opts.norm) {\n fullTrace._extremes[sa._id] = Axes.findExtremes(sa, pts, {\n // N.B. we don't stack base with 'base',\n // so set tozero:true always!\n tozero: true,\n padded: true\n });\n }\n }\n}\n\nfunction sieveBars(sieve) {\n var calcTraces = sieve.traces;\n\n for(var i = 0; i < calcTraces.length; i++) {\n var calcTrace = calcTraces[i];\n\n for(var j = 0; j < calcTrace.length; j++) {\n var bar = calcTrace[j];\n\n if(bar.s !== BADNUM) {\n sieve.put(bar.p, bar.b + bar.s);\n }\n }\n }\n}\n\nfunction unhideBarsWithinTrace(sieve, pa) {\n var calcTraces = sieve.traces;\n\n for(var i = 0; i < calcTraces.length; i++) {\n var calcTrace = calcTraces[i];\n var fullTrace = calcTrace[0].trace;\n\n if(fullTrace.base === undefined) {\n var inTraceSieve = new Sieve([calcTrace], {\n posAxis: pa,\n sepNegVal: true,\n overlapNoMerge: true\n });\n\n for(var j = 0; j < calcTrace.length; j++) {\n var bar = calcTrace[j];\n\n if(bar.p !== BADNUM) {\n // stack current bar and get previous sum\n var base = inTraceSieve.put(bar.p, bar.b + bar.s);\n\n // if previous sum if non-zero, this means:\n // multiple bars have same starting point are potentially hidden,\n // shift them vertically so that all bars are visible by default\n if(base) bar.b = base;\n }\n }\n }\n }\n}\n\n// Note:\n//\n// normalizeBars requires that either sieveBars or stackBars has been\n// previously invoked.\nfunction normalizeBars(sa, sieve, opts) {\n var calcTraces = sieve.traces;\n var sLetter = getAxisLetter(sa);\n var sTop = opts.norm === 'fraction' ? 1 : 100;\n var sTiny = sTop / 1e9; // in case of rounding error in sum\n var sMin = sa.l2c(sa.c2l(0));\n var sMax = opts.mode === 'stack' ? sTop : sMin;\n\n function needsPadding(v) {\n return (\n isNumeric(sa.c2l(v)) &&\n ((v < sMin - sTiny) || (v > sMax + sTiny) || !isNumeric(sMin))\n );\n }\n\n for(var i = 0; i < calcTraces.length; i++) {\n var calcTrace = calcTraces[i];\n var fullTrace = calcTrace[0].trace;\n var pts = [];\n var tozero = false;\n var padded = false;\n\n for(var j = 0; j < calcTrace.length; j++) {\n var bar = calcTrace[j];\n\n if(bar.s !== BADNUM) {\n var scale = Math.abs(sTop / sieve.get(bar.p, bar.s));\n bar.b *= scale;\n bar.s *= scale;\n\n var base = bar.b;\n var top = base + bar.s;\n\n bar[sLetter] = top;\n pts.push(top);\n padded = padded || needsPadding(top);\n\n if(bar.hasB) {\n pts.push(base);\n padded = padded || needsPadding(base);\n }\n\n if(!bar.hasB || !bar.b) {\n tozero = true;\n }\n }\n }\n\n fullTrace._extremes[sa._id] = Axes.findExtremes(sa, pts, {\n tozero: tozero,\n padded: padded\n });\n }\n}\n\n// find the full position span of bars at each position\n// for use by hover, to ensure labels move in if bars are\n// narrower than the space they're in.\n// run once per trace group (subplot & direction) and\n// the same mapping is attached to all calcdata traces\nfunction collectExtents(calcTraces, pa) {\n var pLetter = getAxisLetter(pa);\n var extents = {};\n var i, j, cd;\n\n var pMin = Infinity;\n var pMax = -Infinity;\n\n for(i = 0; i < calcTraces.length; i++) {\n cd = calcTraces[i];\n for(j = 0; j < cd.length; j++) {\n var p = cd[j].p;\n if(isNumeric(p)) {\n pMin = Math.min(pMin, p);\n pMax = Math.max(pMax, p);\n }\n }\n }\n\n // this is just for positioning of hover labels, and nobody will care if\n // the label is 1px too far out; so round positions to 1/10K in case\n // position values don't exactly match from trace to trace\n var roundFactor = 10000 / (pMax - pMin);\n var round = extents.round = function(p) {\n return String(Math.round(roundFactor * (p - pMin)));\n };\n\n for(i = 0; i < calcTraces.length; i++) {\n cd = calcTraces[i];\n cd[0].t.extents = extents;\n\n var poffset = cd[0].t.poffset;\n var poffsetIsArray = Array.isArray(poffset);\n\n for(j = 0; j < cd.length; j++) {\n var di = cd[j];\n var p0 = di[pLetter] - di.w / 2;\n\n if(isNumeric(p0)) {\n var p1 = di[pLetter] + di.w / 2;\n var pVal = round(di.p);\n if(extents[pVal]) {\n extents[pVal] = [Math.min(p0, extents[pVal][0]), Math.max(p1, extents[pVal][1])];\n } else {\n extents[pVal] = [p0, p1];\n }\n }\n\n di.p0 = di.p + (poffsetIsArray ? poffset[j] : poffset);\n di.p1 = di.p0 + di.w;\n di.s0 = di.b;\n di.s1 = di.s0 + di.s;\n }\n }\n}\n\nfunction getAxisLetter(ax) {\n return ax._id.charAt(0);\n}\n\nmodule.exports = {\n crossTraceCalc: crossTraceCalc,\n setGroupPositions: setGroupPositions\n};\n\n},{\"../../constants/numerical\":479,\"../../lib\":503,\"../../plots/cartesian/axes\":554,\"../../plots/cartesian/constraints\":562,\"../../registry\":638,\"./sieve.js\":661,\"fast-isnumeric\":190}],652:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Color = _dereq_('../../components/color');\nvar Registry = _dereq_('../../registry');\n\nvar handleXYDefaults = _dereq_('../scatter/xy_defaults');\nvar handlePeriodDefaults = _dereq_('../scatter/period_defaults');\nvar handleStyleDefaults = _dereq_('./style_defaults');\nvar getAxisGroup = _dereq_('../../plots/cartesian/constraints').getAxisGroup;\nvar attributes = _dereq_('./attributes');\n\nvar coerceFont = Lib.coerceFont;\n\nfunction supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var len = handleXYDefaults(traceIn, traceOut, layout, coerce);\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n handlePeriodDefaults(traceIn, traceOut, layout, coerce);\n coerce('xhoverformat');\n coerce('yhoverformat');\n\n coerce('orientation', (traceOut.x && !traceOut.y) ? 'h' : 'v');\n coerce('base');\n coerce('offset');\n coerce('width');\n\n coerce('text');\n coerce('hovertext');\n coerce('hovertemplate');\n\n var textposition = coerce('textposition');\n handleText(traceIn, traceOut, layout, coerce, textposition, {\n moduleHasSelected: true,\n moduleHasUnselected: true,\n moduleHasConstrain: true,\n moduleHasCliponaxis: true,\n moduleHasTextangle: true,\n moduleHasInsideanchor: true\n });\n\n handleStyleDefaults(traceIn, traceOut, coerce, defaultColor, layout);\n\n var lineColor = (traceOut.marker.line || {}).color;\n\n // override defaultColor for error bars with defaultLine\n var errorBarsSupplyDefaults = Registry.getComponentMethod('errorbars', 'supplyDefaults');\n errorBarsSupplyDefaults(traceIn, traceOut, lineColor || Color.defaultLine, {axis: 'y'});\n errorBarsSupplyDefaults(traceIn, traceOut, lineColor || Color.defaultLine, {axis: 'x', inherit: 'y'});\n\n Lib.coerceSelectionMarkerOpacity(traceOut, coerce);\n}\n\nfunction handleGroupingDefaults(traceIn, traceOut, fullLayout, coerce) {\n var orientation = traceOut.orientation;\n // N.B. grouping is done across all trace types that support it\n var posAxId = traceOut[{v: 'x', h: 'y'}[orientation] + 'axis'];\n var groupId = getAxisGroup(fullLayout, posAxId) + orientation;\n\n var alignmentOpts = fullLayout._alignmentOpts || {};\n var alignmentgroup = coerce('alignmentgroup');\n\n var alignmentGroups = alignmentOpts[groupId];\n if(!alignmentGroups) alignmentGroups = alignmentOpts[groupId] = {};\n\n var alignmentGroupOpts = alignmentGroups[alignmentgroup];\n\n if(alignmentGroupOpts) {\n alignmentGroupOpts.traces.push(traceOut);\n } else {\n alignmentGroupOpts = alignmentGroups[alignmentgroup] = {\n traces: [traceOut],\n alignmentIndex: Object.keys(alignmentGroups).length,\n offsetGroups: {}\n };\n }\n\n var offsetgroup = coerce('offsetgroup');\n var offsetGroups = alignmentGroupOpts.offsetGroups;\n var offsetGroupOpts = offsetGroups[offsetgroup];\n\n if(offsetgroup) {\n if(!offsetGroupOpts) {\n offsetGroupOpts = offsetGroups[offsetgroup] = {\n offsetIndex: Object.keys(offsetGroups).length\n };\n }\n\n traceOut._offsetIndex = offsetGroupOpts.offsetIndex;\n }\n}\n\nfunction crossTraceDefaults(fullData, fullLayout) {\n var traceIn, traceOut;\n\n function coerce(attr) {\n return Lib.coerce(traceOut._input, traceOut, attributes, attr);\n }\n\n if(fullLayout.barmode === 'group') {\n for(var i = 0; i < fullData.length; i++) {\n traceOut = fullData[i];\n\n if(traceOut.type === 'bar') {\n traceIn = traceOut._input;\n handleGroupingDefaults(traceIn, traceOut, fullLayout, coerce);\n }\n }\n }\n}\n\nfunction handleText(traceIn, traceOut, layout, coerce, textposition, opts) {\n opts = opts || {};\n var moduleHasSelected = !(opts.moduleHasSelected === false);\n var moduleHasUnselected = !(opts.moduleHasUnselected === false);\n var moduleHasConstrain = !(opts.moduleHasConstrain === false);\n var moduleHasCliponaxis = !(opts.moduleHasCliponaxis === false);\n var moduleHasTextangle = !(opts.moduleHasTextangle === false);\n var moduleHasInsideanchor = !(opts.moduleHasInsideanchor === false);\n var hasPathbar = !!opts.hasPathbar;\n\n var hasBoth = Array.isArray(textposition) || textposition === 'auto';\n var hasInside = hasBoth || textposition === 'inside';\n var hasOutside = hasBoth || textposition === 'outside';\n\n if(hasInside || hasOutside) {\n var dfltFont = coerceFont(coerce, 'textfont', layout.font);\n\n // Note that coercing `insidetextfont` is always needed –\n // even if `textposition` is `outside` for each trace – since\n // an outside label can become an inside one, for example because\n // of a bar being stacked on top of it.\n var insideTextFontDefault = Lib.extendFlat({}, dfltFont);\n var isTraceTextfontColorSet = traceIn.textfont && traceIn.textfont.color;\n var isColorInheritedFromLayoutFont = !isTraceTextfontColorSet;\n if(isColorInheritedFromLayoutFont) {\n delete insideTextFontDefault.color;\n }\n coerceFont(coerce, 'insidetextfont', insideTextFontDefault);\n\n if(hasPathbar) {\n var pathbarTextFontDefault = Lib.extendFlat({}, dfltFont);\n if(isColorInheritedFromLayoutFont) {\n delete pathbarTextFontDefault.color;\n }\n coerceFont(coerce, 'pathbar.textfont', pathbarTextFontDefault);\n }\n\n if(hasOutside) coerceFont(coerce, 'outsidetextfont', dfltFont);\n\n if(moduleHasSelected) coerce('selected.textfont.color');\n if(moduleHasUnselected) coerce('unselected.textfont.color');\n if(moduleHasConstrain) coerce('constraintext');\n if(moduleHasCliponaxis) coerce('cliponaxis');\n if(moduleHasTextangle) coerce('textangle');\n\n coerce('texttemplate');\n }\n\n if(hasInside) {\n if(moduleHasInsideanchor) coerce('insidetextanchor');\n }\n}\n\nmodule.exports = {\n supplyDefaults: supplyDefaults,\n crossTraceDefaults: crossTraceDefaults,\n handleGroupingDefaults: handleGroupingDefaults,\n handleText: handleText\n};\n\n},{\"../../components/color\":366,\"../../lib\":503,\"../../plots/cartesian/constraints\":562,\"../../registry\":638,\"../scatter/period_defaults\":945,\"../scatter/xy_defaults\":952,\"./attributes\":648,\"./style_defaults\":663}],653:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function eventData(out, pt, trace) {\n // standard cartesian event data\n out.x = 'xVal' in pt ? pt.xVal : pt.x;\n out.y = 'yVal' in pt ? pt.yVal : pt.y;\n if(pt.xa) out.xaxis = pt.xa;\n if(pt.ya) out.yaxis = pt.ya;\n\n if(trace.orientation === 'h') {\n out.label = out.y;\n out.value = out.x;\n } else {\n out.label = out.x;\n out.value = out.y;\n }\n\n return out;\n};\n\n},{}],654:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar tinycolor = _dereq_('tinycolor2');\nvar isArrayOrTypedArray = _dereq_('../../lib').isArrayOrTypedArray;\n\nexports.coerceString = function(attributeDefinition, value, defaultValue) {\n if(typeof value === 'string') {\n if(value || !attributeDefinition.noBlank) return value;\n } else if(typeof value === 'number' || value === true) {\n if(!attributeDefinition.strict) return String(value);\n }\n\n return (defaultValue !== undefined) ?\n defaultValue :\n attributeDefinition.dflt;\n};\n\nexports.coerceNumber = function(attributeDefinition, value, defaultValue) {\n if(isNumeric(value)) {\n value = +value;\n\n var min = attributeDefinition.min;\n var max = attributeDefinition.max;\n var isOutOfBounds = (min !== undefined && value < min) ||\n (max !== undefined && value > max);\n\n if(!isOutOfBounds) return value;\n }\n\n return (defaultValue !== undefined) ?\n defaultValue :\n attributeDefinition.dflt;\n};\n\nexports.coerceColor = function(attributeDefinition, value, defaultValue) {\n if(tinycolor(value).isValid()) return value;\n\n return (defaultValue !== undefined) ?\n defaultValue :\n attributeDefinition.dflt;\n};\n\nexports.coerceEnumerated = function(attributeDefinition, value, defaultValue) {\n if(attributeDefinition.coerceNumber) value = +value;\n\n if(attributeDefinition.values.indexOf(value) !== -1) return value;\n\n return (defaultValue !== undefined) ?\n defaultValue :\n attributeDefinition.dflt;\n};\n\nexports.getValue = function(arrayOrScalar, index) {\n var value;\n if(!Array.isArray(arrayOrScalar)) value = arrayOrScalar;\n else if(index < arrayOrScalar.length) value = arrayOrScalar[index];\n return value;\n};\n\nexports.getLineWidth = function(trace, di) {\n var w =\n (0 < di.mlw) ? di.mlw :\n !isArrayOrTypedArray(trace.marker.line.width) ? trace.marker.line.width :\n 0;\n\n return w;\n};\n\n},{\"../../lib\":503,\"fast-isnumeric\":190,\"tinycolor2\":312}],655:[function(_dereq_,module,exports){\n'use strict';\n\nvar Fx = _dereq_('../../components/fx');\nvar Registry = _dereq_('../../registry');\nvar Color = _dereq_('../../components/color');\n\nvar fillText = _dereq_('../../lib').fillText;\nvar getLineWidth = _dereq_('./helpers').getLineWidth;\nvar hoverLabelText = _dereq_('../../plots/cartesian/axes').hoverLabelText;\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nfunction hoverPoints(pointData, xval, yval, hovermode, opts) {\n var barPointData = hoverOnBars(pointData, xval, yval, hovermode, opts);\n\n if(barPointData) {\n var cd = barPointData.cd;\n var trace = cd[0].trace;\n var di = cd[barPointData.index];\n\n barPointData.color = getTraceColor(trace, di);\n Registry.getComponentMethod('errorbars', 'hoverInfo')(di, trace, barPointData);\n\n return [barPointData];\n }\n}\n\nfunction hoverOnBars(pointData, xval, yval, hovermode, opts) {\n var cd = pointData.cd;\n var trace = cd[0].trace;\n var t = cd[0].t;\n var isClosest = (hovermode === 'closest');\n var isWaterfall = (trace.type === 'waterfall');\n var maxHoverDistance = pointData.maxHoverDistance;\n var maxSpikeDistance = pointData.maxSpikeDistance;\n\n var posVal, sizeVal, posLetter, sizeLetter, dx, dy, pRangeCalc;\n\n if(trace.orientation === 'h') {\n posVal = yval;\n sizeVal = xval;\n posLetter = 'y';\n sizeLetter = 'x';\n dx = sizeFn;\n dy = positionFn;\n } else {\n posVal = xval;\n sizeVal = yval;\n posLetter = 'x';\n sizeLetter = 'y';\n dy = sizeFn;\n dx = positionFn;\n }\n\n var period = trace[posLetter + 'period'];\n var isClosestOrPeriod = isClosest || period;\n\n function thisBarMinPos(di) { return thisBarExtPos(di, -1); }\n function thisBarMaxPos(di) { return thisBarExtPos(di, 1); }\n\n function thisBarExtPos(di, sgn) {\n var w = di.w;\n\n return di[posLetter] + sgn * w / 2;\n }\n\n function periodLength(di) {\n return di[posLetter + 'End'] - di[posLetter + 'Start'];\n }\n\n var minPos = isClosest ?\n thisBarMinPos : period ?\n function(di) {\n return di.p - periodLength(di) / 2;\n } :\n function(di) {\n /*\n * In compare mode, accept a bar if you're on it *or* its group.\n * Nearly always it's the group that matters, but in case the bar\n * was explicitly set wider than its group we'd better accept the\n * whole bar.\n *\n * use `bardelta` instead of `bargroupwidth` so we accept hover\n * in the gap. That way hover doesn't flash on and off as you\n * mouse over the plot in compare modes.\n * In 'closest' mode though the flashing seems inevitable,\n * without far more complex logic\n */\n return Math.min(thisBarMinPos(di), di.p - t.bardelta / 2);\n };\n\n var maxPos = isClosest ?\n thisBarMaxPos : period ?\n function(di) {\n return di.p + periodLength(di) / 2;\n } :\n function(di) {\n return Math.max(thisBarMaxPos(di), di.p + t.bardelta / 2);\n };\n\n function inbox(_minPos, _maxPos, maxDistance) {\n if(opts.finiteRange) maxDistance = 0;\n\n // add a little to the pseudo-distance for wider bars, so that like scatter,\n // if you are over two overlapping bars, the narrower one wins.\n return Fx.inbox(_minPos - posVal, _maxPos - posVal,\n maxDistance + Math.min(1, Math.abs(_maxPos - _minPos) / pRangeCalc) - 1);\n }\n\n function positionFn(di) {\n return inbox(minPos(di), maxPos(di), maxHoverDistance);\n }\n\n function thisBarPositionFn(di) {\n return inbox(thisBarMinPos(di), thisBarMaxPos(di), maxSpikeDistance);\n }\n\n function getSize(di) {\n var s = di[sizeLetter];\n\n if(isWaterfall) {\n var rawS = Math.abs(di.rawS) || 0;\n if(sizeVal > 0) {\n s += rawS;\n } else if(sizeVal < 0) {\n s -= rawS;\n }\n }\n\n return s;\n }\n\n function sizeFn(di) {\n var v = sizeVal;\n var b = di.b;\n var s = getSize(di);\n\n // add a gradient so hovering near the end of a\n // bar makes it a little closer match\n return Fx.inbox(b - v, s - v, maxHoverDistance + (s - v) / (s - b) - 1);\n }\n\n function thisBarSizeFn(di) {\n var v = sizeVal;\n var b = di.b;\n var s = getSize(di);\n\n // add a gradient so hovering near the end of a\n // bar makes it a little closer match\n return Fx.inbox(b - v, s - v, maxSpikeDistance + (s - v) / (s - b) - 1);\n }\n\n var pa = pointData[posLetter + 'a'];\n var sa = pointData[sizeLetter + 'a'];\n\n pRangeCalc = Math.abs(pa.r2c(pa.range[1]) - pa.r2c(pa.range[0]));\n\n function dxy(di) { return (dx(di) + dy(di)) / 2; }\n var distfn = Fx.getDistanceFunction(hovermode, dx, dy, dxy);\n Fx.getClosest(cd, distfn, pointData);\n\n // skip the rest (for this trace) if we didn't find a close point\n if(pointData.index === false) return;\n\n // skip points inside axis rangebreaks\n if(cd[pointData.index].p === BADNUM) return;\n\n // if we get here and we're not in 'closest' mode, push min/max pos back\n // onto the group - even though that means occasionally the mouse will be\n // over the hover label.\n if(!isClosestOrPeriod) {\n minPos = function(di) {\n return Math.min(thisBarMinPos(di), di.p - t.bargroupwidth / 2);\n };\n maxPos = function(di) {\n return Math.max(thisBarMaxPos(di), di.p + t.bargroupwidth / 2);\n };\n }\n\n // the closest data point\n var index = pointData.index;\n var di = cd[index];\n\n var size = (trace.base) ? di.b + di.s : di.s;\n pointData[sizeLetter + '0'] = pointData[sizeLetter + '1'] = sa.c2p(di[sizeLetter], true);\n pointData[sizeLetter + 'LabelVal'] = size;\n\n var extent = t.extents[t.extents.round(di.p)];\n pointData[posLetter + '0'] = pa.c2p(isClosest ? minPos(di) : extent[0], true);\n pointData[posLetter + '1'] = pa.c2p(isClosest ? maxPos(di) : extent[1], true);\n\n var hasPeriod = di.orig_p !== undefined;\n pointData[posLetter + 'LabelVal'] = hasPeriod ? di.orig_p : di.p;\n\n pointData.labelLabel = hoverLabelText(pa, pointData[posLetter + 'LabelVal'], trace[posLetter + 'hoverformat']);\n pointData.valueLabel = hoverLabelText(sa, pointData[sizeLetter + 'LabelVal'], trace[sizeLetter + 'hoverformat']);\n pointData.baseLabel = hoverLabelText(sa, di.b, trace[sizeLetter + 'hoverformat']);\n\n // spikelines always want \"closest\" distance regardless of hovermode\n pointData.spikeDistance = (thisBarSizeFn(di) + thisBarPositionFn(di)) / 2;\n // they also want to point to the data value, regardless of where the label goes\n // in case of bars shifted within groups\n pointData[posLetter + 'Spike'] = pa.c2p(di.p, true);\n\n fillText(di, trace, pointData);\n pointData.hovertemplate = trace.hovertemplate;\n\n return pointData;\n}\n\nfunction getTraceColor(trace, di) {\n var mc = di.mcc || trace.marker.color;\n var mlc = di.mlcc || trace.marker.line.color;\n var mlw = getLineWidth(trace, di);\n\n if(Color.opacity(mc)) return mc;\n else if(Color.opacity(mlc) && mlw) return mlc;\n}\n\nmodule.exports = {\n hoverPoints: hoverPoints,\n hoverOnBars: hoverOnBars,\n getTraceColor: getTraceColor\n};\n\n},{\"../../components/color\":366,\"../../components/fx\":406,\"../../constants/numerical\":479,\"../../lib\":503,\"../../plots/cartesian/axes\":554,\"../../registry\":638,\"./helpers\":654}],656:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n layoutAttributes: _dereq_('./layout_attributes'),\n supplyDefaults: _dereq_('./defaults').supplyDefaults,\n crossTraceDefaults: _dereq_('./defaults').crossTraceDefaults,\n supplyLayoutDefaults: _dereq_('./layout_defaults'),\n calc: _dereq_('./calc'),\n crossTraceCalc: _dereq_('./cross_trace_calc').crossTraceCalc,\n colorbar: _dereq_('../scatter/marker_colorbar'),\n arraysToCalcdata: _dereq_('./arrays_to_calcdata'),\n plot: _dereq_('./plot').plot,\n style: _dereq_('./style').style,\n styleOnSelect: _dereq_('./style').styleOnSelect,\n hoverPoints: _dereq_('./hover').hoverPoints,\n eventData: _dereq_('./event_data'),\n selectPoints: _dereq_('./select'),\n\n moduleType: 'trace',\n name: 'bar',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: ['bar-like', 'cartesian', 'svg', 'bar', 'oriented', 'errorBarsOK', 'showLegend', 'zoomScale'],\n animatable: true,\n meta: {\n }\n};\n\n},{\"../../plots/cartesian\":568,\"../scatter/marker_colorbar\":943,\"./arrays_to_calcdata\":647,\"./attributes\":648,\"./calc\":649,\"./cross_trace_calc\":651,\"./defaults\":652,\"./event_data\":653,\"./hover\":655,\"./layout_attributes\":657,\"./layout_defaults\":658,\"./plot\":659,\"./select\":660,\"./style\":662}],657:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = {\n barmode: {\n valType: 'enumerated',\n values: ['stack', 'group', 'overlay', 'relative'],\n dflt: 'group',\n editType: 'calc',\n },\n barnorm: {\n valType: 'enumerated',\n values: ['', 'fraction', 'percent'],\n dflt: '',\n editType: 'calc',\n },\n bargap: {\n valType: 'number',\n min: 0,\n max: 1,\n editType: 'calc',\n },\n bargroupgap: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0,\n editType: 'calc',\n }\n};\n\n},{}],658:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar Lib = _dereq_('../../lib');\n\nvar layoutAttributes = _dereq_('./layout_attributes');\n\nmodule.exports = function(layoutIn, layoutOut, fullData) {\n function coerce(attr, dflt) {\n return Lib.coerce(layoutIn, layoutOut, layoutAttributes, attr, dflt);\n }\n\n var hasBars = false;\n var shouldBeGapless = false;\n var gappedAnyway = false;\n var usedSubplots = {};\n\n var mode = coerce('barmode');\n\n for(var i = 0; i < fullData.length; i++) {\n var trace = fullData[i];\n if(Registry.traceIs(trace, 'bar') && trace.visible) hasBars = true;\n else continue;\n\n // if we have at least 2 grouped bar traces on the same subplot,\n // we should default to a gap anyway, even if the data is histograms\n if(mode === 'group') {\n var subploti = trace.xaxis + trace.yaxis;\n if(usedSubplots[subploti]) gappedAnyway = true;\n usedSubplots[subploti] = true;\n }\n\n if(trace.visible && trace.type === 'histogram') {\n var pa = Axes.getFromId({_fullLayout: layoutOut},\n trace[trace.orientation === 'v' ? 'xaxis' : 'yaxis']);\n if(pa.type !== 'category') shouldBeGapless = true;\n }\n }\n\n if(!hasBars) {\n delete layoutOut.barmode;\n return;\n }\n\n if(mode !== 'overlay') coerce('barnorm');\n\n coerce('bargap', (shouldBeGapless && !gappedAnyway) ? 0 : 0.2);\n coerce('bargroupgap');\n};\n\n},{\"../../lib\":503,\"../../plots/cartesian/axes\":554,\"../../registry\":638,\"./layout_attributes\":657}],659:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Lib = _dereq_('../../lib');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\n\nvar Color = _dereq_('../../components/color');\nvar Drawing = _dereq_('../../components/drawing');\nvar Registry = _dereq_('../../registry');\nvar tickText = _dereq_('../../plots/cartesian/axes').tickText;\n\nvar uniformText = _dereq_('./uniform_text');\nvar recordMinTextSize = uniformText.recordMinTextSize;\nvar clearMinTextSize = uniformText.clearMinTextSize;\n\nvar style = _dereq_('./style');\nvar helpers = _dereq_('./helpers');\nvar constants = _dereq_('./constants');\nvar attributes = _dereq_('./attributes');\n\nvar attributeText = attributes.text;\nvar attributeTextPosition = attributes.textposition;\n\nvar appendArrayPointValue = _dereq_('../../components/fx/helpers').appendArrayPointValue;\n\nvar TEXTPAD = constants.TEXTPAD;\n\nfunction keyFunc(d) {return d.id;}\nfunction getKeyFunc(trace) {\n if(trace.ids) {\n return keyFunc;\n }\n}\n\nfunction dirSign(a, b) {\n return (a < b) ? 1 : -1;\n}\n\nfunction getXY(di, xa, ya, isHorizontal) {\n var s = [];\n var p = [];\n\n var sAxis = isHorizontal ? xa : ya;\n var pAxis = isHorizontal ? ya : xa;\n\n s[0] = sAxis.c2p(di.s0, true);\n p[0] = pAxis.c2p(di.p0, true);\n\n s[1] = sAxis.c2p(di.s1, true);\n p[1] = pAxis.c2p(di.p1, true);\n\n return isHorizontal ? [s, p] : [p, s];\n}\n\nfunction transition(selection, fullLayout, opts, makeOnCompleteCallback) {\n if(!fullLayout.uniformtext.mode && hasTransition(opts)) {\n var onComplete;\n if(makeOnCompleteCallback) {\n onComplete = makeOnCompleteCallback();\n }\n return selection\n .transition()\n .duration(opts.duration)\n .ease(opts.easing)\n .each('end', function() { onComplete && onComplete(); })\n .each('interrupt', function() { onComplete && onComplete(); });\n } else {\n return selection;\n }\n}\n\nfunction hasTransition(transitionOpts) {\n return transitionOpts && transitionOpts.duration > 0;\n}\n\nfunction plot(gd, plotinfo, cdModule, traceLayer, opts, makeOnCompleteCallback) {\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n var fullLayout = gd._fullLayout;\n\n if(!opts) {\n opts = {\n mode: fullLayout.barmode,\n norm: fullLayout.barmode,\n gap: fullLayout.bargap,\n groupgap: fullLayout.bargroupgap\n };\n\n // don't clear bar when this is called from waterfall or funnel\n clearMinTextSize('bar', fullLayout);\n }\n\n var bartraces = Lib.makeTraceGroups(traceLayer, cdModule, 'trace bars').each(function(cd) {\n var plotGroup = d3.select(this);\n var trace = cd[0].trace;\n var isWaterfall = (trace.type === 'waterfall');\n var isFunnel = (trace.type === 'funnel');\n var isBar = (trace.type === 'bar');\n var shouldDisplayZeros = (isBar || isFunnel);\n\n var adjustPixel = 0;\n if(isWaterfall && trace.connector.visible && trace.connector.mode === 'between') {\n adjustPixel = trace.connector.line.width / 2;\n }\n\n var isHorizontal = (trace.orientation === 'h');\n var withTransition = hasTransition(opts);\n\n var pointGroup = Lib.ensureSingle(plotGroup, 'g', 'points');\n\n var keyFunc = getKeyFunc(trace);\n var bars = pointGroup.selectAll('g.point').data(Lib.identity, keyFunc);\n\n bars.enter().append('g')\n .classed('point', true);\n\n bars.exit().remove();\n\n bars.each(function(di, i) {\n var bar = d3.select(this);\n\n // now display the bar\n // clipped xf/yf (2nd arg true): non-positive\n // log values go off-screen by plotwidth\n // so you see them continue if you drag the plot\n var xy = getXY(di, xa, ya, isHorizontal);\n\n var x0 = xy[0][0];\n var x1 = xy[0][1];\n var y0 = xy[1][0];\n var y1 = xy[1][1];\n\n // empty bars\n var isBlank = (isHorizontal ? x1 - x0 : y1 - y0) === 0;\n\n // display zeros if line.width > 0\n if(isBlank && shouldDisplayZeros && helpers.getLineWidth(trace, di)) {\n isBlank = false;\n }\n\n // skip nulls\n if(!isBlank) {\n isBlank = (\n !isNumeric(x0) ||\n !isNumeric(x1) ||\n !isNumeric(y0) ||\n !isNumeric(y1)\n );\n }\n\n // record isBlank\n di.isBlank = isBlank;\n\n // for blank bars, ensure start and end positions are equal - important for smooth transitions\n if(isBlank) {\n if(isHorizontal) {\n x1 = x0;\n } else {\n y1 = y0;\n }\n }\n\n // in waterfall mode `between` we need to adjust bar end points to match the connector width\n if(adjustPixel && !isBlank) {\n if(isHorizontal) {\n x0 -= dirSign(x0, x1) * adjustPixel;\n x1 += dirSign(x0, x1) * adjustPixel;\n } else {\n y0 -= dirSign(y0, y1) * adjustPixel;\n y1 += dirSign(y0, y1) * adjustPixel;\n }\n }\n\n var lw;\n var mc;\n\n if(trace.type === 'waterfall') {\n if(!isBlank) {\n var cont = trace[di.dir].marker;\n lw = cont.line.width;\n mc = cont.color;\n }\n } else {\n lw = helpers.getLineWidth(trace, di);\n mc = di.mc || trace.marker.color;\n }\n\n function roundWithLine(v) {\n var offset = d3.round((lw / 2) % 1, 2);\n\n // if there are explicit gaps, don't round,\n // it can make the gaps look crappy\n return (opts.gap === 0 && opts.groupgap === 0) ?\n d3.round(Math.round(v) - offset, 2) : v;\n }\n\n function expandToVisible(v, vc, hideZeroSpan) {\n if(hideZeroSpan && v === vc) {\n // should not expand zero span bars\n // when start and end positions are identical\n // i.e. for vertical when y0 === y1\n // and for horizontal when x0 === x1\n return v;\n }\n\n // if it's not in danger of disappearing entirely,\n // round more precisely\n return Math.abs(v - vc) >= 2 ? roundWithLine(v) :\n // but if it's very thin, expand it so it's\n // necessarily visible, even if it might overlap\n // its neighbor\n (v > vc ? Math.ceil(v) : Math.floor(v));\n }\n\n if(!gd._context.staticPlot) {\n // if bars are not fully opaque or they have a line\n // around them, round to integer pixels, mainly for\n // safari so we prevent overlaps from its expansive\n // pixelation. if the bars ARE fully opaque and have\n // no line, expand to a full pixel to make sure we\n // can see them\n\n var op = Color.opacity(mc);\n var fixpx = (op < 1 || lw > 0.01) ? roundWithLine : expandToVisible;\n\n x0 = fixpx(x0, x1, isHorizontal);\n x1 = fixpx(x1, x0, isHorizontal);\n y0 = fixpx(y0, y1, !isHorizontal);\n y1 = fixpx(y1, y0, !isHorizontal);\n }\n\n var sel = transition(Lib.ensureSingle(bar, 'path'), fullLayout, opts, makeOnCompleteCallback);\n sel\n .style('vector-effect', 'non-scaling-stroke')\n .attr('d', (isNaN((x1 - x0) * (y1 - y0)) || (isBlank && gd._context.staticPlot)) ? 'M0,0Z' : 'M' + x0 + ',' + y0 + 'V' + y1 + 'H' + x1 + 'V' + y0 + 'Z')\n .call(Drawing.setClipUrl, plotinfo.layerClipId, gd);\n\n if(!fullLayout.uniformtext.mode && withTransition) {\n var styleFns = Drawing.makePointStyleFns(trace);\n Drawing.singlePointStyle(di, sel, trace, styleFns, gd);\n }\n\n appendBarText(gd, plotinfo, bar, cd, i, x0, x1, y0, y1, opts, makeOnCompleteCallback);\n\n if(plotinfo.layerClipId) {\n Drawing.hideOutsideRangePoint(di, bar.select('text'), xa, ya, trace.xcalendar, trace.ycalendar);\n }\n });\n\n // lastly, clip points groups of `cliponaxis !== false` traces\n // on `plotinfo._hasClipOnAxisFalse === true` subplots\n var hasClipOnAxisFalse = trace.cliponaxis === false;\n Drawing.setClipUrl(plotGroup, hasClipOnAxisFalse ? null : plotinfo.layerClipId, gd);\n });\n\n // error bars are on the top\n Registry.getComponentMethod('errorbars', 'plot')(gd, bartraces, plotinfo, opts);\n}\n\nfunction appendBarText(gd, plotinfo, bar, cd, i, x0, x1, y0, y1, opts, makeOnCompleteCallback) {\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n\n var fullLayout = gd._fullLayout;\n var textPosition;\n\n function appendTextNode(bar, text, font) {\n var textSelection = Lib.ensureSingle(bar, 'text')\n .text(text)\n .attr({\n 'class': 'bartext bartext-' + textPosition,\n 'text-anchor': 'middle',\n // prohibit tex interpretation until we can handle\n // tex and regular text together\n 'data-notex': 1\n })\n .call(Drawing.font, font)\n .call(svgTextUtils.convertToTspans, gd);\n\n return textSelection;\n }\n\n // get trace attributes\n var trace = cd[0].trace;\n var isHorizontal = (trace.orientation === 'h');\n\n var text = getText(fullLayout, cd, i, xa, ya);\n textPosition = getTextPosition(trace, i);\n\n // compute text position\n var inStackOrRelativeMode =\n opts.mode === 'stack' ||\n opts.mode === 'relative';\n\n var calcBar = cd[i];\n var isOutmostBar = !inStackOrRelativeMode || calcBar._outmost;\n\n if(!text ||\n textPosition === 'none' ||\n ((calcBar.isBlank || x0 === x1 || y0 === y1) && (\n textPosition === 'auto' ||\n textPosition === 'inside'))) {\n bar.select('text').remove();\n return;\n }\n\n var layoutFont = fullLayout.font;\n var barColor = style.getBarColor(cd[i], trace);\n var insideTextFont = style.getInsideTextFont(trace, i, layoutFont, barColor);\n var outsideTextFont = style.getOutsideTextFont(trace, i, layoutFont);\n\n // Special case: don't use the c2p(v, true) value on log size axes,\n // so that we can get correctly inside text scaling\n var di = bar.datum();\n if(isHorizontal) {\n if(xa.type === 'log' && di.s0 <= 0) {\n if(xa.range[0] < xa.range[1]) {\n x0 = 0;\n } else {\n x0 = xa._length;\n }\n }\n } else {\n if(ya.type === 'log' && di.s0 <= 0) {\n if(ya.range[0] < ya.range[1]) {\n y0 = ya._length;\n } else {\n y0 = 0;\n }\n }\n }\n\n // padding excluded\n var barWidth = Math.abs(x1 - x0) - 2 * TEXTPAD;\n var barHeight = Math.abs(y1 - y0) - 2 * TEXTPAD;\n\n var textSelection;\n var textBB;\n var textWidth;\n var textHeight;\n var font;\n\n if(textPosition === 'outside') {\n if(!isOutmostBar && !calcBar.hasB) textPosition = 'inside';\n }\n\n if(textPosition === 'auto') {\n if(isOutmostBar) {\n // draw text using insideTextFont and check if it fits inside bar\n textPosition = 'inside';\n\n font = Lib.ensureUniformFontSize(gd, insideTextFont);\n\n textSelection = appendTextNode(bar, text, font);\n\n textBB = Drawing.bBox(textSelection.node()),\n textWidth = textBB.width,\n textHeight = textBB.height;\n\n var textHasSize = (textWidth > 0 && textHeight > 0);\n var fitsInside = (textWidth <= barWidth && textHeight <= barHeight);\n var fitsInsideIfRotated = (textWidth <= barHeight && textHeight <= barWidth);\n var fitsInsideIfShrunk = (isHorizontal) ?\n (barWidth >= textWidth * (barHeight / textHeight)) :\n (barHeight >= textHeight * (barWidth / textWidth));\n\n if(textHasSize && (\n fitsInside ||\n fitsInsideIfRotated ||\n fitsInsideIfShrunk)\n ) {\n textPosition = 'inside';\n } else {\n textPosition = 'outside';\n textSelection.remove();\n textSelection = null;\n }\n } else {\n textPosition = 'inside';\n }\n }\n\n if(!textSelection) {\n font = Lib.ensureUniformFontSize(gd, (textPosition === 'outside') ? outsideTextFont : insideTextFont);\n\n textSelection = appendTextNode(bar, text, font);\n\n var currentTransform = textSelection.attr('transform');\n textSelection.attr('transform', '');\n textBB = Drawing.bBox(textSelection.node()),\n textWidth = textBB.width,\n textHeight = textBB.height;\n textSelection.attr('transform', currentTransform);\n\n if(textWidth <= 0 || textHeight <= 0) {\n textSelection.remove();\n return;\n }\n }\n\n var angle = trace.textangle;\n\n // compute text transform\n var transform, constrained;\n if(textPosition === 'outside') {\n constrained =\n trace.constraintext === 'both' ||\n trace.constraintext === 'outside';\n\n transform = toMoveOutsideBar(x0, x1, y0, y1, textBB, {\n isHorizontal: isHorizontal,\n constrained: constrained,\n angle: angle\n });\n } else {\n constrained =\n trace.constraintext === 'both' ||\n trace.constraintext === 'inside';\n\n transform = toMoveInsideBar(x0, x1, y0, y1, textBB, {\n isHorizontal: isHorizontal,\n constrained: constrained,\n angle: angle,\n anchor: trace.insidetextanchor\n });\n }\n\n transform.fontSize = font.size;\n recordMinTextSize(trace.type, transform, fullLayout);\n calcBar.transform = transform;\n\n transition(textSelection, fullLayout, opts, makeOnCompleteCallback)\n .attr('transform', Lib.getTextTransform(transform));\n}\n\nfunction getRotateFromAngle(angle) {\n return (angle === 'auto') ? 0 : angle;\n}\n\nfunction getRotatedTextSize(textBB, rotate) {\n var a = Math.PI / 180 * rotate;\n var absSin = Math.abs(Math.sin(a));\n var absCos = Math.abs(Math.cos(a));\n\n return {\n x: textBB.width * absCos + textBB.height * absSin,\n y: textBB.width * absSin + textBB.height * absCos\n };\n}\n\nfunction toMoveInsideBar(x0, x1, y0, y1, textBB, opts) {\n var isHorizontal = !!opts.isHorizontal;\n var constrained = !!opts.constrained;\n var angle = opts.angle || 0;\n var anchor = opts.anchor || 'end';\n var isEnd = anchor === 'end';\n var isStart = anchor === 'start';\n var leftToRight = opts.leftToRight || 0; // left: -1, center: 0, right: 1\n var toRight = (leftToRight + 1) / 2;\n var toLeft = 1 - toRight;\n\n var textWidth = textBB.width;\n var textHeight = textBB.height;\n var lx = Math.abs(x1 - x0);\n var ly = Math.abs(y1 - y0);\n\n // compute remaining space\n var textpad = (\n lx > (2 * TEXTPAD) &&\n ly > (2 * TEXTPAD)\n ) ? TEXTPAD : 0;\n\n lx -= 2 * textpad;\n ly -= 2 * textpad;\n\n var rotate = getRotateFromAngle(angle);\n if((angle === 'auto') &&\n !(textWidth <= lx && textHeight <= ly) &&\n (textWidth > lx || textHeight > ly) && (\n !(textWidth > ly || textHeight > lx) ||\n ((textWidth < textHeight) !== (lx < ly))\n )) {\n rotate += 90;\n }\n\n var t = getRotatedTextSize(textBB, rotate);\n\n var scale = 1;\n if(constrained) {\n scale = Math.min(\n 1,\n lx / t.x,\n ly / t.y\n );\n }\n\n // compute text and target positions\n var textX = (\n textBB.left * toLeft +\n textBB.right * toRight\n );\n var textY = (textBB.top + textBB.bottom) / 2;\n var targetX = (\n (x0 + TEXTPAD) * toLeft +\n (x1 - TEXTPAD) * toRight\n );\n var targetY = (y0 + y1) / 2;\n var anchorX = 0;\n var anchorY = 0;\n if(isStart || isEnd) {\n var extrapad = (isHorizontal ? t.x : t.y) / 2;\n var dir = isHorizontal ? dirSign(x0, x1) : dirSign(y0, y1);\n\n if(isHorizontal) {\n if(isStart) {\n targetX = x0 + dir * textpad;\n anchorX = -dir * extrapad;\n } else {\n targetX = x1 - dir * textpad;\n anchorX = dir * extrapad;\n }\n } else {\n if(isStart) {\n targetY = y0 + dir * textpad;\n anchorY = -dir * extrapad;\n } else {\n targetY = y1 - dir * textpad;\n anchorY = dir * extrapad;\n }\n }\n }\n\n return {\n textX: textX,\n textY: textY,\n targetX: targetX,\n targetY: targetY,\n anchorX: anchorX,\n anchorY: anchorY,\n scale: scale,\n rotate: rotate\n };\n}\n\nfunction toMoveOutsideBar(x0, x1, y0, y1, textBB, opts) {\n var isHorizontal = !!opts.isHorizontal;\n var constrained = !!opts.constrained;\n var angle = opts.angle || 0;\n\n var textWidth = textBB.width;\n var textHeight = textBB.height;\n var lx = Math.abs(x1 - x0);\n var ly = Math.abs(y1 - y0);\n\n var textpad;\n // Keep the padding so the text doesn't sit right against\n // the bars, but don't factor it into barWidth\n if(isHorizontal) {\n textpad = (ly > 2 * TEXTPAD) ? TEXTPAD : 0;\n } else {\n textpad = (lx > 2 * TEXTPAD) ? TEXTPAD : 0;\n }\n\n // compute rotate and scale\n var scale = 1;\n if(constrained) {\n scale = (isHorizontal) ?\n Math.min(1, ly / textHeight) :\n Math.min(1, lx / textWidth);\n }\n\n var rotate = getRotateFromAngle(angle);\n var t = getRotatedTextSize(textBB, rotate);\n\n // compute text and target positions\n var extrapad = (isHorizontal ? t.x : t.y) / 2;\n var textX = (textBB.left + textBB.right) / 2;\n var textY = (textBB.top + textBB.bottom) / 2;\n var targetX = (x0 + x1) / 2;\n var targetY = (y0 + y1) / 2;\n var anchorX = 0;\n var anchorY = 0;\n\n var dir = isHorizontal ? dirSign(x1, x0) : dirSign(y0, y1);\n if(isHorizontal) {\n targetX = x1 - dir * textpad;\n anchorX = dir * extrapad;\n } else {\n targetY = y1 + dir * textpad;\n anchorY = -dir * extrapad;\n }\n\n return {\n textX: textX,\n textY: textY,\n targetX: targetX,\n targetY: targetY,\n anchorX: anchorX,\n anchorY: anchorY,\n scale: scale,\n rotate: rotate\n };\n}\n\nfunction getText(fullLayout, cd, index, xa, ya) {\n var trace = cd[0].trace;\n var texttemplate = trace.texttemplate;\n\n var value;\n if(texttemplate) {\n value = calcTexttemplate(fullLayout, cd, index, xa, ya);\n } else if(trace.textinfo) {\n value = calcTextinfo(cd, index, xa, ya);\n } else {\n value = helpers.getValue(trace.text, index);\n }\n\n return helpers.coerceString(attributeText, value);\n}\n\nfunction getTextPosition(trace, index) {\n var value = helpers.getValue(trace.textposition, index);\n return helpers.coerceEnumerated(attributeTextPosition, value);\n}\n\nfunction calcTexttemplate(fullLayout, cd, index, xa, ya) {\n var trace = cd[0].trace;\n var texttemplate = Lib.castOption(trace, index, 'texttemplate');\n if(!texttemplate) return '';\n var isWaterfall = (trace.type === 'waterfall');\n var isFunnel = (trace.type === 'funnel');\n\n var pLetter, pAxis;\n var vLetter, vAxis;\n if(trace.orientation === 'h') {\n pLetter = 'y';\n pAxis = ya;\n vLetter = 'x';\n vAxis = xa;\n } else {\n pLetter = 'x';\n pAxis = xa;\n vLetter = 'y';\n vAxis = ya;\n }\n\n function formatLabel(u) {\n return tickText(pAxis, pAxis.c2l(u), true).text;\n }\n\n function formatNumber(v) {\n return tickText(vAxis, vAxis.c2l(v), true).text;\n }\n\n var cdi = cd[index];\n var obj = {};\n\n obj.label = cdi.p;\n obj.labelLabel = obj[pLetter + 'Label'] = formatLabel(cdi.p);\n\n var tx = Lib.castOption(trace, cdi.i, 'text');\n if(tx === 0 || tx) obj.text = tx;\n\n obj.value = cdi.s;\n obj.valueLabel = obj[vLetter + 'Label'] = formatNumber(cdi.s);\n\n var pt = {};\n appendArrayPointValue(pt, trace, cdi.i);\n\n if(isWaterfall) {\n obj.delta = +cdi.rawS || cdi.s;\n obj.deltaLabel = formatNumber(obj.delta);\n obj.final = cdi.v;\n obj.finalLabel = formatNumber(obj.final);\n obj.initial = obj.final - obj.delta;\n obj.initialLabel = formatNumber(obj.initial);\n }\n\n if(isFunnel) {\n obj.value = cdi.s;\n obj.valueLabel = formatNumber(obj.value);\n\n obj.percentInitial = cdi.begR;\n obj.percentInitialLabel = Lib.formatPercent(cdi.begR);\n obj.percentPrevious = cdi.difR;\n obj.percentPreviousLabel = Lib.formatPercent(cdi.difR);\n obj.percentTotal = cdi.sumR;\n obj.percenTotalLabel = Lib.formatPercent(cdi.sumR);\n }\n\n var customdata = Lib.castOption(trace, cdi.i, 'customdata');\n if(customdata) obj.customdata = customdata;\n return Lib.texttemplateString(texttemplate, obj, fullLayout._d3locale, pt, obj, trace._meta || {});\n}\n\nfunction calcTextinfo(cd, index, xa, ya) {\n var trace = cd[0].trace;\n var isHorizontal = (trace.orientation === 'h');\n var isWaterfall = (trace.type === 'waterfall');\n var isFunnel = (trace.type === 'funnel');\n\n function formatLabel(u) {\n var pAxis = isHorizontal ? ya : xa;\n return tickText(pAxis, u, true).text;\n }\n\n function formatNumber(v) {\n var sAxis = isHorizontal ? xa : ya;\n return tickText(sAxis, +v, true).text;\n }\n\n var textinfo = trace.textinfo;\n var cdi = cd[index];\n\n var parts = textinfo.split('+');\n var text = [];\n var tx;\n\n var hasFlag = function(flag) { return parts.indexOf(flag) !== -1; };\n\n if(hasFlag('label')) {\n text.push(formatLabel(cd[index].p));\n }\n\n if(hasFlag('text')) {\n tx = Lib.castOption(trace, cdi.i, 'text');\n if(tx === 0 || tx) text.push(tx);\n }\n\n if(isWaterfall) {\n var delta = +cdi.rawS || cdi.s;\n var final = cdi.v;\n var initial = final - delta;\n\n if(hasFlag('initial')) text.push(formatNumber(initial));\n if(hasFlag('delta')) text.push(formatNumber(delta));\n if(hasFlag('final')) text.push(formatNumber(final));\n }\n\n if(isFunnel) {\n if(hasFlag('value')) text.push(formatNumber(cdi.s));\n\n var nPercent = 0;\n if(hasFlag('percent initial')) nPercent++;\n if(hasFlag('percent previous')) nPercent++;\n if(hasFlag('percent total')) nPercent++;\n\n var hasMultiplePercents = nPercent > 1;\n\n if(hasFlag('percent initial')) {\n tx = Lib.formatPercent(cdi.begR);\n if(hasMultiplePercents) tx += ' of initial';\n text.push(tx);\n }\n if(hasFlag('percent previous')) {\n tx = Lib.formatPercent(cdi.difR);\n if(hasMultiplePercents) tx += ' of previous';\n text.push(tx);\n }\n if(hasFlag('percent total')) {\n tx = Lib.formatPercent(cdi.sumR);\n if(hasMultiplePercents) tx += ' of total';\n text.push(tx);\n }\n }\n\n return text.join('
');\n}\n\nmodule.exports = {\n plot: plot,\n toMoveInsideBar: toMoveInsideBar\n};\n\n},{\"../../components/color\":366,\"../../components/drawing\":388,\"../../components/fx/helpers\":402,\"../../lib\":503,\"../../lib/svg_text_utils\":529,\"../../plots/cartesian/axes\":554,\"../../registry\":638,\"./attributes\":648,\"./constants\":650,\"./helpers\":654,\"./style\":662,\"./uniform_text\":664,\"@plotly/d3\":58,\"fast-isnumeric\":190}],660:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function selectPoints(searchInfo, selectionTester) {\n var cd = searchInfo.cd;\n var xa = searchInfo.xaxis;\n var ya = searchInfo.yaxis;\n var trace = cd[0].trace;\n var isFunnel = (trace.type === 'funnel');\n var isHorizontal = (trace.orientation === 'h');\n var selection = [];\n var i;\n\n if(selectionTester === false) {\n // clear selection\n for(i = 0; i < cd.length; i++) {\n cd[i].selected = 0;\n }\n } else {\n for(i = 0; i < cd.length; i++) {\n var di = cd[i];\n var ct = 'ct' in di ? di.ct : getCentroid(di, xa, ya, isHorizontal, isFunnel);\n\n if(selectionTester.contains(ct, false, i, searchInfo)) {\n selection.push({\n pointNumber: i,\n x: xa.c2d(di.x),\n y: ya.c2d(di.y)\n });\n di.selected = 1;\n } else {\n di.selected = 0;\n }\n }\n }\n\n return selection;\n};\n\nfunction getCentroid(d, xa, ya, isHorizontal, isFunnel) {\n var x0 = xa.c2p(isHorizontal ? d.s0 : d.p0, true);\n var x1 = xa.c2p(isHorizontal ? d.s1 : d.p1, true);\n var y0 = ya.c2p(isHorizontal ? d.p0 : d.s0, true);\n var y1 = ya.c2p(isHorizontal ? d.p1 : d.s1, true);\n\n if(isFunnel) {\n return [(x0 + x1) / 2, (y0 + y1) / 2];\n } else {\n if(isHorizontal) {\n return [x1, (y0 + y1) / 2];\n } else {\n return [(x0 + x1) / 2, y1];\n }\n }\n}\n\n},{}],661:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = Sieve;\n\nvar distinctVals = _dereq_('../../lib').distinctVals;\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\n/**\n * Helper class to sieve data from traces into bins\n *\n * @class\n *\n * @param {Array} traces\n* Array of calculated traces\n * @param {object} opts\n * - @param {boolean} [sepNegVal]\n * If true, then split data at the same position into a bar\n * for positive values and another for negative values\n * - @param {boolean} [overlapNoMerge]\n * If true, then don't merge overlapping bars into a single bar\n */\nfunction Sieve(traces, opts) {\n this.traces = traces;\n this.sepNegVal = opts.sepNegVal;\n this.overlapNoMerge = opts.overlapNoMerge;\n\n // for single-bin histograms - see histogram/calc\n var width1 = Infinity;\n\n var positions = [];\n for(var i = 0; i < traces.length; i++) {\n var trace = traces[i];\n for(var j = 0; j < trace.length; j++) {\n var bar = trace[j];\n if(bar.p !== BADNUM) positions.push(bar.p);\n }\n if(trace[0] && trace[0].width1) {\n width1 = Math.min(trace[0].width1, width1);\n }\n }\n this.positions = positions;\n\n var dv = distinctVals(positions);\n\n this.distinctPositions = dv.vals;\n if(dv.vals.length === 1 && width1 !== Infinity) this.minDiff = width1;\n else this.minDiff = Math.min(dv.minDiff, width1);\n\n var type = (opts.posAxis || {}).type;\n if(type === 'category' || type === 'multicategory') {\n this.minDiff = 1;\n }\n\n this.binWidth = this.minDiff;\n\n this.bins = {};\n}\n\n/**\n * Sieve datum\n *\n * @method\n * @param {number} position\n * @param {number} value\n * @returns {number} Previous bin value\n */\nSieve.prototype.put = function put(position, value) {\n var label = this.getLabel(position, value);\n var oldValue = this.bins[label] || 0;\n\n this.bins[label] = oldValue + value;\n\n return oldValue;\n};\n\n/**\n * Get current bin value for a given datum\n *\n * @method\n * @param {number} position Position of datum\n * @param {number} [value] Value of datum\n * (required if this.sepNegVal is true)\n * @returns {number} Current bin value\n */\nSieve.prototype.get = function get(position, value) {\n var label = this.getLabel(position, value);\n return this.bins[label] || 0;\n};\n\n/**\n * Get bin label for a given datum\n *\n * @method\n * @param {number} position Position of datum\n * @param {number} [value] Value of datum\n * (required if this.sepNegVal is true)\n * @returns {string} Bin label\n * (prefixed with a 'v' if value is negative and this.sepNegVal is\n * true; otherwise prefixed with '^')\n */\nSieve.prototype.getLabel = function getLabel(position, value) {\n var prefix = (value < 0 && this.sepNegVal) ? 'v' : '^';\n var label = (this.overlapNoMerge) ?\n position :\n Math.round(position / this.binWidth);\n return prefix + label;\n};\n\n},{\"../../constants/numerical\":479,\"../../lib\":503}],662:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Color = _dereq_('../../components/color');\nvar Drawing = _dereq_('../../components/drawing');\nvar Lib = _dereq_('../../lib');\nvar Registry = _dereq_('../../registry');\n\nvar resizeText = _dereq_('./uniform_text').resizeText;\nvar attributes = _dereq_('./attributes');\nvar attributeTextFont = attributes.textfont;\nvar attributeInsideTextFont = attributes.insidetextfont;\nvar attributeOutsideTextFont = attributes.outsidetextfont;\nvar helpers = _dereq_('./helpers');\n\nfunction style(gd) {\n var s = d3.select(gd).selectAll('g.barlayer').selectAll('g.trace');\n resizeText(gd, s, 'bar');\n\n var barcount = s.size();\n var fullLayout = gd._fullLayout;\n\n // trace styling\n s.style('opacity', function(d) { return d[0].trace.opacity; })\n\n // for gapless (either stacked or neighboring grouped) bars use\n // crispEdges to turn off antialiasing so an artificial gap\n // isn't introduced.\n .each(function(d) {\n if((fullLayout.barmode === 'stack' && barcount > 1) ||\n (fullLayout.bargap === 0 &&\n fullLayout.bargroupgap === 0 &&\n !d[0].trace.marker.line.width)) {\n d3.select(this).attr('shape-rendering', 'crispEdges');\n }\n });\n\n s.selectAll('g.points').each(function(d) {\n var sel = d3.select(this);\n var trace = d[0].trace;\n stylePoints(sel, trace, gd);\n });\n\n Registry.getComponentMethod('errorbars', 'style')(s);\n}\n\nfunction stylePoints(sel, trace, gd) {\n Drawing.pointStyle(sel.selectAll('path'), trace, gd);\n styleTextPoints(sel, trace, gd);\n}\n\nfunction styleTextPoints(sel, trace, gd) {\n sel.selectAll('text').each(function(d) {\n var tx = d3.select(this);\n var font = Lib.ensureUniformFontSize(gd, determineFont(tx, d, trace, gd));\n\n Drawing.font(tx, font);\n });\n}\n\nfunction styleOnSelect(gd, cd, sel) {\n var trace = cd[0].trace;\n\n if(trace.selectedpoints) {\n stylePointsInSelectionMode(sel, trace, gd);\n } else {\n stylePoints(sel, trace, gd);\n Registry.getComponentMethod('errorbars', 'style')(sel);\n }\n}\n\nfunction stylePointsInSelectionMode(s, trace, gd) {\n Drawing.selectedPointStyle(s.selectAll('path'), trace);\n styleTextInSelectionMode(s.selectAll('text'), trace, gd);\n}\n\nfunction styleTextInSelectionMode(txs, trace, gd) {\n txs.each(function(d) {\n var tx = d3.select(this);\n var font;\n\n if(d.selected) {\n font = Lib.ensureUniformFontSize(gd, determineFont(tx, d, trace, gd));\n\n var selectedFontColor = trace.selected.textfont && trace.selected.textfont.color;\n if(selectedFontColor) {\n font.color = selectedFontColor;\n }\n\n Drawing.font(tx, font);\n } else {\n Drawing.selectedTextStyle(tx, trace);\n }\n });\n}\n\nfunction determineFont(tx, d, trace, gd) {\n var layoutFont = gd._fullLayout.font;\n var textFont = trace.textfont;\n\n if(tx.classed('bartext-inside')) {\n var barColor = getBarColor(d, trace);\n textFont = getInsideTextFont(trace, d.i, layoutFont, barColor);\n } else if(tx.classed('bartext-outside')) {\n textFont = getOutsideTextFont(trace, d.i, layoutFont);\n }\n\n return textFont;\n}\n\nfunction getTextFont(trace, index, defaultValue) {\n return getFontValue(\n attributeTextFont, trace.textfont, index, defaultValue);\n}\n\nfunction getInsideTextFont(trace, index, layoutFont, barColor) {\n var defaultFont = getTextFont(trace, index, layoutFont);\n\n var wouldFallBackToLayoutFont =\n (trace._input.textfont === undefined || trace._input.textfont.color === undefined) ||\n (Array.isArray(trace.textfont.color) && trace.textfont.color[index] === undefined);\n if(wouldFallBackToLayoutFont) {\n defaultFont = {\n color: Color.contrast(barColor),\n family: defaultFont.family,\n size: defaultFont.size\n };\n }\n\n return getFontValue(\n attributeInsideTextFont, trace.insidetextfont, index, defaultFont);\n}\n\nfunction getOutsideTextFont(trace, index, layoutFont) {\n var defaultFont = getTextFont(trace, index, layoutFont);\n return getFontValue(\n attributeOutsideTextFont, trace.outsidetextfont, index, defaultFont);\n}\n\nfunction getFontValue(attributeDefinition, attributeValue, index, defaultValue) {\n attributeValue = attributeValue || {};\n\n var familyValue = helpers.getValue(attributeValue.family, index);\n var sizeValue = helpers.getValue(attributeValue.size, index);\n var colorValue = helpers.getValue(attributeValue.color, index);\n\n return {\n family: helpers.coerceString(\n attributeDefinition.family, familyValue, defaultValue.family),\n size: helpers.coerceNumber(\n attributeDefinition.size, sizeValue, defaultValue.size),\n color: helpers.coerceColor(\n attributeDefinition.color, colorValue, defaultValue.color)\n };\n}\n\nfunction getBarColor(cd, trace) {\n if(trace.type === 'waterfall') {\n return trace[cd.dir].marker.color;\n }\n return cd.mcc || cd.mc || trace.marker.color;\n}\n\nmodule.exports = {\n style: style,\n styleTextPoints: styleTextPoints,\n styleOnSelect: styleOnSelect,\n getInsideTextFont: getInsideTextFont,\n getOutsideTextFont: getOutsideTextFont,\n getBarColor: getBarColor,\n resizeText: resizeText\n};\n\n},{\"../../components/color\":366,\"../../components/drawing\":388,\"../../lib\":503,\"../../registry\":638,\"./attributes\":648,\"./helpers\":654,\"./uniform_text\":664,\"@plotly/d3\":58}],663:[function(_dereq_,module,exports){\n'use strict';\n\nvar Color = _dereq_('../../components/color');\nvar hasColorscale = _dereq_('../../components/colorscale/helpers').hasColorscale;\nvar colorscaleDefaults = _dereq_('../../components/colorscale/defaults');\nvar coercePattern = _dereq_('../../lib').coercePattern;\n\nmodule.exports = function handleStyleDefaults(traceIn, traceOut, coerce, defaultColor, layout) {\n var markerColor = coerce('marker.color', defaultColor);\n var hasMarkerColorscale = hasColorscale(traceIn, 'marker');\n if(hasMarkerColorscale) {\n colorscaleDefaults(\n traceIn, traceOut, layout, coerce, {prefix: 'marker.', cLetter: 'c'}\n );\n }\n\n coerce('marker.line.color', Color.defaultLine);\n\n if(hasColorscale(traceIn, 'marker.line')) {\n colorscaleDefaults(\n traceIn, traceOut, layout, coerce, {prefix: 'marker.line.', cLetter: 'c'}\n );\n }\n\n coerce('marker.line.width');\n coerce('marker.opacity');\n coercePattern(coerce, 'marker.pattern', markerColor, hasMarkerColorscale);\n coerce('selected.marker.color');\n coerce('unselected.marker.color');\n};\n\n},{\"../../components/color\":366,\"../../components/colorscale/defaults\":376,\"../../components/colorscale/helpers\":377,\"../../lib\":503}],664:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Lib = _dereq_('../../lib');\n\nfunction resizeText(gd, gTrace, traceType) {\n var fullLayout = gd._fullLayout;\n var minSize = fullLayout['_' + traceType + 'Text_minsize'];\n if(minSize) {\n var shouldHide = fullLayout.uniformtext.mode === 'hide';\n\n var selector;\n switch(traceType) {\n case 'funnelarea' :\n case 'pie' :\n case 'sunburst' :\n selector = 'g.slice';\n break;\n case 'treemap' :\n case 'icicle' :\n selector = 'g.slice, g.pathbar';\n break;\n default :\n selector = 'g.points > g.point';\n }\n\n gTrace.selectAll(selector).each(function(d) {\n var transform = d.transform;\n if(transform) {\n transform.scale = (shouldHide && transform.hide) ? 0 : minSize / transform.fontSize;\n\n var el = d3.select(this).select('text');\n el.attr('transform', Lib.getTextTransform(transform));\n }\n });\n }\n}\n\nfunction recordMinTextSize(\n traceType, // in\n transform, // inout\n fullLayout // inout\n) {\n if(fullLayout.uniformtext.mode) {\n var minKey = getMinKey(traceType);\n var minSize = fullLayout.uniformtext.minsize;\n var size = transform.scale * transform.fontSize;\n\n transform.hide = size < minSize;\n\n fullLayout[minKey] = fullLayout[minKey] || Infinity;\n if(!transform.hide) {\n fullLayout[minKey] = Math.min(\n fullLayout[minKey],\n Math.max(size, minSize)\n );\n }\n }\n}\n\nfunction clearMinTextSize(\n traceType, // in\n fullLayout // inout\n) {\n var minKey = getMinKey(traceType);\n fullLayout[minKey] = undefined;\n}\n\nfunction getMinKey(traceType) {\n return '_' + traceType + 'Text_minsize';\n}\n\nmodule.exports = {\n recordMinTextSize: recordMinTextSize,\n clearMinTextSize: clearMinTextSize,\n resizeText: resizeText\n};\n\n},{\"../../lib\":503,\"@plotly/d3\":58}],665:[function(_dereq_,module,exports){\n'use strict';\n\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar scatterPolarAttrs = _dereq_('../scatterpolar/attributes');\nvar barAttrs = _dereq_('../bar/attributes');\n\nmodule.exports = {\n r: scatterPolarAttrs.r,\n theta: scatterPolarAttrs.theta,\n r0: scatterPolarAttrs.r0,\n dr: scatterPolarAttrs.dr,\n theta0: scatterPolarAttrs.theta0,\n dtheta: scatterPolarAttrs.dtheta,\n thetaunit: scatterPolarAttrs.thetaunit,\n\n // orientation: {\n // valType: 'enumerated',\n // values: ['radial', 'angular'],\n // editType: 'calc+clearAxisTypes',\n //\n // },\n\n base: extendFlat({}, barAttrs.base, {\n }),\n offset: extendFlat({}, barAttrs.offset, {\n }),\n width: extendFlat({}, barAttrs.width, {\n }),\n\n text: extendFlat({}, barAttrs.text, {\n }),\n hovertext: extendFlat({}, barAttrs.hovertext, {\n }),\n\n // textposition: {},\n // textfont: {},\n // insidetextfont: {},\n // outsidetextfont: {},\n // constraintext: {},\n // cliponaxis: extendFlat({}, barAttrs.cliponaxis, {dflt: false}),\n\n marker: barAttrs.marker,\n\n hoverinfo: scatterPolarAttrs.hoverinfo,\n hovertemplate: hovertemplateAttrs(),\n\n selected: barAttrs.selected,\n unselected: barAttrs.unselected\n\n // error_x (error_r, error_theta)\n // error_y\n};\n\n},{\"../../lib/extend\":493,\"../../plots/template_attributes\":633,\"../bar/attributes\":648,\"../scatterpolar/attributes\":999}],666:[function(_dereq_,module,exports){\n'use strict';\n\nvar hasColorscale = _dereq_('../../components/colorscale/helpers').hasColorscale;\nvar colorscaleCalc = _dereq_('../../components/colorscale/calc');\nvar arraysToCalcdata = _dereq_('../bar/arrays_to_calcdata');\nvar setGroupPositions = _dereq_('../bar/cross_trace_calc').setGroupPositions;\nvar calcSelection = _dereq_('../scatter/calc_selection');\nvar traceIs = _dereq_('../../registry').traceIs;\nvar extendFlat = _dereq_('../../lib').extendFlat;\n\nfunction calc(gd, trace) {\n var fullLayout = gd._fullLayout;\n var subplotId = trace.subplot;\n var radialAxis = fullLayout[subplotId].radialaxis;\n var angularAxis = fullLayout[subplotId].angularaxis;\n var rArray = radialAxis.makeCalcdata(trace, 'r');\n var thetaArray = angularAxis.makeCalcdata(trace, 'theta');\n var len = trace._length;\n var cd = new Array(len);\n\n // 'size' axis variables\n var sArray = rArray;\n // 'pos' axis variables\n var pArray = thetaArray;\n\n for(var i = 0; i < len; i++) {\n cd[i] = {p: pArray[i], s: sArray[i]};\n }\n\n // convert width and offset in 'c' coordinate,\n // set 'c' value(s) in trace._width and trace._offset,\n // to make Bar.crossTraceCalc \"just work\"\n function d2c(attr) {\n var val = trace[attr];\n if(val !== undefined) {\n trace['_' + attr] = Array.isArray(val) ?\n angularAxis.makeCalcdata(trace, attr) :\n angularAxis.d2c(val, trace.thetaunit);\n }\n }\n\n if(angularAxis.type === 'linear') {\n d2c('width');\n d2c('offset');\n }\n\n if(hasColorscale(trace, 'marker')) {\n colorscaleCalc(gd, trace, {\n vals: trace.marker.color,\n containerStr: 'marker',\n cLetter: 'c'\n });\n }\n if(hasColorscale(trace, 'marker.line')) {\n colorscaleCalc(gd, trace, {\n vals: trace.marker.line.color,\n containerStr: 'marker.line',\n cLetter: 'c'\n });\n }\n\n arraysToCalcdata(cd, trace);\n calcSelection(cd, trace);\n\n return cd;\n}\n\nfunction crossTraceCalc(gd, polarLayout, subplotId) {\n var calcdata = gd.calcdata;\n var barPolarCd = [];\n\n for(var i = 0; i < calcdata.length; i++) {\n var cdi = calcdata[i];\n var trace = cdi[0].trace;\n\n if(trace.visible === true && traceIs(trace, 'bar') &&\n trace.subplot === subplotId\n ) {\n barPolarCd.push(cdi);\n }\n }\n\n // to make _extremes is filled in correctly so that\n // polar._subplot.radialAxis can get auotrange'd\n // TODO clean up!\n // I think we want to call getAutorange on polar.radialaxis\n // NOT on polar._subplot.radialAxis\n var rAxis = extendFlat({}, polarLayout.radialaxis, {_id: 'x'});\n var aAxis = polarLayout.angularaxis;\n\n setGroupPositions(gd, aAxis, rAxis, barPolarCd, {\n mode: polarLayout.barmode,\n norm: polarLayout.barnorm,\n gap: polarLayout.bargap,\n groupgap: polarLayout.bargroupgap\n });\n}\n\nmodule.exports = {\n calc: calc,\n crossTraceCalc: crossTraceCalc\n};\n\n},{\"../../components/colorscale/calc\":374,\"../../components/colorscale/helpers\":377,\"../../lib\":503,\"../../registry\":638,\"../bar/arrays_to_calcdata\":647,\"../bar/cross_trace_calc\":651,\"../scatter/calc_selection\":927}],667:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar handleRThetaDefaults = _dereq_('../scatterpolar/defaults').handleRThetaDefaults;\nvar handleStyleDefaults = _dereq_('../bar/style_defaults');\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var len = handleRThetaDefaults(traceIn, traceOut, layout, coerce);\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n // coerce('orientation', (traceOut.theta && !traceOut.r) ? 'angular' : 'radial');\n\n coerce('thetaunit');\n coerce('base');\n coerce('offset');\n coerce('width');\n\n coerce('text');\n coerce('hovertext');\n coerce('hovertemplate');\n\n // var textPosition = coerce('textposition');\n // var hasBoth = Array.isArray(textPosition) || textPosition === 'auto';\n // var hasInside = hasBoth || textPosition === 'inside';\n // var hasOutside = hasBoth || textPosition === 'outside';\n\n // if(hasInside || hasOutside) {\n // var textFont = coerceFont(coerce, 'textfont', layout.font);\n // if(hasInside) coerceFont(coerce, 'insidetextfont', textFont);\n // if(hasOutside) coerceFont(coerce, 'outsidetextfont', textFont);\n // coerce('constraintext');\n // coerce('selected.textfont.color');\n // coerce('unselected.textfont.color');\n // coerce('cliponaxis');\n // }\n\n handleStyleDefaults(traceIn, traceOut, coerce, defaultColor, layout);\n\n Lib.coerceSelectionMarkerOpacity(traceOut, coerce);\n};\n\n},{\"../../lib\":503,\"../bar/style_defaults\":663,\"../scatterpolar/defaults\":1001,\"./attributes\":665}],668:[function(_dereq_,module,exports){\n'use strict';\n\nvar Fx = _dereq_('../../components/fx');\nvar Lib = _dereq_('../../lib');\nvar getTraceColor = _dereq_('../bar/hover').getTraceColor;\nvar fillText = Lib.fillText;\nvar makeHoverPointText = _dereq_('../scatterpolar/hover').makeHoverPointText;\nvar isPtInsidePolygon = _dereq_('../../plots/polar/helpers').isPtInsidePolygon;\n\nmodule.exports = function hoverPoints(pointData, xval, yval) {\n var cd = pointData.cd;\n var trace = cd[0].trace;\n\n var subplot = pointData.subplot;\n var radialAxis = subplot.radialAxis;\n var angularAxis = subplot.angularAxis;\n var vangles = subplot.vangles;\n var inboxFn = vangles ? isPtInsidePolygon : Lib.isPtInsideSector;\n var maxHoverDistance = pointData.maxHoverDistance;\n var period = angularAxis._period || 2 * Math.PI;\n\n var rVal = Math.abs(radialAxis.g2p(Math.sqrt(xval * xval + yval * yval)));\n var thetaVal = Math.atan2(yval, xval);\n\n // polar.(x|y)axis.p2c doesn't get the reversed radial axis range case right\n if(radialAxis.range[0] > radialAxis.range[1]) {\n thetaVal += Math.PI;\n }\n\n var distFn = function(di) {\n if(inboxFn(rVal, thetaVal, [di.rp0, di.rp1], [di.thetag0, di.thetag1], vangles)) {\n return maxHoverDistance +\n // add a little to the pseudo-distance for wider bars, so that like scatter,\n // if you are over two overlapping bars, the narrower one wins.\n Math.min(1, Math.abs(di.thetag1 - di.thetag0) / period) - 1 +\n // add a gradient so hovering near the end of a\n // bar makes it a little closer match\n (di.rp1 - rVal) / (di.rp1 - di.rp0) - 1;\n } else {\n return Infinity;\n }\n };\n\n Fx.getClosest(cd, distFn, pointData);\n if(pointData.index === false) return;\n\n var index = pointData.index;\n var cdi = cd[index];\n\n pointData.x0 = pointData.x1 = cdi.ct[0];\n pointData.y0 = pointData.y1 = cdi.ct[1];\n\n var _cdi = Lib.extendFlat({}, cdi, {r: cdi.s, theta: cdi.p});\n fillText(cdi, trace, pointData);\n makeHoverPointText(_cdi, trace, subplot, pointData);\n pointData.hovertemplate = trace.hovertemplate;\n pointData.color = getTraceColor(trace, cdi);\n pointData.xLabelVal = pointData.yLabelVal = undefined;\n\n if(cdi.s < 0) {\n pointData.idealAlign = 'left';\n }\n\n return [pointData];\n};\n\n},{\"../../components/fx\":406,\"../../lib\":503,\"../../plots/polar/helpers\":621,\"../bar/hover\":655,\"../scatterpolar/hover\":1003}],669:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'trace',\n name: 'barpolar',\n basePlotModule: _dereq_('../../plots/polar'),\n categories: ['polar', 'bar', 'showLegend'],\n\n attributes: _dereq_('./attributes'),\n layoutAttributes: _dereq_('./layout_attributes'),\n supplyDefaults: _dereq_('./defaults'),\n supplyLayoutDefaults: _dereq_('./layout_defaults'),\n\n calc: _dereq_('./calc').calc,\n crossTraceCalc: _dereq_('./calc').crossTraceCalc,\n\n plot: _dereq_('./plot'),\n colorbar: _dereq_('../scatter/marker_colorbar'),\n formatLabels: _dereq_('../scatterpolar/format_labels'),\n\n style: _dereq_('../bar/style').style,\n styleOnSelect: _dereq_('../bar/style').styleOnSelect,\n\n hoverPoints: _dereq_('./hover'),\n selectPoints: _dereq_('../bar/select'),\n\n meta: {\n }\n};\n\n},{\"../../plots/polar\":622,\"../bar/select\":660,\"../bar/style\":662,\"../scatter/marker_colorbar\":943,\"../scatterpolar/format_labels\":1002,\"./attributes\":665,\"./calc\":666,\"./defaults\":667,\"./hover\":668,\"./layout_attributes\":670,\"./layout_defaults\":671,\"./plot\":672}],670:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n barmode: {\n valType: 'enumerated',\n values: ['stack', 'overlay'],\n dflt: 'stack',\n editType: 'calc',\n },\n bargap: {\n valType: 'number',\n dflt: 0.1,\n min: 0,\n max: 1,\n editType: 'calc',\n }\n};\n\n},{}],671:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar attrs = _dereq_('./layout_attributes');\n\nmodule.exports = function(layoutIn, layoutOut, fullData) {\n var subplotsDone = {};\n var sp;\n\n function coerce(attr, dflt) {\n return Lib.coerce(layoutIn[sp] || {}, layoutOut[sp], attrs, attr, dflt);\n }\n\n for(var i = 0; i < fullData.length; i++) {\n var trace = fullData[i];\n if(trace.type === 'barpolar' && trace.visible === true) {\n sp = trace.subplot;\n if(!subplotsDone[sp]) {\n coerce('barmode');\n coerce('bargap');\n subplotsDone[sp] = 1;\n }\n }\n }\n};\n\n},{\"../../lib\":503,\"./layout_attributes\":670}],672:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Lib = _dereq_('../../lib');\nvar Drawing = _dereq_('../../components/drawing');\nvar helpers = _dereq_('../../plots/polar/helpers');\n\nmodule.exports = function plot(gd, subplot, cdbar) {\n var xa = subplot.xaxis;\n var ya = subplot.yaxis;\n var radialAxis = subplot.radialAxis;\n var angularAxis = subplot.angularAxis;\n var pathFn = makePathFn(subplot);\n var barLayer = subplot.layers.frontplot.select('g.barlayer');\n\n Lib.makeTraceGroups(barLayer, cdbar, 'trace bars').each(function() {\n var plotGroup = d3.select(this);\n var pointGroup = Lib.ensureSingle(plotGroup, 'g', 'points');\n var bars = pointGroup.selectAll('g.point').data(Lib.identity);\n\n bars.enter().append('g')\n .style('vector-effect', 'non-scaling-stroke')\n .style('stroke-miterlimit', 2)\n .classed('point', true);\n\n bars.exit().remove();\n\n bars.each(function(di) {\n var bar = d3.select(this);\n\n var rp0 = di.rp0 = radialAxis.c2p(di.s0);\n var rp1 = di.rp1 = radialAxis.c2p(di.s1);\n var thetag0 = di.thetag0 = angularAxis.c2g(di.p0);\n var thetag1 = di.thetag1 = angularAxis.c2g(di.p1);\n\n var dPath;\n\n if(!isNumeric(rp0) || !isNumeric(rp1) ||\n !isNumeric(thetag0) || !isNumeric(thetag1) ||\n rp0 === rp1 || thetag0 === thetag1\n ) {\n // do not remove blank bars, to keep data-to-node\n // mapping intact during radial drag, that we\n // can skip calling _module.style during interactions\n dPath = 'M0,0Z';\n } else {\n // this 'center' pt is used for selections and hover labels\n var rg1 = radialAxis.c2g(di.s1);\n var thetagMid = (thetag0 + thetag1) / 2;\n di.ct = [\n xa.c2p(rg1 * Math.cos(thetagMid)),\n ya.c2p(rg1 * Math.sin(thetagMid))\n ];\n\n dPath = pathFn(rp0, rp1, thetag0, thetag1);\n }\n\n Lib.ensureSingle(bar, 'path').attr('d', dPath);\n });\n\n // clip plotGroup, when trace layer isn't clipped\n Drawing.setClipUrl(\n plotGroup,\n subplot._hasClipOnAxisFalse ? subplot.clipIds.forTraces : null,\n gd\n );\n });\n};\n\nfunction makePathFn(subplot) {\n var cxx = subplot.cxx;\n var cyy = subplot.cyy;\n\n if(subplot.vangles) {\n return function(r0, r1, _a0, _a1) {\n var a0, a1;\n\n if(Lib.angleDelta(_a0, _a1) > 0) {\n a0 = _a0;\n a1 = _a1;\n } else {\n a0 = _a1;\n a1 = _a0;\n }\n\n var va0 = helpers.findEnclosingVertexAngles(a0, subplot.vangles)[0];\n var va1 = helpers.findEnclosingVertexAngles(a1, subplot.vangles)[1];\n var vaBar = [va0, (a0 + a1) / 2, va1];\n return helpers.pathPolygonAnnulus(r0, r1, a0, a1, vaBar, cxx, cyy);\n };\n }\n\n return function(r0, r1, a0, a1) {\n return Lib.pathAnnulus(r0, r1, a0, a1, cxx, cyy);\n };\n}\n\n},{\"../../components/drawing\":388,\"../../lib\":503,\"../../plots/polar/helpers\":621,\"@plotly/d3\":58,\"fast-isnumeric\":190}],673:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterAttrs = _dereq_('../scatter/attributes');\nvar barAttrs = _dereq_('../bar/attributes');\nvar colorAttrs = _dereq_('../../components/color/attributes');\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nvar scatterMarkerAttrs = scatterAttrs.marker;\nvar scatterMarkerLineAttrs = scatterMarkerAttrs.line;\n\nmodule.exports = {\n y: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n x: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n x0: {\n valType: 'any',\n editType: 'calc+clearAxisTypes',\n },\n y0: {\n valType: 'any',\n editType: 'calc+clearAxisTypes',\n },\n\n dx: {\n valType: 'number',\n editType: 'calc',\n },\n dy: {\n valType: 'number',\n editType: 'calc',\n },\n\n xperiod: scatterAttrs.xperiod,\n yperiod: scatterAttrs.yperiod,\n xperiod0: scatterAttrs.xperiod0,\n yperiod0: scatterAttrs.yperiod0,\n xperiodalignment: scatterAttrs.xperiodalignment,\n yperiodalignment: scatterAttrs.yperiodalignment,\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n\n name: {\n valType: 'string',\n editType: 'calc+clearAxisTypes',\n },\n\n q1: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n median: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n q3: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n lowerfence: {\n valType: 'data_array',\n editType: 'calc',\n },\n upperfence: {\n valType: 'data_array',\n editType: 'calc',\n },\n\n notched: {\n valType: 'boolean',\n editType: 'calc',\n },\n notchwidth: {\n valType: 'number',\n min: 0,\n max: 0.5,\n dflt: 0.25,\n editType: 'calc',\n },\n notchspan: {\n valType: 'data_array',\n editType: 'calc',\n },\n\n // TODO\n // maybe add\n // - loweroutlierbound / upperoutlierbound\n // - lowersuspectedoutlierbound / uppersuspectedoutlierbound\n\n boxpoints: {\n valType: 'enumerated',\n values: ['all', 'outliers', 'suspectedoutliers', false],\n editType: 'calc',\n },\n jitter: {\n valType: 'number',\n min: 0,\n max: 1,\n editType: 'calc',\n },\n pointpos: {\n valType: 'number',\n min: -2,\n max: 2,\n editType: 'calc',\n },\n\n boxmean: {\n valType: 'enumerated',\n values: [true, 'sd', false],\n editType: 'calc',\n },\n mean: {\n valType: 'data_array',\n editType: 'calc',\n },\n sd: {\n valType: 'data_array',\n editType: 'calc',\n },\n\n orientation: {\n valType: 'enumerated',\n values: ['v', 'h'],\n editType: 'calc+clearAxisTypes',\n },\n\n quartilemethod: {\n valType: 'enumerated',\n values: ['linear', 'exclusive', 'inclusive'],\n dflt: 'linear',\n editType: 'calc',\n },\n\n width: {\n valType: 'number',\n min: 0,\n dflt: 0,\n editType: 'calc',\n },\n\n marker: {\n outliercolor: {\n valType: 'color',\n dflt: 'rgba(0, 0, 0, 0)',\n editType: 'style',\n },\n symbol: extendFlat({}, scatterMarkerAttrs.symbol,\n {arrayOk: false, editType: 'plot'}),\n opacity: extendFlat({}, scatterMarkerAttrs.opacity,\n {arrayOk: false, dflt: 1, editType: 'style'}),\n size: extendFlat({}, scatterMarkerAttrs.size,\n {arrayOk: false, editType: 'calc'}),\n color: extendFlat({}, scatterMarkerAttrs.color,\n {arrayOk: false, editType: 'style'}),\n line: {\n color: extendFlat({}, scatterMarkerLineAttrs.color,\n {arrayOk: false, dflt: colorAttrs.defaultLine, editType: 'style'}\n ),\n width: extendFlat({}, scatterMarkerLineAttrs.width,\n {arrayOk: false, dflt: 0, editType: 'style'}\n ),\n outliercolor: {\n valType: 'color',\n editType: 'style',\n },\n outlierwidth: {\n valType: 'number',\n min: 0,\n dflt: 1,\n editType: 'style',\n },\n editType: 'style'\n },\n editType: 'plot'\n },\n\n line: {\n color: {\n valType: 'color',\n editType: 'style',\n },\n width: {\n valType: 'number',\n min: 0,\n dflt: 2,\n editType: 'style',\n },\n editType: 'plot'\n },\n\n fillcolor: scatterAttrs.fillcolor,\n\n whiskerwidth: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0.5,\n editType: 'calc',\n },\n\n offsetgroup: barAttrs.offsetgroup,\n alignmentgroup: barAttrs.alignmentgroup,\n\n selected: {\n marker: scatterAttrs.selected.marker,\n editType: 'style'\n },\n unselected: {\n marker: scatterAttrs.unselected.marker,\n editType: 'style'\n },\n\n text: extendFlat({}, scatterAttrs.text, {\n }),\n hovertext: extendFlat({}, scatterAttrs.hovertext, {\n }),\n hovertemplate: hovertemplateAttrs({\n }),\n\n hoveron: {\n valType: 'flaglist',\n flags: ['boxes', 'points'],\n dflt: 'boxes+points',\n editType: 'style',\n }\n};\n\n},{\"../../components/color/attributes\":365,\"../../lib/extend\":493,\"../../plots/cartesian/axis_format_attributes\":557,\"../../plots/template_attributes\":633,\"../bar/attributes\":648,\"../scatter/attributes\":925}],674:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar alignPeriod = _dereq_('../../plots/cartesian/align_period');\nvar Lib = _dereq_('../../lib');\n\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\nvar _ = Lib._;\n\nmodule.exports = function calc(gd, trace) {\n var fullLayout = gd._fullLayout;\n var xa = Axes.getFromId(gd, trace.xaxis || 'x');\n var ya = Axes.getFromId(gd, trace.yaxis || 'y');\n var cd = [];\n\n // N.B. violin reuses same Box.calc\n var numKey = trace.type === 'violin' ? '_numViolins' : '_numBoxes';\n\n var i, j;\n var valAxis, valLetter;\n var posAxis, posLetter;\n\n var hasPeriod;\n if(trace.orientation === 'h') {\n valAxis = xa;\n valLetter = 'x';\n posAxis = ya;\n posLetter = 'y';\n hasPeriod = !!trace.yperiodalignment;\n } else {\n valAxis = ya;\n valLetter = 'y';\n posAxis = xa;\n posLetter = 'x';\n hasPeriod = !!trace.xperiodalignment;\n }\n\n var allPosArrays = getPosArrays(trace, posLetter, posAxis, fullLayout[numKey]);\n var posArray = allPosArrays[0];\n var origPos = allPosArrays[1];\n var dv = Lib.distinctVals(posArray, posAxis);\n var posDistinct = dv.vals;\n var dPos = dv.minDiff / 2;\n\n // item in trace calcdata\n var cdi;\n // array of {v: v, i, i} sample pts\n var pts;\n // values of the `pts` array of objects\n var boxVals;\n // length of sample\n var N;\n // single sample point\n var pt;\n // single sample value\n var v;\n\n // filter function for outlier pts\n // outlier definition based on http://www.physics.csbsju.edu/stats/box2.html\n var ptFilterFn = (trace.boxpoints || trace.points) === 'all' ?\n Lib.identity :\n function(pt) { return (pt.v < cdi.lf || pt.v > cdi.uf); };\n\n if(trace._hasPreCompStats) {\n var valArrayRaw = trace[valLetter];\n var d2c = function(k) { return valAxis.d2c((trace[k] || [])[i]); };\n var minVal = Infinity;\n var maxVal = -Infinity;\n\n for(i = 0; i < trace._length; i++) {\n var posi = posArray[i];\n if(!isNumeric(posi)) continue;\n\n cdi = {};\n cdi.pos = cdi[posLetter] = posi;\n if(hasPeriod && origPos) {\n cdi.orig_p = origPos[i]; // used by hover\n }\n\n cdi.q1 = d2c('q1');\n cdi.med = d2c('median');\n cdi.q3 = d2c('q3');\n\n pts = [];\n if(valArrayRaw && Lib.isArrayOrTypedArray(valArrayRaw[i])) {\n for(j = 0; j < valArrayRaw[i].length; j++) {\n v = valAxis.d2c(valArrayRaw[i][j]);\n if(v !== BADNUM) {\n pt = {v: v, i: [i, j]};\n arraysToCalcdata(pt, trace, [i, j]);\n pts.push(pt);\n }\n }\n }\n cdi.pts = pts.sort(sortByVal);\n boxVals = cdi[valLetter] = pts.map(extractVal);\n N = boxVals.length;\n\n if(cdi.med !== BADNUM && cdi.q1 !== BADNUM && cdi.q3 !== BADNUM &&\n cdi.med >= cdi.q1 && cdi.q3 >= cdi.med\n ) {\n var lf = d2c('lowerfence');\n cdi.lf = (lf !== BADNUM && lf <= cdi.q1) ?\n lf :\n computeLowerFence(cdi, boxVals, N);\n\n var uf = d2c('upperfence');\n cdi.uf = (uf !== BADNUM && uf >= cdi.q3) ?\n uf :\n computeUpperFence(cdi, boxVals, N);\n\n var mean = d2c('mean');\n cdi.mean = (mean !== BADNUM) ?\n mean :\n (N ? Lib.mean(boxVals, N) : (cdi.q1 + cdi.q3) / 2);\n\n var sd = d2c('sd');\n cdi.sd = (mean !== BADNUM && sd >= 0) ?\n sd :\n (N ? Lib.stdev(boxVals, N, cdi.mean) : (cdi.q3 - cdi.q1));\n\n cdi.lo = computeLowerOutlierBound(cdi);\n cdi.uo = computeUpperOutlierBound(cdi);\n\n var ns = d2c('notchspan');\n ns = (ns !== BADNUM && ns > 0) ? ns : computeNotchSpan(cdi, N);\n cdi.ln = cdi.med - ns;\n cdi.un = cdi.med + ns;\n\n var imin = cdi.lf;\n var imax = cdi.uf;\n if(trace.boxpoints && boxVals.length) {\n imin = Math.min(imin, boxVals[0]);\n imax = Math.max(imax, boxVals[N - 1]);\n }\n if(trace.notched) {\n imin = Math.min(imin, cdi.ln);\n imax = Math.max(imax, cdi.un);\n }\n cdi.min = imin;\n cdi.max = imax;\n } else {\n Lib.warn([\n 'Invalid input - make sure that q1 <= median <= q3',\n 'q1 = ' + cdi.q1,\n 'median = ' + cdi.med,\n 'q3 = ' + cdi.q3\n ].join('\\n'));\n\n var v0;\n if(cdi.med !== BADNUM) {\n v0 = cdi.med;\n } else if(cdi.q1 !== BADNUM) {\n if(cdi.q3 !== BADNUM) v0 = (cdi.q1 + cdi.q3) / 2;\n else v0 = cdi.q1;\n } else if(cdi.q3 !== BADNUM) {\n v0 = cdi.q3;\n } else {\n v0 = 0;\n }\n\n // draw box as line segment\n cdi.med = v0;\n cdi.q1 = cdi.q3 = v0;\n cdi.lf = cdi.uf = v0;\n cdi.mean = cdi.sd = v0;\n cdi.ln = cdi.un = v0;\n cdi.min = cdi.max = v0;\n }\n\n minVal = Math.min(minVal, cdi.min);\n maxVal = Math.max(maxVal, cdi.max);\n\n cdi.pts2 = pts.filter(ptFilterFn);\n\n cd.push(cdi);\n }\n\n trace._extremes[valAxis._id] = Axes.findExtremes(valAxis,\n [minVal, maxVal],\n {padded: true}\n );\n } else {\n var valArray = valAxis.makeCalcdata(trace, valLetter);\n var posBins = makeBins(posDistinct, dPos);\n var pLen = posDistinct.length;\n var ptsPerBin = initNestedArray(pLen);\n\n // bin pts info per position bins\n for(i = 0; i < trace._length; i++) {\n v = valArray[i];\n if(!isNumeric(v)) continue;\n\n var n = Lib.findBin(posArray[i], posBins);\n if(n >= 0 && n < pLen) {\n pt = {v: v, i: i};\n arraysToCalcdata(pt, trace, i);\n ptsPerBin[n].push(pt);\n }\n }\n\n var minLowerNotch = Infinity;\n var maxUpperNotch = -Infinity;\n\n var quartilemethod = trace.quartilemethod;\n var usesExclusive = quartilemethod === 'exclusive';\n var usesInclusive = quartilemethod === 'inclusive';\n\n // build calcdata trace items, one item per distinct position\n for(i = 0; i < pLen; i++) {\n if(ptsPerBin[i].length > 0) {\n cdi = {};\n cdi.pos = cdi[posLetter] = posDistinct[i];\n\n pts = cdi.pts = ptsPerBin[i].sort(sortByVal);\n boxVals = cdi[valLetter] = pts.map(extractVal);\n N = boxVals.length;\n\n cdi.min = boxVals[0];\n cdi.max = boxVals[N - 1];\n cdi.mean = Lib.mean(boxVals, N);\n cdi.sd = Lib.stdev(boxVals, N, cdi.mean);\n cdi.med = Lib.interp(boxVals, 0.5);\n\n if((N % 2) && (usesExclusive || usesInclusive)) {\n var lower;\n var upper;\n\n if(usesExclusive) {\n // do NOT include the median in either half\n lower = boxVals.slice(0, N / 2);\n upper = boxVals.slice(N / 2 + 1);\n } else if(usesInclusive) {\n // include the median in either half\n lower = boxVals.slice(0, N / 2 + 1);\n upper = boxVals.slice(N / 2);\n }\n\n cdi.q1 = Lib.interp(lower, 0.5);\n cdi.q3 = Lib.interp(upper, 0.5);\n } else {\n cdi.q1 = Lib.interp(boxVals, 0.25);\n cdi.q3 = Lib.interp(boxVals, 0.75);\n }\n\n // lower and upper fences\n cdi.lf = computeLowerFence(cdi, boxVals, N);\n cdi.uf = computeUpperFence(cdi, boxVals, N);\n\n // lower and upper outliers bounds\n cdi.lo = computeLowerOutlierBound(cdi);\n cdi.uo = computeUpperOutlierBound(cdi);\n\n // lower and upper notches\n var mci = computeNotchSpan(cdi, N);\n cdi.ln = cdi.med - mci;\n cdi.un = cdi.med + mci;\n minLowerNotch = Math.min(minLowerNotch, cdi.ln);\n maxUpperNotch = Math.max(maxUpperNotch, cdi.un);\n\n cdi.pts2 = pts.filter(ptFilterFn);\n\n cd.push(cdi);\n }\n }\n\n trace._extremes[valAxis._id] = Axes.findExtremes(valAxis,\n trace.notched ? valArray.concat([minLowerNotch, maxUpperNotch]) : valArray,\n {padded: true}\n );\n }\n\n calcSelection(cd, trace);\n\n if(cd.length > 0) {\n cd[0].t = {\n num: fullLayout[numKey],\n dPos: dPos,\n posLetter: posLetter,\n valLetter: valLetter,\n labels: {\n med: _(gd, 'median:'),\n min: _(gd, 'min:'),\n q1: _(gd, 'q1:'),\n q3: _(gd, 'q3:'),\n max: _(gd, 'max:'),\n mean: trace.boxmean === 'sd' ? _(gd, 'mean ± σ:') : _(gd, 'mean:'),\n lf: _(gd, 'lower fence:'),\n uf: _(gd, 'upper fence:')\n }\n };\n\n fullLayout[numKey]++;\n return cd;\n } else {\n return [{t: {empty: true}}];\n }\n};\n\n// In vertical (horizontal) box plots:\n// if no x (y) data, use x0 (y0), or name\n// so if you want one box\n// per trace, set x0 (y0) to the x (y) value or category for this trace\n// (or set x (y) to a constant array matching y (x))\nfunction getPosArrays(trace, posLetter, posAxis, num) {\n var hasPosArray = posLetter in trace;\n var hasPos0 = posLetter + '0' in trace;\n var hasPosStep = 'd' + posLetter in trace;\n\n if(hasPosArray || (hasPos0 && hasPosStep)) {\n var origPos = posAxis.makeCalcdata(trace, posLetter);\n var pos = alignPeriod(trace, posAxis, posLetter, origPos).vals;\n return [pos, origPos];\n }\n\n var pos0;\n if(hasPos0) {\n pos0 = trace[posLetter + '0'];\n } else if('name' in trace && (\n posAxis.type === 'category' || (\n isNumeric(trace.name) &&\n ['linear', 'log'].indexOf(posAxis.type) !== -1\n ) || (\n Lib.isDateTime(trace.name) &&\n posAxis.type === 'date'\n )\n )) {\n pos0 = trace.name;\n } else {\n pos0 = num;\n }\n\n var pos0c = posAxis.type === 'multicategory' ?\n posAxis.r2c_just_indices(pos0) :\n posAxis.d2c(pos0, 0, trace[posLetter + 'calendar']);\n\n var len = trace._length;\n var out = new Array(len);\n for(var i = 0; i < len; i++) out[i] = pos0c;\n\n return [out];\n}\n\nfunction makeBins(x, dx) {\n var len = x.length;\n var bins = new Array(len + 1);\n\n for(var i = 0; i < len; i++) {\n bins[i] = x[i] - dx;\n }\n bins[len] = x[len - 1] + dx;\n\n return bins;\n}\n\nfunction initNestedArray(len) {\n var arr = new Array(len);\n for(var i = 0; i < len; i++) {\n arr[i] = [];\n }\n return arr;\n}\n\nvar TRACE_TO_CALC = {\n text: 'tx',\n hovertext: 'htx'\n};\n\nfunction arraysToCalcdata(pt, trace, ptNumber) {\n for(var k in TRACE_TO_CALC) {\n if(Lib.isArrayOrTypedArray(trace[k])) {\n if(Array.isArray(ptNumber)) {\n if(Lib.isArrayOrTypedArray(trace[k][ptNumber[0]])) {\n pt[TRACE_TO_CALC[k]] = trace[k][ptNumber[0]][ptNumber[1]];\n }\n } else {\n pt[TRACE_TO_CALC[k]] = trace[k][ptNumber];\n }\n }\n }\n}\n\nfunction calcSelection(cd, trace) {\n if(Lib.isArrayOrTypedArray(trace.selectedpoints)) {\n for(var i = 0; i < cd.length; i++) {\n var pts = cd[i].pts || [];\n var ptNumber2cdIndex = {};\n\n for(var j = 0; j < pts.length; j++) {\n ptNumber2cdIndex[pts[j].i] = j;\n }\n\n Lib.tagSelected(pts, trace, ptNumber2cdIndex);\n }\n }\n}\n\nfunction sortByVal(a, b) { return a.v - b.v; }\n\nfunction extractVal(o) { return o.v; }\n\n// last point below 1.5 * IQR\nfunction computeLowerFence(cdi, boxVals, N) {\n if(N === 0) return cdi.q1;\n return Math.min(\n cdi.q1,\n boxVals[Math.min(\n Lib.findBin(2.5 * cdi.q1 - 1.5 * cdi.q3, boxVals, true) + 1,\n N - 1\n )]\n );\n}\n\n// last point above 1.5 * IQR\nfunction computeUpperFence(cdi, boxVals, N) {\n if(N === 0) return cdi.q3;\n return Math.max(\n cdi.q3,\n boxVals[Math.max(\n Lib.findBin(2.5 * cdi.q3 - 1.5 * cdi.q1, boxVals),\n 0\n )]\n );\n}\n\n// 3 IQR below (don't clip to max/min,\n// this is only for discriminating suspected & far outliers)\nfunction computeLowerOutlierBound(cdi) {\n return 4 * cdi.q1 - 3 * cdi.q3;\n}\n\n// 3 IQR above (don't clip to max/min,\n// this is only for discriminating suspected & far outliers)\nfunction computeUpperOutlierBound(cdi) {\n return 4 * cdi.q3 - 3 * cdi.q1;\n}\n\n// 95% confidence intervals for median\nfunction computeNotchSpan(cdi, N) {\n if(N === 0) return 0;\n return 1.57 * (cdi.q3 - cdi.q1) / Math.sqrt(N);\n}\n\n},{\"../../constants/numerical\":479,\"../../lib\":503,\"../../plots/cartesian/align_period\":551,\"../../plots/cartesian/axes\":554,\"fast-isnumeric\":190}],675:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar Lib = _dereq_('../../lib');\nvar getAxisGroup = _dereq_('../../plots/cartesian/constraints').getAxisGroup;\n\nvar orientations = ['v', 'h'];\n\nfunction crossTraceCalc(gd, plotinfo) {\n var calcdata = gd.calcdata;\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n\n for(var i = 0; i < orientations.length; i++) {\n var orientation = orientations[i];\n var posAxis = orientation === 'h' ? ya : xa;\n var boxList = [];\n\n // make list of boxes / candlesticks\n // For backward compatibility, candlesticks are treated as if they *are* box traces here\n for(var j = 0; j < calcdata.length; j++) {\n var cd = calcdata[j];\n var t = cd[0].t;\n var trace = cd[0].trace;\n\n if(trace.visible === true &&\n (trace.type === 'box' || trace.type === 'candlestick') &&\n !t.empty &&\n (trace.orientation || 'v') === orientation &&\n trace.xaxis === xa._id &&\n trace.yaxis === ya._id\n ) {\n boxList.push(j);\n }\n }\n\n setPositionOffset('box', gd, boxList, posAxis);\n }\n}\n\nfunction setPositionOffset(traceType, gd, boxList, posAxis) {\n var calcdata = gd.calcdata;\n var fullLayout = gd._fullLayout;\n var axId = posAxis._id;\n var axLetter = axId.charAt(0);\n\n var i, j, calcTrace;\n var pointList = [];\n var shownPts = 0;\n\n // make list of box points\n for(i = 0; i < boxList.length; i++) {\n calcTrace = calcdata[boxList[i]];\n for(j = 0; j < calcTrace.length; j++) {\n pointList.push(posAxis.c2l(calcTrace[j].pos, true));\n shownPts += (calcTrace[j].pts2 || []).length;\n }\n }\n\n if(!pointList.length) return;\n\n // box plots - update dPos based on multiple traces\n var boxdv = Lib.distinctVals(pointList);\n if(posAxis.type === 'category' || posAxis.type === 'multicategory') {\n boxdv.minDiff = 1;\n }\n\n var dPos0 = boxdv.minDiff / 2;\n\n // check for forced minimum dtick\n Axes.minDtick(posAxis, boxdv.minDiff, boxdv.vals[0], true);\n\n var numKey = traceType === 'violin' ? '_numViolins' : '_numBoxes';\n var numTotal = fullLayout[numKey];\n var group = fullLayout[traceType + 'mode'] === 'group' && numTotal > 1;\n var groupFraction = 1 - fullLayout[traceType + 'gap'];\n var groupGapFraction = 1 - fullLayout[traceType + 'groupgap'];\n\n for(i = 0; i < boxList.length; i++) {\n calcTrace = calcdata[boxList[i]];\n\n var trace = calcTrace[0].trace;\n var t = calcTrace[0].t;\n var width = trace.width;\n var side = trace.side;\n\n // position coordinate delta\n var dPos;\n // box half width;\n var bdPos;\n // box center offset\n var bPos;\n // half-width within which to accept hover for this box/violin\n // always split the distance to the closest box/violin\n var wHover;\n\n if(width) {\n dPos = bdPos = wHover = width / 2;\n bPos = 0;\n } else {\n dPos = dPos0;\n\n if(group) {\n var groupId = getAxisGroup(fullLayout, posAxis._id) + trace.orientation;\n var alignmentGroups = fullLayout._alignmentOpts[groupId] || {};\n var alignmentGroupOpts = alignmentGroups[trace.alignmentgroup] || {};\n var nOffsetGroups = Object.keys(alignmentGroupOpts.offsetGroups || {}).length;\n var num = nOffsetGroups || numTotal;\n var shift = nOffsetGroups ? trace._offsetIndex : t.num;\n\n bdPos = dPos * groupFraction * groupGapFraction / num;\n bPos = 2 * dPos * (-0.5 + (shift + 0.5) / num) * groupFraction;\n wHover = dPos * groupFraction / num;\n } else {\n bdPos = dPos * groupFraction * groupGapFraction;\n bPos = 0;\n wHover = dPos;\n }\n }\n t.dPos = dPos;\n t.bPos = bPos;\n t.bdPos = bdPos;\n t.wHover = wHover;\n\n // box/violin-only value-space push value\n var pushplus;\n var pushminus;\n // edge of box/violin\n var edge = bPos + bdPos;\n var edgeplus;\n var edgeminus;\n // value-space padding\n var vpadplus;\n var vpadminus;\n // pixel-space padding\n var ppadplus;\n var ppadminus;\n // do we add 5% of both sides (more logic for points beyond box/violin below)\n var padded = Boolean(width);\n // does this trace show points?\n var hasPts = (trace.boxpoints || trace.points) && (shownPts > 0);\n\n if(side === 'positive') {\n pushplus = dPos * (width ? 1 : 0.5);\n edgeplus = edge;\n pushminus = edgeplus = bPos;\n } else if(side === 'negative') {\n pushplus = edgeplus = bPos;\n pushminus = dPos * (width ? 1 : 0.5);\n edgeminus = edge;\n } else {\n pushplus = pushminus = dPos;\n edgeplus = edgeminus = edge;\n }\n\n if(hasPts) {\n var pointpos = trace.pointpos;\n var jitter = trace.jitter;\n var ms = trace.marker.size / 2;\n\n var pp = 0;\n if((pointpos + jitter) >= 0) {\n pp = edge * (pointpos + jitter);\n if(pp > pushplus) {\n // (++) beyond plus-value, use pp\n padded = true;\n ppadplus = ms;\n vpadplus = pp;\n } else if(pp > edgeplus) {\n // (+), use push-value (it's bigger), but add px-pad\n ppadplus = ms;\n vpadplus = pushplus;\n }\n }\n if(pp <= pushplus) {\n // (->) fallback to push value\n vpadplus = pushplus;\n }\n\n var pm = 0;\n if((pointpos - jitter) <= 0) {\n pm = -edge * (pointpos - jitter);\n if(pm > pushminus) {\n // (--) beyond plus-value, use pp\n padded = true;\n ppadminus = ms;\n vpadminus = pm;\n } else if(pm > edgeminus) {\n // (-), use push-value (it's bigger), but add px-pad\n ppadminus = ms;\n vpadminus = pushminus;\n }\n }\n if(pm <= pushminus) {\n // (<-) fallback to push value\n vpadminus = pushminus;\n }\n } else {\n vpadplus = pushplus;\n vpadminus = pushminus;\n }\n\n var pos = new Array(calcTrace.length);\n for(j = 0; j < calcTrace.length; j++) {\n pos[j] = calcTrace[j].pos;\n }\n\n trace._extremes[axId] = Axes.findExtremes(posAxis, pos, {\n padded: padded,\n vpadminus: vpadminus,\n vpadplus: vpadplus,\n vpadLinearized: true,\n // N.B. SVG px-space positive/negative\n ppadminus: {x: ppadminus, y: ppadplus}[axLetter],\n ppadplus: {x: ppadplus, y: ppadminus}[axLetter],\n });\n }\n}\n\nmodule.exports = {\n crossTraceCalc: crossTraceCalc,\n setPositionOffset: setPositionOffset\n};\n\n},{\"../../lib\":503,\"../../plots/cartesian/axes\":554,\"../../plots/cartesian/constraints\":562}],676:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Registry = _dereq_('../../registry');\nvar Color = _dereq_('../../components/color');\nvar handlePeriodDefaults = _dereq_('../scatter/period_defaults');\nvar handleGroupingDefaults = _dereq_('../bar/defaults').handleGroupingDefaults;\nvar autoType = _dereq_('../../plots/cartesian/axis_autotype');\nvar attributes = _dereq_('./attributes');\n\nfunction supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n handleSampleDefaults(traceIn, traceOut, coerce, layout);\n if(traceOut.visible === false) return;\n\n handlePeriodDefaults(traceIn, traceOut, layout, coerce);\n coerce('xhoverformat');\n coerce('yhoverformat');\n\n var hasPreCompStats = traceOut._hasPreCompStats;\n\n if(hasPreCompStats) {\n coerce('lowerfence');\n coerce('upperfence');\n }\n\n coerce('line.color', (traceIn.marker || {}).color || defaultColor);\n coerce('line.width');\n coerce('fillcolor', Color.addOpacity(traceOut.line.color, 0.5));\n\n var boxmeanDflt = false;\n if(hasPreCompStats) {\n var mean = coerce('mean');\n var sd = coerce('sd');\n if(mean && mean.length) {\n boxmeanDflt = true;\n if(sd && sd.length) boxmeanDflt = 'sd';\n }\n }\n coerce('boxmean', boxmeanDflt);\n\n coerce('whiskerwidth');\n coerce('width');\n coerce('quartilemethod');\n\n var notchedDflt = false;\n if(hasPreCompStats) {\n var notchspan = coerce('notchspan');\n if(notchspan && notchspan.length) {\n notchedDflt = true;\n }\n } else if(Lib.validate(traceIn.notchwidth, attributes.notchwidth)) {\n notchedDflt = true;\n }\n var notched = coerce('notched', notchedDflt);\n if(notched) coerce('notchwidth');\n\n handlePointsDefaults(traceIn, traceOut, coerce, {prefix: 'box'});\n}\n\nfunction handleSampleDefaults(traceIn, traceOut, coerce, layout) {\n function getDims(arr) {\n var dims = 0;\n if(arr && arr.length) {\n dims += 1;\n if(Lib.isArrayOrTypedArray(arr[0]) && arr[0].length) {\n dims += 1;\n }\n }\n return dims;\n }\n\n function valid(astr) {\n return Lib.validate(traceIn[astr], attributes[astr]);\n }\n\n var y = coerce('y');\n var x = coerce('x');\n\n var sLen;\n if(traceOut.type === 'box') {\n var q1 = coerce('q1');\n var median = coerce('median');\n var q3 = coerce('q3');\n\n traceOut._hasPreCompStats = (\n q1 && q1.length &&\n median && median.length &&\n q3 && q3.length\n );\n sLen = Math.min(\n Lib.minRowLength(q1),\n Lib.minRowLength(median),\n Lib.minRowLength(q3)\n );\n }\n\n var yDims = getDims(y);\n var xDims = getDims(x);\n var yLen = yDims && Lib.minRowLength(y);\n var xLen = xDims && Lib.minRowLength(x);\n\n var calendar = layout.calendar;\n var opts = {\n autotypenumbers: layout.autotypenumbers\n };\n\n var defaultOrientation, len;\n if(traceOut._hasPreCompStats) {\n switch(String(xDims) + String(yDims)) {\n // no x / no y\n case '00':\n var setInX = valid('x0') || valid('dx');\n var setInY = valid('y0') || valid('dy');\n\n if(setInY && !setInX) {\n defaultOrientation = 'h';\n } else {\n defaultOrientation = 'v';\n }\n\n len = sLen;\n break;\n // just x\n case '10':\n defaultOrientation = 'v';\n len = Math.min(sLen, xLen);\n break;\n case '20':\n defaultOrientation = 'h';\n len = Math.min(sLen, x.length);\n break;\n // just y\n case '01':\n defaultOrientation = 'h';\n len = Math.min(sLen, yLen);\n break;\n case '02':\n defaultOrientation = 'v';\n len = Math.min(sLen, y.length);\n break;\n // both\n case '12':\n defaultOrientation = 'v';\n len = Math.min(sLen, xLen, y.length);\n break;\n case '21':\n defaultOrientation = 'h';\n len = Math.min(sLen, x.length, yLen);\n break;\n case '11':\n // this one is ill-defined\n len = 0;\n break;\n case '22':\n var hasCategories = false;\n var i;\n for(i = 0; i < x.length; i++) {\n if(autoType(x[i], calendar, opts) === 'category') {\n hasCategories = true;\n break;\n }\n }\n\n if(hasCategories) {\n defaultOrientation = 'v';\n len = Math.min(sLen, xLen, y.length);\n } else {\n for(i = 0; i < y.length; i++) {\n if(autoType(y[i], calendar, opts) === 'category') {\n hasCategories = true;\n break;\n }\n }\n\n if(hasCategories) {\n defaultOrientation = 'h';\n len = Math.min(sLen, x.length, yLen);\n } else {\n defaultOrientation = 'v';\n len = Math.min(sLen, xLen, y.length);\n }\n }\n break;\n }\n } else if(yDims > 0) {\n defaultOrientation = 'v';\n if(xDims > 0) {\n len = Math.min(xLen, yLen);\n } else {\n len = Math.min(yLen);\n }\n } else if(xDims > 0) {\n defaultOrientation = 'h';\n len = Math.min(xLen);\n } else {\n len = 0;\n }\n\n if(!len) {\n traceOut.visible = false;\n return;\n }\n traceOut._length = len;\n\n var orientation = coerce('orientation', defaultOrientation);\n\n // these are just used for positioning, they never define the sample\n if(traceOut._hasPreCompStats) {\n if(orientation === 'v' && xDims === 0) {\n coerce('x0', 0);\n coerce('dx', 1);\n } else if(orientation === 'h' && yDims === 0) {\n coerce('y0', 0);\n coerce('dy', 1);\n }\n } else {\n if(orientation === 'v' && xDims === 0) {\n coerce('x0');\n } else if(orientation === 'h' && yDims === 0) {\n coerce('y0');\n }\n }\n\n var handleCalendarDefaults = Registry.getComponentMethod('calendars', 'handleTraceDefaults');\n handleCalendarDefaults(traceIn, traceOut, ['x', 'y'], layout);\n}\n\nfunction handlePointsDefaults(traceIn, traceOut, coerce, opts) {\n var prefix = opts.prefix;\n\n var outlierColorDflt = Lib.coerce2(traceIn, traceOut, attributes, 'marker.outliercolor');\n var lineoutliercolor = coerce('marker.line.outliercolor');\n\n var modeDflt = 'outliers';\n if(traceOut._hasPreCompStats) {\n modeDflt = 'all';\n } else if(outlierColorDflt || lineoutliercolor) {\n modeDflt = 'suspectedoutliers';\n }\n\n var mode = coerce(prefix + 'points', modeDflt);\n\n if(mode) {\n coerce('jitter', mode === 'all' ? 0.3 : 0);\n coerce('pointpos', mode === 'all' ? -1.5 : 0);\n\n coerce('marker.symbol');\n coerce('marker.opacity');\n coerce('marker.size');\n coerce('marker.color', traceOut.line.color);\n coerce('marker.line.color');\n coerce('marker.line.width');\n\n if(mode === 'suspectedoutliers') {\n coerce('marker.line.outliercolor', traceOut.marker.color);\n coerce('marker.line.outlierwidth');\n }\n\n coerce('selected.marker.color');\n coerce('unselected.marker.color');\n coerce('selected.marker.size');\n coerce('unselected.marker.size');\n\n coerce('text');\n coerce('hovertext');\n } else {\n delete traceOut.marker;\n }\n\n var hoveron = coerce('hoveron');\n if(hoveron === 'all' || hoveron.indexOf('points') !== -1) {\n coerce('hovertemplate');\n }\n\n Lib.coerceSelectionMarkerOpacity(traceOut, coerce);\n}\n\nfunction crossTraceDefaults(fullData, fullLayout) {\n var traceIn, traceOut;\n\n function coerce(attr) {\n return Lib.coerce(traceOut._input, traceOut, attributes, attr);\n }\n\n for(var i = 0; i < fullData.length; i++) {\n traceOut = fullData[i];\n var traceType = traceOut.type;\n\n if(traceType === 'box' || traceType === 'violin') {\n traceIn = traceOut._input;\n if(fullLayout[traceType + 'mode'] === 'group') {\n handleGroupingDefaults(traceIn, traceOut, fullLayout, coerce);\n }\n }\n }\n}\n\nmodule.exports = {\n supplyDefaults: supplyDefaults,\n crossTraceDefaults: crossTraceDefaults,\n\n handleSampleDefaults: handleSampleDefaults,\n handlePointsDefaults: handlePointsDefaults\n};\n\n},{\"../../components/color\":366,\"../../lib\":503,\"../../plots/cartesian/axis_autotype\":555,\"../../registry\":638,\"../bar/defaults\":652,\"../scatter/period_defaults\":945,\"./attributes\":673}],677:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function eventData(out, pt) {\n // Note: hoverOnBox property is needed for click-to-select\n // to ignore when a box was clicked. This is the reason box\n // implements this custom eventData function.\n if(pt.hoverOnBox) out.hoverOnBox = pt.hoverOnBox;\n\n if('xVal' in pt) out.x = pt.xVal;\n if('yVal' in pt) out.y = pt.yVal;\n if(pt.xa) out.xaxis = pt.xa;\n if(pt.ya) out.yaxis = pt.ya;\n\n return out;\n};\n\n},{}],678:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar Lib = _dereq_('../../lib');\nvar Fx = _dereq_('../../components/fx');\nvar Color = _dereq_('../../components/color');\nvar fillText = Lib.fillText;\n\nfunction hoverPoints(pointData, xval, yval, hovermode) {\n var cd = pointData.cd;\n var trace = cd[0].trace;\n var hoveron = trace.hoveron;\n var closeBoxData = [];\n var closePtData;\n\n if(hoveron.indexOf('boxes') !== -1) {\n closeBoxData = closeBoxData.concat(hoverOnBoxes(pointData, xval, yval, hovermode));\n }\n\n if(hoveron.indexOf('points') !== -1) {\n closePtData = hoverOnPoints(pointData, xval, yval);\n }\n\n // If there's a point in range and hoveron has points, show the best single point only.\n // If hoveron has boxes and there's no point in range (or hoveron doesn't have points), show the box stats.\n if(hovermode === 'closest') {\n if(closePtData) return [closePtData];\n return closeBoxData;\n }\n\n // Otherwise in compare mode, allow a point AND the box stats to be labeled\n // If there are multiple boxes in range (ie boxmode = 'overlay') we'll see stats for all of them.\n if(closePtData) {\n closeBoxData.push(closePtData);\n return closeBoxData;\n }\n return closeBoxData;\n}\n\nfunction hoverOnBoxes(pointData, xval, yval, hovermode) {\n var cd = pointData.cd;\n var xa = pointData.xa;\n var ya = pointData.ya;\n var trace = cd[0].trace;\n var t = cd[0].t;\n var isViolin = trace.type === 'violin';\n var closeBoxData = [];\n\n var pLetter, vLetter, pAxis, vAxis, vVal, pVal, dx, dy, dPos,\n hoverPseudoDistance, spikePseudoDistance;\n\n var boxDelta = t.bdPos;\n var boxDeltaPos, boxDeltaNeg;\n var posAcceptance = t.wHover;\n var shiftPos = function(di) { return pAxis.c2l(di.pos) + t.bPos - pAxis.c2l(pVal); };\n\n if(isViolin && trace.side !== 'both') {\n if(trace.side === 'positive') {\n dPos = function(di) {\n var pos = shiftPos(di);\n return Fx.inbox(pos, pos + posAcceptance, hoverPseudoDistance);\n };\n boxDeltaPos = boxDelta;\n boxDeltaNeg = 0;\n }\n if(trace.side === 'negative') {\n dPos = function(di) {\n var pos = shiftPos(di);\n return Fx.inbox(pos - posAcceptance, pos, hoverPseudoDistance);\n };\n boxDeltaPos = 0;\n boxDeltaNeg = boxDelta;\n }\n } else {\n dPos = function(di) {\n var pos = shiftPos(di);\n return Fx.inbox(pos - posAcceptance, pos + posAcceptance, hoverPseudoDistance);\n };\n boxDeltaPos = boxDeltaNeg = boxDelta;\n }\n\n var dVal;\n\n if(isViolin) {\n dVal = function(di) {\n return Fx.inbox(di.span[0] - vVal, di.span[1] - vVal, hoverPseudoDistance);\n };\n } else {\n dVal = function(di) {\n return Fx.inbox(di.min - vVal, di.max - vVal, hoverPseudoDistance);\n };\n }\n\n if(trace.orientation === 'h') {\n vVal = xval;\n pVal = yval;\n dx = dVal;\n dy = dPos;\n pLetter = 'y';\n pAxis = ya;\n vLetter = 'x';\n vAxis = xa;\n } else {\n vVal = yval;\n pVal = xval;\n dx = dPos;\n dy = dVal;\n pLetter = 'x';\n pAxis = xa;\n vLetter = 'y';\n vAxis = ya;\n }\n\n // if two boxes are overlaying, let the narrowest one win\n var pseudoDistance = Math.min(1, boxDelta / Math.abs(pAxis.r2c(pAxis.range[1]) - pAxis.r2c(pAxis.range[0])));\n hoverPseudoDistance = pointData.maxHoverDistance - pseudoDistance;\n spikePseudoDistance = pointData.maxSpikeDistance - pseudoDistance;\n\n function dxy(di) { return (dx(di) + dy(di)) / 2; }\n var distfn = Fx.getDistanceFunction(hovermode, dx, dy, dxy);\n Fx.getClosest(cd, distfn, pointData);\n\n // skip the rest (for this trace) if we didn't find a close point\n // and create the item(s) in closedata for this point\n if(pointData.index === false) return [];\n\n var di = cd[pointData.index];\n var lc = trace.line.color;\n var mc = (trace.marker || {}).color;\n\n if(Color.opacity(lc) && trace.line.width) pointData.color = lc;\n else if(Color.opacity(mc) && trace.boxpoints) pointData.color = mc;\n else pointData.color = trace.fillcolor;\n\n pointData[pLetter + '0'] = pAxis.c2p(di.pos + t.bPos - boxDeltaNeg, true);\n pointData[pLetter + '1'] = pAxis.c2p(di.pos + t.bPos + boxDeltaPos, true);\n\n pointData[pLetter + 'LabelVal'] = di.orig_p !== undefined ? di.orig_p : di.pos;\n\n var spikePosAttr = pLetter + 'Spike';\n pointData.spikeDistance = dxy(di) * spikePseudoDistance / hoverPseudoDistance;\n pointData[spikePosAttr] = pAxis.c2p(di.pos, true);\n\n // box plots: each \"point\" gets many labels\n var usedVals = {};\n var attrs = ['med', 'q1', 'q3', 'min', 'max'];\n\n if(trace.boxmean || (trace.meanline || {}).visible) {\n attrs.push('mean');\n }\n if(trace.boxpoints || trace.points) {\n attrs.push('lf', 'uf');\n }\n\n for(var i = 0; i < attrs.length; i++) {\n var attr = attrs[i];\n\n if(!(attr in di) || (di[attr] in usedVals)) continue;\n usedVals[di[attr]] = true;\n\n // copy out to a new object for each value to label\n var val = di[attr];\n var valPx = vAxis.c2p(val, true);\n var pointData2 = Lib.extendFlat({}, pointData);\n\n pointData2.attr = attr;\n pointData2[vLetter + '0'] = pointData2[vLetter + '1'] = valPx;\n pointData2[vLetter + 'LabelVal'] = val;\n pointData2[vLetter + 'Label'] = (t.labels ? t.labels[attr] + ' ' : '') + Axes.hoverLabelText(vAxis, val, trace[vLetter + 'hoverformat']);\n\n // Note: introduced to be able to distinguish a\n // clicked point from a box during click-to-select\n pointData2.hoverOnBox = true;\n\n if(attr === 'mean' && ('sd' in di) && trace.boxmean === 'sd') {\n pointData2[vLetter + 'err'] = di.sd;\n }\n\n // only keep name and spikes on the first item (median)\n pointData.name = '';\n pointData.spikeDistance = undefined;\n pointData[spikePosAttr] = undefined;\n\n // no hovertemplate support yet\n pointData2.hovertemplate = false;\n\n closeBoxData.push(pointData2);\n }\n\n return closeBoxData;\n}\n\nfunction hoverOnPoints(pointData, xval, yval) {\n var cd = pointData.cd;\n var xa = pointData.xa;\n var ya = pointData.ya;\n var trace = cd[0].trace;\n var xPx = xa.c2p(xval);\n var yPx = ya.c2p(yval);\n var closePtData;\n\n var dx = function(di) {\n var rad = Math.max(3, di.mrc || 0);\n return Math.max(Math.abs(xa.c2p(di.x) - xPx) - rad, 1 - 3 / rad);\n };\n var dy = function(di) {\n var rad = Math.max(3, di.mrc || 0);\n return Math.max(Math.abs(ya.c2p(di.y) - yPx) - rad, 1 - 3 / rad);\n };\n var distfn = Fx.quadrature(dx, dy);\n\n // show one point per trace\n var ijClosest = false;\n var di, pt;\n\n for(var i = 0; i < cd.length; i++) {\n di = cd[i];\n\n for(var j = 0; j < (di.pts || []).length; j++) {\n pt = di.pts[j];\n\n var newDistance = distfn(pt);\n if(newDistance <= pointData.distance) {\n pointData.distance = newDistance;\n ijClosest = [i, j];\n }\n }\n }\n\n if(!ijClosest) return false;\n\n di = cd[ijClosest[0]];\n pt = di.pts[ijClosest[1]];\n\n var xc = xa.c2p(pt.x, true);\n var yc = ya.c2p(pt.y, true);\n var rad = pt.mrc || 1;\n\n closePtData = Lib.extendFlat({}, pointData, {\n // corresponds to index in x/y input data array\n index: pt.i,\n color: (trace.marker || {}).color,\n name: trace.name,\n x0: xc - rad,\n x1: xc + rad,\n y0: yc - rad,\n y1: yc + rad,\n spikeDistance: pointData.distance,\n hovertemplate: trace.hovertemplate\n });\n\n var origPos = di.orig_p;\n var pos = origPos !== undefined ? origPos : di.pos;\n var pa;\n if(trace.orientation === 'h') {\n pa = ya;\n closePtData.xLabelVal = pt.x;\n closePtData.yLabelVal = pos;\n } else {\n pa = xa;\n closePtData.xLabelVal = pos;\n closePtData.yLabelVal = pt.y;\n }\n\n var pLetter = pa._id.charAt(0);\n closePtData[pLetter + 'Spike'] = pa.c2p(di.pos, true);\n\n fillText(pt, trace, closePtData);\n\n return closePtData;\n}\n\nmodule.exports = {\n hoverPoints: hoverPoints,\n hoverOnBoxes: hoverOnBoxes,\n hoverOnPoints: hoverOnPoints\n};\n\n},{\"../../components/color\":366,\"../../components/fx\":406,\"../../lib\":503,\"../../plots/cartesian/axes\":554}],679:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n layoutAttributes: _dereq_('./layout_attributes'),\n supplyDefaults: _dereq_('./defaults').supplyDefaults,\n crossTraceDefaults: _dereq_('./defaults').crossTraceDefaults,\n supplyLayoutDefaults: _dereq_('./layout_defaults').supplyLayoutDefaults,\n calc: _dereq_('./calc'),\n crossTraceCalc: _dereq_('./cross_trace_calc').crossTraceCalc,\n plot: _dereq_('./plot').plot,\n style: _dereq_('./style').style,\n styleOnSelect: _dereq_('./style').styleOnSelect,\n hoverPoints: _dereq_('./hover').hoverPoints,\n eventData: _dereq_('./event_data'),\n selectPoints: _dereq_('./select'),\n\n moduleType: 'trace',\n name: 'box',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: ['cartesian', 'svg', 'symbols', 'oriented', 'box-violin', 'showLegend', 'boxLayout', 'zoomScale'],\n meta: {\n }\n};\n\n},{\"../../plots/cartesian\":568,\"./attributes\":673,\"./calc\":674,\"./cross_trace_calc\":675,\"./defaults\":676,\"./event_data\":677,\"./hover\":678,\"./layout_attributes\":680,\"./layout_defaults\":681,\"./plot\":682,\"./select\":683,\"./style\":684}],680:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = {\n boxmode: {\n valType: 'enumerated',\n values: ['group', 'overlay'],\n dflt: 'overlay',\n editType: 'calc',\n },\n boxgap: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0.3,\n editType: 'calc',\n },\n boxgroupgap: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0.3,\n editType: 'calc',\n }\n};\n\n},{}],681:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar layoutAttributes = _dereq_('./layout_attributes');\n\nfunction _supply(layoutIn, layoutOut, fullData, coerce, traceType) {\n var category = traceType + 'Layout';\n var hasTraceType = false;\n\n for(var i = 0; i < fullData.length; i++) {\n var trace = fullData[i];\n\n if(Registry.traceIs(trace, category)) {\n hasTraceType = true;\n break;\n }\n }\n if(!hasTraceType) return;\n\n coerce(traceType + 'mode');\n coerce(traceType + 'gap');\n coerce(traceType + 'groupgap');\n}\n\nfunction supplyLayoutDefaults(layoutIn, layoutOut, fullData) {\n function coerce(attr, dflt) {\n return Lib.coerce(layoutIn, layoutOut, layoutAttributes, attr, dflt);\n }\n _supply(layoutIn, layoutOut, fullData, coerce, 'box');\n}\n\nmodule.exports = {\n supplyLayoutDefaults: supplyLayoutDefaults,\n _supply: _supply\n};\n\n},{\"../../lib\":503,\"../../registry\":638,\"./layout_attributes\":680}],682:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Lib = _dereq_('../../lib');\nvar Drawing = _dereq_('../../components/drawing');\n\n// constants for dynamic jitter (ie less jitter for sparser points)\nvar JITTERCOUNT = 5; // points either side of this to include\nvar JITTERSPREAD = 0.01; // fraction of IQR to count as \"dense\"\n\nfunction plot(gd, plotinfo, cdbox, boxLayer) {\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n\n Lib.makeTraceGroups(boxLayer, cdbox, 'trace boxes').each(function(cd) {\n var plotGroup = d3.select(this);\n var cd0 = cd[0];\n var t = cd0.t;\n var trace = cd0.trace;\n\n // whisker width\n t.wdPos = t.bdPos * trace.whiskerwidth;\n\n if(trace.visible !== true || t.empty) {\n plotGroup.remove();\n return;\n }\n\n var posAxis, valAxis;\n\n if(trace.orientation === 'h') {\n posAxis = ya;\n valAxis = xa;\n } else {\n posAxis = xa;\n valAxis = ya;\n }\n\n plotBoxAndWhiskers(plotGroup, {pos: posAxis, val: valAxis}, trace, t);\n plotPoints(plotGroup, {x: xa, y: ya}, trace, t);\n plotBoxMean(plotGroup, {pos: posAxis, val: valAxis}, trace, t);\n });\n}\n\nfunction plotBoxAndWhiskers(sel, axes, trace, t) {\n var isHorizontal = trace.orientation === 'h';\n var valAxis = axes.val;\n var posAxis = axes.pos;\n var posHasRangeBreaks = !!posAxis.rangebreaks;\n\n var bPos = t.bPos;\n var wdPos = t.wdPos || 0;\n var bPosPxOffset = t.bPosPxOffset || 0;\n var whiskerWidth = trace.whiskerwidth || 0;\n var notched = trace.notched || false;\n var nw = notched ? 1 - 2 * trace.notchwidth : 1;\n\n // to support for one-sided box\n var bdPos0;\n var bdPos1;\n if(Array.isArray(t.bdPos)) {\n bdPos0 = t.bdPos[0];\n bdPos1 = t.bdPos[1];\n } else {\n bdPos0 = t.bdPos;\n bdPos1 = t.bdPos;\n }\n\n var paths = sel.selectAll('path.box').data((\n trace.type !== 'violin' ||\n trace.box.visible\n ) ? Lib.identity : []);\n\n paths.enter().append('path')\n .style('vector-effect', 'non-scaling-stroke')\n .attr('class', 'box');\n\n paths.exit().remove();\n\n paths.each(function(d) {\n if(d.empty) return 'M0,0Z';\n\n var lcenter = posAxis.c2l(d.pos + bPos, true);\n\n var pos0 = posAxis.l2p(lcenter - bdPos0) + bPosPxOffset;\n var pos1 = posAxis.l2p(lcenter + bdPos1) + bPosPxOffset;\n var posc = posHasRangeBreaks ? (pos0 + pos1) / 2 : posAxis.l2p(lcenter) + bPosPxOffset;\n\n var r = trace.whiskerwidth;\n var posw0 = posHasRangeBreaks ? pos0 * r + (1 - r) * posc : posAxis.l2p(lcenter - wdPos) + bPosPxOffset;\n var posw1 = posHasRangeBreaks ? pos1 * r + (1 - r) * posc : posAxis.l2p(lcenter + wdPos) + bPosPxOffset;\n\n var posm0 = posAxis.l2p(lcenter - bdPos0 * nw) + bPosPxOffset;\n var posm1 = posAxis.l2p(lcenter + bdPos1 * nw) + bPosPxOffset;\n var q1 = valAxis.c2p(d.q1, true);\n var q3 = valAxis.c2p(d.q3, true);\n // make sure median isn't identical to either of the\n // quartiles, so we can see it\n var m = Lib.constrain(\n valAxis.c2p(d.med, true),\n Math.min(q1, q3) + 1, Math.max(q1, q3) - 1\n );\n\n // for compatibility with box, violin, and candlestick\n // perhaps we should put this into cd0.t instead so it's more explicit,\n // but what we have now is:\n // - box always has d.lf, but boxpoints can be anything\n // - violin has d.lf and should always use it (boxpoints is undefined)\n // - candlestick has only min/max\n var useExtremes = (d.lf === undefined) || (trace.boxpoints === false);\n var lf = valAxis.c2p(useExtremes ? d.min : d.lf, true);\n var uf = valAxis.c2p(useExtremes ? d.max : d.uf, true);\n var ln = valAxis.c2p(d.ln, true);\n var un = valAxis.c2p(d.un, true);\n\n if(isHorizontal) {\n d3.select(this).attr('d',\n 'M' + m + ',' + posm0 + 'V' + posm1 + // median line\n 'M' + q1 + ',' + pos0 + 'V' + pos1 + // left edge\n (notched ?\n 'H' + ln + 'L' + m + ',' + posm1 + 'L' + un + ',' + pos1 :\n ''\n ) + // top notched edge\n 'H' + q3 + // end of the top edge\n 'V' + pos0 + // right edge\n (notched ? 'H' + un + 'L' + m + ',' + posm0 + 'L' + ln + ',' + pos0 : '') + // bottom notched edge\n 'Z' + // end of the box\n 'M' + q1 + ',' + posc + 'H' + lf + 'M' + q3 + ',' + posc + 'H' + uf + // whiskers\n (whiskerWidth === 0 ?\n '' : // whisker caps\n 'M' + lf + ',' + posw0 + 'V' + posw1 + 'M' + uf + ',' + posw0 + 'V' + posw1\n )\n );\n } else {\n d3.select(this).attr('d',\n 'M' + posm0 + ',' + m + 'H' + posm1 + // median line\n 'M' + pos0 + ',' + q1 + 'H' + pos1 + // top of the box\n (notched ?\n 'V' + ln + 'L' + posm1 + ',' + m + 'L' + pos1 + ',' + un :\n ''\n ) + // notched right edge\n 'V' + q3 + // end of the right edge\n 'H' + pos0 + // bottom of the box\n (notched ?\n 'V' + un + 'L' + posm0 + ',' + m + 'L' + pos0 + ',' + ln :\n ''\n ) + // notched left edge\n 'Z' + // end of the box\n 'M' + posc + ',' + q1 + 'V' + lf + 'M' + posc + ',' + q3 + 'V' + uf + // whiskers\n (whiskerWidth === 0 ?\n '' : // whisker caps\n 'M' + posw0 + ',' + lf + 'H' + posw1 + 'M' + posw0 + ',' + uf + 'H' + posw1\n )\n );\n }\n });\n}\n\nfunction plotPoints(sel, axes, trace, t) {\n var xa = axes.x;\n var ya = axes.y;\n var bdPos = t.bdPos;\n var bPos = t.bPos;\n\n // to support violin points\n var mode = trace.boxpoints || trace.points;\n\n // repeatable pseudo-random number generator\n Lib.seedPseudoRandom();\n\n // since box plot points get an extra level of nesting, each\n // box needs the trace styling info\n var fn = function(d) {\n d.forEach(function(v) {\n v.t = t;\n v.trace = trace;\n });\n return d;\n };\n\n var gPoints = sel.selectAll('g.points')\n .data(mode ? fn : []);\n\n gPoints.enter().append('g')\n .attr('class', 'points');\n\n gPoints.exit().remove();\n\n var paths = gPoints.selectAll('path')\n .data(function(d) {\n var i;\n var pts = d.pts2;\n\n // normally use IQR, but if this is 0 or too small, use max-min\n var typicalSpread = Math.max((d.max - d.min) / 10, d.q3 - d.q1);\n var minSpread = typicalSpread * 1e-9;\n var spreadLimit = typicalSpread * JITTERSPREAD;\n var jitterFactors = [];\n var maxJitterFactor = 0;\n var newJitter;\n\n // dynamic jitter\n if(trace.jitter) {\n if(typicalSpread === 0) {\n // edge case of no spread at all: fall back to max jitter\n maxJitterFactor = 1;\n jitterFactors = new Array(pts.length);\n for(i = 0; i < pts.length; i++) {\n jitterFactors[i] = 1;\n }\n } else {\n for(i = 0; i < pts.length; i++) {\n var i0 = Math.max(0, i - JITTERCOUNT);\n var pmin = pts[i0].v;\n var i1 = Math.min(pts.length - 1, i + JITTERCOUNT);\n var pmax = pts[i1].v;\n\n if(mode !== 'all') {\n if(pts[i].v < d.lf) pmax = Math.min(pmax, d.lf);\n else pmin = Math.max(pmin, d.uf);\n }\n\n var jitterFactor = Math.sqrt(spreadLimit * (i1 - i0) / (pmax - pmin + minSpread)) || 0;\n jitterFactor = Lib.constrain(Math.abs(jitterFactor), 0, 1);\n\n jitterFactors.push(jitterFactor);\n maxJitterFactor = Math.max(jitterFactor, maxJitterFactor);\n }\n }\n newJitter = trace.jitter * 2 / (maxJitterFactor || 1);\n }\n\n // fills in 'x' and 'y' in calcdata 'pts' item\n for(i = 0; i < pts.length; i++) {\n var pt = pts[i];\n var v = pt.v;\n\n var jitterOffset = trace.jitter ?\n (newJitter * jitterFactors[i] * (Lib.pseudoRandom() - 0.5)) :\n 0;\n\n var posPx = d.pos + bPos + bdPos * (trace.pointpos + jitterOffset);\n\n if(trace.orientation === 'h') {\n pt.y = posPx;\n pt.x = v;\n } else {\n pt.x = posPx;\n pt.y = v;\n }\n\n // tag suspected outliers\n if(mode === 'suspectedoutliers' && v < d.uo && v > d.lo) {\n pt.so = true;\n }\n }\n\n return pts;\n });\n\n paths.enter().append('path')\n .classed('point', true);\n\n paths.exit().remove();\n\n paths.call(Drawing.translatePoints, xa, ya);\n}\n\nfunction plotBoxMean(sel, axes, trace, t) {\n var valAxis = axes.val;\n var posAxis = axes.pos;\n var posHasRangeBreaks = !!posAxis.rangebreaks;\n\n var bPos = t.bPos;\n var bPosPxOffset = t.bPosPxOffset || 0;\n\n // to support violin mean lines\n var mode = trace.boxmean || (trace.meanline || {}).visible;\n\n // to support for one-sided box\n var bdPos0;\n var bdPos1;\n if(Array.isArray(t.bdPos)) {\n bdPos0 = t.bdPos[0];\n bdPos1 = t.bdPos[1];\n } else {\n bdPos0 = t.bdPos;\n bdPos1 = t.bdPos;\n }\n\n var paths = sel.selectAll('path.mean').data((\n (trace.type === 'box' && trace.boxmean) ||\n (trace.type === 'violin' && trace.box.visible && trace.meanline.visible)\n ) ? Lib.identity : []);\n\n paths.enter().append('path')\n .attr('class', 'mean')\n .style({\n fill: 'none',\n 'vector-effect': 'non-scaling-stroke'\n });\n\n paths.exit().remove();\n\n paths.each(function(d) {\n var lcenter = posAxis.c2l(d.pos + bPos, true);\n\n var pos0 = posAxis.l2p(lcenter - bdPos0) + bPosPxOffset;\n var pos1 = posAxis.l2p(lcenter + bdPos1) + bPosPxOffset;\n var posc = posHasRangeBreaks ? (pos0 + pos1) / 2 : posAxis.l2p(lcenter) + bPosPxOffset;\n\n var m = valAxis.c2p(d.mean, true);\n var sl = valAxis.c2p(d.mean - d.sd, true);\n var sh = valAxis.c2p(d.mean + d.sd, true);\n\n if(trace.orientation === 'h') {\n d3.select(this).attr('d',\n 'M' + m + ',' + pos0 + 'V' + pos1 +\n (mode === 'sd' ?\n 'm0,0L' + sl + ',' + posc + 'L' + m + ',' + pos0 + 'L' + sh + ',' + posc + 'Z' :\n '')\n );\n } else {\n d3.select(this).attr('d',\n 'M' + pos0 + ',' + m + 'H' + pos1 +\n (mode === 'sd' ?\n 'm0,0L' + posc + ',' + sl + 'L' + pos0 + ',' + m + 'L' + posc + ',' + sh + 'Z' :\n '')\n );\n }\n });\n}\n\nmodule.exports = {\n plot: plot,\n plotBoxAndWhiskers: plotBoxAndWhiskers,\n plotPoints: plotPoints,\n plotBoxMean: plotBoxMean\n};\n\n},{\"../../components/drawing\":388,\"../../lib\":503,\"@plotly/d3\":58}],683:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function selectPoints(searchInfo, selectionTester) {\n var cd = searchInfo.cd;\n var xa = searchInfo.xaxis;\n var ya = searchInfo.yaxis;\n var selection = [];\n var i, j;\n\n if(selectionTester === false) {\n for(i = 0; i < cd.length; i++) {\n for(j = 0; j < (cd[i].pts || []).length; j++) {\n // clear selection\n cd[i].pts[j].selected = 0;\n }\n }\n } else {\n for(i = 0; i < cd.length; i++) {\n for(j = 0; j < (cd[i].pts || []).length; j++) {\n var pt = cd[i].pts[j];\n var x = xa.c2p(pt.x);\n var y = ya.c2p(pt.y);\n\n if(selectionTester.contains([x, y], null, pt.i, searchInfo)) {\n selection.push({\n pointNumber: pt.i,\n x: xa.c2d(pt.x),\n y: ya.c2d(pt.y)\n });\n pt.selected = 1;\n } else {\n pt.selected = 0;\n }\n }\n }\n }\n\n return selection;\n};\n\n},{}],684:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Color = _dereq_('../../components/color');\nvar Drawing = _dereq_('../../components/drawing');\n\nfunction style(gd, cd, sel) {\n var s = sel ? sel : d3.select(gd).selectAll('g.trace.boxes');\n\n s.style('opacity', function(d) { return d[0].trace.opacity; });\n\n s.each(function(d) {\n var el = d3.select(this);\n var trace = d[0].trace;\n var lineWidth = trace.line.width;\n\n function styleBox(boxSel, lineWidth, lineColor, fillColor) {\n boxSel.style('stroke-width', lineWidth + 'px')\n .call(Color.stroke, lineColor)\n .call(Color.fill, fillColor);\n }\n\n var allBoxes = el.selectAll('path.box');\n\n if(trace.type === 'candlestick') {\n allBoxes.each(function(boxData) {\n if(boxData.empty) return;\n\n var thisBox = d3.select(this);\n var container = trace[boxData.dir]; // dir = 'increasing' or 'decreasing'\n styleBox(thisBox, container.line.width, container.line.color, container.fillcolor);\n // TODO: custom selection style for candlesticks\n thisBox.style('opacity', trace.selectedpoints && !boxData.selected ? 0.3 : 1);\n });\n } else {\n styleBox(allBoxes, lineWidth, trace.line.color, trace.fillcolor);\n el.selectAll('path.mean')\n .style({\n 'stroke-width': lineWidth,\n 'stroke-dasharray': (2 * lineWidth) + 'px,' + lineWidth + 'px'\n })\n .call(Color.stroke, trace.line.color);\n\n var pts = el.selectAll('path.point');\n Drawing.pointStyle(pts, trace, gd);\n }\n });\n}\n\nfunction styleOnSelect(gd, cd, sel) {\n var trace = cd[0].trace;\n var pts = sel.selectAll('path.point');\n\n if(trace.selectedpoints) {\n Drawing.selectedPointStyle(pts, trace);\n } else {\n Drawing.pointStyle(pts, trace, gd);\n }\n}\n\nmodule.exports = {\n style: style,\n styleOnSelect: styleOnSelect\n};\n\n},{\"../../components/color\":366,\"../../components/drawing\":388,\"@plotly/d3\":58}],685:[function(_dereq_,module,exports){\n'use strict';\n\nvar extendFlat = _dereq_('../../lib').extendFlat;\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar OHLCattrs = _dereq_('../ohlc/attributes');\nvar boxAttrs = _dereq_('../box/attributes');\n\nfunction directionAttrs(lineColorDefault) {\n return {\n line: {\n color: extendFlat({}, boxAttrs.line.color, {dflt: lineColorDefault}),\n width: boxAttrs.line.width,\n editType: 'style'\n },\n\n fillcolor: boxAttrs.fillcolor,\n editType: 'style'\n };\n}\n\nmodule.exports = {\n xperiod: OHLCattrs.xperiod,\n xperiod0: OHLCattrs.xperiod0,\n xperiodalignment: OHLCattrs.xperiodalignment,\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n\n x: OHLCattrs.x,\n open: OHLCattrs.open,\n high: OHLCattrs.high,\n low: OHLCattrs.low,\n close: OHLCattrs.close,\n\n line: {\n width: extendFlat({}, boxAttrs.line.width, {\n }),\n editType: 'style'\n },\n\n increasing: directionAttrs(OHLCattrs.increasing.line.color.dflt),\n\n decreasing: directionAttrs(OHLCattrs.decreasing.line.color.dflt),\n\n text: OHLCattrs.text,\n hovertext: OHLCattrs.hovertext,\n\n whiskerwidth: extendFlat({}, boxAttrs.whiskerwidth, { dflt: 0 }),\n\n hoverlabel: OHLCattrs.hoverlabel,\n};\n\n},{\"../../lib\":503,\"../../plots/cartesian/axis_format_attributes\":557,\"../box/attributes\":673,\"../ohlc/attributes\":871}],686:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar alignPeriod = _dereq_('../../plots/cartesian/align_period');\n\nvar calcCommon = _dereq_('../ohlc/calc').calcCommon;\n\nmodule.exports = function(gd, trace) {\n var fullLayout = gd._fullLayout;\n var xa = Axes.getFromId(gd, trace.xaxis);\n var ya = Axes.getFromId(gd, trace.yaxis);\n\n var origX = xa.makeCalcdata(trace, 'x');\n var x = alignPeriod(trace, xa, 'x', origX).vals;\n\n var cd = calcCommon(gd, trace, origX, x, ya, ptFunc);\n\n if(cd.length) {\n Lib.extendFlat(cd[0].t, {\n num: fullLayout._numBoxes,\n dPos: Lib.distinctVals(x).minDiff / 2,\n posLetter: 'x',\n valLetter: 'y',\n });\n\n fullLayout._numBoxes++;\n return cd;\n } else {\n return [{t: {empty: true}}];\n }\n};\n\nfunction ptFunc(o, h, l, c) {\n return {\n min: l,\n q1: Math.min(o, c),\n med: c,\n q3: Math.max(o, c),\n max: h,\n };\n}\n\n},{\"../../lib\":503,\"../../plots/cartesian/align_period\":551,\"../../plots/cartesian/axes\":554,\"../ohlc/calc\":872}],687:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Color = _dereq_('../../components/color');\nvar handleOHLC = _dereq_('../ohlc/ohlc_defaults');\nvar handlePeriodDefaults = _dereq_('../scatter/period_defaults');\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var len = handleOHLC(traceIn, traceOut, coerce, layout);\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n handlePeriodDefaults(traceIn, traceOut, layout, coerce, {x: true});\n coerce('xhoverformat');\n coerce('yhoverformat');\n\n coerce('line.width');\n\n handleDirection(traceIn, traceOut, coerce, 'increasing');\n handleDirection(traceIn, traceOut, coerce, 'decreasing');\n\n coerce('text');\n coerce('hovertext');\n coerce('whiskerwidth');\n\n layout._requestRangeslider[traceOut.xaxis] = true;\n};\n\nfunction handleDirection(traceIn, traceOut, coerce, direction) {\n var lineColor = coerce(direction + '.line.color');\n coerce(direction + '.line.width', traceOut.line.width);\n coerce(direction + '.fillcolor', Color.addOpacity(lineColor, 0.5));\n}\n\n},{\"../../components/color\":366,\"../../lib\":503,\"../ohlc/ohlc_defaults\":876,\"../scatter/period_defaults\":945,\"./attributes\":685}],688:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'trace',\n name: 'candlestick',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: ['cartesian', 'svg', 'showLegend', 'candlestick', 'boxLayout'],\n meta: {\n },\n\n attributes: _dereq_('./attributes'),\n layoutAttributes: _dereq_('../box/layout_attributes'),\n supplyLayoutDefaults: _dereq_('../box/layout_defaults').supplyLayoutDefaults,\n crossTraceCalc: _dereq_('../box/cross_trace_calc').crossTraceCalc,\n supplyDefaults: _dereq_('./defaults'),\n calc: _dereq_('./calc'),\n plot: _dereq_('../box/plot').plot,\n layerName: 'boxlayer',\n style: _dereq_('../box/style').style,\n hoverPoints: _dereq_('../ohlc/hover').hoverPoints,\n selectPoints: _dereq_('../ohlc/select')\n};\n\n},{\"../../plots/cartesian\":568,\"../box/cross_trace_calc\":675,\"../box/layout_attributes\":680,\"../box/layout_defaults\":681,\"../box/plot\":682,\"../box/style\":684,\"../ohlc/hover\":874,\"../ohlc/select\":878,\"./attributes\":685,\"./calc\":686,\"./defaults\":687}],689:[function(_dereq_,module,exports){\n'use strict';\n\nvar handleAxisDefaults = _dereq_('./axis_defaults');\nvar Template = _dereq_('../../plot_api/plot_template');\n\nmodule.exports = function handleABDefaults(traceIn, traceOut, fullLayout, coerce, dfltColor) {\n var a = coerce('a');\n\n if(!a) {\n coerce('da');\n coerce('a0');\n }\n\n var b = coerce('b');\n\n if(!b) {\n coerce('db');\n coerce('b0');\n }\n\n mimickAxisDefaults(traceIn, traceOut, fullLayout, dfltColor);\n};\n\nfunction mimickAxisDefaults(traceIn, traceOut, fullLayout, dfltColor) {\n var axesList = ['aaxis', 'baxis'];\n\n axesList.forEach(function(axName) {\n var axLetter = axName.charAt(0);\n var axIn = traceIn[axName] || {};\n var axOut = Template.newContainer(traceOut, axName);\n\n var defaultOptions = {\n tickfont: 'x',\n id: axLetter + 'axis',\n letter: axLetter,\n font: traceOut.font,\n name: axName,\n data: traceIn[axLetter],\n calendar: traceOut.calendar,\n dfltColor: dfltColor,\n bgColor: fullLayout.paper_bgcolor,\n autotypenumbersDflt: fullLayout.autotypenumbers,\n fullLayout: fullLayout\n };\n\n handleAxisDefaults(axIn, axOut, defaultOptions);\n axOut._categories = axOut._categories || [];\n\n // so we don't have to repeat autotype unnecessarily,\n // copy an autotype back to traceIn\n if(!traceIn[axName] && axIn.type !== '-') {\n traceIn[axName] = {type: axIn.type};\n }\n });\n}\n\n},{\"../../plot_api/plot_template\":543,\"./axis_defaults\":694}],690:[function(_dereq_,module,exports){\n'use strict';\n\nvar isArrayOrTypedArray = _dereq_('../../lib').isArrayOrTypedArray;\n\nmodule.exports = function(a) {\n return minMax(a, 0);\n};\n\nfunction minMax(a, depth) {\n // Limit to ten dimensional datasets. This seems *exceedingly* unlikely to\n // ever cause problems or even be a concern. It's include strictly so that\n // circular arrays could never cause this to loop.\n if(!isArrayOrTypedArray(a) || depth >= 10) {\n return null;\n }\n\n var min = Infinity;\n var max = -Infinity;\n var n = a.length;\n for(var i = 0; i < n; i++) {\n var datum = a[i];\n\n if(isArrayOrTypedArray(datum)) {\n var result = minMax(datum, depth + 1);\n\n if(result) {\n min = Math.min(result[0], min);\n max = Math.max(result[1], max);\n }\n } else {\n min = Math.min(datum, min);\n max = Math.max(datum, max);\n }\n }\n\n return [min, max];\n}\n\n},{\"../../lib\":503}],691:[function(_dereq_,module,exports){\n'use strict';\n\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar axisAttrs = _dereq_('./axis_attributes');\nvar colorAttrs = _dereq_('../../components/color/attributes');\n\nvar carpetFont = fontAttrs({\n editType: 'calc',\n});\n// TODO: inherit from global font\ncarpetFont.family.dflt = '\"Open Sans\", verdana, arial, sans-serif';\ncarpetFont.size.dflt = 12;\ncarpetFont.color.dflt = colorAttrs.defaultLine;\n\nmodule.exports = {\n carpet: {\n valType: 'string',\n editType: 'calc',\n },\n x: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n y: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n a: {\n valType: 'data_array',\n editType: 'calc',\n },\n a0: {\n valType: 'number',\n dflt: 0,\n editType: 'calc',\n },\n da: {\n valType: 'number',\n dflt: 1,\n editType: 'calc',\n },\n b: {\n valType: 'data_array',\n editType: 'calc',\n },\n b0: {\n valType: 'number',\n dflt: 0,\n editType: 'calc',\n },\n db: {\n valType: 'number',\n dflt: 1,\n editType: 'calc',\n },\n cheaterslope: {\n valType: 'number',\n dflt: 1,\n editType: 'calc',\n },\n aaxis: axisAttrs,\n baxis: axisAttrs,\n font: carpetFont,\n color: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n editType: 'plot',\n },\n transforms: undefined\n};\n\n},{\"../../components/color/attributes\":365,\"../../plots/font_attributes\":585,\"./axis_attributes\":693}],692:[function(_dereq_,module,exports){\n'use strict';\n\nvar isArrayOrTypedArray = _dereq_('../../lib').isArrayOrTypedArray;\n\n/* This function retrns a set of control points that define a curve aligned along\n * either the a or b axis. Exactly one of a or b must be an array defining the range\n * spanned.\n *\n * Honestly this is the most complicated function I've implemente here so far because\n * of the way it handles knot insertion and direction/axis-agnostic slices.\n */\nmodule.exports = function(carpet, carpetcd, a, b) {\n var idx, tangent, tanIsoIdx, tanIsoPar, segment, refidx;\n var p0, p1, v0, v1, start, end, range;\n\n var axis = isArrayOrTypedArray(a) ? 'a' : 'b';\n var ax = axis === 'a' ? carpet.aaxis : carpet.baxis;\n var smoothing = ax.smoothing;\n var toIdx = axis === 'a' ? carpet.a2i : carpet.b2j;\n var pt = axis === 'a' ? a : b;\n var iso = axis === 'a' ? b : a;\n var n = axis === 'a' ? carpetcd.a.length : carpetcd.b.length;\n var m = axis === 'a' ? carpetcd.b.length : carpetcd.a.length;\n var isoIdx = Math.floor(axis === 'a' ? carpet.b2j(iso) : carpet.a2i(iso));\n\n var xy = axis === 'a' ? function(value) {\n return carpet.evalxy([], value, isoIdx);\n } : function(value) {\n return carpet.evalxy([], isoIdx, value);\n };\n\n if(smoothing) {\n tanIsoIdx = Math.max(0, Math.min(m - 2, isoIdx));\n tanIsoPar = isoIdx - tanIsoIdx;\n tangent = axis === 'a' ? function(i, ti) {\n return carpet.dxydi([], i, tanIsoIdx, ti, tanIsoPar);\n } : function(j, tj) {\n return carpet.dxydj([], tanIsoIdx, j, tanIsoPar, tj);\n };\n }\n\n var vstart = toIdx(pt[0]);\n var vend = toIdx(pt[1]);\n\n // So that we can make this work in two directions, flip all of the\n // math functions if the direction is from higher to lower indices:\n //\n // Note that the tolerance is directional!\n var dir = vstart < vend ? 1 : -1;\n var tol = (vend - vstart) * 1e-8;\n var dirfloor = dir > 0 ? Math.floor : Math.ceil;\n var dirceil = dir > 0 ? Math.ceil : Math.floor;\n var dirmin = dir > 0 ? Math.min : Math.max;\n var dirmax = dir > 0 ? Math.max : Math.min;\n\n var idx0 = dirfloor(vstart + tol);\n var idx1 = dirceil(vend - tol);\n\n p0 = xy(vstart);\n var segments = [[p0]];\n\n for(idx = idx0; idx * dir < idx1 * dir; idx += dir) {\n segment = [];\n start = dirmax(vstart, idx);\n end = dirmin(vend, idx + dir);\n range = end - start;\n\n // In order to figure out which cell we're in for the derivative (remember,\n // the derivatives are *not* constant across grid lines), let's just average\n // the start and end points. This cuts out just a tiny bit of logic and\n // there's really no computational difference:\n refidx = Math.max(0, Math.min(n - 2, Math.floor(0.5 * (start + end))));\n\n p1 = xy(end);\n if(smoothing) {\n v0 = tangent(refidx, start - refidx);\n v1 = tangent(refidx, end - refidx);\n\n segment.push([\n p0[0] + v0[0] / 3 * range,\n p0[1] + v0[1] / 3 * range\n ]);\n\n segment.push([\n p1[0] - v1[0] / 3 * range,\n p1[1] - v1[1] / 3 * range\n ]);\n }\n\n segment.push(p1);\n\n segments.push(segment);\n p0 = p1;\n }\n\n return segments;\n};\n\n},{\"../../lib\":503}],693:[function(_dereq_,module,exports){\n'use strict';\n\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar colorAttrs = _dereq_('../../components/color/attributes');\nvar axesAttrs = _dereq_('../../plots/cartesian/layout_attributes');\nvar descriptionWithDates = _dereq_('../../plots/cartesian/axis_format_attributes').descriptionWithDates;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\n\nmodule.exports = {\n color: {\n valType: 'color',\n editType: 'calc',\n },\n smoothing: {\n valType: 'number',\n dflt: 1,\n min: 0,\n max: 1.3,\n editType: 'calc'\n },\n title: {\n text: {\n valType: 'string',\n dflt: '',\n editType: 'calc',\n },\n font: fontAttrs({\n editType: 'calc',\n }),\n // TODO how is this different than `title.standoff`\n offset: {\n valType: 'number',\n dflt: 10,\n editType: 'calc',\n },\n editType: 'calc',\n },\n type: {\n valType: 'enumerated',\n // '-' means we haven't yet run autotype or couldn't find any data\n // it gets turned into linear in gd._fullLayout but not copied back\n // to gd.data like the others are.\n values: ['-', 'linear', 'date', 'category'],\n dflt: '-',\n editType: 'calc',\n },\n autotypenumbers: axesAttrs.autotypenumbers,\n autorange: {\n valType: 'enumerated',\n values: [true, false, 'reversed'],\n dflt: true,\n editType: 'calc',\n },\n rangemode: {\n valType: 'enumerated',\n values: ['normal', 'tozero', 'nonnegative'],\n dflt: 'normal',\n editType: 'calc',\n },\n range: {\n valType: 'info_array',\n editType: 'calc',\n items: [\n {valType: 'any', editType: 'calc'},\n {valType: 'any', editType: 'calc'}\n ],\n },\n\n fixedrange: {\n valType: 'boolean',\n dflt: false,\n editType: 'calc',\n },\n cheatertype: {\n valType: 'enumerated',\n values: ['index', 'value'],\n dflt: 'value',\n editType: 'calc'\n },\n tickmode: {\n valType: 'enumerated',\n values: ['linear', 'array'],\n dflt: 'array',\n editType: 'calc'\n },\n nticks: {\n valType: 'integer',\n min: 0,\n dflt: 0,\n editType: 'calc',\n },\n tickvals: {\n valType: 'data_array',\n editType: 'calc',\n },\n ticktext: {\n valType: 'data_array',\n editType: 'calc',\n },\n showticklabels: {\n valType: 'enumerated',\n values: ['start', 'end', 'both', 'none'],\n dflt: 'start',\n editType: 'calc',\n },\n tickfont: fontAttrs({\n editType: 'calc',\n }),\n tickangle: {\n valType: 'angle',\n dflt: 'auto',\n editType: 'calc',\n },\n tickprefix: {\n valType: 'string',\n dflt: '',\n editType: 'calc',\n },\n showtickprefix: {\n valType: 'enumerated',\n values: ['all', 'first', 'last', 'none'],\n dflt: 'all',\n editType: 'calc',\n },\n ticksuffix: {\n valType: 'string',\n dflt: '',\n editType: 'calc',\n },\n showticksuffix: {\n valType: 'enumerated',\n values: ['all', 'first', 'last', 'none'],\n dflt: 'all',\n editType: 'calc',\n },\n showexponent: {\n valType: 'enumerated',\n values: ['all', 'first', 'last', 'none'],\n dflt: 'all',\n editType: 'calc',\n },\n exponentformat: {\n valType: 'enumerated',\n values: ['none', 'e', 'E', 'power', 'SI', 'B'],\n dflt: 'B',\n editType: 'calc',\n },\n minexponent: {\n valType: 'number',\n dflt: 3,\n min: 0,\n editType: 'calc',\n },\n separatethousands: {\n valType: 'boolean',\n dflt: false,\n editType: 'calc',\n },\n tickformat: {\n valType: 'string',\n dflt: '',\n editType: 'calc',\n description: descriptionWithDates('tick label')\n },\n tickformatstops: overrideAll(axesAttrs.tickformatstops, 'calc', 'from-root'),\n categoryorder: {\n valType: 'enumerated',\n values: [\n 'trace', 'category ascending', 'category descending', 'array'\n /* , 'value ascending', 'value descending'*/ // value ascending / descending to be implemented later\n ],\n dflt: 'trace',\n editType: 'calc',\n },\n categoryarray: {\n valType: 'data_array',\n editType: 'calc',\n },\n labelpadding: {\n valType: 'integer',\n dflt: 10,\n editType: 'calc',\n },\n labelprefix: {\n valType: 'string',\n editType: 'calc',\n },\n labelsuffix: {\n valType: 'string',\n dflt: '',\n editType: 'calc',\n },\n // lines and grids\n showline: {\n valType: 'boolean',\n dflt: false,\n editType: 'calc',\n },\n linecolor: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n editType: 'calc',\n },\n linewidth: {\n valType: 'number',\n min: 0,\n dflt: 1,\n editType: 'calc',\n },\n gridcolor: {\n valType: 'color',\n editType: 'calc',\n },\n gridwidth: {\n valType: 'number',\n min: 0,\n dflt: 1,\n editType: 'calc',\n },\n showgrid: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n },\n minorgridcount: {\n valType: 'integer',\n min: 0,\n dflt: 0,\n editType: 'calc',\n },\n minorgridwidth: {\n valType: 'number',\n min: 0,\n dflt: 1,\n editType: 'calc',\n },\n minorgridcolor: {\n valType: 'color',\n dflt: colorAttrs.lightLine,\n editType: 'calc',\n },\n startline: {\n valType: 'boolean',\n editType: 'calc',\n },\n startlinecolor: {\n valType: 'color',\n editType: 'calc',\n },\n startlinewidth: {\n valType: 'number',\n dflt: 1,\n editType: 'calc',\n },\n endline: {\n valType: 'boolean',\n editType: 'calc',\n },\n endlinewidth: {\n valType: 'number',\n dflt: 1,\n editType: 'calc',\n },\n endlinecolor: {\n valType: 'color',\n editType: 'calc',\n },\n tick0: {\n valType: 'number',\n min: 0,\n dflt: 0,\n editType: 'calc',\n },\n dtick: {\n valType: 'number',\n min: 0,\n dflt: 1,\n editType: 'calc',\n },\n arraytick0: {\n valType: 'integer',\n min: 0,\n dflt: 0,\n editType: 'calc',\n },\n arraydtick: {\n valType: 'integer',\n min: 1,\n dflt: 1,\n editType: 'calc',\n },\n\n _deprecated: {\n title: {\n valType: 'string',\n editType: 'calc',\n },\n titlefont: fontAttrs({\n editType: 'calc',\n }),\n titleoffset: {\n valType: 'number',\n dflt: 10,\n editType: 'calc',\n }\n },\n\n editType: 'calc'\n};\n\n},{\"../../components/color/attributes\":365,\"../../plot_api/edit_types\":536,\"../../plots/cartesian/axis_format_attributes\":557,\"../../plots/cartesian/layout_attributes\":569,\"../../plots/font_attributes\":585}],694:[function(_dereq_,module,exports){\n'use strict';\n\nvar carpetAttrs = _dereq_('./attributes');\n\nvar addOpacity = _dereq_('../../components/color').addOpacity;\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar handleTickValueDefaults = _dereq_('../../plots/cartesian/tick_value_defaults');\nvar handleTickLabelDefaults = _dereq_('../../plots/cartesian/tick_label_defaults');\nvar handlePrefixSuffixDefaults = _dereq_('../../plots/cartesian/prefix_suffix_defaults');\nvar handleCategoryOrderDefaults = _dereq_('../../plots/cartesian/category_order_defaults');\nvar setConvert = _dereq_('../../plots/cartesian/set_convert');\nvar autoType = _dereq_('../../plots/cartesian/axis_autotype');\n\n/**\n * options: object containing:\n *\n * letter: 'a' or 'b'\n * title: name of the axis (ie 'Colorbar') to go in default title\n * name: axis object name (ie 'xaxis') if one should be stored\n * font: the default font to inherit\n * outerTicks: boolean, should ticks default to outside?\n * showGrid: boolean, should gridlines be shown by default?\n * data: the plot data to use in choosing auto type\n * bgColor: the plot background color, to calculate default gridline colors\n */\nmodule.exports = function handleAxisDefaults(containerIn, containerOut, options) {\n var letter = options.letter;\n var font = options.font || {};\n var attributes = carpetAttrs[letter + 'axis'];\n\n function coerce(attr, dflt) {\n return Lib.coerce(containerIn, containerOut, attributes, attr, dflt);\n }\n\n function coerce2(attr, dflt) {\n return Lib.coerce2(containerIn, containerOut, attributes, attr, dflt);\n }\n\n // set up some private properties\n if(options.name) {\n containerOut._name = options.name;\n containerOut._id = options.name;\n }\n\n // now figure out type and do some more initialization\n coerce('autotypenumbers', options.autotypenumbersDflt);\n var axType = coerce('type');\n if(axType === '-') {\n if(options.data) setAutoType(containerOut, options.data);\n\n if(containerOut.type === '-') {\n containerOut.type = 'linear';\n } else {\n // copy autoType back to input axis\n // note that if this object didn't exist\n // in the input layout, we have to put it in\n // this happens in the main supplyDefaults function\n axType = containerIn.type = containerOut.type;\n }\n }\n\n coerce('smoothing');\n coerce('cheatertype');\n\n coerce('showticklabels');\n coerce('labelprefix', letter + ' = ');\n coerce('labelsuffix');\n coerce('showtickprefix');\n coerce('showticksuffix');\n\n coerce('separatethousands');\n coerce('tickformat');\n coerce('exponentformat');\n coerce('minexponent');\n coerce('showexponent');\n coerce('categoryorder');\n\n coerce('tickmode');\n coerce('tickvals');\n coerce('ticktext');\n coerce('tick0');\n coerce('dtick');\n\n if(containerOut.tickmode === 'array') {\n coerce('arraytick0');\n coerce('arraydtick');\n }\n\n coerce('labelpadding');\n\n containerOut._hovertitle = letter;\n\n\n if(axType === 'date') {\n var handleCalendarDefaults = Registry.getComponentMethod('calendars', 'handleDefaults');\n handleCalendarDefaults(containerIn, containerOut, 'calendar', options.calendar);\n }\n\n // we need some of the other functions setConvert attaches, but for\n // path finding, override pixel scaling to simple passthrough (identity)\n setConvert(containerOut, options.fullLayout);\n containerOut.c2p = Lib.identity;\n\n var dfltColor = coerce('color', options.dfltColor);\n // if axis.color was provided, use it for fonts too; otherwise,\n // inherit from global font color in case that was provided.\n var dfltFontColor = (dfltColor === containerIn.color) ? dfltColor : font.color;\n\n var title = coerce('title.text');\n if(title) {\n Lib.coerceFont(coerce, 'title.font', {\n family: font.family,\n size: Lib.bigFont(font.size),\n color: dfltFontColor\n });\n coerce('title.offset');\n }\n\n coerce('tickangle');\n\n var autoRange = coerce('autorange', !containerOut.isValidRange(containerIn.range));\n\n if(autoRange) coerce('rangemode');\n\n coerce('range');\n containerOut.cleanRange();\n\n coerce('fixedrange');\n\n handleTickValueDefaults(containerIn, containerOut, coerce, axType);\n handlePrefixSuffixDefaults(containerIn, containerOut, coerce, axType, options);\n handleTickLabelDefaults(containerIn, containerOut, coerce, axType, options);\n handleCategoryOrderDefaults(containerIn, containerOut, coerce, {\n data: options.data,\n dataAttr: letter\n });\n\n var gridColor = coerce2('gridcolor', addOpacity(dfltColor, 0.3));\n var gridWidth = coerce2('gridwidth');\n var showGrid = coerce('showgrid');\n\n if(!showGrid) {\n delete containerOut.gridcolor;\n delete containerOut.gridwidth;\n }\n\n var startLineColor = coerce2('startlinecolor', dfltColor);\n var startLineWidth = coerce2('startlinewidth', gridWidth);\n var showStartLine = coerce('startline', containerOut.showgrid || !!startLineColor || !!startLineWidth);\n\n if(!showStartLine) {\n delete containerOut.startlinecolor;\n delete containerOut.startlinewidth;\n }\n\n var endLineColor = coerce2('endlinecolor', dfltColor);\n var endLineWidth = coerce2('endlinewidth', gridWidth);\n var showEndLine = coerce('endline', containerOut.showgrid || !!endLineColor || !!endLineWidth);\n\n if(!showEndLine) {\n delete containerOut.endlinecolor;\n delete containerOut.endlinewidth;\n }\n\n if(!showGrid) {\n delete containerOut.gridcolor;\n delete containerOut.gridWidth;\n } else {\n coerce('minorgridcount');\n coerce('minorgridwidth', gridWidth);\n coerce('minorgridcolor', addOpacity(gridColor, 0.06));\n\n if(!containerOut.minorgridcount) {\n delete containerOut.minorgridwidth;\n delete containerOut.minorgridcolor;\n }\n }\n\n if(containerOut.showticklabels === 'none') {\n delete containerOut.tickfont;\n delete containerOut.tickangle;\n delete containerOut.showexponent;\n delete containerOut.exponentformat;\n delete containerOut.minexponent;\n delete containerOut.tickformat;\n delete containerOut.showticksuffix;\n delete containerOut.showtickprefix;\n }\n\n if(!containerOut.showticksuffix) {\n delete containerOut.ticksuffix;\n }\n\n if(!containerOut.showtickprefix) {\n delete containerOut.tickprefix;\n }\n\n // It needs to be coerced, then something above overrides this deep in the axis code,\n // but no, we *actually* want to coerce this.\n coerce('tickmode');\n\n return containerOut;\n};\n\nfunction setAutoType(ax, data) {\n // new logic: let people specify any type they want,\n // only autotype if type is '-'\n if(ax.type !== '-') return;\n\n var id = ax._id;\n var axLetter = id.charAt(0);\n\n var calAttr = axLetter + 'calendar';\n var calendar = ax[calAttr];\n\n ax.type = autoType(data, calendar, {\n autotypenumbers: ax.autotypenumbers\n });\n}\n\n},{\"../../components/color\":366,\"../../lib\":503,\"../../plots/cartesian/axis_autotype\":555,\"../../plots/cartesian/category_order_defaults\":559,\"../../plots/cartesian/prefix_suffix_defaults\":573,\"../../plots/cartesian/set_convert\":576,\"../../plots/cartesian/tick_label_defaults\":578,\"../../plots/cartesian/tick_value_defaults\":580,\"../../registry\":638,\"./attributes\":691}],695:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar isArray1D = _dereq_('../../lib').isArray1D;\nvar cheaterBasis = _dereq_('./cheater_basis');\nvar arrayMinmax = _dereq_('./array_minmax');\nvar calcGridlines = _dereq_('./calc_gridlines');\nvar calcLabels = _dereq_('./calc_labels');\nvar calcClipPath = _dereq_('./calc_clippath');\nvar clean2dArray = _dereq_('../heatmap/clean_2d_array');\nvar smoothFill2dArray = _dereq_('./smooth_fill_2d_array');\nvar convertColumnData = _dereq_('../heatmap/convert_column_xyz');\nvar setConvert = _dereq_('./set_convert');\n\nmodule.exports = function calc(gd, trace) {\n var xa = Axes.getFromId(gd, trace.xaxis);\n var ya = Axes.getFromId(gd, trace.yaxis);\n var aax = trace.aaxis;\n var bax = trace.baxis;\n\n var x = trace.x;\n var y = trace.y;\n var cols = [];\n if(x && isArray1D(x)) cols.push('x');\n if(y && isArray1D(y)) cols.push('y');\n\n if(cols.length) {\n convertColumnData(trace, aax, bax, 'a', 'b', cols);\n }\n\n var a = trace._a = trace._a || trace.a;\n var b = trace._b = trace._b || trace.b;\n x = trace._x || trace.x;\n y = trace._y || trace.y;\n\n var t = {};\n\n if(trace._cheater) {\n var avals = aax.cheatertype === 'index' ? a.length : a;\n var bvals = bax.cheatertype === 'index' ? b.length : b;\n x = cheaterBasis(avals, bvals, trace.cheaterslope);\n }\n\n trace._x = x = clean2dArray(x);\n trace._y = y = clean2dArray(y);\n\n // Fill in any undefined values with elliptic smoothing. This doesn't take\n // into account the spacing of the values. That is, the derivatives should\n // be modified to use a and b values. It's not that hard, but this is already\n // moderate overkill for just filling in missing values.\n smoothFill2dArray(x, a, b);\n smoothFill2dArray(y, a, b);\n\n setConvert(trace);\n\n // create conversion functions that depend on the data\n trace.setScale();\n\n // This is a rather expensive scan. Nothing guarantees monotonicity,\n // so we need to scan through all data to get proper ranges:\n var xrange = arrayMinmax(x);\n var yrange = arrayMinmax(y);\n\n var dx = 0.5 * (xrange[1] - xrange[0]);\n var xc = 0.5 * (xrange[1] + xrange[0]);\n\n var dy = 0.5 * (yrange[1] - yrange[0]);\n var yc = 0.5 * (yrange[1] + yrange[0]);\n\n // Expand the axes to fit the plot, except just grow it by a factor of 1.3\n // because the labels should be taken into account except that's difficult\n // hence 1.3.\n var grow = 1.3;\n xrange = [xc - dx * grow, xc + dx * grow];\n yrange = [yc - dy * grow, yc + dy * grow];\n\n trace._extremes[xa._id] = Axes.findExtremes(xa, xrange, {padded: true});\n trace._extremes[ya._id] = Axes.findExtremes(ya, yrange, {padded: true});\n\n // Enumerate the gridlines, both major and minor, and store them on the trace\n // object:\n calcGridlines(trace, 'a', 'b');\n calcGridlines(trace, 'b', 'a');\n\n // Calculate the text labels for each major gridline and store them on the\n // trace object:\n calcLabels(trace, aax);\n calcLabels(trace, bax);\n\n // Tabulate points for the four segments that bound the axes so that we can\n // map to pixel coordinates in the plot function and create a clip rect:\n t.clipsegments = calcClipPath(trace._xctrl, trace._yctrl, aax, bax);\n\n t.x = x;\n t.y = y;\n t.a = a;\n t.b = b;\n\n return [t];\n};\n\n},{\"../../lib\":503,\"../../plots/cartesian/axes\":554,\"../heatmap/clean_2d_array\":794,\"../heatmap/convert_column_xyz\":796,\"./array_minmax\":690,\"./calc_clippath\":696,\"./calc_gridlines\":697,\"./calc_labels\":698,\"./cheater_basis\":700,\"./set_convert\":713,\"./smooth_fill_2d_array\":714}],696:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function makeClipPath(xctrl, yctrl, aax, bax) {\n var i, x, y;\n var segments = [];\n\n var asmoothing = !!aax.smoothing;\n var bsmoothing = !!bax.smoothing;\n var nea1 = xctrl[0].length - 1;\n var neb1 = xctrl.length - 1;\n\n // Along the lower a axis:\n for(i = 0, x = [], y = []; i <= nea1; i++) {\n x[i] = xctrl[0][i];\n y[i] = yctrl[0][i];\n }\n segments.push({x: x, y: y, bicubic: asmoothing});\n\n // Along the upper b axis:\n for(i = 0, x = [], y = []; i <= neb1; i++) {\n x[i] = xctrl[i][nea1];\n y[i] = yctrl[i][nea1];\n }\n segments.push({x: x, y: y, bicubic: bsmoothing});\n\n // Backwards along the upper a axis:\n for(i = nea1, x = [], y = []; i >= 0; i--) {\n x[nea1 - i] = xctrl[neb1][i];\n y[nea1 - i] = yctrl[neb1][i];\n }\n segments.push({x: x, y: y, bicubic: asmoothing});\n\n // Backwards along the lower b axis:\n for(i = neb1, x = [], y = []; i >= 0; i--) {\n x[neb1 - i] = xctrl[i][0];\n y[neb1 - i] = yctrl[i][0];\n }\n segments.push({x: x, y: y, bicubic: bsmoothing});\n\n return segments;\n};\n\n},{}],697:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nmodule.exports = function calcGridlines(trace, axisLetter, crossAxisLetter) {\n var i, j, j0;\n var eps, bounds, n1, n2, n, value, v;\n var j1, v0, v1, d;\n\n var data = trace['_' + axisLetter];\n var axis = trace[axisLetter + 'axis'];\n\n var gridlines = axis._gridlines = [];\n var minorgridlines = axis._minorgridlines = [];\n var boundarylines = axis._boundarylines = [];\n\n var crossData = trace['_' + crossAxisLetter];\n var crossAxis = trace[crossAxisLetter + 'axis'];\n\n if(axis.tickmode === 'array') {\n axis.tickvals = data.slice();\n }\n\n var xcp = trace._xctrl;\n var ycp = trace._yctrl;\n var nea = xcp[0].length;\n var neb = xcp.length;\n var na = trace._a.length;\n var nb = trace._b.length;\n\n Axes.prepTicks(axis);\n\n // don't leave tickvals in axis looking like an attribute\n if(axis.tickmode === 'array') delete axis.tickvals;\n\n // The default is an empty array that will cause the join to remove the gridline if\n // it's just disappeared:\n // axis._startline = axis._endline = [];\n\n // If the cross axis uses bicubic interpolation, then the grid\n // lines fall once every three expanded grid row/cols:\n var stride = axis.smoothing ? 3 : 1;\n\n function constructValueGridline(value) {\n var i, j, j0, tj, pxy, i0, ti, xy, dxydi0, dxydi1, dxydj0, dxydj1;\n var xpoints = [];\n var ypoints = [];\n var ret = {};\n // Search for the fractional grid index giving this line:\n if(axisLetter === 'b') {\n // For the position we use just the i-j coordinates:\n j = trace.b2j(value);\n\n // The derivatives for catmull-rom splines are discontinuous across cell\n // boundaries though, so we need to provide both the cell and the position\n // within the cell separately:\n j0 = Math.floor(Math.max(0, Math.min(nb - 2, j)));\n tj = j - j0;\n\n ret.length = nb;\n ret.crossLength = na;\n\n ret.xy = function(i) {\n return trace.evalxy([], i, j);\n };\n\n ret.dxy = function(i0, ti) {\n return trace.dxydi([], i0, j0, ti, tj);\n };\n\n for(i = 0; i < na; i++) {\n i0 = Math.min(na - 2, i);\n ti = i - i0;\n xy = trace.evalxy([], i, j);\n\n if(crossAxis.smoothing && i > 0) {\n // First control point:\n dxydi0 = trace.dxydi([], i - 1, j0, 0, tj);\n xpoints.push(pxy[0] + dxydi0[0] / 3);\n ypoints.push(pxy[1] + dxydi0[1] / 3);\n\n // Second control point:\n dxydi1 = trace.dxydi([], i - 1, j0, 1, tj);\n xpoints.push(xy[0] - dxydi1[0] / 3);\n ypoints.push(xy[1] - dxydi1[1] / 3);\n }\n\n xpoints.push(xy[0]);\n ypoints.push(xy[1]);\n\n pxy = xy;\n }\n } else {\n i = trace.a2i(value);\n i0 = Math.floor(Math.max(0, Math.min(na - 2, i)));\n ti = i - i0;\n\n ret.length = na;\n ret.crossLength = nb;\n\n ret.xy = function(j) {\n return trace.evalxy([], i, j);\n };\n\n ret.dxy = function(j0, tj) {\n return trace.dxydj([], i0, j0, ti, tj);\n };\n\n for(j = 0; j < nb; j++) {\n j0 = Math.min(nb - 2, j);\n tj = j - j0;\n xy = trace.evalxy([], i, j);\n\n if(crossAxis.smoothing && j > 0) {\n // First control point:\n dxydj0 = trace.dxydj([], i0, j - 1, ti, 0);\n xpoints.push(pxy[0] + dxydj0[0] / 3);\n ypoints.push(pxy[1] + dxydj0[1] / 3);\n\n // Second control point:\n dxydj1 = trace.dxydj([], i0, j - 1, ti, 1);\n xpoints.push(xy[0] - dxydj1[0] / 3);\n ypoints.push(xy[1] - dxydj1[1] / 3);\n }\n\n xpoints.push(xy[0]);\n ypoints.push(xy[1]);\n\n pxy = xy;\n }\n }\n\n ret.axisLetter = axisLetter;\n ret.axis = axis;\n ret.crossAxis = crossAxis;\n ret.value = value;\n ret.constvar = crossAxisLetter;\n ret.index = n;\n ret.x = xpoints;\n ret.y = ypoints;\n ret.smoothing = crossAxis.smoothing;\n\n return ret;\n }\n\n function constructArrayGridline(idx) {\n var j, i0, j0, ti, tj;\n var xpoints = [];\n var ypoints = [];\n var ret = {};\n ret.length = data.length;\n ret.crossLength = crossData.length;\n\n if(axisLetter === 'b') {\n j0 = Math.max(0, Math.min(nb - 2, idx));\n tj = Math.min(1, Math.max(0, idx - j0));\n\n ret.xy = function(i) {\n return trace.evalxy([], i, idx);\n };\n\n ret.dxy = function(i0, ti) {\n return trace.dxydi([], i0, j0, ti, tj);\n };\n\n // In the tickmode: array case, this operation is a simple\n // transfer of data:\n for(j = 0; j < nea; j++) {\n xpoints[j] = xcp[idx * stride][j];\n ypoints[j] = ycp[idx * stride][j];\n }\n } else {\n i0 = Math.max(0, Math.min(na - 2, idx));\n ti = Math.min(1, Math.max(0, idx - i0));\n\n ret.xy = function(j) {\n return trace.evalxy([], idx, j);\n };\n\n ret.dxy = function(j0, tj) {\n return trace.dxydj([], i0, j0, ti, tj);\n };\n\n // In the tickmode: array case, this operation is a simple\n // transfer of data:\n for(j = 0; j < neb; j++) {\n xpoints[j] = xcp[j][idx * stride];\n ypoints[j] = ycp[j][idx * stride];\n }\n }\n\n ret.axisLetter = axisLetter;\n ret.axis = axis;\n ret.crossAxis = crossAxis;\n ret.value = data[idx];\n ret.constvar = crossAxisLetter;\n ret.index = idx;\n ret.x = xpoints;\n ret.y = ypoints;\n ret.smoothing = crossAxis.smoothing;\n\n return ret;\n }\n\n if(axis.tickmode === 'array') {\n // var j0 = axis.startline ? 1 : 0;\n // var j1 = data.length - (axis.endline ? 1 : 0);\n\n eps = 5e-15;\n bounds = [\n Math.floor(((data.length - 1) - axis.arraytick0) / axis.arraydtick * (1 + eps)),\n Math.ceil((- axis.arraytick0) / axis.arraydtick / (1 + eps))\n ].sort(function(a, b) {return a - b;});\n\n // Unpack sorted values so we can be sure to avoid infinite loops if something\n // is backwards:\n n1 = bounds[0] - 1;\n n2 = bounds[1] + 1;\n\n // If the axes fall along array lines, then this is a much simpler process since\n // we already have all the control points we need\n for(n = n1; n < n2; n++) {\n j = axis.arraytick0 + axis.arraydtick * n;\n if(j < 0 || j > data.length - 1) continue;\n gridlines.push(extendFlat(constructArrayGridline(j), {\n color: axis.gridcolor,\n width: axis.gridwidth\n }));\n }\n\n for(n = n1; n < n2; n++) {\n j0 = axis.arraytick0 + axis.arraydtick * n;\n j1 = Math.min(j0 + axis.arraydtick, data.length - 1);\n\n // TODO: fix the bounds computation so we don't have to do a large range and then throw\n // out unneeded numbers\n if(j0 < 0 || j0 > data.length - 1) continue;\n if(j1 < 0 || j1 > data.length - 1) continue;\n\n v0 = data[j0];\n v1 = data[j1];\n\n for(i = 0; i < axis.minorgridcount; i++) {\n d = j1 - j0;\n\n // TODO: fix the bounds computation so we don't have to do a large range and then throw\n // out unneeded numbers\n if(d <= 0) continue;\n\n // XXX: This calculation isn't quite right. Off by one somewhere?\n v = v0 + (v1 - v0) * (i + 1) / (axis.minorgridcount + 1) * (axis.arraydtick / d);\n\n // TODO: fix the bounds computation so we don't have to do a large range and then throw\n // out unneeded numbers\n if(v < data[0] || v > data[data.length - 1]) continue;\n minorgridlines.push(extendFlat(constructValueGridline(v), {\n color: axis.minorgridcolor,\n width: axis.minorgridwidth\n }));\n }\n }\n\n if(axis.startline) {\n boundarylines.push(extendFlat(constructArrayGridline(0), {\n color: axis.startlinecolor,\n width: axis.startlinewidth\n }));\n }\n\n if(axis.endline) {\n boundarylines.push(extendFlat(constructArrayGridline(data.length - 1), {\n color: axis.endlinecolor,\n width: axis.endlinewidth\n }));\n }\n } else {\n // If the lines do not fall along the axes, then we have to interpolate\n // the contro points and so some math to figure out where the lines are\n // in the first place.\n\n // Compute the integer boudns of tick0 + n * dtick that fall within the range\n // (roughly speaking):\n // Give this a nice generous epsilon. We use at as * (1 + eps) in order to make\n // inequalities a little tolerant in a more or less correct manner:\n eps = 5e-15;\n bounds = [\n Math.floor((data[data.length - 1] - axis.tick0) / axis.dtick * (1 + eps)),\n Math.ceil((data[0] - axis.tick0) / axis.dtick / (1 + eps))\n ].sort(function(a, b) {return a - b;});\n\n // Unpack sorted values so we can be sure to avoid infinite loops if something\n // is backwards:\n n1 = bounds[0];\n n2 = bounds[1];\n\n for(n = n1; n <= n2; n++) {\n value = axis.tick0 + axis.dtick * n;\n\n gridlines.push(extendFlat(constructValueGridline(value), {\n color: axis.gridcolor,\n width: axis.gridwidth\n }));\n }\n\n for(n = n1 - 1; n < n2 + 1; n++) {\n value = axis.tick0 + axis.dtick * n;\n\n for(i = 0; i < axis.minorgridcount; i++) {\n v = value + axis.dtick * (i + 1) / (axis.minorgridcount + 1);\n if(v < data[0] || v > data[data.length - 1]) continue;\n minorgridlines.push(extendFlat(constructValueGridline(v), {\n color: axis.minorgridcolor,\n width: axis.minorgridwidth\n }));\n }\n }\n\n if(axis.startline) {\n boundarylines.push(extendFlat(constructValueGridline(data[0]), {\n color: axis.startlinecolor,\n width: axis.startlinewidth\n }));\n }\n\n if(axis.endline) {\n boundarylines.push(extendFlat(constructValueGridline(data[data.length - 1]), {\n color: axis.endlinecolor,\n width: axis.endlinewidth\n }));\n }\n }\n};\n\n},{\"../../lib/extend\":493,\"../../plots/cartesian/axes\":554}],698:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nmodule.exports = function calcLabels(trace, axis) {\n var i, tobj, prefix, suffix, gridline;\n\n var labels = axis._labels = [];\n var gridlines = axis._gridlines;\n\n for(i = 0; i < gridlines.length; i++) {\n gridline = gridlines[i];\n\n if(['start', 'both'].indexOf(axis.showticklabels) !== -1) {\n tobj = Axes.tickText(axis, gridline.value);\n\n extendFlat(tobj, {\n prefix: prefix,\n suffix: suffix,\n endAnchor: true,\n xy: gridline.xy(0),\n dxy: gridline.dxy(0, 0),\n axis: gridline.axis,\n length: gridline.crossAxis.length,\n font: gridline.axis.tickfont,\n isFirst: i === 0,\n isLast: i === gridlines.length - 1\n });\n\n labels.push(tobj);\n }\n\n if(['end', 'both'].indexOf(axis.showticklabels) !== -1) {\n tobj = Axes.tickText(axis, gridline.value);\n\n extendFlat(tobj, {\n endAnchor: false,\n xy: gridline.xy(gridline.crossLength - 1),\n dxy: gridline.dxy(gridline.crossLength - 2, 1),\n axis: gridline.axis,\n length: gridline.crossAxis.length,\n font: gridline.axis.tickfont,\n isFirst: i === 0,\n isLast: i === gridlines.length - 1\n });\n\n labels.push(tobj);\n }\n }\n};\n\n},{\"../../lib/extend\":493,\"../../plots/cartesian/axes\":554}],699:[function(_dereq_,module,exports){\n'use strict';\n\n/*\n * Compute the tangent vector according to catmull-rom cubic splines (centripetal,\n * I think). That differs from the control point in two ways:\n * 1. It is a vector, not a position relative to the point\n * 2. the vector is longer than the position relative to p1 by a factor of 3\n *\n * Close to the boundaries, we'll use these as *quadratic control points, so that\n * to make a nice grid, we'll need to divide the tangent by 2 instead of 3. (The\n * math works out this way if you work through the bezier derivatives)\n */\nvar CatmullRomExp = 0.5;\nmodule.exports = function makeControlPoints(p0, p1, p2, smoothness) {\n var d1x = p0[0] - p1[0];\n var d1y = p0[1] - p1[1];\n var d2x = p2[0] - p1[0];\n var d2y = p2[1] - p1[1];\n var d1a = Math.pow(d1x * d1x + d1y * d1y, CatmullRomExp / 2);\n var d2a = Math.pow(d2x * d2x + d2y * d2y, CatmullRomExp / 2);\n var numx = (d2a * d2a * d1x - d1a * d1a * d2x) * smoothness;\n var numy = (d2a * d2a * d1y - d1a * d1a * d2y) * smoothness;\n var denom1 = d2a * (d1a + d2a) * 3;\n var denom2 = d1a * (d1a + d2a) * 3;\n\n return [[\n p1[0] + (denom1 && numx / denom1),\n p1[1] + (denom1 && numy / denom1)\n ], [\n p1[0] - (denom2 && numx / denom2),\n p1[1] - (denom2 && numy / denom2)\n ]];\n};\n\n},{}],700:[function(_dereq_,module,exports){\n'use strict';\n\nvar isArrayOrTypedArray = _dereq_('../../lib').isArrayOrTypedArray;\n\n/*\n * Construct a 2D array of cheater values given a, b, and a slope.\n * If\n */\nmodule.exports = function(a, b, cheaterslope) {\n var i, j, ascal, bscal, aval, bval;\n var data = [];\n\n var na = isArrayOrTypedArray(a) ? a.length : a;\n var nb = isArrayOrTypedArray(b) ? b.length : b;\n var adata = isArrayOrTypedArray(a) ? a : null;\n var bdata = isArrayOrTypedArray(b) ? b : null;\n\n // If we're using data, scale it so that for data that's just barely\n // not evenly spaced, the switch to value-based indexing is continuous.\n // This means evenly spaced data should look the same whether value\n // or index cheatertype.\n if(adata) {\n ascal = (adata.length - 1) / (adata[adata.length - 1] - adata[0]) / (na - 1);\n }\n\n if(bdata) {\n bscal = (bdata.length - 1) / (bdata[bdata.length - 1] - bdata[0]) / (nb - 1);\n }\n\n var xval;\n var xmin = Infinity;\n var xmax = -Infinity;\n for(j = 0; j < nb; j++) {\n data[j] = [];\n bval = bdata ? (bdata[j] - bdata[0]) * bscal : j / (nb - 1);\n for(i = 0; i < na; i++) {\n aval = adata ? (adata[i] - adata[0]) * ascal : i / (na - 1);\n xval = aval - bval * cheaterslope;\n xmin = Math.min(xval, xmin);\n xmax = Math.max(xval, xmax);\n data[j][i] = xval;\n }\n }\n\n // Normalize cheater values to the 0-1 range. This comes into play when you have\n // multiple cheater plots. After careful consideration, it seems better if cheater\n // values are normalized to a consistent range. Otherwise one cheater affects the\n // layout of other cheaters on the same axis.\n var slope = 1.0 / (xmax - xmin);\n var offset = -xmin * slope;\n for(j = 0; j < nb; j++) {\n for(i = 0; i < na; i++) {\n data[j][i] = slope * data[j][i] + offset;\n }\n }\n\n return data;\n};\n\n},{\"../../lib\":503}],701:[function(_dereq_,module,exports){\n'use strict';\n\nvar makeControlPoints = _dereq_('./catmull_rom');\nvar ensureArray = _dereq_('../../lib').ensureArray;\n\n/*\n * Turns a coarse grid into a fine grid with control points.\n *\n * Here's an ASCII representation:\n *\n * o ----- o ----- o ----- o\n * | | | |\n * | | | |\n * | | | |\n * o ----- o ----- o ----- o\n * | | | |\n * | | | |\n * ^ | | | |\n * | o ----- o ----- o ----- o\n * b | | | | |\n * | | | | |\n * | | | | |\n * o ----- o ----- o ----- o\n * ------>\n * a\n *\n * First of all, note that we want to do this in *cartesian* space. This means\n * we might run into problems when there are extreme differences in x/y scaling,\n * but the alternative is that the topology of the contours might actually be\n * view-dependent, which seems worse. As a fallback, the only parameter that\n * actually affects the result is the *aspect ratio*, so that we can at least\n * improve the situation a bit without going all the way to screen coordinates.\n *\n * This function flattens the points + tangents into a slightly denser grid of\n * *control points*. The resulting grid looks like this:\n *\n * 9 +--o-o--+ -o-o--+--o-o--+\n * 8 o o o o o o o o o o\n * | | | |\n * 7 o o o o o o o o o o\n * 6 +--o-o--+ -o-o--+--o-o--+\n * 5 o o o o o o o o o o\n * | | | |\n * ^ 4 o o o o o o o o o o\n * | 3 +--o-o--+ -o-o--+--o-o--+\n * b | 2 o o o o o o o o o o\n * | | | | |\n * | 1 o o o o o o o o o o\n * 0 +--o-o--+ -o-o--+--o-o--+\n * 0 1 2 3 4 5 6 7 8 9\n * ------>\n * a\n *\n * where `o`s represent newly-computed control points. the resulting dimension is\n *\n * (m - 1) * 3 + 1\n * = 3 * m - 2\n *\n * We could simply store the tangents separately, but that's a nightmare to organize\n * in two dimensions since we'll be slicing grid lines in both directions and since\n * that basically requires very nearly just as much storage as just storing the dense\n * grid.\n *\n * Wow!\n */\n\n\n/*\n * Catmull-rom is biased at the boundaries toward the interior and we actually\n * can't use catmull-rom to compute the control point closest to (but inside)\n * the boundary.\n *\n * A note on plotly's spline interpolation. It uses the catmull rom control point\n * closest to the boundary *as* a quadratic control point. This seems incorrect,\n * so I've elected not to follow that. Given control points 0 and 1, regular plotly\n * splines give *equivalent* cubic control points:\n *\n * Input:\n *\n * boundary\n * | |\n * p0 p2 p3 --> interior\n * 0.0 0.667 1.0\n * | |\n *\n * Cubic-equivalent of what plotly splines draw::\n *\n * boundary\n * | |\n * p0 p1 p2 p3 --> interior\n * 0.0 0.4444 0.8888 1.0\n * | |\n *\n * What this function fills in:\n *\n * boundary\n * | |\n * p0 p1 p2 p3 --> interior\n * 0.0 0.333 0.667 1.0\n * | |\n *\n * Parameters:\n * p0: boundary point\n * p2: catmull rom point based on computation at p3\n * p3: first grid point\n *\n * Of course it works whichever way it's oriented; you just need to interpret the\n * input/output accordingly.\n */\nfunction inferCubicControlPoint(p0, p2, p3) {\n // Extend p1 away from p0 by 50%. This is the equivalent quadratic point that\n // would give the same slope as catmull rom at p0.\n var p2e0 = -0.5 * p3[0] + 1.5 * p2[0];\n var p2e1 = -0.5 * p3[1] + 1.5 * p2[1];\n\n return [\n (2 * p2e0 + p0[0]) / 3,\n (2 * p2e1 + p0[1]) / 3,\n ];\n}\n\nmodule.exports = function computeControlPoints(xe, ye, x, y, asmoothing, bsmoothing) {\n var i, j, ie, je, xej, yej, xj, yj, cp, p1;\n // At this point, we know these dimensions are correct and representative of\n // the whole 2D arrays:\n var na = x[0].length;\n var nb = x.length;\n\n // (n)umber of (e)xpanded points:\n var nea = asmoothing ? 3 * na - 2 : na;\n var neb = bsmoothing ? 3 * nb - 2 : nb;\n\n xe = ensureArray(xe, neb);\n ye = ensureArray(ye, neb);\n\n for(ie = 0; ie < neb; ie++) {\n xe[ie] = ensureArray(xe[ie], nea);\n ye[ie] = ensureArray(ye[ie], nea);\n }\n\n // This loop fills in the X'd points:\n //\n // . . . .\n // . . . .\n // | | | |\n // | | | |\n // X ----- X ----- X ----- X\n // | | | |\n // | | | |\n // | | | |\n // X ----- X ----- X ----- X\n //\n //\n // ie = (i) (e)xpanded:\n for(j = 0, je = 0; j < nb; j++, je += bsmoothing ? 3 : 1) {\n xej = xe[je];\n yej = ye[je];\n xj = x[j];\n yj = y[j];\n\n // je = (j) (e)xpanded:\n for(i = 0, ie = 0; i < na; i++, ie += asmoothing ? 3 : 1) {\n xej[ie] = xj[i];\n yej[ie] = yj[i];\n }\n }\n\n if(asmoothing) {\n // If there's a-smoothing, this loop fills in the X'd points with catmull-rom\n // control points computed along the a-axis:\n // . . . .\n // . . . .\n // | | | |\n // | | | |\n // o -Y-X- o -X-X- o -X-Y- o\n // | | | |\n // | | | |\n // | | | |\n // o -Y-X- o -X-X- o -X-Y- o\n //\n // i: 0 1 2 3\n // ie: 0 1 3 3 4 5 6 7 8 9\n //\n // ------>\n // a\n //\n for(j = 0, je = 0; j < nb; j++, je += bsmoothing ? 3 : 1) {\n // Fill in the points marked X for this a-row:\n for(i = 1, ie = 3; i < na - 1; i++, ie += 3) {\n cp = makeControlPoints(\n [x[j][i - 1], y[j][i - 1]],\n [x[j][i ], y[j][i]],\n [x[j][i + 1], y[j][i + 1]],\n asmoothing\n );\n\n xe[je][ie - 1] = cp[0][0];\n ye[je][ie - 1] = cp[0][1];\n xe[je][ie + 1] = cp[1][0];\n ye[je][ie + 1] = cp[1][1];\n }\n\n // The very first cubic interpolation point (to the left for i = 1 above) is\n // used as a *quadratic* interpolation point by the spline drawing function\n // which isn't really correct. But for the sake of consistency, we'll use it\n // as such. Since we're using cubic splines, that means we need to shorten the\n // tangent by 1/3 and also construct a new cubic spline control point 1/3 from\n // the original to the i = 0 point.\n p1 = inferCubicControlPoint(\n [xe[je][0], ye[je][0]],\n [xe[je][2], ye[je][2]],\n [xe[je][3], ye[je][3]]\n );\n xe[je][1] = p1[0];\n ye[je][1] = p1[1];\n\n // Ditto last points, sans explanation:\n p1 = inferCubicControlPoint(\n [xe[je][nea - 1], ye[je][nea - 1]],\n [xe[je][nea - 3], ye[je][nea - 3]],\n [xe[je][nea - 4], ye[je][nea - 4]]\n );\n xe[je][nea - 2] = p1[0];\n ye[je][nea - 2] = p1[1];\n }\n }\n\n if(bsmoothing) {\n // If there's a-smoothing, this loop fills in the X'd points with catmull-rom\n // control points computed along the b-axis:\n // . . . .\n // X X X X X X X X X X\n // | | | |\n // X X X X X X X X X X\n // o -o-o- o -o-o- o -o-o- o\n // X X X X X X X X X X\n // | | | |\n // Y Y Y Y Y Y Y Y Y Y\n // o -o-o- o -o-o- o -o-o- o\n //\n // i: 0 1 2 3\n // ie: 0 1 3 3 4 5 6 7 8 9\n //\n // ------>\n // a\n //\n for(ie = 0; ie < nea; ie++) {\n for(je = 3; je < neb - 3; je += 3) {\n cp = makeControlPoints(\n [xe[je - 3][ie], ye[je - 3][ie]],\n [xe[je][ie], ye[je][ie]],\n [xe[je + 3][ie], ye[je + 3][ie]],\n bsmoothing\n );\n\n xe[je - 1][ie] = cp[0][0];\n ye[je - 1][ie] = cp[0][1];\n xe[je + 1][ie] = cp[1][0];\n ye[je + 1][ie] = cp[1][1];\n }\n // Do the same boundary condition magic for these control points marked Y above:\n p1 = inferCubicControlPoint(\n [xe[0][ie], ye[0][ie]],\n [xe[2][ie], ye[2][ie]],\n [xe[3][ie], ye[3][ie]]\n );\n xe[1][ie] = p1[0];\n ye[1][ie] = p1[1];\n\n p1 = inferCubicControlPoint(\n [xe[neb - 1][ie], ye[neb - 1][ie]],\n [xe[neb - 3][ie], ye[neb - 3][ie]],\n [xe[neb - 4][ie], ye[neb - 4][ie]]\n );\n xe[neb - 2][ie] = p1[0];\n ye[neb - 2][ie] = p1[1];\n }\n }\n\n if(asmoothing && bsmoothing) {\n // Do one more pass, this time recomputing exactly what we just computed.\n // It's overdetermined since we're peforming catmull-rom in two directions,\n // so we'll just average the overdetermined. These points don't lie along the\n // grid lines, so note that only grid lines will follow normal plotly spline\n // interpolation.\n //\n // Unless of course there was no b smoothing. Then these intermediate points\n // don't actually exist and this section is bypassed.\n // . . . .\n // o X X o X X o X X o\n // | | | |\n // o X X o X X o X X o\n // o -o-o- o -o-o- o -o-o- o\n // o X X o X X o X X o\n // | | | |\n // o Y Y o Y Y o Y Y o\n // o -o-o- o -o-o- o -o-o- o\n //\n // i: 0 1 2 3\n // ie: 0 1 3 3 4 5 6 7 8 9\n //\n // ------>\n // a\n //\n for(je = 1; je < neb; je += (je + 1) % 3 === 0 ? 2 : 1) {\n // Fill in the points marked X for this a-row:\n for(ie = 3; ie < nea - 3; ie += 3) {\n cp = makeControlPoints(\n [xe[je][ie - 3], ye[je][ie - 3]],\n [xe[je][ie], ye[je][ie]],\n [xe[je][ie + 3], ye[je][ie + 3]],\n asmoothing\n );\n\n xe[je][ie - 1] = 0.5 * (xe[je][ie - 1] + cp[0][0]);\n ye[je][ie - 1] = 0.5 * (ye[je][ie - 1] + cp[0][1]);\n xe[je][ie + 1] = 0.5 * (xe[je][ie + 1] + cp[1][0]);\n ye[je][ie + 1] = 0.5 * (ye[je][ie + 1] + cp[1][1]);\n }\n\n // This case is just slightly different. The computation is the same,\n // but having computed this, we'll average with the existing result.\n p1 = inferCubicControlPoint(\n [xe[je][0], ye[je][0]],\n [xe[je][2], ye[je][2]],\n [xe[je][3], ye[je][3]]\n );\n xe[je][1] = 0.5 * (xe[je][1] + p1[0]);\n ye[je][1] = 0.5 * (ye[je][1] + p1[1]);\n\n p1 = inferCubicControlPoint(\n [xe[je][nea - 1], ye[je][nea - 1]],\n [xe[je][nea - 3], ye[je][nea - 3]],\n [xe[je][nea - 4], ye[je][nea - 4]]\n );\n xe[je][nea - 2] = 0.5 * (xe[je][nea - 2] + p1[0]);\n ye[je][nea - 2] = 0.5 * (ye[je][nea - 2] + p1[1]);\n }\n }\n\n return [xe, ye];\n};\n\n},{\"../../lib\":503,\"./catmull_rom\":699}],702:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n RELATIVE_CULL_TOLERANCE: 1e-6\n};\n\n},{}],703:[function(_dereq_,module,exports){\n'use strict';\n\n/*\n * Evaluates the derivative of a list of control point arrays. That is, it expects an array or arrays\n * that are expanded relative to the raw data to include the bicubic control points, if applicable. If\n * only linear interpolation is desired, then the data points correspond 1-1 along that axis to the\n * data itself. Since it's catmull-rom splines in either direction note in particular that the\n * derivatives are discontinuous across cell boundaries. That's the reason you need both the *cell*\n * and the *point within the cell*.\n *\n * Also note that the discontinuity of the derivative is in magnitude only. The direction *is*\n * continuous across cell boundaries.\n *\n * For example, to compute the derivative of the xcoordinate halfway between the 7 and 8th i-gridpoints\n * and the 10th and 11th j-gridpoints given bicubic smoothing in both dimensions, you'd write:\n *\n * var deriv = createIDerivativeEvaluator([x], 1, 1);\n *\n * var dxdi = deriv([], 7, 10, 0.5, 0.5);\n * // => [0.12345]\n *\n * Since there'd be a bunch of duplicate computation to compute multiple derivatives, you can double\n * this up by providing more arrays:\n *\n * var deriv = createIDerivativeEvaluator([x, y], 1, 1);\n *\n * var dxdi = deriv([], 7, 10, 0.5, 0.5);\n * // => [0.12345, 0.78910]\n *\n * NB: It's presumed that at this point all data has been sanitized and is valid numerical data arrays\n * of the correct dimension.\n */\nmodule.exports = function(arrays, asmoothing, bsmoothing) {\n if(asmoothing && bsmoothing) {\n return function(out, i0, j0, u, v) {\n if(!out) out = [];\n var f0, f1, f2, f3, ak, k;\n\n // Since it's a grid of control points, the actual indices are * 3:\n i0 *= 3;\n j0 *= 3;\n\n // Precompute some numbers:\n var u2 = u * u;\n var ou = 1 - u;\n var ou2 = ou * ou;\n var ouu2 = ou * u * 2;\n var a = -3 * ou2;\n var b = 3 * (ou2 - ouu2);\n var c = 3 * (ouu2 - u2);\n var d = 3 * u2;\n\n var v2 = v * v;\n var v3 = v2 * v;\n var ov = 1 - v;\n var ov2 = ov * ov;\n var ov3 = ov2 * ov;\n\n for(k = 0; k < arrays.length; k++) {\n ak = arrays[k];\n // Compute the derivatives in the u-direction:\n f0 = a * ak[j0 ][i0] + b * ak[j0 ][i0 + 1] + c * ak[j0 ][i0 + 2] + d * ak[j0 ][i0 + 3];\n f1 = a * ak[j0 + 1][i0] + b * ak[j0 + 1][i0 + 1] + c * ak[j0 + 1][i0 + 2] + d * ak[j0 + 1][i0 + 3];\n f2 = a * ak[j0 + 2][i0] + b * ak[j0 + 2][i0 + 1] + c * ak[j0 + 2][i0 + 2] + d * ak[j0 + 2][i0 + 3];\n f3 = a * ak[j0 + 3][i0] + b * ak[j0 + 3][i0 + 1] + c * ak[j0 + 3][i0 + 2] + d * ak[j0 + 3][i0 + 3];\n\n // Now just interpolate in the v-direction since it's all separable:\n out[k] = ov3 * f0 + 3 * (ov2 * v * f1 + ov * v2 * f2) + v3 * f3;\n }\n\n return out;\n };\n } else if(asmoothing) {\n // Handle smooth in the a-direction but linear in the b-direction by performing four\n // linear interpolations followed by one cubic interpolation of the result\n return function(out, i0, j0, u, v) {\n if(!out) out = [];\n var f0, f1, k, ak;\n i0 *= 3;\n var u2 = u * u;\n var ou = 1 - u;\n var ou2 = ou * ou;\n var ouu2 = ou * u * 2;\n var a = -3 * ou2;\n var b = 3 * (ou2 - ouu2);\n var c = 3 * (ouu2 - u2);\n var d = 3 * u2;\n var ov = 1 - v;\n for(k = 0; k < arrays.length; k++) {\n ak = arrays[k];\n f0 = a * ak[j0 ][i0] + b * ak[j0 ][i0 + 1] + c * ak[j0 ][i0 + 2] + d * ak[j0 ][i0 + 3];\n f1 = a * ak[j0 + 1][i0] + b * ak[j0 + 1][i0 + 1] + c * ak[j0 + 1][i0 + 2] + d * ak[j0 + 1][i0 + 3];\n\n out[k] = ov * f0 + v * f1;\n }\n return out;\n };\n } else if(bsmoothing) {\n // Same as the above case, except reversed. I've disabled the no-unused vars rule\n // so that this function is fully interpolation-agnostic. Otherwise it would need\n // to be called differently in different cases. Which wouldn't be the worst, but\n /* eslint-disable no-unused-vars */\n return function(out, i0, j0, u, v) {\n /* eslint-enable no-unused-vars */\n if(!out) out = [];\n var f0, f1, f2, f3, k, ak;\n j0 *= 3;\n var v2 = v * v;\n var v3 = v2 * v;\n var ov = 1 - v;\n var ov2 = ov * ov;\n var ov3 = ov2 * ov;\n for(k = 0; k < arrays.length; k++) {\n ak = arrays[k];\n f0 = ak[j0][i0 + 1] - ak[j0][i0];\n f1 = ak[j0 + 1][i0 + 1] - ak[j0 + 1][i0];\n f2 = ak[j0 + 2][i0 + 1] - ak[j0 + 2][i0];\n f3 = ak[j0 + 3][i0 + 1] - ak[j0 + 3][i0];\n\n out[k] = ov3 * f0 + 3 * (ov2 * v * f1 + ov * v2 * f2) + v3 * f3;\n }\n return out;\n };\n } else {\n // Finally, both directions are linear:\n /* eslint-disable no-unused-vars */\n return function(out, i0, j0, u, v) {\n /* eslint-enable no-unused-vars */\n if(!out) out = [];\n var f0, f1, k, ak;\n var ov = 1 - v;\n for(k = 0; k < arrays.length; k++) {\n ak = arrays[k];\n f0 = ak[j0][i0 + 1] - ak[j0][i0];\n f1 = ak[j0 + 1][i0 + 1] - ak[j0 + 1][i0];\n\n out[k] = ov * f0 + v * f1;\n }\n return out;\n };\n }\n};\n\n},{}],704:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function(arrays, asmoothing, bsmoothing) {\n if(asmoothing && bsmoothing) {\n return function(out, i0, j0, u, v) {\n if(!out) out = [];\n var f0, f1, f2, f3, ak, k;\n\n // Since it's a grid of control points, the actual indices are * 3:\n i0 *= 3;\n j0 *= 3;\n\n // Precompute some numbers:\n var u2 = u * u;\n var u3 = u2 * u;\n var ou = 1 - u;\n var ou2 = ou * ou;\n var ou3 = ou2 * ou;\n\n var v2 = v * v;\n var ov = 1 - v;\n var ov2 = ov * ov;\n var ovv2 = ov * v * 2;\n var a = -3 * ov2;\n var b = 3 * (ov2 - ovv2);\n var c = 3 * (ovv2 - v2);\n var d = 3 * v2;\n\n for(k = 0; k < arrays.length; k++) {\n ak = arrays[k];\n\n // Compute the derivatives in the v-direction:\n f0 = a * ak[j0][i0] + b * ak[j0 + 1][i0] + c * ak[j0 + 2][i0] + d * ak[j0 + 3][i0];\n f1 = a * ak[j0][i0 + 1] + b * ak[j0 + 1][i0 + 1] + c * ak[j0 + 2][i0 + 1] + d * ak[j0 + 3][i0 + 1];\n f2 = a * ak[j0][i0 + 2] + b * ak[j0 + 1][i0 + 2] + c * ak[j0 + 2][i0 + 2] + d * ak[j0 + 3][i0 + 2];\n f3 = a * ak[j0][i0 + 3] + b * ak[j0 + 1][i0 + 3] + c * ak[j0 + 2][i0 + 3] + d * ak[j0 + 3][i0 + 3];\n\n // Now just interpolate in the v-direction since it's all separable:\n out[k] = ou3 * f0 + 3 * (ou2 * u * f1 + ou * u2 * f2) + u3 * f3;\n }\n\n return out;\n };\n } else if(asmoothing) {\n // Handle smooth in the a-direction but linear in the b-direction by performing four\n // linear interpolations followed by one cubic interpolation of the result\n return function(out, i0, j0, v, u) {\n if(!out) out = [];\n var f0, f1, f2, f3, k, ak;\n i0 *= 3;\n var u2 = u * u;\n var u3 = u2 * u;\n var ou = 1 - u;\n var ou2 = ou * ou;\n var ou3 = ou2 * ou;\n for(k = 0; k < arrays.length; k++) {\n ak = arrays[k];\n\n f0 = ak[j0 + 1][i0] - ak[j0][i0];\n f1 = ak[j0 + 1][i0 + 1] - ak[j0][i0 + 1];\n f2 = ak[j0 + 1][i0 + 2] - ak[j0][i0 + 2];\n f3 = ak[j0 + 1][i0 + 3] - ak[j0][i0 + 3];\n\n out[k] = ou3 * f0 + 3 * (ou2 * u * f1 + ou * u2 * f2) + u3 * f3;\n\n // mathematically equivalent:\n // f0 = ou3 * ak[j0 ][i0] + 3 * (ou2 * u * ak[j0 ][i0 + 1] + ou * u2 * ak[j0 ][i0 + 2]) + u3 * ak[j0 ][i0 + 3];\n // f1 = ou3 * ak[j0 + 1][i0] + 3 * (ou2 * u * ak[j0 + 1][i0 + 1] + ou * u2 * ak[j0 + 1][i0 + 2]) + u3 * ak[j0 + 1][i0 + 3];\n // out[k] = f1 - f0;\n }\n return out;\n };\n } else if(bsmoothing) {\n // Same as the above case, except reversed:\n /* eslint-disable no-unused-vars */\n return function(out, i0, j0, u, v) {\n /* eslint-enable no-unused-vars */\n if(!out) out = [];\n var f0, f1, k, ak;\n j0 *= 3;\n var ou = 1 - u;\n var v2 = v * v;\n var ov = 1 - v;\n var ov2 = ov * ov;\n var ovv2 = ov * v * 2;\n var a = -3 * ov2;\n var b = 3 * (ov2 - ovv2);\n var c = 3 * (ovv2 - v2);\n var d = 3 * v2;\n for(k = 0; k < arrays.length; k++) {\n ak = arrays[k];\n f0 = a * ak[j0][i0] + b * ak[j0 + 1][i0] + c * ak[j0 + 2][i0] + d * ak[j0 + 3][i0];\n f1 = a * ak[j0][i0 + 1] + b * ak[j0 + 1][i0 + 1] + c * ak[j0 + 2][i0 + 1] + d * ak[j0 + 3][i0 + 1];\n\n out[k] = ou * f0 + u * f1;\n }\n return out;\n };\n } else {\n // Finally, both directions are linear:\n /* eslint-disable no-unused-vars */\n return function(out, i0, j0, v, u) {\n /* eslint-enable no-unused-vars */\n if(!out) out = [];\n var f0, f1, k, ak;\n var ov = 1 - v;\n for(k = 0; k < arrays.length; k++) {\n ak = arrays[k];\n f0 = ak[j0 + 1][i0] - ak[j0][i0];\n f1 = ak[j0 + 1][i0 + 1] - ak[j0][i0 + 1];\n\n out[k] = ov * f0 + v * f1;\n }\n return out;\n };\n }\n};\n\n},{}],705:[function(_dereq_,module,exports){\n'use strict';\n\n/*\n * Return a function that evaluates a set of linear or bicubic control points.\n * This will get evaluated a lot, so we'll at least do a bit of extra work to\n * flatten some of the choices. In particular, we'll unroll the linear/bicubic\n * combinations and we'll allow computing results in parallel to cut down\n * on repeated arithmetic.\n *\n * Take note that we don't search for the correct range in this function. The\n * reason is for consistency due to the corrresponding derivative function. In\n * particular, the derivatives aren't continuous across cells, so it's important\n * to be able control whether the derivative at a cell boundary is approached\n * from one side or the other.\n */\nmodule.exports = function(arrays, na, nb, asmoothing, bsmoothing) {\n var imax = na - 2;\n var jmax = nb - 2;\n\n if(asmoothing && bsmoothing) {\n return function(out, i, j) {\n if(!out) out = [];\n var f0, f1, f2, f3, ak, k;\n\n var i0 = Math.max(0, Math.min(Math.floor(i), imax));\n var j0 = Math.max(0, Math.min(Math.floor(j), jmax));\n var u = Math.max(0, Math.min(1, i - i0));\n var v = Math.max(0, Math.min(1, j - j0));\n\n // Since it's a grid of control points, the actual indices are * 3:\n i0 *= 3;\n j0 *= 3;\n\n // Precompute some numbers:\n var u2 = u * u;\n var u3 = u2 * u;\n var ou = 1 - u;\n var ou2 = ou * ou;\n var ou3 = ou2 * ou;\n\n var v2 = v * v;\n var v3 = v2 * v;\n var ov = 1 - v;\n var ov2 = ov * ov;\n var ov3 = ov2 * ov;\n\n for(k = 0; k < arrays.length; k++) {\n ak = arrays[k];\n f0 = ou3 * ak[j0][i0] + 3 * (ou2 * u * ak[j0][i0 + 1] + ou * u2 * ak[j0][i0 + 2]) + u3 * ak[j0][i0 + 3];\n f1 = ou3 * ak[j0 + 1][i0] + 3 * (ou2 * u * ak[j0 + 1][i0 + 1] + ou * u2 * ak[j0 + 1][i0 + 2]) + u3 * ak[j0 + 1][i0 + 3];\n f2 = ou3 * ak[j0 + 2][i0] + 3 * (ou2 * u * ak[j0 + 2][i0 + 1] + ou * u2 * ak[j0 + 2][i0 + 2]) + u3 * ak[j0 + 2][i0 + 3];\n f3 = ou3 * ak[j0 + 3][i0] + 3 * (ou2 * u * ak[j0 + 3][i0 + 1] + ou * u2 * ak[j0 + 3][i0 + 2]) + u3 * ak[j0 + 3][i0 + 3];\n out[k] = ov3 * f0 + 3 * (ov2 * v * f1 + ov * v2 * f2) + v3 * f3;\n }\n\n return out;\n };\n } else if(asmoothing) {\n // Handle smooth in the a-direction but linear in the b-direction by performing four\n // linear interpolations followed by one cubic interpolation of the result\n return function(out, i, j) {\n if(!out) out = [];\n\n var i0 = Math.max(0, Math.min(Math.floor(i), imax));\n var j0 = Math.max(0, Math.min(Math.floor(j), jmax));\n var u = Math.max(0, Math.min(1, i - i0));\n var v = Math.max(0, Math.min(1, j - j0));\n\n var f0, f1, f2, f3, k, ak;\n i0 *= 3;\n var u2 = u * u;\n var u3 = u2 * u;\n var ou = 1 - u;\n var ou2 = ou * ou;\n var ou3 = ou2 * ou;\n var ov = 1 - v;\n for(k = 0; k < arrays.length; k++) {\n ak = arrays[k];\n f0 = ov * ak[j0][i0] + v * ak[j0 + 1][i0];\n f1 = ov * ak[j0][i0 + 1] + v * ak[j0 + 1][i0 + 1];\n f2 = ov * ak[j0][i0 + 2] + v * ak[j0 + 1][i0 + 1];\n f3 = ov * ak[j0][i0 + 3] + v * ak[j0 + 1][i0 + 1];\n\n out[k] = ou3 * f0 + 3 * (ou2 * u * f1 + ou * u2 * f2) + u3 * f3;\n }\n return out;\n };\n } else if(bsmoothing) {\n // Same as the above case, except reversed:\n return function(out, i, j) {\n if(!out) out = [];\n\n var i0 = Math.max(0, Math.min(Math.floor(i), imax));\n var j0 = Math.max(0, Math.min(Math.floor(j), jmax));\n var u = Math.max(0, Math.min(1, i - i0));\n var v = Math.max(0, Math.min(1, j - j0));\n\n var f0, f1, f2, f3, k, ak;\n j0 *= 3;\n var v2 = v * v;\n var v3 = v2 * v;\n var ov = 1 - v;\n var ov2 = ov * ov;\n var ov3 = ov2 * ov;\n var ou = 1 - u;\n for(k = 0; k < arrays.length; k++) {\n ak = arrays[k];\n f0 = ou * ak[j0][i0] + u * ak[j0][i0 + 1];\n f1 = ou * ak[j0 + 1][i0] + u * ak[j0 + 1][i0 + 1];\n f2 = ou * ak[j0 + 2][i0] + u * ak[j0 + 2][i0 + 1];\n f3 = ou * ak[j0 + 3][i0] + u * ak[j0 + 3][i0 + 1];\n\n out[k] = ov3 * f0 + 3 * (ov2 * v * f1 + ov * v2 * f2) + v3 * f3;\n }\n return out;\n };\n } else {\n // Finally, both directions are linear:\n return function(out, i, j) {\n if(!out) out = [];\n\n var i0 = Math.max(0, Math.min(Math.floor(i), imax));\n var j0 = Math.max(0, Math.min(Math.floor(j), jmax));\n var u = Math.max(0, Math.min(1, i - i0));\n var v = Math.max(0, Math.min(1, j - j0));\n\n var f0, f1, k, ak;\n var ov = 1 - v;\n var ou = 1 - u;\n for(k = 0; k < arrays.length; k++) {\n ak = arrays[k];\n f0 = ou * ak[j0][i0] + u * ak[j0][i0 + 1];\n f1 = ou * ak[j0 + 1][i0] + u * ak[j0 + 1][i0 + 1];\n\n out[k] = ov * f0 + v * f1;\n }\n return out;\n };\n }\n};\n\n},{}],706:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar handleXYDefaults = _dereq_('./xy_defaults');\nvar handleABDefaults = _dereq_('./ab_defaults');\nvar attributes = _dereq_('./attributes');\nvar colorAttrs = _dereq_('../../components/color/attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, dfltColor, fullLayout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n traceOut._clipPathId = 'clip' + traceOut.uid + 'carpet';\n\n var defaultColor = coerce('color', colorAttrs.defaultLine);\n Lib.coerceFont(coerce, 'font');\n\n coerce('carpet');\n\n handleABDefaults(traceIn, traceOut, fullLayout, coerce, defaultColor);\n\n if(!traceOut.a || !traceOut.b) {\n traceOut.visible = false;\n return;\n }\n\n if(traceOut.a.length < 3) {\n traceOut.aaxis.smoothing = 0;\n }\n\n if(traceOut.b.length < 3) {\n traceOut.baxis.smoothing = 0;\n }\n\n // NB: the input is x/y arrays. You should know that the *first* dimension of x and y\n // corresponds to b and the second to a. This sounds backwards but ends up making sense\n // the important part to know is that when you write y[j][i], j goes from 0 to b.length - 1\n // and i goes from 0 to a.length - 1.\n var validData = handleXYDefaults(traceIn, traceOut, coerce);\n if(!validData) {\n traceOut.visible = false;\n }\n\n if(traceOut._cheater) {\n coerce('cheaterslope');\n }\n};\n\n},{\"../../components/color/attributes\":365,\"../../lib\":503,\"./ab_defaults\":689,\"./attributes\":691,\"./xy_defaults\":715}],707:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n plot: _dereq_('./plot'),\n calc: _dereq_('./calc'),\n animatable: true,\n isContainer: true, // so carpet traces get `calc` before other traces\n\n moduleType: 'trace',\n name: 'carpet',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: ['cartesian', 'svg', 'carpet', 'carpetAxis', 'notLegendIsolatable', 'noMultiCategory', 'noHover', 'noSortingByValue'],\n meta: {\n }\n};\n\n},{\"../../plots/cartesian\":568,\"./attributes\":691,\"./calc\":695,\"./defaults\":706,\"./plot\":712}],708:[function(_dereq_,module,exports){\n'use strict';\n\n/*\n * Given a trace, look up the carpet axis by carpet.\n */\nmodule.exports = function(gd, trace) {\n var n = gd._fullData.length;\n var firstAxis;\n for(var i = 0; i < n; i++) {\n var maybeCarpet = gd._fullData[i];\n\n if(maybeCarpet.index === trace.index) continue;\n\n if(maybeCarpet.type === 'carpet') {\n if(!firstAxis) {\n firstAxis = maybeCarpet;\n }\n\n if(maybeCarpet.carpet === trace.carpet) {\n return maybeCarpet;\n }\n }\n }\n\n return firstAxis;\n};\n\n},{}],709:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function makePath(xp, yp, isBicubic) {\n // Prevent d3 errors that would result otherwise:\n if(xp.length === 0) return '';\n\n var i;\n var path = [];\n var stride = isBicubic ? 3 : 1;\n for(i = 0; i < xp.length; i += stride) {\n path.push(xp[i] + ',' + yp[i]);\n\n if(isBicubic && i < xp.length - stride) {\n path.push('C');\n path.push([\n xp[i + 1] + ',' + yp[i + 1],\n xp[i + 2] + ',' + yp[i + 2] + ' ',\n ].join(' '));\n }\n }\n return path.join(isBicubic ? '' : 'L');\n};\n\n},{}],710:[function(_dereq_,module,exports){\n'use strict';\n\nvar isArrayOrTypedArray = _dereq_('../../lib').isArrayOrTypedArray;\n\n/*\n * Map an array of x or y coordinates (c) to screen-space pixel coordinates (p).\n * The output array is optional, but if provided, it will be reused without\n * reallocation to the extent possible.\n */\nmodule.exports = function mapArray(out, data, func) {\n var i;\n\n if(!isArrayOrTypedArray(out)) {\n // If not an array, make it an array:\n out = [];\n } else if(out.length > data.length) {\n // If too long, truncate. (If too short, it will grow\n // automatically so we don't care about that case)\n out = out.slice(0, data.length);\n }\n\n for(i = 0; i < data.length; i++) {\n out[i] = func(data[i]);\n }\n\n return out;\n};\n\n},{\"../../lib\":503}],711:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function orientText(trace, xaxis, yaxis, xy, dxy, refDxy) {\n var dx = dxy[0] * trace.dpdx(xaxis);\n var dy = dxy[1] * trace.dpdy(yaxis);\n var flip = 1;\n\n var offsetMultiplier = 1.0;\n if(refDxy) {\n var l1 = Math.sqrt(dxy[0] * dxy[0] + dxy[1] * dxy[1]);\n var l2 = Math.sqrt(refDxy[0] * refDxy[0] + refDxy[1] * refDxy[1]);\n var dot = (dxy[0] * refDxy[0] + dxy[1] * refDxy[1]) / l1 / l2;\n offsetMultiplier = Math.max(0.0, dot);\n }\n\n var angle = Math.atan2(dy, dx) * 180 / Math.PI;\n if(angle < -90) {\n angle += 180;\n flip = -flip;\n } else if(angle > 90) {\n angle -= 180;\n flip = -flip;\n }\n\n return {\n angle: angle,\n flip: flip,\n p: trace.c2p(xy, xaxis, yaxis),\n offsetMultplier: offsetMultiplier\n };\n};\n\n},{}],712:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Drawing = _dereq_('../../components/drawing');\nvar map1dArray = _dereq_('./map_1d_array');\nvar makepath = _dereq_('./makepath');\nvar orientText = _dereq_('./orient_text');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\nvar Lib = _dereq_('../../lib');\nvar strRotate = Lib.strRotate;\nvar strTranslate = Lib.strTranslate;\nvar alignmentConstants = _dereq_('../../constants/alignment');\n\nmodule.exports = function plot(gd, plotinfo, cdcarpet, carpetLayer) {\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n var fullLayout = gd._fullLayout;\n var clipLayer = fullLayout._clips;\n\n Lib.makeTraceGroups(carpetLayer, cdcarpet, 'trace').each(function(cd) {\n var axisLayer = d3.select(this);\n var cd0 = cd[0];\n var trace = cd0.trace;\n var aax = trace.aaxis;\n var bax = trace.baxis;\n\n var minorLayer = Lib.ensureSingle(axisLayer, 'g', 'minorlayer');\n var majorLayer = Lib.ensureSingle(axisLayer, 'g', 'majorlayer');\n var boundaryLayer = Lib.ensureSingle(axisLayer, 'g', 'boundarylayer');\n var labelLayer = Lib.ensureSingle(axisLayer, 'g', 'labellayer');\n\n axisLayer.style('opacity', trace.opacity);\n\n drawGridLines(xa, ya, majorLayer, aax, 'a', aax._gridlines, true);\n drawGridLines(xa, ya, majorLayer, bax, 'b', bax._gridlines, true);\n drawGridLines(xa, ya, minorLayer, aax, 'a', aax._minorgridlines, true);\n drawGridLines(xa, ya, minorLayer, bax, 'b', bax._minorgridlines, true);\n\n // NB: These are not omitted if the lines are not active. The joins must be executed\n // in order for them to get cleaned up without a full redraw\n drawGridLines(xa, ya, boundaryLayer, aax, 'a-boundary', aax._boundarylines);\n drawGridLines(xa, ya, boundaryLayer, bax, 'b-boundary', bax._boundarylines);\n\n var labelOrientationA = drawAxisLabels(gd, xa, ya, trace, cd0, labelLayer, aax._labels, 'a-label');\n var labelOrientationB = drawAxisLabels(gd, xa, ya, trace, cd0, labelLayer, bax._labels, 'b-label');\n\n drawAxisTitles(gd, labelLayer, trace, cd0, xa, ya, labelOrientationA, labelOrientationB);\n\n drawClipPath(trace, cd0, clipLayer, xa, ya);\n });\n};\n\nfunction drawClipPath(trace, t, layer, xaxis, yaxis) {\n var seg, xp, yp, i;\n\n var clip = layer.select('#' + trace._clipPathId);\n\n if(!clip.size()) {\n clip = layer.append('clipPath')\n .classed('carpetclip', true);\n }\n\n var path = Lib.ensureSingle(clip, 'path', 'carpetboundary');\n var segments = t.clipsegments;\n var segs = [];\n\n for(i = 0; i < segments.length; i++) {\n seg = segments[i];\n xp = map1dArray([], seg.x, xaxis.c2p);\n yp = map1dArray([], seg.y, yaxis.c2p);\n segs.push(makepath(xp, yp, seg.bicubic));\n }\n\n // This could be optimized ever so slightly to avoid no-op L segments\n // at the corners, but it's so negligible that I don't think it's worth\n // the extra complexity\n var clipPathData = 'M' + segs.join('L') + 'Z';\n clip.attr('id', trace._clipPathId);\n path.attr('d', clipPathData);\n}\n\nfunction drawGridLines(xaxis, yaxis, layer, axis, axisLetter, gridlines) {\n var lineClass = 'const-' + axisLetter + '-lines';\n var gridJoin = layer.selectAll('.' + lineClass).data(gridlines);\n\n gridJoin.enter().append('path')\n .classed(lineClass, true)\n .style('vector-effect', 'non-scaling-stroke');\n\n gridJoin.each(function(d) {\n var gridline = d;\n var x = gridline.x;\n var y = gridline.y;\n\n var xp = map1dArray([], x, xaxis.c2p);\n var yp = map1dArray([], y, yaxis.c2p);\n\n var path = 'M' + makepath(xp, yp, gridline.smoothing);\n\n var el = d3.select(this);\n\n el.attr('d', path)\n .style('stroke-width', gridline.width)\n .style('stroke', gridline.color)\n .style('fill', 'none');\n });\n\n gridJoin.exit().remove();\n}\n\nfunction drawAxisLabels(gd, xaxis, yaxis, trace, t, layer, labels, labelClass) {\n var labelJoin = layer.selectAll('text.' + labelClass).data(labels);\n\n labelJoin.enter().append('text')\n .classed(labelClass, true);\n\n var maxExtent = 0;\n var labelOrientation = {};\n\n labelJoin.each(function(label, i) {\n // Most of the positioning is done in calc_labels. Only the parts that depend upon\n // the screen space representation of the x and y axes are here:\n var orientation;\n if(label.axis.tickangle === 'auto') {\n orientation = orientText(trace, xaxis, yaxis, label.xy, label.dxy);\n } else {\n var angle = (label.axis.tickangle + 180.0) * Math.PI / 180.0;\n orientation = orientText(trace, xaxis, yaxis, label.xy, [Math.cos(angle), Math.sin(angle)]);\n }\n\n if(!i) {\n // TODO: offsetMultiplier? Not currently used anywhere...\n labelOrientation = {angle: orientation.angle, flip: orientation.flip};\n }\n var direction = (label.endAnchor ? -1 : 1) * orientation.flip;\n\n var labelEl = d3.select(this)\n .attr({\n 'text-anchor': direction > 0 ? 'start' : 'end',\n 'data-notex': 1\n })\n .call(Drawing.font, label.font)\n .text(label.text)\n .call(svgTextUtils.convertToTspans, gd);\n\n var bbox = Drawing.bBox(this);\n\n labelEl.attr('transform',\n // Translate to the correct point:\n strTranslate(orientation.p[0], orientation.p[1]) +\n // Rotate to line up with grid line tangent:\n strRotate(orientation.angle) +\n // Adjust the baseline and indentation:\n strTranslate(label.axis.labelpadding * direction, bbox.height * 0.3)\n );\n\n maxExtent = Math.max(maxExtent, bbox.width + label.axis.labelpadding);\n });\n\n labelJoin.exit().remove();\n\n labelOrientation.maxExtent = maxExtent;\n return labelOrientation;\n}\n\nfunction drawAxisTitles(gd, layer, trace, t, xa, ya, labelOrientationA, labelOrientationB) {\n var a, b, xy, dxy;\n\n var aMin = Lib.aggNums(Math.min, null, trace.a);\n var aMax = Lib.aggNums(Math.max, null, trace.a);\n var bMin = Lib.aggNums(Math.min, null, trace.b);\n var bMax = Lib.aggNums(Math.max, null, trace.b);\n\n a = 0.5 * (aMin + aMax);\n b = bMin;\n xy = trace.ab2xy(a, b, true);\n dxy = trace.dxyda_rough(a, b);\n if(labelOrientationA.angle === undefined) {\n Lib.extendFlat(labelOrientationA, orientText(trace, xa, ya, xy, trace.dxydb_rough(a, b)));\n }\n drawAxisTitle(gd, layer, trace, t, xy, dxy, trace.aaxis, xa, ya, labelOrientationA, 'a-title');\n\n a = aMin;\n b = 0.5 * (bMin + bMax);\n xy = trace.ab2xy(a, b, true);\n dxy = trace.dxydb_rough(a, b);\n if(labelOrientationB.angle === undefined) {\n Lib.extendFlat(labelOrientationB, orientText(trace, xa, ya, xy, trace.dxyda_rough(a, b)));\n }\n drawAxisTitle(gd, layer, trace, t, xy, dxy, trace.baxis, xa, ya, labelOrientationB, 'b-title');\n}\n\nvar lineSpacing = alignmentConstants.LINE_SPACING;\nvar midShift = ((1 - alignmentConstants.MID_SHIFT) / lineSpacing) + 1;\n\nfunction drawAxisTitle(gd, layer, trace, t, xy, dxy, axis, xa, ya, labelOrientation, labelClass) {\n var data = [];\n if(axis.title.text) data.push(axis.title.text);\n var titleJoin = layer.selectAll('text.' + labelClass).data(data);\n var offset = labelOrientation.maxExtent;\n\n titleJoin.enter().append('text')\n .classed(labelClass, true);\n\n // There's only one, but we'll do it as a join so it's updated nicely:\n titleJoin.each(function() {\n var orientation = orientText(trace, xa, ya, xy, dxy);\n\n if(['start', 'both'].indexOf(axis.showticklabels) === -1) {\n offset = 0;\n }\n\n // In addition to the size of the labels, add on some extra padding:\n var titleSize = axis.title.font.size;\n offset += titleSize + axis.title.offset;\n\n var labelNorm = labelOrientation.angle + (labelOrientation.flip < 0 ? 180 : 0);\n var angleDiff = (labelNorm - orientation.angle + 450) % 360;\n var reverseTitle = angleDiff > 90 && angleDiff < 270;\n\n var el = d3.select(this);\n\n el.text(axis.title.text)\n .call(svgTextUtils.convertToTspans, gd);\n\n if(reverseTitle) {\n offset = (-svgTextUtils.lineCount(el) + midShift) * lineSpacing * titleSize - offset;\n }\n\n el.attr('transform',\n strTranslate(orientation.p[0], orientation.p[1]) +\n strRotate(orientation.angle) +\n strTranslate(0, offset)\n )\n .attr('text-anchor', 'middle')\n .call(Drawing.font, axis.title.font);\n });\n\n titleJoin.exit().remove();\n}\n\n},{\"../../components/drawing\":388,\"../../constants/alignment\":471,\"../../lib\":503,\"../../lib/svg_text_utils\":529,\"./makepath\":709,\"./map_1d_array\":710,\"./orient_text\":711,\"@plotly/d3\":58}],713:[function(_dereq_,module,exports){\n'use strict';\n\nvar constants = _dereq_('./constants');\nvar search = _dereq_('../../lib/search').findBin;\nvar computeControlPoints = _dereq_('./compute_control_points');\nvar createSplineEvaluator = _dereq_('./create_spline_evaluator');\nvar createIDerivativeEvaluator = _dereq_('./create_i_derivative_evaluator');\nvar createJDerivativeEvaluator = _dereq_('./create_j_derivative_evaluator');\n\n/*\n * Create conversion functions to go from one basis to another. In particular the letter\n * abbreviations are:\n *\n * i: i/j coordinates along the grid. Integer values correspond to data points\n * a: real-valued coordinates along the a/b axes\n * c: cartesian x-y coordinates\n * p: screen-space pixel coordinates\n */\nmodule.exports = function setConvert(trace) {\n var a = trace._a;\n var b = trace._b;\n var na = a.length;\n var nb = b.length;\n var aax = trace.aaxis;\n var bax = trace.baxis;\n\n // Grab the limits once rather than recomputing the bounds for every point\n // independently:\n var amin = a[0];\n var amax = a[na - 1];\n var bmin = b[0];\n var bmax = b[nb - 1];\n var arange = a[a.length - 1] - a[0];\n var brange = b[b.length - 1] - b[0];\n\n // Compute the tolerance so that points are visible slightly outside the\n // defined carpet axis:\n var atol = arange * constants.RELATIVE_CULL_TOLERANCE;\n var btol = brange * constants.RELATIVE_CULL_TOLERANCE;\n\n // Expand the limits to include the relative tolerance:\n amin -= atol;\n amax += atol;\n bmin -= btol;\n bmax += btol;\n\n trace.isVisible = function(a, b) {\n return a > amin && a < amax && b > bmin && b < bmax;\n };\n\n trace.isOccluded = function(a, b) {\n return a < amin || a > amax || b < bmin || b > bmax;\n };\n\n trace.setScale = function() {\n var x = trace._x;\n var y = trace._y;\n\n // This is potentially a very expensive step! It does the bulk of the work of constructing\n // an expanded basis of control points. Note in particular that it overwrites the existing\n // basis without creating a new array since that would potentially thrash the garbage\n // collector.\n var result = computeControlPoints(trace._xctrl, trace._yctrl, x, y, aax.smoothing, bax.smoothing);\n trace._xctrl = result[0];\n trace._yctrl = result[1];\n\n // This step is the second step in the process, but it's somewhat simpler. It just unrolls\n // some logic since it would be unnecessarily expensive to compute both interpolations\n // nearly identically but separately and to include a bunch of linear vs. bicubic logic in\n // every single call.\n trace.evalxy = createSplineEvaluator([trace._xctrl, trace._yctrl], na, nb, aax.smoothing, bax.smoothing);\n\n trace.dxydi = createIDerivativeEvaluator([trace._xctrl, trace._yctrl], aax.smoothing, bax.smoothing);\n trace.dxydj = createJDerivativeEvaluator([trace._xctrl, trace._yctrl], aax.smoothing, bax.smoothing);\n };\n\n /*\n * Convert from i/j data grid coordinates to a/b values. Note in particular that this\n * is *linear* interpolation, even if the data is interpolated bicubically.\n */\n trace.i2a = function(i) {\n var i0 = Math.max(0, Math.floor(i[0]), na - 2);\n var ti = i[0] - i0;\n return (1 - ti) * a[i0] + ti * a[i0 + 1];\n };\n\n trace.j2b = function(j) {\n var j0 = Math.max(0, Math.floor(j[1]), na - 2);\n var tj = j[1] - j0;\n return (1 - tj) * b[j0] + tj * b[j0 + 1];\n };\n\n trace.ij2ab = function(ij) {\n return [trace.i2a(ij[0]), trace.j2b(ij[1])];\n };\n\n /*\n * Convert from a/b coordinates to i/j grid-numbered coordinates. This requires searching\n * through the a/b data arrays and assumes they are monotonic, which is presumed to have\n * been enforced already.\n */\n trace.a2i = function(aval) {\n var i0 = Math.max(0, Math.min(search(aval, a), na - 2));\n var a0 = a[i0];\n var a1 = a[i0 + 1];\n return Math.max(0, Math.min(na - 1, i0 + (aval - a0) / (a1 - a0)));\n };\n\n trace.b2j = function(bval) {\n var j0 = Math.max(0, Math.min(search(bval, b), nb - 2));\n var b0 = b[j0];\n var b1 = b[j0 + 1];\n return Math.max(0, Math.min(nb - 1, j0 + (bval - b0) / (b1 - b0)));\n };\n\n trace.ab2ij = function(ab) {\n return [trace.a2i(ab[0]), trace.b2j(ab[1])];\n };\n\n /*\n * Convert from i/j coordinates to x/y caretesian coordinates. This means either bilinear\n * or bicubic spline evaluation, but the hard part is already done at this point.\n */\n trace.i2c = function(i, j) {\n return trace.evalxy([], i, j);\n };\n\n trace.ab2xy = function(aval, bval, extrapolate) {\n if(!extrapolate && (aval < a[0] || aval > a[na - 1] | bval < b[0] || bval > b[nb - 1])) {\n return [false, false];\n }\n var i = trace.a2i(aval);\n var j = trace.b2j(bval);\n\n var pt = trace.evalxy([], i, j);\n\n if(extrapolate) {\n // This section uses the boundary derivatives to extrapolate linearly outside\n // the defined range. Consider a scatter line with one point inside the carpet\n // axis and one point outside. If we don't extrapolate, we can't draw the line\n // at all.\n var iex = 0;\n var jex = 0;\n var der = [];\n\n var i0, ti, j0, tj;\n if(aval < a[0]) {\n i0 = 0;\n ti = 0;\n iex = (aval - a[0]) / (a[1] - a[0]);\n } else if(aval > a[na - 1]) {\n i0 = na - 2;\n ti = 1;\n iex = (aval - a[na - 1]) / (a[na - 1] - a[na - 2]);\n } else {\n i0 = Math.max(0, Math.min(na - 2, Math.floor(i)));\n ti = i - i0;\n }\n\n if(bval < b[0]) {\n j0 = 0;\n tj = 0;\n jex = (bval - b[0]) / (b[1] - b[0]);\n } else if(bval > b[nb - 1]) {\n j0 = nb - 2;\n tj = 1;\n jex = (bval - b[nb - 1]) / (b[nb - 1] - b[nb - 2]);\n } else {\n j0 = Math.max(0, Math.min(nb - 2, Math.floor(j)));\n tj = j - j0;\n }\n\n if(iex) {\n trace.dxydi(der, i0, j0, ti, tj);\n pt[0] += der[0] * iex;\n pt[1] += der[1] * iex;\n }\n\n if(jex) {\n trace.dxydj(der, i0, j0, ti, tj);\n pt[0] += der[0] * jex;\n pt[1] += der[1] * jex;\n }\n }\n\n return pt;\n };\n\n\n trace.c2p = function(xy, xa, ya) {\n return [xa.c2p(xy[0]), ya.c2p(xy[1])];\n };\n\n trace.p2x = function(p, xa, ya) {\n return [xa.p2c(p[0]), ya.p2c(p[1])];\n };\n\n trace.dadi = function(i /* , u*/) {\n // Right now only a piecewise linear a or b basis is permitted since smoother interpolation\n // would cause monotonicity problems. As a retult, u is entirely disregarded in this\n // computation, though we'll specify it as a parameter for the sake of completeness and\n // future-proofing. It would be possible to use monotonic cubic interpolation, for example.\n //\n // See: https://en.wikipedia.org/wiki/Monotone_cubic_interpolation\n\n // u = u || 0;\n\n var i0 = Math.max(0, Math.min(a.length - 2, i));\n\n // The step (denominator) is implicitly 1 since that's the grid spacing.\n return a[i0 + 1] - a[i0];\n };\n\n trace.dbdj = function(j /* , v*/) {\n // See above caveats for dadi which also apply here\n var j0 = Math.max(0, Math.min(b.length - 2, j));\n\n // The step (denominator) is implicitly 1 since that's the grid spacing.\n return b[j0 + 1] - b[j0];\n };\n\n // Takes: grid cell coordinate (i, j) and fractional grid cell coordinates (u, v)\n // Returns: (dx/da, dy/db)\n //\n // NB: separate grid cell + fractional grid cell coordinate format is due to the discontinuous\n // derivative, as described better in create_i_derivative_evaluator.js\n trace.dxyda = function(i0, j0, u, v) {\n var dxydi = trace.dxydi(null, i0, j0, u, v);\n var dadi = trace.dadi(i0, u);\n\n return [dxydi[0] / dadi, dxydi[1] / dadi];\n };\n\n trace.dxydb = function(i0, j0, u, v) {\n var dxydj = trace.dxydj(null, i0, j0, u, v);\n var dbdj = trace.dbdj(j0, v);\n\n return [dxydj[0] / dbdj, dxydj[1] / dbdj];\n };\n\n // Sometimes we don't care about precision and all we really want is decent rough\n // directions (as is the case with labels). In that case, we can do a very rough finite\n // difference and spare having to worry about precise grid coordinates:\n trace.dxyda_rough = function(a, b, reldiff) {\n var h = arange * (reldiff || 0.1);\n var plus = trace.ab2xy(a + h, b, true);\n var minus = trace.ab2xy(a - h, b, true);\n\n return [\n (plus[0] - minus[0]) * 0.5 / h,\n (plus[1] - minus[1]) * 0.5 / h\n ];\n };\n\n trace.dxydb_rough = function(a, b, reldiff) {\n var h = brange * (reldiff || 0.1);\n var plus = trace.ab2xy(a, b + h, true);\n var minus = trace.ab2xy(a, b - h, true);\n\n return [\n (plus[0] - minus[0]) * 0.5 / h,\n (plus[1] - minus[1]) * 0.5 / h\n ];\n };\n\n trace.dpdx = function(xa) {\n return xa._m;\n };\n\n trace.dpdy = function(ya) {\n return ya._m;\n };\n};\n\n},{\"../../lib/search\":523,\"./compute_control_points\":701,\"./constants\":702,\"./create_i_derivative_evaluator\":703,\"./create_j_derivative_evaluator\":704,\"./create_spline_evaluator\":705}],714:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\n/*\n * Given a 2D array as well as a basis in either direction, this function fills in the\n * 2D array using a combination of smoothing and extrapolation. This is rather important\n * for carpet plots since it's used for layout so that we can't simply omit or blank out\n * points. We need a reasonable guess so that the interpolation puts points somewhere\n * even if we were to somehow represent that the data was missing later on.\n *\n * input:\n * - data: 2D array of arrays\n * - a: array such that a.length === data[0].length\n * - b: array such that b.length === data.length\n */\nmodule.exports = function smoothFill2dArray(data, a, b) {\n var i, j, k;\n var ip = [];\n var jp = [];\n // var neighborCnts = [];\n\n var ni = data[0].length;\n var nj = data.length;\n\n function avgSurrounding(i, j) {\n // As a low-quality start, we can simply average surrounding points (in a not\n // non-uniform grid aware manner):\n var sum = 0.0;\n var val;\n var cnt = 0;\n if(i > 0 && (val = data[j][i - 1]) !== undefined) {\n cnt++;\n sum += val;\n }\n if(i < ni - 1 && (val = data[j][i + 1]) !== undefined) {\n cnt++;\n sum += val;\n }\n if(j > 0 && (val = data[j - 1][i]) !== undefined) {\n cnt++;\n sum += val;\n }\n if(j < nj - 1 && (val = data[j + 1][i]) !== undefined) {\n cnt++;\n sum += val;\n }\n return sum / Math.max(1, cnt);\n }\n\n // This loop iterates over all cells. Any cells that are null will be noted and those\n // are the only points we will loop over and update via laplace's equation. Points with\n // any neighbors will receive the average. If there are no neighboring points, then they\n // will be set to zero. Also as we go, track the maximum magnitude so that we can scale\n // our tolerance accordingly.\n var dmax = 0.0;\n for(i = 0; i < ni; i++) {\n for(j = 0; j < nj; j++) {\n if(data[j][i] === undefined) {\n ip.push(i);\n jp.push(j);\n\n data[j][i] = avgSurrounding(i, j);\n // neighborCnts.push(result.neighbors);\n }\n dmax = Math.max(dmax, Math.abs(data[j][i]));\n }\n }\n\n if(!ip.length) return data;\n\n // The tolerance doesn't need to be excessive. It's just for display positioning\n var dxp, dxm, dap, dam, dbp, dbm, c, d, diff, reldiff, overrelaxation;\n var tol = 1e-5;\n var resid = 0;\n var itermax = 100;\n var iter = 0;\n var n = ip.length;\n do {\n resid = 0;\n // Normally we'd loop in two dimensions, but not all points are blank and need\n // an update, so we instead loop only over the points that were tabulated above\n for(k = 0; k < n; k++) {\n i = ip[k];\n j = jp[k];\n // neighborCnt = neighborCnts[k];\n\n // Track a counter for how many contributions there are. We'll use this counter\n // to average at the end, which reduces to laplace's equation with neumann boundary\n // conditions on the first derivative (second derivative is zero so that we get\n // a nice linear extrapolation at the boundaries).\n var boundaryCnt = 0;\n var newVal = 0;\n\n var d0, d1, x0, x1, i0, j0;\n if(i === 0) {\n // If this lies along the i = 0 boundary, extrapolate from the two points\n // to the right of this point. Note that the finite differences take into\n // account non-uniform grid spacing:\n i0 = Math.min(ni - 1, 2);\n x0 = a[i0];\n x1 = a[1];\n d0 = data[j][i0];\n d1 = data[j][1];\n newVal += d1 + (d1 - d0) * (a[0] - x1) / (x1 - x0);\n boundaryCnt++;\n } else if(i === ni - 1) {\n // If along the high i boundary, extrapolate from the two points to the\n // left of this point\n i0 = Math.max(0, ni - 3);\n x0 = a[i0];\n x1 = a[ni - 2];\n d0 = data[j][i0];\n d1 = data[j][ni - 2];\n newVal += d1 + (d1 - d0) * (a[ni - 1] - x1) / (x1 - x0);\n boundaryCnt++;\n }\n\n if((i === 0 || i === ni - 1) && (j > 0 && j < nj - 1)) {\n // If along the min(i) or max(i) boundaries, also smooth vertically as long\n // as we're not in a corner. Note that the finite differences used here\n // are also aware of nonuniform grid spacing:\n dxp = b[j + 1] - b[j];\n dxm = b[j] - b[j - 1];\n newVal += (dxm * data[j + 1][i] + dxp * data[j - 1][i]) / (dxm + dxp);\n boundaryCnt++;\n }\n\n if(j === 0) {\n // If along the j = 0 boundary, extrpolate this point from the two points\n // above it\n j0 = Math.min(nj - 1, 2);\n x0 = b[j0];\n x1 = b[1];\n d0 = data[j0][i];\n d1 = data[1][i];\n newVal += d1 + (d1 - d0) * (b[0] - x1) / (x1 - x0);\n boundaryCnt++;\n } else if(j === nj - 1) {\n // Same for the max j boundary from the cells below it:\n j0 = Math.max(0, nj - 3);\n x0 = b[j0];\n x1 = b[nj - 2];\n d0 = data[j0][i];\n d1 = data[nj - 2][i];\n newVal += d1 + (d1 - d0) * (b[nj - 1] - x1) / (x1 - x0);\n boundaryCnt++;\n }\n\n if((j === 0 || j === nj - 1) && (i > 0 && i < ni - 1)) {\n // Now average points to the left/right as long as not in a corner:\n dxp = a[i + 1] - a[i];\n dxm = a[i] - a[i - 1];\n newVal += (dxm * data[j][i + 1] + dxp * data[j][i - 1]) / (dxm + dxp);\n boundaryCnt++;\n }\n\n if(!boundaryCnt) {\n // If none of the above conditions were triggered, then this is an interior\n // point and we can just do a laplace equation update. As above, these differences\n // are aware of nonuniform grid spacing:\n dap = a[i + 1] - a[i];\n dam = a[i] - a[i - 1];\n dbp = b[j + 1] - b[j];\n dbm = b[j] - b[j - 1];\n\n // These are just some useful constants for the iteration, which is perfectly\n // straightforward but a little long to derive from f_xx + f_yy = 0.\n c = dap * dam * (dap + dam);\n d = dbp * dbm * (dbp + dbm);\n\n newVal = (c * (dbm * data[j + 1][i] + dbp * data[j - 1][i]) +\n d * (dam * data[j][i + 1] + dap * data[j][i - 1])) /\n (d * (dam + dap) + c * (dbm + dbp));\n } else {\n // If we did have contributions from the boundary conditions, then average\n // the result from the various contributions:\n newVal /= boundaryCnt;\n }\n\n // Jacobi updates are ridiculously slow to converge, so this approach uses a\n // Gauss-seidel iteration which is dramatically faster.\n diff = newVal - data[j][i];\n reldiff = diff / dmax;\n resid += reldiff * reldiff;\n\n // Gauss-Seidel-ish iteration, omega chosen based on heuristics and some\n // quick tests.\n //\n // NB: Don't overrelax the boundarie. Otherwise set an overrelaxation factor\n // which is a little low but safely optimal-ish:\n overrelaxation = boundaryCnt ? 0 : 0.85;\n\n // If there are four non-null neighbors, then we want a simple average without\n // overrelaxation. If all the surrounding points are null, then we want the full\n // overrelaxation\n //\n // Based on experiments, this actually seems to slow down convergence just a bit.\n // I'll leave it here for reference in case this needs to be revisited, but\n // it seems to work just fine without this.\n // if (overrelaxation) overrelaxation *= (4 - neighborCnt) / 4;\n\n data[j][i] += diff * (1 + overrelaxation);\n }\n\n resid = Math.sqrt(resid);\n } while(iter++ < itermax && resid > tol);\n\n Lib.log('Smoother converged to', resid, 'after', iter, 'iterations');\n\n return data;\n};\n\n},{\"../../lib\":503}],715:[function(_dereq_,module,exports){\n'use strict';\n\nvar isArray1D = _dereq_('../../lib').isArray1D;\n\nmodule.exports = function handleXYDefaults(traceIn, traceOut, coerce) {\n var x = coerce('x');\n var hasX = x && x.length;\n var y = coerce('y');\n var hasY = y && y.length;\n if(!hasX && !hasY) return false;\n\n traceOut._cheater = !x;\n\n if((!hasX || isArray1D(x)) && (!hasY || isArray1D(y))) {\n var len = hasX ? x.length : Infinity;\n if(hasY) len = Math.min(len, y.length);\n if(traceOut.a && traceOut.a.length) len = Math.min(len, traceOut.a.length);\n if(traceOut.b && traceOut.b.length) len = Math.min(len, traceOut.b.length);\n traceOut._length = len;\n } else traceOut._length = null;\n\n return true;\n};\n\n},{\"../../lib\":503}],716:[function(_dereq_,module,exports){\n'use strict';\n\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar scatterGeoAttrs = _dereq_('../scattergeo/attributes');\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar defaultLine = _dereq_('../../components/color/attributes').defaultLine;\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nvar scatterGeoMarkerLineAttrs = scatterGeoAttrs.marker.line;\n\nmodule.exports = extendFlat({\n locations: {\n valType: 'data_array',\n editType: 'calc',\n },\n locationmode: scatterGeoAttrs.locationmode,\n z: {\n valType: 'data_array',\n editType: 'calc',\n },\n geojson: extendFlat({}, scatterGeoAttrs.geojson, {\n }),\n featureidkey: scatterGeoAttrs.featureidkey,\n\n text: extendFlat({}, scatterGeoAttrs.text, {\n }),\n hovertext: extendFlat({}, scatterGeoAttrs.hovertext, {\n }),\n marker: {\n line: {\n color: extendFlat({}, scatterGeoMarkerLineAttrs.color, {dflt: defaultLine}),\n width: extendFlat({}, scatterGeoMarkerLineAttrs.width, {dflt: 1}),\n editType: 'calc'\n },\n opacity: {\n valType: 'number',\n arrayOk: true,\n min: 0,\n max: 1,\n dflt: 1,\n editType: 'style',\n },\n editType: 'calc'\n },\n\n selected: {\n marker: {\n opacity: scatterGeoAttrs.selected.marker.opacity,\n editType: 'plot'\n },\n editType: 'plot'\n },\n unselected: {\n marker: {\n opacity: scatterGeoAttrs.unselected.marker.opacity,\n editType: 'plot'\n },\n editType: 'plot'\n },\n\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {\n editType: 'calc',\n flags: ['location', 'z', 'text', 'name']\n }),\n hovertemplate: hovertemplateAttrs(),\n showlegend: extendFlat({}, baseAttrs.showlegend, {dflt: false})\n},\n\n colorScaleAttrs('', {\n cLetter: 'z',\n editTypeOverride: 'calc'\n })\n);\n\n},{\"../../components/color/attributes\":365,\"../../components/colorscale/attributes\":373,\"../../lib/extend\":493,\"../../plots/attributes\":550,\"../../plots/template_attributes\":633,\"../scattergeo/attributes\":967}],717:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nvar colorscaleCalc = _dereq_('../../components/colorscale/calc');\nvar arraysToCalcdata = _dereq_('../scatter/arrays_to_calcdata');\nvar calcSelection = _dereq_('../scatter/calc_selection');\n\nfunction isNonBlankString(v) {\n return v && typeof v === 'string';\n}\n\nmodule.exports = function calc(gd, trace) {\n var len = trace._length;\n var calcTrace = new Array(len);\n\n var isValidLoc;\n\n if(trace.geojson) {\n isValidLoc = function(v) { return isNonBlankString(v) || isNumeric(v); };\n } else {\n isValidLoc = isNonBlankString;\n }\n\n for(var i = 0; i < len; i++) {\n var calcPt = calcTrace[i] = {};\n var loc = trace.locations[i];\n var z = trace.z[i];\n\n if(isValidLoc(loc) && isNumeric(z)) {\n calcPt.loc = loc;\n calcPt.z = z;\n } else {\n calcPt.loc = null;\n calcPt.z = BADNUM;\n }\n\n calcPt.index = i;\n }\n\n arraysToCalcdata(calcTrace, trace);\n colorscaleCalc(gd, trace, {\n vals: trace.z,\n containerStr: '',\n cLetter: 'z'\n });\n calcSelection(calcTrace, trace);\n\n return calcTrace;\n};\n\n},{\"../../components/colorscale/calc\":374,\"../../constants/numerical\":479,\"../scatter/arrays_to_calcdata\":924,\"../scatter/calc_selection\":927,\"fast-isnumeric\":190}],718:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar colorscaleDefaults = _dereq_('../../components/colorscale/defaults');\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var locations = coerce('locations');\n var z = coerce('z');\n\n if(!(locations && locations.length && Lib.isArrayOrTypedArray(z) && z.length)) {\n traceOut.visible = false;\n return;\n }\n\n traceOut._length = Math.min(locations.length, z.length);\n\n var geojson = coerce('geojson');\n\n var locationmodeDflt;\n if((typeof geojson === 'string' && geojson !== '') || Lib.isPlainObject(geojson)) {\n locationmodeDflt = 'geojson-id';\n }\n\n var locationMode = coerce('locationmode', locationmodeDflt);\n\n if(locationMode === 'geojson-id') {\n coerce('featureidkey');\n }\n\n coerce('text');\n coerce('hovertext');\n coerce('hovertemplate');\n\n var mlw = coerce('marker.line.width');\n if(mlw) coerce('marker.line.color');\n coerce('marker.opacity');\n\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: '', cLetter: 'z'});\n\n Lib.coerceSelectionMarkerOpacity(traceOut, coerce);\n};\n\n},{\"../../components/colorscale/defaults\":376,\"../../lib\":503,\"./attributes\":716}],719:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function eventData(out, pt, trace, cd, pointNumber) {\n out.location = pt.location;\n out.z = pt.z;\n\n // include feature properties from input geojson\n var cdi = cd[pointNumber];\n if(cdi.fIn && cdi.fIn.properties) {\n out.properties = cdi.fIn.properties;\n }\n out.ct = cdi.ct;\n\n return out;\n};\n\n},{}],720:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar attributes = _dereq_('./attributes');\nvar fillText = _dereq_('../../lib').fillText;\n\nmodule.exports = function hoverPoints(pointData, xval, yval) {\n var cd = pointData.cd;\n var trace = cd[0].trace;\n var geo = pointData.subplot;\n\n var pt, i, j, isInside;\n\n var xy = [xval, yval];\n var altXy = [xval + 360, yval];\n\n for(i = 0; i < cd.length; i++) {\n pt = cd[i];\n isInside = false;\n\n if(pt._polygons) {\n for(j = 0; j < pt._polygons.length; j++) {\n if(pt._polygons[j].contains(xy)) {\n isInside = !isInside;\n }\n // for polygons that cross antimeridian as xval is in [-180, 180]\n if(pt._polygons[j].contains(altXy)) {\n isInside = !isInside;\n }\n }\n\n if(isInside) break;\n }\n }\n\n if(!isInside || !pt) return;\n\n pointData.x0 = pointData.x1 = pointData.xa.c2p(pt.ct);\n pointData.y0 = pointData.y1 = pointData.ya.c2p(pt.ct);\n\n pointData.index = pt.index;\n pointData.location = pt.loc;\n pointData.z = pt.z;\n pointData.zLabel = Axes.tickText(geo.mockAxis, geo.mockAxis.c2l(pt.z), 'hover').text;\n pointData.hovertemplate = pt.hovertemplate;\n\n makeHoverInfo(pointData, trace, pt);\n\n return [pointData];\n};\n\nfunction makeHoverInfo(pointData, trace, pt) {\n if(trace.hovertemplate) return;\n\n var hoverinfo = pt.hi || trace.hoverinfo;\n var loc = String(pt.loc);\n\n var parts = (hoverinfo === 'all') ?\n attributes.hoverinfo.flags :\n hoverinfo.split('+');\n\n var hasName = (parts.indexOf('name') !== -1);\n var hasLocation = (parts.indexOf('location') !== -1);\n var hasZ = (parts.indexOf('z') !== -1);\n var hasText = (parts.indexOf('text') !== -1);\n var hasIdAsNameLabel = !hasName && hasLocation;\n\n var text = [];\n\n if(hasIdAsNameLabel) {\n pointData.nameOverride = loc;\n } else {\n if(hasName) pointData.nameOverride = trace.name;\n if(hasLocation) text.push(loc);\n }\n\n if(hasZ) {\n text.push(pointData.zLabel);\n }\n if(hasText) {\n fillText(pt, trace, text);\n }\n\n pointData.extraText = text.join('
');\n}\n\n},{\"../../lib\":503,\"../../plots/cartesian/axes\":554,\"./attributes\":716}],721:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n colorbar: _dereq_('../heatmap/colorbar'),\n calc: _dereq_('./calc'),\n calcGeoJSON: _dereq_('./plot').calcGeoJSON,\n plot: _dereq_('./plot').plot,\n style: _dereq_('./style').style,\n styleOnSelect: _dereq_('./style').styleOnSelect,\n hoverPoints: _dereq_('./hover'),\n eventData: _dereq_('./event_data'),\n selectPoints: _dereq_('./select'),\n\n moduleType: 'trace',\n name: 'choropleth',\n basePlotModule: _dereq_('../../plots/geo'),\n categories: ['geo', 'noOpacity', 'showLegend'],\n meta: {\n }\n};\n\n},{\"../../plots/geo\":589,\"../heatmap/colorbar\":795,\"./attributes\":716,\"./calc\":717,\"./defaults\":718,\"./event_data\":719,\"./hover\":720,\"./plot\":722,\"./select\":723,\"./style\":724}],722:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Lib = _dereq_('../../lib');\nvar geoUtils = _dereq_('../../lib/geo_location_utils');\nvar getTopojsonFeatures = _dereq_('../../lib/topojson_utils').getTopojsonFeatures;\nvar findExtremes = _dereq_('../../plots/cartesian/autorange').findExtremes;\n\nvar style = _dereq_('./style').style;\n\nfunction plot(gd, geo, calcData) {\n var choroplethLayer = geo.layers.backplot.select('.choroplethlayer');\n\n Lib.makeTraceGroups(choroplethLayer, calcData, 'trace choropleth').each(function(calcTrace) {\n var sel = d3.select(this);\n\n var paths = sel.selectAll('path.choroplethlocation')\n .data(Lib.identity);\n\n paths.enter().append('path')\n .classed('choroplethlocation', true);\n\n paths.exit().remove();\n\n // call style here within topojson request callback\n style(gd, calcTrace);\n });\n}\n\nfunction calcGeoJSON(calcTrace, fullLayout) {\n var trace = calcTrace[0].trace;\n var geoLayout = fullLayout[trace.geo];\n var geo = geoLayout._subplot;\n var locationmode = trace.locationmode;\n var len = trace._length;\n\n var features = locationmode === 'geojson-id' ?\n geoUtils.extractTraceFeature(calcTrace) :\n getTopojsonFeatures(trace, geo.topojson);\n\n var lonArray = [];\n var latArray = [];\n\n for(var i = 0; i < len; i++) {\n var calcPt = calcTrace[i];\n var feature = locationmode === 'geojson-id' ?\n calcPt.fOut :\n geoUtils.locationToFeature(locationmode, calcPt.loc, features);\n\n if(feature) {\n calcPt.geojson = feature;\n calcPt.ct = feature.properties.ct;\n calcPt._polygons = geoUtils.feature2polygons(feature);\n\n var bboxFeature = geoUtils.computeBbox(feature);\n lonArray.push(bboxFeature[0], bboxFeature[2]);\n latArray.push(bboxFeature[1], bboxFeature[3]);\n } else {\n calcPt.geojson = null;\n }\n }\n\n if(geoLayout.fitbounds === 'geojson' && locationmode === 'geojson-id') {\n var bboxGeojson = geoUtils.computeBbox(geoUtils.getTraceGeojson(trace));\n lonArray = [bboxGeojson[0], bboxGeojson[2]];\n latArray = [bboxGeojson[1], bboxGeojson[3]];\n }\n\n var opts = {padded: true};\n trace._extremes.lon = findExtremes(geoLayout.lonaxis._ax, lonArray, opts);\n trace._extremes.lat = findExtremes(geoLayout.lataxis._ax, latArray, opts);\n}\n\nmodule.exports = {\n calcGeoJSON: calcGeoJSON,\n plot: plot\n};\n\n},{\"../../lib\":503,\"../../lib/geo_location_utils\":496,\"../../lib/topojson_utils\":532,\"../../plots/cartesian/autorange\":553,\"./style\":724,\"@plotly/d3\":58}],723:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function selectPoints(searchInfo, selectionTester) {\n var cd = searchInfo.cd;\n var xa = searchInfo.xaxis;\n var ya = searchInfo.yaxis;\n var selection = [];\n\n var i, di, ct, x, y;\n\n if(selectionTester === false) {\n for(i = 0; i < cd.length; i++) {\n cd[i].selected = 0;\n }\n } else {\n for(i = 0; i < cd.length; i++) {\n di = cd[i];\n ct = di.ct;\n\n if(!ct) continue;\n\n x = xa.c2p(ct);\n y = ya.c2p(ct);\n\n if(selectionTester.contains([x, y], null, i, searchInfo)) {\n selection.push({\n pointNumber: i,\n lon: ct[0],\n lat: ct[1]\n });\n di.selected = 1;\n } else {\n di.selected = 0;\n }\n }\n }\n\n return selection;\n};\n\n},{}],724:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Color = _dereq_('../../components/color');\nvar Drawing = _dereq_('../../components/drawing');\nvar Colorscale = _dereq_('../../components/colorscale');\n\nfunction style(gd, calcTrace) {\n if(calcTrace) styleTrace(gd, calcTrace);\n}\n\nfunction styleTrace(gd, calcTrace) {\n var trace = calcTrace[0].trace;\n var s = calcTrace[0].node3;\n var locs = s.selectAll('.choroplethlocation');\n var marker = trace.marker || {};\n var markerLine = marker.line || {};\n\n var sclFunc = Colorscale.makeColorScaleFuncFromTrace(trace);\n\n locs.each(function(d) {\n d3.select(this)\n .attr('fill', sclFunc(d.z))\n .call(Color.stroke, d.mlc || markerLine.color)\n .call(Drawing.dashLine, '', d.mlw || markerLine.width || 0)\n .style('opacity', marker.opacity);\n });\n\n Drawing.selectedPointStyle(locs, trace, gd);\n}\n\nfunction styleOnSelect(gd, calcTrace) {\n var s = calcTrace[0].node3;\n var trace = calcTrace[0].trace;\n\n if(trace.selectedpoints) {\n Drawing.selectedPointStyle(s.selectAll('.choroplethlocation'), trace, gd);\n } else {\n styleTrace(gd, calcTrace);\n }\n}\n\nmodule.exports = {\n style: style,\n styleOnSelect: styleOnSelect\n};\n\n},{\"../../components/color\":366,\"../../components/colorscale\":378,\"../../components/drawing\":388,\"@plotly/d3\":58}],725:[function(_dereq_,module,exports){\n'use strict';\n\nvar choroplethAttrs = _dereq_('../choropleth/attributes');\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nmodule.exports = extendFlat({\n locations: {\n valType: 'data_array',\n editType: 'calc',\n },\n\n // TODO\n // Maybe start with only one value (that we could name e.g. 'geojson-id'),\n // but eventually:\n // - we could also support for our own dist/topojson/*\n // .. and locationmode: choroplethAttrs.locationmode,\n\n z: {\n valType: 'data_array',\n editType: 'calc',\n },\n\n // TODO maybe we could also set a \"key\" to dig out values out of the\n // GeoJSON feature `properties` fields?\n\n geojson: {\n valType: 'any',\n editType: 'calc',\n },\n featureidkey: extendFlat({}, choroplethAttrs.featureidkey, {\n }),\n\n // TODO agree on name / behaviour\n //\n // 'below' is used currently for layout.mapbox.layers,\n // even though it's not very plotly-esque.\n //\n // Note also, that the mapbox-gl style don't all have the same layers,\n // see https://codepen.io/etpinard/pen/ydVMwM for full list\n below: {\n valType: 'string',\n editType: 'plot',\n },\n\n text: choroplethAttrs.text,\n hovertext: choroplethAttrs.hovertext,\n\n marker: {\n line: {\n color: extendFlat({}, choroplethAttrs.marker.line.color, {editType: 'plot'}),\n width: extendFlat({}, choroplethAttrs.marker.line.width, {editType: 'plot'}),\n editType: 'calc'\n },\n // TODO maybe having a dflt less than 1, together with `below:''` would be better?\n opacity: extendFlat({}, choroplethAttrs.marker.opacity, {editType: 'plot'}),\n editType: 'calc'\n },\n\n selected: {\n marker: {\n opacity: extendFlat({}, choroplethAttrs.selected.marker.opacity, {editType: 'plot'}),\n editType: 'plot'\n },\n editType: 'plot'\n },\n unselected: {\n marker: {\n opacity: extendFlat({}, choroplethAttrs.unselected.marker.opacity, {editType: 'plot'}),\n editType: 'plot'\n },\n editType: 'plot'\n },\n\n hoverinfo: choroplethAttrs.hoverinfo,\n hovertemplate: hovertemplateAttrs({}, {keys: ['properties']}),\n showlegend: extendFlat({}, baseAttrs.showlegend, {dflt: false})\n},\n\n colorScaleAttrs('', {\n cLetter: 'z',\n editTypeOverride: 'calc'\n })\n);\n\n},{\"../../components/colorscale/attributes\":373,\"../../lib/extend\":493,\"../../plots/attributes\":550,\"../../plots/template_attributes\":633,\"../choropleth/attributes\":716}],726:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Lib = _dereq_('../../lib');\nvar Colorscale = _dereq_('../../components/colorscale');\nvar Drawing = _dereq_('../../components/drawing');\n\nvar makeBlank = _dereq_('../../lib/geojson_utils').makeBlank;\nvar geoUtils = _dereq_('../../lib/geo_location_utils');\n\n/* N.B.\n *\n * We fetch the GeoJSON files \"ourselves\" (during\n * mapbox.prototype.fetchMapData) where they are stored in a global object\n * named `PlotlyGeoAssets` (same as for topojson files in `geo` subplots).\n *\n * Mapbox does allow using URLs as geojson sources, but does NOT allow filtering\n * features by feature `id` that are not numbers (more info in:\n * https://github.com/mapbox/mapbox-gl-js/issues/8088).\n */\n\nfunction convert(calcTrace) {\n var trace = calcTrace[0].trace;\n var isVisible = trace.visible === true && trace._length !== 0;\n\n var fill = {\n layout: {visibility: 'none'},\n paint: {}\n };\n\n var line = {\n layout: {visibility: 'none'},\n paint: {}\n };\n\n var opts = trace._opts = {\n fill: fill,\n line: line,\n geojson: makeBlank()\n };\n\n if(!isVisible) return opts;\n\n var features = geoUtils.extractTraceFeature(calcTrace);\n\n if(!features) return opts;\n\n var sclFunc = Colorscale.makeColorScaleFuncFromTrace(trace);\n var marker = trace.marker;\n var markerLine = marker.line || {};\n\n var opacityFn;\n if(Lib.isArrayOrTypedArray(marker.opacity)) {\n opacityFn = function(d) {\n var mo = d.mo;\n return isNumeric(mo) ? +Lib.constrain(mo, 0, 1) : 0;\n };\n }\n\n var lineColorFn;\n if(Lib.isArrayOrTypedArray(markerLine.color)) {\n lineColorFn = function(d) { return d.mlc; };\n }\n\n var lineWidthFn;\n if(Lib.isArrayOrTypedArray(markerLine.width)) {\n lineWidthFn = function(d) { return d.mlw; };\n }\n\n for(var i = 0; i < calcTrace.length; i++) {\n var cdi = calcTrace[i];\n var fOut = cdi.fOut;\n\n if(fOut) {\n var props = fOut.properties;\n props.fc = sclFunc(cdi.z);\n if(opacityFn) props.mo = opacityFn(cdi);\n if(lineColorFn) props.mlc = lineColorFn(cdi);\n if(lineWidthFn) props.mlw = lineWidthFn(cdi);\n cdi.ct = props.ct;\n cdi._polygons = geoUtils.feature2polygons(fOut);\n }\n }\n\n var opacitySetting = opacityFn ?\n {type: 'identity', property: 'mo'} :\n marker.opacity;\n\n Lib.extendFlat(fill.paint, {\n 'fill-color': {type: 'identity', property: 'fc'},\n 'fill-opacity': opacitySetting\n });\n\n Lib.extendFlat(line.paint, {\n 'line-color': lineColorFn ?\n {type: 'identity', property: 'mlc'} :\n markerLine.color,\n 'line-width': lineWidthFn ?\n {type: 'identity', property: 'mlw'} :\n markerLine.width,\n 'line-opacity': opacitySetting\n });\n\n fill.layout.visibility = 'visible';\n line.layout.visibility = 'visible';\n\n opts.geojson = {type: 'FeatureCollection', features: features};\n\n convertOnSelect(calcTrace);\n\n return opts;\n}\n\nfunction convertOnSelect(calcTrace) {\n var trace = calcTrace[0].trace;\n var opts = trace._opts;\n var opacitySetting;\n\n if(trace.selectedpoints) {\n var fns = Drawing.makeSelectedPointStyleFns(trace);\n\n for(var i = 0; i < calcTrace.length; i++) {\n var cdi = calcTrace[i];\n if(cdi.fOut) {\n cdi.fOut.properties.mo2 = fns.selectedOpacityFn(cdi);\n }\n }\n\n opacitySetting = {type: 'identity', property: 'mo2'};\n } else {\n opacitySetting = Lib.isArrayOrTypedArray(trace.marker.opacity) ?\n {type: 'identity', property: 'mo'} :\n trace.marker.opacity;\n }\n\n Lib.extendFlat(opts.fill.paint, {'fill-opacity': opacitySetting});\n Lib.extendFlat(opts.line.paint, {'line-opacity': opacitySetting});\n\n return opts;\n}\n\nmodule.exports = {\n convert: convert,\n convertOnSelect: convertOnSelect\n};\n\n},{\"../../components/colorscale\":378,\"../../components/drawing\":388,\"../../lib\":503,\"../../lib/geo_location_utils\":496,\"../../lib/geojson_utils\":497,\"fast-isnumeric\":190}],727:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar colorscaleDefaults = _dereq_('../../components/colorscale/defaults');\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var locations = coerce('locations');\n var z = coerce('z');\n var geojson = coerce('geojson');\n\n if(!Lib.isArrayOrTypedArray(locations) || !locations.length ||\n !Lib.isArrayOrTypedArray(z) || !z.length ||\n !((typeof geojson === 'string' && geojson !== '') || Lib.isPlainObject(geojson))\n ) {\n traceOut.visible = false;\n return;\n }\n\n coerce('featureidkey');\n\n traceOut._length = Math.min(locations.length, z.length);\n\n coerce('below');\n\n coerce('text');\n coerce('hovertext');\n coerce('hovertemplate');\n\n var mlw = coerce('marker.line.width');\n if(mlw) coerce('marker.line.color');\n coerce('marker.opacity');\n\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: '', cLetter: 'z'});\n\n Lib.coerceSelectionMarkerOpacity(traceOut, coerce);\n};\n\n},{\"../../components/colorscale/defaults\":376,\"../../lib\":503,\"./attributes\":725}],728:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n colorbar: _dereq_('../heatmap/colorbar'),\n calc: _dereq_('../choropleth/calc'),\n plot: _dereq_('./plot'),\n hoverPoints: _dereq_('../choropleth/hover'),\n eventData: _dereq_('../choropleth/event_data'),\n selectPoints: _dereq_('../choropleth/select'),\n\n styleOnSelect: function(_, cd) {\n if(cd) {\n var trace = cd[0].trace;\n trace._glTrace.updateOnSelect(cd);\n }\n },\n\n getBelow: function(trace, subplot) {\n var mapLayers = subplot.getMapLayers();\n\n // find layer just above top-most \"water\" layer\n // that is not a plotly layer\n for(var i = mapLayers.length - 2; i >= 0; i--) {\n var layerId = mapLayers[i].id;\n\n if(typeof layerId === 'string' &&\n layerId.indexOf('water') === 0\n ) {\n for(var j = i + 1; j < mapLayers.length; j++) {\n layerId = mapLayers[j].id;\n\n if(typeof layerId === 'string' &&\n layerId.indexOf('plotly-') === -1\n ) {\n return layerId;\n }\n }\n }\n }\n },\n\n moduleType: 'trace',\n name: 'choroplethmapbox',\n basePlotModule: _dereq_('../../plots/mapbox'),\n categories: ['mapbox', 'gl', 'noOpacity', 'showLegend'],\n meta: {\n hr_name: 'choropleth_mapbox',\n }\n};\n\n},{\"../../plots/mapbox\":613,\"../choropleth/calc\":717,\"../choropleth/event_data\":719,\"../choropleth/hover\":720,\"../choropleth/select\":723,\"../heatmap/colorbar\":795,\"./attributes\":725,\"./defaults\":727,\"./plot\":729}],729:[function(_dereq_,module,exports){\n'use strict';\n\nvar convert = _dereq_('./convert').convert;\nvar convertOnSelect = _dereq_('./convert').convertOnSelect;\nvar LAYER_PREFIX = _dereq_('../../plots/mapbox/constants').traceLayerPrefix;\n\nfunction ChoroplethMapbox(subplot, uid) {\n this.type = 'choroplethmapbox';\n this.subplot = subplot;\n this.uid = uid;\n\n // N.B. fill and line layers share same source\n this.sourceId = 'source-' + uid;\n\n this.layerList = [\n ['fill', LAYER_PREFIX + uid + '-fill'],\n ['line', LAYER_PREFIX + uid + '-line']\n ];\n\n // previous 'below' value,\n // need this to update it properly\n this.below = null;\n}\n\nvar proto = ChoroplethMapbox.prototype;\n\nproto.update = function(calcTrace) {\n this._update(convert(calcTrace));\n};\n\nproto.updateOnSelect = function(calcTrace) {\n this._update(convertOnSelect(calcTrace));\n};\n\nproto._update = function(optsAll) {\n var subplot = this.subplot;\n var layerList = this.layerList;\n var below = subplot.belowLookup['trace-' + this.uid];\n\n subplot.map\n .getSource(this.sourceId)\n .setData(optsAll.geojson);\n\n if(below !== this.below) {\n this._removeLayers();\n this._addLayers(optsAll, below);\n this.below = below;\n }\n\n for(var i = 0; i < layerList.length; i++) {\n var item = layerList[i];\n var k = item[0];\n var id = item[1];\n var opts = optsAll[k];\n\n subplot.setOptions(id, 'setLayoutProperty', opts.layout);\n\n if(opts.layout.visibility === 'visible') {\n subplot.setOptions(id, 'setPaintProperty', opts.paint);\n }\n }\n};\n\nproto._addLayers = function(optsAll, below) {\n var subplot = this.subplot;\n var layerList = this.layerList;\n var sourceId = this.sourceId;\n\n for(var i = 0; i < layerList.length; i++) {\n var item = layerList[i];\n var k = item[0];\n var opts = optsAll[k];\n\n subplot.addLayer({\n type: k,\n id: item[1],\n source: sourceId,\n layout: opts.layout,\n paint: opts.paint\n }, below);\n }\n};\n\nproto._removeLayers = function() {\n var map = this.subplot.map;\n var layerList = this.layerList;\n\n for(var i = layerList.length - 1; i >= 0; i--) {\n map.removeLayer(layerList[i][1]);\n }\n};\n\nproto.dispose = function() {\n var map = this.subplot.map;\n this._removeLayers();\n map.removeSource(this.sourceId);\n};\n\nmodule.exports = function createChoroplethMapbox(subplot, calcTrace) {\n var trace = calcTrace[0].trace;\n var choroplethMapbox = new ChoroplethMapbox(subplot, trace.uid);\n var sourceId = choroplethMapbox.sourceId;\n var optsAll = convert(calcTrace);\n var below = choroplethMapbox.below = subplot.belowLookup['trace-' + trace.uid];\n\n subplot.map.addSource(sourceId, {\n type: 'geojson',\n data: optsAll.geojson\n });\n\n choroplethMapbox._addLayers(optsAll, below);\n\n // link ref for quick update during selections\n calcTrace[0].trace._glTrace = choroplethMapbox;\n\n return choroplethMapbox;\n};\n\n},{\"../../plots/mapbox/constants\":611,\"./convert\":726}],730:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar mesh3dAttrs = _dereq_('../mesh3d/attributes');\nvar baseAttrs = _dereq_('../../plots/attributes');\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nvar attrs = {\n x: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n y: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n z: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n\n u: {\n valType: 'data_array',\n editType: 'calc',\n },\n v: {\n valType: 'data_array',\n editType: 'calc',\n },\n w: {\n valType: 'data_array',\n editType: 'calc',\n },\n\n // TODO add way to specify cone positions independently of the vector field\n // provided, similar to MATLAB's coneplot Cx/Cy/Cz meshgrids,\n // see https://www.mathworks.com/help/matlab/ref/coneplot.html\n //\n // Alternatively, if our goal is only to 'fill in gaps' in the vector data,\n // we could try to extend the heatmap 'connectgaps' algorithm to 3D.\n // From AJ: this particular algorithm which amounts to a Poisson equation,\n // both for interpolation and extrapolation - is the right one to use for\n // cones too. It makes a field with zero divergence, which is a good\n // baseline assumption for vector fields.\n //\n // cones: {\n // // potential attributes to add:\n // //\n // // - meshmode: 'cartesian-product', 'pts', 'grid'\n // //\n // // under `meshmode: 'grid'`\n // // - (x|y|z)grid.start\n // // - (x|y|z)grid.end\n // // - (x|y|z)grid.size\n //\n // x: {\n // valType: 'data_array',\n // editType: 'calc',\n //\n // },\n // y: {\n // valType: 'data_array',\n // editType: 'calc',\n //\n // },\n // z: {\n // valType: 'data_array',\n // editType: 'calc',\n //\n // },\n //\n // editType: 'calc',\n //\n // },\n\n sizemode: {\n valType: 'enumerated',\n values: ['scaled', 'absolute'],\n editType: 'calc',\n dflt: 'scaled',\n },\n sizeref: {\n valType: 'number',\n editType: 'calc',\n min: 0,\n },\n\n anchor: {\n valType: 'enumerated',\n editType: 'calc',\n values: ['tip', 'tail', 'cm', 'center'],\n dflt: 'cm',\n },\n\n text: {\n valType: 'string',\n dflt: '',\n arrayOk: true,\n editType: 'calc',\n },\n hovertext: {\n valType: 'string',\n dflt: '',\n arrayOk: true,\n editType: 'calc',\n },\n\n hovertemplate: hovertemplateAttrs({editType: 'calc'}, {keys: ['norm']}),\n uhoverformat: axisHoverFormat('u', 1),\n vhoverformat: axisHoverFormat('v', 1),\n whoverformat: axisHoverFormat('w', 1),\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n zhoverformat: axisHoverFormat('z'),\n\n showlegend: extendFlat({}, baseAttrs.showlegend, {dflt: false})\n};\n\nextendFlat(attrs, colorScaleAttrs('', {\n colorAttr: 'u/v/w norm',\n showScaleDflt: true,\n editTypeOverride: 'calc'\n}));\n\nvar fromMesh3d = ['opacity', 'lightposition', 'lighting'];\n\nfromMesh3d.forEach(function(k) {\n attrs[k] = mesh3dAttrs[k];\n});\n\nattrs.hoverinfo = extendFlat({}, baseAttrs.hoverinfo, {\n editType: 'calc',\n flags: ['x', 'y', 'z', 'u', 'v', 'w', 'norm', 'text', 'name'],\n dflt: 'x+y+z+norm+text+name'\n});\n\nattrs.transforms = undefined;\n\nmodule.exports = attrs;\n\n},{\"../../components/colorscale/attributes\":373,\"../../lib/extend\":493,\"../../plots/attributes\":550,\"../../plots/cartesian/axis_format_attributes\":557,\"../../plots/template_attributes\":633,\"../mesh3d/attributes\":866}],731:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorscaleCalc = _dereq_('../../components/colorscale/calc');\n\nmodule.exports = function calc(gd, trace) {\n var u = trace.u;\n var v = trace.v;\n var w = trace.w;\n var len = Math.min(\n trace.x.length, trace.y.length, trace.z.length,\n u.length, v.length, w.length\n );\n var normMax = -Infinity;\n var normMin = Infinity;\n\n for(var i = 0; i < len; i++) {\n var uu = u[i];\n var vv = v[i];\n var ww = w[i];\n var norm = Math.sqrt(uu * uu + vv * vv + ww * ww);\n\n normMax = Math.max(normMax, norm);\n normMin = Math.min(normMin, norm);\n }\n\n trace._len = len;\n trace._normMax = normMax;\n\n colorscaleCalc(gd, trace, {\n vals: [normMin, normMax],\n containerStr: '',\n cLetter: 'c'\n });\n};\n\n},{\"../../components/colorscale/calc\":374}],732:[function(_dereq_,module,exports){\n'use strict';\n\nvar conePlot = _dereq_('../../../stackgl_modules').gl_cone3d;\nvar createConeMesh = _dereq_('../../../stackgl_modules').gl_cone3d.createConeMesh;\n\nvar simpleMap = _dereq_('../../lib').simpleMap;\nvar parseColorScale = _dereq_('../../lib/gl_format_color').parseColorScale;\nvar extractOpts = _dereq_('../../components/colorscale').extractOpts;\nvar zip3 = _dereq_('../../plots/gl3d/zip3');\n\nfunction Cone(scene, uid) {\n this.scene = scene;\n this.uid = uid;\n this.mesh = null;\n this.data = null;\n}\n\nvar proto = Cone.prototype;\n\nproto.handlePick = function(selection) {\n if(selection.object === this.mesh) {\n var selectIndex = selection.index = selection.data.index;\n var xx = this.data.x[selectIndex];\n var yy = this.data.y[selectIndex];\n var zz = this.data.z[selectIndex];\n var uu = this.data.u[selectIndex];\n var vv = this.data.v[selectIndex];\n var ww = this.data.w[selectIndex];\n\n selection.traceCoordinate = [\n xx, yy, zz,\n uu, vv, ww,\n Math.sqrt(uu * uu + vv * vv + ww * ww)\n ];\n\n var text = this.data.hovertext || this.data.text;\n if(Array.isArray(text) && text[selectIndex] !== undefined) {\n selection.textLabel = text[selectIndex];\n } else if(text) {\n selection.textLabel = text;\n }\n\n return true;\n }\n};\n\nvar axisName2scaleIndex = {xaxis: 0, yaxis: 1, zaxis: 2};\nvar anchor2coneOffset = {tip: 1, tail: 0, cm: 0.25, center: 0.5};\nvar anchor2coneSpan = {tip: 1, tail: 1, cm: 0.75, center: 0.5};\n\nfunction convert(scene, trace) {\n var sceneLayout = scene.fullSceneLayout;\n var dataScale = scene.dataScale;\n var coneOpts = {};\n\n function toDataCoords(arr, axisName) {\n var ax = sceneLayout[axisName];\n var scale = dataScale[axisName2scaleIndex[axisName]];\n return simpleMap(arr, function(v) { return ax.d2l(v) * scale; });\n }\n\n coneOpts.vectors = zip3(\n toDataCoords(trace.u, 'xaxis'),\n toDataCoords(trace.v, 'yaxis'),\n toDataCoords(trace.w, 'zaxis'),\n trace._len\n );\n\n coneOpts.positions = zip3(\n toDataCoords(trace.x, 'xaxis'),\n toDataCoords(trace.y, 'yaxis'),\n toDataCoords(trace.z, 'zaxis'),\n trace._len\n );\n\n var cOpts = extractOpts(trace);\n coneOpts.colormap = parseColorScale(trace);\n coneOpts.vertexIntensityBounds = [cOpts.min / trace._normMax, cOpts.max / trace._normMax];\n coneOpts.coneOffset = anchor2coneOffset[trace.anchor];\n\n if(trace.sizemode === 'scaled') {\n // unitless sizeref\n coneOpts.coneSize = trace.sizeref || 0.5;\n } else {\n // sizeref here has unit of velocity\n coneOpts.coneSize = trace.sizeref && trace._normMax ?\n trace.sizeref / trace._normMax :\n 0.5;\n }\n\n var meshData = conePlot(coneOpts);\n\n // pass gl-mesh3d lighting attributes\n var lp = trace.lightposition;\n meshData.lightPosition = [lp.x, lp.y, lp.z];\n meshData.ambient = trace.lighting.ambient;\n meshData.diffuse = trace.lighting.diffuse;\n meshData.specular = trace.lighting.specular;\n meshData.roughness = trace.lighting.roughness;\n meshData.fresnel = trace.lighting.fresnel;\n meshData.opacity = trace.opacity;\n\n // stash autorange pad value\n trace._pad = anchor2coneSpan[trace.anchor] * meshData.vectorScale * meshData.coneScale * trace._normMax;\n\n return meshData;\n}\n\nproto.update = function(data) {\n this.data = data;\n\n var meshData = convert(this.scene, data);\n this.mesh.update(meshData);\n};\n\nproto.dispose = function() {\n this.scene.glplot.remove(this.mesh);\n this.mesh.dispose();\n};\n\nfunction createConeTrace(scene, data) {\n var gl = scene.glplot.gl;\n\n var meshData = convert(scene, data);\n var mesh = createConeMesh(gl, meshData);\n\n var cone = new Cone(scene, data.uid);\n cone.mesh = mesh;\n cone.data = data;\n mesh._trace = cone;\n\n scene.glplot.add(mesh);\n\n return cone;\n}\n\nmodule.exports = createConeTrace;\n\n},{\"../../../stackgl_modules\":1119,\"../../components/colorscale\":378,\"../../lib\":503,\"../../lib/gl_format_color\":499,\"../../plots/gl3d/zip3\":609}],733:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar colorscaleDefaults = _dereq_('../../components/colorscale/defaults');\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var u = coerce('u');\n var v = coerce('v');\n var w = coerce('w');\n\n var x = coerce('x');\n var y = coerce('y');\n var z = coerce('z');\n\n if(\n !u || !u.length || !v || !v.length || !w || !w.length ||\n !x || !x.length || !y || !y.length || !z || !z.length\n ) {\n traceOut.visible = false;\n return;\n }\n\n coerce('sizeref');\n coerce('sizemode');\n\n coerce('anchor');\n\n coerce('lighting.ambient');\n coerce('lighting.diffuse');\n coerce('lighting.specular');\n coerce('lighting.roughness');\n coerce('lighting.fresnel');\n coerce('lightposition.x');\n coerce('lightposition.y');\n coerce('lightposition.z');\n\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: '', cLetter: 'c'});\n\n coerce('text');\n coerce('hovertext');\n coerce('hovertemplate');\n coerce('uhoverformat');\n coerce('vhoverformat');\n coerce('whoverformat');\n coerce('xhoverformat');\n coerce('yhoverformat');\n coerce('zhoverformat');\n\n // disable 1D transforms (for now)\n traceOut._length = null;\n};\n\n},{\"../../components/colorscale/defaults\":376,\"../../lib\":503,\"./attributes\":730}],734:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'trace',\n name: 'cone',\n basePlotModule: _dereq_('../../plots/gl3d'),\n categories: ['gl3d', 'showLegend'],\n\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n colorbar: {\n min: 'cmin',\n max: 'cmax'\n },\n calc: _dereq_('./calc'),\n plot: _dereq_('./convert'),\n eventData: function(out, pt) {\n out.norm = pt.traceCoordinate[6];\n return out;\n },\n\n meta: {\n }\n};\n\n},{\"../../plots/gl3d\":598,\"./attributes\":730,\"./calc\":731,\"./convert\":732,\"./defaults\":733}],735:[function(_dereq_,module,exports){\n'use strict';\n\nvar heatmapAttrs = _dereq_('../heatmap/attributes');\nvar scatterAttrs = _dereq_('../scatter/attributes');\nvar axisFormat = _dereq_('../../plots/cartesian/axis_format_attributes');\nvar axisHoverFormat = axisFormat.axisHoverFormat;\nvar descriptionOnlyNumbers = axisFormat.descriptionOnlyNumbers;\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar dash = _dereq_('../../components/drawing/attributes').dash;\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nvar filterOps = _dereq_('../../constants/filter_ops');\nvar COMPARISON_OPS2 = filterOps.COMPARISON_OPS2;\nvar INTERVAL_OPS = filterOps.INTERVAL_OPS;\n\n\nvar scatterLineAttrs = scatterAttrs.line;\n\nmodule.exports = extendFlat({\n z: heatmapAttrs.z,\n x: heatmapAttrs.x,\n x0: heatmapAttrs.x0,\n dx: heatmapAttrs.dx,\n y: heatmapAttrs.y,\n y0: heatmapAttrs.y0,\n dy: heatmapAttrs.dy,\n\n xperiod: heatmapAttrs.xperiod,\n yperiod: heatmapAttrs.yperiod,\n xperiod0: scatterAttrs.xperiod0,\n yperiod0: scatterAttrs.yperiod0,\n xperiodalignment: heatmapAttrs.xperiodalignment,\n yperiodalignment: heatmapAttrs.yperiodalignment,\n\n text: heatmapAttrs.text,\n hovertext: heatmapAttrs.hovertext,\n transpose: heatmapAttrs.transpose,\n xtype: heatmapAttrs.xtype,\n ytype: heatmapAttrs.ytype,\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n zhoverformat: axisHoverFormat('z', 1),\n hovertemplate: heatmapAttrs.hovertemplate,\n hoverongaps: heatmapAttrs.hoverongaps,\n connectgaps: extendFlat({}, heatmapAttrs.connectgaps, {\n }),\n\n fillcolor: {\n valType: 'color',\n editType: 'calc',\n },\n\n autocontour: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n impliedEdits: {\n 'contours.start': undefined,\n 'contours.end': undefined,\n 'contours.size': undefined\n },\n },\n ncontours: {\n valType: 'integer',\n dflt: 15,\n min: 1,\n editType: 'calc',\n },\n\n contours: {\n type: {\n valType: 'enumerated',\n values: ['levels', 'constraint'],\n dflt: 'levels',\n editType: 'calc',\n },\n start: {\n valType: 'number',\n dflt: null,\n editType: 'plot',\n impliedEdits: {'^autocontour': false},\n },\n end: {\n valType: 'number',\n dflt: null,\n editType: 'plot',\n impliedEdits: {'^autocontour': false},\n },\n size: {\n valType: 'number',\n dflt: null,\n min: 0,\n editType: 'plot',\n impliedEdits: {'^autocontour': false},\n },\n coloring: {\n valType: 'enumerated',\n values: ['fill', 'heatmap', 'lines', 'none'],\n dflt: 'fill',\n editType: 'calc',\n },\n showlines: {\n valType: 'boolean',\n dflt: true,\n editType: 'plot',\n },\n showlabels: {\n valType: 'boolean',\n dflt: false,\n editType: 'plot',\n },\n labelfont: fontAttrs({\n editType: 'plot',\n colorEditType: 'style',\n }),\n labelformat: {\n valType: 'string',\n dflt: '',\n editType: 'plot',\n description: descriptionOnlyNumbers('contour label')\n },\n operation: {\n valType: 'enumerated',\n values: [].concat(COMPARISON_OPS2).concat(INTERVAL_OPS),\n dflt: '=',\n editType: 'calc',\n },\n value: {\n valType: 'any',\n dflt: 0,\n editType: 'calc',\n },\n editType: 'calc',\n impliedEdits: {'autocontour': false}\n },\n\n line: {\n color: extendFlat({}, scatterLineAttrs.color, {\n editType: 'style+colorbars',\n }),\n width: {\n valType: 'number',\n min: 0,\n editType: 'style+colorbars',\n },\n dash: dash,\n smoothing: extendFlat({}, scatterLineAttrs.smoothing, {\n }),\n editType: 'plot'\n }\n},\n colorScaleAttrs('', {\n cLetter: 'z',\n autoColorDflt: false,\n editTypeOverride: 'calc'\n })\n);\n\n},{\"../../components/colorscale/attributes\":373,\"../../components/drawing/attributes\":387,\"../../constants/filter_ops\":475,\"../../lib/extend\":493,\"../../plots/cartesian/axis_format_attributes\":557,\"../../plots/font_attributes\":585,\"../heatmap/attributes\":792,\"../scatter/attributes\":925}],736:[function(_dereq_,module,exports){\n'use strict';\n\nvar Colorscale = _dereq_('../../components/colorscale');\n\nvar heatmapCalc = _dereq_('../heatmap/calc');\nvar setContours = _dereq_('./set_contours');\nvar endPlus = _dereq_('./end_plus');\n\n// most is the same as heatmap calc, then adjust it\n// though a few things inside heatmap calc still look for\n// contour maps, because the makeBoundArray calls are too entangled\nmodule.exports = function calc(gd, trace) {\n var cd = heatmapCalc(gd, trace);\n\n var zOut = cd[0].z;\n setContours(trace, zOut);\n\n var contours = trace.contours;\n var cOpts = Colorscale.extractOpts(trace);\n var cVals;\n\n if(contours.coloring === 'heatmap' && cOpts.auto && trace.autocontour === false) {\n var start = contours.start;\n var end = endPlus(contours);\n var cs = contours.size || 1;\n var nc = Math.floor((end - start) / cs) + 1;\n\n if(!isFinite(cs)) {\n cs = 1;\n nc = 1;\n }\n\n var min0 = start - cs / 2;\n var max0 = min0 + nc * cs;\n cVals = [min0, max0];\n } else {\n cVals = zOut;\n }\n\n Colorscale.calc(gd, trace, {vals: cVals, cLetter: 'z'});\n\n return cd;\n};\n\n},{\"../../components/colorscale\":378,\"../heatmap/calc\":793,\"./end_plus\":746,\"./set_contours\":754}],737:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function(pathinfo, contours) {\n var pi0 = pathinfo[0];\n var z = pi0.z;\n var i;\n\n switch(contours.type) {\n case 'levels':\n // Why (just) use z[0][0] and z[0][1]?\n //\n // N.B. using boundaryMin instead of edgeVal2 here makes the\n // `contour_scatter` mock fail\n var edgeVal2 = Math.min(z[0][0], z[0][1]);\n\n for(i = 0; i < pathinfo.length; i++) {\n var pi = pathinfo[i];\n pi.prefixBoundary = !pi.edgepaths.length &&\n (edgeVal2 > pi.level || pi.starts.length && edgeVal2 === pi.level);\n }\n break;\n case 'constraint':\n // after convertToConstraints, pathinfo has length=0\n pi0.prefixBoundary = false;\n\n // joinAllPaths does enough already when edgepaths are present\n if(pi0.edgepaths.length) return;\n\n var na = pi0.x.length;\n var nb = pi0.y.length;\n var boundaryMax = -Infinity;\n var boundaryMin = Infinity;\n\n for(i = 0; i < nb; i++) {\n boundaryMin = Math.min(boundaryMin, z[i][0]);\n boundaryMin = Math.min(boundaryMin, z[i][na - 1]);\n boundaryMax = Math.max(boundaryMax, z[i][0]);\n boundaryMax = Math.max(boundaryMax, z[i][na - 1]);\n }\n for(i = 1; i < na - 1; i++) {\n boundaryMin = Math.min(boundaryMin, z[0][i]);\n boundaryMin = Math.min(boundaryMin, z[nb - 1][i]);\n boundaryMax = Math.max(boundaryMax, z[0][i]);\n boundaryMax = Math.max(boundaryMax, z[nb - 1][i]);\n }\n\n var contoursValue = contours.value;\n var v1, v2;\n\n switch(contours._operation) {\n case '>':\n if(contoursValue > boundaryMax) {\n pi0.prefixBoundary = true;\n }\n break;\n case '<':\n if(contoursValue < boundaryMin ||\n (pi0.starts.length && contoursValue === boundaryMin)) {\n pi0.prefixBoundary = true;\n }\n break;\n case '[]':\n v1 = Math.min(contoursValue[0], contoursValue[1]);\n v2 = Math.max(contoursValue[0], contoursValue[1]);\n if(v2 < boundaryMin || v1 > boundaryMax ||\n (pi0.starts.length && v2 === boundaryMin)) {\n pi0.prefixBoundary = true;\n }\n break;\n case '][':\n v1 = Math.min(contoursValue[0], contoursValue[1]);\n v2 = Math.max(contoursValue[0], contoursValue[1]);\n if(v1 < boundaryMin && v2 > boundaryMax) {\n pi0.prefixBoundary = true;\n }\n break;\n }\n break;\n }\n};\n\n},{}],738:[function(_dereq_,module,exports){\n'use strict';\n\nvar Colorscale = _dereq_('../../components/colorscale');\nvar makeColorMap = _dereq_('./make_color_map');\nvar endPlus = _dereq_('./end_plus');\n\nfunction calc(gd, trace, opts) {\n var contours = trace.contours;\n var line = trace.line;\n var cs = contours.size || 1;\n var coloring = contours.coloring;\n var colorMap = makeColorMap(trace, {isColorbar: true});\n\n if(coloring === 'heatmap') {\n var cOpts = Colorscale.extractOpts(trace);\n opts._fillgradient = cOpts.reversescale ?\n Colorscale.flipScale(cOpts.colorscale) :\n cOpts.colorscale;\n opts._zrange = [cOpts.min, cOpts.max];\n } else if(coloring === 'fill') {\n opts._fillcolor = colorMap;\n }\n\n opts._line = {\n color: coloring === 'lines' ? colorMap : line.color,\n width: contours.showlines !== false ? line.width : 0,\n dash: line.dash\n };\n\n opts._levels = {\n start: contours.start,\n end: endPlus(contours),\n size: cs\n };\n}\n\nmodule.exports = {\n min: 'zmin',\n max: 'zmax',\n calc: calc\n};\n\n},{\"../../components/colorscale\":378,\"./end_plus\":746,\"./make_color_map\":751}],739:[function(_dereq_,module,exports){\n'use strict';\nmodule.exports = {\n // some constants to help with marching squares algorithm\n // where does the path start for each index?\n BOTTOMSTART: [1, 9, 13, 104, 713],\n TOPSTART: [4, 6, 7, 104, 713],\n LEFTSTART: [8, 12, 14, 208, 1114],\n RIGHTSTART: [2, 3, 11, 208, 1114],\n\n // which way [dx,dy] do we leave a given index?\n // saddles are already disambiguated\n NEWDELTA: [\n null, [-1, 0], [0, -1], [-1, 0],\n [1, 0], null, [0, -1], [-1, 0],\n [0, 1], [0, 1], null, [0, 1],\n [1, 0], [1, 0], [0, -1]\n ],\n\n // for each saddle, the first index here is used\n // for dx||dy<0, the second for dx||dy>0\n CHOOSESADDLE: {\n 104: [4, 1],\n 208: [2, 8],\n 713: [7, 13],\n 1114: [11, 14]\n },\n\n // after one index has been used for a saddle, which do we\n // substitute to be used up later?\n SADDLEREMAINDER: {1: 4, 2: 8, 4: 1, 7: 13, 8: 2, 11: 14, 13: 7, 14: 11},\n\n // length of a contour, as a multiple of the plot area diagonal, per label\n LABELDISTANCE: 2,\n\n // number of contour levels after which we start increasing the number of\n // labels we draw. Many contours means they will generally be close\n // together, so it will be harder to follow a long way to find a label\n LABELINCREASE: 10,\n\n // minimum length of a contour line, as a multiple of the label length,\n // at which we draw *any* labels\n LABELMIN: 3,\n\n // max number of labels to draw on a single contour path, no matter how long\n LABELMAX: 10,\n\n // constants for the label position cost function\n LABELOPTIMIZER: {\n // weight given to edge proximity\n EDGECOST: 1,\n // weight given to the angle off horizontal\n ANGLECOST: 1,\n // weight given to distance from already-placed labels\n NEIGHBORCOST: 5,\n // cost multiplier for labels on the same level\n SAMELEVELFACTOR: 10,\n // minimum distance (as a multiple of the label length)\n // for labels on the same level\n SAMELEVELDISTANCE: 5,\n // maximum cost before we won't even place the label\n MAXCOST: 100,\n // number of evenly spaced points to look at in the first\n // iteration of the search\n INITIALSEARCHPOINTS: 10,\n // number of binary search iterations after the initial wide search\n ITERATIONS: 5\n }\n};\n\n},{}],740:[function(_dereq_,module,exports){\n'use strict';\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar handleLabelDefaults = _dereq_('./label_defaults');\n\nvar Color = _dereq_('../../components/color');\nvar addOpacity = Color.addOpacity;\nvar opacity = Color.opacity;\n\nvar filterOps = _dereq_('../../constants/filter_ops');\nvar CONSTRAINT_REDUCTION = filterOps.CONSTRAINT_REDUCTION;\nvar COMPARISON_OPS2 = filterOps.COMPARISON_OPS2;\n\nmodule.exports = function handleConstraintDefaults(traceIn, traceOut, coerce, layout, defaultColor, opts) {\n var contours = traceOut.contours;\n var showLines, lineColor, fillColor;\n\n var operation = coerce('contours.operation');\n contours._operation = CONSTRAINT_REDUCTION[operation];\n\n handleConstraintValueDefaults(coerce, contours);\n\n if(operation === '=') {\n showLines = contours.showlines = true;\n } else {\n showLines = coerce('contours.showlines');\n fillColor = coerce('fillcolor', addOpacity(\n (traceIn.line || {}).color || defaultColor, 0.5\n ));\n }\n\n if(showLines) {\n var lineDfltColor = fillColor && opacity(fillColor) ?\n addOpacity(traceOut.fillcolor, 1) :\n defaultColor;\n lineColor = coerce('line.color', lineDfltColor);\n coerce('line.width', 2);\n coerce('line.dash');\n }\n\n coerce('line.smoothing');\n\n handleLabelDefaults(coerce, layout, lineColor, opts);\n};\n\nfunction handleConstraintValueDefaults(coerce, contours) {\n var zvalue;\n\n if(COMPARISON_OPS2.indexOf(contours.operation) === -1) {\n // Requires an array of two numbers:\n coerce('contours.value', [0, 1]);\n\n if(!Array.isArray(contours.value)) {\n if(isNumeric(contours.value)) {\n zvalue = parseFloat(contours.value);\n contours.value = [zvalue, zvalue + 1];\n }\n } else if(contours.value.length > 2) {\n contours.value = contours.value.slice(2);\n } else if(contours.length === 0) {\n contours.value = [0, 1];\n } else if(contours.length < 2) {\n zvalue = parseFloat(contours.value[0]);\n contours.value = [zvalue, zvalue + 1];\n } else {\n contours.value = [\n parseFloat(contours.value[0]),\n parseFloat(contours.value[1])\n ];\n }\n } else {\n // Requires a single scalar:\n coerce('contours.value', 0);\n\n if(!isNumeric(contours.value)) {\n if(Array.isArray(contours.value)) {\n contours.value = parseFloat(contours.value[0]);\n } else {\n contours.value = 0;\n }\n }\n }\n}\n\n},{\"../../components/color\":366,\"../../constants/filter_ops\":475,\"./label_defaults\":750,\"fast-isnumeric\":190}],741:[function(_dereq_,module,exports){\n'use strict';\n\nvar filterOps = _dereq_('../../constants/filter_ops');\nvar isNumeric = _dereq_('fast-isnumeric');\n\n// This syntax conforms to the existing filter transform syntax, but we don't care\n// about open vs. closed intervals for simply drawing contours constraints:\nmodule.exports = {\n '[]': makeRangeSettings('[]'),\n '][': makeRangeSettings(']['),\n '>': makeInequalitySettings('>'),\n '<': makeInequalitySettings('<'),\n '=': makeInequalitySettings('=')\n};\n\n// This does not in any way shape or form support calendars. It's adapted from\n// transforms/filter.js.\nfunction coerceValue(operation, value) {\n var hasArrayValue = Array.isArray(value);\n\n var coercedValue;\n\n function coerce(value) {\n return isNumeric(value) ? (+value) : null;\n }\n\n if(filterOps.COMPARISON_OPS2.indexOf(operation) !== -1) {\n coercedValue = hasArrayValue ? coerce(value[0]) : coerce(value);\n } else if(filterOps.INTERVAL_OPS.indexOf(operation) !== -1) {\n coercedValue = hasArrayValue ?\n [coerce(value[0]), coerce(value[1])] :\n [coerce(value), coerce(value)];\n } else if(filterOps.SET_OPS.indexOf(operation) !== -1) {\n coercedValue = hasArrayValue ? value.map(coerce) : [coerce(value)];\n }\n\n return coercedValue;\n}\n\n// Returns a parabola scaled so that the min/max is either +/- 1 and zero at the two values\n// provided. The data is mapped by this function when constructing intervals so that it's\n// very easy to construct contours as normal.\nfunction makeRangeSettings(operation) {\n return function(value) {\n value = coerceValue(operation, value);\n\n // Ensure proper ordering:\n var min = Math.min(value[0], value[1]);\n var max = Math.max(value[0], value[1]);\n\n return {\n start: min,\n end: max,\n size: max - min\n };\n };\n}\n\nfunction makeInequalitySettings(operation) {\n return function(value) {\n value = coerceValue(operation, value);\n\n return {\n start: value,\n end: Infinity,\n size: Infinity\n };\n };\n}\n\n},{\"../../constants/filter_ops\":475,\"fast-isnumeric\":190}],742:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function handleContourDefaults(traceIn, traceOut, coerce, coerce2) {\n var contourStart = coerce2('contours.start');\n var contourEnd = coerce2('contours.end');\n var missingEnd = (contourStart === false) || (contourEnd === false);\n\n // normally we only need size if autocontour is off. But contour.calc\n // pushes its calculated contour size back to the input trace, so for\n // things like restyle that can call supplyDefaults without calc\n // after the initial draw, we can just reuse the previous calculation\n var contourSize = coerce('contours.size');\n var autoContour;\n\n if(missingEnd) autoContour = traceOut.autocontour = true;\n else autoContour = coerce('autocontour', false);\n\n if(autoContour || !contourSize) coerce('ncontours');\n};\n\n},{}],743:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\n// The contour extraction is great, except it totally fails for constraints because we\n// need weird range loops and flipped contours instead of the usual format. This function\n// does some weird manipulation of the extracted pathinfo data such that it magically\n// draws contours correctly *as* constraints.\n//\n// ** I do not know which \"weird range loops\" the comment above is referring to.\nmodule.exports = function(pathinfo, operation) {\n var i, pi0, pi1;\n\n var op0 = function(arr) { return arr.reverse(); };\n var op1 = function(arr) { return arr; };\n\n switch(operation) {\n case '=':\n case '<':\n return pathinfo;\n case '>':\n if(pathinfo.length !== 1) {\n Lib.warn('Contour data invalid for the specified inequality operation.');\n }\n\n // In this case there should be exactly one contour levels in pathinfo.\n // We flip all of the data. This will draw the contour as closed.\n pi0 = pathinfo[0];\n\n for(i = 0; i < pi0.edgepaths.length; i++) {\n pi0.edgepaths[i] = op0(pi0.edgepaths[i]);\n }\n for(i = 0; i < pi0.paths.length; i++) {\n pi0.paths[i] = op0(pi0.paths[i]);\n }\n for(i = 0; i < pi0.starts.length; i++) {\n pi0.starts[i] = op0(pi0.starts[i]);\n }\n\n return pathinfo;\n case '][':\n var tmp = op0;\n op0 = op1;\n op1 = tmp;\n // It's a nice rule, except this definitely *is* what's intended here.\n /* eslint-disable: no-fallthrough */\n case '[]':\n /* eslint-enable: no-fallthrough */\n if(pathinfo.length !== 2) {\n Lib.warn('Contour data invalid for the specified inequality range operation.');\n }\n\n // In this case there should be exactly two contour levels in pathinfo.\n // - We concatenate the info into one pathinfo.\n // - We must also flip all of the data in the `[]` case.\n // This will draw the contours as closed.\n pi0 = copyPathinfo(pathinfo[0]);\n pi1 = copyPathinfo(pathinfo[1]);\n\n for(i = 0; i < pi0.edgepaths.length; i++) {\n pi0.edgepaths[i] = op0(pi0.edgepaths[i]);\n }\n for(i = 0; i < pi0.paths.length; i++) {\n pi0.paths[i] = op0(pi0.paths[i]);\n }\n for(i = 0; i < pi0.starts.length; i++) {\n pi0.starts[i] = op0(pi0.starts[i]);\n }\n\n while(pi1.edgepaths.length) {\n pi0.edgepaths.push(op1(pi1.edgepaths.shift()));\n }\n while(pi1.paths.length) {\n pi0.paths.push(op1(pi1.paths.shift()));\n }\n while(pi1.starts.length) {\n pi0.starts.push(op1(pi1.starts.shift()));\n }\n\n return [pi0];\n }\n};\n\nfunction copyPathinfo(pi) {\n return Lib.extendFlat({}, pi, {\n edgepaths: Lib.extendDeep([], pi.edgepaths),\n paths: Lib.extendDeep([], pi.paths),\n starts: Lib.extendDeep([], pi.starts)\n });\n}\n\n},{\"../../lib\":503}],744:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar handleXYZDefaults = _dereq_('../heatmap/xyz_defaults');\nvar handlePeriodDefaults = _dereq_('../scatter/period_defaults');\nvar handleConstraintDefaults = _dereq_('./constraint_defaults');\nvar handleContoursDefaults = _dereq_('./contours_defaults');\nvar handleStyleDefaults = _dereq_('./style_defaults');\nvar attributes = _dereq_('./attributes');\n\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n function coerce2(attr) {\n return Lib.coerce2(traceIn, traceOut, attributes, attr);\n }\n\n var len = handleXYZDefaults(traceIn, traceOut, coerce, layout);\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n handlePeriodDefaults(traceIn, traceOut, layout, coerce);\n coerce('xhoverformat');\n coerce('yhoverformat');\n\n coerce('text');\n coerce('hovertext');\n coerce('hovertemplate');\n coerce('hoverongaps');\n\n var isConstraint = (coerce('contours.type') === 'constraint');\n coerce('connectgaps', Lib.isArray1D(traceOut.z));\n\n if(isConstraint) {\n handleConstraintDefaults(traceIn, traceOut, coerce, layout, defaultColor);\n } else {\n handleContoursDefaults(traceIn, traceOut, coerce, coerce2);\n handleStyleDefaults(traceIn, traceOut, coerce, layout);\n }\n};\n\n},{\"../../lib\":503,\"../heatmap/xyz_defaults\":806,\"../scatter/period_defaults\":945,\"./attributes\":735,\"./constraint_defaults\":740,\"./contours_defaults\":742,\"./style_defaults\":756}],745:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar constraintMapping = _dereq_('./constraint_mapping');\nvar endPlus = _dereq_('./end_plus');\n\nmodule.exports = function emptyPathinfo(contours, plotinfo, cd0) {\n var contoursFinal = (contours.type === 'constraint') ?\n constraintMapping[contours._operation](contours.value) :\n contours;\n\n var cs = contoursFinal.size;\n var pathinfo = [];\n var end = endPlus(contoursFinal);\n\n var carpet = cd0.trace._carpetTrace;\n\n var basePathinfo = carpet ? {\n // store axes so we can convert to px\n xaxis: carpet.aaxis,\n yaxis: carpet.baxis,\n // full data arrays to use for interpolation\n x: cd0.a,\n y: cd0.b\n } : {\n xaxis: plotinfo.xaxis,\n yaxis: plotinfo.yaxis,\n x: cd0.x,\n y: cd0.y\n };\n\n for(var ci = contoursFinal.start; ci < end; ci += cs) {\n pathinfo.push(Lib.extendFlat({\n level: ci,\n // all the cells with nontrivial marching index\n crossings: {},\n // starting points on the edges of the lattice for each contour\n starts: [],\n // all unclosed paths (may have less items than starts,\n // if a path is closed by rounding)\n edgepaths: [],\n // all closed paths\n paths: [],\n z: cd0.z,\n smoothing: cd0.trace.line.smoothing\n }, basePathinfo));\n\n if(pathinfo.length > 1000) {\n Lib.warn('Too many contours, clipping at 1000', contours);\n break;\n }\n }\n return pathinfo;\n};\n\n},{\"../../lib\":503,\"./constraint_mapping\":741,\"./end_plus\":746}],746:[function(_dereq_,module,exports){\n'use strict';\n\n/*\n * tiny helper to move the end of the contours a little to prevent\n * losing the last contour to rounding errors\n */\nmodule.exports = function endPlus(contours) {\n return contours.end + contours.size / 1e6;\n};\n\n},{}],747:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar constants = _dereq_('./constants');\n\nmodule.exports = function findAllPaths(pathinfo, xtol, ytol) {\n var cnt,\n startLoc,\n i,\n pi,\n j;\n\n // Default just passes these values through as they were before:\n xtol = xtol || 0.01;\n ytol = ytol || 0.01;\n\n for(i = 0; i < pathinfo.length; i++) {\n pi = pathinfo[i];\n\n for(j = 0; j < pi.starts.length; j++) {\n startLoc = pi.starts[j];\n makePath(pi, startLoc, 'edge', xtol, ytol);\n }\n\n cnt = 0;\n while(Object.keys(pi.crossings).length && cnt < 10000) {\n cnt++;\n startLoc = Object.keys(pi.crossings)[0].split(',').map(Number);\n makePath(pi, startLoc, undefined, xtol, ytol);\n }\n if(cnt === 10000) Lib.log('Infinite loop in contour?');\n }\n};\n\nfunction equalPts(pt1, pt2, xtol, ytol) {\n return Math.abs(pt1[0] - pt2[0]) < xtol &&\n Math.abs(pt1[1] - pt2[1]) < ytol;\n}\n\n// distance in index units - uses the 3rd and 4th items in points\nfunction ptDist(pt1, pt2) {\n var dx = pt1[2] - pt2[2];\n var dy = pt1[3] - pt2[3];\n return Math.sqrt(dx * dx + dy * dy);\n}\n\nfunction makePath(pi, loc, edgeflag, xtol, ytol) {\n var locStr = loc.join(',');\n var mi = pi.crossings[locStr];\n var marchStep = getStartStep(mi, edgeflag, loc);\n // start by going backward a half step and finding the crossing point\n var pts = [getInterpPx(pi, loc, [-marchStep[0], -marchStep[1]])];\n var m = pi.z.length;\n var n = pi.z[0].length;\n var startLoc = loc.slice();\n var startStep = marchStep.slice();\n var cnt;\n\n // now follow the path\n for(cnt = 0; cnt < 10000; cnt++) { // just to avoid infinite loops\n if(mi > 20) {\n mi = constants.CHOOSESADDLE[mi][(marchStep[0] || marchStep[1]) < 0 ? 0 : 1];\n pi.crossings[locStr] = constants.SADDLEREMAINDER[mi];\n } else {\n delete pi.crossings[locStr];\n }\n\n marchStep = constants.NEWDELTA[mi];\n if(!marchStep) {\n Lib.log('Found bad marching index:', mi, loc, pi.level);\n break;\n }\n\n // find the crossing a half step forward, and then take the full step\n pts.push(getInterpPx(pi, loc, marchStep));\n loc[0] += marchStep[0];\n loc[1] += marchStep[1];\n locStr = loc.join(',');\n\n // don't include the same point multiple times\n if(equalPts(pts[pts.length - 1], pts[pts.length - 2], xtol, ytol)) pts.pop();\n\n var atEdge = (marchStep[0] && (loc[0] < 0 || loc[0] > n - 2)) ||\n (marchStep[1] && (loc[1] < 0 || loc[1] > m - 2));\n\n var closedLoop = loc[0] === startLoc[0] && loc[1] === startLoc[1] &&\n marchStep[0] === startStep[0] && marchStep[1] === startStep[1];\n\n // have we completed a loop, or reached an edge?\n if((closedLoop) || (edgeflag && atEdge)) break;\n\n mi = pi.crossings[locStr];\n }\n\n if(cnt === 10000) {\n Lib.log('Infinite loop in contour?');\n }\n var closedpath = equalPts(pts[0], pts[pts.length - 1], xtol, ytol);\n var totaldist = 0;\n var distThresholdFactor = 0.2 * pi.smoothing;\n var alldists = [];\n var cropstart = 0;\n var distgroup, cnt2, cnt3, newpt, ptcnt, ptavg, thisdist,\n i, j, edgepathi, edgepathj;\n\n /*\n * Check for points that are too close together (<1/5 the average dist\n * *in grid index units* (important for log axes and nonuniform grids),\n * less if less smoothed) and just take the center (or avg of center 2).\n * This cuts down on funny behavior when a point is very close to a\n * contour level.\n */\n for(cnt = 1; cnt < pts.length; cnt++) {\n thisdist = ptDist(pts[cnt], pts[cnt - 1]);\n totaldist += thisdist;\n alldists.push(thisdist);\n }\n\n var distThreshold = totaldist / alldists.length * distThresholdFactor;\n\n function getpt(i) { return pts[i % pts.length]; }\n\n for(cnt = pts.length - 2; cnt >= cropstart; cnt--) {\n distgroup = alldists[cnt];\n if(distgroup < distThreshold) {\n cnt3 = 0;\n for(cnt2 = cnt - 1; cnt2 >= cropstart; cnt2--) {\n if(distgroup + alldists[cnt2] < distThreshold) {\n distgroup += alldists[cnt2];\n } else break;\n }\n\n // closed path with close points wrapping around the boundary?\n if(closedpath && cnt === pts.length - 2) {\n for(cnt3 = 0; cnt3 < cnt2; cnt3++) {\n if(distgroup + alldists[cnt3] < distThreshold) {\n distgroup += alldists[cnt3];\n } else break;\n }\n }\n ptcnt = cnt - cnt2 + cnt3 + 1;\n ptavg = Math.floor((cnt + cnt2 + cnt3 + 2) / 2);\n\n // either endpoint included: keep the endpoint\n if(!closedpath && cnt === pts.length - 2) newpt = pts[pts.length - 1];\n else if(!closedpath && cnt2 === -1) newpt = pts[0];\n\n // odd # of points - just take the central one\n else if(ptcnt % 2) newpt = getpt(ptavg);\n\n // even # of pts - average central two\n else {\n newpt = [(getpt(ptavg)[0] + getpt(ptavg + 1)[0]) / 2,\n (getpt(ptavg)[1] + getpt(ptavg + 1)[1]) / 2];\n }\n\n pts.splice(cnt2 + 1, cnt - cnt2 + 1, newpt);\n cnt = cnt2 + 1;\n if(cnt3) cropstart = cnt3;\n if(closedpath) {\n if(cnt === pts.length - 2) pts[cnt3] = pts[pts.length - 1];\n else if(cnt === 0) pts[pts.length - 1] = pts[0];\n }\n }\n }\n pts.splice(0, cropstart);\n\n // done with the index parts - remove them so path generation works right\n // because it depends on only having [xpx, ypx]\n for(cnt = 0; cnt < pts.length; cnt++) pts[cnt].length = 2;\n\n // don't return single-point paths (ie all points were the same\n // so they got deleted?)\n if(pts.length < 2) return;\n else if(closedpath) {\n pts.pop();\n pi.paths.push(pts);\n } else {\n if(!edgeflag) {\n Lib.log('Unclosed interior contour?',\n pi.level, startLoc.join(','), pts.join('L'));\n }\n\n // edge path - does it start where an existing edge path ends, or vice versa?\n var merged = false;\n for(i = 0; i < pi.edgepaths.length; i++) {\n edgepathi = pi.edgepaths[i];\n if(!merged && equalPts(edgepathi[0], pts[pts.length - 1], xtol, ytol)) {\n pts.pop();\n merged = true;\n\n // now does it ALSO meet the end of another (or the same) path?\n var doublemerged = false;\n for(j = 0; j < pi.edgepaths.length; j++) {\n edgepathj = pi.edgepaths[j];\n if(equalPts(edgepathj[edgepathj.length - 1], pts[0], xtol, ytol)) {\n doublemerged = true;\n pts.shift();\n pi.edgepaths.splice(i, 1);\n if(j === i) {\n // the path is now closed\n pi.paths.push(pts.concat(edgepathj));\n } else {\n if(j > i) j--;\n pi.edgepaths[j] = edgepathj.concat(pts, edgepathi);\n }\n break;\n }\n }\n if(!doublemerged) {\n pi.edgepaths[i] = pts.concat(edgepathi);\n }\n }\n }\n for(i = 0; i < pi.edgepaths.length; i++) {\n if(merged) break;\n edgepathi = pi.edgepaths[i];\n if(equalPts(edgepathi[edgepathi.length - 1], pts[0], xtol, ytol)) {\n pts.shift();\n pi.edgepaths[i] = edgepathi.concat(pts);\n merged = true;\n }\n }\n\n if(!merged) pi.edgepaths.push(pts);\n }\n}\n\n// special function to get the marching step of the\n// first point in the path (leading to loc)\nfunction getStartStep(mi, edgeflag, loc) {\n var dx = 0;\n var dy = 0;\n if(mi > 20 && edgeflag) {\n // these saddles start at +/- x\n if(mi === 208 || mi === 1114) {\n // if we're starting at the left side, we must be going right\n dx = loc[0] === 0 ? 1 : -1;\n } else {\n // if we're starting at the bottom, we must be going up\n dy = loc[1] === 0 ? 1 : -1;\n }\n } else if(constants.BOTTOMSTART.indexOf(mi) !== -1) dy = 1;\n else if(constants.LEFTSTART.indexOf(mi) !== -1) dx = 1;\n else if(constants.TOPSTART.indexOf(mi) !== -1) dy = -1;\n else dx = -1;\n return [dx, dy];\n}\n\n/*\n * Find the pixel coordinates of a particular crossing\n *\n * @param {object} pi: the pathinfo object at this level\n * @param {array} loc: the grid index [x, y] of the crossing\n * @param {array} step: the direction [dx, dy] we're moving on the grid\n *\n * @return {array} [xpx, ypx, xi, yi]: the first two are the pixel location,\n * the next two are the interpolated grid indices, which we use for\n * distance calculations to delete points that are too close together.\n * This is important when the grid is nonuniform (and most dramatically when\n * we're on log axes and include invalid (0 or negative) values.\n * It's crucial to delete these extra two before turning an array of these\n * points into a path, because those routines require length-2 points.\n */\nfunction getInterpPx(pi, loc, step) {\n var locx = loc[0] + Math.max(step[0], 0);\n var locy = loc[1] + Math.max(step[1], 0);\n var zxy = pi.z[locy][locx];\n var xa = pi.xaxis;\n var ya = pi.yaxis;\n\n // Interpolate in linear space, then convert to pixel\n if(step[1]) {\n var dx = (pi.level - zxy) / (pi.z[locy][locx + 1] - zxy);\n // Interpolate, but protect against NaN linear values for log axis (dx will equal 1 or 0)\n var dxl =\n (dx !== 1 ? (1 - dx) * xa.c2l(pi.x[locx]) : 0) +\n (dx !== 0 ? dx * xa.c2l(pi.x[locx + 1]) : 0);\n\n return [xa.c2p(xa.l2c(dxl), true),\n ya.c2p(pi.y[locy], true),\n locx + dx, locy];\n } else {\n var dy = (pi.level - zxy) / (pi.z[locy + 1][locx] - zxy);\n var dyl =\n (dy !== 1 ? (1 - dy) * ya.c2l(pi.y[locy]) : 0) +\n (dy !== 0 ? dy * ya.c2l(pi.y[locy + 1]) : 0);\n\n return [xa.c2p(pi.x[locx], true),\n ya.c2p(ya.l2c(dyl), true),\n locx, locy + dy];\n }\n}\n\n},{\"../../lib\":503,\"./constants\":739}],748:[function(_dereq_,module,exports){\n'use strict';\n\nvar Color = _dereq_('../../components/color');\n\nvar heatmapHoverPoints = _dereq_('../heatmap/hover');\n\nmodule.exports = function hoverPoints(pointData, xval, yval, hovermode, opts) {\n if(!opts) opts = {};\n opts.isContour = true;\n\n var hoverData = heatmapHoverPoints(pointData, xval, yval, hovermode, opts);\n\n if(hoverData) {\n hoverData.forEach(function(hoverPt) {\n var trace = hoverPt.trace;\n if(trace.contours.type === 'constraint') {\n if(trace.fillcolor && Color.opacity(trace.fillcolor)) {\n hoverPt.color = Color.addOpacity(trace.fillcolor, 1);\n } else if(trace.contours.showlines && Color.opacity(trace.line.color)) {\n hoverPt.color = Color.addOpacity(trace.line.color, 1);\n }\n }\n });\n }\n\n return hoverData;\n};\n\n},{\"../../components/color\":366,\"../heatmap/hover\":799}],749:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n calc: _dereq_('./calc'),\n plot: _dereq_('./plot').plot,\n style: _dereq_('./style'),\n colorbar: _dereq_('./colorbar'),\n hoverPoints: _dereq_('./hover'),\n\n moduleType: 'trace',\n name: 'contour',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: ['cartesian', 'svg', '2dMap', 'contour', 'showLegend'],\n meta: {\n }\n};\n\n},{\"../../plots/cartesian\":568,\"./attributes\":735,\"./calc\":736,\"./colorbar\":738,\"./defaults\":744,\"./hover\":748,\"./plot\":753,\"./style\":755}],750:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nmodule.exports = function handleLabelDefaults(coerce, layout, lineColor, opts) {\n if(!opts) opts = {};\n var showLabels = coerce('contours.showlabels');\n if(showLabels) {\n var globalFont = layout.font;\n Lib.coerceFont(coerce, 'contours.labelfont', {\n family: globalFont.family,\n size: globalFont.size,\n color: lineColor\n });\n coerce('contours.labelformat');\n }\n\n if(opts.hasHover !== false) coerce('zhoverformat');\n};\n\n},{\"../../lib\":503}],751:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Colorscale = _dereq_('../../components/colorscale');\nvar endPlus = _dereq_('./end_plus');\n\nmodule.exports = function makeColorMap(trace) {\n var contours = trace.contours;\n var start = contours.start;\n var end = endPlus(contours);\n var cs = contours.size || 1;\n var nc = Math.floor((end - start) / cs) + 1;\n var extra = contours.coloring === 'lines' ? 0 : 1;\n var cOpts = Colorscale.extractOpts(trace);\n\n if(!isFinite(cs)) {\n cs = 1;\n nc = 1;\n }\n\n var scl = cOpts.reversescale ?\n Colorscale.flipScale(cOpts.colorscale) :\n cOpts.colorscale;\n\n var len = scl.length;\n var domain = new Array(len);\n var range = new Array(len);\n\n var si, i;\n\n if(contours.coloring === 'heatmap') {\n var zmin0 = cOpts.min;\n var zmax0 = cOpts.max;\n\n for(i = 0; i < len; i++) {\n si = scl[i];\n domain[i] = si[0] * (zmax0 - zmin0) + zmin0;\n range[i] = si[1];\n }\n\n // do the contours extend beyond the colorscale?\n // if so, extend the colorscale with constants\n var zRange = d3.extent([\n zmin0,\n zmax0,\n contours.start,\n contours.start + cs * (nc - 1)\n ]);\n var zmin = zRange[zmin0 < zmax0 ? 0 : 1];\n var zmax = zRange[zmin0 < zmax0 ? 1 : 0];\n\n if(zmin !== zmin0) {\n domain.splice(0, 0, zmin);\n range.splice(0, 0, range[0]);\n }\n\n if(zmax !== zmax0) {\n domain.push(zmax);\n range.push(range[range.length - 1]);\n }\n } else {\n for(i = 0; i < len; i++) {\n si = scl[i];\n domain[i] = (si[0] * (nc + extra - 1) - (extra / 2)) * cs + start;\n range[i] = si[1];\n }\n }\n\n return Colorscale.makeColorScaleFunc(\n {domain: domain, range: range},\n {noNumericCheck: true}\n );\n};\n\n},{\"../../components/colorscale\":378,\"./end_plus\":746,\"@plotly/d3\":58}],752:[function(_dereq_,module,exports){\n'use strict';\n\nvar constants = _dereq_('./constants');\n\n// Calculate all the marching indices, for ALL levels at once.\n// since we want to be exhaustive we'll check for contour crossings\n// at every intersection, rather than just following a path\n// TODO: shorten the inner loop to only the relevant levels\nmodule.exports = function makeCrossings(pathinfo) {\n var z = pathinfo[0].z;\n var m = z.length;\n var n = z[0].length; // we already made sure z isn't ragged in interp2d\n var twoWide = m === 2 || n === 2;\n var xi;\n var yi;\n var startIndices;\n var ystartIndices;\n var label;\n var corners;\n var mi;\n var pi;\n var i;\n\n for(yi = 0; yi < m - 1; yi++) {\n ystartIndices = [];\n if(yi === 0) ystartIndices = ystartIndices.concat(constants.BOTTOMSTART);\n if(yi === m - 2) ystartIndices = ystartIndices.concat(constants.TOPSTART);\n\n for(xi = 0; xi < n - 1; xi++) {\n startIndices = ystartIndices.slice();\n if(xi === 0) startIndices = startIndices.concat(constants.LEFTSTART);\n if(xi === n - 2) startIndices = startIndices.concat(constants.RIGHTSTART);\n\n label = xi + ',' + yi;\n corners = [[z[yi][xi], z[yi][xi + 1]],\n [z[yi + 1][xi], z[yi + 1][xi + 1]]];\n for(i = 0; i < pathinfo.length; i++) {\n pi = pathinfo[i];\n mi = getMarchingIndex(pi.level, corners);\n if(!mi) continue;\n\n pi.crossings[label] = mi;\n if(startIndices.indexOf(mi) !== -1) {\n pi.starts.push([xi, yi]);\n if(twoWide && startIndices.indexOf(mi,\n startIndices.indexOf(mi) + 1) !== -1) {\n // the same square has starts from opposite sides\n // it's not possible to have starts on opposite edges\n // of a corner, only a start and an end...\n // but if the array is only two points wide (either way)\n // you can have starts on opposite sides.\n pi.starts.push([xi, yi]);\n }\n }\n }\n }\n }\n};\n\n// modified marching squares algorithm,\n// so we disambiguate the saddle points from the start\n// and we ignore the cases with no crossings\n// the index I'm using is based on:\n// http://en.wikipedia.org/wiki/Marching_squares\n// except that the saddles bifurcate and I represent them\n// as the decimal combination of the two appropriate\n// non-saddle indices\nfunction getMarchingIndex(val, corners) {\n var mi = (corners[0][0] > val ? 0 : 1) +\n (corners[0][1] > val ? 0 : 2) +\n (corners[1][1] > val ? 0 : 4) +\n (corners[1][0] > val ? 0 : 8);\n if(mi === 5 || mi === 10) {\n var avg = (corners[0][0] + corners[0][1] +\n corners[1][0] + corners[1][1]) / 4;\n // two peaks with a big valley\n if(val > avg) return (mi === 5) ? 713 : 1114;\n // two valleys with a big ridge\n return (mi === 5) ? 104 : 208;\n }\n return (mi === 15) ? 0 : mi;\n}\n\n},{\"./constants\":739}],753:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Lib = _dereq_('../../lib');\nvar Drawing = _dereq_('../../components/drawing');\nvar Colorscale = _dereq_('../../components/colorscale');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar setConvert = _dereq_('../../plots/cartesian/set_convert');\n\nvar heatmapPlot = _dereq_('../heatmap/plot');\nvar makeCrossings = _dereq_('./make_crossings');\nvar findAllPaths = _dereq_('./find_all_paths');\nvar emptyPathinfo = _dereq_('./empty_pathinfo');\nvar convertToConstraints = _dereq_('./convert_to_constraints');\nvar closeBoundaries = _dereq_('./close_boundaries');\nvar constants = _dereq_('./constants');\nvar costConstants = constants.LABELOPTIMIZER;\n\nexports.plot = function plot(gd, plotinfo, cdcontours, contourLayer) {\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n\n Lib.makeTraceGroups(contourLayer, cdcontours, 'contour').each(function(cd) {\n var plotGroup = d3.select(this);\n var cd0 = cd[0];\n var trace = cd0.trace;\n var x = cd0.x;\n var y = cd0.y;\n var contours = trace.contours;\n var pathinfo = emptyPathinfo(contours, plotinfo, cd0);\n\n // use a heatmap to fill - draw it behind the lines\n var heatmapColoringLayer = Lib.ensureSingle(plotGroup, 'g', 'heatmapcoloring');\n var cdheatmaps = [];\n if(contours.coloring === 'heatmap') {\n cdheatmaps = [cd];\n }\n heatmapPlot(gd, plotinfo, cdheatmaps, heatmapColoringLayer);\n\n makeCrossings(pathinfo);\n findAllPaths(pathinfo);\n\n var leftedge = xa.c2p(x[0], true);\n var rightedge = xa.c2p(x[x.length - 1], true);\n var bottomedge = ya.c2p(y[0], true);\n var topedge = ya.c2p(y[y.length - 1], true);\n var perimeter = [\n [leftedge, topedge],\n [rightedge, topedge],\n [rightedge, bottomedge],\n [leftedge, bottomedge]\n ];\n\n var fillPathinfo = pathinfo;\n if(contours.type === 'constraint') {\n // N.B. this also mutates pathinfo\n fillPathinfo = convertToConstraints(pathinfo, contours._operation);\n }\n\n // draw everything\n makeBackground(plotGroup, perimeter, contours);\n makeFills(plotGroup, fillPathinfo, perimeter, contours);\n makeLinesAndLabels(plotGroup, pathinfo, gd, cd0, contours);\n clipGaps(plotGroup, plotinfo, gd, cd0, perimeter);\n });\n};\n\nfunction makeBackground(plotgroup, perimeter, contours) {\n var bggroup = Lib.ensureSingle(plotgroup, 'g', 'contourbg');\n\n var bgfill = bggroup.selectAll('path')\n .data(contours.coloring === 'fill' ? [0] : []);\n bgfill.enter().append('path');\n bgfill.exit().remove();\n bgfill\n .attr('d', 'M' + perimeter.join('L') + 'Z')\n .style('stroke', 'none');\n}\n\nfunction makeFills(plotgroup, pathinfo, perimeter, contours) {\n var hasFills = contours.coloring === 'fill' || (contours.type === 'constraint' && contours._operation !== '=');\n var boundaryPath = 'M' + perimeter.join('L') + 'Z';\n\n // fills prefixBoundary in pathinfo items\n if(hasFills) {\n closeBoundaries(pathinfo, contours);\n }\n\n var fillgroup = Lib.ensureSingle(plotgroup, 'g', 'contourfill');\n\n var fillitems = fillgroup.selectAll('path').data(hasFills ? pathinfo : []);\n fillitems.enter().append('path');\n fillitems.exit().remove();\n fillitems.each(function(pi) {\n // join all paths for this level together into a single path\n // first follow clockwise around the perimeter to close any open paths\n // if the whole perimeter is above this level, start with a path\n // enclosing the whole thing. With all that, the parity should mean\n // that we always fill everything above the contour, nothing below\n var fullpath = (pi.prefixBoundary ? boundaryPath : '') +\n joinAllPaths(pi, perimeter);\n\n if(!fullpath) {\n d3.select(this).remove();\n } else {\n d3.select(this)\n .attr('d', fullpath)\n .style('stroke', 'none');\n }\n });\n}\n\nfunction joinAllPaths(pi, perimeter) {\n var fullpath = '';\n var i = 0;\n var startsleft = pi.edgepaths.map(function(v, i) { return i; });\n var newloop = true;\n var endpt;\n var newendpt;\n var cnt;\n var nexti;\n var possiblei;\n var addpath;\n\n function istop(pt) { return Math.abs(pt[1] - perimeter[0][1]) < 0.01; }\n function isbottom(pt) { return Math.abs(pt[1] - perimeter[2][1]) < 0.01; }\n function isleft(pt) { return Math.abs(pt[0] - perimeter[0][0]) < 0.01; }\n function isright(pt) { return Math.abs(pt[0] - perimeter[2][0]) < 0.01; }\n\n while(startsleft.length) {\n addpath = Drawing.smoothopen(pi.edgepaths[i], pi.smoothing);\n fullpath += newloop ? addpath : addpath.replace(/^M/, 'L');\n startsleft.splice(startsleft.indexOf(i), 1);\n endpt = pi.edgepaths[i][pi.edgepaths[i].length - 1];\n nexti = -1;\n\n // now loop through sides, moving our endpoint until we find a new start\n for(cnt = 0; cnt < 4; cnt++) { // just to prevent infinite loops\n if(!endpt) {\n Lib.log('Missing end?', i, pi);\n break;\n }\n\n if(istop(endpt) && !isright(endpt)) newendpt = perimeter[1]; // right top\n else if(isleft(endpt)) newendpt = perimeter[0]; // left top\n else if(isbottom(endpt)) newendpt = perimeter[3]; // right bottom\n else if(isright(endpt)) newendpt = perimeter[2]; // left bottom\n\n for(possiblei = 0; possiblei < pi.edgepaths.length; possiblei++) {\n var ptNew = pi.edgepaths[possiblei][0];\n // is ptNew on the (horz. or vert.) segment from endpt to newendpt?\n if(Math.abs(endpt[0] - newendpt[0]) < 0.01) {\n if(Math.abs(endpt[0] - ptNew[0]) < 0.01 &&\n (ptNew[1] - endpt[1]) * (newendpt[1] - ptNew[1]) >= 0) {\n newendpt = ptNew;\n nexti = possiblei;\n }\n } else if(Math.abs(endpt[1] - newendpt[1]) < 0.01) {\n if(Math.abs(endpt[1] - ptNew[1]) < 0.01 &&\n (ptNew[0] - endpt[0]) * (newendpt[0] - ptNew[0]) >= 0) {\n newendpt = ptNew;\n nexti = possiblei;\n }\n } else {\n Lib.log('endpt to newendpt is not vert. or horz.',\n endpt, newendpt, ptNew);\n }\n }\n\n endpt = newendpt;\n\n if(nexti >= 0) break;\n fullpath += 'L' + newendpt;\n }\n\n if(nexti === pi.edgepaths.length) {\n Lib.log('unclosed perimeter path');\n break;\n }\n\n i = nexti;\n\n // if we closed back on a loop we already included,\n // close it and start a new loop\n newloop = (startsleft.indexOf(i) === -1);\n if(newloop) {\n i = startsleft[0];\n fullpath += 'Z';\n }\n }\n\n // finally add the interior paths\n for(i = 0; i < pi.paths.length; i++) {\n fullpath += Drawing.smoothclosed(pi.paths[i], pi.smoothing);\n }\n\n return fullpath;\n}\n\nfunction makeLinesAndLabels(plotgroup, pathinfo, gd, cd0, contours) {\n var lineContainer = Lib.ensureSingle(plotgroup, 'g', 'contourlines');\n var showLines = contours.showlines !== false;\n var showLabels = contours.showlabels;\n var clipLinesForLabels = showLines && showLabels;\n\n // Even if we're not going to show lines, we need to create them\n // if we're showing labels, because the fill paths include the perimeter\n // so can't be used to position the labels correctly.\n // In this case we'll remove the lines after making the labels.\n var linegroup = exports.createLines(lineContainer, showLines || showLabels, pathinfo);\n\n var lineClip = exports.createLineClip(lineContainer, clipLinesForLabels, gd, cd0.trace.uid);\n\n var labelGroup = plotgroup.selectAll('g.contourlabels')\n .data(showLabels ? [0] : []);\n\n labelGroup.exit().remove();\n\n labelGroup.enter().append('g')\n .classed('contourlabels', true);\n\n if(showLabels) {\n var labelClipPathData = [];\n var labelData = [];\n\n // invalidate the getTextLocation cache in case paths changed\n Lib.clearLocationCache();\n\n var contourFormat = exports.labelFormatter(gd, cd0);\n\n var dummyText = Drawing.tester.append('text')\n .attr('data-notex', 1)\n .call(Drawing.font, contours.labelfont);\n\n var xa = pathinfo[0].xaxis;\n var ya = pathinfo[0].yaxis;\n var xLen = xa._length;\n var yLen = ya._length;\n var xRng = xa.range;\n var yRng = ya.range;\n var xMin = Lib.aggNums(Math.min, null, cd0.x);\n var xMax = Lib.aggNums(Math.max, null, cd0.x);\n var yMin = Lib.aggNums(Math.min, null, cd0.y);\n var yMax = Lib.aggNums(Math.max, null, cd0.y);\n var x0 = Math.max(xa.c2p(xMin, true), 0);\n var x1 = Math.min(xa.c2p(xMax, true), xLen);\n var y0 = Math.max(ya.c2p(yMax, true), 0);\n var y1 = Math.min(ya.c2p(yMin, true), yLen);\n\n // visible bounds of the contour trace (and the midpoints, to\n // help with cost calculations)\n var bounds = {};\n\n if(xRng[0] < xRng[1]) {\n bounds.left = x0;\n bounds.right = x1;\n } else {\n bounds.left = x1;\n bounds.right = x0;\n }\n\n if(yRng[0] < yRng[1]) {\n bounds.top = y0;\n bounds.bottom = y1;\n } else {\n bounds.top = y1;\n bounds.bottom = y0;\n }\n\n bounds.middle = (bounds.top + bounds.bottom) / 2;\n bounds.center = (bounds.left + bounds.right) / 2;\n\n labelClipPathData.push([\n [bounds.left, bounds.top],\n [bounds.right, bounds.top],\n [bounds.right, bounds.bottom],\n [bounds.left, bounds.bottom]\n ]);\n\n var plotDiagonal = Math.sqrt(xLen * xLen + yLen * yLen);\n\n // the path length to use to scale the number of labels to draw:\n var normLength = constants.LABELDISTANCE * plotDiagonal /\n Math.max(1, pathinfo.length / constants.LABELINCREASE);\n\n linegroup.each(function(d) {\n var textOpts = exports.calcTextOpts(d.level, contourFormat, dummyText, gd);\n\n d3.select(this).selectAll('path').each(function() {\n var path = this;\n var pathBounds = Lib.getVisibleSegment(path, bounds, textOpts.height / 2);\n if(!pathBounds) return;\n\n if(pathBounds.len < (textOpts.width + textOpts.height) * constants.LABELMIN) return;\n\n var maxLabels = Math.min(Math.ceil(pathBounds.len / normLength),\n constants.LABELMAX);\n\n for(var i = 0; i < maxLabels; i++) {\n var loc = exports.findBestTextLocation(path, pathBounds, textOpts,\n labelData, bounds);\n\n if(!loc) break;\n\n exports.addLabelData(loc, textOpts, labelData, labelClipPathData);\n }\n });\n });\n\n dummyText.remove();\n\n exports.drawLabels(labelGroup, labelData, gd, lineClip,\n clipLinesForLabels ? labelClipPathData : null);\n }\n\n if(showLabels && !showLines) linegroup.remove();\n}\n\nexports.createLines = function(lineContainer, makeLines, pathinfo) {\n var smoothing = pathinfo[0].smoothing;\n\n var linegroup = lineContainer.selectAll('g.contourlevel')\n .data(makeLines ? pathinfo : []);\n\n linegroup.exit().remove();\n linegroup.enter().append('g')\n .classed('contourlevel', true);\n\n if(makeLines) {\n // pedgepaths / ppaths are used by contourcarpet, for the paths transformed from a/b to x/y\n // edgepaths / paths are used by contour since it's in x/y from the start\n var opencontourlines = linegroup.selectAll('path.openline')\n .data(function(d) { return d.pedgepaths || d.edgepaths; });\n\n opencontourlines.exit().remove();\n opencontourlines.enter().append('path')\n .classed('openline', true);\n\n opencontourlines\n .attr('d', function(d) {\n return Drawing.smoothopen(d, smoothing);\n })\n .style('stroke-miterlimit', 1)\n .style('vector-effect', 'non-scaling-stroke');\n\n var closedcontourlines = linegroup.selectAll('path.closedline')\n .data(function(d) { return d.ppaths || d.paths; });\n\n closedcontourlines.exit().remove();\n closedcontourlines.enter().append('path')\n .classed('closedline', true);\n\n closedcontourlines\n .attr('d', function(d) {\n return Drawing.smoothclosed(d, smoothing);\n })\n .style('stroke-miterlimit', 1)\n .style('vector-effect', 'non-scaling-stroke');\n }\n\n return linegroup;\n};\n\nexports.createLineClip = function(lineContainer, clipLinesForLabels, gd, uid) {\n var clips = gd._fullLayout._clips;\n var clipId = clipLinesForLabels ? ('clipline' + uid) : null;\n\n var lineClip = clips.selectAll('#' + clipId)\n .data(clipLinesForLabels ? [0] : []);\n lineClip.exit().remove();\n\n lineClip.enter().append('clipPath')\n .classed('contourlineclip', true)\n .attr('id', clipId);\n\n Drawing.setClipUrl(lineContainer, clipId, gd);\n\n return lineClip;\n};\n\nexports.labelFormatter = function(gd, cd0) {\n var fullLayout = gd._fullLayout;\n var trace = cd0.trace;\n var contours = trace.contours;\n\n var formatAxis = {\n type: 'linear',\n _id: 'ycontour',\n showexponent: 'all',\n exponentformat: 'B'\n };\n\n if(contours.labelformat) {\n formatAxis.tickformat = contours.labelformat;\n setConvert(formatAxis, fullLayout);\n } else {\n var cOpts = Colorscale.extractOpts(trace);\n if(cOpts && cOpts.colorbar && cOpts.colorbar._axis) {\n formatAxis = cOpts.colorbar._axis;\n } else {\n if(contours.type === 'constraint') {\n var value = contours.value;\n if(Array.isArray(value)) {\n formatAxis.range = [value[0], value[value.length - 1]];\n } else formatAxis.range = [value, value];\n } else {\n formatAxis.range = [contours.start, contours.end];\n formatAxis.nticks = (contours.end - contours.start) / contours.size;\n }\n\n if(formatAxis.range[0] === formatAxis.range[1]) {\n formatAxis.range[1] += formatAxis.range[0] || 1;\n }\n if(!formatAxis.nticks) formatAxis.nticks = 1000;\n\n setConvert(formatAxis, fullLayout);\n Axes.prepTicks(formatAxis);\n formatAxis._tmin = null;\n formatAxis._tmax = null;\n }\n }\n\n return function(v) { return Axes.tickText(formatAxis, v).text; };\n};\n\nexports.calcTextOpts = function(level, contourFormat, dummyText, gd) {\n var text = contourFormat(level);\n dummyText.text(text)\n .call(svgTextUtils.convertToTspans, gd);\n\n var el = dummyText.node();\n var bBox = Drawing.bBox(el, true);\n\n return {\n text: text,\n width: bBox.width,\n height: bBox.height,\n fontSize: +(el.style['font-size'].replace('px', '')),\n level: level,\n dy: (bBox.top + bBox.bottom) / 2\n };\n};\n\nexports.findBestTextLocation = function(path, pathBounds, textOpts, labelData, plotBounds) {\n var textWidth = textOpts.width;\n\n var p0, dp, pMax, pMin, loc;\n if(pathBounds.isClosed) {\n dp = pathBounds.len / costConstants.INITIALSEARCHPOINTS;\n p0 = pathBounds.min + dp / 2;\n pMax = pathBounds.max;\n } else {\n dp = (pathBounds.len - textWidth) / (costConstants.INITIALSEARCHPOINTS + 1);\n p0 = pathBounds.min + dp + textWidth / 2;\n pMax = pathBounds.max - (dp + textWidth) / 2;\n }\n\n var cost = Infinity;\n for(var j = 0; j < costConstants.ITERATIONS; j++) {\n for(var p = p0; p < pMax; p += dp) {\n var newLocation = Lib.getTextLocation(path, pathBounds.total, p, textWidth);\n var newCost = locationCost(newLocation, textOpts, labelData, plotBounds);\n if(newCost < cost) {\n cost = newCost;\n loc = newLocation;\n pMin = p;\n }\n }\n if(cost > costConstants.MAXCOST * 2) break;\n\n // subsequent iterations just look half steps away from the\n // best we found in the previous iteration\n if(j) dp /= 2;\n p0 = pMin - dp / 2;\n pMax = p0 + dp * 1.5;\n }\n if(cost <= costConstants.MAXCOST) return loc;\n};\n\n/*\n * locationCost: a cost function for label locations\n * composed of three kinds of penalty:\n * - for open paths, being close to the end of the path\n * - the angle away from horizontal\n * - being too close to already placed neighbors\n */\nfunction locationCost(loc, textOpts, labelData, bounds) {\n var halfWidth = textOpts.width / 2;\n var halfHeight = textOpts.height / 2;\n var x = loc.x;\n var y = loc.y;\n var theta = loc.theta;\n var dx = Math.cos(theta) * halfWidth;\n var dy = Math.sin(theta) * halfWidth;\n\n // cost for being near an edge\n var normX = ((x > bounds.center) ? (bounds.right - x) : (x - bounds.left)) /\n (dx + Math.abs(Math.sin(theta) * halfHeight));\n var normY = ((y > bounds.middle) ? (bounds.bottom - y) : (y - bounds.top)) /\n (Math.abs(dy) + Math.cos(theta) * halfHeight);\n if(normX < 1 || normY < 1) return Infinity;\n var cost = costConstants.EDGECOST * (1 / (normX - 1) + 1 / (normY - 1));\n\n // cost for not being horizontal\n cost += costConstants.ANGLECOST * theta * theta;\n\n // cost for being close to other labels\n var x1 = x - dx;\n var y1 = y - dy;\n var x2 = x + dx;\n var y2 = y + dy;\n for(var i = 0; i < labelData.length; i++) {\n var labeli = labelData[i];\n var dxd = Math.cos(labeli.theta) * labeli.width / 2;\n var dyd = Math.sin(labeli.theta) * labeli.width / 2;\n var dist = Lib.segmentDistance(\n x1, y1,\n x2, y2,\n labeli.x - dxd, labeli.y - dyd,\n labeli.x + dxd, labeli.y + dyd\n ) * 2 / (textOpts.height + labeli.height);\n\n var sameLevel = labeli.level === textOpts.level;\n var distOffset = sameLevel ? costConstants.SAMELEVELDISTANCE : 1;\n\n if(dist <= distOffset) return Infinity;\n\n var distFactor = costConstants.NEIGHBORCOST *\n (sameLevel ? costConstants.SAMELEVELFACTOR : 1);\n\n cost += distFactor / (dist - distOffset);\n }\n\n return cost;\n}\n\nexports.addLabelData = function(loc, textOpts, labelData, labelClipPathData) {\n var fontSize = textOpts.fontSize;\n var w = textOpts.width + fontSize / 3;\n var h = Math.max(0, textOpts.height - fontSize / 3);\n\n var x = loc.x;\n var y = loc.y;\n var theta = loc.theta;\n\n var sin = Math.sin(theta);\n var cos = Math.cos(theta);\n\n var rotateXY = function(dx, dy) {\n return [\n x + dx * cos - dy * sin,\n y + dx * sin + dy * cos\n ];\n };\n\n var bBoxPts = [\n rotateXY(-w / 2, -h / 2),\n rotateXY(-w / 2, h / 2),\n rotateXY(w / 2, h / 2),\n rotateXY(w / 2, -h / 2)\n ];\n\n labelData.push({\n text: textOpts.text,\n x: x,\n y: y,\n dy: textOpts.dy,\n theta: theta,\n level: textOpts.level,\n width: w,\n height: h\n });\n\n labelClipPathData.push(bBoxPts);\n};\n\nexports.drawLabels = function(labelGroup, labelData, gd, lineClip, labelClipPathData) {\n var labels = labelGroup.selectAll('text')\n .data(labelData, function(d) {\n return d.text + ',' + d.x + ',' + d.y + ',' + d.theta;\n });\n\n labels.exit().remove();\n\n labels.enter().append('text')\n .attr({\n 'data-notex': 1,\n 'text-anchor': 'middle'\n })\n .each(function(d) {\n var x = d.x + Math.sin(d.theta) * d.dy;\n var y = d.y - Math.cos(d.theta) * d.dy;\n d3.select(this)\n .text(d.text)\n .attr({\n x: x,\n y: y,\n transform: 'rotate(' + (180 * d.theta / Math.PI) + ' ' + x + ' ' + y + ')'\n })\n .call(svgTextUtils.convertToTspans, gd);\n });\n\n if(labelClipPathData) {\n var clipPath = '';\n for(var i = 0; i < labelClipPathData.length; i++) {\n clipPath += 'M' + labelClipPathData[i].join('L') + 'Z';\n }\n\n var lineClipPath = Lib.ensureSingle(lineClip, 'path', '');\n lineClipPath.attr('d', clipPath);\n }\n};\n\nfunction clipGaps(plotGroup, plotinfo, gd, cd0, perimeter) {\n var trace = cd0.trace;\n var clips = gd._fullLayout._clips;\n var clipId = 'clip' + trace.uid;\n\n var clipPath = clips.selectAll('#' + clipId)\n .data(trace.connectgaps ? [] : [0]);\n clipPath.enter().append('clipPath')\n .classed('contourclip', true)\n .attr('id', clipId);\n clipPath.exit().remove();\n\n if(trace.connectgaps === false) {\n var clipPathInfo = {\n // fraction of the way from missing to present point\n // to draw the boundary.\n // if you make this 1 (or 1-epsilon) then a point in\n // a sea of missing data will disappear entirely.\n level: 0.9,\n crossings: {},\n starts: [],\n edgepaths: [],\n paths: [],\n xaxis: plotinfo.xaxis,\n yaxis: plotinfo.yaxis,\n x: cd0.x,\n y: cd0.y,\n // 0 = no data, 1 = data\n z: makeClipMask(cd0),\n smoothing: 0\n };\n\n makeCrossings([clipPathInfo]);\n findAllPaths([clipPathInfo]);\n closeBoundaries([clipPathInfo], {type: 'levels'});\n\n var path = Lib.ensureSingle(clipPath, 'path', '');\n path.attr('d',\n (clipPathInfo.prefixBoundary ? 'M' + perimeter.join('L') + 'Z' : '') +\n joinAllPaths(clipPathInfo, perimeter)\n );\n } else clipId = null;\n\n Drawing.setClipUrl(plotGroup, clipId, gd);\n}\n\nfunction makeClipMask(cd0) {\n var empties = cd0.trace._emptypoints;\n var z = [];\n var m = cd0.z.length;\n var n = cd0.z[0].length;\n var i;\n var row = [];\n var emptyPoint;\n\n for(i = 0; i < n; i++) row.push(1);\n for(i = 0; i < m; i++) z.push(row.slice());\n for(i = 0; i < empties.length; i++) {\n emptyPoint = empties[i];\n z[emptyPoint[0]][emptyPoint[1]] = 0;\n }\n // save this mask to determine whether to show this data in hover\n cd0.zmask = z;\n return z;\n}\n\n},{\"../../components/colorscale\":378,\"../../components/drawing\":388,\"../../lib\":503,\"../../lib/svg_text_utils\":529,\"../../plots/cartesian/axes\":554,\"../../plots/cartesian/set_convert\":576,\"../heatmap/plot\":803,\"./close_boundaries\":737,\"./constants\":739,\"./convert_to_constraints\":743,\"./empty_pathinfo\":745,\"./find_all_paths\":747,\"./make_crossings\":752,\"@plotly/d3\":58}],754:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar Lib = _dereq_('../../lib');\n\nmodule.exports = function setContours(trace, vals) {\n var contours = trace.contours;\n\n // check if we need to auto-choose contour levels\n if(trace.autocontour) {\n // N.B. do not try to use coloraxis cmin/cmax,\n // these values here are meant to remain \"per-trace\" for now\n var zmin = trace.zmin;\n var zmax = trace.zmax;\n if(trace.zauto || zmin === undefined) {\n zmin = Lib.aggNums(Math.min, null, vals);\n }\n if(trace.zauto || zmax === undefined) {\n zmax = Lib.aggNums(Math.max, null, vals);\n }\n\n var dummyAx = autoContours(zmin, zmax, trace.ncontours);\n contours.size = dummyAx.dtick;\n contours.start = Axes.tickFirst(dummyAx);\n dummyAx.range.reverse();\n contours.end = Axes.tickFirst(dummyAx);\n\n if(contours.start === zmin) contours.start += contours.size;\n if(contours.end === zmax) contours.end -= contours.size;\n\n // if you set a small ncontours, *and* the ends are exactly on zmin/zmax\n // there's an edge case where start > end now. Make sure there's at least\n // one meaningful contour, put it midway between the crossed values\n if(contours.start > contours.end) {\n contours.start = contours.end = (contours.start + contours.end) / 2;\n }\n\n // copy auto-contour info back to the source data.\n // previously we copied the whole contours object back, but that had\n // other info (coloring, showlines) that should be left to supplyDefaults\n if(!trace._input.contours) trace._input.contours = {};\n Lib.extendFlat(trace._input.contours, {\n start: contours.start,\n end: contours.end,\n size: contours.size\n });\n trace._input.autocontour = true;\n } else if(contours.type !== 'constraint') {\n // sanity checks on manually-supplied start/end/size\n var start = contours.start;\n var end = contours.end;\n var inputContours = trace._input.contours;\n\n if(start > end) {\n contours.start = inputContours.start = end;\n end = contours.end = inputContours.end = start;\n start = contours.start;\n }\n\n if(!(contours.size > 0)) {\n var sizeOut;\n if(start === end) sizeOut = 1;\n else sizeOut = autoContours(start, end, trace.ncontours).dtick;\n\n inputContours.size = contours.size = sizeOut;\n }\n }\n};\n\n\n/*\n * autoContours: make a dummy axis object with dtick we can use\n * as contours.size, and if needed we can use Axes.tickFirst\n * with this axis object to calculate the start and end too\n *\n * start: the value to start the contours at\n * end: the value to end at (must be > start)\n * ncontours: max number of contours to make, like roughDTick\n *\n * returns: an axis object\n */\nfunction autoContours(start, end, ncontours) {\n var dummyAx = {\n type: 'linear',\n range: [start, end]\n };\n\n Axes.autoTicks(\n dummyAx,\n (end - start) / (ncontours || 15)\n );\n\n return dummyAx;\n}\n\n},{\"../../lib\":503,\"../../plots/cartesian/axes\":554}],755:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Drawing = _dereq_('../../components/drawing');\nvar heatmapStyle = _dereq_('../heatmap/style');\n\nvar makeColorMap = _dereq_('./make_color_map');\n\n\nmodule.exports = function style(gd) {\n var contours = d3.select(gd).selectAll('g.contour');\n\n contours.style('opacity', function(d) {\n return d[0].trace.opacity;\n });\n\n contours.each(function(d) {\n var c = d3.select(this);\n var trace = d[0].trace;\n var contours = trace.contours;\n var line = trace.line;\n var cs = contours.size || 1;\n var start = contours.start;\n\n // for contourcarpet only - is this a constraint-type contour trace?\n var isConstraintType = contours.type === 'constraint';\n var colorLines = !isConstraintType && contours.coloring === 'lines';\n var colorFills = !isConstraintType && contours.coloring === 'fill';\n\n var colorMap = (colorLines || colorFills) ? makeColorMap(trace) : null;\n\n c.selectAll('g.contourlevel').each(function(d) {\n d3.select(this).selectAll('path')\n .call(Drawing.lineGroupStyle,\n line.width,\n colorLines ? colorMap(d.level) : line.color,\n line.dash);\n });\n\n var labelFont = contours.labelfont;\n c.selectAll('g.contourlabels text').each(function(d) {\n Drawing.font(d3.select(this), {\n family: labelFont.family,\n size: labelFont.size,\n color: labelFont.color || (colorLines ? colorMap(d.level) : line.color)\n });\n });\n\n if(isConstraintType) {\n c.selectAll('g.contourfill path')\n .style('fill', trace.fillcolor);\n } else if(colorFills) {\n var firstFill;\n\n c.selectAll('g.contourfill path')\n .style('fill', function(d) {\n if(firstFill === undefined) firstFill = d.level;\n return colorMap(d.level + 0.5 * cs);\n });\n\n if(firstFill === undefined) firstFill = start;\n\n c.selectAll('g.contourbg path')\n .style('fill', colorMap(firstFill - 0.5 * cs));\n }\n });\n\n heatmapStyle(gd);\n};\n\n},{\"../../components/drawing\":388,\"../heatmap/style\":804,\"./make_color_map\":751,\"@plotly/d3\":58}],756:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorscaleDefaults = _dereq_('../../components/colorscale/defaults');\nvar handleLabelDefaults = _dereq_('./label_defaults');\n\n\nmodule.exports = function handleStyleDefaults(traceIn, traceOut, coerce, layout, opts) {\n var coloring = coerce('contours.coloring');\n\n var showLines;\n var lineColor = '';\n if(coloring === 'fill') showLines = coerce('contours.showlines');\n\n if(showLines !== false) {\n if(coloring !== 'lines') lineColor = coerce('line.color', '#000');\n coerce('line.width', 0.5);\n coerce('line.dash');\n }\n\n if(coloring !== 'none') {\n // plots/plots always coerces showlegend to true, but in this case\n // we default to false and (by default) show a colorbar instead\n if(traceIn.showlegend !== true) traceOut.showlegend = false;\n traceOut._dfltShowLegend = false;\n\n colorscaleDefaults(\n traceIn, traceOut, layout, coerce, {prefix: '', cLetter: 'z'}\n );\n }\n\n coerce('line.smoothing');\n\n handleLabelDefaults(coerce, layout, lineColor, opts);\n};\n\n},{\"../../components/colorscale/defaults\":376,\"./label_defaults\":750}],757:[function(_dereq_,module,exports){\n'use strict';\n\nvar heatmapAttrs = _dereq_('../heatmap/attributes');\nvar contourAttrs = _dereq_('../contour/attributes');\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nvar contourContourAttrs = contourAttrs.contours;\n\nmodule.exports = extendFlat({\n carpet: {\n valType: 'string',\n editType: 'calc',\n },\n z: heatmapAttrs.z,\n a: heatmapAttrs.x,\n a0: heatmapAttrs.x0,\n da: heatmapAttrs.dx,\n b: heatmapAttrs.y,\n b0: heatmapAttrs.y0,\n db: heatmapAttrs.dy,\n text: heatmapAttrs.text,\n hovertext: heatmapAttrs.hovertext,\n transpose: heatmapAttrs.transpose,\n atype: heatmapAttrs.xtype,\n btype: heatmapAttrs.ytype,\n\n fillcolor: contourAttrs.fillcolor,\n\n autocontour: contourAttrs.autocontour,\n ncontours: contourAttrs.ncontours,\n\n contours: {\n type: contourContourAttrs.type,\n start: contourContourAttrs.start,\n end: contourContourAttrs.end,\n size: contourContourAttrs.size,\n coloring: {\n // from contourAttrs.contours.coloring but no 'heatmap' option\n valType: 'enumerated',\n values: ['fill', 'lines', 'none'],\n dflt: 'fill',\n editType: 'calc',\n },\n showlines: contourContourAttrs.showlines,\n showlabels: contourContourAttrs.showlabels,\n labelfont: contourContourAttrs.labelfont,\n labelformat: contourContourAttrs.labelformat,\n operation: contourContourAttrs.operation,\n value: contourContourAttrs.value,\n editType: 'calc',\n impliedEdits: {'autocontour': false}\n },\n\n line: {\n color: contourAttrs.line.color,\n width: contourAttrs.line.width,\n dash: contourAttrs.line.dash,\n smoothing: contourAttrs.line.smoothing,\n editType: 'plot'\n },\n\n transforms: undefined\n},\n\n colorScaleAttrs('', {\n cLetter: 'z',\n autoColorDflt: false\n })\n);\n\n},{\"../../components/colorscale/attributes\":373,\"../../lib/extend\":493,\"../contour/attributes\":735,\"../heatmap/attributes\":792}],758:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorscaleCalc = _dereq_('../../components/colorscale/calc');\nvar Lib = _dereq_('../../lib');\n\nvar convertColumnData = _dereq_('../heatmap/convert_column_xyz');\nvar clean2dArray = _dereq_('../heatmap/clean_2d_array');\nvar interp2d = _dereq_('../heatmap/interp2d');\nvar findEmpties = _dereq_('../heatmap/find_empties');\nvar makeBoundArray = _dereq_('../heatmap/make_bound_array');\nvar supplyDefaults = _dereq_('./defaults');\nvar lookupCarpet = _dereq_('../carpet/lookup_carpetid');\nvar setContours = _dereq_('../contour/set_contours');\n\n// most is the same as heatmap calc, then adjust it\n// though a few things inside heatmap calc still look for\n// contour maps, because the makeBoundArray calls are too entangled\nmodule.exports = function calc(gd, trace) {\n var carpet = trace._carpetTrace = lookupCarpet(gd, trace);\n if(!carpet || !carpet.visible || carpet.visible === 'legendonly') return;\n\n if(!trace.a || !trace.b) {\n // Look up the original incoming carpet data:\n var carpetdata = gd.data[carpet.index];\n\n // Look up the incoming trace data, *except* perform a shallow\n // copy so that we're not actually modifying it when we use it\n // to supply defaults:\n var tracedata = gd.data[trace.index];\n // var tracedata = extendFlat({}, gd.data[trace.index]);\n\n // If the data is not specified\n if(!tracedata.a) tracedata.a = carpetdata.a;\n if(!tracedata.b) tracedata.b = carpetdata.b;\n\n supplyDefaults(tracedata, trace, trace._defaultColor, gd._fullLayout);\n }\n\n var cd = heatmappishCalc(gd, trace);\n setContours(trace, trace._z);\n\n return cd;\n};\n\nfunction heatmappishCalc(gd, trace) {\n // prepare the raw data\n // run makeCalcdata on x and y even for heatmaps, in case of category mappings\n var carpet = trace._carpetTrace;\n var aax = carpet.aaxis;\n var bax = carpet.baxis;\n var a,\n a0,\n da,\n b,\n b0,\n db,\n z;\n\n // cancel minimum tick spacings (only applies to bars and boxes)\n aax._minDtick = 0;\n bax._minDtick = 0;\n\n if(Lib.isArray1D(trace.z)) convertColumnData(trace, aax, bax, 'a', 'b', ['z']);\n a = trace._a = trace._a || trace.a;\n b = trace._b = trace._b || trace.b;\n\n a = a ? aax.makeCalcdata(trace, '_a') : [];\n b = b ? bax.makeCalcdata(trace, '_b') : [];\n a0 = trace.a0 || 0;\n da = trace.da || 1;\n b0 = trace.b0 || 0;\n db = trace.db || 1;\n\n z = trace._z = clean2dArray(trace._z || trace.z, trace.transpose);\n\n trace._emptypoints = findEmpties(z);\n interp2d(z, trace._emptypoints);\n\n // create arrays of brick boundaries, to be used by autorange and heatmap.plot\n var xlen = Lib.maxRowLength(z);\n var xIn = trace.xtype === 'scaled' ? '' : a;\n var xArray = makeBoundArray(trace, xIn, a0, da, xlen, aax);\n var yIn = trace.ytype === 'scaled' ? '' : b;\n var yArray = makeBoundArray(trace, yIn, b0, db, z.length, bax);\n\n var cd0 = {\n a: xArray,\n b: yArray,\n z: z,\n };\n\n if(trace.contours.type === 'levels' && trace.contours.coloring !== 'none') {\n // auto-z and autocolorscale if applicable\n colorscaleCalc(gd, trace, {\n vals: z,\n containerStr: '',\n cLetter: 'z'\n });\n }\n\n return [cd0];\n}\n\n},{\"../../components/colorscale/calc\":374,\"../../lib\":503,\"../carpet/lookup_carpetid\":708,\"../contour/set_contours\":754,\"../heatmap/clean_2d_array\":794,\"../heatmap/convert_column_xyz\":796,\"../heatmap/find_empties\":798,\"../heatmap/interp2d\":801,\"../heatmap/make_bound_array\":802,\"./defaults\":759}],759:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar handleXYZDefaults = _dereq_('../heatmap/xyz_defaults');\nvar attributes = _dereq_('./attributes');\nvar handleConstraintDefaults = _dereq_('../contour/constraint_defaults');\nvar handleContoursDefaults = _dereq_('../contour/contours_defaults');\nvar handleStyleDefaults = _dereq_('../contour/style_defaults');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n function coerce2(attr) {\n return Lib.coerce2(traceIn, traceOut, attributes, attr);\n }\n\n coerce('carpet');\n\n // If either a or b is not present, then it's not a valid trace *unless* the carpet\n // axis has the a or b values we're looking for. So if these are not found, just defer\n // that decision until the calc step.\n //\n // NB: the calc step will modify the original data input by assigning whichever of\n // a or b are missing. This is necessary because panning goes right from supplyDefaults\n // to plot (skipping calc). That means on subsequent updates, this *will* need to be\n // able to find a and b.\n //\n // The long-term proper fix is that this should perhaps use underscored attributes to\n // at least modify the user input to a slightly lesser extent. Fully removing the\n // input mutation is challenging. The underscore approach is not currently taken since\n // it requires modification to all of the functions below that expect the coerced\n // attribute name to match the property name -- except '_a' !== 'a' so that is not\n // straightforward.\n if(traceIn.a && traceIn.b) {\n var len = handleXYZDefaults(traceIn, traceOut, coerce, layout, 'a', 'b');\n\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n coerce('text');\n var isConstraint = (coerce('contours.type') === 'constraint');\n\n if(isConstraint) {\n handleConstraintDefaults(traceIn, traceOut, coerce, layout, defaultColor, {hasHover: false});\n } else {\n handleContoursDefaults(traceIn, traceOut, coerce, coerce2);\n handleStyleDefaults(traceIn, traceOut, coerce, layout, {hasHover: false});\n }\n } else {\n traceOut._defaultColor = defaultColor;\n traceOut._length = null;\n }\n};\n\n},{\"../../lib\":503,\"../contour/constraint_defaults\":740,\"../contour/contours_defaults\":742,\"../contour/style_defaults\":756,\"../heatmap/xyz_defaults\":806,\"./attributes\":757}],760:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n colorbar: _dereq_('../contour/colorbar'),\n calc: _dereq_('./calc'),\n plot: _dereq_('./plot'),\n style: _dereq_('../contour/style'),\n\n moduleType: 'trace',\n name: 'contourcarpet',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: ['cartesian', 'svg', 'carpet', 'contour', 'symbols', 'showLegend', 'hasLines', 'carpetDependent', 'noHover', 'noSortingByValue'],\n meta: {\n }\n};\n\n},{\"../../plots/cartesian\":568,\"../contour/colorbar\":738,\"../contour/style\":755,\"./attributes\":757,\"./calc\":758,\"./defaults\":759,\"./plot\":761}],761:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar map1dArray = _dereq_('../carpet/map_1d_array');\nvar makepath = _dereq_('../carpet/makepath');\nvar Drawing = _dereq_('../../components/drawing');\nvar Lib = _dereq_('../../lib');\n\nvar makeCrossings = _dereq_('../contour/make_crossings');\nvar findAllPaths = _dereq_('../contour/find_all_paths');\nvar contourPlot = _dereq_('../contour/plot');\nvar constants = _dereq_('../contour/constants');\nvar convertToConstraints = _dereq_('../contour/convert_to_constraints');\nvar emptyPathinfo = _dereq_('../contour/empty_pathinfo');\nvar closeBoundaries = _dereq_('../contour/close_boundaries');\nvar lookupCarpet = _dereq_('../carpet/lookup_carpetid');\nvar axisAlignedLine = _dereq_('../carpet/axis_aligned_line');\n\nmodule.exports = function plot(gd, plotinfo, cdcontours, contourcarpetLayer) {\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n\n Lib.makeTraceGroups(contourcarpetLayer, cdcontours, 'contour').each(function(cd) {\n var plotGroup = d3.select(this);\n var cd0 = cd[0];\n var trace = cd0.trace;\n\n var carpet = trace._carpetTrace = lookupCarpet(gd, trace);\n var carpetcd = gd.calcdata[carpet.index][0];\n\n if(!carpet.visible || carpet.visible === 'legendonly') return;\n\n var a = cd0.a;\n var b = cd0.b;\n var contours = trace.contours;\n var pathinfo = emptyPathinfo(contours, plotinfo, cd0);\n var isConstraint = contours.type === 'constraint';\n var operation = contours._operation;\n var coloring = isConstraint ? (operation === '=' ? 'lines' : 'fill') : contours.coloring;\n\n // Map [a, b] (data) --> [i, j] (pixels)\n function ab2p(ab) {\n var pt = carpet.ab2xy(ab[0], ab[1], true);\n return [xa.c2p(pt[0]), ya.c2p(pt[1])];\n }\n\n // Define the perimeter in a/b coordinates:\n var perimeter = [\n [a[0], b[b.length - 1]],\n [a[a.length - 1], b[b.length - 1]],\n [a[a.length - 1], b[0]],\n [a[0], b[0]]\n ];\n\n // Extract the contour levels:\n makeCrossings(pathinfo);\n var atol = (a[a.length - 1] - a[0]) * 1e-8;\n var btol = (b[b.length - 1] - b[0]) * 1e-8;\n findAllPaths(pathinfo, atol, btol);\n\n // Constraints might need to be draw inverted, which is not something contours\n // handle by default since they're assumed fully opaque so that they can be\n // drawn overlapping. This function flips the paths as necessary so that they're\n // drawn correctly.\n //\n // TODO: Perhaps this should be generalized and *all* paths should be drawn as\n // closed regions so that translucent contour levels would be valid.\n // See: https://github.com/plotly/plotly.js/issues/1356\n var fillPathinfo = pathinfo;\n if(contours.type === 'constraint') {\n fillPathinfo = convertToConstraints(pathinfo, operation);\n }\n\n // Map the paths in a/b coordinates to pixel coordinates:\n mapPathinfo(pathinfo, ab2p);\n\n // draw everything\n\n // Compute the boundary path\n var seg, xp, yp, i;\n var segs = [];\n for(i = carpetcd.clipsegments.length - 1; i >= 0; i--) {\n seg = carpetcd.clipsegments[i];\n xp = map1dArray([], seg.x, xa.c2p);\n yp = map1dArray([], seg.y, ya.c2p);\n xp.reverse();\n yp.reverse();\n segs.push(makepath(xp, yp, seg.bicubic));\n }\n\n var boundaryPath = 'M' + segs.join('L') + 'Z';\n\n // Draw the baseline background fill that fills in the space behind any other\n // contour levels:\n makeBackground(plotGroup, carpetcd.clipsegments, xa, ya, isConstraint, coloring);\n\n // Draw the specific contour fills. As a simplification, they're assumed to be\n // fully opaque so that it's easy to draw them simply overlapping. The alternative\n // would be to flip adjacent paths and draw closed paths for each level instead.\n makeFills(trace, plotGroup, xa, ya, fillPathinfo, perimeter, ab2p, carpet, carpetcd, coloring, boundaryPath);\n\n // Draw contour lines:\n makeLinesAndLabels(plotGroup, pathinfo, gd, cd0, contours, plotinfo, carpet);\n\n // Clip the boundary of the plot\n Drawing.setClipUrl(plotGroup, carpet._clipPathId, gd);\n });\n};\n\nfunction mapPathinfo(pathinfo, map) {\n var i, j, k, pi, pedgepaths, ppaths, pedgepath, ppath, path;\n\n for(i = 0; i < pathinfo.length; i++) {\n pi = pathinfo[i];\n pedgepaths = pi.pedgepaths = [];\n ppaths = pi.ppaths = [];\n for(j = 0; j < pi.edgepaths.length; j++) {\n path = pi.edgepaths[j];\n pedgepath = [];\n for(k = 0; k < path.length; k++) {\n pedgepath[k] = map(path[k]);\n }\n pedgepaths.push(pedgepath);\n }\n for(j = 0; j < pi.paths.length; j++) {\n path = pi.paths[j];\n ppath = [];\n for(k = 0; k < path.length; k++) {\n ppath[k] = map(path[k]);\n }\n ppaths.push(ppath);\n }\n }\n}\n\nfunction makeLinesAndLabels(plotgroup, pathinfo, gd, cd0, contours, plotinfo, carpet) {\n var lineContainer = Lib.ensureSingle(plotgroup, 'g', 'contourlines');\n var showLines = contours.showlines !== false;\n var showLabels = contours.showlabels;\n var clipLinesForLabels = showLines && showLabels;\n\n // Even if we're not going to show lines, we need to create them\n // if we're showing labels, because the fill paths include the perimeter\n // so can't be used to position the labels correctly.\n // In this case we'll remove the lines after making the labels.\n var linegroup = contourPlot.createLines(lineContainer, showLines || showLabels, pathinfo);\n\n var lineClip = contourPlot.createLineClip(lineContainer, clipLinesForLabels, gd, cd0.trace.uid);\n\n var labelGroup = plotgroup.selectAll('g.contourlabels')\n .data(showLabels ? [0] : []);\n\n labelGroup.exit().remove();\n\n labelGroup.enter().append('g')\n .classed('contourlabels', true);\n\n if(showLabels) {\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n var xLen = xa._length;\n var yLen = ya._length;\n // for simplicity use the xy box for label clipping outline.\n var labelClipPathData = [[\n [0, 0],\n [xLen, 0],\n [xLen, yLen],\n [0, yLen]\n ]];\n\n\n var labelData = [];\n\n // invalidate the getTextLocation cache in case paths changed\n Lib.clearLocationCache();\n\n var contourFormat = contourPlot.labelFormatter(gd, cd0);\n\n var dummyText = Drawing.tester.append('text')\n .attr('data-notex', 1)\n .call(Drawing.font, contours.labelfont);\n\n // use `bounds` only to keep labels away from the x/y boundaries\n // `constrainToCarpet` below ensures labels don't go off the\n // carpet edges\n var bounds = {\n left: 0,\n right: xLen,\n center: xLen / 2,\n top: 0,\n bottom: yLen,\n middle: yLen / 2\n };\n\n var plotDiagonal = Math.sqrt(xLen * xLen + yLen * yLen);\n\n // the path length to use to scale the number of labels to draw:\n var normLength = constants.LABELDISTANCE * plotDiagonal /\n Math.max(1, pathinfo.length / constants.LABELINCREASE);\n\n linegroup.each(function(d) {\n var textOpts = contourPlot.calcTextOpts(d.level, contourFormat, dummyText, gd);\n\n d3.select(this).selectAll('path').each(function(pathData) {\n var path = this;\n var pathBounds = Lib.getVisibleSegment(path, bounds, textOpts.height / 2);\n if(!pathBounds) return;\n\n constrainToCarpet(path, pathData, d, pathBounds, carpet, textOpts.height);\n\n if(pathBounds.len < (textOpts.width + textOpts.height) * constants.LABELMIN) return;\n\n var maxLabels = Math.min(Math.ceil(pathBounds.len / normLength),\n constants.LABELMAX);\n\n for(var i = 0; i < maxLabels; i++) {\n var loc = contourPlot.findBestTextLocation(path, pathBounds, textOpts,\n labelData, bounds);\n\n if(!loc) break;\n\n contourPlot.addLabelData(loc, textOpts, labelData, labelClipPathData);\n }\n });\n });\n\n dummyText.remove();\n\n contourPlot.drawLabels(labelGroup, labelData, gd, lineClip,\n clipLinesForLabels ? labelClipPathData : null);\n }\n\n if(showLabels && !showLines) linegroup.remove();\n}\n\n// figure out if this path goes off the edge of the carpet\n// and shorten the part we call visible to keep labels away from the edge\nfunction constrainToCarpet(path, pathData, levelData, pathBounds, carpet, textHeight) {\n var pathABData;\n for(var i = 0; i < levelData.pedgepaths.length; i++) {\n if(pathData === levelData.pedgepaths[i]) {\n pathABData = levelData.edgepaths[i];\n }\n }\n if(!pathABData) return;\n\n var aMin = carpet.a[0];\n var aMax = carpet.a[carpet.a.length - 1];\n var bMin = carpet.b[0];\n var bMax = carpet.b[carpet.b.length - 1];\n\n function getOffset(abPt, pathVector) {\n var offset = 0;\n var edgeVector;\n var dAB = 0.1;\n if(Math.abs(abPt[0] - aMin) < dAB || Math.abs(abPt[0] - aMax) < dAB) {\n edgeVector = normalizeVector(carpet.dxydb_rough(abPt[0], abPt[1], dAB));\n offset = Math.max(offset, textHeight * vectorTan(pathVector, edgeVector) / 2);\n }\n\n if(Math.abs(abPt[1] - bMin) < dAB || Math.abs(abPt[1] - bMax) < dAB) {\n edgeVector = normalizeVector(carpet.dxyda_rough(abPt[0], abPt[1], dAB));\n offset = Math.max(offset, textHeight * vectorTan(pathVector, edgeVector) / 2);\n }\n return offset;\n }\n\n var startVector = getUnitVector(path, 0, 1);\n var endVector = getUnitVector(path, pathBounds.total, pathBounds.total - 1);\n var minStart = getOffset(pathABData[0], startVector);\n var maxEnd = pathBounds.total - getOffset(pathABData[pathABData.length - 1], endVector);\n\n if(pathBounds.min < minStart) pathBounds.min = minStart;\n if(pathBounds.max > maxEnd) pathBounds.max = maxEnd;\n\n pathBounds.len = pathBounds.max - pathBounds.min;\n}\n\nfunction getUnitVector(path, p0, p1) {\n var pt0 = path.getPointAtLength(p0);\n var pt1 = path.getPointAtLength(p1);\n var dx = pt1.x - pt0.x;\n var dy = pt1.y - pt0.y;\n var len = Math.sqrt(dx * dx + dy * dy);\n return [dx / len, dy / len];\n}\n\nfunction normalizeVector(v) {\n var len = Math.sqrt(v[0] * v[0] + v[1] * v[1]);\n return [v[0] / len, v[1] / len];\n}\n\nfunction vectorTan(v0, v1) {\n var cos = Math.abs(v0[0] * v1[0] + v0[1] * v1[1]);\n var sin = Math.sqrt(1 - cos * cos);\n return sin / cos;\n}\n\nfunction makeBackground(plotgroup, clipsegments, xaxis, yaxis, isConstraint, coloring) {\n var seg, xp, yp, i;\n var bggroup = Lib.ensureSingle(plotgroup, 'g', 'contourbg');\n\n var bgfill = bggroup.selectAll('path')\n .data((coloring === 'fill' && !isConstraint) ? [0] : []);\n bgfill.enter().append('path');\n bgfill.exit().remove();\n\n var segs = [];\n for(i = 0; i < clipsegments.length; i++) {\n seg = clipsegments[i];\n xp = map1dArray([], seg.x, xaxis.c2p);\n yp = map1dArray([], seg.y, yaxis.c2p);\n segs.push(makepath(xp, yp, seg.bicubic));\n }\n\n bgfill\n .attr('d', 'M' + segs.join('L') + 'Z')\n .style('stroke', 'none');\n}\n\nfunction makeFills(trace, plotgroup, xa, ya, pathinfo, perimeter, ab2p, carpet, carpetcd, coloring, boundaryPath) {\n var hasFills = coloring === 'fill';\n\n // fills prefixBoundary in pathinfo items\n if(hasFills) {\n closeBoundaries(pathinfo, trace.contours);\n }\n\n var fillgroup = Lib.ensureSingle(plotgroup, 'g', 'contourfill');\n var fillitems = fillgroup.selectAll('path').data(hasFills ? pathinfo : []);\n fillitems.enter().append('path');\n fillitems.exit().remove();\n fillitems.each(function(pi) {\n // join all paths for this level together into a single path\n // first follow clockwise around the perimeter to close any open paths\n // if the whole perimeter is above this level, start with a path\n // enclosing the whole thing. With all that, the parity should mean\n // that we always fill everything above the contour, nothing below\n var fullpath = (pi.prefixBoundary ? boundaryPath : '') +\n joinAllPaths(trace, pi, perimeter, ab2p, carpet, carpetcd, xa, ya);\n\n if(!fullpath) {\n d3.select(this).remove();\n } else {\n d3.select(this)\n .attr('d', fullpath)\n .style('stroke', 'none');\n }\n });\n}\n\nfunction joinAllPaths(trace, pi, perimeter, ab2p, carpet, carpetcd, xa, ya) {\n var i;\n var fullpath = '';\n\n var startsleft = pi.edgepaths.map(function(v, i) { return i; });\n var newloop = true;\n var endpt, newendpt, cnt, nexti, possiblei, addpath;\n\n var atol = Math.abs(perimeter[0][0] - perimeter[2][0]) * 1e-4;\n var btol = Math.abs(perimeter[0][1] - perimeter[2][1]) * 1e-4;\n\n function istop(pt) { return Math.abs(pt[1] - perimeter[0][1]) < btol; }\n function isbottom(pt) { return Math.abs(pt[1] - perimeter[2][1]) < btol; }\n function isleft(pt) { return Math.abs(pt[0] - perimeter[0][0]) < atol; }\n function isright(pt) { return Math.abs(pt[0] - perimeter[2][0]) < atol; }\n\n function pathto(pt0, pt1) {\n var i, j, segments, axis;\n var path = '';\n\n if((istop(pt0) && !isright(pt0)) || (isbottom(pt0) && !isleft(pt0))) {\n axis = carpet.aaxis;\n segments = axisAlignedLine(carpet, carpetcd, [pt0[0], pt1[0]], 0.5 * (pt0[1] + pt1[1]));\n } else {\n axis = carpet.baxis;\n segments = axisAlignedLine(carpet, carpetcd, 0.5 * (pt0[0] + pt1[0]), [pt0[1], pt1[1]]);\n }\n\n for(i = 1; i < segments.length; i++) {\n path += axis.smoothing ? 'C' : 'L';\n for(j = 0; j < segments[i].length; j++) {\n var pt = segments[i][j];\n path += [xa.c2p(pt[0]), ya.c2p(pt[1])] + ' ';\n }\n }\n\n return path;\n }\n\n i = 0;\n endpt = null;\n while(startsleft.length) {\n var startpt = pi.edgepaths[i][0];\n\n if(endpt) {\n fullpath += pathto(endpt, startpt);\n }\n\n addpath = Drawing.smoothopen(pi.edgepaths[i].map(ab2p), pi.smoothing);\n fullpath += newloop ? addpath : addpath.replace(/^M/, 'L');\n startsleft.splice(startsleft.indexOf(i), 1);\n endpt = pi.edgepaths[i][pi.edgepaths[i].length - 1];\n nexti = -1;\n\n // now loop through sides, moving our endpoint until we find a new start\n for(cnt = 0; cnt < 4; cnt++) { // just to prevent infinite loops\n if(!endpt) {\n Lib.log('Missing end?', i, pi);\n break;\n }\n\n if(istop(endpt) && !isright(endpt)) {\n newendpt = perimeter[1]; // left top ---> right top\n } else if(isleft(endpt)) {\n newendpt = perimeter[0]; // left bottom ---> left top\n } else if(isbottom(endpt)) {\n newendpt = perimeter[3]; // right bottom\n } else if(isright(endpt)) {\n newendpt = perimeter[2]; // left bottom\n }\n\n for(possiblei = 0; possiblei < pi.edgepaths.length; possiblei++) {\n var ptNew = pi.edgepaths[possiblei][0];\n // is ptNew on the (horz. or vert.) segment from endpt to newendpt?\n if(Math.abs(endpt[0] - newendpt[0]) < atol) {\n if(Math.abs(endpt[0] - ptNew[0]) < atol &&\n (ptNew[1] - endpt[1]) * (newendpt[1] - ptNew[1]) >= 0) {\n newendpt = ptNew;\n nexti = possiblei;\n }\n } else if(Math.abs(endpt[1] - newendpt[1]) < btol) {\n if(Math.abs(endpt[1] - ptNew[1]) < btol &&\n (ptNew[0] - endpt[0]) * (newendpt[0] - ptNew[0]) >= 0) {\n newendpt = ptNew;\n nexti = possiblei;\n }\n } else {\n Lib.log('endpt to newendpt is not vert. or horz.', endpt, newendpt, ptNew);\n }\n }\n\n if(nexti >= 0) break;\n fullpath += pathto(endpt, newendpt);\n endpt = newendpt;\n }\n\n if(nexti === pi.edgepaths.length) {\n Lib.log('unclosed perimeter path');\n break;\n }\n\n i = nexti;\n\n // if we closed back on a loop we already included,\n // close it and start a new loop\n newloop = (startsleft.indexOf(i) === -1);\n if(newloop) {\n i = startsleft[0];\n fullpath += pathto(endpt, newendpt) + 'Z';\n endpt = null;\n }\n }\n\n // finally add the interior paths\n for(i = 0; i < pi.paths.length; i++) {\n fullpath += Drawing.smoothclosed(pi.paths[i].map(ab2p), pi.smoothing);\n }\n\n return fullpath;\n}\n\n},{\"../../components/drawing\":388,\"../../lib\":503,\"../carpet/axis_aligned_line\":692,\"../carpet/lookup_carpetid\":708,\"../carpet/makepath\":709,\"../carpet/map_1d_array\":710,\"../contour/close_boundaries\":737,\"../contour/constants\":739,\"../contour/convert_to_constraints\":743,\"../contour/empty_pathinfo\":745,\"../contour/find_all_paths\":747,\"../contour/make_crossings\":752,\"../contour/plot\":753,\"@plotly/d3\":58}],762:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar scatterMapboxAttrs = _dereq_('../scattermapbox/attributes');\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\n/*\n * - https://docs.mapbox.com/help/tutorials/make-a-heatmap-with-mapbox-gl-js/\n * - https://docs.mapbox.com/mapbox-gl-js/example/heatmap-layer/\n * - https://docs.mapbox.com/mapbox-gl-js/style-spec/#layers-heatmap\n * - https://blog.mapbox.com/introducing-heatmaps-in-mapbox-gl-js-71355ada9e6c\n *\n * Gotchas:\n * - https://github.com/mapbox/mapbox-gl-js/issues/6463\n * - https://github.com/mapbox/mapbox-gl-js/issues/6112\n */\n\n/*\n *\n * In mathematical terms, Mapbox GL heatmaps are a bivariate (2D) kernel density\n * estimation with a Gaussian kernel. It means that each data point has an area\n * of “influence” around it (called a kernel) where the numerical value of\n * influence (which we call density) decreases as you go further from the point.\n * If we sum density values of all points in every pixel of the screen, we get a\n * combined density value which we then map to a heatmap color.\n *\n */\n\nmodule.exports = extendFlat({\n lon: scatterMapboxAttrs.lon,\n lat: scatterMapboxAttrs.lat,\n\n z: {\n valType: 'data_array',\n editType: 'calc',\n },\n\n radius: {\n valType: 'number',\n editType: 'plot',\n arrayOk: true,\n min: 1,\n dflt: 30,\n },\n\n below: {\n valType: 'string',\n editType: 'plot',\n },\n\n text: scatterMapboxAttrs.text,\n hovertext: scatterMapboxAttrs.hovertext,\n\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {\n flags: ['lon', 'lat', 'z', 'text', 'name']\n }),\n hovertemplate: hovertemplateAttrs(),\n showlegend: extendFlat({}, baseAttrs.showlegend, {dflt: false})\n},\n colorScaleAttrs('', {\n cLetter: 'z',\n editTypeOverride: 'calc'\n })\n);\n\n},{\"../../components/colorscale/attributes\":373,\"../../lib/extend\":493,\"../../plots/attributes\":550,\"../../plots/template_attributes\":633,\"../scattermapbox/attributes\":990}],763:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar isArrayOrTypedArray = _dereq_('../../lib').isArrayOrTypedArray;\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nvar colorscaleCalc = _dereq_('../../components/colorscale/calc');\nvar _ = _dereq_('../../lib')._;\n\nmodule.exports = function calc(gd, trace) {\n var len = trace._length;\n var calcTrace = new Array(len);\n var z = trace.z;\n var hasZ = isArrayOrTypedArray(z) && z.length;\n\n for(var i = 0; i < len; i++) {\n var cdi = calcTrace[i] = {};\n\n var lon = trace.lon[i];\n var lat = trace.lat[i];\n\n cdi.lonlat = isNumeric(lon) && isNumeric(lat) ?\n [+lon, +lat] :\n [BADNUM, BADNUM];\n\n if(hasZ) {\n var zi = z[i];\n cdi.z = isNumeric(zi) ? zi : BADNUM;\n }\n }\n\n colorscaleCalc(gd, trace, {\n vals: hasZ ? z : [0, 1],\n containerStr: '',\n cLetter: 'z'\n });\n\n if(len) {\n calcTrace[0].t = {\n labels: {\n lat: _(gd, 'lat:') + ' ',\n lon: _(gd, 'lon:') + ' '\n }\n };\n }\n\n return calcTrace;\n};\n\n},{\"../../components/colorscale/calc\":374,\"../../constants/numerical\":479,\"../../lib\":503,\"fast-isnumeric\":190}],764:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Lib = _dereq_('../../lib');\nvar Color = _dereq_('../../components/color');\nvar Colorscale = _dereq_('../../components/colorscale');\n\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\nvar makeBlank = _dereq_('../../lib/geojson_utils').makeBlank;\n\nmodule.exports = function convert(calcTrace) {\n var trace = calcTrace[0].trace;\n var isVisible = (trace.visible === true && trace._length !== 0);\n\n var heatmap = {\n layout: {visibility: 'none'},\n paint: {}\n };\n\n var opts = trace._opts = {\n heatmap: heatmap,\n geojson: makeBlank()\n };\n\n // early return if not visible or placeholder\n if(!isVisible) return opts;\n\n var features = [];\n var i;\n\n var z = trace.z;\n var radius = trace.radius;\n var hasZ = Lib.isArrayOrTypedArray(z) && z.length;\n var hasArrayRadius = Lib.isArrayOrTypedArray(radius);\n\n for(i = 0; i < calcTrace.length; i++) {\n var cdi = calcTrace[i];\n var lonlat = cdi.lonlat;\n\n if(lonlat[0] !== BADNUM) {\n var props = {};\n\n if(hasZ) {\n var zi = cdi.z;\n props.z = zi !== BADNUM ? zi : 0;\n }\n if(hasArrayRadius) {\n props.r = (isNumeric(radius[i]) && radius[i] > 0) ? +radius[i] : 0;\n }\n\n features.push({\n type: 'Feature',\n geometry: {type: 'Point', coordinates: lonlat},\n properties: props\n });\n }\n }\n\n var cOpts = Colorscale.extractOpts(trace);\n var scl = cOpts.reversescale ?\n Colorscale.flipScale(cOpts.colorscale) :\n cOpts.colorscale;\n\n // Add alpha channel to first colorscale step.\n // If not, we would essentially color the entire map.\n // See https://docs.mapbox.com/mapbox-gl-js/example/heatmap-layer/\n var scl01 = scl[0][1];\n var color0 = Color.opacity(scl01) < 1 ? scl01 : Color.addOpacity(scl01, 0);\n\n var heatmapColor = [\n 'interpolate', ['linear'],\n ['heatmap-density'],\n 0, color0\n ];\n for(i = 1; i < scl.length; i++) {\n heatmapColor.push(scl[i][0], scl[i][1]);\n }\n\n // Those \"weights\" have to be in [0, 1], we can do this either:\n // - as here using a mapbox-gl expression\n // - or, scale the 'z' property in the feature loop\n var zExp = [\n 'interpolate', ['linear'],\n ['get', 'z'],\n cOpts.min, 0,\n cOpts.max, 1\n ];\n\n Lib.extendFlat(opts.heatmap.paint, {\n 'heatmap-weight': hasZ ? zExp : 1 / (cOpts.max - cOpts.min),\n\n 'heatmap-color': heatmapColor,\n\n 'heatmap-radius': hasArrayRadius ?\n {type: 'identity', property: 'r'} :\n trace.radius,\n\n 'heatmap-opacity': trace.opacity\n });\n\n opts.geojson = {type: 'FeatureCollection', features: features};\n opts.heatmap.layout.visibility = 'visible';\n\n return opts;\n};\n\n},{\"../../components/color\":366,\"../../components/colorscale\":378,\"../../constants/numerical\":479,\"../../lib\":503,\"../../lib/geojson_utils\":497,\"fast-isnumeric\":190}],765:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar colorscaleDefaults = _dereq_('../../components/colorscale/defaults');\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var lon = coerce('lon') || [];\n var lat = coerce('lat') || [];\n\n var len = Math.min(lon.length, lat.length);\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n traceOut._length = len;\n\n coerce('z');\n coerce('radius');\n coerce('below');\n\n coerce('text');\n coerce('hovertext');\n coerce('hovertemplate');\n\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: '', cLetter: 'z'});\n};\n\n},{\"../../components/colorscale/defaults\":376,\"../../lib\":503,\"./attributes\":762}],766:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function eventData(out, pt) {\n out.lon = pt.lon;\n out.lat = pt.lat;\n out.z = pt.z;\n return out;\n};\n\n},{}],767:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar scatterMapboxHoverPoints = _dereq_('../scattermapbox/hover').hoverPoints;\nvar getExtraText = _dereq_('../scattermapbox/hover').getExtraText;\n\nmodule.exports = function hoverPoints(pointData, xval, yval) {\n var pts = scatterMapboxHoverPoints(pointData, xval, yval);\n if(!pts) return;\n\n var newPointData = pts[0];\n var cd = newPointData.cd;\n var trace = cd[0].trace;\n var di = cd[newPointData.index];\n\n // let Fx.hover pick the color\n delete newPointData.color;\n\n if('z' in di) {\n var ax = newPointData.subplot.mockAxis;\n newPointData.z = di.z;\n newPointData.zLabel = Axes.tickText(ax, ax.c2l(di.z), 'hover').text;\n }\n\n newPointData.extraText = getExtraText(trace, di, cd[0].t.labels);\n\n return [newPointData];\n};\n\n},{\"../../plots/cartesian/axes\":554,\"../scattermapbox/hover\":995}],768:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n colorbar: _dereq_('../heatmap/colorbar'),\n formatLabels: _dereq_('../scattermapbox/format_labels'),\n calc: _dereq_('./calc'),\n plot: _dereq_('./plot'),\n hoverPoints: _dereq_('./hover'),\n eventData: _dereq_('./event_data'),\n\n getBelow: function(trace, subplot) {\n var mapLayers = subplot.getMapLayers();\n\n // find first layer with `type: 'symbol'`,\n // that is not a plotly layer\n for(var i = 0; i < mapLayers.length; i++) {\n var layer = mapLayers[i];\n var layerId = layer.id;\n if(layer.type === 'symbol' &&\n typeof layerId === 'string' && layerId.indexOf('plotly-') === -1\n ) {\n return layerId;\n }\n }\n },\n\n moduleType: 'trace',\n name: 'densitymapbox',\n basePlotModule: _dereq_('../../plots/mapbox'),\n categories: ['mapbox', 'gl', 'showLegend'],\n meta: {\n hr_name: 'density_mapbox',\n }\n};\n\n},{\"../../plots/mapbox\":613,\"../heatmap/colorbar\":795,\"../scattermapbox/format_labels\":994,\"./attributes\":762,\"./calc\":763,\"./defaults\":765,\"./event_data\":766,\"./hover\":767,\"./plot\":769}],769:[function(_dereq_,module,exports){\n'use strict';\n\nvar convert = _dereq_('./convert');\nvar LAYER_PREFIX = _dereq_('../../plots/mapbox/constants').traceLayerPrefix;\n\nfunction DensityMapbox(subplot, uid) {\n this.type = 'densitymapbox';\n this.subplot = subplot;\n this.uid = uid;\n\n this.sourceId = 'source-' + uid;\n\n this.layerList = [\n ['heatmap', LAYER_PREFIX + uid + '-heatmap']\n ];\n\n // previous 'below' value,\n // need this to update it properly\n this.below = null;\n}\n\nvar proto = DensityMapbox.prototype;\n\nproto.update = function(calcTrace) {\n var subplot = this.subplot;\n var layerList = this.layerList;\n var optsAll = convert(calcTrace);\n var below = subplot.belowLookup['trace-' + this.uid];\n\n subplot.map\n .getSource(this.sourceId)\n .setData(optsAll.geojson);\n\n if(below !== this.below) {\n this._removeLayers();\n this._addLayers(optsAll, below);\n this.below = below;\n }\n\n for(var i = 0; i < layerList.length; i++) {\n var item = layerList[i];\n var k = item[0];\n var id = item[1];\n var opts = optsAll[k];\n\n subplot.setOptions(id, 'setLayoutProperty', opts.layout);\n\n if(opts.layout.visibility === 'visible') {\n subplot.setOptions(id, 'setPaintProperty', opts.paint);\n }\n }\n};\n\nproto._addLayers = function(optsAll, below) {\n var subplot = this.subplot;\n var layerList = this.layerList;\n var sourceId = this.sourceId;\n\n for(var i = 0; i < layerList.length; i++) {\n var item = layerList[i];\n var k = item[0];\n var opts = optsAll[k];\n\n subplot.addLayer({\n type: k,\n id: item[1],\n source: sourceId,\n layout: opts.layout,\n paint: opts.paint\n }, below);\n }\n};\n\nproto._removeLayers = function() {\n var map = this.subplot.map;\n var layerList = this.layerList;\n\n for(var i = layerList.length - 1; i >= 0; i--) {\n map.removeLayer(layerList[i][1]);\n }\n};\n\nproto.dispose = function() {\n var map = this.subplot.map;\n this._removeLayers();\n map.removeSource(this.sourceId);\n};\n\nmodule.exports = function createDensityMapbox(subplot, calcTrace) {\n var trace = calcTrace[0].trace;\n var densityMapbox = new DensityMapbox(subplot, trace.uid);\n var sourceId = densityMapbox.sourceId;\n var optsAll = convert(calcTrace);\n var below = densityMapbox.below = subplot.belowLookup['trace-' + trace.uid];\n\n subplot.map.addSource(sourceId, {\n type: 'geojson',\n data: optsAll.geojson\n });\n\n densityMapbox._addLayers(optsAll, below);\n\n return densityMapbox;\n};\n\n},{\"../../plots/mapbox/constants\":611,\"./convert\":764}],770:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\n// arrayOk attributes, merge them into calcdata array\nmodule.exports = function arraysToCalcdata(cd, trace) {\n for(var i = 0; i < cd.length; i++) cd[i].i = i;\n\n Lib.mergeArray(trace.text, cd, 'tx');\n Lib.mergeArray(trace.hovertext, cd, 'htx');\n\n var marker = trace.marker;\n if(marker) {\n Lib.mergeArray(marker.opacity, cd, 'mo');\n Lib.mergeArray(marker.color, cd, 'mc');\n\n var markerLine = marker.line;\n if(markerLine) {\n Lib.mergeArray(markerLine.color, cd, 'mlc');\n Lib.mergeArrayCastPositive(markerLine.width, cd, 'mlw');\n }\n }\n};\n\n},{\"../../lib\":503}],771:[function(_dereq_,module,exports){\n'use strict';\n\nvar barAttrs = _dereq_('../bar/attributes');\nvar lineAttrs = _dereq_('../scatter/attributes').line;\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\nvar constants = _dereq_('./constants');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar Color = _dereq_('../../components/color');\n\nmodule.exports = {\n x: barAttrs.x,\n x0: barAttrs.x0,\n dx: barAttrs.dx,\n y: barAttrs.y,\n y0: barAttrs.y0,\n dy: barAttrs.dy,\n\n xperiod: barAttrs.xperiod,\n yperiod: barAttrs.yperiod,\n xperiod0: barAttrs.xperiod0,\n yperiod0: barAttrs.yperiod0,\n xperiodalignment: barAttrs.xperiodalignment,\n yperiodalignment: barAttrs.yperiodalignment,\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n\n hovertext: barAttrs.hovertext,\n hovertemplate: hovertemplateAttrs({}, {\n keys: constants.eventDataKeys\n }),\n\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {\n flags: ['name', 'x', 'y', 'text', 'percent initial', 'percent previous', 'percent total']\n }),\n\n textinfo: {\n valType: 'flaglist',\n flags: ['label', 'text', 'percent initial', 'percent previous', 'percent total', 'value'],\n extras: ['none'],\n editType: 'plot',\n arrayOk: false,\n },\n // TODO: incorporate `label` and `value` in the eventData\n texttemplate: texttemplateAttrs({editType: 'plot'}, {\n keys: constants.eventDataKeys.concat(['label', 'value'])\n }),\n\n text: barAttrs.text,\n textposition: barAttrs.textposition,\n insidetextanchor: extendFlat({}, barAttrs.insidetextanchor, {dflt: 'middle'}),\n textangle: extendFlat({}, barAttrs.textangle, {dflt: 0}),\n textfont: barAttrs.textfont,\n insidetextfont: barAttrs.insidetextfont,\n outsidetextfont: barAttrs.outsidetextfont,\n constraintext: barAttrs.constraintext,\n cliponaxis: barAttrs.cliponaxis,\n\n orientation: extendFlat({}, barAttrs.orientation, {\n }),\n\n offset: extendFlat({}, barAttrs.offset, {arrayOk: false}),\n width: extendFlat({}, barAttrs.width, {arrayOk: false}),\n\n marker: funnelMarker(),\n\n connector: {\n fillcolor: {\n valType: 'color',\n editType: 'style',\n },\n line: {\n color: extendFlat({}, lineAttrs.color, {dflt: Color.defaultLine}),\n width: extendFlat({}, lineAttrs.width, {\n dflt: 0,\n editType: 'plot',\n }),\n dash: lineAttrs.dash,\n editType: 'style'\n },\n visible: {\n valType: 'boolean',\n dflt: true,\n editType: 'plot',\n },\n editType: 'plot'\n },\n\n offsetgroup: barAttrs.offsetgroup,\n alignmentgroup: barAttrs.alignmentgroup\n};\n\nfunction funnelMarker() {\n var marker = extendFlat({}, barAttrs.marker);\n delete marker.pattern;\n return marker;\n}\n\n},{\"../../components/color\":366,\"../../lib/extend\":493,\"../../plots/attributes\":550,\"../../plots/cartesian/axis_format_attributes\":557,\"../../plots/template_attributes\":633,\"../bar/attributes\":648,\"../scatter/attributes\":925,\"./constants\":773}],772:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar alignPeriod = _dereq_('../../plots/cartesian/align_period');\nvar arraysToCalcdata = _dereq_('./arrays_to_calcdata');\nvar calcSelection = _dereq_('../scatter/calc_selection');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nmodule.exports = function calc(gd, trace) {\n var xa = Axes.getFromId(gd, trace.xaxis || 'x');\n var ya = Axes.getFromId(gd, trace.yaxis || 'y');\n var size, pos, origPos, pObj, hasPeriod, pLetter, i, cdi;\n\n if(trace.orientation === 'h') {\n size = xa.makeCalcdata(trace, 'x');\n origPos = ya.makeCalcdata(trace, 'y');\n pObj = alignPeriod(trace, ya, 'y', origPos);\n hasPeriod = !!trace.yperiodalignment;\n pLetter = 'y';\n } else {\n size = ya.makeCalcdata(trace, 'y');\n origPos = xa.makeCalcdata(trace, 'x');\n pObj = alignPeriod(trace, xa, 'x', origPos);\n hasPeriod = !!trace.xperiodalignment;\n pLetter = 'x';\n }\n pos = pObj.vals;\n\n // create the \"calculated data\" to plot\n var serieslen = Math.min(pos.length, size.length);\n var cd = new Array(serieslen);\n\n // Unlike other bar-like traces funnels do not support base attribute.\n // bases for funnels are computed internally in a way that\n // the mid-point of each bar are located on the axis line.\n trace._base = [];\n\n // set position and size\n for(i = 0; i < serieslen; i++) {\n // treat negative values as bad numbers\n if(size[i] < 0) size[i] = BADNUM;\n\n var connectToNext = false;\n if(size[i] !== BADNUM) {\n if(i + 1 < serieslen && size[i + 1] !== BADNUM) {\n connectToNext = true;\n }\n }\n\n cdi = cd[i] = {\n p: pos[i],\n s: size[i],\n cNext: connectToNext\n };\n\n trace._base[i] = -0.5 * cdi.s;\n\n if(hasPeriod) {\n cd[i].orig_p = origPos[i]; // used by hover\n cd[i][pLetter + 'End'] = pObj.ends[i];\n cd[i][pLetter + 'Start'] = pObj.starts[i];\n }\n\n if(trace.ids) {\n cdi.id = String(trace.ids[i]);\n }\n\n // calculate total values\n if(i === 0) cd[0].vTotal = 0;\n cd[0].vTotal += fixNum(cdi.s);\n\n // ratio from initial value\n cdi.begR = fixNum(cdi.s) / fixNum(cd[0].s);\n }\n\n var prevGoodNum;\n for(i = 0; i < serieslen; i++) {\n cdi = cd[i];\n if(cdi.s === BADNUM) continue;\n\n // ratio of total value\n cdi.sumR = cdi.s / cd[0].vTotal;\n\n // ratio of previous (good) value\n cdi.difR = (prevGoodNum !== undefined) ? cdi.s / prevGoodNum : 1;\n\n prevGoodNum = cdi.s;\n }\n\n arraysToCalcdata(cd, trace);\n calcSelection(cd, trace);\n\n return cd;\n};\n\nfunction fixNum(a) {\n return (a === BADNUM) ? 0 : a;\n}\n\n},{\"../../constants/numerical\":479,\"../../plots/cartesian/align_period\":551,\"../../plots/cartesian/axes\":554,\"../scatter/calc_selection\":927,\"./arrays_to_calcdata\":770}],773:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n eventDataKeys: [\n 'percentInitial',\n 'percentPrevious',\n 'percentTotal'\n ]\n};\n\n},{}],774:[function(_dereq_,module,exports){\n'use strict';\n\nvar setGroupPositions = _dereq_('../bar/cross_trace_calc').setGroupPositions;\n\nmodule.exports = function crossTraceCalc(gd, plotinfo) {\n var fullLayout = gd._fullLayout;\n var fullData = gd._fullData;\n var calcdata = gd.calcdata;\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n var funnels = [];\n var funnelsVert = [];\n var funnelsHorz = [];\n var cd, i;\n\n for(i = 0; i < fullData.length; i++) {\n var fullTrace = fullData[i];\n var isHorizontal = (fullTrace.orientation === 'h');\n\n if(\n fullTrace.visible === true &&\n fullTrace.xaxis === xa._id &&\n fullTrace.yaxis === ya._id &&\n fullTrace.type === 'funnel'\n ) {\n cd = calcdata[i];\n\n if(isHorizontal) {\n funnelsHorz.push(cd);\n } else {\n funnelsVert.push(cd);\n }\n\n funnels.push(cd);\n }\n }\n\n var opts = {\n mode: fullLayout.funnelmode,\n norm: fullLayout.funnelnorm,\n gap: fullLayout.funnelgap,\n groupgap: fullLayout.funnelgroupgap\n };\n\n setGroupPositions(gd, xa, ya, funnelsVert, opts);\n setGroupPositions(gd, ya, xa, funnelsHorz, opts);\n\n for(i = 0; i < funnels.length; i++) {\n cd = funnels[i];\n\n for(var j = 0; j < cd.length; j++) {\n if(j + 1 < cd.length) {\n cd[j].nextP0 = cd[j + 1].p0;\n cd[j].nextS0 = cd[j + 1].s0;\n\n cd[j].nextP1 = cd[j + 1].p1;\n cd[j].nextS1 = cd[j + 1].s1;\n }\n }\n }\n};\n\n},{\"../bar/cross_trace_calc\":651}],775:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar handleGroupingDefaults = _dereq_('../bar/defaults').handleGroupingDefaults;\nvar handleText = _dereq_('../bar/defaults').handleText;\nvar handleXYDefaults = _dereq_('../scatter/xy_defaults');\nvar handlePeriodDefaults = _dereq_('../scatter/period_defaults');\nvar attributes = _dereq_('./attributes');\nvar Color = _dereq_('../../components/color');\n\nfunction supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var len = handleXYDefaults(traceIn, traceOut, layout, coerce);\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n handlePeriodDefaults(traceIn, traceOut, layout, coerce);\n coerce('xhoverformat');\n coerce('yhoverformat');\n\n coerce('orientation', (traceOut.y && !traceOut.x) ? 'v' : 'h');\n coerce('offset');\n coerce('width');\n\n var text = coerce('text');\n\n coerce('hovertext');\n coerce('hovertemplate');\n\n var textposition = coerce('textposition');\n handleText(traceIn, traceOut, layout, coerce, textposition, {\n moduleHasSelected: false,\n moduleHasUnselected: false,\n moduleHasConstrain: true,\n moduleHasCliponaxis: true,\n moduleHasTextangle: true,\n moduleHasInsideanchor: true\n });\n\n if(traceOut.textposition !== 'none' && !traceOut.texttemplate) {\n coerce('textinfo', Array.isArray(text) ? 'text+value' : 'value');\n }\n\n var markerColor = coerce('marker.color', defaultColor);\n coerce('marker.line.color', Color.defaultLine);\n coerce('marker.line.width');\n\n var connectorVisible = coerce('connector.visible');\n if(connectorVisible) {\n coerce('connector.fillcolor', defaultFillColor(markerColor));\n\n var connectorLineWidth = coerce('connector.line.width');\n if(connectorLineWidth) {\n coerce('connector.line.color');\n coerce('connector.line.dash');\n }\n }\n}\n\nfunction defaultFillColor(markerColor) {\n var cBase = Lib.isArrayOrTypedArray(markerColor) ? '#000' : markerColor;\n\n return Color.addOpacity(cBase, 0.5 * Color.opacity(cBase));\n}\n\nfunction crossTraceDefaults(fullData, fullLayout) {\n var traceIn, traceOut;\n\n function coerce(attr) {\n return Lib.coerce(traceOut._input, traceOut, attributes, attr);\n }\n\n if(fullLayout.funnelmode === 'group') {\n for(var i = 0; i < fullData.length; i++) {\n traceOut = fullData[i];\n traceIn = traceOut._input;\n\n handleGroupingDefaults(traceIn, traceOut, fullLayout, coerce);\n }\n }\n}\n\nmodule.exports = {\n supplyDefaults: supplyDefaults,\n crossTraceDefaults: crossTraceDefaults\n};\n\n},{\"../../components/color\":366,\"../../lib\":503,\"../bar/defaults\":652,\"../scatter/period_defaults\":945,\"../scatter/xy_defaults\":952,\"./attributes\":771}],776:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function eventData(out, pt /* , trace, cd, pointNumber */) {\n // standard cartesian event data\n out.x = 'xVal' in pt ? pt.xVal : pt.x;\n out.y = 'yVal' in pt ? pt.yVal : pt.y;\n\n // for funnel\n if('percentInitial' in pt) out.percentInitial = pt.percentInitial;\n if('percentPrevious' in pt) out.percentPrevious = pt.percentPrevious;\n if('percentTotal' in pt) out.percentTotal = pt.percentTotal;\n\n if(pt.xa) out.xaxis = pt.xa;\n if(pt.ya) out.yaxis = pt.ya;\n\n return out;\n};\n\n},{}],777:[function(_dereq_,module,exports){\n'use strict';\n\nvar opacity = _dereq_('../../components/color').opacity;\nvar hoverOnBars = _dereq_('../bar/hover').hoverOnBars;\nvar formatPercent = _dereq_('../../lib').formatPercent;\n\nmodule.exports = function hoverPoints(pointData, xval, yval, hovermode, opts) {\n var point = hoverOnBars(pointData, xval, yval, hovermode, opts);\n if(!point) return;\n\n var cd = point.cd;\n var trace = cd[0].trace;\n var isHorizontal = (trace.orientation === 'h');\n\n // the closest data point\n var index = point.index;\n var di = cd[index];\n\n var sizeLetter = isHorizontal ? 'x' : 'y';\n point[sizeLetter + 'LabelVal'] = di.s;\n\n point.percentInitial = di.begR;\n point.percentInitialLabel = formatPercent(di.begR, 1);\n\n point.percentPrevious = di.difR;\n point.percentPreviousLabel = formatPercent(di.difR, 1);\n\n point.percentTotal = di.sumR;\n point.percentTotalLabel = formatPercent(di.sumR, 1);\n\n var hoverinfo = di.hi || trace.hoverinfo;\n var text = [];\n if(hoverinfo && hoverinfo !== 'none' && hoverinfo !== 'skip') {\n var isAll = (hoverinfo === 'all');\n var parts = hoverinfo.split('+');\n\n var hasFlag = function(flag) { return isAll || parts.indexOf(flag) !== -1; };\n\n if(hasFlag('percent initial')) {\n text.push(point.percentInitialLabel + ' of initial');\n }\n if(hasFlag('percent previous')) {\n text.push(point.percentPreviousLabel + ' of previous');\n }\n if(hasFlag('percent total')) {\n text.push(point.percentTotalLabel + ' of total');\n }\n }\n point.extraText = text.join('
');\n\n point.color = getTraceColor(trace, di);\n\n return [point];\n};\n\nfunction getTraceColor(trace, di) {\n var cont = trace.marker;\n var mc = di.mc || cont.color;\n var mlc = di.mlc || cont.line.color;\n var mlw = di.mlw || cont.line.width;\n if(opacity(mc)) return mc;\n else if(opacity(mlc) && mlw) return mlc;\n}\n\n},{\"../../components/color\":366,\"../../lib\":503,\"../bar/hover\":655}],778:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n layoutAttributes: _dereq_('./layout_attributes'),\n supplyDefaults: _dereq_('./defaults').supplyDefaults,\n crossTraceDefaults: _dereq_('./defaults').crossTraceDefaults,\n supplyLayoutDefaults: _dereq_('./layout_defaults'),\n calc: _dereq_('./calc'),\n crossTraceCalc: _dereq_('./cross_trace_calc'),\n plot: _dereq_('./plot'),\n style: _dereq_('./style').style,\n hoverPoints: _dereq_('./hover'),\n eventData: _dereq_('./event_data'),\n\n selectPoints: _dereq_('../bar/select'),\n\n moduleType: 'trace',\n name: 'funnel',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: ['bar-like', 'cartesian', 'svg', 'oriented', 'showLegend', 'zoomScale'],\n meta: {\n }\n};\n\n},{\"../../plots/cartesian\":568,\"../bar/select\":660,\"./attributes\":771,\"./calc\":772,\"./cross_trace_calc\":774,\"./defaults\":775,\"./event_data\":776,\"./hover\":777,\"./layout_attributes\":779,\"./layout_defaults\":780,\"./plot\":781,\"./style\":782}],779:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n funnelmode: {\n valType: 'enumerated',\n values: ['stack', 'group', 'overlay'],\n dflt: 'stack',\n editType: 'calc',\n },\n funnelgap: {\n valType: 'number',\n min: 0,\n max: 1,\n editType: 'calc',\n },\n funnelgroupgap: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0,\n editType: 'calc',\n }\n};\n\n},{}],780:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar layoutAttributes = _dereq_('./layout_attributes');\n\nmodule.exports = function(layoutIn, layoutOut, fullData) {\n var hasTraceType = false;\n\n function coerce(attr, dflt) {\n return Lib.coerce(layoutIn, layoutOut, layoutAttributes, attr, dflt);\n }\n\n for(var i = 0; i < fullData.length; i++) {\n var trace = fullData[i];\n\n if(trace.visible && trace.type === 'funnel') {\n hasTraceType = true;\n break;\n }\n }\n\n if(hasTraceType) {\n coerce('funnelmode');\n coerce('funnelgap', 0.2);\n coerce('funnelgroupgap');\n }\n};\n\n},{\"../../lib\":503,\"./layout_attributes\":779}],781:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Lib = _dereq_('../../lib');\nvar Drawing = _dereq_('../../components/drawing');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\nvar barPlot = _dereq_('../bar/plot');\nvar clearMinTextSize = _dereq_('../bar/uniform_text').clearMinTextSize;\n\nmodule.exports = function plot(gd, plotinfo, cdModule, traceLayer) {\n var fullLayout = gd._fullLayout;\n\n clearMinTextSize('funnel', fullLayout);\n\n plotConnectorRegions(gd, plotinfo, cdModule, traceLayer);\n plotConnectorLines(gd, plotinfo, cdModule, traceLayer);\n\n barPlot.plot(gd, plotinfo, cdModule, traceLayer, {\n mode: fullLayout.funnelmode,\n norm: fullLayout.funnelmode,\n gap: fullLayout.funnelgap,\n groupgap: fullLayout.funnelgroupgap\n });\n};\n\nfunction plotConnectorRegions(gd, plotinfo, cdModule, traceLayer) {\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n\n Lib.makeTraceGroups(traceLayer, cdModule, 'trace bars').each(function(cd) {\n var plotGroup = d3.select(this);\n var trace = cd[0].trace;\n\n var group = Lib.ensureSingle(plotGroup, 'g', 'regions');\n\n if(!trace.connector || !trace.connector.visible) {\n group.remove();\n return;\n }\n\n var isHorizontal = (trace.orientation === 'h');\n\n var connectors = group.selectAll('g.region').data(Lib.identity);\n\n connectors.enter().append('g')\n .classed('region', true);\n\n connectors.exit().remove();\n\n var len = connectors.size();\n\n connectors.each(function(di, i) {\n // don't draw lines between nulls\n if(i !== len - 1 && !di.cNext) return;\n\n var xy = getXY(di, xa, ya, isHorizontal);\n var x = xy[0];\n var y = xy[1];\n\n var shape = '';\n\n if(\n x[0] !== BADNUM && y[0] !== BADNUM &&\n x[1] !== BADNUM && y[1] !== BADNUM &&\n x[2] !== BADNUM && y[2] !== BADNUM &&\n x[3] !== BADNUM && y[3] !== BADNUM\n ) {\n if(isHorizontal) {\n shape += 'M' + x[0] + ',' + y[1] + 'L' + x[2] + ',' + y[2] + 'H' + x[3] + 'L' + x[1] + ',' + y[1] + 'Z';\n } else {\n shape += 'M' + x[1] + ',' + y[1] + 'L' + x[2] + ',' + y[3] + 'V' + y[2] + 'L' + x[1] + ',' + y[0] + 'Z';\n }\n }\n\n if(shape === '') shape = 'M0,0Z';\n\n Lib.ensureSingle(d3.select(this), 'path')\n .attr('d', shape)\n .call(Drawing.setClipUrl, plotinfo.layerClipId, gd);\n });\n });\n}\n\nfunction plotConnectorLines(gd, plotinfo, cdModule, traceLayer) {\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n\n Lib.makeTraceGroups(traceLayer, cdModule, 'trace bars').each(function(cd) {\n var plotGroup = d3.select(this);\n var trace = cd[0].trace;\n\n var group = Lib.ensureSingle(plotGroup, 'g', 'lines');\n\n if(!trace.connector || !trace.connector.visible || !trace.connector.line.width) {\n group.remove();\n return;\n }\n\n var isHorizontal = (trace.orientation === 'h');\n\n var connectors = group.selectAll('g.line').data(Lib.identity);\n\n connectors.enter().append('g')\n .classed('line', true);\n\n connectors.exit().remove();\n\n var len = connectors.size();\n\n connectors.each(function(di, i) {\n // don't draw lines between nulls\n if(i !== len - 1 && !di.cNext) return;\n\n var xy = getXY(di, xa, ya, isHorizontal);\n var x = xy[0];\n var y = xy[1];\n\n var shape = '';\n\n if(x[3] !== undefined && y[3] !== undefined) {\n if(isHorizontal) {\n shape += 'M' + x[0] + ',' + y[1] + 'L' + x[2] + ',' + y[2];\n shape += 'M' + x[1] + ',' + y[1] + 'L' + x[3] + ',' + y[2];\n } else {\n shape += 'M' + x[1] + ',' + y[1] + 'L' + x[2] + ',' + y[3];\n shape += 'M' + x[1] + ',' + y[0] + 'L' + x[2] + ',' + y[2];\n }\n }\n\n if(shape === '') shape = 'M0,0Z';\n\n Lib.ensureSingle(d3.select(this), 'path')\n .attr('d', shape)\n .call(Drawing.setClipUrl, plotinfo.layerClipId, gd);\n });\n });\n}\n\nfunction getXY(di, xa, ya, isHorizontal) {\n var s = [];\n var p = [];\n\n var sAxis = isHorizontal ? xa : ya;\n var pAxis = isHorizontal ? ya : xa;\n\n s[0] = sAxis.c2p(di.s0, true);\n p[0] = pAxis.c2p(di.p0, true);\n\n s[1] = sAxis.c2p(di.s1, true);\n p[1] = pAxis.c2p(di.p1, true);\n\n s[2] = sAxis.c2p(di.nextS0, true);\n p[2] = pAxis.c2p(di.nextP0, true);\n\n s[3] = sAxis.c2p(di.nextS1, true);\n p[3] = pAxis.c2p(di.nextP1, true);\n\n return isHorizontal ? [s, p] : [p, s];\n}\n\n},{\"../../components/drawing\":388,\"../../constants/numerical\":479,\"../../lib\":503,\"../bar/plot\":659,\"../bar/uniform_text\":664,\"@plotly/d3\":58}],782:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Drawing = _dereq_('../../components/drawing');\nvar Color = _dereq_('../../components/color');\nvar DESELECTDIM = _dereq_('../../constants/interactions').DESELECTDIM;\nvar barStyle = _dereq_('../bar/style');\nvar resizeText = _dereq_('../bar/uniform_text').resizeText;\nvar styleTextPoints = barStyle.styleTextPoints;\n\nfunction style(gd, cd, sel) {\n var s = sel ? sel : d3.select(gd).selectAll('g.funnellayer').selectAll('g.trace');\n resizeText(gd, s, 'funnel');\n\n s.style('opacity', function(d) { return d[0].trace.opacity; });\n\n s.each(function(d) {\n var gTrace = d3.select(this);\n var trace = d[0].trace;\n\n gTrace.selectAll('.point > path').each(function(di) {\n if(!di.isBlank) {\n var cont = trace.marker;\n\n d3.select(this)\n .call(Color.fill, di.mc || cont.color)\n .call(Color.stroke, di.mlc || cont.line.color)\n .call(Drawing.dashLine, cont.line.dash, di.mlw || cont.line.width)\n .style('opacity', trace.selectedpoints && !di.selected ? DESELECTDIM : 1);\n }\n });\n\n styleTextPoints(gTrace, trace, gd);\n\n gTrace.selectAll('.regions').each(function() {\n d3.select(this).selectAll('path').style('stroke-width', 0).call(Color.fill, trace.connector.fillcolor);\n });\n\n gTrace.selectAll('.lines').each(function() {\n var cont = trace.connector.line;\n\n Drawing.lineGroupStyle(\n d3.select(this).selectAll('path'),\n cont.width,\n cont.color,\n cont.dash\n );\n });\n });\n}\n\nmodule.exports = {\n style: style\n};\n\n},{\"../../components/color\":366,\"../../components/drawing\":388,\"../../constants/interactions\":478,\"../bar/style\":662,\"../bar/uniform_text\":664,\"@plotly/d3\":58}],783:[function(_dereq_,module,exports){\n'use strict';\n\nvar pieAttrs = _dereq_('../pie/attributes');\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar domainAttrs = _dereq_('../../plots/domain').attributes;\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nmodule.exports = {\n labels: pieAttrs.labels,\n // equivalent of x0 and dx, if label is missing\n label0: pieAttrs.label0,\n dlabel: pieAttrs.dlabel,\n values: pieAttrs.values,\n\n marker: {\n colors: pieAttrs.marker.colors,\n line: {\n color: extendFlat({}, pieAttrs.marker.line.color, {\n dflt: null,\n }),\n width: extendFlat({}, pieAttrs.marker.line.width, {dflt: 1}),\n editType: 'calc'\n },\n editType: 'calc'\n },\n\n text: pieAttrs.text,\n hovertext: pieAttrs.hovertext,\n\n scalegroup: extendFlat({}, pieAttrs.scalegroup, {\n }),\n\n textinfo: extendFlat({}, pieAttrs.textinfo, {\n flags: ['label', 'text', 'value', 'percent']\n }),\n\n texttemplate: texttemplateAttrs({editType: 'plot'}, {\n keys: ['label', 'color', 'value', 'text', 'percent']\n }),\n\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {\n flags: ['label', 'text', 'value', 'percent', 'name']\n }),\n\n hovertemplate: hovertemplateAttrs({}, {\n keys: ['label', 'color', 'value', 'text', 'percent']\n }),\n\n textposition: extendFlat({}, pieAttrs.textposition, {\n values: ['inside', 'none'],\n dflt: 'inside'\n }),\n\n textfont: pieAttrs.textfont,\n insidetextfont: pieAttrs.insidetextfont,\n\n title: {\n text: pieAttrs.title.text,\n font: pieAttrs.title.font,\n position: extendFlat({}, pieAttrs.title.position, {\n values: ['top left', 'top center', 'top right'],\n dflt: 'top center'\n }),\n editType: 'plot'\n },\n\n domain: domainAttrs({name: 'funnelarea', trace: true, editType: 'calc'}),\n\n aspectratio: {\n valType: 'number',\n min: 0,\n dflt: 1,\n editType: 'plot',\n },\n\n baseratio: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0.333,\n editType: 'plot',\n }\n};\n\n},{\"../../lib/extend\":493,\"../../plots/attributes\":550,\"../../plots/domain\":584,\"../../plots/template_attributes\":633,\"../pie/attributes\":899}],784:[function(_dereq_,module,exports){\n'use strict';\n\nvar plots = _dereq_('../../plots/plots');\n\nexports.name = 'funnelarea';\n\nexports.plot = function(gd, traces, transitionOpts, makeOnCompleteCallback) {\n plots.plotBasePlot(exports.name, gd, traces, transitionOpts, makeOnCompleteCallback);\n};\n\nexports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n plots.cleanBasePlot(exports.name, newFullData, newFullLayout, oldFullData, oldFullLayout);\n};\n\n},{\"../../plots/plots\":619}],785:[function(_dereq_,module,exports){\n'use strict';\n\nvar pieCalc = _dereq_('../pie/calc');\n\nfunction calc(gd, trace) {\n return pieCalc.calc(gd, trace);\n}\n\nfunction crossTraceCalc(gd) {\n pieCalc.crossTraceCalc(gd, { type: 'funnelarea' });\n}\n\nmodule.exports = {\n calc: calc,\n crossTraceCalc: crossTraceCalc\n};\n\n},{\"../pie/calc\":901}],786:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar attributes = _dereq_('./attributes');\nvar handleDomainDefaults = _dereq_('../../plots/domain').defaults;\nvar handleText = _dereq_('../bar/defaults').handleText;\nvar handleLabelsAndValues = _dereq_('../pie/defaults').handleLabelsAndValues;\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var labels = coerce('labels');\n var values = coerce('values');\n\n var res = handleLabelsAndValues(labels, values);\n var len = res.len;\n traceOut._hasLabels = res.hasLabels;\n traceOut._hasValues = res.hasValues;\n\n if(!traceOut._hasLabels &&\n traceOut._hasValues\n ) {\n coerce('label0');\n coerce('dlabel');\n }\n\n if(!len) {\n traceOut.visible = false;\n return;\n }\n traceOut._length = len;\n\n var lineWidth = coerce('marker.line.width');\n if(lineWidth) coerce('marker.line.color', layout.paper_bgcolor);\n\n coerce('marker.colors');\n\n coerce('scalegroup');\n\n var textData = coerce('text');\n var textTemplate = coerce('texttemplate');\n var textInfo;\n if(!textTemplate) textInfo = coerce('textinfo', Array.isArray(textData) ? 'text+percent' : 'percent');\n\n coerce('hovertext');\n coerce('hovertemplate');\n\n if(textTemplate || (textInfo && textInfo !== 'none')) {\n var textposition = coerce('textposition');\n handleText(traceIn, traceOut, layout, coerce, textposition, {\n moduleHasSelected: false,\n moduleHasUnselected: false,\n moduleHasConstrain: false,\n moduleHasCliponaxis: false,\n moduleHasTextangle: false,\n moduleHasInsideanchor: false\n });\n }\n\n handleDomainDefaults(traceOut, layout, coerce);\n\n var title = coerce('title.text');\n if(title) {\n coerce('title.position');\n Lib.coerceFont(coerce, 'title.font', layout.font);\n }\n\n coerce('aspectratio');\n coerce('baseratio');\n};\n\n},{\"../../lib\":503,\"../../plots/domain\":584,\"../bar/defaults\":652,\"../pie/defaults\":902,\"./attributes\":783}],787:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'trace',\n name: 'funnelarea',\n basePlotModule: _dereq_('./base_plot'),\n categories: ['pie-like', 'funnelarea', 'showLegend'],\n\n attributes: _dereq_('./attributes'),\n layoutAttributes: _dereq_('./layout_attributes'),\n supplyDefaults: _dereq_('./defaults'),\n supplyLayoutDefaults: _dereq_('./layout_defaults'),\n\n calc: _dereq_('./calc').calc,\n crossTraceCalc: _dereq_('./calc').crossTraceCalc,\n\n plot: _dereq_('./plot'),\n style: _dereq_('./style'),\n styleOne: _dereq_('../pie/style_one'),\n\n meta: {\n }\n};\n\n},{\"../pie/style_one\":910,\"./attributes\":783,\"./base_plot\":784,\"./calc\":785,\"./defaults\":786,\"./layout_attributes\":788,\"./layout_defaults\":789,\"./plot\":790,\"./style\":791}],788:[function(_dereq_,module,exports){\n'use strict';\n\nvar hiddenlabels = _dereq_('../pie/layout_attributes').hiddenlabels;\n\nmodule.exports = {\n hiddenlabels: hiddenlabels,\n\n funnelareacolorway: {\n valType: 'colorlist',\n editType: 'calc',\n },\n extendfunnelareacolors: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n }\n};\n\n},{\"../pie/layout_attributes\":906}],789:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar layoutAttributes = _dereq_('./layout_attributes');\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(layoutIn, layoutOut, layoutAttributes, attr, dflt);\n }\n\n coerce('hiddenlabels');\n coerce('funnelareacolorway', layoutOut.colorway);\n coerce('extendfunnelareacolors');\n};\n\n},{\"../../lib\":503,\"./layout_attributes\":788}],790:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Drawing = _dereq_('../../components/drawing');\nvar Lib = _dereq_('../../lib');\nvar strScale = Lib.strScale;\nvar strTranslate = Lib.strTranslate;\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\n\nvar barPlot = _dereq_('../bar/plot');\nvar toMoveInsideBar = barPlot.toMoveInsideBar;\nvar uniformText = _dereq_('../bar/uniform_text');\nvar recordMinTextSize = uniformText.recordMinTextSize;\nvar clearMinTextSize = uniformText.clearMinTextSize;\nvar pieHelpers = _dereq_('../pie/helpers');\nvar piePlot = _dereq_('../pie/plot');\n\nvar attachFxHandlers = piePlot.attachFxHandlers;\nvar determineInsideTextFont = piePlot.determineInsideTextFont;\n\nvar layoutAreas = piePlot.layoutAreas;\nvar prerenderTitles = piePlot.prerenderTitles;\nvar positionTitleOutside = piePlot.positionTitleOutside;\nvar formatSliceLabel = piePlot.formatSliceLabel;\n\nmodule.exports = function plot(gd, cdModule) {\n var fullLayout = gd._fullLayout;\n\n clearMinTextSize('funnelarea', fullLayout);\n\n prerenderTitles(cdModule, gd);\n layoutAreas(cdModule, fullLayout._size);\n\n Lib.makeTraceGroups(fullLayout._funnelarealayer, cdModule, 'trace').each(function(cd) {\n var plotGroup = d3.select(this);\n var cd0 = cd[0];\n var trace = cd0.trace;\n\n setCoords(cd);\n\n plotGroup.each(function() {\n var slices = d3.select(this).selectAll('g.slice').data(cd);\n\n slices.enter().append('g')\n .classed('slice', true);\n slices.exit().remove();\n\n slices.each(function(pt, i) {\n if(pt.hidden) {\n d3.select(this).selectAll('path,g').remove();\n return;\n }\n\n // to have consistent event data compared to other traces\n pt.pointNumber = pt.i;\n pt.curveNumber = trace.index;\n\n var cx = cd0.cx;\n var cy = cd0.cy;\n var sliceTop = d3.select(this);\n var slicePath = sliceTop.selectAll('path.surface').data([pt]);\n\n slicePath.enter().append('path')\n .classed('surface', true)\n .style({'pointer-events': 'all'});\n\n sliceTop.call(attachFxHandlers, gd, cd);\n\n var shape =\n 'M' + (cx + pt.TR[0]) + ',' + (cy + pt.TR[1]) +\n line(pt.TR, pt.BR) +\n line(pt.BR, pt.BL) +\n line(pt.BL, pt.TL) +\n 'Z';\n\n slicePath.attr('d', shape);\n\n // add text\n formatSliceLabel(gd, pt, cd0);\n var textPosition = pieHelpers.castOption(trace.textposition, pt.pts);\n var sliceTextGroup = sliceTop.selectAll('g.slicetext')\n .data(pt.text && (textPosition !== 'none') ? [0] : []);\n\n sliceTextGroup.enter().append('g')\n .classed('slicetext', true);\n sliceTextGroup.exit().remove();\n\n sliceTextGroup.each(function() {\n var sliceText = Lib.ensureSingle(d3.select(this), 'text', '', function(s) {\n // prohibit tex interpretation until we can handle\n // tex and regular text together\n s.attr('data-notex', 1);\n });\n\n var font = Lib.ensureUniformFontSize(gd, determineInsideTextFont(trace, pt, fullLayout.font));\n\n sliceText.text(pt.text)\n .attr({\n 'class': 'slicetext',\n transform: '',\n 'text-anchor': 'middle'\n })\n .call(Drawing.font, font)\n .call(svgTextUtils.convertToTspans, gd);\n\n // position the text relative to the slice\n var textBB = Drawing.bBox(sliceText.node());\n var transform;\n\n var x0, x1;\n var y0 = Math.min(pt.BL[1], pt.BR[1]) + cy;\n var y1 = Math.max(pt.TL[1], pt.TR[1]) + cy;\n\n x0 = Math.max(pt.TL[0], pt.BL[0]) + cx;\n x1 = Math.min(pt.TR[0], pt.BR[0]) + cx;\n\n transform = toMoveInsideBar(x0, x1, y0, y1, textBB, {\n isHorizontal: true,\n constrained: true,\n angle: 0,\n anchor: 'middle'\n });\n\n transform.fontSize = font.size;\n recordMinTextSize(trace.type, transform, fullLayout);\n cd[i].transform = transform;\n\n sliceText.attr('transform', Lib.getTextTransform(transform));\n });\n });\n\n // add the title\n var titleTextGroup = d3.select(this).selectAll('g.titletext')\n .data(trace.title.text ? [0] : []);\n\n titleTextGroup.enter().append('g')\n .classed('titletext', true);\n titleTextGroup.exit().remove();\n\n titleTextGroup.each(function() {\n var titleText = Lib.ensureSingle(d3.select(this), 'text', '', function(s) {\n // prohibit tex interpretation as above\n s.attr('data-notex', 1);\n });\n\n var txt = trace.title.text;\n if(trace._meta) {\n txt = Lib.templateString(txt, trace._meta);\n }\n\n titleText.text(txt)\n .attr({\n 'class': 'titletext',\n transform: '',\n 'text-anchor': 'middle',\n })\n .call(Drawing.font, trace.title.font)\n .call(svgTextUtils.convertToTspans, gd);\n\n var transform = positionTitleOutside(cd0, fullLayout._size);\n\n titleText.attr('transform',\n strTranslate(transform.x, transform.y) +\n strScale(Math.min(1, transform.scale)) +\n strTranslate(transform.tx, transform.ty));\n });\n });\n });\n};\n\nfunction line(a, b) {\n var dx = b[0] - a[0];\n var dy = b[1] - a[1];\n\n return 'l' + dx + ',' + dy;\n}\n\nfunction getBetween(a, b) {\n return [\n 0.5 * (a[0] + b[0]),\n 0.5 * (a[1] + b[1])\n ];\n}\n\nfunction setCoords(cd) {\n if(!cd.length) return;\n\n var cd0 = cd[0];\n var trace = cd0.trace;\n\n var aspectratio = trace.aspectratio;\n\n var h = trace.baseratio;\n if(h > 0.999) h = 0.999; // TODO: may handle this case separately\n var h2 = Math.pow(h, 2);\n\n var v1 = cd0.vTotal;\n var v0 = v1 * h2 / (1 - h2);\n\n var totalValues = v1;\n var sumSteps = v0 / v1;\n\n function calcPos() {\n var q = Math.sqrt(sumSteps);\n return {\n x: q,\n y: -q\n };\n }\n\n function getPoint() {\n var pos = calcPos();\n return [pos.x, pos.y];\n }\n\n var p;\n var allPoints = [];\n allPoints.push(getPoint());\n\n var i, cdi;\n for(i = cd.length - 1; i > -1; i--) {\n cdi = cd[i];\n if(cdi.hidden) continue;\n\n var step = cdi.v / totalValues;\n sumSteps += step;\n\n allPoints.push(getPoint());\n }\n\n var minY = Infinity;\n var maxY = -Infinity;\n for(i = 0; i < allPoints.length; i++) {\n p = allPoints[i];\n minY = Math.min(minY, p[1]);\n maxY = Math.max(maxY, p[1]);\n }\n\n // center the shape\n for(i = 0; i < allPoints.length; i++) {\n allPoints[i][1] -= (maxY + minY) / 2;\n }\n\n var lastX = allPoints[allPoints.length - 1][0];\n\n // get pie r\n var r = cd0.r;\n\n var rY = (maxY - minY) / 2;\n var scaleX = r / lastX;\n var scaleY = r / rY * aspectratio;\n\n // set funnelarea r\n cd0.r = scaleY * rY;\n\n // scale the shape\n for(i = 0; i < allPoints.length; i++) {\n allPoints[i][0] *= scaleX;\n allPoints[i][1] *= scaleY;\n }\n\n // record first position\n p = allPoints[0];\n var prevLeft = [-p[0], p[1]];\n var prevRight = [p[0], p[1]];\n\n var n = 0; // note we skip the very first point.\n for(i = cd.length - 1; i > -1; i--) {\n cdi = cd[i];\n if(cdi.hidden) continue;\n\n n += 1;\n var x = allPoints[n][0];\n var y = allPoints[n][1];\n\n cdi.TL = [-x, y];\n cdi.TR = [x, y];\n\n cdi.BL = prevLeft;\n cdi.BR = prevRight;\n\n cdi.pxmid = getBetween(cdi.TR, cdi.BR);\n\n prevLeft = cdi.TL;\n prevRight = cdi.TR;\n }\n}\n\n},{\"../../components/drawing\":388,\"../../lib\":503,\"../../lib/svg_text_utils\":529,\"../bar/plot\":659,\"../bar/uniform_text\":664,\"../pie/helpers\":904,\"../pie/plot\":908,\"@plotly/d3\":58}],791:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar styleOne = _dereq_('../pie/style_one');\nvar resizeText = _dereq_('../bar/uniform_text').resizeText;\n\nmodule.exports = function style(gd) {\n var s = gd._fullLayout._funnelarealayer.selectAll('.trace');\n resizeText(gd, s, 'funnelarea');\n\n s.each(function(cd) {\n var cd0 = cd[0];\n var trace = cd0.trace;\n var traceSelection = d3.select(this);\n\n traceSelection.style({opacity: trace.opacity});\n\n traceSelection.selectAll('path.surface').each(function(pt) {\n d3.select(this).call(styleOne, pt, trace);\n });\n });\n};\n\n},{\"../bar/uniform_text\":664,\"../pie/style_one\":910,\"@plotly/d3\":58}],792:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterAttrs = _dereq_('../scatter/attributes');\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nmodule.exports = extendFlat({\n z: {\n valType: 'data_array',\n editType: 'calc',\n },\n x: extendFlat({}, scatterAttrs.x, {impliedEdits: {xtype: 'array'}}),\n x0: extendFlat({}, scatterAttrs.x0, {impliedEdits: {xtype: 'scaled'}}),\n dx: extendFlat({}, scatterAttrs.dx, {impliedEdits: {xtype: 'scaled'}}),\n y: extendFlat({}, scatterAttrs.y, {impliedEdits: {ytype: 'array'}}),\n y0: extendFlat({}, scatterAttrs.y0, {impliedEdits: {ytype: 'scaled'}}),\n dy: extendFlat({}, scatterAttrs.dy, {impliedEdits: {ytype: 'scaled'}}),\n\n xperiod: extendFlat({}, scatterAttrs.xperiod, {impliedEdits: {xtype: 'scaled'}}),\n yperiod: extendFlat({}, scatterAttrs.yperiod, {impliedEdits: {ytype: 'scaled'}}),\n xperiod0: extendFlat({}, scatterAttrs.xperiod0, {impliedEdits: {xtype: 'scaled'}}),\n yperiod0: extendFlat({}, scatterAttrs.yperiod0, {impliedEdits: {ytype: 'scaled'}}),\n xperiodalignment: extendFlat({}, scatterAttrs.xperiodalignment, {impliedEdits: {xtype: 'scaled'}}),\n yperiodalignment: extendFlat({}, scatterAttrs.yperiodalignment, {impliedEdits: {ytype: 'scaled'}}),\n\n text: {\n valType: 'data_array',\n editType: 'calc',\n },\n hovertext: {\n valType: 'data_array',\n editType: 'calc',\n },\n transpose: {\n valType: 'boolean',\n dflt: false,\n editType: 'calc',\n },\n xtype: {\n valType: 'enumerated',\n values: ['array', 'scaled'],\n editType: 'calc+clearAxisTypes',\n },\n ytype: {\n valType: 'enumerated',\n values: ['array', 'scaled'],\n editType: 'calc+clearAxisTypes',\n },\n zsmooth: {\n valType: 'enumerated',\n values: ['fast', 'best', false],\n dflt: false,\n editType: 'calc',\n },\n hoverongaps: {\n valType: 'boolean',\n dflt: true,\n editType: 'none',\n },\n connectgaps: {\n valType: 'boolean',\n editType: 'calc',\n },\n xgap: {\n valType: 'number',\n dflt: 0,\n min: 0,\n editType: 'plot',\n },\n ygap: {\n valType: 'number',\n dflt: 0,\n min: 0,\n editType: 'plot',\n },\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n zhoverformat: axisHoverFormat('z', 1),\n\n hovertemplate: hovertemplateAttrs(),\n showlegend: extendFlat({}, baseAttrs.showlegend, {dflt: false})\n}, {\n transforms: undefined\n},\n colorScaleAttrs('', {cLetter: 'z', autoColorDflt: false})\n);\n\n},{\"../../components/colorscale/attributes\":373,\"../../lib/extend\":493,\"../../plots/attributes\":550,\"../../plots/cartesian/axis_format_attributes\":557,\"../../plots/template_attributes\":633,\"../scatter/attributes\":925}],793:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar alignPeriod = _dereq_('../../plots/cartesian/align_period');\n\nvar histogram2dCalc = _dereq_('../histogram2d/calc');\nvar colorscaleCalc = _dereq_('../../components/colorscale/calc');\nvar convertColumnData = _dereq_('./convert_column_xyz');\nvar clean2dArray = _dereq_('./clean_2d_array');\nvar interp2d = _dereq_('./interp2d');\nvar findEmpties = _dereq_('./find_empties');\nvar makeBoundArray = _dereq_('./make_bound_array');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nmodule.exports = function calc(gd, trace) {\n // prepare the raw data\n // run makeCalcdata on x and y even for heatmaps, in case of category mappings\n var xa = Axes.getFromId(gd, trace.xaxis || 'x');\n var ya = Axes.getFromId(gd, trace.yaxis || 'y');\n var isContour = Registry.traceIs(trace, 'contour');\n var isHist = Registry.traceIs(trace, 'histogram');\n var isGL2D = Registry.traceIs(trace, 'gl2d');\n var zsmooth = isContour ? 'best' : trace.zsmooth;\n var x, x0, dx, origX;\n var y, y0, dy, origY;\n var z, i, binned;\n\n // cancel minimum tick spacings (only applies to bars and boxes)\n xa._minDtick = 0;\n ya._minDtick = 0;\n\n if(isHist) {\n binned = histogram2dCalc(gd, trace);\n origX = binned.orig_x;\n x = binned.x;\n x0 = binned.x0;\n dx = binned.dx;\n\n origY = binned.orig_y;\n y = binned.y;\n y0 = binned.y0;\n dy = binned.dy;\n\n z = binned.z;\n } else {\n var zIn = trace.z;\n if(Lib.isArray1D(zIn)) {\n convertColumnData(trace, xa, ya, 'x', 'y', ['z']);\n x = trace._x;\n y = trace._y;\n zIn = trace._z;\n } else {\n origX = trace.x ? xa.makeCalcdata(trace, 'x') : [];\n origY = trace.y ? ya.makeCalcdata(trace, 'y') : [];\n x = alignPeriod(trace, xa, 'x', origX).vals;\n y = alignPeriod(trace, ya, 'y', origY).vals;\n trace._x = x;\n trace._y = y;\n }\n\n x0 = trace.x0;\n dx = trace.dx;\n y0 = trace.y0;\n dy = trace.dy;\n\n z = clean2dArray(zIn, trace, xa, ya);\n }\n\n if(xa.rangebreaks || ya.rangebreaks) {\n z = dropZonBreaks(x, y, z);\n\n if(!isHist) {\n x = skipBreaks(x);\n y = skipBreaks(y);\n\n trace._x = x;\n trace._y = y;\n }\n }\n\n if(!isHist && (isContour || trace.connectgaps)) {\n trace._emptypoints = findEmpties(z);\n interp2d(z, trace._emptypoints);\n }\n\n function noZsmooth(msg) {\n zsmooth = trace._input.zsmooth = trace.zsmooth = false;\n Lib.warn('cannot use zsmooth: \"fast\": ' + msg);\n }\n\n // check whether we really can smooth (ie all boxes are about the same size)\n if(zsmooth === 'fast') {\n if(xa.type === 'log' || ya.type === 'log') {\n noZsmooth('log axis found');\n } else if(!isHist) {\n if(x.length) {\n var avgdx = (x[x.length - 1] - x[0]) / (x.length - 1);\n var maxErrX = Math.abs(avgdx / 100);\n for(i = 0; i < x.length - 1; i++) {\n if(Math.abs(x[i + 1] - x[i] - avgdx) > maxErrX) {\n noZsmooth('x scale is not linear');\n break;\n }\n }\n }\n if(y.length && zsmooth === 'fast') {\n var avgdy = (y[y.length - 1] - y[0]) / (y.length - 1);\n var maxErrY = Math.abs(avgdy / 100);\n for(i = 0; i < y.length - 1; i++) {\n if(Math.abs(y[i + 1] - y[i] - avgdy) > maxErrY) {\n noZsmooth('y scale is not linear');\n break;\n }\n }\n }\n }\n }\n\n // create arrays of brick boundaries, to be used by autorange and heatmap.plot\n var xlen = Lib.maxRowLength(z);\n var xIn = trace.xtype === 'scaled' ? '' : x;\n var xArray = makeBoundArray(trace, xIn, x0, dx, xlen, xa);\n var yIn = trace.ytype === 'scaled' ? '' : y;\n var yArray = makeBoundArray(trace, yIn, y0, dy, z.length, ya);\n\n // handled in gl2d convert step\n if(!isGL2D) {\n trace._extremes[xa._id] = Axes.findExtremes(xa, xArray);\n trace._extremes[ya._id] = Axes.findExtremes(ya, yArray);\n }\n\n var cd0 = {\n x: xArray,\n y: yArray,\n z: z,\n text: trace._text || trace.text,\n hovertext: trace._hovertext || trace.hovertext\n };\n\n if(trace.xperiodalignment && origX) {\n cd0.orig_x = origX;\n }\n if(trace.yperiodalignment && origY) {\n cd0.orig_y = origY;\n }\n\n if(xIn && xIn.length === xArray.length - 1) cd0.xCenter = xIn;\n if(yIn && yIn.length === yArray.length - 1) cd0.yCenter = yIn;\n\n if(isHist) {\n cd0.xRanges = binned.xRanges;\n cd0.yRanges = binned.yRanges;\n cd0.pts = binned.pts;\n }\n\n if(!isContour) {\n colorscaleCalc(gd, trace, {vals: z, cLetter: 'z'});\n }\n\n if(isContour && trace.contours && trace.contours.coloring === 'heatmap') {\n var dummyTrace = {\n type: trace.type === 'contour' ? 'heatmap' : 'histogram2d',\n xcalendar: trace.xcalendar,\n ycalendar: trace.ycalendar\n };\n cd0.xfill = makeBoundArray(dummyTrace, xIn, x0, dx, xlen, xa);\n cd0.yfill = makeBoundArray(dummyTrace, yIn, y0, dy, z.length, ya);\n }\n\n return [cd0];\n};\n\nfunction skipBreaks(a) {\n var b = [];\n var len = a.length;\n for(var i = 0; i < len; i++) {\n var v = a[i];\n if(v !== BADNUM) b.push(v);\n }\n return b;\n}\n\nfunction dropZonBreaks(x, y, z) {\n var newZ = [];\n var k = -1;\n for(var i = 0; i < z.length; i++) {\n if(y[i] === BADNUM) continue;\n k++;\n newZ[k] = [];\n for(var j = 0; j < z[i].length; j++) {\n if(x[j] === BADNUM) continue;\n\n newZ[k].push(z[i][j]);\n }\n }\n return newZ;\n}\n\n},{\"../../components/colorscale/calc\":374,\"../../constants/numerical\":479,\"../../lib\":503,\"../../plots/cartesian/align_period\":551,\"../../plots/cartesian/axes\":554,\"../../registry\":638,\"../histogram2d/calc\":825,\"./clean_2d_array\":794,\"./convert_column_xyz\":796,\"./find_empties\":798,\"./interp2d\":801,\"./make_bound_array\":802}],794:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar Lib = _dereq_('../../lib');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nmodule.exports = function clean2dArray(zOld, trace, xa, ya) {\n var rowlen, collen, getCollen, old2new, i, j;\n\n function cleanZvalue(v) {\n if(!isNumeric(v)) return undefined;\n return +v;\n }\n\n if(trace && trace.transpose) {\n rowlen = 0;\n for(i = 0; i < zOld.length; i++) rowlen = Math.max(rowlen, zOld[i].length);\n if(rowlen === 0) return false;\n getCollen = function(zOld) { return zOld.length; };\n old2new = function(zOld, i, j) { return (zOld[j] || [])[i]; };\n } else {\n rowlen = zOld.length;\n getCollen = function(zOld, i) { return zOld[i].length; };\n old2new = function(zOld, i, j) { return (zOld[i] || [])[j]; };\n }\n\n var padOld2new = function(zOld, i, j) {\n if(i === BADNUM || j === BADNUM) return BADNUM;\n return old2new(zOld, i, j);\n };\n\n function axisMapping(ax) {\n if(trace && trace.type !== 'carpet' && trace.type !== 'contourcarpet' &&\n ax && ax.type === 'category' && trace['_' + ax._id.charAt(0)].length) {\n var axLetter = ax._id.charAt(0);\n var axMapping = {};\n var traceCategories = trace['_' + axLetter + 'CategoryMap'] || trace[axLetter];\n for(i = 0; i < traceCategories.length; i++) {\n axMapping[traceCategories[i]] = i;\n }\n return function(i) {\n var ind = axMapping[ax._categories[i]];\n return ind + 1 ? ind : BADNUM;\n };\n } else {\n return Lib.identity;\n }\n }\n\n var xMap = axisMapping(xa);\n var yMap = axisMapping(ya);\n\n if(ya && ya.type === 'category') rowlen = ya._categories.length;\n var zNew = new Array(rowlen);\n\n for(i = 0; i < rowlen; i++) {\n if(xa && xa.type === 'category') {\n collen = xa._categories.length;\n } else {\n collen = getCollen(zOld, i);\n }\n zNew[i] = new Array(collen);\n for(j = 0; j < collen; j++) zNew[i][j] = cleanZvalue(padOld2new(zOld, yMap(i), xMap(j)));\n }\n\n return zNew;\n};\n\n},{\"../../constants/numerical\":479,\"../../lib\":503,\"fast-isnumeric\":190}],795:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n min: 'zmin',\n max: 'zmax'\n};\n\n},{}],796:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\nvar alignPeriod = _dereq_('../../plots/cartesian/align_period');\n\nmodule.exports = function convertColumnData(trace, ax1, ax2, var1Name, var2Name, arrayVarNames) {\n var colLen = trace._length;\n var col1 = ax1.makeCalcdata(trace, var1Name);\n var col2 = ax2.makeCalcdata(trace, var2Name);\n col1 = alignPeriod(trace, ax1, var1Name, col1).vals;\n col2 = alignPeriod(trace, ax2, var2Name, col2).vals;\n\n var textCol = trace.text;\n var hasColumnText = (textCol !== undefined && Lib.isArray1D(textCol));\n var hoverTextCol = trace.hovertext;\n var hasColumnHoverText = (hoverTextCol !== undefined && Lib.isArray1D(hoverTextCol));\n var i, j;\n\n var col1dv = Lib.distinctVals(col1);\n var col1vals = col1dv.vals;\n var col2dv = Lib.distinctVals(col2);\n var col2vals = col2dv.vals;\n var newArrays = [];\n var text;\n var hovertext;\n\n var nI = col2vals.length;\n var nJ = col1vals.length;\n\n for(i = 0; i < arrayVarNames.length; i++) {\n newArrays[i] = Lib.init2dArray(nI, nJ);\n }\n\n if(hasColumnText) {\n text = Lib.init2dArray(nI, nJ);\n }\n if(hasColumnHoverText) {\n hovertext = Lib.init2dArray(nI, nJ);\n }\n\n var after2before = Lib.init2dArray(nI, nJ);\n\n for(i = 0; i < colLen; i++) {\n if(col1[i] !== BADNUM && col2[i] !== BADNUM) {\n var i1 = Lib.findBin(col1[i] + col1dv.minDiff / 2, col1vals);\n var i2 = Lib.findBin(col2[i] + col2dv.minDiff / 2, col2vals);\n\n for(j = 0; j < arrayVarNames.length; j++) {\n var arrayVarName = arrayVarNames[j];\n var arrayVar = trace[arrayVarName];\n var newArray = newArrays[j];\n newArray[i2][i1] = arrayVar[i];\n after2before[i2][i1] = i;\n }\n\n if(hasColumnText) text[i2][i1] = textCol[i];\n if(hasColumnHoverText) hovertext[i2][i1] = hoverTextCol[i];\n }\n }\n\n trace['_' + var1Name] = col1vals;\n trace['_' + var2Name] = col2vals;\n for(j = 0; j < arrayVarNames.length; j++) {\n trace['_' + arrayVarNames[j]] = newArrays[j];\n }\n if(hasColumnText) trace._text = text;\n if(hasColumnHoverText) trace._hovertext = hovertext;\n\n if(ax1 && ax1.type === 'category') {\n trace['_' + var1Name + 'CategoryMap'] = col1vals.map(function(v) { return ax1._categories[v];});\n }\n\n if(ax2 && ax2.type === 'category') {\n trace['_' + var2Name + 'CategoryMap'] = col2vals.map(function(v) { return ax2._categories[v];});\n }\n\n trace._after2before = after2before;\n};\n\n},{\"../../constants/numerical\":479,\"../../lib\":503,\"../../plots/cartesian/align_period\":551}],797:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar handleXYZDefaults = _dereq_('./xyz_defaults');\nvar handlePeriodDefaults = _dereq_('../scatter/period_defaults');\nvar handleStyleDefaults = _dereq_('./style_defaults');\nvar colorscaleDefaults = _dereq_('../../components/colorscale/defaults');\nvar attributes = _dereq_('./attributes');\n\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var validData = handleXYZDefaults(traceIn, traceOut, coerce, layout);\n if(!validData) {\n traceOut.visible = false;\n return;\n }\n\n handlePeriodDefaults(traceIn, traceOut, layout, coerce);\n coerce('xhoverformat');\n coerce('yhoverformat');\n\n coerce('text');\n coerce('hovertext');\n coerce('hovertemplate');\n\n handleStyleDefaults(traceIn, traceOut, coerce, layout);\n\n coerce('hoverongaps');\n coerce('connectgaps', Lib.isArray1D(traceOut.z) && (traceOut.zsmooth !== false));\n\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: '', cLetter: 'z'});\n};\n\n},{\"../../components/colorscale/defaults\":376,\"../../lib\":503,\"../scatter/period_defaults\":945,\"./attributes\":792,\"./style_defaults\":805,\"./xyz_defaults\":806}],798:[function(_dereq_,module,exports){\n'use strict';\n\nvar maxRowLength = _dereq_('../../lib').maxRowLength;\n\n/* Return a list of empty points in 2D array z\n * each empty point z[i][j] gives an array [i, j, neighborCount]\n * neighborCount is the count of 4 nearest neighbors that DO exist\n * this is to give us an order of points to evaluate for interpolation.\n * if no neighbors exist, we iteratively look for neighbors that HAVE\n * neighbors, and add a fractional neighborCount\n */\nmodule.exports = function findEmpties(z) {\n var empties = [];\n var neighborHash = {};\n var noNeighborList = [];\n var nextRow = z[0];\n var row = [];\n var blank = [0, 0, 0];\n var rowLength = maxRowLength(z);\n var prevRow;\n var i;\n var j;\n var thisPt;\n var p;\n var neighborCount;\n var newNeighborHash;\n var foundNewNeighbors;\n\n for(i = 0; i < z.length; i++) {\n prevRow = row;\n row = nextRow;\n nextRow = z[i + 1] || [];\n for(j = 0; j < rowLength; j++) {\n if(row[j] === undefined) {\n neighborCount = (row[j - 1] !== undefined ? 1 : 0) +\n (row[j + 1] !== undefined ? 1 : 0) +\n (prevRow[j] !== undefined ? 1 : 0) +\n (nextRow[j] !== undefined ? 1 : 0);\n\n if(neighborCount) {\n // for this purpose, don't count off-the-edge points\n // as undefined neighbors\n if(i === 0) neighborCount++;\n if(j === 0) neighborCount++;\n if(i === z.length - 1) neighborCount++;\n if(j === row.length - 1) neighborCount++;\n\n // if all neighbors that could exist do, we don't\n // need this for finding farther neighbors\n if(neighborCount < 4) {\n neighborHash[[i, j]] = [i, j, neighborCount];\n }\n\n empties.push([i, j, neighborCount]);\n } else noNeighborList.push([i, j]);\n }\n }\n }\n\n while(noNeighborList.length) {\n newNeighborHash = {};\n foundNewNeighbors = false;\n\n // look for cells that now have neighbors but didn't before\n for(p = noNeighborList.length - 1; p >= 0; p--) {\n thisPt = noNeighborList[p];\n i = thisPt[0];\n j = thisPt[1];\n\n neighborCount = ((neighborHash[[i - 1, j]] || blank)[2] +\n (neighborHash[[i + 1, j]] || blank)[2] +\n (neighborHash[[i, j - 1]] || blank)[2] +\n (neighborHash[[i, j + 1]] || blank)[2]) / 20;\n\n if(neighborCount) {\n newNeighborHash[thisPt] = [i, j, neighborCount];\n noNeighborList.splice(p, 1);\n foundNewNeighbors = true;\n }\n }\n\n if(!foundNewNeighbors) {\n throw 'findEmpties iterated with no new neighbors';\n }\n\n // put these new cells into the main neighbor list\n for(thisPt in newNeighborHash) {\n neighborHash[thisPt] = newNeighborHash[thisPt];\n empties.push(newNeighborHash[thisPt]);\n }\n }\n\n // sort the full list in descending order of neighbor count\n return empties.sort(function(a, b) { return b[2] - a[2]; });\n};\n\n},{\"../../lib\":503}],799:[function(_dereq_,module,exports){\n'use strict';\n\nvar Fx = _dereq_('../../components/fx');\nvar Lib = _dereq_('../../lib');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar extractOpts = _dereq_('../../components/colorscale').extractOpts;\n\nmodule.exports = function hoverPoints(pointData, xval, yval, hovermode, opts) {\n if(!opts) opts = {};\n var isContour = opts.isContour;\n\n var cd0 = pointData.cd[0];\n var trace = cd0.trace;\n var xa = pointData.xa;\n var ya = pointData.ya;\n var x = cd0.x;\n var y = cd0.y;\n var z = cd0.z;\n var xc = cd0.xCenter;\n var yc = cd0.yCenter;\n var zmask = cd0.zmask;\n var zhoverformat = trace.zhoverformat;\n var x2 = x;\n var y2 = y;\n\n var xl, yl, nx, ny;\n\n if(pointData.index !== false) {\n try {\n nx = Math.round(pointData.index[1]);\n ny = Math.round(pointData.index[0]);\n } catch(e) {\n Lib.error('Error hovering on heatmap, ' +\n 'pointNumber must be [row,col], found:', pointData.index);\n return;\n }\n if(nx < 0 || nx >= z[0].length || ny < 0 || ny > z.length) {\n return;\n }\n } else if(Fx.inbox(xval - x[0], xval - x[x.length - 1], 0) > 0 ||\n Fx.inbox(yval - y[0], yval - y[y.length - 1], 0) > 0) {\n return;\n } else {\n if(isContour) {\n var i2;\n x2 = [2 * x[0] - x[1]];\n\n for(i2 = 1; i2 < x.length; i2++) {\n x2.push((x[i2] + x[i2 - 1]) / 2);\n }\n x2.push([2 * x[x.length - 1] - x[x.length - 2]]);\n\n y2 = [2 * y[0] - y[1]];\n for(i2 = 1; i2 < y.length; i2++) {\n y2.push((y[i2] + y[i2 - 1]) / 2);\n }\n y2.push([2 * y[y.length - 1] - y[y.length - 2]]);\n }\n nx = Math.max(0, Math.min(x2.length - 2, Lib.findBin(xval, x2)));\n ny = Math.max(0, Math.min(y2.length - 2, Lib.findBin(yval, y2)));\n }\n\n var x0 = xa.c2p(x[nx]);\n var x1 = xa.c2p(x[nx + 1]);\n var y0 = ya.c2p(y[ny]);\n var y1 = ya.c2p(y[ny + 1]);\n\n var _x, _y;\n if(isContour) {\n _x = cd0.orig_x || x;\n _y = cd0.orig_y || y;\n\n x1 = x0;\n xl = _x[nx];\n y1 = y0;\n yl = _y[ny];\n } else {\n _x = cd0.orig_x || xc || x;\n _y = cd0.orig_y || yc || y;\n\n xl = xc ? _x[nx] : ((_x[nx] + _x[nx + 1]) / 2);\n yl = yc ? _y[ny] : ((_y[ny] + _y[ny + 1]) / 2);\n\n if(xa && xa.type === 'category') xl = x[nx];\n if(ya && ya.type === 'category') yl = y[ny];\n\n if(trace.zsmooth) {\n x0 = x1 = xa.c2p(xl);\n y0 = y1 = ya.c2p(yl);\n }\n }\n\n var zVal = z[ny][nx];\n if(zmask && !zmask[ny][nx]) zVal = undefined;\n\n if(zVal === undefined && !trace.hoverongaps) return;\n\n var text;\n if(Array.isArray(cd0.hovertext) && Array.isArray(cd0.hovertext[ny])) {\n text = cd0.hovertext[ny][nx];\n } else if(Array.isArray(cd0.text) && Array.isArray(cd0.text[ny])) {\n text = cd0.text[ny][nx];\n }\n\n // dummy axis for formatting the z value\n var cOpts = extractOpts(trace);\n var dummyAx = {\n type: 'linear',\n range: [cOpts.min, cOpts.max],\n hoverformat: zhoverformat,\n _separators: xa._separators,\n _numFormat: xa._numFormat\n };\n var zLabel = Axes.tickText(dummyAx, zVal, 'hover').text;\n\n return [Lib.extendFlat(pointData, {\n index: trace._after2before ? trace._after2before[ny][nx] : [ny, nx],\n // never let a 2D override 1D type as closest point\n distance: pointData.maxHoverDistance,\n spikeDistance: pointData.maxSpikeDistance,\n x0: x0,\n x1: x1,\n y0: y0,\n y1: y1,\n xLabelVal: xl,\n yLabelVal: yl,\n zLabelVal: zVal,\n zLabel: zLabel,\n text: text\n })];\n};\n\n},{\"../../components/colorscale\":378,\"../../components/fx\":406,\"../../lib\":503,\"../../plots/cartesian/axes\":554}],800:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n calc: _dereq_('./calc'),\n plot: _dereq_('./plot'),\n colorbar: _dereq_('./colorbar'),\n style: _dereq_('./style'),\n hoverPoints: _dereq_('./hover'),\n\n moduleType: 'trace',\n name: 'heatmap',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: ['cartesian', 'svg', '2dMap', 'showLegend'],\n meta: {\n }\n};\n\n},{\"../../plots/cartesian\":568,\"./attributes\":792,\"./calc\":793,\"./colorbar\":795,\"./defaults\":797,\"./hover\":799,\"./plot\":803,\"./style\":804}],801:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar INTERPTHRESHOLD = 1e-2;\nvar NEIGHBORSHIFTS = [[-1, 0], [1, 0], [0, -1], [0, 1]];\n\nfunction correctionOvershoot(maxFractionalChange) {\n // start with less overshoot, until we know it's converging,\n // then ramp up the overshoot for faster convergence\n return 0.5 - 0.25 * Math.min(1, maxFractionalChange * 0.5);\n}\n\n/*\n * interp2d: Fill in missing data from a 2D array using an iterative\n * poisson equation solver with zero-derivative BC at edges.\n * Amazingly, this just amounts to repeatedly averaging all the existing\n * nearest neighbors, at least if we don't take x/y scaling into account,\n * which is the right approach here where x and y may not even have the\n * same units.\n *\n * @param {array of arrays} z\n * The 2D array to fill in. Will be mutated here. Assumed to already be\n * cleaned, so all entries are numbers except gaps, which are `undefined`.\n * @param {array of arrays} emptyPoints\n * Each entry [i, j, neighborCount] for empty points z[i][j] and the number\n * of neighbors that are *not* missing. Assumed to be sorted from most to\n * least neighbors, as produced by heatmap/find_empties.\n */\nmodule.exports = function interp2d(z, emptyPoints) {\n var maxFractionalChange = 1;\n var i;\n\n // one pass to fill in a starting value for all the empties\n iterateInterp2d(z, emptyPoints);\n\n // we're don't need to iterate lone empties - remove them\n for(i = 0; i < emptyPoints.length; i++) {\n if(emptyPoints[i][2] < 4) break;\n }\n // but don't remove these points from the original array,\n // we'll use them for masking, so make a copy.\n emptyPoints = emptyPoints.slice(i);\n\n for(i = 0; i < 100 && maxFractionalChange > INTERPTHRESHOLD; i++) {\n maxFractionalChange = iterateInterp2d(z, emptyPoints,\n correctionOvershoot(maxFractionalChange));\n }\n if(maxFractionalChange > INTERPTHRESHOLD) {\n Lib.log('interp2d didn\\'t converge quickly', maxFractionalChange);\n }\n\n return z;\n};\n\nfunction iterateInterp2d(z, emptyPoints, overshoot) {\n var maxFractionalChange = 0;\n var thisPt;\n var i;\n var j;\n var p;\n var q;\n var neighborShift;\n var neighborRow;\n var neighborVal;\n var neighborCount;\n var neighborSum;\n var initialVal;\n var minNeighbor;\n var maxNeighbor;\n\n for(p = 0; p < emptyPoints.length; p++) {\n thisPt = emptyPoints[p];\n i = thisPt[0];\n j = thisPt[1];\n initialVal = z[i][j];\n neighborSum = 0;\n neighborCount = 0;\n\n for(q = 0; q < 4; q++) {\n neighborShift = NEIGHBORSHIFTS[q];\n neighborRow = z[i + neighborShift[0]];\n if(!neighborRow) continue;\n neighborVal = neighborRow[j + neighborShift[1]];\n if(neighborVal !== undefined) {\n if(neighborSum === 0) {\n minNeighbor = maxNeighbor = neighborVal;\n } else {\n minNeighbor = Math.min(minNeighbor, neighborVal);\n maxNeighbor = Math.max(maxNeighbor, neighborVal);\n }\n neighborCount++;\n neighborSum += neighborVal;\n }\n }\n\n if(neighborCount === 0) {\n throw 'iterateInterp2d order is wrong: no defined neighbors';\n }\n\n // this is the laplace equation interpolation:\n // each point is just the average of its neighbors\n // note that this ignores differential x/y scaling\n // which I think is the right approach, since we\n // don't know what that scaling means\n z[i][j] = neighborSum / neighborCount;\n\n if(initialVal === undefined) {\n if(neighborCount < 4) maxFractionalChange = 1;\n } else {\n // we can make large empty regions converge faster\n // if we overshoot the change vs the previous value\n z[i][j] = (1 + overshoot) * z[i][j] - overshoot * initialVal;\n\n if(maxNeighbor > minNeighbor) {\n maxFractionalChange = Math.max(maxFractionalChange,\n Math.abs(z[i][j] - initialVal) / (maxNeighbor - minNeighbor));\n }\n }\n }\n\n return maxFractionalChange;\n}\n\n},{\"../../lib\":503}],802:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar isArrayOrTypedArray = _dereq_('../../lib').isArrayOrTypedArray;\n\nmodule.exports = function makeBoundArray(trace, arrayIn, v0In, dvIn, numbricks, ax) {\n var arrayOut = [];\n var isContour = Registry.traceIs(trace, 'contour');\n var isHist = Registry.traceIs(trace, 'histogram');\n var isGL2D = Registry.traceIs(trace, 'gl2d');\n var v0;\n var dv;\n var i;\n\n var isArrayOfTwoItemsOrMore = isArrayOrTypedArray(arrayIn) && arrayIn.length > 1;\n\n if(isArrayOfTwoItemsOrMore && !isHist && (ax.type !== 'category')) {\n var len = arrayIn.length;\n\n // given vals are brick centers\n // hopefully length === numbricks, but use this method even if too few are supplied\n // and extend it linearly based on the last two points\n if(len <= numbricks) {\n // contour plots only want the centers\n if(isContour || isGL2D) arrayOut = arrayIn.slice(0, numbricks);\n else if(numbricks === 1) {\n arrayOut = [arrayIn[0] - 0.5, arrayIn[0] + 0.5];\n } else {\n arrayOut = [1.5 * arrayIn[0] - 0.5 * arrayIn[1]];\n\n for(i = 1; i < len; i++) {\n arrayOut.push((arrayIn[i - 1] + arrayIn[i]) * 0.5);\n }\n\n arrayOut.push(1.5 * arrayIn[len - 1] - 0.5 * arrayIn[len - 2]);\n }\n\n if(len < numbricks) {\n var lastPt = arrayOut[arrayOut.length - 1];\n var delta = lastPt - arrayOut[arrayOut.length - 2];\n\n for(i = len; i < numbricks; i++) {\n lastPt += delta;\n arrayOut.push(lastPt);\n }\n }\n } else {\n // hopefully length === numbricks+1, but do something regardless:\n // given vals are brick boundaries\n return isContour ?\n arrayIn.slice(0, numbricks) : // we must be strict for contours\n arrayIn.slice(0, numbricks + 1);\n }\n } else {\n var calendar = trace[ax._id.charAt(0) + 'calendar'];\n\n if(isHist) {\n v0 = ax.r2c(v0In, 0, calendar);\n } else {\n if(isArrayOrTypedArray(arrayIn) && arrayIn.length === 1) {\n v0 = arrayIn[0];\n } else if(v0In === undefined) {\n v0 = 0;\n } else {\n var fn = ax.type === 'log' ? ax.d2c : ax.r2c;\n v0 = fn(v0In, 0, calendar);\n }\n }\n\n dv = dvIn || 1;\n\n for(i = (isContour || isGL2D) ? 0 : -0.5; i < numbricks; i++) {\n arrayOut.push(v0 + dv * i);\n }\n }\n\n return arrayOut;\n};\n\n},{\"../../lib\":503,\"../../registry\":638}],803:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar tinycolor = _dereq_('tinycolor2');\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar makeColorScaleFuncFromTrace = _dereq_('../../components/colorscale').makeColorScaleFuncFromTrace;\nvar xmlnsNamespaces = _dereq_('../../constants/xmlns_namespaces');\n\nmodule.exports = function(gd, plotinfo, cdheatmaps, heatmapLayer) {\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n\n Lib.makeTraceGroups(heatmapLayer, cdheatmaps, 'hm').each(function(cd) {\n var plotGroup = d3.select(this);\n var cd0 = cd[0];\n var trace = cd0.trace;\n\n var z = cd0.z;\n var x = cd0.x;\n var y = cd0.y;\n var xc = cd0.xCenter;\n var yc = cd0.yCenter;\n var isContour = Registry.traceIs(trace, 'contour');\n var zsmooth = isContour ? 'best' : trace.zsmooth;\n\n // get z dims\n var m = z.length;\n var n = Lib.maxRowLength(z);\n var xrev = false;\n var yrev = false;\n\n var left, right, temp, top, bottom, i;\n\n // TODO: if there are multiple overlapping categorical heatmaps,\n // or if we allow category sorting, then the categories may not be\n // sequential... may need to reorder and/or expand z\n\n // Get edges of png in pixels (xa.c2p() maps axes coordinates to pixel coordinates)\n // figure out if either axis is reversed (y is usually reversed, in pixel coords)\n // also clip the image to maximum 50% outside the visible plot area\n // bigger image lets you pan more naturally, but slows performance.\n // TODO: use low-resolution images outside the visible plot for panning\n // these while loops find the first and last brick bounds that are defined\n // (in case of log of a negative)\n i = 0;\n while(left === undefined && i < x.length - 1) {\n left = xa.c2p(x[i]);\n i++;\n }\n i = x.length - 1;\n while(right === undefined && i > 0) {\n right = xa.c2p(x[i]);\n i--;\n }\n\n if(right < left) {\n temp = right;\n right = left;\n left = temp;\n xrev = true;\n }\n\n i = 0;\n while(top === undefined && i < y.length - 1) {\n top = ya.c2p(y[i]);\n i++;\n }\n i = y.length - 1;\n while(bottom === undefined && i > 0) {\n bottom = ya.c2p(y[i]);\n i--;\n }\n\n if(bottom < top) {\n temp = top;\n top = bottom;\n bottom = temp;\n yrev = true;\n }\n\n // for contours with heatmap fill, we generate the boundaries based on\n // brick centers but then use the brick edges for drawing the bricks\n if(isContour) {\n xc = x;\n yc = y;\n x = cd0.xfill;\n y = cd0.yfill;\n }\n\n // make an image that goes at most half a screen off either side, to keep\n // time reasonable when you zoom in. if zsmooth is true/fast, don't worry\n // about this, because zooming doesn't increase number of pixels\n // if zsmooth is best, don't include anything off screen because it takes too long\n if(zsmooth !== 'fast') {\n var extra = zsmooth === 'best' ? 0 : 0.5;\n left = Math.max(-extra * xa._length, left);\n right = Math.min((1 + extra) * xa._length, right);\n top = Math.max(-extra * ya._length, top);\n bottom = Math.min((1 + extra) * ya._length, bottom);\n }\n\n var imageWidth = Math.round(right - left);\n var imageHeight = Math.round(bottom - top);\n\n // setup image nodes\n\n // if image is entirely off-screen, don't even draw it\n var isOffScreen = (imageWidth <= 0 || imageHeight <= 0);\n\n if(isOffScreen) {\n var noImage = plotGroup.selectAll('image').data([]);\n noImage.exit().remove();\n return;\n }\n\n // generate image data\n\n var canvasW, canvasH;\n if(zsmooth === 'fast') {\n canvasW = n;\n canvasH = m;\n } else {\n canvasW = imageWidth;\n canvasH = imageHeight;\n }\n\n var canvas = document.createElement('canvas');\n canvas.width = canvasW;\n canvas.height = canvasH;\n var context = canvas.getContext('2d');\n\n var sclFunc = makeColorScaleFuncFromTrace(trace, {noNumericCheck: true, returnArray: true});\n\n // map brick boundaries to image pixels\n var xpx,\n ypx;\n if(zsmooth === 'fast') {\n xpx = xrev ?\n function(index) { return n - 1 - index; } :\n Lib.identity;\n ypx = yrev ?\n function(index) { return m - 1 - index; } :\n Lib.identity;\n } else {\n xpx = function(index) {\n return Lib.constrain(Math.round(xa.c2p(x[index]) - left),\n 0, imageWidth);\n };\n ypx = function(index) {\n return Lib.constrain(Math.round(ya.c2p(y[index]) - top),\n 0, imageHeight);\n };\n }\n\n // build the pixel map brick-by-brick\n // cruise through z-matrix row-by-row\n // build a brick at each z-matrix value\n var yi = ypx(0);\n var yb = [yi, yi];\n var xbi = xrev ? 0 : 1;\n var ybi = yrev ? 0 : 1;\n // for collecting an average luminosity of the heatmap\n var pixcount = 0;\n var rcount = 0;\n var gcount = 0;\n var bcount = 0;\n\n var xb, j, xi, v, row, c;\n\n function setColor(v, pixsize) {\n if(v !== undefined) {\n var c = sclFunc(v);\n c[0] = Math.round(c[0]);\n c[1] = Math.round(c[1]);\n c[2] = Math.round(c[2]);\n\n pixcount += pixsize;\n rcount += c[0] * pixsize;\n gcount += c[1] * pixsize;\n bcount += c[2] * pixsize;\n return c;\n }\n return [0, 0, 0, 0];\n }\n\n function interpColor(r0, r1, xinterp, yinterp) {\n var z00 = r0[xinterp.bin0];\n if(z00 === undefined) return setColor(undefined, 1);\n\n var z01 = r0[xinterp.bin1];\n var z10 = r1[xinterp.bin0];\n var z11 = r1[xinterp.bin1];\n var dx = (z01 - z00) || 0;\n var dy = (z10 - z00) || 0;\n var dxy;\n\n // the bilinear interpolation term needs different calculations\n // for all the different permutations of missing data\n // among the neighbors of the main point, to ensure\n // continuity across brick boundaries.\n if(z01 === undefined) {\n if(z11 === undefined) dxy = 0;\n else if(z10 === undefined) dxy = 2 * (z11 - z00);\n else dxy = (2 * z11 - z10 - z00) * 2 / 3;\n } else if(z11 === undefined) {\n if(z10 === undefined) dxy = 0;\n else dxy = (2 * z00 - z01 - z10) * 2 / 3;\n } else if(z10 === undefined) dxy = (2 * z11 - z01 - z00) * 2 / 3;\n else dxy = (z11 + z00 - z01 - z10);\n\n return setColor(z00 + xinterp.frac * dx + yinterp.frac * (dy + xinterp.frac * dxy));\n }\n\n if(zsmooth) { // best or fast, works fastest with imageData\n var pxIndex = 0;\n var pixels;\n\n try {\n pixels = new Uint8Array(imageWidth * imageHeight * 4);\n } catch(e) {\n pixels = new Array(imageWidth * imageHeight * 4);\n }\n\n if(zsmooth === 'best') {\n var xForPx = xc || x;\n var yForPx = yc || y;\n var xPixArray = new Array(xForPx.length);\n var yPixArray = new Array(yForPx.length);\n var xinterpArray = new Array(imageWidth);\n var findInterpX = xc ? findInterpFromCenters : findInterp;\n var findInterpY = yc ? findInterpFromCenters : findInterp;\n var yinterp, r0, r1;\n\n // first make arrays of x and y pixel locations of brick boundaries\n for(i = 0; i < xForPx.length; i++) xPixArray[i] = Math.round(xa.c2p(xForPx[i]) - left);\n for(i = 0; i < yForPx.length; i++) yPixArray[i] = Math.round(ya.c2p(yForPx[i]) - top);\n\n // then make arrays of interpolations\n // (bin0=closest, bin1=next, frac=fractional dist.)\n for(i = 0; i < imageWidth; i++) xinterpArray[i] = findInterpX(i, xPixArray);\n\n // now do the interpolations and fill the png\n for(j = 0; j < imageHeight; j++) {\n yinterp = findInterpY(j, yPixArray);\n r0 = z[yinterp.bin0];\n r1 = z[yinterp.bin1];\n for(i = 0; i < imageWidth; i++, pxIndex += 4) {\n c = interpColor(r0, r1, xinterpArray[i], yinterp);\n putColor(pixels, pxIndex, c);\n }\n }\n } else { // zsmooth = fast\n for(j = 0; j < m; j++) {\n row = z[j];\n yb = ypx(j);\n for(i = 0; i < imageWidth; i++) {\n c = setColor(row[i], 1);\n pxIndex = (yb * imageWidth + xpx(i)) * 4;\n putColor(pixels, pxIndex, c);\n }\n }\n }\n\n var imageData = context.createImageData(imageWidth, imageHeight);\n try {\n imageData.data.set(pixels);\n } catch(e) {\n var pxArray = imageData.data;\n var dlen = pxArray.length;\n for(j = 0; j < dlen; j ++) {\n pxArray[j] = pixels[j];\n }\n }\n\n context.putImageData(imageData, 0, 0);\n } else { // zsmooth = false -> filling potentially large bricks works fastest with fillRect\n // gaps do not need to be exact integers, but if they *are* we will get\n // cleaner edges by rounding at least one edge\n var xGap = trace.xgap;\n var yGap = trace.ygap;\n var xGapLeft = Math.floor(xGap / 2);\n var yGapTop = Math.floor(yGap / 2);\n\n for(j = 0; j < m; j++) {\n row = z[j];\n yb.reverse();\n yb[ybi] = ypx(j + 1);\n if(yb[0] === yb[1] || yb[0] === undefined || yb[1] === undefined) {\n continue;\n }\n xi = xpx(0);\n xb = [xi, xi];\n for(i = 0; i < n; i++) {\n // build one color brick!\n xb.reverse();\n xb[xbi] = xpx(i + 1);\n if(xb[0] === xb[1] || xb[0] === undefined || xb[1] === undefined) {\n continue;\n }\n v = row[i];\n c = setColor(v, (xb[1] - xb[0]) * (yb[1] - yb[0]));\n context.fillStyle = 'rgba(' + c.join(',') + ')';\n\n context.fillRect(xb[0] + xGapLeft, yb[0] + yGapTop,\n xb[1] - xb[0] - xGap, yb[1] - yb[0] - yGap);\n }\n }\n }\n\n rcount = Math.round(rcount / pixcount);\n gcount = Math.round(gcount / pixcount);\n bcount = Math.round(bcount / pixcount);\n var avgColor = tinycolor('rgb(' + rcount + ',' + gcount + ',' + bcount + ')');\n\n gd._hmpixcount = (gd._hmpixcount||0) + pixcount;\n gd._hmlumcount = (gd._hmlumcount||0) + pixcount * avgColor.getLuminance();\n\n var image3 = plotGroup.selectAll('image')\n .data(cd);\n\n image3.enter().append('svg:image').attr({\n xmlns: xmlnsNamespaces.svg,\n preserveAspectRatio: 'none'\n });\n\n image3.attr({\n height: imageHeight,\n width: imageWidth,\n x: left,\n y: top,\n 'xlink:href': canvas.toDataURL('image/png')\n });\n });\n};\n\n// get interpolated bin value. Returns {bin0:closest bin, frac:fractional dist to next, bin1:next bin}\nfunction findInterp(pixel, pixArray) {\n var maxBin = pixArray.length - 2;\n var bin = Lib.constrain(Lib.findBin(pixel, pixArray), 0, maxBin);\n var pix0 = pixArray[bin];\n var pix1 = pixArray[bin + 1];\n var interp = Lib.constrain(bin + (pixel - pix0) / (pix1 - pix0) - 0.5, 0, maxBin);\n var bin0 = Math.round(interp);\n var frac = Math.abs(interp - bin0);\n\n if(!interp || interp === maxBin || !frac) {\n return {\n bin0: bin0,\n bin1: bin0,\n frac: 0\n };\n }\n return {\n bin0: bin0,\n frac: frac,\n bin1: Math.round(bin0 + frac / (interp - bin0))\n };\n}\n\nfunction findInterpFromCenters(pixel, centerPixArray) {\n var maxBin = centerPixArray.length - 1;\n var bin = Lib.constrain(Lib.findBin(pixel, centerPixArray), 0, maxBin);\n var pix0 = centerPixArray[bin];\n var pix1 = centerPixArray[bin + 1];\n var frac = ((pixel - pix0) / (pix1 - pix0)) || 0;\n if(frac <= 0) {\n return {\n bin0: bin,\n bin1: bin,\n frac: 0\n };\n }\n if(frac < 0.5) {\n return {\n bin0: bin,\n bin1: bin + 1,\n frac: frac\n };\n }\n return {\n bin0: bin + 1,\n bin1: bin,\n frac: 1 - frac\n };\n}\n\nfunction putColor(pixels, pxIndex, c) {\n pixels[pxIndex] = c[0];\n pixels[pxIndex + 1] = c[1];\n pixels[pxIndex + 2] = c[2];\n pixels[pxIndex + 3] = Math.round(c[3] * 255);\n}\n\n},{\"../../components/colorscale\":378,\"../../constants/xmlns_namespaces\":480,\"../../lib\":503,\"../../registry\":638,\"@plotly/d3\":58,\"tinycolor2\":312}],804:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nmodule.exports = function style(gd) {\n d3.select(gd).selectAll('.hm image')\n .style('opacity', function(d) {\n return d.trace.opacity;\n });\n};\n\n},{\"@plotly/d3\":58}],805:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function handleStyleDefaults(traceIn, traceOut, coerce) {\n var zsmooth = coerce('zsmooth');\n if(zsmooth === false) {\n // ensure that xgap and ygap are coerced only when zsmooth allows them to have an effect.\n coerce('xgap');\n coerce('ygap');\n }\n\n coerce('zhoverformat');\n};\n\n},{}],806:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar Lib = _dereq_('../../lib');\n\nvar Registry = _dereq_('../../registry');\n\nmodule.exports = function handleXYZDefaults(traceIn, traceOut, coerce, layout, xName, yName) {\n var z = coerce('z');\n xName = xName || 'x';\n yName = yName || 'y';\n var x, y;\n\n if(z === undefined || !z.length) return 0;\n\n if(Lib.isArray1D(traceIn.z)) {\n x = coerce(xName);\n y = coerce(yName);\n\n var xlen = Lib.minRowLength(x);\n var ylen = Lib.minRowLength(y);\n\n // column z must be accompanied by xName and yName arrays\n if(xlen === 0 || ylen === 0) return 0;\n\n traceOut._length = Math.min(xlen, ylen, z.length);\n } else {\n x = coordDefaults(xName, coerce);\n y = coordDefaults(yName, coerce);\n\n // TODO put z validation elsewhere\n if(!isValidZ(z)) return 0;\n\n coerce('transpose');\n\n traceOut._length = null;\n }\n\n if(traceIn.type === 'heatmapgl') return true; // skip calendars until we handle them in those traces\n\n var handleCalendarDefaults = Registry.getComponentMethod('calendars', 'handleTraceDefaults');\n handleCalendarDefaults(traceIn, traceOut, [xName, yName], layout);\n\n return true;\n};\n\nfunction coordDefaults(coordStr, coerce) {\n var coord = coerce(coordStr);\n var coordType = coord ? coerce(coordStr + 'type', 'array') : 'scaled';\n\n if(coordType === 'scaled') {\n coerce(coordStr + '0');\n coerce('d' + coordStr);\n }\n\n return coord;\n}\n\nfunction isValidZ(z) {\n var allRowsAreArrays = true;\n var oneRowIsFilled = false;\n var hasOneNumber = false;\n var zi;\n\n /*\n * Without this step:\n *\n * hasOneNumber = false breaks contour but not heatmap\n * allRowsAreArrays = false breaks contour but not heatmap\n * oneRowIsFilled = false breaks both\n */\n\n for(var i = 0; i < z.length; i++) {\n zi = z[i];\n if(!Lib.isArrayOrTypedArray(zi)) {\n allRowsAreArrays = false;\n break;\n }\n if(zi.length > 0) oneRowIsFilled = true;\n for(var j = 0; j < zi.length; j++) {\n if(isNumeric(zi[j])) {\n hasOneNumber = true;\n break;\n }\n }\n }\n\n return (allRowsAreArrays && oneRowIsFilled && hasOneNumber);\n}\n\n},{\"../../lib\":503,\"../../registry\":638,\"fast-isnumeric\":190}],807:[function(_dereq_,module,exports){\n'use strict';\n\nvar heatmapAttrs = _dereq_('../heatmap/attributes');\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\n\nvar commonList = [\n 'z',\n 'x', 'x0', 'dx',\n 'y', 'y0', 'dy',\n 'text', 'transpose',\n 'xtype', 'ytype'\n];\n\nvar attrs = {};\n\nfor(var i = 0; i < commonList.length; i++) {\n var k = commonList[i];\n attrs[k] = heatmapAttrs[k];\n}\n\nattrs.zsmooth = {\n valType: 'enumerated',\n values: ['fast', false],\n dflt: 'fast',\n editType: 'calc',\n};\n\nextendFlat(\n attrs,\n colorScaleAttrs('', {cLetter: 'z', autoColorDflt: false})\n);\n\nmodule.exports = overrideAll(attrs, 'calc', 'nested');\n\n},{\"../../components/colorscale/attributes\":373,\"../../lib/extend\":493,\"../../plot_api/edit_types\":536,\"../heatmap/attributes\":792}],808:[function(_dereq_,module,exports){\n'use strict';\n\nvar createHeatmap2D = _dereq_('../../../stackgl_modules').gl_heatmap2d;\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar str2RGBArray = _dereq_('../../lib/str2rgbarray');\n\n\nfunction Heatmap(scene, uid) {\n this.scene = scene;\n this.uid = uid;\n this.type = 'heatmapgl';\n\n this.name = '';\n this.hoverinfo = 'all';\n\n this.xData = [];\n this.yData = [];\n this.zData = [];\n this.textLabels = [];\n\n this.idToIndex = [];\n this.bounds = [0, 0, 0, 0];\n\n this.options = {\n zsmooth: 'fast',\n z: [],\n x: [],\n y: [],\n shape: [0, 0],\n colorLevels: [0],\n colorValues: [0, 0, 0, 1]\n };\n\n this.heatmap = createHeatmap2D(scene.glplot, this.options);\n this.heatmap._trace = this;\n}\n\nvar proto = Heatmap.prototype;\n\nproto.handlePick = function(pickResult) {\n var options = this.options;\n var shape = options.shape;\n var index = pickResult.pointId;\n var xIndex = index % shape[0];\n var yIndex = Math.floor(index / shape[0]);\n var zIndex = index;\n\n return {\n trace: this,\n dataCoord: pickResult.dataCoord,\n traceCoord: [\n options.x[xIndex],\n options.y[yIndex],\n options.z[zIndex]\n ],\n textLabel: this.textLabels[index],\n name: this.name,\n pointIndex: [yIndex, xIndex],\n hoverinfo: this.hoverinfo\n };\n};\n\nproto.update = function(fullTrace, calcTrace) {\n var calcPt = calcTrace[0];\n\n this.index = fullTrace.index;\n this.name = fullTrace.name;\n this.hoverinfo = fullTrace.hoverinfo;\n\n // convert z from 2D -> 1D\n var z = calcPt.z;\n this.options.z = [].concat.apply([], z);\n\n var rowLen = z[0].length;\n var colLen = z.length;\n this.options.shape = [rowLen, colLen];\n\n this.options.x = calcPt.x;\n this.options.y = calcPt.y;\n this.options.zsmooth = fullTrace.zsmooth;\n\n var colorOptions = convertColorscale(fullTrace);\n this.options.colorLevels = colorOptions.colorLevels;\n this.options.colorValues = colorOptions.colorValues;\n\n // convert text from 2D -> 1D\n this.textLabels = [].concat.apply([], fullTrace.text);\n\n this.heatmap.update(this.options);\n\n var xa = this.scene.xaxis;\n var ya = this.scene.yaxis;\n\n var xOpts, yOpts;\n if(fullTrace.zsmooth === false) {\n // increase padding for discretised heatmap as suggested by Louise Ord\n xOpts = { ppad: calcPt.x[1] - calcPt.x[0] };\n yOpts = { ppad: calcPt.y[1] - calcPt.y[0] };\n }\n\n fullTrace._extremes[xa._id] = Axes.findExtremes(xa, calcPt.x, xOpts);\n fullTrace._extremes[ya._id] = Axes.findExtremes(ya, calcPt.y, yOpts);\n};\n\nproto.dispose = function() {\n this.heatmap.dispose();\n};\n\nfunction convertColorscale(fullTrace) {\n var scl = fullTrace.colorscale;\n var zmin = fullTrace.zmin;\n var zmax = fullTrace.zmax;\n\n var N = scl.length;\n var domain = new Array(N);\n var range = new Array(4 * N);\n\n for(var i = 0; i < N; i++) {\n var si = scl[i];\n var color = str2RGBArray(si[1]);\n\n domain[i] = zmin + si[0] * (zmax - zmin);\n\n for(var j = 0; j < 4; j++) {\n range[(4 * i) + j] = color[j];\n }\n }\n\n return {\n colorLevels: domain,\n colorValues: range\n };\n}\n\nfunction createHeatmap(scene, fullTrace, calcTrace) {\n var plot = new Heatmap(scene, fullTrace.uid);\n plot.update(fullTrace, calcTrace);\n return plot;\n}\n\nmodule.exports = createHeatmap;\n\n},{\"../../../stackgl_modules\":1119,\"../../lib/str2rgbarray\":528,\"../../plots/cartesian/axes\":554}],809:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar handleXYZDefaults = _dereq_('../heatmap/xyz_defaults');\nvar colorscaleDefaults = _dereq_('../../components/colorscale/defaults');\nvar attributes = _dereq_('./attributes');\n\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var validData = handleXYZDefaults(traceIn, traceOut, coerce, layout);\n if(!validData) {\n traceOut.visible = false;\n return;\n }\n\n coerce('text');\n coerce('zsmooth');\n\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: '', cLetter: 'z'});\n};\n\n},{\"../../components/colorscale/defaults\":376,\"../../lib\":503,\"../heatmap/xyz_defaults\":806,\"./attributes\":807}],810:[function(_dereq_,module,exports){\n'use strict';\n\nvar deprecationWarning = [\n '*heatmapgl* trace is deprecated!',\n 'Please consider switching to the *heatmap* or *image* trace types.',\n 'Alternatively you could contribute/sponsor rewriting this trace type',\n 'based on cartesian features and using regl framework.'\n].join(' ');\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n colorbar: _dereq_('../heatmap/colorbar'),\n\n calc: _dereq_('../heatmap/calc'),\n plot: _dereq_('./convert'),\n\n moduleType: 'trace',\n name: 'heatmapgl',\n basePlotModule: _dereq_('../../plots/gl2d'),\n categories: ['gl', 'gl2d', '2dMap'],\n meta: {\n }\n};\n\n},{\"../../plots/gl2d\":596,\"../heatmap/calc\":793,\"../heatmap/colorbar\":795,\"./attributes\":807,\"./convert\":808,\"./defaults\":809}],811:[function(_dereq_,module,exports){\n'use strict';\n\nvar barAttrs = _dereq_('../bar/attributes');\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar makeBinAttrs = _dereq_('./bin_attributes');\nvar constants = _dereq_('./constants');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nmodule.exports = {\n x: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n y: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n\n text: extendFlat({}, barAttrs.text, {\n }),\n hovertext: extendFlat({}, barAttrs.hovertext, {\n }),\n orientation: barAttrs.orientation,\n\n histfunc: {\n valType: 'enumerated',\n values: ['count', 'sum', 'avg', 'min', 'max'],\n dflt: 'count',\n editType: 'calc',\n },\n histnorm: {\n valType: 'enumerated',\n values: ['', 'percent', 'probability', 'density', 'probability density'],\n dflt: '',\n editType: 'calc',\n },\n\n cumulative: {\n enabled: {\n valType: 'boolean',\n dflt: false,\n editType: 'calc',\n },\n\n direction: {\n valType: 'enumerated',\n values: ['increasing', 'decreasing'],\n dflt: 'increasing',\n editType: 'calc',\n },\n\n currentbin: {\n valType: 'enumerated',\n values: ['include', 'exclude', 'half'],\n dflt: 'include',\n editType: 'calc',\n },\n editType: 'calc'\n },\n nbinsx: {\n valType: 'integer',\n min: 0,\n dflt: 0,\n editType: 'calc',\n },\n xbins: makeBinAttrs('x', true),\n\n nbinsy: {\n valType: 'integer',\n min: 0,\n dflt: 0,\n editType: 'calc',\n },\n ybins: makeBinAttrs('y', true),\n autobinx: {\n valType: 'boolean',\n dflt: null,\n editType: 'calc',\n },\n autobiny: {\n valType: 'boolean',\n dflt: null,\n editType: 'calc',\n },\n\n bingroup: {\n valType: 'string',\n dflt: '',\n editType: 'calc',\n },\n\n hovertemplate: hovertemplateAttrs({}, {\n keys: constants.eventDataKeys\n }),\n\n marker: barAttrs.marker,\n\n offsetgroup: barAttrs.offsetgroup,\n alignmentgroup: barAttrs.alignmentgroup,\n\n selected: barAttrs.selected,\n unselected: barAttrs.unselected,\n\n _deprecated: {\n bardir: barAttrs._deprecated.bardir\n }\n};\n\n},{\"../../lib/extend\":493,\"../../plots/cartesian/axis_format_attributes\":557,\"../../plots/template_attributes\":633,\"../bar/attributes\":648,\"./bin_attributes\":813,\"./constants\":817}],812:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = function doAvg(size, counts) {\n var nMax = size.length;\n var total = 0;\n for(var i = 0; i < nMax; i++) {\n if(counts[i]) {\n size[i] /= counts[i];\n total += size[i];\n } else size[i] = null;\n }\n return total;\n};\n\n},{}],813:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function makeBinAttrs(axLetter, match) {\n return {\n start: {\n valType: 'any', // for date axes\n editType: 'calc',\n },\n end: {\n valType: 'any', // for date axes\n editType: 'calc',\n },\n size: {\n valType: 'any', // for date axes\n editType: 'calc',\n },\n editType: 'calc'\n };\n};\n\n},{}],814:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\n\nmodule.exports = {\n count: function(n, i, size) {\n size[n]++;\n return 1;\n },\n\n sum: function(n, i, size, counterData) {\n var v = counterData[i];\n if(isNumeric(v)) {\n v = Number(v);\n size[n] += v;\n return v;\n }\n return 0;\n },\n\n avg: function(n, i, size, counterData, counts) {\n var v = counterData[i];\n if(isNumeric(v)) {\n v = Number(v);\n size[n] += v;\n counts[n]++;\n }\n return 0;\n },\n\n min: function(n, i, size, counterData) {\n var v = counterData[i];\n if(isNumeric(v)) {\n v = Number(v);\n if(!isNumeric(size[n])) {\n size[n] = v;\n return v;\n } else if(size[n] > v) {\n var delta = v - size[n];\n size[n] = v;\n return delta;\n }\n }\n return 0;\n },\n\n max: function(n, i, size, counterData) {\n var v = counterData[i];\n if(isNumeric(v)) {\n v = Number(v);\n if(!isNumeric(size[n])) {\n size[n] = v;\n return v;\n } else if(size[n] < v) {\n var delta = v - size[n];\n size[n] = v;\n return delta;\n }\n }\n return 0;\n }\n};\n\n},{\"fast-isnumeric\":190}],815:[function(_dereq_,module,exports){\n'use strict';\n\nvar numConstants = _dereq_('../../constants/numerical');\nvar oneYear = numConstants.ONEAVGYEAR;\nvar oneMonth = numConstants.ONEAVGMONTH;\nvar oneDay = numConstants.ONEDAY;\nvar oneHour = numConstants.ONEHOUR;\nvar oneMin = numConstants.ONEMIN;\nvar oneSec = numConstants.ONESEC;\nvar tickIncrement = _dereq_('../../plots/cartesian/axes').tickIncrement;\n\n\n/*\n * make a function that will find rounded bin edges\n * @param {number} leftGap: how far from the left edge of any bin is the closest data value?\n * @param {number} rightGap: how far from the right edge of any bin is the closest data value?\n * @param {Array[number]} binEdges: the actual edge values used in binning\n * @param {object} pa: the position axis\n * @param {string} calendar: the data calendar\n *\n * @return {function(v, isRightEdge)}:\n * find the start (isRightEdge is falsy) or end (truthy) label value for a bin edge `v`\n */\nmodule.exports = function getBinSpanLabelRound(leftGap, rightGap, binEdges, pa, calendar) {\n // the rounding digit is the largest digit that changes in *all* of 4 regions:\n // - inside the rightGap before binEdges[0] (shifted 10% to the left)\n // - inside the leftGap after binEdges[0] (expanded by 10% of rightGap on each end)\n // - same for binEdges[1]\n var dv0 = -1.1 * rightGap;\n var dv1 = -0.1 * rightGap;\n var dv2 = leftGap - dv1;\n var edge0 = binEdges[0];\n var edge1 = binEdges[1];\n var leftDigit = Math.min(\n biggestDigitChanged(edge0 + dv1, edge0 + dv2, pa, calendar),\n biggestDigitChanged(edge1 + dv1, edge1 + dv2, pa, calendar)\n );\n var rightDigit = Math.min(\n biggestDigitChanged(edge0 + dv0, edge0 + dv1, pa, calendar),\n biggestDigitChanged(edge1 + dv0, edge1 + dv1, pa, calendar)\n );\n\n // normally we try to make the label for the right edge different from\n // the left edge label, so it's unambiguous which bin gets data on the edge.\n // but if this results in more than 3 extra digits (or for dates, more than\n // 2 fields ie hr&min or min&sec, which is 3600x), it'll be more clutter than\n // useful so keep the label cleaner instead\n var digit, disambiguateEdges;\n if(leftDigit > rightDigit && rightDigit < Math.abs(edge1 - edge0) / 4000) {\n digit = leftDigit;\n disambiguateEdges = false;\n } else {\n digit = Math.min(leftDigit, rightDigit);\n disambiguateEdges = true;\n }\n\n if(pa.type === 'date' && digit > oneDay) {\n var dashExclude = (digit === oneYear) ? 1 : 6;\n var increment = (digit === oneYear) ? 'M12' : 'M1';\n\n return function(v, isRightEdge) {\n var dateStr = pa.c2d(v, oneYear, calendar);\n var dashPos = dateStr.indexOf('-', dashExclude);\n if(dashPos > 0) dateStr = dateStr.substr(0, dashPos);\n var roundedV = pa.d2c(dateStr, 0, calendar);\n\n if(roundedV < v) {\n var nextV = tickIncrement(roundedV, increment, false, calendar);\n if((roundedV + nextV) / 2 < v + leftGap) roundedV = nextV;\n }\n\n if(isRightEdge && disambiguateEdges) {\n return tickIncrement(roundedV, increment, true, calendar);\n }\n\n return roundedV;\n };\n }\n\n return function(v, isRightEdge) {\n var roundedV = digit * Math.round(v / digit);\n // if we rounded down and we could round up and still be < leftGap\n // (or what leftGap values round to), do that\n if(roundedV + (digit / 10) < v && roundedV + (digit * 0.9) < v + leftGap) {\n roundedV += digit;\n }\n // finally for the right edge back off one digit - but only if we can do that\n // and not clip off any data that's potentially in the bin\n if(isRightEdge && disambiguateEdges) {\n roundedV -= digit;\n }\n return roundedV;\n };\n};\n\n/*\n * Find the largest digit that changes within a (calcdata) region [v1, v2]\n * if dates, \"digit\" means date/time part when it's bigger than a second\n * returns the unit value to round to this digit, eg 0.01 to round to hundredths, or\n * 100 to round to hundreds. returns oneMonth or oneYear for month or year rounding,\n * so that Math.min will work, rather than 'M1' and 'M12'\n */\nfunction biggestDigitChanged(v1, v2, pa, calendar) {\n // are we crossing zero? can't say anything.\n // in principle this doesn't apply to dates but turns out this doesn't matter.\n if(v1 * v2 <= 0) return Infinity;\n\n var dv = Math.abs(v2 - v1);\n var isDate = pa.type === 'date';\n var digit = biggestGuaranteedDigitChanged(dv, isDate);\n // see if a larger digit also changed\n for(var i = 0; i < 10; i++) {\n // numbers: next digit needs to be >10x but <100x then gets rounded down.\n // dates: next digit can be as much as 60x (then rounded down)\n var nextDigit = biggestGuaranteedDigitChanged(digit * 80, isDate);\n // if we get to years, the chain stops\n if(digit === nextDigit) break;\n if(didDigitChange(nextDigit, v1, v2, isDate, pa, calendar)) digit = nextDigit;\n else break;\n }\n return digit;\n}\n\n/*\n * Find the largest digit that *definitely* changes in a region [v, v + dv] for any v\n * for nonuniform date regions (months/years) pick the largest\n */\nfunction biggestGuaranteedDigitChanged(dv, isDate) {\n if(isDate && dv > oneSec) {\n // this is supposed to be the biggest *guaranteed* change\n // so compare to the longest month and year across any calendar,\n // and we'll iterate back up later\n // note: does not support rounding larger than one year. We could add\n // that if anyone wants it, but seems unusual and not strictly necessary.\n if(dv > oneDay) {\n if(dv > oneYear * 1.1) return oneYear;\n if(dv > oneMonth * 1.1) return oneMonth;\n return oneDay;\n }\n\n if(dv > oneHour) return oneHour;\n if(dv > oneMin) return oneMin;\n return oneSec;\n }\n return Math.pow(10, Math.floor(Math.log(dv) / Math.LN10));\n}\n\nfunction didDigitChange(digit, v1, v2, isDate, pa, calendar) {\n if(isDate && digit > oneDay) {\n var dateParts1 = dateParts(v1, pa, calendar);\n var dateParts2 = dateParts(v2, pa, calendar);\n var parti = (digit === oneYear) ? 0 : 1;\n return dateParts1[parti] !== dateParts2[parti];\n }\n return Math.floor(v2 / digit) - Math.floor(v1 / digit) > 0.1;\n}\n\nfunction dateParts(v, pa, calendar) {\n var parts = pa.c2d(v, oneYear, calendar).split('-');\n if(parts[0] === '') {\n parts.unshift();\n parts[0] = '-' + parts[0];\n }\n return parts;\n}\n\n},{\"../../constants/numerical\":479,\"../../plots/cartesian/axes\":554}],816:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Lib = _dereq_('../../lib');\nvar Registry = _dereq_('../../registry');\nvar Axes = _dereq_('../../plots/cartesian/axes');\n\nvar arraysToCalcdata = _dereq_('../bar/arrays_to_calcdata');\nvar binFunctions = _dereq_('./bin_functions');\nvar normFunctions = _dereq_('./norm_functions');\nvar doAvg = _dereq_('./average');\nvar getBinSpanLabelRound = _dereq_('./bin_label_vals');\n\nfunction calc(gd, trace) {\n var pos = [];\n var size = [];\n var pa = Axes.getFromId(gd, trace.orientation === 'h' ? trace.yaxis : trace.xaxis);\n var mainData = trace.orientation === 'h' ? 'y' : 'x';\n var counterData = {x: 'y', y: 'x'}[mainData];\n var calendar = trace[mainData + 'calendar'];\n var cumulativeSpec = trace.cumulative;\n var i;\n\n var binsAndPos = calcAllAutoBins(gd, trace, pa, mainData);\n var binSpec = binsAndPos[0];\n var pos0 = binsAndPos[1];\n\n var nonuniformBins = typeof binSpec.size === 'string';\n var binEdges = [];\n var bins = nonuniformBins ? binEdges : binSpec;\n // make the empty bin array\n var inc = [];\n var counts = [];\n var inputPoints = [];\n var total = 0;\n var norm = trace.histnorm;\n var func = trace.histfunc;\n var densityNorm = norm.indexOf('density') !== -1;\n var i2, binEnd, n;\n\n if(cumulativeSpec.enabled && densityNorm) {\n // we treat \"cumulative\" like it means \"integral\" if you use a density norm,\n // which in the end means it's the same as without \"density\"\n norm = norm.replace(/ ?density$/, '');\n densityNorm = false;\n }\n\n var extremeFunc = func === 'max' || func === 'min';\n var sizeInit = extremeFunc ? null : 0;\n var binFunc = binFunctions.count;\n var normFunc = normFunctions[norm];\n var isAvg = false;\n var pr2c = function(v) { return pa.r2c(v, 0, calendar); };\n var rawCounterData;\n\n if(Lib.isArrayOrTypedArray(trace[counterData]) && func !== 'count') {\n rawCounterData = trace[counterData];\n isAvg = func === 'avg';\n binFunc = binFunctions[func];\n }\n\n // create the bins (and any extra arrays needed)\n // assume more than 1e6 bins is an error, so we don't crash the browser\n i = pr2c(binSpec.start);\n\n // decrease end a little in case of rounding errors\n binEnd = pr2c(binSpec.end) + (i - Axes.tickIncrement(i, binSpec.size, false, calendar)) / 1e6;\n\n while(i < binEnd && pos.length < 1e6) {\n i2 = Axes.tickIncrement(i, binSpec.size, false, calendar);\n pos.push((i + i2) / 2);\n size.push(sizeInit);\n inputPoints.push([]);\n // nonuniform bins (like months) we need to search,\n // rather than straight calculate the bin we're in\n binEdges.push(i);\n // nonuniform bins also need nonuniform normalization factors\n if(densityNorm) inc.push(1 / (i2 - i));\n if(isAvg) counts.push(0);\n // break to avoid infinite loops\n if(i2 <= i) break;\n i = i2;\n }\n binEdges.push(i);\n\n // for date axes we need bin bounds to be calcdata. For nonuniform bins\n // we already have this, but uniform with start/end/size they're still strings.\n if(!nonuniformBins && pa.type === 'date') {\n bins = {\n start: pr2c(bins.start),\n end: pr2c(bins.end),\n size: bins.size\n };\n }\n\n // stash left and right gaps by group\n if(!gd._fullLayout._roundFnOpts) gd._fullLayout._roundFnOpts = {};\n var groupName = trace['_' + mainData + 'bingroup'];\n var roundFnOpts = {leftGap: Infinity, rightGap: Infinity};\n if(groupName) {\n if(!gd._fullLayout._roundFnOpts[groupName]) gd._fullLayout._roundFnOpts[groupName] = roundFnOpts;\n roundFnOpts = gd._fullLayout._roundFnOpts[groupName];\n }\n\n // bin the data\n // and make histogram-specific pt-number-to-cd-index map object\n var nMax = size.length;\n var uniqueValsPerBin = true;\n var leftGap = roundFnOpts.leftGap;\n var rightGap = roundFnOpts.rightGap;\n var ptNumber2cdIndex = {};\n for(i = 0; i < pos0.length; i++) {\n var posi = pos0[i];\n n = Lib.findBin(posi, bins);\n if(n >= 0 && n < nMax) {\n total += binFunc(n, i, size, rawCounterData, counts);\n if(uniqueValsPerBin && inputPoints[n].length && posi !== pos0[inputPoints[n][0]]) {\n uniqueValsPerBin = false;\n }\n inputPoints[n].push(i);\n ptNumber2cdIndex[i] = n;\n\n leftGap = Math.min(leftGap, posi - binEdges[n]);\n rightGap = Math.min(rightGap, binEdges[n + 1] - posi);\n }\n }\n roundFnOpts.leftGap = leftGap;\n roundFnOpts.rightGap = rightGap;\n\n var roundFn;\n if(!uniqueValsPerBin) {\n roundFn = function(v, isRightEdge) {\n return function() {\n var roundFnOpts = gd._fullLayout._roundFnOpts[groupName];\n return getBinSpanLabelRound(\n roundFnOpts.leftGap,\n roundFnOpts.rightGap,\n binEdges, pa, calendar\n )(v, isRightEdge);\n };\n };\n }\n\n // average and/or normalize the data, if needed\n if(isAvg) total = doAvg(size, counts);\n if(normFunc) normFunc(size, total, inc);\n\n // after all normalization etc, now we can accumulate if desired\n if(cumulativeSpec.enabled) cdf(size, cumulativeSpec.direction, cumulativeSpec.currentbin);\n\n var seriesLen = Math.min(pos.length, size.length);\n var cd = [];\n var firstNonzero = 0;\n var lastNonzero = seriesLen - 1;\n\n // look for empty bins at the ends to remove, so autoscale omits them\n for(i = 0; i < seriesLen; i++) {\n if(size[i]) {\n firstNonzero = i;\n break;\n }\n }\n for(i = seriesLen - 1; i >= firstNonzero; i--) {\n if(size[i]) {\n lastNonzero = i;\n break;\n }\n }\n\n // create the \"calculated data\" to plot\n for(i = firstNonzero; i <= lastNonzero; i++) {\n if((isNumeric(pos[i]) && isNumeric(size[i]))) {\n var cdi = {\n p: pos[i],\n s: size[i],\n b: 0\n };\n\n // setup hover and event data fields,\n // N.B. pts and \"hover\" positions ph0/ph1 don't seem to make much sense\n // for cumulative distributions\n if(!cumulativeSpec.enabled) {\n cdi.pts = inputPoints[i];\n if(uniqueValsPerBin) {\n cdi.ph0 = cdi.ph1 = (inputPoints[i].length) ? pos0[inputPoints[i][0]] : pos[i];\n } else {\n // Defer evaluation of ph(0|1) in crossTraceCalc\n trace._computePh = true;\n cdi.ph0 = roundFn(binEdges[i]);\n cdi.ph1 = roundFn(binEdges[i + 1], true);\n }\n }\n cd.push(cdi);\n }\n }\n\n if(cd.length === 1) {\n // when we collapse to a single bin, calcdata no longer describes bin size\n // so we need to explicitly specify it\n cd[0].width1 = Axes.tickIncrement(cd[0].p, binSpec.size, false, calendar) - cd[0].p;\n }\n\n arraysToCalcdata(cd, trace);\n\n if(Lib.isArrayOrTypedArray(trace.selectedpoints)) {\n Lib.tagSelected(cd, trace, ptNumber2cdIndex);\n }\n\n return cd;\n}\n\n/*\n * calcAllAutoBins: we want all histograms inside the same bingroup\n * (see logic in Histogram.crossTraceDefaults) to share bin specs\n *\n * If the user has explicitly specified differing\n * bin specs, there's nothing we can do, but if possible we will try to use the\n * smallest bins of any of the auto values for all histograms inside the same\n * bingroup.\n */\nfunction calcAllAutoBins(gd, trace, pa, mainData, _overlayEdgeCase) {\n var binAttr = mainData + 'bins';\n var fullLayout = gd._fullLayout;\n var groupName = trace['_' + mainData + 'bingroup'];\n var binOpts = fullLayout._histogramBinOpts[groupName];\n var isOverlay = fullLayout.barmode === 'overlay';\n var i, traces, tracei, calendar, pos0, autoVals, cumulativeSpec;\n\n var r2c = function(v) { return pa.r2c(v, 0, calendar); };\n var c2r = function(v) { return pa.c2r(v, 0, calendar); };\n\n var cleanBound = pa.type === 'date' ?\n function(v) { return (v || v === 0) ? Lib.cleanDate(v, null, calendar) : null; } :\n function(v) { return isNumeric(v) ? Number(v) : null; };\n\n function setBound(attr, bins, newBins) {\n if(bins[attr + 'Found']) {\n bins[attr] = cleanBound(bins[attr]);\n if(bins[attr] === null) bins[attr] = newBins[attr];\n } else {\n autoVals[attr] = bins[attr] = newBins[attr];\n Lib.nestedProperty(traces[0], binAttr + '.' + attr).set(newBins[attr]);\n }\n }\n\n // all but the first trace in this group has already been marked finished\n // clear this flag, so next time we run calc we will run autobin again\n if(trace['_' + mainData + 'autoBinFinished']) {\n delete trace['_' + mainData + 'autoBinFinished'];\n } else {\n traces = binOpts.traces;\n var allPos = [];\n\n // Note: we're including `legendonly` traces here for autobin purposes,\n // so that showing & hiding from the legend won't affect bins.\n // But this complicates things a bit since those traces don't `calc`,\n // hence `isFirstVisible`.\n var isFirstVisible = true;\n var has2dMap = false;\n var hasHist2dContour = false;\n for(i = 0; i < traces.length; i++) {\n tracei = traces[i];\n\n if(tracei.visible) {\n var mainDatai = binOpts.dirs[i];\n pos0 = tracei['_' + mainDatai + 'pos0'] = pa.makeCalcdata(tracei, mainDatai);\n\n allPos = Lib.concat(allPos, pos0);\n delete tracei['_' + mainData + 'autoBinFinished'];\n\n if(trace.visible === true) {\n if(isFirstVisible) {\n isFirstVisible = false;\n } else {\n delete tracei._autoBin;\n tracei['_' + mainData + 'autoBinFinished'] = 1;\n }\n if(Registry.traceIs(tracei, '2dMap')) {\n has2dMap = true;\n }\n if(tracei.type === 'histogram2dcontour') {\n hasHist2dContour = true;\n }\n }\n }\n }\n\n calendar = traces[0][mainData + 'calendar'];\n var newBinSpec = Axes.autoBin(allPos, pa, binOpts.nbins, has2dMap, calendar, binOpts.sizeFound && binOpts.size);\n\n var autoBin = traces[0]._autoBin = {};\n autoVals = autoBin[binOpts.dirs[0]] = {};\n\n if(hasHist2dContour) {\n // the \"true\" 2nd argument reverses the tick direction (which we can't\n // just do with a minus sign because of month bins)\n if(!binOpts.size) {\n newBinSpec.start = c2r(Axes.tickIncrement(\n r2c(newBinSpec.start), newBinSpec.size, true, calendar));\n }\n if(binOpts.end === undefined) {\n newBinSpec.end = c2r(Axes.tickIncrement(\n r2c(newBinSpec.end), newBinSpec.size, false, calendar));\n }\n }\n\n // Edge case: single-valued histogram overlaying others\n // Use them all together to calculate the bin size for the single-valued one\n if(isOverlay && !Registry.traceIs(trace, '2dMap') && newBinSpec._dataSpan === 0 &&\n pa.type !== 'category' && pa.type !== 'multicategory') {\n // Several single-valued histograms! Stop infinite recursion,\n // just return an extra flag that tells handleSingleValueOverlays\n // to sort out this trace too\n if(_overlayEdgeCase) return [newBinSpec, pos0, true];\n\n newBinSpec = handleSingleValueOverlays(gd, trace, pa, mainData, binAttr);\n }\n\n // adjust for CDF edge cases\n cumulativeSpec = tracei.cumulative || {};\n if(cumulativeSpec.enabled && (cumulativeSpec.currentbin !== 'include')) {\n if(cumulativeSpec.direction === 'decreasing') {\n newBinSpec.start = c2r(Axes.tickIncrement(\n r2c(newBinSpec.start), newBinSpec.size, true, calendar));\n } else {\n newBinSpec.end = c2r(Axes.tickIncrement(\n r2c(newBinSpec.end), newBinSpec.size, false, calendar));\n }\n }\n\n binOpts.size = newBinSpec.size;\n if(!binOpts.sizeFound) {\n autoVals.size = newBinSpec.size;\n Lib.nestedProperty(traces[0], binAttr + '.size').set(newBinSpec.size);\n }\n\n setBound('start', binOpts, newBinSpec);\n setBound('end', binOpts, newBinSpec);\n }\n\n pos0 = trace['_' + mainData + 'pos0'];\n delete trace['_' + mainData + 'pos0'];\n\n // Each trace can specify its own start/end, or if omitted\n // we ensure they're beyond the bounds of this trace's data,\n // and we need to make sure start is aligned with the main start\n var traceInputBins = trace._input[binAttr] || {};\n var traceBinOptsCalc = Lib.extendFlat({}, binOpts);\n var mainStart = binOpts.start;\n var startIn = pa.r2l(traceInputBins.start);\n var hasStart = startIn !== undefined;\n if((binOpts.startFound || hasStart) && startIn !== pa.r2l(mainStart)) {\n // We have an explicit start to reconcile across traces\n // if this trace has an explicit start, shift it down to a bin edge\n // if another trace had an explicit start, shift it down to a\n // bin edge past our data\n var traceStart = hasStart ?\n startIn :\n Lib.aggNums(Math.min, null, pos0);\n\n var dummyAx = {\n type: (pa.type === 'category' || pa.type === 'multicategory') ? 'linear' : pa.type,\n r2l: pa.r2l,\n dtick: binOpts.size,\n tick0: mainStart,\n calendar: calendar,\n range: ([traceStart, Axes.tickIncrement(traceStart, binOpts.size, false, calendar)]).map(pa.l2r)\n };\n var newStart = Axes.tickFirst(dummyAx);\n if(newStart > pa.r2l(traceStart)) {\n newStart = Axes.tickIncrement(newStart, binOpts.size, true, calendar);\n }\n traceBinOptsCalc.start = pa.l2r(newStart);\n if(!hasStart) Lib.nestedProperty(trace, binAttr + '.start').set(traceBinOptsCalc.start);\n }\n\n var mainEnd = binOpts.end;\n var endIn = pa.r2l(traceInputBins.end);\n var hasEnd = endIn !== undefined;\n if((binOpts.endFound || hasEnd) && endIn !== pa.r2l(mainEnd)) {\n // Reconciling an explicit end is easier, as it doesn't need to\n // match bin edges\n var traceEnd = hasEnd ?\n endIn :\n Lib.aggNums(Math.max, null, pos0);\n\n traceBinOptsCalc.end = pa.l2r(traceEnd);\n if(!hasEnd) Lib.nestedProperty(trace, binAttr + '.start').set(traceBinOptsCalc.end);\n }\n\n // Backward compatibility for one-time autobinning.\n // autobin: true is handled in cleanData, but autobin: false\n // needs to be here where we have determined the values.\n var autoBinAttr = 'autobin' + mainData;\n if(trace._input[autoBinAttr] === false) {\n trace._input[binAttr] = Lib.extendFlat({}, trace[binAttr] || {});\n delete trace._input[autoBinAttr];\n delete trace[autoBinAttr];\n }\n\n return [traceBinOptsCalc, pos0];\n}\n\n/*\n * Adjust single-value histograms in overlay mode to make as good a\n * guess as we can at autobin values the user would like.\n *\n * Returns the binSpec for the trace that sparked all this\n */\nfunction handleSingleValueOverlays(gd, trace, pa, mainData, binAttr) {\n var fullLayout = gd._fullLayout;\n var overlaidTraceGroup = getConnectedHistograms(gd, trace);\n var pastThisTrace = false;\n var minSize = Infinity;\n var singleValuedTraces = [trace];\n var i, tracei, binOpts;\n\n // first collect all the:\n // - min bin size from all multi-valued traces\n // - single-valued traces\n for(i = 0; i < overlaidTraceGroup.length; i++) {\n tracei = overlaidTraceGroup[i];\n\n if(tracei === trace) {\n pastThisTrace = true;\n } else if(!pastThisTrace) {\n // This trace has already had its autobins calculated, so either:\n // - it is part of a bingroup\n // - it is NOT a single-valued trace\n binOpts = fullLayout._histogramBinOpts[tracei['_' + mainData + 'bingroup']];\n minSize = Math.min(minSize, binOpts.size || tracei[binAttr].size);\n } else {\n var resulti = calcAllAutoBins(gd, tracei, pa, mainData, true);\n var binSpeci = resulti[0];\n var isSingleValued = resulti[2];\n\n // so we can use this result when we get to tracei in the normal\n // course of events, mark it as done and put _pos0 back\n tracei['_' + mainData + 'autoBinFinished'] = 1;\n tracei['_' + mainData + 'pos0'] = resulti[1];\n\n if(isSingleValued) {\n singleValuedTraces.push(tracei);\n } else {\n minSize = Math.min(minSize, binSpeci.size);\n }\n }\n }\n\n // find the real data values for each single-valued trace\n // hunt through pos0 for the first valid value\n var dataVals = new Array(singleValuedTraces.length);\n for(i = 0; i < singleValuedTraces.length; i++) {\n var pos0 = singleValuedTraces[i]['_' + mainData + 'pos0'];\n for(var j = 0; j < pos0.length; j++) {\n if(pos0[j] !== undefined) {\n dataVals[i] = pos0[j];\n break;\n }\n }\n }\n\n // are ALL traces are single-valued? use the min difference between\n // all of their values (which defaults to 1 if there's still only one)\n if(!isFinite(minSize)) {\n minSize = Lib.distinctVals(dataVals).minDiff;\n }\n\n // now apply the min size we found to all single-valued traces\n for(i = 0; i < singleValuedTraces.length; i++) {\n tracei = singleValuedTraces[i];\n var calendar = tracei[mainData + 'calendar'];\n\n var newBins = {\n start: pa.c2r(dataVals[i] - minSize / 2, 0, calendar),\n end: pa.c2r(dataVals[i] + minSize / 2, 0, calendar),\n size: minSize\n };\n\n tracei._input[binAttr] = tracei[binAttr] = newBins;\n\n binOpts = fullLayout._histogramBinOpts[tracei['_' + mainData + 'bingroup']];\n if(binOpts) Lib.extendFlat(binOpts, newBins);\n }\n\n return trace[binAttr];\n}\n\n/*\n * Return an array of histograms that share axes and orientation.\n *\n * Only considers histograms. In principle we could include bars in a\n * similar way to how we do manually binned histograms, though this\n * would have tons of edge cases and value judgments to make.\n */\nfunction getConnectedHistograms(gd, trace) {\n var xid = trace.xaxis;\n var yid = trace.yaxis;\n var orientation = trace.orientation;\n\n var out = [];\n var fullData = gd._fullData;\n for(var i = 0; i < fullData.length; i++) {\n var tracei = fullData[i];\n if(tracei.type === 'histogram' &&\n tracei.visible === true &&\n tracei.orientation === orientation &&\n tracei.xaxis === xid && tracei.yaxis === yid\n ) {\n out.push(tracei);\n }\n }\n\n return out;\n}\n\nfunction cdf(size, direction, currentBin) {\n var i, vi, prevSum;\n\n function firstHalfPoint(i) {\n prevSum = size[i];\n size[i] /= 2;\n }\n\n function nextHalfPoint(i) {\n vi = size[i];\n size[i] = prevSum + vi / 2;\n prevSum += vi;\n }\n\n if(currentBin === 'half') {\n if(direction === 'increasing') {\n firstHalfPoint(0);\n for(i = 1; i < size.length; i++) {\n nextHalfPoint(i);\n }\n } else {\n firstHalfPoint(size.length - 1);\n for(i = size.length - 2; i >= 0; i--) {\n nextHalfPoint(i);\n }\n }\n } else if(direction === 'increasing') {\n for(i = 1; i < size.length; i++) {\n size[i] += size[i - 1];\n }\n\n // 'exclude' is identical to 'include' just shifted one bin over\n if(currentBin === 'exclude') {\n size.unshift(0);\n size.pop();\n }\n } else {\n for(i = size.length - 2; i >= 0; i--) {\n size[i] += size[i + 1];\n }\n\n if(currentBin === 'exclude') {\n size.push(0);\n size.shift();\n }\n }\n}\n\nmodule.exports = {\n calc: calc,\n calcAllAutoBins: calcAllAutoBins\n};\n\n},{\"../../lib\":503,\"../../plots/cartesian/axes\":554,\"../../registry\":638,\"../bar/arrays_to_calcdata\":647,\"./average\":812,\"./bin_functions\":814,\"./bin_label_vals\":815,\"./norm_functions\":823,\"fast-isnumeric\":190}],817:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n eventDataKeys: ['binNumber']\n};\n\n},{}],818:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar axisIds = _dereq_('../../plots/cartesian/axis_ids');\n\nvar traceIs = _dereq_('../../registry').traceIs;\nvar handleGroupingDefaults = _dereq_('../bar/defaults').handleGroupingDefaults;\n\nvar nestedProperty = Lib.nestedProperty;\nvar getAxisGroup = _dereq_('../../plots/cartesian/constraints').getAxisGroup;\n\nvar BINATTRS = [\n {aStr: {x: 'xbins.start', y: 'ybins.start'}, name: 'start'},\n {aStr: {x: 'xbins.end', y: 'ybins.end'}, name: 'end'},\n {aStr: {x: 'xbins.size', y: 'ybins.size'}, name: 'size'},\n {aStr: {x: 'nbinsx', y: 'nbinsy'}, name: 'nbins'}\n];\n\nvar BINDIRECTIONS = ['x', 'y'];\n\n// handle bin attrs and relink auto-determined values so fullData is complete\nmodule.exports = function crossTraceDefaults(fullData, fullLayout) {\n var allBinOpts = fullLayout._histogramBinOpts = {};\n var histTraces = [];\n var mustMatchTracesLookup = {};\n var otherTracesList = [];\n\n var traceOut, traces, groupName, binDir;\n var i, j, k;\n\n function coerce(attr, dflt) {\n return Lib.coerce(traceOut._input, traceOut, traceOut._module.attributes, attr, dflt);\n }\n\n function orientation2binDir(traceOut) {\n return traceOut.orientation === 'v' ? 'x' : 'y';\n }\n\n function getAxisType(traceOut, binDir) {\n var ax = axisIds.getFromTrace({_fullLayout: fullLayout}, traceOut, binDir);\n return ax.type;\n }\n\n function fillBinOpts(traceOut, groupName, binDir) {\n // N.B. group traces that don't have a bingroup with themselves\n var fallbackGroupName = traceOut.uid + '__' + binDir;\n if(!groupName) groupName = fallbackGroupName;\n\n var axType = getAxisType(traceOut, binDir);\n var calendar = traceOut[binDir + 'calendar'] || '';\n var binOpts = allBinOpts[groupName];\n var needsNewItem = true;\n\n if(binOpts) {\n if(axType === binOpts.axType && calendar === binOpts.calendar) {\n needsNewItem = false;\n binOpts.traces.push(traceOut);\n binOpts.dirs.push(binDir);\n } else {\n groupName = fallbackGroupName;\n\n if(axType !== binOpts.axType) {\n Lib.warn([\n 'Attempted to group the bins of trace', traceOut.index,\n 'set on a', 'type:' + axType, 'axis',\n 'with bins on', 'type:' + binOpts.axType, 'axis.'\n ].join(' '));\n }\n if(calendar !== binOpts.calendar) {\n // prohibit bingroup for traces using different calendar,\n // there's probably a way to make this work, but skip for now\n Lib.warn([\n 'Attempted to group the bins of trace', traceOut.index,\n 'set with a', calendar, 'calendar',\n 'with bins',\n (binOpts.calendar ? 'on a ' + binOpts.calendar + ' calendar' : 'w/o a set calendar')\n ].join(' '));\n }\n }\n }\n\n if(needsNewItem) {\n allBinOpts[groupName] = {\n traces: [traceOut],\n dirs: [binDir],\n axType: axType,\n calendar: traceOut[binDir + 'calendar'] || ''\n };\n }\n traceOut['_' + binDir + 'bingroup'] = groupName;\n }\n\n for(i = 0; i < fullData.length; i++) {\n traceOut = fullData[i];\n\n if(traceIs(traceOut, 'histogram')) {\n histTraces.push(traceOut);\n\n // TODO: this shouldn't be relinked as it's only used within calc\n // https://github.com/plotly/plotly.js/issues/749\n delete traceOut._xautoBinFinished;\n delete traceOut._yautoBinFinished;\n\n // N.B. need to coerce *alignmentgroup* before *bingroup*, as traces\n // in same alignmentgroup \"have to match\"\n if(!traceIs(traceOut, '2dMap')) {\n handleGroupingDefaults(traceOut._input, traceOut, fullLayout, coerce);\n }\n }\n }\n\n var alignmentOpts = fullLayout._alignmentOpts || {};\n\n // Look for traces that \"have to match\", that is:\n // - 1d histogram traces on the same subplot with same orientation under barmode:stack,\n // - 1d histogram traces on the same subplot with same orientation under barmode:group\n // - 1d histogram traces on the same position axis with the same orientation\n // and the same *alignmentgroup* (coerced under barmode:group)\n // - Once `stackgroup` gets implemented (see https://github.com/plotly/plotly.js/issues/3614),\n // traces within the same stackgroup will also \"have to match\"\n for(i = 0; i < histTraces.length; i++) {\n traceOut = histTraces[i];\n groupName = '';\n\n if(!traceIs(traceOut, '2dMap')) {\n binDir = orientation2binDir(traceOut);\n\n if(fullLayout.barmode === 'group' && traceOut.alignmentgroup) {\n var pa = traceOut[binDir + 'axis'];\n var aGroupId = getAxisGroup(fullLayout, pa) + traceOut.orientation;\n if((alignmentOpts[aGroupId] || {})[traceOut.alignmentgroup]) {\n groupName = aGroupId;\n }\n }\n\n if(!groupName && fullLayout.barmode !== 'overlay') {\n groupName = (\n getAxisGroup(fullLayout, traceOut.xaxis) +\n getAxisGroup(fullLayout, traceOut.yaxis) +\n orientation2binDir(traceOut)\n );\n }\n }\n\n if(groupName) {\n if(!mustMatchTracesLookup[groupName]) {\n mustMatchTracesLookup[groupName] = [];\n }\n mustMatchTracesLookup[groupName].push(traceOut);\n } else {\n otherTracesList.push(traceOut);\n }\n }\n\n // Setup binOpts for traces that have to match,\n // if the traces have a valid bingroup, use that\n // if not use axis+binDir groupName\n for(groupName in mustMatchTracesLookup) {\n traces = mustMatchTracesLookup[groupName];\n\n // no need to 'force' anything when a single\n // trace is detected as \"must match\"\n if(traces.length === 1) {\n otherTracesList.push(traces[0]);\n continue;\n }\n\n var binGroupFound = false;\n if(traces.length) {\n traceOut = traces[0];\n binGroupFound = coerce('bingroup');\n }\n\n groupName = binGroupFound || groupName;\n\n for(i = 0; i < traces.length; i++) {\n traceOut = traces[i];\n var bingroupIn = traceOut._input.bingroup;\n if(bingroupIn && bingroupIn !== groupName) {\n Lib.warn([\n 'Trace', traceOut.index, 'must match',\n 'within bingroup', groupName + '.',\n 'Ignoring its bingroup:', bingroupIn, 'setting.'\n ].join(' '));\n }\n traceOut.bingroup = groupName;\n\n // N.B. no need to worry about 2dMap case\n // (where both bin direction are set in each trace)\n // as 2dMap trace never \"have to match\"\n fillBinOpts(traceOut, groupName, orientation2binDir(traceOut));\n }\n }\n\n // setup binOpts for traces that can but don't have to match,\n // notice that these traces can be matched with traces that have to match\n for(i = 0; i < otherTracesList.length; i++) {\n traceOut = otherTracesList[i];\n\n var binGroup = coerce('bingroup');\n\n if(traceIs(traceOut, '2dMap')) {\n for(k = 0; k < 2; k++) {\n binDir = BINDIRECTIONS[k];\n var binGroupInDir = coerce(binDir + 'bingroup',\n binGroup ? binGroup + '__' + binDir : null\n );\n fillBinOpts(traceOut, binGroupInDir, binDir);\n }\n } else {\n fillBinOpts(traceOut, binGroup, orientation2binDir(traceOut));\n }\n }\n\n // coerce bin attrs!\n for(groupName in allBinOpts) {\n var binOpts = allBinOpts[groupName];\n traces = binOpts.traces;\n\n for(j = 0; j < BINATTRS.length; j++) {\n var attrSpec = BINATTRS[j];\n var attr = attrSpec.name;\n var aStr;\n var autoVals;\n\n // nbins(x|y) is moot if we have a size. This depends on\n // nbins coming after size in binAttrs.\n if(attr === 'nbins' && binOpts.sizeFound) continue;\n\n for(i = 0; i < traces.length; i++) {\n traceOut = traces[i];\n binDir = binOpts.dirs[i];\n aStr = attrSpec.aStr[binDir];\n\n if(nestedProperty(traceOut._input, aStr).get() !== undefined) {\n binOpts[attr] = coerce(aStr);\n binOpts[attr + 'Found'] = true;\n break;\n }\n\n autoVals = (traceOut._autoBin || {})[binDir] || {};\n if(autoVals[attr]) {\n // if this is the *first* autoval\n nestedProperty(traceOut, aStr).set(autoVals[attr]);\n }\n }\n\n // start and end we need to coerce anyway, after having collected the\n // first of each into binOpts, in case a trace wants to restrict its\n // data to a certain range\n if(attr === 'start' || attr === 'end') {\n for(; i < traces.length; i++) {\n traceOut = traces[i];\n if(traceOut['_' + binDir + 'bingroup']) {\n autoVals = (traceOut._autoBin || {})[binDir] || {};\n coerce(aStr, autoVals[attr]);\n }\n }\n }\n\n if(attr === 'nbins' && !binOpts.sizeFound && !binOpts.nbinsFound) {\n traceOut = traces[0];\n binOpts[attr] = coerce(aStr);\n }\n }\n }\n};\n\n},{\"../../lib\":503,\"../../plots/cartesian/axis_ids\":558,\"../../plots/cartesian/constraints\":562,\"../../registry\":638,\"../bar/defaults\":652}],819:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar Color = _dereq_('../../components/color');\n\nvar handleStyleDefaults = _dereq_('../bar/style_defaults');\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var x = coerce('x');\n var y = coerce('y');\n\n var cumulative = coerce('cumulative.enabled');\n if(cumulative) {\n coerce('cumulative.direction');\n coerce('cumulative.currentbin');\n }\n\n coerce('text');\n coerce('hovertext');\n coerce('hovertemplate');\n coerce('xhoverformat');\n coerce('yhoverformat');\n\n var orientation = coerce('orientation', (y && !x) ? 'h' : 'v');\n var sampleLetter = orientation === 'v' ? 'x' : 'y';\n var aggLetter = orientation === 'v' ? 'y' : 'x';\n\n var len = (x && y) ?\n Math.min(Lib.minRowLength(x) && Lib.minRowLength(y)) :\n Lib.minRowLength(traceOut[sampleLetter] || []);\n\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n traceOut._length = len;\n\n var handleCalendarDefaults = Registry.getComponentMethod('calendars', 'handleTraceDefaults');\n handleCalendarDefaults(traceIn, traceOut, ['x', 'y'], layout);\n\n var hasAggregationData = traceOut[aggLetter];\n if(hasAggregationData) coerce('histfunc');\n coerce('histnorm');\n\n // Note: bin defaults are now handled in Histogram.crossTraceDefaults\n // autobin(x|y) are only included here to appease Plotly.validate\n coerce('autobin' + sampleLetter);\n\n handleStyleDefaults(traceIn, traceOut, coerce, defaultColor, layout);\n\n Lib.coerceSelectionMarkerOpacity(traceOut, coerce);\n\n var lineColor = (traceOut.marker.line || {}).color;\n\n // override defaultColor for error bars with defaultLine\n var errorBarsSupplyDefaults = Registry.getComponentMethod('errorbars', 'supplyDefaults');\n errorBarsSupplyDefaults(traceIn, traceOut, lineColor || Color.defaultLine, {axis: 'y'});\n errorBarsSupplyDefaults(traceIn, traceOut, lineColor || Color.defaultLine, {axis: 'x', inherit: 'y'});\n};\n\n},{\"../../components/color\":366,\"../../lib\":503,\"../../registry\":638,\"../bar/style_defaults\":663,\"./attributes\":811}],820:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function eventData(out, pt, trace, cd, pointNumber) {\n // standard cartesian event data\n out.x = 'xVal' in pt ? pt.xVal : pt.x;\n out.y = 'yVal' in pt ? pt.yVal : pt.y;\n\n // for 2d histograms\n if('zLabelVal' in pt) out.z = pt.zLabelVal;\n\n if(pt.xa) out.xaxis = pt.xa;\n if(pt.ya) out.yaxis = pt.ya;\n\n // specific to histogram - CDFs do not have pts (yet?)\n if(!(trace.cumulative || {}).enabled) {\n var pts = Array.isArray(pointNumber) ?\n cd[0].pts[pointNumber[0]][pointNumber[1]] :\n cd[pointNumber].pts;\n\n out.pointNumbers = pts;\n out.binNumber = out.pointNumber;\n delete out.pointNumber;\n delete out.pointIndex;\n\n var pointIndices;\n if(trace._indexToPoints) {\n pointIndices = [];\n for(var i = 0; i < pts.length; i++) {\n pointIndices = pointIndices.concat(trace._indexToPoints[pts[i]]);\n }\n } else {\n pointIndices = pts;\n }\n\n out.pointIndices = pointIndices;\n }\n\n return out;\n};\n\n},{}],821:[function(_dereq_,module,exports){\n'use strict';\n\nvar barHover = _dereq_('../bar/hover').hoverPoints;\nvar hoverLabelText = _dereq_('../../plots/cartesian/axes').hoverLabelText;\n\nmodule.exports = function hoverPoints(pointData, xval, yval, hovermode, opts) {\n var pts = barHover(pointData, xval, yval, hovermode, opts);\n\n if(!pts) return;\n\n pointData = pts[0];\n var di = pointData.cd[pointData.index];\n var trace = pointData.cd[0].trace;\n\n if(!trace.cumulative.enabled) {\n var posLetter = trace.orientation === 'h' ? 'y' : 'x';\n\n pointData[posLetter + 'Label'] = hoverLabelText(pointData[posLetter + 'a'], [di.ph0, di.ph1], trace[posLetter + 'hoverformat']);\n }\n\n return pts;\n};\n\n},{\"../../plots/cartesian/axes\":554,\"../bar/hover\":655}],822:[function(_dereq_,module,exports){\n'use strict';\n\n/**\n * Histogram has its own attribute, defaults and calc steps,\n * but uses bar's plot to display\n * and bar's crossTraceCalc (formerly known as setPositions) for stacking and grouping\n */\n\n/**\n * histogram errorBarsOK is debatable, but it's put in for backward compat.\n * there are use cases for it - sqrt for a simple histogram works right now,\n * constant and % work but they're not so meaningful. I guess it could be cool\n * to allow quadrature combination of errors in summed histograms...\n */\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n layoutAttributes: _dereq_('../bar/layout_attributes'),\n supplyDefaults: _dereq_('./defaults'),\n crossTraceDefaults: _dereq_('./cross_trace_defaults'),\n supplyLayoutDefaults: _dereq_('../bar/layout_defaults'),\n calc: _dereq_('./calc').calc,\n crossTraceCalc: _dereq_('../bar/cross_trace_calc').crossTraceCalc,\n plot: _dereq_('../bar/plot').plot,\n layerName: 'barlayer',\n style: _dereq_('../bar/style').style,\n styleOnSelect: _dereq_('../bar/style').styleOnSelect,\n colorbar: _dereq_('../scatter/marker_colorbar'),\n hoverPoints: _dereq_('./hover'),\n selectPoints: _dereq_('../bar/select'),\n eventData: _dereq_('./event_data'),\n\n moduleType: 'trace',\n name: 'histogram',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: ['bar-like', 'cartesian', 'svg', 'bar', 'histogram', 'oriented', 'errorBarsOK', 'showLegend'],\n meta: {\n }\n};\n\n},{\"../../plots/cartesian\":568,\"../bar/cross_trace_calc\":651,\"../bar/layout_attributes\":657,\"../bar/layout_defaults\":658,\"../bar/plot\":659,\"../bar/select\":660,\"../bar/style\":662,\"../scatter/marker_colorbar\":943,\"./attributes\":811,\"./calc\":816,\"./cross_trace_defaults\":818,\"./defaults\":819,\"./event_data\":820,\"./hover\":821}],823:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = {\n percent: function(size, total) {\n var nMax = size.length;\n var norm = 100 / total;\n for(var n = 0; n < nMax; n++) size[n] *= norm;\n },\n probability: function(size, total) {\n var nMax = size.length;\n for(var n = 0; n < nMax; n++) size[n] /= total;\n },\n density: function(size, total, inc, yinc) {\n var nMax = size.length;\n yinc = yinc || 1;\n for(var n = 0; n < nMax; n++) size[n] *= inc[n] * yinc;\n },\n 'probability density': function(size, total, inc, yinc) {\n var nMax = size.length;\n if(yinc) total /= yinc;\n for(var n = 0; n < nMax; n++) size[n] *= inc[n] / total;\n }\n};\n\n},{}],824:[function(_dereq_,module,exports){\n'use strict';\n\nvar histogramAttrs = _dereq_('../histogram/attributes');\nvar makeBinAttrs = _dereq_('../histogram/bin_attributes');\nvar heatmapAttrs = _dereq_('../heatmap/attributes');\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nmodule.exports = extendFlat(\n {\n x: histogramAttrs.x,\n y: histogramAttrs.y,\n\n z: {\n valType: 'data_array',\n editType: 'calc',\n },\n marker: {\n color: {\n valType: 'data_array',\n editType: 'calc',\n },\n editType: 'calc'\n },\n\n histnorm: histogramAttrs.histnorm,\n histfunc: histogramAttrs.histfunc,\n nbinsx: histogramAttrs.nbinsx,\n xbins: makeBinAttrs('x'),\n nbinsy: histogramAttrs.nbinsy,\n ybins: makeBinAttrs('y'),\n autobinx: histogramAttrs.autobinx,\n autobiny: histogramAttrs.autobiny,\n\n bingroup: extendFlat({}, histogramAttrs.bingroup, {\n }),\n xbingroup: extendFlat({}, histogramAttrs.bingroup, {\n }),\n ybingroup: extendFlat({}, histogramAttrs.bingroup, {\n }),\n\n xgap: heatmapAttrs.xgap,\n ygap: heatmapAttrs.ygap,\n zsmooth: heatmapAttrs.zsmooth,\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n zhoverformat: axisHoverFormat('z', 1),\n hovertemplate: hovertemplateAttrs({}, {keys: 'z'}),\n showlegend: extendFlat({}, baseAttrs.showlegend, {dflt: false})\n },\n colorScaleAttrs('', {cLetter: 'z', autoColorDflt: false})\n);\n\n},{\"../../components/colorscale/attributes\":373,\"../../lib/extend\":493,\"../../plots/attributes\":550,\"../../plots/cartesian/axis_format_attributes\":557,\"../../plots/template_attributes\":633,\"../heatmap/attributes\":792,\"../histogram/attributes\":811,\"../histogram/bin_attributes\":813}],825:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Axes = _dereq_('../../plots/cartesian/axes');\n\nvar binFunctions = _dereq_('../histogram/bin_functions');\nvar normFunctions = _dereq_('../histogram/norm_functions');\nvar doAvg = _dereq_('../histogram/average');\nvar getBinSpanLabelRound = _dereq_('../histogram/bin_label_vals');\nvar calcAllAutoBins = _dereq_('../histogram/calc').calcAllAutoBins;\n\nmodule.exports = function calc(gd, trace) {\n var xa = Axes.getFromId(gd, trace.xaxis);\n var ya = Axes.getFromId(gd, trace.yaxis);\n\n var xcalendar = trace.xcalendar;\n var ycalendar = trace.ycalendar;\n var xr2c = function(v) { return xa.r2c(v, 0, xcalendar); };\n var yr2c = function(v) { return ya.r2c(v, 0, ycalendar); };\n var xc2r = function(v) { return xa.c2r(v, 0, xcalendar); };\n var yc2r = function(v) { return ya.c2r(v, 0, ycalendar); };\n\n var i, j, n, m;\n\n // calculate the bins\n var xBinsAndPos = calcAllAutoBins(gd, trace, xa, 'x');\n var xBinSpec = xBinsAndPos[0];\n var xPos0 = xBinsAndPos[1];\n var yBinsAndPos = calcAllAutoBins(gd, trace, ya, 'y');\n var yBinSpec = yBinsAndPos[0];\n var yPos0 = yBinsAndPos[1];\n\n var serieslen = trace._length;\n if(xPos0.length > serieslen) xPos0.splice(serieslen, xPos0.length - serieslen);\n if(yPos0.length > serieslen) yPos0.splice(serieslen, yPos0.length - serieslen);\n\n // make the empty bin array & scale the map\n var z = [];\n var onecol = [];\n var zerocol = [];\n var nonuniformBinsX = typeof xBinSpec.size === 'string';\n var nonuniformBinsY = typeof yBinSpec.size === 'string';\n var xEdges = [];\n var yEdges = [];\n var xbins = nonuniformBinsX ? xEdges : xBinSpec;\n var ybins = nonuniformBinsY ? yEdges : yBinSpec;\n var total = 0;\n var counts = [];\n var inputPoints = [];\n var norm = trace.histnorm;\n var func = trace.histfunc;\n var densitynorm = norm.indexOf('density') !== -1;\n var extremefunc = func === 'max' || func === 'min';\n var sizeinit = extremefunc ? null : 0;\n var binfunc = binFunctions.count;\n var normfunc = normFunctions[norm];\n var doavg = false;\n var xinc = [];\n var yinc = [];\n\n // set a binning function other than count?\n // for binning functions: check first for 'z',\n // then 'mc' in case we had a colored scatter plot\n // and want to transfer these colors to the 2D histo\n // TODO: axe this, make it the responsibility of the app changing type? or an impliedEdit?\n var rawCounterData = ('z' in trace) ?\n trace.z :\n (('marker' in trace && Array.isArray(trace.marker.color)) ?\n trace.marker.color : '');\n if(rawCounterData && func !== 'count') {\n doavg = func === 'avg';\n binfunc = binFunctions[func];\n }\n\n // decrease end a little in case of rounding errors\n var xBinSize = xBinSpec.size;\n var xBinStart = xr2c(xBinSpec.start);\n var xBinEnd = xr2c(xBinSpec.end) +\n (xBinStart - Axes.tickIncrement(xBinStart, xBinSize, false, xcalendar)) / 1e6;\n\n for(i = xBinStart; i < xBinEnd; i = Axes.tickIncrement(i, xBinSize, false, xcalendar)) {\n onecol.push(sizeinit);\n xEdges.push(i);\n if(doavg) zerocol.push(0);\n }\n xEdges.push(i);\n\n var nx = onecol.length;\n var dx = (i - xBinStart) / nx;\n var x0 = xc2r(xBinStart + dx / 2);\n\n var yBinSize = yBinSpec.size;\n var yBinStart = yr2c(yBinSpec.start);\n var yBinEnd = yr2c(yBinSpec.end) +\n (yBinStart - Axes.tickIncrement(yBinStart, yBinSize, false, ycalendar)) / 1e6;\n\n for(i = yBinStart; i < yBinEnd; i = Axes.tickIncrement(i, yBinSize, false, ycalendar)) {\n z.push(onecol.slice());\n yEdges.push(i);\n var ipCol = new Array(nx);\n for(j = 0; j < nx; j++) ipCol[j] = [];\n inputPoints.push(ipCol);\n if(doavg) counts.push(zerocol.slice());\n }\n yEdges.push(i);\n\n var ny = z.length;\n var dy = (i - yBinStart) / ny;\n var y0 = yc2r(yBinStart + dy / 2);\n\n if(densitynorm) {\n xinc = makeIncrements(onecol.length, xbins, dx, nonuniformBinsX);\n yinc = makeIncrements(z.length, ybins, dy, nonuniformBinsY);\n }\n\n // for date axes we need bin bounds to be calcdata. For nonuniform bins\n // we already have this, but uniform with start/end/size they're still strings.\n if(!nonuniformBinsX && xa.type === 'date') xbins = binsToCalc(xr2c, xbins);\n if(!nonuniformBinsY && ya.type === 'date') ybins = binsToCalc(yr2c, ybins);\n\n // put data into bins\n var uniqueValsPerX = true;\n var uniqueValsPerY = true;\n var xVals = new Array(nx);\n var yVals = new Array(ny);\n var xGapLow = Infinity;\n var xGapHigh = Infinity;\n var yGapLow = Infinity;\n var yGapHigh = Infinity;\n for(i = 0; i < serieslen; i++) {\n var xi = xPos0[i];\n var yi = yPos0[i];\n n = Lib.findBin(xi, xbins);\n m = Lib.findBin(yi, ybins);\n if(n >= 0 && n < nx && m >= 0 && m < ny) {\n total += binfunc(n, i, z[m], rawCounterData, counts[m]);\n inputPoints[m][n].push(i);\n\n if(uniqueValsPerX) {\n if(xVals[n] === undefined) xVals[n] = xi;\n else if(xVals[n] !== xi) uniqueValsPerX = false;\n }\n if(uniqueValsPerY) {\n if(yVals[m] === undefined) yVals[m] = yi;\n else if(yVals[m] !== yi) uniqueValsPerY = false;\n }\n\n xGapLow = Math.min(xGapLow, xi - xEdges[n]);\n xGapHigh = Math.min(xGapHigh, xEdges[n + 1] - xi);\n yGapLow = Math.min(yGapLow, yi - yEdges[m]);\n yGapHigh = Math.min(yGapHigh, yEdges[m + 1] - yi);\n }\n }\n // normalize, if needed\n if(doavg) {\n for(m = 0; m < ny; m++) total += doAvg(z[m], counts[m]);\n }\n if(normfunc) {\n for(m = 0; m < ny; m++) normfunc(z[m], total, xinc, yinc[m]);\n }\n\n return {\n x: xPos0,\n xRanges: getRanges(xEdges, uniqueValsPerX && xVals, xGapLow, xGapHigh, xa, xcalendar),\n x0: x0,\n dx: dx,\n y: yPos0,\n yRanges: getRanges(yEdges, uniqueValsPerY && yVals, yGapLow, yGapHigh, ya, ycalendar),\n y0: y0,\n dy: dy,\n z: z,\n pts: inputPoints\n };\n};\n\nfunction makeIncrements(len, bins, dv, nonuniform) {\n var out = new Array(len);\n var i;\n if(nonuniform) {\n for(i = 0; i < len; i++) out[i] = 1 / (bins[i + 1] - bins[i]);\n } else {\n var inc = 1 / dv;\n for(i = 0; i < len; i++) out[i] = inc;\n }\n return out;\n}\n\nfunction binsToCalc(r2c, bins) {\n return {\n start: r2c(bins.start),\n end: r2c(bins.end),\n size: bins.size\n };\n}\n\nfunction getRanges(edges, uniqueVals, gapLow, gapHigh, ax, calendar) {\n var i;\n var len = edges.length - 1;\n var out = new Array(len);\n var roundFn = getBinSpanLabelRound(gapLow, gapHigh, edges, ax, calendar);\n\n for(i = 0; i < len; i++) {\n var v = (uniqueVals || [])[i];\n out[i] = v === undefined ?\n [roundFn(edges[i]), roundFn(edges[i + 1], true)] :\n [v, v];\n }\n return out;\n}\n\n},{\"../../lib\":503,\"../../plots/cartesian/axes\":554,\"../histogram/average\":812,\"../histogram/bin_functions\":814,\"../histogram/bin_label_vals\":815,\"../histogram/calc\":816,\"../histogram/norm_functions\":823}],826:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar handleSampleDefaults = _dereq_('./sample_defaults');\nvar handleStyleDefaults = _dereq_('../heatmap/style_defaults');\nvar colorscaleDefaults = _dereq_('../../components/colorscale/defaults');\nvar attributes = _dereq_('./attributes');\n\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n handleSampleDefaults(traceIn, traceOut, coerce, layout);\n if(traceOut.visible === false) return;\n\n handleStyleDefaults(traceIn, traceOut, coerce, layout);\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: '', cLetter: 'z'});\n coerce('hovertemplate');\n coerce('xhoverformat');\n coerce('yhoverformat');\n};\n\n},{\"../../components/colorscale/defaults\":376,\"../../lib\":503,\"../heatmap/style_defaults\":805,\"./attributes\":824,\"./sample_defaults\":829}],827:[function(_dereq_,module,exports){\n'use strict';\n\nvar heatmapHover = _dereq_('../heatmap/hover');\nvar hoverLabelText = _dereq_('../../plots/cartesian/axes').hoverLabelText;\n\nmodule.exports = function hoverPoints(pointData, xval, yval, hovermode, opts) {\n var pts = heatmapHover(pointData, xval, yval, hovermode, opts);\n\n if(!pts) return;\n\n pointData = pts[0];\n var indices = pointData.index;\n var ny = indices[0];\n var nx = indices[1];\n var cd0 = pointData.cd[0];\n var trace = cd0.trace;\n var xRange = cd0.xRanges[nx];\n var yRange = cd0.yRanges[ny];\n\n pointData.xLabel = hoverLabelText(pointData.xa, [xRange[0], xRange[1]], trace.xhoverformat);\n pointData.yLabel = hoverLabelText(pointData.ya, [yRange[0], yRange[1]], trace.yhoverformat);\n\n return pts;\n};\n\n},{\"../../plots/cartesian/axes\":554,\"../heatmap/hover\":799}],828:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n crossTraceDefaults: _dereq_('../histogram/cross_trace_defaults'),\n calc: _dereq_('../heatmap/calc'),\n plot: _dereq_('../heatmap/plot'),\n layerName: 'heatmaplayer',\n colorbar: _dereq_('../heatmap/colorbar'),\n style: _dereq_('../heatmap/style'),\n hoverPoints: _dereq_('./hover'),\n eventData: _dereq_('../histogram/event_data'),\n\n moduleType: 'trace',\n name: 'histogram2d',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: ['cartesian', 'svg', '2dMap', 'histogram', 'showLegend'],\n meta: {\n }\n};\n\n},{\"../../plots/cartesian\":568,\"../heatmap/calc\":793,\"../heatmap/colorbar\":795,\"../heatmap/plot\":803,\"../heatmap/style\":804,\"../histogram/cross_trace_defaults\":818,\"../histogram/event_data\":820,\"./attributes\":824,\"./defaults\":826,\"./hover\":827}],829:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\n\nmodule.exports = function handleSampleDefaults(traceIn, traceOut, coerce, layout) {\n var x = coerce('x');\n var y = coerce('y');\n var xlen = Lib.minRowLength(x);\n var ylen = Lib.minRowLength(y);\n\n // we could try to accept x0 and dx, etc...\n // but that's a pretty weird use case.\n // for now require both x and y explicitly specified.\n if(!xlen || !ylen) {\n traceOut.visible = false;\n return;\n }\n\n traceOut._length = Math.min(xlen, ylen);\n\n var handleCalendarDefaults = Registry.getComponentMethod('calendars', 'handleTraceDefaults');\n handleCalendarDefaults(traceIn, traceOut, ['x', 'y'], layout);\n\n // if marker.color is an array, we can use it in aggregation instead of z\n var hasAggregationData = coerce('z') || coerce('marker.color');\n\n if(hasAggregationData) coerce('histfunc');\n coerce('histnorm');\n\n // Note: bin defaults are now handled in Histogram2D.crossTraceDefaults\n // autobin(x|y) are only included here to appease Plotly.validate\n coerce('autobinx');\n coerce('autobiny');\n};\n\n},{\"../../lib\":503,\"../../registry\":638}],830:[function(_dereq_,module,exports){\n'use strict';\n\nvar histogram2dAttrs = _dereq_('../histogram2d/attributes');\nvar contourAttrs = _dereq_('../contour/attributes');\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nmodule.exports = extendFlat({\n x: histogram2dAttrs.x,\n y: histogram2dAttrs.y,\n z: histogram2dAttrs.z,\n marker: histogram2dAttrs.marker,\n\n histnorm: histogram2dAttrs.histnorm,\n histfunc: histogram2dAttrs.histfunc,\n nbinsx: histogram2dAttrs.nbinsx,\n xbins: histogram2dAttrs.xbins,\n nbinsy: histogram2dAttrs.nbinsy,\n ybins: histogram2dAttrs.ybins,\n autobinx: histogram2dAttrs.autobinx,\n autobiny: histogram2dAttrs.autobiny,\n\n bingroup: histogram2dAttrs.bingroup,\n xbingroup: histogram2dAttrs.xbingroup,\n ybingroup: histogram2dAttrs.ybingroup,\n\n autocontour: contourAttrs.autocontour,\n ncontours: contourAttrs.ncontours,\n contours: contourAttrs.contours,\n line: {\n color: contourAttrs.line.color,\n width: extendFlat({}, contourAttrs.line.width, {\n dflt: 0.5,\n }),\n dash: contourAttrs.line.dash,\n smoothing: contourAttrs.line.smoothing,\n editType: 'plot'\n },\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n zhoverformat: axisHoverFormat('z', 1),\n hovertemplate: histogram2dAttrs.hovertemplate\n},\n colorScaleAttrs('', {\n cLetter: 'z',\n editTypeOverride: 'calc'\n })\n);\n\n},{\"../../components/colorscale/attributes\":373,\"../../lib/extend\":493,\"../../plots/cartesian/axis_format_attributes\":557,\"../contour/attributes\":735,\"../histogram2d/attributes\":824}],831:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar handleSampleDefaults = _dereq_('../histogram2d/sample_defaults');\nvar handleContoursDefaults = _dereq_('../contour/contours_defaults');\nvar handleStyleDefaults = _dereq_('../contour/style_defaults');\nvar attributes = _dereq_('./attributes');\n\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n function coerce2(attr) {\n return Lib.coerce2(traceIn, traceOut, attributes, attr);\n }\n\n handleSampleDefaults(traceIn, traceOut, coerce, layout);\n if(traceOut.visible === false) return;\n\n handleContoursDefaults(traceIn, traceOut, coerce, coerce2);\n handleStyleDefaults(traceIn, traceOut, coerce, layout);\n coerce('hovertemplate');\n coerce('xhoverformat');\n coerce('yhoverformat');\n};\n\n},{\"../../lib\":503,\"../contour/contours_defaults\":742,\"../contour/style_defaults\":756,\"../histogram2d/sample_defaults\":829,\"./attributes\":830}],832:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n crossTraceDefaults: _dereq_('../histogram/cross_trace_defaults'),\n calc: _dereq_('../contour/calc'),\n plot: _dereq_('../contour/plot').plot,\n layerName: 'contourlayer',\n style: _dereq_('../contour/style'),\n colorbar: _dereq_('../contour/colorbar'),\n hoverPoints: _dereq_('../contour/hover'),\n\n moduleType: 'trace',\n name: 'histogram2dcontour',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: ['cartesian', 'svg', '2dMap', 'contour', 'histogram', 'showLegend'],\n meta: {\n }\n};\n\n},{\"../../plots/cartesian\":568,\"../contour/calc\":736,\"../contour/colorbar\":738,\"../contour/hover\":748,\"../contour/plot\":753,\"../contour/style\":755,\"../histogram/cross_trace_defaults\":818,\"./attributes\":830,\"./defaults\":831}],833:[function(_dereq_,module,exports){\n'use strict';\n\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\n\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar domainAttrs = _dereq_('../../plots/domain').attributes;\nvar pieAttrs = _dereq_('../pie/attributes');\nvar sunburstAttrs = _dereq_('../sunburst/attributes');\nvar treemapAttrs = _dereq_('../treemap/attributes');\nvar constants = _dereq_('../treemap/constants');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nmodule.exports = {\n labels: sunburstAttrs.labels,\n parents: sunburstAttrs.parents,\n\n values: sunburstAttrs.values,\n branchvalues: sunburstAttrs.branchvalues,\n count: sunburstAttrs.count,\n\n level: sunburstAttrs.level,\n maxdepth: sunburstAttrs.maxdepth,\n\n tiling: {\n orientation: {\n valType: 'enumerated',\n values: ['v', 'h'],\n dflt: 'h',\n editType: 'plot',\n },\n\n flip: treemapAttrs.tiling.flip,\n\n pad: {\n valType: 'number',\n min: 0,\n dflt: 0,\n editType: 'plot',\n },\n\n\n editType: 'calc',\n },\n\n marker: extendFlat({\n colors: sunburstAttrs.marker.colors,\n\n line: sunburstAttrs.marker.line,\n\n editType: 'calc'\n },\n colorScaleAttrs('marker', {\n colorAttr: 'colors',\n anim: false // TODO: set to anim: true?\n })\n ),\n\n leaf: sunburstAttrs.leaf,\n\n pathbar: treemapAttrs.pathbar,\n\n text: pieAttrs.text,\n textinfo: sunburstAttrs.textinfo,\n // TODO: incorporate `label` and `value` in the eventData\n texttemplate: texttemplateAttrs({editType: 'plot'}, {\n keys: constants.eventDataKeys.concat(['label', 'value'])\n }),\n\n hovertext: pieAttrs.hovertext,\n hoverinfo: sunburstAttrs.hoverinfo,\n hovertemplate: hovertemplateAttrs({}, {\n keys: constants.eventDataKeys\n }),\n\n textfont: pieAttrs.textfont,\n insidetextfont: pieAttrs.insidetextfont,\n outsidetextfont: treemapAttrs.outsidetextfont,\n\n textposition: treemapAttrs.textposition,\n sort: pieAttrs.sort,\n root: sunburstAttrs.root,\n\n domain: domainAttrs({name: 'icicle', trace: true, editType: 'calc'}),\n};\n\n},{\"../../components/colorscale/attributes\":373,\"../../lib/extend\":493,\"../../plots/domain\":584,\"../../plots/template_attributes\":633,\"../pie/attributes\":899,\"../sunburst/attributes\":1044,\"../treemap/attributes\":1070,\"../treemap/constants\":1073}],834:[function(_dereq_,module,exports){\n'use strict';\n\nvar plots = _dereq_('../../plots/plots');\n\nexports.name = 'icicle';\n\nexports.plot = function(gd, traces, transitionOpts, makeOnCompleteCallback) {\n plots.plotBasePlot(exports.name, gd, traces, transitionOpts, makeOnCompleteCallback);\n};\n\nexports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n plots.cleanBasePlot(exports.name, newFullData, newFullLayout, oldFullData, oldFullLayout);\n};\n\n},{\"../../plots/plots\":619}],835:[function(_dereq_,module,exports){\n'use strict';\n\nvar calc = _dereq_('../sunburst/calc');\n\nexports.calc = function(gd, trace) {\n return calc.calc(gd, trace);\n};\n\nexports.crossTraceCalc = function(gd) {\n return calc._runCrossTraceCalc('icicle', gd);\n};\n\n},{\"../sunburst/calc\":1046}],836:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar attributes = _dereq_('./attributes');\nvar Color = _dereq_('../../components/color');\nvar handleDomainDefaults = _dereq_('../../plots/domain').defaults;\nvar handleText = _dereq_('../bar/defaults').handleText;\nvar TEXTPAD = _dereq_('../bar/constants').TEXTPAD;\n\nvar Colorscale = _dereq_('../../components/colorscale');\nvar hasColorscale = Colorscale.hasColorscale;\nvar colorscaleDefaults = Colorscale.handleDefaults;\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var labels = coerce('labels');\n var parents = coerce('parents');\n\n if(!labels || !labels.length || !parents || !parents.length) {\n traceOut.visible = false;\n return;\n }\n\n var vals = coerce('values');\n if(vals && vals.length) {\n coerce('branchvalues');\n } else {\n coerce('count');\n }\n\n coerce('level');\n coerce('maxdepth');\n\n coerce('tiling.orientation');\n coerce('tiling.flip');\n coerce('tiling.pad');\n\n var text = coerce('text');\n coerce('texttemplate');\n if(!traceOut.texttemplate) coerce('textinfo', Array.isArray(text) ? 'text+label' : 'label');\n\n coerce('hovertext');\n coerce('hovertemplate');\n\n var hasPathbar = coerce('pathbar.visible');\n\n var textposition = 'auto';\n handleText(traceIn, traceOut, layout, coerce, textposition, {\n hasPathbar: hasPathbar,\n moduleHasSelected: false,\n moduleHasUnselected: false,\n moduleHasConstrain: false,\n moduleHasCliponaxis: false,\n moduleHasTextangle: false,\n moduleHasInsideanchor: false\n });\n coerce('textposition');\n\n var lineWidth = coerce('marker.line.width');\n if(lineWidth) coerce('marker.line.color', layout.paper_bgcolor);\n\n coerce('marker.colors');\n var withColorscale = traceOut._hasColorscale = (\n hasColorscale(traceIn, 'marker', 'colors') ||\n (traceIn.marker || {}).coloraxis // N.B. special logic to consider \"values\" colorscales\n );\n if(withColorscale) {\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: 'marker.', cLetter: 'c'});\n }\n\n coerce('leaf.opacity', withColorscale ? 1 : 0.7);\n\n traceOut._hovered = {\n marker: {\n line: {\n width: 2,\n color: Color.contrast(layout.paper_bgcolor)\n }\n }\n };\n\n if(hasPathbar) {\n // This works even for multi-line labels as icicle pathbar trim out line breaks\n coerce('pathbar.thickness', traceOut.pathbar.textfont.size + 2 * TEXTPAD);\n\n coerce('pathbar.side');\n coerce('pathbar.edgeshape');\n }\n\n coerce('sort');\n\n coerce('root.color');\n\n handleDomainDefaults(traceOut, layout, coerce);\n\n // do not support transforms for now\n traceOut._length = null;\n};\n\n},{\"../../components/color\":366,\"../../components/colorscale\":378,\"../../lib\":503,\"../../plots/domain\":584,\"../bar/constants\":650,\"../bar/defaults\":652,\"./attributes\":833}],837:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Lib = _dereq_('../../lib');\nvar Drawing = _dereq_('../../components/drawing');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\n\nvar partition = _dereq_('./partition');\nvar styleOne = _dereq_('./style').styleOne;\nvar constants = _dereq_('../treemap/constants');\nvar helpers = _dereq_('../sunburst/helpers');\nvar attachFxHandlers = _dereq_('../sunburst/fx');\nvar formatSliceLabel = _dereq_('../sunburst/plot').formatSliceLabel;\n\nvar onPathbar = false; // for Descendants\n\nmodule.exports = function drawDescendants(gd, cd, entry, slices, opts) {\n var width = opts.width;\n var height = opts.height;\n var viewX = opts.viewX;\n var viewY = opts.viewY;\n var pathSlice = opts.pathSlice;\n var toMoveInsideSlice = opts.toMoveInsideSlice;\n var strTransform = opts.strTransform;\n var hasTransition = opts.hasTransition;\n var handleSlicesExit = opts.handleSlicesExit;\n var makeUpdateSliceInterpolator = opts.makeUpdateSliceInterpolator;\n var makeUpdateTextInterpolator = opts.makeUpdateTextInterpolator;\n var prevEntry = opts.prevEntry;\n var refRect = {};\n\n var fullLayout = gd._fullLayout;\n var cd0 = cd[0];\n var trace = cd0.trace;\n\n var hasLeft = trace.textposition.indexOf('left') !== -1;\n var hasRight = trace.textposition.indexOf('right') !== -1;\n var hasBottom = trace.textposition.indexOf('bottom') !== -1;\n\n // N.B. slice data isn't the calcdata,\n // grab corresponding calcdata item in sliceData[i].data.data\n var allData = partition(entry, [width, height], {\n flipX: trace.tiling.flip.indexOf('x') > -1,\n flipY: trace.tiling.flip.indexOf('y') > -1,\n orientation: trace.tiling.orientation,\n pad: {\n inner: trace.tiling.pad\n },\n maxDepth: trace._maxDepth\n });\n\n var sliceData = allData.descendants();\n\n var minVisibleDepth = Infinity;\n var maxVisibleDepth = -Infinity;\n sliceData.forEach(function(pt) {\n var depth = pt.depth;\n if(depth >= trace._maxDepth) {\n // hide slices that won't show up on graph\n pt.x0 = pt.x1 = (pt.x0 + pt.x1) / 2;\n pt.y0 = pt.y1 = (pt.y0 + pt.y1) / 2;\n } else {\n minVisibleDepth = Math.min(minVisibleDepth, depth);\n maxVisibleDepth = Math.max(maxVisibleDepth, depth);\n }\n });\n\n slices = slices.data(sliceData, helpers.getPtId);\n\n trace._maxVisibleLayers = isFinite(maxVisibleDepth) ? maxVisibleDepth - minVisibleDepth + 1 : 0;\n\n slices.enter().append('g')\n .classed('slice', true);\n\n handleSlicesExit(slices, onPathbar, refRect, [width, height], pathSlice);\n\n slices.order();\n\n // next coords of previous entry\n var nextOfPrevEntry = null;\n if(hasTransition && prevEntry) {\n var prevEntryId = helpers.getPtId(prevEntry);\n slices.each(function(pt) {\n if(nextOfPrevEntry === null && (helpers.getPtId(pt) === prevEntryId)) {\n nextOfPrevEntry = {\n x0: pt.x0,\n x1: pt.x1,\n y0: pt.y0,\n y1: pt.y1\n };\n }\n });\n }\n\n var getRefRect = function() {\n return nextOfPrevEntry || {\n x0: 0,\n x1: width,\n y0: 0,\n y1: height\n };\n };\n\n var updateSlices = slices;\n if(hasTransition) {\n updateSlices = updateSlices.transition().each('end', function() {\n // N.B. gd._transitioning is (still) *true* by the time\n // transition updates get here\n var sliceTop = d3.select(this);\n helpers.setSliceCursor(sliceTop, gd, {\n hideOnRoot: true,\n hideOnLeaves: false,\n isTransitioning: false\n });\n });\n }\n\n updateSlices.each(function(pt) {\n // for bbox\n pt._x0 = viewX(pt.x0);\n pt._x1 = viewX(pt.x1);\n pt._y0 = viewY(pt.y0);\n pt._y1 = viewY(pt.y1);\n\n pt._hoverX = viewX(pt.x1 - trace.tiling.pad),\n pt._hoverY = hasBottom ?\n viewY(pt.y1 - trace.tiling.pad / 2) :\n viewY(pt.y0 + trace.tiling.pad / 2);\n\n var sliceTop = d3.select(this);\n\n var slicePath = Lib.ensureSingle(sliceTop, 'path', 'surface', function(s) {\n s.style('pointer-events', 'all');\n });\n\n if(hasTransition) {\n slicePath.transition().attrTween('d', function(pt2) {\n var interp = makeUpdateSliceInterpolator(\n pt2,\n onPathbar,\n getRefRect(),\n [width, height],\n {\n orientation: trace.tiling.orientation,\n flipX: trace.tiling.flip.indexOf('x') > -1,\n flipY: trace.tiling.flip.indexOf('y') > -1,\n }\n );\n return function(t) { return pathSlice(interp(t)); };\n });\n } else {\n slicePath.attr('d', pathSlice);\n }\n\n sliceTop\n .call(attachFxHandlers, entry, gd, cd, {\n styleOne: styleOne,\n eventDataKeys: constants.eventDataKeys,\n transitionTime: constants.CLICK_TRANSITION_TIME,\n transitionEasing: constants.CLICK_TRANSITION_EASING\n })\n .call(helpers.setSliceCursor, gd, { isTransitioning: gd._transitioning });\n\n slicePath.call(styleOne, pt, trace, {\n hovered: false\n });\n\n if(pt.x0 === pt.x1 || pt.y0 === pt.y1) {\n pt._text = '';\n } else {\n pt._text = formatSliceLabel(pt, entry, trace, cd, fullLayout) || '';\n }\n\n var sliceTextGroup = Lib.ensureSingle(sliceTop, 'g', 'slicetext');\n var sliceText = Lib.ensureSingle(sliceTextGroup, 'text', '', function(s) {\n // prohibit tex interpretation until we can handle\n // tex and regular text together\n s.attr('data-notex', 1);\n });\n\n var font = Lib.ensureUniformFontSize(gd, helpers.determineTextFont(trace, pt, fullLayout.font));\n\n sliceText.text(pt._text || ' ') // use one space character instead of a blank string to avoid jumps during transition\n .classed('slicetext', true)\n .attr('text-anchor', hasRight ? 'end' : hasLeft ? 'start' : 'middle')\n .call(Drawing.font, font)\n .call(svgTextUtils.convertToTspans, gd);\n\n pt.textBB = Drawing.bBox(sliceText.node());\n pt.transform = toMoveInsideSlice(pt, {\n fontSize: font.size\n });\n pt.transform.fontSize = font.size;\n\n if(hasTransition) {\n sliceText.transition().attrTween('transform', function(pt2) {\n var interp = makeUpdateTextInterpolator(pt2, onPathbar, getRefRect(), [width, height]);\n return function(t) { return strTransform(interp(t)); };\n });\n } else {\n sliceText.attr('transform', strTransform(pt));\n }\n });\n\n return nextOfPrevEntry;\n};\n\n},{\"../../components/drawing\":388,\"../../lib\":503,\"../../lib/svg_text_utils\":529,\"../sunburst/fx\":1049,\"../sunburst/helpers\":1050,\"../sunburst/plot\":1054,\"../treemap/constants\":1073,\"./partition\":841,\"./style\":843,\"@plotly/d3\":58}],838:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'trace',\n name: 'icicle',\n basePlotModule: _dereq_('./base_plot'),\n categories: [],\n animatable: true,\n\n attributes: _dereq_('./attributes'),\n layoutAttributes: _dereq_('./layout_attributes'),\n supplyDefaults: _dereq_('./defaults'),\n supplyLayoutDefaults: _dereq_('./layout_defaults'),\n\n calc: _dereq_('./calc').calc,\n crossTraceCalc: _dereq_('./calc').crossTraceCalc,\n\n plot: _dereq_('./plot'),\n style: _dereq_('./style').style,\n\n colorbar: _dereq_('../scatter/marker_colorbar'),\n\n meta: {\n }\n};\n\n},{\"../scatter/marker_colorbar\":943,\"./attributes\":833,\"./base_plot\":834,\"./calc\":835,\"./defaults\":836,\"./layout_attributes\":839,\"./layout_defaults\":840,\"./plot\":842,\"./style\":843}],839:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n iciclecolorway: {\n valType: 'colorlist',\n editType: 'calc',\n },\n extendiciclecolors: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n }\n};\n\n},{}],840:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar layoutAttributes = _dereq_('./layout_attributes');\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(layoutIn, layoutOut, layoutAttributes, attr, dflt);\n }\n coerce('iciclecolorway', layoutOut.colorway);\n coerce('extendiciclecolors');\n};\n\n},{\"../../lib\":503,\"./layout_attributes\":839}],841:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3Hierarchy = _dereq_('d3-hierarchy');\nvar flipTree = _dereq_('../treemap/flip_tree');\n\nmodule.exports = function partition(entry, size, opts) {\n var flipX = opts.flipX;\n var flipY = opts.flipY;\n var swapXY = opts.orientation === 'h';\n var maxDepth = opts.maxDepth;\n\n var newWidth = size[0];\n var newHeight = size[1];\n if(maxDepth) {\n newWidth = (entry.height + 1) * size[0] / Math.min(entry.height + 1, maxDepth);\n newHeight = (entry.height + 1) * size[1] / Math.min(entry.height + 1, maxDepth);\n }\n\n var result = d3Hierarchy\n .partition()\n .padding(opts.pad.inner)\n .size(\n swapXY ? [size[1], newWidth] : [size[0], newHeight]\n )(entry);\n\n if(swapXY || flipX || flipY) {\n flipTree(result, size, {\n swapXY: swapXY,\n flipX: flipX,\n flipY: flipY\n });\n }\n return result;\n};\n\n},{\"../treemap/flip_tree\":1078,\"d3-hierarchy\":115}],842:[function(_dereq_,module,exports){\n'use strict';\n\nvar draw = _dereq_('../treemap/draw');\nvar drawDescendants = _dereq_('./draw_descendants');\n\nmodule.exports = function _plot(gd, cdmodule, transitionOpts, makeOnCompleteCallback) {\n return draw(gd, cdmodule, transitionOpts, makeOnCompleteCallback, {\n type: 'icicle',\n drawDescendants: drawDescendants\n });\n};\n\n},{\"../treemap/draw\":1075,\"./draw_descendants\":837}],843:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Color = _dereq_('../../components/color');\nvar Lib = _dereq_('../../lib');\nvar resizeText = _dereq_('../bar/uniform_text').resizeText;\n\nfunction style(gd) {\n var s = gd._fullLayout._iciclelayer.selectAll('.trace');\n resizeText(gd, s, 'icicle');\n\n s.each(function(cd) {\n var gTrace = d3.select(this);\n var cd0 = cd[0];\n var trace = cd0.trace;\n\n gTrace.style('opacity', trace.opacity);\n\n gTrace.selectAll('path.surface').each(function(pt) {\n d3.select(this).call(styleOne, pt, trace);\n });\n });\n}\n\nfunction styleOne(s, pt, trace) {\n var cdi = pt.data.data;\n var isLeaf = !pt.children;\n var ptNumber = cdi.i;\n var lineColor = Lib.castOption(trace, ptNumber, 'marker.line.color') || Color.defaultLine;\n var lineWidth = Lib.castOption(trace, ptNumber, 'marker.line.width') || 0;\n\n s.style('stroke-width', lineWidth)\n .call(Color.fill, cdi.color)\n .call(Color.stroke, lineColor)\n .style('opacity', isLeaf ? trace.leaf.opacity : null);\n}\n\nmodule.exports = {\n style: style,\n styleOne: styleOne\n};\n\n},{\"../../components/color\":366,\"../../lib\":503,\"../bar/uniform_text\":664,\"@plotly/d3\":58}],844:[function(_dereq_,module,exports){\n'use strict';\n\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar colormodel = _dereq_('./constants').colormodel;\n\nvar cm = ['rgb', 'rgba', 'rgba256', 'hsl', 'hsla'];\nvar zminDesc = [];\nvar zmaxDesc = [];\nfor(var i = 0; i < cm.length; i++) {\n var cr = colormodel[cm[i]];\n zminDesc.push('For the `' + cm[i] + '` colormodel, it is [' + (cr.zminDflt || cr.min).join(', ') + '].');\n zmaxDesc.push('For the `' + cm[i] + '` colormodel, it is [' + (cr.zmaxDflt || cr.max).join(', ') + '].');\n}\n\nmodule.exports = extendFlat({\n source: {\n valType: 'string',\n editType: 'calc',\n },\n z: {\n valType: 'data_array',\n editType: 'calc',\n },\n colormodel: {\n valType: 'enumerated',\n values: cm,\n editType: 'calc',\n },\n zsmooth: {\n valType: 'enumerated',\n values: ['fast', false],\n dflt: false,\n editType: 'plot',\n },\n zmin: {\n valType: 'info_array',\n items: [\n {valType: 'number', editType: 'calc'},\n {valType: 'number', editType: 'calc'},\n {valType: 'number', editType: 'calc'},\n {valType: 'number', editType: 'calc'}\n ],\n editType: 'calc',\n },\n zmax: {\n valType: 'info_array',\n items: [\n {valType: 'number', editType: 'calc'},\n {valType: 'number', editType: 'calc'},\n {valType: 'number', editType: 'calc'},\n {valType: 'number', editType: 'calc'}\n ],\n editType: 'calc',\n },\n x0: {\n valType: 'any',\n dflt: 0,\n editType: 'calc+clearAxisTypes',\n },\n y0: {\n valType: 'any',\n dflt: 0,\n editType: 'calc+clearAxisTypes',\n },\n dx: {\n valType: 'number',\n dflt: 1,\n editType: 'calc',\n },\n dy: {\n valType: 'number',\n dflt: 1,\n editType: 'calc',\n },\n text: {\n valType: 'data_array',\n editType: 'plot',\n },\n hovertext: {\n valType: 'data_array',\n editType: 'plot',\n },\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {\n flags: ['x', 'y', 'z', 'color', 'name', 'text'],\n dflt: 'x+y+z+text+name'\n }),\n hovertemplate: hovertemplateAttrs({}, {\n keys: ['z', 'color', 'colormodel']\n }),\n\n transforms: undefined\n});\n\n},{\"../../lib/extend\":493,\"../../plots/attributes\":550,\"../../plots/template_attributes\":633,\"./constants\":846}],845:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar constants = _dereq_('./constants');\nvar isNumeric = _dereq_('fast-isnumeric');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar maxRowLength = _dereq_('../../lib').maxRowLength;\nvar getImageSize = _dereq_('./helpers').getImageSize;\n\nmodule.exports = function calc(gd, trace) {\n var h;\n var w;\n if(trace._hasZ) {\n h = trace.z.length;\n w = maxRowLength(trace.z);\n } else if(trace._hasSource) {\n var size = getImageSize(trace.source);\n h = size.height;\n w = size.width;\n }\n\n var xa = Axes.getFromId(gd, trace.xaxis || 'x');\n var ya = Axes.getFromId(gd, trace.yaxis || 'y');\n\n var x0 = xa.d2c(trace.x0) - trace.dx / 2;\n var y0 = ya.d2c(trace.y0) - trace.dy / 2;\n\n // Set axis range\n var i;\n var xrange = [x0, x0 + w * trace.dx];\n var yrange = [y0, y0 + h * trace.dy];\n if(xa && xa.type === 'log') for(i = 0; i < w; i++) xrange.push(x0 + i * trace.dx);\n if(ya && ya.type === 'log') for(i = 0; i < h; i++) yrange.push(y0 + i * trace.dy);\n trace._extremes[xa._id] = Axes.findExtremes(xa, xrange);\n trace._extremes[ya._id] = Axes.findExtremes(ya, yrange);\n trace._scaler = makeScaler(trace);\n\n var cd0 = {\n x0: x0,\n y0: y0,\n z: trace.z,\n w: w,\n h: h\n };\n return [cd0];\n};\n\nfunction scale(zero, ratio, min, max) {\n return function(c) {\n return Lib.constrain((c - zero) * ratio, min, max);\n };\n}\n\nfunction constrain(min, max) {\n return function(c) { return Lib.constrain(c, min, max);};\n}\n\n// Generate a function to scale color components according to zmin/zmax and the colormodel\nfunction makeScaler(trace) {\n var cr = constants.colormodel[trace.colormodel];\n var colormodel = (cr.colormodel || trace.colormodel);\n var n = colormodel.length;\n\n trace._sArray = [];\n // Loop over all color components\n for(var k = 0; k < n; k++) {\n if(cr.min[k] !== trace.zmin[k] || cr.max[k] !== trace.zmax[k]) {\n trace._sArray.push(scale(\n trace.zmin[k],\n (cr.max[k] - cr.min[k]) / (trace.zmax[k] - trace.zmin[k]),\n cr.min[k],\n cr.max[k]\n ));\n } else {\n trace._sArray.push(constrain(cr.min[k], cr.max[k]));\n }\n }\n\n return function(pixel) {\n var c = pixel.slice(0, n);\n for(var k = 0; k < n; k++) {\n var ck = c[k];\n if(!isNumeric(ck)) return false;\n c[k] = trace._sArray[k](ck);\n }\n return c;\n };\n}\n\n},{\"../../lib\":503,\"../../plots/cartesian/axes\":554,\"./constants\":846,\"./helpers\":849,\"fast-isnumeric\":190}],846:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n colormodel: {\n // min and max define the numerical range accepted in CSS\n // If z(min|max)Dflt are not defined, z(min|max) will default to min/max\n rgb: {\n min: [0, 0, 0],\n max: [255, 255, 255],\n fmt: function(c) {return c.slice(0, 3);},\n suffix: ['', '', '']\n },\n rgba: {\n min: [0, 0, 0, 0],\n max: [255, 255, 255, 1],\n fmt: function(c) {return c.slice(0, 4);},\n suffix: ['', '', '', '']\n },\n rgba256: {\n colormodel: 'rgba', // because rgba256 is not an accept colormodel in CSS\n zminDflt: [0, 0, 0, 0],\n zmaxDflt: [255, 255, 255, 255],\n min: [0, 0, 0, 0],\n max: [255, 255, 255, 1],\n fmt: function(c) {return c.slice(0, 4);},\n suffix: ['', '', '', '']\n },\n hsl: {\n min: [0, 0, 0],\n max: [360, 100, 100],\n fmt: function(c) {\n var p = c.slice(0, 3);\n p[1] = p[1] + '%';\n p[2] = p[2] + '%';\n return p;\n },\n suffix: ['°', '%', '%']\n },\n hsla: {\n min: [0, 0, 0, 0],\n max: [360, 100, 100, 1],\n fmt: function(c) {\n var p = c.slice(0, 4);\n p[1] = p[1] + '%';\n p[2] = p[2] + '%';\n return p;\n },\n suffix: ['°', '%', '%', '']\n }\n },\n // For pixelated image rendering\n // http://phrogz.net/tmp/canvas_image_zoom.html\n // https://developer.mozilla.org/en-US/docs/Web/CSS/image-rendering\n pixelatedStyle: [\n 'image-rendering: optimizeSpeed',\n 'image-rendering: -moz-crisp-edges',\n 'image-rendering: -o-crisp-edges',\n 'image-rendering: -webkit-optimize-contrast',\n 'image-rendering: optimize-contrast',\n 'image-rendering: crisp-edges',\n 'image-rendering: pixelated',\n ''\n ].join('; ')\n};\n\n},{}],847:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar attributes = _dereq_('./attributes');\nvar constants = _dereq_('./constants');\nvar dataUri = _dereq_('../../snapshot/helpers').IMAGE_URL_PREFIX;\n\nmodule.exports = function supplyDefaults(traceIn, traceOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n coerce('source');\n // sanitize source to only allow for data URI representing images\n if(traceOut.source && !traceOut.source.match(dataUri)) delete traceOut.source;\n traceOut._hasSource = !!traceOut.source;\n\n var z = coerce('z');\n traceOut._hasZ = !(z === undefined || !z.length || !z[0] || !z[0].length);\n if(!traceOut._hasZ && !traceOut._hasSource) {\n traceOut.visible = false;\n return;\n }\n\n coerce('x0');\n coerce('y0');\n coerce('dx');\n coerce('dy');\n\n var cm;\n if(traceOut._hasZ) {\n coerce('colormodel', 'rgb');\n cm = constants.colormodel[traceOut.colormodel];\n coerce('zmin', (cm.zminDflt || cm.min));\n coerce('zmax', (cm.zmaxDflt || cm.max));\n } else if(traceOut._hasSource) {\n traceOut.colormodel = 'rgba256';\n cm = constants.colormodel[traceOut.colormodel];\n traceOut.zmin = cm.zminDflt;\n traceOut.zmax = cm.zmaxDflt;\n }\n\n coerce('zsmooth');\n coerce('text');\n coerce('hovertext');\n coerce('hovertemplate');\n\n traceOut._length = null;\n};\n\n},{\"../../lib\":503,\"../../snapshot/helpers\":642,\"./attributes\":844,\"./constants\":846}],848:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function eventData(out, pt) {\n if('xVal' in pt) out.x = pt.xVal;\n if('yVal' in pt) out.y = pt.yVal;\n if(pt.xa) out.xaxis = pt.xa;\n if(pt.ya) out.yaxis = pt.ya;\n out.color = pt.color;\n out.colormodel = pt.trace.colormodel;\n if(!out.z) out.z = pt.color;\n return out;\n};\n\n},{}],849:[function(_dereq_,module,exports){\n'use strict';\n\nvar probeSync = _dereq_('probe-image-size/sync');\nvar dataUri = _dereq_('../../snapshot/helpers').IMAGE_URL_PREFIX;\nvar Buffer = _dereq_('buffer/').Buffer; // note: the trailing slash is important!\n\nexports.getImageSize = function(src) {\n var data = src.replace(dataUri, '');\n var buff = new Buffer(data, 'base64');\n return probeSync(buff);\n};\n\n},{\"../../snapshot/helpers\":642,\"buffer/\":85,\"probe-image-size/sync\":276}],850:[function(_dereq_,module,exports){\n'use strict';\n\nvar Fx = _dereq_('../../components/fx');\nvar Lib = _dereq_('../../lib');\nvar constants = _dereq_('./constants');\n\nmodule.exports = function hoverPoints(pointData, xval, yval) {\n var cd0 = pointData.cd[0];\n var trace = cd0.trace;\n var xa = pointData.xa;\n var ya = pointData.ya;\n\n // Return early if not on image\n if(Fx.inbox(xval - cd0.x0, xval - (cd0.x0 + cd0.w * trace.dx), 0) > 0 ||\n Fx.inbox(yval - cd0.y0, yval - (cd0.y0 + cd0.h * trace.dy), 0) > 0) {\n return;\n }\n\n // Find nearest pixel's index\n var nx = Math.floor((xval - cd0.x0) / trace.dx);\n var ny = Math.floor(Math.abs(yval - cd0.y0) / trace.dy);\n\n var pixel;\n if(trace._hasZ) {\n pixel = cd0.z[ny][nx];\n } else if(trace._hasSource) {\n pixel = trace._canvas.el.getContext('2d').getImageData(nx, ny, 1, 1).data;\n }\n\n // return early if pixel is undefined\n if(!pixel) return;\n\n var hoverinfo = cd0.hi || trace.hoverinfo;\n var fmtColor;\n if(hoverinfo) {\n var parts = hoverinfo.split('+');\n if(parts.indexOf('all') !== -1) parts = ['color'];\n if(parts.indexOf('color') !== -1) fmtColor = true;\n }\n\n var cr = constants.colormodel[trace.colormodel];\n var colormodel = cr.colormodel || trace.colormodel;\n var dims = colormodel.length;\n var c = trace._scaler(pixel);\n var s = cr.suffix;\n\n var colorstring = [];\n if(trace.hovertemplate || fmtColor) {\n colorstring.push('[' + [c[0] + s[0], c[1] + s[1], c[2] + s[2]].join(', '));\n if(dims === 4) colorstring.push(', ' + c[3] + s[3]);\n colorstring.push(']');\n colorstring = colorstring.join('');\n pointData.extraText = colormodel.toUpperCase() + ': ' + colorstring;\n }\n\n var text;\n if(Array.isArray(trace.hovertext) && Array.isArray(trace.hovertext[ny])) {\n text = trace.hovertext[ny][nx];\n } else if(Array.isArray(trace.text) && Array.isArray(trace.text[ny])) {\n text = trace.text[ny][nx];\n }\n\n // TODO: for color model with 3 dims, display something useful for hovertemplate `%{color[3]}`\n var py = ya.c2p(cd0.y0 + (ny + 0.5) * trace.dy);\n var xVal = cd0.x0 + (nx + 0.5) * trace.dx;\n var yVal = cd0.y0 + (ny + 0.5) * trace.dy;\n var zLabel = '[' + pixel.slice(0, trace.colormodel.length).join(', ') + ']';\n return [Lib.extendFlat(pointData, {\n index: [ny, nx],\n x0: xa.c2p(cd0.x0 + nx * trace.dx),\n x1: xa.c2p(cd0.x0 + (nx + 1) * trace.dx),\n y0: py,\n y1: py,\n color: c,\n xVal: xVal,\n xLabelVal: xVal,\n yVal: yVal,\n yLabelVal: yVal,\n zLabelVal: zLabel,\n text: text,\n hovertemplateLabels: {\n 'zLabel': zLabel,\n 'colorLabel': colorstring,\n 'color[0]Label': c[0] + s[0],\n 'color[1]Label': c[1] + s[1],\n 'color[2]Label': c[2] + s[2],\n 'color[3]Label': c[3] + s[3]\n }\n })];\n};\n\n},{\"../../components/fx\":406,\"../../lib\":503,\"./constants\":846}],851:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n calc: _dereq_('./calc'),\n plot: _dereq_('./plot'),\n style: _dereq_('./style'),\n hoverPoints: _dereq_('./hover'),\n eventData: _dereq_('./event_data'),\n\n moduleType: 'trace',\n name: 'image',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: ['cartesian', 'svg', '2dMap', 'noSortingByValue'],\n animatable: false,\n meta: {\n }\n};\n\n},{\"../../plots/cartesian\":568,\"./attributes\":844,\"./calc\":845,\"./defaults\":847,\"./event_data\":848,\"./hover\":850,\"./plot\":852,\"./style\":853}],852:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Lib = _dereq_('../../lib');\nvar strTranslate = Lib.strTranslate;\nvar xmlnsNamespaces = _dereq_('../../constants/xmlns_namespaces');\nvar constants = _dereq_('./constants');\n\nvar unsupportedBrowsers = Lib.isIOS() || Lib.isSafari() || Lib.isIE();\n\nmodule.exports = function plot(gd, plotinfo, cdimage, imageLayer) {\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n\n var supportsPixelatedImage = !(unsupportedBrowsers || gd._context._exportedPlot);\n\n Lib.makeTraceGroups(imageLayer, cdimage, 'im').each(function(cd) {\n var plotGroup = d3.select(this);\n var cd0 = cd[0];\n var trace = cd0.trace;\n var realImage = (\n ((trace.zsmooth === 'fast') || (trace.zsmooth === false && supportsPixelatedImage)) &&\n !trace._hasZ && trace._hasSource && xa.type === 'linear' && ya.type === 'linear'\n );\n trace._realImage = realImage;\n\n var z = cd0.z;\n var x0 = cd0.x0;\n var y0 = cd0.y0;\n var w = cd0.w;\n var h = cd0.h;\n var dx = trace.dx;\n var dy = trace.dy;\n\n var left, right, temp, top, bottom, i;\n // in case of log of a negative\n i = 0;\n while(left === undefined && i < w) {\n left = xa.c2p(x0 + i * dx);\n i++;\n }\n i = w;\n while(right === undefined && i > 0) {\n right = xa.c2p(x0 + i * dx);\n i--;\n }\n i = 0;\n while(top === undefined && i < h) {\n top = ya.c2p(y0 + i * dy);\n i++;\n }\n i = h;\n while(bottom === undefined && i > 0) {\n bottom = ya.c2p(y0 + i * dy);\n i--;\n }\n\n if(right < left) {\n temp = right;\n right = left;\n left = temp;\n }\n\n if(bottom < top) {\n temp = top;\n top = bottom;\n bottom = temp;\n }\n\n // Reduce image size when zoomed in to save memory\n if(!realImage) {\n var extra = 0.5; // half the axis size\n left = Math.max(-extra * xa._length, left);\n right = Math.min((1 + extra) * xa._length, right);\n top = Math.max(-extra * ya._length, top);\n bottom = Math.min((1 + extra) * ya._length, bottom);\n }\n\n var imageWidth = Math.round(right - left);\n var imageHeight = Math.round(bottom - top);\n\n // if image is entirely off-screen, don't even draw it\n var isOffScreen = (imageWidth <= 0 || imageHeight <= 0);\n if(isOffScreen) {\n var noImage = plotGroup.selectAll('image').data([]);\n noImage.exit().remove();\n return;\n }\n\n // Create a new canvas and draw magnified pixels on it\n function drawMagnifiedPixelsOnCanvas(readPixel) {\n var canvas = document.createElement('canvas');\n canvas.width = imageWidth;\n canvas.height = imageHeight;\n var context = canvas.getContext('2d');\n\n var ipx = function(i) {return Lib.constrain(Math.round(xa.c2p(x0 + i * dx) - left), 0, imageWidth);};\n var jpx = function(j) {return Lib.constrain(Math.round(ya.c2p(y0 + j * dy) - top), 0, imageHeight);};\n\n var cr = constants.colormodel[trace.colormodel];\n var colormodel = (cr.colormodel || trace.colormodel);\n var fmt = cr.fmt;\n var c;\n for(i = 0; i < cd0.w; i++) {\n var ipx0 = ipx(i); var ipx1 = ipx(i + 1);\n if(ipx1 === ipx0 || isNaN(ipx1) || isNaN(ipx0)) continue;\n for(var j = 0; j < cd0.h; j++) {\n var jpx0 = jpx(j); var jpx1 = jpx(j + 1);\n if(jpx1 === jpx0 || isNaN(jpx1) || isNaN(jpx0) || !readPixel(i, j)) continue;\n c = trace._scaler(readPixel(i, j));\n if(c) {\n context.fillStyle = colormodel + '(' + fmt(c).join(',') + ')';\n } else {\n // Return a transparent pixel\n context.fillStyle = 'rgba(0,0,0,0)';\n }\n context.fillRect(ipx0, jpx0, ipx1 - ipx0, jpx1 - jpx0);\n }\n }\n\n return canvas;\n }\n\n var image3 = plotGroup.selectAll('image')\n .data([cd]);\n\n image3.enter().append('svg:image').attr({\n xmlns: xmlnsNamespaces.svg,\n preserveAspectRatio: 'none'\n });\n\n image3.exit().remove();\n\n var style = (trace.zsmooth === false) ? constants.pixelatedStyle : '';\n\n if(realImage) {\n var xRange = Lib.simpleMap(xa.range, xa.r2l);\n var yRange = Lib.simpleMap(ya.range, ya.r2l);\n\n var flipX = xRange[1] < xRange[0];\n var flipY = yRange[1] > yRange[0];\n if(flipX || flipY) {\n var tx = left + imageWidth / 2;\n var ty = top + imageHeight / 2;\n style += 'transform:' +\n strTranslate(tx + 'px', ty + 'px') +\n 'scale(' + (flipX ? -1 : 1) + ',' + (flipY ? -1 : 1) + ')' +\n strTranslate(-tx + 'px', -ty + 'px') + ';';\n }\n }\n image3.attr('style', style);\n\n var p = new Promise(function(resolve) {\n if(trace._hasZ) {\n resolve();\n } else if(trace._hasSource) {\n // Check if canvas already exists and has the right data\n if(\n trace._canvas &&\n trace._canvas.el.width === w &&\n trace._canvas.el.height === h &&\n trace._canvas.source === trace.source\n ) {\n resolve();\n } else {\n // Create a canvas and transfer image onto it to access pixel information\n var canvas = document.createElement('canvas');\n canvas.width = w;\n canvas.height = h;\n var context = canvas.getContext('2d');\n\n trace._image = trace._image || new Image();\n var image = trace._image;\n image.onload = function() {\n context.drawImage(image, 0, 0);\n trace._canvas = {\n el: canvas,\n source: trace.source\n };\n resolve();\n };\n image.setAttribute('src', trace.source);\n }\n }\n })\n .then(function() {\n var href, canvas;\n if(trace._hasZ) {\n canvas = drawMagnifiedPixelsOnCanvas(function(i, j) {return z[j][i];});\n href = canvas.toDataURL('image/png');\n } else if(trace._hasSource) {\n if(realImage) {\n href = trace.source;\n } else {\n var context = trace._canvas.el.getContext('2d');\n var data = context.getImageData(0, 0, w, h).data;\n canvas = drawMagnifiedPixelsOnCanvas(function(i, j) {\n var index = 4 * (j * w + i);\n return [\n data[index],\n data[index + 1],\n data[index + 2],\n data[index + 3]\n ];\n });\n href = canvas.toDataURL('image/png');\n }\n }\n\n image3.attr({\n 'xlink:href': href,\n height: imageHeight,\n width: imageWidth,\n x: left,\n y: top\n });\n });\n\n gd._promises.push(p);\n });\n};\n\n},{\"../../constants/xmlns_namespaces\":480,\"../../lib\":503,\"./constants\":846,\"@plotly/d3\":58}],853:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nmodule.exports = function style(gd) {\n d3.select(gd).selectAll('.im image')\n .style('opacity', function(d) {\n return d[0].trace.opacity;\n });\n};\n\n},{\"@plotly/d3\":58}],854:[function(_dereq_,module,exports){\n'use strict';\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar extendDeep = _dereq_('../../lib/extend').extendDeep;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar colorAttrs = _dereq_('../../components/color/attributes');\nvar domainAttrs = _dereq_('../../plots/domain').attributes;\nvar axesAttrs = _dereq_('../../plots/cartesian/layout_attributes');\nvar templatedArray = _dereq_('../../plot_api/plot_template').templatedArray;\nvar delta = _dereq_('../../constants/delta.js');\nvar descriptionOnlyNumbers = _dereq_('../../plots/cartesian/axis_format_attributes').descriptionOnlyNumbers;\n\nvar textFontAttrs = fontAttrs({\n editType: 'plot',\n colorEditType: 'plot'\n});\n\nvar gaugeBarAttrs = {\n color: {\n valType: 'color',\n editType: 'plot',\n },\n line: {\n color: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n editType: 'plot',\n },\n width: {\n valType: 'number',\n min: 0,\n dflt: 0,\n editType: 'plot',\n },\n editType: 'calc'\n },\n thickness: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 1,\n editType: 'plot',\n },\n editType: 'calc'\n};\n\nvar rangeAttr = {\n valType: 'info_array',\n items: [\n {valType: 'number', editType: 'plot'},\n {valType: 'number', editType: 'plot'}\n ],\n editType: 'plot',\n};\n\nvar stepsAttrs = templatedArray('step', extendDeep({}, gaugeBarAttrs, {\n range: rangeAttr\n}));\n\nmodule.exports = {\n mode: {\n valType: 'flaglist',\n editType: 'calc',\n flags: ['number', 'delta', 'gauge'],\n dflt: 'number',\n },\n value: {\n valType: 'number',\n editType: 'calc',\n anim: true,\n },\n align: {\n valType: 'enumerated',\n values: ['left', 'center', 'right'],\n editType: 'plot',\n },\n // position\n domain: domainAttrs({name: 'indicator', trace: true, editType: 'calc'}),\n\n title: {\n text: {\n valType: 'string',\n editType: 'plot',\n },\n align: {\n valType: 'enumerated',\n values: ['left', 'center', 'right'],\n editType: 'plot',\n },\n font: extendFlat({}, textFontAttrs, {\n }),\n editType: 'plot'\n },\n number: {\n valueformat: {\n valType: 'string',\n dflt: '',\n editType: 'plot',\n description: descriptionOnlyNumbers('value')\n },\n font: extendFlat({}, textFontAttrs, {\n }),\n prefix: {\n valType: 'string',\n dflt: '',\n editType: 'plot',\n },\n suffix: {\n valType: 'string',\n dflt: '',\n editType: 'plot',\n },\n editType: 'plot'\n },\n delta: {\n reference: {\n valType: 'number',\n editType: 'calc',\n },\n position: {\n valType: 'enumerated',\n values: ['top', 'bottom', 'left', 'right'],\n dflt: 'bottom',\n editType: 'plot',\n },\n relative: {\n valType: 'boolean',\n editType: 'plot',\n dflt: false,\n },\n valueformat: {\n valType: 'string',\n editType: 'plot',\n description: descriptionOnlyNumbers('value')\n },\n increasing: {\n symbol: {\n valType: 'string',\n dflt: delta.INCREASING.SYMBOL,\n editType: 'plot',\n },\n color: {\n valType: 'color',\n dflt: delta.INCREASING.COLOR,\n editType: 'plot',\n },\n // TODO: add attribute to show sign\n editType: 'plot'\n },\n decreasing: {\n symbol: {\n valType: 'string',\n dflt: delta.DECREASING.SYMBOL,\n editType: 'plot',\n },\n color: {\n valType: 'color',\n dflt: delta.DECREASING.COLOR,\n editType: 'plot',\n },\n // TODO: add attribute to hide sign\n editType: 'plot'\n },\n font: extendFlat({}, textFontAttrs, {\n }),\n editType: 'calc'\n },\n gauge: {\n shape: {\n valType: 'enumerated',\n editType: 'plot',\n dflt: 'angular',\n values: ['angular', 'bullet'],\n },\n bar: extendDeep({}, gaugeBarAttrs, {\n color: {dflt: 'green'},\n }),\n // Background of the gauge\n bgcolor: {\n valType: 'color',\n editType: 'plot',\n },\n bordercolor: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n editType: 'plot',\n },\n borderwidth: {\n valType: 'number',\n min: 0,\n dflt: 1,\n editType: 'plot',\n },\n axis: overrideAll({\n range: rangeAttr,\n visible: extendFlat({}, axesAttrs.visible, {\n dflt: true\n }),\n // tick and title properties named and function exactly as in axes\n tickmode: axesAttrs.tickmode,\n nticks: axesAttrs.nticks,\n tick0: axesAttrs.tick0,\n dtick: axesAttrs.dtick,\n tickvals: axesAttrs.tickvals,\n ticktext: axesAttrs.ticktext,\n ticks: extendFlat({}, axesAttrs.ticks, {dflt: 'outside'}),\n ticklen: axesAttrs.ticklen,\n tickwidth: axesAttrs.tickwidth,\n tickcolor: axesAttrs.tickcolor,\n showticklabels: axesAttrs.showticklabels,\n tickfont: fontAttrs({\n }),\n tickangle: axesAttrs.tickangle,\n tickformat: axesAttrs.tickformat,\n tickformatstops: axesAttrs.tickformatstops,\n tickprefix: axesAttrs.tickprefix,\n showtickprefix: axesAttrs.showtickprefix,\n ticksuffix: axesAttrs.ticksuffix,\n showticksuffix: axesAttrs.showticksuffix,\n separatethousands: axesAttrs.separatethousands,\n exponentformat: axesAttrs.exponentformat,\n minexponent: axesAttrs.minexponent,\n showexponent: axesAttrs.showexponent,\n editType: 'plot'\n }, 'plot'),\n // Steps (or ranges) and thresholds\n steps: stepsAttrs,\n threshold: {\n line: {\n color: extendFlat({}, gaugeBarAttrs.line.color, {\n }),\n width: extendFlat({}, gaugeBarAttrs.line.width, {\n dflt: 1,\n }),\n editType: 'plot'\n },\n thickness: extendFlat({}, gaugeBarAttrs.thickness, {\n dflt: 0.85,\n }),\n value: {\n valType: 'number',\n editType: 'calc',\n dflt: false,\n },\n editType: 'plot'\n },\n editType: 'plot'\n // TODO: in future version, add marker: (bar|needle)\n }\n};\n\n},{\"../../components/color/attributes\":365,\"../../constants/delta.js\":473,\"../../lib/extend\":493,\"../../plot_api/edit_types\":536,\"../../plot_api/plot_template\":543,\"../../plots/cartesian/axis_format_attributes\":557,\"../../plots/cartesian/layout_attributes\":569,\"../../plots/domain\":584,\"../../plots/font_attributes\":585}],855:[function(_dereq_,module,exports){\n'use strict';\n\nvar plots = _dereq_('../../plots/plots');\n\nexports.name = 'indicator';\n\nexports.plot = function(gd, traces, transitionOpts, makeOnCompleteCallback) {\n plots.plotBasePlot(exports.name, gd, traces, transitionOpts, makeOnCompleteCallback);\n};\n\nexports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n plots.cleanBasePlot(exports.name, newFullData, newFullLayout, oldFullData, oldFullLayout);\n};\n\n},{\"../../plots/plots\":619}],856:[function(_dereq_,module,exports){\n'use strict';\n\n// var Lib = require('../../lib');\n\nfunction calc(gd, trace) {\n var cd = [];\n\n var lastReading = trace.value;\n if(!(typeof trace._lastValue === 'number')) trace._lastValue = trace.value;\n var secondLastReading = trace._lastValue;\n var deltaRef = secondLastReading;\n if(trace._hasDelta && typeof trace.delta.reference === 'number') {\n deltaRef = trace.delta.reference;\n }\n cd[0] = {\n y: lastReading,\n lastY: secondLastReading,\n\n delta: lastReading - deltaRef,\n relativeDelta: (lastReading - deltaRef) / deltaRef,\n };\n return cd;\n}\n\nmodule.exports = {\n calc: calc\n};\n\n},{}],857:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n // Defaults for delta\n defaultNumberFontSize: 80,\n bulletNumberDomainSize: 0.25,\n bulletPadding: 0.025,\n innerRadius: 0.75,\n valueThickness: 0.5, // thickness of value bars relative to full thickness,\n titlePadding: 5,\n horizontalPadding: 10\n};\n\n},{}],858:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar attributes = _dereq_('./attributes');\nvar handleDomainDefaults = _dereq_('../../plots/domain').defaults;\nvar Template = _dereq_('../../plot_api/plot_template');\nvar handleArrayContainerDefaults = _dereq_('../../plots/array_container_defaults');\nvar cn = _dereq_('./constants.js');\n\nvar handleTickValueDefaults = _dereq_('../../plots/cartesian/tick_value_defaults');\nvar handleTickMarkDefaults = _dereq_('../../plots/cartesian/tick_mark_defaults');\nvar handleTickLabelDefaults = _dereq_('../../plots/cartesian/tick_label_defaults');\nvar handlePrefixSuffixDefaults = _dereq_('../../plots/cartesian/prefix_suffix_defaults');\n\nfunction supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n handleDomainDefaults(traceOut, layout, coerce);\n\n // Mode\n coerce('mode');\n traceOut._hasNumber = traceOut.mode.indexOf('number') !== -1;\n traceOut._hasDelta = traceOut.mode.indexOf('delta') !== -1;\n traceOut._hasGauge = traceOut.mode.indexOf('gauge') !== -1;\n\n var value = coerce('value');\n traceOut._range = [0, (typeof value === 'number' ? 1.5 * value : 1)];\n\n // Number attributes\n var auto = new Array(2);\n var bignumberFontSize;\n if(traceOut._hasNumber) {\n coerce('number.valueformat');\n coerce('number.font.color', layout.font.color);\n coerce('number.font.family', layout.font.family);\n coerce('number.font.size');\n if(traceOut.number.font.size === undefined) {\n traceOut.number.font.size = cn.defaultNumberFontSize;\n auto[0] = true;\n }\n coerce('number.prefix');\n coerce('number.suffix');\n bignumberFontSize = traceOut.number.font.size;\n }\n\n // delta attributes\n var deltaFontSize;\n if(traceOut._hasDelta) {\n coerce('delta.font.color', layout.font.color);\n coerce('delta.font.family', layout.font.family);\n coerce('delta.font.size');\n if(traceOut.delta.font.size === undefined) {\n traceOut.delta.font.size = (traceOut._hasNumber ? 0.5 : 1) * (bignumberFontSize || cn.defaultNumberFontSize);\n auto[1] = true;\n }\n coerce('delta.reference', traceOut.value);\n coerce('delta.relative');\n coerce('delta.valueformat', traceOut.delta.relative ? '2%' : '');\n coerce('delta.increasing.symbol');\n coerce('delta.increasing.color');\n coerce('delta.decreasing.symbol');\n coerce('delta.decreasing.color');\n coerce('delta.position');\n deltaFontSize = traceOut.delta.font.size;\n }\n traceOut._scaleNumbers = (!traceOut._hasNumber || auto[0]) && (!traceOut._hasDelta || auto[1]) || false;\n\n // Title attributes\n coerce('title.font.color', layout.font.color);\n coerce('title.font.family', layout.font.family);\n coerce('title.font.size', 0.25 * (bignumberFontSize || deltaFontSize || cn.defaultNumberFontSize));\n coerce('title.text');\n\n // Gauge attributes\n var gaugeIn, gaugeOut, axisIn, axisOut;\n function coerceGauge(attr, dflt) {\n return Lib.coerce(gaugeIn, gaugeOut, attributes.gauge, attr, dflt);\n }\n function coerceGaugeAxis(attr, dflt) {\n return Lib.coerce(axisIn, axisOut, attributes.gauge.axis, attr, dflt);\n }\n\n if(traceOut._hasGauge) {\n gaugeIn = traceIn.gauge;\n if(!gaugeIn) gaugeIn = {};\n gaugeOut = Template.newContainer(traceOut, 'gauge');\n coerceGauge('shape');\n var isBullet = traceOut._isBullet = traceOut.gauge.shape === 'bullet';\n if(!isBullet) {\n coerce('title.align', 'center');\n }\n var isAngular = traceOut._isAngular = traceOut.gauge.shape === 'angular';\n if(!isAngular) {\n coerce('align', 'center');\n }\n\n // gauge background\n coerceGauge('bgcolor', layout.paper_bgcolor);\n coerceGauge('borderwidth');\n coerceGauge('bordercolor');\n\n // gauge bar indicator\n coerceGauge('bar.color');\n coerceGauge('bar.line.color');\n coerceGauge('bar.line.width');\n var defaultBarThickness = cn.valueThickness * (traceOut.gauge.shape === 'bullet' ? 0.5 : 1);\n coerceGauge('bar.thickness', defaultBarThickness);\n\n // Gauge steps\n handleArrayContainerDefaults(gaugeIn, gaugeOut, {\n name: 'steps',\n handleItemDefaults: stepDefaults\n });\n\n // Gauge threshold\n coerceGauge('threshold.value');\n coerceGauge('threshold.thickness');\n coerceGauge('threshold.line.width');\n coerceGauge('threshold.line.color');\n\n // Gauge axis\n axisIn = {};\n if(gaugeIn) axisIn = gaugeIn.axis || {};\n axisOut = Template.newContainer(gaugeOut, 'axis');\n coerceGaugeAxis('visible');\n traceOut._range = coerceGaugeAxis('range', traceOut._range);\n\n var opts = {outerTicks: true};\n handleTickValueDefaults(axisIn, axisOut, coerceGaugeAxis, 'linear');\n handlePrefixSuffixDefaults(axisIn, axisOut, coerceGaugeAxis, 'linear', opts);\n handleTickLabelDefaults(axisIn, axisOut, coerceGaugeAxis, 'linear', opts);\n handleTickMarkDefaults(axisIn, axisOut, coerceGaugeAxis, opts);\n } else {\n coerce('title.align', 'center');\n coerce('align', 'center');\n traceOut._isAngular = traceOut._isBullet = false;\n }\n\n // disable 1D transforms\n traceOut._length = null;\n}\n\nfunction stepDefaults(stepIn, stepOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(stepIn, stepOut, attributes.gauge.steps, attr, dflt);\n }\n\n coerce('color');\n coerce('line.color');\n coerce('line.width');\n coerce('range');\n coerce('thickness');\n}\n\nmodule.exports = {\n supplyDefaults: supplyDefaults\n};\n\n},{\"../../lib\":503,\"../../plot_api/plot_template\":543,\"../../plots/array_container_defaults\":549,\"../../plots/cartesian/prefix_suffix_defaults\":573,\"../../plots/cartesian/tick_label_defaults\":578,\"../../plots/cartesian/tick_mark_defaults\":579,\"../../plots/cartesian/tick_value_defaults\":580,\"../../plots/domain\":584,\"./attributes\":854,\"./constants.js\":857}],859:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'trace',\n name: 'indicator',\n basePlotModule: _dereq_('./base_plot'),\n categories: ['svg', 'noOpacity', 'noHover'],\n animatable: true,\n\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults').supplyDefaults,\n\n calc: _dereq_('./calc').calc,\n\n plot: _dereq_('./plot'),\n\n meta: {\n }\n};\n\n},{\"./attributes\":854,\"./base_plot\":855,\"./calc\":856,\"./defaults\":858,\"./plot\":860}],860:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar interpolate = _dereq_('d3-interpolate').interpolate;\nvar interpolateNumber = _dereq_('d3-interpolate').interpolateNumber;\n\nvar Lib = _dereq_('../../lib');\nvar strScale = Lib.strScale;\nvar strTranslate = Lib.strTranslate;\nvar rad2deg = Lib.rad2deg;\nvar MID_SHIFT = _dereq_('../../constants/alignment').MID_SHIFT;\nvar Drawing = _dereq_('../../components/drawing');\nvar cn = _dereq_('./constants');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar handleAxisDefaults = _dereq_('../../plots/cartesian/axis_defaults');\nvar handleAxisPositionDefaults = _dereq_('../../plots/cartesian/position_defaults');\nvar axisLayoutAttrs = _dereq_('../../plots/cartesian/layout_attributes');\n\nvar Color = _dereq_('../../components/color');\nvar anchor = {\n 'left': 'start',\n 'center': 'middle',\n 'right': 'end'\n};\nvar position = {\n 'left': 0,\n 'center': 0.5,\n 'right': 1\n};\n\nvar SI_PREFIX = /[yzafpnµmkMGTPEZY]/;\n\nfunction hasTransition(transitionOpts) {\n // If transition config is provided, then it is only a partial replot and traces not\n // updated are removed.\n return transitionOpts && transitionOpts.duration > 0;\n}\n\nmodule.exports = function plot(gd, cdModule, transitionOpts, makeOnCompleteCallback) {\n var fullLayout = gd._fullLayout;\n var onComplete;\n\n if(hasTransition(transitionOpts)) {\n if(makeOnCompleteCallback) {\n // If it was passed a callback to register completion, make a callback. If\n // this is created, then it must be executed on completion, otherwise the\n // pos-transition redraw will not execute:\n onComplete = makeOnCompleteCallback();\n }\n }\n\n Lib.makeTraceGroups(fullLayout._indicatorlayer, cdModule, 'trace').each(function(cd) {\n var cd0 = cd[0];\n var trace = cd0.trace;\n\n var plotGroup = d3.select(this);\n\n // Elements in trace\n var hasGauge = trace._hasGauge;\n var isAngular = trace._isAngular;\n var isBullet = trace._isBullet;\n\n // Domain size\n var domain = trace.domain;\n var size = {\n w: fullLayout._size.w * (domain.x[1] - domain.x[0]),\n h: fullLayout._size.h * (domain.y[1] - domain.y[0]),\n l: fullLayout._size.l + fullLayout._size.w * domain.x[0],\n r: fullLayout._size.r + fullLayout._size.w * (1 - domain.x[1]),\n t: fullLayout._size.t + fullLayout._size.h * (1 - domain.y[1]),\n b: fullLayout._size.b + fullLayout._size.h * (domain.y[0])\n };\n var centerX = size.l + size.w / 2;\n var centerY = size.t + size.h / 2;\n\n // Angular gauge size\n var radius = Math.min(size.w / 2, size.h); // fill domain\n var innerRadius = cn.innerRadius * radius;\n\n // Position numbers based on mode and set the scaling logic\n var numbersX, numbersY, numbersScaler;\n var numbersAlign = trace.align || 'center';\n\n numbersY = centerY;\n if(!hasGauge) {\n numbersX = size.l + position[numbersAlign] * size.w;\n numbersScaler = function(el) {\n return fitTextInsideBox(el, size.w, size.h);\n };\n } else {\n if(isAngular) {\n numbersX = centerX;\n numbersY = centerY + radius / 2;\n numbersScaler = function(el) {\n return fitTextInsideCircle(el, 0.9 * innerRadius);\n };\n }\n if(isBullet) {\n var padding = cn.bulletPadding;\n var p = (1 - cn.bulletNumberDomainSize) + padding;\n numbersX = size.l + (p + (1 - p) * position[numbersAlign]) * size.w;\n numbersScaler = function(el) {\n return fitTextInsideBox(el, (cn.bulletNumberDomainSize - padding) * size.w, size.h);\n };\n }\n }\n\n // Draw numbers\n drawNumbers(gd, plotGroup, cd, {\n numbersX: numbersX,\n numbersY: numbersY,\n numbersScaler: numbersScaler,\n transitionOpts: transitionOpts,\n onComplete: onComplete\n });\n\n // Reexpress our gauge background attributes for drawing\n var gaugeBg, gaugeOutline;\n if(hasGauge) {\n gaugeBg = {\n range: trace.gauge.axis.range,\n color: trace.gauge.bgcolor,\n line: {\n color: trace.gauge.bordercolor,\n width: 0\n },\n thickness: 1\n };\n\n gaugeOutline = {\n range: trace.gauge.axis.range,\n color: 'rgba(0, 0, 0, 0)',\n line: {\n color: trace.gauge.bordercolor,\n width: trace.gauge.borderwidth\n },\n thickness: 1\n };\n }\n\n // Prepare angular gauge layers\n var angularGauge = plotGroup.selectAll('g.angular').data(isAngular ? cd : []);\n angularGauge.exit().remove();\n var angularaxisLayer = plotGroup.selectAll('g.angularaxis').data(isAngular ? cd : []);\n angularaxisLayer.exit().remove();\n\n if(isAngular) {\n drawAngularGauge(gd, plotGroup, cd, {\n radius: radius,\n innerRadius: innerRadius,\n\n gauge: angularGauge,\n layer: angularaxisLayer,\n size: size,\n gaugeBg: gaugeBg,\n gaugeOutline: gaugeOutline,\n transitionOpts: transitionOpts,\n onComplete: onComplete\n });\n }\n\n // Prepare bullet layers\n var bulletGauge = plotGroup.selectAll('g.bullet').data(isBullet ? cd : []);\n bulletGauge.exit().remove();\n var bulletaxisLayer = plotGroup.selectAll('g.bulletaxis').data(isBullet ? cd : []);\n bulletaxisLayer.exit().remove();\n\n if(isBullet) {\n drawBulletGauge(gd, plotGroup, cd, {\n gauge: bulletGauge,\n layer: bulletaxisLayer,\n size: size,\n gaugeBg: gaugeBg,\n gaugeOutline: gaugeOutline,\n transitionOpts: transitionOpts,\n onComplete: onComplete\n });\n }\n\n // title\n var title = plotGroup.selectAll('text.title').data(cd);\n title.exit().remove();\n title.enter().append('text').classed('title', true);\n title\n .attr('text-anchor', function() {\n return isBullet ? anchor.right : anchor[trace.title.align];\n })\n .text(trace.title.text)\n .call(Drawing.font, trace.title.font)\n .call(svgTextUtils.convertToTspans, gd);\n\n // Position title\n title.attr('transform', function() {\n var titleX = size.l + size.w * position[trace.title.align];\n var titleY;\n var titlePadding = cn.titlePadding;\n var titlebBox = Drawing.bBox(title.node());\n if(hasGauge) {\n if(isAngular) {\n // position above axis ticks/labels\n if(trace.gauge.axis.visible) {\n var bBox = Drawing.bBox(angularaxisLayer.node());\n titleY = (bBox.top - titlePadding) - titlebBox.bottom;\n } else {\n titleY = size.t + size.h / 2 - radius / 2 - titlebBox.bottom - titlePadding;\n }\n }\n if(isBullet) {\n // position outside domain\n titleY = numbersY - (titlebBox.top + titlebBox.bottom) / 2;\n titleX = size.l - cn.bulletPadding * size.w; // Outside domain, on the left\n }\n } else {\n // position above numbers\n titleY = (trace._numbersTop - titlePadding) - titlebBox.bottom;\n }\n return strTranslate(titleX, titleY);\n });\n });\n};\n\nfunction drawBulletGauge(gd, plotGroup, cd, opts) {\n var trace = cd[0].trace;\n\n var bullet = opts.gauge;\n var axisLayer = opts.layer;\n var gaugeBg = opts.gaugeBg;\n var gaugeOutline = opts.gaugeOutline;\n var size = opts.size;\n var domain = trace.domain;\n\n var transitionOpts = opts.transitionOpts;\n var onComplete = opts.onComplete;\n\n // preparing axis\n var ax, vals, transFn, tickSign, shift;\n\n // Enter bullet, axis\n bullet.enter().append('g').classed('bullet', true);\n bullet.attr('transform', strTranslate(size.l, size.t));\n\n axisLayer.enter().append('g')\n .classed('bulletaxis', true)\n .classed('crisp', true);\n axisLayer.selectAll('g.' + 'xbulletaxis' + 'tick,path,text').remove();\n\n // Draw bullet\n var bulletHeight = size.h; // use all vertical domain\n var innerBulletHeight = trace.gauge.bar.thickness * bulletHeight;\n var bulletLeft = domain.x[0];\n var bulletRight = domain.x[0] + (domain.x[1] - domain.x[0]) * ((trace._hasNumber || trace._hasDelta) ? (1 - cn.bulletNumberDomainSize) : 1);\n\n ax = mockAxis(gd, trace.gauge.axis);\n ax._id = 'xbulletaxis';\n ax.domain = [bulletLeft, bulletRight];\n ax.setScale();\n\n vals = Axes.calcTicks(ax);\n transFn = Axes.makeTransTickFn(ax);\n tickSign = Axes.getTickSigns(ax)[2];\n\n shift = size.t + size.h;\n if(ax.visible) {\n Axes.drawTicks(gd, ax, {\n vals: ax.ticks === 'inside' ? Axes.clipEnds(ax, vals) : vals,\n layer: axisLayer,\n path: Axes.makeTickPath(ax, shift, tickSign),\n transFn: transFn\n });\n\n Axes.drawLabels(gd, ax, {\n vals: vals,\n layer: axisLayer,\n transFn: transFn,\n labelFns: Axes.makeLabelFns(ax, shift)\n });\n }\n\n function drawRect(s) {\n s\n .attr('width', function(d) { return Math.max(0, ax.c2p(d.range[1]) - ax.c2p(d.range[0]));})\n .attr('x', function(d) { return ax.c2p(d.range[0]);})\n .attr('y', function(d) { return 0.5 * (1 - d.thickness) * bulletHeight;})\n .attr('height', function(d) { return d.thickness * bulletHeight; });\n }\n\n // Draw bullet background, steps\n var boxes = [gaugeBg].concat(trace.gauge.steps);\n var bgBullet = bullet.selectAll('g.bg-bullet').data(boxes);\n bgBullet.enter().append('g').classed('bg-bullet', true).append('rect');\n bgBullet.select('rect')\n .call(drawRect)\n .call(styleShape);\n bgBullet.exit().remove();\n\n // Draw value bar with transitions\n var fgBullet = bullet.selectAll('g.value-bullet').data([trace.gauge.bar]);\n fgBullet.enter().append('g').classed('value-bullet', true).append('rect');\n fgBullet.select('rect')\n .attr('height', innerBulletHeight)\n .attr('y', (bulletHeight - innerBulletHeight) / 2)\n .call(styleShape);\n if(hasTransition(transitionOpts)) {\n fgBullet.select('rect')\n .transition()\n .duration(transitionOpts.duration)\n .ease(transitionOpts.easing)\n .each('end', function() { onComplete && onComplete(); })\n .each('interrupt', function() { onComplete && onComplete(); })\n .attr('width', Math.max(0, ax.c2p(Math.min(trace.gauge.axis.range[1], cd[0].y))));\n } else {\n fgBullet.select('rect')\n .attr('width', typeof cd[0].y === 'number' ?\n Math.max(0, ax.c2p(Math.min(trace.gauge.axis.range[1], cd[0].y))) :\n 0);\n }\n fgBullet.exit().remove();\n\n var data = cd.filter(function() {return trace.gauge.threshold.value || trace.gauge.threshold.value === 0;});\n var threshold = bullet.selectAll('g.threshold-bullet').data(data);\n threshold.enter().append('g').classed('threshold-bullet', true).append('line');\n threshold.select('line')\n .attr('x1', ax.c2p(trace.gauge.threshold.value))\n .attr('x2', ax.c2p(trace.gauge.threshold.value))\n .attr('y1', (1 - trace.gauge.threshold.thickness) / 2 * bulletHeight)\n .attr('y2', (1 - (1 - trace.gauge.threshold.thickness) / 2) * bulletHeight)\n .call(Color.stroke, trace.gauge.threshold.line.color)\n .style('stroke-width', trace.gauge.threshold.line.width);\n threshold.exit().remove();\n\n var bulletOutline = bullet.selectAll('g.gauge-outline').data([gaugeOutline]);\n bulletOutline.enter().append('g').classed('gauge-outline', true).append('rect');\n bulletOutline.select('rect')\n .call(drawRect)\n .call(styleShape);\n bulletOutline.exit().remove();\n}\n\nfunction drawAngularGauge(gd, plotGroup, cd, opts) {\n var trace = cd[0].trace;\n\n var size = opts.size;\n var radius = opts.radius;\n var innerRadius = opts.innerRadius;\n var gaugeBg = opts.gaugeBg;\n var gaugeOutline = opts.gaugeOutline;\n var gaugePosition = [size.l + size.w / 2, size.t + size.h / 2 + radius / 2];\n var gauge = opts.gauge;\n var axisLayer = opts.layer;\n\n var transitionOpts = opts.transitionOpts;\n var onComplete = opts.onComplete;\n\n // circular gauge\n var theta = Math.PI / 2;\n function valueToAngle(v) {\n var min = trace.gauge.axis.range[0];\n var max = trace.gauge.axis.range[1];\n var angle = (v - min) / (max - min) * Math.PI - theta;\n if(angle < -theta) return -theta;\n if(angle > theta) return theta;\n return angle;\n }\n\n function arcPathGenerator(size) {\n return d3.svg.arc()\n .innerRadius((innerRadius + radius) / 2 - size / 2 * (radius - innerRadius))\n .outerRadius((innerRadius + radius) / 2 + size / 2 * (radius - innerRadius))\n .startAngle(-theta);\n }\n\n function drawArc(p) {\n p\n .attr('d', function(d) {\n return arcPathGenerator(d.thickness)\n .startAngle(valueToAngle(d.range[0]))\n .endAngle(valueToAngle(d.range[1]))();\n });\n }\n\n // preparing axis\n var ax, vals, transFn, tickSign;\n\n // Enter gauge and axis\n gauge.enter().append('g').classed('angular', true);\n gauge.attr('transform', strTranslate(gaugePosition[0], gaugePosition[1]));\n\n axisLayer.enter().append('g')\n .classed('angularaxis', true)\n .classed('crisp', true);\n axisLayer.selectAll('g.' + 'xangularaxis' + 'tick,path,text').remove();\n\n ax = mockAxis(gd, trace.gauge.axis);\n ax.type = 'linear';\n ax.range = trace.gauge.axis.range;\n ax._id = 'xangularaxis'; // or 'y', but I don't think this makes a difference here\n ax.ticklabeloverflow = 'allow';\n ax.setScale();\n\n // 't'ick to 'g'eometric radians is used all over the place here\n var t2g = function(d) {\n return (ax.range[0] - d.x) / (ax.range[1] - ax.range[0]) * Math.PI + Math.PI;\n };\n\n var labelFns = {};\n var out = Axes.makeLabelFns(ax, 0);\n var labelStandoff = out.labelStandoff;\n labelFns.xFn = function(d) {\n var rad = t2g(d);\n return Math.cos(rad) * labelStandoff;\n };\n labelFns.yFn = function(d) {\n var rad = t2g(d);\n var ff = Math.sin(rad) > 0 ? 0.2 : 1;\n return -Math.sin(rad) * (labelStandoff + d.fontSize * ff) +\n Math.abs(Math.cos(rad)) * (d.fontSize * MID_SHIFT);\n };\n labelFns.anchorFn = function(d) {\n var rad = t2g(d);\n var cos = Math.cos(rad);\n return Math.abs(cos) < 0.1 ?\n 'middle' :\n (cos > 0 ? 'start' : 'end');\n };\n labelFns.heightFn = function(d, a, h) {\n var rad = t2g(d);\n return -0.5 * (1 + Math.sin(rad)) * h;\n };\n var _transFn = function(rad) {\n return strTranslate(\n gaugePosition[0] + radius * Math.cos(rad),\n gaugePosition[1] - radius * Math.sin(rad)\n );\n };\n transFn = function(d) {\n return _transFn(t2g(d));\n };\n var transFn2 = function(d) {\n var rad = t2g(d);\n return _transFn(rad) + 'rotate(' + -rad2deg(rad) + ')';\n };\n vals = Axes.calcTicks(ax);\n tickSign = Axes.getTickSigns(ax)[2];\n if(ax.visible) {\n tickSign = ax.ticks === 'inside' ? -1 : 1;\n var pad = (ax.linewidth || 1) / 2;\n Axes.drawTicks(gd, ax, {\n vals: vals,\n layer: axisLayer,\n path: 'M' + (tickSign * pad) + ',0h' + (tickSign * ax.ticklen),\n transFn: transFn2\n });\n Axes.drawLabels(gd, ax, {\n vals: vals,\n layer: axisLayer,\n transFn: transFn,\n labelFns: labelFns\n });\n }\n\n // Draw background + steps\n var arcs = [gaugeBg].concat(trace.gauge.steps);\n var bgArc = gauge.selectAll('g.bg-arc').data(arcs);\n bgArc.enter().append('g').classed('bg-arc', true).append('path');\n bgArc.select('path').call(drawArc).call(styleShape);\n bgArc.exit().remove();\n\n // Draw foreground with transition\n var valueArcPathGenerator = arcPathGenerator(trace.gauge.bar.thickness);\n var valueArc = gauge.selectAll('g.value-arc').data([trace.gauge.bar]);\n valueArc.enter().append('g').classed('value-arc', true).append('path');\n var valueArcPath = valueArc.select('path');\n if(hasTransition(transitionOpts)) {\n valueArcPath\n .transition()\n .duration(transitionOpts.duration)\n .ease(transitionOpts.easing)\n .each('end', function() { onComplete && onComplete(); })\n .each('interrupt', function() { onComplete && onComplete(); })\n .attrTween('d', arcTween(valueArcPathGenerator, valueToAngle(cd[0].lastY), valueToAngle(cd[0].y)));\n trace._lastValue = cd[0].y;\n } else {\n valueArcPath.attr('d', typeof cd[0].y === 'number' ?\n valueArcPathGenerator.endAngle(valueToAngle(cd[0].y)) :\n 'M0,0Z');\n }\n valueArcPath.call(styleShape);\n valueArc.exit().remove();\n\n // Draw threshold\n arcs = [];\n var v = trace.gauge.threshold.value;\n if(v || v === 0) {\n arcs.push({\n range: [v, v],\n color: trace.gauge.threshold.color,\n line: {\n color: trace.gauge.threshold.line.color,\n width: trace.gauge.threshold.line.width\n },\n thickness: trace.gauge.threshold.thickness\n });\n }\n var thresholdArc = gauge.selectAll('g.threshold-arc').data(arcs);\n thresholdArc.enter().append('g').classed('threshold-arc', true).append('path');\n thresholdArc.select('path').call(drawArc).call(styleShape);\n thresholdArc.exit().remove();\n\n // Draw border last\n var gaugeBorder = gauge.selectAll('g.gauge-outline').data([gaugeOutline]);\n gaugeBorder.enter().append('g').classed('gauge-outline', true).append('path');\n gaugeBorder.select('path').call(drawArc).call(styleShape);\n gaugeBorder.exit().remove();\n}\n\nfunction drawNumbers(gd, plotGroup, cd, opts) {\n var trace = cd[0].trace;\n\n var numbersX = opts.numbersX;\n var numbersY = opts.numbersY;\n var numbersAlign = trace.align || 'center';\n var numbersAnchor = anchor[numbersAlign];\n\n var transitionOpts = opts.transitionOpts;\n var onComplete = opts.onComplete;\n\n var numbers = Lib.ensureSingle(plotGroup, 'g', 'numbers');\n var bignumberbBox, deltabBox;\n var numbersbBox;\n\n var data = [];\n if(trace._hasNumber) data.push('number');\n if(trace._hasDelta) {\n data.push('delta');\n if(trace.delta.position === 'left') data.reverse();\n }\n var sel = numbers.selectAll('text').data(data);\n sel.enter().append('text');\n sel\n .attr('text-anchor', function() {return numbersAnchor;})\n .attr('class', function(d) { return d;})\n .attr('x', null)\n .attr('y', null)\n .attr('dx', null)\n .attr('dy', null);\n sel.exit().remove();\n\n // Function to override the number formatting used during transitions\n function transitionFormat(valueformat, fmt, from, to) {\n // For now, do not display SI prefix if start and end value do not have any\n if(valueformat.match('s') && // If using SI prefix\n (from >= 0 !== to >= 0) && // If sign change\n (!fmt(from).slice(-1).match(SI_PREFIX) && !fmt(to).slice(-1).match(SI_PREFIX)) // Has no SI prefix\n ) {\n var transitionValueFormat = valueformat.slice().replace('s', 'f').replace(/\\d+/, function(m) { return parseInt(m) - 1;});\n var transitionAx = mockAxis(gd, {tickformat: transitionValueFormat});\n return function(v) {\n // Switch to fixed precision if number is smaller than one\n if(Math.abs(v) < 1) return Axes.tickText(transitionAx, v).text;\n return fmt(v);\n };\n } else {\n return fmt;\n }\n }\n\n function drawBignumber() {\n var bignumberAx = mockAxis(gd, {tickformat: trace.number.valueformat}, trace._range);\n bignumberAx.setScale();\n Axes.prepTicks(bignumberAx);\n\n var fmt = function(v) { return Axes.tickText(bignumberAx, v).text;};\n var bignumberSuffix = trace.number.suffix;\n var bignumberPrefix = trace.number.prefix;\n\n var number = numbers.select('text.number');\n\n function writeNumber() {\n var txt = typeof cd[0].y === 'number' ?\n bignumberPrefix + fmt(cd[0].y) + bignumberSuffix :\n '-';\n number.text(txt)\n .call(Drawing.font, trace.number.font)\n .call(svgTextUtils.convertToTspans, gd);\n }\n\n if(hasTransition(transitionOpts)) {\n number\n .transition()\n .duration(transitionOpts.duration)\n .ease(transitionOpts.easing)\n .each('end', function() { writeNumber(); onComplete && onComplete(); })\n .each('interrupt', function() { writeNumber(); onComplete && onComplete(); })\n .attrTween('text', function() {\n var that = d3.select(this);\n var interpolator = interpolateNumber(cd[0].lastY, cd[0].y);\n trace._lastValue = cd[0].y;\n\n var transitionFmt = transitionFormat(trace.number.valueformat, fmt, cd[0].lastY, cd[0].y);\n return function(t) {\n that.text(bignumberPrefix + transitionFmt(interpolator(t)) + bignumberSuffix);\n };\n });\n } else {\n writeNumber();\n }\n\n bignumberbBox = measureText(bignumberPrefix + fmt(cd[0].y) + bignumberSuffix, trace.number.font, numbersAnchor, gd);\n return number;\n }\n\n function drawDelta() {\n var deltaAx = mockAxis(gd, {tickformat: trace.delta.valueformat}, trace._range);\n deltaAx.setScale();\n Axes.prepTicks(deltaAx);\n\n var deltaFmt = function(v) { return Axes.tickText(deltaAx, v).text;};\n var deltaValue = function(d) {\n var value = trace.delta.relative ? d.relativeDelta : d.delta;\n return value;\n };\n var deltaFormatText = function(value, numberFmt) {\n if(value === 0 || typeof value !== 'number' || isNaN(value)) return '-';\n return (value > 0 ? trace.delta.increasing.symbol : trace.delta.decreasing.symbol) + numberFmt(value);\n };\n var deltaFill = function(d) {\n return d.delta >= 0 ? trace.delta.increasing.color : trace.delta.decreasing.color;\n };\n if(trace._deltaLastValue === undefined) {\n trace._deltaLastValue = deltaValue(cd[0]);\n }\n var delta = numbers.select('text.delta');\n delta\n .call(Drawing.font, trace.delta.font)\n .call(Color.fill, deltaFill({delta: trace._deltaLastValue}));\n\n function writeDelta() {\n delta.text(deltaFormatText(deltaValue(cd[0]), deltaFmt))\n .call(Color.fill, deltaFill(cd[0]))\n .call(svgTextUtils.convertToTspans, gd);\n }\n\n if(hasTransition(transitionOpts)) {\n delta\n .transition()\n .duration(transitionOpts.duration)\n .ease(transitionOpts.easing)\n .tween('text', function() {\n var that = d3.select(this);\n var to = deltaValue(cd[0]);\n var from = trace._deltaLastValue;\n var transitionFmt = transitionFormat(trace.delta.valueformat, deltaFmt, from, to);\n var interpolator = interpolateNumber(from, to);\n trace._deltaLastValue = to;\n return function(t) {\n that.text(deltaFormatText(interpolator(t), transitionFmt));\n that.call(Color.fill, deltaFill({delta: interpolator(t)}));\n };\n })\n .each('end', function() { writeDelta(); onComplete && onComplete(); })\n .each('interrupt', function() { writeDelta(); onComplete && onComplete(); });\n } else {\n writeDelta();\n }\n\n deltabBox = measureText(deltaFormatText(deltaValue(cd[0]), deltaFmt), trace.delta.font, numbersAnchor, gd);\n return delta;\n }\n\n var key = trace.mode + trace.align;\n var delta;\n if(trace._hasDelta) {\n delta = drawDelta();\n key += trace.delta.position + trace.delta.font.size + trace.delta.font.family + trace.delta.valueformat;\n key += trace.delta.increasing.symbol + trace.delta.decreasing.symbol;\n numbersbBox = deltabBox;\n }\n if(trace._hasNumber) {\n drawBignumber();\n key += trace.number.font.size + trace.number.font.family + trace.number.valueformat + trace.number.suffix + trace.number.prefix;\n numbersbBox = bignumberbBox;\n }\n\n // Position delta relative to bignumber\n if(trace._hasDelta && trace._hasNumber) {\n var bignumberCenter = [\n (bignumberbBox.left + bignumberbBox.right) / 2,\n (bignumberbBox.top + bignumberbBox.bottom) / 2\n ];\n var deltaCenter = [\n (deltabBox.left + deltabBox.right) / 2,\n (deltabBox.top + deltabBox.bottom) / 2\n ];\n\n var dx, dy;\n var padding = 0.75 * trace.delta.font.size;\n if(trace.delta.position === 'left') {\n dx = cache(trace, 'deltaPos', 0, -1 * (bignumberbBox.width * (position[trace.align]) + deltabBox.width * (1 - position[trace.align]) + padding), key, Math.min);\n dy = bignumberCenter[1] - deltaCenter[1];\n\n numbersbBox = {\n width: bignumberbBox.width + deltabBox.width + padding,\n height: Math.max(bignumberbBox.height, deltabBox.height),\n left: deltabBox.left + dx,\n right: bignumberbBox.right,\n top: Math.min(bignumberbBox.top, deltabBox.top + dy),\n bottom: Math.max(bignumberbBox.bottom, deltabBox.bottom + dy)\n };\n }\n if(trace.delta.position === 'right') {\n dx = cache(trace, 'deltaPos', 0, bignumberbBox.width * (1 - position[trace.align]) + deltabBox.width * position[trace.align] + padding, key, Math.max);\n dy = bignumberCenter[1] - deltaCenter[1];\n\n numbersbBox = {\n width: bignumberbBox.width + deltabBox.width + padding,\n height: Math.max(bignumberbBox.height, deltabBox.height),\n left: bignumberbBox.left,\n right: deltabBox.right + dx,\n top: Math.min(bignumberbBox.top, deltabBox.top + dy),\n bottom: Math.max(bignumberbBox.bottom, deltabBox.bottom + dy)\n };\n }\n if(trace.delta.position === 'bottom') {\n dx = null;\n dy = deltabBox.height;\n\n numbersbBox = {\n width: Math.max(bignumberbBox.width, deltabBox.width),\n height: bignumberbBox.height + deltabBox.height,\n left: Math.min(bignumberbBox.left, deltabBox.left),\n right: Math.max(bignumberbBox.right, deltabBox.right),\n top: bignumberbBox.bottom - bignumberbBox.height,\n bottom: bignumberbBox.bottom + deltabBox.height\n };\n }\n if(trace.delta.position === 'top') {\n dx = null;\n dy = bignumberbBox.top;\n\n numbersbBox = {\n width: Math.max(bignumberbBox.width, deltabBox.width),\n height: bignumberbBox.height + deltabBox.height,\n left: Math.min(bignumberbBox.left, deltabBox.left),\n right: Math.max(bignumberbBox.right, deltabBox.right),\n top: bignumberbBox.bottom - bignumberbBox.height - deltabBox.height,\n bottom: bignumberbBox.bottom\n };\n }\n\n delta.attr({dx: dx, dy: dy});\n }\n\n // Resize numbers to fit within space and position\n if(trace._hasNumber || trace._hasDelta) {\n numbers.attr('transform', function() {\n var m = opts.numbersScaler(numbersbBox);\n key += m[2];\n var scaleRatio = cache(trace, 'numbersScale', 1, m[0], key, Math.min);\n var translateY;\n if(!trace._scaleNumbers) scaleRatio = 1;\n if(trace._isAngular) {\n // align vertically to bottom\n translateY = numbersY - scaleRatio * numbersbBox.bottom;\n } else {\n // align vertically to center\n translateY = numbersY - scaleRatio * (numbersbBox.top + numbersbBox.bottom) / 2;\n }\n\n // Stash the top position of numbersbBox for title positioning\n trace._numbersTop = scaleRatio * (numbersbBox.top) + translateY;\n\n var ref = numbersbBox[numbersAlign];\n if(numbersAlign === 'center') ref = (numbersbBox.left + numbersbBox.right) / 2;\n var translateX = numbersX - scaleRatio * ref;\n\n // Stash translateX\n translateX = cache(trace, 'numbersTranslate', 0, translateX, key, Math.max);\n return strTranslate(translateX, translateY) + strScale(scaleRatio);\n });\n }\n}\n\n// Apply fill, stroke, stroke-width to SVG shape\nfunction styleShape(p) {\n p\n .each(function(d) { Color.stroke(d3.select(this), d.line.color);})\n .each(function(d) { Color.fill(d3.select(this), d.color);})\n .style('stroke-width', function(d) { return d.line.width;});\n}\n\n// Returns a tween for a transition’s \"d\" attribute, transitioning any selected\n// arcs from their current angle to the specified new angle.\nfunction arcTween(arc, endAngle, newAngle) {\n return function() {\n var interp = interpolate(endAngle, newAngle);\n return function(t) {\n return arc.endAngle(interp(t))();\n };\n };\n}\n\n// mocks our axis\nfunction mockAxis(gd, opts, zrange) {\n var fullLayout = gd._fullLayout;\n\n var axisIn = Lib.extendFlat({\n type: 'linear',\n ticks: 'outside',\n range: zrange,\n showline: true\n }, opts);\n\n var axisOut = {\n type: 'linear',\n _id: 'x' + opts._id\n };\n\n var axisOptions = {\n letter: 'x',\n font: fullLayout.font,\n noHover: true,\n noTickson: true\n };\n\n function coerce(attr, dflt) {\n return Lib.coerce(axisIn, axisOut, axisLayoutAttrs, attr, dflt);\n }\n\n handleAxisDefaults(axisIn, axisOut, coerce, axisOptions, fullLayout);\n handleAxisPositionDefaults(axisIn, axisOut, coerce, axisOptions);\n\n return axisOut;\n}\n\nfunction fitTextInsideBox(textBB, width, height) {\n // compute scaling ratio to have text fit within specified width and height\n var ratio = Math.min(width / textBB.width, height / textBB.height);\n return [ratio, textBB, width + 'x' + height];\n}\n\nfunction fitTextInsideCircle(textBB, radius) {\n // compute scaling ratio to have text fit within specified radius\n var elRadius = Math.sqrt((textBB.width / 2) * (textBB.width / 2) + textBB.height * textBB.height);\n var ratio = radius / elRadius;\n return [ratio, textBB, radius];\n}\n\nfunction measureText(txt, font, textAnchor, gd) {\n var element = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n var sel = d3.select(element);\n sel.text(txt)\n .attr('x', 0)\n .attr('y', 0)\n .attr('text-anchor', textAnchor)\n .attr('data-unformatted', txt)\n .call(svgTextUtils.convertToTspans, gd)\n .call(Drawing.font, font);\n return Drawing.bBox(sel.node());\n}\n\nfunction cache(trace, name, initialValue, value, key, fn) {\n var objName = '_cache' + name;\n if(!(trace[objName] && trace[objName].key === key)) {\n trace[objName] = {key: key, value: initialValue};\n }\n var v = Lib.aggNums(fn, null, [trace[objName].value, value], 2);\n trace[objName].value = v;\n\n return v;\n}\n\n},{\"../../components/color\":366,\"../../components/drawing\":388,\"../../constants/alignment\":471,\"../../lib\":503,\"../../lib/svg_text_utils\":529,\"../../plots/cartesian/axes\":554,\"../../plots/cartesian/axis_defaults\":556,\"../../plots/cartesian/layout_attributes\":569,\"../../plots/cartesian/position_defaults\":572,\"./constants\":857,\"@plotly/d3\":58,\"d3-interpolate\":116}],861:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar meshAttrs = _dereq_('../mesh3d/attributes');\nvar baseAttrs = _dereq_('../../plots/attributes');\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\n\nfunction makeSliceAttr(axLetter) {\n return {\n show: {\n valType: 'boolean',\n dflt: false,\n },\n locations: {\n valType: 'data_array',\n dflt: [],\n },\n fill: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 1,\n }\n };\n}\n\nfunction makeCapAttr(axLetter) {\n return {\n show: {\n valType: 'boolean',\n dflt: true,\n },\n fill: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 1,\n }\n };\n}\n\nvar attrs = module.exports = overrideAll(extendFlat({\n x: {\n valType: 'data_array',\n },\n y: {\n valType: 'data_array',\n },\n z: {\n valType: 'data_array',\n },\n value: {\n valType: 'data_array',\n },\n isomin: {\n valType: 'number',\n },\n isomax: {\n valType: 'number',\n },\n\n surface: {\n show: {\n valType: 'boolean',\n dflt: true,\n },\n count: {\n valType: 'integer',\n dflt: 2,\n min: 1,\n },\n fill: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 1,\n },\n pattern: {\n valType: 'flaglist',\n flags: ['A', 'B', 'C', 'D', 'E'],\n extras: ['all', 'odd', 'even'],\n dflt: 'all',\n }\n },\n\n spaceframe: {\n show: {\n valType: 'boolean',\n dflt: false,\n },\n fill: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0.15,\n }\n },\n\n slices: {\n x: makeSliceAttr('x'),\n y: makeSliceAttr('y'),\n z: makeSliceAttr('z')\n },\n\n caps: {\n x: makeCapAttr('x'),\n y: makeCapAttr('y'),\n z: makeCapAttr('z')\n },\n\n text: {\n valType: 'string',\n dflt: '',\n arrayOk: true,\n },\n hovertext: {\n valType: 'string',\n dflt: '',\n arrayOk: true,\n },\n hovertemplate: hovertemplateAttrs(),\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n zhoverformat: axisHoverFormat('z'),\n valuehoverformat: axisHoverFormat('value', 1),\n\n showlegend: extendFlat({}, baseAttrs.showlegend, {dflt: false})\n},\n\ncolorScaleAttrs('', {\n colorAttr: '`value`',\n showScaleDflt: true,\n editTypeOverride: 'calc'\n}), {\n opacity: meshAttrs.opacity,\n lightposition: meshAttrs.lightposition,\n lighting: meshAttrs.lighting,\n flatshading: meshAttrs.flatshading,\n contour: meshAttrs.contour,\n\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo)\n}), 'calc', 'nested');\n\n// required defaults to speed up surface normal calculations\nattrs.flatshading.dflt = true; attrs.lighting.facenormalsepsilon.dflt = 0;\n\nattrs.x.editType = attrs.y.editType = attrs.z.editType = attrs.value.editType = 'calc+clearAxisTypes';\nattrs.transforms = undefined;\n\n},{\"../../components/colorscale/attributes\":373,\"../../lib/extend\":493,\"../../plot_api/edit_types\":536,\"../../plots/attributes\":550,\"../../plots/cartesian/axis_format_attributes\":557,\"../../plots/template_attributes\":633,\"../mesh3d/attributes\":866}],862:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorscaleCalc = _dereq_('../../components/colorscale/calc');\nvar processGrid = _dereq_('../streamtube/calc').processGrid;\nvar filter = _dereq_('../streamtube/calc').filter;\n\nmodule.exports = function calc(gd, trace) {\n trace._len = Math.min(\n trace.x.length,\n trace.y.length,\n trace.z.length,\n trace.value.length\n );\n\n trace._x = filter(trace.x, trace._len);\n trace._y = filter(trace.y, trace._len);\n trace._z = filter(trace.z, trace._len);\n trace._value = filter(trace.value, trace._len);\n\n var grid = processGrid(trace);\n trace._gridFill = grid.fill;\n trace._Xs = grid.Xs;\n trace._Ys = grid.Ys;\n trace._Zs = grid.Zs;\n trace._len = grid.len;\n\n var min = Infinity;\n var max = -Infinity;\n for(var i = 0; i < trace._len; i++) {\n var v = trace._value[i];\n min = Math.min(min, v);\n max = Math.max(max, v);\n }\n\n trace._minValues = min;\n trace._maxValues = max;\n trace._vMin = (trace.isomin === undefined || trace.isomin === null) ? min : trace.isomin;\n trace._vMax = (trace.isomax === undefined || trace.isomin === null) ? max : trace.isomax;\n\n colorscaleCalc(gd, trace, {\n vals: [trace._vMin, trace._vMax],\n containerStr: '',\n cLetter: 'c'\n });\n};\n\n},{\"../../components/colorscale/calc\":374,\"../streamtube/calc\":1040}],863:[function(_dereq_,module,exports){\n'use strict';\n\nvar createMesh = _dereq_('../../../stackgl_modules').gl_mesh3d;\nvar parseColorScale = _dereq_('../../lib/gl_format_color').parseColorScale;\nvar str2RgbaArray = _dereq_('../../lib/str2rgbarray');\nvar extractOpts = _dereq_('../../components/colorscale').extractOpts;\nvar zip3 = _dereq_('../../plots/gl3d/zip3');\n\nvar findNearestOnAxis = function(w, arr) {\n for(var q = arr.length - 1; q > 0; q--) {\n var min = Math.min(arr[q], arr[q - 1]);\n var max = Math.max(arr[q], arr[q - 1]);\n if(max > min && min < w && w <= max) {\n return {\n id: q,\n distRatio: (max - w) / (max - min)\n };\n }\n }\n return {\n id: 0,\n distRatio: 0\n };\n};\n\nfunction IsosurfaceTrace(scene, mesh, uid) {\n this.scene = scene;\n this.uid = uid;\n this.mesh = mesh;\n this.name = '';\n this.data = null;\n this.showContour = false;\n}\n\nvar proto = IsosurfaceTrace.prototype;\n\nproto.handlePick = function(selection) {\n if(selection.object === this.mesh) {\n var rawId = selection.data.index;\n\n var x = this.data._meshX[rawId];\n var y = this.data._meshY[rawId];\n var z = this.data._meshZ[rawId];\n\n var height = this.data._Ys.length;\n var depth = this.data._Zs.length;\n\n var i = findNearestOnAxis(x, this.data._Xs).id;\n var j = findNearestOnAxis(y, this.data._Ys).id;\n var k = findNearestOnAxis(z, this.data._Zs).id;\n\n var selectIndex = selection.index = k + depth * j + depth * height * i;\n\n selection.traceCoordinate = [\n this.data._meshX[selectIndex],\n this.data._meshY[selectIndex],\n this.data._meshZ[selectIndex],\n this.data._value[selectIndex]\n ];\n\n var text = this.data.hovertext || this.data.text;\n if(Array.isArray(text) && text[selectIndex] !== undefined) {\n selection.textLabel = text[selectIndex];\n } else if(text) {\n selection.textLabel = text;\n }\n\n return true;\n }\n};\n\nproto.update = function(data) {\n var scene = this.scene;\n var layout = scene.fullSceneLayout;\n\n this.data = generateIsoMeshes(data);\n\n // Unpack position data\n function toDataCoords(axis, coord, scale, calendar) {\n return coord.map(function(x) {\n return axis.d2l(x, 0, calendar) * scale;\n });\n }\n\n var positions = zip3(\n toDataCoords(layout.xaxis, data._meshX, scene.dataScale[0], data.xcalendar),\n toDataCoords(layout.yaxis, data._meshY, scene.dataScale[1], data.ycalendar),\n toDataCoords(layout.zaxis, data._meshZ, scene.dataScale[2], data.zcalendar));\n\n var cells = zip3(data._meshI, data._meshJ, data._meshK);\n\n var config = {\n positions: positions,\n cells: cells,\n lightPosition: [data.lightposition.x, data.lightposition.y, data.lightposition.z],\n ambient: data.lighting.ambient,\n diffuse: data.lighting.diffuse,\n specular: data.lighting.specular,\n roughness: data.lighting.roughness,\n fresnel: data.lighting.fresnel,\n vertexNormalsEpsilon: data.lighting.vertexnormalsepsilon,\n faceNormalsEpsilon: data.lighting.facenormalsepsilon,\n opacity: data.opacity,\n contourEnable: data.contour.show,\n contourColor: str2RgbaArray(data.contour.color).slice(0, 3),\n contourWidth: data.contour.width,\n useFacetNormals: data.flatshading\n };\n\n var cOpts = extractOpts(data);\n config.vertexIntensity = data._meshIntensity;\n config.vertexIntensityBounds = [cOpts.min, cOpts.max];\n config.colormap = parseColorScale(data);\n\n // Update mesh\n this.mesh.update(config);\n};\n\nproto.dispose = function() {\n this.scene.glplot.remove(this.mesh);\n this.mesh.dispose();\n};\n\nvar GRID_TYPES = ['xyz', 'xzy', 'yxz', 'yzx', 'zxy', 'zyx'];\n\nfunction generateIsoMeshes(data) {\n data._meshI = [];\n data._meshJ = [];\n data._meshK = [];\n\n var showSurface = data.surface.show;\n var showSpaceframe = data.spaceframe.show;\n\n var surfaceFill = data.surface.fill;\n var spaceframeFill = data.spaceframe.fill;\n\n var drawingSurface = false;\n var drawingSpaceframe = false;\n\n var numFaces = 0;\n var numVertices;\n var beginVertextLength;\n\n var Xs = data._Xs;\n var Ys = data._Ys;\n var Zs = data._Zs;\n\n var width = Xs.length;\n var height = Ys.length;\n var depth = Zs.length;\n\n var filled = GRID_TYPES.indexOf(data._gridFill.replace(/-/g, '').replace(/\\+/g, ''));\n\n var getIndex = function(i, j, k) {\n switch(filled) {\n case 5: // 'zyx'\n return k + depth * j + depth * height * i;\n case 4: // 'zxy'\n return k + depth * i + depth * width * j;\n case 3: // 'yzx'\n return j + height * k + height * depth * i;\n case 2: // 'yxz'\n return j + height * i + height * width * k;\n case 1: // 'xzy'\n return i + width * k + width * depth * j;\n default: // case 0: // 'xyz'\n return i + width * j + width * height * k;\n }\n };\n\n var minValues = data._minValues;\n var maxValues = data._maxValues;\n\n var vMin = data._vMin;\n var vMax = data._vMax;\n\n var allXs;\n var allYs;\n var allZs;\n var allVs;\n\n function findVertexId(x, y, z) {\n // could be used to find the vertex id of previously generated vertex within the group\n\n var len = allVs.length;\n for(var f = beginVertextLength; f < len; f++) {\n if(\n x === allXs[f] &&\n y === allYs[f] &&\n z === allZs[f]\n ) {\n return f;\n }\n }\n return -1;\n }\n\n function beginGroup() {\n beginVertextLength = numVertices;\n }\n\n function emptyVertices() {\n allXs = [];\n allYs = [];\n allZs = [];\n allVs = [];\n numVertices = 0;\n\n beginGroup();\n }\n\n function addVertex(x, y, z, v) {\n allXs.push(x);\n allYs.push(y);\n allZs.push(z);\n allVs.push(v);\n numVertices++;\n\n return numVertices - 1;\n }\n\n function addFace(a, b, c) {\n data._meshI.push(a);\n data._meshJ.push(b);\n data._meshK.push(c);\n numFaces++;\n\n return numFaces - 1;\n }\n\n function getCenter(A, B, C) {\n var M = [];\n for(var i = 0; i < A.length; i++) {\n M[i] = (A[i] + B[i] + C[i]) / 3.0;\n }\n return M;\n }\n\n function getBetween(A, B, r) {\n var M = [];\n for(var i = 0; i < A.length; i++) {\n M[i] = A[i] * (1 - r) + r * B[i];\n }\n return M;\n }\n\n var activeFill;\n function setFill(fill) {\n activeFill = fill;\n }\n\n function createOpenTri(xyzv, abc) {\n var A = xyzv[0];\n var B = xyzv[1];\n var C = xyzv[2];\n var G = getCenter(A, B, C);\n\n var r = Math.sqrt(1 - activeFill);\n var p1 = getBetween(G, A, r);\n var p2 = getBetween(G, B, r);\n var p3 = getBetween(G, C, r);\n\n var a = abc[0];\n var b = abc[1];\n var c = abc[2];\n\n return {\n xyzv: [\n [A, B, p2], [p2, p1, A],\n [B, C, p3], [p3, p2, B],\n [C, A, p1], [p1, p3, C]\n ],\n abc: [\n [a, b, -1], [-1, -1, a],\n [b, c, -1], [-1, -1, b],\n [c, a, -1], [-1, -1, c]\n ]\n };\n }\n\n function styleIncludes(style, char) {\n if(style === 'all' || style === null) return true;\n return (style.indexOf(char) > -1);\n }\n\n function mapValue(style, value) {\n if(style === null) return value;\n return style;\n }\n\n function drawTri(style, xyzv, abc) {\n beginGroup();\n\n var allXYZVs = [xyzv];\n var allABCs = [abc];\n if(activeFill >= 1) {\n allXYZVs = [xyzv];\n allABCs = [abc];\n } else if(activeFill > 0) {\n var openTri = createOpenTri(xyzv, abc);\n allXYZVs = openTri.xyzv;\n allABCs = openTri.abc;\n }\n\n for(var f = 0; f < allXYZVs.length; f++) {\n xyzv = allXYZVs[f];\n abc = allABCs[f];\n\n var pnts = [];\n for(var i = 0; i < 3; i++) {\n var x = xyzv[i][0];\n var y = xyzv[i][1];\n var z = xyzv[i][2];\n var v = xyzv[i][3];\n\n var id = (abc[i] > -1) ? abc[i] : findVertexId(x, y, z);\n if(id > -1) {\n pnts[i] = id;\n } else {\n pnts[i] = addVertex(x, y, z, mapValue(style, v));\n }\n }\n\n addFace(pnts[0], pnts[1], pnts[2]);\n }\n }\n\n function drawQuad(style, xyzv, abcd) {\n var makeTri = function(i, j, k) {\n drawTri(style, [xyzv[i], xyzv[j], xyzv[k]], [abcd[i], abcd[j], abcd[k]]);\n };\n\n makeTri(0, 1, 2);\n makeTri(2, 3, 0);\n }\n\n function drawTetra(style, xyzv, abcd) {\n var makeTri = function(i, j, k) {\n drawTri(style, [xyzv[i], xyzv[j], xyzv[k]], [abcd[i], abcd[j], abcd[k]]);\n };\n\n makeTri(0, 1, 2);\n makeTri(3, 0, 1);\n makeTri(2, 3, 0);\n makeTri(1, 2, 3);\n }\n\n function calcIntersection(pointOut, pointIn, min, max) {\n var value = pointOut[3];\n\n if(value < min) value = min;\n if(value > max) value = max;\n\n var ratio = (pointOut[3] - value) / (pointOut[3] - pointIn[3] + 0.000000001); // we had to add this error to force solve the tiny caps\n\n var result = [];\n for(var s = 0; s < 4; s++) {\n result[s] = (1 - ratio) * pointOut[s] + ratio * pointIn[s];\n }\n return result;\n }\n\n function inRange(value, min, max) {\n return (\n value >= min &&\n value <= max\n );\n }\n\n function almostInFinalRange(value) {\n var vErr = 0.001 * (vMax - vMin);\n return (\n value >= vMin - vErr &&\n value <= vMax + vErr\n );\n }\n\n function getXYZV(indecies) {\n var xyzv = [];\n for(var q = 0; q < 4; q++) {\n var index = indecies[q];\n xyzv.push(\n [\n data._x[index],\n data._y[index],\n data._z[index],\n data._value[index]\n ]\n );\n }\n\n return xyzv;\n }\n\n var MAX_PASS = 3;\n\n function tryCreateTri(style, xyzv, abc, min, max, nPass) {\n if(!nPass) nPass = 1;\n\n abc = [-1, -1, -1]; // Note: for the moment we override indices\n // to run faster! But it is possible to comment this line\n // to reduce the number of vertices.\n\n var result = false;\n\n var ok = [\n inRange(xyzv[0][3], min, max),\n inRange(xyzv[1][3], min, max),\n inRange(xyzv[2][3], min, max)\n ];\n\n if(!ok[0] && !ok[1] && !ok[2]) {\n return false;\n }\n\n var tryDrawTri = function(style, xyzv, abc) {\n if( // we check here if the points are in `real` iso-min/max range\n almostInFinalRange(xyzv[0][3]) &&\n almostInFinalRange(xyzv[1][3]) &&\n almostInFinalRange(xyzv[2][3])\n ) {\n drawTri(style, xyzv, abc);\n return true;\n } else if(nPass < MAX_PASS) {\n return tryCreateTri(style, xyzv, abc, vMin, vMax, ++nPass); // i.e. second pass using actual vMin vMax bounds\n }\n return false;\n };\n\n if(ok[0] && ok[1] && ok[2]) {\n return tryDrawTri(style, xyzv, abc) || result;\n }\n\n var interpolated = false;\n\n [\n [0, 1, 2],\n [2, 0, 1],\n [1, 2, 0]\n ].forEach(function(e) {\n if(ok[e[0]] && ok[e[1]] && !ok[e[2]]) {\n var A = xyzv[e[0]];\n var B = xyzv[e[1]];\n var C = xyzv[e[2]];\n\n var p1 = calcIntersection(C, A, min, max);\n var p2 = calcIntersection(C, B, min, max);\n\n result = tryDrawTri(style, [p2, p1, A], [-1, -1, abc[e[0]]]) || result;\n result = tryDrawTri(style, [A, B, p2], [abc[e[0]], abc[e[1]], -1]) || result;\n\n interpolated = true;\n }\n });\n if(interpolated) return result;\n\n [\n [0, 1, 2],\n [1, 2, 0],\n [2, 0, 1]\n ].forEach(function(e) {\n if(ok[e[0]] && !ok[e[1]] && !ok[e[2]]) {\n var A = xyzv[e[0]];\n var B = xyzv[e[1]];\n var C = xyzv[e[2]];\n\n var p1 = calcIntersection(B, A, min, max);\n var p2 = calcIntersection(C, A, min, max);\n\n result = tryDrawTri(style, [p2, p1, A], [-1, -1, abc[e[0]]]) || result;\n\n interpolated = true;\n }\n });\n return result;\n }\n\n function tryCreateTetra(style, abcd, min, max) {\n var result = false;\n\n var xyzv = getXYZV(abcd);\n\n var ok = [\n inRange(xyzv[0][3], min, max),\n inRange(xyzv[1][3], min, max),\n inRange(xyzv[2][3], min, max),\n inRange(xyzv[3][3], min, max)\n ];\n\n if(!ok[0] && !ok[1] && !ok[2] && !ok[3]) {\n return result;\n }\n\n if(ok[0] && ok[1] && ok[2] && ok[3]) {\n if(drawingSpaceframe) {\n result = drawTetra(style, xyzv, abcd) || result;\n }\n return result;\n }\n\n var interpolated = false;\n\n [\n [0, 1, 2, 3],\n [3, 0, 1, 2],\n [2, 3, 0, 1],\n [1, 2, 3, 0]\n ].forEach(function(e) {\n if(ok[e[0]] && ok[e[1]] && ok[e[2]] && !ok[e[3]]) {\n var A = xyzv[e[0]];\n var B = xyzv[e[1]];\n var C = xyzv[e[2]];\n var D = xyzv[e[3]];\n\n if(drawingSpaceframe) {\n result = drawTri(style, [A, B, C], [abcd[e[0]], abcd[e[1]], abcd[e[2]]]) || result;\n } else {\n var p1 = calcIntersection(D, A, min, max);\n var p2 = calcIntersection(D, B, min, max);\n var p3 = calcIntersection(D, C, min, max);\n\n result = drawTri(null, [p1, p2, p3], [-1, -1, -1]) || result;\n }\n\n interpolated = true;\n }\n });\n if(interpolated) return result;\n\n [\n [0, 1, 2, 3],\n [1, 2, 3, 0],\n [2, 3, 0, 1],\n [3, 0, 1, 2],\n [0, 2, 3, 1],\n [1, 3, 2, 0]\n ].forEach(function(e) {\n if(ok[e[0]] && ok[e[1]] && !ok[e[2]] && !ok[e[3]]) {\n var A = xyzv[e[0]];\n var B = xyzv[e[1]];\n var C = xyzv[e[2]];\n var D = xyzv[e[3]];\n\n var p1 = calcIntersection(C, A, min, max);\n var p2 = calcIntersection(C, B, min, max);\n var p3 = calcIntersection(D, B, min, max);\n var p4 = calcIntersection(D, A, min, max);\n\n if(drawingSpaceframe) {\n result = drawTri(style, [A, p4, p1], [abcd[e[0]], -1, -1]) || result;\n result = drawTri(style, [B, p2, p3], [abcd[e[1]], -1, -1]) || result;\n } else {\n result = drawQuad(null, [p1, p2, p3, p4], [-1, -1, -1, -1]) || result;\n }\n\n interpolated = true;\n }\n });\n if(interpolated) return result;\n\n [\n [0, 1, 2, 3],\n [1, 2, 3, 0],\n [2, 3, 0, 1],\n [3, 0, 1, 2]\n ].forEach(function(e) {\n if(ok[e[0]] && !ok[e[1]] && !ok[e[2]] && !ok[e[3]]) {\n var A = xyzv[e[0]];\n var B = xyzv[e[1]];\n var C = xyzv[e[2]];\n var D = xyzv[e[3]];\n\n var p1 = calcIntersection(B, A, min, max);\n var p2 = calcIntersection(C, A, min, max);\n var p3 = calcIntersection(D, A, min, max);\n\n if(drawingSpaceframe) {\n result = drawTri(style, [A, p1, p2], [abcd[e[0]], -1, -1]) || result;\n result = drawTri(style, [A, p2, p3], [abcd[e[0]], -1, -1]) || result;\n result = drawTri(style, [A, p3, p1], [abcd[e[0]], -1, -1]) || result;\n } else {\n result = drawTri(null, [p1, p2, p3], [-1, -1, -1]) || result;\n }\n\n interpolated = true;\n }\n });\n return result;\n }\n\n function addCube(style, p000, p001, p010, p011, p100, p101, p110, p111, min, max) {\n var result = false;\n\n if(drawingSurface) {\n if(styleIncludes(style, 'A')) {\n result = tryCreateTetra(null, [p000, p001, p010, p100], min, max) || result;\n }\n if(styleIncludes(style, 'B')) {\n result = tryCreateTetra(null, [p001, p010, p011, p111], min, max) || result;\n }\n if(styleIncludes(style, 'C')) {\n result = tryCreateTetra(null, [p001, p100, p101, p111], min, max) || result;\n }\n if(styleIncludes(style, 'D')) {\n result = tryCreateTetra(null, [p010, p100, p110, p111], min, max) || result;\n }\n if(styleIncludes(style, 'E')) {\n result = tryCreateTetra(null, [p001, p010, p100, p111], min, max) || result;\n }\n }\n\n if(drawingSpaceframe) {\n result = tryCreateTetra(style, [p001, p010, p100, p111], min, max) || result;\n }\n\n return result;\n }\n\n function addRect(style, a, b, c, d, min, max, previousResult) {\n return [\n (previousResult[0] === true) ? true :\n tryCreateTri(style, getXYZV([a, b, c]), [a, b, c], min, max),\n (previousResult[1] === true) ? true :\n tryCreateTri(style, getXYZV([c, d, a]), [c, d, a], min, max)\n ];\n }\n\n function begin2dCell(style, p00, p01, p10, p11, min, max, isEven, previousResult) {\n // used to create caps and/or slices on exact axis points\n if(isEven) {\n return addRect(style, p00, p01, p11, p10, min, max, previousResult);\n } else {\n return addRect(style, p01, p11, p10, p00, min, max, previousResult);\n }\n }\n\n function beginSection(style, i, j, k, min, max, distRatios) {\n // used to create slices between axis points\n\n var result = false;\n var A, B, C, D;\n\n var makeSection = function() {\n result = tryCreateTri(style, [A, B, C], [-1, -1, -1], min, max) || result;\n result = tryCreateTri(style, [C, D, A], [-1, -1, -1], min, max) || result;\n };\n\n var rX = distRatios[0];\n var rY = distRatios[1];\n var rZ = distRatios[2];\n\n if(rX) {\n A = getBetween(getXYZV([getIndex(i, j - 0, k - 0)])[0], getXYZV([getIndex(i - 1, j - 0, k - 0)])[0], rX);\n B = getBetween(getXYZV([getIndex(i, j - 0, k - 1)])[0], getXYZV([getIndex(i - 1, j - 0, k - 1)])[0], rX);\n C = getBetween(getXYZV([getIndex(i, j - 1, k - 1)])[0], getXYZV([getIndex(i - 1, j - 1, k - 1)])[0], rX);\n D = getBetween(getXYZV([getIndex(i, j - 1, k - 0)])[0], getXYZV([getIndex(i - 1, j - 1, k - 0)])[0], rX);\n makeSection();\n }\n\n if(rY) {\n A = getBetween(getXYZV([getIndex(i - 0, j, k - 0)])[0], getXYZV([getIndex(i - 0, j - 1, k - 0)])[0], rY);\n B = getBetween(getXYZV([getIndex(i - 0, j, k - 1)])[0], getXYZV([getIndex(i - 0, j - 1, k - 1)])[0], rY);\n C = getBetween(getXYZV([getIndex(i - 1, j, k - 1)])[0], getXYZV([getIndex(i - 1, j - 1, k - 1)])[0], rY);\n D = getBetween(getXYZV([getIndex(i - 1, j, k - 0)])[0], getXYZV([getIndex(i - 1, j - 1, k - 0)])[0], rY);\n makeSection();\n }\n\n if(rZ) {\n A = getBetween(getXYZV([getIndex(i - 0, j - 0, k)])[0], getXYZV([getIndex(i - 0, j - 0, k - 1)])[0], rZ);\n B = getBetween(getXYZV([getIndex(i - 0, j - 1, k)])[0], getXYZV([getIndex(i - 0, j - 1, k - 1)])[0], rZ);\n C = getBetween(getXYZV([getIndex(i - 1, j - 1, k)])[0], getXYZV([getIndex(i - 1, j - 1, k - 1)])[0], rZ);\n D = getBetween(getXYZV([getIndex(i - 1, j - 0, k)])[0], getXYZV([getIndex(i - 1, j - 0, k - 1)])[0], rZ);\n makeSection();\n }\n\n return result;\n }\n\n function begin3dCell(style, p000, p001, p010, p011, p100, p101, p110, p111, min, max, isEven) {\n // used to create spaceframe and/or iso-surfaces\n\n var cellStyle = style;\n if(isEven) {\n if(drawingSurface && style === 'even') cellStyle = null;\n return addCube(cellStyle, p000, p001, p010, p011, p100, p101, p110, p111, min, max);\n } else {\n if(drawingSurface && style === 'odd') cellStyle = null;\n return addCube(cellStyle, p111, p110, p101, p100, p011, p010, p001, p000, min, max);\n }\n }\n\n function draw2dX(style, items, min, max, previousResult) {\n var result = [];\n var n = 0;\n for(var q = 0; q < items.length; q++) {\n var i = items[q];\n for(var k = 1; k < depth; k++) {\n for(var j = 1; j < height; j++) {\n result.push(\n begin2dCell(style,\n getIndex(i, j - 1, k - 1),\n getIndex(i, j - 1, k),\n getIndex(i, j, k - 1),\n getIndex(i, j, k),\n min,\n max,\n (i + j + k) % 2,\n (previousResult && previousResult[n]) ? previousResult[n] : []\n )\n );\n n++;\n }\n }\n }\n return result;\n }\n\n function draw2dY(style, items, min, max, previousResult) {\n var result = [];\n var n = 0;\n for(var q = 0; q < items.length; q++) {\n var j = items[q];\n for(var i = 1; i < width; i++) {\n for(var k = 1; k < depth; k++) {\n result.push(\n begin2dCell(style,\n getIndex(i - 1, j, k - 1),\n getIndex(i, j, k - 1),\n getIndex(i - 1, j, k),\n getIndex(i, j, k),\n min,\n max,\n (i + j + k) % 2,\n (previousResult && previousResult[n]) ? previousResult[n] : []\n )\n );\n n++;\n }\n }\n }\n return result;\n }\n\n function draw2dZ(style, items, min, max, previousResult) {\n var result = [];\n var n = 0;\n for(var q = 0; q < items.length; q++) {\n var k = items[q];\n for(var j = 1; j < height; j++) {\n for(var i = 1; i < width; i++) {\n result.push(\n begin2dCell(style,\n getIndex(i - 1, j - 1, k),\n getIndex(i - 1, j, k),\n getIndex(i, j - 1, k),\n getIndex(i, j, k),\n min,\n max,\n (i + j + k) % 2,\n (previousResult && previousResult[n]) ? previousResult[n] : []\n )\n );\n n++;\n }\n }\n }\n return result;\n }\n\n function draw3d(style, min, max) {\n for(var k = 1; k < depth; k++) {\n for(var j = 1; j < height; j++) {\n for(var i = 1; i < width; i++) {\n begin3dCell(style,\n getIndex(i - 1, j - 1, k - 1),\n getIndex(i - 1, j - 1, k),\n getIndex(i - 1, j, k - 1),\n getIndex(i - 1, j, k),\n getIndex(i, j - 1, k - 1),\n getIndex(i, j - 1, k),\n getIndex(i, j, k - 1),\n getIndex(i, j, k),\n min,\n max,\n (i + j + k) % 2\n );\n }\n }\n }\n }\n\n function drawSpaceframe(style, min, max) {\n drawingSpaceframe = true;\n draw3d(style, min, max);\n drawingSpaceframe = false;\n }\n\n function drawSurface(style, min, max) {\n drawingSurface = true;\n draw3d(style, min, max);\n drawingSurface = false;\n }\n\n function drawSectionX(style, items, min, max, distRatios, previousResult) {\n var result = [];\n var n = 0;\n for(var q = 0; q < items.length; q++) {\n var i = items[q];\n for(var k = 1; k < depth; k++) {\n for(var j = 1; j < height; j++) {\n result.push(\n beginSection(style, i, j, k, min, max, distRatios[q],\n (previousResult && previousResult[n]) ? previousResult[n] : []\n )\n );\n n++;\n }\n }\n }\n return result;\n }\n\n function drawSectionY(style, items, min, max, distRatios, previousResult) {\n var result = [];\n var n = 0;\n for(var q = 0; q < items.length; q++) {\n var j = items[q];\n for(var i = 1; i < width; i++) {\n for(var k = 1; k < depth; k++) {\n result.push(\n beginSection(style, i, j, k, min, max, distRatios[q],\n (previousResult && previousResult[n]) ? previousResult[n] : []\n )\n );\n n++;\n }\n }\n }\n return result;\n }\n\n function drawSectionZ(style, items, min, max, distRatios, previousResult) {\n var result = [];\n var n = 0;\n for(var q = 0; q < items.length; q++) {\n var k = items[q];\n for(var j = 1; j < height; j++) {\n for(var i = 1; i < width; i++) {\n result.push(\n beginSection(style, i, j, k, min, max, distRatios[q],\n (previousResult && previousResult[n]) ? previousResult[n] : []\n )\n );\n n++;\n }\n }\n }\n return result;\n }\n\n function createRange(a, b) {\n var range = [];\n for(var q = a; q < b; q++) {\n range.push(q);\n }\n return range;\n }\n\n function insertGridPoints() {\n for(var i = 0; i < width; i++) {\n for(var j = 0; j < height; j++) {\n for(var k = 0; k < depth; k++) {\n var index = getIndex(i, j, k);\n addVertex(\n data._x[index],\n data._y[index],\n data._z[index],\n data._value[index]\n );\n }\n }\n }\n }\n\n function drawAll() {\n emptyVertices();\n\n // insert grid points\n insertGridPoints();\n\n var activeStyle = null;\n\n // draw spaceframes\n if(showSpaceframe && spaceframeFill) {\n setFill(spaceframeFill);\n\n drawSpaceframe(activeStyle, vMin, vMax);\n }\n\n // draw iso-surfaces\n if(showSurface && surfaceFill) {\n setFill(surfaceFill);\n\n var surfacePattern = data.surface.pattern;\n var surfaceCount = data.surface.count;\n for(var q = 0; q < surfaceCount; q++) {\n var ratio = (surfaceCount === 1) ? 0.5 : q / (surfaceCount - 1);\n var level = (1 - ratio) * vMin + ratio * vMax;\n\n var d1 = Math.abs(level - minValues);\n var d2 = Math.abs(level - maxValues);\n var ranges = (d1 > d2) ?\n [minValues, level] :\n [level, maxValues];\n\n drawSurface(surfacePattern, ranges[0], ranges[1]);\n }\n }\n\n var setupMinMax = [\n [ Math.min(vMin, maxValues), Math.max(vMin, maxValues) ],\n [ Math.min(minValues, vMax), Math.max(minValues, vMax) ]\n ];\n\n ['x', 'y', 'z'].forEach(function(e) {\n var preRes = [];\n for(var s = 0; s < setupMinMax.length; s++) {\n var count = 0;\n\n var activeMin = setupMinMax[s][0];\n var activeMax = setupMinMax[s][1];\n\n // draw slices\n var slice = data.slices[e];\n if(slice.show && slice.fill) {\n setFill(slice.fill);\n\n var exactIndices = [];\n var ceilIndices = [];\n var distRatios = [];\n if(slice.locations.length) {\n for(var q = 0; q < slice.locations.length; q++) {\n var near = findNearestOnAxis(\n slice.locations[q],\n (e === 'x') ? Xs :\n (e === 'y') ? Ys : Zs\n );\n\n if(near.distRatio === 0) {\n exactIndices.push(near.id);\n } else if(near.id > 0) {\n ceilIndices.push(near.id);\n if(e === 'x') {\n distRatios.push([near.distRatio, 0, 0]);\n } else if(e === 'y') {\n distRatios.push([0, near.distRatio, 0]);\n } else {\n distRatios.push([0, 0, near.distRatio]);\n }\n }\n }\n } else {\n if(e === 'x') {\n exactIndices = createRange(1, width - 1);\n } else if(e === 'y') {\n exactIndices = createRange(1, height - 1);\n } else {\n exactIndices = createRange(1, depth - 1);\n }\n }\n\n if(ceilIndices.length > 0) {\n if(e === 'x') {\n preRes[count] = drawSectionX(activeStyle, ceilIndices, activeMin, activeMax, distRatios, preRes[count]);\n } else if(e === 'y') {\n preRes[count] = drawSectionY(activeStyle, ceilIndices, activeMin, activeMax, distRatios, preRes[count]);\n } else {\n preRes[count] = drawSectionZ(activeStyle, ceilIndices, activeMin, activeMax, distRatios, preRes[count]);\n }\n count++;\n }\n\n if(exactIndices.length > 0) {\n if(e === 'x') {\n preRes[count] = draw2dX(activeStyle, exactIndices, activeMin, activeMax, preRes[count]);\n } else if(e === 'y') {\n preRes[count] = draw2dY(activeStyle, exactIndices, activeMin, activeMax, preRes[count]);\n } else {\n preRes[count] = draw2dZ(activeStyle, exactIndices, activeMin, activeMax, preRes[count]);\n }\n count++;\n }\n }\n\n // draw caps\n var cap = data.caps[e];\n if(cap.show && cap.fill) {\n setFill(cap.fill);\n if(e === 'x') {\n preRes[count] = draw2dX(activeStyle, [0, width - 1], activeMin, activeMax, preRes[count]);\n } else if(e === 'y') {\n preRes[count] = draw2dY(activeStyle, [0, height - 1], activeMin, activeMax, preRes[count]);\n } else {\n preRes[count] = draw2dZ(activeStyle, [0, depth - 1], activeMin, activeMax, preRes[count]);\n }\n count++;\n }\n }\n });\n\n // remove vertices arrays (i.e. grid points) in case no face was created.\n if(numFaces === 0) {\n emptyVertices();\n }\n\n data._meshX = allXs;\n data._meshY = allYs;\n data._meshZ = allZs;\n data._meshIntensity = allVs;\n\n data._Xs = Xs;\n data._Ys = Ys;\n data._Zs = Zs;\n }\n\n drawAll();\n\n return data;\n}\n\nfunction createIsosurfaceTrace(scene, data) {\n var gl = scene.glplot.gl;\n var mesh = createMesh({gl: gl});\n var result = new IsosurfaceTrace(scene, mesh, data.uid);\n\n mesh._trace = result;\n result.update(data);\n scene.glplot.add(mesh);\n return result;\n}\n\nmodule.exports = {\n findNearestOnAxis: findNearestOnAxis,\n generateIsoMeshes: generateIsoMeshes,\n createIsosurfaceTrace: createIsosurfaceTrace,\n};\n\n},{\"../../../stackgl_modules\":1119,\"../../components/colorscale\":378,\"../../lib/gl_format_color\":499,\"../../lib/str2rgbarray\":528,\"../../plots/gl3d/zip3\":609}],864:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Registry = _dereq_('../../registry');\nvar attributes = _dereq_('./attributes');\nvar colorscaleDefaults = _dereq_('../../components/colorscale/defaults');\n\nfunction supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n supplyIsoDefaults(traceIn, traceOut, defaultColor, layout, coerce);\n}\n\nfunction supplyIsoDefaults(traceIn, traceOut, defaultColor, layout, coerce) {\n var isomin = coerce('isomin');\n var isomax = coerce('isomax');\n\n if(isomax !== undefined && isomax !== null &&\n isomin !== undefined && isomin !== null &&\n isomin > isomax) {\n // applying default values in this case:\n traceOut.isomin = null;\n traceOut.isomax = null;\n }\n\n var x = coerce('x');\n var y = coerce('y');\n var z = coerce('z');\n var value = coerce('value');\n\n if(\n !x || !x.length ||\n !y || !y.length ||\n !z || !z.length ||\n !value || !value.length\n ) {\n traceOut.visible = false;\n return;\n }\n\n var handleCalendarDefaults = Registry.getComponentMethod('calendars', 'handleTraceDefaults');\n handleCalendarDefaults(traceIn, traceOut, ['x', 'y', 'z'], layout);\n\n coerce('valuehoverformat');\n ['x', 'y', 'z'].forEach(function(dim) {\n coerce(dim + 'hoverformat');\n\n var capDim = 'caps.' + dim;\n var showCap = coerce(capDim + '.show');\n if(showCap) {\n coerce(capDim + '.fill');\n }\n\n var sliceDim = 'slices.' + dim;\n var showSlice = coerce(sliceDim + '.show');\n if(showSlice) {\n coerce(sliceDim + '.fill');\n coerce(sliceDim + '.locations');\n }\n });\n\n var showSpaceframe = coerce('spaceframe.show');\n if(showSpaceframe) {\n coerce('spaceframe.fill');\n }\n\n var showSurface = coerce('surface.show');\n if(showSurface) {\n coerce('surface.count');\n coerce('surface.fill');\n coerce('surface.pattern');\n }\n\n var showContour = coerce('contour.show');\n if(showContour) {\n coerce('contour.color');\n coerce('contour.width');\n }\n\n // Coerce remaining properties\n [\n 'text',\n 'hovertext',\n 'hovertemplate',\n 'lighting.ambient',\n 'lighting.diffuse',\n 'lighting.specular',\n 'lighting.roughness',\n 'lighting.fresnel',\n 'lighting.vertexnormalsepsilon',\n 'lighting.facenormalsepsilon',\n 'lightposition.x',\n 'lightposition.y',\n 'lightposition.z',\n 'flatshading',\n 'opacity'\n ].forEach(function(x) { coerce(x); });\n\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: '', cLetter: 'c'});\n\n // disable 1D transforms (for now)\n traceOut._length = null;\n}\n\nmodule.exports = {\n supplyDefaults: supplyDefaults,\n supplyIsoDefaults: supplyIsoDefaults\n};\n\n},{\"../../components/colorscale/defaults\":376,\"../../lib\":503,\"../../registry\":638,\"./attributes\":861}],865:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults').supplyDefaults,\n calc: _dereq_('./calc'),\n colorbar: {\n min: 'cmin',\n max: 'cmax'\n },\n plot: _dereq_('./convert').createIsosurfaceTrace,\n\n moduleType: 'trace',\n name: 'isosurface',\n basePlotModule: _dereq_('../../plots/gl3d'),\n categories: ['gl3d', 'showLegend'],\n meta: {\n }\n};\n\n},{\"../../plots/gl3d\":598,\"./attributes\":861,\"./calc\":862,\"./convert\":863,\"./defaults\":864}],866:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar surfaceAttrs = _dereq_('../surface/attributes');\nvar baseAttrs = _dereq_('../../plots/attributes');\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nmodule.exports = extendFlat({\n x: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n y: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n z: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n\n i: {\n valType: 'data_array',\n editType: 'calc',\n },\n j: {\n valType: 'data_array',\n editType: 'calc',\n\n },\n k: {\n valType: 'data_array',\n editType: 'calc',\n\n },\n\n text: {\n valType: 'string',\n dflt: '',\n arrayOk: true,\n editType: 'calc',\n },\n hovertext: {\n valType: 'string',\n dflt: '',\n arrayOk: true,\n editType: 'calc',\n },\n hovertemplate: hovertemplateAttrs({editType: 'calc'}),\n\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n zhoverformat: axisHoverFormat('z'),\n\n delaunayaxis: {\n valType: 'enumerated',\n values: [ 'x', 'y', 'z' ],\n dflt: 'z',\n editType: 'calc',\n },\n\n alphahull: {\n valType: 'number',\n dflt: -1,\n editType: 'calc',\n },\n\n intensity: {\n valType: 'data_array',\n editType: 'calc',\n },\n intensitymode: {\n valType: 'enumerated',\n values: ['vertex', 'cell'],\n dflt: 'vertex',\n editType: 'calc',\n },\n\n // Color field\n color: {\n valType: 'color',\n editType: 'calc',\n },\n vertexcolor: {\n valType: 'data_array',\n editType: 'calc',\n },\n facecolor: {\n valType: 'data_array',\n editType: 'calc',\n },\n transforms: undefined\n},\n\ncolorScaleAttrs('', {\n colorAttr: '`intensity`',\n showScaleDflt: true,\n editTypeOverride: 'calc'\n}), {\n opacity: surfaceAttrs.opacity,\n\n // Flat shaded mode\n flatshading: {\n valType: 'boolean',\n dflt: false,\n editType: 'calc',\n },\n\n contour: {\n show: extendFlat({}, surfaceAttrs.contours.x.show, {\n }),\n color: surfaceAttrs.contours.x.color,\n width: surfaceAttrs.contours.x.width,\n editType: 'calc'\n },\n\n lightposition: {\n x: extendFlat({}, surfaceAttrs.lightposition.x, {dflt: 1e5}),\n y: extendFlat({}, surfaceAttrs.lightposition.y, {dflt: 1e5}),\n z: extendFlat({}, surfaceAttrs.lightposition.z, {dflt: 0}),\n editType: 'calc'\n },\n lighting: extendFlat({\n vertexnormalsepsilon: {\n valType: 'number',\n min: 0.00,\n max: 1,\n dflt: 1e-12, // otherwise finely tessellated things eg. the brain will have no specular light reflection\n editType: 'calc',\n },\n facenormalsepsilon: {\n valType: 'number',\n min: 0.00,\n max: 1,\n dflt: 1e-6, // even the brain model doesn't appear to need finer than this\n editType: 'calc',\n },\n editType: 'calc'\n }, surfaceAttrs.lighting),\n\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {editType: 'calc'}),\n showlegend: extendFlat({}, baseAttrs.showlegend, {dflt: false})\n});\n\n},{\"../../components/colorscale/attributes\":373,\"../../lib/extend\":493,\"../../plots/attributes\":550,\"../../plots/cartesian/axis_format_attributes\":557,\"../../plots/template_attributes\":633,\"../surface/attributes\":1056}],867:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorscaleCalc = _dereq_('../../components/colorscale/calc');\n\nmodule.exports = function calc(gd, trace) {\n if(trace.intensity) {\n colorscaleCalc(gd, trace, {\n vals: trace.intensity,\n containerStr: '',\n cLetter: 'c'\n });\n }\n};\n\n},{\"../../components/colorscale/calc\":374}],868:[function(_dereq_,module,exports){\n'use strict';\n\nvar createMesh = _dereq_('../../../stackgl_modules').gl_mesh3d;\nvar triangulate = _dereq_('../../../stackgl_modules').delaunay_triangulate;\nvar alphaShape = _dereq_('../../../stackgl_modules').alpha_shape;\nvar convexHull = _dereq_('../../../stackgl_modules').convex_hull;\n\nvar parseColorScale = _dereq_('../../lib/gl_format_color').parseColorScale;\nvar str2RgbaArray = _dereq_('../../lib/str2rgbarray');\nvar extractOpts = _dereq_('../../components/colorscale').extractOpts;\nvar zip3 = _dereq_('../../plots/gl3d/zip3');\n\nfunction Mesh3DTrace(scene, mesh, uid) {\n this.scene = scene;\n this.uid = uid;\n this.mesh = mesh;\n this.name = '';\n this.color = '#fff';\n this.data = null;\n this.showContour = false;\n}\n\nvar proto = Mesh3DTrace.prototype;\n\nproto.handlePick = function(selection) {\n if(selection.object === this.mesh) {\n var selectIndex = selection.index = selection.data.index;\n\n if(selection.data._cellCenter) {\n selection.traceCoordinate = selection.data.dataCoordinate;\n } else {\n selection.traceCoordinate = [\n this.data.x[selectIndex],\n this.data.y[selectIndex],\n this.data.z[selectIndex]\n ];\n }\n\n var text = this.data.hovertext || this.data.text;\n if(Array.isArray(text) && text[selectIndex] !== undefined) {\n selection.textLabel = text[selectIndex];\n } else if(text) {\n selection.textLabel = text;\n }\n\n return true;\n }\n};\n\nfunction parseColorArray(colors) {\n var b = [];\n var len = colors.length;\n for(var i = 0; i < len; i++) {\n b[i] = str2RgbaArray(colors[i]);\n }\n return b;\n}\n\n// Unpack position data\nfunction toDataCoords(axis, coord, scale, calendar) {\n var b = [];\n var len = coord.length;\n for(var i = 0; i < len; i++) {\n b[i] = axis.d2l(coord[i], 0, calendar) * scale;\n }\n return b;\n}\n\n// Round indices if passed as floats\nfunction toRoundIndex(a) {\n var b = [];\n var len = a.length;\n for(var i = 0; i < len; i++) {\n b[i] = Math.round(a[i]);\n }\n return b;\n}\n\nfunction delaunayCells(delaunayaxis, positions) {\n var d = ['x', 'y', 'z'].indexOf(delaunayaxis);\n var b = [];\n var len = positions.length;\n for(var i = 0; i < len; i++) {\n b[i] = [positions[i][(d + 1) % 3], positions[i][(d + 2) % 3]];\n }\n return triangulate(b);\n}\n\n// Validate indices\nfunction hasValidIndices(list, numVertices) {\n var len = list.length;\n for(var i = 0; i < len; i++) {\n if(list[i] <= -0.5 || list[i] >= numVertices - 0.5) { // Note: the indices would be rounded -0.49 is valid.\n return false;\n }\n }\n return true;\n}\n\nproto.update = function(data) {\n var scene = this.scene;\n var layout = scene.fullSceneLayout;\n\n this.data = data;\n\n var numVertices = data.x.length;\n\n var positions = zip3(\n toDataCoords(layout.xaxis, data.x, scene.dataScale[0], data.xcalendar),\n toDataCoords(layout.yaxis, data.y, scene.dataScale[1], data.ycalendar),\n toDataCoords(layout.zaxis, data.z, scene.dataScale[2], data.zcalendar)\n );\n\n var cells;\n if(data.i && data.j && data.k) {\n if(\n data.i.length !== data.j.length ||\n data.j.length !== data.k.length ||\n !hasValidIndices(data.i, numVertices) ||\n !hasValidIndices(data.j, numVertices) ||\n !hasValidIndices(data.k, numVertices)\n ) {\n return;\n }\n cells = zip3(\n toRoundIndex(data.i),\n toRoundIndex(data.j),\n toRoundIndex(data.k)\n );\n } else if(data.alphahull === 0) {\n cells = convexHull(positions);\n } else if(data.alphahull > 0) {\n cells = alphaShape(data.alphahull, positions);\n } else {\n cells = delaunayCells(data.delaunayaxis, positions);\n }\n\n var config = {\n positions: positions,\n cells: cells,\n lightPosition: [data.lightposition.x, data.lightposition.y, data.lightposition.z],\n ambient: data.lighting.ambient,\n diffuse: data.lighting.diffuse,\n specular: data.lighting.specular,\n roughness: data.lighting.roughness,\n fresnel: data.lighting.fresnel,\n vertexNormalsEpsilon: data.lighting.vertexnormalsepsilon,\n faceNormalsEpsilon: data.lighting.facenormalsepsilon,\n opacity: data.opacity,\n contourEnable: data.contour.show,\n contourColor: str2RgbaArray(data.contour.color).slice(0, 3),\n contourWidth: data.contour.width,\n useFacetNormals: data.flatshading\n };\n\n if(data.intensity) {\n var cOpts = extractOpts(data);\n this.color = '#fff';\n var mode = data.intensitymode;\n config[mode + 'Intensity'] = data.intensity;\n config[mode + 'IntensityBounds'] = [cOpts.min, cOpts.max];\n config.colormap = parseColorScale(data);\n } else if(data.vertexcolor) {\n this.color = data.vertexcolor[0];\n config.vertexColors = parseColorArray(data.vertexcolor);\n } else if(data.facecolor) {\n this.color = data.facecolor[0];\n config.cellColors = parseColorArray(data.facecolor);\n } else {\n this.color = data.color;\n config.meshColor = str2RgbaArray(data.color);\n }\n\n // Update mesh\n this.mesh.update(config);\n};\n\nproto.dispose = function() {\n this.scene.glplot.remove(this.mesh);\n this.mesh.dispose();\n};\n\nfunction createMesh3DTrace(scene, data) {\n var gl = scene.glplot.gl;\n var mesh = createMesh({gl: gl});\n var result = new Mesh3DTrace(scene, mesh, data.uid);\n mesh._trace = result;\n result.update(data);\n scene.glplot.add(mesh);\n return result;\n}\n\nmodule.exports = createMesh3DTrace;\n\n},{\"../../../stackgl_modules\":1119,\"../../components/colorscale\":378,\"../../lib/gl_format_color\":499,\"../../lib/str2rgbarray\":528,\"../../plots/gl3d/zip3\":609}],869:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar colorscaleDefaults = _dereq_('../../components/colorscale/defaults');\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n // read in face/vertex properties\n function readComponents(array) {\n var ret = array.map(function(attr) {\n var result = coerce(attr);\n\n if(result && Lib.isArrayOrTypedArray(result)) return result;\n return null;\n });\n\n return ret.every(function(x) {\n return x && x.length === ret[0].length;\n }) && ret;\n }\n\n var coords = readComponents(['x', 'y', 'z']);\n if(!coords) {\n traceOut.visible = false;\n return;\n }\n\n readComponents(['i', 'j', 'k']);\n // three indices should be all provided or not\n if(\n (traceOut.i && (!traceOut.j || !traceOut.k)) ||\n (traceOut.j && (!traceOut.k || !traceOut.i)) ||\n (traceOut.k && (!traceOut.i || !traceOut.j))\n ) {\n traceOut.visible = false;\n return;\n }\n\n var handleCalendarDefaults = Registry.getComponentMethod('calendars', 'handleTraceDefaults');\n handleCalendarDefaults(traceIn, traceOut, ['x', 'y', 'z'], layout);\n\n // Coerce remaining properties\n [\n 'lighting.ambient',\n 'lighting.diffuse',\n 'lighting.specular',\n 'lighting.roughness',\n 'lighting.fresnel',\n 'lighting.vertexnormalsepsilon',\n 'lighting.facenormalsepsilon',\n 'lightposition.x',\n 'lightposition.y',\n 'lightposition.z',\n 'flatshading',\n 'alphahull',\n 'delaunayaxis',\n 'opacity'\n ].forEach(function(x) { coerce(x); });\n\n var showContour = coerce('contour.show');\n if(showContour) {\n coerce('contour.color');\n coerce('contour.width');\n }\n\n if('intensity' in traceIn) {\n coerce('intensity');\n coerce('intensitymode');\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: '', cLetter: 'c'});\n } else {\n traceOut.showscale = false;\n\n if('facecolor' in traceIn) coerce('facecolor');\n else if('vertexcolor' in traceIn) coerce('vertexcolor');\n else coerce('color', defaultColor);\n }\n\n coerce('text');\n coerce('hovertext');\n coerce('hovertemplate');\n coerce('xhoverformat');\n coerce('yhoverformat');\n coerce('zhoverformat');\n\n // disable 1D transforms\n // x/y/z should match lengths, and i/j/k should match as well, but\n // the two sets have different lengths so transforms wouldn't work.\n traceOut._length = null;\n};\n\n},{\"../../components/colorscale/defaults\":376,\"../../lib\":503,\"../../registry\":638,\"./attributes\":866}],870:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n calc: _dereq_('./calc'),\n colorbar: {\n min: 'cmin',\n max: 'cmax'\n },\n plot: _dereq_('./convert'),\n\n moduleType: 'trace',\n name: 'mesh3d',\n basePlotModule: _dereq_('../../plots/gl3d'),\n categories: ['gl3d', 'showLegend'],\n meta: {\n }\n};\n\n},{\"../../plots/gl3d\":598,\"./attributes\":866,\"./calc\":867,\"./convert\":868,\"./defaults\":869}],871:[function(_dereq_,module,exports){\n'use strict';\n\nvar extendFlat = _dereq_('../../lib').extendFlat;\nvar scatterAttrs = _dereq_('../scatter/attributes');\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar dash = _dereq_('../../components/drawing/attributes').dash;\nvar fxAttrs = _dereq_('../../components/fx/attributes');\nvar delta = _dereq_('../../constants/delta.js');\n\nvar INCREASING_COLOR = delta.INCREASING.COLOR;\nvar DECREASING_COLOR = delta.DECREASING.COLOR;\n\nvar lineAttrs = scatterAttrs.line;\n\nfunction directionAttrs(lineColorDefault) {\n return {\n line: {\n color: extendFlat({}, lineAttrs.color, {dflt: lineColorDefault}),\n width: lineAttrs.width,\n dash: dash,\n editType: 'style'\n },\n editType: 'style'\n };\n}\n\nmodule.exports = {\n\n xperiod: scatterAttrs.xperiod,\n xperiod0: scatterAttrs.xperiod0,\n xperiodalignment: scatterAttrs.xperiodalignment,\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n\n x: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n\n open: {\n valType: 'data_array',\n editType: 'calc',\n },\n\n high: {\n valType: 'data_array',\n editType: 'calc',\n },\n\n low: {\n valType: 'data_array',\n editType: 'calc',\n },\n\n close: {\n valType: 'data_array',\n editType: 'calc',\n },\n\n line: {\n width: extendFlat({}, lineAttrs.width, {\n }),\n dash: extendFlat({}, dash, {\n }),\n editType: 'style'\n },\n\n increasing: directionAttrs(INCREASING_COLOR),\n\n decreasing: directionAttrs(DECREASING_COLOR),\n\n text: {\n valType: 'string',\n dflt: '',\n arrayOk: true,\n editType: 'calc',\n },\n hovertext: {\n valType: 'string',\n dflt: '',\n arrayOk: true,\n editType: 'calc',\n },\n\n tickwidth: {\n valType: 'number',\n min: 0,\n max: 0.5,\n dflt: 0.3,\n editType: 'calc',\n },\n\n hoverlabel: extendFlat({}, fxAttrs.hoverlabel, {\n split: {\n valType: 'boolean',\n dflt: false,\n editType: 'style',\n }\n }),\n};\n\n},{\"../../components/drawing/attributes\":387,\"../../components/fx/attributes\":397,\"../../constants/delta.js\":473,\"../../lib\":503,\"../../plots/cartesian/axis_format_attributes\":557,\"../scatter/attributes\":925}],872:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar _ = Lib._;\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar alignPeriod = _dereq_('../../plots/cartesian/align_period');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nfunction calc(gd, trace) {\n var xa = Axes.getFromId(gd, trace.xaxis);\n var ya = Axes.getFromId(gd, trace.yaxis);\n\n var tickLen = convertTickWidth(gd, xa, trace);\n var minDiff = trace._minDiff;\n trace._minDiff = null;\n var origX = trace._origX;\n trace._origX = null;\n var x = trace._xcalc;\n trace._xcalc = null;\n\n var cd = calcCommon(gd, trace, origX, x, ya, ptFunc);\n\n trace._extremes[xa._id] = Axes.findExtremes(xa, x, {vpad: minDiff / 2});\n if(cd.length) {\n Lib.extendFlat(cd[0].t, {\n wHover: minDiff / 2,\n tickLen: tickLen\n });\n return cd;\n } else {\n return [{t: {empty: true}}];\n }\n}\n\nfunction ptFunc(o, h, l, c) {\n return {\n o: o,\n h: h,\n l: l,\n c: c\n };\n}\n\n\n// shared between OHLC and candlestick\n// ptFunc makes a calcdata point specific to each trace type, from oi, hi, li, ci\nfunction calcCommon(gd, trace, origX, x, ya, ptFunc) {\n var o = ya.makeCalcdata(trace, 'open');\n var h = ya.makeCalcdata(trace, 'high');\n var l = ya.makeCalcdata(trace, 'low');\n var c = ya.makeCalcdata(trace, 'close');\n\n var hasTextArray = Array.isArray(trace.text);\n var hasHovertextArray = Array.isArray(trace.hovertext);\n\n // we're optimists - before we have any changing data, assume increasing\n var increasing = true;\n var cPrev = null;\n\n var hasPeriod = !!trace.xperiodalignment;\n\n var cd = [];\n for(var i = 0; i < x.length; i++) {\n var xi = x[i];\n var oi = o[i];\n var hi = h[i];\n var li = l[i];\n var ci = c[i];\n\n if(xi !== BADNUM && oi !== BADNUM && hi !== BADNUM && li !== BADNUM && ci !== BADNUM) {\n if(ci === oi) {\n // if open == close, look for a change from the previous close\n if(cPrev !== null && ci !== cPrev) increasing = ci > cPrev;\n // else (c === cPrev or cPrev is null) no change\n } else increasing = ci > oi;\n\n cPrev = ci;\n\n var pt = ptFunc(oi, hi, li, ci);\n\n pt.pos = xi;\n pt.yc = (oi + ci) / 2;\n pt.i = i;\n pt.dir = increasing ? 'increasing' : 'decreasing';\n\n // For categoryorder, store low and high\n pt.x = pt.pos;\n pt.y = [li, hi];\n\n if(hasPeriod) pt.orig_p = origX[i]; // used by hover\n if(hasTextArray) pt.tx = trace.text[i];\n if(hasHovertextArray) pt.htx = trace.hovertext[i];\n\n cd.push(pt);\n } else {\n cd.push({pos: xi, empty: true});\n }\n }\n\n trace._extremes[ya._id] = Axes.findExtremes(ya, Lib.concat(l, h), {padded: true});\n\n if(cd.length) {\n cd[0].t = {\n labels: {\n open: _(gd, 'open:') + ' ',\n high: _(gd, 'high:') + ' ',\n low: _(gd, 'low:') + ' ',\n close: _(gd, 'close:') + ' '\n }\n };\n }\n\n return cd;\n}\n\n/*\n * find min x-coordinates difference of all traces\n * attached to this x-axis and stash the result in _minDiff\n * in all traces; when a trace uses this in its\n * calc step it deletes _minDiff, so that next calc this is\n * done again in case the data changed.\n * also since we need it here, stash _xcalc (and _origX) on the trace\n */\nfunction convertTickWidth(gd, xa, trace) {\n var minDiff = trace._minDiff;\n\n if(!minDiff) {\n var fullData = gd._fullData;\n var ohlcTracesOnThisXaxis = [];\n\n minDiff = Infinity;\n\n var i;\n\n for(i = 0; i < fullData.length; i++) {\n var tracei = fullData[i];\n\n if(tracei.type === 'ohlc' &&\n tracei.visible === true &&\n tracei.xaxis === xa._id\n ) {\n ohlcTracesOnThisXaxis.push(tracei);\n\n var origX = xa.makeCalcdata(tracei, 'x');\n tracei._origX = origX;\n\n var xcalc = alignPeriod(trace, xa, 'x', origX).vals;\n tracei._xcalc = xcalc;\n\n var _minDiff = Lib.distinctVals(xcalc).minDiff;\n if(_minDiff && isFinite(_minDiff)) {\n minDiff = Math.min(minDiff, _minDiff);\n }\n }\n }\n\n // if minDiff is still Infinity here, set it to 1\n if(minDiff === Infinity) minDiff = 1;\n\n for(i = 0; i < ohlcTracesOnThisXaxis.length; i++) {\n ohlcTracesOnThisXaxis[i]._minDiff = minDiff;\n }\n }\n\n return minDiff * trace.tickwidth;\n}\n\nmodule.exports = {\n calc: calc,\n calcCommon: calcCommon\n};\n\n},{\"../../constants/numerical\":479,\"../../lib\":503,\"../../plots/cartesian/align_period\":551,\"../../plots/cartesian/axes\":554}],873:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar handleOHLC = _dereq_('./ohlc_defaults');\nvar handlePeriodDefaults = _dereq_('../scatter/period_defaults');\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var len = handleOHLC(traceIn, traceOut, coerce, layout);\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n handlePeriodDefaults(traceIn, traceOut, layout, coerce, {x: true});\n coerce('xhoverformat');\n coerce('yhoverformat');\n\n coerce('line.width');\n coerce('line.dash');\n\n handleDirection(traceIn, traceOut, coerce, 'increasing');\n handleDirection(traceIn, traceOut, coerce, 'decreasing');\n\n coerce('text');\n coerce('hovertext');\n coerce('tickwidth');\n\n layout._requestRangeslider[traceOut.xaxis] = true;\n};\n\nfunction handleDirection(traceIn, traceOut, coerce, direction) {\n coerce(direction + '.line.color');\n coerce(direction + '.line.width', traceOut.line.width);\n coerce(direction + '.line.dash', traceOut.line.dash);\n}\n\n},{\"../../lib\":503,\"../scatter/period_defaults\":945,\"./attributes\":871,\"./ohlc_defaults\":876}],874:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar Lib = _dereq_('../../lib');\nvar Fx = _dereq_('../../components/fx');\nvar Color = _dereq_('../../components/color');\nvar fillText = _dereq_('../../lib').fillText;\nvar delta = _dereq_('../../constants/delta.js');\n\nvar DIRSYMBOL = {\n increasing: delta.INCREASING.SYMBOL,\n decreasing: delta.DECREASING.SYMBOL\n};\n\nfunction hoverPoints(pointData, xval, yval, hovermode) {\n var cd = pointData.cd;\n var trace = cd[0].trace;\n\n if(trace.hoverlabel.split) {\n return hoverSplit(pointData, xval, yval, hovermode);\n }\n\n return hoverOnPoints(pointData, xval, yval, hovermode);\n}\n\nfunction _getClosestPoint(pointData, xval, yval, hovermode) {\n var cd = pointData.cd;\n var xa = pointData.xa;\n var trace = cd[0].trace;\n var t = cd[0].t;\n\n var type = trace.type;\n var minAttr = type === 'ohlc' ? 'l' : 'min';\n var maxAttr = type === 'ohlc' ? 'h' : 'max';\n\n var hoverPseudoDistance, spikePseudoDistance;\n\n // potentially shift xval for grouped candlesticks\n var centerShift = t.bPos || 0;\n var shiftPos = function(di) { return di.pos + centerShift - xval; };\n\n // ohlc and candlestick call displayHalfWidth different things...\n var displayHalfWidth = t.bdPos || t.tickLen;\n var hoverHalfWidth = t.wHover;\n\n // if two figures are overlaying, let the narrowest one win\n var pseudoDistance = Math.min(1, displayHalfWidth / Math.abs(xa.r2c(xa.range[1]) - xa.r2c(xa.range[0])));\n hoverPseudoDistance = pointData.maxHoverDistance - pseudoDistance;\n spikePseudoDistance = pointData.maxSpikeDistance - pseudoDistance;\n\n function dx(di) {\n var pos = shiftPos(di);\n return Fx.inbox(pos - hoverHalfWidth, pos + hoverHalfWidth, hoverPseudoDistance);\n }\n\n function dy(di) {\n var min = di[minAttr];\n var max = di[maxAttr];\n return min === max || Fx.inbox(min - yval, max - yval, hoverPseudoDistance);\n }\n\n function dxy(di) { return (dx(di) + dy(di)) / 2; }\n\n var distfn = Fx.getDistanceFunction(hovermode, dx, dy, dxy);\n Fx.getClosest(cd, distfn, pointData);\n\n if(pointData.index === false) return null;\n\n var di = cd[pointData.index];\n\n if(di.empty) return null;\n\n var dir = di.dir;\n var container = trace[dir];\n var lc = container.line.color;\n\n if(Color.opacity(lc) && container.line.width) pointData.color = lc;\n else pointData.color = container.fillcolor;\n\n pointData.x0 = xa.c2p(di.pos + centerShift - displayHalfWidth, true);\n pointData.x1 = xa.c2p(di.pos + centerShift + displayHalfWidth, true);\n\n pointData.xLabelVal = di.orig_p !== undefined ? di.orig_p : di.pos;\n\n pointData.spikeDistance = dxy(di) * spikePseudoDistance / hoverPseudoDistance;\n pointData.xSpike = xa.c2p(di.pos, true);\n\n return pointData;\n}\n\nfunction hoverSplit(pointData, xval, yval, hovermode) {\n var cd = pointData.cd;\n var ya = pointData.ya;\n var trace = cd[0].trace;\n var t = cd[0].t;\n var closeBoxData = [];\n\n var closestPoint = _getClosestPoint(pointData, xval, yval, hovermode);\n // skip the rest (for this trace) if we didn't find a close point\n if(!closestPoint) return [];\n\n var cdIndex = closestPoint.index;\n var di = cd[cdIndex];\n var hoverinfo = di.hi || trace.hoverinfo;\n var hoverParts = hoverinfo.split('+');\n var isAll = hoverinfo === 'all';\n var hasY = isAll || hoverParts.indexOf('y') !== -1;\n\n // similar to hoverOnPoints, we return nothing\n // if all or y is not present.\n if(!hasY) return [];\n\n var attrs = ['high', 'open', 'close', 'low'];\n\n // several attributes can have the same y-coordinate. We will\n // bunch them together in a single text block. For this, we keep\n // a dictionary mapping y-coord -> point data.\n var usedVals = {};\n\n for(var i = 0; i < attrs.length; i++) {\n var attr = attrs[i];\n\n var val = trace[attr][closestPoint.index];\n var valPx = ya.c2p(val, true);\n var pointData2;\n if(val in usedVals) {\n pointData2 = usedVals[val];\n pointData2.yLabel += '
' + t.labels[attr] + Axes.hoverLabelText(ya, val, trace.yhoverformat);\n } else {\n // copy out to a new object for each new y-value to label\n pointData2 = Lib.extendFlat({}, closestPoint);\n\n pointData2.y0 = pointData2.y1 = valPx;\n pointData2.yLabelVal = val;\n pointData2.yLabel = t.labels[attr] + Axes.hoverLabelText(ya, val, trace.yhoverformat);\n\n pointData2.name = '';\n\n closeBoxData.push(pointData2);\n usedVals[val] = pointData2;\n }\n }\n\n return closeBoxData;\n}\n\nfunction hoverOnPoints(pointData, xval, yval, hovermode) {\n var cd = pointData.cd;\n var ya = pointData.ya;\n var trace = cd[0].trace;\n var t = cd[0].t;\n\n var closestPoint = _getClosestPoint(pointData, xval, yval, hovermode);\n // skip the rest (for this trace) if we didn't find a close point\n if(!closestPoint) return [];\n\n // we don't make a calcdata point if we're missing any piece (x/o/h/l/c)\n // so we need to fix the index here to point to the data arrays\n var cdIndex = closestPoint.index;\n var di = cd[cdIndex];\n var i = closestPoint.index = di.i;\n var dir = di.dir;\n\n function getLabelLine(attr) {\n return t.labels[attr] + Axes.hoverLabelText(ya, trace[attr][i], trace.yhoverformat);\n }\n\n var hoverinfo = di.hi || trace.hoverinfo;\n var hoverParts = hoverinfo.split('+');\n var isAll = hoverinfo === 'all';\n var hasY = isAll || hoverParts.indexOf('y') !== -1;\n var hasText = isAll || hoverParts.indexOf('text') !== -1;\n\n var textParts = hasY ? [\n getLabelLine('open'),\n getLabelLine('high'),\n getLabelLine('low'),\n getLabelLine('close') + ' ' + DIRSYMBOL[dir]\n ] : [];\n if(hasText) fillText(di, trace, textParts);\n\n // don't make .yLabelVal or .text, since we're managing hoverinfo\n // put it all in .extraText\n closestPoint.extraText = textParts.join('
');\n\n // this puts the label *and the spike* at the midpoint of the box, ie\n // halfway between open and close, not between high and low.\n closestPoint.y0 = closestPoint.y1 = ya.c2p(di.yc, true);\n\n return [closestPoint];\n}\n\nmodule.exports = {\n hoverPoints: hoverPoints,\n hoverSplit: hoverSplit,\n hoverOnPoints: hoverOnPoints\n};\n\n},{\"../../components/color\":366,\"../../components/fx\":406,\"../../constants/delta.js\":473,\"../../lib\":503,\"../../plots/cartesian/axes\":554}],875:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'trace',\n name: 'ohlc',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: ['cartesian', 'svg', 'showLegend'],\n meta: {\n },\n\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n calc: _dereq_('./calc').calc,\n plot: _dereq_('./plot'),\n style: _dereq_('./style'),\n hoverPoints: _dereq_('./hover').hoverPoints,\n selectPoints: _dereq_('./select')\n};\n\n},{\"../../plots/cartesian\":568,\"./attributes\":871,\"./calc\":872,\"./defaults\":873,\"./hover\":874,\"./plot\":877,\"./select\":878,\"./style\":879}],876:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\n\nmodule.exports = function handleOHLC(traceIn, traceOut, coerce, layout) {\n var x = coerce('x');\n var open = coerce('open');\n var high = coerce('high');\n var low = coerce('low');\n var close = coerce('close');\n\n coerce('hoverlabel.split');\n\n var handleCalendarDefaults = Registry.getComponentMethod('calendars', 'handleTraceDefaults');\n handleCalendarDefaults(traceIn, traceOut, ['x'], layout);\n\n if(!(open && high && low && close)) return;\n\n var len = Math.min(open.length, high.length, low.length, close.length);\n if(x) len = Math.min(len, Lib.minRowLength(x));\n traceOut._length = len;\n\n return len;\n};\n\n},{\"../../lib\":503,\"../../registry\":638}],877:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Lib = _dereq_('../../lib');\n\nmodule.exports = function plot(gd, plotinfo, cdOHLC, ohlcLayer) {\n var ya = plotinfo.yaxis;\n var xa = plotinfo.xaxis;\n var posHasRangeBreaks = !!xa.rangebreaks;\n\n Lib.makeTraceGroups(ohlcLayer, cdOHLC, 'trace ohlc').each(function(cd) {\n var plotGroup = d3.select(this);\n var cd0 = cd[0];\n var t = cd0.t;\n var trace = cd0.trace;\n\n if(trace.visible !== true || t.empty) {\n plotGroup.remove();\n return;\n }\n\n var tickLen = t.tickLen;\n\n var paths = plotGroup.selectAll('path').data(Lib.identity);\n\n paths.enter().append('path');\n\n paths.exit().remove();\n\n paths.attr('d', function(d) {\n if(d.empty) return 'M0,0Z';\n\n var xo = xa.c2p(d.pos - tickLen, true);\n var xc = xa.c2p(d.pos + tickLen, true);\n var x = posHasRangeBreaks ? (xo + xc) / 2 : xa.c2p(d.pos, true);\n\n var yo = ya.c2p(d.o, true);\n var yh = ya.c2p(d.h, true);\n var yl = ya.c2p(d.l, true);\n var yc = ya.c2p(d.c, true);\n\n return 'M' + xo + ',' + yo + 'H' + x +\n 'M' + x + ',' + yh + 'V' + yl +\n 'M' + xc + ',' + yc + 'H' + x;\n });\n });\n};\n\n},{\"../../lib\":503,\"@plotly/d3\":58}],878:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function selectPoints(searchInfo, selectionTester) {\n var cd = searchInfo.cd;\n var xa = searchInfo.xaxis;\n var ya = searchInfo.yaxis;\n var selection = [];\n var i;\n // for (potentially grouped) candlesticks\n var posOffset = cd[0].t.bPos || 0;\n\n if(selectionTester === false) {\n // clear selection\n for(i = 0; i < cd.length; i++) {\n cd[i].selected = 0;\n }\n } else {\n for(i = 0; i < cd.length; i++) {\n var di = cd[i];\n\n if(selectionTester.contains([xa.c2p(di.pos + posOffset), ya.c2p(di.yc)], null, di.i, searchInfo)) {\n selection.push({\n pointNumber: di.i,\n x: xa.c2d(di.pos),\n y: ya.c2d(di.yc)\n });\n di.selected = 1;\n } else {\n di.selected = 0;\n }\n }\n }\n\n return selection;\n};\n\n},{}],879:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Drawing = _dereq_('../../components/drawing');\nvar Color = _dereq_('../../components/color');\n\nmodule.exports = function style(gd, cd, sel) {\n var s = sel ? sel : d3.select(gd).selectAll('g.ohlclayer').selectAll('g.trace');\n\n s.style('opacity', function(d) {\n return d[0].trace.opacity;\n });\n\n s.each(function(d) {\n var trace = d[0].trace;\n\n d3.select(this).selectAll('path').each(function(di) {\n if(di.empty) return;\n\n var dirLine = trace[di.dir].line;\n d3.select(this)\n .style('fill', 'none')\n .call(Color.stroke, dirLine.color)\n .call(Drawing.dashLine, dirLine.dash, dirLine.width)\n // TODO: custom selection style for OHLC\n .style('opacity', trace.selectedpoints && !di.selected ? 0.3 : 1);\n });\n });\n};\n\n},{\"../../components/color\":366,\"../../components/drawing\":388,\"@plotly/d3\":58}],880:[function(_dereq_,module,exports){\n'use strict';\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar domainAttrs = _dereq_('../../plots/domain').attributes;\n\nvar line = extendFlat(\n {editType: 'calc'},\n colorScaleAttrs('line', {editTypeOverride: 'calc'}),\n {\n shape: {\n valType: 'enumerated',\n values: ['linear', 'hspline'],\n dflt: 'linear',\n editType: 'plot',\n },\n\n hovertemplate: hovertemplateAttrs({\n editType: 'plot',\n arrayOk: false\n }, {\n keys: ['count', 'probability'],\n })\n }\n);\n\nmodule.exports = {\n domain: domainAttrs({name: 'parcats', trace: true, editType: 'calc'}),\n\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {\n flags: ['count', 'probability'],\n editType: 'plot',\n arrayOk: false\n }),\n hoveron: {\n valType: 'enumerated',\n values: ['category', 'color', 'dimension'],\n dflt: 'category',\n editType: 'plot',\n },\n hovertemplate: hovertemplateAttrs({\n editType: 'plot',\n arrayOk: false\n }, {\n keys: [\n 'count', 'probability', 'category',\n 'categorycount', 'colorcount', 'bandcolorcount'\n ],\n }),\n\n arrangement: {\n valType: 'enumerated',\n values: ['perpendicular', 'freeform', 'fixed'],\n dflt: 'perpendicular',\n editType: 'plot',\n },\n bundlecolors: {\n valType: 'boolean',\n dflt: true,\n editType: 'plot',\n },\n sortpaths: {\n valType: 'enumerated',\n values: ['forward', 'backward'],\n dflt: 'forward',\n editType: 'plot',\n },\n labelfont: fontAttrs({\n editType: 'calc',\n }),\n\n tickfont: fontAttrs({\n editType: 'calc',\n }),\n\n dimensions: {\n _isLinkedToArray: 'dimension',\n label: {\n valType: 'string',\n editType: 'calc',\n },\n categoryorder: {\n valType: 'enumerated',\n values: [\n 'trace', 'category ascending', 'category descending', 'array'\n ],\n dflt: 'trace',\n editType: 'calc',\n },\n categoryarray: {\n valType: 'data_array',\n editType: 'calc',\n },\n ticktext: {\n valType: 'data_array',\n editType: 'calc',\n },\n values: {\n valType: 'data_array',\n dflt: [],\n editType: 'calc',\n },\n displayindex: {\n valType: 'integer',\n editType: 'calc',\n },\n editType: 'calc',\n visible: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n }\n },\n\n line: line,\n counts: {\n valType: 'number',\n min: 0,\n dflt: 1,\n arrayOk: true,\n editType: 'calc',\n },\n\n // Hide unsupported top-level properties from plot-schema\n customdata: undefined,\n hoverlabel: undefined,\n ids: undefined,\n legendgroup: undefined,\n legendrank: undefined,\n opacity: undefined,\n selectedpoints: undefined,\n showlegend: undefined\n};\n\n},{\"../../components/colorscale/attributes\":373,\"../../lib/extend\":493,\"../../plots/attributes\":550,\"../../plots/domain\":584,\"../../plots/font_attributes\":585,\"../../plots/template_attributes\":633}],881:[function(_dereq_,module,exports){\n'use strict';\n\nvar getModuleCalcData = _dereq_('../../plots/get_data').getModuleCalcData;\nvar parcatsPlot = _dereq_('./plot');\n\nvar PARCATS = 'parcats';\nexports.name = PARCATS;\n\nexports.plot = function(gd, traces, transitionOpts, makeOnCompleteCallback) {\n var cdModuleAndOthers = getModuleCalcData(gd.calcdata, PARCATS);\n\n if(cdModuleAndOthers.length) {\n var calcData = cdModuleAndOthers[0];\n parcatsPlot(gd, calcData, transitionOpts, makeOnCompleteCallback);\n }\n};\n\nexports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n var hadTable = (oldFullLayout._has && oldFullLayout._has('parcats'));\n var hasTable = (newFullLayout._has && newFullLayout._has('parcats'));\n\n if(hadTable && !hasTable) {\n oldFullLayout._paperdiv.selectAll('.parcats').remove();\n }\n};\n\n},{\"../../plots/get_data\":593,\"./plot\":886}],882:[function(_dereq_,module,exports){\n'use strict';\n\n// Requirements\n// ============\nvar wrap = _dereq_('../../lib/gup').wrap;\nvar hasColorscale = _dereq_('../../components/colorscale/helpers').hasColorscale;\nvar colorscaleCalc = _dereq_('../../components/colorscale/calc');\nvar filterUnique = _dereq_('../../lib/filter_unique.js');\nvar Drawing = _dereq_('../../components/drawing');\nvar Lib = _dereq_('../../lib');\nvar isNumeric = _dereq_('fast-isnumeric');\n\n/**\n * Create a wrapped ParcatsModel object from trace\n *\n * Note: trace defaults have already been applied\n * @param {Object} gd\n * @param {Object} trace\n * @return {Array.}\n */\nmodule.exports = function calc(gd, trace) {\n var visibleDims = Lib.filterVisible(trace.dimensions);\n\n if(visibleDims.length === 0) return [];\n\n var uniqueInfoDims = visibleDims.map(function(dim) {\n var categoryValues;\n if(dim.categoryorder === 'trace') {\n // Use order of first occurrence in trace\n categoryValues = null;\n } else if(dim.categoryorder === 'array') {\n // Use categories specified in `categoryarray` first,\n // then add extra to the end in trace order\n categoryValues = dim.categoryarray;\n } else {\n // Get all categories up front\n categoryValues = filterUnique(dim.values);\n\n // order them\n var allNumeric = true;\n for(var i = 0; i < categoryValues.length; i++) {\n if(!isNumeric(categoryValues[i])) {\n allNumeric = false;\n break;\n }\n }\n categoryValues.sort(allNumeric ? Lib.sorterAsc : undefined);\n\n if(dim.categoryorder === 'category descending') {\n categoryValues = categoryValues.reverse();\n }\n }\n return getUniqueInfo(dim.values, categoryValues);\n });\n\n var counts,\n count,\n totalCount;\n if(Lib.isArrayOrTypedArray(trace.counts)) {\n counts = trace.counts;\n } else {\n counts = [trace.counts];\n }\n\n validateDimensionDisplayInds(visibleDims);\n\n visibleDims.forEach(function(dim, dimInd) {\n validateCategoryProperties(dim, uniqueInfoDims[dimInd]);\n });\n\n // Handle path colors\n // ------------------\n var line = trace.line;\n var markerColorscale;\n\n // Process colorscale\n if(line) {\n if(hasColorscale(trace, 'line')) {\n colorscaleCalc(gd, trace, {\n vals: trace.line.color,\n containerStr: 'line',\n cLetter: 'c'\n });\n }\n markerColorscale = Drawing.tryColorscale(line);\n } else {\n markerColorscale = Lib.identity;\n }\n\n // Build color generation function\n function getMarkerColorInfo(index) {\n var value, rawColor;\n if(Lib.isArrayOrTypedArray(line.color)) {\n value = line.color[index % line.color.length];\n rawColor = value;\n } else {\n value = line.color;\n }\n\n return {color: markerColorscale(value), rawColor: rawColor};\n }\n\n // Number of values and counts\n // ---------------------------\n var numValues = visibleDims[0].values.length;\n\n // Build path info\n // ---------------\n // Mapping from category inds to PathModel objects\n var pathModels = {};\n\n // Category inds array for each dimension\n var categoryIndsDims = uniqueInfoDims.map(function(di) {return di.inds;});\n\n // Initialize total count\n totalCount = 0;\n var valueInd;\n var d;\n\n for(valueInd = 0; valueInd < numValues; valueInd++) {\n // Category inds for this input value across dimensions\n var categoryIndsPath = [];\n for(d = 0; d < categoryIndsDims.length; d++) {\n categoryIndsPath.push(categoryIndsDims[d][valueInd]);\n }\n\n // Count\n count = counts[valueInd % counts.length];\n\n // Update total count\n totalCount += count;\n\n // Path color\n var pathColorInfo = getMarkerColorInfo(valueInd);\n\n // path key\n var pathKey = categoryIndsPath + '-' + pathColorInfo.rawColor;\n\n // Create / Update PathModel\n if(pathModels[pathKey] === undefined) {\n pathModels[pathKey] = createPathModel(categoryIndsPath,\n pathColorInfo.color,\n pathColorInfo.rawColor);\n }\n updatePathModel(pathModels[pathKey], valueInd, count);\n }\n\n var dimensionModels = visibleDims.map(function(di, i) {\n return createDimensionModel(i, di._index, di._displayindex, di.label, totalCount);\n });\n\n\n for(valueInd = 0; valueInd < numValues; valueInd++) {\n count = counts[valueInd % counts.length];\n\n for(d = 0; d < dimensionModels.length; d++) {\n var containerInd = dimensionModels[d].containerInd;\n var catInd = uniqueInfoDims[d].inds[valueInd];\n var cats = dimensionModels[d].categories;\n\n if(cats[catInd] === undefined) {\n var catValue = trace.dimensions[containerInd]._categoryarray[catInd];\n var catLabel = trace.dimensions[containerInd]._ticktext[catInd];\n cats[catInd] = createCategoryModel(d, catInd, catValue, catLabel);\n }\n\n updateCategoryModel(cats[catInd], valueInd, count);\n }\n }\n\n // Compute unique\n return wrap(createParcatsModel(dimensionModels, pathModels, totalCount));\n};\n\n// Models\n// ======\n\n// Parcats Model\n// -------------\n/**\n * @typedef {Object} ParcatsModel\n * Object containing calculated information about a parcats trace\n *\n * @property {Array.} dimensions\n * Array of dimension models\n * @property {Object.} paths\n * Dictionary from category inds string (e.g. \"1,2,1,1\") to path model\n * @property {Number} maxCats\n * The maximum number of categories of any dimension in the diagram\n * @property {Number} count\n * Total number of input values\n * @property {Object} trace\n */\n\n/**\n * Create and new ParcatsModel object\n * @param {Array.} dimensions\n * @param {Object.} paths\n * @param {Number} count\n * @return {ParcatsModel}\n */\nfunction createParcatsModel(dimensions, paths, count) {\n var maxCats = dimensions\n .map(function(d) {return d.categories.length;})\n .reduce(function(v1, v2) {return Math.max(v1, v2);});\n return {dimensions: dimensions, paths: paths, trace: undefined, maxCats: maxCats, count: count};\n}\n\n// Dimension Model\n// ---------------\n/**\n * @typedef {Object} DimensionModel\n * Object containing calculated information about a single dimension\n *\n * @property {Number} dimensionInd\n * The index of this dimension among the *visible* dimensions\n * @property {Number} containerInd\n * The index of this dimension in the original dimensions container,\n * irrespective of dimension visibility\n * @property {Number} displayInd\n * The display index of this dimension (where 0 is the left most dimension)\n * @property {String} dimensionLabel\n * The label of this dimension\n * @property {Number} count\n * Total number of input values\n * @property {Array.} categories\n * @property {Number|null} dragX\n * The x position of dimension that is currently being dragged. null if not being dragged\n */\n\n/**\n * Create and new DimensionModel object with an empty categories array\n * @param {Number} dimensionInd\n * @param {Number} containerInd\n * @param {Number} displayInd\n * @param {String} dimensionLabel\n * @param {Number} count\n * Total number of input values\n * @return {DimensionModel}\n */\nfunction createDimensionModel(dimensionInd, containerInd, displayInd, dimensionLabel, count) {\n return {\n dimensionInd: dimensionInd,\n containerInd: containerInd,\n displayInd: displayInd,\n dimensionLabel: dimensionLabel,\n count: count,\n categories: [],\n dragX: null\n };\n}\n\n// Category Model\n// --------------\n/**\n * @typedef {Object} CategoryModel\n * Object containing calculated information about a single category.\n *\n * @property {Number} dimensionInd\n * The index of this categories dimension\n * @property {Number} categoryInd\n * The index of this category\n * @property {Number} displayInd\n * The display index of this category (where 0 is the topmost category)\n * @property {String} categoryLabel\n * The name of this category\n * @property categoryValue: Raw value of the category\n * @property {Array} valueInds\n * Array of indices (into the original value array) of all samples in this category\n * @property {Number} count\n * The number of elements from the original array in this path\n * @property {Number|null} dragY\n * The y position of category that is currently being dragged. null if not being dragged\n */\n\n/**\n * Create and return a new CategoryModel object\n * @param {Number} dimensionInd\n * @param {Number} categoryInd\n * The display index of this category (where 0 is the topmost category)\n * @param {String} categoryValue\n * @param {String} categoryLabel\n * @return {CategoryModel}\n */\nfunction createCategoryModel(dimensionInd, categoryInd, categoryValue, categoryLabel) {\n return {\n dimensionInd: dimensionInd,\n categoryInd: categoryInd,\n categoryValue: categoryValue,\n displayInd: categoryInd,\n categoryLabel: categoryLabel,\n valueInds: [],\n count: 0,\n dragY: null\n };\n}\n\n/**\n * Update a CategoryModel object with a new value index\n * Note: The calling parameter is modified in place.\n *\n * @param {CategoryModel} categoryModel\n * @param {Number} valueInd\n * @param {Number} count\n */\nfunction updateCategoryModel(categoryModel, valueInd, count) {\n categoryModel.valueInds.push(valueInd);\n categoryModel.count += count;\n}\n\n\n// Path Model\n// ----------\n/**\n * @typedef {Object} PathModel\n * Object containing calculated information about the samples in a path.\n *\n * @property {Array} categoryInds\n * Array of category indices for each dimension (length `numDimensions`)\n * @param {String} pathColor\n * Color of this path. (Note: Any colorscaling has already taken place)\n * @property {Array} valueInds\n * Array of indices (into the original value array) of all samples in this path\n * @property {Number} count\n * The number of elements from the original array in this path\n * @property {String} color\n * The path's color (ass CSS color string)\n * @property rawColor\n * The raw color value specified by the user. May be a CSS color string or a Number\n */\n\n/**\n * Create and return a new PathModel object\n * @param {Array} categoryInds\n * @param color\n * @param rawColor\n * @return {PathModel}\n */\nfunction createPathModel(categoryInds, color, rawColor) {\n return {\n categoryInds: categoryInds,\n color: color,\n rawColor: rawColor,\n valueInds: [],\n count: 0\n };\n}\n\n/**\n * Update a PathModel object with a new value index\n * Note: The calling parameter is modified in place.\n *\n * @param {PathModel} pathModel\n * @param {Number} valueInd\n * @param {Number} count\n */\nfunction updatePathModel(pathModel, valueInd, count) {\n pathModel.valueInds.push(valueInd);\n pathModel.count += count;\n}\n\n// Unique calculations\n// ===================\n/**\n * @typedef {Object} UniqueInfo\n * Object containing information about the unique values of an input array\n *\n * @property {Array} uniqueValues\n * The unique values in the input array\n * @property {Array} uniqueCounts\n * The number of times each entry in uniqueValues occurs in input array.\n * This has the same length as `uniqueValues`\n * @property {Array} inds\n * Indices into uniqueValues that would reproduce original input array\n */\n\n/**\n * Compute unique value information for an array\n *\n * IMPORTANT: Note that values are considered unique\n * if their string representations are unique.\n *\n * @param {Array} values\n * @param {Array|undefined} uniqueValues\n * Array of expected unique values. The uniqueValues property of the resulting UniqueInfo object will begin with\n * these entries. Entries are included even if there are zero occurrences in the values array. Entries found in\n * the values array that are not present in uniqueValues will be included at the end of the array in the\n * UniqueInfo object.\n * @return {UniqueInfo}\n */\nfunction getUniqueInfo(values, uniqueValues) {\n // Initialize uniqueValues if not specified\n if(uniqueValues === undefined || uniqueValues === null) {\n uniqueValues = [];\n } else {\n // Shallow copy so append below doesn't alter input array\n uniqueValues = uniqueValues.map(function(e) {return e;});\n }\n\n // Initialize Variables\n var uniqueValueCounts = {};\n var uniqueValueInds = {};\n var inds = [];\n\n // Initialize uniqueValueCounts and\n uniqueValues.forEach(function(uniqueVal, valInd) {\n uniqueValueCounts[uniqueVal] = 0;\n uniqueValueInds[uniqueVal] = valInd;\n });\n\n // Compute the necessary unique info in a single pass\n for(var i = 0; i < values.length; i++) {\n var item = values[i];\n var itemInd;\n\n if(uniqueValueCounts[item] === undefined) {\n // This item has a previously unseen value\n uniqueValueCounts[item] = 1;\n itemInd = uniqueValues.push(item) - 1;\n uniqueValueInds[item] = itemInd;\n } else {\n // Increment count for this item\n uniqueValueCounts[item]++;\n itemInd = uniqueValueInds[item];\n }\n inds.push(itemInd);\n }\n\n // Build UniqueInfo\n var uniqueCounts = uniqueValues.map(function(v) { return uniqueValueCounts[v]; });\n\n return {\n uniqueValues: uniqueValues,\n uniqueCounts: uniqueCounts,\n inds: inds\n };\n}\n\n\n/**\n * Validate the requested display order for the dimensions.\n * If the display order is a permutation of 0 through dimensions.length - 1, link to _displayindex\n * Otherwise, replace the display order with the dimension order\n * @param {Object} trace\n */\nfunction validateDimensionDisplayInds(visibleDims) {\n var displayInds = visibleDims.map(function(d) { return d.displayindex; });\n var i;\n\n if(isRangePermutation(displayInds)) {\n for(i = 0; i < visibleDims.length; i++) {\n visibleDims[i]._displayindex = visibleDims[i].displayindex;\n }\n } else {\n for(i = 0; i < visibleDims.length; i++) {\n visibleDims[i]._displayindex = i;\n }\n }\n}\n\n\n/**\n * Update category properties based on the unique values found for this dimension\n * @param {Object} dim\n * @param {UniqueInfo} uniqueInfoDim\n */\nfunction validateCategoryProperties(dim, uniqueInfoDim) {\n // Update categoryarray\n dim._categoryarray = uniqueInfoDim.uniqueValues;\n\n // Handle ticktext\n if(dim.ticktext === null || dim.ticktext === undefined) {\n dim._ticktext = [];\n } else {\n // Shallow copy to avoid modifying input array\n dim._ticktext = dim.ticktext.slice();\n }\n\n // Extend ticktext with elements from uniqueInfoDim.uniqueValues\n for(var i = dim._ticktext.length; i < uniqueInfoDim.uniqueValues.length; i++) {\n dim._ticktext.push(uniqueInfoDim.uniqueValues[i]);\n }\n}\n\n/**\n * Determine whether an array contains a permutation of the integers from 0 to the array's length - 1\n * @param {Array} inds\n * @return {boolean}\n */\nfunction isRangePermutation(inds) {\n var indsSpecified = new Array(inds.length);\n\n for(var i = 0; i < inds.length; i++) {\n // Check for out of bounds\n if(inds[i] < 0 || inds[i] >= inds.length) {\n return false;\n }\n\n // Check for collisions with already specified index\n if(indsSpecified[inds[i]] !== undefined) {\n return false;\n }\n\n indsSpecified[inds[i]] = true;\n }\n\n // Nothing out of bounds and no collisions. We have a permutation\n return true;\n}\n\n},{\"../../components/colorscale/calc\":374,\"../../components/colorscale/helpers\":377,\"../../components/drawing\":388,\"../../lib\":503,\"../../lib/filter_unique.js\":494,\"../../lib/gup\":500,\"fast-isnumeric\":190}],883:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar hasColorscale = _dereq_('../../components/colorscale/helpers').hasColorscale;\nvar colorscaleDefaults = _dereq_('../../components/colorscale/defaults');\nvar handleDomainDefaults = _dereq_('../../plots/domain').defaults;\nvar handleArrayContainerDefaults = _dereq_('../../plots/array_container_defaults');\n\nvar attributes = _dereq_('./attributes');\nvar mergeLength = _dereq_('../parcoords/merge_length');\n\nfunction handleLineDefaults(traceIn, traceOut, defaultColor, layout, coerce) {\n coerce('line.shape');\n coerce('line.hovertemplate');\n\n var lineColor = coerce('line.color', layout.colorway[0]);\n if(hasColorscale(traceIn, 'line') && Lib.isArrayOrTypedArray(lineColor)) {\n if(lineColor.length) {\n coerce('line.colorscale');\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: 'line.', cLetter: 'c'});\n return lineColor.length;\n } else {\n traceOut.line.color = defaultColor;\n }\n }\n return Infinity;\n}\n\nfunction dimensionDefaults(dimensionIn, dimensionOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(dimensionIn, dimensionOut, attributes.dimensions, attr, dflt);\n }\n\n var values = coerce('values');\n var visible = coerce('visible');\n if(!(values && values.length)) {\n visible = dimensionOut.visible = false;\n }\n\n if(visible) {\n // Dimension level\n coerce('label');\n coerce('displayindex', dimensionOut._index);\n\n // Category level\n var arrayIn = dimensionIn.categoryarray;\n var isValidArray = (Array.isArray(arrayIn) && arrayIn.length > 0);\n\n var orderDefault;\n if(isValidArray) orderDefault = 'array';\n var order = coerce('categoryorder', orderDefault);\n\n // coerce 'categoryarray' only in array order case\n if(order === 'array') {\n coerce('categoryarray');\n coerce('ticktext');\n } else {\n delete dimensionIn.categoryarray;\n delete dimensionIn.ticktext;\n }\n\n // cannot set 'categoryorder' to 'array' with an invalid 'categoryarray'\n if(!isValidArray && order === 'array') {\n dimensionOut.categoryorder = 'trace';\n }\n }\n}\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var dimensions = handleArrayContainerDefaults(traceIn, traceOut, {\n name: 'dimensions',\n handleItemDefaults: dimensionDefaults\n });\n\n var len = handleLineDefaults(traceIn, traceOut, defaultColor, layout, coerce);\n\n handleDomainDefaults(traceOut, layout, coerce);\n\n if(!Array.isArray(dimensions) || !dimensions.length) {\n traceOut.visible = false;\n }\n\n mergeLength(traceOut, dimensions, 'values', len);\n\n coerce('hoveron');\n coerce('hovertemplate');\n coerce('arrangement');\n coerce('bundlecolors');\n coerce('sortpaths');\n coerce('counts');\n\n var labelfontDflt = {\n family: layout.font.family,\n size: Math.round(layout.font.size),\n color: layout.font.color\n };\n\n Lib.coerceFont(coerce, 'labelfont', labelfontDflt);\n\n var categoryfontDefault = {\n family: layout.font.family,\n size: Math.round(layout.font.size / 1.2),\n color: layout.font.color\n };\n\n Lib.coerceFont(coerce, 'tickfont', categoryfontDefault);\n};\n\n},{\"../../components/colorscale/defaults\":376,\"../../components/colorscale/helpers\":377,\"../../lib\":503,\"../../plots/array_container_defaults\":549,\"../../plots/domain\":584,\"../parcoords/merge_length\":896,\"./attributes\":880}],884:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n calc: _dereq_('./calc'),\n plot: _dereq_('./plot'),\n colorbar: {\n container: 'line',\n min: 'cmin',\n max: 'cmax'\n },\n\n moduleType: 'trace',\n name: 'parcats',\n basePlotModule: _dereq_('./base_plot'),\n categories: ['noOpacity'],\n meta: {\n }\n};\n\n},{\"./attributes\":880,\"./base_plot\":881,\"./calc\":882,\"./defaults\":883,\"./plot\":886}],885:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar interpolateNumber = _dereq_('d3-interpolate').interpolateNumber;\nvar Plotly = _dereq_('../../plot_api/plot_api');\nvar Fx = _dereq_('../../components/fx');\nvar Lib = _dereq_('../../lib');\nvar strTranslate = Lib.strTranslate;\nvar Drawing = _dereq_('../../components/drawing');\nvar tinycolor = _dereq_('tinycolor2');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\n\nfunction performPlot(parcatsModels, graphDiv, layout, svg) {\n var viewModels = parcatsModels.map(createParcatsViewModel.bind(0, graphDiv, layout));\n\n // Get (potentially empty) parcatslayer selection with bound data to single element array\n var layerSelection = svg.selectAll('g.parcatslayer').data([null]);\n\n // Initialize single parcatslayer group if it doesn't exist\n layerSelection.enter()\n .append('g')\n .attr('class', 'parcatslayer')\n .style('pointer-events', 'all');\n\n // Bind data to children of layerSelection and get reference to traceSelection\n var traceSelection = layerSelection\n .selectAll('g.trace.parcats')\n .data(viewModels, key);\n\n // Initialize group for each trace/dimensions\n var traceEnter = traceSelection.enter()\n .append('g')\n .attr('class', 'trace parcats');\n\n // Update properties for each trace\n traceSelection\n .attr('transform', function(d) {\n return strTranslate(d.x, d.y);\n });\n\n // Initialize paths group\n traceEnter\n .append('g')\n .attr('class', 'paths');\n\n // Update paths transform\n var pathsSelection = traceSelection\n .select('g.paths');\n\n // Get paths selection\n var pathSelection = pathsSelection\n .selectAll('path.path')\n .data(function(d) {\n return d.paths;\n }, key);\n\n // Update existing path colors\n pathSelection\n .attr('fill', function(d) {\n return d.model.color;\n });\n\n // Create paths\n var pathSelectionEnter = pathSelection\n .enter()\n .append('path')\n .attr('class', 'path')\n .attr('stroke-opacity', 0)\n .attr('fill', function(d) {\n return d.model.color;\n })\n .attr('fill-opacity', 0);\n\n stylePathsNoHover(pathSelectionEnter);\n\n // Set path geometry\n pathSelection\n .attr('d', function(d) {\n return d.svgD;\n });\n\n // sort paths\n if(!pathSelectionEnter.empty()) {\n // Only sort paths if there has been a change.\n // Otherwise paths are already sorted or a hover operation may be in progress\n pathSelection.sort(compareRawColor);\n }\n\n // Remove any old paths\n pathSelection.exit().remove();\n\n // Path hover\n pathSelection\n .on('mouseover', mouseoverPath)\n .on('mouseout', mouseoutPath)\n .on('click', clickPath);\n\n // Initialize dimensions group\n traceEnter.append('g').attr('class', 'dimensions');\n\n // Update dimensions transform\n var dimensionsSelection = traceSelection\n .select('g.dimensions');\n\n // Get dimension selection\n var dimensionSelection = dimensionsSelection\n .selectAll('g.dimension')\n .data(function(d) {\n return d.dimensions;\n }, key);\n\n // Create dimension groups\n dimensionSelection.enter()\n .append('g')\n .attr('class', 'dimension');\n\n // Update dimension group transforms\n dimensionSelection.attr('transform', function(d) {\n return strTranslate(d.x, 0);\n });\n\n // Remove any old dimensions\n dimensionSelection.exit().remove();\n\n // Get category selection\n var categorySelection = dimensionSelection\n .selectAll('g.category')\n .data(function(d) {\n return d.categories;\n }, key);\n\n // Initialize category groups\n var categoryGroupEnterSelection = categorySelection\n .enter()\n .append('g')\n .attr('class', 'category');\n\n // Update category transforms\n categorySelection\n .attr('transform', function(d) {\n return strTranslate(0, d.y);\n });\n\n\n // Initialize rectangle\n categoryGroupEnterSelection\n .append('rect')\n .attr('class', 'catrect')\n .attr('pointer-events', 'none');\n\n\n // Update rectangle\n categorySelection.select('rect.catrect')\n .attr('fill', 'none')\n .attr('width', function(d) {\n return d.width;\n })\n .attr('height', function(d) {\n return d.height;\n });\n\n styleCategoriesNoHover(categoryGroupEnterSelection);\n\n // Initialize color band rects\n var bandSelection = categorySelection\n .selectAll('rect.bandrect')\n .data(\n /** @param {CategoryViewModel} catViewModel*/\n function(catViewModel) {\n return catViewModel.bands;\n }, key);\n\n // Raise all update bands to the top so that fading enter/exit bands will be behind\n bandSelection.each(function() {Lib.raiseToTop(this);});\n\n // Update band color\n bandSelection\n .attr('fill', function(d) {\n return d.color;\n });\n\n var bandsSelectionEnter = bandSelection.enter()\n .append('rect')\n .attr('class', 'bandrect')\n .attr('stroke-opacity', 0)\n .attr('fill', function(d) {\n return d.color;\n })\n .attr('fill-opacity', 0);\n\n bandSelection\n .attr('fill', function(d) {\n return d.color;\n })\n .attr('width', function(d) {\n return d.width;\n })\n .attr('height', function(d) {\n return d.height;\n })\n .attr('y', function(d) {\n return d.y;\n })\n .attr('cursor',\n /** @param {CategoryBandViewModel} bandModel*/\n function(bandModel) {\n if(bandModel.parcatsViewModel.arrangement === 'fixed') {\n return 'default';\n } else if(bandModel.parcatsViewModel.arrangement === 'perpendicular') {\n return 'ns-resize';\n } else {\n return 'move';\n }\n });\n\n styleBandsNoHover(bandsSelectionEnter);\n\n bandSelection.exit().remove();\n\n // Initialize category label\n categoryGroupEnterSelection\n .append('text')\n .attr('class', 'catlabel')\n .attr('pointer-events', 'none');\n\n var paperColor = graphDiv._fullLayout.paper_bgcolor;\n\n // Update category label\n categorySelection.select('text.catlabel')\n .attr('text-anchor',\n function(d) {\n if(catInRightDim(d)) {\n // Place label to the right of category\n return 'start';\n } else {\n // Place label to the left of category\n return 'end';\n }\n })\n .attr('alignment-baseline', 'middle')\n\n .style('text-shadow', svgTextUtils.makeTextShadow(paperColor))\n .style('fill', 'rgb(0, 0, 0)')\n .attr('x',\n function(d) {\n if(catInRightDim(d)) {\n // Place label to the right of category\n return d.width + 5;\n } else {\n // Place label to the left of category\n return -5;\n }\n })\n .attr('y', function(d) {\n return d.height / 2;\n })\n .text(function(d) {\n return d.model.categoryLabel;\n })\n .each(\n /** @param {CategoryViewModel} catModel*/\n function(catModel) {\n Drawing.font(d3.select(this), catModel.parcatsViewModel.categorylabelfont);\n svgTextUtils.convertToTspans(d3.select(this), graphDiv);\n });\n\n // Initialize dimension label\n categoryGroupEnterSelection\n .append('text')\n .attr('class', 'dimlabel');\n\n // Update dimension label\n categorySelection.select('text.dimlabel')\n .attr('text-anchor', 'middle')\n .attr('alignment-baseline', 'baseline')\n .attr('cursor',\n /** @param {CategoryViewModel} catModel*/\n function(catModel) {\n if(catModel.parcatsViewModel.arrangement === 'fixed') {\n return 'default';\n } else {\n return 'ew-resize';\n }\n })\n .attr('x', function(d) {\n return d.width / 2;\n })\n .attr('y', -5)\n .text(function(d, i) {\n if(i === 0) {\n // Add dimension label above topmost category\n return d.parcatsViewModel.model.dimensions[d.model.dimensionInd].dimensionLabel;\n } else {\n return null;\n }\n })\n .each(\n /** @param {CategoryViewModel} catModel*/\n function(catModel) {\n Drawing.font(d3.select(this), catModel.parcatsViewModel.labelfont);\n });\n\n // Category hover\n // categorySelection.select('rect.catrect')\n categorySelection.selectAll('rect.bandrect')\n .on('mouseover', mouseoverCategoryBand)\n .on('mouseout', mouseoutCategory);\n\n // Remove unused categories\n categorySelection.exit().remove();\n\n // Setup drag\n dimensionSelection.call(d3.behavior.drag()\n .origin(function(d) {\n return {x: d.x, y: 0};\n })\n .on('dragstart', dragDimensionStart)\n .on('drag', dragDimension)\n .on('dragend', dragDimensionEnd));\n\n\n // Save off selections to view models\n traceSelection.each(function(d) {\n d.traceSelection = d3.select(this);\n d.pathSelection = d3.select(this).selectAll('g.paths').selectAll('path.path');\n d.dimensionSelection = d3.select(this).selectAll('g.dimensions').selectAll('g.dimension');\n });\n\n // Remove any orphan traces\n traceSelection.exit().remove();\n}\n\n/**\n * Create / update parcat traces\n *\n * @param {Object} graphDiv\n * @param {Object} svg\n * @param {Array.} parcatsModels\n * @param {Layout} layout\n */\nmodule.exports = function(graphDiv, svg, parcatsModels, layout) {\n performPlot(parcatsModels, graphDiv, layout, svg);\n};\n\n/**\n * Function the returns the key property of an object for use with as D3 join function\n * @param d\n */\nfunction key(d) {\n return d.key;\n}\n\n /** True if a category view model is in the right-most display dimension\n * @param {CategoryViewModel} d */\nfunction catInRightDim(d) {\n var numDims = d.parcatsViewModel.dimensions.length;\n var leftDimInd = d.parcatsViewModel.dimensions[numDims - 1].model.dimensionInd;\n return d.model.dimensionInd === leftDimInd;\n}\n\n/**\n * @param {PathViewModel} a\n * @param {PathViewModel} b\n */\nfunction compareRawColor(a, b) {\n if(a.model.rawColor > b.model.rawColor) {\n return 1;\n } else if(a.model.rawColor < b.model.rawColor) {\n return -1;\n } else {\n return 0;\n }\n}\n\n/**\n * Handle path mouseover\n * @param {PathViewModel} d\n */\nfunction mouseoverPath(d) {\n if(!d.parcatsViewModel.dragDimension) {\n // We're not currently dragging\n\n if(d.parcatsViewModel.hoverinfoItems.indexOf('skip') === -1) {\n // hoverinfo is not skip, so we at least style the paths and emit interaction events\n\n // Raise path to top\n Lib.raiseToTop(this);\n\n stylePathsHover(d3.select(this));\n\n // Emit hover event\n var points = buildPointsArrayForPath(d);\n var constraints = buildConstraintsForPath(d);\n d.parcatsViewModel.graphDiv.emit('plotly_hover', {\n points: points, event: d3.event, constraints: constraints\n });\n\n // Handle hover label\n if(d.parcatsViewModel.hoverinfoItems.indexOf('none') === -1) {\n // hoverinfo is a combination of 'count' and 'probability'\n\n // Mouse\n var hoverX = d3.mouse(this)[0];\n\n // Label\n var gd = d.parcatsViewModel.graphDiv;\n var trace = d.parcatsViewModel.trace;\n var fullLayout = gd._fullLayout;\n var rootBBox = fullLayout._paperdiv.node().getBoundingClientRect();\n var graphDivBBox = d.parcatsViewModel.graphDiv.getBoundingClientRect();\n\n // Find path center in path coordinates\n var pathCenterX,\n pathCenterY,\n dimInd;\n\n for(dimInd = 0; dimInd < (d.leftXs.length - 1); dimInd++) {\n if(d.leftXs[dimInd] + d.dimWidths[dimInd] - 2 <= hoverX && hoverX <= d.leftXs[dimInd + 1] + 2) {\n var leftDim = d.parcatsViewModel.dimensions[dimInd];\n var rightDim = d.parcatsViewModel.dimensions[dimInd + 1];\n pathCenterX = (leftDim.x + leftDim.width + rightDim.x) / 2;\n pathCenterY = (d.topYs[dimInd] + d.topYs[dimInd + 1] + d.height) / 2;\n break;\n }\n }\n\n // Find path center in root coordinates\n var hoverCenterX = d.parcatsViewModel.x + pathCenterX;\n var hoverCenterY = d.parcatsViewModel.y + pathCenterY;\n\n var textColor = tinycolor.mostReadable(d.model.color, ['black', 'white']);\n\n var count = d.model.count;\n var prob = count / d.parcatsViewModel.model.count;\n var labels = {\n countLabel: count,\n probabilityLabel: prob.toFixed(3)\n };\n\n // Build hover text\n var hovertextParts = [];\n if(d.parcatsViewModel.hoverinfoItems.indexOf('count') !== -1) {\n hovertextParts.push(['Count:', labels.countLabel].join(' '));\n }\n if(d.parcatsViewModel.hoverinfoItems.indexOf('probability') !== -1) {\n hovertextParts.push(['P:', labels.probabilityLabel].join(' '));\n }\n\n var hovertext = hovertextParts.join('
');\n var mouseX = d3.mouse(gd)[0];\n\n Fx.loneHover({\n trace: trace,\n x: hoverCenterX - rootBBox.left + graphDivBBox.left,\n y: hoverCenterY - rootBBox.top + graphDivBBox.top,\n text: hovertext,\n color: d.model.color,\n borderColor: 'black',\n fontFamily: 'Monaco, \"Courier New\", monospace',\n fontSize: 10,\n fontColor: textColor,\n idealAlign: mouseX < hoverCenterX ? 'right' : 'left',\n hovertemplate: (trace.line || {}).hovertemplate,\n hovertemplateLabels: labels,\n eventData: [{\n data: trace._input,\n fullData: trace,\n count: count,\n probability: prob\n }]\n }, {\n container: fullLayout._hoverlayer.node(),\n outerContainer: fullLayout._paper.node(),\n gd: gd\n });\n }\n }\n }\n}\n\n/**\n * Handle path mouseout\n * @param {PathViewModel} d\n */\nfunction mouseoutPath(d) {\n if(!d.parcatsViewModel.dragDimension) {\n // We're not currently dragging\n stylePathsNoHover(d3.select(this));\n\n // Remove and hover label\n Fx.loneUnhover(d.parcatsViewModel.graphDiv._fullLayout._hoverlayer.node());\n\n // Restore path order\n d.parcatsViewModel.pathSelection.sort(compareRawColor);\n\n // Emit unhover event\n if(d.parcatsViewModel.hoverinfoItems.indexOf('skip') === -1) {\n var points = buildPointsArrayForPath(d);\n var constraints = buildConstraintsForPath(d);\n d.parcatsViewModel.graphDiv.emit('plotly_unhover', {\n points: points, event: d3.event, constraints: constraints\n });\n }\n }\n}\n\n/**\n * Build array of point objects for a path\n *\n * For use in click/hover events\n * @param {PathViewModel} d\n */\nfunction buildPointsArrayForPath(d) {\n var points = [];\n var curveNumber = getTraceIndex(d.parcatsViewModel);\n\n for(var i = 0; i < d.model.valueInds.length; i++) {\n var pointNumber = d.model.valueInds[i];\n points.push({\n curveNumber: curveNumber,\n pointNumber: pointNumber\n });\n }\n return points;\n}\n\n/**\n * Build constraints object for a path\n *\n * For use in click/hover events\n * @param {PathViewModel} d\n */\nfunction buildConstraintsForPath(d) {\n var constraints = {};\n var dimensions = d.parcatsViewModel.model.dimensions;\n\n // dimensions\n for(var i = 0; i < dimensions.length; i++) {\n var dimension = dimensions[i];\n var category = dimension.categories[d.model.categoryInds[i]];\n constraints[dimension.containerInd] = category.categoryValue;\n }\n\n // color\n if(d.model.rawColor !== undefined) {\n constraints.color = d.model.rawColor;\n }\n return constraints;\n}\n\n/**\n * Handle path click\n * @param {PathViewModel} d\n */\nfunction clickPath(d) {\n if(d.parcatsViewModel.hoverinfoItems.indexOf('skip') === -1) {\n // hoverinfo it's skip, so interaction events aren't disabled\n var points = buildPointsArrayForPath(d);\n var constraints = buildConstraintsForPath(d);\n d.parcatsViewModel.graphDiv.emit('plotly_click', {\n points: points, event: d3.event, constraints: constraints\n });\n }\n}\n\nfunction stylePathsNoHover(pathSelection) {\n pathSelection\n .attr('fill', function(d) {\n return d.model.color;\n })\n .attr('fill-opacity', 0.6)\n .attr('stroke', 'lightgray')\n .attr('stroke-width', 0.2)\n .attr('stroke-opacity', 1.0);\n}\n\nfunction stylePathsHover(pathSelection) {\n pathSelection\n .attr('fill-opacity', 0.8)\n .attr('stroke', function(d) {\n return tinycolor.mostReadable(d.model.color, ['black', 'white']);\n })\n .attr('stroke-width', 0.3);\n}\n\nfunction styleCategoryHover(categorySelection) {\n categorySelection\n .select('rect.catrect')\n .attr('stroke', 'black')\n .attr('stroke-width', 2.5);\n}\n\nfunction styleCategoriesNoHover(categorySelection) {\n categorySelection\n .select('rect.catrect')\n .attr('stroke', 'black')\n .attr('stroke-width', 1)\n .attr('stroke-opacity', 1);\n}\n\nfunction styleBandsHover(bandsSelection) {\n bandsSelection\n .attr('stroke', 'black')\n .attr('stroke-width', 1.5);\n}\n\nfunction styleBandsNoHover(bandsSelection) {\n bandsSelection\n .attr('stroke', 'black')\n .attr('stroke-width', 0.2)\n .attr('stroke-opacity', 1.0)\n .attr('fill-opacity', 1.0);\n}\n\n/**\n * Return selection of all paths that pass through the specified category\n * @param {CategoryBandViewModel} catBandViewModel\n */\nfunction selectPathsThroughCategoryBandColor(catBandViewModel) {\n var allPaths = catBandViewModel.parcatsViewModel.pathSelection;\n var dimInd = catBandViewModel.categoryViewModel.model.dimensionInd;\n var catInd = catBandViewModel.categoryViewModel.model.categoryInd;\n\n return allPaths\n .filter(\n /** @param {PathViewModel} pathViewModel */\n function(pathViewModel) {\n return pathViewModel.model.categoryInds[dimInd] === catInd &&\n pathViewModel.model.color === catBandViewModel.color;\n });\n}\n\n\n/**\n * Perform hover styling for all paths that pass though the specified band element's category\n *\n * @param {HTMLElement} bandElement\n * HTML element for band\n *\n */\nfunction styleForCategoryHovermode(bandElement) {\n // Get all bands in the current category\n var bandSel = d3.select(bandElement.parentNode).selectAll('rect.bandrect');\n\n // Raise and style paths\n bandSel.each(function(bvm) {\n var paths = selectPathsThroughCategoryBandColor(bvm);\n stylePathsHover(paths);\n paths.each(function() {\n // Raise path to top\n Lib.raiseToTop(this);\n });\n });\n\n // Style category\n styleCategoryHover(d3.select(bandElement.parentNode));\n}\n\n/**\n * Perform hover styling for all paths that pass though the category of the specified band element and share the\n * same color\n *\n * @param {HTMLElement} bandElement\n * HTML element for band\n *\n */\nfunction styleForColorHovermode(bandElement) {\n var bandViewModel = d3.select(bandElement).datum();\n var catPaths = selectPathsThroughCategoryBandColor(bandViewModel);\n stylePathsHover(catPaths);\n catPaths.each(function() {\n // Raise path to top\n Lib.raiseToTop(this);\n });\n\n // Style category for drag\n d3.select(bandElement.parentNode)\n .selectAll('rect.bandrect')\n .filter(function(b) {return b.color === bandViewModel.color;})\n .each(function() {\n Lib.raiseToTop(this);\n styleBandsHover(d3.select(this));\n });\n}\n\n\n/**\n * @param {HTMLElement} bandElement\n * HTML element for band\n * @param eventName\n * Event name (plotly_hover or plotly_click)\n * @param event\n * Mouse Event\n */\nfunction emitPointsEventCategoryHovermode(bandElement, eventName, event) {\n // Get all bands in the current category\n var bandViewModel = d3.select(bandElement).datum();\n var categoryModel = bandViewModel.categoryViewModel.model;\n var gd = bandViewModel.parcatsViewModel.graphDiv;\n var bandSel = d3.select(bandElement.parentNode).selectAll('rect.bandrect');\n\n var points = [];\n bandSel.each(function(bvm) {\n var paths = selectPathsThroughCategoryBandColor(bvm);\n paths.each(function(pathViewModel) {\n // Extend points array\n Array.prototype.push.apply(points, buildPointsArrayForPath(pathViewModel));\n });\n });\n\n var constraints = {};\n constraints[categoryModel.dimensionInd] = categoryModel.categoryValue;\n gd.emit(eventName, {\n points: points, event: event, constraints: constraints\n });\n}\n\n/**\n * @param {HTMLElement} bandElement\n * HTML element for band\n * @param eventName\n * Event name (plotly_hover or plotly_click)\n * @param event\n * Mouse Event\n */\nfunction emitPointsEventColorHovermode(bandElement, eventName, event) {\n var bandViewModel = d3.select(bandElement).datum();\n var categoryModel = bandViewModel.categoryViewModel.model;\n var gd = bandViewModel.parcatsViewModel.graphDiv;\n var paths = selectPathsThroughCategoryBandColor(bandViewModel);\n\n var points = [];\n paths.each(function(pathViewModel) {\n // Extend points array\n Array.prototype.push.apply(points, buildPointsArrayForPath(pathViewModel));\n });\n\n var constraints = {};\n constraints[categoryModel.dimensionInd] = categoryModel.categoryValue;\n // color\n if(bandViewModel.rawColor !== undefined) {\n constraints.color = bandViewModel.rawColor;\n }\n gd.emit(eventName, {\n points: points, event: event, constraints: constraints\n });\n}\n\n/**\n * Create hover label for a band element's category (for use when hoveron === 'category')\n *\n * @param {ClientRect} rootBBox\n * Client bounding box for root of figure\n * @param {HTMLElement} bandElement\n * HTML element for band\n *\n */\nfunction createHoverLabelForCategoryHovermode(gd, rootBBox, bandElement) {\n gd._fullLayout._calcInverseTransform(gd);\n var scaleX = gd._fullLayout._invScaleX;\n var scaleY = gd._fullLayout._invScaleY;\n\n // Selections\n var rectSelection = d3.select(bandElement.parentNode).select('rect.catrect');\n var rectBoundingBox = rectSelection.node().getBoundingClientRect();\n\n // Models\n /** @type {CategoryViewModel} */\n var catViewModel = rectSelection.datum();\n var parcatsViewModel = catViewModel.parcatsViewModel;\n var dimensionModel = parcatsViewModel.model.dimensions[catViewModel.model.dimensionInd];\n var trace = parcatsViewModel.trace;\n\n // Positions\n var hoverCenterY = rectBoundingBox.top + rectBoundingBox.height / 2;\n var hoverCenterX,\n hoverLabelIdealAlign;\n\n if(parcatsViewModel.dimensions.length > 1 &&\n dimensionModel.displayInd === parcatsViewModel.dimensions.length - 1) {\n // right most dimension\n hoverCenterX = rectBoundingBox.left;\n hoverLabelIdealAlign = 'left';\n } else {\n hoverCenterX = rectBoundingBox.left + rectBoundingBox.width;\n hoverLabelIdealAlign = 'right';\n }\n\n var count = catViewModel.model.count;\n var catLabel = catViewModel.model.categoryLabel;\n var prob = count / catViewModel.parcatsViewModel.model.count;\n var labels = {\n countLabel: count,\n categoryLabel: catLabel,\n probabilityLabel: prob.toFixed(3)\n };\n\n // Hover label text\n var hoverinfoParts = [];\n if(catViewModel.parcatsViewModel.hoverinfoItems.indexOf('count') !== -1) {\n hoverinfoParts.push(['Count:', labels.countLabel].join(' '));\n }\n if(catViewModel.parcatsViewModel.hoverinfoItems.indexOf('probability') !== -1) {\n hoverinfoParts.push(['P(' + labels.categoryLabel + '):', labels.probabilityLabel].join(' '));\n }\n\n var hovertext = hoverinfoParts.join('
');\n return {\n trace: trace,\n x: scaleX * (hoverCenterX - rootBBox.left),\n y: scaleY * (hoverCenterY - rootBBox.top),\n text: hovertext,\n color: 'lightgray',\n borderColor: 'black',\n fontFamily: 'Monaco, \"Courier New\", monospace',\n fontSize: 12,\n fontColor: 'black',\n idealAlign: hoverLabelIdealAlign,\n hovertemplate: trace.hovertemplate,\n hovertemplateLabels: labels,\n eventData: [{\n data: trace._input,\n fullData: trace,\n count: count,\n category: catLabel,\n probability: prob\n }]\n };\n}\n\n/**\n * Create hover label for a band element's category (for use when hoveron === 'category')\n *\n * @param {ClientRect} rootBBox\n * Client bounding box for root of figure\n * @param {HTMLElement} bandElement\n * HTML element for band\n *\n */\nfunction createHoverLabelForDimensionHovermode(gd, rootBBox, bandElement) {\n var allHoverlabels = [];\n\n d3.select(bandElement.parentNode.parentNode)\n .selectAll('g.category')\n .select('rect.catrect')\n .each(function() {\n var bandNode = this;\n allHoverlabels.push(createHoverLabelForCategoryHovermode(gd, rootBBox, bandNode));\n });\n\n return allHoverlabels;\n}\n\n/**\n * Create hover labels for a band element's category (for use when hoveron === 'dimension')\n *\n * @param {ClientRect} rootBBox\n * Client bounding box for root of figure\n * @param {HTMLElement} bandElement\n * HTML element for band\n *\n */\nfunction createHoverLabelForColorHovermode(gd, rootBBox, bandElement) {\n gd._fullLayout._calcInverseTransform(gd);\n var scaleX = gd._fullLayout._invScaleX;\n var scaleY = gd._fullLayout._invScaleY;\n\n var bandBoundingBox = bandElement.getBoundingClientRect();\n\n // Models\n /** @type {CategoryBandViewModel} */\n var bandViewModel = d3.select(bandElement).datum();\n var catViewModel = bandViewModel.categoryViewModel;\n var parcatsViewModel = catViewModel.parcatsViewModel;\n var dimensionModel = parcatsViewModel.model.dimensions[catViewModel.model.dimensionInd];\n var trace = parcatsViewModel.trace;\n\n // positions\n var hoverCenterY = bandBoundingBox.y + bandBoundingBox.height / 2;\n\n var hoverCenterX,\n hoverLabelIdealAlign;\n if(parcatsViewModel.dimensions.length > 1 &&\n dimensionModel.displayInd === parcatsViewModel.dimensions.length - 1) {\n // right most dimension\n hoverCenterX = bandBoundingBox.left;\n hoverLabelIdealAlign = 'left';\n } else {\n hoverCenterX = bandBoundingBox.left + bandBoundingBox.width;\n hoverLabelIdealAlign = 'right';\n }\n\n // Labels\n var catLabel = catViewModel.model.categoryLabel;\n\n // Counts\n var totalCount = bandViewModel.parcatsViewModel.model.count;\n\n var bandColorCount = 0;\n bandViewModel.categoryViewModel.bands.forEach(function(b) {\n if(b.color === bandViewModel.color) {\n bandColorCount += b.count;\n }\n });\n\n var catCount = catViewModel.model.count;\n\n var colorCount = 0;\n parcatsViewModel.pathSelection.each(\n /** @param {PathViewModel} pathViewModel */\n function(pathViewModel) {\n if(pathViewModel.model.color === bandViewModel.color) {\n colorCount += pathViewModel.model.count;\n }\n });\n\n var pColorAndCat = bandColorCount / totalCount;\n var pCatGivenColor = bandColorCount / colorCount;\n var pColorGivenCat = bandColorCount / catCount;\n\n var labels = {\n countLabel: totalCount,\n categoryLabel: catLabel,\n probabilityLabel: pColorAndCat.toFixed(3)\n };\n\n // Hover label text\n var hoverinfoParts = [];\n if(catViewModel.parcatsViewModel.hoverinfoItems.indexOf('count') !== -1) {\n hoverinfoParts.push(['Count:', labels.countLabel].join(' '));\n }\n if(catViewModel.parcatsViewModel.hoverinfoItems.indexOf('probability') !== -1) {\n hoverinfoParts.push('P(color ∩ ' + catLabel + '): ' + labels.probabilityLabel);\n hoverinfoParts.push('P(' + catLabel + ' | color): ' + pCatGivenColor.toFixed(3));\n hoverinfoParts.push('P(color | ' + catLabel + '): ' + pColorGivenCat.toFixed(3));\n }\n\n var hovertext = hoverinfoParts.join('
');\n\n // Compute text color\n var textColor = tinycolor.mostReadable(bandViewModel.color, ['black', 'white']);\n\n return {\n trace: trace,\n x: scaleX * (hoverCenterX - rootBBox.left),\n y: scaleY * (hoverCenterY - rootBBox.top),\n // name: 'NAME',\n text: hovertext,\n color: bandViewModel.color,\n borderColor: 'black',\n fontFamily: 'Monaco, \"Courier New\", monospace',\n fontColor: textColor,\n fontSize: 10,\n idealAlign: hoverLabelIdealAlign,\n hovertemplate: trace.hovertemplate,\n hovertemplateLabels: labels,\n eventData: [{\n data: trace._input,\n fullData: trace,\n category: catLabel,\n count: totalCount,\n probability: pColorAndCat,\n categorycount: catCount,\n colorcount: colorCount,\n bandcolorcount: bandColorCount\n }]\n };\n}\n\n/**\n * Handle dimension mouseover\n * @param {CategoryBandViewModel} bandViewModel\n */\nfunction mouseoverCategoryBand(bandViewModel) {\n if(!bandViewModel.parcatsViewModel.dragDimension) {\n // We're not currently dragging\n\n if(bandViewModel.parcatsViewModel.hoverinfoItems.indexOf('skip') === -1) {\n // hoverinfo is not skip, so we at least style the bands and emit interaction events\n\n // Mouse\n var mouseY = d3.mouse(this)[1];\n if(mouseY < -1) {\n // Hover is above above the category rectangle (probably the dimension title text)\n return;\n }\n\n var gd = bandViewModel.parcatsViewModel.graphDiv;\n var fullLayout = gd._fullLayout;\n var rootBBox = fullLayout._paperdiv.node().getBoundingClientRect();\n var hoveron = bandViewModel.parcatsViewModel.hoveron;\n\n /** @type {HTMLElement} */\n var bandElement = this;\n\n // Handle style and events\n if(hoveron === 'color') {\n styleForColorHovermode(bandElement);\n emitPointsEventColorHovermode(bandElement, 'plotly_hover', d3.event);\n } else {\n styleForCategoryHovermode(bandElement);\n emitPointsEventCategoryHovermode(bandElement, 'plotly_hover', d3.event);\n }\n\n // Handle hover label\n if(bandViewModel.parcatsViewModel.hoverinfoItems.indexOf('none') === -1) {\n var hoverItems;\n if(hoveron === 'category') {\n hoverItems = createHoverLabelForCategoryHovermode(gd, rootBBox, bandElement);\n } else if(hoveron === 'color') {\n hoverItems = createHoverLabelForColorHovermode(gd, rootBBox, bandElement);\n } else if(hoveron === 'dimension') {\n hoverItems = createHoverLabelForDimensionHovermode(gd, rootBBox, bandElement);\n }\n\n if(hoverItems) {\n Fx.loneHover(hoverItems, {\n container: fullLayout._hoverlayer.node(),\n outerContainer: fullLayout._paper.node(),\n gd: gd\n });\n }\n }\n }\n }\n}\n\n\n/**\n * Handle dimension mouseover\n * @param {CategoryBandViewModel} bandViewModel\n */\nfunction mouseoutCategory(bandViewModel) {\n var parcatsViewModel = bandViewModel.parcatsViewModel;\n\n if(!parcatsViewModel.dragDimension) {\n // We're not dragging anything\n\n // Reset unhovered styles\n stylePathsNoHover(parcatsViewModel.pathSelection);\n styleCategoriesNoHover(parcatsViewModel.dimensionSelection.selectAll('g.category'));\n styleBandsNoHover(parcatsViewModel.dimensionSelection.selectAll('g.category').selectAll('rect.bandrect'));\n\n // Remove hover label\n Fx.loneUnhover(parcatsViewModel.graphDiv._fullLayout._hoverlayer.node());\n\n // Restore path order\n parcatsViewModel.pathSelection.sort(compareRawColor);\n\n // Emit unhover event\n if(parcatsViewModel.hoverinfoItems.indexOf('skip') === -1) {\n var hoveron = bandViewModel.parcatsViewModel.hoveron;\n var bandElement = this;\n\n // Handle style and events\n if(hoveron === 'color') {\n emitPointsEventColorHovermode(bandElement, 'plotly_unhover', d3.event);\n } else {\n emitPointsEventCategoryHovermode(bandElement, 'plotly_unhover', d3.event);\n }\n }\n }\n}\n\n\n/**\n * Handle dimension drag start\n * @param {DimensionViewModel} d\n */\nfunction dragDimensionStart(d) {\n // Check if dragging is supported\n if(d.parcatsViewModel.arrangement === 'fixed') {\n return;\n }\n\n // Save off initial drag indexes for dimension\n d.dragDimensionDisplayInd = d.model.displayInd;\n d.initialDragDimensionDisplayInds = d.parcatsViewModel.model.dimensions.map(function(d) {return d.displayInd;});\n d.dragHasMoved = false;\n\n // Check for category hit\n d.dragCategoryDisplayInd = null;\n d3.select(this)\n .selectAll('g.category')\n .select('rect.catrect')\n .each(\n /** @param {CategoryViewModel} catViewModel */\n function(catViewModel) {\n var catMouseX = d3.mouse(this)[0];\n var catMouseY = d3.mouse(this)[1];\n\n\n if(-2 <= catMouseX && catMouseX <= catViewModel.width + 2 &&\n -2 <= catMouseY && catMouseY <= catViewModel.height + 2) {\n // Save off initial drag indexes for categories\n d.dragCategoryDisplayInd = catViewModel.model.displayInd;\n d.initialDragCategoryDisplayInds = d.model.categories.map(function(c) {\n return c.displayInd;\n });\n\n // Initialize categories dragY to be the current y position\n catViewModel.model.dragY = catViewModel.y;\n\n // Raise category\n Lib.raiseToTop(this.parentNode);\n\n // Get band element\n d3.select(this.parentNode)\n .selectAll('rect.bandrect')\n /** @param {CategoryBandViewModel} bandViewModel */\n .each(function(bandViewModel) {\n if(bandViewModel.y < catMouseY && catMouseY <= bandViewModel.y + bandViewModel.height) {\n d.potentialClickBand = this;\n }\n });\n }\n });\n\n // Update toplevel drag dimension\n d.parcatsViewModel.dragDimension = d;\n\n // Remove hover label if any\n Fx.loneUnhover(d.parcatsViewModel.graphDiv._fullLayout._hoverlayer.node());\n}\n\n/**\n * Handle dimension drag\n * @param {DimensionViewModel} d\n */\nfunction dragDimension(d) {\n // Check if dragging is supported\n if(d.parcatsViewModel.arrangement === 'fixed') {\n return;\n }\n\n d.dragHasMoved = true;\n\n if(d.dragDimensionDisplayInd === null) {\n return;\n }\n\n var dragDimInd = d.dragDimensionDisplayInd;\n var prevDimInd = dragDimInd - 1;\n var nextDimInd = dragDimInd + 1;\n\n var dragDimension = d.parcatsViewModel\n .dimensions[dragDimInd];\n\n // Update category\n if(d.dragCategoryDisplayInd !== null) {\n var dragCategory = dragDimension.categories[d.dragCategoryDisplayInd];\n\n // Update dragY by dy\n dragCategory.model.dragY += d3.event.dy;\n var categoryY = dragCategory.model.dragY;\n\n // Check for category drag swaps\n var catDisplayInd = dragCategory.model.displayInd;\n var dimCategoryViews = dragDimension.categories;\n\n var catAbove = dimCategoryViews[catDisplayInd - 1];\n var catBelow = dimCategoryViews[catDisplayInd + 1];\n\n // Check for overlap above\n if(catAbove !== undefined) {\n if(categoryY < (catAbove.y + catAbove.height / 2.0)) {\n // Swap display inds\n dragCategory.model.displayInd = catAbove.model.displayInd;\n catAbove.model.displayInd = catDisplayInd;\n }\n }\n\n if(catBelow !== undefined) {\n if((categoryY + dragCategory.height) > (catBelow.y + catBelow.height / 2.0)) {\n // Swap display inds\n dragCategory.model.displayInd = catBelow.model.displayInd;\n catBelow.model.displayInd = catDisplayInd;\n }\n }\n\n // Update category drag display index\n d.dragCategoryDisplayInd = dragCategory.model.displayInd;\n }\n\n // Update dimension position\n if(d.dragCategoryDisplayInd === null || d.parcatsViewModel.arrangement === 'freeform') {\n dragDimension.model.dragX = d3.event.x;\n\n // Check for dimension swaps\n var prevDimension = d.parcatsViewModel.dimensions[prevDimInd];\n var nextDimension = d.parcatsViewModel.dimensions[nextDimInd];\n\n if(prevDimension !== undefined) {\n if(dragDimension.model.dragX < (prevDimension.x + prevDimension.width)) {\n // Swap display inds\n dragDimension.model.displayInd = prevDimension.model.displayInd;\n prevDimension.model.displayInd = dragDimInd;\n }\n }\n\n if(nextDimension !== undefined) {\n if((dragDimension.model.dragX + dragDimension.width) > nextDimension.x) {\n // Swap display inds\n dragDimension.model.displayInd = nextDimension.model.displayInd;\n nextDimension.model.displayInd = d.dragDimensionDisplayInd;\n }\n }\n\n // Update drag display index\n d.dragDimensionDisplayInd = dragDimension.model.displayInd;\n }\n\n // Update view models\n updateDimensionViewModels(d.parcatsViewModel);\n updatePathViewModels(d.parcatsViewModel);\n\n // Update svg geometry\n updateSvgCategories(d.parcatsViewModel);\n updateSvgPaths(d.parcatsViewModel);\n}\n\n\n/**\n * Handle dimension drag end\n * @param {DimensionViewModel} d\n */\nfunction dragDimensionEnd(d) {\n // Check if dragging is supported\n if(d.parcatsViewModel.arrangement === 'fixed') {\n return;\n }\n\n if(d.dragDimensionDisplayInd === null) {\n return;\n }\n\n d3.select(this).selectAll('text').attr('font-weight', 'normal');\n\n // Compute restyle command\n // -----------------------\n var restyleData = {};\n var traceInd = getTraceIndex(d.parcatsViewModel);\n\n // ### Handle dimension reordering ###\n var finalDragDimensionDisplayInds = d.parcatsViewModel.model.dimensions.map(function(d) {return d.displayInd;});\n var anyDimsReordered = d.initialDragDimensionDisplayInds.some(function(initDimDisplay, dimInd) {\n return initDimDisplay !== finalDragDimensionDisplayInds[dimInd];\n });\n\n if(anyDimsReordered) {\n finalDragDimensionDisplayInds.forEach(function(finalDimDisplay, dimInd) {\n var containerInd = d.parcatsViewModel.model.dimensions[dimInd].containerInd;\n restyleData['dimensions[' + containerInd + '].displayindex'] = finalDimDisplay;\n });\n }\n\n // ### Handle category reordering ###\n var anyCatsReordered = false;\n if(d.dragCategoryDisplayInd !== null) {\n var finalDragCategoryDisplayInds = d.model.categories.map(function(c) {\n return c.displayInd;\n });\n\n anyCatsReordered = d.initialDragCategoryDisplayInds.some(function(initCatDisplay, catInd) {\n return initCatDisplay !== finalDragCategoryDisplayInds[catInd];\n });\n\n if(anyCatsReordered) {\n // Sort a shallow copy of the category models by display index\n var sortedCategoryModels = d.model.categories.slice().sort(\n function(a, b) { return a.displayInd - b.displayInd; });\n\n // Get new categoryarray and ticktext values\n var newCategoryArray = sortedCategoryModels.map(function(v) { return v.categoryValue; });\n var newCategoryLabels = sortedCategoryModels.map(function(v) { return v.categoryLabel; });\n\n restyleData['dimensions[' + d.model.containerInd + '].categoryarray'] = [newCategoryArray];\n restyleData['dimensions[' + d.model.containerInd + '].ticktext'] = [newCategoryLabels];\n restyleData['dimensions[' + d.model.containerInd + '].categoryorder'] = 'array';\n }\n }\n\n // Handle potential click event\n // ----------------------------\n if(d.parcatsViewModel.hoverinfoItems.indexOf('skip') === -1) {\n if(!d.dragHasMoved && d.potentialClickBand) {\n if(d.parcatsViewModel.hoveron === 'color') {\n emitPointsEventColorHovermode(d.potentialClickBand, 'plotly_click', d3.event.sourceEvent);\n } else {\n emitPointsEventCategoryHovermode(d.potentialClickBand, 'plotly_click', d3.event.sourceEvent);\n }\n }\n }\n\n // Nullify drag states\n // -------------------\n d.model.dragX = null;\n if(d.dragCategoryDisplayInd !== null) {\n var dragCategory = d.parcatsViewModel\n .dimensions[d.dragDimensionDisplayInd]\n .categories[d.dragCategoryDisplayInd];\n\n dragCategory.model.dragY = null;\n d.dragCategoryDisplayInd = null;\n }\n\n d.dragDimensionDisplayInd = null;\n d.parcatsViewModel.dragDimension = null;\n d.dragHasMoved = null;\n d.potentialClickBand = null;\n\n // Update view models\n // ------------------\n updateDimensionViewModels(d.parcatsViewModel);\n updatePathViewModels(d.parcatsViewModel);\n\n // Perform transition\n // ------------------\n var transition = d3.transition()\n .duration(300)\n .ease('cubic-in-out');\n\n transition\n .each(function() {\n updateSvgCategories(d.parcatsViewModel, true);\n updateSvgPaths(d.parcatsViewModel, true);\n })\n .each('end', function() {\n if(anyDimsReordered || anyCatsReordered) {\n // Perform restyle if the order of categories or dimensions changed\n Plotly.restyle(d.parcatsViewModel.graphDiv, restyleData, [traceInd]);\n }\n });\n}\n\n/**\n *\n * @param {ParcatsViewModel} parcatsViewModel\n */\nfunction getTraceIndex(parcatsViewModel) {\n var traceInd;\n var allTraces = parcatsViewModel.graphDiv._fullData;\n for(var i = 0; i < allTraces.length; i++) {\n if(parcatsViewModel.key === allTraces[i].uid) {\n traceInd = i;\n break;\n }\n }\n return traceInd;\n}\n\n/** Update the svg paths for view model\n * @param {ParcatsViewModel} parcatsViewModel\n * @param {boolean} hasTransition Whether to update element with transition\n */\nfunction updateSvgPaths(parcatsViewModel, hasTransition) {\n if(hasTransition === undefined) {\n hasTransition = false;\n }\n\n function transition(selection) {\n return hasTransition ? selection.transition() : selection;\n }\n\n // Update binding\n parcatsViewModel.pathSelection.data(function(d) {\n return d.paths;\n }, key);\n\n // Update paths\n transition(parcatsViewModel.pathSelection).attr('d', function(d) {\n return d.svgD;\n });\n}\n\n/** Update the svg paths for view model\n * @param {ParcatsViewModel} parcatsViewModel\n * @param {boolean} hasTransition Whether to update element with transition\n */\nfunction updateSvgCategories(parcatsViewModel, hasTransition) {\n if(hasTransition === undefined) {\n hasTransition = false;\n }\n\n function transition(selection) {\n return hasTransition ? selection.transition() : selection;\n }\n\n // Update binding\n parcatsViewModel.dimensionSelection\n .data(function(d) {\n return d.dimensions;\n }, key);\n\n var categorySelection = parcatsViewModel.dimensionSelection\n .selectAll('g.category')\n .data(function(d) {return d.categories;}, key);\n\n // Update dimension position\n transition(parcatsViewModel.dimensionSelection)\n .attr('transform', function(d) {\n return strTranslate(d.x, 0);\n });\n\n // Update category position\n transition(categorySelection)\n .attr('transform', function(d) {\n return strTranslate(0, d.y);\n });\n\n var dimLabelSelection = categorySelection.select('.dimlabel');\n\n // ### Update dimension label\n // Only the top-most display category should have the dimension label\n dimLabelSelection\n .text(function(d, i) {\n if(i === 0) {\n // Add dimension label above topmost category\n return d.parcatsViewModel.model.dimensions[d.model.dimensionInd].dimensionLabel;\n } else {\n return null;\n }\n });\n\n // Update category label\n // Categories in the right-most display dimension have their labels on\n // the right, all others on the left\n var catLabelSelection = categorySelection.select('.catlabel');\n catLabelSelection\n .attr('text-anchor',\n function(d) {\n if(catInRightDim(d)) {\n // Place label to the right of category\n return 'start';\n } else {\n // Place label to the left of category\n return 'end';\n }\n })\n .attr('x',\n function(d) {\n if(catInRightDim(d)) {\n // Place label to the right of category\n return d.width + 5;\n } else {\n // Place label to the left of category\n return -5;\n }\n })\n .each(function(d) {\n // Update attriubutes of elements\n var newX;\n var newAnchor;\n if(catInRightDim(d)) {\n // Place label to the right of category\n newX = d.width + 5;\n newAnchor = 'start';\n } else {\n // Place label to the left of category\n newX = -5;\n newAnchor = 'end';\n }\n d3.select(this)\n .selectAll('tspan')\n .attr('x', newX)\n .attr('text-anchor', newAnchor);\n });\n\n // Update bands\n // Initialize color band rects\n var bandSelection = categorySelection\n .selectAll('rect.bandrect')\n .data(\n /** @param {CategoryViewModel} catViewModel*/\n function(catViewModel) {\n return catViewModel.bands;\n }, key);\n\n var bandsSelectionEnter = bandSelection.enter()\n .append('rect')\n .attr('class', 'bandrect')\n .attr('cursor', 'move')\n .attr('stroke-opacity', 0)\n .attr('fill', function(d) {\n return d.color;\n })\n .attr('fill-opacity', 0);\n\n bandSelection\n .attr('fill', function(d) {\n return d.color;\n })\n .attr('width', function(d) {\n return d.width;\n })\n .attr('height', function(d) {\n return d.height;\n })\n .attr('y', function(d) {\n return d.y;\n });\n\n styleBandsNoHover(bandsSelectionEnter);\n\n // Raise bands to the top\n bandSelection.each(function() {Lib.raiseToTop(this);});\n\n // Remove unused bands\n bandSelection.exit().remove();\n}\n\n/**\n * Create a ParcatsViewModel traces\n * @param {Object} graphDiv\n * Top-level graph div element\n * @param {Layout} layout\n * SVG layout object\n * @param {Array.} wrappedParcatsModel\n * Wrapped ParcatsModel for this trace\n * @return {ParcatsViewModel}\n */\nfunction createParcatsViewModel(graphDiv, layout, wrappedParcatsModel) {\n // Unwrap model\n var parcatsModel = wrappedParcatsModel[0];\n\n // Compute margin\n var margin = layout.margin || {l: 80, r: 80, t: 100, b: 80};\n\n // Compute pixel position/extents\n var trace = parcatsModel.trace;\n var domain = trace.domain;\n var figureWidth = layout.width;\n var figureHeight = layout.height;\n var traceWidth = Math.floor(figureWidth * (domain.x[1] - domain.x[0]));\n var traceHeight = Math.floor(figureHeight * (domain.y[1] - domain.y[0]));\n var traceX = domain.x[0] * figureWidth + margin.l;\n var traceY = layout.height - domain.y[1] * layout.height + margin.t;\n\n // Handle path shape\n // -----------------\n var pathShape = trace.line.shape;\n\n // Handle hover info\n // -----------------\n var hoverinfoItems;\n if(trace.hoverinfo === 'all') {\n hoverinfoItems = ['count', 'probability'];\n } else {\n hoverinfoItems = (trace.hoverinfo || '').split('+');\n }\n\n // Construct parcatsViewModel\n // --------------------------\n var parcatsViewModel = {\n trace: trace,\n key: trace.uid,\n model: parcatsModel,\n x: traceX,\n y: traceY,\n width: traceWidth,\n height: traceHeight,\n hoveron: trace.hoveron,\n hoverinfoItems: hoverinfoItems,\n arrangement: trace.arrangement,\n bundlecolors: trace.bundlecolors,\n sortpaths: trace.sortpaths,\n labelfont: trace.labelfont,\n categorylabelfont: trace.tickfont,\n pathShape: pathShape,\n dragDimension: null,\n margin: margin,\n paths: [],\n dimensions: [],\n graphDiv: graphDiv,\n traceSelection: null,\n pathSelection: null,\n dimensionSelection: null\n };\n\n // Update dimension view models if we have at least 1 dimension\n if(parcatsModel.dimensions) {\n updateDimensionViewModels(parcatsViewModel);\n\n // Update path view models if we have at least 2 dimensions\n updatePathViewModels(parcatsViewModel);\n }\n // Inside a categories view model\n return parcatsViewModel;\n}\n\n/**\n * Build the SVG string to represents a parallel categories path\n * @param {Array.} leftXPositions\n * Array of the x positions of the left edge of each dimension (in display order)\n * @param {Array.} pathYs\n * Array of the y positions of the top of the path at each dimension (in display order)\n * @param {Array.} dimWidths\n * Array of the widths of each dimension in display order\n * @param {Number} pathHeight\n * The height of the path in pixels\n * @param {Number} curvature\n * The curvature factor for the path. 0 results in a straight line and values greater than zero result in curved paths\n * @return {string}\n */\nfunction buildSvgPath(leftXPositions, pathYs, dimWidths, pathHeight, curvature) {\n // Compute the x midpoint of each path segment\n var xRefPoints1 = [];\n var xRefPoints2 = [];\n var refInterpolator;\n var d;\n\n for(d = 0; d < dimWidths.length - 1; d++) {\n refInterpolator = interpolateNumber(dimWidths[d] + leftXPositions[d], leftXPositions[d + 1]);\n xRefPoints1.push(refInterpolator(curvature));\n xRefPoints2.push(refInterpolator(1 - curvature));\n }\n\n // Move to top of path on left edge of left-most category\n var svgD = 'M ' + leftXPositions[0] + ',' + pathYs[0];\n\n // Horizontal line to right edge\n svgD += 'l' + dimWidths[0] + ',0 ';\n\n // Horizontal line to right edge\n for(d = 1; d < dimWidths.length; d++) {\n // Curve to left edge of category\n svgD += 'C' + xRefPoints1[d - 1] + ',' + pathYs[d - 1] +\n ' ' + xRefPoints2[d - 1] + ',' + pathYs[d] +\n ' ' + leftXPositions[d] + ',' + pathYs[d];\n\n // svgD += 'L' + leftXPositions[d] + ',' + pathYs[d];\n\n // Horizontal line to right edge\n svgD += 'l' + dimWidths[d] + ',0 ';\n }\n\n // Line down\n svgD += 'l' + '0,' + pathHeight + ' ';\n\n // Line to left edge of right-most category\n svgD += 'l -' + dimWidths[dimWidths.length - 1] + ',0 ';\n\n for(d = dimWidths.length - 2; d >= 0; d--) {\n // Curve to right edge of category\n svgD += 'C' + xRefPoints2[d] + ',' + (pathYs[d + 1] + pathHeight) +\n ' ' + xRefPoints1[d] + ',' + (pathYs[d] + pathHeight) +\n ' ' + (leftXPositions[d] + dimWidths[d]) + ',' + (pathYs[d] + pathHeight);\n\n // svgD += 'L' + (leftXPositions[d] + dimWidths[d]) + ',' + (pathYs[d] + pathHeight);\n\n // Horizontal line to right edge\n svgD += 'l-' + dimWidths[d] + ',0 ';\n }\n\n // Close path\n svgD += 'Z';\n return svgD;\n}\n\n/**\n * Update the path view models based on the dimension view models in a ParcatsViewModel\n *\n * @param {ParcatsViewModel} parcatsViewModel\n * View model for trace\n */\nfunction updatePathViewModels(parcatsViewModel) {\n // Initialize an array of the y position of the top of the next path to be added to each category.\n //\n // nextYPositions[d][c] is the y position of the next path through category with index c of dimension with index d\n var dimensionViewModels = parcatsViewModel.dimensions;\n var parcatsModel = parcatsViewModel.model;\n var nextYPositions = dimensionViewModels.map(\n function(d) {\n return d.categories.map(\n function(c) {\n return c.y;\n });\n });\n\n // Array from category index to category display index for each true dimension index\n var catToDisplayIndPerDim = parcatsViewModel.model.dimensions.map(\n function(d) {\n return d.categories.map(function(c) {return c.displayInd;});\n });\n\n // Array from true dimension index to dimension display index\n var dimToDisplayInd = parcatsViewModel.model.dimensions.map(function(d) {return d.displayInd;});\n var displayToDimInd = parcatsViewModel.dimensions.map(function(d) {return d.model.dimensionInd;});\n\n // Array of the x position of the left edge of the rectangles for each dimension\n var leftXPositions = dimensionViewModels.map(\n function(d) {\n return d.x;\n });\n\n // Compute dimension widths\n var dimWidths = dimensionViewModels.map(function(d) {return d.width;});\n\n // Build sorted Array of PathModel objects\n var pathModels = [];\n for(var p in parcatsModel.paths) {\n if(parcatsModel.paths.hasOwnProperty(p)) {\n pathModels.push(parcatsModel.paths[p]);\n }\n }\n\n // Compute category display inds to use for sorting paths\n function pathDisplayCategoryInds(pathModel) {\n var dimensionInds = pathModel.categoryInds.map(function(catInd, dimInd) {return catToDisplayIndPerDim[dimInd][catInd];});\n var displayInds = displayToDimInd.map(function(dimInd) {\n return dimensionInds[dimInd];\n });\n return displayInds;\n }\n\n // Sort in ascending order by display index array\n pathModels.sort(function(v1, v2) {\n // Build display inds for each path\n var sortArray1 = pathDisplayCategoryInds(v1);\n var sortArray2 = pathDisplayCategoryInds(v2);\n\n // Handle path sort order\n if(parcatsViewModel.sortpaths === 'backward') {\n sortArray1.reverse();\n sortArray2.reverse();\n }\n\n // Append the first value index of the path to break ties\n sortArray1.push(v1.valueInds[0]);\n sortArray2.push(v2.valueInds[0]);\n\n // Handle color bundling\n if(parcatsViewModel.bundlecolors) {\n // Prepend sort array with the raw color value\n sortArray1.unshift(v1.rawColor);\n sortArray2.unshift(v2.rawColor);\n }\n\n // colors equal, sort by display categories\n if(sortArray1 < sortArray2) {\n return -1;\n }\n if(sortArray1 > sortArray2) {\n return 1;\n }\n\n return 0;\n });\n\n // Create path models\n var pathViewModels = new Array(pathModels.length);\n var totalCount = dimensionViewModels[0].model.count;\n var totalHeight = dimensionViewModels[0].categories\n .map(function(c) { return c.height; })\n .reduce(function(v1, v2) { return v1 + v2; });\n\n\n for(var pathNumber = 0; pathNumber < pathModels.length; pathNumber++) {\n var pathModel = pathModels[pathNumber];\n\n var pathHeight;\n if(totalCount > 0) {\n pathHeight = totalHeight * (pathModel.count / totalCount);\n } else {\n pathHeight = 0;\n }\n\n // Build path y coords\n var pathYs = new Array(nextYPositions.length);\n for(var d = 0; d < pathModel.categoryInds.length; d++) {\n var catInd = pathModel.categoryInds[d];\n var catDisplayInd = catToDisplayIndPerDim[d][catInd];\n var dimDisplayInd = dimToDisplayInd[d];\n\n // Update next y position\n pathYs[dimDisplayInd] = nextYPositions[dimDisplayInd][catDisplayInd];\n nextYPositions[dimDisplayInd][catDisplayInd] += pathHeight;\n\n // Update category color information\n var catViewModle = parcatsViewModel.dimensions[dimDisplayInd].categories[catDisplayInd];\n var numBands = catViewModle.bands.length;\n var lastCatBand = catViewModle.bands[numBands - 1];\n\n if(lastCatBand === undefined || pathModel.rawColor !== lastCatBand.rawColor) {\n // Create a new band\n var bandY = lastCatBand === undefined ? 0 : lastCatBand.y + lastCatBand.height;\n catViewModle.bands.push({\n key: bandY,\n color: pathModel.color,\n rawColor: pathModel.rawColor,\n height: pathHeight,\n width: catViewModle.width,\n count: pathModel.count,\n y: bandY,\n categoryViewModel: catViewModle,\n parcatsViewModel: parcatsViewModel\n });\n } else {\n // Extend current band\n var currentBand = catViewModle.bands[numBands - 1];\n currentBand.height += pathHeight;\n currentBand.count += pathModel.count;\n }\n }\n\n // build svg path\n var svgD;\n if(parcatsViewModel.pathShape === 'hspline') {\n svgD = buildSvgPath(leftXPositions, pathYs, dimWidths, pathHeight, 0.5);\n } else {\n svgD = buildSvgPath(leftXPositions, pathYs, dimWidths, pathHeight, 0);\n }\n\n pathViewModels[pathNumber] = {\n key: pathModel.valueInds[0],\n model: pathModel,\n height: pathHeight,\n leftXs: leftXPositions,\n topYs: pathYs,\n dimWidths: dimWidths,\n svgD: svgD,\n parcatsViewModel: parcatsViewModel\n };\n }\n\n parcatsViewModel.paths = pathViewModels;\n\n // * @property key\n // * Unique key for this model\n // * @property {PathModel} model\n // * Source path model\n // * @property {Number} height\n // * Height of this path (pixels)\n // * @property {String} svgD\n // * SVG path \"d\" attribute string\n}\n\n/**\n * Update the dimension view models based on the dimension models in a ParcatsViewModel\n *\n * @param {ParcatsViewModel} parcatsViewModel\n * View model for trace\n */\nfunction updateDimensionViewModels(parcatsViewModel) {\n // Compute dimension ordering\n var dimensionsIndInfo = parcatsViewModel.model.dimensions.map(function(d) {\n return {displayInd: d.displayInd, dimensionInd: d.dimensionInd};\n });\n\n dimensionsIndInfo.sort(function(a, b) {\n return a.displayInd - b.displayInd;\n });\n\n var dimensions = [];\n for(var displayInd in dimensionsIndInfo) {\n var dimensionInd = dimensionsIndInfo[displayInd].dimensionInd;\n var dimModel = parcatsViewModel.model.dimensions[dimensionInd];\n dimensions.push(createDimensionViewModel(parcatsViewModel, dimModel));\n }\n\n parcatsViewModel.dimensions = dimensions;\n}\n\n/**\n * Create a parcats DimensionViewModel\n *\n * @param {ParcatsViewModel} parcatsViewModel\n * View model for trace\n * @param {DimensionModel} dimensionModel\n * @return {DimensionViewModel}\n */\nfunction createDimensionViewModel(parcatsViewModel, dimensionModel) {\n // Compute dimension x position\n var categoryLabelPad = 40;\n var dimWidth = 16;\n var numDimensions = parcatsViewModel.model.dimensions.length;\n var displayInd = dimensionModel.displayInd;\n\n // Compute x coordinate values\n var dimDx;\n var dimX0;\n var dimX;\n\n if(numDimensions > 1) {\n dimDx = (parcatsViewModel.width - 2 * categoryLabelPad - dimWidth) / (numDimensions - 1);\n } else {\n dimDx = 0;\n }\n dimX0 = categoryLabelPad;\n dimX = dimX0 + dimDx * displayInd;\n\n // Compute categories\n var categories = [];\n var maxCats = parcatsViewModel.model.maxCats;\n var numCats = dimensionModel.categories.length;\n var catSpacing = 8;\n var totalCount = dimensionModel.count;\n var totalHeight = parcatsViewModel.height - catSpacing * (maxCats - 1);\n var nextCatHeight;\n var nextCatModel;\n var nextCat;\n var catInd;\n var catDisplayInd;\n\n // Compute starting Y offset\n var nextCatY = (maxCats - numCats) * catSpacing / 2.0;\n\n // Compute category ordering\n var categoryIndInfo = dimensionModel.categories.map(function(c) {\n return {displayInd: c.displayInd, categoryInd: c.categoryInd};\n });\n\n categoryIndInfo.sort(function(a, b) {\n return a.displayInd - b.displayInd;\n });\n\n for(catDisplayInd = 0; catDisplayInd < numCats; catDisplayInd++) {\n catInd = categoryIndInfo[catDisplayInd].categoryInd;\n nextCatModel = dimensionModel.categories[catInd];\n\n if(totalCount > 0) {\n nextCatHeight = (nextCatModel.count / totalCount) * totalHeight;\n } else {\n nextCatHeight = 0;\n }\n\n nextCat = {\n key: nextCatModel.valueInds[0],\n model: nextCatModel,\n width: dimWidth,\n height: nextCatHeight,\n y: nextCatModel.dragY !== null ? nextCatModel.dragY : nextCatY,\n bands: [],\n parcatsViewModel: parcatsViewModel\n };\n\n nextCatY = nextCatY + nextCatHeight + catSpacing;\n categories.push(nextCat);\n }\n\n return {\n key: dimensionModel.dimensionInd,\n x: dimensionModel.dragX !== null ? dimensionModel.dragX : dimX,\n y: 0,\n width: dimWidth,\n model: dimensionModel,\n categories: categories,\n parcatsViewModel: parcatsViewModel,\n dragCategoryDisplayInd: null,\n dragDimensionDisplayInd: null,\n initialDragDimensionDisplayInds: null,\n initialDragCategoryDisplayInds: null,\n dragHasMoved: null,\n potentialClickBand: null\n };\n}\n\n// JSDoc typedefs\n// ==============\n/**\n * @typedef {Object} Layout\n * Object containing svg layout information\n *\n * @property {Number} width (pixels)\n * Usable width for Figure (after margins are removed)\n * @property {Number} height (pixels)\n * Usable height for Figure (after margins are removed)\n * @property {Margin} margin\n * Margin around the Figure (pixels)\n */\n\n/**\n * @typedef {Object} Margin\n * Object containing padding information in pixels\n *\n * @property {Number} t\n * Top margin\n * @property {Number} r\n * Right margin\n * @property {Number} b\n * Bottom margin\n * @property {Number} l\n * Left margin\n */\n\n/**\n * @typedef {Object} Font\n * Object containing font information\n *\n * @property {Number} size: Font size\n * @property {String} color: Font color\n * @property {String} family: Font family\n */\n\n/**\n * @typedef {Object} ParcatsViewModel\n * Object containing calculated parcats view information\n *\n * These are quantities that require Layout information to calculate\n * @property key\n * Unique key for this model\n * @property {ParcatsModel} model\n * Source parcats model\n * @property {Array.} dimensions\n * Array of dimension view models\n * @property {Number} width\n * Width for this trace (pixels)\n * @property {Number} height\n * Height for this trace (pixels)\n * @property {Number} x\n * X position of this trace with respect to the Figure (pixels)\n * @property {Number} y\n * Y position of this trace with respect to the Figure (pixels)\n * @property {String} hoveron\n * Hover interaction mode. One of: 'category', 'color', or 'dimension'\n * @property {Array.} hoverinfoItems\n * Info to display on hover. Array with a combination of 'counts' and/or 'probabilities', or 'none', or 'skip'\n * @property {String} arrangement\n * Category arrangement. One of: 'perpendicular', 'freeform', or 'fixed'\n * @property {Boolean} bundlecolors\n * Whether paths should be sorted so that like colors are bundled together as they pass through categories\n * @property {String} sortpaths\n * If 'forward' then sort paths based on dimensions from left to right. If 'backward' sort based on dimensions\n * from right to left\n * @property {Font} labelfont\n * Font for the dimension labels\n * @property {Font} categorylabelfont\n * Font for the category labels\n * @property {String} pathShape\n * The shape of the paths. Either 'linear' or 'hspline'.\n * @property {DimensionViewModel|null} dragDimension\n * Dimension currently being dragged. Null if no drag in progress\n * @property {Margin} margin\n * Margin around the Figure\n * @property {Object} graphDiv\n * Top-level graph div element\n * @property {Object} traceSelection\n * D3 selection of this view models trace group element\n * @property {Object} pathSelection\n * D3 selection of this view models path elements\n * @property {Object} dimensionSelection\n * D3 selection of this view models dimension group element\n */\n\n/**\n * @typedef {Object} DimensionViewModel\n * Object containing calculated parcats dimension view information\n *\n * These are quantities that require Layout information to calculate\n * @property key\n * Unique key for this model\n * @property {DimensionModel} model\n * Source dimension model\n * @property {Number} x\n * X position of the center of this dimension with respect to the Figure (pixels)\n * @property {Number} y\n * Y position of the top of this dimension with respect to the Figure (pixels)\n * @property {Number} width\n * Width of categories in this dimension (pixels)\n * @property {ParcatsViewModel} parcatsViewModel\n * The parent trace's view model\n * @property {Array.} categories\n * Dimensions category view models\n * @property {Number|null} dragCategoryDisplayInd\n * Display index of category currently being dragged. null if no category is being dragged\n * @property {Number|null} dragDimensionDisplayInd\n * Display index of the dimension being dragged. null if no dimension is being dragged\n * @property {Array.|null} initialDragDimensionDisplayInds\n * Dimensions display indexes at the beginning of the current drag. null if no dimension is being dragged\n * @property {Array.|null} initialDragCategoryDisplayInds\n * Category display indexes for the at the beginning of the current drag. null if no category is being dragged\n * @property {HTMLElement} potentialClickBand\n * Band under mouse when current drag began. If no drag movement takes place then a click will be emitted for this\n * band. Null if not drag in progress.\n * @property {Boolean} dragHasMoved\n * True if there is an active drag and the drag has moved. If drag doesn't move before being ended then\n * this may be interpreted as a click. Null if no drag in progress\n */\n\n/**\n * @typedef {Object} CategoryViewModel\n * Object containing calculated parcats category view information\n *\n * These are quantities that require Layout information to calculate\n * @property key\n * Unique key for this model\n * @property {CategoryModel} model\n * Source category model\n * @property {Number} width\n * Width for this category (pixels)\n * @property {Number} height\n * Height for this category (pixels)\n * @property {Number} y\n * Y position of this cateogry with respect to the Figure (pixels)\n * @property {Array.} bands\n * Array of color bands inside the category\n * @property {ParcatsViewModel} parcatsViewModel\n * The parent trace's view model\n */\n\n/**\n * @typedef {Object} CategoryBandViewModel\n * Object containing calculated category band information. A category band is a region inside a category covering\n * paths of a single color\n *\n * @property key\n * Unique key for this model\n * @property color\n * Band color\n * @property rawColor\n * Raw color value for band\n * @property {Number} width\n * Band width\n * @property {Number} height\n * Band height\n * @property {Number} y\n * Y position of top of the band with respect to the category\n * @property {Number} count\n * The number of samples represented by the band\n * @property {CategoryViewModel} categoryViewModel\n * The parent categorie's view model\n * @property {ParcatsViewModel} parcatsViewModel\n * The parent trace's view model\n */\n\n/**\n * @typedef {Object} PathViewModel\n * Object containing calculated parcats path view information\n *\n * These are quantities that require Layout information to calculate\n * @property key\n * Unique key for this model\n * @property {PathModel} model\n * Source path model\n * @property {Number} height\n * Height of this path (pixels)\n * @property {Array.} leftXs\n * The x position of the left edge of each display dimension\n * @property {Array.} topYs\n * The y position of the top of the path for each display dimension\n * @property {Array.} dimWidths\n * The width of each display dimension\n * @property {String} svgD\n * SVG path \"d\" attribute string\n * @property {ParcatsViewModel} parcatsViewModel\n * The parent trace's view model\n */\n\n},{\"../../components/drawing\":388,\"../../components/fx\":406,\"../../lib\":503,\"../../lib/svg_text_utils\":529,\"../../plot_api/plot_api\":540,\"@plotly/d3\":58,\"d3-interpolate\":116,\"tinycolor2\":312}],886:[function(_dereq_,module,exports){\n'use strict';\n\n\nvar parcats = _dereq_('./parcats');\n\n/**\n * Create / update parcat traces\n *\n * @param {Object} graphDiv\n * @param {Array.} parcatsModels\n */\nmodule.exports = function plot(graphDiv, parcatsModels, transitionOpts, makeOnCompleteCallback) {\n var fullLayout = graphDiv._fullLayout;\n var svg = fullLayout._paper;\n var size = fullLayout._size;\n\n parcats(\n graphDiv,\n svg,\n parcatsModels,\n {\n width: size.w,\n height: size.h,\n margin: {\n t: size.t,\n r: size.r,\n b: size.b,\n l: size.l\n }\n },\n transitionOpts,\n makeOnCompleteCallback\n );\n};\n\n},{\"./parcats\":885}],887:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar axesAttrs = _dereq_('../../plots/cartesian/layout_attributes');\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar domainAttrs = _dereq_('../../plots/domain').attributes;\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar templatedArray = _dereq_('../../plot_api/plot_template').templatedArray;\n\nmodule.exports = {\n domain: domainAttrs({name: 'parcoords', trace: true, editType: 'plot'}),\n\n labelangle: {\n valType: 'angle',\n dflt: 0,\n editType: 'plot',\n },\n\n labelside: {\n valType: 'enumerated',\n values: ['top', 'bottom'],\n dflt: 'top',\n editType: 'plot',\n },\n\n labelfont: fontAttrs({\n editType: 'plot',\n }),\n tickfont: fontAttrs({\n editType: 'plot',\n }),\n rangefont: fontAttrs({\n editType: 'plot',\n }),\n\n dimensions: templatedArray('dimension', {\n label: {\n valType: 'string',\n editType: 'plot',\n },\n // TODO: better way to determine ordinal vs continuous axes,\n // so users can use tickvals/ticktext with a continuous axis.\n tickvals: extendFlat({}, axesAttrs.tickvals, {\n editType: 'plot',\n }),\n ticktext: extendFlat({}, axesAttrs.ticktext, {\n editType: 'plot',\n }),\n tickformat: extendFlat({}, axesAttrs.tickformat, {\n editType: 'plot'\n }),\n visible: {\n valType: 'boolean',\n dflt: true,\n editType: 'plot',\n },\n range: {\n valType: 'info_array',\n items: [\n {valType: 'number', editType: 'plot'},\n {valType: 'number', editType: 'plot'}\n ],\n editType: 'plot',\n },\n constraintrange: {\n valType: 'info_array',\n freeLength: true,\n dimensions: '1-2',\n items: [\n {valType: 'any', editType: 'plot'},\n {valType: 'any', editType: 'plot'}\n ],\n editType: 'plot',\n },\n multiselect: {\n valType: 'boolean',\n dflt: true,\n editType: 'plot',\n },\n values: {\n valType: 'data_array',\n editType: 'calc',\n },\n editType: 'calc',\n }),\n\n line: extendFlat({editType: 'calc'},\n colorScaleAttrs('line', {\n // the default autocolorscale isn't quite usable for parcoords due to context ambiguity around 0 (grey, off-white)\n // autocolorscale therefore defaults to false too, to avoid being overridden by the blue-white-red autocolor palette\n colorscaleDflt: 'Viridis',\n autoColorDflt: false,\n editTypeOverride: 'calc'\n })\n )\n};\n\n},{\"../../components/colorscale/attributes\":373,\"../../lib/extend\":493,\"../../plot_api/plot_template\":543,\"../../plots/cartesian/layout_attributes\":569,\"../../plots/domain\":584,\"../../plots/font_attributes\":585}],888:[function(_dereq_,module,exports){\n'use strict';\n\nvar c = _dereq_('./constants');\nvar d3 = _dereq_('@plotly/d3');\nvar keyFun = _dereq_('../../lib/gup').keyFun;\nvar repeat = _dereq_('../../lib/gup').repeat;\nvar sortAsc = _dereq_('../../lib').sorterAsc;\nvar strTranslate = _dereq_('../../lib').strTranslate;\n\nvar snapRatio = c.bar.snapRatio;\nfunction snapOvershoot(v, vAdjacent) { return v * (1 - snapRatio) + vAdjacent * snapRatio; }\n\nvar snapClose = c.bar.snapClose;\nfunction closeToCovering(v, vAdjacent) { return v * (1 - snapClose) + vAdjacent * snapClose; }\n\n// snap for the low end of a range on an ordinal scale\n// on an ordinal scale, always show some overshoot from the exact value,\n// so it's clear we're covering it\n// find the interval we're in, and snap to 1/4 the distance to the next\n// these two could be unified at a slight loss of readability / perf\nfunction ordinalScaleSnap(isHigh, a, v, existingRanges) {\n if(overlappingExisting(v, existingRanges)) return v;\n\n var dir = isHigh ? -1 : 1;\n\n var first = 0;\n var last = a.length - 1;\n if(dir < 0) {\n var tmp = first;\n first = last;\n last = tmp;\n }\n\n var aHere = a[first];\n var aPrev = aHere;\n for(var i = first; dir * i < dir * last; i += dir) {\n var nextI = i + dir;\n var aNext = a[nextI];\n\n // very close to the previous - snap down to it\n if(dir * v < dir * closeToCovering(aHere, aNext)) return snapOvershoot(aHere, aPrev);\n if(dir * v < dir * aNext || nextI === last) return snapOvershoot(aNext, aHere);\n\n aPrev = aHere;\n aHere = aNext;\n }\n}\n\nfunction overlappingExisting(v, existingRanges) {\n for(var i = 0; i < existingRanges.length; i++) {\n if(v >= existingRanges[i][0] && v <= existingRanges[i][1]) return true;\n }\n return false;\n}\n\nfunction barHorizontalSetup(selection) {\n selection\n .attr('x', -c.bar.captureWidth / 2)\n .attr('width', c.bar.captureWidth);\n}\n\nfunction backgroundBarHorizontalSetup(selection) {\n selection\n .attr('visibility', 'visible')\n .style('visibility', 'visible')\n .attr('fill', 'yellow')\n .attr('opacity', 0);\n}\n\nfunction setHighlight(d) {\n if(!d.brush.filterSpecified) {\n return '0,' + d.height;\n }\n\n var pixelRanges = unitToPx(d.brush.filter.getConsolidated(), d.height);\n var dashArray = [0]; // we start with a 0 length selection as filter ranges are inclusive, not exclusive\n var p, sectionHeight, iNext;\n var currentGap = pixelRanges.length ? pixelRanges[0][0] : null;\n for(var i = 0; i < pixelRanges.length; i++) {\n p = pixelRanges[i];\n sectionHeight = p[1] - p[0];\n dashArray.push(currentGap);\n dashArray.push(sectionHeight);\n iNext = i + 1;\n if(iNext < pixelRanges.length) {\n currentGap = pixelRanges[iNext][0] - p[1];\n }\n }\n dashArray.push(d.height);\n // d.height is added at the end to ensure that (1) we have an even number of dasharray points, MDN page says\n // \"If an odd number of values is provided, then the list of values is repeated to yield an even number of values.\"\n // and (2) it's _at least_ as long as the full height (even if range is minuscule and at the bottom) though this\n // may not be necessary, maybe duplicating the last point would do too. But no harm in a longer dasharray than line.\n return dashArray;\n}\n\nfunction unitToPx(unitRanges, height) {\n return unitRanges.map(function(pr) {\n return pr.map(function(v) { return Math.max(0, v * height); }).sort(sortAsc);\n });\n}\n\n// is the cursor over the north, middle, or south of a bar?\n// the end handles extend over the last 10% of the bar\nfunction getRegion(fPix, y) {\n var pad = c.bar.handleHeight;\n if(y > fPix[1] + pad || y < fPix[0] - pad) return;\n if(y >= 0.9 * fPix[1] + 0.1 * fPix[0]) return 'n';\n if(y <= 0.9 * fPix[0] + 0.1 * fPix[1]) return 's';\n return 'ns';\n}\n\nfunction clearCursor() {\n d3.select(document.body)\n .style('cursor', null);\n}\n\nfunction styleHighlight(selection) {\n // stroke-dasharray is used to minimize the number of created DOM nodes, because the requirement calls for up to\n // 1000 individual selections on an axis, and there can be 60 axes per parcoords, and multiple parcoords per\n // dashboard. The technique is similar to https://codepen.io/monfera/pen/rLYqWR and using a `polyline` with\n // multiple sections, or a `path` element via its `d` attribute would also be DOM-sparing alternatives.\n selection.attr('stroke-dasharray', setHighlight);\n}\n\nfunction renderHighlight(root, tweenCallback) {\n var bar = d3.select(root).selectAll('.highlight, .highlight-shadow');\n var barToStyle = tweenCallback ? bar.transition().duration(c.bar.snapDuration).each('end', tweenCallback) : bar;\n styleHighlight(barToStyle);\n}\n\nfunction getInterval(d, y) {\n var b = d.brush;\n var active = b.filterSpecified;\n var closestInterval = NaN;\n var out = {};\n var i;\n\n if(active) {\n var height = d.height;\n var intervals = b.filter.getConsolidated();\n var pixIntervals = unitToPx(intervals, height);\n var hoveredInterval = NaN;\n var previousInterval = NaN;\n var nextInterval = NaN;\n for(i = 0; i <= pixIntervals.length; i++) {\n var p = pixIntervals[i];\n if(p && p[0] <= y && y <= p[1]) {\n // over a bar\n hoveredInterval = i;\n break;\n } else {\n // between bars, or before/after the first/last bar\n previousInterval = i ? i - 1 : NaN;\n if(p && p[0] > y) {\n nextInterval = i;\n break; // no point continuing as intervals are non-overlapping and sorted; could use log search\n }\n }\n }\n\n closestInterval = hoveredInterval;\n if(isNaN(closestInterval)) {\n if(isNaN(previousInterval) || isNaN(nextInterval)) {\n closestInterval = isNaN(previousInterval) ? nextInterval : previousInterval;\n } else {\n closestInterval = (y - pixIntervals[previousInterval][1] < pixIntervals[nextInterval][0] - y) ?\n previousInterval : nextInterval;\n }\n }\n\n if(!isNaN(closestInterval)) {\n var fPix = pixIntervals[closestInterval];\n var region = getRegion(fPix, y);\n\n if(region) {\n out.interval = intervals[closestInterval];\n out.intervalPix = fPix;\n out.region = region;\n }\n }\n }\n\n if(d.ordinal && !out.region) {\n var a = d.unitTickvals;\n var unitLocation = d.unitToPaddedPx.invert(y);\n for(i = 0; i < a.length; i++) {\n var rangei = [\n a[Math.max(i - 1, 0)] * 0.25 + a[i] * 0.75,\n a[Math.min(i + 1, a.length - 1)] * 0.25 + a[i] * 0.75\n ];\n if(unitLocation >= rangei[0] && unitLocation <= rangei[1]) {\n out.clickableOrdinalRange = rangei;\n break;\n }\n }\n }\n\n return out;\n}\n\nfunction dragstart(lThis, d) {\n d3.event.sourceEvent.stopPropagation();\n var y = d.height - d3.mouse(lThis)[1] - 2 * c.verticalPadding;\n var unitLocation = d.unitToPaddedPx.invert(y);\n var b = d.brush;\n var interval = getInterval(d, y);\n var unitRange = interval.interval;\n var s = b.svgBrush;\n s.wasDragged = false; // we start assuming there won't be a drag - useful for reset\n s.grabbingBar = interval.region === 'ns';\n if(s.grabbingBar) {\n var pixelRange = unitRange.map(d.unitToPaddedPx);\n s.grabPoint = y - pixelRange[0] - c.verticalPadding;\n s.barLength = pixelRange[1] - pixelRange[0];\n }\n s.clickableOrdinalRange = interval.clickableOrdinalRange;\n s.stayingIntervals = (d.multiselect && b.filterSpecified) ? b.filter.getConsolidated() : [];\n if(unitRange) {\n s.stayingIntervals = s.stayingIntervals.filter(function(int2) {\n return int2[0] !== unitRange[0] && int2[1] !== unitRange[1];\n });\n }\n s.startExtent = interval.region ? unitRange[interval.region === 's' ? 1 : 0] : unitLocation;\n d.parent.inBrushDrag = true;\n s.brushStartCallback();\n}\n\nfunction drag(lThis, d) {\n d3.event.sourceEvent.stopPropagation();\n var y = d.height - d3.mouse(lThis)[1] - 2 * c.verticalPadding;\n var s = d.brush.svgBrush;\n s.wasDragged = true;\n s._dragging = true;\n\n if(s.grabbingBar) { // moving the bar\n s.newExtent = [y - s.grabPoint, y + s.barLength - s.grabPoint].map(d.unitToPaddedPx.invert);\n } else { // south/north drag or new bar creation\n s.newExtent = [s.startExtent, d.unitToPaddedPx.invert(y)].sort(sortAsc);\n }\n\n d.brush.filterSpecified = true;\n s.extent = s.stayingIntervals.concat([s.newExtent]);\n s.brushCallback(d);\n renderHighlight(lThis.parentNode);\n}\n\nfunction dragend(lThis, d) {\n var brush = d.brush;\n var filter = brush.filter;\n var s = brush.svgBrush;\n\n if(!s._dragging) { // i.e. click\n // mock zero drag\n mousemove(lThis, d);\n drag(lThis, d);\n // remember it is a click not a drag\n d.brush.svgBrush.wasDragged = false;\n }\n s._dragging = false;\n\n var e = d3.event;\n e.sourceEvent.stopPropagation();\n var grabbingBar = s.grabbingBar;\n s.grabbingBar = false;\n s.grabLocation = undefined;\n d.parent.inBrushDrag = false;\n clearCursor(); // instead of clearing, a nicer thing would be to set it according to current location\n if(!s.wasDragged) { // a click+release on the same spot (ie. w/o dragging) means a bar or full reset\n s.wasDragged = undefined; // logic-wise unneeded, just shows `wasDragged` has no longer a meaning\n if(s.clickableOrdinalRange) {\n if(brush.filterSpecified && d.multiselect) {\n s.extent.push(s.clickableOrdinalRange);\n } else {\n s.extent = [s.clickableOrdinalRange];\n brush.filterSpecified = true;\n }\n } else if(grabbingBar) {\n s.extent = s.stayingIntervals;\n if(s.extent.length === 0) {\n brushClear(brush);\n }\n } else {\n brushClear(brush);\n }\n s.brushCallback(d);\n renderHighlight(lThis.parentNode);\n s.brushEndCallback(brush.filterSpecified ? filter.getConsolidated() : []);\n return; // no need to fuse intervals or snap to ordinals, so we can bail early\n }\n\n var mergeIntervals = function() {\n // Key piece of logic: once the button is released, possibly overlapping intervals will be fused:\n // Here it's done immediately on click release while on ordinal snap transition it's done at the end\n filter.set(filter.getConsolidated());\n };\n\n if(d.ordinal) {\n var a = d.unitTickvals;\n if(a[a.length - 1] < a[0]) a.reverse();\n s.newExtent = [\n ordinalScaleSnap(0, a, s.newExtent[0], s.stayingIntervals),\n ordinalScaleSnap(1, a, s.newExtent[1], s.stayingIntervals)\n ];\n var hasNewExtent = s.newExtent[1] > s.newExtent[0];\n s.extent = s.stayingIntervals.concat(hasNewExtent ? [s.newExtent] : []);\n if(!s.extent.length) {\n brushClear(brush);\n }\n s.brushCallback(d);\n if(hasNewExtent) {\n // merging intervals post the snap tween\n renderHighlight(lThis.parentNode, mergeIntervals);\n } else {\n // if no new interval, don't animate, just redraw the highlight immediately\n mergeIntervals();\n renderHighlight(lThis.parentNode);\n }\n } else {\n mergeIntervals(); // merging intervals immediately\n }\n s.brushEndCallback(brush.filterSpecified ? filter.getConsolidated() : []);\n}\n\nfunction mousemove(lThis, d) {\n var y = d.height - d3.mouse(lThis)[1] - 2 * c.verticalPadding;\n var interval = getInterval(d, y);\n\n var cursor = 'crosshair';\n if(interval.clickableOrdinalRange) cursor = 'pointer';\n else if(interval.region) cursor = interval.region + '-resize';\n d3.select(document.body)\n .style('cursor', cursor);\n}\n\nfunction attachDragBehavior(selection) {\n // There's some fiddling with pointer cursor styling so that the cursor preserves its shape while dragging a brush\n // even if the cursor strays from the interacting bar, which is bound to happen as bars are thin and the user\n // will inevitably leave the hotspot strip. In this regard, it does something similar to what the D3 brush would do.\n selection\n .on('mousemove', function(d) {\n d3.event.preventDefault();\n if(!d.parent.inBrushDrag) mousemove(this, d);\n })\n .on('mouseleave', function(d) {\n if(!d.parent.inBrushDrag) clearCursor();\n })\n .call(d3.behavior.drag()\n .on('dragstart', function(d) { dragstart(this, d); })\n .on('drag', function(d) { drag(this, d); })\n .on('dragend', function(d) { dragend(this, d); })\n );\n}\n\nfunction startAsc(a, b) { return a[0] - b[0]; }\n\nfunction renderAxisBrush(axisBrush, paperColor) {\n var background = axisBrush.selectAll('.background').data(repeat);\n\n background.enter()\n .append('rect')\n .classed('background', true)\n .call(barHorizontalSetup)\n .call(backgroundBarHorizontalSetup)\n .style('pointer-events', 'auto') // parent pointer events are disabled; we must have it to register events\n .attr('transform', strTranslate(0, c.verticalPadding));\n\n background\n .call(attachDragBehavior)\n .attr('height', function(d) {\n return d.height - c.verticalPadding;\n });\n\n var highlightShadow = axisBrush.selectAll('.highlight-shadow').data(repeat); // we have a set here, can't call it `extent`\n\n highlightShadow.enter()\n .append('line')\n .classed('highlight-shadow', true)\n .attr('x', -c.bar.width / 2)\n .attr('stroke-width', c.bar.width + c.bar.strokeWidth)\n .attr('stroke', paperColor)\n .attr('opacity', c.bar.strokeOpacity)\n .attr('stroke-linecap', 'butt');\n\n highlightShadow\n .attr('y1', function(d) { return d.height; })\n .call(styleHighlight);\n\n var highlight = axisBrush.selectAll('.highlight').data(repeat); // we have a set here, can't call it `extent`\n\n highlight.enter()\n .append('line')\n .classed('highlight', true)\n .attr('x', -c.bar.width / 2)\n .attr('stroke-width', c.bar.width - c.bar.strokeWidth)\n .attr('stroke', c.bar.fillColor)\n .attr('opacity', c.bar.fillOpacity)\n .attr('stroke-linecap', 'butt');\n\n highlight\n .attr('y1', function(d) { return d.height; })\n .call(styleHighlight);\n}\n\nfunction ensureAxisBrush(axisOverlays, paperColor) {\n var axisBrush = axisOverlays.selectAll('.' + c.cn.axisBrush)\n .data(repeat, keyFun);\n\n axisBrush.enter()\n .append('g')\n .classed(c.cn.axisBrush, true);\n\n renderAxisBrush(axisBrush, paperColor);\n}\n\nfunction getBrushExtent(brush) {\n return brush.svgBrush.extent.map(function(e) {return e.slice();});\n}\n\nfunction brushClear(brush) {\n brush.filterSpecified = false;\n brush.svgBrush.extent = [[-Infinity, Infinity]];\n}\n\nfunction axisBrushMoved(callback) {\n return function axisBrushMoved(dimension) {\n var brush = dimension.brush;\n var extent = getBrushExtent(brush);\n var newExtent = extent.slice();\n brush.filter.set(newExtent);\n callback();\n };\n}\n\nfunction dedupeRealRanges(intervals) {\n // Fuses elements of intervals if they overlap, yielding discontiguous intervals, results.length <= intervals.length\n // Currently uses closed intervals, ie. dedupeRealRanges([[400, 800], [300, 400]]) -> [300, 800]\n var queue = intervals.slice();\n var result = [];\n var currentInterval;\n var current = queue.shift();\n while(current) { // [].shift === undefined, so we don't descend into an empty array\n currentInterval = current.slice();\n while((current = queue.shift()) && current[0] <= /* right-open interval would need `<` */ currentInterval[1]) {\n currentInterval[1] = Math.max(currentInterval[1], current[1]);\n }\n result.push(currentInterval);\n }\n\n if(\n result.length === 1 &&\n result[0][0] > result[0][1]\n ) {\n // discard result\n result = [];\n }\n\n return result;\n}\n\nfunction makeFilter() {\n var filter = [];\n var consolidated;\n var bounds;\n return {\n set: function(a) {\n filter = a\n .map(function(d) { return d.slice().sort(sortAsc); })\n .sort(startAsc);\n\n // handle unselected case\n if(filter.length === 1 &&\n filter[0][0] === -Infinity &&\n filter[0][1] === Infinity) {\n filter = [[0, -1]];\n }\n\n consolidated = dedupeRealRanges(filter);\n bounds = filter.reduce(function(p, n) {\n return [Math.min(p[0], n[0]), Math.max(p[1], n[1])];\n }, [Infinity, -Infinity]);\n },\n get: function() { return filter.slice(); },\n getConsolidated: function() { return consolidated; },\n getBounds: function() { return bounds; }\n };\n}\n\nfunction makeBrush(state, rangeSpecified, initialRange, brushStartCallback, brushCallback, brushEndCallback) {\n var filter = makeFilter();\n filter.set(initialRange);\n return {\n filter: filter,\n filterSpecified: rangeSpecified, // there's a difference between not filtering and filtering a non-proper subset\n svgBrush: {\n extent: [], // this is where the svgBrush writes contents into\n brushStartCallback: brushStartCallback,\n brushCallback: axisBrushMoved(brushCallback),\n brushEndCallback: brushEndCallback\n }\n };\n}\n\n// for use by supplyDefaults, but it needed tons of pieces from here so\n// seemed to make more sense just to put the whole routine here\nfunction cleanRanges(ranges, dimension) {\n if(Array.isArray(ranges[0])) {\n ranges = ranges.map(function(ri) { return ri.sort(sortAsc); });\n\n if(!dimension.multiselect) ranges = [ranges[0]];\n else ranges = dedupeRealRanges(ranges.sort(startAsc));\n } else ranges = [ranges.sort(sortAsc)];\n\n // ordinal snapping\n if(dimension.tickvals) {\n var sortedTickVals = dimension.tickvals.slice().sort(sortAsc);\n ranges = ranges.map(function(ri) {\n var rSnapped = [\n ordinalScaleSnap(0, sortedTickVals, ri[0], []),\n ordinalScaleSnap(1, sortedTickVals, ri[1], [])\n ];\n if(rSnapped[1] > rSnapped[0]) return rSnapped;\n })\n .filter(function(ri) { return ri; });\n\n if(!ranges.length) return;\n }\n return ranges.length > 1 ? ranges : ranges[0];\n}\n\nmodule.exports = {\n makeBrush: makeBrush,\n ensureAxisBrush: ensureAxisBrush,\n cleanRanges: cleanRanges\n};\n\n},{\"../../lib\":503,\"../../lib/gup\":500,\"./constants\":891,\"@plotly/d3\":58}],889:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar getModuleCalcData = _dereq_('../../plots/get_data').getModuleCalcData;\nvar parcoordsPlot = _dereq_('./plot');\nvar xmlnsNamespaces = _dereq_('../../constants/xmlns_namespaces');\n\nexports.name = 'parcoords';\n\nexports.plot = function(gd) {\n var calcData = getModuleCalcData(gd.calcdata, 'parcoords')[0];\n if(calcData.length) parcoordsPlot(gd, calcData);\n};\n\nexports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n var hadParcoords = (oldFullLayout._has && oldFullLayout._has('parcoords'));\n var hasParcoords = (newFullLayout._has && newFullLayout._has('parcoords'));\n\n if(hadParcoords && !hasParcoords) {\n oldFullLayout._paperdiv.selectAll('.parcoords').remove();\n oldFullLayout._glimages.selectAll('*').remove();\n }\n};\n\nexports.toSVG = function(gd) {\n var imageRoot = gd._fullLayout._glimages;\n var root = d3.select(gd).selectAll('.svg-container');\n var canvases = root.filter(function(d, i) {return i === root.size() - 1;})\n .selectAll('.gl-canvas-context, .gl-canvas-focus');\n\n function canvasToImage() {\n var canvas = this;\n var imageData = canvas.toDataURL('image/png');\n var image = imageRoot.append('svg:image');\n\n image.attr({\n xmlns: xmlnsNamespaces.svg,\n 'xlink:href': imageData,\n preserveAspectRatio: 'none',\n x: 0,\n y: 0,\n width: canvas.style.width,\n height: canvas.style.height\n });\n }\n\n canvases.each(canvasToImage);\n\n // Chrome / Safari bug workaround - browser apparently loses connection to the defined pattern\n // Without the workaround, these browsers 'lose' the filter brush styling (color etc.) after a snapshot\n // on a subsequent interaction.\n // Firefox works fine without this workaround\n window.setTimeout(function() {\n d3.selectAll('#filterBarPattern')\n .attr('id', 'filterBarPattern');\n }, 60);\n};\n\n},{\"../../constants/xmlns_namespaces\":480,\"../../plots/get_data\":593,\"./plot\":898,\"@plotly/d3\":58}],890:[function(_dereq_,module,exports){\n'use strict';\n\nvar isArrayOrTypedArray = _dereq_('../../lib').isArrayOrTypedArray;\nvar Colorscale = _dereq_('../../components/colorscale');\nvar wrap = _dereq_('../../lib/gup').wrap;\n\nmodule.exports = function calc(gd, trace) {\n var lineColor;\n var cscale;\n\n if(Colorscale.hasColorscale(trace, 'line') && isArrayOrTypedArray(trace.line.color)) {\n lineColor = trace.line.color;\n cscale = Colorscale.extractOpts(trace.line).colorscale;\n\n Colorscale.calc(gd, trace, {\n vals: lineColor,\n containerStr: 'line',\n cLetter: 'c'\n });\n } else {\n lineColor = constHalf(trace._length);\n cscale = [[0, trace.line.color], [1, trace.line.color]];\n }\n\n return wrap({lineColor: lineColor, cscale: cscale});\n};\n\nfunction constHalf(len) {\n var out = new Array(len);\n for(var i = 0; i < len; i++) {\n out[i] = 0.5;\n }\n return out;\n}\n\n},{\"../../components/colorscale\":378,\"../../lib\":503,\"../../lib/gup\":500}],891:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = {\n maxDimensionCount: 60, // this cannot be increased without WebGL code refactoring\n overdrag: 45,\n verticalPadding: 2, // otherwise, horizontal lines on top or bottom are of lower width\n tickDistance: 50,\n canvasPixelRatio: 1,\n blockLineCount: 5000,\n layers: ['contextLineLayer', 'focusLineLayer', 'pickLineLayer'],\n axisTitleOffset: 28,\n axisExtentOffset: 10,\n deselectedLineColor: '#777',\n bar: {\n width: 4, // Visible width of the filter bar\n captureWidth: 10, // Mouse-sensitive width for interaction (Fitts law)\n fillColor: 'magenta', // Color of the filter bar fill\n fillOpacity: 1, // Filter bar fill opacity\n snapDuration: 150, // tween duration in ms for brush snap for ordinal axes\n snapRatio: 0.25, // ratio of bar extension relative to the distance between two adjacent ordinal values\n snapClose: 0.01, // fraction of inter-value distance to snap to the closer one, even if you're not over it\n strokeOpacity: 1, // Filter bar side stroke opacity\n strokeWidth: 1, // Filter bar side stroke width in pixels\n handleHeight: 8, // Height of the filter bar vertical resize areas on top and bottom\n handleOpacity: 1, // Opacity of the filter bar vertical resize areas on top and bottom\n handleOverlap: 0 // A larger than 0 value causes overlaps with the filter bar, represented as pixels\n },\n cn: {\n axisExtentText: 'axis-extent-text',\n parcoordsLineLayers: 'parcoords-line-layers',\n parcoordsLineLayer: 'parcoords-lines',\n parcoords: 'parcoords',\n parcoordsControlView: 'parcoords-control-view',\n yAxis: 'y-axis',\n axisOverlays: 'axis-overlays',\n axis: 'axis',\n axisHeading: 'axis-heading',\n axisTitle: 'axis-title',\n axisExtent: 'axis-extent',\n axisExtentTop: 'axis-extent-top',\n axisExtentTopText: 'axis-extent-top-text',\n axisExtentBottom: 'axis-extent-bottom',\n axisExtentBottomText: 'axis-extent-bottom-text',\n axisBrush: 'axis-brush'\n },\n id: {\n filterBarPattern: 'filter-bar-pattern'\n\n }\n};\n\n},{}],892:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar hasColorscale = _dereq_('../../components/colorscale/helpers').hasColorscale;\nvar colorscaleDefaults = _dereq_('../../components/colorscale/defaults');\nvar handleDomainDefaults = _dereq_('../../plots/domain').defaults;\nvar handleArrayContainerDefaults = _dereq_('../../plots/array_container_defaults');\nvar Axes = _dereq_('../../plots/cartesian/axes');\n\nvar attributes = _dereq_('./attributes');\nvar axisBrush = _dereq_('./axisbrush');\nvar maxDimensionCount = _dereq_('./constants').maxDimensionCount;\nvar mergeLength = _dereq_('./merge_length');\n\nfunction handleLineDefaults(traceIn, traceOut, defaultColor, layout, coerce) {\n var lineColor = coerce('line.color', defaultColor);\n\n if(hasColorscale(traceIn, 'line') && Lib.isArrayOrTypedArray(lineColor)) {\n if(lineColor.length) {\n coerce('line.colorscale');\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: 'line.', cLetter: 'c'});\n // TODO: I think it would be better to keep showing lines beyond the last line color\n // but I'm not sure what color to give these lines - probably black or white\n // depending on the background color?\n return lineColor.length;\n } else {\n traceOut.line.color = defaultColor;\n }\n }\n return Infinity;\n}\n\nfunction dimensionDefaults(dimensionIn, dimensionOut, parentOut, opts) {\n function coerce(attr, dflt) {\n return Lib.coerce(dimensionIn, dimensionOut, attributes.dimensions, attr, dflt);\n }\n\n var values = coerce('values');\n var visible = coerce('visible');\n if(!(values && values.length)) {\n visible = dimensionOut.visible = false;\n }\n\n if(visible) {\n coerce('label');\n coerce('tickvals');\n coerce('ticktext');\n coerce('tickformat');\n var range = coerce('range');\n\n dimensionOut._ax = {\n _id: 'y',\n type: 'linear',\n showexponent: 'all',\n exponentformat: 'B',\n range: range\n };\n\n Axes.setConvert(dimensionOut._ax, opts.layout);\n\n coerce('multiselect');\n var constraintRange = coerce('constraintrange');\n if(constraintRange) {\n dimensionOut.constraintrange = axisBrush.cleanRanges(constraintRange, dimensionOut);\n }\n }\n}\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var dimensionsIn = traceIn.dimensions;\n if(Array.isArray(dimensionsIn) && dimensionsIn.length > maxDimensionCount) {\n Lib.log('parcoords traces support up to ' + maxDimensionCount + ' dimensions at the moment');\n dimensionsIn.splice(maxDimensionCount);\n }\n\n var dimensions = handleArrayContainerDefaults(traceIn, traceOut, {\n name: 'dimensions',\n layout: layout,\n handleItemDefaults: dimensionDefaults\n });\n\n var len = handleLineDefaults(traceIn, traceOut, defaultColor, layout, coerce);\n\n handleDomainDefaults(traceOut, layout, coerce);\n\n if(!Array.isArray(dimensions) || !dimensions.length) {\n traceOut.visible = false;\n }\n\n mergeLength(traceOut, dimensions, 'values', len);\n\n // make default font size 10px (default is 12),\n // scale linearly with global font size\n var fontDflt = {\n family: layout.font.family,\n size: Math.round(layout.font.size / 1.2),\n color: layout.font.color\n };\n\n Lib.coerceFont(coerce, 'labelfont', fontDflt);\n Lib.coerceFont(coerce, 'tickfont', fontDflt);\n Lib.coerceFont(coerce, 'rangefont', fontDflt);\n\n coerce('labelangle');\n coerce('labelside');\n};\n\n},{\"../../components/colorscale/defaults\":376,\"../../components/colorscale/helpers\":377,\"../../lib\":503,\"../../plots/array_container_defaults\":549,\"../../plots/cartesian/axes\":554,\"../../plots/domain\":584,\"./attributes\":887,\"./axisbrush\":888,\"./constants\":891,\"./merge_length\":896}],893:[function(_dereq_,module,exports){\n'use strict';\n\nvar isTypedArray = _dereq_('../../lib').isTypedArray;\n\nexports.convertTypedArray = function(a) {\n return isTypedArray(a) ? Array.prototype.slice.call(a) : a;\n};\n\nexports.isOrdinal = function(dimension) {\n return !!dimension.tickvals;\n};\n\nexports.isVisible = function(dimension) {\n return dimension.visible || !('visible' in dimension);\n};\n\n},{\"../../lib\":503}],894:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n calc: _dereq_('./calc'),\n plot: _dereq_('./plot'),\n colorbar: {\n container: 'line',\n min: 'cmin',\n max: 'cmax'\n },\n\n moduleType: 'trace',\n name: 'parcoords',\n basePlotModule: _dereq_('./base_plot'),\n categories: ['gl', 'regl', 'noOpacity', 'noHover'],\n meta: {\n }\n};\n\n},{\"./attributes\":887,\"./base_plot\":889,\"./calc\":890,\"./defaults\":892,\"./plot\":898}],895:[function(_dereq_,module,exports){\n'use strict';\n\nvar glslify = _dereq_('glslify');\nvar vertexShaderSource = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nvarying vec4 fragColor;\\n\\nattribute vec4 p01_04, p05_08, p09_12, p13_16,\\n p17_20, p21_24, p25_28, p29_32,\\n p33_36, p37_40, p41_44, p45_48,\\n p49_52, p53_56, p57_60, colors;\\n\\nuniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,\\n loA, hiA, loB, hiB, loC, hiC, loD, hiD;\\n\\nuniform vec2 resolution, viewBoxPos, viewBoxSize;\\nuniform float maskHeight;\\nuniform float drwLayer; // 0: context, 1: focus, 2: pick\\nuniform vec4 contextColor;\\nuniform sampler2D maskTexture, palette;\\n\\nbool isPick = (drwLayer > 1.5);\\nbool isContext = (drwLayer < 0.5);\\n\\nconst vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);\\nconst vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);\\n\\nfloat val(mat4 p, mat4 v) {\\n return dot(matrixCompMult(p, v) * UNITS, UNITS);\\n}\\n\\nfloat axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {\\n float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);\\n float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);\\n return y1 * (1.0 - ratio) + y2 * ratio;\\n}\\n\\nint iMod(int a, int b) {\\n return a - b * (a / b);\\n}\\n\\nbool fOutside(float p, float lo, float hi) {\\n return (lo < hi) && (lo > p || p > hi);\\n}\\n\\nbool vOutside(vec4 p, vec4 lo, vec4 hi) {\\n return (\\n fOutside(p[0], lo[0], hi[0]) ||\\n fOutside(p[1], lo[1], hi[1]) ||\\n fOutside(p[2], lo[2], hi[2]) ||\\n fOutside(p[3], lo[3], hi[3])\\n );\\n}\\n\\nbool mOutside(mat4 p, mat4 lo, mat4 hi) {\\n return (\\n vOutside(p[0], lo[0], hi[0]) ||\\n vOutside(p[1], lo[1], hi[1]) ||\\n vOutside(p[2], lo[2], hi[2]) ||\\n vOutside(p[3], lo[3], hi[3])\\n );\\n}\\n\\nbool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {\\n return mOutside(A, loA, hiA) ||\\n mOutside(B, loB, hiB) ||\\n mOutside(C, loC, hiC) ||\\n mOutside(D, loD, hiD);\\n}\\n\\nbool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {\\n mat4 pnts[4];\\n pnts[0] = A;\\n pnts[1] = B;\\n pnts[2] = C;\\n pnts[3] = D;\\n\\n for(int i = 0; i < 4; ++i) {\\n for(int j = 0; j < 4; ++j) {\\n for(int k = 0; k < 4; ++k) {\\n if(0 == iMod(\\n int(255.0 * texture2D(maskTexture,\\n vec2(\\n (float(i * 2 + j / 2) + 0.5) / 8.0,\\n (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight\\n ))[3]\\n ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),\\n 2\\n )) return true;\\n }\\n }\\n }\\n return false;\\n}\\n\\nvec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {\\n float x = 0.5 * sign(v) + 0.5;\\n float y = axisY(x, A, B, C, D);\\n float z = 1.0 - abs(v);\\n\\n z += isContext ? 0.0 : 2.0 * float(\\n outsideBoundingBox(A, B, C, D) ||\\n outsideRasterMask(A, B, C, D)\\n );\\n\\n return vec4(\\n 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,\\n z,\\n 1.0\\n );\\n}\\n\\nvoid main() {\\n mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);\\n mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);\\n mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);\\n mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);\\n\\n float v = colors[3];\\n\\n gl_Position = position(isContext, v, A, B, C, D);\\n\\n fragColor =\\n isContext ? vec4(contextColor) :\\n isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));\\n}\\n\"]);\nvar fragmentShaderSource = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n gl_FragColor = fragColor;\\n}\\n\"]);\nvar maxDim = _dereq_('./constants').maxDimensionCount;\n\nvar Lib = _dereq_('../../lib');\n\n// don't change; otherwise near/far plane lines are lost\nvar depthLimitEpsilon = 1e-6;\n\n// precision of multiselect is the full range divided into this many parts\nvar maskHeight = 2048;\n\nvar dummyPixel = new Uint8Array(4);\nvar dataPixel = new Uint8Array(4);\n\nvar paletteTextureConfig = {\n shape: [256, 1],\n format: 'rgba',\n type: 'uint8',\n mag: 'nearest',\n min: 'nearest'\n};\n\nfunction ensureDraw(regl) {\n regl.read({\n x: 0,\n y: 0,\n width: 1,\n height: 1,\n data: dummyPixel\n });\n}\n\nfunction clear(regl, x, y, width, height) {\n var gl = regl._gl;\n gl.enable(gl.SCISSOR_TEST);\n gl.scissor(x, y, width, height);\n regl.clear({color: [0, 0, 0, 0], depth: 1}); // clearing is done in scissored panel only\n}\n\nfunction renderBlock(regl, glAes, renderState, blockLineCount, sampleCount, item) {\n var rafKey = item.key;\n\n function render(blockNumber) {\n var count = Math.min(blockLineCount, sampleCount - blockNumber * blockLineCount);\n\n if(blockNumber === 0) {\n // stop drawing possibly stale glyphs before clearing\n window.cancelAnimationFrame(renderState.currentRafs[rafKey]);\n delete renderState.currentRafs[rafKey];\n clear(regl, item.scissorX, item.scissorY, item.scissorWidth, item.viewBoxSize[1]);\n }\n\n if(renderState.clearOnly) {\n return;\n }\n\n item.count = 2 * count;\n item.offset = 2 * blockNumber * blockLineCount;\n glAes(item);\n\n if(blockNumber * blockLineCount + count < sampleCount) {\n renderState.currentRafs[rafKey] = window.requestAnimationFrame(function() {\n render(blockNumber + 1);\n });\n }\n\n renderState.drawCompleted = false;\n }\n\n if(!renderState.drawCompleted) {\n ensureDraw(regl);\n renderState.drawCompleted = true;\n }\n\n // start with rendering item 0; recursion handles the rest\n render(0);\n}\n\nfunction adjustDepth(d) {\n // WebGL matrix operations use floats with limited precision, potentially causing a number near a border of [0, 1]\n // to end up slightly outside the border. With an epsilon, we reduce the chance that a line gets clipped by the\n // near or the far plane.\n return Math.max(depthLimitEpsilon, Math.min(1 - depthLimitEpsilon, d));\n}\n\nfunction palette(unitToColor, opacity) {\n var result = new Array(256);\n for(var i = 0; i < 256; i++) {\n result[i] = unitToColor(i / 255).concat(opacity);\n }\n return result;\n}\n\n// Maps the sample index [0...sampleCount - 1] to a range of [0, 1] as the shader expects colors in the [0, 1] range.\n// but first it shifts the sample index by 0, 8 or 16 bits depending on rgbIndex [0..2]\n// with the end result that each line will be of a unique color, making it possible for the pick handler\n// to uniquely identify which line is hovered over (bijective mapping).\n// The inverse, i.e. readPixel is invoked from 'parcoords.js'\nfunction calcPickColor(i, rgbIndex) {\n return (i >>> 8 * rgbIndex) % 256 / 255;\n}\n\nfunction makePoints(sampleCount, dims, color) {\n var points = new Array(sampleCount * (maxDim + 4));\n var n = 0;\n for(var i = 0; i < sampleCount; i++) {\n for(var k = 0; k < maxDim; k++) {\n points[n++] = (k < dims.length) ? dims[k].paddedUnitValues[i] : 0.5;\n }\n points[n++] = calcPickColor(i, 2);\n points[n++] = calcPickColor(i, 1);\n points[n++] = calcPickColor(i, 0);\n points[n++] = adjustDepth(color[i]);\n }\n return points;\n}\n\nfunction makeVecAttr(vecIndex, sampleCount, points) {\n var pointPairs = new Array(sampleCount * 8);\n var n = 0;\n for(var i = 0; i < sampleCount; i++) {\n for(var j = 0; j < 2; j++) {\n for(var k = 0; k < 4; k++) {\n var q = vecIndex * 4 + k;\n var v = points[i * 64 + q];\n if(q === 63 && j === 0) {\n v *= -1;\n }\n pointPairs[n++] = v;\n }\n }\n }\n return pointPairs;\n}\n\nfunction pad2(num) {\n var s = '0' + num;\n return s.substr(s.length - 2);\n}\n\nfunction getAttrName(i) {\n return (i < maxDim) ? 'p' + pad2(i + 1) + '_' + pad2(i + 4) : 'colors';\n}\n\nfunction setAttributes(attributes, sampleCount, points) {\n for(var i = 0; i <= maxDim; i += 4) {\n attributes[getAttrName(i)](makeVecAttr(i / 4, sampleCount, points));\n }\n}\n\nfunction emptyAttributes(regl) {\n var attributes = {};\n for(var i = 0; i <= maxDim; i += 4) {\n attributes[getAttrName(i)] = regl.buffer({usage: 'dynamic', type: 'float', data: new Uint8Array(0)});\n }\n return attributes;\n}\n\nfunction makeItem(\n model, leftmost, rightmost, itemNumber, i0, i1, x, y, panelSizeX, panelSizeY,\n crossfilterDimensionIndex, drwLayer, constraints, plotGlPixelRatio\n) {\n var dims = [[], []];\n for(var k = 0; k < 64; k++) {\n dims[0][k] = (k === i0) ? 1 : 0;\n dims[1][k] = (k === i1) ? 1 : 0;\n }\n x *= plotGlPixelRatio;\n y *= plotGlPixelRatio;\n panelSizeX *= plotGlPixelRatio;\n panelSizeY *= plotGlPixelRatio;\n var overdrag = model.lines.canvasOverdrag * plotGlPixelRatio;\n var domain = model.domain;\n var canvasWidth = model.canvasWidth * plotGlPixelRatio;\n var canvasHeight = model.canvasHeight * plotGlPixelRatio;\n var padL = model.pad.l * plotGlPixelRatio;\n var padB = model.pad.b * plotGlPixelRatio;\n var layoutHeight = model.layoutHeight * plotGlPixelRatio;\n var layoutWidth = model.layoutWidth * plotGlPixelRatio;\n\n var deselectedLinesColor = model.deselectedLines.color;\n\n var itemModel = Lib.extendFlat({\n key: crossfilterDimensionIndex,\n resolution: [canvasWidth, canvasHeight],\n viewBoxPos: [x + overdrag, y],\n viewBoxSize: [panelSizeX, panelSizeY],\n i0: i0,\n i1: i1,\n\n dim0A: dims[0].slice(0, 16),\n dim0B: dims[0].slice(16, 32),\n dim0C: dims[0].slice(32, 48),\n dim0D: dims[0].slice(48, 64),\n dim1A: dims[1].slice(0, 16),\n dim1B: dims[1].slice(16, 32),\n dim1C: dims[1].slice(32, 48),\n dim1D: dims[1].slice(48, 64),\n\n drwLayer: drwLayer,\n contextColor: [\n deselectedLinesColor[0] / 255,\n deselectedLinesColor[1] / 255,\n deselectedLinesColor[2] / 255,\n deselectedLinesColor[3] < 1 ?\n deselectedLinesColor[3] :\n Math.max(1 / 255, Math.pow(1 / model.lines.color.length, 1 / 3))\n ],\n\n scissorX: (itemNumber === leftmost ? 0 : x + overdrag) + (padL - overdrag) + layoutWidth * domain.x[0],\n scissorWidth: (itemNumber === rightmost ? canvasWidth - x + overdrag : panelSizeX + 0.5) + (itemNumber === leftmost ? x + overdrag : 0),\n scissorY: y + padB + layoutHeight * domain.y[0],\n scissorHeight: panelSizeY,\n\n viewportX: padL - overdrag + layoutWidth * domain.x[0],\n viewportY: padB + layoutHeight * domain.y[0],\n viewportWidth: canvasWidth,\n viewportHeight: canvasHeight\n }, constraints);\n\n return itemModel;\n}\n\nfunction expandedPixelRange(bounds) {\n var dh = maskHeight - 1;\n var a = Math.max(0, Math.floor(bounds[0] * dh), 0);\n var b = Math.min(dh, Math.ceil(bounds[1] * dh), dh);\n return [\n Math.min(a, b),\n Math.max(a, b)\n ];\n}\n\nmodule.exports = function(canvasGL, d) {\n // context & pick describe which canvas we're talking about - won't change with new data\n var isContext = d.context;\n var isPick = d.pick;\n\n var regl = d.regl;\n var gl = regl._gl;\n var supportedLineWidth = gl.getParameter(gl.ALIASED_LINE_WIDTH_RANGE);\n // ensure here that plotGlPixelRatio is within supported range; otherwise regl throws error\n var plotGlPixelRatio = Math.max(\n supportedLineWidth[0],\n Math.min(\n supportedLineWidth[1],\n d.viewModel.plotGlPixelRatio\n )\n );\n\n var renderState = {\n currentRafs: {},\n drawCompleted: true,\n clearOnly: false\n };\n\n // state to be set by update and used later\n var model;\n var vm;\n var initialDims;\n var sampleCount;\n var attributes = emptyAttributes(regl);\n var maskTexture;\n var paletteTexture = regl.texture(paletteTextureConfig);\n\n var prevAxisOrder = [];\n\n update(d);\n\n var glAes = regl({\n\n profile: false,\n\n blend: {\n enable: isContext,\n func: {\n srcRGB: 'src alpha',\n dstRGB: 'one minus src alpha',\n srcAlpha: 1,\n dstAlpha: 1 // 'one minus src alpha'\n },\n equation: {\n rgb: 'add',\n alpha: 'add'\n },\n color: [0, 0, 0, 0]\n },\n\n depth: {\n enable: !isContext,\n mask: true,\n func: 'less',\n range: [0, 1]\n },\n\n // for polygons\n cull: {\n enable: true,\n face: 'back'\n },\n\n scissor: {\n enable: true,\n box: {\n x: regl.prop('scissorX'),\n y: regl.prop('scissorY'),\n width: regl.prop('scissorWidth'),\n height: regl.prop('scissorHeight')\n }\n },\n\n viewport: {\n x: regl.prop('viewportX'),\n y: regl.prop('viewportY'),\n width: regl.prop('viewportWidth'),\n height: regl.prop('viewportHeight')\n },\n\n dither: false,\n\n vert: vertexShaderSource,\n\n frag: fragmentShaderSource,\n\n primitive: 'lines',\n lineWidth: plotGlPixelRatio,\n attributes: attributes,\n uniforms: {\n resolution: regl.prop('resolution'),\n viewBoxPos: regl.prop('viewBoxPos'),\n viewBoxSize: regl.prop('viewBoxSize'),\n dim0A: regl.prop('dim0A'),\n dim1A: regl.prop('dim1A'),\n dim0B: regl.prop('dim0B'),\n dim1B: regl.prop('dim1B'),\n dim0C: regl.prop('dim0C'),\n dim1C: regl.prop('dim1C'),\n dim0D: regl.prop('dim0D'),\n dim1D: regl.prop('dim1D'),\n loA: regl.prop('loA'),\n hiA: regl.prop('hiA'),\n loB: regl.prop('loB'),\n hiB: regl.prop('hiB'),\n loC: regl.prop('loC'),\n hiC: regl.prop('hiC'),\n loD: regl.prop('loD'),\n hiD: regl.prop('hiD'),\n palette: paletteTexture,\n contextColor: regl.prop('contextColor'),\n maskTexture: regl.prop('maskTexture'),\n drwLayer: regl.prop('drwLayer'),\n maskHeight: regl.prop('maskHeight')\n },\n offset: regl.prop('offset'),\n count: regl.prop('count')\n });\n\n function update(dNew) {\n model = dNew.model;\n vm = dNew.viewModel;\n initialDims = vm.dimensions.slice();\n sampleCount = initialDims[0] ? initialDims[0].values.length : 0;\n\n var lines = model.lines;\n var color = isPick ? lines.color.map(function(_, i) {return i / lines.color.length;}) : lines.color;\n\n var points = makePoints(sampleCount, initialDims, color);\n setAttributes(attributes, sampleCount, points);\n\n if(!isContext && !isPick) {\n paletteTexture = regl.texture(Lib.extendFlat({\n data: palette(model.unitToColor, 255)\n }, paletteTextureConfig));\n }\n }\n\n function makeConstraints(isContext) {\n var i, j, k;\n\n var limits = [[], []];\n for(k = 0; k < 64; k++) {\n var p = (!isContext && k < initialDims.length) ?\n initialDims[k].brush.filter.getBounds() : [-Infinity, Infinity];\n\n limits[0][k] = p[0];\n limits[1][k] = p[1];\n }\n\n var len = maskHeight * 8;\n var mask = new Array(len);\n for(i = 0; i < len; i++) {\n mask[i] = 255;\n }\n if(!isContext) {\n for(i = 0; i < initialDims.length; i++) {\n var u = i % 8;\n var v = (i - u) / 8;\n var bitMask = Math.pow(2, u);\n var dim = initialDims[i];\n var ranges = dim.brush.filter.get();\n if(ranges.length < 2) continue; // bail if the bounding box based filter is sufficient\n\n var prevEnd = expandedPixelRange(ranges[0])[1];\n for(j = 1; j < ranges.length; j++) {\n var nextRange = expandedPixelRange(ranges[j]);\n for(k = prevEnd + 1; k < nextRange[0]; k++) {\n mask[k * 8 + v] &= ~bitMask;\n }\n prevEnd = Math.max(prevEnd, nextRange[1]);\n }\n }\n }\n\n var textureData = {\n // 8 units x 8 bits = 64 bits, just sufficient for the almost 64 dimensions we support\n shape: [8, maskHeight],\n format: 'alpha',\n type: 'uint8',\n mag: 'nearest',\n min: 'nearest',\n data: mask\n };\n if(maskTexture) maskTexture(textureData);\n else maskTexture = regl.texture(textureData);\n\n return {\n maskTexture: maskTexture,\n maskHeight: maskHeight,\n loA: limits[0].slice(0, 16),\n loB: limits[0].slice(16, 32),\n loC: limits[0].slice(32, 48),\n loD: limits[0].slice(48, 64),\n hiA: limits[1].slice(0, 16),\n hiB: limits[1].slice(16, 32),\n hiC: limits[1].slice(32, 48),\n hiD: limits[1].slice(48, 64),\n };\n }\n\n function renderGLParcoords(panels, setChanged, clearOnly) {\n var panelCount = panels.length;\n var i;\n\n var leftmost;\n var rightmost;\n var lowestX = Infinity;\n var highestX = -Infinity;\n\n for(i = 0; i < panelCount; i++) {\n if(panels[i].dim0.canvasX < lowestX) {\n lowestX = panels[i].dim0.canvasX;\n leftmost = i;\n }\n if(panels[i].dim1.canvasX > highestX) {\n highestX = panels[i].dim1.canvasX;\n rightmost = i;\n }\n }\n\n if(panelCount === 0) {\n // clear canvas here, as the panel iteration below will not enter the loop body\n clear(regl, 0, 0, model.canvasWidth, model.canvasHeight);\n }\n var constraints = makeConstraints(isContext);\n\n for(i = 0; i < panelCount; i++) {\n var p = panels[i];\n var i0 = p.dim0.crossfilterDimensionIndex;\n var i1 = p.dim1.crossfilterDimensionIndex;\n var x = p.canvasX;\n var y = p.canvasY;\n var nextX = x + p.panelSizeX;\n var plotGlPixelRatio = p.plotGlPixelRatio;\n if(setChanged ||\n !prevAxisOrder[i0] ||\n prevAxisOrder[i0][0] !== x ||\n prevAxisOrder[i0][1] !== nextX\n ) {\n prevAxisOrder[i0] = [x, nextX];\n\n var item = makeItem(\n model,\n leftmost, rightmost, i, i0, i1, x, y,\n p.panelSizeX, p.panelSizeY,\n p.dim0.crossfilterDimensionIndex,\n isContext ? 0 : isPick ? 2 : 1,\n constraints,\n plotGlPixelRatio\n );\n\n renderState.clearOnly = clearOnly;\n\n var blockLineCount = setChanged ? model.lines.blockLineCount : sampleCount;\n renderBlock(\n regl, glAes, renderState, blockLineCount, sampleCount, item\n );\n }\n }\n }\n\n function readPixel(canvasX, canvasY) {\n regl.read({\n x: canvasX,\n y: canvasY,\n width: 1,\n height: 1,\n data: dataPixel\n });\n return dataPixel;\n }\n\n function readPixels(canvasX, canvasY, width, height) {\n var pixelArray = new Uint8Array(4 * width * height);\n regl.read({\n x: canvasX,\n y: canvasY,\n width: width,\n height: height,\n data: pixelArray\n });\n return pixelArray;\n }\n\n function destroy() {\n canvasGL.style['pointer-events'] = 'none';\n paletteTexture.destroy();\n if(maskTexture) maskTexture.destroy();\n for(var k in attributes) attributes[k].destroy();\n }\n\n return {\n render: renderGLParcoords,\n readPixel: readPixel,\n readPixels: readPixels,\n destroy: destroy,\n update: update\n };\n};\n\n},{\"../../lib\":503,\"./constants\":891,\"glslify\":227}],896:[function(_dereq_,module,exports){\n'use strict';\n\n/**\n * mergeLength: set trace length as the minimum of all dimension data lengths\n * and propagates this length into each dimension\n *\n * @param {object} traceOut: the fullData trace\n * @param {Array(object)} dimensions: array of dimension objects\n * @param {string} dataAttr: the attribute of each dimension containing the data\n * @param {integer} len: an already-existing length from other attributes\n */\nmodule.exports = function(traceOut, dimensions, dataAttr, len) {\n if(!len) len = Infinity;\n var i, dimi;\n for(i = 0; i < dimensions.length; i++) {\n dimi = dimensions[i];\n if(dimi.visible) len = Math.min(len, dimi[dataAttr].length);\n }\n if(len === Infinity) len = 0;\n\n traceOut._length = len;\n for(i = 0; i < dimensions.length; i++) {\n dimi = dimensions[i];\n if(dimi.visible) dimi._length = len;\n }\n\n return len;\n};\n\n},{}],897:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Lib = _dereq_('../../lib');\nvar numberFormat = Lib.numberFormat;\nvar rgba = _dereq_('color-rgba');\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar strRotate = Lib.strRotate;\nvar strTranslate = Lib.strTranslate;\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\nvar Drawing = _dereq_('../../components/drawing');\nvar Colorscale = _dereq_('../../components/colorscale');\n\nvar gup = _dereq_('../../lib/gup');\nvar keyFun = gup.keyFun;\nvar repeat = gup.repeat;\nvar unwrap = gup.unwrap;\n\nvar helpers = _dereq_('./helpers');\nvar c = _dereq_('./constants');\nvar brush = _dereq_('./axisbrush');\nvar lineLayerMaker = _dereq_('./lines');\n\nfunction findExtreme(fn, values, len) {\n return Lib.aggNums(fn, null, values, len);\n}\n\nfunction findExtremes(values, len) {\n return fixExtremes(\n findExtreme(Math.min, values, len),\n findExtreme(Math.max, values, len)\n );\n}\n\nfunction dimensionExtent(dimension) {\n var range = dimension.range;\n return range ?\n fixExtremes(range[0], range[1]) :\n findExtremes(dimension.values, dimension._length);\n}\n\nfunction fixExtremes(lo, hi) {\n if(isNaN(lo) || !isFinite(lo)) {\n lo = 0;\n }\n\n if(isNaN(hi) || !isFinite(hi)) {\n hi = 0;\n }\n\n // avoid a degenerate (zero-width) domain\n if(lo === hi) {\n if(lo === 0) {\n // no use to multiplying zero, so add/subtract in this case\n lo -= 1;\n hi += 1;\n } else {\n // this keeps the range in the order of magnitude of the data\n lo *= 0.9;\n hi *= 1.1;\n }\n }\n\n return [lo, hi];\n}\n\nfunction toText(formatter, texts) {\n if(texts) {\n return function(v, i) {\n var text = texts[i];\n if(text === null || text === undefined) return formatter(v);\n return text;\n };\n }\n return formatter;\n}\n\nfunction domainScale(height, padding, dimension, tickvals, ticktext) {\n var extent = dimensionExtent(dimension);\n if(tickvals) {\n return d3.scale.ordinal()\n .domain(tickvals.map(toText(numberFormat(dimension.tickformat), ticktext)))\n .range(tickvals\n .map(function(d) {\n var unitVal = (d - extent[0]) / (extent[1] - extent[0]);\n return (height - padding + unitVal * (2 * padding - height));\n })\n );\n }\n return d3.scale.linear()\n .domain(extent)\n .range([height - padding, padding]);\n}\n\nfunction unitToPaddedPx(height, padding) {\n return d3.scale.linear().range([padding, height - padding]);\n}\n\nfunction domainToPaddedUnitScale(dimension, padFraction) {\n return d3.scale.linear()\n .domain(dimensionExtent(dimension))\n .range([padFraction, 1 - padFraction]);\n}\n\nfunction ordinalScale(dimension) {\n if(!dimension.tickvals) return;\n\n var extent = dimensionExtent(dimension);\n return d3.scale.ordinal()\n .domain(dimension.tickvals)\n .range(dimension.tickvals.map(function(d) {\n return (d - extent[0]) / (extent[1] - extent[0]);\n }));\n}\n\nfunction unitToColorScale(cscale) {\n var colorStops = cscale.map(function(d) { return d[0]; });\n var colorTuples = cscale.map(function(d) {\n var RGBA = rgba(d[1]);\n return d3.rgb('rgb(' + RGBA[0] + ',' + RGBA[1] + ',' + RGBA[2] + ')');\n });\n var prop = function(n) { return function(o) { return o[n]; }; };\n\n // We can't use d3 color interpolation as we may have non-uniform color palette raster\n // (various color stop distances).\n var polylinearUnitScales = 'rgb'.split('').map(function(key) {\n return d3.scale.linear()\n .clamp(true)\n .domain(colorStops)\n .range(colorTuples.map(prop(key)));\n });\n\n return function(d) {\n return polylinearUnitScales.map(function(s) {\n return s(d);\n });\n };\n}\n\nfunction someFiltersActive(view) {\n return view.dimensions.some(function(p) {\n return p.brush.filterSpecified;\n });\n}\n\nfunction model(layout, d, i) {\n var cd0 = unwrap(d);\n var trace = cd0.trace;\n var lineColor = helpers.convertTypedArray(cd0.lineColor);\n var line = trace.line;\n var deselectedLines = {color: rgba(c.deselectedLineColor)};\n var cOpts = Colorscale.extractOpts(line);\n var cscale = cOpts.reversescale ? Colorscale.flipScale(cd0.cscale) : cd0.cscale;\n var domain = trace.domain;\n var dimensions = trace.dimensions;\n var width = layout.width;\n var labelAngle = trace.labelangle;\n var labelSide = trace.labelside;\n var labelFont = trace.labelfont;\n var tickFont = trace.tickfont;\n var rangeFont = trace.rangefont;\n\n var lines = Lib.extendDeepNoArrays({}, line, {\n color: lineColor.map(d3.scale.linear().domain(\n dimensionExtent({\n values: lineColor,\n range: [cOpts.min, cOpts.max],\n _length: trace._length\n })\n )),\n blockLineCount: c.blockLineCount,\n canvasOverdrag: c.overdrag * c.canvasPixelRatio\n });\n\n var groupWidth = Math.floor(width * (domain.x[1] - domain.x[0]));\n var groupHeight = Math.floor(layout.height * (domain.y[1] - domain.y[0]));\n\n var pad = layout.margin || {l: 80, r: 80, t: 100, b: 80};\n var rowContentWidth = groupWidth;\n var rowHeight = groupHeight;\n\n return {\n key: i,\n colCount: dimensions.filter(helpers.isVisible).length,\n dimensions: dimensions,\n tickDistance: c.tickDistance,\n unitToColor: unitToColorScale(cscale),\n lines: lines,\n deselectedLines: deselectedLines,\n labelAngle: labelAngle,\n labelSide: labelSide,\n labelFont: labelFont,\n tickFont: tickFont,\n rangeFont: rangeFont,\n layoutWidth: width,\n layoutHeight: layout.height,\n domain: domain,\n translateX: domain.x[0] * width,\n translateY: layout.height - domain.y[1] * layout.height,\n pad: pad,\n canvasWidth: rowContentWidth * c.canvasPixelRatio + 2 * lines.canvasOverdrag,\n canvasHeight: rowHeight * c.canvasPixelRatio,\n width: rowContentWidth,\n height: rowHeight,\n canvasPixelRatio: c.canvasPixelRatio\n };\n}\n\nfunction viewModel(state, callbacks, model) {\n var width = model.width;\n var height = model.height;\n var dimensions = model.dimensions;\n var canvasPixelRatio = model.canvasPixelRatio;\n\n var xScale = function(d) {return width * d / Math.max(1, model.colCount - 1);};\n\n var unitPad = c.verticalPadding / height;\n var _unitToPaddedPx = unitToPaddedPx(height, c.verticalPadding);\n\n var vm = {\n key: model.key,\n xScale: xScale,\n model: model,\n inBrushDrag: false // consider factoring it out and putting it in a centralized global-ish gesture state object\n };\n\n var uniqueKeys = {};\n\n vm.dimensions = dimensions.filter(helpers.isVisible).map(function(dimension, i) {\n var domainToPaddedUnit = domainToPaddedUnitScale(dimension, unitPad);\n var foundKey = uniqueKeys[dimension.label];\n uniqueKeys[dimension.label] = (foundKey || 0) + 1;\n var key = dimension.label + (foundKey ? '__' + foundKey : '');\n var specifiedConstraint = dimension.constraintrange;\n var filterRangeSpecified = specifiedConstraint && specifiedConstraint.length;\n if(filterRangeSpecified && !Array.isArray(specifiedConstraint[0])) {\n specifiedConstraint = [specifiedConstraint];\n }\n var filterRange = filterRangeSpecified ?\n specifiedConstraint.map(function(d) { return d.map(domainToPaddedUnit); }) :\n [[-Infinity, Infinity]];\n var brushMove = function() {\n var p = vm;\n p.focusLayer && p.focusLayer.render(p.panels, true);\n var filtersActive = someFiltersActive(p);\n if(!state.contextShown() && filtersActive) {\n p.contextLayer && p.contextLayer.render(p.panels, true);\n state.contextShown(true);\n } else if(state.contextShown() && !filtersActive) {\n p.contextLayer && p.contextLayer.render(p.panels, true, true);\n state.contextShown(false);\n }\n };\n\n var truncatedValues = dimension.values;\n if(truncatedValues.length > dimension._length) {\n truncatedValues = truncatedValues.slice(0, dimension._length);\n }\n\n var tickvals = dimension.tickvals;\n var ticktext;\n function makeTickItem(v, i) { return {val: v, text: ticktext[i]}; }\n function sortTickItem(a, b) { return a.val - b.val; }\n if(Array.isArray(tickvals) && tickvals.length) {\n ticktext = dimension.ticktext;\n\n // ensure ticktext and tickvals have same length\n if(!Array.isArray(ticktext) || !ticktext.length) {\n ticktext = tickvals.map(numberFormat(dimension.tickformat));\n } else if(ticktext.length > tickvals.length) {\n ticktext = ticktext.slice(0, tickvals.length);\n } else if(tickvals.length > ticktext.length) {\n tickvals = tickvals.slice(0, ticktext.length);\n }\n\n // check if we need to sort tickvals/ticktext\n for(var j = 1; j < tickvals.length; j++) {\n if(tickvals[j] < tickvals[j - 1]) {\n var tickItems = tickvals.map(makeTickItem).sort(sortTickItem);\n for(var k = 0; k < tickvals.length; k++) {\n tickvals[k] = tickItems[k].val;\n ticktext[k] = tickItems[k].text;\n }\n break;\n }\n }\n } else tickvals = undefined;\n\n truncatedValues = helpers.convertTypedArray(truncatedValues);\n\n return {\n key: key,\n label: dimension.label,\n tickFormat: dimension.tickformat,\n tickvals: tickvals,\n ticktext: ticktext,\n ordinal: helpers.isOrdinal(dimension),\n multiselect: dimension.multiselect,\n xIndex: i,\n crossfilterDimensionIndex: i,\n visibleIndex: dimension._index,\n height: height,\n values: truncatedValues,\n paddedUnitValues: truncatedValues.map(domainToPaddedUnit),\n unitTickvals: tickvals && tickvals.map(domainToPaddedUnit),\n xScale: xScale,\n x: xScale(i),\n canvasX: xScale(i) * canvasPixelRatio,\n unitToPaddedPx: _unitToPaddedPx,\n domainScale: domainScale(height, c.verticalPadding, dimension, tickvals, ticktext),\n ordinalScale: ordinalScale(dimension),\n parent: vm,\n model: model,\n brush: brush.makeBrush(\n state,\n filterRangeSpecified,\n filterRange,\n function() {\n state.linePickActive(false);\n },\n brushMove,\n function(f) {\n vm.focusLayer.render(vm.panels, true);\n vm.pickLayer && vm.pickLayer.render(vm.panels, true);\n state.linePickActive(true);\n if(callbacks && callbacks.filterChanged) {\n var invScale = domainToPaddedUnit.invert;\n\n // update gd.data as if a Plotly.restyle were fired\n var newRanges = f.map(function(r) {\n return r.map(invScale).sort(Lib.sorterAsc);\n }).sort(function(a, b) { return a[0] - b[0]; });\n callbacks.filterChanged(vm.key, dimension._index, newRanges);\n }\n }\n )\n };\n });\n\n return vm;\n}\n\nfunction styleExtentTexts(selection) {\n selection\n .classed(c.cn.axisExtentText, true)\n .attr('text-anchor', 'middle')\n .style('cursor', 'default');\n}\n\nfunction parcoordsInteractionState() {\n var linePickActive = true;\n var contextShown = false;\n return {\n linePickActive: function(val) {return arguments.length ? linePickActive = !!val : linePickActive;},\n contextShown: function(val) {return arguments.length ? contextShown = !!val : contextShown;}\n };\n}\n\nfunction calcTilt(angle, position) {\n var dir = (position === 'top') ? 1 : -1;\n var radians = angle * Math.PI / 180;\n var dx = Math.sin(radians);\n var dy = Math.cos(radians);\n return {\n dir: dir,\n dx: dx,\n dy: dy,\n degrees: angle\n };\n}\n\nfunction updatePanelLayout(yAxis, vm, plotGlPixelRatio) {\n var panels = vm.panels || (vm.panels = []);\n var data = yAxis.data();\n for(var i = 0; i < data.length - 1; i++) {\n var p = panels[i] || (panels[i] = {});\n var dim0 = data[i];\n var dim1 = data[i + 1];\n p.dim0 = dim0;\n p.dim1 = dim1;\n p.canvasX = dim0.canvasX;\n p.panelSizeX = dim1.canvasX - dim0.canvasX;\n p.panelSizeY = vm.model.canvasHeight;\n p.y = 0;\n p.canvasY = 0;\n p.plotGlPixelRatio = plotGlPixelRatio;\n }\n}\n\nfunction calcAllTicks(cd) {\n for(var i = 0; i < cd.length; i++) {\n for(var j = 0; j < cd[i].length; j++) {\n var trace = cd[i][j].trace;\n var dimensions = trace.dimensions;\n\n for(var k = 0; k < dimensions.length; k++) {\n var values = dimensions[k].values;\n var dim = dimensions[k]._ax;\n\n if(dim) {\n if(!dim.range) {\n dim.range = findExtremes(values, trace._length);\n } else {\n dim.range = fixExtremes(dim.range[0], dim.range[1]);\n }\n\n if(!dim.dtick) {\n dim.dtick = 0.01 * (Math.abs(dim.range[1] - dim.range[0]) || 1);\n }\n\n dim.tickformat = dimensions[k].tickformat;\n Axes.calcTicks(dim);\n dim.cleanRange();\n }\n }\n }\n }\n}\n\nfunction linearFormat(dim, v) {\n return Axes.tickText(dim._ax, v, false).text;\n}\n\nfunction extremeText(d, isTop) {\n if(d.ordinal) return '';\n var domain = d.domainScale.domain();\n var v = (domain[isTop ? domain.length - 1 : 0]);\n\n return linearFormat(d.model.dimensions[d.visibleIndex], v);\n}\n\n\nmodule.exports = function parcoords(gd, cdModule, layout, callbacks) {\n var fullLayout = gd._fullLayout;\n var svg = fullLayout._toppaper;\n var glContainer = fullLayout._glcontainer;\n var plotGlPixelRatio = gd._context.plotGlPixelRatio;\n var paperColor = gd._fullLayout.paper_bgcolor;\n\n calcAllTicks(cdModule);\n\n var state = parcoordsInteractionState();\n\n var vm = cdModule\n .filter(function(d) { return unwrap(d).trace.visible; })\n .map(model.bind(0, layout))\n .map(viewModel.bind(0, state, callbacks));\n\n glContainer.each(function(d, i) {\n return Lib.extendFlat(d, vm[i]);\n });\n\n var glLayers = glContainer.selectAll('.gl-canvas')\n .each(function(d) {\n // FIXME: figure out how to handle multiple instances\n d.viewModel = vm[0];\n d.viewModel.plotGlPixelRatio = plotGlPixelRatio;\n d.viewModel.paperColor = paperColor;\n d.model = d.viewModel ? d.viewModel.model : null;\n });\n\n var lastHovered = null;\n\n var pickLayer = glLayers.filter(function(d) {return d.pick;});\n\n // emit hover / unhover event\n pickLayer\n .style('pointer-events', 'auto')\n .on('mousemove', function(d) {\n if(state.linePickActive() && d.lineLayer && callbacks && callbacks.hover) {\n var event = d3.event;\n var cw = this.width;\n var ch = this.height;\n var pointer = d3.mouse(this);\n var x = pointer[0];\n var y = pointer[1];\n\n if(x < 0 || y < 0 || x >= cw || y >= ch) {\n return;\n }\n var pixel = d.lineLayer.readPixel(x, ch - 1 - y);\n var found = pixel[3] !== 0;\n // inverse of the calcPickColor in `lines.js`; detailed comment there\n var curveNumber = found ? pixel[2] + 256 * (pixel[1] + 256 * pixel[0]) : null;\n var eventData = {\n x: x,\n y: y,\n clientX: event.clientX,\n clientY: event.clientY,\n dataIndex: d.model.key,\n curveNumber: curveNumber\n };\n if(curveNumber !== lastHovered) { // don't unnecessarily repeat the same hit (or miss)\n if(found) {\n callbacks.hover(eventData);\n } else if(callbacks.unhover) {\n callbacks.unhover(eventData);\n }\n lastHovered = curveNumber;\n }\n }\n });\n\n glLayers\n .style('opacity', function(d) {return d.pick ? 0 : 1;});\n\n svg.style('background', 'rgba(255, 255, 255, 0)');\n var controlOverlay = svg.selectAll('.' + c.cn.parcoords)\n .data(vm, keyFun);\n\n controlOverlay.exit().remove();\n\n controlOverlay.enter()\n .append('g')\n .classed(c.cn.parcoords, true)\n .style('shape-rendering', 'crispEdges')\n .style('pointer-events', 'none');\n\n controlOverlay.attr('transform', function(d) {\n return strTranslate(d.model.translateX, d.model.translateY);\n });\n\n var parcoordsControlView = controlOverlay.selectAll('.' + c.cn.parcoordsControlView)\n .data(repeat, keyFun);\n\n parcoordsControlView.enter()\n .append('g')\n .classed(c.cn.parcoordsControlView, true);\n\n parcoordsControlView.attr('transform', function(d) {\n return strTranslate(d.model.pad.l, d.model.pad.t);\n });\n\n var yAxis = parcoordsControlView.selectAll('.' + c.cn.yAxis)\n .data(function(p) { return p.dimensions; }, keyFun);\n\n yAxis.enter()\n .append('g')\n .classed(c.cn.yAxis, true);\n\n parcoordsControlView.each(function(p) {\n updatePanelLayout(yAxis, p, plotGlPixelRatio);\n });\n\n glLayers\n .each(function(d) {\n if(d.viewModel) {\n if(!d.lineLayer || callbacks) { // recreate in case of having callbacks e.g. restyle. Should we test for callback to be a restyle?\n d.lineLayer = lineLayerMaker(this, d);\n } else d.lineLayer.update(d);\n\n if(d.key || d.key === 0) d.viewModel[d.key] = d.lineLayer;\n\n var setChanged = (!d.context || // don't update background\n callbacks); // unless there is a callback on the context layer. Should we test the callback?\n\n d.lineLayer.render(d.viewModel.panels, setChanged);\n }\n });\n\n yAxis.attr('transform', function(d) {\n return strTranslate(d.xScale(d.xIndex), 0);\n });\n\n // drag column for reordering columns\n yAxis.call(d3.behavior.drag()\n .origin(function(d) { return d; })\n .on('drag', function(d) {\n var p = d.parent;\n state.linePickActive(false);\n d.x = Math.max(-c.overdrag, Math.min(d.model.width + c.overdrag, d3.event.x));\n d.canvasX = d.x * d.model.canvasPixelRatio;\n yAxis\n .sort(function(a, b) { return a.x - b.x; })\n .each(function(e, i) {\n e.xIndex = i;\n e.x = d === e ? e.x : e.xScale(e.xIndex);\n e.canvasX = e.x * e.model.canvasPixelRatio;\n });\n\n updatePanelLayout(yAxis, p, plotGlPixelRatio);\n\n yAxis.filter(function(e) { return Math.abs(d.xIndex - e.xIndex) !== 0; })\n .attr('transform', function(d) { return strTranslate(d.xScale(d.xIndex), 0); });\n d3.select(this).attr('transform', strTranslate(d.x, 0));\n yAxis.each(function(e, i0, i1) { if(i1 === d.parent.key) p.dimensions[i0] = e; });\n p.contextLayer && p.contextLayer.render(p.panels, false, !someFiltersActive(p));\n p.focusLayer.render && p.focusLayer.render(p.panels);\n })\n .on('dragend', function(d) {\n var p = d.parent;\n d.x = d.xScale(d.xIndex);\n d.canvasX = d.x * d.model.canvasPixelRatio;\n updatePanelLayout(yAxis, p, plotGlPixelRatio);\n d3.select(this)\n .attr('transform', function(d) { return strTranslate(d.x, 0); });\n p.contextLayer && p.contextLayer.render(p.panels, false, !someFiltersActive(p));\n p.focusLayer && p.focusLayer.render(p.panels);\n p.pickLayer && p.pickLayer.render(p.panels, true);\n state.linePickActive(true);\n\n if(callbacks && callbacks.axesMoved) {\n callbacks.axesMoved(p.key, p.dimensions.map(function(e) {return e.crossfilterDimensionIndex;}));\n }\n })\n );\n\n yAxis.exit()\n .remove();\n\n var axisOverlays = yAxis.selectAll('.' + c.cn.axisOverlays)\n .data(repeat, keyFun);\n\n axisOverlays.enter()\n .append('g')\n .classed(c.cn.axisOverlays, true);\n\n axisOverlays.selectAll('.' + c.cn.axis).remove();\n\n var axis = axisOverlays.selectAll('.' + c.cn.axis)\n .data(repeat, keyFun);\n\n axis.enter()\n .append('g')\n .classed(c.cn.axis, true);\n\n axis\n .each(function(d) {\n var wantedTickCount = d.model.height / d.model.tickDistance;\n var scale = d.domainScale;\n var sdom = scale.domain();\n d3.select(this)\n .call(d3.svg.axis()\n .orient('left')\n .tickSize(4)\n .outerTickSize(2)\n .ticks(wantedTickCount, d.tickFormat) // works for continuous scales only...\n .tickValues(d.ordinal ? // and this works for ordinal scales\n sdom :\n null)\n .tickFormat(function(v) {\n return helpers.isOrdinal(d) ? v : linearFormat(d.model.dimensions[d.visibleIndex], v);\n })\n .scale(scale));\n Drawing.font(axis.selectAll('text'), d.model.tickFont);\n });\n\n axis.selectAll('.domain, .tick>line')\n .attr('fill', 'none')\n .attr('stroke', 'black')\n .attr('stroke-opacity', 0.25)\n .attr('stroke-width', '1px');\n\n axis.selectAll('text')\n .style('text-shadow', svgTextUtils.makeTextShadow(paperColor))\n .style('cursor', 'default');\n\n var axisHeading = axisOverlays.selectAll('.' + c.cn.axisHeading)\n .data(repeat, keyFun);\n\n axisHeading.enter()\n .append('g')\n .classed(c.cn.axisHeading, true);\n\n var axisTitle = axisHeading.selectAll('.' + c.cn.axisTitle)\n .data(repeat, keyFun);\n\n axisTitle.enter()\n .append('text')\n .classed(c.cn.axisTitle, true)\n .attr('text-anchor', 'middle')\n .style('cursor', 'ew-resize')\n .style('pointer-events', 'auto');\n\n axisTitle\n .text(function(d) { return d.label; })\n .each(function(d) {\n var e = d3.select(this);\n Drawing.font(e, d.model.labelFont);\n svgTextUtils.convertToTspans(e, gd);\n })\n .attr('transform', function(d) {\n var tilt = calcTilt(d.model.labelAngle, d.model.labelSide);\n var r = c.axisTitleOffset;\n return (\n (tilt.dir > 0 ? '' : strTranslate(0, 2 * r + d.model.height)) +\n strRotate(tilt.degrees) +\n strTranslate(-r * tilt.dx, -r * tilt.dy)\n );\n })\n .attr('text-anchor', function(d) {\n var tilt = calcTilt(d.model.labelAngle, d.model.labelSide);\n var adx = Math.abs(tilt.dx);\n var ady = Math.abs(tilt.dy);\n\n if(2 * adx > ady) {\n return (tilt.dir * tilt.dx < 0) ? 'start' : 'end';\n } else {\n return 'middle';\n }\n });\n\n var axisExtent = axisOverlays.selectAll('.' + c.cn.axisExtent)\n .data(repeat, keyFun);\n\n axisExtent.enter()\n .append('g')\n .classed(c.cn.axisExtent, true);\n\n var axisExtentTop = axisExtent.selectAll('.' + c.cn.axisExtentTop)\n .data(repeat, keyFun);\n\n axisExtentTop.enter()\n .append('g')\n .classed(c.cn.axisExtentTop, true);\n\n axisExtentTop\n .attr('transform', strTranslate(0, -c.axisExtentOffset));\n\n var axisExtentTopText = axisExtentTop.selectAll('.' + c.cn.axisExtentTopText)\n .data(repeat, keyFun);\n\n axisExtentTopText.enter()\n .append('text')\n .classed(c.cn.axisExtentTopText, true)\n .call(styleExtentTexts);\n\n axisExtentTopText\n .text(function(d) { return extremeText(d, true); })\n .each(function(d) { Drawing.font(d3.select(this), d.model.rangeFont); });\n\n var axisExtentBottom = axisExtent.selectAll('.' + c.cn.axisExtentBottom)\n .data(repeat, keyFun);\n\n axisExtentBottom.enter()\n .append('g')\n .classed(c.cn.axisExtentBottom, true);\n\n axisExtentBottom\n .attr('transform', function(d) {\n return strTranslate(0, d.model.height + c.axisExtentOffset);\n });\n\n var axisExtentBottomText = axisExtentBottom.selectAll('.' + c.cn.axisExtentBottomText)\n .data(repeat, keyFun);\n\n axisExtentBottomText.enter()\n .append('text')\n .classed(c.cn.axisExtentBottomText, true)\n .attr('dy', '0.75em')\n .call(styleExtentTexts);\n\n axisExtentBottomText\n .text(function(d) { return extremeText(d, false); })\n .each(function(d) { Drawing.font(d3.select(this), d.model.rangeFont); });\n\n brush.ensureAxisBrush(axisOverlays, paperColor);\n};\n\n},{\"../../components/colorscale\":378,\"../../components/drawing\":388,\"../../lib\":503,\"../../lib/gup\":500,\"../../lib/svg_text_utils\":529,\"../../plots/cartesian/axes\":554,\"./axisbrush\":888,\"./constants\":891,\"./helpers\":893,\"./lines\":895,\"@plotly/d3\":58,\"color-rgba\":91}],898:[function(_dereq_,module,exports){\n'use strict';\n\nvar parcoords = _dereq_('./parcoords');\nvar prepareRegl = _dereq_('../../lib/prepare_regl');\nvar isVisible = _dereq_('./helpers').isVisible;\n\nfunction newIndex(visibleIndices, orig, dim) {\n var origIndex = orig.indexOf(dim);\n var currentIndex = visibleIndices.indexOf(origIndex);\n if(currentIndex === -1) {\n // invisible dimensions initially go to the end\n currentIndex += orig.length;\n }\n return currentIndex;\n}\n\nfunction sorter(visibleIndices, orig) {\n return function sorter(d1, d2) {\n return (\n newIndex(visibleIndices, orig, d1) -\n newIndex(visibleIndices, orig, d2)\n );\n };\n}\n\nmodule.exports = function plot(gd, cdModule) {\n var fullLayout = gd._fullLayout;\n\n var success = prepareRegl(gd);\n if(!success) return;\n\n var currentDims = {};\n var initialDims = {};\n var fullIndices = {};\n var inputIndices = {};\n\n var size = fullLayout._size;\n\n cdModule.forEach(function(d, i) {\n var trace = d[0].trace;\n fullIndices[i] = trace.index;\n var iIn = inputIndices[i] = trace._fullInput.index;\n currentDims[i] = gd.data[iIn].dimensions;\n initialDims[i] = gd.data[iIn].dimensions.slice();\n });\n\n var filterChanged = function(i, initialDimIndex, newRanges) {\n // Have updated `constraintrange` data on `gd.data` and raise `Plotly.restyle` event\n // without having to incur heavy UI blocking due to an actual `Plotly.restyle` call\n\n var dim = initialDims[i][initialDimIndex];\n var newConstraints = newRanges.map(function(r) { return r.slice(); });\n\n // Store constraint range in preGUI\n // This one doesn't work if it's stored in pieces in _storeDirectGUIEdit\n // because it's an array of variable dimensionality. So store the whole\n // thing at once manually.\n var aStr = 'dimensions[' + initialDimIndex + '].constraintrange';\n var preGUI = fullLayout._tracePreGUI[gd._fullData[fullIndices[i]]._fullInput.uid];\n if(preGUI[aStr] === undefined) {\n var initialVal = dim.constraintrange;\n preGUI[aStr] = initialVal || null;\n }\n\n var fullDimension = gd._fullData[fullIndices[i]].dimensions[initialDimIndex];\n\n if(!newConstraints.length) {\n delete dim.constraintrange;\n delete fullDimension.constraintrange;\n newConstraints = null;\n } else {\n if(newConstraints.length === 1) newConstraints = newConstraints[0];\n dim.constraintrange = newConstraints;\n fullDimension.constraintrange = newConstraints.slice();\n // wrap in another array for restyle event data\n newConstraints = [newConstraints];\n }\n\n var restyleData = {};\n restyleData[aStr] = newConstraints;\n gd.emit('plotly_restyle', [restyleData, [inputIndices[i]]]);\n };\n\n var hover = function(eventData) {\n gd.emit('plotly_hover', eventData);\n };\n\n var unhover = function(eventData) {\n gd.emit('plotly_unhover', eventData);\n };\n\n var axesMoved = function(i, visibleIndices) {\n // Have updated order data on `gd.data` and raise `Plotly.restyle` event\n // without having to incur heavy UI blocking due to an actual `Plotly.restyle` call\n\n // drag&drop sorting of the visible dimensions\n var orig = sorter(visibleIndices, initialDims[i].filter(isVisible));\n currentDims[i].sort(orig);\n\n // invisible dimensions are not interpreted in the context of drag&drop sorting as an invisible dimension\n // cannot be dragged; they're interspersed into their original positions by this subsequent merging step\n initialDims[i].filter(function(d) {return !isVisible(d);})\n .sort(function(d) {\n // subsequent splicing to be done left to right, otherwise indices may be incorrect\n return initialDims[i].indexOf(d);\n })\n .forEach(function(d) {\n currentDims[i].splice(currentDims[i].indexOf(d), 1); // remove from the end\n currentDims[i].splice(initialDims[i].indexOf(d), 0, d); // insert at original index\n });\n\n // TODO: we can't really store this part of the interaction state\n // directly as below, since it incudes data arrays. If we want to\n // persist column order we may have to do something special for this\n // case to just store the order itself.\n // Registry.call('_storeDirectGUIEdit',\n // gd.data[inputIndices[i]],\n // fullLayout._tracePreGUI[gd._fullData[fullIndices[i]]._fullInput.uid],\n // {dimensions: currentDims[i]}\n // );\n\n gd.emit('plotly_restyle', [{dimensions: [currentDims[i]]}, [inputIndices[i]]]);\n };\n\n parcoords(\n gd,\n cdModule,\n { // layout\n width: size.w,\n height: size.h,\n margin: {\n t: size.t,\n r: size.r,\n b: size.b,\n l: size.l\n }\n },\n { // callbacks\n filterChanged: filterChanged,\n hover: hover,\n unhover: unhover,\n axesMoved: axesMoved\n }\n );\n};\n\n},{\"../../lib/prepare_regl\":516,\"./helpers\":893,\"./parcoords\":897}],899:[function(_dereq_,module,exports){\n'use strict';\n\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar domainAttrs = _dereq_('../../plots/domain').attributes;\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar colorAttrs = _dereq_('../../components/color/attributes');\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nvar textFontAttrs = fontAttrs({\n editType: 'plot',\n arrayOk: true,\n colorEditType: 'plot',\n});\n\nmodule.exports = {\n labels: {\n valType: 'data_array',\n editType: 'calc',\n },\n // equivalent of x0 and dx, if label is missing\n label0: {\n valType: 'number',\n dflt: 0,\n editType: 'calc',\n },\n dlabel: {\n valType: 'number',\n dflt: 1,\n editType: 'calc',\n },\n\n values: {\n valType: 'data_array',\n editType: 'calc',\n },\n\n marker: {\n colors: {\n valType: 'data_array', // TODO 'color_array' ?\n editType: 'calc',\n },\n\n line: {\n color: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n arrayOk: true,\n editType: 'style',\n },\n width: {\n valType: 'number',\n min: 0,\n dflt: 0,\n arrayOk: true,\n editType: 'style',\n },\n editType: 'calc'\n },\n editType: 'calc'\n },\n\n text: {\n valType: 'data_array',\n editType: 'plot',\n },\n hovertext: {\n valType: 'string',\n dflt: '',\n arrayOk: true,\n editType: 'style',\n },\n\n// 'see eg:'\n// 'https://www.e-education.psu.edu/natureofgeoinfo/sites/www.e-education.psu.edu.natureofgeoinfo/files/image/hisp_pies.gif',\n// '(this example involves a map too - may someday be a whole trace type',\n// 'of its own. but the point is the size of the whole pie is important.)'\n scalegroup: {\n valType: 'string',\n dflt: '',\n editType: 'calc',\n },\n\n // labels (legend is handled by plots.attributes.showlegend and layout.hiddenlabels)\n textinfo: {\n valType: 'flaglist',\n flags: ['label', 'text', 'value', 'percent'],\n extras: ['none'],\n editType: 'calc',\n },\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {\n flags: ['label', 'text', 'value', 'percent', 'name']\n }),\n hovertemplate: hovertemplateAttrs({}, {\n keys: ['label', 'color', 'value', 'percent', 'text']\n }),\n texttemplate: texttemplateAttrs({editType: 'plot'}, {\n keys: ['label', 'color', 'value', 'percent', 'text']\n }),\n textposition: {\n valType: 'enumerated',\n values: ['inside', 'outside', 'auto', 'none'],\n dflt: 'auto',\n arrayOk: true,\n editType: 'plot',\n },\n textfont: extendFlat({}, textFontAttrs, {\n }),\n insidetextorientation: {\n valType: 'enumerated',\n values: ['horizontal', 'radial', 'tangential', 'auto'],\n dflt: 'auto',\n editType: 'plot',\n },\n insidetextfont: extendFlat({}, textFontAttrs, {\n }),\n outsidetextfont: extendFlat({}, textFontAttrs, {\n }),\n automargin: {\n valType: 'boolean',\n dflt: false,\n editType: 'plot',\n },\n\n title: {\n text: {\n valType: 'string',\n dflt: '',\n editType: 'plot',\n },\n font: extendFlat({}, textFontAttrs, {\n }),\n position: {\n valType: 'enumerated',\n values: [\n 'top left', 'top center', 'top right',\n 'middle center',\n 'bottom left', 'bottom center', 'bottom right'\n ],\n editType: 'plot',\n },\n\n editType: 'plot'\n },\n\n // position and shape\n domain: domainAttrs({name: 'pie', trace: true, editType: 'calc'}),\n\n hole: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0,\n editType: 'calc',\n },\n\n // ordering and direction\n sort: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n },\n direction: {\n /**\n * there are two common conventions, both of which place the first\n * (largest, if sorted) slice with its left edge at 12 o'clock but\n * succeeding slices follow either cw or ccw from there.\n *\n * see http://visage.co/data-visualization-101-pie-charts/\n */\n valType: 'enumerated',\n values: ['clockwise', 'counterclockwise'],\n dflt: 'counterclockwise',\n editType: 'calc',\n },\n rotation: {\n valType: 'number',\n min: -360,\n max: 360,\n dflt: 0,\n editType: 'calc',\n },\n\n pull: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0,\n arrayOk: true,\n editType: 'calc',\n },\n\n _deprecated: {\n title: {\n valType: 'string',\n dflt: '',\n editType: 'calc',\n },\n titlefont: extendFlat({}, textFontAttrs, {\n }),\n titleposition: {\n valType: 'enumerated',\n values: [\n 'top left', 'top center', 'top right',\n 'middle center',\n 'bottom left', 'bottom center', 'bottom right'\n ],\n editType: 'calc',\n }\n }\n};\n\n},{\"../../components/color/attributes\":365,\"../../lib/extend\":493,\"../../plots/attributes\":550,\"../../plots/domain\":584,\"../../plots/font_attributes\":585,\"../../plots/template_attributes\":633}],900:[function(_dereq_,module,exports){\n'use strict';\n\nvar plots = _dereq_('../../plots/plots');\n\nexports.name = 'pie';\n\nexports.plot = function(gd, traces, transitionOpts, makeOnCompleteCallback) {\n plots.plotBasePlot(exports.name, gd, traces, transitionOpts, makeOnCompleteCallback);\n};\n\nexports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n plots.cleanBasePlot(exports.name, newFullData, newFullLayout, oldFullData, oldFullLayout);\n};\n\n},{\"../../plots/plots\":619}],901:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar tinycolor = _dereq_('tinycolor2');\n\nvar Color = _dereq_('../../components/color');\n\nvar extendedColorWayList = {};\n\nfunction calc(gd, trace) {\n var cd = [];\n\n var fullLayout = gd._fullLayout;\n var hiddenLabels = fullLayout.hiddenlabels || [];\n\n var labels = trace.labels;\n var colors = trace.marker.colors || [];\n var vals = trace.values;\n var len = trace._length;\n var hasValues = trace._hasValues && len;\n\n var i, pt;\n\n if(trace.dlabel) {\n labels = new Array(len);\n for(i = 0; i < len; i++) {\n labels[i] = String(trace.label0 + i * trace.dlabel);\n }\n }\n\n var allThisTraceLabels = {};\n var pullColor = makePullColorFn(fullLayout['_' + trace.type + 'colormap']);\n var vTotal = 0;\n var isAggregated = false;\n\n for(i = 0; i < len; i++) {\n var v, label, hidden;\n if(hasValues) {\n v = vals[i];\n if(!isNumeric(v)) continue;\n v = +v;\n if(v < 0) continue;\n } else v = 1;\n\n label = labels[i];\n if(label === undefined || label === '') label = i;\n label = String(label);\n\n var thisLabelIndex = allThisTraceLabels[label];\n if(thisLabelIndex === undefined) {\n allThisTraceLabels[label] = cd.length;\n\n hidden = hiddenLabels.indexOf(label) !== -1;\n\n if(!hidden) vTotal += v;\n\n cd.push({\n v: v,\n label: label,\n color: pullColor(colors[i], label),\n i: i,\n pts: [i],\n hidden: hidden\n });\n } else {\n isAggregated = true;\n\n pt = cd[thisLabelIndex];\n pt.v += v;\n pt.pts.push(i);\n if(!pt.hidden) vTotal += v;\n\n if(pt.color === false && colors[i]) {\n pt.color = pullColor(colors[i], label);\n }\n }\n }\n\n var shouldSort = (trace.type === 'funnelarea') ? isAggregated : trace.sort;\n if(shouldSort) cd.sort(function(a, b) { return b.v - a.v; });\n\n // include the sum of all values in the first point\n if(cd[0]) cd[0].vTotal = vTotal;\n\n return cd;\n}\n\nfunction makePullColorFn(colorMap) {\n return function pullColor(color, id) {\n if(!color) return false;\n\n color = tinycolor(color);\n if(!color.isValid()) return false;\n\n color = Color.addOpacity(color, color.getAlpha());\n if(!colorMap[id]) colorMap[id] = color;\n\n return color;\n };\n}\n\n/*\n * `calc` filled in (and collated) explicit colors.\n * Now we need to propagate these explicit colors to other traces,\n * and fill in default colors.\n * This is done after sorting, so we pick defaults\n * in the order slices will be displayed\n */\nfunction crossTraceCalc(gd, plotinfo) { // TODO: should we name the second argument opts?\n var desiredType = (plotinfo || {}).type;\n if(!desiredType) desiredType = 'pie';\n\n var fullLayout = gd._fullLayout;\n var calcdata = gd.calcdata;\n var colorWay = fullLayout[desiredType + 'colorway'];\n var colorMap = fullLayout['_' + desiredType + 'colormap'];\n\n if(fullLayout['extend' + desiredType + 'colors']) {\n colorWay = generateExtendedColors(colorWay, extendedColorWayList);\n }\n var dfltColorCount = 0;\n\n for(var i = 0; i < calcdata.length; i++) {\n var cd = calcdata[i];\n var traceType = cd[0].trace.type;\n if(traceType !== desiredType) continue;\n\n for(var j = 0; j < cd.length; j++) {\n var pt = cd[j];\n if(pt.color === false) {\n // have we seen this label and assigned a color to it in a previous trace?\n if(colorMap[pt.label]) {\n pt.color = colorMap[pt.label];\n } else {\n colorMap[pt.label] = pt.color = colorWay[dfltColorCount % colorWay.length];\n dfltColorCount++;\n }\n }\n }\n }\n}\n\n/**\n * pick a default color from the main default set, augmented by\n * itself lighter then darker before repeating\n */\nfunction generateExtendedColors(colorList, extendedColorWays) {\n var i;\n var colorString = JSON.stringify(colorList);\n var colors = extendedColorWays[colorString];\n if(!colors) {\n colors = colorList.slice();\n\n for(i = 0; i < colorList.length; i++) {\n colors.push(tinycolor(colorList[i]).lighten(20).toHexString());\n }\n\n for(i = 0; i < colorList.length; i++) {\n colors.push(tinycolor(colorList[i]).darken(20).toHexString());\n }\n extendedColorWays[colorString] = colors;\n }\n\n return colors;\n}\n\nmodule.exports = {\n calc: calc,\n crossTraceCalc: crossTraceCalc,\n\n makePullColorFn: makePullColorFn,\n generateExtendedColors: generateExtendedColors\n};\n\n},{\"../../components/color\":366,\"fast-isnumeric\":190,\"tinycolor2\":312}],902:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar Lib = _dereq_('../../lib');\nvar attributes = _dereq_('./attributes');\nvar handleDomainDefaults = _dereq_('../../plots/domain').defaults;\nvar handleText = _dereq_('../bar/defaults').handleText;\n\nfunction handleLabelsAndValues(labels, values) {\n var hasLabels = Array.isArray(labels);\n var hasValues = Lib.isArrayOrTypedArray(values);\n var len = Math.min(\n hasLabels ? labels.length : Infinity,\n hasValues ? values.length : Infinity\n );\n\n if(!isFinite(len)) len = 0;\n\n if(len && hasValues) {\n var hasPositive;\n for(var i = 0; i < len; i++) {\n var v = values[i];\n if(isNumeric(v) && v > 0) {\n hasPositive = true;\n break;\n }\n }\n if(!hasPositive) len = 0;\n }\n\n return {\n hasLabels: hasLabels,\n hasValues: hasValues,\n len: len\n };\n}\n\nfunction supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var labels = coerce('labels');\n var values = coerce('values');\n\n var res = handleLabelsAndValues(labels, values);\n var len = res.len;\n traceOut._hasLabels = res.hasLabels;\n traceOut._hasValues = res.hasValues;\n\n if(!traceOut._hasLabels &&\n traceOut._hasValues\n ) {\n coerce('label0');\n coerce('dlabel');\n }\n\n if(!len) {\n traceOut.visible = false;\n return;\n }\n traceOut._length = len;\n\n var lineWidth = coerce('marker.line.width');\n if(lineWidth) coerce('marker.line.color');\n\n coerce('marker.colors');\n\n coerce('scalegroup');\n // TODO: hole needs to be coerced to the same value within a scaleegroup\n\n var textData = coerce('text');\n var textTemplate = coerce('texttemplate');\n var textInfo;\n if(!textTemplate) textInfo = coerce('textinfo', Array.isArray(textData) ? 'text+percent' : 'percent');\n\n coerce('hovertext');\n coerce('hovertemplate');\n\n if(textTemplate || (textInfo && textInfo !== 'none')) {\n var textposition = coerce('textposition');\n handleText(traceIn, traceOut, layout, coerce, textposition, {\n moduleHasSelected: false,\n moduleHasUnselected: false,\n moduleHasConstrain: false,\n moduleHasCliponaxis: false,\n moduleHasTextangle: false,\n moduleHasInsideanchor: false\n });\n\n var hasBoth = Array.isArray(textposition) || textposition === 'auto';\n var hasOutside = hasBoth || textposition === 'outside';\n if(hasOutside) {\n coerce('automargin');\n }\n\n if(textposition === 'inside' || textposition === 'auto' || Array.isArray(textposition)) {\n coerce('insidetextorientation');\n }\n }\n\n handleDomainDefaults(traceOut, layout, coerce);\n\n var hole = coerce('hole');\n var title = coerce('title.text');\n if(title) {\n var titlePosition = coerce('title.position', hole ? 'middle center' : 'top center');\n if(!hole && titlePosition === 'middle center') traceOut.title.position = 'top center';\n Lib.coerceFont(coerce, 'title.font', layout.font);\n }\n\n coerce('sort');\n coerce('direction');\n coerce('rotation');\n coerce('pull');\n}\n\nmodule.exports = {\n handleLabelsAndValues: handleLabelsAndValues,\n supplyDefaults: supplyDefaults\n};\n\n},{\"../../lib\":503,\"../../plots/domain\":584,\"../bar/defaults\":652,\"./attributes\":899,\"fast-isnumeric\":190}],903:[function(_dereq_,module,exports){\n'use strict';\n\nvar appendArrayMultiPointValues = _dereq_('../../components/fx/helpers').appendArrayMultiPointValues;\n\n// Note: like other eventData routines, this creates the data for hover/unhover/click events\n// but it has a different API and goes through a totally different pathway.\n// So to ensure it doesn't get misused, it's not attached to the Pie module.\nmodule.exports = function eventData(pt, trace) {\n var out = {\n curveNumber: trace.index,\n pointNumbers: pt.pts,\n data: trace._input,\n fullData: trace,\n label: pt.label,\n color: pt.color,\n value: pt.v,\n percent: pt.percent,\n text: pt.text,\n bbox: pt.bbox,\n\n // pt.v (and pt.i below) for backward compatibility\n v: pt.v\n };\n\n // Only include pointNumber if it's unambiguous\n if(pt.pts.length === 1) out.pointNumber = out.i = pt.pts[0];\n\n // Add extra data arrays to the output\n // notice that this is the multi-point version ('s' on the end!)\n // so added data will be arrays matching the pointNumbers array.\n appendArrayMultiPointValues(out, trace, pt.pts);\n\n // don't include obsolete fields in new funnelarea traces\n if(trace.type === 'funnelarea') {\n delete out.v;\n delete out.i;\n }\n\n return out;\n};\n\n},{\"../../components/fx/helpers\":402}],904:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nfunction format(vRounded) {\n return (\n vRounded.indexOf('e') !== -1 ? vRounded.replace(/[.]?0+e/, 'e') :\n vRounded.indexOf('.') !== -1 ? vRounded.replace(/[.]?0+$/, '') :\n vRounded\n );\n}\n\nexports.formatPiePercent = function formatPiePercent(v, separators) {\n var vRounded = format((v * 100).toPrecision(3));\n return Lib.numSeparate(vRounded, separators) + '%';\n};\n\nexports.formatPieValue = function formatPieValue(v, separators) {\n var vRounded = format(v.toPrecision(10));\n return Lib.numSeparate(vRounded, separators);\n};\n\nexports.getFirstFilled = function getFirstFilled(array, indices) {\n if(!Array.isArray(array)) return;\n for(var i = 0; i < indices.length; i++) {\n var v = array[indices[i]];\n if(v || v === 0 || v === '') return v;\n }\n};\n\nexports.castOption = function castOption(item, indices) {\n if(Array.isArray(item)) return exports.getFirstFilled(item, indices);\n else if(item) return item;\n};\n\nexports.getRotationAngle = function(rotation) {\n return (rotation === 'auto' ? 0 : rotation) * Math.PI / 180;\n};\n\n},{\"../../lib\":503}],905:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults').supplyDefaults,\n supplyLayoutDefaults: _dereq_('./layout_defaults'),\n layoutAttributes: _dereq_('./layout_attributes'),\n\n calc: _dereq_('./calc').calc,\n crossTraceCalc: _dereq_('./calc').crossTraceCalc,\n\n plot: _dereq_('./plot').plot,\n style: _dereq_('./style'),\n styleOne: _dereq_('./style_one'),\n\n moduleType: 'trace',\n name: 'pie',\n basePlotModule: _dereq_('./base_plot'),\n categories: ['pie-like', 'pie', 'showLegend'],\n meta: {\n }\n};\n\n},{\"./attributes\":899,\"./base_plot\":900,\"./calc\":901,\"./defaults\":902,\"./layout_attributes\":906,\"./layout_defaults\":907,\"./plot\":908,\"./style\":909,\"./style_one\":910}],906:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n hiddenlabels: {\n valType: 'data_array',\n editType: 'calc',\n },\n piecolorway: {\n valType: 'colorlist',\n editType: 'calc',\n },\n extendpiecolors: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n }\n};\n\n},{}],907:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar layoutAttributes = _dereq_('./layout_attributes');\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(layoutIn, layoutOut, layoutAttributes, attr, dflt);\n }\n\n coerce('hiddenlabels');\n coerce('piecolorway', layoutOut.colorway);\n coerce('extendpiecolors');\n};\n\n},{\"../../lib\":503,\"./layout_attributes\":906}],908:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Plots = _dereq_('../../plots/plots');\nvar Fx = _dereq_('../../components/fx');\nvar Color = _dereq_('../../components/color');\nvar Drawing = _dereq_('../../components/drawing');\nvar Lib = _dereq_('../../lib');\nvar strScale = Lib.strScale;\nvar strTranslate = Lib.strTranslate;\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\nvar uniformText = _dereq_('../bar/uniform_text');\nvar recordMinTextSize = uniformText.recordMinTextSize;\nvar clearMinTextSize = uniformText.clearMinTextSize;\nvar TEXTPAD = _dereq_('../bar/constants').TEXTPAD;\n\nvar helpers = _dereq_('./helpers');\nvar eventData = _dereq_('./event_data');\nvar isValidTextValue = _dereq_('../../lib').isValidTextValue;\n\nfunction plot(gd, cdModule) {\n var fullLayout = gd._fullLayout;\n var gs = fullLayout._size;\n\n clearMinTextSize('pie', fullLayout);\n\n prerenderTitles(cdModule, gd);\n layoutAreas(cdModule, gs);\n\n var plotGroups = Lib.makeTraceGroups(fullLayout._pielayer, cdModule, 'trace').each(function(cd) {\n var plotGroup = d3.select(this);\n var cd0 = cd[0];\n var trace = cd0.trace;\n\n setCoords(cd);\n\n // TODO: miter might look better but can sometimes cause problems\n // maybe miter with a small-ish stroke-miterlimit?\n plotGroup.attr('stroke-linejoin', 'round');\n\n plotGroup.each(function() {\n var slices = d3.select(this).selectAll('g.slice').data(cd);\n\n slices.enter().append('g')\n .classed('slice', true);\n slices.exit().remove();\n\n var quadrants = [\n [[], []], // y<0: x<0, x>=0\n [[], []] // y>=0: x<0, x>=0\n ];\n var hasOutsideText = false;\n\n slices.each(function(pt, i) {\n if(pt.hidden) {\n d3.select(this).selectAll('path,g').remove();\n return;\n }\n\n // to have consistent event data compared to other traces\n pt.pointNumber = pt.i;\n pt.curveNumber = trace.index;\n\n quadrants[pt.pxmid[1] < 0 ? 0 : 1][pt.pxmid[0] < 0 ? 0 : 1].push(pt);\n\n var cx = cd0.cx;\n var cy = cd0.cy;\n var sliceTop = d3.select(this);\n var slicePath = sliceTop.selectAll('path.surface').data([pt]);\n\n slicePath.enter().append('path')\n .classed('surface', true)\n .style({'pointer-events': 'all'});\n\n sliceTop.call(attachFxHandlers, gd, cd);\n\n if(trace.pull) {\n var pull = +helpers.castOption(trace.pull, pt.pts) || 0;\n if(pull > 0) {\n cx += pull * pt.pxmid[0];\n cy += pull * pt.pxmid[1];\n }\n }\n\n pt.cxFinal = cx;\n pt.cyFinal = cy;\n\n function arc(start, finish, cw, scale) {\n var dx = scale * (finish[0] - start[0]);\n var dy = scale * (finish[1] - start[1]);\n\n return 'a' +\n (scale * cd0.r) + ',' + (scale * cd0.r) + ' 0 ' +\n pt.largeArc + (cw ? ' 1 ' : ' 0 ') + dx + ',' + dy;\n }\n\n var hole = trace.hole;\n if(pt.v === cd0.vTotal) { // 100% fails bcs arc start and end are identical\n var outerCircle = 'M' + (cx + pt.px0[0]) + ',' + (cy + pt.px0[1]) +\n arc(pt.px0, pt.pxmid, true, 1) +\n arc(pt.pxmid, pt.px0, true, 1) + 'Z';\n if(hole) {\n slicePath.attr('d',\n 'M' + (cx + hole * pt.px0[0]) + ',' + (cy + hole * pt.px0[1]) +\n arc(pt.px0, pt.pxmid, false, hole) +\n arc(pt.pxmid, pt.px0, false, hole) +\n 'Z' + outerCircle);\n } else slicePath.attr('d', outerCircle);\n } else {\n var outerArc = arc(pt.px0, pt.px1, true, 1);\n\n if(hole) {\n var rim = 1 - hole;\n slicePath.attr('d',\n 'M' + (cx + hole * pt.px1[0]) + ',' + (cy + hole * pt.px1[1]) +\n arc(pt.px1, pt.px0, false, hole) +\n 'l' + (rim * pt.px0[0]) + ',' + (rim * pt.px0[1]) +\n outerArc +\n 'Z');\n } else {\n slicePath.attr('d',\n 'M' + cx + ',' + cy +\n 'l' + pt.px0[0] + ',' + pt.px0[1] +\n outerArc +\n 'Z');\n }\n }\n\n // add text\n formatSliceLabel(gd, pt, cd0);\n var textPosition = helpers.castOption(trace.textposition, pt.pts);\n var sliceTextGroup = sliceTop.selectAll('g.slicetext')\n .data(pt.text && (textPosition !== 'none') ? [0] : []);\n\n sliceTextGroup.enter().append('g')\n .classed('slicetext', true);\n sliceTextGroup.exit().remove();\n\n sliceTextGroup.each(function() {\n var sliceText = Lib.ensureSingle(d3.select(this), 'text', '', function(s) {\n // prohibit tex interpretation until we can handle\n // tex and regular text together\n s.attr('data-notex', 1);\n });\n\n var font = Lib.ensureUniformFontSize(gd, textPosition === 'outside' ?\n determineOutsideTextFont(trace, pt, fullLayout.font) :\n determineInsideTextFont(trace, pt, fullLayout.font)\n );\n\n sliceText.text(pt.text)\n .attr({\n 'class': 'slicetext',\n transform: '',\n 'text-anchor': 'middle'\n })\n .call(Drawing.font, font)\n .call(svgTextUtils.convertToTspans, gd);\n\n // position the text relative to the slice\n var textBB = Drawing.bBox(sliceText.node());\n var transform;\n\n if(textPosition === 'outside') {\n transform = transformOutsideText(textBB, pt);\n } else {\n transform = transformInsideText(textBB, pt, cd0);\n if(textPosition === 'auto' && transform.scale < 1) {\n var newFont = Lib.ensureUniformFontSize(gd, trace.outsidetextfont);\n\n sliceText.call(Drawing.font, newFont);\n textBB = Drawing.bBox(sliceText.node());\n\n transform = transformOutsideText(textBB, pt);\n }\n }\n\n var textPosAngle = transform.textPosAngle;\n var textXY = textPosAngle === undefined ? pt.pxmid : getCoords(cd0.r, textPosAngle);\n transform.targetX = cx + textXY[0] * transform.rCenter + (transform.x || 0);\n transform.targetY = cy + textXY[1] * transform.rCenter + (transform.y || 0);\n computeTransform(transform, textBB);\n\n // save some stuff to use later ensure no labels overlap\n if(transform.outside) {\n var targetY = transform.targetY;\n pt.yLabelMin = targetY - textBB.height / 2;\n pt.yLabelMid = targetY;\n pt.yLabelMax = targetY + textBB.height / 2;\n pt.labelExtraX = 0;\n pt.labelExtraY = 0;\n hasOutsideText = true;\n }\n\n transform.fontSize = font.size;\n recordMinTextSize(trace.type, transform, fullLayout);\n cd[i].transform = transform;\n\n sliceText.attr('transform', Lib.getTextTransform(transform));\n });\n });\n\n // add the title\n var titleTextGroup = d3.select(this).selectAll('g.titletext')\n .data(trace.title.text ? [0] : []);\n\n titleTextGroup.enter().append('g')\n .classed('titletext', true);\n titleTextGroup.exit().remove();\n\n titleTextGroup.each(function() {\n var titleText = Lib.ensureSingle(d3.select(this), 'text', '', function(s) {\n // prohibit tex interpretation as above\n s.attr('data-notex', 1);\n });\n\n var txt = trace.title.text;\n if(trace._meta) {\n txt = Lib.templateString(txt, trace._meta);\n }\n\n titleText.text(txt)\n .attr({\n 'class': 'titletext',\n transform: '',\n 'text-anchor': 'middle',\n })\n .call(Drawing.font, trace.title.font)\n .call(svgTextUtils.convertToTspans, gd);\n\n var transform;\n\n if(trace.title.position === 'middle center') {\n transform = positionTitleInside(cd0);\n } else {\n transform = positionTitleOutside(cd0, gs);\n }\n\n titleText.attr('transform',\n strTranslate(transform.x, transform.y) +\n strScale(Math.min(1, transform.scale)) +\n strTranslate(transform.tx, transform.ty));\n });\n\n // now make sure no labels overlap (at least within one pie)\n if(hasOutsideText) scootLabels(quadrants, trace);\n\n plotTextLines(slices, trace);\n\n if(hasOutsideText && trace.automargin) {\n // TODO if we ever want to improve perf,\n // we could reuse the textBB computed above together\n // with the sliceText transform info\n var traceBbox = Drawing.bBox(plotGroup.node());\n\n var domain = trace.domain;\n var vpw = gs.w * (domain.x[1] - domain.x[0]);\n var vph = gs.h * (domain.y[1] - domain.y[0]);\n var xgap = (0.5 * vpw - cd0.r) / gs.w;\n var ygap = (0.5 * vph - cd0.r) / gs.h;\n\n Plots.autoMargin(gd, 'pie.' + trace.uid + '.automargin', {\n xl: domain.x[0] - xgap,\n xr: domain.x[1] + xgap,\n yb: domain.y[0] - ygap,\n yt: domain.y[1] + ygap,\n l: Math.max(cd0.cx - cd0.r - traceBbox.left, 0),\n r: Math.max(traceBbox.right - (cd0.cx + cd0.r), 0),\n b: Math.max(traceBbox.bottom - (cd0.cy + cd0.r), 0),\n t: Math.max(cd0.cy - cd0.r - traceBbox.top, 0),\n pad: 5\n });\n }\n });\n });\n\n // This is for a bug in Chrome (as of 2015-07-22, and does not affect FF)\n // if insidetextfont and outsidetextfont are different sizes, sometimes the size\n // of an \"em\" gets taken from the wrong element at first so lines are\n // spaced wrong. You just have to tell it to try again later and it gets fixed.\n // I have no idea why we haven't seen this in other contexts. Also, sometimes\n // it gets the initial draw correct but on redraw it gets confused.\n setTimeout(function() {\n plotGroups.selectAll('tspan').each(function() {\n var s = d3.select(this);\n if(s.attr('dy')) s.attr('dy', s.attr('dy'));\n });\n }, 0);\n}\n\n// TODO add support for transition\nfunction plotTextLines(slices, trace) {\n slices.each(function(pt) {\n var sliceTop = d3.select(this);\n\n if(!pt.labelExtraX && !pt.labelExtraY) {\n sliceTop.select('path.textline').remove();\n return;\n }\n\n // first move the text to its new location\n var sliceText = sliceTop.select('g.slicetext text');\n\n pt.transform.targetX += pt.labelExtraX;\n pt.transform.targetY += pt.labelExtraY;\n\n sliceText.attr('transform', Lib.getTextTransform(pt.transform));\n\n // then add a line to the new location\n var lineStartX = pt.cxFinal + pt.pxmid[0];\n var lineStartY = pt.cyFinal + pt.pxmid[1];\n var textLinePath = 'M' + lineStartX + ',' + lineStartY;\n var finalX = (pt.yLabelMax - pt.yLabelMin) * (pt.pxmid[0] < 0 ? -1 : 1) / 4;\n\n if(pt.labelExtraX) {\n var yFromX = pt.labelExtraX * pt.pxmid[1] / pt.pxmid[0];\n var yNet = pt.yLabelMid + pt.labelExtraY - (pt.cyFinal + pt.pxmid[1]);\n\n if(Math.abs(yFromX) > Math.abs(yNet)) {\n textLinePath +=\n 'l' + (yNet * pt.pxmid[0] / pt.pxmid[1]) + ',' + yNet +\n 'H' + (lineStartX + pt.labelExtraX + finalX);\n } else {\n textLinePath += 'l' + pt.labelExtraX + ',' + yFromX +\n 'v' + (yNet - yFromX) +\n 'h' + finalX;\n }\n } else {\n textLinePath +=\n 'V' + (pt.yLabelMid + pt.labelExtraY) +\n 'h' + finalX;\n }\n\n Lib.ensureSingle(sliceTop, 'path', 'textline')\n .call(Color.stroke, trace.outsidetextfont.color)\n .attr({\n 'stroke-width': Math.min(2, trace.outsidetextfont.size / 8),\n d: textLinePath,\n fill: 'none'\n });\n });\n}\n\nfunction attachFxHandlers(sliceTop, gd, cd) {\n var cd0 = cd[0];\n var cx = cd0.cx;\n var cy = cd0.cy;\n var trace = cd0.trace;\n var isFunnelArea = trace.type === 'funnelarea';\n\n // hover state vars\n // have we drawn a hover label, so it should be cleared later\n if(!('_hasHoverLabel' in trace)) trace._hasHoverLabel = false;\n // have we emitted a hover event, so later an unhover event should be emitted\n // note that click events do not depend on this - you can still get them\n // with hovermode: false or if you were earlier dragging, then clicked\n // in the same slice that you moused up in\n if(!('_hasHoverEvent' in trace)) trace._hasHoverEvent = false;\n\n sliceTop.on('mouseover', function(pt) {\n // in case fullLayout or fullData has changed without a replot\n var fullLayout2 = gd._fullLayout;\n var trace2 = gd._fullData[trace.index];\n\n if(gd._dragging || fullLayout2.hovermode === false) return;\n\n var hoverinfo = trace2.hoverinfo;\n if(Array.isArray(hoverinfo)) {\n // super hacky: we need to pull out the *first* hoverinfo from\n // pt.pts, then put it back into an array in a dummy trace\n // and call castHoverinfo on that.\n // TODO: do we want to have Fx.castHoverinfo somehow handle this?\n // it already takes an array for index, for 2D, so this seems tricky.\n hoverinfo = Fx.castHoverinfo({\n hoverinfo: [helpers.castOption(hoverinfo, pt.pts)],\n _module: trace._module\n }, fullLayout2, 0);\n }\n\n if(hoverinfo === 'all') hoverinfo = 'label+text+value+percent+name';\n\n // in case we dragged over the pie from another subplot,\n // or if hover is turned off\n if(trace2.hovertemplate || (hoverinfo !== 'none' && hoverinfo !== 'skip' && hoverinfo)) {\n var rInscribed = pt.rInscribed || 0;\n var hoverCenterX = cx + pt.pxmid[0] * (1 - rInscribed);\n var hoverCenterY = cy + pt.pxmid[1] * (1 - rInscribed);\n var separators = fullLayout2.separators;\n var text = [];\n\n if(hoverinfo && hoverinfo.indexOf('label') !== -1) text.push(pt.label);\n pt.text = helpers.castOption(trace2.hovertext || trace2.text, pt.pts);\n if(hoverinfo && hoverinfo.indexOf('text') !== -1) {\n var tx = pt.text;\n if(Lib.isValidTextValue(tx)) text.push(tx);\n }\n pt.value = pt.v;\n pt.valueLabel = helpers.formatPieValue(pt.v, separators);\n if(hoverinfo && hoverinfo.indexOf('value') !== -1) text.push(pt.valueLabel);\n pt.percent = pt.v / cd0.vTotal;\n pt.percentLabel = helpers.formatPiePercent(pt.percent, separators);\n if(hoverinfo && hoverinfo.indexOf('percent') !== -1) text.push(pt.percentLabel);\n\n var hoverLabel = trace2.hoverlabel;\n var hoverFont = hoverLabel.font;\n\n var bbox = [];\n Fx.loneHover({\n trace: trace,\n x0: hoverCenterX - rInscribed * cd0.r,\n x1: hoverCenterX + rInscribed * cd0.r,\n y: hoverCenterY,\n _x0: isFunnelArea ? cx + pt.TL[0] : hoverCenterX - rInscribed * cd0.r,\n _x1: isFunnelArea ? cx + pt.TR[0] : hoverCenterX + rInscribed * cd0.r,\n _y0: isFunnelArea ? cy + pt.TL[1] : hoverCenterY - rInscribed * cd0.r,\n _y1: isFunnelArea ? cy + pt.BL[1] : hoverCenterY + rInscribed * cd0.r,\n text: text.join('
'),\n name: (trace2.hovertemplate || hoverinfo.indexOf('name') !== -1) ? trace2.name : undefined,\n idealAlign: pt.pxmid[0] < 0 ? 'left' : 'right',\n color: helpers.castOption(hoverLabel.bgcolor, pt.pts) || pt.color,\n borderColor: helpers.castOption(hoverLabel.bordercolor, pt.pts),\n fontFamily: helpers.castOption(hoverFont.family, pt.pts),\n fontSize: helpers.castOption(hoverFont.size, pt.pts),\n fontColor: helpers.castOption(hoverFont.color, pt.pts),\n nameLength: helpers.castOption(hoverLabel.namelength, pt.pts),\n textAlign: helpers.castOption(hoverLabel.align, pt.pts),\n hovertemplate: helpers.castOption(trace2.hovertemplate, pt.pts),\n hovertemplateLabels: pt,\n eventData: [eventData(pt, trace2)]\n }, {\n container: fullLayout2._hoverlayer.node(),\n outerContainer: fullLayout2._paper.node(),\n gd: gd,\n inOut_bbox: bbox\n });\n pt.bbox = bbox[0];\n\n trace._hasHoverLabel = true;\n }\n\n trace._hasHoverEvent = true;\n gd.emit('plotly_hover', {\n points: [eventData(pt, trace2)],\n event: d3.event\n });\n });\n\n sliceTop.on('mouseout', function(evt) {\n var fullLayout2 = gd._fullLayout;\n var trace2 = gd._fullData[trace.index];\n var pt = d3.select(this).datum();\n\n if(trace._hasHoverEvent) {\n evt.originalEvent = d3.event;\n gd.emit('plotly_unhover', {\n points: [eventData(pt, trace2)],\n event: d3.event\n });\n trace._hasHoverEvent = false;\n }\n\n if(trace._hasHoverLabel) {\n Fx.loneUnhover(fullLayout2._hoverlayer.node());\n trace._hasHoverLabel = false;\n }\n });\n\n sliceTop.on('click', function(pt) {\n // TODO: this does not support right-click. If we want to support it, we\n // would likely need to change pie to use dragElement instead of straight\n // mapbox event binding. Or perhaps better, make a simple wrapper with the\n // right mousedown, mousemove, and mouseup handlers just for a left/right click\n // mapbox would use this too.\n var fullLayout2 = gd._fullLayout;\n var trace2 = gd._fullData[trace.index];\n\n if(gd._dragging || fullLayout2.hovermode === false) return;\n\n gd._hoverdata = [eventData(pt, trace2)];\n Fx.click(gd, d3.event);\n });\n}\n\nfunction determineOutsideTextFont(trace, pt, layoutFont) {\n var color =\n helpers.castOption(trace.outsidetextfont.color, pt.pts) ||\n helpers.castOption(trace.textfont.color, pt.pts) ||\n layoutFont.color;\n\n var family =\n helpers.castOption(trace.outsidetextfont.family, pt.pts) ||\n helpers.castOption(trace.textfont.family, pt.pts) ||\n layoutFont.family;\n\n var size =\n helpers.castOption(trace.outsidetextfont.size, pt.pts) ||\n helpers.castOption(trace.textfont.size, pt.pts) ||\n layoutFont.size;\n\n return {\n color: color,\n family: family,\n size: size\n };\n}\n\nfunction determineInsideTextFont(trace, pt, layoutFont) {\n var customColor = helpers.castOption(trace.insidetextfont.color, pt.pts);\n if(!customColor && trace._input.textfont) {\n // Why not simply using trace.textfont? Because if not set, it\n // defaults to layout.font which has a default color. But if\n // textfont.color and insidetextfont.color don't supply a value,\n // a contrasting color shall be used.\n customColor = helpers.castOption(trace._input.textfont.color, pt.pts);\n }\n\n var family =\n helpers.castOption(trace.insidetextfont.family, pt.pts) ||\n helpers.castOption(trace.textfont.family, pt.pts) ||\n layoutFont.family;\n\n var size =\n helpers.castOption(trace.insidetextfont.size, pt.pts) ||\n helpers.castOption(trace.textfont.size, pt.pts) ||\n layoutFont.size;\n\n return {\n color: customColor || Color.contrast(pt.color),\n family: family,\n size: size\n };\n}\n\nfunction prerenderTitles(cdModule, gd) {\n var cd0, trace;\n\n // Determine the width and height of the title for each pie.\n for(var i = 0; i < cdModule.length; i++) {\n cd0 = cdModule[i][0];\n trace = cd0.trace;\n\n if(trace.title.text) {\n var txt = trace.title.text;\n if(trace._meta) {\n txt = Lib.templateString(txt, trace._meta);\n }\n\n var dummyTitle = Drawing.tester.append('text')\n .attr('data-notex', 1)\n .text(txt)\n .call(Drawing.font, trace.title.font)\n .call(svgTextUtils.convertToTspans, gd);\n var bBox = Drawing.bBox(dummyTitle.node(), true);\n cd0.titleBox = {\n width: bBox.width,\n height: bBox.height,\n };\n dummyTitle.remove();\n }\n }\n}\n\nfunction transformInsideText(textBB, pt, cd0) {\n var r = cd0.r || pt.rpx1;\n var rInscribed = pt.rInscribed;\n\n var isEmpty = pt.startangle === pt.stopangle;\n if(isEmpty) {\n return {\n rCenter: 1 - rInscribed,\n scale: 0,\n rotate: 0,\n textPosAngle: 0\n };\n }\n\n var ring = pt.ring;\n var isCircle = (ring === 1) && (Math.abs(pt.startangle - pt.stopangle) === Math.PI * 2);\n\n var halfAngle = pt.halfangle;\n var midAngle = pt.midangle;\n\n var orientation = cd0.trace.insidetextorientation;\n var isHorizontal = orientation === 'horizontal';\n var isTangential = orientation === 'tangential';\n var isRadial = orientation === 'radial';\n var isAuto = orientation === 'auto';\n\n var allTransforms = [];\n var newT;\n\n if(!isAuto) {\n // max size if text is placed (horizontally) at the top or bottom of the arc\n\n var considerCrossing = function(angle, key) {\n if(isCrossing(pt, angle)) {\n var dStart = Math.abs(angle - pt.startangle);\n var dStop = Math.abs(angle - pt.stopangle);\n\n var closestEdge = dStart < dStop ? dStart : dStop;\n\n if(key === 'tan') {\n newT = calcTanTransform(textBB, r, ring, closestEdge, 0);\n } else { // case of 'rad'\n newT = calcRadTransform(textBB, r, ring, closestEdge, Math.PI / 2);\n }\n newT.textPosAngle = angle;\n\n allTransforms.push(newT);\n }\n };\n\n // to cover all cases with trace.rotation added\n var i;\n if(isHorizontal || isTangential) {\n // top\n for(i = 4; i >= -4; i -= 2) considerCrossing(Math.PI * i, 'tan');\n // bottom\n for(i = 4; i >= -4; i -= 2) considerCrossing(Math.PI * (i + 1), 'tan');\n }\n if(isHorizontal || isRadial) {\n // left\n for(i = 4; i >= -4; i -= 2) considerCrossing(Math.PI * (i + 1.5), 'rad');\n // right\n for(i = 4; i >= -4; i -= 2) considerCrossing(Math.PI * (i + 0.5), 'rad');\n }\n }\n\n if(isCircle || isAuto || isHorizontal) {\n // max size text can be inserted inside without rotating it\n // this inscribes the text rectangle in a circle, which is then inscribed\n // in the slice, so it will be an underestimate, which some day we may want\n // to improve so this case can get more use\n var textDiameter = Math.sqrt(textBB.width * textBB.width + textBB.height * textBB.height);\n\n newT = {\n scale: rInscribed * r * 2 / textDiameter,\n\n // and the center position and rotation in this case\n rCenter: 1 - rInscribed,\n rotate: 0\n };\n\n newT.textPosAngle = (pt.startangle + pt.stopangle) / 2;\n if(newT.scale >= 1) return newT;\n\n allTransforms.push(newT);\n }\n\n if(isAuto || isRadial) {\n newT = calcRadTransform(textBB, r, ring, halfAngle, midAngle);\n newT.textPosAngle = (pt.startangle + pt.stopangle) / 2;\n allTransforms.push(newT);\n }\n\n if(isAuto || isTangential) {\n newT = calcTanTransform(textBB, r, ring, halfAngle, midAngle);\n newT.textPosAngle = (pt.startangle + pt.stopangle) / 2;\n allTransforms.push(newT);\n }\n\n var id = 0;\n var maxScale = 0;\n for(var k = 0; k < allTransforms.length; k++) {\n var s = allTransforms[k].scale;\n if(maxScale < s) {\n maxScale = s;\n id = k;\n }\n\n if(!isAuto && maxScale >= 1) {\n // respect test order for non-auto options\n break;\n }\n }\n return allTransforms[id];\n}\n\nfunction isCrossing(pt, angle) {\n var start = pt.startangle;\n var stop = pt.stopangle;\n return (\n (start > angle && angle > stop) ||\n (start < angle && angle < stop)\n );\n}\n\nfunction calcRadTransform(textBB, r, ring, halfAngle, midAngle) {\n r = Math.max(0, r - 2 * TEXTPAD);\n\n // max size if text is rotated radially\n var a = textBB.width / textBB.height;\n var s = calcMaxHalfSize(a, halfAngle, r, ring);\n return {\n scale: s * 2 / textBB.height,\n rCenter: calcRCenter(a, s / r),\n rotate: calcRotate(midAngle)\n };\n}\n\nfunction calcTanTransform(textBB, r, ring, halfAngle, midAngle) {\n r = Math.max(0, r - 2 * TEXTPAD);\n\n // max size if text is rotated tangentially\n var a = textBB.height / textBB.width;\n var s = calcMaxHalfSize(a, halfAngle, r, ring);\n return {\n scale: s * 2 / textBB.width,\n rCenter: calcRCenter(a, s / r),\n rotate: calcRotate(midAngle + Math.PI / 2)\n };\n}\n\nfunction calcRCenter(a, b) {\n return Math.cos(b) - a * b;\n}\n\nfunction calcRotate(t) {\n return (180 / Math.PI * t + 720) % 180 - 90;\n}\n\nfunction calcMaxHalfSize(a, halfAngle, r, ring) {\n var q = a + 1 / (2 * Math.tan(halfAngle));\n return r * Math.min(\n 1 / (Math.sqrt(q * q + 0.5) + q),\n ring / (Math.sqrt(a * a + ring / 2) + a)\n );\n}\n\nfunction getInscribedRadiusFraction(pt, cd0) {\n if(pt.v === cd0.vTotal && !cd0.trace.hole) return 1;// special case of 100% with no hole\n\n return Math.min(1 / (1 + 1 / Math.sin(pt.halfangle)), pt.ring / 2);\n}\n\nfunction transformOutsideText(textBB, pt) {\n var x = pt.pxmid[0];\n var y = pt.pxmid[1];\n var dx = textBB.width / 2;\n var dy = textBB.height / 2;\n\n if(x < 0) dx *= -1;\n if(y < 0) dy *= -1;\n\n return {\n scale: 1,\n rCenter: 1,\n rotate: 0,\n x: dx + Math.abs(dy) * (dx > 0 ? 1 : -1) / 2,\n y: dy / (1 + x * x / (y * y)),\n outside: true\n };\n}\n\nfunction positionTitleInside(cd0) {\n var textDiameter =\n Math.sqrt(cd0.titleBox.width * cd0.titleBox.width + cd0.titleBox.height * cd0.titleBox.height);\n return {\n x: cd0.cx,\n y: cd0.cy,\n scale: cd0.trace.hole * cd0.r * 2 / textDiameter,\n tx: 0,\n ty: - cd0.titleBox.height / 2 + cd0.trace.title.font.size\n };\n}\n\nfunction positionTitleOutside(cd0, plotSize) {\n var scaleX = 1;\n var scaleY = 1;\n var maxPull;\n\n var trace = cd0.trace;\n // position of the baseline point of the text box in the plot, before scaling.\n // we anchored the text in the middle, so the baseline is on the bottom middle\n // of the first line of text.\n var topMiddle = {\n x: cd0.cx,\n y: cd0.cy\n };\n // relative translation of the text box after scaling\n var translate = {\n tx: 0,\n ty: 0\n };\n\n // we reason below as if the baseline is the top middle point of the text box.\n // so we must add the font size to approximate the y-coord. of the top.\n // note that this correction must happen after scaling.\n translate.ty += trace.title.font.size;\n maxPull = getMaxPull(trace);\n\n if(trace.title.position.indexOf('top') !== -1) {\n topMiddle.y -= (1 + maxPull) * cd0.r;\n translate.ty -= cd0.titleBox.height;\n } else if(trace.title.position.indexOf('bottom') !== -1) {\n topMiddle.y += (1 + maxPull) * cd0.r;\n }\n\n var rx = applyAspectRatio(cd0.r, cd0.trace.aspectratio);\n\n var maxWidth = plotSize.w * (trace.domain.x[1] - trace.domain.x[0]) / 2;\n if(trace.title.position.indexOf('left') !== -1) {\n // we start the text at the left edge of the pie\n maxWidth = maxWidth + rx;\n topMiddle.x -= (1 + maxPull) * rx;\n translate.tx += cd0.titleBox.width / 2;\n } else if(trace.title.position.indexOf('center') !== -1) {\n maxWidth *= 2;\n } else if(trace.title.position.indexOf('right') !== -1) {\n maxWidth = maxWidth + rx;\n topMiddle.x += (1 + maxPull) * rx;\n translate.tx -= cd0.titleBox.width / 2;\n }\n scaleX = maxWidth / cd0.titleBox.width;\n scaleY = getTitleSpace(cd0, plotSize) / cd0.titleBox.height;\n return {\n x: topMiddle.x,\n y: topMiddle.y,\n scale: Math.min(scaleX, scaleY),\n tx: translate.tx,\n ty: translate.ty\n };\n}\n\nfunction applyAspectRatio(x, aspectratio) {\n return x / ((aspectratio === undefined) ? 1 : aspectratio);\n}\n\nfunction getTitleSpace(cd0, plotSize) {\n var trace = cd0.trace;\n var pieBoxHeight = plotSize.h * (trace.domain.y[1] - trace.domain.y[0]);\n // use at most half of the plot for the title\n return Math.min(cd0.titleBox.height, pieBoxHeight / 2);\n}\n\nfunction getMaxPull(trace) {\n var maxPull = trace.pull;\n if(!maxPull) return 0;\n\n var j;\n if(Array.isArray(maxPull)) {\n maxPull = 0;\n for(j = 0; j < trace.pull.length; j++) {\n if(trace.pull[j] > maxPull) maxPull = trace.pull[j];\n }\n }\n return maxPull;\n}\n\nfunction scootLabels(quadrants, trace) {\n var xHalf, yHalf, equatorFirst, farthestX, farthestY,\n xDiffSign, yDiffSign, thisQuad, oppositeQuad,\n wholeSide, i, thisQuadOutside, firstOppositeOutsidePt;\n\n function topFirst(a, b) { return a.pxmid[1] - b.pxmid[1]; }\n function bottomFirst(a, b) { return b.pxmid[1] - a.pxmid[1]; }\n\n function scootOneLabel(thisPt, prevPt) {\n if(!prevPt) prevPt = {};\n\n var prevOuterY = prevPt.labelExtraY + (yHalf ? prevPt.yLabelMax : prevPt.yLabelMin);\n var thisInnerY = yHalf ? thisPt.yLabelMin : thisPt.yLabelMax;\n var thisOuterY = yHalf ? thisPt.yLabelMax : thisPt.yLabelMin;\n var thisSliceOuterY = thisPt.cyFinal + farthestY(thisPt.px0[1], thisPt.px1[1]);\n var newExtraY = prevOuterY - thisInnerY;\n\n var xBuffer, i, otherPt, otherOuterY, otherOuterX, newExtraX;\n\n // make sure this label doesn't overlap other labels\n // this *only* has us move these labels vertically\n if(newExtraY * yDiffSign > 0) thisPt.labelExtraY = newExtraY;\n\n // make sure this label doesn't overlap any slices\n if(!Array.isArray(trace.pull)) return; // this can only happen with array pulls\n\n for(i = 0; i < wholeSide.length; i++) {\n otherPt = wholeSide[i];\n\n // overlap can only happen if the other point is pulled more than this one\n if(otherPt === thisPt || (\n (helpers.castOption(trace.pull, thisPt.pts) || 0) >=\n (helpers.castOption(trace.pull, otherPt.pts) || 0))\n ) {\n continue;\n }\n\n if((thisPt.pxmid[1] - otherPt.pxmid[1]) * yDiffSign > 0) {\n // closer to the equator - by construction all of these happen first\n // move the text vertically to get away from these slices\n otherOuterY = otherPt.cyFinal + farthestY(otherPt.px0[1], otherPt.px1[1]);\n newExtraY = otherOuterY - thisInnerY - thisPt.labelExtraY;\n\n if(newExtraY * yDiffSign > 0) thisPt.labelExtraY += newExtraY;\n } else if((thisOuterY + thisPt.labelExtraY - thisSliceOuterY) * yDiffSign > 0) {\n // farther from the equator - happens after we've done all the\n // vertical moving we're going to do\n // move horizontally to get away from these more polar slices\n\n // if we're moving horz. based on a slice that's several slices away from this one\n // then we need some extra space for the lines to labels between them\n xBuffer = 3 * xDiffSign * Math.abs(i - wholeSide.indexOf(thisPt));\n\n otherOuterX = otherPt.cxFinal + farthestX(otherPt.px0[0], otherPt.px1[0]);\n newExtraX = otherOuterX + xBuffer - (thisPt.cxFinal + thisPt.pxmid[0]) - thisPt.labelExtraX;\n\n if(newExtraX * xDiffSign > 0) thisPt.labelExtraX += newExtraX;\n }\n }\n }\n\n for(yHalf = 0; yHalf < 2; yHalf++) {\n equatorFirst = yHalf ? topFirst : bottomFirst;\n farthestY = yHalf ? Math.max : Math.min;\n yDiffSign = yHalf ? 1 : -1;\n\n for(xHalf = 0; xHalf < 2; xHalf++) {\n farthestX = xHalf ? Math.max : Math.min;\n xDiffSign = xHalf ? 1 : -1;\n\n // first sort the array\n // note this is a copy of cd, so cd itself doesn't get sorted\n // but we can still modify points in place.\n thisQuad = quadrants[yHalf][xHalf];\n thisQuad.sort(equatorFirst);\n\n oppositeQuad = quadrants[1 - yHalf][xHalf];\n wholeSide = oppositeQuad.concat(thisQuad);\n\n thisQuadOutside = [];\n for(i = 0; i < thisQuad.length; i++) {\n if(thisQuad[i].yLabelMid !== undefined) thisQuadOutside.push(thisQuad[i]);\n }\n\n firstOppositeOutsidePt = false;\n for(i = 0; yHalf && i < oppositeQuad.length; i++) {\n if(oppositeQuad[i].yLabelMid !== undefined) {\n firstOppositeOutsidePt = oppositeQuad[i];\n break;\n }\n }\n\n // each needs to avoid the previous\n for(i = 0; i < thisQuadOutside.length; i++) {\n var prevPt = i && thisQuadOutside[i - 1];\n // bottom half needs to avoid the first label of the top half\n // top half we still need to call scootOneLabel on the first slice\n // so we can avoid other slices, but we don't pass a prevPt\n if(firstOppositeOutsidePt && !i) prevPt = firstOppositeOutsidePt;\n scootOneLabel(thisQuadOutside[i], prevPt);\n }\n }\n }\n}\n\nfunction layoutAreas(cdModule, plotSize) {\n var scaleGroups = [];\n\n // figure out the center and maximum radius\n for(var i = 0; i < cdModule.length; i++) {\n var cd0 = cdModule[i][0];\n var trace = cd0.trace;\n\n var domain = trace.domain;\n var width = plotSize.w * (domain.x[1] - domain.x[0]);\n var height = plotSize.h * (domain.y[1] - domain.y[0]);\n // leave some space for the title, if it will be displayed outside\n if(trace.title.text && trace.title.position !== 'middle center') {\n height -= getTitleSpace(cd0, plotSize);\n }\n\n var rx = width / 2;\n var ry = height / 2;\n if(trace.type === 'funnelarea' && !trace.scalegroup) {\n ry /= trace.aspectratio;\n }\n\n cd0.r = Math.min(rx, ry) / (1 + getMaxPull(trace));\n\n cd0.cx = plotSize.l + plotSize.w * (trace.domain.x[1] + trace.domain.x[0]) / 2;\n cd0.cy = plotSize.t + plotSize.h * (1 - trace.domain.y[0]) - height / 2;\n if(trace.title.text && trace.title.position.indexOf('bottom') !== -1) {\n cd0.cy -= getTitleSpace(cd0, plotSize);\n }\n\n if(trace.scalegroup && scaleGroups.indexOf(trace.scalegroup) === -1) {\n scaleGroups.push(trace.scalegroup);\n }\n }\n\n groupScale(cdModule, scaleGroups);\n}\n\nfunction groupScale(cdModule, scaleGroups) {\n var cd0, i, trace;\n\n // scale those that are grouped\n for(var k = 0; k < scaleGroups.length; k++) {\n var min = Infinity;\n var g = scaleGroups[k];\n\n for(i = 0; i < cdModule.length; i++) {\n cd0 = cdModule[i][0];\n trace = cd0.trace;\n\n if(trace.scalegroup === g) {\n var area;\n if(trace.type === 'pie') {\n area = cd0.r * cd0.r;\n } else if(trace.type === 'funnelarea') {\n var rx, ry;\n\n if(trace.aspectratio > 1) {\n rx = cd0.r;\n ry = rx / trace.aspectratio;\n } else {\n ry = cd0.r;\n rx = ry * trace.aspectratio;\n }\n\n rx *= (1 + trace.baseratio) / 2;\n\n area = rx * ry;\n }\n\n min = Math.min(min, area / cd0.vTotal);\n }\n }\n\n for(i = 0; i < cdModule.length; i++) {\n cd0 = cdModule[i][0];\n trace = cd0.trace;\n if(trace.scalegroup === g) {\n var v = min * cd0.vTotal;\n if(trace.type === 'funnelarea') {\n v /= (1 + trace.baseratio) / 2;\n v /= trace.aspectratio;\n }\n\n cd0.r = Math.sqrt(v);\n }\n }\n }\n}\n\nfunction setCoords(cd) {\n var cd0 = cd[0];\n var r = cd0.r;\n var trace = cd0.trace;\n var currentAngle = helpers.getRotationAngle(trace.rotation);\n var angleFactor = 2 * Math.PI / cd0.vTotal;\n var firstPt = 'px0';\n var lastPt = 'px1';\n\n var i, cdi, currentCoords;\n\n if(trace.direction === 'counterclockwise') {\n for(i = 0; i < cd.length; i++) {\n if(!cd[i].hidden) break; // find the first non-hidden slice\n }\n if(i === cd.length) return; // all slices hidden\n\n currentAngle += angleFactor * cd[i].v;\n angleFactor *= -1;\n firstPt = 'px1';\n lastPt = 'px0';\n }\n\n currentCoords = getCoords(r, currentAngle);\n\n for(i = 0; i < cd.length; i++) {\n cdi = cd[i];\n if(cdi.hidden) continue;\n\n cdi[firstPt] = currentCoords;\n\n cdi.startangle = currentAngle;\n currentAngle += angleFactor * cdi.v / 2;\n cdi.pxmid = getCoords(r, currentAngle);\n cdi.midangle = currentAngle;\n currentAngle += angleFactor * cdi.v / 2;\n currentCoords = getCoords(r, currentAngle);\n cdi.stopangle = currentAngle;\n\n cdi[lastPt] = currentCoords;\n\n cdi.largeArc = (cdi.v > cd0.vTotal / 2) ? 1 : 0;\n\n cdi.halfangle = Math.PI * Math.min(cdi.v / cd0.vTotal, 0.5);\n cdi.ring = 1 - trace.hole;\n cdi.rInscribed = getInscribedRadiusFraction(cdi, cd0);\n }\n}\n\nfunction getCoords(r, angle) {\n return [r * Math.sin(angle), -r * Math.cos(angle)];\n}\n\nfunction formatSliceLabel(gd, pt, cd0) {\n var fullLayout = gd._fullLayout;\n var trace = cd0.trace;\n // look for textemplate\n var texttemplate = trace.texttemplate;\n\n // now insert text\n var textinfo = trace.textinfo;\n if(!texttemplate && textinfo && textinfo !== 'none') {\n var parts = textinfo.split('+');\n var hasFlag = function(flag) { return parts.indexOf(flag) !== -1; };\n var hasLabel = hasFlag('label');\n var hasText = hasFlag('text');\n var hasValue = hasFlag('value');\n var hasPercent = hasFlag('percent');\n\n var separators = fullLayout.separators;\n var text;\n\n text = hasLabel ? [pt.label] : [];\n if(hasText) {\n var tx = helpers.getFirstFilled(trace.text, pt.pts);\n if(isValidTextValue(tx)) text.push(tx);\n }\n if(hasValue) text.push(helpers.formatPieValue(pt.v, separators));\n if(hasPercent) text.push(helpers.formatPiePercent(pt.v / cd0.vTotal, separators));\n pt.text = text.join('
');\n }\n\n function makeTemplateVariables(pt) {\n return {\n label: pt.label,\n value: pt.v,\n valueLabel: helpers.formatPieValue(pt.v, fullLayout.separators),\n percent: pt.v / cd0.vTotal,\n percentLabel: helpers.formatPiePercent(pt.v / cd0.vTotal, fullLayout.separators),\n color: pt.color,\n text: pt.text,\n customdata: Lib.castOption(trace, pt.i, 'customdata')\n };\n }\n\n if(texttemplate) {\n var txt = Lib.castOption(trace, pt.i, 'texttemplate');\n if(!txt) {\n pt.text = '';\n } else {\n var obj = makeTemplateVariables(pt);\n var ptTx = helpers.getFirstFilled(trace.text, pt.pts);\n if(isValidTextValue(ptTx) || ptTx === '') obj.text = ptTx;\n pt.text = Lib.texttemplateString(txt, obj, gd._fullLayout._d3locale, obj, trace._meta || {});\n }\n }\n}\n\nfunction computeTransform(\n transform, // inout\n textBB // in\n) {\n var a = transform.rotate * Math.PI / 180;\n var cosA = Math.cos(a);\n var sinA = Math.sin(a);\n var midX = (textBB.left + textBB.right) / 2;\n var midY = (textBB.top + textBB.bottom) / 2;\n transform.textX = midX * cosA - midY * sinA;\n transform.textY = midX * sinA + midY * cosA;\n transform.noCenter = true;\n}\n\nmodule.exports = {\n plot: plot,\n formatSliceLabel: formatSliceLabel,\n transformInsideText: transformInsideText,\n determineInsideTextFont: determineInsideTextFont,\n positionTitleOutside: positionTitleOutside,\n prerenderTitles: prerenderTitles,\n layoutAreas: layoutAreas,\n attachFxHandlers: attachFxHandlers,\n computeTransform: computeTransform\n};\n\n},{\"../../components/color\":366,\"../../components/drawing\":388,\"../../components/fx\":406,\"../../lib\":503,\"../../lib/svg_text_utils\":529,\"../../plots/plots\":619,\"../bar/constants\":650,\"../bar/uniform_text\":664,\"./event_data\":903,\"./helpers\":904,\"@plotly/d3\":58}],909:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar styleOne = _dereq_('./style_one');\nvar resizeText = _dereq_('../bar/uniform_text').resizeText;\n\nmodule.exports = function style(gd) {\n var s = gd._fullLayout._pielayer.selectAll('.trace');\n resizeText(gd, s, 'pie');\n\n s.each(function(cd) {\n var cd0 = cd[0];\n var trace = cd0.trace;\n var traceSelection = d3.select(this);\n\n traceSelection.style({opacity: trace.opacity});\n\n traceSelection.selectAll('path.surface').each(function(pt) {\n d3.select(this).call(styleOne, pt, trace);\n });\n });\n};\n\n},{\"../bar/uniform_text\":664,\"./style_one\":910,\"@plotly/d3\":58}],910:[function(_dereq_,module,exports){\n'use strict';\n\nvar Color = _dereq_('../../components/color');\nvar castOption = _dereq_('./helpers').castOption;\n\nmodule.exports = function styleOne(s, pt, trace) {\n var line = trace.marker.line;\n var lineColor = castOption(line.color, pt.pts) || Color.defaultLine;\n var lineWidth = castOption(line.width, pt.pts) || 0;\n\n s.style('stroke-width', lineWidth)\n .call(Color.fill, pt.color)\n .call(Color.stroke, lineColor);\n};\n\n},{\"../../components/color\":366,\"./helpers\":904}],911:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterglAttrs = _dereq_('../scatter/attributes');\n\nmodule.exports = {\n x: scatterglAttrs.x,\n y: scatterglAttrs.y,\n xy: {\n valType: 'data_array',\n editType: 'calc',\n },\n indices: {\n valType: 'data_array',\n editType: 'calc',\n },\n xbounds: {\n valType: 'data_array',\n editType: 'calc',\n },\n ybounds: {\n valType: 'data_array',\n editType: 'calc',\n },\n text: scatterglAttrs.text,\n marker: {\n color: {\n valType: 'color',\n arrayOk: false,\n\n editType: 'calc',\n },\n opacity: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 1,\n arrayOk: false,\n\n editType: 'calc',\n },\n blend: {\n valType: 'boolean',\n dflt: null,\n\n editType: 'calc',\n },\n sizemin: {\n valType: 'number',\n min: 0.1,\n max: 2,\n dflt: 0.5,\n\n editType: 'calc',\n },\n sizemax: {\n valType: 'number',\n min: 0.1,\n dflt: 20,\n\n editType: 'calc',\n },\n border: {\n color: {\n valType: 'color',\n arrayOk: false,\n\n editType: 'calc',\n },\n arearatio: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0,\n\n editType: 'calc',\n },\n editType: 'calc'\n },\n editType: 'calc'\n },\n transforms: undefined\n};\n\n},{\"../scatter/attributes\":925}],912:[function(_dereq_,module,exports){\n'use strict';\n\nvar createPointCloudRenderer = _dereq_('../../../stackgl_modules').gl_pointcloud2d;\n\nvar str2RGBArray = _dereq_('../../lib/str2rgbarray');\nvar findExtremes = _dereq_('../../plots/cartesian/autorange').findExtremes;\nvar getTraceColor = _dereq_('../scatter/get_trace_color');\n\nfunction Pointcloud(scene, uid) {\n this.scene = scene;\n this.uid = uid;\n this.type = 'pointcloud';\n\n this.pickXData = [];\n this.pickYData = [];\n this.xData = [];\n this.yData = [];\n this.textLabels = [];\n this.color = 'rgb(0, 0, 0)';\n this.name = '';\n this.hoverinfo = 'all';\n\n this.idToIndex = new Int32Array(0);\n this.bounds = [0, 0, 0, 0];\n\n this.pointcloudOptions = {\n positions: new Float32Array(0),\n idToIndex: this.idToIndex,\n sizemin: 0.5,\n sizemax: 12,\n color: [0, 0, 0, 1],\n areaRatio: 1,\n borderColor: [0, 0, 0, 1]\n };\n this.pointcloud = createPointCloudRenderer(scene.glplot, this.pointcloudOptions);\n this.pointcloud._trace = this; // scene2d requires this prop\n}\n\nvar proto = Pointcloud.prototype;\n\nproto.handlePick = function(pickResult) {\n var index = this.idToIndex[pickResult.pointId];\n\n // prefer the readout from XY, if present\n return {\n trace: this,\n dataCoord: pickResult.dataCoord,\n traceCoord: this.pickXYData ?\n [this.pickXYData[index * 2], this.pickXYData[index * 2 + 1]] :\n [this.pickXData[index], this.pickYData[index]],\n textLabel: Array.isArray(this.textLabels) ?\n this.textLabels[index] :\n this.textLabels,\n color: this.color,\n name: this.name,\n pointIndex: index,\n hoverinfo: this.hoverinfo\n };\n};\n\nproto.update = function(options) {\n this.index = options.index;\n this.textLabels = options.text;\n this.name = options.name;\n this.hoverinfo = options.hoverinfo;\n this.bounds = [Infinity, Infinity, -Infinity, -Infinity];\n\n this.updateFast(options);\n\n this.color = getTraceColor(options, {});\n};\n\nproto.updateFast = function(options) {\n var x = this.xData = this.pickXData = options.x;\n var y = this.yData = this.pickYData = options.y;\n var xy = this.pickXYData = options.xy;\n\n var userBounds = options.xbounds && options.ybounds;\n var index = options.indices;\n\n var len;\n var idToIndex;\n var positions;\n var bounds = this.bounds;\n\n var xx, yy, i;\n\n if(xy) {\n positions = xy;\n\n // dividing xy.length by 2 and truncating to integer if xy.length was not even\n len = xy.length >>> 1;\n\n if(userBounds) {\n bounds[0] = options.xbounds[0];\n bounds[2] = options.xbounds[1];\n bounds[1] = options.ybounds[0];\n bounds[3] = options.ybounds[1];\n } else {\n for(i = 0; i < len; i++) {\n xx = positions[i * 2];\n yy = positions[i * 2 + 1];\n\n if(xx < bounds[0]) bounds[0] = xx;\n if(xx > bounds[2]) bounds[2] = xx;\n if(yy < bounds[1]) bounds[1] = yy;\n if(yy > bounds[3]) bounds[3] = yy;\n }\n }\n\n if(index) {\n idToIndex = index;\n } else {\n idToIndex = new Int32Array(len);\n\n for(i = 0; i < len; i++) {\n idToIndex[i] = i;\n }\n }\n } else {\n len = x.length;\n\n positions = new Float32Array(2 * len);\n idToIndex = new Int32Array(len);\n\n for(i = 0; i < len; i++) {\n xx = x[i];\n yy = y[i];\n\n idToIndex[i] = i;\n\n positions[i * 2] = xx;\n positions[i * 2 + 1] = yy;\n\n if(xx < bounds[0]) bounds[0] = xx;\n if(xx > bounds[2]) bounds[2] = xx;\n if(yy < bounds[1]) bounds[1] = yy;\n if(yy > bounds[3]) bounds[3] = yy;\n }\n }\n\n this.idToIndex = idToIndex;\n this.pointcloudOptions.idToIndex = idToIndex;\n\n this.pointcloudOptions.positions = positions;\n\n var markerColor = str2RGBArray(options.marker.color);\n var borderColor = str2RGBArray(options.marker.border.color);\n var opacity = options.opacity * options.marker.opacity;\n\n markerColor[3] *= opacity;\n this.pointcloudOptions.color = markerColor;\n\n // detect blending from the number of points, if undefined\n // because large data with blending hits performance\n var blend = options.marker.blend;\n if(blend === null) {\n var maxPoints = 100;\n blend = x.length < maxPoints || y.length < maxPoints;\n }\n this.pointcloudOptions.blend = blend;\n\n borderColor[3] *= opacity;\n this.pointcloudOptions.borderColor = borderColor;\n\n var markerSizeMin = options.marker.sizemin;\n var markerSizeMax = Math.max(options.marker.sizemax, options.marker.sizemin);\n this.pointcloudOptions.sizeMin = markerSizeMin;\n this.pointcloudOptions.sizeMax = markerSizeMax;\n this.pointcloudOptions.areaRatio = options.marker.border.arearatio;\n\n this.pointcloud.update(this.pointcloudOptions);\n\n // add item for autorange routine\n var xa = this.scene.xaxis;\n var ya = this.scene.yaxis;\n var pad = markerSizeMax / 2 || 0.5;\n options._extremes[xa._id] = findExtremes(xa, [bounds[0], bounds[2]], {ppad: pad});\n options._extremes[ya._id] = findExtremes(ya, [bounds[1], bounds[3]], {ppad: pad});\n};\n\nproto.dispose = function() {\n this.pointcloud.dispose();\n};\n\nfunction createPointcloud(scene, data) {\n var plot = new Pointcloud(scene, data.uid);\n plot.update(data);\n return plot;\n}\n\nmodule.exports = createPointcloud;\n\n},{\"../../../stackgl_modules\":1119,\"../../lib/str2rgbarray\":528,\"../../plots/cartesian/autorange\":553,\"../scatter/get_trace_color\":935}],913:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n coerce('x');\n coerce('y');\n\n coerce('xbounds');\n coerce('ybounds');\n\n if(traceIn.xy && traceIn.xy instanceof Float32Array) {\n traceOut.xy = traceIn.xy;\n }\n\n if(traceIn.indices && traceIn.indices instanceof Int32Array) {\n traceOut.indices = traceIn.indices;\n }\n\n coerce('text');\n coerce('marker.color', defaultColor);\n coerce('marker.opacity');\n coerce('marker.blend');\n coerce('marker.sizemin');\n coerce('marker.sizemax');\n coerce('marker.border.color', defaultColor);\n coerce('marker.border.arearatio');\n\n // disable 1D transforms - that would defeat the purpose of this trace type, performance!\n traceOut._length = null;\n};\n\n},{\"../../lib\":503,\"./attributes\":911}],914:[function(_dereq_,module,exports){\n'use strict';\n\nvar deprecationWarning = [\n '*pointcloud* trace is deprecated!',\n 'Please consider switching to the *scattergl* trace type.'\n].join(' ');\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n\n // reuse the Scatter3D 'dummy' calc step so that legends know what to do\n calc: _dereq_('../scatter3d/calc'),\n plot: _dereq_('./convert'),\n\n moduleType: 'trace',\n name: 'pointcloud',\n basePlotModule: _dereq_('../../plots/gl2d'),\n categories: ['gl', 'gl2d', 'showLegend'],\n meta: {\n }\n};\n\n},{\"../../plots/gl2d\":596,\"../scatter3d/calc\":954,\"./attributes\":911,\"./convert\":912,\"./defaults\":913}],915:[function(_dereq_,module,exports){\n'use strict';\n\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar colorAttrs = _dereq_('../../components/color/attributes');\nvar fxAttrs = _dereq_('../../components/fx/attributes');\nvar domainAttrs = _dereq_('../../plots/domain').attributes;\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar colorAttributes = _dereq_('../../components/colorscale/attributes');\nvar templatedArray = _dereq_('../../plot_api/plot_template').templatedArray;\nvar descriptionOnlyNumbers = _dereq_('../../plots/cartesian/axis_format_attributes').descriptionOnlyNumbers;\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\n\nvar attrs = module.exports = overrideAll({\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {\n flags: [],\n arrayOk: false,\n }),\n hoverlabel: fxAttrs.hoverlabel,\n domain: domainAttrs({name: 'sankey', trace: true}),\n\n orientation: {\n valType: 'enumerated',\n values: ['v', 'h'],\n dflt: 'h',\n },\n\n valueformat: {\n valType: 'string',\n dflt: '.3s',\n description: descriptionOnlyNumbers('value')\n },\n\n valuesuffix: {\n valType: 'string',\n dflt: '',\n },\n\n arrangement: {\n valType: 'enumerated',\n values: ['snap', 'perpendicular', 'freeform', 'fixed'],\n dflt: 'snap',\n },\n\n textfont: fontAttrs({\n }),\n\n // Remove top-level customdata\n customdata: undefined,\n\n node: {\n label: {\n valType: 'data_array',\n dflt: [],\n },\n groups: {\n valType: 'info_array',\n impliedEdits: {'x': [], 'y': []},\n dimensions: 2,\n freeLength: true,\n dflt: [],\n items: {valType: 'number', editType: 'calc'},\n },\n x: {\n valType: 'data_array',\n dflt: [],\n },\n y: {\n valType: 'data_array',\n dflt: [],\n },\n color: {\n valType: 'color',\n arrayOk: true,\n },\n customdata: {\n valType: 'data_array',\n editType: 'calc',\n },\n line: {\n color: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n arrayOk: true,\n },\n width: {\n valType: 'number',\n min: 0,\n dflt: 0.5,\n arrayOk: true,\n }\n },\n pad: {\n valType: 'number',\n arrayOk: false,\n min: 0,\n dflt: 20,\n },\n thickness: {\n valType: 'number',\n arrayOk: false,\n min: 1,\n dflt: 20,\n },\n hoverinfo: {\n valType: 'enumerated',\n values: ['all', 'none', 'skip'],\n dflt: 'all',\n },\n hoverlabel: fxAttrs.hoverlabel, // needs editType override,\n hovertemplate: hovertemplateAttrs({}, {\n keys: ['value', 'label']\n }),\n },\n\n link: {\n label: {\n valType: 'data_array',\n dflt: [],\n },\n color: {\n valType: 'color',\n arrayOk: true,\n },\n customdata: {\n valType: 'data_array',\n editType: 'calc',\n },\n line: {\n color: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n arrayOk: true,\n },\n width: {\n valType: 'number',\n min: 0,\n dflt: 0,\n arrayOk: true,\n }\n },\n source: {\n valType: 'data_array',\n dflt: [],\n },\n target: {\n valType: 'data_array',\n dflt: [],\n },\n value: {\n valType: 'data_array',\n dflt: [],\n },\n hoverinfo: {\n valType: 'enumerated',\n values: ['all', 'none', 'skip'],\n dflt: 'all',\n },\n hoverlabel: fxAttrs.hoverlabel, // needs editType override,\n hovertemplate: hovertemplateAttrs({}, {\n keys: ['value', 'label']\n }),\n colorscales: templatedArray('concentrationscales', {\n editType: 'calc',\n label: {\n valType: 'string',\n editType: 'calc',\n dflt: ''\n },\n cmax: {\n valType: 'number',\n editType: 'calc',\n dflt: 1,\n },\n cmin: {\n valType: 'number',\n editType: 'calc',\n dflt: 0,\n },\n colorscale: extendFlat(colorAttributes().colorscale, {dflt: [[0, 'white'], [1, 'black']]})\n }),\n }\n}, 'calc', 'nested');\nattrs.transforms = undefined;\n\n},{\"../../components/color/attributes\":365,\"../../components/colorscale/attributes\":373,\"../../components/fx/attributes\":397,\"../../lib/extend\":493,\"../../plot_api/edit_types\":536,\"../../plot_api/plot_template\":543,\"../../plots/attributes\":550,\"../../plots/cartesian/axis_format_attributes\":557,\"../../plots/domain\":584,\"../../plots/font_attributes\":585,\"../../plots/template_attributes\":633}],916:[function(_dereq_,module,exports){\n'use strict';\n\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\nvar getModuleCalcData = _dereq_('../../plots/get_data').getModuleCalcData;\nvar plot = _dereq_('./plot');\nvar fxAttrs = _dereq_('../../components/fx/layout_attributes');\n\nvar setCursor = _dereq_('../../lib/setcursor');\nvar dragElement = _dereq_('../../components/dragelement');\nvar prepSelect = _dereq_('../../plots/cartesian/select').prepSelect;\nvar Lib = _dereq_('../../lib');\nvar Registry = _dereq_('../../registry');\n\nvar SANKEY = 'sankey';\n\nexports.name = SANKEY;\n\nexports.baseLayoutAttrOverrides = overrideAll({\n hoverlabel: fxAttrs.hoverlabel\n}, 'plot', 'nested');\n\nexports.plot = function(gd) {\n var calcData = getModuleCalcData(gd.calcdata, SANKEY)[0];\n plot(gd, calcData);\n exports.updateFx(gd);\n};\n\nexports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n var hadPlot = (oldFullLayout._has && oldFullLayout._has(SANKEY));\n var hasPlot = (newFullLayout._has && newFullLayout._has(SANKEY));\n\n if(hadPlot && !hasPlot) {\n oldFullLayout._paperdiv.selectAll('.sankey').remove();\n oldFullLayout._paperdiv.selectAll('.bgsankey').remove();\n }\n};\n\nexports.updateFx = function(gd) {\n for(var i = 0; i < gd._fullData.length; i++) {\n subplotUpdateFx(gd, i);\n }\n};\n\nfunction subplotUpdateFx(gd, index) {\n var trace = gd._fullData[index];\n var fullLayout = gd._fullLayout;\n\n var dragMode = fullLayout.dragmode;\n var cursor = fullLayout.dragmode === 'pan' ? 'move' : 'crosshair';\n var bgRect = trace._bgRect;\n\n if(dragMode === 'pan' || dragMode === 'zoom') return;\n\n setCursor(bgRect, cursor);\n\n var xaxis = {\n _id: 'x',\n c2p: Lib.identity,\n _offset: trace._sankey.translateX,\n _length: trace._sankey.width\n };\n var yaxis = {\n _id: 'y',\n c2p: Lib.identity,\n _offset: trace._sankey.translateY,\n _length: trace._sankey.height\n };\n\n // Note: dragOptions is needed to be declared for all dragmodes because\n // it's the object that holds persistent selection state.\n var dragOptions = {\n gd: gd,\n element: bgRect.node(),\n plotinfo: {\n id: index,\n xaxis: xaxis,\n yaxis: yaxis,\n fillRangeItems: Lib.noop\n },\n subplot: index,\n // create mock x/y axes for hover routine\n xaxes: [xaxis],\n yaxes: [yaxis],\n doneFnCompleted: function(selection) {\n var traceNow = gd._fullData[index];\n var newGroups;\n var oldGroups = traceNow.node.groups.slice();\n var newGroup = [];\n\n function findNode(pt) {\n var nodes = traceNow._sankey.graph.nodes;\n for(var i = 0; i < nodes.length; i++) {\n if(nodes[i].pointNumber === pt) return nodes[i];\n }\n }\n\n for(var j = 0; j < selection.length; j++) {\n var node = findNode(selection[j].pointNumber);\n if(!node) continue;\n\n // If the node represents a group\n if(node.group) {\n // Add all its children to the current selection\n for(var k = 0; k < node.childrenNodes.length; k++) {\n newGroup.push(node.childrenNodes[k].pointNumber);\n }\n // Flag group for removal from existing list of groups\n oldGroups[node.pointNumber - traceNow.node._count] = false;\n } else {\n newGroup.push(node.pointNumber);\n }\n }\n\n newGroups = oldGroups\n .filter(Boolean)\n .concat([newGroup]);\n\n Registry.call('_guiRestyle', gd, {\n 'node.groups': [ newGroups ]\n }, index);\n }\n };\n\n dragOptions.prepFn = function(e, startX, startY) {\n prepSelect(e, startX, startY, dragOptions, dragMode);\n };\n\n dragElement.init(dragOptions);\n}\n\n},{\"../../components/dragelement\":385,\"../../components/fx/layout_attributes\":407,\"../../lib\":503,\"../../lib/setcursor\":524,\"../../plot_api/edit_types\":536,\"../../plots/cartesian/select\":575,\"../../plots/get_data\":593,\"../../registry\":638,\"./plot\":921}],917:[function(_dereq_,module,exports){\n'use strict';\n\nvar tarjan = _dereq_('strongly-connected-components');\nvar Lib = _dereq_('../../lib');\nvar wrap = _dereq_('../../lib/gup').wrap;\n\nvar isArrayOrTypedArray = Lib.isArrayOrTypedArray;\nvar isIndex = Lib.isIndex;\nvar Colorscale = _dereq_('../../components/colorscale');\n\nfunction convertToD3Sankey(trace) {\n var nodeSpec = trace.node;\n var linkSpec = trace.link;\n\n var links = [];\n var hasLinkColorArray = isArrayOrTypedArray(linkSpec.color);\n var hasLinkCustomdataArray = isArrayOrTypedArray(linkSpec.customdata);\n var linkedNodes = {};\n\n var components = {};\n var componentCount = linkSpec.colorscales.length;\n var i;\n for(i = 0; i < componentCount; i++) {\n var cscale = linkSpec.colorscales[i];\n var specs = Colorscale.extractScale(cscale, {cLetter: 'c'});\n var scale = Colorscale.makeColorScaleFunc(specs);\n components[cscale.label] = scale;\n }\n\n var maxNodeId = 0;\n for(i = 0; i < linkSpec.value.length; i++) {\n if(linkSpec.source[i] > maxNodeId) maxNodeId = linkSpec.source[i];\n if(linkSpec.target[i] > maxNodeId) maxNodeId = linkSpec.target[i];\n }\n var nodeCount = maxNodeId + 1;\n trace.node._count = nodeCount;\n\n // Group nodes\n var j;\n var groups = trace.node.groups;\n var groupLookup = {};\n for(i = 0; i < groups.length; i++) {\n var group = groups[i];\n // Build a lookup table to quickly find in which group a node is\n for(j = 0; j < group.length; j++) {\n var nodeIndex = group[j];\n var groupIndex = nodeCount + i;\n if(groupLookup.hasOwnProperty(nodeIndex)) {\n Lib.warn('Node ' + nodeIndex + ' is already part of a group.');\n } else {\n groupLookup[nodeIndex] = groupIndex;\n }\n }\n }\n\n // Process links\n var groupedLinks = {\n source: [],\n target: []\n };\n for(i = 0; i < linkSpec.value.length; i++) {\n var val = linkSpec.value[i];\n // remove negative values, but keep zeros with special treatment\n var source = linkSpec.source[i];\n var target = linkSpec.target[i];\n if(!(val > 0 && isIndex(source, nodeCount) && isIndex(target, nodeCount))) {\n continue;\n }\n\n // Remove links that are within the same group\n if(groupLookup.hasOwnProperty(source) && groupLookup.hasOwnProperty(target) && groupLookup[source] === groupLookup[target]) {\n continue;\n }\n\n // if link targets a node in the group, relink target to that group\n if(groupLookup.hasOwnProperty(target)) {\n target = groupLookup[target];\n }\n\n // if link originates from a node in a group, relink source to that group\n if(groupLookup.hasOwnProperty(source)) {\n source = groupLookup[source];\n }\n\n source = +source;\n target = +target;\n linkedNodes[source] = linkedNodes[target] = true;\n\n var label = '';\n if(linkSpec.label && linkSpec.label[i]) label = linkSpec.label[i];\n\n var concentrationscale = null;\n if(label && components.hasOwnProperty(label)) concentrationscale = components[label];\n\n links.push({\n pointNumber: i,\n label: label,\n color: hasLinkColorArray ? linkSpec.color[i] : linkSpec.color,\n customdata: hasLinkCustomdataArray ? linkSpec.customdata[i] : linkSpec.customdata,\n concentrationscale: concentrationscale,\n source: source,\n target: target,\n value: +val\n });\n\n groupedLinks.source.push(source);\n groupedLinks.target.push(target);\n }\n\n // Process nodes\n var totalCount = nodeCount + groups.length;\n var hasNodeColorArray = isArrayOrTypedArray(nodeSpec.color);\n var hasNodeCustomdataArray = isArrayOrTypedArray(nodeSpec.customdata);\n var nodes = [];\n for(i = 0; i < totalCount; i++) {\n if(!linkedNodes[i]) continue;\n var l = nodeSpec.label[i];\n\n nodes.push({\n group: (i > nodeCount - 1),\n childrenNodes: [],\n pointNumber: i,\n label: l,\n color: hasNodeColorArray ? nodeSpec.color[i] : nodeSpec.color,\n customdata: hasNodeCustomdataArray ? nodeSpec.customdata[i] : nodeSpec.customdata\n });\n }\n\n // Check if we have circularity on the resulting graph\n var circular = false;\n if(circularityPresent(totalCount, groupedLinks.source, groupedLinks.target)) {\n circular = true;\n }\n\n return {\n circular: circular,\n links: links,\n nodes: nodes,\n\n // Data structure for groups\n groups: groups,\n groupLookup: groupLookup\n };\n}\n\nfunction circularityPresent(nodeLen, sources, targets) {\n var nodes = Lib.init2dArray(nodeLen, 0);\n\n for(var i = 0; i < Math.min(sources.length, targets.length); i++) {\n if(Lib.isIndex(sources[i], nodeLen) && Lib.isIndex(targets[i], nodeLen)) {\n if(sources[i] === targets[i]) {\n return true; // self-link which is also a scc of one\n }\n nodes[sources[i]].push(targets[i]);\n }\n }\n\n var scc = tarjan(nodes);\n\n // Tarján's strongly connected components algorithm coded by Mikola Lysenko\n // returns at least one non-singular component if there's circularity in the graph\n return scc.components.some(function(c) {\n return c.length > 1;\n });\n}\n\nmodule.exports = function calc(gd, trace) {\n var result = convertToD3Sankey(trace);\n\n return wrap({\n circular: result.circular,\n _nodes: result.nodes,\n _links: result.links,\n\n // Data structure for grouping\n _groups: result.groups,\n _groupLookup: result.groupLookup,\n });\n};\n\n},{\"../../components/colorscale\":378,\"../../lib\":503,\"../../lib/gup\":500,\"strongly-connected-components\":306}],918:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n nodeTextOffsetHorizontal: 4,\n nodeTextOffsetVertical: 3,\n nodePadAcross: 10,\n sankeyIterations: 50,\n forceIterations: 5,\n forceTicksPerFrame: 10,\n duration: 500,\n ease: 'linear',\n cn: {\n sankey: 'sankey',\n sankeyLinks: 'sankey-links',\n sankeyLink: 'sankey-link',\n sankeyNodeSet: 'sankey-node-set',\n sankeyNode: 'sankey-node',\n nodeRect: 'node-rect',\n nodeLabel: 'node-label'\n }\n};\n\n},{}],919:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar attributes = _dereq_('./attributes');\nvar Color = _dereq_('../../components/color');\nvar tinycolor = _dereq_('tinycolor2');\nvar handleDomainDefaults = _dereq_('../../plots/domain').defaults;\nvar handleHoverLabelDefaults = _dereq_('../../components/fx/hoverlabel_defaults');\nvar Template = _dereq_('../../plot_api/plot_template');\nvar handleArrayContainerDefaults = _dereq_('../../plots/array_container_defaults');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var hoverlabelDefault = Lib.extendDeep(layout.hoverlabel, traceIn.hoverlabel);\n\n // node attributes\n var nodeIn = traceIn.node;\n var nodeOut = Template.newContainer(traceOut, 'node');\n\n function coerceNode(attr, dflt) {\n return Lib.coerce(nodeIn, nodeOut, attributes.node, attr, dflt);\n }\n coerceNode('label');\n coerceNode('groups');\n coerceNode('x');\n coerceNode('y');\n coerceNode('pad');\n coerceNode('thickness');\n coerceNode('line.color');\n coerceNode('line.width');\n coerceNode('hoverinfo', traceIn.hoverinfo);\n handleHoverLabelDefaults(nodeIn, nodeOut, coerceNode, hoverlabelDefault);\n coerceNode('hovertemplate');\n\n var colors = layout.colorway;\n\n var defaultNodePalette = function(i) {return colors[i % colors.length];};\n\n coerceNode('color', nodeOut.label.map(function(d, i) {\n return Color.addOpacity(defaultNodePalette(i), 0.8);\n }));\n coerceNode('customdata');\n\n // link attributes\n var linkIn = traceIn.link || {};\n var linkOut = Template.newContainer(traceOut, 'link');\n\n function coerceLink(attr, dflt) {\n return Lib.coerce(linkIn, linkOut, attributes.link, attr, dflt);\n }\n coerceLink('label');\n coerceLink('source');\n coerceLink('target');\n coerceLink('value');\n coerceLink('line.color');\n coerceLink('line.width');\n coerceLink('hoverinfo', traceIn.hoverinfo);\n handleHoverLabelDefaults(linkIn, linkOut, coerceLink, hoverlabelDefault);\n coerceLink('hovertemplate');\n\n var defaultLinkColor = tinycolor(layout.paper_bgcolor).getLuminance() < 0.333 ?\n 'rgba(255, 255, 255, 0.6)' :\n 'rgba(0, 0, 0, 0.2)';\n\n coerceLink('color', Lib.repeat(defaultLinkColor, linkOut.value.length));\n coerceLink('customdata');\n\n handleArrayContainerDefaults(linkIn, linkOut, {\n name: 'colorscales',\n handleItemDefaults: concentrationscalesDefaults\n });\n\n handleDomainDefaults(traceOut, layout, coerce);\n\n coerce('orientation');\n coerce('valueformat');\n coerce('valuesuffix');\n\n var dfltArrangement;\n if(nodeOut.x.length && nodeOut.y.length) {\n dfltArrangement = 'freeform';\n }\n coerce('arrangement', dfltArrangement);\n\n Lib.coerceFont(coerce, 'textfont', Lib.extendFlat({}, layout.font));\n\n // disable 1D transforms - arrays here are 1D but their lengths/meanings\n // don't match, between nodes and links\n traceOut._length = null;\n};\n\nfunction concentrationscalesDefaults(In, Out) {\n function coerce(attr, dflt) {\n return Lib.coerce(In, Out, attributes.link.colorscales, attr, dflt);\n }\n\n coerce('label');\n coerce('cmin');\n coerce('cmax');\n coerce('colorscale');\n}\n\n},{\"../../components/color\":366,\"../../components/fx/hoverlabel_defaults\":404,\"../../lib\":503,\"../../plot_api/plot_template\":543,\"../../plots/array_container_defaults\":549,\"../../plots/domain\":584,\"./attributes\":915,\"tinycolor2\":312}],920:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n calc: _dereq_('./calc'),\n plot: _dereq_('./plot'),\n\n moduleType: 'trace',\n name: 'sankey',\n basePlotModule: _dereq_('./base_plot'),\n selectPoints: _dereq_('./select.js'),\n categories: ['noOpacity'],\n meta: {\n }\n};\n\n},{\"./attributes\":915,\"./base_plot\":916,\"./calc\":917,\"./defaults\":919,\"./plot\":921,\"./select.js\":923}],921:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Lib = _dereq_('../../lib');\nvar numberFormat = Lib.numberFormat;\nvar render = _dereq_('./render');\nvar Fx = _dereq_('../../components/fx');\nvar Color = _dereq_('../../components/color');\nvar cn = _dereq_('./constants').cn;\n\nvar _ = Lib._;\n\nfunction renderableValuePresent(d) {return d !== '';}\n\nfunction ownTrace(selection, d) {\n return selection.filter(function(s) {return s.key === d.traceId;});\n}\n\nfunction makeTranslucent(element, alpha) {\n d3.select(element)\n .select('path')\n .style('fill-opacity', alpha);\n d3.select(element)\n .select('rect')\n .style('fill-opacity', alpha);\n}\n\nfunction makeTextContrasty(element) {\n d3.select(element)\n .select('text.name')\n .style('fill', 'black');\n}\n\nfunction relatedLinks(d) {\n return function(l) {\n return d.node.sourceLinks.indexOf(l.link) !== -1 || d.node.targetLinks.indexOf(l.link) !== -1;\n };\n}\n\nfunction relatedNodes(l) {\n return function(d) {\n return d.node.sourceLinks.indexOf(l.link) !== -1 || d.node.targetLinks.indexOf(l.link) !== -1;\n };\n}\n\nfunction nodeHoveredStyle(sankeyNode, d, sankey) {\n if(d && sankey) {\n ownTrace(sankey, d)\n .selectAll('.' + cn.sankeyLink)\n .filter(relatedLinks(d))\n .call(linkHoveredStyle.bind(0, d, sankey, false));\n }\n}\n\nfunction nodeNonHoveredStyle(sankeyNode, d, sankey) {\n if(d && sankey) {\n ownTrace(sankey, d)\n .selectAll('.' + cn.sankeyLink)\n .filter(relatedLinks(d))\n .call(linkNonHoveredStyle.bind(0, d, sankey, false));\n }\n}\n\nfunction linkHoveredStyle(d, sankey, visitNodes, sankeyLink) {\n var label = sankeyLink.datum().link.label;\n\n sankeyLink.style('fill-opacity', function(l) {\n if(!l.link.concentrationscale) {\n return 0.4;\n }\n });\n\n if(label) {\n ownTrace(sankey, d)\n .selectAll('.' + cn.sankeyLink)\n .filter(function(l) {return l.link.label === label;})\n .style('fill-opacity', function(l) {\n if(!l.link.concentrationscale) {\n return 0.4;\n }\n });\n }\n\n if(visitNodes) {\n ownTrace(sankey, d)\n .selectAll('.' + cn.sankeyNode)\n .filter(relatedNodes(d))\n .call(nodeHoveredStyle);\n }\n}\n\nfunction linkNonHoveredStyle(d, sankey, visitNodes, sankeyLink) {\n var label = sankeyLink.datum().link.label;\n\n sankeyLink.style('fill-opacity', function(d) {return d.tinyColorAlpha;});\n if(label) {\n ownTrace(sankey, d)\n .selectAll('.' + cn.sankeyLink)\n .filter(function(l) {return l.link.label === label;})\n .style('fill-opacity', function(d) {return d.tinyColorAlpha;});\n }\n\n if(visitNodes) {\n ownTrace(sankey, d)\n .selectAll(cn.sankeyNode)\n .filter(relatedNodes(d))\n .call(nodeNonHoveredStyle);\n }\n}\n\n// does not support array values for now\nfunction castHoverOption(trace, attr) {\n var labelOpts = trace.hoverlabel || {};\n var val = Lib.nestedProperty(labelOpts, attr).get();\n return Array.isArray(val) ? false : val;\n}\n\nmodule.exports = function plot(gd, calcData) {\n var fullLayout = gd._fullLayout;\n var svg = fullLayout._paper;\n var size = fullLayout._size;\n\n // stash initial view\n for(var i = 0; i < gd._fullData.length; i++) {\n if(!gd._fullData[i].visible) continue;\n if(gd._fullData[i].type !== cn.sankey) continue;\n if(!gd._fullData[i]._viewInitial) {\n var node = gd._fullData[i].node;\n gd._fullData[i]._viewInitial = {\n node: {\n groups: node.groups.slice(),\n x: node.x.slice(),\n y: node.y.slice()\n }\n };\n }\n }\n\n var linkSelect = function(element, d) {\n var evt = d.link;\n evt.originalEvent = d3.event;\n gd._hoverdata = [evt];\n Fx.click(gd, { target: true });\n };\n\n var linkHover = function(element, d, sankey) {\n if(gd._fullLayout.hovermode === false) return;\n d3.select(element).call(linkHoveredStyle.bind(0, d, sankey, true));\n if(d.link.trace.link.hoverinfo !== 'skip') {\n d.link.fullData = d.link.trace;\n gd.emit('plotly_hover', {\n event: d3.event,\n points: [d.link]\n });\n }\n };\n\n var sourceLabel = _(gd, 'source:') + ' ';\n var targetLabel = _(gd, 'target:') + ' ';\n var concentrationLabel = _(gd, 'concentration:') + ' ';\n var incomingLabel = _(gd, 'incoming flow count:') + ' ';\n var outgoingLabel = _(gd, 'outgoing flow count:') + ' ';\n\n var linkHoverFollow = function(element, d) {\n if(gd._fullLayout.hovermode === false) return;\n var obj = d.link.trace.link;\n if(obj.hoverinfo === 'none' || obj.hoverinfo === 'skip') return;\n\n var hoverItems = [];\n\n function hoverCenterPosition(link) {\n var hoverCenterX, hoverCenterY;\n if(link.circular) {\n hoverCenterX = (link.circularPathData.leftInnerExtent + link.circularPathData.rightInnerExtent) / 2;\n hoverCenterY = link.circularPathData.verticalFullExtent;\n } else {\n hoverCenterX = (link.source.x1 + link.target.x0) / 2;\n hoverCenterY = (link.y0 + link.y1) / 2;\n }\n var center = [hoverCenterX, hoverCenterY];\n if(link.trace.orientation === 'v') center.reverse();\n center[0] += d.parent.translateX;\n center[1] += d.parent.translateY;\n return center;\n }\n\n // For each related links, create a hoverItem\n var anchorIndex = 0;\n for(var i = 0; i < d.flow.links.length; i++) {\n var link = d.flow.links[i];\n if(gd._fullLayout.hovermode === 'closest' && d.link.pointNumber !== link.pointNumber) continue;\n if(d.link.pointNumber === link.pointNumber) anchorIndex = i;\n link.fullData = link.trace;\n obj = d.link.trace.link;\n var hoverCenter = hoverCenterPosition(link);\n var hovertemplateLabels = {valueLabel: numberFormat(d.valueFormat)(link.value) + d.valueSuffix};\n\n hoverItems.push({\n x: hoverCenter[0],\n y: hoverCenter[1],\n name: hovertemplateLabels.valueLabel,\n text: [\n link.label || '',\n sourceLabel + link.source.label,\n targetLabel + link.target.label,\n link.concentrationscale ? concentrationLabel + numberFormat('%0.2f')(link.flow.labelConcentration) : ''\n ].filter(renderableValuePresent).join('
'),\n color: castHoverOption(obj, 'bgcolor') || Color.addOpacity(link.color, 1),\n borderColor: castHoverOption(obj, 'bordercolor'),\n fontFamily: castHoverOption(obj, 'font.family'),\n fontSize: castHoverOption(obj, 'font.size'),\n fontColor: castHoverOption(obj, 'font.color'),\n nameLength: castHoverOption(obj, 'namelength'),\n textAlign: castHoverOption(obj, 'align'),\n idealAlign: d3.event.x < hoverCenter[0] ? 'right' : 'left',\n\n hovertemplate: obj.hovertemplate,\n hovertemplateLabels: hovertemplateLabels,\n eventData: [link]\n });\n }\n\n var tooltips = Fx.loneHover(hoverItems, {\n container: fullLayout._hoverlayer.node(),\n outerContainer: fullLayout._paper.node(),\n gd: gd,\n anchorIndex: anchorIndex\n });\n\n tooltips.each(function() {\n var tooltip = this;\n if(!d.link.concentrationscale) {\n makeTranslucent(tooltip, 0.65);\n }\n makeTextContrasty(tooltip);\n });\n };\n\n var linkUnhover = function(element, d, sankey) {\n if(gd._fullLayout.hovermode === false) return;\n d3.select(element).call(linkNonHoveredStyle.bind(0, d, sankey, true));\n if(d.link.trace.link.hoverinfo !== 'skip') {\n d.link.fullData = d.link.trace;\n gd.emit('plotly_unhover', {\n event: d3.event,\n points: [d.link]\n });\n }\n\n Fx.loneUnhover(fullLayout._hoverlayer.node());\n };\n\n var nodeSelect = function(element, d, sankey) {\n var evt = d.node;\n evt.originalEvent = d3.event;\n gd._hoverdata = [evt];\n d3.select(element).call(nodeNonHoveredStyle, d, sankey);\n Fx.click(gd, { target: true });\n };\n\n var nodeHover = function(element, d, sankey) {\n if(gd._fullLayout.hovermode === false) return;\n d3.select(element).call(nodeHoveredStyle, d, sankey);\n if(d.node.trace.node.hoverinfo !== 'skip') {\n d.node.fullData = d.node.trace;\n gd.emit('plotly_hover', {\n event: d3.event,\n points: [d.node]\n });\n }\n };\n\n var nodeHoverFollow = function(element, d) {\n if(gd._fullLayout.hovermode === false) return;\n\n var obj = d.node.trace.node;\n if(obj.hoverinfo === 'none' || obj.hoverinfo === 'skip') return;\n var nodeRect = d3.select(element).select('.' + cn.nodeRect);\n var rootBBox = gd._fullLayout._paperdiv.node().getBoundingClientRect();\n var boundingBox = nodeRect.node().getBoundingClientRect();\n var hoverCenterX0 = boundingBox.left - 2 - rootBBox.left;\n var hoverCenterX1 = boundingBox.right + 2 - rootBBox.left;\n var hoverCenterY = boundingBox.top + boundingBox.height / 4 - rootBBox.top;\n\n var hovertemplateLabels = {valueLabel: numberFormat(d.valueFormat)(d.node.value) + d.valueSuffix};\n d.node.fullData = d.node.trace;\n\n gd._fullLayout._calcInverseTransform(gd);\n var scaleX = gd._fullLayout._invScaleX;\n var scaleY = gd._fullLayout._invScaleY;\n\n var tooltip = Fx.loneHover({\n x0: scaleX * hoverCenterX0,\n x1: scaleX * hoverCenterX1,\n y: scaleY * hoverCenterY,\n name: numberFormat(d.valueFormat)(d.node.value) + d.valueSuffix,\n text: [\n d.node.label,\n incomingLabel + d.node.targetLinks.length,\n outgoingLabel + d.node.sourceLinks.length\n ].filter(renderableValuePresent).join('
'),\n color: castHoverOption(obj, 'bgcolor') || d.tinyColorHue,\n borderColor: castHoverOption(obj, 'bordercolor'),\n fontFamily: castHoverOption(obj, 'font.family'),\n fontSize: castHoverOption(obj, 'font.size'),\n fontColor: castHoverOption(obj, 'font.color'),\n nameLength: castHoverOption(obj, 'namelength'),\n textAlign: castHoverOption(obj, 'align'),\n idealAlign: 'left',\n\n hovertemplate: obj.hovertemplate,\n hovertemplateLabels: hovertemplateLabels,\n eventData: [d.node]\n }, {\n container: fullLayout._hoverlayer.node(),\n outerContainer: fullLayout._paper.node(),\n gd: gd\n });\n\n makeTranslucent(tooltip, 0.85);\n makeTextContrasty(tooltip);\n };\n\n var nodeUnhover = function(element, d, sankey) {\n if(gd._fullLayout.hovermode === false) return;\n d3.select(element).call(nodeNonHoveredStyle, d, sankey);\n if(d.node.trace.node.hoverinfo !== 'skip') {\n d.node.fullData = d.node.trace;\n gd.emit('plotly_unhover', {\n event: d3.event,\n points: [d.node]\n });\n }\n\n Fx.loneUnhover(fullLayout._hoverlayer.node());\n };\n\n render(\n gd,\n svg,\n calcData,\n {\n width: size.w,\n height: size.h,\n margin: {\n t: size.t,\n r: size.r,\n b: size.b,\n l: size.l\n }\n },\n {\n linkEvents: {\n hover: linkHover,\n follow: linkHoverFollow,\n unhover: linkUnhover,\n select: linkSelect\n },\n nodeEvents: {\n hover: nodeHover,\n follow: nodeHoverFollow,\n unhover: nodeUnhover,\n select: nodeSelect\n }\n }\n );\n};\n\n},{\"../../components/color\":366,\"../../components/fx\":406,\"../../lib\":503,\"./constants\":918,\"./render\":922,\"@plotly/d3\":58}],922:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3Force = _dereq_('d3-force');\nvar interpolateNumber = _dereq_('d3-interpolate').interpolateNumber;\nvar d3 = _dereq_('@plotly/d3');\nvar d3Sankey = _dereq_('@plotly/d3-sankey');\nvar d3SankeyCircular = _dereq_('@plotly/d3-sankey-circular');\n\nvar c = _dereq_('./constants');\nvar tinycolor = _dereq_('tinycolor2');\nvar Color = _dereq_('../../components/color');\nvar Drawing = _dereq_('../../components/drawing');\nvar Lib = _dereq_('../../lib');\nvar strTranslate = Lib.strTranslate;\nvar strRotate = Lib.strRotate;\nvar gup = _dereq_('../../lib/gup');\nvar keyFun = gup.keyFun;\nvar repeat = gup.repeat;\nvar unwrap = gup.unwrap;\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\n\nvar Registry = _dereq_('../../registry');\n\nvar alignmentConstants = _dereq_('../../constants/alignment');\nvar CAP_SHIFT = alignmentConstants.CAP_SHIFT;\nvar LINE_SPACING = alignmentConstants.LINE_SPACING;\nvar TEXTPAD = 3;\n\n// view models\n\nfunction sankeyModel(layout, d, traceIndex) {\n var calcData = unwrap(d);\n var trace = calcData.trace;\n var domain = trace.domain;\n var horizontal = trace.orientation === 'h';\n var nodePad = trace.node.pad;\n var nodeThickness = trace.node.thickness;\n\n var width = layout.width * (domain.x[1] - domain.x[0]);\n var height = layout.height * (domain.y[1] - domain.y[0]);\n\n var nodes = calcData._nodes;\n var links = calcData._links;\n var circular = calcData.circular;\n\n // Select Sankey generator\n var sankey;\n if(circular) {\n sankey = d3SankeyCircular\n .sankeyCircular()\n .circularLinkGap(0);\n } else {\n sankey = d3Sankey.sankey();\n }\n\n sankey\n .iterations(c.sankeyIterations)\n .size(horizontal ? [width, height] : [height, width])\n .nodeWidth(nodeThickness)\n .nodePadding(nodePad)\n .nodeId(function(d) {\n return d.pointNumber;\n })\n .nodes(nodes)\n .links(links);\n\n var graph = sankey();\n\n if(sankey.nodePadding() < nodePad) {\n Lib.warn('node.pad was reduced to ', sankey.nodePadding(), ' to fit within the figure.');\n }\n\n // Counters for nested loops\n var i, j, k;\n\n // Create transient nodes for animations\n for(var nodePointNumber in calcData._groupLookup) {\n var groupIndex = parseInt(calcData._groupLookup[nodePointNumber]);\n\n // Find node representing groupIndex\n var groupingNode;\n\n for(i = 0; i < graph.nodes.length; i++) {\n if(graph.nodes[i].pointNumber === groupIndex) {\n groupingNode = graph.nodes[i];\n break;\n }\n }\n // If groupinNode is undefined, no links are targeting this group\n if(!groupingNode) continue;\n\n var child = {\n pointNumber: parseInt(nodePointNumber),\n x0: groupingNode.x0,\n x1: groupingNode.x1,\n y0: groupingNode.y0,\n y1: groupingNode.y1,\n partOfGroup: true,\n sourceLinks: [],\n targetLinks: []\n };\n\n graph.nodes.unshift(child);\n groupingNode.childrenNodes.unshift(child);\n }\n\n function computeLinkConcentrations() {\n for(i = 0; i < graph.nodes.length; i++) {\n var node = graph.nodes[i];\n // Links connecting the same two nodes are part of a flow\n var flows = {};\n var flowKey;\n var link;\n for(j = 0; j < node.targetLinks.length; j++) {\n link = node.targetLinks[j];\n flowKey = link.source.pointNumber + ':' + link.target.pointNumber;\n if(!flows.hasOwnProperty(flowKey)) flows[flowKey] = [];\n flows[flowKey].push(link);\n }\n\n // Compute statistics for each flow\n var keys = Object.keys(flows);\n for(j = 0; j < keys.length; j++) {\n flowKey = keys[j];\n var flowLinks = flows[flowKey];\n\n // Find the total size of the flow and total size per label\n var total = 0;\n var totalPerLabel = {};\n for(k = 0; k < flowLinks.length; k++) {\n link = flowLinks[k];\n if(!totalPerLabel[link.label]) totalPerLabel[link.label] = 0;\n totalPerLabel[link.label] += link.value;\n total += link.value;\n }\n\n // Find the ratio of the link's value and the size of the flow\n for(k = 0; k < flowLinks.length; k++) {\n link = flowLinks[k];\n link.flow = {\n value: total,\n labelConcentration: totalPerLabel[link.label] / total,\n concentration: link.value / total,\n links: flowLinks\n };\n if(link.concentrationscale) {\n link.color = tinycolor(link.concentrationscale(link.flow.labelConcentration));\n }\n }\n }\n\n // Gather statistics of all links at current node\n var totalOutflow = 0;\n for(j = 0; j < node.sourceLinks.length; j++) {\n totalOutflow += node.sourceLinks[j].value;\n }\n for(j = 0; j < node.sourceLinks.length; j++) {\n link = node.sourceLinks[j];\n link.concentrationOut = link.value / totalOutflow;\n }\n\n var totalInflow = 0;\n for(j = 0; j < node.targetLinks.length; j++) {\n totalInflow += node.targetLinks[j].value;\n }\n\n for(j = 0; j < node.targetLinks.length; j++) {\n link = node.targetLinks[j];\n link.concenrationIn = link.value / totalInflow;\n }\n }\n }\n computeLinkConcentrations();\n\n // Push any overlapping nodes down.\n function resolveCollisionsTopToBottom(columns) {\n columns.forEach(function(nodes) {\n var node;\n var dy;\n var y = 0;\n var n = nodes.length;\n var i;\n nodes.sort(function(a, b) {\n return a.y0 - b.y0;\n });\n for(i = 0; i < n; ++i) {\n node = nodes[i];\n if(node.y0 >= y) {\n // No overlap\n } else {\n dy = (y - node.y0);\n if(dy > 1e-6) node.y0 += dy, node.y1 += dy;\n }\n y = node.y1 + nodePad;\n }\n });\n }\n\n // Group nodes into columns based on their x position\n function snapToColumns(nodes) {\n // Sort nodes by x position\n var orderedNodes = nodes.map(function(n, i) {\n return {\n x0: n.x0,\n index: i\n };\n })\n .sort(function(a, b) {\n return a.x0 - b.x0;\n });\n\n var columns = [];\n var colNumber = -1;\n var colX; // Position of column\n var lastX = -Infinity; // Position of last node\n var dx;\n for(i = 0; i < orderedNodes.length; i++) {\n var node = nodes[orderedNodes[i].index];\n // If the node does not overlap with the last one\n if(node.x0 > lastX + nodeThickness) {\n // Start a new column\n colNumber += 1;\n colX = node.x0;\n }\n lastX = node.x0;\n\n // Add node to its associated column\n if(!columns[colNumber]) columns[colNumber] = [];\n columns[colNumber].push(node);\n\n // Change node's x position to align it with its column\n dx = colX - node.x0;\n node.x0 += dx, node.x1 += dx;\n }\n return columns;\n }\n\n // Force node position\n if(trace.node.x.length && trace.node.y.length) {\n for(i = 0; i < Math.min(trace.node.x.length, trace.node.y.length, graph.nodes.length); i++) {\n if(trace.node.x[i] && trace.node.y[i]) {\n var pos = [trace.node.x[i] * width, trace.node.y[i] * height];\n graph.nodes[i].x0 = pos[0] - nodeThickness / 2;\n graph.nodes[i].x1 = pos[0] + nodeThickness / 2;\n\n var nodeHeight = graph.nodes[i].y1 - graph.nodes[i].y0;\n graph.nodes[i].y0 = pos[1] - nodeHeight / 2;\n graph.nodes[i].y1 = pos[1] + nodeHeight / 2;\n }\n }\n if(trace.arrangement === 'snap') {\n nodes = graph.nodes;\n var columns = snapToColumns(nodes);\n resolveCollisionsTopToBottom(columns);\n }\n // Update links\n sankey.update(graph);\n }\n\n\n return {\n circular: circular,\n key: traceIndex,\n trace: trace,\n guid: Lib.randstr(),\n horizontal: horizontal,\n width: width,\n height: height,\n nodePad: trace.node.pad,\n nodeLineColor: trace.node.line.color,\n nodeLineWidth: trace.node.line.width,\n linkLineColor: trace.link.line.color,\n linkLineWidth: trace.link.line.width,\n valueFormat: trace.valueformat,\n valueSuffix: trace.valuesuffix,\n textFont: trace.textfont,\n translateX: domain.x[0] * layout.width + layout.margin.l,\n translateY: layout.height - domain.y[1] * layout.height + layout.margin.t,\n dragParallel: horizontal ? height : width,\n dragPerpendicular: horizontal ? width : height,\n arrangement: trace.arrangement,\n sankey: sankey,\n graph: graph,\n forceLayouts: {},\n interactionState: {\n dragInProgress: false,\n hovered: false\n }\n };\n}\n\nfunction linkModel(d, l, i) {\n var tc = tinycolor(l.color);\n var basicKey = l.source.label + '|' + l.target.label;\n var key = basicKey + '__' + i;\n\n // for event data\n l.trace = d.trace;\n l.curveNumber = d.trace.index;\n\n return {\n circular: d.circular,\n key: key,\n traceId: d.key,\n pointNumber: l.pointNumber,\n link: l,\n tinyColorHue: Color.tinyRGB(tc),\n tinyColorAlpha: tc.getAlpha(),\n linkPath: linkPath,\n linkLineColor: d.linkLineColor,\n linkLineWidth: d.linkLineWidth,\n valueFormat: d.valueFormat,\n valueSuffix: d.valueSuffix,\n sankey: d.sankey,\n parent: d,\n interactionState: d.interactionState,\n flow: l.flow\n };\n}\n\nfunction createCircularClosedPathString(link) {\n // Using coordinates computed by d3-sankey-circular\n var pathString = '';\n var offset = link.width / 2;\n var coords = link.circularPathData;\n if(link.circularLinkType === 'top') {\n // Top path\n pathString =\n // start at the left of the target node\n 'M ' +\n coords.targetX + ' ' + (coords.targetY + offset) + ' ' +\n 'L' +\n coords.rightInnerExtent + ' ' + (coords.targetY + offset) +\n 'A' +\n (coords.rightLargeArcRadius + offset) + ' ' + (coords.rightSmallArcRadius + offset) + ' 0 0 1 ' +\n (coords.rightFullExtent - offset) + ' ' + (coords.targetY - coords.rightSmallArcRadius) +\n 'L' +\n (coords.rightFullExtent - offset) + ' ' + coords.verticalRightInnerExtent +\n 'A' +\n (coords.rightLargeArcRadius + offset) + ' ' + (coords.rightLargeArcRadius + offset) + ' 0 0 1 ' +\n coords.rightInnerExtent + ' ' + (coords.verticalFullExtent - offset) +\n 'L' +\n coords.leftInnerExtent + ' ' + (coords.verticalFullExtent - offset) +\n 'A' +\n (coords.leftLargeArcRadius + offset) + ' ' + (coords.leftLargeArcRadius + offset) + ' 0 0 1 ' +\n (coords.leftFullExtent + offset) + ' ' + coords.verticalLeftInnerExtent +\n 'L' +\n (coords.leftFullExtent + offset) + ' ' + (coords.sourceY - coords.leftSmallArcRadius) +\n 'A' +\n (coords.leftLargeArcRadius + offset) + ' ' + (coords.leftSmallArcRadius + offset) + ' 0 0 1 ' +\n coords.leftInnerExtent + ' ' + (coords.sourceY + offset) +\n 'L' +\n coords.sourceX + ' ' + (coords.sourceY + offset) +\n\n // Walking back\n 'L' +\n coords.sourceX + ' ' + (coords.sourceY - offset) +\n 'L' +\n coords.leftInnerExtent + ' ' + (coords.sourceY - offset) +\n 'A' +\n (coords.leftLargeArcRadius - offset) + ' ' + (coords.leftSmallArcRadius - offset) + ' 0 0 0 ' +\n (coords.leftFullExtent - offset) + ' ' + (coords.sourceY - coords.leftSmallArcRadius) +\n 'L' +\n (coords.leftFullExtent - offset) + ' ' + coords.verticalLeftInnerExtent +\n 'A' +\n (coords.leftLargeArcRadius - offset) + ' ' + (coords.leftLargeArcRadius - offset) + ' 0 0 0 ' +\n coords.leftInnerExtent + ' ' + (coords.verticalFullExtent + offset) +\n 'L' +\n coords.rightInnerExtent + ' ' + (coords.verticalFullExtent + offset) +\n 'A' +\n (coords.rightLargeArcRadius - offset) + ' ' + (coords.rightLargeArcRadius - offset) + ' 0 0 0 ' +\n (coords.rightFullExtent + offset) + ' ' + coords.verticalRightInnerExtent +\n 'L' +\n (coords.rightFullExtent + offset) + ' ' + (coords.targetY - coords.rightSmallArcRadius) +\n 'A' +\n (coords.rightLargeArcRadius - offset) + ' ' + (coords.rightSmallArcRadius - offset) + ' 0 0 0 ' +\n coords.rightInnerExtent + ' ' + (coords.targetY - offset) +\n 'L' +\n coords.targetX + ' ' + (coords.targetY - offset) +\n 'Z';\n } else {\n // Bottom path\n pathString =\n // start at the left of the target node\n 'M ' +\n coords.targetX + ' ' + (coords.targetY - offset) + ' ' +\n 'L' +\n coords.rightInnerExtent + ' ' + (coords.targetY - offset) +\n 'A' +\n (coords.rightLargeArcRadius + offset) + ' ' + (coords.rightSmallArcRadius + offset) + ' 0 0 0 ' +\n (coords.rightFullExtent - offset) + ' ' + (coords.targetY + coords.rightSmallArcRadius) +\n 'L' +\n (coords.rightFullExtent - offset) + ' ' + coords.verticalRightInnerExtent +\n 'A' +\n (coords.rightLargeArcRadius + offset) + ' ' + (coords.rightLargeArcRadius + offset) + ' 0 0 0 ' +\n coords.rightInnerExtent + ' ' + (coords.verticalFullExtent + offset) +\n 'L' +\n coords.leftInnerExtent + ' ' + (coords.verticalFullExtent + offset) +\n 'A' +\n (coords.leftLargeArcRadius + offset) + ' ' + (coords.leftLargeArcRadius + offset) + ' 0 0 0 ' +\n (coords.leftFullExtent + offset) + ' ' + coords.verticalLeftInnerExtent +\n 'L' +\n (coords.leftFullExtent + offset) + ' ' + (coords.sourceY + coords.leftSmallArcRadius) +\n 'A' +\n (coords.leftLargeArcRadius + offset) + ' ' + (coords.leftSmallArcRadius + offset) + ' 0 0 0 ' +\n coords.leftInnerExtent + ' ' + (coords.sourceY - offset) +\n 'L' +\n coords.sourceX + ' ' + (coords.sourceY - offset) +\n\n // Walking back\n 'L' +\n coords.sourceX + ' ' + (coords.sourceY + offset) +\n 'L' +\n coords.leftInnerExtent + ' ' + (coords.sourceY + offset) +\n 'A' +\n (coords.leftLargeArcRadius - offset) + ' ' + (coords.leftSmallArcRadius - offset) + ' 0 0 1 ' +\n (coords.leftFullExtent - offset) + ' ' + (coords.sourceY + coords.leftSmallArcRadius) +\n 'L' +\n (coords.leftFullExtent - offset) + ' ' + coords.verticalLeftInnerExtent +\n 'A' +\n (coords.leftLargeArcRadius - offset) + ' ' + (coords.leftLargeArcRadius - offset) + ' 0 0 1 ' +\n coords.leftInnerExtent + ' ' + (coords.verticalFullExtent - offset) +\n 'L' +\n coords.rightInnerExtent + ' ' + (coords.verticalFullExtent - offset) +\n 'A' +\n (coords.rightLargeArcRadius - offset) + ' ' + (coords.rightLargeArcRadius - offset) + ' 0 0 1 ' +\n (coords.rightFullExtent + offset) + ' ' + coords.verticalRightInnerExtent +\n 'L' +\n (coords.rightFullExtent + offset) + ' ' + (coords.targetY + coords.rightSmallArcRadius) +\n 'A' +\n (coords.rightLargeArcRadius - offset) + ' ' + (coords.rightSmallArcRadius - offset) + ' 0 0 1 ' +\n coords.rightInnerExtent + ' ' + (coords.targetY + offset) +\n 'L' +\n coords.targetX + ' ' + (coords.targetY + offset) +\n 'Z';\n }\n return pathString;\n}\n\nfunction linkPath() {\n var curvature = 0.5;\n function path(d) {\n if(d.link.circular) {\n return createCircularClosedPathString(d.link);\n } else {\n var x0 = d.link.source.x1;\n var x1 = d.link.target.x0;\n var xi = interpolateNumber(x0, x1);\n var x2 = xi(curvature);\n var x3 = xi(1 - curvature);\n var y0a = d.link.y0 - d.link.width / 2;\n var y0b = d.link.y0 + d.link.width / 2;\n var y1a = d.link.y1 - d.link.width / 2;\n var y1b = d.link.y1 + d.link.width / 2;\n return 'M' + x0 + ',' + y0a +\n 'C' + x2 + ',' + y0a +\n ' ' + x3 + ',' + y1a +\n ' ' + x1 + ',' + y1a +\n 'L' + x1 + ',' + y1b +\n 'C' + x3 + ',' + y1b +\n ' ' + x2 + ',' + y0b +\n ' ' + x0 + ',' + y0b +\n 'Z';\n }\n }\n return path;\n}\n\nfunction nodeModel(d, n) {\n var tc = tinycolor(n.color);\n var zoneThicknessPad = c.nodePadAcross;\n var zoneLengthPad = d.nodePad / 2;\n n.dx = n.x1 - n.x0;\n n.dy = n.y1 - n.y0;\n var visibleThickness = n.dx;\n var visibleLength = Math.max(0.5, n.dy);\n\n var key = 'node_' + n.pointNumber;\n // If it's a group, it's mutable and should be unique\n if(n.group) {\n key = Lib.randstr();\n }\n\n // for event data\n n.trace = d.trace;\n n.curveNumber = d.trace.index;\n\n return {\n index: n.pointNumber,\n key: key,\n partOfGroup: n.partOfGroup || false,\n group: n.group,\n traceId: d.key,\n trace: d.trace,\n node: n,\n nodePad: d.nodePad,\n nodeLineColor: d.nodeLineColor,\n nodeLineWidth: d.nodeLineWidth,\n textFont: d.textFont,\n size: d.horizontal ? d.height : d.width,\n visibleWidth: Math.ceil(visibleThickness),\n visibleHeight: visibleLength,\n zoneX: -zoneThicknessPad,\n zoneY: -zoneLengthPad,\n zoneWidth: visibleThickness + 2 * zoneThicknessPad,\n zoneHeight: visibleLength + 2 * zoneLengthPad,\n labelY: d.horizontal ? n.dy / 2 + 1 : n.dx / 2 + 1,\n left: n.originalLayer === 1,\n sizeAcross: d.width,\n forceLayouts: d.forceLayouts,\n horizontal: d.horizontal,\n darkBackground: tc.getBrightness() <= 128,\n tinyColorHue: Color.tinyRGB(tc),\n tinyColorAlpha: tc.getAlpha(),\n valueFormat: d.valueFormat,\n valueSuffix: d.valueSuffix,\n sankey: d.sankey,\n graph: d.graph,\n arrangement: d.arrangement,\n uniqueNodeLabelPathId: [d.guid, d.key, key].join('_'),\n interactionState: d.interactionState,\n figure: d\n };\n}\n\n// rendering snippets\n\nfunction updateNodePositions(sankeyNode) {\n sankeyNode\n .attr('transform', function(d) {\n return strTranslate(d.node.x0.toFixed(3), (d.node.y0).toFixed(3));\n });\n}\n\nfunction updateNodeShapes(sankeyNode) {\n sankeyNode.call(updateNodePositions);\n}\n\nfunction updateShapes(sankeyNode, sankeyLink) {\n sankeyNode.call(updateNodeShapes);\n sankeyLink.attr('d', linkPath());\n}\n\nfunction sizeNode(rect) {\n rect\n .attr('width', function(d) {return d.node.x1 - d.node.x0;})\n .attr('height', function(d) {return d.visibleHeight;});\n}\n\nfunction salientEnough(d) {return (d.link.width > 1 || d.linkLineWidth > 0);}\n\nfunction sankeyTransform(d) {\n var offset = strTranslate(d.translateX, d.translateY);\n return offset + (d.horizontal ? 'matrix(1 0 0 1 0 0)' : 'matrix(0 1 1 0 0 0)');\n}\n\n// event handling\n\nfunction attachPointerEvents(selection, sankey, eventSet) {\n selection\n .on('.basic', null) // remove any preexisting handlers\n .on('mouseover.basic', function(d) {\n if(!d.interactionState.dragInProgress && !d.partOfGroup) {\n eventSet.hover(this, d, sankey);\n d.interactionState.hovered = [this, d];\n }\n })\n .on('mousemove.basic', function(d) {\n if(!d.interactionState.dragInProgress && !d.partOfGroup) {\n eventSet.follow(this, d);\n d.interactionState.hovered = [this, d];\n }\n })\n .on('mouseout.basic', function(d) {\n if(!d.interactionState.dragInProgress && !d.partOfGroup) {\n eventSet.unhover(this, d, sankey);\n d.interactionState.hovered = false;\n }\n })\n .on('click.basic', function(d) {\n if(d.interactionState.hovered) {\n eventSet.unhover(this, d, sankey);\n d.interactionState.hovered = false;\n }\n if(!d.interactionState.dragInProgress && !d.partOfGroup) {\n eventSet.select(this, d, sankey);\n }\n });\n}\n\nfunction attachDragHandler(sankeyNode, sankeyLink, callbacks, gd) {\n var dragBehavior = d3.behavior.drag()\n .origin(function(d) {\n return {\n x: d.node.x0 + d.visibleWidth / 2,\n y: d.node.y0 + d.visibleHeight / 2\n };\n })\n\n .on('dragstart', function(d) {\n if(d.arrangement === 'fixed') return;\n Lib.ensureSingle(gd._fullLayout._infolayer, 'g', 'dragcover', function(s) {\n gd._fullLayout._dragCover = s;\n });\n Lib.raiseToTop(this);\n d.interactionState.dragInProgress = d.node;\n\n saveCurrentDragPosition(d.node);\n if(d.interactionState.hovered) {\n callbacks.nodeEvents.unhover.apply(0, d.interactionState.hovered);\n d.interactionState.hovered = false;\n }\n if(d.arrangement === 'snap') {\n var forceKey = d.traceId + '|' + d.key;\n if(d.forceLayouts[forceKey]) {\n d.forceLayouts[forceKey].alpha(1);\n } else { // make a forceLayout if needed\n attachForce(sankeyNode, forceKey, d, gd);\n }\n startForce(sankeyNode, sankeyLink, d, forceKey, gd);\n }\n })\n\n .on('drag', function(d) {\n if(d.arrangement === 'fixed') return;\n var x = d3.event.x;\n var y = d3.event.y;\n if(d.arrangement === 'snap') {\n d.node.x0 = x - d.visibleWidth / 2;\n d.node.x1 = x + d.visibleWidth / 2;\n d.node.y0 = y - d.visibleHeight / 2;\n d.node.y1 = y + d.visibleHeight / 2;\n } else {\n if(d.arrangement === 'freeform') {\n d.node.x0 = x - d.visibleWidth / 2;\n d.node.x1 = x + d.visibleWidth / 2;\n }\n y = Math.max(0, Math.min(d.size - d.visibleHeight / 2, y));\n d.node.y0 = y - d.visibleHeight / 2;\n d.node.y1 = y + d.visibleHeight / 2;\n }\n\n saveCurrentDragPosition(d.node);\n if(d.arrangement !== 'snap') {\n d.sankey.update(d.graph);\n updateShapes(sankeyNode.filter(sameLayer(d)), sankeyLink);\n }\n })\n\n .on('dragend', function(d) {\n if(d.arrangement === 'fixed') return;\n d.interactionState.dragInProgress = false;\n for(var i = 0; i < d.node.childrenNodes.length; i++) {\n d.node.childrenNodes[i].x = d.node.x;\n d.node.childrenNodes[i].y = d.node.y;\n }\n if(d.arrangement !== 'snap') persistFinalNodePositions(d, gd);\n });\n\n sankeyNode\n .on('.drag', null) // remove possible previous handlers\n .call(dragBehavior);\n}\n\nfunction attachForce(sankeyNode, forceKey, d, gd) {\n // Attach force to nodes in the same column (same x coordinate)\n switchToForceFormat(d.graph.nodes);\n var nodes = d.graph.nodes\n .filter(function(n) {return n.originalX === d.node.originalX;})\n // Filter out children\n .filter(function(n) {return !n.partOfGroup;});\n d.forceLayouts[forceKey] = d3Force.forceSimulation(nodes)\n .alphaDecay(0)\n .force('collide', d3Force.forceCollide()\n .radius(function(n) {return n.dy / 2 + d.nodePad / 2;})\n .strength(1)\n .iterations(c.forceIterations))\n .force('constrain', snappingForce(sankeyNode, forceKey, nodes, d, gd))\n .stop();\n}\n\nfunction startForce(sankeyNode, sankeyLink, d, forceKey, gd) {\n window.requestAnimationFrame(function faster() {\n var i;\n for(i = 0; i < c.forceTicksPerFrame; i++) {\n d.forceLayouts[forceKey].tick();\n }\n\n var nodes = d.graph.nodes;\n switchToSankeyFormat(nodes);\n\n d.sankey.update(d.graph);\n updateShapes(sankeyNode.filter(sameLayer(d)), sankeyLink);\n\n if(d.forceLayouts[forceKey].alpha() > 0) {\n window.requestAnimationFrame(faster);\n } else {\n // Make sure the final x position is equal to its original value\n // because the force simulation will have numerical error\n var x = d.node.originalX;\n d.node.x0 = x - d.visibleWidth / 2;\n d.node.x1 = x + d.visibleWidth / 2;\n\n persistFinalNodePositions(d, gd);\n }\n });\n}\n\nfunction snappingForce(sankeyNode, forceKey, nodes, d) {\n return function _snappingForce() {\n var maxVelocity = 0;\n for(var i = 0; i < nodes.length; i++) {\n var n = nodes[i];\n if(n === d.interactionState.dragInProgress) { // constrain node position to the dragging pointer\n n.x = n.lastDraggedX;\n n.y = n.lastDraggedY;\n } else {\n n.vx = (n.originalX - n.x) / c.forceTicksPerFrame; // snap to layer\n n.y = Math.min(d.size - n.dy / 2, Math.max(n.dy / 2, n.y)); // constrain to extent\n }\n maxVelocity = Math.max(maxVelocity, Math.abs(n.vx), Math.abs(n.vy));\n }\n if(!d.interactionState.dragInProgress && maxVelocity < 0.1 && d.forceLayouts[forceKey].alpha() > 0) {\n d.forceLayouts[forceKey].alpha(0); // This will stop the animation loop\n }\n };\n}\n\n// basic data utilities\n\nfunction persistFinalNodePositions(d, gd) {\n var x = [];\n var y = [];\n for(var i = 0; i < d.graph.nodes.length; i++) {\n var nodeX = (d.graph.nodes[i].x0 + d.graph.nodes[i].x1) / 2;\n var nodeY = (d.graph.nodes[i].y0 + d.graph.nodes[i].y1) / 2;\n x.push(nodeX / d.figure.width);\n y.push(nodeY / d.figure.height);\n }\n Registry.call('_guiRestyle', gd, {\n 'node.x': [x],\n 'node.y': [y]\n }, d.trace.index)\n .then(function() {\n if(gd._fullLayout._dragCover) gd._fullLayout._dragCover.remove();\n });\n}\n\nfunction persistOriginalPlace(nodes) {\n var distinctLayerPositions = [];\n var i;\n for(i = 0; i < nodes.length; i++) {\n nodes[i].originalX = (nodes[i].x0 + nodes[i].x1) / 2;\n nodes[i].originalY = (nodes[i].y0 + nodes[i].y1) / 2;\n if(distinctLayerPositions.indexOf(nodes[i].originalX) === -1) {\n distinctLayerPositions.push(nodes[i].originalX);\n }\n }\n distinctLayerPositions.sort(function(a, b) {return a - b;});\n for(i = 0; i < nodes.length; i++) {\n nodes[i].originalLayerIndex = distinctLayerPositions.indexOf(nodes[i].originalX);\n nodes[i].originalLayer = nodes[i].originalLayerIndex / (distinctLayerPositions.length - 1);\n }\n}\n\nfunction saveCurrentDragPosition(d) {\n d.lastDraggedX = d.x0 + d.dx / 2;\n d.lastDraggedY = d.y0 + d.dy / 2;\n}\n\nfunction sameLayer(d) {\n return function(n) {return n.node.originalX === d.node.originalX;};\n}\n\nfunction switchToForceFormat(nodes) {\n // force uses x, y as centers\n for(var i = 0; i < nodes.length; i++) {\n nodes[i].y = (nodes[i].y0 + nodes[i].y1) / 2;\n nodes[i].x = (nodes[i].x0 + nodes[i].x1) / 2;\n }\n}\n\nfunction switchToSankeyFormat(nodes) {\n // sankey uses x0, x1, y0, y1\n for(var i = 0; i < nodes.length; i++) {\n nodes[i].y0 = nodes[i].y - nodes[i].dy / 2;\n nodes[i].y1 = nodes[i].y0 + nodes[i].dy;\n\n nodes[i].x0 = nodes[i].x - nodes[i].dx / 2;\n nodes[i].x1 = nodes[i].x0 + nodes[i].dx;\n }\n}\n\n// scene graph\nmodule.exports = function(gd, svg, calcData, layout, callbacks) {\n // To prevent animation on first render\n var firstRender = false;\n Lib.ensureSingle(gd._fullLayout._infolayer, 'g', 'first-render', function() {\n firstRender = true;\n });\n\n // To prevent animation on dragging\n var dragcover = gd._fullLayout._dragCover;\n\n var styledData = calcData\n .filter(function(d) {return unwrap(d).trace.visible;})\n .map(sankeyModel.bind(null, layout));\n\n var sankey = svg.selectAll('.' + c.cn.sankey)\n .data(styledData, keyFun);\n\n sankey.exit()\n .remove();\n\n sankey.enter()\n .append('g')\n .classed(c.cn.sankey, true)\n .style('box-sizing', 'content-box')\n .style('position', 'absolute')\n .style('left', 0)\n .style('shape-rendering', 'geometricPrecision')\n .style('pointer-events', 'auto')\n .attr('transform', sankeyTransform);\n\n sankey.each(function(d, i) {\n gd._fullData[i]._sankey = d;\n // Create dragbox if missing\n var dragboxClassName = 'bgsankey-' + d.trace.uid + '-' + i;\n Lib.ensureSingle(gd._fullLayout._draggers, 'rect', dragboxClassName);\n\n gd._fullData[i]._bgRect = d3.select('.' + dragboxClassName);\n\n // Style dragbox\n gd._fullData[i]._bgRect\n .style('pointer-events', 'all')\n .attr('width', d.width)\n .attr('height', d.height)\n .attr('x', d.translateX)\n .attr('y', d.translateY)\n .classed('bgsankey', true)\n .style({fill: 'transparent', 'stroke-width': 0});\n });\n\n sankey.transition()\n .ease(c.ease).duration(c.duration)\n .attr('transform', sankeyTransform);\n\n var sankeyLinks = sankey.selectAll('.' + c.cn.sankeyLinks)\n .data(repeat, keyFun);\n\n sankeyLinks.enter()\n .append('g')\n .classed(c.cn.sankeyLinks, true)\n .style('fill', 'none');\n\n var sankeyLink = sankeyLinks.selectAll('.' + c.cn.sankeyLink)\n .data(function(d) {\n var links = d.graph.links;\n return links\n .filter(function(l) {return l.value;})\n .map(linkModel.bind(null, d));\n }, keyFun);\n\n sankeyLink\n .enter().append('path')\n .classed(c.cn.sankeyLink, true)\n .call(attachPointerEvents, sankey, callbacks.linkEvents);\n\n sankeyLink\n .style('stroke', function(d) {\n return salientEnough(d) ? Color.tinyRGB(tinycolor(d.linkLineColor)) : d.tinyColorHue;\n })\n .style('stroke-opacity', function(d) {\n return salientEnough(d) ? Color.opacity(d.linkLineColor) : d.tinyColorAlpha;\n })\n .style('fill', function(d) {\n return d.tinyColorHue;\n })\n .style('fill-opacity', function(d) {\n return d.tinyColorAlpha;\n })\n .style('stroke-width', function(d) {\n return salientEnough(d) ? d.linkLineWidth : 1;\n })\n .attr('d', linkPath());\n\n sankeyLink\n .style('opacity', function() { return (gd._context.staticPlot || firstRender || dragcover) ? 1 : 0;})\n .transition()\n .ease(c.ease).duration(c.duration)\n .style('opacity', 1);\n\n sankeyLink.exit()\n .transition()\n .ease(c.ease).duration(c.duration)\n .style('opacity', 0)\n .remove();\n\n var sankeyNodeSet = sankey.selectAll('.' + c.cn.sankeyNodeSet)\n .data(repeat, keyFun);\n\n sankeyNodeSet.enter()\n .append('g')\n .classed(c.cn.sankeyNodeSet, true);\n\n sankeyNodeSet\n .style('cursor', function(d) {\n switch(d.arrangement) {\n case 'fixed': return 'default';\n case 'perpendicular': return 'ns-resize';\n default: return 'move';\n }\n });\n\n var sankeyNode = sankeyNodeSet.selectAll('.' + c.cn.sankeyNode)\n .data(function(d) {\n var nodes = d.graph.nodes;\n persistOriginalPlace(nodes);\n return nodes\n .map(nodeModel.bind(null, d));\n }, keyFun);\n\n sankeyNode.enter()\n .append('g')\n .classed(c.cn.sankeyNode, true)\n .call(updateNodePositions)\n .style('opacity', function(n) { return ((gd._context.staticPlot || firstRender) && !n.partOfGroup) ? 1 : 0;});\n\n sankeyNode\n .call(attachPointerEvents, sankey, callbacks.nodeEvents)\n .call(attachDragHandler, sankeyLink, callbacks, gd); // has to be here as it binds sankeyLink\n\n sankeyNode\n .transition()\n .ease(c.ease).duration(c.duration)\n .call(updateNodePositions)\n .style('opacity', function(n) { return n.partOfGroup ? 0 : 1;});\n\n sankeyNode.exit()\n .transition()\n .ease(c.ease).duration(c.duration)\n .style('opacity', 0)\n .remove();\n\n var nodeRect = sankeyNode.selectAll('.' + c.cn.nodeRect)\n .data(repeat);\n\n nodeRect.enter()\n .append('rect')\n .classed(c.cn.nodeRect, true)\n .call(sizeNode);\n\n nodeRect\n .style('stroke-width', function(d) {return d.nodeLineWidth;})\n .style('stroke', function(d) {return Color.tinyRGB(tinycolor(d.nodeLineColor));})\n .style('stroke-opacity', function(d) {return Color.opacity(d.nodeLineColor);})\n .style('fill', function(d) {return d.tinyColorHue;})\n .style('fill-opacity', function(d) {return d.tinyColorAlpha;});\n\n nodeRect.transition()\n .ease(c.ease).duration(c.duration)\n .call(sizeNode);\n\n var nodeLabel = sankeyNode.selectAll('.' + c.cn.nodeLabel)\n .data(repeat);\n\n nodeLabel.enter()\n .append('text')\n .classed(c.cn.nodeLabel, true)\n .style('cursor', 'default');\n\n nodeLabel\n .attr('data-notex', 1) // prohibit tex interpretation until we can handle tex and regular text together\n .text(function(d) { return d.node.label; })\n .each(function(d) {\n var e = d3.select(this);\n Drawing.font(e, d.textFont);\n svgTextUtils.convertToTspans(e, gd);\n })\n .style('text-shadow', svgTextUtils.makeTextShadow(gd._fullLayout.paper_bgcolor))\n .attr('text-anchor', function(d) {\n return (d.horizontal && d.left) ? 'end' : 'start';\n })\n .attr('transform', function(d) {\n var e = d3.select(this);\n // how much to shift a multi-line label to center it vertically.\n var nLines = svgTextUtils.lineCount(e);\n var blockHeight = d.textFont.size * (\n (nLines - 1) * LINE_SPACING - CAP_SHIFT\n );\n\n var posX = d.nodeLineWidth / 2 + TEXTPAD;\n var posY = ((d.horizontal ? d.visibleHeight : d.visibleWidth) - blockHeight) / 2;\n if(d.horizontal) {\n if(d.left) {\n posX = -posX;\n } else {\n posX += d.visibleWidth;\n }\n }\n\n var flipText = d.horizontal ? '' : (\n 'scale(-1,1)' + strRotate(90)\n );\n\n return strTranslate(\n d.horizontal ? posX : posY,\n d.horizontal ? posY : posX\n ) + flipText;\n });\n\n nodeLabel\n .transition()\n .ease(c.ease).duration(c.duration);\n};\n\n},{\"../../components/color\":366,\"../../components/drawing\":388,\"../../constants/alignment\":471,\"../../lib\":503,\"../../lib/gup\":500,\"../../lib/svg_text_utils\":529,\"../../registry\":638,\"./constants\":918,\"@plotly/d3\":58,\"@plotly/d3-sankey\":57,\"@plotly/d3-sankey-circular\":56,\"d3-force\":111,\"d3-interpolate\":116,\"tinycolor2\":312}],923:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function selectPoints(searchInfo, selectionTester) {\n var cd = searchInfo.cd;\n var selection = [];\n var fullData = cd[0].trace;\n\n var nodes = fullData._sankey.graph.nodes;\n\n for(var i = 0; i < nodes.length; i++) {\n var node = nodes[i];\n if(node.partOfGroup) continue; // Those are invisible\n\n // Position of node's centroid\n var pos = [(node.x0 + node.x1) / 2, (node.y0 + node.y1) / 2];\n\n // Swap x and y if trace is vertical\n if(fullData.orientation === 'v') pos.reverse();\n\n if(selectionTester && selectionTester.contains(pos, false, i, searchInfo)) {\n selection.push({\n pointNumber: node.pointNumber\n // TODO: add eventData\n });\n }\n }\n return selection;\n};\n\n},{}],924:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\n\n// arrayOk attributes, merge them into calcdata array\nmodule.exports = function arraysToCalcdata(cd, trace) {\n // so each point knows which index it originally came from\n for(var i = 0; i < cd.length; i++) cd[i].i = i;\n\n Lib.mergeArray(trace.text, cd, 'tx');\n Lib.mergeArray(trace.texttemplate, cd, 'txt');\n Lib.mergeArray(trace.hovertext, cd, 'htx');\n Lib.mergeArray(trace.customdata, cd, 'data');\n Lib.mergeArray(trace.textposition, cd, 'tp');\n if(trace.textfont) {\n Lib.mergeArrayCastPositive(trace.textfont.size, cd, 'ts');\n Lib.mergeArray(trace.textfont.color, cd, 'tc');\n Lib.mergeArray(trace.textfont.family, cd, 'tf');\n }\n\n var marker = trace.marker;\n if(marker) {\n Lib.mergeArrayCastPositive(marker.size, cd, 'ms');\n Lib.mergeArrayCastPositive(marker.opacity, cd, 'mo');\n Lib.mergeArray(marker.symbol, cd, 'mx');\n Lib.mergeArray(marker.color, cd, 'mc');\n\n var markerLine = marker.line;\n if(marker.line) {\n Lib.mergeArray(markerLine.color, cd, 'mlc');\n Lib.mergeArrayCastPositive(markerLine.width, cd, 'mlw');\n }\n\n var markerGradient = marker.gradient;\n if(markerGradient && markerGradient.type !== 'none') {\n Lib.mergeArray(markerGradient.type, cd, 'mgt');\n Lib.mergeArray(markerGradient.color, cd, 'mgc');\n }\n }\n};\n\n},{\"../../lib\":503}],925:[function(_dereq_,module,exports){\n'use strict';\n\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar dash = _dereq_('../../components/drawing/attributes').dash;\n\nvar Drawing = _dereq_('../../components/drawing');\nvar constants = _dereq_('./constants');\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nfunction axisPeriod(axis) {\n return {\n valType: 'any',\n dflt: 0,\n editType: 'calc',\n };\n}\n\nfunction axisPeriod0(axis) {\n return {\n valType: 'any',\n editType: 'calc',\n };\n}\n\nfunction axisPeriodAlignment(axis) {\n return {\n valType: 'enumerated',\n values: [\n 'start', 'middle', 'end'\n ],\n dflt: 'middle',\n editType: 'calc',\n };\n}\n\nmodule.exports = {\n x: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n anim: true,\n },\n x0: {\n valType: 'any',\n dflt: 0,\n editType: 'calc+clearAxisTypes',\n anim: true,\n },\n dx: {\n valType: 'number',\n dflt: 1,\n editType: 'calc',\n anim: true,\n },\n y: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n anim: true,\n },\n y0: {\n valType: 'any',\n dflt: 0,\n editType: 'calc+clearAxisTypes',\n anim: true,\n },\n dy: {\n valType: 'number',\n dflt: 1,\n editType: 'calc',\n anim: true,\n },\n\n xperiod: axisPeriod('x'),\n yperiod: axisPeriod('y'),\n xperiod0: axisPeriod0('x0'),\n yperiod0: axisPeriod0('y0'),\n xperiodalignment: axisPeriodAlignment('x'),\n yperiodalignment: axisPeriodAlignment('y'),\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n\n stackgroup: {\n valType: 'string',\n dflt: '',\n editType: 'calc',\n },\n orientation: {\n valType: 'enumerated',\n values: ['v', 'h'],\n editType: 'calc',\n },\n groupnorm: {\n valType: 'enumerated',\n values: ['', 'fraction', 'percent'],\n dflt: '',\n editType: 'calc',\n },\n stackgaps: {\n valType: 'enumerated',\n values: ['infer zero', 'interpolate'],\n dflt: 'infer zero',\n editType: 'calc',\n },\n\n text: {\n valType: 'string',\n dflt: '',\n arrayOk: true,\n editType: 'calc',\n },\n\n texttemplate: texttemplateAttrs({}, {\n\n }),\n hovertext: {\n valType: 'string',\n dflt: '',\n arrayOk: true,\n editType: 'style',\n },\n mode: {\n valType: 'flaglist',\n flags: ['lines', 'markers', 'text'],\n extras: ['none'],\n editType: 'calc',\n },\n hoveron: {\n valType: 'flaglist',\n flags: ['points', 'fills'],\n editType: 'style',\n },\n hovertemplate: hovertemplateAttrs({}, {\n keys: constants.eventDataKeys\n }),\n\n line: {\n color: {\n valType: 'color',\n editType: 'style',\n anim: true,\n },\n width: {\n valType: 'number',\n min: 0,\n dflt: 2,\n editType: 'style',\n anim: true,\n },\n shape: {\n valType: 'enumerated',\n values: ['linear', 'spline', 'hv', 'vh', 'hvh', 'vhv'],\n dflt: 'linear',\n editType: 'plot',\n },\n smoothing: {\n valType: 'number',\n min: 0,\n max: 1.3,\n dflt: 1,\n editType: 'plot',\n },\n dash: extendFlat({}, dash, {editType: 'style'}),\n simplify: {\n valType: 'boolean',\n dflt: true,\n editType: 'plot',\n },\n editType: 'plot'\n },\n\n connectgaps: {\n valType: 'boolean',\n dflt: false,\n editType: 'calc',\n },\n cliponaxis: {\n valType: 'boolean',\n dflt: true,\n editType: 'plot',\n },\n\n fill: {\n valType: 'enumerated',\n values: ['none', 'tozeroy', 'tozerox', 'tonexty', 'tonextx', 'toself', 'tonext'],\n editType: 'calc',\n },\n fillcolor: {\n valType: 'color',\n editType: 'style',\n anim: true,\n },\n marker: extendFlat({\n symbol: {\n valType: 'enumerated',\n values: Drawing.symbolList,\n dflt: 'circle',\n arrayOk: true,\n editType: 'style',\n },\n opacity: {\n valType: 'number',\n min: 0,\n max: 1,\n arrayOk: true,\n editType: 'style',\n anim: true,\n },\n size: {\n valType: 'number',\n min: 0,\n dflt: 6,\n arrayOk: true,\n editType: 'calc',\n anim: true,\n },\n maxdisplayed: {\n valType: 'number',\n min: 0,\n dflt: 0,\n editType: 'plot',\n },\n sizeref: {\n valType: 'number',\n dflt: 1,\n editType: 'calc',\n },\n sizemin: {\n valType: 'number',\n min: 0,\n dflt: 0,\n editType: 'calc',\n },\n sizemode: {\n valType: 'enumerated',\n values: ['diameter', 'area'],\n dflt: 'diameter',\n editType: 'calc',\n },\n\n line: extendFlat({\n width: {\n valType: 'number',\n min: 0,\n arrayOk: true,\n editType: 'style',\n anim: true,\n },\n editType: 'calc'\n },\n colorScaleAttrs('marker.line', {anim: true})\n ),\n gradient: {\n type: {\n valType: 'enumerated',\n values: ['radial', 'horizontal', 'vertical', 'none'],\n arrayOk: true,\n dflt: 'none',\n editType: 'calc',\n },\n color: {\n valType: 'color',\n arrayOk: true,\n editType: 'calc',\n },\n editType: 'calc'\n },\n editType: 'calc'\n },\n colorScaleAttrs('marker', {anim: true})\n ),\n selected: {\n marker: {\n opacity: {\n valType: 'number',\n min: 0,\n max: 1,\n editType: 'style',\n },\n color: {\n valType: 'color',\n editType: 'style',\n },\n size: {\n valType: 'number',\n min: 0,\n editType: 'style',\n },\n editType: 'style'\n },\n textfont: {\n color: {\n valType: 'color',\n editType: 'style',\n },\n editType: 'style'\n },\n editType: 'style'\n },\n unselected: {\n marker: {\n opacity: {\n valType: 'number',\n min: 0,\n max: 1,\n editType: 'style',\n },\n color: {\n valType: 'color',\n editType: 'style',\n },\n size: {\n valType: 'number',\n min: 0,\n editType: 'style',\n },\n editType: 'style'\n },\n textfont: {\n color: {\n valType: 'color',\n editType: 'style',\n },\n editType: 'style'\n },\n editType: 'style'\n },\n\n textposition: {\n valType: 'enumerated',\n values: [\n 'top left', 'top center', 'top right',\n 'middle left', 'middle center', 'middle right',\n 'bottom left', 'bottom center', 'bottom right'\n ],\n dflt: 'middle center',\n arrayOk: true,\n editType: 'calc',\n },\n textfont: fontAttrs({\n editType: 'calc',\n colorEditType: 'style',\n arrayOk: true,\n }),\n};\n\n},{\"../../components/colorscale/attributes\":373,\"../../components/drawing\":388,\"../../components/drawing/attributes\":387,\"../../lib/extend\":493,\"../../plots/cartesian/axis_format_attributes\":557,\"../../plots/font_attributes\":585,\"../../plots/template_attributes\":633,\"./constants\":929}],926:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar Lib = _dereq_('../../lib');\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar alignPeriod = _dereq_('../../plots/cartesian/align_period');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nvar subTypes = _dereq_('./subtypes');\nvar calcColorscale = _dereq_('./colorscale_calc');\nvar arraysToCalcdata = _dereq_('./arrays_to_calcdata');\nvar calcSelection = _dereq_('./calc_selection');\n\nfunction calc(gd, trace) {\n var fullLayout = gd._fullLayout;\n var xa = Axes.getFromId(gd, trace.xaxis || 'x');\n var ya = Axes.getFromId(gd, trace.yaxis || 'y');\n var origX = xa.makeCalcdata(trace, 'x');\n var origY = ya.makeCalcdata(trace, 'y');\n var xObj = alignPeriod(trace, xa, 'x', origX);\n var yObj = alignPeriod(trace, ya, 'y', origY);\n var x = xObj.vals;\n var y = yObj.vals;\n\n var serieslen = trace._length;\n var cd = new Array(serieslen);\n var ids = trace.ids;\n var stackGroupOpts = getStackOpts(trace, fullLayout, xa, ya);\n var interpolateGaps = false;\n var isV, i, j, k, interpolate, vali;\n\n setFirstScatter(fullLayout, trace);\n\n var xAttr = 'x';\n var yAttr = 'y';\n var posAttr;\n if(stackGroupOpts) {\n Lib.pushUnique(stackGroupOpts.traceIndices, trace._expandedIndex);\n isV = stackGroupOpts.orientation === 'v';\n\n // size, like we use for bar\n if(isV) {\n yAttr = 's';\n posAttr = 'x';\n } else {\n xAttr = 's';\n posAttr = 'y';\n }\n interpolate = stackGroupOpts.stackgaps === 'interpolate';\n } else {\n var ppad = calcMarkerSize(trace, serieslen);\n calcAxisExpansion(gd, trace, xa, ya, x, y, ppad);\n }\n\n var hasPeriodX = !!trace.xperiodalignment;\n var hasPeriodY = !!trace.yperiodalignment;\n\n for(i = 0; i < serieslen; i++) {\n var cdi = cd[i] = {};\n var xValid = isNumeric(x[i]);\n var yValid = isNumeric(y[i]);\n if(xValid && yValid) {\n cdi[xAttr] = x[i];\n cdi[yAttr] = y[i];\n\n if(hasPeriodX) {\n cdi.orig_x = origX[i]; // used by hover\n cdi.xEnd = xObj.ends[i];\n cdi.xStart = xObj.starts[i];\n }\n if(hasPeriodY) {\n cdi.orig_y = origY[i]; // used by hover\n cdi.yEnd = yObj.ends[i];\n cdi.yStart = yObj.starts[i];\n }\n } else if(stackGroupOpts && (isV ? xValid : yValid)) {\n // if we're stacking we need to hold on to all valid positions\n // even with invalid sizes\n\n cdi[posAttr] = isV ? x[i] : y[i];\n cdi.gap = true;\n if(interpolate) {\n cdi.s = BADNUM;\n interpolateGaps = true;\n } else {\n cdi.s = 0;\n }\n } else {\n cdi[xAttr] = cdi[yAttr] = BADNUM;\n }\n\n if(ids) {\n cdi.id = String(ids[i]);\n }\n }\n\n arraysToCalcdata(cd, trace);\n calcColorscale(gd, trace);\n calcSelection(cd, trace);\n\n if(stackGroupOpts) {\n // remove bad positions and sort\n // note that original indices get added to cd in arraysToCalcdata\n i = 0;\n while(i < cd.length) {\n if(cd[i][posAttr] === BADNUM) {\n cd.splice(i, 1);\n } else i++;\n }\n\n Lib.sort(cd, function(a, b) {\n return (a[posAttr] - b[posAttr]) || (a.i - b.i);\n });\n\n if(interpolateGaps) {\n // first fill the beginning with constant from the first point\n i = 0;\n while(i < cd.length - 1 && cd[i].gap) {\n i++;\n }\n vali = cd[i].s;\n if(!vali) vali = cd[i].s = 0; // in case of no data AT ALL in this trace - use 0\n for(j = 0; j < i; j++) {\n cd[j].s = vali;\n }\n // then fill the end with constant from the last point\n k = cd.length - 1;\n while(k > i && cd[k].gap) {\n k--;\n }\n vali = cd[k].s;\n for(j = cd.length - 1; j > k; j--) {\n cd[j].s = vali;\n }\n // now interpolate internal gaps linearly\n while(i < k) {\n i++;\n if(cd[i].gap) {\n j = i + 1;\n while(cd[j].gap) {\n j++;\n }\n var pos0 = cd[i - 1][posAttr];\n var size0 = cd[i - 1].s;\n var m = (cd[j].s - size0) / (cd[j][posAttr] - pos0);\n while(i < j) {\n cd[i].s = size0 + (cd[i][posAttr] - pos0) * m;\n i++;\n }\n }\n }\n }\n }\n\n return cd;\n}\n\nfunction calcAxisExpansion(gd, trace, xa, ya, x, y, ppad) {\n var serieslen = trace._length;\n var fullLayout = gd._fullLayout;\n var xId = xa._id;\n var yId = ya._id;\n var firstScatter = fullLayout._firstScatter[firstScatterGroup(trace)] === trace.uid;\n var stackOrientation = (getStackOpts(trace, fullLayout, xa, ya) || {}).orientation;\n var fill = trace.fill;\n\n // cancel minimum tick spacings (only applies to bars and boxes)\n xa._minDtick = 0;\n ya._minDtick = 0;\n\n // check whether bounds should be tight, padded, extended to zero...\n // most cases both should be padded on both ends, so start with that.\n var xOptions = {padded: true};\n var yOptions = {padded: true};\n\n if(ppad) {\n xOptions.ppad = yOptions.ppad = ppad;\n }\n\n // TODO: text size\n\n var openEnded = serieslen < 2 || (x[0] !== x[serieslen - 1]) || (y[0] !== y[serieslen - 1]);\n\n if(openEnded && (\n (fill === 'tozerox') ||\n ((fill === 'tonextx') && (firstScatter || stackOrientation === 'h'))\n )) {\n // include zero (tight) and extremes (padded) if fill to zero\n // (unless the shape is closed, then it's just filling the shape regardless)\n\n xOptions.tozero = true;\n } else if(!(trace.error_y || {}).visible && (\n // if no error bars, markers or text, or fill to y=0 remove x padding\n\n (fill === 'tonexty' || fill === 'tozeroy') ||\n (!subTypes.hasMarkers(trace) && !subTypes.hasText(trace))\n )) {\n xOptions.padded = false;\n xOptions.ppad = 0;\n }\n\n if(openEnded && (\n (fill === 'tozeroy') ||\n ((fill === 'tonexty') && (firstScatter || stackOrientation === 'v'))\n )) {\n // now check for y - rather different logic, though still mostly padded both ends\n // include zero (tight) and extremes (padded) if fill to zero\n // (unless the shape is closed, then it's just filling the shape regardless)\n\n yOptions.tozero = true;\n } else if(fill === 'tonextx' || fill === 'tozerox') {\n // tight y: any x fill\n\n yOptions.padded = false;\n }\n\n // N.B. asymmetric splom traces call this with blank {} xa or ya\n if(xId) trace._extremes[xId] = Axes.findExtremes(xa, x, xOptions);\n if(yId) trace._extremes[yId] = Axes.findExtremes(ya, y, yOptions);\n}\n\nfunction calcMarkerSize(trace, serieslen) {\n if(!subTypes.hasMarkers(trace)) return;\n\n // Treat size like x or y arrays --- Run d2c\n // this needs to go before ppad computation\n var marker = trace.marker;\n var sizeref = 1.6 * (trace.marker.sizeref || 1);\n var markerTrans;\n\n if(trace.marker.sizemode === 'area') {\n markerTrans = function(v) {\n return Math.max(Math.sqrt((v || 0) / sizeref), 3);\n };\n } else {\n markerTrans = function(v) {\n return Math.max((v || 0) / sizeref, 3);\n };\n }\n\n if(Lib.isArrayOrTypedArray(marker.size)) {\n // I tried auto-type but category and dates dont make much sense.\n var ax = {type: 'linear'};\n Axes.setConvert(ax);\n\n var s = ax.makeCalcdata(trace.marker, 'size');\n\n var sizeOut = new Array(serieslen);\n for(var i = 0; i < serieslen; i++) {\n sizeOut[i] = markerTrans(s[i]);\n }\n return sizeOut;\n } else {\n return markerTrans(marker.size);\n }\n}\n\n/**\n * mark the first scatter trace for each subplot\n * note that scatter and scattergl each get their own first trace\n * note also that I'm doing this during calc rather than supplyDefaults\n * so I don't need to worry about transforms, but if we ever do\n * per-trace calc this will get confused.\n */\nfunction setFirstScatter(fullLayout, trace) {\n var group = firstScatterGroup(trace);\n var firstScatter = fullLayout._firstScatter;\n if(!firstScatter[group]) firstScatter[group] = trace.uid;\n}\n\nfunction firstScatterGroup(trace) {\n var stackGroup = trace.stackgroup;\n return trace.xaxis + trace.yaxis + trace.type +\n (stackGroup ? '-' + stackGroup : '');\n}\n\nfunction getStackOpts(trace, fullLayout, xa, ya) {\n var stackGroup = trace.stackgroup;\n if(!stackGroup) return;\n var stackOpts = fullLayout._scatterStackOpts[xa._id + ya._id][stackGroup];\n var stackAx = stackOpts.orientation === 'v' ? ya : xa;\n // Allow stacking only on numeric axes\n // calc is a little late to be figuring this out, but during supplyDefaults\n // we don't know the axis type yet\n if(stackAx.type === 'linear' || stackAx.type === 'log') return stackOpts;\n}\n\nmodule.exports = {\n calc: calc,\n calcMarkerSize: calcMarkerSize,\n calcAxisExpansion: calcAxisExpansion,\n setFirstScatter: setFirstScatter,\n getStackOpts: getStackOpts\n};\n\n},{\"../../constants/numerical\":479,\"../../lib\":503,\"../../plots/cartesian/align_period\":551,\"../../plots/cartesian/axes\":554,\"./arrays_to_calcdata\":924,\"./calc_selection\":927,\"./colorscale_calc\":928,\"./subtypes\":950,\"fast-isnumeric\":190}],927:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nmodule.exports = function calcSelection(cd, trace) {\n if(Lib.isArrayOrTypedArray(trace.selectedpoints)) {\n Lib.tagSelected(cd, trace);\n }\n};\n\n},{\"../../lib\":503}],928:[function(_dereq_,module,exports){\n'use strict';\n\nvar hasColorscale = _dereq_('../../components/colorscale/helpers').hasColorscale;\nvar calcColorscale = _dereq_('../../components/colorscale/calc');\n\nvar subTypes = _dereq_('./subtypes');\n\nmodule.exports = function calcMarkerColorscale(gd, trace) {\n if(subTypes.hasLines(trace) && hasColorscale(trace, 'line')) {\n calcColorscale(gd, trace, {\n vals: trace.line.color,\n containerStr: 'line',\n cLetter: 'c'\n });\n }\n\n if(subTypes.hasMarkers(trace)) {\n if(hasColorscale(trace, 'marker')) {\n calcColorscale(gd, trace, {\n vals: trace.marker.color,\n containerStr: 'marker',\n cLetter: 'c'\n });\n }\n if(hasColorscale(trace, 'marker.line')) {\n calcColorscale(gd, trace, {\n vals: trace.marker.line.color,\n containerStr: 'marker.line',\n cLetter: 'c'\n });\n }\n }\n};\n\n},{\"../../components/colorscale/calc\":374,\"../../components/colorscale/helpers\":377,\"./subtypes\":950}],929:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n PTS_LINESONLY: 20,\n\n // fixed parameters of clustering and clipping algorithms\n\n // fraction of clustering tolerance \"so close we don't even consider it a new point\"\n minTolerance: 0.2,\n // how fast does clustering tolerance increase as you get away from the visible region\n toleranceGrowth: 10,\n\n // number of viewport sizes away from the visible region\n // at which we clip all lines to the perimeter\n maxScreensAway: 20,\n\n eventDataKeys: []\n};\n\n},{}],930:[function(_dereq_,module,exports){\n'use strict';\n\nvar calc = _dereq_('./calc');\n\n/*\n * Scatter stacking & normalization calculations\n * runs per subplot, and can handle multiple stacking groups\n */\n\nmodule.exports = function crossTraceCalc(gd, plotinfo) {\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n var subplot = xa._id + ya._id;\n\n var subplotStackOpts = gd._fullLayout._scatterStackOpts[subplot];\n if(!subplotStackOpts) return;\n\n var calcTraces = gd.calcdata;\n\n var i, j, k, i2, cd, cd0, posj, sumj, norm;\n var groupOpts, interpolate, groupnorm, posAttr, valAttr;\n var hasAnyBlanks;\n\n for(var stackGroup in subplotStackOpts) {\n groupOpts = subplotStackOpts[stackGroup];\n var indices = groupOpts.traceIndices;\n\n // can get here with no indices if the stack axis is non-numeric\n if(!indices.length) continue;\n\n interpolate = groupOpts.stackgaps === 'interpolate';\n groupnorm = groupOpts.groupnorm;\n if(groupOpts.orientation === 'v') {\n posAttr = 'x';\n valAttr = 'y';\n } else {\n posAttr = 'y';\n valAttr = 'x';\n }\n hasAnyBlanks = new Array(indices.length);\n for(i = 0; i < hasAnyBlanks.length; i++) {\n hasAnyBlanks[i] = false;\n }\n\n // Collect the complete set of all positions across ALL traces.\n // Start with the first trace, then interleave items from later traces\n // as needed.\n // Fill in mising items as we go.\n cd0 = calcTraces[indices[0]];\n var allPositions = new Array(cd0.length);\n for(i = 0; i < cd0.length; i++) {\n allPositions[i] = cd0[i][posAttr];\n }\n\n for(i = 1; i < indices.length; i++) {\n cd = calcTraces[indices[i]];\n\n for(j = k = 0; j < cd.length; j++) {\n posj = cd[j][posAttr];\n for(; posj > allPositions[k] && k < allPositions.length; k++) {\n // the current trace is missing a position from some previous trace(s)\n insertBlank(cd, j, allPositions[k], i, hasAnyBlanks, interpolate, posAttr);\n j++;\n }\n if(posj !== allPositions[k]) {\n // previous trace(s) are missing a position from the current trace\n for(i2 = 0; i2 < i; i2++) {\n insertBlank(calcTraces[indices[i2]], k, posj, i2, hasAnyBlanks, interpolate, posAttr);\n }\n allPositions.splice(k, 0, posj);\n }\n k++;\n }\n for(; k < allPositions.length; k++) {\n insertBlank(cd, j, allPositions[k], i, hasAnyBlanks, interpolate, posAttr);\n j++;\n }\n }\n\n var serieslen = allPositions.length;\n\n // stack (and normalize)!\n for(j = 0; j < cd0.length; j++) {\n sumj = cd0[j][valAttr] = cd0[j].s;\n for(i = 1; i < indices.length; i++) {\n cd = calcTraces[indices[i]];\n cd[0].trace._rawLength = cd[0].trace._length;\n cd[0].trace._length = serieslen;\n sumj += cd[j].s;\n cd[j][valAttr] = sumj;\n }\n\n if(groupnorm) {\n norm = ((groupnorm === 'fraction') ? sumj : (sumj / 100)) || 1;\n for(i = 0; i < indices.length; i++) {\n var cdj = calcTraces[indices[i]][j];\n cdj[valAttr] /= norm;\n cdj.sNorm = cdj.s / norm;\n }\n }\n }\n\n // autorange\n for(i = 0; i < indices.length; i++) {\n cd = calcTraces[indices[i]];\n var trace = cd[0].trace;\n var ppad = calc.calcMarkerSize(trace, trace._rawLength);\n var arrayPad = Array.isArray(ppad);\n if((ppad && hasAnyBlanks[i]) || arrayPad) {\n var ppadRaw = ppad;\n ppad = new Array(serieslen);\n for(j = 0; j < serieslen; j++) {\n ppad[j] = cd[j].gap ? 0 : (arrayPad ? ppadRaw[cd[j].i] : ppadRaw);\n }\n }\n var x = new Array(serieslen);\n var y = new Array(serieslen);\n for(j = 0; j < serieslen; j++) {\n x[j] = cd[j].x;\n y[j] = cd[j].y;\n }\n calc.calcAxisExpansion(gd, trace, xa, ya, x, y, ppad);\n\n // while we're here (in a loop over all traces in the stack)\n // record the orientation, so hover can find it easily\n cd[0].t.orientation = groupOpts.orientation;\n }\n }\n};\n\nfunction insertBlank(calcTrace, index, position, traceIndex, hasAnyBlanks, interpolate, posAttr) {\n hasAnyBlanks[traceIndex] = true;\n var newEntry = {\n i: null,\n gap: true,\n s: 0\n };\n newEntry[posAttr] = position;\n calcTrace.splice(index, 0, newEntry);\n // Even if we're not interpolating, if one trace has multiple\n // values at the same position and this trace only has one value there,\n // we just duplicate that one value rather than insert a zero.\n // We also make it look like a real point - because it's ambiguous which\n // one really is the real one!\n if(index && position === calcTrace[index - 1][posAttr]) {\n var prevEntry = calcTrace[index - 1];\n newEntry.s = prevEntry.s;\n // TODO is it going to cause any problems to have multiple\n // calcdata points with the same index?\n newEntry.i = prevEntry.i;\n newEntry.gap = prevEntry.gap;\n } else if(interpolate) {\n newEntry.s = getInterp(calcTrace, index, position, posAttr);\n }\n if(!index) {\n // t and trace need to stay on the first cd entry\n calcTrace[0].t = calcTrace[1].t;\n calcTrace[0].trace = calcTrace[1].trace;\n delete calcTrace[1].t;\n delete calcTrace[1].trace;\n }\n}\n\nfunction getInterp(calcTrace, index, position, posAttr) {\n var pt0 = calcTrace[index - 1];\n var pt1 = calcTrace[index + 1];\n if(!pt1) return pt0.s;\n if(!pt0) return pt1.s;\n return pt0.s + (pt1.s - pt0.s) * (position - pt0[posAttr]) / (pt1[posAttr] - pt0[posAttr]);\n}\n\n},{\"./calc\":926}],931:[function(_dereq_,module,exports){\n'use strict';\n\n\n// remove opacity for any trace that has a fill or is filled to\nmodule.exports = function crossTraceDefaults(fullData) {\n for(var i = 0; i < fullData.length; i++) {\n var tracei = fullData[i];\n if(tracei.type !== 'scatter') continue;\n\n var filli = tracei.fill;\n if(filli === 'none' || filli === 'toself') continue;\n\n tracei.opacity = undefined;\n\n if(filli === 'tonexty' || filli === 'tonextx') {\n for(var j = i - 1; j >= 0; j--) {\n var tracej = fullData[j];\n\n if((tracej.type === 'scatter') &&\n (tracej.xaxis === tracei.xaxis) &&\n (tracej.yaxis === tracei.yaxis)) {\n tracej.opacity = undefined;\n break;\n }\n }\n }\n }\n};\n\n},{}],932:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Registry = _dereq_('../../registry');\n\nvar attributes = _dereq_('./attributes');\nvar constants = _dereq_('./constants');\nvar subTypes = _dereq_('./subtypes');\nvar handleXYDefaults = _dereq_('./xy_defaults');\nvar handlePeriodDefaults = _dereq_('./period_defaults');\nvar handleStackDefaults = _dereq_('./stack_defaults');\nvar handleMarkerDefaults = _dereq_('./marker_defaults');\nvar handleLineDefaults = _dereq_('./line_defaults');\nvar handleLineShapeDefaults = _dereq_('./line_shape_defaults');\nvar handleTextDefaults = _dereq_('./text_defaults');\nvar handleFillColorDefaults = _dereq_('./fillcolor_defaults');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var len = handleXYDefaults(traceIn, traceOut, layout, coerce);\n if(!len) traceOut.visible = false;\n\n if(!traceOut.visible) return;\n\n handlePeriodDefaults(traceIn, traceOut, layout, coerce);\n coerce('xhoverformat');\n coerce('yhoverformat');\n\n var stackGroupOpts = handleStackDefaults(traceIn, traceOut, layout, coerce);\n\n var defaultMode = !stackGroupOpts && (len < constants.PTS_LINESONLY) ?\n 'lines+markers' : 'lines';\n coerce('text');\n coerce('hovertext');\n coerce('mode', defaultMode);\n\n if(subTypes.hasLines(traceOut)) {\n handleLineDefaults(traceIn, traceOut, defaultColor, layout, coerce);\n handleLineShapeDefaults(traceIn, traceOut, coerce);\n coerce('connectgaps');\n coerce('line.simplify');\n }\n\n if(subTypes.hasMarkers(traceOut)) {\n handleMarkerDefaults(traceIn, traceOut, defaultColor, layout, coerce, {gradient: true});\n }\n\n if(subTypes.hasText(traceOut)) {\n coerce('texttemplate');\n handleTextDefaults(traceIn, traceOut, layout, coerce);\n }\n\n var dfltHoverOn = [];\n\n if(subTypes.hasMarkers(traceOut) || subTypes.hasText(traceOut)) {\n coerce('cliponaxis');\n coerce('marker.maxdisplayed');\n dfltHoverOn.push('points');\n }\n\n // It's possible for this default to be changed by a later trace.\n // We handle that case in some hacky code inside handleStackDefaults.\n coerce('fill', stackGroupOpts ? stackGroupOpts.fillDflt : 'none');\n if(traceOut.fill !== 'none') {\n handleFillColorDefaults(traceIn, traceOut, defaultColor, coerce);\n if(!subTypes.hasLines(traceOut)) handleLineShapeDefaults(traceIn, traceOut, coerce);\n }\n\n var lineColor = (traceOut.line || {}).color;\n var markerColor = (traceOut.marker || {}).color;\n\n if(traceOut.fill === 'tonext' || traceOut.fill === 'toself') {\n dfltHoverOn.push('fills');\n }\n coerce('hoveron', dfltHoverOn.join('+') || 'points');\n if(traceOut.hoveron !== 'fills') coerce('hovertemplate');\n var errorBarsSupplyDefaults = Registry.getComponentMethod('errorbars', 'supplyDefaults');\n errorBarsSupplyDefaults(traceIn, traceOut, lineColor || markerColor || defaultColor, {axis: 'y'});\n errorBarsSupplyDefaults(traceIn, traceOut, lineColor || markerColor || defaultColor, {axis: 'x', inherit: 'y'});\n\n Lib.coerceSelectionMarkerOpacity(traceOut, coerce);\n};\n\n},{\"../../lib\":503,\"../../registry\":638,\"./attributes\":925,\"./constants\":929,\"./fillcolor_defaults\":933,\"./line_defaults\":938,\"./line_shape_defaults\":940,\"./marker_defaults\":944,\"./period_defaults\":945,\"./stack_defaults\":948,\"./subtypes\":950,\"./text_defaults\":951,\"./xy_defaults\":952}],933:[function(_dereq_,module,exports){\n'use strict';\n\nvar Color = _dereq_('../../components/color');\nvar isArrayOrTypedArray = _dereq_('../../lib').isArrayOrTypedArray;\n\nmodule.exports = function fillColorDefaults(traceIn, traceOut, defaultColor, coerce) {\n var inheritColorFromMarker = false;\n\n if(traceOut.marker) {\n // don't try to inherit a color array\n var markerColor = traceOut.marker.color;\n var markerLineColor = (traceOut.marker.line || {}).color;\n\n if(markerColor && !isArrayOrTypedArray(markerColor)) {\n inheritColorFromMarker = markerColor;\n } else if(markerLineColor && !isArrayOrTypedArray(markerLineColor)) {\n inheritColorFromMarker = markerLineColor;\n }\n }\n\n coerce('fillcolor', Color.addOpacity(\n (traceOut.line || {}).color ||\n inheritColorFromMarker ||\n defaultColor, 0.5\n ));\n};\n\n},{\"../../components/color\":366,\"../../lib\":503}],934:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\n\nmodule.exports = function formatLabels(cdi, trace, fullLayout) {\n var labels = {};\n\n var mockGd = {_fullLayout: fullLayout};\n var xa = Axes.getFromTrace(mockGd, trace, 'x');\n var ya = Axes.getFromTrace(mockGd, trace, 'y');\n\n labels.xLabel = Axes.tickText(xa, xa.c2l(cdi.x), true).text;\n labels.yLabel = Axes.tickText(ya, ya.c2l(cdi.y), true).text;\n\n return labels;\n};\n\n},{\"../../plots/cartesian/axes\":554}],935:[function(_dereq_,module,exports){\n'use strict';\n\nvar Color = _dereq_('../../components/color');\nvar subtypes = _dereq_('./subtypes');\n\n\nmodule.exports = function getTraceColor(trace, di) {\n var lc, tc;\n\n // TODO: text modes\n\n if(trace.mode === 'lines') {\n lc = trace.line.color;\n return (lc && Color.opacity(lc)) ?\n lc : trace.fillcolor;\n } else if(trace.mode === 'none') {\n return trace.fill ? trace.fillcolor : '';\n } else {\n var mc = di.mcc || (trace.marker || {}).color;\n var mlc = di.mlcc || ((trace.marker || {}).line || {}).color;\n\n tc = (mc && Color.opacity(mc)) ? mc :\n (mlc && Color.opacity(mlc) &&\n (di.mlw || ((trace.marker || {}).line || {}).width)) ? mlc : '';\n\n if(tc) {\n // make sure the points aren't TOO transparent\n if(Color.opacity(tc) < 0.3) {\n return Color.addOpacity(tc, 0.3);\n } else return tc;\n } else {\n lc = (trace.line || {}).color;\n return (lc && Color.opacity(lc) &&\n subtypes.hasLines(trace) && trace.line.width) ?\n lc : trace.fillcolor;\n }\n }\n};\n\n},{\"../../components/color\":366,\"./subtypes\":950}],936:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Fx = _dereq_('../../components/fx');\nvar Registry = _dereq_('../../registry');\nvar getTraceColor = _dereq_('./get_trace_color');\nvar Color = _dereq_('../../components/color');\nvar fillText = Lib.fillText;\n\nmodule.exports = function hoverPoints(pointData, xval, yval, hovermode) {\n var cd = pointData.cd;\n var trace = cd[0].trace;\n var xa = pointData.xa;\n var ya = pointData.ya;\n var xpx = xa.c2p(xval);\n var ypx = ya.c2p(yval);\n var pt = [xpx, ypx];\n var hoveron = trace.hoveron || '';\n var minRad = (trace.mode.indexOf('markers') !== -1) ? 3 : 0.5;\n\n var xPeriod = !!trace.xperiodalignment;\n var yPeriod = !!trace.yperiodalignment;\n\n // look for points to hover on first, then take fills only if we\n // didn't find a point\n\n if(hoveron.indexOf('points') !== -1) {\n // dx and dy are used in compare modes - here we want to always\n // prioritize the closest data point, at least as long as markers are\n // the same size or nonexistent, but still try to prioritize small markers too.\n var dx = function(di) {\n if(xPeriod) {\n var x0 = xa.c2p(di.xStart);\n var x1 = xa.c2p(di.xEnd);\n\n return (\n xpx >= Math.min(x0, x1) &&\n xpx <= Math.max(x0, x1)\n ) ? 0 : Infinity;\n }\n\n var rad = Math.max(3, di.mrc || 0);\n var kink = 1 - 1 / rad;\n var dxRaw = Math.abs(xa.c2p(di.x) - xpx);\n return (dxRaw < rad) ? (kink * dxRaw / rad) : (dxRaw - rad + kink);\n };\n var dy = function(di) {\n if(yPeriod) {\n var y0 = ya.c2p(di.yStart);\n var y1 = ya.c2p(di.yEnd);\n\n return (\n ypx >= Math.min(y0, y1) &&\n ypx <= Math.max(y0, y1)\n ) ? 0 : Infinity;\n }\n\n var rad = Math.max(3, di.mrc || 0);\n var kink = 1 - 1 / rad;\n var dyRaw = Math.abs(ya.c2p(di.y) - ypx);\n return (dyRaw < rad) ? (kink * dyRaw / rad) : (dyRaw - rad + kink);\n };\n\n // scatter points: d.mrc is the calculated marker radius\n // adjust the distance so if you're inside the marker it\n // always will show up regardless of point size, but\n // prioritize smaller points\n var dxy = function(di) {\n var rad = Math.max(minRad, di.mrc || 0);\n var dx = xa.c2p(di.x) - xpx;\n var dy = ya.c2p(di.y) - ypx;\n return Math.max(Math.sqrt(dx * dx + dy * dy) - rad, 1 - minRad / rad);\n };\n var distfn = Fx.getDistanceFunction(hovermode, dx, dy, dxy);\n\n Fx.getClosest(cd, distfn, pointData);\n\n // skip the rest (for this trace) if we didn't find a close point\n if(pointData.index !== false) {\n // the closest data point\n var di = cd[pointData.index];\n var xc = xa.c2p(di.x, true);\n var yc = ya.c2p(di.y, true);\n var rad = di.mrc || 1;\n\n // now we're done using the whole `calcdata` array, replace the\n // index with the original index (in case of inserted point from\n // stacked area)\n pointData.index = di.i;\n\n var orientation = cd[0].t.orientation;\n // TODO: for scatter and bar, option to show (sub)totals and\n // raw data? Currently stacked and/or normalized bars just show\n // the normalized individual sizes, so that's what I'm doing here\n // for now.\n var sizeVal = orientation && (di.sNorm || di.s);\n var xLabelVal = (orientation === 'h') ? sizeVal : di.orig_x !== undefined ? di.orig_x : di.x;\n var yLabelVal = (orientation === 'v') ? sizeVal : di.orig_y !== undefined ? di.orig_y : di.y;\n\n Lib.extendFlat(pointData, {\n color: getTraceColor(trace, di),\n\n x0: xc - rad,\n x1: xc + rad,\n xLabelVal: xLabelVal,\n\n y0: yc - rad,\n y1: yc + rad,\n yLabelVal: yLabelVal,\n\n spikeDistance: dxy(di),\n hovertemplate: trace.hovertemplate\n });\n\n fillText(di, trace, pointData);\n Registry.getComponentMethod('errorbars', 'hoverInfo')(di, trace, pointData);\n\n return [pointData];\n }\n }\n\n // even if hoveron is 'fills', only use it if we have polygons too\n if(hoveron.indexOf('fills') !== -1 && trace._polygons) {\n var polygons = trace._polygons;\n var polygonsIn = [];\n var inside = false;\n var xmin = Infinity;\n var xmax = -Infinity;\n var ymin = Infinity;\n var ymax = -Infinity;\n\n var i, j, polygon, pts, xCross, x0, x1, y0, y1;\n\n for(i = 0; i < polygons.length; i++) {\n polygon = polygons[i];\n // TODO: this is not going to work right for curved edges, it will\n // act as though they're straight. That's probably going to need\n // the elements themselves to capture the events. Worth it?\n if(polygon.contains(pt)) {\n inside = !inside;\n // TODO: need better than just the overall bounding box\n polygonsIn.push(polygon);\n ymin = Math.min(ymin, polygon.ymin);\n ymax = Math.max(ymax, polygon.ymax);\n }\n }\n\n if(inside) {\n // constrain ymin/max to the visible plot, so the label goes\n // at the middle of the piece you can see\n ymin = Math.max(ymin, 0);\n ymax = Math.min(ymax, ya._length);\n\n // find the overall left-most and right-most points of the\n // polygon(s) we're inside at their combined vertical midpoint.\n // This is where we will draw the hover label.\n // Note that this might not be the vertical midpoint of the\n // whole trace, if it's disjoint.\n var yAvg = (ymin + ymax) / 2;\n for(i = 0; i < polygonsIn.length; i++) {\n pts = polygonsIn[i].pts;\n for(j = 1; j < pts.length; j++) {\n y0 = pts[j - 1][1];\n y1 = pts[j][1];\n if((y0 > yAvg) !== (y1 >= yAvg)) {\n x0 = pts[j - 1][0];\n x1 = pts[j][0];\n if(y1 - y0) {\n xCross = x0 + (x1 - x0) * (yAvg - y0) / (y1 - y0);\n xmin = Math.min(xmin, xCross);\n xmax = Math.max(xmax, xCross);\n }\n }\n }\n }\n\n // constrain xmin/max to the visible plot now too\n xmin = Math.max(xmin, 0);\n xmax = Math.min(xmax, xa._length);\n\n // get only fill or line color for the hover color\n var color = Color.defaultLine;\n if(Color.opacity(trace.fillcolor)) color = trace.fillcolor;\n else if(Color.opacity((trace.line || {}).color)) {\n color = trace.line.color;\n }\n\n Lib.extendFlat(pointData, {\n // never let a 2D override 1D type as closest point\n // also: no spikeDistance, it's not allowed for fills\n distance: pointData.maxHoverDistance,\n x0: xmin,\n x1: xmax,\n y0: yAvg,\n y1: yAvg,\n color: color,\n hovertemplate: false\n });\n\n delete pointData.index;\n\n if(trace.text && !Array.isArray(trace.text)) {\n pointData.text = String(trace.text);\n } else pointData.text = trace.name;\n\n return [pointData];\n }\n }\n};\n\n},{\"../../components/color\":366,\"../../components/fx\":406,\"../../lib\":503,\"../../registry\":638,\"./get_trace_color\":935}],937:[function(_dereq_,module,exports){\n'use strict';\n\nvar subtypes = _dereq_('./subtypes');\n\nmodule.exports = {\n hasLines: subtypes.hasLines,\n hasMarkers: subtypes.hasMarkers,\n hasText: subtypes.hasText,\n isBubble: subtypes.isBubble,\n\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n crossTraceDefaults: _dereq_('./cross_trace_defaults'),\n calc: _dereq_('./calc').calc,\n crossTraceCalc: _dereq_('./cross_trace_calc'),\n arraysToCalcdata: _dereq_('./arrays_to_calcdata'),\n plot: _dereq_('./plot'),\n colorbar: _dereq_('./marker_colorbar'),\n formatLabels: _dereq_('./format_labels'),\n style: _dereq_('./style').style,\n styleOnSelect: _dereq_('./style').styleOnSelect,\n hoverPoints: _dereq_('./hover'),\n selectPoints: _dereq_('./select'),\n animatable: true,\n\n moduleType: 'trace',\n name: 'scatter',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: [\n 'cartesian', 'svg', 'symbols', 'errorBarsOK', 'showLegend', 'scatter-like',\n 'zoomScale'\n ],\n meta: {\n }\n};\n\n},{\"../../plots/cartesian\":568,\"./arrays_to_calcdata\":924,\"./attributes\":925,\"./calc\":926,\"./cross_trace_calc\":930,\"./cross_trace_defaults\":931,\"./defaults\":932,\"./format_labels\":934,\"./hover\":936,\"./marker_colorbar\":943,\"./plot\":946,\"./select\":947,\"./style\":949,\"./subtypes\":950}],938:[function(_dereq_,module,exports){\n'use strict';\n\nvar isArrayOrTypedArray = _dereq_('../../lib').isArrayOrTypedArray;\nvar hasColorscale = _dereq_('../../components/colorscale/helpers').hasColorscale;\nvar colorscaleDefaults = _dereq_('../../components/colorscale/defaults');\n\nmodule.exports = function lineDefaults(traceIn, traceOut, defaultColor, layout, coerce, opts) {\n var markerColor = (traceIn.marker || {}).color;\n\n coerce('line.color', defaultColor);\n\n if(hasColorscale(traceIn, 'line')) {\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: 'line.', cLetter: 'c'});\n } else {\n var lineColorDflt = (isArrayOrTypedArray(markerColor) ? false : markerColor) || defaultColor;\n coerce('line.color', lineColorDflt);\n }\n\n coerce('line.width');\n if(!(opts || {}).noDash) coerce('line.dash');\n};\n\n},{\"../../components/colorscale/defaults\":376,\"../../components/colorscale/helpers\":377,\"../../lib\":503}],939:[function(_dereq_,module,exports){\n'use strict';\n\nvar numConstants = _dereq_('../../constants/numerical');\nvar BADNUM = numConstants.BADNUM;\nvar LOG_CLIP = numConstants.LOG_CLIP;\nvar LOG_CLIP_PLUS = LOG_CLIP + 0.5;\nvar LOG_CLIP_MINUS = LOG_CLIP - 0.5;\nvar Lib = _dereq_('../../lib');\nvar segmentsIntersect = Lib.segmentsIntersect;\nvar constrain = Lib.constrain;\nvar constants = _dereq_('./constants');\n\n\nmodule.exports = function linePoints(d, opts) {\n var xa = opts.xaxis;\n var ya = opts.yaxis;\n var xLog = xa.type === 'log';\n var yLog = ya.type === 'log';\n var xLen = xa._length;\n var yLen = ya._length;\n var connectGaps = opts.connectGaps;\n var baseTolerance = opts.baseTolerance;\n var shape = opts.shape;\n var linear = shape === 'linear';\n var fill = opts.fill && opts.fill !== 'none';\n var segments = [];\n var minTolerance = constants.minTolerance;\n var len = d.length;\n var pts = new Array(len);\n var pti = 0;\n\n var i;\n\n // pt variables are pixel coordinates [x,y] of one point\n // these four are the outputs of clustering on a line\n var clusterStartPt, clusterEndPt, clusterHighPt, clusterLowPt;\n\n // \"this\" is the next point we're considering adding to the cluster\n var thisPt;\n\n // did we encounter the high point first, then a low point, or vice versa?\n var clusterHighFirst;\n\n // the first two points in the cluster determine its unit vector\n // so the second is always in the \"High\" direction\n var clusterUnitVector;\n\n // the pixel delta from clusterStartPt\n var thisVector;\n\n // val variables are (signed) pixel distances along the cluster vector\n var clusterRefDist, clusterHighVal, clusterLowVal, thisVal;\n\n // deviation variables are (signed) pixel distances normal to the cluster vector\n var clusterMinDeviation, clusterMaxDeviation, thisDeviation;\n\n // turn one calcdata point into pixel coordinates\n function getPt(index) {\n var di = d[index];\n if(!di) return false;\n var x = opts.linearized ? xa.l2p(di.x) : xa.c2p(di.x);\n var y = opts.linearized ? ya.l2p(di.y) : ya.c2p(di.y);\n\n // if non-positive log values, set them VERY far off-screen\n // so the line looks essentially straight from the previous point.\n if(x === BADNUM) {\n if(xLog) x = xa.c2p(di.x, true);\n if(x === BADNUM) return false;\n // If BOTH were bad log values, make the line follow a constant\n // exponent rather than a constant slope\n if(yLog && y === BADNUM) {\n x *= Math.abs(xa._m * yLen * (xa._m > 0 ? LOG_CLIP_PLUS : LOG_CLIP_MINUS) /\n (ya._m * xLen * (ya._m > 0 ? LOG_CLIP_PLUS : LOG_CLIP_MINUS)));\n }\n x *= 1000;\n }\n if(y === BADNUM) {\n if(yLog) y = ya.c2p(di.y, true);\n if(y === BADNUM) return false;\n y *= 1000;\n }\n return [x, y];\n }\n\n function crossesViewport(xFrac0, yFrac0, xFrac1, yFrac1) {\n var dx = xFrac1 - xFrac0;\n var dy = yFrac1 - yFrac0;\n var dx0 = 0.5 - xFrac0;\n var dy0 = 0.5 - yFrac0;\n var norm2 = dx * dx + dy * dy;\n var dot = dx * dx0 + dy * dy0;\n if(dot > 0 && dot < norm2) {\n var cross = dx0 * dy - dy0 * dx;\n if(cross * cross < norm2) return true;\n }\n }\n\n var latestXFrac, latestYFrac;\n // if we're off-screen, increase tolerance over baseTolerance\n function getTolerance(pt, nextPt) {\n var xFrac = pt[0] / xLen;\n var yFrac = pt[1] / yLen;\n var offScreenFraction = Math.max(0, -xFrac, xFrac - 1, -yFrac, yFrac - 1);\n if(offScreenFraction && (latestXFrac !== undefined) &&\n crossesViewport(xFrac, yFrac, latestXFrac, latestYFrac)\n ) {\n offScreenFraction = 0;\n }\n if(offScreenFraction && nextPt &&\n crossesViewport(xFrac, yFrac, nextPt[0] / xLen, nextPt[1] / yLen)\n ) {\n offScreenFraction = 0;\n }\n\n return (1 + constants.toleranceGrowth * offScreenFraction) * baseTolerance;\n }\n\n function ptDist(pt1, pt2) {\n var dx = pt1[0] - pt2[0];\n var dy = pt1[1] - pt2[1];\n return Math.sqrt(dx * dx + dy * dy);\n }\n\n // last bit of filtering: clip paths that are VERY far off-screen\n // so we don't get near the browser's hard limit (+/- 2^29 px in Chrome and FF)\n\n var maxScreensAway = constants.maxScreensAway;\n\n // find the intersections between the segment from pt1 to pt2\n // and the large rectangle maxScreensAway around the viewport\n // if one of pt1 and pt2 is inside and the other outside, there\n // will be only one intersection.\n // if both are outside there will be 0 or 2 intersections\n // (or 1 if it's right at a corner - we'll treat that like 0)\n // returns an array of intersection pts\n var xEdge0 = -xLen * maxScreensAway;\n var xEdge1 = xLen * (1 + maxScreensAway);\n var yEdge0 = -yLen * maxScreensAway;\n var yEdge1 = yLen * (1 + maxScreensAway);\n var edges = [\n [xEdge0, yEdge0, xEdge1, yEdge0],\n [xEdge1, yEdge0, xEdge1, yEdge1],\n [xEdge1, yEdge1, xEdge0, yEdge1],\n [xEdge0, yEdge1, xEdge0, yEdge0]\n ];\n var xEdge, yEdge, lastXEdge, lastYEdge, lastFarPt, edgePt;\n\n // for linear line shape, edge intersections should be linearly interpolated\n // spline uses this too, which isn't precisely correct but is actually pretty\n // good, because Catmull-Rom weights far-away points less in creating the curvature\n function getLinearEdgeIntersections(pt1, pt2) {\n var out = [];\n var ptCount = 0;\n for(var i = 0; i < 4; i++) {\n var edge = edges[i];\n var ptInt = segmentsIntersect(\n pt1[0], pt1[1], pt2[0], pt2[1],\n edge[0], edge[1], edge[2], edge[3]\n );\n if(ptInt && (!ptCount ||\n Math.abs(ptInt.x - out[0][0]) > 1 ||\n Math.abs(ptInt.y - out[0][1]) > 1\n )) {\n ptInt = [ptInt.x, ptInt.y];\n // if we have 2 intersections, make sure the closest one to pt1 comes first\n if(ptCount && ptDist(ptInt, pt1) < ptDist(out[0], pt1)) out.unshift(ptInt);\n else out.push(ptInt);\n ptCount++;\n }\n }\n return out;\n }\n\n function onlyConstrainedPoint(pt) {\n if(pt[0] < xEdge0 || pt[0] > xEdge1 || pt[1] < yEdge0 || pt[1] > yEdge1) {\n return [constrain(pt[0], xEdge0, xEdge1), constrain(pt[1], yEdge0, yEdge1)];\n }\n }\n\n function sameEdge(pt1, pt2) {\n if(pt1[0] === pt2[0] && (pt1[0] === xEdge0 || pt1[0] === xEdge1)) return true;\n if(pt1[1] === pt2[1] && (pt1[1] === yEdge0 || pt1[1] === yEdge1)) return true;\n }\n\n // for line shapes hv and vh, movement in the two dimensions is decoupled,\n // so all we need to do is constrain each dimension independently\n function getHVEdgeIntersections(pt1, pt2) {\n var out = [];\n var ptInt1 = onlyConstrainedPoint(pt1);\n var ptInt2 = onlyConstrainedPoint(pt2);\n if(ptInt1 && ptInt2 && sameEdge(ptInt1, ptInt2)) return out;\n\n if(ptInt1) out.push(ptInt1);\n if(ptInt2) out.push(ptInt2);\n return out;\n }\n\n // hvh and vhv we sometimes have to move one of the intersection points\n // out BEYOND the clipping rect, by a maximum of a factor of 2, so that\n // the midpoint line is drawn in the right place\n function getABAEdgeIntersections(dim, limit0, limit1) {\n return function(pt1, pt2) {\n var ptInt1 = onlyConstrainedPoint(pt1);\n var ptInt2 = onlyConstrainedPoint(pt2);\n\n var out = [];\n if(ptInt1 && ptInt2 && sameEdge(ptInt1, ptInt2)) return out;\n\n if(ptInt1) out.push(ptInt1);\n if(ptInt2) out.push(ptInt2);\n\n var midShift = 2 * Lib.constrain((pt1[dim] + pt2[dim]) / 2, limit0, limit1) -\n ((ptInt1 || pt1)[dim] + (ptInt2 || pt2)[dim]);\n if(midShift) {\n var ptToAlter;\n if(ptInt1 && ptInt2) {\n ptToAlter = (midShift > 0 === ptInt1[dim] > ptInt2[dim]) ? ptInt1 : ptInt2;\n } else ptToAlter = ptInt1 || ptInt2;\n\n ptToAlter[dim] += midShift;\n }\n\n return out;\n };\n }\n\n var getEdgeIntersections;\n if(shape === 'linear' || shape === 'spline') {\n getEdgeIntersections = getLinearEdgeIntersections;\n } else if(shape === 'hv' || shape === 'vh') {\n getEdgeIntersections = getHVEdgeIntersections;\n } else if(shape === 'hvh') getEdgeIntersections = getABAEdgeIntersections(0, xEdge0, xEdge1);\n else if(shape === 'vhv') getEdgeIntersections = getABAEdgeIntersections(1, yEdge0, yEdge1);\n\n // a segment pt1->pt2 entirely outside the nearby region:\n // find the corner it gets closest to touching\n function getClosestCorner(pt1, pt2) {\n var dx = pt2[0] - pt1[0];\n var m = (pt2[1] - pt1[1]) / dx;\n var b = (pt1[1] * pt2[0] - pt2[1] * pt1[0]) / dx;\n\n if(b > 0) return [m > 0 ? xEdge0 : xEdge1, yEdge1];\n else return [m > 0 ? xEdge1 : xEdge0, yEdge0];\n }\n\n function updateEdge(pt) {\n var x = pt[0];\n var y = pt[1];\n var xSame = x === pts[pti - 1][0];\n var ySame = y === pts[pti - 1][1];\n // duplicate point?\n if(xSame && ySame) return;\n if(pti > 1) {\n // backtracking along an edge?\n var xSame2 = x === pts[pti - 2][0];\n var ySame2 = y === pts[pti - 2][1];\n if(xSame && (x === xEdge0 || x === xEdge1) && xSame2) {\n if(ySame2) pti--; // backtracking exactly - drop prev pt and don't add\n else pts[pti - 1] = pt; // not exact: replace the prev pt\n } else if(ySame && (y === yEdge0 || y === yEdge1) && ySame2) {\n if(xSame2) pti--;\n else pts[pti - 1] = pt;\n } else pts[pti++] = pt;\n } else pts[pti++] = pt;\n }\n\n function updateEdgesForReentry(pt) {\n // if we're outside the nearby region and going back in,\n // we may need to loop around a corner point\n if(pts[pti - 1][0] !== pt[0] && pts[pti - 1][1] !== pt[1]) {\n updateEdge([lastXEdge, lastYEdge]);\n }\n updateEdge(pt);\n lastFarPt = null;\n lastXEdge = lastYEdge = 0;\n }\n\n function addPt(pt) {\n latestXFrac = pt[0] / xLen;\n latestYFrac = pt[1] / yLen;\n // Are we more than maxScreensAway off-screen any direction?\n // if so, clip to this box, but in such a way that on-screen\n // drawing is unchanged\n xEdge = (pt[0] < xEdge0) ? xEdge0 : (pt[0] > xEdge1) ? xEdge1 : 0;\n yEdge = (pt[1] < yEdge0) ? yEdge0 : (pt[1] > yEdge1) ? yEdge1 : 0;\n if(xEdge || yEdge) {\n if(!pti) {\n // to get fills right - if first point is far, push it toward the\n // screen in whichever direction(s) are far\n\n pts[pti++] = [xEdge || pt[0], yEdge || pt[1]];\n } else if(lastFarPt) {\n // both this point and the last are outside the nearby region\n // check if we're crossing the nearby region\n var intersections = getEdgeIntersections(lastFarPt, pt);\n if(intersections.length > 1) {\n updateEdgesForReentry(intersections[0]);\n pts[pti++] = intersections[1];\n }\n } else {\n // we're leaving the nearby region - add the point where we left it\n\n edgePt = getEdgeIntersections(pts[pti - 1], pt)[0];\n pts[pti++] = edgePt;\n }\n\n var lastPt = pts[pti - 1];\n if(xEdge && yEdge && (lastPt[0] !== xEdge || lastPt[1] !== yEdge)) {\n // we've gone out beyond a new corner: add the corner too\n // so that the next point will take the right winding\n if(lastFarPt) {\n if(lastXEdge !== xEdge && lastYEdge !== yEdge) {\n if(lastXEdge && lastYEdge) {\n // we've gone around to an opposite corner - we\n // need to add the correct extra corner\n // in order to get the right winding\n updateEdge(getClosestCorner(lastFarPt, pt));\n } else {\n // we're coming from a far edge - the extra corner\n // we need is determined uniquely by the sectors\n updateEdge([lastXEdge || xEdge, lastYEdge || yEdge]);\n }\n } else if(lastXEdge && lastYEdge) {\n updateEdge([lastXEdge, lastYEdge]);\n }\n }\n updateEdge([xEdge, yEdge]);\n } else if((lastXEdge - xEdge) && (lastYEdge - yEdge)) {\n // we're coming from an edge or far corner to an edge - again the\n // extra corner we need is uniquely determined by the sectors\n updateEdge([xEdge || lastXEdge, yEdge || lastYEdge]);\n }\n lastFarPt = pt;\n lastXEdge = xEdge;\n lastYEdge = yEdge;\n } else {\n if(lastFarPt) {\n // this point is in range but the previous wasn't: add its entry pt first\n updateEdgesForReentry(getEdgeIntersections(lastFarPt, pt)[0]);\n }\n\n pts[pti++] = pt;\n }\n }\n\n // loop over ALL points in this trace\n for(i = 0; i < len; i++) {\n clusterStartPt = getPt(i);\n if(!clusterStartPt) continue;\n\n pti = 0;\n lastFarPt = null;\n addPt(clusterStartPt);\n\n // loop over one segment of the trace\n for(i++; i < len; i++) {\n clusterHighPt = getPt(i);\n if(!clusterHighPt) {\n if(connectGaps) continue;\n else break;\n }\n\n // can't decimate if nonlinear line shape\n // TODO: we *could* decimate [hv]{2,3} shapes if we restricted clusters to horz or vert again\n // but spline would be verrry awkward to decimate\n if(!linear || !opts.simplify) {\n addPt(clusterHighPt);\n continue;\n }\n\n var nextPt = getPt(i + 1);\n\n clusterRefDist = ptDist(clusterHighPt, clusterStartPt);\n\n // #3147 - always include the very first and last points for fills\n if(!(fill && (pti === 0 || pti === len - 1)) &&\n clusterRefDist < getTolerance(clusterHighPt, nextPt) * minTolerance) continue;\n\n clusterUnitVector = [\n (clusterHighPt[0] - clusterStartPt[0]) / clusterRefDist,\n (clusterHighPt[1] - clusterStartPt[1]) / clusterRefDist\n ];\n\n clusterLowPt = clusterStartPt;\n clusterHighVal = clusterRefDist;\n clusterLowVal = clusterMinDeviation = clusterMaxDeviation = 0;\n clusterHighFirst = false;\n clusterEndPt = clusterHighPt;\n\n // loop over one cluster of points that collapse onto one line\n for(i++; i < d.length; i++) {\n thisPt = nextPt;\n nextPt = getPt(i + 1);\n if(!thisPt) {\n if(connectGaps) continue;\n else break;\n }\n thisVector = [\n thisPt[0] - clusterStartPt[0],\n thisPt[1] - clusterStartPt[1]\n ];\n // cross product (or dot with normal to the cluster vector)\n thisDeviation = thisVector[0] * clusterUnitVector[1] - thisVector[1] * clusterUnitVector[0];\n clusterMinDeviation = Math.min(clusterMinDeviation, thisDeviation);\n clusterMaxDeviation = Math.max(clusterMaxDeviation, thisDeviation);\n\n if(clusterMaxDeviation - clusterMinDeviation > getTolerance(thisPt, nextPt)) break;\n\n clusterEndPt = thisPt;\n thisVal = thisVector[0] * clusterUnitVector[0] + thisVector[1] * clusterUnitVector[1];\n\n if(thisVal > clusterHighVal) {\n clusterHighVal = thisVal;\n clusterHighPt = thisPt;\n clusterHighFirst = false;\n } else if(thisVal < clusterLowVal) {\n clusterLowVal = thisVal;\n clusterLowPt = thisPt;\n clusterHighFirst = true;\n }\n }\n\n // insert this cluster into pts\n // we've already inserted the start pt, now check if we have high and low pts\n if(clusterHighFirst) {\n addPt(clusterHighPt);\n if(clusterEndPt !== clusterLowPt) addPt(clusterLowPt);\n } else {\n if(clusterLowPt !== clusterStartPt) addPt(clusterLowPt);\n if(clusterEndPt !== clusterHighPt) addPt(clusterHighPt);\n }\n // and finally insert the end pt\n addPt(clusterEndPt);\n\n // have we reached the end of this segment?\n if(i >= d.length || !thisPt) break;\n\n // otherwise we have an out-of-cluster point to insert as next clusterStartPt\n addPt(thisPt);\n clusterStartPt = thisPt;\n }\n\n // to get fills right - repeat what we did at the start\n if(lastFarPt) updateEdge([lastXEdge || lastFarPt[0], lastYEdge || lastFarPt[1]]);\n\n segments.push(pts.slice(0, pti));\n }\n\n return segments;\n};\n\n},{\"../../constants/numerical\":479,\"../../lib\":503,\"./constants\":929}],940:[function(_dereq_,module,exports){\n'use strict';\n\n\n// common to 'scatter' and 'scatterternary'\nmodule.exports = function handleLineShapeDefaults(traceIn, traceOut, coerce) {\n var shape = coerce('line.shape');\n if(shape === 'spline') coerce('line.smoothing');\n};\n\n},{}],941:[function(_dereq_,module,exports){\n'use strict';\n\nvar LINKEDFILLS = {tonextx: 1, tonexty: 1, tonext: 1};\n\nmodule.exports = function linkTraces(gd, plotinfo, cdscatter) {\n var trace, i, group, prevtrace, groupIndex;\n\n // first sort traces to keep stacks & filled-together groups together\n var groupIndices = {};\n var needsSort = false;\n var prevGroupIndex = -1;\n var nextGroupIndex = 0;\n var prevUnstackedGroupIndex = -1;\n for(i = 0; i < cdscatter.length; i++) {\n trace = cdscatter[i][0].trace;\n group = trace.stackgroup || '';\n if(group) {\n if(group in groupIndices) {\n groupIndex = groupIndices[group];\n } else {\n groupIndex = groupIndices[group] = nextGroupIndex;\n nextGroupIndex++;\n }\n } else if(trace.fill in LINKEDFILLS && prevUnstackedGroupIndex >= 0) {\n groupIndex = prevUnstackedGroupIndex;\n } else {\n groupIndex = prevUnstackedGroupIndex = nextGroupIndex;\n nextGroupIndex++;\n }\n\n if(groupIndex < prevGroupIndex) needsSort = true;\n trace._groupIndex = prevGroupIndex = groupIndex;\n }\n\n var cdscatterSorted = cdscatter.slice();\n if(needsSort) {\n cdscatterSorted.sort(function(a, b) {\n var traceA = a[0].trace;\n var traceB = b[0].trace;\n return (traceA._groupIndex - traceB._groupIndex) ||\n (traceA.index - traceB.index);\n });\n }\n\n // now link traces to each other\n var prevtraces = {};\n for(i = 0; i < cdscatterSorted.length; i++) {\n trace = cdscatterSorted[i][0].trace;\n group = trace.stackgroup || '';\n\n // Note: The check which ensures all cdscatter here are for the same axis and\n // are either cartesian or scatterternary has been removed. This code assumes\n // the passed scattertraces have been filtered to the proper plot types and\n // the proper subplots.\n if(trace.visible === true) {\n trace._nexttrace = null;\n\n if(trace.fill in LINKEDFILLS) {\n prevtrace = prevtraces[group];\n trace._prevtrace = prevtrace || null;\n\n if(prevtrace) {\n prevtrace._nexttrace = trace;\n }\n }\n\n trace._ownfill = (trace.fill && (\n trace.fill.substr(0, 6) === 'tozero' ||\n trace.fill === 'toself' ||\n (trace.fill.substr(0, 2) === 'to' && !trace._prevtrace)\n ));\n\n prevtraces[group] = trace;\n } else {\n trace._prevtrace = trace._nexttrace = trace._ownfill = null;\n }\n }\n\n return cdscatterSorted;\n};\n\n},{}],942:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\n\n// used in the drawing step for 'scatter' and 'scattegeo' and\n// in the convert step for 'scatter3d'\nmodule.exports = function makeBubbleSizeFn(trace, factor) {\n if(!factor) {\n factor = 2;\n }\n var marker = trace.marker;\n var sizeRef = marker.sizeref || 1;\n var sizeMin = marker.sizemin || 0;\n\n // for bubble charts, allow scaling the provided value linearly\n // and by area or diameter.\n // Note this only applies to the array-value sizes\n\n var baseFn = (marker.sizemode === 'area') ?\n function(v) { return Math.sqrt(v / sizeRef); } :\n function(v) { return v / sizeRef; };\n\n // TODO add support for position/negative bubbles?\n // TODO add 'sizeoffset' attribute?\n return function(v) {\n var baseSize = baseFn(v / factor);\n\n // don't show non-numeric and negative sizes\n return (isNumeric(baseSize) && (baseSize > 0)) ?\n Math.max(baseSize, sizeMin) :\n 0;\n };\n};\n\n},{\"fast-isnumeric\":190}],943:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n container: 'marker',\n min: 'cmin',\n max: 'cmax'\n};\n\n},{}],944:[function(_dereq_,module,exports){\n'use strict';\n\nvar Color = _dereq_('../../components/color');\nvar hasColorscale = _dereq_('../../components/colorscale/helpers').hasColorscale;\nvar colorscaleDefaults = _dereq_('../../components/colorscale/defaults');\n\nvar subTypes = _dereq_('./subtypes');\n\n/*\n * opts: object of flags to control features not all marker users support\n * noLine: caller does not support marker lines\n * gradient: caller supports gradients\n * noSelect: caller does not support selected/unselected attribute containers\n */\nmodule.exports = function markerDefaults(traceIn, traceOut, defaultColor, layout, coerce, opts) {\n var isBubble = subTypes.isBubble(traceIn);\n var lineColor = (traceIn.line || {}).color;\n var defaultMLC;\n\n opts = opts || {};\n\n // marker.color inherit from line.color (even if line.color is an array)\n if(lineColor) defaultColor = lineColor;\n\n coerce('marker.symbol');\n coerce('marker.opacity', isBubble ? 0.7 : 1);\n coerce('marker.size');\n\n coerce('marker.color', defaultColor);\n if(hasColorscale(traceIn, 'marker')) {\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: 'marker.', cLetter: 'c'});\n }\n\n if(!opts.noSelect) {\n coerce('selected.marker.color');\n coerce('unselected.marker.color');\n coerce('selected.marker.size');\n coerce('unselected.marker.size');\n }\n\n if(!opts.noLine) {\n // if there's a line with a different color than the marker, use\n // that line color as the default marker line color\n // (except when it's an array)\n // mostly this is for transparent markers to behave nicely\n if(lineColor && !Array.isArray(lineColor) && (traceOut.marker.color !== lineColor)) {\n defaultMLC = lineColor;\n } else if(isBubble) defaultMLC = Color.background;\n else defaultMLC = Color.defaultLine;\n\n coerce('marker.line.color', defaultMLC);\n if(hasColorscale(traceIn, 'marker.line')) {\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: 'marker.line.', cLetter: 'c'});\n }\n\n coerce('marker.line.width', isBubble ? 1 : 0);\n }\n\n if(isBubble) {\n coerce('marker.sizeref');\n coerce('marker.sizemin');\n coerce('marker.sizemode');\n }\n\n if(opts.gradient) {\n var gradientType = coerce('marker.gradient.type');\n if(gradientType !== 'none') {\n coerce('marker.gradient.color');\n }\n }\n};\n\n},{\"../../components/color\":366,\"../../components/colorscale/defaults\":376,\"../../components/colorscale/helpers\":377,\"./subtypes\":950}],945:[function(_dereq_,module,exports){\n'use strict';\n\nvar dateTick0 = _dereq_('../../lib').dateTick0;\nvar numConstants = _dereq_('../../constants/numerical');\nvar ONEWEEK = numConstants.ONEWEEK;\n\nfunction getPeriod0Dflt(period, calendar) {\n if(period % ONEWEEK === 0) {\n return dateTick0(calendar, 1); // Sunday\n }\n return dateTick0(calendar, 0);\n}\n\nmodule.exports = function handlePeriodDefaults(traceIn, traceOut, layout, coerce, opts) {\n if(!opts) {\n opts = {\n x: true,\n y: true\n };\n }\n\n if(opts.x) {\n var xperiod = coerce('xperiod');\n if(xperiod) {\n coerce('xperiod0', getPeriod0Dflt(xperiod, traceOut.xcalendar));\n coerce('xperiodalignment');\n }\n }\n\n if(opts.y) {\n var yperiod = coerce('yperiod');\n if(yperiod) {\n coerce('yperiod0', getPeriod0Dflt(yperiod, traceOut.ycalendar));\n coerce('yperiodalignment');\n }\n }\n};\n\n},{\"../../constants/numerical\":479,\"../../lib\":503}],946:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar ensureSingle = Lib.ensureSingle;\nvar identity = Lib.identity;\nvar Drawing = _dereq_('../../components/drawing');\n\nvar subTypes = _dereq_('./subtypes');\nvar linePoints = _dereq_('./line_points');\nvar linkTraces = _dereq_('./link_traces');\nvar polygonTester = _dereq_('../../lib/polygon').tester;\n\nmodule.exports = function plot(gd, plotinfo, cdscatter, scatterLayer, transitionOpts, makeOnCompleteCallback) {\n var join, onComplete;\n\n // If transition config is provided, then it is only a partial replot and traces not\n // updated are removed.\n var isFullReplot = !transitionOpts;\n var hasTransition = !!transitionOpts && transitionOpts.duration > 0;\n\n // Link traces so the z-order of fill layers is correct\n var cdscatterSorted = linkTraces(gd, plotinfo, cdscatter);\n\n join = scatterLayer.selectAll('g.trace')\n .data(cdscatterSorted, function(d) { return d[0].trace.uid; });\n\n // Append new traces:\n join.enter().append('g')\n .attr('class', function(d) {\n return 'trace scatter trace' + d[0].trace.uid;\n })\n .style('stroke-miterlimit', 2);\n join.order();\n\n createFills(gd, join, plotinfo);\n\n if(hasTransition) {\n if(makeOnCompleteCallback) {\n // If it was passed a callback to register completion, make a callback. If\n // this is created, then it must be executed on completion, otherwise the\n // pos-transition redraw will not execute:\n onComplete = makeOnCompleteCallback();\n }\n\n var transition = d3.transition()\n .duration(transitionOpts.duration)\n .ease(transitionOpts.easing)\n .each('end', function() {\n onComplete && onComplete();\n })\n .each('interrupt', function() {\n onComplete && onComplete();\n });\n\n transition.each(function() {\n // Must run the selection again since otherwise enters/updates get grouped together\n // and these get executed out of order. Except we need them in order!\n scatterLayer.selectAll('g.trace').each(function(d, i) {\n plotOne(gd, i, plotinfo, d, cdscatterSorted, this, transitionOpts);\n });\n });\n } else {\n join.each(function(d, i) {\n plotOne(gd, i, plotinfo, d, cdscatterSorted, this, transitionOpts);\n });\n }\n\n if(isFullReplot) {\n join.exit().remove();\n }\n\n // remove paths that didn't get used\n scatterLayer.selectAll('path:not([d])').remove();\n};\n\nfunction createFills(gd, traceJoin, plotinfo) {\n traceJoin.each(function(d) {\n var fills = ensureSingle(d3.select(this), 'g', 'fills');\n Drawing.setClipUrl(fills, plotinfo.layerClipId, gd);\n\n var trace = d[0].trace;\n\n var fillData = [];\n if(trace._ownfill) fillData.push('_ownFill');\n if(trace._nexttrace) fillData.push('_nextFill');\n\n var fillJoin = fills.selectAll('g').data(fillData, identity);\n\n fillJoin.enter().append('g');\n\n fillJoin.exit()\n .each(function(d) { trace[d] = null; })\n .remove();\n\n fillJoin.order().each(function(d) {\n // make a path element inside the fill group, just so\n // we can give it its own data later on and the group can\n // keep its simple '_*Fill' data\n trace[d] = ensureSingle(d3.select(this), 'path', 'js-fill');\n });\n });\n}\n\nfunction plotOne(gd, idx, plotinfo, cdscatter, cdscatterAll, element, transitionOpts) {\n var i;\n\n // Since this has been reorganized and we're executing this on individual traces,\n // we need to pass it the full list of cdscatter as well as this trace's index (idx)\n // since it does an internal n^2 loop over comparisons with other traces:\n selectMarkers(gd, idx, plotinfo, cdscatter, cdscatterAll);\n\n var hasTransition = !!transitionOpts && transitionOpts.duration > 0;\n\n function transition(selection) {\n return hasTransition ? selection.transition() : selection;\n }\n\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n\n var trace = cdscatter[0].trace;\n var line = trace.line;\n var tr = d3.select(element);\n\n var errorBarGroup = ensureSingle(tr, 'g', 'errorbars');\n var lines = ensureSingle(tr, 'g', 'lines');\n var points = ensureSingle(tr, 'g', 'points');\n var text = ensureSingle(tr, 'g', 'text');\n\n // error bars are at the bottom\n Registry.getComponentMethod('errorbars', 'plot')(gd, errorBarGroup, plotinfo, transitionOpts);\n\n if(trace.visible !== true) return;\n\n transition(tr).style('opacity', trace.opacity);\n\n // BUILD LINES AND FILLS\n var ownFillEl3, tonext;\n var ownFillDir = trace.fill.charAt(trace.fill.length - 1);\n if(ownFillDir !== 'x' && ownFillDir !== 'y') ownFillDir = '';\n\n // store node for tweaking by selectPoints\n cdscatter[0][plotinfo.isRangePlot ? 'nodeRangePlot3' : 'node3'] = tr;\n\n var prevRevpath = '';\n var prevPolygons = [];\n var prevtrace = trace._prevtrace;\n\n if(prevtrace) {\n prevRevpath = prevtrace._prevRevpath || '';\n tonext = prevtrace._nextFill;\n prevPolygons = prevtrace._polygons;\n }\n\n var thispath;\n var thisrevpath;\n // fullpath is all paths for this curve, joined together straight\n // across gaps, for filling\n var fullpath = '';\n // revpath is fullpath reversed, for fill-to-next\n var revpath = '';\n // functions for converting a point array to a path\n var pathfn, revpathbase, revpathfn;\n // variables used before and after the data join\n var pt0, lastSegment, pt1, thisPolygons;\n\n // initialize line join data / method\n var segments = [];\n var makeUpdate = Lib.noop;\n\n ownFillEl3 = trace._ownFill;\n\n if(subTypes.hasLines(trace) || trace.fill !== 'none') {\n if(tonext) {\n // This tells .style which trace to use for fill information:\n tonext.datum(cdscatter);\n }\n\n if(['hv', 'vh', 'hvh', 'vhv'].indexOf(line.shape) !== -1) {\n pathfn = Drawing.steps(line.shape);\n revpathbase = Drawing.steps(\n line.shape.split('').reverse().join('')\n );\n } else if(line.shape === 'spline') {\n pathfn = revpathbase = function(pts) {\n var pLast = pts[pts.length - 1];\n if(pts.length > 1 && pts[0][0] === pLast[0] && pts[0][1] === pLast[1]) {\n // identical start and end points: treat it as a\n // closed curve so we don't get a kink\n return Drawing.smoothclosed(pts.slice(1), line.smoothing);\n } else {\n return Drawing.smoothopen(pts, line.smoothing);\n }\n };\n } else {\n pathfn = revpathbase = function(pts) {\n return 'M' + pts.join('L');\n };\n }\n\n revpathfn = function(pts) {\n // note: this is destructive (reverses pts in place) so can't use pts after this\n return revpathbase(pts.reverse());\n };\n\n segments = linePoints(cdscatter, {\n xaxis: xa,\n yaxis: ya,\n connectGaps: trace.connectgaps,\n baseTolerance: Math.max(line.width || 1, 3) / 4,\n shape: line.shape,\n simplify: line.simplify,\n fill: trace.fill\n });\n\n // since we already have the pixel segments here, use them to make\n // polygons for hover on fill\n // TODO: can we skip this if hoveron!=fills? That would mean we\n // need to redraw when you change hoveron...\n thisPolygons = trace._polygons = new Array(segments.length);\n for(i = 0; i < segments.length; i++) {\n trace._polygons[i] = polygonTester(segments[i]);\n }\n\n if(segments.length) {\n pt0 = segments[0][0];\n lastSegment = segments[segments.length - 1];\n pt1 = lastSegment[lastSegment.length - 1];\n }\n\n makeUpdate = function(isEnter) {\n return function(pts) {\n thispath = pathfn(pts);\n thisrevpath = revpathfn(pts);\n if(!fullpath) {\n fullpath = thispath;\n revpath = thisrevpath;\n } else if(ownFillDir) {\n fullpath += 'L' + thispath.substr(1);\n revpath = thisrevpath + ('L' + revpath.substr(1));\n } else {\n fullpath += 'Z' + thispath;\n revpath = thisrevpath + 'Z' + revpath;\n }\n\n if(subTypes.hasLines(trace) && pts.length > 1) {\n var el = d3.select(this);\n\n // This makes the coloring work correctly:\n el.datum(cdscatter);\n\n if(isEnter) {\n transition(el.style('opacity', 0)\n .attr('d', thispath)\n .call(Drawing.lineGroupStyle))\n .style('opacity', 1);\n } else {\n var sel = transition(el);\n sel.attr('d', thispath);\n Drawing.singleLineStyle(cdscatter, sel);\n }\n }\n };\n };\n }\n\n var lineJoin = lines.selectAll('.js-line').data(segments);\n\n transition(lineJoin.exit())\n .style('opacity', 0)\n .remove();\n\n lineJoin.each(makeUpdate(false));\n\n lineJoin.enter().append('path')\n .classed('js-line', true)\n .style('vector-effect', 'non-scaling-stroke')\n .call(Drawing.lineGroupStyle)\n .each(makeUpdate(true));\n\n Drawing.setClipUrl(lineJoin, plotinfo.layerClipId, gd);\n\n function clearFill(selection) {\n transition(selection).attr('d', 'M0,0Z');\n }\n\n if(segments.length) {\n if(ownFillEl3) {\n ownFillEl3.datum(cdscatter);\n if(pt0 && pt1) {\n if(ownFillDir) {\n if(ownFillDir === 'y') {\n pt0[1] = pt1[1] = ya.c2p(0, true);\n } else if(ownFillDir === 'x') {\n pt0[0] = pt1[0] = xa.c2p(0, true);\n }\n\n // fill to zero: full trace path, plus extension of\n // the endpoints to the appropriate axis\n // For the sake of animations, wrap the points around so that\n // the points on the axes are the first two points. Otherwise\n // animations get a little crazy if the number of points changes.\n transition(ownFillEl3).attr('d', 'M' + pt1 + 'L' + pt0 + 'L' + fullpath.substr(1))\n .call(Drawing.singleFillStyle);\n } else {\n // fill to self: just join the path to itself\n transition(ownFillEl3).attr('d', fullpath + 'Z')\n .call(Drawing.singleFillStyle);\n }\n }\n } else if(tonext) {\n if(trace.fill.substr(0, 6) === 'tonext' && fullpath && prevRevpath) {\n // fill to next: full trace path, plus the previous path reversed\n if(trace.fill === 'tonext') {\n // tonext: for use by concentric shapes, like manually constructed\n // contours, we just add the two paths closed on themselves.\n // This makes strange results if one path is *not* entirely\n // inside the other, but then that is a strange usage.\n transition(tonext).attr('d', fullpath + 'Z' + prevRevpath + 'Z')\n .call(Drawing.singleFillStyle);\n } else {\n // tonextx/y: for now just connect endpoints with lines. This is\n // the correct behavior if the endpoints are at the same value of\n // y/x, but if they *aren't*, we should ideally do more complicated\n // things depending on whether the new endpoint projects onto the\n // existing curve or off the end of it\n transition(tonext).attr('d', fullpath + 'L' + prevRevpath.substr(1) + 'Z')\n .call(Drawing.singleFillStyle);\n }\n trace._polygons = trace._polygons.concat(prevPolygons);\n } else {\n clearFill(tonext);\n trace._polygons = null;\n }\n }\n trace._prevRevpath = revpath;\n trace._prevPolygons = thisPolygons;\n } else {\n if(ownFillEl3) clearFill(ownFillEl3);\n else if(tonext) clearFill(tonext);\n trace._polygons = trace._prevRevpath = trace._prevPolygons = null;\n }\n\n\n function visFilter(d) {\n return d.filter(function(v) { return !v.gap && v.vis; });\n }\n\n function visFilterWithGaps(d) {\n return d.filter(function(v) { return v.vis; });\n }\n\n function gapFilter(d) {\n return d.filter(function(v) { return !v.gap; });\n }\n\n function keyFunc(d) {\n return d.id;\n }\n\n // Returns a function if the trace is keyed, otherwise returns undefined\n function getKeyFunc(trace) {\n if(trace.ids) {\n return keyFunc;\n }\n }\n\n function hideFilter() {\n return false;\n }\n\n function makePoints(points, text, cdscatter) {\n var join, selection, hasNode;\n\n var trace = cdscatter[0].trace;\n var showMarkers = subTypes.hasMarkers(trace);\n var showText = subTypes.hasText(trace);\n\n var keyFunc = getKeyFunc(trace);\n var markerFilter = hideFilter;\n var textFilter = hideFilter;\n\n if(showMarkers || showText) {\n var showFilter = identity;\n // if we're stacking, \"infer zero\" gap mode gets markers in the\n // gap points - because we've inferred a zero there - but other\n // modes (currently \"interpolate\", later \"interrupt\" hopefully)\n // we don't draw generated markers\n var stackGroup = trace.stackgroup;\n var isInferZero = stackGroup && (\n gd._fullLayout._scatterStackOpts[xa._id + ya._id][stackGroup].stackgaps === 'infer zero');\n if(trace.marker.maxdisplayed || trace._needsCull) {\n showFilter = isInferZero ? visFilterWithGaps : visFilter;\n } else if(stackGroup && !isInferZero) {\n showFilter = gapFilter;\n }\n\n if(showMarkers) markerFilter = showFilter;\n if(showText) textFilter = showFilter;\n }\n\n // marker points\n\n selection = points.selectAll('path.point');\n\n join = selection.data(markerFilter, keyFunc);\n\n var enter = join.enter().append('path')\n .classed('point', true);\n\n if(hasTransition) {\n enter\n .call(Drawing.pointStyle, trace, gd)\n .call(Drawing.translatePoints, xa, ya)\n .style('opacity', 0)\n .transition()\n .style('opacity', 1);\n }\n\n join.order();\n\n var styleFns;\n if(showMarkers) {\n styleFns = Drawing.makePointStyleFns(trace);\n }\n\n join.each(function(d) {\n var el = d3.select(this);\n var sel = transition(el);\n hasNode = Drawing.translatePoint(d, sel, xa, ya);\n\n if(hasNode) {\n Drawing.singlePointStyle(d, sel, trace, styleFns, gd);\n\n if(plotinfo.layerClipId) {\n Drawing.hideOutsideRangePoint(d, sel, xa, ya, trace.xcalendar, trace.ycalendar);\n }\n\n if(trace.customdata) {\n el.classed('plotly-customdata', d.data !== null && d.data !== undefined);\n }\n } else {\n sel.remove();\n }\n });\n\n if(hasTransition) {\n join.exit().transition()\n .style('opacity', 0)\n .remove();\n } else {\n join.exit().remove();\n }\n\n // text points\n selection = text.selectAll('g');\n join = selection.data(textFilter, keyFunc);\n\n // each text needs to go in its own 'g' in case\n // it gets converted to mathjax\n join.enter().append('g').classed('textpoint', true).append('text');\n\n join.order();\n\n join.each(function(d) {\n var g = d3.select(this);\n var sel = transition(g.select('text'));\n hasNode = Drawing.translatePoint(d, sel, xa, ya);\n\n if(hasNode) {\n if(plotinfo.layerClipId) {\n Drawing.hideOutsideRangePoint(d, g, xa, ya, trace.xcalendar, trace.ycalendar);\n }\n } else {\n g.remove();\n }\n });\n\n join.selectAll('text')\n .call(Drawing.textPointStyle, trace, gd)\n .each(function(d) {\n // This just *has* to be totally custom because of SVG text positioning :(\n // It's obviously copied from translatePoint; we just can't use that\n var x = xa.c2p(d.x);\n var y = ya.c2p(d.y);\n\n d3.select(this).selectAll('tspan.line').each(function() {\n transition(d3.select(this)).attr({x: x, y: y});\n });\n });\n\n join.exit().remove();\n }\n\n points.datum(cdscatter);\n text.datum(cdscatter);\n makePoints(points, text, cdscatter);\n\n // lastly, clip points groups of `cliponaxis !== false` traces\n // on `plotinfo._hasClipOnAxisFalse === true` subplots\n var hasClipOnAxisFalse = trace.cliponaxis === false;\n var clipUrl = hasClipOnAxisFalse ? null : plotinfo.layerClipId;\n Drawing.setClipUrl(points, clipUrl, gd);\n Drawing.setClipUrl(text, clipUrl, gd);\n}\n\nfunction selectMarkers(gd, idx, plotinfo, cdscatter, cdscatterAll) {\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n var xr = d3.extent(Lib.simpleMap(xa.range, xa.r2c));\n var yr = d3.extent(Lib.simpleMap(ya.range, ya.r2c));\n\n var trace = cdscatter[0].trace;\n if(!subTypes.hasMarkers(trace)) return;\n // if marker.maxdisplayed is used, select a maximum of\n // mnum markers to show, from the set that are in the viewport\n var mnum = trace.marker.maxdisplayed;\n\n // TODO: remove some as we get away from the viewport?\n if(mnum === 0) return;\n\n var cd = cdscatter.filter(function(v) {\n return v.x >= xr[0] && v.x <= xr[1] && v.y >= yr[0] && v.y <= yr[1];\n });\n var inc = Math.ceil(cd.length / mnum);\n var tnum = 0;\n cdscatterAll.forEach(function(cdj, j) {\n var tracei = cdj[0].trace;\n if(subTypes.hasMarkers(tracei) &&\n tracei.marker.maxdisplayed > 0 && j < idx) {\n tnum++;\n }\n });\n\n // if multiple traces use maxdisplayed, stagger which markers we\n // display this formula offsets successive traces by 1/3 of the\n // increment, adding an extra small amount after each triplet so\n // it's not quite periodic\n var i0 = Math.round(tnum * inc / 3 + Math.floor(tnum / 3) * inc / 7.1);\n\n // for error bars: save in cd which markers to show\n // so we don't have to repeat this\n cdscatter.forEach(function(v) { delete v.vis; });\n cd.forEach(function(v, i) {\n if(Math.round((i + i0) % inc) === 0) v.vis = true;\n });\n}\n\n},{\"../../components/drawing\":388,\"../../lib\":503,\"../../lib/polygon\":515,\"../../registry\":638,\"./line_points\":939,\"./link_traces\":941,\"./subtypes\":950,\"@plotly/d3\":58}],947:[function(_dereq_,module,exports){\n'use strict';\n\nvar subtypes = _dereq_('./subtypes');\n\nmodule.exports = function selectPoints(searchInfo, selectionTester) {\n var cd = searchInfo.cd;\n var xa = searchInfo.xaxis;\n var ya = searchInfo.yaxis;\n var selection = [];\n var trace = cd[0].trace;\n var i;\n var di;\n var x;\n var y;\n\n var hasOnlyLines = (!subtypes.hasMarkers(trace) && !subtypes.hasText(trace));\n if(hasOnlyLines) return [];\n\n if(selectionTester === false) { // clear selection\n for(i = 0; i < cd.length; i++) {\n cd[i].selected = 0;\n }\n } else {\n for(i = 0; i < cd.length; i++) {\n di = cd[i];\n x = xa.c2p(di.x);\n y = ya.c2p(di.y);\n\n if((di.i !== null) && selectionTester.contains([x, y], false, i, searchInfo)) {\n selection.push({\n pointNumber: di.i,\n x: xa.c2d(di.x),\n y: ya.c2d(di.y)\n });\n di.selected = 1;\n } else {\n di.selected = 0;\n }\n }\n }\n\n return selection;\n};\n\n},{\"./subtypes\":950}],948:[function(_dereq_,module,exports){\n'use strict';\n\nvar perStackAttrs = ['orientation', 'groupnorm', 'stackgaps'];\n\nmodule.exports = function handleStackDefaults(traceIn, traceOut, layout, coerce) {\n var stackOpts = layout._scatterStackOpts;\n\n var stackGroup = coerce('stackgroup');\n if(stackGroup) {\n // use independent stacking options per subplot\n var subplot = traceOut.xaxis + traceOut.yaxis;\n var subplotStackOpts = stackOpts[subplot];\n if(!subplotStackOpts) subplotStackOpts = stackOpts[subplot] = {};\n\n var groupOpts = subplotStackOpts[stackGroup];\n var firstTrace = false;\n if(groupOpts) {\n groupOpts.traces.push(traceOut);\n } else {\n groupOpts = subplotStackOpts[stackGroup] = {\n // keep track of trace indices for use during stacking calculations\n // this will be filled in during `calc` and used during `crossTraceCalc`\n // so it's OK if we don't recreate it during a non-calc edit\n traceIndices: [],\n // Hold on to the whole set of prior traces\n // First one is most important, so we can clear defaults\n // there if we find explicit values only in later traces.\n // We're only going to *use* the values stored in groupOpts,\n // but for the editor and validate we want things self-consistent\n // The full set of traces is used only to fix `fill` default if\n // we find `orientation: 'h'` beyond the first trace\n traces: [traceOut]\n };\n firstTrace = true;\n }\n // TODO: how is this going to work with groupby transforms?\n // in principle it should be OK I guess, as long as explicit group styles\n // don't override explicit base-trace styles?\n\n var dflts = {\n orientation: (traceOut.x && !traceOut.y) ? 'h' : 'v'\n };\n\n for(var i = 0; i < perStackAttrs.length; i++) {\n var attr = perStackAttrs[i];\n var attrFound = attr + 'Found';\n if(!groupOpts[attrFound]) {\n var traceHasAttr = traceIn[attr] !== undefined;\n var isOrientation = attr === 'orientation';\n if(traceHasAttr || firstTrace) {\n groupOpts[attr] = coerce(attr, dflts[attr]);\n\n if(isOrientation) {\n groupOpts.fillDflt = groupOpts[attr] === 'h' ?\n 'tonextx' : 'tonexty';\n }\n\n if(traceHasAttr) {\n // Note: this will show a value here even if it's invalid\n // in which case it will revert to default.\n groupOpts[attrFound] = true;\n\n // Note: only one trace in the stack will get a _fullData\n // entry for a given stack-wide attribute. If no traces\n // (or the first trace) specify that attribute, the\n // first trace will get it. If the first trace does NOT\n // specify it but some later trace does, then it gets\n // removed from the first trace and only included in the\n // one that specified it. This is mostly important for\n // editors (that want to see the full values to know\n // what settings are available) and Plotly.react diffing.\n // Editors may want to use fullLayout._scatterStackOpts\n // directly and make these settings available from all\n // traces in the stack... then set the new value into\n // the first trace, and clear all later traces.\n if(!firstTrace) {\n delete groupOpts.traces[0][attr];\n\n // orientation can affect default fill of previous traces\n if(isOrientation) {\n for(var j = 0; j < groupOpts.traces.length - 1; j++) {\n var trace2 = groupOpts.traces[j];\n if(trace2._input.fill !== trace2.fill) {\n trace2.fill = groupOpts.fillDflt;\n }\n }\n }\n }\n }\n }\n }\n }\n return groupOpts;\n }\n};\n\n},{}],949:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Drawing = _dereq_('../../components/drawing');\nvar Registry = _dereq_('../../registry');\n\nfunction style(gd) {\n var s = d3.select(gd).selectAll('g.trace.scatter');\n\n s.style('opacity', function(d) {\n return d[0].trace.opacity;\n });\n\n s.selectAll('g.points').each(function(d) {\n var sel = d3.select(this);\n var trace = d.trace || d[0].trace;\n stylePoints(sel, trace, gd);\n });\n\n s.selectAll('g.text').each(function(d) {\n var sel = d3.select(this);\n var trace = d.trace || d[0].trace;\n styleText(sel, trace, gd);\n });\n\n s.selectAll('g.trace path.js-line')\n .call(Drawing.lineGroupStyle);\n\n s.selectAll('g.trace path.js-fill')\n .call(Drawing.fillGroupStyle);\n\n Registry.getComponentMethod('errorbars', 'style')(s);\n}\n\nfunction stylePoints(sel, trace, gd) {\n Drawing.pointStyle(sel.selectAll('path.point'), trace, gd);\n}\n\nfunction styleText(sel, trace, gd) {\n Drawing.textPointStyle(sel.selectAll('text'), trace, gd);\n}\n\nfunction styleOnSelect(gd, cd, sel) {\n var trace = cd[0].trace;\n\n if(trace.selectedpoints) {\n Drawing.selectedPointStyle(sel.selectAll('path.point'), trace);\n Drawing.selectedTextStyle(sel.selectAll('text'), trace);\n } else {\n stylePoints(sel, trace, gd);\n styleText(sel, trace, gd);\n }\n}\n\nmodule.exports = {\n style: style,\n stylePoints: stylePoints,\n styleText: styleText,\n styleOnSelect: styleOnSelect\n};\n\n},{\"../../components/drawing\":388,\"../../registry\":638,\"@plotly/d3\":58}],950:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nmodule.exports = {\n hasLines: function(trace) {\n return trace.visible && trace.mode &&\n trace.mode.indexOf('lines') !== -1;\n },\n\n hasMarkers: function(trace) {\n return trace.visible && (\n (trace.mode && trace.mode.indexOf('markers') !== -1) ||\n // until splom implements 'mode'\n trace.type === 'splom'\n );\n },\n\n hasText: function(trace) {\n return trace.visible && trace.mode &&\n trace.mode.indexOf('text') !== -1;\n },\n\n isBubble: function(trace) {\n return Lib.isPlainObject(trace.marker) &&\n Lib.isArrayOrTypedArray(trace.marker.size);\n }\n};\n\n},{\"../../lib\":503}],951:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\n/*\n * opts: object of flags to control features not all text users support\n * noSelect: caller does not support selected/unselected attribute containers\n */\nmodule.exports = function(traceIn, traceOut, layout, coerce, opts) {\n opts = opts || {};\n\n coerce('textposition');\n Lib.coerceFont(coerce, 'textfont', layout.font);\n\n if(!opts.noSelect) {\n coerce('selected.textfont.color');\n coerce('unselected.textfont.color');\n }\n};\n\n},{\"../../lib\":503}],952:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Registry = _dereq_('../../registry');\n\nmodule.exports = function handleXYDefaults(traceIn, traceOut, layout, coerce) {\n var x = coerce('x');\n var y = coerce('y');\n var len;\n\n var handleCalendarDefaults = Registry.getComponentMethod('calendars', 'handleTraceDefaults');\n handleCalendarDefaults(traceIn, traceOut, ['x', 'y'], layout);\n\n if(x) {\n var xlen = Lib.minRowLength(x);\n if(y) {\n len = Math.min(xlen, Lib.minRowLength(y));\n } else {\n len = xlen;\n coerce('y0');\n coerce('dy');\n }\n } else {\n if(!y) return 0;\n\n len = Lib.minRowLength(y);\n coerce('x0');\n coerce('dx');\n }\n\n traceOut._length = len;\n\n return len;\n};\n\n},{\"../../lib\":503,\"../../registry\":638}],953:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterAttrs = _dereq_('../scatter/attributes');\nvar colorAttributes = _dereq_('../../components/colorscale/attributes');\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar DASHES = _dereq_('../../constants/gl3d_dashes');\n\nvar MARKER_SYMBOLS = _dereq_('../../constants/gl3d_markers');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\nvar sortObjectKeys = _dereq_('../../lib/sort_object_keys');\n\nvar scatterLineAttrs = scatterAttrs.line;\nvar scatterMarkerAttrs = scatterAttrs.marker;\nvar scatterMarkerLineAttrs = scatterMarkerAttrs.line;\n\nvar lineAttrs = extendFlat({\n width: scatterLineAttrs.width,\n dash: {\n valType: 'enumerated',\n values: sortObjectKeys(DASHES),\n dflt: 'solid',\n }\n}, colorAttributes('line'));\n\nfunction makeProjectionAttr(axLetter) {\n return {\n show: {\n valType: 'boolean',\n dflt: false,\n },\n opacity: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 1,\n },\n scale: {\n valType: 'number',\n min: 0,\n max: 10,\n dflt: 2 / 3,\n }\n };\n}\n\nvar attrs = module.exports = overrideAll({\n x: scatterAttrs.x,\n y: scatterAttrs.y,\n z: {\n valType: 'data_array',\n },\n\n text: extendFlat({}, scatterAttrs.text, {\n }),\n texttemplate: texttemplateAttrs({}, {\n\n }),\n hovertext: extendFlat({}, scatterAttrs.hovertext, {\n }),\n hovertemplate: hovertemplateAttrs(),\n\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n zhoverformat: axisHoverFormat('z'),\n\n mode: extendFlat({}, scatterAttrs.mode, // shouldn't this be on-par with 2D?\n {dflt: 'lines+markers'}),\n surfaceaxis: {\n valType: 'enumerated',\n values: [-1, 0, 1, 2],\n dflt: -1,\n },\n surfacecolor: {\n valType: 'color',\n },\n projection: {\n x: makeProjectionAttr('x'),\n y: makeProjectionAttr('y'),\n z: makeProjectionAttr('z')\n },\n\n connectgaps: scatterAttrs.connectgaps,\n line: lineAttrs,\n\n marker: extendFlat({ // Parity with scatter.js?\n symbol: {\n valType: 'enumerated',\n values: sortObjectKeys(MARKER_SYMBOLS),\n dflt: 'circle',\n arrayOk: true,\n },\n size: extendFlat({}, scatterMarkerAttrs.size, {dflt: 8}),\n sizeref: scatterMarkerAttrs.sizeref,\n sizemin: scatterMarkerAttrs.sizemin,\n sizemode: scatterMarkerAttrs.sizemode,\n opacity: extendFlat({}, scatterMarkerAttrs.opacity, {\n arrayOk: false,\n }),\n colorbar: scatterMarkerAttrs.colorbar,\n\n line: extendFlat({\n width: extendFlat({}, scatterMarkerLineAttrs.width, {arrayOk: false})\n },\n colorAttributes('marker.line')\n )\n },\n colorAttributes('marker')\n ),\n\n textposition: extendFlat({}, scatterAttrs.textposition, {dflt: 'top center'}),\n textfont: {\n color: scatterAttrs.textfont.color,\n size: scatterAttrs.textfont.size,\n family: extendFlat({}, scatterAttrs.textfont.family, {arrayOk: false})\n },\n\n opacity: baseAttrs.opacity,\n\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo)\n}, 'calc', 'nested');\n\nattrs.x.editType = attrs.y.editType = attrs.z.editType = 'calc+clearAxisTypes';\n\n},{\"../../components/colorscale/attributes\":373,\"../../constants/gl3d_dashes\":476,\"../../constants/gl3d_markers\":477,\"../../lib/extend\":493,\"../../lib/sort_object_keys\":526,\"../../plot_api/edit_types\":536,\"../../plots/attributes\":550,\"../../plots/cartesian/axis_format_attributes\":557,\"../../plots/template_attributes\":633,\"../scatter/attributes\":925}],954:[function(_dereq_,module,exports){\n'use strict';\n\nvar arraysToCalcdata = _dereq_('../scatter/arrays_to_calcdata');\nvar calcColorscale = _dereq_('../scatter/colorscale_calc');\n\n/**\n * This is a kludge to put the array attributes into\n * calcdata the way Scatter.plot does, so that legends and\n * popovers know what to do with them.\n */\nmodule.exports = function calc(gd, trace) {\n var cd = [{x: false, y: false, trace: trace, t: {}}];\n\n arraysToCalcdata(cd, trace);\n calcColorscale(gd, trace);\n\n return cd;\n};\n\n},{\"../scatter/arrays_to_calcdata\":924,\"../scatter/colorscale_calc\":928}],955:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\n\nfunction calculateAxisErrors(data, params, scaleFactor, axis) {\n if(!params || !params.visible) return null;\n\n var computeError = Registry.getComponentMethod('errorbars', 'makeComputeError')(params);\n var result = new Array(data.length);\n\n for(var i = 0; i < data.length; i++) {\n var errors = computeError(+data[i], i);\n\n if(axis.type === 'log') {\n var point = axis.c2l(data[i]);\n var min = data[i] - errors[0];\n var max = data[i] + errors[1];\n\n result[i] = [\n (axis.c2l(min, true) - point) * scaleFactor,\n (axis.c2l(max, true) - point) * scaleFactor\n ];\n\n // Keep track of the lower error bound which isn't negative!\n if(min > 0) {\n var lower = axis.c2l(min);\n if(!axis._lowerLogErrorBound) axis._lowerLogErrorBound = lower;\n axis._lowerErrorBound = Math.min(axis._lowerLogErrorBound, lower);\n }\n } else {\n result[i] = [\n -errors[0] * scaleFactor,\n errors[1] * scaleFactor\n ];\n }\n }\n\n return result;\n}\n\nfunction dataLength(array) {\n for(var i = 0; i < array.length; i++) {\n if(array[i]) return array[i].length;\n }\n return 0;\n}\n\nfunction calculateErrors(data, scaleFactor, sceneLayout) {\n var errors = [\n calculateAxisErrors(data.x, data.error_x, scaleFactor[0], sceneLayout.xaxis),\n calculateAxisErrors(data.y, data.error_y, scaleFactor[1], sceneLayout.yaxis),\n calculateAxisErrors(data.z, data.error_z, scaleFactor[2], sceneLayout.zaxis)\n ];\n\n var n = dataLength(errors);\n if(n === 0) return null;\n\n var errorBounds = new Array(n);\n\n for(var i = 0; i < n; i++) {\n var bound = [[0, 0, 0], [0, 0, 0]];\n\n for(var j = 0; j < 3; j++) {\n if(errors[j]) {\n for(var k = 0; k < 2; k++) {\n bound[k][j] = errors[j][i][k];\n }\n }\n }\n\n errorBounds[i] = bound;\n }\n\n return errorBounds;\n}\n\nmodule.exports = calculateErrors;\n\n},{\"../../registry\":638}],956:[function(_dereq_,module,exports){\n'use strict';\n\nvar createLinePlot = _dereq_('../../../stackgl_modules').gl_line3d;\nvar createScatterPlot = _dereq_('../../../stackgl_modules').gl_scatter3d;\nvar createErrorBars = _dereq_('../../../stackgl_modules').gl_error3d;\nvar createMesh = _dereq_('../../../stackgl_modules').gl_mesh3d;\nvar triangulate = _dereq_('../../../stackgl_modules').delaunay_triangulate;\n\nvar Lib = _dereq_('../../lib');\nvar str2RgbaArray = _dereq_('../../lib/str2rgbarray');\nvar formatColor = _dereq_('../../lib/gl_format_color').formatColor;\nvar makeBubbleSizeFn = _dereq_('../scatter/make_bubble_size_func');\nvar DASH_PATTERNS = _dereq_('../../constants/gl3d_dashes');\nvar MARKER_SYMBOLS = _dereq_('../../constants/gl3d_markers');\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar appendArrayPointValue = _dereq_('../../components/fx/helpers').appendArrayPointValue;\n\nvar calculateError = _dereq_('./calc_errors');\n\nfunction LineWithMarkers(scene, uid) {\n this.scene = scene;\n this.uid = uid;\n this.linePlot = null;\n this.scatterPlot = null;\n this.errorBars = null;\n this.textMarkers = null;\n this.delaunayMesh = null;\n this.color = null;\n this.mode = '';\n this.dataPoints = [];\n this.axesBounds = [\n [-Infinity, -Infinity, -Infinity],\n [Infinity, Infinity, Infinity]\n ];\n this.textLabels = null;\n this.data = null;\n}\n\nvar proto = LineWithMarkers.prototype;\n\nproto.handlePick = function(selection) {\n if(selection.object &&\n (selection.object === this.linePlot ||\n selection.object === this.delaunayMesh ||\n selection.object === this.textMarkers ||\n selection.object === this.scatterPlot)\n ) {\n var ind = selection.index = selection.data.index;\n\n if(selection.object.highlight) {\n selection.object.highlight(null);\n }\n if(this.scatterPlot) {\n selection.object = this.scatterPlot;\n this.scatterPlot.highlight(selection.data);\n }\n\n selection.textLabel = '';\n if(this.textLabels) {\n if(Array.isArray(this.textLabels)) {\n if(this.textLabels[ind] || this.textLabels[ind] === 0) {\n selection.textLabel = this.textLabels[ind];\n }\n } else {\n selection.textLabel = this.textLabels;\n }\n }\n\n selection.traceCoordinate = [\n this.data.x[ind],\n this.data.y[ind],\n this.data.z[ind]\n ];\n\n return true;\n }\n};\n\nfunction constructDelaunay(points, color, axis) {\n var u = (axis + 1) % 3;\n var v = (axis + 2) % 3;\n var filteredPoints = [];\n var filteredIds = [];\n var i;\n\n for(i = 0; i < points.length; ++i) {\n var p = points[i];\n if(isNaN(p[u]) || !isFinite(p[u]) ||\n isNaN(p[v]) || !isFinite(p[v])) {\n continue;\n }\n filteredPoints.push([p[u], p[v]]);\n filteredIds.push(i);\n }\n var cells = triangulate(filteredPoints);\n for(i = 0; i < cells.length; ++i) {\n var c = cells[i];\n for(var j = 0; j < c.length; ++j) {\n c[j] = filteredIds[c[j]];\n }\n }\n return {\n positions: points,\n cells: cells,\n meshColor: color\n };\n}\n\nfunction calculateErrorParams(errors) {\n var capSize = [0.0, 0.0, 0.0];\n var color = [[0, 0, 0], [0, 0, 0], [0, 0, 0]];\n var lineWidth = [1.0, 1.0, 1.0];\n\n for(var i = 0; i < 3; i++) {\n var e = errors[i];\n\n if(e && e.copy_zstyle !== false && errors[2].visible !== false) e = errors[2];\n if(!e || !e.visible) continue;\n\n capSize[i] = e.width / 2; // ballpark rescaling\n color[i] = str2RgbaArray(e.color);\n lineWidth[i] = e.thickness;\n }\n\n return {capSize: capSize, color: color, lineWidth: lineWidth};\n}\n\nfunction parseAlignmentX(a) {\n if(a === null || a === undefined) return 0;\n\n return (a.indexOf('left') > -1) ? -1 :\n (a.indexOf('right') > -1) ? 1 : 0;\n}\n\nfunction parseAlignmentY(a) {\n if(a === null || a === undefined) return 0;\n\n return (a.indexOf('top') > -1) ? -1 :\n (a.indexOf('bottom') > -1) ? 1 : 0;\n}\n\nfunction calculateTextOffset(tp) {\n // Read out text properties\n\n var defaultAlignmentX = 0;\n var defaultAlignmentY = 0;\n\n var textOffset = [\n defaultAlignmentX,\n defaultAlignmentY\n ];\n\n if(Array.isArray(tp)) {\n for(var i = 0; i < tp.length; i++) {\n textOffset[i] = [\n defaultAlignmentX,\n defaultAlignmentY\n ];\n if(tp[i]) {\n textOffset[i][0] = parseAlignmentX(tp[i]);\n textOffset[i][1] = parseAlignmentY(tp[i]);\n }\n }\n } else {\n textOffset[0] = parseAlignmentX(tp);\n textOffset[1] = parseAlignmentY(tp);\n }\n\n return textOffset;\n}\n\n\nfunction calculateSize(sizeIn, sizeFn) {\n // rough parity with Plotly 2D markers\n return sizeFn(sizeIn * 4);\n}\n\nfunction calculateSymbol(symbolIn) {\n return MARKER_SYMBOLS[symbolIn];\n}\n\nfunction formatParam(paramIn, len, calculate, dflt, extraFn) {\n var paramOut = null;\n\n if(Lib.isArrayOrTypedArray(paramIn)) {\n paramOut = [];\n\n for(var i = 0; i < len; i++) {\n if(paramIn[i] === undefined) paramOut[i] = dflt;\n else paramOut[i] = calculate(paramIn[i], extraFn);\n }\n } else paramOut = calculate(paramIn, Lib.identity);\n\n return paramOut;\n}\n\n\nfunction convertPlotlyOptions(scene, data) {\n var points = [];\n var sceneLayout = scene.fullSceneLayout;\n var scaleFactor = scene.dataScale;\n var xaxis = sceneLayout.xaxis;\n var yaxis = sceneLayout.yaxis;\n var zaxis = sceneLayout.zaxis;\n var marker = data.marker;\n var line = data.line;\n var x = data.x || [];\n var y = data.y || [];\n var z = data.z || [];\n var len = x.length;\n var xcalendar = data.xcalendar;\n var ycalendar = data.ycalendar;\n var zcalendar = data.zcalendar;\n var xc, yc, zc;\n var params, i;\n var text;\n\n // Convert points\n for(i = 0; i < len; i++) {\n // sanitize numbers and apply transforms based on axes.type\n xc = xaxis.d2l(x[i], 0, xcalendar) * scaleFactor[0];\n yc = yaxis.d2l(y[i], 0, ycalendar) * scaleFactor[1];\n zc = zaxis.d2l(z[i], 0, zcalendar) * scaleFactor[2];\n\n points[i] = [xc, yc, zc];\n }\n\n // convert text\n if(Array.isArray(data.text)) text = data.text;\n else if(data.text !== undefined) {\n text = new Array(len);\n for(i = 0; i < len; i++) text[i] = data.text;\n }\n\n function formatter(axName, val) {\n var ax = sceneLayout[axName];\n return Axes.tickText(ax, ax.d2l(val), true).text;\n }\n\n // check texttemplate\n var texttemplate = data.texttemplate;\n if(texttemplate) {\n var fullLayout = scene.fullLayout;\n var d3locale = fullLayout._d3locale;\n var isArray = Array.isArray(texttemplate);\n var N = isArray ? Math.min(texttemplate.length, len) : len;\n var txt = isArray ?\n function(i) { return texttemplate[i]; } :\n function() { return texttemplate; };\n\n text = new Array(N);\n\n for(i = 0; i < N; i++) {\n var d = {x: x[i], y: y[i], z: z[i]};\n var labels = {\n xLabel: formatter('xaxis', x[i]),\n yLabel: formatter('yaxis', y[i]),\n zLabel: formatter('zaxis', z[i])\n };\n var pointValues = {};\n appendArrayPointValue(pointValues, data, i);\n var meta = data._meta || {};\n text[i] = Lib.texttemplateString(txt(i), labels, d3locale, pointValues, d, meta);\n }\n }\n\n // Build object parameters\n params = {\n position: points,\n mode: data.mode,\n text: text\n };\n\n if('line' in data) {\n params.lineColor = formatColor(line, 1, len);\n params.lineWidth = line.width;\n params.lineDashes = line.dash;\n }\n\n if('marker' in data) {\n var sizeFn = makeBubbleSizeFn(data);\n\n params.scatterColor = formatColor(marker, 1, len);\n params.scatterSize = formatParam(marker.size, len, calculateSize, 20, sizeFn);\n params.scatterMarker = formatParam(marker.symbol, len, calculateSymbol, '●');\n params.scatterLineWidth = marker.line.width; // arrayOk === false\n params.scatterLineColor = formatColor(marker.line, 1, len);\n params.scatterAngle = 0;\n }\n\n if('textposition' in data) {\n params.textOffset = calculateTextOffset(data.textposition);\n params.textColor = formatColor(data.textfont, 1, len);\n params.textSize = formatParam(data.textfont.size, len, Lib.identity, 12);\n params.textFont = data.textfont.family; // arrayOk === false\n params.textAngle = 0;\n }\n\n var dims = ['x', 'y', 'z'];\n params.project = [false, false, false];\n params.projectScale = [1, 1, 1];\n params.projectOpacity = [1, 1, 1];\n for(i = 0; i < 3; ++i) {\n var projection = data.projection[dims[i]];\n if((params.project[i] = projection.show)) {\n params.projectOpacity[i] = projection.opacity;\n params.projectScale[i] = projection.scale;\n }\n }\n\n params.errorBounds = calculateError(data, scaleFactor, sceneLayout);\n\n var errorParams = calculateErrorParams([data.error_x, data.error_y, data.error_z]);\n params.errorColor = errorParams.color;\n params.errorLineWidth = errorParams.lineWidth;\n params.errorCapSize = errorParams.capSize;\n\n params.delaunayAxis = data.surfaceaxis;\n params.delaunayColor = str2RgbaArray(data.surfacecolor);\n\n return params;\n}\n\nfunction _arrayToColor(color) {\n if(Lib.isArrayOrTypedArray(color)) {\n var c = color[0];\n\n if(Lib.isArrayOrTypedArray(c)) color = c;\n\n return 'rgb(' + color.slice(0, 3).map(function(x) {\n return Math.round(x * 255);\n }) + ')';\n }\n\n return null;\n}\n\nfunction arrayToColor(colors) {\n if(!Lib.isArrayOrTypedArray(colors)) {\n return null;\n }\n\n if((colors.length === 4) && (typeof colors[0] === 'number')) {\n return _arrayToColor(colors);\n }\n\n return colors.map(_arrayToColor);\n}\n\nproto.update = function(data) {\n var gl = this.scene.glplot.gl;\n var lineOptions;\n var scatterOptions;\n var errorOptions;\n var textOptions;\n var dashPattern = DASH_PATTERNS.solid;\n\n // Save data\n this.data = data;\n\n // Run data conversion\n var options = convertPlotlyOptions(this.scene, data);\n\n if('mode' in options) {\n this.mode = options.mode;\n }\n if('lineDashes' in options) {\n if(options.lineDashes in DASH_PATTERNS) {\n dashPattern = DASH_PATTERNS[options.lineDashes];\n }\n }\n\n this.color = arrayToColor(options.scatterColor) ||\n arrayToColor(options.lineColor);\n\n // Save data points\n this.dataPoints = options.position;\n\n lineOptions = {\n gl: this.scene.glplot.gl,\n position: options.position,\n color: options.lineColor,\n lineWidth: options.lineWidth || 1,\n dashes: dashPattern[0],\n dashScale: dashPattern[1],\n opacity: data.opacity,\n connectGaps: data.connectgaps\n };\n\n if(this.mode.indexOf('lines') !== -1) {\n if(this.linePlot) this.linePlot.update(lineOptions);\n else {\n this.linePlot = createLinePlot(lineOptions);\n this.linePlot._trace = this;\n this.scene.glplot.add(this.linePlot);\n }\n } else if(this.linePlot) {\n this.scene.glplot.remove(this.linePlot);\n this.linePlot.dispose();\n this.linePlot = null;\n }\n\n // N.B. marker.opacity must be a scalar for performance\n var scatterOpacity = data.opacity;\n if(data.marker && data.marker.opacity) scatterOpacity *= data.marker.opacity;\n\n scatterOptions = {\n gl: this.scene.glplot.gl,\n position: options.position,\n color: options.scatterColor,\n size: options.scatterSize,\n glyph: options.scatterMarker,\n opacity: scatterOpacity,\n orthographic: true,\n lineWidth: options.scatterLineWidth,\n lineColor: options.scatterLineColor,\n project: options.project,\n projectScale: options.projectScale,\n projectOpacity: options.projectOpacity\n };\n\n if(this.mode.indexOf('markers') !== -1) {\n if(this.scatterPlot) this.scatterPlot.update(scatterOptions);\n else {\n this.scatterPlot = createScatterPlot(scatterOptions);\n this.scatterPlot._trace = this;\n this.scatterPlot.highlightScale = 1;\n this.scene.glplot.add(this.scatterPlot);\n }\n } else if(this.scatterPlot) {\n this.scene.glplot.remove(this.scatterPlot);\n this.scatterPlot.dispose();\n this.scatterPlot = null;\n }\n\n textOptions = {\n gl: this.scene.glplot.gl,\n position: options.position,\n glyph: options.text,\n color: options.textColor,\n size: options.textSize,\n angle: options.textAngle,\n alignment: options.textOffset,\n font: options.textFont,\n orthographic: true,\n lineWidth: 0,\n project: false,\n opacity: data.opacity\n };\n\n this.textLabels = data.hovertext || data.text;\n\n if(this.mode.indexOf('text') !== -1) {\n if(this.textMarkers) this.textMarkers.update(textOptions);\n else {\n this.textMarkers = createScatterPlot(textOptions);\n this.textMarkers._trace = this;\n this.textMarkers.highlightScale = 1;\n this.scene.glplot.add(this.textMarkers);\n }\n } else if(this.textMarkers) {\n this.scene.glplot.remove(this.textMarkers);\n this.textMarkers.dispose();\n this.textMarkers = null;\n }\n\n errorOptions = {\n gl: this.scene.glplot.gl,\n position: options.position,\n color: options.errorColor,\n error: options.errorBounds,\n lineWidth: options.errorLineWidth,\n capSize: options.errorCapSize,\n opacity: data.opacity\n };\n if(this.errorBars) {\n if(options.errorBounds) {\n this.errorBars.update(errorOptions);\n } else {\n this.scene.glplot.remove(this.errorBars);\n this.errorBars.dispose();\n this.errorBars = null;\n }\n } else if(options.errorBounds) {\n this.errorBars = createErrorBars(errorOptions);\n this.errorBars._trace = this;\n this.scene.glplot.add(this.errorBars);\n }\n\n if(options.delaunayAxis >= 0) {\n var delaunayOptions = constructDelaunay(\n options.position,\n options.delaunayColor,\n options.delaunayAxis\n );\n delaunayOptions.opacity = data.opacity;\n\n if(this.delaunayMesh) {\n this.delaunayMesh.update(delaunayOptions);\n } else {\n delaunayOptions.gl = gl;\n this.delaunayMesh = createMesh(delaunayOptions);\n this.delaunayMesh._trace = this;\n this.scene.glplot.add(this.delaunayMesh);\n }\n } else if(this.delaunayMesh) {\n this.scene.glplot.remove(this.delaunayMesh);\n this.delaunayMesh.dispose();\n this.delaunayMesh = null;\n }\n};\n\nproto.dispose = function() {\n if(this.linePlot) {\n this.scene.glplot.remove(this.linePlot);\n this.linePlot.dispose();\n }\n if(this.scatterPlot) {\n this.scene.glplot.remove(this.scatterPlot);\n this.scatterPlot.dispose();\n }\n if(this.errorBars) {\n this.scene.glplot.remove(this.errorBars);\n this.errorBars.dispose();\n }\n if(this.textMarkers) {\n this.scene.glplot.remove(this.textMarkers);\n this.textMarkers.dispose();\n }\n if(this.delaunayMesh) {\n this.scene.glplot.remove(this.delaunayMesh);\n this.delaunayMesh.dispose();\n }\n};\n\nfunction createLineWithMarkers(scene, data) {\n var plot = new LineWithMarkers(scene, data.uid);\n plot.update(data);\n return plot;\n}\n\nmodule.exports = createLineWithMarkers;\n\n},{\"../../../stackgl_modules\":1119,\"../../components/fx/helpers\":402,\"../../constants/gl3d_dashes\":476,\"../../constants/gl3d_markers\":477,\"../../lib\":503,\"../../lib/gl_format_color\":499,\"../../lib/str2rgbarray\":528,\"../../plots/cartesian/axes\":554,\"../scatter/make_bubble_size_func\":942,\"./calc_errors\":955}],957:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\n\nvar subTypes = _dereq_('../scatter/subtypes');\nvar handleMarkerDefaults = _dereq_('../scatter/marker_defaults');\nvar handleLineDefaults = _dereq_('../scatter/line_defaults');\nvar handleTextDefaults = _dereq_('../scatter/text_defaults');\n\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var len = handleXYZDefaults(traceIn, traceOut, coerce, layout);\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n coerce('text');\n coerce('hovertext');\n coerce('hovertemplate');\n coerce('xhoverformat');\n coerce('yhoverformat');\n coerce('zhoverformat');\n\n coerce('mode');\n\n if(subTypes.hasLines(traceOut)) {\n coerce('connectgaps');\n handleLineDefaults(traceIn, traceOut, defaultColor, layout, coerce);\n }\n\n if(subTypes.hasMarkers(traceOut)) {\n handleMarkerDefaults(traceIn, traceOut, defaultColor, layout, coerce, {noSelect: true});\n }\n\n if(subTypes.hasText(traceOut)) {\n coerce('texttemplate');\n handleTextDefaults(traceIn, traceOut, layout, coerce, {noSelect: true});\n }\n\n var lineColor = (traceOut.line || {}).color;\n var markerColor = (traceOut.marker || {}).color;\n if(coerce('surfaceaxis') >= 0) coerce('surfacecolor', lineColor || markerColor);\n\n var dims = ['x', 'y', 'z'];\n for(var i = 0; i < 3; ++i) {\n var projection = 'projection.' + dims[i];\n if(coerce(projection + '.show')) {\n coerce(projection + '.opacity');\n coerce(projection + '.scale');\n }\n }\n\n var errorBarsSupplyDefaults = Registry.getComponentMethod('errorbars', 'supplyDefaults');\n errorBarsSupplyDefaults(traceIn, traceOut, lineColor || markerColor || defaultColor, {axis: 'z'});\n errorBarsSupplyDefaults(traceIn, traceOut, lineColor || markerColor || defaultColor, {axis: 'y', inherit: 'z'});\n errorBarsSupplyDefaults(traceIn, traceOut, lineColor || markerColor || defaultColor, {axis: 'x', inherit: 'z'});\n};\n\nfunction handleXYZDefaults(traceIn, traceOut, coerce, layout) {\n var len = 0;\n var x = coerce('x');\n var y = coerce('y');\n var z = coerce('z');\n\n var handleCalendarDefaults = Registry.getComponentMethod('calendars', 'handleTraceDefaults');\n handleCalendarDefaults(traceIn, traceOut, ['x', 'y', 'z'], layout);\n\n if(x && y && z) {\n // TODO: what happens if one is missing?\n len = Math.min(x.length, y.length, z.length);\n traceOut._length = traceOut._xlength = traceOut._ylength = traceOut._zlength = len;\n }\n\n return len;\n}\n\n},{\"../../lib\":503,\"../../registry\":638,\"../scatter/line_defaults\":938,\"../scatter/marker_defaults\":944,\"../scatter/subtypes\":950,\"../scatter/text_defaults\":951,\"./attributes\":953}],958:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n plot: _dereq_('./convert'),\n attributes: _dereq_('./attributes'),\n markerSymbols: _dereq_('../../constants/gl3d_markers'),\n supplyDefaults: _dereq_('./defaults'),\n colorbar: [\n {\n container: 'marker',\n min: 'cmin',\n max: 'cmax'\n }, {\n container: 'line',\n min: 'cmin',\n max: 'cmax'\n }\n ],\n calc: _dereq_('./calc'),\n\n moduleType: 'trace',\n name: 'scatter3d',\n basePlotModule: _dereq_('../../plots/gl3d'),\n categories: ['gl3d', 'symbols', 'showLegend', 'scatter-like'],\n meta: {\n }\n};\n\n},{\"../../constants/gl3d_markers\":477,\"../../plots/gl3d\":598,\"./attributes\":953,\"./calc\":954,\"./convert\":956,\"./defaults\":957}],959:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterAttrs = _dereq_('../scatter/attributes');\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nvar scatterMarkerAttrs = scatterAttrs.marker;\nvar scatterLineAttrs = scatterAttrs.line;\nvar scatterMarkerLineAttrs = scatterMarkerAttrs.line;\n\nmodule.exports = {\n carpet: {\n valType: 'string',\n editType: 'calc',\n },\n a: {\n valType: 'data_array',\n editType: 'calc',\n },\n b: {\n valType: 'data_array',\n editType: 'calc',\n },\n mode: extendFlat({}, scatterAttrs.mode, {dflt: 'markers'}),\n text: extendFlat({}, scatterAttrs.text, {\n }),\n texttemplate: texttemplateAttrs({editType: 'plot'}, {\n keys: ['a', 'b', 'text']\n }),\n hovertext: extendFlat({}, scatterAttrs.hovertext, {\n }),\n line: {\n color: scatterLineAttrs.color,\n width: scatterLineAttrs.width,\n dash: scatterLineAttrs.dash,\n shape: extendFlat({}, scatterLineAttrs.shape,\n {values: ['linear', 'spline']}),\n smoothing: scatterLineAttrs.smoothing,\n editType: 'calc'\n },\n connectgaps: scatterAttrs.connectgaps,\n fill: extendFlat({}, scatterAttrs.fill, {\n values: ['none', 'toself', 'tonext'],\n dflt: 'none',\n }),\n fillcolor: scatterAttrs.fillcolor,\n marker: extendFlat({\n symbol: scatterMarkerAttrs.symbol,\n opacity: scatterMarkerAttrs.opacity,\n maxdisplayed: scatterMarkerAttrs.maxdisplayed,\n size: scatterMarkerAttrs.size,\n sizeref: scatterMarkerAttrs.sizeref,\n sizemin: scatterMarkerAttrs.sizemin,\n sizemode: scatterMarkerAttrs.sizemode,\n line: extendFlat({\n width: scatterMarkerLineAttrs.width,\n editType: 'calc'\n },\n colorScaleAttrs('marker.line')\n ),\n gradient: scatterMarkerAttrs.gradient,\n editType: 'calc'\n },\n colorScaleAttrs('marker')\n ),\n\n textfont: scatterAttrs.textfont,\n textposition: scatterAttrs.textposition,\n\n selected: scatterAttrs.selected,\n unselected: scatterAttrs.unselected,\n\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {\n flags: ['a', 'b', 'text', 'name']\n }),\n hoveron: scatterAttrs.hoveron,\n hovertemplate: hovertemplateAttrs()\n};\n\n},{\"../../components/colorscale/attributes\":373,\"../../lib/extend\":493,\"../../plots/attributes\":550,\"../../plots/template_attributes\":633,\"../scatter/attributes\":925}],960:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar calcColorscale = _dereq_('../scatter/colorscale_calc');\nvar arraysToCalcdata = _dereq_('../scatter/arrays_to_calcdata');\nvar calcSelection = _dereq_('../scatter/calc_selection');\nvar calcMarkerSize = _dereq_('../scatter/calc').calcMarkerSize;\nvar lookupCarpet = _dereq_('../carpet/lookup_carpetid');\n\nmodule.exports = function calc(gd, trace) {\n var carpet = trace._carpetTrace = lookupCarpet(gd, trace);\n if(!carpet || !carpet.visible || carpet.visible === 'legendonly') return;\n var i;\n\n // Transfer this over from carpet before plotting since this is a necessary\n // condition in order for cartesian to actually plot this trace:\n trace.xaxis = carpet.xaxis;\n trace.yaxis = carpet.yaxis;\n\n // make the calcdata array\n var serieslen = trace._length;\n var cd = new Array(serieslen);\n var a, b;\n var needsCull = false;\n for(i = 0; i < serieslen; i++) {\n a = trace.a[i];\n b = trace.b[i];\n if(isNumeric(a) && isNumeric(b)) {\n var xy = carpet.ab2xy(+a, +b, true);\n var visible = carpet.isVisible(+a, +b);\n if(!visible) needsCull = true;\n cd[i] = {x: xy[0], y: xy[1], a: a, b: b, vis: visible};\n } else cd[i] = {x: false, y: false};\n }\n\n trace._needsCull = needsCull;\n\n cd[0].carpet = carpet;\n cd[0].trace = trace;\n\n calcMarkerSize(trace, serieslen);\n calcColorscale(gd, trace);\n arraysToCalcdata(cd, trace);\n calcSelection(cd, trace);\n\n return cd;\n};\n\n},{\"../carpet/lookup_carpetid\":708,\"../scatter/arrays_to_calcdata\":924,\"../scatter/calc\":926,\"../scatter/calc_selection\":927,\"../scatter/colorscale_calc\":928,\"fast-isnumeric\":190}],961:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar constants = _dereq_('../scatter/constants');\nvar subTypes = _dereq_('../scatter/subtypes');\nvar handleMarkerDefaults = _dereq_('../scatter/marker_defaults');\nvar handleLineDefaults = _dereq_('../scatter/line_defaults');\nvar handleLineShapeDefaults = _dereq_('../scatter/line_shape_defaults');\nvar handleTextDefaults = _dereq_('../scatter/text_defaults');\nvar handleFillColorDefaults = _dereq_('../scatter/fillcolor_defaults');\n\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n coerce('carpet');\n\n // XXX: Don't hard code this\n traceOut.xaxis = 'x';\n traceOut.yaxis = 'y';\n\n var a = coerce('a');\n var b = coerce('b');\n var len = Math.min(a.length, b.length);\n\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n traceOut._length = len;\n\n coerce('text');\n coerce('texttemplate');\n coerce('hovertext');\n\n var defaultMode = len < constants.PTS_LINESONLY ? 'lines+markers' : 'lines';\n coerce('mode', defaultMode);\n\n if(subTypes.hasLines(traceOut)) {\n handleLineDefaults(traceIn, traceOut, defaultColor, layout, coerce);\n handleLineShapeDefaults(traceIn, traceOut, coerce);\n coerce('connectgaps');\n }\n\n if(subTypes.hasMarkers(traceOut)) {\n handleMarkerDefaults(traceIn, traceOut, defaultColor, layout, coerce, {gradient: true});\n }\n\n if(subTypes.hasText(traceOut)) {\n handleTextDefaults(traceIn, traceOut, layout, coerce);\n }\n\n var dfltHoverOn = [];\n\n if(subTypes.hasMarkers(traceOut) || subTypes.hasText(traceOut)) {\n coerce('marker.maxdisplayed');\n dfltHoverOn.push('points');\n }\n\n coerce('fill');\n if(traceOut.fill !== 'none') {\n handleFillColorDefaults(traceIn, traceOut, defaultColor, coerce);\n if(!subTypes.hasLines(traceOut)) handleLineShapeDefaults(traceIn, traceOut, coerce);\n }\n\n if(traceOut.fill === 'tonext' || traceOut.fill === 'toself') {\n dfltHoverOn.push('fills');\n }\n\n var hoverOn = coerce('hoveron', dfltHoverOn.join('+') || 'points');\n if(hoverOn !== 'fills') coerce('hovertemplate');\n\n Lib.coerceSelectionMarkerOpacity(traceOut, coerce);\n};\n\n},{\"../../lib\":503,\"../scatter/constants\":929,\"../scatter/fillcolor_defaults\":933,\"../scatter/line_defaults\":938,\"../scatter/line_shape_defaults\":940,\"../scatter/marker_defaults\":944,\"../scatter/subtypes\":950,\"../scatter/text_defaults\":951,\"./attributes\":959}],962:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function eventData(out, pt, trace, cd, pointNumber) {\n var cdi = cd[pointNumber];\n\n out.a = cdi.a;\n out.b = cdi.b;\n out.y = cdi.y;\n\n return out;\n};\n\n},{}],963:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function formatLabels(cdi, trace) {\n var labels = {};\n\n var carpet = trace._carpet;\n var ij = carpet.ab2ij([cdi.a, cdi.b]);\n var i0 = Math.floor(ij[0]);\n var ti = ij[0] - i0;\n var j0 = Math.floor(ij[1]);\n var tj = ij[1] - j0;\n var xy = carpet.evalxy([], i0, j0, ti, tj);\n\n labels.yLabel = xy[1].toFixed(3);\n\n return labels;\n};\n\n},{}],964:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterHover = _dereq_('../scatter/hover');\nvar fillText = _dereq_('../../lib').fillText;\n\nmodule.exports = function hoverPoints(pointData, xval, yval, hovermode) {\n var scatterPointData = scatterHover(pointData, xval, yval, hovermode);\n if(!scatterPointData || scatterPointData[0].index === false) return;\n\n var newPointData = scatterPointData[0];\n\n // if hovering on a fill, we don't show any point data so the label is\n // unchanged from what scatter gives us - except that it needs to\n // be constrained to the trianglular plot area, not just the rectangular\n // area defined by the synthetic x and y axes\n // TODO: in some cases the vertical middle of the shape is not within\n // the triangular viewport at all, so the label can become disconnected\n // from the shape entirely. But calculating what portion of the shape\n // is actually visible, as constrained by the diagonal axis lines, is not\n // so easy and anyway we lost the information we would have needed to do\n // this inside scatterHover.\n if(newPointData.index === undefined) {\n var yFracUp = 1 - (newPointData.y0 / pointData.ya._length);\n var xLen = pointData.xa._length;\n var xMin = xLen * yFracUp / 2;\n var xMax = xLen - xMin;\n newPointData.x0 = Math.max(Math.min(newPointData.x0, xMax), xMin);\n newPointData.x1 = Math.max(Math.min(newPointData.x1, xMax), xMin);\n return scatterPointData;\n }\n\n var cdi = newPointData.cd[newPointData.index];\n\n newPointData.a = cdi.a;\n newPointData.b = cdi.b;\n\n newPointData.xLabelVal = undefined;\n newPointData.yLabelVal = undefined;\n // TODO: nice formatting, and label by axis title, for a, b, and c?\n\n var trace = newPointData.trace;\n var carpet = trace._carpet;\n\n var labels = trace._module.formatLabels(cdi, trace);\n newPointData.yLabel = labels.yLabel;\n\n delete newPointData.text;\n var text = [];\n\n function textPart(ax, val) {\n var prefix;\n\n if(ax.labelprefix && ax.labelprefix.length > 0) {\n prefix = ax.labelprefix.replace(/ = $/, '');\n } else {\n prefix = ax._hovertitle;\n }\n\n text.push(prefix + ': ' + val.toFixed(3) + ax.labelsuffix);\n }\n\n\n if(!trace.hovertemplate) {\n var hoverinfo = cdi.hi || trace.hoverinfo;\n var parts = hoverinfo.split('+');\n\n if(parts.indexOf('all') !== -1) parts = ['a', 'b', 'text'];\n if(parts.indexOf('a') !== -1) textPart(carpet.aaxis, cdi.a);\n if(parts.indexOf('b') !== -1) textPart(carpet.baxis, cdi.b);\n\n text.push('y: ' + newPointData.yLabel);\n\n if(parts.indexOf('text') !== -1) {\n fillText(cdi, trace, text);\n }\n\n newPointData.extraText = text.join('
');\n }\n\n return scatterPointData;\n};\n\n},{\"../../lib\":503,\"../scatter/hover\":936}],965:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n colorbar: _dereq_('../scatter/marker_colorbar'),\n formatLabels: _dereq_('./format_labels'),\n calc: _dereq_('./calc'),\n plot: _dereq_('./plot'),\n style: _dereq_('../scatter/style').style,\n styleOnSelect: _dereq_('../scatter/style').styleOnSelect,\n hoverPoints: _dereq_('./hover'),\n selectPoints: _dereq_('../scatter/select'),\n eventData: _dereq_('./event_data'),\n\n moduleType: 'trace',\n name: 'scattercarpet',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: ['svg', 'carpet', 'symbols', 'showLegend', 'carpetDependent', 'zoomScale'],\n meta: {\n }\n};\n\n},{\"../../plots/cartesian\":568,\"../scatter/marker_colorbar\":943,\"../scatter/select\":947,\"../scatter/style\":949,\"./attributes\":959,\"./calc\":960,\"./defaults\":961,\"./event_data\":962,\"./format_labels\":963,\"./hover\":964,\"./plot\":966}],966:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterPlot = _dereq_('../scatter/plot');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar Drawing = _dereq_('../../components/drawing');\n\nmodule.exports = function plot(gd, plotinfoproxy, data, layer) {\n var i, trace, node;\n\n var carpet = data[0][0].carpet;\n // mimic cartesian plotinfo\n var plotinfo = {\n xaxis: Axes.getFromId(gd, carpet.xaxis || 'x'),\n yaxis: Axes.getFromId(gd, carpet.yaxis || 'y'),\n plot: plotinfoproxy.plot,\n };\n\n scatterPlot(gd, plotinfo, data, layer);\n\n for(i = 0; i < data.length; i++) {\n trace = data[i][0].trace;\n\n // Note: .select is adequate but seems to mutate the node data,\n // which is at least a bit surprising and causes problems elsewhere\n node = layer.selectAll('g.trace' + trace.uid + ' .js-line');\n\n // Note: it would be more efficient if this didn't need to be applied\n // separately to all scattercarpet traces, but that would require\n // lots of reorganization of scatter traces that is otherwise not\n // necessary. That makes this a potential optimization.\n Drawing.setClipUrl(node, data[i][0].carpet._clipPathId, gd);\n }\n};\n\n},{\"../../components/drawing\":388,\"../../plots/cartesian/axes\":554,\"../scatter/plot\":946}],967:[function(_dereq_,module,exports){\n'use strict';\n\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\nvar scatterAttrs = _dereq_('../scatter/attributes');\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar colorAttributes = _dereq_('../../components/colorscale/attributes');\nvar dash = _dereq_('../../components/drawing/attributes').dash;\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\n\nvar scatterMarkerAttrs = scatterAttrs.marker;\nvar scatterLineAttrs = scatterAttrs.line;\nvar scatterMarkerLineAttrs = scatterMarkerAttrs.line;\n\nmodule.exports = overrideAll({\n lon: {\n valType: 'data_array',\n },\n lat: {\n valType: 'data_array',\n },\n\n locations: {\n valType: 'data_array',\n },\n locationmode: {\n valType: 'enumerated',\n values: ['ISO-3', 'USA-states', 'country names', 'geojson-id'],\n dflt: 'ISO-3',\n },\n\n geojson: {\n valType: 'any',\n editType: 'calc',\n },\n featureidkey: {\n valType: 'string',\n editType: 'calc',\n dflt: 'id',\n },\n\n mode: extendFlat({}, scatterAttrs.mode, {dflt: 'markers'}),\n\n text: extendFlat({}, scatterAttrs.text, {\n }),\n texttemplate: texttemplateAttrs({editType: 'plot'}, {\n keys: ['lat', 'lon', 'location', 'text']\n }),\n hovertext: extendFlat({}, scatterAttrs.hovertext, {\n }),\n\n textfont: scatterAttrs.textfont,\n textposition: scatterAttrs.textposition,\n\n line: {\n color: scatterLineAttrs.color,\n width: scatterLineAttrs.width,\n dash: dash\n },\n connectgaps: scatterAttrs.connectgaps,\n\n marker: extendFlat({\n symbol: scatterMarkerAttrs.symbol,\n opacity: scatterMarkerAttrs.opacity,\n size: scatterMarkerAttrs.size,\n sizeref: scatterMarkerAttrs.sizeref,\n sizemin: scatterMarkerAttrs.sizemin,\n sizemode: scatterMarkerAttrs.sizemode,\n colorbar: scatterMarkerAttrs.colorbar,\n line: extendFlat({\n width: scatterMarkerLineAttrs.width\n },\n colorAttributes('marker.line')\n ),\n gradient: scatterMarkerAttrs.gradient\n },\n colorAttributes('marker')\n ),\n\n fill: {\n valType: 'enumerated',\n values: ['none', 'toself'],\n dflt: 'none',\n },\n fillcolor: scatterAttrs.fillcolor,\n\n selected: scatterAttrs.selected,\n unselected: scatterAttrs.unselected,\n\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {\n flags: ['lon', 'lat', 'location', 'text', 'name']\n }),\n hovertemplate: hovertemplateAttrs(),\n}, 'calc', 'nested');\n\n},{\"../../components/colorscale/attributes\":373,\"../../components/drawing/attributes\":387,\"../../lib/extend\":493,\"../../plot_api/edit_types\":536,\"../../plots/attributes\":550,\"../../plots/template_attributes\":633,\"../scatter/attributes\":925}],968:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nvar calcMarkerColorscale = _dereq_('../scatter/colorscale_calc');\nvar arraysToCalcdata = _dereq_('../scatter/arrays_to_calcdata');\nvar calcSelection = _dereq_('../scatter/calc_selection');\n\nvar _ = _dereq_('../../lib')._;\n\nfunction isNonBlankString(v) {\n return v && typeof v === 'string';\n}\n\nmodule.exports = function calc(gd, trace) {\n var hasLocationData = Array.isArray(trace.locations);\n var len = hasLocationData ? trace.locations.length : trace._length;\n var calcTrace = new Array(len);\n\n var isValidLoc;\n if(trace.geojson) {\n isValidLoc = function(v) { return isNonBlankString(v) || isNumeric(v); };\n } else {\n isValidLoc = isNonBlankString;\n }\n\n for(var i = 0; i < len; i++) {\n var calcPt = calcTrace[i] = {};\n\n if(hasLocationData) {\n var loc = trace.locations[i];\n calcPt.loc = isValidLoc(loc) ? loc : null;\n } else {\n var lon = trace.lon[i];\n var lat = trace.lat[i];\n\n if(isNumeric(lon) && isNumeric(lat)) calcPt.lonlat = [+lon, +lat];\n else calcPt.lonlat = [BADNUM, BADNUM];\n }\n }\n\n arraysToCalcdata(calcTrace, trace);\n calcMarkerColorscale(gd, trace);\n calcSelection(calcTrace, trace);\n\n if(len) {\n calcTrace[0].t = {\n labels: {\n lat: _(gd, 'lat:') + ' ',\n lon: _(gd, 'lon:') + ' '\n }\n };\n }\n\n return calcTrace;\n};\n\n},{\"../../constants/numerical\":479,\"../../lib\":503,\"../scatter/arrays_to_calcdata\":924,\"../scatter/calc_selection\":927,\"../scatter/colorscale_calc\":928,\"fast-isnumeric\":190}],969:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar subTypes = _dereq_('../scatter/subtypes');\nvar handleMarkerDefaults = _dereq_('../scatter/marker_defaults');\nvar handleLineDefaults = _dereq_('../scatter/line_defaults');\nvar handleTextDefaults = _dereq_('../scatter/text_defaults');\nvar handleFillColorDefaults = _dereq_('../scatter/fillcolor_defaults');\n\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var locations = coerce('locations');\n var len;\n\n if(locations && locations.length) {\n var geojson = coerce('geojson');\n var locationmodeDflt;\n if((typeof geojson === 'string' && geojson !== '') || Lib.isPlainObject(geojson)) {\n locationmodeDflt = 'geojson-id';\n }\n\n var locationMode = coerce('locationmode', locationmodeDflt);\n\n if(locationMode === 'geojson-id') {\n coerce('featureidkey');\n }\n\n len = locations.length;\n } else {\n var lon = coerce('lon') || [];\n var lat = coerce('lat') || [];\n len = Math.min(lon.length, lat.length);\n }\n\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n traceOut._length = len;\n\n coerce('text');\n coerce('hovertext');\n coerce('hovertemplate');\n coerce('mode');\n\n if(subTypes.hasLines(traceOut)) {\n handleLineDefaults(traceIn, traceOut, defaultColor, layout, coerce);\n coerce('connectgaps');\n }\n\n if(subTypes.hasMarkers(traceOut)) {\n handleMarkerDefaults(traceIn, traceOut, defaultColor, layout, coerce, {gradient: true});\n }\n\n if(subTypes.hasText(traceOut)) {\n coerce('texttemplate');\n handleTextDefaults(traceIn, traceOut, layout, coerce);\n }\n\n coerce('fill');\n if(traceOut.fill !== 'none') {\n handleFillColorDefaults(traceIn, traceOut, defaultColor, coerce);\n }\n\n Lib.coerceSelectionMarkerOpacity(traceOut, coerce);\n};\n\n},{\"../../lib\":503,\"../scatter/fillcolor_defaults\":933,\"../scatter/line_defaults\":938,\"../scatter/marker_defaults\":944,\"../scatter/subtypes\":950,\"../scatter/text_defaults\":951,\"./attributes\":967}],970:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = function eventData(out, pt, trace, cd, pointNumber) {\n out.lon = pt.lon;\n out.lat = pt.lat;\n out.location = pt.loc ? pt.loc : null;\n\n // include feature properties from input geojson\n var cdi = cd[pointNumber];\n if(cdi.fIn && cdi.fIn.properties) {\n out.properties = cdi.fIn.properties;\n }\n\n return out;\n};\n\n},{}],971:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\n\nmodule.exports = function formatLabels(cdi, trace, fullLayout) {\n var labels = {};\n\n var geo = fullLayout[trace.geo]._subplot;\n var ax = geo.mockAxis;\n var lonlat = cdi.lonlat;\n labels.lonLabel = Axes.tickText(ax, ax.c2l(lonlat[0]), true).text;\n labels.latLabel = Axes.tickText(ax, ax.c2l(lonlat[1]), true).text;\n\n return labels;\n};\n\n},{\"../../plots/cartesian/axes\":554}],972:[function(_dereq_,module,exports){\n'use strict';\n\nvar Fx = _dereq_('../../components/fx');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nvar getTraceColor = _dereq_('../scatter/get_trace_color');\nvar fillText = _dereq_('../../lib').fillText;\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function hoverPoints(pointData, xval, yval) {\n var cd = pointData.cd;\n var trace = cd[0].trace;\n var xa = pointData.xa;\n var ya = pointData.ya;\n var geo = pointData.subplot;\n\n var isLonLatOverEdges = geo.projection.isLonLatOverEdges;\n var project = geo.project;\n\n function distFn(d) {\n var lonlat = d.lonlat;\n\n if(lonlat[0] === BADNUM) return Infinity;\n if(isLonLatOverEdges(lonlat)) return Infinity;\n\n var pt = project(lonlat);\n var px = project([xval, yval]);\n var dx = Math.abs(pt[0] - px[0]);\n var dy = Math.abs(pt[1] - px[1]);\n var rad = Math.max(3, d.mrc || 0);\n\n // N.B. d.mrc is the calculated marker radius\n // which is only set for trace with 'markers' mode.\n\n return Math.max(Math.sqrt(dx * dx + dy * dy) - rad, 1 - 3 / rad);\n }\n\n Fx.getClosest(cd, distFn, pointData);\n\n // skip the rest (for this trace) if we didn't find a close point\n if(pointData.index === false) return;\n\n var di = cd[pointData.index];\n var lonlat = di.lonlat;\n var pos = [xa.c2p(lonlat), ya.c2p(lonlat)];\n var rad = di.mrc || 1;\n\n pointData.x0 = pos[0] - rad;\n pointData.x1 = pos[0] + rad;\n pointData.y0 = pos[1] - rad;\n pointData.y1 = pos[1] + rad;\n\n pointData.loc = di.loc;\n pointData.lon = lonlat[0];\n pointData.lat = lonlat[1];\n\n var fullLayout = {};\n fullLayout[trace.geo] = {_subplot: geo};\n var labels = trace._module.formatLabels(di, trace, fullLayout);\n pointData.lonLabel = labels.lonLabel;\n pointData.latLabel = labels.latLabel;\n\n pointData.color = getTraceColor(trace, di);\n pointData.extraText = getExtraText(trace, di, pointData, cd[0].t.labels);\n pointData.hovertemplate = trace.hovertemplate;\n\n return [pointData];\n};\n\nfunction getExtraText(trace, pt, pointData, labels) {\n if(trace.hovertemplate) return;\n\n var hoverinfo = pt.hi || trace.hoverinfo;\n\n var parts = hoverinfo === 'all' ?\n attributes.hoverinfo.flags :\n hoverinfo.split('+');\n\n var hasLocation = parts.indexOf('location') !== -1 && Array.isArray(trace.locations);\n var hasLon = (parts.indexOf('lon') !== -1);\n var hasLat = (parts.indexOf('lat') !== -1);\n var hasText = (parts.indexOf('text') !== -1);\n var text = [];\n\n function format(val) { return val + '\\u00B0'; }\n\n if(hasLocation) {\n text.push(pt.loc);\n } else if(hasLon && hasLat) {\n text.push('(' + format(pointData.latLabel) + ', ' + format(pointData.lonLabel) + ')');\n } else if(hasLon) {\n text.push(labels.lon + format(pointData.lonLabel));\n } else if(hasLat) {\n text.push(labels.lat + format(pointData.latLabel));\n }\n\n if(hasText) {\n fillText(pt, trace, text);\n }\n\n return text.join('
');\n}\n\n},{\"../../components/fx\":406,\"../../constants/numerical\":479,\"../../lib\":503,\"../scatter/get_trace_color\":935,\"./attributes\":967}],973:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n colorbar: _dereq_('../scatter/marker_colorbar'),\n formatLabels: _dereq_('./format_labels'),\n calc: _dereq_('./calc'),\n calcGeoJSON: _dereq_('./plot').calcGeoJSON,\n plot: _dereq_('./plot').plot,\n style: _dereq_('./style'),\n styleOnSelect: _dereq_('../scatter/style').styleOnSelect,\n hoverPoints: _dereq_('./hover'),\n eventData: _dereq_('./event_data'),\n selectPoints: _dereq_('./select'),\n\n moduleType: 'trace',\n name: 'scattergeo',\n basePlotModule: _dereq_('../../plots/geo'),\n categories: ['geo', 'symbols', 'showLegend', 'scatter-like'],\n meta: {\n }\n};\n\n},{\"../../plots/geo\":589,\"../scatter/marker_colorbar\":943,\"../scatter/style\":949,\"./attributes\":967,\"./calc\":968,\"./defaults\":969,\"./event_data\":970,\"./format_labels\":971,\"./hover\":972,\"./plot\":974,\"./select\":975,\"./style\":976}],974:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Lib = _dereq_('../../lib');\nvar getTopojsonFeatures = _dereq_('../../lib/topojson_utils').getTopojsonFeatures;\nvar geoJsonUtils = _dereq_('../../lib/geojson_utils');\nvar geoUtils = _dereq_('../../lib/geo_location_utils');\nvar findExtremes = _dereq_('../../plots/cartesian/autorange').findExtremes;\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nvar calcMarkerSize = _dereq_('../scatter/calc').calcMarkerSize;\nvar subTypes = _dereq_('../scatter/subtypes');\nvar style = _dereq_('./style');\n\nfunction plot(gd, geo, calcData) {\n var scatterLayer = geo.layers.frontplot.select('.scatterlayer');\n var gTraces = Lib.makeTraceGroups(scatterLayer, calcData, 'trace scattergeo');\n\n function removeBADNUM(d, node) {\n if(d.lonlat[0] === BADNUM) {\n d3.select(node).remove();\n }\n }\n\n // TODO find a way to order the inner nodes on update\n gTraces.selectAll('*').remove();\n\n gTraces.each(function(calcTrace) {\n var s = d3.select(this);\n var trace = calcTrace[0].trace;\n\n if(subTypes.hasLines(trace) || trace.fill !== 'none') {\n var lineCoords = geoJsonUtils.calcTraceToLineCoords(calcTrace);\n\n var lineData = (trace.fill !== 'none') ?\n geoJsonUtils.makePolygon(lineCoords) :\n geoJsonUtils.makeLine(lineCoords);\n\n s.selectAll('path.js-line')\n .data([{geojson: lineData, trace: trace}])\n .enter().append('path')\n .classed('js-line', true)\n .style('stroke-miterlimit', 2);\n }\n\n if(subTypes.hasMarkers(trace)) {\n s.selectAll('path.point')\n .data(Lib.identity)\n .enter().append('path')\n .classed('point', true)\n .each(function(calcPt) { removeBADNUM(calcPt, this); });\n }\n\n if(subTypes.hasText(trace)) {\n s.selectAll('g')\n .data(Lib.identity)\n .enter().append('g')\n .append('text')\n .each(function(calcPt) { removeBADNUM(calcPt, this); });\n }\n\n // call style here within topojson request callback\n style(gd, calcTrace);\n });\n}\n\nfunction calcGeoJSON(calcTrace, fullLayout) {\n var trace = calcTrace[0].trace;\n var geoLayout = fullLayout[trace.geo];\n var geo = geoLayout._subplot;\n var len = trace._length;\n var i, calcPt;\n\n if(Array.isArray(trace.locations)) {\n var locationmode = trace.locationmode;\n var features = locationmode === 'geojson-id' ?\n geoUtils.extractTraceFeature(calcTrace) :\n getTopojsonFeatures(trace, geo.topojson);\n\n for(i = 0; i < len; i++) {\n calcPt = calcTrace[i];\n\n var feature = locationmode === 'geojson-id' ?\n calcPt.fOut :\n geoUtils.locationToFeature(locationmode, calcPt.loc, features);\n\n calcPt.lonlat = feature ? feature.properties.ct : [BADNUM, BADNUM];\n }\n }\n\n var opts = {padded: true};\n var lonArray;\n var latArray;\n\n if(geoLayout.fitbounds === 'geojson' && trace.locationmode === 'geojson-id') {\n var bboxGeojson = geoUtils.computeBbox(geoUtils.getTraceGeojson(trace));\n lonArray = [bboxGeojson[0], bboxGeojson[2]];\n latArray = [bboxGeojson[1], bboxGeojson[3]];\n } else {\n lonArray = new Array(len);\n latArray = new Array(len);\n for(i = 0; i < len; i++) {\n calcPt = calcTrace[i];\n lonArray[i] = calcPt.lonlat[0];\n latArray[i] = calcPt.lonlat[1];\n }\n\n opts.ppad = calcMarkerSize(trace, len);\n }\n\n trace._extremes.lon = findExtremes(geoLayout.lonaxis._ax, lonArray, opts);\n trace._extremes.lat = findExtremes(geoLayout.lataxis._ax, latArray, opts);\n}\n\nmodule.exports = {\n calcGeoJSON: calcGeoJSON,\n plot: plot\n};\n\n},{\"../../constants/numerical\":479,\"../../lib\":503,\"../../lib/geo_location_utils\":496,\"../../lib/geojson_utils\":497,\"../../lib/topojson_utils\":532,\"../../plots/cartesian/autorange\":553,\"../scatter/calc\":926,\"../scatter/subtypes\":950,\"./style\":976,\"@plotly/d3\":58}],975:[function(_dereq_,module,exports){\n'use strict';\n\nvar subtypes = _dereq_('../scatter/subtypes');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nmodule.exports = function selectPoints(searchInfo, selectionTester) {\n var cd = searchInfo.cd;\n var xa = searchInfo.xaxis;\n var ya = searchInfo.yaxis;\n var selection = [];\n var trace = cd[0].trace;\n\n var di, lonlat, x, y, i;\n\n var hasOnlyLines = (!subtypes.hasMarkers(trace) && !subtypes.hasText(trace));\n if(hasOnlyLines) return [];\n\n if(selectionTester === false) {\n for(i = 0; i < cd.length; i++) {\n cd[i].selected = 0;\n }\n } else {\n for(i = 0; i < cd.length; i++) {\n di = cd[i];\n lonlat = di.lonlat;\n\n // some projection types can't handle BADNUMs\n if(lonlat[0] === BADNUM) continue;\n\n x = xa.c2p(lonlat);\n y = ya.c2p(lonlat);\n\n if(selectionTester.contains([x, y], null, i, searchInfo)) {\n selection.push({\n pointNumber: i,\n lon: lonlat[0],\n lat: lonlat[1]\n });\n di.selected = 1;\n } else {\n di.selected = 0;\n }\n }\n }\n\n return selection;\n};\n\n},{\"../../constants/numerical\":479,\"../scatter/subtypes\":950}],976:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Drawing = _dereq_('../../components/drawing');\nvar Color = _dereq_('../../components/color');\n\nvar scatterStyle = _dereq_('../scatter/style');\nvar stylePoints = scatterStyle.stylePoints;\nvar styleText = scatterStyle.styleText;\n\nmodule.exports = function style(gd, calcTrace) {\n if(calcTrace) styleTrace(gd, calcTrace);\n};\n\nfunction styleTrace(gd, calcTrace) {\n var trace = calcTrace[0].trace;\n var s = calcTrace[0].node3;\n\n s.style('opacity', calcTrace[0].trace.opacity);\n\n stylePoints(s, trace, gd);\n styleText(s, trace, gd);\n\n // this part is incompatible with Drawing.lineGroupStyle\n s.selectAll('path.js-line')\n .style('fill', 'none')\n .each(function(d) {\n var path = d3.select(this);\n var trace = d.trace;\n var line = trace.line || {};\n\n path.call(Color.stroke, line.color)\n .call(Drawing.dashLine, line.dash || '', line.width || 0);\n\n if(trace.fill !== 'none') {\n path.call(Color.fill, trace.fillcolor);\n }\n });\n}\n\n},{\"../../components/color\":366,\"../../components/drawing\":388,\"../scatter/style\":949,\"@plotly/d3\":58}],977:[function(_dereq_,module,exports){\n'use strict';\n\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar scatterAttrs = _dereq_('../scatter/attributes');\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\n\nvar sortObjectKeys = _dereq_('../../lib/sort_object_keys');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\nvar DASHES = _dereq_('./constants').DASHES;\n\nvar scatterLineAttrs = scatterAttrs.line;\nvar scatterMarkerAttrs = scatterAttrs.marker;\nvar scatterMarkerLineAttrs = scatterMarkerAttrs.line;\n\nvar attrs = module.exports = overrideAll({\n x: scatterAttrs.x,\n x0: scatterAttrs.x0,\n dx: scatterAttrs.dx,\n y: scatterAttrs.y,\n y0: scatterAttrs.y0,\n dy: scatterAttrs.dy,\n\n xperiod: scatterAttrs.xperiod,\n yperiod: scatterAttrs.yperiod,\n xperiod0: scatterAttrs.xperiod0,\n yperiod0: scatterAttrs.yperiod0,\n xperiodalignment: scatterAttrs.xperiodalignment,\n yperiodalignment: scatterAttrs.yperiodalignment,\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n\n text: scatterAttrs.text,\n hovertext: scatterAttrs.hovertext,\n\n textposition: scatterAttrs.textposition,\n textfont: scatterAttrs.textfont,\n\n mode: {\n valType: 'flaglist',\n flags: ['lines', 'markers', 'text'],\n extras: ['none'],\n },\n line: {\n color: scatterLineAttrs.color,\n width: scatterLineAttrs.width,\n shape: {\n valType: 'enumerated',\n values: ['linear', 'hv', 'vh', 'hvh', 'vhv'],\n dflt: 'linear',\n editType: 'plot',\n },\n dash: {\n valType: 'enumerated',\n values: sortObjectKeys(DASHES),\n dflt: 'solid',\n }\n },\n marker: extendFlat({}, colorScaleAttrs('marker'), {\n symbol: scatterMarkerAttrs.symbol,\n size: scatterMarkerAttrs.size,\n sizeref: scatterMarkerAttrs.sizeref,\n sizemin: scatterMarkerAttrs.sizemin,\n sizemode: scatterMarkerAttrs.sizemode,\n opacity: scatterMarkerAttrs.opacity,\n colorbar: scatterMarkerAttrs.colorbar,\n line: extendFlat({}, colorScaleAttrs('marker.line'), {\n width: scatterMarkerLineAttrs.width\n })\n }),\n connectgaps: scatterAttrs.connectgaps,\n fill: extendFlat({}, scatterAttrs.fill, {dflt: 'none'}),\n fillcolor: scatterAttrs.fillcolor,\n\n // no hoveron\n\n selected: {\n marker: scatterAttrs.selected.marker,\n textfont: scatterAttrs.selected.textfont\n },\n unselected: {\n marker: scatterAttrs.unselected.marker,\n textfont: scatterAttrs.unselected.textfont\n },\n\n opacity: baseAttrs.opacity\n\n}, 'calc', 'nested');\n\nattrs.x.editType = attrs.y.editType = attrs.x0.editType = attrs.y0.editType = 'calc+clearAxisTypes';\nattrs.hovertemplate = scatterAttrs.hovertemplate;\nattrs.texttemplate = scatterAttrs.texttemplate;\n\n},{\"../../components/colorscale/attributes\":373,\"../../lib/extend\":493,\"../../lib/sort_object_keys\":526,\"../../plot_api/edit_types\":536,\"../../plots/attributes\":550,\"../../plots/cartesian/axis_format_attributes\":557,\"../scatter/attributes\":925,\"./constants\":979}],978:[function(_dereq_,module,exports){\n'use strict';\n\nvar cluster = _dereq_('@plotly/point-cluster');\n\nvar Lib = _dereq_('../../lib');\nvar AxisIDs = _dereq_('../../plots/cartesian/axis_ids');\nvar findExtremes = _dereq_('../../plots/cartesian/autorange').findExtremes;\nvar alignPeriod = _dereq_('../../plots/cartesian/align_period');\n\nvar scatterCalc = _dereq_('../scatter/calc');\nvar calcMarkerSize = scatterCalc.calcMarkerSize;\nvar calcAxisExpansion = scatterCalc.calcAxisExpansion;\nvar setFirstScatter = scatterCalc.setFirstScatter;\nvar calcColorscale = _dereq_('../scatter/colorscale_calc');\nvar convert = _dereq_('./convert');\nvar sceneUpdate = _dereq_('./scene_update');\n\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\nvar TOO_MANY_POINTS = _dereq_('./constants').TOO_MANY_POINTS;\n\nmodule.exports = function calc(gd, trace) {\n var fullLayout = gd._fullLayout;\n var xa = AxisIDs.getFromId(gd, trace.xaxis);\n var ya = AxisIDs.getFromId(gd, trace.yaxis);\n var subplot = fullLayout._plots[trace.xaxis + trace.yaxis];\n var len = trace._length;\n var hasTooManyPoints = len >= TOO_MANY_POINTS;\n var len2 = len * 2;\n var stash = {};\n var i;\n\n var origX = xa.makeCalcdata(trace, 'x');\n var origY = ya.makeCalcdata(trace, 'y');\n var xObj = alignPeriod(trace, xa, 'x', origX);\n var yObj = alignPeriod(trace, ya, 'y', origY);\n var x = xObj.vals;\n var y = yObj.vals;\n trace._x = x;\n trace._y = y;\n\n if(trace.xperiodalignment) {\n trace._origX = origX;\n trace._xStarts = xObj.starts;\n trace._xEnds = xObj.ends;\n }\n if(trace.yperiodalignment) {\n trace._origY = origY;\n trace._yStarts = yObj.starts;\n trace._yEnds = yObj.ends;\n }\n\n // we need hi-precision for scatter2d,\n // regl-scatter2d uses NaNs for bad/missing values\n var positions = new Array(len2);\n var _ids = new Array(len);\n for(i = 0; i < len; i++) {\n positions[i * 2] = x[i] === BADNUM ? NaN : x[i];\n positions[i * 2 + 1] = y[i] === BADNUM ? NaN : y[i];\n // Pre-compute ids.\n _ids[i] = i;\n }\n\n if(xa.type === 'log') {\n for(i = 0; i < len2; i += 2) {\n positions[i] = xa.c2l(positions[i]);\n }\n }\n if(ya.type === 'log') {\n for(i = 1; i < len2; i += 2) {\n positions[i] = ya.c2l(positions[i]);\n }\n }\n\n // we don't build a tree for log axes since it takes long to convert log2px\n // and it is also\n if(hasTooManyPoints && (xa.type !== 'log' && ya.type !== 'log')) {\n // FIXME: delegate this to webworker\n stash.tree = cluster(positions);\n } else {\n stash.ids = _ids;\n }\n\n // create scene options and scene\n calcColorscale(gd, trace);\n var opts = sceneOptions(gd, subplot, trace, positions, x, y);\n var scene = sceneUpdate(gd, subplot);\n\n // Reuse SVG scatter axis expansion routine.\n // For graphs with very large number of points and array marker.size,\n // use average marker size instead to speed things up.\n setFirstScatter(fullLayout, trace);\n var ppad;\n if(!hasTooManyPoints) {\n ppad = calcMarkerSize(trace, len);\n } else if(opts.marker) {\n ppad = opts.marker.sizeAvg || Math.max(opts.marker.size, 3);\n }\n calcAxisExpansion(gd, trace, xa, ya, x, y, ppad);\n if(opts.errorX) expandForErrorBars(trace, xa, opts.errorX);\n if(opts.errorY) expandForErrorBars(trace, ya, opts.errorY);\n\n // set flags to create scene renderers\n if(opts.fill && !scene.fill2d) scene.fill2d = true;\n if(opts.marker && !scene.scatter2d) scene.scatter2d = true;\n if(opts.line && !scene.line2d) scene.line2d = true;\n if((opts.errorX || opts.errorY) && !scene.error2d) scene.error2d = true;\n if(opts.text && !scene.glText) scene.glText = true;\n if(opts.marker) opts.marker.snap = len;\n\n scene.lineOptions.push(opts.line);\n scene.errorXOptions.push(opts.errorX);\n scene.errorYOptions.push(opts.errorY);\n scene.fillOptions.push(opts.fill);\n scene.markerOptions.push(opts.marker);\n scene.markerSelectedOptions.push(opts.markerSel);\n scene.markerUnselectedOptions.push(opts.markerUnsel);\n scene.textOptions.push(opts.text);\n scene.textSelectedOptions.push(opts.textSel);\n scene.textUnselectedOptions.push(opts.textUnsel);\n scene.selectBatch.push([]);\n scene.unselectBatch.push([]);\n\n stash._scene = scene;\n stash.index = scene.count;\n stash.x = x;\n stash.y = y;\n stash.positions = positions;\n scene.count++;\n\n return [{x: false, y: false, t: stash, trace: trace}];\n};\n\nfunction expandForErrorBars(trace, ax, opts) {\n var extremes = trace._extremes[ax._id];\n var errExt = findExtremes(ax, opts._bnds, {padded: true});\n extremes.min = extremes.min.concat(errExt.min);\n extremes.max = extremes.max.concat(errExt.max);\n}\n\nfunction sceneOptions(gd, subplot, trace, positions, x, y) {\n var opts = convert.style(gd, trace);\n\n if(opts.marker) {\n opts.marker.positions = positions;\n }\n\n if(opts.line && positions.length > 1) {\n Lib.extendFlat(\n opts.line,\n convert.linePositions(gd, trace, positions)\n );\n }\n\n if(opts.errorX || opts.errorY) {\n var errors = convert.errorBarPositions(gd, trace, positions, x, y);\n\n if(opts.errorX) {\n Lib.extendFlat(opts.errorX, errors.x);\n }\n if(opts.errorY) {\n Lib.extendFlat(opts.errorY, errors.y);\n }\n }\n\n if(opts.text) {\n Lib.extendFlat(\n opts.text,\n {positions: positions},\n convert.textPosition(gd, trace, opts.text, opts.marker)\n );\n Lib.extendFlat(\n opts.textSel,\n {positions: positions},\n convert.textPosition(gd, trace, opts.text, opts.markerSel)\n );\n Lib.extendFlat(\n opts.textUnsel,\n {positions: positions},\n convert.textPosition(gd, trace, opts.text, opts.markerUnsel)\n );\n }\n\n return opts;\n}\n\n},{\"../../constants/numerical\":479,\"../../lib\":503,\"../../plots/cartesian/align_period\":551,\"../../plots/cartesian/autorange\":553,\"../../plots/cartesian/axis_ids\":558,\"../scatter/calc\":926,\"../scatter/colorscale_calc\":928,\"./constants\":979,\"./convert\":980,\"./scene_update\":988,\"@plotly/point-cluster\":59}],979:[function(_dereq_,module,exports){\n'use strict';\n\nvar SYMBOL_SIZE = 20;\n\nmodule.exports = {\n TOO_MANY_POINTS: 1e5,\n\n SYMBOL_SDF_SIZE: 200,\n SYMBOL_SIZE: SYMBOL_SIZE,\n SYMBOL_STROKE: SYMBOL_SIZE / 20,\n\n DOT_RE: /-dot/,\n OPEN_RE: /-open/,\n\n DASHES: {\n solid: [1],\n dot: [1, 1],\n dash: [4, 1],\n longdash: [8, 1],\n dashdot: [4, 1, 1, 1],\n longdashdot: [8, 1, 1, 1]\n }\n};\n\n},{}],980:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar svgSdf = _dereq_('svg-path-sdf');\nvar rgba = _dereq_('color-normalize');\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar Drawing = _dereq_('../../components/drawing');\nvar AxisIDs = _dereq_('../../plots/cartesian/axis_ids');\n\nvar formatColor = _dereq_('../../lib/gl_format_color').formatColor;\nvar subTypes = _dereq_('../scatter/subtypes');\nvar makeBubbleSizeFn = _dereq_('../scatter/make_bubble_size_func');\n\nvar helpers = _dereq_('./helpers');\nvar constants = _dereq_('./constants');\nvar DESELECTDIM = _dereq_('../../constants/interactions').DESELECTDIM;\n\nvar TEXTOFFSETSIGN = {\n start: 1, left: 1, end: -1, right: -1, middle: 0, center: 0, bottom: 1, top: -1\n};\n\nvar appendArrayPointValue = _dereq_('../../components/fx/helpers').appendArrayPointValue;\n\nfunction convertStyle(gd, trace) {\n var i;\n\n var opts = {\n marker: undefined,\n markerSel: undefined,\n markerUnsel: undefined,\n line: undefined,\n fill: undefined,\n errorX: undefined,\n errorY: undefined,\n text: undefined,\n textSel: undefined,\n textUnsel: undefined\n };\n\n var plotGlPixelRatio = gd._context.plotGlPixelRatio;\n\n if(trace.visible !== true) return opts;\n\n if(subTypes.hasText(trace)) {\n opts.text = convertTextStyle(gd, trace);\n opts.textSel = convertTextSelection(gd, trace, trace.selected);\n opts.textUnsel = convertTextSelection(gd, trace, trace.unselected);\n }\n\n if(subTypes.hasMarkers(trace)) {\n opts.marker = convertMarkerStyle(trace);\n opts.markerSel = convertMarkerSelection(trace, trace.selected);\n opts.markerUnsel = convertMarkerSelection(trace, trace.unselected);\n\n if(!trace.unselected && Lib.isArrayOrTypedArray(trace.marker.opacity)) {\n var mo = trace.marker.opacity;\n opts.markerUnsel.opacity = new Array(mo.length);\n for(i = 0; i < mo.length; i++) {\n opts.markerUnsel.opacity[i] = DESELECTDIM * mo[i];\n }\n }\n }\n\n if(subTypes.hasLines(trace)) {\n opts.line = {\n overlay: true,\n thickness: trace.line.width * plotGlPixelRatio,\n color: trace.line.color,\n opacity: trace.opacity\n };\n\n var dashes = (constants.DASHES[trace.line.dash] || [1]).slice();\n for(i = 0; i < dashes.length; ++i) {\n dashes[i] *= trace.line.width * plotGlPixelRatio;\n }\n opts.line.dashes = dashes;\n }\n\n if(trace.error_x && trace.error_x.visible) {\n opts.errorX = convertErrorBarStyle(trace, trace.error_x, plotGlPixelRatio);\n }\n\n if(trace.error_y && trace.error_y.visible) {\n opts.errorY = convertErrorBarStyle(trace, trace.error_y, plotGlPixelRatio);\n }\n\n if(!!trace.fill && trace.fill !== 'none') {\n opts.fill = {\n closed: true,\n fill: trace.fillcolor,\n thickness: 0\n };\n }\n\n return opts;\n}\n\nfunction convertTextStyle(gd, trace) {\n var fullLayout = gd._fullLayout;\n var count = trace._length;\n var textfontIn = trace.textfont;\n var textpositionIn = trace.textposition;\n var textPos = Array.isArray(textpositionIn) ? textpositionIn : [textpositionIn];\n var tfc = textfontIn.color;\n var tfs = textfontIn.size;\n var tff = textfontIn.family;\n var optsOut = {};\n var i;\n var plotGlPixelRatio = gd._context.plotGlPixelRatio;\n\n var texttemplate = trace.texttemplate;\n if(texttemplate) {\n optsOut.text = [];\n\n var d3locale = fullLayout._d3locale;\n var isArray = Array.isArray(texttemplate);\n var N = isArray ? Math.min(texttemplate.length, count) : count;\n var txt = isArray ?\n function(i) { return texttemplate[i]; } :\n function() { return texttemplate; };\n\n for(i = 0; i < N; i++) {\n var d = {i: i};\n var labels = trace._module.formatLabels(d, trace, fullLayout);\n var pointValues = {};\n appendArrayPointValue(pointValues, trace, i);\n var meta = trace._meta || {};\n optsOut.text.push(Lib.texttemplateString(txt(i), labels, d3locale, pointValues, d, meta));\n }\n } else {\n if(Array.isArray(trace.text) && trace.text.length < count) {\n // if text array is shorter, we'll need to append to it, so let's slice to prevent mutating\n optsOut.text = trace.text.slice();\n } else {\n optsOut.text = trace.text;\n }\n }\n // pad text array with empty strings\n if(Array.isArray(optsOut.text)) {\n for(i = optsOut.text.length; i < count; i++) {\n optsOut.text[i] = '';\n }\n }\n\n optsOut.opacity = trace.opacity;\n optsOut.font = {};\n optsOut.align = [];\n optsOut.baseline = [];\n\n for(i = 0; i < textPos.length; i++) {\n var tp = textPos[i].split(/\\s+/);\n\n switch(tp[1]) {\n case 'left':\n optsOut.align.push('right');\n break;\n case 'right':\n optsOut.align.push('left');\n break;\n default:\n optsOut.align.push(tp[1]);\n }\n switch(tp[0]) {\n case 'top':\n optsOut.baseline.push('bottom');\n break;\n case 'bottom':\n optsOut.baseline.push('top');\n break;\n default:\n optsOut.baseline.push(tp[0]);\n }\n }\n\n if(Array.isArray(tfc)) {\n optsOut.color = new Array(count);\n for(i = 0; i < count; i++) {\n optsOut.color[i] = tfc[i];\n }\n } else {\n optsOut.color = tfc;\n }\n\n if(Lib.isArrayOrTypedArray(tfs) || Array.isArray(tff)) {\n // if any textfont param is array - make render a batch\n optsOut.font = new Array(count);\n for(i = 0; i < count; i++) {\n var fonti = optsOut.font[i] = {};\n\n fonti.size = (\n Lib.isTypedArray(tfs) ? tfs[i] :\n Array.isArray(tfs) ? (\n isNumeric(tfs[i]) ? tfs[i] : 0\n ) : tfs\n ) * plotGlPixelRatio;\n\n fonti.family = Array.isArray(tff) ? tff[i] : tff;\n }\n } else {\n // if both are single values, make render fast single-value\n optsOut.font = {size: tfs * plotGlPixelRatio, family: tff};\n }\n\n return optsOut;\n}\n\n\nfunction convertMarkerStyle(trace) {\n var count = trace._length;\n var optsIn = trace.marker;\n var optsOut = {};\n var i;\n\n var multiSymbol = Lib.isArrayOrTypedArray(optsIn.symbol);\n var multiColor = Lib.isArrayOrTypedArray(optsIn.color);\n var multiLineColor = Lib.isArrayOrTypedArray(optsIn.line.color);\n var multiOpacity = Lib.isArrayOrTypedArray(optsIn.opacity);\n var multiSize = Lib.isArrayOrTypedArray(optsIn.size);\n var multiLineWidth = Lib.isArrayOrTypedArray(optsIn.line.width);\n\n var isOpen;\n if(!multiSymbol) isOpen = helpers.isOpenSymbol(optsIn.symbol);\n\n // prepare colors\n if(multiSymbol || multiColor || multiLineColor || multiOpacity) {\n optsOut.colors = new Array(count);\n optsOut.borderColors = new Array(count);\n\n var colors = formatColor(optsIn, optsIn.opacity, count);\n var borderColors = formatColor(optsIn.line, optsIn.opacity, count);\n\n if(!Array.isArray(borderColors[0])) {\n var borderColor = borderColors;\n borderColors = Array(count);\n for(i = 0; i < count; i++) {\n borderColors[i] = borderColor;\n }\n }\n if(!Array.isArray(colors[0])) {\n var color = colors;\n colors = Array(count);\n for(i = 0; i < count; i++) {\n colors[i] = color;\n }\n }\n\n optsOut.colors = colors;\n optsOut.borderColors = borderColors;\n\n for(i = 0; i < count; i++) {\n if(multiSymbol) {\n var symbol = optsIn.symbol[i];\n isOpen = helpers.isOpenSymbol(symbol);\n }\n if(isOpen) {\n borderColors[i] = colors[i].slice();\n colors[i] = colors[i].slice();\n colors[i][3] = 0;\n }\n }\n\n optsOut.opacity = trace.opacity;\n } else {\n if(isOpen) {\n optsOut.color = rgba(optsIn.color, 'uint8');\n optsOut.color[3] = 0;\n optsOut.borderColor = rgba(optsIn.color, 'uint8');\n } else {\n optsOut.color = rgba(optsIn.color, 'uint8');\n optsOut.borderColor = rgba(optsIn.line.color, 'uint8');\n }\n\n optsOut.opacity = trace.opacity * optsIn.opacity;\n }\n\n // prepare symbols\n if(multiSymbol) {\n optsOut.markers = new Array(count);\n for(i = 0; i < count; i++) {\n optsOut.markers[i] = getSymbolSdf(optsIn.symbol[i]);\n }\n } else {\n optsOut.marker = getSymbolSdf(optsIn.symbol);\n }\n\n // prepare sizes\n var sizeFactor = 1;\n var markerSizeFunc = makeBubbleSizeFn(trace, sizeFactor);\n var s;\n\n if(multiSize || multiLineWidth) {\n var sizes = optsOut.sizes = new Array(count);\n var borderSizes = optsOut.borderSizes = new Array(count);\n var sizeTotal = 0;\n var sizeAvg;\n\n if(multiSize) {\n for(i = 0; i < count; i++) {\n sizes[i] = markerSizeFunc(optsIn.size[i]);\n sizeTotal += sizes[i];\n }\n sizeAvg = sizeTotal / count;\n } else {\n s = markerSizeFunc(optsIn.size);\n for(i = 0; i < count; i++) {\n sizes[i] = s;\n }\n }\n\n // See https://github.com/plotly/plotly.js/pull/1781#discussion_r121820798\n if(multiLineWidth) {\n for(i = 0; i < count; i++) {\n borderSizes[i] = optsIn.line.width[i];\n }\n } else {\n s = optsIn.line.width;\n for(i = 0; i < count; i++) {\n borderSizes[i] = s;\n }\n }\n\n optsOut.sizeAvg = sizeAvg;\n } else {\n optsOut.size = markerSizeFunc(optsIn && optsIn.size || 10);\n optsOut.borderSizes = markerSizeFunc(optsIn.line.width);\n }\n\n return optsOut;\n}\n\nfunction convertMarkerSelection(trace, target) {\n var optsIn = trace.marker;\n var optsOut = {};\n\n if(!target) return optsOut;\n\n if(target.marker && target.marker.symbol) {\n optsOut = convertMarkerStyle(Lib.extendFlat({}, optsIn, target.marker));\n } else if(target.marker) {\n if(target.marker.size) optsOut.size = target.marker.size;\n if(target.marker.color) optsOut.colors = target.marker.color;\n if(target.marker.opacity !== undefined) optsOut.opacity = target.marker.opacity;\n }\n\n return optsOut;\n}\n\nfunction convertTextSelection(gd, trace, target) {\n var optsOut = {};\n\n if(!target) return optsOut;\n\n if(target.textfont) {\n var optsIn = {\n opacity: 1,\n text: trace.text,\n texttemplate: trace.texttemplate,\n textposition: trace.textposition,\n textfont: Lib.extendFlat({}, trace.textfont)\n };\n if(target.textfont) {\n Lib.extendFlat(optsIn.textfont, target.textfont);\n }\n optsOut = convertTextStyle(gd, optsIn);\n }\n\n return optsOut;\n}\n\nfunction convertErrorBarStyle(trace, target, plotGlPixelRatio) {\n var optsOut = {\n capSize: target.width * 2 * plotGlPixelRatio,\n lineWidth: target.thickness * plotGlPixelRatio,\n color: target.color\n };\n\n if(target.copy_ystyle) {\n optsOut = trace.error_y;\n }\n\n return optsOut;\n}\n\nvar SYMBOL_SDF_SIZE = constants.SYMBOL_SDF_SIZE;\nvar SYMBOL_SIZE = constants.SYMBOL_SIZE;\nvar SYMBOL_STROKE = constants.SYMBOL_STROKE;\nvar SYMBOL_SDF = {};\nvar SYMBOL_SVG_CIRCLE = Drawing.symbolFuncs[0](SYMBOL_SIZE * 0.05);\n\nfunction getSymbolSdf(symbol) {\n if(symbol === 'circle') return null;\n\n var symbolPath, symbolSdf;\n var symbolNumber = Drawing.symbolNumber(symbol);\n var symbolFunc = Drawing.symbolFuncs[symbolNumber % 100];\n var symbolNoDot = !!Drawing.symbolNoDot[symbolNumber % 100];\n var symbolNoFill = !!Drawing.symbolNoFill[symbolNumber % 100];\n\n var isDot = helpers.isDotSymbol(symbol);\n\n // get symbol sdf from cache or generate it\n if(SYMBOL_SDF[symbol]) return SYMBOL_SDF[symbol];\n\n if(isDot && !symbolNoDot) {\n symbolPath = symbolFunc(SYMBOL_SIZE * 1.1) + SYMBOL_SVG_CIRCLE;\n } else {\n symbolPath = symbolFunc(SYMBOL_SIZE);\n }\n\n symbolSdf = svgSdf(symbolPath, {\n w: SYMBOL_SDF_SIZE,\n h: SYMBOL_SDF_SIZE,\n viewBox: [-SYMBOL_SIZE, -SYMBOL_SIZE, SYMBOL_SIZE, SYMBOL_SIZE],\n stroke: symbolNoFill ? SYMBOL_STROKE : -SYMBOL_STROKE\n });\n SYMBOL_SDF[symbol] = symbolSdf;\n\n return symbolSdf || null;\n}\n\nfunction convertLinePositions(gd, trace, positions) {\n var len = positions.length;\n var count = len / 2;\n var linePositions;\n var i;\n\n if(subTypes.hasLines(trace) && count) {\n if(trace.line.shape === 'hv') {\n linePositions = [];\n for(i = 0; i < count - 1; i++) {\n if(isNaN(positions[i * 2]) || isNaN(positions[i * 2 + 1])) {\n linePositions.push(NaN, NaN, NaN, NaN);\n } else {\n linePositions.push(positions[i * 2], positions[i * 2 + 1]);\n if(!isNaN(positions[i * 2 + 2]) && !isNaN(positions[i * 2 + 3])) {\n linePositions.push(positions[i * 2 + 2], positions[i * 2 + 1]);\n } else {\n linePositions.push(NaN, NaN);\n }\n }\n }\n linePositions.push(positions[len - 2], positions[len - 1]);\n } else if(trace.line.shape === 'hvh') {\n linePositions = [];\n for(i = 0; i < count - 1; i++) {\n if(isNaN(positions[i * 2]) || isNaN(positions[i * 2 + 1]) || isNaN(positions[i * 2 + 2]) || isNaN(positions[i * 2 + 3])) {\n if(!isNaN(positions[i * 2]) && !isNaN(positions[i * 2 + 1])) {\n linePositions.push(positions[i * 2], positions[i * 2 + 1]);\n } else {\n linePositions.push(NaN, NaN);\n }\n linePositions.push(NaN, NaN);\n } else {\n var midPtX = (positions[i * 2] + positions[i * 2 + 2]) / 2;\n linePositions.push(\n positions[i * 2],\n positions[i * 2 + 1],\n midPtX,\n positions[i * 2 + 1],\n midPtX,\n positions[i * 2 + 3]\n );\n }\n }\n linePositions.push(positions[len - 2], positions[len - 1]);\n } else if(trace.line.shape === 'vhv') {\n linePositions = [];\n for(i = 0; i < count - 1; i++) {\n if(isNaN(positions[i * 2]) || isNaN(positions[i * 2 + 1]) || isNaN(positions[i * 2 + 2]) || isNaN(positions[i * 2 + 3])) {\n if(!isNaN(positions[i * 2]) && !isNaN(positions[i * 2 + 1])) {\n linePositions.push(positions[i * 2], positions[i * 2 + 1]);\n } else {\n linePositions.push(NaN, NaN);\n }\n linePositions.push(NaN, NaN);\n } else {\n var midPtY = (positions[i * 2 + 1] + positions[i * 2 + 3]) / 2;\n linePositions.push(\n positions[i * 2],\n positions[i * 2 + 1],\n positions[i * 2],\n midPtY,\n positions[i * 2 + 2],\n midPtY\n );\n }\n }\n linePositions.push(positions[len - 2], positions[len - 1]);\n } else if(trace.line.shape === 'vh') {\n linePositions = [];\n for(i = 0; i < count - 1; i++) {\n if(isNaN(positions[i * 2]) || isNaN(positions[i * 2 + 1])) {\n linePositions.push(NaN, NaN, NaN, NaN);\n } else {\n linePositions.push(positions[i * 2], positions[i * 2 + 1]);\n if(!isNaN(positions[i * 2 + 2]) && !isNaN(positions[i * 2 + 3])) {\n linePositions.push(positions[i * 2], positions[i * 2 + 3]);\n } else {\n linePositions.push(NaN, NaN);\n }\n }\n }\n linePositions.push(positions[len - 2], positions[len - 1]);\n } else {\n linePositions = positions;\n }\n }\n\n // If we have data with gaps, we ought to use rect joins\n // FIXME: get rid of this\n var hasNaN = false;\n for(i = 0; i < linePositions.length; i++) {\n if(isNaN(linePositions[i])) {\n hasNaN = true;\n break;\n }\n }\n\n var join = (hasNaN || linePositions.length > constants.TOO_MANY_POINTS) ? 'rect' :\n subTypes.hasMarkers(trace) ? 'rect' : 'round';\n\n // fill gaps\n if(hasNaN && trace.connectgaps) {\n var lastX = linePositions[0];\n var lastY = linePositions[1];\n\n for(i = 0; i < linePositions.length; i += 2) {\n if(isNaN(linePositions[i]) || isNaN(linePositions[i + 1])) {\n linePositions[i] = lastX;\n linePositions[i + 1] = lastY;\n } else {\n lastX = linePositions[i];\n lastY = linePositions[i + 1];\n }\n }\n }\n\n return {\n join: join,\n positions: linePositions\n };\n}\n\nfunction convertErrorBarPositions(gd, trace, positions, x, y) {\n var makeComputeError = Registry.getComponentMethod('errorbars', 'makeComputeError');\n var xa = AxisIDs.getFromId(gd, trace.xaxis);\n var ya = AxisIDs.getFromId(gd, trace.yaxis);\n var count = positions.length / 2;\n var out = {};\n\n function convertOneAxis(coords, ax) {\n var axLetter = ax._id.charAt(0);\n var opts = trace['error_' + axLetter];\n\n if(opts && opts.visible && (ax.type === 'linear' || ax.type === 'log')) {\n var computeError = makeComputeError(opts);\n var pOffset = {x: 0, y: 1}[axLetter];\n var eOffset = {x: [0, 1, 2, 3], y: [2, 3, 0, 1]}[axLetter];\n var errors = new Float64Array(4 * count);\n var minShoe = Infinity;\n var maxHat = -Infinity;\n\n for(var i = 0, j = 0; i < count; i++, j += 4) {\n var dc = coords[i];\n\n if(isNumeric(dc)) {\n var dl = positions[i * 2 + pOffset];\n var vals = computeError(dc, i);\n var lv = vals[0];\n var hv = vals[1];\n\n if(isNumeric(lv) && isNumeric(hv)) {\n var shoe = dc - lv;\n var hat = dc + hv;\n\n errors[j + eOffset[0]] = dl - ax.c2l(shoe);\n errors[j + eOffset[1]] = ax.c2l(hat) - dl;\n errors[j + eOffset[2]] = 0;\n errors[j + eOffset[3]] = 0;\n\n minShoe = Math.min(minShoe, dc - lv);\n maxHat = Math.max(maxHat, dc + hv);\n }\n }\n }\n\n out[axLetter] = {\n positions: positions,\n errors: errors,\n _bnds: [minShoe, maxHat]\n };\n }\n }\n\n convertOneAxis(x, xa);\n convertOneAxis(y, ya);\n return out;\n}\n\nfunction convertTextPosition(gd, trace, textOpts, markerOpts) {\n var count = trace._length;\n var out = {};\n var i;\n\n // corresponds to textPointPosition from component.drawing\n if(subTypes.hasMarkers(trace)) {\n var fontOpts = textOpts.font;\n var align = textOpts.align;\n var baseline = textOpts.baseline;\n out.offset = new Array(count);\n\n for(i = 0; i < count; i++) {\n var ms = markerOpts.sizes ? markerOpts.sizes[i] : markerOpts.size;\n var fs = Array.isArray(fontOpts) ? fontOpts[i].size : fontOpts.size;\n\n var a = Array.isArray(align) ?\n (align.length > 1 ? align[i] : align[0]) :\n align;\n var b = Array.isArray(baseline) ?\n (baseline.length > 1 ? baseline[i] : baseline[0]) :\n baseline;\n\n var hSign = TEXTOFFSETSIGN[a];\n var vSign = TEXTOFFSETSIGN[b];\n var xPad = ms ? ms / 0.8 + 1 : 0;\n var yPad = -vSign * xPad - vSign * 0.5;\n out.offset[i] = [hSign * xPad / fs, yPad / fs];\n }\n }\n\n return out;\n}\n\nmodule.exports = {\n style: convertStyle,\n\n markerStyle: convertMarkerStyle,\n markerSelection: convertMarkerSelection,\n\n linePositions: convertLinePositions,\n errorBarPositions: convertErrorBarPositions,\n textPosition: convertTextPosition\n};\n\n},{\"../../components/drawing\":388,\"../../components/fx/helpers\":402,\"../../constants/interactions\":478,\"../../lib\":503,\"../../lib/gl_format_color\":499,\"../../plots/cartesian/axis_ids\":558,\"../../registry\":638,\"../scatter/make_bubble_size_func\":942,\"../scatter/subtypes\":950,\"./constants\":979,\"./helpers\":984,\"color-normalize\":89,\"fast-isnumeric\":190,\"svg-path-sdf\":310}],981:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Registry = _dereq_('../../registry');\n\nvar helpers = _dereq_('./helpers');\nvar attributes = _dereq_('./attributes');\nvar constants = _dereq_('../scatter/constants');\nvar subTypes = _dereq_('../scatter/subtypes');\nvar handleXYDefaults = _dereq_('../scatter/xy_defaults');\nvar handlePeriodDefaults = _dereq_('../scatter/period_defaults');\nvar handleMarkerDefaults = _dereq_('../scatter/marker_defaults');\nvar handleLineDefaults = _dereq_('../scatter/line_defaults');\nvar handleFillColorDefaults = _dereq_('../scatter/fillcolor_defaults');\nvar handleTextDefaults = _dereq_('../scatter/text_defaults');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var isOpen = traceIn.marker ? helpers.isOpenSymbol(traceIn.marker.symbol) : false;\n var isBubble = subTypes.isBubble(traceIn);\n\n var len = handleXYDefaults(traceIn, traceOut, layout, coerce);\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n handlePeriodDefaults(traceIn, traceOut, layout, coerce);\n coerce('xhoverformat');\n coerce('yhoverformat');\n\n var defaultMode = len < constants.PTS_LINESONLY ? 'lines+markers' : 'lines';\n\n coerce('text');\n coerce('hovertext');\n coerce('hovertemplate');\n coerce('mode', defaultMode);\n\n if(subTypes.hasLines(traceOut)) {\n coerce('connectgaps');\n handleLineDefaults(traceIn, traceOut, defaultColor, layout, coerce);\n coerce('line.shape');\n }\n\n if(subTypes.hasMarkers(traceOut)) {\n handleMarkerDefaults(traceIn, traceOut, defaultColor, layout, coerce);\n coerce('marker.line.width', isOpen || isBubble ? 1 : 0);\n }\n\n if(subTypes.hasText(traceOut)) {\n coerce('texttemplate');\n handleTextDefaults(traceIn, traceOut, layout, coerce);\n }\n\n var lineColor = (traceOut.line || {}).color;\n var markerColor = (traceOut.marker || {}).color;\n\n coerce('fill');\n if(traceOut.fill !== 'none') {\n handleFillColorDefaults(traceIn, traceOut, defaultColor, coerce);\n }\n\n var errorBarsSupplyDefaults = Registry.getComponentMethod('errorbars', 'supplyDefaults');\n errorBarsSupplyDefaults(traceIn, traceOut, lineColor || markerColor || defaultColor, {axis: 'y'});\n errorBarsSupplyDefaults(traceIn, traceOut, lineColor || markerColor || defaultColor, {axis: 'x', inherit: 'y'});\n\n Lib.coerceSelectionMarkerOpacity(traceOut, coerce);\n};\n\n},{\"../../lib\":503,\"../../registry\":638,\"../scatter/constants\":929,\"../scatter/fillcolor_defaults\":933,\"../scatter/line_defaults\":938,\"../scatter/marker_defaults\":944,\"../scatter/period_defaults\":945,\"../scatter/subtypes\":950,\"../scatter/text_defaults\":951,\"../scatter/xy_defaults\":952,\"./attributes\":977,\"./helpers\":984}],982:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Color = _dereq_('../../components/color');\n\nvar DESELECTDIM = _dereq_('../../constants/interactions').DESELECTDIM;\n\nfunction styleTextSelection(cd) {\n var cd0 = cd[0];\n var trace = cd0.trace;\n var stash = cd0.t;\n var scene = stash._scene;\n var index = stash.index;\n var els = scene.selectBatch[index];\n var unels = scene.unselectBatch[index];\n var baseOpts = scene.textOptions[index];\n var selOpts = scene.textSelectedOptions[index] || {};\n var unselOpts = scene.textUnselectedOptions[index] || {};\n var opts = Lib.extendFlat({}, baseOpts);\n var i, j;\n\n if(els.length || unels.length) {\n var stc = selOpts.color;\n var utc = unselOpts.color;\n var base = baseOpts.color;\n var hasArrayBase = Array.isArray(base);\n opts.color = new Array(trace._length);\n\n for(i = 0; i < els.length; i++) {\n j = els[i];\n opts.color[j] = stc || (hasArrayBase ? base[j] : base);\n }\n for(i = 0; i < unels.length; i++) {\n j = unels[i];\n var basej = hasArrayBase ? base[j] : base;\n opts.color[j] = utc ? utc :\n stc ? basej : Color.addOpacity(basej, DESELECTDIM);\n }\n }\n\n scene.glText[index].update(opts);\n}\n\nmodule.exports = {\n styleTextSelection: styleTextSelection\n};\n\n},{\"../../components/color\":366,\"../../constants/interactions\":478,\"../../lib\":503}],983:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterFormatLabels = _dereq_('../scatter/format_labels');\n\nmodule.exports = function formatLabels(cdi, trace, fullLayout) {\n var i = cdi.i;\n if(!('x' in cdi)) cdi.x = trace._x[i];\n if(!('y' in cdi)) cdi.y = trace._y[i];\n return scatterFormatLabels(cdi, trace, fullLayout);\n};\n\n},{\"../scatter/format_labels\":934}],984:[function(_dereq_,module,exports){\n'use strict';\n\nvar constants = _dereq_('./constants');\n\nexports.isOpenSymbol = function(symbol) {\n return (typeof symbol === 'string') ?\n constants.OPEN_RE.test(symbol) :\n symbol % 200 > 100;\n};\n\nexports.isDotSymbol = function(symbol) {\n return (typeof symbol === 'string') ?\n constants.DOT_RE.test(symbol) :\n symbol > 200;\n};\n\n},{\"./constants\":979}],985:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar getTraceColor = _dereq_('../scatter/get_trace_color');\n\nfunction hoverPoints(pointData, xval, yval, hovermode) {\n var cd = pointData.cd;\n var stash = cd[0].t;\n var trace = cd[0].trace;\n var xa = pointData.xa;\n var ya = pointData.ya;\n var x = stash.x;\n var y = stash.y;\n var xpx = xa.c2p(xval);\n var ypx = ya.c2p(yval);\n var maxDistance = pointData.distance;\n var ids;\n\n // FIXME: make sure this is a proper way to calc search radius\n if(stash.tree) {\n var xl = xa.p2c(xpx - maxDistance);\n var xr = xa.p2c(xpx + maxDistance);\n var yl = ya.p2c(ypx - maxDistance);\n var yr = ya.p2c(ypx + maxDistance);\n\n if(hovermode === 'x') {\n ids = stash.tree.range(\n Math.min(xl, xr), Math.min(ya._rl[0], ya._rl[1]),\n Math.max(xl, xr), Math.max(ya._rl[0], ya._rl[1])\n );\n } else {\n ids = stash.tree.range(\n Math.min(xl, xr), Math.min(yl, yr),\n Math.max(xl, xr), Math.max(yl, yr)\n );\n }\n } else {\n ids = stash.ids;\n }\n\n // pick the id closest to the point\n // note that point possibly may not be found\n var k, closestId, ptx, pty, i, dx, dy, dist, dxy;\n\n var minDist = maxDistance;\n if(hovermode === 'x') {\n var xPeriod = !!trace.xperiodalignment;\n var yPeriod = !!trace.yperiodalignment;\n\n for(i = 0; i < ids.length; i++) {\n k = ids[i];\n ptx = x[k];\n\n dx = Math.abs(xa.c2p(ptx) - xpx);\n if(xPeriod) {\n var x0 = xa.c2p(trace._xStarts[k]);\n var x1 = xa.c2p(trace._xEnds[k]);\n\n dx = (\n xpx >= Math.min(x0, x1) &&\n xpx <= Math.max(x0, x1)\n ) ? 0 : Infinity;\n }\n\n if(dx < minDist) {\n minDist = dx;\n pty = y[k];\n dy = ya.c2p(pty) - ypx;\n\n if(yPeriod) {\n var y0 = ya.c2p(trace._yStarts[k]);\n var y1 = ya.c2p(trace._yEnds[k]);\n\n dy = (\n ypx >= Math.min(y0, y1) &&\n ypx <= Math.max(y0, y1)\n ) ? 0 : Infinity;\n }\n\n dxy = Math.sqrt(dx * dx + dy * dy);\n closestId = ids[i];\n }\n }\n } else {\n for(i = ids.length - 1; i > -1; i--) {\n k = ids[i];\n ptx = x[k];\n pty = y[k];\n dx = xa.c2p(ptx) - xpx;\n dy = ya.c2p(pty) - ypx;\n\n dist = Math.sqrt(dx * dx + dy * dy);\n if(dist < minDist) {\n minDist = dxy = dist;\n closestId = k;\n }\n }\n }\n\n pointData.index = closestId;\n pointData.distance = minDist;\n pointData.dxy = dxy;\n\n if(closestId === undefined) return [pointData];\n\n return [calcHover(pointData, x, y, trace)];\n}\n\nfunction calcHover(pointData, x, y, trace) {\n var xa = pointData.xa;\n var ya = pointData.ya;\n var minDist = pointData.distance;\n var dxy = pointData.dxy;\n var id = pointData.index;\n\n // the closest data point\n var di = {\n pointNumber: id,\n x: x[id],\n y: y[id]\n };\n\n // that is single-item arrays_to_calcdata excerpt, since we are doing it for a single point and we don't have to do it beforehead for 1e6 points\n di.tx = Array.isArray(trace.text) ? trace.text[id] : trace.text;\n di.htx = Array.isArray(trace.hovertext) ? trace.hovertext[id] : trace.hovertext;\n di.data = Array.isArray(trace.customdata) ? trace.customdata[id] : trace.customdata;\n di.tp = Array.isArray(trace.textposition) ? trace.textposition[id] : trace.textposition;\n\n var font = trace.textfont;\n if(font) {\n di.ts = Lib.isArrayOrTypedArray(font.size) ? font.size[id] : font.size;\n di.tc = Array.isArray(font.color) ? font.color[id] : font.color;\n di.tf = Array.isArray(font.family) ? font.family[id] : font.family;\n }\n\n var marker = trace.marker;\n if(marker) {\n di.ms = Lib.isArrayOrTypedArray(marker.size) ? marker.size[id] : marker.size;\n di.mo = Lib.isArrayOrTypedArray(marker.opacity) ? marker.opacity[id] : marker.opacity;\n di.mx = Lib.isArrayOrTypedArray(marker.symbol) ? marker.symbol[id] : marker.symbol;\n di.mc = Lib.isArrayOrTypedArray(marker.color) ? marker.color[id] : marker.color;\n }\n\n var line = marker && marker.line;\n if(line) {\n di.mlc = Array.isArray(line.color) ? line.color[id] : line.color;\n di.mlw = Lib.isArrayOrTypedArray(line.width) ? line.width[id] : line.width;\n }\n\n var grad = marker && marker.gradient;\n if(grad && grad.type !== 'none') {\n di.mgt = Array.isArray(grad.type) ? grad.type[id] : grad.type;\n di.mgc = Array.isArray(grad.color) ? grad.color[id] : grad.color;\n }\n\n var xp = xa.c2p(di.x, true);\n var yp = ya.c2p(di.y, true);\n var rad = di.mrc || 1;\n\n var hoverlabel = trace.hoverlabel;\n\n if(hoverlabel) {\n di.hbg = Array.isArray(hoverlabel.bgcolor) ? hoverlabel.bgcolor[id] : hoverlabel.bgcolor;\n di.hbc = Array.isArray(hoverlabel.bordercolor) ? hoverlabel.bordercolor[id] : hoverlabel.bordercolor;\n di.hts = Lib.isArrayOrTypedArray(hoverlabel.font.size) ? hoverlabel.font.size[id] : hoverlabel.font.size;\n di.htc = Array.isArray(hoverlabel.font.color) ? hoverlabel.font.color[id] : hoverlabel.font.color;\n di.htf = Array.isArray(hoverlabel.font.family) ? hoverlabel.font.family[id] : hoverlabel.font.family;\n di.hnl = Lib.isArrayOrTypedArray(hoverlabel.namelength) ? hoverlabel.namelength[id] : hoverlabel.namelength;\n }\n var hoverinfo = trace.hoverinfo;\n if(hoverinfo) {\n di.hi = Array.isArray(hoverinfo) ? hoverinfo[id] : hoverinfo;\n }\n\n var hovertemplate = trace.hovertemplate;\n if(hovertemplate) {\n di.ht = Array.isArray(hovertemplate) ? hovertemplate[id] : hovertemplate;\n }\n\n var fakeCd = {};\n fakeCd[pointData.index] = di;\n\n var origX = trace._origX;\n var origY = trace._origY;\n\n var pointData2 = Lib.extendFlat({}, pointData, {\n color: getTraceColor(trace, di),\n\n x0: xp - rad,\n x1: xp + rad,\n xLabelVal: origX ? origX[id] : di.x,\n\n y0: yp - rad,\n y1: yp + rad,\n yLabelVal: origY ? origY[id] : di.y,\n\n cd: fakeCd,\n distance: minDist,\n spikeDistance: dxy,\n\n hovertemplate: di.ht\n });\n\n if(di.htx) pointData2.text = di.htx;\n else if(di.tx) pointData2.text = di.tx;\n else if(trace.text) pointData2.text = trace.text;\n\n Lib.fillText(di, trace, pointData2);\n Registry.getComponentMethod('errorbars', 'hoverInfo')(di, trace, pointData2);\n\n return pointData2;\n}\n\nmodule.exports = {\n hoverPoints: hoverPoints,\n calcHover: calcHover\n};\n\n},{\"../../lib\":503,\"../../registry\":638,\"../scatter/get_trace_color\":935}],986:[function(_dereq_,module,exports){\n'use strict';\n\nvar hover = _dereq_('./hover');\n\nmodule.exports = {\n moduleType: 'trace',\n name: 'scattergl',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: ['gl', 'regl', 'cartesian', 'symbols', 'errorBarsOK', 'showLegend', 'scatter-like'],\n\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n crossTraceDefaults: _dereq_('../scatter/cross_trace_defaults'),\n colorbar: _dereq_('../scatter/marker_colorbar'),\n formatLabels: _dereq_('./format_labels'),\n calc: _dereq_('./calc'),\n plot: _dereq_('./plot'),\n hoverPoints: hover.hoverPoints,\n selectPoints: _dereq_('./select'),\n\n meta: {\n }\n};\n\n},{\"../../plots/cartesian\":568,\"../scatter/cross_trace_defaults\":931,\"../scatter/marker_colorbar\":943,\"./attributes\":977,\"./calc\":978,\"./defaults\":981,\"./format_labels\":983,\"./hover\":985,\"./plot\":987,\"./select\":989}],987:[function(_dereq_,module,exports){\n'use strict';\n\nvar createScatter = _dereq_('regl-scatter2d');\nvar createLine = _dereq_('regl-line2d');\nvar createError = _dereq_('regl-error2d');\nvar Text = _dereq_('gl-text');\n\nvar Lib = _dereq_('../../lib');\nvar selectMode = _dereq_('../../components/dragelement/helpers').selectMode;\nvar prepareRegl = _dereq_('../../lib/prepare_regl');\n\nvar subTypes = _dereq_('../scatter/subtypes');\nvar linkTraces = _dereq_('../scatter/link_traces');\n\nvar styleTextSelection = _dereq_('./edit_style').styleTextSelection;\n\n\nfunction getViewport(fullLayout, xaxis, yaxis, plotGlPixelRatio) {\n var gs = fullLayout._size;\n var width = fullLayout.width * plotGlPixelRatio;\n var height = fullLayout.height * plotGlPixelRatio;\n\n var l = gs.l * plotGlPixelRatio;\n var b = gs.b * plotGlPixelRatio;\n var r = gs.r * plotGlPixelRatio;\n var t = gs.t * plotGlPixelRatio;\n var w = gs.w * plotGlPixelRatio;\n var h = gs.h * plotGlPixelRatio;\n return [\n l + xaxis.domain[0] * w,\n b + yaxis.domain[0] * h,\n (width - r) - (1 - xaxis.domain[1]) * w,\n (height - t) - (1 - yaxis.domain[1]) * h\n ];\n}\n\nmodule.exports = function plot(gd, subplot, cdata) {\n if(!cdata.length) return;\n\n var fullLayout = gd._fullLayout;\n var scene = subplot._scene;\n var xaxis = subplot.xaxis;\n var yaxis = subplot.yaxis;\n var i, j;\n\n // we may have more subplots than initialized data due to Axes.getSubplots method\n if(!scene) return;\n\n var success = prepareRegl(gd, ['ANGLE_instanced_arrays', 'OES_element_index_uint']);\n if(!success) {\n scene.init();\n return;\n }\n\n var count = scene.count;\n var regl = fullLayout._glcanvas.data()[0].regl;\n\n // that is needed for fills\n linkTraces(gd, subplot, cdata);\n\n if(scene.dirty) {\n // make sure scenes are created\n if(scene.error2d === true) {\n scene.error2d = createError(regl);\n }\n if(scene.line2d === true) {\n scene.line2d = createLine(regl);\n }\n if(scene.scatter2d === true) {\n scene.scatter2d = createScatter(regl);\n }\n if(scene.fill2d === true) {\n scene.fill2d = createLine(regl);\n }\n if(scene.glText === true) {\n scene.glText = new Array(count);\n for(i = 0; i < count; i++) {\n scene.glText[i] = new Text(regl);\n }\n }\n\n // update main marker options\n if(scene.glText) {\n if(count > scene.glText.length) {\n // add gl text marker\n var textsToAdd = count - scene.glText.length;\n for(i = 0; i < textsToAdd; i++) {\n scene.glText.push(new Text(regl));\n }\n } else if(count < scene.glText.length) {\n // remove gl text marker\n var textsToRemove = scene.glText.length - count;\n var removedTexts = scene.glText.splice(count, textsToRemove);\n removedTexts.forEach(function(text) { text.destroy(); });\n }\n\n for(i = 0; i < count; i++) {\n scene.glText[i].update(scene.textOptions[i]);\n }\n }\n if(scene.line2d) {\n scene.line2d.update(scene.lineOptions);\n scene.lineOptions = scene.lineOptions.map(function(lineOptions) {\n if(lineOptions && lineOptions.positions) {\n var srcPos = lineOptions.positions;\n\n var firstptdef = 0;\n while(firstptdef < srcPos.length && (isNaN(srcPos[firstptdef]) || isNaN(srcPos[firstptdef + 1]))) {\n firstptdef += 2;\n }\n var lastptdef = srcPos.length - 2;\n while(lastptdef > firstptdef && (isNaN(srcPos[lastptdef]) || isNaN(srcPos[lastptdef + 1]))) {\n lastptdef -= 2;\n }\n lineOptions.positions = srcPos.slice(firstptdef, lastptdef + 2);\n }\n return lineOptions;\n });\n scene.line2d.update(scene.lineOptions);\n }\n if(scene.error2d) {\n var errorBatch = (scene.errorXOptions || []).concat(scene.errorYOptions || []);\n scene.error2d.update(errorBatch);\n }\n if(scene.scatter2d) {\n scene.scatter2d.update(scene.markerOptions);\n }\n\n // fill requires linked traces, so we generate it's positions here\n scene.fillOrder = Lib.repeat(null, count);\n if(scene.fill2d) {\n scene.fillOptions = scene.fillOptions.map(function(fillOptions, i) {\n var cdscatter = cdata[i];\n if(!fillOptions || !cdscatter || !cdscatter[0] || !cdscatter[0].trace) return;\n var cd = cdscatter[0];\n var trace = cd.trace;\n var stash = cd.t;\n var lineOptions = scene.lineOptions[i];\n var last, j;\n\n var fillData = [];\n if(trace._ownfill) fillData.push(i);\n if(trace._nexttrace) fillData.push(i + 1);\n if(fillData.length) scene.fillOrder[i] = fillData;\n\n var pos = [];\n var srcPos = (lineOptions && lineOptions.positions) || stash.positions;\n var firstptdef, lastptdef;\n\n if(trace.fill === 'tozeroy') {\n firstptdef = 0;\n while(firstptdef < srcPos.length && isNaN(srcPos[firstptdef + 1])) {\n firstptdef += 2;\n }\n lastptdef = srcPos.length - 2;\n while(lastptdef > firstptdef && isNaN(srcPos[lastptdef + 1])) {\n lastptdef -= 2;\n }\n if(srcPos[firstptdef + 1] !== 0) {\n pos = [srcPos[firstptdef], 0];\n }\n pos = pos.concat(srcPos.slice(firstptdef, lastptdef + 2));\n if(srcPos[lastptdef + 1] !== 0) {\n pos = pos.concat([srcPos[lastptdef], 0]);\n }\n } else if(trace.fill === 'tozerox') {\n firstptdef = 0;\n while(firstptdef < srcPos.length && isNaN(srcPos[firstptdef])) {\n firstptdef += 2;\n }\n lastptdef = srcPos.length - 2;\n while(lastptdef > firstptdef && isNaN(srcPos[lastptdef])) {\n lastptdef -= 2;\n }\n if(srcPos[firstptdef] !== 0) {\n pos = [0, srcPos[firstptdef + 1]];\n }\n pos = pos.concat(srcPos.slice(firstptdef, lastptdef + 2));\n if(srcPos[lastptdef] !== 0) {\n pos = pos.concat([ 0, srcPos[lastptdef + 1]]);\n }\n } else if(trace.fill === 'toself' || trace.fill === 'tonext') {\n pos = [];\n last = 0;\n\n fillOptions.splitNull = true;\n\n for(j = 0; j < srcPos.length; j += 2) {\n if(isNaN(srcPos[j]) || isNaN(srcPos[j + 1])) {\n pos = pos.concat(srcPos.slice(last, j));\n pos.push(srcPos[last], srcPos[last + 1]);\n pos.push(null, null); // keep null to mark end of polygon\n last = j + 2;\n }\n }\n pos = pos.concat(srcPos.slice(last));\n if(last) {\n pos.push(srcPos[last], srcPos[last + 1]);\n }\n } else {\n var nextTrace = trace._nexttrace;\n\n if(nextTrace) {\n var nextOptions = scene.lineOptions[i + 1];\n\n if(nextOptions) {\n var nextPos = nextOptions.positions;\n if(trace.fill === 'tonexty') {\n pos = srcPos.slice();\n\n for(i = Math.floor(nextPos.length / 2); i--;) {\n var xx = nextPos[i * 2];\n var yy = nextPos[i * 2 + 1];\n if(isNaN(xx) || isNaN(yy)) continue;\n pos.push(xx, yy);\n }\n fillOptions.fill = nextTrace.fillcolor;\n }\n }\n }\n }\n\n // detect prev trace positions to exclude from current fill\n if(trace._prevtrace && trace._prevtrace.fill === 'tonext') {\n var prevLinePos = scene.lineOptions[i - 1].positions;\n\n // FIXME: likely this logic should be tested better\n var offset = pos.length / 2;\n last = offset;\n var hole = [last];\n for(j = 0; j < prevLinePos.length; j += 2) {\n if(isNaN(prevLinePos[j]) || isNaN(prevLinePos[j + 1])) {\n hole.push(j / 2 + offset + 1);\n last = j + 2;\n }\n }\n\n pos = pos.concat(prevLinePos);\n fillOptions.hole = hole;\n }\n fillOptions.fillmode = trace.fill;\n fillOptions.opacity = trace.opacity;\n fillOptions.positions = pos;\n\n return fillOptions;\n });\n\n scene.fill2d.update(scene.fillOptions);\n }\n }\n\n // form batch arrays, and check for selected points\n var dragmode = fullLayout.dragmode;\n var isSelectMode = selectMode(dragmode);\n var clickSelectEnabled = fullLayout.clickmode.indexOf('select') > -1;\n\n for(i = 0; i < count; i++) {\n var cd0 = cdata[i][0];\n var trace = cd0.trace;\n var stash = cd0.t;\n var index = stash.index;\n var len = trace._length;\n var x = stash.x;\n var y = stash.y;\n\n if(trace.selectedpoints || isSelectMode || clickSelectEnabled) {\n if(!isSelectMode) isSelectMode = true;\n\n // regenerate scene batch, if traces number changed during selection\n if(trace.selectedpoints) {\n var selPts = scene.selectBatch[index] = Lib.selIndices2selPoints(trace);\n\n var selDict = {};\n for(j = 0; j < selPts.length; j++) {\n selDict[selPts[j]] = 1;\n }\n var unselPts = [];\n for(j = 0; j < len; j++) {\n if(!selDict[j]) unselPts.push(j);\n }\n scene.unselectBatch[index] = unselPts;\n }\n\n // precalculate px coords since we are not going to pan during select\n // TODO, could do better here e.g.\n // - spin that in a webworker\n // - compute selection from polygons in data coordinates\n // (maybe just for linear axes)\n var xpx = stash.xpx = new Array(len);\n var ypx = stash.ypx = new Array(len);\n for(j = 0; j < len; j++) {\n xpx[j] = xaxis.c2p(x[j]);\n ypx[j] = yaxis.c2p(y[j]);\n }\n } else {\n stash.xpx = stash.ypx = null;\n }\n }\n\n if(isSelectMode) {\n // create scatter instance by cloning scatter2d\n if(!scene.select2d) {\n scene.select2d = createScatter(fullLayout._glcanvas.data()[1].regl);\n }\n\n // use unselected styles on 'context' canvas\n if(scene.scatter2d) {\n var unselOpts = new Array(count);\n for(i = 0; i < count; i++) {\n unselOpts[i] = scene.selectBatch[i].length || scene.unselectBatch[i].length ?\n scene.markerUnselectedOptions[i] :\n {};\n }\n scene.scatter2d.update(unselOpts);\n }\n\n // use selected style on 'focus' canvas\n if(scene.select2d) {\n scene.select2d.update(scene.markerOptions);\n scene.select2d.update(scene.markerSelectedOptions);\n }\n\n if(scene.glText) {\n cdata.forEach(function(cdscatter) {\n var trace = ((cdscatter || [])[0] || {}).trace || {};\n if(subTypes.hasText(trace)) {\n styleTextSelection(cdscatter);\n }\n });\n }\n } else {\n // reset 'context' scatter2d opts to base opts,\n // thus unsetting markerUnselectedOptions from selection\n if(scene.scatter2d) {\n scene.scatter2d.update(scene.markerOptions);\n }\n }\n\n // provide viewport and range\n var vpRange0 = {\n viewport: getViewport(fullLayout, xaxis, yaxis, gd._context.plotGlPixelRatio),\n // TODO do we need those fallbacks?\n range: [\n (xaxis._rl || xaxis.range)[0],\n (yaxis._rl || yaxis.range)[0],\n (xaxis._rl || xaxis.range)[1],\n (yaxis._rl || yaxis.range)[1]\n ]\n };\n var vpRange = Lib.repeat(vpRange0, scene.count);\n\n // upload viewport/range data to GPU\n if(scene.fill2d) {\n scene.fill2d.update(vpRange);\n }\n if(scene.line2d) {\n scene.line2d.update(vpRange);\n }\n if(scene.error2d) {\n scene.error2d.update(vpRange.concat(vpRange));\n }\n if(scene.scatter2d) {\n scene.scatter2d.update(vpRange);\n }\n if(scene.select2d) {\n scene.select2d.update(vpRange);\n }\n if(scene.glText) {\n scene.glText.forEach(function(text) { text.update(vpRange0); });\n }\n};\n\n},{\"../../components/dragelement/helpers\":384,\"../../lib\":503,\"../../lib/prepare_regl\":516,\"../scatter/link_traces\":941,\"../scatter/subtypes\":950,\"./edit_style\":982,\"gl-text\":225,\"regl-error2d\":279,\"regl-line2d\":280,\"regl-scatter2d\":281}],988:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\n// make sure scene exists on subplot, return it\nmodule.exports = function sceneUpdate(gd, subplot) {\n var scene = subplot._scene;\n\n var resetOpts = {\n // number of traces in subplot, since scene:subplot -> 1:1\n count: 0,\n // whether scene requires init hook in plot call (dirty plot call)\n dirty: true,\n // last used options\n lineOptions: [],\n fillOptions: [],\n markerOptions: [],\n markerSelectedOptions: [],\n markerUnselectedOptions: [],\n errorXOptions: [],\n errorYOptions: [],\n textOptions: [],\n textSelectedOptions: [],\n textUnselectedOptions: [],\n // selection batches\n selectBatch: [],\n unselectBatch: []\n };\n\n // regl- component stubs, initialized in dirty plot call\n var initOpts = {\n fill2d: false,\n scatter2d: false,\n error2d: false,\n line2d: false,\n glText: false,\n select2d: false\n };\n\n if(!subplot._scene) {\n scene = subplot._scene = {};\n\n scene.init = function init() {\n Lib.extendFlat(scene, initOpts, resetOpts);\n };\n\n scene.init();\n\n // apply new option to all regl components (used on drag)\n scene.update = function update(opt) {\n var opts = Lib.repeat(opt, scene.count);\n\n if(scene.fill2d) scene.fill2d.update(opts);\n if(scene.scatter2d) scene.scatter2d.update(opts);\n if(scene.line2d) scene.line2d.update(opts);\n if(scene.error2d) scene.error2d.update(opts.concat(opts));\n if(scene.select2d) scene.select2d.update(opts);\n if(scene.glText) {\n for(var i = 0; i < scene.count; i++) {\n scene.glText[i].update(opt);\n }\n }\n };\n\n // draw traces in proper order\n scene.draw = function draw() {\n var count = scene.count;\n var fill2d = scene.fill2d;\n var error2d = scene.error2d;\n var line2d = scene.line2d;\n var scatter2d = scene.scatter2d;\n var glText = scene.glText;\n var select2d = scene.select2d;\n var selectBatch = scene.selectBatch;\n var unselectBatch = scene.unselectBatch;\n\n for(var i = 0; i < count; i++) {\n if(fill2d && scene.fillOrder[i]) {\n fill2d.draw(scene.fillOrder[i]);\n }\n if(line2d && scene.lineOptions[i]) {\n line2d.draw(i);\n }\n if(error2d) {\n if(scene.errorXOptions[i]) error2d.draw(i);\n if(scene.errorYOptions[i]) error2d.draw(i + count);\n }\n if(scatter2d && scene.markerOptions[i]) {\n if(unselectBatch[i].length) {\n var arg = Lib.repeat([], scene.count);\n arg[i] = unselectBatch[i];\n scatter2d.draw(arg);\n } else if(!selectBatch[i].length) {\n scatter2d.draw(i);\n }\n }\n if(glText[i] && scene.textOptions[i]) {\n glText[i].render();\n }\n }\n\n if(select2d) {\n select2d.draw(selectBatch);\n }\n\n scene.dirty = false;\n };\n\n // remove scene resources\n scene.destroy = function destroy() {\n if(scene.fill2d && scene.fill2d.destroy) scene.fill2d.destroy();\n if(scene.scatter2d && scene.scatter2d.destroy) scene.scatter2d.destroy();\n if(scene.error2d && scene.error2d.destroy) scene.error2d.destroy();\n if(scene.line2d && scene.line2d.destroy) scene.line2d.destroy();\n if(scene.select2d && scene.select2d.destroy) scene.select2d.destroy();\n if(scene.glText) {\n scene.glText.forEach(function(text) {\n if(text.destroy) text.destroy();\n });\n }\n\n scene.lineOptions = null;\n scene.fillOptions = null;\n scene.markerOptions = null;\n scene.markerSelectedOptions = null;\n scene.markerUnselectedOptions = null;\n scene.errorXOptions = null;\n scene.errorYOptions = null;\n scene.textOptions = null;\n scene.textSelectedOptions = null;\n scene.textUnselectedOptions = null;\n\n scene.selectBatch = null;\n scene.unselectBatch = null;\n\n // we can't just delete _scene, because `destroy` is called in the\n // middle of supplyDefaults, before relinkPrivateKeys which will put it back.\n subplot._scene = null;\n };\n }\n\n // in case if we have scene from the last calc - reset data\n if(!scene.dirty) {\n Lib.extendFlat(scene, resetOpts);\n }\n\n return scene;\n};\n\n},{\"../../lib\":503}],989:[function(_dereq_,module,exports){\n'use strict';\n\nvar subTypes = _dereq_('../scatter/subtypes');\nvar styleTextSelection = _dereq_('./edit_style').styleTextSelection;\n\nmodule.exports = function select(searchInfo, selectionTester) {\n var cd = searchInfo.cd;\n var xa = searchInfo.xaxis;\n var ya = searchInfo.yaxis;\n var selection = [];\n var trace = cd[0].trace;\n var stash = cd[0].t;\n var len = trace._length;\n var x = stash.x;\n var y = stash.y;\n var scene = stash._scene;\n var index = stash.index;\n\n if(!scene) return selection;\n\n var hasText = subTypes.hasText(trace);\n var hasMarkers = subTypes.hasMarkers(trace);\n var hasOnlyLines = !hasMarkers && !hasText;\n\n if(trace.visible !== true || hasOnlyLines) return selection;\n\n var els = [];\n var unels = [];\n\n // degenerate polygon does not enable selection\n // filter out points by visible scatter ones\n if(selectionTester !== false && !selectionTester.degenerate) {\n for(var i = 0; i < len; i++) {\n if(selectionTester.contains([stash.xpx[i], stash.ypx[i]], false, i, searchInfo)) {\n els.push(i);\n selection.push({\n pointNumber: i,\n x: xa.c2d(x[i]),\n y: ya.c2d(y[i])\n });\n } else {\n unels.push(i);\n }\n }\n }\n\n if(hasMarkers) {\n var scatter2d = scene.scatter2d;\n\n if(!els.length && !unels.length) {\n // reset to base styles when clearing\n var baseOpts = new Array(scene.count);\n baseOpts[index] = scene.markerOptions[index];\n scatter2d.update.apply(scatter2d, baseOpts);\n } else if(!scene.selectBatch[index].length && !scene.unselectBatch[index].length) {\n // set unselected styles on 'context' canvas (if not done already)\n var unselOpts = new Array(scene.count);\n unselOpts[index] = scene.markerUnselectedOptions[index];\n scatter2d.update.apply(scatter2d, unselOpts);\n }\n }\n\n scene.selectBatch[index] = els;\n scene.unselectBatch[index] = unels;\n\n if(hasText) {\n styleTextSelection(cd);\n }\n\n return selection;\n};\n\n},{\"../scatter/subtypes\":950,\"./edit_style\":982}],990:[function(_dereq_,module,exports){\n'use strict';\n\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\nvar scatterGeoAttrs = _dereq_('../scattergeo/attributes');\nvar scatterAttrs = _dereq_('../scatter/attributes');\nvar mapboxAttrs = _dereq_('../../plots/mapbox/layout_attributes');\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\n\nvar lineAttrs = scatterGeoAttrs.line;\nvar markerAttrs = scatterGeoAttrs.marker;\n\nmodule.exports = overrideAll({\n lon: scatterGeoAttrs.lon,\n lat: scatterGeoAttrs.lat,\n\n // locations\n // locationmode\n\n mode: extendFlat({}, scatterAttrs.mode, {\n dflt: 'markers',\n }),\n\n text: extendFlat({}, scatterAttrs.text, {\n }),\n texttemplate: texttemplateAttrs({editType: 'plot'}, {\n keys: ['lat', 'lon', 'text']\n }),\n hovertext: extendFlat({}, scatterAttrs.hovertext, {\n }),\n\n line: {\n color: lineAttrs.color,\n width: lineAttrs.width\n\n // TODO\n // dash: dash\n },\n\n connectgaps: scatterAttrs.connectgaps,\n\n marker: extendFlat({\n symbol: {\n valType: 'string',\n dflt: 'circle',\n arrayOk: true,\n },\n angle: {\n valType: 'number',\n dflt: 'auto',\n arrayOk: true,\n },\n allowoverlap: {\n valType: 'boolean',\n dflt: false,\n },\n opacity: markerAttrs.opacity,\n size: markerAttrs.size,\n sizeref: markerAttrs.sizeref,\n sizemin: markerAttrs.sizemin,\n sizemode: markerAttrs.sizemode\n },\n colorScaleAttrs('marker')\n // line\n ),\n\n fill: scatterGeoAttrs.fill,\n fillcolor: scatterAttrs.fillcolor,\n\n textfont: mapboxAttrs.layers.symbol.textfont,\n textposition: mapboxAttrs.layers.symbol.textposition,\n\n below: {\n valType: 'string',\n },\n\n selected: {\n marker: scatterAttrs.selected.marker\n },\n unselected: {\n marker: scatterAttrs.unselected.marker\n },\n\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {\n flags: ['lon', 'lat', 'text', 'name']\n }),\n hovertemplate: hovertemplateAttrs(),\n}, 'calc', 'nested');\n\n},{\"../../components/colorscale/attributes\":373,\"../../lib/extend\":493,\"../../plot_api/edit_types\":536,\"../../plots/attributes\":550,\"../../plots/mapbox/layout_attributes\":615,\"../../plots/template_attributes\":633,\"../scatter/attributes\":925,\"../scattergeo/attributes\":967}],991:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Lib = _dereq_('../../lib');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\nvar geoJsonUtils = _dereq_('../../lib/geojson_utils');\n\nvar Colorscale = _dereq_('../../components/colorscale');\nvar Drawing = _dereq_('../../components/drawing');\nvar makeBubbleSizeFn = _dereq_('../scatter/make_bubble_size_func');\nvar subTypes = _dereq_('../scatter/subtypes');\nvar convertTextOpts = _dereq_('../../plots/mapbox/convert_text_opts');\nvar appendArrayPointValue = _dereq_('../../components/fx/helpers').appendArrayPointValue;\n\nvar NEWLINES = _dereq_('../../lib/svg_text_utils').NEWLINES;\nvar BR_TAG_ALL = _dereq_('../../lib/svg_text_utils').BR_TAG_ALL;\n\nmodule.exports = function convert(gd, calcTrace) {\n var trace = calcTrace[0].trace;\n\n var isVisible = (trace.visible === true && trace._length !== 0);\n var hasFill = (trace.fill !== 'none');\n var hasLines = subTypes.hasLines(trace);\n var hasMarkers = subTypes.hasMarkers(trace);\n var hasText = subTypes.hasText(trace);\n var hasCircles = (hasMarkers && trace.marker.symbol === 'circle');\n var hasSymbols = (hasMarkers && trace.marker.symbol !== 'circle');\n\n var fill = initContainer();\n var line = initContainer();\n var circle = initContainer();\n var symbol = initContainer();\n\n var opts = {\n fill: fill,\n line: line,\n circle: circle,\n symbol: symbol\n };\n\n // early return if not visible or placeholder\n if(!isVisible) return opts;\n\n // fill layer and line layer use the same coords\n var lineCoords;\n if(hasFill || hasLines) {\n lineCoords = geoJsonUtils.calcTraceToLineCoords(calcTrace);\n }\n\n if(hasFill) {\n fill.geojson = geoJsonUtils.makePolygon(lineCoords);\n fill.layout.visibility = 'visible';\n\n Lib.extendFlat(fill.paint, {\n 'fill-color': trace.fillcolor\n });\n }\n\n if(hasLines) {\n line.geojson = geoJsonUtils.makeLine(lineCoords);\n line.layout.visibility = 'visible';\n\n Lib.extendFlat(line.paint, {\n 'line-width': trace.line.width,\n 'line-color': trace.line.color,\n 'line-opacity': trace.opacity\n });\n\n // TODO convert line.dash into line-dasharray\n }\n\n if(hasCircles) {\n var circleOpts = makeCircleOpts(calcTrace);\n circle.geojson = circleOpts.geojson;\n circle.layout.visibility = 'visible';\n\n Lib.extendFlat(circle.paint, {\n 'circle-color': circleOpts.mcc,\n 'circle-radius': circleOpts.mrc,\n 'circle-opacity': circleOpts.mo\n });\n }\n\n if(hasSymbols || hasText) {\n symbol.geojson = makeSymbolGeoJSON(calcTrace, gd);\n\n Lib.extendFlat(symbol.layout, {\n visibility: 'visible',\n 'icon-image': '{symbol}-15',\n 'text-field': '{text}'\n });\n\n if(hasSymbols) {\n Lib.extendFlat(symbol.layout, {\n 'icon-size': trace.marker.size / 10\n });\n\n if('angle' in trace.marker && trace.marker.angle !== 'auto') {\n Lib.extendFlat(symbol.layout, {\n // unfortunately cant use {angle} do to this issue:\n // https://github.com/mapbox/mapbox-gl-js/issues/873\n 'icon-rotate': {\n type: 'identity', property: 'angle'\n },\n 'icon-rotation-alignment': 'map'\n });\n }\n\n symbol.layout['icon-allow-overlap'] = trace.marker.allowoverlap;\n\n Lib.extendFlat(symbol.paint, {\n 'icon-opacity': trace.opacity * trace.marker.opacity,\n\n // TODO does not work ??\n 'icon-color': trace.marker.color\n });\n }\n\n if(hasText) {\n var iconSize = (trace.marker || {}).size;\n var textOpts = convertTextOpts(trace.textposition, iconSize);\n\n // all data-driven below !!\n\n Lib.extendFlat(symbol.layout, {\n 'text-size': trace.textfont.size,\n 'text-anchor': textOpts.anchor,\n 'text-offset': textOpts.offset\n\n // TODO font family\n // 'text-font': symbol.textfont.family.split(', '),\n });\n\n Lib.extendFlat(symbol.paint, {\n 'text-color': trace.textfont.color,\n 'text-opacity': trace.opacity\n });\n }\n }\n\n return opts;\n};\n\nfunction initContainer() {\n return {\n geojson: geoJsonUtils.makeBlank(),\n layout: { visibility: 'none' },\n paint: {}\n };\n}\n\nfunction makeCircleOpts(calcTrace) {\n var trace = calcTrace[0].trace;\n var marker = trace.marker;\n var selectedpoints = trace.selectedpoints;\n var arrayColor = Lib.isArrayOrTypedArray(marker.color);\n var arraySize = Lib.isArrayOrTypedArray(marker.size);\n var arrayOpacity = Lib.isArrayOrTypedArray(marker.opacity);\n var i;\n\n function addTraceOpacity(o) { return trace.opacity * o; }\n\n function size2radius(s) { return s / 2; }\n\n var colorFn;\n if(arrayColor) {\n if(Colorscale.hasColorscale(trace, 'marker')) {\n colorFn = Colorscale.makeColorScaleFuncFromTrace(marker);\n } else {\n colorFn = Lib.identity;\n }\n }\n\n var sizeFn;\n if(arraySize) {\n sizeFn = makeBubbleSizeFn(trace);\n }\n\n var opacityFn;\n if(arrayOpacity) {\n opacityFn = function(mo) {\n var mo2 = isNumeric(mo) ? +Lib.constrain(mo, 0, 1) : 0;\n return addTraceOpacity(mo2);\n };\n }\n\n var features = [];\n for(i = 0; i < calcTrace.length; i++) {\n var calcPt = calcTrace[i];\n var lonlat = calcPt.lonlat;\n\n if(isBADNUM(lonlat)) continue;\n\n var props = {};\n if(colorFn) props.mcc = calcPt.mcc = colorFn(calcPt.mc);\n if(sizeFn) props.mrc = calcPt.mrc = sizeFn(calcPt.ms);\n if(opacityFn) props.mo = opacityFn(calcPt.mo);\n if(selectedpoints) props.selected = calcPt.selected || 0;\n\n features.push({\n type: 'Feature',\n geometry: {type: 'Point', coordinates: lonlat},\n properties: props\n });\n }\n\n var fns;\n if(selectedpoints) {\n fns = Drawing.makeSelectedPointStyleFns(trace);\n\n for(i = 0; i < features.length; i++) {\n var d = features[i].properties;\n\n if(fns.selectedOpacityFn) {\n d.mo = addTraceOpacity(fns.selectedOpacityFn(d));\n }\n if(fns.selectedColorFn) {\n d.mcc = fns.selectedColorFn(d);\n }\n if(fns.selectedSizeFn) {\n d.mrc = fns.selectedSizeFn(d);\n }\n }\n }\n\n return {\n geojson: {type: 'FeatureCollection', features: features},\n mcc: arrayColor || (fns && fns.selectedColorFn) ?\n {type: 'identity', property: 'mcc'} :\n marker.color,\n mrc: arraySize || (fns && fns.selectedSizeFn) ?\n {type: 'identity', property: 'mrc'} :\n size2radius(marker.size),\n mo: arrayOpacity || (fns && fns.selectedOpacityFn) ?\n {type: 'identity', property: 'mo'} :\n addTraceOpacity(marker.opacity)\n };\n}\n\nfunction makeSymbolGeoJSON(calcTrace, gd) {\n var fullLayout = gd._fullLayout;\n var trace = calcTrace[0].trace;\n\n var marker = trace.marker || {};\n var symbol = marker.symbol;\n var angle = marker.angle;\n\n var fillSymbol = (symbol !== 'circle') ?\n getFillFunc(symbol) :\n blankFillFunc;\n\n var fillAngle = (angle !== 'auto') ?\n getFillFunc(angle, true) :\n blankFillFunc;\n\n var fillText = subTypes.hasText(trace) ?\n getFillFunc(trace.text) :\n blankFillFunc;\n\n\n var features = [];\n\n for(var i = 0; i < calcTrace.length; i++) {\n var calcPt = calcTrace[i];\n\n if(isBADNUM(calcPt.lonlat)) continue;\n\n var texttemplate = trace.texttemplate;\n var text;\n\n if(texttemplate) {\n var tt = Array.isArray(texttemplate) ? (texttemplate[i] || '') : texttemplate;\n var labels = trace._module.formatLabels(calcPt, trace, fullLayout);\n var pointValues = {};\n appendArrayPointValue(pointValues, trace, calcPt.i);\n var meta = trace._meta || {};\n text = Lib.texttemplateString(tt, labels, fullLayout._d3locale, pointValues, calcPt, meta);\n } else {\n text = fillText(i);\n }\n\n if(text) {\n text = text.replace(NEWLINES, '').replace(BR_TAG_ALL, '\\n');\n }\n\n features.push({\n type: 'Feature',\n geometry: {\n type: 'Point',\n coordinates: calcPt.lonlat\n },\n properties: {\n symbol: fillSymbol(i),\n angle: fillAngle(i),\n text: text\n }\n });\n }\n\n return {\n type: 'FeatureCollection',\n features: features\n };\n}\n\nfunction getFillFunc(attr, numeric) {\n if(Lib.isArrayOrTypedArray(attr)) {\n if(numeric) {\n return function(i) { return isNumeric(attr[i]) ? +attr[i] : 0; };\n }\n return function(i) { return attr[i]; };\n } else if(attr) {\n return function() { return attr; };\n } else {\n return blankFillFunc;\n }\n}\n\nfunction blankFillFunc() { return ''; }\n\n// only need to check lon (OR lat)\nfunction isBADNUM(lonlat) {\n return lonlat[0] === BADNUM;\n}\n\n},{\"../../components/colorscale\":378,\"../../components/drawing\":388,\"../../components/fx/helpers\":402,\"../../constants/numerical\":479,\"../../lib\":503,\"../../lib/geojson_utils\":497,\"../../lib/svg_text_utils\":529,\"../../plots/mapbox/convert_text_opts\":612,\"../scatter/make_bubble_size_func\":942,\"../scatter/subtypes\":950,\"fast-isnumeric\":190}],992:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar subTypes = _dereq_('../scatter/subtypes');\nvar handleMarkerDefaults = _dereq_('../scatter/marker_defaults');\nvar handleLineDefaults = _dereq_('../scatter/line_defaults');\nvar handleTextDefaults = _dereq_('../scatter/text_defaults');\nvar handleFillColorDefaults = _dereq_('../scatter/fillcolor_defaults');\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var len = handleLonLatDefaults(traceIn, traceOut, coerce);\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n coerce('text');\n coerce('texttemplate');\n coerce('hovertext');\n coerce('hovertemplate');\n coerce('mode');\n coerce('below');\n\n if(subTypes.hasLines(traceOut)) {\n handleLineDefaults(traceIn, traceOut, defaultColor, layout, coerce, {noDash: true});\n coerce('connectgaps');\n }\n\n if(subTypes.hasMarkers(traceOut)) {\n handleMarkerDefaults(traceIn, traceOut, defaultColor, layout, coerce, {noLine: true});\n\n coerce('marker.allowoverlap');\n coerce('marker.angle');\n\n // array marker.size and marker.color are only supported with circles\n var marker = traceOut.marker;\n if(marker.symbol !== 'circle') {\n if(Lib.isArrayOrTypedArray(marker.size)) marker.size = marker.size[0];\n if(Lib.isArrayOrTypedArray(marker.color)) marker.color = marker.color[0];\n }\n }\n\n if(subTypes.hasText(traceOut)) {\n handleTextDefaults(traceIn, traceOut, layout, coerce, {noSelect: true});\n }\n\n coerce('fill');\n if(traceOut.fill !== 'none') {\n handleFillColorDefaults(traceIn, traceOut, defaultColor, coerce);\n }\n\n Lib.coerceSelectionMarkerOpacity(traceOut, coerce);\n};\n\nfunction handleLonLatDefaults(traceIn, traceOut, coerce) {\n var lon = coerce('lon') || [];\n var lat = coerce('lat') || [];\n var len = Math.min(lon.length, lat.length);\n traceOut._length = len;\n\n return len;\n}\n\n},{\"../../lib\":503,\"../scatter/fillcolor_defaults\":933,\"../scatter/line_defaults\":938,\"../scatter/marker_defaults\":944,\"../scatter/subtypes\":950,\"../scatter/text_defaults\":951,\"./attributes\":990}],993:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = function eventData(out, pt) {\n out.lon = pt.lon;\n out.lat = pt.lat;\n\n return out;\n};\n\n},{}],994:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\n\nmodule.exports = function formatLabels(cdi, trace, fullLayout) {\n var labels = {};\n\n var subplot = fullLayout[trace.subplot]._subplot;\n var ax = subplot.mockAxis;\n\n var lonlat = cdi.lonlat;\n labels.lonLabel = Axes.tickText(ax, ax.c2l(lonlat[0]), true).text;\n labels.latLabel = Axes.tickText(ax, ax.c2l(lonlat[1]), true).text;\n\n return labels;\n};\n\n},{\"../../plots/cartesian/axes\":554}],995:[function(_dereq_,module,exports){\n'use strict';\n\nvar Fx = _dereq_('../../components/fx');\nvar Lib = _dereq_('../../lib');\nvar getTraceColor = _dereq_('../scatter/get_trace_color');\nvar fillText = Lib.fillText;\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nfunction hoverPoints(pointData, xval, yval) {\n var cd = pointData.cd;\n var trace = cd[0].trace;\n var xa = pointData.xa;\n var ya = pointData.ya;\n var subplot = pointData.subplot;\n\n // compute winding number about [-180, 180] globe\n var winding = (xval >= 0) ?\n Math.floor((xval + 180) / 360) :\n Math.ceil((xval - 180) / 360);\n\n // shift longitude to [-180, 180] to determine closest point\n var lonShift = winding * 360;\n var xval2 = xval - lonShift;\n\n function distFn(d) {\n var lonlat = d.lonlat;\n if(lonlat[0] === BADNUM) return Infinity;\n\n var lon = Lib.modHalf(lonlat[0], 360);\n var lat = lonlat[1];\n var pt = subplot.project([lon, lat]);\n var dx = pt.x - xa.c2p([xval2, lat]);\n var dy = pt.y - ya.c2p([lon, yval]);\n var rad = Math.max(3, d.mrc || 0);\n\n return Math.max(Math.sqrt(dx * dx + dy * dy) - rad, 1 - 3 / rad);\n }\n\n Fx.getClosest(cd, distFn, pointData);\n\n // skip the rest (for this trace) if we didn't find a close point\n if(pointData.index === false) return;\n\n var di = cd[pointData.index];\n var lonlat = di.lonlat;\n var lonlatShifted = [Lib.modHalf(lonlat[0], 360) + lonShift, lonlat[1]];\n\n // shift labels back to original winded globe\n var xc = xa.c2p(lonlatShifted);\n var yc = ya.c2p(lonlatShifted);\n var rad = di.mrc || 1;\n\n pointData.x0 = xc - rad;\n pointData.x1 = xc + rad;\n pointData.y0 = yc - rad;\n pointData.y1 = yc + rad;\n\n var fullLayout = {};\n fullLayout[trace.subplot] = {_subplot: subplot};\n var labels = trace._module.formatLabels(di, trace, fullLayout);\n pointData.lonLabel = labels.lonLabel;\n pointData.latLabel = labels.latLabel;\n\n pointData.color = getTraceColor(trace, di);\n pointData.extraText = getExtraText(trace, di, cd[0].t.labels);\n pointData.hovertemplate = trace.hovertemplate;\n\n return [pointData];\n}\n\nfunction getExtraText(trace, di, labels) {\n if(trace.hovertemplate) return;\n\n var hoverinfo = di.hi || trace.hoverinfo;\n var parts = hoverinfo.split('+');\n var isAll = parts.indexOf('all') !== -1;\n var hasLon = parts.indexOf('lon') !== -1;\n var hasLat = parts.indexOf('lat') !== -1;\n var lonlat = di.lonlat;\n var text = [];\n\n // TODO should we use a mock axis to format hover?\n // If so, we'll need to make precision be zoom-level dependent\n function format(v) {\n return v + '\\u00B0';\n }\n\n if(isAll || (hasLon && hasLat)) {\n text.push('(' + format(lonlat[1]) + ', ' + format(lonlat[0]) + ')');\n } else if(hasLon) {\n text.push(labels.lon + format(lonlat[0]));\n } else if(hasLat) {\n text.push(labels.lat + format(lonlat[1]));\n }\n\n if(isAll || parts.indexOf('text') !== -1) {\n fillText(di, trace, text);\n }\n\n return text.join('
');\n}\n\nmodule.exports = {\n hoverPoints: hoverPoints,\n getExtraText: getExtraText\n};\n\n},{\"../../components/fx\":406,\"../../constants/numerical\":479,\"../../lib\":503,\"../scatter/get_trace_color\":935}],996:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n colorbar: _dereq_('../scatter/marker_colorbar'),\n formatLabels: _dereq_('./format_labels'),\n calc: _dereq_('../scattergeo/calc'),\n plot: _dereq_('./plot'),\n hoverPoints: _dereq_('./hover').hoverPoints,\n eventData: _dereq_('./event_data'),\n selectPoints: _dereq_('./select'),\n\n styleOnSelect: function(_, cd) {\n if(cd) {\n var trace = cd[0].trace;\n trace._glTrace.update(cd);\n }\n },\n\n moduleType: 'trace',\n name: 'scattermapbox',\n basePlotModule: _dereq_('../../plots/mapbox'),\n categories: ['mapbox', 'gl', 'symbols', 'showLegend', 'scatter-like'],\n meta: {\n }\n};\n\n},{\"../../plots/mapbox\":613,\"../scatter/marker_colorbar\":943,\"../scattergeo/calc\":968,\"./attributes\":990,\"./defaults\":992,\"./event_data\":993,\"./format_labels\":994,\"./hover\":995,\"./plot\":997,\"./select\":998}],997:[function(_dereq_,module,exports){\n'use strict';\n\nvar convert = _dereq_('./convert');\nvar LAYER_PREFIX = _dereq_('../../plots/mapbox/constants').traceLayerPrefix;\nvar ORDER = ['fill', 'line', 'circle', 'symbol'];\n\nfunction ScatterMapbox(subplot, uid) {\n this.type = 'scattermapbox';\n this.subplot = subplot;\n this.uid = uid;\n\n this.sourceIds = {\n fill: 'source-' + uid + '-fill',\n line: 'source-' + uid + '-line',\n circle: 'source-' + uid + '-circle',\n symbol: 'source-' + uid + '-symbol'\n };\n\n this.layerIds = {\n fill: LAYER_PREFIX + uid + '-fill',\n line: LAYER_PREFIX + uid + '-line',\n circle: LAYER_PREFIX + uid + '-circle',\n symbol: LAYER_PREFIX + uid + '-symbol'\n };\n\n // We could merge the 'fill' source with the 'line' source and\n // the 'circle' source with the 'symbol' source if ever having\n // for up-to 4 sources per 'scattermapbox' traces becomes a problem.\n\n // previous 'below' value,\n // need this to update it properly\n this.below = null;\n}\n\nvar proto = ScatterMapbox.prototype;\n\nproto.addSource = function(k, opts) {\n this.subplot.map.addSource(this.sourceIds[k], {\n type: 'geojson',\n data: opts.geojson\n });\n};\n\nproto.setSourceData = function(k, opts) {\n this.subplot.map\n .getSource(this.sourceIds[k])\n .setData(opts.geojson);\n};\n\nproto.addLayer = function(k, opts, below) {\n this.subplot.addLayer({\n type: k,\n id: this.layerIds[k],\n source: this.sourceIds[k],\n layout: opts.layout,\n paint: opts.paint\n }, below);\n};\n\nproto.update = function update(calcTrace) {\n var subplot = this.subplot;\n var map = subplot.map;\n var optsAll = convert(subplot.gd, calcTrace);\n var below = subplot.belowLookup['trace-' + this.uid];\n var i, k, opts;\n\n if(below !== this.below) {\n for(i = ORDER.length - 1; i >= 0; i--) {\n k = ORDER[i];\n map.removeLayer(this.layerIds[k]);\n }\n for(i = 0; i < ORDER.length; i++) {\n k = ORDER[i];\n opts = optsAll[k];\n this.addLayer(k, opts, below);\n }\n this.below = below;\n }\n\n for(i = 0; i < ORDER.length; i++) {\n k = ORDER[i];\n opts = optsAll[k];\n\n subplot.setOptions(this.layerIds[k], 'setLayoutProperty', opts.layout);\n\n if(opts.layout.visibility === 'visible') {\n this.setSourceData(k, opts);\n subplot.setOptions(this.layerIds[k], 'setPaintProperty', opts.paint);\n }\n }\n\n // link ref for quick update during selections\n calcTrace[0].trace._glTrace = this;\n};\n\nproto.dispose = function dispose() {\n var map = this.subplot.map;\n\n for(var i = ORDER.length - 1; i >= 0; i--) {\n var k = ORDER[i];\n map.removeLayer(this.layerIds[k]);\n map.removeSource(this.sourceIds[k]);\n }\n};\n\nmodule.exports = function createScatterMapbox(subplot, calcTrace) {\n var trace = calcTrace[0].trace;\n var scatterMapbox = new ScatterMapbox(subplot, trace.uid);\n var optsAll = convert(subplot.gd, calcTrace);\n var below = scatterMapbox.below = subplot.belowLookup['trace-' + trace.uid];\n\n for(var i = 0; i < ORDER.length; i++) {\n var k = ORDER[i];\n var opts = optsAll[k];\n scatterMapbox.addSource(k, opts);\n scatterMapbox.addLayer(k, opts, below);\n }\n\n // link ref for quick update during selections\n calcTrace[0].trace._glTrace = scatterMapbox;\n\n return scatterMapbox;\n};\n\n},{\"../../plots/mapbox/constants\":611,\"./convert\":991}],998:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar subtypes = _dereq_('../scatter/subtypes');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nmodule.exports = function selectPoints(searchInfo, selectionTester) {\n var cd = searchInfo.cd;\n var xa = searchInfo.xaxis;\n var ya = searchInfo.yaxis;\n var selection = [];\n var trace = cd[0].trace;\n var i;\n\n if(!subtypes.hasMarkers(trace)) return [];\n\n if(selectionTester === false) {\n for(i = 0; i < cd.length; i++) {\n cd[i].selected = 0;\n }\n } else {\n for(i = 0; i < cd.length; i++) {\n var di = cd[i];\n var lonlat = di.lonlat;\n\n if(lonlat[0] !== BADNUM) {\n var lonlat2 = [Lib.modHalf(lonlat[0], 360), lonlat[1]];\n var xy = [xa.c2p(lonlat2), ya.c2p(lonlat2)];\n\n if(selectionTester.contains(xy, null, i, searchInfo)) {\n selection.push({\n pointNumber: i,\n lon: lonlat[0],\n lat: lonlat[1]\n });\n di.selected = 1;\n } else {\n di.selected = 0;\n }\n }\n }\n }\n\n return selection;\n};\n\n},{\"../../constants/numerical\":479,\"../../lib\":503,\"../scatter/subtypes\":950}],999:[function(_dereq_,module,exports){\n'use strict';\n\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar scatterAttrs = _dereq_('../scatter/attributes');\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar lineAttrs = scatterAttrs.line;\n\nmodule.exports = {\n mode: scatterAttrs.mode,\n\n r: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n\n theta: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n\n r0: {\n valType: 'any',\n dflt: 0,\n editType: 'calc+clearAxisTypes',\n },\n dr: {\n valType: 'number',\n dflt: 1,\n editType: 'calc',\n },\n\n theta0: {\n valType: 'any',\n dflt: 0,\n editType: 'calc+clearAxisTypes',\n },\n dtheta: {\n valType: 'number',\n editType: 'calc',\n },\n\n thetaunit: {\n valType: 'enumerated',\n values: ['radians', 'degrees', 'gradians'],\n dflt: 'degrees',\n editType: 'calc+clearAxisTypes',\n },\n\n text: scatterAttrs.text,\n texttemplate: texttemplateAttrs({editType: 'plot'}, {\n keys: ['r', 'theta', 'text']\n }),\n hovertext: scatterAttrs.hovertext,\n\n line: {\n color: lineAttrs.color,\n width: lineAttrs.width,\n dash: lineAttrs.dash,\n shape: extendFlat({}, lineAttrs.shape, {\n values: ['linear', 'spline']\n }),\n smoothing: lineAttrs.smoothing,\n editType: 'calc'\n },\n connectgaps: scatterAttrs.connectgaps,\n\n marker: scatterAttrs.marker,\n cliponaxis: extendFlat({}, scatterAttrs.cliponaxis, {dflt: false}),\n\n textposition: scatterAttrs.textposition,\n textfont: scatterAttrs.textfont,\n\n fill: extendFlat({}, scatterAttrs.fill, {\n values: ['none', 'toself', 'tonext'],\n dflt: 'none',\n }),\n fillcolor: scatterAttrs.fillcolor,\n\n // TODO error bars\n // https://stackoverflow.com/a/26597487/4068492\n // error_x (error_r, error_theta)\n // error_y\n\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {\n flags: ['r', 'theta', 'text', 'name']\n }),\n hoveron: scatterAttrs.hoveron,\n hovertemplate: hovertemplateAttrs(),\n\n selected: scatterAttrs.selected,\n unselected: scatterAttrs.unselected\n};\n\n},{\"../../lib/extend\":493,\"../../plots/attributes\":550,\"../../plots/template_attributes\":633,\"../scatter/attributes\":925}],1000:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\n\nvar calcColorscale = _dereq_('../scatter/colorscale_calc');\nvar arraysToCalcdata = _dereq_('../scatter/arrays_to_calcdata');\nvar calcSelection = _dereq_('../scatter/calc_selection');\nvar calcMarkerSize = _dereq_('../scatter/calc').calcMarkerSize;\n\nmodule.exports = function calc(gd, trace) {\n var fullLayout = gd._fullLayout;\n var subplotId = trace.subplot;\n var radialAxis = fullLayout[subplotId].radialaxis;\n var angularAxis = fullLayout[subplotId].angularaxis;\n var rArray = radialAxis.makeCalcdata(trace, 'r');\n var thetaArray = angularAxis.makeCalcdata(trace, 'theta');\n var len = trace._length;\n var cd = new Array(len);\n\n for(var i = 0; i < len; i++) {\n var r = rArray[i];\n var theta = thetaArray[i];\n var cdi = cd[i] = {};\n\n if(isNumeric(r) && isNumeric(theta)) {\n cdi.r = r;\n cdi.theta = theta;\n } else {\n cdi.r = BADNUM;\n }\n }\n\n var ppad = calcMarkerSize(trace, len);\n trace._extremes.x = Axes.findExtremes(radialAxis, rArray, {ppad: ppad});\n\n calcColorscale(gd, trace);\n arraysToCalcdata(cd, trace);\n calcSelection(cd, trace);\n\n return cd;\n};\n\n},{\"../../constants/numerical\":479,\"../../plots/cartesian/axes\":554,\"../scatter/arrays_to_calcdata\":924,\"../scatter/calc\":926,\"../scatter/calc_selection\":927,\"../scatter/colorscale_calc\":928,\"fast-isnumeric\":190}],1001:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar subTypes = _dereq_('../scatter/subtypes');\nvar handleMarkerDefaults = _dereq_('../scatter/marker_defaults');\nvar handleLineDefaults = _dereq_('../scatter/line_defaults');\nvar handleLineShapeDefaults = _dereq_('../scatter/line_shape_defaults');\nvar handleTextDefaults = _dereq_('../scatter/text_defaults');\nvar handleFillColorDefaults = _dereq_('../scatter/fillcolor_defaults');\nvar PTS_LINESONLY = _dereq_('../scatter/constants').PTS_LINESONLY;\n\nvar attributes = _dereq_('./attributes');\n\nfunction supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var len = handleRThetaDefaults(traceIn, traceOut, layout, coerce);\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n coerce('thetaunit');\n coerce('mode', len < PTS_LINESONLY ? 'lines+markers' : 'lines');\n coerce('text');\n coerce('hovertext');\n if(traceOut.hoveron !== 'fills') coerce('hovertemplate');\n\n if(subTypes.hasLines(traceOut)) {\n handleLineDefaults(traceIn, traceOut, defaultColor, layout, coerce);\n handleLineShapeDefaults(traceIn, traceOut, coerce);\n coerce('connectgaps');\n }\n\n if(subTypes.hasMarkers(traceOut)) {\n handleMarkerDefaults(traceIn, traceOut, defaultColor, layout, coerce, {gradient: true});\n }\n\n if(subTypes.hasText(traceOut)) {\n coerce('texttemplate');\n handleTextDefaults(traceIn, traceOut, layout, coerce);\n }\n\n var dfltHoverOn = [];\n\n if(subTypes.hasMarkers(traceOut) || subTypes.hasText(traceOut)) {\n coerce('cliponaxis');\n coerce('marker.maxdisplayed');\n dfltHoverOn.push('points');\n }\n\n coerce('fill');\n\n if(traceOut.fill !== 'none') {\n handleFillColorDefaults(traceIn, traceOut, defaultColor, coerce);\n if(!subTypes.hasLines(traceOut)) handleLineShapeDefaults(traceIn, traceOut, coerce);\n }\n\n if(traceOut.fill === 'tonext' || traceOut.fill === 'toself') {\n dfltHoverOn.push('fills');\n }\n coerce('hoveron', dfltHoverOn.join('+') || 'points');\n\n Lib.coerceSelectionMarkerOpacity(traceOut, coerce);\n}\n\nfunction handleRThetaDefaults(traceIn, traceOut, layout, coerce) {\n var r = coerce('r');\n var theta = coerce('theta');\n var len;\n\n if(r) {\n if(theta) {\n len = Math.min(r.length, theta.length);\n } else {\n len = r.length;\n coerce('theta0');\n coerce('dtheta');\n }\n } else {\n if(!theta) return 0;\n len = traceOut.theta.length;\n coerce('r0');\n coerce('dr');\n }\n\n traceOut._length = len;\n return len;\n}\n\nmodule.exports = {\n handleRThetaDefaults: handleRThetaDefaults,\n supplyDefaults: supplyDefaults\n};\n\n},{\"../../lib\":503,\"../scatter/constants\":929,\"../scatter/fillcolor_defaults\":933,\"../scatter/line_defaults\":938,\"../scatter/line_shape_defaults\":940,\"../scatter/marker_defaults\":944,\"../scatter/subtypes\":950,\"../scatter/text_defaults\":951,\"./attributes\":999}],1002:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Axes = _dereq_('../../plots/cartesian/axes');\n\nmodule.exports = function formatLabels(cdi, trace, fullLayout) {\n var labels = {};\n\n var subplot = fullLayout[trace.subplot]._subplot;\n var radialAxis;\n var angularAxis;\n\n // for scatterpolargl texttemplate, _subplot is NOT defined, this takes part during the convert step\n // TODO we should consider moving the texttemplate formatting logic to the plot step\n if(!subplot) {\n subplot = fullLayout[trace.subplot];\n radialAxis = subplot.radialaxis;\n angularAxis = subplot.angularaxis;\n } else {\n radialAxis = subplot.radialAxis;\n angularAxis = subplot.angularAxis;\n }\n\n var rVal = radialAxis.c2l(cdi.r);\n labels.rLabel = Axes.tickText(radialAxis, rVal, true).text;\n\n // N.B here the ° sign is part of the formatted value for thetaunit:'degrees'\n var thetaVal = angularAxis.thetaunit === 'degrees' ? Lib.rad2deg(cdi.theta) : cdi.theta;\n labels.thetaLabel = Axes.tickText(angularAxis, thetaVal, true).text;\n\n return labels;\n};\n\n},{\"../../lib\":503,\"../../plots/cartesian/axes\":554}],1003:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterHover = _dereq_('../scatter/hover');\n\nfunction hoverPoints(pointData, xval, yval, hovermode) {\n var scatterPointData = scatterHover(pointData, xval, yval, hovermode);\n if(!scatterPointData || scatterPointData[0].index === false) return;\n\n var newPointData = scatterPointData[0];\n\n // hovering on fill case\n if(newPointData.index === undefined) {\n return scatterPointData;\n }\n\n var subplot = pointData.subplot;\n var cdi = newPointData.cd[newPointData.index];\n var trace = newPointData.trace;\n\n if(!subplot.isPtInside(cdi)) return;\n\n newPointData.xLabelVal = undefined;\n newPointData.yLabelVal = undefined;\n makeHoverPointText(cdi, trace, subplot, newPointData);\n newPointData.hovertemplate = trace.hovertemplate;\n return scatterPointData;\n}\n\nfunction makeHoverPointText(cdi, trace, subplot, pointData) {\n var radialAxis = subplot.radialAxis;\n var angularAxis = subplot.angularAxis;\n radialAxis._hovertitle = 'r';\n angularAxis._hovertitle = 'θ';\n\n var fullLayout = {};\n fullLayout[trace.subplot] = {_subplot: subplot};\n var labels = trace._module.formatLabels(cdi, trace, fullLayout);\n pointData.rLabel = labels.rLabel;\n pointData.thetaLabel = labels.thetaLabel;\n\n var hoverinfo = cdi.hi || trace.hoverinfo;\n var text = [];\n function textPart(ax, val) {\n text.push(ax._hovertitle + ': ' + val);\n }\n\n if(!trace.hovertemplate) {\n var parts = hoverinfo.split('+');\n\n if(parts.indexOf('all') !== -1) parts = ['r', 'theta', 'text'];\n if(parts.indexOf('r') !== -1) textPart(radialAxis, pointData.rLabel);\n if(parts.indexOf('theta') !== -1) textPart(angularAxis, pointData.thetaLabel);\n\n if(parts.indexOf('text') !== -1 && pointData.text) {\n text.push(pointData.text);\n delete pointData.text;\n }\n\n pointData.extraText = text.join('
');\n }\n}\n\nmodule.exports = {\n hoverPoints: hoverPoints,\n makeHoverPointText: makeHoverPointText\n};\n\n},{\"../scatter/hover\":936}],1004:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'trace',\n name: 'scatterpolar',\n basePlotModule: _dereq_('../../plots/polar'),\n categories: ['polar', 'symbols', 'showLegend', 'scatter-like'],\n\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults').supplyDefaults,\n colorbar: _dereq_('../scatter/marker_colorbar'),\n formatLabels: _dereq_('./format_labels'),\n calc: _dereq_('./calc'),\n plot: _dereq_('./plot'),\n style: _dereq_('../scatter/style').style,\n styleOnSelect: _dereq_('../scatter/style').styleOnSelect,\n hoverPoints: _dereq_('./hover').hoverPoints,\n selectPoints: _dereq_('../scatter/select'),\n\n meta: {\n }\n};\n\n},{\"../../plots/polar\":622,\"../scatter/marker_colorbar\":943,\"../scatter/select\":947,\"../scatter/style\":949,\"./attributes\":999,\"./calc\":1000,\"./defaults\":1001,\"./format_labels\":1002,\"./hover\":1003,\"./plot\":1005}],1005:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterPlot = _dereq_('../scatter/plot');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nmodule.exports = function plot(gd, subplot, moduleCalcData) {\n var mlayer = subplot.layers.frontplot.select('g.scatterlayer');\n\n var plotinfo = {\n xaxis: subplot.xaxis,\n yaxis: subplot.yaxis,\n plot: subplot.framework,\n layerClipId: subplot._hasClipOnAxisFalse ? subplot.clipIds.forTraces : null\n };\n\n var radialAxis = subplot.radialAxis;\n var angularAxis = subplot.angularAxis;\n\n // convert:\n // 'c' (r,theta) -> 'geometric' (r,theta) -> (x,y)\n for(var i = 0; i < moduleCalcData.length; i++) {\n var cdi = moduleCalcData[i];\n\n for(var j = 0; j < cdi.length; j++) {\n var cd = cdi[j];\n var r = cd.r;\n\n if(r === BADNUM) {\n cd.x = cd.y = BADNUM;\n } else {\n var rg = radialAxis.c2g(r);\n var thetag = angularAxis.c2g(cd.theta);\n cd.x = rg * Math.cos(thetag);\n cd.y = rg * Math.sin(thetag);\n }\n }\n }\n\n scatterPlot(gd, plotinfo, moduleCalcData, mlayer);\n};\n\n},{\"../../constants/numerical\":479,\"../scatter/plot\":946}],1006:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterPolarAttrs = _dereq_('../scatterpolar/attributes');\nvar scatterGlAttrs = _dereq_('../scattergl/attributes');\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\n\nmodule.exports = {\n mode: scatterPolarAttrs.mode,\n r: scatterPolarAttrs.r,\n theta: scatterPolarAttrs.theta,\n r0: scatterPolarAttrs.r0,\n dr: scatterPolarAttrs.dr,\n theta0: scatterPolarAttrs.theta0,\n dtheta: scatterPolarAttrs.dtheta,\n thetaunit: scatterPolarAttrs.thetaunit,\n\n text: scatterPolarAttrs.text,\n texttemplate: texttemplateAttrs({editType: 'plot'}, {\n keys: ['r', 'theta', 'text']\n }),\n hovertext: scatterPolarAttrs.hovertext,\n hovertemplate: scatterPolarAttrs.hovertemplate,\n\n line: scatterGlAttrs.line,\n connectgaps: scatterGlAttrs.connectgaps,\n\n marker: scatterGlAttrs.marker,\n // no cliponaxis\n\n fill: scatterGlAttrs.fill,\n fillcolor: scatterGlAttrs.fillcolor,\n\n textposition: scatterGlAttrs.textposition,\n textfont: scatterGlAttrs.textfont,\n\n hoverinfo: scatterPolarAttrs.hoverinfo,\n // no hoveron\n\n selected: scatterPolarAttrs.selected,\n unselected: scatterPolarAttrs.unselected\n};\n\n},{\"../../plots/template_attributes\":633,\"../scattergl/attributes\":977,\"../scatterpolar/attributes\":999}],1007:[function(_dereq_,module,exports){\n'use strict';\n\nvar calcColorscale = _dereq_('../scatter/colorscale_calc');\nvar calcMarkerSize = _dereq_('../scatter/calc').calcMarkerSize;\nvar convert = _dereq_('../scattergl/convert');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar TOO_MANY_POINTS = _dereq_('../scattergl/constants').TOO_MANY_POINTS;\n\nmodule.exports = function calc(gd, trace) {\n var fullLayout = gd._fullLayout;\n var subplotId = trace.subplot;\n var radialAxis = fullLayout[subplotId].radialaxis;\n var angularAxis = fullLayout[subplotId].angularaxis;\n var rArray = trace._r = radialAxis.makeCalcdata(trace, 'r');\n var thetaArray = trace._theta = angularAxis.makeCalcdata(trace, 'theta');\n var len = trace._length;\n var stash = {};\n\n if(len < rArray.length) rArray = rArray.slice(0, len);\n if(len < thetaArray.length) thetaArray = thetaArray.slice(0, len);\n\n stash.r = rArray;\n stash.theta = thetaArray;\n\n calcColorscale(gd, trace);\n\n // only compute 'style' options in calc, as position options\n // depend on the radial range and must be set in plot\n var opts = stash.opts = convert.style(gd, trace);\n\n // For graphs with very large number of points and array marker.size,\n // use average marker size instead to speed things up.\n var ppad;\n if(len < TOO_MANY_POINTS) {\n ppad = calcMarkerSize(trace, len);\n } else if(opts.marker) {\n ppad = 2 * (opts.marker.sizeAvg || Math.max(opts.marker.size, 3));\n }\n trace._extremes.x = Axes.findExtremes(radialAxis, rArray, {ppad: ppad});\n\n return [{x: false, y: false, t: stash, trace: trace}];\n};\n\n},{\"../../plots/cartesian/axes\":554,\"../scatter/calc\":926,\"../scatter/colorscale_calc\":928,\"../scattergl/constants\":979,\"../scattergl/convert\":980}],1008:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar subTypes = _dereq_('../scatter/subtypes');\nvar handleRThetaDefaults = _dereq_('../scatterpolar/defaults').handleRThetaDefaults;\nvar handleMarkerDefaults = _dereq_('../scatter/marker_defaults');\nvar handleLineDefaults = _dereq_('../scatter/line_defaults');\nvar handleTextDefaults = _dereq_('../scatter/text_defaults');\nvar handleFillColorDefaults = _dereq_('../scatter/fillcolor_defaults');\nvar PTS_LINESONLY = _dereq_('../scatter/constants').PTS_LINESONLY;\n\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var len = handleRThetaDefaults(traceIn, traceOut, layout, coerce);\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n coerce('thetaunit');\n coerce('mode', len < PTS_LINESONLY ? 'lines+markers' : 'lines');\n coerce('text');\n coerce('hovertext');\n if(traceOut.hoveron !== 'fills') coerce('hovertemplate');\n\n if(subTypes.hasLines(traceOut)) {\n handleLineDefaults(traceIn, traceOut, defaultColor, layout, coerce);\n coerce('connectgaps');\n }\n\n if(subTypes.hasMarkers(traceOut)) {\n handleMarkerDefaults(traceIn, traceOut, defaultColor, layout, coerce);\n }\n\n if(subTypes.hasText(traceOut)) {\n coerce('texttemplate');\n handleTextDefaults(traceIn, traceOut, layout, coerce);\n }\n\n coerce('fill');\n if(traceOut.fill !== 'none') {\n handleFillColorDefaults(traceIn, traceOut, defaultColor, coerce);\n }\n\n Lib.coerceSelectionMarkerOpacity(traceOut, coerce);\n};\n\n},{\"../../lib\":503,\"../scatter/constants\":929,\"../scatter/fillcolor_defaults\":933,\"../scatter/line_defaults\":938,\"../scatter/marker_defaults\":944,\"../scatter/subtypes\":950,\"../scatter/text_defaults\":951,\"../scatterpolar/defaults\":1001,\"./attributes\":1006}],1009:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterPolarFormatLabels = _dereq_('../scatterpolar/format_labels');\n\nmodule.exports = function formatLabels(cdi, trace, fullLayout) {\n var i = cdi.i;\n if(!('r' in cdi)) cdi.r = trace._r[i];\n if(!('theta' in cdi)) cdi.theta = trace._theta[i];\n return scatterPolarFormatLabels(cdi, trace, fullLayout);\n};\n\n},{\"../scatterpolar/format_labels\":1002}],1010:[function(_dereq_,module,exports){\n'use strict';\n\nvar hover = _dereq_('../scattergl/hover');\nvar makeHoverPointText = _dereq_('../scatterpolar/hover').makeHoverPointText;\n\nfunction hoverPoints(pointData, xval, yval, hovermode) {\n var cd = pointData.cd;\n var stash = cd[0].t;\n var rArray = stash.r;\n var thetaArray = stash.theta;\n\n var scatterPointData = hover.hoverPoints(pointData, xval, yval, hovermode);\n if(!scatterPointData || scatterPointData[0].index === false) return;\n\n var newPointData = scatterPointData[0];\n\n if(newPointData.index === undefined) {\n return scatterPointData;\n }\n\n var subplot = pointData.subplot;\n var cdi = newPointData.cd[newPointData.index];\n var trace = newPointData.trace;\n\n // augment pointData with r/theta param\n cdi.r = rArray[newPointData.index];\n cdi.theta = thetaArray[newPointData.index];\n\n if(!subplot.isPtInside(cdi)) return;\n\n newPointData.xLabelVal = undefined;\n newPointData.yLabelVal = undefined;\n makeHoverPointText(cdi, trace, subplot, newPointData);\n\n return scatterPointData;\n}\n\nmodule.exports = {\n hoverPoints: hoverPoints\n};\n\n},{\"../scattergl/hover\":985,\"../scatterpolar/hover\":1003}],1011:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'trace',\n name: 'scatterpolargl',\n basePlotModule: _dereq_('../../plots/polar'),\n categories: ['gl', 'regl', 'polar', 'symbols', 'showLegend', 'scatter-like'],\n\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n colorbar: _dereq_('../scatter/marker_colorbar'),\n formatLabels: _dereq_('./format_labels'),\n\n calc: _dereq_('./calc'),\n plot: _dereq_('./plot'),\n hoverPoints: _dereq_('./hover').hoverPoints,\n selectPoints: _dereq_('../scattergl/select'),\n\n meta: {\n }\n};\n\n},{\"../../plots/polar\":622,\"../scatter/marker_colorbar\":943,\"../scattergl/select\":989,\"./attributes\":1006,\"./calc\":1007,\"./defaults\":1008,\"./format_labels\":1009,\"./hover\":1010,\"./plot\":1012}],1012:[function(_dereq_,module,exports){\n'use strict';\n\nvar cluster = _dereq_('@plotly/point-cluster');\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar scatterglPlot = _dereq_('../scattergl/plot');\nvar sceneUpdate = _dereq_('../scattergl/scene_update');\nvar convert = _dereq_('../scattergl/convert');\n\nvar Lib = _dereq_('../../lib');\n\nvar TOO_MANY_POINTS = _dereq_('../scattergl/constants').TOO_MANY_POINTS;\n\nmodule.exports = function plot(gd, subplot, cdata) {\n if(!cdata.length) return;\n\n var radialAxis = subplot.radialAxis;\n var angularAxis = subplot.angularAxis;\n var scene = sceneUpdate(gd, subplot);\n\n cdata.forEach(function(cdscatter) {\n if(!cdscatter || !cdscatter[0] || !cdscatter[0].trace) return;\n var cd = cdscatter[0];\n var trace = cd.trace;\n var stash = cd.t;\n var len = trace._length;\n var rArray = stash.r;\n var thetaArray = stash.theta;\n var opts = stash.opts;\n var i;\n\n var subRArray = rArray.slice();\n var subThetaArray = thetaArray.slice();\n\n // filter out by range\n for(i = 0; i < rArray.length; i++) {\n if(!subplot.isPtInside({r: rArray[i], theta: thetaArray[i]})) {\n subRArray[i] = NaN;\n subThetaArray[i] = NaN;\n }\n }\n\n var positions = new Array(len * 2);\n var x = Array(len);\n var y = Array(len);\n\n for(i = 0; i < len; i++) {\n var r = subRArray[i];\n var xx, yy;\n\n if(isNumeric(r)) {\n var rg = radialAxis.c2g(r);\n var thetag = angularAxis.c2g(subThetaArray[i], trace.thetaunit);\n xx = rg * Math.cos(thetag);\n yy = rg * Math.sin(thetag);\n } else {\n xx = yy = NaN;\n }\n x[i] = positions[i * 2] = xx;\n y[i] = positions[i * 2 + 1] = yy;\n }\n\n stash.tree = cluster(positions);\n\n // FIXME: see scattergl.js#109\n if(opts.marker && len >= TOO_MANY_POINTS) {\n opts.marker.cluster = stash.tree;\n }\n\n if(opts.marker) {\n opts.markerSel.positions = opts.markerUnsel.positions = opts.marker.positions = positions;\n }\n\n if(opts.line && positions.length > 1) {\n Lib.extendFlat(\n opts.line,\n convert.linePositions(gd, trace, positions)\n );\n }\n\n if(opts.text) {\n Lib.extendFlat(\n opts.text,\n {positions: positions},\n convert.textPosition(gd, trace, opts.text, opts.marker)\n );\n Lib.extendFlat(\n opts.textSel,\n {positions: positions},\n convert.textPosition(gd, trace, opts.text, opts.markerSel)\n );\n Lib.extendFlat(\n opts.textUnsel,\n {positions: positions},\n convert.textPosition(gd, trace, opts.text, opts.markerUnsel)\n );\n }\n\n if(opts.fill && !scene.fill2d) scene.fill2d = true;\n if(opts.marker && !scene.scatter2d) scene.scatter2d = true;\n if(opts.line && !scene.line2d) scene.line2d = true;\n if(opts.text && !scene.glText) scene.glText = true;\n\n scene.lineOptions.push(opts.line);\n scene.fillOptions.push(opts.fill);\n scene.markerOptions.push(opts.marker);\n scene.markerSelectedOptions.push(opts.markerSel);\n scene.markerUnselectedOptions.push(opts.markerUnsel);\n scene.textOptions.push(opts.text);\n scene.textSelectedOptions.push(opts.textSel);\n scene.textUnselectedOptions.push(opts.textUnsel);\n scene.selectBatch.push([]);\n scene.unselectBatch.push([]);\n\n stash.x = x;\n stash.y = y;\n stash.rawx = x;\n stash.rawy = y;\n stash.r = rArray;\n stash.theta = thetaArray;\n stash.positions = positions;\n stash._scene = scene;\n stash.index = scene.count;\n scene.count++;\n });\n\n return scatterglPlot(gd, subplot, cdata);\n};\n\n},{\"../../lib\":503,\"../scattergl/constants\":979,\"../scattergl/convert\":980,\"../scattergl/plot\":987,\"../scattergl/scene_update\":988,\"@plotly/point-cluster\":59,\"fast-isnumeric\":190}],1013:[function(_dereq_,module,exports){\n'use strict';\n\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar scatterAttrs = _dereq_('../scatter/attributes');\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar lineAttrs = scatterAttrs.line;\n\nmodule.exports = {\n mode: scatterAttrs.mode,\n\n real: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n\n imag: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n\n text: scatterAttrs.text,\n texttemplate: texttemplateAttrs({editType: 'plot'}, {\n keys: ['real', 'imag', 'text']\n }),\n hovertext: scatterAttrs.hovertext,\n\n line: {\n color: lineAttrs.color,\n width: lineAttrs.width,\n dash: lineAttrs.dash,\n shape: extendFlat({}, lineAttrs.shape, {\n values: ['linear', 'spline']\n }),\n smoothing: lineAttrs.smoothing,\n editType: 'calc'\n },\n connectgaps: scatterAttrs.connectgaps,\n\n marker: scatterAttrs.marker,\n cliponaxis: extendFlat({}, scatterAttrs.cliponaxis, {dflt: false}),\n\n textposition: scatterAttrs.textposition,\n textfont: scatterAttrs.textfont,\n\n fill: extendFlat({}, scatterAttrs.fill, {\n values: ['none', 'toself', 'tonext'],\n dflt: 'none',\n }),\n fillcolor: scatterAttrs.fillcolor,\n\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {\n flags: ['real', 'imag', 'text', 'name']\n }),\n hoveron: scatterAttrs.hoveron,\n hovertemplate: hovertemplateAttrs(),\n\n selected: scatterAttrs.selected,\n unselected: scatterAttrs.unselected\n};\n\n},{\"../../lib/extend\":493,\"../../plots/attributes\":550,\"../../plots/template_attributes\":633,\"../scatter/attributes\":925}],1014:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nvar calcColorscale = _dereq_('../scatter/colorscale_calc');\nvar arraysToCalcdata = _dereq_('../scatter/arrays_to_calcdata');\nvar calcSelection = _dereq_('../scatter/calc_selection');\nvar calcMarkerSize = _dereq_('../scatter/calc').calcMarkerSize;\n\nmodule.exports = function calc(gd, trace) {\n var fullLayout = gd._fullLayout;\n var subplotId = trace.subplot;\n var realAxis = fullLayout[subplotId].realaxis;\n var imaginaryAxis = fullLayout[subplotId].imaginaryaxis;\n var realArray = realAxis.makeCalcdata(trace, 'real');\n var imagArray = imaginaryAxis.makeCalcdata(trace, 'imag');\n var len = trace._length;\n var cd = new Array(len);\n\n for(var i = 0; i < len; i++) {\n var real = realArray[i];\n var imag = imagArray[i];\n var cdi = cd[i] = {};\n\n if(isNumeric(real) && isNumeric(imag)) {\n cdi.real = real;\n cdi.imag = imag;\n } else {\n cdi.real = BADNUM;\n }\n }\n\n calcMarkerSize(trace, len);\n calcColorscale(gd, trace);\n arraysToCalcdata(cd, trace);\n calcSelection(cd, trace);\n\n return cd;\n};\n\n},{\"../../constants/numerical\":479,\"../scatter/arrays_to_calcdata\":924,\"../scatter/calc\":926,\"../scatter/calc_selection\":927,\"../scatter/colorscale_calc\":928,\"fast-isnumeric\":190}],1015:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar subTypes = _dereq_('../scatter/subtypes');\nvar handleMarkerDefaults = _dereq_('../scatter/marker_defaults');\nvar handleLineDefaults = _dereq_('../scatter/line_defaults');\nvar handleLineShapeDefaults = _dereq_('../scatter/line_shape_defaults');\nvar handleTextDefaults = _dereq_('../scatter/text_defaults');\nvar handleFillColorDefaults = _dereq_('../scatter/fillcolor_defaults');\nvar PTS_LINESONLY = _dereq_('../scatter/constants').PTS_LINESONLY;\n\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var len = handleRealImagDefaults(traceIn, traceOut, layout, coerce);\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n coerce('mode', len < PTS_LINESONLY ? 'lines+markers' : 'lines');\n coerce('text');\n coerce('hovertext');\n if(traceOut.hoveron !== 'fills') coerce('hovertemplate');\n\n if(subTypes.hasLines(traceOut)) {\n handleLineDefaults(traceIn, traceOut, defaultColor, layout, coerce);\n handleLineShapeDefaults(traceIn, traceOut, coerce);\n coerce('connectgaps');\n }\n\n if(subTypes.hasMarkers(traceOut)) {\n handleMarkerDefaults(traceIn, traceOut, defaultColor, layout, coerce, {gradient: true});\n }\n\n if(subTypes.hasText(traceOut)) {\n coerce('texttemplate');\n handleTextDefaults(traceIn, traceOut, layout, coerce);\n }\n\n var dfltHoverOn = [];\n\n if(subTypes.hasMarkers(traceOut) || subTypes.hasText(traceOut)) {\n coerce('cliponaxis');\n coerce('marker.maxdisplayed');\n dfltHoverOn.push('points');\n }\n\n coerce('fill');\n\n if(traceOut.fill !== 'none') {\n handleFillColorDefaults(traceIn, traceOut, defaultColor, coerce);\n if(!subTypes.hasLines(traceOut)) handleLineShapeDefaults(traceIn, traceOut, coerce);\n }\n\n if(traceOut.fill === 'tonext' || traceOut.fill === 'toself') {\n dfltHoverOn.push('fills');\n }\n coerce('hoveron', dfltHoverOn.join('+') || 'points');\n\n Lib.coerceSelectionMarkerOpacity(traceOut, coerce);\n};\n\nfunction handleRealImagDefaults(traceIn, traceOut, layout, coerce) {\n var real = coerce('real');\n var imag = coerce('imag');\n var len;\n\n if(real && imag) {\n len = Math.min(real.length, imag.length);\n }\n\n traceOut._length = len;\n return len;\n}\n\n},{\"../../lib\":503,\"../scatter/constants\":929,\"../scatter/fillcolor_defaults\":933,\"../scatter/line_defaults\":938,\"../scatter/line_shape_defaults\":940,\"../scatter/marker_defaults\":944,\"../scatter/subtypes\":950,\"../scatter/text_defaults\":951,\"./attributes\":1013}],1016:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\n\nmodule.exports = function formatLabels(cdi, trace, fullLayout) {\n var labels = {};\n\n var subplot = fullLayout[trace.subplot]._subplot;\n\n labels.realLabel = Axes.tickText(subplot.radialAxis, cdi.real, true).text;\n labels.imagLabel = Axes.tickText(subplot.angularAxis, cdi.imag, true).text;\n\n return labels;\n};\n\n},{\"../../plots/cartesian/axes\":554}],1017:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterHover = _dereq_('../scatter/hover');\n\nfunction hoverPoints(pointData, xval, yval, hovermode) {\n var scatterPointData = scatterHover(pointData, xval, yval, hovermode);\n if(!scatterPointData || scatterPointData[0].index === false) return;\n\n var newPointData = scatterPointData[0];\n\n // hovering on fill case\n if(newPointData.index === undefined) {\n return scatterPointData;\n }\n\n var subplot = pointData.subplot;\n var cdi = newPointData.cd[newPointData.index];\n var trace = newPointData.trace;\n\n if(!subplot.isPtInside(cdi)) return;\n\n newPointData.xLabelVal = undefined;\n newPointData.yLabelVal = undefined;\n makeHoverPointText(cdi, trace, subplot, newPointData);\n newPointData.hovertemplate = trace.hovertemplate;\n return scatterPointData;\n}\n\nfunction makeHoverPointText(cdi, trace, subplot, pointData) {\n var realAxis = subplot.radialAxis;\n var imaginaryAxis = subplot.angularAxis;\n realAxis._hovertitle = 'real';\n imaginaryAxis._hovertitle = 'imag';\n\n var fullLayout = {};\n fullLayout[trace.subplot] = {_subplot: subplot};\n var labels = trace._module.formatLabels(cdi, trace, fullLayout);\n pointData.realLabel = labels.realLabel;\n pointData.imagLabel = labels.imagLabel;\n\n var hoverinfo = cdi.hi || trace.hoverinfo;\n var text = [];\n function textPart(ax, val) {\n text.push(ax._hovertitle + ': ' + val);\n }\n\n if(!trace.hovertemplate) {\n var parts = hoverinfo.split('+');\n\n if(parts.indexOf('all') !== -1) parts = ['real', 'imag', 'text'];\n if(parts.indexOf('real') !== -1) textPart(realAxis, pointData.realLabel);\n if(parts.indexOf('imag') !== -1) textPart(imaginaryAxis, pointData.imagLabel);\n\n if(parts.indexOf('text') !== -1 && pointData.text) {\n text.push(pointData.text);\n delete pointData.text;\n }\n\n pointData.extraText = text.join('
');\n }\n}\n\nmodule.exports = {\n hoverPoints: hoverPoints,\n makeHoverPointText: makeHoverPointText\n};\n\n},{\"../scatter/hover\":936}],1018:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'trace',\n name: 'scattersmith',\n basePlotModule: _dereq_('../../plots/smith'),\n categories: ['smith', 'symbols', 'showLegend', 'scatter-like'],\n\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n colorbar: _dereq_('../scatter/marker_colorbar'),\n formatLabels: _dereq_('./format_labels'),\n calc: _dereq_('./calc'),\n plot: _dereq_('./plot'),\n style: _dereq_('../scatter/style').style,\n styleOnSelect: _dereq_('../scatter/style').styleOnSelect,\n hoverPoints: _dereq_('./hover').hoverPoints,\n selectPoints: _dereq_('../scatter/select'),\n\n meta: {\n }\n};\n\n},{\"../../plots/smith\":629,\"../scatter/marker_colorbar\":943,\"../scatter/select\":947,\"../scatter/style\":949,\"./attributes\":1013,\"./calc\":1014,\"./defaults\":1015,\"./format_labels\":1016,\"./hover\":1017,\"./plot\":1019}],1019:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterPlot = _dereq_('../scatter/plot');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\nvar helpers = _dereq_('../../plots/smith/helpers');\nvar smith = helpers.smith;\n\nmodule.exports = function plot(gd, subplot, moduleCalcData) {\n var mlayer = subplot.layers.frontplot.select('g.scatterlayer');\n\n var plotinfo = {\n xaxis: subplot.xaxis,\n yaxis: subplot.yaxis,\n plot: subplot.framework,\n layerClipId: subplot._hasClipOnAxisFalse ? subplot.clipIds.forTraces : null\n };\n\n // convert:\n // 'c' (real,imag) -> (x,y)\n for(var i = 0; i < moduleCalcData.length; i++) {\n var cdi = moduleCalcData[i];\n\n for(var j = 0; j < cdi.length; j++) {\n var cd = cdi[j];\n var real = cd.real;\n\n if(real === BADNUM) {\n cd.x = cd.y = BADNUM;\n } else {\n var t = smith([real, cd.imag]);\n\n cd.x = t[0];\n cd.y = t[1];\n }\n }\n }\n\n scatterPlot(gd, plotinfo, moduleCalcData, mlayer);\n};\n\n},{\"../../constants/numerical\":479,\"../../plots/smith/helpers\":628,\"../scatter/plot\":946}],1020:[function(_dereq_,module,exports){\n'use strict';\n\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\nvar scatterAttrs = _dereq_('../scatter/attributes');\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar dash = _dereq_('../../components/drawing/attributes').dash;\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nvar scatterMarkerAttrs = scatterAttrs.marker;\nvar scatterLineAttrs = scatterAttrs.line;\nvar scatterMarkerLineAttrs = scatterMarkerAttrs.line;\n\nmodule.exports = {\n a: {\n valType: 'data_array',\n editType: 'calc',\n },\n b: {\n valType: 'data_array',\n editType: 'calc',\n },\n c: {\n valType: 'data_array',\n editType: 'calc',\n },\n sum: {\n valType: 'number',\n dflt: 0,\n min: 0,\n editType: 'calc',\n },\n mode: extendFlat({}, scatterAttrs.mode, {dflt: 'markers'}),\n text: extendFlat({}, scatterAttrs.text, {\n }),\n texttemplate: texttemplateAttrs({editType: 'plot'}, {\n keys: ['a', 'b', 'c', 'text']\n }),\n hovertext: extendFlat({}, scatterAttrs.hovertext, {\n }),\n line: {\n color: scatterLineAttrs.color,\n width: scatterLineAttrs.width,\n dash: dash,\n shape: extendFlat({}, scatterLineAttrs.shape,\n {values: ['linear', 'spline']}),\n smoothing: scatterLineAttrs.smoothing,\n editType: 'calc'\n },\n connectgaps: scatterAttrs.connectgaps,\n cliponaxis: scatterAttrs.cliponaxis,\n fill: extendFlat({}, scatterAttrs.fill, {\n values: ['none', 'toself', 'tonext'],\n dflt: 'none',\n }),\n fillcolor: scatterAttrs.fillcolor,\n marker: extendFlat({\n symbol: scatterMarkerAttrs.symbol,\n opacity: scatterMarkerAttrs.opacity,\n maxdisplayed: scatterMarkerAttrs.maxdisplayed,\n size: scatterMarkerAttrs.size,\n sizeref: scatterMarkerAttrs.sizeref,\n sizemin: scatterMarkerAttrs.sizemin,\n sizemode: scatterMarkerAttrs.sizemode,\n line: extendFlat({\n width: scatterMarkerLineAttrs.width,\n editType: 'calc'\n },\n colorScaleAttrs('marker.line')\n ),\n gradient: scatterMarkerAttrs.gradient,\n editType: 'calc'\n },\n colorScaleAttrs('marker')\n ),\n\n textfont: scatterAttrs.textfont,\n textposition: scatterAttrs.textposition,\n\n selected: scatterAttrs.selected,\n unselected: scatterAttrs.unselected,\n\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {\n flags: ['a', 'b', 'c', 'text', 'name']\n }),\n hoveron: scatterAttrs.hoveron,\n hovertemplate: hovertemplateAttrs(),\n};\n\n},{\"../../components/colorscale/attributes\":373,\"../../components/drawing/attributes\":387,\"../../lib/extend\":493,\"../../plots/attributes\":550,\"../../plots/template_attributes\":633,\"../scatter/attributes\":925}],1021:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar calcColorscale = _dereq_('../scatter/colorscale_calc');\nvar arraysToCalcdata = _dereq_('../scatter/arrays_to_calcdata');\nvar calcSelection = _dereq_('../scatter/calc_selection');\nvar calcMarkerSize = _dereq_('../scatter/calc').calcMarkerSize;\n\nvar dataArrays = ['a', 'b', 'c'];\nvar arraysToFill = {a: ['b', 'c'], b: ['a', 'c'], c: ['a', 'b']};\n\nmodule.exports = function calc(gd, trace) {\n var ternary = gd._fullLayout[trace.subplot];\n var displaySum = ternary.sum;\n var normSum = trace.sum || displaySum;\n var arrays = {a: trace.a, b: trace.b, c: trace.c};\n\n var i, j, dataArray, newArray, fillArray1, fillArray2;\n\n // fill in one missing component\n for(i = 0; i < dataArrays.length; i++) {\n dataArray = dataArrays[i];\n if(arrays[dataArray]) continue;\n\n fillArray1 = arrays[arraysToFill[dataArray][0]];\n fillArray2 = arrays[arraysToFill[dataArray][1]];\n newArray = new Array(fillArray1.length);\n for(j = 0; j < fillArray1.length; j++) {\n newArray[j] = normSum - fillArray1[j] - fillArray2[j];\n }\n arrays[dataArray] = newArray;\n }\n\n // make the calcdata array\n var serieslen = trace._length;\n var cd = new Array(serieslen);\n var a, b, c, norm, x, y;\n for(i = 0; i < serieslen; i++) {\n a = arrays.a[i];\n b = arrays.b[i];\n c = arrays.c[i];\n if(isNumeric(a) && isNumeric(b) && isNumeric(c)) {\n a = +a;\n b = +b;\n c = +c;\n norm = displaySum / (a + b + c);\n if(norm !== 1) {\n a *= norm;\n b *= norm;\n c *= norm;\n }\n // map a, b, c onto x and y where the full scale of y\n // is [0, sum], and x is [-sum, sum]\n // TODO: this makes `a` always the top, `b` the bottom left,\n // and `c` the bottom right. Do we want options to rearrange\n // these?\n y = a;\n x = c - b;\n cd[i] = {x: x, y: y, a: a, b: b, c: c};\n } else cd[i] = {x: false, y: false};\n }\n\n calcMarkerSize(trace, serieslen);\n calcColorscale(gd, trace);\n arraysToCalcdata(cd, trace);\n calcSelection(cd, trace);\n\n return cd;\n};\n\n},{\"../scatter/arrays_to_calcdata\":924,\"../scatter/calc\":926,\"../scatter/calc_selection\":927,\"../scatter/colorscale_calc\":928,\"fast-isnumeric\":190}],1022:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar constants = _dereq_('../scatter/constants');\nvar subTypes = _dereq_('../scatter/subtypes');\nvar handleMarkerDefaults = _dereq_('../scatter/marker_defaults');\nvar handleLineDefaults = _dereq_('../scatter/line_defaults');\nvar handleLineShapeDefaults = _dereq_('../scatter/line_shape_defaults');\nvar handleTextDefaults = _dereq_('../scatter/text_defaults');\nvar handleFillColorDefaults = _dereq_('../scatter/fillcolor_defaults');\n\nvar attributes = _dereq_('./attributes');\n\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var a = coerce('a');\n var b = coerce('b');\n var c = coerce('c');\n var len;\n\n // allow any one array to be missing, len is the minimum length of those\n // present. Note that after coerce data_array's are either Arrays (which\n // are truthy even if empty) or undefined. As in scatter, an empty array\n // is different from undefined, because it can signify that this data is\n // not known yet but expected in the future\n if(a) {\n len = a.length;\n if(b) {\n len = Math.min(len, b.length);\n if(c) len = Math.min(len, c.length);\n } else if(c) len = Math.min(len, c.length);\n else len = 0;\n } else if(b && c) {\n len = Math.min(b.length, c.length);\n }\n\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n traceOut._length = len;\n\n coerce('sum');\n\n coerce('text');\n coerce('hovertext');\n if(traceOut.hoveron !== 'fills') coerce('hovertemplate');\n\n var defaultMode = len < constants.PTS_LINESONLY ? 'lines+markers' : 'lines';\n coerce('mode', defaultMode);\n\n if(subTypes.hasLines(traceOut)) {\n handleLineDefaults(traceIn, traceOut, defaultColor, layout, coerce);\n handleLineShapeDefaults(traceIn, traceOut, coerce);\n coerce('connectgaps');\n }\n\n if(subTypes.hasMarkers(traceOut)) {\n handleMarkerDefaults(traceIn, traceOut, defaultColor, layout, coerce, {gradient: true});\n }\n\n if(subTypes.hasText(traceOut)) {\n coerce('texttemplate');\n handleTextDefaults(traceIn, traceOut, layout, coerce);\n }\n\n var dfltHoverOn = [];\n\n if(subTypes.hasMarkers(traceOut) || subTypes.hasText(traceOut)) {\n coerce('cliponaxis');\n coerce('marker.maxdisplayed');\n dfltHoverOn.push('points');\n }\n\n coerce('fill');\n if(traceOut.fill !== 'none') {\n handleFillColorDefaults(traceIn, traceOut, defaultColor, coerce);\n if(!subTypes.hasLines(traceOut)) handleLineShapeDefaults(traceIn, traceOut, coerce);\n }\n\n if(traceOut.fill === 'tonext' || traceOut.fill === 'toself') {\n dfltHoverOn.push('fills');\n }\n coerce('hoveron', dfltHoverOn.join('+') || 'points');\n\n Lib.coerceSelectionMarkerOpacity(traceOut, coerce);\n};\n\n},{\"../../lib\":503,\"../scatter/constants\":929,\"../scatter/fillcolor_defaults\":933,\"../scatter/line_defaults\":938,\"../scatter/line_shape_defaults\":940,\"../scatter/marker_defaults\":944,\"../scatter/subtypes\":950,\"../scatter/text_defaults\":951,\"./attributes\":1020}],1023:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function eventData(out, pt, trace, cd, pointNumber) {\n if(pt.xa) out.xaxis = pt.xa;\n if(pt.ya) out.yaxis = pt.ya;\n\n if(cd[pointNumber]) {\n var cdi = cd[pointNumber];\n\n // N.B. These are the normalized coordinates.\n out.a = cdi.a;\n out.b = cdi.b;\n out.c = cdi.c;\n } else {\n // for fill-hover only\n out.a = pt.a;\n out.b = pt.b;\n out.c = pt.c;\n }\n\n return out;\n};\n\n},{}],1024:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\n\nmodule.exports = function formatLabels(cdi, trace, fullLayout) {\n var labels = {};\n\n var subplot = fullLayout[trace.subplot]._subplot;\n labels.aLabel = Axes.tickText(subplot.aaxis, cdi.a, true).text;\n labels.bLabel = Axes.tickText(subplot.baxis, cdi.b, true).text;\n labels.cLabel = Axes.tickText(subplot.caxis, cdi.c, true).text;\n\n return labels;\n};\n\n},{\"../../plots/cartesian/axes\":554}],1025:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterHover = _dereq_('../scatter/hover');\n\nmodule.exports = function hoverPoints(pointData, xval, yval, hovermode) {\n var scatterPointData = scatterHover(pointData, xval, yval, hovermode);\n if(!scatterPointData || scatterPointData[0].index === false) return;\n\n var newPointData = scatterPointData[0];\n\n // if hovering on a fill, we don't show any point data so the label is\n // unchanged from what scatter gives us - except that it needs to\n // be constrained to the trianglular plot area, not just the rectangular\n // area defined by the synthetic x and y axes\n // TODO: in some cases the vertical middle of the shape is not within\n // the triangular viewport at all, so the label can become disconnected\n // from the shape entirely. But calculating what portion of the shape\n // is actually visible, as constrained by the diagonal axis lines, is not\n // so easy and anyway we lost the information we would have needed to do\n // this inside scatterHover.\n if(newPointData.index === undefined) {\n var yFracUp = 1 - (newPointData.y0 / pointData.ya._length);\n var xLen = pointData.xa._length;\n var xMin = xLen * yFracUp / 2;\n var xMax = xLen - xMin;\n newPointData.x0 = Math.max(Math.min(newPointData.x0, xMax), xMin);\n newPointData.x1 = Math.max(Math.min(newPointData.x1, xMax), xMin);\n return scatterPointData;\n }\n\n var cdi = newPointData.cd[newPointData.index];\n var trace = newPointData.trace;\n var subplot = newPointData.subplot;\n\n newPointData.a = cdi.a;\n newPointData.b = cdi.b;\n newPointData.c = cdi.c;\n\n newPointData.xLabelVal = undefined;\n newPointData.yLabelVal = undefined;\n\n var fullLayout = {};\n fullLayout[trace.subplot] = {_subplot: subplot};\n var labels = trace._module.formatLabels(cdi, trace, fullLayout);\n newPointData.aLabel = labels.aLabel;\n newPointData.bLabel = labels.bLabel;\n newPointData.cLabel = labels.cLabel;\n\n var hoverinfo = cdi.hi || trace.hoverinfo;\n var text = [];\n function textPart(ax, val) {\n text.push(ax._hovertitle + ': ' + val);\n }\n if(!trace.hovertemplate) {\n var parts = hoverinfo.split('+');\n if(parts.indexOf('all') !== -1) parts = ['a', 'b', 'c'];\n if(parts.indexOf('a') !== -1) textPart(subplot.aaxis, newPointData.aLabel);\n if(parts.indexOf('b') !== -1) textPart(subplot.baxis, newPointData.bLabel);\n if(parts.indexOf('c') !== -1) textPart(subplot.caxis, newPointData.cLabel);\n }\n newPointData.extraText = text.join('
');\n newPointData.hovertemplate = trace.hovertemplate;\n return scatterPointData;\n};\n\n},{\"../scatter/hover\":936}],1026:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n colorbar: _dereq_('../scatter/marker_colorbar'),\n formatLabels: _dereq_('./format_labels'),\n calc: _dereq_('./calc'),\n plot: _dereq_('./plot'),\n style: _dereq_('../scatter/style').style,\n styleOnSelect: _dereq_('../scatter/style').styleOnSelect,\n hoverPoints: _dereq_('./hover'),\n selectPoints: _dereq_('../scatter/select'),\n eventData: _dereq_('./event_data'),\n\n moduleType: 'trace',\n name: 'scatterternary',\n basePlotModule: _dereq_('../../plots/ternary'),\n categories: ['ternary', 'symbols', 'showLegend', 'scatter-like'],\n meta: {\n }\n};\n\n},{\"../../plots/ternary\":634,\"../scatter/marker_colorbar\":943,\"../scatter/select\":947,\"../scatter/style\":949,\"./attributes\":1020,\"./calc\":1021,\"./defaults\":1022,\"./event_data\":1023,\"./format_labels\":1024,\"./hover\":1025,\"./plot\":1027}],1027:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterPlot = _dereq_('../scatter/plot');\n\nmodule.exports = function plot(gd, ternary, moduleCalcData) {\n var plotContainer = ternary.plotContainer;\n\n // remove all nodes inside the scatter layer\n plotContainer.select('.scatterlayer').selectAll('*').remove();\n\n // mimic cartesian plotinfo\n var plotinfo = {\n xaxis: ternary.xaxis,\n yaxis: ternary.yaxis,\n plot: plotContainer,\n layerClipId: ternary._hasClipOnAxisFalse ? ternary.clipIdRelative : null\n };\n\n var scatterLayer = ternary.layers.frontplot.select('g.scatterlayer');\n\n scatterPlot(gd, plotinfo, moduleCalcData, scatterLayer);\n};\n\n},{\"../scatter/plot\":946}],1028:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterAttrs = _dereq_('../scatter/attributes');\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar scatterGlAttrs = _dereq_('../scattergl/attributes');\nvar cartesianIdRegex = _dereq_('../../plots/cartesian/constants').idRegex;\nvar templatedArray = _dereq_('../../plot_api/plot_template').templatedArray;\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nvar scatterMarkerAttrs = scatterAttrs.marker;\nvar scatterMarkerLineAttrs = scatterMarkerAttrs.line;\n\nvar markerLineAttrs = extendFlat(colorScaleAttrs('marker.line', {editTypeOverride: 'calc'}), {\n width: extendFlat({}, scatterMarkerLineAttrs.width, {editType: 'calc'}),\n editType: 'calc'\n});\n\nvar markerAttrs = extendFlat(colorScaleAttrs('marker'), {\n symbol: scatterMarkerAttrs.symbol,\n size: extendFlat({}, scatterMarkerAttrs.size, {editType: 'markerSize'}),\n sizeref: scatterMarkerAttrs.sizeref,\n sizemin: scatterMarkerAttrs.sizemin,\n sizemode: scatterMarkerAttrs.sizemode,\n opacity: scatterMarkerAttrs.opacity,\n colorbar: scatterMarkerAttrs.colorbar,\n line: markerLineAttrs,\n editType: 'calc'\n});\n\nmarkerAttrs.color.editType = markerAttrs.cmin.editType = markerAttrs.cmax.editType = 'style';\n\nfunction makeAxesValObject(axLetter) {\n return {\n valType: 'info_array',\n freeLength: true,\n editType: 'calc',\n items: {\n valType: 'subplotid',\n regex: cartesianIdRegex[axLetter],\n editType: 'plot'\n },\n };\n}\n\nmodule.exports = {\n dimensions: templatedArray('dimension', {\n visible: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n },\n label: {\n valType: 'string',\n editType: 'calc',\n },\n values: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n\n axis: {\n type: {\n valType: 'enumerated',\n values: ['linear', 'log', 'date', 'category'],\n editType: 'calc+clearAxisTypes',\n },\n\n // TODO make 'true' the default in v3?\n matches: {\n valType: 'boolean',\n dflt: false,\n editType: 'calc',\n },\n\n editType: 'calc+clearAxisTypes'\n },\n\n // TODO should add an attribute to pin down x only vars and y only vars\n // like https://seaborn.pydata.org/generated/seaborn.pairplot.html\n // x_vars and y_vars\n\n // maybe more axis defaulting option e.g. `showgrid: false`\n\n editType: 'calc+clearAxisTypes'\n }),\n\n // mode: {}, (only 'markers' for now)\n\n text: extendFlat({}, scatterGlAttrs.text, {\n }),\n hovertext: extendFlat({}, scatterGlAttrs.hovertext, {\n }),\n\n hovertemplate: hovertemplateAttrs(),\n\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n\n marker: markerAttrs,\n\n xaxes: makeAxesValObject('x'),\n yaxes: makeAxesValObject('y'),\n\n diagonal: {\n visible: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n },\n\n // type: 'scattergl' | 'histogram' | 'box' | 'violin'\n // ...\n // more options\n\n editType: 'calc'\n },\n\n showupperhalf: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n },\n showlowerhalf: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n },\n\n selected: {\n marker: scatterGlAttrs.selected.marker,\n editType: 'calc'\n },\n unselected: {\n marker: scatterGlAttrs.unselected.marker,\n editType: 'calc'\n },\n\n opacity: scatterGlAttrs.opacity\n};\n\n},{\"../../components/colorscale/attributes\":373,\"../../lib/extend\":493,\"../../plot_api/plot_template\":543,\"../../plots/cartesian/axis_format_attributes\":557,\"../../plots/cartesian/constants\":561,\"../../plots/template_attributes\":633,\"../scatter/attributes\":925,\"../scattergl/attributes\":977}],1029:[function(_dereq_,module,exports){\n'use strict';\n\nvar createLine = _dereq_('regl-line2d');\n\nvar Registry = _dereq_('../../registry');\nvar prepareRegl = _dereq_('../../lib/prepare_regl');\nvar getModuleCalcData = _dereq_('../../plots/get_data').getModuleCalcData;\nvar Cartesian = _dereq_('../../plots/cartesian');\nvar getFromId = _dereq_('../../plots/cartesian/axis_ids').getFromId;\nvar shouldShowZeroLine = _dereq_('../../plots/cartesian/axes').shouldShowZeroLine;\n\nvar SPLOM = 'splom';\n\nfunction plot(gd) {\n var fullLayout = gd._fullLayout;\n var _module = Registry.getModule(SPLOM);\n var splomCalcData = getModuleCalcData(gd.calcdata, _module)[0];\n\n var success = prepareRegl(gd, ['ANGLE_instanced_arrays', 'OES_element_index_uint']);\n if(!success) return;\n\n if(fullLayout._hasOnlyLargeSploms) {\n updateGrid(gd);\n }\n\n _module.plot(gd, {}, splomCalcData);\n}\n\nfunction drag(gd) {\n var cd = gd.calcdata;\n var fullLayout = gd._fullLayout;\n\n if(fullLayout._hasOnlyLargeSploms) {\n updateGrid(gd);\n }\n\n for(var i = 0; i < cd.length; i++) {\n var cd0 = cd[i][0];\n var trace = cd0.trace;\n var scene = fullLayout._splomScenes[trace.uid];\n\n if(trace.type === 'splom' && scene && scene.matrix) {\n dragOne(gd, trace, scene);\n }\n }\n}\n\nfunction dragOne(gd, trace, scene) {\n var visibleLength = scene.matrixOptions.data.length;\n var visibleDims = trace._visibleDims;\n var ranges = scene.viewOpts.ranges = new Array(visibleLength);\n\n for(var k = 0; k < visibleDims.length; k++) {\n var i = visibleDims[k];\n var rng = ranges[k] = new Array(4);\n\n var xa = getFromId(gd, trace._diag[i][0]);\n if(xa) {\n rng[0] = xa.r2l(xa.range[0]);\n rng[2] = xa.r2l(xa.range[1]);\n }\n\n var ya = getFromId(gd, trace._diag[i][1]);\n if(ya) {\n rng[1] = ya.r2l(ya.range[0]);\n rng[3] = ya.r2l(ya.range[1]);\n }\n }\n\n if(scene.selectBatch.length || scene.unselectBatch.length) {\n scene.matrix.update({ranges: ranges}, {ranges: ranges});\n } else {\n scene.matrix.update({ranges: ranges});\n }\n}\n\nfunction updateGrid(gd) {\n var fullLayout = gd._fullLayout;\n var regl = fullLayout._glcanvas.data()[0].regl;\n var splomGrid = fullLayout._splomGrid;\n\n if(!splomGrid) {\n splomGrid = fullLayout._splomGrid = createLine(regl);\n }\n splomGrid.update(makeGridData(gd));\n}\n\nfunction makeGridData(gd) {\n var plotGlPixelRatio = gd._context.plotGlPixelRatio;\n var fullLayout = gd._fullLayout;\n var gs = fullLayout._size;\n var fullView = [\n 0, 0,\n fullLayout.width * plotGlPixelRatio,\n fullLayout.height * plotGlPixelRatio\n ];\n var lookup = {};\n var k;\n\n function push(prefix, ax, x0, x1, y0, y1) {\n x0 *= plotGlPixelRatio;\n x1 *= plotGlPixelRatio;\n y0 *= plotGlPixelRatio;\n y1 *= plotGlPixelRatio;\n\n var lcolor = ax[prefix + 'color'];\n var lwidth = ax[prefix + 'width'];\n var key = String(lcolor + lwidth);\n\n if(key in lookup) {\n lookup[key].data.push(NaN, NaN, x0, x1, y0, y1);\n } else {\n lookup[key] = {\n data: [x0, x1, y0, y1],\n join: 'rect',\n thickness: lwidth * plotGlPixelRatio,\n color: lcolor,\n viewport: fullView,\n range: fullView,\n overlay: false\n };\n }\n }\n\n for(k in fullLayout._splomSubplots) {\n var sp = fullLayout._plots[k];\n var xa = sp.xaxis;\n var ya = sp.yaxis;\n var xVals = xa._gridVals;\n var yVals = ya._gridVals;\n var xOffset = xa._offset;\n var xLength = xa._length;\n var yLength = ya._length;\n\n // ya.l2p assumes top-to-bottom coordinate system (a la SVG),\n // we need to compute bottom-to-top offsets and slopes:\n var yOffset = gs.b + ya.domain[0] * gs.h;\n var ym = -ya._m;\n var yb = -ym * ya.r2l(ya.range[0], ya.calendar);\n var x, y;\n\n if(xa.showgrid) {\n for(k = 0; k < xVals.length; k++) {\n x = xOffset + xa.l2p(xVals[k].x);\n push('grid', xa, x, yOffset, x, yOffset + yLength);\n }\n }\n if(ya.showgrid) {\n for(k = 0; k < yVals.length; k++) {\n y = yOffset + yb + ym * yVals[k].x;\n push('grid', ya, xOffset, y, xOffset + xLength, y);\n }\n }\n if(shouldShowZeroLine(gd, xa, ya)) {\n x = xOffset + xa.l2p(0);\n push('zeroline', xa, x, yOffset, x, yOffset + yLength);\n }\n if(shouldShowZeroLine(gd, ya, xa)) {\n y = yOffset + yb + 0;\n push('zeroline', ya, xOffset, y, xOffset + xLength, y);\n }\n }\n\n var gridBatches = [];\n for(k in lookup) {\n gridBatches.push(lookup[k]);\n }\n\n return gridBatches;\n}\n\nfunction clean(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n var lookup = {};\n var i;\n\n if(oldFullLayout._splomScenes) {\n for(i = 0; i < newFullData.length; i++) {\n var newTrace = newFullData[i];\n if(newTrace.type === 'splom') {\n lookup[newTrace.uid] = 1;\n }\n }\n for(i = 0; i < oldFullData.length; i++) {\n var oldTrace = oldFullData[i];\n if(!lookup[oldTrace.uid]) {\n var scene = oldFullLayout._splomScenes[oldTrace.uid];\n if(scene && scene.destroy) scene.destroy();\n // must first set scene to null in order to get garbage collected\n oldFullLayout._splomScenes[oldTrace.uid] = null;\n delete oldFullLayout._splomScenes[oldTrace.uid];\n }\n }\n }\n\n if(Object.keys(oldFullLayout._splomScenes || {}).length === 0) {\n delete oldFullLayout._splomScenes;\n }\n\n if(oldFullLayout._splomGrid &&\n (!newFullLayout._hasOnlyLargeSploms && oldFullLayout._hasOnlyLargeSploms)) {\n // must first set scene to null in order to get garbage collected\n oldFullLayout._splomGrid.destroy();\n oldFullLayout._splomGrid = null;\n delete oldFullLayout._splomGrid;\n }\n\n Cartesian.clean(newFullData, newFullLayout, oldFullData, oldFullLayout);\n}\n\nmodule.exports = {\n name: SPLOM,\n attr: Cartesian.attr,\n attrRegex: Cartesian.attrRegex,\n layoutAttributes: Cartesian.layoutAttributes,\n supplyLayoutDefaults: Cartesian.supplyLayoutDefaults,\n drawFramework: Cartesian.drawFramework,\n plot: plot,\n drag: drag,\n updateGrid: updateGrid,\n clean: clean,\n updateFx: Cartesian.updateFx,\n toSVG: Cartesian.toSVG\n};\n\n},{\"../../lib/prepare_regl\":516,\"../../plots/cartesian\":568,\"../../plots/cartesian/axes\":554,\"../../plots/cartesian/axis_ids\":558,\"../../plots/get_data\":593,\"../../registry\":638,\"regl-line2d\":280}],1030:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar AxisIDs = _dereq_('../../plots/cartesian/axis_ids');\n\nvar calcMarkerSize = _dereq_('../scatter/calc').calcMarkerSize;\nvar calcAxisExpansion = _dereq_('../scatter/calc').calcAxisExpansion;\nvar calcColorscale = _dereq_('../scatter/colorscale_calc');\nvar convertMarkerSelection = _dereq_('../scattergl/convert').markerSelection;\nvar convertMarkerStyle = _dereq_('../scattergl/convert').markerStyle;\nvar sceneUpdate = _dereq_('./scene_update');\n\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\nvar TOO_MANY_POINTS = _dereq_('../scattergl/constants').TOO_MANY_POINTS;\n\nmodule.exports = function calc(gd, trace) {\n var dimensions = trace.dimensions;\n var commonLength = trace._length;\n var opts = {};\n // 'c' for calculated, 'l' for linear,\n // only differ here for log axes, pass ldata to createMatrix as 'data'\n var cdata = opts.cdata = [];\n var ldata = opts.data = [];\n // keep track of visible dimensions\n var visibleDims = trace._visibleDims = [];\n var i, k, dim, xa, ya;\n\n function makeCalcdata(ax, dim) {\n // call makeCalcdata with fake input\n var ccol = ax.makeCalcdata({\n v: dim.values,\n vcalendar: trace.calendar\n }, 'v');\n\n for(var j = 0; j < ccol.length; j++) {\n ccol[j] = ccol[j] === BADNUM ? NaN : ccol[j];\n }\n cdata.push(ccol);\n ldata.push(ax.type === 'log' ? Lib.simpleMap(ccol, ax.c2l) : ccol);\n }\n\n for(i = 0; i < dimensions.length; i++) {\n dim = dimensions[i];\n\n if(dim.visible) {\n xa = AxisIDs.getFromId(gd, trace._diag[i][0]);\n ya = AxisIDs.getFromId(gd, trace._diag[i][1]);\n\n // if corresponding x & y axes don't have matching types, skip dim\n if(xa && ya && xa.type !== ya.type) {\n Lib.log('Skipping splom dimension ' + i + ' with conflicting axis types');\n continue;\n }\n\n if(xa) {\n makeCalcdata(xa, dim);\n if(ya && ya.type === 'category') {\n ya._categories = xa._categories.slice();\n }\n } else {\n // should not make it here, if both xa and ya undefined\n makeCalcdata(ya, dim);\n }\n\n visibleDims.push(i);\n }\n }\n\n calcColorscale(gd, trace);\n Lib.extendFlat(opts, convertMarkerStyle(trace));\n\n var visibleLength = cdata.length;\n var hasTooManyPoints = (visibleLength * commonLength) > TOO_MANY_POINTS;\n\n // Reuse SVG scatter axis expansion routine.\n // For graphs with very large number of points and array marker.size,\n // use average marker size instead to speed things up.\n var ppad;\n if(hasTooManyPoints) {\n ppad = opts.sizeAvg || Math.max(opts.size, 3);\n } else {\n ppad = calcMarkerSize(trace, commonLength);\n }\n\n for(k = 0; k < visibleDims.length; k++) {\n i = visibleDims[k];\n dim = dimensions[i];\n xa = AxisIDs.getFromId(gd, trace._diag[i][0]) || {};\n ya = AxisIDs.getFromId(gd, trace._diag[i][1]) || {};\n calcAxisExpansion(gd, trace, xa, ya, cdata[k], cdata[k], ppad);\n }\n\n var scene = sceneUpdate(gd, trace);\n if(!scene.matrix) scene.matrix = true;\n scene.matrixOptions = opts;\n\n scene.selectedOptions = convertMarkerSelection(trace, trace.selected);\n scene.unselectedOptions = convertMarkerSelection(trace, trace.unselected);\n\n return [{x: false, y: false, t: {}, trace: trace}];\n};\n\n},{\"../../constants/numerical\":479,\"../../lib\":503,\"../../plots/cartesian/axis_ids\":558,\"../scatter/calc\":926,\"../scatter/colorscale_calc\":928,\"../scattergl/constants\":979,\"../scattergl/convert\":980,\"./scene_update\":1037}],1031:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar handleArrayContainerDefaults = _dereq_('../../plots/array_container_defaults');\n\nvar attributes = _dereq_('./attributes');\nvar subTypes = _dereq_('../scatter/subtypes');\nvar handleMarkerDefaults = _dereq_('../scatter/marker_defaults');\nvar mergeLength = _dereq_('../parcoords/merge_length');\nvar isOpenSymbol = _dereq_('../scattergl/helpers').isOpenSymbol;\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var dimensions = handleArrayContainerDefaults(traceIn, traceOut, {\n name: 'dimensions',\n handleItemDefaults: dimensionDefaults\n });\n\n var showDiag = coerce('diagonal.visible');\n var showUpper = coerce('showupperhalf');\n var showLower = coerce('showlowerhalf');\n\n var dimLength = mergeLength(traceOut, dimensions, 'values');\n\n if(!dimLength || (!showDiag && !showUpper && !showLower)) {\n traceOut.visible = false;\n return;\n }\n\n coerce('text');\n coerce('hovertext');\n coerce('hovertemplate');\n coerce('xhoverformat');\n coerce('yhoverformat');\n\n handleMarkerDefaults(traceIn, traceOut, defaultColor, layout, coerce);\n\n var isOpen = isOpenSymbol(traceOut.marker.symbol);\n var isBubble = subTypes.isBubble(traceOut);\n coerce('marker.line.width', isOpen || isBubble ? 1 : 0);\n\n handleAxisDefaults(traceIn, traceOut, layout, coerce);\n\n Lib.coerceSelectionMarkerOpacity(traceOut, coerce);\n};\n\nfunction dimensionDefaults(dimIn, dimOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(dimIn, dimOut, attributes.dimensions, attr, dflt);\n }\n\n coerce('label');\n var values = coerce('values');\n\n if(!(values && values.length)) dimOut.visible = false;\n else coerce('visible');\n\n coerce('axis.type');\n coerce('axis.matches');\n}\n\nfunction handleAxisDefaults(traceIn, traceOut, layout, coerce) {\n var dimensions = traceOut.dimensions;\n var dimLength = dimensions.length;\n var showUpper = traceOut.showupperhalf;\n var showLower = traceOut.showlowerhalf;\n var showDiag = traceOut.diagonal.visible;\n var i, j;\n\n var xAxesDflt = new Array(dimLength);\n var yAxesDflt = new Array(dimLength);\n\n for(i = 0; i < dimLength; i++) {\n var suffix = i ? i + 1 : '';\n xAxesDflt[i] = 'x' + suffix;\n yAxesDflt[i] = 'y' + suffix;\n }\n\n var xaxes = coerce('xaxes', xAxesDflt);\n var yaxes = coerce('yaxes', yAxesDflt);\n\n // build list of [x,y] axis corresponding to each dimensions[i],\n // very useful for passing options to regl-splom\n var diag = traceOut._diag = new Array(dimLength);\n\n // lookup for 'drawn' x|y axes, to avoid costly indexOf downstream\n traceOut._xaxes = {};\n traceOut._yaxes = {};\n\n // list of 'drawn' x|y axes, use to generate list of subplots\n var xList = [];\n var yList = [];\n\n function fillAxisStashes(axId, counterAxId, dim, list) {\n if(!axId) return;\n\n var axLetter = axId.charAt(0);\n var stash = layout._splomAxes[axLetter];\n\n traceOut['_' + axLetter + 'axes'][axId] = 1;\n list.push(axId);\n\n if(!(axId in stash)) {\n var s = stash[axId] = {};\n if(dim) {\n s.label = dim.label || '';\n if(dim.visible && dim.axis) {\n if(dim.axis.type) s.type = dim.axis.type;\n if(dim.axis.matches) s.matches = counterAxId;\n }\n }\n }\n }\n\n // cases where showDiag and showLower or showUpper are false\n // no special treatment as the 'drawn' x-axes and y-axes no longer match\n // the dimensions items and xaxes|yaxes 1-to-1\n var mustShiftX = !showDiag && !showLower;\n var mustShiftY = !showDiag && !showUpper;\n\n traceOut._axesDim = {};\n for(i = 0; i < dimLength; i++) {\n var dim = dimensions[i];\n var i0 = i === 0;\n var iN = i === dimLength - 1;\n\n var xaId = (i0 && mustShiftX) || (iN && mustShiftY) ?\n undefined :\n xaxes[i];\n\n var yaId = (i0 && mustShiftY) || (iN && mustShiftX) ?\n undefined :\n yaxes[i];\n\n fillAxisStashes(xaId, yaId, dim, xList);\n fillAxisStashes(yaId, xaId, dim, yList);\n diag[i] = [xaId, yaId];\n traceOut._axesDim[xaId] = i;\n traceOut._axesDim[yaId] = i;\n }\n\n // fill in splom subplot keys\n for(i = 0; i < xList.length; i++) {\n for(j = 0; j < yList.length; j++) {\n var id = xList[i] + yList[j];\n\n if(i > j && showUpper) {\n layout._splomSubplots[id] = 1;\n } else if(i < j && showLower) {\n layout._splomSubplots[id] = 1;\n } else if(i === j && (showDiag || !showLower || !showUpper)) {\n // need to include diagonal subplots when\n // hiding one half and the diagonal\n layout._splomSubplots[id] = 1;\n }\n }\n }\n\n // when lower half is omitted, or when just the diagonal is gone,\n // override grid default to make sure axes remain on\n // the left/bottom of the plot area\n if(!showLower || (!showDiag && showUpper && showLower)) {\n layout._splomGridDflt.xside = 'bottom';\n layout._splomGridDflt.yside = 'left';\n }\n}\n\n},{\"../../lib\":503,\"../../plots/array_container_defaults\":549,\"../parcoords/merge_length\":896,\"../scatter/marker_defaults\":944,\"../scatter/subtypes\":950,\"../scattergl/helpers\":984,\"./attributes\":1028}],1032:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar calcColorscale = _dereq_('../scatter/colorscale_calc');\nvar convertMarkerStyle = _dereq_('../scattergl/convert').markerStyle;\n\nmodule.exports = function editStyle(gd, cd0) {\n var trace = cd0.trace;\n var scene = gd._fullLayout._splomScenes[trace.uid];\n\n if(scene) {\n calcColorscale(gd, trace);\n\n Lib.extendFlat(scene.matrixOptions, convertMarkerStyle(trace));\n // TODO [un]selected styles?\n\n var opts = Lib.extendFlat({}, scene.matrixOptions, scene.viewOpts);\n\n // TODO this is too long for arrayOk attributes!\n scene.matrix.update(opts, null);\n }\n};\n\n},{\"../../lib\":503,\"../scatter/colorscale_calc\":928,\"../scattergl/convert\":980}],1033:[function(_dereq_,module,exports){\n'use strict';\n\nexports.getDimIndex = function getDimIndex(trace, ax) {\n var axId = ax._id;\n var axLetter = axId.charAt(0);\n var ind = {x: 0, y: 1}[axLetter];\n var visibleDims = trace._visibleDims;\n\n for(var k = 0; k < visibleDims.length; k++) {\n var i = visibleDims[k];\n if(trace._diag[i][ind] === axId) return k;\n }\n return false;\n};\n\n},{}],1034:[function(_dereq_,module,exports){\n'use strict';\n\nvar helpers = _dereq_('./helpers');\nvar calcHover = _dereq_('../scattergl/hover').calcHover;\n\nfunction hoverPoints(pointData, xval, yval) {\n var cd = pointData.cd;\n var trace = cd[0].trace;\n var scene = pointData.scene;\n var cdata = scene.matrixOptions.cdata;\n var xa = pointData.xa;\n var ya = pointData.ya;\n var xpx = xa.c2p(xval);\n var ypx = ya.c2p(yval);\n var maxDistance = pointData.distance;\n\n var xi = helpers.getDimIndex(trace, xa);\n var yi = helpers.getDimIndex(trace, ya);\n if(xi === false || yi === false) return [pointData];\n\n var x = cdata[xi];\n var y = cdata[yi];\n\n var id, dxy;\n var minDist = maxDistance;\n\n for(var i = 0; i < x.length; i++) {\n var ptx = x[i];\n var pty = y[i];\n var dx = xa.c2p(ptx) - xpx;\n var dy = ya.c2p(pty) - ypx;\n var dist = Math.sqrt(dx * dx + dy * dy);\n\n if(dist < minDist) {\n minDist = dxy = dist;\n id = i;\n }\n }\n\n pointData.index = id;\n pointData.distance = minDist;\n pointData.dxy = dxy;\n\n if(id === undefined) return [pointData];\n\n return [calcHover(pointData, x, y, trace)];\n}\n\nmodule.exports = {\n hoverPoints: hoverPoints\n};\n\n},{\"../scattergl/hover\":985,\"./helpers\":1033}],1035:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar Grid = _dereq_('../../components/grid');\n\nmodule.exports = {\n moduleType: 'trace',\n name: 'splom',\n\n basePlotModule: _dereq_('./base_plot'),\n categories: ['gl', 'regl', 'cartesian', 'symbols', 'showLegend', 'scatter-like'],\n\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n colorbar: _dereq_('../scatter/marker_colorbar'),\n\n calc: _dereq_('./calc'),\n plot: _dereq_('./plot'),\n hoverPoints: _dereq_('./hover').hoverPoints,\n selectPoints: _dereq_('./select'),\n editStyle: _dereq_('./edit_style'),\n\n meta: {\n }\n};\n\n// splom traces use the 'grid' component to generate their axes,\n// register it here\nRegistry.register(Grid);\n\n},{\"../../components/grid\":410,\"../../registry\":638,\"../scatter/marker_colorbar\":943,\"./attributes\":1028,\"./base_plot\":1029,\"./calc\":1030,\"./defaults\":1031,\"./edit_style\":1032,\"./hover\":1034,\"./plot\":1036,\"./select\":1038}],1036:[function(_dereq_,module,exports){\n'use strict';\n\nvar createMatrix = _dereq_('regl-splom');\n\nvar Lib = _dereq_('../../lib');\nvar AxisIDs = _dereq_('../../plots/cartesian/axis_ids');\nvar selectMode = _dereq_('../../components/dragelement/helpers').selectMode;\n\nmodule.exports = function plot(gd, _, splomCalcData) {\n if(!splomCalcData.length) return;\n\n for(var i = 0; i < splomCalcData.length; i++) {\n plotOne(gd, splomCalcData[i][0]);\n }\n};\n\nfunction plotOne(gd, cd0) {\n var fullLayout = gd._fullLayout;\n var gs = fullLayout._size;\n var trace = cd0.trace;\n var stash = cd0.t;\n var scene = fullLayout._splomScenes[trace.uid];\n var matrixOpts = scene.matrixOptions;\n var cdata = matrixOpts.cdata;\n var regl = fullLayout._glcanvas.data()[0].regl;\n var dragmode = fullLayout.dragmode;\n var xa, ya;\n var i, j, k;\n\n if(cdata.length === 0) return;\n\n // augment options with proper upper/lower halves\n // regl-splom's default grid starts from bottom-left\n matrixOpts.lower = trace.showupperhalf;\n matrixOpts.upper = trace.showlowerhalf;\n matrixOpts.diagonal = trace.diagonal.visible;\n\n var visibleDims = trace._visibleDims;\n var visibleLength = cdata.length;\n var viewOpts = scene.viewOpts = {};\n viewOpts.ranges = new Array(visibleLength);\n viewOpts.domains = new Array(visibleLength);\n\n for(k = 0; k < visibleDims.length; k++) {\n i = visibleDims[k];\n\n var rng = viewOpts.ranges[k] = new Array(4);\n var dmn = viewOpts.domains[k] = new Array(4);\n\n xa = AxisIDs.getFromId(gd, trace._diag[i][0]);\n if(xa) {\n rng[0] = xa._rl[0];\n rng[2] = xa._rl[1];\n dmn[0] = xa.domain[0];\n dmn[2] = xa.domain[1];\n }\n\n ya = AxisIDs.getFromId(gd, trace._diag[i][1]);\n if(ya) {\n rng[1] = ya._rl[0];\n rng[3] = ya._rl[1];\n dmn[1] = ya.domain[0];\n dmn[3] = ya.domain[1];\n }\n }\n\n var plotGlPixelRatio = gd._context.plotGlPixelRatio;\n var l = gs.l * plotGlPixelRatio;\n var b = gs.b * plotGlPixelRatio;\n var w = gs.w * plotGlPixelRatio;\n var h = gs.h * plotGlPixelRatio;\n\n viewOpts.viewport = [l, b, w + l, h + b];\n\n if(scene.matrix === true) {\n scene.matrix = createMatrix(regl);\n }\n\n var clickSelectEnabled = fullLayout.clickmode.indexOf('select') > -1;\n var isSelectMode = selectMode(dragmode) ||\n !!trace.selectedpoints || clickSelectEnabled;\n var needsBaseUpdate = true;\n\n if(isSelectMode) {\n var commonLength = trace._length;\n\n // regenerate scene batch, if traces number changed during selection\n if(trace.selectedpoints) {\n scene.selectBatch = trace.selectedpoints;\n\n var selPts = trace.selectedpoints;\n var selDict = {};\n for(i = 0; i < selPts.length; i++) {\n selDict[selPts[i]] = true;\n }\n var unselPts = [];\n for(i = 0; i < commonLength; i++) {\n if(!selDict[i]) unselPts.push(i);\n }\n scene.unselectBatch = unselPts;\n }\n\n // precalculate px coords since we are not going to pan during select\n var xpx = stash.xpx = new Array(visibleLength);\n var ypx = stash.ypx = new Array(visibleLength);\n\n for(k = 0; k < visibleDims.length; k++) {\n i = visibleDims[k];\n\n xa = AxisIDs.getFromId(gd, trace._diag[i][0]);\n if(xa) {\n xpx[k] = new Array(commonLength);\n for(j = 0; j < commonLength; j++) {\n xpx[k][j] = xa.c2p(cdata[k][j]);\n }\n }\n\n ya = AxisIDs.getFromId(gd, trace._diag[i][1]);\n if(ya) {\n ypx[k] = new Array(commonLength);\n for(j = 0; j < commonLength; j++) {\n ypx[k][j] = ya.c2p(cdata[k][j]);\n }\n }\n }\n\n if(scene.selectBatch.length || scene.unselectBatch.length) {\n var unselOpts = Lib.extendFlat({}, matrixOpts, scene.unselectedOptions, viewOpts);\n var selOpts = Lib.extendFlat({}, matrixOpts, scene.selectedOptions, viewOpts);\n scene.matrix.update(unselOpts, selOpts);\n needsBaseUpdate = false;\n }\n } else {\n stash.xpx = stash.ypx = null;\n }\n\n if(needsBaseUpdate) {\n var opts = Lib.extendFlat({}, matrixOpts, viewOpts);\n scene.matrix.update(opts, null);\n }\n}\n\n},{\"../../components/dragelement/helpers\":384,\"../../lib\":503,\"../../plots/cartesian/axis_ids\":558,\"regl-splom\":282}],1037:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nmodule.exports = function sceneUpdate(gd, trace) {\n var fullLayout = gd._fullLayout;\n var uid = trace.uid;\n\n // must place ref to 'scene' in fullLayout, so that:\n // - it can be relinked properly on updates\n // - it can be destroyed properly when needed\n var splomScenes = fullLayout._splomScenes;\n if(!splomScenes) splomScenes = fullLayout._splomScenes = {};\n\n var reset = {\n dirty: true,\n selectBatch: [],\n unselectBatch: []\n };\n\n var first = {\n matrix: false,\n selectBatch: [],\n unselectBatch: []\n };\n\n var scene = splomScenes[trace.uid];\n\n if(!scene) {\n scene = splomScenes[uid] = Lib.extendFlat({}, reset, first);\n\n scene.draw = function draw() {\n if(scene.matrix && scene.matrix.draw) {\n if(scene.selectBatch.length || scene.unselectBatch.length) {\n scene.matrix.draw(scene.unselectBatch, scene.selectBatch);\n } else {\n scene.matrix.draw();\n }\n }\n\n scene.dirty = false;\n };\n\n // remove scene resources\n scene.destroy = function destroy() {\n if(scene.matrix && scene.matrix.destroy) {\n scene.matrix.destroy();\n }\n scene.matrixOptions = null;\n scene.selectBatch = null;\n scene.unselectBatch = null;\n scene = null;\n };\n }\n\n // In case if we have scene from the last calc - reset data\n if(!scene.dirty) {\n Lib.extendFlat(scene, reset);\n }\n\n return scene;\n};\n\n},{\"../../lib\":503}],1038:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar subTypes = _dereq_('../scatter/subtypes');\nvar helpers = _dereq_('./helpers');\n\nmodule.exports = function select(searchInfo, selectionTester) {\n var cd = searchInfo.cd;\n var trace = cd[0].trace;\n var stash = cd[0].t;\n var scene = searchInfo.scene;\n var cdata = scene.matrixOptions.cdata;\n var xa = searchInfo.xaxis;\n var ya = searchInfo.yaxis;\n var selection = [];\n\n if(!scene) return selection;\n\n var hasOnlyLines = (!subTypes.hasMarkers(trace) && !subTypes.hasText(trace));\n if(trace.visible !== true || hasOnlyLines) return selection;\n\n var xi = helpers.getDimIndex(trace, xa);\n var yi = helpers.getDimIndex(trace, ya);\n if(xi === false || yi === false) return selection;\n\n var xpx = stash.xpx[xi];\n var ypx = stash.ypx[yi];\n var x = cdata[xi];\n var y = cdata[yi];\n var els = [];\n var unels = [];\n\n // degenerate polygon does not enable selection\n // filter out points by visible scatter ones\n if(selectionTester !== false && !selectionTester.degenerate) {\n for(var i = 0; i < x.length; i++) {\n if(selectionTester.contains([xpx[i], ypx[i]], null, i, searchInfo)) {\n els.push(i);\n selection.push({\n pointNumber: i,\n x: x[i],\n y: y[i]\n });\n } else {\n unels.push(i);\n }\n }\n }\n\n var matrixOpts = scene.matrixOptions;\n\n if(!els.length && !unels.length) {\n scene.matrix.update(matrixOpts, null);\n } else if(!scene.selectBatch.length && !scene.unselectBatch.length) {\n scene.matrix.update(\n scene.unselectedOptions,\n Lib.extendFlat({}, matrixOpts, scene.selectedOptions, scene.viewOpts)\n );\n }\n\n scene.selectBatch = els;\n scene.unselectBatch = unels;\n\n return selection;\n};\n\n},{\"../../lib\":503,\"../scatter/subtypes\":950,\"./helpers\":1033}],1039:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar mesh3dAttrs = _dereq_('../mesh3d/attributes');\nvar baseAttrs = _dereq_('../../plots/attributes');\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nvar attrs = {\n x: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n y: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n z: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n\n u: {\n valType: 'data_array',\n editType: 'calc',\n },\n v: {\n valType: 'data_array',\n editType: 'calc',\n },\n w: {\n valType: 'data_array',\n editType: 'calc',\n },\n\n starts: {\n x: {\n valType: 'data_array',\n editType: 'calc',\n },\n y: {\n valType: 'data_array',\n editType: 'calc',\n },\n z: {\n valType: 'data_array',\n editType: 'calc',\n },\n editType: 'calc'\n },\n\n maxdisplayed: {\n valType: 'integer',\n min: 0,\n dflt: 1000,\n editType: 'calc',\n },\n\n // TODO\n //\n // Should add 'absolute' (like cone traces have), but currently gl-streamtube3d's\n // `absoluteTubeSize` doesn't behave well enough for our needs.\n //\n // 'fixed' would be a nice addition to plot stream 'lines', see\n // https://github.com/plotly/plotly.js/commit/812be20750e21e0a1831975001c248d365850f73#r29129877\n //\n // sizemode: {\n // valType: 'enumerated',\n // values: ['scaled', 'absolute', 'fixed'],\n // dflt: 'scaled',\n // editType: 'calc',\n //\n // },\n\n sizeref: {\n valType: 'number',\n editType: 'calc',\n min: 0,\n dflt: 1,\n },\n\n text: {\n valType: 'string',\n dflt: '',\n editType: 'calc',\n },\n hovertext: {\n valType: 'string',\n dflt: '',\n editType: 'calc',\n },\n hovertemplate: hovertemplateAttrs({editType: 'calc'}, {\n keys: [\n 'tubex', 'tubey', 'tubez',\n 'tubeu', 'tubev', 'tubew',\n 'norm', 'divergence'\n ]\n }),\n uhoverformat: axisHoverFormat('u', 1),\n vhoverformat: axisHoverFormat('v', 1),\n whoverformat: axisHoverFormat('w', 1),\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n zhoverformat: axisHoverFormat('z'),\n\n showlegend: extendFlat({}, baseAttrs.showlegend, {dflt: false})\n};\n\nextendFlat(attrs, colorScaleAttrs('', {\n colorAttr: 'u/v/w norm',\n showScaleDflt: true,\n editTypeOverride: 'calc'\n}));\n\nvar fromMesh3d = ['opacity', 'lightposition', 'lighting'];\nfromMesh3d.forEach(function(k) {\n attrs[k] = mesh3dAttrs[k];\n});\n\nattrs.hoverinfo = extendFlat({}, baseAttrs.hoverinfo, {\n editType: 'calc',\n flags: ['x', 'y', 'z', 'u', 'v', 'w', 'norm', 'divergence', 'text', 'name'],\n dflt: 'x+y+z+norm+text+name'\n});\n\nattrs.transforms = undefined;\n\nmodule.exports = attrs;\n\n},{\"../../components/colorscale/attributes\":373,\"../../lib/extend\":493,\"../../plots/attributes\":550,\"../../plots/cartesian/axis_format_attributes\":557,\"../../plots/template_attributes\":633,\"../mesh3d/attributes\":866}],1040:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar colorscaleCalc = _dereq_('../../components/colorscale/calc');\n\nfunction calc(gd, trace) {\n trace._len = Math.min(\n trace.u.length,\n trace.v.length,\n trace.w.length,\n trace.x.length,\n trace.y.length,\n trace.z.length\n );\n\n trace._u = filter(trace.u, trace._len);\n trace._v = filter(trace.v, trace._len);\n trace._w = filter(trace.w, trace._len);\n trace._x = filter(trace.x, trace._len);\n trace._y = filter(trace.y, trace._len);\n trace._z = filter(trace.z, trace._len);\n\n var grid = processGrid(trace);\n trace._gridFill = grid.fill;\n trace._Xs = grid.Xs;\n trace._Ys = grid.Ys;\n trace._Zs = grid.Zs;\n trace._len = grid.len;\n\n var slen = 0;\n var startx, starty, startz;\n if(trace.starts) {\n startx = filter(trace.starts.x || []);\n starty = filter(trace.starts.y || []);\n startz = filter(trace.starts.z || []);\n slen = Math.min(startx.length, starty.length, startz.length);\n }\n trace._startsX = startx || [];\n trace._startsY = starty || [];\n trace._startsZ = startz || [];\n\n var normMax = 0;\n var normMin = Infinity;\n var i;\n for(i = 0; i < trace._len; i++) {\n var u = trace._u[i];\n var v = trace._v[i];\n var w = trace._w[i];\n var norm = Math.sqrt(u * u + v * v + w * w);\n\n normMax = Math.max(normMax, norm);\n normMin = Math.min(normMin, norm);\n }\n\n colorscaleCalc(gd, trace, {\n vals: [normMin, normMax],\n containerStr: '',\n cLetter: 'c'\n });\n\n for(i = 0; i < slen; i++) {\n var sx = startx[i];\n grid.xMax = Math.max(grid.xMax, sx);\n grid.xMin = Math.min(grid.xMin, sx);\n\n var sy = starty[i];\n grid.yMax = Math.max(grid.yMax, sy);\n grid.yMin = Math.min(grid.yMin, sy);\n\n var sz = startz[i];\n grid.zMax = Math.max(grid.zMax, sz);\n grid.zMin = Math.min(grid.zMin, sz);\n }\n\n trace._slen = slen;\n trace._normMax = normMax;\n trace._xbnds = [grid.xMin, grid.xMax];\n trace._ybnds = [grid.yMin, grid.yMax];\n trace._zbnds = [grid.zMin, grid.zMax];\n}\n\nfunction processGrid(trace) {\n var x = trace._x;\n var y = trace._y;\n var z = trace._z;\n var len = trace._len;\n\n var i, j, k;\n\n var xMax = -Infinity;\n var xMin = Infinity;\n var yMax = -Infinity;\n var yMin = Infinity;\n var zMax = -Infinity;\n var zMin = Infinity;\n\n var gridFill = '';\n var filledX;\n var filledY;\n var filledZ;\n var firstX, lastX;\n var firstY, lastY;\n var firstZ, lastZ;\n if(len) {\n firstX = x[0];\n firstY = y[0];\n firstZ = z[0];\n }\n if(len > 1) {\n lastX = x[len - 1];\n lastY = y[len - 1];\n lastZ = z[len - 1];\n }\n\n for(i = 0; i < len; i++) {\n xMax = Math.max(xMax, x[i]);\n xMin = Math.min(xMin, x[i]);\n\n yMax = Math.max(yMax, y[i]);\n yMin = Math.min(yMin, y[i]);\n\n zMax = Math.max(zMax, z[i]);\n zMin = Math.min(zMin, z[i]);\n\n if(!filledX && x[i] !== firstX) {\n filledX = true;\n gridFill += 'x';\n }\n if(!filledY && y[i] !== firstY) {\n filledY = true;\n gridFill += 'y';\n }\n if(!filledZ && z[i] !== firstZ) {\n filledZ = true;\n gridFill += 'z';\n }\n }\n // fill if not filled - case of having dimension(s) with one item\n if(!filledX) gridFill += 'x';\n if(!filledY) gridFill += 'y';\n if(!filledZ) gridFill += 'z';\n\n var Xs = distinctVals(trace._x);\n var Ys = distinctVals(trace._y);\n var Zs = distinctVals(trace._z);\n\n gridFill = gridFill.replace('x', (firstX > lastX ? '-' : '+') + 'x');\n gridFill = gridFill.replace('y', (firstY > lastY ? '-' : '+') + 'y');\n gridFill = gridFill.replace('z', (firstZ > lastZ ? '-' : '+') + 'z');\n\n var empty = function() {\n len = 0;\n Xs = [];\n Ys = [];\n Zs = [];\n };\n\n // Over-specified mesh case, this would error in tube2mesh\n if(!len || len < Xs.length * Ys.length * Zs.length) empty();\n\n var getArray = function(c) { return c === 'x' ? x : c === 'y' ? y : z; };\n var getVals = function(c) { return c === 'x' ? Xs : c === 'y' ? Ys : Zs; };\n var getDir = function(c) { return c[len - 1] < c[0] ? -1 : 1; };\n\n var arrK = getArray(gridFill[1]);\n var arrJ = getArray(gridFill[3]);\n var arrI = getArray(gridFill[5]);\n var nk = getVals(gridFill[1]).length;\n var nj = getVals(gridFill[3]).length;\n var ni = getVals(gridFill[5]).length;\n\n var arbitrary = false;\n\n var getIndex = function(_i, _j, _k) {\n return nk * (nj * _i + _j) + _k;\n };\n\n var dirK = getDir(getArray(gridFill[1]));\n var dirJ = getDir(getArray(gridFill[3]));\n var dirI = getDir(getArray(gridFill[5]));\n\n for(i = 0; i < ni - 1; i++) {\n for(j = 0; j < nj - 1; j++) {\n for(k = 0; k < nk - 1; k++) {\n var q000 = getIndex(i, j, k);\n var q001 = getIndex(i, j, k + 1);\n var q010 = getIndex(i, j + 1, k);\n var q100 = getIndex(i + 1, j, k);\n\n if(\n !(arrK[q000] * dirK < arrK[q001] * dirK) ||\n !(arrJ[q000] * dirJ < arrJ[q010] * dirJ) ||\n !(arrI[q000] * dirI < arrI[q100] * dirI)\n ) {\n arbitrary = true;\n }\n\n if(arbitrary) break;\n }\n if(arbitrary) break;\n }\n if(arbitrary) break;\n }\n\n if(arbitrary) {\n Lib.warn('Encountered arbitrary coordinates! Unable to input data grid.');\n empty();\n }\n\n return {\n xMin: xMin,\n yMin: yMin,\n zMin: zMin,\n xMax: xMax,\n yMax: yMax,\n zMax: zMax,\n Xs: Xs,\n Ys: Ys,\n Zs: Zs,\n len: len,\n fill: gridFill\n };\n}\n\nfunction distinctVals(col) {\n return Lib.distinctVals(col).vals;\n}\n\nfunction filter(arr, len) {\n if(len === undefined) len = arr.length;\n\n // no need for casting typed arrays to numbers\n if(Lib.isTypedArray(arr)) return arr.subarray(0, len);\n\n var values = [];\n for(var i = 0; i < len; i++) {\n values[i] = +arr[i];\n }\n return values;\n}\n\nmodule.exports = {\n calc: calc,\n filter: filter,\n processGrid: processGrid\n};\n\n},{\"../../components/colorscale/calc\":374,\"../../lib\":503}],1041:[function(_dereq_,module,exports){\n'use strict';\n\nvar tube2mesh = _dereq_('../../../stackgl_modules').gl_streamtube3d;\nvar createTubeMesh = tube2mesh.createTubeMesh;\n\nvar Lib = _dereq_('../../lib');\nvar parseColorScale = _dereq_('../../lib/gl_format_color').parseColorScale;\nvar extractOpts = _dereq_('../../components/colorscale').extractOpts;\nvar zip3 = _dereq_('../../plots/gl3d/zip3');\n\nvar axisName2scaleIndex = {xaxis: 0, yaxis: 1, zaxis: 2};\n\nfunction Streamtube(scene, uid) {\n this.scene = scene;\n this.uid = uid;\n this.mesh = null;\n this.data = null;\n}\n\nvar proto = Streamtube.prototype;\n\nproto.handlePick = function(selection) {\n var sceneLayout = this.scene.fullSceneLayout;\n var dataScale = this.scene.dataScale;\n\n function fromDataScale(v, axisName) {\n var ax = sceneLayout[axisName];\n var scale = dataScale[axisName2scaleIndex[axisName]];\n return ax.l2c(v) / scale;\n }\n\n if(selection.object === this.mesh) {\n var pos = selection.data.position;\n var uvx = selection.data.velocity;\n\n selection.traceCoordinate = [\n fromDataScale(pos[0], 'xaxis'),\n fromDataScale(pos[1], 'yaxis'),\n fromDataScale(pos[2], 'zaxis'),\n\n fromDataScale(uvx[0], 'xaxis'),\n fromDataScale(uvx[1], 'yaxis'),\n fromDataScale(uvx[2], 'zaxis'),\n\n // u/v/w norm\n selection.data.intensity * this.data._normMax,\n // divergence\n selection.data.divergence\n ];\n\n selection.textLabel = this.data.hovertext || this.data.text;\n\n return true;\n }\n};\n\nfunction getDfltStartingPositions(vec) {\n var len = vec.length;\n var s;\n\n if(len > 2) {\n s = vec.slice(1, len - 1);\n } else if(len === 2) {\n s = [(vec[0] + vec[1]) / 2];\n } else {\n s = vec;\n }\n return s;\n}\n\nfunction getBoundPads(vec) {\n var len = vec.length;\n if(len === 1) {\n return [0.5, 0.5];\n } else {\n return [vec[1] - vec[0], vec[len - 1] - vec[len - 2]];\n }\n}\n\nfunction convert(scene, trace) {\n var sceneLayout = scene.fullSceneLayout;\n var dataScale = scene.dataScale;\n var len = trace._len;\n var tubeOpts = {};\n\n function toDataCoords(arr, axisName) {\n var ax = sceneLayout[axisName];\n var scale = dataScale[axisName2scaleIndex[axisName]];\n return Lib.simpleMap(arr, function(v) { return ax.d2l(v) * scale; });\n }\n\n tubeOpts.vectors = zip3(\n toDataCoords(trace._u, 'xaxis'),\n toDataCoords(trace._v, 'yaxis'),\n toDataCoords(trace._w, 'zaxis'),\n len\n );\n\n // Over-specified mesh case, this would error in tube2mesh\n if(!len) {\n return {\n positions: [],\n cells: []\n };\n }\n\n var meshx = toDataCoords(trace._Xs, 'xaxis');\n var meshy = toDataCoords(trace._Ys, 'yaxis');\n var meshz = toDataCoords(trace._Zs, 'zaxis');\n\n tubeOpts.meshgrid = [meshx, meshy, meshz];\n tubeOpts.gridFill = trace._gridFill;\n\n var slen = trace._slen;\n if(slen) {\n tubeOpts.startingPositions = zip3(\n toDataCoords(trace._startsX, 'xaxis'),\n toDataCoords(trace._startsY, 'yaxis'),\n toDataCoords(trace._startsZ, 'zaxis')\n );\n } else {\n // Default starting positions:\n //\n // if len>2, cut xz plane at min-y,\n // takes all x/y/z pts on that plane except those on the edges\n // to generate \"well-defined\" tubes,\n //\n // if len=2, take position halfway between two the pts,\n //\n // if len=1, take that pt\n var sy0 = meshy[0];\n var sx = getDfltStartingPositions(meshx);\n var sz = getDfltStartingPositions(meshz);\n var startingPositions = new Array(sx.length * sz.length);\n var m = 0;\n\n for(var i = 0; i < sx.length; i++) {\n for(var k = 0; k < sz.length; k++) {\n startingPositions[m++] = [sx[i], sy0, sz[k]];\n }\n }\n tubeOpts.startingPositions = startingPositions;\n }\n\n tubeOpts.colormap = parseColorScale(trace);\n tubeOpts.tubeSize = trace.sizeref;\n tubeOpts.maxLength = trace.maxdisplayed;\n\n // add some padding around the bounds\n // to e.g. allow tubes starting from a slice of the x/y/z mesh\n // to go beyond bounds a little bit w/o getting clipped\n var xbnds = toDataCoords(trace._xbnds, 'xaxis');\n var ybnds = toDataCoords(trace._ybnds, 'yaxis');\n var zbnds = toDataCoords(trace._zbnds, 'zaxis');\n var xpads = getBoundPads(meshx);\n var ypads = getBoundPads(meshy);\n var zpads = getBoundPads(meshz);\n\n var bounds = [\n [xbnds[0] - xpads[0], ybnds[0] - ypads[0], zbnds[0] - zpads[0]],\n [xbnds[1] + xpads[1], ybnds[1] + ypads[1], zbnds[1] + zpads[1]]\n ];\n\n var meshData = tube2mesh(tubeOpts, bounds);\n\n // N.B. cmin/cmax correspond to the min/max vector norm\n // in the u/v/w arrays, which in general is NOT equal to max\n // intensity that colors the tubes.\n var cOpts = extractOpts(trace);\n meshData.vertexIntensityBounds = [cOpts.min / trace._normMax, cOpts.max / trace._normMax];\n\n // pass gl-mesh3d lighting attributes\n var lp = trace.lightposition;\n meshData.lightPosition = [lp.x, lp.y, lp.z];\n meshData.ambient = trace.lighting.ambient;\n meshData.diffuse = trace.lighting.diffuse;\n meshData.specular = trace.lighting.specular;\n meshData.roughness = trace.lighting.roughness;\n meshData.fresnel = trace.lighting.fresnel;\n meshData.opacity = trace.opacity;\n\n // stash autorange pad value\n trace._pad = meshData.tubeScale * trace.sizeref * 2;\n\n return meshData;\n}\n\nproto.update = function(data) {\n this.data = data;\n\n var meshData = convert(this.scene, data);\n this.mesh.update(meshData);\n};\n\nproto.dispose = function() {\n this.scene.glplot.remove(this.mesh);\n this.mesh.dispose();\n};\n\nfunction createStreamtubeTrace(scene, data) {\n var gl = scene.glplot.gl;\n\n var meshData = convert(scene, data);\n var mesh = createTubeMesh(gl, meshData);\n\n var streamtube = new Streamtube(scene, data.uid);\n streamtube.mesh = mesh;\n streamtube.data = data;\n mesh._trace = streamtube;\n\n scene.glplot.add(mesh);\n\n return streamtube;\n}\n\nmodule.exports = createStreamtubeTrace;\n\n},{\"../../../stackgl_modules\":1119,\"../../components/colorscale\":378,\"../../lib\":503,\"../../lib/gl_format_color\":499,\"../../plots/gl3d/zip3\":609}],1042:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar colorscaleDefaults = _dereq_('../../components/colorscale/defaults');\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var u = coerce('u');\n var v = coerce('v');\n var w = coerce('w');\n\n var x = coerce('x');\n var y = coerce('y');\n var z = coerce('z');\n\n if(\n !u || !u.length || !v || !v.length || !w || !w.length ||\n !x || !x.length || !y || !y.length || !z || !z.length\n ) {\n traceOut.visible = false;\n return;\n }\n\n coerce('starts.x');\n coerce('starts.y');\n coerce('starts.z');\n\n coerce('maxdisplayed');\n coerce('sizeref');\n\n coerce('lighting.ambient');\n coerce('lighting.diffuse');\n coerce('lighting.specular');\n coerce('lighting.roughness');\n coerce('lighting.fresnel');\n coerce('lightposition.x');\n coerce('lightposition.y');\n coerce('lightposition.z');\n\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: '', cLetter: 'c'});\n\n coerce('text');\n coerce('hovertext');\n coerce('hovertemplate');\n coerce('uhoverformat');\n coerce('vhoverformat');\n coerce('whoverformat');\n coerce('xhoverformat');\n coerce('yhoverformat');\n coerce('zhoverformat');\n\n // disable 1D transforms (for now)\n // x/y/z and u/v/w have matching lengths,\n // but they don't have to match with starts.(x|y|z)\n traceOut._length = null;\n};\n\n},{\"../../components/colorscale/defaults\":376,\"../../lib\":503,\"./attributes\":1039}],1043:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'trace',\n name: 'streamtube',\n basePlotModule: _dereq_('../../plots/gl3d'),\n categories: ['gl3d', 'showLegend'],\n\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n colorbar: {\n min: 'cmin',\n max: 'cmax'\n },\n calc: _dereq_('./calc').calc,\n plot: _dereq_('./convert'),\n eventData: function(out, pt) {\n out.tubex = out.x;\n out.tubey = out.y;\n out.tubez = out.z;\n\n out.tubeu = pt.traceCoordinate[3];\n out.tubev = pt.traceCoordinate[4];\n out.tubew = pt.traceCoordinate[5];\n\n out.norm = pt.traceCoordinate[6];\n out.divergence = pt.traceCoordinate[7];\n\n // Does not correspond to input x/y/z, so delete them\n delete out.x;\n delete out.y;\n delete out.z;\n\n return out;\n },\n\n meta: {\n }\n};\n\n},{\"../../plots/gl3d\":598,\"./attributes\":1039,\"./calc\":1040,\"./convert\":1041,\"./defaults\":1042}],1044:[function(_dereq_,module,exports){\n'use strict';\n\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\n\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar domainAttrs = _dereq_('../../plots/domain').attributes;\nvar pieAttrs = _dereq_('../pie/attributes');\nvar constants = _dereq_('./constants');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nmodule.exports = {\n labels: {\n valType: 'data_array',\n editType: 'calc',\n },\n parents: {\n valType: 'data_array',\n editType: 'calc',\n },\n\n values: {\n valType: 'data_array',\n editType: 'calc',\n },\n branchvalues: {\n valType: 'enumerated',\n values: ['remainder', 'total'],\n dflt: 'remainder',\n editType: 'calc',\n },\n count: {\n valType: 'flaglist',\n flags: [\n 'branches',\n 'leaves'\n ],\n dflt: 'leaves',\n editType: 'calc',\n },\n\n level: {\n valType: 'any',\n editType: 'plot',\n anim: true,\n },\n maxdepth: {\n valType: 'integer',\n editType: 'plot',\n dflt: -1,\n },\n\n marker: extendFlat({\n colors: {\n valType: 'data_array',\n editType: 'calc',\n },\n\n // colorinheritance: {\n // valType: 'enumerated',\n // values: ['per-branch', 'per-label', false]\n // },\n\n line: {\n color: extendFlat({}, pieAttrs.marker.line.color, {\n dflt: null,\n }),\n width: extendFlat({}, pieAttrs.marker.line.width, {dflt: 1}),\n editType: 'calc'\n },\n editType: 'calc'\n },\n colorScaleAttrs('marker', {\n colorAttr: 'colors',\n anim: false // TODO: set to anim: true?\n })\n ),\n\n leaf: {\n opacity: {\n valType: 'number',\n editType: 'style',\n min: 0,\n max: 1,\n },\n editType: 'plot'\n },\n\n text: pieAttrs.text,\n textinfo: {\n valType: 'flaglist',\n flags: [\n 'label',\n 'text',\n 'value',\n 'current path',\n 'percent root',\n 'percent entry',\n 'percent parent'\n ],\n extras: ['none'],\n editType: 'plot',\n },\n\n // TODO: incorporate `label` and `value` in the eventData\n texttemplate: texttemplateAttrs({editType: 'plot'}, {\n keys: constants.eventDataKeys.concat(['label', 'value'])\n }),\n\n hovertext: pieAttrs.hovertext,\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {\n flags: [\n 'label',\n 'text',\n 'value',\n 'name',\n 'current path',\n 'percent root',\n 'percent entry',\n 'percent parent'\n ],\n dflt: 'label+text+value+name'\n }),\n hovertemplate: hovertemplateAttrs({}, {\n keys: constants.eventDataKeys\n }),\n\n textfont: pieAttrs.textfont,\n insidetextorientation: pieAttrs.insidetextorientation,\n insidetextfont: pieAttrs.insidetextfont,\n outsidetextfont: extendFlat({}, pieAttrs.outsidetextfont, {\n }),\n rotation: {\n valType: 'angle',\n dflt: 0,\n editType: 'plot',\n },\n sort: pieAttrs.sort,\n\n root: {\n color: {\n valType: 'color',\n editType: 'calc',\n dflt: 'rgba(0,0,0,0)',\n },\n editType: 'calc'\n },\n\n domain: domainAttrs({name: 'sunburst', trace: true, editType: 'calc'})\n};\n\n},{\"../../components/colorscale/attributes\":373,\"../../lib/extend\":493,\"../../plots/attributes\":550,\"../../plots/domain\":584,\"../../plots/template_attributes\":633,\"../pie/attributes\":899,\"./constants\":1047}],1045:[function(_dereq_,module,exports){\n'use strict';\n\nvar plots = _dereq_('../../plots/plots');\n\nexports.name = 'sunburst';\n\nexports.plot = function(gd, traces, transitionOpts, makeOnCompleteCallback) {\n plots.plotBasePlot(exports.name, gd, traces, transitionOpts, makeOnCompleteCallback);\n};\n\nexports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n plots.cleanBasePlot(exports.name, newFullData, newFullLayout, oldFullData, oldFullLayout);\n};\n\n},{\"../../plots/plots\":619}],1046:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3Hierarchy = _dereq_('d3-hierarchy');\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Lib = _dereq_('../../lib');\nvar makeColorScaleFn = _dereq_('../../components/colorscale').makeColorScaleFuncFromTrace;\nvar makePullColorFn = _dereq_('../pie/calc').makePullColorFn;\nvar generateExtendedColors = _dereq_('../pie/calc').generateExtendedColors;\nvar colorscaleCalc = _dereq_('../../components/colorscale').calc;\n\nvar ALMOST_EQUAL = _dereq_('../../constants/numerical').ALMOST_EQUAL;\n\nvar sunburstExtendedColorWays = {};\nvar treemapExtendedColorWays = {};\nvar icicleExtendedColorWays = {};\n\nexports.calc = function(gd, trace) {\n var fullLayout = gd._fullLayout;\n var ids = trace.ids;\n var hasIds = Lib.isArrayOrTypedArray(ids);\n var labels = trace.labels;\n var parents = trace.parents;\n var values = trace.values;\n var hasValues = Lib.isArrayOrTypedArray(values);\n var cd = [];\n\n var parent2children = {};\n var refs = {};\n var addToLookup = function(parent, v) {\n if(parent2children[parent]) parent2children[parent].push(v);\n else parent2children[parent] = [v];\n refs[v] = 1;\n };\n\n // treat number `0` as valid\n var isValidKey = function(k) {\n return k || typeof k === 'number';\n };\n\n var isValidVal = function(i) {\n return !hasValues || (isNumeric(values[i]) && values[i] >= 0);\n };\n\n var len;\n var isValid;\n var getId;\n\n if(hasIds) {\n len = Math.min(ids.length, parents.length);\n isValid = function(i) { return isValidKey(ids[i]) && isValidVal(i); };\n getId = function(i) { return String(ids[i]); };\n } else {\n len = Math.min(labels.length, parents.length);\n isValid = function(i) { return isValidKey(labels[i]) && isValidVal(i); };\n // TODO We could allow some label / parent duplication\n //\n // From AJ:\n // It would work OK for one level\n // (multiple rows with the same name and different parents -\n // or even the same parent) but if that name is then used as a parent\n // which one is it?\n getId = function(i) { return String(labels[i]); };\n }\n\n if(hasValues) len = Math.min(len, values.length);\n\n for(var i = 0; i < len; i++) {\n if(isValid(i)) {\n var id = getId(i);\n var pid = isValidKey(parents[i]) ? String(parents[i]) : '';\n\n var cdi = {\n i: i,\n id: id,\n pid: pid,\n label: isValidKey(labels[i]) ? String(labels[i]) : ''\n };\n\n if(hasValues) cdi.v = +values[i];\n cd.push(cdi);\n addToLookup(pid, id);\n }\n }\n\n if(!parent2children['']) {\n var impliedRoots = [];\n var k;\n for(k in parent2children) {\n if(!refs[k]) {\n impliedRoots.push(k);\n }\n }\n\n // if an `id` has no ref in the `parents` array,\n // take it as being the root node\n\n if(impliedRoots.length === 1) {\n k = impliedRoots[0];\n cd.unshift({\n hasImpliedRoot: true,\n id: k,\n pid: '',\n label: k\n });\n } else {\n return Lib.warn([\n 'Multiple implied roots, cannot build', trace.type, 'hierarchy of', trace.name + '.',\n 'These roots include:', impliedRoots.join(', ')\n ].join(' '));\n }\n } else if(parent2children[''].length > 1) {\n var dummyId = Lib.randstr();\n\n // if multiple rows linked to the root node,\n // add dummy \"root of roots\" node to make d3 build the hierarchy successfully\n\n for(var j = 0; j < cd.length; j++) {\n if(cd[j].pid === '') {\n cd[j].pid = dummyId;\n }\n }\n\n cd.unshift({\n hasMultipleRoots: true,\n id: dummyId,\n pid: '',\n label: ''\n });\n }\n\n // TODO might be better to replace stratify() with our own algorithm\n var root;\n try {\n root = d3Hierarchy.stratify()\n .id(function(d) { return d.id; })\n .parentId(function(d) { return d.pid; })(cd);\n } catch(e) {\n return Lib.warn([\n 'Failed to build', trace.type, 'hierarchy of', trace.name + '.',\n 'Error:', e.message\n ].join(' '));\n }\n\n var hierarchy = d3Hierarchy.hierarchy(root);\n var failed = false;\n\n if(hasValues) {\n switch(trace.branchvalues) {\n case 'remainder':\n hierarchy.sum(function(d) { return d.data.v; });\n break;\n case 'total':\n hierarchy.each(function(d) {\n var cdi = d.data.data;\n var v = cdi.v;\n\n if(d.children) {\n var partialSum = d.children.reduce(function(a, c) {\n return a + c.data.data.v;\n }, 0);\n\n // N.B. we must fill in `value` for generated sectors\n // with the partialSum to compute the correct partition\n if(cdi.hasImpliedRoot || cdi.hasMultipleRoots) {\n v = partialSum;\n }\n\n if(v < partialSum * ALMOST_EQUAL) {\n failed = true;\n return Lib.warn([\n 'Total value for node', d.data.data.id, 'of', trace.name,\n 'is smaller than the sum of its children.',\n '\\nparent value =', v,\n '\\nchildren sum =', partialSum\n ].join(' '));\n }\n }\n\n d.value = v;\n });\n break;\n }\n } else {\n countDescendants(hierarchy, trace, {\n branches: trace.count.indexOf('branches') !== -1,\n leaves: trace.count.indexOf('leaves') !== -1\n });\n }\n\n if(failed) return;\n\n // TODO add way to sort by height also?\n if(trace.sort) {\n hierarchy.sort(function(a, b) { return b.value - a.value; });\n }\n\n var pullColor;\n var scaleColor;\n var colors = trace.marker.colors || [];\n var hasColors = !!colors.length;\n\n if(trace._hasColorscale) {\n if(!hasColors) {\n colors = hasValues ? trace.values : trace._values;\n }\n\n colorscaleCalc(gd, trace, {\n vals: colors,\n containerStr: 'marker',\n cLetter: 'c'\n });\n\n scaleColor = makeColorScaleFn(trace.marker);\n } else {\n pullColor = makePullColorFn(fullLayout['_' + trace.type + 'colormap']);\n }\n\n // TODO keep track of 'root-children' (i.e. branch) for hover info etc.\n\n hierarchy.each(function(d) {\n var cdi = d.data.data;\n // N.B. this mutates items in `cd`\n cdi.color = trace._hasColorscale ?\n scaleColor(colors[cdi.i]) :\n pullColor(colors[cdi.i], cdi.id);\n });\n\n cd[0].hierarchy = hierarchy;\n\n return cd;\n};\n\n/*\n * `calc` filled in (and collated) explicit colors.\n * Now we need to propagate these explicit colors to other traces,\n * and fill in default colors.\n * This is done after sorting, so we pick defaults\n * in the order slices will be displayed\n */\nexports._runCrossTraceCalc = function(desiredType, gd) {\n var fullLayout = gd._fullLayout;\n var calcdata = gd.calcdata;\n var colorWay = fullLayout[desiredType + 'colorway'];\n var colorMap = fullLayout['_' + desiredType + 'colormap'];\n\n if(fullLayout['extend' + desiredType + 'colors']) {\n colorWay = generateExtendedColors(colorWay,\n desiredType === 'icicle' ? icicleExtendedColorWays :\n desiredType === 'treemap' ? treemapExtendedColorWays :\n sunburstExtendedColorWays\n );\n }\n var dfltColorCount = 0;\n\n var rootColor;\n function pickColor(d) {\n var cdi = d.data.data;\n var id = cdi.id;\n\n if(cdi.color === false) {\n if(colorMap[id]) {\n // have we seen this label and assigned a color to it in a previous trace?\n cdi.color = colorMap[id];\n } else if(d.parent) {\n if(d.parent.parent) {\n // from third-level on, inherit from parent\n cdi.color = d.parent.data.data.color;\n } else {\n // pick new color for second level\n colorMap[id] = cdi.color = colorWay[dfltColorCount % colorWay.length];\n dfltColorCount++;\n }\n } else {\n // set root color. no coloring by default.\n cdi.color = rootColor;\n }\n }\n }\n\n for(var i = 0; i < calcdata.length; i++) {\n var cd = calcdata[i];\n var cd0 = cd[0];\n if(cd0.trace.type === desiredType && cd0.hierarchy) {\n rootColor = cd0.trace.root.color;\n cd0.hierarchy.each(pickColor);\n }\n }\n};\n\nexports.crossTraceCalc = function(gd) {\n return exports._runCrossTraceCalc('sunburst', gd);\n};\n\nfunction countDescendants(node, trace, opts) {\n var nChild = 0;\n\n var children = node.children;\n if(children) {\n var len = children.length;\n\n for(var i = 0; i < len; i++) {\n nChild += countDescendants(children[i], trace, opts);\n }\n\n if(opts.branches) nChild++; // count this branch\n } else {\n if(opts.leaves) nChild++; // count this leaf\n }\n\n // save to the node\n node.value = node.data.data.value = nChild;\n\n // save to the trace\n if(!trace._values) trace._values = [];\n trace._values[node.data.data.i] = nChild;\n\n return nChild;\n}\n\n},{\"../../components/colorscale\":378,\"../../constants/numerical\":479,\"../../lib\":503,\"../pie/calc\":901,\"d3-hierarchy\":115,\"fast-isnumeric\":190}],1047:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n CLICK_TRANSITION_TIME: 750,\n CLICK_TRANSITION_EASING: 'linear',\n eventDataKeys: [\n // string\n 'currentPath',\n 'root',\n 'entry',\n // no need to add 'parent' here\n\n // percentages i.e. ratios\n 'percentRoot',\n 'percentEntry',\n 'percentParent'\n ]\n};\n\n},{}],1048:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar attributes = _dereq_('./attributes');\nvar handleDomainDefaults = _dereq_('../../plots/domain').defaults;\nvar handleText = _dereq_('../bar/defaults').handleText;\n\nvar Colorscale = _dereq_('../../components/colorscale');\nvar hasColorscale = Colorscale.hasColorscale;\nvar colorscaleDefaults = Colorscale.handleDefaults;\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var labels = coerce('labels');\n var parents = coerce('parents');\n\n if(!labels || !labels.length || !parents || !parents.length) {\n traceOut.visible = false;\n return;\n }\n\n var vals = coerce('values');\n if(vals && vals.length) {\n coerce('branchvalues');\n } else {\n coerce('count');\n }\n\n coerce('level');\n coerce('maxdepth');\n\n var lineWidth = coerce('marker.line.width');\n if(lineWidth) coerce('marker.line.color', layout.paper_bgcolor);\n\n coerce('marker.colors');\n var withColorscale = traceOut._hasColorscale = (\n hasColorscale(traceIn, 'marker', 'colors') ||\n (traceIn.marker || {}).coloraxis // N.B. special logic to consider \"values\" colorscales\n );\n if(withColorscale) {\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: 'marker.', cLetter: 'c'});\n }\n\n coerce('leaf.opacity', withColorscale ? 1 : 0.7);\n\n var text = coerce('text');\n coerce('texttemplate');\n if(!traceOut.texttemplate) coerce('textinfo', Array.isArray(text) ? 'text+label' : 'label');\n\n coerce('hovertext');\n coerce('hovertemplate');\n\n var textposition = 'auto';\n handleText(traceIn, traceOut, layout, coerce, textposition, {\n moduleHasSelected: false,\n moduleHasUnselected: false,\n moduleHasConstrain: false,\n moduleHasCliponaxis: false,\n moduleHasTextangle: false,\n moduleHasInsideanchor: false\n });\n\n coerce('insidetextorientation');\n\n coerce('sort');\n\n coerce('rotation');\n\n coerce('root.color');\n\n handleDomainDefaults(traceOut, layout, coerce);\n\n // do not support transforms for now\n traceOut._length = null;\n};\n\n},{\"../../components/colorscale\":378,\"../../lib\":503,\"../../plots/domain\":584,\"../bar/defaults\":652,\"./attributes\":1044}],1049:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Registry = _dereq_('../../registry');\nvar appendArrayPointValue = _dereq_('../../components/fx/helpers').appendArrayPointValue;\nvar Fx = _dereq_('../../components/fx');\nvar Lib = _dereq_('../../lib');\nvar Events = _dereq_('../../lib/events');\n\nvar helpers = _dereq_('./helpers');\nvar pieHelpers = _dereq_('../pie/helpers');\n\nvar formatValue = pieHelpers.formatPieValue;\n\nmodule.exports = function attachFxHandlers(sliceTop, entry, gd, cd, opts) {\n var cd0 = cd[0];\n var trace = cd0.trace;\n var hierarchy = cd0.hierarchy;\n\n var isSunburst = trace.type === 'sunburst';\n var isTreemapOrIcicle =\n trace.type === 'treemap' ||\n trace.type === 'icicle';\n\n // hover state vars\n // have we drawn a hover label, so it should be cleared later\n if(!('_hasHoverLabel' in trace)) trace._hasHoverLabel = false;\n // have we emitted a hover event, so later an unhover event should be emitted\n // note that click events do not depend on this - you can still get them\n // with hovermode: false or if you were earlier dragging, then clicked\n // in the same slice that you moused up in\n if(!('_hasHoverEvent' in trace)) trace._hasHoverEvent = false;\n\n var onMouseOver = function(pt) {\n var fullLayoutNow = gd._fullLayout;\n\n if(gd._dragging || fullLayoutNow.hovermode === false) return;\n\n var traceNow = gd._fullData[trace.index];\n var cdi = pt.data.data;\n var ptNumber = cdi.i;\n var isRoot = helpers.isHierarchyRoot(pt);\n var parent = helpers.getParent(hierarchy, pt);\n\n var val = helpers.getValue(pt);\n\n var _cast = function(astr) {\n return Lib.castOption(traceNow, ptNumber, astr);\n };\n\n var hovertemplate = _cast('hovertemplate');\n var hoverinfo = Fx.castHoverinfo(traceNow, fullLayoutNow, ptNumber);\n var separators = fullLayoutNow.separators;\n\n var eventData;\n\n if(hovertemplate || (hoverinfo && hoverinfo !== 'none' && hoverinfo !== 'skip')) {\n var hoverCenterX;\n var hoverCenterY;\n if(isSunburst) {\n hoverCenterX = cd0.cx + pt.pxmid[0] * (1 - pt.rInscribed);\n hoverCenterY = cd0.cy + pt.pxmid[1] * (1 - pt.rInscribed);\n }\n if(isTreemapOrIcicle) {\n hoverCenterX = pt._hoverX;\n hoverCenterY = pt._hoverY;\n }\n\n var hoverPt = {};\n var parts = [];\n var thisText = [];\n var hasFlag = function(flag) { return parts.indexOf(flag) !== -1; };\n\n if(hoverinfo) {\n parts = hoverinfo === 'all' ?\n traceNow._module.attributes.hoverinfo.flags :\n hoverinfo.split('+');\n }\n\n hoverPt.label = cdi.label;\n if(hasFlag('label') && hoverPt.label) thisText.push(hoverPt.label);\n\n if(cdi.hasOwnProperty('v')) {\n hoverPt.value = cdi.v;\n hoverPt.valueLabel = formatValue(hoverPt.value, separators);\n if(hasFlag('value')) thisText.push(hoverPt.valueLabel);\n }\n\n hoverPt.currentPath = pt.currentPath = helpers.getPath(pt.data);\n if(hasFlag('current path') && !isRoot) {\n thisText.push(hoverPt.currentPath);\n }\n\n var tx;\n var allPercents = [];\n var insertPercent = function() {\n if(allPercents.indexOf(tx) === -1) { // no need to add redundant info\n thisText.push(tx);\n allPercents.push(tx);\n }\n };\n\n hoverPt.percentParent = pt.percentParent = val / helpers.getValue(parent);\n hoverPt.parent = pt.parentString = helpers.getPtLabel(parent);\n if(hasFlag('percent parent')) {\n tx = helpers.formatPercent(hoverPt.percentParent, separators) + ' of ' + hoverPt.parent;\n insertPercent();\n }\n\n hoverPt.percentEntry = pt.percentEntry = val / helpers.getValue(entry);\n hoverPt.entry = pt.entry = helpers.getPtLabel(entry);\n if(hasFlag('percent entry') && !isRoot && !pt.onPathbar) {\n tx = helpers.formatPercent(hoverPt.percentEntry, separators) + ' of ' + hoverPt.entry;\n insertPercent();\n }\n\n hoverPt.percentRoot = pt.percentRoot = val / helpers.getValue(hierarchy);\n hoverPt.root = pt.root = helpers.getPtLabel(hierarchy);\n if(hasFlag('percent root') && !isRoot) {\n tx = helpers.formatPercent(hoverPt.percentRoot, separators) + ' of ' + hoverPt.root;\n insertPercent();\n }\n\n hoverPt.text = _cast('hovertext') || _cast('text');\n if(hasFlag('text')) {\n tx = hoverPt.text;\n if(Lib.isValidTextValue(tx)) thisText.push(tx);\n }\n\n eventData = [makeEventData(pt, traceNow, opts.eventDataKeys)];\n\n var hoverItems = {\n trace: traceNow,\n y: hoverCenterY,\n _x0: pt._x0,\n _x1: pt._x1,\n _y0: pt._y0,\n _y1: pt._y1,\n text: thisText.join('
'),\n name: (hovertemplate || hasFlag('name')) ? traceNow.name : undefined,\n color: _cast('hoverlabel.bgcolor') || cdi.color,\n borderColor: _cast('hoverlabel.bordercolor'),\n fontFamily: _cast('hoverlabel.font.family'),\n fontSize: _cast('hoverlabel.font.size'),\n fontColor: _cast('hoverlabel.font.color'),\n nameLength: _cast('hoverlabel.namelength'),\n textAlign: _cast('hoverlabel.align'),\n hovertemplate: hovertemplate,\n hovertemplateLabels: hoverPt,\n eventData: eventData\n };\n\n if(isSunburst) {\n hoverItems.x0 = hoverCenterX - pt.rInscribed * pt.rpx1;\n hoverItems.x1 = hoverCenterX + pt.rInscribed * pt.rpx1;\n hoverItems.idealAlign = pt.pxmid[0] < 0 ? 'left' : 'right';\n }\n if(isTreemapOrIcicle) {\n hoverItems.x = hoverCenterX;\n hoverItems.idealAlign = hoverCenterX < 0 ? 'left' : 'right';\n }\n\n var bbox = [];\n Fx.loneHover(hoverItems, {\n container: fullLayoutNow._hoverlayer.node(),\n outerContainer: fullLayoutNow._paper.node(),\n gd: gd,\n inOut_bbox: bbox\n });\n eventData[0].bbox = bbox[0];\n\n trace._hasHoverLabel = true;\n }\n\n if(isTreemapOrIcicle) {\n var slice = sliceTop.select('path.surface');\n opts.styleOne(slice, pt, traceNow, {\n hovered: true\n });\n }\n\n trace._hasHoverEvent = true;\n gd.emit('plotly_hover', {\n points: eventData || [makeEventData(pt, traceNow, opts.eventDataKeys)],\n event: d3.event\n });\n };\n\n var onMouseOut = function(evt) {\n var fullLayoutNow = gd._fullLayout;\n var traceNow = gd._fullData[trace.index];\n var pt = d3.select(this).datum();\n\n if(trace._hasHoverEvent) {\n evt.originalEvent = d3.event;\n gd.emit('plotly_unhover', {\n points: [makeEventData(pt, traceNow, opts.eventDataKeys)],\n event: d3.event\n });\n trace._hasHoverEvent = false;\n }\n\n if(trace._hasHoverLabel) {\n Fx.loneUnhover(fullLayoutNow._hoverlayer.node());\n trace._hasHoverLabel = false;\n }\n\n if(isTreemapOrIcicle) {\n var slice = sliceTop.select('path.surface');\n opts.styleOne(slice, pt, traceNow, {\n hovered: false\n });\n }\n };\n\n var onClick = function(pt) {\n // TODO: this does not support right-click. If we want to support it, we\n // would likely need to change pie to use dragElement instead of straight\n // mapbox event binding. Or perhaps better, make a simple wrapper with the\n // right mousedown, mousemove, and mouseup handlers just for a left/right click\n // mapbox would use this too.\n var fullLayoutNow = gd._fullLayout;\n var traceNow = gd._fullData[trace.index];\n\n var noTransition = isSunburst && (helpers.isHierarchyRoot(pt) || helpers.isLeaf(pt));\n\n var id = helpers.getPtId(pt);\n var nextEntry = helpers.isEntry(pt) ?\n helpers.findEntryWithChild(hierarchy, id) :\n helpers.findEntryWithLevel(hierarchy, id);\n var nextLevel = helpers.getPtId(nextEntry);\n\n var typeClickEvtData = {\n points: [makeEventData(pt, traceNow, opts.eventDataKeys)],\n event: d3.event\n };\n if(!noTransition) typeClickEvtData.nextLevel = nextLevel;\n\n var clickVal = Events.triggerHandler(gd, 'plotly_' + trace.type + 'click', typeClickEvtData);\n\n if(clickVal !== false && fullLayoutNow.hovermode) {\n gd._hoverdata = [makeEventData(pt, traceNow, opts.eventDataKeys)];\n Fx.click(gd, d3.event);\n }\n\n // if click does not trigger a transition, we're done!\n if(noTransition) return;\n\n // if custom handler returns false, we're done!\n if(clickVal === false) return;\n\n // skip if triggered from dragging a nearby cartesian subplot\n if(gd._dragging) return;\n\n // skip during transitions, to avoid potential bugs\n // we could remove this check later\n if(gd._transitioning) return;\n\n // store 'old' level in guiEdit stash, so that subsequent Plotly.react\n // calls with the same uirevision can start from the same entry\n Registry.call('_storeDirectGUIEdit', traceNow, fullLayoutNow._tracePreGUI[traceNow.uid], {\n level: traceNow.level\n });\n\n var frame = {\n data: [{level: nextLevel}],\n traces: [trace.index]\n };\n\n var animOpts = {\n frame: {\n redraw: false,\n duration: opts.transitionTime\n },\n transition: {\n duration: opts.transitionTime,\n easing: opts.transitionEasing\n },\n mode: 'immediate',\n fromcurrent: true\n };\n\n Fx.loneUnhover(fullLayoutNow._hoverlayer.node());\n Registry.call('animate', gd, frame, animOpts);\n };\n\n sliceTop.on('mouseover', onMouseOver);\n sliceTop.on('mouseout', onMouseOut);\n sliceTop.on('click', onClick);\n};\n\nfunction makeEventData(pt, trace, keys) {\n var cdi = pt.data.data;\n\n var out = {\n curveNumber: trace.index,\n pointNumber: cdi.i,\n data: trace._input,\n fullData: trace,\n\n // TODO more things like 'children', 'siblings', 'hierarchy?\n };\n\n for(var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if(key in pt) out[key] = pt[key];\n }\n // handle special case of parent\n if('parentString' in pt && !helpers.isHierarchyRoot(pt)) out.parent = pt.parentString;\n\n appendArrayPointValue(out, trace, cdi.i);\n\n return out;\n}\n\n},{\"../../components/fx\":406,\"../../components/fx/helpers\":402,\"../../lib\":503,\"../../lib/events\":492,\"../../registry\":638,\"../pie/helpers\":904,\"./helpers\":1050,\"@plotly/d3\":58}],1050:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Color = _dereq_('../../components/color');\nvar setCursor = _dereq_('../../lib/setcursor');\nvar pieHelpers = _dereq_('../pie/helpers');\n\nexports.findEntryWithLevel = function(hierarchy, level) {\n var out;\n if(level) {\n hierarchy.eachAfter(function(pt) {\n if(exports.getPtId(pt) === level) {\n return out = pt.copy();\n }\n });\n }\n return out || hierarchy;\n};\n\nexports.findEntryWithChild = function(hierarchy, childId) {\n var out;\n hierarchy.eachAfter(function(pt) {\n var children = pt.children || [];\n for(var i = 0; i < children.length; i++) {\n var child = children[i];\n if(exports.getPtId(child) === childId) {\n return out = pt.copy();\n }\n }\n });\n return out || hierarchy;\n};\n\nexports.isEntry = function(pt) {\n return !pt.parent;\n};\n\nexports.isLeaf = function(pt) {\n return !pt.children;\n};\n\nexports.getPtId = function(pt) {\n return pt.data.data.id;\n};\n\nexports.getPtLabel = function(pt) {\n return pt.data.data.label;\n};\n\nexports.getValue = function(d) {\n return d.value;\n};\n\nexports.isHierarchyRoot = function(pt) {\n return getParentId(pt) === '';\n};\n\nexports.setSliceCursor = function(sliceTop, gd, opts) {\n var hide = opts.isTransitioning;\n if(!hide) {\n var pt = sliceTop.datum();\n hide = (\n (opts.hideOnRoot && exports.isHierarchyRoot(pt)) ||\n (opts.hideOnLeaves && exports.isLeaf(pt))\n );\n }\n setCursor(sliceTop, hide ? null : 'pointer');\n};\n\nfunction determineOutsideTextFont(trace, pt, layoutFont) {\n return {\n color: exports.getOutsideTextFontKey('color', trace, pt, layoutFont),\n family: exports.getOutsideTextFontKey('family', trace, pt, layoutFont),\n size: exports.getOutsideTextFontKey('size', trace, pt, layoutFont)\n };\n}\n\nfunction determineInsideTextFont(trace, pt, layoutFont, opts) {\n var onPathbar = (opts || {}).onPathbar;\n\n var cdi = pt.data.data;\n var ptNumber = cdi.i;\n\n var customColor = Lib.castOption(trace, ptNumber,\n (onPathbar ? 'pathbar.textfont' : 'insidetextfont') + '.color'\n );\n\n if(!customColor && trace._input.textfont) {\n // Why not simply using trace.textfont? Because if not set, it\n // defaults to layout.font which has a default color. But if\n // textfont.color and insidetextfont.color don't supply a value,\n // a contrasting color shall be used.\n customColor = Lib.castOption(trace._input, ptNumber, 'textfont.color');\n }\n\n return {\n color: customColor || Color.contrast(cdi.color),\n family: exports.getInsideTextFontKey('family', trace, pt, layoutFont, opts),\n size: exports.getInsideTextFontKey('size', trace, pt, layoutFont, opts)\n };\n}\n\nexports.getInsideTextFontKey = function(keyStr, trace, pt, layoutFont, opts) {\n var onPathbar = (opts || {}).onPathbar;\n var cont = onPathbar ? 'pathbar.textfont' : 'insidetextfont';\n var ptNumber = pt.data.data.i;\n\n return (\n Lib.castOption(trace, ptNumber, cont + '.' + keyStr) ||\n Lib.castOption(trace, ptNumber, 'textfont.' + keyStr) ||\n layoutFont.size\n );\n};\n\nexports.getOutsideTextFontKey = function(keyStr, trace, pt, layoutFont) {\n var ptNumber = pt.data.data.i;\n\n return (\n Lib.castOption(trace, ptNumber, 'outsidetextfont.' + keyStr) ||\n Lib.castOption(trace, ptNumber, 'textfont.' + keyStr) ||\n layoutFont.size\n );\n};\n\nexports.isOutsideText = function(trace, pt) {\n return !trace._hasColorscale && exports.isHierarchyRoot(pt);\n};\n\nexports.determineTextFont = function(trace, pt, layoutFont, opts) {\n return exports.isOutsideText(trace, pt) ?\n determineOutsideTextFont(trace, pt, layoutFont) :\n determineInsideTextFont(trace, pt, layoutFont, opts);\n};\n\nexports.hasTransition = function(transitionOpts) {\n // We could optimize hasTransition per trace,\n // as sunburst, treemap & icicle have no cross-trace logic!\n return !!(transitionOpts && transitionOpts.duration > 0);\n};\n\nexports.getMaxDepth = function(trace) {\n return trace.maxdepth >= 0 ? trace.maxdepth : Infinity;\n};\n\nexports.isHeader = function(pt, trace) { // it is only used in treemap.\n return !(exports.isLeaf(pt) || pt.depth === trace._maxDepth - 1);\n};\n\nfunction getParentId(pt) {\n return pt.data.data.pid;\n}\n\nexports.getParent = function(hierarchy, pt) {\n return exports.findEntryWithLevel(hierarchy, getParentId(pt));\n};\n\nexports.listPath = function(d, keyStr) {\n var parent = d.parent;\n if(!parent) return [];\n var list = keyStr ? [parent.data[keyStr]] : [parent];\n return exports.listPath(parent, keyStr).concat(list);\n};\n\nexports.getPath = function(d) {\n return exports.listPath(d, 'label').join('/') + '/';\n};\n\nexports.formatValue = pieHelpers.formatPieValue;\n\n// TODO: should combine the two in a separate PR - Also please note Lib.formatPercent should support separators.\nexports.formatPercent = function(v, separators) {\n var tx = Lib.formatPercent(v, 0); // use funnel(area) version\n if(tx === '0%') tx = pieHelpers.formatPiePercent(v, separators); // use pie version\n return tx;\n};\n\n},{\"../../components/color\":366,\"../../lib\":503,\"../../lib/setcursor\":524,\"../pie/helpers\":904}],1051:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'trace',\n name: 'sunburst',\n basePlotModule: _dereq_('./base_plot'),\n categories: [],\n animatable: true,\n\n attributes: _dereq_('./attributes'),\n layoutAttributes: _dereq_('./layout_attributes'),\n supplyDefaults: _dereq_('./defaults'),\n supplyLayoutDefaults: _dereq_('./layout_defaults'),\n\n calc: _dereq_('./calc').calc,\n crossTraceCalc: _dereq_('./calc').crossTraceCalc,\n\n plot: _dereq_('./plot').plot,\n style: _dereq_('./style').style,\n\n colorbar: _dereq_('../scatter/marker_colorbar'),\n\n meta: {\n }\n};\n\n},{\"../scatter/marker_colorbar\":943,\"./attributes\":1044,\"./base_plot\":1045,\"./calc\":1046,\"./defaults\":1048,\"./layout_attributes\":1052,\"./layout_defaults\":1053,\"./plot\":1054,\"./style\":1055}],1052:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n sunburstcolorway: {\n valType: 'colorlist',\n editType: 'calc',\n },\n extendsunburstcolors: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n }\n};\n\n},{}],1053:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar layoutAttributes = _dereq_('./layout_attributes');\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(layoutIn, layoutOut, layoutAttributes, attr, dflt);\n }\n coerce('sunburstcolorway', layoutOut.colorway);\n coerce('extendsunburstcolors');\n};\n\n},{\"../../lib\":503,\"./layout_attributes\":1052}],1054:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar d3Hierarchy = _dereq_('d3-hierarchy');\nvar interpolate = _dereq_('d3-interpolate').interpolate;\n\nvar Drawing = _dereq_('../../components/drawing');\nvar Lib = _dereq_('../../lib');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\nvar uniformText = _dereq_('../bar/uniform_text');\nvar recordMinTextSize = uniformText.recordMinTextSize;\nvar clearMinTextSize = uniformText.clearMinTextSize;\nvar piePlot = _dereq_('../pie/plot');\nvar getRotationAngle = _dereq_('../pie/helpers').getRotationAngle;\nvar computeTransform = piePlot.computeTransform;\nvar transformInsideText = piePlot.transformInsideText;\nvar styleOne = _dereq_('./style').styleOne;\nvar resizeText = _dereq_('../bar/style').resizeText;\nvar attachFxHandlers = _dereq_('./fx');\nvar constants = _dereq_('./constants');\nvar helpers = _dereq_('./helpers');\n\nexports.plot = function(gd, cdmodule, transitionOpts, makeOnCompleteCallback) {\n var fullLayout = gd._fullLayout;\n var layer = fullLayout._sunburstlayer;\n var join, onComplete;\n\n // If transition config is provided, then it is only a partial replot and traces not\n // updated are removed.\n var isFullReplot = !transitionOpts;\n var hasTransition = !fullLayout.uniformtext.mode && helpers.hasTransition(transitionOpts);\n\n clearMinTextSize('sunburst', fullLayout);\n\n join = layer.selectAll('g.trace.sunburst')\n .data(cdmodule, function(cd) { return cd[0].trace.uid; });\n\n // using same 'stroke-linejoin' as pie traces\n join.enter().append('g')\n .classed('trace', true)\n .classed('sunburst', true)\n .attr('stroke-linejoin', 'round');\n\n join.order();\n\n if(hasTransition) {\n if(makeOnCompleteCallback) {\n // If it was passed a callback to register completion, make a callback. If\n // this is created, then it must be executed on completion, otherwise the\n // pos-transition redraw will not execute:\n onComplete = makeOnCompleteCallback();\n }\n\n var transition = d3.transition()\n .duration(transitionOpts.duration)\n .ease(transitionOpts.easing)\n .each('end', function() { onComplete && onComplete(); })\n .each('interrupt', function() { onComplete && onComplete(); });\n\n transition.each(function() {\n // Must run the selection again since otherwise enters/updates get grouped together\n // and these get executed out of order. Except we need them in order!\n layer.selectAll('g.trace').each(function(cd) {\n plotOne(gd, cd, this, transitionOpts);\n });\n });\n } else {\n join.each(function(cd) {\n plotOne(gd, cd, this, transitionOpts);\n });\n\n if(fullLayout.uniformtext.mode) {\n resizeText(gd, fullLayout._sunburstlayer.selectAll('.trace'), 'sunburst');\n }\n }\n\n if(isFullReplot) {\n join.exit().remove();\n }\n};\n\nfunction plotOne(gd, cd, element, transitionOpts) {\n var fullLayout = gd._fullLayout;\n var hasTransition = !fullLayout.uniformtext.mode && helpers.hasTransition(transitionOpts);\n\n var gTrace = d3.select(element);\n var slices = gTrace.selectAll('g.slice');\n\n var cd0 = cd[0];\n var trace = cd0.trace;\n var hierarchy = cd0.hierarchy;\n var entry = helpers.findEntryWithLevel(hierarchy, trace.level);\n var maxDepth = helpers.getMaxDepth(trace);\n\n var gs = fullLayout._size;\n var domain = trace.domain;\n var vpw = gs.w * (domain.x[1] - domain.x[0]);\n var vph = gs.h * (domain.y[1] - domain.y[0]);\n var rMax = 0.5 * Math.min(vpw, vph);\n var cx = cd0.cx = gs.l + gs.w * (domain.x[1] + domain.x[0]) / 2;\n var cy = cd0.cy = gs.t + gs.h * (1 - domain.y[0]) - vph / 2;\n\n if(!entry) {\n return slices.remove();\n }\n\n // previous root 'pt' (can be empty)\n var prevEntry = null;\n // stash of 'previous' position data used by tweening functions\n var prevLookup = {};\n\n if(hasTransition) {\n // Important: do this before binding new sliceData!\n slices.each(function(pt) {\n prevLookup[helpers.getPtId(pt)] = {\n rpx0: pt.rpx0,\n rpx1: pt.rpx1,\n x0: pt.x0,\n x1: pt.x1,\n transform: pt.transform\n };\n\n if(!prevEntry && helpers.isEntry(pt)) {\n prevEntry = pt;\n }\n });\n }\n\n // N.B. slice data isn't the calcdata,\n // grab corresponding calcdata item in sliceData[i].data.data\n var sliceData = partition(entry).descendants();\n\n var maxHeight = entry.height + 1;\n var yOffset = 0;\n var cutoff = maxDepth;\n // N.B. handle multiple-root special case\n if(cd0.hasMultipleRoots && helpers.isHierarchyRoot(entry)) {\n sliceData = sliceData.slice(1);\n maxHeight -= 1;\n yOffset = 1;\n cutoff += 1;\n }\n\n // filter out slices that won't show up on graph\n sliceData = sliceData.filter(function(pt) { return pt.y1 <= cutoff; });\n\n var baseX = getRotationAngle(trace.rotation);\n if(baseX) {\n sliceData.forEach(function(pt) {\n pt.x0 += baseX;\n pt.x1 += baseX;\n });\n }\n\n // partition span ('y') to sector radial px value\n var maxY = Math.min(maxHeight, maxDepth);\n var y2rpx = function(y) { return (y - yOffset) / maxY * rMax; };\n // (radial px value, partition angle ('x')) to px [x,y]\n var rx2px = function(r, x) { return [r * Math.cos(x), -r * Math.sin(x)]; };\n // slice path generation fn\n var pathSlice = function(d) { return Lib.pathAnnulus(d.rpx0, d.rpx1, d.x0, d.x1, cx, cy); };\n // slice text translate x/y\n\n var getTargetX = function(d) { return cx + getTextXY(d)[0] * (d.transform.rCenter || 0) + (d.transform.x || 0); };\n var getTargetY = function(d) { return cy + getTextXY(d)[1] * (d.transform.rCenter || 0) + (d.transform.y || 0); };\n\n slices = slices.data(sliceData, helpers.getPtId);\n\n slices.enter().append('g')\n .classed('slice', true);\n\n if(hasTransition) {\n slices.exit().transition()\n .each(function() {\n var sliceTop = d3.select(this);\n\n var slicePath = sliceTop.select('path.surface');\n slicePath.transition().attrTween('d', function(pt2) {\n var interp = makeExitSliceInterpolator(pt2);\n return function(t) { return pathSlice(interp(t)); };\n });\n\n var sliceTextGroup = sliceTop.select('g.slicetext');\n sliceTextGroup.attr('opacity', 0);\n })\n .remove();\n } else {\n slices.exit().remove();\n }\n\n slices.order();\n\n // next x1 (i.e. sector end angle) of previous entry\n var nextX1ofPrevEntry = null;\n if(hasTransition && prevEntry) {\n var prevEntryId = helpers.getPtId(prevEntry);\n slices.each(function(pt) {\n if(nextX1ofPrevEntry === null && (helpers.getPtId(pt) === prevEntryId)) {\n nextX1ofPrevEntry = pt.x1;\n }\n });\n }\n\n var updateSlices = slices;\n if(hasTransition) {\n updateSlices = updateSlices.transition().each('end', function() {\n // N.B. gd._transitioning is (still) *true* by the time\n // transition updates get here\n var sliceTop = d3.select(this);\n helpers.setSliceCursor(sliceTop, gd, {\n hideOnRoot: true,\n hideOnLeaves: true,\n isTransitioning: false\n });\n });\n }\n\n updateSlices.each(function(pt) {\n var sliceTop = d3.select(this);\n\n var slicePath = Lib.ensureSingle(sliceTop, 'path', 'surface', function(s) {\n s.style('pointer-events', 'all');\n });\n\n pt.rpx0 = y2rpx(pt.y0);\n pt.rpx1 = y2rpx(pt.y1);\n pt.xmid = (pt.x0 + pt.x1) / 2;\n pt.pxmid = rx2px(pt.rpx1, pt.xmid);\n pt.midangle = -(pt.xmid - Math.PI / 2);\n pt.startangle = -(pt.x0 - Math.PI / 2);\n pt.stopangle = -(pt.x1 - Math.PI / 2);\n pt.halfangle = 0.5 * Math.min(Lib.angleDelta(pt.x0, pt.x1) || Math.PI, Math.PI);\n pt.ring = 1 - (pt.rpx0 / pt.rpx1);\n pt.rInscribed = getInscribedRadiusFraction(pt, trace);\n\n if(hasTransition) {\n slicePath.transition().attrTween('d', function(pt2) {\n var interp = makeUpdateSliceInterpolator(pt2);\n return function(t) { return pathSlice(interp(t)); };\n });\n } else {\n slicePath.attr('d', pathSlice);\n }\n\n sliceTop\n .call(attachFxHandlers, entry, gd, cd, {\n eventDataKeys: constants.eventDataKeys,\n transitionTime: constants.CLICK_TRANSITION_TIME,\n transitionEasing: constants.CLICK_TRANSITION_EASING\n })\n .call(helpers.setSliceCursor, gd, {\n hideOnRoot: true,\n hideOnLeaves: true,\n isTransitioning: gd._transitioning\n });\n\n slicePath.call(styleOne, pt, trace);\n\n var sliceTextGroup = Lib.ensureSingle(sliceTop, 'g', 'slicetext');\n var sliceText = Lib.ensureSingle(sliceTextGroup, 'text', '', function(s) {\n // prohibit tex interpretation until we can handle\n // tex and regular text together\n s.attr('data-notex', 1);\n });\n\n var font = Lib.ensureUniformFontSize(gd, helpers.determineTextFont(trace, pt, fullLayout.font));\n\n sliceText.text(exports.formatSliceLabel(pt, entry, trace, cd, fullLayout))\n .classed('slicetext', true)\n .attr('text-anchor', 'middle')\n .call(Drawing.font, font)\n .call(svgTextUtils.convertToTspans, gd);\n\n // position the text relative to the slice\n var textBB = Drawing.bBox(sliceText.node());\n pt.transform = transformInsideText(textBB, pt, cd0);\n pt.transform.targetX = getTargetX(pt);\n pt.transform.targetY = getTargetY(pt);\n\n var strTransform = function(d, textBB) {\n var transform = d.transform;\n computeTransform(transform, textBB);\n\n transform.fontSize = font.size;\n recordMinTextSize(trace.type, transform, fullLayout);\n\n return Lib.getTextTransform(transform);\n };\n\n if(hasTransition) {\n sliceText.transition().attrTween('transform', function(pt2) {\n var interp = makeUpdateTextInterpolator(pt2);\n return function(t) { return strTransform(interp(t), textBB); };\n });\n } else {\n sliceText.attr('transform', strTransform(pt, textBB));\n }\n });\n\n function makeExitSliceInterpolator(pt) {\n var id = helpers.getPtId(pt);\n var prev = prevLookup[id];\n var entryPrev = prevLookup[helpers.getPtId(entry)];\n var next;\n\n if(entryPrev) {\n var a = (pt.x1 > entryPrev.x1 ? 2 * Math.PI : 0) + baseX;\n // if pt to remove:\n // - if 'below' where the root-node used to be: shrink it radially inward\n // - otherwise, collapse it clockwise or counterclockwise which ever is shortest to theta=0\n next = pt.rpx1 < entryPrev.rpx1 ?\n {x0: pt.x0, x1: pt.x1, rpx0: 0, rpx1: 0} :\n {x0: a, x1: a, rpx0: pt.rpx0, rpx1: pt.rpx1};\n } else {\n // this happens when maxdepth is set, when leaves must\n // be removed and the rootPt is new (i.e. does not have a 'prev' object)\n var parent;\n var parentId = helpers.getPtId(pt.parent);\n slices.each(function(pt2) {\n if(helpers.getPtId(pt2) === parentId) {\n return parent = pt2;\n }\n });\n var parentChildren = parent.children;\n var ci;\n parentChildren.forEach(function(pt2, i) {\n if(helpers.getPtId(pt2) === id) {\n return ci = i;\n }\n });\n var n = parentChildren.length;\n var interp = interpolate(parent.x0, parent.x1);\n next = {\n rpx0: rMax, rpx1: rMax,\n x0: interp(ci / n), x1: interp((ci + 1) / n)\n };\n }\n\n return interpolate(prev, next);\n }\n\n function makeUpdateSliceInterpolator(pt) {\n var prev0 = prevLookup[helpers.getPtId(pt)];\n var prev;\n var next = {x0: pt.x0, x1: pt.x1, rpx0: pt.rpx0, rpx1: pt.rpx1};\n\n if(prev0) {\n // if pt already on graph, this is easy\n prev = prev0;\n } else {\n // for new pts:\n if(prevEntry) {\n // if trace was visible before\n if(pt.parent) {\n if(nextX1ofPrevEntry) {\n // if new branch, twist it in clockwise or\n // counterclockwise which ever is shorter to\n // its final angle\n var a = (pt.x1 > nextX1ofPrevEntry ? 2 * Math.PI : 0) + baseX;\n prev = {x0: a, x1: a};\n } else {\n // if new leaf (when maxdepth is set),\n // grow it radially and angularly from\n // its parent node\n prev = {rpx0: rMax, rpx1: rMax};\n Lib.extendFlat(prev, interpX0X1FromParent(pt));\n }\n } else {\n // if new root-node, grow it radially\n prev = {rpx0: 0, rpx1: 0};\n }\n } else {\n // start sector of new traces from theta=0\n prev = {x0: baseX, x1: baseX};\n }\n }\n\n return interpolate(prev, next);\n }\n\n function makeUpdateTextInterpolator(pt) {\n var prev0 = prevLookup[helpers.getPtId(pt)];\n var prev;\n var transform = pt.transform;\n\n if(prev0) {\n prev = prev0;\n } else {\n prev = {\n rpx1: pt.rpx1,\n transform: {\n textPosAngle: transform.textPosAngle,\n scale: 0,\n rotate: transform.rotate,\n rCenter: transform.rCenter,\n x: transform.x,\n y: transform.y\n }\n };\n\n // for new pts:\n if(prevEntry) {\n // if trace was visible before\n if(pt.parent) {\n if(nextX1ofPrevEntry) {\n // if new branch, twist it in clockwise or\n // counterclockwise which ever is shorter to\n // its final angle\n var a = pt.x1 > nextX1ofPrevEntry ? 2 * Math.PI : 0;\n prev.x0 = prev.x1 = a;\n } else {\n // if leaf\n Lib.extendFlat(prev, interpX0X1FromParent(pt));\n }\n } else {\n // if new root-node\n prev.x0 = prev.x1 = baseX;\n }\n } else {\n // on new traces\n prev.x0 = prev.x1 = baseX;\n }\n }\n\n var textPosAngleFn = interpolate(prev.transform.textPosAngle, pt.transform.textPosAngle);\n var rpx1Fn = interpolate(prev.rpx1, pt.rpx1);\n var x0Fn = interpolate(prev.x0, pt.x0);\n var x1Fn = interpolate(prev.x1, pt.x1);\n var scaleFn = interpolate(prev.transform.scale, transform.scale);\n var rotateFn = interpolate(prev.transform.rotate, transform.rotate);\n\n // smooth out start/end from entry, to try to keep text inside sector\n // while keeping transition smooth\n var pow = transform.rCenter === 0 ? 3 :\n prev.transform.rCenter === 0 ? 1 / 3 :\n 1;\n var _rCenterFn = interpolate(prev.transform.rCenter, transform.rCenter);\n var rCenterFn = function(t) { return _rCenterFn(Math.pow(t, pow)); };\n\n return function(t) {\n var rpx1 = rpx1Fn(t);\n var x0 = x0Fn(t);\n var x1 = x1Fn(t);\n var rCenter = rCenterFn(t);\n var pxmid = rx2px(rpx1, (x0 + x1) / 2);\n var textPosAngle = textPosAngleFn(t);\n\n var d = {\n pxmid: pxmid,\n rpx1: rpx1,\n transform: {\n textPosAngle: textPosAngle,\n rCenter: rCenter,\n x: transform.x,\n y: transform.y\n }\n };\n\n recordMinTextSize(trace.type, transform, fullLayout);\n return {\n transform: {\n targetX: getTargetX(d),\n targetY: getTargetY(d),\n scale: scaleFn(t),\n rotate: rotateFn(t),\n rCenter: rCenter\n }\n };\n };\n }\n\n function interpX0X1FromParent(pt) {\n var parent = pt.parent;\n var parentPrev = prevLookup[helpers.getPtId(parent)];\n var out = {};\n\n if(parentPrev) {\n // if parent is visible\n var parentChildren = parent.children;\n var ci = parentChildren.indexOf(pt);\n var n = parentChildren.length;\n var interp = interpolate(parentPrev.x0, parentPrev.x1);\n out.x0 = interp(ci / n);\n out.x1 = interp(ci / n);\n } else {\n // w/o visible parent\n // TODO !!! HOW ???\n out.x0 = out.x1 = 0;\n }\n\n return out;\n }\n}\n\n// x[0-1] keys are angles [radians]\n// y[0-1] keys are hierarchy heights [integers]\nfunction partition(entry) {\n return d3Hierarchy.partition()\n .size([2 * Math.PI, entry.height + 1])(entry);\n}\n\nexports.formatSliceLabel = function(pt, entry, trace, cd, fullLayout) {\n var texttemplate = trace.texttemplate;\n var textinfo = trace.textinfo;\n\n if(!texttemplate && (!textinfo || textinfo === 'none')) {\n return '';\n }\n\n var separators = fullLayout.separators;\n var cd0 = cd[0];\n var cdi = pt.data.data;\n var hierarchy = cd0.hierarchy;\n var isRoot = helpers.isHierarchyRoot(pt);\n var parent = helpers.getParent(hierarchy, pt);\n var val = helpers.getValue(pt);\n\n if(!texttemplate) {\n var parts = textinfo.split('+');\n var hasFlag = function(flag) { return parts.indexOf(flag) !== -1; };\n var thisText = [];\n var tx;\n\n if(hasFlag('label') && cdi.label) {\n thisText.push(cdi.label);\n }\n\n if(cdi.hasOwnProperty('v') && hasFlag('value')) {\n thisText.push(helpers.formatValue(cdi.v, separators));\n }\n\n if(!isRoot) {\n if(hasFlag('current path')) {\n thisText.push(helpers.getPath(pt.data));\n }\n\n var nPercent = 0;\n if(hasFlag('percent parent')) nPercent++;\n if(hasFlag('percent entry')) nPercent++;\n if(hasFlag('percent root')) nPercent++;\n var hasMultiplePercents = nPercent > 1;\n\n if(nPercent) {\n var percent;\n var addPercent = function(key) {\n tx = helpers.formatPercent(percent, separators);\n\n if(hasMultiplePercents) tx += ' of ' + key;\n thisText.push(tx);\n };\n\n if(hasFlag('percent parent') && !isRoot) {\n percent = val / helpers.getValue(parent);\n addPercent('parent');\n }\n if(hasFlag('percent entry')) {\n percent = val / helpers.getValue(entry);\n addPercent('entry');\n }\n if(hasFlag('percent root')) {\n percent = val / helpers.getValue(hierarchy);\n addPercent('root');\n }\n }\n }\n\n if(hasFlag('text')) {\n tx = Lib.castOption(trace, cdi.i, 'text');\n if(Lib.isValidTextValue(tx)) thisText.push(tx);\n }\n\n return thisText.join('
');\n }\n\n var txt = Lib.castOption(trace, cdi.i, 'texttemplate');\n if(!txt) return '';\n var obj = {};\n if(cdi.label) obj.label = cdi.label;\n if(cdi.hasOwnProperty('v')) {\n obj.value = cdi.v;\n obj.valueLabel = helpers.formatValue(cdi.v, separators);\n }\n\n obj.currentPath = helpers.getPath(pt.data);\n\n if(!isRoot) {\n obj.percentParent = val / helpers.getValue(parent);\n obj.percentParentLabel = helpers.formatPercent(\n obj.percentParent, separators\n );\n obj.parent = helpers.getPtLabel(parent);\n }\n\n obj.percentEntry = val / helpers.getValue(entry);\n obj.percentEntryLabel = helpers.formatPercent(\n obj.percentEntry, separators\n );\n obj.entry = helpers.getPtLabel(entry);\n\n obj.percentRoot = val / helpers.getValue(hierarchy);\n obj.percentRootLabel = helpers.formatPercent(\n obj.percentRoot, separators\n );\n obj.root = helpers.getPtLabel(hierarchy);\n\n if(cdi.hasOwnProperty('color')) {\n obj.color = cdi.color;\n }\n var ptTx = Lib.castOption(trace, cdi.i, 'text');\n if(Lib.isValidTextValue(ptTx) || ptTx === '') obj.text = ptTx;\n obj.customdata = Lib.castOption(trace, cdi.i, 'customdata');\n return Lib.texttemplateString(txt, obj, fullLayout._d3locale, obj, trace._meta || {});\n};\n\nfunction getInscribedRadiusFraction(pt) {\n if(pt.rpx0 === 0 && Lib.isFullCircle([pt.x0, pt.x1])) {\n // special case of 100% with no hole\n return 1;\n } else {\n return Math.max(0, Math.min(\n 1 / (1 + 1 / Math.sin(pt.halfangle)),\n pt.ring / 2\n ));\n }\n}\n\nfunction getTextXY(d) {\n return getCoords(d.rpx1, d.transform.textPosAngle);\n}\n\nfunction getCoords(r, angle) {\n return [r * Math.sin(angle), -r * Math.cos(angle)];\n}\n\n},{\"../../components/drawing\":388,\"../../lib\":503,\"../../lib/svg_text_utils\":529,\"../bar/style\":662,\"../bar/uniform_text\":664,\"../pie/helpers\":904,\"../pie/plot\":908,\"./constants\":1047,\"./fx\":1049,\"./helpers\":1050,\"./style\":1055,\"@plotly/d3\":58,\"d3-hierarchy\":115,\"d3-interpolate\":116}],1055:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Color = _dereq_('../../components/color');\nvar Lib = _dereq_('../../lib');\nvar resizeText = _dereq_('../bar/uniform_text').resizeText;\n\nfunction style(gd) {\n var s = gd._fullLayout._sunburstlayer.selectAll('.trace');\n resizeText(gd, s, 'sunburst');\n\n s.each(function(cd) {\n var gTrace = d3.select(this);\n var cd0 = cd[0];\n var trace = cd0.trace;\n\n gTrace.style('opacity', trace.opacity);\n\n gTrace.selectAll('path.surface').each(function(pt) {\n d3.select(this).call(styleOne, pt, trace);\n });\n });\n}\n\nfunction styleOne(s, pt, trace) {\n var cdi = pt.data.data;\n var isLeaf = !pt.children;\n var ptNumber = cdi.i;\n var lineColor = Lib.castOption(trace, ptNumber, 'marker.line.color') || Color.defaultLine;\n var lineWidth = Lib.castOption(trace, ptNumber, 'marker.line.width') || 0;\n\n s.style('stroke-width', lineWidth)\n .call(Color.fill, cdi.color)\n .call(Color.stroke, lineColor)\n .style('opacity', isLeaf ? trace.leaf.opacity : null);\n}\n\nmodule.exports = {\n style: style,\n styleOne: styleOne\n};\n\n},{\"../../components/color\":366,\"../../lib\":503,\"../bar/uniform_text\":664,\"@plotly/d3\":58}],1056:[function(_dereq_,module,exports){\n'use strict';\n\nvar Color = _dereq_('../../components/color');\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar baseAttrs = _dereq_('../../plots/attributes');\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\n\nfunction makeContourProjAttr(axLetter) {\n return {\n valType: 'boolean',\n dflt: false,\n };\n}\n\nfunction makeContourAttr(axLetter) {\n return {\n show: {\n valType: 'boolean',\n dflt: false,\n },\n start: {\n valType: 'number',\n dflt: null,\n editType: 'plot',\n // impliedEdits: {'^autocontour': false},\n },\n end: {\n valType: 'number',\n dflt: null,\n editType: 'plot',\n // impliedEdits: {'^autocontour': false},\n },\n size: {\n valType: 'number',\n dflt: null,\n min: 0,\n editType: 'plot',\n // impliedEdits: {'^autocontour': false},\n },\n project: {\n x: makeContourProjAttr('x'),\n y: makeContourProjAttr('y'),\n z: makeContourProjAttr('z')\n },\n color: {\n valType: 'color',\n dflt: Color.defaultLine,\n },\n usecolormap: {\n valType: 'boolean',\n dflt: false,\n },\n width: {\n valType: 'number',\n min: 1,\n max: 16,\n dflt: 2,\n },\n highlight: {\n valType: 'boolean',\n dflt: true,\n },\n highlightcolor: {\n valType: 'color',\n dflt: Color.defaultLine,\n },\n highlightwidth: {\n valType: 'number',\n min: 1,\n max: 16,\n dflt: 2,\n }\n };\n}\n\nvar attrs = module.exports = overrideAll(extendFlat({\n z: {\n valType: 'data_array',\n },\n x: {\n valType: 'data_array',\n },\n y: {\n valType: 'data_array',\n },\n\n text: {\n valType: 'string',\n dflt: '',\n arrayOk: true,\n },\n hovertext: {\n valType: 'string',\n dflt: '',\n arrayOk: true,\n },\n hovertemplate: hovertemplateAttrs(),\n\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n zhoverformat: axisHoverFormat('z'),\n\n connectgaps: {\n valType: 'boolean',\n dflt: false,\n editType: 'calc',\n },\n\n surfacecolor: {\n valType: 'data_array',\n },\n},\n\ncolorScaleAttrs('', {\n colorAttr: 'z or surfacecolor',\n showScaleDflt: true,\n autoColorDflt: false,\n editTypeOverride: 'calc'\n}), {\n contours: {\n x: makeContourAttr('x'),\n y: makeContourAttr('y'),\n z: makeContourAttr('z')\n },\n hidesurface: {\n valType: 'boolean',\n dflt: false,\n },\n\n lightposition: {\n x: {\n valType: 'number',\n min: -1e5,\n max: 1e5,\n dflt: 10,\n },\n y: {\n valType: 'number',\n min: -1e5,\n max: 1e5,\n dflt: 1e4,\n },\n z: {\n valType: 'number',\n min: -1e5,\n max: 1e5,\n dflt: 0,\n }\n },\n\n lighting: {\n ambient: {\n valType: 'number',\n min: 0.00,\n max: 1.0,\n dflt: 0.8,\n },\n diffuse: {\n valType: 'number',\n min: 0.00,\n max: 1.00,\n dflt: 0.8,\n },\n specular: {\n valType: 'number',\n min: 0.00,\n max: 2.00,\n dflt: 0.05,\n },\n roughness: {\n valType: 'number',\n min: 0.00,\n max: 1.00,\n dflt: 0.5,\n },\n fresnel: {\n valType: 'number',\n min: 0.00,\n max: 5.00,\n dflt: 0.2,\n }\n },\n\n opacity: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 1,\n },\n\n opacityscale: {\n valType: 'any',\n editType: 'calc',\n },\n\n _deprecated: {\n zauto: extendFlat({}, colorScaleAttrs.zauto, {\n }),\n zmin: extendFlat({}, colorScaleAttrs.zmin, {\n }),\n zmax: extendFlat({}, colorScaleAttrs.zmax, {\n })\n },\n\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo),\n showlegend: extendFlat({}, baseAttrs.showlegend, {dflt: false}),\n}), 'calc', 'nested');\n\nattrs.x.editType = attrs.y.editType = attrs.z.editType = 'calc+clearAxisTypes';\nattrs.transforms = undefined;\n\n},{\"../../components/color\":366,\"../../components/colorscale/attributes\":373,\"../../lib/extend\":493,\"../../plot_api/edit_types\":536,\"../../plots/attributes\":550,\"../../plots/cartesian/axis_format_attributes\":557,\"../../plots/template_attributes\":633}],1057:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorscaleCalc = _dereq_('../../components/colorscale/calc');\n\n\n// Compute auto-z and autocolorscale if applicable\nmodule.exports = function calc(gd, trace) {\n if(trace.surfacecolor) {\n colorscaleCalc(gd, trace, {\n vals: trace.surfacecolor,\n containerStr: '',\n cLetter: 'c'\n });\n } else {\n colorscaleCalc(gd, trace, {\n vals: trace.z,\n containerStr: '',\n cLetter: 'c'\n });\n }\n};\n\n},{\"../../components/colorscale/calc\":374}],1058:[function(_dereq_,module,exports){\n'use strict';\n\nvar createSurface = _dereq_('../../../stackgl_modules').gl_surface3d;\n\nvar ndarray = _dereq_('../../../stackgl_modules').ndarray;\nvar ndarrayInterp2d = _dereq_('../../../stackgl_modules').ndarray_linear_interpolate.d2;\n\nvar interp2d = _dereq_('../heatmap/interp2d');\nvar findEmpties = _dereq_('../heatmap/find_empties');\n\nvar isArrayOrTypedArray = _dereq_('../../lib').isArrayOrTypedArray;\nvar parseColorScale = _dereq_('../../lib/gl_format_color').parseColorScale;\nvar str2RgbaArray = _dereq_('../../lib/str2rgbarray');\nvar extractOpts = _dereq_('../../components/colorscale').extractOpts;\n\nfunction SurfaceTrace(scene, surface, uid) {\n this.scene = scene;\n this.uid = uid;\n this.surface = surface;\n this.data = null;\n this.showContour = [false, false, false];\n this.contourStart = [null, null, null];\n this.contourEnd = [null, null, null];\n this.contourSize = [0, 0, 0];\n this.minValues = [Infinity, Infinity, Infinity];\n this.maxValues = [-Infinity, -Infinity, -Infinity];\n this.dataScaleX = 1.0;\n this.dataScaleY = 1.0;\n this.refineData = true;\n this.objectOffset = [0, 0, 0];\n}\n\nvar proto = SurfaceTrace.prototype;\n\nproto.getXat = function(a, b, calendar, axis) {\n var v = (\n (!isArrayOrTypedArray(this.data.x)) ?\n a :\n (isArrayOrTypedArray(this.data.x[0])) ?\n this.data.x[b][a] :\n this.data.x[a]\n );\n\n return (calendar === undefined) ? v : axis.d2l(v, 0, calendar);\n};\n\nproto.getYat = function(a, b, calendar, axis) {\n var v = (\n (!isArrayOrTypedArray(this.data.y)) ?\n b :\n (isArrayOrTypedArray(this.data.y[0])) ?\n this.data.y[b][a] :\n this.data.y[b]\n );\n\n return (calendar === undefined) ? v : axis.d2l(v, 0, calendar);\n};\n\nproto.getZat = function(a, b, calendar, axis) {\n var v = this.data.z[b][a];\n\n if(v === null && this.data.connectgaps && this.data._interpolatedZ) {\n v = this.data._interpolatedZ[b][a];\n }\n\n return (calendar === undefined) ? v : axis.d2l(v, 0, calendar);\n};\n\nproto.handlePick = function(selection) {\n if(selection.object === this.surface) {\n var xRatio = (selection.data.index[0] - 1) / this.dataScaleX - 1;\n var yRatio = (selection.data.index[1] - 1) / this.dataScaleY - 1;\n\n var j = Math.max(Math.min(Math.round(xRatio), this.data.z[0].length - 1), 0);\n var k = Math.max(Math.min(Math.round(yRatio), this.data._ylength - 1), 0);\n\n selection.index = [j, k];\n\n selection.traceCoordinate = [\n this.getXat(j, k),\n this.getYat(j, k),\n this.getZat(j, k)\n ];\n\n selection.dataCoordinate = [\n this.getXat(j, k, this.data.xcalendar, this.scene.fullSceneLayout.xaxis),\n this.getYat(j, k, this.data.ycalendar, this.scene.fullSceneLayout.yaxis),\n this.getZat(j, k, this.data.zcalendar, this.scene.fullSceneLayout.zaxis)\n ];\n\n for(var i = 0; i < 3; i++) {\n var v = selection.dataCoordinate[i];\n if(v !== null && v !== undefined) {\n selection.dataCoordinate[i] *= this.scene.dataScale[i];\n }\n }\n\n var text = this.data.hovertext || this.data.text;\n if(Array.isArray(text) && text[k] && text[k][j] !== undefined) {\n selection.textLabel = text[k][j];\n } else if(text) {\n selection.textLabel = text;\n } else {\n selection.textLabel = '';\n }\n\n selection.data.dataCoordinate = selection.dataCoordinate.slice();\n\n this.surface.highlight(selection.data);\n\n // Snap spikes to data coordinate\n this.scene.glplot.spikes.position = selection.dataCoordinate;\n\n return true;\n }\n};\n\nfunction isColormapCircular(colormap) {\n var first = colormap[0].rgb;\n var last = colormap[colormap.length - 1].rgb;\n\n return (\n first[0] === last[0] &&\n first[1] === last[1] &&\n first[2] === last[2] &&\n first[3] === last[3]\n );\n}\n\nvar shortPrimes = [\n 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97,\n 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199,\n 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293,\n 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397,\n 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499,\n 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599,\n 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691,\n 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797,\n 809, 811, 821, 823, 827, 829, 839, 853, 857, 859, 863, 877, 881, 883, 887,\n 907, 911, 919, 929, 937, 941, 947, 953, 967, 971, 977, 983, 991, 997,\n 1009, 1013, 1019, 1021, 1031, 1033, 1039, 1049, 1051, 1061, 1063, 1069, 1087, 1091, 1093, 1097,\n 1103, 1109, 1117, 1123, 1129, 1151, 1153, 1163, 1171, 1181, 1187, 1193,\n 1201, 1213, 1217, 1223, 1229, 1231, 1237, 1249, 1259, 1277, 1279, 1283, 1289, 1291, 1297,\n 1301, 1303, 1307, 1319, 1321, 1327, 1361, 1367, 1373, 1381, 1399,\n 1409, 1423, 1427, 1429, 1433, 1439, 1447, 1451, 1453, 1459, 1471, 1481, 1483, 1487, 1489, 1493, 1499,\n 1511, 1523, 1531, 1543, 1549, 1553, 1559, 1567, 1571, 1579, 1583, 1597,\n 1601, 1607, 1609, 1613, 1619, 1621, 1627, 1637, 1657, 1663, 1667, 1669, 1693, 1697, 1699,\n 1709, 1721, 1723, 1733, 1741, 1747, 1753, 1759, 1777, 1783, 1787, 1789,\n 1801, 1811, 1823, 1831, 1847, 1861, 1867, 1871, 1873, 1877, 1879, 1889,\n 1901, 1907, 1913, 1931, 1933, 1949, 1951, 1973, 1979, 1987, 1993, 1997, 1999,\n 2003, 2011, 2017, 2027, 2029, 2039, 2053, 2063, 2069, 2081, 2083, 2087, 2089, 2099,\n 2111, 2113, 2129, 2131, 2137, 2141, 2143, 2153, 2161, 2179,\n 2203, 2207, 2213, 2221, 2237, 2239, 2243, 2251, 2267, 2269, 2273, 2281, 2287, 2293, 2297,\n 2309, 2311, 2333, 2339, 2341, 2347, 2351, 2357, 2371, 2377, 2381, 2383, 2389, 2393, 2399,\n 2411, 2417, 2423, 2437, 2441, 2447, 2459, 2467, 2473, 2477,\n 2503, 2521, 2531, 2539, 2543, 2549, 2551, 2557, 2579, 2591, 2593,\n 2609, 2617, 2621, 2633, 2647, 2657, 2659, 2663, 2671, 2677, 2683, 2687, 2689, 2693, 2699,\n 2707, 2711, 2713, 2719, 2729, 2731, 2741, 2749, 2753, 2767, 2777, 2789, 2791, 2797,\n 2801, 2803, 2819, 2833, 2837, 2843, 2851, 2857, 2861, 2879, 2887, 2897,\n 2903, 2909, 2917, 2927, 2939, 2953, 2957, 2963, 2969, 2971, 2999\n];\n\nfunction getPow(a, b) {\n if(a < b) return 0;\n var n = 0;\n while(Math.floor(a % b) === 0) {\n a /= b;\n n++;\n }\n return n;\n}\n\nfunction getFactors(a) {\n var powers = [];\n for(var i = 0; i < shortPrimes.length; i++) {\n var b = shortPrimes[i];\n powers.push(\n getPow(a, b)\n );\n }\n return powers;\n}\n\nfunction smallestDivisor(a) {\n var A = getFactors(a);\n var result = a;\n for(var i = 0; i < shortPrimes.length; i++) {\n if(A[i] > 0) {\n result = shortPrimes[i];\n break;\n }\n }\n return result;\n}\n\nfunction leastCommonMultiple(a, b) {\n if(a < 1 || b < 1) return undefined;\n var A = getFactors(a);\n var B = getFactors(b);\n var n = 1;\n for(var i = 0; i < shortPrimes.length; i++) {\n n *= Math.pow(\n shortPrimes[i], Math.max(A[i], B[i])\n );\n }\n return n;\n}\n\nfunction arrayLCM(A) {\n if(A.length === 0) return undefined;\n var n = 1;\n for(var i = 0; i < A.length; i++) {\n n = leastCommonMultiple(n, A[i]);\n }\n return n;\n}\n\nproto.calcXnums = function(xlen) {\n var i;\n var nums = [];\n for(i = 1; i < xlen; i++) {\n var a = this.getXat(i - 1, 0);\n var b = this.getXat(i, 0);\n\n if(b !== a &&\n a !== undefined && a !== null &&\n b !== undefined && b !== null) {\n nums[i - 1] = Math.abs(b - a);\n } else {\n nums[i - 1] = 0;\n }\n }\n\n var totalDist = 0;\n for(i = 1; i < xlen; i++) {\n totalDist += nums[i - 1];\n }\n\n for(i = 1; i < xlen; i++) {\n if(nums[i - 1] === 0) {\n nums[i - 1] = 1;\n } else {\n nums[i - 1] = Math.round(totalDist / nums[i - 1]);\n }\n }\n\n return nums;\n};\n\nproto.calcYnums = function(ylen) {\n var i;\n var nums = [];\n for(i = 1; i < ylen; i++) {\n var a = this.getYat(0, i - 1);\n var b = this.getYat(0, i);\n\n if(b !== a &&\n a !== undefined && a !== null &&\n b !== undefined && b !== null) {\n nums[i - 1] = Math.abs(b - a);\n } else {\n nums[i - 1] = 0;\n }\n }\n\n var totalDist = 0;\n for(i = 1; i < ylen; i++) {\n totalDist += nums[i - 1];\n }\n\n for(i = 1; i < ylen; i++) {\n if(nums[i - 1] === 0) {\n nums[i - 1] = 1;\n } else {\n nums[i - 1] = Math.round(totalDist / nums[i - 1]);\n }\n }\n\n return nums;\n};\n\nvar highlyComposites = [1, 2, 4, 6, 12, 24, 36, 48, 60, 120, 180, 240, 360, 720, 840, 1260];\n\nvar MIN_RESOLUTION = highlyComposites[9];\nvar MAX_RESOLUTION = highlyComposites[13];\n\nproto.estimateScale = function(resSrc, axis) {\n var nums = (axis === 0) ?\n this.calcXnums(resSrc) :\n this.calcYnums(resSrc);\n\n var resDst = 1 + arrayLCM(nums);\n\n while(resDst < MIN_RESOLUTION) {\n resDst *= 2;\n }\n\n while(resDst > MAX_RESOLUTION) {\n resDst--;\n resDst /= smallestDivisor(resDst);\n resDst++;\n\n if(resDst < MIN_RESOLUTION) {\n // resDst = MIN_RESOLUTION; // option 1: use min resolution\n resDst = MAX_RESOLUTION; // option 2: use max resolution\n }\n }\n\n var scale = Math.round(resDst / resSrc);\n return (scale > 1) ? scale : 1;\n};\n\n// based on Mikola Lysenko's ndarray-homography\n// see https://github.com/scijs/ndarray-homography\n\nfunction fnHomography(out, inp, X) {\n var w = X[8] + X[2] * inp[0] + X[5] * inp[1];\n out[0] = (X[6] + X[0] * inp[0] + X[3] * inp[1]) / w;\n out[1] = (X[7] + X[1] * inp[0] + X[4] * inp[1]) / w;\n return out;\n}\n\nfunction homography(dest, src, X) {\n warp(dest, src, fnHomography, X);\n return dest;\n}\n\n// based on Mikola Lysenko's ndarray-warp\n// see https://github.com/scijs/ndarray-warp\n\nfunction warp(dest, src, func, X) {\n var warped = [0, 0];\n var ni = dest.shape[0];\n var nj = dest.shape[1];\n for(var i = 0; i < ni; i++) {\n for(var j = 0; j < nj; j++) {\n func(warped, [i, j], X);\n dest.set(i, j, ndarrayInterp2d(src, warped[0], warped[1]));\n }\n }\n return dest;\n}\n\nproto.refineCoords = function(coords) {\n var scaleW = this.dataScaleX;\n var scaleH = this.dataScaleY;\n\n var width = coords[0].shape[0];\n var height = coords[0].shape[1];\n\n var newWidth = Math.floor(coords[0].shape[0] * scaleW + 1) | 0;\n var newHeight = Math.floor(coords[0].shape[1] * scaleH + 1) | 0;\n\n // Pad coords by +1\n var padWidth = 1 + width + 1;\n var padHeight = 1 + height + 1;\n var padImg = ndarray(new Float32Array(padWidth * padHeight), [padWidth, padHeight]);\n var X = [\n 1 / scaleW, 0, 0,\n 0, 1 / scaleH, 0,\n 0, 0, 1\n ];\n\n for(var i = 0; i < coords.length; ++i) {\n this.surface.padField(padImg, coords[i]);\n\n var scaledImg = ndarray(new Float32Array(newWidth * newHeight), [newWidth, newHeight]);\n homography(scaledImg, padImg, X);\n coords[i] = scaledImg;\n }\n};\n\nfunction insertIfNewLevel(arr, newValue) {\n var found = false;\n for(var k = 0; k < arr.length; k++) {\n if(newValue === arr[k]) {\n found = true;\n break;\n }\n }\n if(found === false) arr.push(newValue);\n}\n\nproto.setContourLevels = function() {\n var newLevels = [[], [], []];\n var useNewLevels = [false, false, false];\n var needsUpdate = false;\n\n var i, j, value;\n\n for(i = 0; i < 3; ++i) {\n if(this.showContour[i]) {\n needsUpdate = true;\n\n if(\n this.contourSize[i] > 0 &&\n this.contourStart[i] !== null &&\n this.contourEnd[i] !== null &&\n this.contourEnd[i] > this.contourStart[i]\n ) {\n useNewLevels[i] = true;\n\n for(j = this.contourStart[i]; j < this.contourEnd[i]; j += this.contourSize[i]) {\n value = j * this.scene.dataScale[i];\n\n insertIfNewLevel(newLevels[i], value);\n }\n }\n }\n }\n\n if(needsUpdate) {\n var allLevels = [[], [], []];\n for(i = 0; i < 3; ++i) {\n if(this.showContour[i]) {\n allLevels[i] = useNewLevels[i] ? newLevels[i] : this.scene.contourLevels[i];\n }\n }\n this.surface.update({ levels: allLevels });\n }\n};\n\nproto.update = function(data) {\n var scene = this.scene;\n var sceneLayout = scene.fullSceneLayout;\n var surface = this.surface;\n var colormap = parseColorScale(data);\n var scaleFactor = scene.dataScale;\n var xlen = data.z[0].length;\n var ylen = data._ylength;\n var contourLevels = scene.contourLevels;\n\n // Save data\n this.data = data;\n\n /*\n * Fill and transpose zdata.\n * Consistent with 'heatmap' and 'contour', plotly 'surface'\n * 'z' are such that sub-arrays correspond to y-coords\n * and that the sub-array entries correspond to a x-coords,\n * which is the transpose of 'gl-surface-plot'.\n */\n\n var i, j, k, v;\n var rawCoords = [];\n for(i = 0; i < 3; i++) {\n rawCoords[i] = [];\n for(j = 0; j < xlen; j++) {\n rawCoords[i][j] = [];\n /*\n for(k = 0; k < ylen; k++) {\n rawCoords[i][j][k] = undefined;\n }\n */\n }\n }\n\n // coords x, y & z\n for(j = 0; j < xlen; j++) {\n for(k = 0; k < ylen; k++) {\n rawCoords[0][j][k] = this.getXat(j, k, data.xcalendar, sceneLayout.xaxis);\n rawCoords[1][j][k] = this.getYat(j, k, data.ycalendar, sceneLayout.yaxis);\n rawCoords[2][j][k] = this.getZat(j, k, data.zcalendar, sceneLayout.zaxis);\n }\n }\n\n if(data.connectgaps) {\n data._emptypoints = findEmpties(rawCoords[2]);\n interp2d(rawCoords[2], data._emptypoints);\n\n data._interpolatedZ = [];\n for(j = 0; j < xlen; j++) {\n data._interpolatedZ[j] = [];\n for(k = 0; k < ylen; k++) {\n data._interpolatedZ[j][k] = rawCoords[2][j][k];\n }\n }\n }\n\n // Note: log axes are not defined in surfaces yet.\n // but they could be defined here...\n\n for(i = 0; i < 3; i++) {\n for(j = 0; j < xlen; j++) {\n for(k = 0; k < ylen; k++) {\n v = rawCoords[i][j][k];\n if(v === null || v === undefined) {\n rawCoords[i][j][k] = NaN;\n } else {\n v = rawCoords[i][j][k] *= scaleFactor[i];\n }\n }\n }\n }\n\n for(i = 0; i < 3; i++) {\n for(j = 0; j < xlen; j++) {\n for(k = 0; k < ylen; k++) {\n v = rawCoords[i][j][k];\n if(v !== null && v !== undefined) {\n if(this.minValues[i] > v) {\n this.minValues[i] = v;\n }\n if(this.maxValues[i] < v) {\n this.maxValues[i] = v;\n }\n }\n }\n }\n }\n\n for(i = 0; i < 3; i++) {\n this.objectOffset[i] = 0.5 * (this.minValues[i] + this.maxValues[i]);\n }\n\n for(i = 0; i < 3; i++) {\n for(j = 0; j < xlen; j++) {\n for(k = 0; k < ylen; k++) {\n v = rawCoords[i][j][k];\n if(v !== null && v !== undefined) {\n rawCoords[i][j][k] -= this.objectOffset[i];\n }\n }\n }\n }\n\n // convert processed raw data to Float32 matrices\n var coords = [\n ndarray(new Float32Array(xlen * ylen), [xlen, ylen]),\n ndarray(new Float32Array(xlen * ylen), [xlen, ylen]),\n ndarray(new Float32Array(xlen * ylen), [xlen, ylen])\n ];\n for(i = 0; i < 3; i++) {\n for(j = 0; j < xlen; j++) {\n for(k = 0; k < ylen; k++) {\n coords[i].set(j, k, rawCoords[i][j][k]);\n }\n }\n }\n rawCoords = []; // free memory\n\n var params = {\n colormap: colormap,\n levels: [[], [], []],\n showContour: [true, true, true],\n showSurface: !data.hidesurface,\n contourProject: [\n [false, false, false],\n [false, false, false],\n [false, false, false]\n ],\n contourWidth: [1, 1, 1],\n contourColor: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]],\n contourTint: [1, 1, 1],\n dynamicColor: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]],\n dynamicWidth: [1, 1, 1],\n dynamicTint: [1, 1, 1],\n opacityscale: data.opacityscale,\n opacity: data.opacity\n };\n\n var cOpts = extractOpts(data);\n params.intensityBounds = [cOpts.min, cOpts.max];\n\n // Refine surface color if necessary\n if(data.surfacecolor) {\n var intensity = ndarray(new Float32Array(xlen * ylen), [xlen, ylen]);\n\n for(j = 0; j < xlen; j++) {\n for(k = 0; k < ylen; k++) {\n intensity.set(j, k, data.surfacecolor[k][j]);\n }\n }\n\n coords.push(intensity);\n } else {\n // when 'z' is used as 'intensity',\n // we must scale its value\n params.intensityBounds[0] *= scaleFactor[2];\n params.intensityBounds[1] *= scaleFactor[2];\n }\n\n if(MAX_RESOLUTION < coords[0].shape[0] ||\n MAX_RESOLUTION < coords[0].shape[1]) {\n this.refineData = false;\n }\n\n if(this.refineData === true) {\n this.dataScaleX = this.estimateScale(coords[0].shape[0], 0);\n this.dataScaleY = this.estimateScale(coords[0].shape[1], 1);\n if(this.dataScaleX !== 1 || this.dataScaleY !== 1) {\n this.refineCoords(coords);\n }\n }\n\n if(data.surfacecolor) {\n params.intensity = coords.pop();\n }\n\n var highlightEnable = [true, true, true];\n var axis = ['x', 'y', 'z'];\n\n for(i = 0; i < 3; ++i) {\n var contourParams = data.contours[axis[i]];\n highlightEnable[i] = contourParams.highlight;\n\n params.showContour[i] = contourParams.show || contourParams.highlight;\n if(!params.showContour[i]) continue;\n\n params.contourProject[i] = [\n contourParams.project.x,\n contourParams.project.y,\n contourParams.project.z\n ];\n\n if(contourParams.show) {\n this.showContour[i] = true;\n params.levels[i] = contourLevels[i];\n surface.highlightColor[i] = params.contourColor[i] = str2RgbaArray(contourParams.color);\n\n if(contourParams.usecolormap) {\n surface.highlightTint[i] = params.contourTint[i] = 0;\n } else {\n surface.highlightTint[i] = params.contourTint[i] = 1;\n }\n params.contourWidth[i] = contourParams.width;\n\n this.contourStart[i] = contourParams.start;\n this.contourEnd[i] = contourParams.end;\n this.contourSize[i] = contourParams.size;\n } else {\n this.showContour[i] = false;\n\n this.contourStart[i] = null;\n this.contourEnd[i] = null;\n this.contourSize[i] = 0;\n }\n\n if(contourParams.highlight) {\n params.dynamicColor[i] = str2RgbaArray(contourParams.highlightcolor);\n params.dynamicWidth[i] = contourParams.highlightwidth;\n }\n }\n\n // see https://github.com/plotly/plotly.js/issues/940\n if(isColormapCircular(colormap)) {\n params.vertexColor = true;\n }\n\n params.objectOffset = this.objectOffset;\n\n params.coords = coords;\n surface.update(params);\n\n surface.visible = data.visible;\n surface.enableDynamic = highlightEnable;\n surface.enableHighlight = highlightEnable;\n\n surface.snapToData = true;\n\n if('lighting' in data) {\n surface.ambientLight = data.lighting.ambient;\n surface.diffuseLight = data.lighting.diffuse;\n surface.specularLight = data.lighting.specular;\n surface.roughness = data.lighting.roughness;\n surface.fresnel = data.lighting.fresnel;\n }\n\n if('lightposition' in data) {\n surface.lightPosition = [data.lightposition.x, data.lightposition.y, data.lightposition.z];\n }\n};\n\nproto.dispose = function() {\n this.scene.glplot.remove(this.surface);\n this.surface.dispose();\n};\n\nfunction createSurfaceTrace(scene, data) {\n var gl = scene.glplot.gl;\n var surface = createSurface({ gl: gl });\n var result = new SurfaceTrace(scene, surface, data.uid);\n surface._trace = result;\n result.update(data);\n scene.glplot.add(surface);\n return result;\n}\n\nmodule.exports = createSurfaceTrace;\n\n},{\"../../../stackgl_modules\":1119,\"../../components/colorscale\":378,\"../../lib\":503,\"../../lib/gl_format_color\":499,\"../../lib/str2rgbarray\":528,\"../heatmap/find_empties\":798,\"../heatmap/interp2d\":801}],1059:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\n\nvar colorscaleDefaults = _dereq_('../../components/colorscale/defaults');\nvar attributes = _dereq_('./attributes');\n\nvar MIN = 0.1; // Note: often we don't want the data cube to be disappeared\n\nfunction createWave(n, minOpacity) {\n var arr = [];\n var steps = 32; // Max: 256\n for(var i = 0; i < steps; i++) {\n var u = i / (steps - 1);\n var v = minOpacity + (1 - minOpacity) * (1 - Math.pow(Math.sin(n * u * Math.PI), 2));\n arr.push([\n u,\n Math.max(0, Math.min(1, v))\n ]);\n }\n return arr;\n}\n\nfunction isValidScaleArray(scl) {\n var highestVal = 0;\n\n if(!Array.isArray(scl) || scl.length < 2) return false;\n\n if(!scl[0] || !scl[scl.length - 1]) return false;\n\n if(+scl[0][0] !== 0 || +scl[scl.length - 1][0] !== 1) return false;\n\n for(var i = 0; i < scl.length; i++) {\n var si = scl[i];\n\n if(si.length !== 2 || +si[0] < highestVal) {\n return false;\n }\n\n highestVal = +si[0];\n }\n\n return true;\n}\n\nfunction supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n var i, j;\n\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var x = coerce('x');\n var y = coerce('y');\n\n var z = coerce('z');\n if(!z || !z.length ||\n (x ? (x.length < 1) : false) ||\n (y ? (y.length < 1) : false)\n ) {\n traceOut.visible = false;\n return;\n }\n\n traceOut._xlength = (Array.isArray(x) && Lib.isArrayOrTypedArray(x[0])) ? z.length : z[0].length;\n traceOut._ylength = z.length;\n\n var handleCalendarDefaults = Registry.getComponentMethod('calendars', 'handleTraceDefaults');\n handleCalendarDefaults(traceIn, traceOut, ['x', 'y', 'z'], layout);\n\n coerce('text');\n coerce('hovertext');\n coerce('hovertemplate');\n coerce('xhoverformat');\n coerce('yhoverformat');\n coerce('zhoverformat');\n\n // Coerce remaining properties\n [\n 'lighting.ambient',\n 'lighting.diffuse',\n 'lighting.specular',\n 'lighting.roughness',\n 'lighting.fresnel',\n 'lightposition.x',\n 'lightposition.y',\n 'lightposition.z',\n 'hidesurface',\n 'connectgaps',\n 'opacity'\n ].forEach(function(x) { coerce(x); });\n\n var surfaceColor = coerce('surfacecolor');\n\n var dims = ['x', 'y', 'z'];\n for(i = 0; i < 3; ++i) {\n var contourDim = 'contours.' + dims[i];\n var show = coerce(contourDim + '.show');\n var highlight = coerce(contourDim + '.highlight');\n\n if(show || highlight) {\n for(j = 0; j < 3; ++j) {\n coerce(contourDim + '.project.' + dims[j]);\n }\n }\n\n if(show) {\n coerce(contourDim + '.color');\n coerce(contourDim + '.width');\n coerce(contourDim + '.usecolormap');\n }\n\n if(highlight) {\n coerce(contourDim + '.highlightcolor');\n coerce(contourDim + '.highlightwidth');\n }\n\n coerce(contourDim + '.start');\n coerce(contourDim + '.end');\n coerce(contourDim + '.size');\n }\n\n // backward compatibility block\n if(!surfaceColor) {\n mapLegacy(traceIn, 'zmin', 'cmin');\n mapLegacy(traceIn, 'zmax', 'cmax');\n mapLegacy(traceIn, 'zauto', 'cauto');\n }\n\n // TODO if contours.?.usecolormap are false and hidesurface is true\n // the colorbar shouldn't be shown by default\n\n colorscaleDefaults(\n traceIn, traceOut, layout, coerce, {prefix: '', cLetter: 'c'}\n );\n\n opacityscaleDefaults(traceIn, traceOut, layout, coerce);\n\n // disable 1D transforms - currently surface does NOT support column data like heatmap does\n // you can use mesh3d for this use case, but not surface\n traceOut._length = null;\n}\n\nfunction opacityscaleDefaults(traceIn, traceOut, layout, coerce) {\n var opacityscale = coerce('opacityscale');\n if(opacityscale === 'max') {\n traceOut.opacityscale = [[0, MIN], [1, 1]];\n } else if(opacityscale === 'min') {\n traceOut.opacityscale = [[0, 1], [1, MIN]];\n } else if(opacityscale === 'extremes') {\n traceOut.opacityscale = createWave(1, MIN);\n } else if(!isValidScaleArray(opacityscale)) {\n traceOut.opacityscale = undefined;\n }\n}\n\nfunction mapLegacy(traceIn, oldAttr, newAttr) {\n if(oldAttr in traceIn && !(newAttr in traceIn)) {\n traceIn[newAttr] = traceIn[oldAttr];\n }\n}\n\nmodule.exports = {\n supplyDefaults: supplyDefaults,\n opacityscaleDefaults: opacityscaleDefaults\n};\n\n},{\"../../components/colorscale/defaults\":376,\"../../lib\":503,\"../../registry\":638,\"./attributes\":1056}],1060:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults').supplyDefaults,\n colorbar: {\n min: 'cmin',\n max: 'cmax'\n },\n calc: _dereq_('./calc'),\n plot: _dereq_('./convert'),\n\n moduleType: 'trace',\n name: 'surface',\n basePlotModule: _dereq_('../../plots/gl3d'),\n categories: ['gl3d', '2dMap', 'showLegend'],\n meta: {\n }\n};\n\n},{\"../../plots/gl3d\":598,\"./attributes\":1056,\"./calc\":1057,\"./convert\":1058,\"./defaults\":1059}],1061:[function(_dereq_,module,exports){\n'use strict';\n\nvar annAttrs = _dereq_('../../components/annotations/attributes');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar domainAttrs = _dereq_('../../plots/domain').attributes;\nvar descriptionOnlyNumbers = _dereq_('../../plots/cartesian/axis_format_attributes').descriptionOnlyNumbers;\n\nvar attrs = module.exports = overrideAll({\n domain: domainAttrs({name: 'table', trace: true}),\n\n columnwidth: {\n valType: 'number',\n arrayOk: true,\n dflt: null,\n },\n\n columnorder: {\n valType: 'data_array',\n },\n\n header: {\n\n values: {\n valType: 'data_array',\n dflt: [],\n },\n\n format: {\n valType: 'data_array',\n dflt: [],\n description: descriptionOnlyNumbers('cell value')\n },\n\n prefix: {\n valType: 'string',\n arrayOk: true,\n dflt: null,\n },\n\n suffix: {\n valType: 'string',\n arrayOk: true,\n dflt: null,\n },\n\n height: {\n valType: 'number',\n dflt: 28,\n },\n\n align: extendFlat({}, annAttrs.align, {arrayOk: true}),\n\n line: {\n width: {\n valType: 'number',\n arrayOk: true,\n dflt: 1,\n },\n color: {\n valType: 'color',\n arrayOk: true,\n dflt: 'grey',\n }\n },\n\n fill: {\n color: {\n valType: 'color',\n arrayOk: true,\n dflt: 'white',\n }\n },\n\n font: extendFlat({}, fontAttrs({arrayOk: true}))\n },\n\n cells: {\n\n values: {\n valType: 'data_array',\n dflt: [],\n },\n\n format: {\n valType: 'data_array',\n dflt: [],\n description: descriptionOnlyNumbers('cell value')\n },\n\n prefix: {\n valType: 'string',\n arrayOk: true,\n dflt: null,\n },\n\n suffix: {\n valType: 'string',\n arrayOk: true,\n dflt: null,\n },\n\n height: {\n valType: 'number',\n dflt: 20,\n },\n\n align: extendFlat({}, annAttrs.align, {arrayOk: true}),\n\n line: {\n width: {\n valType: 'number',\n arrayOk: true,\n dflt: 1,\n },\n color: {\n valType: 'color',\n arrayOk: true,\n dflt: 'grey',\n }\n },\n\n fill: {\n color: {\n valType: 'color',\n arrayOk: true,\n dflt: 'white',\n }\n },\n\n font: extendFlat({}, fontAttrs({arrayOk: true}))\n }\n}, 'calc', 'from-root');\nattrs.transforms = undefined;\n\n},{\"../../components/annotations/attributes\":349,\"../../lib/extend\":493,\"../../plot_api/edit_types\":536,\"../../plots/cartesian/axis_format_attributes\":557,\"../../plots/domain\":584,\"../../plots/font_attributes\":585}],1062:[function(_dereq_,module,exports){\n'use strict';\n\nvar getModuleCalcData = _dereq_('../../plots/get_data').getModuleCalcData;\nvar tablePlot = _dereq_('./plot');\n\nvar TABLE = 'table';\n\nexports.name = TABLE;\n\nexports.plot = function(gd) {\n var calcData = getModuleCalcData(gd.calcdata, TABLE)[0];\n if(calcData.length) tablePlot(gd, calcData);\n};\n\nexports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n var hadTable = (oldFullLayout._has && oldFullLayout._has(TABLE));\n var hasTable = (newFullLayout._has && newFullLayout._has(TABLE));\n\n if(hadTable && !hasTable) {\n oldFullLayout._paperdiv.selectAll('.table').remove();\n }\n};\n\n},{\"../../plots/get_data\":593,\"./plot\":1069}],1063:[function(_dereq_,module,exports){\n'use strict';\n\nvar wrap = _dereq_('../../lib/gup').wrap;\n\nmodule.exports = function calc() {\n // we don't actually need to include the trace here, since that will be added\n // by Plots.doCalcdata, and that's all we actually need later.\n return wrap({});\n};\n\n},{\"../../lib/gup\":500}],1064:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n cellPad: 8,\n columnExtentOffset: 10,\n columnTitleOffset: 28,\n emptyHeaderHeight: 16,\n latexCheck: /^\\$.*\\$$/,\n goldenRatio: 1.618,\n lineBreaker: '
',\n maxDimensionCount: 60,\n overdrag: 45,\n releaseTransitionDuration: 120,\n releaseTransitionEase: 'cubic-out',\n scrollbarCaptureWidth: 18,\n scrollbarHideDelay: 1000,\n scrollbarHideDuration: 1000,\n scrollbarOffset: 5,\n scrollbarWidth: 8,\n transitionDuration: 100,\n transitionEase: 'cubic-out',\n uplift: 5,\n wrapSpacer: ' ',\n wrapSplitCharacter: ' ',\n cn: {\n // general class names\n table: 'table',\n tableControlView: 'table-control-view',\n scrollBackground: 'scroll-background',\n yColumn: 'y-column',\n columnBlock: 'column-block',\n scrollAreaClip: 'scroll-area-clip',\n scrollAreaClipRect: 'scroll-area-clip-rect',\n columnBoundary: 'column-boundary',\n columnBoundaryClippath: 'column-boundary-clippath',\n columnBoundaryRect: 'column-boundary-rect',\n columnCells: 'column-cells',\n columnCell: 'column-cell',\n cellRect: 'cell-rect',\n cellText: 'cell-text',\n cellTextHolder: 'cell-text-holder',\n\n // scroll related class names\n scrollbarKit: 'scrollbar-kit',\n scrollbar: 'scrollbar',\n scrollbarSlider: 'scrollbar-slider',\n scrollbarGlyph: 'scrollbar-glyph',\n scrollbarCaptureZone: 'scrollbar-capture-zone'\n }\n};\n\n},{}],1065:[function(_dereq_,module,exports){\n'use strict';\n\nvar c = _dereq_('./constants');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar isNumeric = _dereq_('fast-isnumeric');\n\n// pure functions, don't alter but passes on `gd` and parts of `trace` without deep copying\nmodule.exports = function calc(gd, trace) {\n var cellsValues = squareStringMatrix(trace.cells.values);\n var slicer = function(a) {\n return a.slice(trace.header.values.length, a.length);\n };\n var headerValuesIn = squareStringMatrix(trace.header.values);\n if(headerValuesIn.length && !headerValuesIn[0].length) {\n headerValuesIn[0] = [''];\n headerValuesIn = squareStringMatrix(headerValuesIn);\n }\n var headerValues = headerValuesIn\n .concat(slicer(cellsValues).map(function() {\n return emptyStrings((headerValuesIn[0] || ['']).length);\n }));\n\n var domain = trace.domain;\n var groupWidth = Math.floor(gd._fullLayout._size.w * (domain.x[1] - domain.x[0]));\n var groupHeight = Math.floor(gd._fullLayout._size.h * (domain.y[1] - domain.y[0]));\n var headerRowHeights = trace.header.values.length ?\n headerValues[0].map(function() { return trace.header.height; }) :\n [c.emptyHeaderHeight];\n var rowHeights = cellsValues.length ? cellsValues[0].map(function() { return trace.cells.height; }) : [];\n var headerHeight = headerRowHeights.reduce(sum, 0);\n var scrollHeight = groupHeight - headerHeight;\n var minimumFillHeight = scrollHeight + c.uplift;\n var anchorToRowBlock = makeAnchorToRowBlock(rowHeights, minimumFillHeight);\n var anchorToHeaderRowBlock = makeAnchorToRowBlock(headerRowHeights, headerHeight);\n var headerRowBlocks = makeRowBlock(anchorToHeaderRowBlock, []);\n var rowBlocks = makeRowBlock(anchorToRowBlock, headerRowBlocks);\n var uniqueKeys = {};\n var columnOrder = trace._fullInput.columnorder.concat(slicer(cellsValues.map(function(d, i) {return i;})));\n var columnWidths = headerValues.map(function(d, i) {\n var value = Array.isArray(trace.columnwidth) ?\n trace.columnwidth[Math.min(i, trace.columnwidth.length - 1)] :\n trace.columnwidth;\n return isNumeric(value) ? Number(value) : 1;\n });\n var totalColumnWidths = columnWidths.reduce(sum, 0);\n\n // fit columns in the available vertical space as there's no vertical scrolling now\n columnWidths = columnWidths.map(function(d) { return d / totalColumnWidths * groupWidth; });\n\n var maxLineWidth = Math.max(arrayMax(trace.header.line.width), arrayMax(trace.cells.line.width));\n\n var calcdata = {\n // include staticPlot in the key so if it changes we delete and redraw\n key: trace.uid + gd._context.staticPlot,\n translateX: domain.x[0] * gd._fullLayout._size.w,\n translateY: gd._fullLayout._size.h * (1 - domain.y[1]),\n size: gd._fullLayout._size,\n width: groupWidth,\n maxLineWidth: maxLineWidth,\n height: groupHeight,\n columnOrder: columnOrder, // will be mutated on column move, todo use in callback\n groupHeight: groupHeight,\n rowBlocks: rowBlocks,\n headerRowBlocks: headerRowBlocks,\n scrollY: 0, // will be mutated on scroll\n cells: extendFlat({}, trace.cells, {values: cellsValues}),\n headerCells: extendFlat({}, trace.header, {values: headerValues}),\n gdColumns: headerValues.map(function(d) {return d[0];}),\n gdColumnsOriginalOrder: headerValues.map(function(d) {return d[0];}),\n prevPages: [0, 0],\n scrollbarState: {scrollbarScrollInProgress: false},\n columns: headerValues.map(function(label, i) {\n var foundKey = uniqueKeys[label];\n uniqueKeys[label] = (foundKey || 0) + 1;\n var key = label + '__' + uniqueKeys[label];\n return {\n key: key,\n label: label,\n specIndex: i,\n xIndex: columnOrder[i],\n xScale: xScale,\n x: undefined, // initialized below\n calcdata: undefined, // initialized below\n columnWidth: columnWidths[i]\n };\n })\n };\n\n calcdata.columns.forEach(function(col) {\n col.calcdata = calcdata;\n col.x = xScale(col);\n });\n\n return calcdata;\n};\n\nfunction arrayMax(maybeArray) {\n if(Array.isArray(maybeArray)) {\n var max = 0;\n for(var i = 0; i < maybeArray.length; i++) {\n max = Math.max(max, arrayMax(maybeArray[i]));\n }\n return max;\n }\n return maybeArray;\n}\n\nfunction sum(a, b) { return a + b; }\n\n// fill matrix in place to equal lengths\n// and ensure it's uniformly 2D\nfunction squareStringMatrix(matrixIn) {\n var matrix = matrixIn.slice();\n var minLen = Infinity;\n var maxLen = 0;\n var i;\n for(i = 0; i < matrix.length; i++) {\n if(!Array.isArray(matrix[i])) matrix[i] = [matrix[i]];\n minLen = Math.min(minLen, matrix[i].length);\n maxLen = Math.max(maxLen, matrix[i].length);\n }\n\n if(minLen !== maxLen) {\n for(i = 0; i < matrix.length; i++) {\n var padLen = maxLen - matrix[i].length;\n if(padLen) matrix[i] = matrix[i].concat(emptyStrings(padLen));\n }\n }\n return matrix;\n}\n\nfunction emptyStrings(len) {\n var padArray = new Array(len);\n for(var j = 0; j < len; j++) padArray[j] = '';\n return padArray;\n}\n\nfunction xScale(d) {\n return d.calcdata.columns.reduce(function(prev, next) {\n return next.xIndex < d.xIndex ? prev + next.columnWidth : prev;\n }, 0);\n}\n\nfunction makeRowBlock(anchorToRowBlock, auxiliary) {\n var blockAnchorKeys = Object.keys(anchorToRowBlock);\n return blockAnchorKeys.map(function(k) {return extendFlat({}, anchorToRowBlock[k], {auxiliaryBlocks: auxiliary});});\n}\n\nfunction makeAnchorToRowBlock(rowHeights, minimumFillHeight) {\n var anchorToRowBlock = {};\n var currentRowHeight;\n var currentAnchor = 0;\n var currentBlockHeight = 0;\n var currentBlock = makeIdentity();\n var currentFirstRowIndex = 0;\n var blockCounter = 0;\n for(var i = 0; i < rowHeights.length; i++) {\n currentRowHeight = rowHeights[i];\n currentBlock.rows.push({\n rowIndex: i,\n rowHeight: currentRowHeight\n });\n currentBlockHeight += currentRowHeight;\n if(currentBlockHeight >= minimumFillHeight || i === rowHeights.length - 1) {\n anchorToRowBlock[currentAnchor] = currentBlock;\n currentBlock.key = blockCounter++;\n currentBlock.firstRowIndex = currentFirstRowIndex;\n currentBlock.lastRowIndex = i;\n currentBlock = makeIdentity();\n currentAnchor += currentBlockHeight;\n currentFirstRowIndex = i + 1;\n currentBlockHeight = 0;\n }\n }\n\n return anchorToRowBlock;\n}\n\nfunction makeIdentity() {\n return {\n firstRowIndex: null,\n lastRowIndex: null,\n rows: []\n };\n}\n\n},{\"../../lib/extend\":493,\"./constants\":1064,\"fast-isnumeric\":190}],1066:[function(_dereq_,module,exports){\n'use strict';\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\n// pure functions, don't alter but passes on `gd` and parts of `trace` without deep copying\n\nexports.splitToPanels = function(d) {\n var prevPages = [0, 0];\n var headerPanel = extendFlat({}, d, {\n key: 'header',\n type: 'header',\n page: 0,\n prevPages: prevPages,\n currentRepaint: [null, null],\n dragHandle: true,\n values: d.calcdata.headerCells.values[d.specIndex],\n rowBlocks: d.calcdata.headerRowBlocks,\n calcdata: extendFlat({}, d.calcdata, {cells: d.calcdata.headerCells})\n });\n var revolverPanel1 = extendFlat({}, d, {\n key: 'cells1',\n type: 'cells',\n page: 0,\n prevPages: prevPages,\n currentRepaint: [null, null],\n dragHandle: false,\n values: d.calcdata.cells.values[d.specIndex],\n rowBlocks: d.calcdata.rowBlocks\n });\n var revolverPanel2 = extendFlat({}, d, {\n key: 'cells2',\n type: 'cells',\n page: 1,\n prevPages: prevPages,\n currentRepaint: [null, null],\n dragHandle: false,\n values: d.calcdata.cells.values[d.specIndex],\n rowBlocks: d.calcdata.rowBlocks\n });\n // order due to SVG using painter's algo:\n return [revolverPanel1, revolverPanel2, headerPanel];\n};\n\nexports.splitToCells = function(d) {\n var fromTo = rowFromTo(d);\n return (d.values || []).slice(fromTo[0], fromTo[1]).map(function(v, i) {\n // By keeping identical key, a DOM node removal, creation and addition is spared, important when visible\n // grid has a lot of elements (quadratic with xcol/ycol count).\n // But it has to be busted when `svgUtil.convertToTspans` is used as it reshapes cell subtrees asynchronously,\n // and by that time the user may have scrolled away, resulting in stale overwrites. The real solution will be\n // to turn `svgUtil.convertToTspans` into a cancelable request, in which case no key busting is needed.\n var buster = (typeof v === 'string') && v.match(/[<$&> ]/) ? '_keybuster_' + Math.random() : '';\n return {\n // keyWithinBlock: /*fromTo[0] + */i, // optimized future version - no busting\n // keyWithinBlock: fromTo[0] + i, // initial always-unoptimized version - janky scrolling with 5+ columns\n keyWithinBlock: i + buster, // current compromise: regular content is very fast; async content is possible\n key: fromTo[0] + i,\n column: d,\n calcdata: d.calcdata,\n page: d.page,\n rowBlocks: d.rowBlocks,\n value: v\n };\n });\n};\n\nfunction rowFromTo(d) {\n var rowBlock = d.rowBlocks[d.page];\n // fixme rowBlock truthiness check is due to ugly hack of placing 2nd panel as d.page = -1\n var rowFrom = rowBlock ? rowBlock.rows[0].rowIndex : 0;\n var rowTo = rowBlock ? rowFrom + rowBlock.rows.length : 0;\n return [rowFrom, rowTo];\n}\n\n},{\"../../lib/extend\":493}],1067:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar attributes = _dereq_('./attributes');\nvar handleDomainDefaults = _dereq_('../../plots/domain').defaults;\n\nfunction defaultColumnOrder(traceOut, coerce) {\n var specifiedColumnOrder = traceOut.columnorder || [];\n var commonLength = traceOut.header.values.length;\n var truncated = specifiedColumnOrder.slice(0, commonLength);\n var sorted = truncated.slice().sort(function(a, b) {return a - b;});\n var oneStepped = truncated.map(function(d) {return sorted.indexOf(d);});\n for(var i = oneStepped.length; i < commonLength; i++) {\n oneStepped.push(i);\n }\n coerce('columnorder', oneStepped);\n}\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n handleDomainDefaults(traceOut, layout, coerce);\n\n coerce('columnwidth');\n\n coerce('header.values');\n coerce('header.format');\n coerce('header.align');\n\n coerce('header.prefix');\n coerce('header.suffix');\n coerce('header.height');\n coerce('header.line.width');\n coerce('header.line.color');\n coerce('header.fill.color');\n Lib.coerceFont(coerce, 'header.font', Lib.extendFlat({}, layout.font));\n\n defaultColumnOrder(traceOut, coerce);\n\n coerce('cells.values');\n coerce('cells.format');\n coerce('cells.align');\n coerce('cells.prefix');\n coerce('cells.suffix');\n coerce('cells.height');\n coerce('cells.line.width');\n coerce('cells.line.color');\n coerce('cells.fill.color');\n Lib.coerceFont(coerce, 'cells.font', Lib.extendFlat({}, layout.font));\n\n // disable 1D transforms\n traceOut._length = null;\n};\n\n},{\"../../lib\":503,\"../../plots/domain\":584,\"./attributes\":1061}],1068:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n calc: _dereq_('./calc'),\n plot: _dereq_('./plot'),\n\n moduleType: 'trace',\n name: 'table',\n basePlotModule: _dereq_('./base_plot'),\n categories: ['noOpacity'],\n meta: {\n }\n};\n\n},{\"./attributes\":1061,\"./base_plot\":1062,\"./calc\":1063,\"./defaults\":1067,\"./plot\":1069}],1069:[function(_dereq_,module,exports){\n'use strict';\n\nvar c = _dereq_('./constants');\nvar d3 = _dereq_('@plotly/d3');\nvar Lib = _dereq_('../../lib');\nvar numberFormat = Lib.numberFormat;\nvar gup = _dereq_('../../lib/gup');\nvar Drawing = _dereq_('../../components/drawing');\nvar svgUtil = _dereq_('../../lib/svg_text_utils');\nvar raiseToTop = _dereq_('../../lib').raiseToTop;\nvar strTranslate = _dereq_('../../lib').strTranslate;\nvar cancelEeaseColumn = _dereq_('../../lib').cancelTransition;\nvar prepareData = _dereq_('./data_preparation_helper');\nvar splitData = _dereq_('./data_split_helpers');\nvar Color = _dereq_('../../components/color');\n\nmodule.exports = function plot(gd, wrappedTraceHolders) {\n var dynamic = !gd._context.staticPlot;\n\n var table = gd._fullLayout._paper.selectAll('.' + c.cn.table)\n .data(wrappedTraceHolders.map(function(wrappedTraceHolder) {\n var traceHolder = gup.unwrap(wrappedTraceHolder);\n var trace = traceHolder.trace;\n return prepareData(gd, trace);\n }), gup.keyFun);\n\n table.exit().remove();\n\n table.enter()\n .append('g')\n .classed(c.cn.table, true)\n .attr('overflow', 'visible')\n .style('box-sizing', 'content-box')\n .style('position', 'absolute')\n .style('left', 0)\n .style('overflow', 'visible')\n .style('shape-rendering', 'crispEdges')\n .style('pointer-events', 'all');\n\n table\n .attr('width', function(d) {return d.width + d.size.l + d.size.r;})\n .attr('height', function(d) {return d.height + d.size.t + d.size.b;})\n .attr('transform', function(d) {\n return strTranslate(d.translateX, d.translateY);\n });\n\n var tableControlView = table.selectAll('.' + c.cn.tableControlView)\n .data(gup.repeat, gup.keyFun);\n\n var cvEnter = tableControlView.enter()\n .append('g')\n .classed(c.cn.tableControlView, true)\n .style('box-sizing', 'content-box');\n if(dynamic) {\n var wheelEvent = 'onwheel' in document ? 'wheel' : 'mousewheel';\n cvEnter\n .on('mousemove', function(d) {\n tableControlView\n .filter(function(dd) {return d === dd;})\n .call(renderScrollbarKit, gd);\n })\n .on(wheelEvent, function(d) {\n if(d.scrollbarState.wheeling) return;\n d.scrollbarState.wheeling = true;\n var newY = d.scrollY + d3.event.deltaY;\n var noChange = makeDragRow(gd, tableControlView, null, newY)(d);\n if(!noChange) {\n d3.event.stopPropagation();\n d3.event.preventDefault();\n }\n d.scrollbarState.wheeling = false;\n })\n .call(renderScrollbarKit, gd, true);\n }\n\n tableControlView\n .attr('transform', function(d) {return strTranslate(d.size.l, d.size.t);});\n\n // scrollBackground merely ensures that mouse events are captured even on crazy fast scrollwheeling\n // otherwise rendering glitches may occur\n var scrollBackground = tableControlView.selectAll('.' + c.cn.scrollBackground)\n .data(gup.repeat, gup.keyFun);\n\n scrollBackground.enter()\n .append('rect')\n .classed(c.cn.scrollBackground, true)\n .attr('fill', 'none');\n\n scrollBackground\n .attr('width', function(d) {return d.width;})\n .attr('height', function(d) {return d.height;});\n\n tableControlView.each(function(d) {\n Drawing.setClipUrl(d3.select(this), scrollAreaBottomClipKey(gd, d), gd);\n });\n\n var yColumn = tableControlView.selectAll('.' + c.cn.yColumn)\n .data(function(vm) {return vm.columns;}, gup.keyFun);\n\n yColumn.enter()\n .append('g')\n .classed(c.cn.yColumn, true);\n\n yColumn.exit().remove();\n\n yColumn.attr('transform', function(d) {return strTranslate(d.x, 0);});\n\n if(dynamic) {\n yColumn.call(d3.behavior.drag()\n .origin(function(d) {\n var movedColumn = d3.select(this);\n easeColumn(movedColumn, d, -c.uplift);\n raiseToTop(this);\n d.calcdata.columnDragInProgress = true;\n renderScrollbarKit(tableControlView.filter(function(dd) {return d.calcdata.key === dd.key;}), gd);\n return d;\n })\n .on('drag', function(d) {\n var movedColumn = d3.select(this);\n var getter = function(dd) {return (d === dd ? d3.event.x : dd.x) + dd.columnWidth / 2;};\n d.x = Math.max(-c.overdrag, Math.min(d.calcdata.width + c.overdrag - d.columnWidth, d3.event.x));\n\n var sortableColumns = flatData(yColumn).filter(function(dd) {return dd.calcdata.key === d.calcdata.key;});\n var newOrder = sortableColumns.sort(function(a, b) {return getter(a) - getter(b);});\n newOrder.forEach(function(dd, i) {\n dd.xIndex = i;\n dd.x = d === dd ? dd.x : dd.xScale(dd);\n });\n\n yColumn.filter(function(dd) {return d !== dd;})\n .transition()\n .ease(c.transitionEase)\n .duration(c.transitionDuration)\n .attr('transform', function(d) {return strTranslate(d.x, 0);});\n movedColumn\n .call(cancelEeaseColumn)\n .attr('transform', strTranslate(d.x, -c.uplift));\n })\n .on('dragend', function(d) {\n var movedColumn = d3.select(this);\n var p = d.calcdata;\n d.x = d.xScale(d);\n d.calcdata.columnDragInProgress = false;\n easeColumn(movedColumn, d, 0);\n columnMoved(gd, p, p.columns.map(function(dd) {return dd.xIndex;}));\n })\n );\n }\n\n yColumn.each(function(d) {\n Drawing.setClipUrl(d3.select(this), columnBoundaryClipKey(gd, d), gd);\n });\n\n var columnBlock = yColumn.selectAll('.' + c.cn.columnBlock)\n .data(splitData.splitToPanels, gup.keyFun);\n\n columnBlock.enter()\n .append('g')\n .classed(c.cn.columnBlock, true)\n .attr('id', function(d) {return d.key;});\n\n columnBlock\n .style('cursor', function(d) {\n return d.dragHandle ? 'ew-resize' : d.calcdata.scrollbarState.barWiggleRoom ? 'ns-resize' : 'default';\n });\n\n var headerColumnBlock = columnBlock.filter(headerBlock);\n var cellsColumnBlock = columnBlock.filter(cellsBlock);\n\n if(dynamic) {\n cellsColumnBlock.call(d3.behavior.drag()\n .origin(function(d) {\n d3.event.stopPropagation();\n return d;\n })\n .on('drag', makeDragRow(gd, tableControlView, -1))\n .on('dragend', function() {\n // fixme emit plotly notification\n })\n );\n }\n\n // initial rendering: header is rendered first, as it may may have async LaTeX (show header first)\n // but blocks are _entered_ the way they are due to painter's algo (header on top)\n renderColumnCellTree(gd, tableControlView, headerColumnBlock, columnBlock);\n renderColumnCellTree(gd, tableControlView, cellsColumnBlock, columnBlock);\n\n var scrollAreaClip = tableControlView.selectAll('.' + c.cn.scrollAreaClip)\n .data(gup.repeat, gup.keyFun);\n\n scrollAreaClip.enter()\n .append('clipPath')\n .classed(c.cn.scrollAreaClip, true)\n .attr('id', function(d) {return scrollAreaBottomClipKey(gd, d);});\n\n var scrollAreaClipRect = scrollAreaClip.selectAll('.' + c.cn.scrollAreaClipRect)\n .data(gup.repeat, gup.keyFun);\n\n scrollAreaClipRect.enter()\n .append('rect')\n .classed(c.cn.scrollAreaClipRect, true)\n .attr('x', -c.overdrag)\n .attr('y', -c.uplift)\n .attr('fill', 'none');\n\n scrollAreaClipRect\n .attr('width', function(d) {return d.width + 2 * c.overdrag;})\n .attr('height', function(d) {return d.height + c.uplift;});\n\n var columnBoundary = yColumn.selectAll('.' + c.cn.columnBoundary)\n .data(gup.repeat, gup.keyFun);\n\n columnBoundary.enter()\n .append('g')\n .classed(c.cn.columnBoundary, true);\n\n var columnBoundaryClippath = yColumn.selectAll('.' + c.cn.columnBoundaryClippath)\n .data(gup.repeat, gup.keyFun);\n\n // SVG spec doesn't mandate wrapping into a and doesn't seem to cause a speed difference\n columnBoundaryClippath.enter()\n .append('clipPath')\n .classed(c.cn.columnBoundaryClippath, true);\n\n columnBoundaryClippath\n .attr('id', function(d) {return columnBoundaryClipKey(gd, d);});\n\n var columnBoundaryRect = columnBoundaryClippath.selectAll('.' + c.cn.columnBoundaryRect)\n .data(gup.repeat, gup.keyFun);\n\n columnBoundaryRect.enter()\n .append('rect')\n .classed(c.cn.columnBoundaryRect, true)\n .attr('fill', 'none');\n\n columnBoundaryRect\n .attr('width', function(d) { return d.columnWidth + 2 * roundHalfWidth(d); })\n .attr('height', function(d) {return d.calcdata.height + 2 * roundHalfWidth(d) + c.uplift;})\n .attr('x', function(d) { return -roundHalfWidth(d); })\n .attr('y', function(d) { return -roundHalfWidth(d); });\n\n updateBlockYPosition(null, cellsColumnBlock, tableControlView);\n};\n\nfunction roundHalfWidth(d) {\n return Math.ceil(d.calcdata.maxLineWidth / 2);\n}\n\nfunction scrollAreaBottomClipKey(gd, d) {\n return 'clip' + gd._fullLayout._uid + '_scrollAreaBottomClip_' + d.key;\n}\n\nfunction columnBoundaryClipKey(gd, d) {\n return 'clip' + gd._fullLayout._uid + '_columnBoundaryClippath_' + d.calcdata.key + '_' + d.specIndex;\n}\n\nfunction flatData(selection) {\n return [].concat.apply([], selection.map(function(g) {return g;}))\n .map(function(g) {return g.__data__;});\n}\n\nfunction renderScrollbarKit(tableControlView, gd, bypassVisibleBar) {\n function calcTotalHeight(d) {\n var blocks = d.rowBlocks;\n return firstRowAnchor(blocks, blocks.length - 1) + (blocks.length ? rowsHeight(blocks[blocks.length - 1], Infinity) : 1);\n }\n\n var scrollbarKit = tableControlView.selectAll('.' + c.cn.scrollbarKit)\n .data(gup.repeat, gup.keyFun);\n\n scrollbarKit.enter()\n .append('g')\n .classed(c.cn.scrollbarKit, true)\n .style('shape-rendering', 'geometricPrecision');\n\n scrollbarKit\n .each(function(d) {\n var s = d.scrollbarState;\n s.totalHeight = calcTotalHeight(d);\n s.scrollableAreaHeight = d.groupHeight - headerHeight(d);\n s.currentlyVisibleHeight = Math.min(s.totalHeight, s.scrollableAreaHeight);\n s.ratio = s.currentlyVisibleHeight / s.totalHeight;\n s.barLength = Math.max(s.ratio * s.currentlyVisibleHeight, c.goldenRatio * c.scrollbarWidth);\n s.barWiggleRoom = s.currentlyVisibleHeight - s.barLength;\n s.wiggleRoom = Math.max(0, s.totalHeight - s.scrollableAreaHeight);\n s.topY = s.barWiggleRoom === 0 ? 0 : (d.scrollY / s.wiggleRoom) * s.barWiggleRoom;\n s.bottomY = s.topY + s.barLength;\n s.dragMultiplier = s.wiggleRoom / s.barWiggleRoom;\n })\n .attr('transform', function(d) {\n var xPosition = d.width + c.scrollbarWidth / 2 + c.scrollbarOffset;\n return strTranslate(xPosition, headerHeight(d));\n });\n\n var scrollbar = scrollbarKit.selectAll('.' + c.cn.scrollbar)\n .data(gup.repeat, gup.keyFun);\n\n scrollbar.enter()\n .append('g')\n .classed(c.cn.scrollbar, true);\n\n var scrollbarSlider = scrollbar.selectAll('.' + c.cn.scrollbarSlider)\n .data(gup.repeat, gup.keyFun);\n\n scrollbarSlider.enter()\n .append('g')\n .classed(c.cn.scrollbarSlider, true);\n\n scrollbarSlider\n .attr('transform', function(d) {\n return strTranslate(0, d.scrollbarState.topY || 0);\n });\n\n var scrollbarGlyph = scrollbarSlider.selectAll('.' + c.cn.scrollbarGlyph)\n .data(gup.repeat, gup.keyFun);\n\n scrollbarGlyph.enter()\n .append('line')\n .classed(c.cn.scrollbarGlyph, true)\n .attr('stroke', 'black')\n .attr('stroke-width', c.scrollbarWidth)\n .attr('stroke-linecap', 'round')\n .attr('y1', c.scrollbarWidth / 2);\n\n scrollbarGlyph\n .attr('y2', function(d) {\n return d.scrollbarState.barLength - c.scrollbarWidth / 2;\n })\n .attr('stroke-opacity', function(d) {\n return d.columnDragInProgress || !d.scrollbarState.barWiggleRoom || bypassVisibleBar ? 0 : 0.4;\n });\n\n // cancel transition: possible pending (also, delayed) transition\n scrollbarGlyph\n .transition().delay(0).duration(0);\n\n scrollbarGlyph\n .transition().delay(c.scrollbarHideDelay).duration(c.scrollbarHideDuration)\n .attr('stroke-opacity', 0);\n\n var scrollbarCaptureZone = scrollbar.selectAll('.' + c.cn.scrollbarCaptureZone)\n .data(gup.repeat, gup.keyFun);\n\n scrollbarCaptureZone.enter()\n .append('line')\n .classed(c.cn.scrollbarCaptureZone, true)\n .attr('stroke', 'white')\n .attr('stroke-opacity', 0.01) // some browser might get rid of a 0 opacity element\n .attr('stroke-width', c.scrollbarCaptureWidth)\n .attr('stroke-linecap', 'butt')\n .attr('y1', 0)\n .on('mousedown', function(d) {\n var y = d3.event.y;\n var bbox = this.getBoundingClientRect();\n var s = d.scrollbarState;\n var pixelVal = y - bbox.top;\n var inverseScale = d3.scale.linear().domain([0, s.scrollableAreaHeight]).range([0, s.totalHeight]).clamp(true);\n if(!(s.topY <= pixelVal && pixelVal <= s.bottomY)) {\n makeDragRow(gd, tableControlView, null, inverseScale(pixelVal - s.barLength / 2))(d);\n }\n })\n .call(d3.behavior.drag()\n .origin(function(d) {\n d3.event.stopPropagation();\n d.scrollbarState.scrollbarScrollInProgress = true;\n return d;\n })\n .on('drag', makeDragRow(gd, tableControlView))\n .on('dragend', function() {\n // fixme emit Plotly event\n })\n );\n\n scrollbarCaptureZone\n .attr('y2', function(d) {\n return d.scrollbarState.scrollableAreaHeight;\n });\n\n // Remove scroll glyph and capture zone on static plots\n // as they don't render properly when converted to PDF\n // in the Chrome PDF viewer\n // https://github.com/plotly/streambed/issues/11618\n if(gd._context.staticPlot) {\n scrollbarGlyph.remove();\n scrollbarCaptureZone.remove();\n }\n}\n\nfunction renderColumnCellTree(gd, tableControlView, columnBlock, allColumnBlock) {\n // fixme this perf hotspot\n // this is performance critical code as scrolling calls it on every revolver switch\n // it appears sufficiently fast but there are plenty of low-hanging fruits for performance optimization\n\n var columnCells = renderColumnCells(columnBlock);\n\n var columnCell = renderColumnCell(columnCells);\n\n supplyStylingValues(columnCell);\n\n var cellRect = renderCellRect(columnCell);\n\n sizeAndStyleRect(cellRect);\n\n var cellTextHolder = renderCellTextHolder(columnCell);\n\n var cellText = renderCellText(cellTextHolder);\n\n setFont(cellText);\n populateCellText(cellText, tableControlView, allColumnBlock, gd);\n\n // doing this at the end when text, and text stlying are set\n setCellHeightAndPositionY(columnCell);\n}\n\nfunction renderColumnCells(columnBlock) {\n var columnCells = columnBlock.selectAll('.' + c.cn.columnCells)\n .data(gup.repeat, gup.keyFun);\n\n columnCells.enter()\n .append('g')\n .classed(c.cn.columnCells, true);\n\n columnCells.exit()\n .remove();\n\n return columnCells;\n}\n\nfunction renderColumnCell(columnCells) {\n var columnCell = columnCells.selectAll('.' + c.cn.columnCell)\n .data(splitData.splitToCells, function(d) {return d.keyWithinBlock;});\n\n columnCell.enter()\n .append('g')\n .classed(c.cn.columnCell, true);\n\n columnCell.exit()\n .remove();\n\n return columnCell;\n}\n\nfunction renderCellRect(columnCell) {\n var cellRect = columnCell.selectAll('.' + c.cn.cellRect)\n .data(gup.repeat, function(d) {return d.keyWithinBlock;});\n\n cellRect.enter()\n .append('rect')\n .classed(c.cn.cellRect, true);\n\n return cellRect;\n}\n\nfunction renderCellText(cellTextHolder) {\n var cellText = cellTextHolder.selectAll('.' + c.cn.cellText)\n .data(gup.repeat, function(d) {return d.keyWithinBlock;});\n\n cellText.enter()\n .append('text')\n .classed(c.cn.cellText, true)\n .style('cursor', function() {return 'auto';})\n .on('mousedown', function() {d3.event.stopPropagation();});\n\n return cellText;\n}\n\nfunction renderCellTextHolder(columnCell) {\n var cellTextHolder = columnCell.selectAll('.' + c.cn.cellTextHolder)\n .data(gup.repeat, function(d) {return d.keyWithinBlock;});\n\n cellTextHolder.enter()\n .append('g')\n .classed(c.cn.cellTextHolder, true)\n .style('shape-rendering', 'geometricPrecision');\n\n return cellTextHolder;\n}\n\nfunction supplyStylingValues(columnCell) {\n columnCell\n .each(function(d, i) {\n var spec = d.calcdata.cells.font;\n var col = d.column.specIndex;\n var font = {\n size: gridPick(spec.size, col, i),\n color: gridPick(spec.color, col, i),\n family: gridPick(spec.family, col, i)\n };\n d.rowNumber = d.key;\n d.align = gridPick(d.calcdata.cells.align, col, i);\n d.cellBorderWidth = gridPick(d.calcdata.cells.line.width, col, i);\n d.font = font;\n });\n}\n\nfunction setFont(cellText) {\n cellText\n .each(function(d) {\n Drawing.font(d3.select(this), d.font);\n });\n}\n\nfunction sizeAndStyleRect(cellRect) {\n cellRect\n .attr('width', function(d) {return d.column.columnWidth;})\n .attr('stroke-width', function(d) {return d.cellBorderWidth;})\n .each(function(d) {\n var atomicSelection = d3.select(this);\n Color.stroke(atomicSelection, gridPick(d.calcdata.cells.line.color, d.column.specIndex, d.rowNumber));\n Color.fill(atomicSelection, gridPick(d.calcdata.cells.fill.color, d.column.specIndex, d.rowNumber));\n });\n}\n\nfunction populateCellText(cellText, tableControlView, allColumnBlock, gd) {\n cellText\n .text(function(d) {\n var col = d.column.specIndex;\n var row = d.rowNumber;\n\n var userSuppliedContent = d.value;\n var stringSupplied = (typeof userSuppliedContent === 'string');\n var hasBreaks = stringSupplied && userSuppliedContent.match(/
/i);\n var userBrokenText = !stringSupplied || hasBreaks;\n d.mayHaveMarkup = stringSupplied && userSuppliedContent.match(/[<&>]/);\n\n var latex = isLatex(userSuppliedContent);\n d.latex = latex;\n\n var prefix = latex ? '' : gridPick(d.calcdata.cells.prefix, col, row) || '';\n var suffix = latex ? '' : gridPick(d.calcdata.cells.suffix, col, row) || '';\n var format = latex ? null : gridPick(d.calcdata.cells.format, col, row) || null;\n\n var prefixSuffixedText = prefix + (format ? numberFormat(format)(d.value) : d.value) + suffix;\n\n var hasWrapSplitCharacter;\n d.wrappingNeeded = !d.wrapped && !userBrokenText && !latex && (hasWrapSplitCharacter = hasWrapCharacter(prefixSuffixedText));\n d.cellHeightMayIncrease = hasBreaks || latex || d.mayHaveMarkup || (hasWrapSplitCharacter === void(0) ? hasWrapCharacter(prefixSuffixedText) : hasWrapSplitCharacter);\n d.needsConvertToTspans = d.mayHaveMarkup || d.wrappingNeeded || d.latex;\n\n var textToRender;\n if(d.wrappingNeeded) {\n var hrefPreservedText = c.wrapSplitCharacter === ' ' ? prefixSuffixedText.replace(/ pTop) {\n pages.push(blockIndex);\n }\n pTop += rowsHeight;\n\n // consider this nice final optimization; put it in `for` condition - caveat, currently the\n // block.allRowsHeight relies on being invalidated, so enabling this opt may not be safe\n // if(pages.length > 1) break;\n }\n\n return pages;\n}\n\nfunction updateBlockYPosition(gd, cellsColumnBlock, tableControlView) {\n var d = flatData(cellsColumnBlock)[0];\n if(d === undefined) return;\n var blocks = d.rowBlocks;\n var calcdata = d.calcdata;\n\n var bottom = firstRowAnchor(blocks, blocks.length);\n var scrollHeight = d.calcdata.groupHeight - headerHeight(d);\n var scrollY = calcdata.scrollY = Math.max(0, Math.min(bottom - scrollHeight, calcdata.scrollY));\n\n var pages = findPagesAndCacheHeights(blocks, scrollY, scrollHeight);\n if(pages.length === 1) {\n if(pages[0] === blocks.length - 1) {\n pages.unshift(pages[0] - 1);\n } else {\n pages.push(pages[0] + 1);\n }\n }\n\n // make phased out page jump by 2 while leaving stationary page intact\n if(pages[0] % 2) {\n pages.reverse();\n }\n\n cellsColumnBlock\n .each(function(d, i) {\n // these values will also be needed when a block is translated again due to growing cell height\n d.page = pages[i];\n d.scrollY = scrollY;\n });\n\n cellsColumnBlock\n .attr('transform', function(d) {\n var yTranslate = firstRowAnchor(d.rowBlocks, d.page) - d.scrollY;\n return strTranslate(0, yTranslate);\n });\n\n // conditionally rerendering panel 0 and 1\n if(gd) {\n conditionalPanelRerender(gd, tableControlView, cellsColumnBlock, pages, d.prevPages, d, 0);\n conditionalPanelRerender(gd, tableControlView, cellsColumnBlock, pages, d.prevPages, d, 1);\n renderScrollbarKit(tableControlView, gd);\n }\n}\n\nfunction makeDragRow(gd, allTableControlView, optionalMultiplier, optionalPosition) {\n return function dragRow(eventD) {\n // may come from whichever DOM event target: drag, wheel, bar... eventD corresponds to event target\n var d = eventD.calcdata ? eventD.calcdata : eventD;\n var tableControlView = allTableControlView.filter(function(dd) {return d.key === dd.key;});\n var multiplier = optionalMultiplier || d.scrollbarState.dragMultiplier;\n\n var initialScrollY = d.scrollY;\n\n d.scrollY = optionalPosition === void(0) ? d.scrollY + multiplier * d3.event.dy : optionalPosition;\n var cellsColumnBlock = tableControlView.selectAll('.' + c.cn.yColumn).selectAll('.' + c.cn.columnBlock).filter(cellsBlock);\n updateBlockYPosition(gd, cellsColumnBlock, tableControlView);\n\n // return false if we've \"used\" the scroll, ie it did something,\n // so the event shouldn't bubble (if appropriate)\n return d.scrollY === initialScrollY;\n };\n}\n\nfunction conditionalPanelRerender(gd, tableControlView, cellsColumnBlock, pages, prevPages, d, revolverIndex) {\n var shouldComponentUpdate = pages[revolverIndex] !== prevPages[revolverIndex];\n if(shouldComponentUpdate) {\n clearTimeout(d.currentRepaint[revolverIndex]);\n d.currentRepaint[revolverIndex] = setTimeout(function() {\n // setTimeout might lag rendering but yields a smoother scroll, because fast scrolling makes\n // some repaints invisible ie. wasteful (DOM work blocks the main thread)\n var toRerender = cellsColumnBlock.filter(function(d, i) {return i === revolverIndex && pages[i] !== prevPages[i];});\n renderColumnCellTree(gd, tableControlView, toRerender, cellsColumnBlock);\n prevPages[revolverIndex] = pages[revolverIndex];\n });\n }\n}\n\nfunction wrapTextMaker(columnBlock, element, tableControlView, gd) {\n return function wrapText() {\n var cellTextHolder = d3.select(element.parentNode);\n cellTextHolder\n .each(function(d) {\n var fragments = d.fragments;\n cellTextHolder.selectAll('tspan.line').each(function(dd, i) {\n fragments[i].width = this.getComputedTextLength();\n });\n // last element is only for measuring the separator character, so it's ignored:\n var separatorLength = fragments[fragments.length - 1].width;\n var rest = fragments.slice(0, -1);\n var currentRow = [];\n var currentAddition, currentAdditionLength;\n var currentRowLength = 0;\n var rowLengthLimit = d.column.columnWidth - 2 * c.cellPad;\n d.value = '';\n while(rest.length) {\n currentAddition = rest.shift();\n currentAdditionLength = currentAddition.width + separatorLength;\n if(currentRowLength + currentAdditionLength > rowLengthLimit) {\n d.value += currentRow.join(c.wrapSpacer) + c.lineBreaker;\n currentRow = [];\n currentRowLength = 0;\n }\n currentRow.push(currentAddition.text);\n currentRowLength += currentAdditionLength;\n }\n if(currentRowLength) {\n d.value += currentRow.join(c.wrapSpacer);\n }\n d.wrapped = true;\n });\n\n // the pre-wrapped text was rendered only for the text measurements\n cellTextHolder.selectAll('tspan.line').remove();\n\n // resupply text, now wrapped\n populateCellText(cellTextHolder.select('.' + c.cn.cellText), tableControlView, columnBlock, gd);\n d3.select(element.parentNode.parentNode).call(setCellHeightAndPositionY);\n };\n}\n\nfunction updateYPositionMaker(columnBlock, element, tableControlView, gd, d) {\n return function updateYPosition() {\n if(d.settledY) return;\n var cellTextHolder = d3.select(element.parentNode);\n var l = getBlock(d);\n var rowIndex = d.key - l.firstRowIndex;\n\n var declaredRowHeight = l.rows[rowIndex].rowHeight;\n\n var requiredHeight = d.cellHeightMayIncrease ? element.parentNode.getBoundingClientRect().height + 2 * c.cellPad : declaredRowHeight;\n\n var finalHeight = Math.max(requiredHeight, declaredRowHeight);\n var increase = finalHeight - l.rows[rowIndex].rowHeight;\n\n if(increase) {\n // current row height increased\n l.rows[rowIndex].rowHeight = finalHeight;\n\n columnBlock\n .selectAll('.' + c.cn.columnCell)\n .call(setCellHeightAndPositionY);\n\n updateBlockYPosition(null, columnBlock.filter(cellsBlock), 0);\n\n // if d.column.type === 'header', then the scrollbar has to be pushed downward to the scrollable area\n // if d.column.type === 'cells', it can still be relevant if total scrolling content height is less than the\n // scrollable window, as increases to row heights may need scrollbar updates\n renderScrollbarKit(tableControlView, gd, true);\n }\n\n cellTextHolder\n .attr('transform', function() {\n // this code block is only invoked for items where d.cellHeightMayIncrease is truthy\n var element = this;\n var columnCellElement = element.parentNode;\n var box = columnCellElement.getBoundingClientRect();\n var rectBox = d3.select(element.parentNode).select('.' + c.cn.cellRect).node().getBoundingClientRect();\n var currentTransform = element.transform.baseVal.consolidate();\n var yPosition = rectBox.top - box.top + (currentTransform ? currentTransform.matrix.f : c.cellPad);\n return strTranslate(xPosition(d, d3.select(element.parentNode).select('.' + c.cn.cellTextHolder).node().getBoundingClientRect().width), yPosition);\n });\n\n d.settledY = true;\n };\n}\n\nfunction xPosition(d, optionalWidth) {\n switch(d.align) {\n case 'left': return c.cellPad;\n case 'right': return d.column.columnWidth - (optionalWidth || 0) - c.cellPad;\n case 'center': return (d.column.columnWidth - (optionalWidth || 0)) / 2;\n default: return c.cellPad;\n }\n}\n\nfunction setCellHeightAndPositionY(columnCell) {\n columnCell\n .attr('transform', function(d) {\n var headerHeight = d.rowBlocks[0].auxiliaryBlocks.reduce(function(p, n) {return p + rowsHeight(n, Infinity);}, 0);\n var l = getBlock(d);\n var rowAnchor = rowsHeight(l, d.key);\n var yOffset = rowAnchor + headerHeight;\n return strTranslate(0, yOffset);\n })\n .selectAll('.' + c.cn.cellRect)\n .attr('height', function(d) {return getRow(getBlock(d), d.key).rowHeight;});\n}\n\nfunction firstRowAnchor(blocks, page) {\n var total = 0;\n for(var i = page - 1; i >= 0; i--) {\n total += allRowsHeight(blocks[i]);\n }\n return total;\n}\n\nfunction rowsHeight(rowBlock, key) {\n var total = 0;\n for(var i = 0; i < rowBlock.rows.length && rowBlock.rows[i].rowIndex < key; i++) {\n total += rowBlock.rows[i].rowHeight;\n }\n return total;\n}\n\nfunction allRowsHeight(rowBlock) {\n var cached = rowBlock.allRowsHeight;\n\n if(cached !== void(0)) {\n return cached;\n }\n\n var total = 0;\n for(var i = 0; i < rowBlock.rows.length; i++) {\n total += rowBlock.rows[i].rowHeight;\n }\n rowBlock.allRowsHeight = total;\n\n return total;\n}\n\nfunction getBlock(d) {return d.rowBlocks[d.page];}\nfunction getRow(l, i) {return l.rows[i - l.firstRowIndex];}\n\n},{\"../../components/color\":366,\"../../components/drawing\":388,\"../../lib\":503,\"../../lib/gup\":500,\"../../lib/svg_text_utils\":529,\"./constants\":1064,\"./data_preparation_helper\":1065,\"./data_split_helpers\":1066,\"@plotly/d3\":58}],1070:[function(_dereq_,module,exports){\n'use strict';\n\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\n\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar domainAttrs = _dereq_('../../plots/domain').attributes;\nvar pieAttrs = _dereq_('../pie/attributes');\nvar sunburstAttrs = _dereq_('../sunburst/attributes');\nvar constants = _dereq_('./constants');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nmodule.exports = {\n labels: sunburstAttrs.labels,\n parents: sunburstAttrs.parents,\n\n values: sunburstAttrs.values,\n branchvalues: sunburstAttrs.branchvalues,\n count: sunburstAttrs.count,\n\n level: sunburstAttrs.level,\n maxdepth: sunburstAttrs.maxdepth,\n\n tiling: {\n packing: {\n valType: 'enumerated',\n values: [\n 'squarify',\n 'binary',\n 'dice',\n 'slice',\n 'slice-dice',\n 'dice-slice'\n ],\n dflt: 'squarify',\n editType: 'plot',\n },\n\n squarifyratio: {\n valType: 'number',\n min: 1,\n dflt: 1,\n editType: 'plot',\n },\n\n flip: {\n valType: 'flaglist',\n flags: [\n 'x',\n 'y'\n ],\n dflt: '',\n editType: 'plot',\n },\n\n pad: {\n valType: 'number',\n min: 0,\n dflt: 3,\n editType: 'plot',\n },\n\n editType: 'calc',\n },\n\n marker: extendFlat({\n pad: {\n t: {\n valType: 'number',\n min: 0,\n editType: 'plot',\n },\n l: {\n valType: 'number',\n min: 0,\n editType: 'plot',\n },\n r: {\n valType: 'number',\n min: 0,\n editType: 'plot',\n },\n b: {\n valType: 'number',\n min: 0,\n editType: 'plot',\n },\n\n editType: 'calc'\n },\n\n colors: sunburstAttrs.marker.colors,\n\n depthfade: {\n valType: 'enumerated',\n values: [true, false, 'reversed'],\n editType: 'style',\n },\n\n line: sunburstAttrs.marker.line,\n\n editType: 'calc'\n },\n colorScaleAttrs('marker', {\n colorAttr: 'colors',\n anim: false // TODO: set to anim: true?\n })\n ),\n\n pathbar: {\n visible: {\n valType: 'boolean',\n dflt: true,\n editType: 'plot',\n },\n\n side: {\n valType: 'enumerated',\n values: [\n 'top',\n 'bottom'\n ],\n dflt: 'top',\n editType: 'plot',\n },\n\n edgeshape: {\n valType: 'enumerated',\n values: [\n '>',\n '<',\n '|',\n '/',\n '\\\\'\n ],\n dflt: '>',\n editType: 'plot',\n },\n\n thickness: {\n valType: 'number',\n min: 12,\n editType: 'plot',\n },\n\n textfont: extendFlat({}, pieAttrs.textfont, {\n }),\n\n editType: 'calc'\n },\n\n text: pieAttrs.text,\n textinfo: sunburstAttrs.textinfo,\n // TODO: incorporate `label` and `value` in the eventData\n texttemplate: texttemplateAttrs({editType: 'plot'}, {\n keys: constants.eventDataKeys.concat(['label', 'value'])\n }),\n\n hovertext: pieAttrs.hovertext,\n hoverinfo: sunburstAttrs.hoverinfo,\n hovertemplate: hovertemplateAttrs({}, {\n keys: constants.eventDataKeys\n }),\n\n textfont: pieAttrs.textfont,\n insidetextfont: pieAttrs.insidetextfont,\n outsidetextfont: extendFlat({}, pieAttrs.outsidetextfont, {\n }),\n\n textposition: {\n valType: 'enumerated',\n values: [\n 'top left', 'top center', 'top right',\n 'middle left', 'middle center', 'middle right',\n 'bottom left', 'bottom center', 'bottom right'\n ],\n dflt: 'top left',\n editType: 'plot',\n },\n sort: pieAttrs.sort,\n root: sunburstAttrs.root,\n\n domain: domainAttrs({name: 'treemap', trace: true, editType: 'calc'}),\n};\n\n},{\"../../components/colorscale/attributes\":373,\"../../lib/extend\":493,\"../../plots/domain\":584,\"../../plots/template_attributes\":633,\"../pie/attributes\":899,\"../sunburst/attributes\":1044,\"./constants\":1073}],1071:[function(_dereq_,module,exports){\n'use strict';\n\nvar plots = _dereq_('../../plots/plots');\n\nexports.name = 'treemap';\n\nexports.plot = function(gd, traces, transitionOpts, makeOnCompleteCallback) {\n plots.plotBasePlot(exports.name, gd, traces, transitionOpts, makeOnCompleteCallback);\n};\n\nexports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n plots.cleanBasePlot(exports.name, newFullData, newFullLayout, oldFullData, oldFullLayout);\n};\n\n},{\"../../plots/plots\":619}],1072:[function(_dereq_,module,exports){\n'use strict';\n\nvar calc = _dereq_('../sunburst/calc');\n\nexports.calc = function(gd, trace) {\n return calc.calc(gd, trace);\n};\n\nexports.crossTraceCalc = function(gd) {\n return calc._runCrossTraceCalc('treemap', gd);\n};\n\n},{\"../sunburst/calc\":1046}],1073:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n CLICK_TRANSITION_TIME: 750,\n CLICK_TRANSITION_EASING: 'poly',\n eventDataKeys: [\n // string\n 'currentPath',\n 'root',\n 'entry',\n // no need to add 'parent' here\n\n // percentages i.e. ratios\n 'percentRoot',\n 'percentEntry',\n 'percentParent'\n ],\n gapWithPathbar: 1 // i.e. one pixel\n};\n\n},{}],1074:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar attributes = _dereq_('./attributes');\nvar Color = _dereq_('../../components/color');\nvar handleDomainDefaults = _dereq_('../../plots/domain').defaults;\nvar handleText = _dereq_('../bar/defaults').handleText;\nvar TEXTPAD = _dereq_('../bar/constants').TEXTPAD;\n\nvar Colorscale = _dereq_('../../components/colorscale');\nvar hasColorscale = Colorscale.hasColorscale;\nvar colorscaleDefaults = Colorscale.handleDefaults;\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var labels = coerce('labels');\n var parents = coerce('parents');\n\n if(!labels || !labels.length || !parents || !parents.length) {\n traceOut.visible = false;\n return;\n }\n\n var vals = coerce('values');\n if(vals && vals.length) {\n coerce('branchvalues');\n } else {\n coerce('count');\n }\n\n coerce('level');\n coerce('maxdepth');\n\n var packing = coerce('tiling.packing');\n if(packing === 'squarify') {\n coerce('tiling.squarifyratio');\n }\n\n coerce('tiling.flip');\n coerce('tiling.pad');\n\n var text = coerce('text');\n coerce('texttemplate');\n if(!traceOut.texttemplate) coerce('textinfo', Array.isArray(text) ? 'text+label' : 'label');\n\n coerce('hovertext');\n coerce('hovertemplate');\n\n var hasPathbar = coerce('pathbar.visible');\n\n var textposition = 'auto';\n handleText(traceIn, traceOut, layout, coerce, textposition, {\n hasPathbar: hasPathbar,\n moduleHasSelected: false,\n moduleHasUnselected: false,\n moduleHasConstrain: false,\n moduleHasCliponaxis: false,\n moduleHasTextangle: false,\n moduleHasInsideanchor: false\n });\n coerce('textposition');\n var bottomText = traceOut.textposition.indexOf('bottom') !== -1;\n\n var lineWidth = coerce('marker.line.width');\n if(lineWidth) coerce('marker.line.color', layout.paper_bgcolor);\n\n var colors = coerce('marker.colors');\n var withColorscale = traceOut._hasColorscale = (\n hasColorscale(traceIn, 'marker', 'colors') ||\n (traceIn.marker || {}).coloraxis // N.B. special logic to consider \"values\" colorscales\n );\n if(withColorscale) {\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: 'marker.', cLetter: 'c'});\n } else {\n coerce('marker.depthfade', !(colors || []).length);\n }\n\n var headerSize = traceOut.textfont.size * 2;\n\n coerce('marker.pad.t', bottomText ? headerSize / 4 : headerSize);\n coerce('marker.pad.l', headerSize / 4);\n coerce('marker.pad.r', headerSize / 4);\n coerce('marker.pad.b', bottomText ? headerSize : headerSize / 4);\n\n traceOut._hovered = {\n marker: {\n line: {\n width: 2,\n color: Color.contrast(layout.paper_bgcolor)\n }\n }\n };\n\n if(hasPathbar) {\n // This works even for multi-line labels as treemap pathbar trim out line breaks\n coerce('pathbar.thickness', traceOut.pathbar.textfont.size + 2 * TEXTPAD);\n\n coerce('pathbar.side');\n coerce('pathbar.edgeshape');\n }\n\n coerce('sort');\n\n coerce('root.color');\n\n handleDomainDefaults(traceOut, layout, coerce);\n\n // do not support transforms for now\n traceOut._length = null;\n};\n\n},{\"../../components/color\":366,\"../../components/colorscale\":378,\"../../lib\":503,\"../../plots/domain\":584,\"../bar/constants\":650,\"../bar/defaults\":652,\"./attributes\":1070}],1075:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar helpers = _dereq_('../sunburst/helpers');\nvar uniformText = _dereq_('../bar/uniform_text');\nvar clearMinTextSize = uniformText.clearMinTextSize;\nvar resizeText = _dereq_('../bar/style').resizeText;\n\nvar plotOne = _dereq_('./plot_one');\n\nmodule.exports = function _plot(gd, cdmodule, transitionOpts, makeOnCompleteCallback, opts) {\n var type = opts.type;\n var drawDescendants = opts.drawDescendants;\n\n var fullLayout = gd._fullLayout;\n var layer = fullLayout['_' + type + 'layer'];\n var join, onComplete;\n\n // If transition config is provided, then it is only a partial replot and traces not\n // updated are removed.\n var isFullReplot = !transitionOpts;\n\n clearMinTextSize(type, fullLayout);\n\n join = layer.selectAll('g.trace.' + type)\n .data(cdmodule, function(cd) { return cd[0].trace.uid; });\n\n join.enter().append('g')\n .classed('trace', true)\n .classed(type, true);\n\n join.order();\n\n if(!fullLayout.uniformtext.mode && helpers.hasTransition(transitionOpts)) {\n if(makeOnCompleteCallback) {\n // If it was passed a callback to register completion, make a callback. If\n // this is created, then it must be executed on completion, otherwise the\n // pos-transition redraw will not execute:\n onComplete = makeOnCompleteCallback();\n }\n\n var transition = d3.transition()\n .duration(transitionOpts.duration)\n .ease(transitionOpts.easing)\n .each('end', function() { onComplete && onComplete(); })\n .each('interrupt', function() { onComplete && onComplete(); });\n\n transition.each(function() {\n // Must run the selection again since otherwise enters/updates get grouped together\n // and these get executed out of order. Except we need them in order!\n layer.selectAll('g.trace').each(function(cd) {\n plotOne(gd, cd, this, transitionOpts, drawDescendants);\n });\n });\n } else {\n join.each(function(cd) {\n plotOne(gd, cd, this, transitionOpts, drawDescendants);\n });\n\n if(fullLayout.uniformtext.mode) {\n resizeText(gd, layer.selectAll('.trace'), type);\n }\n }\n\n if(isFullReplot) {\n join.exit().remove();\n }\n};\n\n},{\"../bar/style\":662,\"../bar/uniform_text\":664,\"../sunburst/helpers\":1050,\"./plot_one\":1084,\"@plotly/d3\":58}],1076:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Lib = _dereq_('../../lib');\nvar Drawing = _dereq_('../../components/drawing');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\n\nvar partition = _dereq_('./partition');\nvar styleOne = _dereq_('./style').styleOne;\nvar constants = _dereq_('./constants');\nvar helpers = _dereq_('../sunburst/helpers');\nvar attachFxHandlers = _dereq_('../sunburst/fx');\n\nvar onPathbar = true; // for Ancestors\n\nmodule.exports = function drawAncestors(gd, cd, entry, slices, opts) {\n var barDifY = opts.barDifY;\n var width = opts.width;\n var height = opts.height;\n var viewX = opts.viewX;\n var viewY = opts.viewY;\n var pathSlice = opts.pathSlice;\n var toMoveInsideSlice = opts.toMoveInsideSlice;\n var strTransform = opts.strTransform;\n var hasTransition = opts.hasTransition;\n var handleSlicesExit = opts.handleSlicesExit;\n var makeUpdateSliceInterpolator = opts.makeUpdateSliceInterpolator;\n var makeUpdateTextInterpolator = opts.makeUpdateTextInterpolator;\n var refRect = {};\n\n var fullLayout = gd._fullLayout;\n var cd0 = cd[0];\n var trace = cd0.trace;\n var hierarchy = cd0.hierarchy;\n\n var eachWidth = width / trace._entryDepth;\n\n var pathIds = helpers.listPath(entry.data, 'id');\n\n var sliceData = partition(hierarchy.copy(), [width, height], {\n packing: 'dice',\n pad: {\n inner: 0,\n top: 0,\n left: 0,\n right: 0,\n bottom: 0\n }\n }).descendants();\n\n // edit slices that show up on graph\n sliceData = sliceData.filter(function(pt) {\n var level = pathIds.indexOf(pt.data.id);\n if(level === -1) return false;\n\n pt.x0 = eachWidth * level;\n pt.x1 = eachWidth * (level + 1);\n pt.y0 = barDifY;\n pt.y1 = barDifY + height;\n\n pt.onPathbar = true;\n\n return true;\n });\n\n sliceData.reverse();\n\n slices = slices.data(sliceData, helpers.getPtId);\n\n slices.enter().append('g')\n .classed('pathbar', true);\n\n handleSlicesExit(slices, onPathbar, refRect, [width, height], pathSlice);\n\n slices.order();\n\n var updateSlices = slices;\n if(hasTransition) {\n updateSlices = updateSlices.transition().each('end', function() {\n // N.B. gd._transitioning is (still) *true* by the time\n // transition updates get here\n var sliceTop = d3.select(this);\n helpers.setSliceCursor(sliceTop, gd, {\n hideOnRoot: false,\n hideOnLeaves: false,\n isTransitioning: false\n });\n });\n }\n\n updateSlices.each(function(pt) {\n // for bbox\n pt._x0 = viewX(pt.x0);\n pt._x1 = viewX(pt.x1);\n pt._y0 = viewY(pt.y0);\n pt._y1 = viewY(pt.y1);\n\n pt._hoverX = viewX(pt.x1 - Math.min(width, height) / 2);\n pt._hoverY = viewY(pt.y1 - height / 2);\n\n var sliceTop = d3.select(this);\n\n var slicePath = Lib.ensureSingle(sliceTop, 'path', 'surface', function(s) {\n s.style('pointer-events', 'all');\n });\n\n if(hasTransition) {\n slicePath.transition().attrTween('d', function(pt2) {\n var interp = makeUpdateSliceInterpolator(pt2, onPathbar, refRect, [width, height]);\n return function(t) { return pathSlice(interp(t)); };\n });\n } else {\n slicePath.attr('d', pathSlice);\n }\n\n sliceTop\n .call(attachFxHandlers, entry, gd, cd, {\n styleOne: styleOne,\n eventDataKeys: constants.eventDataKeys,\n transitionTime: constants.CLICK_TRANSITION_TIME,\n transitionEasing: constants.CLICK_TRANSITION_EASING\n })\n .call(helpers.setSliceCursor, gd, {\n hideOnRoot: false,\n hideOnLeaves: false,\n isTransitioning: gd._transitioning\n });\n\n slicePath.call(styleOne, pt, trace, {\n hovered: false\n });\n\n pt._text = (helpers.getPtLabel(pt) || '').split('
').join(' ') || '';\n\n var sliceTextGroup = Lib.ensureSingle(sliceTop, 'g', 'slicetext');\n var sliceText = Lib.ensureSingle(sliceTextGroup, 'text', '', function(s) {\n // prohibit tex interpretation until we can handle\n // tex and regular text together\n s.attr('data-notex', 1);\n });\n\n var font = Lib.ensureUniformFontSize(gd, helpers.determineTextFont(trace, pt, fullLayout.font, {\n onPathbar: true\n }));\n\n sliceText.text(pt._text || ' ') // use one space character instead of a blank string to avoid jumps during transition\n .classed('slicetext', true)\n .attr('text-anchor', 'start')\n .call(Drawing.font, font)\n .call(svgTextUtils.convertToTspans, gd);\n\n pt.textBB = Drawing.bBox(sliceText.node());\n pt.transform = toMoveInsideSlice(pt, {\n fontSize: font.size,\n onPathbar: true\n });\n pt.transform.fontSize = font.size;\n\n if(hasTransition) {\n sliceText.transition().attrTween('transform', function(pt2) {\n var interp = makeUpdateTextInterpolator(pt2, onPathbar, refRect, [width, height]);\n return function(t) { return strTransform(interp(t)); };\n });\n } else {\n sliceText.attr('transform', strTransform(pt));\n }\n });\n};\n\n},{\"../../components/drawing\":388,\"../../lib\":503,\"../../lib/svg_text_utils\":529,\"../sunburst/fx\":1049,\"../sunburst/helpers\":1050,\"./constants\":1073,\"./partition\":1082,\"./style\":1085,\"@plotly/d3\":58}],1077:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Lib = _dereq_('../../lib');\nvar Drawing = _dereq_('../../components/drawing');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\n\nvar partition = _dereq_('./partition');\nvar styleOne = _dereq_('./style').styleOne;\nvar constants = _dereq_('./constants');\nvar helpers = _dereq_('../sunburst/helpers');\nvar attachFxHandlers = _dereq_('../sunburst/fx');\nvar formatSliceLabel = _dereq_('../sunburst/plot').formatSliceLabel;\n\nvar onPathbar = false; // for Descendants\n\nmodule.exports = function drawDescendants(gd, cd, entry, slices, opts) {\n var width = opts.width;\n var height = opts.height;\n var viewX = opts.viewX;\n var viewY = opts.viewY;\n var pathSlice = opts.pathSlice;\n var toMoveInsideSlice = opts.toMoveInsideSlice;\n var strTransform = opts.strTransform;\n var hasTransition = opts.hasTransition;\n var handleSlicesExit = opts.handleSlicesExit;\n var makeUpdateSliceInterpolator = opts.makeUpdateSliceInterpolator;\n var makeUpdateTextInterpolator = opts.makeUpdateTextInterpolator;\n var prevEntry = opts.prevEntry;\n var refRect = {};\n\n var fullLayout = gd._fullLayout;\n var cd0 = cd[0];\n var trace = cd0.trace;\n\n var hasLeft = trace.textposition.indexOf('left') !== -1;\n var hasRight = trace.textposition.indexOf('right') !== -1;\n var hasBottom = trace.textposition.indexOf('bottom') !== -1;\n\n var noRoomForHeader = (!hasBottom && !trace.marker.pad.t) || (hasBottom && !trace.marker.pad.b);\n\n // N.B. slice data isn't the calcdata,\n // grab corresponding calcdata item in sliceData[i].data.data\n var allData = partition(entry, [width, height], {\n packing: trace.tiling.packing,\n squarifyratio: trace.tiling.squarifyratio,\n flipX: trace.tiling.flip.indexOf('x') > -1,\n flipY: trace.tiling.flip.indexOf('y') > -1,\n pad: {\n inner: trace.tiling.pad,\n top: trace.marker.pad.t,\n left: trace.marker.pad.l,\n right: trace.marker.pad.r,\n bottom: trace.marker.pad.b,\n }\n });\n\n var sliceData = allData.descendants();\n\n var minVisibleDepth = Infinity;\n var maxVisibleDepth = -Infinity;\n sliceData.forEach(function(pt) {\n var depth = pt.depth;\n if(depth >= trace._maxDepth) {\n // hide slices that won't show up on graph\n pt.x0 = pt.x1 = (pt.x0 + pt.x1) / 2;\n pt.y0 = pt.y1 = (pt.y0 + pt.y1) / 2;\n } else {\n minVisibleDepth = Math.min(minVisibleDepth, depth);\n maxVisibleDepth = Math.max(maxVisibleDepth, depth);\n }\n });\n\n slices = slices.data(sliceData, helpers.getPtId);\n\n trace._maxVisibleLayers = isFinite(maxVisibleDepth) ? maxVisibleDepth - minVisibleDepth + 1 : 0;\n\n slices.enter().append('g')\n .classed('slice', true);\n\n handleSlicesExit(slices, onPathbar, refRect, [width, height], pathSlice);\n\n slices.order();\n\n // next coords of previous entry\n var nextOfPrevEntry = null;\n if(hasTransition && prevEntry) {\n var prevEntryId = helpers.getPtId(prevEntry);\n slices.each(function(pt) {\n if(nextOfPrevEntry === null && (helpers.getPtId(pt) === prevEntryId)) {\n nextOfPrevEntry = {\n x0: pt.x0,\n x1: pt.x1,\n y0: pt.y0,\n y1: pt.y1\n };\n }\n });\n }\n\n var getRefRect = function() {\n return nextOfPrevEntry || {\n x0: 0,\n x1: width,\n y0: 0,\n y1: height\n };\n };\n\n var updateSlices = slices;\n if(hasTransition) {\n updateSlices = updateSlices.transition().each('end', function() {\n // N.B. gd._transitioning is (still) *true* by the time\n // transition updates get here\n var sliceTop = d3.select(this);\n helpers.setSliceCursor(sliceTop, gd, {\n hideOnRoot: true,\n hideOnLeaves: false,\n isTransitioning: false\n });\n });\n }\n\n updateSlices.each(function(pt) {\n var isHeader = helpers.isHeader(pt, trace);\n\n // for bbox\n pt._x0 = viewX(pt.x0);\n pt._x1 = viewX(pt.x1);\n pt._y0 = viewY(pt.y0);\n pt._y1 = viewY(pt.y1);\n\n pt._hoverX = viewX(pt.x1 - trace.marker.pad.r),\n pt._hoverY = hasBottom ?\n viewY(pt.y1 - trace.marker.pad.b / 2) :\n viewY(pt.y0 + trace.marker.pad.t / 2);\n\n var sliceTop = d3.select(this);\n\n var slicePath = Lib.ensureSingle(sliceTop, 'path', 'surface', function(s) {\n s.style('pointer-events', 'all');\n });\n\n if(hasTransition) {\n slicePath.transition().attrTween('d', function(pt2) {\n var interp = makeUpdateSliceInterpolator(pt2, onPathbar, getRefRect(), [width, height]);\n return function(t) { return pathSlice(interp(t)); };\n });\n } else {\n slicePath.attr('d', pathSlice);\n }\n\n sliceTop\n .call(attachFxHandlers, entry, gd, cd, {\n styleOne: styleOne,\n eventDataKeys: constants.eventDataKeys,\n transitionTime: constants.CLICK_TRANSITION_TIME,\n transitionEasing: constants.CLICK_TRANSITION_EASING\n })\n .call(helpers.setSliceCursor, gd, { isTransitioning: gd._transitioning });\n\n slicePath.call(styleOne, pt, trace, {\n hovered: false\n });\n\n if(pt.x0 === pt.x1 || pt.y0 === pt.y1) {\n pt._text = '';\n } else {\n if(isHeader) {\n pt._text = noRoomForHeader ? '' : helpers.getPtLabel(pt) || '';\n } else {\n pt._text = formatSliceLabel(pt, entry, trace, cd, fullLayout) || '';\n }\n }\n\n var sliceTextGroup = Lib.ensureSingle(sliceTop, 'g', 'slicetext');\n var sliceText = Lib.ensureSingle(sliceTextGroup, 'text', '', function(s) {\n // prohibit tex interpretation until we can handle\n // tex and regular text together\n s.attr('data-notex', 1);\n });\n\n var font = Lib.ensureUniformFontSize(gd, helpers.determineTextFont(trace, pt, fullLayout.font));\n\n sliceText.text(pt._text || ' ') // use one space character instead of a blank string to avoid jumps during transition\n .classed('slicetext', true)\n .attr('text-anchor', hasRight ? 'end' : (hasLeft || isHeader) ? 'start' : 'middle')\n .call(Drawing.font, font)\n .call(svgTextUtils.convertToTspans, gd);\n\n pt.textBB = Drawing.bBox(sliceText.node());\n pt.transform = toMoveInsideSlice(pt, {\n fontSize: font.size,\n isHeader: isHeader\n });\n pt.transform.fontSize = font.size;\n\n if(hasTransition) {\n sliceText.transition().attrTween('transform', function(pt2) {\n var interp = makeUpdateTextInterpolator(pt2, onPathbar, getRefRect(), [width, height]);\n return function(t) { return strTransform(interp(t)); };\n });\n } else {\n sliceText.attr('transform', strTransform(pt));\n }\n });\n\n return nextOfPrevEntry;\n};\n\n},{\"../../components/drawing\":388,\"../../lib\":503,\"../../lib/svg_text_utils\":529,\"../sunburst/fx\":1049,\"../sunburst/helpers\":1050,\"../sunburst/plot\":1054,\"./constants\":1073,\"./partition\":1082,\"./style\":1085,\"@plotly/d3\":58}],1078:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function flipTree(node, size, opts) {\n var tmp;\n\n if(opts.swapXY) {\n // swap x0 and y0\n tmp = node.x0;\n node.x0 = node.y0;\n node.y0 = tmp;\n\n // swap x1 and y1\n tmp = node.x1;\n node.x1 = node.y1;\n node.y1 = tmp;\n }\n\n if(opts.flipX) {\n tmp = node.x0;\n node.x0 = size[0] - node.x1;\n node.x1 = size[0] - tmp;\n }\n\n if(opts.flipY) {\n tmp = node.y0;\n node.y0 = size[1] - node.y1;\n node.y1 = size[1] - tmp;\n }\n\n var children = node.children;\n if(children) {\n for(var i = 0; i < children.length; i++) {\n flipTree(children[i], size, opts);\n }\n }\n};\n\n},{}],1079:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'trace',\n name: 'treemap',\n basePlotModule: _dereq_('./base_plot'),\n categories: [],\n animatable: true,\n\n attributes: _dereq_('./attributes'),\n layoutAttributes: _dereq_('./layout_attributes'),\n supplyDefaults: _dereq_('./defaults'),\n supplyLayoutDefaults: _dereq_('./layout_defaults'),\n\n calc: _dereq_('./calc').calc,\n crossTraceCalc: _dereq_('./calc').crossTraceCalc,\n\n plot: _dereq_('./plot'),\n style: _dereq_('./style').style,\n\n colorbar: _dereq_('../scatter/marker_colorbar'),\n\n meta: {\n }\n};\n\n},{\"../scatter/marker_colorbar\":943,\"./attributes\":1070,\"./base_plot\":1071,\"./calc\":1072,\"./defaults\":1074,\"./layout_attributes\":1080,\"./layout_defaults\":1081,\"./plot\":1083,\"./style\":1085}],1080:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n treemapcolorway: {\n valType: 'colorlist',\n editType: 'calc',\n },\n extendtreemapcolors: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n }\n};\n\n},{}],1081:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar layoutAttributes = _dereq_('./layout_attributes');\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(layoutIn, layoutOut, layoutAttributes, attr, dflt);\n }\n coerce('treemapcolorway', layoutOut.colorway);\n coerce('extendtreemapcolors');\n};\n\n},{\"../../lib\":503,\"./layout_attributes\":1080}],1082:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3Hierarchy = _dereq_('d3-hierarchy');\nvar flipTree = _dereq_('./flip_tree');\n\nmodule.exports = function partition(entry, size, opts) {\n var flipX = opts.flipX;\n var flipY = opts.flipY;\n var swapXY = opts.packing === 'dice-slice';\n\n var top = opts.pad[flipY ? 'bottom' : 'top'];\n var left = opts.pad[flipX ? 'right' : 'left'];\n var right = opts.pad[flipX ? 'left' : 'right'];\n var bottom = opts.pad[flipY ? 'top' : 'bottom'];\n\n var tmp;\n if(swapXY) {\n tmp = left;\n left = top;\n top = tmp;\n\n tmp = right;\n right = bottom;\n bottom = tmp;\n }\n\n var result = d3Hierarchy\n .treemap()\n .tile(getTilingMethod(opts.packing, opts.squarifyratio))\n .paddingInner(opts.pad.inner)\n .paddingLeft(left)\n .paddingRight(right)\n .paddingTop(top)\n .paddingBottom(bottom)\n .size(\n swapXY ? [size[1], size[0]] : size\n )(entry);\n\n if(swapXY || flipX || flipY) {\n flipTree(result, size, {\n swapXY: swapXY,\n flipX: flipX,\n flipY: flipY\n });\n }\n return result;\n};\n\nfunction getTilingMethod(key, squarifyratio) {\n switch(key) {\n case 'squarify':\n return d3Hierarchy.treemapSquarify.ratio(squarifyratio);\n case 'binary':\n return d3Hierarchy.treemapBinary;\n case 'dice':\n return d3Hierarchy.treemapDice;\n case 'slice':\n return d3Hierarchy.treemapSlice;\n default: // i.e. 'slice-dice' | 'dice-slice'\n return d3Hierarchy.treemapSliceDice;\n }\n}\n\n},{\"./flip_tree\":1078,\"d3-hierarchy\":115}],1083:[function(_dereq_,module,exports){\n'use strict';\n\nvar draw = _dereq_('./draw');\nvar drawDescendants = _dereq_('./draw_descendants');\n\nmodule.exports = function _plot(gd, cdmodule, transitionOpts, makeOnCompleteCallback) {\n return draw(gd, cdmodule, transitionOpts, makeOnCompleteCallback, {\n type: 'treemap',\n drawDescendants: drawDescendants\n });\n};\n\n},{\"./draw\":1075,\"./draw_descendants\":1077}],1084:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar interpolate = _dereq_('d3-interpolate').interpolate;\n\nvar helpers = _dereq_('../sunburst/helpers');\n\nvar Lib = _dereq_('../../lib');\nvar TEXTPAD = _dereq_('../bar/constants').TEXTPAD;\nvar barPlot = _dereq_('../bar/plot');\nvar toMoveInsideBar = barPlot.toMoveInsideBar;\nvar uniformText = _dereq_('../bar/uniform_text');\nvar recordMinTextSize = uniformText.recordMinTextSize;\nvar constants = _dereq_('./constants');\nvar drawAncestors = _dereq_('./draw_ancestors');\n\nfunction getKey(pt) {\n return helpers.isHierarchyRoot(pt) ?\n '' : // don't use the dummyId\n helpers.getPtId(pt);\n}\n\nmodule.exports = function plotOne(gd, cd, element, transitionOpts, drawDescendants) {\n var fullLayout = gd._fullLayout;\n var cd0 = cd[0];\n var trace = cd0.trace;\n var type = trace.type;\n var isIcicle = type === 'icicle';\n\n var hierarchy = cd0.hierarchy;\n var entry = helpers.findEntryWithLevel(hierarchy, trace.level);\n\n var gTrace = d3.select(element);\n var selAncestors = gTrace.selectAll('g.pathbar');\n var selDescendants = gTrace.selectAll('g.slice');\n\n if(!entry) {\n selAncestors.remove();\n selDescendants.remove();\n return;\n }\n\n var isRoot = helpers.isHierarchyRoot(entry);\n var hasTransition = !fullLayout.uniformtext.mode && helpers.hasTransition(transitionOpts);\n\n var maxDepth = helpers.getMaxDepth(trace);\n var hasVisibleDepth = function(pt) {\n return pt.data.depth - entry.data.depth < maxDepth;\n };\n\n var gs = fullLayout._size;\n var domain = trace.domain;\n\n var vpw = gs.w * (domain.x[1] - domain.x[0]);\n var vph = gs.h * (domain.y[1] - domain.y[0]);\n var barW = vpw;\n var barH = trace.pathbar.thickness;\n var barPad = trace.marker.line.width + constants.gapWithPathbar;\n var barDifY = !trace.pathbar.visible ? 0 :\n trace.pathbar.side.indexOf('bottom') > -1 ? vph + barPad : -(barH + barPad);\n\n var pathbarOrigin = {\n x0: barW, // slide to the right\n x1: barW,\n y0: barDifY,\n y1: barDifY + barH\n };\n\n var findClosestEdge = function(pt, ref, size) {\n var e = trace.tiling.pad;\n var isLeftOfRect = function(x) { return x - e <= ref.x0; };\n var isRightOfRect = function(x) { return x + e >= ref.x1; };\n var isBottomOfRect = function(y) { return y - e <= ref.y0; };\n var isTopOfRect = function(y) { return y + e >= ref.y1; };\n\n if(pt.x0 === ref.x0 && pt.x1 === ref.x1 && pt.y0 === ref.y0 && pt.y1 === ref.y1) {\n return {\n x0: pt.x0,\n x1: pt.x1,\n y0: pt.y0,\n y1: pt.y1\n };\n }\n\n return {\n x0: isLeftOfRect(pt.x0 - e) ? 0 : isRightOfRect(pt.x0 - e) ? size[0] : pt.x0,\n x1: isLeftOfRect(pt.x1 + e) ? 0 : isRightOfRect(pt.x1 + e) ? size[0] : pt.x1,\n y0: isBottomOfRect(pt.y0 - e) ? 0 : isTopOfRect(pt.y0 - e) ? size[1] : pt.y0,\n y1: isBottomOfRect(pt.y1 + e) ? 0 : isTopOfRect(pt.y1 + e) ? size[1] : pt.y1\n };\n };\n\n // stash of 'previous' position data used by tweening functions\n var prevEntry = null;\n var prevLookupPathbar = {};\n var prevLookupSlices = {};\n var nextOfPrevEntry = null;\n var getPrev = function(pt, onPathbar) {\n return onPathbar ?\n prevLookupPathbar[getKey(pt)] :\n prevLookupSlices[getKey(pt)];\n };\n\n var getOrigin = function(pt, onPathbar, refRect, size) {\n if(onPathbar) {\n return prevLookupPathbar[getKey(hierarchy)] || pathbarOrigin;\n } else {\n var ref = prevLookupSlices[trace.level] || refRect;\n\n if(hasVisibleDepth(pt)) { // case of an empty object - happens when maxdepth is set\n return findClosestEdge(pt, ref, size);\n }\n }\n return {};\n };\n\n // N.B. handle multiple-root special case\n if(cd0.hasMultipleRoots && isRoot) {\n maxDepth++;\n }\n\n trace._maxDepth = maxDepth;\n trace._backgroundColor = fullLayout.paper_bgcolor;\n trace._entryDepth = entry.data.depth;\n trace._atRootLevel = isRoot;\n\n var cenX = -vpw / 2 + gs.l + gs.w * (domain.x[1] + domain.x[0]) / 2;\n var cenY = -vph / 2 + gs.t + gs.h * (1 - (domain.y[1] + domain.y[0]) / 2);\n\n var viewMapX = function(x) { return cenX + x; };\n var viewMapY = function(y) { return cenY + y; };\n\n var barY0 = viewMapY(0);\n var barX0 = viewMapX(0);\n\n var viewBarX = function(x) { return barX0 + x; };\n var viewBarY = function(y) { return barY0 + y; };\n\n function pos(x, y) {\n return x + ',' + y;\n }\n\n var xStart = viewBarX(0);\n var limitX0 = function(p) { p.x = Math.max(xStart, p.x); };\n\n var edgeshape = trace.pathbar.edgeshape;\n\n // pathbar(directory) path generation fn\n var pathAncestor = function(d) {\n var _x0 = viewBarX(Math.max(Math.min(d.x0, d.x0), 0));\n var _x1 = viewBarX(Math.min(Math.max(d.x1, d.x1), barW));\n var _y0 = viewBarY(d.y0);\n var _y1 = viewBarY(d.y1);\n\n var halfH = barH / 2;\n\n var pL = {};\n var pR = {};\n\n pL.x = _x0;\n pR.x = _x1;\n\n pL.y = pR.y = (_y0 + _y1) / 2;\n\n var pA = {x: _x0, y: _y0};\n var pB = {x: _x1, y: _y0};\n var pC = {x: _x1, y: _y1};\n var pD = {x: _x0, y: _y1};\n\n if(edgeshape === '>') {\n pA.x -= halfH;\n pB.x -= halfH;\n pC.x -= halfH;\n pD.x -= halfH;\n } else if(edgeshape === '/') {\n pC.x -= halfH;\n pD.x -= halfH;\n pL.x -= halfH / 2;\n pR.x -= halfH / 2;\n } else if(edgeshape === '\\\\') {\n pA.x -= halfH;\n pB.x -= halfH;\n pL.x -= halfH / 2;\n pR.x -= halfH / 2;\n } else if(edgeshape === '<') {\n pL.x -= halfH;\n pR.x -= halfH;\n }\n\n limitX0(pA);\n limitX0(pD);\n limitX0(pL);\n\n limitX0(pB);\n limitX0(pC);\n limitX0(pR);\n\n return (\n 'M' + pos(pA.x, pA.y) +\n 'L' + pos(pB.x, pB.y) +\n 'L' + pos(pR.x, pR.y) +\n 'L' + pos(pC.x, pC.y) +\n 'L' + pos(pD.x, pD.y) +\n 'L' + pos(pL.x, pL.y) +\n 'Z'\n );\n };\n\n // slice path generation fn\n var pathDescendant = function(d) {\n var _x0 = viewMapX(d.x0);\n var _x1 = viewMapX(d.x1);\n var _y0 = viewMapY(d.y0);\n var _y1 = viewMapY(d.y1);\n\n var dx = _x1 - _x0;\n var dy = _y1 - _y0;\n if(!dx || !dy) return '';\n\n var FILLET = 0; // TODO: may expose this constant\n\n var r = (\n dx > 2 * FILLET &&\n dy > 2 * FILLET\n ) ? FILLET : 0;\n\n var arc = function(rx, ry) { return r ? 'a' + pos(r, r) + ' 0 0 1 ' + pos(rx, ry) : ''; };\n\n return (\n 'M' + pos(_x0, _y0 + r) +\n arc(r, -r) +\n 'L' + pos(_x1 - r, _y0) +\n arc(r, r) +\n 'L' + pos(_x1, _y1 - r) +\n arc(-r, r) +\n 'L' + pos(_x0 + r, _y1) +\n arc(-r, -r) + 'Z'\n );\n };\n\n var toMoveInsideSlice = function(pt, opts) {\n var x0 = pt.x0;\n var x1 = pt.x1;\n var y0 = pt.y0;\n var y1 = pt.y1;\n var textBB = pt.textBB;\n\n var hasFlag = function(f) { return trace.textposition.indexOf(f) !== -1; };\n\n var hasBottom = hasFlag('bottom');\n var hasTop = hasFlag('top') || (opts.isHeader && !hasBottom);\n\n var anchor =\n hasTop ? 'start' :\n hasBottom ? 'end' : 'middle';\n\n var hasRight = hasFlag('right');\n var hasLeft = hasFlag('left') || opts.onPathbar;\n\n var leftToRight =\n hasLeft ? -1 :\n hasRight ? 1 : 0;\n\n // Note that `pad` is just an integer for `icicle`` traces where\n // `pad` is a hashmap for treemap: pad.t, pad.b, pad.l, and pad.r\n var pad = trace[isIcicle ? 'tiling' : 'marker'].pad;\n if(opts.isHeader) {\n x0 += (isIcicle ? pad : pad.l) - TEXTPAD;\n x1 -= (isIcicle ? pad : pad.r) - TEXTPAD;\n if(x0 >= x1) {\n var mid = (x0 + x1) / 2;\n x0 = mid;\n x1 = mid;\n }\n\n // limit the drawing area for headers\n var limY;\n if(hasBottom) {\n limY = y1 - (isIcicle ? pad : pad.b);\n if(y0 < limY && limY < y1) y0 = limY;\n } else {\n limY = y0 + (isIcicle ? pad : pad.t);\n if(y0 < limY && limY < y1) y1 = limY;\n }\n }\n\n // position the text relative to the slice\n var transform = toMoveInsideBar(x0, x1, y0, y1, textBB, {\n isHorizontal: false,\n constrained: true,\n angle: 0,\n anchor: anchor,\n leftToRight: leftToRight\n });\n transform.fontSize = opts.fontSize;\n\n transform.targetX = viewMapX(transform.targetX);\n transform.targetY = viewMapY(transform.targetY);\n\n if(isNaN(transform.targetX) || isNaN(transform.targetY)) {\n return {};\n }\n\n if(x0 !== x1 && y0 !== y1) {\n recordMinTextSize(trace.type, transform, fullLayout);\n }\n\n return {\n scale: transform.scale,\n rotate: transform.rotate,\n textX: transform.textX,\n textY: transform.textY,\n anchorX: transform.anchorX,\n anchorY: transform.anchorY,\n targetX: transform.targetX,\n targetY: transform.targetY\n };\n };\n\n var interpFromParent = function(pt, onPathbar) {\n var parentPrev;\n var i = 0;\n var Q = pt;\n while(!parentPrev && i < maxDepth) { // loop to find a parent/grandParent on the previous graph\n i++;\n Q = Q.parent;\n if(Q) {\n parentPrev = getPrev(Q, onPathbar);\n } else i = maxDepth;\n }\n return parentPrev || {};\n };\n\n var makeExitSliceInterpolator = function(pt, onPathbar, refRect, size) {\n var prev = getPrev(pt, onPathbar);\n var next;\n\n if(onPathbar) {\n next = pathbarOrigin;\n } else {\n var entryPrev = getPrev(entry, onPathbar);\n if(entryPrev) {\n // 'entryPrev' is here has the previous coordinates of the entry\n // node, which corresponds to the last \"clicked\" node when zooming in\n next = findClosestEdge(pt, entryPrev, size);\n } else {\n // this happens when maxdepth is set, when leaves must\n // be removed and the entry is new (i.e. does not have a 'prev' object)\n next = {};\n }\n }\n\n return interpolate(prev, next);\n };\n\n var makeUpdateSliceInterpolator = function(pt, onPathbar, refRect, size, opts) {\n var prev0 = getPrev(pt, onPathbar);\n var prev;\n\n if(prev0) {\n // if pt already on graph, this is easy\n prev = prev0;\n } else {\n // for new pts:\n if(onPathbar) {\n prev = pathbarOrigin;\n } else {\n if(prevEntry) {\n // if trace was visible before\n if(pt.parent) {\n var ref = nextOfPrevEntry || refRect;\n\n if(ref && !onPathbar) {\n prev = findClosestEdge(pt, ref, size);\n } else {\n // if new leaf (when maxdepth is set),\n // grow it from its parent node\n prev = {};\n Lib.extendFlat(prev, interpFromParent(pt, onPathbar));\n }\n } else {\n prev = Lib.extendFlat({}, pt);\n if(isIcicle) {\n if(opts.orientation === 'h') {\n if(opts.flipX) prev.x0 = pt.x1;\n else prev.x1 = 0;\n } else {\n if(opts.flipY) prev.y0 = pt.y1;\n else prev.y1 = 0;\n }\n }\n }\n } else {\n prev = {};\n }\n }\n }\n\n return interpolate(prev, {\n x0: pt.x0,\n x1: pt.x1,\n y0: pt.y0,\n y1: pt.y1\n });\n };\n\n var makeUpdateTextInterpolator = function(pt, onPathbar, refRect, size) {\n var prev0 = getPrev(pt, onPathbar);\n var prev = {};\n var origin = getOrigin(pt, onPathbar, refRect, size);\n\n Lib.extendFlat(prev, {\n transform: toMoveInsideSlice({\n x0: origin.x0,\n x1: origin.x1,\n y0: origin.y0,\n y1: origin.y1,\n textBB: pt.textBB,\n _text: pt._text\n }, {\n isHeader: helpers.isHeader(pt, trace)\n })\n });\n\n if(prev0) {\n // if pt already on graph, this is easy\n prev = prev0;\n } else {\n // for new pts:\n if(pt.parent) {\n Lib.extendFlat(prev, interpFromParent(pt, onPathbar));\n }\n }\n\n var transform = pt.transform;\n if(pt.x0 !== pt.x1 && pt.y0 !== pt.y1) {\n recordMinTextSize(trace.type, transform, fullLayout);\n }\n\n return interpolate(prev, {\n transform: {\n scale: transform.scale,\n rotate: transform.rotate,\n textX: transform.textX,\n textY: transform.textY,\n anchorX: transform.anchorX,\n anchorY: transform.anchorY,\n targetX: transform.targetX,\n targetY: transform.targetY\n }\n });\n };\n\n var handleSlicesExit = function(slices, onPathbar, refRect, size, pathSlice) {\n var width = size[0];\n var height = size[1];\n\n if(hasTransition) {\n slices.exit().transition()\n .each(function() {\n var sliceTop = d3.select(this);\n\n var slicePath = sliceTop.select('path.surface');\n slicePath.transition().attrTween('d', function(pt2) {\n var interp = makeExitSliceInterpolator(pt2, onPathbar, refRect, [width, height]);\n return function(t) { return pathSlice(interp(t)); };\n });\n\n var sliceTextGroup = sliceTop.select('g.slicetext');\n sliceTextGroup.attr('opacity', 0);\n })\n .remove();\n } else {\n slices.exit().remove();\n }\n };\n\n var strTransform = function(d) {\n var transform = d.transform;\n\n if(d.x0 !== d.x1 && d.y0 !== d.y1) {\n recordMinTextSize(trace.type, transform, fullLayout);\n }\n\n return Lib.getTextTransform({\n textX: transform.textX,\n textY: transform.textY,\n anchorX: transform.anchorX,\n anchorY: transform.anchorY,\n targetX: transform.targetX,\n targetY: transform.targetY,\n scale: transform.scale,\n rotate: transform.rotate\n });\n };\n\n if(hasTransition) {\n // Important: do this before binding new sliceData!\n\n selAncestors.each(function(pt) {\n prevLookupPathbar[getKey(pt)] = {\n x0: pt.x0,\n x1: pt.x1,\n y0: pt.y0,\n y1: pt.y1\n };\n\n if(pt.transform) {\n prevLookupPathbar[getKey(pt)].transform = {\n textX: pt.transform.textX,\n textY: pt.transform.textY,\n anchorX: pt.transform.anchorX,\n anchorY: pt.transform.anchorY,\n targetX: pt.transform.targetX,\n targetY: pt.transform.targetY,\n scale: pt.transform.scale,\n rotate: pt.transform.rotate\n };\n }\n });\n\n selDescendants.each(function(pt) {\n prevLookupSlices[getKey(pt)] = {\n x0: pt.x0,\n x1: pt.x1,\n y0: pt.y0,\n y1: pt.y1\n };\n\n if(pt.transform) {\n prevLookupSlices[getKey(pt)].transform = {\n textX: pt.transform.textX,\n textY: pt.transform.textY,\n anchorX: pt.transform.anchorX,\n anchorY: pt.transform.anchorY,\n targetX: pt.transform.targetX,\n targetY: pt.transform.targetY,\n scale: pt.transform.scale,\n rotate: pt.transform.rotate\n };\n }\n\n if(!prevEntry && helpers.isEntry(pt)) {\n prevEntry = pt;\n }\n });\n }\n\n nextOfPrevEntry = drawDescendants(gd, cd, entry, selDescendants, {\n width: vpw,\n height: vph,\n\n viewX: viewMapX,\n viewY: viewMapY,\n\n pathSlice: pathDescendant,\n toMoveInsideSlice: toMoveInsideSlice,\n\n prevEntry: prevEntry,\n makeUpdateSliceInterpolator: makeUpdateSliceInterpolator,\n makeUpdateTextInterpolator: makeUpdateTextInterpolator,\n\n handleSlicesExit: handleSlicesExit,\n hasTransition: hasTransition,\n strTransform: strTransform\n });\n\n if(trace.pathbar.visible) {\n drawAncestors(gd, cd, entry, selAncestors, {\n barDifY: barDifY,\n width: barW,\n height: barH,\n\n viewX: viewBarX,\n viewY: viewBarY,\n\n pathSlice: pathAncestor,\n toMoveInsideSlice: toMoveInsideSlice,\n\n makeUpdateSliceInterpolator: makeUpdateSliceInterpolator,\n makeUpdateTextInterpolator: makeUpdateTextInterpolator,\n\n handleSlicesExit: handleSlicesExit,\n hasTransition: hasTransition,\n strTransform: strTransform\n });\n } else {\n selAncestors.remove();\n }\n};\n\n},{\"../../lib\":503,\"../bar/constants\":650,\"../bar/plot\":659,\"../bar/uniform_text\":664,\"../sunburst/helpers\":1050,\"./constants\":1073,\"./draw_ancestors\":1076,\"@plotly/d3\":58,\"d3-interpolate\":116}],1085:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Color = _dereq_('../../components/color');\nvar Lib = _dereq_('../../lib');\nvar helpers = _dereq_('../sunburst/helpers');\nvar resizeText = _dereq_('../bar/uniform_text').resizeText;\n\nfunction style(gd) {\n var s = gd._fullLayout._treemaplayer.selectAll('.trace');\n resizeText(gd, s, 'treemap');\n\n s.each(function(cd) {\n var gTrace = d3.select(this);\n var cd0 = cd[0];\n var trace = cd0.trace;\n\n gTrace.style('opacity', trace.opacity);\n\n gTrace.selectAll('path.surface').each(function(pt) {\n d3.select(this).call(styleOne, pt, trace, {\n hovered: false\n });\n });\n });\n}\n\nfunction styleOne(s, pt, trace, opts) {\n var hovered = (opts || {}).hovered;\n var cdi = pt.data.data;\n var ptNumber = cdi.i;\n var lineColor;\n var lineWidth;\n var fillColor = cdi.color;\n var isRoot = helpers.isHierarchyRoot(pt);\n var opacity = 1;\n\n if(hovered) {\n lineColor = trace._hovered.marker.line.color;\n lineWidth = trace._hovered.marker.line.width;\n } else {\n if(isRoot && fillColor === trace.root.color) {\n opacity = 100;\n lineColor = 'rgba(0,0,0,0)';\n lineWidth = 0;\n } else {\n lineColor = Lib.castOption(trace, ptNumber, 'marker.line.color') || Color.defaultLine;\n lineWidth = Lib.castOption(trace, ptNumber, 'marker.line.width') || 0;\n\n if(!trace._hasColorscale && !pt.onPathbar) {\n var depthfade = trace.marker.depthfade;\n if(depthfade) {\n var fadedColor = Color.combine(Color.addOpacity(trace._backgroundColor, 0.75), fillColor);\n var n;\n\n if(depthfade === true) {\n var maxDepth = helpers.getMaxDepth(trace);\n if(isFinite(maxDepth)) {\n if(helpers.isLeaf(pt)) {\n n = 0;\n } else {\n n = (trace._maxVisibleLayers) - (pt.data.depth - trace._entryDepth);\n }\n } else {\n n = pt.data.height + 1;\n }\n } else { // i.e. case of depthfade === 'reversed'\n n = pt.data.depth - trace._entryDepth;\n if(!trace._atRootLevel) n++;\n }\n\n if(n > 0) {\n for(var i = 0; i < n; i++) {\n var ratio = 0.5 * i / n;\n fillColor = Color.combine(Color.addOpacity(fadedColor, ratio), fillColor);\n }\n }\n }\n }\n }\n }\n\n s.style('stroke-width', lineWidth)\n .call(Color.fill, fillColor)\n .call(Color.stroke, lineColor)\n .style('opacity', opacity);\n}\n\nmodule.exports = {\n style: style,\n styleOne: styleOne\n};\n\n},{\"../../components/color\":366,\"../../lib\":503,\"../bar/uniform_text\":664,\"../sunburst/helpers\":1050,\"@plotly/d3\":58}],1086:[function(_dereq_,module,exports){\n'use strict';\n\nvar boxAttrs = _dereq_('../box/attributes');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\n\nmodule.exports = {\n y: boxAttrs.y,\n x: boxAttrs.x,\n x0: boxAttrs.x0,\n y0: boxAttrs.y0,\n\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n\n name: extendFlat({}, boxAttrs.name, {\n }),\n orientation: extendFlat({}, boxAttrs.orientation, {\n }),\n\n bandwidth: {\n valType: 'number',\n min: 0,\n editType: 'calc',\n },\n\n scalegroup: {\n valType: 'string',\n dflt: '',\n editType: 'calc',\n },\n scalemode: {\n valType: 'enumerated',\n values: ['width', 'count'],\n dflt: 'width',\n editType: 'calc',\n },\n\n spanmode: {\n valType: 'enumerated',\n values: ['soft', 'hard', 'manual'],\n dflt: 'soft',\n editType: 'calc',\n },\n span: {\n valType: 'info_array',\n items: [\n {valType: 'any', editType: 'calc'},\n {valType: 'any', editType: 'calc'}\n ],\n editType: 'calc',\n },\n\n line: {\n color: {\n valType: 'color',\n editType: 'style',\n },\n width: {\n valType: 'number',\n min: 0,\n dflt: 2,\n editType: 'style',\n },\n editType: 'plot'\n },\n fillcolor: boxAttrs.fillcolor,\n\n points: extendFlat({}, boxAttrs.boxpoints, {\n }),\n jitter: extendFlat({}, boxAttrs.jitter, {\n }),\n pointpos: extendFlat({}, boxAttrs.pointpos, {\n }),\n\n width: extendFlat({}, boxAttrs.width, {\n }),\n\n marker: boxAttrs.marker,\n text: boxAttrs.text,\n hovertext: boxAttrs.hovertext,\n hovertemplate: boxAttrs.hovertemplate,\n\n box: {\n visible: {\n valType: 'boolean',\n dflt: false,\n editType: 'plot',\n },\n width: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0.25,\n editType: 'plot',\n },\n fillcolor: {\n valType: 'color',\n editType: 'style',\n },\n line: {\n color: {\n valType: 'color',\n editType: 'style',\n },\n width: {\n valType: 'number',\n min: 0,\n editType: 'style',\n },\n editType: 'style'\n },\n editType: 'plot'\n },\n\n meanline: {\n visible: {\n valType: 'boolean',\n dflt: false,\n editType: 'plot',\n },\n color: {\n valType: 'color',\n editType: 'style',\n },\n width: {\n valType: 'number',\n min: 0,\n editType: 'style',\n },\n editType: 'plot'\n },\n\n side: {\n valType: 'enumerated',\n values: ['both', 'positive', 'negative'],\n dflt: 'both',\n editType: 'calc',\n },\n\n offsetgroup: boxAttrs.offsetgroup,\n alignmentgroup: boxAttrs.alignmentgroup,\n\n selected: boxAttrs.selected,\n unselected: boxAttrs.unselected,\n\n hoveron: {\n valType: 'flaglist',\n flags: ['violins', 'points', 'kde'],\n dflt: 'violins+points+kde',\n extras: ['all'],\n editType: 'style',\n }\n};\n\n},{\"../../lib/extend\":493,\"../../plots/cartesian/axis_format_attributes\":557,\"../box/attributes\":673}],1087:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar boxCalc = _dereq_('../box/calc');\nvar helpers = _dereq_('./helpers');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nmodule.exports = function calc(gd, trace) {\n var cd = boxCalc(gd, trace);\n\n if(cd[0].t.empty) return cd;\n\n var fullLayout = gd._fullLayout;\n var valAxis = Axes.getFromId(\n gd,\n trace[trace.orientation === 'h' ? 'xaxis' : 'yaxis']\n );\n\n var spanMin = Infinity;\n var spanMax = -Infinity;\n var maxKDE = 0;\n var maxCount = 0;\n\n for(var i = 0; i < cd.length; i++) {\n var cdi = cd[i];\n var vals = cdi.pts.map(helpers.extractVal);\n\n var bandwidth = cdi.bandwidth = calcBandwidth(trace, cdi, vals);\n var span = cdi.span = calcSpan(trace, cdi, valAxis, bandwidth);\n\n if(cdi.min === cdi.max && bandwidth === 0) {\n // if span is zero and bandwidth is zero, we want a violin with zero width\n span = cdi.span = [cdi.min, cdi.max];\n cdi.density = [{v: 1, t: span[0]}];\n cdi.bandwidth = bandwidth;\n maxKDE = Math.max(maxKDE, 1);\n } else {\n // step that well covers the bandwidth and is multiple of span distance\n var dist = span[1] - span[0];\n var n = Math.ceil(dist / (bandwidth / 3));\n var step = dist / n;\n\n if(!isFinite(step) || !isFinite(n)) {\n Lib.error('Something went wrong with computing the violin span');\n cd[0].t.empty = true;\n return cd;\n }\n\n var kde = helpers.makeKDE(cdi, trace, vals);\n cdi.density = new Array(n);\n\n for(var k = 0, t = span[0]; t < (span[1] + step / 2); k++, t += step) {\n var v = kde(t);\n cdi.density[k] = {v: v, t: t};\n maxKDE = Math.max(maxKDE, v);\n }\n }\n\n maxCount = Math.max(maxCount, vals.length);\n spanMin = Math.min(spanMin, span[0]);\n spanMax = Math.max(spanMax, span[1]);\n }\n\n var extremes = Axes.findExtremes(valAxis, [spanMin, spanMax], {padded: true});\n trace._extremes[valAxis._id] = extremes;\n\n if(trace.width) {\n cd[0].t.maxKDE = maxKDE;\n } else {\n var violinScaleGroupStats = fullLayout._violinScaleGroupStats;\n var scaleGroup = trace.scalegroup;\n var groupStats = violinScaleGroupStats[scaleGroup];\n\n if(groupStats) {\n groupStats.maxKDE = Math.max(groupStats.maxKDE, maxKDE);\n groupStats.maxCount = Math.max(groupStats.maxCount, maxCount);\n } else {\n violinScaleGroupStats[scaleGroup] = {\n maxKDE: maxKDE,\n maxCount: maxCount\n };\n }\n }\n\n cd[0].t.labels.kde = Lib._(gd, 'kde:');\n\n return cd;\n};\n\n// Default to Silveman's rule of thumb\n// - https://stats.stackexchange.com/a/6671\n// - https://en.wikipedia.org/wiki/Kernel_density_estimation#A_rule-of-thumb_bandwidth_estimator\n// - https://github.com/statsmodels/statsmodels/blob/master/statsmodels/nonparametric/bandwidths.py\nfunction silvermanRule(len, ssd, iqr) {\n var a = Math.min(ssd, iqr / 1.349);\n return 1.059 * a * Math.pow(len, -0.2);\n}\n\nfunction calcBandwidth(trace, cdi, vals) {\n var span = cdi.max - cdi.min;\n\n // If span is zero\n if(!span) {\n if(trace.bandwidth) {\n return trace.bandwidth;\n } else {\n // if span is zero and no bandwidth is specified\n // it returns zero bandwidth which is a special case\n return 0;\n }\n }\n\n // Limit how small the bandwidth can be.\n //\n // Silverman's rule of thumb can be \"very\" small\n // when IQR does a poor job at describing the spread\n // of the distribution.\n // We also want to limit custom bandwidths\n // to not blow up kde computations.\n\n if(trace.bandwidth) {\n return Math.max(trace.bandwidth, span / 1e4);\n } else {\n var len = vals.length;\n var ssd = Lib.stdev(vals, len - 1, cdi.mean);\n return Math.max(\n silvermanRule(len, ssd, cdi.q3 - cdi.q1),\n span / 100\n );\n }\n}\n\nfunction calcSpan(trace, cdi, valAxis, bandwidth) {\n var spanmode = trace.spanmode;\n var spanIn = trace.span || [];\n var spanTight = [cdi.min, cdi.max];\n var spanLoose = [cdi.min - 2 * bandwidth, cdi.max + 2 * bandwidth];\n var spanOut;\n\n function calcSpanItem(index) {\n var s = spanIn[index];\n var sc = valAxis.type === 'multicategory' ?\n valAxis.r2c(s) :\n valAxis.d2c(s, 0, trace[cdi.valLetter + 'calendar']);\n return sc === BADNUM ? spanLoose[index] : sc;\n }\n\n if(spanmode === 'soft') {\n spanOut = spanLoose;\n } else if(spanmode === 'hard') {\n spanOut = spanTight;\n } else {\n spanOut = [calcSpanItem(0), calcSpanItem(1)];\n }\n\n // to reuse the equal-range-item block\n var dummyAx = {\n type: 'linear',\n range: spanOut\n };\n Axes.setConvert(dummyAx);\n dummyAx.cleanRange();\n\n return spanOut;\n}\n\n},{\"../../constants/numerical\":479,\"../../lib\":503,\"../../plots/cartesian/axes\":554,\"../box/calc\":674,\"./helpers\":1090}],1088:[function(_dereq_,module,exports){\n'use strict';\n\nvar setPositionOffset = _dereq_('../box/cross_trace_calc').setPositionOffset;\nvar orientations = ['v', 'h'];\n\nmodule.exports = function crossTraceCalc(gd, plotinfo) {\n var calcdata = gd.calcdata;\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n\n for(var i = 0; i < orientations.length; i++) {\n var orientation = orientations[i];\n var posAxis = orientation === 'h' ? ya : xa;\n var violinList = [];\n\n for(var j = 0; j < calcdata.length; j++) {\n var cd = calcdata[j];\n var t = cd[0].t;\n var trace = cd[0].trace;\n\n if(trace.visible === true && trace.type === 'violin' &&\n !t.empty &&\n trace.orientation === orientation &&\n trace.xaxis === xa._id &&\n trace.yaxis === ya._id\n ) {\n violinList.push(j);\n }\n }\n\n setPositionOffset('violin', gd, violinList, posAxis);\n }\n};\n\n},{\"../box/cross_trace_calc\":675}],1089:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Color = _dereq_('../../components/color');\n\nvar boxDefaults = _dereq_('../box/defaults');\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n function coerce2(attr, dflt) {\n return Lib.coerce2(traceIn, traceOut, attributes, attr, dflt);\n }\n\n boxDefaults.handleSampleDefaults(traceIn, traceOut, coerce, layout);\n if(traceOut.visible === false) return;\n\n coerce('bandwidth');\n coerce('side');\n\n var width = coerce('width');\n if(!width) {\n coerce('scalegroup', traceOut.name);\n coerce('scalemode');\n }\n\n var span = coerce('span');\n var spanmodeDflt;\n if(Array.isArray(span)) spanmodeDflt = 'manual';\n coerce('spanmode', spanmodeDflt);\n\n var lineColor = coerce('line.color', (traceIn.marker || {}).color || defaultColor);\n var lineWidth = coerce('line.width');\n var fillColor = coerce('fillcolor', Color.addOpacity(traceOut.line.color, 0.5));\n\n boxDefaults.handlePointsDefaults(traceIn, traceOut, coerce, {prefix: ''});\n\n var boxWidth = coerce2('box.width');\n var boxFillColor = coerce2('box.fillcolor', fillColor);\n var boxLineColor = coerce2('box.line.color', lineColor);\n var boxLineWidth = coerce2('box.line.width', lineWidth);\n var boxVisible = coerce('box.visible', Boolean(boxWidth || boxFillColor || boxLineColor || boxLineWidth));\n if(!boxVisible) traceOut.box = {visible: false};\n\n var meanLineColor = coerce2('meanline.color', lineColor);\n var meanLineWidth = coerce2('meanline.width', lineWidth);\n var meanLineVisible = coerce('meanline.visible', Boolean(meanLineColor || meanLineWidth));\n if(!meanLineVisible) traceOut.meanline = {visible: false};\n};\n\n},{\"../../components/color\":366,\"../../lib\":503,\"../box/defaults\":676,\"./attributes\":1086}],1090:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\n// Maybe add kernels more down the road,\n// but note that the default `spanmode: 'soft'` bounds might have\n// to become kernel-dependent\nvar kernels = {\n gaussian: function(v) {\n return (1 / Math.sqrt(2 * Math.PI)) * Math.exp(-0.5 * v * v);\n }\n};\n\nexports.makeKDE = function(calcItem, trace, vals) {\n var len = vals.length;\n var kernel = kernels.gaussian;\n var bandwidth = calcItem.bandwidth;\n var factor = 1 / (len * bandwidth);\n\n // don't use Lib.aggNums to skip isNumeric checks\n return function(x) {\n var sum = 0;\n for(var i = 0; i < len; i++) {\n sum += kernel((x - vals[i]) / bandwidth);\n }\n return factor * sum;\n };\n};\n\nexports.getPositionOnKdePath = function(calcItem, trace, valuePx) {\n var posLetter, valLetter;\n\n if(trace.orientation === 'h') {\n posLetter = 'y';\n valLetter = 'x';\n } else {\n posLetter = 'x';\n valLetter = 'y';\n }\n\n var pointOnPath = Lib.findPointOnPath(\n calcItem.path,\n valuePx,\n valLetter,\n {pathLength: calcItem.pathLength}\n );\n\n var posCenterPx = calcItem.posCenterPx;\n var posOnPath0 = pointOnPath[posLetter];\n var posOnPath1 = trace.side === 'both' ?\n 2 * posCenterPx - posOnPath0 :\n posCenterPx;\n\n return [posOnPath0, posOnPath1];\n};\n\nexports.getKdeValue = function(calcItem, trace, valueDist) {\n var vals = calcItem.pts.map(exports.extractVal);\n var kde = exports.makeKDE(calcItem, trace, vals);\n return kde(valueDist) / calcItem.posDensityScale;\n};\n\nexports.extractVal = function(o) { return o.v; };\n\n},{\"../../lib\":503}],1091:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar boxHoverPoints = _dereq_('../box/hover');\nvar helpers = _dereq_('./helpers');\n\nmodule.exports = function hoverPoints(pointData, xval, yval, hovermode, opts) {\n if(!opts) opts = {};\n var hoverLayer = opts.hoverLayer;\n\n var cd = pointData.cd;\n var trace = cd[0].trace;\n var hoveron = trace.hoveron;\n var hasHoveronViolins = hoveron.indexOf('violins') !== -1;\n var hasHoveronKDE = hoveron.indexOf('kde') !== -1;\n var closeData = [];\n var closePtData;\n var violinLineAttrs;\n\n if(hasHoveronViolins || hasHoveronKDE) {\n var closeBoxData = boxHoverPoints.hoverOnBoxes(pointData, xval, yval, hovermode);\n\n if(hasHoveronKDE && closeBoxData.length > 0) {\n var xa = pointData.xa;\n var ya = pointData.ya;\n var pLetter, vLetter, pAxis, vAxis, vVal;\n\n if(trace.orientation === 'h') {\n vVal = xval;\n pLetter = 'y';\n pAxis = ya;\n vLetter = 'x';\n vAxis = xa;\n } else {\n vVal = yval;\n pLetter = 'x';\n pAxis = xa;\n vLetter = 'y';\n vAxis = ya;\n }\n\n var di = cd[pointData.index];\n\n if(vVal >= di.span[0] && vVal <= di.span[1]) {\n var kdePointData = Lib.extendFlat({}, pointData);\n var vValPx = vAxis.c2p(vVal, true);\n var kdeVal = helpers.getKdeValue(di, trace, vVal);\n var pOnPath = helpers.getPositionOnKdePath(di, trace, vValPx);\n var paOffset = pAxis._offset;\n var paLength = pAxis._length;\n\n kdePointData[pLetter + '0'] = pOnPath[0];\n kdePointData[pLetter + '1'] = pOnPath[1];\n kdePointData[vLetter + '0'] = kdePointData[vLetter + '1'] = vValPx;\n kdePointData[vLetter + 'Label'] = vLetter + ': ' + Axes.hoverLabelText(vAxis, vVal, trace[vLetter + 'hoverformat']) + ', ' + cd[0].t.labels.kde + ' ' + kdeVal.toFixed(3);\n\n // move the spike to the KDE point\n kdePointData.spikeDistance = closeBoxData[0].spikeDistance;\n var spikePosAttr = pLetter + 'Spike';\n kdePointData[spikePosAttr] = closeBoxData[0][spikePosAttr];\n closeBoxData[0].spikeDistance = undefined;\n closeBoxData[0][spikePosAttr] = undefined;\n\n // no hovertemplate support yet\n kdePointData.hovertemplate = false;\n\n closeData.push(kdePointData);\n\n violinLineAttrs = {stroke: pointData.color};\n violinLineAttrs[pLetter + '1'] = Lib.constrain(paOffset + pOnPath[0], paOffset, paOffset + paLength);\n violinLineAttrs[pLetter + '2'] = Lib.constrain(paOffset + pOnPath[1], paOffset, paOffset + paLength);\n violinLineAttrs[vLetter + '1'] = violinLineAttrs[vLetter + '2'] = vAxis._offset + vValPx;\n }\n }\n\n if(hasHoveronViolins) {\n closeData = closeData.concat(closeBoxData);\n }\n }\n\n if(hoveron.indexOf('points') !== -1) {\n closePtData = boxHoverPoints.hoverOnPoints(pointData, xval, yval);\n }\n\n // update violin line (if any)\n var violinLine = hoverLayer.selectAll('.violinline-' + trace.uid)\n .data(violinLineAttrs ? [0] : []);\n violinLine.enter().append('line')\n .classed('violinline-' + trace.uid, true)\n .attr('stroke-width', 1.5);\n violinLine.exit().remove();\n violinLine.attr(violinLineAttrs);\n\n // same combine logic as box hoverPoints\n if(hovermode === 'closest') {\n if(closePtData) return [closePtData];\n return closeData;\n }\n if(closePtData) {\n closeData.push(closePtData);\n return closeData;\n }\n return closeData;\n};\n\n},{\"../../lib\":503,\"../../plots/cartesian/axes\":554,\"../box/hover\":678,\"./helpers\":1090}],1092:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n layoutAttributes: _dereq_('./layout_attributes'),\n supplyDefaults: _dereq_('./defaults'),\n crossTraceDefaults: _dereq_('../box/defaults').crossTraceDefaults,\n supplyLayoutDefaults: _dereq_('./layout_defaults'),\n calc: _dereq_('./calc'),\n crossTraceCalc: _dereq_('./cross_trace_calc'),\n plot: _dereq_('./plot'),\n style: _dereq_('./style'),\n styleOnSelect: _dereq_('../scatter/style').styleOnSelect,\n hoverPoints: _dereq_('./hover'),\n selectPoints: _dereq_('../box/select'),\n\n moduleType: 'trace',\n name: 'violin',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: ['cartesian', 'svg', 'symbols', 'oriented', 'box-violin', 'showLegend', 'violinLayout', 'zoomScale'],\n meta: {\n }\n};\n\n},{\"../../plots/cartesian\":568,\"../box/defaults\":676,\"../box/select\":683,\"../scatter/style\":949,\"./attributes\":1086,\"./calc\":1087,\"./cross_trace_calc\":1088,\"./defaults\":1089,\"./hover\":1091,\"./layout_attributes\":1093,\"./layout_defaults\":1094,\"./plot\":1095,\"./style\":1096}],1093:[function(_dereq_,module,exports){\n'use strict';\n\nvar boxLayoutAttrs = _dereq_('../box/layout_attributes');\nvar extendFlat = _dereq_('../../lib').extendFlat;\n\nmodule.exports = {\n violinmode: extendFlat({}, boxLayoutAttrs.boxmode, {\n }),\n violingap: extendFlat({}, boxLayoutAttrs.boxgap, {\n }),\n violingroupgap: extendFlat({}, boxLayoutAttrs.boxgroupgap, {\n })\n};\n\n},{\"../../lib\":503,\"../box/layout_attributes\":680}],1094:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar layoutAttributes = _dereq_('./layout_attributes');\nvar boxLayoutDefaults = _dereq_('../box/layout_defaults');\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut, fullData) {\n function coerce(attr, dflt) {\n return Lib.coerce(layoutIn, layoutOut, layoutAttributes, attr, dflt);\n }\n boxLayoutDefaults._supply(layoutIn, layoutOut, fullData, coerce, 'violin');\n};\n\n},{\"../../lib\":503,\"../box/layout_defaults\":681,\"./layout_attributes\":1093}],1095:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Lib = _dereq_('../../lib');\nvar Drawing = _dereq_('../../components/drawing');\n\nvar boxPlot = _dereq_('../box/plot');\nvar linePoints = _dereq_('../scatter/line_points');\nvar helpers = _dereq_('./helpers');\n\nmodule.exports = function plot(gd, plotinfo, cdViolins, violinLayer) {\n var fullLayout = gd._fullLayout;\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n\n function makePath(pts) {\n var segments = linePoints(pts, {\n xaxis: xa,\n yaxis: ya,\n connectGaps: true,\n baseTolerance: 0.75,\n shape: 'spline',\n simplify: true,\n linearized: true\n });\n return Drawing.smoothopen(segments[0], 1);\n }\n\n Lib.makeTraceGroups(violinLayer, cdViolins, 'trace violins').each(function(cd) {\n var plotGroup = d3.select(this);\n var cd0 = cd[0];\n var t = cd0.t;\n var trace = cd0.trace;\n\n if(trace.visible !== true || t.empty) {\n plotGroup.remove();\n return;\n }\n\n var bPos = t.bPos;\n var bdPos = t.bdPos;\n var valAxis = plotinfo[t.valLetter + 'axis'];\n var posAxis = plotinfo[t.posLetter + 'axis'];\n var hasBothSides = trace.side === 'both';\n var hasPositiveSide = hasBothSides || trace.side === 'positive';\n var hasNegativeSide = hasBothSides || trace.side === 'negative';\n\n var violins = plotGroup.selectAll('path.violin').data(Lib.identity);\n\n violins.enter().append('path')\n .style('vector-effect', 'non-scaling-stroke')\n .attr('class', 'violin');\n\n violins.exit().remove();\n\n violins.each(function(d) {\n var pathSel = d3.select(this);\n var density = d.density;\n var len = density.length;\n var posCenter = posAxis.c2l(d.pos + bPos, true);\n var posCenterPx = posAxis.l2p(posCenter);\n\n var scale;\n if(trace.width) {\n scale = t.maxKDE / bdPos;\n } else {\n var groupStats = fullLayout._violinScaleGroupStats[trace.scalegroup];\n scale = trace.scalemode === 'count' ?\n (groupStats.maxKDE / bdPos) * (groupStats.maxCount / d.pts.length) :\n groupStats.maxKDE / bdPos;\n }\n\n var pathPos, pathNeg, path;\n var i, k, pts, pt;\n\n if(hasPositiveSide) {\n pts = new Array(len);\n for(i = 0; i < len; i++) {\n pt = pts[i] = {};\n pt[t.posLetter] = posCenter + (density[i].v / scale);\n pt[t.valLetter] = valAxis.c2l(density[i].t, true);\n }\n pathPos = makePath(pts);\n }\n\n if(hasNegativeSide) {\n pts = new Array(len);\n for(k = 0, i = len - 1; k < len; k++, i--) {\n pt = pts[k] = {};\n pt[t.posLetter] = posCenter - (density[i].v / scale);\n pt[t.valLetter] = valAxis.c2l(density[i].t, true);\n }\n pathNeg = makePath(pts);\n }\n\n if(hasBothSides) {\n path = pathPos + 'L' + pathNeg.substr(1) + 'Z';\n } else {\n var startPt = [posCenterPx, valAxis.c2p(density[0].t)];\n var endPt = [posCenterPx, valAxis.c2p(density[len - 1].t)];\n\n if(trace.orientation === 'h') {\n startPt.reverse();\n endPt.reverse();\n }\n\n if(hasPositiveSide) {\n path = 'M' + startPt + 'L' + pathPos.substr(1) + 'L' + endPt;\n } else {\n path = 'M' + endPt + 'L' + pathNeg.substr(1) + 'L' + startPt;\n }\n }\n pathSel.attr('d', path);\n\n // save a few things used in getPositionOnKdePath, getKdeValue\n // on hover and for meanline draw block below\n d.posCenterPx = posCenterPx;\n d.posDensityScale = scale * bdPos;\n d.path = pathSel.node();\n d.pathLength = d.path.getTotalLength() / (hasBothSides ? 2 : 1);\n });\n\n var boxAttrs = trace.box;\n var boxWidth = boxAttrs.width;\n var boxLineWidth = (boxAttrs.line || {}).width;\n var bdPosScaled;\n var bPosPxOffset;\n\n if(hasBothSides) {\n bdPosScaled = bdPos * boxWidth;\n bPosPxOffset = 0;\n } else if(hasPositiveSide) {\n bdPosScaled = [0, bdPos * boxWidth / 2];\n bPosPxOffset = boxLineWidth * {x: 1, y: -1}[t.posLetter];\n } else {\n bdPosScaled = [bdPos * boxWidth / 2, 0];\n bPosPxOffset = boxLineWidth * {x: -1, y: 1}[t.posLetter];\n }\n\n // inner box\n boxPlot.plotBoxAndWhiskers(plotGroup, {pos: posAxis, val: valAxis}, trace, {\n bPos: bPos,\n bdPos: bdPosScaled,\n bPosPxOffset: bPosPxOffset\n });\n\n // meanline insider box\n boxPlot.plotBoxMean(plotGroup, {pos: posAxis, val: valAxis}, trace, {\n bPos: bPos,\n bdPos: bdPosScaled,\n bPosPxOffset: bPosPxOffset\n });\n\n var fn;\n if(!trace.box.visible && trace.meanline.visible) {\n fn = Lib.identity;\n }\n\n // N.B. use different class name than boxPlot.plotBoxMean,\n // to avoid selectAll conflict\n var meanPaths = plotGroup.selectAll('path.meanline').data(fn || []);\n meanPaths.enter().append('path')\n .attr('class', 'meanline')\n .style('fill', 'none')\n .style('vector-effect', 'non-scaling-stroke');\n meanPaths.exit().remove();\n meanPaths.each(function(d) {\n var v = valAxis.c2p(d.mean, true);\n var p = helpers.getPositionOnKdePath(d, trace, v);\n\n d3.select(this).attr('d',\n trace.orientation === 'h' ?\n 'M' + v + ',' + p[0] + 'V' + p[1] :\n 'M' + p[0] + ',' + v + 'H' + p[1]\n );\n });\n\n boxPlot.plotPoints(plotGroup, {x: xa, y: ya}, trace, t);\n });\n};\n\n},{\"../../components/drawing\":388,\"../../lib\":503,\"../box/plot\":682,\"../scatter/line_points\":939,\"./helpers\":1090,\"@plotly/d3\":58}],1096:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Color = _dereq_('../../components/color');\nvar stylePoints = _dereq_('../scatter/style').stylePoints;\n\nmodule.exports = function style(gd) {\n var s = d3.select(gd).selectAll('g.trace.violins');\n\n s.style('opacity', function(d) { return d[0].trace.opacity; });\n\n s.each(function(d) {\n var trace = d[0].trace;\n var sel = d3.select(this);\n var box = trace.box || {};\n var boxLine = box.line || {};\n var meanline = trace.meanline || {};\n var meanLineWidth = meanline.width;\n\n sel.selectAll('path.violin')\n .style('stroke-width', trace.line.width + 'px')\n .call(Color.stroke, trace.line.color)\n .call(Color.fill, trace.fillcolor);\n\n sel.selectAll('path.box')\n .style('stroke-width', boxLine.width + 'px')\n .call(Color.stroke, boxLine.color)\n .call(Color.fill, box.fillcolor);\n\n var meanLineStyle = {\n 'stroke-width': meanLineWidth + 'px',\n 'stroke-dasharray': (2 * meanLineWidth) + 'px,' + meanLineWidth + 'px'\n };\n\n sel.selectAll('path.mean')\n .style(meanLineStyle)\n .call(Color.stroke, meanline.color);\n\n sel.selectAll('path.meanline')\n .style(meanLineStyle)\n .call(Color.stroke, meanline.color);\n\n stylePoints(sel, trace, gd);\n });\n};\n\n},{\"../../components/color\":366,\"../scatter/style\":949,\"@plotly/d3\":58}],1097:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar isosurfaceAttrs = _dereq_('../isosurface/attributes');\nvar surfaceAttrs = _dereq_('../surface/attributes');\nvar baseAttrs = _dereq_('../../plots/attributes');\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\n\nvar attrs = module.exports = overrideAll(extendFlat({\n x: isosurfaceAttrs.x,\n y: isosurfaceAttrs.y,\n z: isosurfaceAttrs.z,\n value: isosurfaceAttrs.value,\n isomin: isosurfaceAttrs.isomin,\n isomax: isosurfaceAttrs.isomax,\n surface: isosurfaceAttrs.surface,\n spaceframe: {\n show: {\n valType: 'boolean',\n dflt: false,\n },\n fill: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 1,\n }\n },\n\n slices: isosurfaceAttrs.slices,\n caps: isosurfaceAttrs.caps,\n text: isosurfaceAttrs.text,\n hovertext: isosurfaceAttrs.hovertext,\n xhoverformat: isosurfaceAttrs.xhoverformat,\n yhoverformat: isosurfaceAttrs.yhoverformat,\n zhoverformat: isosurfaceAttrs.zhoverformat,\n valuehoverformat: isosurfaceAttrs.valuehoverformat,\n hovertemplate: isosurfaceAttrs.hovertemplate\n},\n\ncolorScaleAttrs('', {\n colorAttr: '`value`',\n showScaleDflt: true,\n editTypeOverride: 'calc'\n}), {\n\n colorbar: isosurfaceAttrs.colorbar,\n opacity: isosurfaceAttrs.opacity,\n opacityscale: surfaceAttrs.opacityscale,\n\n lightposition: isosurfaceAttrs.lightposition,\n lighting: isosurfaceAttrs.lighting,\n flatshading: isosurfaceAttrs.flatshading,\n contour: isosurfaceAttrs.contour,\n\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo),\n showlegend: extendFlat({}, baseAttrs.showlegend, {dflt: false})\n}), 'calc', 'nested');\n\nattrs.x.editType = attrs.y.editType = attrs.z.editType = attrs.value.editType = 'calc+clearAxisTypes';\nattrs.transforms = undefined;\n\n},{\"../../components/colorscale/attributes\":373,\"../../lib/extend\":493,\"../../plot_api/edit_types\":536,\"../../plots/attributes\":550,\"../isosurface/attributes\":861,\"../surface/attributes\":1056}],1098:[function(_dereq_,module,exports){\n'use strict';\n\nvar createMesh = _dereq_('../../../stackgl_modules').gl_mesh3d;\n\nvar parseColorScale = _dereq_('../../lib/gl_format_color').parseColorScale;\nvar str2RgbaArray = _dereq_('../../lib/str2rgbarray');\nvar extractOpts = _dereq_('../../components/colorscale').extractOpts;\nvar zip3 = _dereq_('../../plots/gl3d/zip3');\n\nvar findNearestOnAxis = _dereq_('../isosurface/convert').findNearestOnAxis;\nvar generateIsoMeshes = _dereq_('../isosurface/convert').generateIsoMeshes;\n\nfunction VolumeTrace(scene, mesh, uid) {\n this.scene = scene;\n this.uid = uid;\n this.mesh = mesh;\n this.name = '';\n this.data = null;\n this.showContour = false;\n}\n\nvar proto = VolumeTrace.prototype;\n\nproto.handlePick = function(selection) {\n if(selection.object === this.mesh) {\n var rawId = selection.data.index;\n\n var x = this.data._meshX[rawId];\n var y = this.data._meshY[rawId];\n var z = this.data._meshZ[rawId];\n\n var height = this.data._Ys.length;\n var depth = this.data._Zs.length;\n\n var i = findNearestOnAxis(x, this.data._Xs).id;\n var j = findNearestOnAxis(y, this.data._Ys).id;\n var k = findNearestOnAxis(z, this.data._Zs).id;\n\n var selectIndex = selection.index = k + depth * j + depth * height * i;\n\n selection.traceCoordinate = [\n this.data._meshX[selectIndex],\n this.data._meshY[selectIndex],\n this.data._meshZ[selectIndex],\n this.data._value[selectIndex]\n ];\n\n var text = this.data.hovertext || this.data.text;\n if(Array.isArray(text) && text[selectIndex] !== undefined) {\n selection.textLabel = text[selectIndex];\n } else if(text) {\n selection.textLabel = text;\n }\n\n return true;\n }\n};\n\nproto.update = function(data) {\n var scene = this.scene;\n var layout = scene.fullSceneLayout;\n\n this.data = generateIsoMeshes(data);\n\n // Unpack position data\n function toDataCoords(axis, coord, scale, calendar) {\n return coord.map(function(x) {\n return axis.d2l(x, 0, calendar) * scale;\n });\n }\n\n var positions = zip3(\n toDataCoords(layout.xaxis, data._meshX, scene.dataScale[0], data.xcalendar),\n toDataCoords(layout.yaxis, data._meshY, scene.dataScale[1], data.ycalendar),\n toDataCoords(layout.zaxis, data._meshZ, scene.dataScale[2], data.zcalendar));\n\n var cells = zip3(data._meshI, data._meshJ, data._meshK);\n\n var config = {\n positions: positions,\n cells: cells,\n lightPosition: [data.lightposition.x, data.lightposition.y, data.lightposition.z],\n ambient: data.lighting.ambient,\n diffuse: data.lighting.diffuse,\n specular: data.lighting.specular,\n roughness: data.lighting.roughness,\n fresnel: data.lighting.fresnel,\n vertexNormalsEpsilon: data.lighting.vertexnormalsepsilon,\n faceNormalsEpsilon: data.lighting.facenormalsepsilon,\n opacity: data.opacity,\n opacityscale: data.opacityscale,\n contourEnable: data.contour.show,\n contourColor: str2RgbaArray(data.contour.color).slice(0, 3),\n contourWidth: data.contour.width,\n useFacetNormals: data.flatshading\n };\n\n var cOpts = extractOpts(data);\n config.vertexIntensity = data._meshIntensity;\n config.vertexIntensityBounds = [cOpts.min, cOpts.max];\n config.colormap = parseColorScale(data);\n\n // Update mesh\n this.mesh.update(config);\n};\n\nproto.dispose = function() {\n this.scene.glplot.remove(this.mesh);\n this.mesh.dispose();\n};\n\nfunction createVolumeTrace(scene, data) {\n var gl = scene.glplot.gl;\n var mesh = createMesh({gl: gl});\n var result = new VolumeTrace(scene, mesh, data.uid);\n\n mesh._trace = result;\n result.update(data);\n scene.glplot.add(mesh);\n return result;\n}\n\nmodule.exports = createVolumeTrace;\n\n},{\"../../../stackgl_modules\":1119,\"../../components/colorscale\":378,\"../../lib/gl_format_color\":499,\"../../lib/str2rgbarray\":528,\"../../plots/gl3d/zip3\":609,\"../isosurface/convert\":863}],1099:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar attributes = _dereq_('./attributes');\nvar supplyIsoDefaults = _dereq_('../isosurface/defaults').supplyIsoDefaults;\nvar opacityscaleDefaults = _dereq_('../surface/defaults').opacityscaleDefaults;\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n supplyIsoDefaults(traceIn, traceOut, defaultColor, layout, coerce);\n\n opacityscaleDefaults(traceIn, traceOut, layout, coerce);\n};\n\n},{\"../../lib\":503,\"../isosurface/defaults\":864,\"../surface/defaults\":1059,\"./attributes\":1097}],1100:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n calc: _dereq_('../isosurface/calc'),\n colorbar: {\n min: 'cmin',\n max: 'cmax'\n },\n plot: _dereq_('./convert'),\n\n moduleType: 'trace',\n name: 'volume',\n basePlotModule: _dereq_('../../plots/gl3d'),\n categories: ['gl3d', 'showLegend'],\n meta: {\n }\n};\n\n},{\"../../plots/gl3d\":598,\"../isosurface/calc\":862,\"./attributes\":1097,\"./convert\":1098,\"./defaults\":1099}],1101:[function(_dereq_,module,exports){\n'use strict';\n\nvar barAttrs = _dereq_('../bar/attributes');\nvar lineAttrs = _dereq_('../scatter/attributes').line;\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\nvar constants = _dereq_('./constants');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar Color = _dereq_('../../components/color');\n\nfunction directionAttrs(dirTxt) {\n return {\n marker: {\n color: extendFlat({}, barAttrs.marker.color, {\n arrayOk: false,\n editType: 'style',\n }),\n line: {\n color: extendFlat({}, barAttrs.marker.line.color, {\n arrayOk: false,\n editType: 'style',\n }),\n width: extendFlat({}, barAttrs.marker.line.width, {\n arrayOk: false,\n editType: 'style',\n }),\n editType: 'style',\n },\n editType: 'style'\n },\n editType: 'style'\n };\n}\n\nmodule.exports = {\n measure: {\n valType: 'data_array',\n dflt: [],\n editType: 'calc',\n },\n\n base: {\n valType: 'number',\n dflt: null,\n arrayOk: false,\n editType: 'calc',\n },\n\n x: barAttrs.x,\n x0: barAttrs.x0,\n dx: barAttrs.dx,\n y: barAttrs.y,\n y0: barAttrs.y0,\n dy: barAttrs.dy,\n\n xperiod: barAttrs.xperiod,\n yperiod: barAttrs.yperiod,\n xperiod0: barAttrs.xperiod0,\n yperiod0: barAttrs.yperiod0,\n xperiodalignment: barAttrs.xperiodalignment,\n yperiodalignment: barAttrs.yperiodalignment,\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n\n hovertext: barAttrs.hovertext,\n hovertemplate: hovertemplateAttrs({}, {\n keys: constants.eventDataKeys\n }),\n\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {\n flags: ['name', 'x', 'y', 'text', 'initial', 'delta', 'final']\n }),\n\n textinfo: {\n valType: 'flaglist',\n flags: ['label', 'text', 'initial', 'delta', 'final'],\n extras: ['none'],\n editType: 'plot',\n arrayOk: false,\n },\n // TODO: incorporate `label` and `value` in the eventData\n texttemplate: texttemplateAttrs({editType: 'plot'}, {\n keys: constants.eventDataKeys.concat(['label'])\n }),\n text: barAttrs.text,\n textposition: barAttrs.textposition,\n insidetextanchor: barAttrs.insidetextanchor,\n textangle: barAttrs.textangle,\n textfont: barAttrs.textfont,\n insidetextfont: barAttrs.insidetextfont,\n outsidetextfont: barAttrs.outsidetextfont,\n constraintext: barAttrs.constraintext,\n\n cliponaxis: barAttrs.cliponaxis,\n orientation: barAttrs.orientation,\n\n offset: barAttrs.offset,\n width: barAttrs.width,\n\n increasing: directionAttrs('increasing'),\n decreasing: directionAttrs('decreasing'),\n totals: directionAttrs('intermediate sums and total'),\n\n connector: {\n line: {\n color: extendFlat({}, lineAttrs.color, {dflt: Color.defaultLine}),\n width: extendFlat({}, lineAttrs.width, {\n editType: 'plot', // i.e. to adjust bars is mode: 'between'. See https://github.com/plotly/plotly.js/issues/3787\n }),\n dash: lineAttrs.dash,\n editType: 'plot'\n },\n mode: {\n valType: 'enumerated',\n values: ['spanning', 'between'],\n dflt: 'between',\n editType: 'plot',\n },\n visible: {\n valType: 'boolean',\n dflt: true,\n editType: 'plot',\n },\n editType: 'plot'\n },\n\n offsetgroup: barAttrs.offsetgroup,\n alignmentgroup: barAttrs.alignmentgroup\n};\n\n},{\"../../components/color\":366,\"../../lib/extend\":493,\"../../plots/attributes\":550,\"../../plots/cartesian/axis_format_attributes\":557,\"../../plots/template_attributes\":633,\"../bar/attributes\":648,\"../scatter/attributes\":925,\"./constants\":1103}],1102:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar alignPeriod = _dereq_('../../plots/cartesian/align_period');\nvar mergeArray = _dereq_('../../lib').mergeArray;\nvar calcSelection = _dereq_('../scatter/calc_selection');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nfunction isAbsolute(a) {\n return (a === 'a' || a === 'absolute');\n}\n\nfunction isTotal(a) {\n return (a === 't' || a === 'total');\n}\n\nmodule.exports = function calc(gd, trace) {\n var xa = Axes.getFromId(gd, trace.xaxis || 'x');\n var ya = Axes.getFromId(gd, trace.yaxis || 'y');\n var size, pos, origPos, pObj, hasPeriod, pLetter;\n\n if(trace.orientation === 'h') {\n size = xa.makeCalcdata(trace, 'x');\n origPos = ya.makeCalcdata(trace, 'y');\n pObj = alignPeriod(trace, ya, 'y', origPos);\n hasPeriod = !!trace.yperiodalignment;\n pLetter = 'y';\n } else {\n size = ya.makeCalcdata(trace, 'y');\n origPos = xa.makeCalcdata(trace, 'x');\n pObj = alignPeriod(trace, xa, 'x', origPos);\n hasPeriod = !!trace.xperiodalignment;\n pLetter = 'x';\n }\n pos = pObj.vals;\n\n // create the \"calculated data\" to plot\n var serieslen = Math.min(pos.length, size.length);\n var cd = new Array(serieslen);\n\n // set position and size (as well as for waterfall total size)\n var previousSum = 0;\n var newSize;\n // trace-wide flags\n var hasTotals = false;\n\n for(var i = 0; i < serieslen; i++) {\n var amount = size[i] || 0;\n\n var connectToNext = false;\n if(size[i] !== BADNUM || isTotal(trace.measure[i]) || isAbsolute(trace.measure[i])) {\n if(i + 1 < serieslen && (size[i + 1] !== BADNUM || isTotal(trace.measure[i + 1]) || isAbsolute(trace.measure[i + 1]))) {\n connectToNext = true;\n }\n }\n\n var cdi = cd[i] = {\n i: i,\n p: pos[i],\n s: amount,\n rawS: amount,\n cNext: connectToNext\n };\n\n if(isAbsolute(trace.measure[i])) {\n previousSum = cdi.s;\n\n cdi.isSum = true;\n cdi.dir = 'totals';\n cdi.s = previousSum;\n } else if(isTotal(trace.measure[i])) {\n cdi.isSum = true;\n cdi.dir = 'totals';\n cdi.s = previousSum;\n } else {\n // default: relative\n cdi.isSum = false;\n cdi.dir = cdi.rawS < 0 ? 'decreasing' : 'increasing';\n newSize = cdi.s;\n cdi.s = previousSum + newSize;\n previousSum += newSize;\n }\n\n if(cdi.dir === 'totals') {\n hasTotals = true;\n }\n\n if(hasPeriod) {\n cd[i].orig_p = origPos[i]; // used by hover\n cd[i][pLetter + 'End'] = pObj.ends[i];\n cd[i][pLetter + 'Start'] = pObj.starts[i];\n }\n\n if(trace.ids) {\n cdi.id = String(trace.ids[i]);\n }\n\n cdi.v = (trace.base || 0) + previousSum;\n }\n\n if(cd.length) cd[0].hasTotals = hasTotals;\n\n mergeArray(trace.text, cd, 'tx');\n mergeArray(trace.hovertext, cd, 'htx');\n calcSelection(cd, trace);\n\n return cd;\n};\n\n},{\"../../constants/numerical\":479,\"../../lib\":503,\"../../plots/cartesian/align_period\":551,\"../../plots/cartesian/axes\":554,\"../scatter/calc_selection\":927}],1103:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n eventDataKeys: [\n 'initial',\n 'delta',\n 'final'\n ]\n};\n\n},{}],1104:[function(_dereq_,module,exports){\n'use strict';\n\nvar setGroupPositions = _dereq_('../bar/cross_trace_calc').setGroupPositions;\n\nmodule.exports = function crossTraceCalc(gd, plotinfo) {\n var fullLayout = gd._fullLayout;\n var fullData = gd._fullData;\n var calcdata = gd.calcdata;\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n var waterfalls = [];\n var waterfallsVert = [];\n var waterfallsHorz = [];\n var cd, i;\n\n for(i = 0; i < fullData.length; i++) {\n var fullTrace = fullData[i];\n\n if(\n fullTrace.visible === true &&\n fullTrace.xaxis === xa._id &&\n fullTrace.yaxis === ya._id &&\n fullTrace.type === 'waterfall'\n ) {\n cd = calcdata[i];\n\n if(fullTrace.orientation === 'h') {\n waterfallsHorz.push(cd);\n } else {\n waterfallsVert.push(cd);\n }\n\n waterfalls.push(cd);\n }\n }\n\n var opts = {\n mode: fullLayout.waterfallmode,\n norm: fullLayout.waterfallnorm,\n gap: fullLayout.waterfallgap,\n groupgap: fullLayout.waterfallgroupgap\n };\n\n setGroupPositions(gd, xa, ya, waterfallsVert, opts);\n setGroupPositions(gd, ya, xa, waterfallsHorz, opts);\n\n for(i = 0; i < waterfalls.length; i++) {\n cd = waterfalls[i];\n\n for(var j = 0; j < cd.length; j++) {\n var di = cd[j];\n\n if(di.isSum === false) {\n di.s0 += (j === 0) ? 0 : cd[j - 1].s;\n }\n\n if(j + 1 < cd.length) {\n cd[j].nextP0 = cd[j + 1].p0;\n cd[j].nextS0 = cd[j + 1].s0;\n }\n }\n }\n};\n\n},{\"../bar/cross_trace_calc\":651}],1105:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar handleGroupingDefaults = _dereq_('../bar/defaults').handleGroupingDefaults;\nvar handleText = _dereq_('../bar/defaults').handleText;\nvar handleXYDefaults = _dereq_('../scatter/xy_defaults');\nvar handlePeriodDefaults = _dereq_('../scatter/period_defaults');\nvar attributes = _dereq_('./attributes');\nvar Color = _dereq_('../../components/color');\nvar delta = _dereq_('../../constants/delta.js');\n\nvar INCREASING_COLOR = delta.INCREASING.COLOR;\nvar DECREASING_COLOR = delta.DECREASING.COLOR;\nvar TOTALS_COLOR = '#4499FF';\n\nfunction handleDirection(coerce, direction, defaultColor) {\n coerce(direction + '.marker.color', defaultColor);\n coerce(direction + '.marker.line.color', Color.defaultLine);\n coerce(direction + '.marker.line.width');\n}\n\nfunction supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var len = handleXYDefaults(traceIn, traceOut, layout, coerce);\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n handlePeriodDefaults(traceIn, traceOut, layout, coerce);\n coerce('xhoverformat');\n coerce('yhoverformat');\n\n coerce('measure');\n\n coerce('orientation', (traceOut.x && !traceOut.y) ? 'h' : 'v');\n coerce('base');\n coerce('offset');\n coerce('width');\n\n coerce('text');\n\n coerce('hovertext');\n coerce('hovertemplate');\n\n var textposition = coerce('textposition');\n handleText(traceIn, traceOut, layout, coerce, textposition, {\n moduleHasSelected: false,\n moduleHasUnselected: false,\n moduleHasConstrain: true,\n moduleHasCliponaxis: true,\n moduleHasTextangle: true,\n moduleHasInsideanchor: true\n });\n\n\n if(traceOut.textposition !== 'none') {\n coerce('texttemplate');\n if(!traceOut.texttemplate) coerce('textinfo');\n }\n\n handleDirection(coerce, 'increasing', INCREASING_COLOR);\n handleDirection(coerce, 'decreasing', DECREASING_COLOR);\n handleDirection(coerce, 'totals', TOTALS_COLOR);\n\n var connectorVisible = coerce('connector.visible');\n if(connectorVisible) {\n coerce('connector.mode');\n var connectorLineWidth = coerce('connector.line.width');\n if(connectorLineWidth) {\n coerce('connector.line.color');\n coerce('connector.line.dash');\n }\n }\n}\n\nfunction crossTraceDefaults(fullData, fullLayout) {\n var traceIn, traceOut;\n\n function coerce(attr) {\n return Lib.coerce(traceOut._input, traceOut, attributes, attr);\n }\n\n if(fullLayout.waterfallmode === 'group') {\n for(var i = 0; i < fullData.length; i++) {\n traceOut = fullData[i];\n traceIn = traceOut._input;\n\n handleGroupingDefaults(traceIn, traceOut, fullLayout, coerce);\n }\n }\n}\n\nmodule.exports = {\n supplyDefaults: supplyDefaults,\n crossTraceDefaults: crossTraceDefaults\n};\n\n},{\"../../components/color\":366,\"../../constants/delta.js\":473,\"../../lib\":503,\"../bar/defaults\":652,\"../scatter/period_defaults\":945,\"../scatter/xy_defaults\":952,\"./attributes\":1101}],1106:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function eventData(out, pt /* , trace, cd, pointNumber */) {\n // standard cartesian event data\n out.x = 'xVal' in pt ? pt.xVal : pt.x;\n out.y = 'yVal' in pt ? pt.yVal : pt.y;\n\n // for funnel\n if('initial' in pt) out.initial = pt.initial;\n if('delta' in pt) out.delta = pt.delta;\n if('final' in pt) out.final = pt.final;\n\n if(pt.xa) out.xaxis = pt.xa;\n if(pt.ya) out.yaxis = pt.ya;\n\n return out;\n};\n\n},{}],1107:[function(_dereq_,module,exports){\n'use strict';\n\nvar hoverLabelText = _dereq_('../../plots/cartesian/axes').hoverLabelText;\nvar opacity = _dereq_('../../components/color').opacity;\nvar hoverOnBars = _dereq_('../bar/hover').hoverOnBars;\nvar delta = _dereq_('../../constants/delta.js');\n\nvar DIRSYMBOL = {\n increasing: delta.INCREASING.SYMBOL,\n decreasing: delta.DECREASING.SYMBOL\n};\n\nmodule.exports = function hoverPoints(pointData, xval, yval, hovermode, opts) {\n var point = hoverOnBars(pointData, xval, yval, hovermode, opts);\n if(!point) return;\n\n var cd = point.cd;\n var trace = cd[0].trace;\n var isHorizontal = (trace.orientation === 'h');\n\n var vLetter = isHorizontal ? 'x' : 'y';\n var vAxis = isHorizontal ? pointData.xa : pointData.ya;\n\n function formatNumber(a) {\n return hoverLabelText(vAxis, a, trace[vLetter + 'hoverformat']);\n }\n\n // the closest data point\n var index = point.index;\n var di = cd[index];\n\n var size = (di.isSum) ? di.b + di.s : di.rawS;\n\n if(!di.isSum) {\n point.initial = di.b + di.s - size;\n point.delta = size;\n point.final = point.initial + point.delta;\n\n var v = formatNumber(Math.abs(point.delta));\n point.deltaLabel = size < 0 ? '(' + v + ')' : v;\n point.finalLabel = formatNumber(point.final);\n point.initialLabel = formatNumber(point.initial);\n }\n\n var hoverinfo = di.hi || trace.hoverinfo;\n var text = [];\n if(hoverinfo && hoverinfo !== 'none' && hoverinfo !== 'skip') {\n var isAll = (hoverinfo === 'all');\n var parts = hoverinfo.split('+');\n\n var hasFlag = function(flag) { return isAll || parts.indexOf(flag) !== -1; };\n\n if(!di.isSum) {\n if(hasFlag('final') &&\n (isHorizontal ? !hasFlag('x') : !hasFlag('y')) // don't display redundant info.\n ) {\n text.push(point.finalLabel);\n }\n if(hasFlag('delta')) {\n if(size < 0) {\n text.push(point.deltaLabel + ' ' + DIRSYMBOL.decreasing);\n } else {\n text.push(point.deltaLabel + ' ' + DIRSYMBOL.increasing);\n }\n }\n if(hasFlag('initial')) {\n text.push('Initial: ' + point.initialLabel);\n }\n }\n }\n\n if(text.length) point.extraText = text.join('
');\n\n point.color = getTraceColor(trace, di);\n\n return [point];\n};\n\nfunction getTraceColor(trace, di) {\n var cont = trace[di.dir].marker;\n var mc = cont.color;\n var mlc = cont.line.color;\n var mlw = cont.line.width;\n if(opacity(mc)) return mc;\n else if(opacity(mlc) && mlw) return mlc;\n}\n\n},{\"../../components/color\":366,\"../../constants/delta.js\":473,\"../../plots/cartesian/axes\":554,\"../bar/hover\":655}],1108:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n layoutAttributes: _dereq_('./layout_attributes'),\n supplyDefaults: _dereq_('./defaults').supplyDefaults,\n crossTraceDefaults: _dereq_('./defaults').crossTraceDefaults,\n supplyLayoutDefaults: _dereq_('./layout_defaults'),\n calc: _dereq_('./calc'),\n crossTraceCalc: _dereq_('./cross_trace_calc'),\n plot: _dereq_('./plot'),\n style: _dereq_('./style').style,\n hoverPoints: _dereq_('./hover'),\n eventData: _dereq_('./event_data'),\n\n selectPoints: _dereq_('../bar/select'),\n\n moduleType: 'trace',\n name: 'waterfall',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: ['bar-like', 'cartesian', 'svg', 'oriented', 'showLegend', 'zoomScale'],\n meta: {\n }\n};\n\n},{\"../../plots/cartesian\":568,\"../bar/select\":660,\"./attributes\":1101,\"./calc\":1102,\"./cross_trace_calc\":1104,\"./defaults\":1105,\"./event_data\":1106,\"./hover\":1107,\"./layout_attributes\":1109,\"./layout_defaults\":1110,\"./plot\":1111,\"./style\":1112}],1109:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n waterfallmode: {\n valType: 'enumerated',\n values: ['group', 'overlay'],\n dflt: 'group',\n editType: 'calc',\n },\n waterfallgap: {\n valType: 'number',\n min: 0,\n max: 1,\n editType: 'calc',\n },\n waterfallgroupgap: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0,\n editType: 'calc',\n }\n};\n\n},{}],1110:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar layoutAttributes = _dereq_('./layout_attributes');\n\nmodule.exports = function(layoutIn, layoutOut, fullData) {\n var hasTraceType = false;\n\n function coerce(attr, dflt) {\n return Lib.coerce(layoutIn, layoutOut, layoutAttributes, attr, dflt);\n }\n\n for(var i = 0; i < fullData.length; i++) {\n var trace = fullData[i];\n\n if(trace.visible && trace.type === 'waterfall') {\n hasTraceType = true;\n break;\n }\n }\n\n if(hasTraceType) {\n coerce('waterfallmode');\n coerce('waterfallgap', 0.2);\n coerce('waterfallgroupgap');\n }\n};\n\n},{\"../../lib\":503,\"./layout_attributes\":1109}],1111:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Lib = _dereq_('../../lib');\nvar Drawing = _dereq_('../../components/drawing');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\nvar barPlot = _dereq_('../bar/plot');\nvar clearMinTextSize = _dereq_('../bar/uniform_text').clearMinTextSize;\n\nmodule.exports = function plot(gd, plotinfo, cdModule, traceLayer) {\n var fullLayout = gd._fullLayout;\n\n clearMinTextSize('waterfall', fullLayout);\n\n barPlot.plot(gd, plotinfo, cdModule, traceLayer, {\n mode: fullLayout.waterfallmode,\n norm: fullLayout.waterfallmode,\n gap: fullLayout.waterfallgap,\n groupgap: fullLayout.waterfallgroupgap\n });\n\n plotConnectors(gd, plotinfo, cdModule, traceLayer);\n};\n\nfunction plotConnectors(gd, plotinfo, cdModule, traceLayer) {\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n\n Lib.makeTraceGroups(traceLayer, cdModule, 'trace bars').each(function(cd) {\n var plotGroup = d3.select(this);\n var trace = cd[0].trace;\n\n var group = Lib.ensureSingle(plotGroup, 'g', 'lines');\n\n if(!trace.connector || !trace.connector.visible) {\n group.remove();\n return;\n }\n\n var isHorizontal = (trace.orientation === 'h');\n var mode = trace.connector.mode;\n\n var connectors = group.selectAll('g.line').data(Lib.identity);\n\n connectors.enter().append('g')\n .classed('line', true);\n\n connectors.exit().remove();\n\n var len = connectors.size();\n\n connectors.each(function(di, i) {\n // don't draw lines between nulls\n if(i !== len - 1 && !di.cNext) return;\n\n var xy = getXY(di, xa, ya, isHorizontal);\n var x = xy[0];\n var y = xy[1];\n\n var shape = '';\n\n if(\n x[0] !== BADNUM && y[0] !== BADNUM &&\n x[1] !== BADNUM && y[1] !== BADNUM\n ) {\n if(mode === 'spanning') {\n if(!di.isSum && i > 0) {\n if(isHorizontal) {\n shape += 'M' + x[0] + ',' + y[1] + 'V' + y[0];\n } else {\n shape += 'M' + x[1] + ',' + y[0] + 'H' + x[0];\n }\n }\n }\n\n if(mode !== 'between') {\n if(di.isSum || i < len - 1) {\n if(isHorizontal) {\n shape += 'M' + x[1] + ',' + y[0] + 'V' + y[1];\n } else {\n shape += 'M' + x[0] + ',' + y[1] + 'H' + x[1];\n }\n }\n }\n\n if(x[2] !== BADNUM && y[2] !== BADNUM) {\n if(isHorizontal) {\n shape += 'M' + x[1] + ',' + y[1] + 'V' + y[2];\n } else {\n shape += 'M' + x[1] + ',' + y[1] + 'H' + x[2];\n }\n }\n }\n\n if(shape === '') shape = 'M0,0Z';\n\n Lib.ensureSingle(d3.select(this), 'path')\n .attr('d', shape)\n .call(Drawing.setClipUrl, plotinfo.layerClipId, gd);\n });\n });\n}\n\nfunction getXY(di, xa, ya, isHorizontal) {\n var s = [];\n var p = [];\n\n var sAxis = isHorizontal ? xa : ya;\n var pAxis = isHorizontal ? ya : xa;\n\n s[0] = sAxis.c2p(di.s0, true);\n p[0] = pAxis.c2p(di.p0, true);\n\n s[1] = sAxis.c2p(di.s1, true);\n p[1] = pAxis.c2p(di.p1, true);\n\n s[2] = sAxis.c2p(di.nextS0, true);\n p[2] = pAxis.c2p(di.nextP0, true);\n\n return isHorizontal ? [s, p] : [p, s];\n}\n\n},{\"../../components/drawing\":388,\"../../constants/numerical\":479,\"../../lib\":503,\"../bar/plot\":659,\"../bar/uniform_text\":664,\"@plotly/d3\":58}],1112:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Drawing = _dereq_('../../components/drawing');\nvar Color = _dereq_('../../components/color');\nvar DESELECTDIM = _dereq_('../../constants/interactions').DESELECTDIM;\nvar barStyle = _dereq_('../bar/style');\nvar resizeText = _dereq_('../bar/uniform_text').resizeText;\nvar styleTextPoints = barStyle.styleTextPoints;\n\nfunction style(gd, cd, sel) {\n var s = sel ? sel : d3.select(gd).selectAll('g.waterfalllayer').selectAll('g.trace');\n resizeText(gd, s, 'waterfall');\n\n s.style('opacity', function(d) { return d[0].trace.opacity; });\n\n s.each(function(d) {\n var gTrace = d3.select(this);\n var trace = d[0].trace;\n\n gTrace.selectAll('.point > path').each(function(di) {\n if(!di.isBlank) {\n var cont = trace[di.dir].marker;\n\n d3.select(this)\n .call(Color.fill, cont.color)\n .call(Color.stroke, cont.line.color)\n .call(Drawing.dashLine, cont.line.dash, cont.line.width)\n .style('opacity', trace.selectedpoints && !di.selected ? DESELECTDIM : 1);\n }\n });\n\n styleTextPoints(gTrace, trace, gd);\n\n gTrace.selectAll('.lines').each(function() {\n var cont = trace.connector.line;\n\n Drawing.lineGroupStyle(\n d3.select(this).selectAll('path'),\n cont.width,\n cont.color,\n cont.dash\n );\n });\n });\n}\n\nmodule.exports = {\n style: style\n};\n\n},{\"../../components/color\":366,\"../../components/drawing\":388,\"../../constants/interactions\":478,\"../bar/style\":662,\"../bar/uniform_text\":664,\"@plotly/d3\":58}],1113:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../plots/cartesian/axes');\nvar Lib = _dereq_('../lib');\nvar PlotSchema = _dereq_('../plot_api/plot_schema');\nvar pointsAccessorFunction = _dereq_('./helpers').pointsAccessorFunction;\nvar BADNUM = _dereq_('../constants/numerical').BADNUM;\n\nexports.moduleType = 'transform';\n\nexports.name = 'aggregate';\n\nvar attrs = exports.attributes = {\n enabled: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n },\n groups: {\n // TODO: groupby should support string or array grouping this way too\n // currently groupby only allows a grouping array\n valType: 'string',\n strict: true,\n noBlank: true,\n arrayOk: true,\n dflt: 'x',\n editType: 'calc',\n },\n aggregations: {\n _isLinkedToArray: 'aggregation',\n target: {\n valType: 'string',\n editType: 'calc',\n },\n func: {\n valType: 'enumerated',\n values: ['count', 'sum', 'avg', 'median', 'mode', 'rms', 'stddev', 'min', 'max', 'first', 'last', 'change', 'range'],\n dflt: 'first',\n editType: 'calc',\n },\n funcmode: {\n valType: 'enumerated',\n values: ['sample', 'population'],\n dflt: 'sample',\n editType: 'calc',\n },\n enabled: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n },\n editType: 'calc'\n },\n editType: 'calc'\n};\n\nvar aggAttrs = attrs.aggregations;\n\n/**\n * Supply transform attributes defaults\n *\n * @param {object} transformIn\n * object linked to trace.transforms[i] with 'func' set to exports.name\n * @param {object} traceOut\n * the _fullData trace this transform applies to\n * @param {object} layout\n * the plot's (not-so-full) layout\n * @param {object} traceIn\n * the input data trace this transform applies to\n *\n * @return {object} transformOut\n * copy of transformIn that contains attribute defaults\n */\nexports.supplyDefaults = function(transformIn, traceOut) {\n var transformOut = {};\n var i;\n\n function coerce(attr, dflt) {\n return Lib.coerce(transformIn, transformOut, attrs, attr, dflt);\n }\n\n var enabled = coerce('enabled');\n\n if(!enabled) return transformOut;\n\n /*\n * Normally _arrayAttrs is calculated during doCalc, but that comes later.\n * Anyway this can change due to *count* aggregations (see below) so it's not\n * necessarily the same set.\n *\n * For performance we turn it into an object of truthy values\n * we'll use 1 for arrays we haven't aggregated yet, 0 for finished arrays,\n * as distinct from undefined which means this array isn't present in the input\n * missing arrays can still be aggregate outputs for *count* aggregations.\n */\n var arrayAttrArray = PlotSchema.findArrayAttributes(traceOut);\n var arrayAttrs = {};\n for(i = 0; i < arrayAttrArray.length; i++) arrayAttrs[arrayAttrArray[i]] = 1;\n\n var groups = coerce('groups');\n\n if(!Array.isArray(groups)) {\n if(!arrayAttrs[groups]) {\n transformOut.enabled = false;\n return transformOut;\n }\n arrayAttrs[groups] = 0;\n }\n\n var aggregationsIn = transformIn.aggregations || [];\n var aggregationsOut = transformOut.aggregations = new Array(aggregationsIn.length);\n var aggregationOut;\n\n function coercei(attr, dflt) {\n return Lib.coerce(aggregationsIn[i], aggregationOut, aggAttrs, attr, dflt);\n }\n\n for(i = 0; i < aggregationsIn.length; i++) {\n aggregationOut = {_index: i};\n var target = coercei('target');\n var func = coercei('func');\n var enabledi = coercei('enabled');\n\n // add this aggregation to the output only if it's the first instance\n // of a valid target attribute - or an unused target attribute with \"count\"\n if(enabledi && target && (arrayAttrs[target] || (func === 'count' && arrayAttrs[target] === undefined))) {\n if(func === 'stddev') coercei('funcmode');\n\n arrayAttrs[target] = 0;\n aggregationsOut[i] = aggregationOut;\n } else aggregationsOut[i] = {enabled: false, _index: i};\n }\n\n // any array attributes we haven't yet covered, fill them with the default aggregation\n for(i = 0; i < arrayAttrArray.length; i++) {\n if(arrayAttrs[arrayAttrArray[i]]) {\n aggregationsOut.push({\n target: arrayAttrArray[i],\n func: aggAttrs.func.dflt,\n enabled: true,\n _index: -1\n });\n }\n }\n\n return transformOut;\n};\n\n\nexports.calcTransform = function(gd, trace, opts) {\n if(!opts.enabled) return;\n\n var groups = opts.groups;\n\n var groupArray = Lib.getTargetArray(trace, {target: groups});\n if(!groupArray) return;\n\n var i, vi, groupIndex, newGrouping;\n\n var groupIndices = {};\n var indexToPoints = {};\n var groupings = [];\n\n var originalPointsAccessor = pointsAccessorFunction(trace.transforms, opts);\n\n var len = groupArray.length;\n if(trace._length) len = Math.min(len, trace._length);\n\n for(i = 0; i < len; i++) {\n vi = groupArray[i];\n groupIndex = groupIndices[vi];\n if(groupIndex === undefined) {\n groupIndices[vi] = groupings.length;\n newGrouping = [i];\n groupings.push(newGrouping);\n indexToPoints[groupIndices[vi]] = originalPointsAccessor(i);\n } else {\n groupings[groupIndex].push(i);\n indexToPoints[groupIndices[vi]] = (indexToPoints[groupIndices[vi]] || []).concat(originalPointsAccessor(i));\n }\n }\n\n opts._indexToPoints = indexToPoints;\n\n var aggregations = opts.aggregations;\n\n for(i = 0; i < aggregations.length; i++) {\n aggregateOneArray(gd, trace, groupings, aggregations[i]);\n }\n\n if(typeof groups === 'string') {\n aggregateOneArray(gd, trace, groupings, {\n target: groups,\n func: 'first',\n enabled: true\n });\n }\n\n trace._length = groupings.length;\n};\n\nfunction aggregateOneArray(gd, trace, groupings, aggregation) {\n if(!aggregation.enabled) return;\n\n var attr = aggregation.target;\n var targetNP = Lib.nestedProperty(trace, attr);\n var arrayIn = targetNP.get();\n var conversions = Axes.getDataConversions(gd, trace, attr, arrayIn);\n var func = getAggregateFunction(aggregation, conversions);\n\n var arrayOut = new Array(groupings.length);\n for(var i = 0; i < groupings.length; i++) {\n arrayOut[i] = func(arrayIn, groupings[i]);\n }\n targetNP.set(arrayOut);\n\n if(aggregation.func === 'count') {\n // count does not depend on an input array, so it's likely not part of _arrayAttrs yet\n // but after this transform it most definitely *is* an array attribute.\n Lib.pushUnique(trace._arrayAttrs, attr);\n }\n}\n\nfunction getAggregateFunction(opts, conversions) {\n var func = opts.func;\n var d2c = conversions.d2c;\n var c2d = conversions.c2d;\n\n switch(func) {\n // count, first, and last don't depend on anything about the data\n // point back to pure functions for performance\n case 'count':\n return count;\n case 'first':\n return first;\n case 'last':\n return last;\n\n case 'sum':\n // This will produce output in all cases even though it's nonsensical\n // for date or category data.\n return function(array, indices) {\n var total = 0;\n for(var i = 0; i < indices.length; i++) {\n var vi = d2c(array[indices[i]]);\n if(vi !== BADNUM) total += vi;\n }\n return c2d(total);\n };\n\n case 'avg':\n // Generally meaningless for category data but it still does something.\n return function(array, indices) {\n var total = 0;\n var cnt = 0;\n for(var i = 0; i < indices.length; i++) {\n var vi = d2c(array[indices[i]]);\n if(vi !== BADNUM) {\n total += vi;\n cnt++;\n }\n }\n return cnt ? c2d(total / cnt) : BADNUM;\n };\n\n case 'min':\n return function(array, indices) {\n var out = Infinity;\n for(var i = 0; i < indices.length; i++) {\n var vi = d2c(array[indices[i]]);\n if(vi !== BADNUM) out = Math.min(out, vi);\n }\n return (out === Infinity) ? BADNUM : c2d(out);\n };\n\n case 'max':\n return function(array, indices) {\n var out = -Infinity;\n for(var i = 0; i < indices.length; i++) {\n var vi = d2c(array[indices[i]]);\n if(vi !== BADNUM) out = Math.max(out, vi);\n }\n return (out === -Infinity) ? BADNUM : c2d(out);\n };\n\n case 'range':\n return function(array, indices) {\n var min = Infinity;\n var max = -Infinity;\n for(var i = 0; i < indices.length; i++) {\n var vi = d2c(array[indices[i]]);\n if(vi !== BADNUM) {\n min = Math.min(min, vi);\n max = Math.max(max, vi);\n }\n }\n return (max === -Infinity || min === Infinity) ? BADNUM : c2d(max - min);\n };\n\n case 'change':\n return function(array, indices) {\n var first = d2c(array[indices[0]]);\n var last = d2c(array[indices[indices.length - 1]]);\n return (first === BADNUM || last === BADNUM) ? BADNUM : c2d(last - first);\n };\n\n case 'median':\n return function(array, indices) {\n var sortCalc = [];\n for(var i = 0; i < indices.length; i++) {\n var vi = d2c(array[indices[i]]);\n if(vi !== BADNUM) sortCalc.push(vi);\n }\n if(!sortCalc.length) return BADNUM;\n sortCalc.sort(Lib.sorterAsc);\n var mid = (sortCalc.length - 1) / 2;\n return c2d((sortCalc[Math.floor(mid)] + sortCalc[Math.ceil(mid)]) / 2);\n };\n\n case 'mode':\n return function(array, indices) {\n var counts = {};\n var maxCnt = 0;\n var out = BADNUM;\n for(var i = 0; i < indices.length; i++) {\n var vi = d2c(array[indices[i]]);\n if(vi !== BADNUM) {\n var counti = counts[vi] = (counts[vi] || 0) + 1;\n if(counti > maxCnt) {\n maxCnt = counti;\n out = vi;\n }\n }\n }\n return maxCnt ? c2d(out) : BADNUM;\n };\n\n case 'rms':\n return function(array, indices) {\n var total = 0;\n var cnt = 0;\n for(var i = 0; i < indices.length; i++) {\n var vi = d2c(array[indices[i]]);\n if(vi !== BADNUM) {\n total += vi * vi;\n cnt++;\n }\n }\n return cnt ? c2d(Math.sqrt(total / cnt)) : BADNUM;\n };\n\n case 'stddev':\n return function(array, indices) {\n // balance numerical stability with performance:\n // so that we call d2c once per element but don't need to\n // store them, reference all to the first element\n var total = 0;\n var total2 = 0;\n var cnt = 1;\n var v0 = BADNUM;\n var i;\n for(i = 0; i < indices.length && v0 === BADNUM; i++) {\n v0 = d2c(array[indices[i]]);\n }\n if(v0 === BADNUM) return BADNUM;\n\n for(; i < indices.length; i++) {\n var vi = d2c(array[indices[i]]);\n if(vi !== BADNUM) {\n var dv = vi - v0;\n total += dv;\n total2 += dv * dv;\n cnt++;\n }\n }\n\n // This is population std dev, if we want sample std dev\n // we would need (...) / (cnt - 1)\n // Also note there's no c2d here - that means for dates the result\n // is a number of milliseconds, and for categories it's a number\n // of category differences, which is not generically meaningful but\n // as in other cases we don't forbid it.\n var norm = (opts.funcmode === 'sample') ? (cnt - 1) : cnt;\n // this is debatable: should a count of 1 return sample stddev of\n // 0 or undefined?\n if(!norm) return 0;\n return Math.sqrt((total2 - (total * total / cnt)) / norm);\n };\n }\n}\n\nfunction count(array, indices) {\n return indices.length;\n}\n\nfunction first(array, indices) {\n return array[indices[0]];\n}\n\nfunction last(array, indices) {\n return array[indices[indices.length - 1]];\n}\n\n},{\"../constants/numerical\":479,\"../lib\":503,\"../plot_api/plot_schema\":542,\"../plots/cartesian/axes\":554,\"./helpers\":1116}],1114:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../lib');\nvar Registry = _dereq_('../registry');\nvar Axes = _dereq_('../plots/cartesian/axes');\nvar pointsAccessorFunction = _dereq_('./helpers').pointsAccessorFunction;\n\nvar filterOps = _dereq_('../constants/filter_ops');\nvar COMPARISON_OPS = filterOps.COMPARISON_OPS;\nvar INTERVAL_OPS = filterOps.INTERVAL_OPS;\nvar SET_OPS = filterOps.SET_OPS;\n\nexports.moduleType = 'transform';\n\nexports.name = 'filter';\n\nexports.attributes = {\n enabled: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n },\n target: {\n valType: 'string',\n strict: true,\n noBlank: true,\n arrayOk: true,\n dflt: 'x',\n editType: 'calc',\n },\n operation: {\n valType: 'enumerated',\n values: []\n .concat(COMPARISON_OPS)\n .concat(INTERVAL_OPS)\n .concat(SET_OPS),\n dflt: '=',\n editType: 'calc',\n },\n value: {\n valType: 'any',\n dflt: 0,\n editType: 'calc',\n },\n preservegaps: {\n valType: 'boolean',\n dflt: false,\n editType: 'calc',\n },\n editType: 'calc'\n};\n\nexports.supplyDefaults = function(transformIn) {\n var transformOut = {};\n\n function coerce(attr, dflt) {\n return Lib.coerce(transformIn, transformOut, exports.attributes, attr, dflt);\n }\n\n var enabled = coerce('enabled');\n\n if(enabled) {\n var target = coerce('target');\n\n if(Lib.isArrayOrTypedArray(target) && target.length === 0) {\n transformOut.enabled = false;\n return transformOut;\n }\n\n coerce('preservegaps');\n coerce('operation');\n coerce('value');\n\n var handleCalendarDefaults = Registry.getComponentMethod('calendars', 'handleDefaults');\n handleCalendarDefaults(transformIn, transformOut, 'valuecalendar', null);\n handleCalendarDefaults(transformIn, transformOut, 'targetcalendar', null);\n }\n\n return transformOut;\n};\n\nexports.calcTransform = function(gd, trace, opts) {\n if(!opts.enabled) return;\n\n var targetArray = Lib.getTargetArray(trace, opts);\n if(!targetArray) return;\n\n var target = opts.target;\n\n var len = targetArray.length;\n if(trace._length) len = Math.min(len, trace._length);\n\n var targetCalendar = opts.targetcalendar;\n var arrayAttrs = trace._arrayAttrs;\n var preservegaps = opts.preservegaps;\n\n // even if you provide targetcalendar, if target is a string and there\n // is a calendar attribute matching target it will get used instead.\n if(typeof target === 'string') {\n var attrTargetCalendar = Lib.nestedProperty(trace, target + 'calendar').get();\n if(attrTargetCalendar) targetCalendar = attrTargetCalendar;\n }\n\n var d2c = Axes.getDataToCoordFunc(gd, trace, target, targetArray);\n var filterFunc = getFilterFunc(opts, d2c, targetCalendar);\n var originalArrays = {};\n var indexToPoints = {};\n var index = 0;\n\n function forAllAttrs(fn, index) {\n for(var j = 0; j < arrayAttrs.length; j++) {\n var np = Lib.nestedProperty(trace, arrayAttrs[j]);\n fn(np, index);\n }\n }\n\n var initFn;\n var fillFn;\n if(preservegaps) {\n initFn = function(np) {\n originalArrays[np.astr] = Lib.extendDeep([], np.get());\n np.set(new Array(len));\n };\n fillFn = function(np, index) {\n var val = originalArrays[np.astr][index];\n np.get()[index] = val;\n };\n } else {\n initFn = function(np) {\n originalArrays[np.astr] = Lib.extendDeep([], np.get());\n np.set([]);\n };\n fillFn = function(np, index) {\n var val = originalArrays[np.astr][index];\n np.get().push(val);\n };\n }\n\n // copy all original array attribute values, and clear arrays in trace\n forAllAttrs(initFn);\n\n var originalPointsAccessor = pointsAccessorFunction(trace.transforms, opts);\n\n // loop through filter array, fill trace arrays if passed\n for(var i = 0; i < len; i++) {\n var passed = filterFunc(targetArray[i]);\n if(passed) {\n forAllAttrs(fillFn, i);\n indexToPoints[index++] = originalPointsAccessor(i);\n } else if(preservegaps) index++;\n }\n\n opts._indexToPoints = indexToPoints;\n trace._length = index;\n};\n\nfunction getFilterFunc(opts, d2c, targetCalendar) {\n var operation = opts.operation;\n var value = opts.value;\n var hasArrayValue = Array.isArray(value);\n\n function isOperationIn(array) {\n return array.indexOf(operation) !== -1;\n }\n\n var d2cValue = function(v) { return d2c(v, 0, opts.valuecalendar); };\n var d2cTarget = function(v) { return d2c(v, 0, targetCalendar); };\n\n var coercedValue;\n\n if(isOperationIn(COMPARISON_OPS)) {\n coercedValue = hasArrayValue ? d2cValue(value[0]) : d2cValue(value);\n } else if(isOperationIn(INTERVAL_OPS)) {\n coercedValue = hasArrayValue ?\n [d2cValue(value[0]), d2cValue(value[1])] :\n [d2cValue(value), d2cValue(value)];\n } else if(isOperationIn(SET_OPS)) {\n coercedValue = hasArrayValue ? value.map(d2cValue) : [d2cValue(value)];\n }\n\n switch(operation) {\n case '=':\n return function(v) { return d2cTarget(v) === coercedValue; };\n\n case '!=':\n return function(v) { return d2cTarget(v) !== coercedValue; };\n\n case '<':\n return function(v) { return d2cTarget(v) < coercedValue; };\n\n case '<=':\n return function(v) { return d2cTarget(v) <= coercedValue; };\n\n case '>':\n return function(v) { return d2cTarget(v) > coercedValue; };\n\n case '>=':\n return function(v) { return d2cTarget(v) >= coercedValue; };\n\n case '[]':\n return function(v) {\n var cv = d2cTarget(v);\n return cv >= coercedValue[0] && cv <= coercedValue[1];\n };\n\n case '()':\n return function(v) {\n var cv = d2cTarget(v);\n return cv > coercedValue[0] && cv < coercedValue[1];\n };\n\n case '[)':\n return function(v) {\n var cv = d2cTarget(v);\n return cv >= coercedValue[0] && cv < coercedValue[1];\n };\n\n case '(]':\n return function(v) {\n var cv = d2cTarget(v);\n return cv > coercedValue[0] && cv <= coercedValue[1];\n };\n\n case '][':\n return function(v) {\n var cv = d2cTarget(v);\n return cv <= coercedValue[0] || cv >= coercedValue[1];\n };\n\n case ')(':\n return function(v) {\n var cv = d2cTarget(v);\n return cv < coercedValue[0] || cv > coercedValue[1];\n };\n\n case '](':\n return function(v) {\n var cv = d2cTarget(v);\n return cv <= coercedValue[0] || cv > coercedValue[1];\n };\n\n case ')[':\n return function(v) {\n var cv = d2cTarget(v);\n return cv < coercedValue[0] || cv >= coercedValue[1];\n };\n\n case '{}':\n return function(v) {\n return coercedValue.indexOf(d2cTarget(v)) !== -1;\n };\n\n case '}{':\n return function(v) {\n return coercedValue.indexOf(d2cTarget(v)) === -1;\n };\n }\n}\n\n},{\"../constants/filter_ops\":475,\"../lib\":503,\"../plots/cartesian/axes\":554,\"../registry\":638,\"./helpers\":1116}],1115:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../lib');\nvar PlotSchema = _dereq_('../plot_api/plot_schema');\nvar Plots = _dereq_('../plots/plots');\nvar pointsAccessorFunction = _dereq_('./helpers').pointsAccessorFunction;\n\nexports.moduleType = 'transform';\n\nexports.name = 'groupby';\n\nexports.attributes = {\n enabled: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n },\n groups: {\n valType: 'data_array',\n dflt: [],\n editType: 'calc',\n },\n nameformat: {\n valType: 'string',\n editType: 'calc',\n },\n styles: {\n _isLinkedToArray: 'style',\n target: {\n valType: 'string',\n editType: 'calc',\n },\n value: {\n valType: 'any',\n dflt: {},\n editType: 'calc',\n _compareAsJSON: true\n },\n editType: 'calc'\n },\n editType: 'calc'\n};\n\n/**\n * Supply transform attributes defaults\n *\n * @param {object} transformIn\n * object linked to trace.transforms[i] with 'type' set to exports.name\n * @param {object} traceOut\n * the _fullData trace this transform applies to\n * @param {object} layout\n * the plot's (not-so-full) layout\n * @param {object} traceIn\n * the input data trace this transform applies to\n *\n * @return {object} transformOut\n * copy of transformIn that contains attribute defaults\n */\nexports.supplyDefaults = function(transformIn, traceOut, layout) {\n var i;\n var transformOut = {};\n\n function coerce(attr, dflt) {\n return Lib.coerce(transformIn, transformOut, exports.attributes, attr, dflt);\n }\n\n var enabled = coerce('enabled');\n\n if(!enabled) return transformOut;\n\n coerce('groups');\n coerce('nameformat', layout._dataLength > 1 ? '%{group} (%{trace})' : '%{group}');\n\n var styleIn = transformIn.styles;\n var styleOut = transformOut.styles = [];\n\n if(styleIn) {\n for(i = 0; i < styleIn.length; i++) {\n var thisStyle = styleOut[i] = {};\n Lib.coerce(styleIn[i], styleOut[i], exports.attributes.styles, 'target');\n var value = Lib.coerce(styleIn[i], styleOut[i], exports.attributes.styles, 'value');\n\n // so that you can edit value in place and have Plotly.react notice it, or\n // rebuild it every time and have Plotly.react NOT think it changed:\n // use _compareAsJSON to say we should diff the _JSON_value\n if(Lib.isPlainObject(value)) thisStyle.value = Lib.extendDeep({}, value);\n else if(value) delete thisStyle.value;\n }\n }\n\n return transformOut;\n};\n\n\n/**\n * Apply transform !!!\n *\n * @param {array} data\n * array of transformed traces (is [fullTrace] upon first transform)\n *\n * @param {object} state\n * state object which includes:\n * - transform {object} full transform attributes\n * - fullTrace {object} full trace object which is being transformed\n * - fullData {array} full pre-transform(s) data array\n * - layout {object} the plot's (not-so-full) layout\n *\n * @return {object} newData\n * array of transformed traces\n */\nexports.transform = function(data, state) {\n var newTraces, i, j;\n var newData = [];\n\n for(i = 0; i < data.length; i++) {\n newTraces = transformOne(data[i], state);\n\n for(j = 0; j < newTraces.length; j++) {\n newData.push(newTraces[j]);\n }\n }\n\n return newData;\n};\n\nfunction transformOne(trace, state) {\n var i, j, k, attr, srcArray, groupName, newTrace, transforms, arrayLookup;\n var groupNameObj;\n\n var opts = state.transform;\n var transformIndex = state.transformIndex;\n var groups = trace.transforms[transformIndex].groups;\n var originalPointsAccessor = pointsAccessorFunction(trace.transforms, opts);\n\n if(!(Lib.isArrayOrTypedArray(groups)) || groups.length === 0) {\n return [trace];\n }\n\n var groupNames = Lib.filterUnique(groups);\n var newData = new Array(groupNames.length);\n var len = groups.length;\n\n var arrayAttrs = PlotSchema.findArrayAttributes(trace);\n\n var styles = opts.styles || [];\n var styleLookup = {};\n for(i = 0; i < styles.length; i++) {\n styleLookup[styles[i].target] = styles[i].value;\n }\n\n if(opts.styles) {\n groupNameObj = Lib.keyedContainer(opts, 'styles', 'target', 'value.name');\n }\n\n // An index to map group name --> expanded trace index\n var indexLookup = {};\n var indexCnts = {};\n\n for(i = 0; i < groupNames.length; i++) {\n groupName = groupNames[i];\n indexLookup[groupName] = i;\n indexCnts[groupName] = 0;\n\n // Start with a deep extend that just copies array references.\n newTrace = newData[i] = Lib.extendDeepNoArrays({}, trace);\n newTrace._group = groupName;\n newTrace.transforms[transformIndex]._indexToPoints = {};\n\n var suppliedName = null;\n if(groupNameObj) {\n suppliedName = groupNameObj.get(groupName);\n }\n\n if(suppliedName || suppliedName === '') {\n newTrace.name = suppliedName;\n } else {\n newTrace.name = Lib.templateString(opts.nameformat, {\n trace: trace.name,\n group: groupName\n });\n }\n\n // In order for groups to apply correctly to other transform data (e.g.\n // a filter transform), we have to break the connection and clone the\n // transforms so that each group writes grouped values into a different\n // destination. This function does not break the array reference\n // connection between the split transforms it creates. That's handled in\n // initialize, which creates a new empty array for each arrayAttr.\n transforms = newTrace.transforms;\n newTrace.transforms = [];\n for(j = 0; j < transforms.length; j++) {\n newTrace.transforms[j] = Lib.extendDeepNoArrays({}, transforms[j]);\n }\n\n // Initialize empty arrays for the arrayAttrs, to be split in the next step\n for(j = 0; j < arrayAttrs.length; j++) {\n Lib.nestedProperty(newTrace, arrayAttrs[j]).set([]);\n }\n }\n\n // For each array attribute including those nested inside this and other\n // transforms (small note that we technically only need to do this for\n // transforms that have not yet been applied):\n for(k = 0; k < arrayAttrs.length; k++) {\n attr = arrayAttrs[k];\n\n // Cache all the arrays to which we'll push:\n for(j = 0, arrayLookup = []; j < groupNames.length; j++) {\n arrayLookup[j] = Lib.nestedProperty(newData[j], attr).get();\n }\n\n // Get the input data:\n srcArray = Lib.nestedProperty(trace, attr).get();\n\n // Send each data point to the appropriate expanded trace:\n for(j = 0; j < len; j++) {\n // Map group data --> trace index --> array and push data onto it\n arrayLookup[indexLookup[groups[j]]].push(srcArray[j]);\n }\n }\n\n for(j = 0; j < len; j++) {\n newTrace = newData[indexLookup[groups[j]]];\n\n var indexToPoints = newTrace.transforms[transformIndex]._indexToPoints;\n indexToPoints[indexCnts[groups[j]]] = originalPointsAccessor(j);\n indexCnts[groups[j]]++;\n }\n\n for(i = 0; i < groupNames.length; i++) {\n groupName = groupNames[i];\n newTrace = newData[i];\n\n Plots.clearExpandedTraceDefaultColors(newTrace);\n\n // there's no need to coerce styleLookup[groupName] here\n // as another round of supplyDefaults is done on the transformed traces\n newTrace = Lib.extendDeepNoArrays(newTrace, styleLookup[groupName] || {});\n }\n\n return newData;\n}\n\n},{\"../lib\":503,\"../plot_api/plot_schema\":542,\"../plots/plots\":619,\"./helpers\":1116}],1116:[function(_dereq_,module,exports){\n'use strict';\n\nexports.pointsAccessorFunction = function(transforms, opts) {\n var tr;\n var prevIndexToPoints;\n for(var i = 0; i < transforms.length; i++) {\n tr = transforms[i];\n if(tr === opts) break;\n if(!tr._indexToPoints || tr.enabled === false) continue;\n prevIndexToPoints = tr._indexToPoints;\n }\n var originalPointsAccessor = prevIndexToPoints ?\n function(i) {return prevIndexToPoints[i];} :\n function(i) {return [i];};\n return originalPointsAccessor;\n};\n\n},{}],1117:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../lib');\nvar Axes = _dereq_('../plots/cartesian/axes');\nvar pointsAccessorFunction = _dereq_('./helpers').pointsAccessorFunction;\n\nvar BADNUM = _dereq_('../constants/numerical').BADNUM;\n\nexports.moduleType = 'transform';\n\nexports.name = 'sort';\n\nexports.attributes = {\n enabled: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n },\n target: {\n valType: 'string',\n strict: true,\n noBlank: true,\n arrayOk: true,\n dflt: 'x',\n editType: 'calc',\n },\n order: {\n valType: 'enumerated',\n values: ['ascending', 'descending'],\n dflt: 'ascending',\n editType: 'calc',\n },\n editType: 'calc'\n};\n\nexports.supplyDefaults = function(transformIn) {\n var transformOut = {};\n\n function coerce(attr, dflt) {\n return Lib.coerce(transformIn, transformOut, exports.attributes, attr, dflt);\n }\n\n var enabled = coerce('enabled');\n\n if(enabled) {\n coerce('target');\n coerce('order');\n }\n\n return transformOut;\n};\n\nexports.calcTransform = function(gd, trace, opts) {\n if(!opts.enabled) return;\n\n var targetArray = Lib.getTargetArray(trace, opts);\n if(!targetArray) return;\n\n var target = opts.target;\n\n var len = targetArray.length;\n if(trace._length) len = Math.min(len, trace._length);\n\n var arrayAttrs = trace._arrayAttrs;\n var d2c = Axes.getDataToCoordFunc(gd, trace, target, targetArray);\n var indices = getIndices(opts, targetArray, d2c, len);\n var originalPointsAccessor = pointsAccessorFunction(trace.transforms, opts);\n var indexToPoints = {};\n var i, j;\n\n for(i = 0; i < arrayAttrs.length; i++) {\n var np = Lib.nestedProperty(trace, arrayAttrs[i]);\n var arrayOld = np.get();\n var arrayNew = new Array(len);\n\n for(j = 0; j < len; j++) {\n arrayNew[j] = arrayOld[indices[j]];\n }\n\n np.set(arrayNew);\n }\n\n for(j = 0; j < len; j++) {\n indexToPoints[j] = originalPointsAccessor(indices[j]);\n }\n\n opts._indexToPoints = indexToPoints;\n trace._length = len;\n};\n\nfunction getIndices(opts, targetArray, d2c, len) {\n var sortedArray = new Array(len);\n var indices = new Array(len);\n var i;\n\n for(i = 0; i < len; i++) {\n sortedArray[i] = {v: targetArray[i], i: i};\n }\n\n sortedArray.sort(getSortFunc(opts, d2c));\n\n for(i = 0; i < len; i++) {\n indices[i] = sortedArray[i].i;\n }\n\n return indices;\n}\n\nfunction getSortFunc(opts, d2c) {\n switch(opts.order) {\n case 'ascending':\n return function(a, b) {\n var ac = d2c(a.v);\n var bc = d2c(b.v);\n if(ac === BADNUM) {\n return 1;\n }\n if(bc === BADNUM) {\n return -1;\n }\n return ac - bc;\n };\n case 'descending':\n return function(a, b) {\n var ac = d2c(a.v);\n var bc = d2c(b.v);\n if(ac === BADNUM) {\n return 1;\n }\n if(bc === BADNUM) {\n return -1;\n }\n return bc - ac;\n };\n }\n}\n\n},{\"../constants/numerical\":479,\"../lib\":503,\"../plots/cartesian/axes\":554,\"./helpers\":1116}],1118:[function(_dereq_,module,exports){\n'use strict';\n\n// package version injected by `npm run preprocess`\nexports.version = '2.6.2';\n\n},{}],1119:[function(_dereq_,module,exports){\n(function (global){(function (){\n(function(f){if(typeof exports===\"object\"&&typeof module!==\"undefined\"){module.exports=f()}else if(typeof define===\"function\"&&define.amd){define([],f)}else{var g;if(typeof window!==\"undefined\"){g=window}else if(typeof global!==\"undefined\"){g=global}else if(typeof self!==\"undefined\"){g=self}else{g=this}g.stackgl = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c=\"function\"==typeof _dereq_&&_dereq_;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error(\"Cannot find module '\"+i+\"'\");throw a.code=\"MODULE_NOT_FOUND\",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u=\"function\"==typeof _dereq_&&_dereq_,i=0;i 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n var validLen = b64.indexOf('=')\n if (validLen === -1) validLen = len\n\n var placeHoldersLen = validLen === len\n ? 0\n : 4 - (validLen % 4)\n\n return [validLen, placeHoldersLen]\n}\n\n// base64 is 4/3 + up to two characters of the original data\nfunction byteLength (b64) {\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction _byteLength (b64, validLen, placeHoldersLen) {\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction toByteArray (b64) {\n var tmp\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\n\n var curByte = 0\n\n // if there are placeholders, only get up to the last complete 4 chars\n var len = placeHoldersLen > 0\n ? validLen - 4\n : validLen\n\n var i\n for (i = 0; i < len; i += 4) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 18) |\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\n revLookup[b64.charCodeAt(i + 3)]\n arr[curByte++] = (tmp >> 16) & 0xFF\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 2) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 2) |\n (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 1) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 10) |\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\n (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] +\n lookup[num >> 12 & 0x3F] +\n lookup[num >> 6 & 0x3F] +\n lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp =\n ((uint8[i] << 16) & 0xFF0000) +\n ((uint8[i + 1] << 8) & 0xFF00) +\n (uint8[i + 2] & 0xFF)\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(\n uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)\n ))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n parts.push(\n lookup[tmp >> 2] +\n lookup[(tmp << 4) & 0x3F] +\n '=='\n )\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1]\n parts.push(\n lookup[tmp >> 10] +\n lookup[(tmp >> 4) & 0x3F] +\n lookup[(tmp << 2) & 0x3F] +\n '='\n )\n }\n\n return parts.join('')\n}\n\n},{}],2:[function(_glvis_,module,exports){\n\n},{}],3:[function(_glvis_,module,exports){\n(function (Buffer){(function (){\n/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n/* eslint-disable no-proto */\n\n'use strict'\n\nvar base64 = _glvis_('base64-js')\nvar ieee754 = _glvis_('ieee754')\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\n\nvar K_MAX_LENGTH = 0x7fffffff\nexports.kMaxLength = K_MAX_LENGTH\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Print warning and recommend using `buffer` v4.x which has an Object\n * implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * We report that the browser does not support typed arrays if the are not subclassable\n * using __proto__. Firefox 4-29 lacks support for adding new properties to `Uint8Array`\n * (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support\n * for __proto__ and has a buggy typed array implementation.\n */\nBuffer.TYPED_ARRAY_SUPPORT = typedArraySupport()\n\nif (!Buffer.TYPED_ARRAY_SUPPORT && typeof console !== 'undefined' &&\n typeof console.error === 'function') {\n console.error(\n 'This browser lacks typed array (Uint8Array) support which is required by ' +\n '`buffer` v5.x. Use `buffer` v4.x if you require old browser support.'\n )\n}\n\nfunction typedArraySupport () {\n // Can typed array instances can be augmented?\n try {\n var arr = new Uint8Array(1)\n arr.__proto__ = { __proto__: Uint8Array.prototype, foo: function () { return 42 } }\n return arr.foo() === 42\n } catch (e) {\n return false\n }\n}\n\nObject.defineProperty(Buffer.prototype, 'parent', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.buffer\n }\n})\n\nObject.defineProperty(Buffer.prototype, 'offset', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.byteOffset\n }\n})\n\nfunction createBuffer (length) {\n if (length > K_MAX_LENGTH) {\n throw new RangeError('The value \"' + length + '\" is invalid for option \"size\"')\n }\n // Return an augmented `Uint8Array` instance\n var buf = new Uint8Array(length)\n buf.__proto__ = Buffer.prototype\n return buf\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nfunction Buffer (arg, encodingOrOffset, length) {\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new TypeError(\n 'The \"string\" argument must be of type string. Received type number'\n )\n }\n return allocUnsafe(arg)\n }\n return from(arg, encodingOrOffset, length)\n}\n\n// Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97\nif (typeof Symbol !== 'undefined' && Symbol.species != null &&\n Buffer[Symbol.species] === Buffer) {\n Object.defineProperty(Buffer, Symbol.species, {\n value: null,\n configurable: true,\n enumerable: false,\n writable: false\n })\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\nfunction from (value, encodingOrOffset, length) {\n if (typeof value === 'string') {\n return fromString(value, encodingOrOffset)\n }\n\n if (ArrayBuffer.isView(value)) {\n return fromArrayLike(value)\n }\n\n if (value == null) {\n throw TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n }\n\n if (isInstance(value, ArrayBuffer) ||\n (value && isInstance(value.buffer, ArrayBuffer))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof value === 'number') {\n throw new TypeError(\n 'The \"value\" argument must not be of type number. Received type number'\n )\n }\n\n var valueOf = value.valueOf && value.valueOf()\n if (valueOf != null && valueOf !== value) {\n return Buffer.from(valueOf, encodingOrOffset, length)\n }\n\n var b = fromObject(value)\n if (b) return b\n\n if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null &&\n typeof value[Symbol.toPrimitive] === 'function') {\n return Buffer.from(\n value[Symbol.toPrimitive]('string'), encodingOrOffset, length\n )\n }\n\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n return from(value, encodingOrOffset, length)\n}\n\n// Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug:\n// https://github.com/feross/buffer/pull/148\nBuffer.prototype.__proto__ = Uint8Array.prototype\nBuffer.__proto__ = Uint8Array\n\nfunction assertSize (size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be of type number')\n } else if (size < 0) {\n throw new RangeError('The value \"' + size + '\" is invalid for option \"size\"')\n }\n}\n\nfunction alloc (size, fill, encoding) {\n assertSize(size)\n if (size <= 0) {\n return createBuffer(size)\n }\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpretted as a start offset.\n return typeof encoding === 'string'\n ? createBuffer(size).fill(fill, encoding)\n : createBuffer(size).fill(fill)\n }\n return createBuffer(size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n return alloc(size, fill, encoding)\n}\n\nfunction allocUnsafe (size) {\n assertSize(size)\n return createBuffer(size < 0 ? 0 : checked(size) | 0)\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n return allocUnsafe(size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(size)\n}\n\nfunction fromString (string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8'\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n\n var length = byteLength(string, encoding) | 0\n var buf = createBuffer(length)\n\n var actual = buf.write(string, encoding)\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n buf = buf.slice(0, actual)\n }\n\n return buf\n}\n\nfunction fromArrayLike (array) {\n var length = array.length < 0 ? 0 : checked(array.length) | 0\n var buf = createBuffer(length)\n for (var i = 0; i < length; i += 1) {\n buf[i] = array[i] & 255\n }\n return buf\n}\n\nfunction fromArrayBuffer (array, byteOffset, length) {\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\"offset\" is outside of buffer bounds')\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\"length\" is outside of buffer bounds')\n }\n\n var buf\n if (byteOffset === undefined && length === undefined) {\n buf = new Uint8Array(array)\n } else if (length === undefined) {\n buf = new Uint8Array(array, byteOffset)\n } else {\n buf = new Uint8Array(array, byteOffset, length)\n }\n\n // Return an augmented `Uint8Array` instance\n buf.__proto__ = Buffer.prototype\n return buf\n}\n\nfunction fromObject (obj) {\n if (Buffer.isBuffer(obj)) {\n var len = checked(obj.length) | 0\n var buf = createBuffer(len)\n\n if (buf.length === 0) {\n return buf\n }\n\n obj.copy(buf, 0, 0, len)\n return buf\n }\n\n if (obj.length !== undefined) {\n if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) {\n return createBuffer(0)\n }\n return fromArrayLike(obj)\n }\n\n if (obj.type === 'Buffer' && Array.isArray(obj.data)) {\n return fromArrayLike(obj.data)\n }\n}\n\nfunction checked (length) {\n // Note: cannot use `length < K_MAX_LENGTH` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= K_MAX_LENGTH) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + K_MAX_LENGTH.toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (length) {\n if (+length != length) { // eslint-disable-line eqeqeq\n length = 0\n }\n return Buffer.alloc(+length)\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return b != null && b._isBuffer === true &&\n b !== Buffer.prototype // so Buffer.isBuffer(Buffer.prototype) will be false\n}\n\nBuffer.compare = function compare (a, b) {\n if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength)\n if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength)\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError(\n 'The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array'\n )\n }\n\n if (a === b) return 0\n\n var x = a.length\n var y = b.length\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i]\n y = b[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!Array.isArray(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0)\n }\n\n var i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; ++i) {\n length += list[i].length\n }\n }\n\n var buffer = Buffer.allocUnsafe(length)\n var pos = 0\n for (i = 0; i < list.length; ++i) {\n var buf = list[i]\n if (isInstance(buf, Uint8Array)) {\n buf = Buffer.from(buf)\n }\n if (!Buffer.isBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n buf.copy(buffer, pos)\n pos += buf.length\n }\n return buffer\n}\n\nfunction byteLength (string, encoding) {\n if (Buffer.isBuffer(string)) {\n return string.length\n }\n if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {\n return string.byteLength\n }\n if (typeof string !== 'string') {\n throw new TypeError(\n 'The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. ' +\n 'Received type ' + typeof string\n )\n }\n\n var len = string.length\n var mustMatch = (arguments.length > 2 && arguments[2] === true)\n if (!mustMatch && len === 0) return 0\n\n // Use a for loop to avoid recursion\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len\n case 'utf8':\n case 'utf-8':\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) {\n return mustMatch ? -1 : utf8ToBytes(string).length // assume utf8\n }\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n var loweredCase = false\n\n // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n if (start === undefined || start < 0) {\n start = 0\n }\n // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n if (start > this.length) {\n return ''\n }\n\n if (end === undefined || end > this.length) {\n end = this.length\n }\n\n if (end <= 0) {\n return ''\n }\n\n // Force coersion to uint32. This will also coerce falsey/NaN values to 0.\n end >>>= 0\n start >>>= 0\n\n if (end <= start) {\n return ''\n }\n\n if (!encoding) encoding = 'utf8'\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\n// This property is used by `Buffer.isBuffer` (and the `is-buffer` npm package)\n// to detect a Buffer instance. It's not possible to use `instanceof Buffer`\n// reliably in a browserify context because there could be multiple different\n// copies of the 'buffer' package in use. This method works even for Buffer\n// instances that were created from another copy of the `buffer` package.\n// See: https://github.com/feross/buffer/issues/154\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n var i = b[n]\n b[n] = b[m]\n b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n var len = this.length\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits')\n }\n for (var i = 0; i < len; i += 2) {\n swap(this, i, i + 1)\n }\n return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n var len = this.length\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits')\n }\n for (var i = 0; i < len; i += 4) {\n swap(this, i, i + 3)\n swap(this, i + 1, i + 2)\n }\n return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n var len = this.length\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits')\n }\n for (var i = 0; i < len; i += 8) {\n swap(this, i, i + 7)\n swap(this, i + 1, i + 6)\n swap(this, i + 2, i + 5)\n swap(this, i + 3, i + 4)\n }\n return this\n}\n\nBuffer.prototype.toString = function toString () {\n var length = this.length\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.toLocaleString = Buffer.prototype.toString\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n var str = ''\n var max = exports.INSPECT_MAX_BYTES\n str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim()\n if (this.length > max) str += ' ... '\n return ''\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n if (isInstance(target, Uint8Array)) {\n target = Buffer.from(target, target.offset, target.byteLength)\n }\n if (!Buffer.isBuffer(target)) {\n throw new TypeError(\n 'The \"target\" argument must be one of type Buffer or Uint8Array. ' +\n 'Received type ' + (typeof target)\n )\n }\n\n if (start === undefined) {\n start = 0\n }\n if (end === undefined) {\n end = target ? target.length : 0\n }\n if (thisStart === undefined) {\n thisStart = 0\n }\n if (thisEnd === undefined) {\n thisEnd = this.length\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index')\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0\n }\n if (thisStart >= thisEnd) {\n return -1\n }\n if (start >= end) {\n return 1\n }\n\n start >>>= 0\n end >>>= 0\n thisStart >>>= 0\n thisEnd >>>= 0\n\n if (this === target) return 0\n\n var x = thisEnd - thisStart\n var y = end - start\n var len = Math.min(x, y)\n\n var thisCopy = this.slice(thisStart, thisEnd)\n var targetCopy = target.slice(start, end)\n\n for (var i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i]\n y = targetCopy[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = byteOffset\n byteOffset = 0\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000\n }\n byteOffset = +byteOffset // Coerce to Number.\n if (numberIsNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : (buffer.length - 1)\n }\n\n // Normalize byteOffset: negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n if (byteOffset >= buffer.length) {\n if (dir) return -1\n else byteOffset = buffer.length - 1\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0\n else return -1\n }\n\n // Normalize val\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding)\n }\n\n // Finally, search either indexOf (if dir is true) or lastIndexOf\n if (Buffer.isBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1\n }\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n } else if (typeof val === 'number') {\n val = val & 0xFF // Search for a byte value [0-255]\n if (typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n }\n }\n return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n var indexSize = 1\n var arrLength = arr.length\n var valLength = val.length\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase()\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1\n }\n indexSize = 2\n arrLength /= 2\n valLength /= 2\n byteOffset /= 2\n }\n }\n\n function read (buf, i) {\n if (indexSize === 1) {\n return buf[i]\n } else {\n return buf.readUInt16BE(i * indexSize)\n }\n }\n\n var i\n if (dir) {\n var foundIndex = -1\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n } else {\n if (foundIndex !== -1) i -= i - foundIndex\n foundIndex = -1\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n for (i = byteOffset; i >= 0; i--) {\n var found = true\n for (var j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false\n break\n }\n }\n if (found) return i\n }\n }\n\n return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n var remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n var strLen = string.length\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n for (var i = 0; i < length; ++i) {\n var parsed = parseInt(string.substr(i * 2, 2), 16)\n if (numberIsNaN(parsed)) return i\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction latin1Write (buf, string, offset, length) {\n return asciiWrite(buf, string, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset >>> 0\n if (isFinite(length)) {\n length = length >>> 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n } else {\n throw new Error(\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n )\n }\n\n var remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n return asciiWrite(this, string, offset, length)\n\n case 'latin1':\n case 'binary':\n return latin1Write(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n var res = []\n\n var i = start\n while (i < end) {\n var firstByte = buf[i]\n var codePoint = null\n var bytesPerSequence = (firstByte > 0xEF) ? 4\n : (firstByte > 0xDF) ? 3\n : (firstByte > 0xBF) ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n var secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nvar MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n var len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n var res = ''\n var i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n var len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n var out = ''\n for (var i = start; i < end; ++i) {\n out += toHex(buf[i])\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n var bytes = buf.slice(start, end)\n var res = ''\n for (var i = 0; i < bytes.length; i += 2) {\n res += String.fromCharCode(bytes[i] + (bytes[i + 1] * 256))\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n var len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n var newBuf = this.subarray(start, end)\n // Return an augmented `Uint8Array` instance\n newBuf.__proto__ = Buffer.prototype\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n var val = this[offset + --byteLength]\n var mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var i = byteLength\n var mul = 1\n var val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n var mul = 1\n var i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n var i = byteLength - 1\n var mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n var limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = 0\n var mul = 1\n var sub = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n var limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = byteLength - 1\n var mul = 1\n var sub = 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!Buffer.isBuffer(target)) throw new TypeError('argument should be a Buffer')\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('Index out of range')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n var len = end - start\n\n if (this === target && typeof Uint8Array.prototype.copyWithin === 'function') {\n // Use built-in when available, missing from IE11\n this.copyWithin(targetStart, start, end)\n } else if (this === target && start < targetStart && targetStart < end) {\n // descending copy from end\n for (var i = len - 1; i >= 0; --i) {\n target[i + targetStart] = this[i + start]\n }\n } else {\n Uint8Array.prototype.set.call(\n target,\n this.subarray(start, end),\n targetStart\n )\n }\n\n return len\n}\n\n// Usage:\n// buffer.fill(number[, offset[, end]])\n// buffer.fill(buffer[, offset[, end]])\n// buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start\n start = 0\n end = this.length\n } else if (typeof end === 'string') {\n encoding = end\n end = this.length\n }\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string')\n }\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n if (val.length === 1) {\n var code = val.charCodeAt(0)\n if ((encoding === 'utf8' && code < 128) ||\n encoding === 'latin1') {\n // Fast path: If `val` fits into a single byte, use that numeric value.\n val = code\n }\n }\n } else if (typeof val === 'number') {\n val = val & 255\n }\n\n // Invalid ranges are not set to a default, so can range check early.\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index')\n }\n\n if (end <= start) {\n return this\n }\n\n start = start >>> 0\n end = end === undefined ? this.length : end >>> 0\n\n if (!val) val = 0\n\n var i\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val\n }\n } else {\n var bytes = Buffer.isBuffer(val)\n ? val\n : Buffer.from(val, encoding)\n var len = bytes.length\n if (len === 0) {\n throw new TypeError('The value \"' + val +\n '\" is invalid for argument \"value\"')\n }\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len]\n }\n }\n\n return this\n}\n\n// HELPER FUNCTIONS\n// ================\n\nvar INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node takes equal signs as end of the Base64 encoding\n str = str.split('=')[0]\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = str.trim().replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction toHex (n) {\n if (n < 16) return '0' + n.toString(16)\n return n.toString(16)\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n var codePoint\n var length = string.length\n var leadSurrogate = null\n var bytes = []\n\n for (var i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n var byteArray = []\n for (var i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n var c, hi, lo\n var byteArray = []\n for (var i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n for (var i = 0; i < length; ++i) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\n// ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass\n// the `instanceof` check but they should be treated as of that type.\n// See: https://github.com/feross/buffer/issues/166\nfunction isInstance (obj, type) {\n return obj instanceof type ||\n (obj != null && obj.constructor != null && obj.constructor.name != null &&\n obj.constructor.name === type.name)\n}\nfunction numberIsNaN (obj) {\n // For IE11 support\n return obj !== obj // eslint-disable-line no-self-compare\n}\n\n}).call(this)}).call(this,_glvis_(\"buffer\").Buffer)\n},{\"base64-js\":1,\"buffer\":3,\"ieee754\":4}],4:[function(_glvis_,module,exports){\nexports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = ((value * c) - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n\n},{}],5:[function(_glvis_,module,exports){\n// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\n},{}],6:[function(_glvis_,module,exports){\nmodule.exports = {\n alpha_shape: _glvis_('alpha-shape'),\n convex_hull: _glvis_('convex-hull'),\n delaunay_triangulate: _glvis_('delaunay-triangulate'),\n gl_cone3d: _glvis_('gl-cone3d'),\n gl_error3d: _glvis_('gl-error3d'),\n gl_heatmap2d: _glvis_('gl-heatmap2d'),\n gl_line3d: _glvis_('gl-line3d'),\n gl_mesh3d: _glvis_('gl-mesh3d'),\n gl_plot2d: _glvis_('gl-plot2d'),\n gl_plot3d: _glvis_('gl-plot3d'),\n gl_pointcloud2d: _glvis_('gl-pointcloud2d'),\n gl_scatter3d: _glvis_('gl-scatter3d'),\n gl_select_box: _glvis_('gl-select-box'),\n gl_spikes2d: _glvis_('gl-spikes2d'),\n gl_streamtube3d: _glvis_('gl-streamtube3d'),\n gl_surface3d: _glvis_('gl-surface3d'),\n ndarray: _glvis_('ndarray'),\n ndarray_linear_interpolate: _glvis_('ndarray-linear-interpolate'),\n};\n\n},{\"alpha-shape\":12,\"convex-hull\":58,\"delaunay-triangulate\":63,\"gl-cone3d\":79,\"gl-error3d\":84,\"gl-heatmap2d\":88,\"gl-line3d\":91,\"gl-mesh3d\":112,\"gl-plot2d\":118,\"gl-plot3d\":121,\"gl-pointcloud2d\":123,\"gl-scatter3d\":128,\"gl-select-box\":130,\"gl-spikes2d\":139,\"gl-streamtube3d\":143,\"gl-surface3d\":145,\"ndarray\":259,\"ndarray-linear-interpolate\":253}],7:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = createViewController\n\nvar createTurntable = _glvis_('turntable-camera-controller')\nvar createOrbit = _glvis_('orbit-camera-controller')\nvar createMatrix = _glvis_('matrix-camera-controller')\n\nfunction ViewController(controllers, mode) {\n this._controllerNames = Object.keys(controllers)\n this._controllerList = this._controllerNames.map(function(n) {\n return controllers[n]\n })\n this._mode = mode\n this._active = controllers[mode]\n if(!this._active) {\n this._mode = 'turntable'\n this._active = controllers.turntable\n }\n this.modes = this._controllerNames\n this.computedMatrix = this._active.computedMatrix\n this.computedEye = this._active.computedEye\n this.computedUp = this._active.computedUp\n this.computedCenter = this._active.computedCenter\n this.computedRadius = this._active.computedRadius\n}\n\nvar proto = ViewController.prototype\n\nproto.flush = function(a0) {\n var cc = this._controllerList\n for (var i = 0; i < cc.length; ++i) {\n cc[i].flush(a0)\n }\n}\nproto.idle = function(a0) {\n var cc = this._controllerList\n for (var i = 0; i < cc.length; ++i) {\n cc[i].idle(a0)\n }\n}\nproto.lookAt = function(a0, a1, a2, a3) {\n var cc = this._controllerList\n for (var i = 0; i < cc.length; ++i) {\n cc[i].lookAt(a0, a1, a2, a3)\n }\n}\nproto.rotate = function(a0, a1, a2, a3) {\n var cc = this._controllerList\n for (var i = 0; i < cc.length; ++i) {\n cc[i].rotate(a0, a1, a2, a3)\n }\n}\nproto.pan = function(a0, a1, a2, a3) {\n var cc = this._controllerList\n for (var i = 0; i < cc.length; ++i) {\n cc[i].pan(a0, a1, a2, a3)\n }\n}\nproto.translate = function(a0, a1, a2, a3) {\n var cc = this._controllerList\n for (var i = 0; i < cc.length; ++i) {\n cc[i].translate(a0, a1, a2, a3)\n }\n}\nproto.setMatrix = function(a0, a1) {\n var cc = this._controllerList\n for (var i = 0; i < cc.length; ++i) {\n cc[i].setMatrix(a0, a1)\n }\n}\nproto.setDistanceLimits = function(a0, a1) {\n var cc = this._controllerList\n for (var i = 0; i < cc.length; ++i) {\n cc[i].setDistanceLimits(a0, a1)\n }\n}\nproto.setDistance = function(a0, a1) {\n var cc = this._controllerList\n for (var i = 0; i < cc.length; ++i) {\n cc[i].setDistance(a0, a1)\n }\n}\n\nproto.recalcMatrix = function(t) {\n this._active.recalcMatrix(t)\n}\n\nproto.getDistance = function(t) {\n return this._active.getDistance(t)\n}\nproto.getDistanceLimits = function(out) {\n return this._active.getDistanceLimits(out)\n}\n\nproto.lastT = function() {\n return this._active.lastT()\n}\n\nproto.setMode = function(mode) {\n if(mode === this._mode) {\n return\n }\n var idx = this._controllerNames.indexOf(mode)\n if(idx < 0) {\n return\n }\n var prev = this._active\n var next = this._controllerList[idx]\n var lastT = Math.max(prev.lastT(), next.lastT())\n\n prev.recalcMatrix(lastT)\n next.setMatrix(lastT, prev.computedMatrix)\n\n this._active = next\n this._mode = mode\n\n //Update matrix properties\n this.computedMatrix = this._active.computedMatrix\n this.computedEye = this._active.computedEye\n this.computedUp = this._active.computedUp\n this.computedCenter = this._active.computedCenter\n this.computedRadius = this._active.computedRadius\n}\n\nproto.getMode = function() {\n return this._mode\n}\n\nfunction createViewController(options) {\n options = options || {}\n\n var eye = options.eye || [0,0,1]\n var center = options.center || [0,0,0]\n var up = options.up || [0,1,0]\n var limits = options.distanceLimits || [0, Infinity]\n var mode = options.mode || 'turntable'\n\n var turntable = createTurntable()\n var orbit = createOrbit()\n var matrix = createMatrix()\n\n turntable.setDistanceLimits(limits[0], limits[1])\n turntable.lookAt(0, eye, center, up)\n orbit.setDistanceLimits(limits[0], limits[1])\n orbit.lookAt(0, eye, center, up)\n matrix.setDistanceLimits(limits[0], limits[1])\n matrix.lookAt(0, eye, center, up)\n\n return new ViewController({\n turntable: turntable,\n orbit: orbit,\n matrix: matrix\n }, mode)\n}\n},{\"matrix-camera-controller\":245,\"orbit-camera-controller\":263,\"turntable-camera-controller\":305}],8:[function(_glvis_,module,exports){\n'use strict'\n\nvar weakMap = typeof WeakMap === 'undefined' ? _glvis_('weak-map') : WeakMap\nvar createBuffer = _glvis_('gl-buffer')\nvar createVAO = _glvis_('gl-vao')\n\nvar TriangleCache = new weakMap()\n\nfunction createABigTriangle(gl) {\n\n var triangleVAO = TriangleCache.get(gl)\n var handle = triangleVAO && (triangleVAO._triangleBuffer.handle || triangleVAO._triangleBuffer.buffer)\n if(!handle || !gl.isBuffer(handle)) {\n var buf = createBuffer(gl, new Float32Array([-1, -1, -1, 4, 4, -1]))\n triangleVAO = createVAO(gl, [\n { buffer: buf,\n type: gl.FLOAT,\n size: 2\n }\n ])\n triangleVAO._triangleBuffer = buf\n TriangleCache.set(gl, triangleVAO)\n }\n triangleVAO.bind()\n gl.drawArrays(gl.TRIANGLES, 0, 3)\n triangleVAO.unbind()\n}\n\nmodule.exports = createABigTriangle\n\n},{\"gl-buffer\":78,\"gl-vao\":150,\"weak-map\":313}],9:[function(_glvis_,module,exports){\nvar padLeft = _glvis_('pad-left')\n\nmodule.exports = addLineNumbers\nfunction addLineNumbers (string, start, delim) {\n start = typeof start === 'number' ? start : 1\n delim = delim || ': '\n\n var lines = string.split(/\\r?\\n/)\n var totalDigits = String(lines.length + start - 1).length\n return lines.map(function (line, i) {\n var c = i + start\n var digits = String(c).length\n var prefix = padLeft(c, totalDigits - digits)\n return prefix + delim + line\n }).join('\\n')\n}\n\n},{\"pad-left\":264}],10:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = affineHull\n\nvar orient = _glvis_('robust-orientation')\n\nfunction linearlyIndependent(points, d) {\n var nhull = new Array(d+1)\n for(var i=0; i 0) {\n a = a.ushln(shift)\n } else if(shift < 0) {\n b = b.ushln(-shift)\n }\n return rationalize(a, b)\n}\n\n},{\"./div\":17,\"./is-rat\":19,\"./lib/is-bn\":23,\"./lib/num-to-bn\":24,\"./lib/rationalize\":25,\"./lib/str-to-bn\":26}],19:[function(_glvis_,module,exports){\n'use strict'\n\nvar isBN = _glvis_('./lib/is-bn')\n\nmodule.exports = isRat\n\nfunction isRat(x) {\n return Array.isArray(x) && x.length === 2 && isBN(x[0]) && isBN(x[1])\n}\n\n},{\"./lib/is-bn\":23}],20:[function(_glvis_,module,exports){\n'use strict'\n\nvar BN = _glvis_('bn.js')\n\nmodule.exports = sign\n\nfunction sign (x) {\n return x.cmp(new BN(0))\n}\n\n},{\"bn.js\":33}],21:[function(_glvis_,module,exports){\n'use strict'\n\nvar sign = _glvis_('./bn-sign')\n\nmodule.exports = bn2num\n\n//TODO: Make this better\nfunction bn2num(b) {\n var l = b.length\n var words = b.words\n var out = 0\n if (l === 1) {\n out = words[0]\n } else if (l === 2) {\n out = words[0] + (words[1] * 0x4000000)\n } else {\n for (var i = 0; i < l; i++) {\n var w = words[i]\n out += w * Math.pow(0x4000000, i)\n }\n }\n return sign(b) * out\n}\n\n},{\"./bn-sign\":20}],22:[function(_glvis_,module,exports){\n'use strict'\n\nvar db = _glvis_('double-bits')\nvar ctz = _glvis_('bit-twiddle').countTrailingZeros\n\nmodule.exports = ctzNumber\n\n//Counts the number of trailing zeros\nfunction ctzNumber(x) {\n var l = ctz(db.lo(x))\n if(l < 32) {\n return l\n }\n var h = ctz(db.hi(x))\n if(h > 20) {\n return 52\n }\n return h + 32\n}\n\n},{\"bit-twiddle\":32,\"double-bits\":64}],23:[function(_glvis_,module,exports){\n'use strict'\n\nvar BN = _glvis_('bn.js')\n\nmodule.exports = isBN\n\n//Test if x is a bignumber\n//FIXME: obviously this is the wrong way to do it\nfunction isBN(x) {\n return x && typeof x === 'object' && Boolean(x.words)\n}\n\n},{\"bn.js\":33}],24:[function(_glvis_,module,exports){\n'use strict'\n\nvar BN = _glvis_('bn.js')\nvar db = _glvis_('double-bits')\n\nmodule.exports = num2bn\n\nfunction num2bn(x) {\n var e = db.exponent(x)\n if(e < 52) {\n return new BN(x)\n } else {\n return (new BN(x * Math.pow(2, 52-e))).ushln(e-52)\n }\n}\n\n},{\"bn.js\":33,\"double-bits\":64}],25:[function(_glvis_,module,exports){\n'use strict'\n\nvar num2bn = _glvis_('./num-to-bn')\nvar sign = _glvis_('./bn-sign')\n\nmodule.exports = rationalize\n\nfunction rationalize(numer, denom) {\n var snumer = sign(numer)\n var sdenom = sign(denom)\n if(snumer === 0) {\n return [num2bn(0), num2bn(1)]\n }\n if(sdenom === 0) {\n return [num2bn(0), num2bn(0)]\n }\n if(sdenom < 0) {\n numer = numer.neg()\n denom = denom.neg()\n }\n var d = numer.gcd(denom)\n if(d.cmpn(1)) {\n return [ numer.div(d), denom.div(d) ]\n }\n return [ numer, denom ]\n}\n\n},{\"./bn-sign\":20,\"./num-to-bn\":24}],26:[function(_glvis_,module,exports){\n'use strict'\n\nvar BN = _glvis_('bn.js')\n\nmodule.exports = str2BN\n\nfunction str2BN(x) {\n return new BN(x)\n}\n\n},{\"bn.js\":33}],27:[function(_glvis_,module,exports){\n'use strict'\n\nvar rationalize = _glvis_('./lib/rationalize')\n\nmodule.exports = mul\n\nfunction mul(a, b) {\n return rationalize(a[0].mul(b[0]), a[1].mul(b[1]))\n}\n\n},{\"./lib/rationalize\":25}],28:[function(_glvis_,module,exports){\n'use strict'\n\nvar bnsign = _glvis_('./lib/bn-sign')\n\nmodule.exports = sign\n\nfunction sign(x) {\n return bnsign(x[0]) * bnsign(x[1])\n}\n\n},{\"./lib/bn-sign\":20}],29:[function(_glvis_,module,exports){\n'use strict'\n\nvar rationalize = _glvis_('./lib/rationalize')\n\nmodule.exports = sub\n\nfunction sub(a, b) {\n return rationalize(a[0].mul(b[1]).sub(a[1].mul(b[0])), a[1].mul(b[1]))\n}\n\n},{\"./lib/rationalize\":25}],30:[function(_glvis_,module,exports){\n'use strict'\n\nvar bn2num = _glvis_('./lib/bn-to-num')\nvar ctz = _glvis_('./lib/ctz')\n\nmodule.exports = roundRat\n\n// Round a rational to the closest float\nfunction roundRat (f) {\n var a = f[0]\n var b = f[1]\n if (a.cmpn(0) === 0) {\n return 0\n }\n var h = a.abs().divmod(b.abs())\n var iv = h.div\n var x = bn2num(iv)\n var ir = h.mod\n var sgn = (a.negative !== b.negative) ? -1 : 1\n if (ir.cmpn(0) === 0) {\n return sgn * x\n }\n if (x) {\n var s = ctz(x) + 4\n var y = bn2num(ir.ushln(s).divRound(b))\n return sgn * (x + y * Math.pow(2, -s))\n } else {\n var ybits = b.bitLength() - ir.bitLength() + 53\n var y = bn2num(ir.ushln(ybits).divRound(b))\n if (ybits < 1023) {\n return sgn * y * Math.pow(2, -ybits)\n }\n y *= Math.pow(2, -1023)\n return sgn * y * Math.pow(2, 1023 - ybits)\n }\n}\n\n},{\"./lib/bn-to-num\":21,\"./lib/ctz\":22}],31:[function(_glvis_,module,exports){\n\"use strict\"\n\n// (a, y, c, l, h) = (array, y[, cmp, lo, hi])\n\nfunction ge(a, y, c, l, h) {\n var i = h + 1;\n while (l <= h) {\n var m = (l + h) >>> 1, x = a[m];\n var p = (c !== undefined) ? c(x, y) : (x - y);\n if (p >= 0) { i = m; h = m - 1 } else { l = m + 1 }\n }\n return i;\n};\n\nfunction gt(a, y, c, l, h) {\n var i = h + 1;\n while (l <= h) {\n var m = (l + h) >>> 1, x = a[m];\n var p = (c !== undefined) ? c(x, y) : (x - y);\n if (p > 0) { i = m; h = m - 1 } else { l = m + 1 }\n }\n return i;\n};\n\nfunction lt(a, y, c, l, h) {\n var i = l - 1;\n while (l <= h) {\n var m = (l + h) >>> 1, x = a[m];\n var p = (c !== undefined) ? c(x, y) : (x - y);\n if (p < 0) { i = m; l = m + 1 } else { h = m - 1 }\n }\n return i;\n};\n\nfunction le(a, y, c, l, h) {\n var i = l - 1;\n while (l <= h) {\n var m = (l + h) >>> 1, x = a[m];\n var p = (c !== undefined) ? c(x, y) : (x - y);\n if (p <= 0) { i = m; l = m + 1 } else { h = m - 1 }\n }\n return i;\n};\n\nfunction eq(a, y, c, l, h) {\n while (l <= h) {\n var m = (l + h) >>> 1, x = a[m];\n var p = (c !== undefined) ? c(x, y) : (x - y);\n if (p === 0) { return m }\n if (p <= 0) { l = m + 1 } else { h = m - 1 }\n }\n return -1;\n};\n\nfunction norm(a, y, c, l, h, f) {\n if (typeof c === 'function') {\n return f(a, y, c, (l === undefined) ? 0 : l | 0, (h === undefined) ? a.length - 1 : h | 0);\n }\n return f(a, y, undefined, (c === undefined) ? 0 : c | 0, (l === undefined) ? a.length - 1 : l | 0);\n}\n\nmodule.exports = {\n ge: function(a, y, c, l, h) { return norm(a, y, c, l, h, ge)},\n gt: function(a, y, c, l, h) { return norm(a, y, c, l, h, gt)},\n lt: function(a, y, c, l, h) { return norm(a, y, c, l, h, lt)},\n le: function(a, y, c, l, h) { return norm(a, y, c, l, h, le)},\n eq: function(a, y, c, l, h) { return norm(a, y, c, l, h, eq)}\n}\n\n},{}],32:[function(_glvis_,module,exports){\n/**\n * Bit twiddling hacks for JavaScript.\n *\n * Author: Mikola Lysenko\n *\n * Ported from Stanford bit twiddling hack library:\n * http://graphics.stanford.edu/~seander/bithacks.html\n */\n\n\"use strict\"; \"use restrict\";\n\n//Number of bits in an integer\nvar INT_BITS = 32;\n\n//Constants\nexports.INT_BITS = INT_BITS;\nexports.INT_MAX = 0x7fffffff;\nexports.INT_MIN = -1<<(INT_BITS-1);\n\n//Returns -1, 0, +1 depending on sign of x\nexports.sign = function(v) {\n return (v > 0) - (v < 0);\n}\n\n//Computes absolute value of integer\nexports.abs = function(v) {\n var mask = v >> (INT_BITS-1);\n return (v ^ mask) - mask;\n}\n\n//Computes minimum of integers x and y\nexports.min = function(x, y) {\n return y ^ ((x ^ y) & -(x < y));\n}\n\n//Computes maximum of integers x and y\nexports.max = function(x, y) {\n return x ^ ((x ^ y) & -(x < y));\n}\n\n//Checks if a number is a power of two\nexports.isPow2 = function(v) {\n return !(v & (v-1)) && (!!v);\n}\n\n//Computes log base 2 of v\nexports.log2 = function(v) {\n var r, shift;\n r = (v > 0xFFFF) << 4; v >>>= r;\n shift = (v > 0xFF ) << 3; v >>>= shift; r |= shift;\n shift = (v > 0xF ) << 2; v >>>= shift; r |= shift;\n shift = (v > 0x3 ) << 1; v >>>= shift; r |= shift;\n return r | (v >> 1);\n}\n\n//Computes log base 10 of v\nexports.log10 = function(v) {\n return (v >= 1000000000) ? 9 : (v >= 100000000) ? 8 : (v >= 10000000) ? 7 :\n (v >= 1000000) ? 6 : (v >= 100000) ? 5 : (v >= 10000) ? 4 :\n (v >= 1000) ? 3 : (v >= 100) ? 2 : (v >= 10) ? 1 : 0;\n}\n\n//Counts number of bits\nexports.popCount = function(v) {\n v = v - ((v >>> 1) & 0x55555555);\n v = (v & 0x33333333) + ((v >>> 2) & 0x33333333);\n return ((v + (v >>> 4) & 0xF0F0F0F) * 0x1010101) >>> 24;\n}\n\n//Counts number of trailing zeros\nfunction countTrailingZeros(v) {\n var c = 32;\n v &= -v;\n if (v) c--;\n if (v & 0x0000FFFF) c -= 16;\n if (v & 0x00FF00FF) c -= 8;\n if (v & 0x0F0F0F0F) c -= 4;\n if (v & 0x33333333) c -= 2;\n if (v & 0x55555555) c -= 1;\n return c;\n}\nexports.countTrailingZeros = countTrailingZeros;\n\n//Rounds to next power of 2\nexports.nextPow2 = function(v) {\n v += v === 0;\n --v;\n v |= v >>> 1;\n v |= v >>> 2;\n v |= v >>> 4;\n v |= v >>> 8;\n v |= v >>> 16;\n return v + 1;\n}\n\n//Rounds down to previous power of 2\nexports.prevPow2 = function(v) {\n v |= v >>> 1;\n v |= v >>> 2;\n v |= v >>> 4;\n v |= v >>> 8;\n v |= v >>> 16;\n return v - (v>>>1);\n}\n\n//Computes parity of word\nexports.parity = function(v) {\n v ^= v >>> 16;\n v ^= v >>> 8;\n v ^= v >>> 4;\n v &= 0xf;\n return (0x6996 >>> v) & 1;\n}\n\nvar REVERSE_TABLE = new Array(256);\n\n(function(tab) {\n for(var i=0; i<256; ++i) {\n var v = i, r = i, s = 7;\n for (v >>>= 1; v; v >>>= 1) {\n r <<= 1;\n r |= v & 1;\n --s;\n }\n tab[i] = (r << s) & 0xff;\n }\n})(REVERSE_TABLE);\n\n//Reverse bits in a 32 bit word\nexports.reverse = function(v) {\n return (REVERSE_TABLE[ v & 0xff] << 24) |\n (REVERSE_TABLE[(v >>> 8) & 0xff] << 16) |\n (REVERSE_TABLE[(v >>> 16) & 0xff] << 8) |\n REVERSE_TABLE[(v >>> 24) & 0xff];\n}\n\n//Interleave bits of 2 coordinates with 16 bits. Useful for fast quadtree codes\nexports.interleave2 = function(x, y) {\n x &= 0xFFFF;\n x = (x | (x << 8)) & 0x00FF00FF;\n x = (x | (x << 4)) & 0x0F0F0F0F;\n x = (x | (x << 2)) & 0x33333333;\n x = (x | (x << 1)) & 0x55555555;\n\n y &= 0xFFFF;\n y = (y | (y << 8)) & 0x00FF00FF;\n y = (y | (y << 4)) & 0x0F0F0F0F;\n y = (y | (y << 2)) & 0x33333333;\n y = (y | (y << 1)) & 0x55555555;\n\n return x | (y << 1);\n}\n\n//Extracts the nth interleaved component\nexports.deinterleave2 = function(v, n) {\n v = (v >>> n) & 0x55555555;\n v = (v | (v >>> 1)) & 0x33333333;\n v = (v | (v >>> 2)) & 0x0F0F0F0F;\n v = (v | (v >>> 4)) & 0x00FF00FF;\n v = (v | (v >>> 16)) & 0x000FFFF;\n return (v << 16) >> 16;\n}\n\n\n//Interleave bits of 3 coordinates, each with 10 bits. Useful for fast octree codes\nexports.interleave3 = function(x, y, z) {\n x &= 0x3FF;\n x = (x | (x<<16)) & 4278190335;\n x = (x | (x<<8)) & 251719695;\n x = (x | (x<<4)) & 3272356035;\n x = (x | (x<<2)) & 1227133513;\n\n y &= 0x3FF;\n y = (y | (y<<16)) & 4278190335;\n y = (y | (y<<8)) & 251719695;\n y = (y | (y<<4)) & 3272356035;\n y = (y | (y<<2)) & 1227133513;\n x |= (y << 1);\n \n z &= 0x3FF;\n z = (z | (z<<16)) & 4278190335;\n z = (z | (z<<8)) & 251719695;\n z = (z | (z<<4)) & 3272356035;\n z = (z | (z<<2)) & 1227133513;\n \n return x | (z << 2);\n}\n\n//Extracts nth interleaved component of a 3-tuple\nexports.deinterleave3 = function(v, n) {\n v = (v >>> n) & 1227133513;\n v = (v | (v>>>2)) & 3272356035;\n v = (v | (v>>>4)) & 251719695;\n v = (v | (v>>>8)) & 4278190335;\n v = (v | (v>>>16)) & 0x3FF;\n return (v<<22)>>22;\n}\n\n//Computes next combination in colexicographic order (this is mistakenly called nextPermutation on the bit twiddling hacks page)\nexports.nextCombination = function(v) {\n var t = v | (v - 1);\n return (t + 1) | (((~t & -~t) - 1) >>> (countTrailingZeros(v) + 1));\n}\n\n\n},{}],33:[function(_glvis_,module,exports){\n(function (module, exports) {\n 'use strict';\n\n // Utils\n function assert (val, msg) {\n if (!val) throw new Error(msg || 'Assertion failed');\n }\n\n // Could use `inherits` module, but don't want to move from single file\n // architecture yet.\n function inherits (ctor, superCtor) {\n ctor.super_ = superCtor;\n var TempCtor = function () {};\n TempCtor.prototype = superCtor.prototype;\n ctor.prototype = new TempCtor();\n ctor.prototype.constructor = ctor;\n }\n\n // BN\n\n function BN (number, base, endian) {\n if (BN.isBN(number)) {\n return number;\n }\n\n this.negative = 0;\n this.words = null;\n this.length = 0;\n\n // Reduction context\n this.red = null;\n\n if (number !== null) {\n if (base === 'le' || base === 'be') {\n endian = base;\n base = 10;\n }\n\n this._init(number || 0, base || 10, endian || 'be');\n }\n }\n if (typeof module === 'object') {\n module.exports = BN;\n } else {\n exports.BN = BN;\n }\n\n BN.BN = BN;\n BN.wordSize = 26;\n\n var Buffer;\n try {\n if (typeof window !== 'undefined' && typeof window.Buffer !== 'undefined') {\n Buffer = window.Buffer;\n } else {\n Buffer = _glvis_('buffer').Buffer;\n }\n } catch (e) {\n }\n\n BN.isBN = function isBN (num) {\n if (num instanceof BN) {\n return true;\n }\n\n return num !== null && typeof num === 'object' &&\n num.constructor.wordSize === BN.wordSize && Array.isArray(num.words);\n };\n\n BN.max = function max (left, right) {\n if (left.cmp(right) > 0) return left;\n return right;\n };\n\n BN.min = function min (left, right) {\n if (left.cmp(right) < 0) return left;\n return right;\n };\n\n BN.prototype._init = function init (number, base, endian) {\n if (typeof number === 'number') {\n return this._initNumber(number, base, endian);\n }\n\n if (typeof number === 'object') {\n return this._initArray(number, base, endian);\n }\n\n if (base === 'hex') {\n base = 16;\n }\n assert(base === (base | 0) && base >= 2 && base <= 36);\n\n number = number.toString().replace(/\\s+/g, '');\n var start = 0;\n if (number[0] === '-') {\n start++;\n this.negative = 1;\n }\n\n if (start < number.length) {\n if (base === 16) {\n this._parseHex(number, start, endian);\n } else {\n this._parseBase(number, base, start);\n if (endian === 'le') {\n this._initArray(this.toArray(), base, endian);\n }\n }\n }\n };\n\n BN.prototype._initNumber = function _initNumber (number, base, endian) {\n if (number < 0) {\n this.negative = 1;\n number = -number;\n }\n if (number < 0x4000000) {\n this.words = [ number & 0x3ffffff ];\n this.length = 1;\n } else if (number < 0x10000000000000) {\n this.words = [\n number & 0x3ffffff,\n (number / 0x4000000) & 0x3ffffff\n ];\n this.length = 2;\n } else {\n assert(number < 0x20000000000000); // 2 ^ 53 (unsafe)\n this.words = [\n number & 0x3ffffff,\n (number / 0x4000000) & 0x3ffffff,\n 1\n ];\n this.length = 3;\n }\n\n if (endian !== 'le') return;\n\n // Reverse the bytes\n this._initArray(this.toArray(), base, endian);\n };\n\n BN.prototype._initArray = function _initArray (number, base, endian) {\n // Perhaps a Uint8Array\n assert(typeof number.length === 'number');\n if (number.length <= 0) {\n this.words = [ 0 ];\n this.length = 1;\n return this;\n }\n\n this.length = Math.ceil(number.length / 3);\n this.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n this.words[i] = 0;\n }\n\n var j, w;\n var off = 0;\n if (endian === 'be') {\n for (i = number.length - 1, j = 0; i >= 0; i -= 3) {\n w = number[i] | (number[i - 1] << 8) | (number[i - 2] << 16);\n this.words[j] |= (w << off) & 0x3ffffff;\n this.words[j + 1] = (w >>> (26 - off)) & 0x3ffffff;\n off += 24;\n if (off >= 26) {\n off -= 26;\n j++;\n }\n }\n } else if (endian === 'le') {\n for (i = 0, j = 0; i < number.length; i += 3) {\n w = number[i] | (number[i + 1] << 8) | (number[i + 2] << 16);\n this.words[j] |= (w << off) & 0x3ffffff;\n this.words[j + 1] = (w >>> (26 - off)) & 0x3ffffff;\n off += 24;\n if (off >= 26) {\n off -= 26;\n j++;\n }\n }\n }\n return this.strip();\n };\n\n function parseHex4Bits (string, index) {\n var c = string.charCodeAt(index);\n // 'A' - 'F'\n if (c >= 65 && c <= 70) {\n return c - 55;\n // 'a' - 'f'\n } else if (c >= 97 && c <= 102) {\n return c - 87;\n // '0' - '9'\n } else {\n return (c - 48) & 0xf;\n }\n }\n\n function parseHexByte (string, lowerBound, index) {\n var r = parseHex4Bits(string, index);\n if (index - 1 >= lowerBound) {\n r |= parseHex4Bits(string, index - 1) << 4;\n }\n return r;\n }\n\n BN.prototype._parseHex = function _parseHex (number, start, endian) {\n // Create possibly bigger array to ensure that it fits the number\n this.length = Math.ceil((number.length - start) / 6);\n this.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n this.words[i] = 0;\n }\n\n // 24-bits chunks\n var off = 0;\n var j = 0;\n\n var w;\n if (endian === 'be') {\n for (i = number.length - 1; i >= start; i -= 2) {\n w = parseHexByte(number, start, i) << off;\n this.words[j] |= w & 0x3ffffff;\n if (off >= 18) {\n off -= 18;\n j += 1;\n this.words[j] |= w >>> 26;\n } else {\n off += 8;\n }\n }\n } else {\n var parseLength = number.length - start;\n for (i = parseLength % 2 === 0 ? start + 1 : start; i < number.length; i += 2) {\n w = parseHexByte(number, start, i) << off;\n this.words[j] |= w & 0x3ffffff;\n if (off >= 18) {\n off -= 18;\n j += 1;\n this.words[j] |= w >>> 26;\n } else {\n off += 8;\n }\n }\n }\n\n this.strip();\n };\n\n function parseBase (str, start, end, mul) {\n var r = 0;\n var len = Math.min(str.length, end);\n for (var i = start; i < len; i++) {\n var c = str.charCodeAt(i) - 48;\n\n r *= mul;\n\n // 'a'\n if (c >= 49) {\n r += c - 49 + 0xa;\n\n // 'A'\n } else if (c >= 17) {\n r += c - 17 + 0xa;\n\n // '0' - '9'\n } else {\n r += c;\n }\n }\n return r;\n }\n\n BN.prototype._parseBase = function _parseBase (number, base, start) {\n // Initialize as zero\n this.words = [ 0 ];\n this.length = 1;\n\n // Find length of limb in base\n for (var limbLen = 0, limbPow = 1; limbPow <= 0x3ffffff; limbPow *= base) {\n limbLen++;\n }\n limbLen--;\n limbPow = (limbPow / base) | 0;\n\n var total = number.length - start;\n var mod = total % limbLen;\n var end = Math.min(total, total - mod) + start;\n\n var word = 0;\n for (var i = start; i < end; i += limbLen) {\n word = parseBase(number, i, i + limbLen, base);\n\n this.imuln(limbPow);\n if (this.words[0] + word < 0x4000000) {\n this.words[0] += word;\n } else {\n this._iaddn(word);\n }\n }\n\n if (mod !== 0) {\n var pow = 1;\n word = parseBase(number, i, number.length, base);\n\n for (i = 0; i < mod; i++) {\n pow *= base;\n }\n\n this.imuln(pow);\n if (this.words[0] + word < 0x4000000) {\n this.words[0] += word;\n } else {\n this._iaddn(word);\n }\n }\n\n this.strip();\n };\n\n BN.prototype.copy = function copy (dest) {\n dest.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n dest.words[i] = this.words[i];\n }\n dest.length = this.length;\n dest.negative = this.negative;\n dest.red = this.red;\n };\n\n BN.prototype.clone = function clone () {\n var r = new BN(null);\n this.copy(r);\n return r;\n };\n\n BN.prototype._expand = function _expand (size) {\n while (this.length < size) {\n this.words[this.length++] = 0;\n }\n return this;\n };\n\n // Remove leading `0` from `this`\n BN.prototype.strip = function strip () {\n while (this.length > 1 && this.words[this.length - 1] === 0) {\n this.length--;\n }\n return this._normSign();\n };\n\n BN.prototype._normSign = function _normSign () {\n // -0 = 0\n if (this.length === 1 && this.words[0] === 0) {\n this.negative = 0;\n }\n return this;\n };\n\n BN.prototype.inspect = function inspect () {\n return (this.red ? '';\n };\n\n /*\n\n var zeros = [];\n var groupSizes = [];\n var groupBases = [];\n\n var s = '';\n var i = -1;\n while (++i < BN.wordSize) {\n zeros[i] = s;\n s += '0';\n }\n groupSizes[0] = 0;\n groupSizes[1] = 0;\n groupBases[0] = 0;\n groupBases[1] = 0;\n var base = 2 - 1;\n while (++base < 36 + 1) {\n var groupSize = 0;\n var groupBase = 1;\n while (groupBase < (1 << BN.wordSize) / base) {\n groupBase *= base;\n groupSize += 1;\n }\n groupSizes[base] = groupSize;\n groupBases[base] = groupBase;\n }\n\n */\n\n var zeros = [\n '',\n '0',\n '00',\n '000',\n '0000',\n '00000',\n '000000',\n '0000000',\n '00000000',\n '000000000',\n '0000000000',\n '00000000000',\n '000000000000',\n '0000000000000',\n '00000000000000',\n '000000000000000',\n '0000000000000000',\n '00000000000000000',\n '000000000000000000',\n '0000000000000000000',\n '00000000000000000000',\n '000000000000000000000',\n '0000000000000000000000',\n '00000000000000000000000',\n '000000000000000000000000',\n '0000000000000000000000000'\n ];\n\n var groupSizes = [\n 0, 0,\n 25, 16, 12, 11, 10, 9, 8,\n 8, 7, 7, 7, 7, 6, 6,\n 6, 6, 6, 6, 6, 5, 5,\n 5, 5, 5, 5, 5, 5, 5,\n 5, 5, 5, 5, 5, 5, 5\n ];\n\n var groupBases = [\n 0, 0,\n 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, 16777216,\n 43046721, 10000000, 19487171, 35831808, 62748517, 7529536, 11390625,\n 16777216, 24137569, 34012224, 47045881, 64000000, 4084101, 5153632,\n 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, 20511149,\n 24300000, 28629151, 33554432, 39135393, 45435424, 52521875, 60466176\n ];\n\n BN.prototype.toString = function toString (base, padding) {\n base = base || 10;\n padding = padding | 0 || 1;\n\n var out;\n if (base === 16 || base === 'hex') {\n out = '';\n var off = 0;\n var carry = 0;\n for (var i = 0; i < this.length; i++) {\n var w = this.words[i];\n var word = (((w << off) | carry) & 0xffffff).toString(16);\n carry = (w >>> (24 - off)) & 0xffffff;\n if (carry !== 0 || i !== this.length - 1) {\n out = zeros[6 - word.length] + word + out;\n } else {\n out = word + out;\n }\n off += 2;\n if (off >= 26) {\n off -= 26;\n i--;\n }\n }\n if (carry !== 0) {\n out = carry.toString(16) + out;\n }\n while (out.length % padding !== 0) {\n out = '0' + out;\n }\n if (this.negative !== 0) {\n out = '-' + out;\n }\n return out;\n }\n\n if (base === (base | 0) && base >= 2 && base <= 36) {\n // var groupSize = Math.floor(BN.wordSize * Math.LN2 / Math.log(base));\n var groupSize = groupSizes[base];\n // var groupBase = Math.pow(base, groupSize);\n var groupBase = groupBases[base];\n out = '';\n var c = this.clone();\n c.negative = 0;\n while (!c.isZero()) {\n var r = c.modn(groupBase).toString(base);\n c = c.idivn(groupBase);\n\n if (!c.isZero()) {\n out = zeros[groupSize - r.length] + r + out;\n } else {\n out = r + out;\n }\n }\n if (this.isZero()) {\n out = '0' + out;\n }\n while (out.length % padding !== 0) {\n out = '0' + out;\n }\n if (this.negative !== 0) {\n out = '-' + out;\n }\n return out;\n }\n\n assert(false, 'Base should be between 2 and 36');\n };\n\n BN.prototype.toNumber = function toNumber () {\n var ret = this.words[0];\n if (this.length === 2) {\n ret += this.words[1] * 0x4000000;\n } else if (this.length === 3 && this.words[2] === 0x01) {\n // NOTE: at this stage it is known that the top bit is set\n ret += 0x10000000000000 + (this.words[1] * 0x4000000);\n } else if (this.length > 2) {\n assert(false, 'Number can only safely store up to 53 bits');\n }\n return (this.negative !== 0) ? -ret : ret;\n };\n\n BN.prototype.toJSON = function toJSON () {\n return this.toString(16);\n };\n\n BN.prototype.toBuffer = function toBuffer (endian, length) {\n assert(typeof Buffer !== 'undefined');\n return this.toArrayLike(Buffer, endian, length);\n };\n\n BN.prototype.toArray = function toArray (endian, length) {\n return this.toArrayLike(Array, endian, length);\n };\n\n BN.prototype.toArrayLike = function toArrayLike (ArrayType, endian, length) {\n var byteLength = this.byteLength();\n var reqLength = length || Math.max(1, byteLength);\n assert(byteLength <= reqLength, 'byte array longer than desired length');\n assert(reqLength > 0, 'Requested array length <= 0');\n\n this.strip();\n var littleEndian = endian === 'le';\n var res = new ArrayType(reqLength);\n\n var b, i;\n var q = this.clone();\n if (!littleEndian) {\n // Assume big-endian\n for (i = 0; i < reqLength - byteLength; i++) {\n res[i] = 0;\n }\n\n for (i = 0; !q.isZero(); i++) {\n b = q.andln(0xff);\n q.iushrn(8);\n\n res[reqLength - i - 1] = b;\n }\n } else {\n for (i = 0; !q.isZero(); i++) {\n b = q.andln(0xff);\n q.iushrn(8);\n\n res[i] = b;\n }\n\n for (; i < reqLength; i++) {\n res[i] = 0;\n }\n }\n\n return res;\n };\n\n if (Math.clz32) {\n BN.prototype._countBits = function _countBits (w) {\n return 32 - Math.clz32(w);\n };\n } else {\n BN.prototype._countBits = function _countBits (w) {\n var t = w;\n var r = 0;\n if (t >= 0x1000) {\n r += 13;\n t >>>= 13;\n }\n if (t >= 0x40) {\n r += 7;\n t >>>= 7;\n }\n if (t >= 0x8) {\n r += 4;\n t >>>= 4;\n }\n if (t >= 0x02) {\n r += 2;\n t >>>= 2;\n }\n return r + t;\n };\n }\n\n BN.prototype._zeroBits = function _zeroBits (w) {\n // Short-cut\n if (w === 0) return 26;\n\n var t = w;\n var r = 0;\n if ((t & 0x1fff) === 0) {\n r += 13;\n t >>>= 13;\n }\n if ((t & 0x7f) === 0) {\n r += 7;\n t >>>= 7;\n }\n if ((t & 0xf) === 0) {\n r += 4;\n t >>>= 4;\n }\n if ((t & 0x3) === 0) {\n r += 2;\n t >>>= 2;\n }\n if ((t & 0x1) === 0) {\n r++;\n }\n return r;\n };\n\n // Return number of used bits in a BN\n BN.prototype.bitLength = function bitLength () {\n var w = this.words[this.length - 1];\n var hi = this._countBits(w);\n return (this.length - 1) * 26 + hi;\n };\n\n function toBitArray (num) {\n var w = new Array(num.bitLength());\n\n for (var bit = 0; bit < w.length; bit++) {\n var off = (bit / 26) | 0;\n var wbit = bit % 26;\n\n w[bit] = (num.words[off] & (1 << wbit)) >>> wbit;\n }\n\n return w;\n }\n\n // Number of trailing zero bits\n BN.prototype.zeroBits = function zeroBits () {\n if (this.isZero()) return 0;\n\n var r = 0;\n for (var i = 0; i < this.length; i++) {\n var b = this._zeroBits(this.words[i]);\n r += b;\n if (b !== 26) break;\n }\n return r;\n };\n\n BN.prototype.byteLength = function byteLength () {\n return Math.ceil(this.bitLength() / 8);\n };\n\n BN.prototype.toTwos = function toTwos (width) {\n if (this.negative !== 0) {\n return this.abs().inotn(width).iaddn(1);\n }\n return this.clone();\n };\n\n BN.prototype.fromTwos = function fromTwos (width) {\n if (this.testn(width - 1)) {\n return this.notn(width).iaddn(1).ineg();\n }\n return this.clone();\n };\n\n BN.prototype.isNeg = function isNeg () {\n return this.negative !== 0;\n };\n\n // Return negative clone of `this`\n BN.prototype.neg = function neg () {\n return this.clone().ineg();\n };\n\n BN.prototype.ineg = function ineg () {\n if (!this.isZero()) {\n this.negative ^= 1;\n }\n\n return this;\n };\n\n // Or `num` with `this` in-place\n BN.prototype.iuor = function iuor (num) {\n while (this.length < num.length) {\n this.words[this.length++] = 0;\n }\n\n for (var i = 0; i < num.length; i++) {\n this.words[i] = this.words[i] | num.words[i];\n }\n\n return this.strip();\n };\n\n BN.prototype.ior = function ior (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuor(num);\n };\n\n // Or `num` with `this`\n BN.prototype.or = function or (num) {\n if (this.length > num.length) return this.clone().ior(num);\n return num.clone().ior(this);\n };\n\n BN.prototype.uor = function uor (num) {\n if (this.length > num.length) return this.clone().iuor(num);\n return num.clone().iuor(this);\n };\n\n // And `num` with `this` in-place\n BN.prototype.iuand = function iuand (num) {\n // b = min-length(num, this)\n var b;\n if (this.length > num.length) {\n b = num;\n } else {\n b = this;\n }\n\n for (var i = 0; i < b.length; i++) {\n this.words[i] = this.words[i] & num.words[i];\n }\n\n this.length = b.length;\n\n return this.strip();\n };\n\n BN.prototype.iand = function iand (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuand(num);\n };\n\n // And `num` with `this`\n BN.prototype.and = function and (num) {\n if (this.length > num.length) return this.clone().iand(num);\n return num.clone().iand(this);\n };\n\n BN.prototype.uand = function uand (num) {\n if (this.length > num.length) return this.clone().iuand(num);\n return num.clone().iuand(this);\n };\n\n // Xor `num` with `this` in-place\n BN.prototype.iuxor = function iuxor (num) {\n // a.length > b.length\n var a;\n var b;\n if (this.length > num.length) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n for (var i = 0; i < b.length; i++) {\n this.words[i] = a.words[i] ^ b.words[i];\n }\n\n if (this !== a) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n this.length = a.length;\n\n return this.strip();\n };\n\n BN.prototype.ixor = function ixor (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuxor(num);\n };\n\n // Xor `num` with `this`\n BN.prototype.xor = function xor (num) {\n if (this.length > num.length) return this.clone().ixor(num);\n return num.clone().ixor(this);\n };\n\n BN.prototype.uxor = function uxor (num) {\n if (this.length > num.length) return this.clone().iuxor(num);\n return num.clone().iuxor(this);\n };\n\n // Not ``this`` with ``width`` bitwidth\n BN.prototype.inotn = function inotn (width) {\n assert(typeof width === 'number' && width >= 0);\n\n var bytesNeeded = Math.ceil(width / 26) | 0;\n var bitsLeft = width % 26;\n\n // Extend the buffer with leading zeroes\n this._expand(bytesNeeded);\n\n if (bitsLeft > 0) {\n bytesNeeded--;\n }\n\n // Handle complete words\n for (var i = 0; i < bytesNeeded; i++) {\n this.words[i] = ~this.words[i] & 0x3ffffff;\n }\n\n // Handle the residue\n if (bitsLeft > 0) {\n this.words[i] = ~this.words[i] & (0x3ffffff >> (26 - bitsLeft));\n }\n\n // And remove leading zeroes\n return this.strip();\n };\n\n BN.prototype.notn = function notn (width) {\n return this.clone().inotn(width);\n };\n\n // Set `bit` of `this`\n BN.prototype.setn = function setn (bit, val) {\n assert(typeof bit === 'number' && bit >= 0);\n\n var off = (bit / 26) | 0;\n var wbit = bit % 26;\n\n this._expand(off + 1);\n\n if (val) {\n this.words[off] = this.words[off] | (1 << wbit);\n } else {\n this.words[off] = this.words[off] & ~(1 << wbit);\n }\n\n return this.strip();\n };\n\n // Add `num` to `this` in-place\n BN.prototype.iadd = function iadd (num) {\n var r;\n\n // negative + positive\n if (this.negative !== 0 && num.negative === 0) {\n this.negative = 0;\n r = this.isub(num);\n this.negative ^= 1;\n return this._normSign();\n\n // positive + negative\n } else if (this.negative === 0 && num.negative !== 0) {\n num.negative = 0;\n r = this.isub(num);\n num.negative = 1;\n return r._normSign();\n }\n\n // a.length > b.length\n var a, b;\n if (this.length > num.length) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n var carry = 0;\n for (var i = 0; i < b.length; i++) {\n r = (a.words[i] | 0) + (b.words[i] | 0) + carry;\n this.words[i] = r & 0x3ffffff;\n carry = r >>> 26;\n }\n for (; carry !== 0 && i < a.length; i++) {\n r = (a.words[i] | 0) + carry;\n this.words[i] = r & 0x3ffffff;\n carry = r >>> 26;\n }\n\n this.length = a.length;\n if (carry !== 0) {\n this.words[this.length] = carry;\n this.length++;\n // Copy the rest of the words\n } else if (a !== this) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n return this;\n };\n\n // Add `num` to `this`\n BN.prototype.add = function add (num) {\n var res;\n if (num.negative !== 0 && this.negative === 0) {\n num.negative = 0;\n res = this.sub(num);\n num.negative ^= 1;\n return res;\n } else if (num.negative === 0 && this.negative !== 0) {\n this.negative = 0;\n res = num.sub(this);\n this.negative = 1;\n return res;\n }\n\n if (this.length > num.length) return this.clone().iadd(num);\n\n return num.clone().iadd(this);\n };\n\n // Subtract `num` from `this` in-place\n BN.prototype.isub = function isub (num) {\n // this - (-num) = this + num\n if (num.negative !== 0) {\n num.negative = 0;\n var r = this.iadd(num);\n num.negative = 1;\n return r._normSign();\n\n // -this - num = -(this + num)\n } else if (this.negative !== 0) {\n this.negative = 0;\n this.iadd(num);\n this.negative = 1;\n return this._normSign();\n }\n\n // At this point both numbers are positive\n var cmp = this.cmp(num);\n\n // Optimization - zeroify\n if (cmp === 0) {\n this.negative = 0;\n this.length = 1;\n this.words[0] = 0;\n return this;\n }\n\n // a > b\n var a, b;\n if (cmp > 0) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n var carry = 0;\n for (var i = 0; i < b.length; i++) {\n r = (a.words[i] | 0) - (b.words[i] | 0) + carry;\n carry = r >> 26;\n this.words[i] = r & 0x3ffffff;\n }\n for (; carry !== 0 && i < a.length; i++) {\n r = (a.words[i] | 0) + carry;\n carry = r >> 26;\n this.words[i] = r & 0x3ffffff;\n }\n\n // Copy rest of the words\n if (carry === 0 && i < a.length && a !== this) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n this.length = Math.max(this.length, i);\n\n if (a !== this) {\n this.negative = 1;\n }\n\n return this.strip();\n };\n\n // Subtract `num` from `this`\n BN.prototype.sub = function sub (num) {\n return this.clone().isub(num);\n };\n\n function smallMulTo (self, num, out) {\n out.negative = num.negative ^ self.negative;\n var len = (self.length + num.length) | 0;\n out.length = len;\n len = (len - 1) | 0;\n\n // Peel one iteration (compiler can't do it, because of code complexity)\n var a = self.words[0] | 0;\n var b = num.words[0] | 0;\n var r = a * b;\n\n var lo = r & 0x3ffffff;\n var carry = (r / 0x4000000) | 0;\n out.words[0] = lo;\n\n for (var k = 1; k < len; k++) {\n // Sum all words with the same `i + j = k` and accumulate `ncarry`,\n // note that ncarry could be >= 0x3ffffff\n var ncarry = carry >>> 26;\n var rword = carry & 0x3ffffff;\n var maxJ = Math.min(k, num.length - 1);\n for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {\n var i = (k - j) | 0;\n a = self.words[i] | 0;\n b = num.words[j] | 0;\n r = a * b + rword;\n ncarry += (r / 0x4000000) | 0;\n rword = r & 0x3ffffff;\n }\n out.words[k] = rword | 0;\n carry = ncarry | 0;\n }\n if (carry !== 0) {\n out.words[k] = carry | 0;\n } else {\n out.length--;\n }\n\n return out.strip();\n }\n\n // TODO(indutny): it may be reasonable to omit it for users who don't need\n // to work with 256-bit numbers, otherwise it gives 20% improvement for 256-bit\n // multiplication (like elliptic secp256k1).\n var comb10MulTo = function comb10MulTo (self, num, out) {\n var a = self.words;\n var b = num.words;\n var o = out.words;\n var c = 0;\n var lo;\n var mid;\n var hi;\n var a0 = a[0] | 0;\n var al0 = a0 & 0x1fff;\n var ah0 = a0 >>> 13;\n var a1 = a[1] | 0;\n var al1 = a1 & 0x1fff;\n var ah1 = a1 >>> 13;\n var a2 = a[2] | 0;\n var al2 = a2 & 0x1fff;\n var ah2 = a2 >>> 13;\n var a3 = a[3] | 0;\n var al3 = a3 & 0x1fff;\n var ah3 = a3 >>> 13;\n var a4 = a[4] | 0;\n var al4 = a4 & 0x1fff;\n var ah4 = a4 >>> 13;\n var a5 = a[5] | 0;\n var al5 = a5 & 0x1fff;\n var ah5 = a5 >>> 13;\n var a6 = a[6] | 0;\n var al6 = a6 & 0x1fff;\n var ah6 = a6 >>> 13;\n var a7 = a[7] | 0;\n var al7 = a7 & 0x1fff;\n var ah7 = a7 >>> 13;\n var a8 = a[8] | 0;\n var al8 = a8 & 0x1fff;\n var ah8 = a8 >>> 13;\n var a9 = a[9] | 0;\n var al9 = a9 & 0x1fff;\n var ah9 = a9 >>> 13;\n var b0 = b[0] | 0;\n var bl0 = b0 & 0x1fff;\n var bh0 = b0 >>> 13;\n var b1 = b[1] | 0;\n var bl1 = b1 & 0x1fff;\n var bh1 = b1 >>> 13;\n var b2 = b[2] | 0;\n var bl2 = b2 & 0x1fff;\n var bh2 = b2 >>> 13;\n var b3 = b[3] | 0;\n var bl3 = b3 & 0x1fff;\n var bh3 = b3 >>> 13;\n var b4 = b[4] | 0;\n var bl4 = b4 & 0x1fff;\n var bh4 = b4 >>> 13;\n var b5 = b[5] | 0;\n var bl5 = b5 & 0x1fff;\n var bh5 = b5 >>> 13;\n var b6 = b[6] | 0;\n var bl6 = b6 & 0x1fff;\n var bh6 = b6 >>> 13;\n var b7 = b[7] | 0;\n var bl7 = b7 & 0x1fff;\n var bh7 = b7 >>> 13;\n var b8 = b[8] | 0;\n var bl8 = b8 & 0x1fff;\n var bh8 = b8 >>> 13;\n var b9 = b[9] | 0;\n var bl9 = b9 & 0x1fff;\n var bh9 = b9 >>> 13;\n\n out.negative = self.negative ^ num.negative;\n out.length = 19;\n /* k = 0 */\n lo = Math.imul(al0, bl0);\n mid = Math.imul(al0, bh0);\n mid = (mid + Math.imul(ah0, bl0)) | 0;\n hi = Math.imul(ah0, bh0);\n var w0 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w0 >>> 26)) | 0;\n w0 &= 0x3ffffff;\n /* k = 1 */\n lo = Math.imul(al1, bl0);\n mid = Math.imul(al1, bh0);\n mid = (mid + Math.imul(ah1, bl0)) | 0;\n hi = Math.imul(ah1, bh0);\n lo = (lo + Math.imul(al0, bl1)) | 0;\n mid = (mid + Math.imul(al0, bh1)) | 0;\n mid = (mid + Math.imul(ah0, bl1)) | 0;\n hi = (hi + Math.imul(ah0, bh1)) | 0;\n var w1 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w1 >>> 26)) | 0;\n w1 &= 0x3ffffff;\n /* k = 2 */\n lo = Math.imul(al2, bl0);\n mid = Math.imul(al2, bh0);\n mid = (mid + Math.imul(ah2, bl0)) | 0;\n hi = Math.imul(ah2, bh0);\n lo = (lo + Math.imul(al1, bl1)) | 0;\n mid = (mid + Math.imul(al1, bh1)) | 0;\n mid = (mid + Math.imul(ah1, bl1)) | 0;\n hi = (hi + Math.imul(ah1, bh1)) | 0;\n lo = (lo + Math.imul(al0, bl2)) | 0;\n mid = (mid + Math.imul(al0, bh2)) | 0;\n mid = (mid + Math.imul(ah0, bl2)) | 0;\n hi = (hi + Math.imul(ah0, bh2)) | 0;\n var w2 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w2 >>> 26)) | 0;\n w2 &= 0x3ffffff;\n /* k = 3 */\n lo = Math.imul(al3, bl0);\n mid = Math.imul(al3, bh0);\n mid = (mid + Math.imul(ah3, bl0)) | 0;\n hi = Math.imul(ah3, bh0);\n lo = (lo + Math.imul(al2, bl1)) | 0;\n mid = (mid + Math.imul(al2, bh1)) | 0;\n mid = (mid + Math.imul(ah2, bl1)) | 0;\n hi = (hi + Math.imul(ah2, bh1)) | 0;\n lo = (lo + Math.imul(al1, bl2)) | 0;\n mid = (mid + Math.imul(al1, bh2)) | 0;\n mid = (mid + Math.imul(ah1, bl2)) | 0;\n hi = (hi + Math.imul(ah1, bh2)) | 0;\n lo = (lo + Math.imul(al0, bl3)) | 0;\n mid = (mid + Math.imul(al0, bh3)) | 0;\n mid = (mid + Math.imul(ah0, bl3)) | 0;\n hi = (hi + Math.imul(ah0, bh3)) | 0;\n var w3 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w3 >>> 26)) | 0;\n w3 &= 0x3ffffff;\n /* k = 4 */\n lo = Math.imul(al4, bl0);\n mid = Math.imul(al4, bh0);\n mid = (mid + Math.imul(ah4, bl0)) | 0;\n hi = Math.imul(ah4, bh0);\n lo = (lo + Math.imul(al3, bl1)) | 0;\n mid = (mid + Math.imul(al3, bh1)) | 0;\n mid = (mid + Math.imul(ah3, bl1)) | 0;\n hi = (hi + Math.imul(ah3, bh1)) | 0;\n lo = (lo + Math.imul(al2, bl2)) | 0;\n mid = (mid + Math.imul(al2, bh2)) | 0;\n mid = (mid + Math.imul(ah2, bl2)) | 0;\n hi = (hi + Math.imul(ah2, bh2)) | 0;\n lo = (lo + Math.imul(al1, bl3)) | 0;\n mid = (mid + Math.imul(al1, bh3)) | 0;\n mid = (mid + Math.imul(ah1, bl3)) | 0;\n hi = (hi + Math.imul(ah1, bh3)) | 0;\n lo = (lo + Math.imul(al0, bl4)) | 0;\n mid = (mid + Math.imul(al0, bh4)) | 0;\n mid = (mid + Math.imul(ah0, bl4)) | 0;\n hi = (hi + Math.imul(ah0, bh4)) | 0;\n var w4 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w4 >>> 26)) | 0;\n w4 &= 0x3ffffff;\n /* k = 5 */\n lo = Math.imul(al5, bl0);\n mid = Math.imul(al5, bh0);\n mid = (mid + Math.imul(ah5, bl0)) | 0;\n hi = Math.imul(ah5, bh0);\n lo = (lo + Math.imul(al4, bl1)) | 0;\n mid = (mid + Math.imul(al4, bh1)) | 0;\n mid = (mid + Math.imul(ah4, bl1)) | 0;\n hi = (hi + Math.imul(ah4, bh1)) | 0;\n lo = (lo + Math.imul(al3, bl2)) | 0;\n mid = (mid + Math.imul(al3, bh2)) | 0;\n mid = (mid + Math.imul(ah3, bl2)) | 0;\n hi = (hi + Math.imul(ah3, bh2)) | 0;\n lo = (lo + Math.imul(al2, bl3)) | 0;\n mid = (mid + Math.imul(al2, bh3)) | 0;\n mid = (mid + Math.imul(ah2, bl3)) | 0;\n hi = (hi + Math.imul(ah2, bh3)) | 0;\n lo = (lo + Math.imul(al1, bl4)) | 0;\n mid = (mid + Math.imul(al1, bh4)) | 0;\n mid = (mid + Math.imul(ah1, bl4)) | 0;\n hi = (hi + Math.imul(ah1, bh4)) | 0;\n lo = (lo + Math.imul(al0, bl5)) | 0;\n mid = (mid + Math.imul(al0, bh5)) | 0;\n mid = (mid + Math.imul(ah0, bl5)) | 0;\n hi = (hi + Math.imul(ah0, bh5)) | 0;\n var w5 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w5 >>> 26)) | 0;\n w5 &= 0x3ffffff;\n /* k = 6 */\n lo = Math.imul(al6, bl0);\n mid = Math.imul(al6, bh0);\n mid = (mid + Math.imul(ah6, bl0)) | 0;\n hi = Math.imul(ah6, bh0);\n lo = (lo + Math.imul(al5, bl1)) | 0;\n mid = (mid + Math.imul(al5, bh1)) | 0;\n mid = (mid + Math.imul(ah5, bl1)) | 0;\n hi = (hi + Math.imul(ah5, bh1)) | 0;\n lo = (lo + Math.imul(al4, bl2)) | 0;\n mid = (mid + Math.imul(al4, bh2)) | 0;\n mid = (mid + Math.imul(ah4, bl2)) | 0;\n hi = (hi + Math.imul(ah4, bh2)) | 0;\n lo = (lo + Math.imul(al3, bl3)) | 0;\n mid = (mid + Math.imul(al3, bh3)) | 0;\n mid = (mid + Math.imul(ah3, bl3)) | 0;\n hi = (hi + Math.imul(ah3, bh3)) | 0;\n lo = (lo + Math.imul(al2, bl4)) | 0;\n mid = (mid + Math.imul(al2, bh4)) | 0;\n mid = (mid + Math.imul(ah2, bl4)) | 0;\n hi = (hi + Math.imul(ah2, bh4)) | 0;\n lo = (lo + Math.imul(al1, bl5)) | 0;\n mid = (mid + Math.imul(al1, bh5)) | 0;\n mid = (mid + Math.imul(ah1, bl5)) | 0;\n hi = (hi + Math.imul(ah1, bh5)) | 0;\n lo = (lo + Math.imul(al0, bl6)) | 0;\n mid = (mid + Math.imul(al0, bh6)) | 0;\n mid = (mid + Math.imul(ah0, bl6)) | 0;\n hi = (hi + Math.imul(ah0, bh6)) | 0;\n var w6 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w6 >>> 26)) | 0;\n w6 &= 0x3ffffff;\n /* k = 7 */\n lo = Math.imul(al7, bl0);\n mid = Math.imul(al7, bh0);\n mid = (mid + Math.imul(ah7, bl0)) | 0;\n hi = Math.imul(ah7, bh0);\n lo = (lo + Math.imul(al6, bl1)) | 0;\n mid = (mid + Math.imul(al6, bh1)) | 0;\n mid = (mid + Math.imul(ah6, bl1)) | 0;\n hi = (hi + Math.imul(ah6, bh1)) | 0;\n lo = (lo + Math.imul(al5, bl2)) | 0;\n mid = (mid + Math.imul(al5, bh2)) | 0;\n mid = (mid + Math.imul(ah5, bl2)) | 0;\n hi = (hi + Math.imul(ah5, bh2)) | 0;\n lo = (lo + Math.imul(al4, bl3)) | 0;\n mid = (mid + Math.imul(al4, bh3)) | 0;\n mid = (mid + Math.imul(ah4, bl3)) | 0;\n hi = (hi + Math.imul(ah4, bh3)) | 0;\n lo = (lo + Math.imul(al3, bl4)) | 0;\n mid = (mid + Math.imul(al3, bh4)) | 0;\n mid = (mid + Math.imul(ah3, bl4)) | 0;\n hi = (hi + Math.imul(ah3, bh4)) | 0;\n lo = (lo + Math.imul(al2, bl5)) | 0;\n mid = (mid + Math.imul(al2, bh5)) | 0;\n mid = (mid + Math.imul(ah2, bl5)) | 0;\n hi = (hi + Math.imul(ah2, bh5)) | 0;\n lo = (lo + Math.imul(al1, bl6)) | 0;\n mid = (mid + Math.imul(al1, bh6)) | 0;\n mid = (mid + Math.imul(ah1, bl6)) | 0;\n hi = (hi + Math.imul(ah1, bh6)) | 0;\n lo = (lo + Math.imul(al0, bl7)) | 0;\n mid = (mid + Math.imul(al0, bh7)) | 0;\n mid = (mid + Math.imul(ah0, bl7)) | 0;\n hi = (hi + Math.imul(ah0, bh7)) | 0;\n var w7 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w7 >>> 26)) | 0;\n w7 &= 0x3ffffff;\n /* k = 8 */\n lo = Math.imul(al8, bl0);\n mid = Math.imul(al8, bh0);\n mid = (mid + Math.imul(ah8, bl0)) | 0;\n hi = Math.imul(ah8, bh0);\n lo = (lo + Math.imul(al7, bl1)) | 0;\n mid = (mid + Math.imul(al7, bh1)) | 0;\n mid = (mid + Math.imul(ah7, bl1)) | 0;\n hi = (hi + Math.imul(ah7, bh1)) | 0;\n lo = (lo + Math.imul(al6, bl2)) | 0;\n mid = (mid + Math.imul(al6, bh2)) | 0;\n mid = (mid + Math.imul(ah6, bl2)) | 0;\n hi = (hi + Math.imul(ah6, bh2)) | 0;\n lo = (lo + Math.imul(al5, bl3)) | 0;\n mid = (mid + Math.imul(al5, bh3)) | 0;\n mid = (mid + Math.imul(ah5, bl3)) | 0;\n hi = (hi + Math.imul(ah5, bh3)) | 0;\n lo = (lo + Math.imul(al4, bl4)) | 0;\n mid = (mid + Math.imul(al4, bh4)) | 0;\n mid = (mid + Math.imul(ah4, bl4)) | 0;\n hi = (hi + Math.imul(ah4, bh4)) | 0;\n lo = (lo + Math.imul(al3, bl5)) | 0;\n mid = (mid + Math.imul(al3, bh5)) | 0;\n mid = (mid + Math.imul(ah3, bl5)) | 0;\n hi = (hi + Math.imul(ah3, bh5)) | 0;\n lo = (lo + Math.imul(al2, bl6)) | 0;\n mid = (mid + Math.imul(al2, bh6)) | 0;\n mid = (mid + Math.imul(ah2, bl6)) | 0;\n hi = (hi + Math.imul(ah2, bh6)) | 0;\n lo = (lo + Math.imul(al1, bl7)) | 0;\n mid = (mid + Math.imul(al1, bh7)) | 0;\n mid = (mid + Math.imul(ah1, bl7)) | 0;\n hi = (hi + Math.imul(ah1, bh7)) | 0;\n lo = (lo + Math.imul(al0, bl8)) | 0;\n mid = (mid + Math.imul(al0, bh8)) | 0;\n mid = (mid + Math.imul(ah0, bl8)) | 0;\n hi = (hi + Math.imul(ah0, bh8)) | 0;\n var w8 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w8 >>> 26)) | 0;\n w8 &= 0x3ffffff;\n /* k = 9 */\n lo = Math.imul(al9, bl0);\n mid = Math.imul(al9, bh0);\n mid = (mid + Math.imul(ah9, bl0)) | 0;\n hi = Math.imul(ah9, bh0);\n lo = (lo + Math.imul(al8, bl1)) | 0;\n mid = (mid + Math.imul(al8, bh1)) | 0;\n mid = (mid + Math.imul(ah8, bl1)) | 0;\n hi = (hi + Math.imul(ah8, bh1)) | 0;\n lo = (lo + Math.imul(al7, bl2)) | 0;\n mid = (mid + Math.imul(al7, bh2)) | 0;\n mid = (mid + Math.imul(ah7, bl2)) | 0;\n hi = (hi + Math.imul(ah7, bh2)) | 0;\n lo = (lo + Math.imul(al6, bl3)) | 0;\n mid = (mid + Math.imul(al6, bh3)) | 0;\n mid = (mid + Math.imul(ah6, bl3)) | 0;\n hi = (hi + Math.imul(ah6, bh3)) | 0;\n lo = (lo + Math.imul(al5, bl4)) | 0;\n mid = (mid + Math.imul(al5, bh4)) | 0;\n mid = (mid + Math.imul(ah5, bl4)) | 0;\n hi = (hi + Math.imul(ah5, bh4)) | 0;\n lo = (lo + Math.imul(al4, bl5)) | 0;\n mid = (mid + Math.imul(al4, bh5)) | 0;\n mid = (mid + Math.imul(ah4, bl5)) | 0;\n hi = (hi + Math.imul(ah4, bh5)) | 0;\n lo = (lo + Math.imul(al3, bl6)) | 0;\n mid = (mid + Math.imul(al3, bh6)) | 0;\n mid = (mid + Math.imul(ah3, bl6)) | 0;\n hi = (hi + Math.imul(ah3, bh6)) | 0;\n lo = (lo + Math.imul(al2, bl7)) | 0;\n mid = (mid + Math.imul(al2, bh7)) | 0;\n mid = (mid + Math.imul(ah2, bl7)) | 0;\n hi = (hi + Math.imul(ah2, bh7)) | 0;\n lo = (lo + Math.imul(al1, bl8)) | 0;\n mid = (mid + Math.imul(al1, bh8)) | 0;\n mid = (mid + Math.imul(ah1, bl8)) | 0;\n hi = (hi + Math.imul(ah1, bh8)) | 0;\n lo = (lo + Math.imul(al0, bl9)) | 0;\n mid = (mid + Math.imul(al0, bh9)) | 0;\n mid = (mid + Math.imul(ah0, bl9)) | 0;\n hi = (hi + Math.imul(ah0, bh9)) | 0;\n var w9 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w9 >>> 26)) | 0;\n w9 &= 0x3ffffff;\n /* k = 10 */\n lo = Math.imul(al9, bl1);\n mid = Math.imul(al9, bh1);\n mid = (mid + Math.imul(ah9, bl1)) | 0;\n hi = Math.imul(ah9, bh1);\n lo = (lo + Math.imul(al8, bl2)) | 0;\n mid = (mid + Math.imul(al8, bh2)) | 0;\n mid = (mid + Math.imul(ah8, bl2)) | 0;\n hi = (hi + Math.imul(ah8, bh2)) | 0;\n lo = (lo + Math.imul(al7, bl3)) | 0;\n mid = (mid + Math.imul(al7, bh3)) | 0;\n mid = (mid + Math.imul(ah7, bl3)) | 0;\n hi = (hi + Math.imul(ah7, bh3)) | 0;\n lo = (lo + Math.imul(al6, bl4)) | 0;\n mid = (mid + Math.imul(al6, bh4)) | 0;\n mid = (mid + Math.imul(ah6, bl4)) | 0;\n hi = (hi + Math.imul(ah6, bh4)) | 0;\n lo = (lo + Math.imul(al5, bl5)) | 0;\n mid = (mid + Math.imul(al5, bh5)) | 0;\n mid = (mid + Math.imul(ah5, bl5)) | 0;\n hi = (hi + Math.imul(ah5, bh5)) | 0;\n lo = (lo + Math.imul(al4, bl6)) | 0;\n mid = (mid + Math.imul(al4, bh6)) | 0;\n mid = (mid + Math.imul(ah4, bl6)) | 0;\n hi = (hi + Math.imul(ah4, bh6)) | 0;\n lo = (lo + Math.imul(al3, bl7)) | 0;\n mid = (mid + Math.imul(al3, bh7)) | 0;\n mid = (mid + Math.imul(ah3, bl7)) | 0;\n hi = (hi + Math.imul(ah3, bh7)) | 0;\n lo = (lo + Math.imul(al2, bl8)) | 0;\n mid = (mid + Math.imul(al2, bh8)) | 0;\n mid = (mid + Math.imul(ah2, bl8)) | 0;\n hi = (hi + Math.imul(ah2, bh8)) | 0;\n lo = (lo + Math.imul(al1, bl9)) | 0;\n mid = (mid + Math.imul(al1, bh9)) | 0;\n mid = (mid + Math.imul(ah1, bl9)) | 0;\n hi = (hi + Math.imul(ah1, bh9)) | 0;\n var w10 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w10 >>> 26)) | 0;\n w10 &= 0x3ffffff;\n /* k = 11 */\n lo = Math.imul(al9, bl2);\n mid = Math.imul(al9, bh2);\n mid = (mid + Math.imul(ah9, bl2)) | 0;\n hi = Math.imul(ah9, bh2);\n lo = (lo + Math.imul(al8, bl3)) | 0;\n mid = (mid + Math.imul(al8, bh3)) | 0;\n mid = (mid + Math.imul(ah8, bl3)) | 0;\n hi = (hi + Math.imul(ah8, bh3)) | 0;\n lo = (lo + Math.imul(al7, bl4)) | 0;\n mid = (mid + Math.imul(al7, bh4)) | 0;\n mid = (mid + Math.imul(ah7, bl4)) | 0;\n hi = (hi + Math.imul(ah7, bh4)) | 0;\n lo = (lo + Math.imul(al6, bl5)) | 0;\n mid = (mid + Math.imul(al6, bh5)) | 0;\n mid = (mid + Math.imul(ah6, bl5)) | 0;\n hi = (hi + Math.imul(ah6, bh5)) | 0;\n lo = (lo + Math.imul(al5, bl6)) | 0;\n mid = (mid + Math.imul(al5, bh6)) | 0;\n mid = (mid + Math.imul(ah5, bl6)) | 0;\n hi = (hi + Math.imul(ah5, bh6)) | 0;\n lo = (lo + Math.imul(al4, bl7)) | 0;\n mid = (mid + Math.imul(al4, bh7)) | 0;\n mid = (mid + Math.imul(ah4, bl7)) | 0;\n hi = (hi + Math.imul(ah4, bh7)) | 0;\n lo = (lo + Math.imul(al3, bl8)) | 0;\n mid = (mid + Math.imul(al3, bh8)) | 0;\n mid = (mid + Math.imul(ah3, bl8)) | 0;\n hi = (hi + Math.imul(ah3, bh8)) | 0;\n lo = (lo + Math.imul(al2, bl9)) | 0;\n mid = (mid + Math.imul(al2, bh9)) | 0;\n mid = (mid + Math.imul(ah2, bl9)) | 0;\n hi = (hi + Math.imul(ah2, bh9)) | 0;\n var w11 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w11 >>> 26)) | 0;\n w11 &= 0x3ffffff;\n /* k = 12 */\n lo = Math.imul(al9, bl3);\n mid = Math.imul(al9, bh3);\n mid = (mid + Math.imul(ah9, bl3)) | 0;\n hi = Math.imul(ah9, bh3);\n lo = (lo + Math.imul(al8, bl4)) | 0;\n mid = (mid + Math.imul(al8, bh4)) | 0;\n mid = (mid + Math.imul(ah8, bl4)) | 0;\n hi = (hi + Math.imul(ah8, bh4)) | 0;\n lo = (lo + Math.imul(al7, bl5)) | 0;\n mid = (mid + Math.imul(al7, bh5)) | 0;\n mid = (mid + Math.imul(ah7, bl5)) | 0;\n hi = (hi + Math.imul(ah7, bh5)) | 0;\n lo = (lo + Math.imul(al6, bl6)) | 0;\n mid = (mid + Math.imul(al6, bh6)) | 0;\n mid = (mid + Math.imul(ah6, bl6)) | 0;\n hi = (hi + Math.imul(ah6, bh6)) | 0;\n lo = (lo + Math.imul(al5, bl7)) | 0;\n mid = (mid + Math.imul(al5, bh7)) | 0;\n mid = (mid + Math.imul(ah5, bl7)) | 0;\n hi = (hi + Math.imul(ah5, bh7)) | 0;\n lo = (lo + Math.imul(al4, bl8)) | 0;\n mid = (mid + Math.imul(al4, bh8)) | 0;\n mid = (mid + Math.imul(ah4, bl8)) | 0;\n hi = (hi + Math.imul(ah4, bh8)) | 0;\n lo = (lo + Math.imul(al3, bl9)) | 0;\n mid = (mid + Math.imul(al3, bh9)) | 0;\n mid = (mid + Math.imul(ah3, bl9)) | 0;\n hi = (hi + Math.imul(ah3, bh9)) | 0;\n var w12 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w12 >>> 26)) | 0;\n w12 &= 0x3ffffff;\n /* k = 13 */\n lo = Math.imul(al9, bl4);\n mid = Math.imul(al9, bh4);\n mid = (mid + Math.imul(ah9, bl4)) | 0;\n hi = Math.imul(ah9, bh4);\n lo = (lo + Math.imul(al8, bl5)) | 0;\n mid = (mid + Math.imul(al8, bh5)) | 0;\n mid = (mid + Math.imul(ah8, bl5)) | 0;\n hi = (hi + Math.imul(ah8, bh5)) | 0;\n lo = (lo + Math.imul(al7, bl6)) | 0;\n mid = (mid + Math.imul(al7, bh6)) | 0;\n mid = (mid + Math.imul(ah7, bl6)) | 0;\n hi = (hi + Math.imul(ah7, bh6)) | 0;\n lo = (lo + Math.imul(al6, bl7)) | 0;\n mid = (mid + Math.imul(al6, bh7)) | 0;\n mid = (mid + Math.imul(ah6, bl7)) | 0;\n hi = (hi + Math.imul(ah6, bh7)) | 0;\n lo = (lo + Math.imul(al5, bl8)) | 0;\n mid = (mid + Math.imul(al5, bh8)) | 0;\n mid = (mid + Math.imul(ah5, bl8)) | 0;\n hi = (hi + Math.imul(ah5, bh8)) | 0;\n lo = (lo + Math.imul(al4, bl9)) | 0;\n mid = (mid + Math.imul(al4, bh9)) | 0;\n mid = (mid + Math.imul(ah4, bl9)) | 0;\n hi = (hi + Math.imul(ah4, bh9)) | 0;\n var w13 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w13 >>> 26)) | 0;\n w13 &= 0x3ffffff;\n /* k = 14 */\n lo = Math.imul(al9, bl5);\n mid = Math.imul(al9, bh5);\n mid = (mid + Math.imul(ah9, bl5)) | 0;\n hi = Math.imul(ah9, bh5);\n lo = (lo + Math.imul(al8, bl6)) | 0;\n mid = (mid + Math.imul(al8, bh6)) | 0;\n mid = (mid + Math.imul(ah8, bl6)) | 0;\n hi = (hi + Math.imul(ah8, bh6)) | 0;\n lo = (lo + Math.imul(al7, bl7)) | 0;\n mid = (mid + Math.imul(al7, bh7)) | 0;\n mid = (mid + Math.imul(ah7, bl7)) | 0;\n hi = (hi + Math.imul(ah7, bh7)) | 0;\n lo = (lo + Math.imul(al6, bl8)) | 0;\n mid = (mid + Math.imul(al6, bh8)) | 0;\n mid = (mid + Math.imul(ah6, bl8)) | 0;\n hi = (hi + Math.imul(ah6, bh8)) | 0;\n lo = (lo + Math.imul(al5, bl9)) | 0;\n mid = (mid + Math.imul(al5, bh9)) | 0;\n mid = (mid + Math.imul(ah5, bl9)) | 0;\n hi = (hi + Math.imul(ah5, bh9)) | 0;\n var w14 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w14 >>> 26)) | 0;\n w14 &= 0x3ffffff;\n /* k = 15 */\n lo = Math.imul(al9, bl6);\n mid = Math.imul(al9, bh6);\n mid = (mid + Math.imul(ah9, bl6)) | 0;\n hi = Math.imul(ah9, bh6);\n lo = (lo + Math.imul(al8, bl7)) | 0;\n mid = (mid + Math.imul(al8, bh7)) | 0;\n mid = (mid + Math.imul(ah8, bl7)) | 0;\n hi = (hi + Math.imul(ah8, bh7)) | 0;\n lo = (lo + Math.imul(al7, bl8)) | 0;\n mid = (mid + Math.imul(al7, bh8)) | 0;\n mid = (mid + Math.imul(ah7, bl8)) | 0;\n hi = (hi + Math.imul(ah7, bh8)) | 0;\n lo = (lo + Math.imul(al6, bl9)) | 0;\n mid = (mid + Math.imul(al6, bh9)) | 0;\n mid = (mid + Math.imul(ah6, bl9)) | 0;\n hi = (hi + Math.imul(ah6, bh9)) | 0;\n var w15 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w15 >>> 26)) | 0;\n w15 &= 0x3ffffff;\n /* k = 16 */\n lo = Math.imul(al9, bl7);\n mid = Math.imul(al9, bh7);\n mid = (mid + Math.imul(ah9, bl7)) | 0;\n hi = Math.imul(ah9, bh7);\n lo = (lo + Math.imul(al8, bl8)) | 0;\n mid = (mid + Math.imul(al8, bh8)) | 0;\n mid = (mid + Math.imul(ah8, bl8)) | 0;\n hi = (hi + Math.imul(ah8, bh8)) | 0;\n lo = (lo + Math.imul(al7, bl9)) | 0;\n mid = (mid + Math.imul(al7, bh9)) | 0;\n mid = (mid + Math.imul(ah7, bl9)) | 0;\n hi = (hi + Math.imul(ah7, bh9)) | 0;\n var w16 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w16 >>> 26)) | 0;\n w16 &= 0x3ffffff;\n /* k = 17 */\n lo = Math.imul(al9, bl8);\n mid = Math.imul(al9, bh8);\n mid = (mid + Math.imul(ah9, bl8)) | 0;\n hi = Math.imul(ah9, bh8);\n lo = (lo + Math.imul(al8, bl9)) | 0;\n mid = (mid + Math.imul(al8, bh9)) | 0;\n mid = (mid + Math.imul(ah8, bl9)) | 0;\n hi = (hi + Math.imul(ah8, bh9)) | 0;\n var w17 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w17 >>> 26)) | 0;\n w17 &= 0x3ffffff;\n /* k = 18 */\n lo = Math.imul(al9, bl9);\n mid = Math.imul(al9, bh9);\n mid = (mid + Math.imul(ah9, bl9)) | 0;\n hi = Math.imul(ah9, bh9);\n var w18 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w18 >>> 26)) | 0;\n w18 &= 0x3ffffff;\n o[0] = w0;\n o[1] = w1;\n o[2] = w2;\n o[3] = w3;\n o[4] = w4;\n o[5] = w5;\n o[6] = w6;\n o[7] = w7;\n o[8] = w8;\n o[9] = w9;\n o[10] = w10;\n o[11] = w11;\n o[12] = w12;\n o[13] = w13;\n o[14] = w14;\n o[15] = w15;\n o[16] = w16;\n o[17] = w17;\n o[18] = w18;\n if (c !== 0) {\n o[19] = c;\n out.length++;\n }\n return out;\n };\n\n // Polyfill comb\n if (!Math.imul) {\n comb10MulTo = smallMulTo;\n }\n\n function bigMulTo (self, num, out) {\n out.negative = num.negative ^ self.negative;\n out.length = self.length + num.length;\n\n var carry = 0;\n var hncarry = 0;\n for (var k = 0; k < out.length - 1; k++) {\n // Sum all words with the same `i + j = k` and accumulate `ncarry`,\n // note that ncarry could be >= 0x3ffffff\n var ncarry = hncarry;\n hncarry = 0;\n var rword = carry & 0x3ffffff;\n var maxJ = Math.min(k, num.length - 1);\n for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {\n var i = k - j;\n var a = self.words[i] | 0;\n var b = num.words[j] | 0;\n var r = a * b;\n\n var lo = r & 0x3ffffff;\n ncarry = (ncarry + ((r / 0x4000000) | 0)) | 0;\n lo = (lo + rword) | 0;\n rword = lo & 0x3ffffff;\n ncarry = (ncarry + (lo >>> 26)) | 0;\n\n hncarry += ncarry >>> 26;\n ncarry &= 0x3ffffff;\n }\n out.words[k] = rword;\n carry = ncarry;\n ncarry = hncarry;\n }\n if (carry !== 0) {\n out.words[k] = carry;\n } else {\n out.length--;\n }\n\n return out.strip();\n }\n\n function jumboMulTo (self, num, out) {\n var fftm = new FFTM();\n return fftm.mulp(self, num, out);\n }\n\n BN.prototype.mulTo = function mulTo (num, out) {\n var res;\n var len = this.length + num.length;\n if (this.length === 10 && num.length === 10) {\n res = comb10MulTo(this, num, out);\n } else if (len < 63) {\n res = smallMulTo(this, num, out);\n } else if (len < 1024) {\n res = bigMulTo(this, num, out);\n } else {\n res = jumboMulTo(this, num, out);\n }\n\n return res;\n };\n\n // Cooley-Tukey algorithm for FFT\n // slightly revisited to rely on looping instead of recursion\n\n function FFTM (x, y) {\n this.x = x;\n this.y = y;\n }\n\n FFTM.prototype.makeRBT = function makeRBT (N) {\n var t = new Array(N);\n var l = BN.prototype._countBits(N) - 1;\n for (var i = 0; i < N; i++) {\n t[i] = this.revBin(i, l, N);\n }\n\n return t;\n };\n\n // Returns binary-reversed representation of `x`\n FFTM.prototype.revBin = function revBin (x, l, N) {\n if (x === 0 || x === N - 1) return x;\n\n var rb = 0;\n for (var i = 0; i < l; i++) {\n rb |= (x & 1) << (l - i - 1);\n x >>= 1;\n }\n\n return rb;\n };\n\n // Performs \"tweedling\" phase, therefore 'emulating'\n // behaviour of the recursive algorithm\n FFTM.prototype.permute = function permute (rbt, rws, iws, rtws, itws, N) {\n for (var i = 0; i < N; i++) {\n rtws[i] = rws[rbt[i]];\n itws[i] = iws[rbt[i]];\n }\n };\n\n FFTM.prototype.transform = function transform (rws, iws, rtws, itws, N, rbt) {\n this.permute(rbt, rws, iws, rtws, itws, N);\n\n for (var s = 1; s < N; s <<= 1) {\n var l = s << 1;\n\n var rtwdf = Math.cos(2 * Math.PI / l);\n var itwdf = Math.sin(2 * Math.PI / l);\n\n for (var p = 0; p < N; p += l) {\n var rtwdf_ = rtwdf;\n var itwdf_ = itwdf;\n\n for (var j = 0; j < s; j++) {\n var re = rtws[p + j];\n var ie = itws[p + j];\n\n var ro = rtws[p + j + s];\n var io = itws[p + j + s];\n\n var rx = rtwdf_ * ro - itwdf_ * io;\n\n io = rtwdf_ * io + itwdf_ * ro;\n ro = rx;\n\n rtws[p + j] = re + ro;\n itws[p + j] = ie + io;\n\n rtws[p + j + s] = re - ro;\n itws[p + j + s] = ie - io;\n\n /* jshint maxdepth : false */\n if (j !== l) {\n rx = rtwdf * rtwdf_ - itwdf * itwdf_;\n\n itwdf_ = rtwdf * itwdf_ + itwdf * rtwdf_;\n rtwdf_ = rx;\n }\n }\n }\n }\n };\n\n FFTM.prototype.guessLen13b = function guessLen13b (n, m) {\n var N = Math.max(m, n) | 1;\n var odd = N & 1;\n var i = 0;\n for (N = N / 2 | 0; N; N = N >>> 1) {\n i++;\n }\n\n return 1 << i + 1 + odd;\n };\n\n FFTM.prototype.conjugate = function conjugate (rws, iws, N) {\n if (N <= 1) return;\n\n for (var i = 0; i < N / 2; i++) {\n var t = rws[i];\n\n rws[i] = rws[N - i - 1];\n rws[N - i - 1] = t;\n\n t = iws[i];\n\n iws[i] = -iws[N - i - 1];\n iws[N - i - 1] = -t;\n }\n };\n\n FFTM.prototype.normalize13b = function normalize13b (ws, N) {\n var carry = 0;\n for (var i = 0; i < N / 2; i++) {\n var w = Math.round(ws[2 * i + 1] / N) * 0x2000 +\n Math.round(ws[2 * i] / N) +\n carry;\n\n ws[i] = w & 0x3ffffff;\n\n if (w < 0x4000000) {\n carry = 0;\n } else {\n carry = w / 0x4000000 | 0;\n }\n }\n\n return ws;\n };\n\n FFTM.prototype.convert13b = function convert13b (ws, len, rws, N) {\n var carry = 0;\n for (var i = 0; i < len; i++) {\n carry = carry + (ws[i] | 0);\n\n rws[2 * i] = carry & 0x1fff; carry = carry >>> 13;\n rws[2 * i + 1] = carry & 0x1fff; carry = carry >>> 13;\n }\n\n // Pad with zeroes\n for (i = 2 * len; i < N; ++i) {\n rws[i] = 0;\n }\n\n assert(carry === 0);\n assert((carry & ~0x1fff) === 0);\n };\n\n FFTM.prototype.stub = function stub (N) {\n var ph = new Array(N);\n for (var i = 0; i < N; i++) {\n ph[i] = 0;\n }\n\n return ph;\n };\n\n FFTM.prototype.mulp = function mulp (x, y, out) {\n var N = 2 * this.guessLen13b(x.length, y.length);\n\n var rbt = this.makeRBT(N);\n\n var _ = this.stub(N);\n\n var rws = new Array(N);\n var rwst = new Array(N);\n var iwst = new Array(N);\n\n var nrws = new Array(N);\n var nrwst = new Array(N);\n var niwst = new Array(N);\n\n var rmws = out.words;\n rmws.length = N;\n\n this.convert13b(x.words, x.length, rws, N);\n this.convert13b(y.words, y.length, nrws, N);\n\n this.transform(rws, _, rwst, iwst, N, rbt);\n this.transform(nrws, _, nrwst, niwst, N, rbt);\n\n for (var i = 0; i < N; i++) {\n var rx = rwst[i] * nrwst[i] - iwst[i] * niwst[i];\n iwst[i] = rwst[i] * niwst[i] + iwst[i] * nrwst[i];\n rwst[i] = rx;\n }\n\n this.conjugate(rwst, iwst, N);\n this.transform(rwst, iwst, rmws, _, N, rbt);\n this.conjugate(rmws, _, N);\n this.normalize13b(rmws, N);\n\n out.negative = x.negative ^ y.negative;\n out.length = x.length + y.length;\n return out.strip();\n };\n\n // Multiply `this` by `num`\n BN.prototype.mul = function mul (num) {\n var out = new BN(null);\n out.words = new Array(this.length + num.length);\n return this.mulTo(num, out);\n };\n\n // Multiply employing FFT\n BN.prototype.mulf = function mulf (num) {\n var out = new BN(null);\n out.words = new Array(this.length + num.length);\n return jumboMulTo(this, num, out);\n };\n\n // In-place Multiplication\n BN.prototype.imul = function imul (num) {\n return this.clone().mulTo(num, this);\n };\n\n BN.prototype.imuln = function imuln (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n\n // Carry\n var carry = 0;\n for (var i = 0; i < this.length; i++) {\n var w = (this.words[i] | 0) * num;\n var lo = (w & 0x3ffffff) + (carry & 0x3ffffff);\n carry >>= 26;\n carry += (w / 0x4000000) | 0;\n // NOTE: lo is 27bit maximum\n carry += lo >>> 26;\n this.words[i] = lo & 0x3ffffff;\n }\n\n if (carry !== 0) {\n this.words[i] = carry;\n this.length++;\n }\n\n return this;\n };\n\n BN.prototype.muln = function muln (num) {\n return this.clone().imuln(num);\n };\n\n // `this` * `this`\n BN.prototype.sqr = function sqr () {\n return this.mul(this);\n };\n\n // `this` * `this` in-place\n BN.prototype.isqr = function isqr () {\n return this.imul(this.clone());\n };\n\n // Math.pow(`this`, `num`)\n BN.prototype.pow = function pow (num) {\n var w = toBitArray(num);\n if (w.length === 0) return new BN(1);\n\n // Skip leading zeroes\n var res = this;\n for (var i = 0; i < w.length; i++, res = res.sqr()) {\n if (w[i] !== 0) break;\n }\n\n if (++i < w.length) {\n for (var q = res.sqr(); i < w.length; i++, q = q.sqr()) {\n if (w[i] === 0) continue;\n\n res = res.mul(q);\n }\n }\n\n return res;\n };\n\n // Shift-left in-place\n BN.prototype.iushln = function iushln (bits) {\n assert(typeof bits === 'number' && bits >= 0);\n var r = bits % 26;\n var s = (bits - r) / 26;\n var carryMask = (0x3ffffff >>> (26 - r)) << (26 - r);\n var i;\n\n if (r !== 0) {\n var carry = 0;\n\n for (i = 0; i < this.length; i++) {\n var newCarry = this.words[i] & carryMask;\n var c = ((this.words[i] | 0) - newCarry) << r;\n this.words[i] = c | carry;\n carry = newCarry >>> (26 - r);\n }\n\n if (carry) {\n this.words[i] = carry;\n this.length++;\n }\n }\n\n if (s !== 0) {\n for (i = this.length - 1; i >= 0; i--) {\n this.words[i + s] = this.words[i];\n }\n\n for (i = 0; i < s; i++) {\n this.words[i] = 0;\n }\n\n this.length += s;\n }\n\n return this.strip();\n };\n\n BN.prototype.ishln = function ishln (bits) {\n // TODO(indutny): implement me\n assert(this.negative === 0);\n return this.iushln(bits);\n };\n\n // Shift-right in-place\n // NOTE: `hint` is a lowest bit before trailing zeroes\n // NOTE: if `extended` is present - it will be filled with destroyed bits\n BN.prototype.iushrn = function iushrn (bits, hint, extended) {\n assert(typeof bits === 'number' && bits >= 0);\n var h;\n if (hint) {\n h = (hint - (hint % 26)) / 26;\n } else {\n h = 0;\n }\n\n var r = bits % 26;\n var s = Math.min((bits - r) / 26, this.length);\n var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r);\n var maskedWords = extended;\n\n h -= s;\n h = Math.max(0, h);\n\n // Extended mode, copy masked part\n if (maskedWords) {\n for (var i = 0; i < s; i++) {\n maskedWords.words[i] = this.words[i];\n }\n maskedWords.length = s;\n }\n\n if (s === 0) {\n // No-op, we should not move anything at all\n } else if (this.length > s) {\n this.length -= s;\n for (i = 0; i < this.length; i++) {\n this.words[i] = this.words[i + s];\n }\n } else {\n this.words[0] = 0;\n this.length = 1;\n }\n\n var carry = 0;\n for (i = this.length - 1; i >= 0 && (carry !== 0 || i >= h); i--) {\n var word = this.words[i] | 0;\n this.words[i] = (carry << (26 - r)) | (word >>> r);\n carry = word & mask;\n }\n\n // Push carried bits as a mask\n if (maskedWords && carry !== 0) {\n maskedWords.words[maskedWords.length++] = carry;\n }\n\n if (this.length === 0) {\n this.words[0] = 0;\n this.length = 1;\n }\n\n return this.strip();\n };\n\n BN.prototype.ishrn = function ishrn (bits, hint, extended) {\n // TODO(indutny): implement me\n assert(this.negative === 0);\n return this.iushrn(bits, hint, extended);\n };\n\n // Shift-left\n BN.prototype.shln = function shln (bits) {\n return this.clone().ishln(bits);\n };\n\n BN.prototype.ushln = function ushln (bits) {\n return this.clone().iushln(bits);\n };\n\n // Shift-right\n BN.prototype.shrn = function shrn (bits) {\n return this.clone().ishrn(bits);\n };\n\n BN.prototype.ushrn = function ushrn (bits) {\n return this.clone().iushrn(bits);\n };\n\n // Test if n bit is set\n BN.prototype.testn = function testn (bit) {\n assert(typeof bit === 'number' && bit >= 0);\n var r = bit % 26;\n var s = (bit - r) / 26;\n var q = 1 << r;\n\n // Fast case: bit is much higher than all existing words\n if (this.length <= s) return false;\n\n // Check bit and return\n var w = this.words[s];\n\n return !!(w & q);\n };\n\n // Return only lowers bits of number (in-place)\n BN.prototype.imaskn = function imaskn (bits) {\n assert(typeof bits === 'number' && bits >= 0);\n var r = bits % 26;\n var s = (bits - r) / 26;\n\n assert(this.negative === 0, 'imaskn works only with positive numbers');\n\n if (this.length <= s) {\n return this;\n }\n\n if (r !== 0) {\n s++;\n }\n this.length = Math.min(s, this.length);\n\n if (r !== 0) {\n var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r);\n this.words[this.length - 1] &= mask;\n }\n\n return this.strip();\n };\n\n // Return only lowers bits of number\n BN.prototype.maskn = function maskn (bits) {\n return this.clone().imaskn(bits);\n };\n\n // Add plain number `num` to `this`\n BN.prototype.iaddn = function iaddn (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n if (num < 0) return this.isubn(-num);\n\n // Possible sign change\n if (this.negative !== 0) {\n if (this.length === 1 && (this.words[0] | 0) < num) {\n this.words[0] = num - (this.words[0] | 0);\n this.negative = 0;\n return this;\n }\n\n this.negative = 0;\n this.isubn(num);\n this.negative = 1;\n return this;\n }\n\n // Add without checks\n return this._iaddn(num);\n };\n\n BN.prototype._iaddn = function _iaddn (num) {\n this.words[0] += num;\n\n // Carry\n for (var i = 0; i < this.length && this.words[i] >= 0x4000000; i++) {\n this.words[i] -= 0x4000000;\n if (i === this.length - 1) {\n this.words[i + 1] = 1;\n } else {\n this.words[i + 1]++;\n }\n }\n this.length = Math.max(this.length, i + 1);\n\n return this;\n };\n\n // Subtract plain number `num` from `this`\n BN.prototype.isubn = function isubn (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n if (num < 0) return this.iaddn(-num);\n\n if (this.negative !== 0) {\n this.negative = 0;\n this.iaddn(num);\n this.negative = 1;\n return this;\n }\n\n this.words[0] -= num;\n\n if (this.length === 1 && this.words[0] < 0) {\n this.words[0] = -this.words[0];\n this.negative = 1;\n } else {\n // Carry\n for (var i = 0; i < this.length && this.words[i] < 0; i++) {\n this.words[i] += 0x4000000;\n this.words[i + 1] -= 1;\n }\n }\n\n return this.strip();\n };\n\n BN.prototype.addn = function addn (num) {\n return this.clone().iaddn(num);\n };\n\n BN.prototype.subn = function subn (num) {\n return this.clone().isubn(num);\n };\n\n BN.prototype.iabs = function iabs () {\n this.negative = 0;\n\n return this;\n };\n\n BN.prototype.abs = function abs () {\n return this.clone().iabs();\n };\n\n BN.prototype._ishlnsubmul = function _ishlnsubmul (num, mul, shift) {\n var len = num.length + shift;\n var i;\n\n this._expand(len);\n\n var w;\n var carry = 0;\n for (i = 0; i < num.length; i++) {\n w = (this.words[i + shift] | 0) + carry;\n var right = (num.words[i] | 0) * mul;\n w -= right & 0x3ffffff;\n carry = (w >> 26) - ((right / 0x4000000) | 0);\n this.words[i + shift] = w & 0x3ffffff;\n }\n for (; i < this.length - shift; i++) {\n w = (this.words[i + shift] | 0) + carry;\n carry = w >> 26;\n this.words[i + shift] = w & 0x3ffffff;\n }\n\n if (carry === 0) return this.strip();\n\n // Subtraction overflow\n assert(carry === -1);\n carry = 0;\n for (i = 0; i < this.length; i++) {\n w = -(this.words[i] | 0) + carry;\n carry = w >> 26;\n this.words[i] = w & 0x3ffffff;\n }\n this.negative = 1;\n\n return this.strip();\n };\n\n BN.prototype._wordDiv = function _wordDiv (num, mode) {\n var shift = this.length - num.length;\n\n var a = this.clone();\n var b = num;\n\n // Normalize\n var bhi = b.words[b.length - 1] | 0;\n var bhiBits = this._countBits(bhi);\n shift = 26 - bhiBits;\n if (shift !== 0) {\n b = b.ushln(shift);\n a.iushln(shift);\n bhi = b.words[b.length - 1] | 0;\n }\n\n // Initialize quotient\n var m = a.length - b.length;\n var q;\n\n if (mode !== 'mod') {\n q = new BN(null);\n q.length = m + 1;\n q.words = new Array(q.length);\n for (var i = 0; i < q.length; i++) {\n q.words[i] = 0;\n }\n }\n\n var diff = a.clone()._ishlnsubmul(b, 1, m);\n if (diff.negative === 0) {\n a = diff;\n if (q) {\n q.words[m] = 1;\n }\n }\n\n for (var j = m - 1; j >= 0; j--) {\n var qj = (a.words[b.length + j] | 0) * 0x4000000 +\n (a.words[b.length + j - 1] | 0);\n\n // NOTE: (qj / bhi) is (0x3ffffff * 0x4000000 + 0x3ffffff) / 0x2000000 max\n // (0x7ffffff)\n qj = Math.min((qj / bhi) | 0, 0x3ffffff);\n\n a._ishlnsubmul(b, qj, j);\n while (a.negative !== 0) {\n qj--;\n a.negative = 0;\n a._ishlnsubmul(b, 1, j);\n if (!a.isZero()) {\n a.negative ^= 1;\n }\n }\n if (q) {\n q.words[j] = qj;\n }\n }\n if (q) {\n q.strip();\n }\n a.strip();\n\n // Denormalize\n if (mode !== 'div' && shift !== 0) {\n a.iushrn(shift);\n }\n\n return {\n div: q || null,\n mod: a\n };\n };\n\n // NOTE: 1) `mode` can be set to `mod` to request mod only,\n // to `div` to request div only, or be absent to\n // request both div & mod\n // 2) `positive` is true if unsigned mod is requested\n BN.prototype.divmod = function divmod (num, mode, positive) {\n assert(!num.isZero());\n\n if (this.isZero()) {\n return {\n div: new BN(0),\n mod: new BN(0)\n };\n }\n\n var div, mod, res;\n if (this.negative !== 0 && num.negative === 0) {\n res = this.neg().divmod(num, mode);\n\n if (mode !== 'mod') {\n div = res.div.neg();\n }\n\n if (mode !== 'div') {\n mod = res.mod.neg();\n if (positive && mod.negative !== 0) {\n mod.iadd(num);\n }\n }\n\n return {\n div: div,\n mod: mod\n };\n }\n\n if (this.negative === 0 && num.negative !== 0) {\n res = this.divmod(num.neg(), mode);\n\n if (mode !== 'mod') {\n div = res.div.neg();\n }\n\n return {\n div: div,\n mod: res.mod\n };\n }\n\n if ((this.negative & num.negative) !== 0) {\n res = this.neg().divmod(num.neg(), mode);\n\n if (mode !== 'div') {\n mod = res.mod.neg();\n if (positive && mod.negative !== 0) {\n mod.isub(num);\n }\n }\n\n return {\n div: res.div,\n mod: mod\n };\n }\n\n // Both numbers are positive at this point\n\n // Strip both numbers to approximate shift value\n if (num.length > this.length || this.cmp(num) < 0) {\n return {\n div: new BN(0),\n mod: this\n };\n }\n\n // Very short reduction\n if (num.length === 1) {\n if (mode === 'div') {\n return {\n div: this.divn(num.words[0]),\n mod: null\n };\n }\n\n if (mode === 'mod') {\n return {\n div: null,\n mod: new BN(this.modn(num.words[0]))\n };\n }\n\n return {\n div: this.divn(num.words[0]),\n mod: new BN(this.modn(num.words[0]))\n };\n }\n\n return this._wordDiv(num, mode);\n };\n\n // Find `this` / `num`\n BN.prototype.div = function div (num) {\n return this.divmod(num, 'div', false).div;\n };\n\n // Find `this` % `num`\n BN.prototype.mod = function mod (num) {\n return this.divmod(num, 'mod', false).mod;\n };\n\n BN.prototype.umod = function umod (num) {\n return this.divmod(num, 'mod', true).mod;\n };\n\n // Find Round(`this` / `num`)\n BN.prototype.divRound = function divRound (num) {\n var dm = this.divmod(num);\n\n // Fast case - exact division\n if (dm.mod.isZero()) return dm.div;\n\n var mod = dm.div.negative !== 0 ? dm.mod.isub(num) : dm.mod;\n\n var half = num.ushrn(1);\n var r2 = num.andln(1);\n var cmp = mod.cmp(half);\n\n // Round down\n if (cmp < 0 || r2 === 1 && cmp === 0) return dm.div;\n\n // Round up\n return dm.div.negative !== 0 ? dm.div.isubn(1) : dm.div.iaddn(1);\n };\n\n BN.prototype.modn = function modn (num) {\n assert(num <= 0x3ffffff);\n var p = (1 << 26) % num;\n\n var acc = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n acc = (p * acc + (this.words[i] | 0)) % num;\n }\n\n return acc;\n };\n\n // In-place division by number\n BN.prototype.idivn = function idivn (num) {\n assert(num <= 0x3ffffff);\n\n var carry = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n var w = (this.words[i] | 0) + carry * 0x4000000;\n this.words[i] = (w / num) | 0;\n carry = w % num;\n }\n\n return this.strip();\n };\n\n BN.prototype.divn = function divn (num) {\n return this.clone().idivn(num);\n };\n\n BN.prototype.egcd = function egcd (p) {\n assert(p.negative === 0);\n assert(!p.isZero());\n\n var x = this;\n var y = p.clone();\n\n if (x.negative !== 0) {\n x = x.umod(p);\n } else {\n x = x.clone();\n }\n\n // A * x + B * y = x\n var A = new BN(1);\n var B = new BN(0);\n\n // C * x + D * y = y\n var C = new BN(0);\n var D = new BN(1);\n\n var g = 0;\n\n while (x.isEven() && y.isEven()) {\n x.iushrn(1);\n y.iushrn(1);\n ++g;\n }\n\n var yp = y.clone();\n var xp = x.clone();\n\n while (!x.isZero()) {\n for (var i = 0, im = 1; (x.words[0] & im) === 0 && i < 26; ++i, im <<= 1);\n if (i > 0) {\n x.iushrn(i);\n while (i-- > 0) {\n if (A.isOdd() || B.isOdd()) {\n A.iadd(yp);\n B.isub(xp);\n }\n\n A.iushrn(1);\n B.iushrn(1);\n }\n }\n\n for (var j = 0, jm = 1; (y.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1);\n if (j > 0) {\n y.iushrn(j);\n while (j-- > 0) {\n if (C.isOdd() || D.isOdd()) {\n C.iadd(yp);\n D.isub(xp);\n }\n\n C.iushrn(1);\n D.iushrn(1);\n }\n }\n\n if (x.cmp(y) >= 0) {\n x.isub(y);\n A.isub(C);\n B.isub(D);\n } else {\n y.isub(x);\n C.isub(A);\n D.isub(B);\n }\n }\n\n return {\n a: C,\n b: D,\n gcd: y.iushln(g)\n };\n };\n\n // This is reduced incarnation of the binary EEA\n // above, designated to invert members of the\n // _prime_ fields F(p) at a maximal speed\n BN.prototype._invmp = function _invmp (p) {\n assert(p.negative === 0);\n assert(!p.isZero());\n\n var a = this;\n var b = p.clone();\n\n if (a.negative !== 0) {\n a = a.umod(p);\n } else {\n a = a.clone();\n }\n\n var x1 = new BN(1);\n var x2 = new BN(0);\n\n var delta = b.clone();\n\n while (a.cmpn(1) > 0 && b.cmpn(1) > 0) {\n for (var i = 0, im = 1; (a.words[0] & im) === 0 && i < 26; ++i, im <<= 1);\n if (i > 0) {\n a.iushrn(i);\n while (i-- > 0) {\n if (x1.isOdd()) {\n x1.iadd(delta);\n }\n\n x1.iushrn(1);\n }\n }\n\n for (var j = 0, jm = 1; (b.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1);\n if (j > 0) {\n b.iushrn(j);\n while (j-- > 0) {\n if (x2.isOdd()) {\n x2.iadd(delta);\n }\n\n x2.iushrn(1);\n }\n }\n\n if (a.cmp(b) >= 0) {\n a.isub(b);\n x1.isub(x2);\n } else {\n b.isub(a);\n x2.isub(x1);\n }\n }\n\n var res;\n if (a.cmpn(1) === 0) {\n res = x1;\n } else {\n res = x2;\n }\n\n if (res.cmpn(0) < 0) {\n res.iadd(p);\n }\n\n return res;\n };\n\n BN.prototype.gcd = function gcd (num) {\n if (this.isZero()) return num.abs();\n if (num.isZero()) return this.abs();\n\n var a = this.clone();\n var b = num.clone();\n a.negative = 0;\n b.negative = 0;\n\n // Remove common factor of two\n for (var shift = 0; a.isEven() && b.isEven(); shift++) {\n a.iushrn(1);\n b.iushrn(1);\n }\n\n do {\n while (a.isEven()) {\n a.iushrn(1);\n }\n while (b.isEven()) {\n b.iushrn(1);\n }\n\n var r = a.cmp(b);\n if (r < 0) {\n // Swap `a` and `b` to make `a` always bigger than `b`\n var t = a;\n a = b;\n b = t;\n } else if (r === 0 || b.cmpn(1) === 0) {\n break;\n }\n\n a.isub(b);\n } while (true);\n\n return b.iushln(shift);\n };\n\n // Invert number in the field F(num)\n BN.prototype.invm = function invm (num) {\n return this.egcd(num).a.umod(num);\n };\n\n BN.prototype.isEven = function isEven () {\n return (this.words[0] & 1) === 0;\n };\n\n BN.prototype.isOdd = function isOdd () {\n return (this.words[0] & 1) === 1;\n };\n\n // And first word and num\n BN.prototype.andln = function andln (num) {\n return this.words[0] & num;\n };\n\n // Increment at the bit position in-line\n BN.prototype.bincn = function bincn (bit) {\n assert(typeof bit === 'number');\n var r = bit % 26;\n var s = (bit - r) / 26;\n var q = 1 << r;\n\n // Fast case: bit is much higher than all existing words\n if (this.length <= s) {\n this._expand(s + 1);\n this.words[s] |= q;\n return this;\n }\n\n // Add bit and propagate, if needed\n var carry = q;\n for (var i = s; carry !== 0 && i < this.length; i++) {\n var w = this.words[i] | 0;\n w += carry;\n carry = w >>> 26;\n w &= 0x3ffffff;\n this.words[i] = w;\n }\n if (carry !== 0) {\n this.words[i] = carry;\n this.length++;\n }\n return this;\n };\n\n BN.prototype.isZero = function isZero () {\n return this.length === 1 && this.words[0] === 0;\n };\n\n BN.prototype.cmpn = function cmpn (num) {\n var negative = num < 0;\n\n if (this.negative !== 0 && !negative) return -1;\n if (this.negative === 0 && negative) return 1;\n\n this.strip();\n\n var res;\n if (this.length > 1) {\n res = 1;\n } else {\n if (negative) {\n num = -num;\n }\n\n assert(num <= 0x3ffffff, 'Number is too big');\n\n var w = this.words[0] | 0;\n res = w === num ? 0 : w < num ? -1 : 1;\n }\n if (this.negative !== 0) return -res | 0;\n return res;\n };\n\n // Compare two numbers and return:\n // 1 - if `this` > `num`\n // 0 - if `this` == `num`\n // -1 - if `this` < `num`\n BN.prototype.cmp = function cmp (num) {\n if (this.negative !== 0 && num.negative === 0) return -1;\n if (this.negative === 0 && num.negative !== 0) return 1;\n\n var res = this.ucmp(num);\n if (this.negative !== 0) return -res | 0;\n return res;\n };\n\n // Unsigned comparison\n BN.prototype.ucmp = function ucmp (num) {\n // At this point both numbers have the same sign\n if (this.length > num.length) return 1;\n if (this.length < num.length) return -1;\n\n var res = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n var a = this.words[i] | 0;\n var b = num.words[i] | 0;\n\n if (a === b) continue;\n if (a < b) {\n res = -1;\n } else if (a > b) {\n res = 1;\n }\n break;\n }\n return res;\n };\n\n BN.prototype.gtn = function gtn (num) {\n return this.cmpn(num) === 1;\n };\n\n BN.prototype.gt = function gt (num) {\n return this.cmp(num) === 1;\n };\n\n BN.prototype.gten = function gten (num) {\n return this.cmpn(num) >= 0;\n };\n\n BN.prototype.gte = function gte (num) {\n return this.cmp(num) >= 0;\n };\n\n BN.prototype.ltn = function ltn (num) {\n return this.cmpn(num) === -1;\n };\n\n BN.prototype.lt = function lt (num) {\n return this.cmp(num) === -1;\n };\n\n BN.prototype.lten = function lten (num) {\n return this.cmpn(num) <= 0;\n };\n\n BN.prototype.lte = function lte (num) {\n return this.cmp(num) <= 0;\n };\n\n BN.prototype.eqn = function eqn (num) {\n return this.cmpn(num) === 0;\n };\n\n BN.prototype.eq = function eq (num) {\n return this.cmp(num) === 0;\n };\n\n //\n // A reduce context, could be using montgomery or something better, depending\n // on the `m` itself.\n //\n BN.red = function red (num) {\n return new Red(num);\n };\n\n BN.prototype.toRed = function toRed (ctx) {\n assert(!this.red, 'Already a number in reduction context');\n assert(this.negative === 0, 'red works only with positives');\n return ctx.convertTo(this)._forceRed(ctx);\n };\n\n BN.prototype.fromRed = function fromRed () {\n assert(this.red, 'fromRed works only with numbers in reduction context');\n return this.red.convertFrom(this);\n };\n\n BN.prototype._forceRed = function _forceRed (ctx) {\n this.red = ctx;\n return this;\n };\n\n BN.prototype.forceRed = function forceRed (ctx) {\n assert(!this.red, 'Already a number in reduction context');\n return this._forceRed(ctx);\n };\n\n BN.prototype.redAdd = function redAdd (num) {\n assert(this.red, 'redAdd works only with red numbers');\n return this.red.add(this, num);\n };\n\n BN.prototype.redIAdd = function redIAdd (num) {\n assert(this.red, 'redIAdd works only with red numbers');\n return this.red.iadd(this, num);\n };\n\n BN.prototype.redSub = function redSub (num) {\n assert(this.red, 'redSub works only with red numbers');\n return this.red.sub(this, num);\n };\n\n BN.prototype.redISub = function redISub (num) {\n assert(this.red, 'redISub works only with red numbers');\n return this.red.isub(this, num);\n };\n\n BN.prototype.redShl = function redShl (num) {\n assert(this.red, 'redShl works only with red numbers');\n return this.red.shl(this, num);\n };\n\n BN.prototype.redMul = function redMul (num) {\n assert(this.red, 'redMul works only with red numbers');\n this.red._verify2(this, num);\n return this.red.mul(this, num);\n };\n\n BN.prototype.redIMul = function redIMul (num) {\n assert(this.red, 'redMul works only with red numbers');\n this.red._verify2(this, num);\n return this.red.imul(this, num);\n };\n\n BN.prototype.redSqr = function redSqr () {\n assert(this.red, 'redSqr works only with red numbers');\n this.red._verify1(this);\n return this.red.sqr(this);\n };\n\n BN.prototype.redISqr = function redISqr () {\n assert(this.red, 'redISqr works only with red numbers');\n this.red._verify1(this);\n return this.red.isqr(this);\n };\n\n // Square root over p\n BN.prototype.redSqrt = function redSqrt () {\n assert(this.red, 'redSqrt works only with red numbers');\n this.red._verify1(this);\n return this.red.sqrt(this);\n };\n\n BN.prototype.redInvm = function redInvm () {\n assert(this.red, 'redInvm works only with red numbers');\n this.red._verify1(this);\n return this.red.invm(this);\n };\n\n // Return negative clone of `this` % `red modulo`\n BN.prototype.redNeg = function redNeg () {\n assert(this.red, 'redNeg works only with red numbers');\n this.red._verify1(this);\n return this.red.neg(this);\n };\n\n BN.prototype.redPow = function redPow (num) {\n assert(this.red && !num.red, 'redPow(normalNum)');\n this.red._verify1(this);\n return this.red.pow(this, num);\n };\n\n // Prime numbers with efficient reduction\n var primes = {\n k256: null,\n p224: null,\n p192: null,\n p25519: null\n };\n\n // Pseudo-Mersenne prime\n function MPrime (name, p) {\n // P = 2 ^ N - K\n this.name = name;\n this.p = new BN(p, 16);\n this.n = this.p.bitLength();\n this.k = new BN(1).iushln(this.n).isub(this.p);\n\n this.tmp = this._tmp();\n }\n\n MPrime.prototype._tmp = function _tmp () {\n var tmp = new BN(null);\n tmp.words = new Array(Math.ceil(this.n / 13));\n return tmp;\n };\n\n MPrime.prototype.ireduce = function ireduce (num) {\n // Assumes that `num` is less than `P^2`\n // num = HI * (2 ^ N - K) + HI * K + LO = HI * K + LO (mod P)\n var r = num;\n var rlen;\n\n do {\n this.split(r, this.tmp);\n r = this.imulK(r);\n r = r.iadd(this.tmp);\n rlen = r.bitLength();\n } while (rlen > this.n);\n\n var cmp = rlen < this.n ? -1 : r.ucmp(this.p);\n if (cmp === 0) {\n r.words[0] = 0;\n r.length = 1;\n } else if (cmp > 0) {\n r.isub(this.p);\n } else {\n if (r.strip !== undefined) {\n // r is BN v4 instance\n r.strip();\n } else {\n // r is BN v5 instance\n r._strip();\n }\n }\n\n return r;\n };\n\n MPrime.prototype.split = function split (input, out) {\n input.iushrn(this.n, 0, out);\n };\n\n MPrime.prototype.imulK = function imulK (num) {\n return num.imul(this.k);\n };\n\n function K256 () {\n MPrime.call(\n this,\n 'k256',\n 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f');\n }\n inherits(K256, MPrime);\n\n K256.prototype.split = function split (input, output) {\n // 256 = 9 * 26 + 22\n var mask = 0x3fffff;\n\n var outLen = Math.min(input.length, 9);\n for (var i = 0; i < outLen; i++) {\n output.words[i] = input.words[i];\n }\n output.length = outLen;\n\n if (input.length <= 9) {\n input.words[0] = 0;\n input.length = 1;\n return;\n }\n\n // Shift by 9 limbs\n var prev = input.words[9];\n output.words[output.length++] = prev & mask;\n\n for (i = 10; i < input.length; i++) {\n var next = input.words[i] | 0;\n input.words[i - 10] = ((next & mask) << 4) | (prev >>> 22);\n prev = next;\n }\n prev >>>= 22;\n input.words[i - 10] = prev;\n if (prev === 0 && input.length > 10) {\n input.length -= 10;\n } else {\n input.length -= 9;\n }\n };\n\n K256.prototype.imulK = function imulK (num) {\n // K = 0x1000003d1 = [ 0x40, 0x3d1 ]\n num.words[num.length] = 0;\n num.words[num.length + 1] = 0;\n num.length += 2;\n\n // bounded at: 0x40 * 0x3ffffff + 0x3d0 = 0x100000390\n var lo = 0;\n for (var i = 0; i < num.length; i++) {\n var w = num.words[i] | 0;\n lo += w * 0x3d1;\n num.words[i] = lo & 0x3ffffff;\n lo = w * 0x40 + ((lo / 0x4000000) | 0);\n }\n\n // Fast length reduction\n if (num.words[num.length - 1] === 0) {\n num.length--;\n if (num.words[num.length - 1] === 0) {\n num.length--;\n }\n }\n return num;\n };\n\n function P224 () {\n MPrime.call(\n this,\n 'p224',\n 'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001');\n }\n inherits(P224, MPrime);\n\n function P192 () {\n MPrime.call(\n this,\n 'p192',\n 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff');\n }\n inherits(P192, MPrime);\n\n function P25519 () {\n // 2 ^ 255 - 19\n MPrime.call(\n this,\n '25519',\n '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed');\n }\n inherits(P25519, MPrime);\n\n P25519.prototype.imulK = function imulK (num) {\n // K = 0x13\n var carry = 0;\n for (var i = 0; i < num.length; i++) {\n var hi = (num.words[i] | 0) * 0x13 + carry;\n var lo = hi & 0x3ffffff;\n hi >>>= 26;\n\n num.words[i] = lo;\n carry = hi;\n }\n if (carry !== 0) {\n num.words[num.length++] = carry;\n }\n return num;\n };\n\n // Exported mostly for testing purposes, use plain name instead\n BN._prime = function prime (name) {\n // Cached version of prime\n if (primes[name]) return primes[name];\n\n var prime;\n if (name === 'k256') {\n prime = new K256();\n } else if (name === 'p224') {\n prime = new P224();\n } else if (name === 'p192') {\n prime = new P192();\n } else if (name === 'p25519') {\n prime = new P25519();\n } else {\n throw new Error('Unknown prime ' + name);\n }\n primes[name] = prime;\n\n return prime;\n };\n\n //\n // Base reduction engine\n //\n function Red (m) {\n if (typeof m === 'string') {\n var prime = BN._prime(m);\n this.m = prime.p;\n this.prime = prime;\n } else {\n assert(m.gtn(1), 'modulus must be greater than 1');\n this.m = m;\n this.prime = null;\n }\n }\n\n Red.prototype._verify1 = function _verify1 (a) {\n assert(a.negative === 0, 'red works only with positives');\n assert(a.red, 'red works only with red numbers');\n };\n\n Red.prototype._verify2 = function _verify2 (a, b) {\n assert((a.negative | b.negative) === 0, 'red works only with positives');\n assert(a.red && a.red === b.red,\n 'red works only with red numbers');\n };\n\n Red.prototype.imod = function imod (a) {\n if (this.prime) return this.prime.ireduce(a)._forceRed(this);\n return a.umod(this.m)._forceRed(this);\n };\n\n Red.prototype.neg = function neg (a) {\n if (a.isZero()) {\n return a.clone();\n }\n\n return this.m.sub(a)._forceRed(this);\n };\n\n Red.prototype.add = function add (a, b) {\n this._verify2(a, b);\n\n var res = a.add(b);\n if (res.cmp(this.m) >= 0) {\n res.isub(this.m);\n }\n return res._forceRed(this);\n };\n\n Red.prototype.iadd = function iadd (a, b) {\n this._verify2(a, b);\n\n var res = a.iadd(b);\n if (res.cmp(this.m) >= 0) {\n res.isub(this.m);\n }\n return res;\n };\n\n Red.prototype.sub = function sub (a, b) {\n this._verify2(a, b);\n\n var res = a.sub(b);\n if (res.cmpn(0) < 0) {\n res.iadd(this.m);\n }\n return res._forceRed(this);\n };\n\n Red.prototype.isub = function isub (a, b) {\n this._verify2(a, b);\n\n var res = a.isub(b);\n if (res.cmpn(0) < 0) {\n res.iadd(this.m);\n }\n return res;\n };\n\n Red.prototype.shl = function shl (a, num) {\n this._verify1(a);\n return this.imod(a.ushln(num));\n };\n\n Red.prototype.imul = function imul (a, b) {\n this._verify2(a, b);\n return this.imod(a.imul(b));\n };\n\n Red.prototype.mul = function mul (a, b) {\n this._verify2(a, b);\n return this.imod(a.mul(b));\n };\n\n Red.prototype.isqr = function isqr (a) {\n return this.imul(a, a.clone());\n };\n\n Red.prototype.sqr = function sqr (a) {\n return this.mul(a, a);\n };\n\n Red.prototype.sqrt = function sqrt (a) {\n if (a.isZero()) return a.clone();\n\n var mod3 = this.m.andln(3);\n assert(mod3 % 2 === 1);\n\n // Fast case\n if (mod3 === 3) {\n var pow = this.m.add(new BN(1)).iushrn(2);\n return this.pow(a, pow);\n }\n\n // Tonelli-Shanks algorithm (Totally unoptimized and slow)\n //\n // Find Q and S, that Q * 2 ^ S = (P - 1)\n var q = this.m.subn(1);\n var s = 0;\n while (!q.isZero() && q.andln(1) === 0) {\n s++;\n q.iushrn(1);\n }\n assert(!q.isZero());\n\n var one = new BN(1).toRed(this);\n var nOne = one.redNeg();\n\n // Find quadratic non-residue\n // NOTE: Max is such because of generalized Riemann hypothesis.\n var lpow = this.m.subn(1).iushrn(1);\n var z = this.m.bitLength();\n z = new BN(2 * z * z).toRed(this);\n\n while (this.pow(z, lpow).cmp(nOne) !== 0) {\n z.redIAdd(nOne);\n }\n\n var c = this.pow(z, q);\n var r = this.pow(a, q.addn(1).iushrn(1));\n var t = this.pow(a, q);\n var m = s;\n while (t.cmp(one) !== 0) {\n var tmp = t;\n for (var i = 0; tmp.cmp(one) !== 0; i++) {\n tmp = tmp.redSqr();\n }\n assert(i < m);\n var b = this.pow(c, new BN(1).iushln(m - i - 1));\n\n r = r.redMul(b);\n c = b.redSqr();\n t = t.redMul(c);\n m = i;\n }\n\n return r;\n };\n\n Red.prototype.invm = function invm (a) {\n var inv = a._invmp(this.m);\n if (inv.negative !== 0) {\n inv.negative = 0;\n return this.imod(inv).redNeg();\n } else {\n return this.imod(inv);\n }\n };\n\n Red.prototype.pow = function pow (a, num) {\n if (num.isZero()) return new BN(1).toRed(this);\n if (num.cmpn(1) === 0) return a.clone();\n\n var windowSize = 4;\n var wnd = new Array(1 << windowSize);\n wnd[0] = new BN(1).toRed(this);\n wnd[1] = a;\n for (var i = 2; i < wnd.length; i++) {\n wnd[i] = this.mul(wnd[i - 1], a);\n }\n\n var res = wnd[0];\n var current = 0;\n var currentLen = 0;\n var start = num.bitLength() % 26;\n if (start === 0) {\n start = 26;\n }\n\n for (i = num.length - 1; i >= 0; i--) {\n var word = num.words[i];\n for (var j = start - 1; j >= 0; j--) {\n var bit = (word >> j) & 1;\n if (res !== wnd[0]) {\n res = this.sqr(res);\n }\n\n if (bit === 0 && current === 0) {\n currentLen = 0;\n continue;\n }\n\n current <<= 1;\n current |= bit;\n currentLen++;\n if (currentLen !== windowSize && (i !== 0 || j !== 0)) continue;\n\n res = this.mul(res, wnd[current]);\n currentLen = 0;\n current = 0;\n }\n start = 26;\n }\n\n return res;\n };\n\n Red.prototype.convertTo = function convertTo (num) {\n var r = num.umod(this.m);\n\n return r === num ? r.clone() : r;\n };\n\n Red.prototype.convertFrom = function convertFrom (num) {\n var res = num.clone();\n res.red = null;\n return res;\n };\n\n //\n // Montgomery method engine\n //\n\n BN.mont = function mont (num) {\n return new Mont(num);\n };\n\n function Mont (m) {\n Red.call(this, m);\n\n this.shift = this.m.bitLength();\n if (this.shift % 26 !== 0) {\n this.shift += 26 - (this.shift % 26);\n }\n\n this.r = new BN(1).iushln(this.shift);\n this.r2 = this.imod(this.r.sqr());\n this.rinv = this.r._invmp(this.m);\n\n this.minv = this.rinv.mul(this.r).isubn(1).div(this.m);\n this.minv = this.minv.umod(this.r);\n this.minv = this.r.sub(this.minv);\n }\n inherits(Mont, Red);\n\n Mont.prototype.convertTo = function convertTo (num) {\n return this.imod(num.ushln(this.shift));\n };\n\n Mont.prototype.convertFrom = function convertFrom (num) {\n var r = this.imod(num.mul(this.rinv));\n r.red = null;\n return r;\n };\n\n Mont.prototype.imul = function imul (a, b) {\n if (a.isZero() || b.isZero()) {\n a.words[0] = 0;\n a.length = 1;\n return a;\n }\n\n var t = a.imul(b);\n var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);\n var u = t.isub(c).iushrn(this.shift);\n var res = u;\n\n if (u.cmp(this.m) >= 0) {\n res = u.isub(this.m);\n } else if (u.cmpn(0) < 0) {\n res = u.iadd(this.m);\n }\n\n return res._forceRed(this);\n };\n\n Mont.prototype.mul = function mul (a, b) {\n if (a.isZero() || b.isZero()) return new BN(0)._forceRed(this);\n\n var t = a.mul(b);\n var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);\n var u = t.isub(c).iushrn(this.shift);\n var res = u;\n if (u.cmp(this.m) >= 0) {\n res = u.isub(this.m);\n } else if (u.cmpn(0) < 0) {\n res = u.iadd(this.m);\n }\n\n return res._forceRed(this);\n };\n\n Mont.prototype.invm = function invm (a) {\n // (AR)^-1 * R^2 = (A^-1 * R^-1) * R^2 = A^-1 * R\n var res = this.imod(a._invmp(this.m).mul(this.r2));\n return res._forceRed(this);\n };\n})(typeof module === 'undefined' || module, this);\n\n},{\"buffer\":2}],34:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = boundary\n\nfunction boundary (cells) {\n var i, j, k\n var n = cells.length\n var sz = 0\n for (i = 0; i < n; ++i) {\n sz += cells[i].length\n }\n var result = new Array(sz)\n var ptr = 0\n for (i = 0; i < n; ++i) {\n var c = cells[i]\n var d = c.length\n for (j = 0; j < d; ++j) {\n var b = result[ptr++] = new Array(d - 1)\n var p = 0\n for (k = 0; k < d; ++k) {\n if (k === j) {\n continue\n }\n b[p++] = c[k]\n }\n if (j & 1) {\n var tmp = b[1]\n b[1] = b[0]\n b[0] = tmp\n }\n }\n }\n return result\n}\n\n},{}],35:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = boxIntersectWrapper\n\nvar pool = _glvis_('typedarray-pool')\nvar sweep = _glvis_('./lib/sweep')\nvar boxIntersectIter = _glvis_('./lib/intersect')\n\nfunction boxEmpty(d, box) {\n for(var j=0; j>>1\n if(d <= 0) {\n return\n }\n\n var retval\n\n //Convert red boxes\n var redList = pool.mallocDouble(2*d*n)\n var redIds = pool.mallocInt32(n)\n n = convertBoxes(red, d, redList, redIds)\n\n if(n > 0) {\n if(d === 1 && full) {\n //Special case: 1d complete\n sweep.init(n)\n retval = sweep.sweepComplete(\n d, visit,\n 0, n, redList, redIds,\n 0, n, redList, redIds)\n } else {\n\n //Convert blue boxes\n var blueList = pool.mallocDouble(2*d*m)\n var blueIds = pool.mallocInt32(m)\n m = convertBoxes(blue, d, blueList, blueIds)\n\n if(m > 0) {\n sweep.init(n+m)\n\n if(d === 1) {\n //Special case: 1d bipartite\n retval = sweep.sweepBipartite(\n d, visit,\n 0, n, redList, redIds,\n 0, m, blueList, blueIds)\n } else {\n //General case: d>1\n retval = boxIntersectIter(\n d, visit, full,\n n, redList, redIds,\n m, blueList, blueIds)\n }\n\n pool.free(blueList)\n pool.free(blueIds)\n }\n }\n\n pool.free(redList)\n pool.free(redIds)\n }\n\n return retval\n}\n\n\nvar RESULT\n\nfunction appendItem(i,j) {\n RESULT.push([i,j])\n}\n\nfunction intersectFullArray(x) {\n RESULT = []\n boxIntersect(x, x, appendItem, true)\n return RESULT\n}\n\nfunction intersectBipartiteArray(x, y) {\n RESULT = []\n boxIntersect(x, y, appendItem, false)\n return RESULT\n}\n\n//User-friendly wrapper, handle full input and no-visitor cases\nfunction boxIntersectWrapper(arg0, arg1, arg2) {\n switch(arguments.length) {\n case 1:\n return intersectFullArray(arg0)\n case 2:\n if(typeof arg1 === 'function') {\n return boxIntersect(arg0, arg0, arg1, true)\n } else {\n return intersectBipartiteArray(arg0, arg1)\n }\n case 3:\n return boxIntersect(arg0, arg1, arg2, false)\n default:\n throw new Error('box-intersect: Invalid arguments')\n }\n}\n},{\"./lib/intersect\":37,\"./lib/sweep\":41,\"typedarray-pool\":308}],36:[function(_glvis_,module,exports){\n'use strict'\n\nfunction full() {\n function bruteForceRedFull(d, ax, vv, rs, re, rb, ri, bs, be, bb, bi) {\n var es = 2 * d\n for (var i = rs, rp = es * rs; i < re; ++i, rp += es) {\n var x0 = rb[ax + rp], x1 = rb[ax + rp + d], xi = ri[i]\n Q: for (var j = bs, bp = es * bs; j < be; ++j, bp += es) {\n var y0 = bb[ax + bp], y1 = bb[ax + bp + d], yi = bi[j]\n if (y1 < x0 || x1 < y0) continue\n for (var k = ax + 1; k < d; ++k) {\n var r0 = rb[k + rp], r1 = rb[k + d + rp], b0 = bb[k + bp], b1 = bb[k + d + bp]\n if (r1 < b0 || b1 < r0) continue Q\n }\n var rv = vv(xi, yi)\n if (rv !== void 0) return rv\n }\n }\n }\n function bruteForceBlueFull(d, ax, vv, rs, re, rb, ri, bs, be, bb, bi) {\n var es = 2 * d\n for (var j = bs, bp = es * bs; j < be; ++j, bp += es) {\n var y0 = bb[ax + bp], y1 = bb[ax + bp + d], yi = bi[j]\n Q: for (var i = rs, rp = es * rs; i < re; ++i, rp += es) {\n var x0 = rb[ax + rp], x1 = rb[ax + rp + d], xi = ri[i]\n if (y1 < x0 || x1 < y0) continue\n for (var k = ax + 1; k < d; ++k) {\n var r0 = rb[k + rp], r1 = rb[k + d + rp], b0 = bb[k + bp], b1 = bb[k + d + bp]\n if (r1 < b0 || b1 < r0) continue Q\n }\n var rv = vv(xi, yi)\n if (rv !== void 0) return rv\n }\n }\n }\n function bruteForceFull(d, ax, vv, rs, re, rb, ri, bs, be, bb, bi) {\n if (re - rs > be - bs) {\n return bruteForceRedFull(d, ax, vv, rs, re, rb, ri, bs, be, bb, bi)\n }\n else {\n return bruteForceBlueFull(d, ax, vv, rs, re, rb, ri, bs, be, bb, bi)\n }\n }\n return bruteForceFull\n}\n\nfunction partial() {\n function bruteForceRedFlip(d, ax, vv, rs, re, rb, ri, bs, be, bb, bi) {\n var es = 2 * d\n for (var i = rs, rp = es * rs; i < re; ++i, rp += es) {\n var x0 = rb[ax + rp], x1 = rb[ax + rp + d], xi = ri[i]\n Q: for (var j = bs, bp = es * bs; j < be; ++j, bp += es) {\n var y0 = bb[ax + bp], yi = bi[j]\n if (y0 <= x0 || x1 < y0) continue\n for (var k = ax + 1; k < d; ++k) {\n var r0 = rb[k + rp], r1 = rb[k + d + rp], b0 = bb[k + bp], b1 = bb[k + d + bp]\n if (r1 < b0 || b1 < r0) continue Q\n }\n var rv = vv(yi, xi)\n if (rv !== void 0) return rv\n }\n }\n }\n function bruteForceRed(d, ax, vv, rs, re, rb, ri, bs, be, bb, bi) {\n var es = 2 * d\n for (var i = rs, rp = es * rs; i < re; ++i, rp += es) {\n var x0 = rb[ax + rp], x1 = rb[ax + rp + d], xi = ri[i]\n Q: for (var j = bs, bp = es * bs; j < be; ++j, bp += es) {\n var y0 = bb[ax + bp], yi = bi[j]\n if (y0 < x0 || x1 < y0) continue\n for (var k = ax + 1; k < d; ++k) {\n var r0 = rb[k + rp], r1 = rb[k + d + rp], b0 = bb[k + bp], b1 = bb[k + d + bp]\n if (r1 < b0 || b1 < r0) continue Q\n }\n var rv = vv(xi, yi)\n if (rv !== void 0) return rv\n }\n }\n }\n function bruteForceBlueFlip(d, ax, vv, rs, re, rb, ri, bs, be, bb, bi) {\n var es = 2 * d\n for (var j = bs, bp = es * bs; j < be; ++j, bp += es) {\n var y0 = bb[ax + bp], yi = bi[j]\n Q: for (var i = rs, rp = es * rs; i < re; ++i, rp += es) {\n var x0 = rb[ax + rp], x1 = rb[ax + rp + d], xi = ri[i]\n if (y0 <= x0 || x1 < y0) continue\n for (var k = ax + 1; k < d; ++k) {\n var r0 = rb[k + rp], r1 = rb[k + d + rp], b0 = bb[k + bp], b1 = bb[k + d + bp]\n if (r1 < b0 || b1 < r0) continue Q\n }\n var rv = vv(yi, xi)\n if (rv !== void 0) return rv\n }\n }\n }\n function bruteForceBlue(d, ax, vv, rs, re, rb, ri, bs, be, bb, bi) {\n var es = 2 * d\n for (var j = bs, bp = es * bs; j < be; ++j, bp += es) {\n var y0 = bb[ax + bp], yi = bi[j]\n Q: for (var i = rs, rp = es * rs; i < re; ++i, rp += es) {\n var x0 = rb[ax + rp], x1 = rb[ax + rp + d], xi = ri[i]\n if (y0 < x0 || x1 < y0) continue\n for (var k = ax + 1; k < d; ++k) {\n var r0 = rb[k + rp], r1 = rb[k + d + rp], b0 = bb[k + bp], b1 = bb[k + d + bp]\n if (r1 < b0 || b1 < r0) continue Q\n }\n var rv = vv(xi, yi)\n if (rv !== void 0) return rv\n }\n }\n }\n function bruteForcePartial(d, ax, vv, fp, rs, re, rb, ri, bs, be, bb, bi) {\n if (re - rs > be - bs) {\n if (fp) {\n return bruteForceRedFlip(d, ax, vv, rs, re, rb, ri, bs, be, bb, bi)\n }\n else {\n return bruteForceRed(d, ax, vv, rs, re, rb, ri, bs, be, bb, bi)\n }\n }\n else {\n if (fp) {\n return bruteForceBlueFlip(d, ax, vv, rs, re, rb, ri, bs, be, bb, bi)\n }\n else {\n return bruteForceBlue(d, ax, vv, rs, re, rb, ri, bs, be, bb, bi)\n }\n }\n }\n return bruteForcePartial\n}\n\nfunction bruteForcePlanner(isFull) {\n return isFull ? full() : partial()\n\n}\n\nexports.partial = bruteForcePlanner(false)\nexports.full = bruteForcePlanner(true)\n},{}],37:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = boxIntersectIter\n\nvar pool = _glvis_('typedarray-pool')\nvar bits = _glvis_('bit-twiddle')\nvar bruteForce = _glvis_('./brute')\nvar bruteForcePartial = bruteForce.partial\nvar bruteForceFull = bruteForce.full\nvar sweep = _glvis_('./sweep')\nvar findMedian = _glvis_('./median')\nvar genPartition = _glvis_('./partition')\n\n//Twiddle parameters\nvar BRUTE_FORCE_CUTOFF = 128 //Cut off for brute force search\nvar SCAN_CUTOFF = (1<<22) //Cut off for two way scan\nvar SCAN_COMPLETE_CUTOFF = (1<<22)\n\n//Partition functions\nvar partitionInteriorContainsInterval = genPartition(\n '!(lo>=p0)&&!(p1>=hi)')\n\nvar partitionStartEqual = genPartition(\n 'lo===p0')\n\nvar partitionStartLessThan = genPartition(\n 'lo 0) {\n top -= 1\n\n var iptr = top * IFRAME_SIZE\n var axis = BOX_ISTACK[iptr]\n var redStart = BOX_ISTACK[iptr+1]\n var redEnd = BOX_ISTACK[iptr+2]\n var blueStart = BOX_ISTACK[iptr+3]\n var blueEnd = BOX_ISTACK[iptr+4]\n var state = BOX_ISTACK[iptr+5]\n\n var dptr = top * DFRAME_SIZE\n var lo = BOX_DSTACK[dptr]\n var hi = BOX_DSTACK[dptr+1]\n\n //Unpack state info\n var flip = (state & 1)\n var full = !!(state & 16)\n\n //Unpack indices\n var red = xBoxes\n var redIndex = xIndex\n var blue = yBoxes\n var blueIndex = yIndex\n if(flip) {\n red = yBoxes\n redIndex = yIndex\n blue = xBoxes\n blueIndex = xIndex\n }\n\n if(state & 2) {\n redEnd = partitionStartLessThan(\n d, axis,\n redStart, redEnd, red, redIndex,\n hi)\n if(redStart >= redEnd) {\n continue\n }\n }\n if(state & 4) {\n redStart = partitionEndLessThanEqual(\n d, axis,\n redStart, redEnd, red, redIndex,\n lo)\n if(redStart >= redEnd) {\n continue\n }\n }\n\n var redCount = redEnd - redStart\n var blueCount = blueEnd - blueStart\n\n if(full) {\n if(d * redCount * (redCount + blueCount) < SCAN_COMPLETE_CUTOFF) {\n retval = sweep.scanComplete(\n d, axis, visit,\n redStart, redEnd, red, redIndex,\n blueStart, blueEnd, blue, blueIndex)\n if(retval !== void 0) {\n return retval\n }\n continue\n }\n } else {\n if(d * Math.min(redCount, blueCount) < BRUTE_FORCE_CUTOFF) {\n //If input small, then use brute force\n retval = bruteForcePartial(\n d, axis, visit, flip,\n redStart, redEnd, red, redIndex,\n blueStart, blueEnd, blue, blueIndex)\n if(retval !== void 0) {\n return retval\n }\n continue\n } else if(d * redCount * blueCount < SCAN_CUTOFF) {\n //If input medium sized, then use sweep and prune\n retval = sweep.scanBipartite(\n d, axis, visit, flip,\n redStart, redEnd, red, redIndex,\n blueStart, blueEnd, blue, blueIndex)\n if(retval !== void 0) {\n return retval\n }\n continue\n }\n }\n\n //First, find all red intervals whose interior contains (lo,hi)\n var red0 = partitionInteriorContainsInterval(\n d, axis,\n redStart, redEnd, red, redIndex,\n lo, hi)\n\n //Lower dimensional case\n if(redStart < red0) {\n\n if(d * (red0 - redStart) < BRUTE_FORCE_CUTOFF) {\n //Special case for small inputs: use brute force\n retval = bruteForceFull(\n d, axis+1, visit,\n redStart, red0, red, redIndex,\n blueStart, blueEnd, blue, blueIndex)\n if(retval !== void 0) {\n return retval\n }\n } else if(axis === d-2) {\n if(flip) {\n retval = sweep.sweepBipartite(\n d, visit,\n blueStart, blueEnd, blue, blueIndex,\n redStart, red0, red, redIndex)\n } else {\n retval = sweep.sweepBipartite(\n d, visit,\n redStart, red0, red, redIndex,\n blueStart, blueEnd, blue, blueIndex)\n }\n if(retval !== void 0) {\n return retval\n }\n } else {\n iterPush(top++,\n axis+1,\n redStart, red0,\n blueStart, blueEnd,\n flip,\n -Infinity, Infinity)\n iterPush(top++,\n axis+1,\n blueStart, blueEnd,\n redStart, red0,\n flip^1,\n -Infinity, Infinity)\n }\n }\n\n //Divide and conquer phase\n if(red0 < redEnd) {\n\n //Cut blue into 3 parts:\n //\n // Points < mid point\n // Points = mid point\n // Points > mid point\n //\n var blue0 = findMedian(\n d, axis,\n blueStart, blueEnd, blue, blueIndex)\n var mid = blue[elemSize * blue0 + axis]\n var blue1 = partitionStartEqual(\n d, axis,\n blue0, blueEnd, blue, blueIndex,\n mid)\n\n //Right case\n if(blue1 < blueEnd) {\n iterPush(top++,\n axis,\n red0, redEnd,\n blue1, blueEnd,\n (flip|4) + (full ? 16 : 0),\n mid, hi)\n }\n\n //Left case\n if(blueStart < blue0) {\n iterPush(top++,\n axis,\n red0, redEnd,\n blueStart, blue0,\n (flip|2) + (full ? 16 : 0),\n lo, mid)\n }\n\n //Center case (the hard part)\n if(blue0 + 1 === blue1) {\n //Optimization: Range with exactly 1 point, use a brute force scan\n if(full) {\n retval = onePointFull(\n d, axis, visit,\n red0, redEnd, red, redIndex,\n blue0, blue, blueIndex[blue0])\n } else {\n retval = onePointPartial(\n d, axis, visit, flip,\n red0, redEnd, red, redIndex,\n blue0, blue, blueIndex[blue0])\n }\n if(retval !== void 0) {\n return retval\n }\n } else if(blue0 < blue1) {\n var red1\n if(full) {\n //If full intersection, need to handle special case\n red1 = partitionContainsPoint(\n d, axis,\n red0, redEnd, red, redIndex,\n mid)\n if(red0 < red1) {\n var redX = partitionStartEqual(\n d, axis,\n red0, red1, red, redIndex,\n mid)\n if(axis === d-2) {\n //Degenerate sweep intersection:\n // [red0, redX] with [blue0, blue1]\n if(red0 < redX) {\n retval = sweep.sweepComplete(\n d, visit,\n red0, redX, red, redIndex,\n blue0, blue1, blue, blueIndex)\n if(retval !== void 0) {\n return retval\n }\n }\n\n //Normal sweep intersection:\n // [redX, red1] with [blue0, blue1]\n if(redX < red1) {\n retval = sweep.sweepBipartite(\n d, visit,\n redX, red1, red, redIndex,\n blue0, blue1, blue, blueIndex)\n if(retval !== void 0) {\n return retval\n }\n }\n } else {\n if(red0 < redX) {\n iterPush(top++,\n axis+1,\n red0, redX,\n blue0, blue1,\n 16,\n -Infinity, Infinity)\n }\n if(redX < red1) {\n iterPush(top++,\n axis+1,\n redX, red1,\n blue0, blue1,\n 0,\n -Infinity, Infinity)\n iterPush(top++,\n axis+1,\n blue0, blue1,\n redX, red1,\n 1,\n -Infinity, Infinity)\n }\n }\n }\n } else {\n if(flip) {\n red1 = partitionContainsPointProper(\n d, axis,\n red0, redEnd, red, redIndex,\n mid)\n } else {\n red1 = partitionContainsPoint(\n d, axis,\n red0, redEnd, red, redIndex,\n mid)\n }\n if(red0 < red1) {\n if(axis === d-2) {\n if(flip) {\n retval = sweep.sweepBipartite(\n d, visit,\n blue0, blue1, blue, blueIndex,\n red0, red1, red, redIndex)\n } else {\n retval = sweep.sweepBipartite(\n d, visit,\n red0, red1, red, redIndex,\n blue0, blue1, blue, blueIndex)\n }\n } else {\n iterPush(top++,\n axis+1,\n red0, red1,\n blue0, blue1,\n flip,\n -Infinity, Infinity)\n iterPush(top++,\n axis+1,\n blue0, blue1,\n red0, red1,\n flip^1,\n -Infinity, Infinity)\n }\n }\n }\n }\n }\n }\n}\n},{\"./brute\":36,\"./median\":38,\"./partition\":39,\"./sweep\":41,\"bit-twiddle\":32,\"typedarray-pool\":308}],38:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = findMedian\n\nvar genPartition = _glvis_('./partition')\n\nvar partitionStartLessThan = genPartition('lostart && boxes[ptr+axis] > x;\n --j, ptr-=elemSize) {\n //Swap\n var aPtr = ptr\n var bPtr = ptr+elemSize\n for(var k=0; k>> 1)\n var elemSize = 2*d\n var pivot = mid\n var value = boxes[elemSize*mid+axis]\n\n while(lo < hi) {\n if(hi - lo < PARTITION_THRESHOLD) {\n insertionSort(d, axis, lo, hi, boxes, ids)\n value = boxes[elemSize*mid+axis]\n break\n }\n\n //Select pivot using median-of-3\n var count = hi - lo\n var pivot0 = (Math.random()*count+lo)|0\n var value0 = boxes[elemSize*pivot0 + axis]\n var pivot1 = (Math.random()*count+lo)|0\n var value1 = boxes[elemSize*pivot1 + axis]\n var pivot2 = (Math.random()*count+lo)|0\n var value2 = boxes[elemSize*pivot2 + axis]\n if(value0 <= value1) {\n if(value2 >= value1) {\n pivot = pivot1\n value = value1\n } else if(value0 >= value2) {\n pivot = pivot0\n value = value0\n } else {\n pivot = pivot2\n value = value2\n }\n } else {\n if(value1 >= value2) {\n pivot = pivot1\n value = value1\n } else if(value2 >= value0) {\n pivot = pivot0\n value = value0\n } else {\n pivot = pivot2\n value = value2\n }\n }\n\n //Swap pivot to end of array\n var aPtr = elemSize * (hi-1)\n var bPtr = elemSize * pivot\n for(var i=0; i=p0)&&!(p1>=hi)': lo_lessThan_p0_and_p1_lessThan_hi\n}\n\nfunction genPartition(predicate) {\n return P2F[predicate]\n}\n\n// lo===p0\nfunction lo_equal_p0(a, b, c, d, e, f, p0) {\n for (var j = 2 * a, k = j * c, l = k, m = c, n = b, o = a + b, p = c; d > p; ++p, k += j) {\n var lo = e[k + n];\n if (lo === p0) if (m === p) m += 1, l += j; else {\n for (var s = 0; j > s; ++s) {\n var t = e[k + s]; e[k + s] = e[l], e[l++] = t\n } var u = f[p]; f[p] = f[m], f[m++] = u\n }\n }\n return m\n}\n\n// lo p; ++p, k += j) {\n var lo = e[k + n];\n if (lo < p0) if (m === p) m += 1, l += j; else {\n for (var s = 0; j > s; ++s) {\n var t = e[k + s]; e[k + s] = e[l], e[l++] = t\n } var u = f[p]; f[p] = f[m], f[m++] = u\n }\n }\n return m\n}\n\n// lo<=p0\nfunction lo_lessOrEqual_p0(a, b, c, d, e, f, p0) {\n for (var j = 2 * a, k = j * c, l = k, m = c, n = b, o = a + b, p = c; d > p; ++p, k += j) {\n var hi = e[k + o];\n if (hi <= p0) if (m === p) m += 1, l += j; else {\n for (var s = 0; j > s; ++s) {\n var t = e[k + s]; e[k + s] = e[l], e[l++] = t\n }\n var u = f[p]; f[p] = f[m], f[m++] = u\n }\n } return m\n}\n\n// hi<=p0\nfunction hi_lessOrEqual_p0(a, b, c, d, e, f, p0) {\n for (var j = 2 * a, k = j * c, l = k, m = c, n = b, o = a + b, p = c; d > p; ++p, k += j) {\n var hi = e[k + o];\n if (hi <= p0) if (m === p) m += 1, l += j; else {\n for (var s = 0; j > s; ++s) {\n var t = e[k + s]; e[k + s] = e[l], e[l++] = t\n }\n var u = f[p]; f[p] = f[m], f[m++] = u\n }\n }\n return m\n}\n\n// lo<=p0&&p0<=hi\nfunction lo_lassOrEqual_p0_and_p0_lessOrEqual_hi(a, b, c, d, e, f, p0) {\n for (var j = 2 * a, k = j * c, l = k, m = c, n = b, o = a + b, p = c; d > p; ++p, k += j) {\n var lo = e[k + n], hi = e[k + o];\n if (lo <= p0 && p0 <= hi) if (m === p) m += 1, l += j; else {\n for (var s = 0; j > s; ++s) {\n var t = e[k + s]; e[k + s] = e[l], e[l++] = t\n }\n var u = f[p]; f[p] = f[m], f[m++] = u\n }\n }\n return m\n}\n\n// lo p; ++p, k += j) {\n var lo = e[k + n], hi = e[k + o];\n if (lo < p0 && p0 <= hi) if (m === p) m += 1, l += j; else {\n for (var s = 0; j > s; ++s) {\n var t = e[k + s]; e[k + s] = e[l], e[l++] = t\n }\n var u = f[p]; f[p] = f[m], f[m++] = u\n }\n }\n return m\n}\n\n// !(lo>=p0)&&!(p1>=hi)\nfunction lo_lessThan_p0_and_p1_lessThan_hi(a, b, c, d, e, f, p0, p1) {\n for (var j = 2 * a, k = j * c, l = k, m = c, n = b, o = a + b, p = c; d > p; ++p, k += j) {\n var lo = e[k + n], hi = e[k + o];\n if (!(lo >= p0) && !(p1 >= hi)) if (m === p) m += 1, l += j; else {\n for (var s = 0; j > s; ++s) {\n var t = e[k + s]; e[k + s] = e[l], e[l++] = t\n }\n var u = f[p]; f[p] = f[m], f[m++] = u\n }\n }\n return m\n}\n\n},{}],40:[function(_glvis_,module,exports){\n'use strict';\n\n//This code is extracted from ndarray-sort\n//It is inlined here as a temporary workaround\n\nmodule.exports = wrapper;\n\nvar INSERT_SORT_CUTOFF = 32\n\nfunction wrapper(data, n0) {\n if (n0 <= 4*INSERT_SORT_CUTOFF) {\n insertionSort(0, n0 - 1, data);\n } else {\n quickSort(0, n0 - 1, data);\n }\n}\n\nfunction insertionSort(left, right, data) {\n var ptr = 2*(left+1)\n for(var i=left+1; i<=right; ++i) {\n var a = data[ptr++]\n var b = data[ptr++]\n var j = i\n var jptr = ptr-2\n while(j-- > left) {\n var x = data[jptr-2]\n var y = data[jptr-1]\n if(x < a) {\n break\n } else if(x === a && y < b) {\n break\n }\n data[jptr] = x\n data[jptr+1] = y\n jptr -= 2\n }\n data[jptr] = a\n data[jptr+1] = b\n }\n}\n\nfunction swap(i, j, data) {\n i *= 2\n j *= 2\n var x = data[i]\n var y = data[i+1]\n data[i] = data[j]\n data[i+1] = data[j+1]\n data[j] = x\n data[j+1] = y\n}\n\nfunction move(i, j, data) {\n i *= 2\n j *= 2\n data[i] = data[j]\n data[i+1] = data[j+1]\n}\n\nfunction rotate(i, j, k, data) {\n i *= 2\n j *= 2\n k *= 2\n var x = data[i]\n var y = data[i+1]\n data[i] = data[j]\n data[i+1] = data[j+1]\n data[j] = data[k]\n data[j+1] = data[k+1]\n data[k] = x\n data[k+1] = y\n}\n\nfunction shufflePivot(i, j, px, py, data) {\n i *= 2\n j *= 2\n data[i] = data[j]\n data[j] = px\n data[i+1] = data[j+1]\n data[j+1] = py\n}\n\nfunction compare(i, j, data) {\n i *= 2\n j *= 2\n var x = data[i],\n y = data[j]\n if(x < y) {\n return false\n } else if(x === y) {\n return data[i+1] > data[j+1]\n }\n return true\n}\n\nfunction comparePivot(i, y, b, data) {\n i *= 2\n var x = data[i]\n if(x < y) {\n return true\n } else if(x === y) {\n return data[i+1] < b\n }\n return false\n}\n\nfunction quickSort(left, right, data) {\n var sixth = (right - left + 1) / 6 | 0, \n index1 = left + sixth, \n index5 = right - sixth, \n index3 = left + right >> 1, \n index2 = index3 - sixth, \n index4 = index3 + sixth, \n el1 = index1, \n el2 = index2, \n el3 = index3, \n el4 = index4, \n el5 = index5, \n less = left + 1, \n great = right - 1, \n tmp = 0\n if(compare(el1, el2, data)) {\n tmp = el1\n el1 = el2\n el2 = tmp\n }\n if(compare(el4, el5, data)) {\n tmp = el4\n el4 = el5\n el5 = tmp\n }\n if(compare(el1, el3, data)) {\n tmp = el1\n el1 = el3\n el3 = tmp\n }\n if(compare(el2, el3, data)) {\n tmp = el2\n el2 = el3\n el3 = tmp\n }\n if(compare(el1, el4, data)) {\n tmp = el1\n el1 = el4\n el4 = tmp\n }\n if(compare(el3, el4, data)) {\n tmp = el3\n el3 = el4\n el4 = tmp\n }\n if(compare(el2, el5, data)) {\n tmp = el2\n el2 = el5\n el5 = tmp\n }\n if(compare(el2, el3, data)) {\n tmp = el2\n el2 = el3\n el3 = tmp\n }\n if(compare(el4, el5, data)) {\n tmp = el4\n el4 = el5\n el5 = tmp\n }\n\n var pivot1X = data[2*el2]\n var pivot1Y = data[2*el2+1]\n var pivot2X = data[2*el4]\n var pivot2Y = data[2*el4+1]\n\n var ptr0 = 2 * el1;\n var ptr2 = 2 * el3;\n var ptr4 = 2 * el5;\n var ptr5 = 2 * index1;\n var ptr6 = 2 * index3;\n var ptr7 = 2 * index5;\n for (var i1 = 0; i1 < 2; ++i1) {\n var x = data[ptr0+i1];\n var y = data[ptr2+i1];\n var z = data[ptr4+i1];\n data[ptr5+i1] = x;\n data[ptr6+i1] = y;\n data[ptr7+i1] = z;\n }\n\n move(index2, left, data)\n move(index4, right, data)\n for (var k = less; k <= great; ++k) {\n if (comparePivot(k, pivot1X, pivot1Y, data)) {\n if (k !== less) {\n swap(k, less, data)\n }\n ++less;\n } else {\n if (!comparePivot(k, pivot2X, pivot2Y, data)) {\n while (true) {\n if (!comparePivot(great, pivot2X, pivot2Y, data)) {\n if (--great < k) {\n break;\n }\n continue;\n } else {\n if (comparePivot(great, pivot1X, pivot1Y, data)) {\n rotate(k, less, great, data)\n ++less;\n --great;\n } else {\n swap(k, great, data)\n --great;\n }\n break;\n }\n }\n }\n }\n }\n shufflePivot(left, less-1, pivot1X, pivot1Y, data)\n shufflePivot(right, great+1, pivot2X, pivot2Y, data)\n if (less - 2 - left <= INSERT_SORT_CUTOFF) {\n insertionSort(left, less - 2, data);\n } else {\n quickSort(left, less - 2, data);\n }\n if (right - (great + 2) <= INSERT_SORT_CUTOFF) {\n insertionSort(great + 2, right, data);\n } else {\n quickSort(great + 2, right, data);\n }\n if (great - less <= INSERT_SORT_CUTOFF) {\n insertionSort(less, great, data);\n } else {\n quickSort(less, great, data);\n }\n}\n},{}],41:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = {\n init: sqInit,\n sweepBipartite: sweepBipartite,\n sweepComplete: sweepComplete,\n scanBipartite: scanBipartite,\n scanComplete: scanComplete\n}\n\nvar pool = _glvis_('typedarray-pool')\nvar bits = _glvis_('bit-twiddle')\nvar isort = _glvis_('./sort')\n\n//Flag for blue\nvar BLUE_FLAG = (1<<28)\n\n//1D sweep event queue stuff (use pool to save space)\nvar INIT_CAPACITY = 1024\nvar RED_SWEEP_QUEUE = pool.mallocInt32(INIT_CAPACITY)\nvar RED_SWEEP_INDEX = pool.mallocInt32(INIT_CAPACITY)\nvar BLUE_SWEEP_QUEUE = pool.mallocInt32(INIT_CAPACITY)\nvar BLUE_SWEEP_INDEX = pool.mallocInt32(INIT_CAPACITY)\nvar COMMON_SWEEP_QUEUE = pool.mallocInt32(INIT_CAPACITY)\nvar COMMON_SWEEP_INDEX = pool.mallocInt32(INIT_CAPACITY)\nvar SWEEP_EVENTS = pool.mallocDouble(INIT_CAPACITY * 8)\n\n//Reserves memory for the 1D sweep data structures\nfunction sqInit(count) {\n var rcount = bits.nextPow2(count)\n if(RED_SWEEP_QUEUE.length < rcount) {\n pool.free(RED_SWEEP_QUEUE)\n RED_SWEEP_QUEUE = pool.mallocInt32(rcount)\n }\n if(RED_SWEEP_INDEX.length < rcount) {\n pool.free(RED_SWEEP_INDEX)\n RED_SWEEP_INDEX = pool.mallocInt32(rcount)\n }\n if(BLUE_SWEEP_QUEUE.length < rcount) {\n pool.free(BLUE_SWEEP_QUEUE)\n BLUE_SWEEP_QUEUE = pool.mallocInt32(rcount)\n }\n if(BLUE_SWEEP_INDEX.length < rcount) {\n pool.free(BLUE_SWEEP_INDEX)\n BLUE_SWEEP_INDEX = pool.mallocInt32(rcount)\n }\n if(COMMON_SWEEP_QUEUE.length < rcount) {\n pool.free(COMMON_SWEEP_QUEUE)\n COMMON_SWEEP_QUEUE = pool.mallocInt32(rcount)\n }\n if(COMMON_SWEEP_INDEX.length < rcount) {\n pool.free(COMMON_SWEEP_INDEX)\n COMMON_SWEEP_INDEX = pool.mallocInt32(rcount)\n }\n var eventLength = 8 * rcount\n if(SWEEP_EVENTS.length < eventLength) {\n pool.free(SWEEP_EVENTS)\n SWEEP_EVENTS = pool.mallocDouble(eventLength)\n }\n}\n\n//Remove an item from the active queue in O(1)\nfunction sqPop(queue, index, count, item) {\n var idx = index[item]\n var top = queue[count-1]\n queue[idx] = top\n index[top] = idx\n}\n\n//Insert an item into the active queue in O(1)\nfunction sqPush(queue, index, count, item) {\n queue[count] = item\n index[item] = count\n}\n\n//Recursion base case: use 1D sweep algorithm\nfunction sweepBipartite(\n d, visit,\n redStart, redEnd, red, redIndex,\n blueStart, blueEnd, blue, blueIndex) {\n\n //store events as pairs [coordinate, idx]\n //\n // red create: -(idx+1)\n // red destroy: idx\n // blue create: -(idx+BLUE_FLAG)\n // blue destroy: idx+BLUE_FLAG\n //\n var ptr = 0\n var elemSize = 2*d\n var istart = d-1\n var iend = elemSize-1\n\n for(var i=redStart; iright\n var n = ptr >>> 1\n isort(SWEEP_EVENTS, n)\n \n var redActive = 0\n var blueActive = 0\n for(var i=0; i= BLUE_FLAG) {\n //blue destroy event\n e = (e-BLUE_FLAG)|0\n sqPop(BLUE_SWEEP_QUEUE, BLUE_SWEEP_INDEX, blueActive--, e)\n } else if(e >= 0) {\n //red destroy event\n sqPop(RED_SWEEP_QUEUE, RED_SWEEP_INDEX, redActive--, e)\n } else if(e <= -BLUE_FLAG) {\n //blue create event\n e = (-e-BLUE_FLAG)|0\n for(var j=0; jright\n var n = ptr >>> 1\n isort(SWEEP_EVENTS, n)\n \n var redActive = 0\n var blueActive = 0\n var commonActive = 0\n for(var i=0; i>1) === (SWEEP_EVENTS[2*i+3]>>1)) {\n color = 2\n i += 1\n }\n \n if(e < 0) {\n //Create event\n var id = -(e>>1) - 1\n\n //Intersect with common\n for(var j=0; j>1) - 1\n if(color === 0) {\n //Red\n sqPop(RED_SWEEP_QUEUE, RED_SWEEP_INDEX, redActive--, id)\n } else if(color === 1) {\n //Blue\n sqPop(BLUE_SWEEP_QUEUE, BLUE_SWEEP_INDEX, blueActive--, id)\n } else if(color === 2) {\n //Both\n sqPop(COMMON_SWEEP_QUEUE, COMMON_SWEEP_INDEX, commonActive--, id)\n }\n }\n }\n}\n\n//Sweep and prune/scanline algorithm:\n// Scan along axis, detect intersections\n// Brute force all boxes along axis\nfunction scanBipartite(\n d, axis, visit, flip,\n redStart, redEnd, red, redIndex,\n blueStart, blueEnd, blue, blueIndex) {\n \n var ptr = 0\n var elemSize = 2*d\n var istart = axis\n var iend = axis+d\n\n var redShift = 1\n var blueShift = 1\n if(flip) {\n blueShift = BLUE_FLAG\n } else {\n redShift = BLUE_FLAG\n }\n\n for(var i=redStart; iright\n var n = ptr >>> 1\n isort(SWEEP_EVENTS, n)\n \n var redActive = 0\n for(var i=0; i= BLUE_FLAG) {\n isRed = !flip\n idx -= BLUE_FLAG \n } else {\n isRed = !!flip\n idx -= 1\n }\n if(isRed) {\n sqPush(RED_SWEEP_QUEUE, RED_SWEEP_INDEX, redActive++, idx)\n } else {\n var blueId = blueIndex[idx]\n var bluePtr = elemSize * idx\n \n var b0 = blue[bluePtr+axis+1]\n var b1 = blue[bluePtr+axis+1+d]\n\nred_loop:\n for(var j=0; jright\n var n = ptr >>> 1\n isort(SWEEP_EVENTS, n)\n \n var redActive = 0\n for(var i=0; i= BLUE_FLAG) {\n RED_SWEEP_QUEUE[redActive++] = idx - BLUE_FLAG\n } else {\n idx -= 1\n var blueId = blueIndex[idx]\n var bluePtr = elemSize * idx\n\n var b0 = blue[bluePtr+axis+1]\n var b1 = blue[bluePtr+axis+1+d]\n\nred_loop:\n for(var j=0; j=0; --j) {\n if(RED_SWEEP_QUEUE[j] === idx) {\n for(var k=j+1; k 0) {\n var b = stack.pop()\n var a = stack.pop()\n\n //Find opposite pairs\n var x = -1, y = -1\n var star = stars[a]\n for(var i=1; i= 0) {\n continue\n }\n\n //Flip the edge\n triangulation.flip(a, b)\n\n //Test flipping neighboring edges\n testFlip(points, triangulation, stack, x, a, y)\n testFlip(points, triangulation, stack, a, y, x)\n testFlip(points, triangulation, stack, y, b, x)\n testFlip(points, triangulation, stack, b, x, y)\n }\n}\n\n},{\"binary-search-bounds\":31,\"robust-in-sphere\":282}],44:[function(_glvis_,module,exports){\n'use strict'\n\nvar bsearch = _glvis_('binary-search-bounds')\n\nmodule.exports = classifyFaces\n\nfunction FaceIndex(cells, neighbor, constraint, flags, active, next, boundary) {\n this.cells = cells\n this.neighbor = neighbor\n this.flags = flags\n this.constraint = constraint\n this.active = active\n this.next = next\n this.boundary = boundary\n}\n\nvar proto = FaceIndex.prototype\n\nfunction compareCell(a, b) {\n return a[0] - b[0] ||\n a[1] - b[1] ||\n a[2] - b[2]\n}\n\nproto.locate = (function() {\n var key = [0,0,0]\n return function(a, b, c) {\n var x = a, y = b, z = c\n if(b < c) {\n if(b < a) {\n x = b\n y = c\n z = a\n }\n } else if(c < a) {\n x = c\n y = a\n z = b\n }\n if(x < 0) {\n return -1\n }\n key[0] = x\n key[1] = y\n key[2] = z\n return bsearch.eq(this.cells, key, compareCell)\n }\n})()\n\nfunction indexCells(triangulation, infinity) {\n //First get cells and canonicalize\n var cells = triangulation.cells()\n var nc = cells.length\n for(var i=0; i 0 || next.length > 0) {\n while(active.length > 0) {\n var t = active.pop()\n if(flags[t] === -side) {\n continue\n }\n flags[t] = side\n var c = cells[t]\n for(var j=0; j<3; ++j) {\n var f = neighbor[3*t+j]\n if(f >= 0 && flags[f] === 0) {\n if(constraint[3*t+j]) {\n next.push(f)\n } else {\n active.push(f)\n flags[f] = side\n }\n }\n }\n }\n\n //Swap arrays and loop\n var tmp = next\n next = active\n active = tmp\n next.length = 0\n side = -side\n }\n\n var result = filterCells(cells, flags, target)\n if(infinity) {\n return result.concat(index.boundary)\n }\n return result\n}\n\n},{\"binary-search-bounds\":31}],45:[function(_glvis_,module,exports){\n'use strict'\n\nvar bsearch = _glvis_('binary-search-bounds')\nvar orient = _glvis_('robust-orientation')[3]\n\nvar EVENT_POINT = 0\nvar EVENT_END = 1\nvar EVENT_START = 2\n\nmodule.exports = monotoneTriangulate\n\n//A partial convex hull fragment, made of two unimonotone polygons\nfunction PartialHull(a, b, idx, lowerIds, upperIds) {\n this.a = a\n this.b = b\n this.idx = idx\n this.lowerIds = lowerIds\n this.upperIds = upperIds\n}\n\n//An event in the sweep line procedure\nfunction Event(a, b, type, idx) {\n this.a = a\n this.b = b\n this.type = type\n this.idx = idx\n}\n\n//This is used to compare events for the sweep line procedure\n// Points are:\n// 1. sorted lexicographically\n// 2. sorted by type (point < end < start)\n// 3. segments sorted by winding order\n// 4. sorted by index\nfunction compareEvent(a, b) {\n var d =\n (a.a[0] - b.a[0]) ||\n (a.a[1] - b.a[1]) ||\n (a.type - b.type)\n if(d) { return d }\n if(a.type !== EVENT_POINT) {\n d = orient(a.a, a.b, b.b)\n if(d) { return d }\n }\n return a.idx - b.idx\n}\n\nfunction testPoint(hull, p) {\n return orient(hull.a, hull.b, p)\n}\n\nfunction addPoint(cells, hulls, points, p, idx) {\n var lo = bsearch.lt(hulls, p, testPoint)\n var hi = bsearch.gt(hulls, p, testPoint)\n for(var i=lo; i 1 && orient(\n points[lowerIds[m-2]],\n points[lowerIds[m-1]],\n p) > 0) {\n cells.push(\n [lowerIds[m-1],\n lowerIds[m-2],\n idx])\n m -= 1\n }\n lowerIds.length = m\n lowerIds.push(idx)\n\n //Insert p into upper hull\n var upperIds = hull.upperIds\n var m = upperIds.length\n while(m > 1 && orient(\n points[upperIds[m-2]],\n points[upperIds[m-1]],\n p) < 0) {\n cells.push(\n [upperIds[m-2],\n upperIds[m-1],\n idx])\n m -= 1\n }\n upperIds.length = m\n upperIds.push(idx)\n }\n}\n\nfunction findSplit(hull, edge) {\n var d\n if(hull.a[0] < edge.a[0]) {\n d = orient(hull.a, hull.b, edge.a)\n } else {\n d = orient(edge.b, edge.a, hull.a)\n }\n if(d) { return d }\n if(edge.b[0] < hull.b[0]) {\n d = orient(hull.a, hull.b, edge.b)\n } else {\n d = orient(edge.b, edge.a, hull.b)\n }\n return d || hull.idx - edge.idx\n}\n\nfunction splitHulls(hulls, points, event) {\n var splitIdx = bsearch.le(hulls, event, findSplit)\n var hull = hulls[splitIdx]\n var upperIds = hull.upperIds\n var x = upperIds[upperIds.length-1]\n hull.upperIds = [x]\n hulls.splice(splitIdx+1, 0,\n new PartialHull(event.a, event.b, event.idx, [x], upperIds))\n}\n\n\nfunction mergeHulls(hulls, points, event) {\n //Swap pointers for merge search\n var tmp = event.a\n event.a = event.b\n event.b = tmp\n var mergeIdx = bsearch.eq(hulls, event, findSplit)\n var upper = hulls[mergeIdx]\n var lower = hulls[mergeIdx-1]\n lower.upperIds = upper.upperIds\n hulls.splice(mergeIdx, 1)\n}\n\n\nfunction monotoneTriangulate(points, edges) {\n\n var numPoints = points.length\n var numEdges = edges.length\n\n var events = []\n\n //Create point events\n for(var i=0; i b[0]) {\n events.push(\n new Event(b, a, EVENT_START, i),\n new Event(a, b, EVENT_END, i))\n }\n }\n\n //Sort events\n events.sort(compareEvent)\n\n //Initialize hull\n var minX = events[0].a[0] - (1 + Math.abs(events[0].a[0])) * Math.pow(2, -52)\n var hull = [ new PartialHull([minX, 1], [minX, 0], -1, [], [], [], []) ]\n\n //Process events in order\n var cells = []\n for(var i=0, numEvents=events.length; i= 0\n }\n})()\n\nproto.removeTriangle = function(i, j, k) {\n var stars = this.stars\n removePair(stars[i], j, k)\n removePair(stars[j], k, i)\n removePair(stars[k], i, j)\n}\n\nproto.addTriangle = function(i, j, k) {\n var stars = this.stars\n stars[i].push(j, k)\n stars[j].push(k, i)\n stars[k].push(i, j)\n}\n\nproto.opposite = function(j, i) {\n var list = this.stars[i]\n for(var k=1, n=list.length; k= 0; --i) {\n var junction = junctions[i]\n e = junction[0]\n\n var edge = edges[e]\n var s = edge[0]\n var t = edge[1]\n\n // Check if edge is not lexicographically sorted\n var a = floatPoints[s]\n var b = floatPoints[t]\n if (((a[0] - b[0]) || (a[1] - b[1])) < 0) {\n var tmp = s\n s = t\n t = tmp\n }\n\n // Split leading edge\n edge[0] = s\n var last = edge[1] = junction[1]\n\n // If we are grouping edges by color, remember to track data\n var color\n if (useColor) {\n color = edge[2]\n }\n\n // Split other edges\n while (i > 0 && junctions[i - 1][0] === e) {\n var junction = junctions[--i]\n var next = junction[1]\n if (useColor) {\n edges.push([last, next, color])\n } else {\n edges.push([last, next])\n }\n last = next\n }\n\n // Add final edge\n if (useColor) {\n edges.push([last, t, color])\n } else {\n edges.push([last, t])\n }\n }\n\n // Return constructed rational points\n return ratPoints\n}\n\n// Merge overlapping points\nfunction dedupPoints (floatPoints, ratPoints, floatBounds) {\n var numPoints = ratPoints.length\n var uf = new UnionFind(numPoints)\n\n // Compute rational bounds\n var bounds = []\n for (var i = 0; i < ratPoints.length; ++i) {\n var p = ratPoints[i]\n var xb = boundRat(p[0])\n var yb = boundRat(p[1])\n bounds.push([\n nextafter(xb[0], -Infinity),\n nextafter(yb[0], -Infinity),\n nextafter(xb[1], Infinity),\n nextafter(yb[1], Infinity)\n ])\n }\n\n // Link all points with over lapping boxes\n boxIntersect(bounds, function (i, j) {\n uf.link(i, j)\n })\n\n // Do 1 pass over points to combine points in label sets\n var noDupes = true\n var labels = new Array(numPoints)\n for (var i = 0; i < numPoints; ++i) {\n var j = uf.find(i)\n if (j !== i) {\n // Clear no-dupes flag, zero out label\n noDupes = false\n // Make each point the top-left point from its cell\n floatPoints[j] = [\n Math.min(floatPoints[i][0], floatPoints[j][0]),\n Math.min(floatPoints[i][1], floatPoints[j][1])\n ]\n }\n }\n\n // If no duplicates, return null to signal termination\n if (noDupes) {\n return null\n }\n\n var ptr = 0\n for (var i = 0; i < numPoints; ++i) {\n var j = uf.find(i)\n if (j === i) {\n labels[i] = ptr\n floatPoints[ptr++] = floatPoints[i]\n } else {\n labels[i] = -1\n }\n }\n\n floatPoints.length = ptr\n\n // Do a second pass to fix up missing labels\n for (var i = 0; i < numPoints; ++i) {\n if (labels[i] < 0) {\n labels[i] = labels[uf.find(i)]\n }\n }\n\n // Return resulting union-find data structure\n return labels\n}\n\nfunction compareLex2 (a, b) { return (a[0] - b[0]) || (a[1] - b[1]) }\nfunction compareLex3 (a, b) {\n var d = (a[0] - b[0]) || (a[1] - b[1])\n if (d) {\n return d\n }\n if (a[2] < b[2]) {\n return -1\n } else if (a[2] > b[2]) {\n return 1\n }\n return 0\n}\n\n// Remove duplicate edge labels\nfunction dedupEdges (edges, labels, useColor) {\n if (edges.length === 0) {\n return\n }\n if (labels) {\n for (var i = 0; i < edges.length; ++i) {\n var e = edges[i]\n var a = labels[e[0]]\n var b = labels[e[1]]\n e[0] = Math.min(a, b)\n e[1] = Math.max(a, b)\n }\n } else {\n for (var i = 0; i < edges.length; ++i) {\n var e = edges[i]\n var a = e[0]\n var b = e[1]\n e[0] = Math.min(a, b)\n e[1] = Math.max(a, b)\n }\n }\n if (useColor) {\n edges.sort(compareLex3)\n } else {\n edges.sort(compareLex2)\n }\n var ptr = 1\n for (var i = 1; i < edges.length; ++i) {\n var prev = edges[i - 1]\n var next = edges[i]\n if (next[0] === prev[0] && next[1] === prev[1] &&\n (!useColor || next[2] === prev[2])) {\n continue\n }\n edges[ptr++] = next\n }\n edges.length = ptr\n}\n\nfunction preRound (points, edges, useColor) {\n var labels = dedupPoints(points, [], boundPoints(points))\n dedupEdges(edges, labels, useColor)\n return !!labels\n}\n\n// Repeat until convergence\nfunction snapRound (points, edges, useColor) {\n // 1. find edge crossings\n var edgeBounds = boundEdges(points, edges)\n var crossings = getCrossings(points, edges, edgeBounds)\n\n // 2. find t-junctions\n var vertBounds = boundPoints(points)\n var tjunctions = getTJunctions(points, edges, edgeBounds, vertBounds)\n\n // 3. cut edges, construct rational points\n var ratPoints = cutEdges(points, edges, crossings, tjunctions, useColor)\n\n // 4. dedupe verts\n var labels = dedupPoints(points, ratPoints, vertBounds)\n\n // 5. dedupe edges\n dedupEdges(edges, labels, useColor)\n\n // 6. check termination\n if (!labels) {\n return (crossings.length > 0 || tjunctions.length > 0)\n }\n\n // More iterations necessary\n return true\n}\n\n// Main loop, runs PSLG clean up until completion\nfunction cleanPSLG (points, edges, colors) {\n // If using colors, augment edges with color data\n var prevEdges\n if (colors) {\n prevEdges = edges\n var augEdges = new Array(edges.length)\n for (var i = 0; i < edges.length; ++i) {\n var e = edges[i]\n augEdges[i] = [e[0], e[1], colors[i]]\n }\n edges = augEdges\n }\n\n // First round: remove duplicate edges and points\n var modified = preRound(points, edges, !!colors)\n\n // Run snap rounding until convergence\n while (snapRound(points, edges, !!colors)) {\n modified = true\n }\n\n // Strip color tags\n if (!!colors && modified) {\n prevEdges.length = 0\n colors.length = 0\n for (var i = 0; i < edges.length; ++i) {\n var e = edges[i]\n prevEdges.push([e[0], e[1]])\n colors.push(e[2])\n }\n }\n\n return modified\n}\n\n},{\"./lib/rat-seg-intersect\":51,\"big-rat\":18,\"big-rat/cmp\":16,\"big-rat/to-float\":30,\"box-intersect\":35,\"nextafter\":260,\"rat-vec\":273,\"robust-segment-intersect\":287,\"union-find\":309}],51:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = solveIntersection\n\nvar ratMul = _glvis_('big-rat/mul')\nvar ratDiv = _glvis_('big-rat/div')\nvar ratSub = _glvis_('big-rat/sub')\nvar ratSign = _glvis_('big-rat/sign')\nvar rvSub = _glvis_('rat-vec/sub')\nvar rvAdd = _glvis_('rat-vec/add')\nvar rvMuls = _glvis_('rat-vec/muls')\n\nfunction ratPerp (a, b) {\n return ratSub(ratMul(a[0], b[1]), ratMul(a[1], b[0]))\n}\n\n// Solve for intersection\n// x = a + t (b-a)\n// (x - c) ^ (d-c) = 0\n// (t * (b-a) + (a-c) ) ^ (d-c) = 0\n// t * (b-a)^(d-c) = (d-c)^(a-c)\n// t = (d-c)^(a-c) / (b-a)^(d-c)\n\nfunction solveIntersection (a, b, c, d) {\n var ba = rvSub(b, a)\n var dc = rvSub(d, c)\n\n var baXdc = ratPerp(ba, dc)\n\n if (ratSign(baXdc) === 0) {\n return null\n }\n\n var ac = rvSub(a, c)\n var dcXac = ratPerp(dc, ac)\n\n var t = ratDiv(dcXac, baXdc)\n var s = rvMuls(ba, t)\n var r = rvAdd(a, s)\n\n return r\n}\n\n},{\"big-rat/div\":17,\"big-rat/mul\":27,\"big-rat/sign\":28,\"big-rat/sub\":29,\"rat-vec/add\":272,\"rat-vec/muls\":274,\"rat-vec/sub\":275}],52:[function(_glvis_,module,exports){\nmodule.exports={\n\t\"jet\":[{\"index\":0,\"rgb\":[0,0,131]},{\"index\":0.125,\"rgb\":[0,60,170]},{\"index\":0.375,\"rgb\":[5,255,255]},{\"index\":0.625,\"rgb\":[255,255,0]},{\"index\":0.875,\"rgb\":[250,0,0]},{\"index\":1,\"rgb\":[128,0,0]}],\n\n\t\"hsv\":[{\"index\":0,\"rgb\":[255,0,0]},{\"index\":0.169,\"rgb\":[253,255,2]},{\"index\":0.173,\"rgb\":[247,255,2]},{\"index\":0.337,\"rgb\":[0,252,4]},{\"index\":0.341,\"rgb\":[0,252,10]},{\"index\":0.506,\"rgb\":[1,249,255]},{\"index\":0.671,\"rgb\":[2,0,253]},{\"index\":0.675,\"rgb\":[8,0,253]},{\"index\":0.839,\"rgb\":[255,0,251]},{\"index\":0.843,\"rgb\":[255,0,245]},{\"index\":1,\"rgb\":[255,0,6]}],\n\n\t\"hot\":[{\"index\":0,\"rgb\":[0,0,0]},{\"index\":0.3,\"rgb\":[230,0,0]},{\"index\":0.6,\"rgb\":[255,210,0]},{\"index\":1,\"rgb\":[255,255,255]}],\n\n\t\"spring\":[{\"index\":0,\"rgb\":[255,0,255]},{\"index\":1,\"rgb\":[255,255,0]}],\n\n\t\"summer\":[{\"index\":0,\"rgb\":[0,128,102]},{\"index\":1,\"rgb\":[255,255,102]}],\n\n\t\"autumn\":[{\"index\":0,\"rgb\":[255,0,0]},{\"index\":1,\"rgb\":[255,255,0]}],\n\n\t\"winter\":[{\"index\":0,\"rgb\":[0,0,255]},{\"index\":1,\"rgb\":[0,255,128]}],\n\n\t\"bone\":[{\"index\":0,\"rgb\":[0,0,0]},{\"index\":0.376,\"rgb\":[84,84,116]},{\"index\":0.753,\"rgb\":[169,200,200]},{\"index\":1,\"rgb\":[255,255,255]}],\n\n\t\"copper\":[{\"index\":0,\"rgb\":[0,0,0]},{\"index\":0.804,\"rgb\":[255,160,102]},{\"index\":1,\"rgb\":[255,199,127]}],\n\n\t\"greys\":[{\"index\":0,\"rgb\":[0,0,0]},{\"index\":1,\"rgb\":[255,255,255]}],\n\n\t\"yignbu\":[{\"index\":0,\"rgb\":[8,29,88]},{\"index\":0.125,\"rgb\":[37,52,148]},{\"index\":0.25,\"rgb\":[34,94,168]},{\"index\":0.375,\"rgb\":[29,145,192]},{\"index\":0.5,\"rgb\":[65,182,196]},{\"index\":0.625,\"rgb\":[127,205,187]},{\"index\":0.75,\"rgb\":[199,233,180]},{\"index\":0.875,\"rgb\":[237,248,217]},{\"index\":1,\"rgb\":[255,255,217]}],\n\n\t\"greens\":[{\"index\":0,\"rgb\":[0,68,27]},{\"index\":0.125,\"rgb\":[0,109,44]},{\"index\":0.25,\"rgb\":[35,139,69]},{\"index\":0.375,\"rgb\":[65,171,93]},{\"index\":0.5,\"rgb\":[116,196,118]},{\"index\":0.625,\"rgb\":[161,217,155]},{\"index\":0.75,\"rgb\":[199,233,192]},{\"index\":0.875,\"rgb\":[229,245,224]},{\"index\":1,\"rgb\":[247,252,245]}],\n\n\t\"yiorrd\":[{\"index\":0,\"rgb\":[128,0,38]},{\"index\":0.125,\"rgb\":[189,0,38]},{\"index\":0.25,\"rgb\":[227,26,28]},{\"index\":0.375,\"rgb\":[252,78,42]},{\"index\":0.5,\"rgb\":[253,141,60]},{\"index\":0.625,\"rgb\":[254,178,76]},{\"index\":0.75,\"rgb\":[254,217,118]},{\"index\":0.875,\"rgb\":[255,237,160]},{\"index\":1,\"rgb\":[255,255,204]}],\n\n\t\"bluered\":[{\"index\":0,\"rgb\":[0,0,255]},{\"index\":1,\"rgb\":[255,0,0]}],\n\n\t\"rdbu\":[{\"index\":0,\"rgb\":[5,10,172]},{\"index\":0.35,\"rgb\":[106,137,247]},{\"index\":0.5,\"rgb\":[190,190,190]},{\"index\":0.6,\"rgb\":[220,170,132]},{\"index\":0.7,\"rgb\":[230,145,90]},{\"index\":1,\"rgb\":[178,10,28]}],\n\n\t\"picnic\":[{\"index\":0,\"rgb\":[0,0,255]},{\"index\":0.1,\"rgb\":[51,153,255]},{\"index\":0.2,\"rgb\":[102,204,255]},{\"index\":0.3,\"rgb\":[153,204,255]},{\"index\":0.4,\"rgb\":[204,204,255]},{\"index\":0.5,\"rgb\":[255,255,255]},{\"index\":0.6,\"rgb\":[255,204,255]},{\"index\":0.7,\"rgb\":[255,153,255]},{\"index\":0.8,\"rgb\":[255,102,204]},{\"index\":0.9,\"rgb\":[255,102,102]},{\"index\":1,\"rgb\":[255,0,0]}],\n\n\t\"rainbow\":[{\"index\":0,\"rgb\":[150,0,90]},{\"index\":0.125,\"rgb\":[0,0,200]},{\"index\":0.25,\"rgb\":[0,25,255]},{\"index\":0.375,\"rgb\":[0,152,255]},{\"index\":0.5,\"rgb\":[44,255,150]},{\"index\":0.625,\"rgb\":[151,255,0]},{\"index\":0.75,\"rgb\":[255,234,0]},{\"index\":0.875,\"rgb\":[255,111,0]},{\"index\":1,\"rgb\":[255,0,0]}],\n\n\t\"portland\":[{\"index\":0,\"rgb\":[12,51,131]},{\"index\":0.25,\"rgb\":[10,136,186]},{\"index\":0.5,\"rgb\":[242,211,56]},{\"index\":0.75,\"rgb\":[242,143,56]},{\"index\":1,\"rgb\":[217,30,30]}],\n\n\t\"blackbody\":[{\"index\":0,\"rgb\":[0,0,0]},{\"index\":0.2,\"rgb\":[230,0,0]},{\"index\":0.4,\"rgb\":[230,210,0]},{\"index\":0.7,\"rgb\":[255,255,255]},{\"index\":1,\"rgb\":[160,200,255]}],\n\n\t\"earth\":[{\"index\":0,\"rgb\":[0,0,130]},{\"index\":0.1,\"rgb\":[0,180,180]},{\"index\":0.2,\"rgb\":[40,210,40]},{\"index\":0.4,\"rgb\":[230,230,50]},{\"index\":0.6,\"rgb\":[120,70,20]},{\"index\":1,\"rgb\":[255,255,255]}],\n\n\t\"electric\":[{\"index\":0,\"rgb\":[0,0,0]},{\"index\":0.15,\"rgb\":[30,0,100]},{\"index\":0.4,\"rgb\":[120,0,100]},{\"index\":0.6,\"rgb\":[160,90,0]},{\"index\":0.8,\"rgb\":[230,200,0]},{\"index\":1,\"rgb\":[255,250,220]}],\n\n\t\"alpha\": [{\"index\":0, \"rgb\": [255,255,255,0]},{\"index\":1, \"rgb\": [255,255,255,1]}],\n\n\t\"viridis\": [{\"index\":0,\"rgb\":[68,1,84]},{\"index\":0.13,\"rgb\":[71,44,122]},{\"index\":0.25,\"rgb\":[59,81,139]},{\"index\":0.38,\"rgb\":[44,113,142]},{\"index\":0.5,\"rgb\":[33,144,141]},{\"index\":0.63,\"rgb\":[39,173,129]},{\"index\":0.75,\"rgb\":[92,200,99]},{\"index\":0.88,\"rgb\":[170,220,50]},{\"index\":1,\"rgb\":[253,231,37]}],\n\n\t\"inferno\": [{\"index\":0,\"rgb\":[0,0,4]},{\"index\":0.13,\"rgb\":[31,12,72]},{\"index\":0.25,\"rgb\":[85,15,109]},{\"index\":0.38,\"rgb\":[136,34,106]},{\"index\":0.5,\"rgb\":[186,54,85]},{\"index\":0.63,\"rgb\":[227,89,51]},{\"index\":0.75,\"rgb\":[249,140,10]},{\"index\":0.88,\"rgb\":[249,201,50]},{\"index\":1,\"rgb\":[252,255,164]}],\n\n\t\"magma\": [{\"index\":0,\"rgb\":[0,0,4]},{\"index\":0.13,\"rgb\":[28,16,68]},{\"index\":0.25,\"rgb\":[79,18,123]},{\"index\":0.38,\"rgb\":[129,37,129]},{\"index\":0.5,\"rgb\":[181,54,122]},{\"index\":0.63,\"rgb\":[229,80,100]},{\"index\":0.75,\"rgb\":[251,135,97]},{\"index\":0.88,\"rgb\":[254,194,135]},{\"index\":1,\"rgb\":[252,253,191]}],\n\n\t\"plasma\": [{\"index\":0,\"rgb\":[13,8,135]},{\"index\":0.13,\"rgb\":[75,3,161]},{\"index\":0.25,\"rgb\":[125,3,168]},{\"index\":0.38,\"rgb\":[168,34,150]},{\"index\":0.5,\"rgb\":[203,70,121]},{\"index\":0.63,\"rgb\":[229,107,93]},{\"index\":0.75,\"rgb\":[248,148,65]},{\"index\":0.88,\"rgb\":[253,195,40]},{\"index\":1,\"rgb\":[240,249,33]}],\n\n\t\"warm\": [{\"index\":0,\"rgb\":[125,0,179]},{\"index\":0.13,\"rgb\":[172,0,187]},{\"index\":0.25,\"rgb\":[219,0,170]},{\"index\":0.38,\"rgb\":[255,0,130]},{\"index\":0.5,\"rgb\":[255,63,74]},{\"index\":0.63,\"rgb\":[255,123,0]},{\"index\":0.75,\"rgb\":[234,176,0]},{\"index\":0.88,\"rgb\":[190,228,0]},{\"index\":1,\"rgb\":[147,255,0]}],\n\n\t\"cool\": [{\"index\":0,\"rgb\":[125,0,179]},{\"index\":0.13,\"rgb\":[116,0,218]},{\"index\":0.25,\"rgb\":[98,74,237]},{\"index\":0.38,\"rgb\":[68,146,231]},{\"index\":0.5,\"rgb\":[0,204,197]},{\"index\":0.63,\"rgb\":[0,247,146]},{\"index\":0.75,\"rgb\":[0,255,88]},{\"index\":0.88,\"rgb\":[40,255,8]},{\"index\":1,\"rgb\":[147,255,0]}],\n\n\t\"rainbow-soft\": [{\"index\":0,\"rgb\":[125,0,179]},{\"index\":0.1,\"rgb\":[199,0,180]},{\"index\":0.2,\"rgb\":[255,0,121]},{\"index\":0.3,\"rgb\":[255,108,0]},{\"index\":0.4,\"rgb\":[222,194,0]},{\"index\":0.5,\"rgb\":[150,255,0]},{\"index\":0.6,\"rgb\":[0,255,55]},{\"index\":0.7,\"rgb\":[0,246,150]},{\"index\":0.8,\"rgb\":[50,167,222]},{\"index\":0.9,\"rgb\":[103,51,235]},{\"index\":1,\"rgb\":[124,0,186]}],\n\n\t\"bathymetry\": [{\"index\":0,\"rgb\":[40,26,44]},{\"index\":0.13,\"rgb\":[59,49,90]},{\"index\":0.25,\"rgb\":[64,76,139]},{\"index\":0.38,\"rgb\":[63,110,151]},{\"index\":0.5,\"rgb\":[72,142,158]},{\"index\":0.63,\"rgb\":[85,174,163]},{\"index\":0.75,\"rgb\":[120,206,163]},{\"index\":0.88,\"rgb\":[187,230,172]},{\"index\":1,\"rgb\":[253,254,204]}],\n\n\t\"cdom\": [{\"index\":0,\"rgb\":[47,15,62]},{\"index\":0.13,\"rgb\":[87,23,86]},{\"index\":0.25,\"rgb\":[130,28,99]},{\"index\":0.38,\"rgb\":[171,41,96]},{\"index\":0.5,\"rgb\":[206,67,86]},{\"index\":0.63,\"rgb\":[230,106,84]},{\"index\":0.75,\"rgb\":[242,149,103]},{\"index\":0.88,\"rgb\":[249,193,135]},{\"index\":1,\"rgb\":[254,237,176]}],\n\n\t\"chlorophyll\": [{\"index\":0,\"rgb\":[18,36,20]},{\"index\":0.13,\"rgb\":[25,63,41]},{\"index\":0.25,\"rgb\":[24,91,59]},{\"index\":0.38,\"rgb\":[13,119,72]},{\"index\":0.5,\"rgb\":[18,148,80]},{\"index\":0.63,\"rgb\":[80,173,89]},{\"index\":0.75,\"rgb\":[132,196,122]},{\"index\":0.88,\"rgb\":[175,221,162]},{\"index\":1,\"rgb\":[215,249,208]}],\n\n\t\"density\": [{\"index\":0,\"rgb\":[54,14,36]},{\"index\":0.13,\"rgb\":[89,23,80]},{\"index\":0.25,\"rgb\":[110,45,132]},{\"index\":0.38,\"rgb\":[120,77,178]},{\"index\":0.5,\"rgb\":[120,113,213]},{\"index\":0.63,\"rgb\":[115,151,228]},{\"index\":0.75,\"rgb\":[134,185,227]},{\"index\":0.88,\"rgb\":[177,214,227]},{\"index\":1,\"rgb\":[230,241,241]}],\n\n\t\"freesurface-blue\": [{\"index\":0,\"rgb\":[30,4,110]},{\"index\":0.13,\"rgb\":[47,14,176]},{\"index\":0.25,\"rgb\":[41,45,236]},{\"index\":0.38,\"rgb\":[25,99,212]},{\"index\":0.5,\"rgb\":[68,131,200]},{\"index\":0.63,\"rgb\":[114,156,197]},{\"index\":0.75,\"rgb\":[157,181,203]},{\"index\":0.88,\"rgb\":[200,208,216]},{\"index\":1,\"rgb\":[241,237,236]}],\n\n\t\"freesurface-red\": [{\"index\":0,\"rgb\":[60,9,18]},{\"index\":0.13,\"rgb\":[100,17,27]},{\"index\":0.25,\"rgb\":[142,20,29]},{\"index\":0.38,\"rgb\":[177,43,27]},{\"index\":0.5,\"rgb\":[192,87,63]},{\"index\":0.63,\"rgb\":[205,125,105]},{\"index\":0.75,\"rgb\":[216,162,148]},{\"index\":0.88,\"rgb\":[227,199,193]},{\"index\":1,\"rgb\":[241,237,236]}],\n\n\t\"oxygen\": [{\"index\":0,\"rgb\":[64,5,5]},{\"index\":0.13,\"rgb\":[106,6,15]},{\"index\":0.25,\"rgb\":[144,26,7]},{\"index\":0.38,\"rgb\":[168,64,3]},{\"index\":0.5,\"rgb\":[188,100,4]},{\"index\":0.63,\"rgb\":[206,136,11]},{\"index\":0.75,\"rgb\":[220,174,25]},{\"index\":0.88,\"rgb\":[231,215,44]},{\"index\":1,\"rgb\":[248,254,105]}],\n\n\t\"par\": [{\"index\":0,\"rgb\":[51,20,24]},{\"index\":0.13,\"rgb\":[90,32,35]},{\"index\":0.25,\"rgb\":[129,44,34]},{\"index\":0.38,\"rgb\":[159,68,25]},{\"index\":0.5,\"rgb\":[182,99,19]},{\"index\":0.63,\"rgb\":[199,134,22]},{\"index\":0.75,\"rgb\":[212,171,35]},{\"index\":0.88,\"rgb\":[221,210,54]},{\"index\":1,\"rgb\":[225,253,75]}],\n\n\t\"phase\": [{\"index\":0,\"rgb\":[145,105,18]},{\"index\":0.13,\"rgb\":[184,71,38]},{\"index\":0.25,\"rgb\":[186,58,115]},{\"index\":0.38,\"rgb\":[160,71,185]},{\"index\":0.5,\"rgb\":[110,97,218]},{\"index\":0.63,\"rgb\":[50,123,164]},{\"index\":0.75,\"rgb\":[31,131,110]},{\"index\":0.88,\"rgb\":[77,129,34]},{\"index\":1,\"rgb\":[145,105,18]}],\n\n\t\"salinity\": [{\"index\":0,\"rgb\":[42,24,108]},{\"index\":0.13,\"rgb\":[33,50,162]},{\"index\":0.25,\"rgb\":[15,90,145]},{\"index\":0.38,\"rgb\":[40,118,137]},{\"index\":0.5,\"rgb\":[59,146,135]},{\"index\":0.63,\"rgb\":[79,175,126]},{\"index\":0.75,\"rgb\":[120,203,104]},{\"index\":0.88,\"rgb\":[193,221,100]},{\"index\":1,\"rgb\":[253,239,154]}],\n\n\t\"temperature\": [{\"index\":0,\"rgb\":[4,35,51]},{\"index\":0.13,\"rgb\":[23,51,122]},{\"index\":0.25,\"rgb\":[85,59,157]},{\"index\":0.38,\"rgb\":[129,79,143]},{\"index\":0.5,\"rgb\":[175,95,130]},{\"index\":0.63,\"rgb\":[222,112,101]},{\"index\":0.75,\"rgb\":[249,146,66]},{\"index\":0.88,\"rgb\":[249,196,65]},{\"index\":1,\"rgb\":[232,250,91]}],\n\n\t\"turbidity\": [{\"index\":0,\"rgb\":[34,31,27]},{\"index\":0.13,\"rgb\":[65,50,41]},{\"index\":0.25,\"rgb\":[98,69,52]},{\"index\":0.38,\"rgb\":[131,89,57]},{\"index\":0.5,\"rgb\":[161,112,59]},{\"index\":0.63,\"rgb\":[185,140,66]},{\"index\":0.75,\"rgb\":[202,174,88]},{\"index\":0.88,\"rgb\":[216,209,126]},{\"index\":1,\"rgb\":[233,246,171]}],\n\n\t\"velocity-blue\": [{\"index\":0,\"rgb\":[17,32,64]},{\"index\":0.13,\"rgb\":[35,52,116]},{\"index\":0.25,\"rgb\":[29,81,156]},{\"index\":0.38,\"rgb\":[31,113,162]},{\"index\":0.5,\"rgb\":[50,144,169]},{\"index\":0.63,\"rgb\":[87,173,176]},{\"index\":0.75,\"rgb\":[149,196,189]},{\"index\":0.88,\"rgb\":[203,221,211]},{\"index\":1,\"rgb\":[254,251,230]}],\n\n\t\"velocity-green\": [{\"index\":0,\"rgb\":[23,35,19]},{\"index\":0.13,\"rgb\":[24,64,38]},{\"index\":0.25,\"rgb\":[11,95,45]},{\"index\":0.38,\"rgb\":[39,123,35]},{\"index\":0.5,\"rgb\":[95,146,12]},{\"index\":0.63,\"rgb\":[152,165,18]},{\"index\":0.75,\"rgb\":[201,186,69]},{\"index\":0.88,\"rgb\":[233,216,137]},{\"index\":1,\"rgb\":[255,253,205]}],\n\n\t\"cubehelix\": [{\"index\":0,\"rgb\":[0,0,0]},{\"index\":0.07,\"rgb\":[22,5,59]},{\"index\":0.13,\"rgb\":[60,4,105]},{\"index\":0.2,\"rgb\":[109,1,135]},{\"index\":0.27,\"rgb\":[161,0,147]},{\"index\":0.33,\"rgb\":[210,2,142]},{\"index\":0.4,\"rgb\":[251,11,123]},{\"index\":0.47,\"rgb\":[255,29,97]},{\"index\":0.53,\"rgb\":[255,54,69]},{\"index\":0.6,\"rgb\":[255,85,46]},{\"index\":0.67,\"rgb\":[255,120,34]},{\"index\":0.73,\"rgb\":[255,157,37]},{\"index\":0.8,\"rgb\":[241,191,57]},{\"index\":0.87,\"rgb\":[224,220,93]},{\"index\":0.93,\"rgb\":[218,241,142]},{\"index\":1,\"rgb\":[227,253,198]}]\n};\n\n},{}],53:[function(_glvis_,module,exports){\n/*\n * Ben Postlethwaite\n * January 2013\n * License MIT\n */\n'use strict';\n\nvar colorScale = _glvis_('./colorScale');\nvar lerp = _glvis_('lerp')\n\nmodule.exports = createColormap;\n\nfunction createColormap (spec) {\n /*\n * Default Options\n */\n var indicies, fromrgba, torgba,\n nsteps, cmap, colormap, format,\n nshades, colors, alpha, i;\n\n if ( !spec ) spec = {};\n\n nshades = (spec.nshades || 72) - 1;\n format = spec.format || 'hex';\n\n colormap = spec.colormap;\n if (!colormap) colormap = 'jet';\n\n if (typeof colormap === 'string') {\n colormap = colormap.toLowerCase();\n\n if (!colorScale[colormap]) {\n throw Error(colormap + ' not a supported colorscale');\n }\n\n cmap = colorScale[colormap];\n\n } else if (Array.isArray(colormap)) {\n cmap = colormap.slice();\n\n } else {\n throw Error('unsupported colormap option', colormap);\n }\n\n if (cmap.length > nshades + 1) {\n throw new Error(\n colormap+' map requires nshades to be at least size '+cmap.length\n );\n }\n\n if (!Array.isArray(spec.alpha)) {\n\n if (typeof spec.alpha === 'number') {\n alpha = [spec.alpha, spec.alpha];\n\n } else {\n alpha = [1, 1];\n }\n\n } else if (spec.alpha.length !== 2) {\n alpha = [1, 1];\n\n } else {\n alpha = spec.alpha.slice();\n }\n\n // map index points from 0..1 to 0..n-1\n indicies = cmap.map(function(c) {\n return Math.round(c.index * nshades);\n });\n\n // Add alpha channel to the map\n alpha[0] = Math.min(Math.max(alpha[0], 0), 1);\n alpha[1] = Math.min(Math.max(alpha[1], 0), 1);\n\n var steps = cmap.map(function(c, i) {\n var index = cmap[i].index\n\n var rgba = cmap[i].rgb.slice();\n\n // if user supplies their own map use it\n if (rgba.length === 4 && rgba[3] >= 0 && rgba[3] <= 1) {\n return rgba\n }\n rgba[3] = alpha[0] + (alpha[1] - alpha[0])*index;\n\n return rgba\n })\n\n\n /*\n * map increasing linear values between indicies to\n * linear steps in colorvalues\n */\n var colors = []\n for (i = 0; i < indicies.length-1; ++i) {\n nsteps = indicies[i+1] - indicies[i];\n fromrgba = steps[i];\n torgba = steps[i+1];\n\n for (var j = 0; j < nsteps; j++) {\n var amt = j / nsteps\n colors.push([\n Math.round(lerp(fromrgba[0], torgba[0], amt)),\n Math.round(lerp(fromrgba[1], torgba[1], amt)),\n Math.round(lerp(fromrgba[2], torgba[2], amt)),\n lerp(fromrgba[3], torgba[3], amt)\n ])\n }\n }\n\n //add 1 step as last value\n colors.push(cmap[cmap.length - 1].rgb.concat(alpha[1]))\n\n if (format === 'hex') colors = colors.map( rgb2hex );\n else if (format === 'rgbaString') colors = colors.map( rgbaStr );\n else if (format === 'float') colors = colors.map( rgb2float );\n\n return colors;\n};\n\nfunction rgb2float (rgba) {\n return [\n rgba[0] / 255,\n rgba[1] / 255,\n rgba[2] / 255,\n rgba[3]\n ]\n}\n\nfunction rgb2hex (rgba) {\n var dig, hex = '#';\n for (var i = 0; i < 3; ++i) {\n dig = rgba[i];\n dig = dig.toString(16);\n hex += ('00' + dig).substr( dig.length );\n }\n return hex;\n}\n\nfunction rgbaStr (rgba) {\n return 'rgba(' + rgba.join(',') + ')';\n}\n\n},{\"./colorScale\":52,\"lerp\":240}],54:[function(_glvis_,module,exports){\n\"use strict\"\n\nmodule.exports = compareAngle\n\nvar orient = _glvis_(\"robust-orientation\")\nvar sgn = _glvis_(\"signum\")\nvar twoSum = _glvis_(\"two-sum\")\nvar robustProduct = _glvis_(\"robust-product\")\nvar robustSum = _glvis_(\"robust-sum\")\n\nfunction testInterior(a, b, c) {\n var x0 = twoSum(a[0], -b[0])\n var y0 = twoSum(a[1], -b[1])\n var x1 = twoSum(c[0], -b[0])\n var y1 = twoSum(c[1], -b[1])\n\n var d = robustSum(\n robustProduct(x0, x1),\n robustProduct(y0, y1))\n\n return d[d.length-1] >= 0\n}\n\nfunction compareAngle(a, b, c, d) {\n var bcd = orient(b, c, d)\n if(bcd === 0) {\n //Handle degenerate cases\n var sabc = sgn(orient(a, b, c))\n var sabd = sgn(orient(a, b, d))\n if(sabc === sabd) {\n if(sabc === 0) {\n var ic = testInterior(a, b, c)\n var id = testInterior(a, b, d)\n if(ic === id) {\n return 0\n } else if(ic) {\n return 1\n } else {\n return -1\n }\n }\n return 0\n } else if(sabd === 0) {\n if(sabc > 0) {\n return -1\n } else if(testInterior(a, b, d)) {\n return -1\n } else {\n return 1\n }\n } else if(sabc === 0) {\n if(sabd > 0) {\n return 1\n } else if(testInterior(a, b, c)) {\n return 1\n } else {\n return -1\n }\n }\n return sgn(sabd - sabc)\n }\n var abc = orient(a, b, c)\n if(abc > 0) {\n if(bcd > 0 && orient(a, b, d) > 0) {\n return 1\n }\n return -1\n } else if(abc < 0) {\n if(bcd > 0 || orient(a, b, d) > 0) {\n return 1\n }\n return -1\n } else {\n var abd = orient(a, b, d)\n if(abd > 0) {\n return 1\n } else {\n if(testInterior(a, b, c)) {\n return 1\n } else {\n return -1\n }\n }\n }\n}\n},{\"robust-orientation\":284,\"robust-product\":285,\"robust-sum\":289,\"signum\":55,\"two-sum\":307}],55:[function(_glvis_,module,exports){\n\"use strict\"\n\nmodule.exports = function signum(x) {\n if(x < 0) { return -1 }\n if(x > 0) { return 1 }\n return 0.0\n}\n},{}],56:[function(_glvis_,module,exports){\nmodule.exports = compareCells\n\nvar min = Math.min\n\nfunction compareInt(a, b) {\n return a - b\n}\n\nfunction compareCells(a, b) {\n var n = a.length\n , t = a.length - b.length\n if(t) {\n return t\n }\n switch(n) {\n case 0:\n return 0\n case 1:\n return a[0] - b[0]\n case 2:\n return (a[0]+a[1]-b[0]-b[1]) ||\n min(a[0],a[1]) - min(b[0],b[1])\n case 3:\n var l1 = a[0]+a[1]\n , m1 = b[0]+b[1]\n t = l1+a[2] - (m1+b[2])\n if(t) {\n return t\n }\n var l0 = min(a[0], a[1])\n , m0 = min(b[0], b[1])\n return min(l0, a[2]) - min(m0, b[2]) ||\n min(l0+a[2], l1) - min(m0+b[2], m1)\n case 4:\n var aw=a[0], ax=a[1], ay=a[2], az=a[3]\n , bw=b[0], bx=b[1], by=b[2], bz=b[3]\n return (aw+ax+ay+az)-(bw+bx+by+bz) ||\n min(aw,ax,ay,az)-min(bw,bx,by,bz,bw) ||\n min(aw+ax,aw+ay,aw+az,ax+ay,ax+az,ay+az) -\n min(bw+bx,bw+by,bw+bz,bx+by,bx+bz,by+bz) ||\n min(aw+ax+ay,aw+ax+az,aw+ay+az,ax+ay+az) -\n min(bw+bx+by,bw+bx+bz,bw+by+bz,bx+by+bz)\n default:\n var as = a.slice().sort(compareInt)\n var bs = b.slice().sort(compareInt)\n for(var i=0; i points[hi][0]) {\n hi = i\n }\n }\n if(lo < hi) {\n return [[lo], [hi]]\n } else if(lo > hi) {\n return [[hi], [lo]]\n } else {\n return [[lo]]\n }\n}\n},{}],60:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = convexHull2D\n\nvar monotoneHull = _glvis_('monotone-convex-hull-2d')\n\nfunction convexHull2D(points) {\n var hull = monotoneHull(points)\n var h = hull.length\n if(h <= 2) {\n return []\n }\n var edges = new Array(h)\n var a = hull[h-1]\n for(var i=0; i= front[k]) {\n x += 1\n }\n }\n c[j] = x\n }\n }\n }\n return cells\n}\n\nfunction convexHullnD(points, d) {\n try {\n return ich(points, true)\n } catch(e) {\n //If point set is degenerate, try to find a basis and rerun it\n var ah = aff(points)\n if(ah.length <= d) {\n //No basis, no try\n return []\n }\n var npoints = permute(points, ah)\n var nhull = ich(npoints, true)\n return invPermute(nhull, ah)\n }\n}\n},{\"affine-hull\":10,\"incremental-convex-hull\":233}],62:[function(_glvis_,module,exports){\n\"use strict\"\n\nfunction dcubicHermite(p0, v0, p1, v1, t, f) {\n var dh00 = 6*t*t-6*t,\n dh10 = 3*t*t-4*t + 1,\n dh01 = -6*t*t+6*t,\n dh11 = 3*t*t-2*t\n if(p0.length) {\n if(!f) {\n f = new Array(p0.length)\n }\n for(var i=p0.length-1; i>=0; --i) {\n f[i] = dh00*p0[i] + dh10*v0[i] + dh01*p1[i] + dh11*v1[i]\n }\n return f\n }\n return dh00*p0 + dh10*v0 + dh01*p1[i] + dh11*v1\n}\n\nfunction cubicHermite(p0, v0, p1, v1, t, f) {\n var ti = (t-1), t2 = t*t, ti2 = ti*ti,\n h00 = (1+2*t)*ti2,\n h10 = t*ti2,\n h01 = t2*(3-2*t),\n h11 = t2*ti\n if(p0.length) {\n if(!f) {\n f = new Array(p0.length)\n }\n for(var i=p0.length-1; i>=0; --i) {\n f[i] = h00*p0[i] + h10*v0[i] + h01*p1[i] + h11*v1[i]\n }\n return f\n }\n return h00*p0 + h10*v0 + h01*p1 + h11*v1\n}\n\nmodule.exports = cubicHermite\nmodule.exports.derivative = dcubicHermite\n},{}],63:[function(_glvis_,module,exports){\n\"use strict\"\n\nvar ch = _glvis_(\"incremental-convex-hull\")\nvar uniq = _glvis_(\"uniq\")\n\nmodule.exports = triangulate\n\nfunction LiftedPoint(p, i) {\n this.point = p\n this.index = i\n}\n\nfunction compareLifted(a, b) {\n var ap = a.point\n var bp = b.point\n var d = ap.length\n for(var i=0; i= 2) {\n return false\n }\n }\n cell[j] = v\n }\n return true\n })\n } else {\n hull = hull.filter(function(cell) {\n for(var i=0; i<=d; ++i) {\n var v = dindex[cell[i]]\n if(v < 0) {\n return false\n }\n cell[i] = v\n }\n return true\n })\n }\n\n if(d & 1) {\n for(var i=0; i>> 31\n}\n\nmodule.exports.exponent = function(n) {\n var b = module.exports.hi(n)\n return ((b<<1) >>> 21) - 1023\n}\n\nmodule.exports.fraction = function(n) {\n var lo = module.exports.lo(n)\n var hi = module.exports.hi(n)\n var b = hi & ((1<<20) - 1)\n if(hi & 0x7ff00000) {\n b += (1<<20)\n }\n return [lo, b]\n}\n\nmodule.exports.denormalized = function(n) {\n var hi = module.exports.hi(n)\n return !(hi & 0x7ff00000)\n}\n}).call(this)}).call(this,_glvis_(\"buffer\").Buffer)\n},{\"buffer\":3}],65:[function(_glvis_,module,exports){\n\"use strict\"\n\nfunction dupe_array(count, value, i) {\n var c = count[i]|0\n if(c <= 0) {\n return []\n }\n var result = new Array(c), j\n if(i === count.length-1) {\n for(j=0; j 0) {\n return dupe_number(count|0, value)\n }\n break\n case \"object\":\n if(typeof (count.length) === \"number\") {\n return dupe_array(count, value, 0)\n }\n break\n }\n return []\n}\n\nmodule.exports = dupe\n},{}],66:[function(_glvis_,module,exports){\n\"use strict\"\n\nmodule.exports = edgeToAdjacency\n\nvar uniq = _glvis_(\"uniq\")\n\nfunction edgeToAdjacency(edges, numVertices) {\n var numEdges = edges.length\n if(typeof numVertices !== \"number\") {\n numVertices = 0\n for(var i=0; i= n-1) {\n var ptr = state.length-1\n var tf = t - time[n-1]\n for(var i=0; i= n-1) {\n var ptr = state.length-1\n var tf = t - time[n-1]\n for(var i=0; i=0; --i) {\n if(velocity[--ptr]) {\n return false\n }\n }\n return true\n}\n\nproto.jump = function(t) {\n var t0 = this.lastT()\n var d = this.dimension\n if(t < t0 || arguments.length !== d+1) {\n return\n }\n var state = this._state\n var velocity = this._velocity\n var ptr = state.length-this.dimension\n var bounds = this.bounds\n var lo = bounds[0]\n var hi = bounds[1]\n this._time.push(t0, t)\n for(var j=0; j<2; ++j) {\n for(var i=0; i0; --i) {\n state.push(clamp(lo[i-1], hi[i-1], arguments[i]))\n velocity.push(0)\n }\n}\n\nproto.push = function(t) {\n var t0 = this.lastT()\n var d = this.dimension\n if(t < t0 || arguments.length !== d+1) {\n return\n }\n var state = this._state\n var velocity = this._velocity\n var ptr = state.length-this.dimension\n var dt = t - t0\n var bounds = this.bounds\n var lo = bounds[0]\n var hi = bounds[1]\n var sf = (dt > 1e-6) ? 1/dt : 0\n this._time.push(t)\n for(var i=d; i>0; --i) {\n var xc = clamp(lo[i-1], hi[i-1], arguments[i])\n state.push(xc)\n velocity.push((xc - state[ptr++]) * sf)\n }\n}\n\nproto.set = function(t) {\n var d = this.dimension\n if(t < this.lastT() || arguments.length !== d+1) {\n return\n }\n var state = this._state\n var velocity = this._velocity\n var bounds = this.bounds\n var lo = bounds[0]\n var hi = bounds[1]\n this._time.push(t)\n for(var i=d; i>0; --i) {\n state.push(clamp(lo[i-1], hi[i-1], arguments[i]))\n velocity.push(0)\n }\n}\n\nproto.move = function(t) {\n var t0 = this.lastT()\n var d = this.dimension\n if(t <= t0 || arguments.length !== d+1) {\n return\n }\n var state = this._state\n var velocity = this._velocity\n var statePtr = state.length - this.dimension\n var bounds = this.bounds\n var lo = bounds[0]\n var hi = bounds[1]\n var dt = t - t0\n var sf = (dt > 1e-6) ? 1/dt : 0.0\n this._time.push(t)\n for(var i=d; i>0; --i) {\n var dx = arguments[i]\n state.push(clamp(lo[i-1], hi[i-1], state[statePtr++] + dx))\n velocity.push(dx * sf)\n }\n}\n\nproto.idle = function(t) {\n var t0 = this.lastT()\n if(t < t0) {\n return\n }\n var d = this.dimension\n var state = this._state\n var velocity = this._velocity\n var statePtr = state.length-d\n var bounds = this.bounds\n var lo = bounds[0]\n var hi = bounds[1]\n var dt = t - t0\n this._time.push(t)\n for(var i=d-1; i>=0; --i) {\n state.push(clamp(lo[i], hi[i], state[statePtr] + dt * velocity[statePtr]))\n velocity.push(0)\n statePtr += 1\n }\n}\n\nfunction getZero(d) {\n var result = new Array(d)\n for(var i=0; i=0; --s) {\n var n = n_stack[s]\n if(d_stack[s] <= 0) {\n n_stack[s] = new RBNode(n._color, n.key, n.value, n_stack[s+1], n.right, n._count+1)\n } else {\n n_stack[s] = new RBNode(n._color, n.key, n.value, n.left, n_stack[s+1], n._count+1)\n }\n }\n //Rebalance tree using rotations\n //console.log(\"start insert\", key, d_stack)\n for(var s=n_stack.length-1; s>1; --s) {\n var p = n_stack[s-1]\n var n = n_stack[s]\n if(p._color === BLACK || n._color === BLACK) {\n break\n }\n var pp = n_stack[s-2]\n if(pp.left === p) {\n if(p.left === n) {\n var y = pp.right\n if(y && y._color === RED) {\n //console.log(\"LLr\")\n p._color = BLACK\n pp.right = repaint(BLACK, y)\n pp._color = RED\n s -= 1\n } else {\n //console.log(\"LLb\")\n pp._color = RED\n pp.left = p.right\n p._color = BLACK\n p.right = pp\n n_stack[s-2] = p\n n_stack[s-1] = n\n recount(pp)\n recount(p)\n if(s >= 3) {\n var ppp = n_stack[s-3]\n if(ppp.left === pp) {\n ppp.left = p\n } else {\n ppp.right = p\n }\n }\n break\n }\n } else {\n var y = pp.right\n if(y && y._color === RED) {\n //console.log(\"LRr\")\n p._color = BLACK\n pp.right = repaint(BLACK, y)\n pp._color = RED\n s -= 1\n } else {\n //console.log(\"LRb\")\n p.right = n.left\n pp._color = RED\n pp.left = n.right\n n._color = BLACK\n n.left = p\n n.right = pp\n n_stack[s-2] = n\n n_stack[s-1] = p\n recount(pp)\n recount(p)\n recount(n)\n if(s >= 3) {\n var ppp = n_stack[s-3]\n if(ppp.left === pp) {\n ppp.left = n\n } else {\n ppp.right = n\n }\n }\n break\n }\n }\n } else {\n if(p.right === n) {\n var y = pp.left\n if(y && y._color === RED) {\n //console.log(\"RRr\", y.key)\n p._color = BLACK\n pp.left = repaint(BLACK, y)\n pp._color = RED\n s -= 1\n } else {\n //console.log(\"RRb\")\n pp._color = RED\n pp.right = p.left\n p._color = BLACK\n p.left = pp\n n_stack[s-2] = p\n n_stack[s-1] = n\n recount(pp)\n recount(p)\n if(s >= 3) {\n var ppp = n_stack[s-3]\n if(ppp.right === pp) {\n ppp.right = p\n } else {\n ppp.left = p\n }\n }\n break\n }\n } else {\n var y = pp.left\n if(y && y._color === RED) {\n //console.log(\"RLr\")\n p._color = BLACK\n pp.left = repaint(BLACK, y)\n pp._color = RED\n s -= 1\n } else {\n //console.log(\"RLb\")\n p.left = n.right\n pp._color = RED\n pp.right = n.left\n n._color = BLACK\n n.right = p\n n.left = pp\n n_stack[s-2] = n\n n_stack[s-1] = p\n recount(pp)\n recount(p)\n recount(n)\n if(s >= 3) {\n var ppp = n_stack[s-3]\n if(ppp.right === pp) {\n ppp.right = n\n } else {\n ppp.left = n\n }\n }\n break\n }\n }\n }\n }\n //Return new tree\n n_stack[0]._color = BLACK\n return new RedBlackTree(cmp, n_stack[0])\n}\n\n\n//Visit all nodes inorder\nfunction doVisitFull(visit, node) {\n if(node.left) {\n var v = doVisitFull(visit, node.left)\n if(v) { return v }\n }\n var v = visit(node.key, node.value)\n if(v) { return v }\n if(node.right) {\n return doVisitFull(visit, node.right)\n }\n}\n\n//Visit half nodes in order\nfunction doVisitHalf(lo, compare, visit, node) {\n var l = compare(lo, node.key)\n if(l <= 0) {\n if(node.left) {\n var v = doVisitHalf(lo, compare, visit, node.left)\n if(v) { return v }\n }\n var v = visit(node.key, node.value)\n if(v) { return v }\n }\n if(node.right) {\n return doVisitHalf(lo, compare, visit, node.right)\n }\n}\n\n//Visit all nodes within a range\nfunction doVisit(lo, hi, compare, visit, node) {\n var l = compare(lo, node.key)\n var h = compare(hi, node.key)\n var v\n if(l <= 0) {\n if(node.left) {\n v = doVisit(lo, hi, compare, visit, node.left)\n if(v) { return v }\n }\n if(h > 0) {\n v = visit(node.key, node.value)\n if(v) { return v }\n }\n }\n if(h > 0 && node.right) {\n return doVisit(lo, hi, compare, visit, node.right)\n }\n}\n\n\nproto.forEach = function rbTreeForEach(visit, lo, hi) {\n if(!this.root) {\n return\n }\n switch(arguments.length) {\n case 1:\n return doVisitFull(visit, this.root)\n break\n\n case 2:\n return doVisitHalf(lo, this._compare, visit, this.root)\n break\n\n case 3:\n if(this._compare(lo, hi) >= 0) {\n return\n }\n return doVisit(lo, hi, this._compare, visit, this.root)\n break\n }\n}\n\n//First item in list\nObject.defineProperty(proto, \"begin\", {\n get: function() {\n var stack = []\n var n = this.root\n while(n) {\n stack.push(n)\n n = n.left\n }\n return new RedBlackTreeIterator(this, stack)\n }\n})\n\n//Last item in list\nObject.defineProperty(proto, \"end\", {\n get: function() {\n var stack = []\n var n = this.root\n while(n) {\n stack.push(n)\n n = n.right\n }\n return new RedBlackTreeIterator(this, stack)\n }\n})\n\n//Find the ith item in the tree\nproto.at = function(idx) {\n if(idx < 0) {\n return new RedBlackTreeIterator(this, [])\n }\n var n = this.root\n var stack = []\n while(true) {\n stack.push(n)\n if(n.left) {\n if(idx < n.left._count) {\n n = n.left\n continue\n }\n idx -= n.left._count\n }\n if(!idx) {\n return new RedBlackTreeIterator(this, stack)\n }\n idx -= 1\n if(n.right) {\n if(idx >= n.right._count) {\n break\n }\n n = n.right\n } else {\n break\n }\n }\n return new RedBlackTreeIterator(this, [])\n}\n\nproto.ge = function(key) {\n var cmp = this._compare\n var n = this.root\n var stack = []\n var last_ptr = 0\n while(n) {\n var d = cmp(key, n.key)\n stack.push(n)\n if(d <= 0) {\n last_ptr = stack.length\n }\n if(d <= 0) {\n n = n.left\n } else {\n n = n.right\n }\n }\n stack.length = last_ptr\n return new RedBlackTreeIterator(this, stack)\n}\n\nproto.gt = function(key) {\n var cmp = this._compare\n var n = this.root\n var stack = []\n var last_ptr = 0\n while(n) {\n var d = cmp(key, n.key)\n stack.push(n)\n if(d < 0) {\n last_ptr = stack.length\n }\n if(d < 0) {\n n = n.left\n } else {\n n = n.right\n }\n }\n stack.length = last_ptr\n return new RedBlackTreeIterator(this, stack)\n}\n\nproto.lt = function(key) {\n var cmp = this._compare\n var n = this.root\n var stack = []\n var last_ptr = 0\n while(n) {\n var d = cmp(key, n.key)\n stack.push(n)\n if(d > 0) {\n last_ptr = stack.length\n }\n if(d <= 0) {\n n = n.left\n } else {\n n = n.right\n }\n }\n stack.length = last_ptr\n return new RedBlackTreeIterator(this, stack)\n}\n\nproto.le = function(key) {\n var cmp = this._compare\n var n = this.root\n var stack = []\n var last_ptr = 0\n while(n) {\n var d = cmp(key, n.key)\n stack.push(n)\n if(d >= 0) {\n last_ptr = stack.length\n }\n if(d < 0) {\n n = n.left\n } else {\n n = n.right\n }\n }\n stack.length = last_ptr\n return new RedBlackTreeIterator(this, stack)\n}\n\n//Finds the item with key if it exists\nproto.find = function(key) {\n var cmp = this._compare\n var n = this.root\n var stack = []\n while(n) {\n var d = cmp(key, n.key)\n stack.push(n)\n if(d === 0) {\n return new RedBlackTreeIterator(this, stack)\n }\n if(d <= 0) {\n n = n.left\n } else {\n n = n.right\n }\n }\n return new RedBlackTreeIterator(this, [])\n}\n\n//Removes item with key from tree\nproto.remove = function(key) {\n var iter = this.find(key)\n if(iter) {\n return iter.remove()\n }\n return this\n}\n\n//Returns the item at `key`\nproto.get = function(key) {\n var cmp = this._compare\n var n = this.root\n while(n) {\n var d = cmp(key, n.key)\n if(d === 0) {\n return n.value\n }\n if(d <= 0) {\n n = n.left\n } else {\n n = n.right\n }\n }\n return\n}\n\n//Iterator for red black tree\nfunction RedBlackTreeIterator(tree, stack) {\n this.tree = tree\n this._stack = stack\n}\n\nvar iproto = RedBlackTreeIterator.prototype\n\n//Test if iterator is valid\nObject.defineProperty(iproto, \"valid\", {\n get: function() {\n return this._stack.length > 0\n }\n})\n\n//Node of the iterator\nObject.defineProperty(iproto, \"node\", {\n get: function() {\n if(this._stack.length > 0) {\n return this._stack[this._stack.length-1]\n }\n return null\n },\n enumerable: true\n})\n\n//Makes a copy of an iterator\niproto.clone = function() {\n return new RedBlackTreeIterator(this.tree, this._stack.slice())\n}\n\n//Swaps two nodes\nfunction swapNode(n, v) {\n n.key = v.key\n n.value = v.value\n n.left = v.left\n n.right = v.right\n n._color = v._color\n n._count = v._count\n}\n\n//Fix up a double black node in a tree\nfunction fixDoubleBlack(stack) {\n var n, p, s, z\n for(var i=stack.length-1; i>=0; --i) {\n n = stack[i]\n if(i === 0) {\n n._color = BLACK\n return\n }\n //console.log(\"visit node:\", n.key, i, stack[i].key, stack[i-1].key)\n p = stack[i-1]\n if(p.left === n) {\n //console.log(\"left child\")\n s = p.right\n if(s.right && s.right._color === RED) {\n //console.log(\"case 1: right sibling child red\")\n s = p.right = cloneNode(s)\n z = s.right = cloneNode(s.right)\n p.right = s.left\n s.left = p\n s.right = z\n s._color = p._color\n n._color = BLACK\n p._color = BLACK\n z._color = BLACK\n recount(p)\n recount(s)\n if(i > 1) {\n var pp = stack[i-2]\n if(pp.left === p) {\n pp.left = s\n } else {\n pp.right = s\n }\n }\n stack[i-1] = s\n return\n } else if(s.left && s.left._color === RED) {\n //console.log(\"case 1: left sibling child red\")\n s = p.right = cloneNode(s)\n z = s.left = cloneNode(s.left)\n p.right = z.left\n s.left = z.right\n z.left = p\n z.right = s\n z._color = p._color\n p._color = BLACK\n s._color = BLACK\n n._color = BLACK\n recount(p)\n recount(s)\n recount(z)\n if(i > 1) {\n var pp = stack[i-2]\n if(pp.left === p) {\n pp.left = z\n } else {\n pp.right = z\n }\n }\n stack[i-1] = z\n return\n }\n if(s._color === BLACK) {\n if(p._color === RED) {\n //console.log(\"case 2: black sibling, red parent\", p.right.value)\n p._color = BLACK\n p.right = repaint(RED, s)\n return\n } else {\n //console.log(\"case 2: black sibling, black parent\", p.right.value)\n p.right = repaint(RED, s)\n continue \n }\n } else {\n //console.log(\"case 3: red sibling\")\n s = cloneNode(s)\n p.right = s.left\n s.left = p\n s._color = p._color\n p._color = RED\n recount(p)\n recount(s)\n if(i > 1) {\n var pp = stack[i-2]\n if(pp.left === p) {\n pp.left = s\n } else {\n pp.right = s\n }\n }\n stack[i-1] = s\n stack[i] = p\n if(i+1 < stack.length) {\n stack[i+1] = n\n } else {\n stack.push(n)\n }\n i = i+2\n }\n } else {\n //console.log(\"right child\")\n s = p.left\n if(s.left && s.left._color === RED) {\n //console.log(\"case 1: left sibling child red\", p.value, p._color)\n s = p.left = cloneNode(s)\n z = s.left = cloneNode(s.left)\n p.left = s.right\n s.right = p\n s.left = z\n s._color = p._color\n n._color = BLACK\n p._color = BLACK\n z._color = BLACK\n recount(p)\n recount(s)\n if(i > 1) {\n var pp = stack[i-2]\n if(pp.right === p) {\n pp.right = s\n } else {\n pp.left = s\n }\n }\n stack[i-1] = s\n return\n } else if(s.right && s.right._color === RED) {\n //console.log(\"case 1: right sibling child red\")\n s = p.left = cloneNode(s)\n z = s.right = cloneNode(s.right)\n p.left = z.right\n s.right = z.left\n z.right = p\n z.left = s\n z._color = p._color\n p._color = BLACK\n s._color = BLACK\n n._color = BLACK\n recount(p)\n recount(s)\n recount(z)\n if(i > 1) {\n var pp = stack[i-2]\n if(pp.right === p) {\n pp.right = z\n } else {\n pp.left = z\n }\n }\n stack[i-1] = z\n return\n }\n if(s._color === BLACK) {\n if(p._color === RED) {\n //console.log(\"case 2: black sibling, red parent\")\n p._color = BLACK\n p.left = repaint(RED, s)\n return\n } else {\n //console.log(\"case 2: black sibling, black parent\")\n p.left = repaint(RED, s)\n continue \n }\n } else {\n //console.log(\"case 3: red sibling\")\n s = cloneNode(s)\n p.left = s.right\n s.right = p\n s._color = p._color\n p._color = RED\n recount(p)\n recount(s)\n if(i > 1) {\n var pp = stack[i-2]\n if(pp.right === p) {\n pp.right = s\n } else {\n pp.left = s\n }\n }\n stack[i-1] = s\n stack[i] = p\n if(i+1 < stack.length) {\n stack[i+1] = n\n } else {\n stack.push(n)\n }\n i = i+2\n }\n }\n }\n}\n\n//Removes item at iterator from tree\niproto.remove = function() {\n var stack = this._stack\n if(stack.length === 0) {\n return this.tree\n }\n //First copy path to node\n var cstack = new Array(stack.length)\n var n = stack[stack.length-1]\n cstack[cstack.length-1] = new RBNode(n._color, n.key, n.value, n.left, n.right, n._count)\n for(var i=stack.length-2; i>=0; --i) {\n var n = stack[i]\n if(n.left === stack[i+1]) {\n cstack[i] = new RBNode(n._color, n.key, n.value, cstack[i+1], n.right, n._count)\n } else {\n cstack[i] = new RBNode(n._color, n.key, n.value, n.left, cstack[i+1], n._count)\n }\n }\n\n //Get node\n n = cstack[cstack.length-1]\n //console.log(\"start remove: \", n.value)\n\n //If not leaf, then swap with previous node\n if(n.left && n.right) {\n //console.log(\"moving to leaf\")\n\n //First walk to previous leaf\n var split = cstack.length\n n = n.left\n while(n.right) {\n cstack.push(n)\n n = n.right\n }\n //Copy path to leaf\n var v = cstack[split-1]\n cstack.push(new RBNode(n._color, v.key, v.value, n.left, n.right, n._count))\n cstack[split-1].key = n.key\n cstack[split-1].value = n.value\n\n //Fix up stack\n for(var i=cstack.length-2; i>=split; --i) {\n n = cstack[i]\n cstack[i] = new RBNode(n._color, n.key, n.value, n.left, cstack[i+1], n._count)\n }\n cstack[split-1].left = cstack[split]\n }\n //console.log(\"stack=\", cstack.map(function(v) { return v.value }))\n\n //Remove leaf node\n n = cstack[cstack.length-1]\n if(n._color === RED) {\n //Easy case: removing red leaf\n //console.log(\"RED leaf\")\n var p = cstack[cstack.length-2]\n if(p.left === n) {\n p.left = null\n } else if(p.right === n) {\n p.right = null\n }\n cstack.pop()\n for(var i=0; i 0) {\n return this._stack[this._stack.length-1].key\n }\n return\n },\n enumerable: true\n})\n\n//Returns value\nObject.defineProperty(iproto, \"value\", {\n get: function() {\n if(this._stack.length > 0) {\n return this._stack[this._stack.length-1].value\n }\n return\n },\n enumerable: true\n})\n\n\n//Returns the position of this iterator in the sorted list\nObject.defineProperty(iproto, \"index\", {\n get: function() {\n var idx = 0\n var stack = this._stack\n if(stack.length === 0) {\n var r = this.tree.root\n if(r) {\n return r._count\n }\n return 0\n } else if(stack[stack.length-1].left) {\n idx = stack[stack.length-1].left._count\n }\n for(var s=stack.length-2; s>=0; --s) {\n if(stack[s+1] === stack[s].right) {\n ++idx\n if(stack[s].left) {\n idx += stack[s].left._count\n }\n }\n }\n return idx\n },\n enumerable: true\n})\n\n//Advances iterator to next element in list\niproto.next = function() {\n var stack = this._stack\n if(stack.length === 0) {\n return\n }\n var n = stack[stack.length-1]\n if(n.right) {\n n = n.right\n while(n) {\n stack.push(n)\n n = n.left\n }\n } else {\n stack.pop()\n while(stack.length > 0 && stack[stack.length-1].right === n) {\n n = stack[stack.length-1]\n stack.pop()\n }\n }\n}\n\n//Checks if iterator is at end of tree\nObject.defineProperty(iproto, \"hasNext\", {\n get: function() {\n var stack = this._stack\n if(stack.length === 0) {\n return false\n }\n if(stack[stack.length-1].right) {\n return true\n }\n for(var s=stack.length-1; s>0; --s) {\n if(stack[s-1].left === stack[s]) {\n return true\n }\n }\n return false\n }\n})\n\n//Update value\niproto.update = function(value) {\n var stack = this._stack\n if(stack.length === 0) {\n throw new Error(\"Can't update empty node!\")\n }\n var cstack = new Array(stack.length)\n var n = stack[stack.length-1]\n cstack[cstack.length-1] = new RBNode(n._color, n.key, value, n.left, n.right, n._count)\n for(var i=stack.length-2; i>=0; --i) {\n n = stack[i]\n if(n.left === stack[i+1]) {\n cstack[i] = new RBNode(n._color, n.key, n.value, cstack[i+1], n.right, n._count)\n } else {\n cstack[i] = new RBNode(n._color, n.key, n.value, n.left, cstack[i+1], n._count)\n }\n }\n return new RedBlackTree(this.tree._compare, cstack[0])\n}\n\n//Moves iterator backward one element\niproto.prev = function() {\n var stack = this._stack\n if(stack.length === 0) {\n return\n }\n var n = stack[stack.length-1]\n if(n.left) {\n n = n.left\n while(n) {\n stack.push(n)\n n = n.right\n }\n } else {\n stack.pop()\n while(stack.length > 0 && stack[stack.length-1].left === n) {\n n = stack[stack.length-1]\n stack.pop()\n }\n }\n}\n\n//Checks if iterator is at start of tree\nObject.defineProperty(iproto, \"hasPrev\", {\n get: function() {\n var stack = this._stack\n if(stack.length === 0) {\n return false\n }\n if(stack[stack.length-1].left) {\n return true\n }\n for(var s=stack.length-1; s>0; --s) {\n if(stack[s-1].right === stack[s]) {\n return true\n }\n }\n return false\n }\n})\n\n//Default comparison function\nfunction defaultCompare(a, b) {\n if(a < b) {\n return -1\n }\n if(a > b) {\n return 1\n }\n return 0\n}\n\n//Build a tree\nfunction createRBTree(compare) {\n return new RedBlackTree(compare || defaultCompare, null)\n}\n},{}],70:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = createAxes\n\nvar createText = _glvis_('./lib/text.js')\nvar createLines = _glvis_('./lib/lines.js')\nvar createBackground = _glvis_('./lib/background.js')\nvar getCubeProperties = _glvis_('./lib/cube.js')\nvar Ticks = _glvis_('./lib/ticks.js')\n\nvar identity = new Float32Array([\n 1, 0, 0, 0,\n 0, 1, 0, 0,\n 0, 0, 1, 0,\n 0, 0, 0, 1])\n\nfunction copyVec3(a, b) {\n a[0] = b[0]\n a[1] = b[1]\n a[2] = b[2]\n return a\n}\n\nfunction Axes(gl) {\n this.gl = gl\n\n this.pixelRatio = 1\n\n this.bounds = [ [-10, -10, -10],\n [ 10, 10, 10] ]\n this.ticks = [ [], [], [] ]\n this.autoTicks = true\n this.tickSpacing = [ 1, 1, 1 ]\n\n this.tickEnable = [ true, true, true ]\n this.tickFont = [ 'sans-serif', 'sans-serif', 'sans-serif' ]\n this.tickSize = [ 12, 12, 12 ]\n this.tickAngle = [ 0, 0, 0 ]\n this.tickAlign = [ 'auto', 'auto', 'auto' ]\n this.tickColor = [ [0,0,0,1], [0,0,0,1], [0,0,0,1] ]\n this.tickPad = [ 10, 10, 10 ]\n\n this.lastCubeProps = {\n cubeEdges: [0,0,0],\n axis: [0,0,0]\n }\n\n this.labels = [ 'x', 'y', 'z' ]\n this.labelEnable = [ true, true, true ]\n this.labelFont = 'sans-serif'\n this.labelSize = [ 20, 20, 20 ]\n this.labelAngle = [ 0, 0, 0 ]\n this.labelAlign = [ 'auto', 'auto', 'auto' ]\n this.labelColor = [ [0,0,0,1], [0,0,0,1], [0,0,0,1] ]\n this.labelPad = [ 10, 10, 10 ]\n\n this.lineEnable = [ true, true, true ]\n this.lineMirror = [ false, false, false ]\n this.lineWidth = [ 1, 1, 1 ]\n this.lineColor = [ [0,0,0,1], [0,0,0,1], [0,0,0,1] ]\n\n this.lineTickEnable = [ true, true, true ]\n this.lineTickMirror = [ false, false, false ]\n this.lineTickLength = [ 0, 0, 0 ]\n this.lineTickWidth = [ 1, 1, 1 ]\n this.lineTickColor = [ [0,0,0,1], [0,0,0,1], [0,0,0,1] ]\n\n this.gridEnable = [ true, true, true ]\n this.gridWidth = [ 1, 1, 1 ]\n this.gridColor = [ [0,0,0,1], [0,0,0,1], [0,0,0,1] ]\n\n this.zeroEnable = [ true, true, true ]\n this.zeroLineColor = [ [0,0,0,1], [0,0,0,1], [0,0,0,1] ]\n this.zeroLineWidth = [ 2, 2, 2 ]\n\n this.backgroundEnable = [ false, false, false ]\n this.backgroundColor = [ [0.8, 0.8, 0.8, 0.5],\n [0.8, 0.8, 0.8, 0.5],\n [0.8, 0.8, 0.8, 0.5] ]\n\n this._firstInit = true\n this._text = null\n this._lines = null\n this._background = createBackground(gl)\n}\n\nvar proto = Axes.prototype\n\nproto.update = function(options) {\n options = options || {}\n\n //Option parsing helper functions\n function parseOption(nest, cons, name) {\n if(name in options) {\n var opt = options[name]\n var prev = this[name]\n var next\n if(nest ? (Array.isArray(opt) && Array.isArray(opt[0])) :\n Array.isArray(opt) ) {\n this[name] = next = [ cons(opt[0]), cons(opt[1]), cons(opt[2]) ]\n } else {\n this[name] = next = [ cons(opt), cons(opt), cons(opt) ]\n }\n for(var i=0; i<3; ++i) {\n if(next[i] !== prev[i]) {\n return true\n }\n }\n }\n return false\n }\n\n var NUMBER = parseOption.bind(this, false, Number)\n var BOOLEAN = parseOption.bind(this, false, Boolean)\n var STRING = parseOption.bind(this, false, String)\n var COLOR = parseOption.bind(this, true, function(v) {\n if(Array.isArray(v)) {\n if(v.length === 3) {\n return [ +v[0], +v[1], +v[2], 1.0 ]\n } else if(v.length === 4) {\n return [ +v[0], +v[1], +v[2], +v[3] ]\n }\n }\n return [ 0, 0, 0, 1 ]\n })\n\n //Tick marks and bounds\n var nextTicks\n var ticksUpdate = false\n var boundsChanged = false\n if('bounds' in options) {\n var bounds = options.bounds\ni_loop:\n for(var i=0; i<2; ++i) {\n for(var j=0; j<3; ++j) {\n if(bounds[i][j] !== this.bounds[i][j]) {\n boundsChanged = true\n }\n this.bounds[i][j] = bounds[i][j]\n }\n }\n }\n if('ticks' in options) {\n nextTicks = options.ticks\n ticksUpdate = true\n this.autoTicks = false\n for(var i=0; i<3; ++i) {\n this.tickSpacing[i] = 0.0\n }\n } else if(NUMBER('tickSpacing')) {\n this.autoTicks = true\n boundsChanged = true\n }\n\n if(this._firstInit) {\n if(!('ticks' in options || 'tickSpacing' in options)) {\n this.autoTicks = true\n }\n\n //Force tick recomputation on first update\n boundsChanged = true\n ticksUpdate = true\n this._firstInit = false\n }\n\n if(boundsChanged && this.autoTicks) {\n nextTicks = Ticks.create(this.bounds, this.tickSpacing)\n ticksUpdate = true\n }\n\n //Compare next ticks to previous ticks, only update if needed\n if(ticksUpdate) {\n for(var i=0; i<3; ++i) {\n nextTicks[i].sort(function(a,b) {\n return a.x-b.x\n })\n }\n if(Ticks.equal(nextTicks, this.ticks)) {\n ticksUpdate = false\n } else {\n this.ticks = nextTicks\n }\n }\n\n //Parse tick properties\n BOOLEAN('tickEnable')\n if(STRING('tickFont')) {\n ticksUpdate = true //If font changes, must rebuild vbo\n }\n NUMBER('tickSize')\n NUMBER('tickAngle')\n NUMBER('tickPad')\n COLOR('tickColor')\n\n //Axis labels\n var labelUpdate = STRING('labels')\n if(STRING('labelFont')) {\n labelUpdate = true\n }\n BOOLEAN('labelEnable')\n NUMBER('labelSize')\n NUMBER('labelPad')\n COLOR('labelColor')\n\n //Axis lines\n BOOLEAN('lineEnable')\n BOOLEAN('lineMirror')\n NUMBER('lineWidth')\n COLOR('lineColor')\n\n //Axis line ticks\n BOOLEAN('lineTickEnable')\n BOOLEAN('lineTickMirror')\n NUMBER('lineTickLength')\n NUMBER('lineTickWidth')\n COLOR('lineTickColor')\n\n //Grid lines\n BOOLEAN('gridEnable')\n NUMBER('gridWidth')\n COLOR('gridColor')\n\n //Zero line\n BOOLEAN('zeroEnable')\n COLOR('zeroLineColor')\n NUMBER('zeroLineWidth')\n\n //Background\n BOOLEAN('backgroundEnable')\n COLOR('backgroundColor')\n\n //Update text if necessary\n if(!this._text) {\n this._text = createText(\n this.gl,\n this.bounds,\n this.labels,\n this.labelFont,\n this.ticks,\n this.tickFont)\n } else if(this._text && (labelUpdate || ticksUpdate)) {\n this._text.update(\n this.bounds,\n this.labels,\n this.labelFont,\n this.ticks,\n this.tickFont)\n }\n\n //Update lines if necessary\n if(this._lines && ticksUpdate) {\n this._lines.dispose()\n this._lines = null\n }\n if(!this._lines) {\n this._lines = createLines(this.gl, this.bounds, this.ticks)\n }\n}\n\nfunction OffsetInfo() {\n this.primalOffset = [0,0,0]\n this.primalMinor = [0,0,0]\n this.mirrorOffset = [0,0,0]\n this.mirrorMinor = [0,0,0]\n}\n\nvar LINE_OFFSET = [ new OffsetInfo(), new OffsetInfo(), new OffsetInfo() ]\n\nfunction computeLineOffset(result, i, bounds, cubeEdges, cubeAxis) {\n var primalOffset = result.primalOffset\n var primalMinor = result.primalMinor\n var dualOffset = result.mirrorOffset\n var dualMinor = result.mirrorMinor\n var e = cubeEdges[i]\n\n //Calculate offsets\n for(var j=0; j<3; ++j) {\n if(i === j) {\n continue\n }\n var a = primalOffset,\n b = dualOffset,\n c = primalMinor,\n d = dualMinor\n if(e & (1< 0) {\n c[j] = -1\n d[j] = 0\n } else {\n c[j] = 0\n d[j] = +1\n }\n }\n}\n\nvar CUBE_ENABLE = [0,0,0]\nvar DEFAULT_PARAMS = {\n model: identity,\n view: identity,\n projection: identity,\n _ortho: false\n}\n\nproto.isOpaque = function() {\n return true\n}\n\nproto.isTransparent = function() {\n return false\n}\n\nproto.drawTransparent = function(params) {}\n\nvar ALIGN_OPTION_AUTO = 0 // i.e. as defined in the shader the text would rotate to stay upwards range: [-90,90]\n\nvar PRIMAL_MINOR = [0,0,0]\nvar MIRROR_MINOR = [0,0,0]\nvar PRIMAL_OFFSET = [0,0,0]\n\nproto.draw = function(params) {\n params = params || DEFAULT_PARAMS\n\n var gl = this.gl\n\n //Geometry for camera and axes\n var model = params.model || identity\n var view = params.view || identity\n var projection = params.projection || identity\n var bounds = this.bounds\n var isOrtho = params._ortho || false\n\n //Unpack axis info\n var cubeParams = getCubeProperties(model, view, projection, bounds, isOrtho)\n var cubeEdges = cubeParams.cubeEdges\n var cubeAxis = cubeParams.axis\n\n var cx = view[12]\n var cy = view[13]\n var cz = view[14]\n var cw = view[15]\n\n var orthoFix = (isOrtho) ? 2 : 1 // double up padding for orthographic ticks & labels\n var pixelScaleF = orthoFix * this.pixelRatio * (projection[3]*cx + projection[7]*cy + projection[11]*cz + projection[15]*cw) / gl.drawingBufferHeight\n\n for(var i=0; i<3; ++i) {\n this.lastCubeProps.cubeEdges[i] = cubeEdges[i]\n this.lastCubeProps.axis[i] = cubeAxis[i]\n }\n\n //Compute axis info\n var lineOffset = LINE_OFFSET\n for(var i=0; i<3; ++i) {\n computeLineOffset(\n LINE_OFFSET[i],\n i,\n this.bounds,\n cubeEdges,\n cubeAxis)\n }\n\n //Set up state parameters\n var gl = this.gl\n\n //Draw background first\n var cubeEnable = CUBE_ENABLE\n for(var i=0; i<3; ++i) {\n if(this.backgroundEnable[i]) {\n cubeEnable[i] = cubeAxis[i]\n } else {\n cubeEnable[i] = 0\n }\n }\n\n this._background.draw(\n model,\n view,\n projection,\n bounds,\n cubeEnable,\n this.backgroundColor)\n\n //Draw lines\n this._lines.bind(\n model,\n view,\n projection,\n this)\n\n //First draw grid lines and zero lines\n for(var i=0; i<3; ++i) {\n var x = [0,0,0]\n if(cubeAxis[i] > 0) {\n x[i] = bounds[1][i]\n } else {\n x[i] = bounds[0][i]\n }\n\n //Draw grid lines\n for(var j=0; j<2; ++j) {\n var u = (i + 1 + j) % 3\n var v = (i + 1 + (j^1)) % 3\n if(this.gridEnable[u]) {\n this._lines.drawGrid(u, v, this.bounds, x, this.gridColor[u], this.gridWidth[u]*this.pixelRatio)\n }\n }\n\n //Draw zero lines (need to do this AFTER all grid lines are drawn)\n for(var j=0; j<2; ++j) {\n var u = (i + 1 + j) % 3\n var v = (i + 1 + (j^1)) % 3\n if(this.zeroEnable[v]) {\n //Check if zero line in bounds\n if(Math.min(bounds[0][v], bounds[1][v]) <= 0 && Math.max(bounds[0][v], bounds[1][v]) >= 0) {\n this._lines.drawZero(u, v, this.bounds, x, this.zeroLineColor[v], this.zeroLineWidth[v]*this.pixelRatio)\n }\n }\n }\n }\n\n //Then draw axis lines and tick marks\n for(var i=0; i<3; ++i) {\n\n //Draw axis lines\n if(this.lineEnable[i]) {\n this._lines.drawAxisLine(i, this.bounds, lineOffset[i].primalOffset, this.lineColor[i], this.lineWidth[i]*this.pixelRatio)\n }\n if(this.lineMirror[i]) {\n this._lines.drawAxisLine(i, this.bounds, lineOffset[i].mirrorOffset, this.lineColor[i], this.lineWidth[i]*this.pixelRatio)\n }\n\n //Compute minor axes\n var primalMinor = copyVec3(PRIMAL_MINOR, lineOffset[i].primalMinor)\n var mirrorMinor = copyVec3(MIRROR_MINOR, lineOffset[i].mirrorMinor)\n var tickLength = this.lineTickLength\n for(var j=0; j<3; ++j) {\n var scaleFactor = pixelScaleF / model[5*j]\n primalMinor[j] *= tickLength[j] * scaleFactor\n mirrorMinor[j] *= tickLength[j] * scaleFactor\n }\n\n\n\n //Draw axis line ticks\n if(this.lineTickEnable[i]) {\n this._lines.drawAxisTicks(i, lineOffset[i].primalOffset, primalMinor, this.lineTickColor[i], this.lineTickWidth[i]*this.pixelRatio)\n }\n if(this.lineTickMirror[i]) {\n this._lines.drawAxisTicks(i, lineOffset[i].mirrorOffset, mirrorMinor, this.lineTickColor[i], this.lineTickWidth[i]*this.pixelRatio)\n }\n }\n this._lines.unbind()\n\n //Draw text sprites\n this._text.bind(\n model,\n view,\n projection,\n this.pixelRatio)\n\n var alignOpt // options in shader are from this list {-1, 0, 1, 2, 3, ..., n}\n // -1: backward compatible\n // 0: raw data\n // 1: auto align, free angles\n // 2: auto align, horizontal or vertical\n //3-n: auto align, round to n directions e.g. 12 -> round to angles with 30-degree steps\n\n var hv_ratio = 0.5 // can have an effect on the ratio between horizontals and verticals when using option 2\n\n var enableAlign\n var alignDir\n\n function alignTo(i) {\n alignDir = [0,0,0]\n alignDir[i] = 1\n }\n\n function solveTickAlignments(i, minor, major) {\n\n var i1 = (i + 1) % 3\n var i2 = (i + 2) % 3\n\n var A = minor[i1]\n var B = minor[i2]\n var C = major[i1]\n var D = major[i2]\n\n if ((A > 0) && (D > 0)) { alignTo(i1); return; }\n else if ((A > 0) && (D < 0)) { alignTo(i1); return; }\n else if ((A < 0) && (D > 0)) { alignTo(i1); return; }\n else if ((A < 0) && (D < 0)) { alignTo(i1); return; }\n else if ((B > 0) && (C > 0)) { alignTo(i2); return; }\n else if ((B > 0) && (C < 0)) { alignTo(i2); return; }\n else if ((B < 0) && (C > 0)) { alignTo(i2); return; }\n else if ((B < 0) && (C < 0)) { alignTo(i2); return; }\n }\n\n for(var i=0; i<3; ++i) {\n\n var minor = lineOffset[i].primalMinor\n var major = lineOffset[i].mirrorMinor\n\n var offset = copyVec3(PRIMAL_OFFSET, lineOffset[i].primalOffset)\n\n for(var j=0; j<3; ++j) {\n if(this.lineTickEnable[i]) {\n offset[j] += pixelScaleF * minor[j] * Math.max(this.lineTickLength[j], 0) / model[5*j]\n }\n }\n\n var axis = [0,0,0]\n axis[i] = 1\n\n //Draw tick text\n if(this.tickEnable[i]) {\n\n if(this.tickAngle[i] === -3600) {\n this.tickAngle[i] = 0\n this.tickAlign[i] = 'auto'\n } else {\n this.tickAlign[i] = -1\n }\n\n enableAlign = 1;\n\n alignOpt = [this.tickAlign[i], hv_ratio, enableAlign]\n if(alignOpt[0] === 'auto') alignOpt[0] = ALIGN_OPTION_AUTO\n else alignOpt[0] = parseInt('' + alignOpt[0])\n\n alignDir = [0,0,0]\n solveTickAlignments(i, minor, major)\n\n //Add tick padding\n for(var j=0; j<3; ++j) {\n offset[j] += pixelScaleF * minor[j] * this.tickPad[j] / model[5*j]\n }\n\n //Draw axis\n this._text.drawTicks(\n i,\n this.tickSize[i],\n this.tickAngle[i],\n offset,\n this.tickColor[i],\n axis,\n alignDir,\n alignOpt)\n }\n\n //Draw labels\n if(this.labelEnable[i]) {\n\n enableAlign = 0\n alignDir = [0,0,0]\n if(this.labels[i].length > 4) { // for large label axis enable alignDir to axis\n alignTo(i)\n enableAlign = 1\n }\n\n alignOpt = [this.labelAlign[i], hv_ratio, enableAlign]\n if(alignOpt[0] === 'auto') alignOpt[0] = ALIGN_OPTION_AUTO\n else alignOpt[0] = parseInt('' + alignOpt[0])\n\n //Add label padding\n for(var j=0; j<3; ++j) {\n offset[j] += pixelScaleF * minor[j] * this.labelPad[j] / model[5*j]\n }\n offset[i] += 0.5 * (bounds[0][i] + bounds[1][i])\n\n //Draw axis\n this._text.drawLabel(\n i,\n this.labelSize[i],\n this.labelAngle[i],\n offset,\n this.labelColor[i],\n [0,0,0],\n alignDir,\n alignOpt)\n }\n }\n\n this._text.unbind()\n}\n\nproto.dispose = function() {\n this._text.dispose()\n this._lines.dispose()\n this._background.dispose()\n this._lines = null\n this._text = null\n this._background = null\n this.gl = null\n}\n\nfunction createAxes(gl, options) {\n var axes = new Axes(gl)\n axes.update(options)\n return axes\n}\n\n},{\"./lib/background.js\":71,\"./lib/cube.js\":72,\"./lib/lines.js\":73,\"./lib/text.js\":75,\"./lib/ticks.js\":76}],71:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = createBackgroundCube\n\nvar createBuffer = _glvis_('gl-buffer')\nvar createVAO = _glvis_('gl-vao')\nvar createShader = _glvis_('./shaders').bg\n\nfunction BackgroundCube(gl, buffer, vao, shader) {\n this.gl = gl\n this.buffer = buffer\n this.vao = vao\n this.shader = shader\n}\n\nvar proto = BackgroundCube.prototype\n\nproto.draw = function(model, view, projection, bounds, enable, colors) {\n var needsBG = false\n for(var i=0; i<3; ++i) {\n needsBG = needsBG || enable[i]\n }\n if(!needsBG) {\n return\n }\n\n var gl = this.gl\n\n gl.enable(gl.POLYGON_OFFSET_FILL)\n gl.polygonOffset(1, 2)\n\n this.shader.bind()\n this.shader.uniforms = {\n model: model,\n view: view,\n projection: projection,\n bounds: bounds,\n enable: enable,\n colors: colors\n }\n this.vao.bind()\n this.vao.draw(this.gl.TRIANGLES, 36)\n this.vao.unbind()\n\n gl.disable(gl.POLYGON_OFFSET_FILL)\n}\n\nproto.dispose = function() {\n this.vao.dispose()\n this.buffer.dispose()\n this.shader.dispose()\n}\n\nfunction createBackgroundCube(gl) {\n //Create cube vertices\n var vertices = []\n var indices = []\n var ptr = 0\n for(var d=0; d<3; ++d) {\n var u = (d+1) % 3\n var v = (d+2) % 3\n var x = [0,0,0]\n var c = [0,0,0]\n for(var s=-1; s<=1; s+=2) {\n indices.push(ptr, ptr+2, ptr+1,\n ptr+1, ptr+2, ptr+3)\n x[d] = s\n c[d] = s\n for(var i=-1; i<=1; i+=2) {\n x[u] = i\n for(var j=-1; j<=1; j+=2) {\n x[v] = j\n vertices.push(x[0], x[1], x[2],\n c[0], c[1], c[2])\n ptr += 1\n }\n }\n //Swap u and v\n var tt = u\n u = v\n v = tt\n }\n }\n\n //Allocate buffer and vertex array\n var buffer = createBuffer(gl, new Float32Array(vertices))\n var elements = createBuffer(gl, new Uint16Array(indices), gl.ELEMENT_ARRAY_BUFFER)\n var vao = createVAO(gl, [\n {\n buffer: buffer,\n type: gl.FLOAT,\n size: 3,\n offset: 0,\n stride: 24\n },\n {\n buffer: buffer,\n type: gl.FLOAT,\n size: 3,\n offset: 12,\n stride: 24\n }\n ], elements)\n\n //Create shader object\n var shader = createShader(gl)\n shader.attributes.position.location = 0\n shader.attributes.normal.location = 1\n\n return new BackgroundCube(gl, buffer, vao, shader)\n}\n\n},{\"./shaders\":74,\"gl-buffer\":78,\"gl-vao\":150}],72:[function(_glvis_,module,exports){\n\"use strict\"\n\nmodule.exports = getCubeEdges\n\nvar bits = _glvis_('bit-twiddle')\nvar multiply = _glvis_('gl-mat4/multiply')\nvar splitPoly = _glvis_('split-polygon')\nvar orient = _glvis_('robust-orientation')\n\nvar mvp = new Array(16)\nvar pCubeVerts = new Array(8)\nvar cubeVerts = new Array(8)\nvar x = new Array(3)\nvar zero3 = [0,0,0]\n\n;(function() {\n for(var i=0; i<8; ++i) {\n pCubeVerts[i] =[1,1,1,1]\n cubeVerts[i] = [1,1,1]\n }\n})()\n\n\nfunction transformHg(result, x, mat) {\n for(var i=0; i<4; ++i) {\n result[i] = mat[12+i]\n for(var j=0; j<3; ++j) {\n result[i] += x[j]*mat[4*j+i]\n }\n }\n}\n\nvar FRUSTUM_PLANES = [\n [ 0, 0, 1, 0, 0],\n [ 0, 0,-1, 1, 0],\n [ 0,-1, 0, 1, 0],\n [ 0, 1, 0, 1, 0],\n [-1, 0, 0, 1, 0],\n [ 1, 0, 0, 1, 0]\n]\n\nfunction polygonArea(p) {\n for(var i=0; i o0) {\n closest |= 1< o0) {\n closest |= 1< cubeVerts[i][1]) {\n bottom = i\n }\n }\n\n //Find left/right neighbors of bottom vertex\n var left = -1\n for(var i=0; i<3; ++i) {\n var idx = bottom ^ (1< cubeVerts[right][0]) {\n right = idx\n }\n }\n\n //Determine edge axis coordinates\n var cubeEdges = CUBE_EDGES\n cubeEdges[0] = cubeEdges[1] = cubeEdges[2] = 0\n cubeEdges[bits.log2(left^bottom)] = bottom&left\n cubeEdges[bits.log2(bottom^right)] = bottom&right\n var top = right ^ 7\n if(top === closest || top === farthest) {\n top = left ^ 7\n cubeEdges[bits.log2(right^top)] = top&right\n } else {\n cubeEdges[bits.log2(left^top)] = top&left\n }\n\n //Determine visible faces\n var axis = CUBE_AXIS\n var cutCorner = closest\n for(var d=0; d<3; ++d) {\n if(cutCorner & (1< HALF_PI) && (b <= ONE_AND_HALF_PI)) ?\\n b - PI :\\n b;\\n}\\n\\nfloat look_horizontal_or_vertical(float a, float ratio) {\\n // ratio controls the ratio between being horizontal to (vertical + horizontal)\\n // if ratio is set to 0.5 then it is 50%, 50%.\\n // when using a higher ratio e.g. 0.75 the result would\\n // likely be more horizontal than vertical.\\n\\n float b = positive_angle(a);\\n\\n return\\n (b < ( ratio) * HALF_PI) ? 0.0 :\\n (b < (2.0 - ratio) * HALF_PI) ? -HALF_PI :\\n (b < (2.0 + ratio) * HALF_PI) ? 0.0 :\\n (b < (4.0 - ratio) * HALF_PI) ? HALF_PI :\\n 0.0;\\n}\\n\\nfloat roundTo(float a, float b) {\\n return float(b * floor((a + 0.5 * b) / b));\\n}\\n\\nfloat look_round_n_directions(float a, int n) {\\n float b = positive_angle(a);\\n float div = TWO_PI / float(n);\\n float c = roundTo(b, div);\\n return look_upwards(c);\\n}\\n\\nfloat applyAlignOption(float rawAngle, float delta) {\\n return\\n (option > 2) ? look_round_n_directions(rawAngle + delta, option) : // option 3-n: round to n directions\\n (option == 2) ? look_horizontal_or_vertical(rawAngle + delta, hv_ratio) : // horizontal or vertical\\n (option == 1) ? rawAngle + delta : // use free angle, and flip to align with one direction of the axis\\n (option == 0) ? look_upwards(rawAngle) : // use free angle, and stay upwards\\n (option ==-1) ? 0.0 : // useful for backward compatibility, all texts remains horizontal\\n rawAngle; // otherwise return back raw input angle\\n}\\n\\nbool isAxisTitle = (axis.x == 0.0) &&\\n (axis.y == 0.0) &&\\n (axis.z == 0.0);\\n\\nvoid main() {\\n //Compute world offset\\n float axisDistance = position.z;\\n vec3 dataPosition = axisDistance * axis + offset;\\n\\n float beta = angle; // i.e. user defined attributes for each tick\\n\\n float axisAngle;\\n float clipAngle;\\n float flip;\\n\\n if (enableAlign) {\\n axisAngle = (isAxisTitle) ? HALF_PI :\\n computeViewAngle(dataPosition, dataPosition + axis);\\n clipAngle = computeViewAngle(dataPosition, dataPosition + alignDir);\\n\\n axisAngle += (sin(axisAngle) < 0.0) ? PI : 0.0;\\n clipAngle += (sin(clipAngle) < 0.0) ? PI : 0.0;\\n\\n flip = (dot(vec2(cos(axisAngle), sin(axisAngle)),\\n vec2(sin(clipAngle),-cos(clipAngle))) > 0.0) ? 1.0 : 0.0;\\n\\n beta += applyAlignOption(clipAngle, flip * PI);\\n }\\n\\n //Compute plane offset\\n vec2 planeCoord = position.xy * pixelScale;\\n\\n mat2 planeXform = scale * mat2(\\n cos(beta), sin(beta),\\n -sin(beta), cos(beta)\\n );\\n\\n vec2 viewOffset = 2.0 * planeXform * planeCoord / resolution;\\n\\n //Compute clip position\\n vec3 clipPosition = project(dataPosition);\\n\\n //Apply text offset in clip coordinates\\n clipPosition += vec3(viewOffset, 0.0);\\n\\n //Done\\n gl_Position = vec4(clipPosition, 1.0);\\n}\"])\nvar textFrag = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nuniform vec4 color;\\nvoid main() {\\n gl_FragColor = color;\\n}\"])\nexports.text = function(gl) {\n return createShader(gl, textVert, textFrag, null, [\n {name: 'position', type: 'vec3'}\n ])\n}\n\nvar bgVert = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position;\\nattribute vec3 normal;\\n\\nuniform mat4 model, view, projection;\\nuniform vec3 enable;\\nuniform vec3 bounds[2];\\n\\nvarying vec3 colorChannel;\\n\\nvoid main() {\\n\\n vec3 signAxis = sign(bounds[1] - bounds[0]);\\n\\n vec3 realNormal = signAxis * normal;\\n\\n if(dot(realNormal, enable) > 0.0) {\\n vec3 minRange = min(bounds[0], bounds[1]);\\n vec3 maxRange = max(bounds[0], bounds[1]);\\n vec3 nPosition = mix(minRange, maxRange, 0.5 * (position + 1.0));\\n gl_Position = projection * view * model * vec4(nPosition, 1.0);\\n } else {\\n gl_Position = vec4(0,0,0,0);\\n }\\n\\n colorChannel = abs(realNormal);\\n}\"])\nvar bgFrag = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nuniform vec4 colors[3];\\n\\nvarying vec3 colorChannel;\\n\\nvoid main() {\\n gl_FragColor = colorChannel.x * colors[0] +\\n colorChannel.y * colors[1] +\\n colorChannel.z * colors[2];\\n}\"])\nexports.bg = function(gl) {\n return createShader(gl, bgVert, bgFrag, null, [\n {name: 'position', type: 'vec3'},\n {name: 'normal', type: 'vec3'}\n ])\n}\n\n},{\"gl-shader\":132,\"glslify\":231}],75:[function(_glvis_,module,exports){\n(function (process){(function (){\n\"use strict\"\n\nmodule.exports = createTextSprites\n\nvar createBuffer = _glvis_('gl-buffer')\nvar createVAO = _glvis_('gl-vao')\nvar vectorizeText = _glvis_('vectorize-text')\nvar createShader = _glvis_('./shaders').text\n\nvar globals = window || process.global || {}\nvar __TEXT_CACHE = globals.__TEXT_CACHE || {}\nglobals.__TEXT_CACHE = {}\n\n//Vertex buffer format for text is:\n//\n/// [x,y,z] = Spatial coordinate\n//\n\nvar VERTEX_SIZE = 3\n\nfunction TextSprites(\n gl,\n shader,\n buffer,\n vao) {\n this.gl = gl\n this.shader = shader\n this.buffer = buffer\n this.vao = vao\n this.tickOffset =\n this.tickCount =\n this.labelOffset =\n this.labelCount = null\n}\n\nvar proto = TextSprites.prototype\n\n//Bind textures for rendering\nvar SHAPE = [0,0]\nproto.bind = function(model, view, projection, pixelScale) {\n this.vao.bind()\n this.shader.bind()\n var uniforms = this.shader.uniforms\n uniforms.model = model\n uniforms.view = view\n uniforms.projection = projection\n uniforms.pixelScale = pixelScale\n SHAPE[0] = this.gl.drawingBufferWidth\n SHAPE[1] = this.gl.drawingBufferHeight\n this.shader.uniforms.resolution = SHAPE\n}\n\nproto.unbind = function() {\n this.vao.unbind()\n}\n\nproto.update = function(bounds, labels, labelFont, ticks, tickFont) {\n var data = []\n\n function addItem(t, text, font, size, lineSpacing, styletags) {\n var fontcache = __TEXT_CACHE[font]\n if(!fontcache) {\n fontcache = __TEXT_CACHE[font] = {}\n }\n var mesh = fontcache[text]\n if(!mesh) {\n mesh = fontcache[text] = tryVectorizeText(text, {\n triangles: true,\n font: font,\n textAlign: 'center',\n textBaseline: 'middle',\n lineSpacing: lineSpacing,\n styletags: styletags\n })\n }\n var scale = (size || 12) / 12\n var positions = mesh.positions\n var cells = mesh.cells\n for(var i=0, nc=cells.length; i=0; --j) {\n var p = positions[c[j]]\n data.push(scale*p[0], -scale*p[1], t)\n }\n }\n }\n\n //Generate sprites for all 3 axes, store data in texture atlases\n var tickOffset = [0,0,0]\n var tickCount = [0,0,0]\n var labelOffset = [0,0,0]\n var labelCount = [0,0,0]\n var lineSpacing = 1.25\n var styletags = {\n breaklines:true,\n bolds: true,\n italics: true,\n subscripts:true,\n superscripts:true\n }\n for(var d=0; d<3; ++d) {\n\n //Generate label\n labelOffset[d] = (data.length/VERTEX_SIZE)|0\n addItem(\n 0.5*(bounds[0][d]+bounds[1][d]),\n labels[d],\n labelFont[d],\n 12, // labelFontSize\n lineSpacing,\n styletags\n )\n labelCount[d] = ((data.length/VERTEX_SIZE)|0) - labelOffset[d]\n\n //Generate sprites for tick marks\n tickOffset[d] = (data.length/VERTEX_SIZE)|0\n for(var i=0; i= 0) {\n sigFigs = stepStr.length - u - 1\n }\n var shift = Math.pow(10, sigFigs)\n var x = Math.round(spacing * i * shift)\n var xstr = x + \"\"\n if(xstr.indexOf(\"e\") >= 0) {\n return xstr\n }\n var xi = x / shift, xf = x % shift\n if(x < 0) {\n xi = -Math.ceil(xi)|0\n xf = (-xf)|0\n } else {\n xi = Math.floor(xi)|0\n xf = xf|0\n }\n var xis = \"\" + xi \n if(x < 0) {\n xis = \"-\" + xis\n }\n if(sigFigs) {\n var xs = \"\" + xf\n while(xs.length < sigFigs) {\n xs = \"0\" + xs\n }\n return xis + \".\" + xs\n } else {\n return xis\n }\n}\n\nfunction defaultTicks(bounds, tickSpacing) {\n var array = []\n for(var d=0; d<3; ++d) {\n var ticks = []\n var m = 0.5*(bounds[0][d]+bounds[1][d])\n for(var t=0; t*tickSpacing[d]<=bounds[1][d]; ++t) {\n ticks.push({x: t*tickSpacing[d], text: prettyPrint(tickSpacing[d], t)})\n }\n for(var t=-1; t*tickSpacing[d]>=bounds[0][d]; --t) {\n ticks.push({x: t*tickSpacing[d], text: prettyPrint(tickSpacing[d], t)})\n }\n array.push(ticks)\n }\n return array\n}\n\nfunction ticksEqual(ticksA, ticksB) {\n for(var i=0; i<3; ++i) {\n if(ticksA[i].length !== ticksB[i].length) {\n return false\n }\n for(var j=0; j len) {\n throw new Error(\"gl-buffer: If resizing buffer, must not specify offset\")\n }\n gl.bufferSubData(type, offset, data)\n return len\n}\n\nfunction makeScratchTypeArray(array, dtype) {\n var res = pool.malloc(array.length, dtype)\n var n = array.length\n for(var i=0; i=0; --i) {\n if(stride[i] !== n) {\n return false\n }\n n *= shape[i]\n }\n return true\n}\n\nproto.update = function(array, offset) {\n if(typeof offset !== \"number\") {\n offset = -1\n }\n this.bind()\n if(typeof array === \"object\" && typeof array.shape !== \"undefined\") { //ndarray\n var dtype = array.dtype\n if(SUPPORTED_TYPES.indexOf(dtype) < 0) {\n dtype = \"float32\"\n }\n if(this.type === this.gl.ELEMENT_ARRAY_BUFFER) {\n var ext = gl.getExtension('OES_element_index_uint')\n if(ext && dtype !== \"uint16\") {\n dtype = \"uint32\"\n } else {\n dtype = \"uint16\"\n }\n }\n if(dtype === array.dtype && isPacked(array.shape, array.stride)) {\n if(array.offset === 0 && array.data.length === array.shape[0]) {\n this.length = updateTypeArray(this.gl, this.type, this.length, this.usage, array.data, offset)\n } else {\n this.length = updateTypeArray(this.gl, this.type, this.length, this.usage, array.data.subarray(array.offset, array.shape[0]), offset)\n }\n } else {\n var tmp = pool.malloc(array.size, dtype)\n var ndt = ndarray(tmp, array.shape)\n ops.assign(ndt, array)\n if(offset < 0) {\n this.length = updateTypeArray(this.gl, this.type, this.length, this.usage, tmp, offset)\n } else {\n this.length = updateTypeArray(this.gl, this.type, this.length, this.usage, tmp.subarray(0, array.size), offset)\n }\n pool.free(tmp)\n }\n } else if(Array.isArray(array)) { //Vanilla array\n var t\n if(this.type === this.gl.ELEMENT_ARRAY_BUFFER) {\n t = makeScratchTypeArray(array, \"uint16\")\n } else {\n t = makeScratchTypeArray(array, \"float32\")\n }\n if(offset < 0) {\n this.length = updateTypeArray(this.gl, this.type, this.length, this.usage, t, offset)\n } else {\n this.length = updateTypeArray(this.gl, this.type, this.length, this.usage, t.subarray(0, array.length), offset)\n }\n pool.free(t)\n } else if(typeof array === \"object\" && typeof array.length === \"number\") { //Typed array\n this.length = updateTypeArray(this.gl, this.type, this.length, this.usage, array, offset)\n } else if(typeof array === \"number\" || array === undefined) { //Number/default\n if(offset >= 0) {\n throw new Error(\"gl-buffer: Cannot specify offset when resizing buffer\")\n }\n array = array | 0\n if(array <= 0) {\n array = 1\n }\n this.gl.bufferData(this.type, array|0, this.usage)\n this.length = array\n } else { //Error, case should not happen\n throw new Error(\"gl-buffer: Invalid data type\")\n }\n}\n\nfunction createBuffer(gl, data, type, usage) {\n type = type || gl.ARRAY_BUFFER\n usage = usage || gl.DYNAMIC_DRAW\n if(type !== gl.ARRAY_BUFFER && type !== gl.ELEMENT_ARRAY_BUFFER) {\n throw new Error(\"gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER\")\n }\n if(usage !== gl.DYNAMIC_DRAW && usage !== gl.STATIC_DRAW && usage !== gl.STREAM_DRAW) {\n throw new Error(\"gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW\")\n }\n var handle = gl.createBuffer()\n var result = new GLBuffer(gl, type, handle, 0, usage)\n result.update(data)\n return result\n}\n\nmodule.exports = createBuffer\n\n},{\"ndarray\":259,\"ndarray-ops\":254,\"typedarray-pool\":308}],79:[function(_glvis_,module,exports){\n\"use strict\";\n\nvar vec3 = _glvis_('gl-vec3');\n\nmodule.exports = function(vectorfield, bounds) {\n\tvar positions = vectorfield.positions;\n\tvar vectors = vectorfield.vectors;\n\tvar geo = {\n\t\tpositions: [],\n\t\tvertexIntensity: [],\n\t\tvertexIntensityBounds: vectorfield.vertexIntensityBounds,\n\t\tvectors: [],\n\t\tcells: [],\n\t\tconeOffset: vectorfield.coneOffset,\n\t\tcolormap: vectorfield.colormap\n\t};\n\n\tif (vectorfield.positions.length === 0) {\n\t\tif (bounds) {\n\t\t\tbounds[0] = [0,0,0];\n\t\t\tbounds[1] = [0,0,0];\n\t\t}\n\t\treturn geo;\n\t}\n\n\t// Compute bounding box for the dataset.\n\t// Compute maximum velocity for the dataset to use for scaling the cones.\n\tvar maxNorm = 0;\n\tvar minX = Infinity, maxX = -Infinity;\n\tvar minY = Infinity, maxY = -Infinity;\n\tvar minZ = Infinity, maxZ = -Infinity;\n\tvar p2 = null;\n\tvar u2 = null;\n\tvar positionVectors = [];\n\tvar vectorScale = Infinity;\n\tvar skipIt = false;\n\tfor (var i = 0; i < positions.length; i++) {\n\t\tvar p = positions[i];\n\t\tminX = Math.min(p[0], minX);\n\t\tmaxX = Math.max(p[0], maxX);\n\t\tminY = Math.min(p[1], minY);\n\t\tmaxY = Math.max(p[1], maxY);\n\t\tminZ = Math.min(p[2], minZ);\n\t\tmaxZ = Math.max(p[2], maxZ);\n\t\tvar u = vectors[i];\n\n\t\tif (vec3.length(u) > maxNorm) {\n\t\t\tmaxNorm = vec3.length(u);\n\t\t}\n\t\tif (i) {\n\t\t\t// Find vector scale [w/ units of time] using \"successive\" positions\n\t\t\t// (not \"adjacent\" with would be O(n^2)),\n\t\t\t//\n\t\t\t// The vector scale corresponds to the minimum \"time\" to travel across two\n\t\t\t// two adjacent positions at the average velocity of those two adjacent positions\n\n\t\t\tvar q = (2 * vec3.distance(p2, p) / (vec3.length(u2) + vec3.length(u)));\n\t\t\tif(q) {\n\t\t\t\tvectorScale = Math.min(vectorScale, q);\n\t\t\t\tskipIt = false;\n\t\t\t} else {\n\t\t\t\tskipIt = true;\n\t\t\t}\n\t\t}\n\t\tif(!skipIt) {\n\t\t\tp2 = p;\n\t\t\tu2 = u;\n\t\t}\n\t\tpositionVectors.push(u);\n\t}\n\tvar minV = [minX, minY, minZ];\n\tvar maxV = [maxX, maxY, maxZ];\n\tif (bounds) {\n\t\tbounds[0] = minV;\n\t\tbounds[1] = maxV;\n\t}\n\tif (maxNorm === 0) {\n\t\tmaxNorm = 1;\n\t}\n\n\t// Inverted max norm would map vector with norm maxNorm to 1 coord space units in length\n\tvar invertedMaxNorm = 1 / maxNorm;\n\n\tif (!isFinite(vectorScale)) {\n\t\tvectorScale = 1.0;\n\t}\n\tgeo.vectorScale = vectorScale;\n\n\tvar coneScale = vectorfield.coneSize || 0.5;\n\n\tif (vectorfield.absoluteConeSize) {\n\t\tconeScale = vectorfield.absoluteConeSize * invertedMaxNorm;\n\t}\n\n\tgeo.coneScale = coneScale;\n\n\t// Build the cone model.\n\tfor (var i = 0, j = 0; i < positions.length; i++) {\n\t\tvar p = positions[i];\n\t\tvar x = p[0], y = p[1], z = p[2];\n\t\tvar d = positionVectors[i];\n\t\tvar intensity = vec3.length(d) * invertedMaxNorm;\n\t\tfor (var k = 0, l = 8; k < l; k++) {\n\t\t\tgeo.positions.push([x, y, z, j++]);\n\t\t\tgeo.positions.push([x, y, z, j++]);\n\t\t\tgeo.positions.push([x, y, z, j++]);\n\t\t\tgeo.positions.push([x, y, z, j++]);\n\t\t\tgeo.positions.push([x, y, z, j++]);\n\t\t\tgeo.positions.push([x, y, z, j++]);\n\n\t\t\tgeo.vectors.push(d);\n\t\t\tgeo.vectors.push(d);\n\t\t\tgeo.vectors.push(d);\n\t\t\tgeo.vectors.push(d);\n\t\t\tgeo.vectors.push(d);\n\t\t\tgeo.vectors.push(d);\n\n\t\t\tgeo.vertexIntensity.push(intensity, intensity, intensity);\n\t\t\tgeo.vertexIntensity.push(intensity, intensity, intensity);\n\n\t\t\tvar m = geo.positions.length;\n\t\t\tgeo.cells.push([m-6, m-5, m-4], [m-3, m-2, m-1]);\n\t\t}\n\t}\n\n\treturn geo;\n};\n\nvar shaders = _glvis_('./lib/shaders');\nmodule.exports.createMesh = _glvis_('./create_mesh');\nmodule.exports.createConeMesh = function(gl, params) {\n\treturn module.exports.createMesh(gl, params, {\n\t\tshaders: shaders,\n\t\ttraceType: 'cone'\n\t});\n}\n\n},{\"./create_mesh\":80,\"./lib/shaders\":81,\"gl-vec3\":169}],80:[function(_glvis_,module,exports){\n'use strict'\n\nvar createShader = _glvis_('gl-shader')\nvar createBuffer = _glvis_('gl-buffer')\nvar createVAO = _glvis_('gl-vao')\nvar createTexture = _glvis_('gl-texture2d')\nvar multiply = _glvis_('gl-mat4/multiply')\nvar invert = _glvis_('gl-mat4/invert')\nvar ndarray = _glvis_('ndarray')\nvar colormap = _glvis_('colormap')\n\nvar IDENTITY = [\n 1,0,0,0,\n 0,1,0,0,\n 0,0,1,0,\n 0,0,0,1]\n\nfunction VectorMesh(gl\n , texture\n , triShader\n , pickShader\n , trianglePositions\n , triangleVectors\n , triangleIds\n , triangleColors\n , triangleUVs\n , triangleVAO\n , traceType) {\n\n this.gl = gl\n this.pixelRatio = 1\n this.cells = []\n this.positions = []\n this.intensity = []\n this.texture = texture\n this.dirty = true\n\n this.triShader = triShader\n this.pickShader = pickShader\n\n this.trianglePositions = trianglePositions\n this.triangleVectors = triangleVectors\n this.triangleColors = triangleColors\n this.triangleUVs = triangleUVs\n this.triangleIds = triangleIds\n this.triangleVAO = triangleVAO\n this.triangleCount = 0\n\n this.pickId = 1\n this.bounds = [\n [ Infinity, Infinity, Infinity],\n [-Infinity,-Infinity,-Infinity] ]\n this.clipBounds = [\n [-Infinity,-Infinity,-Infinity],\n [ Infinity, Infinity, Infinity] ]\n\n this.lightPosition = [1e5, 1e5, 0]\n this.ambientLight = 0.8\n this.diffuseLight = 0.8\n this.specularLight = 2.0\n this.roughness = 0.5\n this.fresnel = 1.5\n\n this.opacity = 1\n\n this.traceType = traceType\n this.tubeScale = 1 // used in streamtube\n this.coneScale = 2 // used in cone\n this.vectorScale = 1 // used in cone\n this.coneOffset = 0.25 // used in cone\n\n this._model = IDENTITY\n this._view = IDENTITY\n this._projection = IDENTITY\n this._resolution = [1,1]\n}\n\nvar proto = VectorMesh.prototype\n\nproto.isOpaque = function() {\n return this.opacity >= 1\n}\n\nproto.isTransparent = function() {\n return this.opacity < 1\n}\n\nproto.pickSlots = 1\n\nproto.setPickBase = function(id) {\n this.pickId = id\n}\n\nfunction genColormap(param) {\n var colors = colormap({\n colormap: param\n , nshades: 256\n , format: 'rgba'\n })\n\n var result = new Uint8Array(256*4)\n for(var i=0; i<256; ++i) {\n var c = colors[i]\n for(var j=0; j<3; ++j) {\n result[4*i+j] = c[j]\n }\n result[4*i+3] = c[3]*255\n }\n\n return ndarray(result, [256,256,4], [4,0,1])\n}\n\nfunction takeZComponent(array) {\n var n = array.length\n var result = new Array(n)\n for(var i=0; i 0) {\n var shader = this.triShader\n shader.bind()\n shader.uniforms = uniforms\n\n this.triangleVAO.bind()\n gl.drawArrays(gl.TRIANGLES, 0, this.triangleCount*3)\n this.triangleVAO.unbind()\n }\n}\n\nproto.drawPick = function(params) {\n params = params || {}\n\n var gl = this.gl\n\n var model = params.model || IDENTITY\n var view = params.view || IDENTITY\n var projection = params.projection || IDENTITY\n\n var clipBounds = [[-1e6,-1e6,-1e6],[1e6,1e6,1e6]]\n for(var i=0; i<3; ++i) {\n clipBounds[0][i] = Math.max(clipBounds[0][i], this.clipBounds[0][i])\n clipBounds[1][i] = Math.min(clipBounds[1][i], this.clipBounds[1][i])\n }\n\n //Save camera parameters\n this._model = [].slice.call(model)\n this._view = [].slice.call(view)\n this._projection = [].slice.call(projection)\n this._resolution = [gl.drawingBufferWidth, gl.drawingBufferHeight]\n\n var uniforms = {\n model: model,\n view: view,\n projection: projection,\n clipBounds: clipBounds,\n\n tubeScale: this.tubeScale,\n vectorScale: this.vectorScale,\n coneScale: this.coneScale,\n coneOffset: this.coneOffset,\n\n pickId: this.pickId / 255.0,\n }\n\n var shader = this.pickShader\n shader.bind()\n shader.uniforms = uniforms\n\n if(this.triangleCount > 0) {\n this.triangleVAO.bind()\n gl.drawArrays(gl.TRIANGLES, 0, this.triangleCount*3)\n this.triangleVAO.unbind()\n }\n}\n\n\nproto.pick = function(pickData) {\n if(!pickData) {\n return null\n }\n if(pickData.id !== this.pickId) {\n return null\n }\n\n var cellId = pickData.value[0] + 256*pickData.value[1] + 65536*pickData.value[2]\n var cell = this.cells[cellId]\n var pos = this.positions[cell[1]].slice(0, 3)\n\n var result = {\n position: pos,\n dataCoordinate: pos,\n index: Math.floor(cell[1] / 48)\n }\n\n\n if(this.traceType === 'cone') {\n result.index = Math.floor(cell[1] / 48)\n } else if(this.traceType === 'streamtube') {\n result.intensity = this.intensity[cell[1]]\n result.velocity = this.vectors[cell[1]].slice(0, 3)\n result.divergence = this.vectors[cell[1]][3]\n result.index = cellId\n }\n\n return result\n}\n\n\nproto.dispose = function() {\n this.texture.dispose()\n\n this.triShader.dispose()\n this.pickShader.dispose()\n\n this.triangleVAO.dispose()\n this.trianglePositions.dispose()\n this.triangleVectors.dispose()\n this.triangleColors.dispose()\n this.triangleUVs.dispose()\n this.triangleIds.dispose()\n}\n\nfunction createMeshShader(gl, shaders) {\n var shader = createShader(gl,\n shaders.meshShader.vertex,\n shaders.meshShader.fragment,\n null,\n shaders.meshShader.attributes\n )\n\n shader.attributes.position.location = 0\n shader.attributes.color.location = 2\n shader.attributes.uv.location = 3\n shader.attributes.vector.location = 4\n return shader\n}\n\n\nfunction createPickShader(gl, shaders) {\n var shader = createShader(gl,\n shaders.pickShader.vertex,\n shaders.pickShader.fragment,\n null,\n shaders.pickShader.attributes\n )\n\n shader.attributes.position.location = 0\n shader.attributes.id.location = 1\n shader.attributes.vector.location = 4\n return shader\n}\n\n\nfunction createVectorMesh(gl, params, opts) {\n var shaders = opts.shaders\n\n if (arguments.length === 1) {\n params = gl\n gl = params.gl\n }\n\n\n var triShader = createMeshShader(gl, shaders)\n var pickShader = createPickShader(gl, shaders)\n var meshTexture = createTexture(gl,\n ndarray(new Uint8Array([255,255,255,255]), [1,1,4]))\n meshTexture.generateMipmap()\n meshTexture.minFilter = gl.LINEAR_MIPMAP_LINEAR\n meshTexture.magFilter = gl.LINEAR\n\n var trianglePositions = createBuffer(gl)\n var triangleVectors = createBuffer(gl)\n var triangleColors = createBuffer(gl)\n var triangleUVs = createBuffer(gl)\n var triangleIds = createBuffer(gl)\n var triangleVAO = createVAO(gl, [\n { buffer: trianglePositions,\n type: gl.FLOAT,\n size: 4\n },\n { buffer: triangleIds,\n type: gl.UNSIGNED_BYTE,\n size: 4,\n normalized: true\n },\n { buffer: triangleColors,\n type: gl.FLOAT,\n size: 4\n },\n { buffer: triangleUVs,\n type: gl.FLOAT,\n size: 2\n },\n { buffer: triangleVectors,\n type: gl.FLOAT,\n size: 4\n }\n ])\n\n var mesh = new VectorMesh(gl\n , meshTexture\n , triShader\n , pickShader\n , trianglePositions\n , triangleVectors\n , triangleIds\n , triangleColors\n , triangleUVs\n , triangleVAO\n , opts.traceType || 'cone'\n )\n\n mesh.update(params)\n\n return mesh\n}\n\nmodule.exports = createVectorMesh\n\n},{\"colormap\":53,\"gl-buffer\":78,\"gl-mat4/invert\":98,\"gl-mat4/multiply\":100,\"gl-shader\":132,\"gl-texture2d\":146,\"gl-vao\":150,\"ndarray\":259}],81:[function(_glvis_,module,exports){\nvar glslify = _glvis_('glslify')\n\nvar triVertSrc = glslify([\"precision highp float;\\n\\nprecision highp float;\\n#define GLSLIFY 1\\n\\nvec3 getOrthogonalVector(vec3 v) {\\n // Return up-vector for only-z vector.\\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\\n // Assign z = 0, x = -b, y = a:\\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\\n return normalize(vec3(-v.y, v.x, 0.0));\\n } else {\\n return normalize(vec3(0.0, v.z, -v.y));\\n }\\n}\\n\\n// Calculate the cone vertex and normal at the given index.\\n//\\n// The returned vertex is for a cone with its top at origin and height of 1.0,\\n// pointing in the direction of the vector attribute.\\n//\\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\\n// These vertices are used to make up the triangles of the cone by the following:\\n// segment + 0 top vertex\\n// segment + 1 perimeter vertex a+1\\n// segment + 2 perimeter vertex a\\n// segment + 3 center base vertex\\n// segment + 4 perimeter vertex a\\n// segment + 5 perimeter vertex a+1\\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\\n// To go from index to segment, floor(index / 6)\\n// To go from segment to angle, 2*pi * (segment/segmentCount)\\n// To go from index to segment index, index - (segment*6)\\n//\\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\\n\\n const float segmentCount = 8.0;\\n\\n float index = rawIndex - floor(rawIndex /\\n (segmentCount * 6.0)) *\\n (segmentCount * 6.0);\\n\\n float segment = floor(0.001 + index/6.0);\\n float segmentIndex = index - (segment*6.0);\\n\\n normal = -normalize(d);\\n\\n if (segmentIndex > 2.99 && segmentIndex < 3.01) {\\n return mix(vec3(0.0), -d, coneOffset);\\n }\\n\\n float nextAngle = (\\n (segmentIndex > 0.99 && segmentIndex < 1.01) ||\\n (segmentIndex > 4.99 && segmentIndex < 5.01)\\n ) ? 1.0 : 0.0;\\n float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\\n\\n vec3 v1 = mix(d, vec3(0.0), coneOffset);\\n vec3 v2 = v1 - d;\\n\\n vec3 u = getOrthogonalVector(d);\\n vec3 v = normalize(cross(u, d));\\n\\n vec3 x = u * cos(angle) * length(d)*0.25;\\n vec3 y = v * sin(angle) * length(d)*0.25;\\n vec3 v3 = v2 + x + y;\\n if (segmentIndex < 3.0) {\\n vec3 tx = u * sin(angle);\\n vec3 ty = v * -cos(angle);\\n vec3 tangent = tx + ty;\\n normal = normalize(cross(v3 - v1, tangent));\\n }\\n\\n if (segmentIndex == 0.0) {\\n return mix(d, vec3(0.0), coneOffset);\\n }\\n return v3;\\n}\\n\\nattribute vec3 vector;\\nattribute vec4 color, position;\\nattribute vec2 uv;\\n\\nuniform float vectorScale, coneScale, coneOffset;\\nuniform mat4 model, view, projection, inverseModel;\\nuniform vec3 eyePosition, lightPosition;\\n\\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n // Scale the vector magnitude to stay constant with\\n // model & view changes.\\n vec3 normal;\\n vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal);\\n vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\\n\\n //Lighting geometry parameters\\n vec4 cameraCoordinate = view * conePosition;\\n cameraCoordinate.xyz /= cameraCoordinate.w;\\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\\n\\n // vec4 m_position = model * vec4(conePosition, 1.0);\\n vec4 t_position = view * conePosition;\\n gl_Position = projection * t_position;\\n\\n f_color = color;\\n f_data = conePosition.xyz;\\n f_position = position.xyz;\\n f_uv = uv;\\n}\\n\"])\nvar triFragSrc = glslify([\"#extension GL_OES_standard_derivatives : enable\\n\\nprecision highp float;\\n#define GLSLIFY 1\\n\\nfloat beckmannDistribution(float x, float roughness) {\\n float NdotH = max(x, 0.0001);\\n float cos2Alpha = NdotH * NdotH;\\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\\n float roughness2 = roughness * roughness;\\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\\n return exp(tan2Alpha / roughness2) / denom;\\n}\\n\\nfloat cookTorranceSpecular(\\n vec3 lightDirection,\\n vec3 viewDirection,\\n vec3 surfaceNormal,\\n float roughness,\\n float fresnel) {\\n\\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\\n\\n //Half angle vector\\n vec3 H = normalize(lightDirection + viewDirection);\\n\\n //Geometric term\\n float NdotH = max(dot(surfaceNormal, H), 0.0);\\n float VdotH = max(dot(viewDirection, H), 0.000001);\\n float LdotH = max(dot(lightDirection, H), 0.000001);\\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\\n float G = min(1.0, min(G1, G2));\\n \\n //Distribution term\\n float D = beckmannDistribution(NdotH, roughness);\\n\\n //Fresnel term\\n float F = pow(1.0 - VdotN, fresnel);\\n\\n //Multiply terms and done\\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\\n}\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\\nuniform sampler2D texture;\\n\\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\\n vec3 N = normalize(f_normal);\\n vec3 L = normalize(f_lightDirection);\\n vec3 V = normalize(f_eyeDirection);\\n\\n if(gl_FrontFacing) {\\n N = -N;\\n }\\n\\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\\n\\n vec4 surfaceColor = f_color * texture2D(texture, f_uv);\\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\\n\\n gl_FragColor = litColor * opacity;\\n}\\n\"])\nvar pickVertSrc = glslify([\"precision highp float;\\n\\nprecision highp float;\\n#define GLSLIFY 1\\n\\nvec3 getOrthogonalVector(vec3 v) {\\n // Return up-vector for only-z vector.\\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\\n // Assign z = 0, x = -b, y = a:\\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\\n return normalize(vec3(-v.y, v.x, 0.0));\\n } else {\\n return normalize(vec3(0.0, v.z, -v.y));\\n }\\n}\\n\\n// Calculate the cone vertex and normal at the given index.\\n//\\n// The returned vertex is for a cone with its top at origin and height of 1.0,\\n// pointing in the direction of the vector attribute.\\n//\\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\\n// These vertices are used to make up the triangles of the cone by the following:\\n// segment + 0 top vertex\\n// segment + 1 perimeter vertex a+1\\n// segment + 2 perimeter vertex a\\n// segment + 3 center base vertex\\n// segment + 4 perimeter vertex a\\n// segment + 5 perimeter vertex a+1\\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\\n// To go from index to segment, floor(index / 6)\\n// To go from segment to angle, 2*pi * (segment/segmentCount)\\n// To go from index to segment index, index - (segment*6)\\n//\\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\\n\\n const float segmentCount = 8.0;\\n\\n float index = rawIndex - floor(rawIndex /\\n (segmentCount * 6.0)) *\\n (segmentCount * 6.0);\\n\\n float segment = floor(0.001 + index/6.0);\\n float segmentIndex = index - (segment*6.0);\\n\\n normal = -normalize(d);\\n\\n if (segmentIndex > 2.99 && segmentIndex < 3.01) {\\n return mix(vec3(0.0), -d, coneOffset);\\n }\\n\\n float nextAngle = (\\n (segmentIndex > 0.99 && segmentIndex < 1.01) ||\\n (segmentIndex > 4.99 && segmentIndex < 5.01)\\n ) ? 1.0 : 0.0;\\n float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\\n\\n vec3 v1 = mix(d, vec3(0.0), coneOffset);\\n vec3 v2 = v1 - d;\\n\\n vec3 u = getOrthogonalVector(d);\\n vec3 v = normalize(cross(u, d));\\n\\n vec3 x = u * cos(angle) * length(d)*0.25;\\n vec3 y = v * sin(angle) * length(d)*0.25;\\n vec3 v3 = v2 + x + y;\\n if (segmentIndex < 3.0) {\\n vec3 tx = u * sin(angle);\\n vec3 ty = v * -cos(angle);\\n vec3 tangent = tx + ty;\\n normal = normalize(cross(v3 - v1, tangent));\\n }\\n\\n if (segmentIndex == 0.0) {\\n return mix(d, vec3(0.0), coneOffset);\\n }\\n return v3;\\n}\\n\\nattribute vec4 vector;\\nattribute vec4 position;\\nattribute vec4 id;\\n\\nuniform mat4 model, view, projection;\\nuniform float vectorScale, coneScale, coneOffset;\\n\\nvarying vec3 f_position;\\nvarying vec4 f_id;\\n\\nvoid main() {\\n vec3 normal;\\n vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector.xyz), position.w, coneOffset, normal);\\n vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\\n gl_Position = projection * view * conePosition;\\n f_id = id;\\n f_position = position.xyz;\\n}\\n\"])\nvar pickFragSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform float pickId;\\n\\nvarying vec3 f_position;\\nvarying vec4 f_id;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\\n\\n gl_FragColor = vec4(pickId, f_id.xyz);\\n}\"])\n\nexports.meshShader = {\n vertex: triVertSrc,\n fragment: triFragSrc,\n attributes: [\n {name: 'position', type: 'vec4'},\n {name: 'color', type: 'vec4'},\n {name: 'uv', type: 'vec2'},\n {name: 'vector', type: 'vec3'}\n ]\n}\nexports.pickShader = {\n vertex: pickVertSrc,\n fragment: pickFragSrc,\n attributes: [\n {name: 'position', type: 'vec4'},\n {name: 'id', type: 'vec4'},\n {name: 'vector', type: 'vec3'}\n ]\n}\n\n},{\"glslify\":231}],82:[function(_glvis_,module,exports){\nmodule.exports = {\n 0: 'NONE',\n 1: 'ONE',\n 2: 'LINE_LOOP',\n 3: 'LINE_STRIP',\n 4: 'TRIANGLES',\n 5: 'TRIANGLE_STRIP',\n 6: 'TRIANGLE_FAN',\n 256: 'DEPTH_BUFFER_BIT',\n 512: 'NEVER',\n 513: 'LESS',\n 514: 'EQUAL',\n 515: 'LEQUAL',\n 516: 'GREATER',\n 517: 'NOTEQUAL',\n 518: 'GEQUAL',\n 519: 'ALWAYS',\n 768: 'SRC_COLOR',\n 769: 'ONE_MINUS_SRC_COLOR',\n 770: 'SRC_ALPHA',\n 771: 'ONE_MINUS_SRC_ALPHA',\n 772: 'DST_ALPHA',\n 773: 'ONE_MINUS_DST_ALPHA',\n 774: 'DST_COLOR',\n 775: 'ONE_MINUS_DST_COLOR',\n 776: 'SRC_ALPHA_SATURATE',\n 1024: 'STENCIL_BUFFER_BIT',\n 1028: 'FRONT',\n 1029: 'BACK',\n 1032: 'FRONT_AND_BACK',\n 1280: 'INVALID_ENUM',\n 1281: 'INVALID_VALUE',\n 1282: 'INVALID_OPERATION',\n 1285: 'OUT_OF_MEMORY',\n 1286: 'INVALID_FRAMEBUFFER_OPERATION',\n 2304: 'CW',\n 2305: 'CCW',\n 2849: 'LINE_WIDTH',\n 2884: 'CULL_FACE',\n 2885: 'CULL_FACE_MODE',\n 2886: 'FRONT_FACE',\n 2928: 'DEPTH_RANGE',\n 2929: 'DEPTH_TEST',\n 2930: 'DEPTH_WRITEMASK',\n 2931: 'DEPTH_CLEAR_VALUE',\n 2932: 'DEPTH_FUNC',\n 2960: 'STENCIL_TEST',\n 2961: 'STENCIL_CLEAR_VALUE',\n 2962: 'STENCIL_FUNC',\n 2963: 'STENCIL_VALUE_MASK',\n 2964: 'STENCIL_FAIL',\n 2965: 'STENCIL_PASS_DEPTH_FAIL',\n 2966: 'STENCIL_PASS_DEPTH_PASS',\n 2967: 'STENCIL_REF',\n 2968: 'STENCIL_WRITEMASK',\n 2978: 'VIEWPORT',\n 3024: 'DITHER',\n 3042: 'BLEND',\n 3088: 'SCISSOR_BOX',\n 3089: 'SCISSOR_TEST',\n 3106: 'COLOR_CLEAR_VALUE',\n 3107: 'COLOR_WRITEMASK',\n 3317: 'UNPACK_ALIGNMENT',\n 3333: 'PACK_ALIGNMENT',\n 3379: 'MAX_TEXTURE_SIZE',\n 3386: 'MAX_VIEWPORT_DIMS',\n 3408: 'SUBPIXEL_BITS',\n 3410: 'RED_BITS',\n 3411: 'GREEN_BITS',\n 3412: 'BLUE_BITS',\n 3413: 'ALPHA_BITS',\n 3414: 'DEPTH_BITS',\n 3415: 'STENCIL_BITS',\n 3553: 'TEXTURE_2D',\n 4352: 'DONT_CARE',\n 4353: 'FASTEST',\n 4354: 'NICEST',\n 5120: 'BYTE',\n 5121: 'UNSIGNED_BYTE',\n 5122: 'SHORT',\n 5123: 'UNSIGNED_SHORT',\n 5124: 'INT',\n 5125: 'UNSIGNED_INT',\n 5126: 'FLOAT',\n 5386: 'INVERT',\n 5890: 'TEXTURE',\n 6401: 'STENCIL_INDEX',\n 6402: 'DEPTH_COMPONENT',\n 6406: 'ALPHA',\n 6407: 'RGB',\n 6408: 'RGBA',\n 6409: 'LUMINANCE',\n 6410: 'LUMINANCE_ALPHA',\n 7680: 'KEEP',\n 7681: 'REPLACE',\n 7682: 'INCR',\n 7683: 'DECR',\n 7936: 'VENDOR',\n 7937: 'RENDERER',\n 7938: 'VERSION',\n 9728: 'NEAREST',\n 9729: 'LINEAR',\n 9984: 'NEAREST_MIPMAP_NEAREST',\n 9985: 'LINEAR_MIPMAP_NEAREST',\n 9986: 'NEAREST_MIPMAP_LINEAR',\n 9987: 'LINEAR_MIPMAP_LINEAR',\n 10240: 'TEXTURE_MAG_FILTER',\n 10241: 'TEXTURE_MIN_FILTER',\n 10242: 'TEXTURE_WRAP_S',\n 10243: 'TEXTURE_WRAP_T',\n 10497: 'REPEAT',\n 10752: 'POLYGON_OFFSET_UNITS',\n 16384: 'COLOR_BUFFER_BIT',\n 32769: 'CONSTANT_COLOR',\n 32770: 'ONE_MINUS_CONSTANT_COLOR',\n 32771: 'CONSTANT_ALPHA',\n 32772: 'ONE_MINUS_CONSTANT_ALPHA',\n 32773: 'BLEND_COLOR',\n 32774: 'FUNC_ADD',\n 32777: 'BLEND_EQUATION_RGB',\n 32778: 'FUNC_SUBTRACT',\n 32779: 'FUNC_REVERSE_SUBTRACT',\n 32819: 'UNSIGNED_SHORT_4_4_4_4',\n 32820: 'UNSIGNED_SHORT_5_5_5_1',\n 32823: 'POLYGON_OFFSET_FILL',\n 32824: 'POLYGON_OFFSET_FACTOR',\n 32854: 'RGBA4',\n 32855: 'RGB5_A1',\n 32873: 'TEXTURE_BINDING_2D',\n 32926: 'SAMPLE_ALPHA_TO_COVERAGE',\n 32928: 'SAMPLE_COVERAGE',\n 32936: 'SAMPLE_BUFFERS',\n 32937: 'SAMPLES',\n 32938: 'SAMPLE_COVERAGE_VALUE',\n 32939: 'SAMPLE_COVERAGE_INVERT',\n 32968: 'BLEND_DST_RGB',\n 32969: 'BLEND_SRC_RGB',\n 32970: 'BLEND_DST_ALPHA',\n 32971: 'BLEND_SRC_ALPHA',\n 33071: 'CLAMP_TO_EDGE',\n 33170: 'GENERATE_MIPMAP_HINT',\n 33189: 'DEPTH_COMPONENT16',\n 33306: 'DEPTH_STENCIL_ATTACHMENT',\n 33635: 'UNSIGNED_SHORT_5_6_5',\n 33648: 'MIRRORED_REPEAT',\n 33901: 'ALIASED_POINT_SIZE_RANGE',\n 33902: 'ALIASED_LINE_WIDTH_RANGE',\n 33984: 'TEXTURE0',\n 33985: 'TEXTURE1',\n 33986: 'TEXTURE2',\n 33987: 'TEXTURE3',\n 33988: 'TEXTURE4',\n 33989: 'TEXTURE5',\n 33990: 'TEXTURE6',\n 33991: 'TEXTURE7',\n 33992: 'TEXTURE8',\n 33993: 'TEXTURE9',\n 33994: 'TEXTURE10',\n 33995: 'TEXTURE11',\n 33996: 'TEXTURE12',\n 33997: 'TEXTURE13',\n 33998: 'TEXTURE14',\n 33999: 'TEXTURE15',\n 34000: 'TEXTURE16',\n 34001: 'TEXTURE17',\n 34002: 'TEXTURE18',\n 34003: 'TEXTURE19',\n 34004: 'TEXTURE20',\n 34005: 'TEXTURE21',\n 34006: 'TEXTURE22',\n 34007: 'TEXTURE23',\n 34008: 'TEXTURE24',\n 34009: 'TEXTURE25',\n 34010: 'TEXTURE26',\n 34011: 'TEXTURE27',\n 34012: 'TEXTURE28',\n 34013: 'TEXTURE29',\n 34014: 'TEXTURE30',\n 34015: 'TEXTURE31',\n 34016: 'ACTIVE_TEXTURE',\n 34024: 'MAX_RENDERBUFFER_SIZE',\n 34041: 'DEPTH_STENCIL',\n 34055: 'INCR_WRAP',\n 34056: 'DECR_WRAP',\n 34067: 'TEXTURE_CUBE_MAP',\n 34068: 'TEXTURE_BINDING_CUBE_MAP',\n 34069: 'TEXTURE_CUBE_MAP_POSITIVE_X',\n 34070: 'TEXTURE_CUBE_MAP_NEGATIVE_X',\n 34071: 'TEXTURE_CUBE_MAP_POSITIVE_Y',\n 34072: 'TEXTURE_CUBE_MAP_NEGATIVE_Y',\n 34073: 'TEXTURE_CUBE_MAP_POSITIVE_Z',\n 34074: 'TEXTURE_CUBE_MAP_NEGATIVE_Z',\n 34076: 'MAX_CUBE_MAP_TEXTURE_SIZE',\n 34338: 'VERTEX_ATTRIB_ARRAY_ENABLED',\n 34339: 'VERTEX_ATTRIB_ARRAY_SIZE',\n 34340: 'VERTEX_ATTRIB_ARRAY_STRIDE',\n 34341: 'VERTEX_ATTRIB_ARRAY_TYPE',\n 34342: 'CURRENT_VERTEX_ATTRIB',\n 34373: 'VERTEX_ATTRIB_ARRAY_POINTER',\n 34466: 'NUM_COMPRESSED_TEXTURE_FORMATS',\n 34467: 'COMPRESSED_TEXTURE_FORMATS',\n 34660: 'BUFFER_SIZE',\n 34661: 'BUFFER_USAGE',\n 34816: 'STENCIL_BACK_FUNC',\n 34817: 'STENCIL_BACK_FAIL',\n 34818: 'STENCIL_BACK_PASS_DEPTH_FAIL',\n 34819: 'STENCIL_BACK_PASS_DEPTH_PASS',\n 34877: 'BLEND_EQUATION_ALPHA',\n 34921: 'MAX_VERTEX_ATTRIBS',\n 34922: 'VERTEX_ATTRIB_ARRAY_NORMALIZED',\n 34930: 'MAX_TEXTURE_IMAGE_UNITS',\n 34962: 'ARRAY_BUFFER',\n 34963: 'ELEMENT_ARRAY_BUFFER',\n 34964: 'ARRAY_BUFFER_BINDING',\n 34965: 'ELEMENT_ARRAY_BUFFER_BINDING',\n 34975: 'VERTEX_ATTRIB_ARRAY_BUFFER_BINDING',\n 35040: 'STREAM_DRAW',\n 35044: 'STATIC_DRAW',\n 35048: 'DYNAMIC_DRAW',\n 35632: 'FRAGMENT_SHADER',\n 35633: 'VERTEX_SHADER',\n 35660: 'MAX_VERTEX_TEXTURE_IMAGE_UNITS',\n 35661: 'MAX_COMBINED_TEXTURE_IMAGE_UNITS',\n 35663: 'SHADER_TYPE',\n 35664: 'FLOAT_VEC2',\n 35665: 'FLOAT_VEC3',\n 35666: 'FLOAT_VEC4',\n 35667: 'INT_VEC2',\n 35668: 'INT_VEC3',\n 35669: 'INT_VEC4',\n 35670: 'BOOL',\n 35671: 'BOOL_VEC2',\n 35672: 'BOOL_VEC3',\n 35673: 'BOOL_VEC4',\n 35674: 'FLOAT_MAT2',\n 35675: 'FLOAT_MAT3',\n 35676: 'FLOAT_MAT4',\n 35678: 'SAMPLER_2D',\n 35680: 'SAMPLER_CUBE',\n 35712: 'DELETE_STATUS',\n 35713: 'COMPILE_STATUS',\n 35714: 'LINK_STATUS',\n 35715: 'VALIDATE_STATUS',\n 35716: 'INFO_LOG_LENGTH',\n 35717: 'ATTACHED_SHADERS',\n 35718: 'ACTIVE_UNIFORMS',\n 35719: 'ACTIVE_UNIFORM_MAX_LENGTH',\n 35720: 'SHADER_SOURCE_LENGTH',\n 35721: 'ACTIVE_ATTRIBUTES',\n 35722: 'ACTIVE_ATTRIBUTE_MAX_LENGTH',\n 35724: 'SHADING_LANGUAGE_VERSION',\n 35725: 'CURRENT_PROGRAM',\n 36003: 'STENCIL_BACK_REF',\n 36004: 'STENCIL_BACK_VALUE_MASK',\n 36005: 'STENCIL_BACK_WRITEMASK',\n 36006: 'FRAMEBUFFER_BINDING',\n 36007: 'RENDERBUFFER_BINDING',\n 36048: 'FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE',\n 36049: 'FRAMEBUFFER_ATTACHMENT_OBJECT_NAME',\n 36050: 'FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL',\n 36051: 'FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE',\n 36053: 'FRAMEBUFFER_COMPLETE',\n 36054: 'FRAMEBUFFER_INCOMPLETE_ATTACHMENT',\n 36055: 'FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT',\n 36057: 'FRAMEBUFFER_INCOMPLETE_DIMENSIONS',\n 36061: 'FRAMEBUFFER_UNSUPPORTED',\n 36064: 'COLOR_ATTACHMENT0',\n 36096: 'DEPTH_ATTACHMENT',\n 36128: 'STENCIL_ATTACHMENT',\n 36160: 'FRAMEBUFFER',\n 36161: 'RENDERBUFFER',\n 36162: 'RENDERBUFFER_WIDTH',\n 36163: 'RENDERBUFFER_HEIGHT',\n 36164: 'RENDERBUFFER_INTERNAL_FORMAT',\n 36168: 'STENCIL_INDEX8',\n 36176: 'RENDERBUFFER_RED_SIZE',\n 36177: 'RENDERBUFFER_GREEN_SIZE',\n 36178: 'RENDERBUFFER_BLUE_SIZE',\n 36179: 'RENDERBUFFER_ALPHA_SIZE',\n 36180: 'RENDERBUFFER_DEPTH_SIZE',\n 36181: 'RENDERBUFFER_STENCIL_SIZE',\n 36194: 'RGB565',\n 36336: 'LOW_FLOAT',\n 36337: 'MEDIUM_FLOAT',\n 36338: 'HIGH_FLOAT',\n 36339: 'LOW_INT',\n 36340: 'MEDIUM_INT',\n 36341: 'HIGH_INT',\n 36346: 'SHADER_COMPILER',\n 36347: 'MAX_VERTEX_UNIFORM_VECTORS',\n 36348: 'MAX_VARYING_VECTORS',\n 36349: 'MAX_FRAGMENT_UNIFORM_VECTORS',\n 37440: 'UNPACK_FLIP_Y_WEBGL',\n 37441: 'UNPACK_PREMULTIPLY_ALPHA_WEBGL',\n 37442: 'CONTEXT_LOST_WEBGL',\n 37443: 'UNPACK_COLORSPACE_CONVERSION_WEBGL',\n 37444: 'BROWSER_DEFAULT_WEBGL'\n}\n\n},{}],83:[function(_glvis_,module,exports){\nvar gl10 = _glvis_('./1.0/numbers')\n\nmodule.exports = function lookupConstant (number) {\n return gl10[number]\n}\n\n},{\"./1.0/numbers\":82}],84:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = createErrorBars\n\nvar createBuffer = _glvis_('gl-buffer')\nvar createVAO = _glvis_('gl-vao')\nvar createShader = _glvis_('./shaders/index')\n\nvar IDENTITY = [1,0,0,0,\n 0,1,0,0,\n 0,0,1,0,\n 0,0,0,1]\n\nfunction ErrorBars(gl, buffer, vao, shader) {\n this.gl = gl\n this.shader = shader\n this.buffer = buffer\n this.vao = vao\n this.pixelRatio = 1\n this.bounds = [[ Infinity, Infinity, Infinity], [-Infinity,-Infinity,-Infinity]]\n this.clipBounds = [[-Infinity,-Infinity,-Infinity], [ Infinity, Infinity, Infinity]]\n this.lineWidth = [1,1,1]\n this.capSize = [10,10,10]\n this.lineCount = [0,0,0]\n this.lineOffset = [0,0,0]\n this.opacity = 1\n this.hasAlpha = false\n}\n\nvar proto = ErrorBars.prototype\n\nproto.isOpaque = function() {\n return !this.hasAlpha\n}\n\nproto.isTransparent = function() {\n return this.hasAlpha\n}\n\nproto.drawTransparent = proto.draw = function(cameraParams) {\n var gl = this.gl\n var uniforms = this.shader.uniforms\n\n this.shader.bind()\n var view = uniforms.view = cameraParams.view || IDENTITY\n var projection = uniforms.projection = cameraParams.projection || IDENTITY\n uniforms.model = cameraParams.model || IDENTITY\n uniforms.clipBounds = this.clipBounds\n uniforms.opacity = this.opacity\n\n\n var cx = view[12]\n var cy = view[13]\n var cz = view[14]\n var cw = view[15]\n\n var isOrtho = cameraParams._ortho || false\n var orthoFix = (isOrtho) ? 2 : 1 // double up padding for orthographic ticks & labels\n var pixelScaleF = orthoFix * this.pixelRatio * (projection[3]*cx + projection[7]*cy + projection[11]*cz + projection[15]*cw) / gl.drawingBufferHeight\n\n this.vao.bind()\n for(var i=0; i<3; ++i) {\n gl.lineWidth(this.lineWidth[i] * this.pixelRatio)\n uniforms.capSize = this.capSize[i] * pixelScaleF\n if (this.lineCount[i]) {\n gl.drawArrays(gl.LINES, this.lineOffset[i], this.lineCount[i])\n }\n }\n this.vao.unbind()\n}\n\nfunction updateBounds(bounds, point) {\n for(var i=0; i<3; ++i) {\n bounds[0][i] = Math.min(bounds[0][i], point[i])\n bounds[1][i] = Math.max(bounds[1][i], point[i])\n }\n}\n\nvar FACE_TABLE = (function(){\n var table = new Array(3)\n for(var d=0; d<3; ++d) {\n var row = []\n for(var j=1; j<=2; ++j) {\n for(var s=-1; s<=1; s+=2) {\n var u = (j+d) % 3\n var y = [0,0,0]\n y[u] = s\n row.push(y)\n }\n }\n table[d] = row\n }\n return table\n})()\n\n\nfunction emitFace(verts, x, c, d) {\n var offsets = FACE_TABLE[d]\n for(var i=0; i 0) {\n var x = p.slice()\n x[j] += e[1][j]\n verts.push(p[0], p[1], p[2],\n c[0], c[1], c[2], c[3],\n 0, 0, 0,\n x[0], x[1], x[2],\n c[0], c[1], c[2], c[3],\n 0, 0, 0)\n updateBounds(this.bounds, x)\n vertexCount += 2 + emitFace(verts, x, c, j)\n }\n }\n this.lineCount[j] = vertexCount - this.lineOffset[j]\n }\n this.buffer.update(verts)\n }\n}\n\nproto.dispose = function() {\n this.shader.dispose()\n this.buffer.dispose()\n this.vao.dispose()\n}\n\nfunction createErrorBars(options) {\n var gl = options.gl\n var buffer = createBuffer(gl)\n var vao = createVAO(gl, [\n {\n buffer: buffer,\n type: gl.FLOAT,\n size: 3,\n offset: 0,\n stride: 40\n },\n {\n buffer: buffer,\n type: gl.FLOAT,\n size: 4,\n offset: 12,\n stride: 40\n },\n {\n buffer: buffer,\n type: gl.FLOAT,\n size: 3,\n offset: 28,\n stride: 40\n }\n ])\n\n var shader = createShader(gl)\n shader.attributes.position.location = 0\n shader.attributes.color.location = 1\n shader.attributes.offset.location = 2\n\n var result = new ErrorBars(gl, buffer, vao, shader)\n result.update(options)\n return result\n}\n\n},{\"./shaders/index\":85,\"gl-buffer\":78,\"gl-vao\":150}],85:[function(_glvis_,module,exports){\n'use strict'\n\nvar glslify = _glvis_('glslify')\nvar createShader = _glvis_('gl-shader')\n\nvar vertSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position, offset;\\nattribute vec4 color;\\nuniform mat4 model, view, projection;\\nuniform float capSize;\\nvarying vec4 fragColor;\\nvarying vec3 fragPosition;\\n\\nvoid main() {\\n vec4 worldPosition = model * vec4(position, 1.0);\\n worldPosition = (worldPosition / worldPosition.w) + vec4(capSize * offset, 0.0);\\n gl_Position = projection * view * worldPosition;\\n fragColor = color;\\n fragPosition = position;\\n}\"])\nvar fragSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform float opacity;\\nvarying vec3 fragPosition;\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n if (\\n outOfRange(clipBounds[0], clipBounds[1], fragPosition) ||\\n fragColor.a * opacity == 0.\\n ) discard;\\n\\n gl_FragColor = opacity * fragColor;\\n}\"])\n\nmodule.exports = function(gl) {\n return createShader(gl, vertSrc, fragSrc, null, [\n {name: 'position', type: 'vec3'},\n {name: 'color', type: 'vec4'},\n {name: 'offset', type: 'vec3'}\n ])\n}\n\n},{\"gl-shader\":132,\"glslify\":231}],86:[function(_glvis_,module,exports){\n'use strict'\n\nvar createTexture = _glvis_('gl-texture2d')\n\nmodule.exports = createFBO\n\nvar colorAttachmentArrays = null\nvar FRAMEBUFFER_UNSUPPORTED\nvar FRAMEBUFFER_INCOMPLETE_ATTACHMENT\nvar FRAMEBUFFER_INCOMPLETE_DIMENSIONS\nvar FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT\n\nfunction saveFBOState(gl) {\n var fbo = gl.getParameter(gl.FRAMEBUFFER_BINDING)\n var rbo = gl.getParameter(gl.RENDERBUFFER_BINDING)\n var tex = gl.getParameter(gl.TEXTURE_BINDING_2D)\n return [fbo, rbo, tex]\n}\n\nfunction restoreFBOState(gl, data) {\n gl.bindFramebuffer(gl.FRAMEBUFFER, data[0])\n gl.bindRenderbuffer(gl.RENDERBUFFER, data[1])\n gl.bindTexture(gl.TEXTURE_2D, data[2])\n}\n\nfunction lazyInitColorAttachments(gl, ext) {\n var maxColorAttachments = gl.getParameter(ext.MAX_COLOR_ATTACHMENTS_WEBGL)\n colorAttachmentArrays = new Array(maxColorAttachments + 1)\n for(var i=0; i<=maxColorAttachments; ++i) {\n var x = new Array(maxColorAttachments)\n for(var j=0; j 1) {\n ext.drawBuffersWEBGL(colorAttachmentArrays[numColors])\n }\n\n //Allocate depth/stencil buffers\n var WEBGL_depth_texture = gl.getExtension('WEBGL_depth_texture')\n if(WEBGL_depth_texture) {\n if(useStencil) {\n fbo.depth = initTexture(gl, width, height,\n WEBGL_depth_texture.UNSIGNED_INT_24_8_WEBGL,\n gl.DEPTH_STENCIL,\n gl.DEPTH_STENCIL_ATTACHMENT)\n } else if(useDepth) {\n fbo.depth = initTexture(gl, width, height,\n gl.UNSIGNED_SHORT,\n gl.DEPTH_COMPONENT,\n gl.DEPTH_ATTACHMENT)\n }\n } else {\n if(useDepth && useStencil) {\n fbo._depth_rb = initRenderBuffer(gl, width, height, gl.DEPTH_STENCIL, gl.DEPTH_STENCIL_ATTACHMENT)\n } else if(useDepth) {\n fbo._depth_rb = initRenderBuffer(gl, width, height, gl.DEPTH_COMPONENT16, gl.DEPTH_ATTACHMENT)\n } else if(useStencil) {\n fbo._depth_rb = initRenderBuffer(gl, width, height, gl.STENCIL_INDEX, gl.STENCIL_ATTACHMENT)\n }\n }\n\n //Check frame buffer state\n var status = gl.checkFramebufferStatus(gl.FRAMEBUFFER)\n if(status !== gl.FRAMEBUFFER_COMPLETE) {\n\n //Release all partially allocated resources\n fbo._destroyed = true\n\n //Release all resources\n gl.bindFramebuffer(gl.FRAMEBUFFER, null)\n gl.deleteFramebuffer(fbo.handle)\n fbo.handle = null\n if(fbo.depth) {\n fbo.depth.dispose()\n fbo.depth = null\n }\n if(fbo._depth_rb) {\n gl.deleteRenderbuffer(fbo._depth_rb)\n fbo._depth_rb = null\n }\n for(var i=0; i maxFBOSize ||\n h < 0 || h > maxFBOSize) {\n throw new Error('gl-fbo: Can\\'t resize FBO, invalid dimensions')\n }\n\n //Update shape\n fbo._shape[0] = w\n fbo._shape[1] = h\n\n //Save framebuffer state\n var state = saveFBOState(gl)\n\n //Resize framebuffer attachments\n for(var i=0; i maxFBOSize || height < 0 || height > maxFBOSize) {\n throw new Error('gl-fbo: Parameters are too large for FBO')\n }\n\n //Handle each option type\n options = options || {}\n\n //Figure out number of color buffers to use\n var numColors = 1\n if('color' in options) {\n numColors = Math.max(options.color|0, 0)\n if(numColors < 0) {\n throw new Error('gl-fbo: Must specify a nonnegative number of colors')\n }\n if(numColors > 1) {\n //Check if multiple render targets supported\n if(!WEBGL_draw_buffers) {\n throw new Error('gl-fbo: Multiple draw buffer extension not supported')\n } else if(numColors > gl.getParameter(WEBGL_draw_buffers.MAX_COLOR_ATTACHMENTS_WEBGL)) {\n throw new Error('gl-fbo: Context does not support ' + numColors + ' draw buffers')\n }\n }\n }\n\n //Determine whether to use floating point textures\n var colorType = gl.UNSIGNED_BYTE\n var OES_texture_float = gl.getExtension('OES_texture_float')\n if(options.float && numColors > 0) {\n if(!OES_texture_float) {\n throw new Error('gl-fbo: Context does not support floating point textures')\n }\n colorType = gl.FLOAT\n } else if(options.preferFloat && numColors > 0) {\n if(OES_texture_float) {\n colorType = gl.FLOAT\n }\n }\n\n //Check if we should use depth buffer\n var useDepth = true\n if('depth' in options) {\n useDepth = !!options.depth\n }\n\n //Check if we should use a stencil buffer\n var useStencil = false\n if('stencil' in options) {\n useStencil = !!options.stencil\n }\n\n return new Framebuffer(\n gl,\n width,\n height,\n colorType,\n numColors,\n useDepth,\n useStencil,\n WEBGL_draw_buffers)\n}\n\n},{\"gl-texture2d\":146}],87:[function(_glvis_,module,exports){\n\nvar sprintf = _glvis_('sprintf-js').sprintf;\nvar glConstants = _glvis_('gl-constants/lookup');\nvar shaderName = _glvis_('glsl-shader-name');\nvar addLineNumbers = _glvis_('add-line-numbers');\n\nmodule.exports = formatCompilerError;\n\nfunction formatCompilerError(errLog, src, type) {\n \"use strict\";\n\n var name = shaderName(src) || 'of unknown name (see npm glsl-shader-name)';\n\n var typeName = 'unknown type';\n if (type !== undefined) {\n typeName = type === glConstants.FRAGMENT_SHADER ? 'fragment' : 'vertex'\n }\n\n var longForm = sprintf('Error compiling %s shader %s:\\n', typeName, name);\n var shortForm = sprintf(\"%s%s\", longForm, errLog);\n\n var errorStrings = errLog.split('\\n');\n var errors = {};\n\n for (var i = 0; i < errorStrings.length; i++) {\n var errorString = errorStrings[i];\n if (errorString === '' || errorString === \"\\0\") continue;\n var lineNo = parseInt(errorString.split(':')[2]);\n if (isNaN(lineNo)) {\n throw new Error(sprintf('Could not parse error: %s', errorString));\n }\n errors[lineNo] = errorString;\n }\n\n var lines = addLineNumbers(src).split('\\n');\n\n for (var i = 0; i < lines.length; i++) {\n if (!errors[i+3] && !errors[i+2] && !errors[i+1]) continue;\n var line = lines[i];\n longForm += line + '\\n';\n if (errors[i+1]) {\n var e = errors[i+1];\n e = e.substr(e.split(':', 3).join(':').length + 1).trim();\n longForm += sprintf('^^^ %s\\n\\n', e);\n }\n }\n\n return {\n long: longForm.trim(),\n short: shortForm.trim()\n };\n}\n\n\n},{\"add-line-numbers\":9,\"gl-constants/lookup\":83,\"glsl-shader-name\":223,\"sprintf-js\":301}],88:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = createHeatmap2D\n\nvar bsearch = _glvis_('binary-search-bounds')\nvar iota = _glvis_('iota-array')\nvar pool = _glvis_('typedarray-pool')\nvar createShader = _glvis_('gl-shader')\nvar createBuffer = _glvis_('gl-buffer')\n\nvar shaders = _glvis_('./lib/shaders')\n\nfunction GLHeatmap2D (\n plot,\n shader,\n pickShader,\n positionBuffer,\n weightBuffer,\n colorBuffer,\n idBuffer) {\n this.plot = plot\n this.shader = shader\n this.pickShader = pickShader\n this.positionBuffer = positionBuffer\n this.weightBuffer = weightBuffer\n this.colorBuffer = colorBuffer\n this.idBuffer = idBuffer\n this.xData = []\n this.yData = []\n this.shape = [0, 0]\n this.bounds = [Infinity, Infinity, -Infinity, -Infinity]\n this.pickOffset = 0\n}\n\nvar proto = GLHeatmap2D.prototype\n\nvar WEIGHTS = [\n 0, 0,\n 1, 0,\n 0, 1,\n 1, 0,\n 1, 1,\n 0, 1\n]\n\nproto.draw = (function () {\n var MATRIX = [\n 1, 0, 0,\n 0, 1, 0,\n 0, 0, 1\n ]\n\n return function () {\n var plot = this.plot\n var shader = this.shader\n var bounds = this.bounds\n var numVertices = this.numVertices\n\n if (numVertices <= 0) {\n return\n }\n\n var gl = plot.gl\n var dataBox = plot.dataBox\n\n var boundX = bounds[2] - bounds[0]\n var boundY = bounds[3] - bounds[1]\n var dataX = dataBox[2] - dataBox[0]\n var dataY = dataBox[3] - dataBox[1]\n\n MATRIX[0] = 2.0 * boundX / dataX\n MATRIX[4] = 2.0 * boundY / dataY\n MATRIX[6] = 2.0 * (bounds[0] - dataBox[0]) / dataX - 1.0\n MATRIX[7] = 2.0 * (bounds[1] - dataBox[1]) / dataY - 1.0\n\n shader.bind()\n\n var uniforms = shader.uniforms\n uniforms.viewTransform = MATRIX\n\n uniforms.shape = this.shape\n\n var attributes = shader.attributes\n this.positionBuffer.bind()\n attributes.position.pointer()\n\n this.weightBuffer.bind()\n attributes.weight.pointer(gl.UNSIGNED_BYTE, false)\n\n this.colorBuffer.bind()\n attributes.color.pointer(gl.UNSIGNED_BYTE, true)\n\n gl.drawArrays(gl.TRIANGLES, 0, numVertices)\n }\n})()\n\nproto.drawPick = (function () {\n var MATRIX = [\n 1, 0, 0,\n 0, 1, 0,\n 0, 0, 1\n ]\n\n var PICK_VECTOR = [0, 0, 0, 0]\n\n return function (pickOffset) {\n var plot = this.plot\n var shader = this.pickShader\n var bounds = this.bounds\n var numVertices = this.numVertices\n\n if (numVertices <= 0) {\n return\n }\n\n var gl = plot.gl\n var dataBox = plot.dataBox\n\n var boundX = bounds[2] - bounds[0]\n var boundY = bounds[3] - bounds[1]\n var dataX = dataBox[2] - dataBox[0]\n var dataY = dataBox[3] - dataBox[1]\n\n MATRIX[0] = 2.0 * boundX / dataX\n MATRIX[4] = 2.0 * boundY / dataY\n MATRIX[6] = 2.0 * (bounds[0] - dataBox[0]) / dataX - 1.0\n MATRIX[7] = 2.0 * (bounds[1] - dataBox[1]) / dataY - 1.0\n\n for (var i = 0; i < 4; ++i) {\n PICK_VECTOR[i] = (pickOffset >> (i * 8)) & 0xff\n }\n\n this.pickOffset = pickOffset\n\n shader.bind()\n\n var uniforms = shader.uniforms\n uniforms.viewTransform = MATRIX\n uniforms.pickOffset = PICK_VECTOR\n uniforms.shape = this.shape\n\n var attributes = shader.attributes\n this.positionBuffer.bind()\n attributes.position.pointer()\n\n this.weightBuffer.bind()\n attributes.weight.pointer(gl.UNSIGNED_BYTE, false)\n\n this.idBuffer.bind()\n attributes.pickId.pointer(gl.UNSIGNED_BYTE, false)\n\n gl.drawArrays(gl.TRIANGLES, 0, numVertices)\n\n return pickOffset + this.shape[0] * this.shape[1]\n }\n})()\n\nproto.pick = function (x, y, value) {\n var pickOffset = this.pickOffset\n var pointCount = this.shape[0] * this.shape[1]\n if (value < pickOffset || value >= pickOffset + pointCount) {\n return null\n }\n var pointId = value - pickOffset\n var xData = this.xData\n var yData = this.yData\n return {\n object: this,\n pointId: pointId,\n dataCoord: [\n xData[pointId % this.shape[0]],\n yData[(pointId / this.shape[0]) | 0]]\n }\n}\n\nproto.update = function (options) {\n options = options || {}\n\n var shape = options.shape || [0, 0]\n\n var x = options.x || iota(shape[0])\n var y = options.y || iota(shape[1])\n var z = options.z || new Float32Array(shape[0] * shape[1])\n\n var isSmooth = options.zsmooth !== false\n\n this.xData = x\n this.yData = y\n\n var colorLevels = options.colorLevels || [0]\n var colorValues = options.colorValues || [0, 0, 0, 1]\n var colorCount = colorLevels.length\n\n var bounds = this.bounds\n var lox, loy, hix, hiy\n if (isSmooth) {\n lox = bounds[0] = x[0]\n loy = bounds[1] = y[0]\n hix = bounds[2] = x[x.length - 1]\n hiy = bounds[3] = y[y.length - 1]\n } else {\n // To get squares to centre on data values\n lox = bounds[0] = x[0] + (x[1] - x[0]) / 2 // starting x value\n loy = bounds[1] = y[0] + (y[1] - y[0]) / 2 // starting y value\n\n // Bounds needs to add half a square on each end\n hix = bounds[2] = x[x.length - 1] + (x[x.length - 1] - x[x.length - 2]) / 2\n hiy = bounds[3] = y[y.length - 1] + (y[y.length - 1] - y[y.length - 2]) / 2\n\n // N.B. Resolution = 1 / range\n }\n var xs = 1.0 / (hix - lox)\n var ys = 1.0 / (hiy - loy)\n\n var numX = shape[0]\n var numY = shape[1]\n\n this.shape = [numX, numY]\n\n var numVerts = (\n isSmooth ? (numX - 1) * (numY - 1) : numX * numY\n ) * (WEIGHTS.length >>> 1)\n\n this.numVertices = numVerts\n\n var colors = pool.mallocUint8(numVerts * 4)\n var positions = pool.mallocFloat32(numVerts * 2)\n var weights = pool.mallocUint8 (numVerts * 2)\n var ids = pool.mallocUint32(numVerts)\n\n var ptr = 0\n\n var ni = isSmooth ? numX - 1 : numX\n var nj = isSmooth ? numY - 1 : numY\n\n for (var j = 0; j < nj; ++j) {\n var yc0, yc1\n\n if (isSmooth) {\n yc0 = ys * (y[j] - loy)\n yc1 = ys * (y[j + 1] - loy)\n } else {\n yc0 = j < numY - 1 ? ys * (y[j] - (y[j + 1] - y[j])/2 - loy) : ys * (y[j] - (y[j] - y[j - 1])/2 - loy)\n yc1 = j < numY - 1 ? ys * (y[j] + (y[j + 1] - y[j])/2 - loy) : ys * (y[j] + (y[j] - y[j - 1])/2 - loy)\n }\n\n for (var i = 0; i < ni; ++i) {\n var xc0, xc1\n\n if (isSmooth) {\n xc0 = xs * (x[i] - lox)\n xc1 = xs * (x[i + 1] - lox)\n } else {\n xc0 = i < numX - 1 ? xs * (x[i] - (x[i + 1] - x[i])/2 - lox) : xs * (x[i] - (x[i] - x[i - 1])/2 - lox)\n xc1 = i < numX - 1 ? xs * (x[i] + (x[i + 1] - x[i])/2 - lox) : xs * (x[i] + (x[i] - x[i - 1])/2 - lox)\n }\n\n for (var dd = 0; dd < WEIGHTS.length; dd += 2) {\n var dx = WEIGHTS[dd]\n var dy = WEIGHTS[dd + 1]\n var offset = isSmooth ? (j + dy) * numX + (i + dx) : j * numX + i\n var zc = z[offset]\n var colorIdx = bsearch.le(colorLevels, zc)\n var r, g, b, a\n if (colorIdx < 0) {\n r = colorValues[0]\n g = colorValues[1]\n b = colorValues[2]\n a = colorValues[3]\n } else if (colorIdx === colorCount - 1) {\n r = colorValues[4 * colorCount - 4]\n g = colorValues[4 * colorCount - 3]\n b = colorValues[4 * colorCount - 2]\n a = colorValues[4 * colorCount - 1]\n } else {\n var t = (zc - colorLevels[colorIdx]) /\n (colorLevels[colorIdx + 1] - colorLevels[colorIdx])\n var ti = 1.0 - t\n var i0 = 4 * colorIdx\n var i1 = 4 * (colorIdx + 1)\n r = ti * colorValues[i0] + t * colorValues[i1]\n g = ti * colorValues[i0 + 1] + t * colorValues[i1 + 1]\n b = ti * colorValues[i0 + 2] + t * colorValues[i1 + 2]\n a = ti * colorValues[i0 + 3] + t * colorValues[i1 + 3]\n }\n\n colors[4 * ptr] = 255 * r\n colors[4 * ptr + 1] = 255 * g\n colors[4 * ptr + 2] = 255 * b\n colors[4 * ptr + 3] = 255 * a\n\n positions[2*ptr] = xc0*.5 + xc1*.5;\n positions[2*ptr+1] = yc0*.5 + yc1*.5;\n\n weights[2*ptr] = dx;\n weights[2*ptr+1] = dy;\n\n ids[ptr] = j * numX + i\n\n ptr += 1\n }\n }\n }\n\n this.positionBuffer.update(positions)\n this.weightBuffer.update(weights)\n this.colorBuffer.update(colors)\n this.idBuffer.update(ids)\n\n pool.free(positions)\n pool.free(colors)\n pool.free(weights)\n pool.free(ids)\n}\n\nproto.dispose = function () {\n this.shader.dispose()\n this.pickShader.dispose()\n this.positionBuffer.dispose()\n this.weightBuffer.dispose()\n this.colorBuffer.dispose()\n this.idBuffer.dispose()\n this.plot.removeObject(this)\n}\n\nfunction createHeatmap2D (plot, options) {\n var gl = plot.gl\n\n var shader = createShader(gl, shaders.vertex, shaders.fragment)\n var pickShader = createShader(gl, shaders.pickVertex, shaders.pickFragment)\n\n var positionBuffer = createBuffer(gl)\n var weightBuffer = createBuffer(gl)\n var colorBuffer = createBuffer(gl)\n var idBuffer = createBuffer(gl)\n\n var heatmap = new GLHeatmap2D(\n plot,\n shader,\n pickShader,\n positionBuffer,\n weightBuffer,\n colorBuffer,\n idBuffer)\n\n heatmap.update(options)\n plot.addObject(heatmap)\n\n return heatmap\n}\n\n},{\"./lib/shaders\":89,\"binary-search-bounds\":31,\"gl-buffer\":78,\"gl-shader\":132,\"iota-array\":235,\"typedarray-pool\":308}],89:[function(_glvis_,module,exports){\n'use strict'\n\nvar glslify = _glvis_('glslify')\n\nmodule.exports = {\n fragment: glslify([\"precision lowp float;\\n#define GLSLIFY 1\\nvarying vec4 fragColor;\\nvoid main() {\\n gl_FragColor = vec4(fragColor.rgb * fragColor.a, fragColor.a);\\n}\\n\"]),\n vertex: glslify([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec2 position;\\nattribute vec4 color;\\nattribute vec2 weight;\\n\\nuniform vec2 shape;\\nuniform mat3 viewTransform;\\n\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n vec3 vPosition = viewTransform * vec3( position + (weight-.5)/(shape-1.) , 1.0);\\n fragColor = color;\\n gl_Position = vec4(vPosition.xy, 0, vPosition.z);\\n}\\n\"]),\n pickFragment: glslify([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nvarying vec4 fragId;\\nvarying vec2 vWeight;\\n\\nuniform vec2 shape;\\nuniform vec4 pickOffset;\\n\\nvoid main() {\\n vec2 d = step(.5, vWeight);\\n vec4 id = fragId + pickOffset;\\n id.x += d.x + d.y*shape.x;\\n\\n id.y += floor(id.x / 256.0);\\n id.x -= floor(id.x / 256.0) * 256.0;\\n\\n id.z += floor(id.y / 256.0);\\n id.y -= floor(id.y / 256.0) * 256.0;\\n\\n id.w += floor(id.z / 256.0);\\n id.z -= floor(id.z / 256.0) * 256.0;\\n\\n gl_FragColor = id/255.;\\n}\\n\"]),\n pickVertex: glslify([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec2 position;\\nattribute vec4 pickId;\\nattribute vec2 weight;\\n\\nuniform vec2 shape;\\nuniform mat3 viewTransform;\\n\\nvarying vec4 fragId;\\nvarying vec2 vWeight;\\n\\nvoid main() {\\n vWeight = weight;\\n\\n fragId = pickId;\\n\\n vec3 vPosition = viewTransform * vec3( position + (weight-.5)/(shape-1.) , 1.0);\\n gl_Position = vec4(vPosition.xy, 0, vPosition.z);\\n}\\n\"])\n}\n\n},{\"glslify\":231}],90:[function(_glvis_,module,exports){\nvar glslify = _glvis_('glslify')\nvar createShader = _glvis_('gl-shader')\n\nvar vertSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position, nextPosition;\\nattribute float arcLength, lineWidth;\\nattribute vec4 color;\\n\\nuniform vec2 screenShape;\\nuniform float pixelRatio;\\nuniform mat4 model, view, projection;\\n\\nvarying vec4 fragColor;\\nvarying vec3 worldPosition;\\nvarying float pixelArcLength;\\n\\nvec4 project(vec3 p) {\\n return projection * view * model * vec4(p, 1.0);\\n}\\n\\nvoid main() {\\n vec4 startPoint = project(position);\\n vec4 endPoint = project(nextPosition);\\n\\n vec2 A = startPoint.xy / startPoint.w;\\n vec2 B = endPoint.xy / endPoint.w;\\n\\n float clipAngle = atan(\\n (B.y - A.y) * screenShape.y,\\n (B.x - A.x) * screenShape.x\\n );\\n\\n vec2 offset = 0.5 * pixelRatio * lineWidth * vec2(\\n sin(clipAngle),\\n -cos(clipAngle)\\n ) / screenShape;\\n\\n gl_Position = vec4(startPoint.xy + startPoint.w * offset, startPoint.zw);\\n\\n worldPosition = position;\\n pixelArcLength = arcLength;\\n fragColor = color;\\n}\\n\"])\nvar forwardFrag = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform sampler2D dashTexture;\\nuniform float dashScale;\\nuniform float opacity;\\n\\nvarying vec3 worldPosition;\\nvarying float pixelArcLength;\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n if (\\n outOfRange(clipBounds[0], clipBounds[1], worldPosition) ||\\n fragColor.a * opacity == 0.\\n ) discard;\\n\\n float dashWeight = texture2D(dashTexture, vec2(dashScale * pixelArcLength, 0)).r;\\n if(dashWeight < 0.5) {\\n discard;\\n }\\n gl_FragColor = fragColor * opacity;\\n}\\n\"])\nvar pickFrag = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\n#define FLOAT_MAX 1.70141184e38\\n#define FLOAT_MIN 1.17549435e-38\\n\\n// https://github.com/mikolalysenko/glsl-read-float/blob/master/index.glsl\\nvec4 packFloat(float v) {\\n float av = abs(v);\\n\\n //Handle special cases\\n if(av < FLOAT_MIN) {\\n return vec4(0.0, 0.0, 0.0, 0.0);\\n } else if(v > FLOAT_MAX) {\\n return vec4(127.0, 128.0, 0.0, 0.0) / 255.0;\\n } else if(v < -FLOAT_MAX) {\\n return vec4(255.0, 128.0, 0.0, 0.0) / 255.0;\\n }\\n\\n vec4 c = vec4(0,0,0,0);\\n\\n //Compute exponent and mantissa\\n float e = floor(log2(av));\\n float m = av * pow(2.0, -e) - 1.0;\\n\\n //Unpack mantissa\\n c[1] = floor(128.0 * m);\\n m -= c[1] / 128.0;\\n c[2] = floor(32768.0 * m);\\n m -= c[2] / 32768.0;\\n c[3] = floor(8388608.0 * m);\\n\\n //Unpack exponent\\n float ebias = e + 127.0;\\n c[0] = floor(ebias / 2.0);\\n ebias -= c[0] * 2.0;\\n c[1] += floor(ebias) * 128.0;\\n\\n //Unpack sign bit\\n c[0] += 128.0 * step(0.0, -v);\\n\\n //Scale back to range\\n return c / 255.0;\\n}\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform float pickId;\\nuniform vec3 clipBounds[2];\\n\\nvarying vec3 worldPosition;\\nvarying float pixelArcLength;\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard;\\n\\n gl_FragColor = vec4(pickId/255.0, packFloat(pixelArcLength).xyz);\\n}\"])\n\nvar ATTRIBUTES = [\n {name: 'position', type: 'vec3'},\n {name: 'nextPosition', type: 'vec3'},\n {name: 'arcLength', type: 'float'},\n {name: 'lineWidth', type: 'float'},\n {name: 'color', type: 'vec4'}\n]\n\nexports.createShader = function(gl) {\n return createShader(gl, vertSrc, forwardFrag, null, ATTRIBUTES)\n}\n\nexports.createPickShader = function(gl) {\n return createShader(gl, vertSrc, pickFrag, null, ATTRIBUTES)\n}\n\n},{\"gl-shader\":132,\"glslify\":231}],91:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = createLinePlot\n\nvar createBuffer = _glvis_('gl-buffer')\nvar createVAO = _glvis_('gl-vao')\nvar createTexture = _glvis_('gl-texture2d')\n\nvar UINT8_VIEW = new Uint8Array(4)\nvar FLOAT_VIEW = new Float32Array(UINT8_VIEW.buffer)\n// https://github.com/mikolalysenko/glsl-read-float/blob/master/index.js\nfunction unpackFloat(x, y, z, w) {\n UINT8_VIEW[0] = w\n UINT8_VIEW[1] = z\n UINT8_VIEW[2] = y\n UINT8_VIEW[3] = x\n return FLOAT_VIEW[0]\n}\n\nvar bsearch = _glvis_('binary-search-bounds')\nvar ndarray = _glvis_('ndarray')\nvar shaders = _glvis_('./lib/shaders')\n\nvar createShader = shaders.createShader\nvar createPickShader = shaders.createPickShader\n\nvar identity = [1, 0, 0, 0,\n 0, 1, 0, 0,\n 0, 0, 1, 0,\n 0, 0, 0, 1]\n\nfunction distance (a, b) {\n var s = 0.0\n for (var i = 0; i < 3; ++i) {\n var d = a[i] - b[i]\n s += d * d\n }\n return Math.sqrt(s)\n}\n\nfunction filterClipBounds (bounds) {\n var result = [[-1e6, -1e6, -1e6], [1e6, 1e6, 1e6]]\n for (var i = 0; i < 3; ++i) {\n result[0][i] = Math.max(bounds[0][i], result[0][i])\n result[1][i] = Math.min(bounds[1][i], result[1][i])\n }\n return result\n}\n\nfunction PickResult (tau, position, index, dataCoordinate) {\n this.arcLength = tau\n this.position = position\n this.index = index\n this.dataCoordinate = dataCoordinate\n}\n\nfunction LinePlot (gl, shader, pickShader, buffer, vao, texture) {\n this.gl = gl\n this.shader = shader\n this.pickShader = pickShader\n this.buffer = buffer\n this.vao = vao\n this.clipBounds = [\n [ -Infinity, -Infinity, -Infinity ],\n [ Infinity, Infinity, Infinity ]]\n this.points = []\n this.arcLength = []\n this.vertexCount = 0\n this.bounds = [[0, 0, 0], [0, 0, 0]]\n this.pickId = 0\n this.lineWidth = 1\n this.texture = texture\n this.dashScale = 1\n this.opacity = 1\n this.hasAlpha = false\n this.dirty = true\n this.pixelRatio = 1\n}\n\nvar proto = LinePlot.prototype\n\nproto.isTransparent = function () {\n return this.hasAlpha\n}\n\nproto.isOpaque = function () {\n return !this.hasAlpha\n}\n\nproto.pickSlots = 1\n\nproto.setPickBase = function (id) {\n this.pickId = id\n}\n\nproto.drawTransparent = proto.draw = function (camera) {\n if (!this.vertexCount) return\n var gl = this.gl\n var shader = this.shader\n var vao = this.vao\n shader.bind()\n shader.uniforms = {\n model: camera.model || identity,\n view: camera.view || identity,\n projection: camera.projection || identity,\n clipBounds: filterClipBounds(this.clipBounds),\n dashTexture: this.texture.bind(),\n dashScale: this.dashScale / this.arcLength[this.arcLength.length - 1],\n opacity: this.opacity,\n screenShape: [gl.drawingBufferWidth, gl.drawingBufferHeight],\n pixelRatio: this.pixelRatio\n }\n vao.bind()\n vao.draw(gl.TRIANGLE_STRIP, this.vertexCount)\n vao.unbind()\n}\n\nproto.drawPick = function (camera) {\n if (!this.vertexCount) return\n var gl = this.gl\n var shader = this.pickShader\n var vao = this.vao\n shader.bind()\n shader.uniforms = {\n model: camera.model || identity,\n view: camera.view || identity,\n projection: camera.projection || identity,\n pickId: this.pickId,\n clipBounds: filterClipBounds(this.clipBounds),\n screenShape: [gl.drawingBufferWidth, gl.drawingBufferHeight],\n pixelRatio: this.pixelRatio\n }\n vao.bind()\n vao.draw(gl.TRIANGLE_STRIP, this.vertexCount)\n vao.unbind()\n}\n\nproto.update = function (options) {\n var i, j\n\n this.dirty = true\n\n var connectGaps = !!options.connectGaps\n\n if ('dashScale' in options) {\n this.dashScale = options.dashScale\n }\n\n this.hasAlpha = false // default to no transparent draw\n if ('opacity' in options) {\n this.opacity = +options.opacity\n if(this.opacity < 1) {\n this.hasAlpha = true;\n }\n }\n\n // Recalculate buffer data\n var buffer = []\n var arcLengthArray = []\n var pointArray = []\n var arcLength = 0.0\n var vertexCount = 0\n var bounds = [\n [ Infinity, Infinity, Infinity ],\n [ -Infinity, -Infinity, -Infinity ]]\n\n var positions = options.position || options.positions\n if (positions) {\n\n // Default color\n var colors = options.color || options.colors || [0, 0, 0, 1]\n\n var lineWidth = options.lineWidth || 1\n\n var hadGap = false\n\n fill_loop:\n for (i = 1; i < positions.length; ++i) {\n var a = positions[i - 1]\n var b = positions[i]\n\n arcLengthArray.push(arcLength)\n pointArray.push(a.slice())\n\n for (j = 0; j < 3; ++j) {\n if (isNaN(a[j]) || isNaN(b[j]) ||\n !isFinite(a[j]) || !isFinite(b[j])) {\n\n if (!connectGaps && buffer.length > 0) {\n for (var k = 0; k < 24; ++k) {\n buffer.push(buffer[buffer.length - 12])\n }\n vertexCount += 2\n hadGap = true\n }\n\n continue fill_loop\n }\n bounds[0][j] = Math.min(bounds[0][j], a[j], b[j])\n bounds[1][j] = Math.max(bounds[1][j], a[j], b[j])\n }\n\n var acolor, bcolor\n if (Array.isArray(colors[0])) {\n acolor = (colors.length > i - 1) ? colors[i - 1] : // using index value\n (colors.length > 0) ? colors[colors.length - 1] : // using last item\n [0, 0, 0, 1]; // using black\n\n bcolor = (colors.length > i) ? colors[i] : // using index value\n (colors.length > 0) ? colors[colors.length - 1] : // using last item\n [0, 0, 0, 1]; // using black\n } else {\n acolor = bcolor = colors\n }\n\n if (acolor.length === 3) {\n acolor = [acolor[0], acolor[1], acolor[2], 1]\n }\n if (bcolor.length === 3) {\n bcolor = [bcolor[0], bcolor[1], bcolor[2], 1]\n }\n\n if(!this.hasAlpha && acolor[3] < 1) this.hasAlpha = true\n\n var w0\n if (Array.isArray(lineWidth)) {\n w0 = (lineWidth.length > i - 1) ? lineWidth[i - 1] : // using index value\n (lineWidth.length > 0) ? lineWidth[lineWidth.length - 1] : // using last item\n [0, 0, 0, 1]; // using black\n } else {\n w0 = lineWidth\n }\n\n var t0 = arcLength\n arcLength += distance(a, b)\n\n if (hadGap) {\n for (j = 0; j < 2; ++j) {\n buffer.push(\n a[0], a[1], a[2], b[0], b[1], b[2], t0, w0, acolor[0], acolor[1], acolor[2], acolor[3])\n }\n vertexCount += 2\n hadGap = false\n }\n\n buffer.push(\n a[0], a[1], a[2], b[0], b[1], b[2], t0, w0, acolor[0], acolor[1], acolor[2], acolor[3],\n a[0], a[1], a[2], b[0], b[1], b[2], t0, -w0, acolor[0], acolor[1], acolor[2], acolor[3],\n b[0], b[1], b[2], a[0], a[1], a[2], arcLength, -w0, bcolor[0], bcolor[1], bcolor[2], bcolor[3],\n b[0], b[1], b[2], a[0], a[1], a[2], arcLength, w0, bcolor[0], bcolor[1], bcolor[2], bcolor[3])\n\n vertexCount += 4\n }\n }\n this.buffer.update(buffer)\n\n arcLengthArray.push(arcLength)\n pointArray.push(positions[positions.length - 1].slice())\n\n this.bounds = bounds\n\n this.vertexCount = vertexCount\n\n this.points = pointArray\n this.arcLength = arcLengthArray\n\n if ('dashes' in options) {\n var dashArray = options.dashes\n\n // Calculate prefix sum\n var prefixSum = dashArray.slice()\n prefixSum.unshift(0)\n for (i = 1; i < prefixSum.length; ++i) {\n prefixSum[i] = prefixSum[i - 1] + prefixSum[i]\n }\n\n var dashTexture = ndarray(new Array(256 * 4), [256, 1, 4])\n for (i = 0; i < 256; ++i) {\n for (j = 0; j < 4; ++j) {\n dashTexture.set(i, 0, j, 0)\n }\n if (bsearch.le(prefixSum, prefixSum[prefixSum.length - 1] * i / 255.0) & 1) {\n dashTexture.set(i, 0, 0, 0)\n } else {\n dashTexture.set(i, 0, 0, 255)\n }\n }\n\n this.texture.setPixels(dashTexture)\n }\n}\n\nproto.dispose = function () {\n this.shader.dispose()\n this.vao.dispose()\n this.buffer.dispose()\n}\n\nproto.pick = function (selection) {\n if (!selection) {\n return null\n }\n if (selection.id !== this.pickId) {\n return null\n }\n var tau = unpackFloat(\n selection.value[0],\n selection.value[1],\n selection.value[2],\n 0)\n var index = bsearch.le(this.arcLength, tau)\n if (index < 0) {\n return null\n }\n if (index === this.arcLength.length - 1) {\n return new PickResult(\n this.arcLength[this.arcLength.length - 1],\n this.points[this.points.length - 1].slice(),\n index)\n }\n var a = this.points[index]\n var b = this.points[Math.min(index + 1, this.points.length - 1)]\n var t = (tau - this.arcLength[index]) / (this.arcLength[index + 1] - this.arcLength[index])\n var ti = 1.0 - t\n var x = [0, 0, 0]\n for (var i = 0; i < 3; ++i) {\n x[i] = ti * a[i] + t * b[i]\n }\n var dataIndex = Math.min((t < 0.5) ? index : (index + 1), this.points.length - 1)\n return new PickResult(\n tau,\n x,\n dataIndex,\n this.points[dataIndex])\n}\n\nfunction createLinePlot (options) {\n var gl = options.gl || (options.scene && options.scene.gl)\n\n var shader = createShader(gl)\n shader.attributes.position.location = 0\n shader.attributes.nextPosition.location = 1\n shader.attributes.arcLength.location = 2\n shader.attributes.lineWidth.location = 3\n shader.attributes.color.location = 4\n\n var pickShader = createPickShader(gl)\n pickShader.attributes.position.location = 0\n pickShader.attributes.nextPosition.location = 1\n pickShader.attributes.arcLength.location = 2\n pickShader.attributes.lineWidth.location = 3\n pickShader.attributes.color.location = 4\n\n var buffer = createBuffer(gl)\n var vao = createVAO(gl, [\n {\n 'buffer': buffer,\n 'size': 3,\n 'offset': 0,\n 'stride': 48\n },\n {\n 'buffer': buffer,\n 'size': 3,\n 'offset': 12,\n 'stride': 48\n },\n {\n 'buffer': buffer,\n 'size': 1,\n 'offset': 24,\n 'stride': 48\n },\n {\n 'buffer': buffer,\n 'size': 1,\n 'offset': 28,\n 'stride': 48\n },\n {\n 'buffer': buffer,\n 'size': 4,\n 'offset': 32,\n 'stride': 48\n }\n ])\n\n // Create texture for dash pattern\n var defaultTexture = ndarray(new Array(256 * 4), [256, 1, 4])\n for (var i = 0; i < 256 * 4; ++i) {\n defaultTexture.data[i] = 255\n }\n var texture = createTexture(gl, defaultTexture)\n texture.wrap = gl.REPEAT\n\n var linePlot = new LinePlot(gl, shader, pickShader, buffer, vao, texture)\n linePlot.update(options)\n return linePlot\n}\n\n},{\"./lib/shaders\":90,\"binary-search-bounds\":31,\"gl-buffer\":78,\"gl-texture2d\":146,\"gl-vao\":150,\"ndarray\":259}],92:[function(_glvis_,module,exports){\nmodule.exports = clone;\n\n/**\n * Creates a new mat4 initialized with values from an existing matrix\n *\n * @param {mat4} a matrix to clone\n * @returns {mat4} a new 4x4 matrix\n */\nfunction clone(a) {\n var out = new Float32Array(16);\n out[0] = a[0];\n out[1] = a[1];\n out[2] = a[2];\n out[3] = a[3];\n out[4] = a[4];\n out[5] = a[5];\n out[6] = a[6];\n out[7] = a[7];\n out[8] = a[8];\n out[9] = a[9];\n out[10] = a[10];\n out[11] = a[11];\n out[12] = a[12];\n out[13] = a[13];\n out[14] = a[14];\n out[15] = a[15];\n return out;\n};\n},{}],93:[function(_glvis_,module,exports){\nmodule.exports = create;\n\n/**\n * Creates a new identity mat4\n *\n * @returns {mat4} a new 4x4 matrix\n */\nfunction create() {\n var out = new Float32Array(16);\n out[0] = 1;\n out[1] = 0;\n out[2] = 0;\n out[3] = 0;\n out[4] = 0;\n out[5] = 1;\n out[6] = 0;\n out[7] = 0;\n out[8] = 0;\n out[9] = 0;\n out[10] = 1;\n out[11] = 0;\n out[12] = 0;\n out[13] = 0;\n out[14] = 0;\n out[15] = 1;\n return out;\n};\n},{}],94:[function(_glvis_,module,exports){\nmodule.exports = determinant;\n\n/**\n * Calculates the determinant of a mat4\n *\n * @param {mat4} a the source matrix\n * @returns {Number} determinant of a\n */\nfunction determinant(a) {\n var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3],\n a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7],\n a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11],\n a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15],\n\n b00 = a00 * a11 - a01 * a10,\n b01 = a00 * a12 - a02 * a10,\n b02 = a00 * a13 - a03 * a10,\n b03 = a01 * a12 - a02 * a11,\n b04 = a01 * a13 - a03 * a11,\n b05 = a02 * a13 - a03 * a12,\n b06 = a20 * a31 - a21 * a30,\n b07 = a20 * a32 - a22 * a30,\n b08 = a20 * a33 - a23 * a30,\n b09 = a21 * a32 - a22 * a31,\n b10 = a21 * a33 - a23 * a31,\n b11 = a22 * a33 - a23 * a32;\n\n // Calculate the determinant\n return b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06;\n};\n},{}],95:[function(_glvis_,module,exports){\nmodule.exports = fromQuat;\n\n/**\n * Creates a matrix from a quaternion rotation.\n *\n * @param {mat4} out mat4 receiving operation result\n * @param {quat4} q Rotation quaternion\n * @returns {mat4} out\n */\nfunction fromQuat(out, q) {\n var x = q[0], y = q[1], z = q[2], w = q[3],\n x2 = x + x,\n y2 = y + y,\n z2 = z + z,\n\n xx = x * x2,\n yx = y * x2,\n yy = y * y2,\n zx = z * x2,\n zy = z * y2,\n zz = z * z2,\n wx = w * x2,\n wy = w * y2,\n wz = w * z2;\n\n out[0] = 1 - yy - zz;\n out[1] = yx + wz;\n out[2] = zx - wy;\n out[3] = 0;\n\n out[4] = yx - wz;\n out[5] = 1 - xx - zz;\n out[6] = zy + wx;\n out[7] = 0;\n\n out[8] = zx + wy;\n out[9] = zy - wx;\n out[10] = 1 - xx - yy;\n out[11] = 0;\n\n out[12] = 0;\n out[13] = 0;\n out[14] = 0;\n out[15] = 1;\n\n return out;\n};\n},{}],96:[function(_glvis_,module,exports){\nmodule.exports = fromRotationTranslation;\n\n/**\n * Creates a matrix from a quaternion rotation and vector translation\n * This is equivalent to (but much faster than):\n *\n * mat4.identity(dest);\n * mat4.translate(dest, vec);\n * var quatMat = mat4.create();\n * quat4.toMat4(quat, quatMat);\n * mat4.multiply(dest, quatMat);\n *\n * @param {mat4} out mat4 receiving operation result\n * @param {quat4} q Rotation quaternion\n * @param {vec3} v Translation vector\n * @returns {mat4} out\n */\nfunction fromRotationTranslation(out, q, v) {\n // Quaternion math\n var x = q[0], y = q[1], z = q[2], w = q[3],\n x2 = x + x,\n y2 = y + y,\n z2 = z + z,\n\n xx = x * x2,\n xy = x * y2,\n xz = x * z2,\n yy = y * y2,\n yz = y * z2,\n zz = z * z2,\n wx = w * x2,\n wy = w * y2,\n wz = w * z2;\n\n out[0] = 1 - (yy + zz);\n out[1] = xy + wz;\n out[2] = xz - wy;\n out[3] = 0;\n out[4] = xy - wz;\n out[5] = 1 - (xx + zz);\n out[6] = yz + wx;\n out[7] = 0;\n out[8] = xz + wy;\n out[9] = yz - wx;\n out[10] = 1 - (xx + yy);\n out[11] = 0;\n out[12] = v[0];\n out[13] = v[1];\n out[14] = v[2];\n out[15] = 1;\n \n return out;\n};\n},{}],97:[function(_glvis_,module,exports){\nmodule.exports = identity;\n\n/**\n * Set a mat4 to the identity matrix\n *\n * @param {mat4} out the receiving matrix\n * @returns {mat4} out\n */\nfunction identity(out) {\n out[0] = 1;\n out[1] = 0;\n out[2] = 0;\n out[3] = 0;\n out[4] = 0;\n out[5] = 1;\n out[6] = 0;\n out[7] = 0;\n out[8] = 0;\n out[9] = 0;\n out[10] = 1;\n out[11] = 0;\n out[12] = 0;\n out[13] = 0;\n out[14] = 0;\n out[15] = 1;\n return out;\n};\n},{}],98:[function(_glvis_,module,exports){\nmodule.exports = invert;\n\n/**\n * Inverts a mat4\n *\n * @param {mat4} out the receiving matrix\n * @param {mat4} a the source matrix\n * @returns {mat4} out\n */\nfunction invert(out, a) {\n var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3],\n a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7],\n a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11],\n a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15],\n\n b00 = a00 * a11 - a01 * a10,\n b01 = a00 * a12 - a02 * a10,\n b02 = a00 * a13 - a03 * a10,\n b03 = a01 * a12 - a02 * a11,\n b04 = a01 * a13 - a03 * a11,\n b05 = a02 * a13 - a03 * a12,\n b06 = a20 * a31 - a21 * a30,\n b07 = a20 * a32 - a22 * a30,\n b08 = a20 * a33 - a23 * a30,\n b09 = a21 * a32 - a22 * a31,\n b10 = a21 * a33 - a23 * a31,\n b11 = a22 * a33 - a23 * a32,\n\n // Calculate the determinant\n det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06;\n\n if (!det) { \n return null; \n }\n det = 1.0 / det;\n\n out[0] = (a11 * b11 - a12 * b10 + a13 * b09) * det;\n out[1] = (a02 * b10 - a01 * b11 - a03 * b09) * det;\n out[2] = (a31 * b05 - a32 * b04 + a33 * b03) * det;\n out[3] = (a22 * b04 - a21 * b05 - a23 * b03) * det;\n out[4] = (a12 * b08 - a10 * b11 - a13 * b07) * det;\n out[5] = (a00 * b11 - a02 * b08 + a03 * b07) * det;\n out[6] = (a32 * b02 - a30 * b05 - a33 * b01) * det;\n out[7] = (a20 * b05 - a22 * b02 + a23 * b01) * det;\n out[8] = (a10 * b10 - a11 * b08 + a13 * b06) * det;\n out[9] = (a01 * b08 - a00 * b10 - a03 * b06) * det;\n out[10] = (a30 * b04 - a31 * b02 + a33 * b00) * det;\n out[11] = (a21 * b02 - a20 * b04 - a23 * b00) * det;\n out[12] = (a11 * b07 - a10 * b09 - a12 * b06) * det;\n out[13] = (a00 * b09 - a01 * b07 + a02 * b06) * det;\n out[14] = (a31 * b01 - a30 * b03 - a32 * b00) * det;\n out[15] = (a20 * b03 - a21 * b01 + a22 * b00) * det;\n\n return out;\n};\n},{}],99:[function(_glvis_,module,exports){\nvar identity = _glvis_('./identity');\n\nmodule.exports = lookAt;\n\n/**\n * Generates a look-at matrix with the given eye position, focal point, and up axis\n *\n * @param {mat4} out mat4 frustum matrix will be written into\n * @param {vec3} eye Position of the viewer\n * @param {vec3} center Point the viewer is looking at\n * @param {vec3} up vec3 pointing up\n * @returns {mat4} out\n */\nfunction lookAt(out, eye, center, up) {\n var x0, x1, x2, y0, y1, y2, z0, z1, z2, len,\n eyex = eye[0],\n eyey = eye[1],\n eyez = eye[2],\n upx = up[0],\n upy = up[1],\n upz = up[2],\n centerx = center[0],\n centery = center[1],\n centerz = center[2];\n\n if (Math.abs(eyex - centerx) < 0.000001 &&\n Math.abs(eyey - centery) < 0.000001 &&\n Math.abs(eyez - centerz) < 0.000001) {\n return identity(out);\n }\n\n z0 = eyex - centerx;\n z1 = eyey - centery;\n z2 = eyez - centerz;\n\n len = 1 / Math.sqrt(z0 * z0 + z1 * z1 + z2 * z2);\n z0 *= len;\n z1 *= len;\n z2 *= len;\n\n x0 = upy * z2 - upz * z1;\n x1 = upz * z0 - upx * z2;\n x2 = upx * z1 - upy * z0;\n len = Math.sqrt(x0 * x0 + x1 * x1 + x2 * x2);\n if (!len) {\n x0 = 0;\n x1 = 0;\n x2 = 0;\n } else {\n len = 1 / len;\n x0 *= len;\n x1 *= len;\n x2 *= len;\n }\n\n y0 = z1 * x2 - z2 * x1;\n y1 = z2 * x0 - z0 * x2;\n y2 = z0 * x1 - z1 * x0;\n\n len = Math.sqrt(y0 * y0 + y1 * y1 + y2 * y2);\n if (!len) {\n y0 = 0;\n y1 = 0;\n y2 = 0;\n } else {\n len = 1 / len;\n y0 *= len;\n y1 *= len;\n y2 *= len;\n }\n\n out[0] = x0;\n out[1] = y0;\n out[2] = z0;\n out[3] = 0;\n out[4] = x1;\n out[5] = y1;\n out[6] = z1;\n out[7] = 0;\n out[8] = x2;\n out[9] = y2;\n out[10] = z2;\n out[11] = 0;\n out[12] = -(x0 * eyex + x1 * eyey + x2 * eyez);\n out[13] = -(y0 * eyex + y1 * eyey + y2 * eyez);\n out[14] = -(z0 * eyex + z1 * eyey + z2 * eyez);\n out[15] = 1;\n\n return out;\n};\n},{\"./identity\":97}],100:[function(_glvis_,module,exports){\nmodule.exports = multiply;\n\n/**\n * Multiplies two mat4's\n *\n * @param {mat4} out the receiving matrix\n * @param {mat4} a the first operand\n * @param {mat4} b the second operand\n * @returns {mat4} out\n */\nfunction multiply(out, a, b) {\n var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3],\n a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7],\n a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11],\n a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15];\n\n // Cache only the current line of the second matrix\n var b0 = b[0], b1 = b[1], b2 = b[2], b3 = b[3]; \n out[0] = b0*a00 + b1*a10 + b2*a20 + b3*a30;\n out[1] = b0*a01 + b1*a11 + b2*a21 + b3*a31;\n out[2] = b0*a02 + b1*a12 + b2*a22 + b3*a32;\n out[3] = b0*a03 + b1*a13 + b2*a23 + b3*a33;\n\n b0 = b[4]; b1 = b[5]; b2 = b[6]; b3 = b[7];\n out[4] = b0*a00 + b1*a10 + b2*a20 + b3*a30;\n out[5] = b0*a01 + b1*a11 + b2*a21 + b3*a31;\n out[6] = b0*a02 + b1*a12 + b2*a22 + b3*a32;\n out[7] = b0*a03 + b1*a13 + b2*a23 + b3*a33;\n\n b0 = b[8]; b1 = b[9]; b2 = b[10]; b3 = b[11];\n out[8] = b0*a00 + b1*a10 + b2*a20 + b3*a30;\n out[9] = b0*a01 + b1*a11 + b2*a21 + b3*a31;\n out[10] = b0*a02 + b1*a12 + b2*a22 + b3*a32;\n out[11] = b0*a03 + b1*a13 + b2*a23 + b3*a33;\n\n b0 = b[12]; b1 = b[13]; b2 = b[14]; b3 = b[15];\n out[12] = b0*a00 + b1*a10 + b2*a20 + b3*a30;\n out[13] = b0*a01 + b1*a11 + b2*a21 + b3*a31;\n out[14] = b0*a02 + b1*a12 + b2*a22 + b3*a32;\n out[15] = b0*a03 + b1*a13 + b2*a23 + b3*a33;\n return out;\n};\n},{}],101:[function(_glvis_,module,exports){\nmodule.exports = ortho;\n\n/**\n * Generates a orthogonal projection matrix with the given bounds\n *\n * @param {mat4} out mat4 frustum matrix will be written into\n * @param {number} left Left bound of the frustum\n * @param {number} right Right bound of the frustum\n * @param {number} bottom Bottom bound of the frustum\n * @param {number} top Top bound of the frustum\n * @param {number} near Near bound of the frustum\n * @param {number} far Far bound of the frustum\n * @returns {mat4} out\n */\nfunction ortho(out, left, right, bottom, top, near, far) {\n var lr = 1 / (left - right),\n bt = 1 / (bottom - top),\n nf = 1 / (near - far);\n out[0] = -2 * lr;\n out[1] = 0;\n out[2] = 0;\n out[3] = 0;\n out[4] = 0;\n out[5] = -2 * bt;\n out[6] = 0;\n out[7] = 0;\n out[8] = 0;\n out[9] = 0;\n out[10] = 2 * nf;\n out[11] = 0;\n out[12] = (left + right) * lr;\n out[13] = (top + bottom) * bt;\n out[14] = (far + near) * nf;\n out[15] = 1;\n return out;\n};\n},{}],102:[function(_glvis_,module,exports){\nmodule.exports = perspective;\n\n/**\n * Generates a perspective projection matrix with the given bounds\n *\n * @param {mat4} out mat4 frustum matrix will be written into\n * @param {number} fovy Vertical field of view in radians\n * @param {number} aspect Aspect ratio. typically viewport width/height\n * @param {number} near Near bound of the frustum\n * @param {number} far Far bound of the frustum\n * @returns {mat4} out\n */\nfunction perspective(out, fovy, aspect, near, far) {\n var f = 1.0 / Math.tan(fovy / 2),\n nf = 1 / (near - far);\n out[0] = f / aspect;\n out[1] = 0;\n out[2] = 0;\n out[3] = 0;\n out[4] = 0;\n out[5] = f;\n out[6] = 0;\n out[7] = 0;\n out[8] = 0;\n out[9] = 0;\n out[10] = (far + near) * nf;\n out[11] = -1;\n out[12] = 0;\n out[13] = 0;\n out[14] = (2 * far * near) * nf;\n out[15] = 0;\n return out;\n};\n},{}],103:[function(_glvis_,module,exports){\nmodule.exports = rotate;\n\n/**\n * Rotates a mat4 by the given angle\n *\n * @param {mat4} out the receiving matrix\n * @param {mat4} a the matrix to rotate\n * @param {Number} rad the angle to rotate the matrix by\n * @param {vec3} axis the axis to rotate around\n * @returns {mat4} out\n */\nfunction rotate(out, a, rad, axis) {\n var x = axis[0], y = axis[1], z = axis[2],\n len = Math.sqrt(x * x + y * y + z * z),\n s, c, t,\n a00, a01, a02, a03,\n a10, a11, a12, a13,\n a20, a21, a22, a23,\n b00, b01, b02,\n b10, b11, b12,\n b20, b21, b22;\n\n if (Math.abs(len) < 0.000001) { return null; }\n \n len = 1 / len;\n x *= len;\n y *= len;\n z *= len;\n\n s = Math.sin(rad);\n c = Math.cos(rad);\n t = 1 - c;\n\n a00 = a[0]; a01 = a[1]; a02 = a[2]; a03 = a[3];\n a10 = a[4]; a11 = a[5]; a12 = a[6]; a13 = a[7];\n a20 = a[8]; a21 = a[9]; a22 = a[10]; a23 = a[11];\n\n // Construct the elements of the rotation matrix\n b00 = x * x * t + c; b01 = y * x * t + z * s; b02 = z * x * t - y * s;\n b10 = x * y * t - z * s; b11 = y * y * t + c; b12 = z * y * t + x * s;\n b20 = x * z * t + y * s; b21 = y * z * t - x * s; b22 = z * z * t + c;\n\n // Perform rotation-specific matrix multiplication\n out[0] = a00 * b00 + a10 * b01 + a20 * b02;\n out[1] = a01 * b00 + a11 * b01 + a21 * b02;\n out[2] = a02 * b00 + a12 * b01 + a22 * b02;\n out[3] = a03 * b00 + a13 * b01 + a23 * b02;\n out[4] = a00 * b10 + a10 * b11 + a20 * b12;\n out[5] = a01 * b10 + a11 * b11 + a21 * b12;\n out[6] = a02 * b10 + a12 * b11 + a22 * b12;\n out[7] = a03 * b10 + a13 * b11 + a23 * b12;\n out[8] = a00 * b20 + a10 * b21 + a20 * b22;\n out[9] = a01 * b20 + a11 * b21 + a21 * b22;\n out[10] = a02 * b20 + a12 * b21 + a22 * b22;\n out[11] = a03 * b20 + a13 * b21 + a23 * b22;\n\n if (a !== out) { // If the source and destination differ, copy the unchanged last row\n out[12] = a[12];\n out[13] = a[13];\n out[14] = a[14];\n out[15] = a[15];\n }\n return out;\n};\n},{}],104:[function(_glvis_,module,exports){\nmodule.exports = rotateX;\n\n/**\n * Rotates a matrix by the given angle around the X axis\n *\n * @param {mat4} out the receiving matrix\n * @param {mat4} a the matrix to rotate\n * @param {Number} rad the angle to rotate the matrix by\n * @returns {mat4} out\n */\nfunction rotateX(out, a, rad) {\n var s = Math.sin(rad),\n c = Math.cos(rad),\n a10 = a[4],\n a11 = a[5],\n a12 = a[6],\n a13 = a[7],\n a20 = a[8],\n a21 = a[9],\n a22 = a[10],\n a23 = a[11];\n\n if (a !== out) { // If the source and destination differ, copy the unchanged rows\n out[0] = a[0];\n out[1] = a[1];\n out[2] = a[2];\n out[3] = a[3];\n out[12] = a[12];\n out[13] = a[13];\n out[14] = a[14];\n out[15] = a[15];\n }\n\n // Perform axis-specific matrix multiplication\n out[4] = a10 * c + a20 * s;\n out[5] = a11 * c + a21 * s;\n out[6] = a12 * c + a22 * s;\n out[7] = a13 * c + a23 * s;\n out[8] = a20 * c - a10 * s;\n out[9] = a21 * c - a11 * s;\n out[10] = a22 * c - a12 * s;\n out[11] = a23 * c - a13 * s;\n return out;\n};\n},{}],105:[function(_glvis_,module,exports){\nmodule.exports = rotateY;\n\n/**\n * Rotates a matrix by the given angle around the Y axis\n *\n * @param {mat4} out the receiving matrix\n * @param {mat4} a the matrix to rotate\n * @param {Number} rad the angle to rotate the matrix by\n * @returns {mat4} out\n */\nfunction rotateY(out, a, rad) {\n var s = Math.sin(rad),\n c = Math.cos(rad),\n a00 = a[0],\n a01 = a[1],\n a02 = a[2],\n a03 = a[3],\n a20 = a[8],\n a21 = a[9],\n a22 = a[10],\n a23 = a[11];\n\n if (a !== out) { // If the source and destination differ, copy the unchanged rows\n out[4] = a[4];\n out[5] = a[5];\n out[6] = a[6];\n out[7] = a[7];\n out[12] = a[12];\n out[13] = a[13];\n out[14] = a[14];\n out[15] = a[15];\n }\n\n // Perform axis-specific matrix multiplication\n out[0] = a00 * c - a20 * s;\n out[1] = a01 * c - a21 * s;\n out[2] = a02 * c - a22 * s;\n out[3] = a03 * c - a23 * s;\n out[8] = a00 * s + a20 * c;\n out[9] = a01 * s + a21 * c;\n out[10] = a02 * s + a22 * c;\n out[11] = a03 * s + a23 * c;\n return out;\n};\n},{}],106:[function(_glvis_,module,exports){\nmodule.exports = rotateZ;\n\n/**\n * Rotates a matrix by the given angle around the Z axis\n *\n * @param {mat4} out the receiving matrix\n * @param {mat4} a the matrix to rotate\n * @param {Number} rad the angle to rotate the matrix by\n * @returns {mat4} out\n */\nfunction rotateZ(out, a, rad) {\n var s = Math.sin(rad),\n c = Math.cos(rad),\n a00 = a[0],\n a01 = a[1],\n a02 = a[2],\n a03 = a[3],\n a10 = a[4],\n a11 = a[5],\n a12 = a[6],\n a13 = a[7];\n\n if (a !== out) { // If the source and destination differ, copy the unchanged last row\n out[8] = a[8];\n out[9] = a[9];\n out[10] = a[10];\n out[11] = a[11];\n out[12] = a[12];\n out[13] = a[13];\n out[14] = a[14];\n out[15] = a[15];\n }\n\n // Perform axis-specific matrix multiplication\n out[0] = a00 * c + a10 * s;\n out[1] = a01 * c + a11 * s;\n out[2] = a02 * c + a12 * s;\n out[3] = a03 * c + a13 * s;\n out[4] = a10 * c - a00 * s;\n out[5] = a11 * c - a01 * s;\n out[6] = a12 * c - a02 * s;\n out[7] = a13 * c - a03 * s;\n return out;\n};\n},{}],107:[function(_glvis_,module,exports){\nmodule.exports = scale;\n\n/**\n * Scales the mat4 by the dimensions in the given vec3\n *\n * @param {mat4} out the receiving matrix\n * @param {mat4} a the matrix to scale\n * @param {vec3} v the vec3 to scale the matrix by\n * @returns {mat4} out\n **/\nfunction scale(out, a, v) {\n var x = v[0], y = v[1], z = v[2];\n\n out[0] = a[0] * x;\n out[1] = a[1] * x;\n out[2] = a[2] * x;\n out[3] = a[3] * x;\n out[4] = a[4] * y;\n out[5] = a[5] * y;\n out[6] = a[6] * y;\n out[7] = a[7] * y;\n out[8] = a[8] * z;\n out[9] = a[9] * z;\n out[10] = a[10] * z;\n out[11] = a[11] * z;\n out[12] = a[12];\n out[13] = a[13];\n out[14] = a[14];\n out[15] = a[15];\n return out;\n};\n},{}],108:[function(_glvis_,module,exports){\nmodule.exports = translate;\n\n/**\n * Translate a mat4 by the given vector\n *\n * @param {mat4} out the receiving matrix\n * @param {mat4} a the matrix to translate\n * @param {vec3} v vector to translate by\n * @returns {mat4} out\n */\nfunction translate(out, a, v) {\n var x = v[0], y = v[1], z = v[2],\n a00, a01, a02, a03,\n a10, a11, a12, a13,\n a20, a21, a22, a23;\n\n if (a === out) {\n out[12] = a[0] * x + a[4] * y + a[8] * z + a[12];\n out[13] = a[1] * x + a[5] * y + a[9] * z + a[13];\n out[14] = a[2] * x + a[6] * y + a[10] * z + a[14];\n out[15] = a[3] * x + a[7] * y + a[11] * z + a[15];\n } else {\n a00 = a[0]; a01 = a[1]; a02 = a[2]; a03 = a[3];\n a10 = a[4]; a11 = a[5]; a12 = a[6]; a13 = a[7];\n a20 = a[8]; a21 = a[9]; a22 = a[10]; a23 = a[11];\n\n out[0] = a00; out[1] = a01; out[2] = a02; out[3] = a03;\n out[4] = a10; out[5] = a11; out[6] = a12; out[7] = a13;\n out[8] = a20; out[9] = a21; out[10] = a22; out[11] = a23;\n\n out[12] = a00 * x + a10 * y + a20 * z + a[12];\n out[13] = a01 * x + a11 * y + a21 * z + a[13];\n out[14] = a02 * x + a12 * y + a22 * z + a[14];\n out[15] = a03 * x + a13 * y + a23 * z + a[15];\n }\n\n return out;\n};\n},{}],109:[function(_glvis_,module,exports){\nmodule.exports = transpose;\n\n/**\n * Transpose the values of a mat4\n *\n * @param {mat4} out the receiving matrix\n * @param {mat4} a the source matrix\n * @returns {mat4} out\n */\nfunction transpose(out, a) {\n // If we are transposing ourselves we can skip a few steps but have to cache some values\n if (out === a) {\n var a01 = a[1], a02 = a[2], a03 = a[3],\n a12 = a[6], a13 = a[7],\n a23 = a[11];\n\n out[1] = a[4];\n out[2] = a[8];\n out[3] = a[12];\n out[4] = a01;\n out[6] = a[9];\n out[7] = a[13];\n out[8] = a02;\n out[9] = a12;\n out[11] = a[14];\n out[12] = a03;\n out[13] = a13;\n out[14] = a23;\n } else {\n out[0] = a[0];\n out[1] = a[4];\n out[2] = a[8];\n out[3] = a[12];\n out[4] = a[1];\n out[5] = a[5];\n out[6] = a[9];\n out[7] = a[13];\n out[8] = a[2];\n out[9] = a[6];\n out[10] = a[10];\n out[11] = a[14];\n out[12] = a[3];\n out[13] = a[7];\n out[14] = a[11];\n out[15] = a[15];\n }\n \n return out;\n};\n},{}],110:[function(_glvis_,module,exports){\n'use strict'\n\nvar barycentric = _glvis_('barycentric')\nvar closestPointToTriangle = _glvis_('polytope-closest-point/lib/closest_point_2d.js')\n\nmodule.exports = closestPointToPickLocation\n\nfunction xformMatrix(m, v) {\n var out = [0,0,0,0]\n for(var i=0; i<4; ++i) {\n for(var j=0; j<4; ++j) {\n out[j] += m[4*i + j] * v[i]\n }\n }\n return out\n}\n\nfunction projectVertex(v, model, view, projection, resolution) {\n var p = xformMatrix(projection,\n xformMatrix(view,\n xformMatrix(model, [v[0], v[1], v[2], 1])))\n for(var i=0; i<3; ++i) {\n p[i] /= p[3]\n }\n return [ 0.5 * resolution[0] * (1.0+p[0]), 0.5 * resolution[1] * (1.0-p[1]) ]\n}\n\nfunction barycentricCoord(simplex, point) {\n if(simplex.length === 2) {\n var d0 = 0.0\n var d1 = 0.0\n for(var i=0; i<2; ++i) {\n d0 += Math.pow(point[i] - simplex[0][i], 2)\n d1 += Math.pow(point[i] - simplex[1][i], 2)\n }\n d0 = Math.sqrt(d0)\n d1 = Math.sqrt(d1)\n if(d0+d1 < 1e-6) {\n return [1,0]\n }\n return [d1/(d0+d1),d0/(d1+d0)]\n } else if(simplex.length === 3) {\n var closestPoint = [0,0]\n closestPointToTriangle(simplex[0], simplex[1], simplex[2], point, closestPoint)\n return barycentric(simplex, closestPoint)\n }\n return []\n}\n\nfunction interpolate(simplex, weights) {\n var result = [0,0,0]\n for(var i=0; i 1.0001) {\n return null\n }\n s += weights[i]\n }\n if(Math.abs(s - 1.0) > 0.001) {\n return null\n }\n return [closestIndex, interpolate(simplex, weights), weights]\n}\n},{\"barycentric\":14,\"polytope-closest-point/lib/closest_point_2d.js\":270}],111:[function(_glvis_,module,exports){\nvar glslify = _glvis_('glslify')\n\nvar triVertSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position, normal;\\nattribute vec4 color;\\nattribute vec2 uv;\\n\\nuniform mat4 model\\n , view\\n , projection\\n , inverseModel;\\nuniform vec3 eyePosition\\n , lightPosition;\\n\\nvarying vec3 f_normal\\n , f_lightDirection\\n , f_eyeDirection\\n , f_data;\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvec4 project(vec3 p) {\\n return projection * view * model * vec4(p, 1.0);\\n}\\n\\nvoid main() {\\n gl_Position = project(position);\\n\\n //Lighting geometry parameters\\n vec4 cameraCoordinate = view * vec4(position , 1.0);\\n cameraCoordinate.xyz /= cameraCoordinate.w;\\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\\n\\n f_color = color;\\n f_data = position;\\n f_uv = uv;\\n}\\n\"])\nvar triFragSrc = glslify([\"#extension GL_OES_standard_derivatives : enable\\n\\nprecision highp float;\\n#define GLSLIFY 1\\n\\nfloat beckmannDistribution(float x, float roughness) {\\n float NdotH = max(x, 0.0001);\\n float cos2Alpha = NdotH * NdotH;\\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\\n float roughness2 = roughness * roughness;\\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\\n return exp(tan2Alpha / roughness2) / denom;\\n}\\n\\nfloat cookTorranceSpecular(\\n vec3 lightDirection,\\n vec3 viewDirection,\\n vec3 surfaceNormal,\\n float roughness,\\n float fresnel) {\\n\\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\\n\\n //Half angle vector\\n vec3 H = normalize(lightDirection + viewDirection);\\n\\n //Geometric term\\n float NdotH = max(dot(surfaceNormal, H), 0.0);\\n float VdotH = max(dot(viewDirection, H), 0.000001);\\n float LdotH = max(dot(lightDirection, H), 0.000001);\\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\\n float G = min(1.0, min(G1, G2));\\n \\n //Distribution term\\n float D = beckmannDistribution(NdotH, roughness);\\n\\n //Fresnel term\\n float F = pow(1.0 - VdotN, fresnel);\\n\\n //Multiply terms and done\\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\\n}\\n\\n//#pragma glslify: beckmann = require(glsl-specular-beckmann) // used in gl-surface3d\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform float roughness\\n , fresnel\\n , kambient\\n , kdiffuse\\n , kspecular;\\nuniform sampler2D texture;\\n\\nvarying vec3 f_normal\\n , f_lightDirection\\n , f_eyeDirection\\n , f_data;\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n if (f_color.a == 0.0 ||\\n outOfRange(clipBounds[0], clipBounds[1], f_data)\\n ) discard;\\n\\n vec3 N = normalize(f_normal);\\n vec3 L = normalize(f_lightDirection);\\n vec3 V = normalize(f_eyeDirection);\\n\\n if(gl_FrontFacing) {\\n N = -N;\\n }\\n\\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\\n //float specular = max(0.0, beckmann(L, V, N, roughness)); // used in gl-surface3d\\n\\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\\n\\n vec4 surfaceColor = vec4(f_color.rgb, 1.0) * texture2D(texture, f_uv);\\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\\n\\n gl_FragColor = litColor * f_color.a;\\n}\\n\"])\nvar edgeVertSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position;\\nattribute vec4 color;\\nattribute vec2 uv;\\n\\nuniform mat4 model, view, projection;\\n\\nvarying vec4 f_color;\\nvarying vec3 f_data;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n gl_Position = projection * view * model * vec4(position, 1.0);\\n f_color = color;\\n f_data = position;\\n f_uv = uv;\\n}\"])\nvar edgeFragSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform sampler2D texture;\\nuniform float opacity;\\n\\nvarying vec4 f_color;\\nvarying vec3 f_data;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], f_data)) discard;\\n\\n gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\\n}\"])\nvar pointVertSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nattribute vec3 position;\\nattribute vec4 color;\\nattribute vec2 uv;\\nattribute float pointSize;\\n\\nuniform mat4 model, view, projection;\\nuniform vec3 clipBounds[2];\\n\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\\n\\n gl_Position = vec4(0.0, 0.0 ,0.0 ,0.0);\\n } else {\\n gl_Position = projection * view * model * vec4(position, 1.0);\\n }\\n gl_PointSize = pointSize;\\n f_color = color;\\n f_uv = uv;\\n}\"])\nvar pointFragSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nuniform sampler2D texture;\\nuniform float opacity;\\n\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n vec2 pointR = gl_PointCoord.xy - vec2(0.5, 0.5);\\n if(dot(pointR, pointR) > 0.25) {\\n discard;\\n }\\n gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\\n}\"])\nvar pickVertSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position;\\nattribute vec4 id;\\n\\nuniform mat4 model, view, projection;\\n\\nvarying vec3 f_position;\\nvarying vec4 f_id;\\n\\nvoid main() {\\n gl_Position = projection * view * model * vec4(position, 1.0);\\n f_id = id;\\n f_position = position;\\n}\"])\nvar pickFragSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform float pickId;\\n\\nvarying vec3 f_position;\\nvarying vec4 f_id;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\\n\\n gl_FragColor = vec4(pickId, f_id.xyz);\\n}\"])\nvar pickPointVertSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nattribute vec3 position;\\nattribute float pointSize;\\nattribute vec4 id;\\n\\nuniform mat4 model, view, projection;\\nuniform vec3 clipBounds[2];\\n\\nvarying vec3 f_position;\\nvarying vec4 f_id;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\\n\\n gl_Position = vec4(0.0, 0.0, 0.0, 0.0);\\n } else {\\n gl_Position = projection * view * model * vec4(position, 1.0);\\n gl_PointSize = pointSize;\\n }\\n f_id = id;\\n f_position = position;\\n}\"])\nvar contourVertSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position;\\n\\nuniform mat4 model, view, projection;\\n\\nvoid main() {\\n gl_Position = projection * view * model * vec4(position, 1.0);\\n}\"])\nvar contourFragSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nuniform vec3 contourColor;\\n\\nvoid main() {\\n gl_FragColor = vec4(contourColor, 1.0);\\n}\\n\"])\n\nexports.meshShader = {\n vertex: triVertSrc,\n fragment: triFragSrc,\n attributes: [\n {name: 'position', type: 'vec3'},\n {name: 'normal', type: 'vec3'},\n {name: 'color', type: 'vec4'},\n {name: 'uv', type: 'vec2'}\n ]\n}\nexports.wireShader = {\n vertex: edgeVertSrc,\n fragment: edgeFragSrc,\n attributes: [\n {name: 'position', type: 'vec3'},\n {name: 'color', type: 'vec4'},\n {name: 'uv', type: 'vec2'}\n ]\n}\nexports.pointShader = {\n vertex: pointVertSrc,\n fragment: pointFragSrc,\n attributes: [\n {name: 'position', type: 'vec3'},\n {name: 'color', type: 'vec4'},\n {name: 'uv', type: 'vec2'},\n {name: 'pointSize', type: 'float'}\n ]\n}\nexports.pickShader = {\n vertex: pickVertSrc,\n fragment: pickFragSrc,\n attributes: [\n {name: 'position', type: 'vec3'},\n {name: 'id', type: 'vec4'}\n ]\n}\nexports.pointPickShader = {\n vertex: pickPointVertSrc,\n fragment: pickFragSrc,\n attributes: [\n {name: 'position', type: 'vec3'},\n {name: 'pointSize', type: 'float'},\n {name: 'id', type: 'vec4'}\n ]\n}\nexports.contourShader = {\n vertex: contourVertSrc,\n fragment: contourFragSrc,\n attributes: [\n {name: 'position', type: 'vec3'}\n ]\n}\n\n},{\"glslify\":231}],112:[function(_glvis_,module,exports){\n'use strict'\n\nvar DEFAULT_VERTEX_NORMALS_EPSILON = 1e-6; // may be too large if triangles are very small\nvar DEFAULT_FACE_NORMALS_EPSILON = 1e-6;\n\nvar createShader = _glvis_('gl-shader')\nvar createBuffer = _glvis_('gl-buffer')\nvar createVAO = _glvis_('gl-vao')\nvar createTexture = _glvis_('gl-texture2d')\nvar normals = _glvis_('normals')\nvar multiply = _glvis_('gl-mat4/multiply')\nvar invert = _glvis_('gl-mat4/invert')\nvar ndarray = _glvis_('ndarray')\nvar colormap = _glvis_('colormap')\nvar getContour = _glvis_('simplicial-complex-contour')\nvar pool = _glvis_('typedarray-pool')\nvar shaders = _glvis_('./lib/shaders')\nvar closestPoint = _glvis_('./lib/closest-point')\n\nvar meshShader = shaders.meshShader\nvar wireShader = shaders.wireShader\nvar pointShader = shaders.pointShader\nvar pickShader = shaders.pickShader\nvar pointPickShader = shaders.pointPickShader\nvar contourShader = shaders.contourShader\n\nvar IDENTITY = [\n 1,0,0,0,\n 0,1,0,0,\n 0,0,1,0,\n 0,0,0,1]\n\n\nfunction SimplicialMesh(gl\n , texture\n , triShader\n , lineShader\n , pointShader\n , pickShader\n , pointPickShader\n , contourShader\n , trianglePositions\n , triangleIds\n , triangleColors\n , triangleUVs\n , triangleNormals\n , triangleVAO\n , edgePositions\n , edgeIds\n , edgeColors\n , edgeUVs\n , edgeVAO\n , pointPositions\n , pointIds\n , pointColors\n , pointUVs\n , pointSizes\n , pointVAO\n , contourPositions\n , contourVAO) {\n\n this.gl = gl\n this.pixelRatio = 1\n this.cells = []\n this.positions = []\n this.intensity = []\n this.texture = texture\n this.dirty = true\n\n this.triShader = triShader\n this.lineShader = lineShader\n this.pointShader = pointShader\n this.pickShader = pickShader\n this.pointPickShader = pointPickShader\n this.contourShader = contourShader\n\n this.trianglePositions = trianglePositions\n this.triangleColors = triangleColors\n this.triangleNormals = triangleNormals\n this.triangleUVs = triangleUVs\n this.triangleIds = triangleIds\n this.triangleVAO = triangleVAO\n this.triangleCount = 0\n\n this.lineWidth = 1\n this.edgePositions = edgePositions\n this.edgeColors = edgeColors\n this.edgeUVs = edgeUVs\n this.edgeIds = edgeIds\n this.edgeVAO = edgeVAO\n this.edgeCount = 0\n\n this.pointPositions = pointPositions\n this.pointColors = pointColors\n this.pointUVs = pointUVs\n this.pointSizes = pointSizes\n this.pointIds = pointIds\n this.pointVAO = pointVAO\n this.pointCount = 0\n\n this.contourLineWidth = 1\n this.contourPositions = contourPositions\n this.contourVAO = contourVAO\n this.contourCount = 0\n this.contourColor = [0,0,0]\n this.contourEnable = true\n\n this.pickVertex = true;\n this.pickId = 1\n this.bounds = [\n [ Infinity, Infinity, Infinity],\n [-Infinity,-Infinity,-Infinity] ]\n this.clipBounds = [\n [-Infinity,-Infinity,-Infinity],\n [ Infinity, Infinity, Infinity] ]\n\n this.lightPosition = [1e5, 1e5, 0]\n this.ambientLight = 0.8\n this.diffuseLight = 0.8\n this.specularLight = 2.0\n this.roughness = 0.5\n this.fresnel = 1.5\n\n this.opacity = 1.0\n this.hasAlpha = false\n this.opacityscale = false\n\n this._model = IDENTITY\n this._view = IDENTITY\n this._projection = IDENTITY\n this._resolution = [1,1]\n}\n\nvar proto = SimplicialMesh.prototype\n\nproto.isOpaque = function() {\n return !this.hasAlpha\n}\n\nproto.isTransparent = function() {\n return this.hasAlpha\n}\n\nproto.pickSlots = 1\n\nproto.setPickBase = function(id) {\n this.pickId = id\n}\n\nfunction getOpacityFromScale(ratio, opacityscale) {\n\n if(!opacityscale) return 1\n if(!opacityscale.length) return 1\n\n for(var i = 0; i < opacityscale.length; ++i) {\n if(opacityscale.length < 2) return 1\n if(opacityscale[i][0] === ratio) return opacityscale[i][1]\n if(opacityscale[i][0] > ratio && i > 0) {\n var d = (opacityscale[i][0] - ratio) / (opacityscale[i][0] - opacityscale[i - 1][0])\n return opacityscale[i][1] * (1 - d) + d * opacityscale[i - 1][1]\n }\n }\n\n return 1\n}\n\nfunction genColormap(param, opacityscale) {\n var colors = colormap({\n colormap: param\n , nshades: 256\n , format: 'rgba'\n })\n\n var result = new Uint8Array(256*4)\n for(var i=0; i<256; ++i) {\n var c = colors[i]\n for(var j=0; j<3; ++j) {\n result[4*i+j] = c[j]\n }\n if(!opacityscale) {\n result[4*i+3] = 255 * c[3]\n } else {\n result[4*i+3] = 255 * getOpacityFromScale(i / 255.0, opacityscale)\n }\n }\n\n return ndarray(result, [256,256,4], [4,0,1])\n}\n\nfunction takeZComponent(array) {\n var n = array.length\n var result = new Array(n)\n for(var i=0; i 0) {\n var shader = this.triShader\n shader.bind()\n shader.uniforms = uniforms\n\n this.triangleVAO.bind()\n gl.drawArrays(gl.TRIANGLES, 0, this.triangleCount*3)\n this.triangleVAO.unbind()\n }\n\n if(this.edgeCount > 0 && this.lineWidth > 0) {\n var shader = this.lineShader\n shader.bind()\n shader.uniforms = uniforms\n\n this.edgeVAO.bind()\n gl.lineWidth(this.lineWidth * this.pixelRatio)\n gl.drawArrays(gl.LINES, 0, this.edgeCount*2)\n this.edgeVAO.unbind()\n }\n\n if(this.pointCount > 0) {\n var shader = this.pointShader\n shader.bind()\n shader.uniforms = uniforms\n\n this.pointVAO.bind()\n gl.drawArrays(gl.POINTS, 0, this.pointCount)\n this.pointVAO.unbind()\n }\n\n if(this.contourEnable && this.contourCount > 0 && this.contourLineWidth > 0) {\n var shader = this.contourShader\n shader.bind()\n shader.uniforms = uniforms\n\n this.contourVAO.bind()\n gl.drawArrays(gl.LINES, 0, this.contourCount)\n this.contourVAO.unbind()\n }\n}\n\nproto.drawPick = function(params) {\n params = params || {}\n\n var gl = this.gl\n\n var model = params.model || IDENTITY\n var view = params.view || IDENTITY\n var projection = params.projection || IDENTITY\n\n var clipBounds = [[-1e6,-1e6,-1e6],[1e6,1e6,1e6]]\n for(var i=0; i<3; ++i) {\n clipBounds[0][i] = Math.max(clipBounds[0][i], this.clipBounds[0][i])\n clipBounds[1][i] = Math.min(clipBounds[1][i], this.clipBounds[1][i])\n }\n\n //Save camera parameters\n this._model = [].slice.call(model)\n this._view = [].slice.call(view)\n this._projection = [].slice.call(projection)\n this._resolution = [gl.drawingBufferWidth, gl.drawingBufferHeight]\n\n var uniforms = {\n model: model,\n view: view,\n projection: projection,\n clipBounds: clipBounds,\n pickId: this.pickId / 255.0,\n }\n\n var shader = this.pickShader\n shader.bind()\n shader.uniforms = uniforms\n\n if(this.triangleCount > 0) {\n this.triangleVAO.bind()\n gl.drawArrays(gl.TRIANGLES, 0, this.triangleCount*3)\n this.triangleVAO.unbind()\n }\n\n if(this.edgeCount > 0) {\n this.edgeVAO.bind()\n gl.lineWidth(this.lineWidth * this.pixelRatio)\n gl.drawArrays(gl.LINES, 0, this.edgeCount*2)\n this.edgeVAO.unbind()\n }\n\n if(this.pointCount > 0) {\n var shader = this.pointPickShader\n shader.bind()\n shader.uniforms = uniforms\n\n this.pointVAO.bind()\n gl.drawArrays(gl.POINTS, 0, this.pointCount)\n this.pointVAO.unbind()\n }\n}\n\n\nproto.pick = function(pickData) {\n if(!pickData) {\n return null\n }\n if(pickData.id !== this.pickId) {\n return null\n }\n\n var cellId = pickData.value[0] + 256*pickData.value[1] + 65536*pickData.value[2]\n var cell = this.cells[cellId]\n var positions = this.positions\n\n var simplex = new Array(cell.length)\n for(var i=0; i tickOffset[start]) {\n shader.uniforms.dataAxis = DATA_AXIS\n shader.uniforms.screenOffset = SCREEN_OFFSET\n shader.uniforms.color = textColor[axis]\n shader.uniforms.angle = textAngle[axis]\n gl.drawArrays(\n gl.TRIANGLES,\n tickOffset[start],\n tickOffset[end] - tickOffset[start])\n }\n }\n if(labelEnable[axis] && labelCount) {\n SCREEN_OFFSET[axis^1] -= screenScale * pixelRatio * labelPad[axis]\n shader.uniforms.dataAxis = ZERO_2\n shader.uniforms.screenOffset = SCREEN_OFFSET\n shader.uniforms.color = labelColor[axis]\n shader.uniforms.angle = labelAngle[axis]\n gl.drawArrays(\n gl.TRIANGLES,\n labelOffset,\n labelCount)\n }\n\n SCREEN_OFFSET[axis^1] = screenScale * viewBox[2+(axis^1)] - 1.0\n if(tickEnable[axis+2]) {\n SCREEN_OFFSET[axis^1] += screenScale * pixelRatio * tickPad[axis+2]\n if(start < end && tickOffset[end] > tickOffset[start]) {\n shader.uniforms.dataAxis = DATA_AXIS\n shader.uniforms.screenOffset = SCREEN_OFFSET\n shader.uniforms.color = textColor[axis+2]\n shader.uniforms.angle = textAngle[axis+2]\n gl.drawArrays(\n gl.TRIANGLES,\n tickOffset[start],\n tickOffset[end] - tickOffset[start])\n }\n }\n if(labelEnable[axis+2] && labelCount) {\n SCREEN_OFFSET[axis^1] += screenScale * pixelRatio * labelPad[axis+2]\n shader.uniforms.dataAxis = ZERO_2\n shader.uniforms.screenOffset = SCREEN_OFFSET\n shader.uniforms.color = labelColor[axis+2]\n shader.uniforms.angle = labelAngle[axis+2]\n gl.drawArrays(\n gl.TRIANGLES,\n labelOffset,\n labelCount)\n }\n\n }\n})()\n\nproto.drawTitle = (function() {\n var DATA_AXIS = [0,0]\n var SCREEN_OFFSET = [0,0]\n\n return function() {\n var plot = this.plot\n var shader = this.shader\n var gl = plot.gl\n var screenBox = plot.screenBox\n var titleCenter = plot.titleCenter\n var titleAngle = plot.titleAngle\n var titleColor = plot.titleColor\n var pixelRatio = plot.pixelRatio\n\n if(!this.titleCount) {\n return\n }\n\n for(var i=0; i<2; ++i) {\n SCREEN_OFFSET[i] = 2.0 * (titleCenter[i]*pixelRatio - screenBox[i]) /\n (screenBox[2+i] - screenBox[i]) - 1\n }\n\n shader.bind()\n shader.uniforms.dataAxis = DATA_AXIS\n shader.uniforms.screenOffset = SCREEN_OFFSET\n shader.uniforms.angle = titleAngle\n shader.uniforms.color = titleColor\n\n gl.drawArrays(gl.TRIANGLES, this.titleOffset, this.titleCount)\n }\n})()\n\nproto.bind = (function() {\n var DATA_SHIFT = [0,0]\n var DATA_SCALE = [0,0]\n var TEXT_SCALE = [0,0]\n\n return function() {\n var plot = this.plot\n var shader = this.shader\n var bounds = plot._tickBounds\n var dataBox = plot.dataBox\n var screenBox = plot.screenBox\n var viewBox = plot.viewBox\n\n shader.bind()\n\n //Set up coordinate scaling uniforms\n for(var i=0; i<2; ++i) {\n\n var lo = bounds[i]\n var hi = bounds[i+2]\n var boundScale = hi - lo\n var dataCenter = 0.5 * (dataBox[i+2] + dataBox[i])\n var dataWidth = (dataBox[i+2] - dataBox[i])\n\n var viewLo = viewBox[i]\n var viewHi = viewBox[i+2]\n var viewScale = viewHi - viewLo\n var screenLo = screenBox[i]\n var screenHi = screenBox[i+2]\n var screenScale = screenHi - screenLo\n\n DATA_SCALE[i] = 2.0 * boundScale / dataWidth * viewScale / screenScale\n DATA_SHIFT[i] = 2.0 * (lo - dataCenter) / dataWidth * viewScale / screenScale\n }\n\n TEXT_SCALE[1] = 2.0 * plot.pixelRatio / (screenBox[3] - screenBox[1])\n TEXT_SCALE[0] = TEXT_SCALE[1] * (screenBox[3] - screenBox[1]) / (screenBox[2] - screenBox[0])\n\n shader.uniforms.dataScale = DATA_SCALE\n shader.uniforms.dataShift = DATA_SHIFT\n shader.uniforms.textScale = TEXT_SCALE\n\n //Set attributes\n this.vbo.bind()\n shader.attributes.textCoordinate.pointer()\n }\n})()\n\nproto.update = function(options) {\n var vertices = []\n var axesTicks = options.ticks\n var bounds = options.bounds\n var i, j, k, data, scale, dimension\n\n for(dimension=0; dimension<2; ++dimension) {\n var offsets = [Math.floor(vertices.length/3)], tickX = [-Infinity]\n\n //Copy vertices over to buffer\n var ticks = axesTicks[dimension]\n for(i=0; i= 0)) {\n continue\n }\n\n var zeroIntercept = screenBox[i] -\n dataBox[i] * (screenBox[i+2] - screenBox[i]) / (dataBox[i+2] - dataBox[i])\n\n if(i === 0) {\n line.drawLine(\n zeroIntercept, screenBox[1], zeroIntercept, screenBox[3],\n zeroLineWidth[i],\n zeroLineColor[i])\n } else {\n line.drawLine(\n screenBox[0], zeroIntercept, screenBox[2], zeroIntercept,\n zeroLineWidth[i],\n zeroLineColor[i])\n }\n }\n }\n\n //Draw traces\n for(var i=0; i=0; --i) {\n this.objects[i].dispose()\n }\n this.objects.length = 0\n for(var i=this.overlays.length-1; i>=0; --i) {\n this.overlays[i].dispose()\n }\n this.overlays.length = 0\n\n this.gl = null\n}\n\nproto.addObject = function(object) {\n if(this.objects.indexOf(object) < 0) {\n this.objects.push(object)\n this.setDirty()\n }\n}\n\nproto.removeObject = function(object) {\n var objects = this.objects\n for(var i=0; i Math.abs(dy)) {\n view.rotate(t, 0, 0, -dx * flipX * Math.PI * camera.rotateSpeed / window.innerWidth)\n } else {\n if(!camera._ortho) {\n var kzoom = -camera.zoomSpeed * flipY * dy / window.innerHeight * (t - view.lastT()) / 20.0\n view.pan(t, 0, 0, distance * (Math.exp(kzoom) - 1))\n }\n }\n }, true)\n }\n\n camera.enableMouseListeners()\n\n return camera\n}\n\n},{\"3d-view\":7,\"has-passive-events\":232,\"mouse-change\":247,\"mouse-event-offset\":248,\"mouse-wheel\":250,\"right-now\":278}],120:[function(_glvis_,module,exports){\nvar glslify = _glvis_('glslify')\nvar createShader = _glvis_('gl-shader')\n\nvar vertSrc = glslify([\"precision mediump float;\\n#define GLSLIFY 1\\nattribute vec2 position;\\nvarying vec2 uv;\\nvoid main() {\\n uv = position;\\n gl_Position = vec4(position, 0, 1);\\n}\"])\nvar fragSrc = glslify([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform sampler2D accumBuffer;\\nvarying vec2 uv;\\n\\nvoid main() {\\n vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0));\\n gl_FragColor = min(vec4(1,1,1,1), accum);\\n}\"])\n\nmodule.exports = function(gl) {\n return createShader(gl, vertSrc, fragSrc, null, [ { name: 'position', type: 'vec2'}])\n}\n\n},{\"gl-shader\":132,\"glslify\":231}],121:[function(_glvis_,module,exports){\n'use strict'\n\nvar createCamera = _glvis_('./camera.js')\nvar createAxes = _glvis_('gl-axes3d')\nvar axesRanges = _glvis_('gl-axes3d/properties')\nvar createSpikes = _glvis_('gl-spikes3d')\nvar createSelect = _glvis_('gl-select-static')\nvar createFBO = _glvis_('gl-fbo')\nvar drawTriangle = _glvis_('a-big-triangle')\nvar mouseChange = _glvis_('mouse-change')\nvar perspective = _glvis_('gl-mat4/perspective')\nvar ortho = _glvis_('gl-mat4/ortho')\nvar createShader = _glvis_('./lib/shader')\nvar isMobile = _glvis_('is-mobile')({ tablet: true, featureDetect: true })\n\nmodule.exports = {\n createScene: createScene,\n createCamera: createCamera\n}\n\nfunction MouseSelect() {\n this.mouse = [-1,-1]\n this.screen = null\n this.distance = Infinity\n this.index = null\n this.dataCoordinate = null\n this.dataPosition = null\n this.object = null\n this.data = null\n}\n\nfunction getContext(canvas, options) {\n var gl = null\n try {\n gl = canvas.getContext('webgl', options)\n if(!gl) {\n gl = canvas.getContext('experimental-webgl', options)\n }\n } catch(e) {\n return null\n }\n return gl\n}\n\nfunction roundUpPow10(x) {\n var y = Math.round(Math.log(Math.abs(x)) / Math.log(10))\n if(y < 0) {\n var base = Math.round(Math.pow(10, -y))\n return Math.ceil(x*base) / base\n } else if(y > 0) {\n var base = Math.round(Math.pow(10, y))\n return Math.ceil(x/base) * base\n }\n return Math.ceil(x)\n}\n\nfunction defaultBool(x) {\n if(typeof x === 'boolean') {\n return x\n }\n return true\n}\n\nfunction createScene(options) {\n options = options || {}\n options.camera = options.camera || {}\n\n var canvas = options.canvas\n if(!canvas) {\n canvas = document.createElement('canvas')\n if(options.container) {\n var container = options.container\n container.appendChild(canvas)\n } else {\n document.body.appendChild(canvas)\n }\n }\n\n var gl = options.gl\n if(!gl) {\n if(options.glOptions) {\n isMobile = !!options.glOptions.preserveDrawingBuffer\n }\n\n gl = getContext(canvas,\n options.glOptions || {\n premultipliedAlpha: true,\n antialias: true,\n preserveDrawingBuffer: isMobile\n })\n }\n if(!gl) {\n throw new Error('webgl not supported')\n }\n\n //Initial bounds\n var bounds = options.bounds || [[-10,-10,-10], [10,10,10]]\n\n //Create selection\n var selection = new MouseSelect()\n\n //Accumulation buffer\n var accumBuffer = createFBO(gl,\n gl.drawingBufferWidth, gl.drawingBufferHeight, {\n preferFloat: !isMobile\n })\n\n var accumShader = createShader(gl)\n\n var isOrtho =\n (options.cameraObject && options.cameraObject._ortho === true) ||\n (options.camera.projection && options.camera.projection.type === 'orthographic') ||\n false\n\n //Create a camera\n var cameraOptions = {\n eye: options.camera.eye || [2,0,0],\n center: options.camera.center || [0,0,0],\n up: options.camera.up || [0,1,0],\n zoomMin: options.camera.zoomMax || 0.1,\n zoomMax: options.camera.zoomMin || 100,\n mode: options.camera.mode || 'turntable',\n _ortho: isOrtho\n }\n\n //Create axes\n var axesOptions = options.axes || {}\n var axes = createAxes(gl, axesOptions)\n axes.enable = !axesOptions.disable\n\n //Create spikes\n var spikeOptions = options.spikes || {}\n var spikes = createSpikes(gl, spikeOptions)\n\n //Object list is empty initially\n var objects = []\n var pickBufferIds = []\n var pickBufferCount = []\n var pickBuffers = []\n\n //Dirty flag, skip redraw if scene static\n var dirty = true\n var pickDirty = true\n\n var projection = new Array(16)\n var model = new Array(16)\n\n var cameraParams = {\n view: null,\n projection: projection,\n model: model,\n _ortho: false\n }\n\n var pickDirty = true\n\n var viewShape = [ gl.drawingBufferWidth, gl.drawingBufferHeight ]\n\n var camera = options.cameraObject || createCamera(canvas, cameraOptions)\n\n //Create scene object\n var scene = {\n gl: gl,\n contextLost: false,\n pixelRatio: options.pixelRatio || 1,\n canvas: canvas,\n selection: selection,\n camera: camera,\n axes: axes,\n axesPixels: null,\n spikes: spikes,\n bounds: bounds,\n objects: objects,\n shape: viewShape,\n aspect: options.aspectRatio || [1,1,1],\n pickRadius: options.pickRadius || 10,\n zNear: options.zNear || 0.01,\n zFar: options.zFar || 1000,\n fovy: options.fovy || Math.PI/4,\n clearColor: options.clearColor || [0,0,0,0],\n autoResize: defaultBool(options.autoResize),\n autoBounds: defaultBool(options.autoBounds),\n autoScale: !!options.autoScale,\n autoCenter: defaultBool(options.autoCenter),\n clipToBounds: defaultBool(options.clipToBounds),\n snapToData: !!options.snapToData,\n onselect: options.onselect || null,\n onrender: options.onrender || null,\n onclick: options.onclick || null,\n cameraParams: cameraParams,\n oncontextloss: null,\n mouseListener: null,\n _stopped: false,\n\n getAspectratio: function() {\n return {\n x: this.aspect[0],\n y: this.aspect[1],\n z: this.aspect[2]\n }\n },\n\n setAspectratio: function(aspectratio) {\n this.aspect[0] = aspectratio.x\n this.aspect[1] = aspectratio.y\n this.aspect[2] = aspectratio.z\n pickDirty = true\n },\n\n setBounds: function(axisIndex, range) {\n this.bounds[0][axisIndex] = range.min\n this.bounds[1][axisIndex] = range.max\n },\n\n setClearColor: function(clearColor) {\n this.clearColor = clearColor\n },\n\n clearRGBA: function() {\n this.gl.clearColor(\n this.clearColor[0],\n this.clearColor[1],\n this.clearColor[2],\n this.clearColor[3]\n )\n\n this.gl.clear(\n this.gl.COLOR_BUFFER_BIT |\n this.gl.DEPTH_BUFFER_BIT\n )\n }\n }\n\n var pickShape = [ (gl.drawingBufferWidth/scene.pixelRatio)|0, (gl.drawingBufferHeight/scene.pixelRatio)|0 ]\n\n function resizeListener() {\n if(scene._stopped) {\n return\n }\n if(!scene.autoResize) {\n return\n }\n var parent = canvas.parentNode\n var width = 1\n var height = 1\n if(parent && parent !== document.body) {\n width = parent.clientWidth\n height = parent.clientHeight\n } else {\n width = window.innerWidth\n height = window.innerHeight\n }\n var nextWidth = Math.ceil(width * scene.pixelRatio)|0\n var nextHeight = Math.ceil(height * scene.pixelRatio)|0\n if(nextWidth !== canvas.width || nextHeight !== canvas.height) {\n canvas.width = nextWidth\n canvas.height = nextHeight\n var style = canvas.style\n style.position = style.position || 'absolute'\n style.left = '0px'\n style.top = '0px'\n style.width = width + 'px'\n style.height = height + 'px'\n dirty = true\n }\n }\n if(scene.autoResize) {\n resizeListener()\n }\n window.addEventListener('resize', resizeListener)\n\n function reallocPickIds() {\n var numObjs = objects.length\n var numPick = pickBuffers.length\n for(var i=0; i 0 && pickBufferCount[numPick-1] === 0) {\n pickBufferCount.pop()\n pickBuffers.pop().dispose()\n }\n }\n\n scene.update = function(options) {\n\n if(scene._stopped) {\n return\n }\n options = options || {}\n dirty = true\n pickDirty = true\n }\n\n scene.add = function(obj) {\n if(scene._stopped) {\n return\n }\n obj.axes = axes\n objects.push(obj)\n pickBufferIds.push(-1)\n dirty = true\n pickDirty = true\n reallocPickIds()\n }\n\n scene.remove = function(obj) {\n if(scene._stopped) {\n return\n }\n var idx = objects.indexOf(obj)\n if(idx < 0) {\n return\n }\n objects.splice(idx, 1)\n pickBufferIds.pop()\n dirty = true\n pickDirty = true\n reallocPickIds()\n }\n\n scene.dispose = function() {\n if(scene._stopped) {\n return\n }\n\n scene._stopped = true\n\n window.removeEventListener('resize', resizeListener)\n canvas.removeEventListener('webglcontextlost', checkContextLoss)\n scene.mouseListener.enabled = false\n\n if(scene.contextLost) {\n return\n }\n\n //Destroy objects\n axes.dispose()\n spikes.dispose()\n for(var i=0; i selection.distance) {\n continue\n }\n for(var j=0; j 1.0) {\\n discard;\\n }\\n baseColor = mix(borderColor, color, step(radius, centerFraction));\\n gl_FragColor = vec4(baseColor.rgb * baseColor.a, baseColor.a);\\n }\\n}\\n\"])\nexports.pickVertex = glslify([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec2 position;\\nattribute vec4 pickId;\\n\\nuniform mat3 matrix;\\nuniform float pointSize;\\nuniform vec4 pickOffset;\\n\\nvarying vec4 fragId;\\n\\nvoid main() {\\n vec3 hgPosition = matrix * vec3(position, 1);\\n gl_Position = vec4(hgPosition.xy, 0, hgPosition.z);\\n gl_PointSize = pointSize;\\n\\n vec4 id = pickId + pickOffset;\\n id.y += floor(id.x / 256.0);\\n id.x -= floor(id.x / 256.0) * 256.0;\\n\\n id.z += floor(id.y / 256.0);\\n id.y -= floor(id.y / 256.0) * 256.0;\\n\\n id.w += floor(id.z / 256.0);\\n id.z -= floor(id.z / 256.0) * 256.0;\\n\\n fragId = id;\\n}\\n\"])\nexports.pickFragment = glslify([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nvarying vec4 fragId;\\n\\nvoid main() {\\n float radius = length(2.0 * gl_PointCoord.xy - 1.0);\\n if(radius > 1.0) {\\n discard;\\n }\\n gl_FragColor = fragId / 255.0;\\n}\\n\"])\n\n},{\"glslify\":231}],123:[function(_glvis_,module,exports){\n'use strict'\n\nvar createShader = _glvis_('gl-shader')\nvar createBuffer = _glvis_('gl-buffer')\n\nvar pool = _glvis_('typedarray-pool')\n\nvar SHADERS = _glvis_('./lib/shader')\n\nmodule.exports = createPointcloud2D\n\nfunction Pointcloud2D(plot, offsetBuffer, pickBuffer, shader, pickShader) {\n this.plot = plot\n this.offsetBuffer = offsetBuffer\n this.pickBuffer = pickBuffer\n this.shader = shader\n this.pickShader = pickShader\n this.sizeMin = 0.5\n this.sizeMinCap = 2\n this.sizeMax = 20\n this.areaRatio = 1.0\n this.pointCount = 0\n this.color = [1, 0, 0, 1]\n this.borderColor = [0, 0, 0, 1]\n this.blend = false\n this.pickOffset = 0\n this.points = null\n}\n\nvar proto = Pointcloud2D.prototype\n\nproto.dispose = function() {\n this.shader.dispose()\n this.pickShader.dispose()\n this.offsetBuffer.dispose()\n this.pickBuffer.dispose()\n this.plot.removeObject(this)\n}\n\nproto.update = function(options) {\n\n var i\n\n options = options || {}\n\n function dflt(opt, value) {\n if(opt in options) {\n return options[opt]\n }\n return value\n }\n\n this.sizeMin = dflt('sizeMin', 0.5)\n // this.sizeMinCap = dflt('sizeMinCap', 2)\n this.sizeMax = dflt('sizeMax', 20)\n this.color = dflt('color', [1, 0, 0, 1]).slice()\n this.areaRatio = dflt('areaRatio', 1)\n this.borderColor = dflt('borderColor', [0, 0, 0, 1]).slice()\n this.blend = dflt('blend', false)\n\n //Update point data\n\n // Attempt straight-through processing (STP) to avoid allocation and copy\n // TODO eventually abstract out STP logic, maybe into `pool` or a layer above\n var pointCount = options.positions.length >>> 1\n var dataStraightThrough = options.positions instanceof Float32Array\n var idStraightThrough = options.idToIndex instanceof Int32Array && options.idToIndex.length >= pointCount // permit larger to help reuse\n\n var data = options.positions\n var packed = dataStraightThrough ? data : pool.mallocFloat32(data.length)\n var packedId = idStraightThrough ? options.idToIndex : pool.mallocInt32(pointCount)\n\n if(!dataStraightThrough) {\n packed.set(data)\n }\n\n if(!idStraightThrough) {\n packed.set(data)\n for(i = 0; i < pointCount; i++) {\n packedId[i] = i\n }\n }\n\n this.points = data\n\n this.offsetBuffer.update(packed)\n this.pickBuffer.update(packedId)\n\n if(!dataStraightThrough) {\n pool.free(packed)\n }\n\n if(!idStraightThrough) {\n pool.free(packedId)\n }\n\n this.pointCount = pointCount\n this.pickOffset = 0\n}\n\nfunction count(points, dataBox) {\n var visiblePointCountEstimate = 0\n var length = points.length >>> 1\n var i\n for(i = 0; i < length; i++) {\n var x = points[i * 2]\n var y = points[i * 2 + 1]\n if(x >= dataBox[0] && x <= dataBox[2] && y >= dataBox[1] && y <= dataBox[3])\n visiblePointCountEstimate++\n }\n return visiblePointCountEstimate\n}\n\nproto.unifiedDraw = (function() {\n var MATRIX = [1, 0, 0,\n 0, 1, 0,\n 0, 0, 1]\n var PICK_VEC4 = [0, 0, 0, 0]\nreturn function(pickOffset) {\n var pick = pickOffset !== void(0)\n\n var shader = pick ? this.pickShader : this.shader\n var gl = this.plot.gl\n var dataBox = this.plot.dataBox\n\n if(this.pointCount === 0) {\n return pickOffset\n }\n\n var dataX = dataBox[2] - dataBox[0]\n var dataY = dataBox[3] - dataBox[1]\n\n var visiblePointCountEstimate = count(this.points, dataBox)\n var basicPointSize = this.plot.pickPixelRatio * Math.max(Math.min(this.sizeMinCap, this.sizeMin), Math.min(this.sizeMax, this.sizeMax / Math.pow(visiblePointCountEstimate, 0.33333)))\n\n MATRIX[0] = 2.0 / dataX\n MATRIX[4] = 2.0 / dataY\n MATRIX[6] = -2.0 * dataBox[0] / dataX - 1.0\n MATRIX[7] = -2.0 * dataBox[1] / dataY - 1.0\n\n this.offsetBuffer.bind()\n\n shader.bind()\n shader.attributes.position.pointer()\n shader.uniforms.matrix = MATRIX\n shader.uniforms.color = this.color\n shader.uniforms.borderColor = this.borderColor\n shader.uniforms.pointCloud = basicPointSize < 5\n shader.uniforms.pointSize = basicPointSize\n shader.uniforms.centerFraction = Math.min(1, Math.max(0, Math.sqrt(1 - this.areaRatio)))\n\n if(pick) {\n\n PICK_VEC4[0] = ( pickOffset & 0xff)\n PICK_VEC4[1] = ((pickOffset >> 8) & 0xff)\n PICK_VEC4[2] = ((pickOffset >> 16) & 0xff)\n PICK_VEC4[3] = ((pickOffset >> 24) & 0xff)\n\n this.pickBuffer.bind()\n shader.attributes.pickId.pointer(gl.UNSIGNED_BYTE)\n shader.uniforms.pickOffset = PICK_VEC4\n this.pickOffset = pickOffset\n }\n\n // Worth switching these off, but we can't make assumptions about other\n // renderers, so let's restore it after each draw\n var blend = gl.getParameter(gl.BLEND)\n var dither = gl.getParameter(gl.DITHER)\n\n if(blend && !this.blend)\n gl.disable(gl.BLEND)\n if(dither)\n gl.disable(gl.DITHER)\n\n gl.drawArrays(gl.POINTS, 0, this.pointCount)\n\n if(blend && !this.blend)\n gl.enable(gl.BLEND)\n if(dither)\n gl.enable(gl.DITHER)\n\n return pickOffset + this.pointCount\n}\n})()\n\nproto.draw = proto.unifiedDraw\nproto.drawPick = proto.unifiedDraw\n\nproto.pick = function(x, y, value) {\n var pickOffset = this.pickOffset\n var pointCount = this.pointCount\n if(value < pickOffset || value >= pickOffset + pointCount) {\n return null\n }\n var pointId = value - pickOffset\n var points = this.points\n return {\n object: this,\n pointId: pointId,\n dataCoord: [points[2 * pointId], points[2 * pointId + 1] ]\n }\n}\n\nfunction createPointcloud2D(plot, options) {\n var gl = plot.gl\n var buffer = createBuffer(gl)\n var pickBuffer = createBuffer(gl)\n var shader = createShader(gl, SHADERS.pointVertex, SHADERS.pointFragment)\n var pickShader = createShader(gl, SHADERS.pickVertex, SHADERS.pickFragment)\n\n var result = new Pointcloud2D(plot, buffer, pickBuffer, shader, pickShader)\n result.update(options)\n\n //Register with plot\n plot.addObject(result)\n\n return result\n}\n\n},{\"./lib/shader\":122,\"gl-buffer\":78,\"gl-shader\":132,\"typedarray-pool\":308}],124:[function(_glvis_,module,exports){\nmodule.exports = slerp\n\n/**\n * Performs a spherical linear interpolation between two quat\n *\n * @param {quat} out the receiving quaternion\n * @param {quat} a the first operand\n * @param {quat} b the second operand\n * @param {Number} t interpolation amount between the two inputs\n * @returns {quat} out\n */\nfunction slerp (out, a, b, t) {\n // benchmarks:\n // http://jsperf.com/quaternion-slerp-implementations\n\n var ax = a[0], ay = a[1], az = a[2], aw = a[3],\n bx = b[0], by = b[1], bz = b[2], bw = b[3]\n\n var omega, cosom, sinom, scale0, scale1\n\n // calc cosine\n cosom = ax * bx + ay * by + az * bz + aw * bw\n // adjust signs (if necessary)\n if (cosom < 0.0) {\n cosom = -cosom\n bx = -bx\n by = -by\n bz = -bz\n bw = -bw\n }\n // calculate coefficients\n if ((1.0 - cosom) > 0.000001) {\n // standard case (slerp)\n omega = Math.acos(cosom)\n sinom = Math.sin(omega)\n scale0 = Math.sin((1.0 - t) * omega) / sinom\n scale1 = Math.sin(t * omega) / sinom\n } else {\n // \"from\" and \"to\" quaternions are very close\n // ... so we can do a linear interpolation\n scale0 = 1.0 - t\n scale1 = t\n }\n // calculate final values\n out[0] = scale0 * ax + scale1 * bx\n out[1] = scale0 * ay + scale1 * by\n out[2] = scale0 * az + scale1 * bz\n out[3] = scale0 * aw + scale1 * bw\n\n return out\n}\n\n},{}],125:[function(_glvis_,module,exports){\n'use strict';\n\nmodule.exports = function(a){\n return (!a && a !== 0) ? '' : a.toString();\n}\n\n},{}],126:[function(_glvis_,module,exports){\n\"use strict\"\n\nvar vectorizeText = _glvis_(\"vectorize-text\")\n\nmodule.exports = getGlyph\n\nvar GLYPH_CACHE = {}\n\nfunction getGlyph(symbol, font, pixelRatio) {\n var fontCache = GLYPH_CACHE[font]\n if(!fontCache) {\n fontCache = GLYPH_CACHE[font] = {}\n }\n if(symbol in fontCache) {\n return fontCache[symbol]\n }\n\n var config = {\n textAlign: \"center\",\n textBaseline: \"middle\",\n lineHeight: 1.0,\n font: font,\n lineSpacing: 1.25,\n styletags: {\n breaklines:true,\n bolds: true,\n italics: true,\n subscripts:true,\n superscripts:true\n }\n }\n\n //Get line and triangle meshes for glyph\n config.triangles = true\n var triSymbol = vectorizeText(symbol, config)\n config.triangles = false\n var lineSymbol = vectorizeText(symbol, config)\n\n var i, j\n\n if(pixelRatio && pixelRatio !== 1) {\n for(i = 0; i < triSymbol.positions.length; ++i){\n for(j = 0; j < triSymbol.positions[i].length; ++j){\n triSymbol.positions[i][j] /= pixelRatio;\n }\n }\n\n for(i = 0; i < lineSymbol.positions.length; ++i){\n for(j = 0; j < lineSymbol.positions[i].length; ++j){\n lineSymbol.positions[i][j] /= pixelRatio;\n }\n }\n }\n\n //Calculate bounding box\n var bounds = [[Infinity,Infinity], [-Infinity,-Infinity]]\n var n = lineSymbol.positions.length\n for(i = 0; i < n; ++i) {\n var p = lineSymbol.positions[i]\n for(j=0; j<2; ++j) {\n bounds[0][j] = Math.min(bounds[0][j], p[j])\n bounds[1][j] = Math.max(bounds[1][j], p[j])\n }\n }\n\n //Save cached symbol\n return fontCache[symbol] = [triSymbol, lineSymbol, bounds]\n}\n},{\"vectorize-text\":311}],127:[function(_glvis_,module,exports){\nvar createShaderWrapper = _glvis_('gl-shader')\nvar glslify = _glvis_('glslify')\n\nvar perspectiveVertSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nattribute vec3 position;\\nattribute vec4 color;\\nattribute vec2 glyph;\\nattribute vec4 id;\\n\\nuniform vec4 highlightId;\\nuniform float highlightScale;\\nuniform mat4 model, view, projection;\\nuniform vec3 clipBounds[2];\\n\\nvarying vec4 interpColor;\\nvarying vec4 pickId;\\nvarying vec3 dataCoordinate;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\\n\\n gl_Position = vec4(0,0,0,0);\\n } else {\\n float scale = 1.0;\\n if(distance(highlightId, id) < 0.0001) {\\n scale = highlightScale;\\n }\\n\\n vec4 worldPosition = model * vec4(position, 1);\\n vec4 viewPosition = view * worldPosition;\\n viewPosition = viewPosition / viewPosition.w;\\n vec4 clipPosition = projection * (viewPosition + scale * vec4(glyph.x, -glyph.y, 0, 0));\\n\\n gl_Position = clipPosition;\\n interpColor = color;\\n pickId = id;\\n dataCoordinate = position;\\n }\\n}\"])\nvar orthographicVertSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nattribute vec3 position;\\nattribute vec4 color;\\nattribute vec2 glyph;\\nattribute vec4 id;\\n\\nuniform mat4 model, view, projection;\\nuniform vec2 screenSize;\\nuniform vec3 clipBounds[2];\\nuniform float highlightScale, pixelRatio;\\nuniform vec4 highlightId;\\n\\nvarying vec4 interpColor;\\nvarying vec4 pickId;\\nvarying vec3 dataCoordinate;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\\n\\n gl_Position = vec4(0,0,0,0);\\n } else {\\n float scale = pixelRatio;\\n if(distance(highlightId.bgr, id.bgr) < 0.001) {\\n scale *= highlightScale;\\n }\\n\\n vec4 worldPosition = model * vec4(position, 1.0);\\n vec4 viewPosition = view * worldPosition;\\n vec4 clipPosition = projection * viewPosition;\\n clipPosition /= clipPosition.w;\\n\\n gl_Position = clipPosition + vec4(screenSize * scale * vec2(glyph.x, -glyph.y), 0.0, 0.0);\\n interpColor = color;\\n pickId = id;\\n dataCoordinate = position;\\n }\\n}\"])\nvar projectionVertSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nattribute vec3 position;\\nattribute vec4 color;\\nattribute vec2 glyph;\\nattribute vec4 id;\\n\\nuniform float highlightScale;\\nuniform vec4 highlightId;\\nuniform vec3 axes[2];\\nuniform mat4 model, view, projection;\\nuniform vec2 screenSize;\\nuniform vec3 clipBounds[2];\\nuniform float scale, pixelRatio;\\n\\nvarying vec4 interpColor;\\nvarying vec4 pickId;\\nvarying vec3 dataCoordinate;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\\n\\n gl_Position = vec4(0,0,0,0);\\n } else {\\n float lscale = pixelRatio * scale;\\n if(distance(highlightId, id) < 0.0001) {\\n lscale *= highlightScale;\\n }\\n\\n vec4 clipCenter = projection * view * model * vec4(position, 1);\\n vec3 dataPosition = position + 0.5*lscale*(axes[0] * glyph.x + axes[1] * glyph.y) * clipCenter.w * screenSize.y;\\n vec4 clipPosition = projection * view * model * vec4(dataPosition, 1);\\n\\n gl_Position = clipPosition;\\n interpColor = color;\\n pickId = id;\\n dataCoordinate = dataPosition;\\n }\\n}\\n\"])\nvar drawFragSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 fragClipBounds[2];\\nuniform float opacity;\\n\\nvarying vec4 interpColor;\\nvarying vec3 dataCoordinate;\\n\\nvoid main() {\\n if (\\n outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate) ||\\n interpColor.a * opacity == 0.\\n ) discard;\\n gl_FragColor = interpColor * opacity;\\n}\\n\"])\nvar pickFragSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 fragClipBounds[2];\\nuniform float pickGroup;\\n\\nvarying vec4 pickId;\\nvarying vec3 dataCoordinate;\\n\\nvoid main() {\\n if (outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate)) discard;\\n\\n gl_FragColor = vec4(pickGroup, pickId.bgr);\\n}\"])\n\nvar ATTRIBUTES = [\n {name: 'position', type: 'vec3'},\n {name: 'color', type: 'vec4'},\n {name: 'glyph', type: 'vec2'},\n {name: 'id', type: 'vec4'}\n]\n\nvar perspective = {\n vertex: perspectiveVertSrc,\n fragment: drawFragSrc,\n attributes: ATTRIBUTES\n },\n ortho = {\n vertex: orthographicVertSrc,\n fragment: drawFragSrc,\n attributes: ATTRIBUTES\n },\n project = {\n vertex: projectionVertSrc,\n fragment: drawFragSrc,\n attributes: ATTRIBUTES\n },\n pickPerspective = {\n vertex: perspectiveVertSrc,\n fragment: pickFragSrc,\n attributes: ATTRIBUTES\n },\n pickOrtho = {\n vertex: orthographicVertSrc,\n fragment: pickFragSrc,\n attributes: ATTRIBUTES\n },\n pickProject = {\n vertex: projectionVertSrc,\n fragment: pickFragSrc,\n attributes: ATTRIBUTES\n }\n\nfunction createShader(gl, src) {\n var shader = createShaderWrapper(gl, src)\n var attr = shader.attributes\n attr.position.location = 0\n attr.color.location = 1\n attr.glyph.location = 2\n attr.id.location = 3\n return shader\n}\n\nexports.createPerspective = function(gl) {\n return createShader(gl, perspective)\n}\nexports.createOrtho = function(gl) {\n return createShader(gl, ortho)\n}\nexports.createProject = function(gl) {\n return createShader(gl, project)\n}\nexports.createPickPerspective = function(gl) {\n return createShader(gl, pickPerspective)\n}\nexports.createPickOrtho = function(gl) {\n return createShader(gl, pickOrtho)\n}\nexports.createPickProject = function(gl) {\n return createShader(gl, pickProject)\n}\n\n},{\"gl-shader\":132,\"glslify\":231}],128:[function(_glvis_,module,exports){\n'use strict'\n\nvar isAllBlank = _glvis_('is-string-blank')\nvar createBuffer = _glvis_('gl-buffer')\nvar createVAO = _glvis_('gl-vao')\nvar pool = _glvis_('typedarray-pool')\nvar mat4mult = _glvis_('gl-mat4/multiply')\nvar shaders = _glvis_('./lib/shaders')\nvar getGlyph = _glvis_('./lib/glyphs')\nvar getSimpleString = _glvis_('./lib/get-simple-string')\n\nvar IDENTITY = [1,0,0,0,\n 0,1,0,0,\n 0,0,1,0,\n 0,0,0,1]\n\nmodule.exports = createPointCloud\n\nfunction transformMat4(x, m) {\n var x0 = x[0]\n var x1 = x[1]\n var x2 = x[2]\n var x3 = x[3]\n x[0] = m[0] * x0 + m[4] * x1 + m[8] * x2 + m[12] * x3\n x[1] = m[1] * x0 + m[5] * x1 + m[9] * x2 + m[13] * x3\n x[2] = m[2] * x0 + m[6] * x1 + m[10] * x2 + m[14] * x3\n x[3] = m[3] * x0 + m[7] * x1 + m[11] * x2 + m[15] * x3\n return x\n}\n\nfunction project(p, v, m, x) {\n transformMat4(x, x, m)\n transformMat4(x, x, v)\n return transformMat4(x, x, p)\n}\n\nfunction ScatterPlotPickResult(index, position) {\n this.index = index\n this.dataCoordinate = this.position = position\n}\n\nfunction fixOpacity(a) {\n if(a === true) return 1\n if(a > 1) return 1\n return a\n}\n\nfunction PointCloud(\n gl,\n shader,\n orthoShader,\n projectShader,\n pointBuffer,\n colorBuffer,\n glyphBuffer,\n idBuffer,\n vao,\n pickPerspectiveShader,\n pickOrthoShader,\n pickProjectShader) {\n\n this.gl = gl\n\n this.pixelRatio = 1\n\n this.shader = shader\n this.orthoShader = orthoShader\n this.projectShader = projectShader\n\n this.pointBuffer = pointBuffer\n this.colorBuffer = colorBuffer\n this.glyphBuffer = glyphBuffer\n this.idBuffer = idBuffer\n this.vao = vao\n this.vertexCount = 0\n this.lineVertexCount = 0\n\n this.opacity = 1\n this.hasAlpha = false\n\n this.lineWidth = 0\n this.projectScale = [2.0/3.0, 2.0/3.0, 2.0/3.0]\n this.projectOpacity = [1, 1, 1]\n this.projectHasAlpha = false\n\n this.pickId = 0\n this.pickPerspectiveShader = pickPerspectiveShader\n this.pickOrthoShader = pickOrthoShader\n this.pickProjectShader = pickProjectShader\n this.points = []\n\n this._selectResult = new ScatterPlotPickResult(0, [0,0,0])\n\n this.useOrtho = true\n this.bounds = [[ Infinity,Infinity,Infinity],\n [-Infinity,-Infinity,-Infinity]]\n\n //Axes projections\n this.axesProject = [ true, true, true ]\n this.axesBounds = [[-Infinity,-Infinity,-Infinity],\n [ Infinity, Infinity, Infinity]]\n\n this.highlightId = [1,1,1,1]\n this.highlightScale = 2\n\n this.clipBounds = [[-Infinity,-Infinity,-Infinity],\n [ Infinity, Infinity, Infinity]]\n\n this.dirty = true\n}\n\nvar proto = PointCloud.prototype\n\nproto.pickSlots = 1\n\nproto.setPickBase = function(pickBase) {\n this.pickId = pickBase\n}\n\nproto.isTransparent = function() {\n if(this.hasAlpha) {\n return true\n }\n for(var i=0; i<3; ++i) {\n if(this.axesProject[i] && this.projectHasAlpha) {\n return true\n }\n }\n return false\n}\n\nproto.isOpaque = function() {\n if(!this.hasAlpha) {\n return true\n }\n for(var i=0; i<3; ++i) {\n if(this.axesProject[i] && !this.projectHasAlpha) {\n return true\n }\n }\n return false\n}\n\nvar VIEW_SHAPE = [0,0]\nvar U_VEC = [0,0,0]\nvar V_VEC = [0,0,0]\nvar MU_VEC = [0,0,0,1]\nvar MV_VEC = [0,0,0,1]\nvar SCRATCH_MATRIX = IDENTITY.slice()\nvar SCRATCH_VEC = [0,0,0]\nvar CLIP_BOUNDS = [[0,0,0], [0,0,0]]\n\nfunction zeroVec(a) {\n a[0] = a[1] = a[2] = 0\n return a\n}\n\nfunction augment(hg, af) {\n hg[0] = af[0]\n hg[1] = af[1]\n hg[2] = af[2]\n hg[3] = 1\n return hg\n}\n\nfunction setComponent(out, v, i, x) {\n out[0] = v[0]\n out[1] = v[1]\n out[2] = v[2]\n out[i] = x\n return out\n}\n\nfunction getClipBounds(bounds) {\n var result = CLIP_BOUNDS\n for(var i=0; i<2; ++i) {\n for(var j=0; j<3; ++j) {\n result[i][j] = Math.max(Math.min(bounds[i][j], 1e8), -1e8)\n }\n }\n return result\n}\n\nfunction drawProject(shader, points, camera, pixelRatio) {\n var axesProject = points.axesProject\n\n var gl = points.gl\n var uniforms = shader.uniforms\n var model = camera.model || IDENTITY\n var view = camera.view || IDENTITY\n var projection = camera.projection || IDENTITY\n var bounds = points.axesBounds\n var clipBounds = getClipBounds(points.clipBounds)\n\n var cubeAxis\n if(points.axes && points.axes.lastCubeProps) {\n cubeAxis = points.axes.lastCubeProps.axis\n } else {\n cubeAxis = [1,1,1]\n }\n\n VIEW_SHAPE[0] = 2.0/gl.drawingBufferWidth\n VIEW_SHAPE[1] = 2.0/gl.drawingBufferHeight\n\n shader.bind()\n uniforms.view = view\n uniforms.projection = projection\n uniforms.screenSize = VIEW_SHAPE\n uniforms.highlightId = points.highlightId\n uniforms.highlightScale = points.highlightScale\n uniforms.clipBounds = clipBounds\n uniforms.pickGroup = points.pickId / 255.0\n uniforms.pixelRatio = pixelRatio\n\n for(var i=0; i<3; ++i) {\n if(!axesProject[i]) {\n continue\n }\n\n uniforms.scale = points.projectScale[i]\n uniforms.opacity = points.projectOpacity[i]\n\n //Project model matrix\n var pmodel = SCRATCH_MATRIX\n for(var j=0; j<16; ++j) {\n pmodel[j] = 0\n }\n for(var j=0; j<4; ++j) {\n pmodel[5*j] = 1\n }\n pmodel[5*i] = 0\n if(cubeAxis[i] < 0) {\n pmodel[12+i] = bounds[0][i]\n } else {\n pmodel[12+i] = bounds[1][i]\n }\n mat4mult(pmodel, model, pmodel)\n uniforms.model = pmodel\n\n //Compute initial axes\n var u = (i+1)%3\n var v = (i+2)%3\n var du = zeroVec(U_VEC)\n var dv = zeroVec(V_VEC)\n du[u] = 1\n dv[v] = 1\n\n //Align orientation relative to viewer\n var mdu = project(projection, view, model, augment(MU_VEC, du))\n var mdv = project(projection, view, model, augment(MV_VEC, dv))\n if(Math.abs(mdu[1]) > Math.abs(mdv[1])) {\n var tmp = mdu\n mdu = mdv\n mdv = tmp\n tmp = du\n du = dv\n dv = tmp\n var t = u\n u = v\n v = t\n }\n if(mdu[0] < 0) {\n du[u] = -1\n }\n if(mdv[1] > 0) {\n dv[v] = -1\n }\n var su = 0.0\n var sv = 0.0\n for(var j=0; j<4; ++j) {\n su += Math.pow(model[4*u+j], 2)\n sv += Math.pow(model[4*v+j], 2)\n }\n du[u] /= Math.sqrt(su)\n dv[v] /= Math.sqrt(sv)\n uniforms.axes[0] = du\n uniforms.axes[1] = dv\n\n //Update fragment clip bounds\n uniforms.fragClipBounds[0] = setComponent(SCRATCH_VEC, clipBounds[0], i, -1e8)\n uniforms.fragClipBounds[1] = setComponent(SCRATCH_VEC, clipBounds[1], i, 1e8)\n\n points.vao.bind()\n\n //Draw interior\n points.vao.draw(gl.TRIANGLES, points.vertexCount)\n\n //Draw edges\n if(points.lineWidth > 0) {\n gl.lineWidth(points.lineWidth * pixelRatio)\n points.vao.draw(gl.LINES, points.lineVertexCount, points.vertexCount)\n }\n\n points.vao.unbind()\n }\n}\n\n\nvar NEG_INFINITY3 = [-1e8, -1e8, -1e8]\nvar POS_INFINITY3 = [1e8, 1e8, 1e8]\nvar CLIP_GROUP = [NEG_INFINITY3, POS_INFINITY3]\n\nfunction drawFull(shader, pshader, points, camera, pixelRatio, transparent, forceDraw) {\n var gl = points.gl\n\n if(transparent === points.projectHasAlpha || forceDraw) {\n drawProject(pshader, points, camera, pixelRatio)\n }\n\n if(transparent === points.hasAlpha || forceDraw) {\n\n shader.bind()\n var uniforms = shader.uniforms\n\n uniforms.model = camera.model || IDENTITY\n uniforms.view = camera.view || IDENTITY\n uniforms.projection = camera.projection || IDENTITY\n\n VIEW_SHAPE[0] = 2.0/gl.drawingBufferWidth\n VIEW_SHAPE[1] = 2.0/gl.drawingBufferHeight\n uniforms.screenSize = VIEW_SHAPE\n\n uniforms.highlightId = points.highlightId\n uniforms.highlightScale = points.highlightScale\n\n uniforms.fragClipBounds = CLIP_GROUP\n uniforms.clipBounds = points.axes.bounds\n\n uniforms.opacity = points.opacity\n uniforms.pickGroup = points.pickId / 255.0\n\n uniforms.pixelRatio = pixelRatio\n\n points.vao.bind()\n\n //Draw interior\n points.vao.draw(gl.TRIANGLES, points.vertexCount)\n\n //Draw edges\n if(points.lineWidth > 0) {\n gl.lineWidth(points.lineWidth * pixelRatio)\n points.vao.draw(gl.LINES, points.lineVertexCount, points.vertexCount)\n }\n\n points.vao.unbind()\n }\n\n\n}\n\nproto.draw = function(camera) {\n var shader = this.useOrtho ? this.orthoShader : this.shader\n drawFull(shader, this.projectShader, this, camera, this.pixelRatio, false, false)\n}\n\nproto.drawTransparent = function(camera) {\n var shader = this.useOrtho ? this.orthoShader : this.shader\n drawFull(shader, this.projectShader, this, camera, this.pixelRatio, true, false)\n}\n\nproto.drawPick = function(camera) {\n var shader = this.useOrtho ? this.pickOrthoShader : this.pickPerspectiveShader\n drawFull(shader, this.pickProjectShader, this, camera, 1, true, true)\n}\n\nproto.pick = function(selected) {\n if(!selected) {\n return null\n }\n if(selected.id !== this.pickId) {\n return null\n }\n var x = selected.value[2] + (selected.value[1]<<8) + (selected.value[0]<<16)\n if(x >= this.pointCount || x < 0) {\n return null\n }\n\n //Unpack result\n var coord = this.points[x]\n var result = this._selectResult\n result.index = x\n for(var i=0; i<3; ++i) {\n result.position[i] = result.dataCoordinate[i] = coord[i]\n }\n return result\n}\n\nproto.highlight = function(selection) {\n if(!selection) {\n this.highlightId = [1,1,1,1]\n } else {\n var pointId = selection.index\n var a0 = pointId &0xff\n var a1 = (pointId>>8) &0xff\n var a2 = (pointId>>16)&0xff\n this.highlightId = [a0/255.0, a1/255.0, a2/255.0, 0]\n }\n}\n\nfunction get_glyphData(glyphs, index, font, pixelRatio) {\n var str\n\n // use the data if presented in an array\n if(Array.isArray(glyphs)) {\n if(index < glyphs.length) {\n str = glyphs[index]\n } else {\n str = undefined\n }\n } else {\n str = glyphs\n }\n\n str = getSimpleString(str) // this would handle undefined cases\n\n var visible = true\n if(isAllBlank(str)) {\n str = '▼' // Note: this special character may have minimum number of surfaces\n visible = false\n }\n\n var glyph = getGlyph(str, font, pixelRatio)\n\n return { mesh:glyph[0],\n lines:glyph[1],\n bounds:glyph[2],\n visible:visible };\n}\n\n\n\nproto.update = function(options) {\n\n options = options || {}\n\n if('perspective' in options) {\n this.useOrtho = !options.perspective\n }\n if('orthographic' in options) {\n this.useOrtho = !!options.orthographic\n }\n if('lineWidth' in options) {\n this.lineWidth = options.lineWidth\n }\n if('project' in options) {\n if(Array.isArray(options.project)) {\n this.axesProject = options.project\n } else {\n var v = !!options.project\n this.axesProject = [v,v,v]\n }\n }\n if('projectScale' in options) {\n if(Array.isArray(options.projectScale)) {\n this.projectScale = options.projectScale.slice()\n } else {\n var s = +options.projectScale\n this.projectScale = [s,s,s]\n }\n }\n\n this.projectHasAlpha = false // default to no transparent draw\n if('projectOpacity' in options) {\n if(Array.isArray(options.projectOpacity)) {\n this.projectOpacity = options.projectOpacity.slice()\n } else {\n var s = +options.projectOpacity\n this.projectOpacity = [s,s,s]\n }\n for(var i=0; i<3; ++i) {\n this.projectOpacity[i] = fixOpacity(this.projectOpacity[i]);\n if(this.projectOpacity[i] < 1) {\n this.projectHasAlpha = true;\n }\n }\n }\n\n this.hasAlpha = false // default to no transparent draw\n if('opacity' in options) {\n this.opacity = fixOpacity(options.opacity)\n if(this.opacity < 1) {\n this.hasAlpha = true;\n }\n }\n\n //Set dirty flag\n this.dirty = true\n\n //Create new buffers\n var points = options.position\n\n //Text font\n var font = options.font || 'normal'\n var alignment = options.alignment || [0,0]\n\n var alignmentX;\n var alignmentY;\n if (alignment.length === 2) {\n alignmentX = alignment[0]\n alignmentY = alignment[1]\n } else {\n alignmentX = []\n alignmentY = []\n for (var i = 0; i < alignment.length; ++i) {\n alignmentX[i] = alignment[i][0]\n alignmentY[i] = alignment[i][1]\n }\n }\n\n //Bounds\n var lowerBound = [ Infinity, Infinity, Infinity]\n var upperBound = [-Infinity,-Infinity,-Infinity]\n\n //Unpack options\n var glyphs = options.glyph\n var colors = options.color\n var sizes = options.size\n var angles = options.angle\n var lineColors = options.lineColor\n\n //Picking geometry\n var pickCounter = -1\n\n //First do pass to compute buffer sizes\n var triVertexCount = 0\n var lineVertexCount = 0\n\n var numPoints = 0;\n\n if(points.length) {\n\n //Count number of points and buffer size\n numPoints = points.length\n\n count_loop:\n for(var i=0; i 0) {\n var triOffset = 0\n var lineOffset = triVertexCount\n var color = [0,0,0,1]\n var lineColor = [0,0,0,1]\n\n var isColorArray = Array.isArray(colors) && Array.isArray(colors[0])\n var isLineColorArray = Array.isArray(lineColors) && Array.isArray(lineColors[0])\n\n fill_loop:\n for(var i=0; i 0) ? (1 - glyphBounds[0][0]) :\n (textOffsetX < 0) ? (1 + glyphBounds[1][0]) : 1;\n\n textOffsetY *= (textOffsetY > 0) ? (1 - glyphBounds[0][1]) :\n (textOffsetY < 0) ? (1 + glyphBounds[1][1]) : 1;\n\n var textOffset = [textOffsetX, textOffsetY]\n\n //Write out inner marker\n var cells = glyphMesh.cells || []\n var verts = glyphMesh.positions || []\n\n for(var j=0; j 0) {\n\n //Draw border\n var w = lineWidth * pixelRatio\n boxes.drawBox(loX-w, loY-w, hiX+w, loY+w, borderColor)\n boxes.drawBox(loX-w, hiY-w, hiX+w, hiY+w, borderColor)\n boxes.drawBox(loX-w, loY-w, loX+w, hiY+w, borderColor)\n boxes.drawBox(hiX-w, loY-w, hiX+w, hiY+w, borderColor)\n }\n}\n\nproto.update = function(options) {\n options = options || {}\n\n this.innerFill = !!options.innerFill\n this.outerFill = !!options.outerFill\n this.innerColor = (options.innerColor || [0,0,0,0.5]).slice()\n this.outerColor = (options.outerColor || [0,0,0,0.5]).slice()\n this.borderColor = (options.borderColor || [0,0,0,1]).slice()\n this.borderWidth = options.borderWidth || 0\n this.selectBox = (options.selectBox || this.selectBox).slice()\n}\n\nproto.dispose = function() {\n this.boxBuffer.dispose()\n this.boxShader.dispose()\n this.plot.removeOverlay(this)\n}\n\nfunction createSelectBox(plot, options) {\n var gl = plot.gl\n var buffer = createBuffer(gl, [\n 0, 0,\n 0, 1,\n 1, 0,\n 1, 1 ])\n var shader = createShader(gl, SHADERS.boxVertex, SHADERS.boxFragment)\n var selectBox = new SelectBox(plot, buffer, shader)\n selectBox.update(options)\n plot.addOverlay(selectBox)\n return selectBox\n}\n\n},{\"./lib/shaders\":129,\"gl-buffer\":78,\"gl-shader\":132}],131:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = createSelectBuffer\n\nvar createFBO = _glvis_('gl-fbo')\nvar pool = _glvis_('typedarray-pool')\nvar ndarray = _glvis_('ndarray')\nvar nextPow2 = _glvis_('bit-twiddle').nextPow2\n\nvar selectRange = function(arr, x, y) {\n var closestD2 = 1e8\n var closestX = -1\n var closestY = -1\n\n var ni = arr.shape[0]\n var nj = arr.shape[1]\n for(var i = 0; i < ni; i++) {\n for(var j = 0; j < nj; j++) {\n var r = arr.get(i, j, 0)\n var g = arr.get(i, j, 1)\n var b = arr.get(i, j, 2)\n var a = arr.get(i, j, 3)\n\n if(r < 255 || g < 255 || b < 255 || a < 255) {\n var dx = x - i\n var dy = y - j\n var d2 = dx*dx + dy*dy\n if(d2 < closestD2) {\n closestD2 = d2\n closestX = i\n closestY = j\n }\n }\n }\n }\n\n return [closestX, closestY, closestD2]\n}\n\nfunction SelectResult(x, y, id, value, distance) {\n this.coord = [x, y]\n this.id = id\n this.value = value\n this.distance = distance\n}\n\nfunction SelectBuffer(gl, fbo, buffer) {\n this.gl = gl\n this.fbo = fbo\n this.buffer = buffer\n this._readTimeout = null\n var self = this\n\n this._readCallback = function() {\n if(!self.gl) {\n return\n }\n fbo.bind()\n gl.readPixels(0,0,fbo.shape[0],fbo.shape[1],gl.RGBA,gl.UNSIGNED_BYTE,self.buffer)\n self._readTimeout = null\n }\n}\n\nvar proto = SelectBuffer.prototype\n\nObject.defineProperty(proto, 'shape', {\n get: function() {\n if(!this.gl) {\n return [0,0]\n }\n return this.fbo.shape.slice()\n },\n set: function(v) {\n if(!this.gl) {\n return\n }\n this.fbo.shape = v\n var c = this.fbo.shape[0]\n var r = this.fbo.shape[1]\n if(r*c*4 > this.buffer.length) {\n pool.free(this.buffer)\n var buffer = this.buffer = pool.mallocUint8(nextPow2(r*c*4))\n for(var i=0; i oldAttribCount) {\n for(i = oldAttribCount; i < newAttribCount; i++) {\n this.gl.enableVertexAttribArray(i)\n }\n } else if(oldAttribCount > newAttribCount) {\n for(i = newAttribCount; i < oldAttribCount; i++) {\n this.gl.disableVertexAttribArray(i)\n }\n }\n\n this.gl.lastAttribCount = newAttribCount\n\n this.gl.useProgram(this.program)\n}\n\nproto.dispose = function() {\n\n // disabling vertex attributes so new shader starts with zero\n // and it's also useful if all shaders are disposed but the\n // gl context is reused for subsequent replotting\n var oldAttribCount = this.gl.lastAttribCount\n for (var i = 0; i < oldAttribCount; i++) {\n this.gl.disableVertexAttribArray(i)\n }\n this.gl.lastAttribCount = 0\n\n if(this._fref) {\n this._fref.dispose()\n }\n if(this._vref) {\n this._vref.dispose()\n }\n this.attributes =\n this.types =\n this.vertShader =\n this.fragShader =\n this.program =\n this._relink =\n this._fref =\n this._vref = null\n}\n\nfunction compareAttributes(a, b) {\n if(a.name < b.name) {\n return -1\n }\n return 1\n}\n\n//Update export hook for glslify-live\nproto.update = function(\n vertSource\n , fragSource\n , uniforms\n , attributes) {\n\n //If only one object passed, assume glslify style output\n if(!fragSource || arguments.length === 1) {\n var obj = vertSource\n vertSource = obj.vertex\n fragSource = obj.fragment\n uniforms = obj.uniforms\n attributes = obj.attributes\n }\n\n var wrapper = this\n var gl = wrapper.gl\n\n //Compile vertex and fragment shaders\n var pvref = wrapper._vref\n wrapper._vref = shaderCache.shader(gl, gl.VERTEX_SHADER, vertSource)\n if(pvref) {\n pvref.dispose()\n }\n wrapper.vertShader = wrapper._vref.shader\n var pfref = this._fref\n wrapper._fref = shaderCache.shader(gl, gl.FRAGMENT_SHADER, fragSource)\n if(pfref) {\n pfref.dispose()\n }\n wrapper.fragShader = wrapper._fref.shader\n\n //If uniforms/attributes is not specified, use RT reflection\n if(!uniforms || !attributes) {\n\n //Create initial test program\n var testProgram = gl.createProgram()\n gl.attachShader(testProgram, wrapper.fragShader)\n gl.attachShader(testProgram, wrapper.vertShader)\n gl.linkProgram(testProgram)\n if(!gl.getProgramParameter(testProgram, gl.LINK_STATUS)) {\n var errLog = gl.getProgramInfoLog(testProgram)\n throw new GLError(errLog, 'Error linking program:' + errLog)\n }\n\n //Load data from runtime\n uniforms = uniforms || runtime.uniforms(gl, testProgram)\n attributes = attributes || runtime.attributes(gl, testProgram)\n\n //Release test program\n gl.deleteProgram(testProgram)\n }\n\n //Sort attributes lexicographically\n // overrides undefined WebGL behavior for attribute locations\n attributes = attributes.slice()\n attributes.sort(compareAttributes)\n\n //Convert attribute types, read out locations\n var attributeUnpacked = []\n var attributeNames = []\n var attributeLocations = []\n var i\n for(i=0; i= 0) {\n var size = attr.type.charAt(attr.type.length-1)|0\n var locVector = new Array(size)\n for(var j=0; j= 0) {\n curLocation += 1\n }\n attributeLocations[i] = curLocation\n }\n }\n\n //Rebuild program and recompute all uniform locations\n var uniformLocations = new Array(uniforms.length)\n function relink() {\n wrapper.program = shaderCache.program(\n gl\n , wrapper._vref\n , wrapper._fref\n , attributeNames\n , attributeLocations)\n\n for(var i=0; i= 0) {\n var d = type.charCodeAt(type.length-1) - 48\n if(d < 2 || d > 4) {\n throw new GLError('', 'Invalid data type for attribute ' + name + ': ' + type)\n }\n addVectorAttribute(\n gl\n , wrapper\n , locs[0]\n , locations\n , d\n , obj\n , name)\n } else if(type.indexOf('mat') >= 0) {\n var d = type.charCodeAt(type.length-1) - 48\n if(d < 2 || d > 4) {\n throw new GLError('', 'Invalid data type for attribute ' + name + ': ' + type)\n }\n addMatrixAttribute(\n gl\n , wrapper\n , locs\n , locations\n , d\n , obj\n , name)\n } else {\n throw new GLError('', 'Unknown data type for attribute ' + name + ': ' + type)\n }\n break\n }\n }\n return obj\n}\n\n},{\"./GLError\":133}],135:[function(_glvis_,module,exports){\n'use strict'\n\nvar coallesceUniforms = _glvis_('./reflect')\nvar GLError = _glvis_(\"./GLError\")\n\nmodule.exports = createUniformWrapper\n\n//Binds a function and returns a value\nfunction identity(x) {\n return function() {\n return x\n }\n}\n\nfunction makeVector(length, fill) {\n var result = new Array(length)\n for(var i=0; i 4) {\n throw new GLError('', 'Invalid data type')\n }\n switch(t.charAt(0)) {\n case 'b':\n case 'i':\n gl['uniform' + d + 'iv'](locations[idx], objPath)\n break\n case 'v':\n gl['uniform' + d + 'fv'](locations[idx], objPath)\n break\n default:\n throw new GLError('', 'Unrecognized data type for vector ' + name + ': ' + t)\n }\n } else if(t.indexOf('mat') === 0 && t.length === 4) {\n d = t.charCodeAt(t.length-1) - 48\n if(d < 2 || d > 4) {\n throw new GLError('', 'Invalid uniform dimension type for matrix ' + name + ': ' + t)\n }\n gl['uniformMatrix' + d + 'fv'](locations[idx], false, objPath)\n break\n } else {\n throw new GLError('', 'Unknown uniform data type for ' + name + ': ' + t)\n }\n }\n }\n }\n }\n }\n\n function enumerateIndices(prefix, type) {\n if(typeof type !== 'object') {\n return [ [prefix, type] ]\n }\n var indices = []\n for(var id in type) {\n var prop = type[id]\n var tprefix = prefix\n if(parseInt(id) + '' === id) {\n tprefix += '[' + id + ']'\n } else {\n tprefix += '.' + id\n }\n if(typeof prop === 'object') {\n indices.push.apply(indices, enumerateIndices(tprefix, prop))\n } else {\n indices.push([tprefix, prop])\n }\n }\n return indices\n }\n\n\n function defaultValue(type) {\n switch(type) {\n case 'bool':\n return false\n case 'int':\n case 'sampler2D':\n case 'samplerCube':\n return 0\n case 'float':\n return 0.0\n default:\n var vidx = type.indexOf('vec')\n if(0 <= vidx && vidx <= 1 && type.length === 4 + vidx) {\n var d = type.charCodeAt(type.length-1) - 48\n if(d < 2 || d > 4) {\n throw new GLError('', 'Invalid data type')\n }\n if(type.charAt(0) === 'b') {\n return makeVector(d, false)\n }\n return makeVector(d, 0)\n } else if(type.indexOf('mat') === 0 && type.length === 4) {\n var d = type.charCodeAt(type.length-1) - 48\n if(d < 2 || d > 4) {\n throw new GLError('', 'Invalid uniform dimension type for matrix ' + name + ': ' + type)\n }\n return makeVector(d*d, 0)\n } else {\n throw new GLError('', 'Unknown uniform data type for ' + name + ': ' + type)\n }\n }\n }\n\n function storeProperty(obj, prop, type) {\n if(typeof type === 'object') {\n var child = processObject(type)\n Object.defineProperty(obj, prop, {\n get: identity(child),\n set: makeSetter(type),\n enumerable: true,\n configurable: false\n })\n } else {\n if(locations[type]) {\n Object.defineProperty(obj, prop, {\n get: makeGetter(type),\n set: makeSetter(type),\n enumerable: true,\n configurable: false\n })\n } else {\n obj[prop] = defaultValue(uniforms[type].type)\n }\n }\n }\n\n function processObject(obj) {\n var result\n if(Array.isArray(obj)) {\n result = new Array(obj.length)\n for(var i=0; i 1) {\n if(!(x[0] in o)) {\n o[x[0]] = []\n }\n o = o[x[0]]\n for(var k=1; k 1) {\n for(var j=0; j 0 U ||b|| > 0.\\n // Assign z = 0, x = -b, y = a:\\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\\n return normalize(vec3(-v.y, v.x, 0.0));\\n } else {\\n return normalize(vec3(0.0, v.z, -v.y));\\n }\\n}\\n\\n// Calculate the tube vertex and normal at the given index.\\n//\\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\\n//\\n// Each tube segment is made up of a ring of vertices.\\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\\n// The indexes of tube segments run from 0 to 8.\\n//\\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\\n float segmentCount = 8.0;\\n\\n float angle = 2.0 * 3.14159 * (index / segmentCount);\\n\\n vec3 u = getOrthogonalVector(d);\\n vec3 v = normalize(cross(u, d));\\n\\n vec3 x = u * cos(angle) * length(d);\\n vec3 y = v * sin(angle) * length(d);\\n vec3 v3 = x + y;\\n\\n normal = normalize(v3);\\n\\n return v3;\\n}\\n\\nattribute vec4 vector;\\nattribute vec4 color, position;\\nattribute vec2 uv;\\n\\nuniform float vectorScale, tubeScale;\\nuniform mat4 model, view, projection, inverseModel;\\nuniform vec3 eyePosition, lightPosition;\\n\\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n // Scale the vector magnitude to stay constant with\\n // model & view changes.\\n vec3 normal;\\n vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\\n vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\\n\\n //Lighting geometry parameters\\n vec4 cameraCoordinate = view * tubePosition;\\n cameraCoordinate.xyz /= cameraCoordinate.w;\\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\\n\\n // vec4 m_position = model * vec4(tubePosition, 1.0);\\n vec4 t_position = view * tubePosition;\\n gl_Position = projection * t_position;\\n\\n f_color = color;\\n f_data = tubePosition.xyz;\\n f_position = position.xyz;\\n f_uv = uv;\\n}\\n\"])\nvar triFragSrc = glslify([\"#extension GL_OES_standard_derivatives : enable\\n\\nprecision highp float;\\n#define GLSLIFY 1\\n\\nfloat beckmannDistribution(float x, float roughness) {\\n float NdotH = max(x, 0.0001);\\n float cos2Alpha = NdotH * NdotH;\\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\\n float roughness2 = roughness * roughness;\\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\\n return exp(tan2Alpha / roughness2) / denom;\\n}\\n\\nfloat cookTorranceSpecular(\\n vec3 lightDirection,\\n vec3 viewDirection,\\n vec3 surfaceNormal,\\n float roughness,\\n float fresnel) {\\n\\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\\n\\n //Half angle vector\\n vec3 H = normalize(lightDirection + viewDirection);\\n\\n //Geometric term\\n float NdotH = max(dot(surfaceNormal, H), 0.0);\\n float VdotH = max(dot(viewDirection, H), 0.000001);\\n float LdotH = max(dot(lightDirection, H), 0.000001);\\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\\n float G = min(1.0, min(G1, G2));\\n \\n //Distribution term\\n float D = beckmannDistribution(NdotH, roughness);\\n\\n //Fresnel term\\n float F = pow(1.0 - VdotN, fresnel);\\n\\n //Multiply terms and done\\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\\n}\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\\nuniform sampler2D texture;\\n\\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\\n vec3 N = normalize(f_normal);\\n vec3 L = normalize(f_lightDirection);\\n vec3 V = normalize(f_eyeDirection);\\n\\n if(gl_FrontFacing) {\\n N = -N;\\n }\\n\\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\\n\\n vec4 surfaceColor = f_color * texture2D(texture, f_uv);\\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\\n\\n gl_FragColor = litColor * opacity;\\n}\\n\"])\nvar pickVertSrc = glslify([\"precision highp float;\\n\\nprecision highp float;\\n#define GLSLIFY 1\\n\\nvec3 getOrthogonalVector(vec3 v) {\\n // Return up-vector for only-z vector.\\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\\n // Assign z = 0, x = -b, y = a:\\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\\n return normalize(vec3(-v.y, v.x, 0.0));\\n } else {\\n return normalize(vec3(0.0, v.z, -v.y));\\n }\\n}\\n\\n// Calculate the tube vertex and normal at the given index.\\n//\\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\\n//\\n// Each tube segment is made up of a ring of vertices.\\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\\n// The indexes of tube segments run from 0 to 8.\\n//\\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\\n float segmentCount = 8.0;\\n\\n float angle = 2.0 * 3.14159 * (index / segmentCount);\\n\\n vec3 u = getOrthogonalVector(d);\\n vec3 v = normalize(cross(u, d));\\n\\n vec3 x = u * cos(angle) * length(d);\\n vec3 y = v * sin(angle) * length(d);\\n vec3 v3 = x + y;\\n\\n normal = normalize(v3);\\n\\n return v3;\\n}\\n\\nattribute vec4 vector;\\nattribute vec4 position;\\nattribute vec4 id;\\n\\nuniform mat4 model, view, projection;\\nuniform float tubeScale;\\n\\nvarying vec3 f_position;\\nvarying vec4 f_id;\\n\\nvoid main() {\\n vec3 normal;\\n vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\\n vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\\n\\n gl_Position = projection * view * tubePosition;\\n f_id = id;\\n f_position = position.xyz;\\n}\\n\"])\nvar pickFragSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform float pickId;\\n\\nvarying vec3 f_position;\\nvarying vec4 f_id;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\\n\\n gl_FragColor = vec4(pickId, f_id.xyz);\\n}\"])\n\nexports.meshShader = {\n vertex: triVertSrc,\n fragment: triFragSrc,\n attributes: [\n {name: 'position', type: 'vec4'},\n {name: 'color', type: 'vec4'},\n {name: 'uv', type: 'vec2'},\n {name: 'vector', type: 'vec4'}\n ]\n}\nexports.pickShader = {\n vertex: pickVertSrc,\n fragment: pickFragSrc,\n attributes: [\n {name: 'position', type: 'vec4'},\n {name: 'id', type: 'vec4'},\n {name: 'vector', type: 'vec4'}\n ]\n}\n\n},{\"glslify\":231}],143:[function(_glvis_,module,exports){\n\"use strict\";\n\nvar vec3 = _glvis_('gl-vec3');\nvar vec4 = _glvis_('gl-vec4');\nvar GRID_TYPES = ['xyz', 'xzy', 'yxz', 'yzx', 'zxy', 'zyx'];\n\nvar streamToTube = function(stream, maxDivergence, minDistance, maxNorm) {\n\tvar points = stream.points;\n\tvar velocities = stream.velocities;\n\tvar divergences = stream.divergences;\n\n\tvar verts = [];\n\tvar faces = [];\n\tvar vectors = [];\n\tvar previousVerts = [];\n\tvar currentVerts = [];\n\tvar intensities = [];\n\tvar previousIntensity = 0;\n\tvar currentIntensity = 0;\n\tvar currentVector = vec4.create();\n\tvar previousVector = vec4.create();\n\n\tvar facets = 8;\n\n\tfor (var i = 0; i < points.length; i++) {\n\t\tvar p = points[i];\n\t\tvar fwd = velocities[i];\n\t\tvar r = divergences[i];\n\t\tif (maxDivergence === 0) {\n\t\t\tr = minDistance * 0.05;\n\t\t}\n\t\tcurrentIntensity = vec3.length(fwd) / maxNorm;\n\n\t\tcurrentVector = vec4.create();\n\t\tvec3.copy(currentVector, fwd);\n\t\tcurrentVector[3] = r;\n\n\t\tfor (var a = 0; a < facets; a++) {\n\t\t\tcurrentVerts[a] = [p[0], p[1], p[2], a];\n\t\t}\n\t\tif (previousVerts.length > 0) {\n\t\t\tfor (var a = 0; a < facets; a++) {\n\t\t\t\tvar a1 = (a+1) % facets;\n\t\t\t\tverts.push(\n\t\t\t\t\tpreviousVerts[a],\n\t\t\t\t\tcurrentVerts[a],\n\t\t\t\t\tcurrentVerts[a1],\n\n\t\t\t\t\tcurrentVerts[a1],\n\t\t\t\t\tpreviousVerts[a1],\n\t\t\t\t\tpreviousVerts[a]\n\t\t\t\t);\n\t\t\t\tvectors.push(\n\t\t\t\t\tpreviousVector,\n\t\t\t\t\tcurrentVector,\n\t\t\t\t\tcurrentVector,\n\n\t\t\t\t\tcurrentVector,\n\t\t\t\t\tpreviousVector,\n\t\t\t\t\tpreviousVector\n\t\t\t\t);\n\t\t\t\tintensities.push(\n\t\t\t\t\tpreviousIntensity,\n\t\t\t\t\tcurrentIntensity,\n\t\t\t\t\tcurrentIntensity,\n\n\t\t\t\t\tcurrentIntensity,\n\t\t\t\t\tpreviousIntensity,\n\t\t\t\t\tpreviousIntensity\n\t\t\t\t);\n\n\t\t\t\tvar len = verts.length;\n\t\t\t\tfaces.push(\n\t\t\t\t\t[len-6, len-5, len-4],\n\t\t\t\t\t[len-3, len-2, len-1]\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\tvar tmp1 = previousVerts;\n\t\tpreviousVerts = currentVerts;\n\t\tcurrentVerts = tmp1;\n\n\t\tvar tmp2 = previousVector;\n\t\tpreviousVector = currentVector;\n\t\tcurrentVector = tmp2;\n\n\t\tvar tmp3 = previousIntensity;\n\t\tpreviousIntensity = currentIntensity;\n\t\tcurrentIntensity = tmp3;\n\t}\n\treturn {\n\t\tpositions: verts,\n\t\tcells: faces,\n\t\tvectors: vectors,\n\t\tvertexIntensity: intensities\n\t};\n};\n\nvar createTubes = function(streams, colormap, maxDivergence, minDistance) {\n\n\tvar maxNorm = 0;\n\tfor (var i=0; i v) return i-1;\n }\n return i;\n};\n\nvar clamp = function(v, min, max) {\n\treturn v < min ? min : (v > max ? max : v);\n};\n\nvar sampleMeshgrid = function(point, vectorField, gridInfo) {\n\tvar vectors = vectorField.vectors;\n\tvar meshgrid = vectorField.meshgrid;\n\n\tvar x = point[0];\n\tvar y = point[1];\n\tvar z = point[2];\n\n\tvar w = meshgrid[0].length;\n\tvar h = meshgrid[1].length;\n\tvar d = meshgrid[2].length;\n\n\t// Find the index of the nearest smaller value in the meshgrid for each coordinate of (x,y,z).\n\t// The nearest smaller value index for x is the index x0 such that\n\t// meshgrid[0][x0] < x and for all x1 > x0, meshgrid[0][x1] >= x.\n\tvar x0 = findLastSmallerIndex(meshgrid[0], x);\n\tvar y0 = findLastSmallerIndex(meshgrid[1], y);\n\tvar z0 = findLastSmallerIndex(meshgrid[2], z);\n\n\t// Get the nearest larger meshgrid value indices.\n\t// From the above \"nearest smaller value\", we know that\n\t// meshgrid[0][x0] < x\n\t// meshgrid[0][x0+1] >= x\n\tvar x1 = x0 + 1;\n\tvar y1 = y0 + 1;\n\tvar z1 = z0 + 1;\n\n\tx0 = clamp(x0, 0, w-1);\n\tx1 = clamp(x1, 0, w-1);\n\ty0 = clamp(y0, 0, h-1);\n\ty1 = clamp(y1, 0, h-1);\n\tz0 = clamp(z0, 0, d-1);\n\tz1 = clamp(z1, 0, d-1);\n\n\t// Reject points outside the meshgrid, return a zero vector.\n\tif (x0 < 0 || y0 < 0 || z0 < 0 || x1 > w-1 || y1 > h-1 || z1 > d-1) {\n\t\treturn vec3.create();\n\t}\n\n\t// Normalize point coordinates to 0..1 scaling factor between x0 and x1.\n\tvar mX0 = meshgrid[0][x0];\n\tvar mX1 = meshgrid[0][x1];\n\tvar mY0 = meshgrid[1][y0];\n\tvar mY1 = meshgrid[1][y1];\n\tvar mZ0 = meshgrid[2][z0];\n\tvar mZ1 = meshgrid[2][z1];\n\tvar xf = (x - mX0) / (mX1 - mX0);\n\tvar yf = (y - mY0) / (mY1 - mY0);\n\tvar zf = (z - mZ0) / (mZ1 - mZ0);\n\n\tif (!isFinite(xf)) xf = 0.5;\n\tif (!isFinite(yf)) yf = 0.5;\n\tif (!isFinite(zf)) zf = 0.5;\n\n\tvar x0off;\n\tvar x1off;\n\tvar y0off;\n\tvar y1off;\n\tvar z0off;\n\tvar z1off;\n\n\tif(gridInfo.reversedX) {\n\t\tx0 = w - 1 - x0;\n\t\tx1 = w - 1 - x1;\n\t}\n\n\tif(gridInfo.reversedY) {\n\t\ty0 = h - 1 - y0;\n\t\ty1 = h - 1 - y1;\n\t}\n\n\tif(gridInfo.reversedZ) {\n\t\tz0 = d - 1 - z0;\n\t\tz1 = d - 1 - z1;\n\t}\n\n\tswitch(gridInfo.filled) {\n\t\tcase 5: // 'zyx'\n\t\t\tz0off = z0;\n\t\t\tz1off = z1;\n\t\t\ty0off = y0*d;\n\t\t\ty1off = y1*d;\n\t\t\tx0off = x0*d*h;\n\t\t\tx1off = x1*d*h;\n\t\t\tbreak;\n\n\t\tcase 4: // 'zxy'\n\t\t\tz0off = z0;\n\t\t\tz1off = z1;\n\t\t\tx0off = x0*d;\n\t\t\tx1off = x1*d;\n\t\t\ty0off = y0*d*w;\n\t\t\ty1off = y1*d*w;\n\t\t\tbreak;\n\n\t\tcase 3: // 'yzx'\n\t\t\ty0off = y0;\n\t\t\ty1off = y1;\n\t\t\tz0off = z0*h;\n\t\t\tz1off = z1*h;\n\t\t\tx0off = x0*h*d;\n\t\t\tx1off = x1*h*d;\n\t\t\tbreak;\n\n\t\tcase 2: // 'yxz'\n\t\t\ty0off = y0;\n\t\t\ty1off = y1;\n\t\t\tx0off = x0*h;\n\t\t\tx1off = x1*h;\n\t\t\tz0off = z0*h*w;\n\t\t\tz1off = z1*h*w;\n\t\t\tbreak;\n\n\t\tcase 1: // 'xzy'\n\t\t\tx0off = x0;\n\t\t\tx1off = x1;\n\t\t\tz0off = z0*w;\n\t\t\tz1off = z1*w;\n\t\t\ty0off = y0*w*d;\n\t\t\ty1off = y1*w*d;\n\t\t\tbreak;\n\n\t\tdefault: // case 0: // 'xyz'\n\t\t\tx0off = x0;\n\t\t\tx1off = x1;\n\t\t\ty0off = y0*w;\n\t\t\ty1off = y1*w;\n\t\t\tz0off = z0*w*h;\n\t\t\tz1off = z1*w*h;\n\t\t\tbreak;\n\t}\n\n\t// Sample data vectors around the (x,y,z) point.\n\tvar v000 = vectors[x0off + y0off + z0off];\n\tvar v001 = vectors[x0off + y0off + z1off];\n\tvar v010 = vectors[x0off + y1off + z0off];\n\tvar v011 = vectors[x0off + y1off + z1off];\n\tvar v100 = vectors[x1off + y0off + z0off];\n\tvar v101 = vectors[x1off + y0off + z1off];\n\tvar v110 = vectors[x1off + y1off + z0off];\n\tvar v111 = vectors[x1off + y1off + z1off];\n\n\tvar c00 = vec3.create();\n\tvar c01 = vec3.create();\n\tvar c10 = vec3.create();\n\tvar c11 = vec3.create();\n\n\tvec3.lerp(c00, v000, v100, xf);\n\tvec3.lerp(c01, v001, v101, xf);\n\tvec3.lerp(c10, v010, v110, xf);\n\tvec3.lerp(c11, v011, v111, xf);\n\n\tvar c0 = vec3.create();\n\tvar c1 = vec3.create();\n\n\tvec3.lerp(c0, c00, c10, yf);\n\tvec3.lerp(c1, c01, c11, yf);\n\n\tvar c = vec3.create();\n\n\tvec3.lerp(c, c0, c1, zf);\n\n\treturn c;\n};\n\n\nvar vabs = function(dst, v) {\n\tvar x = v[0];\n\tvar y = v[1];\n\tvar z = v[2];\n\tdst[0] = x < 0 ? -x : x;\n\tdst[1] = y < 0 ? -y : y;\n\tdst[2] = z < 0 ? -z : z;\n\treturn dst;\n};\n\nvar findMinSeparation = function(xs) {\n\tvar minSeparation = Infinity;\n\txs.sort(function(a, b) { return a - b; });\n\tvar len = xs.length;\n\tfor (var i=1; i maxX ||\n\t\t\ty < minY || y > maxY ||\n\t\t\tz < minZ || z > maxZ\n\t\t);\n\t};\n\n\tvar boundsSize = vec3.distance(bounds[0], bounds[1]);\n\tvar maxStepSize = 10 * boundsSize / maxLength;\n\tvar maxStepSizeSq = maxStepSize * maxStepSize;\n\n\tvar minDistance = 1;\n\tvar maxDivergence = 0; // For component-wise divergence vec3.create();\n\n\t// In case we need to do component-wise divergence visualization\n\t// var tmp = vec3.create();\n\n\tvar len = positions.length;\n\tif (len > 1) {\n\t\tminDistance = calculateMinPositionDistance(positions);\n\t}\n\n\tfor (var i = 0; i < len; i++) {\n\t\tvar p = vec3.create();\n\t\tvec3.copy(p, positions[i]);\n\n\t\tvar stream = [p];\n\t\tvar velocities = [];\n\t\tvar v = getVelocity(p);\n\t\tvar op = p;\n\t\tvelocities.push(v);\n\n\t\tvar divergences = [];\n\n\t\tvar dv = getDivergence(p, v);\n\t\tvar dvLength = vec3.length(dv);\n\t\tif (isFinite(dvLength) && dvLength > maxDivergence) {\n\t\t\tmaxDivergence = dvLength;\n\t\t}\n\t\t// In case we need to do component-wise divergence visualization\n\t\t// vec3.max(maxDivergence, maxDivergence, vabs(tmp, dv));\n\t\tdivergences.push(dvLength);\n\n\t\tstreams.push({points: stream, velocities: velocities, divergences: divergences});\n\n\t\tvar j = 0;\n\n\t\twhile (j < maxLength * 100 && stream.length < maxLength && inBounds(p)) {\n\t\t\tj++;\n\t\t\tvar np = vec3.clone(v);\n\t\t\tvar sqLen = vec3.squaredLength(np);\n\t\t\tif (sqLen === 0) {\n\t\t\t\tbreak;\n\t\t\t} else if (sqLen > maxStepSizeSq) {\n\t\t\t\tvec3.scale(np, np, maxStepSize / Math.sqrt(sqLen));\n\t\t\t}\n\t\t\tvec3.add(np, np, p);\n\n\t\t\tv = getVelocity(np);\n\n\t\t\tif (vec3.squaredDistance(op, np) - maxStepSizeSq > -0.0001 * maxStepSizeSq) {\n\t\t\t\tstream.push(np);\n\t\t\t\top = np;\n\t\t\t\tvelocities.push(v);\n\t\t\t\tvar dv = getDivergence(np, v);\n\t\t\t\tvar dvLength = vec3.length(dv);\n\t\t\t\tif (isFinite(dvLength) && dvLength > maxDivergence) {\n\t\t\t\t\tmaxDivergence = dvLength;\n\t\t\t\t}\n\t\t\t\t// In case we need to do component-wise divergence visualization\n\t\t\t\t//vec3.max(maxDivergence, maxDivergence, vabs(tmp, dv));\n\t\t\t\tdivergences.push(dvLength);\n\t\t\t}\n\n\t\t\tp = np;\n\t\t}\n\t}\n\n\tvar tubes = createTubes(streams, vectorField.colormap, maxDivergence, minDistance);\n\n\tif (absoluteTubeSize) {\n\t\ttubes.tubeScale = absoluteTubeSize;\n\t} else {\n\t\t// Avoid division by zero.\n\t\tif (maxDivergence === 0) {\n\t\t\tmaxDivergence = 1;\n\t\t}\n\t\ttubes.tubeScale = tubeSize * 0.5 * minDistance / maxDivergence;\n\t}\n\n\treturn tubes;\n};\n\nvar shaders = _glvis_('./lib/shaders');\nvar createMesh = _glvis_('gl-cone3d').createMesh;\nmodule.exports.createTubeMesh = function(gl, params) {\n\treturn createMesh(gl, params, {\n\t\tshaders: shaders,\n\t\ttraceType: 'streamtube'\n\t});\n}\n\n},{\"./lib/shaders\":142,\"gl-cone3d\":79,\"gl-vec3\":169,\"gl-vec4\":205}],144:[function(_glvis_,module,exports){\nvar createShader = _glvis_('gl-shader')\nvar glslify = _glvis_('glslify')\n\nvar vertSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec4 uv;\\nattribute vec3 f;\\nattribute vec3 normal;\\n\\nuniform vec3 objectOffset;\\nuniform mat4 model, view, projection, inverseModel;\\nuniform vec3 lightPosition, eyePosition;\\nuniform sampler2D colormap;\\n\\nvarying float value, kill;\\nvarying vec3 worldCoordinate;\\nvarying vec2 planeCoordinate;\\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\\nvarying vec4 vColor;\\n\\nvoid main() {\\n vec3 localCoordinate = vec3(uv.zw, f.x);\\n worldCoordinate = objectOffset + localCoordinate;\\n vec4 worldPosition = model * vec4(worldCoordinate, 1.0);\\n vec4 clipPosition = projection * view * worldPosition;\\n gl_Position = clipPosition;\\n kill = f.y;\\n value = f.z;\\n planeCoordinate = uv.xy;\\n\\n vColor = texture2D(colormap, vec2(value, value));\\n\\n //Lighting geometry parameters\\n vec4 cameraCoordinate = view * worldPosition;\\n cameraCoordinate.xyz /= cameraCoordinate.w;\\n lightDirection = lightPosition - cameraCoordinate.xyz;\\n eyeDirection = eyePosition - cameraCoordinate.xyz;\\n surfaceNormal = normalize((vec4(normal,0) * inverseModel).xyz);\\n}\\n\"])\nvar fragSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nfloat beckmannDistribution(float x, float roughness) {\\n float NdotH = max(x, 0.0001);\\n float cos2Alpha = NdotH * NdotH;\\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\\n float roughness2 = roughness * roughness;\\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\\n return exp(tan2Alpha / roughness2) / denom;\\n}\\n\\nfloat beckmannSpecular(\\n vec3 lightDirection,\\n vec3 viewDirection,\\n vec3 surfaceNormal,\\n float roughness) {\\n return beckmannDistribution(dot(surfaceNormal, normalize(lightDirection + viewDirection)), roughness);\\n}\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 lowerBound, upperBound;\\nuniform float contourTint;\\nuniform vec4 contourColor;\\nuniform sampler2D colormap;\\nuniform vec3 clipBounds[2];\\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\\nuniform float vertexColor;\\n\\nvarying float value, kill;\\nvarying vec3 worldCoordinate;\\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\\nvarying vec4 vColor;\\n\\nvoid main() {\\n if (\\n kill > 0.0 ||\\n vColor.a == 0.0 ||\\n outOfRange(clipBounds[0], clipBounds[1], worldCoordinate)\\n ) discard;\\n\\n vec3 N = normalize(surfaceNormal);\\n vec3 V = normalize(eyeDirection);\\n vec3 L = normalize(lightDirection);\\n\\n if(gl_FrontFacing) {\\n N = -N;\\n }\\n\\n float specular = max(beckmannSpecular(L, V, N, roughness), 0.);\\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\\n\\n //decide how to interpolate color — in vertex or in fragment\\n vec4 surfaceColor =\\n step(vertexColor, .5) * texture2D(colormap, vec2(value, value)) +\\n step(.5, vertexColor) * vColor;\\n\\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\\n\\n gl_FragColor = mix(litColor, contourColor, contourTint) * opacity;\\n}\\n\"])\nvar contourVertSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec4 uv;\\nattribute float f;\\n\\nuniform vec3 objectOffset;\\nuniform mat3 permutation;\\nuniform mat4 model, view, projection;\\nuniform float height, zOffset;\\nuniform sampler2D colormap;\\n\\nvarying float value, kill;\\nvarying vec3 worldCoordinate;\\nvarying vec2 planeCoordinate;\\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\\nvarying vec4 vColor;\\n\\nvoid main() {\\n vec3 dataCoordinate = permutation * vec3(uv.xy, height);\\n worldCoordinate = objectOffset + dataCoordinate;\\n vec4 worldPosition = model * vec4(worldCoordinate, 1.0);\\n\\n vec4 clipPosition = projection * view * worldPosition;\\n clipPosition.z += zOffset;\\n\\n gl_Position = clipPosition;\\n value = f + objectOffset.z;\\n kill = -1.0;\\n planeCoordinate = uv.zw;\\n\\n vColor = texture2D(colormap, vec2(value, value));\\n\\n //Don't do lighting for contours\\n surfaceNormal = vec3(1,0,0);\\n eyeDirection = vec3(0,1,0);\\n lightDirection = vec3(0,0,1);\\n}\\n\"])\nvar pickSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec2 shape;\\nuniform vec3 clipBounds[2];\\nuniform float pickId;\\n\\nvarying float value, kill;\\nvarying vec3 worldCoordinate;\\nvarying vec2 planeCoordinate;\\nvarying vec3 surfaceNormal;\\n\\nvec2 splitFloat(float v) {\\n float vh = 255.0 * v;\\n float upper = floor(vh);\\n float lower = fract(vh);\\n return vec2(upper / 255.0, floor(lower * 16.0) / 16.0);\\n}\\n\\nvoid main() {\\n if ((kill > 0.0) ||\\n (outOfRange(clipBounds[0], clipBounds[1], worldCoordinate))) discard;\\n\\n vec2 ux = splitFloat(planeCoordinate.x / shape.x);\\n vec2 uy = splitFloat(planeCoordinate.y / shape.y);\\n gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0));\\n}\\n\"])\n\nexports.createShader = function (gl) {\n var shader = createShader(gl, vertSrc, fragSrc, null, [\n {name: 'uv', type: 'vec4'},\n {name: 'f', type: 'vec3'},\n {name: 'normal', type: 'vec3'}\n ])\n shader.attributes.uv.location = 0\n shader.attributes.f.location = 1\n shader.attributes.normal.location = 2\n return shader\n}\nexports.createPickShader = function (gl) {\n var shader = createShader(gl, vertSrc, pickSrc, null, [\n {name: 'uv', type: 'vec4'},\n {name: 'f', type: 'vec3'},\n {name: 'normal', type: 'vec3'}\n ])\n shader.attributes.uv.location = 0\n shader.attributes.f.location = 1\n shader.attributes.normal.location = 2\n return shader\n}\nexports.createContourShader = function (gl) {\n var shader = createShader(gl, contourVertSrc, fragSrc, null, [\n {name: 'uv', type: 'vec4'},\n {name: 'f', type: 'float'}\n ])\n shader.attributes.uv.location = 0\n shader.attributes.f.location = 1\n return shader\n}\nexports.createPickContourShader = function (gl) {\n var shader = createShader(gl, contourVertSrc, pickSrc, null, [\n {name: 'uv', type: 'vec4'},\n {name: 'f', type: 'float'}\n ])\n shader.attributes.uv.location = 0\n shader.attributes.f.location = 1\n return shader\n}\n\n},{\"gl-shader\":132,\"glslify\":231}],145:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = createSurfacePlot\n\nvar bits = _glvis_('bit-twiddle')\nvar createBuffer = _glvis_('gl-buffer')\nvar createVAO = _glvis_('gl-vao')\nvar createTexture = _glvis_('gl-texture2d')\nvar pool = _glvis_('typedarray-pool')\nvar colormap = _glvis_('colormap')\nvar ops = _glvis_('ndarray-ops')\nvar pack = _glvis_('ndarray-pack')\nvar ndarray = _glvis_('ndarray')\nvar surfaceNets = _glvis_('surface-nets')\nvar multiply = _glvis_('gl-mat4/multiply')\nvar invert = _glvis_('gl-mat4/invert')\nvar bsearch = _glvis_('binary-search-bounds')\nvar gradient = _glvis_('ndarray-gradient')\nvar shaders = _glvis_('./lib/shaders')\n\nvar createShader = shaders.createShader\nvar createContourShader = shaders.createContourShader\nvar createPickShader = shaders.createPickShader\nvar createPickContourShader = shaders.createPickContourShader\n\nvar SURFACE_VERTEX_SIZE = 4 * (4 + 3 + 3)\n\nvar IDENTITY = [\n 1, 0, 0, 0,\n 0, 1, 0, 0,\n 0, 0, 1, 0,\n 0, 0, 0, 1 ]\n\nvar QUAD = [\n [0, 0],\n [0, 1],\n [1, 0],\n [1, 1],\n [1, 0],\n [0, 1]\n]\n\nvar PERMUTATIONS = [\n [0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 0, 0, 0, 0]\n]\n\n;(function () {\n for (var i = 0; i < 3; ++i) {\n var p = PERMUTATIONS[i]\n var u = (i + 1) % 3\n var v = (i + 2) % 3\n p[u + 0] = 1\n p[v + 3] = 1\n p[i + 6] = 1\n }\n})()\n\nfunction SurfacePickResult (position, index, uv, level, dataCoordinate) {\n this.position = position\n this.index = index\n this.uv = uv\n this.level = level\n this.dataCoordinate = dataCoordinate\n}\n\nvar N_COLORS = 256\n\nfunction SurfacePlot (\n gl,\n shape,\n bounds,\n shader,\n pickShader,\n coordinates,\n vao,\n colorMap,\n contourShader,\n contourPickShader,\n contourBuffer,\n contourVAO,\n dynamicBuffer,\n dynamicVAO,\n objectOffset) {\n this.gl = gl\n this.shape = shape\n this.bounds = bounds\n this.objectOffset = objectOffset\n this.intensityBounds = []\n\n this._shader = shader\n this._pickShader = pickShader\n this._coordinateBuffer = coordinates\n this._vao = vao\n this._colorMap = colorMap\n\n this._contourShader = contourShader\n this._contourPickShader = contourPickShader\n this._contourBuffer = contourBuffer\n this._contourVAO = contourVAO\n this._contourOffsets = [[], [], []]\n this._contourCounts = [[], [], []]\n this._vertexCount = 0\n\n this._pickResult = new SurfacePickResult([0, 0, 0], [0, 0], [0, 0], [0, 0, 0], [0, 0, 0])\n\n this._dynamicBuffer = dynamicBuffer\n this._dynamicVAO = dynamicVAO\n this._dynamicOffsets = [0, 0, 0]\n this._dynamicCounts = [0, 0, 0]\n\n this.contourWidth = [ 1, 1, 1 ]\n this.contourLevels = [[1], [1], [1]]\n this.contourTint = [0, 0, 0]\n this.contourColor = [[0.5, 0.5, 0.5, 1], [0.5, 0.5, 0.5, 1], [0.5, 0.5, 0.5, 1]]\n\n this.showContour = true\n this.showSurface = true\n\n this.enableHighlight = [true, true, true]\n this.highlightColor = [[0, 0, 0, 1], [0, 0, 0, 1], [0, 0, 0, 1]]\n this.highlightTint = [ 1, 1, 1 ]\n this.highlightLevel = [-1, -1, -1]\n\n // Dynamic contour options\n this.enableDynamic = [ true, true, true ]\n this.dynamicLevel = [ NaN, NaN, NaN ]\n this.dynamicColor = [ [0, 0, 0, 1], [0, 0, 0, 1], [0, 0, 0, 1] ]\n this.dynamicTint = [ 1, 1, 1 ]\n this.dynamicWidth = [ 1, 1, 1 ]\n\n this.axesBounds = [[Infinity, Infinity, Infinity], [-Infinity, -Infinity, -Infinity]]\n this.surfaceProject = [ false, false, false ]\n this.contourProject = [[ false, false, false ],\n [ false, false, false ],\n [ false, false, false ]]\n\n this.colorBounds = [ false, false ]\n\n // Store xyz fields, need this for picking\n this._field = [\n ndarray(pool.mallocFloat(1024), [0, 0]),\n ndarray(pool.mallocFloat(1024), [0, 0]),\n ndarray(pool.mallocFloat(1024), [0, 0]) ]\n\n this.pickId = 1\n this.clipBounds = [[-Infinity, -Infinity, -Infinity], [Infinity, Infinity, Infinity]]\n\n this.snapToData = false\n\n this.pixelRatio = 1\n\n this.opacity = 1.0\n\n this.lightPosition = [10, 10000, 0]\n this.ambientLight = 0.8\n this.diffuseLight = 0.8\n this.specularLight = 2.0\n this.roughness = 0.5\n this.fresnel = 1.5\n this.vertexColor = 0\n\n this.dirty = true\n}\n\nvar proto = SurfacePlot.prototype\n\nproto.genColormap = function (name, opacityscale) {\n var hasAlpha = false\n\n var x = pack([colormap({\n colormap: name,\n nshades: N_COLORS,\n format: 'rgba'\n }).map(function (c, i) {\n var a = opacityscale ? getOpacityFromScale(i / 255.0, opacityscale) : c[3]\n if(a < 1) hasAlpha = true\n return [c[0], c[1], c[2], 255 * a]\n })])\n ops.divseq(x, 255.0)\n\n this.hasAlphaScale = hasAlpha\n return x\n}\n\nproto.isTransparent = function () {\n return this.opacity < 1 || this.hasAlphaScale\n}\n\nproto.isOpaque = function () {\n return !this.isTransparent()\n}\n\nproto.pickSlots = 1\n\nproto.setPickBase = function (id) {\n this.pickId = id\n}\n\nfunction getOpacityFromScale(ratio, opacityscale) { // copied form gl-mesh3d\n if(!opacityscale) return 1\n if(!opacityscale.length) return 1\n\n for(var i = 0; i < opacityscale.length; ++i) {\n if(opacityscale.length < 2) return 1\n if(opacityscale[i][0] === ratio) return opacityscale[i][1]\n if(opacityscale[i][0] > ratio && i > 0) {\n var d = (opacityscale[i][0] - ratio) / (opacityscale[i][0] - opacityscale[i - 1][0])\n return opacityscale[i][1] * (1 - d) + d * opacityscale[i - 1][1]\n }\n }\n\n return 1\n}\n\nvar ZERO_VEC = [0, 0, 0]\n\nvar PROJECT_DATA = {\n showSurface: false,\n showContour: false,\n projections: [IDENTITY.slice(), IDENTITY.slice(), IDENTITY.slice()],\n clipBounds: [\n [[0, 0, 0], [0, 0, 0]],\n [[0, 0, 0], [0, 0, 0]],\n [[0, 0, 0], [0, 0, 0]]]\n}\n\nfunction computeProjectionData (camera, obj) {\n var i, j, k\n\n // Compute cube properties\n var cubeAxis = (obj.axes && obj.axes.lastCubeProps.axis) || ZERO_VEC\n\n var showSurface = obj.showSurface\n var showContour = obj.showContour\n\n for (i = 0; i < 3; ++i) {\n showSurface = showSurface || obj.surfaceProject[i]\n for (j = 0; j < 3; ++j) {\n showContour = showContour || obj.contourProject[i][j]\n }\n }\n\n for (i = 0; i < 3; ++i) {\n // Construct projection onto axis\n var axisSquish = PROJECT_DATA.projections[i]\n for (j = 0; j < 16; ++j) {\n axisSquish[j] = 0\n }\n for (j = 0; j < 4; ++j) {\n axisSquish[5 * j] = 1\n }\n axisSquish[5 * i] = 0\n axisSquish[12 + i] = obj.axesBounds[+(cubeAxis[i] > 0)][i]\n multiply(axisSquish, camera.model, axisSquish)\n\n var nclipBounds = PROJECT_DATA.clipBounds[i]\n for (k = 0; k < 2; ++k) {\n for (j = 0; j < 3; ++j) {\n nclipBounds[k][j] = camera.clipBounds[k][j]\n }\n }\n nclipBounds[0][i] = -1e8\n nclipBounds[1][i] = 1e8\n }\n\n PROJECT_DATA.showSurface = showSurface\n PROJECT_DATA.showContour = showContour\n\n return PROJECT_DATA\n}\n\nvar UNIFORMS = {\n model: IDENTITY,\n view: IDENTITY,\n projection: IDENTITY,\n inverseModel: IDENTITY.slice(),\n lowerBound: [0, 0, 0],\n upperBound: [0, 0, 0],\n colorMap: 0,\n clipBounds: [[0, 0, 0], [0, 0, 0]],\n height: 0.0,\n contourTint: 0,\n contourColor: [0, 0, 0, 1],\n permutation: [1, 0, 0, 0, 1, 0, 0, 0, 1],\n zOffset: -1e-4,\n objectOffset: [0, 0, 0],\n kambient: 1,\n kdiffuse: 1,\n kspecular: 1,\n lightPosition: [1000, 1000, 1000],\n eyePosition: [0, 0, 0],\n roughness: 1,\n fresnel: 1,\n opacity: 1,\n vertexColor: 0\n}\n\nvar MATRIX_INVERSE = IDENTITY.slice()\nvar DEFAULT_PERM = [1, 0, 0, 0, 1, 0, 0, 0, 1]\n\nfunction drawCore (params, transparent) {\n params = params || {}\n var gl = this.gl\n\n gl.disable(gl.CULL_FACE)\n\n this._colorMap.bind(0)\n\n var uniforms = UNIFORMS\n uniforms.model = params.model || IDENTITY\n uniforms.view = params.view || IDENTITY\n uniforms.projection = params.projection || IDENTITY\n uniforms.lowerBound = [this.bounds[0][0], this.bounds[0][1], this.colorBounds[0] || this.bounds[0][2]]\n uniforms.upperBound = [this.bounds[1][0], this.bounds[1][1], this.colorBounds[1] || this.bounds[1][2]]\n uniforms.objectOffset = this.objectOffset\n uniforms.contourColor = this.contourColor[0]\n\n uniforms.inverseModel = invert(uniforms.inverseModel, uniforms.model)\n\n for (var i = 0; i < 2; ++i) {\n var clipClamped = uniforms.clipBounds[i]\n for (var j = 0; j < 3; ++j) {\n clipClamped[j] = Math.min(Math.max(this.clipBounds[i][j], -1e8), 1e8)\n }\n }\n\n uniforms.kambient = this.ambientLight\n uniforms.kdiffuse = this.diffuseLight\n uniforms.kspecular = this.specularLight\n\n uniforms.roughness = this.roughness\n uniforms.fresnel = this.fresnel\n uniforms.opacity = this.opacity\n\n uniforms.height = 0.0\n uniforms.permutation = DEFAULT_PERM\n\n uniforms.vertexColor = this.vertexColor\n\n // Compute camera matrix inverse\n var invCameraMatrix = MATRIX_INVERSE\n multiply(invCameraMatrix, uniforms.view, uniforms.model)\n multiply(invCameraMatrix, uniforms.projection, invCameraMatrix)\n invert(invCameraMatrix, invCameraMatrix)\n\n for (i = 0; i < 3; ++i) {\n uniforms.eyePosition[i] = invCameraMatrix[12 + i] / invCameraMatrix[15]\n }\n\n var w = invCameraMatrix[15]\n for (i = 0; i < 3; ++i) {\n w += this.lightPosition[i] * invCameraMatrix[4 * i + 3]\n }\n for (i = 0; i < 3; ++i) {\n var s = invCameraMatrix[12 + i]\n for (j = 0; j < 3; ++j) {\n s += invCameraMatrix[4 * j + i] * this.lightPosition[j]\n }\n uniforms.lightPosition[i] = s / w\n }\n\n var projectData = computeProjectionData(uniforms, this)\n\n if (projectData.showSurface) {\n // Set up uniforms\n this._shader.bind()\n this._shader.uniforms = uniforms\n\n // Draw it\n this._vao.bind()\n\n if (this.showSurface && this._vertexCount) {\n this._vao.draw(gl.TRIANGLES, this._vertexCount)\n }\n\n // Draw projections of surface\n for (i = 0; i < 3; ++i) {\n if (!this.surfaceProject[i] || !this.vertexCount) {\n continue\n }\n this._shader.uniforms.model = projectData.projections[i]\n this._shader.uniforms.clipBounds = projectData.clipBounds[i]\n this._vao.draw(gl.TRIANGLES, this._vertexCount)\n }\n\n this._vao.unbind()\n }\n\n if (projectData.showContour) {\n var shader = this._contourShader\n\n // Don't apply lighting to contours\n uniforms.kambient = 1.0\n uniforms.kdiffuse = 0.0\n uniforms.kspecular = 0.0\n uniforms.opacity = 1.0\n\n shader.bind()\n shader.uniforms = uniforms\n\n // Draw contour lines\n var vao = this._contourVAO\n vao.bind()\n\n // Draw contour levels\n for (i = 0; i < 3; ++i) {\n shader.uniforms.permutation = PERMUTATIONS[i]\n gl.lineWidth(this.contourWidth[i] * this.pixelRatio)\n\n for (j = 0; j < this.contourLevels[i].length; ++j) {\n if (j === this.highlightLevel[i]) {\n shader.uniforms.contourColor = this.highlightColor[i]\n shader.uniforms.contourTint = this.highlightTint[i]\n } else if (j === 0 || (j - 1) === this.highlightLevel[i]) {\n shader.uniforms.contourColor = this.contourColor[i]\n shader.uniforms.contourTint = this.contourTint[i]\n }\n if (!this._contourCounts[i][j]) {\n continue\n }\n\n shader.uniforms.height = this.contourLevels[i][j]\n vao.draw(gl.LINES, this._contourCounts[i][j], this._contourOffsets[i][j])\n }\n }\n\n // Draw projections of surface\n for (i = 0; i < 3; ++i) {\n shader.uniforms.model = projectData.projections[i]\n shader.uniforms.clipBounds = projectData.clipBounds[i]\n for (j = 0; j < 3; ++j) {\n if (!this.contourProject[i][j]) {\n continue\n }\n shader.uniforms.permutation = PERMUTATIONS[j]\n gl.lineWidth(this.contourWidth[j] * this.pixelRatio)\n for (var k = 0; k < this.contourLevels[j].length; ++k) {\n if (k === this.highlightLevel[j]) {\n shader.uniforms.contourColor = this.highlightColor[j]\n shader.uniforms.contourTint = this.highlightTint[j]\n } else if (k === 0 || (k - 1) === this.highlightLevel[j]) {\n shader.uniforms.contourColor = this.contourColor[j]\n shader.uniforms.contourTint = this.contourTint[j]\n }\n if (!this._contourCounts[j][k]) {\n continue\n }\n\n shader.uniforms.height = this.contourLevels[j][k]\n vao.draw(gl.LINES, this._contourCounts[j][k], this._contourOffsets[j][k])\n }\n }\n }\n\n vao.unbind()\n\n // Draw dynamic contours\n vao = this._dynamicVAO\n vao.bind()\n\n // Draw contour levels\n for (i = 0; i < 3; ++i) {\n if (this._dynamicCounts[i] === 0) {\n continue\n }\n\n shader.uniforms.model = uniforms.model\n shader.uniforms.clipBounds = uniforms.clipBounds\n shader.uniforms.permutation = PERMUTATIONS[i]\n gl.lineWidth(this.dynamicWidth[i] * this.pixelRatio)\n\n shader.uniforms.contourColor = this.dynamicColor[i]\n shader.uniforms.contourTint = this.dynamicTint[i]\n shader.uniforms.height = this.dynamicLevel[i]\n vao.draw(gl.LINES, this._dynamicCounts[i], this._dynamicOffsets[i])\n\n for (j = 0; j < 3; ++j) {\n if (!this.contourProject[j][i]) {\n continue\n }\n\n shader.uniforms.model = projectData.projections[j]\n shader.uniforms.clipBounds = projectData.clipBounds[j]\n vao.draw(gl.LINES, this._dynamicCounts[i], this._dynamicOffsets[i])\n }\n }\n\n vao.unbind()\n }\n}\n\nproto.draw = function (params) {\n return drawCore.call(this, params, false)\n}\n\nproto.drawTransparent = function (params) {\n return drawCore.call(this, params, true)\n}\n\nvar PICK_UNIFORMS = {\n model: IDENTITY,\n view: IDENTITY,\n projection: IDENTITY,\n inverseModel: IDENTITY,\n clipBounds: [[0, 0, 0], [0, 0, 0]],\n height: 0.0,\n shape: [0, 0],\n pickId: 0,\n lowerBound: [0, 0, 0],\n upperBound: [0, 0, 0],\n zOffset: 0.0,\n objectOffset: [0, 0, 0],\n permutation: [1, 0, 0, 0, 1, 0, 0, 0, 1],\n lightPosition: [0, 0, 0],\n eyePosition: [0, 0, 0]\n}\n\nproto.drawPick = function (params) {\n params = params || {}\n var gl = this.gl\n gl.disable(gl.CULL_FACE)\n\n var uniforms = PICK_UNIFORMS\n uniforms.model = params.model || IDENTITY\n uniforms.view = params.view || IDENTITY\n uniforms.projection = params.projection || IDENTITY\n uniforms.shape = this._field[2].shape\n uniforms.pickId = this.pickId / 255.0\n uniforms.lowerBound = this.bounds[0]\n uniforms.upperBound = this.bounds[1]\n uniforms.objectOffset = this.objectOffset\n uniforms.permutation = DEFAULT_PERM\n\n for (var i = 0; i < 2; ++i) {\n var clipClamped = uniforms.clipBounds[i]\n for (var j = 0; j < 3; ++j) {\n clipClamped[j] = Math.min(Math.max(this.clipBounds[i][j], -1e8), 1e8)\n }\n }\n\n var projectData = computeProjectionData(uniforms, this)\n\n if (projectData.showSurface) {\n // Set up uniforms\n this._pickShader.bind()\n this._pickShader.uniforms = uniforms\n\n // Draw it\n this._vao.bind()\n this._vao.draw(gl.TRIANGLES, this._vertexCount)\n\n // Draw projections of surface\n for (i = 0; i < 3; ++i) {\n if (!this.surfaceProject[i]) {\n continue\n }\n this._pickShader.uniforms.model = projectData.projections[i]\n this._pickShader.uniforms.clipBounds = projectData.clipBounds[i]\n this._vao.draw(gl.TRIANGLES, this._vertexCount)\n }\n\n this._vao.unbind()\n }\n\n if (projectData.showContour) {\n var shader = this._contourPickShader\n\n shader.bind()\n shader.uniforms = uniforms\n\n var vao = this._contourVAO\n vao.bind()\n\n for (j = 0; j < 3; ++j) {\n gl.lineWidth(this.contourWidth[j] * this.pixelRatio)\n shader.uniforms.permutation = PERMUTATIONS[j]\n for (i = 0; i < this.contourLevels[j].length; ++i) {\n if (this._contourCounts[j][i]) {\n shader.uniforms.height = this.contourLevels[j][i]\n vao.draw(gl.LINES, this._contourCounts[j][i], this._contourOffsets[j][i])\n }\n }\n }\n\n // Draw projections of surface\n for (i = 0; i < 3; ++i) {\n shader.uniforms.model = projectData.projections[i]\n shader.uniforms.clipBounds = projectData.clipBounds[i]\n\n for (j = 0; j < 3; ++j) {\n if (!this.contourProject[i][j]) {\n continue\n }\n\n shader.uniforms.permutation = PERMUTATIONS[j]\n gl.lineWidth(this.contourWidth[j] * this.pixelRatio)\n for (var k = 0; k < this.contourLevels[j].length; ++k) {\n if (this._contourCounts[j][k]) {\n shader.uniforms.height = this.contourLevels[j][k]\n vao.draw(gl.LINES, this._contourCounts[j][k], this._contourOffsets[j][k])\n }\n }\n }\n }\n\n vao.unbind()\n }\n}\n\nproto.pick = function (selection) {\n if (!selection) {\n return null\n }\n\n if (selection.id !== this.pickId) {\n return null\n }\n\n var shape = this._field[2].shape\n\n var result = this._pickResult\n\n // Compute uv coordinate\n var x = shape[0] * (selection.value[0] + (selection.value[2] >> 4) / 16.0) / 255.0\n var ix = Math.floor(x)\n var fx = x - ix\n\n var y = shape[1] * (selection.value[1] + (selection.value[2] & 15) / 16.0) / 255.0\n var iy = Math.floor(y)\n var fy = y - iy\n\n ix += 1\n iy += 1\n\n // Compute xyz coordinate\n var pos = result.position\n pos[0] = pos[1] = pos[2] = 0\n for (var dx = 0; dx < 2; ++dx) {\n var s = dx ? fx : 1.0 - fx\n for (var dy = 0; dy < 2; ++dy) {\n var t = dy ? fy : 1.0 - fy\n\n var r = ix + dx\n var c = iy + dy\n var w = s * t\n\n for (var i = 0; i < 3; ++i) {\n pos[i] += this._field[i].get(r, c) * w\n }\n }\n }\n\n // Find closest level\n var levelIndex = this._pickResult.level\n for (var j = 0; j < 3; ++j) {\n levelIndex[j] = bsearch.le(this.contourLevels[j], pos[j])\n if (levelIndex[j] < 0) {\n if (this.contourLevels[j].length > 0) {\n levelIndex[j] = 0\n }\n } else if (levelIndex[j] < this.contourLevels[j].length - 1) {\n var a = this.contourLevels[j][levelIndex[j]]\n var b = this.contourLevels[j][levelIndex[j] + 1]\n if (Math.abs(a - pos[j]) > Math.abs(b - pos[j])) {\n levelIndex[j] += 1\n }\n }\n }\n\n result.index[0] = fx < 0.5 ? ix : (ix + 1)\n result.index[1] = fy < 0.5 ? iy : (iy + 1)\n\n result.uv[0] = x / shape[0]\n result.uv[1] = y / shape[1]\n\n for (i = 0; i < 3; ++i) {\n result.dataCoordinate[i] = this._field[i].get(result.index[0], result.index[1])\n }\n\n return result\n}\n\nproto.padField = function(dstField, srcField) {\n var srcShape = srcField.shape.slice()\n var dstShape = dstField.shape.slice()\n\n // Center\n ops.assign(dstField.lo(1, 1).hi(srcShape[0], srcShape[1]), srcField)\n\n // Edges\n ops.assign(dstField.lo(1).hi(srcShape[0], 1),\n srcField.hi(srcShape[0], 1))\n ops.assign(dstField.lo(1, dstShape[1] - 1).hi(srcShape[0], 1),\n srcField.lo(0, srcShape[1] - 1).hi(srcShape[0], 1))\n ops.assign(dstField.lo(0, 1).hi(1, srcShape[1]),\n srcField.hi(1))\n ops.assign(dstField.lo(dstShape[0] - 1, 1).hi(1, srcShape[1]),\n srcField.lo(srcShape[0] - 1))\n // Corners\n dstField.set(0, 0, srcField.get(0, 0))\n dstField.set(0, dstShape[1] - 1, srcField.get(0, srcShape[1] - 1))\n dstField.set(dstShape[0] - 1, 0, srcField.get(srcShape[0] - 1, 0))\n dstField.set(dstShape[0] - 1, dstShape[1] - 1, srcField.get(srcShape[0] - 1, srcShape[1] - 1))\n}\n\nfunction handleArray (param, ctor) {\n if (Array.isArray(param)) {\n return [ ctor(param[0]), ctor(param[1]), ctor(param[2]) ]\n }\n return [ ctor(param), ctor(param), ctor(param) ]\n}\n\nfunction toColor (x) {\n if (Array.isArray(x)) {\n if (x.length === 3) {\n return [x[0], x[1], x[2], 1]\n }\n return [x[0], x[1], x[2], x[3]]\n }\n return [0, 0, 0, 1]\n}\n\nfunction handleColor (param) {\n if (Array.isArray(param)) {\n if (Array.isArray(param)) {\n return [\n toColor(param[0]),\n toColor(param[1]),\n toColor(param[2]) ]\n } else {\n var c = toColor(param)\n return [\n c.slice(),\n c.slice(),\n c.slice() ]\n }\n }\n}\n\nproto.update = function (params) {\n params = params || {}\n\n this.objectOffset = params.objectOffset || this.objectOffset\n\n this.dirty = true\n\n if ('contourWidth' in params) {\n this.contourWidth = handleArray(params.contourWidth, Number)\n }\n if ('showContour' in params) {\n this.showContour = handleArray(params.showContour, Boolean)\n }\n if ('showSurface' in params) {\n this.showSurface = !!params.showSurface\n }\n if ('contourTint' in params) {\n this.contourTint = handleArray(params.contourTint, Boolean)\n }\n if ('contourColor' in params) {\n this.contourColor = handleColor(params.contourColor)\n }\n if ('contourProject' in params) {\n this.contourProject = handleArray(params.contourProject, function (x) {\n return handleArray(x, Boolean)\n })\n }\n if ('surfaceProject' in params) {\n this.surfaceProject = params.surfaceProject\n }\n if ('dynamicColor' in params) {\n this.dynamicColor = handleColor(params.dynamicColor)\n }\n if ('dynamicTint' in params) {\n this.dynamicTint = handleArray(params.dynamicTint, Number)\n }\n if ('dynamicWidth' in params) {\n this.dynamicWidth = handleArray(params.dynamicWidth, Number)\n }\n if ('opacity' in params) {\n this.opacity = params.opacity\n }\n if('opacityscale' in params) {\n this.opacityscale = params.opacityscale\n }\n if ('colorBounds' in params) {\n this.colorBounds = params.colorBounds\n }\n if ('vertexColor' in params) {\n this.vertexColor = params.vertexColor ? 1 : 0;\n }\n if ('colormap' in params) {\n this._colorMap.setPixels(this.genColormap(params.colormap, this.opacityscale))\n }\n\n var field = params.field || (params.coords && params.coords[2]) || null\n var levelsChanged = false\n\n if (!field) {\n if (this._field[2].shape[0] || this._field[2].shape[2]) {\n field = this._field[2].lo(1, 1).hi(this._field[2].shape[0] - 2, this._field[2].shape[1] - 2)\n } else {\n field = this._field[2].hi(0, 0)\n }\n }\n\n // Update field\n if ('field' in params || 'coords' in params) {\n var fsize = (field.shape[0] + 2) * (field.shape[1] + 2)\n\n // Resize if necessary\n if (fsize > this._field[2].data.length) {\n pool.freeFloat(this._field[2].data)\n this._field[2].data = pool.mallocFloat(bits.nextPow2(fsize))\n }\n\n // Pad field\n this._field[2] = ndarray(this._field[2].data, [field.shape[0] + 2, field.shape[1] + 2])\n this.padField(this._field[2], field)\n\n // Save shape of field\n this.shape = field.shape.slice()\n var shape = this.shape\n\n // Resize coordinate fields if necessary\n for (var i = 0; i < 2; ++i) {\n if (this._field[2].size > this._field[i].data.length) {\n pool.freeFloat(this._field[i].data)\n this._field[i].data = pool.mallocFloat(this._field[2].size)\n }\n this._field[i] = ndarray(this._field[i].data, [shape[0] + 2, shape[1] + 2])\n }\n\n // Generate x/y coordinates\n if (params.coords) {\n var coords = params.coords\n if (!Array.isArray(coords) || coords.length !== 3) {\n throw new Error('gl-surface: invalid coordinates for x/y')\n }\n for (i = 0; i < 2; ++i) {\n var coord = coords[i]\n for (j = 0; j < 2; ++j) {\n if (coord.shape[j] !== shape[j]) {\n throw new Error('gl-surface: coords have incorrect shape')\n }\n }\n this.padField(this._field[i], coord)\n }\n } else if (params.ticks) {\n var ticks = params.ticks\n if (!Array.isArray(ticks) || ticks.length !== 2) {\n throw new Error('gl-surface: invalid ticks')\n }\n for (i = 0; i < 2; ++i) {\n var tick = ticks[i]\n if (Array.isArray(tick) || tick.length) {\n tick = ndarray(tick)\n }\n if (tick.shape[0] !== shape[i]) {\n throw new Error('gl-surface: invalid tick length')\n }\n // Make a copy view of the tick array\n var tick2 = ndarray(tick.data, shape)\n tick2.stride[i] = tick.stride[0]\n tick2.stride[i ^ 1] = 0\n\n // Fill in field array\n this.padField(this._field[i], tick2)\n }\n } else {\n for (i = 0; i < 2; ++i) {\n var offset = [0, 0]\n offset[i] = 1\n this._field[i] = ndarray(this._field[i].data, [shape[0] + 2, shape[1] + 2], offset, 0)\n }\n this._field[0].set(0, 0, 0)\n for (var j = 0; j < shape[0]; ++j) {\n this._field[0].set(j + 1, 0, j)\n }\n this._field[0].set(shape[0] + 1, 0, shape[0] - 1)\n this._field[1].set(0, 0, 0)\n for (j = 0; j < shape[1]; ++j) {\n this._field[1].set(0, j + 1, j)\n }\n this._field[1].set(0, shape[1] + 1, shape[1] - 1)\n }\n\n // Save shape\n var fields = this._field\n\n // Compute surface normals\n var dfields = ndarray(pool.mallocFloat(fields[2].size * 3 * 2), [3, shape[0] + 2, shape[1] + 2, 2])\n for (i = 0; i < 3; ++i) {\n gradient(dfields.pick(i), fields[i], 'mirror')\n }\n var normals = ndarray(pool.mallocFloat(fields[2].size * 3), [shape[0] + 2, shape[1] + 2, 3])\n for (i = 0; i < shape[0] + 2; ++i) {\n for (j = 0; j < shape[1] + 2; ++j) {\n var dxdu = dfields.get(0, i, j, 0)\n var dxdv = dfields.get(0, i, j, 1)\n var dydu = dfields.get(1, i, j, 0)\n var dydv = dfields.get(1, i, j, 1)\n var dzdu = dfields.get(2, i, j, 0)\n var dzdv = dfields.get(2, i, j, 1)\n\n var nx = dydu * dzdv - dydv * dzdu\n var ny = dzdu * dxdv - dzdv * dxdu\n var nz = dxdu * dydv - dxdv * dydu\n\n var nl = Math.sqrt(nx * nx + ny * ny + nz * nz)\n if (nl < 1e-8) {\n nl = Math.max(Math.abs(nx), Math.abs(ny), Math.abs(nz))\n if (nl < 1e-8) {\n nz = 1.0\n ny = nx = 0.0\n nl = 1.0\n } else {\n nl = 1.0 / nl\n }\n } else {\n nl = 1.0 / Math.sqrt(nl)\n }\n\n normals.set(i, j, 0, nx * nl)\n normals.set(i, j, 1, ny * nl)\n normals.set(i, j, 2, nz * nl)\n }\n }\n pool.free(dfields.data)\n\n // Initialize surface\n var lo = [ Infinity, Infinity, Infinity ]\n var hi = [ -Infinity, -Infinity, -Infinity ]\n var lo_intensity = Infinity\n var hi_intensity = -Infinity\n var count = (shape[0] - 1) * (shape[1] - 1) * 6\n var tverts = pool.mallocFloat(bits.nextPow2(10 * count))\n var tptr = 0\n var vertexCount = 0\n for (i = 0; i < shape[0] - 1; ++i) {\n j_loop:\n for (j = 0; j < shape[1] - 1; ++j) {\n // Test for NaNs\n for (var dx = 0; dx < 2; ++dx) {\n for (var dy = 0; dy < 2; ++dy) {\n for (var k = 0; k < 3; ++k) {\n var f = this._field[k].get(1 + i + dx, 1 + j + dy)\n if (isNaN(f) || !isFinite(f)) {\n continue j_loop\n }\n }\n }\n }\n for (k = 0; k < 6; ++k) {\n var r = i + QUAD[k][0]\n var c = j + QUAD[k][1]\n\n var tx = this._field[0].get(r + 1, c + 1)\n var ty = this._field[1].get(r + 1, c + 1)\n f = this._field[2].get(r + 1, c + 1)\n\n nx = normals.get(r + 1, c + 1, 0)\n ny = normals.get(r + 1, c + 1, 1)\n nz = normals.get(r + 1, c + 1, 2)\n\n if (params.intensity) {\n vf = params.intensity.get(r, c)\n }\n\n var vf = (params.intensity) ?\n params.intensity.get(r, c) :\n f + this.objectOffset[2];\n\n tverts[tptr++] = r\n tverts[tptr++] = c\n tverts[tptr++] = tx\n tverts[tptr++] = ty\n tverts[tptr++] = f\n tverts[tptr++] = 0\n tverts[tptr++] = vf\n tverts[tptr++] = nx\n tverts[tptr++] = ny\n tverts[tptr++] = nz\n\n lo[0] = Math.min(lo[0], tx + this.objectOffset[0])\n lo[1] = Math.min(lo[1], ty + this.objectOffset[1])\n lo[2] = Math.min(lo[2], f + this.objectOffset[2])\n lo_intensity = Math.min(lo_intensity, vf)\n\n hi[0] = Math.max(hi[0], tx + this.objectOffset[0])\n hi[1] = Math.max(hi[1], ty + this.objectOffset[1])\n hi[2] = Math.max(hi[2], f + this.objectOffset[2])\n hi_intensity = Math.max(hi_intensity, vf)\n\n vertexCount += 1\n }\n }\n }\n\n if (params.intensityBounds) {\n lo_intensity = +params.intensityBounds[0]\n hi_intensity = +params.intensityBounds[1]\n }\n\n // Scale all vertex intensities\n for (i = 6; i < tptr; i += 10) {\n tverts[i] = (tverts[i] - lo_intensity) / (hi_intensity - lo_intensity)\n }\n\n this._vertexCount = vertexCount\n this._coordinateBuffer.update(tverts.subarray(0, tptr))\n pool.freeFloat(tverts)\n pool.free(normals.data)\n\n // Update bounds\n this.bounds = [lo, hi]\n\n // Save intensity\n this.intensity = params.intensity || this._field[2]\n\n if(this.intensityBounds[0] !== lo_intensity || this.intensityBounds[1] !== hi_intensity) {\n levelsChanged = true\n }\n\n // Save intensity bound\n this.intensityBounds = [lo_intensity, hi_intensity]\n }\n\n // Update level crossings\n if ('levels' in params) {\n var levels = params.levels\n if (!Array.isArray(levels[0])) {\n levels = [ [], [], levels ]\n } else {\n levels = levels.slice()\n }\n for (i = 0; i < 3; ++i) {\n levels[i] = levels[i].slice()\n levels[i].sort(function (a, b) {\n return a - b\n })\n }\n for (i = 0; i < 3; ++i) {\n for (j = 0; j < levels[i].length; ++j) {\n levels[i][j] -= this.objectOffset[i]\n }\n }\n change_test:\n for (i = 0; i < 3; ++i) {\n if (levels[i].length !== this.contourLevels[i].length) {\n levelsChanged = true\n break\n }\n for (j = 0; j < levels[i].length; ++j) {\n if (levels[i][j] !== this.contourLevels[i][j]) {\n levelsChanged = true\n break change_test\n }\n }\n }\n this.contourLevels = levels\n }\n\n if (levelsChanged) {\n fields = this._field\n shape = this.shape\n\n // Update contour lines\n var contourVerts = []\n\n for (var dim = 0; dim < 3; ++dim) {\n var contourLevel = this.contourLevels[dim]\n\n var levelOffsets = []\n var levelCounts = []\n\n var parts = [0, 0, 0]\n\n for (i = 0; i < contourLevel.length; ++i) {\n var graph = surfaceNets(this._field[dim], contourLevel[i])\n\n levelOffsets.push((contourVerts.length / 5) | 0)\n vertexCount = 0\n\n edge_loop:\n for (j = 0; j < graph.cells.length; ++j) {\n var e = graph.cells[j]\n for (k = 0; k < 2; ++k) {\n var p = graph.positions[e[k]]\n\n var x = p[0]\n var ix = Math.floor(x) | 0\n var fx = x - ix\n\n var y = p[1]\n var iy = Math.floor(y) | 0\n var fy = y - iy\n\n var hole = false\n axis_loop:\n for (var axis = 0; axis < 3; ++axis) {\n parts[axis] = 0.0\n var iu = (dim + axis + 1) % 3\n for (dx = 0; dx < 2; ++dx) {\n var s = dx ? fx : 1.0 - fx\n r = Math.min(Math.max(ix + dx, 0), shape[0]) | 0\n for (dy = 0; dy < 2; ++dy) {\n var t = dy ? fy : 1.0 - fy\n c = Math.min(Math.max(iy + dy, 0), shape[1]) | 0\n\n if (axis < 2) {\n f = this._field[iu].get(r, c)\n } else {\n f = (this.intensity.get(r, c) - this.intensityBounds[0]) / (this.intensityBounds[1] - this.intensityBounds[0])\n }\n if (!isFinite(f) || isNaN(f)) {\n hole = true\n break axis_loop\n }\n\n var w = s * t\n parts[axis] += w * f\n }\n }\n }\n\n if (!hole) {\n contourVerts.push(\n parts[0],\n parts[1],\n p[0],\n p[1],\n parts[2]\n )\n vertexCount += 1\n } else {\n if (k > 0) {\n // If we already added first edge, pop off verts\n for (var l = 0; l < 5; ++l) {\n contourVerts.pop()\n }\n vertexCount -= 1\n }\n continue edge_loop\n }\n }\n }\n levelCounts.push(vertexCount)\n }\n\n // Store results\n this._contourOffsets[dim] = levelOffsets\n this._contourCounts[dim] = levelCounts\n\n }\n\n var floatBuffer = pool.mallocFloat(contourVerts.length)\n for (i = 0; i < contourVerts.length; ++i) {\n floatBuffer[i] = contourVerts[i]\n }\n this._contourBuffer.update(floatBuffer)\n pool.freeFloat(floatBuffer)\n }\n}\n\nproto.dispose = function () {\n this._shader.dispose()\n this._vao.dispose()\n this._coordinateBuffer.dispose()\n this._colorMap.dispose()\n this._contourBuffer.dispose()\n this._contourVAO.dispose()\n this._contourShader.dispose()\n this._contourPickShader.dispose()\n this._dynamicBuffer.dispose()\n this._dynamicVAO.dispose()\n for (var i = 0; i < 3; ++i) {\n pool.freeFloat(this._field[i].data)\n }\n}\n\nproto.highlight = function (selection) {\n var i\n\n if (!selection) {\n this._dynamicCounts = [0, 0, 0]\n this.dyanamicLevel = [NaN, NaN, NaN]\n this.highlightLevel = [-1, -1, -1]\n return\n }\n\n for (i = 0; i < 3; ++i) {\n if (this.enableHighlight[i]) {\n this.highlightLevel[i] = selection.level[i]\n } else {\n this.highlightLevel[i] = -1\n }\n }\n\n var levels\n if (this.snapToData) {\n levels = selection.dataCoordinate\n } else {\n levels = selection.position\n }\n for (i = 0; i < 3; ++i) {\n levels[i] -= this.objectOffset[i]\n }\n if ((!this.enableDynamic[0] || levels[0] === this.dynamicLevel[0]) &&\n (!this.enableDynamic[1] || levels[1] === this.dynamicLevel[1]) &&\n (!this.enableDynamic[2] || levels[2] === this.dynamicLevel[2])) {\n return\n }\n\n var vertexCount = 0\n var shape = this.shape\n var scratchBuffer = pool.mallocFloat(12 * shape[0] * shape[1])\n\n for (var d = 0; d < 3; ++d) {\n if (!this.enableDynamic[d]) {\n this.dynamicLevel[d] = NaN\n this._dynamicCounts[d] = 0\n continue\n }\n\n this.dynamicLevel[d] = levels[d]\n\n var u = (d + 1) % 3\n var v = (d + 2) % 3\n\n var f = this._field[d]\n var g = this._field[u]\n var h = this._field[v]\n\n var graph = surfaceNets(f, levels[d])\n var edges = graph.cells\n var positions = graph.positions\n\n this._dynamicOffsets[d] = vertexCount\n\n for (i = 0; i < edges.length; ++i) {\n var e = edges[i]\n for (var j = 0; j < 2; ++j) {\n var p = positions[e[j]]\n\n var x = +p[0]\n var ix = x | 0\n var jx = Math.min(ix + 1, shape[0]) | 0\n var fx = x - ix\n var hx = 1.0 - fx\n\n var y = +p[1]\n var iy = y | 0\n var jy = Math.min(iy + 1, shape[1]) | 0\n var fy = y - iy\n var hy = 1.0 - fy\n\n var w00 = hx * hy\n var w01 = hx * fy\n var w10 = fx * hy\n var w11 = fx * fy\n\n var cu = w00 * g.get(ix, iy) +\n w01 * g.get(ix, jy) +\n w10 * g.get(jx, iy) +\n w11 * g.get(jx, jy)\n\n var cv = w00 * h.get(ix, iy) +\n w01 * h.get(ix, jy) +\n w10 * h.get(jx, iy) +\n w11 * h.get(jx, jy)\n\n if (isNaN(cu) || isNaN(cv)) {\n if (j) {\n vertexCount -= 1\n }\n break\n }\n\n scratchBuffer[2 * vertexCount + 0] = cu\n scratchBuffer[2 * vertexCount + 1] = cv\n\n vertexCount += 1\n }\n }\n\n this._dynamicCounts[d] = vertexCount - this._dynamicOffsets[d]\n }\n\n this._dynamicBuffer.update(scratchBuffer.subarray(0, 2 * vertexCount))\n pool.freeFloat(scratchBuffer)\n}\n\nfunction createSurfacePlot (params) {\n var gl = params.gl\n\n var shader = createShader(gl)\n var pickShader = createPickShader(gl)\n var contourShader = createContourShader(gl)\n var contourPickShader = createPickContourShader(gl)\n\n var coordinateBuffer = createBuffer(gl)\n var vao = createVAO(gl, [\n { buffer: coordinateBuffer,\n size: 4,\n stride: SURFACE_VERTEX_SIZE,\n offset: 0\n },\n { buffer: coordinateBuffer,\n size: 3,\n stride: SURFACE_VERTEX_SIZE,\n offset: 16\n },\n {\n buffer: coordinateBuffer,\n size: 3,\n stride: SURFACE_VERTEX_SIZE,\n offset: 28\n }\n ])\n\n var contourBuffer = createBuffer(gl)\n var contourVAO = createVAO(gl, [\n {\n buffer: contourBuffer,\n size: 4,\n stride: 20,\n offset: 0\n },\n {\n buffer: contourBuffer,\n size: 1,\n stride: 20,\n offset: 16\n }\n ])\n\n var dynamicBuffer = createBuffer(gl)\n var dynamicVAO = createVAO(gl, [\n {\n buffer: dynamicBuffer,\n size: 2,\n type: gl.FLOAT\n }])\n\n var cmap = createTexture(gl, 1, N_COLORS, gl.RGBA, gl.UNSIGNED_BYTE)\n cmap.minFilter = gl.LINEAR\n cmap.magFilter = gl.LINEAR\n\n var surface = new SurfacePlot(\n gl,\n [0, 0], // shape\n [[0, 0, 0], [0, 0, 0]], // bounds\n shader,\n pickShader,\n coordinateBuffer,\n vao,\n cmap,\n contourShader,\n contourPickShader,\n contourBuffer,\n contourVAO,\n dynamicBuffer,\n dynamicVAO,\n [0, 0, 0] // objectOffset\n )\n\n var nparams = {\n levels: [[], [], []]\n }\n for (var id in params) {\n nparams[id] = params[id]\n }\n nparams.colormap = nparams.colormap || 'jet'\n\n surface.update(nparams)\n\n return surface\n}\n\n},{\"./lib/shaders\":144,\"binary-search-bounds\":31,\"bit-twiddle\":32,\"colormap\":53,\"gl-buffer\":78,\"gl-mat4/invert\":98,\"gl-mat4/multiply\":100,\"gl-texture2d\":146,\"gl-vao\":150,\"ndarray\":259,\"ndarray-gradient\":252,\"ndarray-ops\":254,\"ndarray-pack\":255,\"surface-nets\":302,\"typedarray-pool\":308}],146:[function(_glvis_,module,exports){\n'use strict'\n\nvar ndarray = _glvis_('ndarray')\nvar ops = _glvis_('ndarray-ops')\nvar pool = _glvis_('typedarray-pool')\n\nmodule.exports = createTexture2D\n\nvar linearTypes = null\nvar filterTypes = null\nvar wrapTypes = null\n\nfunction lazyInitLinearTypes(gl) {\n linearTypes = [\n gl.LINEAR,\n gl.NEAREST_MIPMAP_LINEAR,\n gl.LINEAR_MIPMAP_NEAREST,\n gl.LINEAR_MIPMAP_NEAREST\n ]\n filterTypes = [\n gl.NEAREST,\n gl.LINEAR,\n gl.NEAREST_MIPMAP_NEAREST,\n gl.NEAREST_MIPMAP_LINEAR,\n gl.LINEAR_MIPMAP_NEAREST,\n gl.LINEAR_MIPMAP_LINEAR\n ]\n wrapTypes = [\n gl.REPEAT,\n gl.CLAMP_TO_EDGE,\n gl.MIRRORED_REPEAT\n ]\n}\n\nfunction acceptTextureDOM (obj) {\n return (\n ('undefined' != typeof HTMLCanvasElement && obj instanceof HTMLCanvasElement) ||\n ('undefined' != typeof HTMLImageElement && obj instanceof HTMLImageElement) ||\n ('undefined' != typeof HTMLVideoElement && obj instanceof HTMLVideoElement) ||\n ('undefined' != typeof ImageData && obj instanceof ImageData))\n}\n\nvar convertFloatToUint8 = function(out, inp) {\n ops.muls(out, inp, 255.0)\n}\n\nfunction reshapeTexture(tex, w, h) {\n var gl = tex.gl\n var maxSize = gl.getParameter(gl.MAX_TEXTURE_SIZE)\n if(w < 0 || w > maxSize || h < 0 || h > maxSize) {\n throw new Error('gl-texture2d: Invalid texture size')\n }\n tex._shape = [w, h]\n tex.bind()\n gl.texImage2D(gl.TEXTURE_2D, 0, tex.format, w, h, 0, tex.format, tex.type, null)\n tex._mipLevels = [0]\n return tex\n}\n\nfunction Texture2D(gl, handle, width, height, format, type) {\n this.gl = gl\n this.handle = handle\n this.format = format\n this.type = type\n this._shape = [width, height]\n this._mipLevels = [0]\n this._magFilter = gl.NEAREST\n this._minFilter = gl.NEAREST\n this._wrapS = gl.CLAMP_TO_EDGE\n this._wrapT = gl.CLAMP_TO_EDGE\n this._anisoSamples = 1\n\n var parent = this\n var wrapVector = [this._wrapS, this._wrapT]\n Object.defineProperties(wrapVector, [\n {\n get: function() {\n return parent._wrapS\n },\n set: function(v) {\n return parent.wrapS = v\n }\n },\n {\n get: function() {\n return parent._wrapT\n },\n set: function(v) {\n return parent.wrapT = v\n }\n }\n ])\n this._wrapVector = wrapVector\n\n var shapeVector = [this._shape[0], this._shape[1]]\n Object.defineProperties(shapeVector, [\n {\n get: function() {\n return parent._shape[0]\n },\n set: function(v) {\n return parent.width = v\n }\n },\n {\n get: function() {\n return parent._shape[1]\n },\n set: function(v) {\n return parent.height = v\n }\n }\n ])\n this._shapeVector = shapeVector\n}\n\nvar proto = Texture2D.prototype\n\nObject.defineProperties(proto, {\n minFilter: {\n get: function() {\n return this._minFilter\n },\n set: function(v) {\n this.bind()\n var gl = this.gl\n if(this.type === gl.FLOAT && linearTypes.indexOf(v) >= 0) {\n if(!gl.getExtension('OES_texture_float_linear')) {\n v = gl.NEAREST\n }\n }\n if(filterTypes.indexOf(v) < 0) {\n throw new Error('gl-texture2d: Unknown filter mode ' + v)\n }\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, v)\n return this._minFilter = v\n }\n },\n magFilter: {\n get: function() {\n return this._magFilter\n },\n set: function(v) {\n this.bind()\n var gl = this.gl\n if(this.type === gl.FLOAT && linearTypes.indexOf(v) >= 0) {\n if(!gl.getExtension('OES_texture_float_linear')) {\n v = gl.NEAREST\n }\n }\n if(filterTypes.indexOf(v) < 0) {\n throw new Error('gl-texture2d: Unknown filter mode ' + v)\n }\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, v)\n return this._magFilter = v\n }\n },\n mipSamples: {\n get: function() {\n return this._anisoSamples\n },\n set: function(i) {\n var psamples = this._anisoSamples\n this._anisoSamples = Math.max(i, 1)|0\n if(psamples !== this._anisoSamples) {\n var ext = this.gl.getExtension('EXT_texture_filter_anisotropic')\n if(ext) {\n this.gl.texParameterf(this.gl.TEXTURE_2D, ext.TEXTURE_MAX_ANISOTROPY_EXT, this._anisoSamples)\n }\n }\n return this._anisoSamples\n }\n },\n wrapS: {\n get: function() {\n return this._wrapS\n },\n set: function(v) {\n this.bind()\n if(wrapTypes.indexOf(v) < 0) {\n throw new Error('gl-texture2d: Unknown wrap mode ' + v)\n }\n this.gl.texParameteri(this.gl.TEXTURE_2D, this.gl.TEXTURE_WRAP_S, v)\n return this._wrapS = v\n }\n },\n wrapT: {\n get: function() {\n return this._wrapT\n },\n set: function(v) {\n this.bind()\n if(wrapTypes.indexOf(v) < 0) {\n throw new Error('gl-texture2d: Unknown wrap mode ' + v)\n }\n this.gl.texParameteri(this.gl.TEXTURE_2D, this.gl.TEXTURE_WRAP_T, v)\n return this._wrapT = v\n }\n },\n wrap: {\n get: function() {\n return this._wrapVector\n },\n set: function(v) {\n if(!Array.isArray(v)) {\n v = [v,v]\n }\n if(v.length !== 2) {\n throw new Error('gl-texture2d: Must specify wrap mode for rows and columns')\n }\n for(var i=0; i<2; ++i) {\n if(wrapTypes.indexOf(v[i]) < 0) {\n throw new Error('gl-texture2d: Unknown wrap mode ' + v)\n }\n }\n this._wrapS = v[0]\n this._wrapT = v[1]\n\n var gl = this.gl\n this.bind()\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, this._wrapS)\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, this._wrapT)\n\n return v\n }\n },\n shape: {\n get: function() {\n return this._shapeVector\n },\n set: function(x) {\n if(!Array.isArray(x)) {\n x = [x|0,x|0]\n } else {\n if(x.length !== 2) {\n throw new Error('gl-texture2d: Invalid texture shape')\n }\n }\n reshapeTexture(this, x[0]|0, x[1]|0)\n return [x[0]|0, x[1]|0]\n }\n },\n width: {\n get: function() {\n return this._shape[0]\n },\n set: function(w) {\n w = w|0\n reshapeTexture(this, w, this._shape[1])\n return w\n }\n },\n height: {\n get: function() {\n return this._shape[1]\n },\n set: function(h) {\n h = h|0\n reshapeTexture(this, this._shape[0], h)\n return h\n }\n }\n})\n\nproto.bind = function(unit) {\n var gl = this.gl\n if(unit !== undefined) {\n gl.activeTexture(gl.TEXTURE0 + (unit|0))\n }\n gl.bindTexture(gl.TEXTURE_2D, this.handle)\n if(unit !== undefined) {\n return (unit|0)\n }\n return gl.getParameter(gl.ACTIVE_TEXTURE) - gl.TEXTURE0\n}\n\nproto.dispose = function() {\n this.gl.deleteTexture(this.handle)\n}\n\nproto.generateMipmap = function() {\n this.bind()\n this.gl.generateMipmap(this.gl.TEXTURE_2D)\n\n //Update mip levels\n var l = Math.min(this._shape[0], this._shape[1])\n for(var i=0; l>0; ++i, l>>>=1) {\n if(this._mipLevels.indexOf(i) < 0) {\n this._mipLevels.push(i)\n }\n }\n}\n\nproto.setPixels = function(data, x_off, y_off, mip_level) {\n var gl = this.gl\n this.bind()\n if(Array.isArray(x_off)) {\n mip_level = y_off\n y_off = x_off[1]|0\n x_off = x_off[0]|0\n } else {\n x_off = x_off || 0\n y_off = y_off || 0\n }\n mip_level = mip_level || 0\n var directData = acceptTextureDOM(data) ? data : data.raw\n if(directData) {\n var needsMip = this._mipLevels.indexOf(mip_level) < 0\n if(needsMip) {\n gl.texImage2D(gl.TEXTURE_2D, 0, this.format, this.format, this.type, directData)\n this._mipLevels.push(mip_level)\n } else {\n gl.texSubImage2D(gl.TEXTURE_2D, mip_level, x_off, y_off, this.format, this.type, directData)\n }\n } else if(data.shape && data.stride && data.data) {\n if(data.shape.length < 2 ||\n x_off + data.shape[1] > this._shape[1]>>>mip_level ||\n y_off + data.shape[0] > this._shape[0]>>>mip_level ||\n x_off < 0 ||\n y_off < 0) {\n throw new Error('gl-texture2d: Texture dimensions are out of bounds')\n }\n texSubImageArray(gl, x_off, y_off, mip_level, this.format, this.type, this._mipLevels, data)\n } else {\n throw new Error('gl-texture2d: Unsupported data type')\n }\n}\n\n\nfunction isPacked(shape, stride) {\n if(shape.length === 3) {\n return (stride[2] === 1) &&\n (stride[1] === shape[0]*shape[2]) &&\n (stride[0] === shape[2])\n }\n return (stride[0] === 1) &&\n (stride[1] === shape[0])\n}\n\nfunction texSubImageArray(gl, x_off, y_off, mip_level, cformat, ctype, mipLevels, array) {\n var dtype = array.dtype\n var shape = array.shape.slice()\n if(shape.length < 2 || shape.length > 3) {\n throw new Error('gl-texture2d: Invalid ndarray, must be 2d or 3d')\n }\n var type = 0, format = 0\n var packed = isPacked(shape, array.stride.slice())\n if(dtype === 'float32') {\n type = gl.FLOAT\n } else if(dtype === 'float64') {\n type = gl.FLOAT\n packed = false\n dtype = 'float32'\n } else if(dtype === 'uint8') {\n type = gl.UNSIGNED_BYTE\n } else {\n type = gl.UNSIGNED_BYTE\n packed = false\n dtype = 'uint8'\n }\n var channels = 1\n if(shape.length === 2) {\n format = gl.LUMINANCE\n shape = [shape[0], shape[1], 1]\n array = ndarray(array.data, shape, [array.stride[0], array.stride[1], 1], array.offset)\n } else if(shape.length === 3) {\n if(shape[2] === 1) {\n format = gl.ALPHA\n } else if(shape[2] === 2) {\n format = gl.LUMINANCE_ALPHA\n } else if(shape[2] === 3) {\n format = gl.RGB\n } else if(shape[2] === 4) {\n format = gl.RGBA\n } else {\n throw new Error('gl-texture2d: Invalid shape for pixel coords')\n }\n channels = shape[2]\n } else {\n throw new Error('gl-texture2d: Invalid shape for texture')\n }\n //For 1-channel textures allow conversion between formats\n if((format === gl.LUMINANCE || format === gl.ALPHA) &&\n (cformat === gl.LUMINANCE || cformat === gl.ALPHA)) {\n format = cformat\n }\n if(format !== cformat) {\n throw new Error('gl-texture2d: Incompatible texture format for setPixels')\n }\n var size = array.size\n var needsMip = mipLevels.indexOf(mip_level) < 0\n if(needsMip) {\n mipLevels.push(mip_level)\n }\n if(type === ctype && packed) {\n //Array data types are compatible, can directly copy into texture\n if(array.offset === 0 && array.data.length === size) {\n if(needsMip) {\n gl.texImage2D(gl.TEXTURE_2D, mip_level, cformat, shape[0], shape[1], 0, cformat, ctype, array.data)\n } else {\n gl.texSubImage2D(gl.TEXTURE_2D, mip_level, x_off, y_off, shape[0], shape[1], cformat, ctype, array.data)\n }\n } else {\n if(needsMip) {\n gl.texImage2D(gl.TEXTURE_2D, mip_level, cformat, shape[0], shape[1], 0, cformat, ctype, array.data.subarray(array.offset, array.offset+size))\n } else {\n gl.texSubImage2D(gl.TEXTURE_2D, mip_level, x_off, y_off, shape[0], shape[1], cformat, ctype, array.data.subarray(array.offset, array.offset+size))\n }\n }\n } else {\n //Need to do type conversion to pack data into buffer\n var pack_buffer\n if(ctype === gl.FLOAT) {\n pack_buffer = pool.mallocFloat32(size)\n } else {\n pack_buffer = pool.mallocUint8(size)\n }\n var pack_view = ndarray(pack_buffer, shape, [shape[2], shape[2]*shape[0], 1])\n if(type === gl.FLOAT && ctype === gl.UNSIGNED_BYTE) {\n convertFloatToUint8(pack_view, array)\n } else {\n ops.assign(pack_view, array)\n }\n if(needsMip) {\n gl.texImage2D(gl.TEXTURE_2D, mip_level, cformat, shape[0], shape[1], 0, cformat, ctype, pack_buffer.subarray(0, size))\n } else {\n gl.texSubImage2D(gl.TEXTURE_2D, mip_level, x_off, y_off, shape[0], shape[1], cformat, ctype, pack_buffer.subarray(0, size))\n }\n if(ctype === gl.FLOAT) {\n pool.freeFloat32(pack_buffer)\n } else {\n pool.freeUint8(pack_buffer)\n }\n }\n}\n\nfunction initTexture(gl) {\n var tex = gl.createTexture()\n gl.bindTexture(gl.TEXTURE_2D, tex)\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.NEAREST)\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.NEAREST)\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE)\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE)\n return tex\n}\n\nfunction createTextureShape(gl, width, height, format, type) {\n var maxTextureSize = gl.getParameter(gl.MAX_TEXTURE_SIZE)\n if(width < 0 || width > maxTextureSize || height < 0 || height > maxTextureSize) {\n throw new Error('gl-texture2d: Invalid texture shape')\n }\n if(type === gl.FLOAT && !gl.getExtension('OES_texture_float')) {\n throw new Error('gl-texture2d: Floating point textures not supported on this platform')\n }\n var tex = initTexture(gl)\n gl.texImage2D(gl.TEXTURE_2D, 0, format, width, height, 0, format, type, null)\n return new Texture2D(gl, tex, width, height, format, type)\n}\n\nfunction createTextureDOM(gl, directData, width, height, format, type) {\n var tex = initTexture(gl)\n gl.texImage2D(gl.TEXTURE_2D, 0, format, format, type, directData)\n return new Texture2D(gl, tex, width, height, format, type)\n}\n\n//Creates a texture from an ndarray\nfunction createTextureArray(gl, array) {\n var dtype = array.dtype\n var shape = array.shape.slice()\n var maxSize = gl.getParameter(gl.MAX_TEXTURE_SIZE)\n if(shape[0] < 0 || shape[0] > maxSize || shape[1] < 0 || shape[1] > maxSize) {\n throw new Error('gl-texture2d: Invalid texture size')\n }\n var packed = isPacked(shape, array.stride.slice())\n var type = 0\n if(dtype === 'float32') {\n type = gl.FLOAT\n } else if(dtype === 'float64') {\n type = gl.FLOAT\n packed = false\n dtype = 'float32'\n } else if(dtype === 'uint8') {\n type = gl.UNSIGNED_BYTE\n } else {\n type = gl.UNSIGNED_BYTE\n packed = false\n dtype = 'uint8'\n }\n var format = 0\n if(shape.length === 2) {\n format = gl.LUMINANCE\n shape = [shape[0], shape[1], 1]\n array = ndarray(array.data, shape, [array.stride[0], array.stride[1], 1], array.offset)\n } else if(shape.length === 3) {\n if(shape[2] === 1) {\n format = gl.ALPHA\n } else if(shape[2] === 2) {\n format = gl.LUMINANCE_ALPHA\n } else if(shape[2] === 3) {\n format = gl.RGB\n } else if(shape[2] === 4) {\n format = gl.RGBA\n } else {\n throw new Error('gl-texture2d: Invalid shape for pixel coords')\n }\n } else {\n throw new Error('gl-texture2d: Invalid shape for texture')\n }\n if(type === gl.FLOAT && !gl.getExtension('OES_texture_float')) {\n type = gl.UNSIGNED_BYTE\n packed = false\n }\n var buffer, buf_store\n var size = array.size\n if(!packed) {\n var stride = [shape[2], shape[2]*shape[0], 1]\n buf_store = pool.malloc(size, dtype)\n var buf_array = ndarray(buf_store, shape, stride, 0)\n if((dtype === 'float32' || dtype === 'float64') && type === gl.UNSIGNED_BYTE) {\n convertFloatToUint8(buf_array, array)\n } else {\n ops.assign(buf_array, array)\n }\n buffer = buf_store.subarray(0, size)\n } else if (array.offset === 0 && array.data.length === size) {\n buffer = array.data\n } else {\n buffer = array.data.subarray(array.offset, array.offset + size)\n }\n var tex = initTexture(gl)\n gl.texImage2D(gl.TEXTURE_2D, 0, format, shape[0], shape[1], 0, format, type, buffer)\n if(!packed) {\n pool.free(buf_store)\n }\n return new Texture2D(gl, tex, shape[0], shape[1], format, type)\n}\n\nfunction createTexture2D(gl) {\n if(arguments.length <= 1) {\n throw new Error('gl-texture2d: Missing arguments for texture2d constructor')\n }\n if(!linearTypes) {\n lazyInitLinearTypes(gl)\n }\n if(typeof arguments[1] === 'number') {\n return createTextureShape(gl, arguments[1], arguments[2], arguments[3]||gl.RGBA, arguments[4]||gl.UNSIGNED_BYTE)\n }\n if(Array.isArray(arguments[1])) {\n return createTextureShape(gl, arguments[1][0]|0, arguments[1][1]|0, arguments[2]||gl.RGBA, arguments[3]||gl.UNSIGNED_BYTE)\n }\n if(typeof arguments[1] === 'object') {\n var obj = arguments[1]\n var directData = acceptTextureDOM(obj) ? obj : obj.raw\n if (directData) {\n return createTextureDOM(gl, directData, obj.width|0, obj.height|0, arguments[2]||gl.RGBA, arguments[3]||gl.UNSIGNED_BYTE)\n } else if(obj.shape && obj.data && obj.stride) {\n return createTextureArray(gl, obj)\n }\n }\n throw new Error('gl-texture2d: Invalid arguments for texture2d constructor')\n}\n\n},{\"ndarray\":259,\"ndarray-ops\":254,\"typedarray-pool\":308}],147:[function(_glvis_,module,exports){\n\"use strict\"\n\nfunction doBind(gl, elements, attributes) {\n if(elements) {\n elements.bind()\n } else {\n gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, null)\n }\n var nattribs = gl.getParameter(gl.MAX_VERTEX_ATTRIBS)|0\n if(attributes) {\n if(attributes.length > nattribs) {\n throw new Error(\"gl-vao: Too many vertex attributes\")\n }\n for(var i=0; i 1.0){\n return 0\n } else {\n return Math.acos(cosine)\n } \n}\n\n},{\"./dot\":162,\"./fromValues\":168,\"./normalize\":179}],153:[function(_glvis_,module,exports){\nmodule.exports = ceil\n\n/**\n * Math.ceil the components of a vec3\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a vector to ceil\n * @returns {vec3} out\n */\nfunction ceil(out, a) {\n out[0] = Math.ceil(a[0])\n out[1] = Math.ceil(a[1])\n out[2] = Math.ceil(a[2])\n return out\n}\n\n},{}],154:[function(_glvis_,module,exports){\nmodule.exports = clone;\n\n/**\n * Creates a new vec3 initialized with values from an existing vector\n *\n * @param {vec3} a vector to clone\n * @returns {vec3} a new 3D vector\n */\nfunction clone(a) {\n var out = new Float32Array(3)\n out[0] = a[0]\n out[1] = a[1]\n out[2] = a[2]\n return out\n}\n},{}],155:[function(_glvis_,module,exports){\nmodule.exports = copy;\n\n/**\n * Copy the values from one vec3 to another\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a the source vector\n * @returns {vec3} out\n */\nfunction copy(out, a) {\n out[0] = a[0]\n out[1] = a[1]\n out[2] = a[2]\n return out\n}\n},{}],156:[function(_glvis_,module,exports){\nmodule.exports = create;\n\n/**\n * Creates a new, empty vec3\n *\n * @returns {vec3} a new 3D vector\n */\nfunction create() {\n var out = new Float32Array(3)\n out[0] = 0\n out[1] = 0\n out[2] = 0\n return out\n}\n},{}],157:[function(_glvis_,module,exports){\nmodule.exports = cross;\n\n/**\n * Computes the cross product of two vec3's\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a the first operand\n * @param {vec3} b the second operand\n * @returns {vec3} out\n */\nfunction cross(out, a, b) {\n var ax = a[0], ay = a[1], az = a[2],\n bx = b[0], by = b[1], bz = b[2]\n\n out[0] = ay * bz - az * by\n out[1] = az * bx - ax * bz\n out[2] = ax * by - ay * bx\n return out\n}\n},{}],158:[function(_glvis_,module,exports){\nmodule.exports = _glvis_('./distance')\n\n},{\"./distance\":159}],159:[function(_glvis_,module,exports){\nmodule.exports = distance;\n\n/**\n * Calculates the euclidian distance between two vec3's\n *\n * @param {vec3} a the first operand\n * @param {vec3} b the second operand\n * @returns {Number} distance between a and b\n */\nfunction distance(a, b) {\n var x = b[0] - a[0],\n y = b[1] - a[1],\n z = b[2] - a[2]\n return Math.sqrt(x*x + y*y + z*z)\n}\n},{}],160:[function(_glvis_,module,exports){\nmodule.exports = _glvis_('./divide')\n\n},{\"./divide\":161}],161:[function(_glvis_,module,exports){\nmodule.exports = divide;\n\n/**\n * Divides two vec3's\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a the first operand\n * @param {vec3} b the second operand\n * @returns {vec3} out\n */\nfunction divide(out, a, b) {\n out[0] = a[0] / b[0]\n out[1] = a[1] / b[1]\n out[2] = a[2] / b[2]\n return out\n}\n},{}],162:[function(_glvis_,module,exports){\nmodule.exports = dot;\n\n/**\n * Calculates the dot product of two vec3's\n *\n * @param {vec3} a the first operand\n * @param {vec3} b the second operand\n * @returns {Number} dot product of a and b\n */\nfunction dot(a, b) {\n return a[0] * b[0] + a[1] * b[1] + a[2] * b[2]\n}\n},{}],163:[function(_glvis_,module,exports){\nmodule.exports = 0.000001\n\n},{}],164:[function(_glvis_,module,exports){\nmodule.exports = equals\n\nvar EPSILON = _glvis_('./epsilon')\n\n/**\n * Returns whether or not the vectors have approximately the same elements in the same position.\n *\n * @param {vec3} a The first vector.\n * @param {vec3} b The second vector.\n * @returns {Boolean} True if the vectors are equal, false otherwise.\n */\nfunction equals(a, b) {\n var a0 = a[0]\n var a1 = a[1]\n var a2 = a[2]\n var b0 = b[0]\n var b1 = b[1]\n var b2 = b[2]\n return (Math.abs(a0 - b0) <= EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) &&\n Math.abs(a1 - b1) <= EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) &&\n Math.abs(a2 - b2) <= EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)))\n}\n\n},{\"./epsilon\":163}],165:[function(_glvis_,module,exports){\nmodule.exports = exactEquals\n\n/**\n * Returns whether or not the vectors exactly have the same elements in the same position (when compared with ===)\n *\n * @param {vec3} a The first vector.\n * @param {vec3} b The second vector.\n * @returns {Boolean} True if the vectors are equal, false otherwise.\n */\nfunction exactEquals(a, b) {\n return a[0] === b[0] && a[1] === b[1] && a[2] === b[2]\n}\n\n},{}],166:[function(_glvis_,module,exports){\nmodule.exports = floor\n\n/**\n * Math.floor the components of a vec3\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a vector to floor\n * @returns {vec3} out\n */\nfunction floor(out, a) {\n out[0] = Math.floor(a[0])\n out[1] = Math.floor(a[1])\n out[2] = Math.floor(a[2])\n return out\n}\n\n},{}],167:[function(_glvis_,module,exports){\nmodule.exports = forEach;\n\nvar vec = _glvis_('./create')()\n\n/**\n * Perform some operation over an array of vec3s.\n *\n * @param {Array} a the array of vectors to iterate over\n * @param {Number} stride Number of elements between the start of each vec3. If 0 assumes tightly packed\n * @param {Number} offset Number of elements to skip at the beginning of the array\n * @param {Number} count Number of vec3s to iterate over. If 0 iterates over entire array\n * @param {Function} fn Function to call for each vector in the array\n * @param {Object} [arg] additional argument to pass to fn\n * @returns {Array} a\n * @function\n */\nfunction forEach(a, stride, offset, count, fn, arg) {\n var i, l\n if(!stride) {\n stride = 3\n }\n\n if(!offset) {\n offset = 0\n }\n \n if(count) {\n l = Math.min((count * stride) + offset, a.length)\n } else {\n l = a.length\n }\n\n for(i = offset; i < l; i += stride) {\n vec[0] = a[i] \n vec[1] = a[i+1] \n vec[2] = a[i+2]\n fn(vec, vec, arg)\n a[i] = vec[0] \n a[i+1] = vec[1] \n a[i+2] = vec[2]\n }\n \n return a\n}\n},{\"./create\":156}],168:[function(_glvis_,module,exports){\nmodule.exports = fromValues;\n\n/**\n * Creates a new vec3 initialized with the given values\n *\n * @param {Number} x X component\n * @param {Number} y Y component\n * @param {Number} z Z component\n * @returns {vec3} a new 3D vector\n */\nfunction fromValues(x, y, z) {\n var out = new Float32Array(3)\n out[0] = x\n out[1] = y\n out[2] = z\n return out\n}\n},{}],169:[function(_glvis_,module,exports){\nmodule.exports = {\n EPSILON: _glvis_('./epsilon')\n , create: _glvis_('./create')\n , clone: _glvis_('./clone')\n , angle: _glvis_('./angle')\n , fromValues: _glvis_('./fromValues')\n , copy: _glvis_('./copy')\n , set: _glvis_('./set')\n , equals: _glvis_('./equals')\n , exactEquals: _glvis_('./exactEquals')\n , add: _glvis_('./add')\n , subtract: _glvis_('./subtract')\n , sub: _glvis_('./sub')\n , multiply: _glvis_('./multiply')\n , mul: _glvis_('./mul')\n , divide: _glvis_('./divide')\n , div: _glvis_('./div')\n , min: _glvis_('./min')\n , max: _glvis_('./max')\n , floor: _glvis_('./floor')\n , ceil: _glvis_('./ceil')\n , round: _glvis_('./round')\n , scale: _glvis_('./scale')\n , scaleAndAdd: _glvis_('./scaleAndAdd')\n , distance: _glvis_('./distance')\n , dist: _glvis_('./dist')\n , squaredDistance: _glvis_('./squaredDistance')\n , sqrDist: _glvis_('./sqrDist')\n , length: _glvis_('./length')\n , len: _glvis_('./len')\n , squaredLength: _glvis_('./squaredLength')\n , sqrLen: _glvis_('./sqrLen')\n , negate: _glvis_('./negate')\n , inverse: _glvis_('./inverse')\n , normalize: _glvis_('./normalize')\n , dot: _glvis_('./dot')\n , cross: _glvis_('./cross')\n , lerp: _glvis_('./lerp')\n , random: _glvis_('./random')\n , transformMat4: _glvis_('./transformMat4')\n , transformMat3: _glvis_('./transformMat3')\n , transformQuat: _glvis_('./transformQuat')\n , rotateX: _glvis_('./rotateX')\n , rotateY: _glvis_('./rotateY')\n , rotateZ: _glvis_('./rotateZ')\n , forEach: _glvis_('./forEach')\n}\n\n},{\"./add\":151,\"./angle\":152,\"./ceil\":153,\"./clone\":154,\"./copy\":155,\"./create\":156,\"./cross\":157,\"./dist\":158,\"./distance\":159,\"./div\":160,\"./divide\":161,\"./dot\":162,\"./epsilon\":163,\"./equals\":164,\"./exactEquals\":165,\"./floor\":166,\"./forEach\":167,\"./fromValues\":168,\"./inverse\":170,\"./len\":171,\"./length\":172,\"./lerp\":173,\"./max\":174,\"./min\":175,\"./mul\":176,\"./multiply\":177,\"./negate\":178,\"./normalize\":179,\"./random\":180,\"./rotateX\":181,\"./rotateY\":182,\"./rotateZ\":183,\"./round\":184,\"./scale\":185,\"./scaleAndAdd\":186,\"./set\":187,\"./sqrDist\":188,\"./sqrLen\":189,\"./squaredDistance\":190,\"./squaredLength\":191,\"./sub\":192,\"./subtract\":193,\"./transformMat3\":194,\"./transformMat4\":195,\"./transformQuat\":196}],170:[function(_glvis_,module,exports){\nmodule.exports = inverse;\n\n/**\n * Returns the inverse of the components of a vec3\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a vector to invert\n * @returns {vec3} out\n */\nfunction inverse(out, a) {\n out[0] = 1.0 / a[0]\n out[1] = 1.0 / a[1]\n out[2] = 1.0 / a[2]\n return out\n}\n},{}],171:[function(_glvis_,module,exports){\nmodule.exports = _glvis_('./length')\n\n},{\"./length\":172}],172:[function(_glvis_,module,exports){\nmodule.exports = length;\n\n/**\n * Calculates the length of a vec3\n *\n * @param {vec3} a vector to calculate length of\n * @returns {Number} length of a\n */\nfunction length(a) {\n var x = a[0],\n y = a[1],\n z = a[2]\n return Math.sqrt(x*x + y*y + z*z)\n}\n},{}],173:[function(_glvis_,module,exports){\nmodule.exports = lerp;\n\n/**\n * Performs a linear interpolation between two vec3's\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a the first operand\n * @param {vec3} b the second operand\n * @param {Number} t interpolation amount between the two inputs\n * @returns {vec3} out\n */\nfunction lerp(out, a, b, t) {\n var ax = a[0],\n ay = a[1],\n az = a[2]\n out[0] = ax + t * (b[0] - ax)\n out[1] = ay + t * (b[1] - ay)\n out[2] = az + t * (b[2] - az)\n return out\n}\n},{}],174:[function(_glvis_,module,exports){\nmodule.exports = max;\n\n/**\n * Returns the maximum of two vec3's\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a the first operand\n * @param {vec3} b the second operand\n * @returns {vec3} out\n */\nfunction max(out, a, b) {\n out[0] = Math.max(a[0], b[0])\n out[1] = Math.max(a[1], b[1])\n out[2] = Math.max(a[2], b[2])\n return out\n}\n},{}],175:[function(_glvis_,module,exports){\nmodule.exports = min;\n\n/**\n * Returns the minimum of two vec3's\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a the first operand\n * @param {vec3} b the second operand\n * @returns {vec3} out\n */\nfunction min(out, a, b) {\n out[0] = Math.min(a[0], b[0])\n out[1] = Math.min(a[1], b[1])\n out[2] = Math.min(a[2], b[2])\n return out\n}\n},{}],176:[function(_glvis_,module,exports){\nmodule.exports = _glvis_('./multiply')\n\n},{\"./multiply\":177}],177:[function(_glvis_,module,exports){\nmodule.exports = multiply;\n\n/**\n * Multiplies two vec3's\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a the first operand\n * @param {vec3} b the second operand\n * @returns {vec3} out\n */\nfunction multiply(out, a, b) {\n out[0] = a[0] * b[0]\n out[1] = a[1] * b[1]\n out[2] = a[2] * b[2]\n return out\n}\n},{}],178:[function(_glvis_,module,exports){\nmodule.exports = negate;\n\n/**\n * Negates the components of a vec3\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a vector to negate\n * @returns {vec3} out\n */\nfunction negate(out, a) {\n out[0] = -a[0]\n out[1] = -a[1]\n out[2] = -a[2]\n return out\n}\n},{}],179:[function(_glvis_,module,exports){\nmodule.exports = normalize;\n\n/**\n * Normalize a vec3\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a vector to normalize\n * @returns {vec3} out\n */\nfunction normalize(out, a) {\n var x = a[0],\n y = a[1],\n z = a[2]\n var len = x*x + y*y + z*z\n if (len > 0) {\n //TODO: evaluate use of glm_invsqrt here?\n len = 1 / Math.sqrt(len)\n out[0] = a[0] * len\n out[1] = a[1] * len\n out[2] = a[2] * len\n }\n return out\n}\n},{}],180:[function(_glvis_,module,exports){\nmodule.exports = random;\n\n/**\n * Generates a random vector with the given scale\n *\n * @param {vec3} out the receiving vector\n * @param {Number} [scale] Length of the resulting vector. If ommitted, a unit vector will be returned\n * @returns {vec3} out\n */\nfunction random(out, scale) {\n scale = scale || 1.0\n\n var r = Math.random() * 2.0 * Math.PI\n var z = (Math.random() * 2.0) - 1.0\n var zScale = Math.sqrt(1.0-z*z) * scale\n\n out[0] = Math.cos(r) * zScale\n out[1] = Math.sin(r) * zScale\n out[2] = z * scale\n return out\n}\n},{}],181:[function(_glvis_,module,exports){\nmodule.exports = rotateX;\n\n/**\n * Rotate a 3D vector around the x-axis\n * @param {vec3} out The receiving vec3\n * @param {vec3} a The vec3 point to rotate\n * @param {vec3} b The origin of the rotation\n * @param {Number} c The angle of rotation\n * @returns {vec3} out\n */\nfunction rotateX(out, a, b, c){\n var by = b[1]\n var bz = b[2]\n\n // Translate point to the origin\n var py = a[1] - by\n var pz = a[2] - bz\n\n var sc = Math.sin(c)\n var cc = Math.cos(c)\n\n // perform rotation and translate to correct position\n out[0] = a[0]\n out[1] = by + py * cc - pz * sc\n out[2] = bz + py * sc + pz * cc\n\n return out\n}\n\n},{}],182:[function(_glvis_,module,exports){\nmodule.exports = rotateY;\n\n/**\n * Rotate a 3D vector around the y-axis\n * @param {vec3} out The receiving vec3\n * @param {vec3} a The vec3 point to rotate\n * @param {vec3} b The origin of the rotation\n * @param {Number} c The angle of rotation\n * @returns {vec3} out\n */\nfunction rotateY(out, a, b, c){\n var bx = b[0]\n var bz = b[2]\n\n // translate point to the origin\n var px = a[0] - bx\n var pz = a[2] - bz\n \n var sc = Math.sin(c)\n var cc = Math.cos(c)\n \n // perform rotation and translate to correct position\n out[0] = bx + pz * sc + px * cc\n out[1] = a[1]\n out[2] = bz + pz * cc - px * sc\n \n return out\n}\n\n},{}],183:[function(_glvis_,module,exports){\nmodule.exports = rotateZ;\n\n/**\n * Rotate a 3D vector around the z-axis\n * @param {vec3} out The receiving vec3\n * @param {vec3} a The vec3 point to rotate\n * @param {vec3} b The origin of the rotation\n * @param {Number} c The angle of rotation\n * @returns {vec3} out\n */\nfunction rotateZ(out, a, b, c){\n var bx = b[0]\n var by = b[1]\n\n //Translate point to the origin\n var px = a[0] - bx\n var py = a[1] - by\n \n var sc = Math.sin(c)\n var cc = Math.cos(c)\n\n // perform rotation and translate to correct position\n out[0] = bx + px * cc - py * sc\n out[1] = by + px * sc + py * cc\n out[2] = a[2]\n \n return out\n}\n\n},{}],184:[function(_glvis_,module,exports){\nmodule.exports = round\n\n/**\n * Math.round the components of a vec3\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a vector to round\n * @returns {vec3} out\n */\nfunction round(out, a) {\n out[0] = Math.round(a[0])\n out[1] = Math.round(a[1])\n out[2] = Math.round(a[2])\n return out\n}\n\n},{}],185:[function(_glvis_,module,exports){\nmodule.exports = scale;\n\n/**\n * Scales a vec3 by a scalar number\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a the vector to scale\n * @param {Number} b amount to scale the vector by\n * @returns {vec3} out\n */\nfunction scale(out, a, b) {\n out[0] = a[0] * b\n out[1] = a[1] * b\n out[2] = a[2] * b\n return out\n}\n},{}],186:[function(_glvis_,module,exports){\nmodule.exports = scaleAndAdd;\n\n/**\n * Adds two vec3's after scaling the second operand by a scalar value\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a the first operand\n * @param {vec3} b the second operand\n * @param {Number} scale the amount to scale b by before adding\n * @returns {vec3} out\n */\nfunction scaleAndAdd(out, a, b, scale) {\n out[0] = a[0] + (b[0] * scale)\n out[1] = a[1] + (b[1] * scale)\n out[2] = a[2] + (b[2] * scale)\n return out\n}\n},{}],187:[function(_glvis_,module,exports){\nmodule.exports = set;\n\n/**\n * Set the components of a vec3 to the given values\n *\n * @param {vec3} out the receiving vector\n * @param {Number} x X component\n * @param {Number} y Y component\n * @param {Number} z Z component\n * @returns {vec3} out\n */\nfunction set(out, x, y, z) {\n out[0] = x\n out[1] = y\n out[2] = z\n return out\n}\n},{}],188:[function(_glvis_,module,exports){\nmodule.exports = _glvis_('./squaredDistance')\n\n},{\"./squaredDistance\":190}],189:[function(_glvis_,module,exports){\nmodule.exports = _glvis_('./squaredLength')\n\n},{\"./squaredLength\":191}],190:[function(_glvis_,module,exports){\nmodule.exports = squaredDistance;\n\n/**\n * Calculates the squared euclidian distance between two vec3's\n *\n * @param {vec3} a the first operand\n * @param {vec3} b the second operand\n * @returns {Number} squared distance between a and b\n */\nfunction squaredDistance(a, b) {\n var x = b[0] - a[0],\n y = b[1] - a[1],\n z = b[2] - a[2]\n return x*x + y*y + z*z\n}\n},{}],191:[function(_glvis_,module,exports){\nmodule.exports = squaredLength;\n\n/**\n * Calculates the squared length of a vec3\n *\n * @param {vec3} a vector to calculate squared length of\n * @returns {Number} squared length of a\n */\nfunction squaredLength(a) {\n var x = a[0],\n y = a[1],\n z = a[2]\n return x*x + y*y + z*z\n}\n},{}],192:[function(_glvis_,module,exports){\nmodule.exports = _glvis_('./subtract')\n\n},{\"./subtract\":193}],193:[function(_glvis_,module,exports){\nmodule.exports = subtract;\n\n/**\n * Subtracts vector b from vector a\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a the first operand\n * @param {vec3} b the second operand\n * @returns {vec3} out\n */\nfunction subtract(out, a, b) {\n out[0] = a[0] - b[0]\n out[1] = a[1] - b[1]\n out[2] = a[2] - b[2]\n return out\n}\n},{}],194:[function(_glvis_,module,exports){\nmodule.exports = transformMat3;\n\n/**\n * Transforms the vec3 with a mat3.\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a the vector to transform\n * @param {mat4} m the 3x3 matrix to transform with\n * @returns {vec3} out\n */\nfunction transformMat3(out, a, m) {\n var x = a[0], y = a[1], z = a[2]\n out[0] = x * m[0] + y * m[3] + z * m[6]\n out[1] = x * m[1] + y * m[4] + z * m[7]\n out[2] = x * m[2] + y * m[5] + z * m[8]\n return out\n}\n},{}],195:[function(_glvis_,module,exports){\nmodule.exports = transformMat4;\n\n/**\n * Transforms the vec3 with a mat4.\n * 4th vector component is implicitly '1'\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a the vector to transform\n * @param {mat4} m matrix to transform with\n * @returns {vec3} out\n */\nfunction transformMat4(out, a, m) {\n var x = a[0], y = a[1], z = a[2],\n w = m[3] * x + m[7] * y + m[11] * z + m[15]\n w = w || 1.0\n out[0] = (m[0] * x + m[4] * y + m[8] * z + m[12]) / w\n out[1] = (m[1] * x + m[5] * y + m[9] * z + m[13]) / w\n out[2] = (m[2] * x + m[6] * y + m[10] * z + m[14]) / w\n return out\n}\n},{}],196:[function(_glvis_,module,exports){\nmodule.exports = transformQuat;\n\n/**\n * Transforms the vec3 with a quat\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a the vector to transform\n * @param {quat} q quaternion to transform with\n * @returns {vec3} out\n */\nfunction transformQuat(out, a, q) {\n // benchmarks: http://jsperf.com/quaternion-transform-vec3-implementations\n\n var x = a[0], y = a[1], z = a[2],\n qx = q[0], qy = q[1], qz = q[2], qw = q[3],\n\n // calculate quat * vec\n ix = qw * x + qy * z - qz * y,\n iy = qw * y + qz * x - qx * z,\n iz = qw * z + qx * y - qy * x,\n iw = -qx * x - qy * y - qz * z\n\n // calculate result * inverse quat\n out[0] = ix * qw + iw * -qx + iy * -qz - iz * -qy\n out[1] = iy * qw + iw * -qy + iz * -qx - ix * -qz\n out[2] = iz * qw + iw * -qz + ix * -qy - iy * -qx\n return out\n}\n},{}],197:[function(_glvis_,module,exports){\nmodule.exports = add\n\n/**\n * Adds two vec4's\n *\n * @param {vec4} out the receiving vector\n * @param {vec4} a the first operand\n * @param {vec4} b the second operand\n * @returns {vec4} out\n */\nfunction add (out, a, b) {\n out[0] = a[0] + b[0]\n out[1] = a[1] + b[1]\n out[2] = a[2] + b[2]\n out[3] = a[3] + b[3]\n return out\n}\n\n},{}],198:[function(_glvis_,module,exports){\nmodule.exports = clone\n\n/**\n * Creates a new vec4 initialized with values from an existing vector\n *\n * @param {vec4} a vector to clone\n * @returns {vec4} a new 4D vector\n */\nfunction clone (a) {\n var out = new Float32Array(4)\n out[0] = a[0]\n out[1] = a[1]\n out[2] = a[2]\n out[3] = a[3]\n return out\n}\n\n},{}],199:[function(_glvis_,module,exports){\nmodule.exports = copy\n\n/**\n * Copy the values from one vec4 to another\n *\n * @param {vec4} out the receiving vector\n * @param {vec4} a the source vector\n * @returns {vec4} out\n */\nfunction copy (out, a) {\n out[0] = a[0]\n out[1] = a[1]\n out[2] = a[2]\n out[3] = a[3]\n return out\n}\n\n},{}],200:[function(_glvis_,module,exports){\nmodule.exports = create\n\n/**\n * Creates a new, empty vec4\n *\n * @returns {vec4} a new 4D vector\n */\nfunction create () {\n var out = new Float32Array(4)\n out[0] = 0\n out[1] = 0\n out[2] = 0\n out[3] = 0\n return out\n}\n\n},{}],201:[function(_glvis_,module,exports){\nmodule.exports = distance\n\n/**\n * Calculates the euclidian distance between two vec4's\n *\n * @param {vec4} a the first operand\n * @param {vec4} b the second operand\n * @returns {Number} distance between a and b\n */\nfunction distance (a, b) {\n var x = b[0] - a[0],\n y = b[1] - a[1],\n z = b[2] - a[2],\n w = b[3] - a[3]\n return Math.sqrt(x * x + y * y + z * z + w * w)\n}\n\n},{}],202:[function(_glvis_,module,exports){\nmodule.exports = divide\n\n/**\n * Divides two vec4's\n *\n * @param {vec4} out the receiving vector\n * @param {vec4} a the first operand\n * @param {vec4} b the second operand\n * @returns {vec4} out\n */\nfunction divide (out, a, b) {\n out[0] = a[0] / b[0]\n out[1] = a[1] / b[1]\n out[2] = a[2] / b[2]\n out[3] = a[3] / b[3]\n return out\n}\n\n},{}],203:[function(_glvis_,module,exports){\nmodule.exports = dot\n\n/**\n * Calculates the dot product of two vec4's\n *\n * @param {vec4} a the first operand\n * @param {vec4} b the second operand\n * @returns {Number} dot product of a and b\n */\nfunction dot (a, b) {\n return a[0] * b[0] + a[1] * b[1] + a[2] * b[2] + a[3] * b[3]\n}\n\n},{}],204:[function(_glvis_,module,exports){\nmodule.exports = fromValues\n\n/**\n * Creates a new vec4 initialized with the given values\n *\n * @param {Number} x X component\n * @param {Number} y Y component\n * @param {Number} z Z component\n * @param {Number} w W component\n * @returns {vec4} a new 4D vector\n */\nfunction fromValues (x, y, z, w) {\n var out = new Float32Array(4)\n out[0] = x\n out[1] = y\n out[2] = z\n out[3] = w\n return out\n}\n\n},{}],205:[function(_glvis_,module,exports){\nmodule.exports = {\n create: _glvis_('./create'),\n clone: _glvis_('./clone'),\n fromValues: _glvis_('./fromValues'),\n copy: _glvis_('./copy'),\n set: _glvis_('./set'),\n add: _glvis_('./add'),\n subtract: _glvis_('./subtract'),\n multiply: _glvis_('./multiply'),\n divide: _glvis_('./divide'),\n min: _glvis_('./min'),\n max: _glvis_('./max'),\n scale: _glvis_('./scale'),\n scaleAndAdd: _glvis_('./scaleAndAdd'),\n distance: _glvis_('./distance'),\n squaredDistance: _glvis_('./squaredDistance'),\n length: _glvis_('./length'),\n squaredLength: _glvis_('./squaredLength'),\n negate: _glvis_('./negate'),\n inverse: _glvis_('./inverse'),\n normalize: _glvis_('./normalize'),\n dot: _glvis_('./dot'),\n lerp: _glvis_('./lerp'),\n random: _glvis_('./random'),\n transformMat4: _glvis_('./transformMat4'),\n transformQuat: _glvis_('./transformQuat')\n}\n\n},{\"./add\":197,\"./clone\":198,\"./copy\":199,\"./create\":200,\"./distance\":201,\"./divide\":202,\"./dot\":203,\"./fromValues\":204,\"./inverse\":206,\"./length\":207,\"./lerp\":208,\"./max\":209,\"./min\":210,\"./multiply\":211,\"./negate\":212,\"./normalize\":213,\"./random\":214,\"./scale\":215,\"./scaleAndAdd\":216,\"./set\":217,\"./squaredDistance\":218,\"./squaredLength\":219,\"./subtract\":220,\"./transformMat4\":221,\"./transformQuat\":222}],206:[function(_glvis_,module,exports){\nmodule.exports = inverse\n\n/**\n * Returns the inverse of the components of a vec4\n *\n * @param {vec4} out the receiving vector\n * @param {vec4} a vector to invert\n * @returns {vec4} out\n */\nfunction inverse (out, a) {\n out[0] = 1.0 / a[0]\n out[1] = 1.0 / a[1]\n out[2] = 1.0 / a[2]\n out[3] = 1.0 / a[3]\n return out\n}\n\n},{}],207:[function(_glvis_,module,exports){\nmodule.exports = length\n\n/**\n * Calculates the length of a vec4\n *\n * @param {vec4} a vector to calculate length of\n * @returns {Number} length of a\n */\nfunction length (a) {\n var x = a[0],\n y = a[1],\n z = a[2],\n w = a[3]\n return Math.sqrt(x * x + y * y + z * z + w * w)\n}\n\n},{}],208:[function(_glvis_,module,exports){\nmodule.exports = lerp\n\n/**\n * Performs a linear interpolation between two vec4's\n *\n * @param {vec4} out the receiving vector\n * @param {vec4} a the first operand\n * @param {vec4} b the second operand\n * @param {Number} t interpolation amount between the two inputs\n * @returns {vec4} out\n */\nfunction lerp (out, a, b, t) {\n var ax = a[0],\n ay = a[1],\n az = a[2],\n aw = a[3]\n out[0] = ax + t * (b[0] - ax)\n out[1] = ay + t * (b[1] - ay)\n out[2] = az + t * (b[2] - az)\n out[3] = aw + t * (b[3] - aw)\n return out\n}\n\n},{}],209:[function(_glvis_,module,exports){\nmodule.exports = max\n\n/**\n * Returns the maximum of two vec4's\n *\n * @param {vec4} out the receiving vector\n * @param {vec4} a the first operand\n * @param {vec4} b the second operand\n * @returns {vec4} out\n */\nfunction max (out, a, b) {\n out[0] = Math.max(a[0], b[0])\n out[1] = Math.max(a[1], b[1])\n out[2] = Math.max(a[2], b[2])\n out[3] = Math.max(a[3], b[3])\n return out\n}\n\n},{}],210:[function(_glvis_,module,exports){\nmodule.exports = min\n\n/**\n * Returns the minimum of two vec4's\n *\n * @param {vec4} out the receiving vector\n * @param {vec4} a the first operand\n * @param {vec4} b the second operand\n * @returns {vec4} out\n */\nfunction min (out, a, b) {\n out[0] = Math.min(a[0], b[0])\n out[1] = Math.min(a[1], b[1])\n out[2] = Math.min(a[2], b[2])\n out[3] = Math.min(a[3], b[3])\n return out\n}\n\n},{}],211:[function(_glvis_,module,exports){\nmodule.exports = multiply\n\n/**\n * Multiplies two vec4's\n *\n * @param {vec4} out the receiving vector\n * @param {vec4} a the first operand\n * @param {vec4} b the second operand\n * @returns {vec4} out\n */\nfunction multiply (out, a, b) {\n out[0] = a[0] * b[0]\n out[1] = a[1] * b[1]\n out[2] = a[2] * b[2]\n out[3] = a[3] * b[3]\n return out\n}\n\n},{}],212:[function(_glvis_,module,exports){\nmodule.exports = negate\n\n/**\n * Negates the components of a vec4\n *\n * @param {vec4} out the receiving vector\n * @param {vec4} a vector to negate\n * @returns {vec4} out\n */\nfunction negate (out, a) {\n out[0] = -a[0]\n out[1] = -a[1]\n out[2] = -a[2]\n out[3] = -a[3]\n return out\n}\n\n},{}],213:[function(_glvis_,module,exports){\nmodule.exports = normalize\n\n/**\n * Normalize a vec4\n *\n * @param {vec4} out the receiving vector\n * @param {vec4} a vector to normalize\n * @returns {vec4} out\n */\nfunction normalize (out, a) {\n var x = a[0],\n y = a[1],\n z = a[2],\n w = a[3]\n var len = x * x + y * y + z * z + w * w\n if (len > 0) {\n len = 1 / Math.sqrt(len)\n out[0] = x * len\n out[1] = y * len\n out[2] = z * len\n out[3] = w * len\n }\n return out\n}\n\n},{}],214:[function(_glvis_,module,exports){\nvar vecNormalize = _glvis_('./normalize')\nvar vecScale = _glvis_('./scale')\n\nmodule.exports = random\n\n/**\n * Generates a random vector with the given scale\n *\n * @param {vec4} out the receiving vector\n * @param {Number} [scale] Length of the resulting vector. If ommitted, a unit vector will be returned\n * @returns {vec4} out\n */\nfunction random (out, scale) {\n scale = scale || 1.0\n\n // TODO: This is a pretty awful way of doing this. Find something better.\n out[0] = Math.random()\n out[1] = Math.random()\n out[2] = Math.random()\n out[3] = Math.random()\n vecNormalize(out, out)\n vecScale(out, out, scale)\n return out\n}\n\n},{\"./normalize\":213,\"./scale\":215}],215:[function(_glvis_,module,exports){\nmodule.exports = scale\n\n/**\n * Scales a vec4 by a scalar number\n *\n * @param {vec4} out the receiving vector\n * @param {vec4} a the vector to scale\n * @param {Number} b amount to scale the vector by\n * @returns {vec4} out\n */\nfunction scale (out, a, b) {\n out[0] = a[0] * b\n out[1] = a[1] * b\n out[2] = a[2] * b\n out[3] = a[3] * b\n return out\n}\n\n},{}],216:[function(_glvis_,module,exports){\nmodule.exports = scaleAndAdd\n\n/**\n * Adds two vec4's after scaling the second operand by a scalar value\n *\n * @param {vec4} out the receiving vector\n * @param {vec4} a the first operand\n * @param {vec4} b the second operand\n * @param {Number} scale the amount to scale b by before adding\n * @returns {vec4} out\n */\nfunction scaleAndAdd (out, a, b, scale) {\n out[0] = a[0] + (b[0] * scale)\n out[1] = a[1] + (b[1] * scale)\n out[2] = a[2] + (b[2] * scale)\n out[3] = a[3] + (b[3] * scale)\n return out\n}\n\n},{}],217:[function(_glvis_,module,exports){\nmodule.exports = set\n\n/**\n * Set the components of a vec4 to the given values\n *\n * @param {vec4} out the receiving vector\n * @param {Number} x X component\n * @param {Number} y Y component\n * @param {Number} z Z component\n * @param {Number} w W component\n * @returns {vec4} out\n */\nfunction set (out, x, y, z, w) {\n out[0] = x\n out[1] = y\n out[2] = z\n out[3] = w\n return out\n}\n\n},{}],218:[function(_glvis_,module,exports){\nmodule.exports = squaredDistance\n\n/**\n * Calculates the squared euclidian distance between two vec4's\n *\n * @param {vec4} a the first operand\n * @param {vec4} b the second operand\n * @returns {Number} squared distance between a and b\n */\nfunction squaredDistance (a, b) {\n var x = b[0] - a[0],\n y = b[1] - a[1],\n z = b[2] - a[2],\n w = b[3] - a[3]\n return x * x + y * y + z * z + w * w\n}\n\n},{}],219:[function(_glvis_,module,exports){\nmodule.exports = squaredLength\n\n/**\n * Calculates the squared length of a vec4\n *\n * @param {vec4} a vector to calculate squared length of\n * @returns {Number} squared length of a\n */\nfunction squaredLength (a) {\n var x = a[0],\n y = a[1],\n z = a[2],\n w = a[3]\n return x * x + y * y + z * z + w * w\n}\n\n},{}],220:[function(_glvis_,module,exports){\nmodule.exports = subtract\n\n/**\n * Subtracts vector b from vector a\n *\n * @param {vec4} out the receiving vector\n * @param {vec4} a the first operand\n * @param {vec4} b the second operand\n * @returns {vec4} out\n */\nfunction subtract (out, a, b) {\n out[0] = a[0] - b[0]\n out[1] = a[1] - b[1]\n out[2] = a[2] - b[2]\n out[3] = a[3] - b[3]\n return out\n}\n\n},{}],221:[function(_glvis_,module,exports){\nmodule.exports = transformMat4\n\n/**\n * Transforms the vec4 with a mat4.\n *\n * @param {vec4} out the receiving vector\n * @param {vec4} a the vector to transform\n * @param {mat4} m matrix to transform with\n * @returns {vec4} out\n */\nfunction transformMat4 (out, a, m) {\n var x = a[0], y = a[1], z = a[2], w = a[3]\n out[0] = m[0] * x + m[4] * y + m[8] * z + m[12] * w\n out[1] = m[1] * x + m[5] * y + m[9] * z + m[13] * w\n out[2] = m[2] * x + m[6] * y + m[10] * z + m[14] * w\n out[3] = m[3] * x + m[7] * y + m[11] * z + m[15] * w\n return out\n}\n\n},{}],222:[function(_glvis_,module,exports){\nmodule.exports = transformQuat\n\n/**\n * Transforms the vec4 with a quat\n *\n * @param {vec4} out the receiving vector\n * @param {vec4} a the vector to transform\n * @param {quat} q quaternion to transform with\n * @returns {vec4} out\n */\nfunction transformQuat (out, a, q) {\n var x = a[0], y = a[1], z = a[2],\n qx = q[0], qy = q[1], qz = q[2], qw = q[3],\n\n // calculate quat * vec\n ix = qw * x + qy * z - qz * y,\n iy = qw * y + qz * x - qx * z,\n iz = qw * z + qx * y - qy * x,\n iw = -qx * x - qy * y - qz * z\n\n // calculate result * inverse quat\n out[0] = ix * qw + iw * -qx + iy * -qz - iz * -qy\n out[1] = iy * qw + iw * -qy + iz * -qx - ix * -qz\n out[2] = iz * qw + iw * -qz + ix * -qy - iy * -qx\n out[3] = a[3]\n return out\n}\n\n},{}],223:[function(_glvis_,module,exports){\nvar tokenize = _glvis_('glsl-tokenizer')\nvar atob = _glvis_('atob-lite')\n\nmodule.exports = getName\n\nfunction getName(src) {\n var tokens = Array.isArray(src)\n ? src\n : tokenize(src)\n\n for (var i = 0; i < tokens.length; i++) {\n var token = tokens[i]\n if (token.type !== 'preprocessor') continue\n var match = token.data.match(/\\#define\\s+SHADER_NAME(_B64)?\\s+(.+)$/)\n if (!match) continue\n if (!match[2]) continue\n\n var b64 = match[1]\n var name = match[2]\n\n return (b64 ? atob(name) : name).trim()\n }\n}\n\n},{\"atob-lite\":13,\"glsl-tokenizer\":230}],224:[function(_glvis_,module,exports){\nmodule.exports = tokenize\r\n\r\nvar literals100 = _glvis_('./lib/literals')\r\n , operators = _glvis_('./lib/operators')\r\n , builtins100 = _glvis_('./lib/builtins')\r\n , literals300es = _glvis_('./lib/literals-300es')\r\n , builtins300es = _glvis_('./lib/builtins-300es')\r\n\r\nvar NORMAL = 999 // <-- never emitted\r\n , TOKEN = 9999 // <-- never emitted\r\n , BLOCK_COMMENT = 0\r\n , LINE_COMMENT = 1\r\n , PREPROCESSOR = 2\r\n , OPERATOR = 3\r\n , INTEGER = 4\r\n , FLOAT = 5\r\n , IDENT = 6\r\n , BUILTIN = 7\r\n , KEYWORD = 8\r\n , WHITESPACE = 9\r\n , EOF = 10\r\n , HEX = 11\r\n\r\nvar map = [\r\n 'block-comment'\r\n , 'line-comment'\r\n , 'preprocessor'\r\n , 'operator'\r\n , 'integer'\r\n , 'float'\r\n , 'ident'\r\n , 'builtin'\r\n , 'keyword'\r\n , 'whitespace'\r\n , 'eof'\r\n , 'integer'\r\n]\r\n\r\nfunction tokenize(opt) {\r\n var i = 0\r\n , total = 0\r\n , mode = NORMAL\r\n , c\r\n , last\r\n , content = []\r\n , tokens = []\r\n , token_idx = 0\r\n , token_offs = 0\r\n , line = 1\r\n , col = 0\r\n , start = 0\r\n , isnum = false\r\n , isoperator = false\r\n , input = ''\r\n , len\r\n\r\n opt = opt || {}\r\n var allBuiltins = builtins100\r\n var allLiterals = literals100\r\n if (opt.version === '300 es') {\r\n allBuiltins = builtins300es\r\n allLiterals = literals300es\r\n }\r\n\r\n // cache by name\r\n var builtinsDict = {}, literalsDict = {}\r\n for (var i = 0; i < allBuiltins.length; i++) {\r\n builtinsDict[allBuiltins[i]] = true\r\n }\r\n for (var i = 0; i < allLiterals.length; i++) {\r\n literalsDict[allLiterals[i]] = true\r\n }\r\n\r\n return function(data) {\r\n tokens = []\r\n if (data !== null) return write(data)\r\n return end()\r\n }\r\n\r\n function token(data) {\r\n if (data.length) {\r\n tokens.push({\r\n type: map[mode]\r\n , data: data\r\n , position: start\r\n , line: line\r\n , column: col\r\n })\r\n }\r\n }\r\n\r\n function write(chunk) {\r\n i = 0\r\n\r\n if (chunk.toString) chunk = chunk.toString()\r\n\r\n input += chunk.replace(/\\r\\n/g, '\\n')\r\n len = input.length\r\n\r\n\r\n var last\r\n\r\n while(c = input[i], i < len) {\r\n last = i\r\n\r\n switch(mode) {\r\n case BLOCK_COMMENT: i = block_comment(); break\r\n case LINE_COMMENT: i = line_comment(); break\r\n case PREPROCESSOR: i = preprocessor(); break\r\n case OPERATOR: i = operator(); break\r\n case INTEGER: i = integer(); break\r\n case HEX: i = hex(); break\r\n case FLOAT: i = decimal(); break\r\n case TOKEN: i = readtoken(); break\r\n case WHITESPACE: i = whitespace(); break\r\n case NORMAL: i = normal(); break\r\n }\r\n\r\n if(last !== i) {\r\n switch(input[last]) {\r\n case '\\n': col = 0; ++line; break\r\n default: ++col; break\r\n }\r\n }\r\n }\r\n\r\n total += i\r\n input = input.slice(i)\r\n return tokens\r\n }\r\n\r\n function end(chunk) {\r\n if(content.length) {\r\n token(content.join(''))\r\n }\r\n\r\n mode = EOF\r\n token('(eof)')\r\n return tokens\r\n }\r\n\r\n function normal() {\r\n content = content.length ? [] : content\r\n\r\n if(last === '/' && c === '*') {\r\n start = total + i - 1\r\n mode = BLOCK_COMMENT\r\n last = c\r\n return i + 1\r\n }\r\n\r\n if(last === '/' && c === '/') {\r\n start = total + i - 1\r\n mode = LINE_COMMENT\r\n last = c\r\n return i + 1\r\n }\r\n\r\n if(c === '#') {\r\n mode = PREPROCESSOR\r\n start = total + i\r\n return i\r\n }\r\n\r\n if(/\\s/.test(c)) {\r\n mode = WHITESPACE\r\n start = total + i\r\n return i\r\n }\r\n\r\n isnum = /\\d/.test(c)\r\n isoperator = /[^\\w_]/.test(c)\r\n\r\n start = total + i\r\n mode = isnum ? INTEGER : isoperator ? OPERATOR : TOKEN\r\n return i\r\n }\r\n\r\n function whitespace() {\r\n if(/[^\\s]/g.test(c)) {\r\n token(content.join(''))\r\n mode = NORMAL\r\n return i\r\n }\r\n content.push(c)\r\n last = c\r\n return i + 1\r\n }\r\n\r\n function preprocessor() {\r\n if((c === '\\r' || c === '\\n') && last !== '\\\\') {\r\n token(content.join(''))\r\n mode = NORMAL\r\n return i\r\n }\r\n content.push(c)\r\n last = c\r\n return i + 1\r\n }\r\n\r\n function line_comment() {\r\n return preprocessor()\r\n }\r\n\r\n function block_comment() {\r\n if(c === '/' && last === '*') {\r\n content.push(c)\r\n token(content.join(''))\r\n mode = NORMAL\r\n return i + 1\r\n }\r\n\r\n content.push(c)\r\n last = c\r\n return i + 1\r\n }\r\n\r\n function operator() {\r\n if(last === '.' && /\\d/.test(c)) {\r\n mode = FLOAT\r\n return i\r\n }\r\n\r\n if(last === '/' && c === '*') {\r\n mode = BLOCK_COMMENT\r\n return i\r\n }\r\n\r\n if(last === '/' && c === '/') {\r\n mode = LINE_COMMENT\r\n return i\r\n }\r\n\r\n if(c === '.' && content.length) {\r\n while(determine_operator(content));\r\n\r\n mode = FLOAT\r\n return i\r\n }\r\n\r\n if(c === ';' || c === ')' || c === '(') {\r\n if(content.length) while(determine_operator(content));\r\n token(c)\r\n mode = NORMAL\r\n return i + 1\r\n }\r\n\r\n var is_composite_operator = content.length === 2 && c !== '='\r\n if(/[\\w_\\d\\s]/.test(c) || is_composite_operator) {\r\n while(determine_operator(content));\r\n mode = NORMAL\r\n return i\r\n }\r\n\r\n content.push(c)\r\n last = c\r\n return i + 1\r\n }\r\n\r\n function determine_operator(buf) {\r\n var j = 0\r\n , idx\r\n , res\r\n\r\n do {\r\n idx = operators.indexOf(buf.slice(0, buf.length + j).join(''))\r\n res = operators[idx]\r\n\r\n if(idx === -1) {\r\n if(j-- + buf.length > 0) continue\r\n res = buf.slice(0, 1).join('')\r\n }\r\n\r\n token(res)\r\n\r\n start += res.length\r\n content = content.slice(res.length)\r\n return content.length\r\n } while(1)\r\n }\r\n\r\n function hex() {\r\n if(/[^a-fA-F0-9]/.test(c)) {\r\n token(content.join(''))\r\n mode = NORMAL\r\n return i\r\n }\r\n\r\n content.push(c)\r\n last = c\r\n return i + 1\r\n }\r\n\r\n function integer() {\r\n if(c === '.') {\r\n content.push(c)\r\n mode = FLOAT\r\n last = c\r\n return i + 1\r\n }\r\n\r\n if(/[eE]/.test(c)) {\r\n content.push(c)\r\n mode = FLOAT\r\n last = c\r\n return i + 1\r\n }\r\n\r\n if(c === 'x' && content.length === 1 && content[0] === '0') {\r\n mode = HEX\r\n content.push(c)\r\n last = c\r\n return i + 1\r\n }\r\n\r\n if(/[^\\d]/.test(c)) {\r\n token(content.join(''))\r\n mode = NORMAL\r\n return i\r\n }\r\n\r\n content.push(c)\r\n last = c\r\n return i + 1\r\n }\r\n\r\n function decimal() {\r\n if(c === 'f') {\r\n content.push(c)\r\n last = c\r\n i += 1\r\n }\r\n\r\n if(/[eE]/.test(c)) {\r\n content.push(c)\r\n last = c\r\n return i + 1\r\n }\r\n\r\n if ((c === '-' || c === '+') && /[eE]/.test(last)) {\r\n content.push(c)\r\n last = c\r\n return i + 1\r\n }\r\n\r\n if(/[^\\d]/.test(c)) {\r\n token(content.join(''))\r\n mode = NORMAL\r\n return i\r\n }\r\n\r\n content.push(c)\r\n last = c\r\n return i + 1\r\n }\r\n\r\n function readtoken() {\r\n if(/[^\\d\\w_]/.test(c)) {\r\n var contentstr = content.join('')\r\n if(literalsDict[contentstr]) {\r\n mode = KEYWORD\r\n } else if(builtinsDict[contentstr]) {\r\n mode = BUILTIN\r\n } else {\r\n mode = IDENT\r\n }\r\n token(content.join(''))\r\n mode = NORMAL\r\n return i\r\n }\r\n content.push(c)\r\n last = c\r\n return i + 1\r\n }\r\n}\r\n\n},{\"./lib/builtins\":226,\"./lib/builtins-300es\":225,\"./lib/literals\":228,\"./lib/literals-300es\":227,\"./lib/operators\":229}],225:[function(_glvis_,module,exports){\n// 300es builtins/reserved words that were previously valid in v100\r\nvar v100 = _glvis_('./builtins')\r\n\r\n// The texture2D|Cube functions have been removed\r\n// And the gl_ features are updated\r\nv100 = v100.slice().filter(function (b) {\r\n return !/^(gl\\_|texture)/.test(b)\r\n})\r\n\r\nmodule.exports = v100.concat([\r\n // the updated gl_ constants\r\n 'gl_VertexID'\r\n , 'gl_InstanceID'\r\n , 'gl_Position'\r\n , 'gl_PointSize'\r\n , 'gl_FragCoord'\r\n , 'gl_FrontFacing'\r\n , 'gl_FragDepth'\r\n , 'gl_PointCoord'\r\n , 'gl_MaxVertexAttribs'\r\n , 'gl_MaxVertexUniformVectors'\r\n , 'gl_MaxVertexOutputVectors'\r\n , 'gl_MaxFragmentInputVectors'\r\n , 'gl_MaxVertexTextureImageUnits'\r\n , 'gl_MaxCombinedTextureImageUnits'\r\n , 'gl_MaxTextureImageUnits'\r\n , 'gl_MaxFragmentUniformVectors'\r\n , 'gl_MaxDrawBuffers'\r\n , 'gl_MinProgramTexelOffset'\r\n , 'gl_MaxProgramTexelOffset'\r\n , 'gl_DepthRangeParameters'\r\n , 'gl_DepthRange'\r\n\r\n // other builtins\r\n , 'trunc'\r\n , 'round'\r\n , 'roundEven'\r\n , 'isnan'\r\n , 'isinf'\r\n , 'floatBitsToInt'\r\n , 'floatBitsToUint'\r\n , 'intBitsToFloat'\r\n , 'uintBitsToFloat'\r\n , 'packSnorm2x16'\r\n , 'unpackSnorm2x16'\r\n , 'packUnorm2x16'\r\n , 'unpackUnorm2x16'\r\n , 'packHalf2x16'\r\n , 'unpackHalf2x16'\r\n , 'outerProduct'\r\n , 'transpose'\r\n , 'determinant'\r\n , 'inverse'\r\n , 'texture'\r\n , 'textureSize'\r\n , 'textureProj'\r\n , 'textureLod'\r\n , 'textureOffset'\r\n , 'texelFetch'\r\n , 'texelFetchOffset'\r\n , 'textureProjOffset'\r\n , 'textureLodOffset'\r\n , 'textureProjLod'\r\n , 'textureProjLodOffset'\r\n , 'textureGrad'\r\n , 'textureGradOffset'\r\n , 'textureProjGrad'\r\n , 'textureProjGradOffset'\r\n])\r\n\n},{\"./builtins\":226}],226:[function(_glvis_,module,exports){\nmodule.exports = [\r\n // Keep this list sorted\r\n 'abs'\r\n , 'acos'\r\n , 'all'\r\n , 'any'\r\n , 'asin'\r\n , 'atan'\r\n , 'ceil'\r\n , 'clamp'\r\n , 'cos'\r\n , 'cross'\r\n , 'dFdx'\r\n , 'dFdy'\r\n , 'degrees'\r\n , 'distance'\r\n , 'dot'\r\n , 'equal'\r\n , 'exp'\r\n , 'exp2'\r\n , 'faceforward'\r\n , 'floor'\r\n , 'fract'\r\n , 'gl_BackColor'\r\n , 'gl_BackLightModelProduct'\r\n , 'gl_BackLightProduct'\r\n , 'gl_BackMaterial'\r\n , 'gl_BackSecondaryColor'\r\n , 'gl_ClipPlane'\r\n , 'gl_ClipVertex'\r\n , 'gl_Color'\r\n , 'gl_DepthRange'\r\n , 'gl_DepthRangeParameters'\r\n , 'gl_EyePlaneQ'\r\n , 'gl_EyePlaneR'\r\n , 'gl_EyePlaneS'\r\n , 'gl_EyePlaneT'\r\n , 'gl_Fog'\r\n , 'gl_FogCoord'\r\n , 'gl_FogFragCoord'\r\n , 'gl_FogParameters'\r\n , 'gl_FragColor'\r\n , 'gl_FragCoord'\r\n , 'gl_FragData'\r\n , 'gl_FragDepth'\r\n , 'gl_FragDepthEXT'\r\n , 'gl_FrontColor'\r\n , 'gl_FrontFacing'\r\n , 'gl_FrontLightModelProduct'\r\n , 'gl_FrontLightProduct'\r\n , 'gl_FrontMaterial'\r\n , 'gl_FrontSecondaryColor'\r\n , 'gl_LightModel'\r\n , 'gl_LightModelParameters'\r\n , 'gl_LightModelProducts'\r\n , 'gl_LightProducts'\r\n , 'gl_LightSource'\r\n , 'gl_LightSourceParameters'\r\n , 'gl_MaterialParameters'\r\n , 'gl_MaxClipPlanes'\r\n , 'gl_MaxCombinedTextureImageUnits'\r\n , 'gl_MaxDrawBuffers'\r\n , 'gl_MaxFragmentUniformComponents'\r\n , 'gl_MaxLights'\r\n , 'gl_MaxTextureCoords'\r\n , 'gl_MaxTextureImageUnits'\r\n , 'gl_MaxTextureUnits'\r\n , 'gl_MaxVaryingFloats'\r\n , 'gl_MaxVertexAttribs'\r\n , 'gl_MaxVertexTextureImageUnits'\r\n , 'gl_MaxVertexUniformComponents'\r\n , 'gl_ModelViewMatrix'\r\n , 'gl_ModelViewMatrixInverse'\r\n , 'gl_ModelViewMatrixInverseTranspose'\r\n , 'gl_ModelViewMatrixTranspose'\r\n , 'gl_ModelViewProjectionMatrix'\r\n , 'gl_ModelViewProjectionMatrixInverse'\r\n , 'gl_ModelViewProjectionMatrixInverseTranspose'\r\n , 'gl_ModelViewProjectionMatrixTranspose'\r\n , 'gl_MultiTexCoord0'\r\n , 'gl_MultiTexCoord1'\r\n , 'gl_MultiTexCoord2'\r\n , 'gl_MultiTexCoord3'\r\n , 'gl_MultiTexCoord4'\r\n , 'gl_MultiTexCoord5'\r\n , 'gl_MultiTexCoord6'\r\n , 'gl_MultiTexCoord7'\r\n , 'gl_Normal'\r\n , 'gl_NormalMatrix'\r\n , 'gl_NormalScale'\r\n , 'gl_ObjectPlaneQ'\r\n , 'gl_ObjectPlaneR'\r\n , 'gl_ObjectPlaneS'\r\n , 'gl_ObjectPlaneT'\r\n , 'gl_Point'\r\n , 'gl_PointCoord'\r\n , 'gl_PointParameters'\r\n , 'gl_PointSize'\r\n , 'gl_Position'\r\n , 'gl_ProjectionMatrix'\r\n , 'gl_ProjectionMatrixInverse'\r\n , 'gl_ProjectionMatrixInverseTranspose'\r\n , 'gl_ProjectionMatrixTranspose'\r\n , 'gl_SecondaryColor'\r\n , 'gl_TexCoord'\r\n , 'gl_TextureEnvColor'\r\n , 'gl_TextureMatrix'\r\n , 'gl_TextureMatrixInverse'\r\n , 'gl_TextureMatrixInverseTranspose'\r\n , 'gl_TextureMatrixTranspose'\r\n , 'gl_Vertex'\r\n , 'greaterThan'\r\n , 'greaterThanEqual'\r\n , 'inversesqrt'\r\n , 'length'\r\n , 'lessThan'\r\n , 'lessThanEqual'\r\n , 'log'\r\n , 'log2'\r\n , 'matrixCompMult'\r\n , 'max'\r\n , 'min'\r\n , 'mix'\r\n , 'mod'\r\n , 'normalize'\r\n , 'not'\r\n , 'notEqual'\r\n , 'pow'\r\n , 'radians'\r\n , 'reflect'\r\n , 'refract'\r\n , 'sign'\r\n , 'sin'\r\n , 'smoothstep'\r\n , 'sqrt'\r\n , 'step'\r\n , 'tan'\r\n , 'texture2D'\r\n , 'texture2DLod'\r\n , 'texture2DProj'\r\n , 'texture2DProjLod'\r\n , 'textureCube'\r\n , 'textureCubeLod'\r\n , 'texture2DLodEXT'\r\n , 'texture2DProjLodEXT'\r\n , 'textureCubeLodEXT'\r\n , 'texture2DGradEXT'\r\n , 'texture2DProjGradEXT'\r\n , 'textureCubeGradEXT'\r\n]\r\n\n},{}],227:[function(_glvis_,module,exports){\nvar v100 = _glvis_('./literals')\r\n\r\nmodule.exports = v100.slice().concat([\r\n 'layout'\r\n , 'centroid'\r\n , 'smooth'\r\n , 'case'\r\n , 'mat2x2'\r\n , 'mat2x3'\r\n , 'mat2x4'\r\n , 'mat3x2'\r\n , 'mat3x3'\r\n , 'mat3x4'\r\n , 'mat4x2'\r\n , 'mat4x3'\r\n , 'mat4x4'\r\n , 'uvec2'\r\n , 'uvec3'\r\n , 'uvec4'\r\n , 'samplerCubeShadow'\r\n , 'sampler2DArray'\r\n , 'sampler2DArrayShadow'\r\n , 'isampler2D'\r\n , 'isampler3D'\r\n , 'isamplerCube'\r\n , 'isampler2DArray'\r\n , 'usampler2D'\r\n , 'usampler3D'\r\n , 'usamplerCube'\r\n , 'usampler2DArray'\r\n , 'coherent'\r\n , 'restrict'\r\n , 'readonly'\r\n , 'writeonly'\r\n , 'resource'\r\n , 'atomic_uint'\r\n , 'noperspective'\r\n , 'patch'\r\n , 'sample'\r\n , 'subroutine'\r\n , 'common'\r\n , 'partition'\r\n , 'active'\r\n , 'filter'\r\n , 'image1D'\r\n , 'image2D'\r\n , 'image3D'\r\n , 'imageCube'\r\n , 'iimage1D'\r\n , 'iimage2D'\r\n , 'iimage3D'\r\n , 'iimageCube'\r\n , 'uimage1D'\r\n , 'uimage2D'\r\n , 'uimage3D'\r\n , 'uimageCube'\r\n , 'image1DArray'\r\n , 'image2DArray'\r\n , 'iimage1DArray'\r\n , 'iimage2DArray'\r\n , 'uimage1DArray'\r\n , 'uimage2DArray'\r\n , 'image1DShadow'\r\n , 'image2DShadow'\r\n , 'image1DArrayShadow'\r\n , 'image2DArrayShadow'\r\n , 'imageBuffer'\r\n , 'iimageBuffer'\r\n , 'uimageBuffer'\r\n , 'sampler1DArray'\r\n , 'sampler1DArrayShadow'\r\n , 'isampler1D'\r\n , 'isampler1DArray'\r\n , 'usampler1D'\r\n , 'usampler1DArray'\r\n , 'isampler2DRect'\r\n , 'usampler2DRect'\r\n , 'samplerBuffer'\r\n , 'isamplerBuffer'\r\n , 'usamplerBuffer'\r\n , 'sampler2DMS'\r\n , 'isampler2DMS'\r\n , 'usampler2DMS'\r\n , 'sampler2DMSArray'\r\n , 'isampler2DMSArray'\r\n , 'usampler2DMSArray'\r\n])\r\n\n},{\"./literals\":228}],228:[function(_glvis_,module,exports){\nmodule.exports = [\r\n // current\r\n 'precision'\r\n , 'highp'\r\n , 'mediump'\r\n , 'lowp'\r\n , 'attribute'\r\n , 'const'\r\n , 'uniform'\r\n , 'varying'\r\n , 'break'\r\n , 'continue'\r\n , 'do'\r\n , 'for'\r\n , 'while'\r\n , 'if'\r\n , 'else'\r\n , 'in'\r\n , 'out'\r\n , 'inout'\r\n , 'float'\r\n , 'int'\r\n , 'uint'\r\n , 'void'\r\n , 'bool'\r\n , 'true'\r\n , 'false'\r\n , 'discard'\r\n , 'return'\r\n , 'mat2'\r\n , 'mat3'\r\n , 'mat4'\r\n , 'vec2'\r\n , 'vec3'\r\n , 'vec4'\r\n , 'ivec2'\r\n , 'ivec3'\r\n , 'ivec4'\r\n , 'bvec2'\r\n , 'bvec3'\r\n , 'bvec4'\r\n , 'sampler1D'\r\n , 'sampler2D'\r\n , 'sampler3D'\r\n , 'samplerCube'\r\n , 'sampler1DShadow'\r\n , 'sampler2DShadow'\r\n , 'struct'\r\n\r\n // future\r\n , 'asm'\r\n , 'class'\r\n , 'union'\r\n , 'enum'\r\n , 'typedef'\r\n , 'template'\r\n , 'this'\r\n , 'packed'\r\n , 'goto'\r\n , 'switch'\r\n , 'default'\r\n , 'inline'\r\n , 'noinline'\r\n , 'volatile'\r\n , 'public'\r\n , 'static'\r\n , 'extern'\r\n , 'external'\r\n , 'interface'\r\n , 'long'\r\n , 'short'\r\n , 'double'\r\n , 'half'\r\n , 'fixed'\r\n , 'unsigned'\r\n , 'input'\r\n , 'output'\r\n , 'hvec2'\r\n , 'hvec3'\r\n , 'hvec4'\r\n , 'dvec2'\r\n , 'dvec3'\r\n , 'dvec4'\r\n , 'fvec2'\r\n , 'fvec3'\r\n , 'fvec4'\r\n , 'sampler2DRect'\r\n , 'sampler3DRect'\r\n , 'sampler2DRectShadow'\r\n , 'sizeof'\r\n , 'cast'\r\n , 'namespace'\r\n , 'using'\r\n]\r\n\n},{}],229:[function(_glvis_,module,exports){\nmodule.exports = [\r\n '<<='\r\n , '>>='\r\n , '++'\r\n , '--'\r\n , '<<'\r\n , '>>'\r\n , '<='\r\n , '>='\r\n , '=='\r\n , '!='\r\n , '&&'\r\n , '||'\r\n , '+='\r\n , '-='\r\n , '*='\r\n , '/='\r\n , '%='\r\n , '&='\r\n , '^^'\r\n , '^='\r\n , '|='\r\n , '('\r\n , ')'\r\n , '['\r\n , ']'\r\n , '.'\r\n , '!'\r\n , '~'\r\n , '*'\r\n , '/'\r\n , '%'\r\n , '+'\r\n , '-'\r\n , '<'\r\n , '>'\r\n , '&'\r\n , '^'\r\n , '|'\r\n , '?'\r\n , ':'\r\n , '='\r\n , ','\r\n , ';'\r\n , '{'\r\n , '}'\r\n]\r\n\n},{}],230:[function(_glvis_,module,exports){\nvar tokenize = _glvis_('./index')\r\n\r\nmodule.exports = tokenizeString\r\n\r\nfunction tokenizeString(str, opt) {\r\n var generator = tokenize(opt)\r\n var tokens = []\r\n\r\n tokens = tokens.concat(generator(str))\r\n tokens = tokens.concat(generator(null))\r\n\r\n return tokens\r\n}\r\n\n},{\"./index\":224}],231:[function(_glvis_,module,exports){\nmodule.exports = function(strings) {\n if (typeof strings === 'string') strings = [strings]\n var exprs = [].slice.call(arguments,1)\n var parts = []\n for (var i = 0; i < strings.length-1; i++) {\n parts.push(strings[i], exprs[i] || '')\n }\n parts.push(strings[i])\n return parts.join('')\n}\n\n},{}],232:[function(_glvis_,module,exports){\n'use strict'\r\n\r\nvar isBrowser = _glvis_('is-browser')\r\n\r\nfunction detect() {\r\n\tvar supported = false\r\n\r\n\ttry {\r\n\t\tvar opts = Object.defineProperty({}, 'passive', {\r\n\t\t\tget: function() {\r\n\t\t\t\tsupported = true\r\n\t\t\t}\r\n\t\t})\r\n\r\n\t\twindow.addEventListener('test', null, opts)\r\n\t\twindow.removeEventListener('test', null, opts)\r\n\t} catch(e) {\r\n\t\tsupported = false\r\n\t}\r\n\r\n\treturn supported\r\n}\r\n\r\nmodule.exports = isBrowser && detect()\r\n\n},{\"is-browser\":236}],233:[function(_glvis_,module,exports){\n\"use strict\"\n\n//High level idea:\n// 1. Use Clarkson's incremental construction to find convex hull\n// 2. Point location in triangulation by jump and walk\n\nmodule.exports = incrementalConvexHull\n\nvar orient = _glvis_(\"robust-orientation\")\nvar compareCell = _glvis_(\"simplicial-complex\").compareCells\n\nfunction Simplex(vertices, adjacent, boundary) {\n this.vertices = vertices\n this.adjacent = adjacent\n this.boundary = boundary\n this.lastVisited = -1\n}\n\nSimplex.prototype.flip = function() {\n var t = this.vertices[0]\n this.vertices[0] = this.vertices[1]\n this.vertices[1] = t\n var u = this.adjacent[0]\n this.adjacent[0] = this.adjacent[1]\n this.adjacent[1] = u\n}\n\nfunction GlueFacet(vertices, cell, index) {\n this.vertices = vertices\n this.cell = cell\n this.index = index\n}\n\nfunction compareGlue(a, b) {\n return compareCell(a.vertices, b.vertices)\n}\n\nfunction wrapper(test) {\n return function() {\n var tuple = this.tuple\n return test.apply(this, tuple)\n }\n}\n\nfunction bakeOrient(d) {\n var test = orient[d+1]\n if(!test) {\n test = orient\n }\n return wrapper(test)\n}\n\nvar BAKED = []\n\nfunction Triangulation(dimension, vertices, simplices) {\n this.dimension = dimension\n this.vertices = vertices\n this.simplices = simplices\n this.interior = simplices.filter(function(c) {\n return !c.boundary\n })\n\n this.tuple = new Array(dimension+1)\n for(var i=0; i<=dimension; ++i) {\n this.tuple[i] = this.vertices[i]\n }\n\n var o = BAKED[dimension]\n if(!o) {\n o = BAKED[dimension] = bakeOrient(dimension)\n }\n this.orient = o\n}\n\nvar proto = Triangulation.prototype\n\n//Degenerate situation where we are on boundary, but coplanar to face\nproto.handleBoundaryDegeneracy = function(cell, point) {\n var d = this.dimension\n var n = this.vertices.length - 1\n var tuple = this.tuple\n var verts = this.vertices\n\n //Dumb solution: Just do dfs from boundary cell until we find any peak, or terminate\n var toVisit = [ cell ]\n cell.lastVisited = -n\n while(toVisit.length > 0) {\n cell = toVisit.pop()\n var cellAdj = cell.adjacent\n for(var i=0; i<=d; ++i) {\n var neighbor = cellAdj[i]\n if(!neighbor.boundary || neighbor.lastVisited <= -n) {\n continue\n }\n var nv = neighbor.vertices\n for(var j=0; j<=d; ++j) {\n var vv = nv[j]\n if(vv < 0) {\n tuple[j] = point\n } else {\n tuple[j] = verts[vv]\n }\n }\n var o = this.orient()\n if(o > 0) {\n return neighbor\n }\n neighbor.lastVisited = -n\n if(o === 0) {\n toVisit.push(neighbor)\n }\n }\n }\n return null\n}\n\nproto.walk = function(point, random) {\n //Alias local properties\n var n = this.vertices.length - 1\n var d = this.dimension\n var verts = this.vertices\n var tuple = this.tuple\n\n //Compute initial jump cell\n var initIndex = random ? (this.interior.length * Math.random())|0 : (this.interior.length-1)\n var cell = this.interior[ initIndex ]\n\n //Start walking\nouterLoop:\n while(!cell.boundary) {\n var cellVerts = cell.vertices\n var cellAdj = cell.adjacent\n\n for(var i=0; i<=d; ++i) {\n tuple[i] = verts[cellVerts[i]]\n }\n cell.lastVisited = n\n\n //Find farthest adjacent cell\n for(var i=0; i<=d; ++i) {\n var neighbor = cellAdj[i]\n if(neighbor.lastVisited >= n) {\n continue\n }\n var prev = tuple[i]\n tuple[i] = point\n var o = this.orient()\n tuple[i] = prev\n if(o < 0) {\n cell = neighbor\n continue outerLoop\n } else {\n if(!neighbor.boundary) {\n neighbor.lastVisited = n\n } else {\n neighbor.lastVisited = -n\n }\n }\n }\n return\n }\n\n return cell\n}\n\nproto.addPeaks = function(point, cell) {\n var n = this.vertices.length - 1\n var d = this.dimension\n var verts = this.vertices\n var tuple = this.tuple\n var interior = this.interior\n var simplices = this.simplices\n\n //Walking finished at boundary, time to add peaks\n var tovisit = [ cell ]\n\n //Stretch initial boundary cell into a peak\n cell.lastVisited = n\n cell.vertices[cell.vertices.indexOf(-1)] = n\n cell.boundary = false\n interior.push(cell)\n\n //Record a list of all new boundaries created by added peaks so we can glue them together when we are all done\n var glueFacets = []\n\n //Do a traversal of the boundary walking outward from starting peak\n while(tovisit.length > 0) {\n //Pop off peak and walk over adjacent cells\n var cell = tovisit.pop()\n var cellVerts = cell.vertices\n var cellAdj = cell.adjacent\n var indexOfN = cellVerts.indexOf(n)\n if(indexOfN < 0) {\n continue\n }\n\n for(var i=0; i<=d; ++i) {\n if(i === indexOfN) {\n continue\n }\n\n //For each boundary neighbor of the cell\n var neighbor = cellAdj[i]\n if(!neighbor.boundary || neighbor.lastVisited >= n) {\n continue\n }\n\n var nv = neighbor.vertices\n\n //Test if neighbor is a peak\n if(neighbor.lastVisited !== -n) {\n //Compute orientation of p relative to each boundary peak\n var indexOfNeg1 = 0\n for(var j=0; j<=d; ++j) {\n if(nv[j] < 0) {\n indexOfNeg1 = j\n tuple[j] = point\n } else {\n tuple[j] = verts[nv[j]]\n }\n }\n var o = this.orient()\n\n //Test if neighbor cell is also a peak\n if(o > 0) {\n nv[indexOfNeg1] = n\n neighbor.boundary = false\n interior.push(neighbor)\n tovisit.push(neighbor)\n neighbor.lastVisited = n\n continue\n } else {\n neighbor.lastVisited = -n\n }\n }\n\n var na = neighbor.adjacent\n\n //Otherwise, replace neighbor with new face\n var vverts = cellVerts.slice()\n var vadj = cellAdj.slice()\n var ncell = new Simplex(vverts, vadj, true)\n simplices.push(ncell)\n\n //Connect to neighbor\n var opposite = na.indexOf(cell)\n if(opposite < 0) {\n continue\n }\n na[opposite] = ncell\n vadj[indexOfN] = neighbor\n\n //Connect to cell\n vverts[i] = -1\n vadj[i] = cell\n cellAdj[i] = ncell\n\n //Flip facet\n ncell.flip()\n\n //Add to glue list\n for(var j=0; j<=d; ++j) {\n var uu = vverts[j]\n if(uu < 0 || uu === n) {\n continue\n }\n var nface = new Array(d-1)\n var nptr = 0\n for(var k=0; k<=d; ++k) {\n var vv = vverts[k]\n if(vv < 0 || k === j) {\n continue\n }\n nface[nptr++] = vv\n }\n glueFacets.push(new GlueFacet(nface, ncell, j))\n }\n }\n }\n\n //Glue boundary facets together\n glueFacets.sort(compareGlue)\n\n for(var i=0; i+1= 0) {\n bcell[ptr++] = cv[j]\n } else {\n parity = j&1\n }\n }\n if(parity === (d&1)) {\n var t = bcell[0]\n bcell[0] = bcell[1]\n bcell[1] = t\n }\n boundary.push(bcell)\n }\n }\n return boundary\n}\n\nfunction incrementalConvexHull(points, randomSearch) {\n var n = points.length\n if(n === 0) {\n throw new Error(\"Must have at least d+1 points\")\n }\n var d = points[0].length\n if(n <= d) {\n throw new Error(\"Must input at least d+1 points\")\n }\n\n //FIXME: This could be degenerate, but need to select d+1 non-coplanar points to bootstrap process\n var initialSimplex = points.slice(0, d+1)\n\n //Make sure initial simplex is positively oriented\n var o = orient.apply(void 0, initialSimplex)\n if(o === 0) {\n throw new Error(\"Input not in general position\")\n }\n var initialCoords = new Array(d+1)\n for(var i=0; i<=d; ++i) {\n initialCoords[i] = i\n }\n if(o < 0) {\n initialCoords[0] = 1\n initialCoords[1] = 0\n }\n\n //Create initial topological index, glue pointers together (kind of messy)\n var initialCell = new Simplex(initialCoords, new Array(d+1), false)\n var boundary = initialCell.adjacent\n var list = new Array(d+2)\n for(var i=0; i<=d; ++i) {\n var verts = initialCoords.slice()\n for(var j=0; j<=d; ++j) {\n if(j === i) {\n verts[j] = -1\n }\n }\n var t = verts[0]\n verts[0] = verts[1]\n verts[1] = t\n var cell = new Simplex(verts, new Array(d+1), true)\n boundary[i] = cell\n list[i] = cell\n }\n list[d+1] = initialCell\n for(var i=0; i<=d; ++i) {\n var verts = boundary[i].vertices\n var adj = boundary[i].adjacent\n for(var j=0; j<=d; ++j) {\n var v = verts[j]\n if(v < 0) {\n adj[j] = initialCell\n continue\n }\n for(var k=0; k<=d; ++k) {\n if(boundary[k].vertices.indexOf(v) < 0) {\n adj[j] = boundary[k]\n }\n }\n }\n }\n\n //Initialize triangles\n var triangles = new Triangulation(d, initialSimplex, list)\n\n //Insert remaining points\n var useRandom = !!randomSearch\n for(var i=d+1; i 3*(weight+1)) {\n rebuildWithInterval(this, interval)\n } else {\n this.left.insert(interval)\n }\n } else {\n this.left = createIntervalTree([interval])\n }\n } else if(interval[0] > this.mid) {\n if(this.right) {\n if(4*(this.right.count+1) > 3*(weight+1)) {\n rebuildWithInterval(this, interval)\n } else {\n this.right.insert(interval)\n }\n } else {\n this.right = createIntervalTree([interval])\n }\n } else {\n var l = bounds.ge(this.leftPoints, interval, compareBegin)\n var r = bounds.ge(this.rightPoints, interval, compareEnd)\n this.leftPoints.splice(l, 0, interval)\n this.rightPoints.splice(r, 0, interval)\n }\n}\n\nproto.remove = function(interval) {\n var weight = this.count - this.leftPoints\n if(interval[1] < this.mid) {\n if(!this.left) {\n return NOT_FOUND\n }\n var rw = this.right ? this.right.count : 0\n if(4 * rw > 3 * (weight-1)) {\n return rebuildWithoutInterval(this, interval)\n }\n var r = this.left.remove(interval)\n if(r === EMPTY) {\n this.left = null\n this.count -= 1\n return SUCCESS\n } else if(r === SUCCESS) {\n this.count -= 1\n }\n return r\n } else if(interval[0] > this.mid) {\n if(!this.right) {\n return NOT_FOUND\n }\n var lw = this.left ? this.left.count : 0\n if(4 * lw > 3 * (weight-1)) {\n return rebuildWithoutInterval(this, interval)\n }\n var r = this.right.remove(interval)\n if(r === EMPTY) {\n this.right = null\n this.count -= 1\n return SUCCESS\n } else if(r === SUCCESS) {\n this.count -= 1\n }\n return r\n } else {\n if(this.count === 1) {\n if(this.leftPoints[0] === interval) {\n return EMPTY\n } else {\n return NOT_FOUND\n }\n }\n if(this.leftPoints.length === 1 && this.leftPoints[0] === interval) {\n if(this.left && this.right) {\n var p = this\n var n = this.left\n while(n.right) {\n p = n\n n = n.right\n }\n if(p === this) {\n n.right = this.right\n } else {\n var l = this.left\n var r = this.right\n p.count -= n.count\n p.right = n.left\n n.left = l\n n.right = r\n }\n copy(this, n)\n this.count = (this.left?this.left.count:0) + (this.right?this.right.count:0) + this.leftPoints.length\n } else if(this.left) {\n copy(this, this.left)\n } else {\n copy(this, this.right)\n }\n return SUCCESS\n }\n for(var l = bounds.ge(this.leftPoints, interval, compareBegin); l=0 && arr[i][1] >= lo; --i) {\n var r = cb(arr[i])\n if(r) { return r }\n }\n}\n\nfunction reportRange(arr, cb) {\n for(var i=0; i this.mid) {\n if(this.right) {\n var r = this.right.queryPoint(x, cb)\n if(r) { return r }\n }\n return reportRightRange(this.rightPoints, x, cb)\n } else {\n return reportRange(this.leftPoints, cb)\n }\n}\n\nproto.queryInterval = function(lo, hi, cb) {\n if(lo < this.mid && this.left) {\n var r = this.left.queryInterval(lo, hi, cb)\n if(r) { return r }\n }\n if(hi > this.mid && this.right) {\n var r = this.right.queryInterval(lo, hi, cb)\n if(r) { return r }\n }\n if(hi < this.mid) {\n return reportLeftRange(this.leftPoints, hi, cb)\n } else if(lo > this.mid) {\n return reportRightRange(this.rightPoints, lo, cb)\n } else {\n return reportRange(this.leftPoints, cb)\n }\n}\n\nfunction compareNumbers(a, b) {\n return a - b\n}\n\nfunction compareBegin(a, b) {\n var d = a[0] - b[0]\n if(d) { return d }\n return a[1] - b[1]\n}\n\nfunction compareEnd(a, b) {\n var d = a[1] - b[1]\n if(d) { return d }\n return a[0] - b[0]\n}\n\nfunction createIntervalTree(intervals) {\n if(intervals.length === 0) {\n return null\n }\n var pts = []\n for(var i=0; i>1]\n\n var leftIntervals = []\n var rightIntervals = []\n var centerIntervals = []\n for(var i=0; i\n * @license MIT\n */\n\n// The _isBuffer check is for Safari 5-7 support, because it's missing\n// Object.prototype.constructor. Remove this eventually\nmodule.exports = function (obj) {\n return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer)\n}\n\nfunction isBuffer (obj) {\n return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)\n}\n\n// For Node v0.10 support. Remove this eventually.\nfunction isSlowBuffer (obj) {\n return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0))\n}\n\n},{}],238:[function(_glvis_,module,exports){\n'use strict'\r\n\r\nmodule.exports = isMobile\r\nmodule.exports.isMobile = isMobile\r\nmodule.exports.default = isMobile\r\n\r\nvar mobileRE = /(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series[46]0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i\r\n\r\nvar tabletRE = /(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series[46]0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i\r\n\r\nfunction isMobile (opts) {\r\n if (!opts) opts = {}\r\n var ua = opts.ua\r\n if (!ua && typeof navigator !== 'undefined') ua = navigator.userAgent\r\n if (ua && ua.headers && typeof ua.headers['user-agent'] === 'string') {\r\n ua = ua.headers['user-agent']\r\n }\r\n if (typeof ua !== 'string') return false\r\n\r\n var result = opts.tablet ? tabletRE.test(ua) : mobileRE.test(ua)\r\n\r\n if (\r\n !result &&\r\n opts.tablet &&\r\n opts.featureDetect &&\r\n navigator &&\r\n navigator.maxTouchPoints > 1 &&\r\n ua.indexOf('Macintosh') !== -1 &&\r\n ua.indexOf('Safari') !== -1\r\n ) {\r\n result = true\r\n }\r\n\r\n return result\r\n}\r\n\n},{}],239:[function(_glvis_,module,exports){\n'use strict';\r\n\r\n/**\r\n * Is this string all whitespace?\r\n * This solution kind of makes my brain hurt, but it's significantly faster\r\n * than !str.trim() or any other solution I could find.\r\n *\r\n * whitespace codes from: http://en.wikipedia.org/wiki/Whitespace_character\r\n * and verified with:\r\n *\r\n * for(var i = 0; i < 65536; i++) {\r\n * var s = String.fromCharCode(i);\r\n * if(+s===0 && !s.trim()) console.log(i, s);\r\n * }\r\n *\r\n * which counts a couple of these as *not* whitespace, but finds nothing else\r\n * that *is* whitespace. Note that charCodeAt stops at 16 bits, but it appears\r\n * that there are no whitespace characters above this, and code points above\r\n * this do not map onto white space characters.\r\n */\r\n\r\nmodule.exports = function(str){\r\n var l = str.length,\r\n a;\r\n for(var i = 0; i < l; i++) {\r\n a = str.charCodeAt(i);\r\n if((a < 9 || a > 13) && (a !== 32) && (a !== 133) && (a !== 160) &&\r\n (a !== 5760) && (a !== 6158) && (a < 8192 || a > 8205) &&\r\n (a !== 8232) && (a !== 8233) && (a !== 8239) && (a !== 8287) &&\r\n (a !== 8288) && (a !== 12288) && (a !== 65279)) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n}\r\n\n},{}],240:[function(_glvis_,module,exports){\nfunction lerp(v0, v1, t) {\n return v0*(1-t)+v1*t\n}\nmodule.exports = lerp\n},{}],241:[function(_glvis_,module,exports){\n/*jshint unused:true*/\n/*\nInput: matrix ; a 4x4 matrix\nOutput: translation ; a 3 component vector\n scale ; a 3 component vector\n skew ; skew factors XY,XZ,YZ represented as a 3 component vector\n perspective ; a 4 component vector\n quaternion ; a 4 component vector\nReturns false if the matrix cannot be decomposed, true if it can\n\n\nReferences:\nhttps://github.com/kamicane/matrix3d/blob/master/lib/Matrix3d.js\nhttps://github.com/ChromiumWebApps/chromium/blob/master/ui/gfx/transform_util.cc\nhttp://www.w3.org/TR/css3-transforms/#decomposing-a-3d-matrix\n*/\n\nvar normalize = _glvis_('./normalize')\n\nvar create = _glvis_('gl-mat4/create')\nvar clone = _glvis_('gl-mat4/clone')\nvar determinant = _glvis_('gl-mat4/determinant')\nvar invert = _glvis_('gl-mat4/invert')\nvar transpose = _glvis_('gl-mat4/transpose')\nvar vec3 = {\n length: _glvis_('gl-vec3/length'),\n normalize: _glvis_('gl-vec3/normalize'),\n dot: _glvis_('gl-vec3/dot'),\n cross: _glvis_('gl-vec3/cross')\n}\n\nvar tmp = create()\nvar perspectiveMatrix = create()\nvar tmpVec4 = [0, 0, 0, 0]\nvar row = [ [0,0,0], [0,0,0], [0,0,0] ]\nvar pdum3 = [0,0,0]\n\nmodule.exports = function decomposeMat4(matrix, translation, scale, skew, perspective, quaternion) {\n if (!translation) translation = [0,0,0]\n if (!scale) scale = [0,0,0]\n if (!skew) skew = [0,0,0]\n if (!perspective) perspective = [0,0,0,1]\n if (!quaternion) quaternion = [0,0,0,1]\n\n //normalize, if not possible then bail out early\n if (!normalize(tmp, matrix))\n return false\n\n // perspectiveMatrix is used to solve for perspective, but it also provides\n // an easy way to test for singularity of the upper 3x3 component.\n clone(perspectiveMatrix, tmp)\n\n perspectiveMatrix[3] = 0\n perspectiveMatrix[7] = 0\n perspectiveMatrix[11] = 0\n perspectiveMatrix[15] = 1\n\n // If the perspectiveMatrix is not invertible, we are also unable to\n // decompose, so we'll bail early. Constant taken from SkMatrix44::invert.\n if (Math.abs(determinant(perspectiveMatrix) < 1e-8))\n return false\n\n var a03 = tmp[3], a13 = tmp[7], a23 = tmp[11],\n a30 = tmp[12], a31 = tmp[13], a32 = tmp[14], a33 = tmp[15]\n\n // First, isolate perspective.\n if (a03 !== 0 || a13 !== 0 || a23 !== 0) {\n tmpVec4[0] = a03\n tmpVec4[1] = a13\n tmpVec4[2] = a23\n tmpVec4[3] = a33\n\n // Solve the equation by inverting perspectiveMatrix and multiplying\n // rightHandSide by the inverse.\n // resuing the perspectiveMatrix here since it's no longer needed\n var ret = invert(perspectiveMatrix, perspectiveMatrix)\n if (!ret) return false\n transpose(perspectiveMatrix, perspectiveMatrix)\n\n //multiply by transposed inverse perspective matrix, into perspective vec4\n vec4multMat4(perspective, tmpVec4, perspectiveMatrix)\n } else { \n //no perspective\n perspective[0] = perspective[1] = perspective[2] = 0\n perspective[3] = 1\n }\n\n // Next take care of translation\n translation[0] = a30\n translation[1] = a31\n translation[2] = a32\n\n // Now get scale and shear. 'row' is a 3 element array of 3 component vectors\n mat3from4(row, tmp)\n\n // Compute X scale factor and normalize first row.\n scale[0] = vec3.length(row[0])\n vec3.normalize(row[0], row[0])\n\n // Compute XY shear factor and make 2nd row orthogonal to 1st.\n skew[0] = vec3.dot(row[0], row[1])\n combine(row[1], row[1], row[0], 1.0, -skew[0])\n\n // Now, compute Y scale and normalize 2nd row.\n scale[1] = vec3.length(row[1])\n vec3.normalize(row[1], row[1])\n skew[0] /= scale[1]\n\n // Compute XZ and YZ shears, orthogonalize 3rd row\n skew[1] = vec3.dot(row[0], row[2])\n combine(row[2], row[2], row[0], 1.0, -skew[1])\n skew[2] = vec3.dot(row[1], row[2])\n combine(row[2], row[2], row[1], 1.0, -skew[2])\n\n // Next, get Z scale and normalize 3rd row.\n scale[2] = vec3.length(row[2])\n vec3.normalize(row[2], row[2])\n skew[1] /= scale[2]\n skew[2] /= scale[2]\n\n\n // At this point, the matrix (in rows) is orthonormal.\n // Check for a coordinate system flip. If the determinant\n // is -1, then negate the matrix and the scaling factors.\n vec3.cross(pdum3, row[1], row[2])\n if (vec3.dot(row[0], pdum3) < 0) {\n for (var i = 0; i < 3; i++) {\n scale[i] *= -1;\n row[i][0] *= -1\n row[i][1] *= -1\n row[i][2] *= -1\n }\n }\n\n // Now, get the rotations out\n quaternion[0] = 0.5 * Math.sqrt(Math.max(1 + row[0][0] - row[1][1] - row[2][2], 0))\n quaternion[1] = 0.5 * Math.sqrt(Math.max(1 - row[0][0] + row[1][1] - row[2][2], 0))\n quaternion[2] = 0.5 * Math.sqrt(Math.max(1 - row[0][0] - row[1][1] + row[2][2], 0))\n quaternion[3] = 0.5 * Math.sqrt(Math.max(1 + row[0][0] + row[1][1] + row[2][2], 0))\n\n if (row[2][1] > row[1][2])\n quaternion[0] = -quaternion[0]\n if (row[0][2] > row[2][0])\n quaternion[1] = -quaternion[1]\n if (row[1][0] > row[0][1])\n quaternion[2] = -quaternion[2]\n return true\n}\n\n//will be replaced by gl-vec4 eventually\nfunction vec4multMat4(out, a, m) {\n var x = a[0], y = a[1], z = a[2], w = a[3];\n out[0] = m[0] * x + m[4] * y + m[8] * z + m[12] * w;\n out[1] = m[1] * x + m[5] * y + m[9] * z + m[13] * w;\n out[2] = m[2] * x + m[6] * y + m[10] * z + m[14] * w;\n out[3] = m[3] * x + m[7] * y + m[11] * z + m[15] * w;\n return out;\n}\n\n//gets upper-left of a 4x4 matrix into a 3x3 of vectors\nfunction mat3from4(out, mat4x4) {\n out[0][0] = mat4x4[0]\n out[0][1] = mat4x4[1]\n out[0][2] = mat4x4[2]\n \n out[1][0] = mat4x4[4]\n out[1][1] = mat4x4[5]\n out[1][2] = mat4x4[6]\n\n out[2][0] = mat4x4[8]\n out[2][1] = mat4x4[9]\n out[2][2] = mat4x4[10]\n}\n\nfunction combine(out, a, b, scale1, scale2) {\n out[0] = a[0] * scale1 + b[0] * scale2\n out[1] = a[1] * scale1 + b[1] * scale2\n out[2] = a[2] * scale1 + b[2] * scale2\n}\n},{\"./normalize\":242,\"gl-mat4/clone\":92,\"gl-mat4/create\":93,\"gl-mat4/determinant\":94,\"gl-mat4/invert\":98,\"gl-mat4/transpose\":109,\"gl-vec3/cross\":157,\"gl-vec3/dot\":162,\"gl-vec3/length\":172,\"gl-vec3/normalize\":179}],242:[function(_glvis_,module,exports){\nmodule.exports = function normalize(out, mat) {\n var m44 = mat[15]\n // Cannot normalize.\n if (m44 === 0) \n return false\n var scale = 1 / m44\n for (var i=0; i<16; i++)\n out[i] = mat[i] * scale\n return true\n}\n},{}],243:[function(_glvis_,module,exports){\nvar lerp = _glvis_('gl-vec3/lerp')\n\nvar recompose = _glvis_('mat4-recompose')\nvar decompose = _glvis_('mat4-decompose')\nvar determinant = _glvis_('gl-mat4/determinant')\nvar slerp = _glvis_('quat-slerp')\n\nvar state0 = state()\nvar state1 = state()\nvar tmp = state()\n\nmodule.exports = interpolate\nfunction interpolate(out, start, end, alpha) {\n if (determinant(start) === 0 || determinant(end) === 0)\n return false\n\n //decompose the start and end matrices into individual components\n var r0 = decompose(start, state0.translate, state0.scale, state0.skew, state0.perspective, state0.quaternion)\n var r1 = decompose(end, state1.translate, state1.scale, state1.skew, state1.perspective, state1.quaternion)\n if (!r0 || !r1)\n return false \n\n\n //now lerp/slerp the start and end components into a temporary lerp(tmptranslate, state0.translate, state1.translate, alpha)\n lerp(tmp.translate, state0.translate, state1.translate, alpha)\n lerp(tmp.skew, state0.skew, state1.skew, alpha)\n lerp(tmp.scale, state0.scale, state1.scale, alpha)\n lerp(tmp.perspective, state0.perspective, state1.perspective, alpha)\n slerp(tmp.quaternion, state0.quaternion, state1.quaternion, alpha)\n\n //and recompose into our 'out' matrix\n recompose(out, tmp.translate, tmp.scale, tmp.skew, tmp.perspective, tmp.quaternion)\n return true\n}\n\nfunction state() {\n return {\n translate: vec3(),\n scale: vec3(1),\n skew: vec3(),\n perspective: vec4(),\n quaternion: vec4()\n }\n}\n\nfunction vec3(n) {\n return [n||0,n||0,n||0]\n}\n\nfunction vec4() {\n return [0,0,0,1]\n}\n},{\"gl-mat4/determinant\":94,\"gl-vec3/lerp\":173,\"mat4-decompose\":241,\"mat4-recompose\":244,\"quat-slerp\":271}],244:[function(_glvis_,module,exports){\n/*\nInput: translation ; a 3 component vector\n scale ; a 3 component vector\n skew ; skew factors XY,XZ,YZ represented as a 3 component vector\n perspective ; a 4 component vector\n quaternion ; a 4 component vector\nOutput: matrix ; a 4x4 matrix\n\nFrom: http://www.w3.org/TR/css3-transforms/#recomposing-to-a-3d-matrix\n*/\n\nvar mat4 = {\n identity: _glvis_('gl-mat4/identity'),\n translate: _glvis_('gl-mat4/translate'),\n multiply: _glvis_('gl-mat4/multiply'),\n create: _glvis_('gl-mat4/create'),\n scale: _glvis_('gl-mat4/scale'),\n fromRotationTranslation: _glvis_('gl-mat4/fromRotationTranslation')\n}\n\nvar rotationMatrix = mat4.create()\nvar temp = mat4.create()\n\nmodule.exports = function recomposeMat4(matrix, translation, scale, skew, perspective, quaternion) {\n mat4.identity(matrix)\n\n //apply translation & rotation\n mat4.fromRotationTranslation(matrix, quaternion, translation)\n\n //apply perspective\n matrix[3] = perspective[0]\n matrix[7] = perspective[1]\n matrix[11] = perspective[2]\n matrix[15] = perspective[3]\n \n // apply skew\n // temp is a identity 4x4 matrix initially\n mat4.identity(temp)\n\n if (skew[2] !== 0) {\n temp[9] = skew[2]\n mat4.multiply(matrix, matrix, temp)\n }\n\n if (skew[1] !== 0) {\n temp[9] = 0\n temp[8] = skew[1]\n mat4.multiply(matrix, matrix, temp)\n }\n\n if (skew[0] !== 0) {\n temp[8] = 0\n temp[4] = skew[0]\n mat4.multiply(matrix, matrix, temp)\n }\n\n //apply scale\n mat4.scale(matrix, matrix, scale)\n return matrix\n}\n},{\"gl-mat4/create\":93,\"gl-mat4/fromRotationTranslation\":96,\"gl-mat4/identity\":97,\"gl-mat4/multiply\":100,\"gl-mat4/scale\":107,\"gl-mat4/translate\":108}],245:[function(_glvis_,module,exports){\n'use strict'\n\nvar bsearch = _glvis_('binary-search-bounds')\nvar m4interp = _glvis_('mat4-interpolate')\nvar invert44 = _glvis_('gl-mat4/invert')\nvar rotateX = _glvis_('gl-mat4/rotateX')\nvar rotateY = _glvis_('gl-mat4/rotateY')\nvar rotateZ = _glvis_('gl-mat4/rotateZ')\nvar lookAt = _glvis_('gl-mat4/lookAt')\nvar translate = _glvis_('gl-mat4/translate')\nvar scale = _glvis_('gl-mat4/scale')\nvar normalize = _glvis_('gl-vec3/normalize')\n\nvar DEFAULT_CENTER = [0,0,0]\n\nmodule.exports = createMatrixCameraController\n\nfunction MatrixCameraController(initialMatrix) {\n this._components = initialMatrix.slice()\n this._time = [0]\n this.prevMatrix = initialMatrix.slice()\n this.nextMatrix = initialMatrix.slice()\n this.computedMatrix = initialMatrix.slice()\n this.computedInverse = initialMatrix.slice()\n this.computedEye = [0,0,0]\n this.computedUp = [0,0,0]\n this.computedCenter = [0,0,0]\n this.computedRadius = [0]\n this._limits = [-Infinity, Infinity]\n}\n\nvar proto = MatrixCameraController.prototype\n\nproto.recalcMatrix = function(t) {\n var time = this._time\n var tidx = bsearch.le(time, t)\n var mat = this.computedMatrix\n if(tidx < 0) {\n return\n }\n var comps = this._components\n if(tidx === time.length-1) {\n var ptr = 16*tidx\n for(var i=0; i<16; ++i) {\n mat[i] = comps[ptr++]\n }\n } else {\n var dt = (time[tidx+1] - time[tidx])\n var ptr = 16*tidx\n var prev = this.prevMatrix\n var allEqual = true\n for(var i=0; i<16; ++i) {\n prev[i] = comps[ptr++]\n }\n var next = this.nextMatrix\n for(var i=0; i<16; ++i) {\n next[i] = comps[ptr++]\n allEqual = allEqual && (prev[i] === next[i])\n }\n if(dt < 1e-6 || allEqual) {\n for(var i=0; i<16; ++i) {\n mat[i] = prev[i]\n }\n } else {\n m4interp(mat, prev, next, (t - time[tidx])/dt)\n }\n }\n\n var up = this.computedUp\n up[0] = mat[1]\n up[1] = mat[5]\n up[2] = mat[9]\n normalize(up, up)\n\n var imat = this.computedInverse\n invert44(imat, mat)\n var eye = this.computedEye\n var w = imat[15]\n eye[0] = imat[12]/w\n eye[1] = imat[13]/w\n eye[2] = imat[14]/w\n\n var center = this.computedCenter\n var radius = Math.exp(this.computedRadius[0])\n for(var i=0; i<3; ++i) {\n center[i] = eye[i] - mat[2+4*i] * radius\n }\n}\n\nproto.idle = function(t) {\n if(t < this.lastT()) {\n return\n }\n var mc = this._components\n var ptr = mc.length-16\n for(var i=0; i<16; ++i) {\n mc.push(mc[ptr++])\n }\n this._time.push(t)\n}\n\nproto.flush = function(t) {\n var idx = bsearch.gt(this._time, t) - 2\n if(idx < 0) {\n return\n }\n this._time.splice(0, idx)\n this._components.splice(0, 16*idx)\n}\n\nproto.lastT = function() {\n return this._time[this._time.length-1]\n}\n\nproto.lookAt = function(t, eye, center, up) {\n this.recalcMatrix(t)\n eye = eye || this.computedEye\n center = center || DEFAULT_CENTER\n up = up || this.computedUp\n this.setMatrix(t, lookAt(this.computedMatrix, eye, center, up))\n var d2 = 0.0\n for(var i=0; i<3; ++i) {\n d2 += Math.pow(center[i] - eye[i], 2)\n }\n d2 = Math.log(Math.sqrt(d2))\n this.computedRadius[0] = d2\n}\n\nproto.rotate = function(t, yaw, pitch, roll) {\n this.recalcMatrix(t)\n var mat = this.computedInverse\n if(yaw) rotateY(mat, mat, yaw)\n if(pitch) rotateX(mat, mat, pitch)\n if(roll) rotateZ(mat, mat, roll)\n this.setMatrix(t, invert44(this.computedMatrix, mat))\n}\n\nvar tvec = [0,0,0]\n\nproto.pan = function(t, dx, dy, dz) {\n tvec[0] = -(dx || 0.0)\n tvec[1] = -(dy || 0.0)\n tvec[2] = -(dz || 0.0)\n this.recalcMatrix(t)\n var mat = this.computedInverse\n translate(mat, mat, tvec)\n this.setMatrix(t, invert44(mat, mat))\n}\n\nproto.translate = function(t, dx, dy, dz) {\n tvec[0] = dx || 0.0\n tvec[1] = dy || 0.0\n tvec[2] = dz || 0.0\n this.recalcMatrix(t)\n var mat = this.computedMatrix\n translate(mat, mat, tvec)\n this.setMatrix(t, mat)\n}\n\nproto.setMatrix = function(t, mat) {\n if(t < this.lastT()) {\n return\n }\n this._time.push(t)\n for(var i=0; i<16; ++i) {\n this._components.push(mat[i])\n }\n}\n\nproto.setDistance = function(t, d) {\n this.computedRadius[0] = d\n}\n\nproto.setDistanceLimits = function(a,b) {\n var lim = this._limits\n lim[0] = a\n lim[1] = b\n}\n\nproto.getDistanceLimits = function(out) {\n var lim = this._limits\n if(out) {\n out[0] = lim[0]\n out[1] = lim[1]\n return out\n }\n return lim\n}\n\nfunction createMatrixCameraController(options) {\n options = options || {}\n var matrix = options.matrix || \n [1,0,0,0,\n 0,1,0,0,\n 0,0,1,0,\n 0,0,0,1]\n return new MatrixCameraController(matrix)\n}\n\n},{\"binary-search-bounds\":31,\"gl-mat4/invert\":98,\"gl-mat4/lookAt\":99,\"gl-mat4/rotateX\":104,\"gl-mat4/rotateY\":105,\"gl-mat4/rotateZ\":106,\"gl-mat4/scale\":107,\"gl-mat4/translate\":108,\"gl-vec3/normalize\":179,\"mat4-interpolate\":243}],246:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = monotoneConvexHull2D\n\nvar orient = _glvis_('robust-orientation')[3]\n\nfunction monotoneConvexHull2D(points) {\n var n = points.length\n\n if(n < 3) {\n var result = new Array(n)\n for(var i=0; i 1 && orient(\n points[lower[m-2]], \n points[lower[m-1]], \n p) <= 0) {\n m -= 1\n lower.pop()\n }\n lower.push(idx)\n\n //Insert into upper list\n m = upper.length\n while(m > 1 && orient(\n points[upper[m-2]], \n points[upper[m-1]], \n p) >= 0) {\n m -= 1\n upper.pop()\n }\n upper.push(idx)\n }\n\n //Merge lists together\n var result = new Array(upper.length + lower.length - 2)\n var ptr = 0\n for(var i=0, nl=lower.length; i0; --j) {\n result[ptr++] = upper[j]\n }\n\n //Return result\n return result\n}\n},{\"robust-orientation\":284}],247:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = mouseListen\n\nvar mouse = _glvis_('mouse-event')\n\nfunction mouseListen (element, callback) {\n if (!callback) {\n callback = element\n element = window\n }\n\n var buttonState = 0\n var x = 0\n var y = 0\n var mods = {\n shift: false,\n alt: false,\n control: false,\n meta: false\n }\n var attached = false\n\n function updateMods (ev) {\n var changed = false\n if ('altKey' in ev) {\n changed = changed || ev.altKey !== mods.alt\n mods.alt = !!ev.altKey\n }\n if ('shiftKey' in ev) {\n changed = changed || ev.shiftKey !== mods.shift\n mods.shift = !!ev.shiftKey\n }\n if ('ctrlKey' in ev) {\n changed = changed || ev.ctrlKey !== mods.control\n mods.control = !!ev.ctrlKey\n }\n if ('metaKey' in ev) {\n changed = changed || ev.metaKey !== mods.meta\n mods.meta = !!ev.metaKey\n }\n return changed\n }\n\n function handleEvent (nextButtons, ev) {\n var nextX = mouse.x(ev)\n var nextY = mouse.y(ev)\n if ('buttons' in ev) {\n nextButtons = ev.buttons | 0\n }\n if (nextButtons !== buttonState ||\n nextX !== x ||\n nextY !== y ||\n updateMods(ev)) {\n buttonState = nextButtons | 0\n x = nextX || 0\n y = nextY || 0\n callback && callback(buttonState, x, y, mods)\n }\n }\n\n function clearState (ev) {\n handleEvent(0, ev)\n }\n\n function handleBlur () {\n if (buttonState ||\n x ||\n y ||\n mods.shift ||\n mods.alt ||\n mods.meta ||\n mods.control) {\n x = y = 0\n buttonState = 0\n mods.shift = mods.alt = mods.control = mods.meta = false\n callback && callback(0, 0, 0, mods)\n }\n }\n\n function handleMods (ev) {\n if (updateMods(ev)) {\n callback && callback(buttonState, x, y, mods)\n }\n }\n\n function handleMouseMove (ev) {\n if (mouse.buttons(ev) === 0) {\n handleEvent(0, ev)\n } else {\n handleEvent(buttonState, ev)\n }\n }\n\n function handleMouseDown (ev) {\n handleEvent(buttonState | mouse.buttons(ev), ev)\n }\n\n function handleMouseUp (ev) {\n handleEvent(buttonState & ~mouse.buttons(ev), ev)\n }\n\n function attachListeners () {\n if (attached) {\n return\n }\n attached = true\n\n element.addEventListener('mousemove', handleMouseMove)\n\n element.addEventListener('mousedown', handleMouseDown)\n\n element.addEventListener('mouseup', handleMouseUp)\n\n element.addEventListener('mouseleave', clearState)\n element.addEventListener('mouseenter', clearState)\n element.addEventListener('mouseout', clearState)\n element.addEventListener('mouseover', clearState)\n\n element.addEventListener('blur', handleBlur)\n\n element.addEventListener('keyup', handleMods)\n element.addEventListener('keydown', handleMods)\n element.addEventListener('keypress', handleMods)\n\n if (element !== window) {\n window.addEventListener('blur', handleBlur)\n\n window.addEventListener('keyup', handleMods)\n window.addEventListener('keydown', handleMods)\n window.addEventListener('keypress', handleMods)\n }\n }\n\n function detachListeners () {\n if (!attached) {\n return\n }\n attached = false\n\n element.removeEventListener('mousemove', handleMouseMove)\n\n element.removeEventListener('mousedown', handleMouseDown)\n\n element.removeEventListener('mouseup', handleMouseUp)\n\n element.removeEventListener('mouseleave', clearState)\n element.removeEventListener('mouseenter', clearState)\n element.removeEventListener('mouseout', clearState)\n element.removeEventListener('mouseover', clearState)\n\n element.removeEventListener('blur', handleBlur)\n\n element.removeEventListener('keyup', handleMods)\n element.removeEventListener('keydown', handleMods)\n element.removeEventListener('keypress', handleMods)\n\n if (element !== window) {\n window.removeEventListener('blur', handleBlur)\n\n window.removeEventListener('keyup', handleMods)\n window.removeEventListener('keydown', handleMods)\n window.removeEventListener('keypress', handleMods)\n }\n }\n\n // Attach listeners\n attachListeners()\n\n var result = {\n element: element\n }\n\n Object.defineProperties(result, {\n enabled: {\n get: function () { return attached },\n set: function (f) {\n if (f) {\n attachListeners()\n } else {\n detachListeners()\n }\n },\n enumerable: true\n },\n buttons: {\n get: function () { return buttonState },\n enumerable: true\n },\n x: {\n get: function () { return x },\n enumerable: true\n },\n y: {\n get: function () { return y },\n enumerable: true\n },\n mods: {\n get: function () { return mods },\n enumerable: true\n }\n })\n\n return result\n}\n\n},{\"mouse-event\":249}],248:[function(_glvis_,module,exports){\nvar rootPosition = { left: 0, top: 0 }\n\nmodule.exports = mouseEventOffset\nfunction mouseEventOffset (ev, target, out) {\n target = target || ev.currentTarget || ev.srcElement\n if (!Array.isArray(out)) {\n out = [ 0, 0 ]\n }\n var cx = ev.clientX || 0\n var cy = ev.clientY || 0\n var rect = getBoundingClientOffset(target)\n out[0] = cx - rect.left\n out[1] = cy - rect.top\n return out\n}\n\nfunction getBoundingClientOffset (element) {\n if (element === window ||\n element === document ||\n element === document.body) {\n return rootPosition\n } else {\n return element.getBoundingClientRect()\n }\n}\n\n},{}],249:[function(_glvis_,module,exports){\n'use strict'\n\nfunction mouseButtons(ev) {\n if(typeof ev === 'object') {\n if('buttons' in ev) {\n return ev.buttons\n } else if('which' in ev) {\n var b = ev.which\n if(b === 2) {\n return 4\n } else if(b === 3) {\n return 2\n } else if(b > 0) {\n return 1<<(b-1)\n }\n } else if('button' in ev) {\n var b = ev.button\n if(b === 1) {\n return 4\n } else if(b === 2) {\n return 2\n } else if(b >= 0) {\n return 1< 0) {\n i1 = 1\n P[X++] = phase(d0[p0], x0, x1, x2)\n p0 += u0_0\n if (s0 > 0) {\n i0 = 1\n c0_0 = d0[p0]\n b0 = P[X] = phase(c0_0, x0, x1, x2)\n b1 = P[X + e1]\n b2 = P[X + e2]\n b3 = P[X + e3]\n if (b0 !== b1 || b0 !== b2 || b0 !== b3) {\n c0_1 = d0[p0 + d0_1]\n c0_2 = d0[p0 + d0_2]\n c0_3 = d0[p0 + d0_3]\n vertex(i0, i1, c0_0, c0_1, c0_2, c0_3, b0, b1, b2, b3, x0, x1, x2)\n v0 = V[X] = N++\n }\n X += 1\n p0 += u0_0\n for (i0 = 2; i0 < s0; ++i0) {\n c0_0 = d0[p0]\n b0 = P[X] = phase(c0_0, x0, x1, x2)\n b1 = P[X + e1]\n b2 = P[X + e2]\n b3 = P[X + e3]\n if (b0 !== b1 || b0 !== b2 || b0 !== b3) {\n c0_1 = d0[p0 + d0_1]\n c0_2 = d0[p0 + d0_2]\n c0_3 = d0[p0 + d0_3]\n vertex(i0, i1, c0_0, c0_1, c0_2, c0_3, b0, b1, b2, b3, x0, x1, x2)\n v0 = V[X] = N++\n if (b3 !== b1) {\n face(V[X + e1], v0, c0_3, c0_1, b3, b1, x0, x1, x2)\n }\n }\n X += 1\n p0 += u0_0\n }\n }\n p0 += u0_1\n X = 0\n T = e1\n e1 = y1\n y1 = T\n T = e2\n e2 = y2\n y2 = T\n T = e3\n e3 = y3\n y3 = T\n for (i1 = 2; i1 < s1; ++i1) {\n P[X++] = phase(d0[p0], x0, x1, x2)\n p0 += u0_0\n if (s0 > 0) {\n i0 = 1\n c0_0 = d0[p0]\n b0 = P[X] = phase(c0_0, x0, x1, x2)\n b1 = P[X + e1]\n b2 = P[X + e2]\n b3 = P[X + e3]\n if (b0 !== b1 || b0 !== b2 || b0 !== b3) {\n c0_1 = d0[p0 + d0_1]\n c0_2 = d0[p0 + d0_2]\n c0_3 = d0[p0 + d0_3]\n vertex(i0, i1, c0_0, c0_1, c0_2, c0_3, b0, b1, b2, b3, x0, x1, x2)\n v0 = V[X] = N++\n if (b3 !== b2) {\n face(V[X + e2], v0, c0_2, c0_3, b2, b3, x0, x1, x2)\n }\n }\n X += 1\n p0 += u0_0\n for (i0 = 2; i0 < s0; ++i0) {\n c0_0 = d0[p0]\n b0 = P[X] = phase(c0_0, x0, x1, x2)\n b1 = P[X + e1]\n b2 = P[X + e2]\n b3 = P[X + e3]\n if (b0 !== b1 || b0 !== b2 || b0 !== b3) {\n c0_1 = d0[p0 + d0_1]\n c0_2 = d0[p0 + d0_2]\n c0_3 = d0[p0 + d0_3]\n vertex(i0, i1, c0_0, c0_1, c0_2, c0_3, b0, b1, b2, b3, x0, x1, x2)\n v0 = V[X] = N++\n if (b3 !== b2) {\n face(V[X + e2], v0, c0_2, c0_3, b2, b3, x0, x1, x2)\n }\n if (b3 !== b1) {\n face(V[X + e1], v0, c0_3, c0_1, b3, b1, x0, x1, x2)\n }\n }\n X += 1\n p0 += u0_0\n }\n }\n if (i1 & 1) {\n X = 0\n }\n T = e1\n e1 = y1\n y1 = T\n T = e2\n e2 = y2\n y2 = T\n T = e3\n e3 = y3\n y3 = T\n p0 += u0_1\n }\n }\n freeUint32(V)\n freeUint32(P)\n }\n },\n \"false,1,0\": function anonymous(vertex, face, phase, mallocUint32, freeUint32) {\n return function extractContour1_0(a0, x0, x1, x2) {\n var s0 = a0.shape[0] | 0,\n s1 = a0.shape[1] | 0,\n d0 = a0.data,\n o0 = a0.offset | 0,\n t0_0 = a0.stride[0] | 0,\n t0_1 = a0.stride[1] | 0,\n p0 = o0,\n c0_0,\n d0_1 = -t0_0 | 0,\n c0_1 = 0,\n d0_2 = -t0_1 | 0,\n c0_2 = 0,\n d0_3 = (-t0_0 - t0_1) | 0,\n c0_3 = 0,\n u0_1 = t0_1 | 0,\n u0_0 = (t0_0 - t0_1 * s1) | 0,\n i0 = 0,\n i1 = 0,\n N = 0,\n Q = (2 * s1) | 0,\n P = mallocUint32(Q),\n V = mallocUint32(Q),\n X = 0,\n b0 = 0,\n e2 = -1 | 0,\n y2 = -1 | 0,\n b2 = 0,\n e1 = -s1 | 0,\n y1 = s1 | 0,\n b1 = 0,\n e3 = (-s1 - 1) | 0,\n y3 = (s1 - 1) | 0,\n b3 = 0,\n v0 = 0,\n T = 0\n for (i1 = 0; i1 < s1; ++i1) {\n P[X++] = phase(d0[p0], x0, x1, x2)\n p0 += u0_1\n }\n p0 += u0_0\n if (s0 > 0) {\n i0 = 1\n P[X++] = phase(d0[p0], x0, x1, x2)\n p0 += u0_1\n if (s1 > 0) {\n i1 = 1\n c0_0 = d0[p0]\n b0 = P[X] = phase(c0_0, x0, x1, x2)\n b1 = P[X + e1]\n b2 = P[X + e2]\n b3 = P[X + e3]\n if (b0 !== b1 || b0 !== b2 || b0 !== b3) {\n c0_1 = d0[p0 + d0_1]\n c0_2 = d0[p0 + d0_2]\n c0_3 = d0[p0 + d0_3]\n vertex(i0, i1, c0_0, c0_1, c0_2, c0_3, b0, b1, b2, b3, x0, x1, x2)\n v0 = V[X] = N++\n }\n X += 1\n p0 += u0_1\n for (i1 = 2; i1 < s1; ++i1) {\n c0_0 = d0[p0]\n b0 = P[X] = phase(c0_0, x0, x1, x2)\n b1 = P[X + e1]\n b2 = P[X + e2]\n b3 = P[X + e3]\n if (b0 !== b1 || b0 !== b2 || b0 !== b3) {\n c0_1 = d0[p0 + d0_1]\n c0_2 = d0[p0 + d0_2]\n c0_3 = d0[p0 + d0_3]\n vertex(i0, i1, c0_0, c0_1, c0_2, c0_3, b0, b1, b2, b3, x0, x1, x2)\n v0 = V[X] = N++\n if (b3 !== b2) {\n face(V[X + e2], v0, c0_2, c0_3, b2, b3, x0, x1, x2)\n }\n }\n X += 1\n p0 += u0_1\n }\n }\n p0 += u0_0\n X = 0\n T = e1\n e1 = y1\n y1 = T\n T = e2\n e2 = y2\n y2 = T\n T = e3\n e3 = y3\n y3 = T\n for (i0 = 2; i0 < s0; ++i0) {\n P[X++] = phase(d0[p0], x0, x1, x2)\n p0 += u0_1\n if (s1 > 0) {\n i1 = 1\n c0_0 = d0[p0]\n b0 = P[X] = phase(c0_0, x0, x1, x2)\n b1 = P[X + e1]\n b2 = P[X + e2]\n b3 = P[X + e3]\n if (b0 !== b1 || b0 !== b2 || b0 !== b3) {\n c0_1 = d0[p0 + d0_1]\n c0_2 = d0[p0 + d0_2]\n c0_3 = d0[p0 + d0_3]\n vertex(i0, i1, c0_0, c0_1, c0_2, c0_3, b0, b1, b2, b3, x0, x1, x2)\n v0 = V[X] = N++\n if (b3 !== b1) {\n face(V[X + e1], v0, c0_3, c0_1, b3, b1, x0, x1, x2)\n }\n }\n X += 1\n p0 += u0_1\n for (i1 = 2; i1 < s1; ++i1) {\n c0_0 = d0[p0]\n b0 = P[X] = phase(c0_0, x0, x1, x2)\n b1 = P[X + e1]\n b2 = P[X + e2]\n b3 = P[X + e3]\n if (b0 !== b1 || b0 !== b2 || b0 !== b3) {\n c0_1 = d0[p0 + d0_1]\n c0_2 = d0[p0 + d0_2]\n c0_3 = d0[p0 + d0_3]\n vertex(i0, i1, c0_0, c0_1, c0_2, c0_3, b0, b1, b2, b3, x0, x1, x2)\n v0 = V[X] = N++\n if (b3 !== b2) {\n face(V[X + e2], v0, c0_2, c0_3, b2, b3, x0, x1, x2)\n }\n if (b3 !== b1) {\n face(V[X + e1], v0, c0_3, c0_1, b3, b1, x0, x1, x2)\n }\n }\n X += 1\n p0 += u0_1\n }\n }\n if (i0 & 1) {\n X = 0\n }\n T = e1\n e1 = y1\n y1 = T\n T = e2\n e2 = y2\n y2 = T\n T = e3\n e3 = y3\n y3 = T\n p0 += u0_0\n }\n }\n freeUint32(V)\n freeUint32(P)\n }\n },\n}\n\n//Generates the surface procedure\nfunction compileSurfaceProcedure(vertexFunc, faceFunc, phaseFunc, scalarArgs, order, typesig) {\n var key = [typesig, order].join(',')\n var proc = allFns[key]\n\n return proc(\n vertexFunc,\n faceFunc,\n phaseFunc,\n pool.mallocUint32,\n pool.freeUint32)\n}\n\nfunction createSurfaceExtractor(args) {\n function error(msg) {\n throw new Error(\"ndarray-extract-contour: \" + msg)\n }\n if(typeof args !== \"object\") {\n error(\"Must specify arguments\")\n }\n var order = args.order\n if(!Array.isArray(order)) {\n error(\"Must specify order\")\n }\n var arrays = args.arrayArguments||1\n if(arrays < 1) {\n error(\"Must have at least one array argument\")\n }\n var scalars = args.scalarArguments||0\n if(scalars < 0) {\n error(\"Scalar arg count must be > 0\")\n }\n if(typeof args.vertex !== \"function\") {\n error(\"Must specify vertex creation function\")\n }\n if(typeof args.cell !== \"function\") {\n error(\"Must specify cell creation function\")\n }\n if(typeof args.phase !== \"function\") {\n error(\"Must specify phase function\")\n }\n var getters = args.getters || []\n var typesig = new Array(arrays)\n for(var i=0; i= 0) {\n typesig[i] = true\n } else {\n typesig[i] = false\n }\n }\n return compileSurfaceProcedure(\n args.vertex,\n args.cell,\n args.phase,\n scalars,\n order,\n typesig)\n}\n},{\"typedarray-pool\":308}],252:[function(_glvis_,module,exports){\n'use strict'\n\nvar dup = _glvis_('dup')\n\nvar CACHED_CWiseOp = {\n zero: function(SS, a0, t0, p0) {\n var s0 = SS[0], t0p0 = t0[0]\n p0 |= 0\n var i0 = 0, d0s0 = t0p0\n for (i0 = 0; i0 < s0; ++i0) {\n a0[p0] = 0\n p0 += d0s0\n }\n },\n\n fdTemplate1: function(SS, a0, t0, p0, a1, t1, p1) {\n var s0 = SS[0], t0p0 = t0[0], t1p0 = t1[0], q0 = -1 * t0p0, q1 = t0p0\n p0 |= 0\n p1 |= 0\n var i0 = 0, d0s0 = t0p0, d1s0 = t1p0\n for (i0 = 0; i0 < s0; ++i0) {\n a1[p1] = 0.5 * (a0[p0 + q0] - a0[p0 + q1])\n p0 += d0s0\n p1 += d1s0\n }\n },\n\n fdTemplate2: function(SS, a0, t0, p0, a1, t1, p1, a2, t2, p2) {\n var s0 = SS[0], s1 = SS[1], t0p0 = t0[0], t0p1 = t0[1], t1p0 = t1[0], t1p1 = t1[1], t2p0 = t2[0], t2p1 = t2[1], q0 = -1 * t0p0, q1 = t0p0, q2 = -1 * t0p1, q3 = t0p1\n p0 |= 0\n p1 |= 0\n p2 |= 0\n var i0 = 0, i1 = 0, d0s0 = t0p1, d0s1 = (t0p0 - s1 * t0p1), d1s0 = t1p1, d1s1 = (t1p0 - s1 * t1p1), d2s0 = t2p1, d2s1 = (t2p0 - s1 * t2p1)\n for (i1 = 0; i1 < s0; ++i1) {\n for (i0 = 0; i0 < s1; ++i0) {\n a1[p1] = 0.5 * (a0[p0 + q0] - a0[p0 + q1]); a2[p2] = 0.5 * (a0[p0 + q2] - a0[p0 + q3])\n p0 += d0s0\n p1 += d1s0\n p2 += d2s0\n }\n p0 += d0s1\n p1 += d1s1\n p2 += d2s1\n }\n }\n}\n\nvar CACHED_thunk = {\n cdiff: function(compile) {\n var CACHED = {}\n return function cdiff_cwise_thunk(array0, array1, array2) {\n var t0 = array0.dtype, r0 = array0.order, t1 = array1.dtype, r1 = array1.order, t2 = array2.dtype, r2 = array2.order, type = [t0, r0.join(), t1, r1.join(), t2, r2.join()].join(), proc = CACHED[type]\n if (!proc) { CACHED[type] = proc = compile([t0, r0, t1, r1, t2, r2]) } return proc(array0.shape.slice(0), array0.data, array0.stride, array0.offset | 0, array1.data, array1.stride, array1.offset | 0, array2.data, array2.stride, array2.offset | 0)\n }\n },\n\n zero: function(compile) {\n var CACHED = {}\n return function zero_cwise_thunk(array0) {\n var t0 = array0.dtype, r0 = array0.order, type = [t0, r0.join()].join(), proc = CACHED[type]\n if (!proc) { CACHED[type] = proc = compile([t0, r0]) } return proc(array0.shape.slice(0), array0.data, array0.stride, array0.offset | 0)\n }\n },\n\n fdTemplate1: function(compile) {\n var CACHED = {}\n return function fdTemplate1_cwise_thunk(array0, array1) {\n var t0 = array0.dtype, r0 = array0.order, t1 = array1.dtype, r1 = array1.order, type = [t0, r0.join(), t1, r1.join()].join(), proc = CACHED[type]\n if (!proc) { CACHED[type] = proc = compile([t0, r0, t1, r1]) } return proc(array0.shape.slice(0), array0.data, array0.stride, array0.offset | 0, array1.data, array1.stride, array1.offset | 0)\n }\n },\n\n fdTemplate2: function(compile) {\n var CACHED = {}\n return function fdTemplate2_cwise_thunk(array0, array1, array4) {\n var t0 = array0.dtype, r0 = array0.order, t1 = array1.dtype, r1 = array1.order, t4 = array4.dtype, r4 = array4.order, type = [t0, r0.join(), t1, r1.join(), t4, r4.join()].join(), proc = CACHED[type]\n if (!proc) { CACHED[type] = proc = compile([t0, r0, t1, r1, t4, r4]) } return proc(array0.shape.slice(0), array0.data, array0.stride, array0.offset | 0, array1.data, array1.stride, array1.offset | 0, array4.data, array4.stride, array4.offset | 0)\n }\n },\n}\n\nfunction createThunk(proc) {\n var thunk = CACHED_thunk[proc.funcName]\n return thunk(compile.bind(undefined, proc))\n}\n\nfunction compile(proc) {\n return CACHED_CWiseOp[proc.funcName]\n}\n\nfunction cwiseCompiler(user_args) {\n return createThunk({\n funcName: user_args.funcName\n })\n}\n\n\nvar TEMPLATE_CACHE = {}\nvar GRADIENT_CACHE = {}\n\nvar EmptyProc = {\n body: \"\",\n args: [],\n thisVars: [],\n localVars: []\n}\n\nvar centralDiff = cwiseCompiler({\n funcName: 'cdiff'\n})\n\nvar zeroOut = cwiseCompiler({\n funcName: 'zero'\n})\n\nfunction generateTemplate(d) {\n if(d in TEMPLATE_CACHE) {\n return TEMPLATE_CACHE[d]\n }\n return TEMPLATE_CACHE[d] = cwiseCompiler({\n funcName: 'fdTemplate' + d\n })\n}\n\nfunction CACHED_link(diff, zero, grad1, grad2) {\n return function(dst, src) {\n var s = src.shape.slice()\n if (1 && s[0] > 2 && s[1] > 2) {\n grad2(\n src\n .pick(-1, -1)\n .lo(1, 1)\n .hi(s[0] - 2, s[1] - 2),\n dst\n .pick(-1, -1, 0)\n .lo(1, 1)\n .hi(s[0] - 2, s[1] - 2),\n dst\n .pick(-1, -1, 1)\n .lo(1, 1)\n .hi(s[0] - 2, s[1] - 2)\n )\n }\n if (1 && s[1] > 2) {\n grad1(\n src\n .pick(0, -1)\n .lo(1)\n .hi(s[1] - 2),\n dst\n .pick(0, -1, 1)\n .lo(1)\n .hi(s[1] - 2)\n )\n zero(\n dst\n .pick(0, -1, 0)\n .lo(1)\n .hi(s[1] - 2)\n )\n }\n if (1 && s[1] > 2) {\n grad1(\n src\n .pick(s[0] - 1, -1)\n .lo(1)\n .hi(s[1] - 2),\n dst\n .pick(s[0] - 1, -1, 1)\n .lo(1)\n .hi(s[1] - 2)\n )\n zero(\n dst\n .pick(s[0] - 1, -1, 0)\n .lo(1)\n .hi(s[1] - 2)\n )\n }\n if (1 && s[0] > 2) {\n grad1(\n src\n .pick(-1, 0)\n .lo(1)\n .hi(s[0] - 2),\n dst\n .pick(-1, 0, 0)\n .lo(1)\n .hi(s[0] - 2)\n )\n zero(\n dst\n .pick(-1, 0, 1)\n .lo(1)\n .hi(s[0] - 2)\n )\n }\n if (1 && s[0] > 2) {\n grad1(\n src\n .pick(-1, s[1] - 1)\n .lo(1)\n .hi(s[0] - 2),\n dst\n .pick(-1, s[1] - 1, 0)\n .lo(1)\n .hi(s[0] - 2)\n )\n zero(\n dst\n .pick(-1, s[1] - 1, 1)\n .lo(1)\n .hi(s[0] - 2)\n )\n }\n dst.set(0, 0, 0, 0)\n dst.set(0, 0, 1, 0)\n dst.set(s[0] - 1, 0, 0, 0)\n dst.set(s[0] - 1, 0, 1, 0)\n dst.set(0, s[1] - 1, 0, 0)\n dst.set(0, s[1] - 1, 1, 0)\n dst.set(s[0] - 1, s[1] - 1, 0, 0)\n dst.set(s[0] - 1, s[1] - 1, 1, 0)\n return dst\n }\n}\n\n\nfunction generateGradient(boundaryConditions) {\n var token = boundaryConditions.join()\n var proc = GRADIENT_CACHE[token]\n if(proc) {\n return proc\n }\n\n var d = boundaryConditions.length\n\n var linkArgs = [ centralDiff, zeroOut ]\n for(var i=1; i<=d; ++i) {\n linkArgs.push(generateTemplate(i))\n }\n\n var link = CACHED_link\n\n var proc = link.apply(void 0, linkArgs)\n\n GRADIENT_CACHE[token] = proc\n return proc\n}\n\nmodule.exports = function gradient(out, inp, bc) {\n if(!Array.isArray(bc)) {\n if(typeof bc === 'string') {\n bc = dup(inp.dimension, bc)\n } else {\n bc = dup(inp.dimension, 'clamp')\n }\n }\n if(inp.size === 0) {\n return out\n }\n if(inp.dimension === 0) {\n out.set(0)\n return out\n }\n var cached = generateGradient(bc)\n return cached(out, inp)\n}\n},{\"dup\":65}],253:[function(_glvis_,module,exports){\n\"use strict\"\n\nfunction interp1d(arr, x) {\n var ix = Math.floor(x)\n , fx = x - ix\n , s0 = 0 <= ix && ix < arr.shape[0]\n , s1 = 0 <= ix+1 && ix+1 < arr.shape[0]\n , w0 = s0 ? +arr.get(ix) : 0.0\n , w1 = s1 ? +arr.get(ix+1) : 0.0\n return (1.0-fx)*w0 + fx*w1\n}\n\nfunction interp2d(arr, x, y) {\n var ix = Math.floor(x)\n , fx = x - ix\n , s0 = 0 <= ix && ix < arr.shape[0]\n , s1 = 0 <= ix+1 && ix+1 < arr.shape[0]\n , iy = Math.floor(y)\n , fy = y - iy\n , t0 = 0 <= iy && iy < arr.shape[1]\n , t1 = 0 <= iy+1 && iy+1 < arr.shape[1]\n , w00 = s0&&t0 ? arr.get(ix ,iy ) : 0.0\n , w01 = s0&&t1 ? arr.get(ix ,iy+1) : 0.0\n , w10 = s1&&t0 ? arr.get(ix+1,iy ) : 0.0\n , w11 = s1&&t1 ? arr.get(ix+1,iy+1) : 0.0\n return (1.0-fy) * ((1.0-fx)*w00 + fx*w10) + fy * ((1.0-fx)*w01 + fx*w11)\n}\n\nfunction interp3d(arr, x, y, z) {\n var ix = Math.floor(x)\n , fx = x - ix\n , s0 = 0 <= ix && ix < arr.shape[0]\n , s1 = 0 <= ix+1 && ix+1 < arr.shape[0]\n , iy = Math.floor(y)\n , fy = y - iy\n , t0 = 0 <= iy && iy < arr.shape[1]\n , t1 = 0 <= iy+1 && iy+1 < arr.shape[1]\n , iz = Math.floor(z)\n , fz = z - iz\n , u0 = 0 <= iz && iz < arr.shape[2]\n , u1 = 0 <= iz+1 && iz+1 < arr.shape[2]\n , w000 = s0&&t0&&u0 ? arr.get(ix,iy,iz) : 0.0\n , w010 = s0&&t1&&u0 ? arr.get(ix,iy+1,iz) : 0.0\n , w100 = s1&&t0&&u0 ? arr.get(ix+1,iy,iz) : 0.0\n , w110 = s1&&t1&&u0 ? arr.get(ix+1,iy+1,iz) : 0.0\n , w001 = s0&&t0&&u1 ? arr.get(ix,iy,iz+1) : 0.0\n , w011 = s0&&t1&&u1 ? arr.get(ix,iy+1,iz+1) : 0.0\n , w101 = s1&&t0&&u1 ? arr.get(ix+1,iy,iz+1) : 0.0\n , w111 = s1&&t1&&u1 ? arr.get(ix+1,iy+1,iz+1) : 0.0\n return (1.0-fz) * ((1.0-fy) * ((1.0-fx)*w000 + fx*w100) + fy * ((1.0-fx)*w010 + fx*w110)) + fz * ((1.0-fy) * ((1.0-fx)*w001 + fx*w101) + fy * ((1.0-fx)*w011 + fx*w111))\n}\n\nfunction interpNd(arr) {\n var d = arr.shape.length|0\n , ix = new Array(d)\n , fx = new Array(d)\n , s0 = new Array(d)\n , s1 = new Array(d)\n , i, t\n for(i=0; i 0;) {\n if (j1 < 64) {\n s0 = j1\n j1 = 0\n } else {\n s0 = 64\n j1 -= 64\n }\n for (var j2 = SS[1] | 0; j2 > 0;) {\n if (j2 < 64) {\n s1 = j2\n j2 = 0\n } else {\n s1 = 64\n j2 -= 64\n }\n p0 = (offset0 + j1 * t0p0 + j2 * t0p1)\n p1 = (offset1 + j1 * t1p0 + j2 * t1p1)\n var i0 = 0, i1 = 0, i2 = 0, d0s0 = t0p2, d0s1 = (t0p0 - s2 * t0p2), d0s2 = (t0p1 - s0 * t0p0), d1s0 = t1p2, d1s1 = (t1p0 - s2 * t1p2), d1s2 = (t1p1 - s0 * t1p0)\n for (i2 = 0; i2 < s1; ++i2) {\n for (i1 = 0; i1 < s0; ++i1) {\n for (i0 = 0; i0 < s2; ++i0) {\n a0[p0] = a1[p1] * Y0\n p0 += d0s0\n p1 += d1s0\n }\n p0 += d0s1\n p1 += d1s1\n }\n p0 += d0s2\n p1 += d1s2\n }\n }\n }\n }\n },\n 'float32,1,0,float32,1,0': function () {\n return function assign_cwise_loop_1s0m2f32(SS, a0, t0, p0, a1, t1, p1) {\n var s0 = SS[0], s1 = SS[1], t0p0 = t0[0], t0p1 = t0[1], t1p0 = t1[0], t1p1 = t1[1]\n p0 |= 0\n p1 |= 0\n var i0 = 0, i1 = 0, d0s0 = t0p1, d0s1 = (t0p0 - s1 * t0p1), d1s0 = t1p1, d1s1 = (t1p0 - s1 * t1p1)\n for (i1 = 0; i1 < s0; ++i1) {\n for (i0 = 0; i0 < s1; ++i0) {\n a0[p0] = a1[p1]\n p0 += d0s0\n p1 += d1s0\n }\n p0 += d0s1\n p1 += d1s1\n }\n }\n },\n 'float32,1,0,float32,0,1': function () {\n return function assign_cwise_loop_1s0m0f32(SS, a0, t0, p0, a1, t1, p1) {\n var s0 = SS[0], s1 = SS[1], t0p0 = t0[0], t0p1 = t0[1], t1p0 = t1[0], t1p1 = t1[1]\n p0 |= 0\n p1 |= 0\n var offset0 = p0\n var offset1 = p1\n for (var j0 = SS[1] | 0; j0 > 0;) {\n if (j0 < 64) {\n s1 = j0\n j0 = 0\n } else {\n s1 = 64\n j0 -= 64\n }\n for (var j1 = SS[0] | 0; j1 > 0;) {\n if (j1 < 64) {\n s0 = j1\n j1 = 0\n } else {\n s0 = 64\n j1 -= 64\n }\n p0 = (offset0 + j0 * t0p1 + j1 * t0p0)\n p1 = (offset1 + j0 * t1p1 + j1 * t1p0)\n var i0 = 0, i1 = 0, d0s0 = t0p1, d0s1 = (t0p0 - s1 * t0p1), d1s0 = t1p1, d1s1 = (t1p0 - s1 * t1p1)\n for (i1 = 0; i1 < s0; ++i1) {\n for (i0 = 0; i0 < s1; ++i0) {\n a0[p0] = a1[p1]\n p0 += d0s0\n p1 += d1s0\n }\n p0 += d0s1\n p1 += d1s1\n }\n }\n }\n }\n },\n 'uint8,2,0,1,uint8,1,2,0': function () {\n return function assign_cwise_loop_2s0s1m0u8(SS, a0, t0, p0, a1, t1, p1) {\n var s0 = SS[0], s1 = SS[1], s2 = SS[2], t0p0 = t0[0], t0p1 = t0[1], t0p2 = t0[2], t1p0 = t1[0], t1p1 = t1[1], t1p2 = t1[2]\n p0 |= 0\n p1 |= 0\n var offset0 = p0\n var offset1 = p1\n for (var j0 = SS[2] | 0; j0 > 0;) {\n if (j0 < 64) {\n s2 = j0\n j0 = 0\n } else {\n s2 = 64\n j0 -= 64\n }\n for (var j1 = SS[0] | 0; j1 > 0;) {\n if (j1 < 64) {\n s0 = j1\n j1 = 0\n } else {\n s0 = 64\n j1 -= 64\n }\n for (var j2 = SS[1] | 0; j2 > 0;) {\n if (j2 < 64) {\n s1 = j2\n j2 = 0\n } else {\n s1 = 64\n j2 -= 64\n }\n p0 = (offset0 + j0 * t0p2 + j1 * t0p0 + j2 * t0p1)\n p1 = (offset1 + j0 * t1p2 + j1 * t1p0 + j2 * t1p1)\n var i0 = 0, i1 = 0, i2 = 0, d0s0 = t0p2, d0s1 = (t0p0 - s2 * t0p2), d0s2 = (t0p1 - s0 * t0p0), d1s0 = t1p2, d1s1 = (t1p0 - s2 * t1p2), d1s2 = (t1p1 - s0 * t1p0)\n for (i2 = 0; i2 < s1; ++i2) {\n for (i1 = 0; i1 < s0; ++i1) {\n for (i0 = 0; i0 < s2; ++i0) {\n a0[p0] = a1[p1]\n p0 += d0s0\n p1 += d1s0\n }\n p0 += d0s1\n p1 += d1s1\n }\n p0 += d0s2\n p1 += d1s2\n }\n }\n }\n }\n }\n },\n 'uint8,2,0,1,array,2,0,1': function () {\n return function assign_cwise_loop_2s0s1m3u8a(SS, a0, t0, p0, a1, t1, p1) {\n var s0 = SS[0], s1 = SS[1], s2 = SS[2], t0p0 = t0[0], t0p1 = t0[1], t0p2 = t0[2], t1p0 = t1[0], t1p1 = t1[1], t1p2 = t1[2]\n p0 |= 0\n p1 |= 0\n var i0 = 0, i1 = 0, i2 = 0, d0s0 = t0p2, d0s1 = (t0p0 - s2 * t0p2), d0s2 = (t0p1 - s0 * t0p0), d1s0 = t1p2, d1s1 = (t1p0 - s2 * t1p2), d1s2 = (t1p1 - s0 * t1p0)\n for (i2 = 0; i2 < s1; ++i2) {\n for (i1 = 0; i1 < s0; ++i1) {\n for (i0 = 0; i0 < s2; ++i0) {\n a0[p0] = a1[p1]\n p0 += d0s0\n p1 += d1s0\n }\n p0 += d0s1\n p1 += d1s1\n }\n p0 += d0s2\n p1 += d1s2\n }\n }\n },\n}\n\n//Generates a cwise operator\nfunction generateCWiseOp(proc, typesig) {\n var key = typesig.join(',')\n var f = CACHED_CWiseOp[key]\n return f()\n}\n\nvar compile = generateCWiseOp\n\nvar CACHED_thunk = {\n mul: function (compile) {\n var CACHED = {}\n return function mul_cwise_thunk(array0, array1, array2) {\n var t0 = array0.dtype,\n r0 = array0.order,\n t1 = array1.dtype,\n r1 = array1.order,\n t2 = array2.dtype,\n r2 = array2.order,\n type = [t0, r0.join(), t1, r1.join(), t2, r2.join()].join(),\n proc = CACHED[type]\n if (!proc) {\n CACHED[type] = proc = compile([t0, r0, t1, r1, t2, r2])\n }\n return proc(\n array0.shape.slice(0),\n array0.data,\n array0.stride,\n array0.offset | 0,\n array1.data,\n array1.stride,\n array1.offset | 0,\n array2.data,\n array2.stride,\n array2.offset | 0\n )\n }\n },\n muls: function (compile) {\n var CACHED = {}\n return function muls_cwise_thunk(array0, array1, scalar2) {\n var t0 = array0.dtype,\n r0 = array0.order,\n t1 = array1.dtype,\n r1 = array1.order,\n type = [t0, r0.join(), t1, r1.join()].join(),\n proc = CACHED[type]\n if (!proc) {\n CACHED[type] = proc = compile([t0, r0, t1, r1])\n }\n return proc(\n array0.shape.slice(0),\n array0.data,\n array0.stride,\n array0.offset | 0,\n array1.data,\n array1.stride,\n array1.offset | 0,\n scalar2\n )\n }\n },\n mulseq: function (compile) {\n var CACHED = {}\n return function mulseq_cwise_thunk(array0, scalar1) {\n var t0 = array0.dtype,\n r0 = array0.order,\n type = [t0, r0.join()].join(),\n proc = CACHED[type]\n if (!proc) {\n CACHED[type] = proc = compile([t0, r0])\n }\n return proc(array0.shape.slice(0), array0.data, array0.stride, array0.offset | 0, scalar1)\n }\n },\n div: function (compile) {\n var CACHED = {}\n return function div_cwise_thunk(array0, array1, array2) {\n var t0 = array0.dtype,\n r0 = array0.order,\n t1 = array1.dtype,\n r1 = array1.order,\n t2 = array2.dtype,\n r2 = array2.order,\n type = [t0, r0.join(), t1, r1.join(), t2, r2.join()].join(),\n proc = CACHED[type]\n if (!proc) {\n CACHED[type] = proc = compile([t0, r0, t1, r1, t2, r2])\n }\n return proc(\n array0.shape.slice(0),\n array0.data,\n array0.stride,\n array0.offset | 0,\n array1.data,\n array1.stride,\n array1.offset | 0,\n array2.data,\n array2.stride,\n array2.offset | 0\n )\n }\n },\n divs: function (compile) {\n var CACHED = {}\n return function divs_cwise_thunk(array0, array1, scalar2) {\n var t0 = array0.dtype,\n r0 = array0.order,\n t1 = array1.dtype,\n r1 = array1.order,\n type = [t0, r0.join(), t1, r1.join()].join(),\n proc = CACHED[type]\n if (!proc) {\n CACHED[type] = proc = compile([t0, r0, t1, r1])\n }\n return proc(\n array0.shape.slice(0),\n array0.data,\n array0.stride,\n array0.offset | 0,\n array1.data,\n array1.stride,\n array1.offset | 0,\n scalar2\n )\n }\n },\n divseq: function (compile) {\n var CACHED = {}\n return function divseq_cwise_thunk(array0, scalar1) {\n var t0 = array0.dtype,\n r0 = array0.order,\n type = [t0, r0.join()].join(),\n proc = CACHED[type]\n if (!proc) {\n CACHED[type] = proc = compile([t0, r0])\n }\n return proc(array0.shape.slice(0), array0.data, array0.stride, array0.offset | 0, scalar1)\n }\n },\n assign: function (compile) {\n var CACHED = {}\n return function assign_cwise_thunk(array0, array1) {\n var t0 = array0.dtype,\n r0 = array0.order,\n t1 = array1.dtype,\n r1 = array1.order,\n type = [t0, r0.join(), t1, r1.join()].join(),\n proc = CACHED[type]\n if (!proc) {\n CACHED[type] = proc = compile([t0, r0, t1, r1])\n }\n return proc(\n array0.shape.slice(0),\n array0.data,\n array0.stride,\n array0.offset | 0,\n array1.data,\n array1.stride,\n array1.offset | 0\n )\n }\n },\n}\n\nfunction createThunk(proc) {\n var thunk = CACHED_thunk[proc.funcName]\n return thunk(compile.bind(undefined, proc))\n}\n\nfunction makeOp(user_args) {\n return createThunk({\n funcName: user_args.funcName\n })\n}\n\nvar assign_ops = {\n mul: \"*\",\n div: \"/\",\n}\n;(function(){\n for(var id in assign_ops) {\n exports[id] = makeOp({\n funcName: id\n })\n exports[id+\"s\"] = makeOp({\n funcName: id+\"s\"\n })\n exports[id+\"seq\"] = makeOp({\n funcName: id+\"seq\"\n })\n }\n})();\n\nexports.assign = makeOp({\n funcName: \"assign\" })\n\n},{}],255:[function(_glvis_,module,exports){\n\"use strict\"\n\nvar ndarray = _glvis_(\"ndarray\")\nvar do_convert = _glvis_(\"./doConvert.js\")\n\nmodule.exports = function convert(arr, result) {\n var shape = [], c = arr, sz = 1\n while(Array.isArray(c)) {\n shape.push(c.length)\n sz *= c.length\n c = c[0]\n }\n if(shape.length === 0) {\n return ndarray()\n }\n if(!result) {\n result = ndarray(new Float64Array(sz), shape)\n }\n do_convert(result, arr)\n return result\n}\n\n},{\"./doConvert.js\":256,\"ndarray\":259}],256:[function(_glvis_,module,exports){\n\"use strict\"\n\nfunction CwiseOp() {\n return function (SS, a0, t0, p0, Y0) {\n var s0 = SS[0],\n s1 = SS[1],\n s2 = SS[2],\n t0p0 = t0[0],\n t0p1 = t0[1],\n t0p2 = t0[2],\n index = [0, 0, 0];\n p0 |= 0;\n var i0 = 0,\n i1 = 0,\n i2 = 0,\n d0s0 = t0p2,\n d0s1 = t0p1 - s2 * t0p2,\n d0s2 = t0p0 - s1 * t0p1;\n for (i2 = 0; i2 < s0; ++i2) {\n for (i1 = 0; i1 < s1; ++i1) {\n for (i0 = 0; i0 < s2; ++i0) {\n {\n var _inline_1_v = Y0,\n _inline_1_i;\n for (\n _inline_1_i = 0;\n _inline_1_i < index.length - 1;\n ++_inline_1_i\n ) {\n _inline_1_v = _inline_1_v[index[_inline_1_i]];\n }\n a0[p0] = _inline_1_v[index[index.length - 1]];\n }\n p0 += d0s0;\n ++index[2];\n }\n p0 += d0s1;\n index[2] -= s2;\n ++index[1];\n }\n p0 += d0s2;\n index[1] -= s1;\n ++index[0];\n }\n };\n}\n\n//Generates a cwise operator\nfunction generateCWiseOp() {\n return CwiseOp()\n}\n\nvar compile = generateCWiseOp\n\nfunction thunk(compile) {\n var CACHED = {};\n return function convert_cwise_thunk(array0, scalar1) {\n var t0 = array0.dtype,\n r0 = array0.order,\n type = [t0, r0.join()].join(),\n proc = CACHED[type];\n if (!proc) {\n CACHED[type] = proc = compile([t0, r0]);\n }\n return proc(\n array0.shape.slice(0),\n array0.data,\n array0.stride,\n array0.offset | 0,\n scalar1\n );\n };\n}\n\nfunction createThunk(proc) {\n return thunk(compile.bind(undefined, proc))\n}\n\nfunction compileCwise(user_args) {\n return createThunk({\n funcName: user_args.funcName\n })\n}\n\nmodule.exports = compileCwise({\n funcName: \"convert\"\n});\n\n},{}],257:[function(_glvis_,module,exports){\n\"use strict\"\n\nvar pool = _glvis_(\"typedarray-pool\")\n\nfunction getMallocFree(dtype) {\n switch(dtype) {\n case \"uint32\":\n return [pool.mallocUint32, pool.freeUint32]\n default:\n return null\n }\n}\n\nvar CACHED_insertionSort = {\n \"uint32,1,0\": function (malloc, free) {\n return function ndarrayInsertionSort1d0uint32(left, right, data, offset, s0, s1, n0, n1, d1, e1, f1) {\n var i,\n j,\n cptr,\n ptr = left * s0 + offset,\n i1,\n scratch = malloc(n1),\n dptr,\n sptr,\n a,\n b\n for (i = left + 1; i <= right; ++i) {\n j = i\n ptr += s0\n cptr = ptr\n dptr = 0\n sptr = ptr\n for (i1 = 0; i1 < n1; ++i1) {\n scratch[dptr++] = data[sptr]\n sptr += d1\n }\n __g: while (j-- > left) {\n dptr = 0\n sptr = cptr - s0\n __l: for (i1 = 0; i1 < n1; ++i1) {\n a = data[sptr]\n b = scratch[dptr]\n if (a < b) {\n break __g\n }\n if (a > b) {\n break __l\n }\n sptr += e1\n dptr += f1\n }\n dptr = cptr\n sptr = cptr - s0\n for (i1 = 0; i1 < n1; ++i1) {\n data[dptr] = data[sptr]\n dptr += d1\n sptr += d1\n }\n cptr -= s0\n }\n dptr = cptr\n sptr = 0\n for (i1 = 0; i1 < n1; ++i1) {\n data[dptr] = scratch[sptr++]\n dptr += d1\n }\n }\n free(scratch)\n }\n },\n}\n\nfunction createInsertionSort(order, dtype) {\n var allocator = getMallocFree(dtype)\n var key = [dtype, order].join(',')\n var result = CACHED_insertionSort[key]\n\n if(allocator) {\n return result(allocator[0], allocator[1])\n } else {\n return result()\n }\n}\n\nvar CACHED_quickSort = {\n \"uint32,1,0\": function (insertionSort, malloc, free) {\n return function ndarrayQuickSort1d0uint32(left, right, data, offset, s0, s1, n0, n1, d1, e1, f1) {\n var sixth = ((right - left + 1) / 6) | 0,\n index1 = left + sixth,\n index5 = right - sixth,\n index3 = (left + right) >> 1,\n index2 = index3 - sixth,\n index4 = index3 + sixth,\n el1 = index1,\n el2 = index2,\n el3 = index3,\n el4 = index4,\n el5 = index5,\n less = left + 1,\n great = right - 1,\n pivots_are_equal = true,\n tmp,\n tmp0,\n x,\n y,\n z,\n k,\n ptr0,\n ptr1,\n ptr2,\n comp_pivot1 = 0,\n comp_pivot2 = 0,\n comp = 0,\n i1,\n b_ptr0,\n b_ptr1,\n b_ptr2,\n b_ptr3,\n b_ptr4,\n b_ptr5,\n b_ptr6,\n b_ptr7,\n ptr3,\n ptr4,\n ptr5,\n ptr6,\n ptr7,\n pivot_ptr,\n ptr_shift,\n elementSize = n1,\n pivot1 = malloc(elementSize),\n pivot2 = malloc(elementSize)\n b_ptr0 = s0 * el1\n b_ptr1 = s0 * el2\n ptr_shift = offset\n __l1: for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n comp = data[ptr0] - data[ptr1]\n if (comp > 0) {\n tmp0 = el1\n el1 = el2\n el2 = tmp0\n break __l1\n }\n if (comp < 0) {\n break __l1\n }\n ptr_shift += e1\n }\n b_ptr0 = s0 * el4\n b_ptr1 = s0 * el5\n ptr_shift = offset\n __l2: for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n comp = data[ptr0] - data[ptr1]\n if (comp > 0) {\n tmp0 = el4\n el4 = el5\n el5 = tmp0\n break __l2\n }\n if (comp < 0) {\n break __l2\n }\n ptr_shift += e1\n }\n b_ptr0 = s0 * el1\n b_ptr1 = s0 * el3\n ptr_shift = offset\n __l3: for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n comp = data[ptr0] - data[ptr1]\n if (comp > 0) {\n tmp0 = el1\n el1 = el3\n el3 = tmp0\n break __l3\n }\n if (comp < 0) {\n break __l3\n }\n ptr_shift += e1\n }\n b_ptr0 = s0 * el2\n b_ptr1 = s0 * el3\n ptr_shift = offset\n __l4: for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n comp = data[ptr0] - data[ptr1]\n if (comp > 0) {\n tmp0 = el2\n el2 = el3\n el3 = tmp0\n break __l4\n }\n if (comp < 0) {\n break __l4\n }\n ptr_shift += e1\n }\n b_ptr0 = s0 * el1\n b_ptr1 = s0 * el4\n ptr_shift = offset\n __l5: for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n comp = data[ptr0] - data[ptr1]\n if (comp > 0) {\n tmp0 = el1\n el1 = el4\n el4 = tmp0\n break __l5\n }\n if (comp < 0) {\n break __l5\n }\n ptr_shift += e1\n }\n b_ptr0 = s0 * el3\n b_ptr1 = s0 * el4\n ptr_shift = offset\n __l6: for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n comp = data[ptr0] - data[ptr1]\n if (comp > 0) {\n tmp0 = el3\n el3 = el4\n el4 = tmp0\n break __l6\n }\n if (comp < 0) {\n break __l6\n }\n ptr_shift += e1\n }\n b_ptr0 = s0 * el2\n b_ptr1 = s0 * el5\n ptr_shift = offset\n __l7: for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n comp = data[ptr0] - data[ptr1]\n if (comp > 0) {\n tmp0 = el2\n el2 = el5\n el5 = tmp0\n break __l7\n }\n if (comp < 0) {\n break __l7\n }\n ptr_shift += e1\n }\n b_ptr0 = s0 * el2\n b_ptr1 = s0 * el3\n ptr_shift = offset\n __l8: for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n comp = data[ptr0] - data[ptr1]\n if (comp > 0) {\n tmp0 = el2\n el2 = el3\n el3 = tmp0\n break __l8\n }\n if (comp < 0) {\n break __l8\n }\n ptr_shift += e1\n }\n b_ptr0 = s0 * el4\n b_ptr1 = s0 * el5\n ptr_shift = offset\n __l9: for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n comp = data[ptr0] - data[ptr1]\n if (comp > 0) {\n tmp0 = el4\n el4 = el5\n el5 = tmp0\n break __l9\n }\n if (comp < 0) {\n break __l9\n }\n ptr_shift += e1\n }\n b_ptr0 = s0 * el1\n b_ptr1 = s0 * el2\n b_ptr2 = s0 * el3\n b_ptr3 = s0 * el4\n b_ptr4 = s0 * el5\n b_ptr5 = s0 * index1\n b_ptr6 = s0 * index3\n b_ptr7 = s0 * index5\n pivot_ptr = 0\n ptr_shift = offset\n for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n ptr2 = b_ptr2 + ptr_shift\n ptr3 = b_ptr3 + ptr_shift\n ptr4 = b_ptr4 + ptr_shift\n ptr5 = b_ptr5 + ptr_shift\n ptr6 = b_ptr6 + ptr_shift\n ptr7 = b_ptr7 + ptr_shift\n pivot1[pivot_ptr] = data[ptr1]\n pivot2[pivot_ptr] = data[ptr3]\n pivots_are_equal = pivots_are_equal && pivot1[pivot_ptr] === pivot2[pivot_ptr]\n x = data[ptr0]\n y = data[ptr2]\n z = data[ptr4]\n data[ptr5] = x\n data[ptr6] = y\n data[ptr7] = z\n ++pivot_ptr\n ptr_shift += d1\n }\n b_ptr0 = s0 * index2\n b_ptr1 = s0 * left\n ptr_shift = offset\n for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n data[ptr0] = data[ptr1]\n ptr_shift += d1\n }\n b_ptr0 = s0 * index4\n b_ptr1 = s0 * right\n ptr_shift = offset\n for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n data[ptr0] = data[ptr1]\n ptr_shift += d1\n }\n if (pivots_are_equal) {\n for (k = less; k <= great; ++k) {\n ptr0 = offset + k * s0\n pivot_ptr = 0\n __l10: for (i1 = 0; i1 < n1; ++i1) {\n comp = data[ptr0] - pivot1[pivot_ptr]\n if (comp !== 0) {\n break __l10\n }\n pivot_ptr += f1\n ptr0 += e1\n }\n if (comp === 0) {\n continue\n }\n if (comp < 0) {\n if (k !== less) {\n b_ptr0 = s0 * k\n b_ptr1 = s0 * less\n ptr_shift = offset\n for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n tmp = data[ptr0]\n data[ptr0] = data[ptr1]\n data[ptr1] = tmp\n ptr_shift += d1\n }\n }\n ++less\n } else {\n while (true) {\n ptr0 = offset + great * s0\n pivot_ptr = 0\n __l11: for (i1 = 0; i1 < n1; ++i1) {\n comp = data[ptr0] - pivot1[pivot_ptr]\n if (comp !== 0) {\n break __l11\n }\n pivot_ptr += f1\n ptr0 += e1\n }\n if (comp > 0) {\n great--\n } else if (comp < 0) {\n b_ptr0 = s0 * k\n b_ptr1 = s0 * less\n b_ptr2 = s0 * great\n ptr_shift = offset\n for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n ptr2 = b_ptr2 + ptr_shift\n tmp = data[ptr0]\n data[ptr0] = data[ptr1]\n data[ptr1] = data[ptr2]\n data[ptr2] = tmp\n ptr_shift += d1\n }\n ++less\n --great\n break\n } else {\n b_ptr0 = s0 * k\n b_ptr1 = s0 * great\n ptr_shift = offset\n for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n tmp = data[ptr0]\n data[ptr0] = data[ptr1]\n data[ptr1] = tmp\n ptr_shift += d1\n }\n --great\n break\n }\n }\n }\n }\n } else {\n for (k = less; k <= great; ++k) {\n ptr0 = offset + k * s0\n pivot_ptr = 0\n __l12: for (i1 = 0; i1 < n1; ++i1) {\n comp_pivot1 = data[ptr0] - pivot1[pivot_ptr]\n if (comp_pivot1 !== 0) {\n break __l12\n }\n pivot_ptr += f1\n ptr0 += e1\n }\n if (comp_pivot1 < 0) {\n if (k !== less) {\n b_ptr0 = s0 * k\n b_ptr1 = s0 * less\n ptr_shift = offset\n for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n tmp = data[ptr0]\n data[ptr0] = data[ptr1]\n data[ptr1] = tmp\n ptr_shift += d1\n }\n }\n ++less\n } else {\n ptr0 = offset + k * s0\n pivot_ptr = 0\n __l13: for (i1 = 0; i1 < n1; ++i1) {\n comp_pivot2 = data[ptr0] - pivot2[pivot_ptr]\n if (comp_pivot2 !== 0) {\n break __l13\n }\n pivot_ptr += f1\n ptr0 += e1\n }\n if (comp_pivot2 > 0) {\n while (true) {\n ptr0 = offset + great * s0\n pivot_ptr = 0\n __l14: for (i1 = 0; i1 < n1; ++i1) {\n comp = data[ptr0] - pivot2[pivot_ptr]\n if (comp !== 0) {\n break __l14\n }\n pivot_ptr += f1\n ptr0 += e1\n }\n if (comp > 0) {\n if (--great < k) {\n break\n }\n continue\n } else {\n ptr0 = offset + great * s0\n pivot_ptr = 0\n __l15: for (i1 = 0; i1 < n1; ++i1) {\n comp = data[ptr0] - pivot1[pivot_ptr]\n if (comp !== 0) {\n break __l15\n }\n pivot_ptr += f1\n ptr0 += e1\n }\n if (comp < 0) {\n b_ptr0 = s0 * k\n b_ptr1 = s0 * less\n b_ptr2 = s0 * great\n ptr_shift = offset\n for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n ptr2 = b_ptr2 + ptr_shift\n tmp = data[ptr0]\n data[ptr0] = data[ptr1]\n data[ptr1] = data[ptr2]\n data[ptr2] = tmp\n ptr_shift += d1\n }\n ++less\n --great\n } else {\n b_ptr0 = s0 * k\n b_ptr1 = s0 * great\n ptr_shift = offset\n for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n tmp = data[ptr0]\n data[ptr0] = data[ptr1]\n data[ptr1] = tmp\n ptr_shift += d1\n }\n --great\n }\n break\n }\n }\n }\n }\n }\n }\n b_ptr0 = s0 * left\n b_ptr1 = s0 * (less - 1)\n pivot_ptr = 0\n ptr_shift = offset\n for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n data[ptr0] = data[ptr1]\n data[ptr1] = pivot1[pivot_ptr]\n ++pivot_ptr\n ptr_shift += d1\n }\n b_ptr0 = s0 * right\n b_ptr1 = s0 * (great + 1)\n pivot_ptr = 0\n ptr_shift = offset\n for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n data[ptr0] = data[ptr1]\n data[ptr1] = pivot2[pivot_ptr]\n ++pivot_ptr\n ptr_shift += d1\n }\n if (less - 2 - left <= 32) {\n insertionSort(left, less - 2, data, offset, s0, s1, n0, n1, d1, e1, f1)\n } else {\n ndarrayQuickSort1d0uint32(left, less - 2, data, offset, s0, s1, n0, n1, d1, e1, f1)\n }\n if (right - (great + 2) <= 32) {\n insertionSort(great + 2, right, data, offset, s0, s1, n0, n1, d1, e1, f1)\n } else {\n ndarrayQuickSort1d0uint32(great + 2, right, data, offset, s0, s1, n0, n1, d1, e1, f1)\n }\n if (pivots_are_equal) {\n free(pivot1)\n free(pivot2)\n return\n }\n if (less < index1 && great > index5) {\n __l16: while (true) {\n ptr0 = offset + less * s0\n pivot_ptr = 0\n ptr_shift = offset\n for (i1 = 0; i1 < n1; ++i1) {\n if (data[ptr0] !== pivot1[pivot_ptr]) {\n break __l16\n }\n ++pivot_ptr\n ptr0 += d1\n }\n ++less\n }\n __l17: while (true) {\n ptr0 = offset + great * s0\n pivot_ptr = 0\n ptr_shift = offset\n for (i1 = 0; i1 < n1; ++i1) {\n if (data[ptr0] !== pivot2[pivot_ptr]) {\n break __l17\n }\n ++pivot_ptr\n ptr0 += d1\n }\n --great\n }\n for (k = less; k <= great; ++k) {\n ptr0 = offset + k * s0\n pivot_ptr = 0\n __l18: for (i1 = 0; i1 < n1; ++i1) {\n comp_pivot1 = data[ptr0] - pivot1[pivot_ptr]\n if (comp_pivot1 !== 0) {\n break __l18\n }\n pivot_ptr += f1\n ptr0 += e1\n }\n if (comp_pivot1 === 0) {\n if (k !== less) {\n b_ptr0 = s0 * k\n b_ptr1 = s0 * less\n ptr_shift = offset\n for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n tmp = data[ptr0]\n data[ptr0] = data[ptr1]\n data[ptr1] = tmp\n ptr_shift += d1\n }\n }\n ++less\n } else {\n ptr0 = offset + k * s0\n pivot_ptr = 0\n __l19: for (i1 = 0; i1 < n1; ++i1) {\n comp_pivot2 = data[ptr0] - pivot2[pivot_ptr]\n if (comp_pivot2 !== 0) {\n break __l19\n }\n pivot_ptr += f1\n ptr0 += e1\n }\n if (comp_pivot2 === 0) {\n while (true) {\n ptr0 = offset + great * s0\n pivot_ptr = 0\n __l20: for (i1 = 0; i1 < n1; ++i1) {\n comp = data[ptr0] - pivot2[pivot_ptr]\n if (comp !== 0) {\n break __l20\n }\n pivot_ptr += f1\n ptr0 += e1\n }\n if (comp === 0) {\n if (--great < k) {\n break\n }\n continue\n } else {\n ptr0 = offset + great * s0\n pivot_ptr = 0\n __l21: for (i1 = 0; i1 < n1; ++i1) {\n comp = data[ptr0] - pivot1[pivot_ptr]\n if (comp !== 0) {\n break __l21\n }\n pivot_ptr += f1\n ptr0 += e1\n }\n if (comp < 0) {\n b_ptr0 = s0 * k\n b_ptr1 = s0 * less\n b_ptr2 = s0 * great\n ptr_shift = offset\n for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n ptr2 = b_ptr2 + ptr_shift\n tmp = data[ptr0]\n data[ptr0] = data[ptr1]\n data[ptr1] = data[ptr2]\n data[ptr2] = tmp\n ptr_shift += d1\n }\n ++less\n --great\n } else {\n b_ptr0 = s0 * k\n b_ptr1 = s0 * great\n ptr_shift = offset\n for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n tmp = data[ptr0]\n data[ptr0] = data[ptr1]\n data[ptr1] = tmp\n ptr_shift += d1\n }\n --great\n }\n break\n }\n }\n }\n }\n }\n }\n free(pivot1)\n free(pivot2)\n if (great - less <= 32) {\n insertionSort(less, great, data, offset, s0, s1, n0, n1, d1, e1, f1)\n } else {\n ndarrayQuickSort1d0uint32(less, great, data, offset, s0, s1, n0, n1, d1, e1, f1)\n }\n }\n },\n}\n\nfunction createQuickSort(order, dtype, insertionSort) {\n var allocator = getMallocFree(dtype)\n var key = [dtype, order].join(',')\n var result = CACHED_quickSort[key]\n\n if(order.length > 1 && allocator) {\n return result(insertionSort, allocator[0], allocator[1])\n } else {\n return result(insertionSort)\n }\n}\n\nvar CACHED_sort = {\n \"uint32,1,0\": function (insertionSort, quickSort) {\n return function (array) {\n var data = array.data,\n offset = array.offset | 0,\n shape = array.shape,\n stride = array.stride,\n s0 = stride[0] | 0,\n n0 = shape[0] | 0,\n s1 = stride[1] | 0,\n n1 = shape[1] | 0,\n d1 = s1,\n e1 = s1,\n f1 = 1\n if (n0 <= 32) {\n insertionSort(0, n0 - 1, data, offset, s0, s1, n0, n1, d1, e1, f1)\n } else {\n quickSort(0, n0 - 1, data, offset, s0, s1, n0, n1, d1, e1, f1)\n }\n }\n },\n}\n\nfunction compileSort(order, dtype) {\n var key = [dtype, order].join(',')\n var result = CACHED_sort[key]\n\n var insertionSort = createInsertionSort(order, dtype)\n var quickSort = createQuickSort(order, dtype, insertionSort)\n return result(insertionSort, quickSort)\n}\n\nmodule.exports = compileSort\n},{\"typedarray-pool\":308}],258:[function(_glvis_,module,exports){\n\"use strict\"\n\nvar compile = _glvis_(\"./lib/compile_sort.js\")\nvar CACHE = {}\n\nfunction sort(array) {\n var order = array.order\n var dtype = array.dtype\n var typeSig = [order, dtype ]\n var typeName = typeSig.join(\":\")\n var compiled = CACHE[typeName]\n if(!compiled) {\n CACHE[typeName] = compiled = compile(order, dtype)\n }\n compiled(array)\n return array\n}\n\nmodule.exports = sort\n},{\"./lib/compile_sort.js\":257}],259:[function(_glvis_,module,exports){\nvar isBuffer = _glvis_(\"is-buffer\")\n\nvar hasTypedArrays = ((typeof Float64Array) !== \"undefined\")\n\nfunction compare1st(a, b) {\n return a[0] - b[0]\n}\n\nfunction order() {\n var stride = this.stride\n var terms = new Array(stride.length)\n var i\n for(i=0; i= 0) {\n d = i0 | 0\n b += c0 * d\n a0 -= d\n }\n return new View(this.data, a0, c0, b)\n }\n proto.step = function step(i0) {\n var a0 = this.shape[0],\n b0 = this.stride[0],\n c = this.offset,\n d = 0,\n ceil = Math.ceil\n if (typeof i0 === \"number\") {\n d = i0 | 0\n if (d < 0) {\n c += b0 * (a0 - 1)\n a0 = ceil(-a0 / d)\n } else {\n a0 = ceil(a0 / d)\n }\n b0 *= d\n }\n return new View(this.data, a0, b0, c)\n }\n proto.transpose = function transpose(i0) {\n i0 = i0 === undefined ? 0 : i0 | 0\n var a = this.shape,\n b = this.stride\n return new View(this.data, a[i0], b[i0], this.offset)\n }\n proto.pick = function pick(i0) {\n var a = [],\n b = [],\n c = this.offset\n if (typeof i0 === \"number\" && i0 >= 0) {\n c = (c + this.stride[0] * i0) | 0\n } else {\n a.push(this.shape[0])\n b.push(this.stride[0])\n }\n var ctor = CTOR_LIST[a.length + 1]\n return ctor(this.data, a, b, c)\n }\n return function construct(data, shape, stride, offset) {\n return new View(data, shape[0], stride[0], offset)\n }\n },\n 2: function (dtype, CTOR_LIST, ORDER) {\n function View(a, b0, b1, c0, c1, d) {\n this.data = a\n this.shape = [b0, b1]\n this.stride = [c0, c1]\n this.offset = d | 0\n }\n var proto = View.prototype\n proto.dtype = dtype\n proto.dimension = 2\n Object.defineProperty(proto, \"size\", {\n get: function size() {\n return this.shape[0] * this.shape[1]\n },\n })\n Object.defineProperty(proto, \"order\", {\n get: function order() {\n return Math.abs(this.stride[0]) > Math.abs(this.stride[1]) ? [1, 0] : [0, 1]\n },\n })\n proto.set = function set(i0, i1, v) {\n return dtype === \"generic\"\n ? this.data.set(this.offset + this.stride[0] * i0 + this.stride[1] * i1, v)\n : (this.data[this.offset + this.stride[0] * i0 + this.stride[1] * i1] = v)\n }\n proto.get = function get(i0, i1) {\n return dtype === \"generic\"\n ? this.data.get(this.offset + this.stride[0] * i0 + this.stride[1] * i1)\n : this.data[this.offset + this.stride[0] * i0 + this.stride[1] * i1]\n }\n proto.index = function index(i0, i1) {\n return this.offset + this.stride[0] * i0 + this.stride[1] * i1\n }\n proto.hi = function hi(i0, i1) {\n return new View(\n this.data,\n typeof i0 !== \"number\" || i0 < 0 ? this.shape[0] : i0 | 0,\n typeof i1 !== \"number\" || i1 < 0 ? this.shape[1] : i1 | 0,\n this.stride[0],\n this.stride[1],\n this.offset\n )\n }\n proto.lo = function lo(i0, i1) {\n var b = this.offset,\n d = 0,\n a0 = this.shape[0],\n a1 = this.shape[1],\n c0 = this.stride[0],\n c1 = this.stride[1]\n if (typeof i0 === \"number\" && i0 >= 0) {\n d = i0 | 0\n b += c0 * d\n a0 -= d\n }\n if (typeof i1 === \"number\" && i1 >= 0) {\n d = i1 | 0\n b += c1 * d\n a1 -= d\n }\n return new View(this.data, a0, a1, c0, c1, b)\n }\n proto.step = function step(i0, i1) {\n var a0 = this.shape[0],\n a1 = this.shape[1],\n b0 = this.stride[0],\n b1 = this.stride[1],\n c = this.offset,\n d = 0,\n ceil = Math.ceil\n if (typeof i0 === \"number\") {\n d = i0 | 0\n if (d < 0) {\n c += b0 * (a0 - 1)\n a0 = ceil(-a0 / d)\n } else {\n a0 = ceil(a0 / d)\n }\n b0 *= d\n }\n if (typeof i1 === \"number\") {\n d = i1 | 0\n if (d < 0) {\n c += b1 * (a1 - 1)\n a1 = ceil(-a1 / d)\n } else {\n a1 = ceil(a1 / d)\n }\n b1 *= d\n }\n return new View(this.data, a0, a1, b0, b1, c)\n }\n proto.transpose = function transpose(i0, i1) {\n i0 = i0 === undefined ? 0 : i0 | 0\n i1 = i1 === undefined ? 1 : i1 | 0\n var a = this.shape,\n b = this.stride\n return new View(this.data, a[i0], a[i1], b[i0], b[i1], this.offset)\n }\n proto.pick = function pick(i0, i1) {\n var a = [],\n b = [],\n c = this.offset\n if (typeof i0 === \"number\" && i0 >= 0) {\n c = (c + this.stride[0] * i0) | 0\n } else {\n a.push(this.shape[0])\n b.push(this.stride[0])\n }\n if (typeof i1 === \"number\" && i1 >= 0) {\n c = (c + this.stride[1] * i1) | 0\n } else {\n a.push(this.shape[1])\n b.push(this.stride[1])\n }\n var ctor = CTOR_LIST[a.length + 1]\n return ctor(this.data, a, b, c)\n }\n return function construct(data, shape, stride, offset) {\n return new View(data, shape[0], shape[1], stride[0], stride[1], offset)\n }\n },\n 3: function (dtype, CTOR_LIST, ORDER) {\n function View(a, b0, b1, b2, c0, c1, c2, d) {\n this.data = a\n this.shape = [b0, b1, b2]\n this.stride = [c0, c1, c2]\n this.offset = d | 0\n }\n var proto = View.prototype\n proto.dtype = dtype\n proto.dimension = 3\n Object.defineProperty(proto, \"size\", {\n get: function size() {\n return this.shape[0] * this.shape[1] * this.shape[2]\n },\n })\n Object.defineProperty(proto, \"order\", {\n get: function order() {\n var s0 = Math.abs(this.stride[0]),\n s1 = Math.abs(this.stride[1]),\n s2 = Math.abs(this.stride[2])\n if (s0 > s1) {\n if (s1 > s2) {\n return [2, 1, 0]\n } else if (s0 > s2) {\n return [1, 2, 0]\n } else {\n return [1, 0, 2]\n }\n } else if (s0 > s2) {\n return [2, 0, 1]\n } else if (s2 > s1) {\n return [0, 1, 2]\n } else {\n return [0, 2, 1]\n }\n },\n })\n proto.set = function set(i0, i1, i2, v) {\n return dtype === \"generic\"\n ? this.data.set(this.offset + this.stride[0] * i0 + this.stride[1] * i1 + this.stride[2] * i2, v)\n : (this.data[this.offset + this.stride[0] * i0 + this.stride[1] * i1 + this.stride[2] * i2] = v)\n }\n proto.get = function get(i0, i1, i2) {\n return dtype === \"generic\"\n ? this.data.get(this.offset + this.stride[0] * i0 + this.stride[1] * i1 + this.stride[2] * i2)\n : this.data[this.offset + this.stride[0] * i0 + this.stride[1] * i1 + this.stride[2] * i2]\n }\n proto.index = function index(i0, i1, i2) {\n return this.offset + this.stride[0] * i0 + this.stride[1] * i1 + this.stride[2] * i2\n }\n proto.hi = function hi(i0, i1, i2) {\n return new View(\n this.data,\n typeof i0 !== \"number\" || i0 < 0 ? this.shape[0] : i0 | 0,\n typeof i1 !== \"number\" || i1 < 0 ? this.shape[1] : i1 | 0,\n typeof i2 !== \"number\" || i2 < 0 ? this.shape[2] : i2 | 0,\n this.stride[0],\n this.stride[1],\n this.stride[2],\n this.offset\n )\n }\n proto.lo = function lo(i0, i1, i2) {\n var b = this.offset,\n d = 0,\n a0 = this.shape[0],\n a1 = this.shape[1],\n a2 = this.shape[2],\n c0 = this.stride[0],\n c1 = this.stride[1],\n c2 = this.stride[2]\n if (typeof i0 === \"number\" && i0 >= 0) {\n d = i0 | 0\n b += c0 * d\n a0 -= d\n }\n if (typeof i1 === \"number\" && i1 >= 0) {\n d = i1 | 0\n b += c1 * d\n a1 -= d\n }\n if (typeof i2 === \"number\" && i2 >= 0) {\n d = i2 | 0\n b += c2 * d\n a2 -= d\n }\n return new View(this.data, a0, a1, a2, c0, c1, c2, b)\n }\n proto.step = function step(i0, i1, i2) {\n var a0 = this.shape[0],\n a1 = this.shape[1],\n a2 = this.shape[2],\n b0 = this.stride[0],\n b1 = this.stride[1],\n b2 = this.stride[2],\n c = this.offset,\n d = 0,\n ceil = Math.ceil\n if (typeof i0 === \"number\") {\n d = i0 | 0\n if (d < 0) {\n c += b0 * (a0 - 1)\n a0 = ceil(-a0 / d)\n } else {\n a0 = ceil(a0 / d)\n }\n b0 *= d\n }\n if (typeof i1 === \"number\") {\n d = i1 | 0\n if (d < 0) {\n c += b1 * (a1 - 1)\n a1 = ceil(-a1 / d)\n } else {\n a1 = ceil(a1 / d)\n }\n b1 *= d\n }\n if (typeof i2 === \"number\") {\n d = i2 | 0\n if (d < 0) {\n c += b2 * (a2 - 1)\n a2 = ceil(-a2 / d)\n } else {\n a2 = ceil(a2 / d)\n }\n b2 *= d\n }\n return new View(this.data, a0, a1, a2, b0, b1, b2, c)\n }\n proto.transpose = function transpose(i0, i1, i2) {\n i0 = i0 === undefined ? 0 : i0 | 0\n i1 = i1 === undefined ? 1 : i1 | 0\n i2 = i2 === undefined ? 2 : i2 | 0\n var a = this.shape,\n b = this.stride\n return new View(this.data, a[i0], a[i1], a[i2], b[i0], b[i1], b[i2], this.offset)\n }\n proto.pick = function pick(i0, i1, i2) {\n var a = [],\n b = [],\n c = this.offset\n if (typeof i0 === \"number\" && i0 >= 0) {\n c = (c + this.stride[0] * i0) | 0\n } else {\n a.push(this.shape[0])\n b.push(this.stride[0])\n }\n if (typeof i1 === \"number\" && i1 >= 0) {\n c = (c + this.stride[1] * i1) | 0\n } else {\n a.push(this.shape[1])\n b.push(this.stride[1])\n }\n if (typeof i2 === \"number\" && i2 >= 0) {\n c = (c + this.stride[2] * i2) | 0\n } else {\n a.push(this.shape[2])\n b.push(this.stride[2])\n }\n var ctor = CTOR_LIST[a.length + 1]\n return ctor(this.data, a, b, c)\n }\n return function construct(data, shape, stride, offset) {\n return new View(data, shape[0], shape[1], shape[2], stride[0], stride[1], stride[2], offset)\n }\n },\n 4: function (dtype, CTOR_LIST, ORDER) {\n function View(a, b0, b1, b2, b3, c0, c1, c2, c3, d) {\n this.data = a\n this.shape = [b0, b1, b2, b3]\n this.stride = [c0, c1, c2, c3]\n this.offset = d | 0\n }\n var proto = View.prototype\n proto.dtype = dtype\n proto.dimension = 4\n Object.defineProperty(proto, \"size\", {\n get: function size() {\n return this.shape[0] * this.shape[1] * this.shape[2] * this.shape[3]\n },\n })\n Object.defineProperty(proto, \"order\", { get: ORDER })\n proto.set = function set(i0, i1, i2, i3, v) {\n return dtype === \"generic\"\n ? this.data.set(this.offset + this.stride[0] * i0 + this.stride[1] * i1 + this.stride[2] * i2 + this.stride[3] * i3, v)\n : (this.data[this.offset + this.stride[0] * i0 + this.stride[1] * i1 + this.stride[2] * i2 + this.stride[3] * i3] = v)\n }\n proto.get = function get(i0, i1, i2, i3) {\n return dtype === \"generic\"\n ? this.data.get(this.offset + this.stride[0] * i0 + this.stride[1] * i1 + this.stride[2] * i2 + this.stride[3] * i3)\n : this.data[this.offset + this.stride[0] * i0 + this.stride[1] * i1 + this.stride[2] * i2 + this.stride[3] * i3]\n }\n proto.index = function index(i0, i1, i2, i3) {\n return this.offset + this.stride[0] * i0 + this.stride[1] * i1 + this.stride[2] * i2 + this.stride[3] * i3\n }\n proto.hi = function hi(i0, i1, i2, i3) {\n return new View(\n this.data,\n typeof i0 !== \"number\" || i0 < 0 ? this.shape[0] : i0 | 0,\n typeof i1 !== \"number\" || i1 < 0 ? this.shape[1] : i1 | 0,\n typeof i2 !== \"number\" || i2 < 0 ? this.shape[2] : i2 | 0,\n typeof i3 !== \"number\" || i3 < 0 ? this.shape[3] : i3 | 0,\n this.stride[0],\n this.stride[1],\n this.stride[2],\n this.stride[3],\n this.offset\n )\n }\n proto.lo = function lo(i0, i1, i2, i3) {\n var b = this.offset,\n d = 0,\n a0 = this.shape[0],\n a1 = this.shape[1],\n a2 = this.shape[2],\n a3 = this.shape[3],\n c0 = this.stride[0],\n c1 = this.stride[1],\n c2 = this.stride[2],\n c3 = this.stride[3]\n if (typeof i0 === \"number\" && i0 >= 0) {\n d = i0 | 0\n b += c0 * d\n a0 -= d\n }\n if (typeof i1 === \"number\" && i1 >= 0) {\n d = i1 | 0\n b += c1 * d\n a1 -= d\n }\n if (typeof i2 === \"number\" && i2 >= 0) {\n d = i2 | 0\n b += c2 * d\n a2 -= d\n }\n if (typeof i3 === \"number\" && i3 >= 0) {\n d = i3 | 0\n b += c3 * d\n a3 -= d\n }\n return new View(this.data, a0, a1, a2, a3, c0, c1, c2, c3, b)\n }\n proto.step = function step(i0, i1, i2, i3) {\n var a0 = this.shape[0],\n a1 = this.shape[1],\n a2 = this.shape[2],\n a3 = this.shape[3],\n b0 = this.stride[0],\n b1 = this.stride[1],\n b2 = this.stride[2],\n b3 = this.stride[3],\n c = this.offset,\n d = 0,\n ceil = Math.ceil\n if (typeof i0 === \"number\") {\n d = i0 | 0\n if (d < 0) {\n c += b0 * (a0 - 1)\n a0 = ceil(-a0 / d)\n } else {\n a0 = ceil(a0 / d)\n }\n b0 *= d\n }\n if (typeof i1 === \"number\") {\n d = i1 | 0\n if (d < 0) {\n c += b1 * (a1 - 1)\n a1 = ceil(-a1 / d)\n } else {\n a1 = ceil(a1 / d)\n }\n b1 *= d\n }\n if (typeof i2 === \"number\") {\n d = i2 | 0\n if (d < 0) {\n c += b2 * (a2 - 1)\n a2 = ceil(-a2 / d)\n } else {\n a2 = ceil(a2 / d)\n }\n b2 *= d\n }\n if (typeof i3 === \"number\") {\n d = i3 | 0\n if (d < 0) {\n c += b3 * (a3 - 1)\n a3 = ceil(-a3 / d)\n } else {\n a3 = ceil(a3 / d)\n }\n b3 *= d\n }\n return new View(this.data, a0, a1, a2, a3, b0, b1, b2, b3, c)\n }\n proto.transpose = function transpose(i0, i1, i2, i3) {\n i0 = i0 === undefined ? 0 : i0 | 0\n i1 = i1 === undefined ? 1 : i1 | 0\n i2 = i2 === undefined ? 2 : i2 | 0\n i3 = i3 === undefined ? 3 : i3 | 0\n var a = this.shape,\n b = this.stride\n return new View(this.data, a[i0], a[i1], a[i2], a[i3], b[i0], b[i1], b[i2], b[i3], this.offset)\n }\n proto.pick = function pick(i0, i1, i2, i3) {\n var a = [],\n b = [],\n c = this.offset\n if (typeof i0 === \"number\" && i0 >= 0) {\n c = (c + this.stride[0] * i0) | 0\n } else {\n a.push(this.shape[0])\n b.push(this.stride[0])\n }\n if (typeof i1 === \"number\" && i1 >= 0) {\n c = (c + this.stride[1] * i1) | 0\n } else {\n a.push(this.shape[1])\n b.push(this.stride[1])\n }\n if (typeof i2 === \"number\" && i2 >= 0) {\n c = (c + this.stride[2] * i2) | 0\n } else {\n a.push(this.shape[2])\n b.push(this.stride[2])\n }\n if (typeof i3 === \"number\" && i3 >= 0) {\n c = (c + this.stride[3] * i3) | 0\n } else {\n a.push(this.shape[3])\n b.push(this.stride[3])\n }\n var ctor = CTOR_LIST[a.length + 1]\n return ctor(this.data, a, b, c)\n }\n return function construct(data, shape, stride, offset) {\n return new View(data, shape[0], shape[1], shape[2], shape[3], stride[0], stride[1], stride[2], stride[3], offset)\n }\n },\n 5: function anonymous(dtype, CTOR_LIST, ORDER) {\n function View(a, b0, b1, b2, b3, b4, c0, c1, c2, c3, c4, d) {\n this.data = a\n this.shape = [b0, b1, b2, b3, b4]\n this.stride = [c0, c1, c2, c3, c4]\n this.offset = d | 0\n }\n var proto = View.prototype\n proto.dtype = dtype\n proto.dimension = 5\n Object.defineProperty(proto, \"size\", {\n get: function size() {\n return this.shape[0] * this.shape[1] * this.shape[2] * this.shape[3] * this.shape[4]\n },\n })\n Object.defineProperty(proto, \"order\", { get: ORDER })\n proto.set = function set(i0, i1, i2, i3, i4, v) {\n return dtype === \"generic\"\n ? this.data.set(\n this.offset +\n this.stride[0] * i0 +\n this.stride[1] * i1 +\n this.stride[2] * i2 +\n this.stride[3] * i3 +\n this.stride[4] * i4,\n v\n )\n : (this.data[\n this.offset +\n this.stride[0] * i0 +\n this.stride[1] * i1 +\n this.stride[2] * i2 +\n this.stride[3] * i3 +\n this.stride[4] * i4\n ] = v)\n }\n proto.get = function get(i0, i1, i2, i3, i4) {\n return dtype === \"generic\"\n ? this.data.get(\n this.offset +\n this.stride[0] * i0 +\n this.stride[1] * i1 +\n this.stride[2] * i2 +\n this.stride[3] * i3 +\n this.stride[4] * i4\n )\n : this.data[\n this.offset +\n this.stride[0] * i0 +\n this.stride[1] * i1 +\n this.stride[2] * i2 +\n this.stride[3] * i3 +\n this.stride[4] * i4\n ]\n }\n proto.index = function index(i0, i1, i2, i3, i4) {\n return (\n this.offset +\n this.stride[0] * i0 +\n this.stride[1] * i1 +\n this.stride[2] * i2 +\n this.stride[3] * i3 +\n this.stride[4] * i4\n )\n }\n proto.hi = function hi(i0, i1, i2, i3, i4) {\n return new View(\n this.data,\n typeof i0 !== \"number\" || i0 < 0 ? this.shape[0] : i0 | 0,\n typeof i1 !== \"number\" || i1 < 0 ? this.shape[1] : i1 | 0,\n typeof i2 !== \"number\" || i2 < 0 ? this.shape[2] : i2 | 0,\n typeof i3 !== \"number\" || i3 < 0 ? this.shape[3] : i3 | 0,\n typeof i4 !== \"number\" || i4 < 0 ? this.shape[4] : i4 | 0,\n this.stride[0],\n this.stride[1],\n this.stride[2],\n this.stride[3],\n this.stride[4],\n this.offset\n )\n }\n proto.lo = function lo(i0, i1, i2, i3, i4) {\n var b = this.offset,\n d = 0,\n a0 = this.shape[0],\n a1 = this.shape[1],\n a2 = this.shape[2],\n a3 = this.shape[3],\n a4 = this.shape[4],\n c0 = this.stride[0],\n c1 = this.stride[1],\n c2 = this.stride[2],\n c3 = this.stride[3],\n c4 = this.stride[4]\n if (typeof i0 === \"number\" && i0 >= 0) {\n d = i0 | 0\n b += c0 * d\n a0 -= d\n }\n if (typeof i1 === \"number\" && i1 >= 0) {\n d = i1 | 0\n b += c1 * d\n a1 -= d\n }\n if (typeof i2 === \"number\" && i2 >= 0) {\n d = i2 | 0\n b += c2 * d\n a2 -= d\n }\n if (typeof i3 === \"number\" && i3 >= 0) {\n d = i3 | 0\n b += c3 * d\n a3 -= d\n }\n if (typeof i4 === \"number\" && i4 >= 0) {\n d = i4 | 0\n b += c4 * d\n a4 -= d\n }\n return new View(this.data, a0, a1, a2, a3, a4, c0, c1, c2, c3, c4, b)\n }\n proto.step = function step(i0, i1, i2, i3, i4) {\n var a0 = this.shape[0],\n a1 = this.shape[1],\n a2 = this.shape[2],\n a3 = this.shape[3],\n a4 = this.shape[4],\n b0 = this.stride[0],\n b1 = this.stride[1],\n b2 = this.stride[2],\n b3 = this.stride[3],\n b4 = this.stride[4],\n c = this.offset,\n d = 0,\n ceil = Math.ceil\n if (typeof i0 === \"number\") {\n d = i0 | 0\n if (d < 0) {\n c += b0 * (a0 - 1)\n a0 = ceil(-a0 / d)\n } else {\n a0 = ceil(a0 / d)\n }\n b0 *= d\n }\n if (typeof i1 === \"number\") {\n d = i1 | 0\n if (d < 0) {\n c += b1 * (a1 - 1)\n a1 = ceil(-a1 / d)\n } else {\n a1 = ceil(a1 / d)\n }\n b1 *= d\n }\n if (typeof i2 === \"number\") {\n d = i2 | 0\n if (d < 0) {\n c += b2 * (a2 - 1)\n a2 = ceil(-a2 / d)\n } else {\n a2 = ceil(a2 / d)\n }\n b2 *= d\n }\n if (typeof i3 === \"number\") {\n d = i3 | 0\n if (d < 0) {\n c += b3 * (a3 - 1)\n a3 = ceil(-a3 / d)\n } else {\n a3 = ceil(a3 / d)\n }\n b3 *= d\n }\n if (typeof i4 === \"number\") {\n d = i4 | 0\n if (d < 0) {\n c += b4 * (a4 - 1)\n a4 = ceil(-a4 / d)\n } else {\n a4 = ceil(a4 / d)\n }\n b4 *= d\n }\n return new View(this.data, a0, a1, a2, a3, a4, b0, b1, b2, b3, b4, c)\n }\n proto.transpose = function transpose(i0, i1, i2, i3, i4) {\n i0 = i0 === undefined ? 0 : i0 | 0\n i1 = i1 === undefined ? 1 : i1 | 0\n i2 = i2 === undefined ? 2 : i2 | 0\n i3 = i3 === undefined ? 3 : i3 | 0\n i4 = i4 === undefined ? 4 : i4 | 0\n var a = this.shape,\n b = this.stride\n return new View(this.data, a[i0], a[i1], a[i2], a[i3], a[i4], b[i0], b[i1], b[i2], b[i3], b[i4], this.offset)\n }\n proto.pick = function pick(i0, i1, i2, i3, i4) {\n var a = [],\n b = [],\n c = this.offset\n if (typeof i0 === \"number\" && i0 >= 0) {\n c = (c + this.stride[0] * i0) | 0\n } else {\n a.push(this.shape[0])\n b.push(this.stride[0])\n }\n if (typeof i1 === \"number\" && i1 >= 0) {\n c = (c + this.stride[1] * i1) | 0\n } else {\n a.push(this.shape[1])\n b.push(this.stride[1])\n }\n if (typeof i2 === \"number\" && i2 >= 0) {\n c = (c + this.stride[2] * i2) | 0\n } else {\n a.push(this.shape[2])\n b.push(this.stride[2])\n }\n if (typeof i3 === \"number\" && i3 >= 0) {\n c = (c + this.stride[3] * i3) | 0\n } else {\n a.push(this.shape[3])\n b.push(this.stride[3])\n }\n if (typeof i4 === \"number\" && i4 >= 0) {\n c = (c + this.stride[4] * i4) | 0\n } else {\n a.push(this.shape[4])\n b.push(this.stride[4])\n }\n var ctor = CTOR_LIST[a.length + 1]\n return ctor(this.data, a, b, c)\n }\n return function construct(data, shape, stride, offset) {\n return new View(\n data,\n shape[0],\n shape[1],\n shape[2],\n shape[3],\n shape[4],\n stride[0],\n stride[1],\n stride[2],\n stride[3],\n stride[4],\n offset\n )\n }\n },\n}\n\n\nfunction compileConstructor(inType, inDimension) {\n var dKey = inDimension === -1 ? 'T' : String(inDimension)\n\n var procedure = allFns[dKey]\n if(inDimension === -1) {\n return procedure(inType)\n } else if(inDimension === 0) {\n return procedure(inType, CACHED_CONSTRUCTORS[inType][0])\n }\n return procedure(inType, CACHED_CONSTRUCTORS[inType], order)\n}\n\nfunction arrayDType(data) {\n if(isBuffer(data)) {\n return \"buffer\"\n }\n if(hasTypedArrays) {\n switch(Object.prototype.toString.call(data)) {\n case \"[object Float64Array]\":\n return \"float64\"\n case \"[object Float32Array]\":\n return \"float32\"\n case \"[object Int8Array]\":\n return \"int8\"\n case \"[object Int16Array]\":\n return \"int16\"\n case \"[object Int32Array]\":\n return \"int32\"\n case \"[object Uint8ClampedArray]\":\n return \"uint8_clamped\"\n case \"[object Uint8Array]\":\n return \"uint8\"\n case \"[object Uint16Array]\":\n return \"uint16\"\n case \"[object Uint32Array]\":\n return \"uint32\"\n case \"[object BigInt64Array]\":\n return \"bigint64\"\n case \"[object BigUint64Array]\":\n return \"biguint64\"\n }\n }\n if(Array.isArray(data)) {\n return \"array\"\n }\n return \"generic\"\n}\n\nvar CACHED_CONSTRUCTORS = {\n \"generic\":[],\n \"buffer\":[],\n \"array\":[],\n\n // typed arrays\n \"float32\":[],\n \"float64\":[],\n \"int8\":[],\n \"int16\":[],\n \"int32\":[],\n \"uint8_clamped\":[],\n \"uint8\":[],\n \"uint16\":[],\n \"uint32\":[],\n \"bigint64\": [],\n \"biguint64\": []\n}\n\n;(function() {\n for(var id in CACHED_CONSTRUCTORS) {\n CACHED_CONSTRUCTORS[id].push(compileConstructor(id, -1))\n }\n});\n\nfunction wrappedNDArrayCtor(data, shape, stride, offset) {\n if(data === undefined) {\n var ctor = CACHED_CONSTRUCTORS.array[0]\n return ctor([])\n } else if(typeof data === \"number\") {\n data = [data]\n }\n if(shape === undefined) {\n shape = [ data.length ]\n }\n var d = shape.length\n if(stride === undefined) {\n stride = new Array(d)\n for(var i=d-1, sz=1; i>=0; --i) {\n stride[i] = sz\n sz *= shape[i]\n }\n }\n if(offset === undefined) {\n offset = 0\n for(var i=0; i>>0\n\nmodule.exports = nextafter\n\nfunction nextafter(x, y) {\n if(isNaN(x) || isNaN(y)) {\n return NaN\n }\n if(x === y) {\n return x\n }\n if(x === 0) {\n if(y < 0) {\n return -SMALLEST_DENORM\n } else {\n return SMALLEST_DENORM\n }\n }\n var hi = doubleBits.hi(x)\n var lo = doubleBits.lo(x)\n if((y > x) === (x > 0)) {\n if(lo === UINT_MAX) {\n hi += 1\n lo = 0\n } else {\n lo += 1\n }\n } else {\n if(lo === 0) {\n lo = UINT_MAX\n hi -= 1\n } else {\n lo -= 1\n }\n }\n return doubleBits.pack(lo, hi)\n}\n},{\"double-bits\":64}],261:[function(_glvis_,module,exports){\nvar DEFAULT_NORMALS_EPSILON = 1e-6;\nvar DEFAULT_FACE_EPSILON = 1e-6;\n\n//Estimate the vertex normals of a mesh\nexports.vertexNormals = function(faces, positions, specifiedEpsilon) {\n\n var N = positions.length;\n var normals = new Array(N);\n var epsilon = specifiedEpsilon === void(0) ? DEFAULT_NORMALS_EPSILON : specifiedEpsilon;\n\n //Initialize normal array\n for(var i=0; i epsilon) {\n var norm = normals[c];\n var w = 1.0 / Math.sqrt(m01 * m21);\n for(var k=0; k<3; ++k) {\n var u = (k+1)%3;\n var v = (k+2)%3;\n norm[k] += w * (d21[u] * d01[v] - d21[v] * d01[u]);\n }\n }\n }\n }\n\n //Scale all normals to unit length\n for(var i=0; i epsilon) {\n var w = 1.0 / Math.sqrt(m);\n for(var k=0; k<3; ++k) {\n norm[k] *= w;\n }\n } else {\n for(var k=0; k<3; ++k) {\n norm[k] = 0.0;\n }\n }\n }\n\n //Return the resulting set of patches\n return normals;\n}\n\n//Compute face normals of a mesh\nexports.faceNormals = function(faces, positions, specifiedEpsilon) {\n\n var N = faces.length;\n var normals = new Array(N);\n var epsilon = specifiedEpsilon === void(0) ? DEFAULT_FACE_EPSILON : specifiedEpsilon;\n\n for(var i=0; i epsilon) {\n l = 1.0 / Math.sqrt(l);\n } else {\n l = 0.0;\n }\n for(var j=0; j<3; ++j) {\n n[j] *= l;\n }\n normals[i] = n;\n }\n return normals;\n}\n\n\n\n},{}],262:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = quatFromFrame\n\nfunction quatFromFrame(\n out,\n rx, ry, rz,\n ux, uy, uz,\n fx, fy, fz) {\n var tr = rx + uy + fz\n if(l > 0) {\n var l = Math.sqrt(tr + 1.0)\n out[0] = 0.5 * (uz - fy) / l\n out[1] = 0.5 * (fx - rz) / l\n out[2] = 0.5 * (ry - uy) / l\n out[3] = 0.5 * l\n } else {\n var tf = Math.max(rx, uy, fz)\n var l = Math.sqrt(2 * tf - tr + 1.0)\n if(rx >= tf) {\n //x y z order\n out[0] = 0.5 * l\n out[1] = 0.5 * (ux + ry) / l\n out[2] = 0.5 * (fx + rz) / l\n out[3] = 0.5 * (uz - fy) / l\n } else if(uy >= tf) {\n //y z x order\n out[0] = 0.5 * (ry + ux) / l\n out[1] = 0.5 * l\n out[2] = 0.5 * (fy + uz) / l\n out[3] = 0.5 * (fx - rz) / l\n } else {\n //z x y order\n out[0] = 0.5 * (rz + fx) / l\n out[1] = 0.5 * (uz + fy) / l\n out[2] = 0.5 * l\n out[3] = 0.5 * (ry - ux) / l\n }\n }\n return out\n}\n},{}],263:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = createOrbitController\n\nvar filterVector = _glvis_('filtered-vector')\nvar lookAt = _glvis_('gl-mat4/lookAt')\nvar mat4FromQuat = _glvis_('gl-mat4/fromQuat')\nvar invert44 = _glvis_('gl-mat4/invert')\nvar quatFromFrame = _glvis_('./lib/quatFromFrame')\n\nfunction len3(x,y,z) {\n return Math.sqrt(Math.pow(x,2) + Math.pow(y,2) + Math.pow(z,2))\n}\n\nfunction len4(w,x,y,z) {\n return Math.sqrt(Math.pow(w,2) + Math.pow(x,2) + Math.pow(y,2) + Math.pow(z,2))\n}\n\nfunction normalize4(out, a) {\n var ax = a[0]\n var ay = a[1]\n var az = a[2]\n var aw = a[3]\n var al = len4(ax, ay, az, aw)\n if(al > 1e-6) {\n out[0] = ax/al\n out[1] = ay/al\n out[2] = az/al\n out[3] = aw/al\n } else {\n out[0] = out[1] = out[2] = 0.0\n out[3] = 1.0\n }\n}\n\nfunction OrbitCameraController(initQuat, initCenter, initRadius) {\n this.radius = filterVector([initRadius])\n this.center = filterVector(initCenter)\n this.rotation = filterVector(initQuat)\n\n this.computedRadius = this.radius.curve(0)\n this.computedCenter = this.center.curve(0)\n this.computedRotation = this.rotation.curve(0)\n this.computedUp = [0.1,0,0]\n this.computedEye = [0.1,0,0]\n this.computedMatrix = [0.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]\n\n this.recalcMatrix(0)\n}\n\nvar proto = OrbitCameraController.prototype\n\nproto.lastT = function() {\n return Math.max(\n this.radius.lastT(),\n this.center.lastT(),\n this.rotation.lastT())\n}\n\nproto.recalcMatrix = function(t) {\n this.radius.curve(t)\n this.center.curve(t)\n this.rotation.curve(t)\n\n var quat = this.computedRotation\n normalize4(quat, quat)\n\n var mat = this.computedMatrix\n mat4FromQuat(mat, quat)\n\n var center = this.computedCenter\n var eye = this.computedEye\n var up = this.computedUp\n var radius = Math.exp(this.computedRadius[0])\n\n eye[0] = center[0] + radius * mat[2]\n eye[1] = center[1] + radius * mat[6]\n eye[2] = center[2] + radius * mat[10]\n up[0] = mat[1]\n up[1] = mat[5]\n up[2] = mat[9]\n\n for(var i=0; i<3; ++i) {\n var rr = 0.0\n for(var j=0; j<3; ++j) {\n rr += mat[i+4*j] * eye[j]\n }\n mat[12+i] = -rr\n }\n}\n\nproto.getMatrix = function(t, result) {\n this.recalcMatrix(t)\n var m = this.computedMatrix\n if(result) {\n for(var i=0; i<16; ++i) {\n result[i] = m[i]\n }\n return result\n }\n return m\n}\n\nproto.idle = function(t) {\n this.center.idle(t)\n this.radius.idle(t)\n this.rotation.idle(t)\n}\n\nproto.flush = function(t) {\n this.center.flush(t)\n this.radius.flush(t)\n this.rotation.flush(t)\n}\n\nproto.pan = function(t, dx, dy, dz) {\n dx = dx || 0.0\n dy = dy || 0.0\n dz = dz || 0.0\n\n this.recalcMatrix(t)\n var mat = this.computedMatrix\n\n var ux = mat[1]\n var uy = mat[5]\n var uz = mat[9]\n var ul = len3(ux, uy, uz)\n ux /= ul\n uy /= ul\n uz /= ul\n\n var rx = mat[0]\n var ry = mat[4]\n var rz = mat[8]\n var ru = rx * ux + ry * uy + rz * uz\n rx -= ux * ru\n ry -= uy * ru\n rz -= uz * ru\n var rl = len3(rx, ry, rz)\n rx /= rl\n ry /= rl\n rz /= rl\n\n var fx = mat[2]\n var fy = mat[6]\n var fz = mat[10]\n var fu = fx * ux + fy * uy + fz * uz\n var fr = fx * rx + fy * ry + fz * rz\n fx -= fu * ux + fr * rx\n fy -= fu * uy + fr * ry\n fz -= fu * uz + fr * rz\n var fl = len3(fx, fy, fz)\n fx /= fl\n fy /= fl\n fz /= fl\n\n var vx = rx * dx + ux * dy\n var vy = ry * dx + uy * dy\n var vz = rz * dx + uz * dy\n\n this.center.move(t, vx, vy, vz)\n\n //Update z-component of radius\n var radius = Math.exp(this.computedRadius[0])\n radius = Math.max(1e-4, radius + dz)\n this.radius.set(t, Math.log(radius))\n}\n\nproto.rotate = function(t, dx, dy, dz) {\n this.recalcMatrix(t)\n\n dx = dx||0.0\n dy = dy||0.0\n\n var mat = this.computedMatrix\n\n var rx = mat[0]\n var ry = mat[4]\n var rz = mat[8]\n\n var ux = mat[1]\n var uy = mat[5]\n var uz = mat[9]\n\n var fx = mat[2]\n var fy = mat[6]\n var fz = mat[10]\n\n var qx = dx * rx + dy * ux\n var qy = dx * ry + dy * uy\n var qz = dx * rz + dy * uz\n\n var bx = -(fy * qz - fz * qy)\n var by = -(fz * qx - fx * qz)\n var bz = -(fx * qy - fy * qx) \n var bw = Math.sqrt(Math.max(0.0, 1.0 - Math.pow(bx,2) - Math.pow(by,2) - Math.pow(bz,2)))\n var bl = len4(bx, by, bz, bw)\n if(bl > 1e-6) {\n bx /= bl\n by /= bl\n bz /= bl\n bw /= bl\n } else {\n bx = by = bz = 0.0\n bw = 1.0\n }\n\n var rotation = this.computedRotation\n var ax = rotation[0]\n var ay = rotation[1]\n var az = rotation[2]\n var aw = rotation[3]\n\n var cx = ax*bw + aw*bx + ay*bz - az*by\n var cy = ay*bw + aw*by + az*bx - ax*bz\n var cz = az*bw + aw*bz + ax*by - ay*bx\n var cw = aw*bw - ax*bx - ay*by - az*bz\n \n //Apply roll\n if(dz) {\n bx = fx\n by = fy\n bz = fz\n var s = Math.sin(dz) / len3(bx, by, bz)\n bx *= s\n by *= s\n bz *= s\n bw = Math.cos(dx)\n cx = cx*bw + cw*bx + cy*bz - cz*by\n cy = cy*bw + cw*by + cz*bx - cx*bz\n cz = cz*bw + cw*bz + cx*by - cy*bx\n cw = cw*bw - cx*bx - cy*by - cz*bz\n }\n\n var cl = len4(cx, cy, cz, cw)\n if(cl > 1e-6) {\n cx /= cl\n cy /= cl\n cz /= cl\n cw /= cl\n } else {\n cx = cy = cz = 0.0\n cw = 1.0\n }\n\n this.rotation.set(t, cx, cy, cz, cw)\n}\n\nproto.lookAt = function(t, eye, center, up) {\n this.recalcMatrix(t)\n\n center = center || this.computedCenter\n eye = eye || this.computedEye\n up = up || this.computedUp\n\n var mat = this.computedMatrix\n lookAt(mat, eye, center, up)\n\n var rotation = this.computedRotation\n quatFromFrame(rotation,\n mat[0], mat[1], mat[2],\n mat[4], mat[5], mat[6],\n mat[8], mat[9], mat[10])\n normalize4(rotation, rotation)\n this.rotation.set(t, rotation[0], rotation[1], rotation[2], rotation[3])\n\n var fl = 0.0\n for(var i=0; i<3; ++i) {\n fl += Math.pow(center[i] - eye[i], 2)\n }\n this.radius.set(t, 0.5 * Math.log(Math.max(fl, 1e-6)))\n\n this.center.set(t, center[0], center[1], center[2])\n}\n\nproto.translate = function(t, dx, dy, dz) {\n this.center.move(t,\n dx||0.0,\n dy||0.0,\n dz||0.0)\n}\n\nproto.setMatrix = function(t, matrix) {\n\n var rotation = this.computedRotation\n quatFromFrame(rotation,\n matrix[0], matrix[1], matrix[2],\n matrix[4], matrix[5], matrix[6],\n matrix[8], matrix[9], matrix[10])\n normalize4(rotation, rotation)\n this.rotation.set(t, rotation[0], rotation[1], rotation[2], rotation[3])\n\n var mat = this.computedMatrix\n invert44(mat, matrix)\n var w = mat[15]\n if(Math.abs(w) > 1e-6) {\n var cx = mat[12]/w\n var cy = mat[13]/w\n var cz = mat[14]/w\n\n this.recalcMatrix(t) \n var r = Math.exp(this.computedRadius[0])\n this.center.set(t, cx-mat[2]*r, cy-mat[6]*r, cz-mat[10]*r)\n this.radius.idle(t)\n } else {\n this.center.idle(t)\n this.radius.idle(t)\n }\n}\n\nproto.setDistance = function(t, d) {\n if(d > 0) {\n this.radius.set(t, Math.log(d))\n }\n}\n\nproto.setDistanceLimits = function(lo, hi) {\n if(lo > 0) {\n lo = Math.log(lo)\n } else {\n lo = -Infinity \n }\n if(hi > 0) {\n hi = Math.log(hi)\n } else {\n hi = Infinity\n }\n hi = Math.max(hi, lo)\n this.radius.bounds[0][0] = lo\n this.radius.bounds[1][0] = hi\n}\n\nproto.getDistanceLimits = function(out) {\n var bounds = this.radius.bounds\n if(out) {\n out[0] = Math.exp(bounds[0][0])\n out[1] = Math.exp(bounds[1][0])\n return out\n }\n return [ Math.exp(bounds[0][0]), Math.exp(bounds[1][0]) ]\n}\n\nproto.toJSON = function() {\n this.recalcMatrix(this.lastT())\n return {\n center: this.computedCenter.slice(),\n rotation: this.computedRotation.slice(),\n distance: Math.log(this.computedRadius[0]),\n zoomMin: this.radius.bounds[0][0],\n zoomMax: this.radius.bounds[1][0]\n }\n}\n\nproto.fromJSON = function(options) {\n var t = this.lastT()\n var c = options.center\n if(c) {\n this.center.set(t, c[0], c[1], c[2])\n }\n var r = options.rotation\n if(r) {\n this.rotation.set(t, r[0], r[1], r[2], r[3])\n }\n var d = options.distance\n if(d && d > 0) {\n this.radius.set(t, Math.log(d))\n }\n this.setDistanceLimits(options.zoomMin, options.zoomMax)\n}\n\nfunction createOrbitController(options) {\n options = options || {}\n var center = options.center || [0,0,0]\n var rotation = options.rotation || [0,0,0,1]\n var radius = options.radius || 1.0\n\n center = [].slice.call(center, 0, 3)\n rotation = [].slice.call(rotation, 0, 4)\n normalize4(rotation, rotation)\n\n var result = new OrbitCameraController(\n rotation,\n center,\n Math.log(radius))\n\n result.setDistanceLimits(options.zoomMin, options.zoomMax)\n\n if('eye' in options || 'up' in options) {\n result.lookAt(0, options.eye, options.center, options.up)\n }\n\n return result\n}\n},{\"./lib/quatFromFrame\":262,\"filtered-vector\":68,\"gl-mat4/fromQuat\":95,\"gl-mat4/invert\":98,\"gl-mat4/lookAt\":99}],264:[function(_glvis_,module,exports){\n/*!\n * pad-left \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT license.\n */\n\n'use strict';\n\nvar repeat = _glvis_('repeat-string');\n\nmodule.exports = function padLeft(str, num, ch) {\n ch = typeof ch !== 'undefined' ? (ch + '') : ' ';\n return repeat(ch, num) + str;\n};\n},{\"repeat-string\":277}],265:[function(_glvis_,module,exports){\nmodule.exports = function parseUnit(str, out) {\n if (!out)\n out = [ 0, '' ]\n\n str = String(str)\n var num = parseFloat(str, 10)\n out[0] = num\n out[1] = str.match(/[\\d.\\-\\+]*\\s*(.*)/)[1] || ''\n return out\n}\n},{}],266:[function(_glvis_,module,exports){\n\"use strict\"\n\nmodule.exports = planarDual\n\nvar compareAngle = _glvis_(\"compare-angle\")\n\nfunction planarDual(cells, positions) {\n\n var numVertices = positions.length|0\n var numEdges = cells.length\n var adj = [new Array(numVertices), new Array(numVertices)]\n for(var i=0; i 0) {\n nextCell = adj[i][b][0]\n nextDir = i\n break\n }\n }\n nextVertex = nextCell[nextDir^1]\n\n for(var dir=0; dir<2; ++dir) {\n var nbhd = adj[dir][b]\n for(var k=0; k 0) {\n nextCell = e\n nextVertex = p\n nextDir = dir\n }\n }\n }\n if(noCut) {\n return nextVertex\n }\n if(nextCell) {\n cut(nextCell, nextDir)\n }\n return nextVertex\n }\n\n function extractCycle(v, dir) {\n var e0 = adj[dir][v][0]\n var cycle = [v]\n cut(e0, dir)\n var u = e0[dir^1]\n var d0 = dir\n while(true) {\n while(u !== v) {\n cycle.push(u)\n u = next(cycle[cycle.length-2], u, false)\n }\n if(adj[0][v].length + adj[1][v].length === 0) {\n break\n }\n var a = cycle[cycle.length-1]\n var b = v\n var c = cycle[1]\n var d = next(a, b, true)\n if(compareAngle(positions[a], positions[b], positions[c], positions[d]) < 0) {\n break\n }\n cycle.push(v)\n u = next(a, b)\n }\n return cycle\n }\n\n function shouldGlue(pcycle, ncycle) {\n return (ncycle[1] === ncycle[ncycle.length-1])\n }\n\n for(var i=0; i 0) {\n var ni = adj[0][i].length\n var ncycle = extractCycle(i,j)\n if(shouldGlue(pcycle, ncycle)) {\n //Glue together trivial cycles\n pcycle.push.apply(pcycle, ncycle)\n } else {\n if(pcycle.length > 0) {\n cycles.push(pcycle)\n }\n pcycle = ncycle\n }\n }\n if(pcycle.length > 0) {\n cycles.push(pcycle)\n }\n }\n }\n\n //Combine paths and loops together\n return cycles\n}\n},{\"compare-angle\":54}],267:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = trimLeaves\n\nvar e2a = _glvis_('edges-to-adjacency-list')\n\nfunction trimLeaves(edges, positions) {\n var adj = e2a(edges, positions.length)\n var live = new Array(positions.length)\n var nbhd = new Array(positions.length)\n\n var dead = []\n for(var i=0; i 0) {\n var v = dead.pop()\n live[v] = false\n var n = adj[v]\n for(var i=0; i 0\n }\n\n //Extract all clockwise faces\n faces = faces.filter(ccw)\n\n //Detect which loops are contained in one another to handle parent-of relation\n var numFaces = faces.length\n var parent = new Array(numFaces)\n var containment = new Array(numFaces)\n for(var i=0; i 0) {\n var top = toVisit.pop()\n var nbhd = fadj[top]\n uniq(nbhd, function(a,b) {\n return a-b\n })\n var nnbhr = nbhd.length\n var p = parity[top]\n var polyline\n if(p === 0) {\n var c = faces[top]\n polyline = [c]\n }\n for(var i=0; i= 0) {\n continue\n }\n parity[f] = p^1\n toVisit.push(f)\n if(p === 0) {\n var c = faces[f]\n if(!sharedBoundary(c)) {\n c.reverse()\n polyline.push(c)\n }\n }\n }\n if(p === 0) {\n result.push(polyline)\n }\n }\n\n return result\n}\n},{\"./lib/trim-leaves\":267,\"edges-to-adjacency-list\":66,\"planar-dual\":266,\"point-in-big-polygon\":269,\"robust-sum\":289,\"two-product\":306,\"uniq\":310}],269:[function(_glvis_,module,exports){\nmodule.exports = preprocessPolygon\n\nvar orient = _glvis_('robust-orientation')[3]\nvar makeSlabs = _glvis_('slab-decomposition')\nvar makeIntervalTree = _glvis_('interval-tree-1d')\nvar bsearch = _glvis_('binary-search-bounds')\n\nfunction visitInterval() {\n return true\n}\n\nfunction intervalSearch(table) {\n return function(x, y) {\n var tree = table[x]\n if(tree) {\n return !!tree.queryPoint(y, visitInterval)\n }\n return false\n }\n}\n\nfunction buildVerticalIndex(segments) {\n var table = {}\n for(var i=0; i 0 && coordinates[bucket] === p[0]) {\n root = slabs[bucket-1]\n } else {\n return 1\n }\n }\n var lastOrientation = 1\n while(root) {\n var s = root.key\n var o = orient(p, s[0], s[1])\n if(s[0][0] < s[1][0]) {\n if(o < 0) {\n root = root.left\n } else if(o > 0) {\n lastOrientation = -1\n root = root.right\n } else {\n return 0\n }\n } else {\n if(o > 0) {\n root = root.left\n } else if(o < 0) {\n lastOrientation = 1\n root = root.right\n } else {\n return 0\n }\n }\n }\n return lastOrientation\n }\n}\n\nfunction classifyEmpty(p) {\n return 1\n}\n\nfunction createClassifyVertical(testVertical) {\n return function classify(p) {\n if(testVertical(p[0], p[1])) {\n return 0\n }\n return 1\n }\n}\n\nfunction createClassifyPointDegen(testVertical, testNormal) {\n return function classify(p) {\n if(testVertical(p[0], p[1])) {\n return 0\n }\n return testNormal(p)\n }\n}\n\nfunction preprocessPolygon(loops) {\n //Compute number of loops\n var numLoops = loops.length\n\n //Unpack segments\n var segments = []\n var vsegments = []\n var ptr = 0\n for(var i=0; i= a00) {\n s = 1.0;\n sqrDistance = a00 + 2.0*b0 + c;\n } else {\n s = -b0/a00;\n sqrDistance = b0*s + c;\n }\n } else {\n s = 0;\n if (b1 >= 0) {\n t = 0;\n sqrDistance = c;\n } else if (-b1 >= a11) {\n t = 1;\n sqrDistance = a11 + 2.0*b1 + c;\n } else {\n t = -b1/a11;\n sqrDistance = b1*t + c;\n }\n }\n } else { // region 3\n s = 0;\n if (b1 >= 0) {\n t = 0;\n sqrDistance = c;\n } else if (-b1 >= a11) {\n t = 1;\n sqrDistance = a11 + 2.0*b1 + c;\n } else {\n t = -b1/a11;\n sqrDistance = b1*t + c;\n }\n }\n } else if (t < 0) { // region 5\n t = 0;\n if (b0 >= 0) {\n s = 0;\n sqrDistance = c;\n } else if (-b0 >= a00) {\n s = 1;\n sqrDistance = a00 + 2.0*b0 + c;\n } else {\n s = -b0/a00;\n sqrDistance = b0*s + c;\n }\n } else { // region 0\n // minimum at interior point\n var invDet = 1.0 / det;\n s *= invDet;\n t *= invDet;\n sqrDistance = s*(a00*s + a01*t + 2.0*b0) + t*(a01*s + a11*t + 2.0*b1) + c;\n }\n } else {\n var tmp0, tmp1, numer, denom;\n \n if (s < 0) { // region 2\n tmp0 = a01 + b0;\n tmp1 = a11 + b1;\n if (tmp1 > tmp0) {\n numer = tmp1 - tmp0;\n denom = a00 - 2.0*a01 + a11;\n if (numer >= denom) {\n s = 1;\n t = 0;\n sqrDistance = a00 + 2.0*b0 + c;\n } else {\n s = numer/denom;\n t = 1 - s;\n sqrDistance = s*(a00*s + a01*t + 2.0*b0) +\n t*(a01*s + a11*t + 2.0*b1) + c;\n }\n } else {\n s = 0;\n if (tmp1 <= 0) {\n t = 1;\n sqrDistance = a11 + 2.0*b1 + c;\n } else if (b1 >= 0) {\n t = 0;\n sqrDistance = c;\n } else {\n t = -b1/a11;\n sqrDistance = b1*t + c;\n }\n }\n } else if (t < 0) { // region 6\n tmp0 = a01 + b1;\n tmp1 = a00 + b0;\n if (tmp1 > tmp0) {\n numer = tmp1 - tmp0;\n denom = a00 - 2.0*a01 + a11;\n if (numer >= denom) {\n t = 1;\n s = 0;\n sqrDistance = a11 + 2.0*b1 + c;\n } else {\n t = numer/denom;\n s = 1 - t;\n sqrDistance = s*(a00*s + a01*t + 2.0*b0) +\n t*(a01*s + a11*t + 2.0*b1) + c;\n }\n } else {\n t = 0;\n if (tmp1 <= 0) {\n s = 1;\n sqrDistance = a00 + 2.0*b0 + c;\n } else if (b0 >= 0) {\n s = 0;\n sqrDistance = c;\n } else {\n s = -b0/a00;\n sqrDistance = b0*s + c;\n }\n }\n } else { // region 1\n numer = a11 + b1 - a01 - b0;\n if (numer <= 0) {\n s = 0;\n t = 1;\n sqrDistance = a11 + 2.0*b1 + c;\n } else {\n denom = a00 - 2.0*a01 + a11;\n if (numer >= denom) {\n s = 1;\n t = 0;\n sqrDistance = a00 + 2.0*b0 + c;\n } else {\n s = numer/denom;\n t = 1 - s;\n sqrDistance = s*(a00*s + a01*t + 2.0*b0) +\n t*(a01*s + a11*t + 2.0*b1) + c;\n }\n }\n }\n }\n var u = 1.0 - s - t;\n for(var i=0; i 0) {\n var f = cells[ptr-1]\n if(compareCell(c, f) === 0 &&\n orientation(f) !== o) {\n ptr -= 1\n continue\n }\n }\n cells[ptr++] = c\n }\n cells.length = ptr\n return cells\n}\n\n},{\"cell-orientation\":47,\"compare-cell\":56,\"compare-oriented-cell\":57}],277:[function(_glvis_,module,exports){\n/*!\n * repeat-string \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\n/**\n * Results cache\n */\n\nvar res = '';\nvar cache;\n\n/**\n * Expose `repeat`\n */\n\nmodule.exports = repeat;\n\n/**\n * Repeat the given `string` the specified `number`\n * of times.\n *\n * **Example:**\n *\n * ```js\n * var repeat = require('repeat-string');\n * repeat('A', 5);\n * //=> AAAAA\n * ```\n *\n * @param {String} `string` The string to repeat\n * @param {Number} `number` The number of times to repeat the string\n * @return {String} Repeated string\n * @api public\n */\n\nfunction repeat(str, num) {\n if (typeof str !== 'string') {\n throw new TypeError('expected a string');\n }\n\n // cover common, quick use cases\n if (num === 1) return str;\n if (num === 2) return str + str;\n\n var max = str.length * num;\n if (cache !== str || typeof cache === 'undefined') {\n cache = str;\n res = '';\n } else if (res.length >= max) {\n return res.substr(0, max);\n }\n\n while (max > res.length && num > 1) {\n if (num & 1) {\n res += str;\n }\n\n num >>= 1;\n str += str;\n }\n\n res += str;\n res = res.substr(0, max);\n return res;\n}\n\n},{}],278:[function(_glvis_,module,exports){\n(function (global){(function (){\nmodule.exports =\n global.performance &&\n global.performance.now ? function now() {\n return performance.now()\n } : Date.now || function now() {\n return +new Date\n }\n\n}).call(this)}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{}],279:[function(_glvis_,module,exports){\n\"use strict\"\n\nmodule.exports = compressExpansion\n\nfunction compressExpansion(e) {\n var m = e.length\n var Q = e[e.length-1]\n var bottom = m\n for(var i=m-2; i>=0; --i) {\n var a = Q\n var b = e[i]\n Q = a + b\n var bv = Q - a\n var q = b - bv\n if(q) {\n e[--bottom] = Q\n Q = q\n }\n }\n var top = 0\n for(var i=bottom; i 0) {\n if(r <= 0) {\n return det\n } else {\n s = l + r\n }\n } else if(l < 0) {\n if(r >= 0) {\n return det\n } else {\n s = -(l + r)\n }\n } else {\n return det\n }\n var tol = ERRBOUND3 * s\n if(det >= tol || det <= -tol) {\n return det\n }\n return orientation3Exact(a, b, c)\n },\n function orientation4(a,b,c,d) {\n var adx = a[0] - d[0]\n var bdx = b[0] - d[0]\n var cdx = c[0] - d[0]\n var ady = a[1] - d[1]\n var bdy = b[1] - d[1]\n var cdy = c[1] - d[1]\n var adz = a[2] - d[2]\n var bdz = b[2] - d[2]\n var cdz = c[2] - d[2]\n var bdxcdy = bdx * cdy\n var cdxbdy = cdx * bdy\n var cdxady = cdx * ady\n var adxcdy = adx * cdy\n var adxbdy = adx * bdy\n var bdxady = bdx * ady\n var det = adz * (bdxcdy - cdxbdy)\n + bdz * (cdxady - adxcdy)\n + cdz * (adxbdy - bdxady)\n var permanent = (Math.abs(bdxcdy) + Math.abs(cdxbdy)) * Math.abs(adz)\n + (Math.abs(cdxady) + Math.abs(adxcdy)) * Math.abs(bdz)\n + (Math.abs(adxbdy) + Math.abs(bdxady)) * Math.abs(cdz)\n var tol = ERRBOUND4 * permanent\n if ((det > tol) || (-det > tol)) {\n return det\n }\n return orientation4Exact(a,b,c,d)\n }\n]\n\nfunction slowOrient(args) {\n var proc = CACHED[args.length]\n if(!proc) {\n proc = CACHED[args.length] = orientation(args.length)\n }\n return proc.apply(undefined, args)\n}\n\nfunction proc (slow, o0, o1, o2, o3, o4, o5) {\n return function getOrientation(a0, a1, a2, a3, a4) {\n switch (arguments.length) {\n case 0:\n case 1:\n return 0;\n case 2:\n return o2(a0, a1)\n case 3:\n return o3(a0, a1, a2)\n case 4:\n return o4(a0, a1, a2, a3)\n case 5:\n return o5(a0, a1, a2, a3, a4)\n }\n\n var s = new Array(arguments.length)\n for (var i = 0; i < arguments.length; ++i) {\n s[i] = arguments[i]\n }\n return slow(s)\n }\n}\n\nfunction generateOrientationProc() {\n while(CACHED.length <= NUM_EXPAND) {\n CACHED.push(orientation(CACHED.length))\n }\n module.exports = proc.apply(undefined, [slowOrient].concat(CACHED))\n for(var i=0; i<=NUM_EXPAND; ++i) {\n module.exports[i] = CACHED[i]\n }\n}\n\ngenerateOrientationProc()\n},{\"robust-scale\":286,\"robust-subtract\":288,\"robust-sum\":289,\"two-product\":306}],285:[function(_glvis_,module,exports){\n\"use strict\"\n\nvar robustSum = _glvis_(\"robust-sum\")\nvar robustScale = _glvis_(\"robust-scale\")\n\nmodule.exports = robustProduct\n\nfunction robustProduct(a, b) {\n if(a.length === 1) {\n return robustScale(b, a[0])\n }\n if(b.length === 1) {\n return robustScale(a, b[0])\n }\n if(a.length === 0 || b.length === 0) {\n return [0]\n }\n var r = [0]\n if(a.length < b.length) {\n for(var i=0; i 0 && y0 > 0) || (x0 < 0 && y0 < 0)) {\n return false\n }\n\n var x1 = orient(b0, a0, a1)\n var y1 = orient(b1, a0, a1)\n if((x1 > 0 && y1 > 0) || (x1 < 0 && y1 < 0)) {\n return false\n }\n\n //Check for degenerate collinear case\n if(x0 === 0 && y0 === 0 && x1 === 0 && y1 === 0) {\n return checkCollinear(a0, a1, b0, b1)\n }\n\n return true\n}\n},{\"robust-orientation\":284}],288:[function(_glvis_,module,exports){\n\"use strict\"\n\nmodule.exports = robustSubtract\n\n//Easy case: Add two scalars\nfunction scalarScalar(a, b) {\n var x = a + b\n var bv = x - a\n var av = x - bv\n var br = b - bv\n var ar = a - av\n var y = ar + br\n if(y) {\n return [y, x]\n }\n return [x]\n}\n\nfunction robustSubtract(e, f) {\n var ne = e.length|0\n var nf = f.length|0\n if(ne === 1 && nf === 1) {\n return scalarScalar(e[0], -f[0])\n }\n var n = ne + nf\n var g = new Array(n)\n var count = 0\n var eptr = 0\n var fptr = 0\n var abs = Math.abs\n var ei = e[eptr]\n var ea = abs(ei)\n var fi = -f[fptr]\n var fa = abs(fi)\n var a, b\n if(ea < fa) {\n b = ei\n eptr += 1\n if(eptr < ne) {\n ei = e[eptr]\n ea = abs(ei)\n }\n } else {\n b = fi\n fptr += 1\n if(fptr < nf) {\n fi = -f[fptr]\n fa = abs(fi)\n }\n }\n if((eptr < ne && ea < fa) || (fptr >= nf)) {\n a = ei\n eptr += 1\n if(eptr < ne) {\n ei = e[eptr]\n ea = abs(ei)\n }\n } else {\n a = fi\n fptr += 1\n if(fptr < nf) {\n fi = -f[fptr]\n fa = abs(fi)\n }\n }\n var x = a + b\n var bv = x - a\n var y = b - bv\n var q0 = y\n var q1 = x\n var _x, _bv, _av, _br, _ar\n while(eptr < ne && fptr < nf) {\n if(ea < fa) {\n a = ei\n eptr += 1\n if(eptr < ne) {\n ei = e[eptr]\n ea = abs(ei)\n }\n } else {\n a = fi\n fptr += 1\n if(fptr < nf) {\n fi = -f[fptr]\n fa = abs(fi)\n }\n }\n b = q0\n x = a + b\n bv = x - a\n y = b - bv\n if(y) {\n g[count++] = y\n }\n _x = q1 + x\n _bv = _x - q1\n _av = _x - _bv\n _br = x - _bv\n _ar = q1 - _av\n q0 = _ar + _br\n q1 = _x\n }\n while(eptr < ne) {\n a = ei\n b = q0\n x = a + b\n bv = x - a\n y = b - bv\n if(y) {\n g[count++] = y\n }\n _x = q1 + x\n _bv = _x - q1\n _av = _x - _bv\n _br = x - _bv\n _ar = q1 - _av\n q0 = _ar + _br\n q1 = _x\n eptr += 1\n if(eptr < ne) {\n ei = e[eptr]\n }\n }\n while(fptr < nf) {\n a = fi\n b = q0\n x = a + b\n bv = x - a\n y = b - bv\n if(y) {\n g[count++] = y\n } \n _x = q1 + x\n _bv = _x - q1\n _av = _x - _bv\n _br = x - _bv\n _ar = q1 - _av\n q0 = _ar + _br\n q1 = _x\n fptr += 1\n if(fptr < nf) {\n fi = -f[fptr]\n }\n }\n if(q0) {\n g[count++] = q0\n }\n if(q1) {\n g[count++] = q1\n }\n if(!count) {\n g[count++] = 0.0 \n }\n g.length = count\n return g\n}\n},{}],289:[function(_glvis_,module,exports){\n\"use strict\"\n\nmodule.exports = linearExpansionSum\n\n//Easy case: Add two scalars\nfunction scalarScalar(a, b) {\n var x = a + b\n var bv = x - a\n var av = x - bv\n var br = b - bv\n var ar = a - av\n var y = ar + br\n if(y) {\n return [y, x]\n }\n return [x]\n}\n\nfunction linearExpansionSum(e, f) {\n var ne = e.length|0\n var nf = f.length|0\n if(ne === 1 && nf === 1) {\n return scalarScalar(e[0], f[0])\n }\n var n = ne + nf\n var g = new Array(n)\n var count = 0\n var eptr = 0\n var fptr = 0\n var abs = Math.abs\n var ei = e[eptr]\n var ea = abs(ei)\n var fi = f[fptr]\n var fa = abs(fi)\n var a, b\n if(ea < fa) {\n b = ei\n eptr += 1\n if(eptr < ne) {\n ei = e[eptr]\n ea = abs(ei)\n }\n } else {\n b = fi\n fptr += 1\n if(fptr < nf) {\n fi = f[fptr]\n fa = abs(fi)\n }\n }\n if((eptr < ne && ea < fa) || (fptr >= nf)) {\n a = ei\n eptr += 1\n if(eptr < ne) {\n ei = e[eptr]\n ea = abs(ei)\n }\n } else {\n a = fi\n fptr += 1\n if(fptr < nf) {\n fi = f[fptr]\n fa = abs(fi)\n }\n }\n var x = a + b\n var bv = x - a\n var y = b - bv\n var q0 = y\n var q1 = x\n var _x, _bv, _av, _br, _ar\n while(eptr < ne && fptr < nf) {\n if(ea < fa) {\n a = ei\n eptr += 1\n if(eptr < ne) {\n ei = e[eptr]\n ea = abs(ei)\n }\n } else {\n a = fi\n fptr += 1\n if(fptr < nf) {\n fi = f[fptr]\n fa = abs(fi)\n }\n }\n b = q0\n x = a + b\n bv = x - a\n y = b - bv\n if(y) {\n g[count++] = y\n }\n _x = q1 + x\n _bv = _x - q1\n _av = _x - _bv\n _br = x - _bv\n _ar = q1 - _av\n q0 = _ar + _br\n q1 = _x\n }\n while(eptr < ne) {\n a = ei\n b = q0\n x = a + b\n bv = x - a\n y = b - bv\n if(y) {\n g[count++] = y\n }\n _x = q1 + x\n _bv = _x - q1\n _av = _x - _bv\n _br = x - _bv\n _ar = q1 - _av\n q0 = _ar + _br\n q1 = _x\n eptr += 1\n if(eptr < ne) {\n ei = e[eptr]\n }\n }\n while(fptr < nf) {\n a = fi\n b = q0\n x = a + b\n bv = x - a\n y = b - bv\n if(y) {\n g[count++] = y\n } \n _x = q1 + x\n _bv = _x - q1\n _av = _x - _bv\n _br = x - _bv\n _ar = q1 - _av\n q0 = _ar + _br\n q1 = _x\n fptr += 1\n if(fptr < nf) {\n fi = f[fptr]\n }\n }\n if(q0) {\n g[count++] = q0\n }\n if(q1) {\n g[count++] = q1\n }\n if(!count) {\n g[count++] = 0.0 \n }\n g.length = count\n return g\n}\n},{}],290:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = boundary\n\nvar bnd = _glvis_('boundary-cells')\nvar reduce = _glvis_('reduce-simplicial-complex')\n\nfunction boundary(cells) {\n return reduce(bnd(cells))\n}\n\n},{\"boundary-cells\":34,\"reduce-simplicial-complex\":276}],291:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = extractContour\n\nvar ndarray = _glvis_('ndarray')\nvar pool = _glvis_('typedarray-pool')\nvar ndsort = _glvis_('ndarray-sort')\n\nvar contourAlgorithm = _glvis_('./lib/codegen')\n\nfunction getDimension(cells) {\n var numCells = cells.length\n var d = 0\n for(var i=0; i> 1,\n v = E[2 * m + 1]\n if (v === b) {\n return m\n }\n if (b < v) {\n h = m\n } else {\n l = m + 1\n }\n }\n return l\n }\n function getContour0d(F, E, C, S) {\n var n = F.length,\n R = []\n for (var i = 0; i < n; ++i) {\n var c = F[i],\n l = c.length\n }\n return R\n }\n return getContour0d\n },\n function cellPolygonizer_1() {\n function B(C, E, i, j) {\n var a = Math.min(i, j) | 0,\n b = Math.max(i, j) | 0,\n l = C[2 * a],\n h = C[2 * a + 1]\n while (l < h) {\n var m = (l + h) >> 1,\n v = E[2 * m + 1]\n if (v === b) {\n return m\n }\n if (b < v) {\n h = m\n } else {\n l = m + 1\n }\n }\n return l\n }\n function getContour1d(F, E, C, S) {\n var n = F.length,\n R = []\n for (var i = 0; i < n; ++i) {\n var c = F[i],\n l = c.length\n if (l === 2) {\n var M = (S[c[0]] << 0) + (S[c[1]] << 1)\n if (M === 0 || M === 3) {\n continue\n }\n switch (M) {\n case 0:\n break\n case 1:\n R.push([B(C, E, c[0], c[1])])\n break\n case 2:\n R.push([B(C, E, c[1], c[0])])\n break\n case 3:\n break\n }\n }\n }\n return R\n }\n return getContour1d\n },\n function cellPolygonizer_2() {\n function B(C, E, i, j) {\n var a = Math.min(i, j) | 0,\n b = Math.max(i, j) | 0,\n l = C[2 * a],\n h = C[2 * a + 1]\n while (l < h) {\n var m = (l + h) >> 1,\n v = E[2 * m + 1]\n if (v === b) {\n return m\n }\n if (b < v) {\n h = m\n } else {\n l = m + 1\n }\n }\n return l\n }\n function getContour2d(F, E, C, S) {\n var n = F.length,\n R = []\n for (var i = 0; i < n; ++i) {\n var c = F[i],\n l = c.length\n if (l === 3) {\n var M = (S[c[0]] << 0) + (S[c[1]] << 1) + (S[c[2]] << 2)\n if (M === 0 || M === 7) {\n continue\n }\n switch (M) {\n case 0:\n break\n case 1:\n R.push([B(C, E, c[0], c[2]), B(C, E, c[0], c[1])])\n break\n case 2:\n R.push([B(C, E, c[1], c[0]), B(C, E, c[1], c[2])])\n break\n case 3:\n R.push([B(C, E, c[0], c[2]), B(C, E, c[1], c[2])])\n break\n case 4:\n R.push([B(C, E, c[2], c[1]), B(C, E, c[2], c[0])])\n break\n case 5:\n R.push([B(C, E, c[2], c[1]), B(C, E, c[0], c[1])])\n break\n case 6:\n R.push([B(C, E, c[1], c[0]), B(C, E, c[2], c[0])])\n break\n case 7:\n break\n }\n } else if (l === 2) {\n var M = (S[c[0]] << 0) + (S[c[1]] << 1)\n if (M === 0 || M === 3) {\n continue\n }\n switch (M) {\n case 0:\n break\n case 1:\n R.push([B(C, E, c[0], c[1])])\n break\n case 2:\n R.push([B(C, E, c[1], c[0])])\n break\n case 3:\n break\n }\n }\n }\n return R\n }\n return getContour2d\n },\n function cellPolygonizer_3() {\n function B(C, E, i, j) {\n var a = Math.min(i, j) | 0,\n b = Math.max(i, j) | 0,\n l = C[2 * a],\n h = C[2 * a + 1]\n while (l < h) {\n var m = (l + h) >> 1,\n v = E[2 * m + 1]\n if (v === b) {\n return m\n }\n if (b < v) {\n h = m\n } else {\n l = m + 1\n }\n }\n return l\n }\n function getContour3d(F, E, C, S) {\n var n = F.length,\n R = []\n for (var i = 0; i < n; ++i) {\n var c = F[i],\n l = c.length\n if (l === 4) {\n var M = (S[c[0]] << 0) + (S[c[1]] << 1) + (S[c[2]] << 2) + (S[c[3]] << 3)\n if (M === 0 || M === 15) {\n continue\n }\n switch (M) {\n case 0:\n break\n case 1:\n R.push([B(C, E, c[0], c[1]), B(C, E, c[0], c[2]), B(C, E, c[0], c[3])])\n break\n case 2:\n R.push([B(C, E, c[1], c[2]), B(C, E, c[1], c[0]), B(C, E, c[1], c[3])])\n break\n case 3:\n R.push([B(C, E, c[1], c[2]), B(C, E, c[0], c[2]), B(C, E, c[0], c[3])], [B(C, E, c[1], c[3]), B(C, E, c[1], c[2]), B(C, E, c[0], c[3])])\n break\n case 4:\n R.push([B(C, E, c[2], c[0]), B(C, E, c[2], c[1]), B(C, E, c[2], c[3])])\n break\n case 5:\n R.push([B(C, E, c[0], c[1]), B(C, E, c[2], c[1]), B(C, E, c[0], c[3])], [B(C, E, c[2], c[1]), B(C, E, c[2], c[3]), B(C, E, c[0], c[3])])\n break\n case 6:\n R.push([B(C, E, c[2], c[0]), B(C, E, c[1], c[0]), B(C, E, c[1], c[3])], [B(C, E, c[2], c[3]), B(C, E, c[2], c[0]), B(C, E, c[1], c[3])])\n break\n case 7:\n R.push([B(C, E, c[0], c[3]), B(C, E, c[1], c[3]), B(C, E, c[2], c[3])])\n break\n case 8:\n R.push([B(C, E, c[3], c[1]), B(C, E, c[3], c[0]), B(C, E, c[3], c[2])])\n break\n case 9:\n R.push([B(C, E, c[3], c[1]), B(C, E, c[0], c[1]), B(C, E, c[0], c[2])], [B(C, E, c[3], c[2]), B(C, E, c[3], c[1]), B(C, E, c[0], c[2])])\n break\n case 10:\n R.push([B(C, E, c[1], c[0]), B(C, E, c[3], c[0]), B(C, E, c[1], c[2])], [B(C, E, c[3], c[0]), B(C, E, c[3], c[2]), B(C, E, c[1], c[2])])\n break\n case 11:\n R.push([B(C, E, c[1], c[2]), B(C, E, c[0], c[2]), B(C, E, c[3], c[2])])\n break\n case 12:\n R.push([B(C, E, c[3], c[0]), B(C, E, c[2], c[0]), B(C, E, c[2], c[1])], [B(C, E, c[3], c[1]), B(C, E, c[3], c[0]), B(C, E, c[2], c[1])])\n break\n case 13:\n R.push([B(C, E, c[0], c[1]), B(C, E, c[2], c[1]), B(C, E, c[3], c[1])])\n break\n case 14:\n R.push([B(C, E, c[2], c[0]), B(C, E, c[1], c[0]), B(C, E, c[3], c[0])])\n break\n case 15:\n break\n }\n } else if (l === 3) {\n var M = (S[c[0]] << 0) + (S[c[1]] << 1) + (S[c[2]] << 2)\n if (M === 0 || M === 7) {\n continue\n }\n switch (M) {\n case 0:\n break\n case 1:\n R.push([B(C, E, c[0], c[2]), B(C, E, c[0], c[1])])\n break\n case 2:\n R.push([B(C, E, c[1], c[0]), B(C, E, c[1], c[2])])\n break\n case 3:\n R.push([B(C, E, c[0], c[2]), B(C, E, c[1], c[2])])\n break\n case 4:\n R.push([B(C, E, c[2], c[1]), B(C, E, c[2], c[0])])\n break\n case 5:\n R.push([B(C, E, c[2], c[1]), B(C, E, c[0], c[1])])\n break\n case 6:\n R.push([B(C, E, c[1], c[0]), B(C, E, c[2], c[0])])\n break\n case 7:\n break\n }\n } else if (l === 2) {\n var M = (S[c[0]] << 0) + (S[c[1]] << 1)\n if (M === 0 || M === 3) {\n continue\n }\n switch (M) {\n case 0:\n break\n case 1:\n R.push([B(C, E, c[0], c[1])])\n break\n case 2:\n R.push([B(C, E, c[1], c[0])])\n break\n case 3:\n break\n }\n }\n }\n return R\n }\n return getContour3d\n }\n]\n\nfunction getPolygonizer(d) {\n return allFns[d]();\n}\n\n},{}],293:[function(_glvis_,module,exports){\n\"use strict\"; \"use restrict\";\n\nvar bits = _glvis_(\"bit-twiddle\")\n , UnionFind = _glvis_(\"union-find\")\n\n//Returns the dimension of a cell complex\nfunction dimension(cells) {\n var d = 0\n , max = Math.max\n for(var i=0, il=cells.length; i> 1\n , s = compareCells(cells[mid], c)\n if(s <= 0) {\n if(s === 0) {\n r = mid\n }\n lo = mid + 1\n } else if(s > 0) {\n hi = mid - 1\n }\n }\n return r\n}\nexports.findCell = findCell;\n\n//Builds an index for an n-cell. This is more general than dual, but less efficient\nfunction incidence(from_cells, to_cells) {\n var index = new Array(from_cells.length)\n for(var i=0, il=index.length; i= from_cells.length || compareCells(from_cells[idx], b) !== 0) {\n break\n }\n }\n }\n }\n return index\n}\nexports.incidence = incidence\n\n//Computes the dual of the mesh. This is basically an optimized version of buildIndex for the situation where from_cells is just the list of vertices\nfunction dual(cells, vertex_count) {\n if(!vertex_count) {\n return incidence(unique(skeleton(cells, 0)), cells, 0)\n }\n var res = new Array(vertex_count)\n for(var i=0; i>> k) & 1) {\n b.push(c[k])\n }\n }\n result.push(b)\n }\n }\n return normalize(result)\n}\nexports.explode = explode\n\n//Enumerates all of the n-cells of a cell complex\nfunction skeleton(cells, n) {\n if(n < 0) {\n return []\n }\n var result = []\n , k0 = (1<<(n+1))-1\n for(var i=0; i> 1\n }\n return (i >> 1) - 1\n }\n\n //Bubble element i down the heap\n function heapDown(i) {\n var w = heapWeight(i)\n while(true) {\n var tw = w\n var left = 2*i + 1\n var right = 2*(i + 1)\n var next = i\n if(left < heapCount) {\n var lw = heapWeight(left)\n if(lw < tw) {\n next = left\n tw = lw\n }\n }\n if(right < heapCount) {\n var rw = heapWeight(right)\n if(rw < tw) {\n next = right\n }\n }\n if(next === i) {\n return i\n }\n heapSwap(i, next)\n i = next \n }\n }\n\n //Bubbles element i up the heap\n function heapUp(i) {\n var w = heapWeight(i)\n while(i > 0) {\n var parent = heapParent(i)\n if(parent >= 0) {\n var pw = heapWeight(parent)\n if(w < pw) {\n heapSwap(i, parent)\n i = parent\n continue\n }\n }\n return i\n }\n }\n\n //Pop minimum element\n function heapPop() {\n if(heapCount > 0) {\n var head = heap[0]\n heapSwap(0, heapCount-1)\n heapCount -= 1\n heapDown(0)\n return head\n }\n return -1\n }\n\n //Update heap item i\n function heapUpdate(i, w) {\n var a = heap[i]\n if(weights[a] === w) {\n return i\n }\n weights[a] = -Infinity\n heapUp(i)\n heapPop()\n weights[a] = w\n heapCount += 1\n return heapUp(heapCount-1)\n }\n\n //Kills a vertex (assume vertex already removed from heap)\n function kill(i) {\n if(dead[i]) {\n return\n }\n //Kill vertex\n dead[i] = true\n //Fixup topology\n var s = inv[i]\n var t = outv[i]\n if(inv[t] >= 0) {\n inv[t] = s\n }\n if(outv[s] >= 0) {\n outv[s] = t\n }\n\n //Update weights on s and t\n if(index[s] >= 0) {\n heapUpdate(index[s], computeWeight(s))\n }\n if(index[t] >= 0) {\n heapUpdate(index[t], computeWeight(t))\n }\n }\n\n //Initialize weights and heap\n var heap = []\n var index = new Array(n)\n for(var i=0; i>1; i>=0; --i) {\n heapDown(i)\n }\n \n //Kill vertices\n while(true) {\n var hmin = heapPop()\n if((hmin < 0) || (weights[hmin] > minArea)) {\n break\n }\n kill(hmin)\n }\n\n //Build collapsed vertex table\n var npositions = []\n for(var i=0; i= 0 && tout >= 0 && tin !== tout) {\n var cin = index[tin]\n var cout = index[tout]\n if(cin !== cout) {\n ncells.push([ cin, cout ])\n }\n }\n })\n\n //Normalize result\n sc.unique(sc.normalize(ncells))\n\n //Return final list of cells\n return {\n positions: npositions,\n edges: ncells\n }\n}\n},{\"robust-orientation\":284,\"simplicial-complex\":295}],298:[function(_glvis_,module,exports){\n\"use strict\"\n\nmodule.exports = orderSegments\n\nvar orient = _glvis_(\"robust-orientation\")\n\nfunction horizontalOrder(a, b) {\n var bl, br\n if(b[0][0] < b[1][0]) {\n bl = b[0]\n br = b[1]\n } else if(b[0][0] > b[1][0]) {\n bl = b[1]\n br = b[0]\n } else {\n var alo = Math.min(a[0][1], a[1][1])\n var ahi = Math.max(a[0][1], a[1][1])\n var blo = Math.min(b[0][1], b[1][1])\n var bhi = Math.max(b[0][1], b[1][1])\n if(ahi < blo) {\n return ahi - blo\n }\n if(alo > bhi) {\n return alo - bhi\n }\n return ahi - bhi\n }\n var al, ar\n if(a[0][1] < a[1][1]) {\n al = a[0]\n ar = a[1]\n } else {\n al = a[1]\n ar = a[0]\n }\n var d = orient(br, bl, al)\n if(d) {\n return d\n }\n d = orient(br, bl, ar)\n if(d) {\n return d\n }\n return ar - br\n}\n\nfunction orderSegments(b, a) {\n var al, ar\n if(a[0][0] < a[1][0]) {\n al = a[0]\n ar = a[1]\n } else if(a[0][0] > a[1][0]) {\n al = a[1]\n ar = a[0]\n } else {\n return horizontalOrder(a, b)\n }\n var bl, br\n if(b[0][0] < b[1][0]) {\n bl = b[0]\n br = b[1]\n } else if(b[0][0] > b[1][0]) {\n bl = b[1]\n br = b[0]\n } else {\n return -horizontalOrder(b, a)\n }\n var d1 = orient(al, ar, br)\n var d2 = orient(al, ar, bl)\n if(d1 < 0) {\n if(d2 <= 0) {\n return d1\n }\n } else if(d1 > 0) {\n if(d2 >= 0) {\n return d1\n }\n } else if(d2) {\n return d2\n }\n d1 = orient(br, bl, ar)\n d2 = orient(br, bl, al)\n if(d1 < 0) {\n if(d2 <= 0) {\n return d1\n }\n } else if(d1 > 0) {\n if(d2 >= 0) {\n return d1\n }\n } else if(d2) {\n return d2\n }\n return ar[0] - br[0]\n}\n},{\"robust-orientation\":284}],299:[function(_glvis_,module,exports){\n\"use strict\"\n\nmodule.exports = createSlabDecomposition\n\nvar bounds = _glvis_(\"binary-search-bounds\")\nvar createRBTree = _glvis_(\"functional-red-black-tree\")\nvar orient = _glvis_(\"robust-orientation\")\nvar orderSegments = _glvis_(\"./lib/order-segments\")\n\nfunction SlabDecomposition(slabs, coordinates, horizontal) {\n this.slabs = slabs\n this.coordinates = coordinates\n this.horizontal = horizontal\n}\n\nvar proto = SlabDecomposition.prototype\n\nfunction compareHorizontal(e, y) {\n return e.y - y\n}\n\nfunction searchBucket(root, p) {\n var lastNode = null\n while(root) {\n var seg = root.key\n var l, r\n if(seg[0][0] < seg[1][0]) {\n l = seg[0]\n r = seg[1]\n } else {\n l = seg[1]\n r = seg[0]\n }\n var o = orient(l, r, p)\n if(o < 0) {\n root = root.left\n } else if(o > 0) {\n if(p[0] !== seg[1][0]) {\n lastNode = root\n root = root.right\n } else {\n var val = searchBucket(root.right, p)\n if(val) {\n return val\n }\n root = root.left\n }\n } else {\n if(p[0] !== seg[1][0]) {\n return root\n } else {\n var val = searchBucket(root.right, p)\n if(val) {\n return val\n }\n root = root.left\n }\n }\n }\n return lastNode\n}\n\nproto.castUp = function(p) {\n var bucket = bounds.le(this.coordinates, p[0])\n if(bucket < 0) {\n return -1\n }\n var root = this.slabs[bucket]\n var hitNode = searchBucket(this.slabs[bucket], p)\n var lastHit = -1\n if(hitNode) {\n lastHit = hitNode.value\n }\n //Edge case: need to handle horizontal segments (sucks)\n if(this.coordinates[bucket] === p[0]) {\n var lastSegment = null\n if(hitNode) {\n lastSegment = hitNode.key\n }\n if(bucket > 0) {\n var otherHitNode = searchBucket(this.slabs[bucket-1], p)\n if(otherHitNode) {\n if(lastSegment) {\n if(orderSegments(otherHitNode.key, lastSegment) > 0) {\n lastSegment = otherHitNode.key\n lastHit = otherHitNode.value\n }\n } else {\n lastHit = otherHitNode.value\n lastSegment = otherHitNode.key\n }\n }\n }\n var horiz = this.horizontal[bucket]\n if(horiz.length > 0) {\n var hbucket = bounds.ge(horiz, p[1], compareHorizontal)\n if(hbucket < horiz.length) {\n var e = horiz[hbucket]\n if(p[1] === e.y) {\n if(e.closed) {\n return e.index\n } else {\n while(hbucket < horiz.length-1 && horiz[hbucket+1].y === p[1]) {\n hbucket = hbucket+1\n e = horiz[hbucket]\n if(e.closed) {\n return e.index\n }\n }\n if(e.y === p[1] && !e.start) {\n hbucket = hbucket+1\n if(hbucket >= horiz.length) {\n return lastHit\n }\n e = horiz[hbucket]\n }\n }\n }\n //Check if e is above/below last segment\n if(e.start) {\n if(lastSegment) {\n var o = orient(lastSegment[0], lastSegment[1], [p[0], e.y])\n if(lastSegment[0][0] > lastSegment[1][0]) {\n o = -o\n }\n if(o > 0) {\n lastHit = e.index\n }\n } else {\n lastHit = e.index\n }\n } else if(e.y !== p[1]) {\n lastHit = e.index\n }\n }\n }\n }\n return lastHit\n}\n\nfunction IntervalSegment(y, index, start, closed) {\n this.y = y\n this.index = index\n this.start = start\n this.closed = closed\n}\n\nfunction Event(x, segment, create, index) {\n this.x = x\n this.segment = segment\n this.create = create\n this.index = index\n}\n\n\nfunction createSlabDecomposition(segments) {\n var numSegments = segments.length\n var numEvents = 2 * numSegments\n var events = new Array(numEvents)\n for(var i=0; i 1.0) {\n t = 1.0\n }\n var ti = 1.0 - t\n var n = a.length\n var r = new Array(n)\n for(var i=0; i 0) || (a > 0 && b < 0)) {\n var p = lerpW(s, b, t, a)\n pos.push(p)\n neg.push(p.slice())\n }\n if(b < 0) {\n neg.push(t.slice())\n } else if(b > 0) {\n pos.push(t.slice())\n } else {\n pos.push(t.slice())\n neg.push(t.slice())\n }\n a = b\n }\n return { positive: pos, negative: neg }\n}\n\nfunction positive(points, plane) {\n var pos = []\n var a = planeT(points[points.length-1], plane)\n for(var s=points[points.length-1], t=points[0], i=0; i 0) || (a > 0 && b < 0)) {\n pos.push(lerpW(s, b, t, a))\n }\n if(b >= 0) {\n pos.push(t.slice())\n }\n a = b\n }\n return pos\n}\n\nfunction negative(points, plane) {\n var neg = []\n var a = planeT(points[points.length-1], plane)\n for(var s=points[points.length-1], t=points[0], i=0; i 0) || (a > 0 && b < 0)) {\n neg.push(lerpW(s, b, t, a))\n }\n if(b <= 0) {\n neg.push(t.slice())\n }\n a = b\n }\n return neg\n}\n},{\"robust-dot-product\":281,\"robust-sum\":289}],301:[function(_glvis_,module,exports){\n/* global window, exports, define */\n\n!function() {\n 'use strict'\n\n var re = {\n not_string: /[^s]/,\n not_bool: /[^t]/,\n not_type: /[^T]/,\n not_primitive: /[^v]/,\n number: /[diefg]/,\n numeric_arg: /[bcdiefguxX]/,\n json: /[j]/,\n not_json: /[^j]/,\n text: /^[^\\x25]+/,\n modulo: /^\\x25{2}/,\n placeholder: /^\\x25(?:([1-9]\\d*)\\$|\\(([^)]+)\\))?(\\+)?(0|'[^$])?(-)?(\\d+)?(?:\\.(\\d+))?([b-gijostTuvxX])/,\n key: /^([a-z_][a-z_\\d]*)/i,\n key_access: /^\\.([a-z_][a-z_\\d]*)/i,\n index_access: /^\\[(\\d+)\\]/,\n sign: /^[+-]/\n }\n\n function sprintf(key) {\n // `arguments` is not an array, but should be fine for this call\n return sprintf_format(sprintf_parse(key), arguments)\n }\n\n function vsprintf(fmt, argv) {\n return sprintf.apply(null, [fmt].concat(argv || []))\n }\n\n function sprintf_format(parse_tree, argv) {\n var cursor = 1, tree_length = parse_tree.length, arg, output = '', i, k, ph, pad, pad_character, pad_length, is_positive, sign\n for (i = 0; i < tree_length; i++) {\n if (typeof parse_tree[i] === 'string') {\n output += parse_tree[i]\n }\n else if (typeof parse_tree[i] === 'object') {\n ph = parse_tree[i] // convenience purposes only\n if (ph.keys) { // keyword argument\n arg = argv[cursor]\n for (k = 0; k < ph.keys.length; k++) {\n if (arg == undefined) {\n throw new Error(sprintf('[sprintf] Cannot access property \"%s\" of undefined value \"%s\"', ph.keys[k], ph.keys[k-1]))\n }\n arg = arg[ph.keys[k]]\n }\n }\n else if (ph.param_no) { // positional argument (explicit)\n arg = argv[ph.param_no]\n }\n else { // positional argument (implicit)\n arg = argv[cursor++]\n }\n\n if (re.not_type.test(ph.type) && re.not_primitive.test(ph.type) && arg instanceof Function) {\n arg = arg()\n }\n\n if (re.numeric_arg.test(ph.type) && (typeof arg !== 'number' && isNaN(arg))) {\n throw new TypeError(sprintf('[sprintf] expecting number but found %T', arg))\n }\n\n if (re.number.test(ph.type)) {\n is_positive = arg >= 0\n }\n\n switch (ph.type) {\n case 'b':\n arg = parseInt(arg, 10).toString(2)\n break\n case 'c':\n arg = String.fromCharCode(parseInt(arg, 10))\n break\n case 'd':\n case 'i':\n arg = parseInt(arg, 10)\n break\n case 'j':\n arg = JSON.stringify(arg, null, ph.width ? parseInt(ph.width) : 0)\n break\n case 'e':\n arg = ph.precision ? parseFloat(arg).toExponential(ph.precision) : parseFloat(arg).toExponential()\n break\n case 'f':\n arg = ph.precision ? parseFloat(arg).toFixed(ph.precision) : parseFloat(arg)\n break\n case 'g':\n arg = ph.precision ? String(Number(arg.toPrecision(ph.precision))) : parseFloat(arg)\n break\n case 'o':\n arg = (parseInt(arg, 10) >>> 0).toString(8)\n break\n case 's':\n arg = String(arg)\n arg = (ph.precision ? arg.substring(0, ph.precision) : arg)\n break\n case 't':\n arg = String(!!arg)\n arg = (ph.precision ? arg.substring(0, ph.precision) : arg)\n break\n case 'T':\n arg = Object.prototype.toString.call(arg).slice(8, -1).toLowerCase()\n arg = (ph.precision ? arg.substring(0, ph.precision) : arg)\n break\n case 'u':\n arg = parseInt(arg, 10) >>> 0\n break\n case 'v':\n arg = arg.valueOf()\n arg = (ph.precision ? arg.substring(0, ph.precision) : arg)\n break\n case 'x':\n arg = (parseInt(arg, 10) >>> 0).toString(16)\n break\n case 'X':\n arg = (parseInt(arg, 10) >>> 0).toString(16).toUpperCase()\n break\n }\n if (re.json.test(ph.type)) {\n output += arg\n }\n else {\n if (re.number.test(ph.type) && (!is_positive || ph.sign)) {\n sign = is_positive ? '+' : '-'\n arg = arg.toString().replace(re.sign, '')\n }\n else {\n sign = ''\n }\n pad_character = ph.pad_char ? ph.pad_char === '0' ? '0' : ph.pad_char.charAt(1) : ' '\n pad_length = ph.width - (sign + arg).length\n pad = ph.width ? (pad_length > 0 ? pad_character.repeat(pad_length) : '') : ''\n output += ph.align ? sign + arg + pad : (pad_character === '0' ? sign + pad + arg : pad + sign + arg)\n }\n }\n }\n return output\n }\n\n var sprintf_cache = Object.create(null)\n\n function sprintf_parse(fmt) {\n if (sprintf_cache[fmt]) {\n return sprintf_cache[fmt]\n }\n\n var _fmt = fmt, match, parse_tree = [], arg_names = 0\n while (_fmt) {\n if ((match = re.text.exec(_fmt)) !== null) {\n parse_tree.push(match[0])\n }\n else if ((match = re.modulo.exec(_fmt)) !== null) {\n parse_tree.push('%')\n }\n else if ((match = re.placeholder.exec(_fmt)) !== null) {\n if (match[2]) {\n arg_names |= 1\n var field_list = [], replacement_field = match[2], field_match = []\n if ((field_match = re.key.exec(replacement_field)) !== null) {\n field_list.push(field_match[1])\n while ((replacement_field = replacement_field.substring(field_match[0].length)) !== '') {\n if ((field_match = re.key_access.exec(replacement_field)) !== null) {\n field_list.push(field_match[1])\n }\n else if ((field_match = re.index_access.exec(replacement_field)) !== null) {\n field_list.push(field_match[1])\n }\n else {\n throw new SyntaxError('[sprintf] failed to parse named argument key')\n }\n }\n }\n else {\n throw new SyntaxError('[sprintf] failed to parse named argument key')\n }\n match[2] = field_list\n }\n else {\n arg_names |= 2\n }\n if (arg_names === 3) {\n throw new Error('[sprintf] mixing positional and named placeholders is not (yet) supported')\n }\n\n parse_tree.push(\n {\n placeholder: match[0],\n param_no: match[1],\n keys: match[2],\n sign: match[3],\n pad_char: match[4],\n align: match[5],\n width: match[6],\n precision: match[7],\n type: match[8]\n }\n )\n }\n else {\n throw new SyntaxError('[sprintf] unexpected placeholder')\n }\n _fmt = _fmt.substring(match[0].length)\n }\n return sprintf_cache[fmt] = parse_tree\n }\n\n /**\n * export to either browser or node.js\n */\n /* eslint-disable quote-props */\n if (typeof exports !== 'undefined') {\n exports['sprintf'] = sprintf\n exports['vsprintf'] = vsprintf\n }\n if (typeof window !== 'undefined') {\n window['sprintf'] = sprintf\n window['vsprintf'] = vsprintf\n\n if (typeof define === 'function' && define['amd']) {\n define(function() {\n return {\n 'sprintf': sprintf,\n 'vsprintf': vsprintf\n }\n })\n }\n }\n /* eslint-enable quote-props */\n}(); // eslint-disable-line\n\n},{}],302:[function(_glvis_,module,exports){\n\"use strict\"\n\nmodule.exports = surfaceNets\n\nvar generateContourExtractor = _glvis_(\"ndarray-extract-contour\")\nvar zeroCrossings = _glvis_(\"zero-crossings\")\n\nvar allFns = {\n \"2d\": function (genContour, order, dtype) {\n var contour = genContour({\n order: order,\n scalarArguments: 3,\n getters: dtype === \"generic\" ? [0] : undefined,\n phase: function phaseFunc(p, a, b, c) {\n return (p > c) | 0;\n },\n vertex: function vertexFunc(d0, d1, v0, v1, v2, v3, p0, p1, p2, p3, a, b, c) {\n var m = ((p0 << 0) + (p1 << 1) + (p2 << 2) + (p3 << 3)) | 0;\n if (m === 0 || m === 15) {\n return;\n }\n switch (m) {\n case 0:\n a.push([d0 - 0.5, d1 - 0.5]);\n break;\n case 1:\n a.push([d0 - 0.25 - (0.25 * (v1 + v0 - 2 * c)) / (v0 - v1), d1 - 0.25 - (0.25 * (v2 + v0 - 2 * c)) / (v0 - v2)]);\n break;\n case 2:\n a.push([d0 - 0.75 - (0.25 * (-v1 - v0 + 2 * c)) / (v1 - v0), d1 - 0.25 - (0.25 * (v3 + v1 - 2 * c)) / (v1 - v3)]);\n break;\n case 3:\n a.push([d0 - 0.5, d1 - 0.5 - (0.5 * (v2 + v0 + v3 + v1 - 4 * c)) / (v0 - v2 + v1 - v3)]);\n break;\n case 4:\n a.push([d0 - 0.25 - (0.25 * (v3 + v2 - 2 * c)) / (v2 - v3), d1 - 0.75 - (0.25 * (-v2 - v0 + 2 * c)) / (v2 - v0)]);\n break;\n case 5:\n a.push([d0 - 0.5 - (0.5 * (v1 + v0 + v3 + v2 - 4 * c)) / (v0 - v1 + v2 - v3), d1 - 0.5]);\n break;\n case 6:\n a.push([d0 - 0.5 - (0.25 * (-v1 - v0 + v3 + v2)) / (v1 - v0 + v2 - v3), d1 - 0.5 - (0.25 * (-v2 - v0 + v3 + v1)) / (v2 - v0 + v1 - v3)]);\n break;\n case 7:\n a.push([d0 - 0.75 - (0.25 * (v3 + v2 - 2 * c)) / (v2 - v3), d1 - 0.75 - (0.25 * (v3 + v1 - 2 * c)) / (v1 - v3)]);\n break;\n case 8:\n a.push([d0 - 0.75 - (0.25 * (-v3 - v2 + 2 * c)) / (v3 - v2), d1 - 0.75 - (0.25 * (-v3 - v1 + 2 * c)) / (v3 - v1)]);\n break;\n case 9:\n a.push([d0 - 0.5 - (0.25 * (v1 + v0 + -v3 - v2)) / (v0 - v1 + v3 - v2), d1 - 0.5 - (0.25 * (v2 + v0 + -v3 - v1)) / (v0 - v2 + v3 - v1)]);\n break;\n case 10:\n a.push([d0 - 0.5 - (0.5 * (-v1 - v0 + -v3 - v2 + 4 * c)) / (v1 - v0 + v3 - v2), d1 - 0.5]);\n break;\n case 11:\n a.push([d0 - 0.25 - (0.25 * (-v3 - v2 + 2 * c)) / (v3 - v2), d1 - 0.75 - (0.25 * (v2 + v0 - 2 * c)) / (v0 - v2)]);\n break;\n case 12:\n a.push([d0 - 0.5, d1 - 0.5 - (0.5 * (-v2 - v0 + -v3 - v1 + 4 * c)) / (v2 - v0 + v3 - v1)]);\n break;\n case 13:\n a.push([d0 - 0.75 - (0.25 * (v1 + v0 - 2 * c)) / (v0 - v1), d1 - 0.25 - (0.25 * (-v3 - v1 + 2 * c)) / (v3 - v1)]);\n break;\n case 14:\n a.push([d0 - 0.25 - (0.25 * (-v1 - v0 + 2 * c)) / (v1 - v0), d1 - 0.25 - (0.25 * (-v2 - v0 + 2 * c)) / (v2 - v0)]);\n break;\n case 15:\n a.push([d0 - 0.5, d1 - 0.5]);\n break;\n }\n },\n cell: function cellFunc(v0, v1, c0, c1, p0, p1, a, b, c) {\n if (p0) {\n b.push([v0, v1]);\n } else {\n b.push([v1, v0]);\n }\n },\n });\n return function (array, level) {\n var verts = [],\n cells = [];\n contour(array, verts, cells, level);\n return { positions: verts, cells: cells };\n };\n }\n}\n\nfunction buildSurfaceNets(order, dtype) {\n var inKey = order.length + 'd'\n var fn = allFns[inKey]\n if(fn) return fn(generateContourExtractor, order, dtype)\n}\n\n//1D case: Need to handle specially\nfunction mesh1D(array, level) {\n var zc = zeroCrossings(array, level)\n var n = zc.length\n var npos = new Array(n)\n var ncel = new Array(n)\n for(var i=0; i0) {\n shapeX += 0.02\n }\n }\n\n var data = new Float32Array(bufferSize)\n var ptr = 0\n var xOffset = -0.5 * shapeX\n for(var i=0; i Math.max(vy, vz)) {\n u[2] = 1\n } else if(vy > Math.max(vx, vz)) {\n u[0] = 1\n } else {\n u[1] = 1\n }\n\n var vv = 0\n var uv = 0\n for(var i=0; i<3; ++i ) {\n vv += v[i] * v[i]\n uv += u[i] * v[i]\n }\n for(var i=0; i<3; ++i) {\n u[i] -= (uv / vv) * v[i]\n }\n normalize3(u, u)\n return u\n}\n\nfunction TurntableController(zoomMin, zoomMax, center, up, right, radius, theta, phi) {\n this.center = filterVector(center)\n this.up = filterVector(up)\n this.right = filterVector(right)\n this.radius = filterVector([radius])\n this.angle = filterVector([theta, phi])\n this.angle.bounds = [[-Infinity,-Math.PI/2], [Infinity,Math.PI/2]]\n this.setDistanceLimits(zoomMin, zoomMax)\n\n this.computedCenter = this.center.curve(0)\n this.computedUp = this.up.curve(0)\n this.computedRight = this.right.curve(0)\n this.computedRadius = this.radius.curve(0)\n this.computedAngle = this.angle.curve(0)\n this.computedToward = [0,0,0]\n this.computedEye = [0,0,0]\n this.computedMatrix = new Array(16)\n for(var i=0; i<16; ++i) {\n this.computedMatrix[i] = 0.5\n }\n\n this.recalcMatrix(0)\n}\n\nvar proto = TurntableController.prototype\n\nproto.setDistanceLimits = function(minDist, maxDist) {\n if(minDist > 0) {\n minDist = Math.log(minDist)\n } else {\n minDist = -Infinity\n }\n if(maxDist > 0) {\n maxDist = Math.log(maxDist)\n } else {\n maxDist = Infinity\n }\n maxDist = Math.max(maxDist, minDist)\n this.radius.bounds[0][0] = minDist\n this.radius.bounds[1][0] = maxDist\n}\n\nproto.getDistanceLimits = function(out) {\n var bounds = this.radius.bounds[0]\n if(out) {\n out[0] = Math.exp(bounds[0][0])\n out[1] = Math.exp(bounds[1][0])\n return out\n }\n return [ Math.exp(bounds[0][0]), Math.exp(bounds[1][0]) ]\n}\n\nproto.recalcMatrix = function(t) {\n //Recompute curves\n this.center.curve(t)\n this.up.curve(t)\n this.right.curve(t)\n this.radius.curve(t)\n this.angle.curve(t)\n\n //Compute frame for camera matrix\n var up = this.computedUp\n var right = this.computedRight\n var uu = 0.0\n var ur = 0.0\n for(var i=0; i<3; ++i) {\n ur += up[i] * right[i]\n uu += up[i] * up[i]\n }\n var ul = Math.sqrt(uu)\n var rr = 0.0\n for(var i=0; i<3; ++i) {\n right[i] -= up[i] * ur / uu\n rr += right[i] * right[i]\n up[i] /= ul\n }\n var rl = Math.sqrt(rr)\n for(var i=0; i<3; ++i) {\n right[i] /= rl\n }\n\n //Compute toward vector\n var toward = this.computedToward\n cross(toward, up, right)\n normalize3(toward, toward)\n\n //Compute angular parameters\n var radius = Math.exp(this.computedRadius[0])\n var theta = this.computedAngle[0]\n var phi = this.computedAngle[1]\n\n var ctheta = Math.cos(theta)\n var stheta = Math.sin(theta)\n var cphi = Math.cos(phi)\n var sphi = Math.sin(phi)\n\n var center = this.computedCenter\n\n var wx = ctheta * cphi \n var wy = stheta * cphi\n var wz = sphi\n\n var sx = -ctheta * sphi\n var sy = -stheta * sphi\n var sz = cphi\n\n var eye = this.computedEye\n var mat = this.computedMatrix\n for(var i=0; i<3; ++i) {\n var x = wx * right[i] + wy * toward[i] + wz * up[i]\n mat[4*i+1] = sx * right[i] + sy * toward[i] + sz * up[i]\n mat[4*i+2] = x\n mat[4*i+3] = 0.0\n }\n\n var ax = mat[1]\n var ay = mat[5]\n var az = mat[9]\n var bx = mat[2]\n var by = mat[6]\n var bz = mat[10]\n var cx = ay * bz - az * by\n var cy = az * bx - ax * bz\n var cz = ax * by - ay * bx\n var cl = len3(cx, cy, cz)\n cx /= cl\n cy /= cl\n cz /= cl\n mat[0] = cx\n mat[4] = cy\n mat[8] = cz\n\n for(var i=0; i<3; ++i) {\n eye[i] = center[i] + mat[2+4*i]*radius\n }\n\n for(var i=0; i<3; ++i) {\n var rr = 0.0\n for(var j=0; j<3; ++j) {\n rr += mat[i+4*j] * eye[j]\n }\n mat[12+i] = -rr\n }\n mat[15] = 1.0\n}\n\nproto.getMatrix = function(t, result) {\n this.recalcMatrix(t)\n var mat = this.computedMatrix\n if(result) {\n for(var i=0; i<16; ++i) {\n result[i] = mat[i]\n }\n return result\n }\n return mat\n}\n\nvar zAxis = [0,0,0]\nproto.rotate = function(t, dtheta, dphi, droll) {\n this.angle.move(t, dtheta, dphi)\n if(droll) {\n this.recalcMatrix(t)\n\n var mat = this.computedMatrix\n zAxis[0] = mat[2]\n zAxis[1] = mat[6]\n zAxis[2] = mat[10]\n\n var up = this.computedUp\n var right = this.computedRight\n var toward = this.computedToward\n\n for(var i=0; i<3; ++i) {\n mat[4*i] = up[i]\n mat[4*i+1] = right[i]\n mat[4*i+2] = toward[i]\n }\n rotateM(mat, mat, droll, zAxis)\n for(var i=0; i<3; ++i) {\n up[i] = mat[4*i]\n right[i] = mat[4*i+1]\n }\n\n this.up.set(t, up[0], up[1], up[2])\n this.right.set(t, right[0], right[1], right[2])\n }\n}\n\nproto.pan = function(t, dx, dy, dz) {\n dx = dx || 0.0\n dy = dy || 0.0\n dz = dz || 0.0\n\n this.recalcMatrix(t)\n var mat = this.computedMatrix\n\n var dist = Math.exp(this.computedRadius[0])\n\n var ux = mat[1]\n var uy = mat[5]\n var uz = mat[9]\n var ul = len3(ux, uy, uz)\n ux /= ul\n uy /= ul\n uz /= ul\n\n var rx = mat[0]\n var ry = mat[4]\n var rz = mat[8]\n var ru = rx * ux + ry * uy + rz * uz\n rx -= ux * ru\n ry -= uy * ru\n rz -= uz * ru\n var rl = len3(rx, ry, rz)\n rx /= rl\n ry /= rl\n rz /= rl\n\n var vx = rx * dx + ux * dy\n var vy = ry * dx + uy * dy\n var vz = rz * dx + uz * dy\n this.center.move(t, vx, vy, vz)\n\n //Update z-component of radius\n var radius = Math.exp(this.computedRadius[0])\n radius = Math.max(1e-4, radius + dz)\n this.radius.set(t, Math.log(radius))\n}\n\nproto.translate = function(t, dx, dy, dz) {\n this.center.move(t,\n dx||0.0,\n dy||0.0,\n dz||0.0)\n}\n\n//Recenters the coordinate axes\nproto.setMatrix = function(t, mat, axes, noSnap) {\n \n //Get the axes for tare\n var ushift = 1\n if(typeof axes === 'number') {\n ushift = (axes)|0\n } \n if(ushift < 0 || ushift > 3) {\n ushift = 1\n }\n var vshift = (ushift + 2) % 3\n var fshift = (ushift + 1) % 3\n\n //Recompute state for new t value\n if(!mat) { \n this.recalcMatrix(t)\n mat = this.computedMatrix\n }\n\n //Get right and up vectors\n var ux = mat[ushift]\n var uy = mat[ushift+4]\n var uz = mat[ushift+8]\n if(!noSnap) {\n var ul = len3(ux, uy, uz)\n ux /= ul\n uy /= ul\n uz /= ul\n } else {\n var ax = Math.abs(ux)\n var ay = Math.abs(uy)\n var az = Math.abs(uz)\n var am = Math.max(ax,ay,az)\n if(ax === am) {\n ux = (ux < 0) ? -1 : 1\n uy = uz = 0\n } else if(az === am) {\n uz = (uz < 0) ? -1 : 1\n ux = uy = 0\n } else {\n uy = (uy < 0) ? -1 : 1\n ux = uz = 0\n }\n }\n\n var rx = mat[vshift]\n var ry = mat[vshift+4]\n var rz = mat[vshift+8]\n var ru = rx * ux + ry * uy + rz * uz\n rx -= ux * ru\n ry -= uy * ru\n rz -= uz * ru\n var rl = len3(rx, ry, rz)\n rx /= rl\n ry /= rl\n rz /= rl\n \n var fx = uy * rz - uz * ry\n var fy = uz * rx - ux * rz\n var fz = ux * ry - uy * rx\n var fl = len3(fx, fy, fz)\n fx /= fl\n fy /= fl\n fz /= fl\n\n this.center.jump(t, ex, ey, ez)\n this.radius.idle(t)\n this.up.jump(t, ux, uy, uz)\n this.right.jump(t, rx, ry, rz)\n\n var phi, theta\n if(ushift === 2) {\n var cx = mat[1]\n var cy = mat[5]\n var cz = mat[9]\n var cr = cx * rx + cy * ry + cz * rz\n var cf = cx * fx + cy * fy + cz * fz\n if(tu < 0) {\n phi = -Math.PI/2\n } else {\n phi = Math.PI/2\n }\n theta = Math.atan2(cf, cr)\n } else {\n var tx = mat[2]\n var ty = mat[6]\n var tz = mat[10]\n var tu = tx * ux + ty * uy + tz * uz\n var tr = tx * rx + ty * ry + tz * rz\n var tf = tx * fx + ty * fy + tz * fz\n\n phi = Math.asin(clamp1(tu))\n theta = Math.atan2(tf, tr)\n }\n\n this.angle.jump(t, theta, phi)\n\n this.recalcMatrix(t)\n var dx = mat[2]\n var dy = mat[6]\n var dz = mat[10]\n\n var imat = this.computedMatrix\n invert44(imat, mat)\n var w = imat[15]\n var ex = imat[12] / w\n var ey = imat[13] / w\n var ez = imat[14] / w\n\n var gs = Math.exp(this.computedRadius[0])\n this.center.jump(t, ex-dx*gs, ey-dy*gs, ez-dz*gs)\n}\n\nproto.lastT = function() {\n return Math.max(\n this.center.lastT(),\n this.up.lastT(),\n this.right.lastT(),\n this.radius.lastT(),\n this.angle.lastT())\n}\n\nproto.idle = function(t) {\n this.center.idle(t)\n this.up.idle(t)\n this.right.idle(t)\n this.radius.idle(t)\n this.angle.idle(t)\n}\n\nproto.flush = function(t) {\n this.center.flush(t)\n this.up.flush(t)\n this.right.flush(t)\n this.radius.flush(t)\n this.angle.flush(t)\n}\n\nproto.setDistance = function(t, d) {\n if(d > 0) {\n this.radius.set(t, Math.log(d))\n }\n}\n\nproto.lookAt = function(t, eye, center, up) {\n this.recalcMatrix(t)\n\n eye = eye || this.computedEye\n center = center || this.computedCenter\n up = up || this.computedUp\n\n var ux = up[0]\n var uy = up[1]\n var uz = up[2]\n var ul = len3(ux, uy, uz)\n if(ul < 1e-6) {\n return\n }\n ux /= ul\n uy /= ul\n uz /= ul\n\n var tx = eye[0] - center[0]\n var ty = eye[1] - center[1]\n var tz = eye[2] - center[2]\n var tl = len3(tx, ty, tz)\n if(tl < 1e-6) {\n return\n }\n tx /= tl\n ty /= tl\n tz /= tl\n\n var right = this.computedRight\n var rx = right[0]\n var ry = right[1]\n var rz = right[2]\n var ru = ux*rx + uy*ry + uz*rz\n rx -= ru * ux\n ry -= ru * uy\n rz -= ru * uz\n var rl = len3(rx, ry, rz)\n\n if(rl < 0.01) {\n rx = uy * tz - uz * ty\n ry = uz * tx - ux * tz\n rz = ux * ty - uy * tx\n rl = len3(rx, ry, rz)\n if(rl < 1e-6) {\n return\n }\n }\n rx /= rl\n ry /= rl\n rz /= rl\n\n this.up.set(t, ux, uy, uz)\n this.right.set(t, rx, ry, rz)\n this.center.set(t, center[0], center[1], center[2])\n this.radius.set(t, Math.log(tl))\n\n var fx = uy * rz - uz * ry\n var fy = uz * rx - ux * rz\n var fz = ux * ry - uy * rx\n var fl = len3(fx, fy, fz)\n fx /= fl\n fy /= fl\n fz /= fl\n\n var tu = ux*tx + uy*ty + uz*tz\n var tr = rx*tx + ry*ty + rz*tz\n var tf = fx*tx + fy*ty + fz*tz\n\n var phi = Math.asin(clamp1(tu))\n var theta = Math.atan2(tf, tr)\n\n var angleState = this.angle._state\n var lastTheta = angleState[angleState.length-1]\n var lastPhi = angleState[angleState.length-2]\n lastTheta = lastTheta % (2.0 * Math.PI)\n var dp = Math.abs(lastTheta + 2.0 * Math.PI - theta)\n var d0 = Math.abs(lastTheta - theta)\n var dn = Math.abs(lastTheta - 2.0 * Math.PI - theta)\n if(dp < d0) {\n lastTheta += 2.0 * Math.PI\n }\n if(dn < d0) {\n lastTheta -= 2.0 * Math.PI\n }\n\n this.angle.jump(this.angle.lastT(), lastTheta, lastPhi)\n this.angle.set(t, theta, phi)\n}\n\nfunction createTurntableController(options) {\n options = options || {}\n\n var center = options.center || [0,0,0]\n var up = options.up || [0,1,0]\n var right = options.right || findOrthoPair(up)\n var radius = options.radius || 1.0\n var theta = options.theta || 0.0\n var phi = options.phi || 0.0\n\n center = [].slice.call(center, 0, 3)\n\n up = [].slice.call(up, 0, 3)\n normalize3(up, up)\n\n right = [].slice.call(right, 0, 3)\n normalize3(right, right)\n\n if('eye' in options) {\n var eye = options.eye\n var toward = [\n eye[0]-center[0],\n eye[1]-center[1],\n eye[2]-center[2]\n ]\n cross(right, toward, up)\n if(len3(right[0], right[1], right[2]) < 1e-6) {\n right = findOrthoPair(up)\n } else {\n normalize3(right, right)\n }\n\n radius = len3(toward[0], toward[1], toward[2])\n\n var ut = dot3(up, toward) / radius\n var rt = dot3(right, toward) / radius\n phi = Math.acos(ut)\n theta = Math.acos(rt)\n }\n\n //Use logarithmic coordinates for radius\n radius = Math.log(radius)\n\n //Return the controller\n return new TurntableController(\n options.zoomMin,\n options.zoomMax,\n center,\n up,\n right,\n radius,\n theta,\n phi)\n}\n},{\"filtered-vector\":68,\"gl-mat4/invert\":98,\"gl-mat4/rotate\":103,\"gl-vec3/cross\":157,\"gl-vec3/dot\":162,\"gl-vec3/normalize\":179}],306:[function(_glvis_,module,exports){\n\"use strict\"\n\nmodule.exports = twoProduct\n\nvar SPLITTER = +(Math.pow(2, 27) + 1.0)\n\nfunction twoProduct(a, b, result) {\n var x = a * b\n\n var c = SPLITTER * a\n var abig = c - a\n var ahi = c - abig\n var alo = a - ahi\n\n var d = SPLITTER * b\n var bbig = d - b\n var bhi = d - bbig\n var blo = b - bhi\n\n var err1 = x - (ahi * bhi)\n var err2 = err1 - (alo * bhi)\n var err3 = err2 - (ahi * blo)\n\n var y = alo * blo - err3\n\n if(result) {\n result[0] = y\n result[1] = x\n return result\n }\n\n return [ y, x ]\n}\n},{}],307:[function(_glvis_,module,exports){\n\"use strict\"\n\nmodule.exports = fastTwoSum\n\nfunction fastTwoSum(a, b, result) {\n\tvar x = a + b\n\tvar bv = x - a\n\tvar av = x - bv\n\tvar br = b - bv\n\tvar ar = a - av\n\tif(result) {\n\t\tresult[0] = ar + br\n\t\tresult[1] = x\n\t\treturn result\n\t}\n\treturn [ar+br, x]\n}\n},{}],308:[function(_glvis_,module,exports){\n(function (global){(function (){\n'use strict'\n\nvar bits = _glvis_('bit-twiddle')\nvar dup = _glvis_('dup')\nvar Buffer = _glvis_('buffer').Buffer\n\n//Legacy pool support\nif(!global.__TYPEDARRAY_POOL) {\n global.__TYPEDARRAY_POOL = {\n UINT8 : dup([32, 0])\n , UINT16 : dup([32, 0])\n , UINT32 : dup([32, 0])\n , BIGUINT64 : dup([32, 0])\n , INT8 : dup([32, 0])\n , INT16 : dup([32, 0])\n , INT32 : dup([32, 0])\n , BIGINT64 : dup([32, 0])\n , FLOAT : dup([32, 0])\n , DOUBLE : dup([32, 0])\n , DATA : dup([32, 0])\n , UINT8C : dup([32, 0])\n , BUFFER : dup([32, 0])\n }\n}\n\nvar hasUint8C = (typeof Uint8ClampedArray) !== 'undefined'\nvar hasBigUint64 = (typeof BigUint64Array) !== 'undefined'\nvar hasBigInt64 = (typeof BigInt64Array) !== 'undefined'\nvar POOL = global.__TYPEDARRAY_POOL\n\n//Upgrade pool\nif(!POOL.UINT8C) {\n POOL.UINT8C = dup([32, 0])\n}\nif(!POOL.BIGUINT64) {\n POOL.BIGUINT64 = dup([32, 0])\n}\nif(!POOL.BIGINT64) {\n POOL.BIGINT64 = dup([32, 0])\n}\nif(!POOL.BUFFER) {\n POOL.BUFFER = dup([32, 0])\n}\n\n//New technique: Only allocate from ArrayBufferView and Buffer\nvar DATA = POOL.DATA\n , BUFFER = POOL.BUFFER\n\nexports.free = function free(array) {\n if(Buffer.isBuffer(array)) {\n BUFFER[bits.log2(array.length)].push(array)\n } else {\n if(Object.prototype.toString.call(array) !== '[object ArrayBuffer]') {\n array = array.buffer\n }\n if(!array) {\n return\n }\n var n = array.length || array.byteLength\n var log_n = bits.log2(n)|0\n DATA[log_n].push(array)\n }\n}\n\nfunction freeArrayBuffer(buffer) {\n if(!buffer) {\n return\n }\n var n = buffer.length || buffer.byteLength\n var log_n = bits.log2(n)\n DATA[log_n].push(buffer)\n}\n\nfunction freeTypedArray(array) {\n freeArrayBuffer(array.buffer)\n}\n\nexports.freeUint8 =\nexports.freeUint16 =\nexports.freeUint32 =\nexports.freeBigUint64 =\nexports.freeInt8 =\nexports.freeInt16 =\nexports.freeInt32 =\nexports.freeBigInt64 =\nexports.freeFloat32 = \nexports.freeFloat =\nexports.freeFloat64 = \nexports.freeDouble = \nexports.freeUint8Clamped = \nexports.freeDataView = freeTypedArray\n\nexports.freeArrayBuffer = freeArrayBuffer\n\nexports.freeBuffer = function freeBuffer(array) {\n BUFFER[bits.log2(array.length)].push(array)\n}\n\nexports.malloc = function malloc(n, dtype) {\n if(dtype === undefined || dtype === 'arraybuffer') {\n return mallocArrayBuffer(n)\n } else {\n switch(dtype) {\n case 'uint8':\n return mallocUint8(n)\n case 'uint16':\n return mallocUint16(n)\n case 'uint32':\n return mallocUint32(n)\n case 'int8':\n return mallocInt8(n)\n case 'int16':\n return mallocInt16(n)\n case 'int32':\n return mallocInt32(n)\n case 'float':\n case 'float32':\n return mallocFloat(n)\n case 'double':\n case 'float64':\n return mallocDouble(n)\n case 'uint8_clamped':\n return mallocUint8Clamped(n)\n case 'bigint64':\n return mallocBigInt64(n)\n case 'biguint64':\n return mallocBigUint64(n)\n case 'buffer':\n return mallocBuffer(n)\n case 'data':\n case 'dataview':\n return mallocDataView(n)\n\n default:\n return null\n }\n }\n return null\n}\n\nfunction mallocArrayBuffer(n) {\n var n = bits.nextPow2(n)\n var log_n = bits.log2(n)\n var d = DATA[log_n]\n if(d.length > 0) {\n return d.pop()\n }\n return new ArrayBuffer(n)\n}\nexports.mallocArrayBuffer = mallocArrayBuffer\n\nfunction mallocUint8(n) {\n return new Uint8Array(mallocArrayBuffer(n), 0, n)\n}\nexports.mallocUint8 = mallocUint8\n\nfunction mallocUint16(n) {\n return new Uint16Array(mallocArrayBuffer(2*n), 0, n)\n}\nexports.mallocUint16 = mallocUint16\n\nfunction mallocUint32(n) {\n return new Uint32Array(mallocArrayBuffer(4*n), 0, n)\n}\nexports.mallocUint32 = mallocUint32\n\nfunction mallocInt8(n) {\n return new Int8Array(mallocArrayBuffer(n), 0, n)\n}\nexports.mallocInt8 = mallocInt8\n\nfunction mallocInt16(n) {\n return new Int16Array(mallocArrayBuffer(2*n), 0, n)\n}\nexports.mallocInt16 = mallocInt16\n\nfunction mallocInt32(n) {\n return new Int32Array(mallocArrayBuffer(4*n), 0, n)\n}\nexports.mallocInt32 = mallocInt32\n\nfunction mallocFloat(n) {\n return new Float32Array(mallocArrayBuffer(4*n), 0, n)\n}\nexports.mallocFloat32 = exports.mallocFloat = mallocFloat\n\nfunction mallocDouble(n) {\n return new Float64Array(mallocArrayBuffer(8*n), 0, n)\n}\nexports.mallocFloat64 = exports.mallocDouble = mallocDouble\n\nfunction mallocUint8Clamped(n) {\n if(hasUint8C) {\n return new Uint8ClampedArray(mallocArrayBuffer(n), 0, n)\n } else {\n return mallocUint8(n)\n }\n}\nexports.mallocUint8Clamped = mallocUint8Clamped\n\nfunction mallocBigUint64(n) {\n if(hasBigUint64) {\n return new BigUint64Array(mallocArrayBuffer(8*n), 0, n)\n } else {\n return null;\n }\n}\nexports.mallocBigUint64 = mallocBigUint64\n\nfunction mallocBigInt64(n) {\n if (hasBigInt64) {\n return new BigInt64Array(mallocArrayBuffer(8*n), 0, n)\n } else {\n return null;\n }\n}\nexports.mallocBigInt64 = mallocBigInt64\n\nfunction mallocDataView(n) {\n return new DataView(mallocArrayBuffer(n), 0, n)\n}\nexports.mallocDataView = mallocDataView\n\nfunction mallocBuffer(n) {\n n = bits.nextPow2(n)\n var log_n = bits.log2(n)\n var cache = BUFFER[log_n]\n if(cache.length > 0) {\n return cache.pop()\n }\n return new Buffer(n)\n}\nexports.mallocBuffer = mallocBuffer\n\nexports.clearCache = function clearCache() {\n for(var i=0; i<32; ++i) {\n POOL.UINT8[i].length = 0\n POOL.UINT16[i].length = 0\n POOL.UINT32[i].length = 0\n POOL.INT8[i].length = 0\n POOL.INT16[i].length = 0\n POOL.INT32[i].length = 0\n POOL.FLOAT[i].length = 0\n POOL.DOUBLE[i].length = 0\n POOL.BIGUINT64[i].length = 0\n POOL.BIGINT64[i].length = 0\n POOL.UINT8C[i].length = 0\n DATA[i].length = 0\n BUFFER[i].length = 0\n }\n}\n\n}).call(this)}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{\"bit-twiddle\":32,\"buffer\":3,\"dup\":65}],309:[function(_glvis_,module,exports){\n\"use strict\"; \"use restrict\";\n\nmodule.exports = UnionFind;\n\nfunction UnionFind(count) {\n this.roots = new Array(count);\n this.ranks = new Array(count);\n \n for(var i=0; i\"\n var clsTag = \"\"\n\n var nOPN = opnTag.length\n var nCLS = clsTag.length\n\n var isRecursive = (TAG_CHR[0] === CHR_super0) ||\n (TAG_CHR[0] === CHR_sub0);\n\n var a = 0\n var b = -nCLS\n while (a > -1) {\n a = str.indexOf(opnTag, a)\n if(a === -1) break\n\n b = str.indexOf(clsTag, a + nOPN)\n if(b === -1) break\n\n if(b <= a) break\n\n for(var i = a; i < b + nCLS; ++i){\n if((i < a + nOPN) || (i >= b)) {\n map[i] = null\n str = str.substr(0, i) + \" \" + str.substr(i + 1)\n } else {\n if(map[i] !== null) {\n var pos = map[i].indexOf(TAG_CHR[0])\n if(pos === -1) {\n map[i] += TAG_CHR\n } else { // i.e. to handle multiple sub/super-scripts\n if(isRecursive) {\n // i.e to increase the sub/sup number\n map[i] = map[i].substr(0, pos + 1) + (1 + parseInt(map[i][pos + 1])) + map[i].substr(pos + 2)\n }\n }\n }\n }\n }\n\n var start = a + nOPN\n var remainingStr = str.substr(start, b - start)\n\n var c = remainingStr.indexOf(opnTag)\n if(c !== -1) a = c\n else a = b + nCLS\n }\n\n return map\n}\n\nfunction transformPositions(positions, options, size) {\n var align = options.textAlign || \"start\"\n var baseline = options.textBaseline || \"alphabetic\"\n\n var lo = [1<<30, 1<<30]\n var hi = [0,0]\n var n = positions.length\n for(var i=0; i/g, '\\n') // replace
tags with \\n in the string\n } else {\n rawString = rawString.replace(/\\/g, ' ') // don't accept
tags in the input and replace with space in this case\n }\n\n var activeStyle = \"\"\n var map = []\n for(j = 0; j < rawString.length; ++j) {\n map[j] = activeStyle\n }\n\n if(styletags.bolds === true) map = parseTag(TAG_bold, CHR_bold, rawString, map)\n if(styletags.italics === true) map = parseTag(TAG_italic, CHR_italic, rawString, map)\n if(styletags.superscripts === true) map = parseTag(TAG_super, CHR_super, rawString, map)\n if(styletags.subscripts === true) map = parseTag(TAG_sub, CHR_sub, rawString, map)\n\n var allStyles = []\n var plainText = \"\"\n for(j = 0; j < rawString.length; ++j) {\n if(map[j] !== null) {\n plainText += rawString[j]\n allStyles.push(map[j])\n }\n }\n\n var allTexts = plainText.split('\\n')\n\n var numberOfLines = allTexts.length\n var lineHeight = Math.round(lineSpacing * fontSize)\n var offsetX = fontSize\n var offsetY = fontSize * 2\n var maxWidth = 0\n var minHeight = numberOfLines * lineHeight + offsetY\n\n if(canvas.height < minHeight) {\n canvas.height = minHeight\n }\n\n context.fillStyle = \"#000\"\n context.fillRect(0, 0, canvas.width, canvas.height)\n\n context.fillStyle = \"#fff\"\n var i, j, xPos, yPos, zPos\n var nDone = 0\n\n var buffer = \"\"\n function writeBuffer() {\n if(buffer !== \"\") {\n var delta = context.measureText(buffer).width\n\n context.fillText(buffer, offsetX + xPos, offsetY + yPos)\n xPos += delta\n }\n }\n\n function getTextFontSize() {\n return \"\" + Math.round(zPos) + \"px \";\n }\n\n function changeStyle(oldStyle, newStyle) {\n var ctxFont = \"\" + context.font;\n\n if(styletags.subscripts === true) {\n var oldIndex_Sub = oldStyle.indexOf(CHR_sub0);\n var newIndex_Sub = newStyle.indexOf(CHR_sub0);\n\n var oldSub = (oldIndex_Sub > -1) ? parseInt(oldStyle[1 + oldIndex_Sub]) : 0;\n var newSub = (newIndex_Sub > -1) ? parseInt(newStyle[1 + newIndex_Sub]) : 0;\n\n if(oldSub !== newSub) {\n ctxFont = ctxFont.replace(getTextFontSize(), \"?px \")\n zPos *= Math.pow(0.75, (newSub - oldSub))\n ctxFont = ctxFont.replace(\"?px \", getTextFontSize())\n }\n yPos += 0.25 * lineHeight * (newSub - oldSub);\n }\n\n if(styletags.superscripts === true) {\n var oldIndex_Super = oldStyle.indexOf(CHR_super0);\n var newIndex_Super = newStyle.indexOf(CHR_super0);\n\n var oldSuper = (oldIndex_Super > -1) ? parseInt(oldStyle[1 + oldIndex_Super]) : 0;\n var newSuper = (newIndex_Super > -1) ? parseInt(newStyle[1 + newIndex_Super]) : 0;\n\n if(oldSuper !== newSuper) {\n ctxFont = ctxFont.replace(getTextFontSize(), \"?px \")\n zPos *= Math.pow(0.75, (newSuper - oldSuper))\n ctxFont = ctxFont.replace(\"?px \", getTextFontSize())\n }\n yPos -= 0.25 * lineHeight * (newSuper - oldSuper);\n }\n\n if(styletags.bolds === true) {\n var wasBold = (oldStyle.indexOf(CHR_bold) > -1)\n var is_Bold = (newStyle.indexOf(CHR_bold) > -1)\n\n if(!wasBold && is_Bold) {\n if(wasItalic) {\n ctxFont = ctxFont.replace(\"italic \", \"italic bold \")\n } else {\n ctxFont = \"bold \" + ctxFont\n }\n }\n if(wasBold && !is_Bold) {\n ctxFont = ctxFont.replace(\"bold \", '')\n }\n }\n\n if(styletags.italics === true) {\n var wasItalic = (oldStyle.indexOf(CHR_italic) > -1)\n var is_Italic = (newStyle.indexOf(CHR_italic) > -1)\n\n if(!wasItalic && is_Italic) {\n ctxFont = \"italic \" + ctxFont\n }\n if(wasItalic && !is_Italic) {\n ctxFont = ctxFont.replace(\"italic \", '')\n }\n }\n context.font = ctxFont\n }\n\n for(i = 0; i < numberOfLines; ++i) {\n var txt = allTexts[i] + '\\n'\n xPos = 0\n yPos = i * lineHeight\n zPos = fontSize\n\n buffer = \"\"\n \n for(j = 0; j < txt.length; ++j) {\n var style = (j + nDone < allStyles.length) ? allStyles[j + nDone] : allStyles[allStyles.length - 1]\n if(activeStyle === style) {\n buffer += txt[j]\n } else {\n writeBuffer()\n buffer = txt[j]\n\n if(style !== undefined) {\n changeStyle(activeStyle, style)\n activeStyle = style\n }\n }\n }\n writeBuffer()\n\n nDone += txt.length\n\n var width = Math.round(xPos + 2 * offsetX) | 0\n if(maxWidth < width) maxWidth = width\n }\n\n //Cut pixels from image\n var xCut = maxWidth\n var yCut = offsetY + lineHeight * numberOfLines\n var pixels = ndarray(context.getImageData(0, 0, xCut, yCut).data, [yCut, xCut, 4])\n return pixels.pick(-1, -1, 0).transpose(1, 0)\n}\n\nfunction getContour(pixels, doSimplify) {\n var contour = surfaceNets(pixels, 128)\n if(doSimplify) {\n return simplify(contour.cells, contour.positions, 0.25)\n }\n return {\n edges: contour.cells,\n positions: contour.positions\n }\n}\n\nfunction processPixelsImpl(pixels, options, size, simplify) {\n //Extract contour\n var contour = getContour(pixels, simplify)\n\n //Apply warp to positions\n var positions = transformPositions(contour.positions, options, size)\n var edges = contour.edges\n var flip = \"ccw\" === options.orientation\n\n //Clean up the PSLG, resolve self intersections, etc.\n cleanPSLG(positions, edges)\n\n //If triangulate flag passed, triangulate the result\n if(options.polygons || options.polygon || options.polyline) {\n var result = toPolygonCrappy(edges, positions)\n var nresult = new Array(result.length)\n for(var i=0; i 0) size =\n options.size\n\n if(options.lineSpacing &&\n options.lineSpacing > 0) lineSpacing =\n options.lineSpacing\n\n if(options.styletags &&\n options.styletags.breaklines) styletags.breaklines =\n options.styletags.breaklines ? true : false\n\n if(options.styletags &&\n options.styletags.bolds) styletags.bolds =\n options.styletags.bolds ? true : false\n\n if(options.styletags &&\n options.styletags.italics) styletags.italics =\n options.styletags.italics ? true : false\n\n if(options.styletags &&\n options.styletags.subscripts) styletags.subscripts =\n options.styletags.subscripts ? true : false\n\n if(options.styletags &&\n options.styletags.superscripts) styletags.superscripts =\n options.styletags.superscripts ? true : false\n }\n\n context.font = [\n options.fontStyle,\n options.fontVariant,\n options.fontWeight,\n size + \"px\",\n options.font\n ].filter(function(d) {return d}).join(\" \")\n context.textAlign = \"start\"\n context.textBaseline = \"alphabetic\"\n context.direction = \"ltr\"\n\n var pixels = getPixels(canvas, context, str, size, lineSpacing, styletags)\n\n return processPixels(pixels, options, size)\n}\n\n},{\"cdt2d\":42,\"clean-pslg\":50,\"ndarray\":259,\"planar-graph-to-polyline\":268,\"simplify-planar-graph\":297,\"surface-nets\":302}],313:[function(_glvis_,module,exports){\n// Copyright (C) 2011 Google Inc.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n/**\n * @fileoverview Install a leaky WeakMap emulation on platforms that\n * don't provide a built-in one.\n *\n *

Assumes that an ES5 platform where, if {@code WeakMap} is\n * already present, then it conforms to the anticipated ES6\n * specification. To run this file on an ES5 or almost ES5\n * implementation where the {@code WeakMap} specification does not\n * quite conform, run repairES5.js first.\n *\n *

Even though WeakMapModule is not global, the linter thinks it\n * is, which is why it is in the overrides list below.\n *\n *

NOTE: Before using this WeakMap emulation in a non-SES\n * environment, see the note below about hiddenRecord.\n *\n * @author Mark S. Miller\n * @requires crypto, ArrayBuffer, Uint8Array, navigator, console\n * @overrides WeakMap, ses, Proxy\n * @overrides WeakMapModule\n */\n\n/**\n * This {@code WeakMap} emulation is observably equivalent to the\n * ES-Harmony WeakMap, but with leakier garbage collection properties.\n *\n *

As with true WeakMaps, in this emulation, a key does not\n * retain maps indexed by that key and (crucially) a map does not\n * retain the keys it indexes. A map by itself also does not retain\n * the values associated with that map.\n *\n *

However, the values associated with a key in some map are\n * retained so long as that key is retained and those associations are\n * not overridden. For example, when used to support membranes, all\n * values exported from a given membrane will live for the lifetime\n * they would have had in the absence of an interposed membrane. Even\n * when the membrane is revoked, all objects that would have been\n * reachable in the absence of revocation will still be reachable, as\n * far as the GC can tell, even though they will no longer be relevant\n * to ongoing computation.\n *\n *

The API implemented here is approximately the API as implemented\n * in FF6.0a1 and agreed to by MarkM, Andreas Gal, and Dave Herman,\n * rather than the offially approved proposal page. TODO(erights):\n * upgrade the ecmascript WeakMap proposal page to explain this API\n * change and present to EcmaScript committee for their approval.\n *\n *

The first difference between the emulation here and that in\n * FF6.0a1 is the presence of non enumerable {@code get___, has___,\n * set___, and delete___} methods on WeakMap instances to represent\n * what would be the hidden internal properties of a primitive\n * implementation. Whereas the FF6.0a1 WeakMap.prototype methods\n * require their {@code this} to be a genuine WeakMap instance (i.e.,\n * an object of {@code [[Class]]} \"WeakMap}), since there is nothing\n * unforgeable about the pseudo-internal method names used here,\n * nothing prevents these emulated prototype methods from being\n * applied to non-WeakMaps with pseudo-internal methods of the same\n * names.\n *\n *

Another difference is that our emulated {@code\n * WeakMap.prototype} is not itself a WeakMap. A problem with the\n * current FF6.0a1 API is that WeakMap.prototype is itself a WeakMap\n * providing ambient mutability and an ambient communications\n * channel. Thus, if a WeakMap is already present and has this\n * problem, repairES5.js wraps it in a safe wrappper in order to\n * prevent access to this channel. (See\n * PATCH_MUTABLE_FROZEN_WEAKMAP_PROTO in repairES5.js).\n */\n\n/**\n * If this is a full secureable ES5 platform and the ES-Harmony {@code WeakMap} is\n * absent, install an approximate emulation.\n *\n *

If WeakMap is present but cannot store some objects, use our approximate\n * emulation as a wrapper.\n *\n *

If this is almost a secureable ES5 platform, then WeakMap.js\n * should be run after repairES5.js.\n *\n *

See {@code WeakMap} for documentation of the garbage collection\n * properties of this WeakMap emulation.\n */\n(function WeakMapModule() {\n \"use strict\";\n\n if (typeof ses !== 'undefined' && ses.ok && !ses.ok()) {\n // already too broken, so give up\n return;\n }\n\n /**\n * In some cases (current Firefox), we must make a choice betweeen a\n * WeakMap which is capable of using all varieties of host objects as\n * keys and one which is capable of safely using proxies as keys. See\n * comments below about HostWeakMap and DoubleWeakMap for details.\n *\n * This function (which is a global, not exposed to guests) marks a\n * WeakMap as permitted to do what is necessary to index all host\n * objects, at the cost of making it unsafe for proxies.\n *\n * Do not apply this function to anything which is not a genuine\n * fresh WeakMap.\n */\n function weakMapPermitHostObjects(map) {\n // identity of function used as a secret -- good enough and cheap\n if (map.permitHostObjects___) {\n map.permitHostObjects___(weakMapPermitHostObjects);\n }\n }\n if (typeof ses !== 'undefined') {\n ses.weakMapPermitHostObjects = weakMapPermitHostObjects;\n }\n\n // IE 11 has no Proxy but has a broken WeakMap such that we need to patch\n // it using DoubleWeakMap; this flag tells DoubleWeakMap so.\n var doubleWeakMapCheckSilentFailure = false;\n\n // Check if there is already a good-enough WeakMap implementation, and if so\n // exit without replacing it.\n if (typeof WeakMap === 'function') {\n var HostWeakMap = WeakMap;\n // There is a WeakMap -- is it good enough?\n if (typeof navigator !== 'undefined' &&\n /Firefox/.test(navigator.userAgent)) {\n // We're now *assuming not*, because as of this writing (2013-05-06)\n // Firefox's WeakMaps have a miscellany of objects they won't accept, and\n // we don't want to make an exhaustive list, and testing for just one\n // will be a problem if that one is fixed alone (as they did for Event).\n\n // If there is a platform that we *can* reliably test on, here's how to\n // do it:\n // var problematic = ... ;\n // var testHostMap = new HostWeakMap();\n // try {\n // testHostMap.set(problematic, 1); // Firefox 20 will throw here\n // if (testHostMap.get(problematic) === 1) {\n // return;\n // }\n // } catch (e) {}\n\n } else {\n // IE 11 bug: WeakMaps silently fail to store frozen objects.\n var testMap = new HostWeakMap();\n var testObject = Object.freeze({});\n testMap.set(testObject, 1);\n if (testMap.get(testObject) !== 1) {\n doubleWeakMapCheckSilentFailure = true;\n // Fall through to installing our WeakMap.\n } else {\n module.exports = WeakMap;\n return;\n }\n }\n }\n\n var hop = Object.prototype.hasOwnProperty;\n var gopn = Object.getOwnPropertyNames;\n var defProp = Object.defineProperty;\n var isExtensible = Object.isExtensible;\n\n /**\n * Security depends on HIDDEN_NAME being both unguessable and\n * undiscoverable by untrusted code.\n *\n *

Given the known weaknesses of Math.random() on existing\n * browsers, it does not generate unguessability we can be confident\n * of.\n *\n *

It is the monkey patching logic in this file that is intended\n * to ensure undiscoverability. The basic idea is that there are\n * three fundamental means of discovering properties of an object:\n * The for/in loop, Object.keys(), and Object.getOwnPropertyNames(),\n * as well as some proposed ES6 extensions that appear on our\n * whitelist. The first two only discover enumerable properties, and\n * we only use HIDDEN_NAME to name a non-enumerable property, so the\n * only remaining threat should be getOwnPropertyNames and some\n * proposed ES6 extensions that appear on our whitelist. We monkey\n * patch them to remove HIDDEN_NAME from the list of properties they\n * returns.\n *\n *

TODO(erights): On a platform with built-in Proxies, proxies\n * could be used to trap and thereby discover the HIDDEN_NAME, so we\n * need to monkey patch Proxy.create, Proxy.createFunction, etc, in\n * order to wrap the provided handler with the real handler which\n * filters out all traps using HIDDEN_NAME.\n *\n *

TODO(erights): Revisit Mike Stay's suggestion that we use an\n * encapsulated function at a not-necessarily-secret name, which\n * uses the Stiegler shared-state rights amplification pattern to\n * reveal the associated value only to the WeakMap in which this key\n * is associated with that value. Since only the key retains the\n * function, the function can also remember the key without causing\n * leakage of the key, so this doesn't violate our general gc\n * goals. In addition, because the name need not be a guarded\n * secret, we could efficiently handle cross-frame frozen keys.\n */\n var HIDDEN_NAME_PREFIX = 'weakmap:';\n var HIDDEN_NAME = HIDDEN_NAME_PREFIX + 'ident:' + Math.random() + '___';\n\n if (typeof crypto !== 'undefined' &&\n typeof crypto.getRandomValues === 'function' &&\n typeof ArrayBuffer === 'function' &&\n typeof Uint8Array === 'function') {\n var ab = new ArrayBuffer(25);\n var u8s = new Uint8Array(ab);\n crypto.getRandomValues(u8s);\n HIDDEN_NAME = HIDDEN_NAME_PREFIX + 'rand:' +\n Array.prototype.map.call(u8s, function(u8) {\n return (u8 % 36).toString(36);\n }).join('') + '___';\n }\n\n function isNotHiddenName(name) {\n return !(\n name.substr(0, HIDDEN_NAME_PREFIX.length) == HIDDEN_NAME_PREFIX &&\n name.substr(name.length - 3) === '___');\n }\n\n /**\n * Monkey patch getOwnPropertyNames to avoid revealing the\n * HIDDEN_NAME.\n *\n *

The ES5.1 spec requires each name to appear only once, but as\n * of this writing, this requirement is controversial for ES6, so we\n * made this code robust against this case. If the resulting extra\n * search turns out to be expensive, we can probably relax this once\n * ES6 is adequately supported on all major browsers, iff no browser\n * versions we support at that time have relaxed this constraint\n * without providing built-in ES6 WeakMaps.\n */\n defProp(Object, 'getOwnPropertyNames', {\n value: function fakeGetOwnPropertyNames(obj) {\n return gopn(obj).filter(isNotHiddenName);\n }\n });\n\n /**\n * getPropertyNames is not in ES5 but it is proposed for ES6 and\n * does appear in our whitelist, so we need to clean it too.\n */\n if ('getPropertyNames' in Object) {\n var originalGetPropertyNames = Object.getPropertyNames;\n defProp(Object, 'getPropertyNames', {\n value: function fakeGetPropertyNames(obj) {\n return originalGetPropertyNames(obj).filter(isNotHiddenName);\n }\n });\n }\n\n /**\n *

To treat objects as identity-keys with reasonable efficiency\n * on ES5 by itself (i.e., without any object-keyed collections), we\n * need to add a hidden property to such key objects when we\n * can. This raises several issues:\n *

    \n *
  • Arranging to add this property to objects before we lose the\n * chance, and\n *
  • Hiding the existence of this new property from most\n * JavaScript code.\n *
  • Preventing certification theft, where one object is\n * created falsely claiming to be the key of an association\n * actually keyed by another object.\n *
  • Preventing value theft, where untrusted code with\n * access to a key object but not a weak map nevertheless\n * obtains access to the value associated with that key in that\n * weak map.\n *
\n * We do so by\n *
    \n *
  • Making the name of the hidden property unguessable, so \"[]\"\n * indexing, which we cannot intercept, cannot be used to access\n * a property without knowing the name.\n *
  • Making the hidden property non-enumerable, so we need not\n * worry about for-in loops or {@code Object.keys},\n *
  • monkey patching those reflective methods that would\n * prevent extensions, to add this hidden property first,\n *
  • monkey patching those methods that would reveal this\n * hidden property.\n *
\n * Unfortunately, because of same-origin iframes, we cannot reliably\n * add this hidden property before an object becomes\n * non-extensible. Instead, if we encounter a non-extensible object\n * without a hidden record that we can detect (whether or not it has\n * a hidden record stored under a name secret to us), then we just\n * use the key object itself to represent its identity in a brute\n * force leaky map stored in the weak map, losing all the advantages\n * of weakness for these.\n */\n function getHiddenRecord(key) {\n if (key !== Object(key)) {\n throw new TypeError('Not an object: ' + key);\n }\n var hiddenRecord = key[HIDDEN_NAME];\n if (hiddenRecord && hiddenRecord.key === key) { return hiddenRecord; }\n if (!isExtensible(key)) {\n // Weak map must brute force, as explained in doc-comment above.\n return void 0;\n }\n\n // The hiddenRecord and the key point directly at each other, via\n // the \"key\" and HIDDEN_NAME properties respectively. The key\n // field is for quickly verifying that this hidden record is an\n // own property, not a hidden record from up the prototype chain.\n //\n // NOTE: Because this WeakMap emulation is meant only for systems like\n // SES where Object.prototype is frozen without any numeric\n // properties, it is ok to use an object literal for the hiddenRecord.\n // This has two advantages:\n // * It is much faster in a performance critical place\n // * It avoids relying on Object.create(null), which had been\n // problematic on Chrome 28.0.1480.0. See\n // https://code.google.com/p/google-caja/issues/detail?id=1687\n hiddenRecord = { key: key };\n\n // When using this WeakMap emulation on platforms where\n // Object.prototype might not be frozen and Object.create(null) is\n // reliable, use the following two commented out lines instead.\n // hiddenRecord = Object.create(null);\n // hiddenRecord.key = key;\n\n // Please contact us if you need this to work on platforms where\n // Object.prototype might not be frozen and\n // Object.create(null) might not be reliable.\n\n try {\n defProp(key, HIDDEN_NAME, {\n value: hiddenRecord,\n writable: false,\n enumerable: false,\n configurable: false\n });\n return hiddenRecord;\n } catch (error) {\n // Under some circumstances, isExtensible seems to misreport whether\n // the HIDDEN_NAME can be defined.\n // The circumstances have not been isolated, but at least affect\n // Node.js v0.10.26 on TravisCI / Linux, but not the same version of\n // Node.js on OS X.\n return void 0;\n }\n }\n\n /**\n * Monkey patch operations that would make their argument\n * non-extensible.\n *\n *

The monkey patched versions throw a TypeError if their\n * argument is not an object, so it should only be done to functions\n * that should throw a TypeError anyway if their argument is not an\n * object.\n */\n (function(){\n var oldFreeze = Object.freeze;\n defProp(Object, 'freeze', {\n value: function identifyingFreeze(obj) {\n getHiddenRecord(obj);\n return oldFreeze(obj);\n }\n });\n var oldSeal = Object.seal;\n defProp(Object, 'seal', {\n value: function identifyingSeal(obj) {\n getHiddenRecord(obj);\n return oldSeal(obj);\n }\n });\n var oldPreventExtensions = Object.preventExtensions;\n defProp(Object, 'preventExtensions', {\n value: function identifyingPreventExtensions(obj) {\n getHiddenRecord(obj);\n return oldPreventExtensions(obj);\n }\n });\n })();\n\n function constFunc(func) {\n func.prototype = null;\n return Object.freeze(func);\n }\n\n var calledAsFunctionWarningDone = false;\n function calledAsFunctionWarning() {\n // Future ES6 WeakMap is currently (2013-09-10) expected to reject WeakMap()\n // but we used to permit it and do it ourselves, so warn only.\n if (!calledAsFunctionWarningDone && typeof console !== 'undefined') {\n calledAsFunctionWarningDone = true;\n console.warn('WeakMap should be invoked as new WeakMap(), not ' +\n 'WeakMap(). This will be an error in the future.');\n }\n }\n\n var nextId = 0;\n\n var OurWeakMap = function() {\n if (!(this instanceof OurWeakMap)) { // approximate test for new ...()\n calledAsFunctionWarning();\n }\n\n // We are currently (12/25/2012) never encountering any prematurely\n // non-extensible keys.\n var keys = []; // brute force for prematurely non-extensible keys.\n var values = []; // brute force for corresponding values.\n var id = nextId++;\n\n function get___(key, opt_default) {\n var index;\n var hiddenRecord = getHiddenRecord(key);\n if (hiddenRecord) {\n return id in hiddenRecord ? hiddenRecord[id] : opt_default;\n } else {\n index = keys.indexOf(key);\n return index >= 0 ? values[index] : opt_default;\n }\n }\n\n function has___(key) {\n var hiddenRecord = getHiddenRecord(key);\n if (hiddenRecord) {\n return id in hiddenRecord;\n } else {\n return keys.indexOf(key) >= 0;\n }\n }\n\n function set___(key, value) {\n var index;\n var hiddenRecord = getHiddenRecord(key);\n if (hiddenRecord) {\n hiddenRecord[id] = value;\n } else {\n index = keys.indexOf(key);\n if (index >= 0) {\n values[index] = value;\n } else {\n // Since some browsers preemptively terminate slow turns but\n // then continue computing with presumably corrupted heap\n // state, we here defensively get keys.length first and then\n // use it to update both the values and keys arrays, keeping\n // them in sync.\n index = keys.length;\n values[index] = value;\n // If we crash here, values will be one longer than keys.\n keys[index] = key;\n }\n }\n return this;\n }\n\n function delete___(key) {\n var hiddenRecord = getHiddenRecord(key);\n var index, lastIndex;\n if (hiddenRecord) {\n return id in hiddenRecord && delete hiddenRecord[id];\n } else {\n index = keys.indexOf(key);\n if (index < 0) {\n return false;\n }\n // Since some browsers preemptively terminate slow turns but\n // then continue computing with potentially corrupted heap\n // state, we here defensively get keys.length first and then use\n // it to update both the keys and the values array, keeping\n // them in sync. We update the two with an order of assignments,\n // such that any prefix of these assignments will preserve the\n // key/value correspondence, either before or after the delete.\n // Note that this needs to work correctly when index === lastIndex.\n lastIndex = keys.length - 1;\n keys[index] = void 0;\n // If we crash here, there's a void 0 in the keys array, but\n // no operation will cause a \"keys.indexOf(void 0)\", since\n // getHiddenRecord(void 0) will always throw an error first.\n values[index] = values[lastIndex];\n // If we crash here, values[index] cannot be found here,\n // because keys[index] is void 0.\n keys[index] = keys[lastIndex];\n // If index === lastIndex and we crash here, then keys[index]\n // is still void 0, since the aliasing killed the previous key.\n keys.length = lastIndex;\n // If we crash here, keys will be one shorter than values.\n values.length = lastIndex;\n return true;\n }\n }\n\n return Object.create(OurWeakMap.prototype, {\n get___: { value: constFunc(get___) },\n has___: { value: constFunc(has___) },\n set___: { value: constFunc(set___) },\n delete___: { value: constFunc(delete___) }\n });\n };\n\n OurWeakMap.prototype = Object.create(Object.prototype, {\n get: {\n /**\n * Return the value most recently associated with key, or\n * opt_default if none.\n */\n value: function get(key, opt_default) {\n return this.get___(key, opt_default);\n },\n writable: true,\n configurable: true\n },\n\n has: {\n /**\n * Is there a value associated with key in this WeakMap?\n */\n value: function has(key) {\n return this.has___(key);\n },\n writable: true,\n configurable: true\n },\n\n set: {\n /**\n * Associate value with key in this WeakMap, overwriting any\n * previous association if present.\n */\n value: function set(key, value) {\n return this.set___(key, value);\n },\n writable: true,\n configurable: true\n },\n\n 'delete': {\n /**\n * Remove any association for key in this WeakMap, returning\n * whether there was one.\n *\n *

Note that the boolean return here does not work like the\n * {@code delete} operator. The {@code delete} operator returns\n * whether the deletion succeeds at bringing about a state in\n * which the deleted property is absent. The {@code delete}\n * operator therefore returns true if the property was already\n * absent, whereas this {@code delete} method returns false if\n * the association was already absent.\n */\n value: function remove(key) {\n return this.delete___(key);\n },\n writable: true,\n configurable: true\n }\n });\n\n if (typeof HostWeakMap === 'function') {\n (function() {\n // If we got here, then the platform has a WeakMap but we are concerned\n // that it may refuse to store some key types. Therefore, make a map\n // implementation which makes use of both as possible.\n\n // In this mode we are always using double maps, so we are not proxy-safe.\n // This combination does not occur in any known browser, but we had best\n // be safe.\n if (doubleWeakMapCheckSilentFailure && typeof Proxy !== 'undefined') {\n Proxy = undefined;\n }\n\n function DoubleWeakMap() {\n if (!(this instanceof OurWeakMap)) { // approximate test for new ...()\n calledAsFunctionWarning();\n }\n\n // Preferable, truly weak map.\n var hmap = new HostWeakMap();\n\n // Our hidden-property-based pseudo-weak-map. Lazily initialized in the\n // 'set' implementation; thus we can avoid performing extra lookups if\n // we know all entries actually stored are entered in 'hmap'.\n var omap = undefined;\n\n // Hidden-property maps are not compatible with proxies because proxies\n // can observe the hidden name and either accidentally expose it or fail\n // to allow the hidden property to be set. Therefore, we do not allow\n // arbitrary WeakMaps to switch to using hidden properties, but only\n // those which need the ability, and unprivileged code is not allowed\n // to set the flag.\n //\n // (Except in doubleWeakMapCheckSilentFailure mode in which case we\n // disable proxies.)\n var enableSwitching = false;\n\n function dget(key, opt_default) {\n if (omap) {\n return hmap.has(key) ? hmap.get(key)\n : omap.get___(key, opt_default);\n } else {\n return hmap.get(key, opt_default);\n }\n }\n\n function dhas(key) {\n return hmap.has(key) || (omap ? omap.has___(key) : false);\n }\n\n var dset;\n if (doubleWeakMapCheckSilentFailure) {\n dset = function(key, value) {\n hmap.set(key, value);\n if (!hmap.has(key)) {\n if (!omap) { omap = new OurWeakMap(); }\n omap.set(key, value);\n }\n return this;\n };\n } else {\n dset = function(key, value) {\n if (enableSwitching) {\n try {\n hmap.set(key, value);\n } catch (e) {\n if (!omap) { omap = new OurWeakMap(); }\n omap.set___(key, value);\n }\n } else {\n hmap.set(key, value);\n }\n return this;\n };\n }\n\n function ddelete(key) {\n var result = !!hmap['delete'](key);\n if (omap) { return omap.delete___(key) || result; }\n return result;\n }\n\n return Object.create(OurWeakMap.prototype, {\n get___: { value: constFunc(dget) },\n has___: { value: constFunc(dhas) },\n set___: { value: constFunc(dset) },\n delete___: { value: constFunc(ddelete) },\n permitHostObjects___: { value: constFunc(function(token) {\n if (token === weakMapPermitHostObjects) {\n enableSwitching = true;\n } else {\n throw new Error('bogus call to permitHostObjects___');\n }\n })}\n });\n }\n DoubleWeakMap.prototype = OurWeakMap.prototype;\n module.exports = DoubleWeakMap;\n\n // define .constructor to hide OurWeakMap ctor\n Object.defineProperty(WeakMap.prototype, 'constructor', {\n value: WeakMap,\n enumerable: false, // as default .constructor is\n configurable: true,\n writable: true\n });\n })();\n } else {\n // There is no host WeakMap, so we must use the emulation.\n\n // Emulated WeakMaps are incompatible with native proxies (because proxies\n // can observe the hidden name), so we must disable Proxy usage (in\n // ArrayLike and Domado, currently).\n if (typeof Proxy !== 'undefined') {\n Proxy = undefined;\n }\n\n module.exports = OurWeakMap;\n }\n})();\n\n},{}],314:[function(_glvis_,module,exports){\nvar hiddenStore = _glvis_('./hidden-store.js');\n\nmodule.exports = createStore;\n\nfunction createStore() {\n var key = {};\n\n return function (obj) {\n if ((typeof obj !== 'object' || obj === null) &&\n typeof obj !== 'function'\n ) {\n throw new Error('Weakmap-shim: Key must be object')\n }\n\n var store = obj.valueOf(key);\n return store && store.identity === key ?\n store : hiddenStore(obj, key);\n };\n}\n\n},{\"./hidden-store.js\":315}],315:[function(_glvis_,module,exports){\nmodule.exports = hiddenStore;\n\nfunction hiddenStore(obj, key) {\n var store = { identity: key };\n var valueOf = obj.valueOf;\n\n Object.defineProperty(obj, \"valueOf\", {\n value: function (value) {\n return value !== key ?\n valueOf.apply(this, arguments) : store;\n },\n writable: true\n });\n\n return store;\n}\n\n},{}],316:[function(_glvis_,module,exports){\n// Original - @Gozola.\n// https://gist.github.com/Gozala/1269991\n// This is a reimplemented version (with a few bug fixes).\n\nvar createStore = _glvis_('./create-store.js');\n\nmodule.exports = weakMap;\n\nfunction weakMap() {\n var privates = createStore();\n\n return {\n 'get': function (key, fallback) {\n var store = privates(key)\n return store.hasOwnProperty('value') ?\n store.value : fallback\n },\n 'set': function (key, value) {\n privates(key).value = value;\n return this;\n },\n 'has': function(key) {\n return 'value' in privates(key);\n },\n 'delete': function (key) {\n return delete privates(key).value;\n }\n }\n}\n\n},{\"./create-store.js\":314}],317:[function(_glvis_,module,exports){\n\"use strict\"\n\nfunction CWiseOp() {\n return function(SS, a0, t0, p0, Y0, Y1) {\n var s0 = SS[0],\n t0p0 = t0[0],\n index = [0],\n q0 = t0p0\n p0 |= 0\n var i0 = 0,\n d0s0 = t0p0\n for (i0 = 0; i0 < s0; ++i0) {\n {\n var da = a0[p0] - Y1\n var db = a0[p0 + q0] - Y1\n if (da >= 0 !== db >= 0) {\n Y0.push(index[0] + 0.5 + (0.5 * (da + db)) / (da - db))\n }\n }\n p0 += d0s0\n ++index[0]\n }\n }\n}\n\n//Generates a cwise operator\nfunction generateCWiseOp() {\n return CWiseOp()\n}\n\nvar compile = generateCWiseOp\n\nfunction thunk(compile) {\n var CACHED = {}\n return function zeroCrossings_cwise_thunk(array0, scalar2, scalar3) {\n var t0 = array0.dtype,\n r0 = array0.order,\n type = [t0, r0.join()].join(),\n proc = CACHED[type]\n\n if (!proc) {\n CACHED[type] = proc = compile([t0, r0])\n }\n\n return proc(array0.shape.slice(0), array0.data, array0.stride, array0.offset | 0, scalar2, scalar3)\n }\n}\n\nfunction createThunk(proc) {\n return thunk(compile.bind(undefined, proc))\n}\n\nfunction compileCwise(user_args) {\n return createThunk({\n funcName: user_args.funcName\n })\n}\n\nmodule.exports = compileCwise({\n funcName: 'zeroCrossings'\n})\n\n},{}],318:[function(_glvis_,module,exports){\n\"use strict\"\n\nmodule.exports = findZeroCrossings\n\nvar core = _glvis_(\"./lib/zc-core\")\n\nfunction findZeroCrossings(array, level) {\n var cross = []\n level = +level || 0.0\n core(array.hi(array.shape[0]-1), cross, level)\n return cross\n}\n},{\"./lib/zc-core\":317}]},{},[6])(6)\n});\n\n}).call(this)}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{}]},{},[27])(27)\n});\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n var has = Function.call.bind(Object.prototype.hasOwnProperty);\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (process.env.NODE_ENV !== 'production') {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactIs = require('react-is');\nvar assign = require('object-assign');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\nvar checkPropTypes = require('./checkPropTypes');\n\nvar has = Function.call.bind(Object.prototype.hasOwnProperty);\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nfunction emptyFunctionThatReturnsNull() {\n return null;\n}\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n elementType: createElementTypeTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message) {\n this.message = message;\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n printWarning(\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!ReactIs.isValidElementType(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n printWarning(\n 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +\n 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'\n );\n } else {\n printWarning('Invalid argument supplied to oneOf, expected an array.');\n }\n }\n return emptyFunctionThatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {\n var type = getPreciseType(value);\n if (type === 'symbol') {\n return String(value);\n }\n return value;\n });\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (has(propValue, key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunctionThatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n printWarning(\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n );\n return emptyFunctionThatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {\n return null;\n }\n }\n\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (!checker) {\n continue;\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from\n // props.\n var allKeys = assign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // falsy value can't be a Symbol\n if (!propValue) {\n return false;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","/** @license React v17.0.2\n * react-dom.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\nvar React = require('react');\nvar _assign = require('object-assign');\nvar Scheduler = require('scheduler');\nvar tracing = require('scheduler/tracing');\n\nvar ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\n// by calls to these methods by a Babel plugin.\n//\n// In PROD (or in packages without access to React internals),\n// they are left as they are instead.\n\nfunction warn(format) {\n {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n printWarning('warn', format, args);\n }\n}\nfunction error(format) {\n {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n printWarning('error', format, args);\n }\n}\n\nfunction printWarning(level, format, args) {\n // When changing this logic, you might want to also\n // update consoleWithStackDev.www.js as well.\n {\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n if (stack !== '') {\n format += '%s';\n args = args.concat([stack]);\n }\n\n var argsWithFormat = args.map(function (item) {\n return '' + item;\n }); // Careful: RN currently depends on this prefix\n\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n // eslint-disable-next-line react-internal/no-production-logging\n\n Function.prototype.apply.call(console[level], console, argsWithFormat);\n }\n}\n\nif (!React) {\n {\n throw Error( \"ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM.\" );\n }\n}\n\nvar FunctionComponent = 0;\nvar ClassComponent = 1;\nvar IndeterminateComponent = 2; // Before we know whether it is function or class\n\nvar HostRoot = 3; // Root of a host tree. Could be nested inside another node.\n\nvar HostPortal = 4; // A subtree. Could be an entry point to a different renderer.\n\nvar HostComponent = 5;\nvar HostText = 6;\nvar Fragment = 7;\nvar Mode = 8;\nvar ContextConsumer = 9;\nvar ContextProvider = 10;\nvar ForwardRef = 11;\nvar Profiler = 12;\nvar SuspenseComponent = 13;\nvar MemoComponent = 14;\nvar SimpleMemoComponent = 15;\nvar LazyComponent = 16;\nvar IncompleteClassComponent = 17;\nvar DehydratedFragment = 18;\nvar SuspenseListComponent = 19;\nvar FundamentalComponent = 20;\nvar ScopeComponent = 21;\nvar Block = 22;\nvar OffscreenComponent = 23;\nvar LegacyHiddenComponent = 24;\n\n// Filter certain DOM attributes (e.g. src, href) if their values are empty strings.\n\nvar enableProfilerTimer = true; // Record durations for commit and passive effects phases.\n\nvar enableFundamentalAPI = false; // Experimental Scope support.\nvar enableNewReconciler = false; // Errors that are thrown while unmounting (or after in the case of passive effects)\nvar warnAboutStringRefs = false;\n\nvar allNativeEvents = new Set();\n/**\n * Mapping from registration name to event name\n */\n\n\nvar registrationNameDependencies = {};\n/**\n * Mapping from lowercase registration names to the properly cased version,\n * used to warn in the case of missing event handlers. Available\n * only in true.\n * @type {Object}\n */\n\nvar possibleRegistrationNames = {} ; // Trust the developer to only use possibleRegistrationNames in true\n\nfunction registerTwoPhaseEvent(registrationName, dependencies) {\n registerDirectEvent(registrationName, dependencies);\n registerDirectEvent(registrationName + 'Capture', dependencies);\n}\nfunction registerDirectEvent(registrationName, dependencies) {\n {\n if (registrationNameDependencies[registrationName]) {\n error('EventRegistry: More than one plugin attempted to publish the same ' + 'registration name, `%s`.', registrationName);\n }\n }\n\n registrationNameDependencies[registrationName] = dependencies;\n\n {\n var lowerCasedName = registrationName.toLowerCase();\n possibleRegistrationNames[lowerCasedName] = registrationName;\n\n if (registrationName === 'onDoubleClick') {\n possibleRegistrationNames.ondblclick = registrationName;\n }\n }\n\n for (var i = 0; i < dependencies.length; i++) {\n allNativeEvents.add(dependencies[i]);\n }\n}\n\nvar canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');\n\n// A reserved attribute.\n// It is handled by React separately and shouldn't be written to the DOM.\nvar RESERVED = 0; // A simple string attribute.\n// Attributes that aren't in the filter are presumed to have this type.\n\nvar STRING = 1; // A string attribute that accepts booleans in React. In HTML, these are called\n// \"enumerated\" attributes with \"true\" and \"false\" as possible values.\n// When true, it should be set to a \"true\" string.\n// When false, it should be set to a \"false\" string.\n\nvar BOOLEANISH_STRING = 2; // A real boolean attribute.\n// When true, it should be present (set either to an empty string or its name).\n// When false, it should be omitted.\n\nvar BOOLEAN = 3; // An attribute that can be used as a flag as well as with a value.\n// When true, it should be present (set either to an empty string or its name).\n// When false, it should be omitted.\n// For any other value, should be present with that value.\n\nvar OVERLOADED_BOOLEAN = 4; // An attribute that must be numeric or parse as a numeric.\n// When falsy, it should be removed.\n\nvar NUMERIC = 5; // An attribute that must be positive numeric or parse as a positive numeric.\n// When falsy, it should be removed.\n\nvar POSITIVE_NUMERIC = 6;\n\n/* eslint-disable max-len */\nvar ATTRIBUTE_NAME_START_CHAR = \":A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD\";\n/* eslint-enable max-len */\n\nvar ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + \"\\\\-.0-9\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040\";\nvar ROOT_ATTRIBUTE_NAME = 'data-reactroot';\nvar VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$');\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar illegalAttributeNameCache = {};\nvar validatedAttributeNameCache = {};\nfunction isAttributeNameSafe(attributeName) {\n if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) {\n return true;\n }\n\n if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) {\n return false;\n }\n\n if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {\n validatedAttributeNameCache[attributeName] = true;\n return true;\n }\n\n illegalAttributeNameCache[attributeName] = true;\n\n {\n error('Invalid attribute name: `%s`', attributeName);\n }\n\n return false;\n}\nfunction shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {\n if (propertyInfo !== null) {\n return propertyInfo.type === RESERVED;\n }\n\n if (isCustomComponentTag) {\n return false;\n }\n\n if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {\n return true;\n }\n\n return false;\n}\nfunction shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {\n if (propertyInfo !== null && propertyInfo.type === RESERVED) {\n return false;\n }\n\n switch (typeof value) {\n case 'function': // $FlowIssue symbol is perfectly valid here\n\n case 'symbol':\n // eslint-disable-line\n return true;\n\n case 'boolean':\n {\n if (isCustomComponentTag) {\n return false;\n }\n\n if (propertyInfo !== null) {\n return !propertyInfo.acceptsBooleans;\n } else {\n var prefix = name.toLowerCase().slice(0, 5);\n return prefix !== 'data-' && prefix !== 'aria-';\n }\n }\n\n default:\n return false;\n }\n}\nfunction shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) {\n if (value === null || typeof value === 'undefined') {\n return true;\n }\n\n if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) {\n return true;\n }\n\n if (isCustomComponentTag) {\n return false;\n }\n\n if (propertyInfo !== null) {\n\n switch (propertyInfo.type) {\n case BOOLEAN:\n return !value;\n\n case OVERLOADED_BOOLEAN:\n return value === false;\n\n case NUMERIC:\n return isNaN(value);\n\n case POSITIVE_NUMERIC:\n return isNaN(value) || value < 1;\n }\n }\n\n return false;\n}\nfunction getPropertyInfo(name) {\n return properties.hasOwnProperty(name) ? properties[name] : null;\n}\n\nfunction PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace, sanitizeURL, removeEmptyString) {\n this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;\n this.attributeName = attributeName;\n this.attributeNamespace = attributeNamespace;\n this.mustUseProperty = mustUseProperty;\n this.propertyName = name;\n this.type = type;\n this.sanitizeURL = sanitizeURL;\n this.removeEmptyString = removeEmptyString;\n} // When adding attributes to this list, be sure to also add them to\n// the `possibleStandardNames` module to ensure casing and incorrect\n// name warnings.\n\n\nvar properties = {}; // These props are reserved by React. They shouldn't be written to the DOM.\n\nvar reservedProps = ['children', 'dangerouslySetInnerHTML', // TODO: This prevents the assignment of defaultValue to regular\n// elements (not just inputs). Now that ReactDOMInput assigns to the\n// defaultValue property -- do we need this?\n'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'];\nreservedProps.forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty\n name, // attributeName\n null, // attributeNamespace\n false, // sanitizeURL\n false);\n}); // A few React string attributes have a different name.\n// This is a mapping from React prop names to the attribute names.\n\n[['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {\n var name = _ref[0],\n attributeName = _ref[1];\n properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n attributeName, // attributeName\n null, // attributeNamespace\n false, // sanitizeURL\n false);\n}); // These are \"enumerated\" HTML attributes that accept \"true\" and \"false\".\n// In React, we let users pass `true` and `false` even though technically\n// these aren't boolean attributes (they are coerced to strings).\n\n['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty\n name.toLowerCase(), // attributeName\n null, // attributeNamespace\n false, // sanitizeURL\n false);\n}); // These are \"enumerated\" SVG attributes that accept \"true\" and \"false\".\n// In React, we let users pass `true` and `false` even though technically\n// these aren't boolean attributes (they are coerced to strings).\n// Since these are SVG attributes, their attribute names are case-sensitive.\n\n['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty\n name, // attributeName\n null, // attributeNamespace\n false, // sanitizeURL\n false);\n}); // These are HTML boolean attributes.\n\n['allowFullScreen', 'async', // Note: there is a special case that prevents it from being written to the DOM\n// on the client side because the browsers are inconsistent. Instead we call focus().\n'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'disablePictureInPicture', 'disableRemotePlayback', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless', // Microdata\n'itemScope'].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty\n name.toLowerCase(), // attributeName\n null, // attributeNamespace\n false, // sanitizeURL\n false);\n}); // These are the few React props that we set as DOM properties\n// rather than attributes. These are all booleans.\n\n['checked', // Note: `option.selected` is not updated if `select.multiple` is\n// disabled with `removeAttribute`. We have special logic for handling this.\n'multiple', 'muted', 'selected' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty\n name, // attributeName\n null, // attributeNamespace\n false, // sanitizeURL\n false);\n}); // These are HTML attributes that are \"overloaded booleans\": they behave like\n// booleans, but can also accept a string value.\n\n['capture', 'download' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty\n name, // attributeName\n null, // attributeNamespace\n false, // sanitizeURL\n false);\n}); // These are HTML attributes that must be positive numbers.\n\n['cols', 'rows', 'size', 'span' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty\n name, // attributeName\n null, // attributeNamespace\n false, // sanitizeURL\n false);\n}); // These are HTML attributes that must be numbers.\n\n['rowSpan', 'start'].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty\n name.toLowerCase(), // attributeName\n null, // attributeNamespace\n false, // sanitizeURL\n false);\n});\nvar CAMELIZE = /[\\-\\:]([a-z])/g;\n\nvar capitalize = function (token) {\n return token[1].toUpperCase();\n}; // This is a list of all SVG attributes that need special casing, namespacing,\n// or boolean value assignment. Regular attributes that just accept strings\n// and have the same names are omitted, just like in the HTML attribute filter.\n// Some of these attributes can be hard to find. This list was created by\n// scraping the MDN documentation.\n\n\n['accent-height', 'alignment-baseline', 'arabic-form', 'baseline-shift', 'cap-height', 'clip-path', 'clip-rule', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'dominant-baseline', 'enable-background', 'fill-opacity', 'fill-rule', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'glyph-name', 'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'horiz-adv-x', 'horiz-origin-x', 'image-rendering', 'letter-spacing', 'lighting-color', 'marker-end', 'marker-mid', 'marker-start', 'overline-position', 'overline-thickness', 'paint-order', 'panose-1', 'pointer-events', 'rendering-intent', 'shape-rendering', 'stop-color', 'stop-opacity', 'strikethrough-position', 'strikethrough-thickness', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'text-decoration', 'text-rendering', 'underline-position', 'underline-thickness', 'unicode-bidi', 'unicode-range', 'units-per-em', 'v-alphabetic', 'v-hanging', 'v-ideographic', 'v-mathematical', 'vector-effect', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'word-spacing', 'writing-mode', 'xmlns:xlink', 'x-height' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (attributeName) {\n var name = attributeName.replace(CAMELIZE, capitalize);\n properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n attributeName, null, // attributeNamespace\n false, // sanitizeURL\n false);\n}); // String SVG attributes with the xlink namespace.\n\n['xlink:actuate', 'xlink:arcrole', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (attributeName) {\n var name = attributeName.replace(CAMELIZE, capitalize);\n properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n attributeName, 'http://www.w3.org/1999/xlink', false, // sanitizeURL\n false);\n}); // String SVG attributes with the xml namespace.\n\n['xml:base', 'xml:lang', 'xml:space' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (attributeName) {\n var name = attributeName.replace(CAMELIZE, capitalize);\n properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n attributeName, 'http://www.w3.org/XML/1998/namespace', false, // sanitizeURL\n false);\n}); // These attribute exists both in HTML and SVG.\n// The attribute name is case-sensitive in SVG so we can't just use\n// the React name like we do for attributes that exist only in HTML.\n\n['tabIndex', 'crossOrigin'].forEach(function (attributeName) {\n properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty\n attributeName.toLowerCase(), // attributeName\n null, // attributeNamespace\n false, // sanitizeURL\n false);\n}); // These attributes accept URLs. These must not allow javascript: URLS.\n// These will also need to accept Trusted Types object in the future.\n\nvar xlinkHref = 'xlinkHref';\nproperties[xlinkHref] = new PropertyInfoRecord('xlinkHref', STRING, false, // mustUseProperty\n'xlink:href', 'http://www.w3.org/1999/xlink', true, // sanitizeURL\nfalse);\n['src', 'href', 'action', 'formAction'].forEach(function (attributeName) {\n properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty\n attributeName.toLowerCase(), // attributeName\n null, // attributeNamespace\n true, // sanitizeURL\n true);\n});\n\n// and any newline or tab are filtered out as if they're not part of the URL.\n// https://url.spec.whatwg.org/#url-parsing\n// Tab or newline are defined as \\r\\n\\t:\n// https://infra.spec.whatwg.org/#ascii-tab-or-newline\n// A C0 control is a code point in the range \\u0000 NULL to \\u001F\n// INFORMATION SEPARATOR ONE, inclusive:\n// https://infra.spec.whatwg.org/#c0-control-or-space\n\n/* eslint-disable max-len */\n\nvar isJavaScriptProtocol = /^[\\u0000-\\u001F ]*j[\\r\\n\\t]*a[\\r\\n\\t]*v[\\r\\n\\t]*a[\\r\\n\\t]*s[\\r\\n\\t]*c[\\r\\n\\t]*r[\\r\\n\\t]*i[\\r\\n\\t]*p[\\r\\n\\t]*t[\\r\\n\\t]*\\:/i;\nvar didWarn = false;\n\nfunction sanitizeURL(url) {\n {\n if (!didWarn && isJavaScriptProtocol.test(url)) {\n didWarn = true;\n\n error('A future version of React will block javascript: URLs as a security precaution. ' + 'Use event handlers instead if you can. If you need to generate unsafe HTML try ' + 'using dangerouslySetInnerHTML instead. React was passed %s.', JSON.stringify(url));\n }\n }\n}\n\n/**\n * Get the value for a property on a node. Only used in DEV for SSR validation.\n * The \"expected\" argument is used as a hint of what the expected value is.\n * Some properties have multiple equivalent values.\n */\nfunction getValueForProperty(node, name, expected, propertyInfo) {\n {\n if (propertyInfo.mustUseProperty) {\n var propertyName = propertyInfo.propertyName;\n return node[propertyName];\n } else {\n if ( propertyInfo.sanitizeURL) {\n // If we haven't fully disabled javascript: URLs, and if\n // the hydration is successful of a javascript: URL, we\n // still want to warn on the client.\n sanitizeURL('' + expected);\n }\n\n var attributeName = propertyInfo.attributeName;\n var stringValue = null;\n\n if (propertyInfo.type === OVERLOADED_BOOLEAN) {\n if (node.hasAttribute(attributeName)) {\n var value = node.getAttribute(attributeName);\n\n if (value === '') {\n return true;\n }\n\n if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {\n return value;\n }\n\n if (value === '' + expected) {\n return expected;\n }\n\n return value;\n }\n } else if (node.hasAttribute(attributeName)) {\n if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {\n // We had an attribute but shouldn't have had one, so read it\n // for the error message.\n return node.getAttribute(attributeName);\n }\n\n if (propertyInfo.type === BOOLEAN) {\n // If this was a boolean, it doesn't matter what the value is\n // the fact that we have it is the same as the expected.\n return expected;\n } // Even if this property uses a namespace we use getAttribute\n // because we assume its namespaced name is the same as our config.\n // To use getAttributeNS we need the local name which we don't have\n // in our config atm.\n\n\n stringValue = node.getAttribute(attributeName);\n }\n\n if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {\n return stringValue === null ? expected : stringValue;\n } else if (stringValue === '' + expected) {\n return expected;\n } else {\n return stringValue;\n }\n }\n }\n}\n/**\n * Get the value for a attribute on a node. Only used in DEV for SSR validation.\n * The third argument is used as a hint of what the expected value is. Some\n * attributes have multiple equivalent values.\n */\n\nfunction getValueForAttribute(node, name, expected) {\n {\n if (!isAttributeNameSafe(name)) {\n return;\n } // If the object is an opaque reference ID, it's expected that\n // the next prop is different than the server value, so just return\n // expected\n\n\n if (isOpaqueHydratingObject(expected)) {\n return expected;\n }\n\n if (!node.hasAttribute(name)) {\n return expected === undefined ? undefined : null;\n }\n\n var value = node.getAttribute(name);\n\n if (value === '' + expected) {\n return expected;\n }\n\n return value;\n }\n}\n/**\n * Sets the value for a property on a node.\n *\n * @param {DOMElement} node\n * @param {string} name\n * @param {*} value\n */\n\nfunction setValueForProperty(node, name, value, isCustomComponentTag) {\n var propertyInfo = getPropertyInfo(name);\n\n if (shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) {\n return;\n }\n\n if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag)) {\n value = null;\n } // If the prop isn't in the special list, treat it as a simple attribute.\n\n\n if (isCustomComponentTag || propertyInfo === null) {\n if (isAttributeNameSafe(name)) {\n var _attributeName = name;\n\n if (value === null) {\n node.removeAttribute(_attributeName);\n } else {\n node.setAttribute(_attributeName, '' + value);\n }\n }\n\n return;\n }\n\n var mustUseProperty = propertyInfo.mustUseProperty;\n\n if (mustUseProperty) {\n var propertyName = propertyInfo.propertyName;\n\n if (value === null) {\n var type = propertyInfo.type;\n node[propertyName] = type === BOOLEAN ? false : '';\n } else {\n // Contrary to `setAttribute`, object properties are properly\n // `toString`ed by IE8/9.\n node[propertyName] = value;\n }\n\n return;\n } // The rest are treated as attributes with special cases.\n\n\n var attributeName = propertyInfo.attributeName,\n attributeNamespace = propertyInfo.attributeNamespace;\n\n if (value === null) {\n node.removeAttribute(attributeName);\n } else {\n var _type = propertyInfo.type;\n var attributeValue;\n\n if (_type === BOOLEAN || _type === OVERLOADED_BOOLEAN && value === true) {\n // If attribute type is boolean, we know for sure it won't be an execution sink\n // and we won't require Trusted Type here.\n attributeValue = '';\n } else {\n // `setAttribute` with objects becomes only `[object]` in IE8/9,\n // ('' + value) makes it output the correct toString()-value.\n {\n attributeValue = '' + value;\n }\n\n if (propertyInfo.sanitizeURL) {\n sanitizeURL(attributeValue.toString());\n }\n }\n\n if (attributeNamespace) {\n node.setAttributeNS(attributeNamespace, attributeName, attributeValue);\n } else {\n node.setAttribute(attributeName, attributeValue);\n }\n }\n}\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar REACT_ELEMENT_TYPE = 0xeac7;\nvar REACT_PORTAL_TYPE = 0xeaca;\nvar REACT_FRAGMENT_TYPE = 0xeacb;\nvar REACT_STRICT_MODE_TYPE = 0xeacc;\nvar REACT_PROFILER_TYPE = 0xead2;\nvar REACT_PROVIDER_TYPE = 0xeacd;\nvar REACT_CONTEXT_TYPE = 0xeace;\nvar REACT_FORWARD_REF_TYPE = 0xead0;\nvar REACT_SUSPENSE_TYPE = 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = 0xead8;\nvar REACT_MEMO_TYPE = 0xead3;\nvar REACT_LAZY_TYPE = 0xead4;\nvar REACT_BLOCK_TYPE = 0xead9;\nvar REACT_SERVER_BLOCK_TYPE = 0xeada;\nvar REACT_FUNDAMENTAL_TYPE = 0xead5;\nvar REACT_SCOPE_TYPE = 0xead7;\nvar REACT_OPAQUE_ID_TYPE = 0xeae0;\nvar REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;\nvar REACT_OFFSCREEN_TYPE = 0xeae2;\nvar REACT_LEGACY_HIDDEN_TYPE = 0xeae3;\n\nif (typeof Symbol === 'function' && Symbol.for) {\n var symbolFor = Symbol.for;\n REACT_ELEMENT_TYPE = symbolFor('react.element');\n REACT_PORTAL_TYPE = symbolFor('react.portal');\n REACT_FRAGMENT_TYPE = symbolFor('react.fragment');\n REACT_STRICT_MODE_TYPE = symbolFor('react.strict_mode');\n REACT_PROFILER_TYPE = symbolFor('react.profiler');\n REACT_PROVIDER_TYPE = symbolFor('react.provider');\n REACT_CONTEXT_TYPE = symbolFor('react.context');\n REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');\n REACT_SUSPENSE_TYPE = symbolFor('react.suspense');\n REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');\n REACT_MEMO_TYPE = symbolFor('react.memo');\n REACT_LAZY_TYPE = symbolFor('react.lazy');\n REACT_BLOCK_TYPE = symbolFor('react.block');\n REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');\n REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');\n REACT_SCOPE_TYPE = symbolFor('react.scope');\n REACT_OPAQUE_ID_TYPE = symbolFor('react.opaque.id');\n REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');\n REACT_OFFSCREEN_TYPE = symbolFor('react.offscreen');\n REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');\n}\n\nvar MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n\n return null;\n}\n\n// Helpers to patch console.logs to avoid logging during side-effect free\n// replaying on render function. This currently only patches the object\n// lazily which won't cover if the log function was extracted eagerly.\n// We could also eagerly patch the method.\nvar disabledDepth = 0;\nvar prevLog;\nvar prevInfo;\nvar prevWarn;\nvar prevError;\nvar prevGroup;\nvar prevGroupCollapsed;\nvar prevGroupEnd;\n\nfunction disabledLog() {}\n\ndisabledLog.__reactDisabledLog = true;\nfunction disableLogs() {\n {\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n prevLog = console.log;\n prevInfo = console.info;\n prevWarn = console.warn;\n prevError = console.error;\n prevGroup = console.group;\n prevGroupCollapsed = console.groupCollapsed;\n prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n var props = {\n configurable: true,\n enumerable: true,\n value: disabledLog,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n info: props,\n log: props,\n warn: props,\n error: props,\n group: props,\n groupCollapsed: props,\n groupEnd: props\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n disabledDepth++;\n }\n}\nfunction reenableLogs() {\n {\n disabledDepth--;\n\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n var props = {\n configurable: true,\n enumerable: true,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n log: _assign({}, props, {\n value: prevLog\n }),\n info: _assign({}, props, {\n value: prevInfo\n }),\n warn: _assign({}, props, {\n value: prevWarn\n }),\n error: _assign({}, props, {\n value: prevError\n }),\n group: _assign({}, props, {\n value: prevGroup\n }),\n groupCollapsed: _assign({}, props, {\n value: prevGroupCollapsed\n }),\n groupEnd: _assign({}, props, {\n value: prevGroupEnd\n })\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n if (disabledDepth < 0) {\n error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n }\n }\n}\n\nvar ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\nvar prefix;\nfunction describeBuiltInComponentFrame(name, source, ownerFn) {\n {\n if (prefix === undefined) {\n // Extract the VM specific prefix used by each line.\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = match && match[1] || '';\n }\n } // We use the prefix to ensure our stacks line up with native stack frames.\n\n\n return '\\n' + prefix + name;\n }\n}\nvar reentry = false;\nvar componentFrameCache;\n\n{\n var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n componentFrameCache = new PossiblyWeakMap();\n}\n\nfunction describeNativeComponentFrame(fn, construct) {\n // If something asked for a stack inside a fake render, it should get ignored.\n if (!fn || reentry) {\n return '';\n }\n\n {\n var frame = componentFrameCache.get(fn);\n\n if (frame !== undefined) {\n return frame;\n }\n }\n\n var control;\n reentry = true;\n var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n Error.prepareStackTrace = undefined;\n var previousDispatcher;\n\n {\n previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function\n // for warnings.\n\n ReactCurrentDispatcher.current = null;\n disableLogs();\n }\n\n try {\n // This should throw.\n if (construct) {\n // Something should be setting the props in the constructor.\n var Fake = function () {\n throw Error();\n }; // $FlowFixMe\n\n\n Object.defineProperty(Fake.prototype, 'props', {\n set: function () {\n // We use a throwing setter instead of frozen or non-writable props\n // because that won't throw in a non-strict mode function.\n throw Error();\n }\n });\n\n if (typeof Reflect === 'object' && Reflect.construct) {\n // We construct a different control for this case to include any extra\n // frames added by the construct call.\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n control = x;\n }\n\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x) {\n control = x;\n }\n\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x) {\n control = x;\n }\n\n fn();\n }\n } catch (sample) {\n // This is inlined manually because closure doesn't do it for us.\n if (sample && control && typeof sample.stack === 'string') {\n // This extracts the first frame from the sample that isn't also in the control.\n // Skipping one frame that we assume is the frame that calls the two.\n var sampleLines = sample.stack.split('\\n');\n var controlLines = control.stack.split('\\n');\n var s = sampleLines.length - 1;\n var c = controlLines.length - 1;\n\n while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n // We expect at least one stack frame to be shared.\n // Typically this will be the root most one. However, stack frames may be\n // cut off due to maximum stack limits. In this case, one maybe cut off\n // earlier than the other. We assume that the sample is longer or the same\n // and there for cut off earlier. So we should find the root most frame in\n // the sample somewhere in the control.\n c--;\n }\n\n for (; s >= 1 && c >= 0; s--, c--) {\n // Next we find the first one that isn't the same which should be the\n // frame that called our sample function and the control.\n if (sampleLines[s] !== controlLines[c]) {\n // In V8, the first line is describing the message but other VMs don't.\n // If we're about to return the first line, and the control is also on the same\n // line, that's a pretty good indicator that our sample threw at same line as\n // the control. I.e. before we entered the sample frame. So we ignore this result.\n // This can happen if you passed a class to function component, or non-function.\n if (s !== 1 || c !== 1) {\n do {\n s--;\n c--; // We may still have similar intermediate frames from the construct call.\n // The next one that isn't the same should be our match though.\n\n if (c < 0 || sampleLines[s] !== controlLines[c]) {\n // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at ');\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, _frame);\n }\n } // Return the line we found.\n\n\n return _frame;\n }\n } while (s >= 1 && c >= 0);\n }\n\n break;\n }\n }\n }\n } finally {\n reentry = false;\n\n {\n ReactCurrentDispatcher.current = previousDispatcher;\n reenableLogs();\n }\n\n Error.prepareStackTrace = previousPrepareStackTrace;\n } // Fallback to just using the name if we couldn't make it throw.\n\n\n var name = fn ? fn.displayName || fn.name : '';\n var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, syntheticFrame);\n }\n }\n\n return syntheticFrame;\n}\n\nfunction describeClassComponentFrame(ctor, source, ownerFn) {\n {\n return describeNativeComponentFrame(ctor, true);\n }\n}\nfunction describeFunctionComponentFrame(fn, source, ownerFn) {\n {\n return describeNativeComponentFrame(fn, false);\n }\n}\n\nfunction shouldConstruct(Component) {\n var prototype = Component.prototype;\n return !!(prototype && prototype.isReactComponent);\n}\n\nfunction describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n\n if (type == null) {\n return '';\n }\n\n if (typeof type === 'function') {\n {\n return describeNativeComponentFrame(type, shouldConstruct(type));\n }\n }\n\n if (typeof type === 'string') {\n return describeBuiltInComponentFrame(type);\n }\n\n switch (type) {\n case REACT_SUSPENSE_TYPE:\n return describeBuiltInComponentFrame('Suspense');\n\n case REACT_SUSPENSE_LIST_TYPE:\n return describeBuiltInComponentFrame('SuspenseList');\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n return describeFunctionComponentFrame(type.render);\n\n case REACT_MEMO_TYPE:\n // Memo may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n\n case REACT_BLOCK_TYPE:\n return describeFunctionComponentFrame(type._render);\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n // Lazy may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n } catch (x) {}\n }\n }\n }\n\n return '';\n}\n\nfunction describeFiber(fiber) {\n var owner = fiber._debugOwner ? fiber._debugOwner.type : null ;\n var source = fiber._debugSource ;\n\n switch (fiber.tag) {\n case HostComponent:\n return describeBuiltInComponentFrame(fiber.type);\n\n case LazyComponent:\n return describeBuiltInComponentFrame('Lazy');\n\n case SuspenseComponent:\n return describeBuiltInComponentFrame('Suspense');\n\n case SuspenseListComponent:\n return describeBuiltInComponentFrame('SuspenseList');\n\n case FunctionComponent:\n case IndeterminateComponent:\n case SimpleMemoComponent:\n return describeFunctionComponentFrame(fiber.type);\n\n case ForwardRef:\n return describeFunctionComponentFrame(fiber.type.render);\n\n case Block:\n return describeFunctionComponentFrame(fiber.type._render);\n\n case ClassComponent:\n return describeClassComponentFrame(fiber.type);\n\n default:\n return '';\n }\n}\n\nfunction getStackByFiberInDevAndProd(workInProgress) {\n try {\n var info = '';\n var node = workInProgress;\n\n do {\n info += describeFiber(node);\n node = node.return;\n } while (node);\n\n return info;\n } catch (x) {\n return '\\nError generating stack: ' + x.message + '\\n' + x.stack;\n }\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n var functionName = innerType.displayName || innerType.name || '';\n return outerType.displayName || (functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName);\n}\n\nfunction getContextName(type) {\n return type.displayName || 'Context';\n}\n\nfunction getComponentName(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n\n {\n if (typeof type.tag === 'number') {\n error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n\n if (typeof type === 'string') {\n return type;\n }\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return 'Fragment';\n\n case REACT_PORTAL_TYPE:\n return 'Portal';\n\n case REACT_PROFILER_TYPE:\n return 'Profiler';\n\n case REACT_STRICT_MODE_TYPE:\n return 'StrictMode';\n\n case REACT_SUSPENSE_TYPE:\n return 'Suspense';\n\n case REACT_SUSPENSE_LIST_TYPE:\n return 'SuspenseList';\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n var context = type;\n return getContextName(context) + '.Consumer';\n\n case REACT_PROVIDER_TYPE:\n var provider = type;\n return getContextName(provider._context) + '.Provider';\n\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n\n case REACT_MEMO_TYPE:\n return getComponentName(type.type);\n\n case REACT_BLOCK_TYPE:\n return getComponentName(type._render);\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n return getComponentName(init(payload));\n } catch (x) {\n return null;\n }\n }\n }\n }\n\n return null;\n}\n\nvar ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\nvar current = null;\nvar isRendering = false;\nfunction getCurrentFiberOwnerNameInDevOrNull() {\n {\n if (current === null) {\n return null;\n }\n\n var owner = current._debugOwner;\n\n if (owner !== null && typeof owner !== 'undefined') {\n return getComponentName(owner.type);\n }\n }\n\n return null;\n}\n\nfunction getCurrentFiberStackInDev() {\n {\n if (current === null) {\n return '';\n } // Safe because if current fiber exists, we are reconciling,\n // and it is guaranteed to be the work-in-progress version.\n\n\n return getStackByFiberInDevAndProd(current);\n }\n}\n\nfunction resetCurrentFiber() {\n {\n ReactDebugCurrentFrame.getCurrentStack = null;\n current = null;\n isRendering = false;\n }\n}\nfunction setCurrentFiber(fiber) {\n {\n ReactDebugCurrentFrame.getCurrentStack = getCurrentFiberStackInDev;\n current = fiber;\n isRendering = false;\n }\n}\nfunction setIsRendering(rendering) {\n {\n isRendering = rendering;\n }\n}\nfunction getIsRendering() {\n {\n return isRendering;\n }\n}\n\n// Flow does not allow string concatenation of most non-string types. To work\n// around this limitation, we use an opaque type that can only be obtained by\n// passing the value through getToStringValue first.\nfunction toString(value) {\n return '' + value;\n}\nfunction getToStringValue(value) {\n switch (typeof value) {\n case 'boolean':\n case 'number':\n case 'object':\n case 'string':\n case 'undefined':\n return value;\n\n default:\n // function, symbol are assigned as empty strings\n return '';\n }\n}\n\nvar hasReadOnlyValue = {\n button: true,\n checkbox: true,\n image: true,\n hidden: true,\n radio: true,\n reset: true,\n submit: true\n};\nfunction checkControlledValueProps(tagName, props) {\n {\n if (!(hasReadOnlyValue[props.type] || props.onChange || props.onInput || props.readOnly || props.disabled || props.value == null)) {\n error('You provided a `value` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultValue`. Otherwise, ' + 'set either `onChange` or `readOnly`.');\n }\n\n if (!(props.onChange || props.readOnly || props.disabled || props.checked == null)) {\n error('You provided a `checked` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultChecked`. Otherwise, ' + 'set either `onChange` or `readOnly`.');\n }\n }\n}\n\nfunction isCheckable(elem) {\n var type = elem.type;\n var nodeName = elem.nodeName;\n return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio');\n}\n\nfunction getTracker(node) {\n return node._valueTracker;\n}\n\nfunction detachTracker(node) {\n node._valueTracker = null;\n}\n\nfunction getValueFromNode(node) {\n var value = '';\n\n if (!node) {\n return value;\n }\n\n if (isCheckable(node)) {\n value = node.checked ? 'true' : 'false';\n } else {\n value = node.value;\n }\n\n return value;\n}\n\nfunction trackValueOnNode(node) {\n var valueField = isCheckable(node) ? 'checked' : 'value';\n var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField);\n var currentValue = '' + node[valueField]; // if someone has already defined a value or Safari, then bail\n // and don't track value will cause over reporting of changes,\n // but it's better then a hard failure\n // (needed for certain tests that spyOn input values and Safari)\n\n if (node.hasOwnProperty(valueField) || typeof descriptor === 'undefined' || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') {\n return;\n }\n\n var get = descriptor.get,\n set = descriptor.set;\n Object.defineProperty(node, valueField, {\n configurable: true,\n get: function () {\n return get.call(this);\n },\n set: function (value) {\n currentValue = '' + value;\n set.call(this, value);\n }\n }); // We could've passed this the first time\n // but it triggers a bug in IE11 and Edge 14/15.\n // Calling defineProperty() again should be equivalent.\n // https://github.com/facebook/react/issues/11768\n\n Object.defineProperty(node, valueField, {\n enumerable: descriptor.enumerable\n });\n var tracker = {\n getValue: function () {\n return currentValue;\n },\n setValue: function (value) {\n currentValue = '' + value;\n },\n stopTracking: function () {\n detachTracker(node);\n delete node[valueField];\n }\n };\n return tracker;\n}\n\nfunction track(node) {\n if (getTracker(node)) {\n return;\n } // TODO: Once it's just Fiber we can move this to node._wrapperState\n\n\n node._valueTracker = trackValueOnNode(node);\n}\nfunction updateValueIfChanged(node) {\n if (!node) {\n return false;\n }\n\n var tracker = getTracker(node); // if there is no tracker at this point it's unlikely\n // that trying again will succeed\n\n if (!tracker) {\n return true;\n }\n\n var lastValue = tracker.getValue();\n var nextValue = getValueFromNode(node);\n\n if (nextValue !== lastValue) {\n tracker.setValue(nextValue);\n return true;\n }\n\n return false;\n}\n\nfunction getActiveElement(doc) {\n doc = doc || (typeof document !== 'undefined' ? document : undefined);\n\n if (typeof doc === 'undefined') {\n return null;\n }\n\n try {\n return doc.activeElement || doc.body;\n } catch (e) {\n return doc.body;\n }\n}\n\nvar didWarnValueDefaultValue = false;\nvar didWarnCheckedDefaultChecked = false;\nvar didWarnControlledToUncontrolled = false;\nvar didWarnUncontrolledToControlled = false;\n\nfunction isControlled(props) {\n var usesChecked = props.type === 'checkbox' || props.type === 'radio';\n return usesChecked ? props.checked != null : props.value != null;\n}\n/**\n * Implements an host component that allows setting these optional\n * props: `checked`, `value`, `defaultChecked`, and `defaultValue`.\n *\n * If `checked` or `value` are not supplied (or null/undefined), user actions\n * that affect the checked state or value will trigger updates to the element.\n *\n * If they are supplied (and not null/undefined), the rendered element will not\n * trigger updates to the element. Instead, the props must change in order for\n * the rendered element to be updated.\n *\n * The rendered element will be initialized as unchecked (or `defaultChecked`)\n * with an empty value (or `defaultValue`).\n *\n * See http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html\n */\n\n\nfunction getHostProps(element, props) {\n var node = element;\n var checked = props.checked;\n\n var hostProps = _assign({}, props, {\n defaultChecked: undefined,\n defaultValue: undefined,\n value: undefined,\n checked: checked != null ? checked : node._wrapperState.initialChecked\n });\n\n return hostProps;\n}\nfunction initWrapperState(element, props) {\n {\n checkControlledValueProps('input', props);\n\n if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) {\n error('%s contains an input of type %s with both checked and defaultChecked props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the checked prop, or the defaultChecked prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);\n\n didWarnCheckedDefaultChecked = true;\n }\n\n if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {\n error('%s contains an input of type %s with both value and defaultValue props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);\n\n didWarnValueDefaultValue = true;\n }\n }\n\n var node = element;\n var defaultValue = props.defaultValue == null ? '' : props.defaultValue;\n node._wrapperState = {\n initialChecked: props.checked != null ? props.checked : props.defaultChecked,\n initialValue: getToStringValue(props.value != null ? props.value : defaultValue),\n controlled: isControlled(props)\n };\n}\nfunction updateChecked(element, props) {\n var node = element;\n var checked = props.checked;\n\n if (checked != null) {\n setValueForProperty(node, 'checked', checked, false);\n }\n}\nfunction updateWrapper(element, props) {\n var node = element;\n\n {\n var controlled = isControlled(props);\n\n if (!node._wrapperState.controlled && controlled && !didWarnUncontrolledToControlled) {\n error('A component is changing an uncontrolled input to be controlled. ' + 'This is likely caused by the value changing from undefined to ' + 'a defined value, which should not happen. ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components');\n\n didWarnUncontrolledToControlled = true;\n }\n\n if (node._wrapperState.controlled && !controlled && !didWarnControlledToUncontrolled) {\n error('A component is changing a controlled input to be uncontrolled. ' + 'This is likely caused by the value changing from a defined to ' + 'undefined, which should not happen. ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components');\n\n didWarnControlledToUncontrolled = true;\n }\n }\n\n updateChecked(element, props);\n var value = getToStringValue(props.value);\n var type = props.type;\n\n if (value != null) {\n if (type === 'number') {\n if (value === 0 && node.value === '' || // We explicitly want to coerce to number here if possible.\n // eslint-disable-next-line\n node.value != value) {\n node.value = toString(value);\n }\n } else if (node.value !== toString(value)) {\n node.value = toString(value);\n }\n } else if (type === 'submit' || type === 'reset') {\n // Submit/reset inputs need the attribute removed completely to avoid\n // blank-text buttons.\n node.removeAttribute('value');\n return;\n }\n\n {\n // When syncing the value attribute, the value comes from a cascade of\n // properties:\n // 1. The value React property\n // 2. The defaultValue React property\n // 3. Otherwise there should be no change\n if (props.hasOwnProperty('value')) {\n setDefaultValue(node, props.type, value);\n } else if (props.hasOwnProperty('defaultValue')) {\n setDefaultValue(node, props.type, getToStringValue(props.defaultValue));\n }\n }\n\n {\n // When syncing the checked attribute, it only changes when it needs\n // to be removed, such as transitioning from a checkbox into a text input\n if (props.checked == null && props.defaultChecked != null) {\n node.defaultChecked = !!props.defaultChecked;\n }\n }\n}\nfunction postMountWrapper(element, props, isHydrating) {\n var node = element; // Do not assign value if it is already set. This prevents user text input\n // from being lost during SSR hydration.\n\n if (props.hasOwnProperty('value') || props.hasOwnProperty('defaultValue')) {\n var type = props.type;\n var isButton = type === 'submit' || type === 'reset'; // Avoid setting value attribute on submit/reset inputs as it overrides the\n // default value provided by the browser. See: #12872\n\n if (isButton && (props.value === undefined || props.value === null)) {\n return;\n }\n\n var initialValue = toString(node._wrapperState.initialValue); // Do not assign value if it is already set. This prevents user text input\n // from being lost during SSR hydration.\n\n if (!isHydrating) {\n {\n // When syncing the value attribute, the value property should use\n // the wrapperState._initialValue property. This uses:\n //\n // 1. The value React property when present\n // 2. The defaultValue React property when present\n // 3. An empty string\n if (initialValue !== node.value) {\n node.value = initialValue;\n }\n }\n }\n\n {\n // Otherwise, the value attribute is synchronized to the property,\n // so we assign defaultValue to the same thing as the value property\n // assignment step above.\n node.defaultValue = initialValue;\n }\n } // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug\n // this is needed to work around a chrome bug where setting defaultChecked\n // will sometimes influence the value of checked (even after detachment).\n // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416\n // We need to temporarily unset name to avoid disrupting radio button groups.\n\n\n var name = node.name;\n\n if (name !== '') {\n node.name = '';\n }\n\n {\n // When syncing the checked attribute, both the checked property and\n // attribute are assigned at the same time using defaultChecked. This uses:\n //\n // 1. The checked React property when present\n // 2. The defaultChecked React property when present\n // 3. Otherwise, false\n node.defaultChecked = !node.defaultChecked;\n node.defaultChecked = !!node._wrapperState.initialChecked;\n }\n\n if (name !== '') {\n node.name = name;\n }\n}\nfunction restoreControlledState(element, props) {\n var node = element;\n updateWrapper(node, props);\n updateNamedCousins(node, props);\n}\n\nfunction updateNamedCousins(rootNode, props) {\n var name = props.name;\n\n if (props.type === 'radio' && name != null) {\n var queryRoot = rootNode;\n\n while (queryRoot.parentNode) {\n queryRoot = queryRoot.parentNode;\n } // If `rootNode.form` was non-null, then we could try `form.elements`,\n // but that sometimes behaves strangely in IE8. We could also try using\n // `form.getElementsByName`, but that will only return direct children\n // and won't include inputs that use the HTML5 `form=` attribute. Since\n // the input might not even be in a form. It might not even be in the\n // document. Let's just use the local `querySelectorAll` to ensure we don't\n // miss anything.\n\n\n var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type=\"radio\"]');\n\n for (var i = 0; i < group.length; i++) {\n var otherNode = group[i];\n\n if (otherNode === rootNode || otherNode.form !== rootNode.form) {\n continue;\n } // This will throw if radio buttons rendered by different copies of React\n // and the same name are rendered into the same form (same as #1939).\n // That's probably okay; we don't support it just as we don't support\n // mixing React radio buttons with non-React ones.\n\n\n var otherProps = getFiberCurrentPropsFromNode(otherNode);\n\n if (!otherProps) {\n {\n throw Error( \"ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.\" );\n }\n } // We need update the tracked value on the named cousin since the value\n // was changed but the input saw no event or value set\n\n\n updateValueIfChanged(otherNode); // If this is a controlled radio button group, forcing the input that\n // was previously checked to update will cause it to be come re-checked\n // as appropriate.\n\n updateWrapper(otherNode, otherProps);\n }\n }\n} // In Chrome, assigning defaultValue to certain input types triggers input validation.\n// For number inputs, the display value loses trailing decimal points. For email inputs,\n// Chrome raises \"The specified value is not a valid email address\".\n//\n// Here we check to see if the defaultValue has actually changed, avoiding these problems\n// when the user is inputting text\n//\n// https://github.com/facebook/react/issues/7253\n\n\nfunction setDefaultValue(node, type, value) {\n if ( // Focused number inputs synchronize on blur. See ChangeEventPlugin.js\n type !== 'number' || getActiveElement(node.ownerDocument) !== node) {\n if (value == null) {\n node.defaultValue = toString(node._wrapperState.initialValue);\n } else if (node.defaultValue !== toString(value)) {\n node.defaultValue = toString(value);\n }\n }\n}\n\nvar didWarnSelectedSetOnOption = false;\nvar didWarnInvalidChild = false;\n\nfunction flattenChildren(children) {\n var content = ''; // Flatten children. We'll warn if they are invalid\n // during validateProps() which runs for hydration too.\n // Note that this would throw on non-element objects.\n // Elements are stringified (which is normally irrelevant\n // but matters for ).\n\n React.Children.forEach(children, function (child) {\n if (child == null) {\n return;\n }\n\n content += child; // Note: we don't warn about invalid children here.\n // Instead, this is done separately below so that\n // it happens during the hydration code path too.\n });\n return content;\n}\n/**\n * Implements an